- MCP
- show on this site's /mcp
- CLI
- abso show 72 --json
- JSON
- /christopher/abso-core/versions/72?format=json
Asks become threads: abso reply <ask> "..." adds to an ask from either side, open or answered, and --question hands the turn to the asker until they reply. abso ask <N> shows one ask with its whole thread and whose turn it is; abso waiting --asked lists the asks you sent. An ack's note is the thread's first reply. reply is an MCP tool too. Needs an Issues server with the reply, ask and asked routes.
of shared·pinch··Not checked
Version 71 · Files at version 72
6 files, 258 lines added, 15 removed.
--- a/client/src/api.ts
+++ b/client/src/api.ts
@@ -450,6 +450,16 @@
452452
453+ /** The asks this agent sent: the open ones, then the latest answered, each with its thread. */
457+
462+
453463 /** Open asks of someone (an agent, or person:<id>), soonest due first; every open ask without `of`. */
@@ -630,6 +640,11 @@
632642
643+ /** Adds to an ask's thread, as its asker or the one asked; the other side hears it, and the ask stays as it is. */
644+ reply(id: number, body: { text: string; question?: boolean }): Promise<{ ask: Ask; news?: IssueNews }> {
647+
--- a/client/src/issues-wire.ts
+++ b/client/src/issues-wire.ts
@@ -85,8 +85,22 @@
8686 /** When the one asked acknowledged it without answering yet, with their note; it stays open. Absent until then. */
88+ /** Its thread: what the asker and the one asked said on it, oldest first. The answer closes it and isn't one of these. Absent from older servers. */
90+ /** Who it waits on now: the one asked, or the asker while the newest reply is a question from the one asked. Null once it's closed. Absent from older servers. */
8993
103+
--- a/client/src/issues.ts
+++ b/client/src/issues.ts
@@ -27,6 +27,7 @@
3233
@@ -70,16 +71,35 @@
7071 return ` ${String(i.id).padStart(3)} ${i.status.padEnd(11)} ${q(i.title)}${detail.length > 0 ? ` (${detail.join("; ")})` : ""}`;
7273
73−function askLine(a: Ask & { title?: string | null }, api?: Pick<Api, "attachmentUrl">): string {
79+
82+ return `${indent}${r.by}, ${shortWhen(r.at)}${r.question ? ", a question" : ""}: ${q(whole ? r.text : firstLine(r.text))}`;
84+
86+ * An ask: its head line, its files and options, then, in a list, its newest reply, or with `thread`, every
87+ * reply, oldest first; then its answer. Older servers send no thread, only the one asked's acknowledgement.
89+function askLine(a: Ask & { title?: string | null }, api?: Pick<Api, "attachmentUrl">, thread = false): string {
7591 const where = a.issue === null ? "" : ` on issue ${a.issue}${a.title ? ` (${q(a.title)})` : ""}`;
7996 ? `${a.outcome === "withdrawn" ? "withdrawn" : "answered"} by ${a.answer.by}, ${shortWhen(a.answer.at)}`
81− !a.answer && a.ack ? `acknowledged ${shortWhen(a.ack.at)}, not answered yet` : "",
98+ !a.answer && a.ack && replies === undefined ? `acknowledged ${shortWhen(a.ack.at)}, not answered yet` : "",
100+ replies && replies.length > 0 ? (replies.length === 1 ? "1 reply" : `${replies.length} replies`) : "",
@@ -87,7 +107,10 @@
88108 if (a.options.length > 0) lines.push(` options: ${a.options.map((o, i) => `${i + 1}. ${q(o)}`).join(", ")}`);
89109 if (a.recommendation) lines.push(` ${a.recommendation.by} recommends: ${q(a.recommendation.text)}`);
90− if (!a.answer && a.ack && a.ack.note !== "") lines.push(` ${a.of} acknowledged: ${q(a.ack.note)}`);
111+ if (!a.answer && a.ack && a.ack.note !== "") lines.push(` ${a.of} acknowledged: ${q(a.ack.note)}`);
113+ else if (replies.length > 0) lines.push(replyLine(replies[replies.length - 1]!, " last: ", false));
@@ -624,6 +647,7 @@
629653 'abso ask <who> "<question>" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options "A|B|C"]; who is an agent, or person:<id>',
@@ -659,6 +683,49 @@
661685
686+/** abso ask <N>: one ask, open or closed, with its whole thread, its answer and whose turn it is. */
688+ const others = ["issue", "due", "blocks", "options", "attach"].filter((f) => str(args, f) !== undefined);
690+ throw new UsageError('abso ask <N> shows ask N; to ask, say who and what: abso ask <who> "<question>"');
709+
710+/** abso reply <ask> "<words>" [--question]: add to an ask's thread, as its asker or the one asked. */
716+ `abso reply <ask> "<words>" [--question]: adds to an ask's thread, as its asker or the one asked`,
720+ const r = await api.reply(id, { text: words.join(" "), ...(question ? { question: true } : {}) });
728+
662729/** abso ask --withdraw <ask> [--note "why"]: the asker takes an ask back. It closes like an answer, and the one asked hears it. */
664731 const others = ["issue", "due", "blocks", "options", "attach"].filter((f) => str(args, f) !== undefined);
@@ -708,7 +775,8 @@
708775
711− throw new UsageError("waiting takes no words: abso waiting [--of <agent or person:id>] [--mine]");
778+ throw new UsageError("waiting takes no words: abso waiting [--of <agent or person:id>] [--mine] [--asked]");
@@ -728,7 +796,7 @@
731− 'abso answer <ask> "..." answers one asked of you.',
799+ 'abso ask <N> shows one with its thread; abso reply <N> "..." adds to it; abso answer <N> "..." answers one asked of you.',
@@ -740,6 +808,35 @@
742810
811+/** abso waiting --asked: the asks you sent, open ones first, then the latest answered, each with its newest reply. */
839+
743840/** abso ack <ask> ["note"]: tell the asker you have it, and answer later. The ask stays open until abso answer. */
@@ -748,7 +845,7 @@
751− text: `Acknowledged ask ${id}. ${r.ask.by} hears it; the ask stays open until abso answer ${id} "...".`,
848+ text: `Acknowledged ask ${id}. ${r.ask.by} hears it; abso reply ${id} "..." adds more as you go, and the ask stays open until abso answer ${id} "...".`,
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -41,7 +41,7 @@
44−import { runAck, runAnswer, runAsk, runIssue, runIssues, runSearch, runWaiting } from "./issues.ts";
44+import { runAck, runAnswer, runAsk, runIssue, runIssues, runReply, runSearch, runWaiting } from "./issues.ts";
4545import { adminToken, issuedPublic, keyList, keyListText, keyNew, keyRevoke } from "./key-admin.ts";
@@ -445,9 +445,9 @@
448− 'abso ask <who> "<question>" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options "A|B|C"] [--attach <file,file>] | abso ask --withdraw <ask> [--note "why"]',
448+ 'abso ask <who> "<question>" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options "A|B|C"] [--attach <file,file>] | abso ask <N> | abso ask --withdraw <ask> [--note "why"]',
450− "Ask an agent, or a person (person:<id>), something; they hear it. On an issue, it holds the issue at Blocked (In review for --review) until answered. --task asks for something done instead of an answer; --options gives the choices; --blocks names the issues waiting on it. --attach sends files with the question, as on an issue. --withdraw takes back an ask you made that no longer needs an answer: it leaves their waiting list, stops holding the issue, keeps your --note as why, and they hear it.",
450+ "Ask an agent, or a person (person:<id>), something; they hear it. Who must be one of the project's agents or members; a name that isn't is refused, with the closest one suggested. abso ask <N> shows ask N, open or closed, with its whole thread, its answer and whose turn it is. On an issue, it holds the issue at Blocked (In review for --review) until answered. --task asks for something done instead of an answer; --options gives the choices; --blocks names the issues waiting on it. --attach sends files with the question, as on an issue. --withdraw takes back an ask you made that no longer needs an answer: it leaves their waiting list, stops holding the issue, keeps your --note as why, and they hear it.",
@@ -458,10 +458,10 @@
461− flags: { of: "string", mine: "boolean" },
462− usage: "abso waiting [--of <agent or person:id>] [--mine]",
464− "The open asks, soonest due first: every one, those of someone (--of), or those of you (--mine). --mine also lists your publishes still in the merge queue and where each stands; the outcome comes as news.",
464+ "The open asks, soonest due first: every one, those waiting on someone (--of), or those waiting on you (--mine), each with its newest reply. An ask waits on the one asked until they answer, or on the asker after a reply with --question, until the asker replies. --mine also lists your publishes still in the merge queue and where each stands; the outcome comes as news. --asked lists the asks you sent instead, open ones first, then the latest answered.",
@@ -476,9 +476,16 @@
479− "Acknowledge an ask of you without answering it yet: the asker hears it, with your note, and the ask stays open, shown as acknowledged. abso answer closes it later.",
479+ "Acknowledge an ask of you without answering it yet: it's the first reply in its thread. The asker hears it, with your note, and the ask stays open. abso reply adds more; abso answer closes it later.",
486+ 'Add to an ask\'s thread, as its asker or the one asked, open or closed: "ok, let me check", what you found, a follow-up. The other side hears it, and the ask stays as it is; abso answer still closes it. --question, from the one asked, asks the asker something back: the ask waits on them until they reply. On a public project, anyone can read the thread.',
--- a/client/src/mcp.ts
+++ b/client/src/mcp.ts
@@ -53,6 +53,7 @@
--- a/client/test/issues.test.ts
+++ b/client/test/issues.test.ts
@@ -29,6 +29,32 @@
34+/** An open ask of fay's from desk with a thread: fay's ack, then a question back, so it waits on desk. */
3359
@@ -71,6 +97,36 @@
7298 ask: { id: Number(ack[2]), by: "desk", of: ack[1], answer: null, ack: { at: Date.now(), note: "" } },
122+ if (req.method === "GET" && one) return send(200, { ask: { ...threaded, id: Number(one[1]) } });
127+ { ...threaded, id: 8, replies: [], answer: { by: "fay", words: "yes", at: 0 }, waitingOn: null },
@@ -146,7 +202,8 @@
146202
149− for (const n of ["issues", "issue", "search", "ask", "waiting", "answer"]) assert.ok(names.includes(n), n);
150207 assert.deepEqual(argvFor("ask", { args: ["alice", "Which login?"], issue: "3", review: true }), [
@@ -210,13 +267,65 @@
211268 const r = await main(["ack", "7", "on it after the deploy"], { cwd: fay, env: ENV(), write: () => {} });
213− assert.equal(r.stdout, 'Acknowledged ask 7. desk hears it; the ask stays open until abso answer 7 "...".\n');
272+ 'Acknowledged ask 7. desk hears it; abso reply 7 "..." adds more as you go, and the ask stays open until abso answer 7 "...".\n',
219279
283+ const r = await main(["reply", "7", "staging or live?", "--question"], { cwd: fay, env: ENV(), write: () => {} });
292+
293+ it("ask <N> reads one ask with its whole thread, oldest first, and whose turn it is", async () => {
301+ /^ {2}ask 7: desk, .* asks fay a question on issue 3 \("Sync is slow"\) \(2 replies; waiting on desk\): "Which way\?"$/m,
304+ const back = r.stdout.indexOf(' fay, Jan 1 1970 00:00 UTC, a question: "staging or live?\\nlive is 906"');
308+ /^It waits on desk\. abso reply 7 "\.\.\." adds to it; abso answer 7 "\.\.\." answers and closes it\.$/m,
315+
316+ it("waiting --asked lists the asks you sent, open first, then the latest answered", async () => {
328+
220329 it("an acknowledged ask reads as acknowledged, not answered, with the note under it", () => {