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
↓ 96 callers
Method
close
Close the connection and terminate the server process. * On Unix: close stdin -> wait 5s -> SIGTERM -> wait 3s -> SIGKILL, * signalling the ap
src/client.ts:73
↓ 84 callers
Method
request
Send a request and wait for a response. Rejects on timeout, error, or connection loss.
src/rpc.ts:149
↓ 68 callers
Function
createRun
(stateDir: string, record: RunRecord)
src/threads.ts:278
↓ 68 callers
Method
log
(entry: string)
src/events.ts:267
↓ 59 callers
Function
parseOptions
(args: string[])
src/commands/shared.ts:296
↓ 58 callers
Function
emit
(method: string, params: unknown)
src/turns.test.ts:59
↓ 49 callers
Method
connectAndInit
Connect and perform the initialize handshake.
src/broker-server.test.ts:338
↓ 47 callers
Function
record
(runId: string, shortId: string, status: RunStatus, startedAt: string)
src/commands/follow.test.ts:28
↓ 44 callers
Method
on
Register a handler for server-sent notifications. Returns an unsubscribe function.
src/rpc.ts:153
↓ 40 callers
Function
createMockCodex
* Create a mock codex CLI script that speaks JSON-RPC when invoked as * `codex app-server`. The mock handles initialize, thread/start, turn/start, *
src/broker-server.test.ts:47
↓ 40 callers
Function
spawnBroker
Spawn broker-server as a subprocess with the mock codex on PATH.
src/broker-server.test.ts:233
↓ 40 callers
Function
waitForSocket
Wait for the broker socket to become connectable.
src/broker-server.test.ts:267
↓ 38 callers
Function
die
(msg: string)
src/commands/shared.ts:152
↓ 37 callers
Function
buildMockClient
* Build a mock AppServerClient with an exposed emit() for firing notifications * and a custom request handler. All boilerplate (on, onRequest, notify
src/turns.test.ts:52
↓ 36 callers
Function
makeRun
(overrides: Partial<RunRecord> = {})
src/threads.test.ts:253
↓ 34 callers
Function
loadThreadIndex
(stateDir: string)
src/threads.ts:61
↓ 33 callers
Function
runTurn
( client: AppServerClient, threadId: string, input: UserInput[], opts: TurnOptions, )
src/turns.ts:96
↓ 31 callers
Function
inProgressTurn
Standard in-progress turn response.
src/turns.test.ts:113
↓ 27 callers
Function
completedTurn
Standard turn/completed notification payload.
src/turns.test.ts:105
↓ 24 callers
Function
migrateGlobalState
(cwd: string, globalDataDir?: string)
src/threads.ts:693
↓ 22 callers
Function
freshDirs
(name: string)
src/commands/follow.test.ts:12
↓ 22 callers
Function
run
(...args: string[])
src/cli.test.ts:23
↓ 21 callers
Function
progress
(text: string)
src/commands/shared.ts:249
↓ 21 callers
Function
saveThreadIndex
(stateDir: string, index: ThreadIndex)
src/threads.ts:112
↓ 20 callers
Function
createIndexedRun
createRun + a matching thread-index entry — the bare-follow pickers skip * runs whose thread is missing from the index (orphan protection).
src/commands/follow.test.ts:21
↓ 20 callers
Function
defaultOptions
()
src/commands/shared.ts:253
↓ 19 callers
Function
connectToBroker
(opts: BrokerClientOptions)
src/broker-client.ts:29
↓ 19 callers
Function
listRuns
(stateDir: string, opts?: { sessionId?: string })
src/threads.ts:400
↓ 18 callers
Function
computeWsStateDir
* Helper: compute the workspace state dir that migrateGlobalState will use. * Mirrors workspaceDirName logic in threads.ts.
src/threads.test.ts:659
↓ 17 callers
Function
style
(text: string, codes: string[], color: boolean)
src/render.ts:108
↓ 17 callers
Function
turn
(items: ThreadItem[], status: Turn["status"] = "completed")
src/commands/peek.test.ts:21
↓ 17 callers
Function
userItem
(text: string, id: string = "u1")
src/commands/peek.test.ts:5
↓ 16 callers
Function
checkSocketSupport
()
src/broker.test.ts:380
↓ 16 callers
Function
renderEntry
(entry: LogEntry, opts: RenderOptions)
src/render.ts:128
↓ 15 callers
Function
freshWorkspace
(name: string)
src/commands/shared.test.ts:38
↓ 15 callers
Function
runCli
(args: string[], env?: Record<string, string>)
src/integration.test.ts:27
↓ 15 callers
Function
writeGlobalThreads
(globalDataDir: string, mapping: ThreadIndex)
src/threads.test.ts:682
↓ 14 callers
Function
entry
(body: string, extra: string[] = [])
src/render.test.ts:52
↓ 14 callers
Method
handleCommandApproval
(req: CommandApprovalRequest, signal?: AbortSignal)
src/approvals.ts:14
↓ 14 callers
Function
parseMessage
(line: string)
src/rpc.ts:38
↓ 14 callers
Function
replayBound
(stateDir: string, run: RunRecord)
src/commands/follow.ts:172
↓ 13 callers
Function
agentItem
(text: string, id: string = "a1")
src/commands/peek.test.ts:13
↓ 12 callers
Function
getWorkspacePaths
(cwd: string)
src/commands/shared.ts:70
↓ 12 callers
Method
handleAutoApprovalReview
Surface Guardian (auto_review) approval reviews in the progress stream * so autonomous permit/reject decisions stay auditable. Observed 0.142 *
src/events.ts:146
↓ 12 callers
Function
hasFlagValue
True iff argv[i+1] exists and is usable as the value of the flag at * argv[i]. A next token that looks like another flag is rejected — silently *
src/commands/shared.ts:290
↓ 12 callers
Function
m
(id: string, opts: { upgrade?: string; isDefault?: boolean } = {})
src/commands/shared.test.ts:748
↓ 12 callers
Function
pruneRuns
(stateDir: string, maxRuns?: number)
src/threads.ts:452
↓ 12 callers
Function
selectPeekItems
( turns: Turn[], limit: number, full: boolean, )
src/commands/peek.ts:33
↓ 12 callers
Function
turnOverrides
(opts: Options)
src/commands/shared.ts:1038
↓ 11 callers
Method
connect
(sockPath: string)
src/broker-server.test.ts:323
↓ 11 callers
Function
createMockBroker
( sockPath: string, onConnection?: ConnectionHandler, )
src/broker.test.ts:557
↓ 11 callers
Function
formatDuration
(ms: number)
src/commands/shared.ts:1057
↓ 11 callers
Function
freshTmpDir
(name: string)
src/commands/shared.test.ts:32
↓ 11 callers
Function
isBrokerBusyError
(e: unknown)
src/broker.ts:22
↓ 11 callers
Function
loadRun
(stateDir: string, runId: string)
src/threads.ts:337
↓ 11 callers
Function
runApplyConfig
( configJson: string, explicitFlags: string[] = [], checkExpression: string, )
src/commands/shared.test.ts:980
↓ 11 callers
Function
startOrResumeThread
( client: AppServerClient, opts: Options, ws: WorkspacePaths, extraStartParams?: Record<string, unknow
src/commands/shared.ts:822
↓ 10 callers
Function
deniedNotification
(overrides: Partial<AutoApprovalReviewParams> = {})
src/guardian.test.ts:26
↓ 10 callers
Method
feed
Feed raw incoming bytes; complete lines are parsed and dispatched.
src/rpc.ts:147
↓ 10 callers
Method
handleItemCompleted
(params: ItemCompletedParams)
src/events.ts:57
↓ 10 callers
Method
progress
(text: string)
src/events.ts:261
↓ 10 callers
Function
saveGuardianDenial
( guardianDir: string, params: AutoApprovalReviewParams, )
src/guardian.ts:26
↓ 10 callers
Function
send
(socket: net.Socket, message: Record<string, unknown>)
src/broker-server.ts:77
↓ 9 callers
Function
findShortId
(stateDir: string, threadId: string)
src/threads.ts:194
↓ 9 callers
Function
loadBrokerState
(stateDir: string)
src/broker.ts:78
↓ 9 callers
Function
makeThread
(overrides: Partial<Thread> = {})
src/commands/peek.test.ts:126
↓ 9 callers
Function
nextUnseenRun
( stateDir: string, seen: ReadonlySet<string>, scopedShortId: string | null, )
src/commands/follow.ts:201
↓ 9 callers
Function
parseEndpoint
(endpoint: string)
src/broker.ts:59
↓ 9 callers
Function
parseTemplateFrontmatter
(raw: string)
src/config.ts:217
↓ 9 callers
Function
resolveThreadId
( stateDir: string, id: string, )
src/threads.ts:164
↓ 9 callers
Method
send
(msg: Record<string, unknown>)
src/broker-server.test.ts:378
↓ 9 callers
Function
threadStartResponse
(threadId: string, cwd: string)
src/commands/shared.test.ts:55
↓ 9 callers
Function
validateGitRef
(value: string, label: string)
src/commands/shared.ts:201
↓ 9 callers
Function
waitFor
Wait for a condition to become true within a timeout.
src/broker-server.test.ts:435
↓ 9 callers
Function
withClient
(fn: (client: AppServerClient) => Promise<T>, cwd?: string, streaming = false)
src/commands/shared.ts:665
↓ 8 callers
Function
isPathInside
(candidate: string, root: string)
src/config.ts:41
↓ 8 callers
Function
isThreadProcessAlive
(pidsDir: string, shortId: string)
src/commands/shared.ts:1263
↓ 8 callers
Function
listRunsForThread
(stateDir: string, shortId: string)
src/threads.ts:419
↓ 8 callers
Function
loadTemplate
(name: string, promptsDir?: string)
src/config.ts:253
↓ 8 callers
Method
onRequest
Register a handler for server-sent requests. One handler per method; * new registrations replace previous ones (with a warning).
src/rpc.ts:158
↓ 8 callers
Function
pickBestModel
(models: Model[])
src/commands/shared.ts:727
↓ 8 callers
Function
record
(overrides: Partial<AutoApprovalReviewParams> = {})
src/guardian.test.ts:41
↓ 8 callers
Function
recordingClient
Mock client that records calls and answers from a method→response map. * Unlisted methods resolve to {} so incidental RPCs (thread/name/set) *
src/commands/shared.test.ts:1313
↓ 8 callers
Function
resolveWorkspaceDir
(cwd: string)
src/config.ts:137
↓ 8 callers
Function
runIsLive
(run: RunRecord, pidsDir: string)
src/commands/follow.ts:79
↓ 8 callers
Function
updateThreadStatus
( stateDir: string, threadId: string, status: NonNullable<ThreadIndexEntry["lastStatus"]>, )
src/threads.ts:229
↓ 8 callers
Function
validateId
(id: string)
src/config.ts:119
↓ 7 callers
Function
exitCodeForError
(e: unknown)
src/commands/shared.ts:193
↓ 7 callers
Function
extractAgentOutputBlocks
(content: string)
src/commands/threads.ts:299
↓ 7 callers
Method
flush
()
src/events.ts:250
↓ 7 callers
Function
hoursAgo
(h: number)
src/threads.test.ts:439
↓ 7 callers
Function
mapGuardianAction
(action: Record<string, unknown>)
src/guardian.ts:120
↓ 7 callers
Function
pickLastOutput
(rec: RunRecord | null, logContent: string)
src/commands/threads.ts:331
↓ 7 callers
Function
registerThread
( stateDir: string, threadId: string, meta?: Partial<Pick<ThreadIndexEntry, "model" | "cwd" | "preview"
src/threads.ts:130
↓ 7 callers
Function
resetIdleTimer
()
src/broker-server.ts:160
↓ 7 callers
Function
resolveApproval
(mode: ApprovalMode)
src/commands/shared.ts:1020
↓ 7 callers
Function
resolveGuardianDenial
( guardianDir: string, idOrPrefix: string, )
src/guardian.ts:67
↓ 7 callers
Function
runReview
( client: AppServerClient, threadId: string, target: ReviewTarget, opts: ReviewOptions, )
src/turns.ts:120
↓ 7 callers
Function
tryServerDelete
(client: AppServerClient, threadId: string)
src/commands/shared.ts:1300
↓ 7 callers
Function
updateRun
(stateDir: string, runId: string, patch: RunPatch)
src/threads.ts:379
next →
1–100 of 413, ranked by callers