Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kevin7Qi/codex-collab
/ functions
Functions
413 in github.com/Kevin7Qi/codex-collab
⨍
Functions
413
◇
Types & classes
90
↓ 6 callers
Function
acquireSpawnLock
(stateDir: string)
src/broker.ts:209
↓ 6 callers
Function
belongsToTurn
( params: { threadId: string; turnId: string }, expectedThreadId: string, expectedTurnId: string, )
src/turns.ts:30
↓ 6 callers
Function
buildGuardianOverrideEvent
(record: GuardianDenialRecord)
src/guardian.ts:133
↓ 6 callers
Function
clip
Truncate to the terminal width, accounting for an already-styled prefix length.
src/render.ts:114
↓ 6 callers
Function
connectDirect
(opts?: ConnectOptions)
src/client.ts:85
↓ 6 callers
Function
formatPeekJson
( thread: Thread, shortId: string | null, items: ThreadItem[], totalItems: number, truncated: boolea
src/commands/peek.ts:74
↓ 6 callers
Function
formatResponse
(id: RequestId, result: unknown)
src/rpc.ts:33
↓ 6 callers
Function
generateRunId
()
src/threads.ts:266
↓ 6 callers
Function
generateShortId
()
src/threads.ts:51
↓ 6 callers
Function
getCurrentSessionId
(stateDir: string)
src/broker.ts:290
↓ 6 callers
Function
hasPendingApproval
(stateDir: string, runId: string)
src/commands/shared.ts:1171
↓ 6 callers
Function
humanizeTurnError
(raw: string)
src/commands/shared.ts:1081
↓ 6 callers
Function
isBrokerAlive
(endpoint: string | null, timeoutMs = 150)
src/broker.ts:166
↓ 6 callers
Method
onClose
Register a callback invoked on unexpected connection loss (fail()). * Not called after markClosed(). Returns an unsubscribe function.
src/rpc.ts:163
↓ 6 callers
Function
pickDefaultRun
(stateDir: string, pidsDir: string)
src/commands/follow.ts:110
↓ 6 callers
Function
recordTerminalRunState
( ws: WorkspacePaths, threadId: string, runId: string, result: TurnResult, label: "Turn" | "Review",
src/commands/shared.ts:1126
↓ 6 callers
Function
removePidFile
(pidsDir: string, shortId: string)
src/commands/shared.ts:1223
↓ 6 callers
Function
resolveModel
(model: string | undefined)
src/config.ts:186
↓ 6 callers
Function
resolveStateDir
(cwd: string)
src/config.ts:169
↓ 6 callers
Function
saveBrokerState
(stateDir: string, state: BrokerState)
src/broker.ts:105
↓ 6 callers
Function
saveSessionState
(stateDir: string, state: SessionState)
src/broker.ts:152
↓ 6 callers
Function
shutdown
(server: net.Server)
src/broker-server.ts:351
↓ 6 callers
Function
threadsFilePath
(stateDir: string)
src/threads.ts:57
↓ 6 callers
Function
withThreadLock
(filePath: string, fn: () => T)
src/threads.ts:40
↓ 6 callers
Function
write
(data: string)
src/rpc.ts:195
↓ 6 callers
Function
writeMigrationMarker
* Atomically stamp the per-workspace migration marker. * * Caller MUST hold withThreadLock(markerPath, …). The entire * migrateGlobalState body run
src/threads.ts:668
↓ 5 callers
Function
applyDiscoverLimit
(options: { discover: boolean; limit: number; explicit: Set<string>; })
src/commands/threads.ts:59
↓ 5 callers
Function
clearInferenceTimer
()
src/turns.ts:177
↓ 5 callers
Function
collectThreadLogPaths
( stateDir: string, logsDir: string, shortId: string, globalLogsDir: string = config.logsDir, )
src/commands/threads.ts:247
↓ 5 callers
Function
createEndpoint
(stateDir: string, platform?: string)
src/broker.ts:46
↓ 5 callers
Function
describeGuardianAction
(record: GuardianDenialRecord)
src/guardian.ts:172
↓ 5 callers
Function
dieWithRunnerOutput
(reason)
src/commands/run.ts:123
↓ 5 callers
Function
formatNotification
(method: string, params?: unknown)
src/rpc.ts:26
↓ 5 callers
Function
formatPeekHuman
( thread: Thread, shortId: string | null, items: ThreadItem[], totalItems: number, truncated: boolea
src/commands/peek.ts:105
↓ 5 callers
Function
formatRequest
(method: string, params?: unknown)
src/client.test.ts:9
↓ 5 callers
Function
interpolateTemplate
( template: string, vars: Record<string, string>, )
src/config.ts:329
↓ 5 callers
Function
isProcessAlive
(pid: number)
src/process.ts:12
↓ 5 callers
Function
listGuardianDenials
(guardianDir: string)
src/guardian.ts:47
↓ 5 callers
Function
mutateThreadIndex
( stateDir: string, mutate: (index: ThreadIndex) => boolean | void, )
src/threads.ts:120
↓ 5 callers
Function
pickThreadRun
( stateDir: string, pidsDir: string, shortId: string, oldestLive = false, )
src/commands/follow.ts:141
↓ 5 callers
Function
record
(shortId: string, runId: string, logFile: string)
src/commands/threads.test.ts:46
↓ 5 callers
Function
record
(ws: WorkspacePaths, runId: string, pending: boolean)
src/commands/shared.test.ts:1864
↓ 5 callers
Function
renderFinalStatus
( status: string, detail: { elapsed?: string | null; filesChanged?: number; error?: string | null }, col
src/render.ts:186
↓ 5 callers
Function
runsDir
(stateDir: string)
src/threads.ts:258
↓ 5 callers
Function
stripDetachFlag
(args: string[])
src/commands/run.ts:61
↓ 5 callers
Function
tagExitCode
(e: unknown, code: number)
src/commands/shared.ts:185
↓ 5 callers
Function
validateEffort
(effort: string | undefined)
src/config.ts:195
↓ 5 callers
Function
validateIdOrDie
(id: string)
src/commands/shared.ts:209
↓ 4 callers
Function
buildJsonRpcError
(code: number, message: string, data?: unknown)
src/broker-server.ts:73
↓ 4 callers
Function
clearBrokerArtifacts
(stateDir: string, state: BrokerState)
src/broker.ts:230
↓ 4 callers
Function
deleteOldFiles
Delete files older than maxAgeMs in the given directory. With `recurse`, * descend one level into subdirectories (per-run log dirs under logs/) and
src/commands/threads.ts:513
↓ 4 callers
Method
drain
Flush an unterminated agent-output block (writer crashed mid-entry).
src/render.ts:67
↓ 4 callers
Method
getCommandsRun
()
src/events.ts:231
↓ 4 callers
Function
getDefaultBranch
(cwd: string)
src/git.ts:12
↓ 4 callers
Method
getFilesChanged
()
src/events.ts:227
↓ 4 callers
Function
loadSessionState
(stateDir: string)
src/broker.ts:128
↓ 4 callers
Function
pickWatchStartRun
(stateDir: string, pidsDir: string)
src/commands/follow.ts:123
↓ 4 callers
Function
readThreadLog
(stateDir: string, logsDir: string, shortId: string)
src/commands/threads.ts:274
↓ 4 callers
Function
rec
(over: Partial<RunRecord>)
src/commands/threads.test.ts:171
↓ 4 callers
Function
runFilePath
(stateDir: string, runId: string)
src/threads.ts:262
↓ 4 callers
Function
setActiveRunId
(id: string | undefined)
src/commands/shared.ts:616
↓ 4 callers
Function
setActiveShortId
(id: string | undefined)
src/commands/shared.ts:613
↓ 4 callers
Function
setActiveThreadId
(id: string | undefined)
src/commands/shared.ts:611
↓ 4 callers
Function
setActiveTurnId
(id: string | undefined)
src/commands/shared.ts:614
↓ 4 callers
Function
setActiveWsPaths
(ws: WorkspacePaths | undefined)
src/commands/shared.ts:615
↓ 4 callers
Function
showHelp
()
src/cli.ts:93
↓ 4 callers
Function
teardownBroker
(stateDir: string, state: BrokerState)
src/broker.ts:269
↓ 4 callers
Function
terminateProcessTree
(pid: number)
src/process.ts:33
↓ 3 callers
Function
armOrphanWatchdog
Arm the watchdog after a stream owner disconnects mid-turn. If * turn/completed doesn't arrive, force the orphaned turn to end so the * broker
src/broker-server.ts:175
↓ 3 callers
Function
candidateRuns
* Candidate runs for bare-follow selection, newest first. Run records whose * thread is no longer in the index are excluded: `delete` now removes the
src/commands/follow.ts:98
↓ 3 callers
Function
canonicalizePath
Canonicalize a path for workspace-scope comparisons. When the path does * not exist (deleted dirs, dangling entries), canonicalize the deepest * e
src/threads.ts:596
↓ 3 callers
Function
captureErrorMessage
(promise: Promise<unknown>)
src/client.test.ts:16
↓ 3 callers
Function
clientFor
(impl: () => Promise<unknown>)
src/commands/shared.test.ts:1777
↓ 3 callers
Function
clientThrowing
(err: Error)
src/commands/shared.test.ts:1811
↓ 3 callers
Function
collectNotifications
Collect notifications from a client into an array. Returns the array ref.
src/broker-server.test.ts:426
↓ 3 callers
Function
done
(value: boolean)
src/broker.ts:180
↓ 3 callers
Function
ensureLedgerVersion
(stateDir: string)
src/threads.ts:302
↓ 3 callers
Method
fail
Report an unexpected connection loss: reject pending requests with the * given reason and fire onClose handlers once. No-op after markClosed().
src/rpc.ts:169
↓ 3 callers
Function
getLatestRun
(stateDir: string, shortId: string)
src/threads.ts:423
↓ 3 callers
Method
getTurnOutput
Output for `TurnResult.output`, with precedence: * 1. `reviewOutput` — set from an `exitedReviewMode` item; for review turns * this is the
src/events.ts:223
↓ 3 callers
Function
git
Run a git command synchronously with a 5-second timeout.
src/git.ts:6
↓ 3 callers
Function
groupAlive
()
src/client.ts:135
↓ 3 callers
Method
handleDelta
(method: string, params: DeltaParams)
src/events.ts:130
↓ 3 callers
Method
handleFileChangeApproval
(req: FileChangeApprovalRequest, signal?: AbortSignal)
src/approvals.ts:15
↓ 3 callers
Method
handleGuardianWarning
guardianWarning: a human-facing message about a Guardian decision. Fires * on denials AND on risky approvals ("Automatic approval review approved
src/events.ts:199
↓ 3 callers
Method
handleItemStarted
(params: ItemStartedParams)
src/events.ts:43
↓ 3 callers
Method
isClosed
True after markClosed().
src/rpc.ts:174
↓ 3 callers
Function
isKnownItem
(item: ThreadItem)
src/types.ts:202
↓ 3 callers
Function
killTree
Signal the app-server's process group (Unix, detached) with a fallback * to the direct child; plain child kill elsewhere.
src/client.ts:113
↓ 3 callers
Function
lockAgeMs
Age of the lock file in ms, or null if it cannot be statted.
src/lock.ts:55
↓ 3 callers
Method
notifyPending
(pending: PendingApproval | null)
src/approvals.ts:68
↓ 3 callers
Method
on
Register a handler for server-sent notifications. Returns an unsubscribe function.
src/client.ts:54
↓ 3 callers
Function
recordRunFailure
( ws: WorkspacePaths, threadId: string, runId: string, error: unknown, )
src/commands/shared.ts:1184
↓ 3 callers
Function
rejectAllPending
(reason: string)
src/rpc.ts:208
↓ 3 callers
Function
removeThread
(stateDir: string, shortId: string)
src/threads.ts:247
↓ 3 callers
Function
resolveRunLogPath
( stateDir: string, logsDir: string, run: RunRecord, globalLogsDir: string = config.logsDir, )
src/commands/threads.ts:223
↓ 3 callers
Function
resolveThreadIdAllowRaw
( stateDir: string, id: string, )
src/commands/shared.ts:236
↓ 3 callers
Function
runLogRelPath
(shortId: string, runId: string)
src/threads.ts:274
↓ 3 callers
Function
saveUserConfig
(cfg: UserConfig)
src/commands/shared.ts:533
↓ 3 callers
Function
sweepGroup
After the direct child is gone, its detached process group can still * hold descendants (the group id stays reserved while any member lives). *
src/client.ts:132
← previous
next →
101–200 of 413, ranked by callers