@sun-asterisk/sungen 3.2.34-beta.1 → 3.2.35
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 +3 -29
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/cli/index.js +0 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/exporters/test-data-resolver.d.ts.map +1 -1
- package/dist/exporters/test-data-resolver.js +12 -2
- package/dist/exporters/test-data-resolver.js.map +1 -1
- package/dist/generators/gherkin-parser/index.d.ts.map +1 -1
- package/dist/generators/gherkin-parser/index.js +1 -0
- package/dist/generators/gherkin-parser/index.js.map +1 -1
- package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/contain-text-assertion.hbs +2 -1
- package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/expanded-assertion.hbs +2 -0
- package/dist/generators/test-generator/adapters/playwright/templates/steps/actions/date-picker-unsupported.hbs +5 -0
- package/dist/generators/test-generator/adapters/playwright/templates/steps/actions/fill-action.hbs +13 -1
- package/dist/generators/test-generator/adapters/playwright/templates/steps/assertions/contain-text-assertion.hbs +9 -1
- package/dist/generators/test-generator/adapters/playwright/templates/steps/assertions/expanded-assertion.hbs +12 -0
- package/dist/generators/test-generator/code-generator.js +4 -5
- package/dist/generators/test-generator/code-generator.js.map +1 -1
- package/dist/generators/test-generator/diagnostics.d.ts +9 -3
- package/dist/generators/test-generator/diagnostics.d.ts.map +1 -1
- package/dist/generators/test-generator/diagnostics.js +9 -3
- package/dist/generators/test-generator/diagnostics.js.map +1 -1
- package/dist/generators/test-generator/patterns/types.d.ts +1 -1
- package/dist/generators/test-generator/patterns/types.d.ts.map +1 -1
- package/dist/generators/test-generator/step-mapper.d.ts +8 -0
- package/dist/generators/test-generator/step-mapper.d.ts.map +1 -1
- package/dist/generators/test-generator/step-mapper.js +52 -8
- package/dist/generators/test-generator/step-mapper.js.map +1 -1
- package/dist/generators/test-generator/utils/data-resolver.d.ts +16 -0
- package/dist/generators/test-generator/utils/data-resolver.d.ts.map +1 -1
- package/dist/generators/test-generator/utils/data-resolver.js +59 -0
- package/dist/generators/test-generator/utils/data-resolver.js.map +1 -1
- package/dist/generators/test-generator/utils/selector-resolver.d.ts.map +1 -1
- package/dist/generators/test-generator/utils/selector-resolver.js +10 -2
- package/dist/generators/test-generator/utils/selector-resolver.js.map +1 -1
- package/dist/harness/audit.d.ts.map +1 -1
- package/dist/harness/audit.js +2 -13
- package/dist/harness/audit.js.map +1 -1
- package/dist/harness/next-step.d.ts +0 -2
- package/dist/harness/next-step.d.ts.map +1 -1
- package/dist/harness/next-step.js +1 -15
- package/dist/harness/next-step.js.map +1 -1
- package/dist/harness/parse.d.ts +3 -6
- package/dist/harness/parse.d.ts.map +1 -1
- package/dist/harness/parse.js +4 -9
- package/dist/harness/parse.js.map +1 -1
- package/dist/harness/sensors.d.ts.map +1 -1
- package/dist/harness/sensors.js +9 -11
- package/dist/harness/sensors.js.map +1 -1
- package/dist/harness/viewpoint-baseline.d.ts.map +1 -1
- package/dist/harness/viewpoint-baseline.js +1 -7
- package/dist/harness/viewpoint-baseline.js.map +1 -1
- package/dist/harness/viewpoint-ledger.d.ts +3 -13
- package/dist/harness/viewpoint-ledger.d.ts.map +1 -1
- package/dist/harness/viewpoint-ledger.js +8 -38
- package/dist/harness/viewpoint-ledger.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/orchestrator/ai-skills/commands.d.ts.map +1 -1
- package/dist/orchestrator/ai-skills/commands.js +5 -3
- package/dist/orchestrator/ai-skills/commands.js.map +1 -1
- package/dist/orchestrator/ai-skills/golden-skills.test.js +29 -0
- package/dist/orchestrator/ai-skills/golden-skills.test.js.map +1 -1
- package/dist/orchestrator/flow-manager.d.ts +1 -0
- package/dist/orchestrator/flow-manager.d.ts.map +1 -1
- package/dist/orchestrator/flow-manager.js +52 -3
- package/dist/orchestrator/flow-manager.js.map +1 -1
- package/dist/orchestrator/screen-manager.d.ts.map +1 -1
- package/dist/orchestrator/screen-manager.js +52 -4
- package/dist/orchestrator/screen-manager.js.map +1 -1
- package/dist/orchestrator/templates/ai-src/commands/add-flow.md +26 -4
- package/dist/orchestrator/templates/ai-src/commands/create-test.md +22 -30
- package/dist/orchestrator/templates/ai-src/config/claude.md +20 -7
- package/dist/orchestrator/templates/ai-src/config/copilot.md +20 -7
- package/dist/orchestrator/templates/ai-src/skills/sungen-api-coverage-model/SKILL.md +1 -1
- package/dist/orchestrator/templates/ai-src/skills/sungen-capture-mobile/SKILL.md +3 -3
- package/dist/orchestrator/templates/ai-src/skills/sungen-data-factory/SKILL.md +9 -0
- package/dist/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +2 -1
- package/dist/orchestrator/templates/ai-src/skills/sungen-error-mapping/SKILL.md +5 -4
- package/dist/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +24 -8
- package/dist/orchestrator/templates/ai-src/skills/sungen-harness-audit/SKILL.md +1 -3
- package/dist/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +5 -4
- package/dist/orchestrator/templates/ai-src/skills/sungen-viewpoint/SKILL.md +0 -18
- package/dist/orchestrator/templates/specs-test-data.ts +22 -4
- package/dist/orchestrator/viewpoint-pattern-catalog.d.ts +1 -4
- package/dist/orchestrator/viewpoint-pattern-catalog.d.ts.map +1 -1
- package/dist/orchestrator/viewpoint-pattern-catalog.js +2 -5
- package/dist/orchestrator/viewpoint-pattern-catalog.js.map +1 -1
- package/package.json +3 -3
- package/src/cli/commands/audit.ts +3 -26
- package/src/cli/index.ts +0 -2
- package/src/exporters/test-data-resolver.ts +10 -2
- package/src/generators/gherkin-parser/index.ts +1 -0
- package/src/generators/test-generator/adapters/appium/templates/steps/assertions/contain-text-assertion.hbs +2 -1
- package/src/generators/test-generator/adapters/appium/templates/steps/assertions/expanded-assertion.hbs +2 -0
- package/src/generators/test-generator/adapters/playwright/templates/steps/actions/date-picker-unsupported.hbs +5 -0
- package/src/generators/test-generator/adapters/playwright/templates/steps/actions/fill-action.hbs +13 -1
- package/src/generators/test-generator/adapters/playwright/templates/steps/assertions/contain-text-assertion.hbs +9 -1
- package/src/generators/test-generator/adapters/playwright/templates/steps/assertions/expanded-assertion.hbs +12 -0
- package/src/generators/test-generator/code-generator.ts +4 -4
- package/src/generators/test-generator/diagnostics.ts +9 -3
- package/src/generators/test-generator/patterns/types.ts +2 -0
- package/src/generators/test-generator/step-mapper.ts +56 -9
- package/src/generators/test-generator/utils/data-resolver.ts +53 -0
- package/src/generators/test-generator/utils/selector-resolver.ts +10 -2
- package/src/harness/audit.ts +2 -13
- package/src/harness/next-step.ts +1 -17
- package/src/harness/parse.ts +5 -13
- package/src/harness/sensors.ts +8 -9
- package/src/harness/viewpoint-baseline.ts +1 -7
- package/src/harness/viewpoint-ledger.ts +11 -52
- package/src/index.ts +2 -1
- package/src/orchestrator/ai-skills/commands.ts +5 -3
- package/src/orchestrator/ai-skills/golden-skills.test.ts +23 -0
- package/src/orchestrator/flow-manager.ts +53 -3
- package/src/orchestrator/screen-manager.ts +52 -4
- package/src/orchestrator/templates/ai-src/commands/add-flow.md +26 -4
- package/src/orchestrator/templates/ai-src/commands/create-test.md +22 -30
- package/src/orchestrator/templates/ai-src/config/claude.md +20 -7
- package/src/orchestrator/templates/ai-src/config/copilot.md +20 -7
- package/src/orchestrator/templates/ai-src/skills/sungen-api-coverage-model/SKILL.md +1 -1
- package/src/orchestrator/templates/ai-src/skills/sungen-capture-mobile/SKILL.md +3 -3
- package/src/orchestrator/templates/ai-src/skills/sungen-data-factory/SKILL.md +9 -0
- package/src/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +2 -1
- package/src/orchestrator/templates/ai-src/skills/sungen-error-mapping/SKILL.md +5 -4
- package/src/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +24 -8
- package/src/orchestrator/templates/ai-src/skills/sungen-harness-audit/SKILL.md +1 -3
- package/src/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +5 -4
- package/src/orchestrator/templates/ai-src/skills/sungen-viewpoint/SKILL.md +0 -18
- package/src/orchestrator/templates/specs-test-data.ts +22 -4
- package/src/orchestrator/viewpoint-pattern-catalog.ts +2 -5
- package/dist/cli/commands/viewpoint.d.ts +0 -7
- package/dist/cli/commands/viewpoint.d.ts.map +0 -1
- package/dist/cli/commands/viewpoint.js +0 -70
- package/dist/cli/commands/viewpoint.js.map +0 -1
- package/dist/harness/viewpoint-draft-header.d.ts +0 -7
- package/dist/harness/viewpoint-draft-header.d.ts.map +0 -1
- package/dist/harness/viewpoint-draft-header.js +0 -100
- package/dist/harness/viewpoint-draft-header.js.map +0 -1
- package/dist/harness/viewpoint-mode.d.ts +0 -9
- package/dist/harness/viewpoint-mode.d.ts.map +0 -1
- package/dist/harness/viewpoint-mode.js +0 -52
- package/dist/harness/viewpoint-mode.js.map +0 -1
- package/dist/harness/viewpoint-priority.d.ts +0 -19
- package/dist/harness/viewpoint-priority.d.ts.map +0 -1
- package/dist/harness/viewpoint-priority.js +0 -36
- package/dist/harness/viewpoint-priority.js.map +0 -1
- package/dist/harness/viewpoint-review-open.d.ts +0 -6
- package/dist/harness/viewpoint-review-open.d.ts.map +0 -1
- package/dist/harness/viewpoint-review-open.js +0 -90
- package/dist/harness/viewpoint-review-open.js.map +0 -1
- package/dist/harness/viewpoint-scan-refs.d.ts +0 -50
- package/dist/harness/viewpoint-scan-refs.d.ts.map +0 -1
- package/dist/harness/viewpoint-scan-refs.js +0 -200
- package/dist/harness/viewpoint-scan-refs.js.map +0 -1
- package/dist/harness/viewpoint-scan.d.ts +0 -41
- package/dist/harness/viewpoint-scan.d.ts.map +0 -1
- package/dist/harness/viewpoint-scan.js +0 -118
- package/dist/harness/viewpoint-scan.js.map +0 -1
- package/dist/orchestrator/templates/ai-src/skills/sungen-viewpoint/review-checklist.md +0 -63
- package/dist/orchestrator/templates/ai-src/skills/sungen-viewpoint/viewpoint-template.md +0 -158
- package/dist/orchestrator/viewpoint-scaffold.d.ts +0 -3
- package/dist/orchestrator/viewpoint-scaffold.d.ts.map +0 -1
- package/dist/orchestrator/viewpoint-scaffold.js +0 -70
- package/dist/orchestrator/viewpoint-scaffold.js.map +0 -1
- package/src/cli/commands/viewpoint.ts +0 -58
- package/src/harness/viewpoint-draft-header.ts +0 -55
- package/src/harness/viewpoint-mode.ts +0 -49
- package/src/harness/viewpoint-priority.ts +0 -38
- package/src/harness/viewpoint-review-open.ts +0 -51
- package/src/harness/viewpoint-scan-refs.ts +0 -154
- package/src/harness/viewpoint-scan.ts +0 -111
- package/src/orchestrator/templates/ai-src/skills/sungen-viewpoint/review-checklist.md +0 -63
- package/src/orchestrator/templates/ai-src/skills/sungen-viewpoint/viewpoint-template.md +0 -158
- package/src/orchestrator/viewpoint-scaffold.ts +0 -36
|
@@ -1,100 +0,0 @@
|
|
|
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.isAiDraft = isAiDraft;
|
|
37
|
-
exports.removeDraftLine = removeDraftLine;
|
|
38
|
-
exports.viewpointFileIsAiDraft = viewpointFileIsAiDraft;
|
|
39
|
-
exports.removeDraftLineFromFile = removeDraftLineFromFile;
|
|
40
|
-
const fs = __importStar(require("fs"));
|
|
41
|
-
const read_text_1 = require("./read-text");
|
|
42
|
-
const write_atomic_1 = require("./write-atomic");
|
|
43
|
-
/**
|
|
44
|
-
* `drafted-by: ai` — provenance, not acceptance. The AI writes it as the first header line of a
|
|
45
|
-
* viewpoint it drafted; while it is there the file is an unreviewed draft: the audit records no
|
|
46
|
-
* baseline for it and holds the two axes measured against it. `--accept-viewpoint` removes it.
|
|
47
|
-
*
|
|
48
|
-
* Read by a line scan, not by the viewpoint parser: the key must be found in a file the parser
|
|
49
|
-
* judges nothing about, and in a QA-written file it simply is not there.
|
|
50
|
-
*/
|
|
51
|
-
const DRAFT_KEY = /^\s*drafted-by:\s*ai\b/i;
|
|
52
|
-
/** The key is a header line: looking further down would read prose that merely mentions it. */
|
|
53
|
-
const HEADER_LINES = 15;
|
|
54
|
-
/** A line with its own terminator, so a removal keeps CRLF and a lone `\r` exactly as written. */
|
|
55
|
-
const withTerminator = (raw) => raw.match(/[^\r\n]*(?:\r\n|\r|\n)|[^\r\n]+$/g) ?? [];
|
|
56
|
-
/** Index of the draft line in `raw`, or -1. Comments are blanked line-for-line, so indexes agree with the raw file. */
|
|
57
|
-
function draftLineIndex(raw) {
|
|
58
|
-
const visible = (0, read_text_1.stripHtmlComments)(raw.replace(/\r\n?/g, '\n')).split('\n');
|
|
59
|
-
let seen = 0;
|
|
60
|
-
for (let i = 0; i < visible.length && seen < HEADER_LINES; i++) {
|
|
61
|
-
if (visible[i].trim() === '')
|
|
62
|
-
continue;
|
|
63
|
-
if (DRAFT_KEY.test(visible[i]))
|
|
64
|
-
return i;
|
|
65
|
-
seen++;
|
|
66
|
-
}
|
|
67
|
-
return -1;
|
|
68
|
-
}
|
|
69
|
-
function isAiDraft(text) {
|
|
70
|
-
return draftLineIndex(text) >= 0;
|
|
71
|
-
}
|
|
72
|
-
/** `raw` without the one draft line; every other byte is untouched. A file with no draft line comes back as is. */
|
|
73
|
-
function removeDraftLine(raw) {
|
|
74
|
-
const at = draftLineIndex(raw);
|
|
75
|
-
if (at < 0)
|
|
76
|
-
return raw;
|
|
77
|
-
return withTerminator(raw).filter((_, i) => i !== at).join('');
|
|
78
|
-
}
|
|
79
|
-
function viewpointFileIsAiDraft(viewpointPath) {
|
|
80
|
-
try {
|
|
81
|
-
return isAiDraft(fs.readFileSync(viewpointPath, 'utf-8'));
|
|
82
|
-
}
|
|
83
|
-
catch {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
/** Remove the draft line from the file, atomically. True when a line was removed; throws a clear error when the write fails. */
|
|
88
|
-
function removeDraftLineFromFile(viewpointPath) {
|
|
89
|
-
const raw = fs.readFileSync(viewpointPath, 'utf-8');
|
|
90
|
-
if (!isAiDraft(raw))
|
|
91
|
-
return false;
|
|
92
|
-
try {
|
|
93
|
-
(0, write_atomic_1.writeFileAtomic)(viewpointPath, removeDraftLine(raw));
|
|
94
|
-
}
|
|
95
|
-
catch (err) {
|
|
96
|
-
throw new Error(`could not remove the \`drafted-by: ai\` line from ${viewpointPath} (${err instanceof Error ? err.message : err}) — the file is unchanged; remove the line by hand`);
|
|
97
|
-
}
|
|
98
|
-
return true;
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=viewpoint-draft-header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewpoint-draft-header.js","sourceRoot":"","sources":["../../src/harness/viewpoint-draft-header.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,8BAEC;AAGD,0CAIC;AAED,wDAEC;AAGD,0DAOC;AAtDD,uCAAyB;AACzB,2CAAgD;AAChD,iDAAiD;AAEjD;;;;;;;GAOG;AACH,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAC5C,+FAA+F;AAC/F,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,kGAAkG;AAClG,MAAM,cAAc,GAAG,CAAC,GAAW,EAAY,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,mCAAmC,CAAC,IAAI,EAAE,CAAC;AAEvG,uHAAuH;AACvH,SAAS,cAAc,CAAC,GAAW;IACjC,MAAM,OAAO,GAAG,IAAA,6BAAiB,EAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3E,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,IAAI,IAAI,GAAG,YAAY,EAAE,CAAC,EAAE,EAAE,CAAC;QAC/D,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE;YAAE,SAAS;QACvC,IAAI,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,CAAC,CAAC;QACz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|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type ViewpointMode = 1 | 2;
|
|
2
|
-
/** `raw` is the file as written (null when missing); `rows` are its VP rows from the scan. */
|
|
3
|
-
export declare function viewpointMode(raw: string | null, rows: {
|
|
4
|
-
hasExpected: boolean;
|
|
5
|
-
}[]): {
|
|
6
|
-
mode: ViewpointMode;
|
|
7
|
-
reason: string;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=viewpoint-mode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewpoint-mode.d.ts","sourceRoot":"","sources":["../../src/harness/viewpoint-mode.ts"],"names":[],"mappings":"AAiBA,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,CAAC;AAuBlC,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,EAAE,GAAG;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAO3H"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.viewpointMode = viewpointMode;
|
|
4
|
-
/**
|
|
5
|
-
* Which create-test mode a unit's test-viewpoint.md calls for — the table in create-test.md,
|
|
6
|
-
* computed so the agent reads it from `sungen viewpoint scan` instead of inferring it.
|
|
7
|
-
*
|
|
8
|
-
* mode 2 (AI drafts / re-reviews its draft): file missing · untouched scaffold · first line
|
|
9
|
-
* `drafted-by: ai` · VP rows exist but none has a Kỳ vọng
|
|
10
|
-
* mode 1 (review only, never edit): anything else — a QA-written file, with or without VP ids
|
|
11
|
-
*
|
|
12
|
-
* "Untouched scaffold" is checked on RAW lines against the template the scaffold is written from:
|
|
13
|
-
* apart from the first `# ` line (the title), every non-blank line must be a template line —
|
|
14
|
-
* comments included, so a QA note inside `<!-- -->` or under its own `# ` heading makes the file
|
|
15
|
-
* the QA's (owner decision 2026-10-14: a QA file is never overwritten). Every doubt falls to
|
|
16
|
-
* mode 1: a scaffold from an older sungen (other template lines) or an unreadable template.
|
|
17
|
-
*/
|
|
18
|
-
const viewpoint_draft_header_1 = require("./viewpoint-draft-header");
|
|
19
|
-
const viewpoint_scaffold_1 = require("../orchestrator/viewpoint-scaffold");
|
|
20
|
-
/** Trimmed non-blank lines without the title (the first `# ` line), BOM and CRLF ignored. */
|
|
21
|
-
function bodyLines(text) {
|
|
22
|
-
const lines = text.replace(/^/, '').replace(/\r\n?/g, '\n').split('\n').map((l) => l.trim()).filter(Boolean);
|
|
23
|
-
const title = lines.findIndex((l) => l.startsWith('# '));
|
|
24
|
-
if (title >= 0)
|
|
25
|
-
lines.splice(title, 1);
|
|
26
|
-
return lines;
|
|
27
|
-
}
|
|
28
|
-
let templateLines = null;
|
|
29
|
-
function isUntouchedScaffold(raw) {
|
|
30
|
-
if (!templateLines) {
|
|
31
|
-
try {
|
|
32
|
-
templateLines = new Set([false, true].flatMap((mobile) => bodyLines((0, viewpoint_scaffold_1.viewpointScaffold)('', mobile))));
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
return false; // no template to compare with → treat the file as the QA's
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const known = templateLines;
|
|
39
|
-
return bodyLines(raw).every((l) => known.has(l));
|
|
40
|
-
}
|
|
41
|
-
/** `raw` is the file as written (null when missing); `rows` are its VP rows from the scan. */
|
|
42
|
-
function viewpointMode(raw, rows) {
|
|
43
|
-
if (raw === null)
|
|
44
|
-
return { mode: 2, reason: 'file missing' };
|
|
45
|
-
if ((0, viewpoint_draft_header_1.isAiDraft)(raw))
|
|
46
|
-
return { mode: 2, reason: 'drafted-by: ai (re-review)' };
|
|
47
|
-
if (rows.length > 0) {
|
|
48
|
-
return rows.some((r) => r.hasExpected) ? { mode: 1, reason: 'QA-written' } : { mode: 2, reason: 'VP rows without Kỳ vọng' };
|
|
49
|
-
}
|
|
50
|
-
return isUntouchedScaffold(raw) ? { mode: 2, reason: 'untouched scaffold' } : { mode: 1, reason: 'QA-written, no VP ids' };
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=viewpoint-mode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewpoint-mode.js","sourceRoot":"","sources":["../../src/harness/viewpoint-mode.ts"],"names":[],"mappings":";;AAyCA,sCAOC;AAhDD;;;;;;;;;;;;;GAaG;AACH,qEAAqD;AACrD,2EAAuE;AAIvE,6FAA6F;AAC7F,SAAS,SAAS,CAAC,IAAY;IAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9G,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IACzD,IAAI,KAAK,IAAI,CAAC;QAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACvC,OAAO,KAAK,CAAC;AACf,CAAC;AAED,IAAI,aAAa,GAAuB,IAAI,CAAC;AAC7C,SAAS,mBAAmB,CAAC,GAAW;IACtC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,IAAI,CAAC;YACH,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,IAAA,sCAAiB,EAAC,EAAE,EAAE,MAAM,CAAC,CAAC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PRIORITY-CONTRADICTED each read a
|
|
5
|
-
* priority their own way (`/high/i` substrings, raw words, a one-off medium→normal), so the same
|
|
6
|
-
* row could be `Medium` to one and `Unknown` to another — `Med`, which QA writes, was `Unknown`.
|
|
7
|
-
* The vocabulary is `high | normal | low`; `critical`, `medium` and `med` are read as aliases.
|
|
8
|
-
*/
|
|
9
|
-
export type PriorityLevel = 'high' | 'normal' | 'low' | 'deferred' | 'skip' | 'unknown';
|
|
10
|
-
/**
|
|
11
|
-
* A priority cell or tag → its level. The whole cell being a word is the clean case; otherwise the
|
|
12
|
-
* overview has always read prose by SUBSTRING in precedence order (`High — complex form`,
|
|
13
|
-
* `Medium-High`), and keeps doing so. The substring words stay unbounded for `high|medium|low`
|
|
14
|
-
* (existing behaviour); the newer `critical|normal|med` need word boundaries (`Medical` is not `Med`).
|
|
15
|
-
*/
|
|
16
|
-
export declare function parsePriority(cell: string): PriorityLevel;
|
|
17
|
-
/** The public `ViewpointEntry.priority` spelling of a level — the exported type is unchanged. */
|
|
18
|
-
export declare function toEntryPriority(level: PriorityLevel): 'High' | 'Medium' | 'Low' | 'Unknown';
|
|
19
|
-
//# sourceMappingURL=viewpoint-priority.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewpoint-priority.d.ts","sourceRoot":"","sources":["../../src/harness/viewpoint-priority.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAUxF;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAQzD;AAED,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAE3F"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parsePriority = parsePriority;
|
|
4
|
-
exports.toEntryPriority = toEntryPriority;
|
|
5
|
-
const WORD = {
|
|
6
|
-
critical: 'high', high: 'high',
|
|
7
|
-
medium: 'normal', med: 'normal', normal: 'normal',
|
|
8
|
-
low: 'low', deferred: 'deferred',
|
|
9
|
-
};
|
|
10
|
-
/** "Declared not applicable" — one level, so every consumer checks one word. */
|
|
11
|
-
const NOT_APPLICABLE = /^(?:skip(?:ped)?|n\/a|none|not applicable)$/;
|
|
12
|
-
/**
|
|
13
|
-
* A priority cell or tag → its level. The whole cell being a word is the clean case; otherwise the
|
|
14
|
-
* overview has always read prose by SUBSTRING in precedence order (`High — complex form`,
|
|
15
|
-
* `Medium-High`), and keeps doing so. The substring words stay unbounded for `high|medium|low`
|
|
16
|
-
* (existing behaviour); the newer `critical|normal|med` need word boundaries (`Medical` is not `Med`).
|
|
17
|
-
*/
|
|
18
|
-
function parsePriority(cell) {
|
|
19
|
-
const w = cell.replace(/[*_`]/g, '').replace(/\.+$/, '').trim().toLowerCase();
|
|
20
|
-
if (WORD[w])
|
|
21
|
-
return WORD[w];
|
|
22
|
-
if (NOT_APPLICABLE.test(w))
|
|
23
|
-
return 'skip';
|
|
24
|
-
if (/high|\bcritical\b/.test(w))
|
|
25
|
-
return 'high';
|
|
26
|
-
if (/medium|\bnormal\b|\bmed\b/.test(w))
|
|
27
|
-
return 'normal';
|
|
28
|
-
if (/low/.test(w))
|
|
29
|
-
return 'low';
|
|
30
|
-
return 'unknown';
|
|
31
|
-
}
|
|
32
|
-
/** The public `ViewpointEntry.priority` spelling of a level — the exported type is unchanged. */
|
|
33
|
-
function toEntryPriority(level) {
|
|
34
|
-
return level === 'high' ? 'High' : level === 'normal' ? 'Medium' : level === 'low' ? 'Low' : 'Unknown';
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=viewpoint-priority.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
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AC,SAAS,CAAC;AACzG,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const VIEWPOINT_REVIEW_FILE = "viewpoint-review.md";
|
|
2
|
-
/** Body rows whose last cell is `[ ]`. The header row (`… | [ ] |` above `|---|`) is not a point. */
|
|
3
|
-
export declare function openReviewPoints(text: string): number;
|
|
4
|
-
/** The info finding for one unit's `requirements/` directory; empty when nothing is open. */
|
|
5
|
-
export declare function viewpointReviewOpenFindings(requirementsDir: string): string[];
|
|
6
|
-
//# sourceMappingURL=viewpoint-review-open.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewpoint-review-open.d.ts","sourceRoot":"","sources":["../../src/harness/viewpoint-review-open.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAe3D,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASrD;AAED,6FAA6F;AAC7F,wBAAgB,2BAA2B,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,EAAE,CAU7E"}
|
|
@@ -1,90 +0,0 @@
|
|
|
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_REVIEW_FILE = void 0;
|
|
37
|
-
exports.openReviewPoints = openReviewPoints;
|
|
38
|
-
exports.viewpointReviewOpenFindings = viewpointReviewOpenFindings;
|
|
39
|
-
/**
|
|
40
|
-
* VIEWPOINT-REVIEW-OPEN (info) — the audit's one line about `requirements/viewpoint-review.md`.
|
|
41
|
-
*
|
|
42
|
-
* create-test reviews test-viewpoint.md with the sungen-viewpoint checklist and writes each point a
|
|
43
|
-
* QA should look at as a table row whose last cell is `[ ]`; the QA ticks it `[x]` or deletes the
|
|
44
|
-
* row. While rows stay unticked the audit says how many, once. Advisory only: no score, no gate, no
|
|
45
|
-
* baseline effect. A missing or unreadable file says nothing — the review is optional input.
|
|
46
|
-
*/
|
|
47
|
-
const fs = __importStar(require("fs"));
|
|
48
|
-
const path = __importStar(require("path"));
|
|
49
|
-
const read_text_1 = require("./read-text");
|
|
50
|
-
exports.VIEWPOINT_REVIEW_FILE = 'viewpoint-review.md';
|
|
51
|
-
const SEPARATOR = /^\s*\|?\s*:?-{2,}:?\s*(\|\s*:?-{2,}:?\s*)*\|?\s*$/;
|
|
52
|
-
/** A table separator, not a `---` rule under a row. */
|
|
53
|
-
const isSeparator = (line) => SEPARATOR.test(line) && line.includes('|');
|
|
54
|
-
const UNTICKED = /^\[\s?\]$/;
|
|
55
|
-
/** The last cell of a markdown table row, or null for a line that is not one. */
|
|
56
|
-
function lastCell(line) {
|
|
57
|
-
const t = line.trim();
|
|
58
|
-
if (!t.startsWith('|') || !t.endsWith('|') || t.length < 2)
|
|
59
|
-
return null;
|
|
60
|
-
const cells = t.slice(1, -1).split(/(?<!\\)\|/);
|
|
61
|
-
return cells[cells.length - 1].trim();
|
|
62
|
-
}
|
|
63
|
-
/** Body rows whose last cell is `[ ]`. The header row (`… | [ ] |` above `|---|`) is not a point. */
|
|
64
|
-
function openReviewPoints(text) {
|
|
65
|
-
const lines = (0, read_text_1.stripHtmlComments)(text.replace(/\r\n?/g, '\n')).split('\n');
|
|
66
|
-
let open = 0;
|
|
67
|
-
for (let i = 0; i < lines.length; i++) {
|
|
68
|
-
if (isSeparator(lines[i]) || isSeparator(lines[i + 1] ?? ''))
|
|
69
|
-
continue;
|
|
70
|
-
const last = lastCell(lines[i]);
|
|
71
|
-
if (last !== null && UNTICKED.test(last))
|
|
72
|
-
open++;
|
|
73
|
-
}
|
|
74
|
-
return open;
|
|
75
|
-
}
|
|
76
|
-
/** The info finding for one unit's `requirements/` directory; empty when nothing is open. */
|
|
77
|
-
function viewpointReviewOpenFindings(requirementsDir) {
|
|
78
|
-
let text;
|
|
79
|
-
try {
|
|
80
|
-
text = fs.readFileSync(path.join(requirementsDir, exports.VIEWPOINT_REVIEW_FILE), 'utf-8');
|
|
81
|
-
}
|
|
82
|
-
catch {
|
|
83
|
-
return [];
|
|
84
|
-
}
|
|
85
|
-
const open = openReviewPoints(text);
|
|
86
|
-
if (open === 0)
|
|
87
|
-
return [];
|
|
88
|
-
return [`VIEWPOINT-REVIEW-OPEN (info): ${open} open point(s) in requirements/${exports.VIEWPOINT_REVIEW_FILE} — the checklist review of test-viewpoint.md is waiting for QA. QA: fix the viewpoint where you agree, then tick the row \`[x]\` or delete it. Not scored; an agent does not tick rows for the QA.`];
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=viewpoint-review-open.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewpoint-review-open.js","sourceRoot":"","sources":["../../src/harness/viewpoint-review-open.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,4CASC;AAGD,kEAUC;AAlDD;;;;;;;GAOG;AACH,uCAAyB;AACzB,2CAA6B;AAC7B,2CAAgD;AAEnC,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAE3D,MAAM,SAAS,GAAG,mDAAmD,CAAC;AACtE,uDAAuD;AACvD,MAAM,WAAW,GAAG,CAAC,IAAY,EAAW,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC1F,MAAM,QAAQ,GAAG,WAAW,CAAC;AAE7B,iFAAiF;AACjF,SAAS,QAAQ,CAAC,IAAY;IAC5B,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IACtB,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IACxE,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAChD,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACxC,CAAC;AAED,qGAAqG;AACrG,SAAgB,gBA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
4
|
-
raw: string;
|
|
5
|
-
/** Cells with `**`, backticks and edge spaces removed. */
|
|
6
|
-
cells: string[];
|
|
7
|
-
/** The table's header cells; null for a table with no separator line. */
|
|
8
|
-
header: string[] | null;
|
|
9
|
-
/** Text of every heading enclosing the row (outermost first) — where a `# MANUAL/ENV` mark may sit. */
|
|
10
|
-
section: string;
|
|
11
|
-
}
|
|
12
|
-
/** Every body row of every markdown table, with its header and enclosing headings. */
|
|
13
|
-
export declare function tableRows(text: string): TableRow[];
|
|
14
|
-
/** `009` → `9`, `4.03` → `4.3`; null when the text is not a plain (dotted) number. */
|
|
15
|
-
export declare function normRef(s: string): string | null;
|
|
16
|
-
/**
|
|
17
|
-
* Item numbers a cell cites: `item 9`, `item 2, 3, 7`, `item 4–6`, `item 5.4–5.8`, `項目 4.3〜4.6`, `UI #9`,
|
|
18
|
-
* `UI-009`, `[9]`, `§4.3.2`. Prose (`Auth guard`), message codes (`M02`) and question ids
|
|
19
|
-
* (`Q-01`) are not refs.
|
|
20
|
-
*/
|
|
21
|
-
export declare function extractRefs(text: string): string[];
|
|
22
|
-
export type ItemSource = 'spec-ids' | 'spec-table' | 'spec-ids+spec-table' | 'ui-inventory' | 'none';
|
|
23
|
-
export interface UniverseItem {
|
|
24
|
-
ref: string;
|
|
25
|
-
name: string;
|
|
26
|
-
}
|
|
27
|
-
/** Every list a citation could point at, each in its own notation. */
|
|
28
|
-
export interface ItemUniverses {
|
|
29
|
-
specIds: UniverseItem[];
|
|
30
|
-
specTable: UniverseItem[];
|
|
31
|
-
inventory: UniverseItem[];
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* The unit's lists, by where each id is DECLARED: requirement ids spec.md declares (`**FR-BC-03**:`),
|
|
35
|
-
* the spec's item table (`No` + name + type columns), and ui-inventory ids (`UI-NNN`). An id's shape
|
|
36
|
-
* says nothing about which list it belongs to — `item 9` on a mockup and `UI-009` in the inventory
|
|
37
|
-
* number different things.
|
|
38
|
-
*/
|
|
39
|
-
export declare function itemUniverses(reqDir: string): ItemUniverses;
|
|
40
|
-
/**
|
|
41
|
-
* The list(s) the viewpoint actually cites — a list nobody cites says nothing about gaps. The spec's
|
|
42
|
-
* ids and its item table, each when cited (both when both are: the notations cannot collide, and
|
|
43
|
-
* dropping one would under-report); the table also when nothing is cited at all (then every item is
|
|
44
|
-
* uncited, which is true); the inventory only when the viewpoint writes `UI-NNN`; else none.
|
|
45
|
-
*/
|
|
46
|
-
export declare function citedUniverse(u: ItemUniverses, cited: ReadonlySet<string>, writesInventoryIds: boolean): {
|
|
47
|
-
source: ItemSource;
|
|
48
|
-
items: UniverseItem[];
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=viewpoint-scan-refs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewpoint-scan-refs.d.ts","sourceRoot":"","sources":["../../src/harness/viewpoint-scan-refs.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,QAAQ;IACvB,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,yEAAyE;IACzE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACxB,uGAAuG;IACvG,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,sFAAsF;AACtF,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,CAelD;AAKD,sFAAsF;AACtF,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGhD;AAkBD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAiBlD;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,YAAY,GAAG,qBAAqB,GAAG,cAAc,GAAG,MAAM,CAAC;AACrG,MAAM,WAAW,YAAY;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAC3D,sEAAsE;AACtE,MAAM,WAAW,aAAa;IAAG,OAAO,EAAE,YAAY,EAAE,CAAC;IAAC,SAAS,EAAE,YAAY,EAAE,CAAC;IAAC,SAAS,EAAE,YAAY,EAAE,CAAA;CAAE;AAMhH;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CA2B3D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,OAAO,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,YAAY,EAAE,CAAA;CAAE,CAStJ"}
|
|
@@ -1,200 +0,0 @@
|
|
|
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.tableRows = tableRows;
|
|
37
|
-
exports.normRef = normRef;
|
|
38
|
-
exports.extractRefs = extractRefs;
|
|
39
|
-
exports.itemUniverses = itemUniverses;
|
|
40
|
-
exports.citedUniverse = citedUniverse;
|
|
41
|
-
/**
|
|
42
|
-
* Building blocks of `sungen viewpoint scan` (viewpoint-scan.ts): the markdown table walker, the
|
|
43
|
-
* item-reference reader and the item universe. Pure, read-only, format-tolerant by design — a
|
|
44
|
-
* QA-written file is never judged here, only its ids and item numbers are read.
|
|
45
|
-
*/
|
|
46
|
-
const fs = __importStar(require("fs"));
|
|
47
|
-
const path = __importStar(require("path"));
|
|
48
|
-
const read_text_1 = require("./read-text");
|
|
49
|
-
const ui_inventory_1 = require("./ui-inventory");
|
|
50
|
-
const spec_coverage_1 = require("./spec-coverage");
|
|
51
|
-
const SEPARATOR = /^\s*\|?\s*:?-{2,}:?\s*(\|\s*:?-{2,}:?\s*)*\|?\s*$/;
|
|
52
|
-
const splitCells = (line) => line.trim().replace(/^\|/, '').replace(/\|$/, '')
|
|
53
|
-
.split(/(?<!\\)\|/).map((c) => c.replace(/\*\*|`/g, '').trim());
|
|
54
|
-
/** Every body row of every markdown table, with its header and enclosing headings. */
|
|
55
|
-
function tableRows(text) {
|
|
56
|
-
const lines = text.split('\n');
|
|
57
|
-
const out = [];
|
|
58
|
-
const headings = []; // index = level − 1
|
|
59
|
-
let header = null;
|
|
60
|
-
for (let i = 0; i < lines.length; i++) {
|
|
61
|
-
const raw = lines[i];
|
|
62
|
-
const h = raw.match(/^(#{1,6})\s+(.*)$/);
|
|
63
|
-
if (h) {
|
|
64
|
-
headings.length = h[1].length - 1;
|
|
65
|
-
headings[h[1].length - 1] = h[2];
|
|
66
|
-
header = null;
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
if (!raw.includes('|')) {
|
|
70
|
-
header = null;
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
if (SEPARATOR.test(raw))
|
|
74
|
-
continue;
|
|
75
|
-
if (i + 1 < lines.length && SEPARATOR.test(lines[i + 1])) {
|
|
76
|
-
header = splitCells(raw);
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
out.push({ line: i + 1, raw, cells: splitCells(raw), header, section: headings.join(' ') });
|
|
80
|
-
}
|
|
81
|
-
return out;
|
|
82
|
-
}
|
|
83
|
-
const NUM = String.raw `(?<!\d)\d{1,3}(?:\.\d{1,3})*(?![\d])`;
|
|
84
|
-
const LIST = new RegExp(`(?:\\bitems?|項目|(?<![\\w-])UI[\\s-]*#?|#)\\s*(${NUM}(?:\\s*(?:[-–—~〜~,;&/]|(?<![\\p{L}\\p{N}])(?:và|and)(?![\\p{L}\\p{N}]))\\s*${NUM})*)`, 'giu');
|
|
85
|
-
/** `009` → `9`, `4.03` → `4.3`; null when the text is not a plain (dotted) number. */
|
|
86
|
-
function normRef(s) {
|
|
87
|
-
const t = s.replace(/[[\]§#]/g, '').trim();
|
|
88
|
-
return /^\d+(\.\d+)*$/.test(t) ? t.split('.').map((p) => String(Number(p))).join('.') : null;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* The refs strictly between `a` and `b` (normalised): `4`–`6` → `5`, `5.4`–`5.8` → `5.5 … 5.7`.
|
|
92
|
-
* Only the last level steps, so both ends need the same prefix; `5.4–6.2` or `3–5.2` cannot be
|
|
93
|
-
* enumerated without the item list and give nothing.
|
|
94
|
-
*/
|
|
95
|
-
function between(a, b) {
|
|
96
|
-
const pa = a.split('.');
|
|
97
|
-
const pb = b.split('.');
|
|
98
|
-
if (pa.length !== pb.length || pa.slice(0, -1).join('.') !== pb.slice(0, -1).join('.'))
|
|
99
|
-
return [];
|
|
100
|
-
const lo = Number(pa[pa.length - 1]);
|
|
101
|
-
const hi = Number(pb[pb.length - 1]);
|
|
102
|
-
if (!(hi > lo && hi - lo < 200))
|
|
103
|
-
return [];
|
|
104
|
-
const prefix = pa.slice(0, -1).map((p) => `${p}.`).join('');
|
|
105
|
-
return Array.from({ length: hi - lo - 1 }, (_, k) => `${prefix}${lo + 1 + k}`);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Item numbers a cell cites: `item 9`, `item 2, 3, 7`, `item 4–6`, `item 5.4–5.8`, `項目 4.3〜4.6`, `UI #9`,
|
|
109
|
-
* `UI-009`, `[9]`, `§4.3.2`. Prose (`Auth guard`), message codes (`M02`) and question ids
|
|
110
|
-
* (`Q-01`) are not refs.
|
|
111
|
-
*/
|
|
112
|
-
function extractRefs(text) {
|
|
113
|
-
const refs = new Set();
|
|
114
|
-
const add = (s) => { const r = normRef(s); if (r)
|
|
115
|
-
refs.add(r); };
|
|
116
|
-
for (const m of text.matchAll(LIST)) {
|
|
117
|
-
let prev = null;
|
|
118
|
-
let range = false;
|
|
119
|
-
for (const tok of m[1].matchAll(new RegExp(`(${NUM})|([-–—~〜~])`, 'g'))) {
|
|
120
|
-
if (tok[2]) {
|
|
121
|
-
range = prev !== null;
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
const n = normRef(tok[1]);
|
|
125
|
-
if (!n)
|
|
126
|
-
continue;
|
|
127
|
-
if (range && prev)
|
|
128
|
-
for (const r of between(prev, n))
|
|
129
|
-
refs.add(r);
|
|
130
|
-
refs.add(n);
|
|
131
|
-
prev = n;
|
|
132
|
-
range = false;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
for (const m of text.matchAll(/\[(\d{1,3})\]/g))
|
|
136
|
-
add(m[1]);
|
|
137
|
-
for (const m of text.matchAll(/§\s*(\d{1,3}(?:\.\d{1,3})*)/g))
|
|
138
|
-
add(m[1]);
|
|
139
|
-
return [...refs];
|
|
140
|
-
}
|
|
141
|
-
const NO_COL = /^(no\.?|#|stt|№|番号)$/i;
|
|
142
|
-
const TYPE_COL = /種別|\b(type|kind)\b|loại/i;
|
|
143
|
-
const NAME_COL = /item|name|tên|項目|名|field|label|trường|thành phần|component/i;
|
|
144
|
-
/**
|
|
145
|
-
* The unit's lists, by where each id is DECLARED: requirement ids spec.md declares (`**FR-BC-03**:`),
|
|
146
|
-
* the spec's item table (`No` + name + type columns), and ui-inventory ids (`UI-NNN`). An id's shape
|
|
147
|
-
* says nothing about which list it belongs to — `item 9` on a mockup and `UI-009` in the inventory
|
|
148
|
-
* number different things.
|
|
149
|
-
*/
|
|
150
|
-
function itemUniverses(reqDir) {
|
|
151
|
-
const read = (f) => {
|
|
152
|
-
const p = path.join(reqDir, f);
|
|
153
|
-
return fs.existsSync(p) ? (0, read_text_1.stripHtmlComments)((0, read_text_1.readTextFile)(p)) : null;
|
|
154
|
-
};
|
|
155
|
-
const out = { specIds: [], specTable: [], inventory: [] };
|
|
156
|
-
const spec = read('spec.md');
|
|
157
|
-
if (spec) {
|
|
158
|
-
out.specIds = (0, spec_coverage_1.parseSpecClauses)(path.join(reqDir, 'spec.md')).frs.map((f) => ({ ref: f.id, name: f.text.slice(0, 80) }));
|
|
159
|
-
for (const row of tableRows(spec)) {
|
|
160
|
-
const h = row.header;
|
|
161
|
-
const no = h?.findIndex((c) => NO_COL.test(c)) ?? -1;
|
|
162
|
-
const type = h?.findIndex((c) => TYPE_COL.test(c)) ?? -1;
|
|
163
|
-
const name = h?.findIndex((c, i) => i !== no && i !== type && NAME_COL.test(c)) ?? -1;
|
|
164
|
-
if (no < 0 || type < 0 || name < 0)
|
|
165
|
-
continue;
|
|
166
|
-
const ref = normRef(row.cells[no] ?? '');
|
|
167
|
-
if (ref)
|
|
168
|
-
out.specTable.push({ ref, name: row.cells[name] ?? '' });
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
const inv = read('ui-inventory.md');
|
|
172
|
-
if (inv) {
|
|
173
|
-
out.inventory = (0, ui_inventory_1.parseUiInventory)(inv).items.flatMap((i) => {
|
|
174
|
-
const ref = normRef(i.id.replace(/^UI-/i, ''));
|
|
175
|
-
return ref ? [{ ref, name: i.item }] : [];
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
return out;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* The list(s) the viewpoint actually cites — a list nobody cites says nothing about gaps. The spec's
|
|
182
|
-
* ids and its item table, each when cited (both when both are: the notations cannot collide, and
|
|
183
|
-
* dropping one would under-report); the table also when nothing is cited at all (then every item is
|
|
184
|
-
* uncited, which is true); the inventory only when the viewpoint writes `UI-NNN`; else none.
|
|
185
|
-
*/
|
|
186
|
-
function citedUniverse(u, cited, writesInventoryIds) {
|
|
187
|
-
const hits = (items) => items.some((i) => cited.has(i.ref));
|
|
188
|
-
const ids = hits(u.specIds);
|
|
189
|
-
const table = u.specTable.length > 0 && (cited.size === 0 || hits(u.specTable));
|
|
190
|
-
if (ids && table)
|
|
191
|
-
return { source: 'spec-ids+spec-table', items: [...u.specIds, ...u.specTable] };
|
|
192
|
-
if (ids)
|
|
193
|
-
return { source: 'spec-ids', items: u.specIds };
|
|
194
|
-
if (table)
|
|
195
|
-
return { source: 'spec-table', items: u.specTable };
|
|
196
|
-
if (writesInventoryIds && hits(u.inventory))
|
|
197
|
-
return { source: 'ui-inventory', items: u.inventory };
|
|
198
|
-
return { source: 'none', items: [] };
|
|
199
|
-
}
|
|
200
|
-
//# sourceMappingURL=viewpoint-scan-refs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"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