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
MCP
show on this site's /mcp
CLI
abso show 225 --json
JSON
/christopher/abso-core/versions/225?format=json

push: after Pushed version N., say whether CI will check it, when the server's answer says where CI runs (ciWhere). off: CI is off for this project, so version N isn't checked; connect a Cloudflare account in the project's settings on the website to run it there. account: CI checks it in the project's Cloudflare account; abso ci N shows the result. The server's own compute, or a server that doesn't say, adds nothing, as before. --json carries ciWhere. Tests: client/test/push-ci-where.test.ts (3).

of shared·onboard··Not checked

Version 224 · Files at version 225

3 files, 41 lines added, 0 removed.

--- a/client/src/api-answers.ts
+++ b/client/src/api-answers.ts
@@ -85,6 +85,8 @@
8585 settled?: readonly Settled[];
8686 /** Others' versions this publish went on top of that the folder hasn't synced yet (#37): nothing of theirs was overwritten. */
8787 mergedWith?: readonly { readonly version: number; readonly agent: string; readonly message: string }[];
88+ /** Where the project's CI runs, when the server says: off, the project's own Cloudflare account, or the server's own compute. */
89+ ciWhere?: string;
8890 }
8991 /** With the merge queue on (#39): queued, not landed yet; `ahead` publishes wait in front of it. */
9092 | { ok: true; queued: number; position: number; ahead: number; changes: number; settled?: readonly Settled[] }
--- a/client/src/publish-commands.ts
+++ b/client/src/publish-commands.ts
@@ -65,6 +65,20 @@
6565 ];
6666}
6767
68+/**
69+ * After "Pushed version N.": whether CI will check it, where the server says (its `ciWhere`). Nothing for the server's own
70+ * compute, where pushes have always been checked, or for a server that doesn't say.
71+ */
72+export function ciWhereText(where: string | undefined, version: number): string[] {
73+ if (where === "off")
74+ return [
75+ `CI is off for this project, so version ${version} isn't checked. Connect a Cloudflare account in the project's settings on the website to run it there.`,
76+ ];
77+ if (where === "account")
78+ return [`CI checks it in the project's Cloudflare account: abso ci ${version} shows the result.`];
79+ return [];
80+}
6882export async function runPublish(args: Parsed, env: Env): Promise<Output> {
6983 const message = str(args, "message");
7084 if (!message) throw new UsageError('say why with -m "<message>"');
@@ -418,9 +432,11 @@
418432 ]
419433 : []),
420434 ...settledText(answer.settled ?? [], answer.version),
435+ ...(answer.changes === 0 ? [] : ciWhereText(answer.ciWhere, answer.version)),
421436 ].join("\n"),
422437 json: {
423438 version: answer.version,
439+ ...(answer.ciWhere === undefined ? {} : { ciWhere: answer.ciWhere }),
424440 changes: answer.changes ?? null,
425441 mergedWith: answer.mergedWith ?? [],
426442 settled: answer.settled ?? [],
--- /dev/null
+++ b/client/test/push-ci-where.test.ts
@@ -0,0 +1,23 @@
1+// After "Pushed version N.", the push says whether CI will check it, from the server's `ciWhere`.
2+
3+import assert from "node:assert/strict";
4+import { test } from "node:test";
5+import { ciWhereText } from "../src/publish-commands.ts";
6+
7+test("CI off: the version isn't checked, and where to turn it on", () => {
8+ assert.deepEqual(ciWhereText("off", 1), [
9+ "CI is off for this project, so version 1 isn't checked. Connect a Cloudflare account in the project's settings on the website to run it there.",
10+ ]);
11+});
13+test("CI in the project's Cloudflare account: where to see the result", () => {
14+ assert.deepEqual(ciWhereText("account", 7), [
15+ "CI checks it in the project's Cloudflare account: abso ci 7 shows the result.",
16+ ]);
17+});
19+test("the server's own compute, a server that doesn't say, or a word this client doesn't know: nothing added", () => {
20+ assert.deepEqual(ciWhereText("abso", 3), []);
21+ assert.deepEqual(ciWhereText(undefined, 3), []);
22+ assert.deepEqual(ciWhereText("somewhere-new", 3), []);
23+});