Versions 34 to 35
Lines 69–75 at 35 (were 69–75 at 34)
6969 return ` ${String(i.id).padStart(3)} ${i.status.padEnd(11)} ${q(i.title)}${detail.length > 0 ? ` (${detail.join("; ")})` : ""}`;
7171
72−function askLine(a: Ask & { title?: string | null }): string {
7474 const where = a.issue === null ? "" : ` on issue ${a.issue}${a.title ? ` (${q(a.title)})` : ""}`;
Lines 82–94 at 35 (were 82–93 at 34)
8484 const head = ` ask ${a.id}: ${a.by}, ${shortWhen(a.at)}, asks ${a.of} ${what}${where}${extra.length > 0 ? ` (${extra.join("; ")})` : ""}: ${q(a.question)}`;
85− const lines = [head];
8686 if (a.options.length > 0) lines.push(` options: ${a.options.map((o, i) => `${i + 1}. ${q(o)}`).join(", ")}`);
8787 if (a.recommendation) lines.push(` ${a.recommendation.by} recommends: ${q(a.recommendation.text)}`);
90− } else if (a.answer) lines.push(` answer: ${q(a.answer.words)}`);
91+ lines.push(` answer: ${q(a.answer.words)}`, ...attachmentLines(api, a.answer.attachments, " "));
9394
Lines 129–148 at 35 (were 128–133 at 34)
130131
136+
138+ * What to say when a write sent files the server didn't keep: an Issues server from before asks carried
139+ * attachments takes the words and leaves the files out. Nothing to say when it kept them, or none were sent.
141+function notKept(sent: readonly string[], kept: readonly string[] | undefined, what: string): string | undefined {
142+ if (sent.length === 0 || (kept !== undefined && sent.every((id) => kept.includes(id)))) return undefined;
143+ return `The Issues server didn't keep the ${sent.length === 1 ? "file" : "files"} on ${what}: it is older than this client. The words went; the ${sent.length === 1 ? "file goes" : "files go"} on a comment instead (abso issue <N> --comment "..." --attach ...).`;
145+
131146/** The most one attachment may be: the Issues Worker's cap, checked here before sending (abso issue 171). */
133148
Lines 199–206 at 35 (were 184–191 at 34)
185200
187− * abso issue N --save-attachments <folder>: every attachment on the issue and
188− * its comments, written to that folder as <id>-<name>; an svg's own file
Lines 212–222 at 35 (were 197–205 at 34)
197212 `${dir} is inside this abso folder, so abso would record the images as your edits. Save them outside the folder, or into a folder .absoignore leaves out`,
200− const all = [...(page.issue.attachments ?? []), ...page.comments.flatMap((c) => c.attachments ?? [])].filter(
201− (a) => !seen.has(a.id) && seen.add(a.id),
202− );
Lines 264–270 at 35 (were 247–253 at 34)
247264 ...(i.lines ? [`From ${i.lines.file} lines ${i.lines.from}-${i.lines.to} at version ${i.lines.version}.`] : []),
250− ...(p.asks.length > 0 ? ["", "Asks:", ...p.asks.map(askLine)] : []),
Lines 619–625 at 35 (were 602–607 at 34)
Lines 636–653 at 35 (were 618–630 at 34)
622− return { text: `Asked ${of} (ask ${r.id}). They hear it; abso waiting shows what's open.`, json: { id: r.id } };
643+ text: `Asked ${of} (ask ${r.id})${withFiles(attachments)}. They hear it; abso waiting shows what's open.${lost ? ` ${lost}` : ""}`,
644+ json: { id: r.id, ...(attachments.length > 0 ? { attachments } : {}), ...(lost ? { notKept: lost } : {}) },
624647
625648/** abso ask --withdraw <ask> [--note "why"]: the asker takes an ask back. It closes like an answer, and the one asked hears it. */
627− const others = ["issue", "due", "blocks", "options"].filter((f) => str(args, f) !== undefined);
650+ const others = ["issue", "due", "blocks", "options", "attach"].filter((f) => str(args, f) !== undefined);
628651 if (args.positionals.length > 0 || others.length > 0 || bool(args, "review") || bool(args, "task"))
629652 throw new UsageError('abso ask --withdraw <ask> [--note "why"] takes nothing else: it takes back an ask you made');
Lines 705–711 at 35 (were 682–688 at 34)
685− ...asks.map(askLine),
Lines 721–741 at 35 (were 698–708 at 34)
698721 throw new UsageError('abso answer <ask> "<words>" | --option <N> [--note "..."] | --done [--note "..."]');
703727 ...(option !== undefined ? { option: /^\d+$/.test(option) ? Number(option) - 1 : option } : {}),
707− return { text: `Answered ask ${id}. ${r.ask.by} hears it.`, json: { ask: r.ask } };
738+ text: `Answered ask ${id}${withFiles(attachments)}. ${r.ask.by} hears it.${lost ? ` ${lost}` : ""}`,
- MCP
- compare on this site's /mcp
- CLI
- abso diff 34 35 client/src/issues.ts --json
- JSON
- /christopher/abso-core/compare/34..35?file=client%2Fsrc%2Fissues.ts&format=json