Skip to content

writeDebugDump

writeDebugDump(input): WriteDebugDumpResult

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/debugDump.ts:298

Write one timestamped /debug-dump archive under the GLOBAL ~/.gsloth/debug-dumps/<timestamp>/ (via ensureGlobalGslothDir() — mirrors how resolveHistoryDbPath() builds its path under the same dir — NOT the per-project cwd-relative helper of the same name elsewhere in this codebase). Contains: the full transcript, the resolved config, env/version info, the in-memory debugLog ring buffer, and (best-effort) git repo state.

GS2-47 — unless input.redact === false, the shared secret-redaction pass (file://./redactSecrets.ts) is applied to EVERY artifact before it is written: the literal values of secret-named env vars + inline config secrets are substituted everywhere, a tight set of provider-key/auth-header patterns is masked, and the config’s sensitive fields are masked in place. On opt-out the archive is raw and the caller surfaces the loud “may contain secrets” warning.

WriteDebugDumpInput

WriteDebugDumpResult