spur-board 0.159.0 → 0.160.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-BUxxW9le.mjs → chunk-CV__xxV8.mjs} +11 -2
- package/dist/{chunk-f54aP3OF.mjs → chunk-DpR7gxfh.mjs} +1 -1
- package/dist/{chunk-BVb6nX0w.mjs → chunk-bxssICzu.mjs} +2 -2
- package/dist/cli.mjs +3 -3
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +78 -13
- package/dist/mcp.mjs +3 -3
- package/dist/web/assets/{index-BDSOBoij.js → index-jL_feovj.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/skills/spur-board/references/how-board-works.md +4 -0
|
@@ -3313,11 +3313,20 @@ const statusUnlinkedPrSchema = prFactsSchema.partial({
|
|
|
3313
3313
|
const statusUnlinkedSessionSchema = statusSessionFactsSchema.partial({
|
|
3314
3314
|
pr: true,
|
|
3315
3315
|
links: true,
|
|
3316
|
+
lifecycle: true,
|
|
3317
|
+
health: true,
|
|
3316
3318
|
healthSince: true,
|
|
3317
3319
|
lastActivityAt: true,
|
|
3318
3320
|
endedAt: true,
|
|
3319
3321
|
endReason: true
|
|
3320
|
-
}).
|
|
3322
|
+
}).extend({
|
|
3323
|
+
state: z.enum([
|
|
3324
|
+
"live",
|
|
3325
|
+
"ended",
|
|
3326
|
+
"absent"
|
|
3327
|
+
]).describe("live while listed by Spur; ended once it ended, vanished, or Spur lists it completed, killed or errored; absent once a complete Spur poll left it out of the list."),
|
|
3328
|
+
since: z.iso.datetime().nullable().describe("When the session ended or left the list, ISO 8601 UTC; null while live.")
|
|
3329
|
+
}).describe("A session without a task link. Compact rows carry id, spurProject, branch, state and since, plus lifecycle and health while live. Detail rows add the other session facts; ended and absent rows keep a completed, killed or errored lifecycle but leave out health, healthSince and rateLimitResetAt.");
|
|
3321
3330
|
const statusItemSchema = itemViewSchema.extend({
|
|
3322
3331
|
key: z.string().min(1).describe("Stable key of this actionable item."),
|
|
3323
3332
|
unconfirmed: z.boolean().describe("Whether a supporting fact is stale or its source is blind."),
|
|
@@ -3736,7 +3745,7 @@ const statusOutputSchema = z.strictObject({
|
|
|
3736
3745
|
openBlocks: z.int().min(0).describe("Open project-level blocks, without a task.")
|
|
3737
3746
|
}).describe("Open project-level blocks of one project.")).describe("Open project-level blocks of each requested project."),
|
|
3738
3747
|
unlinkedPrs: z.array(statusUnlinkedPrSchema).describe("Observed pull requests without a task link; merged or closed ones with no change for over 7 days are left out."),
|
|
3739
|
-
unlinkedSessions: z.array(statusUnlinkedSessionSchema).describe("Observed sessions without a task link; ones ended, or gone from Spur's session list, for over 7 days are left out."),
|
|
3748
|
+
unlinkedSessions: z.array(statusUnlinkedSessionSchema).describe("Observed sessions without a task link, each with its state (live, ended or absent) and since when; ones ended, or gone from Spur's session list, for over 7 days are left out, but not an errored session Spur still lists."),
|
|
3740
3749
|
hiddenUnlinkedPrs: z.int().min(0).describe("Unlinked pull requests not listed: merged or closed, with no change for over 7 days. Counted within the requested projects; detail does not list them."),
|
|
3741
3750
|
hiddenUnlinkedSessions: z.int().min(0).describe("Unlinked sessions not listed: ended, or gone from Spur's session list, for over 7 days. Counted within the requested projects; detail does not list them."),
|
|
3742
3751
|
bindings: statusBindingsSchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dt as ERRORS, gt as successEnvelopeSchema, l as tokenRequestStatusSchema, mt as errorEnvelopeSchema, pt as errorContextSchema, s as tokenRequestResultSchema, y as renderJsonError } from "./chunk-
|
|
1
|
+
import { dt as ERRORS, gt as successEnvelopeSchema, l as tokenRequestStatusSchema, mt as errorEnvelopeSchema, pt as errorContextSchema, s as tokenRequestResultSchema, y as renderJsonError } from "./chunk-CV__xxV8.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 { At as plainHttpAllowed, Dt as configSchema, f as buildCatalogSnapshot, m as OPERATIONS } from "./chunk-
|
|
2
|
-
import { o as CliError, t as fetchCatalogVersion } from "./chunk-
|
|
1
|
+
import { At as plainHttpAllowed, Dt as configSchema, f as buildCatalogSnapshot, m as OPERATIONS } from "./chunk-CV__xxV8.mjs";
|
|
2
|
+
import { o as CliError, t as fetchCatalogVersion } from "./chunk-DpR7gxfh.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/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bt as SLACK_BOT_SCOPES, D as skillReloadFileSchema, Dt as configSchema, Mt as requiredSecretKeys, Nt as resolveWebOrigin, d as SYSTEMD_SERVICE_SETTINGS, dt as ERRORS, gt as successEnvelopeSchema, i as remoteDoctorReportSchema, k as sortSkillFiles, m as OPERATIONS, o as requestHashOf, ot as actorIdSchema, p as roleCanUseOperation, xt as DEFAULT_STAND_PORT_RANGE } from "./chunk-
|
|
1
|
+
import { Bt as SLACK_BOT_SCOPES, D as skillReloadFileSchema, Dt as configSchema, Mt as requiredSecretKeys, Nt as resolveWebOrigin, d as SYSTEMD_SERVICE_SETTINGS, dt as ERRORS, gt as successEnvelopeSchema, i as remoteDoctorReportSchema, k as sortSkillFiles, m as OPERATIONS, o as requestHashOf, ot as actorIdSchema, p as roleCanUseOperation, xt as DEFAULT_STAND_PORT_RANGE } from "./chunk-CV__xxV8.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-DpR7gxfh.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-bxssICzu.mjs";
|
|
5
5
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
6
6
|
import { accessSync, chmodSync, closeSync, constants, cpSync, existsSync, ftruncateSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
|
|
7
7
|
import { homedir, hostname, tmpdir, userInfo } from "node:os";
|
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-DpR7gxfh.mjs";
|
package/dist/daemon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as prRefSchema, A as EVENT_KINDS, At as plainHttpAllowed, B as prSourceId, Bt as SLACK_BOT_SCOPES, C as inboundEventSchema, Ct as approvalRuleOf, Dt as configSchema, E as userIdSchema, Et as configBindings, F as MIRROR_FAILURE_CODES, Ft as COLUMNS, G as REVIEW_DECISIONS, H as sourceCursorSchema, Ht as TODO_GROUP_COLUMN_IDS, I as batchSchema, It as COLUMN_GROUPS, J as SESSION_STATUSES, K as REVIEW_STATES, L as defaultBranchFactSchema, Lt as COLUMN_IDS, M as eventPayloadSchemas, Mt as requiredSecretKeys, N as AdapterError, Nt as resolveWebOrigin, O as skillReloadFilesSchema, Ot as defaultAddressee, P as MIRROR_FAILURES, Pt as BLOCK_TYPES, Q as prFactsSchema, R as entityRefSchema, Rt as DISPATCHER_MODES, S as conversationRefSchema, St as RESERVED_PROJECT, T as messageRefSchema, Tt as columnTurnTimings, U as trackerSourceId, Ut as VIAS, V as sessionTransitionSchema, Vt as TASK_HOLDS, W as PR_STATES, Wt as isTodoGroupColumn, X as parseRingMarker, Y as isExternalAuthor, Z as prApprovalPairSchema, _ as turnHandedSchema, a as TOKEN_REQUEST_LIMITS, at as REF_NUMBER, bt as DEFAULT_SLACK_COMMAND, c as tokenRequestSchema, ct as errorCodeOf, dt as ERRORS, et as prReviewRuleSchema, f as buildCatalogSnapshot, ft as err, g as inboxNoSessionSchema, gt as successEnvelopeSchema, h as defaultBranchViewSchema, ht as ok, it as JIRA_PROJECT_KEY, j as GATE_REASONS, jt as readyMirrorOf, k as sortSkillFiles, kt as externalQuietAfterMs, l as tokenRequestStatusSchema, lt as parseActorId, m as OPERATIONS, n as SPUR_MIN_VERSION, nt as sessionFactsSchema, o as requestHashOf, ot as actorIdSchema, p as roleCanUseOperation, q as SESSION_HEALTH_STATES, r as doctorReportSchema, rt as ticketFactsSchema, s as tokenRequestResultSchema, st as encodeActorId, t as assertNever, tt as ringMarker, u as BOARD_TICK_MS, ut as parseRef$1, v as renderHttpProblem, vt as DEFAULT_LINK, w as interactionRefSchema, wt as boardWideSpurProject, x as SPACE_IDS, z as mirrorSourceId, zt as ITEM_KINDS } from "./chunk-
|
|
1
|
+
import { $ as prRefSchema, A as EVENT_KINDS, At as plainHttpAllowed, B as prSourceId, Bt as SLACK_BOT_SCOPES, C as inboundEventSchema, Ct as approvalRuleOf, Dt as configSchema, E as userIdSchema, Et as configBindings, F as MIRROR_FAILURE_CODES, Ft as COLUMNS, G as REVIEW_DECISIONS, H as sourceCursorSchema, Ht as TODO_GROUP_COLUMN_IDS, I as batchSchema, It as COLUMN_GROUPS, J as SESSION_STATUSES, K as REVIEW_STATES, L as defaultBranchFactSchema, Lt as COLUMN_IDS, M as eventPayloadSchemas, Mt as requiredSecretKeys, N as AdapterError, Nt as resolveWebOrigin, O as skillReloadFilesSchema, Ot as defaultAddressee, P as MIRROR_FAILURES, Pt as BLOCK_TYPES, Q as prFactsSchema, R as entityRefSchema, Rt as DISPATCHER_MODES, S as conversationRefSchema, St as RESERVED_PROJECT, T as messageRefSchema, Tt as columnTurnTimings, U as trackerSourceId, Ut as VIAS, V as sessionTransitionSchema, Vt as TASK_HOLDS, W as PR_STATES, Wt as isTodoGroupColumn, X as parseRingMarker, Y as isExternalAuthor, Z as prApprovalPairSchema, _ as turnHandedSchema, a as TOKEN_REQUEST_LIMITS, at as REF_NUMBER, bt as DEFAULT_SLACK_COMMAND, c as tokenRequestSchema, ct as errorCodeOf, dt as ERRORS, et as prReviewRuleSchema, f as buildCatalogSnapshot, ft as err, g as inboxNoSessionSchema, gt as successEnvelopeSchema, h as defaultBranchViewSchema, ht as ok, it as JIRA_PROJECT_KEY, j as GATE_REASONS, jt as readyMirrorOf, k as sortSkillFiles, kt as externalQuietAfterMs, l as tokenRequestStatusSchema, lt as parseActorId, m as OPERATIONS, n as SPUR_MIN_VERSION, nt as sessionFactsSchema, o as requestHashOf, ot as actorIdSchema, p as roleCanUseOperation, q as SESSION_HEALTH_STATES, r as doctorReportSchema, rt as ticketFactsSchema, s as tokenRequestResultSchema, st as encodeActorId, t as assertNever, tt as ringMarker, u as BOARD_TICK_MS, ut as parseRef$1, v as renderHttpProblem, vt as DEFAULT_LINK, w as interactionRefSchema, wt as boardWideSpurProject, x as SPACE_IDS, z as mirrorSourceId, zt as ITEM_KINDS } from "./chunk-CV__xxV8.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";
|
|
@@ -14537,6 +14537,82 @@ function sessionView(fact) {
|
|
|
14537
14537
|
}))
|
|
14538
14538
|
};
|
|
14539
14539
|
}
|
|
14540
|
+
/** Lifecycles after which Spur's session is over, even while Spur still lists it. */
|
|
14541
|
+
const TERMINAL_LIFECYCLES = [
|
|
14542
|
+
"completed",
|
|
14543
|
+
"killed",
|
|
14544
|
+
"errored"
|
|
14545
|
+
];
|
|
14546
|
+
/**
|
|
14547
|
+
* Whether an unlinked session is live, ended or gone from Spur's list, and since when. Ended wins
|
|
14548
|
+
* over absent; a session ended at the earlier of its finish and end times, and a listed completed,
|
|
14549
|
+
* killed or errored session ended when it finished.
|
|
14550
|
+
*/
|
|
14551
|
+
function unlinkedSessionState(session) {
|
|
14552
|
+
if (session.ended_at !== null) return {
|
|
14553
|
+
state: "ended",
|
|
14554
|
+
since: earliestTime([session.finished_at, session.ended_at]) ?? session.ended_at
|
|
14555
|
+
};
|
|
14556
|
+
if (TERMINAL_LIFECYCLES.includes(session.state)) return {
|
|
14557
|
+
state: "ended",
|
|
14558
|
+
since: session.finished_at ?? session.last_seen
|
|
14559
|
+
};
|
|
14560
|
+
if (session.absent_since !== null) return {
|
|
14561
|
+
state: "absent",
|
|
14562
|
+
since: session.absent_since
|
|
14563
|
+
};
|
|
14564
|
+
return {
|
|
14565
|
+
state: "live",
|
|
14566
|
+
since: null
|
|
14567
|
+
};
|
|
14568
|
+
}
|
|
14569
|
+
/**
|
|
14570
|
+
* An unlinked session row: ended and absent ones leave out health and their last live lifecycle;
|
|
14571
|
+
* in detail they keep a terminal lifecycle, which tells completion from kill or error.
|
|
14572
|
+
*/
|
|
14573
|
+
function unlinkedSessionView(session, facts, detail) {
|
|
14574
|
+
const shown = unlinkedSessionState(session);
|
|
14575
|
+
const live = shown.state === "live";
|
|
14576
|
+
if (detail) {
|
|
14577
|
+
const view = sessionView(facts);
|
|
14578
|
+
if (live) return {
|
|
14579
|
+
...view,
|
|
14580
|
+
...shown
|
|
14581
|
+
};
|
|
14582
|
+
const { id, spurProject, branch, pr, links, lastActivityAt } = view;
|
|
14583
|
+
const rings = view.queuedRings === void 0 ? {} : { queuedRings: view.queuedRings };
|
|
14584
|
+
const terminal = TERMINAL_LIFECYCLES.includes(session.state) ? { lifecycle: view.lifecycle } : {};
|
|
14585
|
+
const finished = session.state === "completed" || session.state === "killed";
|
|
14586
|
+
const { endedAt, endReason } = view.endReason === null && finished ? {
|
|
14587
|
+
endedAt: shown.since,
|
|
14588
|
+
endReason: session.state === "completed" ? "complete" : "kill"
|
|
14589
|
+
} : view;
|
|
14590
|
+
return {
|
|
14591
|
+
id,
|
|
14592
|
+
spurProject,
|
|
14593
|
+
branch,
|
|
14594
|
+
pr,
|
|
14595
|
+
links,
|
|
14596
|
+
...terminal,
|
|
14597
|
+
lastActivityAt,
|
|
14598
|
+
endedAt,
|
|
14599
|
+
endReason,
|
|
14600
|
+
...rings,
|
|
14601
|
+
...shown
|
|
14602
|
+
};
|
|
14603
|
+
}
|
|
14604
|
+
const { id, spurProject, branch, lifecycle, health } = facts;
|
|
14605
|
+
return {
|
|
14606
|
+
id,
|
|
14607
|
+
spurProject,
|
|
14608
|
+
branch,
|
|
14609
|
+
...shown,
|
|
14610
|
+
...live ? {
|
|
14611
|
+
lifecycle,
|
|
14612
|
+
health
|
|
14613
|
+
} : {}
|
|
14614
|
+
};
|
|
14615
|
+
}
|
|
14540
14616
|
/** Order group visits in their own slots, preserving non-group relative ordering. */
|
|
14541
14617
|
function orderTodoGroupRows(rows, entries, projects) {
|
|
14542
14618
|
const columnEntries = new Map(entries.map((entry) => [entry.task_id, entry.at]));
|
|
@@ -18729,18 +18805,7 @@ async function getStatus(deps, options = {}) {
|
|
|
18729
18805
|
const hiddenSession = (session) => {
|
|
18730
18806
|
return (session.ended_at !== null || session.state === "completed" || session.state === "killed" || session.absent_since !== null) && pastWindow(session.ended_at ?? session.absent_since ?? session.last_seen);
|
|
18731
18807
|
};
|
|
18732
|
-
const unlinkedSessions = sessionRows.filter((session) => !hiddenSession(session)).map((session) =>
|
|
18733
|
-
const facts = parseJson(sessionFactsSchema, session.detail);
|
|
18734
|
-
if (detail) return sessionView(facts);
|
|
18735
|
-
const { id, spurProject, branch, lifecycle, health } = facts;
|
|
18736
|
-
return {
|
|
18737
|
-
id,
|
|
18738
|
-
spurProject,
|
|
18739
|
-
branch,
|
|
18740
|
-
lifecycle,
|
|
18741
|
-
health
|
|
18742
|
-
};
|
|
18743
|
-
});
|
|
18808
|
+
const unlinkedSessions = sessionRows.filter((session) => !hiddenSession(session)).map((session) => unlinkedSessionView(session, parseJson(sessionFactsSchema, session.detail), detail));
|
|
18744
18809
|
const sourceIds = (scope, mirrors) => /* @__PURE__ */ new Set(["spur", ...scope.flatMap((project) => {
|
|
18745
18810
|
const mirror = mirrors ? mirrorSourceId(project) : void 0;
|
|
18746
18811
|
return [
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as renderMcpError, dt as ERRORS, m 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 { b as renderMcpError, dt as ERRORS, m as OPERATIONS } from "./chunk-CV__xxV8.mjs";
|
|
2
|
+
import { o as CliError, r as requestOperation } from "./chunk-DpR7gxfh.mjs";
|
|
3
|
+
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-bxssICzu.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|