cyber-sdd 0.4.1 → 0.4.2

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.
@@ -12,3 +12,8 @@ and the frozen 21-scenario contract.
12
12
  - **Script:** [`scripts/touch-set-correction.mts`](./scripts/touch-set-correction.mts)
13
13
  - **Tests:** [`scripts/touch-set-correction.test.mts`](./scripts/touch-set-correction.test.mts)
14
14
  (`node:test`) — one test per frozen scenario, titled `scenario: <verbatim frozen scenario name>`.
15
+ [`scripts/touch-set-correction-installed.test.mts`](./scripts/touch-set-correction-installed.test.mts)
16
+ runs the engine from a copy of the plugin's files, with no `node_modules`.
17
+
18
+ The engine imports gherkin-cli from the spec gate's committed bundle
19
+ (`../spec-gate/vendor/gherkin-cli.mjs`), so it runs from an installed plugin.
@@ -30,7 +30,7 @@ import { execFileSync } from 'node:child_process'
30
30
  import { readFileSync, realpathSync } from 'node:fs'
31
31
  import { dirname, join, relative, resolve, sep } from 'node:path'
32
32
  import { fileURLToPath, pathToFileURL } from 'node:url'
33
- import { diff as gherkinDiff, type ReadsGitDiff } from 'gherkin-cli'
33
+ import { diff as gherkinDiff, type ReadsGitDiff } from '../../spec-gate/vendor/gherkin-cli.mjs'
34
34
 
35
35
  // ── Types ──
36
36
 
@@ -8,7 +8,12 @@ script that unions one or more junit (today) result sources against the scenario
8
8
 
9
9
  - **Skill contract:** [`SKILL.md`](./SKILL.md)
10
10
  - **Script:** [`scripts/verify-scenarios.mts`](./scripts/verify-scenarios.mts)
11
- - **Tests:** [`scripts/verify-scenarios.test.mts`](./scripts/verify-scenarios.test.mts) (`node:test`)
11
+ - **Tests:** [`scripts/verify-scenarios.test.mts`](./scripts/verify-scenarios.test.mts) (`node:test`);
12
+ [`scripts/verify-scenarios-installed.test.mts`](./scripts/verify-scenarios-installed.test.mts)
13
+ runs the engine from a copy of the plugin's files, with no `node_modules`
14
+
15
+ The engine imports gherkin-cli from the spec gate's committed bundle
16
+ (`../spec-gate/vendor/gherkin-cli.mjs`), so it runs from an installed plugin.
12
17
 
13
18
  ```bash
14
19
  node scripts/verify-scenarios.mts --feature .agents/spec/identity/identity.feature --node cyberlegion/identity
@@ -49,7 +49,7 @@ import { execSync } from 'node:child_process'
49
49
  import { existsSync, readFileSync, realpathSync } from 'node:fs'
50
50
  import { isAbsolute, join } from 'node:path'
51
51
  import { pathToFileURL } from 'node:url'
52
- import { parse } from 'gherkin-cli'
52
+ import { parse } from '../../spec-gate/vendor/gherkin-cli.mjs'
53
53
 
54
54
  // Resolves a path argument against `--root`: relative paths join beneath root (which defaults to the
55
55
  // current directory); an absolute path is used verbatim, never double-prefixed under root.