Skip to content

StandalonePrCriticDeps

Defined in: src/standalone-critic.ts:80

optional computePatchId?: (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.

string

string

Promise<{ baseSha: string | null; files: string[]; patchId: string | null; }>


optional concurrency?: number

Defined in: src/standalone-critic.ts:109

Global in-flight cap across ALL repos (inFlight + starting). Default 2.


optional detectBackend?: () => 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.

SandboxBackend


herdr: Pick<HerdrDriver, "start" | "stop">

Defined in: src/standalone-critic.ts:91


optional log?: (msg) => void

Defined in: src/standalone-critic.ts:111

Deferral/skip logging. Default console.log/console.warn.

string

void


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).

string

Set<string>


optional membraneEnv?: () => object

Defined in: src/standalone-critic.ts:126

Injectable membrane env seam (tests inject a stub so no host paths are touched).

object

claudeDir: string

optional extraEnv?: Record<string, string>

home: string

nodeBinReal: string


optional model?: string | null

Defined in: src/standalone-critic.ts:105


optional now?: () => number

Defined in: src/standalone-critic.ts:106

number


optional readUsage?: (worktreePath, criticSessionId) => Promise<SessionUsage | null>

Defined in: src/standalone-critic.ts:121

Injectable reader of a finished reviewer’s token totals (default: readSessionUsage).

string

string

Promise<SessionUsage | null>


optional readVerdict?: (worktreePath) => VerdictRead<RawVerdict>

Defined in: src/standalone-critic.ts:113

Injectable verdict reader (default: read VERDICT_FILE from the worktree).

string

VerdictRead<RawVerdict>


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).

string[]


resolveForge: (repoPath) => GitForge | null

Defined in: src/standalone-critic.ts:93

string

GitForge | null


store: Pick<SessionStore, "getRepoConfig" | "getPrReview" | "putPrReview" | "bumpPrReviewHead" | "recordReviewerSpawn" | "completeReviewerSpawn" | "listEpicCompleted">

Defined in: src/standalone-critic.ts:81


optional timeoutMs?: number

Defined in: src/standalone-critic.ts:107


worktree: Pick<WorktreeMgr, "createDetached" | "remove" | "gitCommonDir">

Defined in: src/standalone-critic.ts:92