spur-board 0.15.0 → 0.15.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.
package/dist/cli.mjs CHANGED
@@ -405,8 +405,10 @@ async function runDoctor(options = {}) {
405
405
  const latestInstall = Math.max(...stamps.flatMap((entry) => entry === null ? [] : [entry.installedAt]));
406
406
  const stale = sessions.filter((session) => session.startAt !== void 0 && session.startAt < latestInstall);
407
407
  const unknownStarts = sessions.some((session) => session.startAt === void 0);
408
- const staleIds = stale.map((session) => session.id).filter((id) => /^[a-zA-Z0-9_-]+$/.test(id)).slice(0, 10);
409
- checks.push(stale.length > 0 || unknownStarts ? warning("sessions.stale", `Restart sessions started before the last skill install${staleIds.length ? `: ${staleIds.join(", ")}` : ""}; verify sessions whose start time is unavailable.`) : result("sessions.stale", true, "Restart older sessions."));
408
+ const staleSessions = [...new Set(stale.map((session) => session.id))];
409
+ const staleIds = staleSessions.filter((id) => /^[a-zA-Z0-9_-]+$/.test(id)).slice(0, 10);
410
+ const staleCount = staleSessions.length === 0 ? "sessions" : `${String(staleSessions.length)} session${staleSessions.length === 1 ? "" : "s"}`;
411
+ checks.push(stale.length > 0 || unknownStarts ? warning("sessions.stale", `Restart ${staleCount} started before the last skill install${staleIds.length ? `: ${staleIds.join(", ")}` : ""}; verify sessions whose start time is unavailable.`) : result("sessions.stale", true, "Restart older sessions."));
410
412
  const portFix = await checkHttpPort(config.http.port, {
411
413
  bind: ports.bind,
412
414
  run: (command, args) => Promise.resolve(ports.run(command, args))
@@ -479,7 +481,6 @@ function renderUserUnit(paths) {
479
481
  "[Service]",
480
482
  `ExecStart=${unitArgument(paths.nodePath)} ${unitArgument(paths.daemonEntry)}`,
481
483
  ...(paths.environment ?? []).map((entry) => `Environment=${unitArgument(entry)}`),
482
- `EnvironmentFile=${unitArgument(paths.secretsFile)}`,
483
484
  ...SYSTEMD_SERVICE_SETTINGS,
484
485
  "",
485
486
  "[Install]",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spur-board",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": "^24.12.0 || ^26.0.0"
@@ -4,6 +4,6 @@ Use this when the orchestrators or feed channel is not configured, or the app-le
4
4
 
5
5
  1. Check the bot's current channel membership. List the private channels it can see and ask the operator, one choice at a time, which should serve orchestrators and feed. An empty list does not prove no channels exist: the bot sees only private channels to which it was invited. Store channel IDs in config, never guessed names.
6
6
  2. If no channel fits, ask for an operator-chosen prefix and suggest available names using it. The operator creates or invites the app to channels; ask before any app or channel change.
7
- 3. Check whether an app and slash command already exist. If either is missing, use `board slack manifest --app-name <name> --command <slash-command>` to prepare a manifest with operator-chosen names. The operator creates the Slack app; do not claim the manifest creates it. Set `slack.appName` and `slack.command` in config to the selected names.
7
+ 3. Check whether an app and slash command already exist. Before generating a manifest, have the operator confirm that the chosen slash command, app name and channel names are free in the workspace: no other app or Board uses them, or commands and delivery can reach the wrong Board. The bot token cannot list other apps' slash commands, so do not claim an automatic check; ask the operator to type the command in a Slack message box and look at the autocomplete list, and to look at the workspace's installed apps. If a name is taken, suggest names with an operator-chosen prefix, such as `/acme-board`, `acme-board`, `#acme-orchestrators` and `#acme-board-feed`. If the app or command is missing, use `board slack manifest --app-name <name> --command <slash-command>` to prepare a manifest with operator-chosen names. The operator creates the Slack app; do not claim the manifest creates it. Set `slack.appName` and `slack.command` in config to the selected names.
8
8
  4. The manifest cannot create the app-level token with `connections:write`. In the Slack app settings, open **Basic Information → App-Level Tokens** and create a token with that scope. Then use the private entry procedure in [secret files](secrets.md). Never ask for a token value in chat.
9
9
  5. Check channel membership and command configuration with online doctor. If a check fails, apply its reported fix after inspecting state.