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

+21 −6 in 2 places
Lines 27–33 at 36 (were 27–32 at 35)
2727import { fromEnv } from "./env-names.ts";
2828import { ignoredHere } from "./fetch.ts";
2929import { loadIgnore, relativeTo } from "./folder.ts";
30+import { queuedLines, standing } from "./queue.ts";
3031import { seenText, shortWhen } from "./times.ts";
3132
3233const q = (s: string): string => JSON.stringify(s);
Lines 699–729 at 36 (were 698–714 at 35)
698699 const { api, config } = openIssues(env);
699700 const mine = bool(args, "mine") || str(args, "of") === config.agent;
700701 const of = mine ? config.agent : str(args, "of");
701− const { asks } = mine ? await api.waitingMine() : await api.waiting(of);
702+ // With --mine, your own publishes still in the merge queue are open work too. A server without a queue,
703+ // or one that can't be read now, leaves them out rather than failing the asks.
704+ const [{ asks }, queue] = await Promise.all([
705+ mine ? api.waitingMine() : api.waiting(of),
706+ mine ? api.queueState().catch(() => undefined) : undefined,
707+ ]);
708+ const queued = queuedLines(queue, config.agent);
709+ const yours = (queue?.items ?? []).filter((q) => q.agent === config.agent);
702710 return {
703− text:
704− asks.length === 0
705− ? `Nothing is waiting${of ? ` on ${of}` : ""}.`
711+ text: [
712+ ...queued,
713+ ...(asks.length === 0
714+ ? [queued.length > 0 ? `No open asks of ${of}.` : `Nothing is waiting${of ? ` on ${of}` : ""}.`]
706715 : [
707716 `${plural(asks.length, "open ask")}${of ? ` of ${of}` : ""}, soonest due first:`,
708717 ...asks.map((a) => askLine(a, api)),
709718 'abso answer <ask> "..." answers one asked of you.',
710− ].join("\n"),
711− json: { asks },
719+ ]),
720+ ].join("\n"),
721+ json: {
722+ asks,
723+ ...(yours.length > 0
724+ ? { queued: yours.map((q) => ({ id: q.id, message: q.message, standing: standing(queue!.items, q.id) })) }
725+ : {}),
726+ },
712727 };
713728}
714729
MCP
compare on this site's /mcp
CLI
abso diff 35 36 client/src/issues.ts --json
JSON
/christopher/abso-core/compare/35..36?file=client%2Fsrc%2Fissues.ts&format=json