odd-flow 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -7475
- package/bin/cli.js +2 -2
- package/package.json +12 -12
- package/v3/{@claude-flow → @odd-flow}/cli/README.md +118 -4
- package/v3/{@claude-flow → @odd-flow}/cli/bin/cli.js +4 -4
- package/v3/{@claude-flow → @odd-flow}/cli/bin/mcp-server.js +2 -2
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/gguf-engine.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/gguf-engine.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/ruvllm-bridge.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/ruvllm-bridge.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-runner.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-runner.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-signing.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-signing.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/autopilot-state.d.ts +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/autopilot-state.js +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/agent-wasm.js +7 -7
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/agent.js +15 -15
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/analyze.js +52 -52
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/appliance.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/autopilot.js +4 -4
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/benchmark.js +16 -16
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/claims.js +21 -21
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/cleanup.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/cleanup.js +9 -9
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/completions.js +41 -41
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/config.js +9 -9
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/daemon.js +27 -27
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/deployment.js +20 -20
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/doctor.js +24 -24
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/embeddings.js +58 -58
- package/v3/@odd-flow/cli/dist/src/commands/escalation.d.ts +7 -0
- package/v3/@odd-flow/cli/dist/src/commands/escalation.js +115 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/guidance.js +30 -30
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/hive-mind.js +20 -20
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/hooks.js +103 -103
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/index.d.ts +3 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/index.js +20 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/init.js +49 -48
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/issues.js +6 -6
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/mcp.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/mcp.js +14 -14
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/memory.js +33 -33
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/migrate.js +28 -28
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/neural.js +35 -35
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/performance.js +13 -13
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/plugins.js +33 -33
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/process.js +36 -36
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/progress.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/progress.js +7 -7
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/providers.js +13 -13
- package/v3/@odd-flow/cli/dist/src/commands/refinery.d.ts +7 -0
- package/v3/@odd-flow/cli/dist/src/commands/refinery.js +64 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/route.js +26 -26
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/backup.js +9 -9
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/benchmark.js +4 -4
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/import.d.ts +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/import.js +11 -11
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/index.js +9 -9
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/init.js +7 -7
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/migrate.js +5 -5
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/optimize.js +7 -7
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/setup.d.ts +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/setup.js +14 -14
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/status.js +4 -4
- package/v3/@odd-flow/cli/dist/src/commands/scheduler.d.ts +7 -0
- package/v3/@odd-flow/cli/dist/src/commands/scheduler.js +86 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/security.js +22 -22
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/session.js +13 -13
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/start.js +16 -16
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/status.js +9 -9
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/swarm.js +10 -10
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/task.js +9 -9
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/transfer-store.js +17 -17
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/update.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/update.js +8 -8
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/workflow.js +13 -13
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/config-adapter.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/config-adapter.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/index.js +2 -2
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/infrastructure/in-memory-repositories.d.ts +4 -4
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/claudemd-generator.js +31 -31
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/executor.js +63 -63
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/helpers-generator.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/helpers-generator.js +19 -19
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/mcp-generator.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/settings-generator.js +6 -6
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/statusline-generator.js +16 -16
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/types.d.ts +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-server.d.ts +2 -2
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-server.js +15 -15
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/agent-tools.js +36 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/agentdb-tools.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/claims-tools.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/claims-tools.js +2 -2
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/config-tools.js +12 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/coordination-tools.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/embeddings-tools.js +1 -1
- package/v3/@odd-flow/cli/dist/src/mcp-tools/escalation-tools.d.ts +15 -0
- package/v3/@odd-flow/cli/dist/src/mcp-tools/escalation-tools.js +153 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/hive-mind-tools.js +4 -4
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/hooks-tools.js +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/index.d.ts +3 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/index.js +4 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/memory-tools.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/neural-tools.d.ts +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/neural-tools.js +8 -8
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/performance-tools.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/progress-tools.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/progress-tools.js +8 -8
- package/v3/@odd-flow/cli/dist/src/mcp-tools/refinery-tools.d.ts +16 -0
- package/v3/@odd-flow/cli/dist/src/mcp-tools/refinery-tools.js +223 -0
- package/v3/@odd-flow/cli/dist/src/mcp-tools/scheduler-tools.d.ts +16 -0
- package/v3/@odd-flow/cli/dist/src/mcp-tools/scheduler-tools.js +72 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/security-tools.js +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/session-tools.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/swarm-tools.js +123 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/system-tools.js +2 -2
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/task-tools.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/workflow-tools.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/intelligence.js +5 -5
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/memory-bridge.js +2 -2
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/memory-initializer.js +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/manager.js +10 -10
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/store/discovery.js +99 -99
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/tests/demo-plugin-store.js +6 -6
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/tests/standalone-test.js +6 -6
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/tests/test-plugin-store.js +2 -2
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/circuit-breaker.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/circuit-breaker.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/error-handler.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/error-handler.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/index.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/index.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/monitoring.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/monitoring.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/rate-limiter.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/rate-limiter.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/retry.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/production/retry.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/runtime/headless.d.ts +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/runtime/headless.js +3 -3
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/agent-wasm.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/agent-wasm.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/graph-analyzer.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/graph-analyzer.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/index.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/index.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/ruvllm-wasm.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/ruvllm-wasm.js +1 -1
- package/v3/@odd-flow/cli/dist/src/services/checkpoint-manager.d.ts +46 -0
- package/v3/@odd-flow/cli/dist/src/services/checkpoint-manager.js +114 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/claim-service.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/config-file-manager.js +2 -2
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/container-worker-pool.js +6 -6
- package/v3/@odd-flow/cli/dist/src/services/escalation-router.d.ts +46 -0
- package/v3/@odd-flow/cli/dist/src/services/escalation-router.js +138 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/headless-worker-executor.js +2 -2
- package/v3/@odd-flow/cli/dist/src/services/refinery.d.ts +66 -0
- package/v3/@odd-flow/cli/dist/src/services/refinery.js +165 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/registry-api.js +1 -1
- package/v3/@odd-flow/cli/dist/src/services/scheduler.d.ts +66 -0
- package/v3/@odd-flow/cli/dist/src/services/scheduler.js +228 -0
- package/v3/@odd-flow/cli/dist/src/services/watchdog-deacon.d.ts +20 -0
- package/v3/@odd-flow/cli/dist/src/services/watchdog-deacon.js +52 -0
- package/v3/@odd-flow/cli/dist/src/services/watchdog-dogs.d.ts +42 -0
- package/v3/@odd-flow/cli/dist/src/services/watchdog-dogs.js +81 -0
- package/v3/@odd-flow/cli/dist/src/services/watchdog-witness.d.ts +38 -0
- package/v3/@odd-flow/cli/dist/src/services/watchdog-witness.js +57 -0
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/worker-daemon.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/worker-daemon.js +18 -18
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/worker-queue.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/suggest.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/ipfs/upload.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/ipfs/upload.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/models/seraphine.js +2 -2
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/serialization/cfp.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/storage/gcs.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/storage/gcs.js +4 -4
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/discovery.js +7 -7
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/registry.js +4 -4
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/tests/standalone-test.js +4 -4
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/test-seraphine.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/checker.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/checker.js +11 -11
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/executor.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/index.d.ts +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/index.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/rate-limiter.js +1 -1
- package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/validator.js +11 -11
- package/v3/{@claude-flow → @odd-flow}/cli/package.json +5 -5
- package/v3/{@claude-flow → @odd-flow}/shared/README.md +35 -35
- package/v3/{@claude-flow → @odd-flow}/shared/package.json +1 -1
- package/v3/README.md +55 -55
- /package/v3/{@claude-flow → @odd-flow}/cli/bin/preinstall.cjs +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-builder.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-builder.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-distribution.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-distribution.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-format.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/appliance/rvfa-format.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/benchmarks/pretrain/index.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/agent-wasm.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/agent.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/analyze.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/appliance-advanced.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/appliance-advanced.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/appliance.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/autopilot.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/benchmark.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/claims.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/completions.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/config.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/daemon.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/deployment.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/doctor.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/embeddings.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/guidance.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/hive-mind.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/hooks.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/init.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/issues.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/memory.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/migrate.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/neural.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/performance.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/plugins.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/process.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/providers.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/route.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/backup.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/init.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/migrate.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/optimize.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/ruvector/status.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/security.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/session.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/start.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/status.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/swarm.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/task.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/transfer-store.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/commands/workflow.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/infrastructure/in-memory-repositories.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/claudemd-generator.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/executor.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/index.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/mcp-generator.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/settings-generator.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/statusline-generator.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/init/types.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-client.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-client.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/agent-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/agentdb-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/analyze-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/analyze-tools.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/config-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/coordination-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/embeddings-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/hooks-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/memory-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/performance-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/security-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/session-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/swarm-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/system-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/task-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/types.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/types.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/mcp-tools/workflow-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/ewc-consolidation.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/ewc-consolidation.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/intelligence.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/memory-bridge.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/memory-initializer.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/sona-optimizer.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/memory/sona-optimizer.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/output.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/output.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/parser.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/parser.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/manager.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/store/discovery.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/store/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/store/index.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/store/search.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/store/search.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/store/types.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/store/types.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/tests/standalone-test.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/plugins/tests/test-plugin-store.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/prompt.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/prompt.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/ast-analyzer.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/ast-analyzer.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/coverage-router.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/coverage-router.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/coverage-tools.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/coverage-tools.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/diff-classifier.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/diff-classifier.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/enhanced-model-router.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/enhanced-model-router.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/flash-attention.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/flash-attention.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/lora-adapter.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/lora-adapter.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/model-router.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/model-router.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/moe-router.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/moe-router.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/q-learning-router.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/q-learning-router.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/semantic-router.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/semantic-router.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/vector-db.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/ruvector/vector-db.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/agentic-flow-bridge.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/agentic-flow-bridge.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/claim-service.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/config-file-manager.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/container-worker-pool.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/headless-worker-executor.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/index.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/registry-api.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/ruvector-training.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/ruvector-training.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/services/worker-queue.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/suggest.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/anonymization/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/anonymization/index.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/deploy-seraphine.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/deploy-seraphine.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/export.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/export.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/index.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/ipfs/client.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/ipfs/client.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/models/seraphine.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/serialization/cfp.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/storage/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/storage/index.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/discovery.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/download.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/download.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/index.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/index.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/publish.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/publish.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/registry.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/search.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/search.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/tests/standalone-test.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/types.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/store/types.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/test-seraphine.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/tests/test-store.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/tests/test-store.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/types.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/transfer/types.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/types.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/types.js +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/executor.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/rate-limiter.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/update/validator.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/utils/path-validation.d.ts +0 -0
- /package/v3/{@claude-flow → @odd-flow}/cli/dist/src/utils/path-validation.js +0 -0
|
@@ -124,7 +124,7 @@ function generateSimpleEmbedding(text, dimension = 384) {
|
|
|
124
124
|
}
|
|
125
125
|
// ── Runtime routing outcome persistence ──────────────────────────────
|
|
126
126
|
// Closes the learning loop: post-task records outcomes → route loads them.
|
|
127
|
-
const ROUTING_OUTCOMES_PATH = join(resolve('.'), '.
|
|
127
|
+
const ROUTING_OUTCOMES_PATH = join(resolve('.'), '.odd-flow/routing-outcomes.json');
|
|
128
128
|
const ROUTING_STOPWORDS = new Set([
|
|
129
129
|
'the', 'a', 'an', 'is', 'are', 'was', 'were', 'be', 'been', 'being', 'have', 'has', 'had',
|
|
130
130
|
'do', 'does', 'did', 'will', 'would', 'could', 'should', 'may', 'might', 'shall', 'can',
|
|
@@ -361,7 +361,7 @@ async function getLoRAAdapter() {
|
|
|
361
361
|
}
|
|
362
362
|
// In-memory trajectory tracking (persisted on end)
|
|
363
363
|
const activeTrajectories = new Map();
|
|
364
|
-
const MEMORY_DIR = '.
|
|
364
|
+
const MEMORY_DIR = '.odd-flow/memory';
|
|
365
365
|
const MEMORY_FILE = 'store.json';
|
|
366
366
|
function getMemoryPath() {
|
|
367
367
|
return resolve(join(MEMORY_DIR, MEMORY_FILE));
|
|
@@ -2118,7 +2118,7 @@ export const hooksPatternSearch = {
|
|
|
2118
2118
|
results: [],
|
|
2119
2119
|
searchTimeMs: 0,
|
|
2120
2120
|
backend: 'unavailable',
|
|
2121
|
-
note: 'Real vector search not available. Initialize memory database with:
|
|
2121
|
+
note: 'Real vector search not available. Initialize memory database with: odd-flow memory init',
|
|
2122
2122
|
};
|
|
2123
2123
|
},
|
|
2124
2124
|
};
|
|
@@ -19,4 +19,7 @@ export { progressTools } from './progress-tools.js';
|
|
|
19
19
|
export { securityTools } from './security-tools.js';
|
|
20
20
|
export { embeddingsTools } from './embeddings-tools.js';
|
|
21
21
|
export { claimsTools } from './claims-tools.js';
|
|
22
|
+
export { refineryTools } from './refinery-tools.js';
|
|
23
|
+
export { escalationTools } from './escalation-tools.js';
|
|
24
|
+
export { schedulerTools } from './scheduler-tools.js';
|
|
22
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -18,4 +18,8 @@ export { progressTools } from './progress-tools.js';
|
|
|
18
18
|
export { securityTools } from './security-tools.js';
|
|
19
19
|
export { embeddingsTools } from './embeddings-tools.js';
|
|
20
20
|
export { claimsTools } from './claims-tools.js';
|
|
21
|
+
// Phase D: Gastown Augmentation
|
|
22
|
+
export { refineryTools } from './refinery-tools.js';
|
|
23
|
+
export { escalationTools } from './escalation-tools.js';
|
|
24
|
+
export { schedulerTools } from './scheduler-tools.js';
|
|
21
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from 'fs';
|
|
13
13
|
import { join, resolve } from 'path';
|
|
14
14
|
// Paths
|
|
15
|
-
const MEMORY_DIR = '.
|
|
15
|
+
const MEMORY_DIR = '.odd-flow/memory';
|
|
16
16
|
const LEGACY_MEMORY_FILE = 'store.json';
|
|
17
17
|
const MIGRATION_MARKER = '.migrated-to-sqlite';
|
|
18
18
|
function getMemoryDir() {
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* V2 Compatibility - Neural network and ML tools
|
|
5
5
|
*
|
|
6
6
|
* ✅ HYBRID Implementation:
|
|
7
|
-
* - Uses @
|
|
8
|
-
* - Falls back to simulated embeddings when @
|
|
7
|
+
* - Uses @odd-flow/embeddings for REAL embeddings when available
|
|
8
|
+
* - Falls back to simulated embeddings when @odd-flow/embeddings not installed
|
|
9
9
|
* - Pattern storage and search with cosine similarity
|
|
10
10
|
* - Training progress tracked (actual model training requires external tools)
|
|
11
11
|
*
|
|
12
|
-
* Note: For production neural features, use @
|
|
12
|
+
* Note: For production neural features, use @odd-flow/neural module
|
|
13
13
|
*/
|
|
14
14
|
import type { MCPTool } from './types.js';
|
|
15
15
|
export declare const neuralTools: MCPTool[];
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
* V2 Compatibility - Neural network and ML tools
|
|
5
5
|
*
|
|
6
6
|
* ✅ HYBRID Implementation:
|
|
7
|
-
* - Uses @
|
|
8
|
-
* - Falls back to simulated embeddings when @
|
|
7
|
+
* - Uses @odd-flow/embeddings for REAL embeddings when available
|
|
8
|
+
* - Falls back to simulated embeddings when @odd-flow/embeddings not installed
|
|
9
9
|
* - Pattern storage and search with cosine similarity
|
|
10
10
|
* - Training progress tracked (actual model training requires external tools)
|
|
11
11
|
*
|
|
12
|
-
* Note: For production neural features, use @
|
|
12
|
+
* Note: For production neural features, use @odd-flow/neural module
|
|
13
13
|
*/
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
15
15
|
import { join } from 'node:path';
|
|
16
|
-
// Try to import real embeddings — prefer agentic-flow v3 ReasoningBank, then @
|
|
16
|
+
// Try to import real embeddings — prefer agentic-flow v3 ReasoningBank, then @odd-flow/embeddings
|
|
17
17
|
let realEmbeddings = null;
|
|
18
18
|
let embeddingServiceName = 'none';
|
|
19
19
|
try {
|
|
@@ -23,9 +23,9 @@ try {
|
|
|
23
23
|
realEmbeddings = { embed: (text) => rb.computeEmbedding(text) };
|
|
24
24
|
embeddingServiceName = 'agentic-flow/reasoningbank';
|
|
25
25
|
}
|
|
26
|
-
// Tier 2: @
|
|
26
|
+
// Tier 2: @odd-flow/embeddings
|
|
27
27
|
if (!realEmbeddings) {
|
|
28
|
-
const embeddingsModule = await import('@
|
|
28
|
+
const embeddingsModule = await import('@odd-flow/embeddings').catch(() => null);
|
|
29
29
|
if (embeddingsModule?.createEmbeddingService) {
|
|
30
30
|
try {
|
|
31
31
|
const service = embeddingsModule.createEmbeddingService({ provider: 'agentic-flow' });
|
|
@@ -54,7 +54,7 @@ catch {
|
|
|
54
54
|
// No embedding provider available, will use fallback
|
|
55
55
|
}
|
|
56
56
|
// Storage paths
|
|
57
|
-
const STORAGE_DIR = '.
|
|
57
|
+
const STORAGE_DIR = '.odd-flow';
|
|
58
58
|
const NEURAL_DIR = 'neural';
|
|
59
59
|
const MODELS_FILE = 'models.json';
|
|
60
60
|
const PATTERNS_FILE = 'patterns.json';
|
|
@@ -389,7 +389,7 @@ export const neuralTools = [
|
|
|
389
389
|
const patterns = Object.values(store.patterns);
|
|
390
390
|
return {
|
|
391
391
|
_realEmbeddings: !!realEmbeddings,
|
|
392
|
-
embeddingProvider: realEmbeddings ? `@
|
|
392
|
+
embeddingProvider: realEmbeddings ? `@odd-flow/embeddings (${embeddingServiceName})` : 'hash-based (deterministic)',
|
|
393
393
|
models: {
|
|
394
394
|
total: models.length,
|
|
395
395
|
ready: models.filter(m => m.status === 'ready').length,
|
|
@@ -15,7 +15,7 @@ import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
|
15
15
|
import { join } from 'node:path';
|
|
16
16
|
import * as os from 'node:os';
|
|
17
17
|
// Storage paths
|
|
18
|
-
const STORAGE_DIR = '.
|
|
18
|
+
const STORAGE_DIR = '.odd-flow';
|
|
19
19
|
const PERF_DIR = 'performance';
|
|
20
20
|
const METRICS_FILE = 'metrics.json';
|
|
21
21
|
const BENCHMARKS_FILE = 'benchmarks.json';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides MCP tools for checking and syncing V3 implementation progress.
|
|
5
5
|
*
|
|
6
|
-
* @module @
|
|
6
|
+
* @module @odd-flow/cli/mcp-tools/progress
|
|
7
7
|
*/
|
|
8
8
|
import { existsSync, readdirSync, readFileSync, writeFileSync, mkdirSync } from 'fs';
|
|
9
9
|
import { join, basename, dirname } from 'path';
|
|
@@ -12,9 +12,9 @@ import { fileURLToPath } from 'url';
|
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
13
|
const __dirname = dirname(__filename);
|
|
14
14
|
// From dist/src/mcp-tools or src/mcp-tools, navigate to v3 directory
|
|
15
|
-
// CLI is at v3/@
|
|
15
|
+
// CLI is at v3/@odd-flow/cli, so go up 2 levels from cli to get to v3
|
|
16
16
|
const CLI_ROOT = join(__dirname, '../../..');
|
|
17
|
-
const CLAUDE_FLOW_DIR = join(CLI_ROOT, '..'); // @
|
|
17
|
+
const CLAUDE_FLOW_DIR = join(CLI_ROOT, '..'); // @odd-flow directory
|
|
18
18
|
const V3_DIR = join(CLAUDE_FLOW_DIR, '..'); // v3 directory
|
|
19
19
|
const PROJECT_ROOT = join(V3_DIR, '..');
|
|
20
20
|
// Utility/service packages follow DDD differently - their services ARE the application layer
|
|
@@ -92,7 +92,7 @@ function calculateModuleProgress(moduleDir) {
|
|
|
92
92
|
async function calculateProgress() {
|
|
93
93
|
const now = new Date().toISOString();
|
|
94
94
|
// Count V3 modules
|
|
95
|
-
const modulesDir = join(V3_DIR, '@
|
|
95
|
+
const modulesDir = join(V3_DIR, '@odd-flow');
|
|
96
96
|
const modules = [];
|
|
97
97
|
let totalProgress = 0;
|
|
98
98
|
let explicitDDD = 0;
|
|
@@ -119,7 +119,7 @@ async function calculateProgress() {
|
|
|
119
119
|
const totalStats = countFilesAndLines(V3_DIR);
|
|
120
120
|
// Count CLI commands (from commands/index.ts)
|
|
121
121
|
let cliCommands = 28; // Default to known count
|
|
122
|
-
const commandsIndexPath = join(V3_DIR, '@
|
|
122
|
+
const commandsIndexPath = join(V3_DIR, '@odd-flow/cli/src/commands/index.ts');
|
|
123
123
|
if (existsSync(commandsIndexPath)) {
|
|
124
124
|
try {
|
|
125
125
|
const content = readFileSync(commandsIndexPath, 'utf-8');
|
|
@@ -132,7 +132,7 @@ async function calculateProgress() {
|
|
|
132
132
|
}
|
|
133
133
|
// Count MCP tools
|
|
134
134
|
let mcpTools = 100; // Approximate
|
|
135
|
-
const toolsIndexPath = join(V3_DIR, '@
|
|
135
|
+
const toolsIndexPath = join(V3_DIR, '@odd-flow/cli/src/mcp-tools/index.ts');
|
|
136
136
|
if (existsSync(toolsIndexPath)) {
|
|
137
137
|
try {
|
|
138
138
|
const content = readFileSync(toolsIndexPath, 'utf-8');
|
|
@@ -142,7 +142,7 @@ async function calculateProgress() {
|
|
|
142
142
|
}
|
|
143
143
|
// Count hooks subcommands (count const *Command definitions)
|
|
144
144
|
let hooksSubcommands = 27; // Default to documented count
|
|
145
|
-
const hooksPath = join(V3_DIR, '@
|
|
145
|
+
const hooksPath = join(V3_DIR, '@odd-flow/cli/src/commands/hooks.ts');
|
|
146
146
|
if (existsSync(hooksPath)) {
|
|
147
147
|
try {
|
|
148
148
|
const content = readFileSync(hooksPath, 'utf-8');
|
|
@@ -186,7 +186,7 @@ async function calculateProgress() {
|
|
|
186
186
|
async function syncProgress() {
|
|
187
187
|
const metrics = await calculateProgress();
|
|
188
188
|
// Persist to file
|
|
189
|
-
const metricsDir = join(PROJECT_ROOT, '.
|
|
189
|
+
const metricsDir = join(PROJECT_ROOT, '.odd-flow/metrics');
|
|
190
190
|
if (!existsSync(metricsDir)) {
|
|
191
191
|
mkdirSync(metricsDir, { recursive: true });
|
|
192
192
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refinery MCP Tools for CLI
|
|
3
|
+
*
|
|
4
|
+
* Implements MCP tools for the Refinery (merge queue) service.
|
|
5
|
+
* Provides programmatic access to changeset submission, conflict
|
|
6
|
+
* detection, and merge resolution for MCP clients.
|
|
7
|
+
*
|
|
8
|
+
* @module @odd-flow/cli/mcp-tools/refinery
|
|
9
|
+
*/
|
|
10
|
+
import type { MCPTool } from './types.js';
|
|
11
|
+
import type { Refinery } from '../services/refinery.js';
|
|
12
|
+
export declare function setActiveRefinery(refinery: Refinery | null): void;
|
|
13
|
+
export declare function getActiveRefinery(): Refinery | null;
|
|
14
|
+
export declare const refineryTools: MCPTool[];
|
|
15
|
+
export default refineryTools;
|
|
16
|
+
//# sourceMappingURL=refinery-tools.d.ts.map
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refinery MCP Tools for CLI
|
|
3
|
+
*
|
|
4
|
+
* Implements MCP tools for the Refinery (merge queue) service.
|
|
5
|
+
* Provides programmatic access to changeset submission, conflict
|
|
6
|
+
* detection, and merge resolution for MCP clients.
|
|
7
|
+
*
|
|
8
|
+
* @module @odd-flow/cli/mcp-tools/refinery
|
|
9
|
+
*/
|
|
10
|
+
// Module-level singleton (started by swarm-tools.ts)
|
|
11
|
+
let activeRefinery = null;
|
|
12
|
+
export function setActiveRefinery(refinery) {
|
|
13
|
+
activeRefinery = refinery;
|
|
14
|
+
}
|
|
15
|
+
export function getActiveRefinery() {
|
|
16
|
+
return activeRefinery;
|
|
17
|
+
}
|
|
18
|
+
export const refineryTools = [
|
|
19
|
+
{
|
|
20
|
+
name: 'refinery_submit',
|
|
21
|
+
description: 'Submit agent changeset to the merge queue for conflict detection',
|
|
22
|
+
category: 'refinery',
|
|
23
|
+
inputSchema: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
agentId: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'ID of the agent submitting the changeset',
|
|
29
|
+
},
|
|
30
|
+
files: {
|
|
31
|
+
type: 'array',
|
|
32
|
+
description: 'Array of file changes to submit',
|
|
33
|
+
items: {
|
|
34
|
+
type: 'object',
|
|
35
|
+
properties: {
|
|
36
|
+
path: { type: 'string', description: 'File path' },
|
|
37
|
+
content: { type: 'string', description: 'File content' },
|
|
38
|
+
},
|
|
39
|
+
required: ['path', 'content'],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
contracts: {
|
|
43
|
+
type: 'array',
|
|
44
|
+
description: 'Optional contract definitions for conflict detection',
|
|
45
|
+
items: {
|
|
46
|
+
type: 'object',
|
|
47
|
+
properties: {
|
|
48
|
+
name: { type: 'string', description: 'Contract name' },
|
|
49
|
+
fields: {
|
|
50
|
+
type: 'array',
|
|
51
|
+
description: 'Contract fields',
|
|
52
|
+
items: { type: 'string' },
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
required: ['name', 'fields'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
taskId: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'Optional task ID associated with this changeset',
|
|
61
|
+
},
|
|
62
|
+
role: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
description: 'Optional role of the submitting agent',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
required: ['agentId', 'files'],
|
|
68
|
+
},
|
|
69
|
+
handler: async (input) => {
|
|
70
|
+
if (!activeRefinery) {
|
|
71
|
+
return {
|
|
72
|
+
content: [{
|
|
73
|
+
type: 'text',
|
|
74
|
+
text: JSON.stringify({ success: false, error: 'No active refinery. Start a swarm first.' }),
|
|
75
|
+
}],
|
|
76
|
+
isError: true,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
const agentId = input.agentId;
|
|
80
|
+
const files = input.files;
|
|
81
|
+
const contracts = input.contracts;
|
|
82
|
+
const taskId = input.taskId;
|
|
83
|
+
const role = input.role;
|
|
84
|
+
try {
|
|
85
|
+
const result = await activeRefinery.submit({
|
|
86
|
+
agentId,
|
|
87
|
+
files,
|
|
88
|
+
contracts,
|
|
89
|
+
taskId,
|
|
90
|
+
role,
|
|
91
|
+
});
|
|
92
|
+
return {
|
|
93
|
+
content: [{
|
|
94
|
+
type: 'text',
|
|
95
|
+
text: JSON.stringify({ success: true, ...result }),
|
|
96
|
+
}],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
return {
|
|
101
|
+
content: [{
|
|
102
|
+
type: 'text',
|
|
103
|
+
text: JSON.stringify({
|
|
104
|
+
success: false,
|
|
105
|
+
error: error instanceof Error ? error.message : String(error),
|
|
106
|
+
}),
|
|
107
|
+
}],
|
|
108
|
+
isError: true,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'refinery_status',
|
|
115
|
+
description: 'Get merge queue status including pending, committed, and conflicted changesets',
|
|
116
|
+
category: 'refinery',
|
|
117
|
+
inputSchema: {
|
|
118
|
+
type: 'object',
|
|
119
|
+
properties: {},
|
|
120
|
+
},
|
|
121
|
+
handler: async () => {
|
|
122
|
+
if (!activeRefinery) {
|
|
123
|
+
return {
|
|
124
|
+
content: [{
|
|
125
|
+
type: 'text',
|
|
126
|
+
text: JSON.stringify({ active: false }),
|
|
127
|
+
}],
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
try {
|
|
131
|
+
const status = await activeRefinery.status();
|
|
132
|
+
return {
|
|
133
|
+
content: [{
|
|
134
|
+
type: 'text',
|
|
135
|
+
text: JSON.stringify({ active: true, ...status }),
|
|
136
|
+
}],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
catch (error) {
|
|
140
|
+
return {
|
|
141
|
+
content: [{
|
|
142
|
+
type: 'text',
|
|
143
|
+
text: JSON.stringify({
|
|
144
|
+
active: true,
|
|
145
|
+
error: error instanceof Error ? error.message : String(error),
|
|
146
|
+
}),
|
|
147
|
+
}],
|
|
148
|
+
isError: true,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'refinery_resolve',
|
|
155
|
+
description: 'Resolve a merge conflict by choosing version A, B, or providing merged content',
|
|
156
|
+
category: 'refinery',
|
|
157
|
+
inputSchema: {
|
|
158
|
+
type: 'object',
|
|
159
|
+
properties: {
|
|
160
|
+
conflictId: {
|
|
161
|
+
type: 'string',
|
|
162
|
+
description: 'ID of the conflict to resolve',
|
|
163
|
+
},
|
|
164
|
+
resolution: {
|
|
165
|
+
type: 'string',
|
|
166
|
+
description: 'Resolution strategy',
|
|
167
|
+
enum: ['A', 'B', 'merge'],
|
|
168
|
+
},
|
|
169
|
+
mergedContent: {
|
|
170
|
+
type: 'string',
|
|
171
|
+
description: 'Merged content when resolution is "merge"',
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
required: ['conflictId', 'resolution'],
|
|
175
|
+
},
|
|
176
|
+
handler: async (input) => {
|
|
177
|
+
if (!activeRefinery) {
|
|
178
|
+
return {
|
|
179
|
+
content: [{
|
|
180
|
+
type: 'text',
|
|
181
|
+
text: JSON.stringify({ success: false, error: 'No active refinery. Start a swarm first.' }),
|
|
182
|
+
}],
|
|
183
|
+
isError: true,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
const conflictId = input.conflictId;
|
|
187
|
+
const resolution = input.resolution;
|
|
188
|
+
const mergedContent = input.mergedContent;
|
|
189
|
+
if (resolution === 'merge' && !mergedContent) {
|
|
190
|
+
return {
|
|
191
|
+
content: [{
|
|
192
|
+
type: 'text',
|
|
193
|
+
text: JSON.stringify({ success: false, error: 'mergedContent is required when resolution is "merge"' }),
|
|
194
|
+
}],
|
|
195
|
+
isError: true,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
try {
|
|
199
|
+
activeRefinery.resolve(conflictId, resolution, mergedContent);
|
|
200
|
+
return {
|
|
201
|
+
content: [{
|
|
202
|
+
type: 'text',
|
|
203
|
+
text: JSON.stringify({ success: true, conflictId, resolution }),
|
|
204
|
+
}],
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
catch (error) {
|
|
208
|
+
return {
|
|
209
|
+
content: [{
|
|
210
|
+
type: 'text',
|
|
211
|
+
text: JSON.stringify({
|
|
212
|
+
success: false,
|
|
213
|
+
error: error instanceof Error ? error.message : String(error),
|
|
214
|
+
}),
|
|
215
|
+
}],
|
|
216
|
+
isError: true,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
];
|
|
222
|
+
export default refineryTools;
|
|
223
|
+
//# sourceMappingURL=refinery-tools.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scheduler MCP Tools for CLI
|
|
3
|
+
*
|
|
4
|
+
* Implements MCP tools for the Scheduler (D5) capacity governance service.
|
|
5
|
+
* Provides programmatic access to scheduler status and capacity reporting
|
|
6
|
+
* for MCP clients.
|
|
7
|
+
*
|
|
8
|
+
* @module @odd-flow/cli/mcp-tools/scheduler
|
|
9
|
+
*/
|
|
10
|
+
import type { MCPTool } from './types.js';
|
|
11
|
+
import type { Scheduler } from '../services/scheduler.js';
|
|
12
|
+
export declare function setActiveScheduler(scheduler: Scheduler | null): void;
|
|
13
|
+
export declare function getActiveScheduler(): Scheduler | null;
|
|
14
|
+
export declare const schedulerTools: MCPTool[];
|
|
15
|
+
export default schedulerTools;
|
|
16
|
+
//# sourceMappingURL=scheduler-tools.d.ts.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scheduler MCP Tools for CLI
|
|
3
|
+
*
|
|
4
|
+
* Implements MCP tools for the Scheduler (D5) capacity governance service.
|
|
5
|
+
* Provides programmatic access to scheduler status and capacity reporting
|
|
6
|
+
* for MCP clients.
|
|
7
|
+
*
|
|
8
|
+
* @module @odd-flow/cli/mcp-tools/scheduler
|
|
9
|
+
*/
|
|
10
|
+
// Module-level singleton (started by swarm-tools.ts)
|
|
11
|
+
let activeScheduler = null;
|
|
12
|
+
export function setActiveScheduler(scheduler) {
|
|
13
|
+
activeScheduler = scheduler;
|
|
14
|
+
}
|
|
15
|
+
export function getActiveScheduler() {
|
|
16
|
+
return activeScheduler;
|
|
17
|
+
}
|
|
18
|
+
export const schedulerTools = [
|
|
19
|
+
{
|
|
20
|
+
name: 'scheduler_status',
|
|
21
|
+
description: 'Get capacity scheduler status including agent count, scaling direction, and recent events',
|
|
22
|
+
category: 'scheduler',
|
|
23
|
+
inputSchema: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
includeReport: {
|
|
27
|
+
type: 'boolean',
|
|
28
|
+
description: 'If true, include full capacity report',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
handler: async (input) => {
|
|
33
|
+
if (!activeScheduler) {
|
|
34
|
+
return {
|
|
35
|
+
content: [{
|
|
36
|
+
type: 'text',
|
|
37
|
+
text: JSON.stringify({ active: false }),
|
|
38
|
+
}],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const includeReport = input.includeReport;
|
|
42
|
+
try {
|
|
43
|
+
const status = await activeScheduler.status();
|
|
44
|
+
const result = { active: true, ...status };
|
|
45
|
+
if (includeReport) {
|
|
46
|
+
const report = await activeScheduler.report();
|
|
47
|
+
result.report = report;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
content: [{
|
|
51
|
+
type: 'text',
|
|
52
|
+
text: JSON.stringify(result),
|
|
53
|
+
}],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
return {
|
|
58
|
+
content: [{
|
|
59
|
+
type: 'text',
|
|
60
|
+
text: JSON.stringify({
|
|
61
|
+
active: true,
|
|
62
|
+
error: error instanceof Error ? error.message : String(error),
|
|
63
|
+
}),
|
|
64
|
+
}],
|
|
65
|
+
isError: true,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
export default schedulerTools;
|
|
72
|
+
//# sourceMappingURL=scheduler-tools.js.map
|
|
@@ -19,7 +19,7 @@ async function getAIDefence() {
|
|
|
19
19
|
if (aidefenceInstance) {
|
|
20
20
|
return aidefenceInstance;
|
|
21
21
|
}
|
|
22
|
-
const packageName = '@
|
|
22
|
+
const packageName = '@odd-flow/aidefence';
|
|
23
23
|
// First attempt - try to load via dynamic import (ESM)
|
|
24
24
|
try {
|
|
25
25
|
const aidefence = await import(packageName);
|
|
@@ -39,7 +39,7 @@ async function getAIDefence() {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
// No auto-install — package must be installed manually
|
|
42
|
-
throw new Error('AIDefence package not available. Install with: npm install @
|
|
42
|
+
throw new Error('AIDefence package not available. Install with: npm install @odd-flow/aidefence');
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Scan input for AI manipulation threats
|
|
@@ -330,7 +330,7 @@ const aidefenceIsSafeTool = {
|
|
|
330
330
|
handler: async (args) => {
|
|
331
331
|
const input = args.input;
|
|
332
332
|
try {
|
|
333
|
-
const { isSafe } = await import('@
|
|
333
|
+
const { isSafe } = await import('@odd-flow/aidefence');
|
|
334
334
|
const safe = isSafe(input);
|
|
335
335
|
return {
|
|
336
336
|
content: [{
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { existsSync, readFileSync, writeFileSync, mkdirSync, readdirSync, unlinkSync, statSync } from 'node:fs';
|
|
7
7
|
import { join } from 'node:path';
|
|
8
8
|
// Storage paths
|
|
9
|
-
const STORAGE_DIR = '.
|
|
9
|
+
const STORAGE_DIR = '.odd-flow';
|
|
10
10
|
const SESSION_DIR = 'sessions';
|
|
11
11
|
function getSessionDir() {
|
|
12
12
|
return join(process.cwd(), STORAGE_DIR, SESSION_DIR);
|