/** * [WHO]: TeamTranscriptWriter * [FROM]: Depends on node:fs/promises, node:path * [TO]: Consumed by team-runtime.ts * [HERE]: extensions/builtin/team/team-transcript.ts - per-teammate JSONL transcripts * * Per refactor plan §B.7: each teammate keeps an independent transcript file * for offline observation and debugging. Format is JSONL — one entry per * line — under `/transcripts/.jsonl`. * * Writes are best-effort and never throw into the runtime hot path. */ export interface TranscriptEntry { timestamp: number; kind: "leader" | "teammate" | "event"; content: string; meta?: Record; } export declare class TeamTranscriptWriter { private readonly dir; private dirReady; constructor(storageDir: string); private ensureDir; private fileFor; /** Append one entry to the teammate's transcript. Never throws. */ append(teammateId: string, entry: TranscriptEntry): Promise; /** Remove a teammate's transcript file (called on terminate). */ remove(teammateId: string): Promise; /** Storage directory used for transcripts. */ get directory(): string; }