spur-board 0.28.0 → 0.30.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/mcp.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { P as ERRORS, p as renderMcpError, u as OPERATIONS } from "./src-29M9Njzi.mjs";
2
- import { i as CliError, n as requestOperation } from "./client-vurSc69V.mjs";
3
- import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./config-BGn6LSvV.mjs";
1
+ import { P as ERRORS, p as renderMcpError, u as OPERATIONS } from "./src-B63VaSzU.mjs";
2
+ import { i as CliError, n as requestOperation } from "./client-DtDNMMO-.mjs";
3
+ import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./config-D3ltZ-MU.mjs";
4
4
  import { randomUUID } from "node:crypto";
5
5
  import { readFileSync } from "node:fs";
6
6
  import { z } from "zod";
@@ -222,10 +222,12 @@ const spurProject = z.strictObject({
222
222
  "curator"
223
223
  ]).describe("worker: sessions of this Spur project may link to this project's tasks through their PR or branch. operator: sessions act as the operator. curator: sessions answer the questions no column orchestrator takes and escalate the rest to the operator; a board project has at most one.")
224
224
  });
225
+ const DEFAULT_CYCLE_LIMIT = 10;
225
226
  const columnConfig = z.strictObject({
226
227
  id: z.enum(COLUMN_IDS, { error: (issue) => typeof issue.input === "string" ? `Unknown column ${JSON.stringify(issue.input)}: custom columns arrive with custom matchers and are not supported yet. Built-in columns: ${COLUMN_IDS.join(", ")}` : void 0 }),
227
228
  enabled: z.boolean().default(true),
228
- orchestrator: nonEmpty.default("none")
229
+ orchestrator: nonEmpty.default("none"),
230
+ cycleLimit: z.int().min(1).default(DEFAULT_CYCLE_LIMIT).describe("How many times a task may return to Dev from this column before the board stops it for the operator. Returns by the column executor, changes requested and external comments count; a conflict, red CI and a draft do not.")
229
231
  });
230
232
  /** The board rules: required columns present and enabled, built-ins in canonical order. */
231
233
  function checkBoard(items, ctx) {
@@ -291,7 +293,8 @@ const projectSchema = z.strictObject({
291
293
  columns: z.array(columnConfig).superRefine(checkBoard).default(() => COLUMN_IDS.map((id) => ({
292
294
  id,
293
295
  enabled: true,
294
- orchestrator: "none"
296
+ orchestrator: "none",
297
+ cycleLimit: DEFAULT_CYCLE_LIMIT
295
298
  })))
296
299
  }).superRefine((project, ctx) => {
297
300
  const spurNames = new Set(project.spurProjects.map((p) => p.name));
@@ -915,6 +918,8 @@ const REVIEWER_KINDS = [
915
918
  "team",
916
919
  "bot"
917
920
  ];
921
+ const FEEDBACK_KINDS = ["comment", "review"];
922
+ const AUTHOR_TYPES = ["user", "bot"];
918
923
  /** Spur session lifecycle values known today. */
919
924
  const SESSION_STATUSES = [
920
925
  "spawning",
@@ -951,6 +956,15 @@ const checkSchema = z.strictObject({
951
956
  state: z.enum(CHECK_STATES).describe("State of the latest run of this check on the head commit."),
952
957
  completedAt: at$2.nullable().describe("When the latest run finished; null while it runs.")
953
958
  });
959
+ const feedbackSchema = z.strictObject({
960
+ kind: z.enum(FEEDBACK_KINDS).describe("Whether this is a comment or a submitted review."),
961
+ id: z.string().min(1).describe("Stable id of the comment or review in the source."),
962
+ author: z.strictObject({
963
+ login: login.describe("Login of the author."),
964
+ type: z.enum(AUTHOR_TYPES).describe("Whether the author is a user or a bot.")
965
+ }).nullable().describe("Who posted it; null for a deleted account."),
966
+ postedAt: at$2.describe("When the comment was posted or the review submitted.")
967
+ });
954
968
  const prFactsSchema = z.strictObject({
955
969
  repo: repoSlugSchema.describe("Repository as owner/name."),
956
970
  number: z.int().min(1).describe("Pull request number in the repository."),
@@ -984,7 +998,9 @@ const prFactsSchema = z.strictObject({
984
998
  });
985
999
  })).describe("Pending review requests."),
986
1000
  ticketKeys: z.array(taskKeySchema).describe("Ticket keys found in the head branch name and the title."),
987
- updatedAt: at$2.describe("When the pull request last changed.")
1001
+ updatedAt: at$2.describe("When the pull request last changed."),
1002
+ feedback: z.array(feedbackSchema).optional().describe("Comments and submitted reviews on the pull request, oldest first, without their text."),
1003
+ feedbackComplete: z.boolean().optional().describe("Whether feedback holds every comment back to the last one handed over, or to the start of the pull request; missing reads as incomplete.")
988
1004
  }).describe("Facts about one pull request.");
989
1005
  /** A tracker ticket; tracker-neutral, so a Jira issue and a GitHub issue both fit. */
990
1006
  const ticketFactsSchema = z.strictObject({
@@ -2968,4 +2984,4 @@ function assertNever(value) {
2968
2984
  throw new Error(`Unexpected value: ${JSON.stringify(value)}`);
2969
2985
  }
2970
2986
  //#endregion
2971
- export { errorCodeOf as A, DEFAULT_SLACK_APP_NAME as B, SESSION_STATUSES as C, ticketFactsSchema as D, sessionFactsSchema as E, errorContextSchema as F, SLACK_BOT_SCOPES as G, RESERVED_PROJECT as H, errorEnvelopeSchema as I, successEnvelopeSchema as L, parseRef as M, taskKeySchema as N, actorIdSchema as O, ERRORS as P, DEFAULT_HTTP_PORT as R, SESSION_HEALTH_STATES as S, prRefSchema as T, configSchema as U, DEFAULT_SLACK_COMMAND as V, requiredSecretKeys as W, interactionRefSchema as _, batchSchema as a, EVENT_KINDS as b, buildCatalogSnapshot as c, renderHttpProblem as d, renderJsonError as f, inboundEventSchema as g, conversationRefSchema as h, AdapterError as i, parseActorId as j, encodeActorId as k, roleCanUseOperation as l, SPACE_IDS as m, BOARD_TICK_MS as n, entityRefSchema as o, renderMcpError as p, SYSTEMD_SERVICE_SETTINGS as r, sourceCursorSchema as s, assertNever as t, OPERATIONS as u, messageRefSchema as v, prFactsSchema as w, eventPayloadSchemas as x, userIdSchema as y, DEFAULT_LINK as z };
2987
+ export { errorCodeOf as A, DEFAULT_HTTP_PORT as B, SESSION_STATUSES as C, ticketFactsSchema as D, sessionFactsSchema as E, err as F, configSchema as G, DEFAULT_SLACK_APP_NAME as H, errorContextSchema as I, requiredSecretKeys as K, errorEnvelopeSchema as L, parseRef as M, taskKeySchema as N, actorIdSchema as O, ERRORS as P, ok as R, SESSION_HEALTH_STATES as S, prRefSchema as T, DEFAULT_SLACK_COMMAND as U, DEFAULT_LINK as V, RESERVED_PROJECT as W, interactionRefSchema as _, batchSchema as a, EVENT_KINDS as b, buildCatalogSnapshot as c, renderHttpProblem as d, renderJsonError as f, inboundEventSchema as g, conversationRefSchema as h, AdapterError as i, parseActorId as j, encodeActorId as k, roleCanUseOperation as l, SPACE_IDS as m, BOARD_TICK_MS as n, entityRefSchema as o, renderMcpError as p, SLACK_BOT_SCOPES as q, SYSTEMD_SERVICE_SETTINGS as r, sourceCursorSchema as s, assertNever as t, OPERATIONS as u, messageRefSchema as v, prFactsSchema as w, eventPayloadSchemas as x, userIdSchema as y, successEnvelopeSchema as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spur-board",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": "^24.12.0 || ^26.0.0"