spur-board 0.40.2 → 0.41.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/cli.mjs CHANGED
@@ -1,6 +1,6 @@
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-C-HpKSEK.mjs";
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-Cfs2Qhd9.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-B2CqZZh_.mjs";
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-CP7-sA3d.mjs";
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-DX_6xCNf.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-Vn2yTMX_.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 { B as successEnvelopeSchema, F as ERRORS, L as errorContextSchema, R as errorEnvelopeSchema, p as renderJsonError } from "./src-C-HpKSEK.mjs";
1
+ import { B as successEnvelopeSchema, F as ERRORS, L as errorContextSchema, R as errorEnvelopeSchema, p as renderJsonError } from "./src-CP7-sA3d.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { z } from "zod";
4
4
  import { request } from "node:http";
package/dist/client.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { i as requestTokenEnrollment, n as fetchTokenStatus, r as requestOperation, t as fetchCatalogVersion } from "./client-Cfs2Qhd9.mjs";
1
+ import { i as requestTokenEnrollment, n as fetchTokenStatus, r as requestOperation, t as fetchCatalogVersion } from "./client-DX_6xCNf.mjs";
2
2
  export { fetchCatalogVersion, fetchTokenStatus, requestOperation, requestTokenEnrollment };
@@ -1,5 +1,5 @@
1
- import { K as configSchema, c as buildCatalogSnapshot, q as plainHttpAllowed, u as OPERATIONS } from "./src-C-HpKSEK.mjs";
2
- import { a as CliError, t as fetchCatalogVersion } from "./client-Cfs2Qhd9.mjs";
1
+ import { K as configSchema, c as buildCatalogSnapshot, q as plainHttpAllowed, u as OPERATIONS } from "./src-CP7-sA3d.mjs";
2
+ import { a as CliError, t as fetchCatalogVersion } from "./client-DX_6xCNf.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";
5
5
  import { homedir } from "node:os";
package/dist/daemon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as encodeActorId, B as successEnvelopeSchema, C as SESSION_HEALTH_STATES, D as sessionFactsSchema, E as prRefSchema, F as ERRORS, G as RESERVED_PROJECT, H as DEFAULT_LINK, I as err, J as requiredSecretKeys, K as configSchema, M as parseActorId, N as parseRef$1, O as ticketFactsSchema, P as taskKeySchema, S as eventPayloadSchemas, T as prFactsSchema, W as DEFAULT_SLACK_COMMAND, Y as SLACK_BOT_SCOPES, _ as inboundEventSchema, a as batchSchema, b as userIdSchema, c as buildCatalogSnapshot, d as turnHandedSchema, f as renderHttpProblem, g as conversationRefSchema, h as SPACE_IDS, i as AdapterError, j as errorCodeOf, k as actorIdSchema, l as roleCanUseOperation, n as BOARD_TICK_MS, o as entityRefSchema, q as plainHttpAllowed, s as sourceCursorSchema, t as assertNever, u as OPERATIONS, v as interactionRefSchema, w as SESSION_STATUSES, x as EVENT_KINDS, y as messageRefSchema, z as ok } from "./src-C-HpKSEK.mjs";
1
+ import { A as encodeActorId, B as successEnvelopeSchema, C as SESSION_HEALTH_STATES, D as sessionFactsSchema, E as prRefSchema, F as ERRORS, G as RESERVED_PROJECT, H as DEFAULT_LINK, I as err, J as requiredSecretKeys, K as configSchema, M as parseActorId, N as parseRef$1, O as ticketFactsSchema, P as taskKeySchema, S as eventPayloadSchemas, T as prFactsSchema, W as DEFAULT_SLACK_COMMAND, Y as SLACK_BOT_SCOPES, _ as inboundEventSchema, a as batchSchema, b as userIdSchema, c as buildCatalogSnapshot, d as turnHandedSchema, f as renderHttpProblem, g as conversationRefSchema, h as SPACE_IDS, i as AdapterError, j as errorCodeOf, k as actorIdSchema, l as roleCanUseOperation, n as BOARD_TICK_MS, o as entityRefSchema, q as plainHttpAllowed, s as sourceCursorSchema, t as assertNever, u as OPERATIONS, v as interactionRefSchema, w as SESSION_STATUSES, x as EVENT_KINDS, y as messageRefSchema, z as ok } from "./src-CP7-sA3d.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { createHash, randomUUID } from "node:crypto";
4
4
  import { chmodSync, closeSync, existsSync, fchmodSync, fstatSync, fsyncSync, ftruncateSync, linkSync, mkdirSync, openSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeSync } from "node:fs";
package/dist/mcp.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { F as ERRORS, m as renderMcpError, u as OPERATIONS } from "./src-C-HpKSEK.mjs";
2
- import { a as CliError, r as requestOperation } from "./client-Cfs2Qhd9.mjs";
3
- import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./config-B2CqZZh_.mjs";
1
+ import { F as ERRORS, m as renderMcpError, u as OPERATIONS } from "./src-CP7-sA3d.mjs";
2
+ import { a as CliError, r as requestOperation } from "./client-DX_6xCNf.mjs";
3
+ import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./config-Vn2yTMX_.mjs";
4
4
  import { randomUUID } from "node:crypto";
5
5
  import { readFileSync } from "node:fs";
6
6
  import { z } from "zod";
@@ -341,12 +341,17 @@ const projectSchema = z.strictObject({
341
341
  function durationMs(fallback, description) {
342
342
  return z.int().min(1).default(fallback).describe(`${description} in milliseconds.`);
343
343
  }
344
+ const MAX_POLL_INTERVAL_MS = 864e5;
345
+ /** Time between two polls, at most one day. */
346
+ function pollIntervalMs(fallback) {
347
+ return z.int().min(1).max(MAX_POLL_INTERVAL_MS, "Poll interval must be at most 86400000 ms (one day)").default(fallback).describe("Time between two polls in milliseconds.");
348
+ }
344
349
  /** How often one adapter polls its source. */
345
350
  function adapterSection(intervalMs) {
346
- return z.strictObject({ intervalMs: durationMs(intervalMs, "Time between two polls") }).prefault({});
351
+ return z.strictObject({ intervalMs: pollIntervalMs(intervalMs) }).prefault({});
347
352
  }
348
353
  const spurAdapterSection = z.strictObject({
349
- intervalMs: durationMs(15e3, "Time between two polls"),
354
+ intervalMs: pollIntervalMs(15e3),
350
355
  baseUrl: z.url({ protocol: /^https?$/ }).default("http://127.0.0.1:4310").describe("Base URL of the local Spur HTTP API.")
351
356
  }).prefault({});
352
357
  function isTimeZone(tz) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spur-board",
3
- "version": "0.40.2",
3
+ "version": "0.41.0",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": "^24.12.0 || ^26.0.0"