@sparkleideas/cli 3.1.0-alpha.21 → 3.1.0-alpha.22
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/appliance/rvfa-builder.js +4 -4
- package/dist/src/appliance/rvfa-format.d.ts +1 -1
- package/dist/src/appliance/rvfa-format.js +1 -1
- package/dist/src/appliance/rvfa-runner.js +8 -8
- package/dist/src/commands/agent.js +15 -15
- package/dist/src/commands/analyze.js +52 -52
- package/dist/src/commands/appliance-advanced.js +1 -1
- package/dist/src/commands/appliance.js +16 -16
- package/dist/src/commands/benchmark.js +14 -14
- package/dist/src/commands/categories.js +1 -1
- package/dist/src/commands/claims.js +16 -16
- package/dist/src/commands/completions.js +37 -37
- package/dist/src/commands/config.js +9 -9
- package/dist/src/commands/daemon.js +21 -21
- package/dist/src/commands/deployment.js +15 -15
- package/dist/src/commands/doctor.js +26 -26
- package/dist/src/commands/embeddings.js +48 -48
- package/dist/src/commands/guidance.js +22 -22
- package/dist/src/commands/hive-mind.js +21 -21
- package/dist/src/commands/hooks.js +105 -105
- package/dist/src/commands/init.js +32 -32
- package/dist/src/commands/issues.js +6 -6
- package/dist/src/commands/mcp.js +13 -13
- package/dist/src/commands/memory.js +35 -35
- package/dist/src/commands/migrate.js +6 -6
- package/dist/src/commands/neural.js +31 -31
- package/dist/src/commands/performance.js +13 -13
- package/dist/src/commands/plugins.js +26 -26
- package/dist/src/commands/process.js +32 -32
- package/dist/src/commands/progress.js +5 -5
- package/dist/src/commands/providers.js +13 -13
- package/dist/src/commands/route.js +26 -26
- package/dist/src/commands/ruvector/backup.js +9 -9
- package/dist/src/commands/ruvector/benchmark.js +4 -4
- package/dist/src/commands/ruvector/import.d.ts +3 -3
- package/dist/src/commands/ruvector/import.js +11 -11
- package/dist/src/commands/ruvector/index.js +9 -9
- package/dist/src/commands/ruvector/init.js +7 -7
- package/dist/src/commands/ruvector/migrate.js +5 -5
- package/dist/src/commands/ruvector/optimize.js +7 -7
- package/dist/src/commands/ruvector/setup.d.ts +3 -3
- package/dist/src/commands/ruvector/setup.js +9 -9
- package/dist/src/commands/ruvector/status.js +4 -4
- package/dist/src/commands/security.js +19 -19
- package/dist/src/commands/session.js +13 -13
- package/dist/src/commands/start.js +13 -13
- package/dist/src/commands/status.js +9 -9
- package/dist/src/commands/swarm.js +7 -7
- package/dist/src/commands/task.js +9 -9
- package/dist/src/commands/transfer-store.js +16 -16
- package/dist/src/commands/update.js +2 -2
- package/dist/src/commands/workflow.js +13 -13
- package/dist/src/config-adapter.js +3 -3
- package/dist/src/index.js +1 -1
- package/dist/src/init/claudemd-generator.js +1 -1
- package/dist/src/init/executor.js +6 -6
- package/dist/src/init/helpers-generator.js +4 -4
- package/dist/src/init/mcp-generator.js +6 -6
- package/dist/src/init/settings-generator.js +4 -4
- package/dist/src/init/statusline-generator.js +12 -12
- package/dist/src/init/types.d.ts +4 -4
- package/dist/src/init/types.js +3 -3
- package/dist/src/mcp-server.js +2 -2
- package/dist/src/mcp-tools/auto-install.js +5 -5
- package/dist/src/mcp-tools/hooks-tools.js +1 -1
- package/dist/src/mcp-tools/neural-tools.js +6 -6
- package/dist/src/mcp-tools/security-tools.js +2 -2
- package/dist/src/memory/memory-bridge.d.ts +4 -4
- package/dist/src/memory/memory-bridge.js +15 -15
- package/dist/src/memory/memory-initializer.js +10 -10
- package/dist/src/plugins/manager.js +8 -8
- package/dist/src/plugins/tests/demo-plugin-store.js +6 -6
- package/dist/src/ruvector/enhanced-model-router.js +3 -3
- package/dist/src/services/agentic-flow-bridge.d.ts +11 -11
- package/dist/src/services/agentic-flow-bridge.js +11 -11
- package/dist/src/services/container-worker-pool.js +2 -2
- package/dist/src/services/worker-queue.js +1 -1
- package/dist/src/suggest.js +1 -1
- package/dist/src/transfer/models/seraphine.js +1 -1
- package/dist/src/transfer/serialization/cfp.js +1 -1
- package/dist/src/transfer/store/discovery.js +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/src/update/validator.js +1 -1
- package/package.json +1 -1
|
@@ -15,8 +15,8 @@ const listCommand = {
|
|
|
15
15
|
{ name: 'resource', type: 'string', description: 'Filter by resource' },
|
|
16
16
|
],
|
|
17
17
|
examples: [
|
|
18
|
-
{ command: '
|
|
19
|
-
{ command: '
|
|
18
|
+
{ command: 'claude-flow claims list', description: 'List all claims' },
|
|
19
|
+
{ command: 'claude-flow claims list -u user123', description: 'List user claims' },
|
|
20
20
|
],
|
|
21
21
|
action: async (ctx) => {
|
|
22
22
|
output.writeln();
|
|
@@ -53,8 +53,8 @@ const checkCommand = {
|
|
|
53
53
|
{ name: 'resource', short: 'r', type: 'string', description: 'Resource context' },
|
|
54
54
|
],
|
|
55
55
|
examples: [
|
|
56
|
-
{ command: '
|
|
57
|
-
{ command: '
|
|
56
|
+
{ command: 'claude-flow claims check -c swarm:create', description: 'Check swarm creation permission' },
|
|
57
|
+
{ command: 'claude-flow claims check -c admin:delete -u user123', description: 'Check user permission' },
|
|
58
58
|
],
|
|
59
59
|
action: async (ctx) => {
|
|
60
60
|
const claim = ctx.flags.claim;
|
|
@@ -79,7 +79,7 @@ const checkCommand = {
|
|
|
79
79
|
// Check for claims config file
|
|
80
80
|
const claimsConfigPaths = [
|
|
81
81
|
path.resolve('.claude-flow/claims.json'),
|
|
82
|
-
path.resolve('
|
|
82
|
+
path.resolve('claude-flow.claims.json'),
|
|
83
83
|
path.resolve(process.env.HOME || '~', '.config/claude-flow/claims.json'),
|
|
84
84
|
];
|
|
85
85
|
let claimsConfig = {
|
|
@@ -185,8 +185,8 @@ const grantCommand = {
|
|
|
185
185
|
{ name: 'expires', short: 'e', type: 'string', description: 'Expiration time (e.g., 24h, 7d)' },
|
|
186
186
|
],
|
|
187
187
|
examples: [
|
|
188
|
-
{ command: '
|
|
189
|
-
{ command: '
|
|
188
|
+
{ command: 'claude-flow claims grant -c swarm:create -u user123', description: 'Grant to user' },
|
|
189
|
+
{ command: 'claude-flow claims grant -c agent:spawn -r developer', description: 'Grant to role' },
|
|
190
190
|
],
|
|
191
191
|
action: async (ctx) => {
|
|
192
192
|
const claim = ctx.flags.claim;
|
|
@@ -226,8 +226,8 @@ const revokeCommand = {
|
|
|
226
226
|
{ name: 'role', short: 'r', type: 'string', description: 'Role name' },
|
|
227
227
|
],
|
|
228
228
|
examples: [
|
|
229
|
-
{ command: '
|
|
230
|
-
{ command: '
|
|
229
|
+
{ command: 'claude-flow claims revoke -c swarm:delete -u user123', description: 'Revoke from user' },
|
|
230
|
+
{ command: 'claude-flow claims revoke -c admin:* -r guest', description: 'Revoke from role' },
|
|
231
231
|
],
|
|
232
232
|
action: async (ctx) => {
|
|
233
233
|
const claim = ctx.flags.claim;
|
|
@@ -254,8 +254,8 @@ const rolesCommand = {
|
|
|
254
254
|
{ name: 'name', short: 'n', type: 'string', description: 'Role name' },
|
|
255
255
|
],
|
|
256
256
|
examples: [
|
|
257
|
-
{ command: '
|
|
258
|
-
{ command: '
|
|
257
|
+
{ command: 'claude-flow claims roles', description: 'List all roles' },
|
|
258
|
+
{ command: 'claude-flow claims roles -a show -n admin', description: 'Show role details' },
|
|
259
259
|
],
|
|
260
260
|
action: async (ctx) => {
|
|
261
261
|
const action = ctx.flags.action || 'list';
|
|
@@ -307,8 +307,8 @@ const policiesCommand = {
|
|
|
307
307
|
{ name: 'name', short: 'n', type: 'string', description: 'Policy name' },
|
|
308
308
|
],
|
|
309
309
|
examples: [
|
|
310
|
-
{ command: '
|
|
311
|
-
{ command: '
|
|
310
|
+
{ command: 'claude-flow claims policies', description: 'List policies' },
|
|
311
|
+
{ command: 'claude-flow claims policies -a create -n rate-limit', description: 'Create policy' },
|
|
312
312
|
],
|
|
313
313
|
action: async (ctx) => {
|
|
314
314
|
output.writeln();
|
|
@@ -338,9 +338,9 @@ export const claimsCommand = {
|
|
|
338
338
|
description: 'Claims-based authorization, permissions, and access control',
|
|
339
339
|
subcommands: [listCommand, checkCommand, grantCommand, revokeCommand, rolesCommand, policiesCommand],
|
|
340
340
|
examples: [
|
|
341
|
-
{ command: '
|
|
342
|
-
{ command: '
|
|
343
|
-
{ command: '
|
|
341
|
+
{ command: 'claude-flow claims list', description: 'List all claims' },
|
|
342
|
+
{ command: 'claude-flow claims check -c swarm:create', description: 'Check permission' },
|
|
343
|
+
{ command: 'claude-flow claims grant -c agent:spawn -r developer', description: 'Grant claim' },
|
|
344
344
|
],
|
|
345
345
|
action: async () => {
|
|
346
346
|
output.writeln();
|
|
@@ -26,8 +26,8 @@ const HIVE_MIND_SUBCOMMANDS = ['init', 'spawn', 'status', 'task', 'join', 'leave
|
|
|
26
26
|
const HOOKS_SUBCOMMANDS = ['pre-edit', 'post-edit', 'pre-command', 'post-command', 'pre-task', 'post-task', 'route', 'explain', 'pretrain', 'build-agents', 'metrics', 'transfer', 'list', 'intelligence'];
|
|
27
27
|
// Generate bash completion script
|
|
28
28
|
function generateBashCompletion() {
|
|
29
|
-
return `#
|
|
30
|
-
# Generated by
|
|
29
|
+
return `# claude-flow bash completion
|
|
30
|
+
# Generated by claude-flow completions bash
|
|
31
31
|
# Add this to ~/.bashrc or ~/.bash_completion
|
|
32
32
|
|
|
33
33
|
_claude_flow_completions() {
|
|
@@ -117,15 +117,15 @@ _claude_flow_completions() {
|
|
|
117
117
|
fi
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
complete -F _claude_flow_completions
|
|
120
|
+
complete -F _claude_flow_completions claude-flow
|
|
121
121
|
complete -F _claude_flow_completions npx\\ @sparkleideas/cli@v3alpha
|
|
122
122
|
`;
|
|
123
123
|
}
|
|
124
124
|
// Generate zsh completion script
|
|
125
125
|
function generateZshCompletion() {
|
|
126
|
-
return `#compdef
|
|
127
|
-
#
|
|
128
|
-
# Generated by
|
|
126
|
+
return `#compdef claude-flow
|
|
127
|
+
# claude-flow zsh completion
|
|
128
|
+
# Generated by claude-flow completions zsh
|
|
129
129
|
# Add to ~/.zfunc/_claude-flow or ~/.zsh/completions/_claude-flow
|
|
130
130
|
|
|
131
131
|
_claude_flow() {
|
|
@@ -164,7 +164,7 @@ _claude_flow() {
|
|
|
164
164
|
|
|
165
165
|
case $state in
|
|
166
166
|
command)
|
|
167
|
-
_describe -t commands '
|
|
167
|
+
_describe -t commands 'claude-flow commands' commands
|
|
168
168
|
;;
|
|
169
169
|
subcommand)
|
|
170
170
|
case $words[2] in
|
|
@@ -342,66 +342,66 @@ _claude_flow "$@"
|
|
|
342
342
|
}
|
|
343
343
|
// Generate fish completion script
|
|
344
344
|
function generateFishCompletion() {
|
|
345
|
-
return `#
|
|
346
|
-
# Generated by
|
|
345
|
+
return `# claude-flow fish completion
|
|
346
|
+
# Generated by claude-flow completions fish
|
|
347
347
|
# Save to ~/.config/fish/completions/claude-flow.fish
|
|
348
348
|
|
|
349
349
|
# Disable file completion by default
|
|
350
|
-
complete -c
|
|
350
|
+
complete -c claude-flow -f
|
|
351
351
|
|
|
352
352
|
# Top-level commands
|
|
353
|
-
${TOP_LEVEL_COMMANDS.map(cmd => `complete -c
|
|
353
|
+
${TOP_LEVEL_COMMANDS.map(cmd => `complete -c claude-flow -n "__fish_use_subcommand" -a "${cmd}"`).join('\n')}
|
|
354
354
|
|
|
355
355
|
# Swarm subcommands
|
|
356
|
-
${SWARM_SUBCOMMANDS.map(sub => `complete -c
|
|
356
|
+
${SWARM_SUBCOMMANDS.map(sub => `complete -c claude-flow -n "__fish_seen_subcommand_from swarm" -a "${sub}"`).join('\n')}
|
|
357
357
|
|
|
358
358
|
# Agent subcommands
|
|
359
|
-
${AGENT_SUBCOMMANDS.map(sub => `complete -c
|
|
359
|
+
${AGENT_SUBCOMMANDS.map(sub => `complete -c claude-flow -n "__fish_seen_subcommand_from agent" -a "${sub}"`).join('\n')}
|
|
360
360
|
|
|
361
361
|
# Task subcommands
|
|
362
|
-
${TASK_SUBCOMMANDS.map(sub => `complete -c
|
|
362
|
+
${TASK_SUBCOMMANDS.map(sub => `complete -c claude-flow -n "__fish_seen_subcommand_from task" -a "${sub}"`).join('\n')}
|
|
363
363
|
|
|
364
364
|
# Memory subcommands
|
|
365
|
-
${MEMORY_SUBCOMMANDS.map(sub => `complete -c
|
|
365
|
+
${MEMORY_SUBCOMMANDS.map(sub => `complete -c claude-flow -n "__fish_seen_subcommand_from memory" -a "${sub}"`).join('\n')}
|
|
366
366
|
|
|
367
367
|
# Hive-mind subcommands
|
|
368
|
-
${HIVE_MIND_SUBCOMMANDS.map(sub => `complete -c
|
|
368
|
+
${HIVE_MIND_SUBCOMMANDS.map(sub => `complete -c claude-flow -n "__fish_seen_subcommand_from hive-mind hive" -a "${sub}"`).join('\n')}
|
|
369
369
|
|
|
370
370
|
# Hooks subcommands
|
|
371
|
-
${HOOKS_SUBCOMMANDS.map(sub => `complete -c
|
|
371
|
+
${HOOKS_SUBCOMMANDS.map(sub => `complete -c claude-flow -n "__fish_seen_subcommand_from hooks" -a "${sub}"`).join('\n')}
|
|
372
372
|
|
|
373
373
|
# Neural subcommands
|
|
374
|
-
complete -c
|
|
374
|
+
complete -c claude-flow -n "__fish_seen_subcommand_from neural" -a "train status patterns predict optimize"
|
|
375
375
|
|
|
376
376
|
# Security subcommands
|
|
377
|
-
complete -c
|
|
377
|
+
complete -c claude-flow -n "__fish_seen_subcommand_from security" -a "scan cve threats audit secrets"
|
|
378
378
|
|
|
379
379
|
# Performance subcommands
|
|
380
|
-
complete -c
|
|
380
|
+
complete -c claude-flow -n "__fish_seen_subcommand_from performance" -a "benchmark profile metrics optimize bottleneck"
|
|
381
381
|
|
|
382
382
|
# Plugins subcommands
|
|
383
|
-
complete -c
|
|
383
|
+
complete -c claude-flow -n "__fish_seen_subcommand_from plugins" -a "list install uninstall toggle info create"
|
|
384
384
|
|
|
385
385
|
# Deployment subcommands
|
|
386
|
-
complete -c
|
|
386
|
+
complete -c claude-flow -n "__fish_seen_subcommand_from deployment deploy" -a "deploy status rollback history environments logs"
|
|
387
387
|
|
|
388
388
|
# Claims subcommands
|
|
389
|
-
complete -c
|
|
389
|
+
complete -c claude-flow -n "__fish_seen_subcommand_from claims" -a "list check grant revoke roles policies"
|
|
390
390
|
|
|
391
391
|
# Embeddings subcommands
|
|
392
|
-
complete -c
|
|
392
|
+
complete -c claude-flow -n "__fish_seen_subcommand_from embeddings" -a "generate search compare collections index providers"
|
|
393
393
|
|
|
394
394
|
# Daemon subcommands
|
|
395
|
-
complete -c
|
|
395
|
+
complete -c claude-flow -n "__fish_seen_subcommand_from daemon" -a "start stop status trigger enable"
|
|
396
396
|
|
|
397
397
|
# Providers subcommands
|
|
398
|
-
complete -c
|
|
398
|
+
complete -c claude-flow -n "__fish_seen_subcommand_from providers" -a "list configure test models usage"
|
|
399
399
|
`;
|
|
400
400
|
}
|
|
401
401
|
// Generate PowerShell completion script
|
|
402
402
|
function generatePowerShellCompletion() {
|
|
403
|
-
return `#
|
|
404
|
-
# Generated by
|
|
403
|
+
return `# claude-flow PowerShell completion
|
|
404
|
+
# Generated by claude-flow completions powershell
|
|
405
405
|
# Add to $PROFILE or save to a separate file and dot-source it
|
|
406
406
|
|
|
407
407
|
$script:ClaudeFlowCommands = @(
|
|
@@ -428,7 +428,7 @@ $script:SubCommands = @{
|
|
|
428
428
|
'providers' = @('list', 'configure', 'test', 'models', 'usage')
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
Register-ArgumentCompleter -Native -CommandName
|
|
431
|
+
Register-ArgumentCompleter -Native -CommandName claude-flow -ScriptBlock {
|
|
432
432
|
param($wordToComplete, $commandAst, $cursorPosition)
|
|
433
433
|
|
|
434
434
|
$tokens = $commandAst.ToString().Split(' ')
|
|
@@ -497,10 +497,10 @@ export const completionsCommand = {
|
|
|
497
497
|
subcommands: [bashCommand, zshCommand, fishCommand, powershellCommand],
|
|
498
498
|
options: [],
|
|
499
499
|
examples: [
|
|
500
|
-
{ command: '
|
|
501
|
-
{ command: '
|
|
502
|
-
{ command: '
|
|
503
|
-
{ command: '
|
|
500
|
+
{ command: 'claude-flow completions bash > ~/.bash_completion.d/claude-flow', description: 'Install bash completions' },
|
|
501
|
+
{ command: 'claude-flow completions zsh > ~/.zfunc/_claude-flow', description: 'Install zsh completions' },
|
|
502
|
+
{ command: 'claude-flow completions fish > ~/.config/fish/completions/claude-flow.fish', description: 'Install fish completions' },
|
|
503
|
+
{ command: 'claude-flow completions powershell >> $PROFILE', description: 'Install PowerShell completions' }
|
|
504
504
|
],
|
|
505
505
|
action: async () => {
|
|
506
506
|
output.writeln();
|
|
@@ -519,19 +519,19 @@ export const completionsCommand = {
|
|
|
519
519
|
output.writeln('Installation:');
|
|
520
520
|
output.writeln();
|
|
521
521
|
output.writeln(output.bold('Bash:'));
|
|
522
|
-
output.writeln(output.dim('
|
|
522
|
+
output.writeln(output.dim(' claude-flow completions bash > ~/.bash_completion.d/claude-flow'));
|
|
523
523
|
output.writeln(output.dim(' source ~/.bash_completion.d/claude-flow'));
|
|
524
524
|
output.writeln();
|
|
525
525
|
output.writeln(output.bold('Zsh:'));
|
|
526
526
|
output.writeln(output.dim(' mkdir -p ~/.zfunc'));
|
|
527
|
-
output.writeln(output.dim('
|
|
527
|
+
output.writeln(output.dim(' claude-flow completions zsh > ~/.zfunc/_claude-flow'));
|
|
528
528
|
output.writeln(output.dim(' # Add to ~/.zshrc: fpath=(~/.zfunc $fpath); autoload -Uz compinit && compinit'));
|
|
529
529
|
output.writeln();
|
|
530
530
|
output.writeln(output.bold('Fish:'));
|
|
531
|
-
output.writeln(output.dim('
|
|
531
|
+
output.writeln(output.dim(' claude-flow completions fish > ~/.config/fish/completions/claude-flow.fish'));
|
|
532
532
|
output.writeln();
|
|
533
533
|
output.writeln(output.bold('PowerShell:'));
|
|
534
|
-
output.writeln(output.dim('
|
|
534
|
+
output.writeln(output.dim(' claude-flow completions powershell >> $PROFILE'));
|
|
535
535
|
return { success: true };
|
|
536
536
|
}
|
|
537
537
|
};
|
|
@@ -69,7 +69,7 @@ const initCommand = {
|
|
|
69
69
|
{ name: 'ollama', priority: 3, enabled: false }
|
|
70
70
|
]
|
|
71
71
|
};
|
|
72
|
-
output.writeln(output.dim(' Creating
|
|
72
|
+
output.writeln(output.dim(' Creating claude-flow.config.json...'));
|
|
73
73
|
output.writeln(output.dim(' Creating .claude-flow/ directory...'));
|
|
74
74
|
if (sparc) {
|
|
75
75
|
output.writeln(output.dim(' Initializing SPARC methodology...'));
|
|
@@ -115,8 +115,8 @@ const getCommand = {
|
|
|
115
115
|
}
|
|
116
116
|
],
|
|
117
117
|
examples: [
|
|
118
|
-
{ command: '
|
|
119
|
-
{ command: '
|
|
118
|
+
{ command: 'claude-flow config get swarm.topology', description: 'Get swarm topology' },
|
|
119
|
+
{ command: 'claude-flow config get -k memory.backend', description: 'Get memory backend' }
|
|
120
120
|
],
|
|
121
121
|
action: async (ctx) => {
|
|
122
122
|
const key = ctx.flags.key || ctx.args[0];
|
|
@@ -186,8 +186,8 @@ const setCommand = {
|
|
|
186
186
|
}
|
|
187
187
|
],
|
|
188
188
|
examples: [
|
|
189
|
-
{ command: '
|
|
190
|
-
{ command: '
|
|
189
|
+
{ command: 'claude-flow config set swarm.maxAgents 20', description: 'Set max agents' },
|
|
190
|
+
{ command: 'claude-flow config set -k memory.backend -v agentdb', description: 'Set memory backend' }
|
|
191
191
|
],
|
|
192
192
|
action: async (ctx) => {
|
|
193
193
|
const key = ctx.flags.key || ctx.args[0];
|
|
@@ -379,15 +379,15 @@ export const configCommand = {
|
|
|
379
379
|
subcommands: [initCommand, getCommand, setCommand, providersCommand, resetCommand, exportCommand, importCommand],
|
|
380
380
|
options: [],
|
|
381
381
|
examples: [
|
|
382
|
-
{ command: '
|
|
383
|
-
{ command: '
|
|
384
|
-
{ command: '
|
|
382
|
+
{ command: 'claude-flow config init --v3', description: 'Initialize V3 config' },
|
|
383
|
+
{ command: 'claude-flow config get swarm.topology', description: 'Get config value' },
|
|
384
|
+
{ command: 'claude-flow config set swarm.maxAgents 20', description: 'Set config value' }
|
|
385
385
|
],
|
|
386
386
|
action: async (ctx) => {
|
|
387
387
|
output.writeln();
|
|
388
388
|
output.writeln(output.bold('Configuration Management'));
|
|
389
389
|
output.writeln();
|
|
390
|
-
output.writeln('Usage:
|
|
390
|
+
output.writeln('Usage: claude-flow config <subcommand> [options]');
|
|
391
391
|
output.writeln();
|
|
392
392
|
output.writeln('Subcommands:');
|
|
393
393
|
output.printList([
|
|
@@ -21,10 +21,10 @@ const startCommand = {
|
|
|
21
21
|
{ name: 'sandbox', type: 'string', description: 'Default sandbox mode for headless workers', choices: ['strict', 'permissive', 'disabled'] },
|
|
22
22
|
],
|
|
23
23
|
examples: [
|
|
24
|
-
{ command: '
|
|
25
|
-
{ command: '
|
|
26
|
-
{ command: '
|
|
27
|
-
{ command: '
|
|
24
|
+
{ command: 'claude-flow daemon start', description: 'Start daemon in background (default)' },
|
|
25
|
+
{ command: 'claude-flow daemon start --foreground', description: 'Start in foreground (blocks terminal)' },
|
|
26
|
+
{ command: 'claude-flow daemon start -w map,audit,optimize', description: 'Start with specific workers' },
|
|
27
|
+
{ command: 'claude-flow daemon start --headless --sandbox strict', description: 'Start with headless workers in strict sandbox' },
|
|
28
28
|
],
|
|
29
29
|
action: async (ctx) => {
|
|
30
30
|
const quiet = ctx.flags.quiet;
|
|
@@ -219,7 +219,7 @@ async function startBackgroundDaemon(projectRoot, quiet) {
|
|
|
219
219
|
if (!quiet) {
|
|
220
220
|
output.printSuccess(`Daemon started in background (PID: ${pid})`);
|
|
221
221
|
output.printInfo(`Logs: ${logFile}`);
|
|
222
|
-
output.printInfo(`Stop with:
|
|
222
|
+
output.printInfo(`Stop with: claude-flow daemon stop`);
|
|
223
223
|
}
|
|
224
224
|
return { success: true };
|
|
225
225
|
}
|
|
@@ -231,7 +231,7 @@ const stopCommand = {
|
|
|
231
231
|
{ name: 'quiet', short: 'Q', type: 'boolean', description: 'Suppress output' },
|
|
232
232
|
],
|
|
233
233
|
examples: [
|
|
234
|
-
{ command: '
|
|
234
|
+
{ command: 'claude-flow daemon stop', description: 'Stop the daemon' },
|
|
235
235
|
],
|
|
236
236
|
action: async (ctx) => {
|
|
237
237
|
const quiet = ctx.flags.quiet;
|
|
@@ -344,9 +344,9 @@ const statusCommand = {
|
|
|
344
344
|
{ name: 'show-modes', type: 'boolean', description: 'Show worker execution modes (local/headless) and sandbox settings' },
|
|
345
345
|
],
|
|
346
346
|
examples: [
|
|
347
|
-
{ command: '
|
|
348
|
-
{ command: '
|
|
349
|
-
{ command: '
|
|
347
|
+
{ command: 'claude-flow daemon status', description: 'Show daemon status' },
|
|
348
|
+
{ command: 'claude-flow daemon status -v', description: 'Show detailed status' },
|
|
349
|
+
{ command: 'claude-flow daemon status --show-modes', description: 'Show worker execution modes' },
|
|
350
350
|
],
|
|
351
351
|
action: async (ctx) => {
|
|
352
352
|
const verbose = ctx.flags.verbose;
|
|
@@ -441,7 +441,7 @@ const statusCommand = {
|
|
|
441
441
|
output.printBox([
|
|
442
442
|
`Status: ${output.error('○')} ${output.error('NOT INITIALIZED')}`,
|
|
443
443
|
'',
|
|
444
|
-
'Run "
|
|
444
|
+
'Run "claude-flow daemon start" to start the daemon',
|
|
445
445
|
].join('\n'), 'RuFlo Daemon');
|
|
446
446
|
return { success: true };
|
|
447
447
|
}
|
|
@@ -456,9 +456,9 @@ const triggerCommand = {
|
|
|
456
456
|
{ name: 'headless', type: 'boolean', description: 'Run triggered worker in headless mode (E2B sandbox)' },
|
|
457
457
|
],
|
|
458
458
|
examples: [
|
|
459
|
-
{ command: '
|
|
460
|
-
{ command: '
|
|
461
|
-
{ command: '
|
|
459
|
+
{ command: 'claude-flow daemon trigger -w map', description: 'Trigger the map worker' },
|
|
460
|
+
{ command: 'claude-flow daemon trigger -w audit', description: 'Trigger security audit' },
|
|
461
|
+
{ command: 'claude-flow daemon trigger -w audit --headless', description: 'Trigger audit in headless sandbox' },
|
|
462
462
|
],
|
|
463
463
|
action: async (ctx) => {
|
|
464
464
|
const workerType = ctx.flags.worker;
|
|
@@ -501,8 +501,8 @@ const enableCommand = {
|
|
|
501
501
|
{ name: 'disable', short: 'd', type: 'boolean', description: 'Disable instead of enable' },
|
|
502
502
|
],
|
|
503
503
|
examples: [
|
|
504
|
-
{ command: '
|
|
505
|
-
{ command: '
|
|
504
|
+
{ command: 'claude-flow daemon enable -w predict', description: 'Enable predict worker' },
|
|
505
|
+
{ command: 'claude-flow daemon enable -w document --disable', description: 'Disable document worker' },
|
|
506
506
|
],
|
|
507
507
|
action: async (ctx) => {
|
|
508
508
|
const workerType = ctx.flags.worker;
|
|
@@ -559,11 +559,11 @@ export const daemonCommand = {
|
|
|
559
559
|
],
|
|
560
560
|
options: [],
|
|
561
561
|
examples: [
|
|
562
|
-
{ command: '
|
|
563
|
-
{ command: '
|
|
564
|
-
{ command: '
|
|
565
|
-
{ command: '
|
|
566
|
-
{ command: '
|
|
562
|
+
{ command: 'claude-flow daemon start', description: 'Start the daemon' },
|
|
563
|
+
{ command: 'claude-flow daemon start --headless', description: 'Start with headless workers (E2B sandbox)' },
|
|
564
|
+
{ command: 'claude-flow daemon status', description: 'Check daemon status' },
|
|
565
|
+
{ command: 'claude-flow daemon stop', description: 'Stop the daemon' },
|
|
566
|
+
{ command: 'claude-flow daemon trigger -w audit', description: 'Run security audit' },
|
|
567
567
|
],
|
|
568
568
|
action: async () => {
|
|
569
569
|
output.writeln();
|
|
@@ -601,7 +601,7 @@ export const daemonCommand = {
|
|
|
601
601
|
`${output.highlight('enable')} - Enable/disable a worker`,
|
|
602
602
|
]);
|
|
603
603
|
output.writeln();
|
|
604
|
-
output.writeln('Run "
|
|
604
|
+
output.writeln('Run "claude-flow daemon <subcommand> --help" for details');
|
|
605
605
|
return { success: true };
|
|
606
606
|
},
|
|
607
607
|
};
|
|
@@ -17,8 +17,8 @@ const deployCommand = {
|
|
|
17
17
|
{ name: 'rollback-on-fail', type: 'boolean', description: 'Auto rollback on failure', default: 'true' },
|
|
18
18
|
],
|
|
19
19
|
examples: [
|
|
20
|
-
{ command: '
|
|
21
|
-
{ command: '
|
|
20
|
+
{ command: 'claude-flow deployment deploy -e prod', description: 'Deploy to production' },
|
|
21
|
+
{ command: 'claude-flow deployment deploy --dry-run', description: 'Simulate deployment' },
|
|
22
22
|
],
|
|
23
23
|
action: async (ctx) => {
|
|
24
24
|
const env = ctx.flags.env || 'staging';
|
|
@@ -68,8 +68,8 @@ const statusCommand = {
|
|
|
68
68
|
{ name: 'watch', short: 'w', type: 'boolean', description: 'Watch for changes' },
|
|
69
69
|
],
|
|
70
70
|
examples: [
|
|
71
|
-
{ command: '
|
|
72
|
-
{ command: '
|
|
71
|
+
{ command: 'claude-flow deployment status', description: 'Show all environments' },
|
|
72
|
+
{ command: 'claude-flow deployment status -e prod', description: 'Check production' },
|
|
73
73
|
],
|
|
74
74
|
action: async (ctx) => {
|
|
75
75
|
output.writeln();
|
|
@@ -103,8 +103,8 @@ const rollbackCommand = {
|
|
|
103
103
|
{ name: 'steps', short: 's', type: 'number', description: 'Number of versions to rollback', default: '1' },
|
|
104
104
|
],
|
|
105
105
|
examples: [
|
|
106
|
-
{ command: '
|
|
107
|
-
{ command: '
|
|
106
|
+
{ command: 'claude-flow deployment rollback -e prod', description: 'Rollback production' },
|
|
107
|
+
{ command: 'claude-flow deployment rollback -e prod -v v3.0.0', description: 'Rollback to specific version' },
|
|
108
108
|
],
|
|
109
109
|
action: async (ctx) => {
|
|
110
110
|
const env = ctx.flags.env;
|
|
@@ -144,8 +144,8 @@ const historyCommand = {
|
|
|
144
144
|
{ name: 'limit', short: 'l', type: 'number', description: 'Number of entries', default: '10' },
|
|
145
145
|
],
|
|
146
146
|
examples: [
|
|
147
|
-
{ command: '
|
|
148
|
-
{ command: '
|
|
147
|
+
{ command: 'claude-flow deployment history', description: 'Show all history' },
|
|
148
|
+
{ command: 'claude-flow deployment history -e prod', description: 'Production history' },
|
|
149
149
|
],
|
|
150
150
|
action: async (ctx) => {
|
|
151
151
|
const env = ctx.flags.env;
|
|
@@ -182,8 +182,8 @@ const environmentsCommand = {
|
|
|
182
182
|
{ name: 'name', short: 'n', type: 'string', description: 'Environment name' },
|
|
183
183
|
],
|
|
184
184
|
examples: [
|
|
185
|
-
{ command: '
|
|
186
|
-
{ command: '
|
|
185
|
+
{ command: 'claude-flow deployment environments', description: 'List environments' },
|
|
186
|
+
{ command: 'claude-flow deployment envs -a create -n preview', description: 'Create environment' },
|
|
187
187
|
],
|
|
188
188
|
action: async (ctx) => {
|
|
189
189
|
output.writeln();
|
|
@@ -217,8 +217,8 @@ const logsCommand = {
|
|
|
217
217
|
{ name: 'lines', short: 'n', type: 'number', description: 'Number of lines', default: '50' },
|
|
218
218
|
],
|
|
219
219
|
examples: [
|
|
220
|
-
{ command: '
|
|
221
|
-
{ command: '
|
|
220
|
+
{ command: 'claude-flow deployment logs -e prod', description: 'View production logs' },
|
|
221
|
+
{ command: 'claude-flow deployment logs -d dep-123', description: 'View specific deployment' },
|
|
222
222
|
],
|
|
223
223
|
action: async (ctx) => {
|
|
224
224
|
const env = ctx.flags.env || 'staging';
|
|
@@ -254,9 +254,9 @@ export const deploymentCommand = {
|
|
|
254
254
|
aliases: ['deploy'],
|
|
255
255
|
subcommands: [deployCommand, statusCommand, rollbackCommand, historyCommand, environmentsCommand, logsCommand],
|
|
256
256
|
examples: [
|
|
257
|
-
{ command: '
|
|
258
|
-
{ command: '
|
|
259
|
-
{ command: '
|
|
257
|
+
{ command: 'claude-flow deployment deploy -e prod', description: 'Deploy to production' },
|
|
258
|
+
{ command: 'claude-flow deployment status', description: 'Check all environments' },
|
|
259
|
+
{ command: 'claude-flow deployment rollback -e prod', description: 'Rollback production' },
|
|
260
260
|
],
|
|
261
261
|
action: async () => {
|
|
262
262
|
output.writeln();
|