StandalonePrCriticDeps
Defined in: src/standalone-critic.ts:80
Properties
Section titled “Properties”computePatchId?
Section titled “computePatchId?”
optionalcomputePatchId?: (worktreePath,base) =>Promise<{baseSha:string|null;files:string[];patchId:string|null; }>
Defined in: src/standalone-critic.ts:116
Injectable diff fingerprint (default: real git patch-id). See ReviewService for the
patchId/baseSha/files contract — identical here.
Parameters
Section titled “Parameters”worktreePath
Section titled “worktreePath”string
string
Returns
Section titled “Returns”Promise<{ baseSha: string | null; files: string[]; patchId: string | null; }>
concurrency?
Section titled “concurrency?”
optionalconcurrency?:number
Defined in: src/standalone-critic.ts:109
Global in-flight cap across ALL repos (inFlight + starting). Default 2.
detectBackend?
Section titled “detectBackend?”
optionaldetectBackend?: () =>SandboxBackend
Defined in: src/standalone-critic.ts:124
Injectable sandbox backend probe seam (tests inject () => null so no real bwrap is
spawned). Presence-checked (not ??) because the seam legitimately returns null.
Returns
Section titled “Returns”herdr:
Pick<HerdrDriver,"start"|"stop">
Defined in: src/standalone-critic.ts:91
optionallog?: (msg) =>void
Defined in: src/standalone-critic.ts:111
Deferral/skip logging. Default console.log/console.warn.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
managedBranches
Section titled “managedBranches”managedBranches: (
repoPath) =>Set<string>
Defined in: src/standalone-critic.ts:104
Head branch names currently owned by a LIVE session, per repo. Called at the TOP of every
sweep (rebuilt fresh from live sessions) and injected as a thunk — NEVER cached on the
instance — so a session that starts/ends between sweeps is reflected immediately. Used to
skip a PR the session critic already owns (only when that repo’s criticEnabled is on; with
it off, the standalone critic is the ONLY reviewer and must cover those PRs too).
Parameters
Section titled “Parameters”repoPath
Section titled “repoPath”string
Returns
Section titled “Returns”Set<string>
membraneEnv?
Section titled “membraneEnv?”
optionalmembraneEnv?: () =>object
Defined in: src/standalone-critic.ts:126
Injectable membrane env seam (tests inject a stub so no host paths are touched).
Returns
Section titled “Returns”object
claudeDir
Section titled “claudeDir”claudeDir:
string
extraEnv?
Section titled “extraEnv?”
optionalextraEnv?:Record<string,string>
home:
string
nodeBinReal
Section titled “nodeBinReal”nodeBinReal:
string
model?
Section titled “model?”
optionalmodel?:string|null
Defined in: src/standalone-critic.ts:105
optionalnow?: () =>number
Defined in: src/standalone-critic.ts:106
Returns
Section titled “Returns”number
readUsage?
Section titled “readUsage?”
optionalreadUsage?: (worktreePath,criticSessionId) =>Promise<SessionUsage|null>
Defined in: src/standalone-critic.ts:121
Injectable reader of a finished reviewer’s token totals (default: readSessionUsage).
Parameters
Section titled “Parameters”worktreePath
Section titled “worktreePath”string
criticSessionId
Section titled “criticSessionId”string
Returns
Section titled “Returns”Promise<SessionUsage | null>
readVerdict?
Section titled “readVerdict?”
optionalreadVerdict?: (worktreePath) =>VerdictRead<RawVerdict>
Defined in: src/standalone-critic.ts:113
Injectable verdict reader (default: read VERDICT_FILE from the worktree).
Parameters
Section titled “Parameters”worktreePath
Section titled “worktreePath”string
Returns
Section titled “Returns”repos: () =>
string[]
Defined in: src/standalone-critic.ts:96
Candidate repos to consider each sweep. The sweep itself filters to those with
criticAllPrs ON (read live, so a toggle takes effect on the next sweep).
Returns
Section titled “Returns”string[]
resolveForge
Section titled “resolveForge”resolveForge: (
repoPath) =>GitForge|null
Defined in: src/standalone-critic.ts:93
Parameters
Section titled “Parameters”repoPath
Section titled “repoPath”string
Returns
Section titled “Returns”GitForge | null
store:
Pick<SessionStore,"getRepoConfig"|"getPrReview"|"putPrReview"|"bumpPrReviewHead"|"recordReviewerSpawn"|"completeReviewerSpawn"|"listEpicCompleted">
Defined in: src/standalone-critic.ts:81
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: src/standalone-critic.ts:107
worktree
Section titled “worktree”worktree:
Pick<WorktreeMgr,"createDetached"|"remove"|"gitCommonDir">
Defined in: src/standalone-critic.ts:92