spur-board 0.62.1 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-DyPssI65.mjs → chunk-B1XoUsys.mjs} +2 -2
- package/dist/{chunk-CzdGYlBy.mjs → chunk-BONq7Qxa.mjs} +269 -213
- package/dist/{chunk-Czc8fVqW.mjs → chunk-CDacbdk2.mjs} +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +404 -70
- package/dist/mcp.mjs +3 -3
- package/dist/migrations/0021_submission_pending.sql +7 -0
- package/package.json +1 -1
- package/skills/spur-board/references/commands.md +1 -1
- package/skills/spur-board/references/errors.md +2 -2
- package/skills/spur-board/references/how-board-works.md +18 -14
package/dist/mcp.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as CliError, r as requestOperation } from "./chunk-
|
|
3
|
-
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-
|
|
1
|
+
import { Z as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-BONq7Qxa.mjs";
|
|
2
|
+
import { o as CliError, r as requestOperation } from "./chunk-CDacbdk2.mjs";
|
|
3
|
+
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-B1XoUsys.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
-- A turn submit the board accepted before it could confirm the head waits for a later poll.
|
|
2
|
+
-- pending_until is the ISO-8601 UTC deadline for a PR to appear; NULL means not pending, which is
|
|
3
|
+
-- every row recorded before this migration and every submit whose head was confirmed. The board
|
|
4
|
+
-- clears it when a poll confirms the head and voids the row when it hands the turn back.
|
|
5
|
+
-- A null pr_repo / pr_number, which 0014 reserved for a submit recorded before it, now also marks
|
|
6
|
+
-- a pending submit made before the board linked a PR; confirmation fills them in.
|
|
7
|
+
ALTER TABLE submission ADD COLUMN pending_until TEXT;
|
package/package.json
CHANGED
|
@@ -147,7 +147,7 @@ Other errors: `wrong_id_kind`, `not_found`, `block_not_open`, `task_archived`, `
|
|
|
147
147
|
|
|
148
148
|
### `board submit`
|
|
149
149
|
|
|
150
|
-
Purpose: Submit the
|
|
150
|
+
Purpose: Submit the task's pull request head for a turn this session took; the turn closes; a pending result is final.
|
|
151
151
|
Arguments: `<turn>`, `<sha>`.
|
|
152
152
|
Flags: `--key <key>`, `--json`.
|
|
153
153
|
Use when: Hand in the work of a turn you took, at the pull request head. While the project dispatcher is in shadow mode no turn opens: the column executor submits with the task key.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
- `not_found`: Check the ID with `board status` or `board task <KEY>`.
|
|
15
15
|
- `wrong_id_kind`: Pass the ID kind the operation expects, e.g. B<n> for a block or a task key for a task.
|
|
16
|
-
- `github_unavailable`:
|
|
16
|
+
- `github_unavailable`: Follow the message: ask the operator to fix what it names, or retry a read or link once GitHub answers the board's polls; repeat a submit only by task key in shadow mode.
|
|
17
17
|
- `stale_comment_revision`: Read the latest comment revision, then acknowledge that revision.
|
|
18
18
|
- `idempotency_key_mismatch`: Use a new key for a new command, or repeat the earlier input with the same key.
|
|
19
19
|
- `task_archived`: Ask an operator to add the task to the board again if work continues.
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
- `wrong_block_type`: Read the block type with `board task <KEY>` and use the operation for that type.
|
|
22
22
|
- `turn_closed`: Read your open turns with `board inbox` and act only on a turn listed there.
|
|
23
23
|
- `not_turn_taker`: Take the turn with `board inbox ack` first; only the session that took it can submit or return it.
|
|
24
|
-
- `head_mismatch`: Push the commit to the task's pull request branch and submit
|
|
24
|
+
- `head_mismatch`: Push the commit to the task's pull request branch and submit the head GitHub shows.
|
|
25
25
|
- `return_not_allowed`: In Dev, ask with `board ask` instead.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# How the Board works
|
|
2
2
|
|
|
3
3
|
Start with `board task <task> --why`: it explains the gates, holds, open turn and
|
|
4
|
-
last moves behind the task's position.
|
|
4
|
+
last moves behind the task's position.
|
|
5
5
|
|
|
6
6
|
## Columns and executors
|
|
7
7
|
|
|
8
8
|
The fixed order is `todo`, `ready-for-dev`, `dev`, `review`, `product-review`,
|
|
9
9
|
`external-review`, `qa`, `ready-to-merge`, `done`.
|
|
10
|
-
`projects[].columns[].enabled`
|
|
11
|
-
and Done must stay enabled.
|
|
10
|
+
`projects[].columns[].enabled` false, or omitting an optional column, skips it and
|
|
11
|
+
its gate; To Do, Dev and Done must stay enabled.
|
|
12
12
|
|
|
13
13
|
Each column has one executor, selected by `projects[].columns[].orchestrator`:
|
|
14
14
|
`none` uses the task's live worker, falling back to the operator; `operator` uses
|
|
@@ -59,6 +59,9 @@ with keyed `board inbox ack <entries>`. Only the acknowledging session may submi
|
|
|
59
59
|
or return it: keyed `board submit <turn> <sha>` accepts the head, and keyed
|
|
60
60
|
`board return <turn> <reason>` sends findings back to Dev. A worker submits a fresh
|
|
61
61
|
PR head after pushing. In shadow mode, use keyed `board submit <task> <sha>`.
|
|
62
|
+
An unseen head answers `pending`: that submit is final,
|
|
63
|
+
so do not resubmit or raise a block; the Board confirms it or hands the turn back
|
|
64
|
+
(`projects[].dispatcher.submitConfirmMs`).
|
|
62
65
|
|
|
63
66
|
A new head closes taken turns outside Dev; a taken Dev turn survives the worker's
|
|
64
67
|
push so that worker can submit it. An unacknowledged turn does not hold back a
|
|
@@ -111,8 +114,8 @@ ID). Role addresses follow the current session filling the role.
|
|
|
111
114
|
|
|
112
115
|
## Slack now
|
|
113
116
|
|
|
114
|
-
`slack.channels.feed` carries summaries
|
|
115
|
-
items,
|
|
117
|
+
`slack.channels.feed` carries summaries like curator answers and operator
|
|
118
|
+
items, except items shown elsewhere and delivery problems.
|
|
116
119
|
`slack.channels.orchestrators` carries block threads addressed to the operator by
|
|
117
120
|
someone else. Answer in the existing block thread to preserve its task context.
|
|
118
121
|
|
|
@@ -120,19 +123,20 @@ someone else. Answer in the existing block thread to preserve its task context.
|
|
|
120
123
|
|
|
121
124
|
Once a `projects[].spurProjects[].shortName` is set, a new operator message in
|
|
122
125
|
`slack.channels.orchestrators` starts a conversation. A leading registered
|
|
123
|
-
`@shortName` selects that Spur project and is stripped
|
|
126
|
+
`@shortName` selects that Spur project and is stripped. With an
|
|
124
127
|
absent or unknown leading name, `slack.defaultAddressee` receives the complete
|
|
125
128
|
text, retaining any unknown prefix; without it the Board replies once with the
|
|
126
129
|
valid prefixes. A mention in the middle, or a Slack `<@U…>` mention, addresses
|
|
127
130
|
nobody; an unknown name causes no lookup error. The operator checks short-name
|
|
128
|
-
collisions with workspace names. A task key right after the prefix attaches
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
The addressee is rung with the block ID, reads
|
|
132
|
-
|
|
133
|
-
`
|
|
134
|
-
|
|
135
|
-
|
|
131
|
+
collisions with workspace names. A task key right after the prefix attaches
|
|
132
|
+
that task.
|
|
133
|
+
|
|
134
|
+
The addressee is rung with the block ID, reads it in `board inbox` and replies
|
|
135
|
+
in the thread with `board answer`. Each operator thread message rings it again;
|
|
136
|
+
`close` or ✅ in the thread closes it. Replies use
|
|
137
|
+
`projects[].spurProjects[].displayName` and `icon`, else the project name and
|
|
138
|
+
role icon (`board` for operator roles). With no live session,
|
|
139
|
+
`board status` lists it as waiting.
|
|
136
140
|
|
|
137
141
|
## Done follows the ticket
|
|
138
142
|
|