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 19 to 20

Compare

+18 −1 in 4 places
Lines 14–20 at 20 (were 14–19 at 19)
1414import { after, before, describe, it } from "node:test";
1515import { readMachineServers } from "../src/config.ts";
1616import { issuesServerFor, tokenGoesTo } from "../src/core.ts";
17+import { searchLines } from "../src/issues.ts";
1718import { main } from "../src/main.ts";
1819import { argvFor, mcpTools } from "../src/mcp.ts";
1920import { type Fake, startFake } from "./fake-server.ts";
Lines 107–113 at 20 (were 106–112 at 19)
106107
107108 it("are MCP tools", () => {
108109 const names = mcpTools().map((t) => t.name);
109− for (const n of ["issues", "issue", "ask", "waiting", "answer"]) assert.ok(names.includes(n), n);
110+ for (const n of ["issues", "issue", "search", "ask", "waiting", "answer"]) assert.ok(names.includes(n), n);
110111 assert.deepEqual(argvFor("ask", { args: ["alice", "Which login?"], issue: "3", review: true }), [
111112 "ask",
112113 "--issue=3",
Lines 134–142 at 20 (were 133–138 at 19)
133134 ["ask", "--withdraw", "3", "--issue", "2"],
134135 ["ask", "--withdraw", "3", "--task"],
135136 ["ask", "alice", "q", "--note", "a note without --withdraw"],
137+ ["search"],
138+ ["search", "words", "--limit", "0"],
139+ ["search", "words", "--limit", "51"],
136140 ]) {
137141 const r = await avcs(erin, argv);
138142 assert.equal(r.exit, 1, `${argv.join(" ")}: ${r.out}`);
Lines 144–162 at 20 (were 140–145 at 19)
140144 assert.equal(seen.length, before);
141145 });
142146
147+ it("shows a search hit as the issue, then where it matched, without the match markers", () => {
148+ const issue = { id: 12, title: "Sync is slow", status: "open" as const, updated: 0, labels: [] };
149+ assert.deepEqual(
150+ searchLines({ issue, where: "comment", comment: 40, snippet: "the \u0001network\u0002 drops mid-sync" }),
151+ [' 12 open "Sync is slow"', ' in comment 40: "the network drops mid-sync"'],
152+ );
153+ assert.deepEqual(searchLines({ issue, where: "description", snippet: "Pages load late.", meaning: true }), [
154+ ' 12 open "Sync is slow"',
155+ ' by meaning: "Pages load late."',
156+ ]);
157+ assert.deepEqual(searchLines({ issue, where: "title", snippet: "Sync is slow" })[1], " in the title");
158+ });
143160 it("withdraw is one POST to the asker's own withdraw/<ask> route", async () => {
144161 const erin = await folder("erin");
145162 const before = seen.length;
MCP
compare on this site's /mcp
CLI
abso diff 19 20 client/test/issues.test.ts --json
JSON
/christopher/abso-core/compare/19..20?file=client%2Ftest%2Fissues.test.ts&format=json