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
MCP
blame on this site's /mcp
CLI
abso blame client/src/issues-wire.ts --draft login-wait --json
JSON
/christopher/abso-core/blame/client/src/issues-wire.ts?draft=login-wait&format=json
153 linesFirst import 78% · pinch 12% · devops 7% · infra-split 2%Last change pinch in version 53,

153 lines from 7 changes in 7 versions.

init0Start the project1// What Issues answers and takes over HTTP (abso issues 54 and 141): the
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.
5
6export type Status = "open" | "in progress" | "in review" | "blocked" | "done" | "dropped";
7
8/** Who is acting: an agent through the client, or a signed-in person through the website. */
9export type Actor = { agent: string } | { person: string };
11export interface Lines {
12 file: string;
13 from: number;
14 to: number;
15 version: number;
18export interface IssueRow {
19 id: number;
20 title: string;
21 parent: number | null;
22 status: Status;
23 /** Who it's for: set when it's written or edited, else the first agent whose start note named it. */
24 agent: string | null;
25 /** The agents whose start notes name it now. */
26 agents: string[];
27 /** Issues it waits on: it's Blocked until each is Done. */
28 blockedBy: number[];
29 /** Its labels, sorted: friction, client, and the like. */
30 labels: string[];
31 /** Versions of shared published for it, oldest first. */
32 versions: number[];
33 /** Who its open asks wait on (an agent, or person:<id>). */
34 waitingOn: string[];
35 opened: { by: string; at: number };
36 /** The latest claim, publish, comment, ask, answer or close. */
37 updated: number;
38 closed: { how: "done" | "dropped"; by: string; version: number | null; at: number } | null;
39 children: number;
42export interface Comment {
43 id: number;
44 by: string;
45 kind: "comment" | "objection";
46 text: string;
47 at: 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).Compare48 /** Images it carries (abso issue 171); left out when none. */
49 attachments?: Attachment[];
init0Start the project50}
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).Compare52/** An image on an issue or comment (abso issue 171): GET /p/:project/attachments/<id> serves it. */
53export interface Attachment {
54 /** "a" and the first 12 hex of its sha256: what a text points at. */
55 id: string;
56 name: string;
57 type: string;
58 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.Compare59 /** 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. */
60 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).Compare61}
init0Start the project63export interface Ask {
64 id: number;
65 /** The issue it's on; none for a decision that belongs to no issue. */
66 issue: number | null;
67 by: string;
68 of: string;
69 kind: "question" | "task";
70 question: string;
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.Compare71 /** Files the question carries; absent when none, and from older servers. */
72 attachments?: Attachment[];
init0Start the project73 review: boolean;
74 due: string | null;
75 recommendation: { text: string; by: string } | null;
76 options: string[];
77 /** Issues it holds up, besides its own. */
78 blocks: number[];
79 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).Compare80 /** Its answer; for a withdrawn ask, the asker's note on why, with the asker as `by`. */
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.Compare81 answer: { by: string; words: string; at: number; attachments?: Attachment[] } | null;
init0Start the project82 /** When waiting first listed it to the one it's asked of; null until then (abso issue 124). */
83 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).Compare84 /** "withdrawn" when the asker took it back; absent for an open or answered ask, and from older servers. */
85 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.Compare86 /** When the one asked acknowledged it without answering yet, with their note; it stays open. Absent until then. */
87 ack?: { at: number; note: string };
init0Start the project88}
90export interface Claim {
91 agent: string;
92 change: number;
93 since: number;
96export interface IssuePage {
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).Compare97 issue: IssueRow & { description: string; lines: Lines | null; watchers: string[]; attachments?: Attachment[] };
init0Start the project98 comments: Comment[];
99 edits: Edit[];
100 asks: Ask[];
101 claims: Claim[];
102 children: IssueRow[];
105/** What a write tells the people working on an issue; the avcs Worker sends it. */
106export interface News {
107 issue: number | null;
108 text: string;
109 /** Besides the issue's agents: who else hears it (the one asked, or the asker). */
110 to?: string[];
113/** One edit, in the issue's activity: each field it changed, from and to, and who was told. */
114export interface Edit {
115 id: number;
116 by: string;
117 changes: Partial<
118 Record<"title" | "description" | "parent" | "agent" | "blockedBy" | "labels", { from: unknown; to: unknown }>
119 >;
120 /** Who heard it: the watchers and anyone added, or nobody when the writer said not to notify. */
121 notified: string[];
122 at: number;
125/** A new issue's form as it was left: open's fields, any of them still empty. */
126export interface DraftBody {
127 title?: string;
128 description?: string;
129 parent?: number | null;
130 lines?: Lines | null;
131 agent?: string | null;
132 blockedBy?: number[];
133 notify?: string[];
134 labels?: string[];
137/** An issue not opened yet: its writer's alone, with no number, and no news. */
138export interface Draft {
139 id: number;
140 body: DraftBody;
141 saved: number;
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.Compare143
144/** One issue search hit: the issue, where it matched, a few words around it. */
145export interface IssueSearchHit {
146 issue: { id: number; title: string; status: Status; updated: number; labels: string[] };
147 where: "title" | "description" | "comment";
148 comment?: number;
149 /** The words around the match; char(1) and char(2) bracket each matched span. */
150 snippet: string;
151 /** Only meaning search found it: the words differ, the meaning matches. */
152 meaning?: true;