UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

21 lines (20 loc) • 1.24 kB
/** * The run's telling of the files a restore LEFT as they are (`FileHistoryRestoreResult.leftAsIs`, whatever their class): the run's * note on `rewindNotes` and the person's notice once per session per file and class. Domain machinery the file-history phase calls * after its restore settled, beside the other once-per-session notice seats; the out-of-run verb answers its rows and tells nothing. * The sentences themselves are minted with the restore's reading (`./file-history-restore.ts`). */ import type { FileHistoryRestoreResult } from "../file-history-store.js"; import type { RunnerDeps, TaskResult } from "../types.js"; import { type AnnounceOnceLedger } from "./announce-once-ledger.js"; /** The note ({@link restoreLeftAsIsNote}) and, once per session per file and class (keyed on the history scope, the class and the * key), the notice ({@link fileLeftAsIsNotice}). Nothing when the restore left no file. */ export declare function tellLeftAsIs(input: { restored: FileHistoryRestoreResult; target: string; scope: string; sessionId: string; rewindNotes: NonNullable<TaskResult["rewindNotes"]>; onceLedger: Pick<AnnounceOnceLedger, "oncePerSession">; onNotice: RunnerDeps["onNotice"]; }): void;