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
code on this site's /mcp
CLI
none: the JSON below is the answer
JSON
/christopher/abso-core/files/client/src/issues-wire.ts?version=22&format=json
147 linesFirst import 82% · pinch 8% · devops 7% · infra-split 2%Last change devops in version 20, 4 versions changed it

You're reading version 22. The newest is 318, and 6 versions since then changed this file. Go to the newestCompare with 318

1// 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;
48 /** Images it carries (abso issue 171); left out when none. */
49 attachments?: Attachment[];
52/** 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;
61export interface Ask {
62 id: number;
63 /** The issue it's on; none for a decision that belongs to no issue. */
64 issue: number | null;
65 by: string;
66 of: string;
67 kind: "question" | "task";
68 question: string;
69 review: boolean;
70 due: string | null;
71 recommendation: { text: string; by: string } | null;
72 options: string[];
73 /** Issues it holds up, besides its own. */
74 blocks: number[];
75 at: number;
76 /** Its answer; for a withdrawn ask, the asker's note on why, with the asker as `by`. */
77 answer: { by: string; words: string; at: number } | null;
78 /** When waiting first listed it to the one it's asked of; null until then (abso issue 124). */
79 seen: number | null;
80 /** "withdrawn" when the asker took it back; absent for an open or answered ask, and from older servers. */
81 outcome?: "withdrawn";
84export interface Claim {
85 agent: string;
86 change: number;
87 since: number;
90export interface IssuePage {
91 issue: IssueRow & { description: string; lines: Lines | null; watchers: string[]; attachments?: Attachment[] };
92 comments: Comment[];
93 edits: Edit[];
94 asks: Ask[];
95 claims: Claim[];
96 children: IssueRow[];
99/** What a write tells the people working on an issue; the avcs Worker sends it. */
100export interface News {
101 issue: number | null;
102 text: string;
103 /** Besides the issue's agents: who else hears it (the one asked, or the asker). */
104 to?: string[];
107/** One edit, in the issue's activity: each field it changed, from and to, and who was told. */
108export interface Edit {
109 id: number;
110 by: string;
111 changes: Partial<
112 Record<"title" | "description" | "parent" | "agent" | "blockedBy" | "labels", { from: unknown; to: unknown }>
113 >;
114 /** Who heard it: the watchers and anyone added, or nobody when the writer said not to notify. */
115 notified: string[];
116 at: number;
119/** A new issue's form as it was left: open's fields, any of them still empty. */
120export interface DraftBody {
121 title?: string;
122 description?: string;
123 parent?: number | null;
124 lines?: Lines | null;
125 agent?: string | null;
126 blockedBy?: number[];
127 notify?: string[];
128 labels?: string[];
131/** An issue not opened yet: its writer's alone, with no number, and no news. */
132export interface Draft {
133 id: number;
134 body: DraftBody;
135 saved: number;
138/** One issue search hit: the issue, where it matched, a few words around it. */
139export interface IssueSearchHit {
140 issue: { id: number; title: string; status: Status; updated: number; labels: string[] };
141 where: "title" | "description" | "comment";
142 comment?: number;
143 /** The words around the match; char(1) and char(2) bracket each matched span. */
144 snippet: string;
145 /** Only meaning search found it: the words differ, the meaning matches. */
146 meaning?: true;