Versions 2 to 318
new file, 125 lines
3+
11+
19+
21+
27+ super(`Not recorded: ${path} needs a ${bytes}-byte record request by itself, over the ${budget}-byte limit.`);
34+
46+
58+
60+export function batchRecordItems(items: readonly RecordItem[], budget = RECORD_BODY_BUDGET): RecordBatch[] {
72+ if (current.length === 0) throw new RecordItemTooLargeError(item.path, serializedRecordBytes(candidate), budget);
82+
91+
92+/** Retry only an outcome that may have been accepted; an identical record is a no-op once its state landed. */
93+export async function sendRecordBatch(api: RecordApi, batch: RecordBatch): Promise<RecordAnswer> {
101+ (error.status !== undefined && (error.status < 200 || (error.status >= 300 && error.status < 500)))
104+ // The server diffs whole-file state against the agent's current view. Replaying these exact maps is idempotent.
108+
120+ if (!answer.ok) throw new Error(`the server refused the record: ${answer.reason ?? "no reason given"}`);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 2 318 client/src/record-batches.ts --json
- JSON
- /christopher/abso-core/compare/2..318?file=client%2Fsrc%2Frecord-batches.ts&format=json