Ask a question to get started
Enter to sendā¢Shift+Enter new line
TranscriptStore( self, root: Path, *, retention_revisions: int = DEFAULT_RETENTION_REVISIONS )
root
Path
Directory that will contain per-thread transcript files.
retention_revisions
int
DEFAULT_RETENTION_REVISIONS
Maximum prior .bak-* revisions retained per transcript after each rewrite.
.bak-*
Return the materialized path for a thread transcript.
Return the materialized path for a subagent transcript.
Append redacted message projections to the in-memory buffer.
Flush pending records and return the client-readable path.
Materialization rewrites the whole per-thread JSONL file, so it runs under a cross-process advisory lock and re-reads the on-disk records first, merging in anything another dcode process appended since this process last loaded the file.
Return the current revision id without forcing a flush.
Append-only JSONL transcript projections owned by the client process.