- MCP
- blame on this site's /mcp
- CLI
- abso blame client/src/issues-wire.ts --json
- JSON
- /christopher/abso-core/blame/client/src/issues-wire.ts?format=json
250 linesFirst import 48% · groups 23% · codex-prose-authorship-1 12% · pinch 12% · devops 4% · infra-split 1%Last change groups in version 256,
250 lines from 12 changes in 10 versions.
2// client reads these shapes, and the Issues Worker's store writes them. They
3// sit with the client, the open tool, so the platform imports them from here
4// and the tool never imports the platform.
6export type Status = "open" | "in progress" | "in review" | "blocked" | "done" | "dropped";
8/** Who is acting: an agent through the client, or a signed-in person through the website. */
9export type Actor = { agent: string } | { person: string };
codex-prose-authorship-1107Add sanitized prose authorship DTOsCompare11/** Public per-field author classification; missing legacy evidence is unknown. */
12export interface ProseAuthorship {
13 kind: "human" | "agent" | "unknown";
14 actor: string | null;
15 provenance: "native" | "copy" | "import" | "historical" | "unknown";
16 authorField: string | null;
17}
20 file: string;
21 from: number;
22 to: number;
23 version: number;
24}
26export interface IssueRow {
27 id: number;
28 title: string;
codex-prose-authorship-1107Add sanitized prose authorship DTOsCompare29 authorship: { title: ProseAuthorship };
31 status: Status;
32 /** Who it's for: set when it's written or edited, else the first agent whose start note named it. */
33 agent: string | null;
34 /** The agents whose start notes name it now. */
35 agents: string[];
36 /** Issues it waits on: it's Blocked until each is Done. */
37 blockedBy: number[];
38 /** Its labels, sorted: friction, client, and the like. */
39 labels: string[];
40 /** Versions of shared published for it, oldest first. */
41 versions: number[];
42 /** Who its open asks wait on (an agent, or person:<id>). */
43 waitingOn: string[];
44 opened: { by: string; at: number };
45 /** The latest claim, publish, comment, ask, answer or close. */
46 updated: number;
47 closed: { how: "done" | "dropped"; by: string; version: number | null; at: number } | null;
48 children: number;
49}
51export interface Comment {
52 id: number;
53 by: string;
54 kind: "comment" | "objection";
55 text: string;
codex-prose-authorship-1107Add sanitized prose authorship DTOsCompare56 authorship: ProseAuthorship;
pinch5abso issue new and abso issue N --comment take --attach <file,file> (abso issue 171). Each file goes up to the Issues Worker first (POST /p/:project/a/:agent/attachments, the bytes as the body and the name URI-encoded in X-Avcs-Name), and the write carries the ids the uploads answered. Nothing is sent if a file is missing or over 10 MB. --attach anywhere else is refused. The issue's page lists each attachment under the issue or comment carrying it: id, name, size and its link. The wire types gain Attachment and attachments?. MCP's issue tool takes attach too, since its parameters come from the flags. The server side is abso 621 (off until Cloud binds the bucket). Tests: client/test/attach.test.ts, against a stand-in Issues server. Checked: biome ci, npm run check (698 pass).Compare58 /** Images it carries (abso issue 171); left out when none. */
59 attachments?: Attachment[];
pinch5abso issue new and abso issue N --comment take --attach <file,file> (abso issue 171). Each file goes up to the Issues Worker first (POST /p/:project/a/:agent/attachments, the bytes as the body and the name URI-encoded in X-Avcs-Name), and the write carries the ids the uploads answered. Nothing is sent if a file is missing or over 10 MB. --attach anywhere else is refused. The issue's page lists each attachment under the issue or comment carrying it: id, name, size and its link. The wire types gain Attachment and attachments?. MCP's issue tool takes attach too, since its parameters come from the flags. The server side is abso 621 (off until Cloud binds the bucket). Tests: client/test/attach.test.ts, against a stand-in Issues server. Checked: biome ci, npm run check (698 pass).Compare62/** An image on an issue or comment (abso issue 171): GET /p/:project/attachments/<id> serves it. */
63export interface Attachment {
64 /** "a" and the first 12 hex of its sha256: what a text points at. */
65 id: string;
66 name: string;
67 type: string;
68 size: number;
pinch24abso issue N lists an SVG attachment's own file. A server that takes SVG attachments draws each one as a PNG, and keeps the SVG only as a download. The issue page now shows that download under the image: 'drawn from "logo.svg", 512 B, <link>/source'. The --attach help says svg is taken, up to 1 MB, on servers that take it.Compare69 /** The SVG an image was drawn from, when it was one: the server serves the image as a PNG, and this only as a download at attachments/<id>/source. */
70 source?: { name: string; size: number };
pinch5abso issue new and abso issue N --comment take --attach <file,file> (abso issue 171). Each file goes up to the Issues Worker first (POST /p/:project/a/:agent/attachments, the bytes as the body and the name URI-encoded in X-Avcs-Name), and the write carries the ids the uploads answered. Nothing is sent if a file is missing or over 10 MB. --attach anywhere else is refused. The issue's page lists each attachment under the issue or comment carrying it: id, name, size and its link. The wire types gain Attachment and attachments?. MCP's issue tool takes attach too, since its parameters come from the flags. The server side is abso 621 (off until Cloud binds the bucket). Tests: client/test/attach.test.ts, against a stand-in Issues server. Checked: biome ci, npm run check (698 pass).Compare71}
74 id: number;
75 /** The issue it's on; none for a decision that belongs to no issue. */
76 issue: number | null;
77 by: string;
78 of: string;
79 kind: "question" | "task";
80 question: string;
codex-prose-authorship-1107Add sanitized prose authorship DTOsCompare81 authorship: { question: ProseAuthorship };
pinch35Client: files on asks and answers. abso ask and abso answer take --attach (uploaded first, as on issues; not with --withdraw); an ask lists its question's files under it and its answer's under the answer; abso issue N --save-attachments takes them too. An Issues server from before asks carried files keeps the words and drops the files: abso says so (notKept in --json) instead of losing them quietly. Wire: Ask.attachments and answer.attachments, optional. Client tests 286/286, tsc and biome clean.Compare82 /** Files the question carries; absent when none, and from older servers. */
83 attachments?: Attachment[];
85 due: string | null;
86 recommendation: { text: string; by: string } | null;
87 options: string[];
88 /** Issues it holds up, besides its own. */
89 blocks: number[];
90 at: number;
infra-split14An asker can take back an ask: abso ask --withdraw <ask> [--note "why"]
An ask that later decisions have overtaken used to sit in the asked person's waiting list for good. Only they could answer it, and "none of these" wasn't an option. Now the one who asked can withdraw it.
- `abso ask --withdraw <ask> [--note "why"]` sends one call to the server's withdraw route. It's refused before any call when mixed with a question or the other ask flags. `--note-file` reads the note from a file or stdin, like every text flag.
- A withdrawn ask closes the way an answered one does: it leaves the waiting list, and it stops holding its issue at Blocked. The ask keeps its question. The asker's note is kept as why, and the one asked hears it.
- Ask gains `outcome?: "withdrawn"`. Older servers leave it out. The asks list and an issue's page show "withdrawn by <asker>" and the note, instead of "answered by".
- The server side of the route comes with the hosted Issues service. Until it's there, the call answers with that server's error.
Tests: the new usage mistakes, and the single POST to the asker's own route. Checked: npx biome ci . and npm run check exit 0 (704 pass, 1 skipped).Compare91 /** Its answer; for a withdrawn ask, the asker's note on why, with the asker as `by`. */
codex-prose-authorship-1107Add sanitized prose authorship DTOsCompare92 answer: { by: string; words: string; at: number; authorship: ProseAuthorship; attachments?: Attachment[] } | null;
init0Start the project93 /** When waiting first listed it to the one it's asked of; null until then (abso issue 124). */
94 seen: number | null;
infra-split14An asker can take back an ask: abso ask --withdraw <ask> [--note "why"]
An ask that later decisions have overtaken used to sit in the asked person's waiting list for good. Only they could answer it, and "none of these" wasn't an option. Now the one who asked can withdraw it.
- `abso ask --withdraw <ask> [--note "why"]` sends one call to the server's withdraw route. It's refused before any call when mixed with a question or the other ask flags. `--note-file` reads the note from a file or stdin, like every text flag.
- A withdrawn ask closes the way an answered one does: it leaves the waiting list, and it stops holding its issue at Blocked. The ask keeps its question. The asker's note is kept as why, and the one asked hears it.
- Ask gains `outcome?: "withdrawn"`. Older servers leave it out. The asks list and an issue's page show "withdrawn by <asker>" and the note, instead of "answered by".
- The server side of the route comes with the hosted Issues service. Until it's there, the call answers with that server's error.
Tests: the new usage mistakes, and the single POST to the asker's own route. Checked: npx biome ci . and npm run check exit 0 (704 pass, 1 skipped).Compare95 /** "withdrawn" when the asker took it back; absent for an open or answered ask, and from older servers. */
96 outcome?: "withdrawn";
pinch53abso ack <ask> ["note"]: the one asked says they have an ask and will answer later. The ask stays open and keeps blocking; abso issue shows it as acknowledged with the note, and the asker hears it. The Ask wire type gains ack, the API client gains ack(), and the skill mentions the command.Compare97 /** When the one asked acknowledged it without answering yet, with their note; it stays open. Absent until then. */
codex-prose-authorship-1107Add sanitized prose authorship DTOsCompare98 ack?: { at: number; note: string; authorship: { note: ProseAuthorship } };
pinch72Asks 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.Compare99 /** 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. */
100 replies?: AskReply[];
101 /** 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. */
102 waitingOn?: string | null;
103}
105/** One reply on an ask, from the asker or the one asked. Neither opens nor closes it. */
106export interface AskReply {
107 id: number;
108 by: string;
109 text: string;
codex-prose-authorship-1107Add sanitized prose authorship DTOsCompare110 authorship: ProseAuthorship;
pinch72Asks 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.Compare111 at: number;
112 /** A question back from the one asked: the ask waits on the asker until they reply. */
113 question?: true;
116export interface Claim {
117 agent: string;
118 change: number;
119 since: number;
120}
122export interface IssuePage {
124 description: string;
125 authorship: { title: ProseAuthorship; description: ProseAuthorship };
126 lines: Lines | null;
127 watchers: string[];
128 attachments?: Attachment[];
129 };
131 edits: Edit[];
132 asks: Ask[];
133 claims: Claim[];
134 children: IssueRow[];
135}
137/** What a write tells the people working on an issue; the avcs Worker sends it. */
138export interface News {
139 issue: number | null;
140 text: string;
141 /** Besides the issue's agents: who else hears it (the one asked, or the asker). */
142 to?: string[];
143}
145/** One edit, in the issue's activity: each field it changed, from and to, and who was told. */
146export interface Edit {
147 id: number;
148 by: string;
149 changes: Partial<
150 Record<"title" | "description" | "parent" | "agent" | "blockedBy" | "labels", { from: unknown; to: unknown }>
151 >;
152 /** Who heard it: the watchers and anyone added, or nobody when the writer said not to notify. */
153 notified: string[];
154 at: number;
155}
157/** A new issue's form as it was left: open's fields, any of them still empty. */
158export interface DraftBody {
159 title?: string;
160 description?: string;
161 parent?: number | null;
162 lines?: Lines | null;
163 agent?: string | null;
164 blockedBy?: number[];
165 notify?: string[];
166 labels?: string[];
167}
169/** An issue not opened yet: its writer's alone, with no number, and no news. */
170export interface Draft {
171 id: number;
172 body: DraftBody;
173 saved: number;
174}
devops20Add abso search: find a project's issues by words or meaning
`abso search "<words>" [--limit <N>]` lists the project's issues that
match, best first, and is served as an MCP tool as well.
- Each hit shows the issue, then where it matched: the title, the
description, a comment, or "by meaning".
- "#N" or "N" puts issue N first.
- Where the server also searches by meaning, an issue worded unlike
the search still turns up; the hit says so.Compare175
176/** One issue search hit: the issue, where it matched, a few words around it. */
177export interface IssueSearchHit {
179 id: number;
180 title: string;
181 status: Status;
182 updated: number;
183 labels: string[];
184 authorship: { title: ProseAuthorship };
185 };
devops20Add abso search: find a project's issues by words or meaning
`abso search "<words>" [--limit <N>]` lists the project's issues that
match, best first, and is served as an MCP tool as well.
- Each hit shows the issue, then where it matched: the title, the
description, a comment, or "by meaning".
- "#N" or "N" puts issue N first.
- Where the server also searches by meaning, an issue worded unlike
the search still turns up; the hit says so.Compare186 where: "title" | "description" | "comment";
codex-prose-authorship-1107Add sanitized prose authorship DTOsCompare187 matchedAuthorship: ProseAuthorship;
devops20Add abso search: find a project's issues by words or meaning
`abso search "<words>" [--limit <N>]` lists the project's issues that
match, best first, and is served as an MCP tool as well.
- Each hit shows the issue, then where it matched: the title, the
description, a comment, or "by meaning".
- "#N" or "N" puts issue N first.
- Where the server also searches by meaning, an issue worded unlike
the search still turns up; the hit says so.Compare188 comment?: number;
189 /** The words around the match; char(1) and char(2) bracket each matched span. */
190 snippet: string;
191 /** Only meaning search found it: the words differ, the meaning matches. */
192 meaning?: true;
193}
groups256groups: abso groups and abso group, for a project's named groups of agents and people with one shared history. abso group <name> reads its settings, members and history (newest first; --before, --limit, --kind). --post adds a message, with news for every other member unless --news names some, --except leaves some out, or --news none keeps it in the history only. --join, --leave, --add, --remove, --rename, --private on|off and --joinable on|off change it; abso group new makes one. A retried post never posts twice (the Idempotency-Key every POST sends). Both are MCP tools; a visitor folder refuses them. Tests: client/test/group-commands.test.ts, visitor.test.ts.Compare194
195/** A group: a named set of agents and people in one project, with one shared history. */
196export interface Group {
197 id: number;
198 name: string;
199 /** Hidden from those not in it; joined, if joinable, only by its exact name. */
200 private: boolean;
201 /** Anyone in the project may join; otherwise its maker or a project owner adds members. */
202 joinable: boolean;
203 policyRevision: number;
204 membershipRevision: number;
205 /** The number of its newest event. */
206 lastEvent: number;
207 createdBy: string;
208 createdAt: number;
209 updatedAt: number;
210}
212/** A group as one caller sees it in a list. */
213export interface GroupSummary extends Group {
214 members: number;
215 member: boolean;
216}
218/** One group with its roster. */
219export interface GroupShown {
220 group: Group;
221 members: { who: string; since: number }[];
222 member: boolean;
223 /** Who can read its history, said where members see it. */
224 whoReads: string;
225}
227/** One thing that happened in a group, numbered from 1. Events are only added, never changed. */
228export interface GroupEvent {
229 n: number;
230 kind: "created" | "message" | "joined" | "left" | "added" | "removed" | "settings";
231 by: string;
232 at: number;
233 text?: string;
234 replyTo?: number;
235 who?: string;
236 detail?: Record<string, unknown>;
237 membershipRevision: number;
238 policyRevision: number;
239 /** A message's news: who it went to when sent. Empty means history only. */
240 news?: string[];
241}
243/** A group write's answer. */
244export interface GroupWrite {
245 group: Group;
246 event?: GroupEvent;
247 /** A retry of a post already made: this is the first one. */
248 replayed?: boolean;
249 news?: News;
250}