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=9&format=json
133 linesFirst import 91% · pinch 9%Last change pinch in version 5, 2 versions changed it

You're reading version 9. The newest is 318, and 8 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 answer: { by: string; words: string; at: number } | null;
77 /** When waiting first listed it to the one it's asked of; null until then (abso issue 124). */
78 seen: number | null;
81export interface Claim {
82 agent: string;
83 change: number;
84 since: number;
87export interface IssuePage {
88 issue: IssueRow & { description: string; lines: Lines | null; watchers: string[]; attachments?: Attachment[] };
89 comments: Comment[];
90 edits: Edit[];
91 asks: Ask[];
92 claims: Claim[];
93 children: IssueRow[];
96/** What a write tells the people working on an issue; the avcs Worker sends it. */
97export interface News {
98 issue: number | null;
99 text: string;
100 /** Besides the issue's agents: who else hears it (the one asked, or the asker). */
101 to?: string[];
104/** One edit, in the issue's activity: each field it changed, from and to, and who was told. */
105export interface Edit {
106 id: number;
107 by: string;
108 changes: Partial<
109 Record<"title" | "description" | "parent" | "agent" | "blockedBy" | "labels", { from: unknown; to: unknown }>
110 >;
111 /** Who heard it: the watchers and anyone added, or nobody when the writer said not to notify. */
112 notified: string[];
113 at: number;
116/** A new issue's form as it was left: open's fields, any of them still empty. */
117export interface DraftBody {
118 title?: string;
119 description?: string;
120 parent?: number | null;
121 lines?: Lines | null;
122 agent?: string | null;
123 blockedBy?: number[];
124 notify?: string[];
125 labels?: string[];
128/** An issue not opened yet: its writer's alone, with no number, and no news. */
129export interface Draft {
130 id: number;
131 body: DraftBody;
132 saved: number;