WriteDebugDumpInput
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/debugDump.ts:25
Input to writeDebugDump.
Properties
Section titled “Properties”config
Section titled “config”config:
unknown
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/debugDump.ts:29
The resolved effective config (the live GthConfig). Opaque — serialized as JSON.
optionalcwd?:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/debugDump.ts:44
Working directory for git-state collection. Defaults to process.cwd(); overridable for
tests so the “not a git repo” / “inside a git repo” paths are both exercisable without
depending on where the test runner happens to execute.
modelDisplayName?
Section titled “modelDisplayName?”
optionalmodelDisplayName?:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/debugDump.ts:31
Model display name, already resolved by the caller.
modelRequest?
Section titled “modelRequest?”
optionalmodelRequest?:LastModelRequest
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/debugDump.ts:55
GS2-56 — the always-on snapshot of the last model request (the composed system prompt, tool
defs with schema, model params, tool-choice, and the AS-SENT post-summarization messages),
threaded straight from agent.lastModelRequest by the caller (both the TUI and the readline
--no-tui surface). ADDITIVE & optional: when present, writeDebugDump writes
model-request.json (the extras) and model-messages.json (the as-sent messages, distinct
from the conversation-view transcript.json), both routed through the same redaction pass as
every other artifact. Absent (no model call yet / a surface with no agent handle) ⇒ those two
files are simply omitted.
redact?
Section titled “redact?”
optionalredact?:boolean
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/debugDump.ts:38
GS2-47 — apply the shared secret-redaction pass to every artifact before writing. Defaults to
ON: omitted or any value other than the literal false redacts (read-site !== false, matching
the config default so an opt-out has to be explicit). false writes a RAW archive (the caller
is then responsible for the loud “may contain secrets” warning).
transcript
Section titled “transcript”transcript:
unknown
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/debugDump.ts:27
The full transcript (all turns, tool calls + results). Opaque — serialized as JSON.