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=2&format=json
122 linesFirst import 100%Last change First import in version 0, 1 version changed it

You're reading version 2. The newest is 318, and 9 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;
50export interface Ask {
51 id: number;
52 /** The issue it's on; none for a decision that belongs to no issue. */
53 issue: number | null;
54 by: string;
55 of: string;
56 kind: "question" | "task";
57 question: string;
58 review: boolean;
59 due: string | null;
60 recommendation: { text: string; by: string } | null;
61 options: string[];
62 /** Issues it holds up, besides its own. */
63 blocks: number[];
64 at: number;
65 answer: { by: string; words: string; at: number } | null;
66 /** When waiting first listed it to the one it's asked of; null until then (abso issue 124). */
67 seen: number | null;
70export interface Claim {
71 agent: string;
72 change: number;
73 since: number;
76export interface IssuePage {
77 issue: IssueRow & { description: string; lines: Lines | null; watchers: string[] };
78 comments: Comment[];
79 edits: Edit[];
80 asks: Ask[];
81 claims: Claim[];
82 children: IssueRow[];
85/** What a write tells the people working on an issue; the avcs Worker sends it. */
86export interface News {
87 issue: number | null;
88 text: string;
89 /** Besides the issue's agents: who else hears it (the one asked, or the asker). */
90 to?: string[];
93/** One edit, in the issue's activity: each field it changed, from and to, and who was told. */
94export interface Edit {
95 id: number;
96 by: string;
97 changes: Partial<
98 Record<"title" | "description" | "parent" | "agent" | "blockedBy" | "labels", { from: unknown; to: unknown }>
99 >;
100 /** Who heard it: the watchers and anyone added, or nobody when the writer said not to notify. */
101 notified: string[];
102 at: number;
105/** A new issue's form as it was left: open's fields, any of them still empty. */
106export interface DraftBody {
107 title?: string;
108 description?: string;
109 parent?: number | null;
110 lines?: Lines | null;
111 agent?: string | null;
112 blockedBy?: number[];
113 notify?: string[];
114 labels?: string[];
117/** An issue not opened yet: its writer's alone, with no number, and no news. */
118export interface Draft {
119 id: number;
120 body: DraftBody;
121 saved: number;