spur-board 0.143.0 → 0.145.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-DApVVC2b.mjs → chunk-7gaKVc6L.mjs} +2 -2
- package/dist/{chunk-7rRkhWZT.mjs → chunk-BbRoZyZW.mjs} +1 -1
- package/dist/{chunk-94uNRHe7.mjs → chunk-CVVzwHUN.mjs} +18 -36
- package/dist/cli.mjs +3 -3
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +2253 -2074
- package/dist/mcp.mjs +3 -3
- package/dist/web/assets/{index-6eBJ07Ho.css → index-D8GjtUEd.css} +1 -1
- package/dist/web/assets/index-DnahNMUx.js +64 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/skills/spur-board/SKILL.md +3 -2
- package/skills/spur-board/references/how-board-works-blocks.md +4 -2
- package/skills/spur-board/references/how-board-works-columns.md +6 -6
- package/skills/spur-board/references/how-board-works-inbox.md +2 -2
- package/skills/spur-board/references/how-board-works-turns.md +9 -7
- package/skills/spur-board/references/how-board-works-web.md +2 -2
- package/skills/spur-board/references/how-board-works.md +3 -2
- package/skills/spur-board/references/tasks.md +2 -2
- package/skills/spur-board/references/web-ui-board-move.md +22 -1
- package/skills/spur-board/references/web-ui-board.md +20 -16
- package/skills/spur-board/references/web-ui-status.md +6 -3
- package/skills/spur-board/references/web-ui-task-turn.md +20 -17
- package/skills/spur-board/references/web-ui-task-view.md +3 -3
- package/skills/spur-board/references/web-ui.md +6 -3
- package/dist/web/assets/index-DmPnkubw.js +0 -64
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dt as plainHttpAllowed, Tt as configSchema, d as buildCatalogSnapshot, p as OPERATIONS } from "./chunk-
|
|
2
|
-
import { o as CliError, t as fetchCatalogVersion } from "./chunk-
|
|
1
|
+
import { Dt as plainHttpAllowed, Tt as configSchema, d as buildCatalogSnapshot, p as OPERATIONS } from "./chunk-CVVzwHUN.mjs";
|
|
2
|
+
import { o as CliError, t as fetchCatalogVersion } from "./chunk-BbRoZyZW.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as renderJsonError, c as tokenRequestStatusSchema, dt as errorContextSchema, ft as errorEnvelopeSchema, lt as ERRORS, mt as successEnvelopeSchema, o as tokenRequestResultSchema } from "./chunk-
|
|
1
|
+
import { _ as renderJsonError, c as tokenRequestStatusSchema, dt as errorContextSchema, ft as errorEnvelopeSchema, lt as ERRORS, mt as successEnvelopeSchema, o as tokenRequestResultSchema } from "./chunk-CVVzwHUN.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { request } from "node:http";
|
|
@@ -126,15 +126,8 @@ const CHECKS_GATE_COLUMNS = [
|
|
|
126
126
|
const APPROVAL_RULES = ["any-approval", "github-rules"];
|
|
127
127
|
/** Where a column's effective orchestrator comes from: its own column entry or top-level `spurProjects`. */
|
|
128
128
|
const COLUMN_BINDING_SOURCES = ["project", "board-wide"];
|
|
129
|
-
/**
|
|
130
|
-
|
|
131
|
-
* `spurProjects`, or, while no board-wide operator exists, another board project's list.
|
|
132
|
-
*/
|
|
133
|
-
const OPERATOR_BINDING_SOURCES = [
|
|
134
|
-
"project",
|
|
135
|
-
"board-wide",
|
|
136
|
-
"other-project"
|
|
137
|
-
];
|
|
129
|
+
/** Where a project's effective operator comes from: its own `spurProjects` or top-level `spurProjects`. */
|
|
130
|
+
const OPERATOR_BINDING_SOURCES = ["project", "board-wide"];
|
|
138
131
|
/** Where the default Slack addressee comes from: `slack.defaultAddressee`, the board-wide operator or a project's operator. */
|
|
139
132
|
const ADDRESSEE_SOURCES = [
|
|
140
133
|
"config",
|
|
@@ -445,7 +438,7 @@ const spurProject = z.strictObject({
|
|
|
445
438
|
"operator",
|
|
446
439
|
"curator",
|
|
447
440
|
"orchestrator"
|
|
448
|
-
]).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. orchestrator: sessions execute named columns and never become task workers. curator: sessions answer the questions no column orchestrator takes and escalate the rest to the operator; a board project has at most one."),
|
|
441
|
+
]).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 of this board project only. orchestrator: sessions execute named columns and never become task workers. curator: sessions answer the questions no column orchestrator takes and escalate the rest to the operator; a board project has at most one."),
|
|
449
442
|
shortName: z.string().regex(/^[a-z0-9][a-z0-9_-]{0,31}$/, "Expected a short name of lowercase letters, digits, _ and -, starting with a letter or digit, at most 32 characters").optional().describe("The name the operator types as @<shortName> at the start of a new message in the orchestrators channel to start a conversation with this Spur project's live session. Unique across the board."),
|
|
450
443
|
displayName: nonEmpty.max(80).optional().describe("The name Slack messages this Spur project's sessions write are posted under: block threads and replies, and a curator's answer lines in the feed. Defaults to the Spur project name."),
|
|
451
444
|
icon: z.string().regex(/^:[a-z0-9_+'-]+:$/, "Expected an emoji shortcode such as :owl:").optional().describe("The emoji shortcode, such as :owl:, shown on those messages instead of the role icon.")
|
|
@@ -465,7 +458,7 @@ const trackerColumnSource = z.strictObject({
|
|
|
465
458
|
const columnConfig = z.strictObject({
|
|
466
459
|
id: columnId.describe("The built-in column this entry configures."),
|
|
467
460
|
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."),
|
|
468
|
-
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
|
+
orchestrator: nonEmpty.default("none").describe("Who takes the column's turns. none: in Dev the task's live worker session, else the operator; in Done a wrap-up turn for the live worker, else no turn; in Review, Product Review, QA and Ready to Merge the operator; External Review waits for approval with no turn. 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."),
|
|
469
462
|
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."),
|
|
470
463
|
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."),
|
|
471
464
|
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."),
|
|
@@ -748,7 +741,7 @@ function rejectSharedShortNames(items, ctx) {
|
|
|
748
741
|
/** A Spur project bound for every board project at once, in top-level `spurProjects`. */
|
|
749
742
|
const boardWideEntry = z.strictObject({
|
|
750
743
|
name: spurProject.shape.name.describe("The name of the project in Spur. It must not also be listed under any projects[].spurProjects, and none and operator are reserved."),
|
|
751
|
-
role: z.enum(["orchestrator", "operator"]).describe("orchestrator: sessions execute the listed columns in every board project that enables the column and leaves its orchestrator at none. operator: sessions act as the operator of every board project that lists no operator of its own;
|
|
744
|
+
role: z.enum(["orchestrator", "operator"]).describe("orchestrator: sessions execute the listed columns in every board project that enables the column and leaves its orchestrator at none. operator: sessions act as the operator of every board project that lists no operator of its own; a project's own operator acts only in its project. At most one operator."),
|
|
752
745
|
columns: z.array(columnId.describe("A built-in column this orchestrator executes.")).optional().describe("Required for role orchestrator, not allowed for operator. The columns it executes board-wide. A project column whose orchestrator is set to anything but none keeps it, and a disabled column is never filled; it must fill at least one column in some board project."),
|
|
753
746
|
shortName: spurProject.shape.shortName.describe("The name the operator types as @<shortName> at the start of a new message in the orchestrators channel to start a conversation with this Spur project's live session. Unique across the board, top-level and projects[].spurProjects alike."),
|
|
754
747
|
displayName: spurProject.shape.displayName.describe("The name Slack messages this Spur project's sessions write are posted under. Defaults to the Spur project name."),
|
|
@@ -1127,14 +1120,12 @@ function defaultAddressee(config) {
|
|
|
1127
1120
|
}
|
|
1128
1121
|
/**
|
|
1129
1122
|
* The effective column orchestrators and operators of `projects`, in config order, and the
|
|
1130
|
-
* default Slack addressee. Columns that are disabled or left at none have no row
|
|
1131
|
-
*
|
|
1132
|
-
* act on every board project then (`isOperator`).
|
|
1123
|
+
* default Slack addressee. Columns that are disabled or left at none have no row; a project
|
|
1124
|
+
* operator acts only in the project that lists it (`isOperator`).
|
|
1133
1125
|
*/
|
|
1134
1126
|
function configBindings(config, projects) {
|
|
1135
1127
|
const source = (name) => boardWideSpurProject(config, name) === void 0 ? "project" : "board-wide";
|
|
1136
1128
|
const operatorsOf = (project) => project.spurProjects.filter((spur) => spur.role === "operator");
|
|
1137
|
-
const boardWideOperator = config.spurProjects.some((entry) => entry.role === "operator");
|
|
1138
1129
|
const served = config.projects.filter((project) => projects.has(project.id));
|
|
1139
1130
|
return {
|
|
1140
1131
|
columns: served.flatMap((project) => project.columns.filter((column) => column.enabled && column.orchestrator !== "none").map((column) => ({
|
|
@@ -1143,20 +1134,11 @@ function configBindings(config, projects) {
|
|
|
1143
1134
|
orchestrator: column.orchestrator,
|
|
1144
1135
|
source: source(column.orchestrator)
|
|
1145
1136
|
}))),
|
|
1146
|
-
operators: served.flatMap((project) => {
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
}));
|
|
1152
|
-
if (boardWideOperator) return own;
|
|
1153
|
-
const others = config.projects.filter((other) => other.id !== project.id).flatMap(operatorsOf).map((spur) => ({
|
|
1154
|
-
project: project.id,
|
|
1155
|
-
operator: spur.name,
|
|
1156
|
-
source: "other-project"
|
|
1157
|
-
}));
|
|
1158
|
-
return [...own, ...others];
|
|
1159
|
-
}),
|
|
1137
|
+
operators: served.flatMap((project) => operatorsOf(project).map((spur) => ({
|
|
1138
|
+
project: project.id,
|
|
1139
|
+
operator: spur.name,
|
|
1140
|
+
source: source(spur.name)
|
|
1141
|
+
}))),
|
|
1160
1142
|
defaultAddressee: defaultAddressee(config)
|
|
1161
1143
|
};
|
|
1162
1144
|
}
|
|
@@ -3422,7 +3404,7 @@ const configViewSchema = z.strictObject({
|
|
|
3422
3404
|
"orchestrator",
|
|
3423
3405
|
"curator",
|
|
3424
3406
|
"operator"
|
|
3425
|
-
]).describe("Configured executor; worker falls back to operator without a live worker."),
|
|
3407
|
+
]).describe("Configured executor; worker falls back to operator without a live worker, except in Done, which then opens no turn; unbound Review, Product Review, QA and Ready to Merge read operator."),
|
|
3426
3408
|
name: z.string().nullable().describe("Named Spur project, or null for automatic routing.")
|
|
3427
3409
|
}).describe("Effective column executor."),
|
|
3428
3410
|
group: z.enum(COLUMN_GROUPS).optional().describe("Column group; present only on Todo-group columns."),
|
|
@@ -3510,7 +3492,7 @@ const columnsDescribeOutputSchema = z.strictObject({ projects: z.array(z.strictO
|
|
|
3510
3492
|
text: z.string().describe("Turn ownership, fallback and project-selected session scope.")
|
|
3511
3493
|
}).describe("Effective executor; Todo does not open turns, Done may open an agent wrap-up turn."),
|
|
3512
3494
|
escalation: z.strictObject({
|
|
3513
|
-
chain: z.array(destination).describe("Question escalation starting at the executor; self-role steps are skipped using runtime routing."),
|
|
3495
|
+
chain: z.array(destination).describe("Question escalation starting at the first recipient: the executor, or the task's live worker in a column with no executor bound; self-role steps are skipped using runtime routing."),
|
|
3514
3496
|
noRecipient: z.strictObject({
|
|
3515
3497
|
operatorItemAfterMs: z.int().min(1).describe("Effective noRecipientAfterMs before one operator item per project/column for untaken named-orchestrator turns without a recipient; a positive duration, not a zero-disabled policy."),
|
|
3516
3498
|
text: z.string().describe("Wait origin, recipient eligibility, source readiness, item clearing and no-reroute qualifications.")
|
|
@@ -3572,7 +3554,7 @@ const statusBindingsSchema = z.strictObject({
|
|
|
3572
3554
|
operators: z.array(z.strictObject({
|
|
3573
3555
|
project: z.string().min(1).describe("Board project."),
|
|
3574
3556
|
operator: z.string().min(1).describe("Spur project acting as operator there."),
|
|
3575
|
-
source: z.enum(OPERATOR_BINDING_SOURCES).describe("project: its own spurProjects; board-wide: top-level spurProjects
|
|
3557
|
+
source: z.enum(OPERATOR_BINDING_SOURCES).describe("project: its own spurProjects; board-wide: top-level spurProjects.")
|
|
3576
3558
|
}).describe("One operator binding.")).describe("Operator Spur projects of each requested project."),
|
|
3577
3559
|
defaultAddressee: z.strictObject({
|
|
3578
3560
|
spurProject: z.string().min(1).describe("Spur project the message goes to."),
|
|
@@ -4429,7 +4411,7 @@ const OPERATIONS = [
|
|
|
4429
4411
|
id: "inbox.operator",
|
|
4430
4412
|
web: true,
|
|
4431
4413
|
kind: "query",
|
|
4432
|
-
description: "List what waits for the operator and what was handled in the last 24 hours; a project's own operator session sees only its operator projects, and _board entries
|
|
4414
|
+
description: "List what waits for the operator and what was handled in the last 24 hours; a project's own operator session sees only its operator projects, and _board entries go to the operator token, the board-wide operator, or the operator of a one-project board without a board-wide operator.",
|
|
4433
4415
|
mcp: {
|
|
4434
4416
|
whenToUse: "As the operator, review every open operator item, block and turn across projects in one list.",
|
|
4435
4417
|
whenNotToUse: "Use inbox_get for the comments, blocks and turns addressed to an agent."
|
|
@@ -4499,8 +4481,8 @@ const OPERATIONS = [
|
|
|
4499
4481
|
kind: "mutation",
|
|
4500
4482
|
description: "Mark comments, agent-addressed blocks, turns or doorbell rings as read; acking a turn makes the caller its taker.",
|
|
4501
4483
|
mcp: {
|
|
4502
|
-
whenToUse: "Mark handled inbox items or a ring ID like N18-1 read; an item handled before comes back under alreadyHandled. The operator acks a turn ID to take over an open orchestrator turn, taken or not.",
|
|
4503
|
-
whenNotToUse: "Use inbox_get to inspect them first."
|
|
4484
|
+
whenToUse: "Mark handled inbox items or a ring ID like N18-1 read; an item handled before comes back under alreadyHandled. The operator acks a turn ID to take a turn addressed to the operator, or to take over an open orchestrator turn, taken or not.",
|
|
4485
|
+
whenNotToUse: "Use inbox_get to inspect them first; the operator finds the turns addressed to it with inbox_operator."
|
|
4504
4486
|
},
|
|
4505
4487
|
input: inboxAckInputSchema,
|
|
4506
4488
|
output: inboxAckOutputSchema,
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { At as resolveWebOrigin, D as sortSkillFiles, It as SLACK_BOT_SCOPES, T as skillReloadFileSchema, Tt as configSchema, a as requestHashOf, f as roleCanUseOperation, it as actorIdSchema, kt as requiredSecretKeys, lt as ERRORS, mt as successEnvelopeSchema, p as OPERATIONS, r as remoteDoctorReportSchema, u as SYSTEMD_SERVICE_SETTINGS, yt as DEFAULT_STAND_PORT_RANGE } from "./chunk-
|
|
1
|
+
import { At as resolveWebOrigin, D as sortSkillFiles, It as SLACK_BOT_SCOPES, T as skillReloadFileSchema, Tt as configSchema, a as requestHashOf, f as roleCanUseOperation, it as actorIdSchema, kt as requiredSecretKeys, lt as ERRORS, mt as successEnvelopeSchema, p as OPERATIONS, r as remoteDoctorReportSchema, u as SYSTEMD_SERVICE_SETTINGS, yt as DEFAULT_STAND_PORT_RANGE } from "./chunk-CVVzwHUN.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-
|
|
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-BbRoZyZW.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-7gaKVc6L.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-
|
|
1
|
+
export { t as fetchCatalogVersion, n as fetchTokenStatus, r as requestOperation, i as requestSkillReload, a as requestTokenEnrollment } from "./chunk-BbRoZyZW.mjs";
|