@aisdlc/core 1.3.2 → 1.4.1

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.cts CHANGED
@@ -731,9 +731,62 @@ interface DashboardResult {
731
731
  autonomyDistribution: Record<string, number>;
732
732
  traceabilityRatio: number;
733
733
  bddCoverageRatio: number;
734
+ userManualCoverageRatio?: number;
735
+ productionManualCoverageRatio?: number;
736
+ manualsCount?: number;
734
737
  };
735
738
  html: string;
736
739
  }
740
+ interface ManualDocumentItem {
741
+ id: string;
742
+ type: 'user-manual' | 'production-manual';
743
+ title: string;
744
+ status: string;
745
+ version: string;
746
+ appliesToVersion: string;
747
+ filePath: string;
748
+ targetAudience: string[];
749
+ allowedRoles: string[];
750
+ journeysCovered: string[];
751
+ useCasesCovered: string[];
752
+ componentsCovered: string[];
753
+ enclavesInvolved: string[];
754
+ body: string;
755
+ }
756
+ interface ManualsCoverageSummary {
757
+ totalJourneys: number;
758
+ coveredJourneys: number;
759
+ uncoveredJourneys: string[];
760
+ totalUseCases: number;
761
+ coveredUseCases: number;
762
+ uncoveredUseCases: string[];
763
+ userCoveragePct: number;
764
+ totalComponents: number;
765
+ coveredComponents: number;
766
+ uncoveredComponents: string[];
767
+ totalEnclaves: number;
768
+ coveredEnclaves: number;
769
+ uncoveredEnclaves: string[];
770
+ productionCoveragePct: number;
771
+ }
772
+ interface ManualsVerificationOptions {
773
+ rootDir?: string;
774
+ branch?: string;
775
+ profile?: ChangeProfile;
776
+ strict?: boolean;
777
+ }
778
+ interface ManualsVerificationResult {
779
+ success: boolean;
780
+ status: 'PASSED' | 'WARNING' | 'FAILED';
781
+ enforcementMode: 'ADVISORY' | 'STRICT_RELEASE';
782
+ branch: string;
783
+ profile: ChangeProfile;
784
+ userManuals: ManualDocumentItem[];
785
+ productionManuals: ManualDocumentItem[];
786
+ coverage: ManualsCoverageSummary;
787
+ warnings: string[];
788
+ violations: string[];
789
+ }
737
790
 
738
791
  /**
739
792
  * AI-SDLC: Deterministic Quality Gate Engine (Polyglot Support)
@@ -899,10 +952,25 @@ interface ScanOptions {
899
952
  productionOnly?: boolean;
900
953
  }
901
954
  declare function isToolAvailable(toolName: string): boolean;
902
- declare function normalizeSpdxLicense(raw: any): string;
955
+ declare function normalizeSpdxLicense(raw: unknown): string;
903
956
  declare function findLicenseFile(pkgDir: string): string | undefined;
904
957
  declare function resolveLicenseFromFile(licenseFilePath?: string): string | undefined;
905
- declare function readPackageJson(filePath: string): any | null;
958
+ interface PackageJsonInfo {
959
+ name?: string;
960
+ version?: string;
961
+ license?: unknown;
962
+ licenses?: unknown;
963
+ repository?: string | {
964
+ url?: string;
965
+ };
966
+ author?: string | {
967
+ name?: string;
968
+ };
969
+ dependencies?: Record<string, string>;
970
+ devDependencies?: Record<string, string>;
971
+ [key: string]: unknown;
972
+ }
973
+ declare function readPackageJson(filePath: string): PackageJsonInfo | null;
906
974
  declare function extractDirectDepNames(rootDir: string, productionOnly?: boolean): Set<string>;
907
975
  declare function processPackageDir(pkgDir: string, directNames: Set<string>, seen: Map<string, ScannedDependency>): void;
908
976
  declare function scanSubdirectories(baseDir: string, directNames: Set<string>, seen: Map<string, ScannedDependency>): void;
@@ -987,9 +1055,6 @@ interface JsonSchemaRule {
987
1055
  format?: string;
988
1056
  [key: string]: unknown;
989
1057
  }
990
- /**
991
- * Deterministic JSON Schema validator matching Draft 2020-12 core specifications
992
- */
993
1058
  declare function validateAgainstSchema(value: unknown, schema: JsonSchemaRule, propPath?: string): string[];
994
1059
  declare function resolveSchemaForArtifact(frontmatter: Record<string, unknown>, rootDir: string): {
995
1060
  schemaPath: string;
@@ -1007,6 +1072,15 @@ declare function detectProfileFromChange(changeDir: string): ChangeProfile;
1007
1072
  declare function isPathProtectedFromPatch(filePath: string): boolean;
1008
1073
  declare function verifyProgressiveFriction(options?: ProgressiveFrictionOptions): ProgressiveFrictionResult;
1009
1074
 
1075
+ /**
1076
+ * AI-SDLC: Operational Manuals (MAN-USER & MAN-PROD) Coverage & Progressive Gate Verifier
1077
+ * Audits presence and coverage of User Manuals (JRN-*, UC-*) and Production Manuals (CMP-*, SEC-ENC-*).
1078
+ * Enforces non-blocking ADVISORY warnings during daily development and STRICT blocking on release/* or critical changes.
1079
+ */
1080
+
1081
+ declare function scanManualsInWorkspace(rootDir: string): ManualDocumentItem[];
1082
+ declare function verifyManuals(options?: ManualsVerificationOptions): ManualsVerificationResult;
1083
+
1010
1084
  /**
1011
1085
  * AI-SDLC: Deterministic Duplicate Requirements Verifier (Shift-Left Pre-Implementation Gate)
1012
1086
  *
@@ -1220,6 +1294,10 @@ declare function formatCommitTrailers(trailers: Partial<CommitTrailers>): string
1220
1294
  * when not explicitly declared in commit trailers.
1221
1295
  */
1222
1296
  declare function inferMissingTrailers(trailers: CommitTrailers, linesAdded: number, linesDeleted: number): CommitTrailers;
1297
+ /**
1298
+ * Resolves a git reference (branch or commit), checking common branch prefixes if not directly found.
1299
+ */
1300
+ declare function resolveGitRef(cwd: string, ref: string): string;
1223
1301
  /**
1224
1302
  * Extracts all commit records and their KPIs in a git revision range (e.g. main..HEAD).
1225
1303
  */
@@ -1293,6 +1371,10 @@ interface PrKpiAggregation {
1293
1371
  }
1294
1372
  declare const KPI_SUMMARY_START_TAG = "<!-- AI-SDLC-KPI-SUMMARY-START -->";
1295
1373
  declare const KPI_SUMMARY_END_TAG = "<!-- AI-SDLC-KPI-SUMMARY-END -->";
1374
+ /**
1375
+ * Aggregates a collection of commit KPI records into a unified PR KPI aggregation.
1376
+ */
1377
+ declare function aggregateCommitKpiRecords(records: CommitKpiRecord[], baseRef?: string, headRef?: string): PrKpiAggregation;
1296
1378
  /**
1297
1379
  * Aggregates all commit KPIs in the revision range of a Pull Request.
1298
1380
  */
@@ -1369,6 +1451,7 @@ declare function formatReleaseKpiMarkdown(report: ReleaseKpiReport): string;
1369
1451
  */
1370
1452
  declare function writeReleaseKpiReport(report: ReleaseKpiReport, options?: {
1371
1453
  outputDir?: string;
1454
+ rootDir?: string;
1372
1455
  }): {
1373
1456
  markdownPath: string;
1374
1457
  jsonPath: string;
@@ -1387,6 +1470,11 @@ declare function resolveCytoscapePath(): string | null;
1387
1470
  */
1388
1471
  declare function getCytoscapeScript(): string;
1389
1472
 
1473
+ /**
1474
+ * AI-SDLC: Cytoscape Graph Elements Builder
1475
+ * Scans workspace artifacts and RTM traceability to build Graph Elements for Cytoscape.js.
1476
+ */
1477
+
1390
1478
  interface GraphElementsResult {
1391
1479
  elements: CytoscapeElement[];
1392
1480
  nodesByLayer: Record<GraphNodeLayer, number>;
@@ -1397,6 +1485,29 @@ interface GraphElementsResult {
1397
1485
  * Builds the graph elements (nodes & edges) for Cytoscape.js.
1398
1486
  */
1399
1487
  declare function buildGraphElements(rootDir?: string): GraphElementsResult;
1488
+
1489
+ /**
1490
+ * AI-SDLC: Dashboard HTML Renderer
1491
+ * Generates modular offline HTML for Cytoscape Graph, RTM 360°, Quality Gates, and KPIs.
1492
+ */
1493
+
1494
+ interface DashboardMetricsData {
1495
+ gate: QualityGateResult;
1496
+ gov: GovernanceResult;
1497
+ cov: TestingCoverageResult;
1498
+ codeCoverage: CodeCoverageSummary | null;
1499
+ trace: TraceabilityResult;
1500
+ manuals: ManualsVerificationResult;
1501
+ history: DashboardHistoricalKpi[];
1502
+ activePrKpi: PrKpiAggregation | null;
1503
+ activeBranch: string;
1504
+ branchTelemetries?: Record<string, PrKpiAggregation>;
1505
+ totalTelemetry?: PrKpiAggregation | null;
1506
+ }
1507
+ declare function renderAutonomyModeSection(mode: string, statusIcon: string, count: number, roleDescription: string, allTasks?: TaskSummary[]): string;
1508
+ declare function renderManualsTab(manuals: ManualsVerificationResult): string;
1509
+ declare function renderDashboardHtml(graphData: GraphElementsResult, metricsData: DashboardMetricsData, title?: string): string;
1510
+
1400
1511
  /**
1401
1512
  * Loads historical KPI records from reports/releases/ directory.
1402
1513
  */
@@ -1410,14 +1521,13 @@ declare function collectDashboardMetrics(rootDir: string): {
1410
1521
  cov: TestingCoverageResult;
1411
1522
  codeCoverage: CodeCoverageSummary | null;
1412
1523
  trace: TraceabilityResult;
1524
+ manuals: ManualsVerificationResult;
1413
1525
  history: DashboardHistoricalKpi[];
1414
1526
  activePrKpi: PrKpiAggregation | null;
1415
1527
  activeBranch: string;
1528
+ branchTelemetries: Record<string, PrKpiAggregation>;
1529
+ totalTelemetry: PrKpiAggregation | null;
1416
1530
  };
1417
- /**
1418
- * Renders the HTML string for the interactive dashboard.
1419
- */
1420
- declare function renderDashboardHtml(graphData: GraphElementsResult, metricsData: ReturnType<typeof collectDashboardMetrics>, title?: string): string;
1421
1531
  /**
1422
1532
  * Main function to generate the dashboard report.
1423
1533
  */
@@ -1512,13 +1622,6 @@ interface SpecCatalogScope {
1512
1622
  newItems: SpecCatalogNewItem[];
1513
1623
  affectedItems: SpecCatalogAffectedItem[];
1514
1624
  }
1515
- /**
1516
- * Parses a spec.md using the canonical template format to extract:
1517
- * - Section 1.1: existing catalog items that are MODIFIED or DEPRECATED
1518
- * - Section 1.2: new catalog items to be physically materialized
1519
- *
1520
- * Returns empty arrays when the spec uses the simplified format (no 1.1 / 1.2 headings).
1521
- */
1522
1625
  declare function parseSpecCatalogScope(specContent: string): SpecCatalogScope;
1523
1626
  declare function findChangeWorkspaceDir(rootDir: string, changeId: string): string | null;
1524
1627
  declare function integrateSddChange(options: SddIntegrationOptions): SddIntegrationResult;
@@ -1634,7 +1737,7 @@ declare const STARTER_VSCODE_MCP = "{\n \"servers\": {\n \"ai-sdlc\": {\n
1634
1737
 
1635
1738
  declare const VALID_CI_PROVIDERS: readonly ["github", "gitlab", "azure", "bitbucket"];
1636
1739
  type SupportedCiProvider = (typeof VALID_CI_PROVIDERS)[number];
1637
- declare const STARTER_QUALITY_POLICY = "# ==============================================================================\n# AI-SDLC: Software Quality, Coding Rules & Release Gate Policy\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\nenforcement_mode: \"STRICT\"\n\nscope:\n target_directories:\n - \"src\"\n - \"lib\"\n - \"examples\"\n - \"tests\"\n supported_extensions:\n - \".ts\"\n - \".js\"\n - \".py\"\n - \".java\"\n - \".go\"\n - \".cs\"\n - \".rs\"\n - \".cpp\"\n - \".c\"\n exclude_patterns:\n - \"node_modules\"\n - \"__pycache__\"\n - \".pytest_cache\"\n - \"target\"\n - \"bin\"\n - \"obj\"\n - \".git\"\n - \"reports\"\n - \"dist\"\n - \".changeset\"\n\nthresholds:\n cyclomatic_complexity:\n max_per_function: 10\n cognitive_complexity:\n max_per_function: 15\n maintainability_index:\n min_acceptable_score: 50.0\n function_length:\n max_function_lines: 40\n";
1740
+ declare const STARTER_QUALITY_POLICY = "# ==============================================================================\n# AI-SDLC: Software Quality, Coding Rules & Release Gate Policy\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\nenforcement_mode: \"STRICT\"\n\nscope:\n target_directories:\n - \"src\"\n - \"lib\"\n supported_extensions:\n - \".ts\"\n - \".js\"\n - \".py\"\n - \".java\"\n - \".go\"\n - \".cs\"\n - \".rs\"\n - \".cpp\"\n - \".c\"\n exclude_patterns:\n - \"node_modules\"\n - \"__pycache__\"\n - \".pytest_cache\"\n - \"target\"\n - \"bin\"\n - \"obj\"\n - \".git\"\n - \"reports\"\n - \"dist\"\n - \".changeset\"\n - \"examples\"\n - \"scratch\"\n - \"templates\"\n\nthresholds:\n cyclomatic_complexity:\n max_per_function: 10\n cognitive_complexity:\n max_per_function: 15\n maintainability_index:\n min_acceptable_score: 50.0\n function_length:\n max_function_lines: 40\n";
1638
1741
  declare const STARTER_LICENSE_POLICY = "# ==============================================================================\n# AI-SDLC: Open Source License Compliance & Governance Policy\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\ndefault_action: \"DENY\"\n\ncategories:\n permissive_free:\n action: \"ALLOW\"\n description: \"Permissive commercial use licenses. Attribution only required.\"\n spdx_identifiers:\n - \"MIT\"\n - \"Apache-2.0\"\n - \"BSD-2-Clause\"\n - \"BSD-3-Clause\"\n - \"ISC\"\n - \"Unlicense\"\n - \"CC0-1.0\"\n - \"0BSD\"\n\n weak_copyleft_conditional:\n action: \"REVIEW_REQUIRED\"\n description: \"Allowed only as dynamically linked decoupled libraries.\"\n spdx_identifiers:\n - \"LGPL-2.1-only\"\n - \"LGPL-3.0-only\"\n - \"MPL-2.0\"\n\n strong_copyleft_viral:\n action: \"DENY\"\n description: \"Forbidden due to viral copyleft forcing source code disclosure.\"\n spdx_identifiers:\n - \"GPL-2.0-only\"\n - \"GPL-3.0-only\"\n - \"AGPL-3.0-only\"\n - \"AGPL-3.0-or-later\"\n\n commercial_acquisition_required:\n action: \"COMMERCIAL_APPROVAL_REQUIRED\"\n description: \"Source-available code requiring commercial license for SaaS deployment.\"\n spdx_identifiers:\n - \"SSPL-1.0\"\n - \"BSL-1.1\"\n";
1639
1742
  declare const STARTER_TASK_TEMPLATE = "---\ntasks:\n - id: \"TSK-001-setup\"\n title: \"Initial component setup\"\n complexity: \"LOW\"\n risk-level: \"LOW\"\n autonomy-mode: \"AUTONOMOUS\"\n assigned-to: \"agent-developer\"\n status: \"PENDING\"\n verification:\n method: \"COMMAND_VERIFICATION\"\n command-or-criteria: \"pnpm test\"\n---\n\n# Task Plan: Component\n";
1640
1743
  declare const STARTER_REQUIREMENT_TEMPLATE = "---\nid: \"FR-SAMPLE-001\"\ntype: \"requirement\"\ntitle: \"Sample Feature\"\nstatus: \"active\"\nversion: \"1.0.0\"\ncategory: \"functional\"\nderives-from:\n - \"UC-SAMPLE-USECASE\"\nverifiable-by: \"cucumber-bdd\"\nacceptance-format: \"gherkin\"\ncucumber-tags:\n - \"@FR-SAMPLE-001\"\n---\n\n# Requirement: Sample Feature\n\n```gherkin\nFeature: Sample Feature\n Scenario: Basic execution\n Given system is ready\n When user triggers action\n Then system responds with 200 OK\n```\n";
@@ -1678,4 +1781,4 @@ declare function initProject(options?: InitProjectOptions): InitProjectResult;
1678
1781
 
1679
1782
  declare function walkMdFiles(dir: string, fileList?: string[], excludeDirs?: string[]): string[];
1680
1783
 
1681
- 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 BranchClassificationResult, type BranchHierarchyPlan, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CiProvider, type CodeCoverageSummary, type CommitKpiRecord, type CommitTrailers, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXTENSIONS, DEFAULT_SAST_EXCLUDES, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DiffLineItem, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type ExtractedFeature, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, type GherkinExtractionOptions, type GherkinExtractionResult, 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 JsonSchemaRule, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, type LicensePolicy, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type ModelDefectStats, OpenSpecAdapter, PREPARE_COMMIT_MSG_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type PromptInjectionFinding, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, SAST_RULES, SECRET_RULES, SPECIALIZED_AGENT_TEMPLATES, 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_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_LICENSE_POLICY, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_TASK_TEMPLATE, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomGenerateOptions, type ScaTool, type ScanOptions, type ScannedDependency, type ScannedRequirement, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type SupportedCiProvider, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, aggregatePrKpis, aggregateReleaseKpis, appendRevisionHistoryRow, buildCycloneDxComponent, buildFeatureFileContent, buildGraphElements, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, checkGherkinInSync, checkoutTaskBranch, classifyBranch, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, computeCanonicalSha256, computeSha256, createDefaultQualityPolicy, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectProfileFromChange, detectPromptInjection, emitCiOutput, evaluateCompoundLicense, evaluateSingleDependency, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, findChangeWorkspaceDir, findLicenseFile, formatCommitTrailers, formatPrKpiMarkdown, formatReleaseKpiMarkdown, generateBranchHierarchyPlan, generateCycloneDxSbom, generateDashboardReport, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generateQualityReport, generateSastReportMarkdown, generateSecretsReportMarkdown, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getSddAdapter, inferArtifactTypeFromId, inferMissingTrailers, initProject, injectKpisIntoPrBody, installGitHooks, integrateSddChange, isGitleaksInstalled, isPathProtectedFromPatch, isPlaceholderOrIgnored, isRequirementArtifact, isSemgrepInstalled, isToolAvailable, loadProductHandoffSidecar, locateTaskInActiveChanges, maskSecret, normalizeSpdxLicense, parseCommitTrailers, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseLicensePolicy, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSpecCatalogScope, parseTasksDoc, parseTasksFromContent, processPackageDir, readCodeCoverageSummary, readPackageJson, renderAntigravityAgentFile, renderClaudeAgentFile, renderCopilotAgentFile, renderCursorAgentFile, renderDashboardHtml, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCytoscapePath, resolveFeatureFilePath, resolveLicenseFromFile, resolveSchemaForArtifact, resolveTargetFiles, runGitleaksCli, runSemgrepCli, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForSast, scanInstalledLicenses, scanPnpmStore, scanSubdirectories, scanWithNativeFs, scanWithSyft, scanWithTrivy, slugify, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyLicenses, verifyPdacGraph, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCycloneDxSbom, writeReleaseKpiReport, writeThirdPartyNotices };
1784
+ 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 BranchClassificationResult, type BranchHierarchyPlan, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CiProvider, type CodeCoverageSummary, type CommitKpiRecord, type CommitTrailers, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXTENSIONS, DEFAULT_SAST_EXCLUDES, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DiffLineItem, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type ExtractedFeature, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, type GherkinExtractionOptions, type GherkinExtractionResult, 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 JsonSchemaRule, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, type LicensePolicy, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type ManualDocumentItem, type ManualsCoverageSummary, type ManualsVerificationOptions, type ManualsVerificationResult, type ModelDefectStats, OpenSpecAdapter, PREPARE_COMMIT_MSG_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, type PackageJsonInfo, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type PromptInjectionFinding, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, SAST_RULES, SECRET_RULES, SPECIALIZED_AGENT_TEMPLATES, 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_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_LICENSE_POLICY, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_TASK_TEMPLATE, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomGenerateOptions, type ScaTool, type ScanOptions, type ScannedDependency, type ScannedRequirement, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type SupportedCiProvider, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, appendRevisionHistoryRow, buildCycloneDxComponent, buildFeatureFileContent, buildGraphElements, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, checkGherkinInSync, checkoutTaskBranch, classifyBranch, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, computeCanonicalSha256, computeSha256, createDefaultQualityPolicy, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectProfileFromChange, detectPromptInjection, emitCiOutput, evaluateCompoundLicense, evaluateSingleDependency, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, findChangeWorkspaceDir, findLicenseFile, formatCommitTrailers, formatPrKpiMarkdown, formatReleaseKpiMarkdown, generateBranchHierarchyPlan, generateCycloneDxSbom, generateDashboardReport, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generateQualityReport, generateSastReportMarkdown, generateSecretsReportMarkdown, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getSddAdapter, inferArtifactTypeFromId, inferMissingTrailers, initProject, injectKpisIntoPrBody, installGitHooks, integrateSddChange, isGitleaksInstalled, isPathProtectedFromPatch, isPlaceholderOrIgnored, isRequirementArtifact, isSemgrepInstalled, isToolAvailable, loadProductHandoffSidecar, locateTaskInActiveChanges, maskSecret, normalizeSpdxLicense, parseCommitTrailers, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseLicensePolicy, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSpecCatalogScope, parseTasksDoc, parseTasksFromContent, processPackageDir, readCodeCoverageSummary, readPackageJson, renderAntigravityAgentFile, renderAutonomyModeSection, renderClaudeAgentFile, renderCopilotAgentFile, renderCursorAgentFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCytoscapePath, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveSchemaForArtifact, resolveTargetFiles, runGitleaksCli, runSemgrepCli, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForSast, scanInstalledLicenses, scanManualsInWorkspace, scanPnpmStore, scanSubdirectories, scanWithNativeFs, scanWithSyft, scanWithTrivy, slugify, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyLicenses, verifyManuals, verifyPdacGraph, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCycloneDxSbom, writeReleaseKpiReport, writeThirdPartyNotices };
package/dist/index.d.ts CHANGED
@@ -731,9 +731,62 @@ interface DashboardResult {
731
731
  autonomyDistribution: Record<string, number>;
732
732
  traceabilityRatio: number;
733
733
  bddCoverageRatio: number;
734
+ userManualCoverageRatio?: number;
735
+ productionManualCoverageRatio?: number;
736
+ manualsCount?: number;
734
737
  };
735
738
  html: string;
736
739
  }
740
+ interface ManualDocumentItem {
741
+ id: string;
742
+ type: 'user-manual' | 'production-manual';
743
+ title: string;
744
+ status: string;
745
+ version: string;
746
+ appliesToVersion: string;
747
+ filePath: string;
748
+ targetAudience: string[];
749
+ allowedRoles: string[];
750
+ journeysCovered: string[];
751
+ useCasesCovered: string[];
752
+ componentsCovered: string[];
753
+ enclavesInvolved: string[];
754
+ body: string;
755
+ }
756
+ interface ManualsCoverageSummary {
757
+ totalJourneys: number;
758
+ coveredJourneys: number;
759
+ uncoveredJourneys: string[];
760
+ totalUseCases: number;
761
+ coveredUseCases: number;
762
+ uncoveredUseCases: string[];
763
+ userCoveragePct: number;
764
+ totalComponents: number;
765
+ coveredComponents: number;
766
+ uncoveredComponents: string[];
767
+ totalEnclaves: number;
768
+ coveredEnclaves: number;
769
+ uncoveredEnclaves: string[];
770
+ productionCoveragePct: number;
771
+ }
772
+ interface ManualsVerificationOptions {
773
+ rootDir?: string;
774
+ branch?: string;
775
+ profile?: ChangeProfile;
776
+ strict?: boolean;
777
+ }
778
+ interface ManualsVerificationResult {
779
+ success: boolean;
780
+ status: 'PASSED' | 'WARNING' | 'FAILED';
781
+ enforcementMode: 'ADVISORY' | 'STRICT_RELEASE';
782
+ branch: string;
783
+ profile: ChangeProfile;
784
+ userManuals: ManualDocumentItem[];
785
+ productionManuals: ManualDocumentItem[];
786
+ coverage: ManualsCoverageSummary;
787
+ warnings: string[];
788
+ violations: string[];
789
+ }
737
790
 
738
791
  /**
739
792
  * AI-SDLC: Deterministic Quality Gate Engine (Polyglot Support)
@@ -899,10 +952,25 @@ interface ScanOptions {
899
952
  productionOnly?: boolean;
900
953
  }
901
954
  declare function isToolAvailable(toolName: string): boolean;
902
- declare function normalizeSpdxLicense(raw: any): string;
955
+ declare function normalizeSpdxLicense(raw: unknown): string;
903
956
  declare function findLicenseFile(pkgDir: string): string | undefined;
904
957
  declare function resolveLicenseFromFile(licenseFilePath?: string): string | undefined;
905
- declare function readPackageJson(filePath: string): any | null;
958
+ interface PackageJsonInfo {
959
+ name?: string;
960
+ version?: string;
961
+ license?: unknown;
962
+ licenses?: unknown;
963
+ repository?: string | {
964
+ url?: string;
965
+ };
966
+ author?: string | {
967
+ name?: string;
968
+ };
969
+ dependencies?: Record<string, string>;
970
+ devDependencies?: Record<string, string>;
971
+ [key: string]: unknown;
972
+ }
973
+ declare function readPackageJson(filePath: string): PackageJsonInfo | null;
906
974
  declare function extractDirectDepNames(rootDir: string, productionOnly?: boolean): Set<string>;
907
975
  declare function processPackageDir(pkgDir: string, directNames: Set<string>, seen: Map<string, ScannedDependency>): void;
908
976
  declare function scanSubdirectories(baseDir: string, directNames: Set<string>, seen: Map<string, ScannedDependency>): void;
@@ -987,9 +1055,6 @@ interface JsonSchemaRule {
987
1055
  format?: string;
988
1056
  [key: string]: unknown;
989
1057
  }
990
- /**
991
- * Deterministic JSON Schema validator matching Draft 2020-12 core specifications
992
- */
993
1058
  declare function validateAgainstSchema(value: unknown, schema: JsonSchemaRule, propPath?: string): string[];
994
1059
  declare function resolveSchemaForArtifact(frontmatter: Record<string, unknown>, rootDir: string): {
995
1060
  schemaPath: string;
@@ -1007,6 +1072,15 @@ declare function detectProfileFromChange(changeDir: string): ChangeProfile;
1007
1072
  declare function isPathProtectedFromPatch(filePath: string): boolean;
1008
1073
  declare function verifyProgressiveFriction(options?: ProgressiveFrictionOptions): ProgressiveFrictionResult;
1009
1074
 
1075
+ /**
1076
+ * AI-SDLC: Operational Manuals (MAN-USER & MAN-PROD) Coverage & Progressive Gate Verifier
1077
+ * Audits presence and coverage of User Manuals (JRN-*, UC-*) and Production Manuals (CMP-*, SEC-ENC-*).
1078
+ * Enforces non-blocking ADVISORY warnings during daily development and STRICT blocking on release/* or critical changes.
1079
+ */
1080
+
1081
+ declare function scanManualsInWorkspace(rootDir: string): ManualDocumentItem[];
1082
+ declare function verifyManuals(options?: ManualsVerificationOptions): ManualsVerificationResult;
1083
+
1010
1084
  /**
1011
1085
  * AI-SDLC: Deterministic Duplicate Requirements Verifier (Shift-Left Pre-Implementation Gate)
1012
1086
  *
@@ -1220,6 +1294,10 @@ declare function formatCommitTrailers(trailers: Partial<CommitTrailers>): string
1220
1294
  * when not explicitly declared in commit trailers.
1221
1295
  */
1222
1296
  declare function inferMissingTrailers(trailers: CommitTrailers, linesAdded: number, linesDeleted: number): CommitTrailers;
1297
+ /**
1298
+ * Resolves a git reference (branch or commit), checking common branch prefixes if not directly found.
1299
+ */
1300
+ declare function resolveGitRef(cwd: string, ref: string): string;
1223
1301
  /**
1224
1302
  * Extracts all commit records and their KPIs in a git revision range (e.g. main..HEAD).
1225
1303
  */
@@ -1293,6 +1371,10 @@ interface PrKpiAggregation {
1293
1371
  }
1294
1372
  declare const KPI_SUMMARY_START_TAG = "<!-- AI-SDLC-KPI-SUMMARY-START -->";
1295
1373
  declare const KPI_SUMMARY_END_TAG = "<!-- AI-SDLC-KPI-SUMMARY-END -->";
1374
+ /**
1375
+ * Aggregates a collection of commit KPI records into a unified PR KPI aggregation.
1376
+ */
1377
+ declare function aggregateCommitKpiRecords(records: CommitKpiRecord[], baseRef?: string, headRef?: string): PrKpiAggregation;
1296
1378
  /**
1297
1379
  * Aggregates all commit KPIs in the revision range of a Pull Request.
1298
1380
  */
@@ -1369,6 +1451,7 @@ declare function formatReleaseKpiMarkdown(report: ReleaseKpiReport): string;
1369
1451
  */
1370
1452
  declare function writeReleaseKpiReport(report: ReleaseKpiReport, options?: {
1371
1453
  outputDir?: string;
1454
+ rootDir?: string;
1372
1455
  }): {
1373
1456
  markdownPath: string;
1374
1457
  jsonPath: string;
@@ -1387,6 +1470,11 @@ declare function resolveCytoscapePath(): string | null;
1387
1470
  */
1388
1471
  declare function getCytoscapeScript(): string;
1389
1472
 
1473
+ /**
1474
+ * AI-SDLC: Cytoscape Graph Elements Builder
1475
+ * Scans workspace artifacts and RTM traceability to build Graph Elements for Cytoscape.js.
1476
+ */
1477
+
1390
1478
  interface GraphElementsResult {
1391
1479
  elements: CytoscapeElement[];
1392
1480
  nodesByLayer: Record<GraphNodeLayer, number>;
@@ -1397,6 +1485,29 @@ interface GraphElementsResult {
1397
1485
  * Builds the graph elements (nodes & edges) for Cytoscape.js.
1398
1486
  */
1399
1487
  declare function buildGraphElements(rootDir?: string): GraphElementsResult;
1488
+
1489
+ /**
1490
+ * AI-SDLC: Dashboard HTML Renderer
1491
+ * Generates modular offline HTML for Cytoscape Graph, RTM 360°, Quality Gates, and KPIs.
1492
+ */
1493
+
1494
+ interface DashboardMetricsData {
1495
+ gate: QualityGateResult;
1496
+ gov: GovernanceResult;
1497
+ cov: TestingCoverageResult;
1498
+ codeCoverage: CodeCoverageSummary | null;
1499
+ trace: TraceabilityResult;
1500
+ manuals: ManualsVerificationResult;
1501
+ history: DashboardHistoricalKpi[];
1502
+ activePrKpi: PrKpiAggregation | null;
1503
+ activeBranch: string;
1504
+ branchTelemetries?: Record<string, PrKpiAggregation>;
1505
+ totalTelemetry?: PrKpiAggregation | null;
1506
+ }
1507
+ declare function renderAutonomyModeSection(mode: string, statusIcon: string, count: number, roleDescription: string, allTasks?: TaskSummary[]): string;
1508
+ declare function renderManualsTab(manuals: ManualsVerificationResult): string;
1509
+ declare function renderDashboardHtml(graphData: GraphElementsResult, metricsData: DashboardMetricsData, title?: string): string;
1510
+
1400
1511
  /**
1401
1512
  * Loads historical KPI records from reports/releases/ directory.
1402
1513
  */
@@ -1410,14 +1521,13 @@ declare function collectDashboardMetrics(rootDir: string): {
1410
1521
  cov: TestingCoverageResult;
1411
1522
  codeCoverage: CodeCoverageSummary | null;
1412
1523
  trace: TraceabilityResult;
1524
+ manuals: ManualsVerificationResult;
1413
1525
  history: DashboardHistoricalKpi[];
1414
1526
  activePrKpi: PrKpiAggregation | null;
1415
1527
  activeBranch: string;
1528
+ branchTelemetries: Record<string, PrKpiAggregation>;
1529
+ totalTelemetry: PrKpiAggregation | null;
1416
1530
  };
1417
- /**
1418
- * Renders the HTML string for the interactive dashboard.
1419
- */
1420
- declare function renderDashboardHtml(graphData: GraphElementsResult, metricsData: ReturnType<typeof collectDashboardMetrics>, title?: string): string;
1421
1531
  /**
1422
1532
  * Main function to generate the dashboard report.
1423
1533
  */
@@ -1512,13 +1622,6 @@ interface SpecCatalogScope {
1512
1622
  newItems: SpecCatalogNewItem[];
1513
1623
  affectedItems: SpecCatalogAffectedItem[];
1514
1624
  }
1515
- /**
1516
- * Parses a spec.md using the canonical template format to extract:
1517
- * - Section 1.1: existing catalog items that are MODIFIED or DEPRECATED
1518
- * - Section 1.2: new catalog items to be physically materialized
1519
- *
1520
- * Returns empty arrays when the spec uses the simplified format (no 1.1 / 1.2 headings).
1521
- */
1522
1625
  declare function parseSpecCatalogScope(specContent: string): SpecCatalogScope;
1523
1626
  declare function findChangeWorkspaceDir(rootDir: string, changeId: string): string | null;
1524
1627
  declare function integrateSddChange(options: SddIntegrationOptions): SddIntegrationResult;
@@ -1634,7 +1737,7 @@ declare const STARTER_VSCODE_MCP = "{\n \"servers\": {\n \"ai-sdlc\": {\n
1634
1737
 
1635
1738
  declare const VALID_CI_PROVIDERS: readonly ["github", "gitlab", "azure", "bitbucket"];
1636
1739
  type SupportedCiProvider = (typeof VALID_CI_PROVIDERS)[number];
1637
- declare const STARTER_QUALITY_POLICY = "# ==============================================================================\n# AI-SDLC: Software Quality, Coding Rules & Release Gate Policy\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\nenforcement_mode: \"STRICT\"\n\nscope:\n target_directories:\n - \"src\"\n - \"lib\"\n - \"examples\"\n - \"tests\"\n supported_extensions:\n - \".ts\"\n - \".js\"\n - \".py\"\n - \".java\"\n - \".go\"\n - \".cs\"\n - \".rs\"\n - \".cpp\"\n - \".c\"\n exclude_patterns:\n - \"node_modules\"\n - \"__pycache__\"\n - \".pytest_cache\"\n - \"target\"\n - \"bin\"\n - \"obj\"\n - \".git\"\n - \"reports\"\n - \"dist\"\n - \".changeset\"\n\nthresholds:\n cyclomatic_complexity:\n max_per_function: 10\n cognitive_complexity:\n max_per_function: 15\n maintainability_index:\n min_acceptable_score: 50.0\n function_length:\n max_function_lines: 40\n";
1740
+ declare const STARTER_QUALITY_POLICY = "# ==============================================================================\n# AI-SDLC: Software Quality, Coding Rules & Release Gate Policy\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\nenforcement_mode: \"STRICT\"\n\nscope:\n target_directories:\n - \"src\"\n - \"lib\"\n supported_extensions:\n - \".ts\"\n - \".js\"\n - \".py\"\n - \".java\"\n - \".go\"\n - \".cs\"\n - \".rs\"\n - \".cpp\"\n - \".c\"\n exclude_patterns:\n - \"node_modules\"\n - \"__pycache__\"\n - \".pytest_cache\"\n - \"target\"\n - \"bin\"\n - \"obj\"\n - \".git\"\n - \"reports\"\n - \"dist\"\n - \".changeset\"\n - \"examples\"\n - \"scratch\"\n - \"templates\"\n\nthresholds:\n cyclomatic_complexity:\n max_per_function: 10\n cognitive_complexity:\n max_per_function: 15\n maintainability_index:\n min_acceptable_score: 50.0\n function_length:\n max_function_lines: 40\n";
1638
1741
  declare const STARTER_LICENSE_POLICY = "# ==============================================================================\n# AI-SDLC: Open Source License Compliance & Governance Policy\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\ndefault_action: \"DENY\"\n\ncategories:\n permissive_free:\n action: \"ALLOW\"\n description: \"Permissive commercial use licenses. Attribution only required.\"\n spdx_identifiers:\n - \"MIT\"\n - \"Apache-2.0\"\n - \"BSD-2-Clause\"\n - \"BSD-3-Clause\"\n - \"ISC\"\n - \"Unlicense\"\n - \"CC0-1.0\"\n - \"0BSD\"\n\n weak_copyleft_conditional:\n action: \"REVIEW_REQUIRED\"\n description: \"Allowed only as dynamically linked decoupled libraries.\"\n spdx_identifiers:\n - \"LGPL-2.1-only\"\n - \"LGPL-3.0-only\"\n - \"MPL-2.0\"\n\n strong_copyleft_viral:\n action: \"DENY\"\n description: \"Forbidden due to viral copyleft forcing source code disclosure.\"\n spdx_identifiers:\n - \"GPL-2.0-only\"\n - \"GPL-3.0-only\"\n - \"AGPL-3.0-only\"\n - \"AGPL-3.0-or-later\"\n\n commercial_acquisition_required:\n action: \"COMMERCIAL_APPROVAL_REQUIRED\"\n description: \"Source-available code requiring commercial license for SaaS deployment.\"\n spdx_identifiers:\n - \"SSPL-1.0\"\n - \"BSL-1.1\"\n";
1639
1742
  declare const STARTER_TASK_TEMPLATE = "---\ntasks:\n - id: \"TSK-001-setup\"\n title: \"Initial component setup\"\n complexity: \"LOW\"\n risk-level: \"LOW\"\n autonomy-mode: \"AUTONOMOUS\"\n assigned-to: \"agent-developer\"\n status: \"PENDING\"\n verification:\n method: \"COMMAND_VERIFICATION\"\n command-or-criteria: \"pnpm test\"\n---\n\n# Task Plan: Component\n";
1640
1743
  declare const STARTER_REQUIREMENT_TEMPLATE = "---\nid: \"FR-SAMPLE-001\"\ntype: \"requirement\"\ntitle: \"Sample Feature\"\nstatus: \"active\"\nversion: \"1.0.0\"\ncategory: \"functional\"\nderives-from:\n - \"UC-SAMPLE-USECASE\"\nverifiable-by: \"cucumber-bdd\"\nacceptance-format: \"gherkin\"\ncucumber-tags:\n - \"@FR-SAMPLE-001\"\n---\n\n# Requirement: Sample Feature\n\n```gherkin\nFeature: Sample Feature\n Scenario: Basic execution\n Given system is ready\n When user triggers action\n Then system responds with 200 OK\n```\n";
@@ -1678,4 +1781,4 @@ declare function initProject(options?: InitProjectOptions): InitProjectResult;
1678
1781
 
1679
1782
  declare function walkMdFiles(dir: string, fileList?: string[], excludeDirs?: string[]): string[];
1680
1783
 
1681
- 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 BranchClassificationResult, type BranchHierarchyPlan, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CiProvider, type CodeCoverageSummary, type CommitKpiRecord, type CommitTrailers, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXTENSIONS, DEFAULT_SAST_EXCLUDES, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DiffLineItem, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type ExtractedFeature, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, type GherkinExtractionOptions, type GherkinExtractionResult, 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 JsonSchemaRule, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, type LicensePolicy, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type ModelDefectStats, OpenSpecAdapter, PREPARE_COMMIT_MSG_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type PromptInjectionFinding, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, SAST_RULES, SECRET_RULES, SPECIALIZED_AGENT_TEMPLATES, 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_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_LICENSE_POLICY, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_TASK_TEMPLATE, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomGenerateOptions, type ScaTool, type ScanOptions, type ScannedDependency, type ScannedRequirement, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type SupportedCiProvider, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, aggregatePrKpis, aggregateReleaseKpis, appendRevisionHistoryRow, buildCycloneDxComponent, buildFeatureFileContent, buildGraphElements, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, checkGherkinInSync, checkoutTaskBranch, classifyBranch, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, computeCanonicalSha256, computeSha256, createDefaultQualityPolicy, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectProfileFromChange, detectPromptInjection, emitCiOutput, evaluateCompoundLicense, evaluateSingleDependency, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, findChangeWorkspaceDir, findLicenseFile, formatCommitTrailers, formatPrKpiMarkdown, formatReleaseKpiMarkdown, generateBranchHierarchyPlan, generateCycloneDxSbom, generateDashboardReport, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generateQualityReport, generateSastReportMarkdown, generateSecretsReportMarkdown, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getSddAdapter, inferArtifactTypeFromId, inferMissingTrailers, initProject, injectKpisIntoPrBody, installGitHooks, integrateSddChange, isGitleaksInstalled, isPathProtectedFromPatch, isPlaceholderOrIgnored, isRequirementArtifact, isSemgrepInstalled, isToolAvailable, loadProductHandoffSidecar, locateTaskInActiveChanges, maskSecret, normalizeSpdxLicense, parseCommitTrailers, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseLicensePolicy, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSpecCatalogScope, parseTasksDoc, parseTasksFromContent, processPackageDir, readCodeCoverageSummary, readPackageJson, renderAntigravityAgentFile, renderClaudeAgentFile, renderCopilotAgentFile, renderCursorAgentFile, renderDashboardHtml, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCytoscapePath, resolveFeatureFilePath, resolveLicenseFromFile, resolveSchemaForArtifact, resolveTargetFiles, runGitleaksCli, runSemgrepCli, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForSast, scanInstalledLicenses, scanPnpmStore, scanSubdirectories, scanWithNativeFs, scanWithSyft, scanWithTrivy, slugify, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyLicenses, verifyPdacGraph, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCycloneDxSbom, writeReleaseKpiReport, writeThirdPartyNotices };
1784
+ 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 BranchClassificationResult, type BranchHierarchyPlan, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CiProvider, type CodeCoverageSummary, type CommitKpiRecord, type CommitTrailers, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXTENSIONS, DEFAULT_SAST_EXCLUDES, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DiffLineItem, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type ExtractedFeature, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, type GherkinExtractionOptions, type GherkinExtractionResult, 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 JsonSchemaRule, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, type LicensePolicy, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type ManualDocumentItem, type ManualsCoverageSummary, type ManualsVerificationOptions, type ManualsVerificationResult, type ModelDefectStats, OpenSpecAdapter, PREPARE_COMMIT_MSG_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, type PackageJsonInfo, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type PromptInjectionFinding, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, SAST_RULES, SECRET_RULES, SPECIALIZED_AGENT_TEMPLATES, 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_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_LICENSE_POLICY, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_TASK_TEMPLATE, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomGenerateOptions, type ScaTool, type ScanOptions, type ScannedDependency, type ScannedRequirement, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type SupportedCiProvider, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, appendRevisionHistoryRow, buildCycloneDxComponent, buildFeatureFileContent, buildGraphElements, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, checkGherkinInSync, checkoutTaskBranch, classifyBranch, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, computeCanonicalSha256, computeSha256, createDefaultQualityPolicy, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectProfileFromChange, detectPromptInjection, emitCiOutput, evaluateCompoundLicense, evaluateSingleDependency, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, findChangeWorkspaceDir, findLicenseFile, formatCommitTrailers, formatPrKpiMarkdown, formatReleaseKpiMarkdown, generateBranchHierarchyPlan, generateCycloneDxSbom, generateDashboardReport, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generateQualityReport, generateSastReportMarkdown, generateSecretsReportMarkdown, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getSddAdapter, inferArtifactTypeFromId, inferMissingTrailers, initProject, injectKpisIntoPrBody, installGitHooks, integrateSddChange, isGitleaksInstalled, isPathProtectedFromPatch, isPlaceholderOrIgnored, isRequirementArtifact, isSemgrepInstalled, isToolAvailable, loadProductHandoffSidecar, locateTaskInActiveChanges, maskSecret, normalizeSpdxLicense, parseCommitTrailers, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseLicensePolicy, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSpecCatalogScope, parseTasksDoc, parseTasksFromContent, processPackageDir, readCodeCoverageSummary, readPackageJson, renderAntigravityAgentFile, renderAutonomyModeSection, renderClaudeAgentFile, renderCopilotAgentFile, renderCursorAgentFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCytoscapePath, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveSchemaForArtifact, resolveTargetFiles, runGitleaksCli, runSemgrepCli, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForSast, scanInstalledLicenses, scanManualsInWorkspace, scanPnpmStore, scanSubdirectories, scanWithNativeFs, scanWithSyft, scanWithTrivy, slugify, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyLicenses, verifyManuals, verifyPdacGraph, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCycloneDxSbom, writeReleaseKpiReport, writeThirdPartyNotices };