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 162 to 318

Compare

+7 −2 in 2 places
Lines 6–15 at 318 (were 6–12 at 162)
66 | { kind: "value"; value: number | boolean | null };
77
88/** Structural JSON decoding. Retains nesting and one bounded string fragment, not a decoded tree. */
9−export function* jsonEvents(chunks: Iterable<string>): IterableIterator<JsonEvent> {
9+export function* jsonEvents(
10+ chunks: Iterable<string>,
11+ options: { finiteNumbers?: boolean } = {},
12+): IterableIterator<JsonEvent> {
1013 const cursor = new JsonChunkCursor(chunks);
1114 const whitespace = () => {
1215 while (cursor.peek() !== undefined && /[ \t\n\r]/.test(cursor.peek()!)) cursor.take();
Lines 64–72 at 318 (were 61–67 at 162)
6164 yield { kind: "value", value: token === "null" ? null : token === "true" };
6265 } else {
6366 if (!/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$/.test(token)) throw Error("invalid JSON scalar");
64− yield { kind: "value", value: Number(token) };
67+ const number = Number(token);
68+ if (options.finiteNumbers && !Number.isFinite(number)) throw Error("non-finite JSON number");
69+ yield { kind: "value", value: number };
6570 }
6671 }
6772 try {
MCP
compare on this site's /mcp
CLI
abso diff 162 318 server/src/json-events.ts --json
JSON
/christopher/abso-core/compare/162..318?file=server%2Fsrc%2Fjson-events.ts&format=json