spur-board 0.94.0 → 0.95.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/{chunk-fo0dn5Rm.mjs → chunk-CIPjiog7.mjs} +1 -1
- package/dist/{chunk-CNHkGPRa.mjs → chunk-D557y4-h.mjs} +2 -2
- package/dist/{chunk-4d3AdIDd.mjs → chunk-U_xhOGUV.mjs} +1 -1
- package/dist/cli.mjs +4 -3
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +48 -1
- package/dist/mcp.mjs +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as ERRORS, c as tokenRequestStatusSchema, et as errorContextSchema, g as renderJsonError, o as tokenRequestResultSchema, rt as successEnvelopeSchema, tt as errorEnvelopeSchema } from "./chunk-
|
|
1
|
+
import { Q as ERRORS, c as tokenRequestStatusSchema, et as errorContextSchema, g as renderJsonError, o as tokenRequestResultSchema, rt as successEnvelopeSchema, tt as errorEnvelopeSchema } from "./chunk-U_xhOGUV.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { request } from "node:http";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as buildCatalogSnapshot, ft as configSchema, mt as plainHttpAllowed, p as OPERATIONS } from "./chunk-
|
|
2
|
-
import { o as CliError, t as fetchCatalogVersion } from "./chunk-
|
|
1
|
+
import { d as buildCatalogSnapshot, ft as configSchema, mt as plainHttpAllowed, p as OPERATIONS } from "./chunk-U_xhOGUV.mjs";
|
|
2
|
+
import { o as CliError, t as fetchCatalogVersion } from "./chunk-CIPjiog7.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";
|
|
@@ -4888,7 +4888,7 @@ const doctorReportSchema = z.strictObject({
|
|
|
4888
4888
|
version: z.string().min(1).max(50),
|
|
4889
4889
|
checks: z.array(z.strictObject({
|
|
4890
4890
|
...checkShape,
|
|
4891
|
-
id: checkShape.id.regex(/^[a-z][a-z._]
|
|
4891
|
+
id: checkShape.id.regex(/^(?:[a-z][a-z._]+|web\.spurUiOrigin)$/).max(60),
|
|
4892
4892
|
fix: z.string().max(300).nullable()
|
|
4893
4893
|
})).max(30)
|
|
4894
4894
|
});
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Q as ERRORS, a as requestHashOf, bt as SLACK_BOT_SCOPES, ct as DEFAULT_STAND_PORT_RANGE, f as roleCanUseOperation, ft as configSchema, gt as resolveWebOrigin, ht as requiredSecretKeys, p as OPERATIONS, q as actorIdSchema, r as remoteDoctorReportSchema, rt as successEnvelopeSchema, u as SYSTEMD_SERVICE_SETTINGS } from "./chunk-
|
|
1
|
+
import { Q as ERRORS, a as requestHashOf, bt as SLACK_BOT_SCOPES, ct as DEFAULT_STAND_PORT_RANGE, f as roleCanUseOperation, ft as configSchema, gt as resolveWebOrigin, ht as requiredSecretKeys, p as OPERATIONS, q as actorIdSchema, r as remoteDoctorReportSchema, rt as successEnvelopeSchema, u as SYSTEMD_SERVICE_SETTINGS } from "./chunk-U_xhOGUV.mjs";
|
|
2
2
|
import { t as apiBaseUrl } from "./chunk-Bzb7aI8R.mjs";
|
|
3
|
-
import { a as requestTokenEnrollment, c as renderCliError, i as requestSkillReload, l as escapeTerminalControls, n as fetchTokenStatus, o as CliError, r as requestOperation, s as errorExitCode } from "./chunk-
|
|
4
|
-
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 "./chunk-
|
|
3
|
+
import { a as requestTokenEnrollment, c as renderCliError, i as requestSkillReload, l as escapeTerminalControls, n as fetchTokenStatus, o as CliError, r as requestOperation, s as errorExitCode } from "./chunk-CIPjiog7.mjs";
|
|
4
|
+
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 "./chunk-D557y4-h.mjs";
|
|
5
5
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
6
6
|
import { accessSync, chmodSync, closeSync, constants, cpSync, existsSync, ftruncateSync, lstatSync, mkdirSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
|
|
7
7
|
import { homedir, hostname, userInfo } from "node:os";
|
|
@@ -314,6 +314,7 @@ function nodeFromUnit(unit) {
|
|
|
314
314
|
return null;
|
|
315
315
|
}
|
|
316
316
|
const remoteBaseIds = [
|
|
317
|
+
"web.spurUiOrigin",
|
|
317
318
|
"secrets",
|
|
318
319
|
"jira.credentials",
|
|
319
320
|
"github.credentials",
|
package/dist/client.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as fetchCatalogVersion, n as fetchTokenStatus, r as requestOperation, i as requestSkillReload, a as requestTokenEnrollment } from "./chunk-
|
|
1
|
+
export { t as fetchCatalogVersion, n as fetchTokenStatus, r as requestOperation, i as requestSkillReload, a as requestTokenEnrollment } from "./chunk-CIPjiog7.mjs";
|
package/dist/daemon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as err, A as prSourceId, B as prFactsSchema, C as userIdSchema, D as AdapterError, E as eventPayloadSchemas, F as REVIEW_STATES, G as JIRA_PROJECT_KEY, H as ringMarker, I as SESSION_HEALTH_STATES, J as encodeActorId, K as REF_NUMBER, L as SESSION_STATUSES, M as sourceCursorSchema, N as trackerSourceId, O as batchSchema, P as PR_STATES, Q as ERRORS, R as isExternalAuthor, S as messageRefSchema, St as VIAS, T as GATE_REASONS, U as sessionFactsSchema, V as prRefSchema, W as ticketFactsSchema, X as parseActorId, Y as errorCodeOf, Z as parseRef$1, _t as COLUMN_IDS, a as requestHashOf, at as DEFAULT_LINK, b as inboundEventSchema, bt as SLACK_BOT_SCOPES, c as tokenRequestStatusSchema, d as buildCatalogSnapshot, dt as configBindings, f as roleCanUseOperation, ft as configSchema, gt as resolveWebOrigin, h as renderHttpProblem, ht as requiredSecretKeys, i as TOKEN_REQUEST_LIMITS, j as sessionTransitionSchema, k as entityRefSchema, l as BOARD_TICK_MS, lt as RESERVED_PROJECT, m as turnHandedSchema, mt as plainHttpAllowed, n as doctorReportSchema, nt as ok, o as tokenRequestResultSchema, p as OPERATIONS, pt as defaultAddressee, q as actorIdSchema, rt as successEnvelopeSchema, s as tokenRequestSchema, st as DEFAULT_SLACK_COMMAND, t as assertNever, ut as boardWideSpurProject, v as SPACE_IDS, vt as DISPATCHER_MODES, w as EVENT_KINDS, x as interactionRefSchema, xt as TASK_HOLDS, y as conversationRefSchema, yt as ITEM_KINDS, z as parseRingMarker } from "./chunk-
|
|
1
|
+
import { $ as err, A as prSourceId, B as prFactsSchema, C as userIdSchema, D as AdapterError, E as eventPayloadSchemas, F as REVIEW_STATES, G as JIRA_PROJECT_KEY, H as ringMarker, I as SESSION_HEALTH_STATES, J as encodeActorId, K as REF_NUMBER, L as SESSION_STATUSES, M as sourceCursorSchema, N as trackerSourceId, O as batchSchema, P as PR_STATES, Q as ERRORS, R as isExternalAuthor, S as messageRefSchema, St as VIAS, T as GATE_REASONS, U as sessionFactsSchema, V as prRefSchema, W as ticketFactsSchema, X as parseActorId, Y as errorCodeOf, Z as parseRef$1, _t as COLUMN_IDS, a as requestHashOf, at as DEFAULT_LINK, b as inboundEventSchema, bt as SLACK_BOT_SCOPES, c as tokenRequestStatusSchema, d as buildCatalogSnapshot, dt as configBindings, f as roleCanUseOperation, ft as configSchema, gt as resolveWebOrigin, h as renderHttpProblem, ht as requiredSecretKeys, i as TOKEN_REQUEST_LIMITS, j as sessionTransitionSchema, k as entityRefSchema, l as BOARD_TICK_MS, lt as RESERVED_PROJECT, m as turnHandedSchema, mt as plainHttpAllowed, n as doctorReportSchema, nt as ok, o as tokenRequestResultSchema, p as OPERATIONS, pt as defaultAddressee, q as actorIdSchema, rt as successEnvelopeSchema, s as tokenRequestSchema, st as DEFAULT_SLACK_COMMAND, t as assertNever, ut as boardWideSpurProject, v as SPACE_IDS, vt as DISPATCHER_MODES, w as EVENT_KINDS, x as interactionRefSchema, xt as TASK_HOLDS, y as conversationRefSchema, yt as ITEM_KINDS, z as parseRingMarker } from "./chunk-U_xhOGUV.mjs";
|
|
2
2
|
import { t as apiBaseUrl } from "./chunk-Bzb7aI8R.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -25482,6 +25482,51 @@ async function request(ctx, fetcher, deadlineMs, id, url, init = {}) {
|
|
|
25482
25482
|
return null;
|
|
25483
25483
|
}
|
|
25484
25484
|
}
|
|
25485
|
+
async function spurUiCheck(ctx, fetcher, deadlineMs) {
|
|
25486
|
+
const id = "web.spurUiOrigin";
|
|
25487
|
+
const origin = ctx.config.web.spurUiOrigin;
|
|
25488
|
+
if (origin === void 0) return warning(id, "Set web.spurUiOrigin to the Spur UI origin for session links; without it, the intended fallback is plain session IDs.");
|
|
25489
|
+
const controller = new AbortController();
|
|
25490
|
+
let timedOut = false;
|
|
25491
|
+
const timeout = new Promise((_resolve, reject) => {
|
|
25492
|
+
controller.signal.addEventListener("abort", () => {
|
|
25493
|
+
reject(/* @__PURE__ */ new Error("TimeoutError"));
|
|
25494
|
+
}, { once: true });
|
|
25495
|
+
});
|
|
25496
|
+
const timer = setTimeout(() => {
|
|
25497
|
+
timedOut = true;
|
|
25498
|
+
controller.abort();
|
|
25499
|
+
}, Math.min(2e3, deadlineMs));
|
|
25500
|
+
try {
|
|
25501
|
+
await ctx.logCall("doctor.web.spurUiOrigin", async () => {
|
|
25502
|
+
try {
|
|
25503
|
+
(await Promise.race([fetcher(new URL("/", origin), {
|
|
25504
|
+
method: "GET",
|
|
25505
|
+
redirect: "manual",
|
|
25506
|
+
signal: controller.signal
|
|
25507
|
+
}), timeout])).body?.cancel().catch(() => void 0);
|
|
25508
|
+
} catch (err) {
|
|
25509
|
+
const name = timedOut ? "TimeoutError" : (err instanceof Error || err instanceof DOMException) && [
|
|
25510
|
+
"Error",
|
|
25511
|
+
"TypeError",
|
|
25512
|
+
"AbortError",
|
|
25513
|
+
"TimeoutError"
|
|
25514
|
+
].includes(err.name) ? err.name : "Error";
|
|
25515
|
+
throw new Error(name);
|
|
25516
|
+
}
|
|
25517
|
+
});
|
|
25518
|
+
return {
|
|
25519
|
+
id,
|
|
25520
|
+
status: "pass",
|
|
25521
|
+
blocking: false,
|
|
25522
|
+
fix: null
|
|
25523
|
+
};
|
|
25524
|
+
} catch (err) {
|
|
25525
|
+
return check(id, false, `web.spurUiOrigin is unreachable (${err instanceof Error ? err.message : "Error"}). Start the Spur UI, fix proxy/TLS or correct web.spurUiOrigin in config.yaml; restart the daemon after config changes and rerun board doctor.`);
|
|
25526
|
+
} finally {
|
|
25527
|
+
clearTimeout(timer);
|
|
25528
|
+
}
|
|
25529
|
+
}
|
|
25485
25530
|
const slackOkWire = z.object({ ok: z.literal(true) });
|
|
25486
25531
|
const slackMemberWire = z.object({
|
|
25487
25532
|
ok: z.literal(true),
|
|
@@ -25505,6 +25550,7 @@ async function slackBody(response, wire) {
|
|
|
25505
25550
|
async function runDaemonDoctor(ctx, productVersion, fetcher = fetch, { deadlineMs = DEADLINE_MS, webListening } = {}) {
|
|
25506
25551
|
const { config, secrets } = ctx;
|
|
25507
25552
|
const checks = [];
|
|
25553
|
+
const spurUi = spurUiCheck(ctx, fetcher, deadlineMs);
|
|
25508
25554
|
if (config.web.port !== void 0) checks.push(check("web.listening", webListening?.() === true, "Free the configured web port and restart the daemon."));
|
|
25509
25555
|
const jiraTrackers = config.projects.flatMap((project) => project.tracker.type === "jira" ? [project.tracker] : []);
|
|
25510
25556
|
const slackConfigured = Boolean(config.slack.channels.feed || config.slack.channels.orchestrators);
|
|
@@ -25581,6 +25627,7 @@ async function runDaemonDoctor(ctx, productVersion, fetcher = fetch, { deadlineM
|
|
|
25581
25627
|
checks.push(await operatorTokensCheck(ctx, config));
|
|
25582
25628
|
checks.push(curatorSessionsCheck(await curatorSessions(ctx.store.db, config)));
|
|
25583
25629
|
checks.push(orchestratorSessionsCheck(await orchestratorSessions(ctx.store.db, config)));
|
|
25630
|
+
checks.push(await spurUi);
|
|
25584
25631
|
return {
|
|
25585
25632
|
version: productVersion,
|
|
25586
25633
|
checks
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Q as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-
|
|
2
|
-
import { o as CliError, r as requestOperation } from "./chunk-
|
|
3
|
-
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-
|
|
1
|
+
import { Q as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-U_xhOGUV.mjs";
|
|
2
|
+
import { o as CliError, r as requestOperation } from "./chunk-CIPjiog7.mjs";
|
|
3
|
+
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-D557y4-h.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|