Skip to content

DocAgentDeps

Defined in: src/doc-agent.ts:103

optional buildPrompt?: (base) => string

Defined in: src/doc-agent.ts:131

string

string


optional dayKey?: (now) => string

Defined in: src/doc-agent.ts:120

Local YYYY-MM-DD for now — the nightly once/day key.

number

string


optional detectBackend?: () => SandboxBackend

Defined in: src/doc-agent.ts:122

SandboxBackend


optional fileExists?: (p) => boolean

Defined in: src/doc-agent.ts:129

string

boolean


optional git?: (cwd, args) => Promise<string>

Defined in: src/doc-agent.ts:121

string

string[]

Promise<string>


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

Defined in: src/doc-agent.ts:104


optional membraneEnv?: () => object

Defined in: src/doc-agent.ts:123

object

claudeDir: string

optional extraEnv?: Record<string, string>

home: string

nodeBinReal: string


optional model?: string | null

Defined in: src/doc-agent.ts:112


optional nightlyHour?: number

Defined in: src/doc-agent.ts:117

Local hour (0–23) at/after which the nightly sweep evaluates a repo.


optional now?: () => number

Defined in: src/doc-agent.ts:114

number


optional onChange?: (f) => void

Defined in: src/doc-agent.ts:113

DocAgentFinalize

void


optional readSentinel?: (worktreePath) => string | null

Defined in: src/doc-agent.ts:130

string

string | null


repos: () => string[]

Defined in: src/doc-agent.ts:109

Repos to enumerate in the boot orphan-sweep (herdr-independent worktree prune) and the nightly cadence sweep.

string[]


resolveForge: (repoPath) => GitForge | null

Defined in: src/doc-agent.ts:106

string

GitForge | null


store: Pick<SessionStore, "getSetting" | "setSetting">

Defined in: src/doc-agent.ts:111

Persisted per-repo cadence markers (last-sha / nightly-day / merged-seen).


optional timeoutMs?: number

Defined in: src/doc-agent.ts:115


worktree: Pick<WorktreeMgr, "create" | "remove" | "gitCommonDir" | "ensureBaseRef">

Defined in: src/doc-agent.ts:105