{"file":"client/test/queue-waiting.test.ts","version":318,"total":50,"from":1,"to":50,"lines":[{"n":1,"text":"// What abso waiting --mine says about your own publishes in the merge queue: where each stands, a pause, and how","atom":"a303","author":"pinch","version":36},{"n":2,"text":"// the outcome comes. Nothing when none of yours waits.","atom":"a303","author":"pinch","version":36},{"n":3,"text":"","atom":"a303","author":"pinch","version":36},{"n":4,"text":"import assert from \"node:assert/strict\";","atom":"a303","author":"pinch","version":36},{"n":5,"text":"import { describe, it } from \"node:test\";","atom":"a303","author":"pinch","version":36},{"n":6,"text":"import type { QueueItem, QueueState } from \"../src/api.ts\";","atom":"a303","author":"pinch","version":36},{"n":7,"text":"import { queuedLines } from \"../src/queue.ts\";","atom":"a303","author":"pinch","version":36},{"n":8,"text":"","atom":"a303","author":"pinch","version":36},{"n":9,"text":"const item = (id: number, agent: string, checking = false): QueueItem => ({","atom":"a303","author":"pinch","version":36},{"n":10,"text":"\tid,","atom":"a303","author":"pinch","version":36},{"n":11,"text":"\tagent,","atom":"a303","author":"pinch","version":36},{"n":12,"text":"\tmessage: `push ${id}`,","atom":"a858","author":"rename","version":100},{"n":13,"text":"\ttime: 0,","atom":"a303","author":"pinch","version":36},{"n":14,"text":"\tchanges: 1,","atom":"a303","author":"pinch","version":36},{"n":15,"text":"\tchecking,","atom":"a303","author":"pinch","version":36},{"n":16,"text":"});","atom":"a303","author":"pinch","version":36},{"n":17,"text":"const state = (items: QueueItem[], paused: QueueState[\"paused\"] = null): QueueState =>","atom":"a303","author":"pinch","version":36},{"n":18,"text":"\t({ items, paused }) as unknown as QueueState;","atom":"a303","author":"pinch","version":36},{"n":19,"text":"","atom":"a303","author":"pinch","version":36},{"n":20,"text":"describe(\"waiting: your pushes in the merge queue\", () => {","atom":"a858","author":"rename","version":100},{"n":21,"text":"\tit(\"says nothing when none of yours waits, or there's no queue to read\", () => {","atom":"a303","author":"pinch","version":36},{"n":22,"text":"\t\tassert.deepEqual(queuedLines(undefined, \"ann\"), []);","atom":"a303","author":"pinch","version":36},{"n":23,"text":"\t\tassert.deepEqual(queuedLines(state([]), \"ann\"), []);","atom":"a303","author":"pinch","version":36},{"n":24,"text":"\t\tassert.deepEqual(queuedLines(state([item(1, \"bob\")]), \"ann\"), []);","atom":"a303","author":"pinch","version":36},{"n":25,"text":"\t});","atom":"a303","author":"pinch","version":36},{"n":26,"text":"","atom":"a303","author":"pinch","version":36},{"n":27,"text":"\tit(\"says where yours stands, and how the outcome comes\", () => {","atom":"a303","author":"pinch","version":36},{"n":28,"text":"\t\tassert.deepEqual(queuedLines(state([item(1, \"bob\", true), item(2, \"ann\")]), \"ann\"), [","atom":"a303","author":"pinch","version":36},{"n":29,"text":"\t\t\t'Your push 2 (\"push 2\") is in the merge queue: waiting, 1 push ahead of it.',","atom":"a858","author":"rename","version":100},{"n":30,"text":"\t\t\t\"It lands or is turned back once the project's check runs on it; the outcome comes as news, and abso unqueue takes it back.\",","atom":"a858","author":"rename","version":100},{"n":31,"text":"\t\t]);","atom":"a303","author":"pinch","version":36},{"n":32,"text":"\t\tassert.deepEqual(queuedLines(state([item(3, \"ann\", true), item(4, \"bob\", true), item(5, \"ann\")]), \"ann\"), [","atom":"a303","author":"pinch","version":36},{"n":33,"text":"\t\t\t'Your push 3 (\"push 3\") is in the merge queue: being checked in a batch of 2.',","atom":"a858","author":"rename","version":100},{"n":34,"text":"\t\t\t'Your push 5 (\"push 5\") is in the merge queue: waiting, 2 pushes ahead of it.',","atom":"a858","author":"rename","version":100},{"n":35,"text":"\t\t\t\"Each lands or is turned back once the project's check runs on it; the outcome comes as news, and abso unqueue takes them back.\",","atom":"a858","author":"rename","version":100},{"n":36,"text":"\t\t]);","atom":"a303","author":"pinch","version":36},{"n":37,"text":"\t});","atom":"a303","author":"pinch","version":36},{"n":38,"text":"","atom":"a303","author":"pinch","version":36},{"n":39,"text":"\tit(\"says when the queue is paused\", () => {","atom":"a303","author":"pinch","version":36},{"n":40,"text":"\t\tconst paused = {","atom":"a308","author":"pinch","version":36},{"n":41,"text":"\t\t\treason: \"the box failed twice\",","atom":"a308","author":"pinch","version":36},{"n":42,"text":"\t\t\tsince: \"2026-01-01T00:00:00.000Z\",","atom":"a308","author":"pinch","version":36},{"n":43,"text":"\t\t\tnextTry: \"2026-01-01T00:05:00.000Z\",","atom":"a308","author":"pinch","version":36},{"n":44,"text":"\t\t};","atom":"a308","author":"pinch","version":36},{"n":45,"text":"\t\tassert.equal(","atom":"a308","author":"pinch","version":36},{"n":46,"text":"\t\t\tqueuedLines(state([item(1, \"ann\")], paused), \"ann\")[1],","atom":"a308","author":"pinch","version":36},{"n":47,"text":"\t\t\t\"The merge queue is paused: the box failed twice.\",","atom":"a308","author":"pinch","version":36},{"n":48,"text":"\t\t);","atom":"a308","author":"pinch","version":36},{"n":49,"text":"\t});","atom":"a303","author":"pinch","version":36},{"n":50,"text":"});","atom":"a303","author":"pinch","version":36}],"atoms":[{"atom":"a303","author":"pinch","message":"","time":1791545117512,"timeIso":"2026-10-09T11:25:17.512Z","publish":{"draft":null,"version":36,"agent":"pinch","message":"waiting --mine lists your publishes still in the merge queue: where each stands (being checked, or how many wait ahead of it), whether the queue is paused, and that the outcome comes as news; --json carries them as queued. A server without a queue, or one that can't be read, leaves them out rather than failing the asks.","time":1791545326646,"timeIso":"2026-10-09T11:28:46.646Z"}},{"atom":"a308","author":"pinch","message":"","time":1791545326429,"timeIso":"2026-10-09T11:28:46.429Z","publish":{"draft":null,"version":36,"agent":"pinch","message":"waiting --mine lists your publishes still in the merge queue: where each stands (being checked, or how many wait ahead of it), whether the queue is paused, and that the outcome comes as news; --json carries them as queued. A server without a queue, or one that can't be read, leaves them out rather than failing the asks.","time":1791545326646,"timeIso":"2026-10-09T11:28:46.646Z"}},{"atom":"a858","author":"rename","message":"","time":1791659799126,"timeIso":"2026-10-10T19:16:39.126Z","publish":{"draft":null,"version":100,"agent":"rename","message":"abso publish is now abso push, abso sync is now abso pull (abso 427)\n\nCommands, help, flags, messages, MCP tool names and descriptions, hook text, README, SKILL.md and tests say push and pull; \"shared\" stays the noun (\"Pushed version N\"). No aliases, no notices. A queued push that was \"pulled\" is now \"turned back\", so pull means one thing.\n\npush -f/--force/-u/--all/--tags and pull --rebase/--ff-only/--squash refuse with one plain line naming the abso way; push and pull take no remote or branch.\n\nKept as stored: log entry kinds (publish, sync, pulled), HTTP route paths, the pipeline trigger on: publish, the yours (unpublished) marker, npm-publish.","time":1791659833853,"timeIso":"2026-10-10T19:17:13.853Z"}}]}