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

Versions 35 to 36

Compare

+17 −0 in 1 place
Lines 138–160 at 36 (were 138–143 at 35)
138138 return lines;
139139}
140140
141+/**
142+ * What abso waiting --mine says about this agent's own publishes in the merge queue: where each stands, whether
143+ * the queue is paused, and how the outcome comes. Nothing when none of theirs waits.
144+ */
145+export function queuedLines(queue: QueueState | null | undefined, me: string): string[] {
146+ const items = queue?.items ?? [];
147+ const mine = items.filter((q) => q.agent === me);
148+ if (mine.length === 0) return [];
149+ return [
150+ ...mine.map(
151+ (q) => `Your publish ${q.id} (${JSON.stringify(q.message)}) is in the merge queue: ${standing(items, q.id)}.`,
152+ ),
153+ ...(queue?.paused ? [`The merge queue is paused: ${queue.paused.reason}.`] : []),
154+ `${mine.length === 1 ? "It lands or is pulled" : "Each lands or is pulled"} once the project's check runs on it; the outcome comes as news, and abso unqueue takes ${mine.length === 1 ? "it" : "them"} back.`,
155+ ];
156+}
141158/** abso unqueue: take this agent's queued publishes back; their changes stay in the draft. */
142159export async function runUnqueue(args: Parsed, env: Env): Promise<Output> {
143160 if (args.positionals.length > 0)
MCP
compare on this site's /mcp
CLI
abso diff 35 36 client/src/queue.ts --json
JSON
/christopher/abso-core/compare/35..36?file=client%2Fsrc%2Fqueue.ts&format=json