spur-board 0.40.0 → 0.40.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
@@ -1,6 +1,6 @@
1
1
  import { F as ERRORS, J as requiredSecretKeys, K as configSchema, Y as SLACK_BOT_SCOPES, l as roleCanUseOperation, r as SYSTEMD_SERVICE_SETTINGS, u as OPERATIONS } from "./src-BI3t7Lzd.mjs";
2
2
  import { a as CliError, c as escapeTerminalControls, i as requestTokenEnrollment, n as fetchTokenStatus, o as errorExitCode, r as requestOperation, s as renderCliError } from "./client-xhD478pB.mjs";
3
- import { a as memoryVerdictCache, c as loadClientConfig, d as resolveDaemonAddress, f as tokenInFolder, i as fileVerdictCache, l as loadEnrollmentConfig, n as cliPackageVersion, o as configFile, s as dataDirectory, t as checkCatalog, u as readConfiguredPort } from "./config-BrVK6VAI.mjs";
3
+ import { a as memoryVerdictCache, c as loadClientConfig, d as resolveDaemonAddress, f as tokenInFolder, i as fileVerdictCache, l as loadEnrollmentConfig, n as cliPackageVersion, o as configFile, s as dataDirectory, t as checkCatalog, u as readConfiguredPort } from "./config-C2WS3sNi.mjs";
4
4
  import { createHash, randomBytes, randomUUID } from "node:crypto";
5
5
  import { accessSync, chmodSync, closeSync, constants, cpSync, existsSync, ftruncateSync, lstatSync, mkdirSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
6
6
  import { homedir, hostname, userInfo } from "node:os";
@@ -1,4 +1,4 @@
1
- import { K as configSchema, c as buildCatalogSnapshot, u as OPERATIONS } from "./src-BI3t7Lzd.mjs";
1
+ import { K as configSchema, c as buildCatalogSnapshot, q as plainHttpAllowed, u as OPERATIONS } from "./src-BI3t7Lzd.mjs";
2
2
  import { a as CliError, t as fetchCatalogVersion } from "./client-xhD478pB.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { closeSync, constants, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, realpathSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
@@ -58,6 +58,7 @@ function resolveDaemonAddress(env = process.env, home = homedir(), configuredPor
58
58
  throw new CliError("config", { environmentVariable: "BOARD_DAEMON_URL" });
59
59
  }
60
60
  if (!["http:", "https:"].includes(address.protocol) || address.username || address.password) throw new CliError("config", { environmentVariable: "BOARD_DAEMON_URL" });
61
+ if (!plainHttpAllowed(address)) throw new CliError("config", { environmentVariable: "BOARD_DAEMON_URL" }, void 0, "Set BOARD_DAEMON_URL to an https: address, or use http: only on a loopback host (localhost, 127.0.0.0/8, [::1]); over plain http to any other host the token or session would travel in clear text.");
61
62
  return address;
62
63
  }
63
64
  /** The token under `<folder>/.spur-board`; undefined when absent, unsafe or empty. */
package/dist/mcp.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { F as ERRORS, m as renderMcpError, u as OPERATIONS } from "./src-BI3t7Lzd.mjs";
2
2
  import { a as CliError, r as requestOperation } from "./client-xhD478pB.mjs";
3
- import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./config-BrVK6VAI.mjs";
3
+ import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./config-C2WS3sNi.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spur-board",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": "^24.12.0 || ^26.0.0"