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
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mock FeatureManager for testing
|
|
3
|
-
* Provides a mock implementation of the FeatureManager
|
|
4
|
-
*/
|
|
5
|
-
export class MockFeatureManager {
|
|
6
|
-
features = new Map();
|
|
7
|
-
activeFeatures = new Set();
|
|
8
|
-
activationOrder = [];
|
|
9
|
-
deactivationOrder = [];
|
|
10
|
-
// Mock methods
|
|
11
|
-
register = jest.fn().mockImplementation((feature) => {
|
|
12
|
-
if (this.features.has(feature.id)) {
|
|
13
|
-
throw new Error(`Feature ${feature.id} already registered`);
|
|
14
|
-
}
|
|
15
|
-
// Validate dependencies
|
|
16
|
-
if (feature.dependencies) {
|
|
17
|
-
for (const dep of feature.dependencies) {
|
|
18
|
-
if (!this.features.has(dep)) {
|
|
19
|
-
throw new Error(`Missing dependency: ${dep}`);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
this.features.set(feature.id, feature);
|
|
24
|
-
});
|
|
25
|
-
activate = jest.fn().mockImplementation(async (featureId) => {
|
|
26
|
-
const feature = this.features.get(featureId);
|
|
27
|
-
if (!feature) {
|
|
28
|
-
throw new Error(`Feature ${featureId} not found`);
|
|
29
|
-
}
|
|
30
|
-
if (this.activeFeatures.has(featureId)) {
|
|
31
|
-
return; // Already active
|
|
32
|
-
}
|
|
33
|
-
// Activate dependencies first
|
|
34
|
-
if (feature.dependencies) {
|
|
35
|
-
for (const dep of feature.dependencies) {
|
|
36
|
-
await this.activate(dep);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
try {
|
|
40
|
-
if (feature.onBeforeActivate) {
|
|
41
|
-
await feature.onBeforeActivate();
|
|
42
|
-
}
|
|
43
|
-
await feature.activate();
|
|
44
|
-
this.activeFeatures.add(featureId);
|
|
45
|
-
this.activationOrder.push(featureId);
|
|
46
|
-
if (feature.onAfterActivate) {
|
|
47
|
-
await feature.onAfterActivate();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
catch (error) {
|
|
51
|
-
// Rollback on error
|
|
52
|
-
if (feature.dependencies) {
|
|
53
|
-
for (const dep of feature.dependencies) {
|
|
54
|
-
if (!this.wasActiveBeforeOperation(dep)) {
|
|
55
|
-
await this.deactivate(dep);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
throw new Error(`Failed to activate feature ${featureId}: ${error.message}`);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
deactivate = jest.fn().mockImplementation(async (featureId) => {
|
|
63
|
-
const feature = this.features.get(featureId);
|
|
64
|
-
if (!feature) {
|
|
65
|
-
throw new Error(`Feature ${featureId} not found`);
|
|
66
|
-
}
|
|
67
|
-
if (!this.activeFeatures.has(featureId)) {
|
|
68
|
-
return; // Already inactive
|
|
69
|
-
}
|
|
70
|
-
// Deactivate dependent features first
|
|
71
|
-
const dependents = this.getDependentFeatures(featureId);
|
|
72
|
-
for (const dependent of dependents) {
|
|
73
|
-
await this.deactivate(dependent);
|
|
74
|
-
}
|
|
75
|
-
if (feature.onBeforeDeactivate) {
|
|
76
|
-
await feature.onBeforeDeactivate();
|
|
77
|
-
}
|
|
78
|
-
await feature.deactivate();
|
|
79
|
-
this.activeFeatures.delete(featureId);
|
|
80
|
-
this.deactivationOrder.push(featureId);
|
|
81
|
-
if (feature.onAfterDeactivate) {
|
|
82
|
-
await feature.onAfterDeactivate();
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
configure = jest.fn().mockImplementation(async (featureId, config) => {
|
|
86
|
-
const feature = this.features.get(featureId);
|
|
87
|
-
if (!feature) {
|
|
88
|
-
throw new Error(`Feature ${featureId} not found`);
|
|
89
|
-
}
|
|
90
|
-
if (feature.configSchema) {
|
|
91
|
-
// Simple validation mock
|
|
92
|
-
const result = this.validateConfigMock(config, feature.configSchema);
|
|
93
|
-
if (!result.valid) {
|
|
94
|
-
throw new Error('Invalid configuration');
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
if (feature.configure) {
|
|
98
|
-
await feature.configure(config);
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
getFeature = jest.fn().mockImplementation((featureId) => {
|
|
102
|
-
return this.features.get(featureId);
|
|
103
|
-
});
|
|
104
|
-
isActive = jest.fn().mockImplementation((featureId) => {
|
|
105
|
-
return this.activeFeatures.has(featureId);
|
|
106
|
-
});
|
|
107
|
-
listFeatures = jest.fn().mockImplementation((filter) => {
|
|
108
|
-
const features = Array.from(this.features.values());
|
|
109
|
-
if (filter?.status === 'active') {
|
|
110
|
-
return features.filter(f => this.activeFeatures.has(f.id));
|
|
111
|
-
}
|
|
112
|
-
if (filter?.status === 'inactive') {
|
|
113
|
-
return features.filter(f => !this.activeFeatures.has(f.id));
|
|
114
|
-
}
|
|
115
|
-
return features;
|
|
116
|
-
});
|
|
117
|
-
getMetadata = jest.fn().mockImplementation((featureId) => {
|
|
118
|
-
const feature = this.features.get(featureId);
|
|
119
|
-
if (!feature) {
|
|
120
|
-
return undefined;
|
|
121
|
-
}
|
|
122
|
-
return {
|
|
123
|
-
id: feature.id,
|
|
124
|
-
name: feature.name,
|
|
125
|
-
version: feature.version,
|
|
126
|
-
description: feature.description,
|
|
127
|
-
isActive: this.activeFeatures.has(featureId),
|
|
128
|
-
dependencies: feature.dependencies || [],
|
|
129
|
-
dependents: this.getDependentFeatures(featureId),
|
|
130
|
-
};
|
|
131
|
-
});
|
|
132
|
-
// Helper methods for testing
|
|
133
|
-
getActivationOrder() {
|
|
134
|
-
return [...this.activationOrder];
|
|
135
|
-
}
|
|
136
|
-
getDeactivationOrder() {
|
|
137
|
-
return [...this.deactivationOrder];
|
|
138
|
-
}
|
|
139
|
-
reset() {
|
|
140
|
-
this.features.clear();
|
|
141
|
-
this.activeFeatures.clear();
|
|
142
|
-
this.activationOrder = [];
|
|
143
|
-
this.deactivationOrder = [];
|
|
144
|
-
jest.clearAllMocks();
|
|
145
|
-
}
|
|
146
|
-
// Private helper methods
|
|
147
|
-
getDependentFeatures(featureId) {
|
|
148
|
-
const dependents = [];
|
|
149
|
-
for (const [id, feature] of this.features) {
|
|
150
|
-
if (feature.dependencies?.includes(featureId)) {
|
|
151
|
-
dependents.push(id);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return dependents;
|
|
155
|
-
}
|
|
156
|
-
wasActiveBeforeOperation(featureId) {
|
|
157
|
-
// This is a simplified check for testing
|
|
158
|
-
return this.activationOrder.includes(featureId) &&
|
|
159
|
-
!this.deactivationOrder.includes(featureId);
|
|
160
|
-
}
|
|
161
|
-
validateConfigMock(config, schema) {
|
|
162
|
-
// Very simple validation for testing
|
|
163
|
-
const errors = [];
|
|
164
|
-
if (schema.required) {
|
|
165
|
-
for (const required of schema.required) {
|
|
166
|
-
if (!config.settings || !(required in config.settings)) {
|
|
167
|
-
errors.push({
|
|
168
|
-
path: `/settings/${required}`,
|
|
169
|
-
message: `Property ${required} is required`,
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
if (schema.properties) {
|
|
175
|
-
for (const [key, propSchema] of Object.entries(schema.properties)) {
|
|
176
|
-
const value = config.settings?.[key];
|
|
177
|
-
if (value !== undefined && propSchema.type) {
|
|
178
|
-
if (propSchema.type === 'string' && typeof value !== 'string') {
|
|
179
|
-
errors.push({
|
|
180
|
-
path: `/settings/${key}`,
|
|
181
|
-
message: `Property ${key} must be a string`,
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
if (propSchema.minLength && value.length < propSchema.minLength) {
|
|
185
|
-
errors.push({
|
|
186
|
-
path: `/settings/${key}`,
|
|
187
|
-
message: `Property ${key} must have minLength ${propSchema.minLength}`,
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
return { valid: errors.length === 0, errors };
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
// Export a factory function for creating instances
|
|
197
|
-
export function createMockFeatureManager() {
|
|
198
|
-
return new MockFeatureManager();
|
|
199
|
-
}
|
|
200
|
-
//# sourceMappingURL=MockFeatureManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MockFeatureManager.js","sourceRoot":"","sources":["../../../../src/__tests__/features/mocks/MockFeatureManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,OAAO,kBAAkB;IACrB,QAAQ,GAAyB,IAAI,GAAG,EAAE,CAAC;IAC3C,cAAc,GAAgB,IAAI,GAAG,EAAE,CAAC;IACxC,eAAe,GAAa,EAAE,CAAC;IAC/B,iBAAiB,GAAa,EAAE,CAAC;IAEzC,eAAe;IACf,QAAQ,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,OAAgB,EAAE,EAAE;QAC3D,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,WAAW,OAAO,CAAC,EAAE,qBAAqB,CAAC,CAAC;QAC9D,CAAC;QAED,wBAAwB;QACxB,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;YACzB,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;gBACvC,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E,CAAC;AAClC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test setup for feature system tests
|
|
3
|
-
* Configures Jest environment and custom matchers
|
|
4
|
-
*/
|
|
5
|
-
declare global {
|
|
6
|
-
namespace jest {
|
|
7
|
-
interface Matchers<R> {
|
|
8
|
-
toBeActivated(): R;
|
|
9
|
-
toBeDeactivated(): R;
|
|
10
|
-
toHaveBeenCalledBefore(other: jest.Mock): R;
|
|
11
|
-
toHaveBeenCalledAfter(other: jest.Mock): R;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
namespace NodeJS {
|
|
15
|
-
interface Global {
|
|
16
|
-
testUtils: {
|
|
17
|
-
waitFor: (ms: number) => Promise<void>;
|
|
18
|
-
mockConsole: () => void;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=setup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/__tests__/features/setup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiDH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,aAAa,IAAI,CAAC,CAAC;YACnB,eAAe,IAAI,CAAC,CAAC;YACrB,sBAAsB,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;YAC5C,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;SAC5C;KACF;IAED,UAAU,MAAM,CAAC;QACf,UAAU,MAAM;YACd,SAAS,EAAE;gBACT,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;gBACvC,WAAW,EAAE,MAAM,IAAI,CAAC;aACzB,CAAC;SACH;KACF;CACF"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test setup for feature system tests
|
|
3
|
-
* Configures Jest environment and custom matchers
|
|
4
|
-
*/
|
|
5
|
-
import { featureMatchers } from './utils/test-helpers.js';
|
|
6
|
-
// Add custom matchers to Jest
|
|
7
|
-
expect.extend(featureMatchers);
|
|
8
|
-
// Configure test environment
|
|
9
|
-
beforeAll(() => {
|
|
10
|
-
// Set test environment variables
|
|
11
|
-
process.env.NODE_ENV = 'test';
|
|
12
|
-
process.env.FEATURE_SYSTEM_ENV = 'test';
|
|
13
|
-
// Increase test timeout for integration tests
|
|
14
|
-
jest.setTimeout(10000);
|
|
15
|
-
});
|
|
16
|
-
// Clean up after all tests
|
|
17
|
-
afterAll(() => {
|
|
18
|
-
// Clear any remaining timers
|
|
19
|
-
jest.clearAllTimers();
|
|
20
|
-
});
|
|
21
|
-
// Global test utilities
|
|
22
|
-
global.testUtils = {
|
|
23
|
-
// Add any global test utilities here
|
|
24
|
-
waitFor: (ms) => new Promise(resolve => setTimeout(resolve, ms)),
|
|
25
|
-
// Mock console methods to reduce noise in tests
|
|
26
|
-
mockConsole: () => {
|
|
27
|
-
const originalConsole = { ...console };
|
|
28
|
-
beforeEach(() => {
|
|
29
|
-
console.log = jest.fn();
|
|
30
|
-
console.error = jest.fn();
|
|
31
|
-
console.warn = jest.fn();
|
|
32
|
-
console.info = jest.fn();
|
|
33
|
-
});
|
|
34
|
-
afterEach(() => {
|
|
35
|
-
console.log = originalConsole.log;
|
|
36
|
-
console.error = originalConsole.error;
|
|
37
|
-
console.warn = originalConsole.warn;
|
|
38
|
-
console.info = originalConsole.info;
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=setup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../src/__tests__/features/setup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA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GAAG,eAAe,CAAC,IAAI,CAAC;YACpC,OAAO,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC;QACtC,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test Helpers and Utilities
|
|
3
|
-
* Common utilities for feature system testing
|
|
4
|
-
*/
|
|
5
|
-
import { Feature, FeatureConfig, AdapterContext } from '../../../features/types.js';
|
|
6
|
-
import { EventEmitter } from 'events';
|
|
7
|
-
/**
|
|
8
|
-
* Creates a mock feature for testing
|
|
9
|
-
*/
|
|
10
|
-
export declare function createMockFeature(overrides?: Partial<Feature>): Feature;
|
|
11
|
-
/**
|
|
12
|
-
* Creates a mock adapter context for testing
|
|
13
|
-
*/
|
|
14
|
-
export declare function createMockAdapterContext(overrides?: Partial<AdapterContext>): AdapterContext;
|
|
15
|
-
/**
|
|
16
|
-
* Creates a mock feature configuration
|
|
17
|
-
*/
|
|
18
|
-
export declare function createMockConfig(overrides?: Partial<FeatureConfig>): FeatureConfig;
|
|
19
|
-
/**
|
|
20
|
-
* Waits for an event to be emitted
|
|
21
|
-
*/
|
|
22
|
-
export declare function waitForEvent(emitter: EventEmitter, eventName: string, timeout?: number): Promise<any>;
|
|
23
|
-
/**
|
|
24
|
-
* Creates a spy that tracks method calls with timing information
|
|
25
|
-
*/
|
|
26
|
-
export declare function createTimingSpy(): any;
|
|
27
|
-
/**
|
|
28
|
-
* Delays execution for testing async operations
|
|
29
|
-
*/
|
|
30
|
-
export declare function delay(ms: number): Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* Creates a mock storage provider
|
|
33
|
-
*/
|
|
34
|
-
export declare function createMockStorage(): {
|
|
35
|
-
save: jest.Mock<any, any, any>;
|
|
36
|
-
load: jest.Mock<any, any, any>;
|
|
37
|
-
delete: jest.Mock<any, any, any>;
|
|
38
|
-
clear: jest.Mock<any, any, any>;
|
|
39
|
-
_storage: Map<string, any>;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Custom Jest matchers for feature testing
|
|
43
|
-
*/
|
|
44
|
-
export declare const featureMatchers: {
|
|
45
|
-
toBeActivated(received: Feature): {
|
|
46
|
-
pass: boolean;
|
|
47
|
-
message: () => "Expected feature not to be activated" | "Expected feature to be activated";
|
|
48
|
-
};
|
|
49
|
-
toBeDeactivated(received: Feature): {
|
|
50
|
-
pass: boolean;
|
|
51
|
-
message: () => "Expected feature not to be deactivated" | "Expected feature to be deactivated";
|
|
52
|
-
};
|
|
53
|
-
toHaveBeenCalledBefore(received: jest.Mock, other: jest.Mock): {
|
|
54
|
-
pass: boolean;
|
|
55
|
-
message: () => string;
|
|
56
|
-
};
|
|
57
|
-
toHaveBeenCalledAfter(received: jest.Mock, other: jest.Mock): {
|
|
58
|
-
pass: boolean;
|
|
59
|
-
message: () => string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Test data fixtures
|
|
64
|
-
*/
|
|
65
|
-
export declare const fixtures: {
|
|
66
|
-
features: {
|
|
67
|
-
basic: Feature;
|
|
68
|
-
withDependencies: Feature;
|
|
69
|
-
withConfiguration: Feature;
|
|
70
|
-
withHooks: Feature;
|
|
71
|
-
};
|
|
72
|
-
configs: {
|
|
73
|
-
basic: FeatureConfig;
|
|
74
|
-
withApiKey: FeatureConfig;
|
|
75
|
-
disabled: FeatureConfig;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Performance measurement utilities
|
|
80
|
-
*/
|
|
81
|
-
export declare class PerformanceMeasurer {
|
|
82
|
-
private marks;
|
|
83
|
-
mark(name: string): void;
|
|
84
|
-
measure(name: string, startMark: string, endMark?: string): number;
|
|
85
|
-
clear(): void;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Memory usage tracker for tests
|
|
89
|
-
*/
|
|
90
|
-
export declare class MemoryTracker {
|
|
91
|
-
private snapshots;
|
|
92
|
-
snapshot(): NodeJS.MemoryUsage;
|
|
93
|
-
getGrowth(): number;
|
|
94
|
-
clear(): void;
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=test-helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/features/utils/test-helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAUvE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,cAAc,CAmB5F;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAMlF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,YAAY,EACrB,SAAS,EAAE,MAAM,EACjB,OAAO,SAAO,GACb,OAAO,CAAC,GAAG,CAAC,CAWd;AAED;;GAEG;AACH,wBAAgB,eAAe,QAyB9B;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAED;;GAEG;AACH,wBAAgB,iBAAiB;;;;;;EAqBhC;AAED;;GAEG;AACH,eAAO,MAAM,eAAe;4BACF,OAAO;;;;8BAWL,OAAO;;;;qCAYrB,IAAI,CAAC,IAAI,SACZ,IAAI,CAAC,IAAI;;;;oCAwBN,IAAI,CAAC,IAAI,SACZ,IAAI,CAAC,IAAI;;;;CAsBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;CA0DpB,CAAC;AAEF;;GAEG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,KAAK,CAAkC;IAE/C,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIxB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAelE,KAAK,IAAI,IAAI;CAGd;AAED;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,SAAS,CAA+D;IAEhF,QAAQ,IAAI,MAAM,CAAC,WAAW;IAM9B,SAAS,IAAI,MAAM;IAWnB,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test Helpers and Utilities
|
|
3
|
-
* Common utilities for feature system testing
|
|
4
|
-
*/
|
|
5
|
-
import { EventEmitter } from 'events';
|
|
6
|
-
/**
|
|
7
|
-
* Creates a mock feature for testing
|
|
8
|
-
*/
|
|
9
|
-
export function createMockFeature(overrides) {
|
|
10
|
-
return {
|
|
11
|
-
id: 'mock-feature',
|
|
12
|
-
name: 'Mock Feature',
|
|
13
|
-
version: '1.0.0',
|
|
14
|
-
description: 'A mock feature for testing',
|
|
15
|
-
activate: jest.fn().mockResolvedValue(undefined),
|
|
16
|
-
deactivate: jest.fn().mockResolvedValue(undefined),
|
|
17
|
-
...overrides,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Creates a mock adapter context for testing
|
|
22
|
-
*/
|
|
23
|
-
export function createMockAdapterContext(overrides) {
|
|
24
|
-
const eventBus = new EventEmitter();
|
|
25
|
-
return {
|
|
26
|
-
eventBus,
|
|
27
|
-
logger: {
|
|
28
|
-
log: jest.fn(),
|
|
29
|
-
error: jest.fn(),
|
|
30
|
-
warn: jest.fn(),
|
|
31
|
-
info: jest.fn(),
|
|
32
|
-
debug: jest.fn(),
|
|
33
|
-
},
|
|
34
|
-
config: {
|
|
35
|
-
version: '1.0.0',
|
|
36
|
-
environment: 'test',
|
|
37
|
-
},
|
|
38
|
-
services: new Map(),
|
|
39
|
-
...overrides,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Creates a mock feature configuration
|
|
44
|
-
*/
|
|
45
|
-
export function createMockConfig(overrides) {
|
|
46
|
-
return {
|
|
47
|
-
enabled: true,
|
|
48
|
-
settings: {},
|
|
49
|
-
...overrides,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Waits for an event to be emitted
|
|
54
|
-
*/
|
|
55
|
-
export function waitForEvent(emitter, eventName, timeout = 1000) {
|
|
56
|
-
return new Promise((resolve, reject) => {
|
|
57
|
-
const timer = setTimeout(() => {
|
|
58
|
-
reject(new Error(`Timeout waiting for event: ${eventName}`));
|
|
59
|
-
}, timeout);
|
|
60
|
-
emitter.once(eventName, (data) => {
|
|
61
|
-
clearTimeout(timer);
|
|
62
|
-
resolve(data);
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Creates a spy that tracks method calls with timing information
|
|
68
|
-
*/
|
|
69
|
-
export function createTimingSpy() {
|
|
70
|
-
const calls = [];
|
|
71
|
-
const spy = jest.fn().mockImplementation((...args) => {
|
|
72
|
-
calls.push({
|
|
73
|
-
timestamp: Date.now(),
|
|
74
|
-
args,
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
return Object.assign(spy, {
|
|
78
|
-
calls,
|
|
79
|
-
wasCalledBefore(otherSpy) {
|
|
80
|
-
if (this.calls.length === 0 || otherSpy.calls.length === 0) {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
return this.calls[0].timestamp < otherSpy.calls[0].timestamp;
|
|
84
|
-
},
|
|
85
|
-
wasCalledAfter(otherSpy) {
|
|
86
|
-
if (this.calls.length === 0 || otherSpy.calls.length === 0) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
return this.calls[0].timestamp > otherSpy.calls[0].timestamp;
|
|
90
|
-
},
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Delays execution for testing async operations
|
|
95
|
-
*/
|
|
96
|
-
export function delay(ms) {
|
|
97
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Creates a mock storage provider
|
|
101
|
-
*/
|
|
102
|
-
export function createMockStorage() {
|
|
103
|
-
const storage = new Map();
|
|
104
|
-
return {
|
|
105
|
-
save: jest.fn().mockImplementation((key, value) => {
|
|
106
|
-
storage.set(key, value);
|
|
107
|
-
return Promise.resolve();
|
|
108
|
-
}),
|
|
109
|
-
load: jest.fn().mockImplementation((key) => {
|
|
110
|
-
return Promise.resolve(storage.get(key) || null);
|
|
111
|
-
}),
|
|
112
|
-
delete: jest.fn().mockImplementation((key) => {
|
|
113
|
-
storage.delete(key);
|
|
114
|
-
return Promise.resolve();
|
|
115
|
-
}),
|
|
116
|
-
clear: jest.fn().mockImplementation(() => {
|
|
117
|
-
storage.clear();
|
|
118
|
-
return Promise.resolve();
|
|
119
|
-
}),
|
|
120
|
-
_storage: storage, // Expose for testing
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Custom Jest matchers for feature testing
|
|
125
|
-
*/
|
|
126
|
-
export const featureMatchers = {
|
|
127
|
-
toBeActivated(received) {
|
|
128
|
-
const pass = received.activate.mock.calls.length > 0;
|
|
129
|
-
return {
|
|
130
|
-
pass,
|
|
131
|
-
message: () => pass
|
|
132
|
-
? `Expected feature not to be activated`
|
|
133
|
-
: `Expected feature to be activated`,
|
|
134
|
-
};
|
|
135
|
-
},
|
|
136
|
-
toBeDeactivated(received) {
|
|
137
|
-
const pass = received.deactivate.mock.calls.length > 0;
|
|
138
|
-
return {
|
|
139
|
-
pass,
|
|
140
|
-
message: () => pass
|
|
141
|
-
? `Expected feature not to be deactivated`
|
|
142
|
-
: `Expected feature to be deactivated`,
|
|
143
|
-
};
|
|
144
|
-
},
|
|
145
|
-
toHaveBeenCalledBefore(received, other) {
|
|
146
|
-
const receivedCalls = received.mock.invocationCallOrder;
|
|
147
|
-
const otherCalls = other.mock.invocationCallOrder;
|
|
148
|
-
if (receivedCalls.length === 0 || otherCalls.length === 0) {
|
|
149
|
-
return {
|
|
150
|
-
pass: false,
|
|
151
|
-
message: () => `One or both functions were not called`,
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
const pass = Math.min(...receivedCalls) < Math.min(...otherCalls);
|
|
155
|
-
return {
|
|
156
|
-
pass,
|
|
157
|
-
message: () => pass
|
|
158
|
-
? `Expected ${received.getMockName()} not to be called before ${other.getMockName()}`
|
|
159
|
-
: `Expected ${received.getMockName()} to be called before ${other.getMockName()}`,
|
|
160
|
-
};
|
|
161
|
-
},
|
|
162
|
-
toHaveBeenCalledAfter(received, other) {
|
|
163
|
-
const receivedCalls = received.mock.invocationCallOrder;
|
|
164
|
-
const otherCalls = other.mock.invocationCallOrder;
|
|
165
|
-
if (receivedCalls.length === 0 || otherCalls.length === 0) {
|
|
166
|
-
return {
|
|
167
|
-
pass: false,
|
|
168
|
-
message: () => `One or both functions were not called`,
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
const pass = Math.min(...receivedCalls) > Math.max(...otherCalls);
|
|
172
|
-
return {
|
|
173
|
-
pass,
|
|
174
|
-
message: () => pass
|
|
175
|
-
? `Expected ${received.getMockName()} not to be called after ${other.getMockName()}`
|
|
176
|
-
: `Expected ${received.getMockName()} to be called after ${other.getMockName()}`,
|
|
177
|
-
};
|
|
178
|
-
},
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* Test data fixtures
|
|
182
|
-
*/
|
|
183
|
-
export const fixtures = {
|
|
184
|
-
features: {
|
|
185
|
-
basic: createMockFeature({
|
|
186
|
-
id: 'basic-feature',
|
|
187
|
-
name: 'Basic Feature',
|
|
188
|
-
}),
|
|
189
|
-
withDependencies: createMockFeature({
|
|
190
|
-
id: 'dependent-feature',
|
|
191
|
-
name: 'Dependent Feature',
|
|
192
|
-
dependencies: ['base-feature'],
|
|
193
|
-
}),
|
|
194
|
-
withConfiguration: createMockFeature({
|
|
195
|
-
id: 'configurable-feature',
|
|
196
|
-
name: 'Configurable Feature',
|
|
197
|
-
configure: jest.fn().mockResolvedValue(undefined),
|
|
198
|
-
configSchema: {
|
|
199
|
-
type: 'object',
|
|
200
|
-
properties: {
|
|
201
|
-
apiKey: { type: 'string' },
|
|
202
|
-
timeout: { type: 'number' },
|
|
203
|
-
},
|
|
204
|
-
required: ['apiKey'],
|
|
205
|
-
},
|
|
206
|
-
}),
|
|
207
|
-
withHooks: createMockFeature({
|
|
208
|
-
id: 'hook-feature',
|
|
209
|
-
name: 'Feature with Hooks',
|
|
210
|
-
onBeforeActivate: jest.fn().mockResolvedValue(undefined),
|
|
211
|
-
onAfterActivate: jest.fn().mockResolvedValue(undefined),
|
|
212
|
-
onBeforeDeactivate: jest.fn().mockResolvedValue(undefined),
|
|
213
|
-
onAfterDeactivate: jest.fn().mockResolvedValue(undefined),
|
|
214
|
-
}),
|
|
215
|
-
},
|
|
216
|
-
configs: {
|
|
217
|
-
basic: createMockConfig({
|
|
218
|
-
enabled: true,
|
|
219
|
-
settings: {
|
|
220
|
-
debug: false,
|
|
221
|
-
},
|
|
222
|
-
}),
|
|
223
|
-
withApiKey: createMockConfig({
|
|
224
|
-
enabled: true,
|
|
225
|
-
settings: {
|
|
226
|
-
apiKey: 'test-api-key-12345',
|
|
227
|
-
timeout: 5000,
|
|
228
|
-
},
|
|
229
|
-
}),
|
|
230
|
-
disabled: createMockConfig({
|
|
231
|
-
enabled: false,
|
|
232
|
-
settings: {},
|
|
233
|
-
}),
|
|
234
|
-
},
|
|
235
|
-
};
|
|
236
|
-
/**
|
|
237
|
-
* Performance measurement utilities
|
|
238
|
-
*/
|
|
239
|
-
export class PerformanceMeasurer {
|
|
240
|
-
marks = new Map();
|
|
241
|
-
mark(name) {
|
|
242
|
-
this.marks.set(name, performance.now());
|
|
243
|
-
}
|
|
244
|
-
measure(name, startMark, endMark) {
|
|
245
|
-
const start = this.marks.get(startMark);
|
|
246
|
-
const end = endMark ? this.marks.get(endMark) : performance.now();
|
|
247
|
-
if (!start) {
|
|
248
|
-
throw new Error(`Start mark '${startMark}' not found`);
|
|
249
|
-
}
|
|
250
|
-
if (endMark && !this.marks.has(endMark)) {
|
|
251
|
-
throw new Error(`End mark '${endMark}' not found`);
|
|
252
|
-
}
|
|
253
|
-
return (end || performance.now()) - start;
|
|
254
|
-
}
|
|
255
|
-
clear() {
|
|
256
|
-
this.marks.clear();
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Memory usage tracker for tests
|
|
261
|
-
*/
|
|
262
|
-
export class MemoryTracker {
|
|
263
|
-
snapshots = [];
|
|
264
|
-
snapshot() {
|
|
265
|
-
const usage = process.memoryUsage();
|
|
266
|
-
this.snapshots.push({ timestamp: Date.now(), usage });
|
|
267
|
-
return usage;
|
|
268
|
-
}
|
|
269
|
-
getGrowth() {
|
|
270
|
-
if (this.snapshots.length < 2) {
|
|
271
|
-
return 0;
|
|
272
|
-
}
|
|
273
|
-
const first = this.snapshots[0].usage.heapUsed;
|
|
274
|
-
const last = this.snapshots[this.snapshots.length - 1].usage.heapUsed;
|
|
275
|
-
return last - first;
|
|
276
|
-
}
|
|
277
|
-
clear() {
|
|
278
|
-
this.snapshots = [];
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
//# sourceMappingURL=test-helpers.js.map
|