@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.
- package/dist/cli/commands/audit.d.ts.map +1 -1
- package/dist/cli/commands/audit.js +23 -0
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/cli/commands/delivery.d.ts.map +1 -1
- package/dist/cli/commands/delivery.js +209 -16
- package/dist/cli/commands/delivery.js.map +1 -1
- package/dist/cli/index.js +5 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/dashboard/snapshot-builder.d.ts.map +1 -1
- package/dist/dashboard/snapshot-builder.js +8 -1
- package/dist/dashboard/snapshot-builder.js.map +1 -1
- package/dist/dashboard/templates/index.html +1 -1
- package/dist/exporters/api-environment.d.ts +11 -0
- package/dist/exporters/api-environment.d.ts.map +1 -0
- package/dist/exporters/api-environment.js +129 -0
- package/dist/exporters/api-environment.js.map +1 -0
- package/dist/exporters/feature-parser.d.ts +16 -1
- package/dist/exporters/feature-parser.d.ts.map +1 -1
- package/dist/exporters/feature-parser.js +21 -2
- package/dist/exporters/feature-parser.js.map +1 -1
- package/dist/exporters/matrix/build.d.ts +70 -0
- package/dist/exporters/matrix/build.d.ts.map +1 -0
- package/dist/exporters/matrix/build.js +516 -0
- package/dist/exporters/matrix/build.js.map +1 -0
- package/dist/exporters/matrix/export.d.ts +50 -0
- package/dist/exporters/matrix/export.d.ts.map +1 -0
- package/dist/exporters/matrix/export.js +152 -0
- package/dist/exporters/matrix/export.js.map +1 -0
- package/dist/exporters/matrix/fingerprint.d.ts +20 -0
- package/dist/exporters/matrix/fingerprint.d.ts.map +1 -0
- package/dist/exporters/matrix/fingerprint.js +83 -0
- package/dist/exporters/matrix/fingerprint.js.map +1 -0
- package/dist/exporters/matrix/gates.d.ts +21 -0
- package/dist/exporters/matrix/gates.d.ts.map +1 -0
- package/dist/exporters/matrix/gates.js +367 -0
- package/dist/exporters/matrix/gates.js.map +1 -0
- package/dist/exporters/matrix/map-loader.d.ts +22 -0
- package/dist/exporters/matrix/map-loader.d.ts.map +1 -0
- package/dist/exporters/matrix/map-loader.js +193 -0
- package/dist/exporters/matrix/map-loader.js.map +1 -0
- package/dist/exporters/matrix/render-csv.d.ts +9 -0
- package/dist/exporters/matrix/render-csv.d.ts.map +1 -0
- package/dist/exporters/matrix/render-csv.js +92 -0
- package/dist/exporters/matrix/render-csv.js.map +1 -0
- package/dist/exporters/matrix/render-xlsx.d.ts +41 -0
- package/dist/exporters/matrix/render-xlsx.d.ts.map +1 -0
- package/dist/exporters/matrix/render-xlsx.js +430 -0
- package/dist/exporters/matrix/render-xlsx.js.map +1 -0
- package/dist/exporters/matrix/types.d.ts +199 -0
- package/dist/exporters/matrix/types.d.ts.map +1 -0
- package/dist/exporters/matrix/types.js +15 -0
- package/dist/exporters/matrix/types.js.map +1 -0
- package/dist/exporters/matrix/wording.d.ts +61 -0
- package/dist/exporters/matrix/wording.d.ts.map +1 -0
- package/dist/exporters/matrix/wording.js +221 -0
- package/dist/exporters/matrix/wording.js.map +1 -0
- package/dist/exporters/scenario-merger.d.ts.map +1 -1
- package/dist/exporters/scenario-merger.js +2 -1
- package/dist/exporters/scenario-merger.js.map +1 -1
- package/dist/exporters/spec-parser.d.ts.map +1 -1
- package/dist/exporters/spec-parser.js +2 -1
- package/dist/exporters/spec-parser.js.map +1 -1
- package/dist/exporters/xlsx-report-builder.d.ts +1 -1
- package/dist/exporters/xlsx-report-builder.d.ts.map +1 -1
- package/dist/exporters/xlsx-report-builder.js +3 -3
- package/dist/exporters/xlsx-report-builder.js.map +1 -1
- package/dist/harness/audit.d.ts +10 -0
- package/dist/harness/audit.d.ts.map +1 -1
- package/dist/harness/audit.js +98 -16
- package/dist/harness/audit.js.map +1 -1
- package/dist/harness/blindspot.d.ts.map +1 -1
- package/dist/harness/blindspot.js +2 -1
- package/dist/harness/blindspot.js.map +1 -1
- package/dist/harness/capability-plan.d.ts +2 -0
- package/dist/harness/capability-plan.d.ts.map +1 -1
- package/dist/harness/capability-plan.js +17 -4
- package/dist/harness/capability-plan.js.map +1 -1
- package/dist/harness/feedback.d.ts.map +1 -1
- package/dist/harness/feedback.js +3 -2
- package/dist/harness/feedback.js.map +1 -1
- package/dist/harness/flow-check.d.ts.map +1 -1
- package/dist/harness/flow-check.js +2 -1
- package/dist/harness/flow-check.js.map +1 -1
- package/dist/harness/flow-plan.d.ts.map +1 -1
- package/dist/harness/flow-plan.js +3 -2
- package/dist/harness/flow-plan.js.map +1 -1
- package/dist/harness/intent.d.ts.map +1 -1
- package/dist/harness/intent.js +2 -1
- package/dist/harness/intent.js.map +1 -1
- package/dist/harness/journey.d.ts.map +1 -1
- package/dist/harness/journey.js +3 -2
- package/dist/harness/journey.js.map +1 -1
- package/dist/harness/ledger.d.ts.map +1 -1
- package/dist/harness/ledger.js +3 -2
- package/dist/harness/ledger.js.map +1 -1
- package/dist/harness/manifest.d.ts.map +1 -1
- package/dist/harness/manifest.js +4 -3
- package/dist/harness/manifest.js.map +1 -1
- package/dist/harness/parse.d.ts.map +1 -1
- package/dist/harness/parse.js +16 -3
- package/dist/harness/parse.js.map +1 -1
- package/dist/harness/quality-gates.d.ts.map +1 -1
- package/dist/harness/quality-gates.js +2 -1
- package/dist/harness/quality-gates.js.map +1 -1
- package/dist/harness/read-text.d.ts +22 -0
- package/dist/harness/read-text.d.ts.map +1 -0
- package/dist/harness/read-text.js +64 -0
- package/dist/harness/read-text.js.map +1 -0
- package/dist/harness/script-check.d.ts.map +1 -1
- package/dist/harness/script-check.js +3 -2
- package/dist/harness/script-check.js.map +1 -1
- package/dist/harness/sensors.d.ts +13 -1
- package/dist/harness/sensors.d.ts.map +1 -1
- package/dist/harness/sensors.js +63 -20
- package/dist/harness/sensors.js.map +1 -1
- package/dist/harness/spec-coverage.d.ts +5 -0
- package/dist/harness/spec-coverage.d.ts.map +1 -1
- package/dist/harness/spec-coverage.js +17 -7
- package/dist/harness/spec-coverage.js.map +1 -1
- package/dist/harness/trace.d.ts.map +1 -1
- package/dist/harness/trace.js +4 -3
- package/dist/harness/trace.js.map +1 -1
- package/dist/harness/viewpoint-baseline.d.ts +49 -0
- package/dist/harness/viewpoint-baseline.d.ts.map +1 -0
- package/dist/harness/viewpoint-baseline.js +141 -0
- package/dist/harness/viewpoint-baseline.js.map +1 -0
- package/dist/harness/viewpoint-ledger.d.ts.map +1 -1
- package/dist/harness/viewpoint-ledger.js +2 -1
- package/dist/harness/viewpoint-ledger.js.map +1 -1
- package/dist/orchestrator/assets-drift.d.ts +24 -0
- package/dist/orchestrator/assets-drift.d.ts.map +1 -0
- package/dist/orchestrator/assets-drift.js +80 -0
- package/dist/orchestrator/assets-drift.js.map +1 -0
- package/dist/orchestrator/templates/ai-src/commands/create-test.md +24 -0
- package/dist/orchestrator/templates/ai-src/commands/delivery.md +203 -120
- package/dist/orchestrator/templates/ai-src/config/claude.md +1 -1
- package/dist/orchestrator/templates/ai-src/config/copilot.md +1 -1
- package/dist/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +102 -6
- package/dist/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +1 -0
- package/dist/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +23 -0
- package/package.json +3 -3
- package/src/cli/commands/audit.ts +23 -1
- package/src/cli/commands/delivery.ts +240 -18
- package/src/cli/index.ts +6 -0
- package/src/dashboard/snapshot-builder.ts +8 -1
- package/src/dashboard/templates/index.html +1 -1
- package/src/exporters/api-environment.ts +97 -0
- package/src/exporters/feature-parser.ts +21 -2
- package/src/exporters/matrix/build.ts +551 -0
- package/src/exporters/matrix/export.ts +149 -0
- package/src/exporters/matrix/fingerprint.ts +49 -0
- package/src/exporters/matrix/gates.ts +400 -0
- package/src/exporters/matrix/map-loader.ts +163 -0
- package/src/exporters/matrix/render-csv.ts +94 -0
- package/src/exporters/matrix/render-xlsx.ts +420 -0
- package/src/exporters/matrix/types.ts +226 -0
- package/src/exporters/matrix/wording.ts +221 -0
- package/src/exporters/scenario-merger.ts +2 -1
- package/src/exporters/spec-parser.ts +2 -1
- package/src/exporters/xlsx-report-builder.ts +3 -2
- package/src/harness/audit.ts +104 -18
- package/src/harness/blindspot.ts +2 -1
- package/src/harness/capability-plan.ts +17 -4
- package/src/harness/feedback.ts +3 -2
- package/src/harness/flow-check.ts +2 -1
- package/src/harness/flow-plan.ts +3 -2
- package/src/harness/intent.ts +2 -1
- package/src/harness/journey.ts +3 -2
- package/src/harness/ledger.ts +3 -2
- package/src/harness/manifest.ts +4 -3
- package/src/harness/parse.ts +17 -3
- package/src/harness/quality-gates.ts +2 -1
- package/src/harness/read-text.ts +28 -0
- package/src/harness/script-check.ts +3 -2
- package/src/harness/sensors.ts +55 -8
- package/src/harness/spec-coverage.ts +22 -7
- package/src/harness/trace.ts +4 -3
- package/src/harness/viewpoint-baseline.ts +128 -0
- package/src/harness/viewpoint-ledger.ts +2 -1
- package/src/orchestrator/assets-drift.ts +64 -0
- package/src/orchestrator/templates/ai-src/commands/create-test.md +24 -0
- package/src/orchestrator/templates/ai-src/commands/delivery.md +203 -120
- package/src/orchestrator/templates/ai-src/config/claude.md +1 -1
- package/src/orchestrator/templates/ai-src/config/copilot.md +1 -1
- package/src/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +102 -6
- package/src/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +1 -0
- package/src/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +23 -0
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Build the matrix model: derive atomic coverage variants from the merged
|
|
4
|
+
* feature/spec view, assemble delivery items per the Delivery Map, attach
|
|
5
|
+
* per-variant Playwright results, and roll parents up (derived only — Gate F
|
|
6
|
+
* is structural: there is no independent parent result input).
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.deriveVariants = deriveVariants;
|
|
10
|
+
exports.displayValue = displayValue;
|
|
11
|
+
exports.computeRequirements = computeRequirements;
|
|
12
|
+
exports.variantState = variantState;
|
|
13
|
+
exports.rollUp = rollUp;
|
|
14
|
+
exports.varyingTriggerNote = varyingTriggerNote;
|
|
15
|
+
exports.expandMapRef = expandMapRef;
|
|
16
|
+
exports.buildMatrix = buildMatrix;
|
|
17
|
+
const feature_parser_1 = require("../feature-parser");
|
|
18
|
+
const result_variants_1 = require("../result-variants");
|
|
19
|
+
const wording_1 = require("./wording");
|
|
20
|
+
const fingerprint_1 = require("./fingerprint");
|
|
21
|
+
const types_1 = require("./types");
|
|
22
|
+
const gates_1 = require("./gates");
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
// Variant derivation
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
/** Collapse `{{var}}` placeholders so data values become parameters, not shape. */
|
|
27
|
+
function normalizeShape(text) {
|
|
28
|
+
return text.replace(/\{\{[^}]*\}\}/g, '{{*}}').replace(/\s+/g, ' ').trim();
|
|
29
|
+
}
|
|
30
|
+
function deriveLayers(tags) {
|
|
31
|
+
const layers = new Set(['ui']);
|
|
32
|
+
if (tags.some((t) => t === '@api' || t.startsWith('@api:') || t === '@requires:api'))
|
|
33
|
+
layers.add('api');
|
|
34
|
+
if (tags.some((t) => t.startsWith('@query') || t === '@requires:db'))
|
|
35
|
+
layers.add('db');
|
|
36
|
+
return Array.from(layers);
|
|
37
|
+
}
|
|
38
|
+
/** 'simple' single G*→W*→T* pass; 'sequence' when the flow re-enters Given/When after a Then. */
|
|
39
|
+
function deriveProcedureProfile(m) {
|
|
40
|
+
if ((0, feature_parser_1.extractTestcaseType)(m.feature.tags) === 'Manual')
|
|
41
|
+
return 'manual';
|
|
42
|
+
const order = m.feature.orderedSteps.map((s) => s.bucket);
|
|
43
|
+
let seenThen = false;
|
|
44
|
+
for (const bucket of order) {
|
|
45
|
+
if (bucket === 'then')
|
|
46
|
+
seenThen = true;
|
|
47
|
+
else if (seenThen)
|
|
48
|
+
return 'sequence'; // action/setup after an assertion → ordered flow
|
|
49
|
+
}
|
|
50
|
+
return 'simple';
|
|
51
|
+
}
|
|
52
|
+
function manualReason(tags) {
|
|
53
|
+
const t = tags.find((x) => x.startsWith('@manual:'));
|
|
54
|
+
return t ? t.slice('@manual:'.length) : undefined;
|
|
55
|
+
}
|
|
56
|
+
/** Resolve `{{var}}` refs of a scenario into display `key: value` pairs. */
|
|
57
|
+
function resolveDataPairs(vars, testData, row) {
|
|
58
|
+
const pairs = [];
|
|
59
|
+
if (row) {
|
|
60
|
+
for (const [k, v] of Object.entries(row)) {
|
|
61
|
+
if (k.startsWith('__') || k === 'case' || k === 'name' || k === 'label')
|
|
62
|
+
continue;
|
|
63
|
+
pairs.push(`${k}: ${displayValue(String(v))}`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
for (const v of vars) {
|
|
67
|
+
const val = row && v in row ? undefined : testData?.[v]; // row columns already listed
|
|
68
|
+
if (val !== undefined)
|
|
69
|
+
pairs.push(`${v}: ${displayValue(val)}`);
|
|
70
|
+
}
|
|
71
|
+
return pairs;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Derive every atomic coverage variant of the unit (one per scenario, or one per
|
|
75
|
+
* `@cases` dataset row). Exported separately so the gates + the map-proposal
|
|
76
|
+
* support tooling see the same universe the builder does.
|
|
77
|
+
*/
|
|
78
|
+
function deriveVariants(inputs) {
|
|
79
|
+
const { merged, results } = inputs;
|
|
80
|
+
// Test-data values may cross-reference other keys (email_padded: " {{valid_email}} ") —
|
|
81
|
+
// resolve one level so display cells never leak a template token (review B-04).
|
|
82
|
+
const testData = resolveCrossRefs(inputs.testData);
|
|
83
|
+
const variants = [];
|
|
84
|
+
for (const m of merged) {
|
|
85
|
+
const { vpId, category1 } = (0, feature_parser_1.splitVpAndName)(m.feature.name);
|
|
86
|
+
if (!vpId)
|
|
87
|
+
continue; // Gate A reports it — no variant can be addressed without a VP-id
|
|
88
|
+
const tags = m.feature.tags;
|
|
89
|
+
const mode = (0, feature_parser_1.extractTestcaseType)(tags) === 'Manual' ? 'manual' : 'auto';
|
|
90
|
+
const authRole = (0, feature_parser_1.extractAuthRole)(tags);
|
|
91
|
+
// Category segment of the id, whatever the project's scheme:
|
|
92
|
+
// VP-SEC-001 → SEC · SEC-123 → SEC · MS-HP-001 → MS-HP · PER-345 → PER.
|
|
93
|
+
const vpCategory = vpId.replace(/^VP-/, '').replace(/-\d+(?:[a-zA-Z]|-[A-Z0-9]+)?$/, '');
|
|
94
|
+
const procedureProfile = deriveProcedureProfile(m);
|
|
95
|
+
// Manual scenarios: the `# Tester verifies:` block is classified into structured
|
|
96
|
+
// fields — Setup → precondition (review B-02), Action → trigger, Observable →
|
|
97
|
+
// expected, Oracle → verification method. Labels never remain inside prose.
|
|
98
|
+
const manual = mode === 'manual' && m.feature.comments?.length
|
|
99
|
+
? (0, wording_1.classifyManualComments)(m.feature.comments)
|
|
100
|
+
: null;
|
|
101
|
+
// Raw (pre-wording) step texts — these feed shapes + Gate C, never the cells.
|
|
102
|
+
const rawTrigger = manual ? manual.actions : m.feature.rawWhenSteps;
|
|
103
|
+
const rawOracle = manual
|
|
104
|
+
? (manual.expected.length > 0 ? manual.expected : m.feature.rawThenSteps)
|
|
105
|
+
: m.resolvedExpected.filter((s) => s.bucket === 'then').map((s) => s.text);
|
|
106
|
+
// Values the scenario itself produces during the run — captured from the page
|
|
107
|
+
// or bound by a capability precondition. The compiler registers these as
|
|
108
|
+
// "captured" and skips YAML validation; the matrix does the same.
|
|
109
|
+
const runtimeVars = (0, wording_1.runtimeVarsOf)([...m.resolvedSteps.map((st) => st.text), ...m.resolvedExpected.map((st) => st.text)], tags);
|
|
110
|
+
const preconditionProfile = [
|
|
111
|
+
authRole ?? '-',
|
|
112
|
+
m.feature.extendsName ?? '-',
|
|
113
|
+
...m.feature.rawGivenSteps.map(normalizeShape),
|
|
114
|
+
...(manual?.preconditions ?? []).map(normalizeShape),
|
|
115
|
+
].join(' | ');
|
|
116
|
+
// Display precondition = auth state + Background Given (shared start state) +
|
|
117
|
+
// the scenario's own Given steps + manual Setup lines — deduplicated (a manual
|
|
118
|
+
// scenario often repeats the Background navigation as its own Given).
|
|
119
|
+
const precondition = Array.from(new Set([
|
|
120
|
+
...(authRole ? [authRole === 'no-auth' ? 'The user is signed out.' : `The user is signed in as ${authRole}.`] : []),
|
|
121
|
+
...inputs.feature.backgroundGivenSteps.map(wording_1.renderPrecondition),
|
|
122
|
+
...m.feature.rawGivenSteps.map(wording_1.renderPrecondition),
|
|
123
|
+
...(manual?.preconditions ?? []).map((t) => (0, wording_1.renderSetupInstruction)(t)),
|
|
124
|
+
]));
|
|
125
|
+
const base = {
|
|
126
|
+
vpId,
|
|
127
|
+
vpCategory,
|
|
128
|
+
priority: (0, feature_parser_1.extractPriority)(tags),
|
|
129
|
+
mode: mode,
|
|
130
|
+
manualReason: manualReason(tags),
|
|
131
|
+
layers: deriveLayers(tags),
|
|
132
|
+
traces: tags.filter((t) => t.startsWith('@spec:')).map((t) => t.slice('@spec:'.length)),
|
|
133
|
+
runtimeVars: [...runtimeVars],
|
|
134
|
+
triggerShape: rawTrigger.map(normalizeShape),
|
|
135
|
+
oracleShape: rawOracle.map(normalizeShape),
|
|
136
|
+
preconditionProfile,
|
|
137
|
+
precondition,
|
|
138
|
+
procedureProfile,
|
|
139
|
+
verification: manual?.verification.map((t) => sentenceOf(t)) ?? [],
|
|
140
|
+
};
|
|
141
|
+
/** Render the display cells for one data context (vars resolved first). */
|
|
142
|
+
const renderCells = (vars) => {
|
|
143
|
+
const sub = (s) => substituteDisplayVars(s, vars, runtimeVars);
|
|
144
|
+
const preconditionOut = precondition.map(sub);
|
|
145
|
+
const verificationOut = base.verification.map(sub);
|
|
146
|
+
if (procedureProfile === 'sequence' && !manual) {
|
|
147
|
+
// Ordered flow (review B-03): keep the event order — actions stay numbered in
|
|
148
|
+
// the trigger, mid-flow assertions render inline as "Verify:", and only the
|
|
149
|
+
// FINAL Then block becomes the expected result.
|
|
150
|
+
const steps = m.feature.orderedSteps;
|
|
151
|
+
let lastActionIdx = -1;
|
|
152
|
+
steps.forEach((s, i) => { if (s.bucket !== 'then')
|
|
153
|
+
lastActionIdx = i; });
|
|
154
|
+
const trigger = [];
|
|
155
|
+
const oracle = [];
|
|
156
|
+
steps.forEach((s, i) => {
|
|
157
|
+
if (i > lastActionIdx)
|
|
158
|
+
oracle.push((0, wording_1.renderExpected)(sub(s.text))); // trailing Then block
|
|
159
|
+
else if (s.bucket === 'then')
|
|
160
|
+
trigger.push(`Verify: ${(0, wording_1.renderExpected)(sub(s.text))}`);
|
|
161
|
+
else if (s.bucket === 'when')
|
|
162
|
+
trigger.push((0, wording_1.renderAction)(sub(s.text)));
|
|
163
|
+
// leading given steps already live in the precondition
|
|
164
|
+
});
|
|
165
|
+
return { trigger, oracle, precondition: preconditionOut, verification: verificationOut };
|
|
166
|
+
}
|
|
167
|
+
const trigger = rawTrigger.map((s) => (0, wording_1.renderAction)(sub(s)));
|
|
168
|
+
const oracle = rawOracle.map((s) => (0, wording_1.renderExpected)(sub(s)));
|
|
169
|
+
return {
|
|
170
|
+
// A pure-render check (Given + Then only) is checked on page load — say so
|
|
171
|
+
// in words instead of a placeholder token (review §10.3).
|
|
172
|
+
trigger: trigger.length > 0 ? trigger : ['No action — the state is checked on page load.'],
|
|
173
|
+
oracle,
|
|
174
|
+
precondition: preconditionOut,
|
|
175
|
+
verification: verificationOut,
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
const rows = (0, result_variants_1.getCasesDatasetRows)(m, testData ?? undefined);
|
|
179
|
+
if (rows) {
|
|
180
|
+
// One variant per dataset row; results matched per row label by the shared resolver.
|
|
181
|
+
const resultVariants = (0, result_variants_1.resolveResultVariants)(m, results ?? null, testData ?? undefined);
|
|
182
|
+
const resultByLabel = new Map(resultVariants.map((rv) => [rv.nameSuffix.replace(/^ — /, ''), rv.result]));
|
|
183
|
+
rows.forEach((row, i) => {
|
|
184
|
+
const label = String(row.case ?? row.name ?? row.label ?? `row ${i + 1}`);
|
|
185
|
+
const cells = renderCells({ ...(testData ?? {}), ...rowAsStrings(row) });
|
|
186
|
+
variants.push({
|
|
187
|
+
...base,
|
|
188
|
+
ref: `${vpId}#${label}`,
|
|
189
|
+
caseLabel: label,
|
|
190
|
+
title: `${category1} — ${label}`,
|
|
191
|
+
condition: label,
|
|
192
|
+
data: resolveDataPairs(m.feature.referencedVars, testData, row),
|
|
193
|
+
trigger: cells.trigger,
|
|
194
|
+
oracle: cells.oracle,
|
|
195
|
+
precondition: cells.precondition,
|
|
196
|
+
verification: cells.verification,
|
|
197
|
+
fingerprint: (0, fingerprint_1.scenarioFingerprint)(m.feature, row),
|
|
198
|
+
result: resultByLabel.get(label),
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
const cells = renderCells(testData ?? {});
|
|
204
|
+
variants.push({
|
|
205
|
+
...base,
|
|
206
|
+
ref: vpId,
|
|
207
|
+
title: category1,
|
|
208
|
+
condition: category1,
|
|
209
|
+
data: resolveDataPairs(m.feature.referencedVars, testData),
|
|
210
|
+
trigger: cells.trigger,
|
|
211
|
+
oracle: cells.oracle,
|
|
212
|
+
precondition: cells.precondition,
|
|
213
|
+
verification: cells.verification,
|
|
214
|
+
fingerprint: (0, fingerprint_1.scenarioFingerprint)(m.feature),
|
|
215
|
+
result: (0, result_variants_1.resolveResultVariants)(m, results ?? null, testData ?? undefined)[0]?.result,
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return variants;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Display substitution for matrix cells. Unlike the legacy exporter's
|
|
223
|
+
* substituteTestDataVars (which keeps EMPTY values literal for the Steps
|
|
224
|
+
* column), an empty value is a legitimate test input here (an intentionally
|
|
225
|
+
* empty field) — it renders as `(empty)` so the tester sees the intent and no
|
|
226
|
+
* `{{token}}` survives into the deliverable (Gate D would reject it).
|
|
227
|
+
*/
|
|
228
|
+
function substituteDisplayVars(text, vars, runtimeVars = new Set()) {
|
|
229
|
+
// `remember … as {{v}}` DECLARES v — leave that token for renderAction, which
|
|
230
|
+
// turns it into a quoted name ("note it as …"), not a value to look up.
|
|
231
|
+
const isCapture = /\bremember\b/i.test(text);
|
|
232
|
+
return text.replace(/\{\{\s*([^}\s]+)\s*\}\}/g, (m, key, offset) => {
|
|
233
|
+
if (isCapture && /\bas\s+$/i.test(text.slice(0, offset)))
|
|
234
|
+
return m;
|
|
235
|
+
// A value the test produces at run time has no static form — name it so the
|
|
236
|
+
// tester knows to compare against what the earlier step captured.
|
|
237
|
+
if (runtimeVars.has(key) || runtimeVars.has(key.split(/[.[]/)[0]))
|
|
238
|
+
return `the captured ${key}`;
|
|
239
|
+
if (!(key in vars))
|
|
240
|
+
return m; // unknown stays literal → Gate D flags it
|
|
241
|
+
return displayValue(vars[key]);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Make invisible test data VISIBLE instead of losing it (review GAP-04):
|
|
246
|
+
* '' → (empty) · whitespace-only → (N spaces) · padded → quoted verbatim.
|
|
247
|
+
* The canonical value is never changed — only its presentation.
|
|
248
|
+
*/
|
|
249
|
+
function displayValue(v) {
|
|
250
|
+
if (v === '')
|
|
251
|
+
return '(empty)';
|
|
252
|
+
if (/^\s+$/.test(v))
|
|
253
|
+
return `(${v.length} space${v.length > 1 ? 's' : ''})`;
|
|
254
|
+
if (v !== v.trim())
|
|
255
|
+
return `"${v}"`;
|
|
256
|
+
return v;
|
|
257
|
+
}
|
|
258
|
+
function sentenceOf(text) {
|
|
259
|
+
const s = text.trim();
|
|
260
|
+
if (!s)
|
|
261
|
+
return s;
|
|
262
|
+
const cap = s.charAt(0).toUpperCase() + s.slice(1);
|
|
263
|
+
return /[.!?…]$/.test(cap) ? cap : `${cap}.`;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Requirement inventory ∪ traces → coverage table. Ids are scanned from the spec
|
|
267
|
+
* text (FR-/TR-/NFR-<n>); map overrides win over the derived covered/gap status.
|
|
268
|
+
*/
|
|
269
|
+
function computeRequirements(specText, map, items) {
|
|
270
|
+
const ids = [];
|
|
271
|
+
const seen = new Set();
|
|
272
|
+
const add = (id) => { if (!seen.has(id)) {
|
|
273
|
+
seen.add(id);
|
|
274
|
+
ids.push(id);
|
|
275
|
+
} };
|
|
276
|
+
// A spec declares its requirements in bold — `- **FR-001**: …`, `- **REQ-12**: …`.
|
|
277
|
+
// Reading the DECLARATION (rather than any `PREFIX-123` token in the prose) keeps
|
|
278
|
+
// a project's own scheme working without matching ISO numbers, dates, or the form
|
|
279
|
+
// number in a header.
|
|
280
|
+
for (const m of specText.matchAll(/\*\*([A-Z][A-Z0-9]{1,7}-\d+)\*\*/g))
|
|
281
|
+
add(m[1]);
|
|
282
|
+
// Specs that do not bold their ids still work for the conventional prefixes.
|
|
283
|
+
if (ids.length === 0) {
|
|
284
|
+
for (const m of specText.matchAll(/\b(?:FR|TR|NFR)-\d+\b/g))
|
|
285
|
+
add(m[0]);
|
|
286
|
+
}
|
|
287
|
+
// Overrides may reference ids the spec text doesn't list (e.g. a shared catalog).
|
|
288
|
+
for (const id of Object.keys(map.requirements ?? {})) {
|
|
289
|
+
if (!seen.has(id)) {
|
|
290
|
+
seen.add(id);
|
|
291
|
+
ids.push(id);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (ids.length === 0)
|
|
295
|
+
return [];
|
|
296
|
+
return ids.map((id) => {
|
|
297
|
+
const traced = items.filter((it) => it.variants.some((v) => v.traces.includes(id)));
|
|
298
|
+
const override = (map.requirements ?? {})[id];
|
|
299
|
+
return {
|
|
300
|
+
id,
|
|
301
|
+
status: override?.status ?? (traced.length > 0 ? 'covered' : 'gap'),
|
|
302
|
+
items: traced.map((it) => it.id),
|
|
303
|
+
variantCount: traced.reduce((a, it) => a + it.variants.filter((v) => v.traces.includes(id)).length, 0),
|
|
304
|
+
note: override?.note ?? '',
|
|
305
|
+
};
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
/** Resolve one level of {{key}} cross-references inside test-data VALUES. */
|
|
309
|
+
function resolveCrossRefs(testData) {
|
|
310
|
+
if (!testData)
|
|
311
|
+
return null;
|
|
312
|
+
const out = {};
|
|
313
|
+
for (const [k, v] of Object.entries(testData)) {
|
|
314
|
+
out[k] = typeof v === 'string' && v.includes('{{') ? substituteDisplayVars(v, testData) : v;
|
|
315
|
+
}
|
|
316
|
+
return out;
|
|
317
|
+
}
|
|
318
|
+
function rowAsStrings(row) {
|
|
319
|
+
const out = {};
|
|
320
|
+
for (const [k, v] of Object.entries(row)) {
|
|
321
|
+
out[k] = String(v);
|
|
322
|
+
out[`row.${k}`] = String(v); // steps reference dataset columns as {{row.<col>}}
|
|
323
|
+
}
|
|
324
|
+
return out;
|
|
325
|
+
}
|
|
326
|
+
// ---------------------------------------------------------------------------
|
|
327
|
+
// Item assembly + roll-up
|
|
328
|
+
// ---------------------------------------------------------------------------
|
|
329
|
+
/**
|
|
330
|
+
* The exact word rendered in a variant's Result cell. This is the SINGLE
|
|
331
|
+
* vocabulary both the renderers and the parent's COUNTIF roll-up use — the
|
|
332
|
+
* legacy exporter's statusToTestResult disagreed on two statuses (`skipped`
|
|
333
|
+
* showed N/A but counted as not-run; `interrupted` showed Pending but counted
|
|
334
|
+
* as blocked), which silently skewed the derived parent result.
|
|
335
|
+
*/
|
|
336
|
+
function variantState(v) {
|
|
337
|
+
const r = v.result;
|
|
338
|
+
if (!r)
|
|
339
|
+
return 'Pending';
|
|
340
|
+
switch (r.status) {
|
|
341
|
+
case 'passed': return 'Passed';
|
|
342
|
+
case 'failed':
|
|
343
|
+
case 'timedOut': return 'Failed';
|
|
344
|
+
case 'interrupted': return 'Blocked';
|
|
345
|
+
case 'skipped': return 'N/A';
|
|
346
|
+
default: return 'Pending';
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
const STATE_TO_COUNT = {
|
|
350
|
+
Passed: 'passed', Failed: 'failed', Blocked: 'blocked', Pending: 'notRun', 'N/A': 'na',
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Derived parent result — precedence failed → blocked → all-N/A → not_run →
|
|
354
|
+
* partial → passed. `N/A` variants leave the denominator (an intentionally
|
|
355
|
+
* skipped case must not make the parent look incomplete).
|
|
356
|
+
*/
|
|
357
|
+
function rollUp(variants) {
|
|
358
|
+
const counts = { passed: 0, failed: 0, blocked: 0, notRun: 0, na: 0 };
|
|
359
|
+
for (const v of variants)
|
|
360
|
+
counts[STATE_TO_COUNT[variantState(v)]]++;
|
|
361
|
+
const effective = variants.length - counts.na;
|
|
362
|
+
let result;
|
|
363
|
+
if (counts.failed > 0)
|
|
364
|
+
result = 'failed';
|
|
365
|
+
else if (counts.blocked > 0)
|
|
366
|
+
result = 'blocked';
|
|
367
|
+
else if (effective === 0)
|
|
368
|
+
result = 'na';
|
|
369
|
+
else if (counts.passed === 0)
|
|
370
|
+
result = 'not_run';
|
|
371
|
+
else if (counts.passed === effective)
|
|
372
|
+
result = 'passed';
|
|
373
|
+
else
|
|
374
|
+
result = 'partial';
|
|
375
|
+
return { result, counts };
|
|
376
|
+
}
|
|
377
|
+
/** Longest shared leading run of steps — hoisted onto the parent row. */
|
|
378
|
+
function commonPrefix(lists) {
|
|
379
|
+
if (lists.length === 0)
|
|
380
|
+
return 0;
|
|
381
|
+
let n = 0;
|
|
382
|
+
while (lists.every((l) => l.length > n) && new Set(lists.map((l) => l[n])).size === 1)
|
|
383
|
+
n++;
|
|
384
|
+
return n;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* What the parent row's Action says when the variants share no opening step.
|
|
388
|
+
*
|
|
389
|
+
* The parent is the row a reviewer (and the customer) reads AS the test case, and
|
|
390
|
+
* with nothing to hoist its Action cell came out empty — 12 of 38 items in a real
|
|
391
|
+
* delivery. The steps are not missing, they are per-variant; say that, and name the
|
|
392
|
+
* axis they vary along so the cell carries meaning on its own.
|
|
393
|
+
*/
|
|
394
|
+
function varyingTriggerNote(dimensions, count) {
|
|
395
|
+
// `dimensions` reads "matching rule — title only · content only · …"; the part
|
|
396
|
+
// before the dash is the axis name.
|
|
397
|
+
const axis = dimensions?.split('—')[0].trim();
|
|
398
|
+
const where = axis && axis.length > 0 && axis.length <= 60 ? ` by ${axis}` : '';
|
|
399
|
+
return `The action differs${where} — run each of the ${count} variants below with its own steps.`;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Expand one map variant ref to concrete variant refs:
|
|
403
|
+
* a bare VP-id whose scenario has a dataset means ALL its rows.
|
|
404
|
+
*/
|
|
405
|
+
function expandMapRef(ref, variantsByVp) {
|
|
406
|
+
if (ref.includes('#')) {
|
|
407
|
+
const [vp] = ref.split('#');
|
|
408
|
+
return (variantsByVp.get(vp) ?? []).filter((v) => v.ref === ref);
|
|
409
|
+
}
|
|
410
|
+
return variantsByVp.get(ref) ?? [];
|
|
411
|
+
}
|
|
412
|
+
function buildMatrix(inputs) {
|
|
413
|
+
const { unit, map, transformerVersion } = inputs;
|
|
414
|
+
const variants = deriveVariants(inputs);
|
|
415
|
+
const variantsByVp = new Map();
|
|
416
|
+
for (const v of variants) {
|
|
417
|
+
const list = variantsByVp.get(v.vpId) ?? [];
|
|
418
|
+
list.push(v);
|
|
419
|
+
variantsByVp.set(v.vpId, list);
|
|
420
|
+
}
|
|
421
|
+
const findings = (0, gates_1.runGates)({ inputs, variants, variantsByVp });
|
|
422
|
+
const stale = new Set(findings.filter((f) => f.gate === 'E' && f.ref).map((f) => f.ref));
|
|
423
|
+
const items = map.groups.map((g) => {
|
|
424
|
+
const groupVariants = g.variants.flatMap((ref) => expandMapRef(ref, variantsByVp));
|
|
425
|
+
const { result, counts } = rollUp(groupVariants);
|
|
426
|
+
const first = groupVariants[0];
|
|
427
|
+
const modes = new Set(groupVariants.map((v) => v.mode));
|
|
428
|
+
const commonPre = (first?.precondition ?? []).filter((line) => groupVariants.every((v) => v.precondition.includes(line)));
|
|
429
|
+
// Steps every variant starts with belong on the parent once; each variant
|
|
430
|
+
// renders only its remaining steps (review: the shared prefix was repeated
|
|
431
|
+
// on every child while the parent cell sat empty).
|
|
432
|
+
const prefixLen = commonPrefix(groupVariants.map((v) => v.trigger));
|
|
433
|
+
// Item priority = highest variant priority (per-variant priorities stay visible).
|
|
434
|
+
const priorityRank = { High: 0, Normal: 1, Low: 2 };
|
|
435
|
+
const priority = groupVariants
|
|
436
|
+
.map((v) => v.priority)
|
|
437
|
+
.sort((a, b) => (priorityRank[a] ?? 1) - (priorityRank[b] ?? 1))[0] ?? 'Normal';
|
|
438
|
+
return {
|
|
439
|
+
id: g.id,
|
|
440
|
+
target: g.target,
|
|
441
|
+
intent: g.intent,
|
|
442
|
+
oracle: g.oracle,
|
|
443
|
+
category: g.category,
|
|
444
|
+
// A stale (drifted) group presents as proposed regardless of its stored state.
|
|
445
|
+
review: stale.has(g.id) ? 'proposed' : g.review,
|
|
446
|
+
priority,
|
|
447
|
+
mode: modes.size > 1 ? 'mixed' : (first?.mode ?? 'auto'),
|
|
448
|
+
layers: Array.from(new Set(groupVariants.flatMap((v) => v.layers))),
|
|
449
|
+
traces: Array.from(new Set(groupVariants.flatMap((v) => v.traces))),
|
|
450
|
+
dimensions: g.dimensions,
|
|
451
|
+
// Only the preconditions COMMON to every variant belong on the parent —
|
|
452
|
+
// copying the first variant's setup mis-states the start state of the
|
|
453
|
+
// others (review GAP-03). Variant-specific lines render as the sub-row's
|
|
454
|
+
// precondition delta.
|
|
455
|
+
precondition: commonPre,
|
|
456
|
+
preconditionDeltas: Object.fromEntries(groupVariants.map((v) => [v.ref, v.precondition.filter((line) => !commonPre.includes(line))])),
|
|
457
|
+
triggerDeltas: Object.fromEntries(groupVariants.map((v) => [v.ref, v.trigger.slice(prefixLen)])),
|
|
458
|
+
// Nothing shared to hoist → say what varies rather than leaving the cell blank.
|
|
459
|
+
trigger: prefixLen > 0 || groupVariants.length === 0
|
|
460
|
+
? (first?.trigger ?? []).slice(0, prefixLen)
|
|
461
|
+
: [varyingTriggerNote(g.dimensions, groupVariants.length)],
|
|
462
|
+
variants: groupVariants,
|
|
463
|
+
result,
|
|
464
|
+
resultCounts: counts,
|
|
465
|
+
};
|
|
466
|
+
});
|
|
467
|
+
const dispositions = Object.entries(map.dispositions).map(([vpId, d]) => ({
|
|
468
|
+
vpId,
|
|
469
|
+
title: variantsByVp.get(vpId)?.[0]?.title ?? '',
|
|
470
|
+
as: d.as,
|
|
471
|
+
reason: d.reason ?? '',
|
|
472
|
+
}));
|
|
473
|
+
// Requirement coverage (review §6): the requirement-id inventory comes from
|
|
474
|
+
// requirements/spec.md; @spec: traces mark `covered`; the map's `requirements:`
|
|
475
|
+
// section carries the reviewed overrides (partially_covered / not_applicable / …).
|
|
476
|
+
const requirements = computeRequirements(inputs.specText ?? '', map, items);
|
|
477
|
+
const gaps = requirements.filter((r) => r.status === 'gap');
|
|
478
|
+
if (gaps.length > 0) {
|
|
479
|
+
findings.push({
|
|
480
|
+
gate: 'R', severity: 'warning',
|
|
481
|
+
message: `${gaps.length} requirement id(s) with no coverage or disposition: ${gaps.map((g) => g.id).join(', ')} — trace them, or record a status in the map \`requirements:\` section`,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
// A `covered` claim with no traced variant is prose, not traceability: nothing
|
|
485
|
+
// detects it when the proving scenario is later changed or deleted. Either tag
|
|
486
|
+
// the scenario that proves it (`@spec:<id>`) or say where it IS covered.
|
|
487
|
+
const unbacked = requirements.filter((r) => r.status === 'covered' && r.items.length === 0);
|
|
488
|
+
if (unbacked.length > 0) {
|
|
489
|
+
findings.push({
|
|
490
|
+
gate: 'R', severity: 'warning',
|
|
491
|
+
message: `${unbacked.length} requirement id(s) declared \`covered\` with no variant tracing to them: ${unbacked.map((r) => r.id).join(', ')} — add \`@spec:<id>\` to the scenario that proves each, or use covered_elsewhere / partially_covered with a named reference`,
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
const variantCount = items.reduce((a, i) => a + i.variants.length, 0);
|
|
495
|
+
const approved = items.every((i) => i.review === 'approved')
|
|
496
|
+
&& !findings.some((f) => f.severity === 'error' || f.severity === 'review');
|
|
497
|
+
return {
|
|
498
|
+
unit,
|
|
499
|
+
formNo: map.formNo ?? 'BM-2-901-13',
|
|
500
|
+
items,
|
|
501
|
+
dispositions,
|
|
502
|
+
requirements,
|
|
503
|
+
findings,
|
|
504
|
+
manifest: {
|
|
505
|
+
unit,
|
|
506
|
+
transformerVersion,
|
|
507
|
+
sourceFingerprint: (0, fingerprint_1.combinedFingerprint)(variants.map((v) => v.fingerprint)),
|
|
508
|
+
mapFingerprint: (0, fingerprint_1.mapContentFingerprint)(map.groups, map.dispositions),
|
|
509
|
+
approvalState: approved ? 'approved' : 'draft',
|
|
510
|
+
itemCount: items.length,
|
|
511
|
+
variantCount,
|
|
512
|
+
thresholds: { maxVariantsPerItem: types_1.MAX_VARIANTS_PER_ITEM },
|
|
513
|
+
},
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/exporters/matrix/build.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAiGH,wCAmJC;AAgCD,oCAKC;AAaD,kDAkCC;AAgCD,oCAWC;AAWD,wBAYC;AAkBD,gDAMC;AAMD,oCAMC;AAED,kCAiHC;AA7hBD,sDAK2B;AAC3B,wDAAgF;AAChF,uCAA4I;AAC5I,+CAAgG;AAChG,mCAWiB;AACjB,mCAAmC;AAEnC,8EAA8E;AAC9E,qBAAqB;AACrB,8EAA8E;AAE9E,mFAAmF;AACnF,SAAS,cAAc,CAAC,IAAY;IAClC,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IA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IAE9E,OAAO;QACL,IAAI;QACJ,MAAM,EAAE,GAAG,CAAC,MAAM,IAAI,aAAa;QACnC,KAAK;QACL,YAAY;QACZ,YAAY;QACZ,QAAQ;QACR,QAAQ,EAAE;YACR,IAAI;YACJ,kBAAkB;YAClB,iBAAiB,EAAE,IAAA,iCAAmB,EAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;YAC1E,cAAc,EAAE,IAAA,mCAAqB,EAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,CAAC;YACnE,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO;YAC9C,SAAS,EAAE,KAAK,CAAC,MAAM;YACvB,YAAY;YACZ,UAAU,EAAE,EAAE,kBAAkB,EAAE,6BAAqB,EAAE;SAC1D;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Matrix export orchestration — the piece `sungen delivery` calls.
|
|
3
|
+
*
|
|
4
|
+
* Composes the existing parsing seams (feature-parser, spec-parser, test-data,
|
|
5
|
+
* playwright report) with the map loader, builder, gates, and renderers. All
|
|
6
|
+
* inputs arrive as resolved paths so the CLI's discovery logic stays the single
|
|
7
|
+
* owner of unit-kind layout rules.
|
|
8
|
+
*/
|
|
9
|
+
import { DeliveryMap, MatrixFinding, MatrixModel } from './types';
|
|
10
|
+
export interface MatrixTargetPaths {
|
|
11
|
+
cwd: string;
|
|
12
|
+
/** Feature basename — names the deliverable files. */
|
|
13
|
+
unit: string;
|
|
14
|
+
/** Display label (flow/… prefix for flows). */
|
|
15
|
+
label: string;
|
|
16
|
+
featureFile: string;
|
|
17
|
+
testDataFile: string;
|
|
18
|
+
specFile: string;
|
|
19
|
+
/** requirements/spec.md — the requirement-id inventory for coverage (optional). */
|
|
20
|
+
specMdFile?: string;
|
|
21
|
+
resultsPath: string | null;
|
|
22
|
+
mapFile: string;
|
|
23
|
+
}
|
|
24
|
+
export interface MatrixLoadResult {
|
|
25
|
+
model?: MatrixModel;
|
|
26
|
+
map?: DeliveryMap;
|
|
27
|
+
/** No map file → the caller prints the guidance path (AI proposal or --legacy). */
|
|
28
|
+
mapMissing?: boolean;
|
|
29
|
+
/** Structural map problems (bad YAML/shape) — fix the file before anything else. */
|
|
30
|
+
mapErrors: string[];
|
|
31
|
+
}
|
|
32
|
+
export declare function loadMatrixModel(paths: MatrixTargetPaths): MatrixLoadResult;
|
|
33
|
+
export declare const hasErrors: (f: MatrixFinding[]) => boolean;
|
|
34
|
+
export declare const hasReview: (f: MatrixFinding[]) => boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Stamp fingerprints + flip groups to `approved` (all groups, or just `groupIds`).
|
|
37
|
+
* Refuses when gate ERRORs remain — an invalid map must not be frozen as approved.
|
|
38
|
+
* Returns the findings so the caller reports what blocked or what was approved.
|
|
39
|
+
*/
|
|
40
|
+
export declare function approveMatrix(paths: MatrixTargetPaths, groupIds?: string[]): {
|
|
41
|
+
findings: MatrixFinding[];
|
|
42
|
+
approved: string[];
|
|
43
|
+
};
|
|
44
|
+
export type MatrixFormat = 'xlsx' | 'csv' | 'both';
|
|
45
|
+
/** Render + write the requested format(s). Caller has already enforced the gate policy. */
|
|
46
|
+
export declare function writeMatrixDeliverables(paths: MatrixTargetPaths, model: MatrixModel, format?: MatrixFormat): Promise<{
|
|
47
|
+
csvPath?: string;
|
|
48
|
+
xlsxPath?: string;
|
|
49
|
+
}>;
|
|
50
|
+
//# sourceMappingURL=export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/exporters/matrix/export.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgBH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE,MAAM,WAAW,iBAAiB;IA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