@gonovus-ai/spec-flow-cli 2.1.0 → 2.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 +3 -3
- package/dist/acceptance-commands.d.ts +7 -0
- package/dist/acceptance-commands.js +247 -0
- package/dist/acceptance-commands.js.map +1 -0
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/work-item-output.d.ts +10 -10
- package/dist/context-command-support.d.ts +2 -2
- package/dist/runner/adapters/exec-adapter.js +6 -2
- package/dist/runner/adapters/exec-adapter.js.map +1 -1
- package/dist/runner/orchestrator.d.ts +16 -0
- package/dist/runner/orchestrator.js +219 -4
- package/dist/runner/orchestrator.js.map +1 -1
- package/dist/runner/telemetry-bridge.d.ts +18 -0
- package/dist/runner/telemetry-bridge.js +40 -0
- package/dist/runner/telemetry-bridge.js.map +1 -1
- package/dist/runner/types.d.ts +8 -2
- package/dist/runner/types.js +7 -0
- package/dist/runner/types.js.map +1 -1
- package/dist/runner/workflow.d.ts +25 -0
- package/dist/runner/workflow.js +51 -0
- package/dist/runner/workflow.js.map +1 -1
- package/dist/runtime/session.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ seven-day Better Auth CLI Session. It supports the Node.js 24 runtime line;
|
|
|
39
39
|
Node.js 22 and unverified future major versions are intentionally unsupported.
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
npm install --global @gonovus-ai/spec-flow-cli@2.
|
|
42
|
+
npm install --global @gonovus-ai/spec-flow-cli@2.2.0
|
|
43
43
|
specflow auth login
|
|
44
44
|
specflow auth status
|
|
45
45
|
specflow auth logout
|
|
@@ -98,7 +98,7 @@ review in the Web application, and publishing waits until then (`REVIEW_PENDING`
|
|
|
98
98
|
|
|
99
99
|
## Versions
|
|
100
100
|
|
|
101
|
-
CLI 2.
|
|
101
|
+
CLI 2.2.0 plans deliveries as Workspace Versions (ADR 0177). `specflow version` alone
|
|
102
102
|
still checks compatibility; its subcommands manage Versions (`specflow guide versions`):
|
|
103
103
|
|
|
104
104
|
```bash
|
|
@@ -114,7 +114,7 @@ specflow spec labels set --workspace-id <workspace-id> --spec-id PAY-S12 --label
|
|
|
114
114
|
specflow version --json --skill-version 0.12.2 --compatible-cli "^2.1.0"
|
|
115
115
|
specflow upgrade
|
|
116
116
|
specflow upgrade --yes
|
|
117
|
-
specflow upgrade --to 2.
|
|
117
|
+
specflow upgrade --to 2.2.0
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
`version` shows the installed CLI and public advice from the selected origin.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Command } from "commander";
|
|
2
|
+
import type { ResourceCommandRuntime } from "./resource-command-runtime.js";
|
|
3
|
+
export declare function registerAcceptanceCommands(program: Command, runtime: ResourceCommandRuntime, dependencies: {
|
|
4
|
+
readonly environment: Readonly<Record<string, string | undefined>>;
|
|
5
|
+
readonly stderr: (message: string) => void;
|
|
6
|
+
readonly fetch: (request: Request) => Promise<Response>;
|
|
7
|
+
}): void;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { InvalidArgumentError } from "commander";
|
|
2
|
+
import { basename, extname } from "node:path";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { readBoundedFile, validateUploadReservation } from "./work-item-asset-commands.js";
|
|
5
|
+
/**
|
|
6
|
+
* ADR 0182: the acceptance Agent's own steps on the run it was handed. `specflow agent run`
|
|
7
|
+
* starts the Agent with `SPEC_FLOW_AGENT`, `SPECFLOW_WORKSPACE_ID` and
|
|
8
|
+
* `SPECFLOW_ACCEPTANCE_RUN` set, so the Agent names only the run number; SpecFlow accepts a
|
|
9
|
+
* step only from the run's Agent while the run is running.
|
|
10
|
+
*/
|
|
11
|
+
const verdicts = ["passed", "failed", "unverifiable", "undecided"];
|
|
12
|
+
/** Screenshots only for now; the server accepts the same types and size. */
|
|
13
|
+
const evidenceTypes = {
|
|
14
|
+
".png": "image/png",
|
|
15
|
+
".jpg": "image/jpeg",
|
|
16
|
+
".jpeg": "image/jpeg",
|
|
17
|
+
".webp": "image/webp",
|
|
18
|
+
".gif": "image/gif",
|
|
19
|
+
};
|
|
20
|
+
const maximumEvidenceBytes = 10 * 1024 * 1024;
|
|
21
|
+
const maximumEvidenceFiles = 10;
|
|
22
|
+
const evidenceFile = (value, previous = []) => {
|
|
23
|
+
if (evidenceTypes[extname(value).toLowerCase()] === undefined)
|
|
24
|
+
throw new InvalidArgumentError("Evidence must be a .png, .jpg, .jpeg, .webp or .gif file");
|
|
25
|
+
if (previous.length >= maximumEvidenceFiles)
|
|
26
|
+
throw new InvalidArgumentError(`At most ${String(maximumEvidenceFiles)} evidence files`);
|
|
27
|
+
return [...previous, value];
|
|
28
|
+
};
|
|
29
|
+
const reservationSchema = z.object({
|
|
30
|
+
evidenceId: z.string().min(1),
|
|
31
|
+
uploadUrl: z.url(),
|
|
32
|
+
expiresAt: z.iso.datetime(),
|
|
33
|
+
headers: z.record(z.string(), z.string()),
|
|
34
|
+
});
|
|
35
|
+
const runNumber = (value) => {
|
|
36
|
+
const parsed = z.coerce.number().int().positive().max(2_147_483_647).safeParse(value);
|
|
37
|
+
if (!parsed.success)
|
|
38
|
+
throw new InvalidArgumentError("Run number must be a positive integer");
|
|
39
|
+
return parsed.data;
|
|
40
|
+
};
|
|
41
|
+
const identity = (label) => (value) => {
|
|
42
|
+
const parsed = z.string().trim().min(1).max(200).safeParse(value);
|
|
43
|
+
if (!parsed.success)
|
|
44
|
+
throw new InvalidArgumentError(`${label} must be 1 to 200 characters`);
|
|
45
|
+
return parsed.data;
|
|
46
|
+
};
|
|
47
|
+
const verdict = (value) => {
|
|
48
|
+
const parsed = z.enum(verdicts).safeParse(value);
|
|
49
|
+
if (!parsed.success)
|
|
50
|
+
throw new InvalidArgumentError(`Verdict must be one of ${verdicts.join(", ")}`);
|
|
51
|
+
return parsed.data;
|
|
52
|
+
};
|
|
53
|
+
const text = (label, max) => (value) => {
|
|
54
|
+
const parsed = z.string().trim().min(1).max(max).safeParse(value);
|
|
55
|
+
if (!parsed.success)
|
|
56
|
+
throw new InvalidArgumentError(`${label} must be 1 to ${String(max)} characters`);
|
|
57
|
+
return parsed.data;
|
|
58
|
+
};
|
|
59
|
+
export function registerAcceptanceCommands(program, runtime, dependencies) {
|
|
60
|
+
const { environment } = dependencies;
|
|
61
|
+
const usage = (message) => {
|
|
62
|
+
dependencies.stderr(`${message}\n`);
|
|
63
|
+
runtime.setExitCode(2);
|
|
64
|
+
};
|
|
65
|
+
const acceptance = program
|
|
66
|
+
.command("acceptance")
|
|
67
|
+
.description("The acceptance Agent's steps on its acceptance run: read it, report each Spec and Scenario, hand in or give up");
|
|
68
|
+
const workspaceOf = (options) => {
|
|
69
|
+
const value = options.workspaceId ?? environment.SPECFLOW_WORKSPACE_ID;
|
|
70
|
+
return value === undefined || value.trim().length === 0 ? null : value.trim();
|
|
71
|
+
};
|
|
72
|
+
const scoped = (command) => command
|
|
73
|
+
.argument("<run>", "Acceptance run number", runNumber)
|
|
74
|
+
.option("--workspace-id <id>", "Workspace (defaults to SPECFLOW_WORKSPACE_ID)")
|
|
75
|
+
.option("--json", "Emit structured JSON (the default)");
|
|
76
|
+
const missingWorkspace = () => {
|
|
77
|
+
usage("Pass --workspace-id or set SPECFLOW_WORKSPACE_ID");
|
|
78
|
+
};
|
|
79
|
+
scoped(acceptance
|
|
80
|
+
.command("context")
|
|
81
|
+
.description("Read the run: its Specs pinned to a revision, their Scenarios and results so far")).action(async (run, options) => {
|
|
82
|
+
const workspaceId = workspaceOf(options);
|
|
83
|
+
if (workspaceId === null) {
|
|
84
|
+
missingWorkspace();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
runtime.setExitCode(await runtime.run((client) => client.GET("/v1/workspaces/{workspaceId}/acceptance-runs/{runNumber}", {
|
|
88
|
+
params: { path: { workspaceId, runNumber: run } },
|
|
89
|
+
})));
|
|
90
|
+
});
|
|
91
|
+
scoped(acceptance
|
|
92
|
+
.command("spec")
|
|
93
|
+
.description("Report that you start checking a Spec, or that every Scenario of it has a result")
|
|
94
|
+
.requiredOption("--spec <specId>", "Spec ID, for example GON-S62", identity("Spec ID"))
|
|
95
|
+
.option("--start", "You start checking this Spec")
|
|
96
|
+
.option("--done", "Every Scenario of this Spec has a result")).action(async (run, options) => {
|
|
97
|
+
const workspaceId = workspaceOf(options);
|
|
98
|
+
if (workspaceId === null) {
|
|
99
|
+
missingWorkspace();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (options.start === true && options.done === true) {
|
|
103
|
+
usage("Pass either --start or --done");
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (options.start !== true && options.done !== true) {
|
|
107
|
+
usage("Pass --start or --done");
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
runtime.setExitCode(await runtime.run((client) => client.POST("/v1/workspaces/{workspaceId}/acceptance-runs/{runNumber}/specs/{specId}/progress", {
|
|
111
|
+
params: { path: { workspaceId, runNumber: run, specId: options.spec } },
|
|
112
|
+
body: { progress: options.done === true ? "done" : "checking" },
|
|
113
|
+
}), { retryTransportOnce: true }));
|
|
114
|
+
});
|
|
115
|
+
scoped(acceptance
|
|
116
|
+
.command("result")
|
|
117
|
+
.description("Submit one Scenario's verdict; submitting again replaces it while the run is open")
|
|
118
|
+
.requiredOption("--spec <specId>", "Spec ID", identity("Spec ID"))
|
|
119
|
+
.requiredOption("--scenario <scenarioId>", "Scenario ID, for example GON-S62-3", identity("Scenario ID"))
|
|
120
|
+
.requiredOption("--verdict <verdict>", verdicts.join(" | "), verdict)
|
|
121
|
+
.option("--observed <text>", "What you saw; required for failed and unverifiable", text("Observation", 2_000))
|
|
122
|
+
.option("--evidence <file>", "A screenshot (.png .jpg .webp .gif, up to 10MB) to attach; repeat for more", evidenceFile)).action(async (run, options) => {
|
|
123
|
+
const workspaceId = workspaceOf(options);
|
|
124
|
+
if (workspaceId === null) {
|
|
125
|
+
missingWorkspace();
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
runtime.setExitCode(await runtime.run(async (client) => {
|
|
129
|
+
// Each screenshot is uploaded and frozen before the verdict, so a result never
|
|
130
|
+
// points at evidence that is not there. A failure stops before the verdict.
|
|
131
|
+
for (const path of options.evidence ?? []) {
|
|
132
|
+
let bytes;
|
|
133
|
+
try {
|
|
134
|
+
bytes = await readBoundedFile(path, maximumEvidenceBytes);
|
|
135
|
+
}
|
|
136
|
+
catch {
|
|
137
|
+
return {
|
|
138
|
+
response: new Response(null, { status: 400 }),
|
|
139
|
+
error: {
|
|
140
|
+
code: "INVALID_EVIDENCE_FILE",
|
|
141
|
+
message: `Evidence ${basename(path)} is unreadable, empty or larger than 10MB; nothing was submitted`,
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
const reserved = await client.POST("/v1/workspaces/{workspaceId}/acceptance-runs/{runNumber}/evidence/uploads", {
|
|
146
|
+
params: { path: { workspaceId, runNumber: run } },
|
|
147
|
+
body: {
|
|
148
|
+
specId: options.spec,
|
|
149
|
+
scenarioId: options.scenario,
|
|
150
|
+
filename: basename(path),
|
|
151
|
+
contentType: evidenceTypes[extname(path).toLowerCase()] ?? "image/png",
|
|
152
|
+
size: bytes.byteLength,
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
const reservation = reservationSchema.safeParse(reserved.data);
|
|
156
|
+
if (!reserved.response.ok || !reservation.success)
|
|
157
|
+
return reserved;
|
|
158
|
+
let url;
|
|
159
|
+
try {
|
|
160
|
+
url = validateUploadReservation({
|
|
161
|
+
uploadId: "00000000-0000-4000-8000-000000000000",
|
|
162
|
+
uploadUrl: reservation.data.uploadUrl,
|
|
163
|
+
expiresAt: reservation.data.expiresAt,
|
|
164
|
+
headers: { "Content-Type": reservation.data.headers["Content-Type"] ?? "" },
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
catch {
|
|
168
|
+
return {
|
|
169
|
+
response: new Response(null, { status: 502 }),
|
|
170
|
+
error: {
|
|
171
|
+
code: "INVALID_UPLOAD_RESERVATION",
|
|
172
|
+
message: "The upload reservation is unusable; nothing was submitted",
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
const put = await dependencies.fetch(new Request(url, {
|
|
177
|
+
method: "PUT",
|
|
178
|
+
headers: reservation.data.headers,
|
|
179
|
+
body: new Uint8Array(bytes),
|
|
180
|
+
redirect: "error",
|
|
181
|
+
credentials: "omit",
|
|
182
|
+
signal: AbortSignal.timeout(60_000),
|
|
183
|
+
}));
|
|
184
|
+
await put.body?.cancel();
|
|
185
|
+
if (!put.ok)
|
|
186
|
+
return {
|
|
187
|
+
response: put,
|
|
188
|
+
error: {
|
|
189
|
+
code: "EVIDENCE_UPLOAD_FAILED",
|
|
190
|
+
message: `Uploading ${basename(path)} failed; nothing was submitted, try again`,
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
const finalized = await client.POST("/v1/workspaces/{workspaceId}/acceptance-runs/{runNumber}/evidence/{evidenceId}/finalize", {
|
|
194
|
+
params: {
|
|
195
|
+
path: { workspaceId, runNumber: run, evidenceId: reservation.data.evidenceId },
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
if (!finalized.response.ok)
|
|
199
|
+
return finalized;
|
|
200
|
+
}
|
|
201
|
+
return await client.PUT("/v1/workspaces/{workspaceId}/acceptance-runs/{runNumber}/results/{specId}/{scenarioId}", {
|
|
202
|
+
params: {
|
|
203
|
+
path: {
|
|
204
|
+
workspaceId,
|
|
205
|
+
runNumber: run,
|
|
206
|
+
specId: options.spec,
|
|
207
|
+
scenarioId: options.scenario,
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
body: { verdict: options.verdict, observed: options.observed ?? null },
|
|
211
|
+
});
|
|
212
|
+
}, { retryTransportOnce: true }));
|
|
213
|
+
});
|
|
214
|
+
scoped(acceptance
|
|
215
|
+
.command("finish")
|
|
216
|
+
.description("Hand in the run once every Spec is done")
|
|
217
|
+
.requiredOption("--environment <name>", "The environment you checked in", text("Environment", 100))
|
|
218
|
+
.option("--frontend-version <version>", "The front-end version you saw", text("Front-end version", 100))).action(async (run, options) => {
|
|
219
|
+
const workspaceId = workspaceOf(options);
|
|
220
|
+
if (workspaceId === null) {
|
|
221
|
+
missingWorkspace();
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
runtime.setExitCode(await runtime.run((client) => client.POST("/v1/workspaces/{workspaceId}/acceptance-runs/{runNumber}/finish", {
|
|
225
|
+
params: { path: { workspaceId, runNumber: run } },
|
|
226
|
+
body: {
|
|
227
|
+
environment: options.environment,
|
|
228
|
+
frontendVersion: options.frontendVersion ?? null,
|
|
229
|
+
},
|
|
230
|
+
}), { retryTransportOnce: true }));
|
|
231
|
+
});
|
|
232
|
+
scoped(acceptance
|
|
233
|
+
.command("abort")
|
|
234
|
+
.description("Record that the run could not be completed, and why; results already submitted stay")
|
|
235
|
+
.requiredOption("--reason <text>", "Why the run cannot go on", text("Reason", 500))).action(async (run, options) => {
|
|
236
|
+
const workspaceId = workspaceOf(options);
|
|
237
|
+
if (workspaceId === null) {
|
|
238
|
+
missingWorkspace();
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
runtime.setExitCode(await runtime.run((client) => client.POST("/v1/workspaces/{workspaceId}/acceptance-runs/{runNumber}/abort", {
|
|
242
|
+
params: { path: { workspaceId, runNumber: run } },
|
|
243
|
+
body: { reason: options.reason },
|
|
244
|
+
}), { retryTransportOnce: true }));
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=acceptance-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acceptance-commands.js","sourceRoot":"","sources":["../src/acceptance-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAgB,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,M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validArgumentError } from "commander";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
+
import { registerAcceptanceCommands } from "./acceptance-commands.js";
|
|
4
5
|
import { registerAgentCommands } from "./agent-commands.js";
|
|
5
6
|
import { addAuthenticationCommandTopology } from "./authentication-command-topology.js";
|
|
6
7
|
import { registerBoardCommands } from "./board-commands.js";
|
|
@@ -1722,6 +1723,7 @@ export async function runCli(arguments_, originalDependencies) {
|
|
|
1722
1723
|
parseLimit: parseSearchLimit,
|
|
1723
1724
|
};
|
|
1724
1725
|
registerSpecOwnerCommands(spec, resourceRuntime);
|
|
1726
|
+
registerAcceptanceCommands(program, resourceRuntime, dependencies);
|
|
1725
1727
|
registerSpecDiscussionCommands(spec, resourceRuntime);
|
|
1726
1728
|
registerProjectAdministrationCommands(project, workspace, resourceRuntime);
|
|
1727
1729
|
program
|