{"draft":null,"from":17,"to":318,"files":[{"path":"client/src/queue.ts","added":31,"removed":14,"diff":"--- a/client/src/queue.ts\n+++ b/client/src/queue.ts\n@@ -1,4 +1,4 @@\n-// The merge queue on the client (#39): with \"queue\": true in avcs.json, a\n+// The merge queue on the client (#39): with \"queue\": true in abso.json, a\n // publish to shared waits in the queue until a batch with it passes the\n // project's check, and lands, or is pulled with the check's output. publish\n // waits for that, up to a cap under the chat's 2-minute command limit; status\n@@ -6,10 +6,10 @@\n \n import { type Api, newsLines, type QueueItem, type QueueState } from \"./api.ts\";\n import { type Parsed, UsageError } from \"./args.ts\";\n-import { type Env, type Output, open, plural } from \"./commands.ts\";\n+import { type Env, type Output, open } from \"./commands.ts\";\n import { logNews } from \"./folder.ts\";\n \n-/** How long publish waits by default: under the 2 minutes a Claude Code shell command gets (#39, agreed with Engine). */\n+/** How long publish waits by default: under the 2 minutes a Claude Code shell command gets (#39). */\n export const WAIT_SECONDS = 100;\n \n /** Exit code for a publish still in the queue when the wait ends (#39). */\n@@ -30,7 +30,7 @@\n \t\tconst batch = items.filter((q) => q.checking).length;\n \t\treturn batch === 1 ? \"being checked\" : `being checked in a batch of ${batch}`;\n \t}\n-\treturn at === 0 ? \"next to be checked\" : `waiting, ${at} ${at === 1 ? \"publish\" : \"publishes\"} ahead of it`;\n+\treturn at === 0 ? \"next to be checked\" : `waiting, ${at} ${at === 1 ? \"push\" : \"pushes\"} ahead of it`;\n }\n \n /**\n@@ -61,7 +61,7 @@\n \t\tconst now = state.paused\n \t\t\t? `the queue is paused: ${state.paused.reason}; next try ${state.paused.nextTry.slice(11, 16)} UTC`\n \t\t\t: standing(state.items, id);\n-\t\tif (now !== said) say(`abso: your publish is ${now}.\\n`);\n+\t\tif (now !== said) say(`abso: your push is ${now}.\\n`);\n \t\tsaid = now;\n \t}\n \treturn { kind: \"waiting\", state };\n@@ -76,7 +76,7 @@\n \t// publish says the outcome itself, so that line isn't printed again as news.\n \tconst said = [...all]\n \t\t.reverse()\n-\t\t.find((n) => /^Your queued publish \".*\" (landed as version \\d+|was pulled: )/s.test(n));\n+\t\t.find((n) => /^Your queued push \".*\" (landed as version \\d+|was turned back: )/s.test(n));\n \tconst news = all.filter((n) => n !== said);\n \tconst last = state.last;\n \tconst landed =\n@@ -88,27 +88,27 @@\n \tif (last?.kind === \"pulled\" && last.pulled.includes(id))\n \t\treturn {\n \t\t\tkind: \"pulled\",\n-\t\t\ttext: `Your queued publish was pulled: the project's check failed on it.${last.output ? `\\n${last.output.trimEnd()}` : \"\"}`,\n+\t\t\ttext: `Your queued push was turned back: the project's check failed on it.${last.output ? `\\n${last.output.trimEnd()}` : \"\"}`,\n \t\t\tnews,\n \t\t};\n \treturn { kind: \"gone\", news };\n }\n \n /**\n- * A pull, said for the publisher (#39, agreed with Engine): the check's output\n+ * A pull, said for the publisher (#39): the check's output\n  * first, then the verdict as the last line, since that's the line an agent\n  * acts on. The engine's news has the output in the middle of its sentence.\n  */\n export function pulledText(news: string): string {\n \tconst m =\n-\t\t/^Your queued publish (\".*\") was pulled: ([^\\n]*?)(?::\\n([\\s\\S]*?))?\\.? Its changes are still in your draft\\.$/s.exec(\n+\t\t/^Your queued push (\".*\") was turned back: ([^\\n]*?)(?::\\n([\\s\\S]*?))?\\.? Its changes are still in your draft\\.$/s.exec(\n \t\t\tnews.replace(/\\n\\. Its changes/, \". Its changes\"),\n \t\t);\n-\tif (!m) return `${news}\\nNot published. Fix it, then publish again.`;\n+\tif (!m) return `${news}\\nNot pushed. Fix it, then push again.`;\n \tconst output = m[3]?.trimEnd() ?? \"\";\n \treturn [\n \t\t...(output === \"\" ? [] : [\"The check's output ends:\", output]),\n-\t\t`Not published: your queued publish ${m[1]} was pulled: ${m[2]!.replace(/\\.$/, \"\")}. Its changes are still in your draft; fix them, then publish again.`,\n+\t\t`Not pushed: your queued push ${m[1]} was turned back: ${m[2]!.replace(/\\.$/, \"\")}. Its changes are still in your draft; fix them, then push again.`,\n \t].join(\"\\n\");\n }\n \n@@ -138,10 +138,27 @@\n \treturn lines;\n }\n \n+/**\n+ * What abso waiting --mine says about this agent's own publishes in the merge queue: where each stands, whether\n+ * the queue is paused, and how the outcome comes. Nothing when none of theirs waits.\n+ */\n+export function queuedLines(queue: QueueState | null | undefined, me: string): string[] {\n+\tconst items = queue?.items ?? [];\n+\tconst mine = items.filter((q) => q.agent === me);\n+\tif (mine.length === 0) return [];\n+\treturn [\n+\t\t...mine.map(\n+\t\t\t(q) => `Your push ${q.id} (${JSON.stringify(q.message)}) is in the merge queue: ${standing(items, q.id)}.`,\n+\t\t),\n+\t\t...(queue?.paused ? [`The merge queue is paused: ${queue.paused.reason}.`] : []),\n+\t\t`${mine.length === 1 ? \"It lands or is turned back\" : \"Each lands or is turned back\"} once the project's check runs on it; the outcome comes as news, and abso unqueue takes ${mine.length === 1 ? \"it\" : \"them\"} back.`,\n+\t];\n+}\n+\n /** abso unqueue: take this agent's queued publishes back; their changes stay in the draft. */\n export async function runUnqueue(args: Parsed, env: Env): Promise<Output> {\n \tif (args.positionals.length > 0)\n-\t\tthrow new UsageError(\"unqueue takes no arguments: it takes back every publish of yours still in the merge queue\");\n+\t\tthrow new UsageError(\"unqueue takes no arguments: it takes back every push of yours still in the merge queue\");\n \tconst { root, api } = open(env);\n \tconst answer = await api.unqueue();\n \t// The engine says it as news too (\"you withdrew it\"); this command's own text says the same, so it isn't printed twice.\n@@ -150,11 +167,11 @@\n \t\t() => [] as string[],\n \t);\n \tlogNews(root, news);\n-\tconst others = news.filter((n) => !/^Your queued publish \".*\" was pulled: you withdrew it\\./s.test(n));\n+\tconst others = news.filter((n) => !/^Your queued push \".*\" was turned back: you withdrew it\\./s.test(n));\n \tconst ids = answer.pulled;\n \treturn {\n \t\ttext: [\n-\t\t\t`Took back ${ids.length === 1 ? `queued publish ${ids[0]}` : `queued publishes ${ids.join(\", \")}`}: ${ids.length === 1 ? \"its\" : \"their\"} changes are still in your draft, unpublished.`,\n+\t\t\t`Took back ${ids.length === 1 ? `queued push ${ids[0]}` : `queued pushes ${ids.join(\", \")}`}: ${ids.length === 1 ? \"its\" : \"their\"} changes are still in your draft, unpushed.`,\n \t\t\t...others.map((n) => `  ${n}`),\n \t\t].join(\"\\n\"),\n \t\tjson: { pulled: ids, news: others },"}],"unmatched":[]}