spur-board 0.115.0 → 0.115.1

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +13 -3
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -554,9 +554,9 @@ async function runDoctor(options = {}) {
554
554
  const projectPaths = configured.size === 0 ? null : await spurProjectPaths(config.adapters.spur.baseUrl, ports);
555
555
  const states = /* @__PURE__ */ new Map();
556
556
  const missing = [];
557
+ const installed = /* @__PURE__ */ new Set();
557
558
  if (projectPaths !== null) {
558
559
  const codexHome = env["CODEX_HOME"];
559
- const installed = /* @__PURE__ */ new Set();
560
560
  for (const copy of [join(home, ".claude", "skills", "spur-board"), codexHome ? join(resolve(codexHome), "skills", "spur-board") : join(home, ".codex", "skills", "spur-board")]) try {
561
561
  installed.add(ports.realPath(copy));
562
562
  } catch {}
@@ -579,8 +579,18 @@ async function runDoctor(options = {}) {
579
579
  }
580
580
  const unknown = [...states].filter(([, state]) => state === "unknown").map(([name]) => name);
581
581
  checks.push(configured.size === 0 ? result("skills.codex_visibility", true, codexVisibilityFix) : projectPaths === null ? warning("skills.codex_visibility", "Start Spur or correct adapters.spur.baseUrl in config.yaml, then rerun board doctor to check the Codex skill install.") : [...states.values()].includes("broken") ? warning("skills.codex_visibility", codexVisibilityFix) : missing.length > 0 || unknown.length > 0 ? warning("skills.codex_visibility", [...missing.length > 0 ? [`Correct spurProjects or projects[].spurProjects in config.yaml or register these projects in Spur${listing(safeIds(missing))}.`] : [], ...unknown.length > 0 ? [`Check that projects.<id>.symlinks in each project's spur.yaml lists .agents/skills/spur-board${listing(safeIds(unknown))}.`] : []].join(" ")) : result("skills.codex_visibility", true, codexVisibilityFix));
582
- const oldSessions = codexSessions.filter((session) => session.project !== void 0 && states.get(session.project) === "ok" && !(session.cwd !== void 0 && ports.exists(join(session.cwd, ".agents", "skills", "spur-board", "SKILL.md")) || session.codexHome !== void 0 && ports.exists(join(session.codexHome, "skills", "spur-board", "SKILL.md"))));
583
- checks.push(oldSessions.length > 0 ? warning("sessions.codex_skill", `Start new Spur sessions to replace Codex sessions created before the skill link${listing(safeIds([...new Set(oldSessions.map((session) => session.id))]))}; Spur links .agents/skills/spur-board only into new worktrees.`) : result("sessions.codex_skill", true, "Start new Spur sessions."));
582
+ const seesSkill = (session) => {
583
+ if (session.codexHome !== void 0 && ports.exists(join(session.codexHome, "skills", "spur-board", "SKILL.md"))) return true;
584
+ if (session.cwd === void 0 || !ports.exists(join(session.cwd, skillLink, "SKILL.md"))) return false;
585
+ try {
586
+ return installed.has(ports.realPath(join(session.cwd, skillLink)));
587
+ } catch {
588
+ return false;
589
+ }
590
+ };
591
+ const seeing = new Set(codexSessions.filter(seesSkill).map((session) => session.id));
592
+ const oldSessions = codexSessions.filter((session) => session.project !== void 0 && states.get(session.project) === "ok" && !seeing.has(session.id));
593
+ checks.push(oldSessions.length > 0 ? warning("sessions.codex_skill", `Start new Spur sessions to replace Codex sessions that cannot see the installed spur-board skill${listing(safeIds([...new Set(oldSessions.map((session) => session.id))]))}; Spur links .agents/skills/spur-board only into new worktrees.`) : result("sessions.codex_skill", true, "Start new Spur sessions."));
584
594
  const version = ports.productVersion();
585
595
  const stamps = [".claude", ".codex"].flatMap((agent) => ["spur-board", "spur-board-setup"].map((skill) => stamp(ports, join(home, agent, "skills", skill, ".spur-board-install.json"))));
586
596
  const newest = stamps.reduce((latest, entry) => entry !== null && (latest === null || entry.installedAt > latest.installedAt) ? entry : latest, null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spur-board",
3
- "version": "0.115.0",
3
+ "version": "0.115.1",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": "^24.12.0 || ^26.0.0"