spur-board 0.58.0 → 0.59.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-tt6l6pjW.mjs → chunk-BY5dr3F6.mjs} +1 -1
- package/dist/{chunk-B6pPDV2w.mjs → chunk-DjdHFn4C.mjs} +2 -2
- package/dist/{chunk-mMiyA5ex.mjs → chunk-ZywNbxbW.mjs} +59 -8
- package/dist/cli.mjs +3 -3
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +292 -203
- package/dist/mcp.mjs +3 -3
- package/dist/migrations/0018_project_block.sql +115 -0
- package/package.json +1 -1
- package/skills/spur-board/SKILL.md +12 -10
- package/skills/spur-board/references/commands.md +15 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as errorContextSchema, S as renderJsonError,
|
|
1
|
+
import { $ as errorEnvelopeSchema, Q as errorContextSchema, S as renderJsonError, X as ERRORS, c as tokenRequestStatusSchema, o as tokenRequestResultSchema, tt as successEnvelopeSchema } from "./chunk-ZywNbxbW.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 { _ as buildCatalogSnapshot, ct as
|
|
2
|
-
import { o as CliError, t as fetchCatalogVersion } from "./chunk-
|
|
1
|
+
import { _ as buildCatalogSnapshot, ct as plainHttpAllowed, st as configSchema, y as OPERATIONS } from "./chunk-ZywNbxbW.mjs";
|
|
2
|
+
import { o as CliError, t as fetchCatalogVersion } from "./chunk-BY5dr3F6.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";
|
|
@@ -1874,7 +1874,7 @@ function defineOperation(spec) {
|
|
|
1874
1874
|
*/
|
|
1875
1875
|
const commentSchema = z.strictObject({
|
|
1876
1876
|
id: commentIdSchema,
|
|
1877
|
-
task: taskKeySchema,
|
|
1877
|
+
task: taskKeySchema.nullable().describe("Task the comment is on; null on a project-level block."),
|
|
1878
1878
|
block: blockIdSchema.nullable().describe("Block this comment belongs to; null for a task comment."),
|
|
1879
1879
|
author: actorIdSchema,
|
|
1880
1880
|
at: z.iso.datetime().describe("When the comment was written, ISO 8601 UTC."),
|
|
@@ -1891,7 +1891,8 @@ const taskViewSchema = z.strictObject({
|
|
|
1891
1891
|
}).describe("A task on the board.");
|
|
1892
1892
|
const blockViewSchema = z.strictObject({
|
|
1893
1893
|
id: blockIdSchema,
|
|
1894
|
-
task: taskKeySchema,
|
|
1894
|
+
task: taskKeySchema.nullable().describe("Task the block is on; null for a project-level block."),
|
|
1895
|
+
project: z.string().min(1).optional().describe("Board project of a project-level block; absent on a task block."),
|
|
1895
1896
|
type: z.enum(BLOCK_TYPES).describe("Block type."),
|
|
1896
1897
|
state: z.enum(BLOCK_STATES).describe("Whether the block is open or unblocked."),
|
|
1897
1898
|
author: actorIdSchema,
|
|
@@ -2325,7 +2326,7 @@ const OPERATIONS = [
|
|
|
2325
2326
|
kind: "query",
|
|
2326
2327
|
description: "List actionable items, source freshness and compact tasks; detail adds full facts and links.",
|
|
2327
2328
|
mcp: {
|
|
2328
|
-
whenToUse: "Get a board overview
|
|
2329
|
+
whenToUse: "Get a board overview.",
|
|
2329
2330
|
whenNotToUse: "Use task_get for one task."
|
|
2330
2331
|
},
|
|
2331
2332
|
input: z.strictObject({
|
|
@@ -2346,6 +2347,10 @@ const OPERATIONS = [
|
|
|
2346
2347
|
}).describe("Transport health of one gateway.")).describe("Transport health of each chat gateway."),
|
|
2347
2348
|
sources: z.array(sourceViewSchema).describe("Freshness and availability of each source."),
|
|
2348
2349
|
tasks: z.array(statusTaskSchema).describe("Tasks on the board with state and counts; facts and links with detail."),
|
|
2350
|
+
projectBlocks: z.array(z.strictObject({
|
|
2351
|
+
project: z.string().min(1).describe("Board project."),
|
|
2352
|
+
openBlocks: z.int().min(0).describe("Open project-level blocks, without a task.")
|
|
2353
|
+
}).describe("Open project-level blocks of one project.")).describe("Open project-level blocks of each requested project."),
|
|
2349
2354
|
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."),
|
|
2350
2355
|
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."),
|
|
2351
2356
|
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."),
|
|
@@ -2378,6 +2383,10 @@ const OPERATIONS = [
|
|
|
2378
2383
|
sessionCount: 0,
|
|
2379
2384
|
openBlocks: 0
|
|
2380
2385
|
}],
|
|
2386
|
+
projectBlocks: [{
|
|
2387
|
+
project: "web",
|
|
2388
|
+
openBlocks: 0
|
|
2389
|
+
}],
|
|
2381
2390
|
unlinkedPrs: [],
|
|
2382
2391
|
unlinkedSessions: [],
|
|
2383
2392
|
hiddenUnlinkedPrs: 0,
|
|
@@ -2404,6 +2413,10 @@ const OPERATIONS = [
|
|
|
2404
2413
|
sessions: [],
|
|
2405
2414
|
links: []
|
|
2406
2415
|
}],
|
|
2416
|
+
projectBlocks: [{
|
|
2417
|
+
project: "web",
|
|
2418
|
+
openBlocks: 0
|
|
2419
|
+
}],
|
|
2407
2420
|
unlinkedPrs: [],
|
|
2408
2421
|
unlinkedSessions: [],
|
|
2409
2422
|
hiddenUnlinkedPrs: 0,
|
|
@@ -2567,7 +2580,7 @@ const OPERATIONS = [
|
|
|
2567
2580
|
usage: "/board task <KEY> history"
|
|
2568
2581
|
},
|
|
2569
2582
|
examples: [{
|
|
2570
|
-
summary: "Show
|
|
2583
|
+
summary: "Show task history",
|
|
2571
2584
|
input: { task: "acme/web#42" },
|
|
2572
2585
|
output: {
|
|
2573
2586
|
task: {
|
|
@@ -3038,6 +3051,44 @@ const OPERATIONS = [
|
|
|
3038
3051
|
output: { block: question }
|
|
3039
3052
|
}]
|
|
3040
3053
|
}),
|
|
3054
|
+
defineOperation({
|
|
3055
|
+
id: "project.ask",
|
|
3056
|
+
kind: "mutation",
|
|
3057
|
+
description: "Ask the operator about a project, not a task.",
|
|
3058
|
+
mcp: {
|
|
3059
|
+
whenToUse: "A question has no task.",
|
|
3060
|
+
whenNotToUse: "Use block_ask for a task question.",
|
|
3061
|
+
destructive: false
|
|
3062
|
+
},
|
|
3063
|
+
input: z.strictObject({
|
|
3064
|
+
project: z.string().min(1).max(NAME_MAX).describe("Board project the question is about."),
|
|
3065
|
+
to: z.literal("operator").describe("Who answers; only the operator."),
|
|
3066
|
+
text: text("The question.", TEXT_MAX)
|
|
3067
|
+
}),
|
|
3068
|
+
output: blockOutput,
|
|
3069
|
+
grants: [{ grant: "project-agent" }],
|
|
3070
|
+
errors: ["not_found"],
|
|
3071
|
+
cli: {
|
|
3072
|
+
command: "project ask",
|
|
3073
|
+
args: ["project", "text"]
|
|
3074
|
+
},
|
|
3075
|
+
slack: null,
|
|
3076
|
+
examples: [{
|
|
3077
|
+
summary: "Ask to restart",
|
|
3078
|
+
input: {
|
|
3079
|
+
project: "web",
|
|
3080
|
+
to: "operator",
|
|
3081
|
+
text: "Restart?"
|
|
3082
|
+
},
|
|
3083
|
+
output: { block: {
|
|
3084
|
+
...question,
|
|
3085
|
+
id: "B15",
|
|
3086
|
+
task: null,
|
|
3087
|
+
project: "web",
|
|
3088
|
+
reason: "Restart?"
|
|
3089
|
+
} }
|
|
3090
|
+
}]
|
|
3091
|
+
}),
|
|
3041
3092
|
defineOperation({
|
|
3042
3093
|
id: "comment.add",
|
|
3043
3094
|
kind: "mutation",
|
|
@@ -3181,7 +3232,7 @@ const OPERATIONS = [
|
|
|
3181
3232
|
},
|
|
3182
3233
|
slack: null,
|
|
3183
3234
|
examples: [{
|
|
3184
|
-
summary: "Escalate a failing build
|
|
3235
|
+
summary: "Escalate a failing build",
|
|
3185
3236
|
input: { block: "B13" },
|
|
3186
3237
|
output: { block: {
|
|
3187
3238
|
...codeBlock,
|
|
@@ -3346,7 +3397,7 @@ const OPERATIONS = [
|
|
|
3346
3397
|
slack: null,
|
|
3347
3398
|
examples: [
|
|
3348
3399
|
{
|
|
3349
|
-
summary: "Unblock after
|
|
3400
|
+
summary: "Unblock after a fix",
|
|
3350
3401
|
input: {
|
|
3351
3402
|
mode: "done",
|
|
3352
3403
|
block: "B13",
|
|
@@ -3428,7 +3479,7 @@ const OPERATIONS = [
|
|
|
3428
3479
|
},
|
|
3429
3480
|
slack: null,
|
|
3430
3481
|
examples: [{
|
|
3431
|
-
summary: "Submit the pull request head
|
|
3482
|
+
summary: "Submit the pull request head",
|
|
3432
3483
|
input: {
|
|
3433
3484
|
turn: "T4",
|
|
3434
3485
|
sha: submittedSha
|
|
@@ -3902,4 +3953,4 @@ function assertNever(value) {
|
|
|
3902
3953
|
throw new Error(`Unexpected value: ${JSON.stringify(value)}`);
|
|
3903
3954
|
}
|
|
3904
3955
|
//#endregion
|
|
3905
|
-
export {
|
|
3956
|
+
export { errorEnvelopeSchema as $, EVENT_KINDS as A, ringMarker as B, renderMcpError as C, interactionRefSchema as D, inboundEventSchema as E, SESSION_STATUSES as F, actorIdSchema as G, ticketFactsSchema as H, isExternalAuthor as I, parseActorId as J, encodeActorId as K, parseRingMarker as L, PR_STATES as M, REVIEW_STATES as N, messageRefSchema as O, SESSION_HEALTH_STATES as P, errorContextSchema as Q, prFactsSchema as R, renderJsonError as S, conversationRefSchema as T, JIRA_PROJECT_KEY as U, sessionFactsSchema as V, REF_NUMBER as W, ERRORS as X, parseRef as Y, err as Z, buildCatalogSnapshot as _, requestHashOf as a, DEFAULT_SLACK_COMMAND as at, turnHandedSchema as b, tokenRequestStatusSchema as c, plainHttpAllowed as ct, AdapterError as d, DISPATCHER_MODES as dt, ok as et, batchSchema as f, SLACK_BOT_SCOPES as ft, trackerSourceId as g, sourceCursorSchema as h, TOKEN_REQUEST_LIMITS as i, DEFAULT_SLACK_APP_NAME as it, eventPayloadSchemas as j, userIdSchema as k, BOARD_TICK_MS as l, requiredSecretKeys as lt, prSourceId as m, doctorReportSchema as n, DEFAULT_HTTP_PORT as nt, tokenRequestResultSchema as o, RESERVED_PROJECT as ot, entityRefSchema as p, TASK_HOLDS as pt, errorCodeOf as q, remoteDoctorReportSchema as r, DEFAULT_LINK as rt, tokenRequestSchema as s, configSchema as st, assertNever as t, successEnvelopeSchema as tt, SYSTEMD_SERVICE_SETTINGS as u, COLUMN_IDS as ut, roleCanUseOperation as v, SPACE_IDS as w, renderHttpProblem as x, OPERATIONS as y, prRefSchema as z };
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as actorIdSchema,
|
|
1
|
+
import { G as actorIdSchema, X as ERRORS, a as requestHashOf, ft as SLACK_BOT_SCOPES, lt as requiredSecretKeys, r as remoteDoctorReportSchema, st as configSchema, tt as successEnvelopeSchema, u as SYSTEMD_SERVICE_SETTINGS, v as roleCanUseOperation, y as OPERATIONS } from "./chunk-ZywNbxbW.mjs";
|
|
2
2
|
import { t as apiBaseUrl } from "./chunk-DAMwWWmT.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-BY5dr3F6.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-DjdHFn4C.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,2 +1,2 @@
|
|
|
1
|
-
import { a as requestTokenEnrollment, i as requestSkillReload, n as fetchTokenStatus, r as requestOperation, t as fetchCatalogVersion } from "./chunk-
|
|
1
|
+
import { a as requestTokenEnrollment, i as requestSkillReload, n as fetchTokenStatus, r as requestOperation, t as fetchCatalogVersion } from "./chunk-BY5dr3F6.mjs";
|
|
2
2
|
export { fetchCatalogVersion, fetchTokenStatus, requestOperation, requestSkillReload, requestTokenEnrollment };
|