Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 274 to 275

Compare

+13 −1 in 1 place
Lines 9–32 at 275 (were 9–20 at 274)
99 */
1010export const DEFINITION_CODE_IN_MEMORY = 4_000_000;
1111
12+let inMemoryLimit = DEFINITION_CODE_IN_MEMORY;
14+/**
15+ * Tests only: the in-memory limit for every later call, so a small file takes the scratch path (abso's kept-reader
16+ * test checks scratch is let go). Answers the limit it replaces, to put back.
17+ */
18+export function setDefinitionCodeInMemory(limit: number): number {
19+ const before = inMemoryLimit;
20+ inMemoryLimit = limit;
21+ return before;
22+}
1224/** Parsed code is temporary derived data, discarded with the scratch transaction. */
1325export function withDefinitionCode<T>(
1426 view: ReadView,
1527 visible: readonly VisibleLine[],
1628 operation: (code: readonly string[]) => T,
17− inMemory = DEFINITION_CODE_IN_MEMORY,
29+ inMemory = inMemoryLimit,
1830): T {
1931 function* source() {
2032 for (const line of visible) yield line.text;
MCP
compare on this site's /mcp
CLI
abso diff 274 275 worker/project/definition-code.ts --json
JSON
/christopher/abso-core/compare/274..275?file=worker%2Fproject%2Fdefinition-code.ts&format=json