claude-flow 3.0.0-alpha.1 → 3.0.0-alpha.10
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/README.md +1151 -41
- package/bin/cli.js +8 -30
- package/dist/src/commands/agent.d.ts +8 -0
- package/dist/src/commands/agent.d.ts.map +1 -0
- package/dist/src/commands/agent.js +819 -0
- package/dist/src/commands/agent.js.map +1 -0
- package/dist/src/commands/config.d.ts +8 -0
- package/dist/src/commands/config.d.ts.map +1 -0
- package/dist/src/commands/config.js +406 -0
- package/dist/src/commands/config.js.map +1 -0
- package/dist/src/commands/daemon.d.ts +8 -0
- package/dist/src/commands/daemon.d.ts.map +1 -0
- package/dist/src/commands/daemon.js +545 -0
- package/dist/src/commands/daemon.js.map +1 -0
- package/dist/src/commands/hive-mind.d.ts +8 -0
- package/dist/src/commands/hive-mind.d.ts.map +1 -0
- package/dist/src/commands/hive-mind.js +844 -0
- package/dist/src/commands/hive-mind.js.map +1 -0
- package/dist/src/commands/hooks.d.ts +8 -0
- package/dist/src/commands/hooks.d.ts.map +1 -0
- package/dist/src/commands/hooks.js +2098 -0
- package/dist/src/commands/hooks.js.map +1 -0
- package/dist/src/commands/index.d.ts +52 -0
- package/dist/src/commands/index.d.ts.map +1 -0
- package/dist/src/commands/index.js +108 -0
- package/dist/src/commands/index.js.map +1 -0
- package/dist/src/commands/init.d.ts +8 -0
- package/dist/src/commands/init.d.ts.map +1 -0
- package/dist/src/commands/init.js +532 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/mcp.d.ts +11 -0
- package/dist/src/commands/mcp.d.ts.map +1 -0
- package/dist/src/commands/mcp.js +662 -0
- package/dist/src/commands/mcp.js.map +1 -0
- package/dist/src/commands/memory.d.ts +8 -0
- package/dist/src/commands/memory.d.ts.map +1 -0
- package/dist/src/commands/memory.js +977 -0
- package/dist/src/commands/memory.js.map +1 -0
- package/dist/src/commands/migrate.d.ts +8 -0
- package/dist/src/commands/migrate.d.ts.map +1 -0
- package/dist/src/commands/migrate.js +398 -0
- package/dist/src/commands/migrate.js.map +1 -0
- package/dist/src/commands/process.d.ts +10 -0
- package/dist/src/commands/process.d.ts.map +1 -0
- package/dist/src/commands/process.js +641 -0
- package/dist/src/commands/process.js.map +1 -0
- package/dist/src/commands/session.d.ts +8 -0
- package/dist/src/commands/session.d.ts.map +1 -0
- package/dist/src/commands/session.js +750 -0
- package/dist/src/commands/session.js.map +1 -0
- package/dist/src/commands/start.d.ts +8 -0
- package/dist/src/commands/start.d.ts.map +1 -0
- package/dist/src/commands/start.js +398 -0
- package/dist/src/commands/start.js.map +1 -0
- package/dist/src/commands/status.d.ts +8 -0
- package/dist/src/commands/status.d.ts.map +1 -0
- package/dist/src/commands/status.js +584 -0
- package/dist/src/commands/status.js.map +1 -0
- package/dist/src/commands/swarm.d.ts +8 -0
- package/dist/src/commands/swarm.d.ts.map +1 -0
- package/dist/src/commands/swarm.js +573 -0
- package/dist/src/commands/swarm.js.map +1 -0
- package/dist/src/commands/task.d.ts +8 -0
- package/dist/src/commands/task.d.ts.map +1 -0
- package/dist/src/commands/task.js +671 -0
- package/dist/src/commands/task.js.map +1 -0
- package/dist/src/commands/workflow.d.ts +8 -0
- package/dist/src/commands/workflow.d.ts.map +1 -0
- package/dist/src/commands/workflow.js +617 -0
- package/dist/src/commands/workflow.js.map +1 -0
- package/dist/src/config-adapter.d.ts +15 -0
- package/dist/src/config-adapter.d.ts.map +1 -0
- package/dist/src/config-adapter.js +185 -0
- package/dist/src/config-adapter.js.map +1 -0
- package/dist/src/index.d.ts +55 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +353 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
- package/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
- package/dist/src/infrastructure/in-memory-repositories.js +264 -0
- package/dist/src/infrastructure/in-memory-repositories.js.map +1 -0
- package/dist/src/init/claudemd-generator.d.ts +15 -0
- package/dist/src/init/claudemd-generator.d.ts.map +1 -0
- package/dist/src/init/claudemd-generator.js +626 -0
- package/dist/src/init/claudemd-generator.js.map +1 -0
- package/dist/src/init/executor.d.ts +11 -0
- package/dist/src/init/executor.d.ts.map +1 -0
- package/dist/src/init/executor.js +652 -0
- package/dist/src/init/executor.js.map +1 -0
- package/dist/src/init/helpers-generator.d.ts +42 -0
- package/dist/src/init/helpers-generator.d.ts.map +1 -0
- package/dist/src/init/helpers-generator.js +613 -0
- package/dist/src/init/helpers-generator.js.map +1 -0
- package/dist/src/init/index.d.ts +12 -0
- package/dist/src/init/index.d.ts.map +1 -0
- package/dist/src/init/index.js +15 -0
- package/dist/src/init/index.js.map +1 -0
- package/dist/src/init/mcp-generator.d.ts +18 -0
- package/dist/src/init/mcp-generator.d.ts.map +1 -0
- package/dist/src/init/mcp-generator.js +71 -0
- package/dist/src/init/mcp-generator.js.map +1 -0
- package/dist/src/init/settings-generator.d.ts +14 -0
- package/dist/src/init/settings-generator.d.ts.map +1 -0
- package/dist/src/init/settings-generator.js +267 -0
- package/dist/src/init/settings-generator.js.map +1 -0
- package/dist/src/init/statusline-generator.d.ts +14 -0
- package/dist/src/init/statusline-generator.d.ts.map +1 -0
- package/dist/src/init/statusline-generator.js +206 -0
- package/dist/src/init/statusline-generator.js.map +1 -0
- package/dist/src/init/types.d.ts +240 -0
- package/dist/src/init/types.d.ts.map +1 -0
- package/dist/src/init/types.js +210 -0
- package/dist/src/init/types.js.map +1 -0
- package/dist/src/mcp-client.d.ts +92 -0
- package/dist/src/mcp-client.d.ts.map +1 -0
- package/dist/src/mcp-client.js +203 -0
- package/dist/src/mcp-client.js.map +1 -0
- package/dist/src/mcp-server.d.ts +153 -0
- package/dist/src/mcp-server.d.ts.map +1 -0
- package/dist/src/mcp-server.js +453 -0
- package/dist/src/mcp-server.js.map +1 -0
- package/dist/src/mcp-tools/agent-tools.d.ts +8 -0
- package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/agent-tools.js +426 -0
- package/dist/src/mcp-tools/agent-tools.js.map +1 -0
- package/dist/src/mcp-tools/config-tools.d.ts +8 -0
- package/dist/src/mcp-tools/config-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/config-tools.js +333 -0
- package/dist/src/mcp-tools/config-tools.js.map +1 -0
- package/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/hive-mind-tools.js +447 -0
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts +41 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/hooks-tools.js +1711 -0
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -0
- package/dist/src/mcp-tools/index.d.ts +16 -0
- package/dist/src/mcp-tools/index.d.ts.map +1 -0
- package/dist/src/mcp-tools/index.js +15 -0
- package/dist/src/mcp-tools/index.js.map +1 -0
- package/dist/src/mcp-tools/memory-tools.d.ts +8 -0
- package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/memory-tools.js +235 -0
- package/dist/src/mcp-tools/memory-tools.js.map +1 -0
- package/dist/src/mcp-tools/session-tools.d.ts +8 -0
- package/dist/src/mcp-tools/session-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/session-tools.js +315 -0
- package/dist/src/mcp-tools/session-tools.js.map +1 -0
- package/dist/src/mcp-tools/swarm-tools.d.ts +8 -0
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/swarm-tools.js +102 -0
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -0
- package/dist/src/mcp-tools/task-tools.d.ts +8 -0
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/task-tools.js +302 -0
- package/dist/src/mcp-tools/task-tools.js.map +1 -0
- package/dist/src/mcp-tools/types.d.ts +31 -0
- package/dist/src/mcp-tools/types.d.ts.map +1 -0
- package/dist/src/mcp-tools/types.js +7 -0
- package/dist/src/mcp-tools/types.js.map +1 -0
- package/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/workflow-tools.js +481 -0
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -0
- package/dist/src/output.d.ts +133 -0
- package/dist/src/output.d.ts.map +1 -0
- package/dist/src/output.js +513 -0
- package/dist/src/output.js.map +1 -0
- package/dist/src/parser.d.ts +41 -0
- package/dist/src/parser.d.ts.map +1 -0
- package/dist/src/parser.js +353 -0
- package/dist/src/parser.js.map +1 -0
- package/dist/src/prompt.d.ts +44 -0
- package/dist/src/prompt.d.ts.map +1 -0
- package/dist/src/prompt.js +501 -0
- package/dist/src/prompt.js.map +1 -0
- package/dist/src/services/index.d.ts +7 -0
- package/dist/src/services/index.d.ts.map +1 -0
- package/dist/src/services/index.js +6 -0
- package/dist/src/services/index.js.map +1 -0
- package/dist/src/services/worker-daemon.d.ts +153 -0
- package/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/dist/src/services/worker-daemon.js +567 -0
- package/dist/src/services/worker-daemon.js.map +1 -0
- package/dist/src/types.d.ts +198 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +38 -0
- package/dist/src/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +12 -52
- package/src/commands/agent.ts +955 -0
- package/src/commands/config.ts +452 -0
- package/src/commands/daemon.ts +621 -0
- package/src/commands/hive-mind.ts +928 -0
- package/src/commands/hooks.ts +2603 -0
- package/src/commands/index.ts +118 -0
- package/src/commands/init.ts +597 -0
- package/src/commands/mcp.ts +753 -0
- package/src/commands/memory.ts +1161 -0
- package/src/commands/migrate.ts +447 -0
- package/src/commands/process.ts +695 -0
- package/src/commands/session.ts +891 -0
- package/src/commands/start.ts +457 -0
- package/src/commands/status.ts +736 -0
- package/src/commands/swarm.ts +648 -0
- package/src/commands/task.ts +792 -0
- package/src/commands/workflow.ts +742 -0
- package/src/config-adapter.ts +210 -0
- package/src/index.ts +427 -0
- package/src/infrastructure/in-memory-repositories.ts +310 -0
- package/src/init/claudemd-generator.ts +631 -0
- package/src/init/executor.ts +762 -0
- package/src/init/helpers-generator.ts +628 -0
- package/src/init/index.ts +60 -0
- package/src/init/mcp-generator.ts +83 -0
- package/src/init/settings-generator.ts +284 -0
- package/src/init/statusline-generator.ts +211 -0
- package/src/init/types.ts +447 -0
- package/src/mcp-client.ts +241 -0
- package/src/mcp-server.ts +577 -0
- package/src/mcp-tools/agent-tools.ts +466 -0
- package/src/mcp-tools/config-tools.ts +370 -0
- package/src/mcp-tools/hive-mind-tools.ts +521 -0
- package/src/mcp-tools/hooks-tools.ts +1888 -0
- package/src/mcp-tools/index.ts +16 -0
- package/src/mcp-tools/memory-tools.ts +270 -0
- package/src/mcp-tools/session-tools.ts +359 -0
- package/src/mcp-tools/swarm-tools.ts +105 -0
- package/src/mcp-tools/task-tools.ts +347 -0
- package/src/mcp-tools/types.ts +33 -0
- package/src/mcp-tools/workflow-tools.ts +573 -0
- package/src/output.ts +639 -0
- package/src/parser.ts +417 -0
- package/src/prompt.ts +619 -0
- package/src/services/index.ts +15 -0
- package/src/services/worker-daemon.ts +726 -0
- package/src/types.ts +287 -0
- package/dist/index.d.ts +0 -30
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -30
- package/dist/index.js.map +0 -1
package/src/types.ts
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 CLI Type Definitions
|
|
3
|
+
* Modernized type system for the Claude Flow V3 CLI
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// ============================================
|
|
7
|
+
// Core Command Types
|
|
8
|
+
// ============================================
|
|
9
|
+
|
|
10
|
+
export interface CommandContext {
|
|
11
|
+
args: string[];
|
|
12
|
+
flags: ParsedFlags;
|
|
13
|
+
config?: V3Config;
|
|
14
|
+
cwd: string;
|
|
15
|
+
interactive: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ParsedFlags {
|
|
19
|
+
[key: string]: string | boolean | number | string[];
|
|
20
|
+
_: string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface Command {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
aliases?: string[];
|
|
27
|
+
subcommands?: Command[];
|
|
28
|
+
options?: CommandOption[];
|
|
29
|
+
examples?: CommandExample[];
|
|
30
|
+
action?: CommandAction;
|
|
31
|
+
hidden?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface CommandOption {
|
|
35
|
+
name: string;
|
|
36
|
+
short?: string;
|
|
37
|
+
description: string;
|
|
38
|
+
type: 'string' | 'boolean' | 'number' | 'array';
|
|
39
|
+
default?: unknown;
|
|
40
|
+
required?: boolean;
|
|
41
|
+
choices?: string[];
|
|
42
|
+
validate?: (value: unknown) => boolean | string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface CommandExample {
|
|
46
|
+
command: string;
|
|
47
|
+
description: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type CommandAction = (ctx: CommandContext) => Promise<CommandResult | void>;
|
|
51
|
+
|
|
52
|
+
export interface CommandResult {
|
|
53
|
+
success: boolean;
|
|
54
|
+
message?: string;
|
|
55
|
+
data?: unknown;
|
|
56
|
+
exitCode?: number;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// ============================================
|
|
60
|
+
// Configuration Types
|
|
61
|
+
// ============================================
|
|
62
|
+
|
|
63
|
+
export interface V3Config {
|
|
64
|
+
version: string;
|
|
65
|
+
projectRoot: string;
|
|
66
|
+
|
|
67
|
+
// Agent configuration
|
|
68
|
+
agents: AgentConfig;
|
|
69
|
+
|
|
70
|
+
// Swarm configuration
|
|
71
|
+
swarm: SwarmConfig;
|
|
72
|
+
|
|
73
|
+
// Memory configuration
|
|
74
|
+
memory: MemoryConfig;
|
|
75
|
+
|
|
76
|
+
// MCP configuration
|
|
77
|
+
mcp: MCPConfig;
|
|
78
|
+
|
|
79
|
+
// CLI preferences
|
|
80
|
+
cli: CLIPreferences;
|
|
81
|
+
|
|
82
|
+
// Hooks configuration
|
|
83
|
+
hooks: HooksConfig;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface AgentConfig {
|
|
87
|
+
defaultType: string;
|
|
88
|
+
autoSpawn: boolean;
|
|
89
|
+
maxConcurrent: number;
|
|
90
|
+
timeout: number;
|
|
91
|
+
providers: ProviderConfig[];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface ProviderConfig {
|
|
95
|
+
name: string;
|
|
96
|
+
apiKey?: string;
|
|
97
|
+
baseUrl?: string;
|
|
98
|
+
model?: string;
|
|
99
|
+
priority: number;
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface SwarmConfig {
|
|
104
|
+
topology: 'hierarchical' | 'mesh' | 'ring' | 'star' | 'hybrid';
|
|
105
|
+
maxAgents: number;
|
|
106
|
+
autoScale: boolean;
|
|
107
|
+
coordinationStrategy: 'consensus' | 'leader' | 'distributed';
|
|
108
|
+
healthCheckInterval: number;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface MemoryConfig {
|
|
112
|
+
backend: 'agentdb' | 'sqlite' | 'memory' | 'hybrid';
|
|
113
|
+
persistPath: string;
|
|
114
|
+
cacheSize: number;
|
|
115
|
+
enableHNSW: boolean;
|
|
116
|
+
vectorDimension: number;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface MCPConfig {
|
|
120
|
+
serverHost: string;
|
|
121
|
+
serverPort: number;
|
|
122
|
+
autoStart: boolean;
|
|
123
|
+
transportType: 'stdio' | 'http' | 'websocket';
|
|
124
|
+
tools: string[];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface CLIPreferences {
|
|
128
|
+
colorOutput: boolean;
|
|
129
|
+
interactive: boolean;
|
|
130
|
+
verbosity: 'quiet' | 'normal' | 'verbose' | 'debug';
|
|
131
|
+
outputFormat: 'text' | 'json' | 'table';
|
|
132
|
+
progressStyle: 'bar' | 'spinner' | 'dots' | 'none';
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface HooksConfig {
|
|
136
|
+
enabled: boolean;
|
|
137
|
+
autoExecute: boolean;
|
|
138
|
+
hooks: HookDefinition[];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface HookDefinition {
|
|
142
|
+
name: string;
|
|
143
|
+
event: string;
|
|
144
|
+
handler: string;
|
|
145
|
+
priority: number;
|
|
146
|
+
enabled: boolean;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// ============================================
|
|
150
|
+
// Output Types
|
|
151
|
+
// ============================================
|
|
152
|
+
|
|
153
|
+
export interface TableColumn {
|
|
154
|
+
key: string;
|
|
155
|
+
header: string;
|
|
156
|
+
width?: number;
|
|
157
|
+
align?: 'left' | 'center' | 'right';
|
|
158
|
+
format?: (value: unknown) => string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface TableOptions {
|
|
162
|
+
columns: TableColumn[];
|
|
163
|
+
data: Record<string, unknown>[];
|
|
164
|
+
border?: boolean;
|
|
165
|
+
header?: boolean;
|
|
166
|
+
padding?: number;
|
|
167
|
+
maxWidth?: number;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface ProgressOptions {
|
|
171
|
+
total: number;
|
|
172
|
+
current?: number;
|
|
173
|
+
width?: number;
|
|
174
|
+
format?: string;
|
|
175
|
+
showPercentage?: boolean;
|
|
176
|
+
showETA?: boolean;
|
|
177
|
+
showSpeed?: boolean;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface SpinnerOptions {
|
|
181
|
+
text: string;
|
|
182
|
+
spinner?: 'dots' | 'line' | 'arc' | 'circle' | 'arrows';
|
|
183
|
+
color?: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// ============================================
|
|
187
|
+
// Prompt Types
|
|
188
|
+
// ============================================
|
|
189
|
+
|
|
190
|
+
export interface SelectOption<T = string> {
|
|
191
|
+
value: T;
|
|
192
|
+
label: string;
|
|
193
|
+
hint?: string;
|
|
194
|
+
disabled?: boolean;
|
|
195
|
+
/** For multiselect: whether this option is selected by default */
|
|
196
|
+
selected?: boolean;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface SelectPromptOptions<T = string> {
|
|
200
|
+
message: string;
|
|
201
|
+
options: SelectOption<T>[];
|
|
202
|
+
default?: T;
|
|
203
|
+
searchable?: boolean;
|
|
204
|
+
pageSize?: number;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface ConfirmPromptOptions {
|
|
208
|
+
message: string;
|
|
209
|
+
default?: boolean;
|
|
210
|
+
active?: string;
|
|
211
|
+
inactive?: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface InputPromptOptions {
|
|
215
|
+
message: string;
|
|
216
|
+
default?: string;
|
|
217
|
+
placeholder?: string;
|
|
218
|
+
validate?: (value: string) => boolean | string;
|
|
219
|
+
mask?: boolean;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface MultiSelectPromptOptions<T = string> {
|
|
223
|
+
message: string;
|
|
224
|
+
options: SelectOption<T>[];
|
|
225
|
+
default?: T[];
|
|
226
|
+
required?: boolean;
|
|
227
|
+
min?: number;
|
|
228
|
+
max?: number;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// ============================================
|
|
232
|
+
// Event Types
|
|
233
|
+
// ============================================
|
|
234
|
+
|
|
235
|
+
export type CLIEventType =
|
|
236
|
+
| 'command:start'
|
|
237
|
+
| 'command:end'
|
|
238
|
+
| 'command:error'
|
|
239
|
+
| 'prompt:start'
|
|
240
|
+
| 'prompt:complete'
|
|
241
|
+
| 'output:write'
|
|
242
|
+
| 'progress:update'
|
|
243
|
+
| 'spinner:start'
|
|
244
|
+
| 'spinner:stop';
|
|
245
|
+
|
|
246
|
+
export interface CLIEvent {
|
|
247
|
+
type: CLIEventType;
|
|
248
|
+
timestamp: number;
|
|
249
|
+
data?: unknown;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// ============================================
|
|
253
|
+
// Error Types
|
|
254
|
+
// ============================================
|
|
255
|
+
|
|
256
|
+
export class CLIError extends Error {
|
|
257
|
+
constructor(
|
|
258
|
+
message: string,
|
|
259
|
+
public code: string,
|
|
260
|
+
public exitCode: number = 1,
|
|
261
|
+
public details?: unknown
|
|
262
|
+
) {
|
|
263
|
+
super(message);
|
|
264
|
+
this.name = 'CLIError';
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export class ValidationError extends CLIError {
|
|
269
|
+
constructor(message: string, details?: unknown) {
|
|
270
|
+
super(message, 'VALIDATION_ERROR', 1, details);
|
|
271
|
+
this.name = 'ValidationError';
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export class ConfigError extends CLIError {
|
|
276
|
+
constructor(message: string, details?: unknown) {
|
|
277
|
+
super(message, 'CONFIG_ERROR', 1, details);
|
|
278
|
+
this.name = 'ConfigError';
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export class CommandNotFoundError extends CLIError {
|
|
283
|
+
constructor(commandName: string) {
|
|
284
|
+
super(`Unknown command: ${commandName}`, 'COMMAND_NOT_FOUND', 127);
|
|
285
|
+
this.name = 'CommandNotFoundError';
|
|
286
|
+
}
|
|
287
|
+
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* claude-flow - Multi-agent AI orchestration for Claude Code
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// Re-export all modules for convenient access
|
|
6
|
-
export * from '@claude-flow/swarm';
|
|
7
|
-
export * from '@claude-flow/memory';
|
|
8
|
-
export * from '@claude-flow/hooks';
|
|
9
|
-
export * from '@claude-flow/neural';
|
|
10
|
-
export * from '@claude-flow/security';
|
|
11
|
-
export * from '@claude-flow/plugins';
|
|
12
|
-
export * from '@claude-flow/providers';
|
|
13
|
-
export * from '@claude-flow/embeddings';
|
|
14
|
-
export * from '@claude-flow/shared';
|
|
15
|
-
|
|
16
|
-
// Re-export CLI for programmatic use
|
|
17
|
-
export { CLI } from '@claude-flow/cli';
|
|
18
|
-
|
|
19
|
-
// Version info
|
|
20
|
-
export declare const VERSION = "3.0.0-alpha.1";
|
|
21
|
-
export declare const V3_FEATURES: {
|
|
22
|
-
readonly swarmCoordination: true;
|
|
23
|
-
readonly selfLearning: true;
|
|
24
|
-
readonly hnswMemory: true;
|
|
25
|
-
readonly multiProviderLLM: true;
|
|
26
|
-
readonly backgroundWorkers: true;
|
|
27
|
-
readonly securityHardened: true;
|
|
28
|
-
readonly consensusAlgorithms: readonly ["raft", "byzantine", "gossip", "crdt", "quorum"];
|
|
29
|
-
readonly supportedTopologies: readonly ["hierarchical", "mesh", "ring", "star", "adaptive"];
|
|
30
|
-
};
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AAGpC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAGvC,eAAO,MAAM,OAAO,kBAAkB,CAAC;AACvC,eAAO,MAAM,WAAW;;;;;;;;;CASd,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* claude-flow - Multi-agent AI orchestration for Claude Code
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// Re-export all modules for convenient access
|
|
6
|
-
export * from '@claude-flow/swarm';
|
|
7
|
-
export * from '@claude-flow/memory';
|
|
8
|
-
export * from '@claude-flow/hooks';
|
|
9
|
-
export * from '@claude-flow/neural';
|
|
10
|
-
export * from '@claude-flow/security';
|
|
11
|
-
export * from '@claude-flow/plugins';
|
|
12
|
-
export * from '@claude-flow/providers';
|
|
13
|
-
export * from '@claude-flow/embeddings';
|
|
14
|
-
export * from '@claude-flow/shared';
|
|
15
|
-
|
|
16
|
-
// Re-export CLI for programmatic use
|
|
17
|
-
export { CLI } from '@claude-flow/cli';
|
|
18
|
-
|
|
19
|
-
// Version info
|
|
20
|
-
export const VERSION = '3.0.0-alpha.1';
|
|
21
|
-
export const V3_FEATURES = {
|
|
22
|
-
swarmCoordination: true,
|
|
23
|
-
selfLearning: true,
|
|
24
|
-
hnswMemory: true,
|
|
25
|
-
multiProviderLLM: true,
|
|
26
|
-
backgroundWorkers: true,
|
|
27
|
-
securityHardened: true,
|
|
28
|
-
consensusAlgorithms: ['raft', 'byzantine', 'gossip', 'crdt', 'quorum'],
|
|
29
|
-
supportedTopologies: ['hierarchical', 'mesh', 'ring', 'star', 'adaptive'],
|
|
30
|
-
};
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,8CAA8C;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AAEpC,qCAAqC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,eAAe;AACf,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AACvC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;IACtE,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC;CACjE,CAAC"}
|