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 13 to 14

Compare

+22 −2 in 4 places
Lines 59–67 at 14 (were 59–65 at 13)
5959 const where = a.issue === null ? "" : ` on issue ${a.issue}${a.title ? ` (${q(a.title)})` : ""}`;
6060 const extra = [
6161 // Who answered, and when, on the ask's own line, so a handled ask can't pass for an open one.
62− a.answer ? `answered by ${a.answer.by}, ${shortWhen(a.answer.at)}` : "",
62+ a.answer
63+ ? `${a.outcome === "withdrawn" ? "withdrawn" : "answered"} by ${a.answer.by}, ${shortWhen(a.answer.at)}`
64+ : "",
6365 !a.answer && a.seen !== undefined ? seenText(a.seen) : "",
6466 a.due ? `due ${a.due}` : "",
6567 a.blocks.length > 0 ? `blocks ${a.blocks.join(", ")}` : "",
Lines 70–78 at 14 (were 68–74 at 13)
6870 const lines = [head];
6971 if (a.options.length > 0) lines.push(` options: ${a.options.map((o, i) => `${i + 1}. ${q(o)}`).join(", ")}`);
7072 if (a.recommendation) lines.push(` ${a.recommendation.by} recommends: ${q(a.recommendation.text)}`);
71− if (a.answer) lines.push(` answer: ${q(a.answer.words)}`);
73+ if (a.answer && a.outcome === "withdrawn") {
74+ if (a.answer.words !== "") lines.push(` why: ${q(a.answer.words)}`);
75+ } else if (a.answer) lines.push(` answer: ${q(a.answer.words)}`);
7276 return lines.join("\n");
7377}
7478
Lines 433–442 at 14 (were 429–434 at 13)
429433}
430434
431435export async function runAsk(args: Parsed, env: Env): Promise<Output> {
436+ const withdraw = str(args, "withdraw");
437+ if (withdraw !== undefined) return withdrawAsk(args, env, withdraw);
438+ if (str(args, "note") !== undefined)
439+ throw new UsageError('--note goes with --withdraw: avcs ask --withdraw <ask> --note "why"');
432440 const [of, ...words] = args.positionals;
433441 if (of === undefined || words.length === 0)
434442 throw new UsageError(
Lines 467–484 at 14 (were 459–464 at 13)
459467 return { text: `Asked ${of} (ask ${r.id}). They hear it; avcs waiting shows what's open.`, json: { id: r.id } };
460468}
461469
470+/** avcs ask --withdraw <ask> [--note "why"]: the asker takes an ask back. It closes like an answer, and the one asked hears it. */
471+async function withdrawAsk(args: Parsed, env: Env, word: string): Promise<Output> {
472+ const others = ["issue", "due", "blocks", "options"].filter((f) => str(args, f) !== undefined);
473+ if (args.positionals.length > 0 || others.length > 0 || bool(args, "review") || bool(args, "task"))
474+ throw new UsageError('avcs ask --withdraw <ask> [--note "why"] takes nothing else: it takes back an ask you made');
475+ const id = issueNumber(word, "the ask number");
476+ const { api } = openIssues(env);
477+ const note = str(args, "note");
478+ const r = await api.withdraw(id, note !== undefined ? { note } : {});
479+ return { text: `Withdrew ask ${id}. ${r.ask.of} hears it, and it no longer waits on them.`, json: { ask: r.ask } };
480+}
462482export async function runWaiting(args: Parsed, env: Env): Promise<Output> {
463483 if (args.positionals.length > 0)
464484 throw new UsageError("waiting takes no words: avcs waiting [--of <agent or person:id>] [--mine]");
MCP
compare on this site's /mcp
CLI
abso diff 13 14 client/src/issues.ts --json
JSON
/christopher/abso-core/compare/13..14?file=client%2Fsrc%2Fissues.ts&format=json