@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,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Demo: Agent Hive v1.1 — Mock mode (architecture verification)
|
|
3
|
+
*/
|
|
4
|
+
import { Broker } from "../broker/Broker";
|
|
5
|
+
import { MockCodexAdapter } from "../adapters/MockCodexAdapter";
|
|
6
|
+
import { MockClaudeAdapter } from "../adapters/MockClaudeAdapter";
|
|
7
|
+
|
|
8
|
+
async function main() {
|
|
9
|
+
console.log("╔══════════════════════════════════════════╗");
|
|
10
|
+
console.log("║ Agent Hive v1.1 — Mock Demo ║");
|
|
11
|
+
console.log("╚══════════════════════════════════════════╝\n");
|
|
12
|
+
|
|
13
|
+
// ── Scenario 1: Direct pass ──
|
|
14
|
+
console.log("━━━ Scenario 1: Direct Pass ━━━\n");
|
|
15
|
+
{
|
|
16
|
+
const broker = new Broker();
|
|
17
|
+
await broker.registerAdapter(new MockCodexAdapter());
|
|
18
|
+
await broker.registerAdapter(new MockClaudeAdapter({ failCount: 0 }));
|
|
19
|
+
broker.registry.link("codex", "claude");
|
|
20
|
+
|
|
21
|
+
broker.submit({
|
|
22
|
+
instruction: "Optimize Navbar.vue scroll animation",
|
|
23
|
+
executor: "codex",
|
|
24
|
+
reviewer: "claude",
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
await broker.run();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
console.log("\n━━━ Scenario 2: Revision Loop (fail 2x then pass) ━━━\n");
|
|
31
|
+
{
|
|
32
|
+
const broker = new Broker();
|
|
33
|
+
await broker.registerAdapter(new MockCodexAdapter());
|
|
34
|
+
await broker.registerAdapter(new MockClaudeAdapter({ failCount: 2 }));
|
|
35
|
+
broker.registry.link("codex", "claude");
|
|
36
|
+
|
|
37
|
+
broker.submit({
|
|
38
|
+
instruction: "Refactor authentication module",
|
|
39
|
+
executor: "codex",
|
|
40
|
+
reviewer: "claude",
|
|
41
|
+
maxRevision: 3,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
await broker.run();
|
|
45
|
+
|
|
46
|
+
// Show revision history
|
|
47
|
+
const history = broker.history.get(broker.listTasks()[0]?.id || "");
|
|
48
|
+
if (history.length) {
|
|
49
|
+
console.log(" Revision History:");
|
|
50
|
+
for (const r of history) {
|
|
51
|
+
console.log(` #${r.attempt}: ${r.decision} (score=${r.score})`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
console.log("\n━━━ Scenario 3: Max Revision Exceeded ━━━\n");
|
|
57
|
+
{
|
|
58
|
+
const broker = new Broker();
|
|
59
|
+
await broker.registerAdapter(new MockCodexAdapter());
|
|
60
|
+
await broker.registerAdapter(new MockClaudeAdapter({ failCount: 10 }));
|
|
61
|
+
broker.registry.link("codex", "claude");
|
|
62
|
+
|
|
63
|
+
broker.submit({
|
|
64
|
+
instruction: "Implement impossible feature",
|
|
65
|
+
executor: "codex",
|
|
66
|
+
reviewer: "claude",
|
|
67
|
+
maxRevision: 2,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
await broker.run();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
console.log("╔══════════════════════════════════════════╗");
|
|
74
|
+
console.log("║ Demo Complete ║");
|
|
75
|
+
console.log("╚══════════════════════════════════════════╝");
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
main().catch((err) => {
|
|
79
|
+
console.error("Fatal:", err);
|
|
80
|
+
process.exit(1);
|
|
81
|
+
});
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime Intelligence Validation Experiment
|
|
3
|
+
*
|
|
4
|
+
* Compare: Fixed Routing vs Intelligent Routing
|
|
5
|
+
* 20 tasks each, measure successRate / latency / reviewScore
|
|
6
|
+
*/
|
|
7
|
+
import { Broker } from "../broker/Broker";
|
|
8
|
+
import { CapabilityDiscovery } from "../runtime/CapabilityDiscovery";
|
|
9
|
+
import { RuntimeScoreManager } from "../runtime/RuntimeScoreManager";
|
|
10
|
+
import { RuntimeSelector } from "../runtime/RuntimeSelector";
|
|
11
|
+
import { AgentAdapter, AgentResult, ReviewResult, Task } from "../types";
|
|
12
|
+
import * as fs from "fs";
|
|
13
|
+
|
|
14
|
+
// ─── Real-ish Mock Adapters ──────────────────────────
|
|
15
|
+
// Each has different strengths to make the comparison meaningful
|
|
16
|
+
|
|
17
|
+
class CodexMock implements AgentAdapter {
|
|
18
|
+
name = "codex";
|
|
19
|
+
role = "developer" as const;
|
|
20
|
+
capabilities = ["coding", "refactor"];
|
|
21
|
+
async detect() { return true; }
|
|
22
|
+
async health() { return true; }
|
|
23
|
+
async execute(task: Task, instruction?: string): Promise<AgentResult> {
|
|
24
|
+
const prompt = instruction || task.instruction;
|
|
25
|
+
// Good at coding/refactor, mediocre at review/planning
|
|
26
|
+
const isStrong = task.instruction.includes("code") || task.instruction.includes("refactor") || task.instruction.includes("function") || task.instruction.includes("API");
|
|
27
|
+
await sleep(isStrong ? 50 : 150);
|
|
28
|
+
return {
|
|
29
|
+
success: true,
|
|
30
|
+
output: isStrong
|
|
31
|
+
? `[Codex]高质量完成: ${prompt}\n代码结构清晰,测试覆盖完整。`
|
|
32
|
+
: `[Codex]基本完成: ${prompt}\n代码可用但不够优雅。`,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
class ClaudeMock implements AgentAdapter {
|
|
38
|
+
name = "claude";
|
|
39
|
+
role = "reviewer" as const;
|
|
40
|
+
capabilities = ["review", "architecture", "coding"];
|
|
41
|
+
async detect() { return true; }
|
|
42
|
+
async health() { return true; }
|
|
43
|
+
async execute(task: Task, instruction?: string): Promise<AgentResult> {
|
|
44
|
+
const prompt = instruction || task.instruction;
|
|
45
|
+
// Good at review/architecture, decent at coding
|
|
46
|
+
const isStrong = task.instruction.includes("review") || task.instruction.includes("审核") || task.instruction.includes("架构") || task.instruction.includes("design");
|
|
47
|
+
await sleep(isStrong ? 80 : 120);
|
|
48
|
+
return {
|
|
49
|
+
success: true,
|
|
50
|
+
output: isStrong
|
|
51
|
+
? `[Claude]高质量完成: ${prompt}\n分析深入,建议具体。`
|
|
52
|
+
: `[Claude]完成: ${prompt}\n质量合格。`,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
async review(task: Task): Promise<ReviewResult> {
|
|
56
|
+
await sleep(40);
|
|
57
|
+
// Reviews are thorough
|
|
58
|
+
return { decision: "PASS", score: 88, issues: [] };
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
class HermesMock implements AgentAdapter {
|
|
63
|
+
name = "hermes";
|
|
64
|
+
role = "planner" as const;
|
|
65
|
+
capabilities = ["planning", "research"];
|
|
66
|
+
async detect() { return true; }
|
|
67
|
+
async health() { return true; }
|
|
68
|
+
async execute(task: Task, instruction?: string): Promise<AgentResult> {
|
|
69
|
+
const prompt = instruction || task.instruction;
|
|
70
|
+
// Good at planning/research, weak at coding
|
|
71
|
+
const isStrong = task.instruction.includes("plan") || task.instruction.includes("设计") || task.instruction.includes("research") || task.instruction.includes("分析");
|
|
72
|
+
await sleep(isStrong ? 30 : 200);
|
|
73
|
+
return {
|
|
74
|
+
success: Math.random() > (isStrong ? 0.02 : 0.15), // Higher failure rate for non-strength tasks
|
|
75
|
+
output: isStrong
|
|
76
|
+
? `[Hermes]高质量完成: ${prompt}\n方案清晰,考虑全面。`
|
|
77
|
+
: `[Hermes]勉强完成: ${prompt}\n需要进一步优化。`,
|
|
78
|
+
error: isStrong ? undefined : "Output quality below threshold",
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
async review(task: Task): Promise<ReviewResult> {
|
|
82
|
+
await sleep(30);
|
|
83
|
+
return { decision: "PASS", score: 75, issues: [] };
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ─── Task definitions ────────────────────────────────
|
|
88
|
+
|
|
89
|
+
const TASKS = [
|
|
90
|
+
{ instruction: "实现一个用户登录API接口", type: "coding" },
|
|
91
|
+
{ instruction: "实现一个数据导出功能", type: "coding" },
|
|
92
|
+
{ instruction: "实现一个文件上传模块", type: "coding" },
|
|
93
|
+
{ instruction: "实现一个WebSocket消息推送", type: "coding" },
|
|
94
|
+
{ instruction: "重构数据库连接池代码", type: "refactor" },
|
|
95
|
+
{ instruction: "重构错误处理中间件", type: "refactor" },
|
|
96
|
+
{ instruction: "重构配置加载逻辑", type: "refactor" },
|
|
97
|
+
{ instruction: "重构日志输出模块", type: "refactor" },
|
|
98
|
+
{ instruction: "审核以下代码的安全性", type: "review" },
|
|
99
|
+
{ instruction: "审核PR中的性能问题", type: "review" },
|
|
100
|
+
{ instruction: "审核API接口的错误处理", type: "review" },
|
|
101
|
+
{ instruction: "审核数据库查询的合理性", type: "review" },
|
|
102
|
+
{ instruction: "设计微服务架构方案", type: "planning" },
|
|
103
|
+
{ instruction: "设计缓存策略方案", type: "planning" },
|
|
104
|
+
{ instruction: "设计CI/CD流水线", type: "planning" },
|
|
105
|
+
{ instruction: "分析系统瓶颈并给出优化方案", type: "planning" },
|
|
106
|
+
{ instruction: "实现一个CRUD自动生成器", type: "coding" },
|
|
107
|
+
{ instruction: "实现一个权限校验中间件", type: "coding" },
|
|
108
|
+
{ instruction: "重构前端状态管理代码", type: "refactor" },
|
|
109
|
+
{ instruction: "设计API版本管理方案", type: "planning" },
|
|
110
|
+
];
|
|
111
|
+
|
|
112
|
+
// ─── Experiment ──────────────────────────────────────
|
|
113
|
+
|
|
114
|
+
interface RunResult {
|
|
115
|
+
taskType: string;
|
|
116
|
+
runtime: string;
|
|
117
|
+
success: boolean;
|
|
118
|
+
latencyMs: number;
|
|
119
|
+
reviewScore: number;
|
|
120
|
+
selectedBy: "fixed" | "intelligence";
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
async function runExperiment(): Promise<void> {
|
|
124
|
+
console.log("╔══════════════════════════════════════════════════╗");
|
|
125
|
+
console.log("║ Runtime Intelligence Validation Experiment ║");
|
|
126
|
+
console.log("╚══════════════════════════════════════════════════╝\n");
|
|
127
|
+
|
|
128
|
+
// Clean state
|
|
129
|
+
try { fs.rmSync(".agent-hive", { recursive: true, force: true }); } catch {}
|
|
130
|
+
fs.mkdirSync(".agent-hive", { recursive: true });
|
|
131
|
+
|
|
132
|
+
const codex = new CodexMock();
|
|
133
|
+
const claude = new ClaudeMock();
|
|
134
|
+
const hermes = new HermesMock();
|
|
135
|
+
|
|
136
|
+
const results: { fixed: RunResult[]; intelligence: RunResult[] } = { fixed: [], intelligence: [] };
|
|
137
|
+
|
|
138
|
+
// ── Experiment A: Fixed Routing (everything through Claude) ──
|
|
139
|
+
console.log("━━━ 实验A: 固定路由 (全部走 Claude) ━━━\n");
|
|
140
|
+
|
|
141
|
+
for (const task of TASKS) {
|
|
142
|
+
const start = Date.now();
|
|
143
|
+
const result = await claude.execute({
|
|
144
|
+
id: `fixed-${Date.now()}`,
|
|
145
|
+
instruction: task.instruction,
|
|
146
|
+
executor: "claude",
|
|
147
|
+
reviewer: "claude",
|
|
148
|
+
status: "EXECUTING",
|
|
149
|
+
revisionCount: 0,
|
|
150
|
+
maxRevision: 3,
|
|
151
|
+
timeout: 60000,
|
|
152
|
+
workingDirectory: "/tmp",
|
|
153
|
+
createdAt: Date.now(),
|
|
154
|
+
updatedAt: Date.now(),
|
|
155
|
+
});
|
|
156
|
+
const latency = Date.now() - start;
|
|
157
|
+
|
|
158
|
+
let reviewScore = 0;
|
|
159
|
+
if (result.success) {
|
|
160
|
+
const review = await claude.review!({
|
|
161
|
+
id: "review",
|
|
162
|
+
instruction: "",
|
|
163
|
+
executor: "claude",
|
|
164
|
+
reviewer: "claude",
|
|
165
|
+
status: "REVIEWING",
|
|
166
|
+
revisionCount: 0,
|
|
167
|
+
maxRevision: 3,
|
|
168
|
+
timeout: 60000,
|
|
169
|
+
workingDirectory: "/tmp",
|
|
170
|
+
createdAt: Date.now(),
|
|
171
|
+
updatedAt: Date.now(),
|
|
172
|
+
result: result.output,
|
|
173
|
+
});
|
|
174
|
+
reviewScore = review.score;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
results.fixed.push({
|
|
178
|
+
taskType: task.type,
|
|
179
|
+
runtime: "claude",
|
|
180
|
+
success: result.success,
|
|
181
|
+
latencyMs: latency,
|
|
182
|
+
reviewScore,
|
|
183
|
+
selectedBy: "fixed",
|
|
184
|
+
});
|
|
185
|
+
process.stdout.write(` ${task.type.padEnd(10)} → claude ${result.success ? "✓" : "✗"} ${latency}ms score=${reviewScore}\n`);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// ── Experiment B: Intelligent Routing ──
|
|
189
|
+
console.log("\n━━━ 实验B: 智能路由 (RuntimeSelector) ━━━\n");
|
|
190
|
+
|
|
191
|
+
// Set up intelligence
|
|
192
|
+
const discovery = new CapabilityDiscovery();
|
|
193
|
+
const scoreManager = new RuntimeScoreManager();
|
|
194
|
+
const broker = new Broker();
|
|
195
|
+
|
|
196
|
+
await broker.registerAdapter(codex);
|
|
197
|
+
await broker.registerAdapter(claude);
|
|
198
|
+
await broker.registerAdapter(hermes);
|
|
199
|
+
|
|
200
|
+
await discovery.discover(codex);
|
|
201
|
+
await discovery.discover(claude);
|
|
202
|
+
await discovery.discover(hermes);
|
|
203
|
+
|
|
204
|
+
// Seed some initial performance data
|
|
205
|
+
scoreManager.record({ runtimeId: "codex", role: "executor", success: true, latencyMs: 1500, reviewScore: 90 });
|
|
206
|
+
scoreManager.record({ runtimeId: "claude", role: "executor", success: true, latencyMs: 3000, reviewScore: 88 });
|
|
207
|
+
scoreManager.record({ runtimeId: "hermes", role: "executor", success: true, latencyMs: 1000, reviewScore: 75 });
|
|
208
|
+
|
|
209
|
+
const selector = new RuntimeSelector(discovery, scoreManager, broker.registry);
|
|
210
|
+
|
|
211
|
+
for (const task of TASKS) {
|
|
212
|
+
const selection = selector.select({ taskType: task.type });
|
|
213
|
+
const runtimeName = selection?.runtimeId || "claude";
|
|
214
|
+
const adapter = runtimeName === "codex" ? codex : runtimeName === "hermes" ? hermes : claude;
|
|
215
|
+
|
|
216
|
+
const start = Date.now();
|
|
217
|
+
const result = await adapter.execute({
|
|
218
|
+
id: `intel-${Date.now()}`,
|
|
219
|
+
instruction: task.instruction,
|
|
220
|
+
executor: runtimeName,
|
|
221
|
+
reviewer: "claude",
|
|
222
|
+
status: "EXECUTING",
|
|
223
|
+
revisionCount: 0,
|
|
224
|
+
maxRevision: 3,
|
|
225
|
+
timeout: 60000,
|
|
226
|
+
workingDirectory: "/tmp",
|
|
227
|
+
createdAt: Date.now(),
|
|
228
|
+
updatedAt: Date.now(),
|
|
229
|
+
});
|
|
230
|
+
const latency = Date.now() - start;
|
|
231
|
+
|
|
232
|
+
let reviewScore = 0;
|
|
233
|
+
if (result.success) {
|
|
234
|
+
const reviewer = claude;
|
|
235
|
+
const review = await reviewer.review!({
|
|
236
|
+
id: "review",
|
|
237
|
+
instruction: "",
|
|
238
|
+
executor: runtimeName,
|
|
239
|
+
reviewer: "claude",
|
|
240
|
+
status: "REVIEWING",
|
|
241
|
+
revisionCount: 0,
|
|
242
|
+
maxRevision: 3,
|
|
243
|
+
timeout: 60000,
|
|
244
|
+
workingDirectory: "/tmp",
|
|
245
|
+
createdAt: Date.now(),
|
|
246
|
+
updatedAt: Date.now(),
|
|
247
|
+
result: result.output,
|
|
248
|
+
});
|
|
249
|
+
reviewScore = review.score;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Record for score learning
|
|
253
|
+
scoreManager.record({
|
|
254
|
+
runtimeId: runtimeName,
|
|
255
|
+
role: "executor",
|
|
256
|
+
success: result.success,
|
|
257
|
+
latencyMs: latency,
|
|
258
|
+
reviewScore,
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
results.intelligence.push({
|
|
262
|
+
taskType: task.type,
|
|
263
|
+
runtime: runtimeName,
|
|
264
|
+
success: result.success,
|
|
265
|
+
latencyMs: latency,
|
|
266
|
+
reviewScore,
|
|
267
|
+
selectedBy: "intelligence",
|
|
268
|
+
});
|
|
269
|
+
process.stdout.write(` ${task.type.padEnd(10)} → ${runtimeName.padEnd(7)} ${result.success ? "✓" : "✗"} ${latency}ms score=${reviewScore}\n`);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// ── Analysis ──
|
|
273
|
+
console.log("\n╔══════════════════════════════════════════════════╗");
|
|
274
|
+
console.log("║ 对比分析 ║");
|
|
275
|
+
console.log("╚══════════════════════════════════════════════════╝\n");
|
|
276
|
+
|
|
277
|
+
const fixedStats = calcStats(results.fixed);
|
|
278
|
+
const intelStats = calcStats(results.intelligence);
|
|
279
|
+
|
|
280
|
+
console.log(" 指标 固定路由 智能路由 提升");
|
|
281
|
+
console.log(" ─────────────────────────────────────────────");
|
|
282
|
+
console.log(` 成功率 ${fixedStats.successRate.toFixed(1)}% ${intelStats.successRate.toFixed(1)}% ${formatDiff(fixedStats.successRate, intelStats.successRate)}`);
|
|
283
|
+
console.log(` 平均延迟 ${fixedStats.avgLatency.toFixed(0)}ms ${intelStats.avgLatency.toFixed(0)}ms ${formatDiff(fixedStats.avgLatency, intelStats.avgLatency, true)}`);
|
|
284
|
+
console.log(` 平均审核分 ${fixedStats.avgReviewScore.toFixed(1)} ${intelStats.avgReviewScore.toFixed(1)} ${formatDiff(fixedStats.avgReviewScore, intelStats.avgReviewScore)}`);
|
|
285
|
+
|
|
286
|
+
// Per-type breakdown
|
|
287
|
+
console.log("\n 按任务类型:");
|
|
288
|
+
console.log(" 类型 固定路由(分) 智能路由(分) 提升");
|
|
289
|
+
console.log(" ─────────────────────────────────────────────");
|
|
290
|
+
|
|
291
|
+
for (const type of ["coding", "refactor", "review", "planning"]) {
|
|
292
|
+
const fixedType = calcStats(results.fixed.filter(r => r.taskType === type));
|
|
293
|
+
const intelType = calcStats(results.intelligence.filter(r => r.taskType === type));
|
|
294
|
+
console.log(` ${type.padEnd(13)} ${fixedType.avgReviewScore.toFixed(1).padStart(10)} ${intelType.avgReviewScore.toFixed(1).padStart(10)} ${formatDiff(fixedType.avgReviewScore, intelType.avgReviewScore)}`);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// Runtime distribution for intelligent routing
|
|
298
|
+
console.log("\n 智能路由 Runtime 分布:");
|
|
299
|
+
const dist: Record<string, number> = {};
|
|
300
|
+
for (const r of results.intelligence) {
|
|
301
|
+
dist[r.runtime] = (dist[r.runtime] || 0) + 1;
|
|
302
|
+
}
|
|
303
|
+
for (const [name, count] of Object.entries(dist)) {
|
|
304
|
+
console.log(` ${name}: ${count}/20 tasks (${(count/20*100).toFixed(0)}%)`);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Verdict
|
|
308
|
+
const compositeImprovement = (
|
|
309
|
+
(intelStats.successRate - fixedStats.successRate) / Math.max(fixedStats.successRate, 1) * 0.4 +
|
|
310
|
+
(fixedStats.avgLatency - intelStats.avgLatency) / Math.max(fixedStats.avgLatency, 1) * 0.3 +
|
|
311
|
+
(intelStats.avgReviewScore - fixedStats.avgReviewScore) / Math.max(fixedStats.avgReviewScore, 1) * 0.3
|
|
312
|
+
) * 100;
|
|
313
|
+
|
|
314
|
+
console.log(`\n 综合提升: ${compositeImprovement.toFixed(1)}%`);
|
|
315
|
+
|
|
316
|
+
if (compositeImprovement > 20) {
|
|
317
|
+
console.log(" 结论: 提升明显 (>20%),建议进入 v2.2");
|
|
318
|
+
} else if (compositeImprovement > 10) {
|
|
319
|
+
console.log(" 结论: 提升中等 (10-20%),可选择性优化");
|
|
320
|
+
} else {
|
|
321
|
+
console.log(" 结论: 提升不明显 (<10%),停止继续开发 Runtime Intelligence");
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// Save results
|
|
325
|
+
fs.writeFileSync("docs/experiment-results.json", JSON.stringify({
|
|
326
|
+
timestamp: new Date().toISOString(),
|
|
327
|
+
fixed: fixedStats,
|
|
328
|
+
intelligence: intelStats,
|
|
329
|
+
compositeImprovement,
|
|
330
|
+
taskCount: TASKS.length,
|
|
331
|
+
details: results,
|
|
332
|
+
}, null, 2));
|
|
333
|
+
|
|
334
|
+
console.log("\n 结果已保存: docs/experiment-results.json");
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
function calcStats(results: RunResult[]) {
|
|
338
|
+
const successCount = results.filter(r => r.success).length;
|
|
339
|
+
const totalLatency = results.reduce((sum, r) => sum + r.latencyMs, 0);
|
|
340
|
+
const totalScore = results.reduce((sum, r) => sum + r.reviewScore, 0);
|
|
341
|
+
return {
|
|
342
|
+
successRate: results.length > 0 ? successCount / results.length * 100 : 0,
|
|
343
|
+
avgLatency: results.length > 0 ? totalLatency / results.length : 0,
|
|
344
|
+
avgReviewScore: results.length > 0 ? totalScore / results.length : 0,
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
function formatDiff(fixed: number, intel: number, lowerIsBetter = false): string {
|
|
349
|
+
const diff = lowerIsBetter ? fixed - intel : intel - fixed;
|
|
350
|
+
const pct = fixed !== 0 ? (diff / Math.abs(fixed) * 100) : 0;
|
|
351
|
+
const sign = diff >= 0 ? "+" : "";
|
|
352
|
+
const arrow = diff > 0 ? "↑" : diff < 0 ? "↓" : "→";
|
|
353
|
+
return `${arrow} ${sign}${pct.toFixed(1)}%`;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
function sleep(ms: number): Promise<void> {
|
|
357
|
+
return new Promise(r => setTimeout(r, ms));
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
runExperiment().catch(err => { console.error("Fatal:", err); process.exit(1); });
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard Generator
|
|
3
|
+
*
|
|
4
|
+
* Reads .agent-hive/ data and generates a static HTML dashboard.
|
|
5
|
+
* Usage: node generate-dashboard.js > dashboard/index.html
|
|
6
|
+
*/
|
|
7
|
+
const fs = require("fs");
|
|
8
|
+
const path = require("path");
|
|
9
|
+
|
|
10
|
+
const BASE = path.resolve(__dirname, "../.agent-hive");
|
|
11
|
+
const REPORTS = path.resolve(__dirname, "../reports");
|
|
12
|
+
|
|
13
|
+
function loadJSON(filepath) {
|
|
14
|
+
try { return JSON.parse(fs.readFileSync(filepath, "utf-8")); } catch { return null; }
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function main() {
|
|
18
|
+
const runtimeMetrics = loadJSON(path.join(BASE, "metrics/runtime.json")) || {};
|
|
19
|
+
const benchmark = loadJSON(path.join(BASE, "benchmark/runtime-benchmark.json")) || {};
|
|
20
|
+
const validation = loadJSON(path.join(REPORTS, "validation-metrics.json")) || {};
|
|
21
|
+
|
|
22
|
+
// Load traces
|
|
23
|
+
const tracesDir = path.join(BASE, "traces");
|
|
24
|
+
const traces = [];
|
|
25
|
+
if (fs.existsSync(tracesDir)) {
|
|
26
|
+
for (const f of fs.readdirSync(tracesDir).filter(f => f.endsWith(".json"))) {
|
|
27
|
+
traces.push(loadJSON(path.join(tracesDir, f)));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const data = { runtimeMetrics, benchmark, validation, traces };
|
|
32
|
+
|
|
33
|
+
const html = `<!DOCTYPE html>
|
|
34
|
+
<html lang="en">
|
|
35
|
+
<head>
|
|
36
|
+
<meta charset="UTF-8">
|
|
37
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
38
|
+
<title>Agent Hive Dashboard</title>
|
|
39
|
+
<style>
|
|
40
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
41
|
+
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0f1117; color: #e4e4e7; min-height: 100vh; }
|
|
42
|
+
.header { background: linear-gradient(135deg, #1a1b2e 0%, #16213e 100%); padding: 24px 32px; border-bottom: 1px solid #2a2d3e; }
|
|
43
|
+
.header h1 { font-size: 24px; font-weight: 700; background: linear-gradient(90deg, #6366f1, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
|
|
44
|
+
.header p { color: #71717a; font-size: 14px; margin-top: 4px; }
|
|
45
|
+
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
|
|
46
|
+
.grid { display: grid; gap: 20px; }
|
|
47
|
+
.grid-2 { grid-template-columns: repeat(2, 1fr); }
|
|
48
|
+
.grid-3 { grid-template-columns: repeat(3, 1fr); }
|
|
49
|
+
.grid-4 { grid-template-columns: repeat(4, 1fr); }
|
|
50
|
+
.card { background: #1a1b2e; border: 1px solid #2a2d3e; border-radius: 12px; padding: 20px; }
|
|
51
|
+
.card h3 { font-size: 14px; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
|
|
52
|
+
.card .value { font-size: 32px; font-weight: 700; color: #fff; }
|
|
53
|
+
.card .sub { font-size: 13px; color: #52525b; margin-top: 4px; }
|
|
54
|
+
.section { margin-top: 32px; }
|
|
55
|
+
.section h2 { font-size: 18px; font-weight: 600; color: #e4e4e7; margin-bottom: 16px; }
|
|
56
|
+
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 0 8px; }
|
|
57
|
+
.bar-group { display: flex; flex-direction: column; align-items: center; flex: 1; }
|
|
58
|
+
.bar { width: 100%; border-radius: 6px 6px 0 0; transition: height 0.5s ease; min-height: 4px; }
|
|
59
|
+
.bar-label { font-size: 11px; color: #71717a; margin-top: 8px; text-align: center; }
|
|
60
|
+
.bar-value { font-size: 12px; color: #a1a1aa; margin-bottom: 4px; font-weight: 600; }
|
|
61
|
+
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
|
|
62
|
+
.badge-green { background: #064e3b; color: #34d399; }
|
|
63
|
+
.badge-yellow { background: #713f12; color: #fbbf24; }
|
|
64
|
+
.badge-red { background: #7f1d1d; color: #f87171; }
|
|
65
|
+
.badge-blue { background: #1e3a5f; color: #60a5fa; }
|
|
66
|
+
table { width: 100%; border-collapse: collapse; }
|
|
67
|
+
th { text-align: left; font-size: 12px; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 12px; border-bottom: 1px solid #2a2d3e; }
|
|
68
|
+
td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid #1f2033; }
|
|
69
|
+
.timeline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
|
|
70
|
+
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; }
|
|
71
|
+
.timeline-line { width: 20px; height: 2px; background: #2a2d3e; }
|
|
72
|
+
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
|
|
73
|
+
.status-green { background: #34d399; }
|
|
74
|
+
.status-yellow { background: #fbbf24; }
|
|
75
|
+
.status-red { background: #f87171; }
|
|
76
|
+
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
|
|
77
|
+
</style>
|
|
78
|
+
</head>
|
|
79
|
+
<body>
|
|
80
|
+
<div class="header">
|
|
81
|
+
<h1>🦞 Agent Hive Dashboard</h1>
|
|
82
|
+
<p>Multi-Runtime AI Orchestration — v3.0</p>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="container">
|
|
85
|
+
|
|
86
|
+
<!-- Summary Cards -->
|
|
87
|
+
<div class="grid grid-4">
|
|
88
|
+
<div class="card">
|
|
89
|
+
<h3>Runtimes</h3>
|
|
90
|
+
<div class="value">${Object.keys(benchmark).length}</div>
|
|
91
|
+
<div class="sub">${Object.keys(benchmark).map(r => r).join(", ")}</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="card">
|
|
94
|
+
<h3>Total Tasks</h3>
|
|
95
|
+
<div class="value">${validation.totalTasks || traces.length}</div>
|
|
96
|
+
<div class="sub">${validation.successRate || "100%"} success rate</div>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="card">
|
|
99
|
+
<h3>Avg Score</h3>
|
|
100
|
+
<div class="value">${validation.averageReviewScore || "N/A"}</div>
|
|
101
|
+
<div class="sub">Review score</div>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="card">
|
|
104
|
+
<h3>Traces</h3>
|
|
105
|
+
<div class="value">${traces.length}</div>
|
|
106
|
+
<div class="sub">Recorded executions</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<!-- Runtime Ranking -->
|
|
111
|
+
<div class="section">
|
|
112
|
+
<h2>Runtime Ranking</h2>
|
|
113
|
+
<div class="grid grid-2">
|
|
114
|
+
<div class="card">
|
|
115
|
+
<h3>Coding</h3>
|
|
116
|
+
<div class="bar-chart">
|
|
117
|
+
${Object.entries(benchmark).map(([name, r]) => `
|
|
118
|
+
<div class="bar-group">
|
|
119
|
+
<div class="bar-value">${r.coding}</div>
|
|
120
|
+
<div class="bar" style="height: ${r.coding * 1.5}px; background: linear-gradient(180deg, #6366f1, #4f46e5);"></div>
|
|
121
|
+
<div class="bar-label">${name}</div>
|
|
122
|
+
</div>`).join("")}
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="card">
|
|
126
|
+
<h3>Review</h3>
|
|
127
|
+
<div class="bar-chart">
|
|
128
|
+
${Object.entries(benchmark).map(([name, r]) => `
|
|
129
|
+
<div class="bar-group">
|
|
130
|
+
<div class="bar-value">${r.review}</div>
|
|
131
|
+
<div class="bar" style="height: ${r.review * 1.5}px; background: linear-gradient(180deg, #8b5cf6, #7c3aed);"></div>
|
|
132
|
+
<div class="bar-label">${name}</div>
|
|
133
|
+
</div>`).join("")}
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="card">
|
|
137
|
+
<h3>Planning</h3>
|
|
138
|
+
<div class="bar-chart">
|
|
139
|
+
${Object.entries(benchmark).map(([name, r]) => `
|
|
140
|
+
<div class="bar-group">
|
|
141
|
+
<div class="bar-value">${r.planning}</div>
|
|
142
|
+
<div class="bar" style="height: ${r.planning * 1.5}px; background: linear-gradient(180deg, #a78bfa, #8b5cf6);"></div>
|
|
143
|
+
<div class="bar-label">${name}</div>
|
|
144
|
+
</div>`).join("")}
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="card">
|
|
148
|
+
<h3>Reasoning</h3>
|
|
149
|
+
<div class="bar-chart">
|
|
150
|
+
${Object.entries(benchmark).map(([name, r]) => `
|
|
151
|
+
<div class="bar-group">
|
|
152
|
+
<div class="bar-value">${r.reasoning}</div>
|
|
153
|
+
<div class="bar" style="height: ${r.reasoning * 1.5}px; background: linear-gradient(180deg, #c084fc, #a855f7);"></div>
|
|
154
|
+
<div class="bar-label">${name}</div>
|
|
155
|
+
</div>`).join("")}
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<!-- Runtime Status -->
|
|
162
|
+
<div class="section">
|
|
163
|
+
<h2>Runtime Status</h2>
|
|
164
|
+
<div class="card">
|
|
165
|
+
<table>
|
|
166
|
+
<tr><th>Runtime</th><th>Tasks</th><th>Success</th><th>Avg Latency</th><th>Avg Score</th><th>Status</th></tr>
|
|
167
|
+
${Object.entries(runtimeMetrics).map(([name, r]) => `
|
|
168
|
+
<tr>
|
|
169
|
+
<td><strong>${name}</strong></td>
|
|
170
|
+
<td>${r.taskCount}</td>
|
|
171
|
+
<td>${(r.successRate * 100).toFixed(0)}%</td>
|
|
172
|
+
<td>${(r.avgLatency * 1000).toFixed(0)}ms</td>
|
|
173
|
+
<td>${r.avgReviewScore.toFixed(1)}</td>
|
|
174
|
+
<td><span class="status-dot status-green"></span>Online</td>
|
|
175
|
+
</tr>`).join("")}
|
|
176
|
+
</table>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
|
|
180
|
+
<!-- Validation Results -->
|
|
181
|
+
${validation.tasks ? `
|
|
182
|
+
<div class="section">
|
|
183
|
+
<h2>Validation Results</h2>
|
|
184
|
+
<div class="card">
|
|
185
|
+
<table>
|
|
186
|
+
<tr><th>Task</th><th>Executor</th><th>Reviewer</th><th>Status</th><th>Score</th><th>Revisions</th><th>Duration</th></tr>
|
|
187
|
+
${validation.tasks.map(t => `
|
|
188
|
+
<tr>
|
|
189
|
+
<td><strong>${t.name}</strong></td>
|
|
190
|
+
<td>${t.executor}</td>
|
|
191
|
+
<td>${t.reviewer}</td>
|
|
192
|
+
<td><span class="badge ${t.status === 'COMPLETED' ? 'badge-green' : 'badge-red'}">${t.status}</span></td>
|
|
193
|
+
<td>${t.score}</td>
|
|
194
|
+
<td>${t.revisionCount}</td>
|
|
195
|
+
<td>${t.duration}</td>
|
|
196
|
+
</tr>`).join("")}
|
|
197
|
+
</table>
|
|
198
|
+
</div>
|
|
199
|
+
</div>` : ""}
|
|
200
|
+
|
|
201
|
+
<!-- Recent Traces -->
|
|
202
|
+
<div class="section">
|
|
203
|
+
<h2>Recent Traces (${traces.length})</h2>
|
|
204
|
+
<div class="card">
|
|
205
|
+
<table>
|
|
206
|
+
<tr><th>Task ID</th><th>Status</th><th>Events</th></tr>
|
|
207
|
+
${traces.slice(0, 20).map(t => `
|
|
208
|
+
<tr>
|
|
209
|
+
<td><strong>${t.taskId}</strong></td>
|
|
210
|
+
<td><span class="badge ${t.status === 'COMPLETED' ? 'badge-green' : t.status === 'FAILED' ? 'badge-red' : 'badge-yellow'}">${t.status}</span></td>
|
|
211
|
+
<td>${(t.events || []).length} events</td>
|
|
212
|
+
</tr>`).join("")}
|
|
213
|
+
</table>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
</div>
|
|
218
|
+
<script>
|
|
219
|
+
// Animate bars on load
|
|
220
|
+
document.querySelectorAll('.bar').forEach(bar => {
|
|
221
|
+
const h = bar.style.height;
|
|
222
|
+
bar.style.height = '4px';
|
|
223
|
+
setTimeout(() => { bar.style.height = h; }, 100);
|
|
224
|
+
});
|
|
225
|
+
</script>
|
|
226
|
+
</body>
|
|
227
|
+
</html>`;
|
|
228
|
+
|
|
229
|
+
const outDir = path.resolve(__dirname, "../../dashboard");
|
|
230
|
+
fs.mkdirSync(outDir, { recursive: true });
|
|
231
|
+
fs.writeFileSync(path.join(outDir, "index.html"), html);
|
|
232
|
+
console.log("Dashboard generated: dashboard/index.html");
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
main();
|