spur-board 0.97.0 → 0.99.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-CE0uEQ8x.mjs → chunk-DsNaWj97.mjs} +22 -13
- package/dist/{chunk-gLlzvviO.mjs → chunk-iJZ5-7AS.mjs} +1 -1
- package/dist/{chunk-WRtnPk5Z.mjs → chunk-pIWhSt-p.mjs} +2 -2
- package/dist/cli.mjs +3 -3
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +17 -2
- package/dist/mcp.mjs +3 -3
- package/dist/web/assets/index-CR2WhKLR.js +64 -0
- package/dist/web/assets/{index-jNivAssx.css → index-CuWMVTKn.css} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/skills/spur-board/references/how-board-works.md +6 -5
- package/skills/spur-board/references/web-ui-task-view.md +19 -5
- package/skills/spur-board/references/web-ui.md +25 -24
- package/dist/web/assets/index-DQZXez-b.js +0 -64
|
@@ -2836,7 +2836,8 @@ const configViewSchema = z.strictObject({
|
|
|
2836
2836
|
name: z.string().min(1).describe("Spur project name."),
|
|
2837
2837
|
role: configSchema.shape.projects.element.shape.spurProjects.unwrap().element.shape.role,
|
|
2838
2838
|
displayName: z.string().min(1).describe("Configured display name, falling back to project name.")
|
|
2839
|
-
})).describe("Effective Spur project bindings.")
|
|
2839
|
+
})).describe("Effective Spur project bindings."),
|
|
2840
|
+
ticketBrowseBase: z.url({ protocol: /^https?$/ }).nullable().describe("Ticket page prefix; append a task key such as PROJ-12. <baseUrl>/browse/ for a Jira project; null when the tracker has none, as for GitHub Issues.")
|
|
2840
2841
|
})).describe("Effective projects visible to this caller."),
|
|
2841
2842
|
web: z.strictObject({
|
|
2842
2843
|
publicOrigin: z.url({ protocol: /^https?$/ }).nullable().describe("Origin the board web listener answers on; null when the listener is off or not bound yet."),
|
|
@@ -3004,6 +3005,22 @@ const taskGetOutputSchema = z.strictObject({
|
|
|
3004
3005
|
comments: z.array(commentSchema).describe("Comments on the task, oldest first."),
|
|
3005
3006
|
why: taskWhySchema.optional().describe("Present only with why.")
|
|
3006
3007
|
});
|
|
3008
|
+
const taskHistoryInputSchema = z.strictObject({ task: taskKeyInputSchema });
|
|
3009
|
+
const taskHistoryEventSchema = z.strictObject({
|
|
3010
|
+
at: z.iso.datetime().describe("When it happened, ISO 8601 UTC."),
|
|
3011
|
+
kind: z.enum(EVENT_KINDS).describe("Journal event kind."),
|
|
3012
|
+
actor: actorIdSchema,
|
|
3013
|
+
via: z.enum(VIAS).optional().describe("Channel the write arrived through, web or slack, whoever the actor; absent for CLI, MCP, agent and scheduled writes."),
|
|
3014
|
+
summary: z.string().describe("What happened, in one line.")
|
|
3015
|
+
}).describe("One journal event.");
|
|
3016
|
+
const taskHistoryOutputSchema = z.strictObject({
|
|
3017
|
+
task: taskViewSchema,
|
|
3018
|
+
events: z.array(taskHistoryEventSchema).describe("Journal events of the task, oldest first.")
|
|
3019
|
+
});
|
|
3020
|
+
taskHistoryOutputSchema.extend({ events: z.array(taskHistoryEventSchema.extend({
|
|
3021
|
+
kind: z.string().min(1),
|
|
3022
|
+
via: z.string().min(1).optional()
|
|
3023
|
+
})) });
|
|
3007
3024
|
// ../contracts/src/ops/catalog.ts
|
|
3008
3025
|
/** Longest free text an input takes: comments, questions, answers and reasons. */
|
|
3009
3026
|
const TEXT_MAX = 2e4;
|
|
@@ -3533,17 +3550,8 @@ const OPERATIONS = [
|
|
|
3533
3550
|
whenToUse: "Trace changes to one task.",
|
|
3534
3551
|
whenNotToUse: "Use task_get for current state."
|
|
3535
3552
|
},
|
|
3536
|
-
input:
|
|
3537
|
-
output:
|
|
3538
|
-
task: taskViewSchema,
|
|
3539
|
-
events: z.array(z.strictObject({
|
|
3540
|
-
at: z.iso.datetime().describe("When it happened, ISO 8601 UTC."),
|
|
3541
|
-
kind: z.enum(EVENT_KINDS).describe("Journal event kind."),
|
|
3542
|
-
actor: actorIdSchema,
|
|
3543
|
-
via: z.enum(VIAS).optional().describe("Channel the write arrived through, web or slack, whoever the actor; absent for CLI, MCP, agent and scheduled writes."),
|
|
3544
|
-
summary: z.string().describe("What happened, in one line.")
|
|
3545
|
-
}).describe("One journal event.")).describe("Journal events of the task, oldest first.")
|
|
3546
|
-
}),
|
|
3553
|
+
input: taskHistoryInputSchema,
|
|
3554
|
+
output: taskHistoryOutputSchema,
|
|
3547
3555
|
grants: operatorOrProjectAgent,
|
|
3548
3556
|
errors: ["wrong_id_kind", "not_found"],
|
|
3549
3557
|
cli: {
|
|
@@ -4742,7 +4750,8 @@ const OPERATIONS = [
|
|
|
4742
4750
|
name: "web-worker",
|
|
4743
4751
|
role: "worker",
|
|
4744
4752
|
displayName: "web-worker"
|
|
4745
|
-
}]
|
|
4753
|
+
}],
|
|
4754
|
+
ticketBrowseBase: "https://jira.example.com/browse/"
|
|
4746
4755
|
}],
|
|
4747
4756
|
web: {
|
|
4748
4757
|
publicOrigin: "http://127.0.0.1:4778",
|
|
@@ -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-DsNaWj97.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-DsNaWj97.mjs";
|
|
2
|
+
import { o as CliError, t as fetchCatalogVersion } from "./chunk-iJZ5-7AS.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 { 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-DsNaWj97.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-iJZ5-7AS.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-pIWhSt-p.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";
|
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-iJZ5-7AS.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-DsNaWj97.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";
|
|
@@ -17618,6 +17618,20 @@ function createTurnMutations(deps) {
|
|
|
17618
17618
|
}
|
|
17619
17619
|
// ../core/src/app/registry.ts
|
|
17620
17620
|
const catalog = await buildCatalogSnapshot(OPERATIONS);
|
|
17621
|
+
/**
|
|
17622
|
+
* `<baseUrl>/browse/` of a Jira tracker, without userinfo, query or fragment; null for a tracker
|
|
17623
|
+
* whose keys do not append to one prefix, as GitHub Issues.
|
|
17624
|
+
*/
|
|
17625
|
+
function ticketBrowseBase(tracker) {
|
|
17626
|
+
if (tracker.type !== "jira") return null;
|
|
17627
|
+
const url = new URL(tracker.baseUrl);
|
|
17628
|
+
url.username = "";
|
|
17629
|
+
url.password = "";
|
|
17630
|
+
url.search = "";
|
|
17631
|
+
url.hash = "";
|
|
17632
|
+
url.pathname = `${url.pathname.replace(/\/+$/, "")}/browse/`;
|
|
17633
|
+
return url.href;
|
|
17634
|
+
}
|
|
17621
17635
|
/** Concrete handlers shared by the daemon's HTTP and inbound transports. */
|
|
17622
17636
|
function createOperationRegistry(deps) {
|
|
17623
17637
|
const { config, clock, completeSince, gateways } = deps;
|
|
@@ -17731,7 +17745,8 @@ function createOperationRegistry(deps) {
|
|
|
17731
17745
|
name: spur.name,
|
|
17732
17746
|
role: spur.role,
|
|
17733
17747
|
displayName: spur.displayName ?? spur.name
|
|
17734
|
-
}))
|
|
17748
|
+
})),
|
|
17749
|
+
ticketBrowseBase: ticketBrowseBase(project.tracker)
|
|
17735
17750
|
})),
|
|
17736
17751
|
web: {
|
|
17737
17752
|
publicOrigin: webOrigin() ?? null,
|
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-DsNaWj97.mjs";
|
|
2
|
+
import { o as CliError, r as requestOperation } from "./chunk-iJZ5-7AS.mjs";
|
|
3
|
+
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-pIWhSt-p.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|