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 299 to 300

Compare

+16 −3 in 3 places
Lines 286–293 at 300 (were 286–292 at 299)
286286
287287/** A project's calls, and its issues, asks and news, which the open server keeps at /issues/p/<project>/. */
288288const PROJECT_PATH = /^(?:\/issues)?\/p\/([^/]+)\//;
289−const NAME = /^[A-Za-z0-9._-]{1,100}$/;
289+/** A project's name is also its folder in the store, so it never starts with a dot ("." and ".." would leave it). */
290+const NAME = /^[A-Za-z0-9_-][A-Za-z0-9._-]{0,99}$/;
290291const json = (status: number, body: unknown) => Response.json(body, { status });
291292
292293/**
Lines 347–365 at 300 (were 346–352 at 299)
346347 },
347348 },
348349 });
349− return async (input, init = {}) => {
350+ // One call at a time, as a Durable Object takes them: a call holds its project's write transaction across awaits,
351+ // and the connection can't start a second (two calls at once come from Promise.all in ci and waiting --mine).
352+ let last: Promise<unknown> = Promise.resolve();
353+ return (input, init) => {
354+ const next = last.then(
355+ () => call(input, init),
356+ () => call(input, init),
357+ );
358+ last = next.catch(() => {});
359+ return next;
360+ };
362+ async function call(input: string, init: RequestInit = {}): Promise<Response> {
350363 const s = await loadServer();
351364 opening = s;
352365 const url = new URL(input);
Lines 403–407 at 300 (were 390–394 at 299)
390403 // Where the Workers runtime answers a throw with a 500, so does this.
391404 return json(500, { error: e instanceof Error ? e.message : String(e) });
392405 }
393− };
406+ }
394407}
MCP
compare on this site's /mcp
CLI
abso diff 299 300 client/src/local-store.ts --json
JSON
/christopher/abso-core/compare/299..300?file=client%2Fsrc%2Flocal-store.ts&format=json