@sun-asterisk/sungen 3.2.17 → 3.2.18

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.
Files changed (187) hide show
  1. package/dist/cli/commands/audit.d.ts.map +1 -1
  2. package/dist/cli/commands/audit.js +23 -0
  3. package/dist/cli/commands/audit.js.map +1 -1
  4. package/dist/cli/commands/delivery.d.ts.map +1 -1
  5. package/dist/cli/commands/delivery.js +209 -16
  6. package/dist/cli/commands/delivery.js.map +1 -1
  7. package/dist/cli/index.js +5 -0
  8. package/dist/cli/index.js.map +1 -1
  9. package/dist/dashboard/snapshot-builder.d.ts.map +1 -1
  10. package/dist/dashboard/snapshot-builder.js +8 -1
  11. package/dist/dashboard/snapshot-builder.js.map +1 -1
  12. package/dist/dashboard/templates/index.html +1 -1
  13. package/dist/exporters/api-environment.d.ts +11 -0
  14. package/dist/exporters/api-environment.d.ts.map +1 -0
  15. package/dist/exporters/api-environment.js +129 -0
  16. package/dist/exporters/api-environment.js.map +1 -0
  17. package/dist/exporters/feature-parser.d.ts +16 -1
  18. package/dist/exporters/feature-parser.d.ts.map +1 -1
  19. package/dist/exporters/feature-parser.js +21 -2
  20. package/dist/exporters/feature-parser.js.map +1 -1
  21. package/dist/exporters/matrix/build.d.ts +70 -0
  22. package/dist/exporters/matrix/build.d.ts.map +1 -0
  23. package/dist/exporters/matrix/build.js +516 -0
  24. package/dist/exporters/matrix/build.js.map +1 -0
  25. package/dist/exporters/matrix/export.d.ts +50 -0
  26. package/dist/exporters/matrix/export.d.ts.map +1 -0
  27. package/dist/exporters/matrix/export.js +152 -0
  28. package/dist/exporters/matrix/export.js.map +1 -0
  29. package/dist/exporters/matrix/fingerprint.d.ts +20 -0
  30. package/dist/exporters/matrix/fingerprint.d.ts.map +1 -0
  31. package/dist/exporters/matrix/fingerprint.js +83 -0
  32. package/dist/exporters/matrix/fingerprint.js.map +1 -0
  33. package/dist/exporters/matrix/gates.d.ts +21 -0
  34. package/dist/exporters/matrix/gates.d.ts.map +1 -0
  35. package/dist/exporters/matrix/gates.js +367 -0
  36. package/dist/exporters/matrix/gates.js.map +1 -0
  37. package/dist/exporters/matrix/map-loader.d.ts +22 -0
  38. package/dist/exporters/matrix/map-loader.d.ts.map +1 -0
  39. package/dist/exporters/matrix/map-loader.js +193 -0
  40. package/dist/exporters/matrix/map-loader.js.map +1 -0
  41. package/dist/exporters/matrix/render-csv.d.ts +9 -0
  42. package/dist/exporters/matrix/render-csv.d.ts.map +1 -0
  43. package/dist/exporters/matrix/render-csv.js +92 -0
  44. package/dist/exporters/matrix/render-csv.js.map +1 -0
  45. package/dist/exporters/matrix/render-xlsx.d.ts +41 -0
  46. package/dist/exporters/matrix/render-xlsx.d.ts.map +1 -0
  47. package/dist/exporters/matrix/render-xlsx.js +430 -0
  48. package/dist/exporters/matrix/render-xlsx.js.map +1 -0
  49. package/dist/exporters/matrix/types.d.ts +199 -0
  50. package/dist/exporters/matrix/types.d.ts.map +1 -0
  51. package/dist/exporters/matrix/types.js +15 -0
  52. package/dist/exporters/matrix/types.js.map +1 -0
  53. package/dist/exporters/matrix/wording.d.ts +61 -0
  54. package/dist/exporters/matrix/wording.d.ts.map +1 -0
  55. package/dist/exporters/matrix/wording.js +221 -0
  56. package/dist/exporters/matrix/wording.js.map +1 -0
  57. package/dist/exporters/scenario-merger.d.ts.map +1 -1
  58. package/dist/exporters/scenario-merger.js +2 -1
  59. package/dist/exporters/scenario-merger.js.map +1 -1
  60. package/dist/exporters/spec-parser.d.ts.map +1 -1
  61. package/dist/exporters/spec-parser.js +2 -1
  62. package/dist/exporters/spec-parser.js.map +1 -1
  63. package/dist/exporters/xlsx-report-builder.d.ts +1 -1
  64. package/dist/exporters/xlsx-report-builder.d.ts.map +1 -1
  65. package/dist/exporters/xlsx-report-builder.js +3 -3
  66. package/dist/exporters/xlsx-report-builder.js.map +1 -1
  67. package/dist/harness/audit.d.ts +10 -0
  68. package/dist/harness/audit.d.ts.map +1 -1
  69. package/dist/harness/audit.js +98 -16
  70. package/dist/harness/audit.js.map +1 -1
  71. package/dist/harness/blindspot.d.ts.map +1 -1
  72. package/dist/harness/blindspot.js +2 -1
  73. package/dist/harness/blindspot.js.map +1 -1
  74. package/dist/harness/capability-plan.d.ts +2 -0
  75. package/dist/harness/capability-plan.d.ts.map +1 -1
  76. package/dist/harness/capability-plan.js +17 -4
  77. package/dist/harness/capability-plan.js.map +1 -1
  78. package/dist/harness/feedback.d.ts.map +1 -1
  79. package/dist/harness/feedback.js +3 -2
  80. package/dist/harness/feedback.js.map +1 -1
  81. package/dist/harness/flow-check.d.ts.map +1 -1
  82. package/dist/harness/flow-check.js +2 -1
  83. package/dist/harness/flow-check.js.map +1 -1
  84. package/dist/harness/flow-plan.d.ts.map +1 -1
  85. package/dist/harness/flow-plan.js +3 -2
  86. package/dist/harness/flow-plan.js.map +1 -1
  87. package/dist/harness/intent.d.ts.map +1 -1
  88. package/dist/harness/intent.js +2 -1
  89. package/dist/harness/intent.js.map +1 -1
  90. package/dist/harness/journey.d.ts.map +1 -1
  91. package/dist/harness/journey.js +3 -2
  92. package/dist/harness/journey.js.map +1 -1
  93. package/dist/harness/ledger.d.ts.map +1 -1
  94. package/dist/harness/ledger.js +3 -2
  95. package/dist/harness/ledger.js.map +1 -1
  96. package/dist/harness/manifest.d.ts.map +1 -1
  97. package/dist/harness/manifest.js +4 -3
  98. package/dist/harness/manifest.js.map +1 -1
  99. package/dist/harness/parse.d.ts.map +1 -1
  100. package/dist/harness/parse.js +16 -3
  101. package/dist/harness/parse.js.map +1 -1
  102. package/dist/harness/quality-gates.d.ts.map +1 -1
  103. package/dist/harness/quality-gates.js +2 -1
  104. package/dist/harness/quality-gates.js.map +1 -1
  105. package/dist/harness/read-text.d.ts +22 -0
  106. package/dist/harness/read-text.d.ts.map +1 -0
  107. package/dist/harness/read-text.js +64 -0
  108. package/dist/harness/read-text.js.map +1 -0
  109. package/dist/harness/script-check.d.ts.map +1 -1
  110. package/dist/harness/script-check.js +3 -2
  111. package/dist/harness/script-check.js.map +1 -1
  112. package/dist/harness/sensors.d.ts +13 -1
  113. package/dist/harness/sensors.d.ts.map +1 -1
  114. package/dist/harness/sensors.js +63 -20
  115. package/dist/harness/sensors.js.map +1 -1
  116. package/dist/harness/spec-coverage.d.ts +5 -0
  117. package/dist/harness/spec-coverage.d.ts.map +1 -1
  118. package/dist/harness/spec-coverage.js +17 -7
  119. package/dist/harness/spec-coverage.js.map +1 -1
  120. package/dist/harness/trace.d.ts.map +1 -1
  121. package/dist/harness/trace.js +4 -3
  122. package/dist/harness/trace.js.map +1 -1
  123. package/dist/harness/viewpoint-baseline.d.ts +49 -0
  124. package/dist/harness/viewpoint-baseline.d.ts.map +1 -0
  125. package/dist/harness/viewpoint-baseline.js +141 -0
  126. package/dist/harness/viewpoint-baseline.js.map +1 -0
  127. package/dist/harness/viewpoint-ledger.d.ts.map +1 -1
  128. package/dist/harness/viewpoint-ledger.js +2 -1
  129. package/dist/harness/viewpoint-ledger.js.map +1 -1
  130. package/dist/orchestrator/assets-drift.d.ts +24 -0
  131. package/dist/orchestrator/assets-drift.d.ts.map +1 -0
  132. package/dist/orchestrator/assets-drift.js +80 -0
  133. package/dist/orchestrator/assets-drift.js.map +1 -0
  134. package/dist/orchestrator/templates/ai-src/commands/create-test.md +24 -0
  135. package/dist/orchestrator/templates/ai-src/commands/delivery.md +203 -120
  136. package/dist/orchestrator/templates/ai-src/config/claude.md +1 -1
  137. package/dist/orchestrator/templates/ai-src/config/copilot.md +1 -1
  138. package/dist/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +102 -6
  139. package/dist/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +1 -0
  140. package/dist/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +23 -0
  141. package/package.json +3 -3
  142. package/src/cli/commands/audit.ts +23 -1
  143. package/src/cli/commands/delivery.ts +240 -18
  144. package/src/cli/index.ts +6 -0
  145. package/src/dashboard/snapshot-builder.ts +8 -1
  146. package/src/dashboard/templates/index.html +1 -1
  147. package/src/exporters/api-environment.ts +97 -0
  148. package/src/exporters/feature-parser.ts +21 -2
  149. package/src/exporters/matrix/build.ts +551 -0
  150. package/src/exporters/matrix/export.ts +149 -0
  151. package/src/exporters/matrix/fingerprint.ts +49 -0
  152. package/src/exporters/matrix/gates.ts +400 -0
  153. package/src/exporters/matrix/map-loader.ts +163 -0
  154. package/src/exporters/matrix/render-csv.ts +94 -0
  155. package/src/exporters/matrix/render-xlsx.ts +420 -0
  156. package/src/exporters/matrix/types.ts +226 -0
  157. package/src/exporters/matrix/wording.ts +221 -0
  158. package/src/exporters/scenario-merger.ts +2 -1
  159. package/src/exporters/spec-parser.ts +2 -1
  160. package/src/exporters/xlsx-report-builder.ts +3 -2
  161. package/src/harness/audit.ts +104 -18
  162. package/src/harness/blindspot.ts +2 -1
  163. package/src/harness/capability-plan.ts +17 -4
  164. package/src/harness/feedback.ts +3 -2
  165. package/src/harness/flow-check.ts +2 -1
  166. package/src/harness/flow-plan.ts +3 -2
  167. package/src/harness/intent.ts +2 -1
  168. package/src/harness/journey.ts +3 -2
  169. package/src/harness/ledger.ts +3 -2
  170. package/src/harness/manifest.ts +4 -3
  171. package/src/harness/parse.ts +17 -3
  172. package/src/harness/quality-gates.ts +2 -1
  173. package/src/harness/read-text.ts +28 -0
  174. package/src/harness/script-check.ts +3 -2
  175. package/src/harness/sensors.ts +55 -8
  176. package/src/harness/spec-coverage.ts +22 -7
  177. package/src/harness/trace.ts +4 -3
  178. package/src/harness/viewpoint-baseline.ts +128 -0
  179. package/src/harness/viewpoint-ledger.ts +2 -1
  180. package/src/orchestrator/assets-drift.ts +64 -0
  181. package/src/orchestrator/templates/ai-src/commands/create-test.md +24 -0
  182. package/src/orchestrator/templates/ai-src/commands/delivery.md +203 -120
  183. package/src/orchestrator/templates/ai-src/config/claude.md +1 -1
  184. package/src/orchestrator/templates/ai-src/config/copilot.md +1 -1
  185. package/src/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +102 -6
  186. package/src/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +1 -0
  187. package/src/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +23 -0
@@ -0,0 +1,199 @@
1
+ /**
2
+ * Delivery v2 — Test Case & Coverage Matrix model (docs/spec/delivery-coverage-matrix-spec.md).
3
+ *
4
+ * Gherkin stays the source of test meaning; the matrix is a derived presentation:
5
+ * one delivery item = one target + one intent + one oracle family, containing one or
6
+ * more atomic coverage variants (scenario / @cases row). Grouping semantics live in the
7
+ * committed Delivery Map (`qa/<kind>/<unit>/delivery/<unit>.map.yaml`) — AI-proposed,
8
+ * gate-validated, QA-approved.
9
+ */
10
+ import { PlaywrightResult } from '../types';
11
+ export type MapCategory = 'normal' | 'abnormal' | 'security' | 'nfr';
12
+ export type ReviewState = 'proposed' | 'approved';
13
+ export type DispositionKind = 'excluded' | 'blocked' | 'covered_elsewhere' | 'accepted_risk';
14
+ export interface MapGroup {
15
+ /** Stable delivery id, unique per unit, order-independent (e.g. DI-EMAIL-FORMAT). */
16
+ id: string;
17
+ /** ONE primary target: field/component dot-path, function/flow phrase, or `METHOD /path`. */
18
+ target: string;
19
+ /** One coherent test intent (the primary behavior/rule verified). */
20
+ intent: string;
21
+ /** Oracle family in words — the shared Pass/Fail observation. */
22
+ oracle: string;
23
+ category: MapCategory;
24
+ review: ReviewState;
25
+ /** Optional short digest of the coverage dimensions this item varies over
26
+ * (e.g. "required ×3 · format ×9 · full-width ×2"). Rendered on the parent row
27
+ * instead of concatenating every variant's title — the compact review view. */
28
+ dimensions?: string;
29
+ /** Variant refs: `VP-ID` (all @cases rows when the scenario has a dataset) or `VP-ID#label`. */
30
+ variants: string[];
31
+ }
32
+ export interface MapDisposition {
33
+ as: DispositionKind;
34
+ reason?: string;
35
+ }
36
+ export type RequirementStatus = 'covered' | 'partially_covered' | 'covered_elsewhere' | 'planned' | 'gap' | 'not_applicable';
37
+ export interface RequirementOverride {
38
+ status: RequirementStatus;
39
+ note?: string;
40
+ }
41
+ export interface DeliveryMap {
42
+ version: number;
43
+ unit: string;
44
+ /** ISO form number rendered in the workbook masthead (default BM-2-901-13). */
45
+ formNo?: string;
46
+ groups: MapGroup[];
47
+ /** VP-id → intentionally-not-grouped disposition. */
48
+ dispositions: Record<string, MapDisposition>;
49
+ /** Requirement-id → reviewed status override (partially_covered / not_applicable / …).
50
+ * Without an override a requirement is `covered` when a variant traces to it, else `gap`. */
51
+ requirements: Record<string, RequirementOverride>;
52
+ /** VP-id → scenario fingerprint stamped at approval time (drift detector input).
53
+ * The reserved key `__map__` holds the fingerprint of the map's own semantic
54
+ * content (groups + dispositions) so edited wording re-opens review (GAP-09). */
55
+ fingerprints: Record<string, string>;
56
+ }
57
+ /** Execution layers a variant verifies on — cross-checked with the verification scope. */
58
+ export type MatrixLayer = 'ui' | 'api' | 'db';
59
+ /**
60
+ * One atomic coverage variant — the unit of execution, result, and traceability.
61
+ * Backed by one scenario, or one `@cases` dataset row of a scenario.
62
+ */
63
+ export interface CoverageVariant {
64
+ /** `VP-ID` or `VP-ID#label` for a dataset row. */
65
+ ref: string;
66
+ vpId: string;
67
+ /** Dataset-row label when this variant is one `@cases` row. */
68
+ caseLabel?: string;
69
+ /** Human title (scenario name without the VP prefix; row label appended for @cases). */
70
+ title: string;
71
+ /** Viewpoint category from the VP prefix (LOGIC/VAL/UI/SEC/…). */
72
+ vpCategory: string;
73
+ priority: string;
74
+ /** 'auto' | 'manual'; manual keeps its @manual:Mx reason. */
75
+ mode: 'auto' | 'manual';
76
+ manualReason?: string;
77
+ layers: MatrixLayer[];
78
+ /** @spec:* requirement traces. */
79
+ traces: string[];
80
+ /** Variables this scenario produces at RUN TIME (`remember … as {{v}}`, capability
81
+ * bindings) — they never exist in test-data, so Gate D must not demand them. */
82
+ runtimeVars: string[];
83
+ /** Condition summary: differentiating dimension shown on the sub-row. */
84
+ condition: string;
85
+ /** Resolved data pairs (test-data values / dataset-row columns), `key: value` lines. */
86
+ data: string[];
87
+ /** Normalized trigger shape (When steps, `{{var}}` collapsed) — signature input. */
88
+ triggerShape: string[];
89
+ /** Trigger for display (When steps, vars resolved). */
90
+ trigger: string[];
91
+ /** Normalized oracle shape (Then steps / manual Observable+Oracle) — signature input. */
92
+ oracleShape: string[];
93
+ /** Oracle for display. */
94
+ oracle: string[];
95
+ /** HOW to check (manual `Oracle:` lines — tools, panes, queries). Rendered as
96
+ * "Verification method" under the expected result, never inside it. */
97
+ verification: string[];
98
+ /** Precondition profile: auth role + scenario-level Given shapes — signature input. */
99
+ preconditionProfile: string;
100
+ /** Human preconditions (auth + own Given steps). */
101
+ precondition: string[];
102
+ /** 'simple' (G*W*T*) | 'sequence' (mid-flow Given / multi round-trip) | 'manual'. */
103
+ procedureProfile: 'simple' | 'sequence' | 'manual';
104
+ /** Canonical scenario fingerprint (drift detection). */
105
+ fingerprint: string;
106
+ /** Execution result, when the run report has one for this variant. */
107
+ result?: PlaywrightResult;
108
+ }
109
+ export type ItemResult = 'passed' | 'failed' | 'blocked' | 'partial' | 'not_run' | 'na';
110
+ /** The exact word rendered in a variant's Result cell — the single vocabulary the
111
+ * parent's roll-up formula counts (COUNTIF is exact-match). */
112
+ export type VariantState = 'Passed' | 'Failed' | 'Blocked' | 'Pending' | 'N/A';
113
+ /** One summarized row in the matrix — a group of variants sharing the signature. */
114
+ export interface DeliveryItem {
115
+ id: string;
116
+ target: string;
117
+ intent: string;
118
+ oracle: string;
119
+ /** Short coverage-dimension digest from the map (compact parent view). */
120
+ dimensions?: string;
121
+ category: MapCategory;
122
+ review: ReviewState;
123
+ /** Highest priority among the variants (per-variant priorities stay on the sub-rows). */
124
+ priority: string;
125
+ /** Execution mode is a coverage dimension, not a split — 'mixed' when auto and
126
+ * manual variants share one intent (e.g. account states needing seeded data). */
127
+ mode: 'auto' | 'manual' | 'mixed';
128
+ layers: MatrixLayer[];
129
+ /** Union of variant traces (exact per-variant traces stay on the variants). */
130
+ traces: string[];
131
+ /** Preconditions shared by EVERY variant (the intersection) — written once here. */
132
+ precondition: string[];
133
+ /** Leading trigger steps shared by every variant — written once here; each
134
+ * variant renders only its remaining steps (`triggerDeltas`). */
135
+ trigger: string[];
136
+ variants: CoverageVariant[];
137
+ /** variant ref → its precondition lines that are not on the parent. */
138
+ preconditionDeltas: Record<string, string[]>;
139
+ /** variant ref → its trigger steps after the shared prefix. */
140
+ triggerDeltas: Record<string, string[]>;
141
+ /** Derived roll-up — never entered independently (Gate F). */
142
+ result: ItemResult;
143
+ resultCounts: {
144
+ passed: number;
145
+ failed: number;
146
+ blocked: number;
147
+ notRun: number;
148
+ na: number;
149
+ };
150
+ }
151
+ export interface MatrixDisposition {
152
+ vpId: string;
153
+ title: string;
154
+ as: DispositionKind;
155
+ reason: string;
156
+ }
157
+ /** One row of the requirement-coverage table (Coverage sheet). */
158
+ export interface RequirementCoverage {
159
+ id: string;
160
+ status: RequirementStatus;
161
+ /** Delivery items whose variants trace to this requirement. */
162
+ items: string[];
163
+ variantCount: number;
164
+ note: string;
165
+ }
166
+ export type GateId = 'A' | 'B' | 'C' | 'D' | 'E' | 'G' | 'K' | 'R' | 'W';
167
+ export type FindingSeverity = 'error' | 'review' | 'warning';
168
+ export interface MatrixFinding {
169
+ gate: GateId;
170
+ severity: FindingSeverity;
171
+ /** Delivery item / VP-id the finding anchors to, when applicable. */
172
+ ref?: string;
173
+ message: string;
174
+ }
175
+ export interface MatrixManifest {
176
+ unit: string;
177
+ transformerVersion: string;
178
+ sourceFingerprint: string;
179
+ mapFingerprint: string;
180
+ approvalState: 'approved' | 'draft';
181
+ itemCount: number;
182
+ variantCount: number;
183
+ thresholds: {
184
+ maxVariantsPerItem: number;
185
+ };
186
+ }
187
+ export interface MatrixModel {
188
+ unit: string;
189
+ formNo: string;
190
+ items: DeliveryItem[];
191
+ dispositions: MatrixDisposition[];
192
+ /** Requirement coverage — empty when the unit has no requirements/spec.md ids. */
193
+ requirements: RequirementCoverage[];
194
+ findings: MatrixFinding[];
195
+ manifest: MatrixManifest;
196
+ }
197
+ /** Complexity warning threshold (rules draft Gate I; raised for compact grouping) — echoed in the manifest. */
198
+ export declare const MAX_VARIANTS_PER_ITEM = 20;
199
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/exporters/matrix/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAM5C,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,KAAK,CAAC;AACrE,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;AAClD,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,SAAS,GAAG,mBAAmB,GAAG,eAAe,CAAC;AAE7F,MAAM,WAAW,QAAQ;IACvB,qFAAqF;IACrF,EAAE,EAAE,MAAM,CAAC;IACX,6FAA6F;IAC7F,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,WAAW,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB;;oFAEgF;IAChF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gGAAgG;IAChG,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,eAAe,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,iBAAiB,GACzB,SAAS,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,SAAS,GAAG,KAAK,GAAG,gBAAgB,CAAC;AAEjG,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WA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AAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,UAAU,GAAG,OAAO,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE;QAAE,kBAAkB,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,kFAAkF;IAClF,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED,+GAA+G;AAC/G,eAAO,MAAM,qBAAqB,KAAK,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * Delivery v2 — Test Case & Coverage Matrix model (docs/spec/delivery-coverage-matrix-spec.md).
4
+ *
5
+ * Gherkin stays the source of test meaning; the matrix is a derived presentation:
6
+ * one delivery item = one target + one intent + one oracle family, containing one or
7
+ * more atomic coverage variants (scenario / @cases row). Grouping semantics live in the
8
+ * committed Delivery Map (`qa/<kind>/<unit>/delivery/<unit>.map.yaml`) — AI-proposed,
9
+ * gate-validated, QA-approved.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MAX_VARIANTS_PER_ITEM = void 0;
13
+ /** Complexity warning threshold (rules draft Gate I; raised for compact grouping) — echoed in the manifest. */
14
+ exports.MAX_VARIANTS_PER_ITEM = 20;
15
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/exporters/matrix/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAwNH,+GAA+G;AAClG,QAAA,qBAAqB,GAAG,EAAE,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Wording normalization — deterministic rendering step AFTER semantic
3
+ * normalization (review feedback §10): turn sungen DSL steps into controlled
4
+ * manual-test English without changing the target, condition, trigger,
5
+ * precondition, oracle, or trace.
6
+ *
7
+ * - Actions render in the imperative: "User fill [Email] field with X"
8
+ * → "Enter X in the Email field."
9
+ * - Expected results render as observable assertions (never tester actions):
10
+ * "User see [Jobs] page" → "The Jobs page is displayed."
11
+ * - Manual `# Tester verifies:` labels (Setup:/Action:/Observable:/Oracle:)
12
+ * become structured fields instead of prose: Setup → precondition,
13
+ * Action → action, Observable → expected, Oracle → verification method.
14
+ */
15
+ /** A step that CAPTURES a runtime value: `User remember [X] text as {{var}}`. */
16
+ export declare const RUNTIME_CAPTURE: RegExp;
17
+ /**
18
+ * Variable names a scenario defines at RUN TIME rather than reading from
19
+ * test-data: values captured from the page (`remember … as {{v}}`) and values
20
+ * bound by a capability precondition tag (`@query:`, `@api:`, `@dataFactory:`).
21
+ * The compiler already treats these as "captured" (DataResolver.registerCaptured);
22
+ * the delivery matrix must agree or it demands a static value that cannot exist.
23
+ */
24
+ export declare function runtimeVarsOf(stepTexts: string[], tags: string[]): Set<string>;
25
+ /**
26
+ * Render one action step in the imperative. Pattern table covers the common
27
+ * sungen step verbs; anything unmatched falls back to actor-stripped text —
28
+ * still readable, never a raw `User fill`.
29
+ */
30
+ export declare function renderAction(raw: string): string;
31
+ /**
32
+ * Render one expected step as an observable assertion (no tester action, no
33
+ * `should`, no DSL `User see`).
34
+ */
35
+ export declare function renderExpected(raw: string): string;
36
+ /** Precondition wording: a state, not an action ("The user is signed out."). */
37
+ export declare function renderPrecondition(raw: string): string;
38
+ /**
39
+ * A manual `Setup:` line is an INSTRUCTION the tester performs to establish the
40
+ * state — imperative reads correctly ("Seed the locked account."), while
41
+ * "The user seed …" is broken grammar (review GAP-08).
42
+ */
43
+ export declare function renderSetupInstruction(raw: string): string;
44
+ export interface ManualProcedure {
45
+ /** Setup/Precondition/Arrange lines — the state to establish first. */
46
+ preconditions: string[];
47
+ /** Action/unlabelled lines — the imperative procedure. */
48
+ actions: string[];
49
+ /** Observable/Expect/Result/Assert lines — the observable outcome. */
50
+ expected: string[];
51
+ /** Oracle/Verify lines — HOW to check (tools, panes, queries). */
52
+ verification: string[];
53
+ }
54
+ /**
55
+ * Split a manual scenario's numbered comment lines into the four structured
56
+ * fields. Labels are consumed (structured), never left inside the prose —
57
+ * review feedback §10.2(3). Continuation lines append to the previous item;
58
+ * pre-amble (rationale/header/dividers) is skipped.
59
+ */
60
+ export declare function classifyManualComments(comments: string[]): ManualProcedure;
61
+ //# sourceMappingURL=wording.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wording.d.ts","sourceRoot":"","sources":["../../../src/exporters/matrix/wording.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,iFAAiF;AACjF,eAAO,MAAM,eAAe,QAAkB,CAAC;AAE/C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAc9E;AAkBD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAyChD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAuClD;AAED,gFAAgF;AAChF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUtD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1D;AAMD,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,sEAAsE;IACtE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,kEAAkE;IAClE,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,eAAe,CA2B1E"}
@@ -0,0 +1,221 @@
1
+ "use strict";
2
+ /**
3
+ * Wording normalization — deterministic rendering step AFTER semantic
4
+ * normalization (review feedback §10): turn sungen DSL steps into controlled
5
+ * manual-test English without changing the target, condition, trigger,
6
+ * precondition, oracle, or trace.
7
+ *
8
+ * - Actions render in the imperative: "User fill [Email] field with X"
9
+ * → "Enter X in the Email field."
10
+ * - Expected results render as observable assertions (never tester actions):
11
+ * "User see [Jobs] page" → "The Jobs page is displayed."
12
+ * - Manual `# Tester verifies:` labels (Setup:/Action:/Observable:/Oracle:)
13
+ * become structured fields instead of prose: Setup → precondition,
14
+ * Action → action, Observable → expected, Oracle → verification method.
15
+ */
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.RUNTIME_CAPTURE = void 0;
18
+ exports.runtimeVarsOf = runtimeVarsOf;
19
+ exports.renderAction = renderAction;
20
+ exports.renderExpected = renderExpected;
21
+ exports.renderPrecondition = renderPrecondition;
22
+ exports.renderSetupInstruction = renderSetupInstruction;
23
+ exports.classifyManualComments = classifyManualComments;
24
+ /** A step that CAPTURES a runtime value: `User remember [X] text as {{var}}`. */
25
+ exports.RUNTIME_CAPTURE = /\bremember\b/i;
26
+ /**
27
+ * Variable names a scenario defines at RUN TIME rather than reading from
28
+ * test-data: values captured from the page (`remember … as {{v}}`) and values
29
+ * bound by a capability precondition tag (`@query:`, `@api:`, `@dataFactory:`).
30
+ * The compiler already treats these as "captured" (DataResolver.registerCaptured);
31
+ * the delivery matrix must agree or it demands a static value that cannot exist.
32
+ */
33
+ function runtimeVarsOf(stepTexts, tags) {
34
+ const out = new Set();
35
+ for (const text of stepTexts) {
36
+ if (!exports.RUNTIME_CAPTURE.test(text))
37
+ continue;
38
+ const m = text.match(/\bas\s+\{\{\s*([^}]+?)\s*\}\}/i);
39
+ if (m)
40
+ out.add(m[1].trim());
41
+ }
42
+ // A capability precondition binds its result under the endpoint/query/recipe
43
+ // name, so `{{<name>}}` and `{{<name>.field}}` exist only during the run.
44
+ for (const t of tags) {
45
+ const m = t.match(/^@(?:query|api|dataFactory):([^(\s]+)/);
46
+ if (m)
47
+ out.add(m[1]);
48
+ }
49
+ return out;
50
+ }
51
+ // `[Email] field` → `Email field` (the visible label + its element type).
52
+ function deRef(text) {
53
+ return text.replace(/\[([^\]]+)\]/g, '$1');
54
+ }
55
+ function sentence(text) {
56
+ // Trim the ENDS only — internal whitespace may be the test data itself
57
+ // (a padded email, a spaces-only value); collapsing it would silently
58
+ // change what the tester types (review GAP-04).
59
+ let s = text.trim();
60
+ if (!s)
61
+ return s;
62
+ s = s.charAt(0).toUpperCase() + s.slice(1);
63
+ if (!/[.!?…"]$/.test(s))
64
+ s += '.';
65
+ return s;
66
+ }
67
+ /**
68
+ * Render one action step in the imperative. Pattern table covers the common
69
+ * sungen step verbs; anything unmatched falls back to actor-stripped text —
70
+ * still readable, never a raw `User fill`.
71
+ */
72
+ function renderAction(raw) {
73
+ let s = raw.trim().replace(/^(User|The user)\s+/i, '');
74
+ // `remember … as {{v}}` DECLARES a runtime variable — the trailing token is a
75
+ // name, not a value to resolve. Quote it so no `{{brace}}` reaches the sheet
76
+ // whatever rule matches below.
77
+ if (exports.RUNTIME_CAPTURE.test(s))
78
+ s = s.replace(/\bas\s+\{\{\s*([^}]+?)\s*\}\}/i, 'as "$1"');
79
+ const rules = [
80
+ // remember [X] (text|value) as "v" — capture a value for a later comparison
81
+ [/^remembers? \[([^\]]+)\]\s*(text|value)?\s*as "([^"]+)"$/i,
82
+ (m) => `Note the ${m[1]} ${m[2] || 'text'} for later (as "${m[3]}")`],
83
+ // fill [X] field with V
84
+ [/^fills? \[([^\]]+)\][a-z ]* with (.+)$/i, (m) => `Enter ${m[2]} in the ${m[1]} field`],
85
+ // clear [X] field
86
+ [/^clears? \[([^\]]+)\](.*)$/i, (m) => `Clear the ${m[1]}${m[2] || ' field'}`],
87
+ // click [X] <type>
88
+ [/^clicks? \[([^\]]+)\]\s*(\w+)?$/i, (m) => `Click the ${m[1]}${m[2] ? ` ${m[2]}` : ''}`],
89
+ // press <Key> at/in [X] field
90
+ [/^press(?:es)? (.+?) (?:at|in|on|inside) \[([^\]]+)\](?: field)?$/i, (m) => `Press ${m[1]} in the ${m[2]} field`],
91
+ [/^press(?:es)? (.+)$/i, (m) => `Press ${m[1]}`],
92
+ // select V in/from [X] dropdown
93
+ [/^selects? (.+?) (?:in|from) \[([^\]]+)\]\s*(\w+)?$/i, (m) => `Select ${m[1]} in the ${m[2]}${m[3] ? ` ${m[3]}` : ''}`],
94
+ // check/uncheck [X] checkbox
95
+ [/^(un)?checks? \[([^\]]+)\]\s*(\w+)?$/i, (m) => `${m[1] ? 'Uncheck' : 'Check'} the ${m[2]}${m[3] ? ` ${m[3]}` : ''}`],
96
+ // hover [X]
97
+ [/^hovers? (?:over )?\[([^\]]+)\]\s*(\w+)?$/i, (m) => `Hover over the ${m[1]}${m[2] ? ` ${m[2]}` : ''}`],
98
+ // upload V to [X]
99
+ [/^uploads? (.+?) (?:to|into) \[([^\]]+)\]\s*(\w+)?$/i, (m) => `Upload ${m[1]} to the ${m[2]}${m[3] ? ` ${m[3]}` : ''}`],
100
+ // is on [X] page (as an action = navigate)
101
+ [/^is on \[([^\]]+)\] page(.*)$/i, (m) => `Open the ${m[1]} page${m[2] ?? ''}`],
102
+ // wait for [X] <type> (is )?visible
103
+ [/^waits? for \[([^\]]+)\]\s*(\w+)?(?: is)?(?: visible)?$/i, (m) => `Wait until the ${m[1]}${m[2] ? ` ${m[2]}` : ''} is visible`],
104
+ // scroll to [X]
105
+ [/^scrolls? (?:to|into) \[([^\]]+)\]\s*(\w+)?$/i, (m) => `Scroll to the ${m[1]}${m[2] ? ` ${m[2]}` : ''}`],
106
+ ];
107
+ for (const [re, out] of rules) {
108
+ const m = s.match(re);
109
+ if (m)
110
+ return sentence(deRef(out(m)));
111
+ }
112
+ return sentence(deRef(s));
113
+ }
114
+ /**
115
+ * Render one expected step as an observable assertion (no tester action, no
116
+ * `should`, no DSL `User see`).
117
+ */
118
+ function renderExpected(raw) {
119
+ // A capture step is an INSTRUCTION wherever it sits — Gherkin often chains
120
+ // `remember … / remember … / expect a is not b` inside one Then block. Render
121
+ // it as the note-it-down action, never as an assertion (and never leaving the
122
+ // declared `{{name}}` token behind).
123
+ if (exports.RUNTIME_CAPTURE.test(raw) && /\bas\s+\{\{/.test(raw))
124
+ return renderAction(raw);
125
+ let s = raw.trim().replace(/^(User|The user)\s+/i, '');
126
+ const rules = [
127
+ // expect A is (not) B — comparing two captured values (order matters: "is not" first)
128
+ [/^expects? (.+?) is not (.+)$/i, (m) => `${m[1]} differs from ${m[2]}`],
129
+ [/^expects? (.+?) is (.+)$/i, (m) => `${m[1]} equals ${m[2]}`],
130
+ // see all [X] <type> contain(s) V — every matching element, not just the first
131
+ [/^sees? all \[([^\]]+)\]\s*(\w+)? (?:contains?|match(?:es)?|belongs?) (.+)$/i,
132
+ (m) => `Every ${m[1]}${m[2] ? ` ${m[2]}` : ''} contains ${m[3]}`],
133
+ // see all [X] <type> contain [Child] <type> — structural per-item proof
134
+ [/^sees? all \[([^\]]+)\]\s*(\w+)? (?:contains?|includes?) \[([^\]]+)\]\s*(\w+)?$/i,
135
+ (m) => `Every ${m[1]}${m[2] ? ` ${m[2]}` : ''} contains a ${m[3]}${m[4] ? ` ${m[4]}` : ''}`],
136
+ // see [X] page
137
+ [/^sees? \[([^\]]+)\] page$/i, (m) => `The ${m[1]} page is displayed`],
138
+ // see [X] <type> with V
139
+ [/^sees? \[([^\]]+)\]\s*(\w+)? with (.+)$/i, (m) => `The ${m[1]}${m[2] ? ` ${m[2]}` : ''} shows ${m[3]}`],
140
+ // see [X] <type> contains V
141
+ [/^sees? \[([^\]]+)\]\s*(\w+)? contains (.+)$/i, (m) => `The ${m[1]}${m[2] ? ` ${m[2]}` : ''} contains ${m[3]}`],
142
+ // see [X] <type> has text V
143
+ [/^sees? \[([^\]]+)\]\s*(\w+)? has text (.+)$/i, (m) => `The ${m[1]}${m[2] ? ` ${m[2]}` : ''} shows ${m[3]}`],
144
+ // see [X] <type> is hidden / is disabled / is enabled / …
145
+ [/^sees? \[([^\]]+)\]\s*(\w+)? is (.+)$/i, (m) => `The ${m[1]}${m[2] ? ` ${m[2]}` : ''} is ${m[3]}`],
146
+ // not see [X] <type>
147
+ [/^(?:do(?:es)? )?not sees? \[([^\]]+)\]\s*(\w+)?$/i, (m) => `The ${m[1]}${m[2] ? ` ${m[2]}` : ''} is not displayed`],
148
+ // see [X] <type>
149
+ [/^sees? \[([^\]]+)\]\s*(\w+)?$/i, (m) => `The ${m[1]}${m[2] ? ` ${m[2]}` : ''} is visible`],
150
+ ];
151
+ for (const [re, out] of rules) {
152
+ const m = s.match(re);
153
+ if (m)
154
+ return sentence(deRef(out(m)));
155
+ }
156
+ return sentence(deRef(s));
157
+ }
158
+ /** Precondition wording: a state, not an action ("The user is signed out."). */
159
+ function renderPrecondition(raw) {
160
+ const s = raw.trim().replace(/^(User|The user)\s+/i, '');
161
+ const m = s.match(/^is on \[([^\]]+)\] page(.*)$/i);
162
+ if (m)
163
+ return sentence(`The user is on the ${m[1]} page${m[2] ?? ''}`);
164
+ // "wait for [X] <type> (is) visible" is a STATE once established, not an action.
165
+ const w = s.match(/^waits? for \[([^\]]+)\]\s*(\w+)?(?: is)?(?: visible)?$/i);
166
+ if (w)
167
+ return sentence(`The ${w[1]}${w[2] ? ` ${w[2]}` : ''} is visible`);
168
+ const auth = s.match(/^is (signed|logged) (in|out)(.*)$/i);
169
+ if (auth)
170
+ return sentence(`The user is ${auth[1]} ${auth[2]}${auth[3] ?? ''}`);
171
+ return sentence(deRef(`The user ${s.charAt(0).toLowerCase()}${s.slice(1)}`));
172
+ }
173
+ /**
174
+ * A manual `Setup:` line is an INSTRUCTION the tester performs to establish the
175
+ * state — imperative reads correctly ("Seed the locked account."), while
176
+ * "The user seed …" is broken grammar (review GAP-08).
177
+ */
178
+ function renderSetupInstruction(raw) {
179
+ return renderAction(raw);
180
+ }
181
+ /**
182
+ * Split a manual scenario's numbered comment lines into the four structured
183
+ * fields. Labels are consumed (structured), never left inside the prose —
184
+ * review feedback §10.2(3). Continuation lines append to the previous item;
185
+ * pre-amble (rationale/header/dividers) is skipped.
186
+ */
187
+ function classifyManualComments(comments) {
188
+ const out = { preconditions: [], actions: [], expected: [], verification: [] };
189
+ let last = null;
190
+ const bucketOf = (label) => {
191
+ if (/setup|precondition|arrange|given/i.test(label))
192
+ return 'preconditions';
193
+ if (/oracle|verify|verification|how to check/i.test(label))
194
+ return 'verification';
195
+ if (/observ|expect|result|then|assert/i.test(label))
196
+ return 'expected';
197
+ return 'actions';
198
+ };
199
+ for (const raw of comments) {
200
+ const line = raw.trim();
201
+ if (!line)
202
+ continue;
203
+ if (/^[-=*_]{2,}/.test(line)) {
204
+ last = null;
205
+ continue;
206
+ }
207
+ const m = line.match(/^\d+[.)]\s*(?:([A-Za-z][A-Za-z /]*?):\s*)?(.+)$/);
208
+ if (m) {
209
+ const label = (m[1] || '').trim();
210
+ const text = m[2].trim();
211
+ const list = out[bucketOf(label)];
212
+ list.push(text);
213
+ last = { list, idx: list.length - 1 };
214
+ }
215
+ else if (last) {
216
+ last.list[last.idx] += ' ' + line;
217
+ }
218
+ }
219
+ return out;
220
+ }
221
+ //# sourceMappingURL=wording.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wording.js","sourceRoot":"","sources":["../../../src/exporters/matrix/wording.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;AAYH,sCAcC;AAuBD,oCAyCC;AAMD,wCAuCC;AAGD,gDAUC;AAOD,wDAEC;AAuBD,wDA2BC;AA7MD,iFAAiF;AACpE,QAAA,eAAe,GAAG,eAAe,CAAC;AAE/C;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,SAAmB,EAAE,IAAc;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":3,"file":"scenario-merger.d.ts","sourceRoot":"","sources":["../../src/exporters/scenario-merger.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIjG;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG;IAAE,KAAK,EAAE,WAAW,EAAE,CAAC;IAAC,QAAQ,EAAE,WAAW,EAAE,CAAA;CAAE,CAwBzG;AAED,MAAM,WAAW,cAAc;IAC7B,sCAAsC;IACtC,OAAO,EAAE,gBAAgB,CAAC;IAE1B,oEAAoE;IACpE,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEtB;;;;;;OAMG;IACH,iBAAiB,EAAG,MAAM,EAAE,CAAC;IAC7B,iBAAiB,EAAG,MAAM,EAAE,CAAC;IAC7B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B;;;;;OAKG;IACH,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,EAAE,WAAW,EAAE,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,YAAY,GACjB,cAAc,EAAE,CAkElB"}
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.parseManualComments = parseManualComments;
13
13
  exports.mergeFeatureAndSpec = mergeFeatureAndSpec;
14
14
  const feature_parser_1 = require("./feature-parser");
15
+ const feature_parser_2 = require("./feature-parser");
15
16
  /**
16
17
  * Parse a @manual scenario's `# Tester verifies:` comment block into procedure vs
17
18
  * expected. Each item is a numbered line, optionally prefixed with a label:
@@ -127,7 +128,7 @@ function findMatchingSpecTest(scenario, tests) {
127
128
  if (exact)
128
129
  return exact;
129
130
  // Fallback: match by VP-ID prefix (ignore trailing text differences)
130
- const vpMatch = scenario.name.match(/^(VP-[A-Z][A-Z0-9]*-\d+[a-zA-Z]?)/);
131
+ const vpMatch = scenario.name.match(feature_parser_2.SCENARIO_ID);
131
132
  if (vpMatch) {
132
133
  const vpId = vpMatch[1];
133
134
  const byVp = tests.find((t) => t.vpId === vpId);
@@ -1 +1 @@
1
- {"version":3,"file":"scenario-merger.js","sourceRoot":"","sources":["../../src/exporters/scenario-merger.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAeH,kDAwBC;AAoCD,kDAqEC;AA7ID,qDAAsG;AAEtG;;;;;;;;;GASG;AACH,SAAgB,mBAAmB,CAAC,QAAkB;IACpD,MAAM,KAAK,GAAkB,EAAE,CAAC;IAChC,MAAM,QAAQ,GAAkB,EAAE,CAAC;IACnC,IAAI,IAAI,GAAuB,IAAI,CAAC;IACpC,MAAM,eAAe,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,0CAA0C,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1F,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC3B,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI;YAAE,SAAS;QACpB,kFAAkF;QAClF,uEAAuE;QACvE,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAAC,IAAI,GAAG,IAAI,CAAC;YAAC,SAAS;QAAC,CAAC;QACxD,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACxE,IAAI,CAAC,EAAE,CAAC;YACN,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YAClC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,C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version":3,"file":"spec-parser.d.ts","sourceRoot":"","sources":["../../src/exporters/spec-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAY,YAAY,EAAE,MAAM,SAAS,CAAC;AAsKjD;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,YAAY,CA+ChE"}
@@ -39,6 +39,7 @@ var __importStar = (this && this.__importStar) || (function () {
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
40
  exports.parseSpecFile = parseSpecFile;
41
41
  const fs = __importStar(require("fs"));
42
+ const feature_parser_1 = require("./feature-parser");
42
43
  /**
43
44
  * Extract the inner body of a test('title', async (...) => { BODY }) block.
44
45
  * Returns null if no match.
@@ -190,7 +191,7 @@ function classifyBlock(block) {
190
191
  * Try to extract VP ID (e.g., VP-UI-001) from the start of a scenario title.
191
192
  */
192
193
  function extractVpId(title) {
193
- const match = title.match(/^(VP-[A-Z][A-Z0-9]*-\d+[a-zA-Z]?)\b/);
194
+ const match = title.match(new RegExp(feature_parser_1.SCENARIO_ID.source + '\\b'));
194
195
  return match ? match[1] : undefined;
195
196
  }
196
197
  /**