@toyako/hive 1.0.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/.agent-hive/audit/audit-1782626932077.json +42 -0
- package/.agent-hive/audit/audit-1782632399175.json +34 -0
- package/.agent-hive/benchmark/runtime-benchmark.json +32 -0
- package/.agent-hive/logs/trace-mqaj7s0x.jsonl +2 -0
- package/.agent-hive/runtime/checkpoint/snapshot-task-1782567056424-vmzojglrb.json +13 -0
- package/.agent-hive/runtime/checkpoint/snapshot-task-1782567218044-r9j58nsum.json +10 -0
- package/.agent-hive/runtime/checkpoint/task-1782561125960-o9kjl8iv4.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782561318850-fqy5h4dj0.json +50 -0
- package/.agent-hive/runtime/checkpoint/task-1782561318861-oy9cxrfwx.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782561835241-68etmejqz.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782567056424-vmzojglrb.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782567218044-r9j58nsum.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782632389172-yzxn6p6tq.json +25 -0
- package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/package.json +8 -0
- package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/src/auth.js +19 -0
- package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/src/auth.test.js +17 -0
- package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/test-grand-review.js +270 -0
- package/.agent-hive/sandbox/sandbox-task-1782567218044-r9j58nsum-1782567218053/auth.js +7 -0
- package/.agent-hive/stability/stability_window_trace_20260703_1713.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_1746.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119745.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119755.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119765.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119782.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119791.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119801.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119810.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119818.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119826.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119835.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202743.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202749.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202762.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202768.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202773.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202778.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202784.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202789.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202794.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202800.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322538.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322552.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322557.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322562.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322567.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322573.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322579.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322584.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322589.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322595.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404476.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404482.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404488.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404494.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404499.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404504.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404512.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404519.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404526.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404533.json +12 -0
- package/.agent-hive/traces/task-bench-claude-code-01.json +37 -0
- package/.agent-hive/traces/task-bench-claude-code-02.json +37 -0
- package/.agent-hive/traces/task-bench-claude-code-03.json +37 -0
- package/.agent-hive/traces/task-bench-claude-code-04.json +37 -0
- package/.agent-hive/traces/task-bench-claude-plan-01.json +37 -0
- package/.agent-hive/traces/task-bench-claude-plan-02.json +37 -0
- package/.agent-hive/traces/task-bench-claude-plan-03.json +37 -0
- package/.agent-hive/traces/task-bench-claude-reason-01.json +37 -0
- package/.agent-hive/traces/task-bench-claude-reason-02.json +37 -0
- package/.agent-hive/traces/task-bench-claude-reason-03.json +37 -0
- package/.agent-hive/traces/task-bench-claude-review-01.json +37 -0
- package/.agent-hive/traces/task-bench-claude-review-02.json +37 -0
- package/.agent-hive/traces/task-bench-claude-review-03.json +37 -0
- package/.agent-hive/traces/task-bench-codex-code-01.json +37 -0
- package/.agent-hive/traces/task-bench-codex-code-02.json +37 -0
- package/.agent-hive/traces/task-bench-codex-code-03.json +37 -0
- package/.agent-hive/traces/task-bench-codex-code-04.json +37 -0
- package/.agent-hive/traces/task-bench-codex-plan-01.json +37 -0
- package/.agent-hive/traces/task-bench-codex-plan-02.json +37 -0
- package/.agent-hive/traces/task-bench-codex-plan-03.json +37 -0
- package/.agent-hive/traces/task-bench-codex-reason-01.json +37 -0
- package/.agent-hive/traces/task-bench-codex-reason-02.json +37 -0
- package/.agent-hive/traces/task-bench-codex-reason-03.json +37 -0
- package/.agent-hive/traces/task-bench-codex-review-01.json +37 -0
- package/.agent-hive/traces/task-bench-codex-review-02.json +37 -0
- package/.agent-hive/traces/task-bench-codex-review-03.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-code-01.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-code-02.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-code-03.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-code-04.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-plan-01.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-plan-02.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-plan-03.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-reason-01.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-reason-02.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-reason-03.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-review-01.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-review-02.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-review-03.json +37 -0
- package/.det-hash-manifest.json +9 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
- package/.github/ISSUE_TEMPLATE/runtime_compatibility.md +35 -0
- package/.github/workflows/ci.yml +44 -0
- package/.github/workflows/hive-ci.yml +43 -0
- package/CHANGELOG.md +66 -0
- package/CONTRIBUTING.md +61 -0
- package/LICENSE +21 -0
- package/README.es.md +36 -0
- package/README.ja.md +36 -0
- package/README.md +115 -0
- package/README.zh-CN.md +117 -0
- package/RELEASE.md +116 -0
- package/audit-scoreboard.json +55 -0
- package/benchmarks/version.json +20 -0
- package/dist/adapters/ClaudeAdapter.d.ts +14 -0
- package/dist/adapters/ClaudeAdapter.d.ts.map +1 -0
- package/dist/adapters/ClaudeAdapter.js +251 -0
- package/dist/adapters/ClaudeAdapter.js.map +1 -0
- package/dist/adapters/CodexAdapter.d.ts +16 -0
- package/dist/adapters/CodexAdapter.d.ts.map +1 -0
- package/dist/adapters/CodexAdapter.js +140 -0
- package/dist/adapters/CodexAdapter.js.map +1 -0
- package/dist/adapters/HermesAdapter.d.ts +15 -0
- package/dist/adapters/HermesAdapter.d.ts.map +1 -0
- package/dist/adapters/HermesAdapter.js +223 -0
- package/dist/adapters/HermesAdapter.js.map +1 -0
- package/dist/adapters/MockClaudeAdapter.d.ts +29 -0
- package/dist/adapters/MockClaudeAdapter.d.ts.map +1 -0
- package/dist/adapters/MockClaudeAdapter.js +62 -0
- package/dist/adapters/MockClaudeAdapter.js.map +1 -0
- package/dist/adapters/MockCodexAdapter.d.ts +16 -0
- package/dist/adapters/MockCodexAdapter.d.ts.map +1 -0
- package/dist/adapters/MockCodexAdapter.js +34 -0
- package/dist/adapters/MockCodexAdapter.js.map +1 -0
- package/dist/adapters/OpenClawAdapter.d.ts +15 -0
- package/dist/adapters/OpenClawAdapter.d.ts.map +1 -0
- package/dist/adapters/OpenClawAdapter.js +195 -0
- package/dist/adapters/OpenClawAdapter.js.map +1 -0
- package/dist/adapters/registry.d.ts +31 -0
- package/dist/adapters/registry.d.ts.map +1 -0
- package/dist/adapters/registry.js +42 -0
- package/dist/adapters/registry.js.map +1 -0
- package/dist/api/HiveAPI.d.ts +46 -0
- package/dist/api/HiveAPI.d.ts.map +1 -0
- package/dist/api/HiveAPI.js +117 -0
- package/dist/api/HiveAPI.js.map +1 -0
- package/dist/api/MeshAPI.d.ts +46 -0
- package/dist/api/MeshAPI.d.ts.map +1 -0
- package/dist/api/MeshAPI.js +117 -0
- package/dist/api/MeshAPI.js.map +1 -0
- package/dist/benchmark/BenchmarkDataset.d.ts +28 -0
- package/dist/benchmark/BenchmarkDataset.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkDataset.js +102 -0
- package/dist/benchmark/BenchmarkDataset.js.map +1 -0
- package/dist/benchmark/BenchmarkPlan.d.ts +155 -0
- package/dist/benchmark/BenchmarkPlan.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkPlan.js +310 -0
- package/dist/benchmark/BenchmarkPlan.js.map +1 -0
- package/dist/benchmark/BenchmarkReport.d.ts +44 -0
- package/dist/benchmark/BenchmarkReport.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkReport.js +152 -0
- package/dist/benchmark/BenchmarkReport.js.map +1 -0
- package/dist/benchmark/BenchmarkRunner.d.ts +30 -0
- package/dist/benchmark/BenchmarkRunner.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkRunner.js +115 -0
- package/dist/benchmark/BenchmarkRunner.js.map +1 -0
- package/dist/benchmark/BenchmarkSuite.d.ts +21 -0
- package/dist/benchmark/BenchmarkSuite.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkSuite.js +174 -0
- package/dist/benchmark/BenchmarkSuite.js.map +1 -0
- package/dist/benchmark/index.d.ts +13 -0
- package/dist/benchmark/index.d.ts.map +1 -0
- package/dist/benchmark/index.js +26 -0
- package/dist/benchmark/index.js.map +1 -0
- package/dist/broker/AgentRegistry.d.ts +15 -0
- package/dist/broker/AgentRegistry.d.ts.map +1 -0
- package/dist/broker/AgentRegistry.js +103 -0
- package/dist/broker/AgentRegistry.js.map +1 -0
- package/dist/broker/Broker.d.ts +52 -0
- package/dist/broker/Broker.d.ts.map +1 -0
- package/dist/broker/Broker.js +119 -0
- package/dist/broker/Broker.js.map +1 -0
- package/dist/broker/GraphOperations.d.ts +38 -0
- package/dist/broker/GraphOperations.d.ts.map +1 -0
- package/dist/broker/GraphOperations.js +66 -0
- package/dist/broker/GraphOperations.js.map +1 -0
- package/dist/broker/MessageBus.d.ts +22 -0
- package/dist/broker/MessageBus.d.ts.map +1 -0
- package/dist/broker/MessageBus.js +85 -0
- package/dist/broker/MessageBus.js.map +1 -0
- package/dist/broker/MessageRouter.d.ts +51 -0
- package/dist/broker/MessageRouter.d.ts.map +1 -0
- package/dist/broker/MessageRouter.js +145 -0
- package/dist/broker/MessageRouter.js.map +1 -0
- package/dist/broker/TaskProcessor.d.ts +35 -0
- package/dist/broker/TaskProcessor.d.ts.map +1 -0
- package/dist/broker/TaskProcessor.js +476 -0
- package/dist/broker/TaskProcessor.js.map +1 -0
- package/dist/broker/TaskRouter.d.ts +9 -0
- package/dist/broker/TaskRouter.d.ts.map +1 -0
- package/dist/broker/TaskRouter.js +36 -0
- package/dist/broker/TaskRouter.js.map +1 -0
- package/dist/channels/ChannelPlugin.d.ts +28 -0
- package/dist/channels/ChannelPlugin.d.ts.map +1 -0
- package/dist/channels/ChannelPlugin.js +7 -0
- package/dist/channels/ChannelPlugin.js.map +1 -0
- package/dist/ci/CIGate.d.ts +62 -0
- package/dist/ci/CIGate.d.ts.map +1 -0
- package/dist/ci/CIGate.js +146 -0
- package/dist/ci/CIGate.js.map +1 -0
- package/dist/ci/ContractLock.d.ts +41 -0
- package/dist/ci/ContractLock.d.ts.map +1 -0
- package/dist/ci/ContractLock.js +103 -0
- package/dist/ci/ContractLock.js.map +1 -0
- package/dist/cli/hive-cli.d.ts +14 -0
- package/dist/cli/hive-cli.d.ts.map +1 -0
- package/dist/cli/hive-cli.js +82 -0
- package/dist/cli/hive-cli.js.map +1 -0
- package/dist/cli.d.ts +14 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +193 -0
- package/dist/cli.js.map +1 -0
- package/dist/command/CommandAST.d.ts +28 -0
- package/dist/command/CommandAST.d.ts.map +1 -0
- package/dist/command/CommandAST.js +22 -0
- package/dist/command/CommandAST.js.map +1 -0
- package/dist/commands/cli.d.ts +3 -0
- package/dist/commands/cli.d.ts.map +1 -0
- package/dist/commands/cli.js +848 -0
- package/dist/commands/cli.js.map +1 -0
- package/dist/commands/demo.d.ts +2 -0
- package/dist/commands/demo.d.ts.map +1 -0
- package/dist/commands/demo.js +71 -0
- package/dist/commands/demo.js.map +1 -0
- package/dist/commands/experiment-routing.d.ts +2 -0
- package/dist/commands/experiment-routing.d.ts.map +1 -0
- package/dist/commands/experiment-routing.js +347 -0
- package/dist/commands/experiment-routing.js.map +1 -0
- package/dist/commands/run-validation.d.ts +2 -0
- package/dist/commands/run-validation.d.ts.map +1 -0
- package/dist/commands/run-validation.js.map +1 -0
- package/dist/commands/test-benchmark.d.ts +2 -0
- package/dist/commands/test-benchmark.d.ts.map +1 -0
- package/dist/commands/test-benchmark.js +214 -0
- package/dist/commands/test-benchmark.js.map +1 -0
- package/dist/commands/test-conversation.d.ts +2 -0
- package/dist/commands/test-conversation.d.ts.map +1 -0
- package/dist/commands/test-conversation.js +358 -0
- package/dist/commands/test-conversation.js.map +1 -0
- package/dist/commands/test-crash.d.ts +2 -0
- package/dist/commands/test-crash.d.ts.map +1 -0
- package/dist/commands/test-crash.js +65 -0
- package/dist/commands/test-crash.js.map +1 -0
- package/dist/commands/test-cross-platform.d.ts +2 -0
- package/dist/commands/test-cross-platform.d.ts.map +1 -0
- package/dist/commands/test-cross-platform.js +62 -0
- package/dist/commands/test-cross-platform.js.map +1 -0
- package/dist/commands/test-graph.d.ts +2 -0
- package/dist/commands/test-graph.d.ts.map +1 -0
- package/dist/commands/test-graph.js +526 -0
- package/dist/commands/test-graph.js.map +1 -0
- package/dist/commands/test-observability.d.ts +2 -0
- package/dist/commands/test-observability.d.ts.map +1 -0
- package/dist/commands/test-observability.js +162 -0
- package/dist/commands/test-observability.js.map +1 -0
- package/dist/commands/test-orchestration.d.ts +2 -0
- package/dist/commands/test-orchestration.d.ts.map +1 -0
- package/dist/commands/test-orchestration.js +110 -0
- package/dist/commands/test-orchestration.js.map +1 -0
- package/dist/commands/test-real-world.d.ts +2 -0
- package/dist/commands/test-real-world.d.ts.map +1 -0
- package/dist/commands/test-real-world.js +176 -0
- package/dist/commands/test-real-world.js.map +1 -0
- package/dist/commands/test-reviewer.d.ts +2 -0
- package/dist/commands/test-reviewer.d.ts.map +1 -0
- package/dist/commands/test-reviewer.js +125 -0
- package/dist/commands/test-reviewer.js.map +1 -0
- package/dist/commands/test-runtime-intelligence.d.ts +2 -0
- package/dist/commands/test-runtime-intelligence.d.ts.map +1 -0
- package/dist/commands/test-runtime-intelligence.js +224 -0
- package/dist/commands/test-runtime-intelligence.js.map +1 -0
- package/dist/commands/test-stress.d.ts +2 -0
- package/dist/commands/test-stress.d.ts.map +1 -0
- package/dist/commands/test-stress.js +116 -0
- package/dist/commands/test-stress.js.map +1 -0
- package/dist/commands/test-timeout.d.ts +2 -0
- package/dist/commands/test-timeout.d.ts.map +1 -0
- package/dist/commands/test-timeout.js +126 -0
- package/dist/commands/test-timeout.js.map +1 -0
- package/dist/commands/test-v2-integration.d.ts +2 -0
- package/dist/commands/test-v2-integration.d.ts.map +1 -0
- package/dist/commands/test-v2-integration.js +634 -0
- package/dist/commands/test-v2-integration.js.map +1 -0
- package/dist/commands/test-validation.d.ts +2 -0
- package/dist/commands/test-validation.d.ts.map +1 -0
- package/dist/commands/test-validation.js +198 -0
- package/dist/commands/test-validation.js.map +1 -0
- package/dist/compiler/ArchitectureSynthesizer.d.ts +42 -0
- package/dist/compiler/ArchitectureSynthesizer.d.ts.map +1 -0
- package/dist/compiler/ArchitectureSynthesizer.js +90 -0
- package/dist/compiler/ArchitectureSynthesizer.js.map +1 -0
- package/dist/compiler/BlueprintPackager.d.ts +21 -0
- package/dist/compiler/BlueprintPackager.d.ts.map +1 -0
- package/dist/compiler/BlueprintPackager.js +13 -0
- package/dist/compiler/BlueprintPackager.js.map +1 -0
- package/dist/compiler/CommandCompiler.d.ts +23 -0
- package/dist/compiler/CommandCompiler.d.ts.map +1 -0
- package/dist/compiler/CommandCompiler.js +49 -0
- package/dist/compiler/CommandCompiler.js.map +1 -0
- package/dist/compiler/DAGCompiler.d.ts +12 -0
- package/dist/compiler/DAGCompiler.d.ts.map +1 -0
- package/dist/compiler/DAGCompiler.js +20 -0
- package/dist/compiler/DAGCompiler.js.map +1 -0
- package/dist/compiler/DomainModelGenerator.d.ts +38 -0
- package/dist/compiler/DomainModelGenerator.d.ts.map +1 -0
- package/dist/compiler/DomainModelGenerator.js +104 -0
- package/dist/compiler/DomainModelGenerator.js.map +1 -0
- package/dist/compiler/FeasibilityGate.d.ts +27 -0
- package/dist/compiler/FeasibilityGate.d.ts.map +1 -0
- package/dist/compiler/FeasibilityGate.js +62 -0
- package/dist/compiler/FeasibilityGate.js.map +1 -0
- package/dist/compiler/InputNormalizer.d.ts +34 -0
- package/dist/compiler/InputNormalizer.d.ts.map +1 -0
- package/dist/compiler/InputNormalizer.js +72 -0
- package/dist/compiler/InputNormalizer.js.map +1 -0
- package/dist/compiler/IntentParser.d.ts +40 -0
- package/dist/compiler/IntentParser.d.ts.map +1 -0
- package/dist/compiler/IntentParser.js +96 -0
- package/dist/compiler/IntentParser.js.map +1 -0
- package/dist/compiler/ModulePlanner.d.ts +13 -0
- package/dist/compiler/ModulePlanner.d.ts.map +1 -0
- package/dist/compiler/ModulePlanner.js +25 -0
- package/dist/compiler/ModulePlanner.js.map +1 -0
- package/dist/compiler/PromptCompiler.d.ts +19 -0
- package/dist/compiler/PromptCompiler.d.ts.map +1 -0
- package/dist/compiler/PromptCompiler.js +31 -0
- package/dist/compiler/PromptCompiler.js.map +1 -0
- package/dist/compiler/index.d.ts +34 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/index.js +66 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/context/ContextManager.d.ts +24 -0
- package/dist/context/ContextManager.d.ts.map +1 -0
- package/dist/context/ContextManager.js +51 -0
- package/dist/context/ContextManager.js.map +1 -0
- package/dist/control-plane/BudgetController.d.ts +54 -0
- package/dist/control-plane/BudgetController.d.ts.map +1 -0
- package/dist/control-plane/BudgetController.js +98 -0
- package/dist/control-plane/BudgetController.js.map +1 -0
- package/dist/control-plane/ControlPlane.d.ts +82 -0
- package/dist/control-plane/ControlPlane.d.ts.map +1 -0
- package/dist/control-plane/ControlPlane.js +196 -0
- package/dist/control-plane/ControlPlane.js.map +1 -0
- package/dist/control-plane/ConvergenceGuard.d.ts +39 -0
- package/dist/control-plane/ConvergenceGuard.d.ts.map +1 -0
- package/dist/control-plane/ConvergenceGuard.js +72 -0
- package/dist/control-plane/ConvergenceGuard.js.map +1 -0
- package/dist/control-plane/DriftDetector.d.ts +44 -0
- package/dist/control-plane/DriftDetector.d.ts.map +1 -0
- package/dist/control-plane/DriftDetector.js +83 -0
- package/dist/control-plane/DriftDetector.js.map +1 -0
- package/dist/control-plane/MetricStabilityLock.d.ts +38 -0
- package/dist/control-plane/MetricStabilityLock.d.ts.map +1 -0
- package/dist/control-plane/MetricStabilityLock.js +63 -0
- package/dist/control-plane/MetricStabilityLock.js.map +1 -0
- package/dist/control-plane/index.d.ts +17 -0
- package/dist/control-plane/index.d.ts.map +1 -0
- package/dist/control-plane/index.js +25 -0
- package/dist/control-plane/index.js.map +1 -0
- package/dist/convergence/ConvergenceValidator.d.ts +143 -0
- package/dist/convergence/ConvergenceValidator.d.ts.map +1 -0
- package/dist/convergence/ConvergenceValidator.js +264 -0
- package/dist/convergence/ConvergenceValidator.js.map +1 -0
- package/dist/convergence/index.d.ts +12 -0
- package/dist/convergence/index.d.ts.map +1 -0
- package/dist/convergence/index.js +23 -0
- package/dist/convergence/index.js.map +1 -0
- package/dist/conversation/ConversationManager.d.ts +55 -0
- package/dist/conversation/ConversationManager.d.ts.map +1 -0
- package/dist/conversation/ConversationManager.js +176 -0
- package/dist/conversation/ConversationManager.js.map +1 -0
- package/dist/dashboard/EventStore.d.ts +27 -0
- package/dist/dashboard/EventStore.d.ts.map +1 -0
- package/dist/dashboard/EventStore.js +36 -0
- package/dist/dashboard/EventStore.js.map +1 -0
- package/dist/dashboard/FailureIntelligence.d.ts +77 -0
- package/dist/dashboard/FailureIntelligence.d.ts.map +1 -0
- package/dist/dashboard/FailureIntelligence.js +251 -0
- package/dist/dashboard/FailureIntelligence.js.map +1 -0
- package/dist/dashboard/ObservationDashboard.d.ts +85 -0
- package/dist/dashboard/ObservationDashboard.d.ts.map +1 -0
- package/dist/dashboard/ObservationDashboard.js +178 -0
- package/dist/dashboard/ObservationDashboard.js.map +1 -0
- package/dist/dashboard/StabilityCurve.d.ts +23 -0
- package/dist/dashboard/StabilityCurve.d.ts.map +1 -0
- package/dist/dashboard/StabilityCurve.js +53 -0
- package/dist/dashboard/StabilityCurve.js.map +1 -0
- package/dist/engine/ExecutionEngine.d.ts +29 -0
- package/dist/engine/ExecutionEngine.d.ts.map +1 -0
- package/dist/engine/ExecutionEngine.js +139 -0
- package/dist/engine/ExecutionEngine.js.map +1 -0
- package/dist/engine/PlatformAdapter.d.ts +19 -0
- package/dist/engine/PlatformAdapter.d.ts.map +1 -0
- package/dist/engine/PlatformAdapter.js +77 -0
- package/dist/engine/PlatformAdapter.js.map +1 -0
- package/dist/engine/ResultNormalizer.d.ts +21 -0
- package/dist/engine/ResultNormalizer.d.ts.map +1 -0
- package/dist/engine/ResultNormalizer.js +57 -0
- package/dist/engine/ResultNormalizer.js.map +1 -0
- package/dist/engine/StructuredLogger.d.ts +25 -0
- package/dist/engine/StructuredLogger.d.ts.map +1 -0
- package/dist/engine/StructuredLogger.js +81 -0
- package/dist/engine/StructuredLogger.js.map +1 -0
- package/dist/evaluation/BaselineRunner.d.ts +26 -0
- package/dist/evaluation/BaselineRunner.d.ts.map +1 -0
- package/dist/evaluation/BaselineRunner.js +107 -0
- package/dist/evaluation/BaselineRunner.js.map +1 -0
- package/dist/evaluation/DecisionTrace.d.ts +20 -0
- package/dist/evaluation/DecisionTrace.d.ts.map +1 -0
- package/dist/evaluation/DecisionTrace.js +21 -0
- package/dist/evaluation/DecisionTrace.js.map +1 -0
- package/dist/evaluation/EvaluationMetrics.d.ts +34 -0
- package/dist/evaluation/EvaluationMetrics.d.ts.map +1 -0
- package/dist/evaluation/EvaluationMetrics.js +28 -0
- package/dist/evaluation/EvaluationMetrics.js.map +1 -0
- package/dist/evaluation/GroundTruthDataset.d.ts +18 -0
- package/dist/evaluation/GroundTruthDataset.d.ts.map +1 -0
- package/dist/evaluation/GroundTruthDataset.js +69 -0
- package/dist/evaluation/GroundTruthDataset.js.map +1 -0
- package/dist/evaluation/RealWorldBenchmark.d.ts +21 -0
- package/dist/evaluation/RealWorldBenchmark.d.ts.map +1 -0
- package/dist/evaluation/RealWorldBenchmark.js +73 -0
- package/dist/evaluation/RealWorldBenchmark.js.map +1 -0
- package/dist/evaluation/RealWorldRunner.d.ts +55 -0
- package/dist/evaluation/RealWorldRunner.d.ts.map +1 -0
- package/dist/evaluation/RealWorldRunner.js +133 -0
- package/dist/evaluation/RealWorldRunner.js.map +1 -0
- package/dist/evaluation/ValidationRunner.d.ts +42 -0
- package/dist/evaluation/ValidationRunner.d.ts.map +1 -0
- package/dist/evaluation/ValidationRunner.js +123 -0
- package/dist/evaluation/ValidationRunner.js.map +1 -0
- package/dist/events/AgentEvent.d.ts +62 -0
- package/dist/events/AgentEvent.d.ts.map +1 -0
- package/dist/events/AgentEvent.js +6 -0
- package/dist/events/AgentEvent.js.map +1 -0
- package/dist/events/DecisionEvent.d.ts +16 -0
- package/dist/events/DecisionEvent.d.ts.map +1 -0
- package/dist/events/DecisionEvent.js +6 -0
- package/dist/events/DecisionEvent.js.map +1 -0
- package/dist/events/ExecutionEvent.d.ts +48 -0
- package/dist/events/ExecutionEvent.d.ts.map +1 -0
- package/dist/events/ExecutionEvent.js +3 -0
- package/dist/events/ExecutionEvent.js.map +1 -0
- package/dist/events/SystemEvent.d.ts +11 -0
- package/dist/events/SystemEvent.d.ts.map +1 -0
- package/dist/events/SystemEvent.js +6 -0
- package/dist/events/SystemEvent.js.map +1 -0
- package/dist/evolution/EvolutionEngine.d.ts +121 -0
- package/dist/evolution/EvolutionEngine.d.ts.map +1 -0
- package/dist/evolution/EvolutionEngine.js +288 -0
- package/dist/evolution/EvolutionEngine.js.map +1 -0
- package/dist/evolution/index.d.ts +15 -0
- package/dist/evolution/index.d.ts.map +1 -0
- package/dist/evolution/index.js +24 -0
- package/dist/evolution/index.js.map +1 -0
- package/dist/execution-fabric/DistributedExecutionFabric.d.ts +108 -0
- package/dist/execution-fabric/DistributedExecutionFabric.d.ts.map +1 -0
- package/dist/execution-fabric/DistributedExecutionFabric.js +236 -0
- package/dist/execution-fabric/DistributedExecutionFabric.js.map +1 -0
- package/dist/execution-fabric/index.d.ts +10 -0
- package/dist/execution-fabric/index.d.ts.map +1 -0
- package/dist/execution-fabric/index.js +14 -0
- package/dist/execution-fabric/index.js.map +1 -0
- package/dist/execution-graph/DynamicExecutionGraphRuntime.d.ts +94 -0
- package/dist/execution-graph/DynamicExecutionGraphRuntime.d.ts.map +1 -0
- package/dist/execution-graph/DynamicExecutionGraphRuntime.js +243 -0
- package/dist/execution-graph/DynamicExecutionGraphRuntime.js.map +1 -0
- package/dist/execution-graph/ExecutionGraphEngine.d.ts +88 -0
- package/dist/execution-graph/ExecutionGraphEngine.d.ts.map +1 -0
- package/dist/execution-graph/ExecutionGraphEngine.js +222 -0
- package/dist/execution-graph/ExecutionGraphEngine.js.map +1 -0
- package/dist/execution-graph/index.d.ts +9 -0
- package/dist/execution-graph/index.d.ts.map +1 -0
- package/dist/execution-graph/index.js +16 -0
- package/dist/execution-graph/index.js.map +1 -0
- package/dist/execution-runtime/ExecutionRuntime.d.ts +99 -0
- package/dist/execution-runtime/ExecutionRuntime.d.ts.map +1 -0
- package/dist/execution-runtime/ExecutionRuntime.js +216 -0
- package/dist/execution-runtime/ExecutionRuntime.js.map +1 -0
- package/dist/execution-runtime/index.d.ts +10 -0
- package/dist/execution-runtime/index.d.ts.map +1 -0
- package/dist/execution-runtime/index.js +14 -0
- package/dist/execution-runtime/index.js.map +1 -0
- package/dist/git-governance/GitGovernanceRuntime.d.ts +200 -0
- package/dist/git-governance/GitGovernanceRuntime.d.ts.map +1 -0
- package/dist/git-governance/GitGovernanceRuntime.js +418 -0
- package/dist/git-governance/GitGovernanceRuntime.js.map +1 -0
- package/dist/git-governance/index.d.ts +16 -0
- package/dist/git-governance/index.d.ts.map +1 -0
- package/dist/git-governance/index.js +33 -0
- package/dist/git-governance/index.js.map +1 -0
- package/dist/governance/EngineeringGovernanceLayer.d.ts +79 -0
- package/dist/governance/EngineeringGovernanceLayer.d.ts.map +1 -0
- package/dist/governance/EngineeringGovernanceLayer.js +212 -0
- package/dist/governance/EngineeringGovernanceLayer.js.map +1 -0
- package/dist/graph/AgentGraph.d.ts +52 -0
- package/dist/graph/AgentGraph.d.ts.map +1 -0
- package/dist/graph/AgentGraph.js +274 -0
- package/dist/graph/AgentGraph.js.map +1 -0
- package/dist/graph/GraphValidator.d.ts +39 -0
- package/dist/graph/GraphValidator.d.ts.map +1 -0
- package/dist/graph/GraphValidator.js +93 -0
- package/dist/graph/GraphValidator.js.map +1 -0
- package/dist/graph/TopologyTemplates.d.ts +39 -0
- package/dist/graph/TopologyTemplates.d.ts.map +1 -0
- package/dist/graph/TopologyTemplates.js +131 -0
- package/dist/graph/TopologyTemplates.js.map +1 -0
- package/dist/hardening/RuntimeHardening.d.ts +169 -0
- package/dist/hardening/RuntimeHardening.d.ts.map +1 -0
- package/dist/hardening/RuntimeHardening.js +330 -0
- package/dist/hardening/RuntimeHardening.js.map +1 -0
- package/dist/hardening/index.d.ts +7 -0
- package/dist/hardening/index.d.ts.map +1 -0
- package/dist/hardening/index.js +15 -0
- package/dist/hardening/index.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/kernel/ExecutionState.d.ts +68 -0
- package/dist/kernel/ExecutionState.d.ts.map +1 -0
- package/dist/kernel/ExecutionState.js +124 -0
- package/dist/kernel/ExecutionState.js.map +1 -0
- package/dist/kernel/FailureInterceptor.d.ts +51 -0
- package/dist/kernel/FailureInterceptor.d.ts.map +1 -0
- package/dist/kernel/FailureInterceptor.js +112 -0
- package/dist/kernel/FailureInterceptor.js.map +1 -0
- package/dist/kernel/KernelGate.d.ts +41 -0
- package/dist/kernel/KernelGate.d.ts.map +1 -0
- package/dist/kernel/KernelGate.js +62 -0
- package/dist/kernel/KernelGate.js.map +1 -0
- package/dist/kernel/MultiAgentExecutionKernel.d.ts +103 -0
- package/dist/kernel/MultiAgentExecutionKernel.d.ts.map +1 -0
- package/dist/kernel/MultiAgentExecutionKernel.js +187 -0
- package/dist/kernel/MultiAgentExecutionKernel.js.map +1 -0
- package/dist/kernel/RuntimeKernel.d.ts +160 -0
- package/dist/kernel/RuntimeKernel.d.ts.map +1 -0
- package/dist/kernel/RuntimeKernel.js +422 -0
- package/dist/kernel/RuntimeKernel.js.map +1 -0
- package/dist/kernel/index.d.ts +9 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +20 -0
- package/dist/kernel/index.js.map +1 -0
- package/dist/knowledge/KnowledgeSystem.d.ts +62 -0
- package/dist/knowledge/KnowledgeSystem.d.ts.map +1 -0
- package/dist/knowledge/KnowledgeSystem.js +102 -0
- package/dist/knowledge/KnowledgeSystem.js.map +1 -0
- package/dist/learning/ExecutionEpisodeStore.d.ts +64 -0
- package/dist/learning/ExecutionEpisodeStore.d.ts.map +1 -0
- package/dist/learning/ExecutionEpisodeStore.js +62 -0
- package/dist/learning/ExecutionEpisodeStore.js.map +1 -0
- package/dist/learning/InsightEngine.d.ts +31 -0
- package/dist/learning/InsightEngine.d.ts.map +1 -0
- package/dist/learning/InsightEngine.js +63 -0
- package/dist/learning/InsightEngine.js.map +1 -0
- package/dist/learning/LearningLoopEngine.d.ts +48 -0
- package/dist/learning/LearningLoopEngine.d.ts.map +1 -0
- package/dist/learning/LearningLoopEngine.js +82 -0
- package/dist/learning/LearningLoopEngine.js.map +1 -0
- package/dist/learning/MemoryCompressor.d.ts +31 -0
- package/dist/learning/MemoryCompressor.d.ts.map +1 -0
- package/dist/learning/MemoryCompressor.js +76 -0
- package/dist/learning/MemoryCompressor.js.map +1 -0
- package/dist/learning/PolicyOptimizer.d.ts +26 -0
- package/dist/learning/PolicyOptimizer.d.ts.map +1 -0
- package/dist/learning/PolicyOptimizer.js +91 -0
- package/dist/learning/PolicyOptimizer.js.map +1 -0
- package/dist/learning/PolicyStore.d.ts +47 -0
- package/dist/learning/PolicyStore.d.ts.map +1 -0
- package/dist/learning/PolicyStore.js +79 -0
- package/dist/learning/PolicyStore.js.map +1 -0
- package/dist/loop-layer/EvaluationEngine.d.ts +23 -0
- package/dist/loop-layer/EvaluationEngine.d.ts.map +1 -0
- package/dist/loop-layer/EvaluationEngine.js +42 -0
- package/dist/loop-layer/EvaluationEngine.js.map +1 -0
- package/dist/loop-layer/LoopController.d.ts +33 -0
- package/dist/loop-layer/LoopController.d.ts.map +1 -0
- package/dist/loop-layer/LoopController.js +79 -0
- package/dist/loop-layer/LoopController.js.map +1 -0
- package/dist/loop-layer/ObservationEngine.d.ts +62 -0
- package/dist/loop-layer/ObservationEngine.d.ts.map +1 -0
- package/dist/loop-layer/ObservationEngine.js +126 -0
- package/dist/loop-layer/ObservationEngine.js.map +1 -0
- package/dist/memory/ContextCompressor.d.ts +27 -0
- package/dist/memory/ContextCompressor.d.ts.map +1 -0
- package/dist/memory/ContextCompressor.js +71 -0
- package/dist/memory/ContextCompressor.js.map +1 -0
- package/dist/memory/MemoryManager.d.ts +28 -0
- package/dist/memory/MemoryManager.d.ts.map +1 -0
- package/dist/memory/MemoryManager.js +81 -0
- package/dist/memory/MemoryManager.js.map +1 -0
- package/dist/memory/MemorySearch.d.ts +20 -0
- package/dist/memory/MemorySearch.d.ts.map +1 -0
- package/dist/memory/MemorySearch.js +92 -0
- package/dist/memory/MemorySearch.js.map +1 -0
- package/dist/memory/MemoryStore.d.ts +30 -0
- package/dist/memory/MemoryStore.d.ts.map +1 -0
- package/dist/memory/MemoryStore.js +84 -0
- package/dist/memory/MemoryStore.js.map +1 -0
- package/dist/observability/ConversationTrace.d.ts +25 -0
- package/dist/observability/ConversationTrace.d.ts.map +1 -0
- package/dist/observability/ConversationTrace.js +104 -0
- package/dist/observability/ConversationTrace.js.map +1 -0
- package/dist/observability/DecisionRecorder.d.ts +29 -0
- package/dist/observability/DecisionRecorder.d.ts.map +1 -0
- package/dist/observability/DecisionRecorder.js +113 -0
- package/dist/observability/DecisionRecorder.js.map +1 -0
- package/dist/observability/RuntimeMetrics.d.ts +27 -0
- package/dist/observability/RuntimeMetrics.d.ts.map +1 -0
- package/dist/observability/RuntimeMetrics.js +126 -0
- package/dist/observability/RuntimeMetrics.js.map +1 -0
- package/dist/observability/TaskTimeline.d.ts +26 -0
- package/dist/observability/TaskTimeline.d.ts.map +1 -0
- package/dist/observability/TaskTimeline.js +117 -0
- package/dist/observability/TaskTimeline.js.map +1 -0
- package/dist/observation/SystemScoreCalculator.d.ts +66 -0
- package/dist/observation/SystemScoreCalculator.d.ts.map +1 -0
- package/dist/observation/SystemScoreCalculator.js +158 -0
- package/dist/observation/SystemScoreCalculator.js.map +1 -0
- package/dist/observation/__tests__/SystemScoreCalculator.test.d.ts +2 -0
- package/dist/observation/__tests__/SystemScoreCalculator.test.d.ts.map +1 -0
- package/dist/observation/__tests__/SystemScoreCalculator.test.js +61 -0
- package/dist/observation/__tests__/SystemScoreCalculator.test.js.map +1 -0
- package/dist/orchestration/AgentRouter.d.ts +19 -0
- package/dist/orchestration/AgentRouter.d.ts.map +1 -0
- package/dist/orchestration/AgentRouter.js +53 -0
- package/dist/orchestration/AgentRouter.js.map +1 -0
- package/dist/orchestration/DAGExecutor.d.ts +22 -0
- package/dist/orchestration/DAGExecutor.d.ts.map +1 -0
- package/dist/orchestration/DAGExecutor.js +123 -0
- package/dist/orchestration/DAGExecutor.js.map +1 -0
- package/dist/orchestration/JudgeAgent.d.ts +14 -0
- package/dist/orchestration/JudgeAgent.d.ts.map +1 -0
- package/dist/orchestration/JudgeAgent.js +58 -0
- package/dist/orchestration/JudgeAgent.js.map +1 -0
- package/dist/orchestration/Planner.d.ts +10 -0
- package/dist/orchestration/Planner.d.ts.map +1 -0
- package/dist/orchestration/Planner.js +45 -0
- package/dist/orchestration/Planner.js.map +1 -0
- package/dist/orchestration/ReviewerAgent.d.ts +12 -0
- package/dist/orchestration/ReviewerAgent.d.ts.map +1 -0
- package/dist/orchestration/ReviewerAgent.js +67 -0
- package/dist/orchestration/ReviewerAgent.js.map +1 -0
- package/dist/orchestration/contracts/Agent.d.ts +42 -0
- package/dist/orchestration/contracts/Agent.d.ts.map +1 -0
- package/dist/orchestration/contracts/Agent.js +3 -0
- package/dist/orchestration/contracts/Agent.js.map +1 -0
- package/dist/orchestration/registry/AgentProfile.d.ts +12 -0
- package/dist/orchestration/registry/AgentProfile.d.ts.map +1 -0
- package/dist/orchestration/registry/AgentProfile.js +3 -0
- package/dist/orchestration/registry/AgentProfile.js.map +1 -0
- package/dist/orchestration/registry/AgentRegistry.d.ts +15 -0
- package/dist/orchestration/registry/AgentRegistry.d.ts.map +1 -0
- package/dist/orchestration/registry/AgentRegistry.js +29 -0
- package/dist/orchestration/registry/AgentRegistry.js.map +1 -0
- package/dist/planning/ProjectPlanningLayer.d.ts +68 -0
- package/dist/planning/ProjectPlanningLayer.d.ts.map +1 -0
- package/dist/planning/ProjectPlanningLayer.js +176 -0
- package/dist/planning/ProjectPlanningLayer.js.map +1 -0
- package/dist/platform/PlatformCapabilities.d.ts +12 -0
- package/dist/platform/PlatformCapabilities.d.ts.map +1 -0
- package/dist/platform/PlatformCapabilities.js +66 -0
- package/dist/platform/PlatformCapabilities.js.map +1 -0
- package/dist/platform/auth/AuthService.d.ts +32 -0
- package/dist/platform/auth/AuthService.d.ts.map +1 -0
- package/dist/platform/auth/AuthService.js +43 -0
- package/dist/platform/auth/AuthService.js.map +1 -0
- package/dist/platform/index.d.ts +43 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/index.js +67 -0
- package/dist/platform/index.js.map +1 -0
- package/dist/platform/sdk/index.d.ts +44 -0
- package/dist/platform/sdk/index.d.ts.map +1 -0
- package/dist/platform/sdk/index.js +67 -0
- package/dist/platform/sdk/index.js.map +1 -0
- package/dist/platform/server/ApiServer.d.ts +62 -0
- package/dist/platform/server/ApiServer.d.ts.map +1 -0
- package/dist/platform/server/ApiServer.js +232 -0
- package/dist/platform/server/ApiServer.js.map +1 -0
- package/dist/platform/services/MetricsService.d.ts +58 -0
- package/dist/platform/services/MetricsService.d.ts.map +1 -0
- package/dist/platform/services/MetricsService.js +81 -0
- package/dist/platform/services/MetricsService.js.map +1 -0
- package/dist/platform/validation/PlatformValidation.d.ts +30 -0
- package/dist/platform/validation/PlatformValidation.d.ts.map +1 -0
- package/dist/platform/validation/PlatformValidation.js +91 -0
- package/dist/platform/validation/PlatformValidation.js.map +1 -0
- package/dist/platform/validation/benchmark/BenchmarkFramework.d.ts +33 -0
- package/dist/platform/validation/benchmark/BenchmarkFramework.d.ts.map +1 -0
- package/dist/platform/validation/benchmark/BenchmarkFramework.js +63 -0
- package/dist/platform/validation/benchmark/BenchmarkFramework.js.map +1 -0
- package/dist/platform/validation/chaos/FaultInjector.d.ts +44 -0
- package/dist/platform/validation/chaos/FaultInjector.d.ts.map +1 -0
- package/dist/platform/validation/chaos/FaultInjector.js +57 -0
- package/dist/platform/validation/chaos/FaultInjector.js.map +1 -0
- package/dist/product/AutoTopologySelector.d.ts +30 -0
- package/dist/product/AutoTopologySelector.d.ts.map +1 -0
- package/dist/product/AutoTopologySelector.js +113 -0
- package/dist/product/AutoTopologySelector.js.map +1 -0
- package/dist/product/ProductEngineeringLayer.d.ts +65 -0
- package/dist/product/ProductEngineeringLayer.d.ts.map +1 -0
- package/dist/product/ProductEngineeringLayer.js +168 -0
- package/dist/product/ProductEngineeringLayer.js.map +1 -0
- package/dist/product/ProviderRegistry.d.ts +13 -0
- package/dist/product/ProviderRegistry.d.ts.map +1 -0
- package/dist/product/ProviderRegistry.js +21 -0
- package/dist/product/ProviderRegistry.js.map +1 -0
- package/dist/product/TaskIntentClassifier.d.ts +20 -0
- package/dist/product/TaskIntentClassifier.d.ts.map +1 -0
- package/dist/product/TaskIntentClassifier.js +88 -0
- package/dist/product/TaskIntentClassifier.js.map +1 -0
- package/dist/production/ProductionRuntime.d.ts +50 -0
- package/dist/production/ProductionRuntime.d.ts.map +1 -0
- package/dist/production/ProductionRuntime.js +137 -0
- package/dist/production/ProductionRuntime.js.map +1 -0
- package/dist/production/checkpoint/CheckpointManager.d.ts +59 -0
- package/dist/production/checkpoint/CheckpointManager.d.ts.map +1 -0
- package/dist/production/checkpoint/CheckpointManager.js +84 -0
- package/dist/production/checkpoint/CheckpointManager.js.map +1 -0
- package/dist/production/compensation/CompensationEngine.d.ts +28 -0
- package/dist/production/compensation/CompensationEngine.d.ts.map +1 -0
- package/dist/production/compensation/CompensationEngine.js +52 -0
- package/dist/production/compensation/CompensationEngine.js.map +1 -0
- package/dist/production/events/EventStore.d.ts +54 -0
- package/dist/production/events/EventStore.d.ts.map +1 -0
- package/dist/production/events/EventStore.js +71 -0
- package/dist/production/events/EventStore.js.map +1 -0
- package/dist/production/plugins/PluginRegistry.d.ts +50 -0
- package/dist/production/plugins/PluginRegistry.d.ts.map +1 -0
- package/dist/production/plugins/PluginRegistry.js +63 -0
- package/dist/production/plugins/PluginRegistry.js.map +1 -0
- package/dist/production/scheduler/Scheduler.d.ts +55 -0
- package/dist/production/scheduler/Scheduler.d.ts.map +1 -0
- package/dist/production/scheduler/Scheduler.js +72 -0
- package/dist/production/scheduler/Scheduler.js.map +1 -0
- package/dist/production-observation/ProductionObservation.d.ts +137 -0
- package/dist/production-observation/ProductionObservation.d.ts.map +1 -0
- package/dist/production-observation/ProductionObservation.js +278 -0
- package/dist/production-observation/ProductionObservation.js.map +1 -0
- package/dist/production-observation/index.d.ts +14 -0
- package/dist/production-observation/index.d.ts.map +1 -0
- package/dist/production-observation/index.js +25 -0
- package/dist/production-observation/index.js.map +1 -0
- package/dist/productionization/ProductionizationPlan.d.ts +211 -0
- package/dist/productionization/ProductionizationPlan.d.ts.map +1 -0
- package/dist/productionization/ProductionizationPlan.js +498 -0
- package/dist/productionization/ProductionizationPlan.js.map +1 -0
- package/dist/productionization/index.d.ts +16 -0
- package/dist/productionization/index.d.ts.map +1 -0
- package/dist/productionization/index.js +33 -0
- package/dist/productionization/index.js.map +1 -0
- package/dist/prompts/prompts/reviewer.txt +17 -0
- package/dist/prompts/prompts/revision.txt +10 -0
- package/dist/prompts/reviewer.txt +17 -0
- package/dist/prompts/revision.txt +10 -0
- package/dist/providers/OpenAIProvider.d.ts +22 -0
- package/dist/providers/OpenAIProvider.d.ts.map +1 -0
- package/dist/providers/OpenAIProvider.js +55 -0
- package/dist/providers/OpenAIProvider.js.map +1 -0
- package/dist/providers/ProviderAdapter.d.ts +27 -0
- package/dist/providers/ProviderAdapter.d.ts.map +1 -0
- package/dist/providers/ProviderAdapter.js +7 -0
- package/dist/providers/ProviderAdapter.js.map +1 -0
- package/dist/reasoning/ArchitectureCandidateGenerator.d.ts +31 -0
- package/dist/reasoning/ArchitectureCandidateGenerator.d.ts.map +1 -0
- package/dist/reasoning/ArchitectureCandidateGenerator.js +89 -0
- package/dist/reasoning/ArchitectureCandidateGenerator.js.map +1 -0
- package/dist/reasoning/ArchitectureSpaceGenerator.d.ts +21 -0
- package/dist/reasoning/ArchitectureSpaceGenerator.d.ts.map +1 -0
- package/dist/reasoning/ArchitectureSpaceGenerator.js +55 -0
- package/dist/reasoning/ArchitectureSpaceGenerator.js.map +1 -0
- package/dist/reasoning/ConstraintInferenceEngine.d.ts +45 -0
- package/dist/reasoning/ConstraintInferenceEngine.d.ts.map +1 -0
- package/dist/reasoning/ConstraintInferenceEngine.js +97 -0
- package/dist/reasoning/ConstraintInferenceEngine.js.map +1 -0
- package/dist/reasoning/DecisionEngine.d.ts +28 -0
- package/dist/reasoning/DecisionEngine.d.ts.map +1 -0
- package/dist/reasoning/DecisionEngine.js +66 -0
- package/dist/reasoning/DecisionEngine.js.map +1 -0
- package/dist/reasoning/ExplainabilityLayer.d.ts +29 -0
- package/dist/reasoning/ExplainabilityLayer.d.ts.map +1 -0
- package/dist/reasoning/ExplainabilityLayer.js +51 -0
- package/dist/reasoning/ExplainabilityLayer.js.map +1 -0
- package/dist/reasoning/FailureSimulationEngine.d.ts +27 -0
- package/dist/reasoning/FailureSimulationEngine.d.ts.map +1 -0
- package/dist/reasoning/FailureSimulationEngine.js +80 -0
- package/dist/reasoning/FailureSimulationEngine.js.map +1 -0
- package/dist/reasoning/TradeoffReasoningEngine.d.ts +29 -0
- package/dist/reasoning/TradeoffReasoningEngine.d.ts.map +1 -0
- package/dist/reasoning/TradeoffReasoningEngine.js +92 -0
- package/dist/reasoning/TradeoffReasoningEngine.js.map +1 -0
- package/dist/reasoning/index.d.ts +59 -0
- package/dist/reasoning/index.d.ts.map +1 -0
- package/dist/reasoning/index.js +79 -0
- package/dist/reasoning/index.js.map +1 -0
- package/dist/review/ReviewConsensus.d.ts +55 -0
- package/dist/review/ReviewConsensus.d.ts.map +1 -0
- package/dist/review/ReviewConsensus.js +174 -0
- package/dist/review/ReviewConsensus.js.map +1 -0
- package/dist/runtime/CapabilityDiscovery.d.ts +39 -0
- package/dist/runtime/CapabilityDiscovery.d.ts.map +1 -0
- package/dist/runtime/CapabilityDiscovery.js +157 -0
- package/dist/runtime/CapabilityDiscovery.js.map +1 -0
- package/dist/runtime/EventBus.d.ts +26 -0
- package/dist/runtime/EventBus.d.ts.map +1 -0
- package/dist/runtime/EventBus.js +103 -0
- package/dist/runtime/EventBus.js.map +1 -0
- package/dist/runtime/FailureAnalyzer.d.ts +24 -0
- package/dist/runtime/FailureAnalyzer.d.ts.map +1 -0
- package/dist/runtime/FailureAnalyzer.js +71 -0
- package/dist/runtime/FailureAnalyzer.js.map +1 -0
- package/dist/runtime/ReplayEngine.d.ts +19 -0
- package/dist/runtime/ReplayEngine.d.ts.map +1 -0
- package/dist/runtime/ReplayEngine.js +50 -0
- package/dist/runtime/ReplayEngine.js.map +1 -0
- package/dist/runtime/RuntimeConfig.d.ts +27 -0
- package/dist/runtime/RuntimeConfig.d.ts.map +1 -0
- package/dist/runtime/RuntimeConfig.js +121 -0
- package/dist/runtime/RuntimeConfig.js.map +1 -0
- package/dist/runtime/RuntimeScoreManager.d.ts +49 -0
- package/dist/runtime/RuntimeScoreManager.d.ts.map +1 -0
- package/dist/runtime/RuntimeScoreManager.js +139 -0
- package/dist/runtime/RuntimeScoreManager.js.map +1 -0
- package/dist/runtime/RuntimeSelector.d.ts +32 -0
- package/dist/runtime/RuntimeSelector.d.ts.map +1 -0
- package/dist/runtime/RuntimeSelector.js +86 -0
- package/dist/runtime/RuntimeSelector.js.map +1 -0
- package/dist/runtime/v2/RuntimeCore.d.ts +141 -0
- package/dist/runtime/v2/RuntimeCore.d.ts.map +1 -0
- package/dist/runtime/v2/RuntimeCore.js +373 -0
- package/dist/runtime/v2/RuntimeCore.js.map +1 -0
- package/dist/runtime/v2/audit/AuditTrail.d.ts +155 -0
- package/dist/runtime/v2/audit/AuditTrail.d.ts.map +1 -0
- package/dist/runtime/v2/audit/AuditTrail.js +300 -0
- package/dist/runtime/v2/audit/AuditTrail.js.map +1 -0
- package/dist/runtime/v2/budget/BudgetGuard.d.ts +121 -0
- package/dist/runtime/v2/budget/BudgetGuard.d.ts.map +1 -0
- package/dist/runtime/v2/budget/BudgetGuard.js +248 -0
- package/dist/runtime/v2/budget/BudgetGuard.js.map +1 -0
- package/dist/runtime/v2/capability/CapabilityRegistry.d.ts +116 -0
- package/dist/runtime/v2/capability/CapabilityRegistry.d.ts.map +1 -0
- package/dist/runtime/v2/capability/CapabilityRegistry.js +207 -0
- package/dist/runtime/v2/capability/CapabilityRegistry.js.map +1 -0
- package/dist/runtime/v2/checkpoint/HumanCheckpoint.d.ts +116 -0
- package/dist/runtime/v2/checkpoint/HumanCheckpoint.d.ts.map +1 -0
- package/dist/runtime/v2/checkpoint/HumanCheckpoint.js +265 -0
- package/dist/runtime/v2/checkpoint/HumanCheckpoint.js.map +1 -0
- package/dist/runtime/v2/concurrency/ConcurrencyManager.d.ts +101 -0
- package/dist/runtime/v2/concurrency/ConcurrencyManager.d.ts.map +1 -0
- package/dist/runtime/v2/concurrency/ConcurrencyManager.js +202 -0
- package/dist/runtime/v2/concurrency/ConcurrencyManager.js.map +1 -0
- package/dist/runtime/v2/dashboard/DashboardApi.d.ts +172 -0
- package/dist/runtime/v2/dashboard/DashboardApi.d.ts.map +1 -0
- package/dist/runtime/v2/dashboard/DashboardApi.js +336 -0
- package/dist/runtime/v2/dashboard/DashboardApi.js.map +1 -0
- package/dist/runtime/v2/dashboard/DashboardServer.d.ts +45 -0
- package/dist/runtime/v2/dashboard/DashboardServer.d.ts.map +1 -0
- package/dist/runtime/v2/dashboard/DashboardServer.js +184 -0
- package/dist/runtime/v2/dashboard/DashboardServer.js.map +1 -0
- package/dist/runtime/v2/discovery/DiscoveryEngine.d.ts +168 -0
- package/dist/runtime/v2/discovery/DiscoveryEngine.d.ts.map +1 -0
- package/dist/runtime/v2/discovery/DiscoveryEngine.js +418 -0
- package/dist/runtime/v2/discovery/DiscoveryEngine.js.map +1 -0
- package/dist/runtime/v2/evaluator/EvaluatorPipeline.d.ts +79 -0
- package/dist/runtime/v2/evaluator/EvaluatorPipeline.d.ts.map +1 -0
- package/dist/runtime/v2/evaluator/EvaluatorPipeline.js +261 -0
- package/dist/runtime/v2/evaluator/EvaluatorPipeline.js.map +1 -0
- package/dist/runtime/v2/hydration/HydrationEngine.d.ts +68 -0
- package/dist/runtime/v2/hydration/HydrationEngine.d.ts.map +1 -0
- package/dist/runtime/v2/hydration/HydrationEngine.js +272 -0
- package/dist/runtime/v2/hydration/HydrationEngine.js.map +1 -0
- package/dist/runtime/v2/index.d.ts +33 -0
- package/dist/runtime/v2/index.d.ts.map +1 -0
- package/dist/runtime/v2/index.js +117 -0
- package/dist/runtime/v2/index.js.map +1 -0
- package/dist/runtime/v2/intent/TaskContract.d.ts +97 -0
- package/dist/runtime/v2/intent/TaskContract.d.ts.map +1 -0
- package/dist/runtime/v2/intent/TaskContract.js +85 -0
- package/dist/runtime/v2/intent/TaskContract.js.map +1 -0
- package/dist/runtime/v2/isolation/WorkspaceIsolation.d.ts +109 -0
- package/dist/runtime/v2/isolation/WorkspaceIsolation.d.ts.map +1 -0
- package/dist/runtime/v2/isolation/WorkspaceIsolation.js +294 -0
- package/dist/runtime/v2/isolation/WorkspaceIsolation.js.map +1 -0
- package/dist/runtime/v2/observation/EventBus.d.ts +68 -0
- package/dist/runtime/v2/observation/EventBus.d.ts.map +1 -0
- package/dist/runtime/v2/observation/EventBus.js +116 -0
- package/dist/runtime/v2/observation/EventBus.js.map +1 -0
- package/dist/runtime/v2/persistence/PersistenceEngine.d.ts +113 -0
- package/dist/runtime/v2/persistence/PersistenceEngine.d.ts.map +1 -0
- package/dist/runtime/v2/persistence/PersistenceEngine.js +334 -0
- package/dist/runtime/v2/persistence/PersistenceEngine.js.map +1 -0
- package/dist/runtime/v2/planner/PlannerEngine.d.ts +48 -0
- package/dist/runtime/v2/planner/PlannerEngine.d.ts.map +1 -0
- package/dist/runtime/v2/planner/PlannerEngine.js +90 -0
- package/dist/runtime/v2/planner/PlannerEngine.js.map +1 -0
- package/dist/runtime/v2/policy/PolicyEngine.d.ts +66 -0
- package/dist/runtime/v2/policy/PolicyEngine.d.ts.map +1 -0
- package/dist/runtime/v2/policy/PolicyEngine.js +244 -0
- package/dist/runtime/v2/policy/PolicyEngine.js.map +1 -0
- package/dist/runtime/v2/provider/AnthropicProvider.d.ts +24 -0
- package/dist/runtime/v2/provider/AnthropicProvider.d.ts.map +1 -0
- package/dist/runtime/v2/provider/AnthropicProvider.js +139 -0
- package/dist/runtime/v2/provider/AnthropicProvider.js.map +1 -0
- package/dist/runtime/v2/provider/GoogleProvider.d.ts +24 -0
- package/dist/runtime/v2/provider/GoogleProvider.d.ts.map +1 -0
- package/dist/runtime/v2/provider/GoogleProvider.js +146 -0
- package/dist/runtime/v2/provider/GoogleProvider.js.map +1 -0
- package/dist/runtime/v2/provider/OpenAIProvider.d.ts +31 -0
- package/dist/runtime/v2/provider/OpenAIProvider.d.ts.map +1 -0
- package/dist/runtime/v2/provider/OpenAIProvider.js +189 -0
- package/dist/runtime/v2/provider/OpenAIProvider.js.map +1 -0
- package/dist/runtime/v2/provider/ProviderManager.d.ts +67 -0
- package/dist/runtime/v2/provider/ProviderManager.d.ts.map +1 -0
- package/dist/runtime/v2/provider/ProviderManager.js +118 -0
- package/dist/runtime/v2/provider/ProviderManager.js.map +1 -0
- package/dist/runtime/v2/provider/ProviderRegistry.d.ts +144 -0
- package/dist/runtime/v2/provider/ProviderRegistry.d.ts.map +1 -0
- package/dist/runtime/v2/provider/ProviderRegistry.js +154 -0
- package/dist/runtime/v2/provider/ProviderRegistry.js.map +1 -0
- package/dist/runtime/v2/queue/RuntimeQueue.d.ts +129 -0
- package/dist/runtime/v2/queue/RuntimeQueue.d.ts.map +1 -0
- package/dist/runtime/v2/queue/RuntimeQueue.js +240 -0
- package/dist/runtime/v2/queue/RuntimeQueue.js.map +1 -0
- package/dist/runtime/v2/recovery/RecoveryEngine.d.ts +112 -0
- package/dist/runtime/v2/recovery/RecoveryEngine.d.ts.map +1 -0
- package/dist/runtime/v2/recovery/RecoveryEngine.js +293 -0
- package/dist/runtime/v2/recovery/RecoveryEngine.js.map +1 -0
- package/dist/runtime/v2/scheduler/SchedulerEngine.d.ts +129 -0
- package/dist/runtime/v2/scheduler/SchedulerEngine.d.ts.map +1 -0
- package/dist/runtime/v2/scheduler/SchedulerEngine.js +306 -0
- package/dist/runtime/v2/scheduler/SchedulerEngine.js.map +1 -0
- package/dist/runtime/v2/state-machine/RuntimeStateMachine.d.ts +69 -0
- package/dist/runtime/v2/state-machine/RuntimeStateMachine.d.ts.map +1 -0
- package/dist/runtime/v2/state-machine/RuntimeStateMachine.js +152 -0
- package/dist/runtime/v2/state-machine/RuntimeStateMachine.js.map +1 -0
- package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.d.ts +104 -0
- package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.d.ts.map +1 -0
- package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.js +321 -0
- package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.js.map +1 -0
- package/dist/runtime/v2.1/ControlPlane.d.ts +83 -0
- package/dist/runtime/v2.1/ControlPlane.d.ts.map +1 -0
- package/dist/runtime/v2.1/ControlPlane.js +178 -0
- package/dist/runtime/v2.1/ControlPlane.js.map +1 -0
- package/dist/runtime/v2.1/bridge/ExecutionBridge.d.ts +53 -0
- package/dist/runtime/v2.1/bridge/ExecutionBridge.d.ts.map +1 -0
- package/dist/runtime/v2.1/bridge/ExecutionBridge.js +109 -0
- package/dist/runtime/v2.1/bridge/ExecutionBridge.js.map +1 -0
- package/dist/runtime/v2.1/contract/ShadowContractLayer.d.ts +105 -0
- package/dist/runtime/v2.1/contract/ShadowContractLayer.d.ts.map +1 -0
- package/dist/runtime/v2.1/contract/ShadowContractLayer.js +267 -0
- package/dist/runtime/v2.1/contract/ShadowContractLayer.js.map +1 -0
- package/dist/runtime/v2.1/decision/ShadowDecisionLayer.d.ts +62 -0
- package/dist/runtime/v2.1/decision/ShadowDecisionLayer.d.ts.map +1 -0
- package/dist/runtime/v2.1/decision/ShadowDecisionLayer.js +105 -0
- package/dist/runtime/v2.1/decision/ShadowDecisionLayer.js.map +1 -0
- package/dist/runtime/v2.1/der/ChaosExecutionMode.d.ts +50 -0
- package/dist/runtime/v2.1/der/ChaosExecutionMode.d.ts.map +1 -0
- package/dist/runtime/v2.1/der/ChaosExecutionMode.js +89 -0
- package/dist/runtime/v2.1/der/ChaosExecutionMode.js.map +1 -0
- package/dist/runtime/v2.1/der/DER.d.ts +138 -0
- package/dist/runtime/v2.1/der/DER.d.ts.map +1 -0
- package/dist/runtime/v2.1/der/DER.js +395 -0
- package/dist/runtime/v2.1/der/DER.js.map +1 -0
- package/dist/runtime/v2.1/der/FaultInjectionLayer.d.ts +63 -0
- package/dist/runtime/v2.1/der/FaultInjectionLayer.d.ts.map +1 -0
- package/dist/runtime/v2.1/der/FaultInjectionLayer.js +138 -0
- package/dist/runtime/v2.1/der/FaultInjectionLayer.js.map +1 -0
- package/dist/runtime/v2.1/der/StressMetrics.d.ts +65 -0
- package/dist/runtime/v2.1/der/StressMetrics.d.ts.map +1 -0
- package/dist/runtime/v2.1/der/StressMetrics.js +127 -0
- package/dist/runtime/v2.1/der/StressMetrics.js.map +1 -0
- package/dist/runtime/v2.1/index.d.ts +22 -0
- package/dist/runtime/v2.1/index.d.ts.map +1 -0
- package/dist/runtime/v2.1/index.js +51 -0
- package/dist/runtime/v2.1/index.js.map +1 -0
- package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.d.ts +99 -0
- package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.d.ts.map +1 -0
- package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.js +174 -0
- package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.js.map +1 -0
- package/dist/runtime/v2.1/validation/CutoverGate.d.ts +82 -0
- package/dist/runtime/v2.1/validation/CutoverGate.d.ts.map +1 -0
- package/dist/runtime/v2.1/validation/CutoverGate.js +129 -0
- package/dist/runtime/v2.1/validation/CutoverGate.js.map +1 -0
- package/dist/runtime/v2.1/validation/DivergenceAnalyzer.d.ts +58 -0
- package/dist/runtime/v2.1/validation/DivergenceAnalyzer.d.ts.map +1 -0
- package/dist/runtime/v2.1/validation/DivergenceAnalyzer.js +130 -0
- package/dist/runtime/v2.1/validation/DivergenceAnalyzer.js.map +1 -0
- package/dist/runtime/v2.1/validation/ValidationDashboard.d.ts +45 -0
- package/dist/runtime/v2.1/validation/ValidationDashboard.d.ts.map +1 -0
- package/dist/runtime/v2.1/validation/ValidationDashboard.js +112 -0
- package/dist/runtime/v2.1/validation/ValidationDashboard.js.map +1 -0
- package/dist/runtime/v2.1/validation/ValidationEngine.d.ts +89 -0
- package/dist/runtime/v2.1/validation/ValidationEngine.d.ts.map +1 -0
- package/dist/runtime/v2.1/validation/ValidationEngine.js +194 -0
- package/dist/runtime/v2.1/validation/ValidationEngine.js.map +1 -0
- package/dist/runtime-core/agents/hermes.d.ts +18 -0
- package/dist/runtime-core/agents/hermes.d.ts.map +1 -0
- package/dist/runtime-core/agents/hermes.js +21 -0
- package/dist/runtime-core/agents/hermes.js.map +1 -0
- package/dist/runtime-core/agents/registry.d.ts +27 -0
- package/dist/runtime-core/agents/registry.d.ts.map +1 -0
- package/dist/runtime-core/agents/registry.js +29 -0
- package/dist/runtime-core/agents/registry.js.map +1 -0
- package/dist/runtime-core/agents/worker.d.ts +18 -0
- package/dist/runtime-core/agents/worker.d.ts.map +1 -0
- package/dist/runtime-core/agents/worker.js +21 -0
- package/dist/runtime-core/agents/worker.js.map +1 -0
- package/dist/runtime-core/index.d.ts +24 -0
- package/dist/runtime-core/index.d.ts.map +1 -0
- package/dist/runtime-core/index.js +55 -0
- package/dist/runtime-core/index.js.map +1 -0
- package/dist/runtime-core/orchestrator.d.ts +47 -0
- package/dist/runtime-core/orchestrator.d.ts.map +1 -0
- package/dist/runtime-core/orchestrator.js +87 -0
- package/dist/runtime-core/orchestrator.js.map +1 -0
- package/dist/runtime-core/tools/fs.d.ts +9 -0
- package/dist/runtime-core/tools/fs.d.ts.map +1 -0
- package/dist/runtime-core/tools/fs.js +57 -0
- package/dist/runtime-core/tools/fs.js.map +1 -0
- package/dist/runtime-core/tools/registry.d.ts +23 -0
- package/dist/runtime-core/tools/registry.d.ts.map +1 -0
- package/dist/runtime-core/tools/registry.js +29 -0
- package/dist/runtime-core/tools/registry.js.map +1 -0
- package/dist/runtime-v2/agents/PlannerAgent.d.ts +16 -0
- package/dist/runtime-v2/agents/PlannerAgent.d.ts.map +1 -0
- package/dist/runtime-v2/agents/PlannerAgent.js +34 -0
- package/dist/runtime-v2/agents/PlannerAgent.js.map +1 -0
- package/dist/runtime-v2/context/ContextBus.d.ts +45 -0
- package/dist/runtime-v2/context/ContextBus.d.ts.map +1 -0
- package/dist/runtime-v2/context/ContextBus.js +68 -0
- package/dist/runtime-v2/context/ContextBus.js.map +1 -0
- package/dist/runtime-v2/graph/GraphRuntimeEngine.d.ts +75 -0
- package/dist/runtime-v2/graph/GraphRuntimeEngine.d.ts.map +1 -0
- package/dist/runtime-v2/graph/GraphRuntimeEngine.js +171 -0
- package/dist/runtime-v2/graph/GraphRuntimeEngine.js.map +1 -0
- package/dist/runtime-v2/index.d.ts +24 -0
- package/dist/runtime-v2/index.d.ts.map +1 -0
- package/dist/runtime-v2/index.js +58 -0
- package/dist/runtime-v2/index.js.map +1 -0
- package/dist/runtime.d.ts +10 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +13 -0
- package/dist/runtime.js.map +1 -0
- package/dist/safety/CircuitBreaker.d.ts +55 -0
- package/dist/safety/CircuitBreaker.d.ts.map +1 -0
- package/dist/safety/CircuitBreaker.js +138 -0
- package/dist/safety/CircuitBreaker.js.map +1 -0
- package/dist/safety/HopCounter.d.ts +30 -0
- package/dist/safety/HopCounter.d.ts.map +1 -0
- package/dist/safety/HopCounter.js +55 -0
- package/dist/safety/HopCounter.js.map +1 -0
- package/dist/safety/MessageDeduplicator.d.ts +33 -0
- package/dist/safety/MessageDeduplicator.d.ts.map +1 -0
- package/dist/safety/MessageDeduplicator.js +64 -0
- package/dist/safety/MessageDeduplicator.js.map +1 -0
- package/dist/safety/TimeBudget.d.ts +69 -0
- package/dist/safety/TimeBudget.d.ts.map +1 -0
- package/dist/safety/TimeBudget.js +109 -0
- package/dist/safety/TimeBudget.js.map +1 -0
- package/dist/safety/__tests__/CircuitBreaker.test.d.ts +2 -0
- package/dist/safety/__tests__/CircuitBreaker.test.d.ts.map +1 -0
- package/dist/safety/__tests__/CircuitBreaker.test.js +98 -0
- package/dist/safety/__tests__/CircuitBreaker.test.js.map +1 -0
- package/dist/sandbox/ExecutionSandbox.d.ts +16 -0
- package/dist/sandbox/ExecutionSandbox.d.ts.map +1 -0
- package/dist/sandbox/ExecutionSandbox.js +52 -0
- package/dist/sandbox/ExecutionSandbox.js.map +1 -0
- package/dist/security/P0IncidentResponse.d.ts +90 -0
- package/dist/security/P0IncidentResponse.d.ts.map +1 -0
- package/dist/security/P0IncidentResponse.js +161 -0
- package/dist/security/P0IncidentResponse.js.map +1 -0
- package/dist/security/SecurityHardening.d.ts +121 -0
- package/dist/security/SecurityHardening.d.ts.map +1 -0
- package/dist/security/SecurityHardening.js +228 -0
- package/dist/security/SecurityHardening.js.map +1 -0
- package/dist/security/index.d.ts +15 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +23 -0
- package/dist/security/index.js.map +1 -0
- package/dist/self-healing/ExecutionTrace.d.ts +80 -0
- package/dist/self-healing/ExecutionTrace.d.ts.map +1 -0
- package/dist/self-healing/ExecutionTrace.js +132 -0
- package/dist/self-healing/ExecutionTrace.js.map +1 -0
- package/dist/self-healing/FailureClassifier.d.ts +40 -0
- package/dist/self-healing/FailureClassifier.d.ts.map +1 -0
- package/dist/self-healing/FailureClassifier.js +176 -0
- package/dist/self-healing/FailureClassifier.js.map +1 -0
- package/dist/self-healing/LoopMemory.d.ts +54 -0
- package/dist/self-healing/LoopMemory.d.ts.map +1 -0
- package/dist/self-healing/LoopMemory.js +79 -0
- package/dist/self-healing/LoopMemory.js.map +1 -0
- package/dist/self-healing/PolicyEngine.d.ts +31 -0
- package/dist/self-healing/PolicyEngine.d.ts.map +1 -0
- package/dist/self-healing/PolicyEngine.js +92 -0
- package/dist/self-healing/PolicyEngine.js.map +1 -0
- package/dist/self-healing/RetryPolicy.d.ts +50 -0
- package/dist/self-healing/RetryPolicy.d.ts.map +1 -0
- package/dist/self-healing/RetryPolicy.js +94 -0
- package/dist/self-healing/RetryPolicy.js.map +1 -0
- package/dist/self-healing/RuntimeEvents.d.ts +50 -0
- package/dist/self-healing/RuntimeEvents.d.ts.map +1 -0
- package/dist/self-healing/RuntimeEvents.js +68 -0
- package/dist/self-healing/RuntimeEvents.js.map +1 -0
- package/dist/self-healing/SelfHealingRuntime.d.ts +41 -0
- package/dist/self-healing/SelfHealingRuntime.d.ts.map +1 -0
- package/dist/self-healing/SelfHealingRuntime.js +245 -0
- package/dist/self-healing/SelfHealingRuntime.js.map +1 -0
- package/dist/stability/StabilityEngine.d.ts +67 -0
- package/dist/stability/StabilityEngine.d.ts.map +1 -0
- package/dist/stability/StabilityEngine.js +214 -0
- package/dist/stability/StabilityEngine.js.map +1 -0
- package/dist/stability/TaskQualityGate.d.ts +41 -0
- package/dist/stability/TaskQualityGate.d.ts.map +1 -0
- package/dist/stability/TaskQualityGate.js +90 -0
- package/dist/stability/TaskQualityGate.js.map +1 -0
- package/dist/stability-loop/StabilityHardeningLoop.d.ts +158 -0
- package/dist/stability-loop/StabilityHardeningLoop.d.ts.map +1 -0
- package/dist/stability-loop/StabilityHardeningLoop.js +331 -0
- package/dist/stability-loop/StabilityHardeningLoop.js.map +1 -0
- package/dist/stability-loop/index.d.ts +18 -0
- package/dist/stability-loop/index.d.ts.map +1 -0
- package/dist/stability-loop/index.js +35 -0
- package/dist/stability-loop/index.js.map +1 -0
- package/dist/trace/CausalEngine.d.ts +56 -0
- package/dist/trace/CausalEngine.d.ts.map +1 -0
- package/dist/trace/CausalEngine.js +131 -0
- package/dist/trace/CausalEngine.js.map +1 -0
- package/dist/trace/ExecutionTraceModel.d.ts +127 -0
- package/dist/trace/ExecutionTraceModel.d.ts.map +1 -0
- package/dist/trace/ExecutionTraceModel.js +136 -0
- package/dist/trace/ExecutionTraceModel.js.map +1 -0
- package/dist/trace/KnowledgeInfluenceTracker.d.ts +54 -0
- package/dist/trace/KnowledgeInfluenceTracker.d.ts.map +1 -0
- package/dist/trace/KnowledgeInfluenceTracker.js +76 -0
- package/dist/trace/KnowledgeInfluenceTracker.js.map +1 -0
- package/dist/trace/flexibility/AdaptiveRuntime.d.ts +30 -0
- package/dist/trace/flexibility/AdaptiveRuntime.d.ts.map +1 -0
- package/dist/trace/flexibility/AdaptiveRuntime.js +42 -0
- package/dist/trace/flexibility/AdaptiveRuntime.js.map +1 -0
- package/dist/trace/flexibility/ExecutionFlexibilityEngine.d.ts +52 -0
- package/dist/trace/flexibility/ExecutionFlexibilityEngine.d.ts.map +1 -0
- package/dist/trace/flexibility/ExecutionFlexibilityEngine.js +57 -0
- package/dist/trace/flexibility/ExecutionFlexibilityEngine.js.map +1 -0
- package/dist/trace/flexibility/FlexibleExecutionGate.d.ts +25 -0
- package/dist/trace/flexibility/FlexibleExecutionGate.d.ts.map +1 -0
- package/dist/trace/flexibility/FlexibleExecutionGate.js +48 -0
- package/dist/trace/flexibility/FlexibleExecutionGate.js.map +1 -0
- package/dist/trace/flexibility/index.d.ts +17 -0
- package/dist/trace/flexibility/index.d.ts.map +1 -0
- package/dist/trace/flexibility/index.js +23 -0
- package/dist/trace/flexibility/index.js.map +1 -0
- package/dist/trace/gate/DeviationDetectionEngine.d.ts +60 -0
- package/dist/trace/gate/DeviationDetectionEngine.d.ts.map +1 -0
- package/dist/trace/gate/DeviationDetectionEngine.js +143 -0
- package/dist/trace/gate/DeviationDetectionEngine.js.map +1 -0
- package/dist/trace/gate/ExecutionTracePlan.d.ts +55 -0
- package/dist/trace/gate/ExecutionTracePlan.d.ts.map +1 -0
- package/dist/trace/gate/ExecutionTracePlan.js +67 -0
- package/dist/trace/gate/ExecutionTracePlan.js.map +1 -0
- package/dist/trace/gate/TraceExecutionGate.d.ts +63 -0
- package/dist/trace/gate/TraceExecutionGate.d.ts.map +1 -0
- package/dist/trace/gate/TraceExecutionGate.js +129 -0
- package/dist/trace/gate/TraceExecutionGate.js.map +1 -0
- package/dist/trace/gate/index.d.ts +15 -0
- package/dist/trace/gate/index.d.ts.map +1 -0
- package/dist/trace/gate/index.js +21 -0
- package/dist/trace/gate/index.js.map +1 -0
- package/dist/trace/index.d.ts +13 -0
- package/dist/trace/index.d.ts.map +1 -0
- package/dist/trace/index.js +19 -0
- package/dist/trace/index.js.map +1 -0
- package/dist/trace/proof/ExecutionProofSystem.d.ts +94 -0
- package/dist/trace/proof/ExecutionProofSystem.d.ts.map +1 -0
- package/dist/trace/proof/ExecutionProofSystem.js +185 -0
- package/dist/trace/proof/ExecutionProofSystem.js.map +1 -0
- package/dist/trace/proof/index.d.ts +11 -0
- package/dist/trace/proof/index.d.ts.map +1 -0
- package/dist/trace/proof/index.js +15 -0
- package/dist/trace/proof/index.js.map +1 -0
- package/dist/types/index.d.ts +194 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/unified/UnifiedExecutionEngine.d.ts +118 -0
- package/dist/unified/UnifiedExecutionEngine.d.ts.map +1 -0
- package/dist/unified/UnifiedExecutionEngine.js +187 -0
- package/dist/unified/UnifiedExecutionEngine.js.map +1 -0
- package/dist/unified/index.d.ts +17 -0
- package/dist/unified/index.d.ts.map +1 -0
- package/dist/unified/index.js +21 -0
- package/dist/unified/index.js.map +1 -0
- package/dist/utils/OutputNormalizer.d.ts +8 -0
- package/dist/utils/OutputNormalizer.d.ts.map +1 -0
- package/dist/utils/OutputNormalizer.js +48 -0
- package/dist/utils/OutputNormalizer.js.map +1 -0
- package/dist/utils/RevisionHistory.d.ts +9 -0
- package/dist/utils/RevisionHistory.d.ts.map +1 -0
- package/dist/utils/RevisionHistory.js +72 -0
- package/dist/utils/RevisionHistory.js.map +1 -0
- package/dist/utils/TaskQueue.d.ts +12 -0
- package/dist/utils/TaskQueue.d.ts.map +1 -0
- package/dist/utils/TaskQueue.js +107 -0
- package/dist/utils/TaskQueue.js.map +1 -0
- package/dist/utils/logger.d.ts +16 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +66 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/uuid.d.ts +2 -0
- package/dist/utils/uuid.d.ts.map +1 -0
- package/dist/utils/uuid.js +41 -0
- package/dist/utils/uuid.js.map +1 -0
- package/dist/validate.d.ts +22 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/validate.js +46 -0
- package/dist/validate.js.map +1 -0
- package/dist/workflow/WorkflowMachine.d.ts +55 -0
- package/dist/workflow/WorkflowMachine.d.ts.map +1 -0
- package/dist/workflow/WorkflowMachine.js +185 -0
- package/dist/workflow/WorkflowMachine.js.map +1 -0
- package/docs/AGENT-HIVE-CAPABILITY-MATRIX-AUDIT.md +281 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1-PRODUCT-READY-SPEC.md +346 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.0-FINAL-SYSTEM-SPEC.md +509 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.0-NEW.md +390 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.0.md +369 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.1-FINAL-SPEC.md +380 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.1-RUNTIME-CORE.md +296 -0
- package/docs/AGENT-HIVE-PHASE-10-EXECUTION-KERNEL-SYSTEM.md +399 -0
- package/docs/AGENT-HIVE-PHASE-10-FINAL-FORM-v2-HARD-TRUTH-ENFORCEMENT-SYSTEM.md +350 -0
- package/docs/AGENT-HIVE-PHASE-10-FINAL-HARD-EXECUTION-TRUTH-SYSTEM-INVARIANT-ROOT-CAUSE-AUDIT.md +286 -0
- package/docs/AGENT-HIVE-PHASE-10-HARD-EXECUTION-TRUTH-SYSTEM-INVARIANT-AUDIT.md +283 -0
- package/docs/AGENT-HIVE-PHASE-5-EXECUTION-VALIDATION-REPORT.md +356 -0
- package/docs/AGENT-HIVE-PHASE-5.1-PLANNER-ERROR-AUDIT.md +323 -0
- package/docs/AGENT-HIVE-PHASE-6-TRUTH-AUDIT.md +454 -0
- package/docs/AGENT-HIVE-PHASE-7-PRODUCTION-READINESS-AUDIT.md +210 -0
- package/docs/AGENT-HIVE-PHASE-8-HARD-EXECUTION-TRUTH-ENFORCEMENT-AUDIT.md +310 -0
- package/docs/AGENT-HIVE-PHASE-9-EXECUTION-COLLAPSE-TEST-SYSTEM.md +241 -0
- package/docs/AGENT-HIVE-RELEASE-VALIDATION-REPORT-v2.md +260 -0
- package/docs/AGENT-HIVE-RELEASE-VALIDATION-REPORT.md +282 -0
- package/docs/AGENT-HIVE-RUNTIME-v2.0-ARCHITECTURE-AUDIT.md +500 -0
- package/docs/AGENT-HIVE-RUNTIME-v2.0-ULTIMATE-INVARIANTS-AUDIT.md +170 -0
- package/docs/AGENT-HIVE-v1.4-lite-KERNEL-PATCH-INTEGRATION-REPORT.md +182 -0
- package/docs/ARCHITECTURE-FREEZE-VALIDATION-REPORT.md +157 -0
- package/docs/ARCHITECTURE.md +51 -0
- package/docs/QUICKSTART.md +44 -0
- package/docs/adr/ADR-001-runtime-architecture.md +28 -0
- package/docs/adr/ADR-002-dag-execution.md +11 -0
- package/docs/adr/ADR-003-observation-layer.md +11 -0
- package/docs/adr/ADR-004-policy-engine.md +11 -0
- package/docs/adr/ADR-005-self-healing.md +24 -0
- package/docs/adr/ADR-006-checkpoint.md +24 -0
- package/docs/adr/ADR-007-event-sourcing.md +11 -0
- package/docs/adr/ADR-008-plugin-sdk.md +11 -0
- package/docs/adr/ADR-009-scheduler.md +24 -0
- package/docs/adr/ADR-010-platform-api.md +11 -0
- package/docs/agent-hive-full-audit-report.md +281 -0
- package/docs/agent-hive-observation.md +100 -0
- package/docs/architecture/overview.md +78 -0
- package/docs/architecture-current.md +301 -0
- package/docs/architecture-review-v2.1.7.md +402 -0
- package/docs/audit-report.md +172 -0
- package/docs/branding-final.md +44 -0
- package/docs/branding-review.md +51 -0
- package/docs/continuous-validation.md +59 -0
- package/docs/dashboard-runtime-validation.md +44 -0
- package/docs/dashboard.md +32 -0
- package/docs/experiment-results.json +341 -0
- package/docs/failure-intelligence-report.md +39 -0
- package/docs/hermes-audit-report.md +119 -0
- package/docs/install-validation.md +43 -0
- package/docs/observability-report.md +71 -0
- package/docs/observability.md +187 -0
- package/docs/orchestration-report.md +119 -0
- package/docs/plugins/README.md +64 -0
- package/docs/positioning.md +67 -0
- package/docs/product-entry.md +55 -0
- package/docs/providers.md +56 -0
- package/docs/real-project-validation.md +120 -0
- package/docs/real-workload-stream.md +69 -0
- package/docs/real-world-validation-report.md +76 -0
- package/docs/release-checklist-v1.1.md +25 -0
- package/docs/runtime-benchmark.md +118 -0
- package/docs/self-hosting.md +64 -0
- package/docs/stability.md +49 -0
- package/docs/task-injection-set.md +49 -0
- package/docs/user-feedback-v1.md +59 -0
- package/docs/v2.0-architecture-proposal.md +684 -0
- package/docs/validation-report.md +116 -0
- package/docs/value-analysis.md +110 -0
- package/examples/ai-workflow/index.js +34 -0
- package/examples/demo/index.js +87 -0
- package/examples/demo/package.json +7 -0
- package/jest.config.js +31 -0
- package/package.json +34 -0
- package/runtime.json.example +26 -0
- package/src/adapters/ClaudeAdapter.ts +229 -0
- package/src/adapters/CodexAdapter.ts +108 -0
- package/src/adapters/HermesAdapter.ts +196 -0
- package/src/adapters/MockClaudeAdapter.ts +70 -0
- package/src/adapters/MockCodexAdapter.ts +36 -0
- package/src/adapters/OpenClawAdapter.ts +172 -0
- package/src/adapters/registry.ts +54 -0
- package/src/api/HiveAPI.ts +148 -0
- package/src/benchmark/BenchmarkDataset.ts +80 -0
- package/src/benchmark/BenchmarkPlan.ts +451 -0
- package/src/benchmark/BenchmarkReport.ts +147 -0
- package/src/benchmark/BenchmarkRunner.ts +143 -0
- package/src/benchmark/BenchmarkSuite.ts +193 -0
- package/src/benchmark/index.ts +39 -0
- package/src/broker/AgentRegistry.ts +76 -0
- package/src/broker/Broker.ts +115 -0
- package/src/broker/GraphOperations.ts +73 -0
- package/src/broker/MessageBus.ts +92 -0
- package/src/broker/MessageRouter.ts +159 -0
- package/src/broker/TaskProcessor.ts +520 -0
- package/src/broker/TaskProcessor.ts.backup +472 -0
- package/src/broker/TaskRouter.ts +32 -0
- package/src/channels/ChannelPlugin.ts +34 -0
- package/src/ci/CIGate.ts +150 -0
- package/src/ci/ContractLock.ts +92 -0
- package/src/cli/hive-cli.ts +104 -0
- package/src/cli.ts +218 -0
- package/src/command/CommandAST.ts +40 -0
- package/src/commands/cli.ts +819 -0
- package/src/commands/demo.ts +81 -0
- package/src/commands/experiment-routing.ts +360 -0
- package/src/commands/generate-dashboard.js +235 -0
- package/src/commands/run-daily-validation.js +125 -0
- package/src/commands/run-validation.ts +316 -0
- package/src/commands/test-benchmark.ts +208 -0
- package/src/commands/test-conversation.ts +284 -0
- package/src/commands/test-crash.ts +67 -0
- package/src/commands/test-cross-platform.ts +65 -0
- package/src/commands/test-graph.ts +466 -0
- package/src/commands/test-observability.ts +137 -0
- package/src/commands/test-orchestration.ts +122 -0
- package/src/commands/test-real-world.ts +180 -0
- package/src/commands/test-reviewer.ts +136 -0
- package/src/commands/test-runtime-intelligence.ts +235 -0
- package/src/commands/test-stress.ts +131 -0
- package/src/commands/test-timeout.ts +145 -0
- package/src/commands/test-v2-integration.ts +615 -0
- package/src/commands/test-validation.ts +210 -0
- package/src/compiler/ArchitectureSynthesizer.ts +117 -0
- package/src/compiler/BlueprintPackager.ts +32 -0
- package/src/compiler/CommandCompiler.ts +66 -0
- package/src/compiler/DAGCompiler.ts +25 -0
- package/src/compiler/DomainModelGenerator.ts +132 -0
- package/src/compiler/FeasibilityGate.ts +81 -0
- package/src/compiler/InputNormalizer.ts +88 -0
- package/src/compiler/IntentParser.ts +109 -0
- package/src/compiler/ModulePlanner.ts +32 -0
- package/src/compiler/PromptCompiler.ts +39 -0
- package/src/compiler/index.ts +84 -0
- package/src/context/ContextManager.ts +63 -0
- package/src/control-plane/BudgetController.ts +120 -0
- package/src/control-plane/ControlPlane.ts +254 -0
- package/src/control-plane/ConvergenceGuard.ts +85 -0
- package/src/control-plane/DriftDetector.ts +99 -0
- package/src/control-plane/MetricStabilityLock.ts +75 -0
- package/src/control-plane/index.ts +24 -0
- package/src/convergence/ConvergenceValidator.ts +367 -0
- package/src/convergence/index.ts +35 -0
- package/src/conversation/ConversationManager.ts +158 -0
- package/src/dashboard/EventStore.ts +54 -0
- package/src/dashboard/FailureIntelligence.ts +302 -0
- package/src/dashboard/ObservationDashboard.ts +256 -0
- package/src/dashboard/StabilityCurve.ts +69 -0
- package/src/dashboard/index.html +144 -0
- package/src/engine/ExecutionEngine.ts +132 -0
- package/src/engine/PlatformAdapter.ts +49 -0
- package/src/engine/ResultNormalizer.ts +69 -0
- package/src/engine/StructuredLogger.ts +61 -0
- package/src/evaluation/BaselineRunner.ts +124 -0
- package/src/evaluation/DecisionTrace.ts +33 -0
- package/src/evaluation/EvaluationMetrics.ts +42 -0
- package/src/evaluation/GroundTruthDataset.ts +84 -0
- package/src/evaluation/RealWorldBenchmark.ts +91 -0
- package/src/evaluation/RealWorldRunner.ts +171 -0
- package/src/evaluation/ValidationRunner.ts +156 -0
- package/src/events/AgentEvent.ts +45 -0
- package/src/events/DecisionEvent.ts +16 -0
- package/src/events/ExecutionEvent.ts +38 -0
- package/src/events/SystemEvent.ts +11 -0
- package/src/evolution/EvolutionEngine.ts +388 -0
- package/src/evolution/index.ts +27 -0
- package/src/execution-fabric/DistributedExecutionFabric.ts +304 -0
- package/src/execution-fabric/index.ts +16 -0
- package/src/execution-graph/DynamicExecutionGraphRuntime.ts +319 -0
- package/src/execution-graph/ExecutionGraphEngine.ts +290 -0
- package/src/execution-graph/index.ts +28 -0
- package/src/execution-runtime/ExecutionRuntime.ts +290 -0
- package/src/execution-runtime/index.ts +17 -0
- package/src/governance/EngineeringGovernanceLayer.ts +287 -0
- package/src/graph/AgentGraph.ts +276 -0
- package/src/graph/GraphValidator.ts +107 -0
- package/src/graph/TopologyTemplates.ts +152 -0
- package/src/hardening/RuntimeHardening.ts +381 -0
- package/src/hardening/index.ts +18 -0
- package/src/index.ts +8 -0
- package/src/kernel/ExecutionState.ts +133 -0
- package/src/kernel/FailureInterceptor.ts +136 -0
- package/src/kernel/KernelGate.ts +77 -0
- package/src/kernel/MultiAgentExecutionKernel.ts +274 -0
- package/src/kernel/RuntimeKernel.ts +494 -0
- package/src/kernel/index.ts +32 -0
- package/src/knowledge/KnowledgeSystem.ts +145 -0
- package/src/learning/ExecutionEpisodeStore.ts +95 -0
- package/src/learning/InsightEngine.ts +78 -0
- package/src/learning/LearningLoopEngine.ts +97 -0
- package/src/learning/MemoryCompressor.ts +94 -0
- package/src/learning/PolicyOptimizer.ts +102 -0
- package/src/learning/PolicyStore.ts +94 -0
- package/src/loop-layer/EvaluationEngine.ts +55 -0
- package/src/loop-layer/LoopController.ts +95 -0
- package/src/loop-layer/ObservationEngine.ts +159 -0
- package/src/memory/ContextCompressor.ts +80 -0
- package/src/memory/MemoryManager.ts +52 -0
- package/src/memory/MemorySearch.ts +91 -0
- package/src/memory/MemoryStore.ts +72 -0
- package/src/observability/ConversationTrace.ts +89 -0
- package/src/observability/DecisionRecorder.ts +95 -0
- package/src/observability/RuntimeMetrics.ts +114 -0
- package/src/observability/TaskTimeline.ts +102 -0
- package/src/observation/SystemScoreCalculator.ts +182 -0
- package/src/observation/__tests__/SystemScoreCalculator.test.ts +71 -0
- package/src/orchestration/AgentRouter.ts +69 -0
- package/src/orchestration/DAGExecutor.ts +150 -0
- package/src/orchestration/JudgeAgent.ts +69 -0
- package/src/orchestration/Planner.ts +52 -0
- package/src/orchestration/ReviewerAgent.ts +76 -0
- package/src/orchestration/contracts/Agent.ts +46 -0
- package/src/orchestration/registry/AgentProfile.ts +11 -0
- package/src/orchestration/registry/AgentRegistry.ts +36 -0
- package/src/planning/ProjectPlanningLayer.ts +230 -0
- package/src/platform/PlatformCapabilities.ts +42 -0
- package/src/platform/auth/AuthService.ts +50 -0
- package/src/platform/index.ts +73 -0
- package/src/platform/sdk/index.ts +87 -0
- package/src/platform/server/ApiServer.ts +226 -0
- package/src/platform/services/MetricsService.ts +97 -0
- package/src/platform/validation/PlatformValidation.ts +109 -0
- package/src/platform/validation/benchmark/BenchmarkFramework.ts +83 -0
- package/src/platform/validation/chaos/FaultInjector.ts +85 -0
- package/src/product/AutoTopologySelector.ts +137 -0
- package/src/product/ProductEngineeringLayer.ts +215 -0
- package/src/product/ProviderRegistry.ts +25 -0
- package/src/product/TaskIntentClassifier.ts +105 -0
- package/src/production/ProductionRuntime.ts +161 -0
- package/src/production/checkpoint/CheckpointManager.ts +103 -0
- package/src/production/compensation/CompensationEngine.ts +71 -0
- package/src/production/events/EventStore.ts +100 -0
- package/src/production/plugins/PluginRegistry.ts +84 -0
- package/src/production/scheduler/Scheduler.ts +93 -0
- package/src/production-observation/ProductionObservation.ts +404 -0
- package/src/production-observation/index.ts +41 -0
- package/src/productionization/ProductionizationPlan.ts +591 -0
- package/src/productionization/index.ts +45 -0
- package/src/prompts/reviewer.txt +17 -0
- package/src/prompts/revision.txt +10 -0
- package/src/providers/OpenAIProvider.ts +61 -0
- package/src/providers/ProviderAdapter.ts +32 -0
- package/src/reasoning/ArchitectureCandidateGenerator.ts +103 -0
- package/src/reasoning/ArchitectureSpaceGenerator.ts +73 -0
- package/src/reasoning/ConstraintInferenceEngine.ts +110 -0
- package/src/reasoning/DecisionEngine.ts +102 -0
- package/src/reasoning/ExplainabilityLayer.ts +72 -0
- package/src/reasoning/FailureSimulationEngine.ts +102 -0
- package/src/reasoning/TradeoffReasoningEngine.ts +114 -0
- package/src/reasoning/index.ts +115 -0
- package/src/review/ReviewConsensus.ts +243 -0
- package/src/runtime/CapabilityDiscovery.ts +142 -0
- package/src/runtime/EventBus.ts +84 -0
- package/src/runtime/FailureAnalyzer.ts +87 -0
- package/src/runtime/ReplayEngine.ts +62 -0
- package/src/runtime/RuntimeConfig.ts +101 -0
- package/src/runtime/RuntimeScoreManager.ts +134 -0
- package/src/runtime/RuntimeSelector.ts +118 -0
- package/src/runtime/v2/RuntimeCore.ts +453 -0
- package/src/runtime/v2/audit/AuditTrail.ts +393 -0
- package/src/runtime/v2/budget/BudgetGuard.ts +304 -0
- package/src/runtime/v2/capability/CapabilityRegistry.ts +244 -0
- package/src/runtime/v2/checkpoint/HumanCheckpoint.ts +364 -0
- package/src/runtime/v2/concurrency/ConcurrencyManager.ts +263 -0
- package/src/runtime/v2/dashboard/DashboardApi.ts +534 -0
- package/src/runtime/v2/dashboard/DashboardServer.ts +160 -0
- package/src/runtime/v2/discovery/DiscoveryEngine.ts +488 -0
- package/src/runtime/v2/evaluator/EvaluatorPipeline.ts +300 -0
- package/src/runtime/v2/hydration/HydrationEngine.ts +289 -0
- package/src/runtime/v2/index.ts +211 -0
- package/src/runtime/v2/intent/TaskContract.ts +182 -0
- package/src/runtime/v2/isolation/WorkspaceIsolation.ts +330 -0
- package/src/runtime/v2/observation/EventBus.ts +137 -0
- package/src/runtime/v2/persistence/PersistenceEngine.ts +330 -0
- package/src/runtime/v2/planner/PlannerEngine.ts +134 -0
- package/src/runtime/v2/policy/PolicyEngine.ts +288 -0
- package/src/runtime/v2/provider/AnthropicProvider.ts +133 -0
- package/src/runtime/v2/provider/GoogleProvider.ts +136 -0
- package/src/runtime/v2/provider/OpenAIProvider.ts +184 -0
- package/src/runtime/v2/provider/ProviderManager.ts +150 -0
- package/src/runtime/v2/provider/ProviderRegistry.ts +262 -0
- package/src/runtime/v2/queue/RuntimeQueue.ts +280 -0
- package/src/runtime/v2/recovery/RecoveryEngine.ts +357 -0
- package/src/runtime/v2/scheduler/SchedulerEngine.ts +358 -0
- package/src/runtime/v2/state-machine/RuntimeStateMachine.ts +186 -0
- package/src/runtime/v2/workflow/RuntimeWorkflowBridge.ts +410 -0
- package/src/runtime/v2.1/ControlPlane.ts +249 -0
- package/src/runtime/v2.1/bridge/ExecutionBridge.ts +142 -0
- package/src/runtime/v2.1/contract/ShadowContractLayer.ts +343 -0
- package/src/runtime/v2.1/decision/ShadowDecisionLayer.ts +165 -0
- package/src/runtime/v2.1/der/ChaosExecutionMode.ts +120 -0
- package/src/runtime/v2.1/der/DER.ts +468 -0
- package/src/runtime/v2.1/der/FaultInjectionLayer.ts +181 -0
- package/src/runtime/v2.1/der/StressMetrics.ts +170 -0
- package/src/runtime/v2.1/index.ts +101 -0
- package/src/runtime/v2.1/observability/ShadowObservabilityLayer.ts +226 -0
- package/src/runtime/v2.1/validation/CutoverGate.ts +179 -0
- package/src/runtime/v2.1/validation/DivergenceAnalyzer.ts +165 -0
- package/src/runtime/v2.1/validation/ValidationDashboard.ts +139 -0
- package/src/runtime/v2.1/validation/ValidationEngine.ts +308 -0
- package/src/runtime-core/agents/hermes.ts +20 -0
- package/src/runtime-core/agents/registry.ts +35 -0
- package/src/runtime-core/agents/worker.ts +20 -0
- package/src/runtime-core/index.ts +60 -0
- package/src/runtime-core/orchestrator.ts +123 -0
- package/src/runtime-core/tools/fs.ts +24 -0
- package/src/runtime-core/tools/registry.ts +34 -0
- package/src/runtime-v2/agents/PlannerAgent.ts +34 -0
- package/src/runtime-v2/context/ContextBus.ts +72 -0
- package/src/runtime-v2/graph/GraphRuntimeEngine.ts +217 -0
- package/src/runtime-v2/index.ts +62 -0
- package/src/runtime.ts +10 -0
- package/src/safety/CircuitBreaker.ts +152 -0
- package/src/safety/HopCounter.ts +57 -0
- package/src/safety/MessageDeduplicator.ts +69 -0
- package/src/safety/TimeBudget.ts +129 -0
- package/src/safety/__tests__/CircuitBreaker.test.ts +113 -0
- package/src/sandbox/ExecutionSandbox.ts +65 -0
- package/src/security/P0IncidentResponse.ts +201 -0
- package/src/security/SecurityHardening.ts +272 -0
- package/src/security/index.ts +29 -0
- package/src/self-healing/ExecutionTrace.ts +164 -0
- package/src/self-healing/FailureClassifier.ts +212 -0
- package/src/self-healing/LoopMemory.ts +98 -0
- package/src/self-healing/PolicyEngine.ts +117 -0
- package/src/self-healing/RetryPolicy.ts +120 -0
- package/src/self-healing/RuntimeEvents.ts +93 -0
- package/src/self-healing/SelfHealingRuntime.ts +282 -0
- package/src/stability/StabilityEngine.ts +216 -0
- package/src/stability/TaskQualityGate.ts +119 -0
- package/src/stability-loop/StabilityHardeningLoop.ts +470 -0
- package/src/stability-loop/index.ts +53 -0
- package/src/trace/CausalEngine.ts +160 -0
- package/src/trace/ExecutionTraceModel.ts +242 -0
- package/src/trace/KnowledgeInfluenceTracker.ts +92 -0
- package/src/trace/flexibility/AdaptiveRuntime.ts +41 -0
- package/src/trace/flexibility/ExecutionFlexibilityEngine.ts +97 -0
- package/src/trace/flexibility/FlexibleExecutionGate.ts +51 -0
- package/src/trace/flexibility/index.ts +26 -0
- package/src/trace/gate/DeviationDetectionEngine.ts +182 -0
- package/src/trace/gate/ExecutionTracePlan.ts +108 -0
- package/src/trace/gate/TraceExecutionGate.ts +163 -0
- package/src/trace/gate/index.ts +15 -0
- package/src/trace/index.ts +13 -0
- package/src/trace/proof/ExecutionProofSystem.ts +232 -0
- package/src/trace/proof/index.ts +16 -0
- package/src/types/index.ts +286 -0
- package/src/unified/UnifiedExecutionEngine.ts +281 -0
- package/src/unified/index.ts +24 -0
- package/src/utils/OutputNormalizer.ts +45 -0
- package/src/utils/RevisionHistory.ts +39 -0
- package/src/utils/TaskQueue.ts +80 -0
- package/src/utils/logger.ts +44 -0
- package/src/utils/uuid.ts +5 -0
- package/src/validate.ts +50 -0
- package/src/workflow/WorkflowMachine.ts +229 -0
- package/test-grand-review.js +192 -0
- package/tests/test-system-score.ts +167 -0
- package/toyako-hive-4.0.0-rc.1.tgz +0 -0
- package/tsconfig.json +20 -0
- package/tsconfig.test.json +9 -0
|
@@ -0,0 +1,848 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
const Broker_1 = require("../broker/Broker");
|
|
38
|
+
const registry_1 = require("../adapters/registry");
|
|
39
|
+
const GraphValidator_1 = require("../graph/GraphValidator");
|
|
40
|
+
const TopologyTemplates_1 = require("../graph/TopologyTemplates");
|
|
41
|
+
const TaskIntentClassifier_1 = require("../product/TaskIntentClassifier");
|
|
42
|
+
const AutoTopologySelector_1 = require("../product/AutoTopologySelector");
|
|
43
|
+
const ProviderRegistry_1 = require("../product/ProviderRegistry");
|
|
44
|
+
const MemoryManager_1 = require("../memory/MemoryManager");
|
|
45
|
+
const fs = __importStar(require("fs"));
|
|
46
|
+
const path = __importStar(require("path"));
|
|
47
|
+
const pkg = require('../../package.json');
|
|
48
|
+
const ARGS = process.argv.slice(2);
|
|
49
|
+
const CMD = ARGS[0];
|
|
50
|
+
// Known commands (not task descriptions)
|
|
51
|
+
const KNOWN_CMDS = ["config", "mcp", "roles", "role", "workflows", "tools", "channels", "resume", "cost", "status", "--version", "--help", "-v", "-h", "memory", "project", "setup", "init", "detect", "agents", "link", "graph", "graph-template", "graph-validate", "graph-migrate", "task", "run", "dashboard", "doctor", "version", "health", "history", "help"];
|
|
52
|
+
async function main() {
|
|
53
|
+
const broker = new Broker_1.Broker();
|
|
54
|
+
// No args → interactive mode
|
|
55
|
+
if (!CMD) {
|
|
56
|
+
return cmdInteractive(broker);
|
|
57
|
+
}
|
|
58
|
+
// First arg looks like a task (not a known command) → treat as shortcut
|
|
59
|
+
if (!KNOWN_CMDS.includes(CMD)) {
|
|
60
|
+
const task = ARGS.join(" ");
|
|
61
|
+
return cmdRunWithTask(broker, task);
|
|
62
|
+
}
|
|
63
|
+
switch (CMD) {
|
|
64
|
+
case "setup": return cmdSetup();
|
|
65
|
+
case "init": return cmdInit();
|
|
66
|
+
case "detect": return cmdDetect(broker, ARGS);
|
|
67
|
+
case "agents": return cmdAgents(broker);
|
|
68
|
+
case "link": return cmdLink(broker, ARGS[1], ARGS[2]);
|
|
69
|
+
case "graph": return cmdGraph(broker);
|
|
70
|
+
case "graph-template": return cmdGraphTemplate(broker, ARGS);
|
|
71
|
+
case "graph-validate": return cmdGraphValidate(broker);
|
|
72
|
+
case "graph-migrate": return cmdGraphMigrate(broker);
|
|
73
|
+
case "task": return cmdTask(broker, ARGS);
|
|
74
|
+
case "run": return cmdRun(broker, ARGS);
|
|
75
|
+
case "dashboard": return cmdDashboard();
|
|
76
|
+
case "doctor": return cmdDoctor(broker);
|
|
77
|
+
case "version":
|
|
78
|
+
case "--version":
|
|
79
|
+
case "-v": return cmdVersion();
|
|
80
|
+
case "help":
|
|
81
|
+
case "--help":
|
|
82
|
+
case "-h": return printUsage();
|
|
83
|
+
case "health": return cmdHealth(broker);
|
|
84
|
+
case "history": return cmdHistory(broker, ARGS);
|
|
85
|
+
case "memory": return cmdMemory(ARGS);
|
|
86
|
+
case "project": return cmdProject(ARGS);
|
|
87
|
+
case "resume": return cmdResume(broker);
|
|
88
|
+
case "cost": return cmdCost();
|
|
89
|
+
case "status": return cmdStatus();
|
|
90
|
+
case "config": return cmdConfig();
|
|
91
|
+
case "mcp": return cmdMCP(ARGS);
|
|
92
|
+
case "roles": return cmdRoles(ARGS);
|
|
93
|
+
case "role": return cmdRoleInfo(ARGS);
|
|
94
|
+
case "workflows": return cmdWorkflows();
|
|
95
|
+
case "tools": return cmdTools();
|
|
96
|
+
case "channels": return cmdChannels(ARGS);
|
|
97
|
+
case "help":
|
|
98
|
+
case "--help":
|
|
99
|
+
case "-h": return printUsage();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
async function cmdInteractive(broker) {
|
|
103
|
+
const readline = require("readline");
|
|
104
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
105
|
+
const ask = (q) => new Promise(resolve => rl.question(q, resolve));
|
|
106
|
+
console.log("\n 🐝 Agent Hive\n");
|
|
107
|
+
const task = await ask(" What do you want to build?\n\n > ");
|
|
108
|
+
rl.close();
|
|
109
|
+
if (!task.trim()) {
|
|
110
|
+
console.log(" Bye! 🐝\n");
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
await cmdRunWithTask(broker, task);
|
|
114
|
+
}
|
|
115
|
+
async function cmdRunWithTask(broker, task) {
|
|
116
|
+
cleanTasks();
|
|
117
|
+
console.log(`\n 🐝 Working on: "${task.slice(0, 80)}${task.length > 80 ? "..." : ""}"\n`);
|
|
118
|
+
await cmdDetect(broker, []);
|
|
119
|
+
// Auto-classify and select
|
|
120
|
+
const classifier = new TaskIntentClassifier_1.TaskIntentClassifier();
|
|
121
|
+
const adapters = broker.registry.all().map(e => broker.registry.getAdapter(e.name)).filter(Boolean);
|
|
122
|
+
const selector = new AutoTopologySelector_1.AutoTopologySelector(adapters);
|
|
123
|
+
const classification = classifier.classify(task);
|
|
124
|
+
const selection = selector.select(classification.intent);
|
|
125
|
+
console.log(` [classify] ${classification.intent} (${classification.confidence})`);
|
|
126
|
+
console.log(` [select] ${selection.executor} → ${selection.reviewer} (${selection.topology})\n`);
|
|
127
|
+
broker.addAgentProfile({ id: selection.executor, runtimeId: selection.executor, role: "executor", maxConcurrency: 1, status: "idle" });
|
|
128
|
+
broker.addAgentProfile({ id: selection.reviewer, runtimeId: selection.reviewer, role: "reviewer", maxConcurrency: 1, status: "idle" });
|
|
129
|
+
broker.addGraphEdge(selection.executor, selection.reviewer, "reviews", 10);
|
|
130
|
+
broker.addGraphEdge(selection.reviewer, selection.executor, "escalates", 5);
|
|
131
|
+
broker.enableGraphMode();
|
|
132
|
+
broker.submit({ instruction: task, executor: selection.executor, reviewer: selection.reviewer, workingDirectory: process.cwd(), maxRevision: 3 });
|
|
133
|
+
await broker.run();
|
|
134
|
+
const tasks = broker.listTasks();
|
|
135
|
+
if (tasks.length > 0) {
|
|
136
|
+
const t = tasks[0];
|
|
137
|
+
const history = broker.history.get(t.id);
|
|
138
|
+
const lastReview = history[history.length - 1];
|
|
139
|
+
const icon = t.status === "COMPLETED" ? "✓" : "✗";
|
|
140
|
+
console.log(` ${icon} ${t.status} — score: ${lastReview?.score || "N/A"}, revisions: ${t.revisionCount}\n`);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function cmdInit() {
|
|
144
|
+
const base = path.resolve(process.cwd(), ".agent-hive");
|
|
145
|
+
const dirs = ["tasks", "messages", "logs", "memory", "history", "conversations", "traces", "metrics", "benchmark", "reports"];
|
|
146
|
+
for (const d of dirs)
|
|
147
|
+
fs.mkdirSync(path.join(base, d), { recursive: true });
|
|
148
|
+
console.log(` ✓ Agent Hive initialized (v${pkg.version})`);
|
|
149
|
+
console.log(` ${base}/`);
|
|
150
|
+
dirs.forEach((d) => console.log(` ├── ${d}/`));
|
|
151
|
+
}
|
|
152
|
+
async function cmdDetect(broker, args) {
|
|
153
|
+
const dryRun = args.includes("--dry-run");
|
|
154
|
+
const healthCheck = args.includes("--health");
|
|
155
|
+
console.log("\n Scanning for agent runtimes...\n");
|
|
156
|
+
const adapters = dryRun ? (0, registry_1.getMockAdapters)() : (0, registry_1.getAllAdapters)();
|
|
157
|
+
for (const adapter of adapters) {
|
|
158
|
+
await broker.registerAdapter(adapter);
|
|
159
|
+
}
|
|
160
|
+
if (healthCheck && !dryRun) {
|
|
161
|
+
console.log("\n Running health checks...\n");
|
|
162
|
+
for (const name of (0, registry_1.getAdapterNames)()) {
|
|
163
|
+
const ok = await broker.healthCheck(name);
|
|
164
|
+
console.log(` ${name}: ${ok ? "✓ responsive" : "✗ not responding"}`);
|
|
165
|
+
}
|
|
166
|
+
console.log("\n Note: Agent Hive does not manage Provider config.");
|
|
167
|
+
}
|
|
168
|
+
broker.migrateFromRegistry();
|
|
169
|
+
console.log("\n Scan complete.");
|
|
170
|
+
}
|
|
171
|
+
function cmdAgents(broker) {
|
|
172
|
+
const entries = broker.registry.all();
|
|
173
|
+
if (entries.length === 0) {
|
|
174
|
+
console.log("\n No agents registered. Run: hive detect\n");
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
console.log("\n Registered Agents:\n");
|
|
178
|
+
for (const e of entries) {
|
|
179
|
+
const status = e.healthy ? "✓" : "✗";
|
|
180
|
+
const reports = e.reportsTo ? ` → ${e.reportsTo}` : "";
|
|
181
|
+
console.log(` ${status} ${e.name} [${e.role}]${reports}`);
|
|
182
|
+
console.log(` capabilities: ${e.capabilities.join(", ")}`);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function cmdLink(broker, from, to) {
|
|
186
|
+
if (!from || !to) {
|
|
187
|
+
console.log(" Usage: hive link <from> <to>");
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
broker.registry.link(from, to);
|
|
191
|
+
console.log(` ✓ Linked: ${from} → ${to}`);
|
|
192
|
+
}
|
|
193
|
+
function cmdGraph(broker) {
|
|
194
|
+
const graph = broker.getGraph();
|
|
195
|
+
const agents = graph.allAgents();
|
|
196
|
+
const edges = graph.allEdges();
|
|
197
|
+
if (agents.length === 0) {
|
|
198
|
+
console.log("\n No agents in graph.\n");
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
console.log("\n Graph:\n");
|
|
202
|
+
console.log(` Agents: ${agents.map(a => a.id).join(", ")}`);
|
|
203
|
+
console.log(` Edges: ${edges.length}`);
|
|
204
|
+
}
|
|
205
|
+
function cmdGraphTemplate(broker, args) {
|
|
206
|
+
const template = args[1];
|
|
207
|
+
const runtimes = args.slice(2);
|
|
208
|
+
if (!template) {
|
|
209
|
+
console.log(" Usage: hive graph-template <name> [runtimes...]");
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
let result;
|
|
213
|
+
switch (template) {
|
|
214
|
+
case "simpleChain":
|
|
215
|
+
result = TopologyTemplates_1.TopologyTemplates.simpleChain(runtimes[0] || "executor", runtimes[1] || "reviewer");
|
|
216
|
+
break;
|
|
217
|
+
case "planExecuteReview":
|
|
218
|
+
result = TopologyTemplates_1.TopologyTemplates.planExecuteReview(runtimes[0] || "planner", runtimes[1] || "executor", runtimes[2] || "reviewer");
|
|
219
|
+
break;
|
|
220
|
+
case "pipeline":
|
|
221
|
+
result = TopologyTemplates_1.TopologyTemplates.pipeline(runtimes.length >= 2 ? runtimes : ["stage-1", "stage-2", "stage-3"]);
|
|
222
|
+
break;
|
|
223
|
+
case "peerReview":
|
|
224
|
+
result = TopologyTemplates_1.TopologyTemplates.peerReview(runtimes[0] || "agent-a", runtimes[1] || "agent-b");
|
|
225
|
+
break;
|
|
226
|
+
case "fanOutReview":
|
|
227
|
+
result = TopologyTemplates_1.TopologyTemplates.fanOutReview(runtimes[0] || "executor", runtimes.slice(1).length ? runtimes.slice(1) : ["r1", "r2", "r3"]);
|
|
228
|
+
break;
|
|
229
|
+
default:
|
|
230
|
+
console.log(` Unknown template: ${template}`);
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
TopologyTemplates_1.TopologyTemplates.apply(broker.getGraph(), result);
|
|
234
|
+
broker.enableGraphMode();
|
|
235
|
+
console.log(` ✓ Applied template: ${result.description}`);
|
|
236
|
+
}
|
|
237
|
+
function cmdGraphValidate(broker) {
|
|
238
|
+
const validator = new GraphValidator_1.GraphValidator();
|
|
239
|
+
const report = validator.validate(broker.getGraph());
|
|
240
|
+
console.log("\n Graph Validation:\n");
|
|
241
|
+
console.log(` Cycles: ${report.cycles.length}`);
|
|
242
|
+
console.log(` Review loops: ${report.reviewLoops.length}`);
|
|
243
|
+
console.log(` Isolated agents: ${report.isolatedAgents.length}`);
|
|
244
|
+
if (report.isValid)
|
|
245
|
+
console.log(" ✓ Graph is valid");
|
|
246
|
+
else
|
|
247
|
+
console.log(" ✗ Graph has issues");
|
|
248
|
+
}
|
|
249
|
+
function cmdGraphMigrate(broker) {
|
|
250
|
+
broker.migrateFromRegistry();
|
|
251
|
+
}
|
|
252
|
+
function cmdTask(broker, args) {
|
|
253
|
+
const executor = getArg(args, "--executor") || (0, registry_1.getAdapterNames)()[0];
|
|
254
|
+
const reviewer = getArg(args, "--reviewer") || (0, registry_1.getAdapterNames)()[0];
|
|
255
|
+
const instruction = getArg(args, "--instruction") || args.slice(1).join(" ");
|
|
256
|
+
const workDir = getArg(args, "--dir") || process.cwd();
|
|
257
|
+
const maxRevision = parseInt(getArg(args, "--max-revision") || "3", 10);
|
|
258
|
+
if (!instruction) {
|
|
259
|
+
console.log(' Usage: hive task --instruction "do something" [--dir /path]');
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
broker.submit({ instruction, executor, reviewer, workingDirectory: workDir, maxRevision });
|
|
263
|
+
}
|
|
264
|
+
async function cmdRun(broker, args) {
|
|
265
|
+
const task = getArg(args, "--task");
|
|
266
|
+
const dryRun = args.includes("--dry-run");
|
|
267
|
+
const workDir = getArg(args, "--dir") || process.cwd();
|
|
268
|
+
const maxRevision = parseInt(getArg(args, "--max-revision") || "3", 10);
|
|
269
|
+
// Clean stale tasks
|
|
270
|
+
cleanTasks();
|
|
271
|
+
// Register adapters
|
|
272
|
+
if (dryRun) {
|
|
273
|
+
console.log(" [mode] DRY-RUN (using mock adapters)\n");
|
|
274
|
+
broker.setDryRun(true);
|
|
275
|
+
await cmdDetect(broker, ["--dry-run"]);
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
console.log(" [mode] LIVE (using real agent runtimes)\n");
|
|
279
|
+
await cmdDetect(broker, []);
|
|
280
|
+
}
|
|
281
|
+
if (task) {
|
|
282
|
+
// Unified entry: auto-classify and select topology
|
|
283
|
+
const classifier = new TaskIntentClassifier_1.TaskIntentClassifier();
|
|
284
|
+
const adapters = broker.registry.all().map(e => {
|
|
285
|
+
const adapter = broker.registry.getAdapter(e.name);
|
|
286
|
+
return adapter;
|
|
287
|
+
}).filter(Boolean);
|
|
288
|
+
const selector = new AutoTopologySelector_1.AutoTopologySelector(adapters);
|
|
289
|
+
const classification = classifier.classify(task);
|
|
290
|
+
const selection = selector.select(classification.intent);
|
|
291
|
+
console.log(`\n [classify] Intent: ${classification.intent} (confidence: ${classification.confidence})`);
|
|
292
|
+
console.log(` [classify] Keywords: ${classification.keywords.join(", ")}`);
|
|
293
|
+
console.log(` [select] ${selection.reason}`);
|
|
294
|
+
console.log(` [select] Topology: ${selection.topology}\n`);
|
|
295
|
+
// Build graph
|
|
296
|
+
broker.addAgentProfile({ id: selection.executor, runtimeId: selection.executor, role: "executor", maxConcurrency: 1, status: "idle" });
|
|
297
|
+
broker.addAgentProfile({ id: selection.reviewer, runtimeId: selection.reviewer, role: "reviewer", maxConcurrency: 1, status: "idle" });
|
|
298
|
+
broker.addGraphEdge(selection.executor, selection.reviewer, "reviews", 10);
|
|
299
|
+
broker.addGraphEdge(selection.reviewer, selection.executor, "escalates", 5);
|
|
300
|
+
broker.enableGraphMode();
|
|
301
|
+
broker.submit({
|
|
302
|
+
instruction: task,
|
|
303
|
+
executor: selection.executor,
|
|
304
|
+
reviewer: selection.reviewer,
|
|
305
|
+
workingDirectory: workDir,
|
|
306
|
+
maxRevision,
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
await broker.run();
|
|
310
|
+
// Print results
|
|
311
|
+
const tasks = broker.listTasks();
|
|
312
|
+
if (tasks.length > 0) {
|
|
313
|
+
const t = tasks[0];
|
|
314
|
+
const history = broker.history.get(t.id);
|
|
315
|
+
const lastReview = history[history.length - 1];
|
|
316
|
+
console.log(`\n ┌─────────────────────────────────────┐`);
|
|
317
|
+
console.log(` │ Result │`);
|
|
318
|
+
console.log(` ├─────────────────────────────────────┤`);
|
|
319
|
+
console.log(` │ Status: ${t.status.padEnd(24)}│`);
|
|
320
|
+
console.log(` │ Revisions: ${String(t.revisionCount).padEnd(24)}│`);
|
|
321
|
+
console.log(` │ Score: ${String(lastReview?.score || "N/A").padEnd(24)}│`);
|
|
322
|
+
console.log(` │ Decision: ${String(lastReview?.decision || "N/A").padEnd(24)}│`);
|
|
323
|
+
console.log(` └─────────────────────────────────────┘`);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
function cleanTasks() {
|
|
327
|
+
const tasksDir = path.resolve(process.cwd(), ".agent-hive/tasks");
|
|
328
|
+
if (fs.existsSync(tasksDir)) {
|
|
329
|
+
for (const f of fs.readdirSync(tasksDir).filter(f => f.endsWith(".json"))) {
|
|
330
|
+
fs.unlinkSync(path.join(tasksDir, f));
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
function cmdHistory(broker, args) {
|
|
335
|
+
const taskId = args[1];
|
|
336
|
+
if (taskId) {
|
|
337
|
+
const records = broker.history.get(taskId);
|
|
338
|
+
if (records.length === 0) {
|
|
339
|
+
console.log(` No history for ${taskId}`);
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
console.log(`\n Revision History for ${taskId}:\n`);
|
|
343
|
+
for (const r of records) {
|
|
344
|
+
console.log(` #${r.attempt} ${r.decision} (score=${r.score}) ${r.timestamp}`);
|
|
345
|
+
if (r.issues.length)
|
|
346
|
+
console.log(` issues: ${r.issues.join(", ")}`);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
const all = broker.history.all();
|
|
351
|
+
if (all.length === 0) {
|
|
352
|
+
console.log(" No revision history.");
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
console.log(`\n Revision History (${all.length} records):\n`);
|
|
356
|
+
for (const r of all)
|
|
357
|
+
console.log(` ${r.taskId} #${r.attempt} ${r.decision} (score=${r.score})`);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
async function cmdResume(broker) {
|
|
361
|
+
const mm = new MemoryManager_1.MemoryManager();
|
|
362
|
+
const projects = mm.listProjects();
|
|
363
|
+
const tasks = mm.listTaskMemories();
|
|
364
|
+
console.log("\n 🐝 Session Resume\n");
|
|
365
|
+
if (projects.length > 0) {
|
|
366
|
+
console.log(" Projects:");
|
|
367
|
+
projects.forEach(p => console.log(` ${p.project}: ${p.techStack.join(", ") || "no stack"}`));
|
|
368
|
+
}
|
|
369
|
+
if (tasks.length > 0) {
|
|
370
|
+
console.log("\n Recent tasks:");
|
|
371
|
+
tasks.slice(-5).forEach(t => console.log(` ${t.taskId}: ${t.goal.slice(0, 60)}`));
|
|
372
|
+
}
|
|
373
|
+
if (projects.length === 0 && tasks.length === 0) {
|
|
374
|
+
console.log(" No previous session found.");
|
|
375
|
+
console.log(" Start with: hive project init <name>\n");
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
console.log("\n Continue with: hive \"<your next task>\"\n");
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
function cmdCost() {
|
|
382
|
+
const mm = new MemoryManager_1.MemoryManager();
|
|
383
|
+
const tasks = mm.listTaskMemories();
|
|
384
|
+
console.log("\n 🐝 Cost Tracking\n");
|
|
385
|
+
// Estimate costs from task memories
|
|
386
|
+
let totalTokens = 0;
|
|
387
|
+
const runtimeUsage = {};
|
|
388
|
+
for (const task of tasks) {
|
|
389
|
+
// Rough estimate: summary length * 4 (chars to tokens)
|
|
390
|
+
const est = Math.ceil((task.summary?.length || 0) / 4);
|
|
391
|
+
totalTokens += est;
|
|
392
|
+
// We don't track per-runtime tokens yet, so estimate evenly
|
|
393
|
+
for (const runtime of ["codex", "claude", "hermes"]) {
|
|
394
|
+
if (!runtimeUsage[runtime])
|
|
395
|
+
runtimeUsage[runtime] = { tasks: 0, tokens: 0 };
|
|
396
|
+
runtimeUsage[runtime].tasks++;
|
|
397
|
+
runtimeUsage[runtime].tokens += Math.ceil(est / 3);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
for (const [name, usage] of Object.entries(runtimeUsage)) {
|
|
401
|
+
console.log(` ${name}: ${usage.tasks} tasks, ~${usage.tokens} tokens`);
|
|
402
|
+
}
|
|
403
|
+
console.log(`\n Total: ${tasks.length} tasks, ~${totalTokens} tokens`);
|
|
404
|
+
console.log(` (Estimates based on memory summaries. Actual API usage may differ.)\n`);
|
|
405
|
+
}
|
|
406
|
+
function cmdStatus() {
|
|
407
|
+
const mm = new MemoryManager_1.MemoryManager();
|
|
408
|
+
const projects = mm.listProjects();
|
|
409
|
+
const tasks = mm.listTaskMemories();
|
|
410
|
+
console.log("\n 🐝 Status\n");
|
|
411
|
+
console.log(` Projects: ${projects.length}`);
|
|
412
|
+
console.log(` Tasks: ${tasks.length}`);
|
|
413
|
+
// Check context
|
|
414
|
+
const configPath = path.resolve(process.cwd(), ".agent-hive/config.json");
|
|
415
|
+
if (fs.existsSync(configPath)) {
|
|
416
|
+
const config = JSON.parse(fs.readFileSync(configPath, "utf-8"));
|
|
417
|
+
console.log(` Provider: ${config.provider || "unknown"}`);
|
|
418
|
+
console.log(` Model: ${config.model || "unknown"}`);
|
|
419
|
+
}
|
|
420
|
+
// Check memory files
|
|
421
|
+
const memDir = path.resolve(process.cwd(), ".agent-hive/memory");
|
|
422
|
+
if (fs.existsSync(memDir)) {
|
|
423
|
+
const taskFiles = fs.readdirSync(path.join(memDir, "tasks")).filter(f => f.endsWith(".json")).length;
|
|
424
|
+
const projFiles = fs.readdirSync(path.join(memDir, "projects")).filter(f => f.endsWith(".json")).length;
|
|
425
|
+
console.log(` Memory: ${taskFiles} task entries, ${projFiles} project entries`);
|
|
426
|
+
}
|
|
427
|
+
console.log("");
|
|
428
|
+
}
|
|
429
|
+
function cmdConfig() {
|
|
430
|
+
console.log("\n 🐝 Config Center\n");
|
|
431
|
+
console.log(" 1. Providers — API providers configuration");
|
|
432
|
+
console.log(" 2. Models — Default model settings");
|
|
433
|
+
console.log(" 3. Roles — Agent role assignments");
|
|
434
|
+
console.log(" 4. Tools — Available tools");
|
|
435
|
+
console.log(" 5. MCP — MCP server registry");
|
|
436
|
+
console.log(" 6. Projects — Project management");
|
|
437
|
+
console.log(" 7. Memory — Memory settings");
|
|
438
|
+
console.log(" 8. Status — Current configuration\n");
|
|
439
|
+
const configPath = path.resolve(process.cwd(), ".agent-hive/config.json");
|
|
440
|
+
if (fs.existsSync(configPath)) {
|
|
441
|
+
const config = JSON.parse(fs.readFileSync(configPath, "utf-8"));
|
|
442
|
+
console.log(" Current config:");
|
|
443
|
+
console.log(` Provider: ${config.provider || "not set"}`);
|
|
444
|
+
console.log(` Model: ${config.model || "not set"}`);
|
|
445
|
+
console.log(` Base URL: ${config.baseUrl || "not set"}`);
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
console.log(" No config found. Run: hive setup");
|
|
449
|
+
}
|
|
450
|
+
console.log("");
|
|
451
|
+
}
|
|
452
|
+
function cmdMCP(args) {
|
|
453
|
+
const sub = args[1];
|
|
454
|
+
const mcpServers = [
|
|
455
|
+
{ name: "filesystem", status: "available", description: "File system access" },
|
|
456
|
+
{ name: "github", status: "available", description: "GitHub API integration" },
|
|
457
|
+
{ name: "browser", status: "experimental", description: "Browser automation" },
|
|
458
|
+
{ name: "database", status: "coming-soon", description: "Database access" },
|
|
459
|
+
];
|
|
460
|
+
if (sub === "list" || !sub) {
|
|
461
|
+
console.log("\n 🐝 MCP Servers\n");
|
|
462
|
+
for (const s of mcpServers) {
|
|
463
|
+
const icon = s.status === "available" ? "✓" : s.status === "experimental" ? "⚡" : "○";
|
|
464
|
+
console.log(` ${icon} ${s.name.padEnd(15)} ${s.description.padEnd(25)} [${s.status}]`);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
else if (sub === "status") {
|
|
468
|
+
console.log("\n 🐝 MCP Status\n");
|
|
469
|
+
for (const s of mcpServers) {
|
|
470
|
+
console.log(` ${s.name}: ${s.status}`);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
console.log("\n Usage: hive mcp [list|status]\n");
|
|
475
|
+
}
|
|
476
|
+
console.log("");
|
|
477
|
+
}
|
|
478
|
+
function cmdRoles(args) {
|
|
479
|
+
const roles = [
|
|
480
|
+
{ name: "Planner", runtime: "hermes", caps: "planning, research" },
|
|
481
|
+
{ name: "Coder", runtime: "codex", caps: "coding, refactor" },
|
|
482
|
+
{ name: "Reviewer", runtime: "claude", caps: "review, architecture" },
|
|
483
|
+
{ name: "Architect", runtime: "claude", caps: "architecture, planning" },
|
|
484
|
+
{ name: "Researcher", runtime: "hermes", caps: "research, planning" },
|
|
485
|
+
];
|
|
486
|
+
if (args[1] === "info" && args[2]) {
|
|
487
|
+
return cmdRoleInfo(args);
|
|
488
|
+
}
|
|
489
|
+
console.log("\n 🐝 Roles\n");
|
|
490
|
+
for (const r of roles) {
|
|
491
|
+
console.log(` ${r.name.padEnd(15)} → ${r.runtime.padEnd(10)} (${r.caps})`);
|
|
492
|
+
}
|
|
493
|
+
console.log("\n Details: hive role info <name>\n");
|
|
494
|
+
}
|
|
495
|
+
function cmdRoleInfo(args) {
|
|
496
|
+
const roleName = (args[1] === "info" ? args[2] : args[1]) || "";
|
|
497
|
+
const roles = {
|
|
498
|
+
planner: { runtime: "hermes", caps: "planning, research", description: "Breaks tasks into steps, creates execution plans" },
|
|
499
|
+
coder: { runtime: "codex", caps: "coding, refactor", description: "Writes and refactors code" },
|
|
500
|
+
reviewer: { runtime: "claude", caps: "review, architecture", description: "Reviews code quality, finds issues" },
|
|
501
|
+
architect: { runtime: "claude", caps: "architecture, planning", description: "Designs system architecture" },
|
|
502
|
+
researcher: { runtime: "hermes", caps: "research, planning", description: "Researches topics, analyzes codebases" },
|
|
503
|
+
};
|
|
504
|
+
const role = roles[roleName.toLowerCase()];
|
|
505
|
+
if (role) {
|
|
506
|
+
console.log(`\n 🐝 Role: ${roleName}\n`);
|
|
507
|
+
console.log(` Runtime: ${role.runtime}`);
|
|
508
|
+
console.log(` Capabilities: ${role.caps}`);
|
|
509
|
+
console.log(` Description: ${role.description}\n`);
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
console.log(`\n Role "${roleName}" not found. Available: planner, coder, reviewer, architect, researcher\n`);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function cmdWorkflows() {
|
|
516
|
+
const workflows = [
|
|
517
|
+
{ name: "Single Agent", description: "One runtime does everything", topology: "simpleChain" },
|
|
518
|
+
{ name: "Code Review", description: "Execute + Review loop", topology: "simpleChain" },
|
|
519
|
+
{ name: "Research + Planning", description: "Plan → Execute → Review", topology: "planExecuteReview" },
|
|
520
|
+
{ name: "Architecture Design", description: "Architect → Implement → Review", topology: "planExecuteReview" },
|
|
521
|
+
{ name: "Full Team", description: "Planner → Coder → Reviewer → Architect", topology: "planExecuteReview" },
|
|
522
|
+
];
|
|
523
|
+
console.log("\n 🐝 Workflows\n");
|
|
524
|
+
for (const w of workflows) {
|
|
525
|
+
console.log(` ${w.name.padEnd(25)} ${w.description}`);
|
|
526
|
+
}
|
|
527
|
+
console.log("\n Agent Hive automatically selects the best workflow for your task.\n");
|
|
528
|
+
}
|
|
529
|
+
function cmdTools() {
|
|
530
|
+
console.log("\n 🐝 Tools\n");
|
|
531
|
+
console.log(" Available:");
|
|
532
|
+
console.log(" ✓ Files — Read, write, edit files");
|
|
533
|
+
console.log(" ✓ Terminal — Run shell commands");
|
|
534
|
+
console.log(" ✓ Memory — Project memory system");
|
|
535
|
+
console.log(" ✓ Planning — Task decomposition");
|
|
536
|
+
console.log("\n Experimental:");
|
|
537
|
+
console.log(" ⚡ Browser — Web page interaction");
|
|
538
|
+
console.log(" ⚡ Web Search — Internet search");
|
|
539
|
+
console.log("\n Coming Soon:");
|
|
540
|
+
console.log(" ○ Video — Video generation");
|
|
541
|
+
console.log(" ○ Discord — Discord integration");
|
|
542
|
+
console.log(" ○ Telegram — Telegram bot\n");
|
|
543
|
+
}
|
|
544
|
+
function cmdChannels(args) {
|
|
545
|
+
const sub = args[1];
|
|
546
|
+
const channels = [
|
|
547
|
+
{ name: "CLI", status: "active", description: "Terminal interface" },
|
|
548
|
+
{ name: "Discord", status: "coming-soon", description: "Discord bot" },
|
|
549
|
+
{ name: "Telegram", status: "coming-soon", description: "Telegram bot" },
|
|
550
|
+
{ name: "Feishu", status: "coming-soon", description: "Feishu/Lark bot" },
|
|
551
|
+
{ name: "WeChat", status: "coming-soon", description: "WeChat integration" },
|
|
552
|
+
];
|
|
553
|
+
if (sub === "list" || !sub) {
|
|
554
|
+
console.log("\n 🐝 Channels\n");
|
|
555
|
+
for (const c of channels) {
|
|
556
|
+
const icon = c.status === "active" ? "✓" : "○";
|
|
557
|
+
console.log(` ${icon} ${c.name.padEnd(15)} ${c.description.padEnd(25)} [${c.status}]`);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
else if (sub === "status") {
|
|
561
|
+
console.log("\n 🐝 Channel Status\n");
|
|
562
|
+
for (const c of channels) {
|
|
563
|
+
console.log(` ${c.name}: ${c.status}`);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
else {
|
|
567
|
+
console.log("\n Usage: hive channels [list|status]\n");
|
|
568
|
+
}
|
|
569
|
+
console.log("");
|
|
570
|
+
}
|
|
571
|
+
function cmdMemory(args) {
|
|
572
|
+
const mm = new MemoryManager_1.MemoryManager();
|
|
573
|
+
const sub = args[1];
|
|
574
|
+
if (sub === "list") {
|
|
575
|
+
const tasks = mm.listTaskMemories();
|
|
576
|
+
const projects = mm.listProjects();
|
|
577
|
+
console.log(`\n 🐝 Memory\n`);
|
|
578
|
+
console.log(` Tasks: ${tasks.length}`);
|
|
579
|
+
console.log(` Projects: ${projects.length}`);
|
|
580
|
+
tasks.forEach(t => console.log(` ${t.taskId}: ${t.goal.slice(0, 60)}`));
|
|
581
|
+
projects.forEach(p => console.log(` ${p.project}: ${p.techStack.join(", ")}`));
|
|
582
|
+
}
|
|
583
|
+
else if (sub === "show" && args[2]) {
|
|
584
|
+
const proj = mm.getProjectMemory(args[2]);
|
|
585
|
+
if (proj) {
|
|
586
|
+
console.log(`\n Project: ${proj.project}`);
|
|
587
|
+
console.log(` Stack: ${proj.techStack.join(", ")}`);
|
|
588
|
+
console.log(` Issues: ${proj.knownIssues.join(", ") || "none"}`);
|
|
589
|
+
console.log(` Patterns: ${proj.patterns.join(", ") || "none"}`);
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
console.log(` Project "${args[2]}" not found`);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
else if (sub === "search" && args[2]) {
|
|
596
|
+
const results = mm.searchMemories(args.slice(2).join(" "));
|
|
597
|
+
console.log(`\n 🐝 Search: "${args.slice(2).join(" ")}"\n`);
|
|
598
|
+
results.forEach(r => console.log(` ${r.type}/${r.name}: ${r.matches.join(", ")}`));
|
|
599
|
+
if (results.length === 0)
|
|
600
|
+
console.log(" No results");
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
console.log("\n Usage: hive memory [list|show <name>|search <query>]\n");
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
function cmdProject(args) {
|
|
607
|
+
const mm = new MemoryManager_1.MemoryManager();
|
|
608
|
+
const sub = args[1];
|
|
609
|
+
if (sub === "init" && args[2]) {
|
|
610
|
+
const name = args[2];
|
|
611
|
+
mm.saveProjectMemory({
|
|
612
|
+
project: name,
|
|
613
|
+
techStack: args.slice(3),
|
|
614
|
+
architecture: [],
|
|
615
|
+
knownIssues: [],
|
|
616
|
+
patterns: [],
|
|
617
|
+
createdAt: new Date().toISOString(),
|
|
618
|
+
updatedAt: new Date().toISOString(),
|
|
619
|
+
});
|
|
620
|
+
console.log(`\n ✓ Project "${name}" initialized\n`);
|
|
621
|
+
}
|
|
622
|
+
else if (sub === "list") {
|
|
623
|
+
const projects = mm.listProjects();
|
|
624
|
+
console.log(`\n 🐝 Projects\n`);
|
|
625
|
+
projects.forEach(p => console.log(` ${p.project}: ${p.techStack.join(", ") || "no stack"}`));
|
|
626
|
+
if (projects.length === 0)
|
|
627
|
+
console.log(" No projects. Run: hive project init <name>");
|
|
628
|
+
}
|
|
629
|
+
else if (sub === "info" && args[2]) {
|
|
630
|
+
const proj = mm.getProjectMemory(args[2]);
|
|
631
|
+
if (proj) {
|
|
632
|
+
console.log(`\n Project: ${proj.project}`);
|
|
633
|
+
console.log(` Stack: ${proj.techStack.join(", ")}`);
|
|
634
|
+
console.log(` Created: ${proj.createdAt}`);
|
|
635
|
+
}
|
|
636
|
+
else {
|
|
637
|
+
console.log(` Project "${args[2]}" not found`);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
console.log("\n Usage: hive project [init <name> [stack...]|list|info <name>]\n");
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
async function cmdSetup() {
|
|
645
|
+
const readline = require("readline");
|
|
646
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
647
|
+
const ask = (q) => new Promise(resolve => rl.question(q, resolve));
|
|
648
|
+
console.log("\n 🐝 Welcome to Agent Hive\n");
|
|
649
|
+
// Step 1: Choose provider
|
|
650
|
+
console.log(" Choose Provider:\n");
|
|
651
|
+
ProviderRegistry_1.PROVIDERS.forEach((p, i) => console.log(` ${i + 1}. ${p.name}`));
|
|
652
|
+
const choice = await ask("\n > ");
|
|
653
|
+
const providerIdx = parseInt(choice) - 1;
|
|
654
|
+
const provider = ProviderRegistry_1.PROVIDERS[providerIdx] || ProviderRegistry_1.PROVIDERS[0];
|
|
655
|
+
// Step 2: Base URL
|
|
656
|
+
const baseUrl = provider.baseUrl || await ask(` Base URL: `);
|
|
657
|
+
// Step 3: API Key
|
|
658
|
+
const apiKey = await ask(" API Key: ");
|
|
659
|
+
// Step 4: Auto-discover models
|
|
660
|
+
console.log("\n Connecting...");
|
|
661
|
+
let models = [];
|
|
662
|
+
try {
|
|
663
|
+
const res = await fetch(`${baseUrl}/models`, { headers: { "Authorization": `Bearer ${apiKey}` } });
|
|
664
|
+
if (res.ok) {
|
|
665
|
+
const data = await res.json();
|
|
666
|
+
models = (data.data || []).map((m) => m.id).slice(0, 10);
|
|
667
|
+
console.log(` ✓ Connected — ${models.length} models found`);
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
catch {
|
|
671
|
+
console.log(" ✗ Could not discover models");
|
|
672
|
+
}
|
|
673
|
+
// Step 5: Choose model
|
|
674
|
+
let model = provider.defaultModel;
|
|
675
|
+
if (models.length > 0) {
|
|
676
|
+
console.log("\n Choose Default Model:\n");
|
|
677
|
+
models.forEach((m, i) => console.log(` ${i + 1}. ${m}`));
|
|
678
|
+
const modelChoice = await ask("\n > ");
|
|
679
|
+
const modelIdx = parseInt(modelChoice) - 1;
|
|
680
|
+
if (modelIdx >= 0 && modelIdx < models.length)
|
|
681
|
+
model = models[modelIdx];
|
|
682
|
+
else if (modelChoice)
|
|
683
|
+
model = modelChoice;
|
|
684
|
+
}
|
|
685
|
+
rl.close();
|
|
686
|
+
// Save config
|
|
687
|
+
const configDir = path.resolve(process.cwd(), ".agent-hive");
|
|
688
|
+
fs.mkdirSync(configDir, { recursive: true });
|
|
689
|
+
fs.writeFileSync(path.join(configDir, "config.json"), JSON.stringify({ provider: provider.name.toLowerCase(), baseUrl, apiKey, model }, null, 2));
|
|
690
|
+
// Also write runtime.json for adapter compatibility
|
|
691
|
+
const runtimeConfig = {};
|
|
692
|
+
for (const name of ["codex", "claude", "hermes"]) {
|
|
693
|
+
runtimeConfig[name] = { binary: "openai-sdk", model, env: { OPENAI_API_KEY: apiKey, OPENAI_BASE_URL: baseUrl } };
|
|
694
|
+
}
|
|
695
|
+
fs.writeFileSync("runtime.json", JSON.stringify(runtimeConfig, null, 2));
|
|
696
|
+
console.log(`\n ✓ Setup complete!`);
|
|
697
|
+
console.log(` ✓ Provider: ${provider.name}`);
|
|
698
|
+
console.log(` ✓ Model: ${model}`);
|
|
699
|
+
console.log(`\n Try it: hive "Build a hello world function"\n`);
|
|
700
|
+
}
|
|
701
|
+
function cmdVersion() {
|
|
702
|
+
console.log(`
|
|
703
|
+
Agent Hive v${pkg.version}
|
|
704
|
+
TypeScript: 5.8.3
|
|
705
|
+
Node.js: ${process.version}
|
|
706
|
+
Platform: ${process.platform} ${process.arch}
|
|
707
|
+
`);
|
|
708
|
+
}
|
|
709
|
+
async function cmdDoctor(broker) {
|
|
710
|
+
console.log("\n 🐝 Agent Hive Doctor\n");
|
|
711
|
+
let allOk = true;
|
|
712
|
+
// 1. Config
|
|
713
|
+
const configPath = path.resolve(process.cwd(), ".agent-hive/config.json");
|
|
714
|
+
if (fs.existsSync(configPath)) {
|
|
715
|
+
console.log(" ✓ Config Found");
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
console.log(" ❌ Config Missing — run: hive setup");
|
|
719
|
+
allOk = false;
|
|
720
|
+
}
|
|
721
|
+
// 2. Runtime.json
|
|
722
|
+
const runtimePath = path.resolve(process.cwd(), "runtime.json");
|
|
723
|
+
if (fs.existsSync(runtimePath)) {
|
|
724
|
+
const runtime = JSON.parse(fs.readFileSync(runtimePath, "utf-8"));
|
|
725
|
+
for (const [name, cfg] of Object.entries(runtime)) {
|
|
726
|
+
const r = cfg;
|
|
727
|
+
const hasKey = r.env?.OPENAI_API_KEY || r.env?.ANTHROPIC_API_KEY;
|
|
728
|
+
if (!hasKey) {
|
|
729
|
+
console.log(` ❌ ${name}: API Key Missing`);
|
|
730
|
+
allOk = false;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
else {
|
|
735
|
+
console.log(" ❌ runtime.json Missing — run: hive setup");
|
|
736
|
+
allOk = false;
|
|
737
|
+
}
|
|
738
|
+
// 3. API Reachable
|
|
739
|
+
if (fs.existsSync(configPath)) {
|
|
740
|
+
const config = JSON.parse(fs.readFileSync(configPath, "utf-8"));
|
|
741
|
+
try {
|
|
742
|
+
const res = await fetch(`${config.baseUrl}/models`, { headers: { "Authorization": `Bearer ${config.apiKey}` }, signal: AbortSignal.timeout(5000) });
|
|
743
|
+
if (res.ok)
|
|
744
|
+
console.log(" ✓ API Reachable");
|
|
745
|
+
else {
|
|
746
|
+
console.log(` ❌ API Unreachable (${res.status})`);
|
|
747
|
+
allOk = false;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
catch {
|
|
751
|
+
console.log(" ❌ API Unreachable");
|
|
752
|
+
allOk = false;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
// 4. Directory structure
|
|
756
|
+
const base = path.resolve(process.cwd(), ".agent-hive");
|
|
757
|
+
const requiredDirs = ["tasks", "traces", "metrics", "reports"];
|
|
758
|
+
let dirOk = true;
|
|
759
|
+
for (const d of requiredDirs) {
|
|
760
|
+
if (!fs.existsSync(path.join(base, d))) {
|
|
761
|
+
dirOk = false;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
if (dirOk)
|
|
765
|
+
console.log(" ✓ Directory Structure OK");
|
|
766
|
+
else {
|
|
767
|
+
console.log(" ❌ Directory Missing — run: hive init");
|
|
768
|
+
allOk = false;
|
|
769
|
+
}
|
|
770
|
+
// 5. Runtime Detection
|
|
771
|
+
await cmdDetect(broker, []);
|
|
772
|
+
const installed = broker.registry.all().filter(e => e.installed);
|
|
773
|
+
if (installed.length > 0)
|
|
774
|
+
console.log(` ✓ ${installed.length} Runtime(s) Healthy`);
|
|
775
|
+
else {
|
|
776
|
+
console.log(" ❌ No Runtimes Detected");
|
|
777
|
+
allOk = false;
|
|
778
|
+
}
|
|
779
|
+
// Summary
|
|
780
|
+
console.log(`\n ${allOk ? "✓ All checks passed!" : "❌ Some checks failed — see above"}\n`);
|
|
781
|
+
}
|
|
782
|
+
async function cmdHealth(broker) {
|
|
783
|
+
console.log("\n Health Check\n");
|
|
784
|
+
await cmdDetect(broker, []);
|
|
785
|
+
console.log("\n Running health checks...\n");
|
|
786
|
+
for (const entry of broker.registry.all()) {
|
|
787
|
+
const ok = await broker.healthCheck(entry.name);
|
|
788
|
+
const status = ok ? "✓ healthy" : "✗ unhealthy";
|
|
789
|
+
console.log(` ${entry.name}: ${status}`);
|
|
790
|
+
}
|
|
791
|
+
console.log("");
|
|
792
|
+
}
|
|
793
|
+
function cmdDashboard() {
|
|
794
|
+
const { execSync } = require("child_process");
|
|
795
|
+
// generate-dashboard.js is a plain JS file in src/ (not compiled)
|
|
796
|
+
const script = path.resolve(__dirname, "../../src/commands/generate-dashboard.js");
|
|
797
|
+
try {
|
|
798
|
+
execSync(`node ${script}`, { stdio: "inherit" });
|
|
799
|
+
}
|
|
800
|
+
catch {
|
|
801
|
+
console.log(" ✗ Failed to generate dashboard");
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
function getArg(args, flag) {
|
|
805
|
+
const idx = args.indexOf(flag);
|
|
806
|
+
if (idx === -1 || idx + 1 >= args.length)
|
|
807
|
+
return undefined;
|
|
808
|
+
return args[idx + 1];
|
|
809
|
+
}
|
|
810
|
+
function printUsage() {
|
|
811
|
+
console.log(`
|
|
812
|
+
Agent Hive v${pkg.version}
|
|
813
|
+
|
|
814
|
+
Quick Start:
|
|
815
|
+
hive setup First-time setup
|
|
816
|
+
hive run --task "Build a landing page" Auto-select everything
|
|
817
|
+
|
|
818
|
+
Commands:
|
|
819
|
+
setup First-time setup wizard
|
|
820
|
+
init Initialize .agent-hive directory
|
|
821
|
+
detect [--dry-run] [--health] Scan for agent runtimes
|
|
822
|
+
agents List registered agents
|
|
823
|
+
link <from> <to> Link two agents
|
|
824
|
+
graph Show agent graph
|
|
825
|
+
graph-template <name> [runtimes] Apply topology template
|
|
826
|
+
graph-validate Validate graph structure
|
|
827
|
+
graph-migrate Migrate v1.1 registry to graph
|
|
828
|
+
task --instruction "..." Submit a task (manual)
|
|
829
|
+
--executor <name> Executor agent
|
|
830
|
+
--reviewer <name> Reviewer agent
|
|
831
|
+
--dir /path/to/project Working directory
|
|
832
|
+
--max-revision 3 Max revision attempts
|
|
833
|
+
run --task "..." Unified entry (auto everything)
|
|
834
|
+
--dir /path/to/project Working directory
|
|
835
|
+
--max-revision 3 Max revision attempts
|
|
836
|
+
--dry-run Use mock adapters
|
|
837
|
+
dashboard Generate visual dashboard
|
|
838
|
+
doctor Check system health
|
|
839
|
+
version Show version info
|
|
840
|
+
health Check runtime health
|
|
841
|
+
history [task-id] View revision history
|
|
842
|
+
`);
|
|
843
|
+
}
|
|
844
|
+
main().then(() => { process.exit(0); }).catch((err) => { console.error("Fatal:", err); process.exit(1); });
|
|
845
|
+
// Force exit — OpenAI SDK HTTP agent keeps event loop alive
|
|
846
|
+
// Use a long timeout so real API calls can complete
|
|
847
|
+
setTimeout(() => process.exit(0), 600_000);
|
|
848
|
+
//# sourceMappingURL=cli.js.map
|