@gonovus-ai/spec-flow-cli 1.0.1 → 1.1.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/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 +14 -0
- package/dist/cli.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 +32 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/errors.d.ts +17 -0
- package/dist/runtime/errors.js +61 -0
- package/dist/runtime/errors.js.map +1 -1
- package/dist/runtime/execute.d.ts +8 -0
- package/dist/runtime/execute.js +18 -4
- package/dist/runtime/execute.js.map +1 -1
- package/dist/work-item-query-commands.js +39 -2
- 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/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
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { CommanderError } from "commander";
|
|
2
|
+
import { constants } from "node:fs";
|
|
3
|
+
import { open } from "node:fs/promises";
|
|
4
|
+
export function invalidArgument(message) {
|
|
5
|
+
return new CommanderError(1, "commander.invalidArgument", message);
|
|
6
|
+
}
|
|
7
|
+
export function parseIdentity(label) {
|
|
8
|
+
return (value) => {
|
|
9
|
+
const trimmed = value.trim();
|
|
10
|
+
if (trimmed.length === 0 || trimmed.length > 200)
|
|
11
|
+
throw invalidArgument(`${label} must contain 1 to 200 characters`);
|
|
12
|
+
return trimmed;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The document version a write expects, as an If-Match value. Accepts the `version`
|
|
17
|
+
* number a read prints, its quoted form, or the `etag` (`W/"7"`).
|
|
18
|
+
*/
|
|
19
|
+
export function parseDocumentVersion(value) {
|
|
20
|
+
const match = /^(?:W\/)?"?([1-9]\d{0,9})"?$/u.exec(value.trim());
|
|
21
|
+
if (match?.[1] === undefined)
|
|
22
|
+
throw invalidArgument('Expected version must be the document version a read printed (for example 7 or W/"7")');
|
|
23
|
+
return `"${match[1]}"`;
|
|
24
|
+
}
|
|
25
|
+
export function parseIdempotencyKey(value) {
|
|
26
|
+
if (value.length === 0 || value.length > 200)
|
|
27
|
+
throw invalidArgument("Idempotency key must contain 1 to 200 characters");
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
export function parseRepository(value) {
|
|
31
|
+
const trimmed = value.trim();
|
|
32
|
+
if (!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/u.test(trimmed) || trimmed.length > 200)
|
|
33
|
+
throw invalidArgument("Repository must be a GitHub owner/name");
|
|
34
|
+
return trimmed;
|
|
35
|
+
}
|
|
36
|
+
export function collectRepository(value, previous = []) {
|
|
37
|
+
return [...previous, parseRepository(value)];
|
|
38
|
+
}
|
|
39
|
+
/** Reads an explicitly named local file, or standard input for `-`, as UTF-8 text. */
|
|
40
|
+
export async function readTextInput(path, maximumBytes, label) {
|
|
41
|
+
try {
|
|
42
|
+
let bytes;
|
|
43
|
+
if (path === "-") {
|
|
44
|
+
if (process.stdin.isTTY)
|
|
45
|
+
throw new Error("tty");
|
|
46
|
+
const chunks = [];
|
|
47
|
+
let length = 0;
|
|
48
|
+
for await (const chunk of process.stdin) {
|
|
49
|
+
const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(String(chunk));
|
|
50
|
+
length += buffer.length;
|
|
51
|
+
if (length > maximumBytes)
|
|
52
|
+
throw new Error("size");
|
|
53
|
+
chunks.push(buffer);
|
|
54
|
+
}
|
|
55
|
+
bytes = Buffer.concat(chunks);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
// The opened handle is checked, so a path swapped for a FIFO or device is refused,
|
|
59
|
+
// and reading stops one byte past the limit however large the file has grown.
|
|
60
|
+
const file = await open(path, constants.O_RDONLY | constants.O_NONBLOCK);
|
|
61
|
+
try {
|
|
62
|
+
const opened = await file.stat();
|
|
63
|
+
if (!opened.isFile() || opened.size > maximumBytes)
|
|
64
|
+
throw new Error("file");
|
|
65
|
+
const buffer = Buffer.alloc(maximumBytes + 1);
|
|
66
|
+
let length = 0;
|
|
67
|
+
for (;;) {
|
|
68
|
+
const { bytesRead } = await file.read(buffer, length, buffer.length - length, null);
|
|
69
|
+
if (bytesRead === 0)
|
|
70
|
+
break;
|
|
71
|
+
length += bytesRead;
|
|
72
|
+
if (length > maximumBytes)
|
|
73
|
+
throw new Error("size");
|
|
74
|
+
}
|
|
75
|
+
bytes = buffer.subarray(0, length);
|
|
76
|
+
}
|
|
77
|
+
finally {
|
|
78
|
+
await file.close();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
throw invalidArgument(`${label} must be a readable UTF-8 file (or - for standard input) of at most ${String(Math.floor(maximumBytes / 1024))} KiB`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export function parseJsonInput(text, label) {
|
|
88
|
+
try {
|
|
89
|
+
return JSON.parse(text);
|
|
90
|
+
}
|
|
91
|
+
catch {
|
|
92
|
+
throw invalidArgument(`${label} must be valid JSON`);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/** Boards appear by identity and title; `board read` returns their structure. */
|
|
96
|
+
export function boardSummaries(boards) {
|
|
97
|
+
return boards.map((board) => ({
|
|
98
|
+
id: board.id,
|
|
99
|
+
title: board.title,
|
|
100
|
+
elementCount: board.elements.length,
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
export function reviewNotice(pendingCount) {
|
|
104
|
+
return pendingCount > 0
|
|
105
|
+
? `有 ${String(pendingCount)} 处 Agent 改动待人在网页审阅;发布前需要有人在 SpecFlow 网页里审阅 (${String(pendingCount)} Agent change(s) await human review in the SpecFlow Web application before publishing)`
|
|
106
|
+
: null;
|
|
107
|
+
}
|
|
108
|
+
/** Agent review as an Agent needs it: what is pending and why publishing would wait. */
|
|
109
|
+
export function reviewSummary(review) {
|
|
110
|
+
return {
|
|
111
|
+
pendingCount: review.pendingCount,
|
|
112
|
+
agentDrafted: review.agentDrafted,
|
|
113
|
+
pendingGuardrails: review.guardrails.map((marker) => ({
|
|
114
|
+
guardrailId: marker.guardrailId,
|
|
115
|
+
change: marker.change,
|
|
116
|
+
source: marker.source,
|
|
117
|
+
})),
|
|
118
|
+
pendingPlacement: review.placement === null
|
|
119
|
+
? null
|
|
120
|
+
: { source: review.placement.source, proposed: review.placement.proposed },
|
|
121
|
+
notice: reviewNotice(review.pendingCount),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/** A document without its draft content: metadata, review state and board list. */
|
|
125
|
+
export function documentSummary(document) {
|
|
126
|
+
return {
|
|
127
|
+
id: document.id,
|
|
128
|
+
title: document.title,
|
|
129
|
+
typeId: document.typeId,
|
|
130
|
+
parentDocumentId: document.parentDocumentId,
|
|
131
|
+
applicableRepositories: document.applicableRepositories,
|
|
132
|
+
state: document.state,
|
|
133
|
+
version: document.version,
|
|
134
|
+
etag: document.etag,
|
|
135
|
+
currentRevisionId: document.currentRevisionId,
|
|
136
|
+
supersededByDocumentId: document.supersededByDocumentId,
|
|
137
|
+
hasUnpublishedDraft: document.hasUnpublishedDraft,
|
|
138
|
+
guardrailCount: document.guardrails.length,
|
|
139
|
+
boards: boardSummaries(document.boards),
|
|
140
|
+
review: reviewSummary(document.review),
|
|
141
|
+
updatedAt: document.updatedAt,
|
|
142
|
+
publishedAt: document.publishedAt,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
/** The working draft an Agent reads and edits: content plus version and review state. */
|
|
146
|
+
export function draftView(document) {
|
|
147
|
+
return {
|
|
148
|
+
...documentSummary(document),
|
|
149
|
+
body: document.body,
|
|
150
|
+
guardrails: document.guardrails,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
export function revisionView(revision) {
|
|
154
|
+
return { ...revision, boards: boardSummaries(revision.boards) };
|
|
155
|
+
}
|
|
156
|
+
/** Wraps one successful payload in a projection, keeping failures untouched. */
|
|
157
|
+
export function mapData(result, map) {
|
|
158
|
+
return result.data === undefined
|
|
159
|
+
? { response: result.response, error: result.error }
|
|
160
|
+
: { response: result.response, data: map(result.data) };
|
|
161
|
+
}
|
|
162
|
+
/** A keyed board write: one transport retry under the same key, which the server dedupes. */
|
|
163
|
+
export const writeOptions = (subject, idempotencyKey) => ({
|
|
164
|
+
retryTransportOnce: true,
|
|
165
|
+
ambiguousOutcomeMessage: `${subject} outcome is unknown; read the Context Document before retrying, or retry with the same --idempotency-key and inputs`,
|
|
166
|
+
...(idempotencyKey === undefined ? {} : { idempotencyKey }),
|
|
167
|
+
});
|
|
168
|
+
/**
|
|
169
|
+
* A Context Document write the server cannot dedupe: it is never repeated, and a lost
|
|
170
|
+
* response is reported as an unknown, non-retryable outcome.
|
|
171
|
+
*/
|
|
172
|
+
export const uncertainWriteOptions = (subject) => ({
|
|
173
|
+
uncertainWrite: true,
|
|
174
|
+
ambiguousOutcomeMessage: `${subject} outcome is unknown: the write may have been applied. Check specflow context-doc list or specflow context-doc changelog (or draft read) before retrying`,
|
|
175
|
+
});
|
|
176
|
+
//# sourceMappingURL=context-command-support.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-command-support.js","sourceRoot":"","sources":["../src/context-command-support.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cA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AAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE;QACpD,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;AAC5D,CAAC;AAED,6FAA6F;AAC7F,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,cAAuB,EAAE,EAAE,CAAC,CAAC;IACzE,kBAAkB,EAAE,IAAI;IACxB,uBAAuB,EAAE,GAAG,OAAO,qHAAqH;IACxJ,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC;CAC5D,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,CAAC;IACzD,cAAc,EAAE,IAAI;IACpB,uBAAuB,EAAE,GAAG,OAAO,yJAAyJ;CAC7L,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import { type ContextCommandRuntime } from "./context-command-support.js";
|
|
3
|
+
/** `owner/name` of the checkout's `origin` remote, or of its only remote. */
|
|
4
|
+
export declare function inferRepository(directory: string): Promise<string | null>;
|
|
5
|
+
export declare function registerContextDocumentCommands(program: Command, runtime: ContextCommandRuntime): void;
|