spur-board 0.76.0 → 0.78.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 +93 -0
- package/dist/{chunk-BEExLWBt.mjs → chunk-7XUx0JWq.mjs} +204 -69
- package/dist/{chunk-BSs9OrJD.mjs → chunk-C06XgrL3.mjs} +1 -1
- package/dist/{chunk-CFvX6Mf9.mjs → chunk-Ck64u-eo.mjs} +2 -2
- package/dist/cli.mjs +3 -3
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +342 -53
- package/dist/mcp.mjs +3 -3
- package/dist/web/assets/JetBrainsMono-Bold-D4WEaHbo.woff2 +0 -0
- package/dist/web/assets/JetBrainsMono-Medium-3S3k2nMz.woff2 +0 -0
- package/dist/web/assets/JetBrainsMono-Regular-BQaDgvhP.woff2 +0 -0
- package/dist/web/assets/index-BvHOZ5yF.js +64 -0
- package/dist/web/assets/index-DDSSG85D.css +1 -0
- package/dist/web/index.html +13 -0
- package/package.json +3 -2
- package/skills/spur-board/references/how-board-works-blocks.md +13 -0
- package/skills/spur-board/references/how-board-works.md +16 -0
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.
|
|
@@ -171,6 +171,29 @@ const TASK_HOLDS = [
|
|
|
171
171
|
"cycle_limit",
|
|
172
172
|
"work_not_started"
|
|
173
173
|
];
|
|
174
|
+
/** Every operator item kind; core's `ITEM_POLICY` gives each one a policy. */
|
|
175
|
+
const ITEM_KINDS = [
|
|
176
|
+
"token_request",
|
|
177
|
+
"post_blocked",
|
|
178
|
+
"post_failed",
|
|
179
|
+
"transport_health",
|
|
180
|
+
"answer_undelivered",
|
|
181
|
+
"worker_not_reading",
|
|
182
|
+
"answer_author_unavailable",
|
|
183
|
+
"inbound_failure",
|
|
184
|
+
"inbound_gap",
|
|
185
|
+
"board_observation",
|
|
186
|
+
"worker_ended",
|
|
187
|
+
"turn",
|
|
188
|
+
"anomaly",
|
|
189
|
+
"cycle_limit",
|
|
190
|
+
"course_check",
|
|
191
|
+
"conversation_waiting"
|
|
192
|
+
];
|
|
193
|
+
/** What an `inbox.operator` entry is: a block addressed to the operator, else an item kind. */
|
|
194
|
+
const INBOX_KINDS = ["block", ...ITEM_KINDS];
|
|
195
|
+
/** `failure`: something the board or a connection broke; `attention`: a decision or answer. */
|
|
196
|
+
const INBOX_SEVERITIES = ["attention", "failure"];
|
|
174
197
|
/** Who caused a journal event. */
|
|
175
198
|
const ACTORS = [
|
|
176
199
|
"operator",
|
|
@@ -2212,7 +2235,7 @@ const dedupeKey = z.string().min(1);
|
|
|
2212
2235
|
/** UTC ISO 8601 timestamp. */
|
|
2213
2236
|
const at$1 = z.iso.datetime();
|
|
2214
2237
|
/** Plain text; the gateway converts platform markup before it reaches core. */
|
|
2215
|
-
const text$
|
|
2238
|
+
const text$2 = z.string();
|
|
2216
2239
|
/** Deep link to the source message, or to the source space for a command. */
|
|
2217
2240
|
const sourceUrl = z.url();
|
|
2218
2241
|
/** Configured board space for an interaction, or null when it came from outside. */
|
|
@@ -2230,7 +2253,7 @@ const messageEventSchema = z.strictObject({
|
|
|
2230
2253
|
rootMessage: messageRefSchema,
|
|
2231
2254
|
sourceUrl,
|
|
2232
2255
|
author: userIdSchema,
|
|
2233
|
-
text: text$
|
|
2256
|
+
text: text$2,
|
|
2234
2257
|
at: at$1,
|
|
2235
2258
|
sourceSpace: firstMessageSpace,
|
|
2236
2259
|
originKey: z.string().min(1).optional()
|
|
@@ -2244,7 +2267,7 @@ const messageEditedEventSchema = z.strictObject({
|
|
|
2244
2267
|
rootMessage: messageRefSchema,
|
|
2245
2268
|
sourceUrl,
|
|
2246
2269
|
author: userIdSchema,
|
|
2247
|
-
text: text$
|
|
2270
|
+
text: text$2,
|
|
2248
2271
|
at: at$1,
|
|
2249
2272
|
originKey: z.string().min(1).optional()
|
|
2250
2273
|
});
|
|
@@ -2277,7 +2300,7 @@ const commandEventSchema = z.strictObject({
|
|
|
2277
2300
|
dedupeKey,
|
|
2278
2301
|
interaction: interactionRefSchema,
|
|
2279
2302
|
author: userIdSchema,
|
|
2280
|
-
text: text$
|
|
2303
|
+
text: text$2,
|
|
2281
2304
|
command: z.discriminatedUnion("kind", [z.strictObject({
|
|
2282
2305
|
kind: z.literal("query"),
|
|
2283
2306
|
id: z.enum([
|
|
@@ -2302,7 +2325,7 @@ const mentionEventSchema = z.strictObject({
|
|
|
2302
2325
|
rootMessage: messageRefSchema,
|
|
2303
2326
|
sourceUrl,
|
|
2304
2327
|
author: userIdSchema,
|
|
2305
|
-
text: text$
|
|
2328
|
+
text: text$2,
|
|
2306
2329
|
at: at$1,
|
|
2307
2330
|
sourceSpace: firstMessageSpace,
|
|
2308
2331
|
originKey: z.string().min(1).optional()
|
|
@@ -2590,6 +2613,8 @@ const blockViewSchema = z.strictObject({
|
|
|
2590
2613
|
unblockedBy: actorIdSchema.nullable().describe("Actor that unblocked the block; null while open."),
|
|
2591
2614
|
unblockedAt: z.iso.datetime().nullable().describe("When the block was unblocked; null while open.")
|
|
2592
2615
|
}).describe("A block on a task.");
|
|
2616
|
+
/** A block as `task.get` lists it: with the channel its closing answer arrived through. */
|
|
2617
|
+
const taskBlockViewSchema = blockViewSchema.extend({ answeredVia: z.enum(VIAS).nullable().describe("Channel the closing write arrived through: web or slack; null while open or when it came through the CLI, MCP or the board itself.") }).describe("A block on a task, with the channel that closed it.");
|
|
2593
2618
|
/** One column move from the journal: a dispatcher move, a return to Dev or a correction. */
|
|
2594
2619
|
const moveViewSchema = z.strictObject({
|
|
2595
2620
|
at: z.iso.datetime().describe("When the task moved, ISO 8601 UTC."),
|
|
@@ -2800,6 +2825,75 @@ const sourceViewSchema = z.strictObject({
|
|
|
2800
2825
|
stale: z.boolean().describe("Whether facts from this source exceed their freshness threshold."),
|
|
2801
2826
|
warmingUp: z.boolean().describe("Whether this source needs a complete poll in this daemon run.")
|
|
2802
2827
|
}).describe("Freshness and availability of one source.");
|
|
2828
|
+
errorDetailSchema.extend({
|
|
2829
|
+
type: z.url(),
|
|
2830
|
+
title: z.string(),
|
|
2831
|
+
status: z.int().min(400).max(599)
|
|
2832
|
+
});
|
|
2833
|
+
const TEXT_MAX$1 = 2e4;
|
|
2834
|
+
const text$1 = (what, max) => z.string().min(1).max(max).describe(what);
|
|
2835
|
+
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.");
|
|
2836
|
+
/** The effective column orchestrators and operators of the requested projects (`configBindings`). */
|
|
2837
|
+
const statusBindingsSchema = z.strictObject({
|
|
2838
|
+
columns: z.array(z.strictObject({
|
|
2839
|
+
project: z.string().min(1).describe("Board project."),
|
|
2840
|
+
column: z.enum(COLUMN_IDS).describe("Enabled column with an orchestrator."),
|
|
2841
|
+
orchestrator: z.string().min(1).describe("Spur project, or operator, that takes the column turns."),
|
|
2842
|
+
source: z.enum(COLUMN_BINDING_SOURCES).describe("project: set in projects[].columns; board-wide: filled from top-level spurProjects.")
|
|
2843
|
+
}).describe("One column binding.")).describe("Column orchestrators of each requested project; columns left at none are absent."),
|
|
2844
|
+
operators: z.array(z.strictObject({
|
|
2845
|
+
project: z.string().min(1).describe("Board project."),
|
|
2846
|
+
operator: z.string().min(1).describe("Spur project acting as operator there."),
|
|
2847
|
+
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.")
|
|
2848
|
+
}).describe("One operator binding.")).describe("Operator Spur projects of each requested project."),
|
|
2849
|
+
defaultAddressee: z.strictObject({
|
|
2850
|
+
spurProject: z.string().min(1).describe("Spur project the message goes to."),
|
|
2851
|
+
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.")
|
|
2852
|
+
}).nullable().describe("Who an orchestrators-channel message without a known @shortName goes to; null when it is left unhandled or answered with the prefixes.")
|
|
2853
|
+
}).describe("Effective column orchestrators, operators and default Slack addressee.");
|
|
2854
|
+
const statusInputSchema = z.strictObject({
|
|
2855
|
+
project: project$1,
|
|
2856
|
+
detail: z.boolean().optional().describe("Include full ticket, pull request and session facts; absent means compact rows.")
|
|
2857
|
+
});
|
|
2858
|
+
const statusOutputSchema = z.strictObject({
|
|
2859
|
+
items: z.array(statusItemSchema).describe("Actionable items in priority order."),
|
|
2860
|
+
warmingUp: z.boolean().describe("Whether required sources still need a complete poll."),
|
|
2861
|
+
spurUnavailable: z.string().nullable().describe("One combined Spur availability line, or null when available."),
|
|
2862
|
+
hostLoad: z.string().nullable().describe("Host-load episode line, or null when absent."),
|
|
2863
|
+
transport: z.array(z.strictObject({
|
|
2864
|
+
gateway: z.string().min(1).describe("Chat gateway kind."),
|
|
2865
|
+
state: z.enum(["up", "down"]).describe("down while delivery to any space of the gateway is suspended."),
|
|
2866
|
+
since: z.iso.datetime().nullable().describe("When the earliest outage started, ISO 8601 UTC, or null when up."),
|
|
2867
|
+
reason: z.string().nullable().describe("Reason of the earliest outage, or null when up."),
|
|
2868
|
+
spaces: z.array(z.enum(SPACE_IDS)).describe("Spaces whose delivery is suspended.")
|
|
2869
|
+
}).describe("Transport health of one gateway.")).describe("Transport health of each chat gateway."),
|
|
2870
|
+
sources: z.array(sourceViewSchema).describe("Freshness and availability of each source."),
|
|
2871
|
+
tasks: z.array(statusTaskSchema).describe("Tasks with state, turn, PR summary arrays and navigation; full facts with detail."),
|
|
2872
|
+
projectBlocks: z.array(z.strictObject({
|
|
2873
|
+
project: z.string().min(1).describe("Board project."),
|
|
2874
|
+
openBlocks: z.int().min(0).describe("Open project-level blocks, without a task.")
|
|
2875
|
+
}).describe("Open project-level blocks of one project.")).describe("Open project-level blocks of each requested project."),
|
|
2876
|
+
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."),
|
|
2877
|
+
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."),
|
|
2878
|
+
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."),
|
|
2879
|
+
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."),
|
|
2880
|
+
bindings: statusBindingsSchema
|
|
2881
|
+
});
|
|
2882
|
+
const commentAddInputSchema = z.strictObject({
|
|
2883
|
+
task: taskKeyInputSchema,
|
|
2884
|
+
block: blockIdSchema.optional().describe("Block conversation to join, if any."),
|
|
2885
|
+
text: text$1("Comment text.", TEXT_MAX$1)
|
|
2886
|
+
});
|
|
2887
|
+
const commentAddOutputSchema = z.strictObject({ comment: commentSchema });
|
|
2888
|
+
const blockAnswerInputSchema = z.strictObject({
|
|
2889
|
+
block: blockIdSchema,
|
|
2890
|
+
text: text$1("The answer.", TEXT_MAX$1),
|
|
2891
|
+
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.")
|
|
2892
|
+
});
|
|
2893
|
+
const blockAnswerOutputSchema = z.strictObject({
|
|
2894
|
+
block: blockViewSchema,
|
|
2895
|
+
comment: commentSchema
|
|
2896
|
+
});
|
|
2803
2897
|
//#endregion
|
|
2804
2898
|
//#region ../contracts/src/ops/config-view-schema.ts
|
|
2805
2899
|
const configViewSchema = z.strictObject({ projects: z.array(z.strictObject({
|
|
@@ -2825,6 +2919,26 @@ const configViewSchema = z.strictObject({ projects: z.array(z.strictObject({
|
|
|
2825
2919
|
})).describe("Effective Spur project bindings.")
|
|
2826
2920
|
})).describe("Effective projects visible to this caller.") }).describe("Allowlisted effective configuration without credentials or adapter settings.");
|
|
2827
2921
|
//#endregion
|
|
2922
|
+
//#region ../contracts/src/ops/inbox-schemas.ts
|
|
2923
|
+
/** One entry of the operator inbox: an operator item, a block addressed to the operator or a turn. */
|
|
2924
|
+
const inboxEntrySchema = z.strictObject({
|
|
2925
|
+
id: z.union([
|
|
2926
|
+
itemIdSchema,
|
|
2927
|
+
blockIdSchema,
|
|
2928
|
+
turnIdSchema
|
|
2929
|
+
]).describe("Item (I), block (B) or turn (T) ID; stable while the entry exists."),
|
|
2930
|
+
project: z.string().min(1).describe("Board project the entry belongs to; _board for a board-wide one."),
|
|
2931
|
+
kind: z.enum(INBOX_KINDS).describe("block for a block addressed to the operator, turn for a turn, else the item kind."),
|
|
2932
|
+
severity: z.enum(INBOX_SEVERITIES).describe("failure: something broke and the text says what to check; attention: a decision or answer is wanted."),
|
|
2933
|
+
text: z.string().describe("What needs the operator, in one line."),
|
|
2934
|
+
at: z.iso.datetime().describe("When the entry was raised or opened, ISO 8601 UTC."),
|
|
2935
|
+
task: taskKeySchema.nullable().describe("Task the entry is about; null when it has none."),
|
|
2936
|
+
column: z.enum(COLUMN_IDS).optional().describe("Column of a turn; absent on other entries."),
|
|
2937
|
+
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.")
|
|
2938
|
+
}).describe("One entry of the operator inbox.");
|
|
2939
|
+
/** An operator inbox entry cleared, answered or closed in the last 24 hours. */
|
|
2940
|
+
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.");
|
|
2941
|
+
//#endregion
|
|
2828
2942
|
//#region ../contracts/src/ops/catalog.ts
|
|
2829
2943
|
/** Longest free text an input takes: comments, questions, answers and reasons. */
|
|
2830
2944
|
const TEXT_MAX = 2e4;
|
|
@@ -3052,24 +3166,6 @@ const reviewGates = [
|
|
|
3052
3166
|
conditions: []
|
|
3053
3167
|
}
|
|
3054
3168
|
];
|
|
3055
|
-
/** The effective column orchestrators and operators of the requested projects (`configBindings`). */
|
|
3056
|
-
const statusBindingsSchema = z.strictObject({
|
|
3057
|
-
columns: z.array(z.strictObject({
|
|
3058
|
-
project: z.string().min(1).describe("Board project."),
|
|
3059
|
-
column: z.enum(COLUMN_IDS).describe("Enabled column with an orchestrator."),
|
|
3060
|
-
orchestrator: z.string().min(1).describe("Spur project, or operator, that takes the column turns."),
|
|
3061
|
-
source: z.enum(COLUMN_BINDING_SOURCES).describe("project: set in projects[].columns; board-wide: filled from top-level spurProjects.")
|
|
3062
|
-
}).describe("One column binding.")).describe("Column orchestrators of each requested project; columns left at none are absent."),
|
|
3063
|
-
operators: z.array(z.strictObject({
|
|
3064
|
-
project: z.string().min(1).describe("Board project."),
|
|
3065
|
-
operator: z.string().min(1).describe("Spur project acting as operator there."),
|
|
3066
|
-
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.")
|
|
3067
|
-
}).describe("One operator binding.")).describe("Operator Spur projects of each requested project."),
|
|
3068
|
-
defaultAddressee: z.strictObject({
|
|
3069
|
-
spurProject: z.string().min(1).describe("Spur project the message goes to."),
|
|
3070
|
-
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.")
|
|
3071
|
-
}).nullable().describe("Who an orchestrators-channel message without a known @shortName goes to; null when it is left unhandled or answered with the prefixes.")
|
|
3072
|
-
}).describe("Effective column orchestrators, operators and default Slack addressee.");
|
|
3073
3169
|
const taskOutput = z.strictObject({ task: taskViewSchema });
|
|
3074
3170
|
const blockOutput = z.strictObject({ block: blockViewSchema });
|
|
3075
3171
|
const itemOutput = z.strictObject({ item: itemViewSchema });
|
|
@@ -3092,34 +3188,8 @@ const OPERATIONS = [
|
|
|
3092
3188
|
whenToUse: "Get a board overview.",
|
|
3093
3189
|
whenNotToUse: "Use task_get for one task."
|
|
3094
3190
|
},
|
|
3095
|
-
input:
|
|
3096
|
-
|
|
3097
|
-
detail: z.boolean().optional().describe("Include full ticket, pull request and session facts; absent means compact rows.")
|
|
3098
|
-
}),
|
|
3099
|
-
output: z.strictObject({
|
|
3100
|
-
items: z.array(statusItemSchema).describe("Actionable items in priority order."),
|
|
3101
|
-
warmingUp: z.boolean().describe("Whether required sources still need a complete poll."),
|
|
3102
|
-
spurUnavailable: z.string().nullable().describe("One combined Spur availability line, or null when available."),
|
|
3103
|
-
hostLoad: z.string().nullable().describe("Host-load episode line, or null when absent."),
|
|
3104
|
-
transport: z.array(z.strictObject({
|
|
3105
|
-
gateway: z.string().min(1).describe("Chat gateway kind."),
|
|
3106
|
-
state: z.enum(["up", "down"]).describe("down while delivery to any space of the gateway is suspended."),
|
|
3107
|
-
since: z.iso.datetime().nullable().describe("When the earliest outage started, ISO 8601 UTC, or null when up."),
|
|
3108
|
-
reason: z.string().nullable().describe("Reason of the earliest outage, or null when up."),
|
|
3109
|
-
spaces: z.array(z.enum(SPACE_IDS)).describe("Spaces whose delivery is suspended.")
|
|
3110
|
-
}).describe("Transport health of one gateway.")).describe("Transport health of each chat gateway."),
|
|
3111
|
-
sources: z.array(sourceViewSchema).describe("Freshness and availability of each source."),
|
|
3112
|
-
tasks: z.array(statusTaskSchema).describe("Tasks with state, turn, PR summary arrays and navigation; full facts with detail."),
|
|
3113
|
-
projectBlocks: z.array(z.strictObject({
|
|
3114
|
-
project: z.string().min(1).describe("Board project."),
|
|
3115
|
-
openBlocks: z.int().min(0).describe("Open project-level blocks, without a task.")
|
|
3116
|
-
}).describe("Open project-level blocks of one project.")).describe("Open project-level blocks of each requested project."),
|
|
3117
|
-
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."),
|
|
3118
|
-
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."),
|
|
3119
|
-
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."),
|
|
3120
|
-
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."),
|
|
3121
|
-
bindings: statusBindingsSchema
|
|
3122
|
-
}),
|
|
3191
|
+
input: statusInputSchema,
|
|
3192
|
+
output: statusOutputSchema,
|
|
3123
3193
|
grants: operatorOrProjectAgent,
|
|
3124
3194
|
errors: ["not_found"],
|
|
3125
3195
|
cli: {
|
|
@@ -3244,7 +3314,7 @@ const OPERATIONS = [
|
|
|
3244
3314
|
turns: z.array(taskTurnSchema).optional().describe("Present only with detail: the last 5 closed turns, newest first."),
|
|
3245
3315
|
links: z.array(linkViewSchema).describe("Effective pull request, session, and ticket links."),
|
|
3246
3316
|
sessions: z.array(statusSessionFactsSchema).optional().describe("Current facts of effective linked sessions."),
|
|
3247
|
-
blocks: z.array(
|
|
3317
|
+
blocks: z.array(taskBlockViewSchema).describe("Blocks on the task, open and unblocked."),
|
|
3248
3318
|
comments: z.array(commentSchema).describe("Comments on the task, oldest first."),
|
|
3249
3319
|
why: taskWhySchema.optional().describe("Present only with why.")
|
|
3250
3320
|
}),
|
|
@@ -3274,7 +3344,13 @@ const OPERATIONS = [
|
|
|
3274
3344
|
returned: returnFromReview
|
|
3275
3345
|
},
|
|
3276
3346
|
links: [],
|
|
3277
|
-
blocks: [
|
|
3347
|
+
blocks: [{
|
|
3348
|
+
...question,
|
|
3349
|
+
answeredVia: null
|
|
3350
|
+
}, {
|
|
3351
|
+
...codeBlock,
|
|
3352
|
+
answeredVia: null
|
|
3353
|
+
}],
|
|
3278
3354
|
comments: [comment]
|
|
3279
3355
|
}
|
|
3280
3356
|
},
|
|
@@ -3501,6 +3577,76 @@ const OPERATIONS = [
|
|
|
3501
3577
|
}
|
|
3502
3578
|
}]
|
|
3503
3579
|
}),
|
|
3580
|
+
defineOperation({
|
|
3581
|
+
id: "inbox.operator",
|
|
3582
|
+
web: true,
|
|
3583
|
+
kind: "query",
|
|
3584
|
+
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 only when no board-wide operator is configured.",
|
|
3585
|
+
mcp: {
|
|
3586
|
+
whenToUse: "As the operator, review every open operator item, block and turn across projects in one list.",
|
|
3587
|
+
whenNotToUse: "Use inbox_get for the comments, blocks and turns addressed to an agent."
|
|
3588
|
+
},
|
|
3589
|
+
input: z.strictObject({}),
|
|
3590
|
+
output: z.strictObject({
|
|
3591
|
+
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."),
|
|
3592
|
+
handled: z.array(inboxHandledSchema).describe("At most 20 entries handled in the last 24 hours, newest first.")
|
|
3593
|
+
}),
|
|
3594
|
+
grants: operatorOnly,
|
|
3595
|
+
errors: [],
|
|
3596
|
+
cli: {
|
|
3597
|
+
command: "inbox operator",
|
|
3598
|
+
args: []
|
|
3599
|
+
},
|
|
3600
|
+
slack: null,
|
|
3601
|
+
examples: [{
|
|
3602
|
+
summary: "Read the operator inbox",
|
|
3603
|
+
input: {},
|
|
3604
|
+
output: {
|
|
3605
|
+
items: [
|
|
3606
|
+
{
|
|
3607
|
+
id: "B12",
|
|
3608
|
+
project: "web",
|
|
3609
|
+
kind: "block",
|
|
3610
|
+
severity: "attention",
|
|
3611
|
+
text: question.reason,
|
|
3612
|
+
at: later,
|
|
3613
|
+
task: "PROJ-123",
|
|
3614
|
+
answeredVia: null
|
|
3615
|
+
},
|
|
3616
|
+
{
|
|
3617
|
+
id: "I9",
|
|
3618
|
+
project: "_board",
|
|
3619
|
+
kind: "transport_health",
|
|
3620
|
+
severity: "failure",
|
|
3621
|
+
text: `slack delivery down since ${at} (connection lost): check the Slack app tokens`,
|
|
3622
|
+
at,
|
|
3623
|
+
task: null
|
|
3624
|
+
},
|
|
3625
|
+
{
|
|
3626
|
+
id: "T5",
|
|
3627
|
+
project: "web",
|
|
3628
|
+
kind: "turn",
|
|
3629
|
+
severity: "attention",
|
|
3630
|
+
text: "Your turn T5: The pull request is ready to merge.",
|
|
3631
|
+
at,
|
|
3632
|
+
task: "PROJ-124",
|
|
3633
|
+
column: "ready-to-merge"
|
|
3634
|
+
}
|
|
3635
|
+
],
|
|
3636
|
+
handled: [{
|
|
3637
|
+
id: "B11",
|
|
3638
|
+
project: "web",
|
|
3639
|
+
kind: "block",
|
|
3640
|
+
severity: "attention",
|
|
3641
|
+
text: "May the client drop v1?",
|
|
3642
|
+
at,
|
|
3643
|
+
task: "PROJ-123",
|
|
3644
|
+
answeredVia: "slack",
|
|
3645
|
+
handledAt: later
|
|
3646
|
+
}]
|
|
3647
|
+
}
|
|
3648
|
+
}]
|
|
3649
|
+
}),
|
|
3504
3650
|
defineOperation({
|
|
3505
3651
|
id: "inbox.ack",
|
|
3506
3652
|
kind: "mutation",
|
|
@@ -3916,12 +4062,8 @@ const OPERATIONS = [
|
|
|
3916
4062
|
whenNotToUse: "Use comment_edit to revise your comment.",
|
|
3917
4063
|
destructive: false
|
|
3918
4064
|
},
|
|
3919
|
-
input:
|
|
3920
|
-
|
|
3921
|
-
block: blockIdSchema.optional().describe("Block conversation to join, if any."),
|
|
3922
|
-
text: text("Comment text.", TEXT_MAX)
|
|
3923
|
-
}),
|
|
3924
|
-
output: z.strictObject({ comment: commentSchema }),
|
|
4065
|
+
input: commentAddInputSchema,
|
|
4066
|
+
output: commentAddOutputSchema,
|
|
3925
4067
|
grants: [{ grant: "project-agent" }, { grant: "operator" }],
|
|
3926
4068
|
errors: [
|
|
3927
4069
|
"wrong_id_kind",
|
|
@@ -4077,15 +4219,8 @@ const OPERATIONS = [
|
|
|
4077
4219
|
whenToUse: "Answer an open question.",
|
|
4078
4220
|
whenNotToUse: "Use block_unblock to close without an answer."
|
|
4079
4221
|
},
|
|
4080
|
-
input:
|
|
4081
|
-
|
|
4082
|
-
text: text("The answer.", TEXT_MAX),
|
|
4083
|
-
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.")
|
|
4084
|
-
}),
|
|
4085
|
-
output: z.strictObject({
|
|
4086
|
-
block: blockViewSchema,
|
|
4087
|
-
comment: commentSchema
|
|
4088
|
-
}),
|
|
4222
|
+
input: blockAnswerInputSchema,
|
|
4223
|
+
output: blockAnswerOutputSchema,
|
|
4089
4224
|
grants: [{ grant: "block-addressee" }, { grant: "operator" }],
|
|
4090
4225
|
preconditions: { blockTypes: ["needs_input"] },
|
|
4091
4226
|
errors: [
|
|
@@ -4677,4 +4812,4 @@ function assertNever(value) {
|
|
|
4677
4812
|
throw new Error(`Unexpected value: ${JSON.stringify(value)}`);
|
|
4678
4813
|
}
|
|
4679
4814
|
//#endregion
|
|
4680
|
-
export { err as $, prSourceId as A, prFactsSchema as B, userIdSchema as C, AdapterError as D, eventPayloadSchemas as E, REVIEW_STATES as F, JIRA_PROJECT_KEY as G, ringMarker as H, SESSION_HEALTH_STATES as I, encodeActorId as J, REF_NUMBER as K, SESSION_STATUSES as L, sourceCursorSchema as M, trackerSourceId as N, batchSchema as O, PR_STATES as P, ERRORS as Q, isExternalAuthor as R, messageRefSchema as S, GATE_REASONS as T, sessionFactsSchema as U, prRefSchema as V, ticketFactsSchema as W, parseActorId as X, errorCodeOf as Y, parseRef as Z, renderMcpError as _, COLUMN_IDS as _t, requestHashOf as a, DEFAULT_LINK as at, inboundEventSchema as b,
|
|
4815
|
+
export { err as $, prSourceId as A, prFactsSchema as B, userIdSchema as C, AdapterError as D, eventPayloadSchemas as E, REVIEW_STATES as F, JIRA_PROJECT_KEY as G, ringMarker as H, SESSION_HEALTH_STATES as I, encodeActorId as J, REF_NUMBER as K, SESSION_STATUSES as L, sourceCursorSchema as M, trackerSourceId as N, batchSchema as O, PR_STATES as P, ERRORS as Q, isExternalAuthor as R, messageRefSchema as S, VIAS as St, GATE_REASONS as T, sessionFactsSchema as U, prRefSchema as V, ticketFactsSchema as W, parseActorId as X, errorCodeOf as Y, parseRef as Z, renderMcpError as _, COLUMN_IDS as _t, requestHashOf as a, DEFAULT_LINK as at, inboundEventSchema as b, SLACK_BOT_SCOPES as bt, tokenRequestStatusSchema as c, DEFAULT_STAND_PORT_RANGE as ct, buildCatalogSnapshot as d, configBindings as dt, errorContextSchema as et, roleCanUseOperation as f, configSchema as ft, renderJsonError as g, resolveWebOrigin as gt, renderHttpProblem as h, requiredSecretKeys as ht, TOKEN_REQUEST_LIMITS as i, DEFAULT_HTTP_PORT as it, sessionTransitionSchema as j, entityRefSchema as k, BOARD_TICK_MS as l, RESERVED_PROJECT as lt, turnHandedSchema as m, plainHttpAllowed as mt, doctorReportSchema as n, ok as nt, tokenRequestResultSchema as o, DEFAULT_SLACK_APP_NAME as ot, OPERATIONS as p, defaultAddressee as pt, actorIdSchema as q, remoteDoctorReportSchema as r, successEnvelopeSchema as rt, tokenRequestSchema as s, DEFAULT_SLACK_COMMAND as st, assertNever as t, errorEnvelopeSchema as tt, SYSTEMD_SERVICE_SETTINGS as u, boardWideSpurProject as ut, SPACE_IDS as v, DISPATCHER_MODES as vt, EVENT_KINDS as w, interactionRefSchema as x, TASK_HOLDS as xt, conversationRefSchema as y, ITEM_KINDS as yt, parseRingMarker as z };
|
|
@@ -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-
|
|
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-7XUx0JWq.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-
|
|
2
|
-
import { o as CliError, t as fetchCatalogVersion } from "./chunk-
|
|
1
|
+
import { d as buildCatalogSnapshot, ft as configSchema, mt as plainHttpAllowed, p as OPERATIONS } from "./chunk-7XUx0JWq.mjs";
|
|
2
|
+
import { o as CliError, t as fetchCatalogVersion } from "./chunk-C06XgrL3.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, 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
|
|
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-7XUx0JWq.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-
|
|
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-C06XgrL3.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-Ck64u-eo.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-
|
|
1
|
+
import { a as requestTokenEnrollment, i as requestSkillReload, n as fetchTokenStatus, r as requestOperation, t as fetchCatalogVersion } from "./chunk-C06XgrL3.mjs";
|
|
2
2
|
export { fetchCatalogVersion, fetchTokenStatus, requestOperation, requestSkillReload, requestTokenEnrollment };
|