@paths.design/caws-cli 7.0.0 → 7.0.2
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/budget-derivation.d.ts +74 -0
- package/dist/budget-derivation.d.ts.map +1 -0
- package/dist/cicd-optimizer.d.ts +142 -0
- package/dist/cicd-optimizer.d.ts.map +1 -0
- package/dist/commands/archive.d.ts +50 -0
- package/dist/commands/archive.d.ts.map +1 -0
- package/dist/commands/burnup.d.ts +6 -0
- package/dist/commands/burnup.d.ts.map +1 -0
- package/dist/commands/diagnose.d.ts +52 -0
- package/dist/commands/diagnose.d.ts.map +1 -0
- package/dist/commands/diagnose.js +3 -2
- package/dist/commands/evaluate.d.ts +8 -0
- package/dist/commands/evaluate.d.ts.map +1 -0
- package/dist/commands/init.d.ts +5 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +23 -3
- package/dist/commands/iterate.d.ts +8 -0
- package/dist/commands/iterate.d.ts.map +1 -0
- package/dist/commands/mode.d.ts +24 -0
- package/dist/commands/mode.d.ts.map +1 -0
- package/dist/commands/plan.d.ts +49 -0
- package/dist/commands/plan.d.ts.map +1 -0
- package/dist/commands/provenance.d.ts +32 -0
- package/dist/commands/provenance.d.ts.map +1 -0
- package/dist/commands/quality-gates.d.ts +52 -0
- package/dist/commands/quality-gates.d.ts.map +1 -0
- package/dist/commands/quality-monitor.d.ts +17 -0
- package/dist/commands/quality-monitor.d.ts.map +1 -0
- package/dist/commands/specs.d.ts +71 -0
- package/dist/commands/specs.d.ts.map +1 -0
- package/dist/commands/status.d.ts +44 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/templates.d.ts +74 -0
- package/dist/commands/templates.d.ts.map +1 -0
- package/dist/commands/templates.js +10 -0
- package/dist/commands/tool.d.ts +13 -0
- package/dist/commands/tool.d.ts.map +1 -0
- package/dist/commands/troubleshoot.d.ts +8 -0
- package/dist/commands/troubleshoot.d.ts.map +1 -0
- package/dist/commands/tutorial.d.ts +55 -0
- package/dist/commands/tutorial.d.ts.map +1 -0
- package/dist/commands/validate.d.ts +15 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/validate.js +12 -0
- package/dist/commands/waivers.d.ts +8 -0
- package/dist/commands/waivers.d.ts.map +1 -0
- package/dist/commands/workflow.d.ts +85 -0
- package/dist/commands/workflow.d.ts.map +1 -0
- package/dist/config/index.d.ts +29 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/modes.d.ts +225 -0
- package/dist/config/modes.d.ts.map +1 -0
- package/dist/constants/spec-types.d.ts +41 -0
- package/dist/constants/spec-types.d.ts.map +1 -0
- package/dist/error-handler.d.ts +164 -0
- package/dist/error-handler.d.ts.map +1 -0
- package/dist/generators/jest-config.d.ts +32 -0
- package/dist/generators/jest-config.d.ts.map +1 -0
- package/dist/generators/working-spec.d.ts +13 -0
- package/dist/generators/working-spec.d.ts.map +1 -0
- package/dist/generators/working-spec.js +26 -6
- package/dist/index-new.d.ts +5 -0
- package/dist/index-new.d.ts.map +1 -0
- package/dist/index-new.js +317 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.backup +4711 -0
- package/dist/minimal-cli.d.ts +3 -0
- package/dist/minimal-cli.d.ts.map +1 -0
- package/dist/policy/PolicyManager.d.ts +104 -0
- package/dist/policy/PolicyManager.d.ts.map +1 -0
- package/dist/scaffold/cursor-hooks.d.ts +7 -0
- package/dist/scaffold/cursor-hooks.d.ts.map +1 -0
- package/dist/scaffold/cursor-hooks.js +10 -2
- package/dist/scaffold/git-hooks.d.ts +20 -0
- package/dist/scaffold/git-hooks.d.ts.map +1 -0
- package/dist/scaffold/git-hooks.js +62 -3
- package/dist/scaffold/index.d.ts +20 -0
- package/dist/scaffold/index.d.ts.map +1 -0
- package/dist/scaffold/index.js +57 -15
- package/dist/spec/SpecFileManager.d.ts +146 -0
- package/dist/spec/SpecFileManager.d.ts.map +1 -0
- package/dist/test-analysis.d.ts +182 -0
- package/dist/test-analysis.d.ts.map +1 -0
- package/dist/tool-interface.d.ts +236 -0
- package/dist/tool-interface.d.ts.map +1 -0
- package/dist/tool-loader.d.ts +77 -0
- package/dist/tool-loader.d.ts.map +1 -0
- package/dist/tool-validator.d.ts +72 -0
- package/dist/tool-validator.d.ts.map +1 -0
- package/dist/utils/detection.d.ts +7 -0
- package/dist/utils/detection.d.ts.map +1 -0
- package/dist/utils/detection.js +30 -3
- package/dist/utils/finalization.d.ts +17 -0
- package/dist/utils/finalization.d.ts.map +1 -0
- package/dist/utils/project-analysis.d.ts +14 -0
- package/dist/utils/project-analysis.d.ts.map +1 -0
- package/dist/utils/quality-gates.d.ts +49 -0
- package/dist/utils/quality-gates.d.ts.map +1 -0
- package/dist/utils/spec-resolver.d.ts +88 -0
- package/dist/utils/spec-resolver.d.ts.map +1 -0
- package/dist/utils/typescript-detector.d.ts +63 -0
- package/dist/utils/typescript-detector.d.ts.map +1 -0
- package/dist/validation/spec-validation.d.ts +43 -0
- package/dist/validation/spec-validation.d.ts.map +1 -0
- package/dist/validation/spec-validation.js +26 -2
- package/dist/waivers-manager.d.ts +167 -0
- package/dist/waivers-manager.d.ts.map +1 -0
- package/package.json +1 -1
- package/templates/COMMIT_CONVENTIONS.md +86 -0
- package/templates/apps/tools/caws/prompt-lint.js.backup +274 -0
- package/templates/apps/tools/caws/provenance.js.backup +73 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specs command handler
|
|
3
|
+
* @param {string} action - Action to perform (list, create, show, update, delete, conflicts, migrate)
|
|
4
|
+
* @param {Object} options - Command options
|
|
5
|
+
*/
|
|
6
|
+
export function specsCommand(action: string, options?: any): Promise<any>;
|
|
7
|
+
/**
|
|
8
|
+
* Load specs registry
|
|
9
|
+
* @returns {Promise<Object>} Registry data
|
|
10
|
+
*/
|
|
11
|
+
export function loadSpecsRegistry(): Promise<any>;
|
|
12
|
+
/**
|
|
13
|
+
* Save specs registry
|
|
14
|
+
* @param {Object} registry - Registry data
|
|
15
|
+
* @returns {Promise<void>}
|
|
16
|
+
*/
|
|
17
|
+
export function saveSpecsRegistry(registry: any): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* List all spec files in the specs directory
|
|
20
|
+
* @returns {Promise<Array>} Array of spec file info
|
|
21
|
+
*/
|
|
22
|
+
export function listSpecFiles(): Promise<any[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Create a new spec file
|
|
25
|
+
* @param {string} id - Spec identifier
|
|
26
|
+
* @param {Object} options - Creation options
|
|
27
|
+
* @returns {Promise<Object>} Created spec info
|
|
28
|
+
*/
|
|
29
|
+
export function createSpec(id: string, options?: any): Promise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* Load a specific spec file
|
|
32
|
+
* @param {string} id - Spec identifier
|
|
33
|
+
* @returns {Promise<Object|null>} Spec data or null
|
|
34
|
+
*/
|
|
35
|
+
export function loadSpec(id: string): Promise<any | null>;
|
|
36
|
+
/**
|
|
37
|
+
* Update a spec file
|
|
38
|
+
* @param {string} id - Spec identifier
|
|
39
|
+
* @param {Object} updates - Updates to apply
|
|
40
|
+
* @returns {Promise<boolean>} Success status
|
|
41
|
+
*/
|
|
42
|
+
export function updateSpec(id: string, updates?: any): Promise<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete a spec file
|
|
45
|
+
* @param {string} id - Spec identifier
|
|
46
|
+
* @returns {Promise<boolean>} Success status
|
|
47
|
+
*/
|
|
48
|
+
export function deleteSpec(id: string): Promise<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* Display specs in a formatted table
|
|
51
|
+
* @param {Array} specs - Array of spec objects
|
|
52
|
+
*/
|
|
53
|
+
export function displaySpecsTable(specs: any[]): void;
|
|
54
|
+
/**
|
|
55
|
+
* Display detailed spec information
|
|
56
|
+
* @param {Object} spec - Spec object
|
|
57
|
+
*/
|
|
58
|
+
export function displaySpecDetails(spec: any): void;
|
|
59
|
+
/**
|
|
60
|
+
* Ask user how to resolve spec creation conflicts
|
|
61
|
+
* @returns {Promise<string>} User's choice: 'cancel', 'rename', 'merge', 'override'
|
|
62
|
+
*/
|
|
63
|
+
export function askConflictResolution(): Promise<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Specs directory structure
|
|
66
|
+
*/
|
|
67
|
+
export const SPECS_DIR: ".caws/specs";
|
|
68
|
+
export const SPECS_REGISTRY: ".caws/specs/registry.json";
|
|
69
|
+
import { SPEC_TYPES } from "../constants/spec-types";
|
|
70
|
+
export { SPEC_TYPES };
|
|
71
|
+
//# sourceMappingURL=specs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specs.d.ts","sourceRoot":"","sources":["../../src/commands/specs.js"],"names":[],"mappings":"AAghBA;;;;GAIG;AACH,qCAHW,MAAM,+BA2LhB;AAvrBD;;;GAGG;AACH,qCAFa,OAAO,KAAQ,CAqB3B;AAED;;;;GAIG;AACH,kDAFa,OAAO,CAAC,IAAI,CAAC,CAMzB;AAED;;;GAGG;AACH,iCAFa,OAAO,OAAO,CAmC1B;AAED;;;;;GAKG;AACH,+BAJW,MAAM,kBAEJ,OAAO,KAAQ,CA8H3B;AAED;;;;GAIG;AACH,6BAHW,MAAM,GACJ,OAAO,CAAC,MAAO,IAAI,CAAC,CAiBhC;AAED;;;;;GAKG;AACH,+BAJW,MAAM,kBAEJ,OAAO,CAAC,OAAO,CAAC,CA6B5B;AAED;;;;GAIG;AACH,+BAHW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAmB5B;AAED;;;GAGG;AACH,sDA2CC;AAED;;;GAGG;AACH,oDAoCC;AAsFD;;;GAGG;AACH,yCAFa,OAAO,CAAC,MAAM,CAAC,CAuC3B;AA9fD;;GAEG;AACH,wBAAkB,aAAa,CAAC;AAChC,6BAAuB,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (legacy single file approach)
|
|
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 and mode
|
|
39
|
+
* @param {Object} data - Status data
|
|
40
|
+
* @param {string} currentMode - Current CAWS mode
|
|
41
|
+
* @returns {string[]} Array of suggestions
|
|
42
|
+
*/
|
|
43
|
+
export function generateSuggestions(data: any, currentMode: string): string[];
|
|
44
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/commands/status.js"],"names":[],"mappings":"AA6uBA;;;GAGG;AACH,2DA6IC;AAl3BD;;;;GAIG;AACH,2CAHW,MAAM,GACJ,OAAO,CAAC,MAAO,IAAI,CAAC,CAahC;AAgBD;;;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;;;;;GAKG;AACH,4DAHW,MAAM,GACJ,MAAM,EAAE,CAoCpB"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
const fs = require('fs-extra');
|
|
8
8
|
const path = require('path');
|
|
9
9
|
const chalk = require('chalk');
|
|
10
|
+
const { findPackageRoot } = require('../utils/detection');
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Built-in template definitions
|
|
@@ -64,11 +65,20 @@ const BUILTIN_TEMPLATES = {
|
|
|
64
65
|
|
|
65
66
|
/**
|
|
66
67
|
* Get template directory path
|
|
68
|
+
* Works in both development and global install scenarios
|
|
67
69
|
* @returns {string|null} Template directory path or null
|
|
68
70
|
*/
|
|
69
71
|
function getTemplateDir() {
|
|
72
|
+
// Find package root using shared utility
|
|
73
|
+
const packageRoot = findPackageRoot(__dirname);
|
|
74
|
+
|
|
70
75
|
const possiblePaths = [
|
|
76
|
+
// First: Try templates relative to package root (works in dev and global install)
|
|
77
|
+
path.join(packageRoot, 'templates'),
|
|
78
|
+
// Fallback: Try relative to current file location (for development)
|
|
71
79
|
path.join(__dirname, '../../templates'),
|
|
80
|
+
path.join(__dirname, '../templates'),
|
|
81
|
+
// Legacy fallbacks
|
|
72
82
|
path.join(process.cwd(), 'packages/caws-cli/templates'),
|
|
73
83
|
path.join(process.cwd(), 'templates'),
|
|
74
84
|
];
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"troubleshoot.d.ts","sourceRoot":"","sources":["../../src/commands/troubleshoot.js"],"names":[],"mappings":";AAqFA;;;;GAIG;AACH,4CAHW,MAAM,sBAchB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tutorial command handler
|
|
3
|
+
* @param {string} tutorialType - Type of tutorial to run
|
|
4
|
+
* @param {Object} options - Command options
|
|
5
|
+
*/
|
|
6
|
+
export function tutorialCommand(tutorialType: string, _options?: {}): Promise<any>;
|
|
7
|
+
export namespace TUTORIALS {
|
|
8
|
+
namespace agent {
|
|
9
|
+
let name: string;
|
|
10
|
+
let description: string;
|
|
11
|
+
let icon: string;
|
|
12
|
+
let steps: ({
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
content: string;
|
|
16
|
+
action: string;
|
|
17
|
+
verify?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
id: string;
|
|
20
|
+
title: string;
|
|
21
|
+
content: string;
|
|
22
|
+
action: string;
|
|
23
|
+
verify: string;
|
|
24
|
+
})[];
|
|
25
|
+
}
|
|
26
|
+
namespace developer {
|
|
27
|
+
let name_1: string;
|
|
28
|
+
export { name_1 as name };
|
|
29
|
+
let description_1: string;
|
|
30
|
+
export { description_1 as description };
|
|
31
|
+
let icon_1: string;
|
|
32
|
+
export { icon_1 as icon };
|
|
33
|
+
let steps_1: ({
|
|
34
|
+
id: string;
|
|
35
|
+
title: string;
|
|
36
|
+
content: string;
|
|
37
|
+
action: string;
|
|
38
|
+
verify?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
id: string;
|
|
41
|
+
title: string;
|
|
42
|
+
content: string;
|
|
43
|
+
action: string;
|
|
44
|
+
verify: string;
|
|
45
|
+
})[];
|
|
46
|
+
export { steps_1 as steps };
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Interactive tutorial session
|
|
51
|
+
* @param {string} tutorialType - Type of tutorial (agent, developer)
|
|
52
|
+
* @returns {Promise<void>}
|
|
53
|
+
*/
|
|
54
|
+
export function runInteractiveTutorial(tutorialType: string): Promise<void>;
|
|
55
|
+
//# sourceMappingURL=tutorial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tutorial.d.ts","sourceRoot":"","sources":["../../src/commands/tutorial.js"],"names":[],"mappings":"AA4aA;;;;GAIG;AACH,8CAHW,MAAM,+BA4ChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/FD;;;;GAIG;AACH,qDAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CA4CzB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validate command handler
|
|
3
|
+
* Enhanced with multi-spec support and JSON output format
|
|
4
|
+
* @param {string} specFile - Path to spec file (optional, uses spec resolution)
|
|
5
|
+
* @param {Object} options - Command options
|
|
6
|
+
* @param {string} [options.specId] - Feature-specific spec ID
|
|
7
|
+
* @param {boolean} [options.interactive] - Use interactive spec selection
|
|
8
|
+
* @param {boolean} [options.format] - Output format (json)
|
|
9
|
+
*/
|
|
10
|
+
export function validateCommand(specFile: string, options?: {
|
|
11
|
+
specId?: string;
|
|
12
|
+
interactive?: boolean;
|
|
13
|
+
format?: boolean;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/commands/validate.js"],"names":[],"mappings":"AAkBA;;;;;;;;GAQG;AACH,0CANW,MAAM,YAEd;IAAyB,MAAM,GAAvB,MAAM;IACY,WAAW,GAA7B,OAAO;IACW,MAAM,GAAxB,OAAO;CACjB,iBAiNA"}
|
|
@@ -194,6 +194,18 @@ async function validateCommand(specFile, options = {}) {
|
|
|
194
194
|
if (error.suggestion) {
|
|
195
195
|
console.log(` ${chalk.blue('💡 ' + error.suggestion)}`);
|
|
196
196
|
}
|
|
197
|
+
if (error.example) {
|
|
198
|
+
console.log(` ${chalk.gray('Example:')}`);
|
|
199
|
+
if (error.example.contracts) {
|
|
200
|
+
error.example.contracts.forEach((contract) => {
|
|
201
|
+
console.log(` ${chalk.gray('- type: ' + contract.type)}`);
|
|
202
|
+
console.log(` ${chalk.gray('path: ' + contract.path)}`);
|
|
203
|
+
if (contract.description) {
|
|
204
|
+
console.log(` ${chalk.gray('description: ' + contract.description)}`);
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
197
209
|
});
|
|
198
210
|
|
|
199
211
|
// Show warnings
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waivers.d.ts","sourceRoot":"","sources":["../../src/commands/waivers.js"],"names":[],"mappings":"AAmBA;;;;;GAKG;AACH,4CAHW,MAAM,YACN,MAAM,iBA2ChB"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import CLI_VERSION_1 = require("../../package.json");
|
|
2
|
+
import CLI_VERSION = CLI_VERSION_1.version;
|
|
3
|
+
/**
|
|
4
|
+
* Initialize global setup detection
|
|
5
|
+
* @returns {Object} Setup configuration
|
|
6
|
+
*/
|
|
7
|
+
export function initializeGlobalSetup(): any;
|
|
8
|
+
/**
|
|
9
|
+
* Load provenance tools dynamically
|
|
10
|
+
* @returns {Object|null} Provenance tools or null if not available
|
|
11
|
+
*/
|
|
12
|
+
export function loadProvenanceTools(): any | null;
|
|
13
|
+
/**
|
|
14
|
+
* Initialize language support tools
|
|
15
|
+
* @returns {Object|null} Language support tools or null if not available
|
|
16
|
+
*/
|
|
17
|
+
export function initializeLanguageSupport(): any | null;
|
|
18
|
+
/**
|
|
19
|
+
* Get global CAWS setup
|
|
20
|
+
* @returns {Object} CAWS setup configuration
|
|
21
|
+
*/
|
|
22
|
+
export function getGlobalCAWSSetup(): any;
|
|
23
|
+
/**
|
|
24
|
+
* Set global CAWS setup (for testing or override)
|
|
25
|
+
* @param {Object} setup - Setup configuration
|
|
26
|
+
*/
|
|
27
|
+
export function setGlobalCAWSSetup(setup: any): void;
|
|
28
|
+
export { CLI_VERSION };
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.js"],"names":[],"mappings":";mCAakD,OAAO;AAOzD;;;GAGG;AACH,6CAkBC;AAED;;;GAGG;AACH,uCAFa,MAAO,IAAI,CA2CvB;AAED;;;GAGG;AACH,6CAFa,MAAO,IAAI,CAmCvB;AAED;;;GAGG;AACH,0CAEC;AAED;;;GAGG;AACH,qDAEC"}
|