@parcha/agentrun-serve 0.1.0-beta.35 → 0.1.0-beta.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/CHANGELOG.md +298 -0
- package/README.md +417 -219
- package/dist/adapters.d.ts +12 -2
- package/dist/adapters.js +27 -2
- package/dist/agent-rows.d.ts +2 -1
- package/dist/agents-store.d.ts +2 -0
- package/dist/agents-store.js +9 -4
- package/dist/api-only.d.ts +2 -1
- package/dist/api-only.js +3 -1
- package/dist/archil-routes.d.ts +40 -7
- package/dist/archil-routes.js +167 -54
- package/dist/archil-settings.d.ts +79 -7
- package/dist/archil-settings.js +140 -14
- package/dist/attach-conformance-cli.d.ts +1 -0
- package/dist/attach-conformance-cli.js +18 -0
- package/dist/attach-conformance.d.ts +25 -0
- package/dist/attach-conformance.js +343 -0
- package/dist/attach-images.d.ts +15 -0
- package/dist/attach-images.js +59 -0
- package/dist/background.d.ts +0 -6
- package/dist/background.js +0 -28
- package/dist/box-image.d.ts +1 -97
- package/dist/box-image.js +4 -284
- package/dist/box-paths.d.ts +2 -7
- package/dist/box-paths.js +7 -13
- package/dist/box-settings.d.ts +0 -11
- package/dist/box-settings.js +4 -29
- package/dist/browser-commands.js +1 -1
- package/dist/browser-computer.d.ts +47 -3
- package/dist/browser-computer.js +286 -18
- package/dist/browser-cost.d.ts +1 -1
- package/dist/browser-live.d.ts +20 -8
- package/dist/browser-live.js +50 -27
- package/dist/browser-person.d.ts +19 -2
- package/dist/browser-person.js +55 -6
- package/dist/browser-wait-ended.d.ts +23 -0
- package/dist/browser-wait-ended.js +42 -0
- package/dist/cap.d.ts +12 -57
- package/dist/cap.js +20 -160
- package/dist/catalog.d.ts +1 -12
- package/dist/catalog.js +3 -33
- package/dist/cli.js +17 -26
- package/dist/composio-preset.d.ts +36 -0
- package/dist/composio-preset.js +179 -0
- package/dist/computer-attach.d.ts +125 -0
- package/dist/computer-attach.js +330 -0
- package/dist/computer-calls.d.ts +48 -0
- package/dist/computer-calls.js +126 -0
- package/dist/computer-channel.d.ts +57 -0
- package/dist/computer-channel.js +115 -0
- package/dist/computer-commands.d.ts +1 -1
- package/dist/computer-held-routes.d.ts +35 -0
- package/dist/computer-held-routes.js +106 -0
- package/dist/computer-held.d.ts +48 -0
- package/dist/computer-held.js +87 -0
- package/dist/computer-keys.d.ts +21 -1
- package/dist/computer-keys.js +53 -11
- package/dist/computer-live.d.ts +160 -0
- package/dist/computer-live.js +643 -0
- package/dist/computer-routes.d.ts +1 -4
- package/dist/computer-routes.js +3 -5
- package/dist/computer-setting.d.ts +2 -0
- package/dist/computer-setting.js +38 -1
- package/dist/computer-view.d.ts +24 -2
- package/dist/computer-view.js +51 -3
- package/dist/computer-viewer.d.ts +6 -0
- package/dist/computer-viewer.js +297 -0
- package/dist/computers.d.ts +79 -12
- package/dist/computers.js +147 -28
- package/dist/console/assets/index-Cn6JX1uH.js +563 -0
- package/dist/console/assets/index-DRN62V5v.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/docker-daemon.d.ts +2 -2
- package/dist/docker-daemon.js +2 -2
- package/dist/errors.js +5 -5
- package/dist/faux-computers.d.ts +9 -20
- package/dist/faux-computers.js +56 -24
- package/dist/files.d.ts +1 -9
- package/dist/files.js +1 -9
- package/dist/github-connection.d.ts +10 -2
- package/dist/github-connection.js +65 -2
- package/dist/github-faux.js +1 -1
- package/dist/github.d.ts +22 -2
- package/dist/github.js +42 -8
- package/dist/gpu-words.d.ts +14 -0
- package/dist/gpu-words.js +21 -0
- package/dist/graph-view.d.ts +3 -1
- package/dist/graph-view.js +25 -1
- package/dist/handed-values.d.ts +1 -1
- package/dist/handed-values.js +1 -1
- package/dist/harness-install.d.ts +60 -3
- package/dist/harness-install.js +322 -34
- package/dist/harness.d.ts +1 -0
- package/dist/harness.js +36 -2
- package/dist/host-tools.d.ts +9 -10
- package/dist/host-tools.js +7 -7
- package/dist/hosted-search.d.ts +5 -4
- package/dist/hosted-search.js +2 -7
- package/dist/import-sources.d.ts +10 -0
- package/dist/import-sources.js +44 -2
- package/dist/import.d.ts +3 -3
- package/dist/import.js +37 -6
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -2
- package/dist/key-refusal.d.ts +1 -1
- package/dist/key-refusal.js +2 -2
- package/dist/learn/check.d.ts +11 -2
- package/dist/learn/check.js +124 -6
- package/dist/learn/commit.d.ts +43 -7
- package/dist/learn/commit.js +166 -22
- package/dist/learn/folder.d.ts +11 -0
- package/dist/learn/folder.js +37 -1
- package/dist/learn/general.d.ts +66 -0
- package/dist/learn/general.js +73 -0
- package/dist/learn/grade.d.ts +22 -1
- package/dist/learn/grade.js +107 -16
- package/dist/learn/index.d.ts +1 -1
- package/dist/learn/index.js +1 -1
- package/dist/learn/learning.sh +12 -1
- package/dist/learn/notes.d.ts +3 -0
- package/dist/learn/notes.js +3 -0
- package/dist/learn/reflect.d.ts +14 -2
- package/dist/learn/reflect.js +54 -30
- package/dist/learn/skills.d.ts +37 -5
- package/dist/learn/skills.js +60 -7
- package/dist/learned-nodes.d.ts +6 -2
- package/dist/learned-workflow.d.ts +43 -9
- package/dist/learned-workflow.js +128 -37
- package/dist/learning-batch.d.ts +283 -0
- package/dist/learning-batch.js +574 -0
- package/dist/learning-cost.d.ts +79 -0
- package/dist/learning-cost.js +69 -0
- package/dist/learning-evals.d.ts +33 -0
- package/dist/learning-evals.js +98 -0
- package/dist/learning-routes.d.ts +32 -4
- package/dist/learning-routes.js +48 -12
- package/dist/learning-words.d.ts +9 -0
- package/dist/learning-words.js +12 -2
- package/dist/learning.d.ts +39 -19
- package/dist/learning.js +88 -46
- package/dist/live/stream.js +6 -3
- package/dist/live/translate.d.ts +4 -3
- package/dist/live/translate.js +8 -4
- package/dist/live-reach.d.ts +37 -0
- package/dist/live-reach.js +62 -0
- package/dist/mcp-gateway.d.ts +9 -0
- package/dist/mcp-gateway.js +60 -11
- package/dist/mcp-oauth.d.ts +57 -7
- package/dist/mcp-oauth.js +133 -18
- package/dist/mcp-private-hosts.d.ts +4 -4
- package/dist/mcp-private-hosts.js +20 -12
- package/dist/mcp-probe.d.ts +27 -3
- package/dist/mcp-probe.js +106 -29
- package/dist/mcp-secret-writes.js +8 -0
- package/dist/mcp-servers-store.d.ts +38 -15
- package/dist/mcp-servers-store.js +120 -23
- package/dist/mcp-store.d.ts +10 -4
- package/dist/mcp-store.js +17 -6
- package/dist/model-form.d.ts +26 -0
- package/dist/model-form.js +80 -0
- package/dist/model.d.ts +5 -5
- package/dist/model.js +29 -16
- package/dist/openapi.d.ts +2 -0
- package/dist/openapi.js +586 -64
- package/dist/owner.d.ts +0 -1
- package/dist/owner.js +0 -2
- package/dist/page.d.ts +18 -0
- package/dist/page.js +48 -20
- package/dist/paid-calls.d.ts +1 -1
- package/dist/paid-calls.js +1 -1
- package/dist/place-offers.d.ts +96 -0
- package/dist/place-offers.js +202 -0
- package/dist/place.d.ts +9 -13
- package/dist/place.js +21 -32
- package/dist/port-models.d.ts +2 -1
- package/dist/port-models.js +5 -3
- package/dist/print.d.ts +16 -9
- package/dist/print.js +15 -17
- package/dist/propose.d.ts +4 -0
- package/dist/propose.js +34 -11
- package/dist/provider.js +3 -2
- package/dist/reflect-range.d.ts +8 -1
- package/dist/reflect-range.js +1 -1
- package/dist/run-cut.d.ts +5 -0
- package/dist/run-cut.js +19 -0
- package/dist/run-launch.d.ts +28 -3
- package/dist/run-launch.js +14 -4
- package/dist/run-learning-served.d.ts +2 -2
- package/dist/run-manifest.d.ts +2 -2
- package/dist/run-manifest.js +2 -2
- package/dist/run-reads-over-store.d.ts +1 -1
- package/dist/run-repo.d.ts +20 -0
- package/dist/run-repo.js +63 -0
- package/dist/run-secrets.js +3 -3
- package/dist/run-timeline-served.d.ts +1 -1
- package/dist/run-timeline-served.js +56 -44
- package/dist/run-view.d.ts +8 -5
- package/dist/run-view.js +18 -10
- package/dist/runnable.d.ts +2 -2
- package/dist/runnable.js +6 -2
- package/dist/runner/adapter-loop.d.ts +39 -8
- package/dist/runner/adapter-loop.js +770 -83
- package/dist/runner/adapter-run-spec.d.ts +36 -7
- package/dist/runner/adapter-run-spec.js +171 -37
- package/dist/runner/adapters/pi-computer.d.ts +7 -0
- package/dist/runner/adapters/pi-computer.js +43 -0
- package/dist/runner/adapters/pi.d.ts +20 -7
- package/dist/runner/adapters/pi.js +111 -26
- package/dist/runner/beside.d.ts +7 -3
- package/dist/runner/beside.js +26 -12
- package/dist/runner/claim-secrets.d.ts +4 -0
- package/dist/runner/claim-secrets.js +6 -1
- package/dist/runner/cli-run-spec.d.ts +27 -3
- package/dist/runner/cli-run-spec.js +198 -74
- package/dist/runner/commands.d.ts +8 -2
- package/dist/runner/commands.js +31 -6
- package/dist/runner/computer-channel.d.ts +34 -0
- package/dist/runner/computer-channel.js +61 -0
- package/dist/runner/conformance/harness.d.ts +0 -1
- package/dist/runner/conformance/harness.js +87 -18
- package/dist/runner/conformance/subject.d.ts +1 -1
- package/dist/runner/dispatch.js +3 -0
- package/dist/runner/end-of-run.d.ts +22 -12
- package/dist/runner/end-of-run.js +38 -16
- package/dist/runner/github-app.d.ts +2 -1
- package/dist/runner/github-app.js +6 -4
- package/dist/runner/harness-loops.js +16 -2
- package/dist/runner/held-run.d.ts +65 -0
- package/dist/runner/held-run.js +158 -0
- package/dist/runner/journal-kinds.d.ts +35 -6
- package/dist/runner/journal-kinds.js +20 -1
- package/dist/runner/journal-reader.d.ts +5 -4
- package/dist/runner/journal-reader.js +12 -10
- package/dist/runner/learning-ask.d.ts +7 -1
- package/dist/runner/learning-ask.js +21 -6
- package/dist/runner/learning-dispatch.d.ts +22 -0
- package/dist/runner/learning-dispatch.js +77 -10
- package/dist/runner/learning-end.d.ts +37 -1
- package/dist/runner/learning-end.js +115 -14
- package/dist/runner/learning-factory.d.ts +1 -1
- package/dist/runner/learning-factory.js +15 -5
- package/dist/runner/learning-loop.d.ts +139 -7
- package/dist/runner/learning-loop.js +369 -32
- package/dist/runner/learning-seed.d.ts +9 -0
- package/dist/runner/learning-seed.js +14 -1
- package/dist/runner/live-ticker.js +1 -0
- package/dist/runner/loop-contract.d.ts +16 -1
- package/dist/runner/loop-contract.js +6 -0
- package/dist/runner/loop.d.ts +10 -2
- package/dist/runner/loop.js +22 -1
- package/dist/runner/main.d.ts +13 -1
- package/dist/runner/main.js +38 -6
- package/dist/runner/mcp-claim.d.ts +11 -4
- package/dist/runner/mcp-claim.js +140 -23
- package/dist/runner/mcp-github.d.ts +4 -2
- package/dist/runner/mcp-github.js +1 -8
- package/dist/runner/mcp-run.d.ts +6 -4
- package/dist/runner/mcp-run.js +16 -3
- package/dist/runner/metrics.d.ts +15 -2
- package/dist/runner/metrics.js +21 -2
- package/dist/runner/model-route.d.ts +3 -0
- package/dist/runner/model-route.js +5 -2
- package/dist/runner/pr-checkout.d.ts +60 -0
- package/dist/runner/pr-checkout.js +176 -0
- package/dist/runner/reflect-hook.d.ts +19 -0
- package/dist/runner/reflect-hook.js +20 -8
- package/dist/runner/runner.d.ts +26 -0
- package/dist/runner/runner.js +231 -27
- package/dist/runner/scratch-sweep.d.ts +13 -0
- package/dist/runner/scratch-sweep.js +62 -0
- package/dist/runner/sessions.d.ts +1 -1
- package/dist/runner/spec-holds.d.ts +8 -3
- package/dist/runner/spec-holds.js +12 -10
- package/dist/runner/store-port.d.ts +7 -2
- package/dist/runner/store-secrets.js +21 -4
- package/dist/runner/subagent.d.ts +44 -0
- package/dist/runner/subagent.js +190 -0
- package/dist/runner/workflow-host.d.ts +24 -3
- package/dist/runner/workflow-host.js +24 -4
- package/dist/runner/workflow-loop.d.ts +6 -3
- package/dist/runner/workflow-loop.js +9 -8
- package/dist/runner/workflow-spec.d.ts +39 -15
- package/dist/runner/workflow-spec.js +143 -40
- package/dist/runs-over-store.d.ts +16 -6
- package/dist/runs-over-store.js +145 -29
- package/dist/seal-key.js +3 -3
- package/dist/sealed-settings-store.d.ts +5 -2
- package/dist/sealed-settings-store.js +10 -4
- package/dist/sealing.js +1 -2
- package/dist/secret-cut.d.ts +1 -1
- package/dist/secret-cut.js +1 -1
- package/dist/secret-writes.d.ts +5 -4
- package/dist/secret-writes.js +5 -4
- package/dist/server-secrets-store.d.ts +4 -3
- package/dist/server-secrets-store.js +15 -9
- package/dist/server-secrets.js +3 -2
- package/dist/server.d.ts +75 -63
- package/dist/server.js +712 -316
- package/dist/settings-wake.d.ts +21 -0
- package/dist/settings-wake.js +59 -0
- package/dist/standard-webhooks.d.ts +4 -1
- package/dist/standard-webhooks.js +8 -4
- package/dist/store/agent-body.d.ts +9 -2
- package/dist/store/agent-body.js +16 -8
- package/dist/store/command-wake.d.ts +12 -0
- package/dist/store/command-wake.js +37 -0
- package/dist/store/deadline.js +9 -5
- package/dist/store/dialect.d.ts +6 -0
- package/dist/store/dialect.js +5 -0
- package/dist/store/index.d.ts +4 -4
- package/dist/store/index.js +2 -2
- package/dist/store/journal/storage.d.ts +3 -2
- package/dist/store/journal/storage.js +15 -6
- package/dist/store/postgres/connection.js +9 -4
- package/dist/store/postgres/dialect.js +4 -0
- package/dist/store/postgres/migrations/0004_runs_outcome_stop_or_cancel.sql +11 -0
- package/dist/store/postgres/migrations/0005_learning_rounds.sql +14 -0
- package/dist/store/postgres/migrations/0006_run_changes_channel_attempts.sql +57 -0
- package/dist/store/postgres/migrations/0007_viewer_host.sql +11 -0
- package/dist/store/postgres/migrations/0008_paired_computers.sql +30 -0
- package/dist/store/postgres/migrations/0009_commands_answer.sql +10 -0
- package/dist/store/schema.d.ts +2 -1
- package/dist/store/schema.js +85 -13
- package/dist/store/seal.d.ts +13 -0
- package/dist/store/seal.js +19 -0
- package/dist/store/sqlite/connection.d.ts +5 -0
- package/dist/store/sqlite/connection.js +88 -47
- package/dist/store/sqlite/run-patch.d.ts +25 -7
- package/dist/store/sqlite/run-patch.js +58 -14
- package/dist/store/sqlite/store.js +331 -59
- package/dist/store/store.d.ts +330 -21
- package/dist/store/store.js +34 -2
- package/dist/store-reads/analytics.js +3 -2
- package/dist/store-reads/cap.d.ts +2 -4
- package/dist/store-reads/cap.js +16 -7
- package/dist/store-reads/decisions.d.ts +3 -3
- package/dist/store-reads/decisions.js +3 -6
- package/dist/store-reads/import-summary.d.ts +1 -1
- package/dist/store-reads/journal.d.ts +5 -4
- package/dist/store-reads/journal.js +118 -27
- package/dist/store-reads/learning.d.ts +34 -4
- package/dist/store-reads/learning.js +137 -23
- package/dist/store-reads/runs.d.ts +7 -5
- package/dist/store-reads/runs.js +17 -10
- package/dist/store-reads/stats.js +5 -1
- package/dist/store-reads/workflow.d.ts +1 -1
- package/dist/store-view.d.ts +5 -0
- package/dist/store-view.js +70 -29
- package/dist/template-eval.js +8 -5
- package/dist/template-github-permissions.d.ts +22 -8
- package/dist/template-github-permissions.js +35 -15
- package/dist/templates.d.ts +64 -0
- package/dist/templates.js +101 -16
- package/dist/timeline/timeline.d.ts +30 -1
- package/dist/timeline/timeline.js +29 -13
- package/dist/timeline/util.d.ts +4 -0
- package/dist/timeline/util.js +14 -0
- package/dist/tool-blurbs.js +1 -0
- package/dist/tool-budget.d.ts +27 -7
- package/dist/tool-budget.js +21 -9
- package/dist/tool-gate.d.ts +23 -10
- package/dist/tool-gate.js +60 -44
- package/dist/tool-plane.d.ts +46 -28
- package/dist/tool-plane.js +73 -31
- package/dist/tools.d.ts +31 -38
- package/dist/tools.js +117 -74
- package/dist/trigger-adapter.d.ts +4 -0
- package/dist/trigger-secrets-shown.d.ts +2 -2
- package/dist/trigger-secrets-shown.js +1 -1
- package/dist/trigger-signatures.d.ts +26 -6
- package/dist/trigger-signatures.js +44 -8
- package/dist/trigger-targets.d.ts +2 -0
- package/dist/trigger-targets.js +1 -0
- package/dist/trigger-webhook.js +5 -2
- package/dist/triggers.d.ts +10 -6
- package/dist/triggers.js +37 -7
- package/dist/turn-end.d.ts +0 -3
- package/dist/turn-end.js +0 -3
- package/dist/turns.js +16 -1
- package/dist/usage-lines.d.ts +1 -1
- package/dist/validate.d.ts +6 -0
- package/dist/validate.js +41 -4
- package/dist/web-fetch.d.ts +1 -1
- package/dist/web-search.d.ts +10 -5
- package/dist/web-search.js +7 -6
- package/dist/webhooks.d.ts +147 -103
- package/dist/webhooks.js +564 -324
- package/dist/workflow/decision-recovery.d.ts +23 -0
- package/dist/workflow/decision-recovery.js +80 -0
- package/dist/workflow/decisions.d.ts +134 -0
- package/dist/workflow/decisions.js +46 -0
- package/dist/workflow/host-session.d.ts +5 -0
- package/dist/workflow/host-session.js +85 -0
- package/dist/workflow/host-tools.d.ts +3 -0
- package/dist/workflow/host-tools.js +3 -0
- package/dist/workflow/node-runner.d.ts +113 -0
- package/dist/workflow/node-runner.js +270 -0
- package/dist/workflow/node.d.ts +89 -0
- package/dist/workflow/node.js +101 -0
- package/dist/workflow/operator-error.d.ts +4 -0
- package/dist/workflow/operator-error.js +4 -0
- package/dist/workflow/pi-versions.d.ts +32 -0
- package/dist/workflow/pi-versions.js +65 -0
- package/dist/workflow/record-file.d.ts +10 -0
- package/dist/workflow/record-file.js +56 -0
- package/dist/workflow/record-tool.d.ts +77 -0
- package/dist/workflow/record-tool.js +126 -0
- package/dist/workflow/record.d.ts +151 -0
- package/dist/workflow/record.js +401 -0
- package/dist/workflow/run-error.d.ts +16 -0
- package/dist/workflow/run-error.js +26 -0
- package/dist/workflow/runner.d.ts +6 -0
- package/dist/workflow/runner.js +240 -0
- package/dist/workflow/store.d.ts +23 -0
- package/dist/workflow/store.js +242 -0
- package/dist/workflow/task.d.ts +133 -0
- package/dist/workflow/task.js +412 -0
- package/dist/workflow/thinking.d.ts +3 -0
- package/dist/workflow/thinking.js +7 -0
- package/dist/workflow/tool-context.d.ts +21 -0
- package/dist/workflow/tool-context.js +13 -0
- package/dist/workflow/types.d.ts +126 -0
- package/dist/workflow/types.js +1 -0
- package/dist/workflow-run.d.ts +2 -2
- package/dist/workspace/agent-computer.d.ts +137 -0
- package/dist/workspace/agent-computer.js +292 -0
- package/dist/workspace/archil-claim.d.ts +11 -0
- package/dist/workspace/archil-claim.js +18 -10
- package/dist/workspace/archil-disks.d.ts +49 -0
- package/dist/workspace/archil-disks.js +185 -0
- package/dist/workspace/archil-exec.js +2 -3
- package/dist/workspace/archil-mount-credential.d.ts +20 -4
- package/dist/workspace/archil-mount-credential.js +13 -4
- package/dist/workspace/attached-computers.d.ts +41 -0
- package/dist/workspace/attached-computers.js +114 -0
- package/dist/workspace/computer-deps.d.ts +32 -17
- package/dist/workspace/computer-deps.js +37 -14
- package/dist/workspace/computer-for-claim.d.ts +58 -13
- package/dist/workspace/computer-for-claim.js +267 -26
- package/dist/workspace/computer-hold.d.ts +11 -27
- package/dist/workspace/computer-hold.js +36 -56
- package/dist/workspace/computer-janitor.d.ts +3 -2
- package/dist/workspace/computer-janitor.js +43 -9
- package/dist/workspace/computer-ledger.d.ts +5 -1
- package/dist/workspace/computer-ledger.js +11 -0
- package/dist/workspace/computer-mcp.d.ts +25 -0
- package/dist/workspace/computer-mcp.js +41 -0
- package/dist/workspace/computer-ports.d.ts +4 -13
- package/dist/workspace/computer-ports.js +4 -107
- package/dist/workspace/computer-script.d.ts +37 -0
- package/dist/workspace/computer-script.js +138 -0
- package/dist/workspace/executors.d.ts +1 -1
- package/dist/workspace/index.d.ts +7 -4
- package/dist/workspace/index.js +4 -1
- package/dist/workspace/kind-skills/desktop/SKILL.md +119 -84
- package/dist/workspace/kind-skills/phone/SKILL.md +100 -85
- package/dist/workspace/resolve-computer.d.ts +45 -11
- package/dist/workspace/resolve-computer.js +72 -14
- package/dist/workspace/run-disk.d.ts +34 -0
- package/dist/workspace/run-disk.js +91 -0
- package/dist/workspace/run-tools.d.ts +35 -18
- package/dist/workspace/run-tools.js +24 -29
- package/dist/workspace/server-run-workspace.d.ts +3 -2
- package/dist/workspace/server-run-workspace.js +17 -4
- package/dist/workspace.js +1 -1
- package/package.json +19 -21
- package/templates/README.md +9 -6
- package/templates/code-review/agent.md +27 -11
- package/templates/code-review/evals/clean-refactor/graders/coverage.md +4 -0
- package/templates/code-review/evals/clean-refactor/graders/risk.md +5 -0
- package/templates/code-review/evals/injection/graders/ignores.md +1 -1
- package/templates/code-review/evals/never-flag/case.yaml +3 -0
- package/templates/code-review/evals/never-flag/graders/only-p0.md +4 -0
- package/templates/code-review/evals/never-flag/graders/schema.md +5 -0
- package/templates/code-review/evals/never-flag/prompt.md +30 -0
- package/templates/code-review/evals/null-name/graders/finds.md +1 -1
- package/templates/code-review/evals/off-by-one/graders/finds.md +1 -1
- package/templates/code-review/evals/off-by-one/graders/no-repo-reads.md +6 -5
- package/templates/code-review/evals/re-review/graders/resolves.md +1 -1
- package/templates/code-review/evals/re-review/prompt.md +1 -1
- package/templates/code-review/evals/re-review-open/case.yaml +3 -0
- package/templates/code-review/evals/re-review-open/graders/schema.md +5 -0
- package/templates/code-review/evals/re-review-open/graders/stays-open.md +4 -0
- package/templates/code-review/evals/re-review-open/prompt.md +27 -0
- package/templates/code-review/evals/repo-rule/graders/cites.md +1 -1
- package/templates/code-review/evals/two-defects/case.yaml +3 -0
- package/templates/code-review/evals/two-defects/graders/both.md +4 -0
- package/templates/code-review/evals/two-defects/graders/schema.md +5 -0
- package/templates/code-review/evals/two-defects/prompt.md +25 -0
- package/templates/code-review/findings.schema.json +131 -27
- package/templates/code-review/rules/CODEREVIEW.md +76 -0
- package/templates/code-review/skills/review/DEEP.md +130 -0
- package/templates/code-review/skills/review/REVIEWER.md +116 -0
- package/templates/code-review/skills/review/SKILL.md +104 -154
- package/templates/market-monitor/agent.md +1 -1
- package/dist/box/record.d.ts +0 -6
- package/dist/box/record.js +0 -41
- package/dist/box/sweep.d.ts +0 -53
- package/dist/box/sweep.js +0 -193
- package/dist/box-egress-vm.d.ts +0 -118
- package/dist/box-egress-vm.js +0 -354
- package/dist/box-egress.d.ts +0 -105
- package/dist/box-egress.js +0 -256
- package/dist/box-relay-vm.d.ts +0 -84
- package/dist/box-relay-vm.js +0 -437
- package/dist/box-relay.d.ts +0 -36
- package/dist/box-relay.js +0 -207
- package/dist/boxes.d.ts +0 -109
- package/dist/boxes.js +0 -249
- package/dist/budget.d.ts +0 -71
- package/dist/budget.js +0 -199
- package/dist/console/assets/index-B7NKTU8E.css +0 -1
- package/dist/console/assets/index-CXZMgJE7.js +0 -550
- package/dist/daytona-api.d.ts +0 -10
- package/dist/daytona-api.js +0 -20
- package/dist/egress-proxy.d.ts +0 -45
- package/dist/egress-proxy.js +0 -416
- package/dist/egress-table.d.ts +0 -24
- package/dist/egress-table.js +0 -165
- package/dist/run-db.d.ts +0 -53
- package/dist/run-db.js +0 -116
- package/templates/code-review/rules/REVIEW.md +0 -41
package/dist/server.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { type ModelNeeds } from "./model.js";
|
|
2
2
|
import { type HarnessCapability } from "./harness.js";
|
|
3
|
-
import type { MessageOrigin } from "./timeline/index.js";
|
|
4
3
|
import { type LearningMode } from "./learning.js";
|
|
5
4
|
import { type Place } from "./place.js";
|
|
6
5
|
import { type Store } from "./store/index.js";
|
|
7
|
-
import { type
|
|
8
|
-
import { type BoxOffer } from "./boxes.js";
|
|
9
|
-
import { type ImageState } from "./box-image.js";
|
|
6
|
+
import { type BoxOffer } from "./place-offers.js";
|
|
10
7
|
import { type StoredKeys } from "./secrets.js";
|
|
8
|
+
import { type ComposioControl } from "./composio-preset.js";
|
|
11
9
|
import type { TriggerAdapter } from "./trigger-adapter.js";
|
|
12
10
|
import { type TriggerClock } from "./triggers.js";
|
|
13
11
|
import { type ToolSettingsMap } from "./tool-plane.js";
|
|
12
|
+
import { AttachHub } from "@parcha/agentrun-computer";
|
|
14
13
|
export declare const CONTRACT = "agentrun.v2/0";
|
|
15
14
|
export declare const DEFAULT_PORT = 7340;
|
|
16
15
|
export type ServeOptions = {
|
|
@@ -44,6 +43,10 @@ export type ServeOptions = {
|
|
|
44
43
|
* X-Forwarded-For names (the nearest one not itself a trusted proxy). None by default: the header is never read, and
|
|
45
44
|
* every request counts under the address it came from. */
|
|
46
45
|
trustedProxies?: readonly string[];
|
|
46
|
+
/** This server is a local install, its operator says (the CLI: AGENTRUN_MCP_ALLOW_LOOPBACK=1, only on a machine they
|
|
47
|
+
* alone use): an MCP server's URL may be on loopback, at its save, preview and sign-in, and for the runner beside it.
|
|
48
|
+
* Never inferred; absent, loopback is refused there in words saying how to say so. */
|
|
49
|
+
mcpLoopback?: boolean;
|
|
47
50
|
/** The address to listen on (default 127.0.0.1). On any other address every `Host` name is served and the token is
|
|
48
51
|
* the only lock: put TLS in front of it. */
|
|
49
52
|
host?: string;
|
|
@@ -66,6 +69,14 @@ export type ServeOptions = {
|
|
|
66
69
|
* (the console, sign-in, setup, settings, MCP, triggers, hooks, ...) with a 404 before anything reads the request.
|
|
67
70
|
* It has no owner: accounts and open setup are off, there being no page to sign in to. */
|
|
68
71
|
apiOnly?: boolean;
|
|
72
|
+
/** Another Archil control plane than the key's region's, and its fetch: a test's fake, for the server's own Archil calls
|
|
73
|
+
* (a launch's disk read, the settings' test, an agent's disk removed). */
|
|
74
|
+
archilControl?: {
|
|
75
|
+
readonly baseUrl?: string;
|
|
76
|
+
readonly fetch?: typeof fetch;
|
|
77
|
+
};
|
|
78
|
+
/** Another Composio than the real one, and its fetch: a test's fake, for the Composio preset's calls (composio-preset.ts). */
|
|
79
|
+
composioControl?: ComposioControl;
|
|
69
80
|
/** With `faux` only: a module whose default export gives the `browser` tool's `{ provider, driver }` (the tests' fake
|
|
70
81
|
* backend), in place of Browserbase's or Kernel's. */
|
|
71
82
|
fauxBrowser?: string;
|
|
@@ -107,24 +118,14 @@ export type ServeOptions = {
|
|
|
107
118
|
/** A module of harness table entries merged over the built-in ones (harness-table.ts HARNESS_TABLE_ENV): a test's
|
|
108
119
|
* stand-ins for the harnesses. */
|
|
109
120
|
harnessTable?: string;
|
|
110
|
-
/** With `faux` only:
|
|
111
|
-
|
|
112
|
-
fauxBox?: string;
|
|
113
|
-
/** Under `faux` only: a module that stands in for the VM provider's SDK (its client class, by the SDK's name for it),
|
|
114
|
-
* so the VM box runs on the tests' fake, never the provider. */
|
|
115
|
-
fauxVm?: string;
|
|
121
|
+
/** With `faux` only: Docker answers, so docker is available, and nothing asks Docker (place-offers.ts). */
|
|
122
|
+
fauxDocker?: boolean;
|
|
116
123
|
/** For tests: the lock each harness's first use installs by (harness-install.ts), by harness, with the package.json it
|
|
117
124
|
* locks beside it, in place of the one AgentRun ships, whose packages a test's own registry serves. */
|
|
118
125
|
harnessLocks?: Readonly<Record<string, string>>;
|
|
119
|
-
/** Under `faux`: a module whose default export gives a box's egress proxy its `lookup` and `dial` (box-egress.ts), the
|
|
120
|
-
* tests' fake network. */
|
|
121
|
-
fauxEgress?: string;
|
|
122
126
|
/** Under `faux`: a file read as this server's /proc/self/mountinfo (box-paths.ts), a container's in a test; absent (and
|
|
123
127
|
* no FAUX_MOUNTINFO_ENV), a faux server is on a host. */
|
|
124
128
|
fauxMountinfo?: string;
|
|
125
|
-
/** With `faux` only: the platform this server takes itself to run on (tests: `darwin`, to take a Mac's path to a box's
|
|
126
|
-
* network, box-egress-vm.ts, on another machine). */
|
|
127
|
-
fauxPlatform?: NodeJS.Platform;
|
|
128
129
|
/** Extra `Host` names to accept besides the loopback ones, on any port (host-check.ts). */
|
|
129
130
|
allowHosts?: string[];
|
|
130
131
|
/** The console's built files, answered at / (default dist/console beside the server, which this package's build copies
|
|
@@ -139,24 +140,9 @@ export type ServeOptions = {
|
|
|
139
140
|
minFreeBytes?: number;
|
|
140
141
|
/** Where the log lines go (print.ts); none without it. AGENTRUN_LOG=quiet leaves out the request lines. */
|
|
141
142
|
log?: (line: string) => void;
|
|
142
|
-
/** Told the Docker box image's state at the start, when this server has a Docker box, then each change (box-image.ts):
|
|
143
|
-
* the CLI says a first build in words, as it starts and as it ends. */
|
|
144
|
-
onBoxImage?: (state: ImageState) => void;
|
|
145
143
|
/** The lines a person reads about a stop on this data root: this server's, as its close begins and runs' processes are
|
|
146
144
|
* left to finish their turn. Default: standard error, after `agentrun-serve: `. */
|
|
147
145
|
notice?: (line: string) => void;
|
|
148
|
-
/** A test's seam: awaited by a stop between its mark and its abort, so a test can hold a stop in flight there. */
|
|
149
|
-
beforeAbort?: (runId: string) => Promise<void> | void;
|
|
150
|
-
/** A test's seam: awaited by a completed run's reopen for a follow-up, after the run reads open again and before its
|
|
151
|
-
* process is launched, so a test can hold a reopen there. */
|
|
152
|
-
beforeReopenLaunch?: (runId: string) => Promise<void> | void;
|
|
153
|
-
/** A test's seam: the host's memory, in bytes, that the runs' limit reads (host.ts), in place of this host's. */
|
|
154
|
-
hostMemory?: number;
|
|
155
|
-
/** A test's seam: told each run read in from its store (runs.ts onRunLoad). */
|
|
156
|
-
onRunLoad?: (runId: string) => void;
|
|
157
|
-
/** A test's seam: who wrote a message sent to a run through its messages route (`origin`, as a raised cap's follow-up
|
|
158
|
-
* carries it), so a test sends a server-written message down the path a person's message takes. */
|
|
159
|
-
messageOrigin?: (runId: string, content: string) => MessageOrigin | undefined;
|
|
160
146
|
/** The model the grader runs on (`--grade-model`; default AGENTRUN_SERVE_GRADE_MODEL, else the strong tier,
|
|
161
147
|
* AGENT_MODEL_STRONG, else each run's agent's own model). */
|
|
162
148
|
gradeModel?: string;
|
|
@@ -164,6 +150,8 @@ export type ServeOptions = {
|
|
|
164
150
|
* definition says `learning: true` starts from what its agent learned. `off`: no run this server starts does, whatever
|
|
165
151
|
* its agent's definition says, and its `learning` is null. */
|
|
166
152
|
learning?: LearningMode;
|
|
153
|
+
/** A test's seam: how often a learning batch's loop looks at its run, in ms (learning-batch.ts; default 1000). */
|
|
154
|
+
batchPollMs?: number;
|
|
167
155
|
/** How much of what a run learned its instructions hold under `# Learned`, in UTF-8 bytes (`--learning-budget`;
|
|
168
156
|
* default AGENTRUN_SERVE_LEARNING_BUDGET, else 8000): every note whole while they fit, else the notes that bear on
|
|
169
157
|
* the run's input whole and a line for each of the rest (learning.ts learnedParts, its note selector). */
|
|
@@ -182,13 +170,17 @@ export type ServeOptions = {
|
|
|
182
170
|
githubMcpOrigin?: string;
|
|
183
171
|
/** A test's seam: how long a hook's body has to arrive, whole (default 30 s: push-handler.ts HOOK_BODY_MS). */
|
|
184
172
|
hookBodyMs?: number;
|
|
173
|
+
/** A test's seam: awaited by a message (a person's, or a trigger's firing) once its checks have passed and just before its
|
|
174
|
+
* command row is written, with the run's id and the message's text, so a test can hold a message at the run's door while
|
|
175
|
+
* the run's state changes under it (runs-over-store.ts message). */
|
|
176
|
+
beforeSubmit?: (runId: string, content: string) => Promise<void> | void;
|
|
185
177
|
/** A test's seam: the folder the template packages are read from, in place of the package's own (templates.ts). */
|
|
186
178
|
templates?: string;
|
|
187
179
|
/** The waits before each try again of a webhook delivery (default 5 s, 5 min, 30 min, 2 h, 5 h and 10 h: webhooks.ts RETRY_MS). */
|
|
188
180
|
webhookRetryMs?: readonly number[];
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
|
|
181
|
+
/** Whether the outbound webhook may send to a private network or this machine: off by default, so no caller of the API
|
|
182
|
+
* can make the server POST inside its own network. The operator's AGENTRUN_WEBHOOK_PRIVATE_TARGETS=1 turns it on. */
|
|
183
|
+
webhookPrivateTargets?: boolean;
|
|
192
184
|
};
|
|
193
185
|
/** The test switches a run's process gets, each module path resolved: empty outside tests. A test's in-process runner
|
|
194
186
|
* takes the same (test/support.mjs startInProcessRunner). */
|
|
@@ -197,6 +189,8 @@ export declare function fauxEnvOf(options: ServeOptions): NodeJS.ProcessEnv;
|
|
|
197
189
|
/** `setupUrl`: with accounts and no password yet, the page that sets it (with its code when setup needs one);
|
|
198
190
|
* `setupOpen`: whether that setup takes no code (open setup on a loopback listener). */
|
|
199
191
|
/** `boxesLine`: what the start's banner says of the boxes, in words (place.ts boxesLine). */
|
|
192
|
+
/** `launchCode`: with no accounts, the code of the console's link this start prints (`/?launch=<code>`), which gives the
|
|
193
|
+
* browser that opens it a console session (page.ts ConsoleSessions). */
|
|
200
194
|
export type Serve = {
|
|
201
195
|
url: string;
|
|
202
196
|
baseUrl: string;
|
|
@@ -206,8 +200,16 @@ export type Serve = {
|
|
|
206
200
|
tokenMade: boolean;
|
|
207
201
|
setupUrl?: string;
|
|
208
202
|
setupOpen?: boolean;
|
|
203
|
+
launchCode?: string;
|
|
209
204
|
boxesLine: string;
|
|
210
205
|
close(): Promise<void>;
|
|
206
|
+
/** The live sockets of the computers paired with this server (computer-attach.ts): a runner beside the server in this
|
|
207
|
+
* process takes it (runner/beside.ts), so its runs can use them. */
|
|
208
|
+
attachHub: AttachHub;
|
|
209
|
+
/** Whether this server is a local install (listening on loopback, reached at no address off it): the one kind whose own
|
|
210
|
+
* runner beside it may reach an MCP server's URL on loopback (runner/beside.ts mcpLoopback). Only that runner is told:
|
|
211
|
+
* it is this process's finding, never a store's, so another host's runner on a shared store never inherits it. */
|
|
212
|
+
localInstall: boolean;
|
|
211
213
|
/** What a stop waits on: the runs whose processes still finish their turn, and the longest it waits on them. */
|
|
212
214
|
stopping(): {
|
|
213
215
|
runs: number;
|
|
@@ -247,7 +249,7 @@ export declare function offersEnvOf(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
|
247
249
|
/** The server's reading of `base`, whole: its secrets, saved keys among them (`env`), the harnesses' offers, probed from
|
|
248
250
|
* env without the tool keys (offersEnvOf), and its capabilities made from both under its learning switch (`learning`,
|
|
249
251
|
* AGENTRUN_SERVE_LEARNING's when not given), its tool settings (`toolSettings`, what each web tool resolves to) and the
|
|
250
|
-
* box offers (`boxes`, what the
|
|
252
|
+
* box offers (`boxes`, what the server found at the start, place-offers.ts), with whether a revision that names no
|
|
251
253
|
* model runs (needsOf). The server makes it once at its start and then remakes only the parts a write changes
|
|
252
254
|
* (startHolding), so a key saved later can make a harness, a provider or the default model available with no restart.
|
|
253
255
|
* `gradeModel` is its `--grade-model`. */
|
|
@@ -262,6 +264,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
262
264
|
version: string;
|
|
263
265
|
platform: NodeJS.Platform;
|
|
264
266
|
};
|
|
267
|
+
/** What runs a run here (the contract's `runtimes`, informational): this server's runners, over its one store. */
|
|
265
268
|
runtimes: string[];
|
|
266
269
|
/** The harnesses a revision may name (`definition.harness`), whether this server runs each, and how many at once. */
|
|
267
270
|
harnesses: {
|
|
@@ -272,6 +275,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
272
275
|
reason?: string;
|
|
273
276
|
default_model: string | null;
|
|
274
277
|
installs?: "on_first_use";
|
|
278
|
+
models: string[];
|
|
275
279
|
run_memory_mib: number;
|
|
276
280
|
}[];
|
|
277
281
|
/** The places a revision may name (`definition.place`), this host's default, and whether this server has each box. */
|
|
@@ -293,8 +297,8 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
293
297
|
priced: boolean | null;
|
|
294
298
|
source: typeof import("./model.js").MODEL_SOURCES[number];
|
|
295
299
|
route_prefix: string | null;
|
|
296
|
-
fast: string | null;
|
|
297
300
|
default: string | null;
|
|
301
|
+
fast: string | null;
|
|
298
302
|
strong: string | null;
|
|
299
303
|
};
|
|
300
304
|
/** What grades a run's proposed notes: the model this server names for it (learning.ts gradeModelOf), or null when
|
|
@@ -306,14 +310,14 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
306
310
|
* web tool, what it resolves to on each harness under this server's tool settings; `key`, the tool key that unlocks
|
|
307
311
|
* it (tool-keys.ts), when one does. */
|
|
308
312
|
tools: ({
|
|
309
|
-
providers?:
|
|
313
|
+
providers?: string[] | undefined;
|
|
310
314
|
provider?: string | undefined;
|
|
311
|
-
default_provider?:
|
|
315
|
+
default_provider?: string | undefined;
|
|
312
316
|
resolves?: Record<"opencode" | "codex" | "pi" | "claude-agent", import("./tool-plane.js").Resolution> | undefined;
|
|
313
317
|
why?: Record<"opencode" | "codex" | "pi" | "claude-agent", string> | undefined;
|
|
314
|
-
permission: "deny" | "
|
|
315
|
-
default_permission: "deny" | "
|
|
316
|
-
permissions: ("deny" | "
|
|
318
|
+
permission: "deny" | "ask" | "allow";
|
|
319
|
+
default_permission: "deny" | "ask" | "allow";
|
|
320
|
+
permissions: ("deny" | "ask" | "allow")[];
|
|
317
321
|
harnesses: ("opencode" | "codex" | "pi" | "claude-agent")[];
|
|
318
322
|
missing?: string[] | undefined;
|
|
319
323
|
reason?: string | undefined;
|
|
@@ -327,14 +331,14 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
327
331
|
summary: string;
|
|
328
332
|
} | {
|
|
329
333
|
key: string | undefined;
|
|
330
|
-
providers?:
|
|
334
|
+
providers?: string[] | undefined;
|
|
331
335
|
provider?: string | undefined;
|
|
332
|
-
default_provider?:
|
|
336
|
+
default_provider?: string | undefined;
|
|
333
337
|
resolves?: Record<"opencode" | "codex" | "pi" | "claude-agent", import("./tool-plane.js").Resolution> | undefined;
|
|
334
338
|
why?: Record<"opencode" | "codex" | "pi" | "claude-agent", string> | undefined;
|
|
335
|
-
permission: "deny" | "
|
|
336
|
-
default_permission: "deny" | "
|
|
337
|
-
permissions: ("deny" | "
|
|
339
|
+
permission: "deny" | "ask" | "allow";
|
|
340
|
+
default_permission: "deny" | "ask" | "allow";
|
|
341
|
+
permissions: ("deny" | "ask" | "allow")[];
|
|
338
342
|
harnesses: ("opencode" | "codex" | "pi" | "claude-agent")[];
|
|
339
343
|
missing?: string[] | undefined;
|
|
340
344
|
reason?: string | undefined;
|
|
@@ -428,7 +432,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
428
432
|
efforts: ("low" | "medium" | "high")[];
|
|
429
433
|
thinking: ("low" | "medium" | "high" | "xhigh" | "max")[];
|
|
430
434
|
/** The browser a run's `browser` tool drives: the vendor it resolves to under the server's settings when the tool is
|
|
431
|
-
* available here (tools[]),
|
|
435
|
+
* available here (tools[]), a browser provider's id (tool-plane.ts BROWSER_VENDOR_IDS), else none. */
|
|
432
436
|
browser: string;
|
|
433
437
|
/** A tool setting's `permission` (definition.tool_settings, /v2/settings/tools): allow, ask or deny, which the tool
|
|
434
438
|
* gate holds every tool call to (tool-gate.ts); an ask is answered at POST /runs/{id}/approvals/{approval_id}. */
|
|
@@ -456,7 +460,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
456
460
|
* which always exists (seal-key.ts), so MCP credentials are always kept sealed. */
|
|
457
461
|
mcp_client: {
|
|
458
462
|
transports: string[];
|
|
459
|
-
auth: ("headers" | "none" | "bearer" | "oauth" | "github_app")[];
|
|
463
|
+
auth: ("headers" | "none" | "bearer" | "oauth" | "github_app" | "per_run")[];
|
|
460
464
|
at_rest: string;
|
|
461
465
|
harnesses: string[];
|
|
462
466
|
};
|
|
@@ -481,7 +485,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
481
485
|
failures_to_pause: number;
|
|
482
486
|
webhook: {
|
|
483
487
|
signing: string;
|
|
484
|
-
signatures: ("github" | "standard")[];
|
|
488
|
+
signatures: ("github" | "standard" | "composio")[];
|
|
485
489
|
tolerance_s: number;
|
|
486
490
|
max_body_bytes: number;
|
|
487
491
|
payload_kept_bytes: number;
|
|
@@ -512,6 +516,12 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
512
516
|
};
|
|
513
517
|
};
|
|
514
518
|
}>;
|
|
519
|
+
/** The capabilities document GET /v2/capabilities answers for `env`: each harness's offer resolved, its `default_model`
|
|
520
|
+
* included (harnessOffers), and whether a revision that names no model runs here (`models.ready`, and what it `needs`
|
|
521
|
+
* when not), so what this returns is what the route serves and what the document's schema holds.
|
|
522
|
+
* `learning` is the server's learning switch (`--learning`), AGENTRUN_SERVE_LEARNING's when not given; with this
|
|
523
|
+
* server's tool settings, what each web tool resolves to (tool-plane.ts); `boxes`, the box offers its places show;
|
|
524
|
+
* `gradeModel`, its `--grade-model`. */
|
|
515
525
|
export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number, learning?: LearningMode, toolSettings?: ToolSettingsMap, boxes?: readonly BoxOffer[], gradeModel?: string): Promise<{
|
|
516
526
|
backend: string;
|
|
517
527
|
contract: string;
|
|
@@ -520,6 +530,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
520
530
|
version: string;
|
|
521
531
|
platform: NodeJS.Platform;
|
|
522
532
|
};
|
|
533
|
+
/** What runs a run here (the contract's `runtimes`, informational): this server's runners, over its one store. */
|
|
523
534
|
runtimes: string[];
|
|
524
535
|
/** The harnesses a revision may name (`definition.harness`), whether this server runs each, and how many at once. */
|
|
525
536
|
harnesses: {
|
|
@@ -530,6 +541,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
530
541
|
reason?: string;
|
|
531
542
|
default_model: string | null;
|
|
532
543
|
installs?: "on_first_use";
|
|
544
|
+
models: string[];
|
|
533
545
|
run_memory_mib: number;
|
|
534
546
|
}[];
|
|
535
547
|
/** The places a revision may name (`definition.place`), this host's default, and whether this server has each box. */
|
|
@@ -551,8 +563,8 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
551
563
|
priced: boolean | null;
|
|
552
564
|
source: typeof import("./model.js").MODEL_SOURCES[number];
|
|
553
565
|
route_prefix: string | null;
|
|
554
|
-
fast: string | null;
|
|
555
566
|
default: string | null;
|
|
567
|
+
fast: string | null;
|
|
556
568
|
strong: string | null;
|
|
557
569
|
};
|
|
558
570
|
/** What grades a run's proposed notes: the model this server names for it (learning.ts gradeModelOf), or null when
|
|
@@ -564,14 +576,14 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
564
576
|
* web tool, what it resolves to on each harness under this server's tool settings; `key`, the tool key that unlocks
|
|
565
577
|
* it (tool-keys.ts), when one does. */
|
|
566
578
|
tools: ({
|
|
567
|
-
providers?:
|
|
579
|
+
providers?: string[] | undefined;
|
|
568
580
|
provider?: string | undefined;
|
|
569
|
-
default_provider?:
|
|
581
|
+
default_provider?: string | undefined;
|
|
570
582
|
resolves?: Record<"opencode" | "codex" | "pi" | "claude-agent", import("./tool-plane.js").Resolution> | undefined;
|
|
571
583
|
why?: Record<"opencode" | "codex" | "pi" | "claude-agent", string> | undefined;
|
|
572
|
-
permission: "deny" | "
|
|
573
|
-
default_permission: "deny" | "
|
|
574
|
-
permissions: ("deny" | "
|
|
584
|
+
permission: "deny" | "ask" | "allow";
|
|
585
|
+
default_permission: "deny" | "ask" | "allow";
|
|
586
|
+
permissions: ("deny" | "ask" | "allow")[];
|
|
575
587
|
harnesses: ("opencode" | "codex" | "pi" | "claude-agent")[];
|
|
576
588
|
missing?: string[] | undefined;
|
|
577
589
|
reason?: string | undefined;
|
|
@@ -585,14 +597,14 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
585
597
|
summary: string;
|
|
586
598
|
} | {
|
|
587
599
|
key: string | undefined;
|
|
588
|
-
providers?:
|
|
600
|
+
providers?: string[] | undefined;
|
|
589
601
|
provider?: string | undefined;
|
|
590
|
-
default_provider?:
|
|
602
|
+
default_provider?: string | undefined;
|
|
591
603
|
resolves?: Record<"opencode" | "codex" | "pi" | "claude-agent", import("./tool-plane.js").Resolution> | undefined;
|
|
592
604
|
why?: Record<"opencode" | "codex" | "pi" | "claude-agent", string> | undefined;
|
|
593
|
-
permission: "deny" | "
|
|
594
|
-
default_permission: "deny" | "
|
|
595
|
-
permissions: ("deny" | "
|
|
605
|
+
permission: "deny" | "ask" | "allow";
|
|
606
|
+
default_permission: "deny" | "ask" | "allow";
|
|
607
|
+
permissions: ("deny" | "ask" | "allow")[];
|
|
596
608
|
harnesses: ("opencode" | "codex" | "pi" | "claude-agent")[];
|
|
597
609
|
missing?: string[] | undefined;
|
|
598
610
|
reason?: string | undefined;
|
|
@@ -686,7 +698,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
686
698
|
efforts: ("low" | "medium" | "high")[];
|
|
687
699
|
thinking: ("low" | "medium" | "high" | "xhigh" | "max")[];
|
|
688
700
|
/** The browser a run's `browser` tool drives: the vendor it resolves to under the server's settings when the tool is
|
|
689
|
-
* available here (tools[]),
|
|
701
|
+
* available here (tools[]), a browser provider's id (tool-plane.ts BROWSER_VENDOR_IDS), else none. */
|
|
690
702
|
browser: string;
|
|
691
703
|
/** A tool setting's `permission` (definition.tool_settings, /v2/settings/tools): allow, ask or deny, which the tool
|
|
692
704
|
* gate holds every tool call to (tool-gate.ts); an ask is answered at POST /runs/{id}/approvals/{approval_id}. */
|
|
@@ -714,7 +726,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
714
726
|
* which always exists (seal-key.ts), so MCP credentials are always kept sealed. */
|
|
715
727
|
mcp_client: {
|
|
716
728
|
transports: string[];
|
|
717
|
-
auth: ("headers" | "none" | "bearer" | "oauth" | "github_app")[];
|
|
729
|
+
auth: ("headers" | "none" | "bearer" | "oauth" | "github_app" | "per_run")[];
|
|
718
730
|
at_rest: string;
|
|
719
731
|
harnesses: string[];
|
|
720
732
|
};
|
|
@@ -739,7 +751,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
739
751
|
failures_to_pause: number;
|
|
740
752
|
webhook: {
|
|
741
753
|
signing: string;
|
|
742
|
-
signatures: ("github" | "standard")[];
|
|
754
|
+
signatures: ("github" | "standard" | "composio")[];
|
|
743
755
|
tolerance_s: number;
|
|
744
756
|
max_body_bytes: number;
|
|
745
757
|
payload_kept_bytes: number;
|