@gonovus-ai/spec-flow-cli 1.0.1 → 1.2.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/README.md +24 -3
- package/dist/agent-commands.d.ts +11 -0
- package/dist/agent-commands.js +613 -0
- package/dist/agent-commands.js.map +1 -0
- package/dist/agent-session-commands.d.ts +3 -0
- package/dist/agent-session-commands.js +367 -0
- package/dist/agent-session-commands.js.map +1 -0
- package/dist/board-commands.d.ts +3 -0
- package/dist/board-commands.js +381 -0
- package/dist/board-commands.js.map +1 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.js +117 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/work-item-output.d.ts +182 -0
- package/dist/commands/work-item-output.js +1 -0
- package/dist/commands/work-item-output.js.map +1 -1
- package/dist/context-agents-block.d.ts +57 -0
- package/dist/context-agents-block.js +331 -0
- package/dist/context-agents-block.js.map +1 -0
- package/dist/context-command-support.d.ts +186 -0
- package/dist/context-command-support.js +176 -0
- package/dist/context-command-support.js.map +1 -0
- package/dist/context-document-commands.d.ts +5 -0
- package/dist/context-document-commands.js +674 -0
- package/dist/context-document-commands.js.map +1 -0
- package/dist/index.js +42 -2
- package/dist/index.js.map +1 -1
- package/dist/program.js +1 -0
- package/dist/program.js.map +1 -1
- package/dist/resource-command-runtime.d.ts +1 -0
- package/dist/runtime/errors.d.ts +21 -0
- package/dist/runtime/errors.js +92 -1
- package/dist/runtime/errors.js.map +1 -1
- package/dist/runtime/execute.d.ts +9 -0
- package/dist/runtime/execute.js +18 -4
- package/dist/runtime/execute.js.map +1 -1
- package/dist/runtime/session.d.ts +1 -1
- package/dist/runtime/session.js +22 -11
- package/dist/runtime/session.js.map +1 -1
- package/dist/work-item-query-commands.js +48 -6
- package/dist/work-item-query-commands.js.map +1 -1
- package/dist/work-item-resource-link-commands.js +36 -0
- package/dist/work-item-resource-link-commands.js.map +1 -1
- package/dist/work-item-thread-commands.js +14 -1
- package/dist/work-item-thread-commands.js.map +1 -1
- package/guides/agent-sessions.md +110 -0
- package/guides/boards.md +123 -0
- package/guides/context-documents.md +181 -0
- package/guides/errors.md +15 -0
- package/guides/work-items.md +7 -0
- package/package.json +1 -1
|
@@ -25,6 +25,19 @@ export declare function itemSummary(item: CompatibleItem): {
|
|
|
25
25
|
name: string;
|
|
26
26
|
userId: string;
|
|
27
27
|
} | null;
|
|
28
|
+
assignedAgent: {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
slug: string;
|
|
32
|
+
transport: "cli" | "webhook";
|
|
33
|
+
ownerUserId: string;
|
|
34
|
+
ownerName: string;
|
|
35
|
+
ownerImage: string | null;
|
|
36
|
+
status: "active" | "disabled";
|
|
37
|
+
online: boolean;
|
|
38
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
39
|
+
eligible: boolean;
|
|
40
|
+
} | null | undefined;
|
|
28
41
|
};
|
|
29
42
|
export declare function itemOutput<T extends {
|
|
30
43
|
readonly workItem?: CompatibleItem;
|
|
@@ -44,6 +57,19 @@ export declare function itemListOutput(data: CompatibleList, mode: OutputMode, w
|
|
|
44
57
|
name: string;
|
|
45
58
|
userId: string;
|
|
46
59
|
} | null;
|
|
60
|
+
assignedAgent: {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
slug: string;
|
|
64
|
+
transport: "cli" | "webhook";
|
|
65
|
+
ownerUserId: string;
|
|
66
|
+
ownerName: string;
|
|
67
|
+
ownerImage: string | null;
|
|
68
|
+
status: "active" | "disabled";
|
|
69
|
+
online: boolean;
|
|
70
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
71
|
+
eligible: boolean;
|
|
72
|
+
} | null | undefined;
|
|
47
73
|
}[];
|
|
48
74
|
hiddenCompleted?: {
|
|
49
75
|
status: string;
|
|
@@ -74,6 +100,19 @@ export declare function itemListOutput(data: CompatibleList, mode: OutputMode, w
|
|
|
74
100
|
name: string;
|
|
75
101
|
userId: string;
|
|
76
102
|
} | null;
|
|
103
|
+
assignedAgent: {
|
|
104
|
+
id: string;
|
|
105
|
+
name: string;
|
|
106
|
+
slug: string;
|
|
107
|
+
transport: "cli" | "webhook";
|
|
108
|
+
ownerUserId: string;
|
|
109
|
+
ownerName: string;
|
|
110
|
+
ownerImage: string | null;
|
|
111
|
+
status: "active" | "disabled";
|
|
112
|
+
online: boolean;
|
|
113
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
114
|
+
eligible: boolean;
|
|
115
|
+
} | null | undefined;
|
|
77
116
|
}[];
|
|
78
117
|
name: string;
|
|
79
118
|
status: string;
|
|
@@ -92,6 +131,19 @@ export declare function itemListOutput(data: CompatibleList, mode: OutputMode, w
|
|
|
92
131
|
name: string;
|
|
93
132
|
userId: string;
|
|
94
133
|
} | null;
|
|
134
|
+
assignedAgent: {
|
|
135
|
+
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
slug: string;
|
|
138
|
+
transport: "cli" | "webhook";
|
|
139
|
+
ownerUserId: string;
|
|
140
|
+
ownerName: string;
|
|
141
|
+
ownerImage: string | null;
|
|
142
|
+
status: "active" | "disabled";
|
|
143
|
+
online: boolean;
|
|
144
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
145
|
+
eligible: boolean;
|
|
146
|
+
} | null | undefined;
|
|
95
147
|
}[];
|
|
96
148
|
hiddenCompleted?: {
|
|
97
149
|
status: string;
|
|
@@ -134,6 +186,19 @@ export declare function relationSummary(relation: Relation): {
|
|
|
134
186
|
name: string;
|
|
135
187
|
userId: string;
|
|
136
188
|
} | null;
|
|
189
|
+
assignedAgent: {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
slug: string;
|
|
193
|
+
transport: "cli" | "webhook";
|
|
194
|
+
ownerUserId: string;
|
|
195
|
+
ownerName: string;
|
|
196
|
+
ownerImage: string | null;
|
|
197
|
+
status: "active" | "disabled";
|
|
198
|
+
online: boolean;
|
|
199
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
200
|
+
eligible: boolean;
|
|
201
|
+
} | null | undefined;
|
|
137
202
|
};
|
|
138
203
|
targetWorkItem: {
|
|
139
204
|
id: string;
|
|
@@ -149,6 +214,19 @@ export declare function relationSummary(relation: Relation): {
|
|
|
149
214
|
name: string;
|
|
150
215
|
userId: string;
|
|
151
216
|
} | null;
|
|
217
|
+
assignedAgent: {
|
|
218
|
+
id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
slug: string;
|
|
221
|
+
transport: "cli" | "webhook";
|
|
222
|
+
ownerUserId: string;
|
|
223
|
+
ownerName: string;
|
|
224
|
+
ownerImage: string | null;
|
|
225
|
+
status: "active" | "disabled";
|
|
226
|
+
online: boolean;
|
|
227
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
228
|
+
eligible: boolean;
|
|
229
|
+
} | null | undefined;
|
|
152
230
|
};
|
|
153
231
|
};
|
|
154
232
|
export declare function relationListOutput(data: RelationList, mode: OutputMode, warn: () => void): {
|
|
@@ -179,6 +257,19 @@ export declare function relationListOutput(data: RelationList, mode: OutputMode,
|
|
|
179
257
|
name: string;
|
|
180
258
|
userId: string;
|
|
181
259
|
} | null;
|
|
260
|
+
assignedAgent?: {
|
|
261
|
+
id: string;
|
|
262
|
+
name: string;
|
|
263
|
+
slug: string;
|
|
264
|
+
transport: "cli" | "webhook";
|
|
265
|
+
ownerUserId: string;
|
|
266
|
+
ownerName: string;
|
|
267
|
+
ownerImage: string | null;
|
|
268
|
+
status: "active" | "disabled";
|
|
269
|
+
online: boolean;
|
|
270
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
271
|
+
eligible: boolean;
|
|
272
|
+
} | null;
|
|
182
273
|
createdAt: string;
|
|
183
274
|
description: string | null;
|
|
184
275
|
descriptionGeneration?: number;
|
|
@@ -231,6 +322,19 @@ export declare function relationListOutput(data: RelationList, mode: OutputMode,
|
|
|
231
322
|
name: string;
|
|
232
323
|
userId: string;
|
|
233
324
|
} | null;
|
|
325
|
+
assignedAgent?: {
|
|
326
|
+
id: string;
|
|
327
|
+
name: string;
|
|
328
|
+
slug: string;
|
|
329
|
+
transport: "cli" | "webhook";
|
|
330
|
+
ownerUserId: string;
|
|
331
|
+
ownerName: string;
|
|
332
|
+
ownerImage: string | null;
|
|
333
|
+
status: "active" | "disabled";
|
|
334
|
+
online: boolean;
|
|
335
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
336
|
+
eligible: boolean;
|
|
337
|
+
} | null;
|
|
234
338
|
createdAt: string;
|
|
235
339
|
description: string | null;
|
|
236
340
|
descriptionGeneration?: number;
|
|
@@ -294,6 +398,19 @@ export declare function relationListOutput(data: RelationList, mode: OutputMode,
|
|
|
294
398
|
name: string;
|
|
295
399
|
userId: string;
|
|
296
400
|
} | null;
|
|
401
|
+
assignedAgent: {
|
|
402
|
+
id: string;
|
|
403
|
+
name: string;
|
|
404
|
+
slug: string;
|
|
405
|
+
transport: "cli" | "webhook";
|
|
406
|
+
ownerUserId: string;
|
|
407
|
+
ownerName: string;
|
|
408
|
+
ownerImage: string | null;
|
|
409
|
+
status: "active" | "disabled";
|
|
410
|
+
online: boolean;
|
|
411
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
412
|
+
eligible: boolean;
|
|
413
|
+
} | null | undefined;
|
|
297
414
|
};
|
|
298
415
|
targetWorkItem: {
|
|
299
416
|
id: string;
|
|
@@ -309,6 +426,19 @@ export declare function relationListOutput(data: RelationList, mode: OutputMode,
|
|
|
309
426
|
name: string;
|
|
310
427
|
userId: string;
|
|
311
428
|
} | null;
|
|
429
|
+
assignedAgent: {
|
|
430
|
+
id: string;
|
|
431
|
+
name: string;
|
|
432
|
+
slug: string;
|
|
433
|
+
transport: "cli" | "webhook";
|
|
434
|
+
ownerUserId: string;
|
|
435
|
+
ownerName: string;
|
|
436
|
+
ownerImage: string | null;
|
|
437
|
+
status: "active" | "disabled";
|
|
438
|
+
online: boolean;
|
|
439
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
440
|
+
eligible: boolean;
|
|
441
|
+
} | null | undefined;
|
|
312
442
|
};
|
|
313
443
|
}[];
|
|
314
444
|
canCreateRelation: boolean;
|
|
@@ -343,6 +473,19 @@ export declare function relationReceiptOutput(data: Receipt, mode: OutputMode, w
|
|
|
343
473
|
name: string;
|
|
344
474
|
userId: string;
|
|
345
475
|
} | null;
|
|
476
|
+
assignedAgent?: {
|
|
477
|
+
id: string;
|
|
478
|
+
name: string;
|
|
479
|
+
slug: string;
|
|
480
|
+
transport: "cli" | "webhook";
|
|
481
|
+
ownerUserId: string;
|
|
482
|
+
ownerName: string;
|
|
483
|
+
ownerImage: string | null;
|
|
484
|
+
status: "active" | "disabled";
|
|
485
|
+
online: boolean;
|
|
486
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
487
|
+
eligible: boolean;
|
|
488
|
+
} | null;
|
|
346
489
|
createdAt: string;
|
|
347
490
|
description: string | null;
|
|
348
491
|
descriptionGeneration?: number;
|
|
@@ -395,6 +538,19 @@ export declare function relationReceiptOutput(data: Receipt, mode: OutputMode, w
|
|
|
395
538
|
name: string;
|
|
396
539
|
userId: string;
|
|
397
540
|
} | null;
|
|
541
|
+
assignedAgent?: {
|
|
542
|
+
id: string;
|
|
543
|
+
name: string;
|
|
544
|
+
slug: string;
|
|
545
|
+
transport: "cli" | "webhook";
|
|
546
|
+
ownerUserId: string;
|
|
547
|
+
ownerName: string;
|
|
548
|
+
ownerImage: string | null;
|
|
549
|
+
status: "active" | "disabled";
|
|
550
|
+
online: boolean;
|
|
551
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
552
|
+
eligible: boolean;
|
|
553
|
+
} | null;
|
|
398
554
|
createdAt: string;
|
|
399
555
|
description: string | null;
|
|
400
556
|
descriptionGeneration?: number;
|
|
@@ -457,6 +613,19 @@ export declare function relationReceiptOutput(data: Receipt, mode: OutputMode, w
|
|
|
457
613
|
name: string;
|
|
458
614
|
userId: string;
|
|
459
615
|
} | null;
|
|
616
|
+
assignedAgent: {
|
|
617
|
+
id: string;
|
|
618
|
+
name: string;
|
|
619
|
+
slug: string;
|
|
620
|
+
transport: "cli" | "webhook";
|
|
621
|
+
ownerUserId: string;
|
|
622
|
+
ownerName: string;
|
|
623
|
+
ownerImage: string | null;
|
|
624
|
+
status: "active" | "disabled";
|
|
625
|
+
online: boolean;
|
|
626
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
627
|
+
eligible: boolean;
|
|
628
|
+
} | null | undefined;
|
|
460
629
|
};
|
|
461
630
|
targetWorkItem: {
|
|
462
631
|
id: string;
|
|
@@ -472,6 +641,19 @@ export declare function relationReceiptOutput(data: Receipt, mode: OutputMode, w
|
|
|
472
641
|
name: string;
|
|
473
642
|
userId: string;
|
|
474
643
|
} | null;
|
|
644
|
+
assignedAgent: {
|
|
645
|
+
id: string;
|
|
646
|
+
name: string;
|
|
647
|
+
slug: string;
|
|
648
|
+
transport: "cli" | "webhook";
|
|
649
|
+
ownerUserId: string;
|
|
650
|
+
ownerName: string;
|
|
651
|
+
ownerImage: string | null;
|
|
652
|
+
status: "active" | "disabled";
|
|
653
|
+
online: boolean;
|
|
654
|
+
webhookHealthStatus: ("healthy" | "degraded" | "disabled") | null;
|
|
655
|
+
eligible: boolean;
|
|
656
|
+
} | null | undefined;
|
|
475
657
|
};
|
|
476
658
|
} | null;
|
|
477
659
|
relationId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work-item-output.js","sourceRoot":"","sources":["../../src/commands/work-item-output.ts"],"names":[],"mappings":"AAeA,MAAM,UAAU,WAAW,CAAC,IAAoB;IAC9C,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,SAAS,EAAE,IAAI,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GAAG,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC5F,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SpecFlow managed block in a repository's AGENTS.md: rendered from one Context
|
|
3
|
+
* Index, placed deterministically so a rerun with unchanged content is byte-identical.
|
|
4
|
+
*/
|
|
5
|
+
export declare const contextBlockBegin = "<!-- specflow:context:begin -->";
|
|
6
|
+
export declare const contextBlockEnd = "<!-- specflow:context:end -->";
|
|
7
|
+
export interface ContextIndexData {
|
|
8
|
+
readonly repository: string;
|
|
9
|
+
readonly fingerprint: string;
|
|
10
|
+
readonly types: readonly {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly readingCue: string;
|
|
14
|
+
}[];
|
|
15
|
+
readonly documents: readonly {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly title: string;
|
|
18
|
+
readonly typeId: string;
|
|
19
|
+
readonly parentDocumentId: string | null;
|
|
20
|
+
readonly currentRevisionId: string;
|
|
21
|
+
readonly boards: readonly {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly title: string;
|
|
24
|
+
}[];
|
|
25
|
+
}[];
|
|
26
|
+
readonly guardrails: readonly {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly documentId: string;
|
|
29
|
+
readonly title: string;
|
|
30
|
+
readonly prohibitedBehavior: string;
|
|
31
|
+
readonly safePath: string;
|
|
32
|
+
readonly repositoryGlob: string | null;
|
|
33
|
+
readonly pathGlob: string | null;
|
|
34
|
+
}[];
|
|
35
|
+
}
|
|
36
|
+
/** The file cannot be updated safely: its markers do not pair up unambiguously. */
|
|
37
|
+
export declare class ContextBlockError extends Error {
|
|
38
|
+
readonly name = "ContextBlockError";
|
|
39
|
+
}
|
|
40
|
+
/** Throws ContextBlockError when the file's markers are ambiguous. */
|
|
41
|
+
export declare function checkContextBlocks(content: string | null): void;
|
|
42
|
+
export declare function renderContextBlock(index: ContextIndexData, workspaceId: string): string;
|
|
43
|
+
export declare function readContextBlockMetadata(content: string | null): {
|
|
44
|
+
readonly workspaceId: string;
|
|
45
|
+
readonly repository: string;
|
|
46
|
+
} | null;
|
|
47
|
+
/**
|
|
48
|
+
* Places the block: replaces the managed block in place (removing every old Guardrails
|
|
49
|
+
* block), otherwise takes the place of the first old Guardrails block (removing the
|
|
50
|
+
* others), otherwise appends it. Line endings follow the file. Ambiguous markers throw
|
|
51
|
+
* ContextBlockError instead of rewriting anything.
|
|
52
|
+
*/
|
|
53
|
+
export declare function applyContextBlock(existing: string | null, block: string): string;
|
|
54
|
+
/** A unified line diff of the whole file, for `--check` output. */
|
|
55
|
+
export declare function unifiedDiff(before: string, after: string, file: string): string;
|
|
56
|
+
/** `owner/name` of a Git remote URL (SSH, scp-like or HTTPS), or null. */
|
|
57
|
+
export declare function repositoryFromRemote(url: string): string | null;
|