spur-board 0.75.0 → 0.77.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-bhSEp4Rg.mjs → chunk-BPJsPCN1.mjs} +1 -1
- package/dist/{chunk-BwY4L2UH.mjs → chunk-DvV0WXrb.mjs} +2 -2
- package/dist/{chunk-CvY4Vfxu.mjs → chunk-tFE-9H7j.mjs} +134 -4
- package/dist/cli.mjs +3 -3
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +619 -115
- package/dist/mcp.mjs +3 -3
- package/package.json +1 -1
- package/skills/setup/SKILL.md +6 -5
- package/skills/setup/references/web.md +27 -0
- package/skills/spur-board/references/how-board-works-blocks.md +13 -0
- package/skills/spur-board/references/how-board-works.md +16 -0
package/dist/mcp.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Q as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-
|
|
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 { Q as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-tFE-9H7j.mjs";
|
|
2
|
+
import { o as CliError, r as requestOperation } from "./chunk-BPJsPCN1.mjs";
|
|
3
|
+
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-DvV0WXrb.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|
package/package.json
CHANGED
package/skills/setup/SKILL.md
CHANGED
|
@@ -5,7 +5,7 @@ description: Install, configure, check, and update spur-board with an operator.
|
|
|
5
5
|
|
|
6
6
|
# Set up spur-board
|
|
7
7
|
|
|
8
|
-
Ask one question at a time
|
|
8
|
+
Ask one question at a time when inspection cannot answer it. Check before writing. Ask before changing package, config, secret, service, token, skill-folder, or project-checkout state, or enabling lingering. Never show secret values or put them in chat, logs, or shell history. A same-version rerun changes nothing and repeats no answered question. Never uninstall the service or revoke a token without an explicit operator request.
|
|
9
9
|
|
|
10
10
|
## 1. Inspect
|
|
11
11
|
|
|
@@ -17,20 +17,21 @@ Ask one question at a time, only when current state cannot answer it. Check befo
|
|
|
17
17
|
## 2. Install the package
|
|
18
18
|
|
|
19
19
|
- Check whether the required package version and `board` binary are visible on the live session PATH. If current, skip installation.
|
|
20
|
-
- Otherwise choose a user npm prefix
|
|
20
|
+
- Otherwise choose a user npm prefix with `bin` on that PATH, often `$HOME/.local`; use the live session's Node and npm for `npm i -g --prefix <prefix> spur-board`. Verify `board --version` with the session PATH.
|
|
21
21
|
|
|
22
22
|
## 3. Complete missing configuration
|
|
23
23
|
|
|
24
|
-
- Discover repositories, Spur projects, and GitHub logins where possible.
|
|
24
|
+
- Discover repositories, Spur projects, and GitHub logins where possible. Ask and write only unset values: Jira filter and statuses if used, repositories, project names and roles, the GitHub login agents open PRs under per project (PR discovery filters by it; not always the operator's), and the operator's Slack user ID. Preserve settled and unrelated fields; validate against the shipped config schema.
|
|
25
25
|
- If Slack roles are unset, follow [Slack setup](references/slack.md). List channels visible to the bot and ask which serve orchestrators and feed; store their IDs. The bot sees only private channels it joined.
|
|
26
26
|
- Check required secret names and permissions. Follow [secret files](references/secrets.md) for private entry and any existing `slack.env` migration. Write `config.yaml` and a regular mode `0600` `secrets.env` only when needed.
|
|
27
27
|
- For a `github-issues` project, follow [worker links](references/worker-links.md).
|
|
28
|
-
-
|
|
28
|
+
- For browser access, follow [web setup](references/web.md); check `web.listening`.
|
|
29
|
+
- After config edits, run `board doctor --offline` and apply its config fixes. Offline checks do not prove service or integration readiness.
|
|
29
30
|
|
|
30
31
|
## 4. Start service and grant access
|
|
31
32
|
|
|
32
33
|
- Check `board service status`; if absent, run `board service install`. Ask before enabling user lingering, which keeps the service running after logout.
|
|
33
|
-
- If operator access is unset, ask whether
|
|
34
|
+
- If operator access is unset, ask whether to use a Spur project marked `operator`, without a token, or an outside-Spur session rooted in a chosen folder inside its git worktree if any, never above it. If no valid token exists, run `board token create --name <name> --into <folder>`, then have the operator approve the Slack prompt with its `requestHash`. Check existing agent registration before registering `board mcp`.
|
|
34
35
|
- Check installed skill stamps and content. If absent or older, ask before writing skill folders, run `board skills install`, then verify both Claude Code and Codex copies.
|
|
35
36
|
- For a Spur project used by Codex, check `.agents/skills/spur-board/SKILL.md` in a fresh session. If missing, ask before touching the project's main checkout. In that checkout, link the path to the installed product skill, for example `ln -s "$HOME/.codex/skills/spur-board" .agents/skills/spur-board`. Add `/.agents/skills/spur-board` to the Git exclude file resolved by `git rev-parse --git-path info/exclude`. Add `.agents/skills/spur-board` to that project's `symlinks` in `spur.yaml` and reload Spur config. Start a new session and verify the injected SKILL.md resolves.
|
|
36
37
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Optional browser access
|
|
2
|
+
|
|
3
|
+
Web is off by default. Enable it only on a private network limited to the operator's devices.
|
|
4
|
+
Anyone reaching the port can run web-bound reads and the two writes, `comment.add` and
|
|
5
|
+
`block.answer`, as operator without a token. Browser Host/Origin checks do not authenticate
|
|
6
|
+
network members or local OS users.
|
|
7
|
+
|
|
8
|
+
Set `web.port` and `web.publicOrigin` together in config.yaml:
|
|
9
|
+
|
|
10
|
+
```yaml
|
|
11
|
+
web:
|
|
12
|
+
port: 7777
|
|
13
|
+
publicOrigin: https://{port}.local.example
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The listener binds `127.0.0.1`. Configure a reverse proxy to preserve the original Host and
|
|
17
|
+
use the exact resolved public origin. Every `{port}` is replaced with the actual listener port.
|
|
18
|
+
After restarting the daemon, run `board doctor --json`: `web` checks the configuration and
|
|
19
|
+
`web.listening` checks whether the listener bound. A busy port leaves the agent API running;
|
|
20
|
+
free it or choose another web port and restart.
|
|
21
|
+
|
|
22
|
+
A missing UI build returns 503 with
|
|
23
|
+
``UI is not built: run `pnpm --filter @spur-board/web build` ``.
|
|
24
|
+
Run that build when the UI package is available. Health and catalog operations remain usable.
|
|
25
|
+
The listener does not supply the SPA. Request logs record the web channel and untrusted
|
|
26
|
+
forwarded client metadata and user agent. Journal events and history retain `via: web` beside
|
|
27
|
+
the operator actor.
|
|
@@ -14,6 +14,19 @@ Taskless: all roles, operator only:
|
|
|
14
14
|
`board project ask <project> <text> --to operator --key <key>`.
|
|
15
15
|
Project `needs_input` blocks get Slack threads except operator-agent asks;
|
|
16
16
|
operator: `board inbox`, keyed `board answer`. Answers reach a current curator session; other roles use the asking session.
|
|
17
|
+
A task's blocks (`task.get`) carry `answeredVia`: `web` or `slack` for an answer
|
|
18
|
+
from there, else null.
|
|
17
19
|
|
|
18
20
|
`projects[].columns[].orchestrator`, `projects[].spurProjects[].role`,
|
|
19
21
|
`operator.slack`.
|
|
22
|
+
|
|
23
|
+
## Operator inbox
|
|
24
|
+
|
|
25
|
+
`board inbox operator` needs the operator grant: the token, the web screen or
|
|
26
|
+
an operator Spur session. It lists open operator items, blocks to `operator`
|
|
27
|
+
and operator turns of the caller's operator projects; `_board` entries only
|
|
28
|
+
for the token and the board-wide operator, or any operator project when there
|
|
29
|
+
is none. A block or turn is listed once, not
|
|
30
|
+
with its items. Each entry is `attention` or `failure`; a failure says what
|
|
31
|
+
to check. `handled` keeps the last 24 h, at most 20, newest first; handled
|
|
32
|
+
blocks carry `answeredVia`. Archived tasks are left out.
|
|
@@ -31,3 +31,19 @@ URLs (also before observation), and effective session IDs. Banned links are excl
|
|
|
31
31
|
session navigation. This replaces the former detail-only association array; use `board task PROJ-123`
|
|
32
32
|
for the detailed association list. `board status --detail` adds full ticket, PR and session facts.
|
|
33
33
|
The catalog version changes with these contracts; restart the daemon and live MCP sessions together.
|
|
34
|
+
|
|
35
|
+
## Browser access
|
|
36
|
+
|
|
37
|
+
With `web.port` and `web.publicOrigin` configured, a second loopback listener serves browser
|
|
38
|
+
assets, health and catalog operations whose `web` binding is enabled. It uses the same registry,
|
|
39
|
+
authorization, idempotency and operation hooks as the agent API, with the operator caller.
|
|
40
|
+
Effective project configuration is available through `config.get`.
|
|
41
|
+
Only `comment.add` and `block.answer` are enabled writes. Token and skill routes stay on the
|
|
42
|
+
agent API. The web listener is off by default and a failed bind does not stop the agent API.
|
|
43
|
+
|
|
44
|
+
A private-network proxy must preserve Host. Exact Origin, Host, JSON and fetch-metadata checks
|
|
45
|
+
reject foreign browser pages; anyone with network or local access can still act as operator.
|
|
46
|
+
Logs include the web channel and untrusted forwarded client/user-agent metadata. Web writes
|
|
47
|
+
persist `via: web` in the journal; history returns `actor: operator` with `via: web`, allowing
|
|
48
|
+
clients to show `operator (web)`.
|
|
49
|
+
Missing UI assets return a 503 build hint while health and operations remain available.
|