claude-flow 2.0.0-alpha.45 → 2.0.0-alpha.49
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/bin/claude-flow +1 -1
- package/package.json +1 -1
- package/src/cli/help-text.js +1 -1
- package/src/cli/index.ts +1 -1
- package/src/cli/node-repl.ts +2 -2
- package/src/cli/simple-cli.js +1 -1
- package/src/cli/simple-commands/init/index.js +14 -7
- package/src/cli/simple-commands/init/templates/CLAUDE.md +103 -22
- package/src/cli/simple-commands/init/templates/claude-md.js +182 -0
- package/src/mcp/mcp-server.js +1 -1
- package/src/memory/enhanced-memory-v2.js +320 -0
- package/src/memory/enhanced-memory.js +236 -264
- package/src/memory/enhanced-memory.js.bak +348 -0
- package/src/memory/fallback-store.js +93 -0
- package/src/memory/in-memory-store.js +210 -0
- package/dist/__tests__/features/mocks/MockFeatureManager.d.ts +0 -26
- package/dist/__tests__/features/mocks/MockFeatureManager.d.ts.map +0 -1
- package/dist/__tests__/features/mocks/MockFeatureManager.js +0 -200
- package/dist/__tests__/features/mocks/MockFeatureManager.js.map +0 -1
- package/dist/__tests__/features/setup.d.ts +0 -24
- package/dist/__tests__/features/setup.d.ts.map +0 -1
- package/dist/__tests__/features/setup.js +0 -42
- package/dist/__tests__/features/setup.js.map +0 -1
- package/dist/__tests__/features/utils/test-helpers.d.ts +0 -96
- package/dist/__tests__/features/utils/test-helpers.d.ts.map +0 -1
- package/dist/__tests__/features/utils/test-helpers.js +0 -281
- package/dist/__tests__/features/utils/test-helpers.js.map +0 -1
- package/dist/adapters/cliffy-node.d.ts +0 -45
- package/dist/adapters/cliffy-node.d.ts.map +0 -1
- package/dist/adapters/cliffy-node.js +0 -61
- package/dist/adapters/cliffy-node.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 -969
- package/dist/agents/agent-manager.js.map +0 -1
- package/dist/agents/agent-registry.d.ts +0 -112
- package/dist/agents/agent-registry.d.ts.map +0 -1
- package/dist/agents/agent-registry.js +0 -341
- package/dist/agents/agent-registry.js.map +0 -1
- package/dist/cli/agents/analyst.d.ts +0 -28
- package/dist/cli/agents/analyst.d.ts.map +0 -1
- package/dist/cli/agents/analyst.js +0 -718
- package/dist/cli/agents/analyst.js.map +0 -1
- package/dist/cli/agents/architect.d.ts +0 -27
- package/dist/cli/agents/architect.d.ts.map +0 -1
- package/dist/cli/agents/architect.js +0 -729
- package/dist/cli/agents/architect.js.map +0 -1
- package/dist/cli/agents/base-agent.d.ts +0 -80
- package/dist/cli/agents/base-agent.d.ts.map +0 -1
- package/dist/cli/agents/base-agent.js +0 -385
- package/dist/cli/agents/base-agent.js.map +0 -1
- package/dist/cli/agents/capabilities.d.ts +0 -106
- package/dist/cli/agents/capabilities.d.ts.map +0 -1
- package/dist/cli/agents/capabilities.js +0 -556
- package/dist/cli/agents/capabilities.js.map +0 -1
- package/dist/cli/agents/coder.d.ts +0 -34
- package/dist/cli/agents/coder.d.ts.map +0 -1
- package/dist/cli/agents/coder.js +0 -806
- package/dist/cli/agents/coder.js.map +0 -1
- package/dist/cli/agents/coordinator.d.ts +0 -25
- package/dist/cli/agents/coordinator.d.ts.map +0 -1
- package/dist/cli/agents/coordinator.js +0 -454
- package/dist/cli/agents/coordinator.js.map +0 -1
- package/dist/cli/agents/hive-agents.d.ts +0 -85
- package/dist/cli/agents/hive-agents.d.ts.map +0 -1
- package/dist/cli/agents/hive-agents.js +0 -549
- package/dist/cli/agents/hive-agents.js.map +0 -1
- package/dist/cli/agents/index.d.ts +0 -111
- package/dist/cli/agents/index.d.ts.map +0 -1
- package/dist/cli/agents/index.js +0 -276
- package/dist/cli/agents/index.js.map +0 -1
- package/dist/cli/agents/researcher.d.ts +0 -24
- package/dist/cli/agents/researcher.d.ts.map +0 -1
- package/dist/cli/agents/researcher.js +0 -356
- package/dist/cli/agents/researcher.js.map +0 -1
- package/dist/cli/agents/tester.d.ts +0 -27
- package/dist/cli/agents/tester.d.ts.map +0 -1
- package/dist/cli/agents/tester.js +0 -594
- package/dist/cli/agents/tester.js.map +0 -1
- package/dist/cli/cli-core.d.ts +0 -49
- package/dist/cli/cli-core.d.ts.map +0 -1
- package/dist/cli/cli-core.js +0 -263
- 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 -703
- package/dist/cli/command-registry.js.map +0 -1
- package/dist/cli/commands/advanced-memory-commands.d.ts +0 -2
- package/dist/cli/commands/advanced-memory-commands.d.ts.map +0 -1
- package/dist/cli/commands/advanced-memory-commands.js +0 -849
- package/dist/cli/commands/advanced-memory-commands.js.map +0 -1
- package/dist/cli/commands/agent-simple.d.ts +0 -12
- package/dist/cli/commands/agent-simple.d.ts.map +0 -1
- package/dist/cli/commands/agent-simple.js +0 -353
- package/dist/cli/commands/agent-simple.js.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -7
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -369
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/claude.d.ts +0 -3
- package/dist/cli/commands/claude.d.ts.map +0 -1
- package/dist/cli/commands/claude.js +0 -154
- package/dist/cli/commands/claude.js.map +0 -1
- package/dist/cli/commands/config-integration.d.ts +0 -10
- package/dist/cli/commands/config-integration.d.ts.map +0 -1
- package/dist/cli/commands/config-integration.js +0 -416
- package/dist/cli/commands/config-integration.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -5
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -89
- 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 -1486
- package/dist/cli/commands/enterprise.js.map +0 -1
- package/dist/cli/commands/features.d.ts +0 -3
- package/dist/cli/commands/features.d.ts.map +0 -1
- package/dist/cli/commands/features.js +0 -77
- package/dist/cli/commands/features.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 -786
- package/dist/cli/commands/help.js.map +0 -1
- package/dist/cli/commands/hive-mind/index.d.ts +0 -15
- package/dist/cli/commands/hive-mind/index.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/index.js +0 -22
- package/dist/cli/commands/hive-mind/index.js.map +0 -1
- package/dist/cli/commands/hive-mind/init.d.ts +0 -10
- 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/optimize-memory.d.ts +0 -8
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/optimize-memory.js +0 -391
- package/dist/cli/commands/hive-mind/optimize-memory.js.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts +0 -10
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.js +0 -147
- package/dist/cli/commands/hive-mind/spawn.js.map +0 -1
- package/dist/cli/commands/hive-mind/status.d.ts +0 -10
- package/dist/cli/commands/hive-mind/status.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/status.js +0 -209
- package/dist/cli/commands/hive-mind/status.js.map +0 -1
- package/dist/cli/commands/hive-mind/task.d.ts +0 -10
- package/dist/cli/commands/hive-mind/task.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/task.js +0 -288
- package/dist/cli/commands/hive-mind/task.js.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts +0 -10
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.js +0 -513
- 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 -374
- package/dist/cli/commands/hive.js.map +0 -1
- package/dist/cli/commands/hook-types.d.ts +0 -95
- package/dist/cli/commands/hook-types.d.ts.map +0 -1
- package/dist/cli/commands/hook-types.js +0 -5
- package/dist/cli/commands/hook-types.js.map +0 -1
- package/dist/cli/commands/hook-validator.d.ts +0 -18
- package/dist/cli/commands/hook-validator.d.ts.map +0 -1
- package/dist/cli/commands/hook-validator.js +0 -165
- package/dist/cli/commands/hook-validator.js.map +0 -1
- package/dist/cli/commands/hook.d.ts +0 -8
- package/dist/cli/commands/hook.d.ts.map +0 -1
- package/dist/cli/commands/hook.js +0 -299
- package/dist/cli/commands/hook.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 -2450
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/mcp.d.ts +0 -6
- package/dist/cli/commands/mcp.d.ts.map +0 -1
- package/dist/cli/commands/mcp.js +0 -177
- package/dist/cli/commands/mcp.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -30
- 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 -6
- 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 -6
- package/dist/cli/commands/monitor.d.ts.map +0 -1
- package/dist/cli/commands/monitor.js +0 -477
- package/dist/cli/commands/monitor.js.map +0 -1
- package/dist/cli/commands/ruv-swarm.d.ts +0 -10
- package/dist/cli/commands/ruv-swarm.d.ts.map +0 -1
- package/dist/cli/commands/ruv-swarm.js +0 -563
- package/dist/cli/commands/ruv-swarm.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -6
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -543
- 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 -452
- 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 -281
- package/dist/cli/commands/start/process-manager.js.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +0 -25
- 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 -6
- package/dist/cli/commands/start/start-command.d.ts.map +0 -1
- package/dist/cli/commands/start/start-command.js +0 -450
- package/dist/cli/commands/start/start-command.js.map +0 -1
- package/dist/cli/commands/start/system-monitor.d.ts +0 -22
- package/dist/cli/commands/start/system-monitor.d.ts.map +0 -1
- package/dist/cli/commands/start/system-monitor.js +0 -267
- 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 -6
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -312
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/swarm-new.d.ts +0 -3
- package/dist/cli/commands/swarm-new.d.ts.map +0 -1
- package/dist/cli/commands/swarm-new.js +0 -1399
- package/dist/cli/commands/swarm-new.js.map +0 -1
- package/dist/cli/commands/swarm-spawn.d.ts +0 -24
- package/dist/cli/commands/swarm-spawn.d.ts.map +0 -1
- package/dist/cli/commands/swarm-spawn.js +0 -56
- package/dist/cli/commands/swarm-spawn.js.map +0 -1
- package/dist/cli/commands/swarm.d.ts +0 -3
- package/dist/cli/commands/swarm.d.ts.map +0 -1
- package/dist/cli/commands/swarm.js +0 -460
- package/dist/cli/commands/swarm.js.map +0 -1
- package/dist/cli/commands/task.d.ts +0 -6
- 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 -6
- package/dist/cli/commands/workflow.d.ts.map +0 -1
- package/dist/cli/commands/workflow.js +0 -620
- package/dist/cli/commands/workflow.js.map +0 -1
- package/dist/cli/completion.d.ts +0 -16
- package/dist/cli/completion.d.ts.map +0 -1
- package/dist/cli/completion.js +0 -535
- package/dist/cli/completion.js.map +0 -1
- package/dist/cli/formatter.d.ts +0 -66
- 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/index-remote.d.ts +0 -3
- package/dist/cli/index-remote.d.ts.map +0 -1
- package/dist/cli/index-remote.js +0 -126
- 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 -197
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/init/batch-tools.d.ts +0 -2
- package/dist/cli/init/batch-tools.d.ts.map +0 -1
- package/dist/cli/init/batch-tools.js +0 -387
- package/dist/cli/init/batch-tools.js.map +0 -1
- package/dist/cli/init/claude-config.d.ts +0 -3
- package/dist/cli/init/claude-config.d.ts.map +0 -1
- package/dist/cli/init/claude-config.js +0 -289
- package/dist/cli/init/claude-config.js.map +0 -1
- package/dist/cli/init/directory-structure.d.ts +0 -2
- package/dist/cli/init/directory-structure.d.ts.map +0 -1
- package/dist/cli/init/directory-structure.js +0 -144
- package/dist/cli/init/directory-structure.js.map +0 -1
- package/dist/cli/init/index.d.ts +0 -6
- package/dist/cli/init/index.d.ts.map +0 -1
- package/dist/cli/init/index.js +0 -52
- package/dist/cli/init/index.js.map +0 -1
- package/dist/cli/init/sparc-environment.d.ts +0 -2
- package/dist/cli/init/sparc-environment.d.ts.map +0 -1
- package/dist/cli/init/sparc-environment.js +0 -426
- package/dist/cli/init/sparc-environment.js.map +0 -1
- package/dist/cli/init/swarm-commands.d.ts +0 -2
- package/dist/cli/init/swarm-commands.d.ts.map +0 -1
- package/dist/cli/init/swarm-commands.js +0 -795
- package/dist/cli/init/swarm-commands.js.map +0 -1
- package/dist/cli/init/utils.d.ts +0 -5
- package/dist/cli/init/utils.d.ts.map +0 -1
- package/dist/cli/init/utils.js +0 -14
- package/dist/cli/init/utils.js.map +0 -1
- package/dist/cli/main.d.ts +0 -3
- package/dist/cli/main.d.ts.map +0 -1
- package/dist/cli/main.js +0 -26
- package/dist/cli/main.js.map +0 -1
- package/dist/cli/node-compat.d.ts +0 -66
- package/dist/cli/node-compat.d.ts.map +0 -1
- package/dist/cli/node-compat.js +0 -130
- package/dist/cli/node-compat.js.map +0 -1
- package/dist/cli/node-repl.d.ts +0 -5
- package/dist/cli/node-repl.d.ts.map +0 -1
- package/dist/cli/node-repl.js +0 -677
- package/dist/cli/node-repl.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 -909
- 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 -263
- package/dist/cli/runtime-detector.js.map +0 -1
- package/dist/cli/simple-cli.d.ts +0 -3
- package/dist/cli/simple-cli.d.ts.map +0 -1
- package/dist/cli/simple-cli.js +0 -3059
- package/dist/cli/simple-cli.js.map +0 -1
- package/dist/cli/simple-commands/agent.d.ts +0 -2
- package/dist/cli/simple-commands/agent.d.ts.map +0 -1
- package/dist/cli/simple-commands/agent.js +0 -175
- 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 -200
- package/dist/cli/simple-commands/analysis.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 -231
- 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 -284
- package/dist/cli/simple-commands/batch-manager.js.map +0 -1
- package/dist/cli/simple-commands/config.d.ts +0 -2
- package/dist/cli/simple-commands/config.d.ts.map +0 -1
- package/dist/cli/simple-commands/config.js +0 -277
- 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 -229
- package/dist/cli/simple-commands/coordination.js.map +0 -1
- package/dist/cli/simple-commands/features.d.ts +0 -2
- package/dist/cli/simple-commands/features.d.ts.map +0 -1
- package/dist/cli/simple-commands/features.js +0 -92
- package/dist/cli/simple-commands/features.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 -289
- package/dist/cli/simple-commands/github.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 -614
- 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 -832
- 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 -647
- 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 -204
- 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 -857
- 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 -1038
- package/dist/cli/simple-commands/hive-mind/memory.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 -518
- package/dist/cli/simple-commands/hive-mind/performance-optimizer.js.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.d.ts +0 -294
- package/dist/cli/simple-commands/hive-mind/queen.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind/queen.js +0 -684
- package/dist/cli/simple-commands/hive-mind/queen.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 -18
- package/dist/cli/simple-commands/hive-mind.d.ts.map +0 -1
- package/dist/cli/simple-commands/hive-mind.js +0 -1847
- 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 -586
- package/dist/cli/simple-commands/hooks.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 -550
- 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 -432
- 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 -870
- 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 -309
- 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 -480
- 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 -29
- 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 -205
- package/dist/cli/simple-commands/init/claude-commands/sparc-commands.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 -113
- package/dist/cli/simple-commands/init/executable-wrapper.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 -92
- package/dist/cli/simple-commands/init/help.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 -1042
- 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 -278
- 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 -491
- 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 -350
- 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 -705
- 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 -487
- 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 -431
- package/dist/cli/simple-commands/init/rollback/state-tracker.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 -61
- package/dist/cli/simple-commands/init/sparc-structure.js.map +0 -1
- package/dist/cli/simple-commands/init/templates/claude-md.d.ts +0 -5
- 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 -464
- 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 -18
- 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 -1315
- 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 -764
- package/dist/cli/simple-commands/init/templates/sparc-modes.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 -311
- 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 -540
- 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 -342
- 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 -348
- 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 -265
- package/dist/cli/simple-commands/init/validation/pre-init-validator.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 -358
- package/dist/cli/simple-commands/mcp.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 -277
- package/dist/cli/simple-commands/memory.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 -157
- package/dist/cli/simple-commands/monitor.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 -666
- package/dist/cli/simple-commands/process-ui-enhanced.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 -468
- 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 -133
- 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 -263
- 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 -273
- package/dist/cli/simple-commands/status.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 -212
- 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 -285
- 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 -253
- 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 -1675
- 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 -145
- package/dist/cli/simple-commands/task.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/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 -814
- package/dist/cli/simple-commands/web-server.js.map +0 -1
- package/dist/cli/simple-mcp.d.ts +0 -6
- package/dist/cli/simple-mcp.d.ts.map +0 -1
- package/dist/cli/simple-mcp.js +0 -107
- package/dist/cli/simple-mcp.js.map +0 -1
- package/dist/cli/simple-orchestrator.d.ts +0 -16
- package/dist/cli/simple-orchestrator.d.ts.map +0 -1
- package/dist/cli/simple-orchestrator.js +0 -833
- package/dist/cli/simple-orchestrator.js.map +0 -1
- package/dist/cli/ui/compatible-ui.d.ts +0 -45
- package/dist/cli/ui/compatible-ui.d.ts.map +0 -1
- package/dist/cli/ui/compatible-ui.js +0 -318
- package/dist/cli/ui/compatible-ui.js.map +0 -1
- package/dist/cli/ui/fallback-handler.d.ts +0 -26
- package/dist/cli/ui/fallback-handler.d.ts.map +0 -1
- package/dist/cli/ui/fallback-handler.js +0 -166
- package/dist/cli/ui/fallback-handler.js.map +0 -1
- package/dist/cli/ui/index.d.ts +0 -11
- package/dist/cli/ui/index.d.ts.map +0 -1
- package/dist/cli/ui/index.js +0 -33
- package/dist/cli/ui/index.js.map +0 -1
- package/dist/cli/utils/environment-detector.d.ts +0 -54
- package/dist/cli/utils/environment-detector.d.ts.map +0 -1
- package/dist/cli/utils/environment-detector.js +0 -265
- package/dist/cli/utils/environment-detector.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/prompt-defaults.d.ts +0 -82
- package/dist/cli/utils/prompt-defaults.d.ts.map +0 -1
- package/dist/cli/utils/prompt-defaults.js +0 -253
- package/dist/cli/utils/prompt-defaults.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 -133
- package/dist/cli/utils/safe-interactive.js.map +0 -1
- package/dist/cli/utils.d.ts +0 -74
- package/dist/cli/utils.d.ts.map +0 -1
- package/dist/cli/utils.js +0 -570
- package/dist/cli/utils.js.map +0 -1
- package/dist/communication/message-bus.d.ts +0 -283
- package/dist/communication/message-bus.d.ts.map +0 -1
- package/dist/communication/message-bus.js +0 -959
- package/dist/communication/message-bus.js.map +0 -1
- package/dist/config/config-manager.d.ts +0 -174
- package/dist/config/config-manager.d.ts.map +0 -1
- package/dist/config/config-manager.js +0 -443
- package/dist/config/config-manager.js.map +0 -1
- package/dist/config/ruv-swarm-config.d.ts +0 -167
- package/dist/config/ruv-swarm-config.d.ts.map +0 -1
- package/dist/config/ruv-swarm-config.js +0 -274
- package/dist/config/ruv-swarm-config.js.map +0 -1
- package/dist/config/ruv-swarm-integration.d.ts +0 -93
- package/dist/config/ruv-swarm-integration.d.ts.map +0 -1
- package/dist/config/ruv-swarm-integration.js +0 -292
- package/dist/config/ruv-swarm-integration.js.map +0 -1
- package/dist/constants/agent-types.d.ts +0 -46
- package/dist/constants/agent-types.d.ts.map +0 -1
- package/dist/constants/agent-types.js +0 -50
- 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 -386
- package/dist/coordination/advanced-scheduler.js.map +0 -1
- package/dist/coordination/advanced-task-executor.d.ts +0 -100
- package/dist/coordination/advanced-task-executor.d.ts.map +0 -1
- package/dist/coordination/advanced-task-executor.js +0 -463
- package/dist/coordination/advanced-task-executor.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 -362
- 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 -298
- 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 -358
- 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 -386
- package/dist/coordination/dependency-graph.js.map +0 -1
- package/dist/coordination/hive-orchestrator.d.ts +0 -118
- package/dist/coordination/hive-orchestrator.d.ts.map +0 -1
- package/dist/coordination/hive-orchestrator.js +0 -321
- package/dist/coordination/hive-orchestrator.js.map +0 -1
- package/dist/coordination/hive-protocol.d.ts +0 -117
- package/dist/coordination/hive-protocol.d.ts.map +0 -1
- package/dist/coordination/hive-protocol.js +0 -373
- package/dist/coordination/hive-protocol.js.map +0 -1
- package/dist/coordination/index.d.ts +0 -14
- package/dist/coordination/index.d.ts.map +0 -1
- package/dist/coordination/index.js +0 -21
- package/dist/coordination/index.js.map +0 -1
- package/dist/coordination/load-balancer.d.ts +0 -139
- package/dist/coordination/load-balancer.d.ts.map +0 -1
- package/dist/coordination/load-balancer.js +0 -700
- package/dist/coordination/load-balancer.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 -360
- 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 -434
- 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 -250
- 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 -565
- 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 -155
- package/dist/coordination/work-stealing.js.map +0 -1
- package/dist/core/config.d.ts +0 -239
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -1128
- package/dist/core/config.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -60
- 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 -52
- package/dist/core/json-persistence.d.ts.map +0 -1
- package/dist/core/json-persistence.js +0 -115
- package/dist/core/json-persistence.js.map +0 -1
- package/dist/core/logger.d.ts +0 -57
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js +0 -253
- 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 -210
- package/dist/core/orchestrator-fixed.js.map +0 -1
- package/dist/core/orchestrator.d.ts +0 -103
- package/dist/core/orchestrator.d.ts.map +0 -1
- package/dist/core/orchestrator.js +0 -965
- package/dist/core/orchestrator.js.map +0 -1
- package/dist/core/persistence.d.ts +0 -50
- package/dist/core/persistence.d.ts.map +0 -1
- package/dist/core/persistence.js +0 -186
- package/dist/core/persistence.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 -949
- 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 -992
- 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 -784
- 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 -823
- package/dist/enterprise/deployment-manager.js.map +0 -1
- package/dist/enterprise/index.d.ts +0 -13
- package/dist/enterprise/index.d.ts.map +0 -1
- package/dist/enterprise/index.js +0 -7
- package/dist/enterprise/index.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 -529
- 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 -902
- package/dist/enterprise/security-manager.js.map +0 -1
- package/dist/features/adapters/CliFeatureAdapter.d.ts +0 -36
- package/dist/features/adapters/CliFeatureAdapter.d.ts.map +0 -1
- package/dist/features/adapters/CliFeatureAdapter.js +0 -311
- package/dist/features/adapters/CliFeatureAdapter.js.map +0 -1
- package/dist/features/adapters/McpFeatureAdapter.d.ts +0 -61
- package/dist/features/adapters/McpFeatureAdapter.d.ts.map +0 -1
- package/dist/features/adapters/McpFeatureAdapter.js +0 -487
- package/dist/features/adapters/McpFeatureAdapter.js.map +0 -1
- package/dist/features/adapters/index.d.ts +0 -7
- package/dist/features/adapters/index.d.ts.map +0 -1
- package/dist/features/adapters/index.js +0 -7
- package/dist/features/adapters/index.js.map +0 -1
- package/dist/features/built-in/index.d.ts +0 -53
- package/dist/features/built-in/index.d.ts.map +0 -1
- package/dist/features/built-in/index.js +0 -286
- package/dist/features/built-in/index.js.map +0 -1
- package/dist/features/core/FeatureManager.d.ts +0 -37
- package/dist/features/core/FeatureManager.d.ts.map +0 -1
- package/dist/features/core/FeatureManager.js +0 -291
- package/dist/features/core/FeatureManager.js.map +0 -1
- package/dist/features/core/FeatureRegistry.d.ts +0 -24
- package/dist/features/core/FeatureRegistry.d.ts.map +0 -1
- package/dist/features/core/FeatureRegistry.js +0 -75
- package/dist/features/core/FeatureRegistry.js.map +0 -1
- package/dist/features/core/configuration-manager.d.ts +0 -16
- package/dist/features/core/configuration-manager.d.ts.map +0 -1
- package/dist/features/core/configuration-manager.js +0 -94
- package/dist/features/core/configuration-manager.js.map +0 -1
- package/dist/features/core/feature-manager.d.ts +0 -23
- package/dist/features/core/feature-manager.d.ts.map +0 -1
- package/dist/features/core/feature-manager.js +0 -163
- package/dist/features/core/feature-manager.js.map +0 -1
- package/dist/features/core/feature-registry.d.ts +0 -16
- package/dist/features/core/feature-registry.d.ts.map +0 -1
- package/dist/features/core/feature-registry.js +0 -175
- package/dist/features/core/feature-registry.js.map +0 -1
- package/dist/features/core/feature.d.ts +0 -25
- package/dist/features/core/feature.d.ts.map +0 -1
- package/dist/features/core/feature.js +0 -113
- package/dist/features/core/feature.js.map +0 -1
- package/dist/features/core/index.d.ts +0 -10
- package/dist/features/core/index.d.ts.map +0 -1
- package/dist/features/core/index.js +0 -11
- package/dist/features/core/index.js.map +0 -1
- package/dist/features/core/transparency-layer.d.ts +0 -16
- package/dist/features/core/transparency-layer.d.ts.map +0 -1
- package/dist/features/core/transparency-layer.js +0 -61
- package/dist/features/core/transparency-layer.js.map +0 -1
- package/dist/features/hooks/command-hooks.d.ts +0 -40
- package/dist/features/hooks/command-hooks.d.ts.map +0 -1
- package/dist/features/hooks/command-hooks.js +0 -159
- package/dist/features/hooks/command-hooks.js.map +0 -1
- package/dist/features/index.d.ts +0 -6
- package/dist/features/index.d.ts.map +0 -1
- package/dist/features/index.js +0 -8
- package/dist/features/index.js.map +0 -1
- package/dist/features/initializer.d.ts +0 -17
- package/dist/features/initializer.d.ts.map +0 -1
- package/dist/features/initializer.js +0 -41
- package/dist/features/initializer.js.map +0 -1
- package/dist/features/tests/manual-test.d.ts +0 -6
- package/dist/features/tests/manual-test.d.ts.map +0 -1
- package/dist/features/tests/manual-test.js +0 -130
- package/dist/features/tests/manual-test.js.map +0 -1
- package/dist/features/types/IFeature.d.ts +0 -148
- package/dist/features/types/IFeature.d.ts.map +0 -1
- package/dist/features/types/IFeature.js +0 -43
- package/dist/features/types/IFeature.js.map +0 -1
- package/dist/features/types/IFeatureAdapter.d.ts +0 -298
- package/dist/features/types/IFeatureAdapter.d.ts.map +0 -1
- package/dist/features/types/IFeatureAdapter.js +0 -2
- package/dist/features/types/IFeatureAdapter.js.map +0 -1
- package/dist/features/types/IFeatureConfiguration.d.ts +0 -380
- package/dist/features/types/IFeatureConfiguration.d.ts.map +0 -1
- package/dist/features/types/IFeatureConfiguration.js +0 -2
- package/dist/features/types/IFeatureConfiguration.js.map +0 -1
- package/dist/features/types/IFeatureManager.d.ts +0 -216
- package/dist/features/types/IFeatureManager.d.ts.map +0 -1
- package/dist/features/types/IFeatureManager.js +0 -2
- package/dist/features/types/IFeatureManager.js.map +0 -1
- package/dist/features/types/IFeatureMetrics.d.ts +0 -543
- package/dist/features/types/IFeatureMetrics.d.ts.map +0 -1
- package/dist/features/types/IFeatureMetrics.js +0 -25
- package/dist/features/types/IFeatureMetrics.js.map +0 -1
- package/dist/features/types/ITransparencyLayer.d.ts +0 -552
- package/dist/features/types/ITransparencyLayer.d.ts.map +0 -1
- package/dist/features/types/ITransparencyLayer.js +0 -60
- package/dist/features/types/ITransparencyLayer.js.map +0 -1
- package/dist/features/types/feature-types.d.ts +0 -153
- package/dist/features/types/feature-types.d.ts.map +0 -1
- package/dist/features/types/feature-types.js +0 -40
- package/dist/features/types/feature-types.js.map +0 -1
- package/dist/features/types/index.d.ts +0 -13
- package/dist/features/types/index.d.ts.map +0 -1
- package/dist/features/types/index.js +0 -16
- package/dist/features/types/index.js.map +0 -1
- package/dist/features/types/type-guards.d.ts +0 -100
- package/dist/features/types/type-guards.d.ts.map +0 -1
- package/dist/features/types/type-guards.js +0 -212
- package/dist/features/types/type-guards.js.map +0 -1
- package/dist/features/types/utility-types.d.ts +0 -440
- package/dist/features/types/utility-types.d.ts.map +0 -1
- package/dist/features/types/utility-types.js +0 -2
- package/dist/features/types/utility-types.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 -93
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.js +0 -551
- 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 -439
- 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 -1185
- package/dist/hive-mind/core/Memory.js.map +0 -1
- package/dist/hive-mind/core/MemoryMonitor.d.ts +0 -183
- package/dist/hive-mind/core/MemoryMonitor.d.ts.map +0 -1
- package/dist/hive-mind/core/MemoryMonitor.js +0 -547
- package/dist/hive-mind/core/MemoryMonitor.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 -586
- package/dist/hive-mind/core/Queen.js.map +0 -1
- package/dist/hive-mind/index.d.ts +0 -17
- package/dist/hive-mind/index.d.ts.map +0 -1
- package/dist/hive-mind/index.js +0 -21
- package/dist/hive-mind/index.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 -476
- 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 -746
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +0 -1
- package/dist/hive-mind/types.d.ts +0 -298
- 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/integration/mock-components.d.ts +0 -107
- package/dist/integration/mock-components.d.ts.map +0 -1
- package/dist/integration/mock-components.js +0 -357
- package/dist/integration/mock-components.js.map +0 -1
- package/dist/integration/system-integration.d.ts +0 -84
- package/dist/integration/system-integration.d.ts.map +0 -1
- package/dist/integration/system-integration.js +0 -429
- package/dist/integration/system-integration.js.map +0 -1
- package/dist/integration/types.d.ts +0 -119
- package/dist/integration/types.d.ts.map +0 -1
- package/dist/integration/types.js +0 -5
- package/dist/integration/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 -343
- package/dist/mcp/auth.js.map +0 -1
- package/dist/mcp/claude-code-wrapper.d.ts +0 -26
- package/dist/mcp/claude-code-wrapper.d.ts.map +0 -1
- package/dist/mcp/claude-code-wrapper.js +0 -598
- package/dist/mcp/claude-code-wrapper.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 -1142
- package/dist/mcp/claude-flow-tools.js.map +0 -1
- package/dist/mcp/client.d.ts +0 -41
- package/dist/mcp/client.d.ts.map +0 -1
- package/dist/mcp/client.js +0 -194
- package/dist/mcp/client.js.map +0 -1
- package/dist/mcp/feature-tools.d.ts +0 -24
- package/dist/mcp/feature-tools.d.ts.map +0 -1
- package/dist/mcp/feature-tools.js +0 -65
- package/dist/mcp/feature-tools.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -134
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -212
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/integrate-wrapper.d.ts +0 -16
- package/dist/mcp/integrate-wrapper.d.ts.map +0 -1
- package/dist/mcp/integrate-wrapper.js +0 -77
- package/dist/mcp/integrate-wrapper.js.map +0 -1
- package/dist/mcp/lifecycle-manager.d.ts +0 -121
- package/dist/mcp/lifecycle-manager.d.ts.map +0 -1
- package/dist/mcp/lifecycle-manager.js +0 -365
- package/dist/mcp/lifecycle-manager.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 -389
- package/dist/mcp/load-balancer.js.map +0 -1
- package/dist/mcp/orchestration-integration.d.ts +0 -135
- package/dist/mcp/orchestration-integration.d.ts.map +0 -1
- package/dist/mcp/orchestration-integration.js +0 -722
- package/dist/mcp/orchestration-integration.js.map +0 -1
- package/dist/mcp/performance-monitor.d.ts +0 -164
- package/dist/mcp/performance-monitor.d.ts.map +0 -1
- package/dist/mcp/performance-monitor.js +0 -478
- package/dist/mcp/performance-monitor.js.map +0 -1
- package/dist/mcp/protocol-manager.d.ts +0 -88
- package/dist/mcp/protocol-manager.d.ts.map +0 -1
- package/dist/mcp/protocol-manager.js +0 -358
- package/dist/mcp/protocol-manager.js.map +0 -1
- package/dist/mcp/recovery/connection-health-monitor.d.ts +0 -69
- package/dist/mcp/recovery/connection-health-monitor.d.ts.map +0 -1
- package/dist/mcp/recovery/connection-health-monitor.js +0 -241
- package/dist/mcp/recovery/connection-health-monitor.js.map +0 -1
- package/dist/mcp/recovery/connection-state-manager.d.ts +0 -102
- package/dist/mcp/recovery/connection-state-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/connection-state-manager.js +0 -318
- package/dist/mcp/recovery/connection-state-manager.js.map +0 -1
- package/dist/mcp/recovery/fallback-coordinator.d.ts +0 -79
- package/dist/mcp/recovery/fallback-coordinator.d.ts.map +0 -1
- package/dist/mcp/recovery/fallback-coordinator.js +0 -278
- package/dist/mcp/recovery/fallback-coordinator.js.map +0 -1
- package/dist/mcp/recovery/index.d.ts +0 -10
- package/dist/mcp/recovery/index.d.ts.map +0 -1
- package/dist/mcp/recovery/index.js +0 -10
- package/dist/mcp/recovery/index.js.map +0 -1
- package/dist/mcp/recovery/reconnection-manager.d.ts +0 -69
- package/dist/mcp/recovery/reconnection-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/reconnection-manager.js +0 -226
- package/dist/mcp/recovery/reconnection-manager.js.map +0 -1
- package/dist/mcp/recovery/recovery-manager.d.ts +0 -93
- package/dist/mcp/recovery/recovery-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/recovery-manager.js +0 -250
- package/dist/mcp/recovery/recovery-manager.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 -201
- 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 -518
- package/dist/mcp/ruv-swarm-tools.js.map +0 -1
- package/dist/mcp/server-with-wrapper.d.ts +0 -3
- package/dist/mcp/server-with-wrapper.d.ts.map +0 -1
- package/dist/mcp/server-with-wrapper.js +0 -36
- package/dist/mcp/server-with-wrapper.js.map +0 -1
- package/dist/mcp/server-wrapper-mode.d.ts +0 -3
- package/dist/mcp/server-wrapper-mode.d.ts.map +0 -1
- package/dist/mcp/server-wrapper-mode.js +0 -28
- package/dist/mcp/server-wrapper-mode.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 -533
- 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 -322
- package/dist/mcp/session-manager.js.map +0 -1
- package/dist/mcp/sparc-modes.d.ts +0 -12
- package/dist/mcp/sparc-modes.d.ts.map +0 -1
- package/dist/mcp/sparc-modes.js +0 -370
- package/dist/mcp/sparc-modes.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 -711
- 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 -418
- 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 -2
- package/dist/mcp/transports/base.js.map +0 -1
- package/dist/mcp/transports/http.d.ts +0 -45
- 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 -34
- package/dist/mcp/transports/stdio.d.ts.map +0 -1
- package/dist/mcp/transports/stdio.js +0 -203
- package/dist/mcp/transports/stdio.js.map +0 -1
- package/dist/memory/advanced-memory-manager.d.ts +0 -303
- package/dist/memory/advanced-memory-manager.d.ts.map +0 -1
- package/dist/memory/advanced-memory-manager.js +0 -1458
- package/dist/memory/advanced-memory-manager.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 -2
- package/dist/memory/backends/base.js.map +0 -1
- package/dist/memory/backends/markdown.d.ts +0 -32
- 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 -29
- package/dist/memory/backends/sqlite.d.ts.map +0 -1
- package/dist/memory/backends/sqlite.js +0 -272
- 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 -186
- 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 -711
- package/dist/memory/distributed-memory.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 -188
- 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 -426
- package/dist/memory/manager.js.map +0 -1
- package/dist/memory/shared-memory.js +0 -656
- package/dist/memory/shared-memory.js.map +0 -1
- package/dist/memory/sqlite-store.js +0 -263
- package/dist/memory/sqlite-store.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 -461
- package/dist/memory/swarm-memory.js.map +0 -1
- package/dist/migration/index.d.ts +0 -3
- package/dist/migration/index.d.ts.map +0 -1
- package/dist/migration/index.js +0 -166
- package/dist/migration/index.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 -15
- package/dist/migration/migration-analyzer.d.ts.map +0 -1
- package/dist/migration/migration-analyzer.js +0 -279
- 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 -499
- package/dist/migration/migration-runner.js.map +0 -1
- package/dist/migration/migration-validator.d.ts +0 -14
- package/dist/migration/migration-validator.d.ts.map +0 -1
- package/dist/migration/migration-validator.js +0 -313
- package/dist/migration/migration-validator.js.map +0 -1
- package/dist/migration/progress-reporter.d.ts +0 -25
- 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 -21
- package/dist/migration/rollback-manager.d.ts.map +0 -1
- package/dist/migration/rollback-manager.js +0 -348
- 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/monitoring/diagnostics.d.ts +0 -109
- package/dist/monitoring/diagnostics.d.ts.map +0 -1
- package/dist/monitoring/diagnostics.js +0 -545
- package/dist/monitoring/diagnostics.js.map +0 -1
- package/dist/monitoring/health-check.d.ts +0 -91
- package/dist/monitoring/health-check.d.ts.map +0 -1
- package/dist/monitoring/health-check.js +0 -371
- package/dist/monitoring/health-check.js.map +0 -1
- package/dist/monitoring/real-time-monitor.d.ts +0 -230
- package/dist/monitoring/real-time-monitor.d.ts.map +0 -1
- package/dist/monitoring/real-time-monitor.js +0 -839
- package/dist/monitoring/real-time-monitor.js.map +0 -1
- package/dist/resources/resource-manager.d.ts +0 -390
- package/dist/resources/resource-manager.d.ts.map +0 -1
- package/dist/resources/resource-manager.js +0 -1220
- package/dist/resources/resource-manager.js.map +0 -1
- package/dist/swarm/claude-flow-executor.d.ts +0 -28
- package/dist/swarm/claude-flow-executor.d.ts.map +0 -1
- package/dist/swarm/claude-flow-executor.js +0 -210
- package/dist/swarm/claude-flow-executor.js.map +0 -1
- package/dist/swarm/coordinator.d.ts +0 -134
- package/dist/swarm/coordinator.d.ts.map +0 -1
- package/dist/swarm/coordinator.js +0 -2607
- package/dist/swarm/coordinator.js.map +0 -1
- package/dist/swarm/direct-executor.d.ts +0 -48
- package/dist/swarm/direct-executor.d.ts.map +0 -1
- package/dist/swarm/direct-executor.js +0 -1113
- package/dist/swarm/direct-executor.js.map +0 -1
- package/dist/swarm/executor-v2.d.ts +0 -23
- package/dist/swarm/executor-v2.d.ts.map +0 -1
- package/dist/swarm/executor-v2.js +0 -320
- package/dist/swarm/executor-v2.js.map +0 -1
- package/dist/swarm/executor.d.ts +0 -117
- package/dist/swarm/executor.d.ts.map +0 -1
- package/dist/swarm/executor.js +0 -791
- package/dist/swarm/executor.js.map +0 -1
- package/dist/swarm/index.d.ts +0 -31
- package/dist/swarm/index.d.ts.map +0 -1
- package/dist/swarm/index.js +0 -42
- package/dist/swarm/index.js.map +0 -1
- package/dist/swarm/memory.d.ts +0 -176
- package/dist/swarm/memory.d.ts.map +0 -1
- package/dist/swarm/memory.js +0 -1068
- package/dist/swarm/memory.js.map +0 -1
- package/dist/swarm/optimizations/async-file-manager.d.ts +0 -49
- package/dist/swarm/optimizations/async-file-manager.d.ts.map +0 -1
- package/dist/swarm/optimizations/async-file-manager.js +0 -248
- package/dist/swarm/optimizations/async-file-manager.js.map +0 -1
- package/dist/swarm/optimizations/circular-buffer.d.ts +0 -46
- package/dist/swarm/optimizations/circular-buffer.d.ts.map +0 -1
- package/dist/swarm/optimizations/circular-buffer.js +0 -159
- package/dist/swarm/optimizations/circular-buffer.js.map +0 -1
- package/dist/swarm/optimizations/connection-pool.d.ts +0 -54
- package/dist/swarm/optimizations/connection-pool.d.ts.map +0 -1
- package/dist/swarm/optimizations/connection-pool.js +0 -227
- package/dist/swarm/optimizations/connection-pool.js.map +0 -1
- package/dist/swarm/optimizations/index.d.ts +0 -24
- package/dist/swarm/optimizations/index.d.ts.map +0 -1
- package/dist/swarm/optimizations/index.js +0 -30
- package/dist/swarm/optimizations/index.js.map +0 -1
- package/dist/swarm/optimizations/optimized-executor.d.ts +0 -109
- package/dist/swarm/optimizations/optimized-executor.d.ts.map +0 -1
- package/dist/swarm/optimizations/optimized-executor.js +0 -321
- package/dist/swarm/optimizations/optimized-executor.js.map +0 -1
- package/dist/swarm/optimizations/ttl-map.d.ts +0 -78
- package/dist/swarm/optimizations/ttl-map.d.ts.map +0 -1
- package/dist/swarm/optimizations/ttl-map.js +0 -229
- package/dist/swarm/optimizations/ttl-map.js.map +0 -1
- package/dist/swarm/prompt-cli.d.ts +0 -5
- package/dist/swarm/prompt-cli.d.ts.map +0 -1
- package/dist/swarm/prompt-cli.js +0 -256
- package/dist/swarm/prompt-cli.js.map +0 -1
- package/dist/swarm/prompt-copier-enhanced.d.ts +0 -17
- package/dist/swarm/prompt-copier-enhanced.d.ts.map +0 -1
- package/dist/swarm/prompt-copier-enhanced.js +0 -190
- package/dist/swarm/prompt-copier-enhanced.js.map +0 -1
- package/dist/swarm/prompt-copier.d.ts +0 -76
- package/dist/swarm/prompt-copier.d.ts.map +0 -1
- package/dist/swarm/prompt-copier.js +0 -380
- package/dist/swarm/prompt-copier.js.map +0 -1
- package/dist/swarm/prompt-manager.d.ts +0 -72
- package/dist/swarm/prompt-manager.d.ts.map +0 -1
- package/dist/swarm/prompt-manager.js +0 -270
- package/dist/swarm/prompt-manager.js.map +0 -1
- package/dist/swarm/prompt-utils.d.ts +0 -52
- package/dist/swarm/prompt-utils.d.ts.map +0 -1
- package/dist/swarm/prompt-utils.js +0 -265
- package/dist/swarm/prompt-utils.js.map +0 -1
- package/dist/swarm/sparc-executor.d.ts +0 -105
- package/dist/swarm/sparc-executor.d.ts.map +0 -1
- package/dist/swarm/sparc-executor.js +0 -1364
- package/dist/swarm/sparc-executor.js.map +0 -1
- package/dist/swarm/strategies/auto.d.ts +0 -57
- package/dist/swarm/strategies/auto.d.ts.map +0 -1
- package/dist/swarm/strategies/auto.js +0 -623
- package/dist/swarm/strategies/auto.js.map +0 -1
- package/dist/swarm/strategies/base.d.ts +0 -78
- package/dist/swarm/strategies/base.d.ts.map +0 -1
- package/dist/swarm/strategies/base.js +0 -108
- package/dist/swarm/strategies/base.js.map +0 -1
- package/dist/swarm/strategies/research.d.ts +0 -75
- package/dist/swarm/strategies/research.d.ts.map +0 -1
- package/dist/swarm/strategies/research.js +0 -841
- package/dist/swarm/strategies/research.js.map +0 -1
- package/dist/swarm/strategies/strategy-metrics-patch.d.ts +0 -11
- package/dist/swarm/strategies/strategy-metrics-patch.d.ts.map +0 -1
- package/dist/swarm/strategies/strategy-metrics-patch.js +0 -2
- package/dist/swarm/strategies/strategy-metrics-patch.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 -51
- package/dist/swarm/types.js.map +0 -1
- package/dist/swarm/workers/copy-worker.d.ts +0 -2
- package/dist/swarm/workers/copy-worker.d.ts.map +0 -1
- package/dist/swarm/workers/copy-worker.js +0 -56
- package/dist/swarm/workers/copy-worker.js.map +0 -1
- package/dist/task/commands.d.ts +0 -60
- package/dist/task/commands.d.ts.map +0 -1
- package/dist/task/commands.js +0 -107
- package/dist/task/commands.js.map +0 -1
- package/dist/task/coordination.d.ts +0 -109
- package/dist/task/coordination.d.ts.map +0 -1
- package/dist/task/coordination.js +0 -629
- package/dist/task/coordination.js.map +0 -1
- package/dist/task/engine.d.ts +0 -198
- package/dist/task/engine.d.ts.map +0 -1
- package/dist/task/engine.js +0 -498
- package/dist/task/engine.js.map +0 -1
- package/dist/task/index.d.ts +0 -103
- package/dist/task/index.d.ts.map +0 -1
- package/dist/task/index.js +0 -276
- package/dist/task/index.js.map +0 -1
- package/dist/task/types.d.ts +0 -56
- package/dist/task/types.d.ts.map +0 -1
- package/dist/task/types.js +0 -2
- package/dist/task/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 -20
- package/dist/terminal/adapters/vscode.d.ts.map +0 -1
- package/dist/terminal/adapters/vscode.js +0 -265
- 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 -237
- 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 -205
- 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 -206
- package/dist/terminal/session.js.map +0 -1
- package/dist/types/index.d.ts +0 -28
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -15
- package/dist/types/index.js.map +0 -1
- package/dist/ui/hive-dashboard.d.ts +0 -140
- package/dist/ui/hive-dashboard.d.ts.map +0 -1
- package/dist/ui/hive-dashboard.js +0 -281
- package/dist/ui/hive-dashboard.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 -131
- package/dist/utils/helpers.d.ts.map +0 -1
- package/dist/utils/helpers.js +0 -447
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -4
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js +0 -39
- package/dist/utils/paths.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 -165
- package/dist/utils/type-guards.js.map +0 -1
- package/dist/utils/types.d.ts +0 -512
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -37
- package/dist/utils/types.js.map +0 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enhanced Memory Functions for Comprehensive Swarm Coordination
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { FallbackMemoryStore } from './fallback-store.js';
|
|
6
|
+
|
|
7
|
+
export class EnhancedMemory extends FallbackMemoryStore {
|
|
8
|
+
constructor(options = {}) {
|
|
9
|
+
super(options);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async initialize() {
|
|
13
|
+
await super.initialize();
|
|
14
|
+
// Apply enhanced schema
|
|
15
|
+
try {
|
|
16
|
+
const { readFileSync } = await import('fs');
|
|
17
|
+
const schemaPath = new URL('./enhanced-schema.sql', import.meta.url);
|
|
18
|
+
const schema = readFileSync(schemaPath, 'utf-8');
|
|
19
|
+
this.db.exec(schema);
|
|
20
|
+
} catch (error) {
|
|
21
|
+
console.error(`[${new Date().toISOString()}] ERROR [enhanced-memory] Failed to apply enhanced schema:`, error);
|
|
22
|
+
// Continue with basic schema only
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// === SESSION MANAGEMENT ===
|
|
27
|
+
|
|
28
|
+
async saveSessionState(sessionId, state) {
|
|
29
|
+
const stmt = this.db.prepare(`
|
|
30
|
+
INSERT OR REPLACE INTO session_state
|
|
31
|
+
(session_id, user_id, project_path, active_branch, last_activity, state, context, environment)
|
|
32
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?)
|
|
33
|
+
`);
|
|
34
|
+
|
|
35
|
+
return stmt.run(
|
|
36
|
+
sessionId,
|
|
37
|
+
state.userId || process.env.USER,
|
|
38
|
+
state.projectPath || process.cwd(),
|
|
39
|
+
state.activeBranch || 'main',
|
|
40
|
+
Date.now(),
|
|
41
|
+
state.state || 'active',
|
|
42
|
+
JSON.stringify(state.context || {}),
|
|
43
|
+
JSON.stringify(state.environment || process.env)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async resumeSession(sessionId) {
|
|
48
|
+
const stmt = this.db.prepare('SELECT * FROM session_state WHERE session_id = ?');
|
|
49
|
+
const session = stmt.get(sessionId);
|
|
50
|
+
if (session) {
|
|
51
|
+
session.context = JSON.parse(session.context);
|
|
52
|
+
session.environment = JSON.parse(session.environment);
|
|
53
|
+
}
|
|
54
|
+
return session;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async getActiveSessions() {
|
|
58
|
+
const stmt = this.db.prepare('SELECT * FROM active_sessions');
|
|
59
|
+
return stmt.all();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// === MCP TOOL TRACKING ===
|
|
63
|
+
|
|
64
|
+
async trackToolUsage(toolName, args, result, executionTime, success = true, error = null) {
|
|
65
|
+
const stmt = this.db.prepare(`
|
|
66
|
+
INSERT INTO mcp_tool_usage
|
|
67
|
+
(tool_name, session_id, arguments, result_summary, execution_time_ms, success, error_message)
|
|
68
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
69
|
+
`);
|
|
70
|
+
|
|
71
|
+
return stmt.run(
|
|
72
|
+
toolName,
|
|
73
|
+
this.currentSessionId,
|
|
74
|
+
JSON.stringify(args),
|
|
75
|
+
result ? JSON.stringify(result).substring(0, 500) : null,
|
|
76
|
+
executionTime,
|
|
77
|
+
success ? 1 : 0,
|
|
78
|
+
error
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
async getToolStats() {
|
|
83
|
+
const stmt = this.db.prepare('SELECT * FROM tool_effectiveness');
|
|
84
|
+
return stmt.all();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// === TRAINING DATA ===
|
|
88
|
+
|
|
89
|
+
async recordTrainingExample(patternType, inputContext, actionTaken, outcome, score, feedback = null) {
|
|
90
|
+
const stmt = this.db.prepare(`
|
|
91
|
+
INSERT INTO training_data
|
|
92
|
+
(pattern_type, input_context, action_taken, outcome, success_score, model_version, feedback)
|
|
93
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
94
|
+
`);
|
|
95
|
+
|
|
96
|
+
return stmt.run(
|
|
97
|
+
patternType,
|
|
98
|
+
JSON.stringify(inputContext),
|
|
99
|
+
JSON.stringify(actionTaken),
|
|
100
|
+
JSON.stringify(outcome),
|
|
101
|
+
score,
|
|
102
|
+
this.modelVersion || '1.0',
|
|
103
|
+
feedback
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
async getTrainingData(patternType, limit = 100) {
|
|
108
|
+
const stmt = this.db.prepare(`
|
|
109
|
+
SELECT * FROM training_data
|
|
110
|
+
WHERE pattern_type = ?
|
|
111
|
+
ORDER BY success_score DESC, timestamp DESC
|
|
112
|
+
LIMIT ?
|
|
113
|
+
`);
|
|
114
|
+
return stmt.all(patternType, limit);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// === CODE PATTERNS ===
|
|
118
|
+
|
|
119
|
+
async recordCodePattern(filePath, patternName, content, language) {
|
|
120
|
+
const stmt = this.db.prepare(`
|
|
121
|
+
INSERT INTO code_patterns (file_path, pattern_name, pattern_content, language, last_used)
|
|
122
|
+
VALUES (?, ?, ?, ?, ?)
|
|
123
|
+
ON CONFLICT(file_path, pattern_name) DO UPDATE SET
|
|
124
|
+
frequency = frequency + 1,
|
|
125
|
+
last_used = ?
|
|
126
|
+
`);
|
|
127
|
+
|
|
128
|
+
const now = Date.now();
|
|
129
|
+
return stmt.run(filePath, patternName, content, language, now, now);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
async findSimilarPatterns(language, limit = 10) {
|
|
133
|
+
const stmt = this.db.prepare(`
|
|
134
|
+
SELECT * FROM code_patterns
|
|
135
|
+
WHERE language = ?
|
|
136
|
+
ORDER BY effectiveness_score DESC, frequency DESC
|
|
137
|
+
LIMIT ?
|
|
138
|
+
`);
|
|
139
|
+
return stmt.all(language, limit);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// === AGENT COLLABORATION ===
|
|
143
|
+
|
|
144
|
+
async recordAgentInteraction(sourceAgent, targetAgent, messageType, content, taskId) {
|
|
145
|
+
const stmt = this.db.prepare(`
|
|
146
|
+
INSERT INTO agent_interactions
|
|
147
|
+
(source_agent, target_agent, message_type, content, task_id, correlation_id)
|
|
148
|
+
VALUES (?, ?, ?, ?, ?, ?)
|
|
149
|
+
`);
|
|
150
|
+
|
|
151
|
+
const correlationId = `${taskId}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
152
|
+
return stmt.run(sourceAgent, targetAgent, messageType, JSON.stringify(content), taskId, correlationId);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
async getAgentConversation(taskId) {
|
|
156
|
+
const stmt = this.db.prepare(`
|
|
157
|
+
SELECT * FROM agent_interactions
|
|
158
|
+
WHERE task_id = ?
|
|
159
|
+
ORDER BY timestamp ASC
|
|
160
|
+
`);
|
|
161
|
+
return stmt.all(taskId);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// === KNOWLEDGE GRAPH ===
|
|
165
|
+
|
|
166
|
+
async addKnowledgeEntity(entityType, entityName, entityPath, relationships = [], metadata = {}) {
|
|
167
|
+
const stmt = this.db.prepare(`
|
|
168
|
+
INSERT OR REPLACE INTO knowledge_graph
|
|
169
|
+
(entity_type, entity_name, entity_path, relationships, metadata, updated_at)
|
|
170
|
+
VALUES (?, ?, ?, ?, ?, ?)
|
|
171
|
+
`);
|
|
172
|
+
|
|
173
|
+
return stmt.run(
|
|
174
|
+
entityType,
|
|
175
|
+
entityName,
|
|
176
|
+
entityPath,
|
|
177
|
+
JSON.stringify(relationships),
|
|
178
|
+
JSON.stringify(metadata),
|
|
179
|
+
Date.now()
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
async findRelatedEntities(entityName, depth = 1) {
|
|
184
|
+
// Simple implementation - could be enhanced with recursive CTEs
|
|
185
|
+
const stmt = this.db.prepare(`
|
|
186
|
+
SELECT * FROM knowledge_graph
|
|
187
|
+
WHERE entity_name = ? OR relationships LIKE ?
|
|
188
|
+
`);
|
|
189
|
+
return stmt.all(entityName, `%"${entityName}"%`);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// === ERROR LEARNING ===
|
|
193
|
+
|
|
194
|
+
async recordError(errorType, errorMessage, stackTrace, context, resolution = null) {
|
|
195
|
+
const stmt = this.db.prepare(`
|
|
196
|
+
INSERT INTO error_patterns
|
|
197
|
+
(error_type, error_message, stack_trace, context, resolution)
|
|
198
|
+
VALUES (?, ?, ?, ?, ?)
|
|
199
|
+
ON CONFLICT(error_type, error_message) DO UPDATE SET
|
|
200
|
+
occurrence_count = occurrence_count + 1,
|
|
201
|
+
last_seen = strftime('%s', 'now'),
|
|
202
|
+
resolution = COALESCE(?, resolution)
|
|
203
|
+
`);
|
|
204
|
+
|
|
205
|
+
return stmt.run(
|
|
206
|
+
errorType,
|
|
207
|
+
errorMessage,
|
|
208
|
+
stackTrace,
|
|
209
|
+
JSON.stringify(context),
|
|
210
|
+
resolution,
|
|
211
|
+
resolution
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
async getErrorSolutions(errorType) {
|
|
216
|
+
const stmt = this.db.prepare(`
|
|
217
|
+
SELECT * FROM error_patterns
|
|
218
|
+
WHERE error_type = ? AND resolution IS NOT NULL
|
|
219
|
+
ORDER BY occurrence_count DESC
|
|
220
|
+
`);
|
|
221
|
+
return stmt.all(errorType);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// === TASK DEPENDENCIES ===
|
|
225
|
+
|
|
226
|
+
async addTaskDependency(taskId, dependsOn, dependencyType = 'blocking') {
|
|
227
|
+
const stmt = this.db.prepare(`
|
|
228
|
+
INSERT INTO task_dependencies
|
|
229
|
+
(task_id, depends_on, dependency_type, status)
|
|
230
|
+
VALUES (?, ?, ?, 'pending')
|
|
231
|
+
`);
|
|
232
|
+
|
|
233
|
+
return stmt.run(taskId, dependsOn, dependencyType);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
async updateDependencyStatus(taskId, dependsOn, status) {
|
|
237
|
+
const stmt = this.db.prepare(`
|
|
238
|
+
UPDATE task_dependencies
|
|
239
|
+
SET status = ?
|
|
240
|
+
WHERE task_id = ? AND depends_on = ?
|
|
241
|
+
`);
|
|
242
|
+
|
|
243
|
+
return stmt.run(status, taskId, dependsOn);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
async getTaskDependencies(taskId) {
|
|
247
|
+
const stmt = this.db.prepare(`
|
|
248
|
+
SELECT * FROM task_dependencies
|
|
249
|
+
WHERE task_id = ?
|
|
250
|
+
`);
|
|
251
|
+
return stmt.all(taskId);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// === PERFORMANCE TRACKING ===
|
|
255
|
+
|
|
256
|
+
async recordPerformance(operationType, details, duration, memoryUsed, cpuPercent) {
|
|
257
|
+
const stmt = this.db.prepare(`
|
|
258
|
+
INSERT INTO performance_benchmarks
|
|
259
|
+
(operation_type, operation_details, duration_ms, memory_used_mb, cpu_percent, session_id)
|
|
260
|
+
VALUES (?, ?, ?, ?, ?, ?)
|
|
261
|
+
`);
|
|
262
|
+
|
|
263
|
+
return stmt.run(
|
|
264
|
+
operationType,
|
|
265
|
+
JSON.stringify(details),
|
|
266
|
+
duration,
|
|
267
|
+
memoryUsed,
|
|
268
|
+
cpuPercent,
|
|
269
|
+
this.currentSessionId
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
async getPerformanceTrends(operationType, days = 7) {
|
|
274
|
+
const stmt = this.db.prepare(`
|
|
275
|
+
SELECT DATE(timestamp, 'unixepoch') as date,
|
|
276
|
+
AVG(duration_ms) as avg_duration,
|
|
277
|
+
AVG(memory_used_mb) as avg_memory,
|
|
278
|
+
COUNT(*) as operation_count
|
|
279
|
+
FROM performance_benchmarks
|
|
280
|
+
WHERE operation_type = ?
|
|
281
|
+
AND timestamp > strftime('%s', 'now', '-' || ? || ' days')
|
|
282
|
+
GROUP BY date
|
|
283
|
+
ORDER BY date DESC
|
|
284
|
+
`);
|
|
285
|
+
return stmt.all(operationType, days);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// === USER PREFERENCES ===
|
|
289
|
+
|
|
290
|
+
async learnPreference(key, value, category, source = 'inferred', confidence = 0.8) {
|
|
291
|
+
const stmt = this.db.prepare(`
|
|
292
|
+
INSERT OR REPLACE INTO user_preferences
|
|
293
|
+
(preference_key, preference_value, category, learned_from, confidence_score)
|
|
294
|
+
VALUES (?, ?, ?, ?, ?)
|
|
295
|
+
`);
|
|
296
|
+
|
|
297
|
+
return stmt.run(key, value, category, source, confidence);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
async getPreferences(category = null) {
|
|
301
|
+
if (category) {
|
|
302
|
+
const stmt = this.db.prepare('SELECT * FROM user_preferences WHERE category = ?');
|
|
303
|
+
return stmt.all(category);
|
|
304
|
+
} else {
|
|
305
|
+
const stmt = this.db.prepare('SELECT * FROM user_preferences');
|
|
306
|
+
return stmt.all();
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// === UTILITY METHODS ===
|
|
311
|
+
|
|
312
|
+
async getDatabaseStats() {
|
|
313
|
+
const tables = [
|
|
314
|
+
'memory_entries', 'session_state', 'mcp_tool_usage', 'training_data',
|
|
315
|
+
'code_patterns', 'agent_interactions', 'knowledge_graph', 'error_patterns',
|
|
316
|
+
'task_dependencies', 'performance_benchmarks', 'user_preferences'
|
|
317
|
+
];
|
|
318
|
+
|
|
319
|
+
const stats = {};
|
|
320
|
+
for (const table of tables) {
|
|
321
|
+
try {
|
|
322
|
+
const result = this.db.prepare(`SELECT COUNT(*) as count FROM ${table}`).get();
|
|
323
|
+
stats[table] = result.count;
|
|
324
|
+
} catch (e) {
|
|
325
|
+
stats[table] = 0;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
return stats;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
async exportSessionData(sessionId) {
|
|
333
|
+
const data = {
|
|
334
|
+
session: await this.resumeSession(sessionId),
|
|
335
|
+
tools: this.db.prepare('SELECT * FROM mcp_tool_usage WHERE session_id = ?').all(sessionId),
|
|
336
|
+
performance: this.db.prepare('SELECT * FROM performance_benchmarks WHERE session_id = ?').all(sessionId),
|
|
337
|
+
interactions: this.db.prepare('SELECT * FROM agent_interactions WHERE correlation_id LIKE ?').all(`${sessionId}%`),
|
|
338
|
+
timestamp: new Date().toISOString()
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
return data;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// Singleton instance
|
|
346
|
+
export const enhancedMemory = new EnhancedMemory();
|
|
347
|
+
|
|
348
|
+
export default EnhancedMemory;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fallback memory store that tries SQLite first, then falls back to in-memory storage
|
|
3
|
+
* Designed to handle npx environments where native modules may fail to load
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { SqliteMemoryStore } from './sqlite-store.js';
|
|
7
|
+
import { InMemoryStore } from './in-memory-store.js';
|
|
8
|
+
|
|
9
|
+
class FallbackMemoryStore {
|
|
10
|
+
constructor(options = {}) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
this.primaryStore = null;
|
|
13
|
+
this.fallbackStore = null;
|
|
14
|
+
this.useFallback = false;
|
|
15
|
+
this.initializationAttempted = false;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async initialize() {
|
|
19
|
+
if (this.initializationAttempted) return;
|
|
20
|
+
this.initializationAttempted = true;
|
|
21
|
+
|
|
22
|
+
// First, try to initialize SQLite store
|
|
23
|
+
try {
|
|
24
|
+
this.primaryStore = new SqliteMemoryStore(this.options);
|
|
25
|
+
await this.primaryStore.initialize();
|
|
26
|
+
console.error(`[${new Date().toISOString()}] INFO [fallback-store] Successfully initialized SQLite store`);
|
|
27
|
+
this.useFallback = false;
|
|
28
|
+
} catch (error) {
|
|
29
|
+
console.error(`[${new Date().toISOString()}] WARN [fallback-store] SQLite initialization failed, falling back to in-memory store:`, error.message);
|
|
30
|
+
|
|
31
|
+
// Fall back to in-memory store
|
|
32
|
+
this.fallbackStore = new InMemoryStore(this.options);
|
|
33
|
+
await this.fallbackStore.initialize();
|
|
34
|
+
this.useFallback = true;
|
|
35
|
+
|
|
36
|
+
console.error(`[${new Date().toISOString()}] INFO [fallback-store] Using in-memory store (data will not persist across sessions)`);
|
|
37
|
+
console.error(`[${new Date().toISOString()}] INFO [fallback-store] To enable persistent storage, install the package locally: npm install claude-flow@alpha`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
get activeStore() {
|
|
42
|
+
return this.useFallback ? this.fallbackStore : this.primaryStore;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async store(key, value, options = {}) {
|
|
46
|
+
await this.initialize();
|
|
47
|
+
return this.activeStore.store(key, value, options);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async retrieve(key, options = {}) {
|
|
51
|
+
await this.initialize();
|
|
52
|
+
return this.activeStore.retrieve(key, options);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async list(options = {}) {
|
|
56
|
+
await this.initialize();
|
|
57
|
+
return this.activeStore.list(options);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async delete(key, options = {}) {
|
|
61
|
+
await this.initialize();
|
|
62
|
+
return this.activeStore.delete(key, options);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async search(pattern, options = {}) {
|
|
66
|
+
await this.initialize();
|
|
67
|
+
return this.activeStore.search(pattern, options);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
async cleanup() {
|
|
71
|
+
await this.initialize();
|
|
72
|
+
return this.activeStore.cleanup();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
close() {
|
|
76
|
+
if (this.primaryStore) {
|
|
77
|
+
this.primaryStore.close();
|
|
78
|
+
}
|
|
79
|
+
if (this.fallbackStore) {
|
|
80
|
+
this.fallbackStore.close();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
isUsingFallback() {
|
|
85
|
+
return this.useFallback;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Export a singleton instance for MCP server
|
|
90
|
+
export const memoryStore = new FallbackMemoryStore();
|
|
91
|
+
|
|
92
|
+
export { FallbackMemoryStore };
|
|
93
|
+
export default FallbackMemoryStore;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In-memory store for environments where SQLite is not available
|
|
3
|
+
* Provides the same API as SQLite store but data is not persistent
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
class InMemoryStore {
|
|
7
|
+
constructor(options = {}) {
|
|
8
|
+
this.options = options;
|
|
9
|
+
this.data = new Map(); // namespace -> Map(key -> entry)
|
|
10
|
+
this.isInitialized = false;
|
|
11
|
+
this.cleanupInterval = null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async initialize() {
|
|
15
|
+
if (this.isInitialized) return;
|
|
16
|
+
|
|
17
|
+
// Initialize default namespace
|
|
18
|
+
this.data.set('default', new Map());
|
|
19
|
+
|
|
20
|
+
// Start cleanup interval for expired entries
|
|
21
|
+
this.cleanupInterval = setInterval(() => {
|
|
22
|
+
this.cleanup().catch(err =>
|
|
23
|
+
console.error(`[${new Date().toISOString()}] ERROR [in-memory-store] Cleanup failed:`, err)
|
|
24
|
+
);
|
|
25
|
+
}, 60000); // Run cleanup every minute
|
|
26
|
+
|
|
27
|
+
this.isInitialized = true;
|
|
28
|
+
console.error(`[${new Date().toISOString()}] INFO [in-memory-store] Initialized in-memory store`);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_getNamespaceMap(namespace) {
|
|
32
|
+
if (!this.data.has(namespace)) {
|
|
33
|
+
this.data.set(namespace, new Map());
|
|
34
|
+
}
|
|
35
|
+
return this.data.get(namespace);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async store(key, value, options = {}) {
|
|
39
|
+
await this.initialize();
|
|
40
|
+
|
|
41
|
+
const namespace = options.namespace || 'default';
|
|
42
|
+
const namespaceMap = this._getNamespaceMap(namespace);
|
|
43
|
+
|
|
44
|
+
const now = Date.now();
|
|
45
|
+
const ttl = options.ttl || null;
|
|
46
|
+
const expiresAt = ttl ? now + (ttl * 1000) : null;
|
|
47
|
+
const valueStr = typeof value === 'string' ? value : JSON.stringify(value);
|
|
48
|
+
|
|
49
|
+
const entry = {
|
|
50
|
+
key,
|
|
51
|
+
value: valueStr,
|
|
52
|
+
namespace,
|
|
53
|
+
metadata: options.metadata || null,
|
|
54
|
+
createdAt: namespaceMap.has(key) ? namespaceMap.get(key).createdAt : now,
|
|
55
|
+
updatedAt: now,
|
|
56
|
+
accessedAt: now,
|
|
57
|
+
accessCount: namespaceMap.has(key) ? namespaceMap.get(key).accessCount + 1 : 1,
|
|
58
|
+
ttl,
|
|
59
|
+
expiresAt
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
namespaceMap.set(key, entry);
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
success: true,
|
|
66
|
+
id: `${namespace}:${key}`,
|
|
67
|
+
size: valueStr.length
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
async retrieve(key, options = {}) {
|
|
72
|
+
await this.initialize();
|
|
73
|
+
|
|
74
|
+
const namespace = options.namespace || 'default';
|
|
75
|
+
const namespaceMap = this._getNamespaceMap(namespace);
|
|
76
|
+
|
|
77
|
+
const entry = namespaceMap.get(key);
|
|
78
|
+
|
|
79
|
+
if (!entry) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Check if expired
|
|
84
|
+
if (entry.expiresAt && entry.expiresAt < Date.now()) {
|
|
85
|
+
namespaceMap.delete(key);
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Update access stats
|
|
90
|
+
entry.accessedAt = Date.now();
|
|
91
|
+
entry.accessCount++;
|
|
92
|
+
|
|
93
|
+
// Try to parse as JSON, fall back to raw string
|
|
94
|
+
try {
|
|
95
|
+
return JSON.parse(entry.value);
|
|
96
|
+
} catch {
|
|
97
|
+
return entry.value;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
async list(options = {}) {
|
|
102
|
+
await this.initialize();
|
|
103
|
+
|
|
104
|
+
const namespace = options.namespace || 'default';
|
|
105
|
+
const limit = options.limit || 100;
|
|
106
|
+
const namespaceMap = this._getNamespaceMap(namespace);
|
|
107
|
+
|
|
108
|
+
const entries = Array.from(namespaceMap.values())
|
|
109
|
+
.filter(entry => !entry.expiresAt || entry.expiresAt > Date.now())
|
|
110
|
+
.sort((a, b) => b.updatedAt - a.updatedAt)
|
|
111
|
+
.slice(0, limit);
|
|
112
|
+
|
|
113
|
+
return entries.map(entry => ({
|
|
114
|
+
key: entry.key,
|
|
115
|
+
value: this._tryParseJson(entry.value),
|
|
116
|
+
namespace: entry.namespace,
|
|
117
|
+
metadata: entry.metadata,
|
|
118
|
+
createdAt: new Date(entry.createdAt),
|
|
119
|
+
updatedAt: new Date(entry.updatedAt),
|
|
120
|
+
accessCount: entry.accessCount
|
|
121
|
+
}));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
async delete(key, options = {}) {
|
|
125
|
+
await this.initialize();
|
|
126
|
+
|
|
127
|
+
const namespace = options.namespace || 'default';
|
|
128
|
+
const namespaceMap = this._getNamespaceMap(namespace);
|
|
129
|
+
|
|
130
|
+
return namespaceMap.delete(key);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
async search(pattern, options = {}) {
|
|
134
|
+
await this.initialize();
|
|
135
|
+
|
|
136
|
+
const namespace = options.namespace || 'default';
|
|
137
|
+
const limit = options.limit || 50;
|
|
138
|
+
const namespaceMap = this._getNamespaceMap(namespace);
|
|
139
|
+
|
|
140
|
+
const searchLower = pattern.toLowerCase();
|
|
141
|
+
const results = [];
|
|
142
|
+
|
|
143
|
+
for (const [key, entry] of namespaceMap.entries()) {
|
|
144
|
+
// Skip expired entries
|
|
145
|
+
if (entry.expiresAt && entry.expiresAt < Date.now()) {
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Search in key and value
|
|
150
|
+
if (key.toLowerCase().includes(searchLower) ||
|
|
151
|
+
entry.value.toLowerCase().includes(searchLower)) {
|
|
152
|
+
results.push({
|
|
153
|
+
key: entry.key,
|
|
154
|
+
value: this._tryParseJson(entry.value),
|
|
155
|
+
namespace: entry.namespace,
|
|
156
|
+
score: entry.accessCount,
|
|
157
|
+
updatedAt: new Date(entry.updatedAt)
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (results.length >= limit) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Sort by score (access count) and updated time
|
|
167
|
+
return results.sort((a, b) => {
|
|
168
|
+
if (a.score !== b.score) return b.score - a.score;
|
|
169
|
+
return b.updatedAt - a.updatedAt;
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
async cleanup() {
|
|
174
|
+
await this.initialize();
|
|
175
|
+
|
|
176
|
+
let cleaned = 0;
|
|
177
|
+
const now = Date.now();
|
|
178
|
+
|
|
179
|
+
for (const [namespace, namespaceMap] of this.data.entries()) {
|
|
180
|
+
for (const [key, entry] of namespaceMap.entries()) {
|
|
181
|
+
if (entry.expiresAt && entry.expiresAt <= now) {
|
|
182
|
+
namespaceMap.delete(key);
|
|
183
|
+
cleaned++;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return cleaned;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
_tryParseJson(value) {
|
|
192
|
+
try {
|
|
193
|
+
return JSON.parse(value);
|
|
194
|
+
} catch {
|
|
195
|
+
return value;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
close() {
|
|
200
|
+
if (this.cleanupInterval) {
|
|
201
|
+
clearInterval(this.cleanupInterval);
|
|
202
|
+
this.cleanupInterval = null;
|
|
203
|
+
}
|
|
204
|
+
this.data.clear();
|
|
205
|
+
this.isInitialized = false;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export { InMemoryStore };
|
|
210
|
+
export default InMemoryStore;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mock FeatureManager for testing
|
|
3
|
-
* Provides a mock implementation of the FeatureManager
|
|
4
|
-
*/
|
|
5
|
-
export declare class MockFeatureManager {
|
|
6
|
-
private features;
|
|
7
|
-
private activeFeatures;
|
|
8
|
-
private activationOrder;
|
|
9
|
-
private deactivationOrder;
|
|
10
|
-
register: jest.Mock<any, any, any>;
|
|
11
|
-
activate: jest.Mock<any, any, any>;
|
|
12
|
-
deactivate: jest.Mock<any, any, any>;
|
|
13
|
-
configure: jest.Mock<any, any, any>;
|
|
14
|
-
getFeature: jest.Mock<any, any, any>;
|
|
15
|
-
isActive: jest.Mock<any, any, any>;
|
|
16
|
-
listFeatures: jest.Mock<any, any, any>;
|
|
17
|
-
getMetadata: jest.Mock<any, any, any>;
|
|
18
|
-
getActivationOrder(): string[];
|
|
19
|
-
getDeactivationOrder(): string[];
|
|
20
|
-
reset(): void;
|
|
21
|
-
private getDependentFeatures;
|
|
22
|
-
private wasActiveBeforeOperation;
|
|
23
|
-
private validateConfigMock;
|
|
24
|
-
}
|
|
25
|
-
export declare function createMockFeatureManager(): MockFeatureManager;
|
|
26
|
-
//# sourceMappingURL=MockFeatureManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MockFeatureManager.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/features/mocks/MockFeatureManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAmC;IACnD,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,eAAe,CAAgB;IACvC,OAAO,CAAC,iBAAiB,CAAgB;IAGzC,QAAQ,2BAeL;IAEH,QAAQ,2BAwCL;IAEH,UAAU,2BA2BP;IAEH,SAAS,2BAiBN;IAEH,UAAU,2BAEP;IAEH,QAAQ,2BAEL;IAEH,YAAY,2BAYT;IAEH,WAAW,2BAeR;IAGH,kBAAkB,IAAI,MAAM,EAAE;IAI9B,oBAAoB,IAAI,MAAM,EAAE;IAIhC,KAAK,IAAI,IAAI;IASb,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,kBAAkB;CAuC3B;AAGD,wBAAgB,wBAAwB,IAAI,kBAAkB,CAE7D"}
|