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

Compare

+12 −12 in 8 places
Lines 20–26 at 318 (were 20–26 at 5)
2020 project.checkerReady = true;
2121 project.init(
2222 {
23− "avcs.json": JSON.stringify({ queue }) + "\n",
23+ "avcs.json": `${JSON.stringify({ queue })}\n`,
2424 "a.ts": "export const a = 1;\n",
2525 "b.ts": "export const b = 1;\n",
2626 "c.ts": "export const c = 1;\n",
Lines 38–44 at 318 (were 38–44 at 5)
3838 return a.queued;
3939}
4040
41−test("without the queue a publish lands as before", () => {
41+test("without the queue a push lands as before", () => {
4242 const { project } = setup(false);
4343 edit(project, "one", { file: "a.ts", old: "1", new: "2" }, 1);
4444 const a = project.publish("one", "a is 2", 2);
Lines 46–52 at 318 (were 46–52 at 5)
4646 assert.deepEqual(project.queue().items, []);
4747});
4848
49−test("a queued publish waits, shows in status and the candidate, and lands as its own version with the same tree", () => {
49+test("a queued push waits, shows in status and the candidate, and lands as its own version with the same tree", () => {
5050 const { project } = setup();
5151 edit(project, "one", { file: "a.ts", old: "1", new: "2" }, 1);
5252 const a = project.publish("one", "a is 2", 2);
Lines 71–80 at 318 (were 71–80 at 5)
7171 assert.equal(project.treeAt(1), candidate.tree);
7272 assert.deepEqual(project.queue().items, []);
7373 assert.equal(project.status().agents.find((x) => x.agent === "one")?.queued, undefined);
74− assert.ok(project.news("one").news.some((n) => n.includes('Your queued publish "a is 2" landed as version 1')));
74+ assert.ok(project.news("one").news.some((n) => n.includes('Your queued push "a is 2" landed as version 1')));
7575});
7676
77−test("a publish that changes lines queued ahead of it is refused at once, naming the queued one", () => {
77+test("a push that changes lines queued ahead of it is refused at once, naming the queued one", () => {
7878 const { project } = setup();
7979 edit(project, "one", { file: "a.ts", old: "1", new: "2" }, 1);
8080 queued(project, "one", "a is 2", 2);
Lines 87–93 at 318 (were 87–93 at 5)
8787 assert.equal(project.queue().items.length, 1);
8888});
8989
90−test("a name defined both in a queued publish and in a new one is refused", () => {
90+test("a name defined both in a queued push and in a new one is refused", () => {
9191 const { project } = setup();
9292 edit(
9393 project,
Lines 110–116 at 318 (were 110–116 at 5)
110110 );
111111});
112112
113−test("publishes to different files queue behind each other and land in order", () => {
113+test("pushes to different files queue behind each other and land in order", () => {
114114 const { project } = setup();
115115 edit(project, "one", { file: "a.ts", old: "1", new: "2" }, 1);
116116 queued(project, "one", "a is 2", 2);
Lines 133–152 at 318 (were 133–152 at 5)
133133 );
134134});
135135
136−test("a failed publish is pulled with the check's output; its changes stay in the draft and can be queued again", () => {
136+test("a failed push is turned back with the check's output; its changes stay in the draft and can be queued again", () => {
137137 const { project } = setup();
138138 edit(project, "one", { file: "a.ts", old: "1", new: "2" }, 1);
139139 queued(project, "one", "a is 2", 2);
140140 assert.deepEqual(project.queuePull(1, "failed", 3, "line 1\nnot ok 1 - a is 1\n").pulled, [1]);
141141 assert.deepEqual(project.queue().items, []);
142142 const news = project.news("one").news.join("\n");
143− assert.ok(news.includes("was pulled: the project's check failed on it"), news);
143+ assert.ok(news.includes("was turned back: the project's check failed on it"), news);
144144 assert.ok(news.includes("not ok 1 - a is 1"));
145145 assert.equal(project.diff("one").files.length, 1, "the change is still in the draft");
146146 assert.equal(queued(project, "one", "a is 2, again", 4), 2);
147147});
148148
149−test("a queued publish built on a pulled one comes out with it", () => {
149+test("a queued push built on a pulled one comes out with it", () => {
150150 const { project } = setup();
151151 edit(project, "one", { file: "a.ts", old: "1", new: "2" }, 1);
152152 queued(project, "one", "a is 2", 2);
Lines 159–168 at 318 (were 159–168 at 5)
159159 project.queue().items.map((q) => q.id),
160160 [3],
161161 );
162− assert.ok(project.news("one").news.some((n) => n.includes("it builds on queued publish 1, which was pulled")));
162+ assert.ok(project.news("one").news.some((n) => n.includes("it builds on queued push 1, which was turned back")));
163163});
164164
165−test("an agent can withdraw its queued publishes while they wait, not while they are being checked", () => {
165+test("an agent can withdraw its queued pushes while they wait, not while they are being checked", () => {
166166 const { project } = setup();
167167 edit(project, "one", { file: "a.ts", old: "1", new: "2" }, 1);
168168 queued(project, "one", "a is 2", 2);
MCP
compare on this site's /mcp
CLI
abso diff 5 318 worker/project/test/queue.test.ts --json
JSON
/christopher/abso-core/compare/5..318?file=worker%2Fproject%2Ftest%2Fqueue.test.ts&format=json