@aisdlc/core 4.1.0 → 4.3.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.d.ts CHANGED
@@ -1,3 +1,313 @@
1
+ import * as child_process from 'child_process';
2
+
3
+ /**
4
+ * AI-SDLC: Secure Tool Installer & Trusted PATH Resolver (CHG-059 / TSK-001)
5
+ *
6
+ * Enforces:
7
+ * - Deep-frozen TOOL_INSTALL_ALLOWLIST across win32/darwin/linux (zero sudo, zero shell metacharacters)
8
+ * - CWE-426 safe PATH resolution skipping '.' and rootDir
9
+ * - Non-blocking CI/non-interactive mode with normalized CI env check
10
+ * - Sensitive diagnostic redaction (rootDir, tokens, credentials)
11
+ */
12
+
13
+ type InstallableTool = 'semgrep' | 'trivy' | 'gitleaks' | 'bandit' | 'ruff' | 'gosec' | 'dotnet' | 'spotbugs' | 'eslint';
14
+ type SupportedPlatform = 'win32' | 'darwin' | 'linux';
15
+ interface ToolInstallSpec {
16
+ readonly tool: InstallableTool;
17
+ readonly platform: SupportedPlatform;
18
+ readonly command: string;
19
+ readonly args: readonly string[];
20
+ readonly displayCommand: string;
21
+ }
22
+ interface EnsureToolOptions {
23
+ rootDir?: string;
24
+ nonInteractive?: boolean;
25
+ noInstallPrompt?: boolean;
26
+ ci?: boolean;
27
+ isTTY?: boolean;
28
+ failOnMissingTool?: boolean;
29
+ timeoutMs?: number;
30
+ confirmInstall?: (spec: ToolInstallSpec) => Promise<boolean> | boolean;
31
+ }
32
+ interface EnsureToolResult {
33
+ tool: InstallableTool;
34
+ available: boolean;
35
+ installedNow: boolean;
36
+ prompted: boolean;
37
+ warning?: string;
38
+ missingError?: string;
39
+ }
40
+ declare const TOOL_INSTALL_ALLOWLIST: Readonly<Record<InstallableTool, Readonly<Record<SupportedPlatform, ToolInstallSpec>>>>;
41
+ declare function getToolInstallSpec(tool: string, platform?: NodeJS.Platform): ToolInstallSpec | null;
42
+ declare function resolveTrustedBinaryPath(binaryName: string, rootDir?: string): string | null;
43
+ declare const WIN_CMD_META_RE: RegExp;
44
+ declare function resolveWinCmdSpawn(binPath: string, args: readonly string[]): {
45
+ command: string;
46
+ args: string[];
47
+ rejectedMetachar?: boolean;
48
+ };
49
+ declare function spawnTrustedBinary(binPath: string, args: readonly string[], options: child_process.SpawnSyncOptionsWithStringEncoding): child_process.SpawnSyncReturns<string>;
50
+ declare function isToolInstalled(toolName: string, rootDir?: string): boolean;
51
+ declare function redactSensitiveDiagnostics(text: string, rootDir?: string): string;
52
+ declare function ensureToolAvailable(tool: InstallableTool, options?: EnsureToolOptions): Promise<EnsureToolResult>;
53
+
54
+ /**
55
+ * Regulatory Compliance Engine Types & Contracts
56
+ * Satisfies: FR-051-REGULATORY-COMPLIANCE-BUNDLE-001,
57
+ * SEC-REQ-051-TAMPER-RESISTANT-ATTESTATION-001,
58
+ * SEC-REQ-051-SENSITIVE-DATA-FILTER-001,
59
+ * SEC-REQ-051-KEYLESS-IDENTITY-VERIFICATION-001
60
+ */
61
+ type QualityGateId = 'quality' | 'traceability' | 'governance' | 'testing' | 'gherkin' | 'licenses' | 'pdac' | 'schemas' | 'duplicates' | 'security' | 'privacy' | 'friction';
62
+ declare const ALL_QUALITY_GATES: readonly QualityGateId[];
63
+ interface RegulatoryGateMapping {
64
+ gateId: QualityGateId;
65
+ euAiAct: string;
66
+ iso42001: string;
67
+ nistSsdf: string;
68
+ description: string;
69
+ }
70
+ interface GateFinding {
71
+ id: string;
72
+ ruleId: string;
73
+ message: string;
74
+ severity?: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
75
+ location?: string;
76
+ rawOutput?: string;
77
+ [key: string]: unknown;
78
+ }
79
+ interface GateEvidenceReport {
80
+ gateId: QualityGateId | string;
81
+ verdict: 'PASS' | 'FAIL' | 'WARN';
82
+ commitSha?: string;
83
+ executedAt?: string;
84
+ findings?: GateFinding[];
85
+ diagnostics?: string[];
86
+ metrics?: Record<string, unknown>;
87
+ }
88
+ interface OscalFinding {
89
+ id: string;
90
+ ruleId: string;
91
+ message: string;
92
+ [key: string]: unknown;
93
+ }
94
+ interface OscalResult {
95
+ gateId: string;
96
+ verdict: string;
97
+ findings: OscalFinding[];
98
+ [key: string]: unknown;
99
+ }
100
+ interface OscalAssessmentResultsDocument {
101
+ 'assessment-results': {
102
+ id?: string;
103
+ 'oscal-version': string;
104
+ metadata: {
105
+ title: string;
106
+ version: string;
107
+ 'last-modified': string;
108
+ [key: string]: unknown;
109
+ };
110
+ results: OscalResult[];
111
+ [key: string]: unknown;
112
+ };
113
+ }
114
+ interface InTotoSubject {
115
+ name: string;
116
+ digest: {
117
+ sha256: string;
118
+ [key: string]: string;
119
+ };
120
+ }
121
+ interface InTotoStatementV1 {
122
+ _type: 'https://in-toto.io/Statement/v1';
123
+ predicateType: string;
124
+ subject: InTotoSubject[];
125
+ predicate: Record<string, unknown>;
126
+ }
127
+ interface RegulatoryMatrixSection {
128
+ euAiActCoverage: string[];
129
+ iso42001Coverage: string[];
130
+ nistSsdfCoverage: string[];
131
+ gateMappings: Record<string, RegulatoryGateMapping>;
132
+ }
133
+ interface ComplianceBundlePayload {
134
+ schemaVersion: '1.0.0';
135
+ generatedAt: string;
136
+ generator: {
137
+ name: 'AI-SDLC Regulatory Compliance Engine';
138
+ component: 'CMP-051-REGULATORY-COMPLIANCE-ENGINE';
139
+ version: string;
140
+ };
141
+ oscalAssessmentResults: OscalAssessmentResultsDocument;
142
+ inTotoAttestation: InTotoStatementV1;
143
+ regulatoryMatrix: RegulatoryMatrixSection;
144
+ }
145
+ interface ComplianceBundleOptions {
146
+ rootDir: string;
147
+ outputPath?: string;
148
+ keyless?: boolean;
149
+ strict?: boolean;
150
+ offline?: boolean;
151
+ dryRun?: boolean;
152
+ currentCommit?: string;
153
+ evidenceReports?: GateEvidenceReport[];
154
+ }
155
+ interface ComplianceBundleResult {
156
+ success: boolean;
157
+ outputPath: string;
158
+ bundleDigest: string;
159
+ findingsCount: number;
160
+ coveredGatesCount: number;
161
+ regulatoryCoverage: {
162
+ euAiActArticles: string[];
163
+ iso42001Clauses: string[];
164
+ nistSsdfPractices: string[];
165
+ };
166
+ diagnostics: string[];
167
+ }
168
+
169
+ /**
170
+ * AI-SDLC: CLI Doctor Engine Types, DTOs and Interfaces (CMP-052-DOCTOR-ENGINE)
171
+ */
172
+ type DoctorStatus = 'pass' | 'warn' | 'fail';
173
+ type CheckStatus = DoctorStatus;
174
+ type DiagnosticCategory = 'git_hooks' | 'branch_safety' | 'schemas_pdac' | 'toolchain' | 'signing_readiness' | 'security_tools';
175
+ interface DiagnosticFinding {
176
+ id: string;
177
+ category: DiagnosticCategory;
178
+ status: DoctorStatus;
179
+ message: string;
180
+ remediation?: string;
181
+ details?: Record<string, unknown>;
182
+ }
183
+ interface CategoryReport {
184
+ category: DiagnosticCategory;
185
+ title: string;
186
+ status: DoctorStatus;
187
+ findings: DiagnosticFinding[];
188
+ }
189
+ type CategoryResult = CategoryReport;
190
+ interface DoctorOptions {
191
+ rootDir: string;
192
+ json?: boolean;
193
+ fix?: boolean;
194
+ strict?: boolean;
195
+ offline?: boolean;
196
+ timeout?: number;
197
+ }
198
+ interface DoctorReport {
199
+ overallStatus: DoctorStatus;
200
+ exitCode: 0 | 1 | 2;
201
+ timestamp: string;
202
+ categories: CategoryReport[];
203
+ remediations: string[];
204
+ }
205
+ interface IDoctorService {
206
+ diagnose(options: DoctorOptions): Promise<DoctorReport>;
207
+ }
208
+ interface ProcessExecOptions {
209
+ timeout?: number;
210
+ maxBuffer?: number;
211
+ cwd?: string;
212
+ }
213
+ interface ProcessExecResult {
214
+ stdout: string;
215
+ stderr: string;
216
+ exitCode: number | null;
217
+ }
218
+ type SafeProbeExecutable = 'node' | 'pnpm' | 'git' | 'semgrep' | 'trivy' | 'gitleaks';
219
+ interface IProcessRunner {
220
+ execSafe(executable: SafeProbeExecutable, args: string[], options?: ProcessExecOptions): Promise<ProcessExecResult>;
221
+ }
222
+ interface IFileSystemProbe {
223
+ exists(filePath: string): Promise<boolean>;
224
+ readFile(filePath: string): Promise<string>;
225
+ getFileSize(filePath: string): Promise<number>;
226
+ isExecutable(filePath: string): Promise<boolean>;
227
+ }
228
+ interface IDiagnosticsReporter {
229
+ formatTerminal(report: DoctorReport): string;
230
+ formatJson(report: DoctorReport): string;
231
+ }
232
+
233
+ /**
234
+ * AI-SDLC Migration Engine Domain Types and DTO Contracts
235
+ * Cites: CMP-053-MIGRATE-ENGINE, FR-053-CLI-MIGRATE-001
236
+ */
237
+ type MigrationFileStatus = 'UP_TO_DATE' | 'CLEAN_UPDATE' | 'LOCAL_OVERRIDE_PRESERVED' | 'CONFLICT';
238
+ type MigrationStatus = MigrationFileStatus;
239
+ type FileClassification = MigrationFileStatus;
240
+ interface MigrationOptions {
241
+ root?: string;
242
+ dryRun?: boolean;
243
+ backup?: boolean;
244
+ force?: boolean;
245
+ allowPolicyDowngrade?: boolean;
246
+ json?: boolean;
247
+ verbose?: boolean;
248
+ branch?: string;
249
+ }
250
+ interface MigrationItemReport {
251
+ file: string;
252
+ category: 'schema' | 'template' | 'policy';
253
+ status: MigrationFileStatus;
254
+ currentDigest?: string;
255
+ targetDigest?: string;
256
+ message?: string;
257
+ }
258
+ type MigrationPlanItem = MigrationItemReport;
259
+ interface MigrationSummary {
260
+ upToDate: number;
261
+ cleanUpdated: number;
262
+ overridesPreserved: number;
263
+ conflicts: number;
264
+ }
265
+ interface MigrationResult {
266
+ success: boolean;
267
+ exitCode: 0 | 1 | 2;
268
+ summary: MigrationSummary;
269
+ backupPath?: string;
270
+ details: MigrationItemReport[];
271
+ }
272
+ type MigrationReport = MigrationResult;
273
+ interface IFileSystemJail {
274
+ resolveSafe(repoRoot: string, relativePath: string): string;
275
+ readFileSafe(repoRoot: string, relativePath: string): Promise<string>;
276
+ writeFileSafe(repoRoot: string, relativePath: string, content: string): Promise<void>;
277
+ existsSafe(repoRoot: string, relativePath: string): Promise<boolean>;
278
+ ensureDirectorySafe(repoRoot: string, relativeDir: string): Promise<void>;
279
+ isSymlinkSafe(repoRoot: string, relativePath: string): Promise<boolean>;
280
+ }
281
+ interface BackupManifestEntry {
282
+ path: string;
283
+ sha256: string;
284
+ bytes: number;
285
+ }
286
+ interface BackupManifest {
287
+ timestamp: string;
288
+ changeId?: string;
289
+ files: BackupManifestEntry[];
290
+ }
291
+ interface IBackupManager {
292
+ createBackup(repoRoot: string, filesToBackup: string[]): Promise<string>;
293
+ restoreBackup(repoRoot: string, backupPath: string): Promise<void>;
294
+ }
295
+ interface ITransactionManager {
296
+ begin(repoRoot: string): Promise<string>;
297
+ stageFile(repoRoot: string, relativePath: string, content: string): Promise<void>;
298
+ commit(repoRoot: string): Promise<void>;
299
+ rollback(repoRoot: string): Promise<void>;
300
+ rollbackSync(repoRoot: string, backupPath?: string): void;
301
+ }
302
+ interface IMigrationService {
303
+ migrate(options: MigrationOptions): Promise<MigrationResult>;
304
+ preview(options: MigrationOptions): Promise<MigrationResult>;
305
+ }
306
+ interface IMigrationReporter {
307
+ formatTerminal(result: MigrationResult): string;
308
+ formatJson(result: MigrationResult): string;
309
+ }
310
+
1
311
  /**
2
312
  * AI-SDLC Core Domain Types and Interfaces
3
313
  */
@@ -14,6 +324,7 @@ interface QualityPolicy {
14
324
  target_directories: string[];
15
325
  supported_extensions: string[];
16
326
  exclude_patterns: string[];
327
+ test_patterns?: string[];
17
328
  }
18
329
  interface FunctionMetrics {
19
330
  functionName: string;
@@ -412,10 +723,13 @@ interface TaskAuditItem {
412
723
  }
413
724
  interface TestingCoverageOptions {
414
725
  rootDir?: string;
726
+ policyPath?: string;
727
+ testPatterns?: string[];
415
728
  enforceBddVariants?: boolean;
416
729
  enforceUseCaseFlows?: boolean;
417
730
  cucumberReportPath?: string;
418
731
  enforceCucumberExecution?: boolean;
732
+ enforceBddAttestation?: boolean;
419
733
  }
420
734
  interface TestingCoverageResult {
421
735
  success: boolean;
@@ -434,6 +748,8 @@ interface TestingCoverageResult {
434
748
  passedScenarios: number;
435
749
  failedScenarios: number;
436
750
  passed: boolean;
751
+ attestationValid?: boolean;
752
+ attestationErrors?: string[];
437
753
  };
438
754
  reportMarkdown: string;
439
755
  }
@@ -555,6 +871,8 @@ interface LicenseViolation {
555
871
  category: 'BLOCKED' | 'RESTRICTED' | 'UNRECOGNIZED';
556
872
  }
557
873
  type ScaTool = 'native' | 'license-checker' | 'trivy' | 'syft';
874
+ type UnresolvedLicenseReason = 'cli_not_installed' | 'cli_timeout' | 'cache_missing' | 'invalid_output' | 'output_too_large' | 'cli_failed' | 'blocked_by_repo_config' | 'path_rejected' | 'budget_exceeded';
875
+ type LicenseProvenance = 'local-metadata' | 'cli' | 'sbom-declared';
558
876
  interface ScannedDependency {
559
877
  name: string;
560
878
  version: string;
@@ -565,6 +883,8 @@ interface ScannedDependency {
565
883
  repository?: string;
566
884
  author?: string;
567
885
  isDirect?: boolean;
886
+ unresolvedReason?: UnresolvedLicenseReason;
887
+ provenance?: LicenseProvenance;
568
888
  }
569
889
  interface CycloneDxLicense {
570
890
  license: {
@@ -607,6 +927,8 @@ interface ScaVulnerability {
607
927
  installedVersion: string;
608
928
  fixedVersion?: string;
609
929
  severity: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW' | 'UNKNOWN';
930
+ ecosystem?: string;
931
+ purl?: string;
610
932
  cvssV3Score?: number;
611
933
  cvssV3Vector?: string;
612
934
  title?: string;
@@ -626,14 +948,22 @@ interface LicenseVerificationOptions {
626
948
  depth?: 'direct' | 'transitive';
627
949
  generateSbom?: boolean;
628
950
  sbomPath?: string;
951
+ sbomInputPath?: string;
629
952
  generateNotices?: boolean;
630
953
  noticesPath?: string;
631
954
  productionOnly?: boolean;
632
955
  scanVulnerabilities?: boolean;
633
956
  vulnerabilityThresholds?: VulnerabilityThresholds;
957
+ nonInteractive?: boolean;
958
+ noInstallPrompt?: boolean;
959
+ ci?: boolean;
960
+ isTTY?: boolean;
961
+ failOnMissingTool?: boolean;
962
+ confirmInstall?: (spec: ToolInstallSpec) => Promise<boolean> | boolean;
634
963
  }
635
964
  interface LicenseVerificationResult {
636
965
  success: boolean;
966
+ passed?: boolean;
637
967
  totalEvaluated: number;
638
968
  permittedCount: number;
639
969
  violations: LicenseViolation[];
@@ -644,6 +974,7 @@ interface LicenseVerificationResult {
644
974
  vulnerabilities?: ScaVulnerability[];
645
975
  vulnerabilitiesSkipped?: boolean;
646
976
  vulnerabilitiesSkipReason?: string;
977
+ warnings?: string[];
647
978
  }
648
979
  interface PdacNode {
649
980
  id: string;
@@ -723,12 +1054,14 @@ interface PreflightCheckResult {
723
1054
  digestsSynced: number;
724
1055
  gates: PreflightGateSummary[];
725
1056
  }
1057
+ type CoverageFormat = 'istanbul' | 'lcov' | 'cobertura' | 'jacoco' | 'go-coverprofile' | 'llvm-cov';
726
1058
  interface CodeCoverageSummary {
727
1059
  linesPct: number;
728
1060
  branchesPct: number;
729
1061
  functionsPct: number;
730
1062
  statementsPct?: number;
731
1063
  source: string;
1064
+ format?: CoverageFormat;
732
1065
  }
733
1066
  interface QualityReportOptions {
734
1067
  rootDir?: string;
@@ -924,6 +1257,14 @@ interface SastVerifierOptions {
924
1257
  semgrep?: boolean;
925
1258
  targetDirectories?: string[];
926
1259
  minSeverity?: SastSeverity;
1260
+ sarifPaths?: string[];
1261
+ orchestrate?: boolean;
1262
+ nonInteractive?: boolean;
1263
+ noInstallPrompt?: boolean;
1264
+ ci?: boolean;
1265
+ isTTY?: boolean;
1266
+ failOnMissingTool?: boolean;
1267
+ confirmInstall?: (spec: ToolInstallSpec) => Promise<boolean> | boolean;
927
1268
  }
928
1269
  interface SastVerifierResult {
929
1270
  success: boolean;
@@ -932,6 +1273,8 @@ interface SastVerifierResult {
932
1273
  violations: SastViolation[];
933
1274
  suppressions?: SecuritySuppression[];
934
1275
  reportMarkdown?: string;
1276
+ warnings?: string[];
1277
+ executedTools?: string[];
935
1278
  }
936
1279
  interface PromptInjectionFinding {
937
1280
  ruleId: string;
@@ -1107,6 +1450,11 @@ interface PrivacyPolicy {
1107
1450
  output_privacy_report: string;
1108
1451
  };
1109
1452
  }
1453
+ interface DataAssetField {
1454
+ name: string;
1455
+ sensitivity?: string;
1456
+ maskingStrategy?: string;
1457
+ }
1110
1458
  interface DataAssetSummary {
1111
1459
  id: string;
1112
1460
  title: string;
@@ -1116,6 +1464,7 @@ interface DataAssetSummary {
1116
1464
  retentionPeriod: string;
1117
1465
  erasureMethod: string;
1118
1466
  filePath: string;
1467
+ fields?: DataAssetField[];
1119
1468
  }
1120
1469
  interface PrivacyRopaSummary {
1121
1470
  id: string;
@@ -1213,13 +1562,17 @@ interface SarifPhysicalLocation {
1213
1562
  interface SarifLocation {
1214
1563
  physicalLocation: SarifPhysicalLocation;
1215
1564
  }
1565
+ interface SarifUriBaseId {
1566
+ uri?: string;
1567
+ uriBaseId?: string;
1568
+ }
1216
1569
  interface SarifResult {
1217
- ruleId: string;
1218
- level: SarifLevel;
1219
- message: {
1220
- text: string;
1570
+ ruleId?: string;
1571
+ level?: SarifLevel;
1572
+ message?: {
1573
+ text?: string;
1221
1574
  };
1222
- locations: SarifLocation[];
1575
+ locations?: SarifLocation[];
1223
1576
  ruleIndex?: number;
1224
1577
  properties?: Record<string, unknown>;
1225
1578
  }
@@ -1227,12 +1580,13 @@ interface SarifToolDriver {
1227
1580
  name: string;
1228
1581
  version?: string;
1229
1582
  informationUri?: string;
1230
- rules: SarifReportingDescriptor[];
1583
+ rules?: SarifReportingDescriptor[];
1231
1584
  }
1232
1585
  interface SarifRun {
1233
1586
  tool: {
1234
1587
  driver: SarifToolDriver;
1235
1588
  };
1589
+ originalUriBaseIds?: Record<string, SarifUriBaseId>;
1236
1590
  results: SarifResult[];
1237
1591
  }
1238
1592
  interface SarifDocument {
@@ -1260,12 +1614,28 @@ interface BddScenarioExecution {
1260
1614
  status: 'passed' | 'failed' | 'undefined';
1261
1615
  steps: BddStepExecution[];
1262
1616
  }
1617
+ interface BddAttestationRecord {
1618
+ featureUri: string;
1619
+ featureSha256: string;
1620
+ commitSha: string | null;
1621
+ reportDigestSha256: string;
1622
+ signatureSha256: string;
1623
+ attestedAt: string;
1624
+ }
1625
+ interface BddAttestationVerificationResult {
1626
+ valid: boolean;
1627
+ hasAttestation: boolean;
1628
+ errors: string[];
1629
+ verifiedFeatures: number;
1630
+ }
1263
1631
  interface BddFeatureExecutionReport {
1264
1632
  uri: string;
1265
1633
  featureName: string;
1266
1634
  tags: string[];
1267
1635
  scenarios: BddScenarioExecution[];
1268
1636
  passed: boolean;
1637
+ featureSha256?: string;
1638
+ commitSha?: string | null;
1269
1639
  }
1270
1640
  interface InspectRelation {
1271
1641
  id: string;
@@ -1331,6 +1701,37 @@ declare function applyRatchetMode(results: AnalysisResult[], baseline: QualityBa
1331
1701
  };
1332
1702
  declare function verifyQualityGate(options?: QualityGateOptions): QualityGateResult;
1333
1703
 
1704
+ /**
1705
+ * AI-SDLC: Universal Multi-Format Code Coverage Normalizer
1706
+ * Ingests and normalizes Istanbul JSON, LCOV, Cobertura XML (.NET Coverlet / Pytest-cov),
1707
+ * JaCoCo XML (Java/Kotlin), Go coverprofile, and LLVM-cov JSON (Rust/C/C++).
1708
+ */
1709
+
1710
+ declare const SUPPORTED_COVERAGE_FORMATS_HINT = "coverage-summary.json, lcov.info, coverage.cobertura.xml / coverage.xml, jacoco.xml, coverage.out, or llvm-cov.json";
1711
+ declare function parseIstanbulCoverageSummary(filePath: string, relSource: string): CodeCoverageSummary | null;
1712
+ declare function parseLcovCoverage(filePath: string, relSource: string): CodeCoverageSummary | null;
1713
+ declare function parseCoberturaXmlCoverage(filePath: string, relSource: string): CodeCoverageSummary | null;
1714
+ declare function parseJacocoXmlCoverage(filePath: string, relSource: string): CodeCoverageSummary | null;
1715
+ declare function parseGoCoverProfile(filePath: string, relSource: string): CodeCoverageSummary | null;
1716
+ declare function parseLlvmCovJson(filePath: string, relSource: string): CodeCoverageSummary | null;
1717
+ declare function readNormalizedCoverage(rootDir?: string, options?: {
1718
+ excludeVitestMidFlight?: boolean;
1719
+ }): CodeCoverageSummary | null;
1720
+
1721
+ /**
1722
+ * AI-SDLC: Polyglot Test File Discovery & Pattern Matching
1723
+ * Supports JS/TS, Python, .NET (C#/F#), Java/Kotlin, Go, Rust, and Gherkin (.feature),
1724
+ * plus custom glob/suffix patterns from quality-policy.yaml.
1725
+ */
1726
+ declare const DEFAULT_UNIT_TEST_PATTERNS: readonly string[];
1727
+ declare const DEFAULT_TEST_ARTIFACT_PATTERNS: readonly string[];
1728
+ interface CompiledTestMatcher {
1729
+ matches: (relativeOrFilePath: string) => boolean;
1730
+ }
1731
+ declare function compileTestPatterns(customPatterns?: readonly string[], includeFeatureFiles?: boolean): CompiledTestMatcher;
1732
+ declare function isPolyglotUnitTestFile(filePath: string, customPatterns?: readonly string[]): boolean;
1733
+ declare function isPolyglotTestArtifact(filePath: string, customPatterns?: readonly string[]): boolean;
1734
+
1334
1735
  /**
1335
1736
  * AI-SDLC: TypeScript/JavaScript Real AST Static Analysis Engine
1336
1737
  * Powered by ts-morph (MIT License)
@@ -1401,7 +1802,7 @@ declare function parseGenericDoc(content: string): {
1401
1802
  body: string;
1402
1803
  };
1403
1804
  declare function generateTestingCoverageReportMarkdown(reqAudit: RequirementAuditItem[], taskAudit: TaskAuditItem[], reqErrors: number, taskErrors: number): string;
1404
- declare function scanAllTestArtifacts(rootDir: string): Map<string, string[]>;
1805
+ declare function scanAllTestArtifacts(rootDir: string, customPatterns?: readonly string[]): Map<string, string[]>;
1405
1806
  declare function analyzeBddVariantsForRequirement(reqId: string, gherkinSources: string[]): BddVariantCoverage;
1406
1807
  declare function verifyTestingCoverage(options?: TestingCoverageOptions): TestingCoverageResult;
1407
1808
 
@@ -1442,11 +1843,19 @@ declare class BddStepRegistry {
1442
1843
  getDefinitions(): StepDefinitionEntry[];
1443
1844
  }
1444
1845
  declare function parseFeatureDocument(content: string): ParsedFeatureDocument;
1846
+ declare function computeLfSha256(content: string): string;
1847
+ declare function resolveCurrentGitCommit(rootDir: string): string | null;
1445
1848
  declare function executeBddFeature(featurePath: string, registry: BddStepRegistry, options?: {
1446
1849
  rootDir?: string;
1447
1850
  writeReportPath?: string;
1448
1851
  }): Promise<BddFeatureExecutionReport>;
1449
- declare function writeCucumberJsonReport(reports: BddFeatureExecutionReport[], outputPath: string): void;
1852
+ declare function writeCucumberJsonReport(reports: BddFeatureExecutionReport[], outputPath: string, options?: {
1853
+ rootDir?: string;
1854
+ }): void;
1855
+ declare function verifyBddReportAttestation(reportPath: string, rootDir?: string, options?: {
1856
+ requireCurrentCommit?: boolean;
1857
+ requireAttestation?: boolean;
1858
+ }): BddAttestationVerificationResult;
1450
1859
 
1451
1860
  /**
1452
1861
  * AI-SDLC: Polyglot Gherkin Step Definition Scaffolding Engine
@@ -1503,6 +1912,7 @@ interface RawLicensePolicy {
1503
1912
  sbom_format?: string;
1504
1913
  output_notices_file?: string;
1505
1914
  allowed_depth?: 'DIRECT' | 'TRANSITIVE' | string;
1915
+ fail_on_missing_tool?: boolean;
1506
1916
  };
1507
1917
  }
1508
1918
  declare function parseLicensePolicy(content: string): LicensePolicy & {
@@ -1516,6 +1926,45 @@ declare function evaluateCompoundLicense(lic: string, policy: LicensePolicy): {
1516
1926
  declare function evaluateSingleDependency(dep: ScannedDependency, policy: LicensePolicy): LicenseViolation | null;
1517
1927
  declare function generateLicenseReportMarkdown(dependencies: ScannedDependency[], violations: LicenseViolation[], policy: LicensePolicy, sbomPath?: string): string;
1518
1928
  declare function verifyLicenses(options?: LicenseVerificationOptions): LicenseVerificationResult;
1929
+ declare function verifyLicensesAsync(options?: LicenseVerificationOptions): Promise<LicenseVerificationResult>;
1930
+
1931
+ /**
1932
+ * AI-SDLC: Hardened SBOM File Ingestion (CHG-056 / TSK-001)
1933
+ * Enforces fd-based open + fstat, realpath + path.relative confinement,
1934
+ * regular-file-only, 50 MiB limit, JSON depth <= 64, <= 100,000 components,
1935
+ * and prototype-pollution key rejection.
1936
+ */
1937
+ type SbomErrorCode = 'ERR_SBOM_NOT_FOUND' | 'ERR_SBOM_NOT_REGULAR_FILE' | 'ERR_SBOM_PATH_OUTSIDE_ROOT' | 'ERR_SBOM_TOO_LARGE' | 'ERR_SBOM_MALFORMED' | 'ERR_SBOM_UNSUPPORTED' | 'ERR_SBOM_EMPTY' | 'ERR_SBOM_LIMIT_EXCEEDED' | 'ERR_SBOM_UNSAFE_KEY';
1938
+ declare class ScaSbomError extends Error {
1939
+ readonly code: SbomErrorCode;
1940
+ constructor(code: SbomErrorCode, message: string);
1941
+ }
1942
+ type SbomDocument = Record<string, unknown>;
1943
+ declare function ingestSbomFile(rootDir: string, sbomPath: string): SbomDocument;
1944
+
1945
+ /**
1946
+ * AI-SDLC: CycloneDX 1.x & SPDX 2.x SBOM Parser (CHG-056 / TSK-002)
1947
+ * Strict PURL grammar parser (independent of buildPurl), root exclusion,
1948
+ * license precedence & sanitization, deduplication, and canonical ordering.
1949
+ */
1950
+
1951
+ interface SbomComponent {
1952
+ ecosystem: string;
1953
+ namespace?: string;
1954
+ name: string;
1955
+ version: string;
1956
+ spdxLicense: string;
1957
+ purl?: string;
1958
+ }
1959
+ interface ParsedPurl {
1960
+ ecosystem: string;
1961
+ namespace?: string;
1962
+ name: string;
1963
+ version: string;
1964
+ }
1965
+ declare function parseStrictPurl(rawPurl: string): ParsedPurl | null;
1966
+ declare function sanitizeSbomLicense(raw: unknown): string;
1967
+ declare function parseIngestedSbom(doc: SbomDocument): SbomComponent[];
1519
1968
 
1520
1969
  /**
1521
1970
  * AI-SDLC: Dynamic Software Composition Analysis (SCA) Scanner
@@ -1526,6 +1975,11 @@ interface ScanOptions {
1526
1975
  depth?: 'direct' | 'transitive';
1527
1976
  tool?: ScaTool;
1528
1977
  productionOnly?: boolean;
1978
+ sbomPath?: string;
1979
+ }
1980
+ interface ScaScanResult {
1981
+ dependencies: ScannedDependency[];
1982
+ warnings: string[];
1529
1983
  }
1530
1984
  declare function isToolAvailable(toolName: string): boolean;
1531
1985
  declare function normalizeSpdxLicense(raw: unknown): string;
@@ -1563,6 +2017,7 @@ declare function evaluateVulnerabilityThresholds(vulnerabilities: ScaVulnerabili
1563
2017
  blocked: boolean;
1564
2018
  failingVulnerabilities: ScaVulnerability[];
1565
2019
  };
2020
+ declare function parseTrivyOutput(stdout: string): ScannedDependency[];
1566
2021
  declare function scanWithTrivy(rootDir: string, options?: {
1567
2022
  scanVulnerabilities?: boolean;
1568
2023
  }): {
@@ -1570,11 +2025,25 @@ declare function scanWithTrivy(rootDir: string, options?: {
1570
2025
  vulnerabilities: ScaVulnerability[];
1571
2026
  executed: boolean;
1572
2027
  };
2028
+ declare function ensureTrivyAvailable(options?: EnsureToolOptions): Promise<EnsureToolResult>;
2029
+ interface TrivyAsyncResult {
2030
+ dependencies: ScannedDependency[];
2031
+ vulnerabilities: ScaVulnerability[];
2032
+ executed: boolean;
2033
+ warnings: string[];
2034
+ missingError?: string;
2035
+ }
2036
+ declare function scanWithTrivyAsync(rootDir: string, options?: EnsureToolOptions & {
2037
+ scanVulnerabilities?: boolean;
2038
+ }): Promise<TrivyAsyncResult>;
2039
+ declare function parseSyftOutput(stdout: string): ScannedDependency[];
1573
2040
  declare function scanWithSyft(rootDir: string): {
1574
2041
  dependencies: ScannedDependency[];
1575
2042
  executed: boolean;
1576
2043
  };
1577
2044
  declare function scanInstalledLicenses(rootDir: string, options?: ScanOptions): ScannedDependency[];
2045
+ declare function mergeSbomGaps(localDeps: ScannedDependency[], sbomComponents: SbomComponent[]): ScaScanResult;
2046
+ declare function scanWithSbom(rootDir: string, sbomPath: string, options?: ScanOptions): ScaScanResult;
1578
2047
 
1579
2048
  /**
1580
2049
  * AI-SDLC: CycloneDX 1.5 JSON SBOM & Third-Party Notices Generator
@@ -1766,6 +2235,8 @@ declare function runSemgrepCli(rootDir: string): SastViolation[];
1766
2235
  declare function walkSourceFiles(dir: string, rootDir: string, excludes?: string[]): string[];
1767
2236
  declare function scanFileForSast(filePath: string, rootDir: string, minSeverity?: SastSeverity, collectedSuppressions?: SecuritySuppression[]): SastViolation[];
1768
2237
  declare function verifySast(options?: SastVerifierOptions): SastVerifierResult;
2238
+ declare function readFailOnMissingToolFromQualityPolicy(rootDir: string): boolean;
2239
+ declare function verifySastAsync(options?: SastVerifierOptions): Promise<SastVerifierResult>;
1769
2240
  declare function generateSastReportMarkdown(result: SastVerifierResult): string;
1770
2241
  declare const PROMPT_INJECTION_SIGNATURES: readonly {
1771
2242
  ruleId: string;
@@ -1775,9 +2246,109 @@ declare const PROMPT_INJECTION_SIGNATURES: readonly {
1775
2246
  }[];
1776
2247
  declare function detectPromptInjection(content: string): PromptInjectionFinding[];
1777
2248
 
2249
+ /**
2250
+ * AI-SDLC: Polyglot SAST CLI Orchestrator (CHG-059 / TSK-002)
2251
+ *
2252
+ * Detects project ecosystems deterministically, runs native SAST CLIs + Semgrep
2253
+ * with shell: false and bounded timeouts, writes SARIF v2.1.0 to an isolated 0o700
2254
+ * temp directory, and ingests via CHG-057 two-root confinement.
2255
+ */
2256
+
2257
+ type ProjectEcosystem = 'python' | 'go' | 'dotnet' | 'java' | 'node';
2258
+ interface PolyglotOrchestrationOptions {
2259
+ semgrep?: boolean;
2260
+ nonInteractive?: boolean;
2261
+ noInstallPrompt?: boolean;
2262
+ ci?: boolean;
2263
+ isTTY?: boolean;
2264
+ failOnMissingTool?: boolean;
2265
+ timeoutMs?: number;
2266
+ confirmInstall?: (spec: ToolInstallSpec) => Promise<boolean> | boolean;
2267
+ }
2268
+ interface PolyglotToolDiagnostic {
2269
+ tool: InstallableTool;
2270
+ status: 'executed' | 'skipped' | 'failed';
2271
+ message?: string;
2272
+ }
2273
+ interface PolyglotOrchestrationResult {
2274
+ ecosystems: ProjectEcosystem[];
2275
+ violations: SastViolation[];
2276
+ warnings: string[];
2277
+ diagnostics: PolyglotToolDiagnostic[];
2278
+ executedTools: InstallableTool[];
2279
+ }
2280
+ declare function detectProjectEcosystems(rootDir: string): ProjectEcosystem[];
2281
+ declare function deduplicateAndSortSastViolations(violations: SastViolation[]): SastViolation[];
2282
+ declare function orchestratePolyglotSast(rootDir: string, options?: PolyglotOrchestrationOptions): Promise<PolyglotOrchestrationResult>;
2283
+
2284
+ /**
2285
+ * AI-SDLC: Hardened OASIS SARIF v2.1.0 File Ingestion (CHG-057 / TSK-001)
2286
+ * Enforces realpath root confinement (Windows drive-letter normalized),
2287
+ * lstat + open + fstat(fd) anti-TOCTOU check, 50 MiB limit, iterative pre-parse
2288
+ * JSON depth <= 64, <= 100,000 accumulated results, prototype-pollution key
2289
+ * rejection, and strict SARIF v2.1.0 schema checks.
2290
+ */
2291
+
2292
+ type SarifErrorCode = 'ERR_SARIF_NOT_FOUND' | 'ERR_SARIF_NOT_REGULAR_FILE' | 'ERR_SARIF_PATH_OUTSIDE_ROOT' | 'ERR_SARIF_TOO_LARGE' | 'ERR_SARIF_MALFORMED' | 'ERR_SARIF_UNSUPPORTED_VERSION' | 'ERR_SARIF_LIMIT_EXCEEDED' | 'ERR_SARIF_UNSAFE_KEY';
2293
+ declare class SarifIngestionError extends Error {
2294
+ readonly code: SarifErrorCode;
2295
+ constructor(code: SarifErrorCode, message: string);
2296
+ }
2297
+ declare const MAX_SARIF_BYTES: number;
2298
+ declare const MAX_SARIF_JSON_DEPTH = 64;
2299
+ declare const MAX_SARIF_RESULTS = 100000;
2300
+ declare function normalizeWinDrive(filePath: string): string;
2301
+ declare function isUncOrEmptyPath(targetPath: string): boolean;
2302
+ declare function isPathOutsideRoot(realRoot: string, targetPath: string): boolean;
2303
+ declare function ingestSarifFiles(rootDir: string, sarifPaths: string[]): SarifDocument[];
2304
+
2305
+ /**
2306
+ * AI-SDLC: OASIS SARIF v2.1.0 Normalization, URI Confinement & Sanitization (CHG-057 / TSK-002)
2307
+ */
2308
+
2309
+ declare const SEVERITY_RANK: Record<SastSeverity, number>;
2310
+ declare function sanitizeSarifText(raw: string): string;
2311
+ declare function deduplicateAndSortViolations(violations: SastViolation[]): SastViolation[];
2312
+ declare function parseSarifDocument(rootDir: string, doc: SarifDocument): SastViolation[];
2313
+ declare function parseSarifDocuments(rootDir: string, docs: SarifDocument[]): SastViolation[];
2314
+
1778
2315
  declare function parseSecuritySuppression(line: string, filePath: string, lineNumber: number, referenceDate?: Date): SecuritySuppression | null;
1779
2316
  declare function generateSuppressionsAuditReport(suppressions: SecuritySuppression[]): string;
1780
2317
 
2318
+ /**
2319
+ * AI-SDLC: Polyglot PII-SAST Logging, Masking Stripper & Data Asset Field Resolution
2320
+ *
2321
+ * Implements CMP-058-POLYGLOT-PII-LOGGING (Gate 12):
2322
+ * - Safe DataAssetField extraction with prototype-key rejection
2323
+ * - O(n) identifier normalization to canonical snake_case
2324
+ * - Policy allow_in_logs resolution via Object.hasOwn
2325
+ * - O(n) string-literal-aware masking call stripper
2326
+ * - Multi-line bounded polyglot logger detection (TS/JS, Python, .NET, Java, Go)
2327
+ * - Violation deduplication and canonical deterministic sorting
2328
+ */
2329
+
2330
+ /**
2331
+ * Normalizes PascalCase, camelCase, and getter-prefixed identifiers to canonical snake_case in O(n) time.
2332
+ */
2333
+ declare function normalizeIdentifierToSnakeCase(token: string): string;
2334
+ /**
2335
+ * Resolves disallowed log field identifiers (canonical snake_case -> DATA-ASSET-* ID) against privacy-policy.yaml.
2336
+ */
2337
+ declare function resolveDisallowedLogFields(dataAssets: DataAssetSummary[], policy: PrivacyPolicy): Map<string, string>;
2338
+ /**
2339
+ * Strips masking/pseudonymization calls (mask, redact, pseudonymize, sha256, tokenize)
2340
+ * in O(n) time with balanced-paren, template-literal, and string-literal awareness.
2341
+ */
2342
+ declare function stripMaskingCalls(input: string): string;
2343
+ /**
2344
+ * Detects a corporate logger call across JS/TS, Python, .NET/C#, Java, and Go.
2345
+ */
2346
+ declare function detectPolyglotLoggerCall(line: string): string | null;
2347
+ /**
2348
+ * Deduplicates privacy violations by (relPath, lineNumber, ruleId) and sorts canonically.
2349
+ */
2350
+ declare function deduplicateAndSortPrivacyViolations(violations: PrivacyViolation[]): PrivacyViolation[];
2351
+
1781
2352
  /**
1782
2353
  * AI-SDLC: Privacy-by-Design as Code (PDaC) & Data Protection Verifier (Gate 12)
1783
2354
  *
@@ -1797,7 +2368,8 @@ interface PiiSastRule {
1797
2368
  }
1798
2369
  declare const PII_SAST_RULES: readonly PiiSastRule[];
1799
2370
  declare function loadPrivacyPolicy(rootDir?: string, policyPath?: string): PrivacyPolicy;
1800
- declare function scanFileForPrivacyViolations(filePath: string, rootDir: string, policy?: PrivacyPolicy): PrivacyViolation[];
2371
+ declare function scanFileForPrivacyViolations(filePath: string, rootDir: string, policy?: PrivacyPolicy, disallowedLogFields?: Map<string, string>): PrivacyViolation[];
2372
+ declare function parseDataAsset(fm: Record<string, unknown>, relPath: string): DataAssetSummary;
1801
2373
  declare function generateRopaInventoryMarkdown(result: PrivacyVerifierResult, policy?: PrivacyPolicy): string;
1802
2374
  declare function generatePrivacyReportMarkdown(result: PrivacyVerifierResult, policy?: PrivacyPolicy): string;
1803
2375
  declare function verifyPrivacy(options?: PrivacyVerifierOptions): PrivacyVerifierResult;
@@ -2105,9 +2677,10 @@ interface DashboardMetricsData {
2105
2677
  activeBranch: string;
2106
2678
  branchTelemetries?: Record<string, PrKpiAggregation>;
2107
2679
  totalTelemetry?: PrKpiAggregation | null;
2680
+ complianceBundle?: ComplianceBundlePayload | null;
2108
2681
  }
2109
2682
  declare function renderAutonomyModeSection(mode: string, statusIcon: string, count: number, roleDescription: string, allTasks?: TaskSummary[]): string;
2110
- declare function renderManualsTab(manuals: ManualsVerificationResult): string;
2683
+ declare function renderManualsTab(manuals: ManualsVerificationResult, complianceBundle?: ComplianceBundlePayload | null): string;
2111
2684
  declare function renderDashboardHtml(graphData: GraphElementsResult, metricsData: DashboardMetricsData, title?: string, generationDate?: string): string;
2112
2685
 
2113
2686
  /**
@@ -2130,6 +2703,7 @@ declare function collectDashboardMetrics(rootDir: string): {
2130
2703
  activeBranch: string;
2131
2704
  branchTelemetries: Record<string, PrKpiAggregation>;
2132
2705
  totalTelemetry: PrKpiAggregation | null;
2706
+ complianceBundle: ComplianceBundlePayload | null;
2133
2707
  };
2134
2708
  /**
2135
2709
  * Main function to generate the dashboard report.
@@ -2623,7 +3197,7 @@ declare function writeReportFileIfChanged(filePath: string, content: string): bo
2623
3197
  * Pure, synchronous, offline-first redaction of sensitive credentials, PII, and internal URLs
2624
3198
  * before context is dispatched through MCP tools or CLI outputs to foundation models.
2625
3199
  */
2626
- interface DlpRule {
3200
+ interface DlpRule$1 {
2627
3201
  id: string;
2628
3202
  description: string;
2629
3203
  pattern: string;
@@ -2634,14 +3208,14 @@ interface DlpPolicy {
2634
3208
  version: string;
2635
3209
  enabled: boolean;
2636
3210
  zero_data_retention_required?: boolean;
2637
- rules: DlpRule[];
3211
+ rules: DlpRule$1[];
2638
3212
  }
2639
3213
  interface DlpSanitizeResult {
2640
3214
  sanitizedText: string;
2641
3215
  redactionCount: number;
2642
3216
  triggeredRuleIds: string[];
2643
3217
  }
2644
- declare const DEFAULT_DLP_RULES: readonly DlpRule[];
3218
+ declare const DEFAULT_DLP_RULES: readonly DlpRule$1[];
2645
3219
  declare function createDefaultDlpPolicy(): DlpPolicy;
2646
3220
  declare function parseDlpPolicy(yamlContent: string): DlpPolicy;
2647
3221
  declare function loadDlpPolicy(rootDir?: string, customPolicyPath?: string): DlpPolicy;
@@ -2697,4 +3271,354 @@ declare function inspectElement(query: string, options?: InspectOptions): Inspec
2697
3271
  */
2698
3272
  declare function formatInspectResultMarkdown(result: InspectResult): string;
2699
3273
 
2700
- export { ALL_ARCHITECTURE_TEMPLATES, type ActiveTaskMatch, type AgentTarget, type AnalysisResult, type ArchTemplateDef, type ArchitectureGranularity, type ArtifactFrontmatter, type ArtifactSchemaOptions, type ArtifactSchemaResult, type ArtifactSchemaViolation, type ArtifactValidationResult, type AuthorIdentity, type AuthorKpiSummary, type AutonomyMode, BRANCH_PATTERNS, type BddFeatureExecutionReport, type BddScenarioExecution, type BddStepExecution, BddStepRegistry, type BddVariantCoverage, type BranchClassificationResult, type BranchHierarchyPlan, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, CPP_CLANG_TIDY, CPP_CMAKE_STRICT, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CiProvider, type CodeCoverageSummary, type CodingRuleStack, type CommitKpiRecord, type CommitTrailers, type ContractTraceAudit, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CycloneDxVulnerability, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXCLUDE_DIRS, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, DOTNET_DIRECTORY_BUILD_PROPS, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DataAssetSummary, type DesignContractDeclaration, type DiffLineItem, type DlpPolicy, type DlpRule, type DlpSanitizeResult, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type ExtractedFeature, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, GHERKIN_GENERATOR_SPECS, GO_GOLANGCI_YML, GRADLE_STRICT_INIT_KTS, type GenerateSarifOptions, type GherkinExtractionOptions, type GherkinExtractionResult, type GherkinGeneratorSpec, type GherkinScaffoldExecFn, type GherkinScaffoldExecResult, type GherkinScaffoldLanguage, type GherkinScaffoldOptions, type GherkinScaffoldResult, type GherkinScaffoldStatus, type GherkinSyncCheckResult, type GitCheckoutTaskOptions, type GitCheckoutTaskResult, type GovernanceOptions, type GovernanceResult, type GraphElementsResult, type GraphNodeLayer, type GraphNodeStatus, type GraphNodeType, type HookInstallResult, type InitProjectOptions, type InitProjectResult, type InspectOptions, type InspectRelation, type InspectResult, JAVA_PMD_RULESET_XML, type JsonSchemaRule, KOTLIN_DETEKT_YML, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, type LanguageAstReport, type LicensePolicy, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type LifecycleSkillTemplate, type ManualDocumentItem, type ManualsCoverageSummary, type ManualsVerificationOptions, type ManualsVerificationResult, type ModelDefectStats, type NativeAstOptions, OpenSpecAdapter, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PRE_COMMIT_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, PROTECTED_CODING_RULES_FILES, type PackageJsonInfo, type ParsedFeatureDocument, type ParsedScenarioBlock, type ParsedStepItem, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacInvalidAnchor, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PdacUnresolvedCitation, type PiiSastRule, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type PrivacyClassificationRule, type PrivacyFindingType, type PrivacyPolicy, type PrivacyRopaSummary, type PrivacyVerifierOptions, type PrivacyVerifierResult, type PrivacyViolation, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type PromptInjectionFinding, type QualityBaseline, type QualityBaselineEntry, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, REVIEWER_ROLES, REVIEW_VERDICTS, RUST_CARGO_CONFIG_TOML, RUST_CLIPPY_TOML, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, type ReviewReportResult, type ReviewVerdict, type ReviewerRole, 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, 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_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__GITLAB_CI_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, type SarifArtifactLocation, type SarifDocument, type SarifLevel, type SarifLocation, type SarifMultiformatMessageString, type SarifPhysicalLocation, type SarifRegion, type SarifReportingDescriptor, type SarifResult, type SarifRuleConfiguration, type SarifRun, type SarifToolDriver, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomGenerateOptions, type ScaTool, type ScaVulnerability, type ScanOptions, type ScannedDependency, type ScannedRequirement, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrateAllOptions, type SddIntegrateAllResult, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SecuritySuppression, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type StarterSchemaEntry, type StarterTemplateEntry, type StepDataTable, type StepDefinitionEntry, type StepHandler, type SubmitReviewReportOptions, type SupportedCiProvider, TS_ESLINT_CONFIG_MJS, TS_STRICT_TSCONFIG, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskKpiSummary, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, UNIT_TEST_SUFFIXES, type UntestedFunctionItem, type UseCaseFlowAuditItem, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, VALID_CODING_RULE_STACKS, type VexAnalysisJustification, type VexAnalysisState, type VexStatement, type VulnerabilityThresholds, accumulateTaskSummaries, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, analyzeBddVariantsForRequirement, appendRevisionHistoryRow, applyRatchetMode, buildCycloneDxComponent, buildCycloneDxVulnerabilities, buildFeatureFileContent, buildGraphElements, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, canonicalSort, checkGherkinInSync, checkoutTaskBranch, classifyBranch, classifyMetricFromMessage, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, computeCanonicalSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectProfileFromChange, detectProjectStacks, detectPromptInjection, emitCiOutput, evaluateCompoundLicense, evaluateSingleDependency, evaluateVulnerabilityThresholds, executeBddFeature, extractAllRepoCommitKpis, extractBaselineEntriesFromResults, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsPythonAst, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, extractPythonFunctionsPolyglot, extractSemanticContent, findChangeWorkspaceDir, findLicenseFile, formatCommitTrailers, formatInspectResultMarkdown, formatPrKpiMarkdown, formatReleaseKpiMarkdown, formatTaskKpiRows, generateBranchHierarchyPlan, generateCycloneDxSbom, generateDashboardReport, generateDeterministicUuidV5, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generatePrivacyReportMarkdown, generateQualityReport, generateRopaInventoryMarkdown, generateSastReportMarkdown, generateSecretsReportMarkdown, generateSecuritySarifReport, generateSuppressionsAuditReport, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCodingRulesFilesForStacks, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getReferenceCodingRulesTemplates, getSddAdapter, inferArtifactTypeFromId, inferMissingTrailers, initProject, injectKpisIntoPrBody, inspectElement, installGitHooks, integrateAllSddChanges, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathProtectedFromPatch, isPlaceholderOrIgnored, isProtectedCodingRulesFile, isReportContentSemanticallyEqual, isRequirementArtifact, isReviewerRole, isSemgrepInstalled, isToolAvailable, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, normalizePath, normalizeScaffoldLanguages, normalizeSpdxLicense, normalizeUri, orchestrateNativeAstAnalysis, parseCommitTrailers, parseDlpPolicy, parseFeatureDocument, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseLicensePolicy, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSecuritySuppression, parseSpecCatalogScope, parseTasksDoc, parseTasksFromContent, parseTrivyVulnerabilities, processPackageDir, readCodeCoverageSummary, readPackageJson, renderAntigravityAgentFile, renderAntigravitySkillFile, renderAutonomyModeSection, renderClaudeAgentFile, renderClaudeSkillFile, renderCopilotAgentFile, renderCopilotSkillFile, renderCursorAgentFile, renderCursorSkillFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCodingRuleStacks, resolveCytoscapePath, resolveDefaultBranchBase, resolveDeterministicDate, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveReleaseBaseBranch, resolveSastCwe, resolveSastOwasp, resolveSchemaForArtifact, resolveTargetFiles, runGitleaksCli, runSemgrepCli, sanitizeDlpPayload, sanitizeDlpText, sanitizeTestCorpus, scaffoldGherkinSteps, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForPrivacyViolations, scanFileForSast, scanGoDependencies, scanInstalledLicenses, scanManualsInWorkspace, scanMavenDependencies, scanPnpmStore, scanPythonDependencies, scanRustDependencies, scanSubdirectories, scanWithNativeFs, scanWithSyft, scanWithTrivy, serializeSarifDocument, slugify, stripVolatileReportMetadata, submitReviewReport, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateAnchorExistence, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyLicenses, verifyManuals, verifyPdacGraph, verifyPrivacy, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };
3274
+ /**
3275
+ * Regulatory Control Mapper (CMP-051)
3276
+ * Correlates the 12 AI-SDLC Quality Gates with:
3277
+ * - EU AI Act (2024/1689) Articles 9-15
3278
+ * - ISO/IEC 42001:2023 Clauses
3279
+ * - NIST SSDF SP 800-218 Practices
3280
+ */
3281
+
3282
+ declare class RegulatoryControlMapper {
3283
+ mapGate(gateId: string): RegulatoryGateMapping;
3284
+ getAllMappings(): Record<QualityGateId, RegulatoryGateMapping>;
3285
+ getEuAiActCoverage(): string[];
3286
+ getIso42001Coverage(): string[];
3287
+ getNistSsdfCoverage(): string[];
3288
+ }
3289
+
3290
+ /**
3291
+ * NIST OSCAL Assessment-Results v1.0 Builder (CMP-051)
3292
+ * Generates canonical NIST OSCAL documents with deterministic ordering
3293
+ */
3294
+
3295
+ interface OscalBuilderOptions {
3296
+ title: string;
3297
+ version: string;
3298
+ oscalVersion?: string;
3299
+ lastModified?: string;
3300
+ }
3301
+ declare class OscalAssessmentBuilder {
3302
+ private title;
3303
+ private version;
3304
+ private oscalVersion;
3305
+ private lastModified;
3306
+ private results;
3307
+ constructor(options: OscalBuilderOptions);
3308
+ addResult(result: {
3309
+ gateId: string;
3310
+ verdict: string;
3311
+ findings?: OscalFinding[];
3312
+ [key: string]: unknown;
3313
+ }): void;
3314
+ build(): OscalAssessmentResultsDocument;
3315
+ }
3316
+
3317
+ /**
3318
+ * in-toto Statement v1 Attestation Builder (CMP-051)
3319
+ * Generates in-toto Statement v1 with RFC 8785 Canonical JSON and Unix LF.
3320
+ */
3321
+
3322
+ /**
3323
+ * RFC 8785 JSON Canonicalization Scheme (JCS)
3324
+ * Recursively canonicalizes object keys in lexicographical order.
3325
+ */
3326
+ declare function canonicalizeJson(val: unknown): string;
3327
+ declare class InTotoAttestationBuilder {
3328
+ private subjects;
3329
+ private predicateType;
3330
+ private predicate;
3331
+ addSubject(name: string, sha256Digest: string): void;
3332
+ setPredicate(predicateType: string, predicate: Record<string, unknown>): void;
3333
+ build(): InTotoStatementV1;
3334
+ toCanonicalJson(): string;
3335
+ }
3336
+
3337
+ /**
3338
+ * DlpSanitizer Port & Adapter (CMP-051)
3339
+ * Masks URI credentials, Bearer tokens, PEM keys, and developer emails/PII.
3340
+ */
3341
+ declare class DlpSanitizer {
3342
+ private uriCredsRegex;
3343
+ private bearerTokenRegex;
3344
+ private pemKeyRegex;
3345
+ private emailRegex;
3346
+ sanitizeText(text: string): string;
3347
+ sanitizeDiagnostics(diagnostics: string[]): string[];
3348
+ sanitizeObject<T>(obj: T): T;
3349
+ }
3350
+
3351
+ /**
3352
+ * Compliance Evidence Bundle Service & Generator (CMP-051)
3353
+ * Coordinates Aggregator, RegulatoryControlMapper, OscalAssessmentBuilder,
3354
+ * InTotoAttestationBuilder, DlpSanitizer, and Deterministic Exporter.
3355
+ */
3356
+
3357
+ declare function generateComplianceEvidenceBundleSync(options: ComplianceBundleOptions): ComplianceBundleResult;
3358
+ declare function generateComplianceEvidenceBundle(options: ComplianceBundleOptions): Promise<ComplianceBundleResult>;
3359
+
3360
+ /**
3361
+ * AI-SDLC: Safe Process Runner Adapter (SEC-REQ-052-SAFE-TOOLCHAIN-PROBE-001)
3362
+ */
3363
+
3364
+ declare function buildSafeEnvironment(cwd?: string): NodeJS.ProcessEnv;
3365
+ declare class SafeProcessRunnerAdapter implements IProcessRunner {
3366
+ execSafe(executable: SafeProbeExecutable, args: string[], options?: ProcessExecOptions): Promise<ProcessExecResult>;
3367
+ }
3368
+
3369
+ /**
3370
+ * AI-SDLC: File System Probe and Native Adapter
3371
+ */
3372
+
3373
+ declare class NativeFileSystemProbeAdapter implements IFileSystemProbe {
3374
+ exists(filePath: string): Promise<boolean>;
3375
+ readFile(filePath: string): Promise<string>;
3376
+ getFileSize(filePath: string): Promise<number>;
3377
+ isExecutable(filePath: string): Promise<boolean>;
3378
+ isSymbolicLink(filePath: string): boolean;
3379
+ }
3380
+
3381
+ /**
3382
+ * AI-SDLC: Git Hooks Health Check (SEC-REQ-052-TAMPER-RESISTANT-HOOK-VERIFICATION-001)
3383
+ */
3384
+
3385
+ declare class GitHooksHealthCheck {
3386
+ inspect(options: DoctorOptions): Promise<CategoryReport>;
3387
+ private missingDirReport;
3388
+ private scanHooks;
3389
+ private fixHooks;
3390
+ }
3391
+
3392
+ /**
3393
+ * AI-SDLC: Branch Safety Check (FR-052-CLI-DOCTOR-001)
3394
+ */
3395
+
3396
+ declare class BranchSafetyCheck {
3397
+ private runner;
3398
+ constructor(runner?: IProcessRunner);
3399
+ inspect(options: DoctorOptions): Promise<CategoryReport>;
3400
+ }
3401
+
3402
+ /**
3403
+ * AI-SDLC: Schemas and PDaC Health Check
3404
+ */
3405
+
3406
+ declare class SchemasPdacHealthCheck {
3407
+ inspect(options: DoctorOptions): Promise<CategoryReport>;
3408
+ }
3409
+
3410
+ /**
3411
+ * AI-SDLC: Toolchain Health Check
3412
+ */
3413
+
3414
+ declare class ToolchainHealthCheck {
3415
+ private runner;
3416
+ constructor(runner?: IProcessRunner);
3417
+ inspect(options: DoctorOptions): Promise<CategoryReport>;
3418
+ }
3419
+
3420
+ /**
3421
+ * AI-SDLC: Signature Readiness Check (SEC-REQ-052-NO-SECRET-LEAK-DIAGNOSTICS-001 & SEC-REQ-052-RESILIENT-DIAGNOSTIC-TIMEOUTS-001)
3422
+ */
3423
+
3424
+ declare class SignatureReadinessCheck {
3425
+ private runner;
3426
+ constructor(runner?: IProcessRunner);
3427
+ inspect(options: DoctorOptions): Promise<CategoryReport>;
3428
+ }
3429
+
3430
+ /**
3431
+ * AI-SDLC: Optional Security CLIs Health Check (CMP-060-DOCTOR-SECURITY-TOOLS)
3432
+ */
3433
+
3434
+ declare class SecurityToolsHealthCheck {
3435
+ private readonly runner;
3436
+ private readonly resolveBinary;
3437
+ private readonly platform;
3438
+ constructor(runner?: IProcessRunner, resolveBinary?: (bin: string, rootDir?: string) => string | null, platform?: NodeJS.Platform);
3439
+ inspect(options: DoctorOptions): Promise<CategoryReport>;
3440
+ private probeSingleTool;
3441
+ }
3442
+
3443
+ /**
3444
+ * AI-SDLC: Doctor Reporters (Terminal and JSON Formatter)
3445
+ */
3446
+
3447
+ declare class DoctorReporter implements IDiagnosticsReporter {
3448
+ formatTerminal(report: DoctorReport): string;
3449
+ formatJson(report: DoctorReport): string;
3450
+ }
3451
+
3452
+ /**
3453
+ * AI-SDLC: Doctor Service and Orchestrator (CMP-052-DOCTOR-ENGINE)
3454
+ */
3455
+
3456
+ declare class DoctorOrchestrator {
3457
+ private hooksCheck;
3458
+ private branchCheck;
3459
+ private schemasCheck;
3460
+ private toolchainCheck;
3461
+ private signatureCheck;
3462
+ private securityToolsCheck;
3463
+ runAll(options: DoctorOptions): Promise<CategoryReport[]>;
3464
+ }
3465
+ declare class DoctorService implements IDoctorService {
3466
+ private orchestrator;
3467
+ diagnose(options: DoctorOptions): Promise<DoctorReport>;
3468
+ protected runCategoryChecks(options: DoctorOptions): Promise<CategoryReport[]>;
3469
+ private collectRemediations;
3470
+ }
3471
+
3472
+ /**
3473
+ * FileSystemJailAdapter: Confinement & Path Traversal Defense
3474
+ * Cites: SEC-REQ-053-PATH-TRAVERSAL-DEFENSE-001, CMP-053-MIGRATE-ENGINE
3475
+ */
3476
+
3477
+ declare class FileSystemJailAdapter implements IFileSystemJail {
3478
+ resolveSafe(repoRoot: string, targetPath: string): string;
3479
+ readFileSafe(repoRoot: string, relativePath: string): Promise<string>;
3480
+ writeFileSafe(repoRoot: string, relativePath: string, content: string): Promise<void>;
3481
+ existsSafe(repoRoot: string, relativePath: string): Promise<boolean>;
3482
+ ensureDirectorySafe(repoRoot: string, relativeDir: string): Promise<void>;
3483
+ isSymlinkSafe(repoRoot: string, relativePath: string): Promise<boolean>;
3484
+ private verifySymlinkSafe;
3485
+ }
3486
+
3487
+ /**
3488
+ * DiffDetector: Deterministic Byte-by-Byte SHA-256 with Unix LF Normalization
3489
+ * Cites: CMP-053-MIGRATE-ENGINE, FR-053-CLI-MIGRATE-001
3490
+ */
3491
+ declare class DiffDetector {
3492
+ /**
3493
+ * Normalizes content by converting Windows CRLF (\r\n) to Unix LF (\n)
3494
+ * and computes a lowercase hex SHA-256 digest.
3495
+ */
3496
+ computeDigest(content: string): string;
3497
+ /**
3498
+ * Compares two content strings for deterministic equality under LF normalization.
3499
+ */
3500
+ isEqual(contentA: string, contentB: string): boolean;
3501
+ }
3502
+
3503
+ /**
3504
+ * OverrideAnalyzer: Artifact State Classification
3505
+ * Cites: CMP-053-MIGRATE-ENGINE, FR-053-CLI-MIGRATE-001
3506
+ */
3507
+
3508
+ interface ClassifyInput {
3509
+ currentContent: string;
3510
+ targetContent: string;
3511
+ baseContent: string;
3512
+ }
3513
+ declare class OverrideAnalyzer {
3514
+ private diffDetector;
3515
+ classify(input: ClassifyInput): MigrationFileStatus;
3516
+ private isCorruptDiscrepancy;
3517
+ }
3518
+
3519
+ /**
3520
+ * PolicyRatchetEnforcer: Preservation of Stricter Local Quality and Security Thresholds
3521
+ * Cites: SEC-REQ-053-POLICY-RATCHET-PRESERVATION-001, CMP-053-MIGRATE-ENGINE
3522
+ */
3523
+ interface RatchetOptions {
3524
+ allowPolicyDowngrade?: boolean;
3525
+ }
3526
+ interface CoveragePolicy {
3527
+ min?: number;
3528
+ }
3529
+ interface ComplexityPolicy {
3530
+ maxCyclomatic?: number;
3531
+ }
3532
+ interface QualitySection {
3533
+ coverage?: CoveragePolicy;
3534
+ complexity?: ComplexityPolicy;
3535
+ }
3536
+ interface LicenseSection {
3537
+ blocked?: string[];
3538
+ }
3539
+ interface DlpRule {
3540
+ id: string;
3541
+ pattern: string;
3542
+ }
3543
+ interface PolicyPayload {
3544
+ quality?: QualitySection;
3545
+ licenses?: LicenseSection;
3546
+ rules?: DlpRule[];
3547
+ [key: string]: unknown;
3548
+ }
3549
+ declare class PolicyRatchetEnforcer {
3550
+ enforceRatchet(localPolicy: PolicyPayload, upstreamPolicy: PolicyPayload, options?: RatchetOptions): PolicyPayload;
3551
+ private validatePolicyStructure;
3552
+ }
3553
+
3554
+ /**
3555
+ * TimestampedBackupManagerAdapter: Cryptographically Verified Backup
3556
+ * Cites: SEC-REQ-053-NON-DESTRUCTIVE-BACKUP-001, CMP-053-MIGRATE-ENGINE
3557
+ */
3558
+
3559
+ declare class TimestampedBackupManagerAdapter implements IBackupManager {
3560
+ private diffDetector;
3561
+ createBackup(repoRoot: string, filesToBackup: string[]): Promise<string>;
3562
+ restoreBackup(repoRoot: string, backupPath: string): Promise<void>;
3563
+ private ensureGitignoreRule;
3564
+ }
3565
+
3566
+ /**
3567
+ * TransactionManager: Atomic Staging, Schema Pre-commit Verification, and Rollback
3568
+ * Cites: SEC-REQ-053-ATOMIC-ROLLBACK-001, CMP-053-MIGRATE-ENGINE
3569
+ */
3570
+
3571
+ declare class TransactionManager implements ITransactionManager {
3572
+ private activeStagingDir;
3573
+ private stagedFiles;
3574
+ private boundSignalHandlers;
3575
+ begin(repoRoot: string): Promise<string>;
3576
+ stageFile(_repoRoot: string, relativePath: string, content: string): Promise<void>;
3577
+ commit(repoRoot: string): Promise<void>;
3578
+ rollback(_repoRoot: string): Promise<void>;
3579
+ rollbackSync(repoRoot: string, backupPath?: string): void;
3580
+ private validateStagedFile;
3581
+ private cleanupStaging;
3582
+ private registerSignalHandlers;
3583
+ private unregisterSignalHandlers;
3584
+ }
3585
+
3586
+ /**
3587
+ * MigrationReporter: Terminal and JSON Formatting for Migration Reports
3588
+ * Cites: CMP-053-MIGRATE-ENGINE, FR-053-CLI-MIGRATE-001
3589
+ */
3590
+
3591
+ declare class MigrationReporter implements IMigrationReporter {
3592
+ formatTerminal(result: MigrationResult): string;
3593
+ formatJson(result: MigrationResult): string;
3594
+ }
3595
+
3596
+ /**
3597
+ * MigrationOrchestrator and MigrationService: Core Execution and Coordination
3598
+ * Cites: CMP-053-MIGRATE-ENGINE, FR-053-CLI-MIGRATE-001, AGENTS.md
3599
+ */
3600
+
3601
+ declare class MigrationOrchestrator {
3602
+ fsJail: FileSystemJailAdapter;
3603
+ diffDetector: DiffDetector;
3604
+ analyzer: OverrideAnalyzer;
3605
+ ratchetEnforcer: PolicyRatchetEnforcer;
3606
+ backupManager: TimestampedBackupManagerAdapter;
3607
+ transactionManager: TransactionManager;
3608
+ }
3609
+ declare class MigrationService implements IMigrationService {
3610
+ private orchestrator;
3611
+ constructor(orchestrator?: MigrationOrchestrator);
3612
+ preview(options: MigrationOptions): Promise<MigrationResult>;
3613
+ migrate(options: MigrationOptions): Promise<MigrationResult>;
3614
+ private isInsideGitRepository;
3615
+ private queryGitBranch;
3616
+ private detectBranch;
3617
+ private isProtectedBranch;
3618
+ private verifyBranchSafety;
3619
+ private runMutationTransaction;
3620
+ private executeMigration;
3621
+ private discoverGovernedFiles;
3622
+ }
3623
+
3624
+ export { ALL_ARCHITECTURE_TEMPLATES, ALL_QUALITY_GATES, type ActiveTaskMatch, type AgentTarget, type AnalysisResult, type ArchTemplateDef, type ArchitectureGranularity, type ArtifactFrontmatter, type ArtifactSchemaOptions, type ArtifactSchemaResult, type ArtifactSchemaViolation, type ArtifactValidationResult, type AuthorIdentity, type AuthorKpiSummary, type AutonomyMode, BRANCH_PATTERNS, type BackupManifest, type BackupManifestEntry, type BddAttestationRecord, type BddAttestationVerificationResult, type BddFeatureExecutionReport, type BddScenarioExecution, type BddStepExecution, BddStepRegistry, type BddVariantCoverage, type BranchClassificationResult, type BranchHierarchyPlan, BranchSafetyCheck, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, CPP_CLANG_TIDY, CPP_CMAKE_STRICT, type CategoryReport, type CategoryResult, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CheckStatus, type CiProvider, type ClassifyInput, type CodeCoverageSummary, type CodingRuleStack, type CommitKpiRecord, type CommitTrailers, type CompiledTestMatcher, type ComplianceBundleOptions, type ComplianceBundlePayload, type ComplianceBundleResult, type ContractTraceAudit, type CoverageFormat, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CycloneDxVulnerability, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXCLUDE_DIRS, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, DEFAULT_TEST_ARTIFACT_PATTERNS, DEFAULT_UNIT_TEST_PATTERNS, DOTNET_DIRECTORY_BUILD_PROPS, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DataAssetField, type DataAssetSummary, type DesignContractDeclaration, type DiagnosticCategory, type DiagnosticFinding, DiffDetector, type DiffLineItem, type DlpPolicy, type DlpRule$1 as DlpRule, type DlpSanitizeResult, DlpSanitizer, type DoctorOptions, DoctorOrchestrator, type DoctorReport, DoctorReporter, DoctorService, type DoctorStatus, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type EnsureToolOptions, type EnsureToolResult, type ExtractedFeature, type FileClassification, FileSystemJailAdapter, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, GHERKIN_GENERATOR_SPECS, GO_GOLANGCI_YML, GRADLE_STRICT_INIT_KTS, type GateEvidenceReport, type GateFinding, type GenerateSarifOptions, type GherkinExtractionOptions, type GherkinExtractionResult, type GherkinGeneratorSpec, type GherkinScaffoldExecFn, type GherkinScaffoldExecResult, type GherkinScaffoldLanguage, type GherkinScaffoldOptions, type GherkinScaffoldResult, type GherkinScaffoldStatus, type GherkinSyncCheckResult, type GitCheckoutTaskOptions, type GitCheckoutTaskResult, GitHooksHealthCheck, type GovernanceOptions, type GovernanceResult, type GraphElementsResult, type GraphNodeLayer, type GraphNodeStatus, type GraphNodeType, type HookInstallResult, type IBackupManager, type IDiagnosticsReporter, type IDoctorService, type IFileSystemJail, type IFileSystemProbe, type IMigrationReporter, type IMigrationService, type IProcessRunner, type ITransactionManager, InTotoAttestationBuilder, type InTotoStatementV1, type InTotoSubject, type InitProjectOptions, type InitProjectResult, type InspectOptions, type InspectRelation, type InspectResult, type InstallableTool, JAVA_PMD_RULESET_XML, type JsonSchemaRule, KOTLIN_DETEKT_YML, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, type LanguageAstReport, type LicensePolicy, type LicenseProvenance, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type LifecycleSkillTemplate, MAX_SARIF_BYTES, MAX_SARIF_JSON_DEPTH, MAX_SARIF_RESULTS, type ManualDocumentItem, type ManualsCoverageSummary, type ManualsVerificationOptions, type ManualsVerificationResult, type MigrationFileStatus, type MigrationItemReport, type MigrationOptions, MigrationOrchestrator, type MigrationPlanItem, type MigrationReport, MigrationReporter, type MigrationResult, MigrationService, type MigrationStatus, type MigrationSummary, type ModelDefectStats, type NativeAstOptions, NativeFileSystemProbeAdapter, OpenSpecAdapter, OscalAssessmentBuilder, type OscalAssessmentResultsDocument, type OscalBuilderOptions, type OscalFinding, type OscalResult, OverrideAnalyzer, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PRE_COMMIT_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, PROTECTED_CODING_RULES_FILES, type PackageJsonInfo, type ParsedFeatureDocument, type ParsedPurl, type ParsedScenarioBlock, type ParsedStepItem, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacInvalidAnchor, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PdacUnresolvedCitation, type PiiSastRule, PolicyRatchetEnforcer, type PolyglotOrchestrationOptions, type PolyglotOrchestrationResult, type PolyglotToolDiagnostic, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type PrivacyClassificationRule, type PrivacyFindingType, type PrivacyPolicy, type PrivacyRopaSummary, type PrivacyVerifierOptions, type PrivacyVerifierResult, type PrivacyViolation, type ProcessExecOptions, type ProcessExecResult, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type ProjectEcosystem, type PromptInjectionFinding, type QualityBaseline, type QualityBaselineEntry, type QualityGateId, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, REVIEWER_ROLES, REVIEW_VERDICTS, RUST_CARGO_CONFIG_TOML, RUST_CLIPPY_TOML, type RatchetOptions, RegulatoryControlMapper, type RegulatoryGateMapping, type RegulatoryMatrixSection, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, type ReviewReportResult, type ReviewVerdict, type ReviewerRole, 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_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_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__GITLAB_CI_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, type SafeProbeExecutable, SafeProcessRunnerAdapter, type SarifArtifactLocation, type SarifDocument, type SarifErrorCode, SarifIngestionError, type SarifLevel, type SarifLocation, type SarifMultiformatMessageString, type SarifPhysicalLocation, type SarifRegion, type SarifReportingDescriptor, type SarifResult, type SarifRuleConfiguration, type SarifRun, type SarifToolDriver, type SarifUriBaseId, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomComponent, type SbomDocument, type SbomErrorCode, type SbomGenerateOptions, ScaSbomError, type ScaScanResult, type ScaTool, type ScaVulnerability, type ScanOptions, type ScannedDependency, type ScannedRequirement, SchemasPdacHealthCheck, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrateAllOptions, type SddIntegrateAllResult, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SecuritySuppression, SecurityToolsHealthCheck, SignatureReadinessCheck, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type StarterSchemaEntry, type StarterTemplateEntry, type StepDataTable, type StepDefinitionEntry, type StepHandler, type SubmitReviewReportOptions, type SupportedCiProvider, type SupportedPlatform, TOOL_INSTALL_ALLOWLIST, TS_ESLINT_CONFIG_MJS, TS_STRICT_TSCONFIG, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskKpiSummary, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, TimestampedBackupManagerAdapter, type ToolInstallSpec, ToolchainHealthCheck, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, TransactionManager, type TrivyAsyncResult, UNIT_TEST_SUFFIXES, type UnresolvedLicenseReason, type UntestedFunctionItem, type UseCaseFlowAuditItem, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, VALID_CODING_RULE_STACKS, type VexAnalysisJustification, type VexAnalysisState, type VexStatement, type VulnerabilityThresholds, 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, compileTestPatterns, computeCanonicalSha256, computeLfSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, deduplicateAndSortPrivacyViolations, deduplicateAndSortSastViolations, deduplicateAndSortViolations, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectPolyglotLoggerCall, detectProfileFromChange, detectProjectEcosystems, detectProjectStacks, detectPromptInjection, 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, findChangeWorkspaceDir, findLicenseFile, 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, getArchitectureTemplates, getCodingRulesFilesForStacks, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getReferenceCodingRulesTemplates, getSddAdapter, getToolInstallSpec, inferArtifactTypeFromId, inferMissingTrailers, ingestSarifFiles, ingestSbomFile, initProject, injectKpisIntoPrBody, inspectElement, installGitHooks, integrateAllSddChanges, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathOutsideRoot, isPathProtectedFromPatch, isPlaceholderOrIgnored, isPolyglotTestArtifact, isPolyglotUnitTestFile, isProtectedCodingRulesFile, isReportContentSemanticallyEqual, isRequirementArtifact, isReviewerRole, isSemgrepInstalled, isToolAvailable, isToolInstalled, isUncOrEmptyPath, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, mergeSbomGaps, normalizeIdentifierToSnakeCase, normalizePath, 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, 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, slugify, spawnTrustedBinary, stripMaskingCalls, 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, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };