spur-board 0.44.1 → 0.44.2

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/cli.mjs CHANGED
@@ -493,12 +493,13 @@ async function runDoctor(options = {}) {
493
493
  const version = ports.productVersion();
494
494
  const stamps = [".claude", ".codex"].flatMap((agent) => ["spur-board", "spur-board-setup"].map((skill) => stamp(ports, join(home, agent, "skills", skill, ".spur-board-install.json"))));
495
495
  const latestInstall = Math.max(...stamps.flatMap((entry) => entry === null ? [] : [entry.installedAt]));
496
- const stale = sessions.filter((session) => session.startAt !== void 0 && session.startAt < latestInstall);
497
- const unknownStarts = sessions.some((session) => session.startAt === void 0);
496
+ const connected = sessions.filter((session) => session.project !== void 0 && configured.has(session.project));
497
+ const stale = connected.filter((session) => session.startAt !== void 0 && session.startAt < latestInstall);
498
+ const unknownStarts = connected.some((session) => session.startAt === void 0);
498
499
  const staleSessions = [...new Set(stale.map((session) => session.id))];
499
500
  const staleIds = safeIds(staleSessions);
500
501
  const staleCount = staleSessions.length === 0 ? "sessions" : `${String(staleSessions.length)} session${staleSessions.length === 1 ? "" : "s"}`;
501
- checks.push(stale.length > 0 || unknownStarts ? warning("sessions.stale", `Restart ${staleCount} started before the last skill install${listing(staleIds)}; verify sessions whose start time is unavailable.`) : result("sessions.stale", true, "Restart older sessions."));
502
+ checks.push(stale.length > 0 || unknownStarts ? warning("sessions.stale", `Ask ${staleCount} started before the last skill install to re-read the spur-board skill (SKILL.md and references/)${listing(staleIds)}. Claude Code reads it from ~/.claude/skills/spur-board, Codex from ~/.codex/skills/spur-board ($CODEX_HOME/skills/spur-board when set). No restart is needed; doctor keeps listing a session after it re-reads.${unknownStarts ? " Ask connected sessions whose start time is unavailable to re-read it too." : ""}`) : result("sessions.stale", true, "Ask older sessions to re-read the spur-board skill."));
502
503
  const portFix = await checkHttpPort(config.http.port, {
503
504
  bind: ports.bind,
504
505
  run: (command, args) => Promise.resolve(ports.run(command, args))
@@ -1860,7 +1861,7 @@ async function update(updater, options, requested) {
1860
1861
  }
1861
1862
  updater.finish(state, "succeeded", null);
1862
1863
  const stale = report.find((check) => check.id === "sessions.stale");
1863
- const operator = [MCP_LINE, ...stale?.status === "warning" && stale.fix !== null ? [`Stop and wake these Spur sessions so they load the new skill: ${stale.fix}`] : []];
1864
+ const operator = [MCP_LINE, ...stale?.status === "warning" && stale.fix !== null ? [stale.fix] : []];
1864
1865
  return {
1865
1866
  from,
1866
1867
  to,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spur-board",
3
- "version": "0.44.1",
3
+ "version": "0.44.2",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": "^24.12.0 || ^26.0.0"
@@ -36,7 +36,7 @@ Ask one question at a time, only when current state cannot answer it. Check befo
36
36
 
37
37
  ## 5. Finish
38
38
 
39
- - Run `board doctor --json`. For each failed check, inspect state, apply its `fix` with any needed consent, and repeat until green. Report warnings, especially live sessions started before the last skill install; they must restart to load it.
39
+ - Run `board doctor --json`. For each failed check, inspect state, apply its `fix` with any needed consent, and repeat until green. Report warnings; have sessions in `sessions.stale` re-read the `spur-board` skill (SKILL.md, references/).
40
40
  - Wait for the feed's `spur-board is live` line after the first complete poll. If absent, inspect doctor checks and service logs and continue the fix loop. Confirm receipt without exposing a channel ID.
41
41
 
42
42
  ## Update
@@ -8,7 +8,7 @@ Use this when the installed package is older than the intended release. `board u
8
8
  3. The update needs a running daemon. If the service is stopped, ask before starting it with `board service restart`.
9
9
  4. Tell the operator the installed version and the target, then ask before updating. The service is down for the update.
10
10
  5. Run `board update` for the latest release, or `board update <version>` for a named one. Progress lines go to stderr; the JSON result goes to stdout. A result with `changed` as `false` means the version was already installed; stop there.
11
- 6. On success, report `from`, `to`, `database.schemaChanged` and each `operator` line. Agent sessions that run `board mcp` must restart to load the new catalog; Spur sessions named as stale must stop and wake to load the new skill. Do not restart the service or reinstall the skills again: the update did both.
11
+ 6. On success, report `from`, `to`, `database.schemaChanged` and each `operator` line. Agent sessions that run `board mcp` must restart to load the new catalog; ask the Spur sessions named in the `sessions.stale` line to re-read the `spur-board` skill (SKILL.md and references/); no restart is needed. Do not restart the service or reinstall the skills again: the update did both.
12
12
  7. On exit 4 with `update_rolled_back`, the previous version is running again unless the hint reports a failed restart. Report the hint: it names the failed step and says whether the database was kept, restored, or not changed. At `first poll`, a source did not finish its first complete poll within five minutes. Fix the cause with the operator, then run `board update` again.
13
13
  8. On exit 4 with `rollback_failed`, follow `Failed update or rollback` in TROUBLESHOOTING.md: fix the step the hint names, then run `board rollback --yes` again.
14
14
  9. On any other exit 4 (`config`) or exit 2 (`usage`), nothing was changed. Report the hint and fix what it names; an older target is refused and points to `board rollback`. When another update or rollback holds the update lock, the hint gives the PID that took it: wait for it and the install it started to finish, and never remove the lock file.
@@ -22,4 +22,4 @@ Do this once; every later upgrade uses `board update`.
22
22
  1. Install the newer package with the Node and user prefix of a live Spur session. Verify `board --version` there.
23
23
  2. Note whether `board service status` reports `active` as `active`. Run the new package's `board service install`. Run `board service restart` only when the service was active before, install reported `changed` as `false`, and the daemon version changed.
24
24
  3. Ask before writing agent skill folders, then run `board skills install`.
25
- 4. Run `board doctor --json` until no blocking check remains. Ask the operator to restart live sessions that still use the older skill.
25
+ 4. Run `board doctor --json` until no blocking check remains. Ask the operator to have live sessions that still use the older skill re-read the `spur-board` skill.