@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
|
@@ -22,6 +22,7 @@ import { DockerProvider } from "@parcha/agentrun-computer/docker";
|
|
|
22
22
|
import { DOCKER_IMAGE_ENV } from "../box-image.js";
|
|
23
23
|
import { dockerDaemonCheck } from "../docker-daemon.js";
|
|
24
24
|
import { unionOf } from "../docker-host-addresses.js";
|
|
25
|
+
import { KEY_TABLE } from "../computer-keys.js";
|
|
25
26
|
import { envValue, keyReader } from "../key-meta.js";
|
|
26
27
|
import { boxAllowOf, boxAllowSetIn } from "../box-settings.js";
|
|
27
28
|
import { readLaunchBody } from "../run-launch.js";
|
|
@@ -108,13 +109,15 @@ export function dockerVolumeOf(paths) {
|
|
|
108
109
|
}
|
|
109
110
|
/** The spec a computer of `kind` on `entry` is made with, besides its labels and its mount: its image (a provider that
|
|
110
111
|
* prepares its own image, its descriptor's prepareImage: the owner's AGENTRUN_DOCKER_IMAGE when set, else for a sandbox
|
|
111
|
-
* the package's recipe, which its prepareImage() builds;
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
112
|
+
* the package's recipe, which its prepareImage() builds; a provider whose descriptor declares imageEnv (Daytona's
|
|
113
|
+
* AGENTRUN_DAYTONA_SNAPSHOT): that variable's value in `env` when set; any other provider's, and such a one's while it
|
|
114
|
+
* is unset: its descriptor's defaultImage for the kind, the computer package's
|
|
115
|
+
* PROVIDERS[].defaultImage; a kind with none refused in words, a prepared desktop's saying it needs an image with an X
|
|
116
|
+
* server, which the recipe lacks), the leak bound for its lifetime (its clean end is the run's release), and its
|
|
117
|
+
* network (networkOf): the run's box_allow, or this server's own (AGENTRUN_BOX_ALLOW, read from `env`) for a launch
|
|
118
|
+
* that names none; and the size of a computer on this machine's container engine (its descriptor's `local`),
|
|
119
|
+
* AGENTRUN_BOX_CPUS, _MEMORY and _PIDS (dockerLimitsOf, read once here): a vendor's computer sizes itself. No key and
|
|
120
|
+
* no environment. */
|
|
118
121
|
export function computerSpecOf(env) {
|
|
119
122
|
const named = envValue(env, DOCKER_IMAGE_ENV);
|
|
120
123
|
// This server's allow setting, as a launch is stamped with it (box-settings.ts boxAllowOf; its start checks the setting).
|
|
@@ -123,6 +126,9 @@ export function computerSpecOf(env) {
|
|
|
123
126
|
const imageOf = (entry, kind) => {
|
|
124
127
|
if (entry.prepareImage && named !== undefined)
|
|
125
128
|
return named;
|
|
129
|
+
const chosen = entry.imageEnv === undefined ? undefined : envValue(env, entry.imageEnv)?.trim();
|
|
130
|
+
if (chosen !== undefined)
|
|
131
|
+
return chosen;
|
|
126
132
|
// A sandbox whose provider prepares its image: the package's own recipe, which its prepareImage() builds (the
|
|
127
133
|
// descriptor gives it no default).
|
|
128
134
|
if (entry.prepareImage && kind === "sandbox")
|
|
@@ -174,6 +180,11 @@ function networkOf(entry, kind, run, current, currentSet) {
|
|
|
174
180
|
/** The run's timeline phase while its claim waits on its computer's image (computerForClaim's onImageWait): main's box
|
|
175
181
|
* image row, the computer's noun for the box's. */
|
|
176
182
|
export const imageWaitWords = (making, image) => making === "build" ? `Preparing the computer's image: building it (${DOCKER_RECIPE_HAS})…` : `Preparing the computer's image: pulling ${image}…`;
|
|
183
|
+
/** An OS as people write its name. */
|
|
184
|
+
const OS_NAMES = { linux: "Linux", windows: "Windows", macos: "macOS", android: "Android", ios: "iOS" };
|
|
185
|
+
/** The run's timeline phase once its claim's computer is connected (computerForClaim's onConnected): what it says it
|
|
186
|
+
* is, in its hello's own facts, such as "The phone is ready: Android 15 (arm64), from Phone harness." */
|
|
187
|
+
export const computerReadyWords = ({ provider, kind, hello }) => `The ${kind} is ready: ${[OS_NAMES[hello.os] ?? hello.os, hello.osVersion].filter(Boolean).join(" ")} (${hello.arch}), from ${provider}.`;
|
|
177
188
|
/** The claim's computer as the runner's specs call it: what the run's launch lets the computer reach (its box_allow),
|
|
178
189
|
* read from the launch row when the store has one and the claim does not say, then computerForClaim. */
|
|
179
190
|
export const claimComputer = async (launch, store, deps) => {
|
|
@@ -183,12 +194,17 @@ export const claimComputer = async (launch, store, deps) => {
|
|
|
183
194
|
const boxAllow = body?.boxAllow;
|
|
184
195
|
return computerForClaim(boxAllow === undefined ? launch : { ...launch, boxAllow, ...(body?.boxAllowSet ? { boxAllowSet: true } : {}) }, store, deps);
|
|
185
196
|
};
|
|
186
|
-
/** The kind registry a claim composed with `options` resolves a setting against:
|
|
187
|
-
*
|
|
197
|
+
/** The kind registry a claim composed with `options` resolves a setting against: a test's own, else the computer
|
|
198
|
+
* package's; given faux, with --faux's providers beside them (so a --faux run takes the faux desktop, and a run on a
|
|
199
|
+
* provider a test loads still gets it). The one choice: computerDepsFrom makes it, and the server's start check
|
|
188
200
|
* (server.ts computerReady) asks it with what the runner composes with, so a run's start and its claim answer alike. */
|
|
189
201
|
export function claimKinds(options) {
|
|
202
|
+
const base = options.kinds ?? { SETTING_KINDS, PROVIDERS, servingRefusals };
|
|
203
|
+
if (!options.faux)
|
|
204
|
+
return base;
|
|
190
205
|
// The faux registry is Settings' shape (computers.ts); the claim reads the same data as resolve-computer.ts's.
|
|
191
|
-
|
|
206
|
+
const faux = options.faux.kinds;
|
|
207
|
+
return { ...base, PROVIDERS: [...base.PROVIDERS, ...faux.PROVIDERS] };
|
|
192
208
|
}
|
|
193
209
|
/** This machine's Docker daemon as the claim asks it once a Docker launch fails: one check per process (its answer
|
|
194
210
|
* kept a while, docker-daemon.ts), in `env`. */
|
|
@@ -250,12 +266,19 @@ export function computerDepsFrom(options) {
|
|
|
250
266
|
spec: computerSpecOf(env),
|
|
251
267
|
check: { readBackOf },
|
|
252
268
|
keyOf: keyReader(store, sealKey, env),
|
|
253
|
-
// Under --faux, its launch makes
|
|
254
|
-
|
|
269
|
+
// Under --faux, its launch makes a faux provider's computer, its keys beside the package's: any other provider's is
|
|
270
|
+
// made as without it.
|
|
271
|
+
...(faux ? {
|
|
272
|
+
keyTable: { keys: { ...KEY_TABLE.keys, ...faux.keyTable.keys }, labels: { ...KEY_TABLE.labels, ...faux.keyTable.labels } },
|
|
273
|
+
launch: (entry, spec) => faux.launch(entry, spec),
|
|
274
|
+
launches: (provider) => faux.owns(provider),
|
|
275
|
+
} : {}),
|
|
255
276
|
...(options.answers ? { answers: options.answers } : {}),
|
|
256
|
-
...(options.
|
|
277
|
+
...(options.hostWhy ? { hostWhy: (provider) => (Object.hasOwn(options.hostWhy, provider) ? options.hostWhy[provider] : undefined) } : {}),
|
|
278
|
+
...(options.daemon ? { daemon: options.daemon } : { daemon: dockerDaemonOf(env) }),
|
|
257
279
|
...(options.openComputerView ? { openComputerView: options.openComputerView } : {}),
|
|
280
|
+
...(store.pairedComputers ? { attached: { rows: () => store.pairedComputers.list(), ...(options.hub ? { hub: options.hub } : {}) } } : {}),
|
|
258
281
|
};
|
|
259
|
-
const factories =
|
|
282
|
+
const factories = { ...computerProviderFactories(providers, (id) => storeLedger(store.computerLedger, id)), ...faux?.factories };
|
|
260
283
|
return { computerForClaim: claimComputer, computerDeps, factories };
|
|
261
284
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type { ComputerProvider, ComputerSpec } from "@parcha/agentrun-computer";
|
|
1
|
+
import type { ComputerProvider, ComputerSpec, HelloResult, Result, ScreenWatch, ScreenWatchHandlers, WatchOptions } from "@parcha/agentrun-computer";
|
|
2
2
|
import { type PlaceView } from "../computer-setting.js";
|
|
3
3
|
import { type KeyTable, type ProviderSettings } from "../computer-keys.js";
|
|
4
4
|
import type { Store } from "../store/index.js";
|
|
5
5
|
import type { MountCheck } from "./attach.js";
|
|
6
|
+
import { type AttachedComputers } from "./attached-computers.js";
|
|
7
|
+
import { type HeldComputer } from "./computer-hold.js";
|
|
6
8
|
import { type ProviderLedger } from "./computer-ledger.js";
|
|
7
|
-
import { type ClaimSide, type ComputerSetting, type ComputerSettingKind, type KindRegistry, type ProviderEntry } from "./resolve-computer.js";
|
|
9
|
+
import { type ClaimBrowser, type ClaimSide, type ComputerSetting, type ComputerSettingKind, type KindRegistry, type ProviderEntry } from "./resolve-computer.js";
|
|
8
10
|
import type { RunComputer, RunHold } from "./run-tools.js";
|
|
9
11
|
import type { Workspace } from "./workspace.js";
|
|
10
12
|
/** What the claim knows of the run: its id, the claim's epoch, and where its computer setting is (the launch's own, else
|
|
@@ -12,6 +14,8 @@ import type { Workspace } from "./workspace.js";
|
|
|
12
14
|
export interface ClaimLaunch {
|
|
13
15
|
readonly runId: string;
|
|
14
16
|
readonly epoch: number;
|
|
17
|
+
/** The run's agent: the owner of its own computer where its setting is persistent (agent-computer.ts). */
|
|
18
|
+
readonly agentId?: string;
|
|
15
19
|
/** The claim itself, as the live view's registration fences on it (absent: its run and epoch). */
|
|
16
20
|
readonly claim?: unknown;
|
|
17
21
|
readonly revisionId?: string;
|
|
@@ -43,9 +47,11 @@ export type ProviderExtras = {
|
|
|
43
47
|
};
|
|
44
48
|
/** Why a live view ends: the computer was released, or the run ended. */
|
|
45
49
|
export type ViewEnd = "released" | "ended";
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
/** A computer's live frames and input: its provider's watch on the computer's ref (ComputerProvider.watch). */
|
|
51
|
+
export type WatchOf = (handlers: ScreenWatchHandlers, options: WatchOptions) => Promise<Result<ScreenWatch>>;
|
|
52
|
+
/** The live view of a desktop or a phone, proxy-only, as its registration (computer-live.ts openClaimView, which the
|
|
53
|
+
* runner composes in) opens it at the claim: fenced on the claim, tagged with the computer's ref id, fed by the
|
|
54
|
+
* provider's watch, and held by the run's take-over hold. */
|
|
49
55
|
export type OpenComputerView = (args: {
|
|
50
56
|
readonly store: unknown;
|
|
51
57
|
readonly sealKey: Buffer | undefined;
|
|
@@ -54,7 +60,9 @@ export type OpenComputerView = (args: {
|
|
|
54
60
|
/** How the viewer's input is made into actions: a desktop's, or the phone's platform (its machine kind). */
|
|
55
61
|
readonly input: "desktop" | "android" | "ios";
|
|
56
62
|
readonly tag: string;
|
|
57
|
-
|
|
63
|
+
/** The launched computer's watch, bound to its ref: the opener gives the handlers and the signal. */
|
|
64
|
+
readonly watch: WatchOf;
|
|
65
|
+
/** The run's hold (computer-hold.ts ComputerHold). */
|
|
58
66
|
readonly hold: unknown;
|
|
59
67
|
}) => Promise<{
|
|
60
68
|
readonly ok: true;
|
|
@@ -63,7 +71,7 @@ export type OpenComputerView = (args: {
|
|
|
63
71
|
};
|
|
64
72
|
} | {
|
|
65
73
|
readonly ok: false;
|
|
66
|
-
readonly refused: "fenced" | "bad_tag" | "kind";
|
|
74
|
+
readonly refused: "fenced" | "bad_tag" | "kind" | "failed";
|
|
67
75
|
readonly message: string;
|
|
68
76
|
}>;
|
|
69
77
|
export interface ComputerForClaimDeps {
|
|
@@ -87,8 +95,10 @@ export interface ComputerForClaimDeps {
|
|
|
87
95
|
readonly answers?: (provider: string) => Promise<boolean>;
|
|
88
96
|
/** Its daemon's answer (docker-daemon.ts), asked when a launch on such a provider fails (ClaimSide.daemon). */
|
|
89
97
|
readonly daemon?: ClaimSide["daemon"];
|
|
90
|
-
/** A launch of the server's own in place of the providers' (--faux's desktop)
|
|
98
|
+
/** A launch of the server's own in place of the providers' (--faux's desktop), for the providers `launches` takes (by
|
|
99
|
+
* id; absent, every one): any other is made by its provider, as with no launch. */
|
|
91
100
|
readonly launch?: ClaimSide["launch"];
|
|
101
|
+
readonly launches?: (provider: string) => boolean;
|
|
92
102
|
/** The run's folder (mounted only where the provider mounts it) and the mount check attach runs. */
|
|
93
103
|
readonly workspace: Workspace;
|
|
94
104
|
readonly check: MountCheck;
|
|
@@ -101,22 +111,57 @@ export interface ComputerForClaimDeps {
|
|
|
101
111
|
* a host that lacks it, or a named image pulled); never when the host has it. The run's caller says it on the run's
|
|
102
112
|
* timeline. Absent: nothing is said. */
|
|
103
113
|
readonly onImageWait?: ImageWait;
|
|
114
|
+
/** Told once a computer the claim made through its provider is connected, with what it says it is (its hello's OS,
|
|
115
|
+
* the OS's version and its architecture): the run's caller says it on the run's timeline. A browser session, made
|
|
116
|
+
* by the run's tool, is never told. Absent: nothing is said. */
|
|
117
|
+
readonly onConnected?: (said: ComputerSaid) => void;
|
|
118
|
+
/** Why this machine cannot run a provider's computers, by its provider id (computers.ts hostCommandRefusals: the
|
|
119
|
+
* phone's adb not on PATH), in words that say how to fix it, or undefined: refused with code computer_unavailable
|
|
120
|
+
* before anything is rented. Absent: not asked. */
|
|
121
|
+
readonly hostWhy?: (provider: string) => string | undefined;
|
|
122
|
+
/** The paired computers (attached-computers.ts): each one more provider of `kinds` for this claim, claimed through the
|
|
123
|
+
* hub of this process. Absent: none is. */
|
|
124
|
+
readonly attached?: AttachedComputers;
|
|
104
125
|
/** Why this run's harness takes no computer of `kind`, in words (a CLI harness's of a browser), or undefined: a kind
|
|
105
126
|
* it refuses is refused with code computer_unavailable before anything is made. Absent: every kind. */
|
|
106
127
|
readonly refuseKind?: (kind: Exclude<ComputerSettingKind, "none">) => string | undefined;
|
|
128
|
+
/** Told what became of the agent's own computer at the claim (a persistent setting): made, attached from an earlier
|
|
129
|
+
* run, or made again because the one this server kept is gone. The run's caller says it on the run's timeline. */
|
|
130
|
+
readonly onComputerNote?: (words: string) => void;
|
|
107
131
|
readonly signal?: AbortSignal;
|
|
108
132
|
}
|
|
109
|
-
/** The run's computer at its claim: what runTools takes, the person's hold on a desktop's or phone's ports,
|
|
110
|
-
*
|
|
111
|
-
* run's
|
|
133
|
+
/** The run's computer at its claim: what runTools takes, the person's hold on a desktop's or phone's ports, the hold
|
|
134
|
+
* itself with the computer's kind (`held`, what the adapter loop takes as AdapterRunSpec.computer: it commits the hold's
|
|
135
|
+
* changes to the run's journal and applies the person's take-over and hand-back to it), and its release (idempotent):
|
|
136
|
+
* the live view closed ("released" when the computer goes before the run's end, "ended" at the run's end), the
|
|
137
|
+
* owner's view let go, then the computer. */
|
|
112
138
|
export interface ClaimComputer {
|
|
113
139
|
readonly computer?: RunComputer;
|
|
114
140
|
readonly hold?: RunHold;
|
|
141
|
+
readonly held?: HeldComputer;
|
|
115
142
|
release(why?: ViewEnd): Promise<void>;
|
|
116
143
|
}
|
|
117
|
-
/** The provider's watch of a computer's screen (ComputerProvider.watch), where it has one. */
|
|
118
144
|
/** Told once, before the claim waits on its computer's image being built or pulled; never when the host has it. */
|
|
119
145
|
export type ImageWait = (making: "build" | "pull", tag: string) => void;
|
|
146
|
+
/** What a computer the claim made says it is, once it is connected: the provider's name in words, the agent's setting
|
|
147
|
+
* kind, and its hello's own facts (its OS, the OS's version where it says one, its architecture). */
|
|
148
|
+
export type ComputerSaid = {
|
|
149
|
+
readonly provider: string;
|
|
150
|
+
readonly kind: Exclude<ComputerSettingKind, "none">;
|
|
151
|
+
readonly hello: Pick<HelloResult, "os" | "osVersion" | "arch">;
|
|
152
|
+
};
|
|
153
|
+
/** A browser computer's provider as the run's browser tool opens its sessions through it (ClaimBrowser): nothing is made
|
|
154
|
+
* at the claim. A session's computer is made at the tool's call, under the run's labels (`spec`'s) and the tool's tag,
|
|
155
|
+
* with the session's own options (spec.browser) where the provider declares them (capabilities().browser); its release
|
|
156
|
+
* lets go of every one the tool left open. The claim's browser (the agent's computer) and the tool plane's vendor's
|
|
157
|
+
* (browser-computer.ts planeBrowser) are each one of these. */
|
|
158
|
+
export declare function claimBrowser(provider: ComputerProvider, spec: ComputerSpec): {
|
|
159
|
+
readonly browser: ClaimBrowser;
|
|
160
|
+
release(): Promise<void>;
|
|
161
|
+
};
|
|
120
162
|
/** The run's computer for this claim, started and registered; `{ computer: undefined }` for none. Throws with code
|
|
121
163
|
* computer_unavailable and the server's words when the agent's computer cannot be had here. */
|
|
122
|
-
export declare function computerForClaim(launch: ClaimLaunch, store: Pick<Store, "agents" | "sealedKeys" | "computerLedger"
|
|
164
|
+
export declare function computerForClaim(launch: ClaimLaunch, store: Pick<Store, "agents" | "sealedKeys" | "computerLedger"> & {
|
|
165
|
+
readonly settings?: Store["settings"];
|
|
166
|
+
readonly runs?: Pick<Store["runs"], "get">;
|
|
167
|
+
}, deps: ComputerForClaimDeps): Promise<ClaimComputer>;
|