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 166 to 167

Compare

+18 −0 in 1 place
Lines 27–50 at 167 (were 27–32 at 166)
2727 if (this.take() !== '"') throw Error("expected JSON string");
2828 let buffer = "";
2929 for (;;) {
30+ // Copy ordinary text in bounded slices instead of allocating a string
31+ // concatenation for every character of a large canonical field.
32+ this.peek();
33+ const start = this.#offset;
34+ const end = Math.min(this.#chunk.length, start + 16384 - buffer.length);
35+ while (this.#offset < end) {
36+ const code = this.#chunk.charCodeAt(this.#offset);
37+ if (code < 32 || code === 34 || code === 92) break;
38+ this.#offset++;
39+ }
40+ if (this.#offset > start) {
41+ buffer += this.#chunk.slice(start, this.#offset);
42+ if (buffer.length === 16384) {
43+ yield buffer;
44+ buffer = "";
45+ }
46+ continue;
47+ }
3048 let char = this.take();
3149 if (char === '"') {
3250 if (buffer) yield buffer;
MCP
compare on this site's /mcp
CLI
abso diff 166 167 server/src/json-chunk-cursor.ts --json
JSON
/christopher/abso-core/compare/166..167?file=server%2Fsrc%2Fjson-chunk-cursor.ts&format=json