spur-board 0.89.0 → 0.91.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 { Q as ERRORS, c as tokenRequestStatusSchema, et as errorContextSchema, g as renderJsonError, o as tokenRequestResultSchema, rt as successEnvelopeSchema, tt as errorEnvelopeSchema } from "./chunk-B-1Dlzi3.mjs";
1
+ import { Q as ERRORS, c as tokenRequestStatusSchema, et as errorContextSchema, g as renderJsonError, o as tokenRequestResultSchema, rt as successEnvelopeSchema, tt as errorEnvelopeSchema } from "./chunk-Dv4UEUH2.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { z } from "zod";
4
4
  import { request } from "node:http";
@@ -2811,6 +2811,54 @@ const schemaGetOutputSchema = z.strictObject({
2811
2811
  outputSchema: jsonSchemaPayload("output")
2812
2812
  }).describe("One operation.")).describe("Operations the caller may use.")
2813
2813
  }).describe("The operation catalog.");
2814
+ // ../contracts/src/ops/config-view-schema.ts
2815
+ const configViewSchema = z.strictObject({
2816
+ projects: z.array(z.strictObject({
2817
+ id: z.string().min(1).describe("Board project ID."),
2818
+ columns: z.array(z.strictObject({
2819
+ id: z.enum(COLUMN_IDS).describe("Enabled column in canonical order."),
2820
+ executor: z.strictObject({
2821
+ kind: z.enum([
2822
+ "dispatcher",
2823
+ "worker",
2824
+ "orchestrator",
2825
+ "curator",
2826
+ "operator"
2827
+ ]).describe("Configured executor; worker falls back to operator without a live worker."),
2828
+ name: z.string().nullable().describe("Named Spur project, or null for automatic routing.")
2829
+ }).describe("Effective column executor.")
2830
+ })).describe("Enabled board columns."),
2831
+ dispatcher: z.strictObject({ mode: z.enum(DISPATCHER_MODES).describe("Effective dispatcher mode.") }).describe("Dispatcher configuration."),
2832
+ spurProjects: z.array(z.strictObject({
2833
+ name: z.string().min(1).describe("Spur project name."),
2834
+ role: configSchema.shape.projects.element.shape.spurProjects.unwrap().element.shape.role,
2835
+ displayName: z.string().min(1).describe("Configured display name, falling back to project name.")
2836
+ })).describe("Effective Spur project bindings.")
2837
+ })).describe("Effective projects visible to this caller."),
2838
+ web: z.strictObject({
2839
+ publicOrigin: z.url({ protocol: /^https?$/ }).nullable().describe("Origin the board web listener answers on; null when the listener is off or not bound yet."),
2840
+ spurUiOrigin: z.url({ protocol: /^https?$/ }).nullable().describe("Origin of the Spur web UI clients link sessions to; null when not configured.")
2841
+ }).describe("Web origins of the board listener and the Spur UI.")
2842
+ }).describe("Allowlisted effective configuration without credentials or adapter settings.");
2843
+ // ../contracts/src/ops/inbox-schemas.ts
2844
+ /** One entry of the operator inbox: an operator item, a block addressed to the operator or a turn. */
2845
+ const inboxEntrySchema = z.strictObject({
2846
+ id: z.union([
2847
+ itemIdSchema,
2848
+ blockIdSchema,
2849
+ turnIdSchema
2850
+ ]).describe("Item (I), block (B) or turn (T) ID; stable while the entry exists."),
2851
+ project: z.string().min(1).describe("Board project the entry belongs to; _board for a board-wide one."),
2852
+ kind: z.enum(INBOX_KINDS).describe("block for a block addressed to the operator, turn for a turn, else the item kind."),
2853
+ severity: z.enum(INBOX_SEVERITIES).describe("failure: something broke and the text says what to check; attention: a decision or answer is wanted."),
2854
+ text: z.string().describe("What needs the operator, in one line."),
2855
+ at: z.iso.datetime().describe("When the entry was raised or opened, ISO 8601 UTC."),
2856
+ task: taskKeySchema.nullable().describe("Task the entry is about; null when it has none."),
2857
+ column: z.enum(COLUMN_IDS).optional().describe("Column of a turn; absent on other entries."),
2858
+ answeredVia: z.enum(VIAS).nullable().optional().describe("On a block: web or slack when the closing write arrived that way, else null; absent on other entries.")
2859
+ }).describe("One entry of the operator inbox.");
2860
+ /** An operator inbox entry cleared, answered or closed in the last 24 hours. */
2861
+ const inboxHandledSchema = inboxEntrySchema.extend({ handledAt: z.iso.datetime().describe("When it was cleared, answered or closed, ISO 8601 UTC.") }).describe("An operator inbox entry handled in the last 24 hours.");
2814
2862
  // ../contracts/src/ops/source-view-schema.ts
2815
2863
  const sourceViewSchema = z.strictObject({
2816
2864
  pointsLastHour: z.int().nonnegative().optional().describe("Reported source points consumed during the preceding hour."),
@@ -2930,54 +2978,12 @@ const blockAnswerOutputSchema = z.strictObject({
2930
2978
  block: blockViewSchema,
2931
2979
  comment: commentSchema
2932
2980
  });
2933
- // ../contracts/src/ops/config-view-schema.ts
2934
- const configViewSchema = z.strictObject({
2935
- projects: z.array(z.strictObject({
2936
- id: z.string().min(1).describe("Board project ID."),
2937
- columns: z.array(z.strictObject({
2938
- id: z.enum(COLUMN_IDS).describe("Enabled column in canonical order."),
2939
- executor: z.strictObject({
2940
- kind: z.enum([
2941
- "dispatcher",
2942
- "worker",
2943
- "orchestrator",
2944
- "curator",
2945
- "operator"
2946
- ]).describe("Configured executor; worker falls back to operator without a live worker."),
2947
- name: z.string().nullable().describe("Named Spur project, or null for automatic routing.")
2948
- }).describe("Effective column executor.")
2949
- })).describe("Enabled board columns."),
2950
- dispatcher: z.strictObject({ mode: z.enum(DISPATCHER_MODES).describe("Effective dispatcher mode.") }).describe("Dispatcher configuration."),
2951
- spurProjects: z.array(z.strictObject({
2952
- name: z.string().min(1).describe("Spur project name."),
2953
- role: configSchema.shape.projects.element.shape.spurProjects.unwrap().element.shape.role,
2954
- displayName: z.string().min(1).describe("Configured display name, falling back to project name.")
2955
- })).describe("Effective Spur project bindings.")
2956
- })).describe("Effective projects visible to this caller."),
2957
- web: z.strictObject({
2958
- publicOrigin: z.url({ protocol: /^https?$/ }).nullable().describe("Origin the board web listener answers on; null when the listener is off or not bound yet."),
2959
- spurUiOrigin: z.url({ protocol: /^https?$/ }).nullable().describe("Origin of the Spur web UI clients link sessions to; null when not configured.")
2960
- }).describe("Web origins of the board listener and the Spur UI.")
2961
- }).describe("Allowlisted effective configuration without credentials or adapter settings.");
2962
- // ../contracts/src/ops/inbox-schemas.ts
2963
- /** One entry of the operator inbox: an operator item, a block addressed to the operator or a turn. */
2964
- const inboxEntrySchema = z.strictObject({
2965
- id: z.union([
2966
- itemIdSchema,
2967
- blockIdSchema,
2968
- turnIdSchema
2969
- ]).describe("Item (I), block (B) or turn (T) ID; stable while the entry exists."),
2970
- project: z.string().min(1).describe("Board project the entry belongs to; _board for a board-wide one."),
2971
- kind: z.enum(INBOX_KINDS).describe("block for a block addressed to the operator, turn for a turn, else the item kind."),
2972
- severity: z.enum(INBOX_SEVERITIES).describe("failure: something broke and the text says what to check; attention: a decision or answer is wanted."),
2973
- text: z.string().describe("What needs the operator, in one line."),
2974
- at: z.iso.datetime().describe("When the entry was raised or opened, ISO 8601 UTC."),
2975
- task: taskKeySchema.nullable().describe("Task the entry is about; null when it has none."),
2976
- column: z.enum(COLUMN_IDS).optional().describe("Column of a turn; absent on other entries."),
2977
- answeredVia: z.enum(VIAS).nullable().optional().describe("On a block: web or slack when the closing write arrived that way, else null; absent on other entries.")
2978
- }).describe("One entry of the operator inbox.");
2979
- /** An operator inbox entry cleared, answered or closed in the last 24 hours. */
2980
- const inboxHandledSchema = inboxEntrySchema.extend({ handledAt: z.iso.datetime().describe("When it was cleared, answered or closed, ISO 8601 UTC.") }).describe("An operator inbox entry handled in the last 24 hours.");
2981
+ const configGetInputSchema = z.strictObject({ project: project$1 });
2982
+ const inboxOperatorInputSchema = z.strictObject({});
2983
+ const inboxOperatorOutputSchema = z.strictObject({
2984
+ items: z.array(inboxEntrySchema).describe("Open operator items, blocks addressed to the operator and operator turns, newest first; a block or turn is listed once, not with its items."),
2985
+ handled: z.array(inboxHandledSchema).describe("At most 20 entries handled in the last 24 hours, newest first.")
2986
+ });
2981
2987
  // ../contracts/src/ops/catalog.ts
2982
2988
  /** Longest free text an input takes: comments, questions, answers and reasons. */
2983
2989
  const TEXT_MAX = 2e4;
@@ -3658,11 +3664,8 @@ const OPERATIONS = [
3658
3664
  whenToUse: "As the operator, review every open operator item, block and turn across projects in one list.",
3659
3665
  whenNotToUse: "Use inbox_get for the comments, blocks and turns addressed to an agent."
3660
3666
  },
3661
- input: z.strictObject({}),
3662
- output: z.strictObject({
3663
- items: z.array(inboxEntrySchema).describe("Open operator items, blocks addressed to the operator and operator turns, newest first; a block or turn is listed once, not with its items."),
3664
- handled: z.array(inboxHandledSchema).describe("At most 20 entries handled in the last 24 hours, newest first.")
3665
- }),
3667
+ input: inboxOperatorInputSchema,
3668
+ output: inboxOperatorOutputSchema,
3666
3669
  grants: operatorOnly,
3667
3670
  errors: [],
3668
3671
  cli: {
@@ -4705,7 +4708,7 @@ const OPERATIONS = [
4705
4708
  whenToUse: "Read configuration before rendering the Board overview.",
4706
4709
  whenNotToUse: "Use status_get for task state and freshness."
4707
4710
  },
4708
- input: z.strictObject({ project }),
4711
+ input: configGetInputSchema,
4709
4712
  output: configViewSchema,
4710
4713
  grants: operatorOrProjectAgent,
4711
4714
  errors: ["not_found"],
@@ -1,5 +1,5 @@
1
- import { d as buildCatalogSnapshot, ft as configSchema, mt as plainHttpAllowed, p as OPERATIONS } from "./chunk-B-1Dlzi3.mjs";
2
- import { o as CliError, t as fetchCatalogVersion } from "./chunk-BJFUtQhn.mjs";
1
+ import { d as buildCatalogSnapshot, ft as configSchema, mt as plainHttpAllowed, p as OPERATIONS } from "./chunk-Dv4UEUH2.mjs";
2
+ import { o as CliError, t as fetchCatalogVersion } from "./chunk-B5drjPvt.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 { Q as ERRORS, a as requestHashOf, bt as SLACK_BOT_SCOPES, ct as DEFAULT_STAND_PORT_RANGE, f as roleCanUseOperation, ft as configSchema, gt as resolveWebOrigin, ht as requiredSecretKeys, p as OPERATIONS, q as actorIdSchema, r as remoteDoctorReportSchema, rt as successEnvelopeSchema, u as SYSTEMD_SERVICE_SETTINGS } from "./chunk-B-1Dlzi3.mjs";
1
+ import { Q as ERRORS, a as requestHashOf, bt as SLACK_BOT_SCOPES, ct as DEFAULT_STAND_PORT_RANGE, f as roleCanUseOperation, ft as configSchema, gt as resolveWebOrigin, ht as requiredSecretKeys, p as OPERATIONS, q as actorIdSchema, r as remoteDoctorReportSchema, rt as successEnvelopeSchema, u as SYSTEMD_SERVICE_SETTINGS } from "./chunk-Dv4UEUH2.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-BJFUtQhn.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-Bzr8W83d.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-B5drjPvt.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-cTEF2G5a.mjs";
5
5
  import { createHash, randomBytes, randomUUID } from "node:crypto";
6
6
  import { accessSync, chmodSync, closeSync, constants, cpSync, existsSync, ftruncateSync, lstatSync, mkdirSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
7
7
  import { homedir, hostname, 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-BJFUtQhn.mjs";
1
+ export { t as fetchCatalogVersion, n as fetchTokenStatus, r as requestOperation, i as requestSkillReload, a as requestTokenEnrollment } from "./chunk-B5drjPvt.mjs";
package/dist/daemon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as err, A as prSourceId, B as prFactsSchema, C as userIdSchema, D as AdapterError, E as eventPayloadSchemas, F as REVIEW_STATES, G as JIRA_PROJECT_KEY, H as ringMarker, I as SESSION_HEALTH_STATES, J as encodeActorId, K as REF_NUMBER, L as SESSION_STATUSES, M as sourceCursorSchema, N as trackerSourceId, O as batchSchema, P as PR_STATES, Q as ERRORS, R as isExternalAuthor, S as messageRefSchema, St as VIAS, T as GATE_REASONS, U as sessionFactsSchema, V as prRefSchema, W as ticketFactsSchema, X as parseActorId, Y as errorCodeOf, Z as parseRef$1, _t as COLUMN_IDS, a as requestHashOf, at as DEFAULT_LINK, b as inboundEventSchema, bt as SLACK_BOT_SCOPES, c as tokenRequestStatusSchema, d as buildCatalogSnapshot, dt as configBindings, f as roleCanUseOperation, ft as configSchema, gt as resolveWebOrigin, h as renderHttpProblem, ht as requiredSecretKeys, i as TOKEN_REQUEST_LIMITS, j as sessionTransitionSchema, k as entityRefSchema, l as BOARD_TICK_MS, lt as RESERVED_PROJECT, m as turnHandedSchema, mt as plainHttpAllowed, n as doctorReportSchema, nt as ok, o as tokenRequestResultSchema, p as OPERATIONS, pt as defaultAddressee, q as actorIdSchema, rt as successEnvelopeSchema, s as tokenRequestSchema, st as DEFAULT_SLACK_COMMAND, t as assertNever, ut as boardWideSpurProject, v as SPACE_IDS, vt as DISPATCHER_MODES, w as EVENT_KINDS, x as interactionRefSchema, xt as TASK_HOLDS, y as conversationRefSchema, yt as ITEM_KINDS, z as parseRingMarker } from "./chunk-B-1Dlzi3.mjs";
1
+ import { $ as err, A as prSourceId, B as prFactsSchema, C as userIdSchema, D as AdapterError, E as eventPayloadSchemas, F as REVIEW_STATES, G as JIRA_PROJECT_KEY, H as ringMarker, I as SESSION_HEALTH_STATES, J as encodeActorId, K as REF_NUMBER, L as SESSION_STATUSES, M as sourceCursorSchema, N as trackerSourceId, O as batchSchema, P as PR_STATES, Q as ERRORS, R as isExternalAuthor, S as messageRefSchema, St as VIAS, T as GATE_REASONS, U as sessionFactsSchema, V as prRefSchema, W as ticketFactsSchema, X as parseActorId, Y as errorCodeOf, Z as parseRef$1, _t as COLUMN_IDS, a as requestHashOf, at as DEFAULT_LINK, b as inboundEventSchema, bt as SLACK_BOT_SCOPES, c as tokenRequestStatusSchema, d as buildCatalogSnapshot, dt as configBindings, f as roleCanUseOperation, ft as configSchema, gt as resolveWebOrigin, h as renderHttpProblem, ht as requiredSecretKeys, i as TOKEN_REQUEST_LIMITS, j as sessionTransitionSchema, k as entityRefSchema, l as BOARD_TICK_MS, lt as RESERVED_PROJECT, m as turnHandedSchema, mt as plainHttpAllowed, n as doctorReportSchema, nt as ok, o as tokenRequestResultSchema, p as OPERATIONS, pt as defaultAddressee, q as actorIdSchema, rt as successEnvelopeSchema, s as tokenRequestSchema, st as DEFAULT_SLACK_COMMAND, t as assertNever, ut as boardWideSpurProject, v as SPACE_IDS, vt as DISPATCHER_MODES, w as EVENT_KINDS, x as interactionRefSchema, xt as TASK_HOLDS, y as conversationRefSchema, yt as ITEM_KINDS, z as parseRingMarker } from "./chunk-Dv4UEUH2.mjs";
2
2
  import { t as apiBaseUrl } from "./chunk-Bzb7aI8R.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { createHash, randomUUID } from "node:crypto";
package/dist/mcp.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { Q as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-B-1Dlzi3.mjs";
2
- import { o as CliError, r as requestOperation } from "./chunk-BJFUtQhn.mjs";
3
- import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-Bzr8W83d.mjs";
1
+ import { Q as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-Dv4UEUH2.mjs";
2
+ import { o as CliError, r as requestOperation } from "./chunk-B5drjPvt.mjs";
3
+ import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-cTEF2G5a.mjs";
4
4
  import { randomUUID } from "node:crypto";
5
5
  import { readFileSync } from "node:fs";
6
6
  import { z } from "zod";