Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classify-title-activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ function classifyTitleActivity(title, options) {
return none;
}

module.exports = { classifyTitleActivity, IDLE_GLYPH, SPINNER_RANGES };
module.exports = { classifyTitleActivity };
2 changes: 1 addition & 1 deletion claude-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ async function fetchAndTransformUsage() {
}
}

module.exports = { getOAuthToken, fetchUsage, fetchAndTransformUsage, getConfigDir, formatResetTime };
module.exports = { fetchAndTransformUsage, formatResetTime };
2 changes: 1 addition & 1 deletion delete-session-guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ function makeDeleteSessionGuard({ activeSessions, bgAgents, cliSessionState, ses
};
}

module.exports = { deleteSessionRefusal, makeDeleteSessionGuard, harnessTranscriptRefusal };
module.exports = { deleteSessionRefusal, makeDeleteSessionGuard };
2 changes: 1 addition & 1 deletion fts-match.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ function createSessionSearch(db) {
};
}

module.exports = { FTS_QUERY_MAX_CHARS, FTS_MIN_TERM_CHARS, searchTerms, buildFtsMatch, idLookupTerm, createSessionSearch };
module.exports = { FTS_QUERY_MAX_CHARS, searchTerms, buildFtsMatch, idLookupTerm, createSessionSearch };
2 changes: 1 addition & 1 deletion jsonl-scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ function readHead(filePath, maxBytes) {
}
}

module.exports = { scanLines, readHead, CHUNK_BYTES, MAX_LINE_BYTES };
module.exports = { scanLines, readHead, MAX_LINE_BYTES };
2 changes: 1 addition & 1 deletion local-transcript-activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ function createLocalTranscriptTracker(opts = {}) {
return { record, dispose, stats };
}

module.exports = { createLocalTranscriptTracker, sessionIdFromWatchParts, SESSION_ID_RE };
module.exports = { createLocalTranscriptTracker, sessionIdFromWatchParts };
2 changes: 1 addition & 1 deletion remote-activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ function createRemoteActivityTracker(opts = {}) {
return { record, activeAt, stats, dispose };
}

module.exports = { createRemoteActivityTracker, sessionIdFromRel, SESSION_ID_RE };
module.exports = { createRemoteActivityTracker, sessionIdFromRel };
2 changes: 1 addition & 1 deletion src/main/app/unsaved-guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,4 +439,4 @@ function createUnsavedGuard({ ipcMain, timeoutMs = DEFAULT_TIMEOUT_MS, probeMs =
committedToken: attempts.token, launchAllowed: attempts.launchAllowed, capture: attempts.capture, invalidate: attempts.invalidate };
}

module.exports = { createUnsavedGuard, DEFAULT_TIMEOUT_MS, DEFAULT_PROBE_MS, DEFAULT_DIALOG_CEILING_MS, LOGOFF_CANCEL_MS };
module.exports = { createUnsavedGuard, LOGOFF_CANCEL_MS };
2 changes: 1 addition & 1 deletion src/main/bg-agents/bg-handoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@ function askContinuationChoice({ ipcMain, window, sessionId, jobs, signal, timeo
});
}

module.exports = { askContinuationChoice, backgroundRefusal, createContinuationReader, findHandoff, cancellationIn, holdBackgroundExit, sendToBackground, BG_HANDOFF_TIMEOUT_MS, BG_HANDOFF_EXIT_TIMEOUT_MS };
module.exports = { askContinuationChoice, backgroundRefusal, createContinuationReader, cancellationIn, holdBackgroundExit, sendToBackground };
1 change: 0 additions & 1 deletion src/main/changes/git-changes-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ module.exports = {
buildBlobRev,
versionOf,
resolveRepoDirs,
lineEndingsOf,
soleEol,
decodeUtf8,
toLf,
Expand Down
2 changes: 1 addition & 1 deletion src/main/changes/git-changes-target.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,4 @@ function resolveGitChangesTarget(sessionId, deps, opts) {
return { ok: false, error: 'could not resolve a working directory for this session' };
}

module.exports = { resolveGitChangesTarget, isValidChangesSessionId, parseSubagentId, listSubagentWorktrees, collectSubagentChanges, checkSubagentRepo };
module.exports = { resolveGitChangesTarget, isValidChangesSessionId, listSubagentWorktrees, collectSubagentChanges, checkSubagentRepo };
2 changes: 1 addition & 1 deletion src/main/changes/git-changes-watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ function createChangesWatchRegistry(deps) {
return { watch, unwatch, closeAll, size: () => entries.size };
}

module.exports = { createChangesWatchRegistry, DEFAULT_DEBOUNCE_MS };
module.exports = { createChangesWatchRegistry };
2 changes: 1 addition & 1 deletion src/main/changes/touched-transcript-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ function compareTouch(a, b) {
|| a.path.localeCompare(b.path) || a.tool.localeCompare(b.tool);
}

module.exports = { createTouchedFilesCache, timestampOf };
module.exports = { createTouchedFilesCache };
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@ function createActivityWatchReporter(deps) {
};
}

module.exports = { createActivityWatchReporter, KEEPALIVE_MS, PULSETIME_SECONDS, CHECKPOINT_MS, IDLE_SECONDS };
module.exports = { createActivityWatchReporter, KEEPALIVE_MS, PULSETIME_SECONDS, CHECKPOINT_MS };
2 changes: 1 addition & 1 deletion src/main/projects/last-known-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ function createLastKnownProjectsStore({ dir, appVersion, log = console, maxBytes
return { load, remember, flush, filename };
}

module.exports = { createLastKnownProjectsStore, FORMAT_VERSION, MAX_BYTES, WRITE_DELAY_MS };
module.exports = { createLastKnownProjectsStore, FORMAT_VERSION, MAX_BYTES };
2 changes: 1 addition & 1 deletion src/main/remote/remote-enrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ async function handleEnrolRequest(payload, deps) {
}
}

module.exports = { buildChecklist, handleEnrolRequest, UNKNOWN_AUTH_TEXT, LOGIN_COMMAND };
module.exports = { buildChecklist, handleEnrolRequest, UNKNOWN_AUTH_TEXT };
3 changes: 0 additions & 3 deletions src/main/remote/remote-hosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,14 @@ function topFolderOf(rel) {
}

module.exports = {
FOLDER_SEP,
MIN_REFRESH_MS,
DEFAULT_REFRESH_MS,
isValidAlias,
joinFolderKey,
parseFolderKey,
isRemoteFolder,
normalizeHosts,
enabledHosts,
normalizeRefreshMs,
mirrorDirFor,
mirrorProjectsDirFor,
manifestPathFor,
isSafeRelPath,
Expand Down
2 changes: 1 addition & 1 deletion src/main/remote/remote-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,4 +689,4 @@ async function refreshRemoteHeadTurns(ctx, hostAlias) {
if (rows.length) await ctx.readBatch(rows);
}

module.exports = { createRemoteIndexer, refreshRemoteHeadTurns, PROBE_INTERVAL_MS, PROBE_RETRY_MS, backoffDelayMs, buildPlaceholderSession, placeholderTitle, sanitizeWaitingFor };
module.exports = { createRemoteIndexer, refreshRemoteHeadTurns, PROBE_INTERVAL_MS, PROBE_RETRY_MS, backoffDelayMs, sanitizeWaitingFor };
3 changes: 1 addition & 2 deletions src/main/remote/remote-launch.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,4 @@ module.exports = {
NO_DIR_EXIT_CODE,
NO_TMUX_EXIT_CODE,
NO_CLAUDE_EXIT_CODE,
PERMISSION_MODES,
};
};
2 changes: 1 addition & 1 deletion src/main/remote/remote-mirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,4 @@ async function syncMirror({ alias, transport, projectsDir, manifestPath, log })
};
}

module.exports = { syncMirror, readManifest, writeManifest, MAX_CYCLE_FILES, MAX_CYCLE_BYTES, MAX_FILE_BYTES };
module.exports = { syncMirror, readManifest, writeManifest, MAX_CYCLE_FILES, MAX_CYCLE_BYTES };
2 changes: 0 additions & 2 deletions src/main/remote/remote-send.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ module.exports = {
validateSocketPath,
MAX_LINE_BYTES,
DEDUPE_WINDOW_MS,
RATE_CAPACITY,
RATE_REFILL_PER_MS,
NOT_CLAUDE_EXIT_CODE,
NO_SOCKET_EXIT_CODE,
NC_MISSING_EXIT_CODE,
Expand Down
4 changes: 1 addition & 3 deletions src/main/remote/remote-transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,6 @@ module.exports = {
parseInventory,
parseSessions,
splitListOutput,
transcriptSessionIds,
LIST_COMMAND,
PROBE_COMMAND,
parseProbe,
Expand All @@ -553,5 +552,4 @@ module.exports = {
SESSIONS_MARKER,
MAX_SESSION_DESCRIPTORS,
MAX_SESSION_DESCRIPTOR_BYTES,
MAX_RANGE_FETCH_BYTES,
};
};
4 changes: 1 addition & 3 deletions src/main/remote/remote-watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ function createRemoteWatcher(opts = {}) {
module.exports = {
createRemoteWatcher,
parseWatchLine,
buildWatchCommand,
buildSshArgs,
NO_INOTIFYWAIT_MARKER,
NO_INOTIFYWAIT_EXIT_CODE,
};
};
2 changes: 1 addition & 1 deletion src/main/schedules/schedule-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,4 +358,4 @@ function resumeBackgroundRuns(deps, claim) {
return lifetimes;
}

module.exports = { launchBackgroundSchedule, resumeBackgroundRuns, discoverBackgroundRuns, backgroundRefusal, BACKGROUND_RUN_LIMIT_MS, LAUNCH_TIMEOUT_MS };
module.exports = { launchBackgroundSchedule, resumeBackgroundRuns, backgroundRefusal };
2 changes: 1 addition & 1 deletion src/main/session-index/session-refs.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ function mergeSearchBodyRefs(body, newer) {
return searchBody(text, mergeRefLists(newer, refs));
}

module.exports = { REFS_MAX_CHARS, REFS_MAX_ENTRIES, SEARCH_BODY_MAX_CHARS, REFS_MARKER, collectRefs, collectEntryRefs, newestFirst, splitSearchBody, searchBody, mergeRefLists, mergeSearchBodyRefs };
module.exports = { REFS_MAX_CHARS, collectRefs, collectEntryRefs, newestFirst, splitSearchBody, searchBody, mergeSearchBodyRefs };
2 changes: 1 addition & 1 deletion src/main/terminals/composer-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,4 @@ function noteUserInput(state, data, now) {
return finish();
}

module.exports = { createComposerState, noteUserInput, isComposerEmpty, MAX_PARTIAL };
module.exports = { createComposerState, noteUserInput, isComposerEmpty };
2 changes: 0 additions & 2 deletions src/main/terminals/pty-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ module.exports = {
normalizePtySize,
DEFAULT_COLS,
DEFAULT_ROWS,
MIN_COLS,
MIN_ROWS,
MAX_COLS,
MAX_ROWS,
};
2 changes: 1 addition & 1 deletion src/main/terminals/shell-profiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,4 @@ function shellArgs(shellPath, cmd, extraArgs, { pty = false, windows = isWindows
return [];
}

module.exports = { isCmdShell, discoverShellProfiles, getShellProfiles, resolveShell, isWindows, isWslShell, windowsToWslPath, shellArgs, quoteArgForShell, quoteArgvForShell, claudeCommand, codexCommand, customArgsForLaunch, headlessClaudeLaunch };
module.exports = { discoverShellProfiles, getShellProfiles, resolveShell, isWindows, isWslShell, windowsToWslPath, shellArgs, quoteArgForShell, quoteArgvForShell, claudeCommand, codexCommand, customArgsForLaunch, headlessClaudeLaunch };
2 changes: 1 addition & 1 deletion src/main/triggers/trigger-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,4 +813,4 @@ async function executeOpen(trigger, execution) {
}
}

module.exports = { createNewSessionLimiter, resolveLocalTarget, resolveProject, createTriggerActions, isVersioned, validateTrigger, refusal };
module.exports = { createNewSessionLimiter, resolveLocalTarget, resolveProject, createTriggerActions, isVersioned, validateTrigger };
2 changes: 1 addition & 1 deletion src/main/triggers/trigger-watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -2409,4 +2409,4 @@ function start(ctx) {
};
}

module.exports = { deliverSingle, start, getTriggersDir, getQuietMs, describeBusyComposer, weakestSubmitted, SUBMITTED_RANK, normalizeCwd, submitWithVerify, waitForCliIdleAfter, waitForBusyFall, transcriptOwnEntryAt, transcriptShowsTurnOver, isCompactCommand, REASON_REMOTE_NO_FRESH_PULL, REASON_REMOTE_SHELL };
module.exports = { deliverSingle, start, getTriggersDir, getQuietMs, describeBusyComposer, weakestSubmitted, SUBMITTED_RANK, normalizeCwd, submitWithVerify, waitForCliIdleAfter, waitForBusyFall, transcriptOwnEntryAt, transcriptShowsTurnOver, isCompactCommand };
2 changes: 1 addition & 1 deletion task-records.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ function normalizeTaskEvidence(raw) {
inFlightKinds: (flight?.kinds || []).map(kind => ({ kind, label: IN_FLIGHT_LABELS.get(kind) || `Unknown activity (${kind.length > 40 ? kind.slice(0, 40) + '…' : kind})`, known: IN_FLIGHT_KINDS.has(kind) })), terminal };
}

module.exports = { normalizeTaskEvidence, TASK_KINDS, IN_FLIGHT_KINDS };
module.exports = { normalizeTaskEvidence, IN_FLIGHT_KINDS };
2 changes: 1 addition & 1 deletion transcript-turn.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ function createTranscriptTurnReader({ tailBytes = DEFAULT_TAIL_BYTES } = {}) {
};
}

module.exports = { classifyTranscriptTail, createTranscriptTurnReader, promptMatches, CLOSED_STOP_REASONS };
module.exports = { classifyTranscriptTail, createTranscriptTurnReader, promptMatches };
2 changes: 1 addition & 1 deletion viewer-file-watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ function createViewerWatchRegistry(deps) {
return { watch, unwatch, closeAll, size: () => entries.size, refs: (p) => (entries.get(p) || { refs: 0 }).refs };
}

module.exports = { watchFileForViewer, createViewerWatchRegistry, sameFileName, watchTargets, DEFAULT_DEBOUNCE_MS };
module.exports = { watchFileForViewer, createViewerWatchRegistry, sameFileName, watchTargets };
2 changes: 1 addition & 1 deletion viewer-save-guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ function createMainPanelSaves({ getKnownProjectPaths, invalidateFtsSignature, on
});
}

module.exports = { refuseIfMoved, writeIfUnmoved, createPanelSaveHandlers, createMainPanelSaves, asEditorText };
module.exports = { refuseIfMoved, createPanelSaveHandlers, createMainPanelSaves };
Loading