@claude-flow/cli 3.0.0-alpha.24 → 3.0.0-alpha.26
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/src/commands/index.d.ts +48 -26
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +179 -91
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/issues.d.ts +21 -0
- package/dist/src/commands/issues.d.ts.map +1 -0
- package/dist/src/commands/issues.js +567 -0
- package/dist/src/commands/issues.js.map +1 -0
- package/dist/src/commands/start.d.ts.map +1 -1
- package/dist/src/commands/start.js +21 -1
- package/dist/src/commands/start.js.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +27 -9
- package/dist/src/index.js.map +1 -1
- package/dist/src/services/claim-service.d.ts +144 -0
- package/dist/src/services/claim-service.d.ts.map +1 -0
- package/dist/src/services/claim-service.js +489 -0
- package/dist/src/services/claim-service.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -8
|
@@ -1,65 +1,87 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* V3 CLI Commands Index
|
|
3
3
|
* Central registry for all CLI commands
|
|
4
|
+
*
|
|
5
|
+
* OPTIMIZATION: Uses lazy loading for commands to reduce CLI startup time by ~200ms
|
|
6
|
+
* Commands are loaded on-demand when first accessed, not at module load time.
|
|
4
7
|
*/
|
|
5
8
|
import type { Command } from '../types.js';
|
|
9
|
+
export { initCommand } from './init.js';
|
|
10
|
+
export { startCommand } from './start.js';
|
|
11
|
+
export { statusCommand } from './status.js';
|
|
6
12
|
export { agentCommand } from './agent.js';
|
|
7
13
|
export { swarmCommand } from './swarm.js';
|
|
8
14
|
export { memoryCommand } from './memory.js';
|
|
9
15
|
export { mcpCommand } from './mcp.js';
|
|
10
|
-
export { configCommand } from './config.js';
|
|
11
|
-
export { migrateCommand } from './migrate.js';
|
|
12
16
|
export { hooksCommand } from './hooks.js';
|
|
13
|
-
export { workflowCommand } from './workflow.js';
|
|
14
|
-
export { hiveMindCommand } from './hive-mind.js';
|
|
15
|
-
export { processCommand } from './process.js';
|
|
16
|
-
export { initCommand } from './init.js';
|
|
17
|
-
export { startCommand } from './start.js';
|
|
18
|
-
export { statusCommand } from './status.js';
|
|
19
|
-
export { taskCommand } from './task.js';
|
|
20
|
-
export { sessionCommand } from './session.js';
|
|
21
17
|
export { daemonCommand } from './daemon.js';
|
|
22
|
-
export { neuralCommand } from './neural.js';
|
|
23
|
-
export { securityCommand } from './security.js';
|
|
24
|
-
export { performanceCommand } from './performance.js';
|
|
25
|
-
export { providersCommand } from './providers.js';
|
|
26
|
-
export { pluginsCommand } from './plugins.js';
|
|
27
|
-
export { deploymentCommand } from './deployment.js';
|
|
28
|
-
export { claimsCommand } from './claims.js';
|
|
29
|
-
export { embeddingsCommand } from './embeddings.js';
|
|
30
|
-
export { completionsCommand } from './completions.js';
|
|
31
18
|
export { doctorCommand } from './doctor.js';
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
19
|
+
export declare function getConfigCommand(): Promise<Command | undefined>;
|
|
20
|
+
export declare function getMigrateCommand(): Promise<Command | undefined>;
|
|
21
|
+
export declare function getWorkflowCommand(): Promise<Command | undefined>;
|
|
22
|
+
export declare function getHiveMindCommand(): Promise<Command | undefined>;
|
|
23
|
+
export declare function getProcessCommand(): Promise<Command | undefined>;
|
|
24
|
+
export declare function getTaskCommand(): Promise<Command | undefined>;
|
|
25
|
+
export declare function getSessionCommand(): Promise<Command | undefined>;
|
|
26
|
+
export declare function getNeuralCommand(): Promise<Command | undefined>;
|
|
27
|
+
export declare function getSecurityCommand(): Promise<Command | undefined>;
|
|
28
|
+
export declare function getPerformanceCommand(): Promise<Command | undefined>;
|
|
29
|
+
export declare function getProvidersCommand(): Promise<Command | undefined>;
|
|
30
|
+
export declare function getPluginsCommand(): Promise<Command | undefined>;
|
|
31
|
+
export declare function getDeploymentCommand(): Promise<Command | undefined>;
|
|
32
|
+
export declare function getClaimsCommand(): Promise<Command | undefined>;
|
|
33
|
+
export declare function getEmbeddingsCommand(): Promise<Command | undefined>;
|
|
34
|
+
export declare function getCompletionsCommand(): Promise<Command | undefined>;
|
|
35
|
+
export declare function getAnalyzeCommand(): Promise<Command | undefined>;
|
|
36
|
+
export declare function getRouteCommand(): Promise<Command | undefined>;
|
|
37
|
+
export declare function getProgressCommand(): Promise<Command | undefined>;
|
|
38
|
+
export declare function getIssuesCommand(): Promise<Command | undefined>;
|
|
35
39
|
/**
|
|
36
|
-
*
|
|
40
|
+
* Core commands loaded synchronously (available immediately)
|
|
41
|
+
* Advanced commands loaded on-demand for faster startup
|
|
37
42
|
*/
|
|
38
43
|
export declare const commands: Command[];
|
|
39
44
|
/**
|
|
40
45
|
* Command registry map for quick lookup
|
|
46
|
+
* Supports both sync (core commands) and async (lazy-loaded) commands
|
|
41
47
|
*/
|
|
42
48
|
export declare const commandRegistry: Map<string, Command>;
|
|
43
49
|
/**
|
|
44
|
-
* Get command by name
|
|
50
|
+
* Get command by name (sync for core commands, returns undefined for lazy commands)
|
|
51
|
+
* Use getCommandAsync for lazy-loaded commands
|
|
45
52
|
*/
|
|
46
53
|
export declare function getCommand(name: string): Command | undefined;
|
|
47
54
|
/**
|
|
48
|
-
*
|
|
55
|
+
* Get command by name (async - supports lazy loading)
|
|
56
|
+
*/
|
|
57
|
+
export declare function getCommandAsync(name: string): Promise<Command | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Check if command exists (sync check for core commands)
|
|
49
60
|
*/
|
|
50
61
|
export declare function hasCommand(name: string): boolean;
|
|
51
62
|
/**
|
|
52
|
-
* Get all command names (including aliases)
|
|
63
|
+
* Get all command names (including aliases and lazy-loadable)
|
|
53
64
|
*/
|
|
54
65
|
export declare function getCommandNames(): string[];
|
|
55
66
|
/**
|
|
56
67
|
* Get all unique commands (excluding aliases)
|
|
57
68
|
*/
|
|
58
69
|
export declare function getUniqueCommands(): Command[];
|
|
70
|
+
/**
|
|
71
|
+
* Load all commands (populates lazy-loaded commands)
|
|
72
|
+
* Use this when you need all commands available synchronously
|
|
73
|
+
*/
|
|
74
|
+
export declare function loadAllCommands(): Promise<Command[]>;
|
|
59
75
|
/**
|
|
60
76
|
* Setup commands in a CLI instance
|
|
61
77
|
*/
|
|
62
78
|
export declare function setupCommands(cli: {
|
|
63
79
|
command: (cmd: Command) => void;
|
|
64
80
|
}): void;
|
|
81
|
+
/**
|
|
82
|
+
* Setup all commands including lazy-loaded (async)
|
|
83
|
+
*/
|
|
84
|
+
export declare function setupAllCommands(cli: {
|
|
85
|
+
command: (cmd: Command) => void;
|
|
86
|
+
}): Promise<void>;
|
|
65
87
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAwH3C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,wBAAsB,gBAAgB,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,EAAE;IAAE,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;CAAE,GAAG,IAAI,CAI5E;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE;IAAE,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAK9F"}
|
|
@@ -1,124 +1,166 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* V3 CLI Commands Index
|
|
3
3
|
* Central registry for all CLI commands
|
|
4
|
+
*
|
|
5
|
+
* OPTIMIZATION: Uses lazy loading for commands to reduce CLI startup time by ~200ms
|
|
6
|
+
* Commands are loaded on-demand when first accessed, not at module load time.
|
|
4
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* Command loaders - commands are only imported when needed
|
|
10
|
+
* This reduces initial bundle parse time by ~200ms
|
|
11
|
+
*/
|
|
12
|
+
const commandLoaders = {
|
|
13
|
+
// P1 Core Commands (frequently used - load first)
|
|
14
|
+
init: () => import('./init.js'),
|
|
15
|
+
start: () => import('./start.js'),
|
|
16
|
+
status: () => import('./status.js'),
|
|
17
|
+
task: () => import('./task.js'),
|
|
18
|
+
session: () => import('./session.js'),
|
|
19
|
+
// Original Commands
|
|
20
|
+
agent: () => import('./agent.js'),
|
|
21
|
+
swarm: () => import('./swarm.js'),
|
|
22
|
+
memory: () => import('./memory.js'),
|
|
23
|
+
mcp: () => import('./mcp.js'),
|
|
24
|
+
config: () => import('./config.js'),
|
|
25
|
+
migrate: () => import('./migrate.js'),
|
|
26
|
+
hooks: () => import('./hooks.js'),
|
|
27
|
+
workflow: () => import('./workflow.js'),
|
|
28
|
+
'hive-mind': () => import('./hive-mind.js'),
|
|
29
|
+
process: () => import('./process.js'),
|
|
30
|
+
daemon: () => import('./daemon.js'),
|
|
31
|
+
// V3 Advanced Commands (less frequently used - lazy load)
|
|
32
|
+
neural: () => import('./neural.js'),
|
|
33
|
+
security: () => import('./security.js'),
|
|
34
|
+
performance: () => import('./performance.js'),
|
|
35
|
+
providers: () => import('./providers.js'),
|
|
36
|
+
plugins: () => import('./plugins.js'),
|
|
37
|
+
deployment: () => import('./deployment.js'),
|
|
38
|
+
claims: () => import('./claims.js'),
|
|
39
|
+
embeddings: () => import('./embeddings.js'),
|
|
40
|
+
// P0 Commands
|
|
41
|
+
completions: () => import('./completions.js'),
|
|
42
|
+
doctor: () => import('./doctor.js'),
|
|
43
|
+
// Analysis Commands
|
|
44
|
+
analyze: () => import('./analyze.js'),
|
|
45
|
+
// Q-Learning Routing Commands
|
|
46
|
+
route: () => import('./route.js'),
|
|
47
|
+
// Progress Commands
|
|
48
|
+
progress: () => import('./progress.js'),
|
|
49
|
+
// Issue Claims Commands (ADR-016)
|
|
50
|
+
issues: () => import('./issues.js'),
|
|
51
|
+
};
|
|
52
|
+
// Cache for loaded commands
|
|
53
|
+
const loadedCommands = new Map();
|
|
54
|
+
/**
|
|
55
|
+
* Load a command lazily
|
|
56
|
+
*/
|
|
57
|
+
async function loadCommand(name) {
|
|
58
|
+
if (loadedCommands.has(name)) {
|
|
59
|
+
return loadedCommands.get(name);
|
|
60
|
+
}
|
|
61
|
+
const loader = commandLoaders[name];
|
|
62
|
+
if (!loader)
|
|
63
|
+
return undefined;
|
|
64
|
+
try {
|
|
65
|
+
const module = await loader();
|
|
66
|
+
// Try to find the command export (either default or named)
|
|
67
|
+
const command = (module.default || module[`${name}Command`] || Object.values(module).find((v) => typeof v === 'object' && v !== null && 'name' in v && 'description' in v));
|
|
68
|
+
if (command) {
|
|
69
|
+
loadedCommands.set(name, command);
|
|
70
|
+
return command;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
// Silently fail for missing optional commands
|
|
75
|
+
if (process.env.DEBUG) {
|
|
76
|
+
console.error(`Failed to load command ${name}:`, error);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
// =============================================================================
|
|
82
|
+
// Synchronous Imports for Core Commands (needed immediately at startup)
|
|
83
|
+
// These are the most commonly used commands that need instant access
|
|
84
|
+
// =============================================================================
|
|
85
|
+
import { initCommand } from './init.js';
|
|
86
|
+
import { startCommand } from './start.js';
|
|
87
|
+
import { statusCommand } from './status.js';
|
|
5
88
|
import { agentCommand } from './agent.js';
|
|
6
89
|
import { swarmCommand } from './swarm.js';
|
|
7
90
|
import { memoryCommand } from './memory.js';
|
|
8
91
|
import { mcpCommand } from './mcp.js';
|
|
9
|
-
import { configCommand } from './config.js';
|
|
10
|
-
import { migrateCommand } from './migrate.js';
|
|
11
92
|
import { hooksCommand } from './hooks.js';
|
|
12
|
-
import { workflowCommand } from './workflow.js';
|
|
13
|
-
import { hiveMindCommand } from './hive-mind.js';
|
|
14
|
-
import { processCommand } from './process.js';
|
|
15
|
-
// P1 Commands
|
|
16
|
-
import { initCommand } from './init.js';
|
|
17
|
-
import { startCommand } from './start.js';
|
|
18
|
-
import { statusCommand } from './status.js';
|
|
19
|
-
import { taskCommand } from './task.js';
|
|
20
|
-
import { sessionCommand } from './session.js';
|
|
21
93
|
import { daemonCommand } from './daemon.js';
|
|
22
|
-
// V3 Advanced Commands
|
|
23
|
-
import { neuralCommand } from './neural.js';
|
|
24
|
-
import { securityCommand } from './security.js';
|
|
25
|
-
import { performanceCommand } from './performance.js';
|
|
26
|
-
import { providersCommand } from './providers.js';
|
|
27
|
-
import { pluginsCommand } from './plugins.js';
|
|
28
|
-
import { deploymentCommand } from './deployment.js';
|
|
29
|
-
import { claimsCommand } from './claims.js';
|
|
30
|
-
import { embeddingsCommand } from './embeddings.js';
|
|
31
|
-
// P0 Commands
|
|
32
|
-
import { completionsCommand } from './completions.js';
|
|
33
94
|
import { doctorCommand } from './doctor.js';
|
|
34
|
-
//
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
95
|
+
// Pre-populate cache with core commands
|
|
96
|
+
loadedCommands.set('init', initCommand);
|
|
97
|
+
loadedCommands.set('start', startCommand);
|
|
98
|
+
loadedCommands.set('status', statusCommand);
|
|
99
|
+
loadedCommands.set('agent', agentCommand);
|
|
100
|
+
loadedCommands.set('swarm', swarmCommand);
|
|
101
|
+
loadedCommands.set('memory', memoryCommand);
|
|
102
|
+
loadedCommands.set('mcp', mcpCommand);
|
|
103
|
+
loadedCommands.set('hooks', hooksCommand);
|
|
104
|
+
loadedCommands.set('daemon', daemonCommand);
|
|
105
|
+
loadedCommands.set('doctor', doctorCommand);
|
|
106
|
+
// =============================================================================
|
|
107
|
+
// Exports (maintain backwards compatibility)
|
|
108
|
+
// =============================================================================
|
|
109
|
+
// Export synchronously loaded commands
|
|
110
|
+
export { initCommand } from './init.js';
|
|
111
|
+
export { startCommand } from './start.js';
|
|
112
|
+
export { statusCommand } from './status.js';
|
|
41
113
|
export { agentCommand } from './agent.js';
|
|
42
114
|
export { swarmCommand } from './swarm.js';
|
|
43
115
|
export { memoryCommand } from './memory.js';
|
|
44
116
|
export { mcpCommand } from './mcp.js';
|
|
45
|
-
export { configCommand } from './config.js';
|
|
46
|
-
export { migrateCommand } from './migrate.js';
|
|
47
117
|
export { hooksCommand } from './hooks.js';
|
|
48
|
-
export { workflowCommand } from './workflow.js';
|
|
49
|
-
export { hiveMindCommand } from './hive-mind.js';
|
|
50
|
-
export { processCommand } from './process.js';
|
|
51
|
-
// P1 Commands
|
|
52
|
-
export { initCommand } from './init.js';
|
|
53
|
-
export { startCommand } from './start.js';
|
|
54
|
-
export { statusCommand } from './status.js';
|
|
55
|
-
export { taskCommand } from './task.js';
|
|
56
|
-
export { sessionCommand } from './session.js';
|
|
57
118
|
export { daemonCommand } from './daemon.js';
|
|
58
|
-
// V3 Advanced Commands
|
|
59
|
-
export { neuralCommand } from './neural.js';
|
|
60
|
-
export { securityCommand } from './security.js';
|
|
61
|
-
export { performanceCommand } from './performance.js';
|
|
62
|
-
export { providersCommand } from './providers.js';
|
|
63
|
-
export { pluginsCommand } from './plugins.js';
|
|
64
|
-
export { deploymentCommand } from './deployment.js';
|
|
65
|
-
export { claimsCommand } from './claims.js';
|
|
66
|
-
export { embeddingsCommand } from './embeddings.js';
|
|
67
|
-
// P0 Commands
|
|
68
|
-
export { completionsCommand } from './completions.js';
|
|
69
119
|
export { doctorCommand } from './doctor.js';
|
|
70
|
-
//
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
export
|
|
74
|
-
|
|
75
|
-
export
|
|
120
|
+
// Lazy-loaded command re-exports (for backwards compatibility, but async-only)
|
|
121
|
+
export async function getConfigCommand() { return loadCommand('config'); }
|
|
122
|
+
export async function getMigrateCommand() { return loadCommand('migrate'); }
|
|
123
|
+
export async function getWorkflowCommand() { return loadCommand('workflow'); }
|
|
124
|
+
export async function getHiveMindCommand() { return loadCommand('hive-mind'); }
|
|
125
|
+
export async function getProcessCommand() { return loadCommand('process'); }
|
|
126
|
+
export async function getTaskCommand() { return loadCommand('task'); }
|
|
127
|
+
export async function getSessionCommand() { return loadCommand('session'); }
|
|
128
|
+
export async function getNeuralCommand() { return loadCommand('neural'); }
|
|
129
|
+
export async function getSecurityCommand() { return loadCommand('security'); }
|
|
130
|
+
export async function getPerformanceCommand() { return loadCommand('performance'); }
|
|
131
|
+
export async function getProvidersCommand() { return loadCommand('providers'); }
|
|
132
|
+
export async function getPluginsCommand() { return loadCommand('plugins'); }
|
|
133
|
+
export async function getDeploymentCommand() { return loadCommand('deployment'); }
|
|
134
|
+
export async function getClaimsCommand() { return loadCommand('claims'); }
|
|
135
|
+
export async function getEmbeddingsCommand() { return loadCommand('embeddings'); }
|
|
136
|
+
export async function getCompletionsCommand() { return loadCommand('completions'); }
|
|
137
|
+
export async function getAnalyzeCommand() { return loadCommand('analyze'); }
|
|
138
|
+
export async function getRouteCommand() { return loadCommand('route'); }
|
|
139
|
+
export async function getProgressCommand() { return loadCommand('progress'); }
|
|
140
|
+
export async function getIssuesCommand() { return loadCommand('issues'); }
|
|
76
141
|
/**
|
|
77
|
-
*
|
|
142
|
+
* Core commands loaded synchronously (available immediately)
|
|
143
|
+
* Advanced commands loaded on-demand for faster startup
|
|
78
144
|
*/
|
|
79
145
|
export const commands = [
|
|
80
|
-
//
|
|
146
|
+
// Core commands (synchronously loaded)
|
|
81
147
|
initCommand,
|
|
82
148
|
startCommand,
|
|
83
149
|
statusCommand,
|
|
84
|
-
taskCommand,
|
|
85
|
-
sessionCommand,
|
|
86
|
-
// Original Commands
|
|
87
150
|
agentCommand,
|
|
88
151
|
swarmCommand,
|
|
89
152
|
memoryCommand,
|
|
90
153
|
mcpCommand,
|
|
91
|
-
configCommand,
|
|
92
|
-
migrateCommand,
|
|
93
154
|
hooksCommand,
|
|
94
|
-
workflowCommand,
|
|
95
|
-
hiveMindCommand,
|
|
96
|
-
processCommand,
|
|
97
155
|
daemonCommand,
|
|
98
|
-
// V3 Advanced Commands
|
|
99
|
-
neuralCommand,
|
|
100
|
-
securityCommand,
|
|
101
|
-
performanceCommand,
|
|
102
|
-
providersCommand,
|
|
103
|
-
pluginsCommand,
|
|
104
|
-
deploymentCommand,
|
|
105
|
-
claimsCommand,
|
|
106
|
-
embeddingsCommand,
|
|
107
|
-
// P0 Commands
|
|
108
|
-
completionsCommand,
|
|
109
156
|
doctorCommand,
|
|
110
|
-
// Analysis Commands
|
|
111
|
-
analyzeCommand,
|
|
112
|
-
// Q-Learning Routing Commands
|
|
113
|
-
routeCommand,
|
|
114
|
-
// Progress Commands
|
|
115
|
-
progressCommand,
|
|
116
157
|
];
|
|
117
158
|
/**
|
|
118
159
|
* Command registry map for quick lookup
|
|
160
|
+
* Supports both sync (core commands) and async (lazy-loaded) commands
|
|
119
161
|
*/
|
|
120
162
|
export const commandRegistry = new Map();
|
|
121
|
-
// Register
|
|
163
|
+
// Register core commands and their aliases
|
|
122
164
|
for (const cmd of commands) {
|
|
123
165
|
commandRegistry.set(cmd.name, cmd);
|
|
124
166
|
if (cmd.aliases) {
|
|
@@ -128,22 +170,43 @@ for (const cmd of commands) {
|
|
|
128
170
|
}
|
|
129
171
|
}
|
|
130
172
|
/**
|
|
131
|
-
* Get command by name
|
|
173
|
+
* Get command by name (sync for core commands, returns undefined for lazy commands)
|
|
174
|
+
* Use getCommandAsync for lazy-loaded commands
|
|
132
175
|
*/
|
|
133
176
|
export function getCommand(name) {
|
|
134
|
-
return commandRegistry.get(name);
|
|
177
|
+
return loadedCommands.get(name) || commandRegistry.get(name);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Get command by name (async - supports lazy loading)
|
|
181
|
+
*/
|
|
182
|
+
export async function getCommandAsync(name) {
|
|
183
|
+
// Check already-loaded commands first
|
|
184
|
+
const cached = loadedCommands.get(name);
|
|
185
|
+
if (cached)
|
|
186
|
+
return cached;
|
|
187
|
+
// Check sync registry
|
|
188
|
+
const synced = commandRegistry.get(name);
|
|
189
|
+
if (synced)
|
|
190
|
+
return synced;
|
|
191
|
+
// Try lazy loading
|
|
192
|
+
return loadCommand(name);
|
|
135
193
|
}
|
|
136
194
|
/**
|
|
137
|
-
* Check if command exists
|
|
195
|
+
* Check if command exists (sync check for core commands)
|
|
138
196
|
*/
|
|
139
197
|
export function hasCommand(name) {
|
|
140
|
-
return commandRegistry.has(name);
|
|
198
|
+
return loadedCommands.has(name) || commandRegistry.has(name) || name in commandLoaders;
|
|
141
199
|
}
|
|
142
200
|
/**
|
|
143
|
-
* Get all command names (including aliases)
|
|
201
|
+
* Get all command names (including aliases and lazy-loadable)
|
|
144
202
|
*/
|
|
145
203
|
export function getCommandNames() {
|
|
146
|
-
|
|
204
|
+
const names = new Set([
|
|
205
|
+
...Array.from(commandRegistry.keys()),
|
|
206
|
+
...Array.from(loadedCommands.keys()),
|
|
207
|
+
...Object.keys(commandLoaders),
|
|
208
|
+
]);
|
|
209
|
+
return Array.from(names);
|
|
147
210
|
}
|
|
148
211
|
/**
|
|
149
212
|
* Get all unique commands (excluding aliases)
|
|
@@ -151,6 +214,22 @@ export function getCommandNames() {
|
|
|
151
214
|
export function getUniqueCommands() {
|
|
152
215
|
return commands.filter(cmd => !cmd.hidden);
|
|
153
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* Load all commands (populates lazy-loaded commands)
|
|
219
|
+
* Use this when you need all commands available synchronously
|
|
220
|
+
*/
|
|
221
|
+
export async function loadAllCommands() {
|
|
222
|
+
const allCommands = [...commands];
|
|
223
|
+
for (const name of Object.keys(commandLoaders)) {
|
|
224
|
+
if (!loadedCommands.has(name)) {
|
|
225
|
+
const cmd = await loadCommand(name);
|
|
226
|
+
if (cmd && !allCommands.includes(cmd)) {
|
|
227
|
+
allCommands.push(cmd);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return allCommands;
|
|
232
|
+
}
|
|
154
233
|
/**
|
|
155
234
|
* Setup commands in a CLI instance
|
|
156
235
|
*/
|
|
@@ -159,4 +238,13 @@ export function setupCommands(cli) {
|
|
|
159
238
|
cli.command(cmd);
|
|
160
239
|
}
|
|
161
240
|
}
|
|
241
|
+
/**
|
|
242
|
+
* Setup all commands including lazy-loaded (async)
|
|
243
|
+
*/
|
|
244
|
+
export async function setupAllCommands(cli) {
|
|
245
|
+
const allCommands = await loadAllCommands();
|
|
246
|
+
for (const cmd of allCommands) {
|
|
247
|
+
cli.command(cmd);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
162
250
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH;;;GAGG;AACH,MAAM,cAAc,GAAkC;IACpD,kDAAkD;IAClD,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC;IAC/B,KAAK,EAAE,GAAG,E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YAC9B,MAAM,GAAG,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBACtC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,GAAwC;IACpE,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC3B,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,GAAwC;IAC7E,MAAM,WAAW,GAAG,MAAM,eAAe,EAAE,CAAC;IAC5C,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QAC9B,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 Issues Command
|
|
3
|
+
*
|
|
4
|
+
* Implements ADR-016: Collaborative Issue Claims for Human-Agent Workflows
|
|
5
|
+
*
|
|
6
|
+
* Commands:
|
|
7
|
+
* - issues list List all claims
|
|
8
|
+
* - issues claim Claim an issue
|
|
9
|
+
* - issues release Release a claim
|
|
10
|
+
* - issues handoff Request handoff
|
|
11
|
+
* - issues status Update claim status
|
|
12
|
+
* - issues stealable List stealable issues
|
|
13
|
+
* - issues steal Steal an issue
|
|
14
|
+
* - issues load View agent load
|
|
15
|
+
* - issues rebalance Rebalance swarm
|
|
16
|
+
* - issues board Visual board view
|
|
17
|
+
*/
|
|
18
|
+
import type { Command } from '../types.js';
|
|
19
|
+
export declare const issuesCommand: Command;
|
|
20
|
+
export default issuesCommand;
|
|
21
|
+
//# sourceMappingURL=issues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../../src/commands/issues.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AA0hB1E,eAAO,MAAM,aAAa,EAAE,OA2C3B,CAAC;AA0CF,eAAe,aAAa,CAAC"}
|