@aisdlc/core 4.7.2 → 4.8.0
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/index.cjs +605 -184
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -5
- package/dist/index.d.ts +52 -5
- package/dist/index.js +596 -185
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,8 @@ import * as crypto4 from 'crypto';
|
|
|
2
2
|
import * as fs12 from 'fs';
|
|
3
3
|
import fs12__default from 'fs';
|
|
4
4
|
import * as path14 from 'path';
|
|
5
|
-
import yaml3 from 'js-yaml';
|
|
5
|
+
import * as yaml3 from 'js-yaml';
|
|
6
|
+
import yaml3__default from 'js-yaml';
|
|
6
7
|
import * as child_process3 from 'child_process';
|
|
7
8
|
import { execFileSync, spawnSync, execSync, execFile } from 'child_process';
|
|
8
9
|
import { SyntaxKind, Project, Node } from 'ts-morph';
|
|
@@ -2400,7 +2401,7 @@ function parseGenericDoc(content) {
|
|
|
2400
2401
|
if (!match) return { frontmatter: {}, body: content };
|
|
2401
2402
|
let parsed;
|
|
2402
2403
|
try {
|
|
2403
|
-
parsed =
|
|
2404
|
+
parsed = yaml3__default.load(match[1]);
|
|
2404
2405
|
} catch {
|
|
2405
2406
|
return { frontmatter: {}, body: content };
|
|
2406
2407
|
}
|
|
@@ -2872,7 +2873,7 @@ function resolvePolicyTestPatterns(rootDir, options) {
|
|
|
2872
2873
|
const policyFile = resolvePolicyFilePath(rootDir, options.policyPath);
|
|
2873
2874
|
if (!fs12.existsSync(policyFile)) return void 0;
|
|
2874
2875
|
try {
|
|
2875
|
-
return extractPatternsFromPolicyDoc(
|
|
2876
|
+
return extractPatternsFromPolicyDoc(yaml3__default.load(fs12.readFileSync(policyFile, "utf-8")));
|
|
2876
2877
|
} catch {
|
|
2877
2878
|
return void 0;
|
|
2878
2879
|
}
|
|
@@ -3058,7 +3059,7 @@ function applyOptionOverrides(policy, overrides) {
|
|
|
3058
3059
|
function parsePolicyYaml(content) {
|
|
3059
3060
|
let doc;
|
|
3060
3061
|
try {
|
|
3061
|
-
doc =
|
|
3062
|
+
doc = yaml3__default.load(content);
|
|
3062
3063
|
} catch (err) {
|
|
3063
3064
|
throw new Error(`[AI-SDLC Fail-Closed] Invalid YAML in quality-policy: ${err instanceof Error ? err.message : String(err)}`);
|
|
3064
3065
|
}
|
|
@@ -3590,7 +3591,7 @@ function parseChangeProfile(specFile) {
|
|
|
3590
3591
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
3591
3592
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
3592
3593
|
if (match) {
|
|
3593
|
-
const parsedFm =
|
|
3594
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
3594
3595
|
if (parsedFm?.profile && ["patch", "standard", "critical"].includes(String(parsedFm.profile))) {
|
|
3595
3596
|
return parsedFm.profile;
|
|
3596
3597
|
}
|
|
@@ -3617,7 +3618,7 @@ function validateSpecFileContent(specFile, changeWorkspaceDir, errors) {
|
|
|
3617
3618
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
3618
3619
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
3619
3620
|
if (match) {
|
|
3620
|
-
const parsedFm =
|
|
3621
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
3621
3622
|
if (parsedFm) checkSpecGherkinFormat(parsedFm, rawSpec, changeWorkspaceDir, errors);
|
|
3622
3623
|
}
|
|
3623
3624
|
} catch {
|
|
@@ -3690,7 +3691,7 @@ var OpenSpecAdapter = class {
|
|
|
3690
3691
|
const handoff = normalizeHandoffPayload(options.handoff, options.changeId);
|
|
3691
3692
|
const filename = options.format === "json" ? "handoff.json" : "handoff.yaml";
|
|
3692
3693
|
const filePath = path14.join(changeDir, filename);
|
|
3693
|
-
const content = options.format === "json" ? JSON.stringify(handoff, null, 2) :
|
|
3694
|
+
const content = options.format === "json" ? JSON.stringify(handoff, null, 2) : yaml3__default.dump(handoff, { indent: 2, lineWidth: -1 });
|
|
3694
3695
|
fs12.writeFileSync(filePath, content, "utf-8");
|
|
3695
3696
|
return filePath;
|
|
3696
3697
|
}
|
|
@@ -3710,7 +3711,7 @@ var OpenSpecAdapter = class {
|
|
|
3710
3711
|
if (fs12.existsSync(fullPath)) {
|
|
3711
3712
|
try {
|
|
3712
3713
|
const raw = fs12.readFileSync(fullPath, "utf-8").replace(/^\uFEFF/, "");
|
|
3713
|
-
const parsed = file.endsWith(".json") ? JSON.parse(raw) :
|
|
3714
|
+
const parsed = file.endsWith(".json") ? JSON.parse(raw) : yaml3__default.load(raw);
|
|
3714
3715
|
if (parsed && typeof parsed === "object" && parsed.id && String(parsed.id).startsWith("HOF-")) {
|
|
3715
3716
|
return parsed;
|
|
3716
3717
|
}
|
|
@@ -3749,7 +3750,7 @@ function parseChangeProfile2(specFile) {
|
|
|
3749
3750
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
3750
3751
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
3751
3752
|
if (match) {
|
|
3752
|
-
const parsedFm =
|
|
3753
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
3753
3754
|
if (parsedFm?.profile && ["patch", "standard", "critical"].includes(String(parsedFm.profile))) {
|
|
3754
3755
|
return parsedFm.profile;
|
|
3755
3756
|
}
|
|
@@ -3776,7 +3777,7 @@ function validateSpecFileContent2(specFile, changeWorkspaceDir, errors) {
|
|
|
3776
3777
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
3777
3778
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
3778
3779
|
if (match) {
|
|
3779
|
-
const parsedFm =
|
|
3780
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
3780
3781
|
if (parsedFm) checkSpecGherkinFormat2(parsedFm, rawSpec, changeWorkspaceDir, errors);
|
|
3781
3782
|
}
|
|
3782
3783
|
} catch {
|
|
@@ -3856,7 +3857,7 @@ var SpecKitAdapter = class {
|
|
|
3856
3857
|
}
|
|
3857
3858
|
const filename = options.format === "json" ? "handoff.json" : "handoff.yaml";
|
|
3858
3859
|
const filePath = path14.join(changeDir, filename);
|
|
3859
|
-
const content = options.format === "json" ? JSON.stringify(handoff, null, 2) :
|
|
3860
|
+
const content = options.format === "json" ? JSON.stringify(handoff, null, 2) : yaml3__default.dump(handoff, { indent: 2, lineWidth: -1 });
|
|
3860
3861
|
fs12.writeFileSync(filePath, content, "utf-8");
|
|
3861
3862
|
const specifyMemoryDir = path14.join(options.rootDir, ".specify", "memory");
|
|
3862
3863
|
if (fs12.existsSync(path14.join(options.rootDir, ".specify"))) {
|
|
@@ -3882,7 +3883,7 @@ var SpecKitAdapter = class {
|
|
|
3882
3883
|
if (fs12.existsSync(fullPath)) {
|
|
3883
3884
|
try {
|
|
3884
3885
|
const raw = fs12.readFileSync(fullPath, "utf-8").replace(/^\uFEFF/, "");
|
|
3885
|
-
const parsed = file.endsWith(".json") ? JSON.parse(raw) :
|
|
3886
|
+
const parsed = file.endsWith(".json") ? JSON.parse(raw) : yaml3__default.load(raw);
|
|
3886
3887
|
if (parsed && typeof parsed === "object" && parsed.id && String(parsed.id).startsWith("HOF-")) {
|
|
3887
3888
|
return parsed;
|
|
3888
3889
|
}
|
|
@@ -4549,7 +4550,7 @@ function loadCanonicalArtifacts(rootDir) {
|
|
|
4549
4550
|
}
|
|
4550
4551
|
function writeUpdatedArtifact(file, frontmatter, body) {
|
|
4551
4552
|
const yamlHeader = `---
|
|
4552
|
-
${
|
|
4553
|
+
${yaml3__default.dump(frontmatter, { indent: 2, lineWidth: -1 }).trim()}
|
|
4553
4554
|
---
|
|
4554
4555
|
`;
|
|
4555
4556
|
fs12.writeFileSync(file, yamlHeader + body, "utf-8");
|
|
@@ -5615,7 +5616,7 @@ function extractFrontmatter(content) {
|
|
|
5615
5616
|
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
5616
5617
|
if (!match) return null;
|
|
5617
5618
|
try {
|
|
5618
|
-
const parsed =
|
|
5619
|
+
const parsed = yaml3__default.load(match[1]);
|
|
5619
5620
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
5620
5621
|
return parsed;
|
|
5621
5622
|
}
|
|
@@ -5669,7 +5670,7 @@ function walkHandoffSidecars(dir, fileList = []) {
|
|
|
5669
5670
|
function extractArtifactData(filePath, content) {
|
|
5670
5671
|
if (filePath.endsWith(".yaml") || filePath.endsWith(".yml")) {
|
|
5671
5672
|
try {
|
|
5672
|
-
const parsed =
|
|
5673
|
+
const parsed = yaml3__default.load(content);
|
|
5673
5674
|
return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null;
|
|
5674
5675
|
} catch {
|
|
5675
5676
|
return null;
|
|
@@ -5974,7 +5975,7 @@ function parseInputFromIds(rawFrom) {
|
|
|
5974
5975
|
}
|
|
5975
5976
|
function renderCitationsYamlBlock(citedArtifacts) {
|
|
5976
5977
|
if (citedArtifacts.length === 0) return "";
|
|
5977
|
-
return
|
|
5978
|
+
return yaml3__default.dump(
|
|
5978
5979
|
citedArtifacts.map((c) => ({ id: c.id, digest: c.digest, comment: c.comment })),
|
|
5979
5980
|
{ indent: 2, lineWidth: -1 }
|
|
5980
5981
|
).trim().split("\n").map((line) => ` ${line}`).join("\n");
|
|
@@ -6615,7 +6616,7 @@ function renderTasksFile(changeDir, canonicalId, name, author, dateStr, reqIds)
|
|
|
6615
6616
|
const tasksPath = path14.join(changeDir, "tasks.md");
|
|
6616
6617
|
const tasksFm = buildTasksFrontmatter(canonicalId, name, reqIds);
|
|
6617
6618
|
const header = `---
|
|
6618
|
-
${
|
|
6619
|
+
${yaml3__default.dump(tasksFm, { indent: 2, lineWidth: -1 }).trim()}
|
|
6619
6620
|
---
|
|
6620
6621
|
`;
|
|
6621
6622
|
const body = TASKS_BODY.replaceAll("{{CANONICAL_ID}}", canonicalId).replaceAll("{{NAME}}", name).replaceAll("{{AUTHOR}}", author).replaceAll("{{DATE}}", dateStr);
|
|
@@ -6904,7 +6905,7 @@ function normalizeParsedRule(raw, idx) {
|
|
|
6904
6905
|
function parseDlpDoc(yamlContent) {
|
|
6905
6906
|
let doc;
|
|
6906
6907
|
try {
|
|
6907
|
-
doc =
|
|
6908
|
+
doc = yaml3__default.load(yamlContent);
|
|
6908
6909
|
} catch (err) {
|
|
6909
6910
|
throw new Error(`[AI-SDLC Fail-Closed] Invalid YAML in dlp-policy: ${err instanceof Error ? err.message : String(err)}`);
|
|
6910
6911
|
}
|
|
@@ -7160,7 +7161,7 @@ function parseFrontmatter(content) {
|
|
|
7160
7161
|
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
7161
7162
|
if (!match) return { frontmatter: {}, body: content };
|
|
7162
7163
|
try {
|
|
7163
|
-
const parsed =
|
|
7164
|
+
const parsed = yaml3__default.load(match[1]);
|
|
7164
7165
|
const frontmatter = parsed && typeof parsed === "object" ? parsed : {};
|
|
7165
7166
|
return { frontmatter, body: content.substring(match[0].length) };
|
|
7166
7167
|
} catch {
|
|
@@ -7719,7 +7720,7 @@ function parseTasksDoc(content) {
|
|
|
7719
7720
|
if (!match) return { frontmatter: { tasks: [] }, body: content };
|
|
7720
7721
|
let parsed;
|
|
7721
7722
|
try {
|
|
7722
|
-
parsed =
|
|
7723
|
+
parsed = yaml3__default.load(match[1]);
|
|
7723
7724
|
} catch {
|
|
7724
7725
|
return { frontmatter: { tasks: [] }, body: content };
|
|
7725
7726
|
}
|
|
@@ -8360,7 +8361,10 @@ function executeResolvedBinary(resolvedBin, bin, realManifest) {
|
|
|
8360
8361
|
});
|
|
8361
8362
|
return mapSpawnResult(res);
|
|
8362
8363
|
} finally {
|
|
8363
|
-
|
|
8364
|
+
try {
|
|
8365
|
+
fs12.rmSync(tempHome, { recursive: true, force: true, maxRetries: 3 });
|
|
8366
|
+
} catch {
|
|
8367
|
+
}
|
|
8364
8368
|
}
|
|
8365
8369
|
}
|
|
8366
8370
|
function runSafe(bin, rootDir, manifestDir) {
|
|
@@ -11050,7 +11054,7 @@ function applySastThresholds(defaults, thresholds) {
|
|
|
11050
11054
|
}
|
|
11051
11055
|
function parseYamlPolicyFile(policyPath) {
|
|
11052
11056
|
try {
|
|
11053
|
-
return
|
|
11057
|
+
return yaml3__default.load(fs12__default.readFileSync(policyPath, "utf-8"));
|
|
11054
11058
|
} catch (err) {
|
|
11055
11059
|
throw new SarifIngestionError(
|
|
11056
11060
|
"ERR_SARIF_MALFORMED",
|
|
@@ -11183,7 +11187,7 @@ function readFailOnMissingToolFromQualityPolicy(rootDir) {
|
|
|
11183
11187
|
const policyPath = path14.join(rootDir, "quality-policy.yaml");
|
|
11184
11188
|
if (!fs12__default.existsSync(policyPath)) return false;
|
|
11185
11189
|
try {
|
|
11186
|
-
const doc =
|
|
11190
|
+
const doc = yaml3__default.load(fs12__default.readFileSync(policyPath, "utf-8"));
|
|
11187
11191
|
const rt = doc?.release_thresholds;
|
|
11188
11192
|
const sast = rt?.sast_analysis;
|
|
11189
11193
|
return Boolean(sast?.fail_on_missing_tool ?? doc?.fail_on_missing_tool);
|
|
@@ -11626,7 +11630,7 @@ function parseVexStatements(doc) {
|
|
|
11626
11630
|
function parseLicenseDoc(content) {
|
|
11627
11631
|
let doc;
|
|
11628
11632
|
try {
|
|
11629
|
-
doc =
|
|
11633
|
+
doc = yaml3__default.load(content);
|
|
11630
11634
|
} catch (err) {
|
|
11631
11635
|
throw new Error(`[AI-SDLC Fail-Closed] Invalid YAML in license-policy: ${err instanceof Error ? err.message : String(err)}`);
|
|
11632
11636
|
}
|
|
@@ -11775,7 +11779,7 @@ function generateLicenseReportMarkdown(dependencies, violations, policy, sbomPat
|
|
|
11775
11779
|
function parseManifestItems(manifestFile) {
|
|
11776
11780
|
if (!fs12.existsSync(manifestFile)) return [];
|
|
11777
11781
|
try {
|
|
11778
|
-
const doc =
|
|
11782
|
+
const doc = yaml3__default.load(fs12.readFileSync(manifestFile, "utf-8"));
|
|
11779
11783
|
return Array.isArray(doc?.evaluated_dependencies) ? doc.evaluated_dependencies : [];
|
|
11780
11784
|
} catch {
|
|
11781
11785
|
return [];
|
|
@@ -12054,7 +12058,7 @@ function detectProfileFromChange(changeDir) {
|
|
|
12054
12058
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
12055
12059
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
12056
12060
|
if (match) {
|
|
12057
|
-
const parsedFm =
|
|
12061
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
12058
12062
|
if (parsedFm && parsedFm.profile && ["patch", "standard", "critical"].includes(String(parsedFm.profile))) {
|
|
12059
12063
|
return parsedFm.profile;
|
|
12060
12064
|
}
|
|
@@ -12213,7 +12217,7 @@ function parseMdFrontmatter(raw) {
|
|
|
12213
12217
|
return { fm: {}, body: cleaned.trim() };
|
|
12214
12218
|
}
|
|
12215
12219
|
try {
|
|
12216
|
-
const parsed =
|
|
12220
|
+
const parsed = yaml3__default.load(match[1]);
|
|
12217
12221
|
const fm = parsed && typeof parsed === "object" ? parsed : {};
|
|
12218
12222
|
return { fm, body: cleaned.substring(match[0].length).trim() };
|
|
12219
12223
|
} catch {
|
|
@@ -12563,7 +12567,7 @@ function extractParsedFrontmatter(content) {
|
|
|
12563
12567
|
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
12564
12568
|
if (!match) return null;
|
|
12565
12569
|
try {
|
|
12566
|
-
const parsed =
|
|
12570
|
+
const parsed = yaml3__default.load(match[1]);
|
|
12567
12571
|
if (parsed && typeof parsed === "object") {
|
|
12568
12572
|
const fm = parsed;
|
|
12569
12573
|
if (fm.id && isRequirementArtifact2(fm)) {
|
|
@@ -13021,7 +13025,7 @@ function runGitleaksCli(rootDir) {
|
|
|
13021
13025
|
try {
|
|
13022
13026
|
const output = execFileSync(
|
|
13023
13027
|
"gitleaks",
|
|
13024
|
-
["detect", "--no-git", "--report-format", "json", "--report-path", "
|
|
13028
|
+
["detect", "--no-git", "--report-format", "json", "--report-path", "-"],
|
|
13025
13029
|
{
|
|
13026
13030
|
cwd: rootDir,
|
|
13027
13031
|
encoding: "utf-8",
|
|
@@ -13776,7 +13780,7 @@ var PII_SAST_RULES = [
|
|
|
13776
13780
|
function parsePrivacyDoc(raw, candidate) {
|
|
13777
13781
|
let parsed;
|
|
13778
13782
|
try {
|
|
13779
|
-
parsed =
|
|
13783
|
+
parsed = yaml3__default.load(raw);
|
|
13780
13784
|
} catch (err) {
|
|
13781
13785
|
throw new Error(`[AI-SDLC Fail-Closed] Invalid YAML in privacy-policy '${candidate}': ${err instanceof Error ? err.message : String(err)}`);
|
|
13782
13786
|
}
|
|
@@ -14244,6 +14248,116 @@ function verifyPrivacy(options = {}) {
|
|
|
14244
14248
|
writePrivacyOutputsIfNeeded(result, options, policy, rootDir);
|
|
14245
14249
|
return result;
|
|
14246
14250
|
}
|
|
14251
|
+
function parseSkillFrontmatter(content) {
|
|
14252
|
+
const normalized = content.replace(/\r\n/g, "\n");
|
|
14253
|
+
const match = normalized.match(/^---\n([\s\S]*?)\n---/);
|
|
14254
|
+
if (!match) return null;
|
|
14255
|
+
try {
|
|
14256
|
+
const parsed = yaml3.load(match[1]);
|
|
14257
|
+
return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null;
|
|
14258
|
+
} catch {
|
|
14259
|
+
return null;
|
|
14260
|
+
}
|
|
14261
|
+
}
|
|
14262
|
+
function extractReferenceLinks(content) {
|
|
14263
|
+
const links = /* @__PURE__ */ new Set();
|
|
14264
|
+
const regex = /\(\.\/(references\/[^)\s]+\.md)\)/g;
|
|
14265
|
+
let match;
|
|
14266
|
+
while ((match = regex.exec(content)) !== null) {
|
|
14267
|
+
links.add(match[1]);
|
|
14268
|
+
}
|
|
14269
|
+
return Array.from(links);
|
|
14270
|
+
}
|
|
14271
|
+
function checkSkillReferences(skillDir, relSkillFile, content) {
|
|
14272
|
+
const violations = [];
|
|
14273
|
+
for (const refRel of extractReferenceLinks(content)) {
|
|
14274
|
+
if (!fs12.existsSync(path14.join(skillDir, refRel))) {
|
|
14275
|
+
violations.push({
|
|
14276
|
+
skillFile: relSkillFile,
|
|
14277
|
+
code: "BROKEN_REFERENCE",
|
|
14278
|
+
message: `Referenced file './${refRel}' does not exist`
|
|
14279
|
+
});
|
|
14280
|
+
}
|
|
14281
|
+
}
|
|
14282
|
+
return violations;
|
|
14283
|
+
}
|
|
14284
|
+
function validateSingleSkill(skillDir, rootDir, expectedName) {
|
|
14285
|
+
const skillFile = path14.join(skillDir, "SKILL.md");
|
|
14286
|
+
if (!fs12.existsSync(skillFile)) return [];
|
|
14287
|
+
const relSkillFile = path14.relative(rootDir, skillFile).replace(/\\/g, "/");
|
|
14288
|
+
const content = fs12.readFileSync(skillFile, "utf-8");
|
|
14289
|
+
const fm = parseSkillFrontmatter(content);
|
|
14290
|
+
if (!fm) {
|
|
14291
|
+
return [{ skillFile: relSkillFile, code: "MISSING_FRONTMATTER", message: "Missing or invalid YAML frontmatter" }];
|
|
14292
|
+
}
|
|
14293
|
+
const violations = [];
|
|
14294
|
+
if (typeof fm.name !== "string" || fm.name.trim() !== expectedName) {
|
|
14295
|
+
violations.push({ skillFile: relSkillFile, code: "INVALID_NAME", message: `Frontmatter name must match '${expectedName}'` });
|
|
14296
|
+
}
|
|
14297
|
+
if (typeof fm.description !== "string" || fm.description.trim().length < 10) {
|
|
14298
|
+
violations.push({ skillFile: relSkillFile, code: "MISSING_DESCRIPTION", message: "Frontmatter description is missing or too short" });
|
|
14299
|
+
}
|
|
14300
|
+
return [...violations, ...checkSkillReferences(skillDir, relSkillFile, content)];
|
|
14301
|
+
}
|
|
14302
|
+
function verifySkillsIntegrity(rootDir = process.cwd()) {
|
|
14303
|
+
const resolvedRoot = path14.resolve(rootDir);
|
|
14304
|
+
const roots = [path14.join(resolvedRoot, ".agent", "skills"), path14.join(resolvedRoot, ".claude", "skills")];
|
|
14305
|
+
const violations = [];
|
|
14306
|
+
let checkedSkills = 0;
|
|
14307
|
+
for (const skillsRoot of roots) {
|
|
14308
|
+
if (!fs12.existsSync(skillsRoot)) continue;
|
|
14309
|
+
for (const entry of fs12.readdirSync(skillsRoot, { withFileTypes: true })) {
|
|
14310
|
+
if (!entry.isDirectory()) continue;
|
|
14311
|
+
const skillDir = path14.join(skillsRoot, entry.name);
|
|
14312
|
+
if (fs12.existsSync(path14.join(skillDir, "SKILL.md"))) {
|
|
14313
|
+
checkedSkills++;
|
|
14314
|
+
violations.push(...validateSingleSkill(skillDir, resolvedRoot, entry.name));
|
|
14315
|
+
}
|
|
14316
|
+
}
|
|
14317
|
+
}
|
|
14318
|
+
return { success: violations.length === 0, checkedSkills, violations };
|
|
14319
|
+
}
|
|
14320
|
+
var SKILL_EXPECTED_TOOLS = {
|
|
14321
|
+
"aisdlc-greenfield": ["new", "verify_schemas", "sdd_change_new", "verify"],
|
|
14322
|
+
"aisdlc-legacy-onboarding": ["verify_licenses", "verify_security", "verify_privacy", "sdd_check_fix"],
|
|
14323
|
+
"aisdlc-increment": ["sdd_change_new", "verify_governance", "sdd_check_fix", "verify"],
|
|
14324
|
+
"aisdlc-inspector": ["inspect_element"],
|
|
14325
|
+
"aisdlc-doctor-migrate": ["doctor", "migrate"],
|
|
14326
|
+
"aisdlc-release-compliance": ["verify", "kpi_release", "report_dashboard"],
|
|
14327
|
+
"aisdlc-security-sca-triage": ["verify_security", "verify_privacy", "verify_licenses"],
|
|
14328
|
+
"aisdlc-bdd-gherkin": ["sdd_check_fix", "verify_testing"]
|
|
14329
|
+
};
|
|
14330
|
+
function readExecutedMcpTools(auditLogFile) {
|
|
14331
|
+
const executed = /* @__PURE__ */ new Set();
|
|
14332
|
+
if (!fs12.existsSync(auditLogFile)) return executed;
|
|
14333
|
+
const lines = fs12.readFileSync(auditLogFile, "utf-8").split(/\r?\n/);
|
|
14334
|
+
for (const line of lines) {
|
|
14335
|
+
const trimmed = line.trim();
|
|
14336
|
+
if (!trimmed) continue;
|
|
14337
|
+
try {
|
|
14338
|
+
const entry = JSON.parse(trimmed);
|
|
14339
|
+
if (typeof entry.tool === "string" && entry.success === true) {
|
|
14340
|
+
executed.add(entry.tool);
|
|
14341
|
+
}
|
|
14342
|
+
} catch {
|
|
14343
|
+
}
|
|
14344
|
+
}
|
|
14345
|
+
return executed;
|
|
14346
|
+
}
|
|
14347
|
+
function verifySkillExecutionEvidence(rootDir, skillId, auditLogPath) {
|
|
14348
|
+
const expectedTools = SKILL_EXPECTED_TOOLS[skillId] || [];
|
|
14349
|
+
const logFile = auditLogPath || path14.join(path14.resolve(rootDir), "reports", "mcp-audit.jsonl");
|
|
14350
|
+
const allExecuted = readExecutedMcpTools(logFile);
|
|
14351
|
+
const executedTools = expectedTools.filter((t) => allExecuted.has(t));
|
|
14352
|
+
const missingExpectedTools = expectedTools.filter((t) => !allExecuted.has(t));
|
|
14353
|
+
let status = "NO_EVIDENCE";
|
|
14354
|
+
if (expectedTools.length > 0 && missingExpectedTools.length === 0) {
|
|
14355
|
+
status = "VERIFIED";
|
|
14356
|
+
} else if (executedTools.length > 0) {
|
|
14357
|
+
status = "PARTIAL";
|
|
14358
|
+
}
|
|
14359
|
+
return { skillId, status, expectedTools, executedTools, missingExpectedTools };
|
|
14360
|
+
}
|
|
14247
14361
|
var VALID_REASONING_EFFORTS = /* @__PURE__ */ new Set(["low", "medium", "high", "max"]);
|
|
14248
14362
|
function normalizeReasoningEffort(raw) {
|
|
14249
14363
|
if (!raw) return void 0;
|
|
@@ -15142,7 +15256,7 @@ function resolveVersionFromProposal(changeDir) {
|
|
|
15142
15256
|
const propContent = fs12.readFileSync(proposalFile, "utf-8");
|
|
15143
15257
|
const propFm = propContent.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
15144
15258
|
if (!propFm) return "1.0.0";
|
|
15145
|
-
const parsedProp =
|
|
15259
|
+
const parsedProp = yaml3__default.load(propFm[1]);
|
|
15146
15260
|
return parsedProp?.version ? String(parsedProp.version) : "1.0.0";
|
|
15147
15261
|
}
|
|
15148
15262
|
function resolveChangeVersion(fm, changeDir) {
|
|
@@ -15161,7 +15275,7 @@ function parseTasksFrontmatter(tasksFile) {
|
|
|
15161
15275
|
const content = fs12.readFileSync(tasksFile, "utf-8");
|
|
15162
15276
|
const fmMatch = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
15163
15277
|
if (!fmMatch) return null;
|
|
15164
|
-
const fm =
|
|
15278
|
+
const fm = yaml3__default.load(fmMatch[1]);
|
|
15165
15279
|
return fm && Array.isArray(fm.tasks) ? fm : null;
|
|
15166
15280
|
} catch {
|
|
15167
15281
|
return null;
|
|
@@ -16104,7 +16218,7 @@ function extractFrontmatter2(fileContent) {
|
|
|
16104
16218
|
const match = fileContent.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
16105
16219
|
if (!match) return null;
|
|
16106
16220
|
try {
|
|
16107
|
-
return
|
|
16221
|
+
return yaml3__default.load(match[1]) || null;
|
|
16108
16222
|
} catch {
|
|
16109
16223
|
return null;
|
|
16110
16224
|
}
|
|
@@ -19073,6 +19187,149 @@ function formatAisdlcVersionOutput(rootDir = process.cwd()) {
|
|
|
19073
19187
|
return `${installed} (repo: ${manifest.version} \u2014 differs from installed CLI)`;
|
|
19074
19188
|
}
|
|
19075
19189
|
|
|
19190
|
+
// src/init/skill-references.ts
|
|
19191
|
+
var SKILL_REFERENCES = {
|
|
19192
|
+
"aisdlc-greenfield": [
|
|
19193
|
+
{
|
|
19194
|
+
filename: "inception-checklist.md",
|
|
19195
|
+
content: `# Greenfield Inception Quick Reference
|
|
19196
|
+
|
|
19197
|
+
## Phase 0 Discovery Interview (Up to 15 Questions)
|
|
19198
|
+
1. **Mission & Problem**: Core business problem and measurable success criteria.
|
|
19199
|
+
2. **Primary Actors (\`ACT-*\`)**: Human roles and external systems.
|
|
19200
|
+
3. **Interaction Modality (\`ARCH-INTRO-001\`)**: Web UI, Desktop GUI, Console/TUI/CLI, Mobile, or Headless API/SDK (never library-only when human actors exist).
|
|
19201
|
+
4. **Delivery & Operation Model**: Cloud SaaS, Self-Hosted/On-Premise, Local Desktop/CLI, or SDK package.
|
|
19202
|
+
5. **Visual Aesthetic Standard**: Bootstrap 5-style responsive Web, modern rounded/elevated Desktop, or colorized rich Console/TUI.
|
|
19203
|
+
6. **Master Data CRUD**: Foundational catalogs/entities needed to operate core flows without manual DB seeding.
|
|
19204
|
+
7. **MVP Use Cases (\`UC-*\`) & Quality Goals (\`QR-*\`)**: Strict MVP core vs. roadmap backlog.
|
|
19205
|
+
|
|
19206
|
+
## Upstream Artifact Chain
|
|
19207
|
+
\`ARCH-INTRO-001\` -> \`ACT-*\` / \`JRN-*\` / \`UC-*\` / \`BR-*\` / \`FR-*\` / \`QR-*\` -> \`agent-expert-user\` (Design Mode) -> \`ACT-THREAT-*\` / \`ABUSE-*\` / \`SEC-REQ-*\` -> \`DATA-ASSET-*\` / \`PRIV-ROPA-*\` / \`PRIV-REQ-*\` -> \`CMP-*\` / \`ARCH-DEP-001\` / \`ADR-*\` -> Checkpoint 1 (\`agent-auditor\` || \`agent-adversary\`).
|
|
19208
|
+
`
|
|
19209
|
+
}
|
|
19210
|
+
],
|
|
19211
|
+
"aisdlc-legacy-onboarding": [
|
|
19212
|
+
{
|
|
19213
|
+
filename: "retro-inception-and-strangler.md",
|
|
19214
|
+
content: `# Legacy / Brownfield Retro-Inception Reference
|
|
19215
|
+
|
|
19216
|
+
## Read-Only Baseline Audit Commands
|
|
19217
|
+
- Licenses & AST Quality: \`npx aisdlc verify licenses\` and \`npx aisdlc report quality\`
|
|
19218
|
+
- Secrets & SAST: \`npx aisdlc verify security\` (exit code 4 = halt & rotate secrets immediately)
|
|
19219
|
+
- Privacy & PII: \`npx aisdlc verify privacy\` (exit code 5 = PII in logs/prompts/seeds)
|
|
19220
|
+
|
|
19221
|
+
## Bounded Retro-Inception Rules
|
|
19222
|
+
- Document only the system boundary (\`ARCH-INTRO-001\`, core \`CMP-*\`) and the specific domain under active evolution (\`UC-*\`, \`FR-*\`).
|
|
19223
|
+
- **Zero Drive-By Rewrites**: Never mass-refactor untouched legacy modules. Apply the Strangler / Boy Scout rule via governed SDD tasks (\`TSK-*\`).
|
|
19224
|
+
- **Characterization First**: Capture existing behavior in \`FR-*\` Gherkin scenarios before modifying logic.
|
|
19225
|
+
`
|
|
19226
|
+
}
|
|
19227
|
+
],
|
|
19228
|
+
"aisdlc-increment": [
|
|
19229
|
+
{
|
|
19230
|
+
filename: "sdd-lifecycle-and-gates.md",
|
|
19231
|
+
content: `# SDD Increment & 12 Quality Gates Reference
|
|
19232
|
+
|
|
19233
|
+
## Friction Profiles & Anti-Bypass Paths
|
|
19234
|
+
- \`patch\`: <= 2 source files, zero Anti-Bypass paths (\`spec.md\` only).
|
|
19235
|
+
- \`standard\`: Functional increments, new/updated \`UC-*\` / \`FR-*\` (\`proposal.md\`, \`spec.md\`, \`design.md\`, \`tasks.md\`, \`handoff.yaml\`).
|
|
19236
|
+
- \`critical\`: Security enclaves (\`SEC-ENC-*\`), special-category PII (\`DPIA-*\`), schemas, migrations.
|
|
19237
|
+
- **Anti-Bypass Paths** (never \`patch\`): \`schemas/\`, \`specs/security/\`, \`specs/privacy/\`, \`packages/security/\`, \`SEC-ENC-*\`, \`09_decisions/\`, \`migrations/\`, \`*-policy.yaml\`.
|
|
19238
|
+
|
|
19239
|
+
## 4-Tier Git Hierarchy & Trailers
|
|
19240
|
+
\`task/<PARENT-ID>/<TSK-ID>-<slug>\` -> \`feat/<CHG-ID>-<slug>\` -> \`release/vX.Y.Z\` -> \`main\`
|
|
19241
|
+
Commit trailers: \`Author-Type: agent\`, \`AI-Model: <model>\`, \`AI-Reasoning-Effort: <level>\`, \`Task-ID: TSK-XXX\`, \`Change-ID: CHG-XXX\`.
|
|
19242
|
+
|
|
19243
|
+
## Single-Use-Case Rule
|
|
19244
|
+
Enforce \`1 UC-* = 1 CHG-*\` and 100% coverage of \`design.md\` & \`handoff.yaml\` in \`tasks.md\`.
|
|
19245
|
+
`
|
|
19246
|
+
}
|
|
19247
|
+
],
|
|
19248
|
+
"aisdlc-inspector": [
|
|
19249
|
+
{
|
|
19250
|
+
filename: "traceability-graph-legend.md",
|
|
19251
|
+
content: `# 360\xB0 Traceability Graph Legend
|
|
19252
|
+
|
|
19253
|
+
## Node Statuses
|
|
19254
|
+
- \`COMPLIANT\`: All upstream citations and downstream test/code links are valid and drift-free.
|
|
19255
|
+
- \`ORPHAN\`: Missing upstream justification or downstream implementation/verification link.
|
|
19256
|
+
- \`DRIFT\`: Upstream SHA-256 citation digest no longer matches the referenced artifact.
|
|
19257
|
+
|
|
19258
|
+
## UX Rule (Report First, Question After)
|
|
19259
|
+
Always render the full technical report (Header, File Location, Summary, Upstream \u2197\uFE0F, Downstream \u2198\uFE0F, Numbered Items) before prompting for the next navigation step.
|
|
19260
|
+
`
|
|
19261
|
+
}
|
|
19262
|
+
],
|
|
19263
|
+
"aisdlc-doctor-migrate": [
|
|
19264
|
+
{
|
|
19265
|
+
filename: "migrate-safety-and-ratchet.md",
|
|
19266
|
+
content: `# Doctor & Migrate Safety Reference
|
|
19267
|
+
|
|
19268
|
+
## Migration File Classifications
|
|
19269
|
+
- \`UP_TO_DATE\`: Local file matches canonical SHA-256 (LF-normalized).
|
|
19270
|
+
- \`CLEAN_UPDATE\`: Local file matches base or is missing; safely updated/created.
|
|
19271
|
+
- \`LOCAL_OVERRIDE_PRESERVED\`: Local customization detected; preserved with exit code \`1\` unless \`--force\` is passed.
|
|
19272
|
+
- \`CONFLICT\`: Structural corruption detected (exit code \`2\`).
|
|
19273
|
+
|
|
19274
|
+
## Safety Guardrails
|
|
19275
|
+
- Mutating migrations are blocked on protected branches (\`main\`, \`master\`, \`release/*\`) with \`ERR_PROTECTED_BRANCH_MIGRATION\`.
|
|
19276
|
+
- Backups are written to \`.backup/migration-<timestamp>-<rand>/\` with automatic rollback on failure.
|
|
19277
|
+
- Policy Ratchet blocks relaxing stricter thresholds in \`quality-policy.yaml\` / \`privacy-policy.yaml\` without \`--allow-policy-downgrade\`.
|
|
19278
|
+
`
|
|
19279
|
+
}
|
|
19280
|
+
],
|
|
19281
|
+
"aisdlc-release-compliance": [
|
|
19282
|
+
{
|
|
19283
|
+
filename: "regulatory-bundles-and-semver.md",
|
|
19284
|
+
content: `# Release Compliance & SemVer Reference
|
|
19285
|
+
|
|
19286
|
+
## Regulatory Compliance Evidence Bundle
|
|
19287
|
+
\`npx aisdlc report compliance --strict --offline\` generates \`reports/audit-evidence-bundle.json\` mapping all 12 Quality Gates to EU AI Act, ISO 42001, NIST SSDF, OSCAL, and in-toto provenance.
|
|
19288
|
+
|
|
19289
|
+
## Highest-Precedence SemVer Rule
|
|
19290
|
+
When consolidating multiple increments in a single release or PR, apply **only one** version bump matching the highest friction profile:
|
|
19291
|
+
\`critical\` (Major \`X.0.0\`) > \`standard\` (Minor \`x.Y.0\`) > \`patch\` (Patch \`x.y.Z\`).
|
|
19292
|
+
`
|
|
19293
|
+
}
|
|
19294
|
+
],
|
|
19295
|
+
"aisdlc-security-sca-triage": [
|
|
19296
|
+
{
|
|
19297
|
+
filename: "security-and-license-gates.md",
|
|
19298
|
+
content: `# Security, Privacy & License Triage Reference
|
|
19299
|
+
|
|
19300
|
+
## Deterministic Exit Codes
|
|
19301
|
+
- Exit Code \`4\`: Gate 11 (Secrets) or Gate 12 (SAST) CRITICAL/HIGH failure.
|
|
19302
|
+
- Exit Code \`5\`: Gate 8 (Privacy/PII) CRITICAL/HIGH failure.
|
|
19303
|
+
|
|
19304
|
+
## SPDX License Policy Categories (\`license-policy.yaml\`)
|
|
19305
|
+
- \`ALLOW\`: \`MIT\`, \`Apache-2.0\`, \`BSD-2-Clause\`, \`BSD-3-Clause\`, \`ISC\`, \`Unlicense\`, \`CC0-1.0\`, \`0BSD\`.
|
|
19306
|
+
- \`REVIEW_REQUIRED\`: Weak copyleft (\`LGPL-*\`, \`MPL-2.0\`, \`EPL-2.0\`).
|
|
19307
|
+
- \`DENY\`: Strong viral copyleft (\`GPL-*\`, \`AGPL-*\`).
|
|
19308
|
+
- \`COMMERCIAL_APPROVAL_REQUIRED\`: \`SSPL-1.0\`, \`BSL-1.1\`.
|
|
19309
|
+
`
|
|
19310
|
+
}
|
|
19311
|
+
],
|
|
19312
|
+
"aisdlc-bdd-gherkin": [
|
|
19313
|
+
{
|
|
19314
|
+
filename: "gherkin-polyglot-matrix.md",
|
|
19315
|
+
content: `# Deterministic Polyglot Gherkin Matrix
|
|
19316
|
+
|
|
19317
|
+
## Supported Step Scaffolding Targets (\`--lang\`)
|
|
19318
|
+
- \`ts\`: TypeScript (Vitest / Cucumber)
|
|
19319
|
+
- \`py\`: Python (pytest-bdd / behave)
|
|
19320
|
+
- \`go\`: Go (godog)
|
|
19321
|
+
- \`rs\`: Rust (cucumber-rs)
|
|
19322
|
+
- \`cs\`: C# / .NET (Reqnroll / SpecFlow)
|
|
19323
|
+
|
|
19324
|
+
## Mandatory Commands
|
|
19325
|
+
1. Extract: \`npx aisdlc gherkin extract --all\`
|
|
19326
|
+
2. Scaffold RED steps: \`npx aisdlc gherkin scaffold <feature-file> --lang <lang> --fallback\`
|
|
19327
|
+
3. Verify sync: \`npx aisdlc verify gherkin\`
|
|
19328
|
+
`
|
|
19329
|
+
}
|
|
19330
|
+
]
|
|
19331
|
+
};
|
|
19332
|
+
|
|
19076
19333
|
// src/init/agent-templates.ts
|
|
19077
19334
|
var SPECIALIZED_AGENT_TEMPLATES = [
|
|
19078
19335
|
{
|
|
@@ -19451,8 +19708,54 @@ var LIFECYCLE_SKILL_TEMPLATES = [
|
|
|
19451
19708
|
references: "[`process/06_spec_driven_development.md`](../../process/06_spec_driven_development.md), [`process/08_citation_contract_and_drift.md`](../../process/08_citation_contract_and_drift.md), and [`process/10_quality_management_and_release_gates.md`](../../process/10_quality_management_and_release_gates.md).",
|
|
19452
19709
|
globs: "specs/**, architecture/**, src/**, packages/**, tests/**",
|
|
19453
19710
|
body: '## Purpose & Trigger\nUse this skill whenever a user or agent requests to **inspect, explain, trace, or navigate** any element of the system:\n- **Requirements & Product:** `UC-*`, `FR-*`, `QR-*`, `BR-*`, `BC-*`, `ABUSE-*`, `DATA-ASSET-*`, `PRIV-ROPA-*`, `ARCH-INTRO-*`.\n- **Architecture & Decisions:** `CMP-*`, `ADR-*`, `SEC-ENC-*`.\n- **SDD & Tasks:** `TSK-*`, `CHG-*`, `HOF-*`.\n- **Source Code Files:** `src/**/*.ts`, `packages/**/*.ts`, etc.\n- **Verification Suites:** `.feature` BDD files, unit/integration specs.\n\nThis skill provides **impact analysis, context comprehension, and interactive graph exploration** with zero guesswork.\n\n---\n\n## Interactive Execution Playbook\n\n### Step 1: Target Resolution\n1. Extract the target identifier or file path indicated by the user (e.g., `FR-001`, `CMP-CORE`, `src/auth/jwt.ts`, `TSK-001`).\n2. If no target was specified, prompt the user with common anchor options (e.g., primary Use Cases `UC-*`, Core Components `CMP-*`, or an open input).\n\n### Step 2: Deterministic Inspection Engine\nExecute the inspection via MCP or CLI:\n* **Primary (MCP Tool):**\n Invoke MCP tool `inspect_element`:\n ```json\n {\n "query": "<target-id-or-path>"\n }\n ```\n* **Fallback (CLI):**\n Run command:\n ```bash\n npx aisdlc inspect "<target-id-or-path>" --json\n ```\n\n---\n\n### Step 3: Complete Technical Report Delivery (MANDATORY FIRST)\n> [!IMPORTANT]\n> **CRITICAL UX DIRECTIVE (Report First, Question After):**\n> The agent MUST always render and deliver the complete, detailed technical report to the user in visible text **BEFORE** prompting for the next element. Never invoke a blocking dialog or selector on an empty turn without the user having the full inspection visible.\n\nThe rendered response MUST contain:\n1. **Header:** Artifact ID, Title, Type (`requirement`, `component`, `source-file`, `task`), Layer (`product`, `architecture`, `code`, `test`, `governance`), and Status (`COMPLIANT`, `ORPHAN`, `DRIFT`).\n2. **File Location:** Clickable markdown link to the file.\n3. **Technical Summary:** Concise explanation (2\u20134 sentences) of what the element does, its responsibilities, key interfaces, and consolidated evolutionary increments (`### Incremento (CHG-*)`). If a canonical requirement still shows boilerplate text despite completed changes in `specs/changes/`, run `sdd_integrate` with `all: true` (`npx aisdlc sdd integrate --all`) first so canonical requirements reflect the consolidated specification.\n4. **Upstream Relations (Derives from / Mitigates / Governed by):**\n - \u2197\uFE0F List all parent requirements, use cases, business rules, or decisions that justify this element.\n5. **Downstream Relations (Satisfied by / Implemented in / Verified by):**\n - \u2198\uFE0F List all components implementing it, tasks developing it, and test suites validating it.\n6. **Numbered Navigable Items:** Clear, numbered list of connected nodes with their ID, type, and relationship.\n\n---\n\n### Step 4: Subsequent Navigation Formulation & Selector\nOnce the technical report is fully constructed:\n1. Formulate the closing question inviting the user to continue navigating the graph.\n2. If using the interactive selector (`ask_question`), execute it **in conjunction with or immediately following the complete report text**:\n * **Question:** *"\xBFHacia qu\xE9 elemento conectado deseas continuar la exploraci\xF3n?"*\n * **Options:** Formatted list of related elements from `relatedItems`:\n - `(Recommended) <ID-1> (<Type-1> \u2014 <relation-1>)`\n - `<ID-2> (<Type-2> \u2014 <relation-2>)`\n - `<ID-N> (<Type-N> \u2014 <relation-N>)`\n - `Terminar exploraci\xF3n`\n3. **Navigation Loop:**\n - When the user selects or indicates an element (either via UI selector or plain text/number), repeat **Step 2** with the new selection.\n - If the user selects `Terminar exploraci\xF3n`, summarize the traversal journey and conclude.'
|
|
19711
|
+
},
|
|
19712
|
+
{
|
|
19713
|
+
id: "aisdlc-doctor-migrate",
|
|
19714
|
+
title: "Environment Diagnostics & Framework Migration Playbook",
|
|
19715
|
+
description: "Diagnose AI-SDLC environment health, git hooks, and security tools (aisdlc doctor), synchronize IDE agent configs (aisdlc sync), and safely upgrade schemas, templates, policies, and skills (aisdlc migrate) with backup and policy-ratchet protection.",
|
|
19716
|
+
references: "[`process/09_agent_protocols.md`](../../process/09_agent_protocols.md) and [`process/10_quality_management_and_release_gates.md`](../../process/10_quality_management_and_release_gates.md).",
|
|
19717
|
+
globs: ".aisdlc.json, schemas/**, templates/**, *-policy.yaml, .agent/**, .claude/**, .cursor/**",
|
|
19718
|
+
body: "## Purpose & Trigger\nUse this skill whenever the user asks to **diagnose the AI-SDLC setup, repair git hooks, check installed security/SCA tools, synchronize IDE configs, or upgrade/migrate schemas, templates, policies, and skills**.\n\n## End-to-End Execution Playbook\n\n### Step 1: Environment & Toolchain Diagnostics (`aisdlc doctor`)\n1. Run MCP tool `doctor` or CLI `npx aisdlc doctor --json` (use `--offline` in air-gapped environments, `--strict` in CI).\n2. Inspect checks for: Node.js LTS, Git branch safety (never on `main`/`master`/`release/*`), Git hooks (`pre-commit`, `prepare-commit-msg`), schemas/PDaC integrity, and external security/SCA binaries (`gitleaks`, `semgrep`, `trivy`, `syft`).\n3. If hooks are missing or broken, run `npx aisdlc doctor --fix` (or `npx aisdlc git hook install`).\n\n### Step 2: Safe Framework Migration (`aisdlc migrate`)\n1. **Protected Branch Guard**: Never run mutating migrations on `main`, `master`, or `release/*`. Switch to a working branch first.\n2. **Preview First**: Always run MCP tool `migrate` with `dryRun: true` (`npx aisdlc migrate --dry-run --json`) to inspect `upToDate`, `cleanUpdated`, `overridesPreserved`, and `conflicts`.\n3. **Execute Migration**: Run `npx aisdlc migrate` (creates `.backup/migration-<timestamp>/` automatically). Local customizations are preserved (`LOCAL_OVERRIDE_PRESERVED`, exit code `1`) unless `--force` is explicitly requested.\n4. **Policy Ratchet Guard**: `migrate` blocks relaxing stricter local thresholds in `quality-policy.yaml` / `privacy-policy.yaml` unless `--allow-policy-downgrade` is explicitly authorized by a human Tech Lead.\n\n### Step 3: IDE Agent Config Synchronization (`aisdlc sync`)\n1. To refresh `.agent/`, `.claude/`, `.cursor/`, `.github/agents/`, and MCP configs without touching `specs/` or `src/`, run `npx aisdlc sync` (or `npx aisdlc sync --agents antigravity,cursor`)."
|
|
19719
|
+
},
|
|
19720
|
+
{
|
|
19721
|
+
id: "aisdlc-release-compliance",
|
|
19722
|
+
title: "Release Consolidation, SemVer & Regulatory Compliance Playbook",
|
|
19723
|
+
description: "Consolidate release milestones (release/vX.Y.Z), compute release KPIs (kpi_release), generate CycloneDX SBOMs and THIRD_PARTY_NOTICES.md, build Regulatory Compliance Evidence Bundles (EU AI Act, ISO 42001, NIST SSDF, OSCAL, in-toto), and apply highest-precedence SemVer promotion.",
|
|
19724
|
+
references: "[`process/10_quality_management_and_release_gates.md`](../../process/10_quality_management_and_release_gates.md) and [`process/11_git_branching_and_lifecycle.md`](../../process/11_git_branching_and_lifecycle.md).",
|
|
19725
|
+
globs: "reports/**, compliance/**, .changeset/**, package.json",
|
|
19726
|
+
body: "## Purpose & Trigger\nUse this skill when **closing a release milestone (`release/vX.Y.Z`), preparing a regulatory/audit evidence bundle, generating SBOM/legal notices, or calculating consolidated SemVer bumps**.\n\n## End-to-End Execution Playbook\n\n### Step 1: Consolidated Quality, License & Supply Chain Verification\n1. Run `npx aisdlc verify all` to confirm all 12 Quality Gates pass.\n2. Generate CycloneDX 1.5 SBOM and legal attributions: `npx aisdlc verify licenses --sbom reports/sbom.cdx.json --notices THIRD_PARTY_NOTICES.md`.\n\n### Step 2: Regulatory Compliance Evidence Bundle\n1. Generate the deterministic evidence bundle (EU AI Act, ISO 42001, NIST SSDF, OSCAL, in-toto provenance) via `npx aisdlc report compliance --strict --offline` (use `--dry-run` to preview, `--keyless` for OIDC attestation claims).\n2. Verify `reports/audit-evidence-bundle.json` is valid and free of unmasked PII/secrets (DLP sanitized).\n\n### Step 3: Release KPIs, Reports & Highest-Precedence SemVer\n1. Compute release KPIs and DIR/rework metrics via MCP tool `kpi_release` (`npx aisdlc kpi release --release release/vX.Y.Z --base main`).\n2. Regenerate canonical reports (`report_quality`, `report_dashboard`) on the release branch.\n3. **Highest-Precedence SemVer Rule**: When consolidating multiple increments in a single release/PR, apply **ONLY one version bump** matching the highest friction profile (`critical` = Major, `standard` = Minor, `patch` = Patch).\n4. Open the Release PR for human Tech Lead approval and SemVer tagging (never auto-approve or auto-merge)."
|
|
19727
|
+
},
|
|
19728
|
+
{
|
|
19729
|
+
id: "aisdlc-security-sca-triage",
|
|
19730
|
+
title: "Security, SAST, Secrets & SCA License Triage Playbook",
|
|
19731
|
+
description: "Triage and remediate failures from Gate 7 (SCA Licenses & Vulnerabilities), Gate 8 (Privacy/PII), Gate 11 (Secrets), and Gate 12 (SAST), including native SARIF/SBOM ingestion (--sarif, --orchestrate, --sbom-input) and audited security suppressions.",
|
|
19732
|
+
references: "[`process/03_security_by_design.md`](../../process/03_security_by_design.md), [`process/04_open_source_license_compliance.md`](../../process/04_open_source_license_compliance.md), and [`process/07_security_and_license_validation.md`](../../process/07_security_and_license_validation.md).",
|
|
19733
|
+
globs: "security/**, specs/security/**, license-policy.yaml, privacy-policy.yaml, compliance/**",
|
|
19734
|
+
body: "## Purpose & Trigger\nUse this skill when **a security, secrets, privacy, or license gate fails** (e.g., exit code `4` for security/secrets or `5` for privacy), when **ingesting external SARIF/SBOM reports**, or when **evaluating commercial/copyleft dependency exceptions**.\n\n## End-to-End Execution Playbook\n\n### Step 1: Secrets & SAST Triage (Exit Code 4)\n1. Run `npx aisdlc verify security --diff --format sarif -o reports/security.sarif` (add `--gitleaks` or `--semgrep` if native binaries are installed).\n2. For polyglot repositories, run `npx aisdlc verify sast --orchestrate` or ingest external OASIS SARIF v2.1.0 files via `npx aisdlc verify sast --sarif <path...>`.\n3. **Immediate Secret Remediation**: If real credentials are detected, halt feature work, rotate the secret, and remove it from code/history.\n4. **Audited Suppressions**: Never silence findings with inline linter disables. False positives require an audited suppression entry with justification and expiration reviewed by `agent-adversary` / human Tech Lead.\n\n### Step 2: Privacy & PII Triage (Exit Code 5)\n1. Run `npx aisdlc verify privacy --ropa-report reports/ROPA_INVENTORY.md --report reports/PRIVACY_SCAN_REPORT.md`.\n2. Eliminate PII from logs/telemetry/LLM prompts (`[REDACTED]`), ensure `DATA-ASSET-*` and `PRIV-ROPA-*` exist, and escalate `RESTRICTED_SENSITIVE_PII` to a `DPIA-*` request.\n\n### Step 3: SCA License & CVE Triage\n1. Run `npx aisdlc verify licenses --vuln --depth transitive` (or ingest an air-gapped CycloneDX/SPDX SBOM via `--sbom-input <path>`).\n2. Block `GPL`/`AGPL` (viral) and `BSL`/`SSPL` (commercial) unless a human-approved `templates/compliance/commercial-acquisition-request.template.md` authorization is recorded."
|
|
19735
|
+
},
|
|
19736
|
+
{
|
|
19737
|
+
id: "aisdlc-bdd-gherkin",
|
|
19738
|
+
title: "Deterministic BDD & Polyglot Gherkin Scaffolding Playbook",
|
|
19739
|
+
description: "Extract canonical .feature files from Markdown specifications (aisdlc gherkin extract), scaffold failing RED step definitions across TypeScript, Python, Go, Rust, and C# (aisdlc gherkin scaffold), and enforce deterministic BDD synchronization (aisdlc verify gherkin).",
|
|
19740
|
+
references: "[`process/06_spec_driven_development.md`](../../process/06_spec_driven_development.md) and [`process/10_quality_management_and_release_gates.md`](../../process/10_quality_management_and_release_gates.md).",
|
|
19741
|
+
globs: "tests/features/**, tests/steps/**, specs/**",
|
|
19742
|
+
body: "## Purpose & Trigger\nUse this skill whenever **authoring BDD acceptance criteria, extracting `.feature` files, or scaffolding RED step definitions** in TypeScript, Python, Go, Rust, or C#.\n\n## End-to-End Execution Playbook\n\n### Step 1: Author Gherkin Inside Markdown Specs\n1. Never create or edit `tests/features/*.feature` files manually.\n2. Author ```gherkin blocks inside `FR-*`, `SEC-REQ-*`, `PRIV-REQ-*`, or `specs/changes/active/<chg-id>/spec.md` with tags `@<ID> @automated @regression` and `@nominal`, `@boundary`, `@invalid` scenarios.\n\n### Step 2: Deterministic Extraction & Polyglot Step Scaffolding\n1. Run `npx aisdlc gherkin extract --all` (or `npx aisdlc check --fix`) to generate `tests/features/*.feature` deterministically.\n2. Scaffold failing RED step definitions in `tests/steps/` via:\n `npx aisdlc gherkin scaffold <feature-file> --lang <ts|py|go|rs|cs> --fallback`\n (omit `--fallback` when the native BDD generator is installed).\n3. Implement real failing assertions inside the scaffolded step files.\n\n### Step 3: Synchronization Gate\n1. Run `npx aisdlc verify gherkin` and `npx aisdlc verify testing` to confirm 100% Markdown-to-`.feature` parity and scenario coverage."
|
|
19454
19743
|
}
|
|
19455
19744
|
];
|
|
19745
|
+
function formatSkillReferencesSection(skillId) {
|
|
19746
|
+
const refs = SKILL_REFERENCES[skillId];
|
|
19747
|
+
if (!refs || refs.length === 0) return "";
|
|
19748
|
+
const links = refs.map((r) => `- [\`${r.filename}\`](./references/${r.filename})`).join("\n");
|
|
19749
|
+
return `
|
|
19750
|
+
## Self-Contained References
|
|
19751
|
+
${links}
|
|
19752
|
+
`;
|
|
19753
|
+
}
|
|
19754
|
+
function formatInlineSkillReferences(skillId) {
|
|
19755
|
+
const refs = SKILL_REFERENCES[skillId];
|
|
19756
|
+
if (!refs || refs.length === 0) return "";
|
|
19757
|
+
return "\n" + refs.map((r) => r.content.trim()).join("\n\n") + "\n";
|
|
19758
|
+
}
|
|
19456
19759
|
function renderAntigravitySkillFile(skill) {
|
|
19457
19760
|
return `---
|
|
19458
19761
|
name: ${skill.id}
|
|
@@ -19464,7 +19767,7 @@ description: >-
|
|
|
19464
19767
|
|
|
19465
19768
|
Canonical Reference: ${skill.references}
|
|
19466
19769
|
|
|
19467
|
-
${skill.body}
|
|
19770
|
+
${skill.body}${formatSkillReferencesSection(skill.id)}
|
|
19468
19771
|
`;
|
|
19469
19772
|
}
|
|
19470
19773
|
function renderCursorSkillFile(skill) {
|
|
@@ -19479,7 +19782,7 @@ alwaysApply: false
|
|
|
19479
19782
|
|
|
19480
19783
|
Canonical Reference: ${skill.references}
|
|
19481
19784
|
|
|
19482
|
-
${skill.body}
|
|
19785
|
+
${skill.body}${formatInlineSkillReferences(skill.id)}
|
|
19483
19786
|
`;
|
|
19484
19787
|
}
|
|
19485
19788
|
function renderClaudeSkillFile(skill) {
|
|
@@ -19492,7 +19795,7 @@ description: ${skill.description}
|
|
|
19492
19795
|
|
|
19493
19796
|
Canonical Reference: ${skill.references}
|
|
19494
19797
|
|
|
19495
|
-
${skill.body}
|
|
19798
|
+
${skill.body}${formatSkillReferencesSection(skill.id)}
|
|
19496
19799
|
`;
|
|
19497
19800
|
}
|
|
19498
19801
|
function renderCopilotSkillFile(skill) {
|
|
@@ -19505,7 +19808,7 @@ description: ${skill.description}
|
|
|
19505
19808
|
|
|
19506
19809
|
Canonical Reference: ${skill.references}
|
|
19507
19810
|
|
|
19508
|
-
${skill.body}
|
|
19811
|
+
${skill.body}${formatInlineSkillReferences(skill.id)}
|
|
19509
19812
|
`;
|
|
19510
19813
|
}
|
|
19511
19814
|
var STARTER_ANTIGRAVITY_RULES = `# Google Antigravity & Gemini CLI Rules - AI-SDLC Framework
|
|
@@ -19526,100 +19829,31 @@ This file defines the operational rules and specialized role mappings for Google
|
|
|
19526
19829
|
|
|
19527
19830
|
---
|
|
19528
19831
|
|
|
19529
|
-
## 2. Specialized Roles Mapping
|
|
19530
|
-
|
|
19531
|
-
|
|
19532
|
-
|
|
19533
|
-
-
|
|
19534
|
-
-
|
|
19535
|
-
-
|
|
19536
|
-
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
### 2. \`agent-threat-modeler\` (Threat Modeler and Security Specialist)
|
|
19544
|
-
- **Mission**: Analyze use cases and proactively model adversaries, STRIDE attack vectors, and OWASP ASVS mitigations, both at product level and in the technical security feedback loop over architecture.
|
|
19545
|
-
- **Input**: Use cases \`UC-*\`, functional requirements \`FR-*\`, or architecture components (\`CMP-*\`, Mermaid diagrams, ADRs).
|
|
19546
|
-
- **Output**: Cybersecurity triad (\`ACT-THREAT-*\`, \`ABUSE-*\`, \`SEC-REQ-*\`) compliant with \`schemas/security/\`, followed by handoff to \`agent-privacy-officer\`.
|
|
19547
|
-
- **Guardrails**:
|
|
19548
|
-
- \`status\` always starts in \`draft\`.
|
|
19549
|
-
- Negative BDD attack and rejection scenarios tagged with \`@security @mitigation\`.
|
|
19550
|
-
- Assignment of Zero Trust enclaves \`SEC-ENC-*\`.
|
|
19551
|
-
|
|
19552
|
-
### 3. \`agent-privacy-officer\` (Data Protection & Privacy-by-Design Specialist)
|
|
19553
|
-
- **Mission**: Receive handoff from \`agent-threat-modeler\` to model personal data assets (\`DATA-ASSET-*\`), GDPR Art. 30 processing activities (\`PRIV-ROPA-*\`), and LINDDUN / GDPR / ISO 27701 privacy requirements (\`PRIV-REQ-*\`), and audit PR diffs against \`privacy-policy.yaml\`.
|
|
19554
|
-
- **Output**: Privacy triad (\`DATA-ASSET-*\`, \`PRIV-ROPA-*\`, \`PRIV-REQ-*\`) in \`specs/privacy/\` compliant with \`schemas/privacy/\`, and \`DPIA-*\` requests when Art. 9 sensitive data is detected.
|
|
19555
|
-
- **Guardrails**:
|
|
19556
|
-
- \`status\` always starts in \`draft\`.
|
|
19557
|
-
- Every \`PRIV-REQ-*\` includes Gherkin scenarios tagged with \`@<PRIV-REQ-ID> @privacy @gdpr @automated @regression\`.
|
|
19558
|
-
- Run \`pnpm run verify:privacy\` to block PII in logs/prompts and enforce ROPA & retention/erasure policies.
|
|
19559
|
-
|
|
19560
|
-
### 4. \`agent-system-architect\` (System Architect)
|
|
19561
|
-
- **Mission**: Translate the approved product definition into a modular technical architecture based on arc42 enriched with NAF v4.
|
|
19562
|
-
- **Output**: Architecture components (\`CMP-*\`), Mermaid diagrams, and immutable \`ADR-*\` records compliant with \`schemas/architecture/\`.
|
|
19563
|
-
- **Guardrails**:
|
|
19564
|
-
- Every \`CMP-*\` must declare \`satisfies-requirements\` linking \`FR-*\`, \`QR-*\`, \`SEC-REQ-*\`, and \`PRIV-REQ-*\`, and structure modules following **Modular & Hexagonal Architecture (Ports & Adapters)** (Domain/Application Core + Inbound/Outbound Ports, enforcing the Dependency Rule).
|
|
19565
|
-
- **No Orphan Presentation Components (\`CMP-WEB-*\` / \`CMP-UI-*\` / \`CMP-CLI-*\`)**: Never leave a presentation driving adapter unmapped in \`tasks.md\` while scheduling only backend class-library tasks. Wave 0 (\`CHG-001\`) must bootstrap the runnable host shell for the agreed UI modality (Web, Desktop, or Console/CLI) when human actors exist, and every human-facing \`CHG-*\` must deliver its vertical slice end-to-end (Domain + Persistence + Agreed UI/CLI Adapter + E2E).
|
|
19566
|
-
- Emit a return handoff to \`agent-threat-modeler\` (chaining to \`agent-privacy-officer\`) in the technical security/privacy feedback loop when infrastructure or persistence decisions introduce new attack vectors or PII flows.
|
|
19567
|
-
|
|
19568
|
-
### 5. \`agent-qa-engineer\` (QA Engineer and SDET)
|
|
19569
|
-
- **Mission**: Translate approved requirements (\`FR-*\`, \`SEC-REQ-*\`, \`PRIV-REQ-*\`, \`QR-*\`) into comprehensive FAILING (red) BDD/Gherkin, End-to-End (E2E), UI, and unit test suites, before \`agent-developer\` writes production code.
|
|
19570
|
-
- **Input**: Approved requirements from the \`handoff.yaml\` sidecar (\`HOF-*\`).
|
|
19571
|
-
- **Output**: Failing Gherkin, E2E, and UI test suites covering: nominal case, boundary cases, out-of-range cases, per-interactive-element tests (Happy Path, Sad Path, Boundary Values), and conditional categories (security, privacy, performance, idempotency, postconditions, interface contract).
|
|
19572
|
-
- **Guardrails**:
|
|
19573
|
-
- FORBIDDEN to include production code or anticipate implementations.
|
|
19574
|
-
- **Agreed Project Technology**: Always use the testing frameworks, E2E/UI runners, and technology stack agreed upon for the project (if any), without requiring the user to specify it in the prompt.
|
|
19575
|
-
- **Mandatory E2E & UI Testing**: Never forget or omit End-to-End (E2E) and User Interface (UI) tests.
|
|
19576
|
-
- **Per-Interactive-Element Coverage**: Create specific tests for every UI element the user can interact with, using external tools such as Playwright or FlatUI (or the agreed project testing technology), covering Happy Path, Sad Path, and Boundary Values for each one.
|
|
19577
|
-
- Every \`FR-*\` must have at least nominal + boundary + out-of-range scenarios; missing these blocks handoff to \`agent-developer\`.
|
|
19578
|
-
- Mandatory tags: \`@<FR-ID> @automated @regression\`.
|
|
19579
|
-
- Run \`pnpm run verify:testing\` before emitting handoff.
|
|
19580
|
-
|
|
19581
|
-
### 6. \`agent-developer\` (Software Developer)
|
|
19582
|
-
- **Mission**: Implement atomic tasks from SDD specifications (\`tasks.md\`) with clean, strictly typed code and thorough tests.
|
|
19583
|
-
- **Directives**:
|
|
19584
|
-
- **Mandatory 4-Step Implementation Order**: (1) Define/refine Modular & Hexagonal Architecture (Ports & Adapters) module boundaries, (2) Define interfaces/ports for all inter-module interactions to avoid direct module coupling, (3) Implement components consuming/fulfilling those interfaces, (4) Write unit tests for every function covering Happy Path, Sad Path, Boundary Values, and Unexpected/Null/Empty values.
|
|
19585
|
-
- Respect the autonomy mode assigned in \`tasks.md\` (\`AUTONOMOUS\`, \`HUMAN_REVIEW_PLAN\`, \`AMBIGUOUS\`, \`HIGH_RISK_MANUAL\`).
|
|
19586
|
-
- Make tests delivered by \`agent-qa-engineer\` pass green without altering them to accommodate code.
|
|
19587
|
-
- Respect \`quality-policy.yaml\` thresholds: CC $\\le 10$, Cognitive $\\le 15$, MI $\\ge 50$, LOC $\\le 40$.
|
|
19588
|
-
- Run pre-flight with auto-fix: \`pnpm run check:fix\` and full verification: \`pnpm run verify:all\`.
|
|
19589
|
-
- **Mandatory Regression Verification**: Never declare build, typecheck, or bug fixes complete without executing the relevant automated test suite (\`pnpm test\`, \`dotnet test\`) and confirming zero regressions.
|
|
19590
|
-
- **Global Styles Protection**: When touching or refactoring frontend views, verify that global stylesheet/asset imports remain intact and that layouts suffer no visual disruption.
|
|
19591
|
-
- **Skills-First Implementation Directive**: When authoring or refactoring code (especially frontend, UI, styling, accessibility, or framework-specific logic), proactively inspect and leverage available specialized agent skills (e.g., modern web guidance, accessibility a11y, DevTools, framework skills) to produce standard-compliant, modern implementations rather than guessing ad-hoc patterns.
|
|
19592
|
-
- Upon completing green implementation, suggest handoff to \`agent-expert-user\` for post-development functional validation prior to Checkpoint 2 (\`agent-auditor\` $\\parallel$ \`agent-adversary\` + \`agent-privacy-officer\`).
|
|
19593
|
-
|
|
19594
|
-
### 7. \`agent-expert-user\` (Expert User and Domain Evaluator)
|
|
19595
|
-
- **Mission**: Contrast design and specifications (design phase) and functionally validate finished software against \`UC-*\` and \`FR-*\` (post-development phase).
|
|
19596
|
-
- **Directives**:
|
|
19597
|
-
- Design mode (upstream): Adopt the primary actor's profile under stressful field conditions, applying bimodal discrimination (strict MVP core vs. roadmap suggestion backlog in \`templates/product/user-design-feedback.template.md\`). Reject as \`[BLOCKING_DEFECT]\` any library-only MVP proposal for human actors that fails to define or omits the runnable presentation layer (Web, Desktop, or Console/CLI), role access, or master-data CRUD flows.
|
|
19598
|
-
- Functional validation mode (downstream / pre-PR / post-development functional validation): Thoroughly contrast interface and actual CLI execution against \`UC-*\` and \`FR-*\` acceptance criteria before Checkpoint 2 audit.
|
|
19599
|
-
- Emit handoff block suggesting Checkpoint 2 (\`agent-auditor\` $\\parallel$ \`agent-adversary\` + \`agent-privacy-officer\`) if compliant, or return to \`agent-developer\` on functional drift.
|
|
19600
|
-
|
|
19601
|
-
### 8. \`agent-devops\` (Automation and Infrastructure Engineer)
|
|
19602
|
-
- **Mission**: Maintain, evolve, and audit automated project infrastructure: CI/CD workflows, Docker containers, IaC manifests, and support scripts.
|
|
19603
|
-
- **Directives**:
|
|
19604
|
-
- Strict infrastructure domain: Operates exclusively in \`.github/workflows/\`, \`Dockerfile*\`, \`docker-compose*.yml\`, IaC manifests, and \`scripts/\`.
|
|
19605
|
-
- **NON-INVASION GUARDRAIL**: STRICTLY FORBIDDEN from modifying or refactoring application source code files (\`src/\`, \`packages/*/src/\`). Your responsibility is the pipeline and scaffolding, never application business logic.
|
|
19606
|
-
- **Deployment & CI/CD Strategy Discovery**: Before scaffolding new pipelines or containers, read \`ARCH-INTRO-001\` / \`ARCH-DEP-001\` and clarify packaging/CD destination, CI platform, and release trigger policy with the Tech Lead.
|
|
19607
|
-
- Infrastructure dependency policy: Verify licenses of dependencies, base images, and third-party actions according to \`license-policy.yaml\`.
|
|
19608
|
-
- Gate preservation: Ensure pipeline optimizations preserve all existing deterministic Quality Gates intact.
|
|
19609
|
-
- **Cross-Workflow Audit**: When fixing any CI/CD or configuration defect detected in a PR, search all \`.github/workflows/*.yml\` for the same pattern (including release, post-merge, and publishing pipelines) before declaring the fix complete.
|
|
19610
|
-
- **Remote Verification**: Creating a PR (\`gh pr create\`) does not equal success; actively verify that remote checks pass (\`gh pr checks\`).
|
|
19611
|
-
|
|
19612
|
-
### 9. \`agent-auditor\` (Transversal Quality and Improvement Auditor)
|
|
19613
|
-
- **Mission**: Polymorphically inspect deliverables from any specialist agent on demand, enforcing Clean Code, SOLID, DRY, Simplicity First (YAGNI), \`quality-policy.yaml\` AST thresholds, UI design standards, and \`license-policy.yaml\` SPDX compliance.
|
|
19614
|
-
- **Directives**: Constructive critique; block fake-wiring, unstyled interfaces, and manual \`.feature\` files; verify licenses via \`pnpm run verify:licenses\`; classify findings into \`[BLOCKING_DEFECT]\`, \`[SIMPLIFICATION]\`, and \`[ADVISORY]\`; non-invasive (never edit files directly); always return handoff to the audited agent (max 1 return round).
|
|
19615
|
-
|
|
19616
|
-
### 10. \`agent-adversary\` (Transversal Red Team and Chaos Adversary)
|
|
19617
|
-
- **Mission**: Actively attempt to break, bypass, or invalidate deliverables from any target specialist agent, including Pre-Merge / Checkpoint 2 security diff audits with CVSS v3.1 scoring and concrete proofs-of-concept (PoC).
|
|
19618
|
-
- **Directives**: Expose failure modes across Product (logic traps), Architecture (SPOF/races), QA (mutation testing/false greens), Development & Pre-Merge Security (boundary/concurrency, SAST/secrets via \`pnpm run verify:security\`, CVSS v3.1 blocking CRITICAL/HIGH), and DevOps (pipeline escape); mandatory proof-of-break; non-invasive; always return handoff to the audited agent (max 1 return round).
|
|
19832
|
+
## 2. Specialized Roles Mapping (Summary \u2014 Full Prompts in \`.agent/agents/\`)
|
|
19833
|
+
|
|
19834
|
+
| Role | Mission (summary) |
|
|
19835
|
+
| :--- | :--- |
|
|
19836
|
+
| \`agent-product-analyst\` | Phase 0 NAF v4 Vision (\`ARCH-INTRO-*\`, up to 15-question discovery defining UI modality & CRUD prerequisites) + ProductShape (\`ACT-*\`, \`UC-*\`, \`FR-*\`, \`QR-*\`, \`BR-*\`); \`status\` starts \`draft\`. |
|
|
19837
|
+
| \`agent-threat-modeler\` | STRIDE/OWASP threat triad (\`ACT-THREAT-*\`, \`ABUSE-*\`, \`SEC-REQ-*\`); hands off to \`agent-privacy-officer\`. |
|
|
19838
|
+
| \`agent-privacy-officer\` | LINDDUN & GDPR/LOPDGDD privacy triad (\`DATA-ASSET-*\`, \`PRIV-ROPA-*\`, \`PRIV-REQ-*\`) + Pre-Merge \`verify:privacy\`. |
|
|
19839
|
+
| \`agent-system-architect\` | Modular arc42 + NAF v4 architecture (\`CMP-*\`, \`ARCH-DEP-001\`, Mermaid diagrams, \`ADR-*\`). |
|
|
19840
|
+
| \`agent-qa-engineer\` | FAILING BDD/Gherkin, E2E, and UI suites (Happy Path, Sad Path & Boundary Values per interactive UI element) before \`agent-developer\` writes code. |
|
|
19841
|
+
| \`agent-developer\` | Atomic tasks from \`tasks.md\` in 5-step Hexagonal order; respects autonomy mode; runs \`pnpm run check:fix\` + \`pnpm run verify:all\`. |
|
|
19842
|
+
| \`agent-expert-user\` | Bimodal MVP evaluation (design) and functional validation against \`UC-*\` and \`FR-*\` (pre-PR). |
|
|
19843
|
+
| \`agent-devops\` | CI/CD, Docker, IaC only \u2014 clarifies deployment/CI strategy; **FORBIDDEN** to touch \`src/\` or \`packages/*/src/\`. |
|
|
19844
|
+
| \`agent-auditor\` | Transversal auditor: YAGNI, Clean Code/SOLID/AST thresholds, UI standards, SPDX licenses (\`verify:licenses\`); returns handoff to audited agent. |
|
|
19845
|
+
| \`agent-adversary\` | Transversal Red Team adversary: PoC breaks, mutation testing & Pre-Merge security diff audit (\`verify:security\`, CVSS v3.1); returns handoff to audited agent. |
|
|
19619
19846
|
|
|
19620
19847
|
---
|
|
19621
19848
|
|
|
19622
|
-
## 3.
|
|
19849
|
+
## 3. Pre-Flight Verification Commands
|
|
19850
|
+
- Pre-flight with auto-fix: \`pnpm run check:fix\` (or \`npx aisdlc check --fix\`)
|
|
19851
|
+
- Full verification: \`pnpm run verify:all\` (or \`npx aisdlc verify all\`)
|
|
19852
|
+
- Unit tests: \`pnpm test\` | Strict typing: \`pnpm run typecheck\`
|
|
19853
|
+
|
|
19854
|
+
---
|
|
19855
|
+
|
|
19856
|
+
## 4. Git 4-Tier Hierarchy and Commit Conventions
|
|
19623
19857
|
- \`task/<PARENT-ID>/<TSK-ID>-<slug>\` $\\rightarrow$ \`feat/<FEAT-ID>-<slug>\` $\\rightarrow$ \`release/vX.Y.Z\` $\\rightarrow$ \`main\`.
|
|
19624
19858
|
- Mandatory commit trailers injection (always declare your actual active model in \`AI-Model:\` or via \`AI_MODEL=<active-model>\` when running \`git commit\`, so the hook does not fall back to a generic IDE identifier like \`antigravity-agent\`, and include \`AI-Reasoning-Effort: <low|medium|high|max>\` or \`AI_REASONING_EFFORT=<level>\` when applicable):
|
|
19625
19859
|
\`\`\`text
|
|
@@ -19806,49 +20040,20 @@ npx tsx packages/cli/src/index.ts sdd integrate --change <chg-id>
|
|
|
19806
20040
|
|
|
19807
20041
|
---
|
|
19808
20042
|
|
|
19809
|
-
## 3. Specialized Roles Mapping
|
|
19810
|
-
|
|
19811
|
-
### 1. \`agent-product-analyst\` (Product Analyst / Scribe)
|
|
19812
|
-
- **Mission**: Capture new product intent via NAF v4 Enterprise & Capability Vision (\`ARCH-INTRO-*\`) and define/refine the product model using ProductShape.
|
|
19813
|
-
- **Phase 0 (Greenfield Product Inception)**: When creating a new product from scratch (or when \`specs/product/\` has no baseline), run an iterative discovery interview of **up to 15 questions (or until the product scope is 100% clear and unambiguous)** covering: mission/problem, actors \`ACT-*\`, role/auth model, **target UI/interaction modality (Web UI, Desktop GUI, Console/TUI/CLI, Mobile, or API/SDK)**, **modern visual aesthetic & styling standard (Bootstrap 5-style clean responsive web layouts with cards/tables/badges, Fluent/modern desktop aesthetic with rounded corners/elevated panels, or colorized rich terminal console with ANSI palettes/status badges)**, master-data CRUD prerequisites, MVP capabilities \`UC-*\`, business rules \`BR-*\`, and priority quality goals \`QR-*\`; then draft \`ARCH-INTRO-001\` (\`templates/architecture/introduction-and-goals.template.md\`), and derive initial \`ACT-*\`, \`UC-*\`, \`BR-*\`, \`FR-*\`, and \`QR-*\` drafts.
|
|
19814
|
-
- **Input**: Business intent or natural language specification.
|
|
19815
|
-
- **Output**: Markdown artifacts with YAML frontmatter compliant with \`schemas/architecture/introduction-and-goals.schema.json\` (\`ARCH-INTRO-*\`) and \`schemas/product/\` (\`ACT-*\`, \`UC-*\`, \`FR-*\`, \`QR-*\`, \`BR-*\`).
|
|
19816
|
-
- **Guardrails**: \`status\` always starts in \`draft\`. Library-only MVPs without the agreed runnable UI/CLI entry point and master-data CRUDs for human actors are forbidden. Mandatory Gherkin criteria with \`@<ID> @automated @regression\`.
|
|
19817
|
-
|
|
19818
|
-
### 2. \`agent-threat-modeler\` (Threat Modeler and Security Specialist)
|
|
19819
|
-
- **Mission**: Analyze use cases and proactively model adversaries, STRIDE attack vectors, and OWASP ASVS mitigations, both at product level and in the technical security feedback loop over architecture, handing off to \`agent-privacy-officer\`.
|
|
19820
|
-
- **Output**: Cybersecurity triad (\`ACT-THREAT-*\`, \`ABUSE-*\`, \`SEC-REQ-*\`) compliant with \`schemas/security/\`.
|
|
19821
|
-
|
|
19822
|
-
### 3. \`agent-privacy-officer\` (Data Protection & Privacy-by-Design Specialist)
|
|
19823
|
-
- **Mission**: Receive handoff from \`agent-threat-modeler\` to model personal data assets (\`DATA-ASSET-*\`), GDPR Art. 30 records of processing (\`PRIV-ROPA-*\`), and LINDDUN / GDPR / ISO 27701 privacy requirements (\`PRIV-REQ-*\`), and audit code diffs against \`privacy-policy.yaml\`.
|
|
19824
|
-
- **Directives**: Run \`pnpm run verify:privacy\`, enforce PII masking in logs/LLM prompts, and trigger \`DPIA-*\` requests on Art. 9 sensitive data.
|
|
19825
|
-
|
|
19826
|
-
### 4. \`agent-system-architect\` (System Architect)
|
|
19827
|
-
- **Mission**: Translate the approved product definition into a modular technical architecture based on arc42 enriched with NAF v4 (\`CMP-*\`, Mermaid diagrams, \`ADR-*\`).
|
|
19828
|
-
- **Guardrails**: Declare \`satisfies-requirements\` on every \`CMP-*\` (including \`PRIV-REQ-*\`), structure components following **Modular & Hexagonal Architecture (Ports & Adapters)** (Domain/Application Core + Inbound/Outbound Ports), instantiate mandatory building block \`CMP-OBSERVABILITY\` (Level 2/3) alongside Section 8 and an ADR for runtime telemetry, and trigger the technical security/privacy feedback loop toward \`agent-threat-modeler\` \u2794 \`agent-privacy-officer\` when infrastructure decisions introduce new attack vectors or PII flows.
|
|
19829
|
-
|
|
19830
|
-
### 5. \`agent-qa-engineer\` (QA Engineer and SDET)
|
|
19831
|
-
- **Mission**: Translate approved requirements (\`FR-*\`, \`SEC-REQ-*\`, \`PRIV-REQ-*\`, \`QR-*\`) into comprehensive FAILING (red) BDD/Gherkin, End-to-End (E2E), UI, and unit test suites, before \`agent-developer\` writes production code.
|
|
19832
|
-
- **Guardrails**: Always use the agreed project technology/testing stack (if any). Never omit End-to-End (E2E) and UI tests. Create specific tests for every interactive UI element using external tools such as Playwright or FlatUI (or the agreed project testing technology), covering Happy Path, Sad Path, and Boundary Values. FORBIDDEN to include production code. Mandatory tags: \`@<FR-ID> @automated @regression\`.
|
|
20043
|
+
## 3. Specialized Roles Mapping (Summary \u2014 Full Prompts in \`.claude/agents/\`)
|
|
19833
20044
|
|
|
19834
|
-
|
|
19835
|
-
|
|
19836
|
-
|
|
19837
|
-
|
|
19838
|
-
|
|
19839
|
-
-
|
|
19840
|
-
|
|
19841
|
-
|
|
19842
|
-
-
|
|
19843
|
-
|
|
19844
|
-
|
|
19845
|
-
|
|
19846
|
-
- **Mission**: Polymorphically inspect deliverables from any specialist agent on demand, enforcing Clean Code, SOLID, DRY, YAGNI, \`quality-policy.yaml\` AST thresholds, UI design standards, and \`license-policy.yaml\` SPDX compliance (\`pnpm run verify:licenses\`).
|
|
19847
|
-
- **Directives**: Constructive critique; classify findings into \`[BLOCKING_DEFECT]\`, \`[SIMPLIFICATION]\`, and \`[ADVISORY]\`; non-invasive (never edit files directly); always return handoff to the audited agent (max 1 return round).
|
|
19848
|
-
|
|
19849
|
-
### 10. \`agent-adversary\` (Transversal Red Team and Chaos Adversary)
|
|
19850
|
-
- **Mission**: Actively attempt to break, bypass, or invalidate deliverables from any target specialist agent, including Pre-Merge / Checkpoint 2 security diff audits (\`pnpm run verify:security\`, CVSS v3.1), providing concrete proofs-of-concept (PoC), counterexamples, and reproduction steps.
|
|
19851
|
-
- **Directives**: Expose failure modes across Product (logic traps), Architecture (SPOF/races), QA (mutation testing/false greens), Development & Pre-Merge Security (boundary/concurrency, CVSS v3.1), and DevOps (pipeline escape); mandatory proof-of-break; non-invasive; always return handoff to the audited agent (max 1 return round).
|
|
20045
|
+
| Role | Mission (summary) |
|
|
20046
|
+
| :--- | :--- |
|
|
20047
|
+
| \`agent-product-analyst\` | Phase 0 NAF v4 Vision (\`ARCH-INTRO-*\`, up to 15-question discovery defining UI modality & CRUD prerequisites) + ProductShape (\`ACT-*\`, \`UC-*\`, \`FR-*\`, \`QR-*\`, \`BR-*\`); \`status\` starts \`draft\`. |
|
|
20048
|
+
| \`agent-threat-modeler\` | STRIDE/OWASP threat triad (\`ACT-THREAT-*\`, \`ABUSE-*\`, \`SEC-REQ-*\`); hands off to \`agent-privacy-officer\`. |
|
|
20049
|
+
| \`agent-privacy-officer\` | LINDDUN & GDPR/LOPDGDD privacy triad (\`DATA-ASSET-*\`, \`PRIV-ROPA-*\`, \`PRIV-REQ-*\`) + Pre-Merge \`verify:privacy\`. |
|
|
20050
|
+
| \`agent-system-architect\` | Modular arc42 + NAF v4 architecture (\`CMP-*\`, \`ARCH-DEP-001\`, Mermaid diagrams, \`ADR-*\`). |
|
|
20051
|
+
| \`agent-qa-engineer\` | FAILING BDD/Gherkin, E2E, and UI suites (Happy Path, Sad Path & Boundary Values per interactive UI element) before \`agent-developer\` writes code. |
|
|
20052
|
+
| \`agent-developer\` | Atomic tasks from \`tasks.md\` in 5-step Hexagonal order; respects autonomy mode; runs \`pnpm run check:fix\` + \`pnpm run verify:all\`. |
|
|
20053
|
+
| \`agent-expert-user\` | Bimodal MVP evaluation (design) and functional validation against \`UC-*\` and \`FR-*\` (pre-PR). |
|
|
20054
|
+
| \`agent-devops\` | CI/CD, Docker, IaC only \u2014 clarifies deployment/CI strategy; **FORBIDDEN** to touch \`src/\` or \`packages/*/src/\`. |
|
|
20055
|
+
| \`agent-auditor\` | Transversal auditor: YAGNI, Clean Code/SOLID/AST thresholds, UI standards, SPDX licenses (\`verify:licenses\`); returns handoff to audited agent. |
|
|
20056
|
+
| \`agent-adversary\` | Transversal Red Team adversary: PoC breaks, mutation testing & Pre-Merge security diff audit (\`verify:security\`, CVSS v3.1); returns handoff to audited agent. |
|
|
19852
20057
|
|
|
19853
20058
|
---
|
|
19854
20059
|
|
|
@@ -20034,6 +20239,88 @@ var STARTER_VSCODE_MCP = `{
|
|
|
20034
20239
|
}
|
|
20035
20240
|
}
|
|
20036
20241
|
`;
|
|
20242
|
+
var STARTER_ANTIGRAVITY_SPECS_RULES = `---
|
|
20243
|
+
description: Directives for SDD specifications editing, ProductShape artifacts, PDaC citations, Cybersecurity, and Privacy
|
|
20244
|
+
trigger: model_decision
|
|
20245
|
+
---
|
|
20246
|
+
|
|
20247
|
+
# Specifications, ProductShape & PDaC Directives
|
|
20248
|
+
|
|
20249
|
+
Canonical Reference: [\`process/09_agent_protocols.md\`](process/09_agent_protocols.md).
|
|
20250
|
+
|
|
20251
|
+
1. **Identifier Taxonomy & Schemas**: Every artifact in \`specs/\` must satisfy its JSON Schema in \`schemas/\` (\`ARCH-INTRO-*\`, \`ACT-*\`, \`JRN-*\`, \`UC-*\`, \`BR-*\`, \`FR-*\`, \`QR-*\`, \`ACT-THREAT-*\`, \`ABUSE-*\`, \`SEC-REQ-*\`, \`DATA-ASSET-*\`, \`PRIV-ROPA-*\`, \`PRIV-REQ-*\`, \`CMP-*\`, \`ADR-*\`).
|
|
20252
|
+
2. **Initial Status**: All newly drafted specifications MUST start with \`status: draft\`.
|
|
20253
|
+
3. **Single Canonical Link Direction**: Cite upstream artifacts in one direction only (\`derives-from: [UC-*]\`, \`primary-actor: ACT-*\`, \`satisfies-requirements: [FR-*]\`) with Unix LF-normalized SHA-256 digests.
|
|
20254
|
+
4. **Gherkin Acceptance Criteria**: Every \`FR-*\` must embed a \`\`\`gherkin block with \`@<ID> @automated @regression\` covering \`@nominal\`, \`@boundary\`, and \`@invalid\`. \`SEC-REQ-*\` uses \`@security @mitigation\`; \`PRIV-REQ-*\` uses \`@privacy @gdpr\`.
|
|
20255
|
+
5. **Validation**: Run \`pnpm run verify:schemas\`, \`pnpm run verify:duplicates\`, \`pnpm run verify:pdac\`, and \`pnpm run verify:privacy\` before delivering drafts.
|
|
20256
|
+
`;
|
|
20257
|
+
var STARTER_ANTIGRAVITY_CODE_RULES = `---
|
|
20258
|
+
description: Directives for code quality thresholds, Hexagonal architecture, observability, UI states, and license compliance
|
|
20259
|
+
trigger: model_decision
|
|
20260
|
+
---
|
|
20261
|
+
|
|
20262
|
+
# Code Quality, Hexagonal Architecture & Observability Directives
|
|
20263
|
+
|
|
20264
|
+
Canonical Reference: [\`process/09_agent_protocols.md\`](process/09_agent_protocols.md).
|
|
20265
|
+
|
|
20266
|
+
1. **AST Thresholds (\`quality-policy.yaml\`)**: Cyclomatic Complexity $\\le 10$, Cognitive Complexity $\\le 15$, Maintainability Index $\\ge 50$, Function Length $\\le 40$ lines.
|
|
20267
|
+
2. **5-Step Implementation Order**: (1) Modular & Hexagonal Architecture (Ports & Adapters) module boundaries, (2) Inter-module interfaces/ports first, (3) Concrete components, (4) Exhaustive per-function unit tests in \`tests/unit/\` (Happy Path, Sad Path, Boundary Values, and Unexpected/Null/Empty values), (5) Per-component UI/E2E tests.
|
|
20268
|
+
3. **Mandatory Regression Verification & Global Styles Protection**: Never declare build, typecheck, or bug fixes complete without running \`pnpm test\` / \`dotnet test\` and confirming zero regressions. Verify global stylesheet/asset imports remain intact when touching frontend views.
|
|
20269
|
+
4. **Zero Fake-Wiring & 4 UI States**: Never ship hardcoded \`mockData\`, empty handlers, or silent errors. Every data-driven view must implement \`Loading\`, \`Empty\`, \`Error\`, and \`Nominal\` states.
|
|
20270
|
+
5. **Structured Observability (\`CMP-OBSERVABILITY\`)**: Never use \`console.log\` in production code; use \`ILogger\`, \`ITracer\`, \`IMetricsRegistry\` backed by \`.observability/\` with PII redaction and shutdown \`flush()\`.
|
|
20271
|
+
6. **No Bypass Directives**: Never suppress types or linters (\`@ts-ignore\`, \`eslint-disable\`, \`#pragma warning disable\`, \`#[allow(...)]\`). Check \`license-policy.yaml\` before adding any dependency.
|
|
20272
|
+
`;
|
|
20273
|
+
var STARTER_ANTIGRAVITY_TESTING_RULES = `---
|
|
20274
|
+
description: Directives for deterministic Gherkin extraction, polyglot step scaffolding, E2E/UI coverage, and Zero-Mock integration
|
|
20275
|
+
trigger: model_decision
|
|
20276
|
+
---
|
|
20277
|
+
|
|
20278
|
+
# Deterministic BDD & Testing Directives
|
|
20279
|
+
|
|
20280
|
+
Canonical Reference: [\`process/09_agent_protocols.md\`](process/09_agent_protocols.md).
|
|
20281
|
+
|
|
20282
|
+
1. **Deterministic Gherkin Engine**: NEVER hand-author \`tests/features/*.feature\` or boilerplate step skeletons. Author Gherkin inside Markdown specs and run \`npx aisdlc gherkin extract\` + \`npx aisdlc gherkin scaffold <feature> --lang <ts|py|go|rs|cs> --fallback\`.
|
|
20283
|
+
2. **Reverse Traceability**: Cite \`FR-*\`, \`SEC-REQ-*\`, or \`PRIV-REQ-*\` IDs in test file headers.
|
|
20284
|
+
3. **Mandatory E2E/UI & Per-Interactive-Element Coverage**: Always use the agreed project technology (e.g. Playwright or FlatUI) to cover Happy Path, Sad Path, and Boundary Values for every interactive UI element, verifying real UI-to-Backend wiring (Zero-Mock).
|
|
20285
|
+
4. **Verification**: Run \`npx aisdlc verify gherkin\`, \`npx aisdlc verify testing\`, and \`pnpm test\` before completing any task.
|
|
20286
|
+
`;
|
|
20287
|
+
var STARTER_CURSOR_TESTING_RULES = `---
|
|
20288
|
+
description: Directives for deterministic Gherkin extraction, polyglot step scaffolding, E2E/UI coverage, and Zero-Mock integration
|
|
20289
|
+
globs: tests/**
|
|
20290
|
+
alwaysApply: false
|
|
20291
|
+
---
|
|
20292
|
+
|
|
20293
|
+
# Deterministic BDD & Testing Directives
|
|
20294
|
+
|
|
20295
|
+
Canonical Reference: [\`process/09_agent_protocols.md\`](process/09_agent_protocols.md).
|
|
20296
|
+
|
|
20297
|
+
1. **Deterministic Gherkin Engine**: NEVER hand-author \`tests/features/*.feature\` or boilerplate step skeletons. Author Gherkin inside Markdown specs and run \`npx aisdlc gherkin extract\` + \`npx aisdlc gherkin scaffold <feature> --lang <ts|py|go|rs|cs> --fallback\`.
|
|
20298
|
+
2. **Reverse Traceability**: Cite \`FR-*\`, \`SEC-REQ-*\`, or \`PRIV-REQ-*\` IDs in test file headers.
|
|
20299
|
+
3. **Mandatory E2E/UI & Per-Interactive-Element Coverage**: Always use the agreed project technology (e.g. Playwright or FlatUI) to cover Happy Path, Sad Path, and Boundary Values for every interactive UI element, verifying real UI-to-Backend wiring (Zero-Mock).
|
|
20300
|
+
4. **Verification**: Run \`npx aisdlc verify gherkin\`, \`npx aisdlc verify testing\`, and \`pnpm test\` before completing any task.
|
|
20301
|
+
`;
|
|
20302
|
+
var STARTER_SPECS_AGENTS_MD = `# Specifications Directory Rules (\`specs/\`)
|
|
20303
|
+
|
|
20304
|
+
- Every new or modified artifact in \`specs/\` must conform to its JSON Schema in \`schemas/\` and start with \`status: draft\`.
|
|
20305
|
+
- Always write relationships in their single canonical direction (\`derives-from\`, \`primary-actor\`, \`satisfies-requirements\`) with Unix LF-normalized SHA-256 digests.
|
|
20306
|
+
- Every \`FR-*\` must include \`\`\`gherkin blocks tagged \`@<ID> @automated @regression\` with \`@nominal\`, \`@boundary\`, and \`@invalid\` scenarios.
|
|
20307
|
+
- Run \`npx aisdlc check --fix\`, \`npx aisdlc verify schemas\`, and \`npx aisdlc verify duplicates\` before committing specification changes.
|
|
20308
|
+
`;
|
|
20309
|
+
var STARTER_SRC_AGENTS_MD = `# Source Code Directory Rules (\`src/\` & \`packages/\`)
|
|
20310
|
+
|
|
20311
|
+
- Enforce \`quality-policy.yaml\` AST thresholds: Cyclomatic Complexity <= 10, Cognitive Complexity <= 15, Maintainability Index >= 50, Function Length <= 40 lines.
|
|
20312
|
+
- Follow Modular & Hexagonal Architecture (Ports & Adapters): define inter-module interfaces/ports before concrete implementations.
|
|
20313
|
+
- Zero Fake-Wiring: never leave hardcoded \`mockData\`, empty handlers, or missing \`Loading\`/\`Empty\`/\`Error\`/\`Nominal\` UI states.
|
|
20314
|
+
- Never use \`console.log\` in production code; route telemetry through \`CMP-OBSERVABILITY\` (\`ILogger\`, \`ITracer\`, \`IMetricsRegistry\`) with PII redaction.
|
|
20315
|
+
- Never add \`@ts-ignore\`, \`eslint-disable\`, or dependency packages without verifying \`license-policy.yaml\`.
|
|
20316
|
+
`;
|
|
20317
|
+
var STARTER_TESTS_AGENTS_MD = `# Test Suite Directory Rules (\`tests/\`)
|
|
20318
|
+
|
|
20319
|
+
- NEVER hand-author or manually edit \`tests/features/*.feature\`; always generate via \`npx aisdlc gherkin extract\`.
|
|
20320
|
+
- Scaffold new step definitions deterministically via \`npx aisdlc gherkin scaffold <feature> --lang <ts|py|go|rs|cs> --fallback\`.
|
|
20321
|
+
- Include header citations (\`FR-*\`, \`SEC-REQ-*\`, \`PRIV-REQ-*\`) for 360\xB0 reverse traceability.
|
|
20322
|
+
- Cover Happy Path, Sad Path, Boundary Values, and Null/Empty inputs for every function and interactive UI element.
|
|
20323
|
+
`;
|
|
20037
20324
|
|
|
20038
20325
|
// src/init/architecture-templates.ts
|
|
20039
20326
|
var STARTER_ARCH_ADR = `---
|
|
@@ -21400,10 +21687,59 @@ var STARTER_ANTIGRAVITY_HOOKS_JSON = `{
|
|
|
21400
21687
|
}
|
|
21401
21688
|
]
|
|
21402
21689
|
}
|
|
21690
|
+
],
|
|
21691
|
+
"PostToolUse": [
|
|
21692
|
+
{
|
|
21693
|
+
"matcher": "edit_file|write_file",
|
|
21694
|
+
"hooks": [
|
|
21695
|
+
{
|
|
21696
|
+
"type": "command",
|
|
21697
|
+
"command": "node scripts/guard-post-edit.cjs",
|
|
21698
|
+
"timeout": 10
|
|
21699
|
+
}
|
|
21700
|
+
]
|
|
21701
|
+
}
|
|
21403
21702
|
]
|
|
21404
21703
|
}
|
|
21405
21704
|
}
|
|
21406
21705
|
`;
|
|
21706
|
+
var STARTER_GUARD_POST_EDIT_CJS = `#!/usr/bin/env node
|
|
21707
|
+
/**
|
|
21708
|
+
* AI-SDLC: Antigravity PostToolUse Skill-Compliance Reminder Hook
|
|
21709
|
+
* Reminds agents to run deterministic Gherkin extraction when specs with gherkin blocks are edited,
|
|
21710
|
+
* and warns if tests/features/*.feature is edited manually.
|
|
21711
|
+
*/
|
|
21712
|
+
const fs = require('fs');
|
|
21713
|
+
const path = require('path');
|
|
21714
|
+
|
|
21715
|
+
function readPayloadTarget() {
|
|
21716
|
+
try {
|
|
21717
|
+
const raw = fs.readFileSync(0, 'utf-8').trim();
|
|
21718
|
+
if (!raw) return '';
|
|
21719
|
+
const parsed = JSON.parse(raw);
|
|
21720
|
+
const input = parsed.tool_input || parsed.input || {};
|
|
21721
|
+
return String(input.Path || input.path || input.TargetFile || input.target_file || '');
|
|
21722
|
+
} catch {
|
|
21723
|
+
return '';
|
|
21724
|
+
}
|
|
21725
|
+
}
|
|
21726
|
+
|
|
21727
|
+
const target = readPayloadTarget();
|
|
21728
|
+
if (!target) process.exit(0);
|
|
21729
|
+
|
|
21730
|
+
const rel = path.relative(process.cwd(), path.resolve(process.cwd(), target)).replace(/\\\\/g, '/');
|
|
21731
|
+
if (/^tests\\/features\\/.*\\.feature$/i.test(rel)) {
|
|
21732
|
+
console.error('[AI-SDLC PostEdit Hook] Warning: tests/features/*.feature should be generated via "npx aisdlc gherkin extract" (skill: aisdlc-bdd-gherkin), not hand-edited.');
|
|
21733
|
+
} else if (/^(specs|product|security)\\/.*\\.md$/i.test(rel) && fs.existsSync(target)) {
|
|
21734
|
+
try {
|
|
21735
|
+
const content = fs.readFileSync(target, 'utf-8');
|
|
21736
|
+
if (content.includes('\`\`\`gherkin')) {
|
|
21737
|
+
console.log('[AI-SDLC PostEdit Hook] Spec with Gherkin modified. Run "npx aisdlc gherkin extract" and "npx aisdlc check --fix" to keep .feature files and SHA-256 digests in sync.');
|
|
21738
|
+
}
|
|
21739
|
+
} catch {}
|
|
21740
|
+
}
|
|
21741
|
+
process.exit(0);
|
|
21742
|
+
`;
|
|
21407
21743
|
var STARTER_AGENT_GUARD_WRAPPER_CJS = `#!/usr/bin/env node
|
|
21408
21744
|
// Forwarding wrapper or direct execution from .agent
|
|
21409
21745
|
require('../../scripts/guard-branch.cjs');
|
|
@@ -22527,21 +22863,44 @@ function resolveAgentTargets(agents) {
|
|
|
22527
22863
|
}
|
|
22528
22864
|
return result;
|
|
22529
22865
|
}
|
|
22530
|
-
function
|
|
22531
|
-
dirs.push("
|
|
22866
|
+
function appendHierarchicalAgentsMd(dirs, files) {
|
|
22867
|
+
dirs.push("specs", "src", "tests");
|
|
22532
22868
|
files.push(
|
|
22533
|
-
{ relPath: "
|
|
22534
|
-
{ relPath: "
|
|
22535
|
-
{ relPath: "
|
|
22536
|
-
{ relPath: "scripts/guard-branch.cjs", content: STARTER_GUARD_BRANCH_CJS }
|
|
22869
|
+
{ relPath: "specs/AGENTS.md", content: STARTER_SPECS_AGENTS_MD },
|
|
22870
|
+
{ relPath: "src/AGENTS.md", content: STARTER_SRC_AGENTS_MD },
|
|
22871
|
+
{ relPath: "tests/AGENTS.md", content: STARTER_TESTS_AGENTS_MD }
|
|
22537
22872
|
);
|
|
22873
|
+
}
|
|
22874
|
+
function appendSkillReferenceFiles(baseSkillDir, skillId, dirs, files) {
|
|
22875
|
+
const refs = SKILL_REFERENCES[skillId];
|
|
22876
|
+
if (!refs || refs.length === 0) return;
|
|
22877
|
+
const refsDir = `${baseSkillDir}/references`;
|
|
22878
|
+
dirs.push(refsDir);
|
|
22879
|
+
for (const ref of refs) {
|
|
22880
|
+
files.push({ relPath: `${refsDir}/${ref.filename}`, content: ref.content });
|
|
22881
|
+
}
|
|
22882
|
+
}
|
|
22883
|
+
var ANTIGRAVITY_CORE_FILES = [
|
|
22884
|
+
{ relPath: ".agent/rules/ai-sdlc.md", content: STARTER_ANTIGRAVITY_RULES },
|
|
22885
|
+
{ relPath: ".agent/rules/ai-sdlc-specs.md", content: STARTER_ANTIGRAVITY_SPECS_RULES },
|
|
22886
|
+
{ relPath: ".agent/rules/ai-sdlc-code.md", content: STARTER_ANTIGRAVITY_CODE_RULES },
|
|
22887
|
+
{ relPath: ".agent/rules/ai-sdlc-testing.md", content: STARTER_ANTIGRAVITY_TESTING_RULES },
|
|
22888
|
+
{ relPath: ".agent/hooks.json", content: STARTER_ANTIGRAVITY_HOOKS_JSON },
|
|
22889
|
+
{ relPath: ".agent/scripts/guard-branch.cjs", content: STARTER_AGENT_GUARD_WRAPPER_CJS },
|
|
22890
|
+
{ relPath: "scripts/guard-branch.cjs", content: STARTER_GUARD_BRANCH_CJS },
|
|
22891
|
+
{ relPath: "scripts/guard-post-edit.cjs", content: STARTER_GUARD_POST_EDIT_CJS }
|
|
22892
|
+
];
|
|
22893
|
+
function appendAntigravityFiles(dirs, files) {
|
|
22894
|
+
dirs.push(".agent/rules", ".agent/agents", ".agent/skills");
|
|
22895
|
+
files.push(...ANTIGRAVITY_CORE_FILES);
|
|
22896
|
+
appendHierarchicalAgentsMd(dirs, files);
|
|
22538
22897
|
for (const agent of SPECIALIZED_AGENT_TEMPLATES) {
|
|
22539
|
-
|
|
22540
|
-
files.push({ relPath: `.agent/agents/${agent.id}.md`, content });
|
|
22898
|
+
files.push({ relPath: `.agent/agents/${agent.id}.md`, content: renderAntigravityAgentFile(agent) });
|
|
22541
22899
|
}
|
|
22542
22900
|
for (const skill of LIFECYCLE_SKILL_TEMPLATES) {
|
|
22543
22901
|
dirs.push(`.agent/skills/${skill.id}`);
|
|
22544
22902
|
files.push({ relPath: `.agent/skills/${skill.id}/SKILL.md`, content: renderAntigravitySkillFile(skill) });
|
|
22903
|
+
appendSkillReferenceFiles(`.agent/skills/${skill.id}`, skill.id, dirs, files);
|
|
22545
22904
|
}
|
|
22546
22905
|
}
|
|
22547
22906
|
function appendCursorFiles(dirs, files) {
|
|
@@ -22549,7 +22908,8 @@ function appendCursorFiles(dirs, files) {
|
|
|
22549
22908
|
files.push(
|
|
22550
22909
|
{ relPath: ".cursor/rules/ai-sdlc-core.mdc", content: STARTER_CURSOR_CORE_RULES },
|
|
22551
22910
|
{ relPath: ".cursor/rules/ai-sdlc-product.mdc", content: STARTER_CURSOR_PRODUCT_RULES },
|
|
22552
|
-
{ relPath: ".cursor/rules/ai-sdlc-quality.mdc", content: STARTER_CURSOR_QUALITY_RULES }
|
|
22911
|
+
{ relPath: ".cursor/rules/ai-sdlc-quality.mdc", content: STARTER_CURSOR_QUALITY_RULES },
|
|
22912
|
+
{ relPath: ".cursor/rules/ai-sdlc-testing.mdc", content: STARTER_CURSOR_TESTING_RULES }
|
|
22553
22913
|
);
|
|
22554
22914
|
for (const agent of SPECIALIZED_AGENT_TEMPLATES) {
|
|
22555
22915
|
files.push({ relPath: `.cursor/rules/${agent.id}.mdc`, content: renderCursorAgentFile(agent) });
|
|
@@ -22561,6 +22921,7 @@ function appendCursorFiles(dirs, files) {
|
|
|
22561
22921
|
function appendClaudeFiles(dirs, files) {
|
|
22562
22922
|
dirs.push(".claude/agents", ".claude/skills");
|
|
22563
22923
|
files.push({ relPath: "CLAUDE.md", content: STARTER_CLAUDE_RULES });
|
|
22924
|
+
appendHierarchicalAgentsMd(dirs, files);
|
|
22564
22925
|
for (const agent of SPECIALIZED_AGENT_TEMPLATES) {
|
|
22565
22926
|
const content = renderClaudeAgentFile(agent);
|
|
22566
22927
|
dirs.push(`.claude/skills/${agent.id}`);
|
|
@@ -22572,6 +22933,7 @@ function appendClaudeFiles(dirs, files) {
|
|
|
22572
22933
|
for (const skill of LIFECYCLE_SKILL_TEMPLATES) {
|
|
22573
22934
|
dirs.push(`.claude/skills/${skill.id}`);
|
|
22574
22935
|
files.push({ relPath: `.claude/skills/${skill.id}/SKILL.md`, content: renderClaudeSkillFile(skill) });
|
|
22936
|
+
appendSkillReferenceFiles(`.claude/skills/${skill.id}`, skill.id, dirs, files);
|
|
22575
22937
|
}
|
|
22576
22938
|
}
|
|
22577
22939
|
function appendCopilotFiles(dirs, files) {
|
|
@@ -22603,7 +22965,13 @@ function collectAgentFiles(targets) {
|
|
|
22603
22965
|
if (isTargetIncluded(targets, "claude")) appendClaudeFiles(dirs, files);
|
|
22604
22966
|
if (isTargetIncluded(targets, "copilot")) appendCopilotFiles(dirs, files);
|
|
22605
22967
|
appendMcpFiles(dirs, files);
|
|
22606
|
-
|
|
22968
|
+
const seen = /* @__PURE__ */ new Set();
|
|
22969
|
+
const uniqueFiles = files.filter((f) => {
|
|
22970
|
+
if (seen.has(f.relPath)) return false;
|
|
22971
|
+
seen.add(f.relPath);
|
|
22972
|
+
return true;
|
|
22973
|
+
});
|
|
22974
|
+
return { dirs: Array.from(new Set(dirs)), files: uniqueFiles };
|
|
22607
22975
|
}
|
|
22608
22976
|
function recordDryRunFile(exists, canOverwrite, relPath, results) {
|
|
22609
22977
|
if (exists && canOverwrite) results.filesUpdated.push(relPath);
|
|
@@ -23758,13 +24126,13 @@ function resolveExitCode(error) {
|
|
|
23758
24126
|
return err.killed ? null : typeof err.code === "number" ? err.code : 1;
|
|
23759
24127
|
}
|
|
23760
24128
|
function runSpawn(file, args, cwd, timeout, maxBuffer) {
|
|
23761
|
-
return new Promise((
|
|
24129
|
+
return new Promise((resolve20) => {
|
|
23762
24130
|
execFile(
|
|
23763
24131
|
file,
|
|
23764
24132
|
args,
|
|
23765
24133
|
{ shell: false, timeout, maxBuffer, cwd, env: buildSafeEnvironment(cwd), windowsHide: true },
|
|
23766
24134
|
(err, stdout, stderr) => {
|
|
23767
|
-
|
|
24135
|
+
resolve20({
|
|
23768
24136
|
stdout: truncateBuffer(stdout, maxBuffer),
|
|
23769
24137
|
stderr: truncateBuffer(stderr, maxBuffer),
|
|
23770
24138
|
exitCode: resolveExitCode(err)
|
|
@@ -24394,12 +24762,25 @@ var DoctorService = class {
|
|
|
24394
24762
|
return Array.from(rems);
|
|
24395
24763
|
}
|
|
24396
24764
|
};
|
|
24397
|
-
var GOVERNED_DIR_PREFIXES = [
|
|
24765
|
+
var GOVERNED_DIR_PREFIXES = [
|
|
24766
|
+
"schemas" + path14.sep,
|
|
24767
|
+
"templates" + path14.sep,
|
|
24768
|
+
".backup" + path14.sep,
|
|
24769
|
+
".agent" + path14.sep,
|
|
24770
|
+
".claude" + path14.sep,
|
|
24771
|
+
".cursor" + path14.sep,
|
|
24772
|
+
".github" + path14.sep + "agents" + path14.sep
|
|
24773
|
+
];
|
|
24398
24774
|
var GOVERNED_ROOT_FILES = /* @__PURE__ */ new Set([
|
|
24399
24775
|
"quality-policy.yaml",
|
|
24400
24776
|
"license-policy.yaml",
|
|
24401
24777
|
"privacy-policy.yaml",
|
|
24402
|
-
"dlp-policy.yaml"
|
|
24778
|
+
"dlp-policy.yaml",
|
|
24779
|
+
"CLAUDE.md",
|
|
24780
|
+
path14.join("specs", "AGENTS.md"),
|
|
24781
|
+
path14.join("src", "AGENTS.md"),
|
|
24782
|
+
path14.join("tests", "AGENTS.md"),
|
|
24783
|
+
path14.join("scripts", "guard-post-edit.cjs")
|
|
24403
24784
|
]);
|
|
24404
24785
|
function validateRawInputs(repoRoot, targetPath) {
|
|
24405
24786
|
if (!repoRoot) {
|
|
@@ -24937,6 +25318,9 @@ function buildCanonicalMap() {
|
|
|
24937
25318
|
for (const t of STARTER_BASE_TEMPLATES) {
|
|
24938
25319
|
canonicalMap.set(t.relPath.replace(/\\/g, "/"), { category: "template", content: t.content });
|
|
24939
25320
|
}
|
|
25321
|
+
for (const a of collectAgentFiles(resolveAgentTargets("all")).files) {
|
|
25322
|
+
canonicalMap.set(a.relPath.replace(/\\/g, "/"), { category: "agent", content: a.content });
|
|
25323
|
+
}
|
|
24940
25324
|
return canonicalMap;
|
|
24941
25325
|
}
|
|
24942
25326
|
function scanSchemasDir(schemasDir, canonicalMap) {
|
|
@@ -25103,10 +25487,37 @@ var MigrationService = class {
|
|
|
25103
25487
|
}
|
|
25104
25488
|
}
|
|
25105
25489
|
items.push(...scanSchemasDir(path14.join(root, "schemas"), canonicalMap));
|
|
25490
|
+
items.push(...this.discoverAgentFiles(root));
|
|
25491
|
+
return items;
|
|
25492
|
+
}
|
|
25493
|
+
discoverConfiguredAgentTargets(root) {
|
|
25494
|
+
const targets = [];
|
|
25495
|
+
if (fs12.existsSync(path14.join(root, ".agent"))) targets.push("antigravity");
|
|
25496
|
+
if (fs12.existsSync(path14.join(root, ".cursor"))) targets.push("cursor");
|
|
25497
|
+
if (fs12.existsSync(path14.join(root, ".claude")) || fs12.existsSync(path14.join(root, "CLAUDE.md"))) targets.push("claude");
|
|
25498
|
+
if (fs12.existsSync(path14.join(root, ".github", "agents"))) targets.push("copilot");
|
|
25499
|
+
return targets;
|
|
25500
|
+
}
|
|
25501
|
+
isGovernedAgentPath(relPath) {
|
|
25502
|
+
const prefixes = [".agent/", ".claude/", ".cursor/rules/", ".github/agents/"];
|
|
25503
|
+
return prefixes.some((p) => relPath.startsWith(p)) || relPath === "CLAUDE.md" || relPath.endsWith("/AGENTS.md") || relPath === "scripts/guard-post-edit.cjs";
|
|
25504
|
+
}
|
|
25505
|
+
discoverAgentFiles(root) {
|
|
25506
|
+
const configured = this.discoverConfiguredAgentTargets(root);
|
|
25507
|
+
if (configured.length === 0) return [];
|
|
25508
|
+
const items = [];
|
|
25509
|
+
for (const f of collectAgentFiles(resolveAgentTargets(configured)).files) {
|
|
25510
|
+
const relPath = f.relPath.replace(/\\/g, "/");
|
|
25511
|
+
if (!this.isGovernedAgentPath(relPath)) continue;
|
|
25512
|
+
const fullPath = path14.join(root, relPath);
|
|
25513
|
+
const exists = fs12.existsSync(fullPath);
|
|
25514
|
+
const currentContent = exists ? fs12.readFileSync(fullPath, "utf-8") : "";
|
|
25515
|
+
items.push({ relPath, category: "agent", currentContent, targetContent: f.content, baseContent: exists ? f.content : "" });
|
|
25516
|
+
}
|
|
25106
25517
|
return items;
|
|
25107
25518
|
}
|
|
25108
25519
|
};
|
|
25109
25520
|
|
|
25110
|
-
export { AISDLC_MANIFEST_FILENAME, ALL_ARCHITECTURE_TEMPLATES, ALL_QUALITY_GATES, AisdlcVersionCheck, BRANCH_PATTERNS, BddStepRegistry, BranchSafetyCheck, CONSOLE_UI_COMPONENT_PATTERNS, CPP_CLANG_TIDY, CPP_CMAKE_STRICT, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXCLUDE_DIRS, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, DEFAULT_TEST_ARTIFACT_PATTERNS, DEFAULT_UI_COMPONENT_PATTERNS, DEFAULT_UI_TEST_PATTERNS, DEFAULT_UNIT_TEST_PATTERNS, DESKTOP_UI_COMPONENT_PATTERNS, DOTNET_DIRECTORY_BUILD_PROPS, DiffDetector, DlpSanitizer, DoctorOrchestrator, DoctorReporter, DoctorService, FileSystemJailAdapter, GENERAL_SOURCE_EXTENSIONS, GHERKIN_GENERATOR_SPECS, GO_GOLANGCI_YML, GRADLE_STRICT_INIT_KTS, GitHooksHealthCheck, InTotoAttestationBuilder, JAVA_PMD_RULESET_XML, KOTLIN_DETEKT_YML, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, MAX_SARIF_BYTES, MAX_SARIF_JSON_DEPTH, MAX_SARIF_RESULTS, MOBILE_UI_COMPONENT_PATTERNS, MigrationOrchestrator, MigrationReporter, MigrationService, NativeFileSystemProbeAdapter, OpenSpecAdapter, OscalAssessmentBuilder, OverrideAnalyzer, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PRE_COMMIT_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, PROTECTED_CODING_RULES_FILES, PolicyRatchetEnforcer, REVIEWER_ROLES, REVIEW_VERDICTS, RUST_CARGO_CONFIG_TOML, RUST_CLIPPY_TOML, RegulatoryControlMapper, SARIF_SCHEMA_2_1_0, SARIF_VERSION, SAST_RULES, SCHEMA_SCHEMAS_ARCHITECTURE_ADR_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_COMPONENT_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_INTRODUCTION_AND_GOALS_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_MANIFEST_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_QUALITY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_IDE_MCP_CONFIG_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_PRODUCTION_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_USER_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_DATA_ASSET_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_ROPA_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BOUNDED_CONTEXT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BUSINESS_RULE_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_JOURNEY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_REQUIREMENT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_TERM_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_USE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_HAZARD_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_SAFETY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_DESIGN_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_HANDOFF_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_PROPOSAL_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_RELEASE_KPIS_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SESSION_TELEMETRY_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SPEC_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_TASKS_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ABUSE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ENCLAVE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_SECURITY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_THREAT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_WORKFLOW_AGENT_HANDOFF_SCHEMA_JSON, SECRET_RULES, SEVERITY_RANK2 as SEVERITY_RANK, SPECIALIZED_AGENT_TEMPLATES, STARTER_AGENT_GUARD_WRAPPER_CJS, STARTER_ANTIGRAVITY_HOOKS_JSON, STARTER_ANTIGRAVITY_MCP, STARTER_ANTIGRAVITY_RULES, STARTER_ARCH_ADR, STARTER_ARCH_ARCHITECTURE_CONSTRAINTS, STARTER_ARCH_COMPONENT, STARTER_ARCH_CONTEXT_AND_SCOPE, STARTER_ARCH_CROSS_CUTTING_CONCEPTS, STARTER_ARCH_DEPLOYMENT_VIEW, STARTER_ARCH_GLOSSARY, STARTER_ARCH_INTRODUCTION_AND_GOALS, STARTER_ARCH_LEVEL_1_WHITEBOX, STARTER_ARCH_QUALITY_REQUIREMENTS, STARTER_ARCH_RISKS_AND_TECHNICAL_DEBT, STARTER_ARCH_RUNTIME_VIEW, STARTER_ARCH_SOLUTION_STRATEGY, STARTER_AZURE_PIPELINES, STARTER_BASE_TEMPLATES, STARTER_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COMPLIANCE_LICENSE_MANIFEST_YAML, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_DEPLOY_DASHBOARD, STARTER_GITHUB_PR_KPI, STARTER_GITHUB_PULL_REQUEST_TEMPLATE, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_GUARD_BRANCH_CJS, STARTER_LICENSE_POLICY, STARTER_PRIVACY_POLICY, STARTER_PROCESS_README, STARTER_PULL_REQUEST_TEMPLATE, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_SCHEMAS, STARTER_SCHEMAS_MAP, STARTER_TASK_TEMPLATE, STARTER_TEMPLATES_CI_AZURE_PIPELINES_YML, STARTER_TEMPLATES_CI_BITBUCKET_PIPELINES_YML, STARTER_TEMPLATES_CI_DOCKER_COMPOSE_OBSERVABILITY_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_CI_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_DEPLOY_DASHBOARD_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_PR_KPI_SUMMARY_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_SDD_INTEGRATE_ON_MERGE_YML, STARTER_TEMPLATES_CI_OBSERVABILITY_GRAFANA_DATASOURCES_YML, STARTER_TEMPLATES_CI_OBSERVABILITY_PROMETHEUS_YML, STARTER_TEMPLATES_CI__GITLAB_CI_YML, STARTER_TEMPLATES_CODING_RULES_GO__GOLANGCI_YML, STARTER_TEMPLATES_CODING_RULES_KOTLIN_DETEKT_YML, STARTER_TEMPLATES_COMPLIANCE_COMMERCIAL_ACQUISITION_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_PRODUCTION_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_USER_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DATA_ASSET_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DPIA_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_ROPA_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BOUNDED_CONTEXT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BUSINESS_RULE_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_JOURNEY_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_REQUIREMENT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_TERM_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USER_DESIGN_FEEDBACK_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_HAZARD_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_SAFETY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SDD_DESIGN_TEMPLATE_MD, STARTER_TEMPLATES_SDD_HANDOFF_TEMPLATE_YAML, STARTER_TEMPLATES_SDD_PROPOSAL_TEMPLATE_MD, STARTER_TEMPLATES_SDD_PULL_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_SDD_SPEC_TEMPLATE_MD, STARTER_TEMPLATES_SDD_TASKS_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ABUSE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ENCLAVE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_SECURITY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_THREAT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_WORKFLOW_AGENT_HANDOFF_TEMPLATE_MD, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, STARTER__GITHUB_PULL_REQUEST_TEMPLATE_MD, SUPPORTED_COVERAGE_FORMATS_HINT, SafeProcessRunnerAdapter, SarifIngestionError, ScaSbomError, SchemasPdacHealthCheck, SecurityToolsHealthCheck, SignatureReadinessCheck, SpecKitAdapter, TOOL_INSTALL_ALLOWLIST, TS_ESLINT_CONFIG_MJS, TS_STRICT_TSCONFIG, TYPE_TO_SCHEMA_MAP, TimestampedBackupManagerAdapter, ToolchainHealthCheck, TransactionManager, UNIT_TEST_SUFFIXES, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, VALID_CODING_RULE_STACKS, WEB_UI_COMPONENT_PATTERNS, WIN_CMD_META_RE, accumulateTaskSummaries, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, analyzeBddVariantsForRequirement, appendRevisionHistoryRow, applyRatchetMode, buildCycloneDxComponent, buildCycloneDxVulnerabilities, buildFeatureFileContent, buildGraphElements, buildSafeEnvironment, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, canonicalSort, canonicalizeJson, checkGherkinInSync, checkoutTaskBranch, classifyBranch, classifyMetricFromMessage, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, compilePatternList, compileTestPatterns, computeAgentPerformanceKpis, computeCanonicalSha256, computeLfSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, deduplicateAndSortPrivacyViolations, deduplicateAndSortSastViolations, deduplicateAndSortViolations, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectPolyglotLoggerCall, detectProfileFromChange, detectProjectEcosystems, detectProjectStacks, detectPromptInjection, detectUiComponentModality, emitCiOutput, ensureToolAvailable, ensureTrivyAvailable, evaluateCompoundLicense, evaluateSingleDependency, evaluateVulnerabilityThresholds, executeBddFeature, extractAllRepoCommitKpis, extractBaselineEntriesFromResults, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsPythonAst, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, extractPythonFunctionsPolyglot, extractSemanticContent, extractUiComponentName, findChangeWorkspaceDir, findLicenseFile, formatAgentKpisMarkdownSection, formatAisdlcVersionOutput, formatCommitTrailers, formatInspectResultMarkdown, formatPrKpiMarkdown, formatReleaseKpiMarkdown, formatTaskKpiRows, generateBranchHierarchyPlan, generateComplianceEvidenceBundle, generateComplianceEvidenceBundleSync, generateCycloneDxSbom, generateDashboardReport, generateDeterministicUuidV5, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generatePrivacyReportMarkdown, generateQualityReport, generateRopaInventoryMarkdown, generateSastReportMarkdown, generateSecretsReportMarkdown, generateSecuritySarifReport, generateSuppressionsAuditReport, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getAisdlcVersion, getArchitectureTemplates, getCodingRulesFilesForStacks, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getReferenceCodingRulesTemplates, getSddAdapter, getToolInstallSpec, hasModalityDriverSignature, inferArtifactTypeFromId, inferFallbackUiModality, inferMissingTrailers, ingestSarifFiles, ingestSbomFile, initProject, injectKpisIntoPrBody, inspectElement, installGitHooks, integrateAllSddChanges, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathOutsideRoot, isPathProtectedFromPatch, isPlaceholderOrIgnored, isPolyglotTestArtifact, isPolyglotUnitTestFile, isProtectedCodingRulesFile, isReportContentSemanticallyEqual, isRequirementArtifact2 as isRequirementArtifact, isReviewerRole, isSemgrepInstalled, isToolAvailable, isToolInstalled, isUiComponentFile, isUiComponentTested, isUiTestFile, isUncOrEmptyPath, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, mergeSbomGaps, normalizeIdentifierToSnakeCase, normalizePath, normalizeReasoningEffort, normalizeScaffoldLanguages, normalizeSpdxLicense, normalizeUri, normalizeWinDrive, orchestrateNativeAstAnalysis, orchestratePolyglotSast, parseCoberturaXmlCoverage, parseCommitTrailers, parseDataAsset, parseDlpPolicy, parseFeatureDocument, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseGoCoverProfile, parseIngestedSbom, parseIstanbulCoverageSummary, parseJacocoXmlCoverage, parseLcovCoverage, parseLicensePolicy, parseLlvmCovJson, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSarifDocument, parseSarifDocuments, parseSecuritySuppression, parseSpecCatalogScope, parseStrictPurl, parseSyftOutput, parseTasksDoc, parseTasksFromContent, parseTrivyOutput, parseTrivyVulnerabilities, processPackageDir, readAisdlcManifest, readCodeCoverageSummary, readFailOnMissingToolFromQualityPolicy, readNormalizedCoverage, readPackageJson, redactSensitiveDiagnostics, renderAntigravityAgentFile, renderAntigravitySkillFile, renderAutonomyModeSection, renderClaudeAgentFile, renderClaudeSkillFile, renderCopilotAgentFile, renderCopilotSkillFile, renderCursorAgentFile, renderCursorSkillFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCodingRuleStacks, resolveCurrentGitCommit, resolveCytoscapePath, resolveDefaultBranchBase, resolveDeterministicDate, resolveDisallowedLogFields, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveReleaseBaseBranch, resolveSastCwe, resolveSastOwasp, resolveSchemaForArtifact, resolveTargetFiles, resolveTrustedBinaryPath, resolveWinCmdSpawn, runGitleaksCli, runSemgrepCli, sanitizeDlpPayload, sanitizeDlpText, sanitizeSarifText, sanitizeSbomLicense, sanitizeTestCorpus, scaffoldGherkinSteps, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForPrivacyViolations, scanFileForSast, scanGoDependencies, scanInstalledLicenses, scanManualsInWorkspace, scanMavenDependencies, scanPnpmStore, scanPythonDependencies, scanRustDependencies, scanSubdirectories, scanWithNativeFs, scanWithSbom, scanWithSyft, scanWithTrivy, scanWithTrivyAsync, serializeSarifDocument, slugify2 as slugify, spawnTrustedBinary, stripMaskingCalls, stripTestComments, stripVolatileReportMetadata, submitReviewReport, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateAnchorExistence, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyBddReportAttestation, verifyLicenses, verifyLicensesAsync, verifyManuals, verifyPdacGraph, verifyPrivacy, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySastAsync, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeAisdlcManifest, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };
|
|
25521
|
+
export { AISDLC_MANIFEST_FILENAME, ALL_ARCHITECTURE_TEMPLATES, ALL_QUALITY_GATES, AisdlcVersionCheck, BRANCH_PATTERNS, BddStepRegistry, BranchSafetyCheck, CONSOLE_UI_COMPONENT_PATTERNS, CPP_CLANG_TIDY, CPP_CMAKE_STRICT, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXCLUDE_DIRS, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, DEFAULT_TEST_ARTIFACT_PATTERNS, DEFAULT_UI_COMPONENT_PATTERNS, DEFAULT_UI_TEST_PATTERNS, DEFAULT_UNIT_TEST_PATTERNS, DESKTOP_UI_COMPONENT_PATTERNS, DOTNET_DIRECTORY_BUILD_PROPS, DiffDetector, DlpSanitizer, DoctorOrchestrator, DoctorReporter, DoctorService, FileSystemJailAdapter, GENERAL_SOURCE_EXTENSIONS, GHERKIN_GENERATOR_SPECS, GO_GOLANGCI_YML, GRADLE_STRICT_INIT_KTS, GitHooksHealthCheck, InTotoAttestationBuilder, JAVA_PMD_RULESET_XML, KOTLIN_DETEKT_YML, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, MAX_SARIF_BYTES, MAX_SARIF_JSON_DEPTH, MAX_SARIF_RESULTS, MOBILE_UI_COMPONENT_PATTERNS, MigrationOrchestrator, MigrationReporter, MigrationService, NativeFileSystemProbeAdapter, OpenSpecAdapter, OscalAssessmentBuilder, OverrideAnalyzer, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PRE_COMMIT_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, PROTECTED_CODING_RULES_FILES, PolicyRatchetEnforcer, REVIEWER_ROLES, REVIEW_VERDICTS, RUST_CARGO_CONFIG_TOML, RUST_CLIPPY_TOML, RegulatoryControlMapper, SARIF_SCHEMA_2_1_0, SARIF_VERSION, SAST_RULES, SCHEMA_SCHEMAS_ARCHITECTURE_ADR_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_COMPONENT_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_INTRODUCTION_AND_GOALS_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_MANIFEST_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_QUALITY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_IDE_MCP_CONFIG_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_PRODUCTION_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_USER_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_DATA_ASSET_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_ROPA_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BOUNDED_CONTEXT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BUSINESS_RULE_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_JOURNEY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_REQUIREMENT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_TERM_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_USE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_HAZARD_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_SAFETY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_DESIGN_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_HANDOFF_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_PROPOSAL_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_RELEASE_KPIS_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SESSION_TELEMETRY_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SPEC_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_TASKS_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ABUSE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ENCLAVE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_SECURITY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_THREAT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_WORKFLOW_AGENT_HANDOFF_SCHEMA_JSON, SECRET_RULES, SEVERITY_RANK2 as SEVERITY_RANK, SKILL_EXPECTED_TOOLS, SPECIALIZED_AGENT_TEMPLATES, STARTER_AGENT_GUARD_WRAPPER_CJS, STARTER_ANTIGRAVITY_CODE_RULES, STARTER_ANTIGRAVITY_HOOKS_JSON, STARTER_ANTIGRAVITY_MCP, STARTER_ANTIGRAVITY_RULES, STARTER_ANTIGRAVITY_SPECS_RULES, STARTER_ANTIGRAVITY_TESTING_RULES, STARTER_ARCH_ADR, STARTER_ARCH_ARCHITECTURE_CONSTRAINTS, STARTER_ARCH_COMPONENT, STARTER_ARCH_CONTEXT_AND_SCOPE, STARTER_ARCH_CROSS_CUTTING_CONCEPTS, STARTER_ARCH_DEPLOYMENT_VIEW, STARTER_ARCH_GLOSSARY, STARTER_ARCH_INTRODUCTION_AND_GOALS, STARTER_ARCH_LEVEL_1_WHITEBOX, STARTER_ARCH_QUALITY_REQUIREMENTS, STARTER_ARCH_RISKS_AND_TECHNICAL_DEBT, STARTER_ARCH_RUNTIME_VIEW, STARTER_ARCH_SOLUTION_STRATEGY, STARTER_AZURE_PIPELINES, STARTER_BASE_TEMPLATES, STARTER_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COMPLIANCE_LICENSE_MANIFEST_YAML, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_CURSOR_TESTING_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_DEPLOY_DASHBOARD, STARTER_GITHUB_PR_KPI, STARTER_GITHUB_PULL_REQUEST_TEMPLATE, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_GUARD_BRANCH_CJS, STARTER_GUARD_POST_EDIT_CJS, STARTER_LICENSE_POLICY, STARTER_PRIVACY_POLICY, STARTER_PROCESS_README, STARTER_PULL_REQUEST_TEMPLATE, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_SCHEMAS, STARTER_SCHEMAS_MAP, STARTER_SPECS_AGENTS_MD, STARTER_SRC_AGENTS_MD, STARTER_TASK_TEMPLATE, STARTER_TEMPLATES_CI_AZURE_PIPELINES_YML, STARTER_TEMPLATES_CI_BITBUCKET_PIPELINES_YML, STARTER_TEMPLATES_CI_DOCKER_COMPOSE_OBSERVABILITY_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_CI_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_DEPLOY_DASHBOARD_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_PR_KPI_SUMMARY_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_SDD_INTEGRATE_ON_MERGE_YML, STARTER_TEMPLATES_CI_OBSERVABILITY_GRAFANA_DATASOURCES_YML, STARTER_TEMPLATES_CI_OBSERVABILITY_PROMETHEUS_YML, STARTER_TEMPLATES_CI__GITLAB_CI_YML, STARTER_TEMPLATES_CODING_RULES_GO__GOLANGCI_YML, STARTER_TEMPLATES_CODING_RULES_KOTLIN_DETEKT_YML, STARTER_TEMPLATES_COMPLIANCE_COMMERCIAL_ACQUISITION_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_PRODUCTION_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_USER_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DATA_ASSET_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DPIA_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_ROPA_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BOUNDED_CONTEXT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BUSINESS_RULE_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_JOURNEY_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_REQUIREMENT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_TERM_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USER_DESIGN_FEEDBACK_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_HAZARD_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_SAFETY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SDD_DESIGN_TEMPLATE_MD, STARTER_TEMPLATES_SDD_HANDOFF_TEMPLATE_YAML, STARTER_TEMPLATES_SDD_PROPOSAL_TEMPLATE_MD, STARTER_TEMPLATES_SDD_PULL_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_SDD_SPEC_TEMPLATE_MD, STARTER_TEMPLATES_SDD_TASKS_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ABUSE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ENCLAVE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_SECURITY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_THREAT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_WORKFLOW_AGENT_HANDOFF_TEMPLATE_MD, STARTER_TESTS_AGENTS_MD, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, STARTER__GITHUB_PULL_REQUEST_TEMPLATE_MD, SUPPORTED_COVERAGE_FORMATS_HINT, SafeProcessRunnerAdapter, SarifIngestionError, ScaSbomError, SchemasPdacHealthCheck, SecurityToolsHealthCheck, SignatureReadinessCheck, SpecKitAdapter, TOOL_INSTALL_ALLOWLIST, TS_ESLINT_CONFIG_MJS, TS_STRICT_TSCONFIG, TYPE_TO_SCHEMA_MAP, TimestampedBackupManagerAdapter, ToolchainHealthCheck, TransactionManager, UNIT_TEST_SUFFIXES, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, VALID_CODING_RULE_STACKS, WEB_UI_COMPONENT_PATTERNS, WIN_CMD_META_RE, accumulateTaskSummaries, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, analyzeBddVariantsForRequirement, appendRevisionHistoryRow, applyRatchetMode, buildCycloneDxComponent, buildCycloneDxVulnerabilities, buildFeatureFileContent, buildGraphElements, buildSafeEnvironment, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, canonicalSort, canonicalizeJson, checkGherkinInSync, checkoutTaskBranch, classifyBranch, classifyMetricFromMessage, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, compilePatternList, compileTestPatterns, computeAgentPerformanceKpis, computeCanonicalSha256, computeLfSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, deduplicateAndSortPrivacyViolations, deduplicateAndSortSastViolations, deduplicateAndSortViolations, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectPolyglotLoggerCall, detectProfileFromChange, detectProjectEcosystems, detectProjectStacks, detectPromptInjection, detectUiComponentModality, emitCiOutput, ensureToolAvailable, ensureTrivyAvailable, evaluateCompoundLicense, evaluateSingleDependency, evaluateVulnerabilityThresholds, executeBddFeature, extractAllRepoCommitKpis, extractBaselineEntriesFromResults, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsPythonAst, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, extractPythonFunctionsPolyglot, extractSemanticContent, extractUiComponentName, findChangeWorkspaceDir, findLicenseFile, formatAgentKpisMarkdownSection, formatAisdlcVersionOutput, formatCommitTrailers, formatInspectResultMarkdown, formatPrKpiMarkdown, formatReleaseKpiMarkdown, formatTaskKpiRows, generateBranchHierarchyPlan, generateComplianceEvidenceBundle, generateComplianceEvidenceBundleSync, generateCycloneDxSbom, generateDashboardReport, generateDeterministicUuidV5, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generatePrivacyReportMarkdown, generateQualityReport, generateRopaInventoryMarkdown, generateSastReportMarkdown, generateSecretsReportMarkdown, generateSecuritySarifReport, generateSuppressionsAuditReport, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getAisdlcVersion, getArchitectureTemplates, getCodingRulesFilesForStacks, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getReferenceCodingRulesTemplates, getSddAdapter, getToolInstallSpec, hasModalityDriverSignature, inferArtifactTypeFromId, inferFallbackUiModality, inferMissingTrailers, ingestSarifFiles, ingestSbomFile, initProject, injectKpisIntoPrBody, inspectElement, installGitHooks, integrateAllSddChanges, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathOutsideRoot, isPathProtectedFromPatch, isPlaceholderOrIgnored, isPolyglotTestArtifact, isPolyglotUnitTestFile, isProtectedCodingRulesFile, isReportContentSemanticallyEqual, isRequirementArtifact2 as isRequirementArtifact, isReviewerRole, isSemgrepInstalled, isToolAvailable, isToolInstalled, isUiComponentFile, isUiComponentTested, isUiTestFile, isUncOrEmptyPath, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, mergeSbomGaps, normalizeIdentifierToSnakeCase, normalizePath, normalizeReasoningEffort, normalizeScaffoldLanguages, normalizeSpdxLicense, normalizeUri, normalizeWinDrive, orchestrateNativeAstAnalysis, orchestratePolyglotSast, parseCoberturaXmlCoverage, parseCommitTrailers, parseDataAsset, parseDlpPolicy, parseFeatureDocument, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseGoCoverProfile, parseIngestedSbom, parseIstanbulCoverageSummary, parseJacocoXmlCoverage, parseLcovCoverage, parseLicensePolicy, parseLlvmCovJson, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSarifDocument, parseSarifDocuments, parseSecuritySuppression, parseSpecCatalogScope, parseStrictPurl, parseSyftOutput, parseTasksDoc, parseTasksFromContent, parseTrivyOutput, parseTrivyVulnerabilities, processPackageDir, readAisdlcManifest, readCodeCoverageSummary, readFailOnMissingToolFromQualityPolicy, readNormalizedCoverage, readPackageJson, redactSensitiveDiagnostics, renderAntigravityAgentFile, renderAntigravitySkillFile, renderAutonomyModeSection, renderClaudeAgentFile, renderClaudeSkillFile, renderCopilotAgentFile, renderCopilotSkillFile, renderCursorAgentFile, renderCursorSkillFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCodingRuleStacks, resolveCurrentGitCommit, resolveCytoscapePath, resolveDefaultBranchBase, resolveDeterministicDate, resolveDisallowedLogFields, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveReleaseBaseBranch, resolveSastCwe, resolveSastOwasp, resolveSchemaForArtifact, resolveTargetFiles, resolveTrustedBinaryPath, resolveWinCmdSpawn, runGitleaksCli, runSemgrepCli, sanitizeDlpPayload, sanitizeDlpText, sanitizeSarifText, sanitizeSbomLicense, sanitizeTestCorpus, scaffoldGherkinSteps, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForPrivacyViolations, scanFileForSast, scanGoDependencies, scanInstalledLicenses, scanManualsInWorkspace, scanMavenDependencies, scanPnpmStore, scanPythonDependencies, scanRustDependencies, scanSubdirectories, scanWithNativeFs, scanWithSbom, scanWithSyft, scanWithTrivy, scanWithTrivyAsync, serializeSarifDocument, slugify2 as slugify, spawnTrustedBinary, stripMaskingCalls, stripTestComments, stripVolatileReportMetadata, submitReviewReport, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateAnchorExistence, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyBddReportAttestation, verifyLicenses, verifyLicensesAsync, verifyManuals, verifyPdacGraph, verifyPrivacy, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySastAsync, verifySddIntegration, verifySecrets, verifySkillExecutionEvidence, verifySkillsIntegrity, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeAisdlcManifest, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };
|
|
25111
25522
|
//# sourceMappingURL=index.js.map
|
|
25112
25523
|
//# sourceMappingURL=index.js.map
|