@wrongstack/sdd 0.295.1 → 0.296.3
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/dist/graph-split.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +444 -202
- package/dist/index.js.map +4 -4
- package/dist/project-context.d.ts +6 -0
- package/dist/project-context.d.ts.map +1 -0
- package/dist/sdd-interview-driver.d.ts +15 -0
- package/dist/sdd-interview-driver.d.ts.map +1 -1
- package/dist/sdd-lifecycle.d.ts.map +1 -1
- package/dist/sdd-parallel-run-types.d.ts +200 -0
- package/dist/sdd-parallel-run-types.d.ts.map +1 -0
- package/dist/sdd-parallel-run.d.ts +22 -198
- package/dist/sdd-parallel-run.d.ts.map +1 -1
- package/dist/sdd-task-execution.d.ts +28 -0
- package/dist/sdd-task-execution.d.ts.map +1 -0
- package/dist/spec-builder.d.ts +33 -2
- package/dist/spec-builder.d.ts.map +1 -1
- package/dist/verify-task.d.ts +21 -4
- package/dist/verify-task.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/verify-task.d.ts
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import type { TaskNode, TaskResult } from '@wrongstack/core/types';
|
|
2
2
|
export interface CommandVerifierOptions {
|
|
3
|
-
/** Metadata key holding the
|
|
3
|
+
/** Metadata key holding the verification command. Default 'verificationCommand'. */
|
|
4
4
|
metadataKey?: string;
|
|
5
5
|
/** Kill + fail the verification after this many ms. Default 180_000 (3 min). */
|
|
6
6
|
timeoutMs?: number;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Tokenize a command string into an argv array **without** shell interpolation.
|
|
10
|
+
*
|
|
11
|
+
* Splits on whitespace while respecting single and double quotes (matching
|
|
12
|
+
* POSIX shell quoting rules for the common cases). Shell metacharacters
|
|
13
|
+
* (`;`, `|`, `&&`, `$()`, backticks, `>`, `<`) that appear *inside* a token
|
|
14
|
+
* are preserved as literal characters — they are passed to the executable as
|
|
15
|
+
* argument data, never interpreted by a shell.
|
|
16
|
+
*
|
|
17
|
+
* Returns `undefined` when the input is empty/whitespace or contains
|
|
18
|
+
* unbalanced quotes (which would indicate a malformed command).
|
|
19
|
+
*/
|
|
20
|
+
export declare function tokenizeCommand(command: string): string[] | undefined;
|
|
9
21
|
/** Shape shared by every SDD task verifier (matches SddParallelRunOptions.verifyTask). */
|
|
10
22
|
export type SddVerifyTask = (info: {
|
|
11
23
|
task: TaskNode;
|
|
@@ -38,8 +50,13 @@ export declare function makeAcceptanceCriteriaVerifier(options: AcceptanceCriter
|
|
|
38
50
|
/**
|
|
39
51
|
* Build a `verifyTask` closure (shape matches {@link SddParallelRunOptions.verifyTask}).
|
|
40
52
|
* Returns `{ ok: true }` immediately when the task carries no verification command,
|
|
41
|
-
* otherwise spawns the command in `cwd`
|
|
42
|
-
* `{ ok: false, reason }` on non-zero exit,
|
|
53
|
+
* otherwise spawns the command in `cwd` as `executable + argv` with `shell: false`
|
|
54
|
+
* (no shell interpolation), and resolves `{ ok: false, reason }` on non-zero exit,
|
|
55
|
+
* spawn error, malformed command, or timeout.
|
|
56
|
+
*
|
|
57
|
+
* Defense-in-depth: even if the authorization gate on `set_task_verification`
|
|
58
|
+
* were bypassed, shell metacharacters (`;`, `|`, `&&`, `$()`, etc.) are tokenized
|
|
59
|
+
* into literal arguments rather than being interpreted by a shell.
|
|
43
60
|
*/
|
|
44
61
|
export declare function makeCommandVerifier(options?: CommandVerifierOptions): (info: {
|
|
45
62
|
task: TaskNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-task.d.ts","sourceRoot":"","sources":["../src/verify-task.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-task.d.ts","sourceRoot":"","sources":["../src/verify-task.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,C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
"version": "0.
|
|
3
|
+
"version": "0.296.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack Spec-Driven Development engine — standalone package extracted from @wrongstack/core. Task graph generation, tracking, execution, lifecycle management, and AI-driven spec building for SDD workflows.",
|
|
6
6
|
"repository": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wrongstack/core": "0.
|
|
30
|
-
"@wrongstack/kanban": "0.
|
|
29
|
+
"@wrongstack/core": "0.296.3",
|
|
30
|
+
"@wrongstack/kanban": "0.296.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^26.1.1",
|