spur-board 0.138.0 → 0.139.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-CDsQwru1.mjs → chunk-B4uktrzm.mjs} +1 -1
- package/dist/{chunk-ELGKyFVI.mjs → chunk-Cs93EYpr.mjs} +1 -0
- package/dist/{chunk-BZqvZUqX.mjs → chunk-qI6H7ZXu.mjs} +2 -2
- package/dist/cli.mjs +3 -3
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +15 -4
- package/dist/mcp.mjs +3 -3
- package/dist/web/assets/index-4jKFqttd.js +64 -0
- package/dist/web/assets/{index-DvNi81Mg.css → index-DigDCCN5.css} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/skills/spur-board/references/how-board-works-web.md +4 -2
- package/skills/spur-board/references/web-ui-board-move.md +28 -0
- package/skills/spur-board/references/web-ui-board.md +6 -1
- package/skills/spur-board/references/web-ui-task-view.md +1 -0
- package/skills/spur-board/references/web-ui.md +4 -1
- package/dist/web/assets/index-DOLk88Lg.js +0 -64
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as renderJsonError, c as tokenRequestStatusSchema, ct as ERRORS, dt as errorEnvelopeSchema, o as tokenRequestResultSchema, pt as successEnvelopeSchema, ut as errorContextSchema } from "./chunk-
|
|
1
|
+
import { _ as renderJsonError, c as tokenRequestStatusSchema, ct as ERRORS, dt as errorEnvelopeSchema, o as tokenRequestResultSchema, pt as successEnvelopeSchema, ut as errorContextSchema } from "./chunk-Cs93EYpr.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { request } from "node:http";
|
|
@@ -3131,6 +3131,7 @@ const detailOnly = "Present only with detail.";
|
|
|
3131
3131
|
const count = (what) => z.int().min(0).describe(what);
|
|
3132
3132
|
const statusTaskSchema = taskViewSchema.extend({
|
|
3133
3133
|
submission: latestSubmissionSchema,
|
|
3134
|
+
qaSubmission: latestSubmissionSchema.describe("The QA column's latest submission, pending and voided included; null when none or when the project has no enabled QA column; absent on older servers."),
|
|
3134
3135
|
columnEnteredAt: z.iso.datetime().nullable().describe("Time the task entered its current real column, ISO 8601 UTC; latest real move or correction, falling back to the original add time, or null if neither is known."),
|
|
3135
3136
|
shadowColumn: z.enum(COLUMN_IDS).optional().describe("Column the dispatcher works from in shadow mode: where the board would have the task. Present only while the project dispatcher is in shadow mode."),
|
|
3136
3137
|
shadowDiffers: z.boolean().optional().describe("Whether shadowColumn differs from column. Present only while the project dispatcher is in shadow mode."),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Et as plainHttpAllowed, d as buildCatalogSnapshot, p as OPERATIONS, wt as configSchema } from "./chunk-
|
|
2
|
-
import { o as CliError, t as fetchCatalogVersion } from "./chunk-
|
|
1
|
+
import { Et as plainHttpAllowed, d as buildCatalogSnapshot, p as OPERATIONS, wt as configSchema } from "./chunk-Cs93EYpr.mjs";
|
|
2
|
+
import { o as CliError, t as fetchCatalogVersion } from "./chunk-B4uktrzm.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 { D as sortSkillFiles, Ft as SLACK_BOT_SCOPES, Ot as requiredSecretKeys, T as skillReloadFileSchema, a as requestHashOf, ct as ERRORS, f as roleCanUseOperation, kt as resolveWebOrigin, p as OPERATIONS, pt as successEnvelopeSchema, r as remoteDoctorReportSchema, rt as actorIdSchema, u as SYSTEMD_SERVICE_SETTINGS, vt as DEFAULT_STAND_PORT_RANGE, wt as configSchema } from "./chunk-
|
|
1
|
+
import { D as sortSkillFiles, Ft as SLACK_BOT_SCOPES, Ot as requiredSecretKeys, T as skillReloadFileSchema, a as requestHashOf, ct as ERRORS, f as roleCanUseOperation, kt as resolveWebOrigin, p as OPERATIONS, pt as successEnvelopeSchema, r as remoteDoctorReportSchema, rt as actorIdSchema, u as SYSTEMD_SERVICE_SETTINGS, vt as DEFAULT_STAND_PORT_RANGE, wt as configSchema } from "./chunk-Cs93EYpr.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-B4uktrzm.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-qI6H7ZXu.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-B4uktrzm.mjs";
|
package/dist/daemon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as sessionFactsSchema, A as eventPayloadSchemas, At as COLUMNS, B as sourceCursorSchema, C as messageRefSchema, Ct as configBindings, D as sortSkillFiles, Dt as readyMirrorOf, E as skillReloadFilesSchema, Et as plainHttpAllowed, F as defaultBranchFactSchema, Ft as SLACK_BOT_SCOPES, G as SESSION_HEALTH_STATES, H as PR_STATES, I as entityRefSchema, It as TASK_HOLDS, J as parseRingMarker, K as SESSION_STATUSES, L as mirrorSourceId, Lt as TODO_GROUP_COLUMN_IDS, M as MIRROR_FAILURES, Mt as COLUMN_IDS, N as MIRROR_FAILURE_CODES, Nt as DISPATCHER_MODES, O as EVENT_KINDS, Ot as requiredSecretKeys, P as batchSchema, Pt as ITEM_KINDS, Q as ringMarker, R as prSourceId, Rt as VIAS, S as interactionRefSchema, St as columnTurnTimings, Tt as defaultAddressee, U as REVIEW_DECISIONS, V as trackerSourceId, W as REVIEW_STATES, X as prRefSchema, Y as prFactsSchema, Z as prReviewRuleSchema, _t as DEFAULT_SLACK_COMMAND, a as requestHashOf, at as errorCodeOf, b as conversationRefSchema, bt as approvalRuleOf, c as tokenRequestStatusSchema, ct as ERRORS, d as buildCatalogSnapshot, et as ticketFactsSchema, f as roleCanUseOperation, ft as ok, g as renderHttpProblem, h as turnHandedSchema, ht as DEFAULT_LINK, i as TOKEN_REQUEST_LIMITS, it as encodeActorId, j as AdapterError, jt as COLUMN_GROUPS, k as GATE_REASONS, kt as resolveWebOrigin, l as BOARD_TICK_MS, lt as err, m as defaultBranchViewSchema, n as doctorReportSchema, nt as REF_NUMBER, o as tokenRequestResultSchema, ot as parseActorId, p as OPERATIONS, pt as successEnvelopeSchema, q as isExternalAuthor, rt as actorIdSchema, s as tokenRequestSchema, st as parseRef$1, t as assertNever, tt as JIRA_PROJECT_KEY, w as userIdSchema, wt as configSchema, x as inboundEventSchema, xt as boardWideSpurProject, y as SPACE_IDS, yt as RESERVED_PROJECT, z as sessionTransitionSchema, zt as isTodoGroupColumn } from "./chunk-
|
|
1
|
+
import { $ as sessionFactsSchema, A as eventPayloadSchemas, At as COLUMNS, B as sourceCursorSchema, C as messageRefSchema, Ct as configBindings, D as sortSkillFiles, Dt as readyMirrorOf, E as skillReloadFilesSchema, Et as plainHttpAllowed, F as defaultBranchFactSchema, Ft as SLACK_BOT_SCOPES, G as SESSION_HEALTH_STATES, H as PR_STATES, I as entityRefSchema, It as TASK_HOLDS, J as parseRingMarker, K as SESSION_STATUSES, L as mirrorSourceId, Lt as TODO_GROUP_COLUMN_IDS, M as MIRROR_FAILURES, Mt as COLUMN_IDS, N as MIRROR_FAILURE_CODES, Nt as DISPATCHER_MODES, O as EVENT_KINDS, Ot as requiredSecretKeys, P as batchSchema, Pt as ITEM_KINDS, Q as ringMarker, R as prSourceId, Rt as VIAS, S as interactionRefSchema, St as columnTurnTimings, Tt as defaultAddressee, U as REVIEW_DECISIONS, V as trackerSourceId, W as REVIEW_STATES, X as prRefSchema, Y as prFactsSchema, Z as prReviewRuleSchema, _t as DEFAULT_SLACK_COMMAND, a as requestHashOf, at as errorCodeOf, b as conversationRefSchema, bt as approvalRuleOf, c as tokenRequestStatusSchema, ct as ERRORS, d as buildCatalogSnapshot, et as ticketFactsSchema, f as roleCanUseOperation, ft as ok, g as renderHttpProblem, h as turnHandedSchema, ht as DEFAULT_LINK, i as TOKEN_REQUEST_LIMITS, it as encodeActorId, j as AdapterError, jt as COLUMN_GROUPS, k as GATE_REASONS, kt as resolveWebOrigin, l as BOARD_TICK_MS, lt as err, m as defaultBranchViewSchema, n as doctorReportSchema, nt as REF_NUMBER, o as tokenRequestResultSchema, ot as parseActorId, p as OPERATIONS, pt as successEnvelopeSchema, q as isExternalAuthor, rt as actorIdSchema, s as tokenRequestSchema, st as parseRef$1, t as assertNever, tt as JIRA_PROJECT_KEY, w as userIdSchema, wt as configSchema, x as inboundEventSchema, xt as boardWideSpurProject, y as SPACE_IDS, yt as RESERVED_PROJECT, z as sessionTransitionSchema, zt as isTodoGroupColumn } from "./chunk-Cs93EYpr.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";
|
|
@@ -17539,11 +17539,15 @@ async function submissionBasis(db, task, input) {
|
|
|
17539
17539
|
}
|
|
17540
17540
|
};
|
|
17541
17541
|
}
|
|
17542
|
-
/**
|
|
17543
|
-
|
|
17542
|
+
/**
|
|
17543
|
+
* One bounded latest row per task, ordered by identity even at equal timestamps; with `column`,
|
|
17544
|
+
* the latest row of that column.
|
|
17545
|
+
*/
|
|
17546
|
+
async function latestSubmissions(db, tasks, column) {
|
|
17544
17547
|
if (tasks.length === 0) return /* @__PURE__ */ new Map();
|
|
17545
17548
|
const ids = tasks.map((task) => task.id);
|
|
17546
|
-
const
|
|
17549
|
+
const inColumn = db.selectFrom("submission").select(sql`max(id)`.as("id")).where("task_id", "in", ids);
|
|
17550
|
+
const rows = await db.selectFrom("submission as s").leftJoin("submission as origin", "origin.id", "s.tested_source_id").selectAll("s").select("origin.commit_sha as origin_sha").where("s.task_id", "in", ids).where("s.id", "in", (column === void 0 ? inColumn : inColumn.where("column", "=", column)).groupBy("task_id")).execute();
|
|
17547
17551
|
return new Map(rows.map((row) => [row.task_id, {
|
|
17548
17552
|
column: row.column,
|
|
17549
17553
|
sha: row.commit_sha,
|
|
@@ -17556,6 +17560,11 @@ async function latestSubmissions(db, tasks) {
|
|
|
17556
17560
|
voided: row.voided_at !== null
|
|
17557
17561
|
}]));
|
|
17558
17562
|
}
|
|
17563
|
+
/** The latest QA row per task, for tasks whose project has an enabled QA column. */
|
|
17564
|
+
async function latestQaSubmissions(db, tasks, config) {
|
|
17565
|
+
const withQa = new Set(config.projects.filter((project) => project.columns.some((column) => column.id === "qa" && column.enabled)).map((project) => project.id));
|
|
17566
|
+
return latestSubmissions(db, tasks.filter((task) => withQa.has(task.project)), "qa");
|
|
17567
|
+
}
|
|
17559
17568
|
// ../core/src/app/status-services.ts
|
|
17560
17569
|
/** The daemon row is degraded after this long without a completed board tick. */
|
|
17561
17570
|
const DAEMON_STALL_MS = 2 * BOARD_TICK_MS;
|
|
@@ -17742,6 +17751,7 @@ async function getStatus(deps, options = {}) {
|
|
|
17742
17751
|
orderTodoGroupRows(rows, entries, projects);
|
|
17743
17752
|
const tasks = [];
|
|
17744
17753
|
const submissions = await latestSubmissions(store.db, rows);
|
|
17754
|
+
const qaSubmissions = await latestQaSubmissions(store.db, rows, { projects });
|
|
17745
17755
|
for (const task of rows) {
|
|
17746
17756
|
if (!projectIds.has(task.project)) continue;
|
|
17747
17757
|
const ticket = await store.db.selectFrom("ticket_snapshot").selectAll().where("task_id", "=", task.id).executeTakeFirst();
|
|
@@ -17793,6 +17803,7 @@ async function getStatus(deps, options = {}) {
|
|
|
17793
17803
|
tasks.push({
|
|
17794
17804
|
key: task.key,
|
|
17795
17805
|
submission: submissions.get(task.id) ?? null,
|
|
17806
|
+
qaSubmission: qaSubmissions.get(task.id) ?? null,
|
|
17796
17807
|
project: task.project,
|
|
17797
17808
|
column: task.column,
|
|
17798
17809
|
columnEnteredAt: columnEntries.get(task.id) ?? task.created_at,
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ct as ERRORS, p as OPERATIONS, v as renderMcpError } 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 { ct as ERRORS, p as OPERATIONS, v as renderMcpError } from "./chunk-Cs93EYpr.mjs";
|
|
2
|
+
import { o as CliError, r as requestOperation } from "./chunk-B4uktrzm.mjs";
|
|
3
|
+
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-qI6H7ZXu.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|