@sun-asterisk/sungen 3.2.16-beta.11 → 3.2.16-beta.13
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 +17 -0
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/cli/index.js +5 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/exporters/matrix/build.d.ts +9 -0
- package/dist/exporters/matrix/build.d.ts.map +1 -1
- package/dist/exporters/matrix/build.js +20 -1
- package/dist/exporters/matrix/build.js.map +1 -1
- package/dist/harness/audit.d.ts +4 -0
- package/dist/harness/audit.d.ts.map +1 -1
- package/dist/harness/audit.js +20 -3
- package/dist/harness/audit.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 +14 -2
- package/dist/harness/capability-plan.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/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 -9
- package/dist/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +1 -0
- package/package.json +4 -4
- package/src/cli/commands/audit.ts +18 -1
- package/src/cli/index.ts +6 -0
- package/src/exporters/matrix/build.ts +20 -1
- package/src/harness/audit.ts +22 -4
- package/src/harness/capability-plan.ts +14 -2
- package/src/harness/viewpoint-baseline.ts +128 -0
- package/src/orchestrator/assets-drift.ts +64 -0
- package/src/orchestrator/templates/ai-src/commands/create-test.md +24 -9
- package/src/orchestrator/templates/ai-src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GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACrB,MAAM;QACN,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,IAAI,kBAAkB,MAAM,EAAE;QAC3D,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM;QACzB,SAAS,EAAE,CAAC,CAAC,SAAS;KACvB,CAAC,CAAC;SACF,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IAErC,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACzC,OAAO;QACL,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,SAAS,CAAC,MAAM;QACvB,KAAK;QACL,QAAQ;QACR,YAAY;QACZ,gBAAgB;QAChB,cAAc;QACd,WAAW;QACX,mBAAmB,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACzF,eAAe;QACf,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;KAC5G,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keep the yardstick from moving with the thing it measures.
|
|
3
|
+
*
|
|
4
|
+
* `test-viewpoint.md` is the project's declaration of WHAT must be tested, and two
|
|
5
|
+
* scored axes measure the suite against it: `traceability` (do scenarios use the
|
|
6
|
+
* declared viewpoint ids?) and `atomicLedger` (is every declared item covered?).
|
|
7
|
+
* Both are only evidence while the declaration is INDEPENDENT of the suite.
|
|
8
|
+
*
|
|
9
|
+
* A `/sungen:create-test` run rewrote a filled test-viewpoint.md, replacing the
|
|
10
|
+
* declared categories with exactly the ones it had just generated. Both axes read
|
|
11
|
+
* 100% by construction — and the performance viewpoint it dropped on the way
|
|
12
|
+
* (4 perf scenarios → 2) went unreported, because VP-PERF was no longer declared
|
|
13
|
+
* for anything to be missing from.
|
|
14
|
+
*
|
|
15
|
+
* So: remember the declaration, and when it changes, say so and stop counting the
|
|
16
|
+
* two axes that depend on it until a human accepts the new baseline. Same rule the
|
|
17
|
+
* score model already applies to an undetermined page type — absent independent
|
|
18
|
+
* evidence scores nothing, in either direction.
|
|
19
|
+
*/
|
|
20
|
+
/** Axes whose evidence is `test-viewpoint.md` — excluded while the baseline is unconfirmed. */
|
|
21
|
+
export declare const VIEWPOINT_DEPENDENT_AXES: readonly ["atomicLedger", "traceability"];
|
|
22
|
+
export interface ViewpointBaseline {
|
|
23
|
+
status: 'absent' | 'new' | 'unchanged' | 'changed';
|
|
24
|
+
/** sha1 of the normalized file — '' when the unit has no test-viewpoint.md. */
|
|
25
|
+
hash: string;
|
|
26
|
+
ids: string[];
|
|
27
|
+
/** Only on `changed`: how the declaration moved. */
|
|
28
|
+
added?: string[];
|
|
29
|
+
removed?: string[];
|
|
30
|
+
recordedAt?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Compare the unit's current test-viewpoint declaration to the recorded baseline.
|
|
34
|
+
* Read-only — recording is the caller's decision, so an audit stays a measurement
|
|
35
|
+
* and `--accept-viewpoint` stays the explicit human act. A first sighting reports
|
|
36
|
+
* `new` (nothing to compare against yet).
|
|
37
|
+
*/
|
|
38
|
+
export declare function checkViewpointBaseline(projectRoot: string, unitId: string, viewpointPath: string): ViewpointBaseline;
|
|
39
|
+
/** Record the current declaration as the accepted baseline (`sungen audit --accept-viewpoint`). */
|
|
40
|
+
export declare function acceptViewpointBaseline(projectRoot: string, unitId: string, current: {
|
|
41
|
+
hash: string;
|
|
42
|
+
ids: string[];
|
|
43
|
+
}): void;
|
|
44
|
+
/** Read the declaration without recording anything (used by `--accept-viewpoint`). */
|
|
45
|
+
export declare function readViewpointDeclaration(viewpointPath: string): {
|
|
46
|
+
hash: string;
|
|
47
|
+
ids: string[];
|
|
48
|
+
} | null;
|
|
49
|
+
//# sourceMappingURL=viewpoint-baseline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewpoint-baseline.d.ts","sourceRoot":"","sources":["../../src/harness/viewpoint-baseline.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,+FAA+F;AAC/F,eAAO,MAAM,wBAAwB,2CAA4C,CAAC;AAElF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,QAAQ,GAAG,KAAK,GAAG,WAAW,GAAG,SAAS,CAAC;IACnD,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAoCD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACpB,iBAAiB,CAqBnB;AAED,mGAAmG;AACnG,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,EAAE,CAAA;CAAE,GACvC,IAAI,CAQN;AAED,sFAAsF;AACtF,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,IAAI,CAKtG"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.VIEWPOINT_DEPENDENT_AXES = void 0;
|
|
37
|
+
exports.checkViewpointBaseline = checkViewpointBaseline;
|
|
38
|
+
exports.acceptViewpointBaseline = acceptViewpointBaseline;
|
|
39
|
+
exports.readViewpointDeclaration = readViewpointDeclaration;
|
|
40
|
+
const crypto = __importStar(require("crypto"));
|
|
41
|
+
const fs = __importStar(require("fs"));
|
|
42
|
+
const path = __importStar(require("path"));
|
|
43
|
+
const parse_1 = require("./parse");
|
|
44
|
+
/**
|
|
45
|
+
* Keep the yardstick from moving with the thing it measures.
|
|
46
|
+
*
|
|
47
|
+
* `test-viewpoint.md` is the project's declaration of WHAT must be tested, and two
|
|
48
|
+
* scored axes measure the suite against it: `traceability` (do scenarios use the
|
|
49
|
+
* declared viewpoint ids?) and `atomicLedger` (is every declared item covered?).
|
|
50
|
+
* Both are only evidence while the declaration is INDEPENDENT of the suite.
|
|
51
|
+
*
|
|
52
|
+
* A `/sungen:create-test` run rewrote a filled test-viewpoint.md, replacing the
|
|
53
|
+
* declared categories with exactly the ones it had just generated. Both axes read
|
|
54
|
+
* 100% by construction — and the performance viewpoint it dropped on the way
|
|
55
|
+
* (4 perf scenarios → 2) went unreported, because VP-PERF was no longer declared
|
|
56
|
+
* for anything to be missing from.
|
|
57
|
+
*
|
|
58
|
+
* So: remember the declaration, and when it changes, say so and stop counting the
|
|
59
|
+
* two axes that depend on it until a human accepts the new baseline. Same rule the
|
|
60
|
+
* score model already applies to an undetermined page type — absent independent
|
|
61
|
+
* evidence scores nothing, in either direction.
|
|
62
|
+
*/
|
|
63
|
+
/** Axes whose evidence is `test-viewpoint.md` — excluded while the baseline is unconfirmed. */
|
|
64
|
+
exports.VIEWPOINT_DEPENDENT_AXES = ['atomicLedger', 'traceability'];
|
|
65
|
+
function baselinePath(projectRoot) {
|
|
66
|
+
return path.join(projectRoot, '.sungen', 'viewpoint-baseline.json');
|
|
67
|
+
}
|
|
68
|
+
function readBaselineFile(projectRoot) {
|
|
69
|
+
const p = baselinePath(projectRoot);
|
|
70
|
+
if (!fs.existsSync(p))
|
|
71
|
+
return { version: 1, units: {} };
|
|
72
|
+
try {
|
|
73
|
+
const parsed = JSON.parse(fs.readFileSync(p, 'utf-8'));
|
|
74
|
+
return parsed && typeof parsed === 'object' && parsed.units ? parsed : { version: 1, units: {} };
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
return { version: 1, units: {} }; // unreadable → treat as unrecorded, never throw
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function writeBaselineFile(projectRoot, data) {
|
|
81
|
+
const p = baselinePath(projectRoot);
|
|
82
|
+
fs.mkdirSync(path.dirname(p), { recursive: true });
|
|
83
|
+
fs.writeFileSync(p, `${JSON.stringify(data, null, 2)}\n`, 'utf-8');
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Hash the DECLARATION, not the prose: an author reflowing a sentence must not read
|
|
87
|
+
* as the taxonomy moving. Only the declared viewpoint ids are fingerprinted.
|
|
88
|
+
*/
|
|
89
|
+
function fingerprint(ids) {
|
|
90
|
+
return crypto.createHash('sha1').update(ids.join('\n')).digest('hex').slice(0, 12);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Compare the unit's current test-viewpoint declaration to the recorded baseline.
|
|
94
|
+
* Read-only — recording is the caller's decision, so an audit stays a measurement
|
|
95
|
+
* and `--accept-viewpoint` stays the explicit human act. A first sighting reports
|
|
96
|
+
* `new` (nothing to compare against yet).
|
|
97
|
+
*/
|
|
98
|
+
function checkViewpointBaseline(projectRoot, unitId, viewpointPath) {
|
|
99
|
+
if (!fs.existsSync(viewpointPath))
|
|
100
|
+
return { status: 'absent', hash: '', ids: [] };
|
|
101
|
+
const ids = (0, parse_1.parseViewpointOverview)(viewpointPath).map((v) => v.id).sort();
|
|
102
|
+
const hash = fingerprint(ids);
|
|
103
|
+
if (ids.length === 0)
|
|
104
|
+
return { status: 'absent', hash: '', ids: [] };
|
|
105
|
+
const file = readBaselineFile(projectRoot);
|
|
106
|
+
const recorded = file.units[unitId];
|
|
107
|
+
if (!recorded)
|
|
108
|
+
return { status: 'new', hash, ids };
|
|
109
|
+
if (recorded.hash === hash)
|
|
110
|
+
return { status: 'unchanged', hash, ids, recordedAt: recorded.recordedAt };
|
|
111
|
+
const before = new Set(recorded.ids ?? []);
|
|
112
|
+
const now = new Set(ids);
|
|
113
|
+
return {
|
|
114
|
+
status: 'changed',
|
|
115
|
+
hash,
|
|
116
|
+
ids,
|
|
117
|
+
added: ids.filter((i) => !before.has(i)),
|
|
118
|
+
removed: (recorded.ids ?? []).filter((i) => !now.has(i)),
|
|
119
|
+
recordedAt: recorded.recordedAt,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/** Record the current declaration as the accepted baseline (`sungen audit --accept-viewpoint`). */
|
|
123
|
+
function acceptViewpointBaseline(projectRoot, unitId, current) {
|
|
124
|
+
const file = readBaselineFile(projectRoot);
|
|
125
|
+
file.units[unitId] = {
|
|
126
|
+
hash: current.hash,
|
|
127
|
+
ids: current.ids,
|
|
128
|
+
recordedAt: new Date().toISOString(),
|
|
129
|
+
};
|
|
130
|
+
writeBaselineFile(projectRoot, file);
|
|
131
|
+
}
|
|
132
|
+
/** Read the declaration without recording anything (used by `--accept-viewpoint`). */
|
|
133
|
+
function readViewpointDeclaration(viewpointPath) {
|
|
134
|
+
if (!fs.existsSync(viewpointPath))
|
|
135
|
+
return null;
|
|
136
|
+
const ids = (0, parse_1.parseViewpointOverview)(viewpointPath).map((v) => v.id).sort();
|
|
137
|
+
if (ids.length === 0)
|
|
138
|
+
return null;
|
|
139
|
+
return { hash: fingerprint(ids), ids };
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=viewpoint-baseline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewpoint-baseline.js","sourceRoot":"","sources":["../../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,GAAG,IAAA,8BAAsB,EAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1E,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAClC,OAAO,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Are this project's AI assets (commands + skills under `.claude/` etc.) the ones
|
|
3
|
+
* the running sungen would write?
|
|
4
|
+
*
|
|
5
|
+
* Upgrading the npm package does NOT refresh them — `sungen update` does. Nothing
|
|
6
|
+
* said so, so a project kept running prompts from an older build indefinitely: a
|
|
7
|
+
* QA upgraded, re-ran `/sungen:create-test`, and got the OLD command (141 lines vs
|
|
8
|
+
* the shipped 267) with none of the newer guidance. The failure is invisible
|
|
9
|
+
* because everything still "works", just to an older specification.
|
|
10
|
+
*
|
|
11
|
+
* The manifest already records the version + a hash per managed file; this only
|
|
12
|
+
* reads it and reports.
|
|
13
|
+
*/
|
|
14
|
+
export interface AssetsDrift {
|
|
15
|
+
recordedVersion: string;
|
|
16
|
+
runningVersion: string;
|
|
17
|
+
/** Managed files whose content no longer matches the manifest's hash. */
|
|
18
|
+
changed: number;
|
|
19
|
+
total: number;
|
|
20
|
+
}
|
|
21
|
+
export declare function checkAssetsDrift(cwd: string): AssetsDrift | null;
|
|
22
|
+
/** One line, on stderr so `--json` output stays machine-readable. */
|
|
23
|
+
export declare function warnAssetsDrift(cwd: string): void;
|
|
24
|
+
//# sourceMappingURL=assets-drift.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets-drift.d.ts","sourceRoot":"","sources":["../../src/orchestrator/assets-drift.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAwBhE;AAED,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAWjD"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.checkAssetsDrift = checkAssetsDrift;
|
|
37
|
+
exports.warnAssetsDrift = warnAssetsDrift;
|
|
38
|
+
const fs = __importStar(require("fs"));
|
|
39
|
+
const path = __importStar(require("path"));
|
|
40
|
+
const package_info_1 = require("../exporters/package-info");
|
|
41
|
+
function checkAssetsDrift(cwd) {
|
|
42
|
+
const manifestPath = path.join(cwd, '.sungen', 'manifest.json');
|
|
43
|
+
if (!fs.existsSync(manifestPath))
|
|
44
|
+
return null; // not a sungen project (yet)
|
|
45
|
+
let manifest;
|
|
46
|
+
try {
|
|
47
|
+
manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf-8'));
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
return null; // unreadable → say nothing
|
|
51
|
+
}
|
|
52
|
+
const recordedVersion = manifest.version ?? '';
|
|
53
|
+
const runningVersion = (0, package_info_1.getPackageVersion)();
|
|
54
|
+
const managed = manifest.managed ?? {};
|
|
55
|
+
const total = Object.keys(managed).length;
|
|
56
|
+
if (!recordedVersion || total === 0)
|
|
57
|
+
return null;
|
|
58
|
+
// A version match is the common case — trust it and skip hashing entirely.
|
|
59
|
+
if (recordedVersion === runningVersion)
|
|
60
|
+
return null;
|
|
61
|
+
let changed = 0;
|
|
62
|
+
for (const rel of Object.keys(managed)) {
|
|
63
|
+
if (!fs.existsSync(path.join(cwd, rel)))
|
|
64
|
+
changed++;
|
|
65
|
+
}
|
|
66
|
+
return { recordedVersion, runningVersion, changed, total };
|
|
67
|
+
}
|
|
68
|
+
/** One line, on stderr so `--json` output stays machine-readable. */
|
|
69
|
+
function warnAssetsDrift(cwd) {
|
|
70
|
+
const drift = checkAssetsDrift(cwd);
|
|
71
|
+
if (!drift)
|
|
72
|
+
return;
|
|
73
|
+
const gray = '\x1b[90m';
|
|
74
|
+
const cyan = '\x1b[36m';
|
|
75
|
+
const reset = '\x1b[0m';
|
|
76
|
+
process.stderr.write(`${gray}note: this project's AI commands/skills were written by sungen ${drift.recordedVersion}, ` +
|
|
77
|
+
`you are running ${drift.runningVersion} — run ${cyan}sungen update${reset}${gray} to refresh them ` +
|
|
78
|
+
`(upgrading the package alone does not).${reset}\n`);
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=assets-drift.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets-drift.js","sourceRoot":"","sources":["../../src/orchestrator/assets-drift.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,4CAwBC;AAGD,0CAWC;AA/DD,uCAAyB;AACzB,2CAA6B;AAC7B,4DAA8D;AAuB9D,SAAgB,gBAAgB,CAAC,GAAW;IAC1C,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;IAChE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,IAAI,CAAC,CAAG,6BAA6B;IAE9E,IAAI,QAAgE,CAAC;IACrE,IAAI,CAAC;QACH,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;IAChE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC,CAAoC,2BAA2B;IAC7E,CAAC;IACD,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;IAC/C,MAAM,cAAc,GAAG,IAAA,gCAAiB,GAAE,CAAC;IAC3C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;IACvC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,CAAC,eAAe,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEjD,2EAA2E;IAC3E,IAAI,eAAe,KAAK,cAAc;QAAE,OAAO,IAAI,CAAC;IAEpD,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACvC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YAAE,OAAO,EAAE,CAAC;IACrD,CAAC;IACD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC7D,CAAC;AAED,qEAAqE;AACrE,SAAgB,eAAe,CAAC,GAAW;IACzC,MAAM,KAAK,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACpC,IAAI,CAAC,KAAK;QAAE,OAAO;IACnB,MAAM,IAAI,GAAG,UAAU,CAAC;IACxB,MAAM,IAAI,GAAG,UAAU,CAAC;IACxB,MAAM,KAAK,GAAG,SAAS,CAAC;IACxB,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,GAAG,IAAI,kEAAkE,KAAK,CAAC,eAAe,IAAI;QAClG,mBAAmB,KAAK,CAAC,cAAc,UAAU,IAAI,gBAAgB,KAAK,GAAG,IAAI,mBAAmB;QACpG,0CAA0C,KAAK,IAAI,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -68,15 +68,6 @@ If the unit is **api-first** (`qa/api/<name>/` or `qa/api/flows/<name>/`), the d
|
|
|
68
68
|
If the unit is **api-first** (`qa/api/<name>/` or `qa/api/flows/<name>/`), the design loop differs — **no visual capture, no selectors**; the contract is the named-endpoint catalog. **Follow the `sungen-api-design` + `sungen-api-coverage-model` skills end-to-end** instead of the screen/flow steps: `sungen context --area <name>` (discover endpoints + `fields:`) → **enumerate the Tier-1 case list per endpoint from the coverage model** (contract + not-found/required-matrix + auth + idempotency, expanded mechanically from `fields:`) → generate `@api`/`@cases`/flow/`@concurrent`/`@query` scenarios with **strict assertions** (prove the effect, never status-only) → **`sungen audit --area <name>` gate + reviewer + repair loop to businessDepth ≥ 0.7** → record + trace. Then recommend `/sungen-run-test <name>`. The capture / viewpoint-group / selector steps do **not** apply.
|
|
69
69
|
{{/cap}}
|
|
70
70
|
|
|
71
|
-
## Requirement traceability (before you finish)
|
|
72
|
-
|
|
73
|
-
Cross-check `requirements/spec.md` against the scenarios you wrote: every `FR-`/`TR-`/`NFR-` id
|
|
74
|
-
must either carry a `@spec:<id>` tag on the scenario that proves it, or be a conscious
|
|
75
|
-
out-of-scope decision you state in the summary. `sungen audit` reports `SPEC-TRACE-IMPLICIT` for
|
|
76
|
-
requirements it could only match by keyword — treat that list as a to-do: add the tag to the
|
|
77
|
-
proving scenario, do not leave the link to inference. Delivery's requirement table follows the
|
|
78
|
-
tag only, so an untagged requirement is later reported as an uncovered gap.
|
|
79
|
-
|
|
80
71
|
## Steps
|
|
81
72
|
|
|
82
73
|
{{#cap parallel-subagents}}
|
|
@@ -124,12 +115,16 @@ tag only, so an untagged requirement is later reported as an uncovered gap.
|
|
|
124
115
|
- **Fill test-viewpoint.md first** — I'll help you identify edge cases, known issues, and design decisions for this screen before generating tests
|
|
125
116
|
- **Continue without it** — generate tests from spec and other sources only
|
|
126
117
|
|
|
118
|
+
**A filled `test-viewpoint.md` is an INPUT — never an output.** Do NOT rewrite, re-order, or replace its viewpoint declarations as part of generating tests. It is the yardstick two scored axes measure the suite against (`traceability`, `atomicLedger`): rewrite it to match what you just generated and both read 100% by construction, while any viewpoint you quietly dropped stops being missing from anything. If the declared taxonomy genuinely does not fit the screen, **report the mismatch and ask** — propose the diff (ids added / removed and why) and let the QA decide. `sungen audit` reports `VIEWPOINT-BASELINE-CHANGED` and stops scoring both axes when this file moves, so an unannounced rewrite lowers the score rather than raising it.
|
|
119
|
+
|
|
127
120
|
**Context discovery (prefer an isolated agent).** Reading all sources here can flood this context. **Claude Code:** spawn the **`sungen-discovery`** sub-agent (Task tool, `subagent_type: sungen-discovery`) to read spec/figma/ui/live in isolation and return a **compact discovery report** (sources, completeness, conflicts, recommended route, key facts); use that report instead of pasting raw sources. **Copilot / no sub-agents:** do the reading inline as below.
|
|
128
121
|
{{/cap}}
|
|
129
122
|
{{^cap parallel-subagents}}
|
|
130
123
|
- If `test-viewpoint.md` exists → read it. If it only contains HTML comments (scaffold template), ask:
|
|
131
124
|
- **1) Fill test-viewpoint.md first** — identify edge cases, known issues, and design decisions before generating tests
|
|
132
125
|
- **2) Continue without it** — generate tests from spec and other sources only
|
|
126
|
+
|
|
127
|
+
**A filled `test-viewpoint.md` is an INPUT — never an output.** Do NOT rewrite, re-order, or replace its viewpoint declarations while generating tests. It is the yardstick two scored axes measure the suite against (`traceability`, `atomicLedger`): rewrite it to match what you just generated and both read 100% by construction, while any viewpoint you quietly dropped stops being missing from anything. If the declared taxonomy genuinely does not fit the screen, **report the mismatch and ask** — propose the diff (ids added / removed and why) and let the QA decide. `sungen audit` reports `VIEWPOINT-BASELINE-CHANGED` and stops scoring both axes when this file moves.
|
|
133
128
|
{{/cap}}
|
|
134
129
|
|
|
135
130
|
**Auto-detect visual source** — do NOT ask the user to pick a source. Instead, check what already exists and use it:
|
|
@@ -265,3 +260,23 @@ tag only, so an untagged requirement is later reported as an uncovered gap.
|
|
|
265
260
|
{{^cap parallel-subagents}}
|
|
266
261
|
**No selectors.yaml** — selectors are generated during `/sungen-run-test`.
|
|
267
262
|
{{/cap}}
|
|
263
|
+
|
|
264
|
+
## Finish — always hand the next step back
|
|
265
|
+
|
|
266
|
+
Do not stop after writing the files. Close every run with, in this order:
|
|
267
|
+
|
|
268
|
+
1. **The traceability check below** — an untagged requirement becomes an uncovered gap at delivery.
|
|
269
|
+
2. **The harness result in one line** — score, gate verdict, and the axis the `SCORE-CAPPED` finding
|
|
270
|
+
names (that finding is the single answer to "how do I raise the score").
|
|
271
|
+
3. **`AskUserQuestion` with the next actions** — never end with prose alone. Offer
|
|
272
|
+
`/sungen:run-test <name>` (recommended once the tiers are written), re-running `create-test` to
|
|
273
|
+
extend, and "Done for now". A run that ends without this leaves the operator guessing.
|
|
274
|
+
|
|
275
|
+
### Requirement traceability
|
|
276
|
+
|
|
277
|
+
Cross-check `requirements/spec.md` against the scenarios you wrote: every `FR-`/`TR-`/`NFR-` id
|
|
278
|
+
must either carry a `@spec:<id>` tag on the scenario that proves it, or be a conscious
|
|
279
|
+
out-of-scope decision you state in the summary. `sungen audit` reports `SPEC-TRACE-IMPLICIT` for
|
|
280
|
+
requirements it could only match by keyword — treat that list as a to-do: add the tag to the
|
|
281
|
+
proving scenario, do not leave the link to inference. Delivery's requirement table follows the
|
|
282
|
+
tag only, so an untagged requirement is later reported as an uncovered gap.
|
|
@@ -340,6 +340,7 @@ Security: [S1 – admin only]
|
|
|
340
340
|
`sungen audit` enforces these. Generate compliant output up front:
|
|
341
341
|
|
|
342
342
|
1. **Taxonomy-match** (`VP-TAXONOMY-MISMATCH`, gate-FAIL) — when `test-viewpoint.md` declares its own viewpoint IDs (e.g. `VP0`, `VP1`, … `VP12`, `MS-HP-001`, `MS-EH-001`), **reuse those IDs verbatim as the scenario codes**. Do NOT invent a generic `VP-UI / VP-LOGIC / VP-VAL` scheme — that breaks the coverage matrix. Only fall back to `VP-<CATEGORY>-<NNN>` when the viewpoint file declares no IDs.
|
|
343
|
+
- **Match the scenarios to the file — never the file to the scenarios.** A filled `test-viewpoint.md` is an input; do not rewrite its declarations to fit what you generated. That is not compliance, it is moving the yardstick: `traceability` + `atomicLedger` then read 100% by construction and a dropped viewpoint stops being missing from anything. Disagree with the taxonomy → propose the diff and ask. `sungen audit` reports `VIEWPOINT-BASELINE-CHANGED` and excludes both axes until a human accepts the change (`sungen audit --screen <name> --accept-viewpoint`).
|
|
343
344
|
2. **Spec-coverage triggers** (`TRIGGER-UNCOVERED`, gate-FAIL) — the Validation-Rules table lists a **trigger** per constraint (e.g. `blur, submit`). Generate one scenario **per (constraint × trigger)** — a `format` rule validating *on blur AND on submit* needs BOTH a blur scenario (`press Tab`) and a submit scenario (`click [Submit]` / `press Enter`). Never collapse the trigger × input matrix to one representative case.
|
|
344
345
|
3. **Claim-Proof** (`CLAIM-UNPROVEN`) — a title claiming `all`/`only`/`every`/`single`/`correct`/`same`/`changes`/`hidden`/`cleared`/`restored`/`independent`/`sanitized`/`announces` MUST have the matching assertion (`see all …`, count, `remember`+compare, `is hidden`, return-and-assert-empty, etc.). If the title promises it, the steps must prove it.
|
|
345
346
|
- **Negative / absence claims** (`does not` / `no` / `never` / `prevents` / `không` / `chưa` — any language; `no-side-effect/no-duplicate`, `negative-claim/absence`): the `Then` must **differ** between the claim holding and not holding. A terminal `see [X] page` that looks identical whether or not the bad thing happened proves nothing. For a side-effect that should NOT repeat (re-submit on back, re-charge, duplicate order, resend OTP), assert the **count is unchanged** (`User see [Records] table with {{one}}` / `row with {{count}}`); if it's not UI-observable, mark `@manual` with a request-count oracle (shape below). This is general — it covers any side-effect, not a fixed verb list.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sun-asterisk/sungen",
|
|
3
|
-
"version": "3.2.16-beta.
|
|
3
|
+
"version": "3.2.16-beta.13",
|
|
4
4
|
"description": "Deterministic E2E Test Compiler - Gherkin + Selectors → Playwright tests",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"copy-templates": "mkdir -p dist/generators/test-generator/adapters/playwright/templates/steps && mkdir -p dist/generators/test-generator/templates && mkdir -p dist/orchestrator/templates && mkdir -p dist/dashboard/templates && cp -r src/generators/test-generator/adapters/playwright/templates/*.hbs dist/generators/test-generator/adapters/playwright/templates/ 2>/dev/null || true && cp -r src/generators/test-generator/adapters/playwright/templates/steps dist/generators/test-generator/adapters/playwright/templates/ && mkdir -p dist/generators/test-generator/adapters/appium/templates/steps && cp -r src/generators/test-generator/adapters/appium/templates/*.hbs dist/generators/test-generator/adapters/appium/templates/ 2>/dev/null || true && cp -r src/generators/test-generator/adapters/appium/templates/steps dist/generators/test-generator/adapters/appium/templates/ && cp src/generators/test-generator/templates/*.hbs dist/generators/test-generator/templates/ 2>/dev/null || true && cp -r src/orchestrator/templates/* dist/orchestrator/templates/ && cp src/dashboard/templates/index.html dist/dashboard/templates/index.html && mkdir -p dist/harness/catalog && cp src/harness/catalog/*.yaml dist/harness/catalog/",
|
|
13
13
|
"build:dashboard": "cd ../../dashboard && npm install --silent && npm run build && cd - && cp ../../dashboard/dist/index.html src/dashboard/templates/index.html",
|
|
14
14
|
"dev": "tsx src/cli/index.ts",
|
|
15
|
-
"test": "tsx tests/golden/run.ts && tsx tests/audit/run.ts && tsx tests/ingest/run.ts && tsx tests/eval/run.ts && tsx tests/exporter/run.ts && tsx tests/exporter/delivery-matrix.run.ts && tsx tests/exporter/delivery-scope-strictness.run.ts && tsx tests/exporter/feature-parser-category.run.ts && tsx tests/exporter/api-detail-sheet.run.ts && tsx tests/exporter/overview-sheet.run.ts && tsx tests/exporter/delivery-divider-tcid.run.ts && tsx tests/exporter/note-expected-actual.run.ts && tsx tests/exporter/test-data-vars.run.ts && tsx tests/exporter/mobile-app-id.run.ts && tsx tests/exporter/api-testcase-cells.run.ts && tsx tests/exporter/delivery-cases-result.run.ts && tsx tests/exporter/precondition-auth-role.run.ts && tsx tests/exporter/report-builder-parity.run.ts && tsx tests/exporter/delivery-preflight-testdata.run.ts && tsx tests/exporter/delivery-preflight-selectors.run.ts && tsx tests/exporter/delivery-prerun-overview.run.ts && tsx tests/exporter/delivery-locale-env-discovery.run.ts && tsx tests/exporter/manual-testcase-testdata.run.ts && tsx tests/dashboard/api-flows-discovery.run.ts && tsx tests/dashboard/status-results-fallback.run.ts && tsx tests/codegen/verb-ref-masking.run.ts && tsx tests/codegen/table-aria-hidden-locators.run.ts && tsx tests/codegen/steps-base-not-compiled.run.ts && tsx tests/codegen/manual-oracle-gate.run.ts && tsx tests/codegen/locator-value-qualified-assertions.run.ts && tsx tests/codegen/table-match-data-column-mapping.run.ts && tsx tests/codegen/param-binding-native-type.run.ts && tsx tests/codegen/table-row-scope-redeclaration.run.ts && tsx tests/codegen/table-row-label-resolution.run.ts && tsx tests/api-runtime/base-path-url-join.run.ts && tsx tests/api-runtime/file-upload-multipart.run.ts && tsx tests/api-runtime/schema-assertion.run.ts && tsx tests/runtime/test-data-cross-ref.run.ts && tsx tests/runtime/test-data-array-projection.run.ts && tsx tests/runtime/env-secret-interpolation.run.ts && tsx tests/capabilities/run.ts && tsx tests/openapi/run.ts && tsx tests/api-field-coverage/run.ts && tsx tests/packaging/run.ts && tsx tests/generate-hint/run.ts && tsx tests/template-assertion/run.ts && tsx tests/journey/run.ts && tsx tests/harness/serial-cascade.run.ts && tsx tests/harness/score-model.run.ts && tsx tests/harness/spec-trace-crlf.run.ts && tsx tests/ai-skills/cross-assistant-orphan.run.ts && tsx tests/init/codex-mcp-config.run.ts && tsx src/orchestrator/ai-skills/golden-skills.test.ts && tsx tests/db-runtime/sql-placeholder-rewrite.run.ts && tsx tests/db-runtime/fallback-flow-codified.run.ts && tsx tests/db-runtime/cosmos-engine.run.ts && tsx tests/db-runtime/mongodb-engine.run.ts && tsx tests/db-runtime/dynamodb-engine.run.ts && tsx tests/db-runtime/mysql-integration.opt-in.run.ts && tsx tests/db-runtime/mongodb-integration.opt-in.run.ts && tsx tests/db-runtime/dynamodb-integration.opt-in.run.ts",
|
|
15
|
+
"test": "tsx tests/golden/run.ts && tsx tests/audit/run.ts && tsx tests/ingest/run.ts && tsx tests/eval/run.ts && tsx tests/exporter/run.ts && tsx tests/exporter/delivery-matrix.run.ts && tsx tests/exporter/delivery-scope-strictness.run.ts && tsx tests/exporter/feature-parser-category.run.ts && tsx tests/exporter/api-detail-sheet.run.ts && tsx tests/exporter/overview-sheet.run.ts && tsx tests/exporter/delivery-divider-tcid.run.ts && tsx tests/exporter/note-expected-actual.run.ts && tsx tests/exporter/test-data-vars.run.ts && tsx tests/exporter/mobile-app-id.run.ts && tsx tests/exporter/api-testcase-cells.run.ts && tsx tests/exporter/delivery-cases-result.run.ts && tsx tests/exporter/precondition-auth-role.run.ts && tsx tests/exporter/report-builder-parity.run.ts && tsx tests/exporter/delivery-preflight-testdata.run.ts && tsx tests/exporter/delivery-preflight-selectors.run.ts && tsx tests/exporter/delivery-prerun-overview.run.ts && tsx tests/exporter/delivery-locale-env-discovery.run.ts && tsx tests/exporter/manual-testcase-testdata.run.ts && tsx tests/dashboard/api-flows-discovery.run.ts && tsx tests/dashboard/status-results-fallback.run.ts && tsx tests/codegen/verb-ref-masking.run.ts && tsx tests/codegen/table-aria-hidden-locators.run.ts && tsx tests/codegen/steps-base-not-compiled.run.ts && tsx tests/codegen/manual-oracle-gate.run.ts && tsx tests/codegen/locator-value-qualified-assertions.run.ts && tsx tests/codegen/table-match-data-column-mapping.run.ts && tsx tests/codegen/param-binding-native-type.run.ts && tsx tests/codegen/table-row-scope-redeclaration.run.ts && tsx tests/codegen/table-row-label-resolution.run.ts && tsx tests/api-runtime/base-path-url-join.run.ts && tsx tests/api-runtime/file-upload-multipart.run.ts && tsx tests/api-runtime/schema-assertion.run.ts && tsx tests/runtime/test-data-cross-ref.run.ts && tsx tests/runtime/test-data-array-projection.run.ts && tsx tests/runtime/env-secret-interpolation.run.ts && tsx tests/capabilities/run.ts && tsx tests/openapi/run.ts && tsx tests/api-field-coverage/run.ts && tsx tests/packaging/run.ts && tsx tests/generate-hint/run.ts && tsx tests/template-assertion/run.ts && tsx tests/journey/run.ts && tsx tests/harness/serial-cascade.run.ts && tsx tests/harness/score-model.run.ts && tsx tests/harness/spec-trace-crlf.run.ts && tsx tests/harness/viewpoint-baseline.run.ts && tsx tests/ai-skills/cross-assistant-orphan.run.ts && tsx tests/init/codex-mcp-config.run.ts && tsx src/orchestrator/ai-skills/golden-skills.test.ts && tsx tests/db-runtime/sql-placeholder-rewrite.run.ts && tsx tests/db-runtime/fallback-flow-codified.run.ts && tsx tests/db-runtime/cosmos-engine.run.ts && tsx tests/db-runtime/mongodb-engine.run.ts && tsx tests/db-runtime/dynamodb-engine.run.ts && tsx tests/db-runtime/mysql-integration.opt-in.run.ts && tsx tests/db-runtime/mongodb-integration.opt-in.run.ts && tsx tests/db-runtime/dynamodb-integration.opt-in.run.ts",
|
|
16
16
|
"test:update": "tsx tests/golden/run.ts --update && tsx tests/audit/run.ts --update && tsx tests/ingest/run.ts --update",
|
|
17
17
|
"prepublishOnly": "npm run build:dashboard && npm run build"
|
|
18
18
|
},
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@babel/types": "^7.28.5",
|
|
40
40
|
"@cucumber/gherkin": "^37.0.0",
|
|
41
41
|
"@cucumber/messages": "^31.0.0",
|
|
42
|
-
"@sungen/driver-data-factory": "3.2.16-beta.
|
|
43
|
-
"@sungen/driver-ui": "3.2.16-beta.
|
|
42
|
+
"@sungen/driver-data-factory": "3.2.16-beta.13",
|
|
43
|
+
"@sungen/driver-ui": "3.2.16-beta.13",
|
|
44
44
|
"chalk": "^5.6.2",
|
|
45
45
|
"commander": "^14.0.2",
|
|
46
46
|
"dotenv": "^17.2.3",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
import * as path from 'path';
|
|
3
3
|
import * as fs from 'fs';
|
|
4
|
-
import { runAudit, AuditReport } from '../../harness/audit';
|
|
4
|
+
import { runAudit, AuditReport, catalogIdFromScreenDir } from '../../harness/audit';
|
|
5
5
|
import { reportSlug } from '../../harness/unit-paths';
|
|
6
|
+
import { acceptViewpointBaseline } from '../../harness/viewpoint-baseline';
|
|
6
7
|
|
|
7
8
|
function findScreenDir(name: string): string | null {
|
|
8
9
|
// `name` may be a bare screen/flow/area, or an api unit id (`api/<area>`, `api/flows/<flow>`).
|
|
@@ -100,6 +101,7 @@ export function registerAuditCommand(program: Command): void {
|
|
|
100
101
|
.option('--api <name>', 'API-first area or api flow to audit (e.g. orders, flows/signup)')
|
|
101
102
|
.option('--area <name>', 'Alias of --api — an API-first area (qa/api/<name>)')
|
|
102
103
|
.option('--json', 'Output the raw JSON report')
|
|
104
|
+
.option('--accept-viewpoint', 'Accept the current test-viewpoint.md as the baseline the suite is measured against')
|
|
103
105
|
.action((options) => {
|
|
104
106
|
try {
|
|
105
107
|
const name = options.screen || options.api || options.area;
|
|
@@ -109,6 +111,21 @@ export function registerAuditCommand(program: Command): void {
|
|
|
109
111
|
|
|
110
112
|
const report = runAudit(dir, name);
|
|
111
113
|
|
|
114
|
+
// The baseline is only ever written HERE, never by the measurement itself:
|
|
115
|
+
// a first sighting has nothing to compare against, and any later change is
|
|
116
|
+
// a human decision (`--accept-viewpoint`) — see harness/viewpoint-baseline.ts.
|
|
117
|
+
const unitId = catalogIdFromScreenDir(dir);
|
|
118
|
+
const vb = report.viewpointBaseline;
|
|
119
|
+
if (vb.status === 'new' || (options.acceptViewpoint && vb.status === 'changed')) {
|
|
120
|
+
acceptViewpointBaseline(process.cwd(), unitId, { hash: vb.hash, ids: vb.ids });
|
|
121
|
+
if (options.acceptViewpoint && !options.json) {
|
|
122
|
+
console.log(`\n ✓ test-viewpoint.md accepted as the baseline for ${name} (${vb.ids.length} viewpoint id(s)).`);
|
|
123
|
+
console.log(' Re-run the audit to score atomicLedger + traceability against it.\n');
|
|
124
|
+
}
|
|
125
|
+
} else if (options.acceptViewpoint && !options.json) {
|
|
126
|
+
console.log(`\n ○ nothing to accept for ${name} — the viewpoint baseline is ${vb.status}.\n`);
|
|
127
|
+
}
|
|
128
|
+
|
|
112
129
|
// Persist report under .sungen/reports/ (flat slug: api flow `flows/x` → `flows-x-audit.json`).
|
|
113
130
|
const outDir = path.join(process.cwd(), '.sungen', 'reports');
|
|
114
131
|
fs.mkdirSync(outDir, { recursive: true });
|
package/src/cli/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { registerRepairCommand } from './commands/repair';
|
|
|
35
35
|
import { registerLoginCommand } from './commands/login';
|
|
36
36
|
import { capabilityRegistry } from '../capabilities/registry';
|
|
37
37
|
import { discoverAndRegisterCapabilities } from '../capabilities/discover';
|
|
38
|
+
import { warnAssetsDrift } from '../orchestrator/assets-drift';
|
|
38
39
|
|
|
39
40
|
// Read version from package.json so `--version` never drifts from the released version.
|
|
40
41
|
const { version } = require('../../package.json') as { version: string };
|
|
@@ -88,6 +89,11 @@ async function main() {
|
|
|
88
89
|
for (const registerCommand of cap.cliCommands ?? []) registerCommand(program);
|
|
89
90
|
}
|
|
90
91
|
|
|
92
|
+
// Every command warns once when the project's AI assets came from a different
|
|
93
|
+
// build — `update` is the only thing that refreshes them, and nothing used to
|
|
94
|
+
// say so (stderr, so `--json` output stays parseable).
|
|
95
|
+
program.hook('preAction', () => { warnAssetsDrift(process.cwd()); });
|
|
96
|
+
|
|
91
97
|
await program.parseAsync(process.argv);
|
|
92
98
|
}
|
|
93
99
|
|
|
@@ -407,6 +407,22 @@ function commonPrefix(lists: string[][]): number {
|
|
|
407
407
|
return n;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
+
/**
|
|
411
|
+
* What the parent row's Action says when the variants share no opening step.
|
|
412
|
+
*
|
|
413
|
+
* The parent is the row a reviewer (and the customer) reads AS the test case, and
|
|
414
|
+
* with nothing to hoist its Action cell came out empty — 12 of 38 items in a real
|
|
415
|
+
* delivery. The steps are not missing, they are per-variant; say that, and name the
|
|
416
|
+
* axis they vary along so the cell carries meaning on its own.
|
|
417
|
+
*/
|
|
418
|
+
export function varyingTriggerNote(dimensions: string | undefined, count: number): string {
|
|
419
|
+
// `dimensions` reads "matching rule — title only · content only · …"; the part
|
|
420
|
+
// before the dash is the axis name.
|
|
421
|
+
const axis = dimensions?.split('—')[0].trim();
|
|
422
|
+
const where = axis && axis.length > 0 && axis.length <= 60 ? ` by ${axis}` : '';
|
|
423
|
+
return `The action differs${where} — run each of the ${count} variants below with its own steps.`;
|
|
424
|
+
}
|
|
425
|
+
|
|
410
426
|
/**
|
|
411
427
|
* Expand one map variant ref to concrete variant refs:
|
|
412
428
|
* a bare VP-id whose scenario has a dataset means ALL its rows.
|
|
@@ -471,7 +487,10 @@ export function buildMatrix(inputs: BuildInputs): MatrixModel {
|
|
|
471
487
|
[v.ref, v.precondition.filter((line) => !commonPre.includes(line))])),
|
|
472
488
|
triggerDeltas: Object.fromEntries(groupVariants.map((v) =>
|
|
473
489
|
[v.ref, v.trigger.slice(prefixLen)])),
|
|
474
|
-
|
|
490
|
+
// Nothing shared to hoist → say what varies rather than leaving the cell blank.
|
|
491
|
+
trigger: prefixLen > 0 || groupVariants.length === 0
|
|
492
|
+
? (first?.trigger ?? []).slice(0, prefixLen)
|
|
493
|
+
: [varyingTriggerNote(g.dimensions, groupVariants.length)],
|
|
475
494
|
variants: groupVariants,
|
|
476
495
|
result,
|
|
477
496
|
resultCounts: counts,
|