spur-board 0.116.0 → 0.116.1
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-lKSPkzsR.mjs → chunk-BXfL5iBi.mjs} +2 -2
- package/dist/{chunk-DhRcRAgF.mjs → chunk-CoXzv4dC.mjs} +9 -1
- package/dist/{chunk-D2XhQ1P5.mjs → chunk-Qzs7Xloy.mjs} +10 -4
- package/dist/cli.mjs +675 -538
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +127 -44
- package/dist/mcp.mjs +3 -3
- package/package.json +1 -1
- package/skills/setup/references/update.md +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as CliError, t as fetchCatalogVersion } from "./chunk-
|
|
1
|
+
import { _t as configSchema, d as buildCatalogSnapshot, p as OPERATIONS, yt as plainHttpAllowed } from "./chunk-CoXzv4dC.mjs";
|
|
2
|
+
import { o as CliError, t as fetchCatalogVersion } from "./chunk-Qzs7Xloy.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";
|
|
@@ -2246,6 +2246,14 @@ z.object({
|
|
|
2246
2246
|
message: `actorRef is set only when actor is agent, not ${event.actor}`
|
|
2247
2247
|
});
|
|
2248
2248
|
});
|
|
2249
|
+
/** A spur-board skill file a reload message may name: `SKILL.md` or one `references/` page. */
|
|
2250
|
+
const skillReloadFileSchema = z.string().regex(/^(?:SKILL\.md|references\/[a-z0-9][a-z0-9-]{0,63}\.md)$/);
|
|
2251
|
+
/** Each installed spur-board file with the time its content last changed. */
|
|
2252
|
+
const skillReloadFilesSchema = z.record(skillReloadFileSchema, z.iso.datetime()).refine((files) => Object.keys(files).length <= 64, { message: `At most ${String(64)} files.` });
|
|
2253
|
+
/** Skill file names in the order a reload names them: `SKILL.md` first, then by code unit. */
|
|
2254
|
+
function sortSkillFiles(names) {
|
|
2255
|
+
return [...names].sort((left, right) => left === "SKILL.md" ? -1 : right === "SKILL.md" ? 1 : left < right ? -1 : left > right ? 1 : 0);
|
|
2256
|
+
}
|
|
2249
2257
|
// ../contracts/src/gateway/schemas.ts
|
|
2250
2258
|
/** Opaque, gateway-issued reference to a conversation. Core stores it and never parses it. */
|
|
2251
2259
|
const conversationRefSchema = z.string().min(1).brand();
|
|
@@ -5030,4 +5038,4 @@ const remoteDoctorReportSchema = z.object({
|
|
|
5030
5038
|
function assertNever(value) {
|
|
5031
5039
|
throw new Error(`Unexpected value: ${JSON.stringify(value)}`);
|
|
5032
5040
|
}
|
|
5033
|
-
export {
|
|
5041
|
+
export { encodeActorId as $, eventPayloadSchemas as A, REVIEW_STATES as B, messageRefSchema as C, DISPATCHER_MODES as Ct, sortSkillFiles as D, VIAS as Dt, skillReloadFilesSchema as E, TASK_HOLDS as Et, prSourceId as F, prFactsSchema as G, SESSION_STATUSES as H, sessionTransitionSchema as I, sessionFactsSchema as J, prRefSchema as K, sourceCursorSchema as L, batchSchema as M, defaultBranchFactSchema as N, EVENT_KINDS as O, entityRefSchema as P, actorIdSchema as Q, trackerSourceId as R, interactionRefSchema as S, COLUMN_IDS as St, skillReloadFileSchema as T, SLACK_BOT_SCOPES as Tt, isExternalAuthor as U, SESSION_HEALTH_STATES as V, parseRingMarker as W, JIRA_PROJECT_KEY as X, ticketFactsSchema as Y, REF_NUMBER as Z, renderJsonError as _, configSchema as _t, requestHashOf as a, errorContextSchema as at, conversationRefSchema as b, requiredSecretKeys as bt, tokenRequestStatusSchema as c, successEnvelopeSchema as ct, buildCatalogSnapshot as d, DEFAULT_SLACK_APP_NAME as dt, errorCodeOf as et, roleCanUseOperation as f, DEFAULT_SLACK_COMMAND as ft, renderHttpProblem as g, configBindings as gt, turnHandedSchema as h, boardWideSpurProject as ht, TOKEN_REQUEST_LIMITS as i, err as it, AdapterError as j, GATE_REASONS as k, BOARD_TICK_MS as l, DEFAULT_HTTP_PORT as lt, defaultBranchViewSchema as m, RESERVED_PROJECT as mt, doctorReportSchema as n, parseRef as nt, tokenRequestResultSchema as o, errorEnvelopeSchema as ot, OPERATIONS as p, DEFAULT_STAND_PORT_RANGE as pt, ringMarker as q, remoteDoctorReportSchema as r, ERRORS as rt, tokenRequestSchema as s, ok as st, assertNever as t, parseActorId as tt, SYSTEMD_SERVICE_SETTINGS as u, DEFAULT_LINK as ut, renderMcpError as v, defaultAddressee as vt, userIdSchema as w, ITEM_KINDS as wt, inboundEventSchema as x, resolveWebOrigin as xt, SPACE_IDS as y, plainHttpAllowed as yt, PR_STATES as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as renderJsonError, at as
|
|
1
|
+
import { _ as renderJsonError, at as errorContextSchema, c as tokenRequestStatusSchema, ct as successEnvelopeSchema, o as tokenRequestResultSchema, ot as errorEnvelopeSchema, rt as ERRORS } from "./chunk-CoXzv4dC.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { request } from "node:http";
|
|
@@ -221,12 +221,18 @@ const skillReloadOutput = z.strictObject({
|
|
|
221
221
|
version: z.string(),
|
|
222
222
|
queued: z.int().min(0)
|
|
223
223
|
});
|
|
224
|
-
/**
|
|
225
|
-
|
|
224
|
+
/**
|
|
225
|
+
* Asks the daemon to message live sessions about `version`, naming the `files` that changed after
|
|
226
|
+
* each session's baseline; sends no identity header.
|
|
227
|
+
*/
|
|
228
|
+
function requestSkillReload(version, files, config) {
|
|
226
229
|
return send({
|
|
227
230
|
method: "POST",
|
|
228
231
|
path: "/v1/skills/reload",
|
|
229
|
-
body: { version }
|
|
232
|
+
body: files === void 0 ? { version } : {
|
|
233
|
+
version,
|
|
234
|
+
files
|
|
235
|
+
},
|
|
230
236
|
config,
|
|
231
237
|
anonymous: true,
|
|
232
238
|
decode: (response, raw) => decodeResponse(skillReloadOutput, response, raw)
|