UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

20 lines • 1.1 kB
import { type MemoryReportSessionSource } from "./memory-report-registry.ts"; export type MemoryReportOutcome = { readonly ok: true; readonly path: string; readonly heapSnapshot?: string; } | { readonly ok: false; readonly error: string; }; /** `<session>.jsonl` keeps its reports in `<session>-artifacts/memory/`, beside the eval artifacts. */ export declare function memoryReportDir(sessionFile: string | undefined, sessionId?: string): string; /** * Writes one report per session into its artifacts directory, and at most one heap snapshot (with the * snapshot flag) shared by every report of this request. A failure is one stderr line and an error * outcome for that session, never a throw: the report must not take the session down. */ export declare function writeMemoryReports(sources: readonly MemoryReportSessionSource[]): Promise<MemoryReportOutcome[]>; /** Installs the `SIGUSR2` trigger when the flag is on (POSIX only); otherwise installs nothing. */ export declare function installMemoryReportSignal(): () => void; //# sourceMappingURL=memory-report-write.d.ts.map