spur-board 0.134.0 → 0.135.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.
@@ -1,4 +1,4 @@
1
- import { _ as renderJsonError, at as ERRORS, c as tokenRequestStatusSchema, ct as errorEnvelopeSchema, o as tokenRequestResultSchema, st as errorContextSchema, ut as successEnvelopeSchema } from "./chunk-EIGSWJA9.mjs";
1
+ import { _ as renderJsonError, at as ERRORS, c as tokenRequestStatusSchema, ct as errorEnvelopeSchema, o as tokenRequestResultSchema, st as errorContextSchema, ut as successEnvelopeSchema } from "./chunk-CRtgKvgx.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { z } from "zod";
4
4
  import { request } from "node:http";
@@ -459,7 +459,7 @@ const columnConfig = z.strictObject({
459
459
  enabled: z.boolean().default(true).describe("false skips the column: tasks move past it and its exit condition is not checked. todo, dev and done cannot be disabled."),
460
460
  orchestrator: nonEmpty.default("none").describe("Who takes the column's turns. none: the task's live worker session, else the operator. operator: the operator, who also gets the questions asked in the column. Otherwise the name of a spurProjects entry with role orchestrator or curator whose sessions orchestrate the column and get the questions others ask in it. A column left at none, and enabled, takes the top-level spurProjects orchestrator that lists it."),
461
461
  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, for external comments and for unresolved review threads count, a changes-requested review included (it is an external comment, not a separate return); a conflict, red CI and a draft do not."),
462
- courseCheck: z.int().min(0).default(DEFAULT_COURSE_CHECK).describe("How many returns to Dev from this column, counted as for cycleLimit, before the board holds the task and asks courseCheckTo (by default the curator, or the operator when the project has no curator) to check its course. The answer resets the count and reaches the worker as a task comment. 0 turns the check off; cycleLimit is checked first."),
462
+ courseCheck: z.int().min(0).default(DEFAULT_COURSE_CHECK).describe("How many returns to Dev from this column, counted as for cycleLimit, before the board holds the task and asks courseCheckTo (by default the curator, or the operator when the project has no curator) to check its course. The answer resets the count and reaches the worker as a task comment. 0 turns the check off; cycleLimit is checked first. With External Review enabled, returns for external comments from any column, and each external change request on a new PR head while the task is in Dev (once per head), count toward External Review's courseCheck instead of this column's; cycleLimit still counts them per column."),
463
463
  courseCheckTo: nonEmpty.optional().describe("Who answers this column's course check: operator, the curator's name, or the name of a column orchestrator listed in this project's spurProjects; a board-wide orchestrator is refused. Without it, the curator, or the operator when the project has no curator. When the addressee has no live session the question moves to the operator; a conductor that is rung and does not answer keeps it, and the operator gets an item."),
464
464
  requireResolvedThreads: z.boolean().optional().describe("true: a task leaves this column, and every column right of it, only when its PR has no unresolved review thread; an unresolved one sends it back to Dev, and the worker's Dev turn lists each thread. Outdated threads count; a thread counts until someone resolves it, whoever wrote it. Defaults to true on ready-to-merge and false elsewhere; allowed on dev through ready-to-merge."),
465
465
  approvalRule: z.enum(APPROVAL_RULES).optional().describe("What lets a task leave External Review. any-approval, the default: an approval by someone other than operatorGithubLogin and no changes requested by one. github-rules: that, and GitHub's review rule for the PR's base branch, from branch protection and rulesets, met on the PR's head: no changes requested (GitHub's review decision counts only once the merge state is computed), a required check completed, or, when none is required, every check except skipped ones green and at least one (no checks at all also counts); and the merge not blocked. A required check, one GitHub marks required or a context the rule lists, pending or without a run GitHub marks required holds the head on CI unless the merge state is clean, unstable or has hooks. Only on the external-review column; a disabled one ignores it."),
@@ -2151,6 +2151,7 @@ const EVENT_KINDS = [
2151
2151
  "task_shadow_moved",
2152
2152
  "task_corrected",
2153
2153
  "task_manually_moved",
2154
+ "external_round",
2154
2155
  "dispatcher_mode_changed",
2155
2156
  "turn_opened",
2156
2157
  "turn_taken",
@@ -2332,6 +2333,13 @@ const eventPayloadSchemas = {
2332
2333
  to: z.enum(COLUMN_IDS),
2333
2334
  reason: S
2334
2335
  }),
2336
+ /** An external change request on a new PR head while the task is in Dev: one course-check round. */
2337
+ external_round: z.looseObject({
2338
+ repo: S,
2339
+ pr: N,
2340
+ head: S,
2341
+ reviewer: S
2342
+ }),
2335
2343
  task_corrected: z.looseObject({
2336
2344
  from: z.enum(COLUMN_IDS),
2337
2345
  to: z.enum(COLUMN_IDS),
@@ -3264,7 +3272,7 @@ const columnsDescribeOutputSchema = z.strictObject({ projects: z.array(z.strictO
3264
3272
  resolvedThreadsFrom: z.enum(COLUMN_IDS).nullable().describe("Leftmost enabled thread gate, or null when none."),
3265
3273
  completion: z.strictObject({
3266
3274
  to: z.literal("done").describe("Completion destination, separate from ordinary gate progression."),
3267
- text: z.string().describe("Alternative completion routes: eligible linked merged PR with a tracker-done ticket (GitHub closed or effective Jira doneStatuses), or a done ticket without open linked PRs/live workers after fresh complete non-blind repository and Spur observations. Missing/unconfirmed merged-ticket status holds dispatch; confirmed-open evidence after the effective tracker interval, in filter or manually included, resumes work. Blind GitHub and pending submits hold both routes. Includes eligibility/readability, non-archived scope and dispatcher-mode qualifications.")
3275
+ text: z.string().describe("Alternative completion routes: eligible linked merged PR with a tracker-done ticket (GitHub closed or effective Jira doneStatuses), or a done ticket without open linked PRs/live workers after fresh complete non-blind repository and Spur observations. Missing/unconfirmed merged-ticket status holds dispatch; a ticket that stays non-done and changed in any way at or after the newest merge, in filter or manually included, resumes work; a ticket untouched since the merge stays unconfirmed; when no merged PR has a stored merge time (facts from before the dispatcher), work resumes once the ticket, in filter or manually included, is observed open at or past the judged PR last update plus the tracker interval. Blind GitHub and pending submits hold both routes. Includes eligibility/readability, non-archived scope and dispatcher-mode qualifications.")
3268
3276
  }).describe("Project-wide completion route from any column other than Done. Completion bypasses normal gates; it is not conjoined with exit.conditions."),
3269
3277
  columns: z.array(z.strictObject({
3270
3278
  id: z.enum(COLUMN_IDS).describe("Enabled column in canonical order."),
@@ -3277,10 +3285,10 @@ const columnsDescribeOutputSchema = z.strictObject({ projects: z.array(z.strictO
3277
3285
  text: z.string().describe("Canonical positive exit rule, independent of task state.")
3278
3286
  })).describe("Own gate conditions; gates accumulate from earlier enabled columns. Passing them alone never moves into Done. The separate project completion route bypasses these gates rather than adding a conjunctive requirement.")
3279
3287
  }).describe("Normal gate progression and effective own rules; completion into Done is described separately at project level."),
3280
- returns: z.array(z.string()).describe("Applicable return triggers and completion/reopening qualifications."),
3288
+ returns: z.array(z.string()).describe("Applicable return triggers, course-check rounds and completion/reopening qualifications."),
3281
3289
  limits: z.strictObject({
3282
3290
  cycleLimit: z.int().min(1).describe("Counted returns before operator hold; takes precedence over courseCheck."),
3283
- courseCheck: z.int().min(0).describe("Counted returns before a course check; zero disables it. Executor, feedback and thread returns count; draft, conflict and red CI do not."),
3291
+ courseCheck: z.int().min(0).describe("Counted returns before a course check; zero disables it. Executor, feedback and thread returns count; draft, conflict and red CI do not. With External Review enabled, returns for external comments count toward its courseCheck instead, as does each external change request on a new PR head while in Dev, once per head."),
3284
3292
  courseCheckTo: destination.describe("Resolved course-check destination; missing live recipient falls back to operator.")
3285
3293
  }).nullable().describe("Return limits, or null when the column cannot return to Dev."),
3286
3294
  executor: z.strictObject({
@@ -5340,7 +5348,7 @@ const OPERATIONS = [
5340
5348
  resolvedThreadsFrom: null,
5341
5349
  completion: {
5342
5350
  to: "done",
5343
- text: "Completion bypasses normal gates: an eligible linked merged PR with a done ticket (GitHub closed or configured Jira doneStatuses), or a done ticket without open linked PRs/live workers and with fresh complete non-blind repository and Spur observations. Missing/unconfirmed merged-ticket status holds dispatch. An open ticket resumes work after the configured tracker interval with in-filter or manual-inclusion evidence. Blind GitHub or a pending submit holds both routes."
5351
+ text: "Completion bypasses normal gates: an eligible linked merged PR with a done ticket (GitHub closed or configured Jira doneStatuses), or a done ticket without open linked PRs/live workers and with fresh complete non-blind repository and Spur observations. Missing/unconfirmed merged-ticket status holds dispatch. An open ticket resumes work only once it changed at or after the newest merge, with in-filter or manual-inclusion evidence; when no merged PR has a stored merge time (facts from before the dispatcher), work resumes once the ticket, in filter or manually included, is observed open at or past the judged PR last update plus the tracker interval. Blind GitHub or a pending submit holds both routes."
5344
5352
  },
5345
5353
  columns: [{
5346
5354
  id: "todo",
@@ -1,5 +1,5 @@
1
- import { Ct as plainHttpAllowed, d as buildCatalogSnapshot, p as OPERATIONS, xt as configSchema } from "./chunk-EIGSWJA9.mjs";
2
- import { o as CliError, t as fetchCatalogVersion } from "./chunk-DPzFY26V.mjs";
1
+ import { Ct as plainHttpAllowed, d as buildCatalogSnapshot, p as OPERATIONS, xt as configSchema } from "./chunk-CRtgKvgx.mjs";
2
+ import { o as CliError, t as fetchCatalogVersion } from "./chunk-CEGynnHg.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 { D as sortSkillFiles, T as skillReloadFileSchema, Tt as resolveWebOrigin, a as requestHashOf, at as ERRORS, et as actorIdSchema, f as roleCanUseOperation, ht as DEFAULT_STAND_PORT_RANGE, jt as SLACK_BOT_SCOPES, p as OPERATIONS, r as remoteDoctorReportSchema, u as SYSTEMD_SERVICE_SETTINGS, ut as successEnvelopeSchema, wt as requiredSecretKeys, xt as configSchema } from "./chunk-EIGSWJA9.mjs";
1
+ import { D as sortSkillFiles, T as skillReloadFileSchema, Tt as resolveWebOrigin, a as requestHashOf, at as ERRORS, et as actorIdSchema, f as roleCanUseOperation, ht as DEFAULT_STAND_PORT_RANGE, jt as SLACK_BOT_SCOPES, p as OPERATIONS, r as remoteDoctorReportSchema, u as SYSTEMD_SERVICE_SETTINGS, ut as successEnvelopeSchema, wt as requiredSecretKeys, xt as configSchema } from "./chunk-CRtgKvgx.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-DPzFY26V.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-CtrQ6KMg.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-CEGynnHg.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-ssUCRu8d.mjs";
5
5
  import { createHash, randomBytes, randomUUID } from "node:crypto";
6
6
  import { accessSync, chmodSync, closeSync, constants, cpSync, existsSync, ftruncateSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
7
7
  import { homedir, hostname, tmpdir, 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-DPzFY26V.mjs";
1
+ export { t as fetchCatalogVersion, n as fetchTokenStatus, r as requestOperation, i as requestSkillReload, a as requestTokenEnrollment } from "./chunk-CEGynnHg.mjs";