UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

15 lines (14 loc) • 948 B
import { type FileHistoryLimitSource, type FileHistoryStore } from "../file-history-store.js"; import { type ContractAssertionRunner } from "./contract-harness.js"; export declare function fileHistoryStoreContract(make: () => FileHistoryStore, runAssertion?: ContractAssertionRunner, onOptionalMember?: (report: { member: "blobExchange" | "readBoundaries" | "sizeLimit"; status: "verified" | "absent"; }) => void, /** The binding's bounded store, for the `too_large` cell: `capped()` returns a FRESH, empty store that refuses one stored copy over * `bytes` (a whole number, 2 or more) and names `source` as where the bound comes from — the bundled stores' `maxBlobBytes` * (`store_option`), or a backend's own bound (`backend`). Absent ⇒ the cell is reported `sizeLimit: absent`. */ limits?: { readonly capped: () => FileHistoryStore; readonly bytes: number; readonly source: FileHistoryLimitSource; }): Promise<void>;