@claude-flow/cli 3.10.36 → 3.10.37
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/.claude/agents/analysis/analyze-code-quality.md +178 -178
- package/.claude/agents/analysis/code-analyzer.md +209 -209
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +178 -178
- package/.claude/agents/architecture/arch-system-design.md +156 -156
- package/.claude/agents/architecture/system-design/arch-system-design.md +154 -154
- package/.claude/agents/browser/browser-agent.yaml +182 -182
- package/.claude/agents/consensus/byzantine-coordinator.md +62 -62
- package/.claude/agents/consensus/crdt-synchronizer.md +996 -996
- package/.claude/agents/consensus/gossip-coordinator.md +62 -62
- package/.claude/agents/consensus/performance-benchmarker.md +850 -850
- package/.claude/agents/consensus/quorum-manager.md +822 -822
- package/.claude/agents/consensus/raft-manager.md +62 -62
- package/.claude/agents/consensus/security-manager.md +621 -621
- package/.claude/agents/core/planner.md +374 -374
- package/.claude/agents/custom/test-long-runner.md +44 -44
- package/.claude/agents/data/data-ml-model.md +444 -444
- package/.claude/agents/data/ml/data-ml-model.md +192 -192
- package/.claude/agents/development/backend/dev-backend-api.md +141 -141
- package/.claude/agents/development/dev-backend-api.md +344 -344
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +163 -163
- package/.claude/agents/devops/ops-cicd-github.md +164 -164
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +173 -173
- package/.claude/agents/documentation/docs-api-openapi.md +354 -354
- package/.claude/agents/flow-nexus/app-store.md +87 -87
- package/.claude/agents/flow-nexus/authentication.md +68 -68
- package/.claude/agents/flow-nexus/challenges.md +80 -80
- package/.claude/agents/flow-nexus/neural-network.md +87 -87
- package/.claude/agents/flow-nexus/payments.md +82 -82
- package/.claude/agents/flow-nexus/sandbox.md +75 -75
- package/.claude/agents/flow-nexus/swarm.md +75 -75
- package/.claude/agents/flow-nexus/user-tools.md +95 -95
- package/.claude/agents/flow-nexus/workflow.md +83 -83
- package/.claude/agents/github/code-review-swarm.md +377 -377
- package/.claude/agents/github/github-modes.md +172 -172
- package/.claude/agents/github/issue-tracker.md +575 -575
- package/.claude/agents/github/multi-repo-swarm.md +552 -552
- package/.claude/agents/github/pr-manager.md +437 -437
- package/.claude/agents/github/project-board-sync.md +508 -508
- package/.claude/agents/github/release-manager.md +604 -604
- package/.claude/agents/github/release-swarm.md +582 -582
- package/.claude/agents/github/repo-architect.md +397 -397
- package/.claude/agents/github/swarm-issue.md +572 -572
- package/.claude/agents/github/swarm-pr.md +427 -427
- package/.claude/agents/github/sync-coordinator.md +451 -451
- package/.claude/agents/github/workflow-automation.md +902 -902
- package/.claude/agents/goal/agent.md +815 -815
- package/.claude/agents/optimization/benchmark-suite.md +664 -664
- package/.claude/agents/optimization/load-balancer.md +430 -430
- package/.claude/agents/optimization/performance-monitor.md +671 -671
- package/.claude/agents/optimization/resource-allocator.md +673 -673
- package/.claude/agents/optimization/topology-optimizer.md +807 -807
- package/.claude/agents/payments/agentic-payments.md +126 -126
- package/.claude/agents/sona/sona-learning-optimizer.md +74 -74
- package/.claude/agents/sparc/architecture.md +698 -698
- package/.claude/agents/sparc/pseudocode.md +519 -519
- package/.claude/agents/sparc/refinement.md +801 -801
- package/.claude/agents/sparc/specification.md +477 -477
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +224 -224
- package/.claude/agents/specialized/spec-mobile-react-native.md +226 -226
- package/.claude/agents/sublinear/consensus-coordinator.md +337 -337
- package/.claude/agents/sublinear/matrix-optimizer.md +184 -184
- package/.claude/agents/sublinear/pagerank-analyzer.md +298 -298
- package/.claude/agents/sublinear/performance-optimizer.md +367 -367
- package/.claude/agents/sublinear/trading-predictor.md +245 -245
- package/.claude/agents/swarm/adaptive-coordinator.md +1126 -1126
- package/.claude/agents/swarm/hierarchical-coordinator.md +709 -709
- package/.claude/agents/swarm/mesh-coordinator.md +962 -962
- package/.claude/agents/templates/automation-smart-agent.md +204 -204
- package/.claude/agents/templates/base-template-generator.md +289 -289
- package/.claude/agents/templates/coordinator-swarm-init.md +89 -89
- package/.claude/agents/templates/github-pr-manager.md +176 -176
- package/.claude/agents/templates/implementer-sparc-coder.md +258 -258
- package/.claude/agents/templates/memory-coordinator.md +186 -186
- package/.claude/agents/templates/orchestrator-task.md +138 -138
- package/.claude/agents/templates/performance-analyzer.md +198 -198
- package/.claude/agents/templates/sparc-coordinator.md +513 -513
- package/.claude/agents/testing/production-validator.md +394 -394
- package/.claude/agents/testing/tdd-london-swarm.md +243 -243
- package/.claude/agents/v3/aidefence-guardian.md +282 -282
- package/.claude/agents/v3/claims-authorizer.md +208 -208
- package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -993
- package/.claude/agents/v3/ddd-domain-expert.md +220 -220
- package/.claude/agents/v3/injection-analyst.md +236 -236
- package/.claude/agents/v3/performance-engineer.md +1233 -1233
- package/.claude/agents/v3/pii-detector.md +151 -151
- package/.claude/agents/v3/reasoningbank-learner.md +213 -213
- package/.claude/agents/v3/security-architect-aidefence.md +410 -410
- package/.claude/agents/v3/security-architect.md +867 -867
- package/.claude/agents/v3/swarm-memory-manager.md +157 -157
- package/.claude/agents/v3/v3-integration-architect.md +205 -205
- package/.claude/commands/agents/README.md +50 -50
- package/.claude/commands/agents/agent-capabilities.md +140 -140
- package/.claude/commands/agents/agent-coordination.md +28 -28
- package/.claude/commands/agents/agent-spawning.md +28 -28
- package/.claude/commands/agents/agent-types.md +216 -216
- package/.claude/commands/agents/health.md +139 -139
- package/.claude/commands/agents/list.md +100 -100
- package/.claude/commands/agents/logs.md +130 -130
- package/.claude/commands/agents/metrics.md +122 -122
- package/.claude/commands/agents/pool.md +127 -127
- package/.claude/commands/agents/spawn.md +140 -140
- package/.claude/commands/agents/status.md +115 -115
- package/.claude/commands/agents/stop.md +102 -102
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +53 -53
- package/.claude/commands/analysis/README.md +9 -9
- package/.claude/commands/analysis/bottleneck-detect.md +162 -162
- package/.claude/commands/analysis/performance-bottlenecks.md +58 -58
- package/.claude/commands/analysis/performance-report.md +25 -25
- package/.claude/commands/analysis/token-efficiency.md +44 -44
- package/.claude/commands/analysis/token-usage.md +25 -25
- package/.claude/commands/automation/README.md +9 -9
- package/.claude/commands/automation/auto-agent.md +122 -122
- package/.claude/commands/automation/self-healing.md +105 -105
- package/.claude/commands/automation/session-memory.md +89 -89
- package/.claude/commands/automation/smart-agents.md +72 -72
- package/.claude/commands/automation/smart-spawn.md +25 -25
- package/.claude/commands/automation/workflow-select.md +25 -25
- package/.claude/commands/claude-flow-help.md +103 -103
- package/.claude/commands/claude-flow-memory.md +107 -107
- package/.claude/commands/claude-flow-swarm.md +205 -205
- package/.claude/commands/coordination/README.md +9 -9
- package/.claude/commands/coordination/agent-spawn.md +25 -25
- package/.claude/commands/coordination/init.md +44 -44
- package/.claude/commands/coordination/orchestrate.md +43 -43
- package/.claude/commands/coordination/spawn.md +45 -45
- package/.claude/commands/coordination/swarm-init.md +85 -85
- package/.claude/commands/coordination/task-orchestrate.md +25 -25
- package/.claude/commands/github/README.md +11 -11
- package/.claude/commands/github/code-review-swarm.md +513 -513
- package/.claude/commands/github/code-review.md +25 -25
- package/.claude/commands/github/github-modes.md +146 -146
- package/.claude/commands/github/github-swarm.md +121 -121
- package/.claude/commands/github/issue-tracker.md +291 -291
- package/.claude/commands/github/issue-triage.md +25 -25
- package/.claude/commands/github/multi-repo-swarm.md +518 -518
- package/.claude/commands/github/pr-enhance.md +26 -26
- package/.claude/commands/github/pr-manager.md +169 -169
- package/.claude/commands/github/project-board-sync.md +470 -470
- package/.claude/commands/github/release-manager.md +339 -339
- package/.claude/commands/github/release-swarm.md +543 -543
- package/.claude/commands/github/repo-analyze.md +25 -25
- package/.claude/commands/github/repo-architect.md +366 -366
- package/.claude/commands/github/swarm-issue.md +484 -484
- package/.claude/commands/github/swarm-pr.md +287 -287
- package/.claude/commands/github/sync-coordinator.md +302 -302
- package/.claude/commands/github/workflow-automation.md +441 -441
- package/.claude/commands/hive-mind/README.md +17 -17
- package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -8
- package/.claude/commands/hive-mind/hive-mind-init.md +18 -18
- package/.claude/commands/hive-mind/hive-mind-memory.md +8 -8
- package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -8
- package/.claude/commands/hive-mind/hive-mind-resume.md +8 -8
- package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -8
- package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -21
- package/.claude/commands/hive-mind/hive-mind-status.md +8 -8
- package/.claude/commands/hive-mind/hive-mind-stop.md +8 -8
- package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -8
- package/.claude/commands/hive-mind/hive-mind.md +27 -27
- package/.claude/commands/hooks/README.md +11 -11
- package/.claude/commands/hooks/overview.md +57 -57
- package/.claude/commands/hooks/post-edit.md +117 -117
- package/.claude/commands/hooks/post-task.md +112 -112
- package/.claude/commands/hooks/pre-edit.md +113 -113
- package/.claude/commands/hooks/pre-task.md +111 -111
- package/.claude/commands/hooks/session-end.md +118 -118
- package/.claude/commands/hooks/setup.md +102 -102
- package/.claude/commands/memory/README.md +9 -9
- package/.claude/commands/memory/memory-persist.md +25 -25
- package/.claude/commands/memory/memory-search.md +25 -25
- package/.claude/commands/memory/memory-usage.md +25 -25
- package/.claude/commands/memory/neural.md +47 -47
- package/.claude/commands/monitoring/README.md +9 -9
- package/.claude/commands/monitoring/agent-metrics.md +25 -25
- package/.claude/commands/monitoring/agents.md +44 -44
- package/.claude/commands/monitoring/real-time-view.md +25 -25
- package/.claude/commands/monitoring/status.md +46 -46
- package/.claude/commands/monitoring/swarm-monitor.md +25 -25
- package/.claude/commands/optimization/README.md +9 -9
- package/.claude/commands/optimization/auto-topology.md +61 -61
- package/.claude/commands/optimization/cache-manage.md +25 -25
- package/.claude/commands/optimization/parallel-execute.md +25 -25
- package/.claude/commands/optimization/parallel-execution.md +49 -49
- package/.claude/commands/optimization/topology-optimize.md +25 -25
- package/.claude/commands/pair/README.md +260 -260
- package/.claude/commands/pair/commands.md +545 -545
- package/.claude/commands/pair/config.md +509 -509
- package/.claude/commands/pair/examples.md +511 -511
- package/.claude/commands/pair/modes.md +347 -347
- package/.claude/commands/pair/session.md +406 -406
- package/.claude/commands/pair/start.md +208 -208
- package/.claude/commands/sparc/analyzer.md +51 -51
- package/.claude/commands/sparc/architect.md +53 -53
- package/.claude/commands/sparc/ask.md +97 -97
- package/.claude/commands/sparc/batch-executor.md +54 -54
- package/.claude/commands/sparc/code.md +89 -89
- package/.claude/commands/sparc/coder.md +54 -54
- package/.claude/commands/sparc/debug.md +83 -83
- package/.claude/commands/sparc/debugger.md +54 -54
- package/.claude/commands/sparc/designer.md +53 -53
- package/.claude/commands/sparc/devops.md +109 -109
- package/.claude/commands/sparc/docs-writer.md +80 -80
- package/.claude/commands/sparc/documenter.md +54 -54
- package/.claude/commands/sparc/innovator.md +54 -54
- package/.claude/commands/sparc/integration.md +83 -83
- package/.claude/commands/sparc/mcp.md +117 -117
- package/.claude/commands/sparc/memory-manager.md +54 -54
- package/.claude/commands/sparc/optimizer.md +54 -54
- package/.claude/commands/sparc/orchestrator.md +131 -131
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -83
- package/.claude/commands/sparc/refinement-optimization-mode.md +83 -83
- package/.claude/commands/sparc/researcher.md +54 -54
- package/.claude/commands/sparc/reviewer.md +54 -54
- package/.claude/commands/sparc/security-review.md +80 -80
- package/.claude/commands/sparc/sparc-modes.md +174 -174
- package/.claude/commands/sparc/sparc.md +111 -111
- package/.claude/commands/sparc/spec-pseudocode.md +80 -80
- package/.claude/commands/sparc/supabase-admin.md +348 -348
- package/.claude/commands/sparc/swarm-coordinator.md +54 -54
- package/.claude/commands/sparc/tdd.md +54 -54
- package/.claude/commands/sparc/tester.md +54 -54
- package/.claude/commands/sparc/tutorial.md +79 -79
- package/.claude/commands/sparc/workflow-manager.md +54 -54
- package/.claude/commands/sparc.md +166 -166
- package/.claude/commands/stream-chain/pipeline.md +120 -120
- package/.claude/commands/stream-chain/run.md +69 -69
- package/.claude/commands/swarm/README.md +15 -15
- package/.claude/commands/swarm/analysis.md +95 -95
- package/.claude/commands/swarm/development.md +96 -96
- package/.claude/commands/swarm/examples.md +168 -168
- package/.claude/commands/swarm/maintenance.md +102 -102
- package/.claude/commands/swarm/optimization.md +117 -117
- package/.claude/commands/swarm/research.md +136 -136
- package/.claude/commands/swarm/swarm-analysis.md +8 -8
- package/.claude/commands/swarm/swarm-background.md +8 -8
- package/.claude/commands/swarm/swarm-init.md +19 -19
- package/.claude/commands/swarm/swarm-modes.md +8 -8
- package/.claude/commands/swarm/swarm-monitor.md +8 -8
- package/.claude/commands/swarm/swarm-spawn.md +19 -19
- package/.claude/commands/swarm/swarm-status.md +8 -8
- package/.claude/commands/swarm/swarm-strategies.md +8 -8
- package/.claude/commands/swarm/swarm.md +87 -87
- package/.claude/commands/swarm/testing.md +131 -131
- package/.claude/commands/training/README.md +9 -9
- package/.claude/commands/training/model-update.md +25 -25
- package/.claude/commands/training/neural-patterns.md +107 -107
- package/.claude/commands/training/neural-train.md +75 -75
- package/.claude/commands/training/pattern-learn.md +25 -25
- package/.claude/commands/training/specialization.md +62 -62
- package/.claude/commands/truth/start.md +142 -142
- package/.claude/commands/verify/check.md +49 -49
- package/.claude/commands/verify/start.md +127 -127
- package/.claude/commands/workflows/README.md +9 -9
- package/.claude/commands/workflows/development.md +77 -77
- package/.claude/commands/workflows/research.md +62 -62
- package/.claude/commands/workflows/workflow-create.md +25 -25
- package/.claude/commands/workflows/workflow-execute.md +25 -25
- package/.claude/commands/workflows/workflow-export.md +25 -25
- package/.claude/helpers/README.md +96 -96
- package/.claude/helpers/adr-compliance.sh +186 -186
- package/.claude/helpers/auto-commit.sh +178 -178
- package/.claude/helpers/auto-memory-hook.mjs +368 -368
- package/.claude/helpers/checkpoint-manager.sh +251 -251
- package/.claude/helpers/daemon-manager.sh +252 -252
- package/.claude/helpers/ddd-tracker.sh +144 -144
- package/.claude/helpers/github-safe.js +156 -156
- package/.claude/helpers/github-setup.sh +45 -45
- package/.claude/helpers/guidance-hook.sh +13 -13
- package/.claude/helpers/guidance-hooks.sh +102 -102
- package/.claude/helpers/health-monitor.sh +108 -108
- package/.claude/helpers/hook-handler.cjs +286 -286
- package/.claude/helpers/intelligence.cjs +1031 -1031
- package/.claude/helpers/learning-hooks.sh +329 -329
- package/.claude/helpers/learning-optimizer.sh +127 -127
- package/.claude/helpers/learning-service.mjs +1144 -1144
- package/.claude/helpers/memory.js +83 -83
- package/.claude/helpers/metrics-db.mjs +488 -488
- package/.claude/helpers/pattern-consolidator.sh +86 -86
- package/.claude/helpers/perf-worker.sh +160 -160
- package/.claude/helpers/post-commit +16 -16
- package/.claude/helpers/pre-commit +26 -26
- package/.claude/helpers/quick-start.sh +19 -19
- package/.claude/helpers/router.js +105 -105
- package/.claude/helpers/security-scanner.sh +127 -127
- package/.claude/helpers/session.js +135 -135
- package/.claude/helpers/setup-mcp.sh +18 -18
- package/.claude/helpers/standard-checkpoint-hooks.sh +189 -189
- package/.claude/helpers/statusline-hook.sh +21 -21
- package/.claude/helpers/statusline.cjs +604 -604
- package/.claude/helpers/statusline.js +352 -352
- package/.claude/helpers/swarm-comms.sh +353 -353
- package/.claude/helpers/swarm-hooks.sh +761 -761
- package/.claude/helpers/swarm-monitor.sh +210 -210
- package/.claude/helpers/sync-v3-metrics.sh +245 -245
- package/.claude/helpers/update-v3-progress.sh +165 -165
- package/.claude/helpers/v3-quick-status.sh +57 -57
- package/.claude/helpers/v3.sh +110 -110
- package/.claude/helpers/validate-v3-config.sh +215 -215
- package/.claude/helpers/worker-manager.sh +170 -170
- package/.claude/settings.json +182 -182
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -550
- package/.claude/skills/agentdb-learning/SKILL.md +545 -545
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -339
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -509
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -339
- package/.claude/skills/browser/SKILL.md +204 -204
- package/.claude/skills/dual-mode/README.md +71 -71
- package/.claude/skills/dual-mode/dual-collect.md +103 -103
- package/.claude/skills/dual-mode/dual-coordinate.md +85 -85
- package/.claude/skills/dual-mode/dual-spawn.md +81 -81
- package/.claude/skills/flow-nexus-neural/SKILL.md +727 -727
- package/.claude/skills/flow-nexus-platform/SKILL.md +1154 -1154
- package/.claude/skills/flow-nexus-swarm/SKILL.md +604 -604
- package/.claude/skills/github-code-review/SKILL.md +1125 -1125
- package/.claude/skills/github-multi-repo/SKILL.md +862 -862
- package/.claude/skills/github-project-management/SKILL.md +1262 -1262
- package/.claude/skills/github-release-management/SKILL.md +1064 -1064
- package/.claude/skills/github-workflow-automation/SKILL.md +1047 -1047
- package/.claude/skills/hooks-automation/SKILL.md +1201 -1201
- package/.claude/skills/pair-programming/SKILL.md +1202 -1202
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -446
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -201
- package/.claude/skills/skill-builder/SKILL.md +910 -910
- package/.claude/skills/sparc-methodology/SKILL.md +1106 -1106
- package/.claude/skills/stream-chain/SKILL.md +560 -560
- package/.claude/skills/swarm-advanced/SKILL.md +970 -970
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -179
- package/.claude/skills/v3-cli-modernization/SKILL.md +871 -871
- package/.claude/skills/v3-core-implementation/SKILL.md +796 -796
- package/.claude/skills/v3-ddd-architecture/SKILL.md +441 -441
- package/.claude/skills/v3-integration-deep/SKILL.md +240 -240
- package/.claude/skills/v3-mcp-optimization/SKILL.md +776 -776
- package/.claude/skills/v3-memory-unification/SKILL.md +173 -173
- package/.claude/skills/v3-performance-optimization/SKILL.md +389 -389
- package/.claude/skills/v3-security-overhaul/SKILL.md +81 -81
- package/.claude/skills/v3-swarm-coordination/SKILL.md +339 -339
- package/.claude/skills/verification-quality/SKILL.md +691 -691
- package/README.md +416 -416
- package/bin/cli.js +314 -314
- package/bin/mcp-server.js +224 -224
- package/bin/preinstall.cjs +2 -2
- package/dist/src/benchmarks/gaia-critic.js +24 -24
- package/dist/src/commands/completions.js +409 -409
- package/dist/src/commands/daemon.js +44 -44
- package/dist/src/commands/embeddings.js +29 -29
- package/dist/src/commands/embeddings.js.map +1 -1
- package/dist/src/commands/hive-mind.js +97 -97
- package/dist/src/commands/hooks.js +9 -9
- package/dist/src/commands/ruvector/backup.js +23 -23
- package/dist/src/commands/ruvector/benchmark.js +31 -31
- package/dist/src/commands/ruvector/import.js +14 -14
- package/dist/src/commands/ruvector/init.js +115 -115
- package/dist/src/commands/ruvector/migrate.js +99 -99
- package/dist/src/commands/ruvector/optimize.js +51 -51
- package/dist/src/commands/ruvector/setup.js +624 -624
- package/dist/src/commands/ruvector/status.js +38 -38
- package/dist/src/init/claudemd-generator.js +227 -227
- package/dist/src/init/executor.js +453 -453
- package/dist/src/init/helpers-generator.js +727 -727
- package/dist/src/init/statusline-generator.js +570 -570
- package/dist/src/mcp-tools/agentdb-tools.js +15 -15
- package/dist/src/memory/graph-edge-writer.js +18 -18
- package/dist/src/memory/memory-bridge.js +84 -84
- package/dist/src/memory/memory-initializer.js +393 -393
- package/dist/src/memory/rabitq-index.js +5 -5
- package/dist/src/runtime/headless.js +28 -28
- package/dist/src/ruvector/flash-attention.d.ts +195 -0
- package/dist/src/ruvector/flash-attention.d.ts.map +1 -0
- package/dist/src/ruvector/flash-attention.js +643 -0
- package/dist/src/ruvector/flash-attention.js.map +1 -0
- package/dist/src/ruvector/moe-router.d.ts +206 -0
- package/dist/src/ruvector/moe-router.d.ts.map +1 -0
- package/dist/src/ruvector/moe-router.js +626 -0
- package/dist/src/ruvector/moe-router.js.map +1 -0
- package/dist/src/services/event-stream.d.ts +25 -0
- package/dist/src/services/event-stream.js +27 -0
- package/dist/src/services/headless-worker-executor.js +84 -84
- package/dist/src/services/loop-worker-runner.d.ts +16 -0
- package/dist/src/services/loop-worker-runner.js +34 -0
- package/dist/src/services/runtime-capabilities.d.ts +22 -0
- package/dist/src/services/runtime-capabilities.js +45 -0
- package/dist/src/transfer/deploy-seraphine.js +23 -23
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +134 -134
- package/scripts/beir-bootstrap-significance.mjs +162 -162
- package/scripts/bench-rvagent.mjs +312 -312
- package/scripts/benchmark-codemods.mjs +127 -127
- package/scripts/benchmark-cross-repo.mjs +206 -206
- package/scripts/benchmark-pretrained-retrieval.mjs +305 -305
- package/scripts/benchmark-self-learning.mjs +241 -241
- package/scripts/benchmark-trajectory-mrr.mjs +191 -191
- package/scripts/deploy-ipfs-node.sh +153 -153
- package/scripts/grid-search-retrieval.mjs +216 -216
- package/scripts/postinstall.cjs +153 -153
- package/scripts/pretrain-from-github.mjs +358 -358
- package/scripts/publish-registry.ts +345 -345
- package/scripts/publish.sh +57 -57
- package/scripts/run-beir-bge.mjs +324 -336
- package/scripts/run-beir-hybrid.mjs +261 -263
- package/scripts/run-beir-lucene-bm25.mjs +154 -154
- package/scripts/run-beir-nfcorpus.mjs +231 -231
- package/scripts/run-beir-rrf-ablation.mjs +221 -221
- package/scripts/setup-ipfs-registry.md +366 -366
- package/dist/src/benchmarks/capability-tasks.d.ts +0 -126
- package/dist/src/benchmarks/capability-tasks.d.ts.map +0 -1
- package/dist/src/benchmarks/capability-tasks.js +0 -147
- package/dist/src/benchmarks/capability-tasks.js.map +0 -1
- package/dist/src/benchmarks/gaia-agent-contrastive.d.ts +0 -53
- package/dist/src/benchmarks/gaia-agent-contrastive.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-agent-contrastive.js +0 -177
- package/dist/src/benchmarks/gaia-agent-contrastive.js.map +0 -1
- package/dist/src/benchmarks/gaia-agent-gemini.d.ts +0 -51
- package/dist/src/benchmarks/gaia-agent-gemini.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-agent-gemini.js +0 -352
- package/dist/src/benchmarks/gaia-agent-gemini.js.map +0 -1
- package/dist/src/benchmarks/gaia-claude-p.d.ts +0 -105
- package/dist/src/benchmarks/gaia-claude-p.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-claude-p.js +0 -269
- package/dist/src/benchmarks/gaia-claude-p.js.map +0 -1
- package/dist/src/benchmarks/gaia-claude-p.smoke.d.ts +0 -20
- package/dist/src/benchmarks/gaia-claude-p.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-claude-p.smoke.js +0 -168
- package/dist/src/benchmarks/gaia-claude-p.smoke.js.map +0 -1
- package/dist/src/benchmarks/gaia-codeagent-runner.py +0 -556
- package/dist/src/benchmarks/gaia-codeagent.d.ts +0 -129
- package/dist/src/benchmarks/gaia-codeagent.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-codeagent.js +0 -590
- package/dist/src/benchmarks/gaia-codeagent.js.map +0 -1
- package/dist/src/benchmarks/gaia-codeagent.smoke.d.ts +0 -33
- package/dist/src/benchmarks/gaia-codeagent.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-codeagent.smoke.js +0 -241
- package/dist/src/benchmarks/gaia-codeagent.smoke.js.map +0 -1
- package/dist/src/benchmarks/gaia-dag-pilot.d.ts +0 -22
- package/dist/src/benchmarks/gaia-dag-pilot.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-dag-pilot.js +0 -158
- package/dist/src/benchmarks/gaia-dag-pilot.js.map +0 -1
- package/dist/src/benchmarks/gaia-dag.d.ts +0 -110
- package/dist/src/benchmarks/gaia-dag.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-dag.js +0 -658
- package/dist/src/benchmarks/gaia-dag.js.map +0 -1
- package/dist/src/benchmarks/gaia-dag.smoke.d.ts +0 -21
- package/dist/src/benchmarks/gaia-dag.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-dag.smoke.js +0 -290
- package/dist/src/benchmarks/gaia-dag.smoke.js.map +0 -1
- package/dist/src/benchmarks/gaia-ensemble-pilot.d.ts +0 -17
- package/dist/src/benchmarks/gaia-ensemble-pilot.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-ensemble-pilot.js +0 -106
- package/dist/src/benchmarks/gaia-ensemble-pilot.js.map +0 -1
- package/dist/src/benchmarks/gaia-ensemble.d.ts +0 -103
- package/dist/src/benchmarks/gaia-ensemble.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-ensemble.js +0 -462
- package/dist/src/benchmarks/gaia-ensemble.js.map +0 -1
- package/dist/src/benchmarks/gaia-gemini-pilot.d.ts +0 -17
- package/dist/src/benchmarks/gaia-gemini-pilot.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-gemini-pilot.js +0 -168
- package/dist/src/benchmarks/gaia-gemini-pilot.js.map +0 -1
- package/dist/src/benchmarks/gaia-mode-router.d.ts +0 -67
- package/dist/src/benchmarks/gaia-mode-router.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-mode-router.js +0 -126
- package/dist/src/benchmarks/gaia-mode-router.js.map +0 -1
- package/dist/src/benchmarks/gaia-mode-router.smoke.d.ts +0 -15
- package/dist/src/benchmarks/gaia-mode-router.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-mode-router.smoke.js +0 -131
- package/dist/src/benchmarks/gaia-mode-router.smoke.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/grounded_query.smoke.d.ts +0 -24
- package/dist/src/benchmarks/gaia-tools/grounded_query.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/grounded_query.smoke.js +0 -276
- package/dist/src/benchmarks/gaia-tools/grounded_query.smoke.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/image_describe.d.ts +0 -45
- package/dist/src/benchmarks/gaia-tools/image_describe.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/image_describe.js +0 -222
- package/dist/src/benchmarks/gaia-tools/image_describe.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/image_describe.smoke.d.ts +0 -24
- package/dist/src/benchmarks/gaia-tools/image_describe.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/image_describe.smoke.js +0 -169
- package/dist/src/benchmarks/gaia-tools/image_describe.smoke.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/pdf_read.d.ts +0 -27
- package/dist/src/benchmarks/gaia-tools/pdf_read.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/pdf_read.js +0 -226
- package/dist/src/benchmarks/gaia-tools/pdf_read.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/python_exec.d.ts +0 -31
- package/dist/src/benchmarks/gaia-tools/python_exec.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/python_exec.js +0 -94
- package/dist/src/benchmarks/gaia-tools/python_exec.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/python_exec.smoke.d.ts +0 -13
- package/dist/src/benchmarks/gaia-tools/python_exec.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/python_exec.smoke.js +0 -98
- package/dist/src/benchmarks/gaia-tools/python_exec.smoke.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/visit_webpage.d.ts +0 -52
- package/dist/src/benchmarks/gaia-tools/visit_webpage.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/visit_webpage.js +0 -304
- package/dist/src/benchmarks/gaia-tools/visit_webpage.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/web_browse.d.ts +0 -61
- package/dist/src/benchmarks/gaia-tools/web_browse.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/web_browse.js +0 -217
- package/dist/src/benchmarks/gaia-tools/web_browse.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/web_browse.smoke.d.ts +0 -26
- package/dist/src/benchmarks/gaia-tools/web_browse.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/web_browse.smoke.js +0 -152
- package/dist/src/benchmarks/gaia-tools/web_browse.smoke.js.map +0 -1
- package/dist/src/benchmarks/gaia-tools/web_search.smoke.d.ts +0 -24
- package/dist/src/benchmarks/gaia-tools/web_search.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-tools/web_search.smoke.js +0 -311
- package/dist/src/benchmarks/gaia-tools/web_search.smoke.js.map +0 -1
- package/dist/src/benchmarks/gaia-visit-webpage.smoke.d.ts +0 -25
- package/dist/src/benchmarks/gaia-visit-webpage.smoke.d.ts.map +0 -1
- package/dist/src/benchmarks/gaia-visit-webpage.smoke.js +0 -304
- package/dist/src/benchmarks/gaia-visit-webpage.smoke.js.map +0 -1
- package/dist/src/commands/performance-capability.d.ts +0 -30
- package/dist/src/commands/performance-capability.d.ts.map +0 -1
- package/dist/src/commands/performance-capability.js +0 -349
- package/dist/src/commands/performance-capability.js.map +0 -1
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GAIA CodeAgent Smoke Tests — ADR-138 iter 54 (FINAL design)
|
|
3
|
-
*
|
|
4
|
-
* 5 tests validating the CodeAgent harness end-to-end.
|
|
5
|
-
* Tests 1-4 are unit-level (no API calls). Test 5 uses 1 API call.
|
|
6
|
-
*
|
|
7
|
-
* Tests:
|
|
8
|
-
* T1: Code block extraction — parser correctness (no subprocess)
|
|
9
|
-
* T2: Python runner — simple math (subprocess, no API)
|
|
10
|
-
* T3: Python runner — file read via ATTACHMENT_PATH
|
|
11
|
-
* T4: Python runner — code error recovery (traceback returned as obs)
|
|
12
|
-
* T5: End-to-end — simple factual question (1 API call, ~$0.01)
|
|
13
|
-
*
|
|
14
|
-
* Pass criteria: 5/5. Gate before iter 55 5Q run.
|
|
15
|
-
*
|
|
16
|
-
* Run: npx tsx gaia-codeagent.smoke.ts
|
|
17
|
-
* or: node dist/src/benchmarks/gaia-codeagent.smoke.js
|
|
18
|
-
*
|
|
19
|
-
* Refs: ADR-138, #2156, iter 54
|
|
20
|
-
*/
|
|
21
|
-
// ---------------------------------------------------------------------------
|
|
22
|
-
// Imports
|
|
23
|
-
// ---------------------------------------------------------------------------
|
|
24
|
-
import * as fs from 'node:fs';
|
|
25
|
-
import * as os from 'node:os';
|
|
26
|
-
import * as path from 'node:path';
|
|
27
|
-
import { extractCodeBlock, runCodeAgentStep, runGaiaCodeAgent, } from './gaia-codeagent.js';
|
|
28
|
-
import { resolveAnthropicApiKey } from './gaia-agent.js';
|
|
29
|
-
function makeQ(overrides = {}) {
|
|
30
|
-
return {
|
|
31
|
-
task_id: 'smoke-test',
|
|
32
|
-
level: 1,
|
|
33
|
-
question: 'What is 2 + 2?',
|
|
34
|
-
final_answer: '4',
|
|
35
|
-
file_name: null,
|
|
36
|
-
file_path: null,
|
|
37
|
-
...overrides,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
// ---------------------------------------------------------------------------
|
|
41
|
-
// T1: Code block extraction (no subprocess, no API)
|
|
42
|
-
// ---------------------------------------------------------------------------
|
|
43
|
-
function testCodeBlockExtraction() {
|
|
44
|
-
const name = 'T1: Code block extraction';
|
|
45
|
-
const start = Date.now();
|
|
46
|
-
const cases = [
|
|
47
|
-
{ input: '```python\nprint(2+2)\n```', expected: 'print(2+2)' },
|
|
48
|
-
{ input: '```py\nresult = 42\n```', expected: 'result = 42' },
|
|
49
|
-
{ input: '```\nfinal_answer("test")\n```', expected: 'final_answer("test")' },
|
|
50
|
-
{ input: 'No code block here', expected: null },
|
|
51
|
-
{
|
|
52
|
-
input: 'Reasoning...\n```python\nweb_search("q")\nprint(r)\n```\nMore',
|
|
53
|
-
expected: 'web_search("q")\nprint(r)',
|
|
54
|
-
},
|
|
55
|
-
];
|
|
56
|
-
for (const { input, expected } of cases) {
|
|
57
|
-
const result = extractCodeBlock(input);
|
|
58
|
-
if (result !== expected) {
|
|
59
|
-
return {
|
|
60
|
-
name,
|
|
61
|
-
passed: false,
|
|
62
|
-
message: `Case "${input.slice(0, 40)}": got "${result}", expected "${expected}"`,
|
|
63
|
-
durationMs: Date.now() - start,
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return { name, passed: true, message: `${cases.length}/5 cases passed`, durationMs: Date.now() - start };
|
|
68
|
-
}
|
|
69
|
-
// ---------------------------------------------------------------------------
|
|
70
|
-
// T2: Python runner — simple math (subprocess, no API)
|
|
71
|
-
// ---------------------------------------------------------------------------
|
|
72
|
-
function testPythonRunnerMath() {
|
|
73
|
-
const name = 'T2: Python runner — simple math';
|
|
74
|
-
const start = Date.now();
|
|
75
|
-
const apiKey = process.env.ANTHROPIC_API_KEY ?? 'test-key';
|
|
76
|
-
const code = `result = 2 + 2\nprint(result)\nfinal_answer(str(result))`;
|
|
77
|
-
const stepResult = runCodeAgentStep(code, null, 15_000, apiKey);
|
|
78
|
-
if (stepResult.finalAnswer !== '4') {
|
|
79
|
-
return {
|
|
80
|
-
name,
|
|
81
|
-
passed: false,
|
|
82
|
-
message: `Expected finalAnswer "4", got "${stepResult.finalAnswer ?? 'null'}". Obs: ${stepResult.observation.slice(0, 200)}`,
|
|
83
|
-
durationMs: Date.now() - start,
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
return { name, passed: true, message: `finalAnswer="4" as expected`, durationMs: Date.now() - start };
|
|
87
|
-
}
|
|
88
|
-
// ---------------------------------------------------------------------------
|
|
89
|
-
// T3: Python runner — file read via ATTACHMENT_PATH
|
|
90
|
-
// ---------------------------------------------------------------------------
|
|
91
|
-
function testPythonRunnerFileRead() {
|
|
92
|
-
const name = 'T3: Python runner — file read';
|
|
93
|
-
const start = Date.now();
|
|
94
|
-
const tmpFile = path.join(os.tmpdir(), `gaia-smoke-${Date.now()}.txt`);
|
|
95
|
-
fs.writeFileSync(tmpFile, 'The magic number is forty-two (42).', 'utf-8');
|
|
96
|
-
try {
|
|
97
|
-
const apiKey = process.env.ANTHROPIC_API_KEY ?? 'test-key';
|
|
98
|
-
const code = `content = read_file(ATTACHMENT_PATH)\nprint("Read:", content[:80])\nfinal_answer("42")`;
|
|
99
|
-
const stepResult = runCodeAgentStep(code, tmpFile, 15_000, apiKey);
|
|
100
|
-
if (stepResult.finalAnswer !== '42') {
|
|
101
|
-
return {
|
|
102
|
-
name, passed: false,
|
|
103
|
-
message: `Expected finalAnswer "42", got "${stepResult.finalAnswer ?? 'null'}". Obs: ${stepResult.observation.slice(0, 200)}`,
|
|
104
|
-
durationMs: Date.now() - start,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
if (!stepResult.observation.includes('forty-two') && !stepResult.observation.includes('42')) {
|
|
108
|
-
return {
|
|
109
|
-
name, passed: false,
|
|
110
|
-
message: `File content not in observation. Obs: ${stepResult.observation.slice(0, 200)}`,
|
|
111
|
-
durationMs: Date.now() - start,
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
return { name, passed: true, message: `File read OK, finalAnswer="42"`, durationMs: Date.now() - start };
|
|
115
|
-
}
|
|
116
|
-
finally {
|
|
117
|
-
try {
|
|
118
|
-
fs.unlinkSync(tmpFile);
|
|
119
|
-
}
|
|
120
|
-
catch { /* ignore */ }
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
// ---------------------------------------------------------------------------
|
|
124
|
-
// T4: Python runner — code error recovery
|
|
125
|
-
// ---------------------------------------------------------------------------
|
|
126
|
-
function testPythonRunnerErrorRecovery() {
|
|
127
|
-
const name = 'T4: Python runner — error recovery';
|
|
128
|
-
const start = Date.now();
|
|
129
|
-
const apiKey = process.env.ANTHROPIC_API_KEY ?? 'test-key';
|
|
130
|
-
const badCode = `result = undefined_variable_xyz + 1\nprint(result)`;
|
|
131
|
-
const stepResult = runCodeAgentStep(badCode, null, 15_000, apiKey);
|
|
132
|
-
if (stepResult.finalAnswer !== null) {
|
|
133
|
-
return {
|
|
134
|
-
name, passed: false,
|
|
135
|
-
message: `Expected no finalAnswer from errored code, got "${stepResult.finalAnswer}"`,
|
|
136
|
-
durationMs: Date.now() - start,
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
const obs = stepResult.observation.toLowerCase();
|
|
140
|
-
if (!obs.includes('error') && !obs.includes('nameerror')) {
|
|
141
|
-
return {
|
|
142
|
-
name, passed: false,
|
|
143
|
-
message: `Observation should contain error info, got: ${stepResult.observation.slice(0, 200)}`,
|
|
144
|
-
durationMs: Date.now() - start,
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
return {
|
|
148
|
-
name, passed: true,
|
|
149
|
-
message: `Error returned as observation: "${stepResult.observation.slice(0, 60)}..."`,
|
|
150
|
-
durationMs: Date.now() - start,
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
// ---------------------------------------------------------------------------
|
|
154
|
-
// T5: End-to-end — simple factual question (1 API call)
|
|
155
|
-
// ---------------------------------------------------------------------------
|
|
156
|
-
async function testEndToEndSimple() {
|
|
157
|
-
const name = 'T5: End-to-end — simple factual (1 API call)';
|
|
158
|
-
const start = Date.now();
|
|
159
|
-
let apiKey;
|
|
160
|
-
try {
|
|
161
|
-
apiKey = resolveAnthropicApiKey();
|
|
162
|
-
}
|
|
163
|
-
catch (err) {
|
|
164
|
-
return {
|
|
165
|
-
name, passed: false,
|
|
166
|
-
message: `No API key: ${String(err)}`,
|
|
167
|
-
durationMs: Date.now() - start,
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
const q = makeQ({
|
|
171
|
-
task_id: 'smoke-e2e-01',
|
|
172
|
-
question: 'What is 6 multiplied by 7? Answer as a number.',
|
|
173
|
-
final_answer: '42',
|
|
174
|
-
});
|
|
175
|
-
try {
|
|
176
|
-
const result = await runGaiaCodeAgent(q, {
|
|
177
|
-
model: 'claude-sonnet-4-6',
|
|
178
|
-
maxTurns: 5,
|
|
179
|
-
apiKey,
|
|
180
|
-
});
|
|
181
|
-
if (result.error && !result.finalAnswer) {
|
|
182
|
-
return { name, passed: false, message: `Agent error: ${result.error}`, durationMs: Date.now() - start };
|
|
183
|
-
}
|
|
184
|
-
if (result.finalAnswer === null) {
|
|
185
|
-
return { name, passed: false, message: `No final answer (timedOut=${result.timedOut})`, durationMs: Date.now() - start };
|
|
186
|
-
}
|
|
187
|
-
const num = parseFloat(result.finalAnswer.replace(/,/g, ''));
|
|
188
|
-
if (Math.abs(num - 42) > 0.01) {
|
|
189
|
-
return {
|
|
190
|
-
name, passed: false,
|
|
191
|
-
message: `Expected "42", got "${result.finalAnswer}" (turns=${result.turns})`,
|
|
192
|
-
durationMs: Date.now() - start,
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
const estCost = (result.totalInputTokens / 1e6) * 3.0 + (result.totalOutputTokens / 1e6) * 15.0;
|
|
196
|
-
return {
|
|
197
|
-
name, passed: true,
|
|
198
|
-
message: `finalAnswer="${result.finalAnswer}" turns=${result.turns} cost~=$${estCost.toFixed(4)}`,
|
|
199
|
-
durationMs: Date.now() - start,
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
catch (err) {
|
|
203
|
-
return { name, passed: false, message: `Exception: ${String(err)}`, durationMs: Date.now() - start };
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
// ---------------------------------------------------------------------------
|
|
207
|
-
// Main
|
|
208
|
-
// ---------------------------------------------------------------------------
|
|
209
|
-
async function main() {
|
|
210
|
-
console.log('\n=== GAIA CodeAgent Smoke Tests (ADR-138 iter 54) ===\n');
|
|
211
|
-
const results = [
|
|
212
|
-
testCodeBlockExtraction(),
|
|
213
|
-
testPythonRunnerMath(),
|
|
214
|
-
testPythonRunnerFileRead(),
|
|
215
|
-
testPythonRunnerErrorRecovery(),
|
|
216
|
-
await testEndToEndSimple(),
|
|
217
|
-
];
|
|
218
|
-
let passed = 0;
|
|
219
|
-
for (const r of results) {
|
|
220
|
-
const status = r.passed ? 'PASS' : 'FAIL';
|
|
221
|
-
console.log(`[${status}] ${r.name} (${r.durationMs}ms)`);
|
|
222
|
-
console.log(` ${r.message}`);
|
|
223
|
-
if (r.passed)
|
|
224
|
-
passed++;
|
|
225
|
-
}
|
|
226
|
-
console.log(`\n=== ${passed}/${results.length} passed ===`);
|
|
227
|
-
if (passed === results.length) {
|
|
228
|
-
console.log('All smoke tests passed. CodeAgent harness ready for 1Q sanity check.\n');
|
|
229
|
-
process.exit(0);
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
console.log(`SMOKE FAILED — ${results.length - passed} test(s) failed.\n`);
|
|
233
|
-
process.exit(1);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
main().catch((err) => {
|
|
237
|
-
console.error('Smoke test crashed:', err);
|
|
238
|
-
process.exit(2);
|
|
239
|
-
});
|
|
240
|
-
export { testCodeBlockExtraction, testPythonRunnerMath, testPythonRunnerFileRead, testPythonRunnerErrorRecovery, testEndToEndSimple, };
|
|
241
|
-
//# sourceMappingURL=gaia-codeagent.smoke.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gaia-codeagent.smoke.js","sourceRoot":"","sources":["../../../src/benchmarks/gaia-codeagent.smoke.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GAEjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAazD,SAAS,KAAK,CAAC,YAAmC,EAAE;IAClD,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,KAAK,EAAE,CAAU;QACjB,QAAQ,EAAE,gBAAgB;QAC1B,YAAY,EAAE,GAAG;QACjB,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,GAAG,SAAS;KACb,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,oDAAoD;AACpD,8EAA8E;AAE9E,SAAS,uBAAuB;IAC9B,MAAM,IAAI,GAAG,2BAA2B,CAAC;IACzC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,E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QACzD,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;QACnC,IAAI,CAAC,CAAC,MAAM;YAAE,MAAM,EAAE,CAAC;IACzB,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,SAAS,MAAM,IAAI,OAAO,CAAC,MAAM,aAAa,CAAC,CAAC;IAC5D,IAAI,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,wEAAwE,CAAC,CAAC;QACtF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,kBAAkB,OAAO,CAAC,MAAM,GAAG,MAAM,oBAAoB,CAAC,CAAC;QAC3E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;IAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACxB,6BAA6B,EAC7B,kBAAkB,GACnB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GAIA DAG 5-Question Pilot Runner — iter 64
|
|
3
|
-
*
|
|
4
|
-
* Runs 5 specific GAIA L1 questions through the Co-Sight DAG harness
|
|
5
|
-
* and compares results against single-Sonnet baseline (from iter 63b).
|
|
6
|
-
*
|
|
7
|
-
* Pilot question mix (selected from iter 63b failures):
|
|
8
|
-
* 1. 5d0080cb — calculation (fish bag volume from academic paper, multi-hop)
|
|
9
|
-
* 2. cffe0e32 — reasoning puzzle (Secret Santa assignment chain)
|
|
10
|
-
* 3. ec09fa32 — riddle (game show, requires careful reasoning)
|
|
11
|
-
* 4. 46719c30 — retrieval (paper authors -> their other publications)
|
|
12
|
-
* 5. b816bfce — retrieval+reasoning (journal name from Norse mythology)
|
|
13
|
-
*
|
|
14
|
-
* Cost cap: $2.00
|
|
15
|
-
*
|
|
16
|
-
* Usage:
|
|
17
|
-
* node dist/src/benchmarks/gaia-dag-pilot.js
|
|
18
|
-
*
|
|
19
|
-
* Refs: ADR-139, iter 64, #2156
|
|
20
|
-
*/
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=gaia-dag-pilot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gaia-dag-pilot.d.ts","sourceRoot":"","sources":["../../../src/benchmarks/gaia-dag-pilot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GAIA DAG 5-Question Pilot Runner — iter 64
|
|
3
|
-
*
|
|
4
|
-
* Runs 5 specific GAIA L1 questions through the Co-Sight DAG harness
|
|
5
|
-
* and compares results against single-Sonnet baseline (from iter 63b).
|
|
6
|
-
*
|
|
7
|
-
* Pilot question mix (selected from iter 63b failures):
|
|
8
|
-
* 1. 5d0080cb — calculation (fish bag volume from academic paper, multi-hop)
|
|
9
|
-
* 2. cffe0e32 — reasoning puzzle (Secret Santa assignment chain)
|
|
10
|
-
* 3. ec09fa32 — riddle (game show, requires careful reasoning)
|
|
11
|
-
* 4. 46719c30 — retrieval (paper authors -> their other publications)
|
|
12
|
-
* 5. b816bfce — retrieval+reasoning (journal name from Norse mythology)
|
|
13
|
-
*
|
|
14
|
-
* Cost cap: $2.00
|
|
15
|
-
*
|
|
16
|
-
* Usage:
|
|
17
|
-
* node dist/src/benchmarks/gaia-dag-pilot.js
|
|
18
|
-
*
|
|
19
|
-
* Refs: ADR-139, iter 64, #2156
|
|
20
|
-
*/
|
|
21
|
-
import { loadGaia } from './gaia-loader.js';
|
|
22
|
-
import { runDagPilot } from './gaia-dag.js';
|
|
23
|
-
// ---------------------------------------------------------------------------
|
|
24
|
-
// Pilot question IDs (5 questions from iter 63b failures)
|
|
25
|
-
// ---------------------------------------------------------------------------
|
|
26
|
-
const PILOT_TASK_IDS = [
|
|
27
|
-
'5d0080cb-90d7-4712-bc33-848150e917d3', // calculation: fish bag volume
|
|
28
|
-
'cffe0e32-c9a6-4c52-9877-78ceb4aaa9fb', // reasoning: Secret Santa
|
|
29
|
-
'ec09fa32-d03f-4bf8-84b0-1f16922c3ae4', // riddle: game show bees
|
|
30
|
-
'46719c30-f4c3-4cad-be07-d5cb21eee6bb', // retrieval: paper authors + their work
|
|
31
|
-
'b816bfce-3d80-4913-a07d-69b752ce6377', // retrieval: journal from Norse mythology
|
|
32
|
-
];
|
|
33
|
-
// Baseline: single-Sonnet results from iter 63b
|
|
34
|
-
const BASELINE = {
|
|
35
|
-
'5d0080cb-90d7-4712-bc33-848150e917d3': { correct: false, answer: null },
|
|
36
|
-
'cffe0e32-c9a6-4c52-9877-78ceb4aaa9fb': { correct: false, answer: null },
|
|
37
|
-
'ec09fa32-d03f-4bf8-84b0-1f16922c3ae4': { correct: false, answer: null },
|
|
38
|
-
'46719c30-f4c3-4cad-be07-d5cb21eee6bb': { correct: false, answer: null },
|
|
39
|
-
'b816bfce-3d80-4913-a07d-69b752ce6377': { correct: false, answer: 'cuddly' }, // close but wrong
|
|
40
|
-
};
|
|
41
|
-
const COST_CAP_USD = 2.00;
|
|
42
|
-
async function main() {
|
|
43
|
-
console.log('\n=== GAIA DAG 5-Question Pilot (iter 64) ===\n');
|
|
44
|
-
console.log('Questions: 5 (from iter 63b failures)');
|
|
45
|
-
console.log(`Planner: ${process.env['PLAN_MODEL'] ?? 'claude-sonnet-4-6'}`);
|
|
46
|
-
console.log(`Actor: ${process.env['ACT_MODEL'] ?? 'gemini-2.5-pro'}`);
|
|
47
|
-
console.log(`Cost cap: $${COST_CAP_USD}\n`);
|
|
48
|
-
// Load full GAIA L1 dataset and filter to pilot questions
|
|
49
|
-
console.log('Loading GAIA L1 dataset...');
|
|
50
|
-
let allQuestions;
|
|
51
|
-
try {
|
|
52
|
-
allQuestions = await loadGaia({ level: 1 });
|
|
53
|
-
}
|
|
54
|
-
catch (err) {
|
|
55
|
-
console.error('Failed to load GAIA dataset:', err instanceof Error ? err.message : String(err));
|
|
56
|
-
process.exit(1);
|
|
57
|
-
}
|
|
58
|
-
const pilotQuestions = PILOT_TASK_IDS.map((id) => {
|
|
59
|
-
const q = allQuestions.find((q) => q.task_id === id);
|
|
60
|
-
if (!q) {
|
|
61
|
-
console.warn(`WARNING: Question ${id} not found in dataset`);
|
|
62
|
-
}
|
|
63
|
-
return q;
|
|
64
|
-
}).filter(Boolean);
|
|
65
|
-
if (pilotQuestions.length === 0) {
|
|
66
|
-
console.error('No pilot questions found. Check HF token and dataset availability.');
|
|
67
|
-
process.exit(1);
|
|
68
|
-
}
|
|
69
|
-
console.log(`Loaded ${pilotQuestions.length} pilot questions\n`);
|
|
70
|
-
for (const q of pilotQuestions) {
|
|
71
|
-
console.log(` ${q.task_id.slice(0, 8)}: ${q.question.slice(0, 70)}...`);
|
|
72
|
-
console.log(` expected: "${q.final_answer}"`);
|
|
73
|
-
if (q.file_path)
|
|
74
|
-
console.log(` file: ${q.file_path}`);
|
|
75
|
-
}
|
|
76
|
-
console.log('');
|
|
77
|
-
// Run DAG pilot
|
|
78
|
-
const result = await runDagPilot(pilotQuestions, {});
|
|
79
|
-
// Check cost cap
|
|
80
|
-
if (result.totalCostUsd > COST_CAP_USD) {
|
|
81
|
-
console.warn(`\nWARNING: Cost $${result.totalCostUsd.toFixed(4)} exceeded cap $${COST_CAP_USD}\n`);
|
|
82
|
-
}
|
|
83
|
-
// Report results
|
|
84
|
-
console.log('\n=== DAG Pilot Results ===\n');
|
|
85
|
-
console.log(`Score: ${result.correct}/${result.total} (${(result.accuracy * 100).toFixed(1)}%)`);
|
|
86
|
-
console.log(`Avg steps/question: ${result.avgStepsPerQuestion.toFixed(1)}`);
|
|
87
|
-
console.log(`Total cost: $${result.totalCostUsd.toFixed(4)}`);
|
|
88
|
-
console.log(`Projected 53Q cost: $${result.projectedCost53Q.toFixed(2)}`);
|
|
89
|
-
console.log(`Mean wall time: ${(result.meanWallMs / 1000).toFixed(1)}s\n`);
|
|
90
|
-
console.log('Per-question breakdown:');
|
|
91
|
-
const baselineCorrect = Object.values(BASELINE).filter((b) => b.correct).length;
|
|
92
|
-
let dagBetter = 0;
|
|
93
|
-
let dagWorse = 0;
|
|
94
|
-
for (const q of result.perQuestion) {
|
|
95
|
-
const baseline = BASELINE[q.taskId];
|
|
96
|
-
const baselineResult = baseline?.correct ? 'PASS' : 'FAIL';
|
|
97
|
-
const dagResult = q.correct ? 'PASS' : 'FAIL';
|
|
98
|
-
const change = !baseline?.correct && q.correct ? ' (+RECOVERED)' :
|
|
99
|
-
baseline?.correct && !q.correct ? ' (-REGRESSED)' : '';
|
|
100
|
-
if (!baseline?.correct && q.correct)
|
|
101
|
-
dagBetter++;
|
|
102
|
-
if (baseline?.correct && !q.correct)
|
|
103
|
-
dagWorse++;
|
|
104
|
-
console.log(` ${dagResult} [was ${baselineResult}]${change} ${q.taskId.slice(0, 8)}: got="${q.got?.slice(0, 40) ?? 'null'}" expected="${q.expected.slice(0, 40)}"`);
|
|
105
|
-
console.log(` steps=${q.steps} (completed=${q.completedSteps}, blocked=${q.blockedSteps}) plannerCycles=${q.plannerCycles} cost=$${q.costUsd.toFixed(4)} wall=${(q.wallMs / 1000).toFixed(1)}s`);
|
|
106
|
-
}
|
|
107
|
-
console.log(`\nComparison vs single-Sonnet (iter 63b):`);
|
|
108
|
-
console.log(` Baseline: ${baselineCorrect}/5 (${(baselineCorrect * 20).toFixed(0)}%)`);
|
|
109
|
-
console.log(` DAG: ${result.correct}/5 (${(result.accuracy * 100).toFixed(1)}%)`);
|
|
110
|
-
console.log(` Recovered: ${dagBetter} questions (single-Sonnet failed, DAG solved)`);
|
|
111
|
-
console.log(` Regressed: ${dagWorse} questions (single-Sonnet passed, DAG failed)`);
|
|
112
|
-
console.log('\n=== Gate Verdict ===');
|
|
113
|
-
const multiStepExecuted = result.perQuestion.some((q) => q.steps > 1);
|
|
114
|
-
const avgSteps = result.avgStepsPerQuestion;
|
|
115
|
-
if (result.correct >= 4 && multiStepExecuted) {
|
|
116
|
-
console.log(`PROCEED to iter 65 full 53Q run.`);
|
|
117
|
-
console.log(` Reason: DAG ${result.correct}/5, avg ${avgSteps.toFixed(1)} steps/Q, multi-step plans executing.`);
|
|
118
|
-
}
|
|
119
|
-
else if (result.correct >= 3 && avgSteps >= 2) {
|
|
120
|
-
console.log(`PROCEED with CAUTION to iter 65 — diagnose blocking first.`);
|
|
121
|
-
console.log(` Reason: DAG ${result.correct}/5, avg ${avgSteps.toFixed(1)} steps/Q.`);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
console.log(`DIAGNOSE before iter 65.`);
|
|
125
|
-
console.log(` Reason: DAG ${result.correct}/5, avg ${avgSteps.toFixed(1)} steps/Q.`);
|
|
126
|
-
if (!multiStepExecuted) {
|
|
127
|
-
console.log(` Issue: Plans collapsed to single step — check planner prompt.`);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
// Write JSON result
|
|
131
|
-
const jsonOut = {
|
|
132
|
-
run_type: 'dag-5q-pilot',
|
|
133
|
-
iter: 64,
|
|
134
|
-
timestamp: new Date().toISOString(),
|
|
135
|
-
planModel: process.env['PLAN_MODEL'] ?? 'claude-sonnet-4-6',
|
|
136
|
-
actModel: process.env['ACT_MODEL'] ?? 'gemini-2.5-pro',
|
|
137
|
-
summary: {
|
|
138
|
-
total: result.total,
|
|
139
|
-
correct: result.correct,
|
|
140
|
-
accuracy: result.accuracy,
|
|
141
|
-
avgStepsPerQuestion: result.avgStepsPerQuestion,
|
|
142
|
-
totalCostUsd: result.totalCostUsd,
|
|
143
|
-
projectedCost53Q: result.projectedCost53Q,
|
|
144
|
-
meanWallMs: result.meanWallMs,
|
|
145
|
-
},
|
|
146
|
-
baseline: { correct: baselineCorrect, total: 5, source: 'iter-63b' },
|
|
147
|
-
perQuestion: result.perQuestion,
|
|
148
|
-
};
|
|
149
|
-
const outPath = `/Users/cohen/Projects/ruflo/docs/benchmarks/runs/gaia-l1-iter64-dag-5q-pilot.json`;
|
|
150
|
-
const fs = await import('node:fs');
|
|
151
|
-
fs.writeFileSync(outPath, JSON.stringify(jsonOut, null, 2));
|
|
152
|
-
console.log(`\nResults written to: ${outPath}\n`);
|
|
153
|
-
}
|
|
154
|
-
main().catch((err) => {
|
|
155
|
-
console.error('Pilot failed:', err);
|
|
156
|
-
process.exit(1);
|
|
157
|
-
});
|
|
158
|
-
//# sourceMappingURL=gaia-dag-pilot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gaia-dag-pilot.js","sourceRoot":"","sources":["../../../src/benchmarks/gaia-dag-pilot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAkB,MAAM,eAAe,CAAC;AAG5D,8EAA8E;AAC9E,0DAA0D;AAC1D,8EAA8E;AAE9E,MAAM,cAAc,GAAG;IACrB,sCAAsC,EAAE,+BAA+B;IACvE,sCAAsC,EAAE,0BAA0B;IAClE,sCAAsC,EAAE,yBAAyB;IACjE,sCAAsC,EAAE,wCAAwC;IAChF,sCAAsC,EAAE,0CAA0C;CACnF,CAAC;AAEF,gDAAgD;AAChD,MAAM,QAAQ,GAAgE;IAC5E,sCAAsC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE;IACxE,sCAAsC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE;IACxE,sCAAsC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,E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,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GAIA DAG Harness — Co-Sight Architecture Port (ADR-139 Addendum)
|
|
3
|
-
*
|
|
4
|
-
* Ports the ZTE-AICloud/Co-Sight DAG orchestration pattern (Apache 2.0,
|
|
5
|
-
* arXiv 2510.21557) into the ruflo GAIA harness.
|
|
6
|
-
*
|
|
7
|
-
* Architecture:
|
|
8
|
-
* 1. PLAN — Claude Sonnet 4.6 reads the question and emits a DAG of 3-7
|
|
9
|
-
* steps: {id, description, depends_on: [], suggested_tool}.
|
|
10
|
-
* Claude-aware prompt: "3-5 steps max, direct answer when clear."
|
|
11
|
-
* 2. EXECUTE — Loop while ready steps exist (deps satisfied).
|
|
12
|
-
* Run all ready steps in PARALLEL (Promise.all, cap ≤5).
|
|
13
|
-
* Each step = a Gemini 2.5 Pro actor with the full tool suite.
|
|
14
|
-
* Actor marks step completed/blocked + writes step_notes.
|
|
15
|
-
* Blocked steps trigger planner re_plan before next cycle.
|
|
16
|
-
* 3. FINALIZE — Planner reads all step_notes → produces final answer
|
|
17
|
-
* using T2 extraction cascade from gaia-agent.ts.
|
|
18
|
-
* 4. CAMV — Async credibility labeling per step (stubbed, iter 65).
|
|
19
|
-
*
|
|
20
|
-
* Role assignment (env-configurable):
|
|
21
|
-
* PLAN_MODEL = claude-sonnet-4-6 (default)
|
|
22
|
-
* ACT_MODEL = gemini-2.5-pro (default)
|
|
23
|
-
* VISION_MODEL = gemini-2.5-pro (default, same as act)
|
|
24
|
-
*
|
|
25
|
-
* CLI:
|
|
26
|
-
* gaia-bench run --mode=dag --model claude-sonnet-4-6
|
|
27
|
-
*
|
|
28
|
-
* Cost: planner ~$0.02/Q + actors ~$0.03/Q = ~$0.05/Q (vs single-Sonnet ~$0.075)
|
|
29
|
-
*
|
|
30
|
-
* Refs: ADR-139, github.com/ZTE-AICloud/Co-Sight, arXiv 2510.21557, #2156
|
|
31
|
-
*/
|
|
32
|
-
import { GaiaQuestion } from './gaia-loader.js';
|
|
33
|
-
import { GaiaToolCatalogue } from './gaia-tools/index.js';
|
|
34
|
-
export interface DagStep {
|
|
35
|
-
id: number;
|
|
36
|
-
description: string;
|
|
37
|
-
depends_on: number[];
|
|
38
|
-
suggested_tool?: string;
|
|
39
|
-
status: 'not_started' | 'in_progress' | 'completed' | 'blocked';
|
|
40
|
-
step_notes: string;
|
|
41
|
-
}
|
|
42
|
-
export interface DagPlan {
|
|
43
|
-
title: string;
|
|
44
|
-
question: string;
|
|
45
|
-
steps: DagStep[];
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Get all steps whose dependencies are fully satisfied (completed).
|
|
49
|
-
* Mirrors Co-Sight's Plan.get_ready_steps().
|
|
50
|
-
*/
|
|
51
|
-
export declare function getReadySteps(plan: DagPlan): DagStep[];
|
|
52
|
-
export interface DagResult {
|
|
53
|
-
questionId: string;
|
|
54
|
-
finalAnswer: string | null;
|
|
55
|
-
normalisedAnswer: string;
|
|
56
|
-
plan: DagPlan;
|
|
57
|
-
totalSteps: number;
|
|
58
|
-
completedSteps: number;
|
|
59
|
-
blockedSteps: number;
|
|
60
|
-
plannerCycles: number;
|
|
61
|
-
totalInputTokens: number;
|
|
62
|
-
totalOutputTokens: number;
|
|
63
|
-
estimatedCostUsd: number;
|
|
64
|
-
wallMs: number;
|
|
65
|
-
timedOut?: boolean;
|
|
66
|
-
error?: string;
|
|
67
|
-
}
|
|
68
|
-
export interface DagOptions {
|
|
69
|
-
planModel?: string;
|
|
70
|
-
actModel?: string;
|
|
71
|
-
anthropicApiKey?: string;
|
|
72
|
-
geminiApiKey?: string;
|
|
73
|
-
catalogue?: GaiaToolCatalogue;
|
|
74
|
-
/** Disable CAMV stub (default: false — stub is always disabled in this iter). */
|
|
75
|
-
enableCamv?: boolean;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Run a GAIA question through the Co-Sight DAG harness.
|
|
79
|
-
*
|
|
80
|
-
* Steps:
|
|
81
|
-
* 1. Planner (Claude Sonnet) creates a DAG plan.
|
|
82
|
-
* 2. Execute loop: parallel actors (Gemini 2.5 Pro) run ready steps.
|
|
83
|
-
* 3. Blocked steps trigger replan (up to MAX_REPLAN_CYCLES).
|
|
84
|
-
* 4. Finalizer (Claude Sonnet) reads all step notes → final answer.
|
|
85
|
-
*/
|
|
86
|
-
export declare function runGaiaDAG(question: GaiaQuestion, options?: DagOptions): Promise<DagResult>;
|
|
87
|
-
export interface DagPilotResult {
|
|
88
|
-
correct: number;
|
|
89
|
-
total: number;
|
|
90
|
-
accuracy: number;
|
|
91
|
-
avgStepsPerQuestion: number;
|
|
92
|
-
perQuestion: Array<{
|
|
93
|
-
taskId: string;
|
|
94
|
-
question: string;
|
|
95
|
-
expected: string;
|
|
96
|
-
got: string | null;
|
|
97
|
-
correct: boolean;
|
|
98
|
-
steps: number;
|
|
99
|
-
completedSteps: number;
|
|
100
|
-
blockedSteps: number;
|
|
101
|
-
plannerCycles: number;
|
|
102
|
-
costUsd: number;
|
|
103
|
-
wallMs: number;
|
|
104
|
-
}>;
|
|
105
|
-
totalCostUsd: number;
|
|
106
|
-
projectedCost53Q: number;
|
|
107
|
-
meanWallMs: number;
|
|
108
|
-
}
|
|
109
|
-
export declare function runDagPilot(questions: GaiaQuestion[], options?: DagOptions): Promise<DagPilotResult>;
|
|
110
|
-
//# sourceMappingURL=gaia-dag.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gaia-dag.d.ts","sourceRoot":"","sources":["../../../src/benchmarks/gaia-dag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAEL,iBAAiB,EAKlB,MAAM,uBAAuB,CAAC;AAiD/B,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,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