spur-board 0.115.1 → 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.
@@ -1,5 +1,5 @@
1
- import { d as buildCatalogSnapshot, gt as plainHttpAllowed, mt as configSchema, p as OPERATIONS } from "./chunk-BX1CGMgV.mjs";
2
- import { o as CliError, t as fetchCatalogVersion } from "./chunk-ALQZAGOg.mjs";
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";
@@ -2003,6 +2003,7 @@ const MOVE_REASONS = [
2003
2003
  "gate_passed",
2004
2004
  "gate_broken",
2005
2005
  "merged",
2006
+ "ticket_done_no_pr",
2006
2007
  "ticket_reopened",
2007
2008
  "mode_changed"
2008
2009
  ];
@@ -2245,6 +2246,14 @@ z.object({
2245
2246
  message: `actorRef is set only when actor is agent, not ${event.actor}`
2246
2247
  });
2247
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
+ }
2248
2257
  // ../contracts/src/gateway/schemas.ts
2249
2258
  /** Opaque, gateway-issued reference to a conversation. Core stores it and never parses it. */
2250
2259
  const conversationRefSchema = z.string().min(1).brand();
@@ -5029,4 +5038,4 @@ const remoteDoctorReportSchema = z.object({
5029
5038
  function assertNever(value) {
5030
5039
  throw new Error(`Unexpected value: ${JSON.stringify(value)}`);
5031
5040
  }
5032
- export { parseRef as $, defaultBranchFactSchema as A, isExternalAuthor as B, messageRefSchema as C, TASK_HOLDS as Ct, eventPayloadSchemas as D, GATE_REASONS as E, trackerSourceId as F, sessionFactsSchema as G, prFactsSchema as H, PR_STATES as I, REF_NUMBER as J, ticketFactsSchema as K, REVIEW_STATES as L, prSourceId as M, sessionTransitionSchema as N, AdapterError as O, sourceCursorSchema as P, parseActorId as Q, SESSION_HEALTH_STATES as R, interactionRefSchema as S, SLACK_BOT_SCOPES as St, EVENT_KINDS as T, prRefSchema as U, parseRingMarker as V, ringMarker as W, encodeActorId as X, actorIdSchema as Y, errorCodeOf as Z, renderJsonError as _, requiredSecretKeys as _t, requestHashOf as a, successEnvelopeSchema as at, conversationRefSchema as b, DISPATCHER_MODES as bt, tokenRequestStatusSchema as c, DEFAULT_SLACK_APP_NAME as ct, buildCatalogSnapshot as d, RESERVED_PROJECT as dt, ERRORS as et, roleCanUseOperation as f, boardWideSpurProject as ft, renderHttpProblem as g, plainHttpAllowed as gt, turnHandedSchema as h, defaultAddressee as ht, TOKEN_REQUEST_LIMITS as i, ok as it, entityRefSchema as j, batchSchema as k, BOARD_TICK_MS as l, DEFAULT_SLACK_COMMAND as lt, defaultBranchViewSchema as m, configSchema as mt, doctorReportSchema as n, errorContextSchema as nt, tokenRequestResultSchema as o, DEFAULT_HTTP_PORT as ot, OPERATIONS as p, configBindings as pt, JIRA_PROJECT_KEY as q, remoteDoctorReportSchema as r, errorEnvelopeSchema as rt, tokenRequestSchema as s, DEFAULT_LINK as st, assertNever as t, err as tt, SYSTEMD_SERVICE_SETTINGS as u, DEFAULT_STAND_PORT_RANGE as ut, renderMcpError as v, resolveWebOrigin as vt, userIdSchema as w, VIAS as wt, inboundEventSchema as x, ITEM_KINDS as xt, SPACE_IDS as y, COLUMN_IDS as yt, SESSION_STATUSES as z };
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 successEnvelopeSchema, c as tokenRequestStatusSchema, et as ERRORS, nt as errorContextSchema, o as tokenRequestResultSchema, rt as errorEnvelopeSchema } from "./chunk-BX1CGMgV.mjs";
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
- /** Asks the daemon to message live sessions about `version`; sends no identity header. */
225
- function requestSkillReload(version, config) {
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)