spur-board 0.77.0 → 0.79.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/OFL.txt ADDED
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -2080,7 +2080,9 @@ const eventPayloadSchemas = {
2080
2080
  turn: S.optional(),
2081
2081
  block: S.optional(),
2082
2082
  reason: z.enum(MOVE_REASONS).optional(),
2083
- gate: z.array(z.enum(GATE_REASONS)).optional()
2083
+ gate: z.array(z.enum(GATE_REASONS)).optional(),
2084
+ /** Number of review findings a return sent, when the returner gave it. */
2085
+ findings: z.int().min(0).optional()
2084
2086
  }),
2085
2087
  task_shadow_moved: z.looseObject({
2086
2088
  from: z.enum(COLUMN_IDS),
@@ -2235,7 +2237,7 @@ const dedupeKey = z.string().min(1);
2235
2237
  /** UTC ISO 8601 timestamp. */
2236
2238
  const at$1 = z.iso.datetime();
2237
2239
  /** Plain text; the gateway converts platform markup before it reaches core. */
2238
- const text$1 = z.string();
2240
+ const text$2 = z.string();
2239
2241
  /** Deep link to the source message, or to the source space for a command. */
2240
2242
  const sourceUrl = z.url();
2241
2243
  /** Configured board space for an interaction, or null when it came from outside. */
@@ -2253,7 +2255,7 @@ const messageEventSchema = z.strictObject({
2253
2255
  rootMessage: messageRefSchema,
2254
2256
  sourceUrl,
2255
2257
  author: userIdSchema,
2256
- text: text$1,
2258
+ text: text$2,
2257
2259
  at: at$1,
2258
2260
  sourceSpace: firstMessageSpace,
2259
2261
  originKey: z.string().min(1).optional()
@@ -2267,7 +2269,7 @@ const messageEditedEventSchema = z.strictObject({
2267
2269
  rootMessage: messageRefSchema,
2268
2270
  sourceUrl,
2269
2271
  author: userIdSchema,
2270
- text: text$1,
2272
+ text: text$2,
2271
2273
  at: at$1,
2272
2274
  originKey: z.string().min(1).optional()
2273
2275
  });
@@ -2300,7 +2302,7 @@ const commandEventSchema = z.strictObject({
2300
2302
  dedupeKey,
2301
2303
  interaction: interactionRefSchema,
2302
2304
  author: userIdSchema,
2303
- text: text$1,
2305
+ text: text$2,
2304
2306
  command: z.discriminatedUnion("kind", [z.strictObject({
2305
2307
  kind: z.literal("query"),
2306
2308
  id: z.enum([
@@ -2325,7 +2327,7 @@ const mentionEventSchema = z.strictObject({
2325
2327
  rootMessage: messageRefSchema,
2326
2328
  sourceUrl,
2327
2329
  author: userIdSchema,
2328
- text: text$1,
2330
+ text: text$2,
2329
2331
  at: at$1,
2330
2332
  sourceSpace: firstMessageSpace,
2331
2333
  originKey: z.string().min(1).optional()
@@ -2575,6 +2577,22 @@ const taskTurnSchema = turnViewSchema.pick({
2575
2577
  at: z.iso.datetime().describe("When the turn closed, ISO 8601 UTC."),
2576
2578
  outcome: z.enum(TURN_OUTCOMES).describe("How the turn closed; turns closed by a return or a mode switch before those were recorded read moved.")
2577
2579
  }).nullable().describe("How and when the turn closed; null while it is open.") }).describe("A task's turn: the executor of a column is asked to act on it.");
2580
+ const omittedTurnDetail = "Always omitted by status.get, even with detail=true; use task.get --why or inbox.get for details.";
2581
+ /** A turn as a `status.get` row shows it: no feedback, return context or threads. */
2582
+ const statusTurnSchema = turnViewSchema.omit({ handed: true }).extend({
2583
+ returned: turnViewSchema.shape.returned.describe(omittedTurnDetail),
2584
+ threads: turnViewSchema.shape.threads.describe(omittedTurnDetail),
2585
+ addressedTo: z.string().nullable().describe("Newest assigned recipient session of an untaken turn; null when taken or unassigned."),
2586
+ stalledSince: z.iso.datetime().nullable().describe("When the executor stall on this turn began, ISO 8601 UTC, while its stall block is open; null otherwise.")
2587
+ }).describe("Unclosed turn without feedback, return context or thread details.");
2588
+ /** The return a `status.get` task row shows while the task stays in Dev after it. */
2589
+ const statusReturnedSchema = z.strictObject({
2590
+ from: z.enum(COLUMN_IDS).describe("Column the task was returned from."),
2591
+ at: z.iso.datetime().describe("When the task was returned, ISO 8601 UTC."),
2592
+ by: actorIdSchema.describe("Who returned the task to Dev."),
2593
+ block: blockIdSchema.describe("The code block the return opened."),
2594
+ findings: z.int().min(0).nullable().describe("Number of review findings the return sent; null when not given.")
2595
+ });
2578
2596
  //#endregion
2579
2597
  //#region ../contracts/src/ops/schemas.ts
2580
2598
  /**
@@ -2695,12 +2713,6 @@ const linkViewSchema = z.strictObject({
2695
2713
  }).describe("An effective link to a task.");
2696
2714
  const detailOnly = "Present only with detail.";
2697
2715
  const count = (what) => z.int().min(0).describe(what);
2698
- const omittedTurnDetail = "Always omitted by status.get, even with detail=true; use task.get --why or inbox.get for details.";
2699
- const statusTurnSchema = turnViewSchema.omit({ handed: true }).extend({
2700
- returned: turnViewSchema.shape.returned.describe(omittedTurnDetail),
2701
- threads: turnViewSchema.shape.threads.describe(omittedTurnDetail),
2702
- addressedTo: z.string().nullable().describe("Newest assigned recipient session of an untaken turn; null when taken or unassigned.")
2703
- }).describe("Unclosed turn without feedback, return context or thread details.");
2704
2716
  const prSummarySchema = z.strictObject({
2705
2717
  repo: prFactsSchema.shape.repo,
2706
2718
  number: prFactsSchema.shape.number,
@@ -2729,6 +2741,12 @@ const statusTaskSchema = taskViewSchema.extend({
2729
2741
  prCount: count("Number of effective pull request links."),
2730
2742
  sessionCount: count("Number of effective session links."),
2731
2743
  openBlocks: count("Number of open blocks on the task."),
2744
+ blocks: z.array(z.strictObject({
2745
+ id: blockIdSchema,
2746
+ addressee: blockViewSchema.shape.addressee,
2747
+ session: z.string().min(1).nullable().describe("Session the newest block notification for the addressee went to; null for the operator or before assignment.")
2748
+ }).describe("One open block.")).describe("Open blocks on the task, oldest first, without their text."),
2749
+ returned: statusReturnedSchema.optional().describe("The return that put the task in Dev. Present only while the task stays in Dev after the return and before its next submit."),
2732
2750
  ticket: ticketFactsSchema.nullable().optional().describe(`Latest ticket facts, or null before observation. ${detailOnly}`),
2733
2751
  prs: z.array(prFactsSchema).optional().describe(`Latest facts for linked pull requests. ${detailOnly}`),
2734
2752
  sessions: z.array(statusSessionFactsSchema).optional().describe(`Latest facts for linked sessions. ${detailOnly}`),
@@ -2825,30 +2843,110 @@ const sourceViewSchema = z.strictObject({
2825
2843
  stale: z.boolean().describe("Whether facts from this source exceed their freshness threshold."),
2826
2844
  warmingUp: z.boolean().describe("Whether this source needs a complete poll in this daemon run.")
2827
2845
  }).describe("Freshness and availability of one source.");
2846
+ errorDetailSchema.extend({
2847
+ type: z.url(),
2848
+ title: z.string(),
2849
+ status: z.int().min(400).max(599)
2850
+ });
2851
+ const TEXT_MAX$1 = 2e4;
2852
+ const text$1 = (what, max) => z.string().min(1).max(max).describe(what);
2853
+ const project$1 = z.string().min(1).max(256).optional().describe("Project to limit the answer to; absent means every project the caller may see.");
2854
+ /** The effective column orchestrators and operators of the requested projects (`configBindings`). */
2855
+ const statusBindingsSchema = z.strictObject({
2856
+ columns: z.array(z.strictObject({
2857
+ project: z.string().min(1).describe("Board project."),
2858
+ column: z.enum(COLUMN_IDS).describe("Enabled column with an orchestrator."),
2859
+ orchestrator: z.string().min(1).describe("Spur project, or operator, that takes the column turns."),
2860
+ source: z.enum(COLUMN_BINDING_SOURCES).describe("project: set in projects[].columns; board-wide: filled from top-level spurProjects.")
2861
+ }).describe("One column binding.")).describe("Column orchestrators of each requested project; columns left at none are absent."),
2862
+ operators: z.array(z.strictObject({
2863
+ project: z.string().min(1).describe("Board project."),
2864
+ operator: z.string().min(1).describe("Spur project acting as operator there."),
2865
+ source: z.enum(OPERATOR_BINDING_SOURCES).describe("project: its own spurProjects; board-wide: top-level spurProjects; other-project: another project's operator, without a board-wide one.")
2866
+ }).describe("One operator binding.")).describe("Operator Spur projects of each requested project."),
2867
+ defaultAddressee: z.strictObject({
2868
+ spurProject: z.string().min(1).describe("Spur project the message goes to."),
2869
+ source: z.enum(ADDRESSEE_SOURCES).describe("config: slack.defaultAddressee; board-wide: the board-wide operator; project: the operator of the first board project, in config order, that lists one.")
2870
+ }).nullable().describe("Who an orchestrators-channel message without a known @shortName goes to; null when it is left unhandled or answered with the prefixes.")
2871
+ }).describe("Effective column orchestrators, operators and default Slack addressee.");
2872
+ const statusInputSchema = z.strictObject({
2873
+ project: project$1,
2874
+ detail: z.boolean().optional().describe("Include full ticket, pull request and session facts; absent means compact rows.")
2875
+ });
2876
+ const statusOutputSchema = z.strictObject({
2877
+ items: z.array(statusItemSchema).describe("Actionable items in priority order."),
2878
+ warmingUp: z.boolean().describe("Whether required sources still need a complete poll."),
2879
+ spurUnavailable: z.string().nullable().describe("One combined Spur availability line, or null when available."),
2880
+ hostLoad: z.string().nullable().describe("Host-load episode line, or null when absent."),
2881
+ transport: z.array(z.strictObject({
2882
+ gateway: z.string().min(1).describe("Chat gateway kind."),
2883
+ state: z.enum(["up", "down"]).describe("down while delivery to any space of the gateway is suspended."),
2884
+ since: z.iso.datetime().nullable().describe("When the earliest outage started, ISO 8601 UTC, or null when up."),
2885
+ reason: z.string().nullable().describe("Reason of the earliest outage, or null when up."),
2886
+ spaces: z.array(z.enum(SPACE_IDS)).describe("Spaces whose delivery is suspended.")
2887
+ }).describe("Transport health of one gateway.")).describe("Transport health of each chat gateway."),
2888
+ sources: z.array(sourceViewSchema).describe("Freshness and availability of each source."),
2889
+ tasks: z.array(statusTaskSchema).describe("Tasks with state, turn, PR summary arrays and navigation; full facts with detail."),
2890
+ projectBlocks: z.array(z.strictObject({
2891
+ project: z.string().min(1).describe("Board project."),
2892
+ openBlocks: z.int().min(0).describe("Open project-level blocks, without a task.")
2893
+ }).describe("Open project-level blocks of one project.")).describe("Open project-level blocks of each requested project."),
2894
+ unlinkedPrs: z.array(statusUnlinkedPrSchema).describe("Observed pull requests without a task link; merged or closed ones with no change for over 7 days are left out."),
2895
+ unlinkedSessions: z.array(statusUnlinkedSessionSchema).describe("Observed sessions without a task link; ones ended, or gone from Spur's session list, for over 7 days are left out."),
2896
+ hiddenUnlinkedPrs: z.int().min(0).describe("Unlinked pull requests not listed: merged or closed, with no change for over 7 days. Counted within the requested projects; detail does not list them."),
2897
+ hiddenUnlinkedSessions: z.int().min(0).describe("Unlinked sessions not listed: ended, or gone from Spur's session list, for over 7 days. Counted within the requested projects; detail does not list them."),
2898
+ bindings: statusBindingsSchema,
2899
+ daemon: z.strictObject({
2900
+ version: z.string().min(1).describe("Product version of the running daemon."),
2901
+ startedAt: z.iso.datetime().describe("When the daemon started, ISO 8601 UTC."),
2902
+ lastDispatchAt: z.iso.datetime().nullable().describe("When the last completed board tick (dispatch pass) ended, ISO 8601 UTC; null until the first tick after start.")
2903
+ }).describe("The running daemon: version, start time and last completed tick.")
2904
+ });
2905
+ const commentAddInputSchema = z.strictObject({
2906
+ task: taskKeyInputSchema,
2907
+ block: blockIdSchema.optional().describe("Block conversation to join, if any."),
2908
+ text: text$1("Comment text.", TEXT_MAX$1)
2909
+ });
2910
+ const commentAddOutputSchema = z.strictObject({ comment: commentSchema });
2911
+ const blockAnswerInputSchema = z.strictObject({
2912
+ block: blockIdSchema,
2913
+ text: text$1("The answer.", TEXT_MAX$1),
2914
+ note: z.string().min(1).max(TEXT_MAX$1).optional().describe("Your own comment on the answer, kept apart from it: stored as a second comment and shown on the curator feed line.")
2915
+ });
2916
+ const blockAnswerOutputSchema = z.strictObject({
2917
+ block: blockViewSchema,
2918
+ comment: commentSchema
2919
+ });
2828
2920
  //#endregion
2829
2921
  //#region ../contracts/src/ops/config-view-schema.ts
2830
- const configViewSchema = z.strictObject({ projects: z.array(z.strictObject({
2831
- id: z.string().min(1).describe("Board project ID."),
2832
- columns: z.array(z.strictObject({
2833
- id: z.enum(COLUMN_IDS).describe("Enabled column in canonical order."),
2834
- executor: z.strictObject({
2835
- kind: z.enum([
2836
- "dispatcher",
2837
- "worker",
2838
- "orchestrator",
2839
- "curator",
2840
- "operator"
2841
- ]).describe("Configured executor; worker falls back to operator without a live worker."),
2842
- name: z.string().nullable().describe("Named Spur project, or null for automatic routing.")
2843
- }).describe("Effective column executor.")
2844
- })).describe("Enabled board columns."),
2845
- dispatcher: z.strictObject({ mode: z.enum(DISPATCHER_MODES).describe("Effective dispatcher mode.") }).describe("Dispatcher configuration."),
2846
- spurProjects: z.array(z.strictObject({
2847
- name: z.string().min(1).describe("Spur project name."),
2848
- role: configSchema.shape.projects.element.shape.spurProjects.unwrap().element.shape.role,
2849
- displayName: z.string().min(1).describe("Configured display name, falling back to project name.")
2850
- })).describe("Effective Spur project bindings.")
2851
- })).describe("Effective projects visible to this caller.") }).describe("Allowlisted effective configuration without credentials or adapter settings.");
2922
+ const configViewSchema = z.strictObject({
2923
+ projects: z.array(z.strictObject({
2924
+ id: z.string().min(1).describe("Board project ID."),
2925
+ columns: z.array(z.strictObject({
2926
+ id: z.enum(COLUMN_IDS).describe("Enabled column in canonical order."),
2927
+ executor: z.strictObject({
2928
+ kind: z.enum([
2929
+ "dispatcher",
2930
+ "worker",
2931
+ "orchestrator",
2932
+ "curator",
2933
+ "operator"
2934
+ ]).describe("Configured executor; worker falls back to operator without a live worker."),
2935
+ name: z.string().nullable().describe("Named Spur project, or null for automatic routing.")
2936
+ }).describe("Effective column executor.")
2937
+ })).describe("Enabled board columns."),
2938
+ dispatcher: z.strictObject({ mode: z.enum(DISPATCHER_MODES).describe("Effective dispatcher mode.") }).describe("Dispatcher configuration."),
2939
+ spurProjects: z.array(z.strictObject({
2940
+ name: z.string().min(1).describe("Spur project name."),
2941
+ role: configSchema.shape.projects.element.shape.spurProjects.unwrap().element.shape.role,
2942
+ displayName: z.string().min(1).describe("Configured display name, falling back to project name.")
2943
+ })).describe("Effective Spur project bindings.")
2944
+ })).describe("Effective projects visible to this caller."),
2945
+ web: z.strictObject({
2946
+ publicOrigin: z.url({ protocol: /^https?$/ }).nullable().describe("Origin the board web listener answers on; null when the listener is off or not bound yet."),
2947
+ spurUiOrigin: z.url({ protocol: /^https?$/ }).nullable().describe("Origin of the Spur web UI clients link sessions to; null when not configured.")
2948
+ }).describe("Web origins of the board listener and the Spur UI.")
2949
+ }).describe("Allowlisted effective configuration without credentials or adapter settings.");
2852
2950
  //#endregion
2853
2951
  //#region ../contracts/src/ops/inbox-schemas.ts
2854
2952
  /** One entry of the operator inbox: an operator item, a block addressed to the operator or a turn. */
@@ -2922,6 +3020,11 @@ const linkModes = [
2922
3020
  }
2923
3021
  ];
2924
3022
  const at = "2026-01-05T09:30:00.000Z";
3023
+ const daemon = {
3024
+ version: "0.4.0",
3025
+ startedAt: "2026-01-05T08:00:00.000Z",
3026
+ lastDispatchAt: at
3027
+ };
2925
3028
  const task = {
2926
3029
  key: "PROJ-123",
2927
3030
  project: "web",
@@ -3097,24 +3200,6 @@ const reviewGates = [
3097
3200
  conditions: []
3098
3201
  }
3099
3202
  ];
3100
- /** The effective column orchestrators and operators of the requested projects (`configBindings`). */
3101
- const statusBindingsSchema = z.strictObject({
3102
- columns: z.array(z.strictObject({
3103
- project: z.string().min(1).describe("Board project."),
3104
- column: z.enum(COLUMN_IDS).describe("Enabled column with an orchestrator."),
3105
- orchestrator: z.string().min(1).describe("Spur project, or operator, that takes the column turns."),
3106
- source: z.enum(COLUMN_BINDING_SOURCES).describe("project: set in projects[].columns; board-wide: filled from top-level spurProjects.")
3107
- }).describe("One column binding.")).describe("Column orchestrators of each requested project; columns left at none are absent."),
3108
- operators: z.array(z.strictObject({
3109
- project: z.string().min(1).describe("Board project."),
3110
- operator: z.string().min(1).describe("Spur project acting as operator there."),
3111
- source: z.enum(OPERATOR_BINDING_SOURCES).describe("project: its own spurProjects; board-wide: top-level spurProjects; other-project: another project's operator, without a board-wide one.")
3112
- }).describe("One operator binding.")).describe("Operator Spur projects of each requested project."),
3113
- defaultAddressee: z.strictObject({
3114
- spurProject: z.string().min(1).describe("Spur project the message goes to."),
3115
- source: z.enum(ADDRESSEE_SOURCES).describe("config: slack.defaultAddressee; board-wide: the board-wide operator; project: the operator of the first board project, in config order, that lists one.")
3116
- }).nullable().describe("Who an orchestrators-channel message without a known @shortName goes to; null when it is left unhandled or answered with the prefixes.")
3117
- }).describe("Effective column orchestrators, operators and default Slack addressee.");
3118
3203
  const taskOutput = z.strictObject({ task: taskViewSchema });
3119
3204
  const blockOutput = z.strictObject({ block: blockViewSchema });
3120
3205
  const itemOutput = z.strictObject({ item: itemViewSchema });
@@ -3137,34 +3222,8 @@ const OPERATIONS = [
3137
3222
  whenToUse: "Get a board overview.",
3138
3223
  whenNotToUse: "Use task_get for one task."
3139
3224
  },
3140
- input: z.strictObject({
3141
- project,
3142
- detail: z.boolean().optional().describe("Include full ticket, pull request and session facts; absent means compact rows.")
3143
- }),
3144
- output: z.strictObject({
3145
- items: z.array(statusItemSchema).describe("Actionable items in priority order."),
3146
- warmingUp: z.boolean().describe("Whether required sources still need a complete poll."),
3147
- spurUnavailable: z.string().nullable().describe("One combined Spur availability line, or null when available."),
3148
- hostLoad: z.string().nullable().describe("Host-load episode line, or null when absent."),
3149
- transport: z.array(z.strictObject({
3150
- gateway: z.string().min(1).describe("Chat gateway kind."),
3151
- state: z.enum(["up", "down"]).describe("down while delivery to any space of the gateway is suspended."),
3152
- since: z.iso.datetime().nullable().describe("When the earliest outage started, ISO 8601 UTC, or null when up."),
3153
- reason: z.string().nullable().describe("Reason of the earliest outage, or null when up."),
3154
- spaces: z.array(z.enum(SPACE_IDS)).describe("Spaces whose delivery is suspended.")
3155
- }).describe("Transport health of one gateway.")).describe("Transport health of each chat gateway."),
3156
- sources: z.array(sourceViewSchema).describe("Freshness and availability of each source."),
3157
- tasks: z.array(statusTaskSchema).describe("Tasks with state, turn, PR summary arrays and navigation; full facts with detail."),
3158
- projectBlocks: z.array(z.strictObject({
3159
- project: z.string().min(1).describe("Board project."),
3160
- openBlocks: z.int().min(0).describe("Open project-level blocks, without a task.")
3161
- }).describe("Open project-level blocks of one project.")).describe("Open project-level blocks of each requested project."),
3162
- unlinkedPrs: z.array(statusUnlinkedPrSchema).describe("Observed pull requests without a task link; merged or closed ones with no change for over 7 days are left out."),
3163
- unlinkedSessions: z.array(statusUnlinkedSessionSchema).describe("Observed sessions without a task link; ones ended, or gone from Spur's session list, for over 7 days are left out."),
3164
- hiddenUnlinkedPrs: z.int().min(0).describe("Unlinked pull requests not listed: merged or closed, with no change for over 7 days. Counted within the requested projects; detail does not list them."),
3165
- hiddenUnlinkedSessions: z.int().min(0).describe("Unlinked sessions not listed: ended, or gone from Spur's session list, for over 7 days. Counted within the requested projects; detail does not list them."),
3166
- bindings: statusBindingsSchema
3167
- }),
3225
+ input: statusInputSchema,
3226
+ output: statusOutputSchema,
3168
3227
  grants: operatorOrProjectAgent,
3169
3228
  errors: ["not_found"],
3170
3229
  cli: {
@@ -3191,6 +3250,7 @@ const OPERATIONS = [
3191
3250
  prCount: 0,
3192
3251
  sessionCount: 0,
3193
3252
  openBlocks: 0,
3253
+ blocks: [],
3194
3254
  turn: null,
3195
3255
  prSummary: null,
3196
3256
  links: {
@@ -3223,7 +3283,8 @@ const OPERATIONS = [
3223
3283
  spurProject: "hq",
3224
3284
  source: "board-wide"
3225
3285
  }
3226
- }
3286
+ },
3287
+ daemon
3227
3288
  }
3228
3289
  }, {
3229
3290
  summary: "Show the board with full facts and links",
@@ -3241,6 +3302,7 @@ const OPERATIONS = [
3241
3302
  prCount: 0,
3242
3303
  sessionCount: 0,
3243
3304
  openBlocks: 0,
3305
+ blocks: [],
3244
3306
  turn: null,
3245
3307
  prSummary: null,
3246
3308
  links: {
@@ -3264,7 +3326,8 @@ const OPERATIONS = [
3264
3326
  columns: [],
3265
3327
  operators: [],
3266
3328
  defaultAddressee: null
3267
- }
3329
+ },
3330
+ daemon
3268
3331
  }
3269
3332
  }]
3270
3333
  }),
@@ -4037,12 +4100,8 @@ const OPERATIONS = [
4037
4100
  whenNotToUse: "Use comment_edit to revise your comment.",
4038
4101
  destructive: false
4039
4102
  },
4040
- input: z.strictObject({
4041
- task: taskKeyInputSchema,
4042
- block: blockIdSchema.optional().describe("Block conversation to join, if any."),
4043
- text: text("Comment text.", TEXT_MAX)
4044
- }),
4045
- output: z.strictObject({ comment: commentSchema }),
4103
+ input: commentAddInputSchema,
4104
+ output: commentAddOutputSchema,
4046
4105
  grants: [{ grant: "project-agent" }, { grant: "operator" }],
4047
4106
  errors: [
4048
4107
  "wrong_id_kind",
@@ -4198,15 +4257,8 @@ const OPERATIONS = [
4198
4257
  whenToUse: "Answer an open question.",
4199
4258
  whenNotToUse: "Use block_unblock to close without an answer."
4200
4259
  },
4201
- input: z.strictObject({
4202
- block: blockIdSchema,
4203
- text: text("The answer.", TEXT_MAX),
4204
- note: z.string().min(1).max(TEXT_MAX).optional().describe("Your own comment on the answer, kept apart from it: stored as a second comment and shown on the curator feed line.")
4205
- }),
4206
- output: z.strictObject({
4207
- block: blockViewSchema,
4208
- comment: commentSchema
4209
- }),
4260
+ input: blockAnswerInputSchema,
4261
+ output: blockAnswerOutputSchema,
4210
4262
  grants: [{ grant: "block-addressee" }, { grant: "operator" }],
4211
4263
  preconditions: { blockTypes: ["needs_input"] },
4212
4264
  errors: [
@@ -4470,14 +4522,15 @@ const OPERATIONS = [
4470
4522
  defineOperation({
4471
4523
  id: "task.return",
4472
4524
  kind: "mutation",
4473
- description: "Return the task of a turn this session took to Dev, opening a code block on the worker with the reason.",
4525
+ description: "Return the task of a turn this session took to Dev; the reason opens a worker code block.",
4474
4526
  mcp: {
4475
- whenToUse: "Send the task back to Dev because the work needs code changes.",
4527
+ whenToUse: "Send the task back to Dev when the work needs code changes.",
4476
4528
  whenNotToUse: "Use task_submit to hand in the work instead."
4477
4529
  },
4478
4530
  input: z.strictObject({
4479
4531
  turn: turnIdSchema,
4480
- reason: text("What the worker must change, sent to the worker as a code block.", TEXT_MAX)
4532
+ reason: text("What the worker must change, sent to the worker as a code block.", TEXT_MAX),
4533
+ findings: z.int().min(0).optional().describe("Number of review findings the return sends; shown on the task's status row.")
4481
4534
  }),
4482
4535
  output: z.strictObject({
4483
4536
  task: taskViewSchema,
@@ -4512,6 +4565,22 @@ const OPERATIONS = [
4512
4565
  reason: "Handle the empty list in the parser."
4513
4566
  }
4514
4567
  }
4568
+ }, {
4569
+ summary: "Return a reviewed task to Dev with the number of findings",
4570
+ input: {
4571
+ turn: "T4",
4572
+ reason: "Fix the two review findings.",
4573
+ findings: 2
4574
+ },
4575
+ output: {
4576
+ task,
4577
+ block: {
4578
+ ...codeBlock,
4579
+ id: "B14",
4580
+ author: "agent:rev/rev-1",
4581
+ reason: "Fix the two review findings."
4582
+ }
4583
+ }
4515
4584
  }]
4516
4585
  }),
4517
4586
  defineOperation({
@@ -4597,7 +4666,7 @@ const OPERATIONS = [
4597
4666
  id: "config.get",
4598
4667
  web: true,
4599
4668
  kind: "query",
4600
- description: "Show effective project columns, executors and Spur bindings.",
4669
+ description: "Show effective project columns, executors, Spur bindings and web origins.",
4601
4670
  mcp: {
4602
4671
  whenToUse: "Read configuration before rendering the Board overview.",
4603
4672
  whenNotToUse: "Use status_get for task state and freshness."
@@ -4614,22 +4683,28 @@ const OPERATIONS = [
4614
4683
  examples: [{
4615
4684
  summary: "Show effective configuration",
4616
4685
  input: {},
4617
- output: { projects: [{
4618
- id: "web",
4619
- columns: [{
4620
- id: "dev",
4621
- executor: {
4622
- kind: "worker",
4623
- name: null
4624
- }
4686
+ output: {
4687
+ projects: [{
4688
+ id: "web",
4689
+ columns: [{
4690
+ id: "dev",
4691
+ executor: {
4692
+ kind: "worker",
4693
+ name: null
4694
+ }
4695
+ }],
4696
+ dispatcher: { mode: "on" },
4697
+ spurProjects: [{
4698
+ name: "web-worker",
4699
+ role: "worker",
4700
+ displayName: "web-worker"
4701
+ }]
4625
4702
  }],
4626
- dispatcher: { mode: "on" },
4627
- spurProjects: [{
4628
- name: "web-worker",
4629
- role: "worker",
4630
- displayName: "web-worker"
4631
- }]
4632
- }] }
4703
+ web: {
4704
+ publicOrigin: "http://127.0.0.1:4778",
4705
+ spurUiOrigin: null
4706
+ }
4707
+ }
4633
4708
  }]
4634
4709
  })
4635
4710
  ];
@@ -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-tFE-9H7j.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-BN-Cz4Ql.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { z } from "zod";
4
4
  import { request } from "node:http";
@@ -1,5 +1,5 @@
1
- import { d as buildCatalogSnapshot, ft as configSchema, mt as plainHttpAllowed, p as OPERATIONS } from "./chunk-tFE-9H7j.mjs";
2
- import { o as CliError, t as fetchCatalogVersion } from "./chunk-BPJsPCN1.mjs";
1
+ import { d as buildCatalogSnapshot, ft as configSchema, mt as plainHttpAllowed, p as OPERATIONS } from "./chunk-BN-Cz4Ql.mjs";
2
+ import { o as CliError, t as fetchCatalogVersion } from "./chunk-D9dHqOgX.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-tFE-9H7j.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-BN-Cz4Ql.mjs";
2
2
  import { t as apiBaseUrl } from "./chunk-DAMwWWmT.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-BPJsPCN1.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-DvV0WXrb.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-D9dHqOgX.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-DncwJ_X0.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,2 +1,2 @@
1
- import { a as requestTokenEnrollment, i as requestSkillReload, n as fetchTokenStatus, r as requestOperation, t as fetchCatalogVersion } from "./chunk-BPJsPCN1.mjs";
1
+ import { a as requestTokenEnrollment, i as requestSkillReload, n as fetchTokenStatus, r as requestOperation, t as fetchCatalogVersion } from "./chunk-D9dHqOgX.mjs";
2
2
  export { fetchCatalogVersion, fetchTokenStatus, requestOperation, requestSkillReload, requestTokenEnrollment };