Versions 284 to 318
new file, 60 lines
1+// abso ci for a project whose CI is its pipeline file (abso 719): test-byoc on 2026-10-16 had no abso.json, and abso ci
2+// said "nothing to run" while its abso.yml's run 8 was going. The stored run is the project's CI there.
3+
7+
15+
32+
44+ "Pipeline run 2 (abso.yml) was planned, not run, on version 1. abso pipeline runs 2 shows its jobs.",
47+
48+test("only the built-in check's own nothing to run is set aside, never a red or another skip", () => {
50+ assert.equal(builtInHasNothing({ ...base, skipped: { ...nothing, reason: "CI is off" } }), false);
Lines 26–32 at 318 (were 26–31 at 284)
Lines 115–142 at 318 (were 114–119 at 284)
116117
118+ it("stamps the command that runs this client's abso hook, where stamp.ts has a HOOK_COMMAND line", () => {
121+ "export const STAMP: string | undefined = undefined\nexport const HOOK_COMMAND: readonly string[] | undefined = undefined\n",
133+ 'export const HOOK_COMMAND: readonly string[] | undefined = ["C:\\\\node.exe","C:\\\\abso\\\\client\\\\abso.ts","hook"]\n',
139+
new file, 222 lines
1+// Local projects (abso init --local): a project whose history is in a store on this machine, answered by the open
2+// server's own code in the client's process. Every test here runs with fetch replaced by one that throws, so any
4+
7+import { existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
15+
22+
36+
38+const env = () => ({ ABSO_STORE: store, ABSO_SERVERS_FILE: "no-servers.json", ABSO_HOOK_FORCE: "1" });
39+async function run(cwd: string, ...argv: string[]): Promise<{ exit: number; out: string; err: string }> {
44+
45+/** A copy of the client without the open server beside it (a platform that pins only client/) has no local projects to test. */
46+const noServer = existsSync(fileURLToPath(new URL("../../server/src/router.ts", import.meta.url)))
49+
56+
62+ assert.match(r.out, /Created project demo at version 0 from 2 text files/, "a.txt and the starting .absoignore");
69+ assert.equal(config.store, undefined, "the store came from ABSO_STORE, so the folder doesn't name it");
71+
83+
96+
103+
113+
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 () => {
158+
160+ it("--store inside the folder is kept in its settings and left out of its files", async () => {
164+ const r = await run(dir, "init", "--local", "--project", "beside", "--agent", "a", "--store", ".abso-store");
167+ assert.equal(JSON.parse(readFileSync(join(stateDir(dir), "config.json"), "utf8")).store, join(dir, ".abso-store"));
174+
178+ const both = await run(dir, "init", "--local", "--server", "https://abso.test", "--project", "p");
183+
193+
195+ // The way people and agents run them: client/abso.ts, a process per command, Node's compile cache as it is.
203+
217+ assert.equal(r.status, 0, `${name}: exit ${r.status} ${r.signal ?? ""}\n${r.stdout}${r.stderr}`);
Lines 3–9 at 318 (were 3–8 at 284)
Lines 42–52 at 318 (were 41–46 at 284)
45+ // The server sends the expiry as an ISO time (staging 1418); the countdown and the stream mark read it the same.
4551
4652test("a refusal close stops --follow; any other close opens again, waiting 1 s doubling to a minute", () => {
Lines 134–182 at 318 (were 128–133 at 284)
130136
137+test("a frame is a wake: --follow reads the news and prints that once; an empty read prints the frames", async () => {
138+ // The server's frames don't count as heard (abso 690): the read takes them, so each item prints once.
139+ const w = world([{ frames: ["fe told you: hello", "cloud asks: ship it?"], close: { code: 1006 } }]);
147+ // Two frames, one read in flight: the second folds into one more read, which finds nothing new; its frame was
151+
152+ // A server that counts a frame as heard already (staging 1418): the read is empty, so the frame is what shows.
157+
158+ // On that server a read can find other news waiting: the frame's own item still shows (Code Review, 291).
163+
164+ // A catch-up frame names the first few waiting items and how many more: the read shows them all, the frame adds nothing.
165+ const catchUp = world([{ frames: ["fe told you: hello\ncloud: ship it?\nand 1 more"], close: { code: 1006 } }]);
169+
179+
131180test("--follow keeps an idle socket open with a ping the object answers without waking", async () => {
new file, 106 lines
1+// abso login --web: a staging website session handed to a browser as a one-use link, with no secret printed.
2+
9+
15+
16+test("the credential goes only to the staging website beside the folder's staging server (Security condition 6)", () => {
24+ assert.throws(() => siteFor("https://api.abso.dev", "http://localhost:8871", "pat"), /for staging/);
27+ assert.throws(() => siteFor(STAGING, "http://localhost:8871", "box"), /isn't taken with a box's sign-in/);
31+ for (const elsewhere of ["https://anywhere.example", SITE, "https://localhost:8871", "not a url"])
34+
37+ const fetcher = (async (url: string) => (sent.push(url), Response.json({}))) as unknown as typeof fetch;
47+ await assert.rejects(webLogin({ ...asked, credential, fetcher }), /Nothing was sent/, JSON.stringify(asked));
51+ await webLogin({ server: STAGING, site: undefined, kind: "pat", credential: () => PAT, fetcher }).catch(() => {});
54+
55+test("the credential goes in Authorization only, and the answer is the one link and who it signs in as", async () => {
58+ seen.push({ url, authorization: new Headers(init.headers).get("authorization"), body: init.body ?? null });
68+ assert.deepEqual(seen, [{ url: `${SITE}/login/handoff`, authorization: `Bearer ${BOX}`, body: null }]);
77+
78+test("a refusal says why without the credential; an answer that isn't the site's own link is refused", async () => {
80+ Response.json({ error: `that key was refused: ${BOX}` }, { status: 401 })) as unknown as typeof fetch;
86+ const off = (async () => Response.json({ error: "not found" }, { status: 404 })) as unknown as typeof fetch;
96+
- MCP
- compare on this site's /mcp
- CLI
- abso diff 284 318 client/test --json
- JSON
- /christopher/abso-core/compare/284..318?file=client%2Ftest&format=json