- MCP
- show on this site's /mcp
- CLI
- abso show 305 --json
- JSON
- /christopher/abso-core/versions/305?format=json
abso init checks the project's name before any call, as join does. A name like .. went out as part of the request's path, where it collapsed, so a local init answered about project calls instead of naming the rule. The test now checks the message for .. and .hidden, and that init leaves the folder as it was.
of shared·pinch··Not checked
Version 304 · Files at version 305
2 files, 13 lines added, 3 removed.
--- a/client/src/join-commands.ts
+++ b/client/src/join-commands.ts
@@ -154,6 +154,11 @@
157+ // Checked before any call: a name like ".." would otherwise go out as part of the request's path.
160+ `project names are letters, digits, dot, dash and underscore (got ${JSON.stringify(project)})`,
157162 if (bool(args, "public") && bool(args, "private")) throw new UsageError("--public or --private, not both");
159164 // A box signed in here, and no other credential asked for: the project is made as the person who approved the box,
--- a/client/test/local.test.ts
+++ b/client/test/local.test.ts
@@ -4,7 +4,7 @@
44
7−import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
7+import { existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
@@ -145,9 +145,14 @@
145145 it("a project's name can't start with a dot, so its folder stays inside the store", async () => {
148− const r = await run(dir, "init", "--local", "--project", "..", "--agent", "a");
149− assert.notEqual(r.exit, 0);
153158