- MCP
- show on this site's /mcp
- CLI
- abso show 300 --json
- JSON
- /christopher/abso-core/versions/300?format=json
Local projects take one call at a time, and a project's name can't start with a dot. A call holds its project's write transaction across awaits, so a second call started meanwhile (Promise.all in abso ci and waiting --mine) failed to begin its own; localFetch now runs calls in turn, as a Durable Object takes them. A name of . or .. put the project's file outside the store; names now start with a letter, digit, _ or -. Found in review.
of shared·pinch··Not checked
Version 299 · Files at version 300
2 files, 33 lines added, 3 removed.
--- a/client/src/local-store.ts
+++ b/client/src/local-store.ts
@@ -286,7 +286,8 @@
286286
287287/** A project's calls, and its issues, asks and news, which the open server keeps at /issues/p/<project>/. */
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). */
291292
@@ -346,7 +347,19 @@
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).
361+
@@ -390,5 +403,5 @@
393− };
--- a/client/test/local.test.ts
+++ b/client/test/local.test.ts
@@ -9,6 +9,7 @@
1415
@@ -132,6 +133,22 @@
136+
140+ const answers = await Promise.all([local(`${LOCAL_BASE}/p/demo/queue`), local(`${LOCAL_BASE}/p/demo/queue`)]);
144+
145+ it("a project's name can't start with a dot, so its folder stays inside the store", async () => {
136153