claude-flow 2.7.0 → 2.7.1
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/CHANGELOG.md +42 -0
- package/bin/claude-flow +1 -1
- package/dist/src/cli/simple-cli.js +104 -0
- package/dist/src/cli/simple-cli.js.map +1 -1
- package/dist/src/cli/simple-commands/config.js +115 -257
- package/dist/src/cli/simple-commands/config.js.map +1 -1
- package/dist/src/cli/validation-helper.js.map +1 -1
- package/dist/src/mcp/mcp-server.js +261 -3
- package/dist/src/mcp/mcp-server.js.map +1 -1
- package/dist/src/utils/key-redactor.js.map +1 -1
- package/dist/src/utils/metrics-reader.js +41 -29
- package/dist/src/utils/metrics-reader.js.map +1 -1
- package/docs/PATTERN_PERSISTENCE_FIX.md +328 -0
- package/docs/RELEASE_v2.7.1.md +244 -0
- package/docs/skills-tutorial.md +2 -2
- package/package.json +1 -1
- package/src/mcp/mcp-server.js +302 -2
- package/dist/agents/agent-loader.d.ts +0 -103
- package/dist/agents/agent-loader.d.ts.map +0 -1
- package/dist/agents/agent-loader.js +0 -220
- package/dist/agents/agent-loader.js.map +0 -1
- package/dist/agents/agent-manager.d.ts +0 -191
- package/dist/agents/agent-manager.d.ts.map +0 -1
- package/dist/agents/agent-manager.js +0 -1405
- package/dist/agents/agent-manager.js.map +0 -1
- package/dist/api/claude-api-errors.d.ts +0 -115
- package/dist/api/claude-api-errors.d.ts.map +0 -1
- package/dist/api/claude-api-errors.js +0 -198
- package/dist/api/claude-api-errors.js.map +0 -1
- package/dist/api/claude-client.d.ts +0 -197
- package/dist/api/claude-client.d.ts.map +0 -1
- package/dist/api/claude-client.js +0 -525
- package/dist/api/claude-client.js.map +0 -1
- package/dist/cli/cli-core.d.ts +0 -52
- package/dist/cli/cli-core.d.ts.map +0 -1
- package/dist/cli/cli-core.js +0 -264
- package/dist/cli/cli-core.js.map +0 -1
- package/dist/cli/command-registry.d.ts +0 -10
- package/dist/cli/command-registry.d.ts.map +0 -1
- package/dist/cli/command-registry.js +0 -1126
- package/dist/cli/command-registry.js.map +0 -1
- package/dist/cli/commander-fix.d.ts +0 -4
- package/dist/cli/commander-fix.d.ts.map +0 -1
- package/dist/cli/commander-fix.js +0 -6
- package/dist/cli/commander-fix.js.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -6
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -382
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -4
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -88
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/enterprise.d.ts +0 -3
- package/dist/cli/commands/enterprise.d.ts.map +0 -1
- package/dist/cli/commands/enterprise.js +0 -1506
- package/dist/cli/commands/enterprise.js.map +0 -1
- package/dist/cli/commands/help.d.ts +0 -6
- package/dist/cli/commands/help.d.ts.map +0 -1
- package/dist/cli/commands/help.js +0 -936
- package/dist/cli/commands/help.js.map +0 -1
- package/dist/cli/commands/hive-mind/index.d.ts +0 -18
- package/dist/cli/commands/hive-mind/index.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/index.js +0 -30
- package/dist/cli/commands/hive-mind/index.js.map +0 -1
- package/dist/cli/commands/hive-mind/init.d.ts +0 -9
- package/dist/cli/commands/hive-mind/init.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/init.js +0 -68
- package/dist/cli/commands/hive-mind/init.js.map +0 -1
- package/dist/cli/commands/hive-mind/pause.d.ts +0 -8
- package/dist/cli/commands/hive-mind/pause.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/pause.js +0 -81
- package/dist/cli/commands/hive-mind/pause.js.map +0 -1
- package/dist/cli/commands/hive-mind/ps.d.ts +0 -8
- package/dist/cli/commands/hive-mind/ps.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/ps.js +0 -120
- package/dist/cli/commands/hive-mind/ps.js.map +0 -1
- package/dist/cli/commands/hive-mind/resume.d.ts +0 -8
- package/dist/cli/commands/hive-mind/resume.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/resume.js +0 -62
- package/dist/cli/commands/hive-mind/resume.js.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts +0 -9
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.js +0 -174
- package/dist/cli/commands/hive-mind/spawn.js.map +0 -1
- package/dist/cli/commands/hive-mind/status.d.ts +0 -9
- package/dist/cli/commands/hive-mind/status.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/status.js +0 -204
- package/dist/cli/commands/hive-mind/status.js.map +0 -1
- package/dist/cli/commands/hive-mind/stop.d.ts +0 -8
- package/dist/cli/commands/hive-mind/stop.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/stop.js +0 -125
- package/dist/cli/commands/hive-mind/stop.js.map +0 -1
- package/dist/cli/commands/hive-mind/task.d.ts +0 -9
- package/dist/cli/commands/hive-mind/task.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/task.js +0 -294
- package/dist/cli/commands/hive-mind/task.js.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts +0 -9
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.js +0 -531
- package/dist/cli/commands/hive-mind/wizard.js.map +0 -1
- package/dist/cli/commands/hive.d.ts +0 -6
- package/dist/cli/commands/hive.d.ts.map +0 -1
- package/dist/cli/commands/hive.js +0 -409
- package/dist/cli/commands/hive.js.map +0 -1
- package/dist/cli/commands/index.d.ts +0 -3
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/index.js +0 -2624
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/mcp.d.ts +0 -5
- package/dist/cli/commands/mcp.d.ts.map +0 -1
- package/dist/cli/commands/mcp.js +0 -169
- package/dist/cli/commands/mcp.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -26
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -225
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/migrate.d.ts +0 -5
- package/dist/cli/commands/migrate.d.ts.map +0 -1
- package/dist/cli/commands/migrate.js +0 -139
- package/dist/cli/commands/migrate.js.map +0 -1
- package/dist/cli/commands/monitor.d.ts +0 -5
- package/dist/cli/commands/monitor.d.ts.map +0 -1
- package/dist/cli/commands/monitor.js +0 -493
- package/dist/cli/commands/monitor.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -5
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -548
- package/dist/cli/commands/session.js.map +0 -1
- package/dist/cli/commands/sparc.d.ts +0 -3
- package/dist/cli/commands/sparc.d.ts.map +0 -1
- package/dist/cli/commands/sparc.js +0 -472
- package/dist/cli/commands/sparc.js.map +0 -1
- package/dist/cli/commands/start/event-emitter.d.ts +0 -13
- package/dist/cli/commands/start/event-emitter.d.ts.map +0 -1
- package/dist/cli/commands/start/event-emitter.js +0 -35
- package/dist/cli/commands/start/event-emitter.js.map +0 -1
- package/dist/cli/commands/start/index.d.ts +0 -10
- package/dist/cli/commands/start/index.d.ts.map +0 -1
- package/dist/cli/commands/start/index.js +0 -9
- package/dist/cli/commands/start/index.js.map +0 -1
- package/dist/cli/commands/start/process-manager.d.ts +0 -31
- package/dist/cli/commands/start/process-manager.d.ts.map +0 -1
- package/dist/cli/commands/start/process-manager.js +0 -283
- package/dist/cli/commands/start/process-manager.js.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +0 -29
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.js +0 -334
- package/dist/cli/commands/start/process-ui-simple.js.map +0 -1
- package/dist/cli/commands/start/process-ui.d.ts +0 -5
- package/dist/cli/commands/start/process-ui.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui.js +0 -5
- package/dist/cli/commands/start/process-ui.js.map +0 -1
- package/dist/cli/commands/start/start-command.d.ts +0 -2
- package/dist/cli/commands/start/start-command.d.ts.map +0 -1
- package/dist/cli/commands/start/start-command.js +0 -462
- package/dist/cli/commands/start/start-command.js.map +0 -1
- package/dist/cli/commands/start/system-monitor.d.ts +0 -25
- package/dist/cli/commands/start/system-monitor.d.ts.map +0 -1
- package/dist/cli/commands/start/system-monitor.js +0 -265
- package/dist/cli/commands/start/system-monitor.js.map +0 -1
- package/dist/cli/commands/start/types.d.ts +0 -64
- package/dist/cli/commands/start/types.d.ts.map +0 -1
- package/dist/cli/commands/start/types.js +0 -22
- package/dist/cli/commands/start/types.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -6
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -6
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -2
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -304
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/swarm.d.ts +0 -6
- package/dist/cli/commands/swarm.d.ts.map +0 -1
- package/dist/cli/commands/swarm.js +0 -465
- package/dist/cli/commands/swarm.js.map +0 -1
- package/dist/cli/commands/task.d.ts +0 -2
- package/dist/cli/commands/task.d.ts.map +0 -1
- package/dist/cli/commands/task.js +0 -75
- package/dist/cli/commands/task.js.map +0 -1
- package/dist/cli/commands/workflow.d.ts +0 -2
- package/dist/cli/commands/workflow.d.ts.map +0 -1
- package/dist/cli/commands/workflow.js +0 -624
- package/dist/cli/commands/workflow.js.map +0 -1
- package/dist/cli/completion.d.ts +0 -19
- package/dist/cli/completion.d.ts.map +0 -1
- package/dist/cli/completion.js +0 -545
- package/dist/cli/completion.js.map +0 -1
- package/dist/cli/formatter.d.ts +0 -69
- package/dist/cli/formatter.d.ts.map +0 -1
- package/dist/cli/formatter.js +0 -277
- package/dist/cli/formatter.js.map +0 -1
- package/dist/cli/help-formatter.d.ts +0 -49
- package/dist/cli/help-formatter.d.ts.map +0 -1
- package/dist/cli/help-formatter.js +0 -108
- package/dist/cli/help-formatter.js.map +0 -1
- package/dist/cli/help-text.d.ts +0 -25
- package/dist/cli/help-text.d.ts.map +0 -1
- package/dist/cli/help-text.js +0 -1051
- package/dist/cli/help-text.js.map +0 -1
- package/dist/cli/index-remote.d.ts +0 -7
- package/dist/cli/index-remote.d.ts.map +0 -1
- package/dist/cli/index-remote.js +0 -125
- package/dist/cli/index-remote.js.map +0 -1
- package/dist/cli/index.d.ts +0 -7
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -189
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/node-compat.d.ts +0 -81
- package/dist/cli/node-compat.d.ts.map +0 -1
- package/dist/cli/node-compat.js +0 -229
- package/dist/cli/node-compat.js.map +0 -1
- package/dist/cli/repl.d.ts +0 -5
- package/dist/cli/repl.d.ts.map +0 -1
- package/dist/cli/repl.js +0 -949
- package/dist/cli/repl.js.map +0 -1
- package/dist/cli/runtime-detector.d.ts +0 -128
- package/dist/cli/runtime-detector.d.ts.map +0 -1
- package/dist/cli/runtime-detector.js +0 -267
- package/dist/cli/runtime-detector.js.map +0 -1
- package/dist/cli/simple-cli.d.ts +0 -7
- package/dist/cli/simple-cli.d.ts.map +0 -1
- package/dist/cli/simple-cli.js +0 -3085
- package/dist/cli/simple-cli.js.map +0 -1
- package/dist/cli/simple-commands/agent.d.ts +0 -6
- package/dist/cli/simple-commands/agent.d.ts.map +0 -1
- package/dist/cli/simple-commands/agent.js +0 -128
- package/dist/cli/simple-commands/agent.js.map +0 -1
- package/dist/cli/simple-commands/analysis.d.ts +0 -2
- package/dist/cli/simple-commands/analysis.d.ts.map +0 -1
- package/dist/cli/simple-commands/analysis.js +0 -473
- package/dist/cli/simple-commands/analysis.js.map +0 -1
- package/dist/cli/simple-commands/automation-executor.d.ts +0 -188
- package/dist/cli/simple-commands/automation-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/automation-executor.js +0 -1383
- package/dist/cli/simple-commands/automation-executor.js.map +0 -1
- package/dist/cli/simple-commands/automation.d.ts +0 -2
- package/dist/cli/simple-commands/automation.d.ts.map +0 -1
- package/dist/cli/simple-commands/automation.js +0 -531
- package/dist/cli/simple-commands/automation.js.map +0 -1
- package/dist/cli/simple-commands/batch-manager.d.ts +0 -2
- package/dist/cli/simple-commands/batch-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/batch-manager.js +0 -290
- package/dist/cli/simple-commands/batch-manager.js.map +0 -1
- package/dist/cli/simple-commands/claude-telemetry.d.ts +0 -14
- package/dist/cli/simple-commands/claude-telemetry.d.ts.map +0 -1
- package/dist/cli/simple-commands/claude-telemetry.js +0 -263
- package/dist/cli/simple-commands/claude-telemetry.js.map +0 -1
- package/dist/cli/simple-commands/config.d.ts +0 -6
- package/dist/cli/simple-commands/config.d.ts.map +0 -1
- package/dist/cli/simple-commands/config.js +0 -116
- package/dist/cli/simple-commands/config.js.map +0 -1
- package/dist/cli/simple-commands/coordination.d.ts +0 -2
- package/dist/cli/simple-commands/coordination.d.ts.map +0 -1
- package/dist/cli/simple-commands/coordination.js +0 -249
- package/dist/cli/simple-commands/coordination.js.map +0 -1
- package/dist/cli/simple-commands/env-template.d.ts +0 -42
- package/dist/cli/simple-commands/env-template.d.ts.map +0 -1
- package/dist/cli/simple-commands/env-template.js +0 -183
- package/dist/cli/simple-commands/env-template.js.map +0 -1
- package/dist/cli/simple-commands/fix-hook-variables.d.ts +0 -16
- package/dist/cli/simple-commands/fix-hook-variables.d.ts.map +0 -1
- package/dist/cli/simple-commands/fix-hook-variables.js +0 -320
- package/dist/cli/simple-commands/fix-hook-variables.js.map +0 -1
- package/dist/cli/simple-commands/github/init.d.ts +0 -6
- package/dist/cli/simple-commands/github/init.d.ts.map +0 -1
- package/dist/cli/simple-commands/github/init.js +0 -506
- package/dist/cli/simple-commands/github/init.js.map +0 -1
- package/dist/cli/simple-commands/github.d.ts +0 -3
- package/dist/cli/simple-commands/github.d.ts.map +0 -1
- package/dist/cli/simple-commands/github.js +0 -356
- package/dist/cli/simple-commands/github.js.map +0 -1
- package/dist/cli/simple-commands/goal.d.ts +0 -3
- package/dist/cli/simple-commands/goal.d.ts.map +0 -1
- package/dist/cli/simple-commands/goal.js +0 -136
- package/dist/cli/simple-commands/goal.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts +0 -68
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js +0 -264
- package/dist/cli/simple-commands/hive-mind/auto-save-middleware.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/communication.d.ts +0 -176
- package/dist/cli/simple-commands/hive-mind/communication.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/communication.js +0 -611
- package/dist/cli/simple-commands/hive-mind/communication.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/core.d.ts +0 -306
- package/dist/cli/simple-commands/hive-mind/core.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/core.js +0 -839
- package/dist/cli/simple-commands/hive-mind/core.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts +0 -32
- package/dist/cli/simple-commands/hive-mind/db-optimizer.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js +0 -702
- package/dist/cli/simple-commands/hive-mind/db-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts +0 -270
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js +0 -1211
- package/dist/cli/simple-commands/hive-mind/mcp-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/memory.d.ts +0 -334
- package/dist/cli/simple-commands/hive-mind/memory.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/memory.js +0 -1068
- package/dist/cli/simple-commands/hive-mind/memory.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js +0 -274
- package/dist/cli/simple-commands/hive-mind/metrics-reader.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts +0 -256
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js +0 -520
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts +0 -235
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +0 -697
- package/dist/cli/simple-commands/hive-mind/queen.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts +0 -140
- package/dist/cli/simple-commands/hive-mind/session-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/session-manager.js +0 -1000
- package/dist/cli/simple-commands/hive-mind/session-manager.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts +0 -6
- package/dist/cli/simple-commands/hive-mind-optimize.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind-optimize.js +0 -317
- package/dist/cli/simple-commands/hive-mind-optimize.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind.d.ts +0 -22
- package/dist/cli/simple-commands/hive-mind.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind.js +0 -2722
- package/dist/cli/simple-commands/hive-mind.js.map +0 -1
- package/dist/cli/simple-commands/hook-safety.d.ts +0 -177
- package/dist/cli/simple-commands/hook-safety.d.ts.map +0 -1
- package/dist/cli/simple-commands/hook-safety.js +0 -590
- package/dist/cli/simple-commands/hook-safety.js.map +0 -1
- package/dist/cli/simple-commands/hooks.d.ts +0 -3
- package/dist/cli/simple-commands/hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/hooks.js +0 -1298
- package/dist/cli/simple-commands/hooks.js.map +0 -1
- package/dist/cli/simple-commands/init/agent-copier.d.ts +0 -65
- package/dist/cli/simple-commands/init/agent-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/agent-copier.js +0 -320
- package/dist/cli/simple-commands/init/agent-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/batch-init.d.ts +0 -137
- package/dist/cli/simple-commands/init/batch-init.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/batch-init.js +0 -558
- package/dist/cli/simple-commands/init/batch-init.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js +0 -433
- package/dist/cli/simple-commands/init/claude-commands/claude-flow-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +0 -871
- package/dist/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +0 -332
- package/dist/cli/simple-commands/init/claude-commands/optimized-slash-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts +0 -3
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +0 -488
- package/dist/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts +0 -2
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js +0 -51
- package/dist/cli/simple-commands/init/claude-commands/slash-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts +0 -3
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js +0 -288
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.js.map +0 -1
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts +0 -29
- package/dist/cli/simple-commands/init/copy-revised-templates.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/copy-revised-templates.js +0 -166
- package/dist/cli/simple-commands/init/copy-revised-templates.js.map +0 -1
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts +0 -2
- package/dist/cli/simple-commands/init/executable-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/executable-wrapper.js +0 -116
- package/dist/cli/simple-commands/init/executable-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts +0 -23
- package/dist/cli/simple-commands/init/gitignore-updater.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/gitignore-updater.js +0 -128
- package/dist/cli/simple-commands/init/gitignore-updater.js.map +0 -1
- package/dist/cli/simple-commands/init/help.d.ts +0 -2
- package/dist/cli/simple-commands/init/help.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/help.js +0 -131
- package/dist/cli/simple-commands/init/help.js.map +0 -1
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts +0 -152
- package/dist/cli/simple-commands/init/hive-mind-init.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/hive-mind-init.js +0 -699
- package/dist/cli/simple-commands/init/hive-mind-init.js.map +0 -1
- package/dist/cli/simple-commands/init/index.d.ts +0 -2
- package/dist/cli/simple-commands/init/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/index.js +0 -1784
- package/dist/cli/simple-commands/init/index.js.map +0 -1
- package/dist/cli/simple-commands/init/performance-monitor.d.ts +0 -73
- package/dist/cli/simple-commands/init/performance-monitor.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/performance-monitor.js +0 -277
- package/dist/cli/simple-commands/init/performance-monitor.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts +0 -95
- package/dist/cli/simple-commands/init/rollback/backup-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/backup-manager.js +0 -486
- package/dist/cli/simple-commands/init/rollback/backup-manager.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/index.d.ts +0 -114
- package/dist/cli/simple-commands/init/rollback/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/index.js +0 -353
- package/dist/cli/simple-commands/init/rollback/index.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts +0 -161
- package/dist/cli/simple-commands/init/rollback/recovery-manager.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js +0 -686
- package/dist/cli/simple-commands/init/rollback/recovery-manager.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts +0 -112
- package/dist/cli/simple-commands/init/rollback/rollback-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js +0 -480
- package/dist/cli/simple-commands/init/rollback/rollback-executor.js.map +0 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts +0 -121
- package/dist/cli/simple-commands/init/rollback/state-tracker.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/rollback/state-tracker.js +0 -432
- package/dist/cli/simple-commands/init/rollback/state-tracker.js.map +0 -1
- package/dist/cli/simple-commands/init/skills-copier.d.ts +0 -41
- package/dist/cli/simple-commands/init/skills-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/skills-copier.js +0 -192
- package/dist/cli/simple-commands/init/skills-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/roo-readme.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roo-readme.js +0 -61
- package/dist/cli/simple-commands/init/sparc/roo-readme.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/roomodes-config.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js +0 -80
- package/dist/cli/simple-commands/init/sparc/roomodes-config.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc/workflows.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc/workflows.js +0 -36
- package/dist/cli/simple-commands/init/sparc/workflows.js.map +0 -1
- package/dist/cli/simple-commands/init/sparc-structure.d.ts +0 -2
- package/dist/cli/simple-commands/init/sparc-structure.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/sparc-structure.js +0 -63
- package/dist/cli/simple-commands/init/sparc-structure.js.map +0 -1
- package/dist/cli/simple-commands/init/template-copier.d.ts +0 -27
- package/dist/cli/simple-commands/init/template-copier.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/template-copier.js +0 -538
- package/dist/cli/simple-commands/init/template-copier.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts +0 -6
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.js +0 -1097
- package/dist/cli/simple-commands/init/templates/claude-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts +0 -4
- package/dist/cli/simple-commands/init/templates/coordination-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/coordination-md.js +0 -338
- package/dist/cli/simple-commands/init/templates/coordination-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts +0 -21
- package/dist/cli/simple-commands/init/templates/enhanced-templates.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js +0 -2304
- package/dist/cli/simple-commands/init/templates/enhanced-templates.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts +0 -4
- package/dist/cli/simple-commands/init/templates/memory-bank-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js +0 -257
- package/dist/cli/simple-commands/init/templates/memory-bank-md.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts +0 -3
- package/dist/cli/simple-commands/init/templates/readme-files.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/readme-files.js +0 -71
- package/dist/cli/simple-commands/init/templates/readme-files.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts +0 -30
- package/dist/cli/simple-commands/init/templates/sparc-modes.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/sparc-modes.js +0 -1375
- package/dist/cli/simple-commands/init/templates/sparc-modes.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts +0 -3
- package/dist/cli/simple-commands/init/templates/verification-claude-md.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js +0 -432
- package/dist/cli/simple-commands/init/templates/verification-claude-md.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts +0 -63
- package/dist/cli/simple-commands/init/validation/config-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/config-validator.js +0 -308
- package/dist/cli/simple-commands/init/validation/config-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts +0 -117
- package/dist/cli/simple-commands/init/validation/health-checker.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/health-checker.js +0 -539
- package/dist/cli/simple-commands/init/validation/health-checker.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/index.d.ts +0 -55
- package/dist/cli/simple-commands/init/validation/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/index.js +0 -347
- package/dist/cli/simple-commands/init/validation/index.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts +0 -76
- package/dist/cli/simple-commands/init/validation/mode-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/mode-validator.js +0 -343
- package/dist/cli/simple-commands/init/validation/mode-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts +0 -62
- package/dist/cli/simple-commands/init/validation/post-init-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/post-init-validator.js +0 -349
- package/dist/cli/simple-commands/init/validation/post-init-validator.js.map +0 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts +0 -86
- package/dist/cli/simple-commands/init/validation/pre-init-validator.d.ts.map +0 -1
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js +0 -260
- package/dist/cli/simple-commands/init/validation/pre-init-validator.js.map +0 -1
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts +0 -34
- package/dist/cli/simple-commands/inject-memory-protocol.d.ts.map +0 -1
- package/dist/cli/simple-commands/inject-memory-protocol.js +0 -229
- package/dist/cli/simple-commands/inject-memory-protocol.js.map +0 -1
- package/dist/cli/simple-commands/mcp.d.ts +0 -2
- package/dist/cli/simple-commands/mcp.d.ts.map +0 -1
- package/dist/cli/simple-commands/mcp.js +0 -369
- package/dist/cli/simple-commands/mcp.js.map +0 -1
- package/dist/cli/simple-commands/memory-consolidation.d.ts +0 -73
- package/dist/cli/simple-commands/memory-consolidation.d.ts.map +0 -1
- package/dist/cli/simple-commands/memory-consolidation.js +0 -537
- package/dist/cli/simple-commands/memory-consolidation.js.map +0 -1
- package/dist/cli/simple-commands/memory.d.ts +0 -2
- package/dist/cli/simple-commands/memory.d.ts.map +0 -1
- package/dist/cli/simple-commands/memory.js +0 -778
- package/dist/cli/simple-commands/memory.js.map +0 -1
- package/dist/cli/simple-commands/migrate-hooks.d.ts +0 -10
- package/dist/cli/simple-commands/migrate-hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/migrate-hooks.js +0 -57
- package/dist/cli/simple-commands/migrate-hooks.js.map +0 -1
- package/dist/cli/simple-commands/monitor.d.ts +0 -3
- package/dist/cli/simple-commands/monitor.d.ts.map +0 -1
- package/dist/cli/simple-commands/monitor.js +0 -366
- package/dist/cli/simple-commands/monitor.js.map +0 -1
- package/dist/cli/simple-commands/neural.d.ts +0 -3
- package/dist/cli/simple-commands/neural.d.ts.map +0 -1
- package/dist/cli/simple-commands/neural.js +0 -137
- package/dist/cli/simple-commands/neural.js.map +0 -1
- package/dist/cli/simple-commands/pair.d.ts +0 -3
- package/dist/cli/simple-commands/pair.d.ts.map +0 -1
- package/dist/cli/simple-commands/pair.js +0 -735
- package/dist/cli/simple-commands/pair.js.map +0 -1
- package/dist/cli/simple-commands/performance-hooks.d.ts +0 -20
- package/dist/cli/simple-commands/performance-hooks.d.ts.map +0 -1
- package/dist/cli/simple-commands/performance-hooks.js +0 -127
- package/dist/cli/simple-commands/performance-hooks.js.map +0 -1
- package/dist/cli/simple-commands/performance-metrics.d.ts +0 -153
- package/dist/cli/simple-commands/performance-metrics.d.ts.map +0 -1
- package/dist/cli/simple-commands/performance-metrics.js +0 -759
- package/dist/cli/simple-commands/performance-metrics.js.map +0 -1
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts +0 -55
- package/dist/cli/simple-commands/process-ui-enhanced.d.ts.map +0 -1
- package/dist/cli/simple-commands/process-ui-enhanced.js +0 -680
- package/dist/cli/simple-commands/process-ui-enhanced.js.map +0 -1
- package/dist/cli/simple-commands/proxy.d.ts +0 -5
- package/dist/cli/simple-commands/proxy.d.ts.map +0 -1
- package/dist/cli/simple-commands/proxy.js +0 -346
- package/dist/cli/simple-commands/proxy.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/architect.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/architect.js +0 -126
- package/dist/cli/simple-commands/sparc-modes/architect.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/ask.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/ask.js +0 -127
- package/dist/cli/simple-commands/sparc-modes/ask.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/code.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/code.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/code.js +0 -149
- package/dist/cli/simple-commands/sparc-modes/code.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/debug.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/debug.js +0 -113
- package/dist/cli/simple-commands/sparc-modes/debug.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/devops.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/devops.js +0 -138
- package/dist/cli/simple-commands/sparc-modes/devops.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/docs-writer.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/docs-writer.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/generic.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/generic.js +0 -35
- package/dist/cli/simple-commands/sparc-modes/generic.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/index.d.ts +0 -17
- package/dist/cli/simple-commands/sparc-modes/index.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/index.js +0 -196
- package/dist/cli/simple-commands/sparc-modes/index.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/integration.js +0 -56
- package/dist/cli/simple-commands/sparc-modes/integration.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/mcp.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/mcp.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/mcp.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/monitoring.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/monitoring.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/monitoring.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/optimization.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/optimization.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/optimization.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/security-review.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/security-review.js +0 -131
- package/dist/cli/simple-commands/sparc-modes/security-review.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js +0 -168
- package/dist/cli/simple-commands/sparc-modes/sparc-orchestrator.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js +0 -39
- package/dist/cli/simple-commands/sparc-modes/spec-pseudocode.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js +0 -150
- package/dist/cli/simple-commands/sparc-modes/supabase-admin.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts +0 -81
- package/dist/cli/simple-commands/sparc-modes/swarm.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/swarm.js +0 -428
- package/dist/cli/simple-commands/sparc-modes/swarm.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/tdd.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tdd.js +0 -113
- package/dist/cli/simple-commands/sparc-modes/tdd.js.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts +0 -2
- package/dist/cli/simple-commands/sparc-modes/tutorial.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc-modes/tutorial.js +0 -278
- package/dist/cli/simple-commands/sparc-modes/tutorial.js.map +0 -1
- package/dist/cli/simple-commands/sparc.d.ts +0 -2
- package/dist/cli/simple-commands/sparc.d.ts.map +0 -1
- package/dist/cli/simple-commands/sparc.js +0 -477
- package/dist/cli/simple-commands/sparc.js.map +0 -1
- package/dist/cli/simple-commands/start-ui.d.ts +0 -2
- package/dist/cli/simple-commands/start-ui.d.ts.map +0 -1
- package/dist/cli/simple-commands/start-ui.js +0 -135
- package/dist/cli/simple-commands/start-ui.js.map +0 -1
- package/dist/cli/simple-commands/start-wrapper.d.ts +0 -2
- package/dist/cli/simple-commands/start-wrapper.d.ts.map +0 -1
- package/dist/cli/simple-commands/start-wrapper.js +0 -264
- package/dist/cli/simple-commands/start-wrapper.js.map +0 -1
- package/dist/cli/simple-commands/start.d.ts +0 -2
- package/dist/cli/simple-commands/start.d.ts.map +0 -1
- package/dist/cli/simple-commands/start.js +0 -3
- package/dist/cli/simple-commands/start.js.map +0 -1
- package/dist/cli/simple-commands/status.d.ts +0 -2
- package/dist/cli/simple-commands/status.d.ts.map +0 -1
- package/dist/cli/simple-commands/status.js +0 -292
- package/dist/cli/simple-commands/status.js.map +0 -1
- package/dist/cli/simple-commands/stream-chain.d.ts +0 -7
- package/dist/cli/simple-commands/stream-chain.d.ts.map +0 -1
- package/dist/cli/simple-commands/stream-chain.js +0 -433
- package/dist/cli/simple-commands/stream-chain.js.map +0 -1
- package/dist/cli/simple-commands/stream-processor.d.ts +0 -32
- package/dist/cli/simple-commands/stream-processor.d.ts.map +0 -1
- package/dist/cli/simple-commands/stream-processor.js +0 -318
- package/dist/cli/simple-commands/stream-processor.js.map +0 -1
- package/dist/cli/simple-commands/swarm-executor.d.ts +0 -68
- package/dist/cli/simple-commands/swarm-executor.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-executor.js +0 -218
- package/dist/cli/simple-commands/swarm-executor.js.map +0 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts +0 -69
- package/dist/cli/simple-commands/swarm-metrics-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-metrics-integration.js +0 -294
- package/dist/cli/simple-commands/swarm-metrics-integration.js.map +0 -1
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts +0 -68
- package/dist/cli/simple-commands/swarm-webui-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm-webui-integration.js +0 -265
- package/dist/cli/simple-commands/swarm-webui-integration.js.map +0 -1
- package/dist/cli/simple-commands/swarm.d.ts +0 -2
- package/dist/cli/simple-commands/swarm.d.ts.map +0 -1
- package/dist/cli/simple-commands/swarm.js +0 -2104
- package/dist/cli/simple-commands/swarm.js.map +0 -1
- package/dist/cli/simple-commands/task.d.ts +0 -2
- package/dist/cli/simple-commands/task.d.ts.map +0 -1
- package/dist/cli/simple-commands/task.js +0 -250
- package/dist/cli/simple-commands/task.js.map +0 -1
- package/dist/cli/simple-commands/token-tracker.d.ts +0 -73
- package/dist/cli/simple-commands/token-tracker.d.ts.map +0 -1
- package/dist/cli/simple-commands/token-tracker.js +0 -319
- package/dist/cli/simple-commands/token-tracker.js.map +0 -1
- package/dist/cli/simple-commands/training-pipeline.d.ts +0 -166
- package/dist/cli/simple-commands/training-pipeline.d.ts.map +0 -1
- package/dist/cli/simple-commands/training-pipeline.js +0 -760
- package/dist/cli/simple-commands/training-pipeline.js.map +0 -1
- package/dist/cli/simple-commands/training.d.ts +0 -2
- package/dist/cli/simple-commands/training.d.ts.map +0 -1
- package/dist/cli/simple-commands/training.js +0 -240
- package/dist/cli/simple-commands/training.js.map +0 -1
- package/dist/cli/simple-commands/verification-training-integration.d.ts +0 -181
- package/dist/cli/simple-commands/verification-training-integration.d.ts.map +0 -1
- package/dist/cli/simple-commands/verification-training-integration.js +0 -561
- package/dist/cli/simple-commands/verification-training-integration.js.map +0 -1
- package/dist/cli/simple-commands/verification.d.ts +0 -10
- package/dist/cli/simple-commands/verification.d.ts.map +0 -1
- package/dist/cli/simple-commands/verification.js +0 -476
- package/dist/cli/simple-commands/verification.js.map +0 -1
- package/dist/cli/simple-commands/web-server.d.ts +0 -152
- package/dist/cli/simple-commands/web-server.d.ts.map +0 -1
- package/dist/cli/simple-commands/web-server.js +0 -816
- package/dist/cli/simple-commands/web-server.js.map +0 -1
- package/dist/cli/utils/interactive-detector.d.ts +0 -25
- package/dist/cli/utils/interactive-detector.d.ts.map +0 -1
- package/dist/cli/utils/interactive-detector.js +0 -129
- package/dist/cli/utils/interactive-detector.js.map +0 -1
- package/dist/cli/utils/safe-interactive.d.ts +0 -30
- package/dist/cli/utils/safe-interactive.d.ts.map +0 -1
- package/dist/cli/utils/safe-interactive.js +0 -134
- package/dist/cli/utils/safe-interactive.js.map +0 -1
- package/dist/cli/utils.d.ts +0 -75
- package/dist/cli/utils.d.ts.map +0 -1
- package/dist/cli/utils.js +0 -567
- package/dist/cli/utils.js.map +0 -1
- package/dist/config/config-manager.d.ts +0 -212
- package/dist/config/config-manager.d.ts.map +0 -1
- package/dist/config/config-manager.js +0 -550
- package/dist/config/config-manager.js.map +0 -1
- package/dist/constants/agent-types.d.ts +0 -57
- package/dist/constants/agent-types.d.ts.map +0 -1
- package/dist/constants/agent-types.js +0 -57
- package/dist/constants/agent-types.js.map +0 -1
- package/dist/coordination/advanced-scheduler.d.ts +0 -121
- package/dist/coordination/advanced-scheduler.d.ts.map +0 -1
- package/dist/coordination/advanced-scheduler.js +0 -382
- package/dist/coordination/advanced-scheduler.js.map +0 -1
- package/dist/coordination/background-executor.d.ts +0 -69
- package/dist/coordination/background-executor.d.ts.map +0 -1
- package/dist/coordination/background-executor.js +0 -363
- package/dist/coordination/background-executor.js.map +0 -1
- package/dist/coordination/circuit-breaker.d.ts +0 -124
- package/dist/coordination/circuit-breaker.d.ts.map +0 -1
- package/dist/coordination/circuit-breaker.js +0 -301
- package/dist/coordination/circuit-breaker.js.map +0 -1
- package/dist/coordination/conflict-resolution.d.ts +0 -133
- package/dist/coordination/conflict-resolution.d.ts.map +0 -1
- package/dist/coordination/conflict-resolution.js +0 -360
- package/dist/coordination/conflict-resolution.js.map +0 -1
- package/dist/coordination/dependency-graph.d.ts +0 -78
- package/dist/coordination/dependency-graph.d.ts.map +0 -1
- package/dist/coordination/dependency-graph.js +0 -387
- package/dist/coordination/dependency-graph.js.map +0 -1
- package/dist/coordination/manager.d.ts +0 -66
- package/dist/coordination/manager.d.ts.map +0 -1
- package/dist/coordination/manager.js +0 -354
- package/dist/coordination/manager.js.map +0 -1
- package/dist/coordination/messaging.d.ts +0 -37
- package/dist/coordination/messaging.d.ts.map +0 -1
- package/dist/coordination/messaging.js +0 -219
- package/dist/coordination/messaging.js.map +0 -1
- package/dist/coordination/metrics.d.ts +0 -153
- package/dist/coordination/metrics.d.ts.map +0 -1
- package/dist/coordination/metrics.js +0 -436
- package/dist/coordination/metrics.js.map +0 -1
- package/dist/coordination/resources.d.ts +0 -36
- package/dist/coordination/resources.d.ts.map +0 -1
- package/dist/coordination/resources.js +0 -254
- package/dist/coordination/resources.js.map +0 -1
- package/dist/coordination/scheduler.d.ts +0 -48
- package/dist/coordination/scheduler.d.ts.map +0 -1
- package/dist/coordination/scheduler.js +0 -308
- package/dist/coordination/scheduler.js.map +0 -1
- package/dist/coordination/swarm-coordinator.d.ts +0 -116
- package/dist/coordination/swarm-coordinator.d.ts.map +0 -1
- package/dist/coordination/swarm-coordinator.js +0 -563
- package/dist/coordination/swarm-coordinator.js.map +0 -1
- package/dist/coordination/swarm-monitor.d.ts +0 -101
- package/dist/coordination/swarm-monitor.d.ts.map +0 -1
- package/dist/coordination/swarm-monitor.js +0 -340
- package/dist/coordination/swarm-monitor.js.map +0 -1
- package/dist/coordination/work-stealing.d.ts +0 -44
- package/dist/coordination/work-stealing.d.ts.map +0 -1
- package/dist/coordination/work-stealing.js +0 -158
- package/dist/coordination/work-stealing.js.map +0 -1
- package/dist/core/config.d.ts +0 -243
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -1125
- package/dist/core/config.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -63
- package/dist/core/event-bus.d.ts.map +0 -1
- package/dist/core/event-bus.js +0 -153
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/json-persistence.d.ts +0 -55
- package/dist/core/json-persistence.d.ts.map +0 -1
- package/dist/core/json-persistence.js +0 -111
- package/dist/core/json-persistence.js.map +0 -1
- package/dist/core/logger.d.ts +0 -62
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js +0 -252
- package/dist/core/logger.js.map +0 -1
- package/dist/core/orchestrator-fixed.d.ts +0 -81
- package/dist/core/orchestrator-fixed.d.ts.map +0 -1
- package/dist/core/orchestrator-fixed.js +0 -213
- package/dist/core/orchestrator-fixed.js.map +0 -1
- package/dist/core/orchestrator.d.ts +0 -141
- package/dist/core/orchestrator.d.ts.map +0 -1
- package/dist/core/orchestrator.js +0 -1166
- package/dist/core/orchestrator.js.map +0 -1
- package/dist/core/version.d.ts +0 -10
- package/dist/core/version.d.ts.map +0 -1
- package/dist/core/version.js +0 -36
- package/dist/core/version.js.map +0 -1
- package/dist/enterprise/analytics-manager.d.ts +0 -489
- package/dist/enterprise/analytics-manager.d.ts.map +0 -1
- package/dist/enterprise/analytics-manager.js +0 -956
- package/dist/enterprise/analytics-manager.js.map +0 -1
- package/dist/enterprise/audit-manager.d.ts +0 -459
- package/dist/enterprise/audit-manager.d.ts.map +0 -1
- package/dist/enterprise/audit-manager.js +0 -1014
- package/dist/enterprise/audit-manager.js.map +0 -1
- package/dist/enterprise/cloud-manager.d.ts +0 -435
- package/dist/enterprise/cloud-manager.d.ts.map +0 -1
- package/dist/enterprise/cloud-manager.js +0 -789
- package/dist/enterprise/cloud-manager.js.map +0 -1
- package/dist/enterprise/deployment-manager.d.ts +0 -328
- package/dist/enterprise/deployment-manager.d.ts.map +0 -1
- package/dist/enterprise/deployment-manager.js +0 -830
- package/dist/enterprise/deployment-manager.js.map +0 -1
- package/dist/enterprise/project-manager.d.ts +0 -228
- package/dist/enterprise/project-manager.d.ts.map +0 -1
- package/dist/enterprise/project-manager.js +0 -537
- package/dist/enterprise/project-manager.js.map +0 -1
- package/dist/enterprise/security-manager.d.ts +0 -422
- package/dist/enterprise/security-manager.d.ts.map +0 -1
- package/dist/enterprise/security-manager.js +0 -910
- package/dist/enterprise/security-manager.js.map +0 -1
- package/dist/execution/agent-executor.d.ts +0 -80
- package/dist/execution/agent-executor.d.ts.map +0 -1
- package/dist/execution/agent-executor.js +0 -220
- package/dist/execution/agent-executor.js.map +0 -1
- package/dist/execution/provider-manager.d.ts +0 -65
- package/dist/execution/provider-manager.d.ts.map +0 -1
- package/dist/execution/provider-manager.js +0 -144
- package/dist/execution/provider-manager.js.map +0 -1
- package/dist/hive-mind/core/Agent.d.ts +0 -137
- package/dist/hive-mind/core/Agent.d.ts.map +0 -1
- package/dist/hive-mind/core/Agent.js +0 -567
- package/dist/hive-mind/core/Agent.js.map +0 -1
- package/dist/hive-mind/core/Communication.d.ts +0 -116
- package/dist/hive-mind/core/Communication.d.ts.map +0 -1
- package/dist/hive-mind/core/Communication.js +0 -407
- package/dist/hive-mind/core/Communication.js.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.d.ts +0 -99
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.js +0 -648
- package/dist/hive-mind/core/DatabaseManager.js.map +0 -1
- package/dist/hive-mind/core/HiveMind.d.ts +0 -90
- package/dist/hive-mind/core/HiveMind.d.ts.map +0 -1
- package/dist/hive-mind/core/HiveMind.js +0 -455
- package/dist/hive-mind/core/HiveMind.js.map +0 -1
- package/dist/hive-mind/core/Memory.d.ts +0 -235
- package/dist/hive-mind/core/Memory.d.ts.map +0 -1
- package/dist/hive-mind/core/Memory.js +0 -1192
- package/dist/hive-mind/core/Memory.js.map +0 -1
- package/dist/hive-mind/core/Queen.d.ts +0 -115
- package/dist/hive-mind/core/Queen.d.ts.map +0 -1
- package/dist/hive-mind/core/Queen.js +0 -649
- package/dist/hive-mind/core/Queen.js.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.d.ts +0 -117
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.js +0 -478
- package/dist/hive-mind/integration/ConsensusEngine.js.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts +0 -172
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.js +0 -217
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +0 -172
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.js +0 -748
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +0 -1
- package/dist/hive-mind/types.d.ts +0 -314
- package/dist/hive-mind/types.d.ts.map +0 -1
- package/dist/hive-mind/types.js +0 -7
- package/dist/hive-mind/types.js.map +0 -1
- package/dist/mcp/auth.d.ts +0 -80
- package/dist/mcp/auth.d.ts.map +0 -1
- package/dist/mcp/auth.js +0 -350
- package/dist/mcp/auth.js.map +0 -1
- package/dist/mcp/claude-flow-tools.d.ts +0 -13
- package/dist/mcp/claude-flow-tools.d.ts.map +0 -1
- package/dist/mcp/claude-flow-tools.js +0 -1398
- package/dist/mcp/claude-flow-tools.js.map +0 -1
- package/dist/mcp/load-balancer.d.ts +0 -88
- package/dist/mcp/load-balancer.d.ts.map +0 -1
- package/dist/mcp/load-balancer.js +0 -393
- package/dist/mcp/load-balancer.js.map +0 -1
- package/dist/mcp/router.d.ts +0 -54
- package/dist/mcp/router.d.ts.map +0 -1
- package/dist/mcp/router.js +0 -204
- package/dist/mcp/router.js.map +0 -1
- package/dist/mcp/ruv-swarm-tools.d.ts +0 -58
- package/dist/mcp/ruv-swarm-tools.d.ts.map +0 -1
- package/dist/mcp/ruv-swarm-tools.js +0 -568
- package/dist/mcp/ruv-swarm-tools.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -75
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -538
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/session-manager.d.ts +0 -60
- package/dist/mcp/session-manager.d.ts.map +0 -1
- package/dist/mcp/session-manager.js +0 -323
- package/dist/mcp/session-manager.js.map +0 -1
- package/dist/mcp/swarm-tools.d.ts +0 -87
- package/dist/mcp/swarm-tools.d.ts.map +0 -1
- package/dist/mcp/swarm-tools.js +0 -731
- package/dist/mcp/swarm-tools.js.map +0 -1
- package/dist/mcp/tools.d.ts +0 -145
- package/dist/mcp/tools.d.ts.map +0 -1
- package/dist/mcp/tools.js +0 -434
- package/dist/mcp/tools.js.map +0 -1
- package/dist/mcp/transports/base.d.ts +0 -22
- package/dist/mcp/transports/base.d.ts.map +0 -1
- package/dist/mcp/transports/base.js +0 -5
- package/dist/mcp/transports/base.js.map +0 -1
- package/dist/mcp/transports/http.d.ts +0 -48
- package/dist/mcp/transports/http.d.ts.map +0 -1
- package/dist/mcp/transports/http.js +0 -400
- package/dist/mcp/transports/http.js.map +0 -1
- package/dist/mcp/transports/stdio.d.ts +0 -37
- package/dist/mcp/transports/stdio.d.ts.map +0 -1
- package/dist/mcp/transports/stdio.js +0 -206
- package/dist/mcp/transports/stdio.js.map +0 -1
- package/dist/memory/advanced-serializer.d.ts +0 -159
- package/dist/memory/advanced-serializer.d.ts.map +0 -1
- package/dist/memory/advanced-serializer.js +0 -564
- package/dist/memory/advanced-serializer.js.map +0 -1
- package/dist/memory/backends/base.d.ts +0 -21
- package/dist/memory/backends/base.d.ts.map +0 -1
- package/dist/memory/backends/base.js +0 -5
- package/dist/memory/backends/base.js.map +0 -1
- package/dist/memory/backends/markdown.d.ts +0 -35
- package/dist/memory/backends/markdown.d.ts.map +0 -1
- package/dist/memory/backends/markdown.js +0 -223
- package/dist/memory/backends/markdown.js.map +0 -1
- package/dist/memory/backends/sqlite.d.ts +0 -33
- package/dist/memory/backends/sqlite.d.ts.map +0 -1
- package/dist/memory/backends/sqlite.js +0 -291
- package/dist/memory/backends/sqlite.js.map +0 -1
- package/dist/memory/cache.d.ts +0 -65
- package/dist/memory/cache.d.ts.map +0 -1
- package/dist/memory/cache.js +0 -188
- package/dist/memory/cache.js.map +0 -1
- package/dist/memory/distributed-memory.d.ts +0 -188
- package/dist/memory/distributed-memory.d.ts.map +0 -1
- package/dist/memory/distributed-memory.js +0 -710
- package/dist/memory/distributed-memory.js.map +0 -1
- package/dist/memory/enhanced-session-serializer.d.ts +0 -115
- package/dist/memory/enhanced-session-serializer.d.ts.map +0 -1
- package/dist/memory/enhanced-session-serializer.js +0 -478
- package/dist/memory/enhanced-session-serializer.js.map +0 -1
- package/dist/memory/fallback-store.d.ts +0 -28
- package/dist/memory/fallback-store.d.ts.map +0 -1
- package/dist/memory/fallback-store.js +0 -101
- package/dist/memory/fallback-store.js.map +0 -1
- package/dist/memory/in-memory-store.d.ts +0 -37
- package/dist/memory/in-memory-store.d.ts.map +0 -1
- package/dist/memory/in-memory-store.js +0 -174
- package/dist/memory/in-memory-store.js.map +0 -1
- package/dist/memory/indexer.d.ts +0 -52
- package/dist/memory/indexer.d.ts.map +0 -1
- package/dist/memory/indexer.js +0 -191
- package/dist/memory/indexer.js.map +0 -1
- package/dist/memory/manager.d.ts +0 -58
- package/dist/memory/manager.d.ts.map +0 -1
- package/dist/memory/manager.js +0 -423
- package/dist/memory/manager.js.map +0 -1
- package/dist/memory/sqlite-store.d.ts +0 -34
- package/dist/memory/sqlite-store.d.ts.map +0 -1
- package/dist/memory/sqlite-store.js +0 -268
- package/dist/memory/sqlite-store.js.map +0 -1
- package/dist/memory/sqlite-wrapper.d.ts +0 -38
- package/dist/memory/sqlite-wrapper.d.ts.map +0 -1
- package/dist/memory/sqlite-wrapper.js +0 -152
- package/dist/memory/sqlite-wrapper.js.map +0 -1
- package/dist/memory/swarm-memory.d.ts +0 -91
- package/dist/memory/swarm-memory.d.ts.map +0 -1
- package/dist/memory/swarm-memory.js +0 -454
- package/dist/memory/swarm-memory.js.map +0 -1
- package/dist/memory/unified-memory-manager.d.ts +0 -116
- package/dist/memory/unified-memory-manager.d.ts.map +0 -1
- package/dist/memory/unified-memory-manager.js +0 -397
- package/dist/memory/unified-memory-manager.js.map +0 -1
- package/dist/migration/logger.d.ts +0 -26
- package/dist/migration/logger.d.ts.map +0 -1
- package/dist/migration/logger.js +0 -145
- package/dist/migration/logger.js.map +0 -1
- package/dist/migration/migration-analyzer.d.ts +0 -18
- package/dist/migration/migration-analyzer.d.ts.map +0 -1
- package/dist/migration/migration-analyzer.js +0 -284
- package/dist/migration/migration-analyzer.js.map +0 -1
- package/dist/migration/migration-runner.d.ts +0 -26
- package/dist/migration/migration-runner.d.ts.map +0 -1
- package/dist/migration/migration-runner.js +0 -505
- package/dist/migration/migration-runner.js.map +0 -1
- package/dist/migration/migration-validator.d.ts +0 -17
- package/dist/migration/migration-validator.d.ts.map +0 -1
- package/dist/migration/migration-validator.js +0 -309
- package/dist/migration/migration-validator.js.map +0 -1
- package/dist/migration/progress-reporter.d.ts +0 -28
- package/dist/migration/progress-reporter.d.ts.map +0 -1
- package/dist/migration/progress-reporter.js +0 -163
- package/dist/migration/progress-reporter.js.map +0 -1
- package/dist/migration/rollback-manager.d.ts +0 -24
- package/dist/migration/rollback-manager.d.ts.map +0 -1
- package/dist/migration/rollback-manager.js +0 -351
- package/dist/migration/rollback-manager.js.map +0 -1
- package/dist/migration/types.d.ts +0 -103
- package/dist/migration/types.d.ts.map +0 -1
- package/dist/migration/types.js +0 -6
- package/dist/migration/types.js.map +0 -1
- package/dist/reasoningbank/reasoningbank-adapter.d.ts +0 -93
- package/dist/reasoningbank/reasoningbank-adapter.d.ts.map +0 -1
- package/dist/reasoningbank/reasoningbank-adapter.js +0 -365
- package/dist/reasoningbank/reasoningbank-adapter.js.map +0 -1
- package/dist/sdk/query-control.d.ts +0 -131
- package/dist/sdk/query-control.d.ts.map +0 -1
- package/dist/sdk/query-control.js +0 -363
- package/dist/sdk/query-control.js.map +0 -1
- package/dist/sdk/session-forking.d.ts +0 -109
- package/dist/sdk/session-forking.d.ts.map +0 -1
- package/dist/sdk/session-forking.js +0 -275
- package/dist/sdk/session-forking.js.map +0 -1
- package/dist/swarm/types.d.ts +0 -578
- package/dist/swarm/types.d.ts.map +0 -1
- package/dist/swarm/types.js +0 -54
- package/dist/swarm/types.js.map +0 -1
- package/dist/terminal/adapters/base.d.ts +0 -40
- package/dist/terminal/adapters/base.d.ts.map +0 -1
- package/dist/terminal/adapters/base.js +0 -5
- package/dist/terminal/adapters/base.js.map +0 -1
- package/dist/terminal/adapters/native.d.ts +0 -19
- package/dist/terminal/adapters/native.d.ts.map +0 -1
- package/dist/terminal/adapters/native.js +0 -414
- package/dist/terminal/adapters/native.js.map +0 -1
- package/dist/terminal/adapters/vscode.d.ts +0 -23
- package/dist/terminal/adapters/vscode.d.ts.map +0 -1
- package/dist/terminal/adapters/vscode.js +0 -267
- package/dist/terminal/adapters/vscode.js.map +0 -1
- package/dist/terminal/manager.d.ts +0 -59
- package/dist/terminal/manager.d.ts.map +0 -1
- package/dist/terminal/manager.js +0 -235
- package/dist/terminal/manager.js.map +0 -1
- package/dist/terminal/pool.d.ts +0 -32
- package/dist/terminal/pool.d.ts.map +0 -1
- package/dist/terminal/pool.js +0 -208
- package/dist/terminal/pool.js.map +0 -1
- package/dist/terminal/session.d.ts +0 -41
- package/dist/terminal/session.d.ts.map +0 -1
- package/dist/terminal/session.js +0 -210
- package/dist/terminal/session.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -14
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -29
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -121
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -194
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/formatters.d.ts +0 -15
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js +0 -75
- package/dist/utils/formatters.js.map +0 -1
- package/dist/utils/helpers.d.ts +0 -134
- package/dist/utils/helpers.d.ts.map +0 -1
- package/dist/utils/helpers.js +0 -444
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/key-redactor.d.ts +0 -46
- package/dist/utils/key-redactor.d.ts.map +0 -1
- package/dist/utils/key-redactor.js +0 -153
- package/dist/utils/key-redactor.js.map +0 -1
- package/dist/utils/metrics-reader.d.ts +0 -67
- package/dist/utils/metrics-reader.d.ts.map +0 -1
- package/dist/utils/metrics-reader.js +0 -201
- package/dist/utils/metrics-reader.js.map +0 -1
- package/dist/utils/npx-isolated-cache.d.ts +0 -17
- package/dist/utils/npx-isolated-cache.d.ts.map +0 -1
- package/dist/utils/npx-isolated-cache.js +0 -140
- package/dist/utils/npx-isolated-cache.js.map +0 -1
- package/dist/utils/project-root.d.ts +0 -35
- package/dist/utils/project-root.d.ts.map +0 -1
- package/dist/utils/project-root.js +0 -115
- package/dist/utils/project-root.js.map +0 -1
- package/dist/utils/type-guards.d.ts +0 -117
- package/dist/utils/type-guards.d.ts.map +0 -1
- package/dist/utils/type-guards.js +0 -166
- package/dist/utils/type-guards.js.map +0 -1
- package/dist/utils/types.d.ts +0 -568
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -37
- package/dist/utils/types.js.map +0 -1
package/dist/cli/repl.js
DELETED
|
@@ -1,949 +0,0 @@
|
|
|
1
|
-
import { promises as fs } from 'node:fs';
|
|
2
|
-
/**
|
|
3
|
-
* Enhanced Interactive REPL for Claude-Flow
|
|
4
|
-
*/
|
|
5
|
-
import inquirer from 'inquirer';
|
|
6
|
-
import chalk from 'chalk';
|
|
7
|
-
import Table from 'cli-table3';
|
|
8
|
-
import { generateId } from '../utils/helpers.js';
|
|
9
|
-
import { formatStatusIndicator, formatDuration, formatProgressBar } from './formatter.js';
|
|
10
|
-
class CommandHistory {
|
|
11
|
-
history = [];
|
|
12
|
-
maxSize = 1000;
|
|
13
|
-
historyFile;
|
|
14
|
-
constructor(historyFile) {
|
|
15
|
-
this.historyFile = historyFile || '.claude-flow-history';
|
|
16
|
-
this.loadHistory();
|
|
17
|
-
}
|
|
18
|
-
add(command) {
|
|
19
|
-
if (command.trim() && command !== this.history[this.history.length - 1]) {
|
|
20
|
-
this.history.push(command);
|
|
21
|
-
if (this.history.length > this.maxSize) {
|
|
22
|
-
this.history = this.history.slice(-this.maxSize);
|
|
23
|
-
}
|
|
24
|
-
this.saveHistory();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
get() {
|
|
28
|
-
return [...this.history];
|
|
29
|
-
}
|
|
30
|
-
search(query) {
|
|
31
|
-
return this.history.filter((cmd) => cmd.includes(query));
|
|
32
|
-
}
|
|
33
|
-
async loadHistory() {
|
|
34
|
-
try {
|
|
35
|
-
const content = await fs.readFile(this.historyFile, 'utf-8');
|
|
36
|
-
this.history = content.split('\n').filter((line) => line.trim());
|
|
37
|
-
}
|
|
38
|
-
catch {
|
|
39
|
-
// History file doesn't exist yet
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
async saveHistory() {
|
|
43
|
-
try {
|
|
44
|
-
await fs.writeFile(this.historyFile, this.history.join('\n'));
|
|
45
|
-
}
|
|
46
|
-
catch {
|
|
47
|
-
// Ignore save errors
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
class CommandCompleter {
|
|
52
|
-
commands = new Map();
|
|
53
|
-
setCommands(commands) {
|
|
54
|
-
this.commands.clear();
|
|
55
|
-
for (const cmd of commands) {
|
|
56
|
-
this.commands.set(cmd.name, cmd);
|
|
57
|
-
if (cmd.aliases) {
|
|
58
|
-
for (const alias of cmd.aliases) {
|
|
59
|
-
this.commands.set(alias, cmd);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
complete(input) {
|
|
65
|
-
const parts = input.trim().split(/\s+/);
|
|
66
|
-
if (parts.length === 1) {
|
|
67
|
-
// Complete command names
|
|
68
|
-
const prefix = parts[0];
|
|
69
|
-
return Array.from(this.commands.keys())
|
|
70
|
-
.filter((name) => name.startsWith(prefix))
|
|
71
|
-
.sort();
|
|
72
|
-
}
|
|
73
|
-
// Complete subcommands and arguments
|
|
74
|
-
const commandName = parts[0];
|
|
75
|
-
const command = this.commands.get(commandName);
|
|
76
|
-
if (command) {
|
|
77
|
-
return this.completeForCommand(command, parts.slice(1));
|
|
78
|
-
}
|
|
79
|
-
return [];
|
|
80
|
-
}
|
|
81
|
-
completeForCommand(command, args) {
|
|
82
|
-
// Basic completion for known commands
|
|
83
|
-
switch (command.name) {
|
|
84
|
-
case 'agent':
|
|
85
|
-
if (args.length === 1) {
|
|
86
|
-
return ['spawn', 'list', 'terminate', 'info'].filter((sub) => sub.startsWith(args[0]));
|
|
87
|
-
}
|
|
88
|
-
if (args[0] === 'spawn' && args.length === 2) {
|
|
89
|
-
return ['coordinator', 'researcher', 'implementer', 'analyst', 'custom'].filter((type) => type.startsWith(args[1]));
|
|
90
|
-
}
|
|
91
|
-
break;
|
|
92
|
-
case 'task':
|
|
93
|
-
if (args.length === 1) {
|
|
94
|
-
return ['create', 'list', 'status', 'cancel', 'workflow'].filter((sub) => sub.startsWith(args[0]));
|
|
95
|
-
}
|
|
96
|
-
if (args[0] === 'create' && args.length === 2) {
|
|
97
|
-
return ['research', 'implementation', 'analysis', 'coordination'].filter((type) => type.startsWith(args[1]));
|
|
98
|
-
}
|
|
99
|
-
break;
|
|
100
|
-
case 'session':
|
|
101
|
-
if (args.length === 1) {
|
|
102
|
-
return ['list', 'save', 'restore', 'delete', 'export', 'import'].filter((sub) => sub.startsWith(args[0]));
|
|
103
|
-
}
|
|
104
|
-
break;
|
|
105
|
-
case 'workflow':
|
|
106
|
-
if (args.length === 1) {
|
|
107
|
-
return ['run', 'validate', 'list', 'status', 'stop', 'template'].filter((sub) => sub.startsWith(args[0]));
|
|
108
|
-
}
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
return [];
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Start the enhanced interactive REPL
|
|
116
|
-
*/
|
|
117
|
-
export async function startREPL(options = {}) {
|
|
118
|
-
const context = {
|
|
119
|
-
options,
|
|
120
|
-
history: [],
|
|
121
|
-
workingDirectory: process.cwd(),
|
|
122
|
-
connectionStatus: 'disconnected',
|
|
123
|
-
lastActivity: new Date(),
|
|
124
|
-
};
|
|
125
|
-
const history = new CommandHistory(options.historyFile);
|
|
126
|
-
const completer = new CommandCompleter();
|
|
127
|
-
const commands = [
|
|
128
|
-
{
|
|
129
|
-
name: 'help',
|
|
130
|
-
aliases: ['h', '?'],
|
|
131
|
-
description: 'Show available commands or help for a specific command',
|
|
132
|
-
usage: 'help [command]',
|
|
133
|
-
examples: ['help', 'help agent', 'help task create'],
|
|
134
|
-
handler: async (args) => {
|
|
135
|
-
if (args.length === 0) {
|
|
136
|
-
showHelp(commands);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
showCommandHelp(commands, args[0]);
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
name: 'status',
|
|
145
|
-
aliases: ['st'],
|
|
146
|
-
description: 'Show system status and connection info',
|
|
147
|
-
usage: 'status [component]',
|
|
148
|
-
examples: ['status', 'status orchestrator'],
|
|
149
|
-
handler: async (args, ctx) => {
|
|
150
|
-
await showSystemStatus(ctx, args[0]);
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
name: 'connect',
|
|
155
|
-
aliases: ['conn'],
|
|
156
|
-
description: 'Connect to Claude-Flow orchestrator',
|
|
157
|
-
usage: 'connect [host:port]',
|
|
158
|
-
examples: ['connect', 'connect localhost:3000'],
|
|
159
|
-
handler: async (args, ctx) => {
|
|
160
|
-
await connectToOrchestrator(ctx, args[0]);
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
name: 'agent',
|
|
165
|
-
description: 'Agent management (spawn, list, terminate, info)',
|
|
166
|
-
usage: 'agent <subcommand> [options]',
|
|
167
|
-
examples: [
|
|
168
|
-
'agent list',
|
|
169
|
-
'agent spawn researcher --name "Research Agent"',
|
|
170
|
-
'agent info agent-001',
|
|
171
|
-
'agent terminate agent-001',
|
|
172
|
-
],
|
|
173
|
-
handler: async (args, ctx) => {
|
|
174
|
-
await handleAgentCommand(args, ctx);
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: 'task',
|
|
179
|
-
description: 'Task management (create, list, status, cancel)',
|
|
180
|
-
usage: 'task <subcommand> [options]',
|
|
181
|
-
examples: [
|
|
182
|
-
'task list',
|
|
183
|
-
'task create research "Find quantum computing papers"',
|
|
184
|
-
'task status task-001',
|
|
185
|
-
'task cancel task-001',
|
|
186
|
-
],
|
|
187
|
-
handler: async (args, ctx) => {
|
|
188
|
-
await handleTaskCommand(args, ctx);
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
name: 'memory',
|
|
193
|
-
description: 'Memory operations (query, stats, export)',
|
|
194
|
-
usage: 'memory <subcommand> [options]',
|
|
195
|
-
examples: ['memory stats', 'memory query --agent agent-001', 'memory export memory.json'],
|
|
196
|
-
handler: async (args, ctx) => {
|
|
197
|
-
await handleMemoryCommand(args, ctx);
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
name: 'session',
|
|
202
|
-
description: 'Session management (save, restore, list)',
|
|
203
|
-
usage: 'session <subcommand> [options]',
|
|
204
|
-
examples: [
|
|
205
|
-
'session list',
|
|
206
|
-
'session save "Development Session"',
|
|
207
|
-
'session restore session-001',
|
|
208
|
-
],
|
|
209
|
-
handler: async (args, ctx) => {
|
|
210
|
-
await handleSessionCommand(args, ctx);
|
|
211
|
-
},
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: 'workflow',
|
|
215
|
-
description: 'Workflow operations (run, list, status)',
|
|
216
|
-
usage: 'workflow <subcommand> [options]',
|
|
217
|
-
examples: ['workflow list', 'workflow run workflow.json', 'workflow status workflow-001'],
|
|
218
|
-
handler: async (args, ctx) => {
|
|
219
|
-
await handleWorkflowCommand(args, ctx);
|
|
220
|
-
},
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
name: 'monitor',
|
|
224
|
-
aliases: ['mon'],
|
|
225
|
-
description: 'Start monitoring mode',
|
|
226
|
-
usage: 'monitor [--interval seconds]',
|
|
227
|
-
examples: ['monitor', 'monitor --interval 5'],
|
|
228
|
-
handler: async (args) => {
|
|
229
|
-
console.log(chalk.cyan('Starting monitor mode...'));
|
|
230
|
-
console.log(chalk.gray('(This would start the live dashboard)'));
|
|
231
|
-
},
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
name: 'history',
|
|
235
|
-
aliases: ['hist'],
|
|
236
|
-
description: 'Show command history',
|
|
237
|
-
usage: 'history [--search query]',
|
|
238
|
-
examples: ['history', 'history --search agent'],
|
|
239
|
-
handler: async (args) => {
|
|
240
|
-
const searchQuery = args.indexOf('--search') >= 0 ? args[args.indexOf('--search') + 1] : null;
|
|
241
|
-
const historyItems = searchQuery ? history.search(searchQuery) : history.get();
|
|
242
|
-
console.log(chalk.cyan.bold(`Command History${searchQuery ? ` (search: ${searchQuery})` : ''}`));
|
|
243
|
-
console.log('─'.repeat(50));
|
|
244
|
-
if (historyItems.length === 0) {
|
|
245
|
-
console.log(chalk.gray('No commands in history'));
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
const recent = historyItems.slice(-20); // Show last 20
|
|
249
|
-
recent.forEach((cmd, i) => {
|
|
250
|
-
const lineNumber = historyItems.length - recent.length + i + 1;
|
|
251
|
-
console.log(`${chalk.gray(lineNumber.toString().padStart(3))} ${cmd}`);
|
|
252
|
-
});
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
name: 'clear',
|
|
257
|
-
aliases: ['cls'],
|
|
258
|
-
description: 'Clear the screen',
|
|
259
|
-
handler: async () => {
|
|
260
|
-
console.clear();
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
name: 'cd',
|
|
265
|
-
description: 'Change working directory',
|
|
266
|
-
usage: 'cd <directory>',
|
|
267
|
-
examples: ['cd /path/to/project', 'cd ..'],
|
|
268
|
-
handler: async (args, ctx) => {
|
|
269
|
-
if (args.length === 0) {
|
|
270
|
-
console.log(ctx.workingDirectory);
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
try {
|
|
274
|
-
const newDir = args[0] === '~' ? process.env['HOME'] || '/' : args[0];
|
|
275
|
-
process.chdir(newDir);
|
|
276
|
-
ctx.workingDirectory = process.cwd();
|
|
277
|
-
console.log(chalk.gray(`Changed to: ${ctx.workingDirectory}`));
|
|
278
|
-
}
|
|
279
|
-
catch (error) {
|
|
280
|
-
console.error(chalk.red('Error:'), error instanceof Error ? error.message : String(error));
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
name: 'pwd',
|
|
286
|
-
description: 'Print working directory',
|
|
287
|
-
handler: async (_, ctx) => {
|
|
288
|
-
console.log(ctx.workingDirectory);
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
name: 'echo',
|
|
293
|
-
description: 'Echo arguments',
|
|
294
|
-
usage: 'echo <text>',
|
|
295
|
-
examples: ['echo "Hello, world!"'],
|
|
296
|
-
handler: async (args) => {
|
|
297
|
-
console.log(args.join(' '));
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
name: 'exit',
|
|
302
|
-
aliases: ['quit', 'q'],
|
|
303
|
-
description: 'Exit the REPL',
|
|
304
|
-
handler: async () => {
|
|
305
|
-
console.log(chalk.gray('Goodbye!'));
|
|
306
|
-
process.exit(0);
|
|
307
|
-
},
|
|
308
|
-
},
|
|
309
|
-
];
|
|
310
|
-
// Set up command completion
|
|
311
|
-
completer.setCommands(commands);
|
|
312
|
-
// Show initial status
|
|
313
|
-
if (!options.quiet) {
|
|
314
|
-
await showSystemStatus(context);
|
|
315
|
-
console.log(chalk.gray('Type "help" for available commands or "exit" to quit.\n'));
|
|
316
|
-
}
|
|
317
|
-
// Main REPL loop
|
|
318
|
-
while (true) {
|
|
319
|
-
try {
|
|
320
|
-
const promptString = createPrompt(context);
|
|
321
|
-
const { input } = await inquirer.prompt([
|
|
322
|
-
{
|
|
323
|
-
type: 'input',
|
|
324
|
-
name: 'input',
|
|
325
|
-
message: promptString,
|
|
326
|
-
transformer: (input) => input,
|
|
327
|
-
},
|
|
328
|
-
]);
|
|
329
|
-
if (!input.trim()) {
|
|
330
|
-
continue;
|
|
331
|
-
}
|
|
332
|
-
// Add to history
|
|
333
|
-
history.add(input);
|
|
334
|
-
context.history.push(input);
|
|
335
|
-
context.lastActivity = new Date();
|
|
336
|
-
// Parse command
|
|
337
|
-
const args = parseCommand(input);
|
|
338
|
-
const [commandName, ...commandArgs] = args;
|
|
339
|
-
// Find and execute command
|
|
340
|
-
const command = commands.find((c) => c.name === commandName || (c.aliases && c.aliases.includes(commandName)));
|
|
341
|
-
if (command) {
|
|
342
|
-
try {
|
|
343
|
-
await command.handler(commandArgs, context);
|
|
344
|
-
}
|
|
345
|
-
catch (error) {
|
|
346
|
-
console.error(chalk.red('Command failed:'), error instanceof Error ? error.message : String(error));
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
console.log(chalk.red(`Unknown command: ${commandName}`));
|
|
351
|
-
console.log(chalk.gray('Type "help" for available commands'));
|
|
352
|
-
// Suggest similar commands
|
|
353
|
-
const suggestions = findSimilarCommands(commandName, commands);
|
|
354
|
-
if (suggestions.length > 0) {
|
|
355
|
-
console.log(chalk.gray('Did you mean:'), suggestions.map((s) => chalk.cyan(s)).join(', '));
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
catch (error) {
|
|
360
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
361
|
-
if (errorMessage.includes('EOF') || errorMessage.includes('interrupted')) {
|
|
362
|
-
// Ctrl+D or Ctrl+C pressed
|
|
363
|
-
console.log('\n' + chalk.gray('Goodbye!'));
|
|
364
|
-
break;
|
|
365
|
-
}
|
|
366
|
-
console.error(chalk.red('REPL Error:'), errorMessage);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
function createPrompt(context) {
|
|
371
|
-
const statusIcon = getConnectionStatusIcon(context.connectionStatus);
|
|
372
|
-
const dir = context.workingDirectory.split('/').pop() || '/';
|
|
373
|
-
return `${statusIcon} ${chalk.cyan('claude-flow')}:${chalk.yellow(dir)}${chalk.white('>')} `;
|
|
374
|
-
}
|
|
375
|
-
function getConnectionStatusIcon(status) {
|
|
376
|
-
switch (status) {
|
|
377
|
-
case 'connected':
|
|
378
|
-
return chalk.green('●');
|
|
379
|
-
case 'connecting':
|
|
380
|
-
return chalk.yellow('◐');
|
|
381
|
-
case 'disconnected':
|
|
382
|
-
return chalk.red('○');
|
|
383
|
-
default:
|
|
384
|
-
return chalk.gray('?');
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
function parseCommand(input) {
|
|
388
|
-
// Simple command parsing - handle quoted strings
|
|
389
|
-
const args = [];
|
|
390
|
-
let current = '';
|
|
391
|
-
let inQuotes = false;
|
|
392
|
-
let quoteChar = '';
|
|
393
|
-
for (let i = 0; i < input.length; i++) {
|
|
394
|
-
const char = input[i];
|
|
395
|
-
if (inQuotes) {
|
|
396
|
-
if (char === quoteChar) {
|
|
397
|
-
inQuotes = false;
|
|
398
|
-
quoteChar = '';
|
|
399
|
-
}
|
|
400
|
-
else {
|
|
401
|
-
current += char;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
if (char === '"' || char === "'") {
|
|
406
|
-
inQuotes = true;
|
|
407
|
-
quoteChar = char;
|
|
408
|
-
}
|
|
409
|
-
else if (char === ' ' || char === '\t') {
|
|
410
|
-
if (current.trim()) {
|
|
411
|
-
args.push(current.trim());
|
|
412
|
-
current = '';
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
else {
|
|
416
|
-
current += char;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
if (current.trim()) {
|
|
421
|
-
args.push(current.trim());
|
|
422
|
-
}
|
|
423
|
-
return args;
|
|
424
|
-
}
|
|
425
|
-
function showHelp(commands) {
|
|
426
|
-
console.log(chalk.cyan.bold('Claude-Flow Interactive REPL'));
|
|
427
|
-
console.log('─'.repeat(50));
|
|
428
|
-
console.log();
|
|
429
|
-
console.log(chalk.white.bold('Available Commands:'));
|
|
430
|
-
console.log();
|
|
431
|
-
const table = new Table({
|
|
432
|
-
head: ['Command', 'Aliases', 'Description'],
|
|
433
|
-
style: { 'padding-left': 0, 'padding-right': 1, border: [] },
|
|
434
|
-
});
|
|
435
|
-
for (const cmd of commands) {
|
|
436
|
-
table.push([
|
|
437
|
-
chalk.cyan(cmd.name),
|
|
438
|
-
cmd.aliases ? chalk.gray(cmd.aliases.join(', ')) : '',
|
|
439
|
-
cmd.description,
|
|
440
|
-
]);
|
|
441
|
-
}
|
|
442
|
-
console.log(table.toString());
|
|
443
|
-
console.log();
|
|
444
|
-
console.log(chalk.gray('Tips:'));
|
|
445
|
-
console.log(chalk.gray('• Use TAB for command completion'));
|
|
446
|
-
console.log(chalk.gray('• Use "help <command>" for detailed help'));
|
|
447
|
-
console.log(chalk.gray('• Use UP/DOWN arrows for command history'));
|
|
448
|
-
console.log(chalk.gray('• Use Ctrl+C or "exit" to quit'));
|
|
449
|
-
}
|
|
450
|
-
function showCommandHelp(commands, commandName) {
|
|
451
|
-
const command = commands.find((c) => c.name === commandName || (c.aliases && c.aliases.includes(commandName)));
|
|
452
|
-
if (!command) {
|
|
453
|
-
console.log(chalk.red(`Unknown command: ${commandName}`));
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
console.log(chalk.cyan.bold(`Command: ${command.name}`));
|
|
457
|
-
console.log('─'.repeat(30));
|
|
458
|
-
console.log(`${chalk.white('Description:')} ${command.description}`);
|
|
459
|
-
if (command.aliases) {
|
|
460
|
-
console.log(`${chalk.white('Aliases:')} ${command.aliases.join(', ')}`);
|
|
461
|
-
}
|
|
462
|
-
if (command.usage) {
|
|
463
|
-
console.log(`${chalk.white('Usage:')} ${command.usage}`);
|
|
464
|
-
}
|
|
465
|
-
if (command.examples) {
|
|
466
|
-
console.log();
|
|
467
|
-
console.log(chalk.white.bold('Examples:'));
|
|
468
|
-
for (const example of command.examples) {
|
|
469
|
-
console.log(` ${chalk.gray('$')} ${chalk.cyan(example)}`);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
async function showSystemStatus(context, component) {
|
|
474
|
-
console.log(chalk.cyan.bold('System Status'));
|
|
475
|
-
console.log('─'.repeat(30));
|
|
476
|
-
const statusIcon = formatStatusIndicator(context.connectionStatus === 'connected' ? 'success' : 'error');
|
|
477
|
-
console.log(`${statusIcon} Connection: ${context.connectionStatus}`);
|
|
478
|
-
console.log(`${chalk.white('Working Directory:')} ${context.workingDirectory}`);
|
|
479
|
-
console.log(`${chalk.white('Last Activity:')} ${context.lastActivity.toLocaleTimeString()}`);
|
|
480
|
-
if (context.currentSession) {
|
|
481
|
-
console.log(`${chalk.white('Current Session:')} ${context.currentSession}`);
|
|
482
|
-
}
|
|
483
|
-
console.log(`${chalk.white('Commands in History:')} ${context.history.length}`);
|
|
484
|
-
if (context.connectionStatus === 'disconnected') {
|
|
485
|
-
console.log();
|
|
486
|
-
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
487
|
-
console.log(chalk.gray('Use "connect" command to establish connection'));
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
async function connectToOrchestrator(context, target) {
|
|
491
|
-
const host = target || 'localhost:3000';
|
|
492
|
-
console.log(chalk.yellow(`Connecting to ${host}...`));
|
|
493
|
-
context.connectionStatus = 'connecting';
|
|
494
|
-
// Mock connection attempt
|
|
495
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
496
|
-
// Simulate connection result
|
|
497
|
-
const success = Math.random() > 0.3; // 70% success rate
|
|
498
|
-
if (success) {
|
|
499
|
-
context.connectionStatus = 'connected';
|
|
500
|
-
console.log(chalk.green('✓ Connected successfully'));
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
context.connectionStatus = 'disconnected';
|
|
504
|
-
console.log(chalk.red('✗ Connection failed'));
|
|
505
|
-
console.log(chalk.gray('Make sure Claude-Flow is running with: claude-flow start'));
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
async function handleAgentCommand(args, context) {
|
|
509
|
-
if (context.connectionStatus !== 'connected') {
|
|
510
|
-
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
511
|
-
console.log(chalk.gray('Use "connect" to establish connection first'));
|
|
512
|
-
return;
|
|
513
|
-
}
|
|
514
|
-
if (args.length === 0) {
|
|
515
|
-
console.log(chalk.gray('Usage: agent <spawn|list|terminate|info> [options]'));
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
const subcommand = args[0];
|
|
519
|
-
switch (subcommand) {
|
|
520
|
-
case 'list':
|
|
521
|
-
await showAgentList();
|
|
522
|
-
break;
|
|
523
|
-
case 'spawn':
|
|
524
|
-
await handleAgentSpawn(args.slice(1));
|
|
525
|
-
break;
|
|
526
|
-
case 'terminate':
|
|
527
|
-
if (args.length < 2) {
|
|
528
|
-
console.log(chalk.red('Please specify agent ID'));
|
|
529
|
-
}
|
|
530
|
-
else {
|
|
531
|
-
await handleAgentTerminate(args[1]);
|
|
532
|
-
}
|
|
533
|
-
break;
|
|
534
|
-
case 'info':
|
|
535
|
-
if (args.length < 2) {
|
|
536
|
-
console.log(chalk.red('Please specify agent ID'));
|
|
537
|
-
}
|
|
538
|
-
else {
|
|
539
|
-
await showAgentInfo(args[1]);
|
|
540
|
-
}
|
|
541
|
-
break;
|
|
542
|
-
default:
|
|
543
|
-
console.log(chalk.red(`Unknown agent subcommand: ${subcommand}`));
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
async function showAgentList() {
|
|
547
|
-
// Mock agent data
|
|
548
|
-
const agents = [
|
|
549
|
-
{ id: 'agent-001', name: 'Coordinator', type: 'coordinator', status: 'active', tasks: 2 },
|
|
550
|
-
{ id: 'agent-002', name: 'Researcher', type: 'researcher', status: 'active', tasks: 5 },
|
|
551
|
-
{ id: 'agent-003', name: 'Implementer', type: 'implementer', status: 'idle', tasks: 0 },
|
|
552
|
-
];
|
|
553
|
-
console.log(chalk.cyan.bold(`Active Agents (${agents.length})`));
|
|
554
|
-
console.log('─'.repeat(50));
|
|
555
|
-
const table = new Table({
|
|
556
|
-
head: ['ID', 'Name', 'Type', 'Status', 'Tasks'],
|
|
557
|
-
});
|
|
558
|
-
for (const agent of agents) {
|
|
559
|
-
const statusIcon = formatStatusIndicator(agent.status);
|
|
560
|
-
table.push([
|
|
561
|
-
chalk.gray(agent.id),
|
|
562
|
-
chalk.white(agent.name),
|
|
563
|
-
chalk.cyan(agent.type),
|
|
564
|
-
`${statusIcon} ${agent.status}`,
|
|
565
|
-
agent.tasks.toString(),
|
|
566
|
-
]);
|
|
567
|
-
}
|
|
568
|
-
console.log(table.toString());
|
|
569
|
-
}
|
|
570
|
-
async function handleAgentSpawn(args) {
|
|
571
|
-
if (args.length === 0) {
|
|
572
|
-
console.log(chalk.gray('Usage: agent spawn <type> [name]'));
|
|
573
|
-
console.log(chalk.gray('Types: coordinator, researcher, implementer, analyst, custom'));
|
|
574
|
-
return;
|
|
575
|
-
}
|
|
576
|
-
const type = args[0];
|
|
577
|
-
const name = args[1] ||
|
|
578
|
-
(await inquirer.prompt([
|
|
579
|
-
{
|
|
580
|
-
type: 'input',
|
|
581
|
-
name: 'name',
|
|
582
|
-
message: 'Agent name:',
|
|
583
|
-
default: `${type}-agent`,
|
|
584
|
-
},
|
|
585
|
-
])).name;
|
|
586
|
-
console.log(chalk.yellow('Spawning agent...'));
|
|
587
|
-
// Mock spawning
|
|
588
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
589
|
-
const agentId = generateId('agent');
|
|
590
|
-
console.log(chalk.green('✓ Agent spawned successfully'));
|
|
591
|
-
console.log(`${chalk.white('ID:')} ${agentId}`);
|
|
592
|
-
console.log(`${chalk.white('Name:')} ${name}`);
|
|
593
|
-
console.log(`${chalk.white('Type:')} ${type}`);
|
|
594
|
-
}
|
|
595
|
-
async function handleAgentTerminate(agentId) {
|
|
596
|
-
const { confirmed } = await inquirer.prompt([
|
|
597
|
-
{
|
|
598
|
-
type: 'confirm',
|
|
599
|
-
name: 'confirmed',
|
|
600
|
-
message: `Terminate agent ${agentId}?`,
|
|
601
|
-
default: false,
|
|
602
|
-
},
|
|
603
|
-
]);
|
|
604
|
-
if (!confirmed) {
|
|
605
|
-
console.log(chalk.gray('Termination cancelled'));
|
|
606
|
-
return;
|
|
607
|
-
}
|
|
608
|
-
console.log(chalk.yellow('Terminating agent...'));
|
|
609
|
-
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
610
|
-
console.log(chalk.green('✓ Agent terminated'));
|
|
611
|
-
}
|
|
612
|
-
async function showAgentInfo(agentId) {
|
|
613
|
-
// Mock agent info
|
|
614
|
-
console.log(chalk.cyan.bold('Agent Information'));
|
|
615
|
-
console.log('─'.repeat(30));
|
|
616
|
-
console.log(`${chalk.white('ID:')} ${agentId}`);
|
|
617
|
-
console.log(`${chalk.white('Name:')} Research Agent`);
|
|
618
|
-
console.log(`${chalk.white('Type:')} researcher`);
|
|
619
|
-
console.log(`${chalk.white('Status:')} ${formatStatusIndicator('success')} active`);
|
|
620
|
-
console.log(`${chalk.white('Uptime:')} ${formatDuration(3600000)}`);
|
|
621
|
-
console.log(`${chalk.white('Active Tasks:')} 3`);
|
|
622
|
-
console.log(`${chalk.white('Completed Tasks:')} 12`);
|
|
623
|
-
}
|
|
624
|
-
async function handleTaskCommand(args, context) {
|
|
625
|
-
if (context.connectionStatus !== 'connected') {
|
|
626
|
-
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
627
|
-
return;
|
|
628
|
-
}
|
|
629
|
-
if (args.length === 0) {
|
|
630
|
-
console.log(chalk.gray('Usage: task <create|list|status|cancel> [options]'));
|
|
631
|
-
return;
|
|
632
|
-
}
|
|
633
|
-
const subcommand = args[0];
|
|
634
|
-
switch (subcommand) {
|
|
635
|
-
case 'list':
|
|
636
|
-
await showTaskList();
|
|
637
|
-
break;
|
|
638
|
-
case 'create':
|
|
639
|
-
await handleTaskCreate(args.slice(1));
|
|
640
|
-
break;
|
|
641
|
-
case 'status':
|
|
642
|
-
if (args.length < 2) {
|
|
643
|
-
console.log(chalk.red('Please specify task ID'));
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
await showTaskStatus(args[1]);
|
|
647
|
-
}
|
|
648
|
-
break;
|
|
649
|
-
case 'cancel':
|
|
650
|
-
if (args.length < 2) {
|
|
651
|
-
console.log(chalk.red('Please specify task ID'));
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
654
|
-
await handleTaskCancel(args[1]);
|
|
655
|
-
}
|
|
656
|
-
break;
|
|
657
|
-
default:
|
|
658
|
-
console.log(chalk.red(`Unknown task subcommand: ${subcommand}`));
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
async function showTaskList() {
|
|
662
|
-
// Mock task data
|
|
663
|
-
const tasks = [
|
|
664
|
-
{
|
|
665
|
-
id: 'task-001',
|
|
666
|
-
type: 'research',
|
|
667
|
-
description: 'Research quantum computing',
|
|
668
|
-
status: 'running',
|
|
669
|
-
agent: 'agent-002',
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
id: 'task-002',
|
|
673
|
-
type: 'analysis',
|
|
674
|
-
description: 'Analyze research results',
|
|
675
|
-
status: 'pending',
|
|
676
|
-
agent: null,
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
id: 'task-003',
|
|
680
|
-
type: 'implementation',
|
|
681
|
-
description: 'Implement solution',
|
|
682
|
-
status: 'completed',
|
|
683
|
-
agent: 'agent-003',
|
|
684
|
-
},
|
|
685
|
-
];
|
|
686
|
-
console.log(chalk.cyan.bold(`Tasks (${tasks.length})`));
|
|
687
|
-
console.log('─'.repeat(60));
|
|
688
|
-
const table = new Table({
|
|
689
|
-
head: ['ID', 'Type', 'Description', 'Status', 'Agent'],
|
|
690
|
-
});
|
|
691
|
-
for (const task of tasks) {
|
|
692
|
-
const statusIcon = formatStatusIndicator(task.status);
|
|
693
|
-
table.push([
|
|
694
|
-
chalk.gray(task.id),
|
|
695
|
-
chalk.white(task.type),
|
|
696
|
-
task.description.substring(0, 30) + (task.description.length > 30 ? '...' : ''),
|
|
697
|
-
`${statusIcon} ${task.status}`,
|
|
698
|
-
task.agent ? chalk.cyan(task.agent) : '-',
|
|
699
|
-
]);
|
|
700
|
-
}
|
|
701
|
-
console.log(table.toString());
|
|
702
|
-
}
|
|
703
|
-
async function handleTaskCreate(args) {
|
|
704
|
-
if (args.length < 2) {
|
|
705
|
-
console.log(chalk.gray('Usage: task create <type> <description>'));
|
|
706
|
-
return;
|
|
707
|
-
}
|
|
708
|
-
const type = args[0];
|
|
709
|
-
const description = args.slice(1).join(' ');
|
|
710
|
-
console.log(chalk.yellow('Creating task...'));
|
|
711
|
-
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
712
|
-
const taskId = generateId('task');
|
|
713
|
-
console.log(chalk.green('✓ Task created successfully'));
|
|
714
|
-
console.log(`${chalk.white('ID:')} ${taskId}`);
|
|
715
|
-
console.log(`${chalk.white('Type:')} ${type}`);
|
|
716
|
-
console.log(`${chalk.white('Description:')} ${description}`);
|
|
717
|
-
}
|
|
718
|
-
async function showTaskStatus(taskId) {
|
|
719
|
-
console.log(chalk.cyan.bold('Task Status'));
|
|
720
|
-
console.log('─'.repeat(30));
|
|
721
|
-
console.log(`${chalk.white('ID:')} ${taskId}`);
|
|
722
|
-
console.log(`${chalk.white('Type:')} research`);
|
|
723
|
-
console.log(`${chalk.white('Status:')} ${formatStatusIndicator('running')} running`);
|
|
724
|
-
console.log(`${chalk.white('Progress:')} ${formatProgressBar(65, 100, 20)} 65%`);
|
|
725
|
-
console.log(`${chalk.white('Agent:')} agent-002`);
|
|
726
|
-
console.log(`${chalk.white('Started:')} ${new Date().toLocaleTimeString()}`);
|
|
727
|
-
}
|
|
728
|
-
async function handleTaskCancel(taskId) {
|
|
729
|
-
const { confirmed } = await inquirer.prompt([
|
|
730
|
-
{
|
|
731
|
-
type: 'confirm',
|
|
732
|
-
name: 'confirmed',
|
|
733
|
-
message: `Cancel task ${taskId}?`,
|
|
734
|
-
default: false,
|
|
735
|
-
},
|
|
736
|
-
]);
|
|
737
|
-
if (!confirmed) {
|
|
738
|
-
console.log(chalk.gray('Cancellation cancelled'));
|
|
739
|
-
return;
|
|
740
|
-
}
|
|
741
|
-
console.log(chalk.yellow('Cancelling task...'));
|
|
742
|
-
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
743
|
-
console.log(chalk.green('✓ Task cancelled'));
|
|
744
|
-
}
|
|
745
|
-
async function handleMemoryCommand(args, context) {
|
|
746
|
-
if (context.connectionStatus !== 'connected') {
|
|
747
|
-
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
748
|
-
return;
|
|
749
|
-
}
|
|
750
|
-
if (args.length === 0) {
|
|
751
|
-
console.log(chalk.gray('Usage: memory <query|stats|export> [options]'));
|
|
752
|
-
return;
|
|
753
|
-
}
|
|
754
|
-
const subcommand = args[0];
|
|
755
|
-
switch (subcommand) {
|
|
756
|
-
case 'stats':
|
|
757
|
-
await showMemoryStats();
|
|
758
|
-
break;
|
|
759
|
-
case 'query':
|
|
760
|
-
console.log(chalk.yellow('Memory query functionality not yet implemented in REPL'));
|
|
761
|
-
break;
|
|
762
|
-
case 'export':
|
|
763
|
-
console.log(chalk.yellow('Memory export functionality not yet implemented in REPL'));
|
|
764
|
-
break;
|
|
765
|
-
default:
|
|
766
|
-
console.log(chalk.red(`Unknown memory subcommand: ${subcommand}`));
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
async function showMemoryStats() {
|
|
770
|
-
console.log(chalk.cyan.bold('Memory Statistics'));
|
|
771
|
-
console.log('─'.repeat(30));
|
|
772
|
-
console.log(`${chalk.white('Total Entries:')} 1,247`);
|
|
773
|
-
console.log(`${chalk.white('Cache Size:')} 95 MB`);
|
|
774
|
-
console.log(`${chalk.white('Hit Rate:')} 94.2%`);
|
|
775
|
-
console.log(`${chalk.white('Backend:')} SQLite + Markdown`);
|
|
776
|
-
}
|
|
777
|
-
async function handleSessionCommand(args, context) {
|
|
778
|
-
if (args.length === 0) {
|
|
779
|
-
console.log(chalk.gray('Usage: session <list|save|restore> [options]'));
|
|
780
|
-
return;
|
|
781
|
-
}
|
|
782
|
-
const subcommand = args[0];
|
|
783
|
-
switch (subcommand) {
|
|
784
|
-
case 'list':
|
|
785
|
-
await showSessionList();
|
|
786
|
-
break;
|
|
787
|
-
case 'save':
|
|
788
|
-
await handleSessionSave(args.slice(1));
|
|
789
|
-
break;
|
|
790
|
-
case 'restore':
|
|
791
|
-
if (args.length < 2) {
|
|
792
|
-
console.log(chalk.red('Please specify session ID'));
|
|
793
|
-
}
|
|
794
|
-
else {
|
|
795
|
-
await handleSessionRestore(args[1]);
|
|
796
|
-
}
|
|
797
|
-
break;
|
|
798
|
-
default:
|
|
799
|
-
console.log(chalk.red(`Unknown session subcommand: ${subcommand}`));
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
async function showSessionList() {
|
|
803
|
-
// Mock session data
|
|
804
|
-
const sessions = [
|
|
805
|
-
{ id: 'session-001', name: 'Research Project', date: '2024-01-15', agents: 3, tasks: 8 },
|
|
806
|
-
{ id: 'session-002', name: 'Development', date: '2024-01-14', agents: 2, tasks: 5 },
|
|
807
|
-
];
|
|
808
|
-
console.log(chalk.cyan.bold(`Saved Sessions (${sessions.length})`));
|
|
809
|
-
console.log('─'.repeat(50));
|
|
810
|
-
const table = new Table({
|
|
811
|
-
head: ['ID', 'Name', 'Date', 'Agents', 'Tasks'],
|
|
812
|
-
});
|
|
813
|
-
for (const session of sessions) {
|
|
814
|
-
table.push([
|
|
815
|
-
chalk.gray(session.id),
|
|
816
|
-
chalk.white(session.name),
|
|
817
|
-
session.date,
|
|
818
|
-
session.agents.toString(),
|
|
819
|
-
session.tasks.toString(),
|
|
820
|
-
]);
|
|
821
|
-
}
|
|
822
|
-
console.log(table.toString());
|
|
823
|
-
}
|
|
824
|
-
async function handleSessionSave(args) {
|
|
825
|
-
const name = args.length > 0
|
|
826
|
-
? args.join(' ')
|
|
827
|
-
: (await inquirer.prompt([
|
|
828
|
-
{
|
|
829
|
-
type: 'input',
|
|
830
|
-
name: 'name',
|
|
831
|
-
message: 'Session name:',
|
|
832
|
-
default: `session-${new Date().toISOString().split('T')[0]}`,
|
|
833
|
-
},
|
|
834
|
-
])).name;
|
|
835
|
-
console.log(chalk.yellow('Saving session...'));
|
|
836
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
837
|
-
const sessionId = generateId('session');
|
|
838
|
-
console.log(chalk.green('✓ Session saved successfully'));
|
|
839
|
-
console.log(`${chalk.white('ID:')} ${sessionId}`);
|
|
840
|
-
console.log(`${chalk.white('Name:')} ${name}`);
|
|
841
|
-
}
|
|
842
|
-
async function handleSessionRestore(sessionId) {
|
|
843
|
-
const { confirmed } = await inquirer.prompt([
|
|
844
|
-
{
|
|
845
|
-
type: 'confirm',
|
|
846
|
-
name: 'confirmed',
|
|
847
|
-
message: `Restore session ${sessionId}?`,
|
|
848
|
-
default: false,
|
|
849
|
-
},
|
|
850
|
-
]);
|
|
851
|
-
if (!confirmed) {
|
|
852
|
-
console.log(chalk.gray('Restore cancelled'));
|
|
853
|
-
return;
|
|
854
|
-
}
|
|
855
|
-
console.log(chalk.yellow('Restoring session...'));
|
|
856
|
-
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
857
|
-
console.log(chalk.green('✓ Session restored successfully'));
|
|
858
|
-
}
|
|
859
|
-
async function handleWorkflowCommand(args, context) {
|
|
860
|
-
if (context.connectionStatus !== 'connected') {
|
|
861
|
-
console.log(chalk.yellow('⚠ Not connected to orchestrator'));
|
|
862
|
-
return;
|
|
863
|
-
}
|
|
864
|
-
if (args.length === 0) {
|
|
865
|
-
console.log(chalk.gray('Usage: workflow <list|run|status> [options]'));
|
|
866
|
-
return;
|
|
867
|
-
}
|
|
868
|
-
const subcommand = args[0];
|
|
869
|
-
switch (subcommand) {
|
|
870
|
-
case 'list':
|
|
871
|
-
await showWorkflowList();
|
|
872
|
-
break;
|
|
873
|
-
case 'run':
|
|
874
|
-
if (args.length < 2) {
|
|
875
|
-
console.log(chalk.red('Please specify workflow file'));
|
|
876
|
-
}
|
|
877
|
-
else {
|
|
878
|
-
await handleWorkflowRun(args[1]);
|
|
879
|
-
}
|
|
880
|
-
break;
|
|
881
|
-
case 'status':
|
|
882
|
-
if (args.length < 2) {
|
|
883
|
-
console.log(chalk.red('Please specify workflow ID'));
|
|
884
|
-
}
|
|
885
|
-
else {
|
|
886
|
-
await showWorkflowStatus(args[1]);
|
|
887
|
-
}
|
|
888
|
-
break;
|
|
889
|
-
default:
|
|
890
|
-
console.log(chalk.red(`Unknown workflow subcommand: ${subcommand}`));
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
async function showWorkflowList() {
|
|
894
|
-
// Mock workflow data
|
|
895
|
-
const workflows = [
|
|
896
|
-
{ id: 'workflow-001', name: 'Research Pipeline', status: 'running', progress: 60 },
|
|
897
|
-
{ id: 'workflow-002', name: 'Data Analysis', status: 'completed', progress: 100 },
|
|
898
|
-
];
|
|
899
|
-
console.log(chalk.cyan.bold(`Workflows (${workflows.length})`));
|
|
900
|
-
console.log('─'.repeat(50));
|
|
901
|
-
const table = new Table({
|
|
902
|
-
head: ['ID', 'Name', 'Status', 'Progress'],
|
|
903
|
-
});
|
|
904
|
-
for (const workflow of workflows) {
|
|
905
|
-
const statusIcon = formatStatusIndicator(workflow.status);
|
|
906
|
-
const progressBar = formatProgressBar(workflow.progress, 100, 15);
|
|
907
|
-
table.push([
|
|
908
|
-
chalk.gray(workflow.id),
|
|
909
|
-
chalk.white(workflow.name),
|
|
910
|
-
`${statusIcon} ${workflow.status}`,
|
|
911
|
-
`${progressBar} ${workflow.progress}%`,
|
|
912
|
-
]);
|
|
913
|
-
}
|
|
914
|
-
console.log(table.toString());
|
|
915
|
-
}
|
|
916
|
-
async function handleWorkflowRun(filename) {
|
|
917
|
-
try {
|
|
918
|
-
await fs.stat(filename);
|
|
919
|
-
console.log(chalk.yellow(`Running workflow: ${filename}`));
|
|
920
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
921
|
-
const workflowId = generateId('workflow');
|
|
922
|
-
console.log(chalk.green('✓ Workflow started successfully'));
|
|
923
|
-
console.log(`${chalk.white('ID:')} ${workflowId}`);
|
|
924
|
-
}
|
|
925
|
-
catch {
|
|
926
|
-
console.log(chalk.red(`Workflow file not found: ${filename}`));
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
async function showWorkflowStatus(workflowId) {
|
|
930
|
-
console.log(chalk.cyan.bold('Workflow Status'));
|
|
931
|
-
console.log('─'.repeat(30));
|
|
932
|
-
console.log(`${chalk.white('ID:')} ${workflowId}`);
|
|
933
|
-
console.log(`${chalk.white('Name:')} Research Pipeline`);
|
|
934
|
-
console.log(`${chalk.white('Status:')} ${formatStatusIndicator('running')} running`);
|
|
935
|
-
console.log(`${chalk.white('Progress:')} ${formatProgressBar(75, 100, 20)} 75%`);
|
|
936
|
-
console.log(`${chalk.white('Tasks:')} 6/8 completed`);
|
|
937
|
-
console.log(`${chalk.white('Started:')} ${new Date().toLocaleTimeString()}`);
|
|
938
|
-
}
|
|
939
|
-
function findSimilarCommands(input, commands) {
|
|
940
|
-
const allNames = commands.flatMap((c) => [c.name, ...(c.aliases || [])]);
|
|
941
|
-
return allNames
|
|
942
|
-
.filter((name) => {
|
|
943
|
-
// Simple similarity check - could use Levenshtein distance
|
|
944
|
-
const commonChars = input.split('').filter((char) => name.includes(char)).length;
|
|
945
|
-
return commonChars >= Math.min(2, input.length / 2);
|
|
946
|
-
})
|
|
947
|
-
.slice(0, 3); // Top 3 suggestions
|
|
948
|
-
}
|
|
949
|
-
//# sourceMappingURL=repl.js.map
|