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 304 to 305

Compare

+8 −3 in 2 places
Lines 4–10 at 305 (were 4–10 at 304)
44
55import assert from "node:assert/strict";
66import { spawnSync } from "node:child_process";
7−import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
7+import { existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
88import { tmpdir } from "node:os";
99import { join } from "node:path";
1010import { after, before, describe, it } from "node:test";
Lines 145–158 at 305 (were 145–153 at 304)
145145 it("a project's name can't start with a dot, so its folder stays inside the store", async () => {
146146 const dir = temp("dots");
147147 writeFileSync(join(dir, "a.txt"), "x\n");
148− const r = await run(dir, "init", "--local", "--project", "..", "--agent", "a");
149− assert.notEqual(r.exit, 0);
148+ for (const name of ["..", ".hidden"]) {
149+ const r = await run(dir, "init", "--local", "--project", name, "--agent", "a");
150+ assert.equal(r.exit, 1, r.out + r.err);
151+ // The name rule says why, before any call is made (a ".." would collapse the call's path).
152+ assert.match(r.err, /project names are letters, digits, dot, dash and underscore/);
153+ }
150154 assert.ok(!existsSync(join(store, "..", "project.sqlite")));
155+ assert.deepEqual(readdirSync(dir), ["a.txt"], "init left nothing behind");
151156 });
152157});
153158
MCP
compare on this site's /mcp
CLI
abso diff 304 305 client/test/local.test.ts --json
JSON
/christopher/abso-core/compare/304..305?file=client%2Ftest%2Flocal.test.ts&format=json