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 175 to 318

Compare

+18 −0 in 1 place
new file, 18 lines
1+// Joining a project that has nothing in it yet: the join writes no files, so it says what comes next.
2+
3+import assert from "node:assert/strict";
4+import { test } from "node:test";
5+import { emptyHint } from "../src/join-commands.ts";
6+
7+test("an empty project: the next step is to put files here and push", () => {
8+ assert.deepEqual(emptyHint(0, 0, 0, false), [
9+ 'The project is empty. Put its files in this folder, then abso push -m "why" publishes them.',
10+ ]);
11+});
13+test("no hint when there is anything to say instead", () => {
14+ assert.deepEqual(emptyHint(3, 0, 0, false), [], "shared has versions, even with no files left");
15+ assert.deepEqual(emptyHint(0, 2, 0, false), [], "files were written");
16+ assert.deepEqual(emptyHint(0, 0, 1, false), [], "files already in the folder, named by the join's own line");
17+ assert.deepEqual(emptyHint(0, 0, 0, true), [], "a reader can't push");
18+});
MCP
compare on this site's /mcp
CLI
abso diff 175 318 client/test/join-empty.test.ts --json
JSON
/christopher/abso-core/compare/175..318?file=client%2Ftest%2Fjoin-empty.test.ts&format=json