@aisdlc/core 4.7.1 → 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 +607 -185
- 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 +598 -186
- 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';
|
|
@@ -514,8 +515,9 @@ var HEADER_EXCLUSIONS = /* @__PURE__ */ new Set([
|
|
|
514
515
|
"else"
|
|
515
516
|
]);
|
|
516
517
|
function matchCStyleHeader(line) {
|
|
518
|
+
if (!line.includes("(") && !line.includes("function ")) return null;
|
|
517
519
|
const match = line.match(
|
|
518
|
-
/(?:(?:public|private|protected|internal|static|async|virtual|override|sealed|abstract|final|synchronized|default|fn)\s+)*(?:function\s+([a-zA-Z0-9_$]+)|(?:[a-zA-Z0-9_<>[\]
|
|
520
|
+
/(?:(?:public|private|protected|internal|static|async|virtual|override|sealed|abstract|final|synchronized|default|fn)\s+)*(?:function\s+([a-zA-Z0-9_$]+)|(?:[a-zA-Z0-9_<>[\]?,.]+\s+)+([a-zA-Z0-9_$]+)\s*(?:<[^>]+>)?\s*\([^;{}]*\)\s*(?:where\s+[^{]+|throws\s+[^{]+)?\{|([a-zA-Z0-9_$]+)\s*\([^;{}]*\)\s*(?::\s*[^{]+\s*)?\{)/
|
|
519
521
|
);
|
|
520
522
|
if (!match) return null;
|
|
521
523
|
const candidate = match[1] || match[2] || match[3];
|
|
@@ -2399,7 +2401,7 @@ function parseGenericDoc(content) {
|
|
|
2399
2401
|
if (!match) return { frontmatter: {}, body: content };
|
|
2400
2402
|
let parsed;
|
|
2401
2403
|
try {
|
|
2402
|
-
parsed =
|
|
2404
|
+
parsed = yaml3__default.load(match[1]);
|
|
2403
2405
|
} catch {
|
|
2404
2406
|
return { frontmatter: {}, body: content };
|
|
2405
2407
|
}
|
|
@@ -2871,7 +2873,7 @@ function resolvePolicyTestPatterns(rootDir, options) {
|
|
|
2871
2873
|
const policyFile = resolvePolicyFilePath(rootDir, options.policyPath);
|
|
2872
2874
|
if (!fs12.existsSync(policyFile)) return void 0;
|
|
2873
2875
|
try {
|
|
2874
|
-
return extractPatternsFromPolicyDoc(
|
|
2876
|
+
return extractPatternsFromPolicyDoc(yaml3__default.load(fs12.readFileSync(policyFile, "utf-8")));
|
|
2875
2877
|
} catch {
|
|
2876
2878
|
return void 0;
|
|
2877
2879
|
}
|
|
@@ -3057,7 +3059,7 @@ function applyOptionOverrides(policy, overrides) {
|
|
|
3057
3059
|
function parsePolicyYaml(content) {
|
|
3058
3060
|
let doc;
|
|
3059
3061
|
try {
|
|
3060
|
-
doc =
|
|
3062
|
+
doc = yaml3__default.load(content);
|
|
3061
3063
|
} catch (err) {
|
|
3062
3064
|
throw new Error(`[AI-SDLC Fail-Closed] Invalid YAML in quality-policy: ${err instanceof Error ? err.message : String(err)}`);
|
|
3063
3065
|
}
|
|
@@ -3589,7 +3591,7 @@ function parseChangeProfile(specFile) {
|
|
|
3589
3591
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
3590
3592
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
3591
3593
|
if (match) {
|
|
3592
|
-
const parsedFm =
|
|
3594
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
3593
3595
|
if (parsedFm?.profile && ["patch", "standard", "critical"].includes(String(parsedFm.profile))) {
|
|
3594
3596
|
return parsedFm.profile;
|
|
3595
3597
|
}
|
|
@@ -3616,7 +3618,7 @@ function validateSpecFileContent(specFile, changeWorkspaceDir, errors) {
|
|
|
3616
3618
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
3617
3619
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
3618
3620
|
if (match) {
|
|
3619
|
-
const parsedFm =
|
|
3621
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
3620
3622
|
if (parsedFm) checkSpecGherkinFormat(parsedFm, rawSpec, changeWorkspaceDir, errors);
|
|
3621
3623
|
}
|
|
3622
3624
|
} catch {
|
|
@@ -3689,7 +3691,7 @@ var OpenSpecAdapter = class {
|
|
|
3689
3691
|
const handoff = normalizeHandoffPayload(options.handoff, options.changeId);
|
|
3690
3692
|
const filename = options.format === "json" ? "handoff.json" : "handoff.yaml";
|
|
3691
3693
|
const filePath = path14.join(changeDir, filename);
|
|
3692
|
-
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 });
|
|
3693
3695
|
fs12.writeFileSync(filePath, content, "utf-8");
|
|
3694
3696
|
return filePath;
|
|
3695
3697
|
}
|
|
@@ -3709,7 +3711,7 @@ var OpenSpecAdapter = class {
|
|
|
3709
3711
|
if (fs12.existsSync(fullPath)) {
|
|
3710
3712
|
try {
|
|
3711
3713
|
const raw = fs12.readFileSync(fullPath, "utf-8").replace(/^\uFEFF/, "");
|
|
3712
|
-
const parsed = file.endsWith(".json") ? JSON.parse(raw) :
|
|
3714
|
+
const parsed = file.endsWith(".json") ? JSON.parse(raw) : yaml3__default.load(raw);
|
|
3713
3715
|
if (parsed && typeof parsed === "object" && parsed.id && String(parsed.id).startsWith("HOF-")) {
|
|
3714
3716
|
return parsed;
|
|
3715
3717
|
}
|
|
@@ -3748,7 +3750,7 @@ function parseChangeProfile2(specFile) {
|
|
|
3748
3750
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
3749
3751
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
3750
3752
|
if (match) {
|
|
3751
|
-
const parsedFm =
|
|
3753
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
3752
3754
|
if (parsedFm?.profile && ["patch", "standard", "critical"].includes(String(parsedFm.profile))) {
|
|
3753
3755
|
return parsedFm.profile;
|
|
3754
3756
|
}
|
|
@@ -3775,7 +3777,7 @@ function validateSpecFileContent2(specFile, changeWorkspaceDir, errors) {
|
|
|
3775
3777
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
3776
3778
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
3777
3779
|
if (match) {
|
|
3778
|
-
const parsedFm =
|
|
3780
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
3779
3781
|
if (parsedFm) checkSpecGherkinFormat2(parsedFm, rawSpec, changeWorkspaceDir, errors);
|
|
3780
3782
|
}
|
|
3781
3783
|
} catch {
|
|
@@ -3855,7 +3857,7 @@ var SpecKitAdapter = class {
|
|
|
3855
3857
|
}
|
|
3856
3858
|
const filename = options.format === "json" ? "handoff.json" : "handoff.yaml";
|
|
3857
3859
|
const filePath = path14.join(changeDir, filename);
|
|
3858
|
-
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 });
|
|
3859
3861
|
fs12.writeFileSync(filePath, content, "utf-8");
|
|
3860
3862
|
const specifyMemoryDir = path14.join(options.rootDir, ".specify", "memory");
|
|
3861
3863
|
if (fs12.existsSync(path14.join(options.rootDir, ".specify"))) {
|
|
@@ -3881,7 +3883,7 @@ var SpecKitAdapter = class {
|
|
|
3881
3883
|
if (fs12.existsSync(fullPath)) {
|
|
3882
3884
|
try {
|
|
3883
3885
|
const raw = fs12.readFileSync(fullPath, "utf-8").replace(/^\uFEFF/, "");
|
|
3884
|
-
const parsed = file.endsWith(".json") ? JSON.parse(raw) :
|
|
3886
|
+
const parsed = file.endsWith(".json") ? JSON.parse(raw) : yaml3__default.load(raw);
|
|
3885
3887
|
if (parsed && typeof parsed === "object" && parsed.id && String(parsed.id).startsWith("HOF-")) {
|
|
3886
3888
|
return parsed;
|
|
3887
3889
|
}
|
|
@@ -4548,7 +4550,7 @@ function loadCanonicalArtifacts(rootDir) {
|
|
|
4548
4550
|
}
|
|
4549
4551
|
function writeUpdatedArtifact(file, frontmatter, body) {
|
|
4550
4552
|
const yamlHeader = `---
|
|
4551
|
-
${
|
|
4553
|
+
${yaml3__default.dump(frontmatter, { indent: 2, lineWidth: -1 }).trim()}
|
|
4552
4554
|
---
|
|
4553
4555
|
`;
|
|
4554
4556
|
fs12.writeFileSync(file, yamlHeader + body, "utf-8");
|
|
@@ -5614,7 +5616,7 @@ function extractFrontmatter(content) {
|
|
|
5614
5616
|
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
5615
5617
|
if (!match) return null;
|
|
5616
5618
|
try {
|
|
5617
|
-
const parsed =
|
|
5619
|
+
const parsed = yaml3__default.load(match[1]);
|
|
5618
5620
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
5619
5621
|
return parsed;
|
|
5620
5622
|
}
|
|
@@ -5668,7 +5670,7 @@ function walkHandoffSidecars(dir, fileList = []) {
|
|
|
5668
5670
|
function extractArtifactData(filePath, content) {
|
|
5669
5671
|
if (filePath.endsWith(".yaml") || filePath.endsWith(".yml")) {
|
|
5670
5672
|
try {
|
|
5671
|
-
const parsed =
|
|
5673
|
+
const parsed = yaml3__default.load(content);
|
|
5672
5674
|
return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null;
|
|
5673
5675
|
} catch {
|
|
5674
5676
|
return null;
|
|
@@ -5973,7 +5975,7 @@ function parseInputFromIds(rawFrom) {
|
|
|
5973
5975
|
}
|
|
5974
5976
|
function renderCitationsYamlBlock(citedArtifacts) {
|
|
5975
5977
|
if (citedArtifacts.length === 0) return "";
|
|
5976
|
-
return
|
|
5978
|
+
return yaml3__default.dump(
|
|
5977
5979
|
citedArtifacts.map((c) => ({ id: c.id, digest: c.digest, comment: c.comment })),
|
|
5978
5980
|
{ indent: 2, lineWidth: -1 }
|
|
5979
5981
|
).trim().split("\n").map((line) => ` ${line}`).join("\n");
|
|
@@ -6614,7 +6616,7 @@ function renderTasksFile(changeDir, canonicalId, name, author, dateStr, reqIds)
|
|
|
6614
6616
|
const tasksPath = path14.join(changeDir, "tasks.md");
|
|
6615
6617
|
const tasksFm = buildTasksFrontmatter(canonicalId, name, reqIds);
|
|
6616
6618
|
const header = `---
|
|
6617
|
-
${
|
|
6619
|
+
${yaml3__default.dump(tasksFm, { indent: 2, lineWidth: -1 }).trim()}
|
|
6618
6620
|
---
|
|
6619
6621
|
`;
|
|
6620
6622
|
const body = TASKS_BODY.replaceAll("{{CANONICAL_ID}}", canonicalId).replaceAll("{{NAME}}", name).replaceAll("{{AUTHOR}}", author).replaceAll("{{DATE}}", dateStr);
|
|
@@ -6903,7 +6905,7 @@ function normalizeParsedRule(raw, idx) {
|
|
|
6903
6905
|
function parseDlpDoc(yamlContent) {
|
|
6904
6906
|
let doc;
|
|
6905
6907
|
try {
|
|
6906
|
-
doc =
|
|
6908
|
+
doc = yaml3__default.load(yamlContent);
|
|
6907
6909
|
} catch (err) {
|
|
6908
6910
|
throw new Error(`[AI-SDLC Fail-Closed] Invalid YAML in dlp-policy: ${err instanceof Error ? err.message : String(err)}`);
|
|
6909
6911
|
}
|
|
@@ -7159,7 +7161,7 @@ function parseFrontmatter(content) {
|
|
|
7159
7161
|
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
7160
7162
|
if (!match) return { frontmatter: {}, body: content };
|
|
7161
7163
|
try {
|
|
7162
|
-
const parsed =
|
|
7164
|
+
const parsed = yaml3__default.load(match[1]);
|
|
7163
7165
|
const frontmatter = parsed && typeof parsed === "object" ? parsed : {};
|
|
7164
7166
|
return { frontmatter, body: content.substring(match[0].length) };
|
|
7165
7167
|
} catch {
|
|
@@ -7718,7 +7720,7 @@ function parseTasksDoc(content) {
|
|
|
7718
7720
|
if (!match) return { frontmatter: { tasks: [] }, body: content };
|
|
7719
7721
|
let parsed;
|
|
7720
7722
|
try {
|
|
7721
|
-
parsed =
|
|
7723
|
+
parsed = yaml3__default.load(match[1]);
|
|
7722
7724
|
} catch {
|
|
7723
7725
|
return { frontmatter: { tasks: [] }, body: content };
|
|
7724
7726
|
}
|
|
@@ -8359,7 +8361,10 @@ function executeResolvedBinary(resolvedBin, bin, realManifest) {
|
|
|
8359
8361
|
});
|
|
8360
8362
|
return mapSpawnResult(res);
|
|
8361
8363
|
} finally {
|
|
8362
|
-
|
|
8364
|
+
try {
|
|
8365
|
+
fs12.rmSync(tempHome, { recursive: true, force: true, maxRetries: 3 });
|
|
8366
|
+
} catch {
|
|
8367
|
+
}
|
|
8363
8368
|
}
|
|
8364
8369
|
}
|
|
8365
8370
|
function runSafe(bin, rootDir, manifestDir) {
|
|
@@ -11049,7 +11054,7 @@ function applySastThresholds(defaults, thresholds) {
|
|
|
11049
11054
|
}
|
|
11050
11055
|
function parseYamlPolicyFile(policyPath) {
|
|
11051
11056
|
try {
|
|
11052
|
-
return
|
|
11057
|
+
return yaml3__default.load(fs12__default.readFileSync(policyPath, "utf-8"));
|
|
11053
11058
|
} catch (err) {
|
|
11054
11059
|
throw new SarifIngestionError(
|
|
11055
11060
|
"ERR_SARIF_MALFORMED",
|
|
@@ -11182,7 +11187,7 @@ function readFailOnMissingToolFromQualityPolicy(rootDir) {
|
|
|
11182
11187
|
const policyPath = path14.join(rootDir, "quality-policy.yaml");
|
|
11183
11188
|
if (!fs12__default.existsSync(policyPath)) return false;
|
|
11184
11189
|
try {
|
|
11185
|
-
const doc =
|
|
11190
|
+
const doc = yaml3__default.load(fs12__default.readFileSync(policyPath, "utf-8"));
|
|
11186
11191
|
const rt = doc?.release_thresholds;
|
|
11187
11192
|
const sast = rt?.sast_analysis;
|
|
11188
11193
|
return Boolean(sast?.fail_on_missing_tool ?? doc?.fail_on_missing_tool);
|
|
@@ -11625,7 +11630,7 @@ function parseVexStatements(doc) {
|
|
|
11625
11630
|
function parseLicenseDoc(content) {
|
|
11626
11631
|
let doc;
|
|
11627
11632
|
try {
|
|
11628
|
-
doc =
|
|
11633
|
+
doc = yaml3__default.load(content);
|
|
11629
11634
|
} catch (err) {
|
|
11630
11635
|
throw new Error(`[AI-SDLC Fail-Closed] Invalid YAML in license-policy: ${err instanceof Error ? err.message : String(err)}`);
|
|
11631
11636
|
}
|
|
@@ -11774,7 +11779,7 @@ function generateLicenseReportMarkdown(dependencies, violations, policy, sbomPat
|
|
|
11774
11779
|
function parseManifestItems(manifestFile) {
|
|
11775
11780
|
if (!fs12.existsSync(manifestFile)) return [];
|
|
11776
11781
|
try {
|
|
11777
|
-
const doc =
|
|
11782
|
+
const doc = yaml3__default.load(fs12.readFileSync(manifestFile, "utf-8"));
|
|
11778
11783
|
return Array.isArray(doc?.evaluated_dependencies) ? doc.evaluated_dependencies : [];
|
|
11779
11784
|
} catch {
|
|
11780
11785
|
return [];
|
|
@@ -12053,7 +12058,7 @@ function detectProfileFromChange(changeDir) {
|
|
|
12053
12058
|
const rawSpec = fs12.readFileSync(specFile, "utf-8").replace(/^\uFEFF/, "");
|
|
12054
12059
|
const match = rawSpec.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
12055
12060
|
if (match) {
|
|
12056
|
-
const parsedFm =
|
|
12061
|
+
const parsedFm = yaml3__default.load(match[1]);
|
|
12057
12062
|
if (parsedFm && parsedFm.profile && ["patch", "standard", "critical"].includes(String(parsedFm.profile))) {
|
|
12058
12063
|
return parsedFm.profile;
|
|
12059
12064
|
}
|
|
@@ -12212,7 +12217,7 @@ function parseMdFrontmatter(raw) {
|
|
|
12212
12217
|
return { fm: {}, body: cleaned.trim() };
|
|
12213
12218
|
}
|
|
12214
12219
|
try {
|
|
12215
|
-
const parsed =
|
|
12220
|
+
const parsed = yaml3__default.load(match[1]);
|
|
12216
12221
|
const fm = parsed && typeof parsed === "object" ? parsed : {};
|
|
12217
12222
|
return { fm, body: cleaned.substring(match[0].length).trim() };
|
|
12218
12223
|
} catch {
|
|
@@ -12562,7 +12567,7 @@ function extractParsedFrontmatter(content) {
|
|
|
12562
12567
|
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
12563
12568
|
if (!match) return null;
|
|
12564
12569
|
try {
|
|
12565
|
-
const parsed =
|
|
12570
|
+
const parsed = yaml3__default.load(match[1]);
|
|
12566
12571
|
if (parsed && typeof parsed === "object") {
|
|
12567
12572
|
const fm = parsed;
|
|
12568
12573
|
if (fm.id && isRequirementArtifact2(fm)) {
|
|
@@ -13020,7 +13025,7 @@ function runGitleaksCli(rootDir) {
|
|
|
13020
13025
|
try {
|
|
13021
13026
|
const output = execFileSync(
|
|
13022
13027
|
"gitleaks",
|
|
13023
|
-
["detect", "--no-git", "--report-format", "json", "--report-path", "
|
|
13028
|
+
["detect", "--no-git", "--report-format", "json", "--report-path", "-"],
|
|
13024
13029
|
{
|
|
13025
13030
|
cwd: rootDir,
|
|
13026
13031
|
encoding: "utf-8",
|
|
@@ -13775,7 +13780,7 @@ var PII_SAST_RULES = [
|
|
|
13775
13780
|
function parsePrivacyDoc(raw, candidate) {
|
|
13776
13781
|
let parsed;
|
|
13777
13782
|
try {
|
|
13778
|
-
parsed =
|
|
13783
|
+
parsed = yaml3__default.load(raw);
|
|
13779
13784
|
} catch (err) {
|
|
13780
13785
|
throw new Error(`[AI-SDLC Fail-Closed] Invalid YAML in privacy-policy '${candidate}': ${err instanceof Error ? err.message : String(err)}`);
|
|
13781
13786
|
}
|
|
@@ -14243,6 +14248,116 @@ function verifyPrivacy(options = {}) {
|
|
|
14243
14248
|
writePrivacyOutputsIfNeeded(result, options, policy, rootDir);
|
|
14244
14249
|
return result;
|
|
14245
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
|
+
}
|
|
14246
14361
|
var VALID_REASONING_EFFORTS = /* @__PURE__ */ new Set(["low", "medium", "high", "max"]);
|
|
14247
14362
|
function normalizeReasoningEffort(raw) {
|
|
14248
14363
|
if (!raw) return void 0;
|
|
@@ -15141,7 +15256,7 @@ function resolveVersionFromProposal(changeDir) {
|
|
|
15141
15256
|
const propContent = fs12.readFileSync(proposalFile, "utf-8");
|
|
15142
15257
|
const propFm = propContent.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
15143
15258
|
if (!propFm) return "1.0.0";
|
|
15144
|
-
const parsedProp =
|
|
15259
|
+
const parsedProp = yaml3__default.load(propFm[1]);
|
|
15145
15260
|
return parsedProp?.version ? String(parsedProp.version) : "1.0.0";
|
|
15146
15261
|
}
|
|
15147
15262
|
function resolveChangeVersion(fm, changeDir) {
|
|
@@ -15160,7 +15275,7 @@ function parseTasksFrontmatter(tasksFile) {
|
|
|
15160
15275
|
const content = fs12.readFileSync(tasksFile, "utf-8");
|
|
15161
15276
|
const fmMatch = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
15162
15277
|
if (!fmMatch) return null;
|
|
15163
|
-
const fm =
|
|
15278
|
+
const fm = yaml3__default.load(fmMatch[1]);
|
|
15164
15279
|
return fm && Array.isArray(fm.tasks) ? fm : null;
|
|
15165
15280
|
} catch {
|
|
15166
15281
|
return null;
|
|
@@ -16103,7 +16218,7 @@ function extractFrontmatter2(fileContent) {
|
|
|
16103
16218
|
const match = fileContent.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
16104
16219
|
if (!match) return null;
|
|
16105
16220
|
try {
|
|
16106
|
-
return
|
|
16221
|
+
return yaml3__default.load(match[1]) || null;
|
|
16107
16222
|
} catch {
|
|
16108
16223
|
return null;
|
|
16109
16224
|
}
|
|
@@ -19072,6 +19187,149 @@ function formatAisdlcVersionOutput(rootDir = process.cwd()) {
|
|
|
19072
19187
|
return `${installed} (repo: ${manifest.version} \u2014 differs from installed CLI)`;
|
|
19073
19188
|
}
|
|
19074
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
|
+
|
|
19075
19333
|
// src/init/agent-templates.ts
|
|
19076
19334
|
var SPECIALIZED_AGENT_TEMPLATES = [
|
|
19077
19335
|
{
|
|
@@ -19450,8 +19708,54 @@ var LIFECYCLE_SKILL_TEMPLATES = [
|
|
|
19450
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).",
|
|
19451
19709
|
globs: "specs/**, architecture/**, src/**, packages/**, tests/**",
|
|
19452
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."
|
|
19453
19743
|
}
|
|
19454
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
|
+
}
|
|
19455
19759
|
function renderAntigravitySkillFile(skill) {
|
|
19456
19760
|
return `---
|
|
19457
19761
|
name: ${skill.id}
|
|
@@ -19463,7 +19767,7 @@ description: >-
|
|
|
19463
19767
|
|
|
19464
19768
|
Canonical Reference: ${skill.references}
|
|
19465
19769
|
|
|
19466
|
-
${skill.body}
|
|
19770
|
+
${skill.body}${formatSkillReferencesSection(skill.id)}
|
|
19467
19771
|
`;
|
|
19468
19772
|
}
|
|
19469
19773
|
function renderCursorSkillFile(skill) {
|
|
@@ -19478,7 +19782,7 @@ alwaysApply: false
|
|
|
19478
19782
|
|
|
19479
19783
|
Canonical Reference: ${skill.references}
|
|
19480
19784
|
|
|
19481
|
-
${skill.body}
|
|
19785
|
+
${skill.body}${formatInlineSkillReferences(skill.id)}
|
|
19482
19786
|
`;
|
|
19483
19787
|
}
|
|
19484
19788
|
function renderClaudeSkillFile(skill) {
|
|
@@ -19491,7 +19795,7 @@ description: ${skill.description}
|
|
|
19491
19795
|
|
|
19492
19796
|
Canonical Reference: ${skill.references}
|
|
19493
19797
|
|
|
19494
|
-
${skill.body}
|
|
19798
|
+
${skill.body}${formatSkillReferencesSection(skill.id)}
|
|
19495
19799
|
`;
|
|
19496
19800
|
}
|
|
19497
19801
|
function renderCopilotSkillFile(skill) {
|
|
@@ -19504,7 +19808,7 @@ description: ${skill.description}
|
|
|
19504
19808
|
|
|
19505
19809
|
Canonical Reference: ${skill.references}
|
|
19506
19810
|
|
|
19507
|
-
${skill.body}
|
|
19811
|
+
${skill.body}${formatInlineSkillReferences(skill.id)}
|
|
19508
19812
|
`;
|
|
19509
19813
|
}
|
|
19510
19814
|
var STARTER_ANTIGRAVITY_RULES = `# Google Antigravity & Gemini CLI Rules - AI-SDLC Framework
|
|
@@ -19525,100 +19829,31 @@ This file defines the operational rules and specialized role mappings for Google
|
|
|
19525
19829
|
|
|
19526
19830
|
---
|
|
19527
19831
|
|
|
19528
|
-
## 2. Specialized Roles Mapping
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
|
|
19532
|
-
-
|
|
19533
|
-
-
|
|
19534
|
-
-
|
|
19535
|
-
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
|
|
19542
|
-
### 2. \`agent-threat-modeler\` (Threat Modeler and Security Specialist)
|
|
19543
|
-
- **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.
|
|
19544
|
-
- **Input**: Use cases \`UC-*\`, functional requirements \`FR-*\`, or architecture components (\`CMP-*\`, Mermaid diagrams, ADRs).
|
|
19545
|
-
- **Output**: Cybersecurity triad (\`ACT-THREAT-*\`, \`ABUSE-*\`, \`SEC-REQ-*\`) compliant with \`schemas/security/\`, followed by handoff to \`agent-privacy-officer\`.
|
|
19546
|
-
- **Guardrails**:
|
|
19547
|
-
- \`status\` always starts in \`draft\`.
|
|
19548
|
-
- Negative BDD attack and rejection scenarios tagged with \`@security @mitigation\`.
|
|
19549
|
-
- Assignment of Zero Trust enclaves \`SEC-ENC-*\`.
|
|
19550
|
-
|
|
19551
|
-
### 3. \`agent-privacy-officer\` (Data Protection & Privacy-by-Design Specialist)
|
|
19552
|
-
- **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\`.
|
|
19553
|
-
- **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.
|
|
19554
|
-
- **Guardrails**:
|
|
19555
|
-
- \`status\` always starts in \`draft\`.
|
|
19556
|
-
- Every \`PRIV-REQ-*\` includes Gherkin scenarios tagged with \`@<PRIV-REQ-ID> @privacy @gdpr @automated @regression\`.
|
|
19557
|
-
- Run \`pnpm run verify:privacy\` to block PII in logs/prompts and enforce ROPA & retention/erasure policies.
|
|
19558
|
-
|
|
19559
|
-
### 4. \`agent-system-architect\` (System Architect)
|
|
19560
|
-
- **Mission**: Translate the approved product definition into a modular technical architecture based on arc42 enriched with NAF v4.
|
|
19561
|
-
- **Output**: Architecture components (\`CMP-*\`), Mermaid diagrams, and immutable \`ADR-*\` records compliant with \`schemas/architecture/\`.
|
|
19562
|
-
- **Guardrails**:
|
|
19563
|
-
- 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).
|
|
19564
|
-
- **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).
|
|
19565
|
-
- 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.
|
|
19566
|
-
|
|
19567
|
-
### 5. \`agent-qa-engineer\` (QA Engineer and SDET)
|
|
19568
|
-
- **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.
|
|
19569
|
-
- **Input**: Approved requirements from the \`handoff.yaml\` sidecar (\`HOF-*\`).
|
|
19570
|
-
- **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).
|
|
19571
|
-
- **Guardrails**:
|
|
19572
|
-
- FORBIDDEN to include production code or anticipate implementations.
|
|
19573
|
-
- **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.
|
|
19574
|
-
- **Mandatory E2E & UI Testing**: Never forget or omit End-to-End (E2E) and User Interface (UI) tests.
|
|
19575
|
-
- **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.
|
|
19576
|
-
- Every \`FR-*\` must have at least nominal + boundary + out-of-range scenarios; missing these blocks handoff to \`agent-developer\`.
|
|
19577
|
-
- Mandatory tags: \`@<FR-ID> @automated @regression\`.
|
|
19578
|
-
- Run \`pnpm run verify:testing\` before emitting handoff.
|
|
19579
|
-
|
|
19580
|
-
### 6. \`agent-developer\` (Software Developer)
|
|
19581
|
-
- **Mission**: Implement atomic tasks from SDD specifications (\`tasks.md\`) with clean, strictly typed code and thorough tests.
|
|
19582
|
-
- **Directives**:
|
|
19583
|
-
- **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.
|
|
19584
|
-
- Respect the autonomy mode assigned in \`tasks.md\` (\`AUTONOMOUS\`, \`HUMAN_REVIEW_PLAN\`, \`AMBIGUOUS\`, \`HIGH_RISK_MANUAL\`).
|
|
19585
|
-
- Make tests delivered by \`agent-qa-engineer\` pass green without altering them to accommodate code.
|
|
19586
|
-
- Respect \`quality-policy.yaml\` thresholds: CC $\\le 10$, Cognitive $\\le 15$, MI $\\ge 50$, LOC $\\le 40$.
|
|
19587
|
-
- Run pre-flight with auto-fix: \`pnpm run check:fix\` and full verification: \`pnpm run verify:all\`.
|
|
19588
|
-
- **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.
|
|
19589
|
-
- **Global Styles Protection**: When touching or refactoring frontend views, verify that global stylesheet/asset imports remain intact and that layouts suffer no visual disruption.
|
|
19590
|
-
- **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.
|
|
19591
|
-
- 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\`).
|
|
19592
|
-
|
|
19593
|
-
### 7. \`agent-expert-user\` (Expert User and Domain Evaluator)
|
|
19594
|
-
- **Mission**: Contrast design and specifications (design phase) and functionally validate finished software against \`UC-*\` and \`FR-*\` (post-development phase).
|
|
19595
|
-
- **Directives**:
|
|
19596
|
-
- 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.
|
|
19597
|
-
- 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.
|
|
19598
|
-
- Emit handoff block suggesting Checkpoint 2 (\`agent-auditor\` $\\parallel$ \`agent-adversary\` + \`agent-privacy-officer\`) if compliant, or return to \`agent-developer\` on functional drift.
|
|
19599
|
-
|
|
19600
|
-
### 8. \`agent-devops\` (Automation and Infrastructure Engineer)
|
|
19601
|
-
- **Mission**: Maintain, evolve, and audit automated project infrastructure: CI/CD workflows, Docker containers, IaC manifests, and support scripts.
|
|
19602
|
-
- **Directives**:
|
|
19603
|
-
- Strict infrastructure domain: Operates exclusively in \`.github/workflows/\`, \`Dockerfile*\`, \`docker-compose*.yml\`, IaC manifests, and \`scripts/\`.
|
|
19604
|
-
- **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.
|
|
19605
|
-
- **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.
|
|
19606
|
-
- Infrastructure dependency policy: Verify licenses of dependencies, base images, and third-party actions according to \`license-policy.yaml\`.
|
|
19607
|
-
- Gate preservation: Ensure pipeline optimizations preserve all existing deterministic Quality Gates intact.
|
|
19608
|
-
- **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.
|
|
19609
|
-
- **Remote Verification**: Creating a PR (\`gh pr create\`) does not equal success; actively verify that remote checks pass (\`gh pr checks\`).
|
|
19610
|
-
|
|
19611
|
-
### 9. \`agent-auditor\` (Transversal Quality and Improvement Auditor)
|
|
19612
|
-
- **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.
|
|
19613
|
-
- **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).
|
|
19614
|
-
|
|
19615
|
-
### 10. \`agent-adversary\` (Transversal Red Team and Chaos Adversary)
|
|
19616
|
-
- **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).
|
|
19617
|
-
- **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. |
|
|
19618
19846
|
|
|
19619
19847
|
---
|
|
19620
19848
|
|
|
19621
|
-
## 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
|
|
19622
19857
|
- \`task/<PARENT-ID>/<TSK-ID>-<slug>\` $\\rightarrow$ \`feat/<FEAT-ID>-<slug>\` $\\rightarrow$ \`release/vX.Y.Z\` $\\rightarrow$ \`main\`.
|
|
19623
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):
|
|
19624
19859
|
\`\`\`text
|
|
@@ -19805,49 +20040,20 @@ npx tsx packages/cli/src/index.ts sdd integrate --change <chg-id>
|
|
|
19805
20040
|
|
|
19806
20041
|
---
|
|
19807
20042
|
|
|
19808
|
-
## 3. Specialized Roles Mapping
|
|
19809
|
-
|
|
19810
|
-
### 1. \`agent-product-analyst\` (Product Analyst / Scribe)
|
|
19811
|
-
- **Mission**: Capture new product intent via NAF v4 Enterprise & Capability Vision (\`ARCH-INTRO-*\`) and define/refine the product model using ProductShape.
|
|
19812
|
-
- **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.
|
|
19813
|
-
- **Input**: Business intent or natural language specification.
|
|
19814
|
-
- **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-*\`).
|
|
19815
|
-
- **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\`.
|
|
19816
|
-
|
|
19817
|
-
### 2. \`agent-threat-modeler\` (Threat Modeler and Security Specialist)
|
|
19818
|
-
- **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\`.
|
|
19819
|
-
- **Output**: Cybersecurity triad (\`ACT-THREAT-*\`, \`ABUSE-*\`, \`SEC-REQ-*\`) compliant with \`schemas/security/\`.
|
|
19820
|
-
|
|
19821
|
-
### 3. \`agent-privacy-officer\` (Data Protection & Privacy-by-Design Specialist)
|
|
19822
|
-
- **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\`.
|
|
19823
|
-
- **Directives**: Run \`pnpm run verify:privacy\`, enforce PII masking in logs/LLM prompts, and trigger \`DPIA-*\` requests on Art. 9 sensitive data.
|
|
19824
|
-
|
|
19825
|
-
### 4. \`agent-system-architect\` (System Architect)
|
|
19826
|
-
- **Mission**: Translate the approved product definition into a modular technical architecture based on arc42 enriched with NAF v4 (\`CMP-*\`, Mermaid diagrams, \`ADR-*\`).
|
|
19827
|
-
- **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.
|
|
19828
|
-
|
|
19829
|
-
### 5. \`agent-qa-engineer\` (QA Engineer and SDET)
|
|
19830
|
-
- **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.
|
|
19831
|
-
- **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/\`)
|
|
19832
20044
|
|
|
19833
|
-
|
|
19834
|
-
|
|
19835
|
-
|
|
19836
|
-
|
|
19837
|
-
|
|
19838
|
-
-
|
|
19839
|
-
|
|
19840
|
-
|
|
19841
|
-
-
|
|
19842
|
-
|
|
19843
|
-
|
|
19844
|
-
|
|
19845
|
-
- **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\`).
|
|
19846
|
-
- **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).
|
|
19847
|
-
|
|
19848
|
-
### 10. \`agent-adversary\` (Transversal Red Team and Chaos Adversary)
|
|
19849
|
-
- **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.
|
|
19850
|
-
- **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. |
|
|
19851
20057
|
|
|
19852
20058
|
---
|
|
19853
20059
|
|
|
@@ -20033,6 +20239,88 @@ var STARTER_VSCODE_MCP = `{
|
|
|
20033
20239
|
}
|
|
20034
20240
|
}
|
|
20035
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
|
+
`;
|
|
20036
20324
|
|
|
20037
20325
|
// src/init/architecture-templates.ts
|
|
20038
20326
|
var STARTER_ARCH_ADR = `---
|
|
@@ -21399,10 +21687,59 @@ var STARTER_ANTIGRAVITY_HOOKS_JSON = `{
|
|
|
21399
21687
|
}
|
|
21400
21688
|
]
|
|
21401
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
|
+
}
|
|
21402
21702
|
]
|
|
21403
21703
|
}
|
|
21404
21704
|
}
|
|
21405
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
|
+
`;
|
|
21406
21743
|
var STARTER_AGENT_GUARD_WRAPPER_CJS = `#!/usr/bin/env node
|
|
21407
21744
|
// Forwarding wrapper or direct execution from .agent
|
|
21408
21745
|
require('../../scripts/guard-branch.cjs');
|
|
@@ -22526,21 +22863,44 @@ function resolveAgentTargets(agents) {
|
|
|
22526
22863
|
}
|
|
22527
22864
|
return result;
|
|
22528
22865
|
}
|
|
22529
|
-
function
|
|
22530
|
-
dirs.push("
|
|
22866
|
+
function appendHierarchicalAgentsMd(dirs, files) {
|
|
22867
|
+
dirs.push("specs", "src", "tests");
|
|
22531
22868
|
files.push(
|
|
22532
|
-
{ relPath: "
|
|
22533
|
-
{ relPath: "
|
|
22534
|
-
{ relPath: "
|
|
22535
|
-
{ 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 }
|
|
22536
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);
|
|
22537
22897
|
for (const agent of SPECIALIZED_AGENT_TEMPLATES) {
|
|
22538
|
-
|
|
22539
|
-
files.push({ relPath: `.agent/agents/${agent.id}.md`, content });
|
|
22898
|
+
files.push({ relPath: `.agent/agents/${agent.id}.md`, content: renderAntigravityAgentFile(agent) });
|
|
22540
22899
|
}
|
|
22541
22900
|
for (const skill of LIFECYCLE_SKILL_TEMPLATES) {
|
|
22542
22901
|
dirs.push(`.agent/skills/${skill.id}`);
|
|
22543
22902
|
files.push({ relPath: `.agent/skills/${skill.id}/SKILL.md`, content: renderAntigravitySkillFile(skill) });
|
|
22903
|
+
appendSkillReferenceFiles(`.agent/skills/${skill.id}`, skill.id, dirs, files);
|
|
22544
22904
|
}
|
|
22545
22905
|
}
|
|
22546
22906
|
function appendCursorFiles(dirs, files) {
|
|
@@ -22548,7 +22908,8 @@ function appendCursorFiles(dirs, files) {
|
|
|
22548
22908
|
files.push(
|
|
22549
22909
|
{ relPath: ".cursor/rules/ai-sdlc-core.mdc", content: STARTER_CURSOR_CORE_RULES },
|
|
22550
22910
|
{ relPath: ".cursor/rules/ai-sdlc-product.mdc", content: STARTER_CURSOR_PRODUCT_RULES },
|
|
22551
|
-
{ 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 }
|
|
22552
22913
|
);
|
|
22553
22914
|
for (const agent of SPECIALIZED_AGENT_TEMPLATES) {
|
|
22554
22915
|
files.push({ relPath: `.cursor/rules/${agent.id}.mdc`, content: renderCursorAgentFile(agent) });
|
|
@@ -22560,6 +22921,7 @@ function appendCursorFiles(dirs, files) {
|
|
|
22560
22921
|
function appendClaudeFiles(dirs, files) {
|
|
22561
22922
|
dirs.push(".claude/agents", ".claude/skills");
|
|
22562
22923
|
files.push({ relPath: "CLAUDE.md", content: STARTER_CLAUDE_RULES });
|
|
22924
|
+
appendHierarchicalAgentsMd(dirs, files);
|
|
22563
22925
|
for (const agent of SPECIALIZED_AGENT_TEMPLATES) {
|
|
22564
22926
|
const content = renderClaudeAgentFile(agent);
|
|
22565
22927
|
dirs.push(`.claude/skills/${agent.id}`);
|
|
@@ -22571,6 +22933,7 @@ function appendClaudeFiles(dirs, files) {
|
|
|
22571
22933
|
for (const skill of LIFECYCLE_SKILL_TEMPLATES) {
|
|
22572
22934
|
dirs.push(`.claude/skills/${skill.id}`);
|
|
22573
22935
|
files.push({ relPath: `.claude/skills/${skill.id}/SKILL.md`, content: renderClaudeSkillFile(skill) });
|
|
22936
|
+
appendSkillReferenceFiles(`.claude/skills/${skill.id}`, skill.id, dirs, files);
|
|
22574
22937
|
}
|
|
22575
22938
|
}
|
|
22576
22939
|
function appendCopilotFiles(dirs, files) {
|
|
@@ -22602,7 +22965,13 @@ function collectAgentFiles(targets) {
|
|
|
22602
22965
|
if (isTargetIncluded(targets, "claude")) appendClaudeFiles(dirs, files);
|
|
22603
22966
|
if (isTargetIncluded(targets, "copilot")) appendCopilotFiles(dirs, files);
|
|
22604
22967
|
appendMcpFiles(dirs, files);
|
|
22605
|
-
|
|
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 };
|
|
22606
22975
|
}
|
|
22607
22976
|
function recordDryRunFile(exists, canOverwrite, relPath, results) {
|
|
22608
22977
|
if (exists && canOverwrite) results.filesUpdated.push(relPath);
|
|
@@ -23757,13 +24126,13 @@ function resolveExitCode(error) {
|
|
|
23757
24126
|
return err.killed ? null : typeof err.code === "number" ? err.code : 1;
|
|
23758
24127
|
}
|
|
23759
24128
|
function runSpawn(file, args, cwd, timeout, maxBuffer) {
|
|
23760
|
-
return new Promise((
|
|
24129
|
+
return new Promise((resolve20) => {
|
|
23761
24130
|
execFile(
|
|
23762
24131
|
file,
|
|
23763
24132
|
args,
|
|
23764
24133
|
{ shell: false, timeout, maxBuffer, cwd, env: buildSafeEnvironment(cwd), windowsHide: true },
|
|
23765
24134
|
(err, stdout, stderr) => {
|
|
23766
|
-
|
|
24135
|
+
resolve20({
|
|
23767
24136
|
stdout: truncateBuffer(stdout, maxBuffer),
|
|
23768
24137
|
stderr: truncateBuffer(stderr, maxBuffer),
|
|
23769
24138
|
exitCode: resolveExitCode(err)
|
|
@@ -24393,12 +24762,25 @@ var DoctorService = class {
|
|
|
24393
24762
|
return Array.from(rems);
|
|
24394
24763
|
}
|
|
24395
24764
|
};
|
|
24396
|
-
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
|
+
];
|
|
24397
24774
|
var GOVERNED_ROOT_FILES = /* @__PURE__ */ new Set([
|
|
24398
24775
|
"quality-policy.yaml",
|
|
24399
24776
|
"license-policy.yaml",
|
|
24400
24777
|
"privacy-policy.yaml",
|
|
24401
|
-
"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")
|
|
24402
24784
|
]);
|
|
24403
24785
|
function validateRawInputs(repoRoot, targetPath) {
|
|
24404
24786
|
if (!repoRoot) {
|
|
@@ -24936,6 +25318,9 @@ function buildCanonicalMap() {
|
|
|
24936
25318
|
for (const t of STARTER_BASE_TEMPLATES) {
|
|
24937
25319
|
canonicalMap.set(t.relPath.replace(/\\/g, "/"), { category: "template", content: t.content });
|
|
24938
25320
|
}
|
|
25321
|
+
for (const a of collectAgentFiles(resolveAgentTargets("all")).files) {
|
|
25322
|
+
canonicalMap.set(a.relPath.replace(/\\/g, "/"), { category: "agent", content: a.content });
|
|
25323
|
+
}
|
|
24939
25324
|
return canonicalMap;
|
|
24940
25325
|
}
|
|
24941
25326
|
function scanSchemasDir(schemasDir, canonicalMap) {
|
|
@@ -25102,10 +25487,37 @@ var MigrationService = class {
|
|
|
25102
25487
|
}
|
|
25103
25488
|
}
|
|
25104
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
|
+
}
|
|
25105
25517
|
return items;
|
|
25106
25518
|
}
|
|
25107
25519
|
};
|
|
25108
25520
|
|
|
25109
|
-
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 };
|
|
25110
25522
|
//# sourceMappingURL=index.js.map
|
|
25111
25523
|
//# sourceMappingURL=index.js.map
|