@paths.design/caws-cli 4.0.0 → 5.0.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.
Files changed (119) hide show
  1. package/dist/commands/archive.js +353 -0
  2. package/dist/commands/iterate.js +12 -13
  3. package/dist/commands/mode.js +259 -0
  4. package/dist/commands/plan.js +448 -0
  5. package/dist/commands/quality-gates.js +490 -0
  6. package/dist/commands/specs.js +735 -0
  7. package/dist/commands/status.js +552 -22
  8. package/dist/commands/tutorial.js +481 -0
  9. package/dist/commands/validate.js +137 -54
  10. package/dist/commands/waivers.js +101 -26
  11. package/dist/config/modes.js +321 -0
  12. package/dist/constants/spec-types.js +42 -0
  13. package/dist/index.js +225 -10
  14. package/dist/scaffold/git-hooks.js +32 -44
  15. package/dist/scaffold/index.js +19 -0
  16. package/dist/utils/quality-gates-errors.js +520 -0
  17. package/dist/utils/quality-gates.js +361 -0
  18. package/dist/utils/spec-resolver.js +602 -0
  19. package/dist/waivers-manager.js +49 -4
  20. package/package.json +6 -5
  21. package/templates/.cursor/hooks/caws-scope-guard.sh +64 -8
  22. package/templates/.cursor/hooks/validate-spec.sh +22 -12
  23. package/templates/.cursor/rules/{01-claims-verification.mdc → 00-claims-verification.mdc} +1 -1
  24. package/templates/.cursor/rules/01-working-style.mdc +50 -0
  25. package/templates/.cursor/rules/{02-testing-standards.mdc → 02-quality-gates.mdc} +84 -29
  26. package/templates/.cursor/rules/03-naming-and-refactor.mdc +33 -0
  27. package/templates/.cursor/rules/04-logging-language-style.mdc +23 -0
  28. package/templates/.cursor/rules/05-safe-defaults-guards.mdc +23 -0
  29. package/templates/.cursor/rules/06-typescript-conventions.mdc +36 -0
  30. package/templates/.cursor/rules/07-process-ops.mdc +20 -0
  31. package/templates/.cursor/rules/08-solid-and-architecture.mdc +16 -0
  32. package/templates/.cursor/rules/09-docstrings.mdc +89 -0
  33. package/templates/.cursor/rules/10-authorship-and-attribution.mdc +15 -0
  34. package/templates/.cursor/rules/11-documentation-quality-standards.mdc +390 -0
  35. package/templates/.cursor/rules/12-scope-management-waivers.mdc +385 -0
  36. package/templates/.cursor/rules/13-implementation-completeness.mdc +516 -0
  37. package/templates/.cursor/rules/14-language-agnostic-standards.mdc +588 -0
  38. package/templates/.cursor/rules/15-sophisticated-todo-detection.mdc +425 -0
  39. package/templates/.cursor/rules/README.md +93 -7
  40. package/templates/scripts/quality-gates/check-god-objects.js +146 -0
  41. package/templates/scripts/quality-gates/run-quality-gates.js +50 -0
  42. package/templates/scripts/v3/analysis/todo_analyzer.py +1950 -0
  43. package/dist/budget-derivation.d.ts +0 -74
  44. package/dist/budget-derivation.d.ts.map +0 -1
  45. package/dist/cicd-optimizer.d.ts +0 -142
  46. package/dist/cicd-optimizer.d.ts.map +0 -1
  47. package/dist/commands/burnup.d.ts +0 -6
  48. package/dist/commands/burnup.d.ts.map +0 -1
  49. package/dist/commands/diagnose.d.ts +0 -52
  50. package/dist/commands/diagnose.d.ts.map +0 -1
  51. package/dist/commands/evaluate.d.ts +0 -8
  52. package/dist/commands/evaluate.d.ts.map +0 -1
  53. package/dist/commands/init.d.ts +0 -5
  54. package/dist/commands/init.d.ts.map +0 -1
  55. package/dist/commands/iterate.d.ts +0 -8
  56. package/dist/commands/iterate.d.ts.map +0 -1
  57. package/dist/commands/provenance.d.ts +0 -32
  58. package/dist/commands/provenance.d.ts.map +0 -1
  59. package/dist/commands/quality-monitor.d.ts +0 -17
  60. package/dist/commands/quality-monitor.d.ts.map +0 -1
  61. package/dist/commands/status.d.ts +0 -43
  62. package/dist/commands/status.d.ts.map +0 -1
  63. package/dist/commands/templates.d.ts +0 -74
  64. package/dist/commands/templates.d.ts.map +0 -1
  65. package/dist/commands/tool.d.ts +0 -13
  66. package/dist/commands/tool.d.ts.map +0 -1
  67. package/dist/commands/troubleshoot.d.ts +0 -8
  68. package/dist/commands/troubleshoot.d.ts.map +0 -1
  69. package/dist/commands/validate.d.ts +0 -8
  70. package/dist/commands/validate.d.ts.map +0 -1
  71. package/dist/commands/waivers.d.ts +0 -8
  72. package/dist/commands/waivers.d.ts.map +0 -1
  73. package/dist/commands/workflow.d.ts +0 -85
  74. package/dist/commands/workflow.d.ts.map +0 -1
  75. package/dist/config/index.d.ts +0 -29
  76. package/dist/config/index.d.ts.map +0 -1
  77. package/dist/error-handler.d.ts +0 -164
  78. package/dist/error-handler.d.ts.map +0 -1
  79. package/dist/generators/jest-config.d.ts +0 -32
  80. package/dist/generators/jest-config.d.ts.map +0 -1
  81. package/dist/generators/working-spec.d.ts +0 -13
  82. package/dist/generators/working-spec.d.ts.map +0 -1
  83. package/dist/index.d.ts +0 -5
  84. package/dist/index.d.ts.map +0 -1
  85. package/dist/minimal-cli.d.ts +0 -3
  86. package/dist/minimal-cli.d.ts.map +0 -1
  87. package/dist/policy/PolicyManager.d.ts +0 -104
  88. package/dist/policy/PolicyManager.d.ts.map +0 -1
  89. package/dist/scaffold/cursor-hooks.d.ts +0 -7
  90. package/dist/scaffold/cursor-hooks.d.ts.map +0 -1
  91. package/dist/scaffold/git-hooks.d.ts +0 -20
  92. package/dist/scaffold/git-hooks.d.ts.map +0 -1
  93. package/dist/scaffold/index.d.ts +0 -20
  94. package/dist/scaffold/index.d.ts.map +0 -1
  95. package/dist/spec/SpecFileManager.d.ts +0 -146
  96. package/dist/spec/SpecFileManager.d.ts.map +0 -1
  97. package/dist/test-analysis.d.ts +0 -182
  98. package/dist/test-analysis.d.ts.map +0 -1
  99. package/dist/tool-interface.d.ts +0 -236
  100. package/dist/tool-interface.d.ts.map +0 -1
  101. package/dist/tool-loader.d.ts +0 -77
  102. package/dist/tool-loader.d.ts.map +0 -1
  103. package/dist/tool-validator.d.ts +0 -72
  104. package/dist/tool-validator.d.ts.map +0 -1
  105. package/dist/utils/detection.d.ts +0 -7
  106. package/dist/utils/detection.d.ts.map +0 -1
  107. package/dist/utils/finalization.d.ts +0 -17
  108. package/dist/utils/finalization.d.ts.map +0 -1
  109. package/dist/utils/project-analysis.d.ts +0 -14
  110. package/dist/utils/project-analysis.d.ts.map +0 -1
  111. package/dist/utils/typescript-detector.d.ts +0 -63
  112. package/dist/utils/typescript-detector.d.ts.map +0 -1
  113. package/dist/validation/spec-validation.d.ts +0 -43
  114. package/dist/validation/spec-validation.d.ts.map +0 -1
  115. package/dist/waivers-manager.d.ts +0 -167
  116. package/dist/waivers-manager.d.ts.map +0 -1
  117. package/templates/.cursor/rules/03-infrastructure-standards.mdc +0 -251
  118. package/templates/.cursor/rules/04-documentation-integrity.mdc +0 -291
  119. package/templates/.cursor/rules/05-production-readiness-checklist.mdc +0 -214
@@ -1,74 +0,0 @@
1
- /**
2
- * Derive budget for a working spec based on policy and waivers
3
- * Enhanced to use PolicyManager for caching
4
- * @param {Object} spec - Working spec object
5
- * @param {string} projectRoot - Project root directory
6
- * @param {Object} options - Derivation options
7
- * @param {boolean} options.useCache - Use cached policy (default: true)
8
- * @returns {Object} Derived budget with baseline and effective limits
9
- */
10
- export function deriveBudget(spec: any, projectRoot?: string, options?: {
11
- useCache: boolean;
12
- }): any;
13
- /**
14
- * Load a waiver by ID
15
- * Enhanced with structure validation and detailed error reporting
16
- * @param {string} waiverId - Waiver ID (e.g., WV-0001)
17
- * @param {string} projectRoot - Project root directory
18
- * @returns {Object|null} Waiver object or null if not found
19
- */
20
- export function loadWaiver(waiverId: string, projectRoot: string): any | null;
21
- /**
22
- * Check if a waiver is currently valid
23
- * Enhanced with proper expiry and approval validation
24
- * @param {Object} waiver - Waiver object
25
- * @param {Object} policy - Policy configuration (optional)
26
- * @returns {boolean} Whether waiver is valid and active
27
- */
28
- export function isWaiverValid(waiver: any, policy?: any): boolean;
29
- /**
30
- * Check if current changes exceed derived budget
31
- * @param {Object} derivedBudget - Budget from deriveBudget()
32
- * @param {Object} currentStats - Current change statistics
33
- * @returns {Object} Budget check result
34
- */
35
- export function checkBudgetCompliance(derivedBudget: any, currentStats: any): any;
36
- /**
37
- * Generate burn-up report for scope visibility
38
- * Enhanced with utilization metrics and warnings
39
- * @param {Object} derivedBudget - Budget from deriveBudget()
40
- * @param {Object} currentStats - Current change statistics
41
- * @returns {string} Human-readable burn-up report
42
- */
43
- export function generateBurnupReport(derivedBudget: any, currentStats: any): string;
44
- /**
45
- * Calculate budget utilization percentages
46
- * @param {Object} budgetCompliance - Budget compliance result
47
- * @returns {Object} Utilization percentages
48
- */
49
- export function calculateBudgetUtilization(budgetCompliance: any): any;
50
- /**
51
- * Check if changes are approaching budget limit
52
- * @param {Object} budgetCompliance - Budget compliance result
53
- * @param {number} threshold - Warning threshold (default 80)
54
- * @returns {boolean} Whether approaching limit
55
- */
56
- export function isApproachingBudgetLimit(budgetCompliance: any, threshold?: number): boolean;
57
- /**
58
- * Validate policy structure and content
59
- * @param {Object} policy - Policy object from policy.yaml
60
- * @throws {Error} If policy is invalid
61
- */
62
- export function validatePolicy(policy: any): void;
63
- /**
64
- * Get default policy as fallback
65
- * @returns {Object} Default CAWS policy
66
- */
67
- export function getDefaultPolicy(): any;
68
- /**
69
- * Validate waiver document structure
70
- * @param {Object} waiver - Waiver document to validate
71
- * @throws {Error} If waiver structure is invalid
72
- */
73
- export function validateWaiverStructure(waiver: any): void;
74
- //# sourceMappingURL=budget-derivation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"budget-derivation.d.ts","sourceRoot":"","sources":["../src/budget-derivation.js"],"names":[],"mappings":"AA8JA;;;;;;;;GAQG;AACH,sDALW,MAAM,YAEd;IAAyB,QAAQ,EAAzB,OAAO;CACf,OA+FF;AA4FD;;;;;;GAMG;AACH,qCAJW,MAAM,eACN,MAAM,GACJ,MAAO,IAAI,CAuCvB;AAED;;;;;;GAMG;AACH,0DAFa,OAAO,CAgDnB;AAED;;;;;GAKG;AACH,kFA8BC;AAqCD;;;;;;GAMG;AACH,6EAFa,MAAM,CA8ClB;AAtFD;;;;GAIG;AACH,uEAiBC;AAED;;;;;GAKG;AACH,4EAHW,MAAM,GACJ,OAAO,CAKnB;AAhgBD;;;;GAIG;AACH,kDA+FC;AAED;;;GAGG;AACH,wCAsCC;AA0GD;;;;GAIG;AACH,2DAmFC"}
@@ -1,142 +0,0 @@
1
- export = CICDOptimizer;
2
- declare class CICDOptimizer {
3
- constructor(options?: {});
4
- projectRoot: any;
5
- cacheDir: string;
6
- optimizationConfig: string;
7
- /**
8
- * Analyze project and generate CI/CD optimization recommendations
9
- */
10
- analyzeProject(specPath?: string): Promise<{
11
- project_tier: string;
12
- recommended_optimizations: any[];
13
- cache_strategy: {};
14
- parallel_groups: any[];
15
- conditional_execution: {};
16
- estimated_savings: {};
17
- }>;
18
- /**
19
- * Generate tier-based conditional execution rules
20
- */
21
- generateConditionalExecutionRules(tier: any): {
22
- coverage_required: boolean;
23
- mutation_required: boolean;
24
- contract_testing: boolean;
25
- accessibility_check: boolean;
26
- performance_budget: boolean;
27
- security_scan: boolean;
28
- lint_strict: boolean;
29
- };
30
- /**
31
- * Analyze what optimizations are beneficial for this tier
32
- */
33
- analyzeOptimizationOpportunities(tier: any): Promise<{
34
- type: string;
35
- description: string;
36
- impact: string;
37
- effort: string;
38
- }[]>;
39
- /**
40
- * Generate intelligent caching strategy
41
- */
42
- generateCacheStrategy(): Promise<{
43
- node_modules: {
44
- key: string;
45
- paths: string[];
46
- restore_keys: string[];
47
- };
48
- build_artifacts: {
49
- key: string;
50
- paths: string[];
51
- restore_keys: any[];
52
- };
53
- test_cache: {
54
- key: string;
55
- paths: string[];
56
- restore_keys: string[];
57
- };
58
- }>;
59
- /**
60
- * Create parallel execution groups for quality gates
61
- */
62
- createParallelGroups(): Promise<{
63
- name: string;
64
- description: string;
65
- jobs: string[];
66
- max_parallel: number;
67
- timeout: number;
68
- }[]>;
69
- /**
70
- * Analyze changed files to determine what tests to run
71
- */
72
- analyzeChangedFiles(changedFiles?: any[]): Promise<{
73
- unit: any[];
74
- integration: any[];
75
- contract: any[];
76
- e2e: any[];
77
- }>;
78
- /**
79
- * Estimate time savings from optimizations
80
- */
81
- estimateTimeSavings(analysis: any): {
82
- original_minutes: any;
83
- optimized_minutes: number;
84
- savings_percent: number;
85
- monthly_savings_hours: number;
86
- };
87
- /**
88
- * Generate optimized CI/CD configuration
89
- */
90
- generateOptimizedConfig(platform?: string): Promise<string | {
91
- name: string;
92
- on: {
93
- push: {
94
- branches: string[];
95
- };
96
- pull_request: {
97
- branches: string[];
98
- };
99
- };
100
- jobs: {};
101
- } | {
102
- stages: string[];
103
- cache: {
104
- key: string;
105
- paths: string[];
106
- };
107
- }>;
108
- /**
109
- * Generate optimized GitHub Actions workflow
110
- */
111
- generateGitHubActionsConfig(analysis: any): {
112
- name: string;
113
- on: {
114
- push: {
115
- branches: string[];
116
- };
117
- pull_request: {
118
- branches: string[];
119
- };
120
- };
121
- jobs: {};
122
- };
123
- /**
124
- * Generate GitLab CI configuration
125
- */
126
- generateGitLabCIConfig(analysis: any): {
127
- stages: string[];
128
- cache: {
129
- key: string;
130
- paths: string[];
131
- };
132
- };
133
- /**
134
- * Generate Jenkins pipeline configuration
135
- */
136
- generateJenkinsConfig(analysis: any): string;
137
- /**
138
- * Create hash for cache invalidation
139
- */
140
- createCacheHash(files: any): string;
141
- }
142
- //# sourceMappingURL=cicd-optimizer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cicd-optimizer.d.ts","sourceRoot":"","sources":["../src/cicd-optimizer.js"],"names":[],"mappings":";AAaA;IACE,0BASC;IARC,iBAAuD;IACvD,iBAA6D;IAC7D,2BAAkF;IAQpF;;OAEG;IACH;;;;;;;OAyCC;IAED;;OAEG;IACH;;;;;;;;MAyBC;IAED;;OAEG;IACH;;;;;SA6CC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;OA8CC;IAED;;OAEG;IACH;;;;;;SA0BC;IAED;;OAEG;IACH;;;;;OA2BC;IAED;;OAEG;IACH;;;;;MA+BC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;;OAYC;IAED;;OAEG;IACH;;;;;;;;;;;MA4EC;IAED;;OAEG;IACH;;;;;;MAiCC;IAED;;OAEG;IACH,6CA+CC;IAED;;OAEG;IACH,oCAQC;CACF"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Burn-up command handler
3
- * @param {string} specFile - Path to spec file
4
- */
5
- export function burnupCommand(specFile: string): Promise<void>;
6
- //# sourceMappingURL=burnup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"burnup.d.ts","sourceRoot":"","sources":["../../src/commands/burnup.js"],"names":[],"mappings":"AAaA;;;GAGG;AACH,wCAFW,MAAM,iBAsEhB"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Diagnose command handler
3
- * @param {Object} options - Command options
4
- */
5
- export function diagnoseCommand(options?: any): Promise<void>;
6
- /**
7
- * Run all health checks
8
- * @returns {Promise<Object>} Diagnosis results
9
- */
10
- export function runDiagnosis(): Promise<any>;
11
- /**
12
- * Display diagnosis results
13
- * @param {Object[]} results - Diagnosis results
14
- */
15
- export function displayResults(results: any[]): void;
16
- /**
17
- * Apply automatic fixes
18
- * @param {Object[]} results - Diagnosis results
19
- * @returns {Promise<Object>} Fix results
20
- */
21
- export function applyAutoFixes(results: any[]): Promise<any>;
22
- /**
23
- * Health check: Working spec validity
24
- * @returns {Promise<Object>} Check result
25
- */
26
- export function checkWorkingSpec(): Promise<any>;
27
- /**
28
- * Health check: Git repository
29
- * @returns {Promise<Object>} Check result
30
- */
31
- export function checkGitSetup(): Promise<any>;
32
- /**
33
- * Health check: Git hooks
34
- * @returns {Promise<Object>} Check result
35
- */
36
- export function checkGitHooks(): Promise<any>;
37
- /**
38
- * Health check: TypeScript configuration
39
- * @returns {Promise<Object>} Check result
40
- */
41
- export function checkTypeScriptConfig(): Promise<any>;
42
- /**
43
- * Health check: Test files exist
44
- * @returns {Promise<Object>} Check result
45
- */
46
- export function checkTestFiles(): Promise<any>;
47
- /**
48
- * Health check: CAWS tools directory
49
- * @returns {Promise<Object>} Check result
50
- */
51
- export function checkCAWSTools(): Promise<any>;
52
- //# sourceMappingURL=diagnose.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diagnose.d.ts","sourceRoot":"","sources":["../../src/commands/diagnose.js"],"names":[],"mappings":"AAubA;;;GAGG;AACH,8DAiDC;AApND;;;GAGG;AACH,gCAFa,OAAO,KAAQ,CAkD3B;AAED;;;GAGG;AACH,wCAFW,KAAQ,QA4ClB;AAED;;;;GAIG;AACH,wCAHW,KAAQ,GACN,OAAO,KAAQ,CAoD3B;AAtaD;;;GAGG;AACH,oCAFa,OAAO,KAAQ,CA2C3B;AAED;;;GAGG;AACH,iCAFa,OAAO,KAAQ,CAiB3B;AAED;;;GAGG;AACH,iCAFa,OAAO,KAAQ,CA0C3B;AAED;;;GAGG;AACH,yCAFa,OAAO,KAAQ,CAgE3B;AAED;;;GAGG;AACH,kCAFa,OAAO,KAAQ,CAoC3B;AAED;;;GAGG;AACH,kCAFa,OAAO,KAAQ,CAuC3B"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Evaluate command handler
3
- *
4
- * @param {string} specFile - Path to working spec file
5
- * @param {object} options - Command options
6
- */
7
- export function evaluateCommand(specFile?: string, options?: object): Promise<void>;
8
- //# sourceMappingURL=evaluate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../src/commands/evaluate.js"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,2CAHW,MAAM,YACN,MAAM,iBA0QhB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Initialize a new project with CAWS
3
- */
4
- export function initProject(projectName: any, options: any): Promise<void>;
5
- //# sourceMappingURL=init.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.js"],"names":[],"mappings":"AAoBA;;GAEG;AACH,2EAseC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Iterate command handler
3
- *
4
- * @param {string} specFile - Path to working spec file
5
- * @param {object} options - Command options
6
- */
7
- export function iterateCommand(specFile?: string, options?: object): Promise<void>;
8
- //# sourceMappingURL=iterate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"iterate.d.ts","sourceRoot":"","sources":["../../src/commands/iterate.js"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,0CAHW,MAAM,YACN,MAAM,iBAmLhB"}
@@ -1,32 +0,0 @@
1
- /**
2
- * Provenance command handler
3
- * @param {string} subcommand - The subcommand to execute
4
- * @param {Object} options - Command options
5
- */
6
- export function provenanceCommand(subcommand: string, options: any): Promise<void>;
7
- /**
8
- * Update provenance with new commit information
9
- * @param {Object} options - Command options
10
- */
11
- export function updateProvenance(options: any): Promise<void>;
12
- /**
13
- * Show current provenance information
14
- * @param {Object} options - Command options
15
- */
16
- export function showProvenance(options: any): Promise<void>;
17
- /**
18
- * Verify provenance chain integrity
19
- * @param {Object} options - Command options
20
- */
21
- export function verifyProvenance(options: any): Promise<void>;
22
- /**
23
- * Initialize provenance tracking for the project
24
- * @param {Object} options - Command options
25
- */
26
- export function initProvenance(options: any): Promise<void>;
27
- /**
28
- * Install git hooks for automatic provenance updates
29
- * @param {Object} options - Command options
30
- */
31
- export function installHooks(options: any): Promise<void>;
32
- //# sourceMappingURL=provenance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../../src/commands/provenance.js"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,8CAHW,MAAM,+BA2BhB;AAED;;;GAGG;AACH,8DA4EC;AAED;;;GAGG;AACH,4DAyEC;AAED;;;GAGG;AACH,8DA8CC;AA6iBD;;;GAGG;AACH,4DAmEC;AAzcD;;;GAGG;AACH,0DAwEC"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Quality monitor command handler
3
- *
4
- * @param {string} action - Type of action to monitor
5
- * @param {object} options - Command options
6
- */
7
- export function qualityMonitorCommand(action: string, options?: object): Promise<void>;
8
- /**
9
- * Analyze quality impact of an action
10
- *
11
- * @param {string} action - Type of action (file_saved, code_edited, test_run)
12
- * @param {array} files - Files affected by the action
13
- * @param {object} context - Additional context information
14
- * @returns {object} Quality analysis
15
- */
16
- export function analyzeQualityImpact(action: string, files?: any[], context?: object): object;
17
- //# sourceMappingURL=quality-monitor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"quality-monitor.d.ts","sourceRoot":"","sources":["../../src/commands/quality-monitor.js"],"names":[],"mappings":"AAoIA;;;;;GAKG;AACH,8CAHW,MAAM,YACN,MAAM,iBA2HhB;AArPD;;;;;;;GAOG;AACH,6CALW,MAAM,2BAEN,MAAM,GACJ,MAAM,CA8GlB"}
@@ -1,43 +0,0 @@
1
- /**
2
- * Status command handler
3
- * @param {Object} options - Command options
4
- */
5
- export function statusCommand(options?: any): Promise<any>;
6
- /**
7
- * Load working specification
8
- * @param {string} specPath - Path to working spec
9
- * @returns {Promise<Object|null>} Parsed spec or null
10
- */
11
- export function loadWorkingSpec(specPath?: string): Promise<any | null>;
12
- /**
13
- * Check Git hooks status
14
- * @returns {Promise<Object>} Hooks status
15
- */
16
- export function checkGitHooks(): Promise<any>;
17
- /**
18
- * Load provenance chain
19
- * @returns {Promise<Object>} Provenance status
20
- */
21
- export function loadProvenanceChain(): Promise<any>;
22
- /**
23
- * Load waiver status
24
- * @returns {Promise<Object>} Waiver status
25
- */
26
- export function loadWaiverStatus(): Promise<any>;
27
- /**
28
- * Check quality gates status (simplified)
29
- * @returns {Promise<Object>} Quality gates status
30
- */
31
- export function checkQualityGates(): Promise<any>;
32
- /**
33
- * Display project status
34
- * @param {Object} data - Status data
35
- */
36
- export function displayStatus(data: any): void;
37
- /**
38
- * Generate actionable suggestions based on status
39
- * @param {Object} data - Status data
40
- * @returns {string[]} Array of suggestions
41
- */
42
- export function generateSuggestions(data: any): string[];
43
- //# sourceMappingURL=status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/commands/status.js"],"names":[],"mappings":"AAuUA;;;GAGG;AACH,2DAiCC;AAhWD;;;;GAIG;AACH,2CAHW,MAAM,GACJ,OAAO,CAAC,MAAO,IAAI,CAAC,CAahC;AAED;;;GAGG;AACH,iCAFa,OAAO,KAAQ,CAgC3B;AAED;;;GAGG;AACH,uCAFa,OAAO,KAAQ,CA+B3B;AAED;;;GAGG;AACH,oCAFa,OAAO,KAAQ,CA0D3B;AAED;;;GAGG;AACH,qCAFa,OAAO,KAAQ,CAS3B;AAwBD;;;GAGG;AACH,+CAgGC;AAED;;;;GAIG;AACH,gDAFa,MAAM,EAAE,CAsBpB"}
@@ -1,74 +0,0 @@
1
- /**
2
- * Templates command handler
3
- * @param {string} subcommand - Subcommand (list, info)
4
- * @param {Object} options - Command options
5
- */
6
- export function templatesCommand(subcommand?: string, options?: any): Promise<void>;
7
- /**
8
- * List all available templates
9
- */
10
- export function listTemplates(): void;
11
- /**
12
- * Show detailed template information
13
- * @param {string} templateId - Template ID
14
- */
15
- export function showTemplateInfo(templateId: string): void;
16
- /**
17
- * Check which templates actually exist
18
- * @returns {Object} Available templates
19
- */
20
- export function getAvailableTemplates(): any;
21
- /**
22
- * Built-in template definitions
23
- */
24
- export const BUILTIN_TEMPLATES: {
25
- 'typescript-library': {
26
- name: string;
27
- description: string;
28
- category: string;
29
- tier: number;
30
- features: string[];
31
- path: string;
32
- };
33
- 'typescript-api': {
34
- name: string;
35
- description: string;
36
- category: string;
37
- tier: number;
38
- features: string[];
39
- path: string;
40
- };
41
- 'typescript-monorepo': {
42
- name: string;
43
- description: string;
44
- category: string;
45
- tier: number;
46
- features: string[];
47
- path: string;
48
- };
49
- 'javascript-package': {
50
- name: string;
51
- description: string;
52
- category: string;
53
- tier: number;
54
- features: string[];
55
- path: string;
56
- };
57
- 'react-component-lib': {
58
- name: string;
59
- description: string;
60
- category: string;
61
- tier: number;
62
- features: string[];
63
- path: string;
64
- };
65
- 'vscode-extension': {
66
- name: string;
67
- description: string;
68
- category: string;
69
- tier: number;
70
- features: string[];
71
- path: string;
72
- };
73
- };
74
- //# sourceMappingURL=templates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/commands/templates.js"],"names":[],"mappings":"AAoMA;;;;GAIG;AACH,8CAHW,MAAM,gCA4BhB;AAvHD;;GAEG;AACH,sCAuCC;AAED;;;GAGG;AACH,6CAFW,MAAM,QAyChB;AA9GD;;;GAGG;AACH,6CAiBC;AA/FD;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDE"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Initialize tool system
3
- * @returns {Promise<ToolLoader|null>} Initialized tool loader or null if failed
4
- */
5
- export function initializeToolSystem(): Promise<ToolLoader | null>;
6
- /**
7
- * Execute tool command handler
8
- * @param {string} toolId - ID of the tool to execute
9
- * @param {Object} options - Command options
10
- */
11
- export function executeTool(toolId: string, options: any): Promise<void>;
12
- import ToolLoader = require("../tool-loader");
13
- //# sourceMappingURL=tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/commands/tool.js"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,wCAFa,OAAO,CAAC,UAAU,GAAC,IAAI,CAAC,CAoCpC;AAED;;;;GAIG;AACH,oCAHW,MAAM,+BAyEhB"}
@@ -1,8 +0,0 @@
1
- export = troubleshootCommand;
2
- /**
3
- * Troubleshoot command handler
4
- * @param {string} guide - Guide key argument
5
- * @param {Object} options - Command options
6
- */
7
- declare function troubleshootCommand(guide: string, options: any): void;
8
- //# sourceMappingURL=troubleshoot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"troubleshoot.d.ts","sourceRoot":"","sources":["../../src/commands/troubleshoot.js"],"names":[],"mappings":";AAqFA;;;;GAIG;AACH,4CAHW,MAAM,sBAchB"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Validate command handler
3
- * Enhanced with JSON output format support
4
- * @param {string} specFile - Path to spec file
5
- * @param {Object} options - Command options
6
- */
7
- export function validateCommand(specFile: string, options: any): Promise<void>;
8
- //# sourceMappingURL=validate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/commands/validate.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,0CAHW,MAAM,+BAoIhB"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Waivers command handler
3
- *
4
- * @param {string} subcommand - create, list, show, revoke
5
- * @param {object} options - Command options
6
- */
7
- export function waiversCommand(subcommand?: string, options?: object): Promise<void>;
8
- //# sourceMappingURL=waivers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"waivers.d.ts","sourceRoot":"","sources":["../../src/commands/waivers.js"],"names":[],"mappings":"AAkBA;;;;;GAKG;AACH,4CAHW,MAAM,YACN,MAAM,iBA2ChB"}
@@ -1,85 +0,0 @@
1
- /**
2
- * Workflow command handler
3
- *
4
- * @param {string} workflowType - Type of workflow
5
- * @param {object} options - Command options
6
- */
7
- export function workflowCommand(workflowType: string, options?: object): Promise<void>;
8
- /**
9
- * Generate workflow guidance
10
- *
11
- * @param {string} workflowType - Type of workflow (tdd, refactor, feature)
12
- * @param {number} currentStep - Current step number (1-based)
13
- * @param {object} context - Optional context information
14
- * @returns {object} Workflow guidance
15
- */
16
- export function generateWorkflowGuidance(workflowType: string, currentStep: number, context?: object): object;
17
- export namespace WORKFLOW_TEMPLATES {
18
- namespace tdd {
19
- let name: string;
20
- let steps: string[];
21
- let guidance: {
22
- 1: string;
23
- 2: string;
24
- 3: string;
25
- 4: string;
26
- 5: string;
27
- 6: string;
28
- };
29
- let recommendations: {
30
- 1: string[];
31
- 2: string[];
32
- 3: string[];
33
- 4: string[];
34
- 5: string[];
35
- 6: string[];
36
- };
37
- }
38
- namespace refactor {
39
- let name_1: string;
40
- export { name_1 as name };
41
- let steps_1: string[];
42
- export { steps_1 as steps };
43
- let guidance_1: {
44
- 1: string;
45
- 2: string;
46
- 3: string;
47
- 4: string;
48
- 5: string;
49
- };
50
- export { guidance_1 as guidance };
51
- let recommendations_1: {
52
- 1: string[];
53
- 2: string[];
54
- 3: string[];
55
- 4: string[];
56
- 5: string[];
57
- };
58
- export { recommendations_1 as recommendations };
59
- }
60
- namespace feature {
61
- let name_2: string;
62
- export { name_2 as name };
63
- let steps_2: string[];
64
- export { steps_2 as steps };
65
- let guidance_2: {
66
- 1: string;
67
- 2: string;
68
- 3: string;
69
- 4: string;
70
- 5: string;
71
- 6: string;
72
- };
73
- export { guidance_2 as guidance };
74
- let recommendations_2: {
75
- 1: string[];
76
- 2: string[];
77
- 3: string[];
78
- 4: string[];
79
- 5: string[];
80
- 6: string[];
81
- };
82
- export { recommendations_2 as recommendations };
83
- }
84
- }
85
- //# sourceMappingURL=workflow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/commands/workflow.js"],"names":[],"mappings":"AA2IA;;;;;GAKG;AACH,8CAHW,MAAM,YACN,MAAM,iBA6FhB;AA7ID;;;;;;;GAOG;AACH,uDALW,MAAM,eACN,MAAM,YACN,MAAM,GACJ,MAAM,CAoClB"}