/** * Where a run's subagents leave their transcripts, in its run directory. * * A subagent's home is its memory scope's path when it has one, its visit's * otherwise, and its files are `/.jsonl` and `.html`: one pi * session is one replayable file, however many visits it served. A name * already taken, by an earlier life or by the subagent a timeout replaced, * takes the first free `~n`. A subagent's delegated children go in * `.children/`, named after their ids, and theirs under them. */ import type { Agent } from "../../agent.ts"; import type { Subagent, SpawnOptions } from "../../subagent.ts"; import type { SpawnFn } from "../../workflows/options.ts"; /** The transcripts of one life of a run. */ export declare class Transcripts { private readonly runDir; /** Each subagent's files, without the extension, by id: where its children go. */ private readonly files; /** The names handed out in this life, whose files are not written until their subagent closes. */ private readonly taken; constructor(runDir: string); /** Spawns `agent` with `options` through `spawn`, exporting into `home`, a path in the run directory. */ atHome(spawn: SpawnFn, agent: Agent, options: SpawnOptions, home: string): Promise; /** `spawn`, placing each child beside its parent's files, the one its options name as `parentId`. */ children(spawn: SpawnFn): SpawnFn; private spawned; } //# sourceMappingURL=transcripts.d.ts.map