@openagt/dashboard 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/agent-view.d.ts +3 -3
- package/dist/bridge-browser.d.ts +4 -4
- package/dist/bridge-browser.d.ts.map +1 -1
- package/dist/bridge-browser.js +8 -8
- package/dist/bridge-browser.js.map +1 -1
- package/dist/built-in.d.ts +13 -4
- package/dist/built-in.d.ts.map +1 -1
- package/dist/built-in.js +45 -4
- package/dist/built-in.js.map +1 -1
- package/dist/chrome-extension/background.js +11 -11
- package/dist/chrome-extension/content.js +37 -37
- package/dist/chrome-extension/driver-plan.js +1 -1
- package/dist/chrome-extension/fingerprint.js +1 -1
- package/dist/chrome-extension/manifest.json +3 -3
- package/dist/chrome-extension/options.html +4 -4
- package/dist/chrome-extension/options.js +4 -4
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -7
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -2
- package/dist/cloud-run-state.d.ts +1 -1
- package/dist/cloud-scratch-refs.js +7 -7
- package/dist/cloud-scratch-refs.js.map +1 -1
- package/dist/cloud-work.js +2 -2
- package/dist/daemon-runtime.d.ts +5 -4
- package/dist/daemon-runtime.d.ts.map +1 -1
- package/dist/daemon-runtime.js +59 -9
- package/dist/daemon-runtime.js.map +1 -1
- package/dist/daemon-services.d.ts +4 -3
- package/dist/daemon-services.d.ts.map +1 -1
- package/dist/daemon-services.js +14 -8
- package/dist/daemon-services.js.map +1 -1
- package/dist/daemon-tick.js +1 -1
- package/dist/daemon.d.ts +1 -12
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +9 -32
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard/agent-handoff.d.ts +4 -4
- package/dist/dashboard/agent-handoff.js +7 -7
- package/dist/dashboard/agent-handoff.js.map +1 -1
- package/dist/dashboard/bridge-endpoints.d.ts +3 -3
- package/dist/dashboard/bridge-endpoints.js +3 -3
- package/dist/dashboard/content-type.js +1 -1
- package/dist/dashboard/docs.d.ts +1 -1
- package/dist/dashboard/docs.js +1 -1
- package/dist/dashboard/git-status.d.ts +1 -1
- package/dist/dashboard/index.d.ts +1 -1
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/interventions.d.ts +2 -2
- package/dist/dashboard/open-in-app.d.ts +3 -3
- package/dist/dashboard/open-in-app.js +4 -4
- package/dist/dashboard/open-questions.d.ts +2 -2
- package/dist/dashboard/projects.d.ts +6 -5
- package/dist/dashboard/projects.d.ts.map +1 -1
- package/dist/dashboard/projects.js.map +1 -1
- package/dist/dashboard/pull-requests.d.ts +5 -5
- package/dist/dashboard/pull-requests.d.ts.map +1 -1
- package/dist/dashboard/pull-requests.js +2 -2
- package/dist/dashboard/pull-requests.js.map +1 -1
- package/dist/dashboard/relay-endpoints.d.ts +3 -3
- package/dist/dashboard/relay-endpoints.js +1 -1
- package/dist/dashboard/remote-run.d.ts +5 -5
- package/dist/dashboard/remote-run.js +3 -3
- package/dist/dashboard/rpc-serve.d.ts +7 -4
- package/dist/dashboard/rpc-serve.d.ts.map +1 -1
- package/dist/dashboard/rpc-serve.js.map +1 -1
- package/dist/dashboard/run-inbox.d.ts +2 -2
- package/dist/dashboard/run-inbox.js +4 -4
- package/dist/dashboard/run-inbox.js.map +1 -1
- package/dist/dashboard/server.d.ts +6 -4
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard/server.js +3 -2
- package/dist/dashboard/server.js.map +1 -1
- package/dist/dashboard/static.js +1 -1
- package/dist/dashboard/types.d.ts +29 -3
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/dashboard/web-start-endpoints.d.ts +1 -1
- package/dist/dashboard/web-start-endpoints.d.ts.map +1 -1
- package/dist/dashboard/web-start-endpoints.js +1 -1
- package/dist/dashboard/web-start-endpoints.js.map +1 -1
- package/dist/dashboard-bundle/assets/{main-om0WOAku.js → main-B98UOA3_.js} +48 -48
- package/dist/dashboard-bundle/assets/main-ByRjbCiA.css +2 -0
- package/dist/dashboard-bundle/assets/{module-jASZmfSB.js → module-v213KWfH.js} +4 -4
- package/dist/dashboard-bundle/host/module.js +1 -1
- package/dist/dashboard-bundle/index.html +6 -6
- package/dist/dashboard-rpc/context.d.ts +2 -0
- package/dist/dashboard-rpc/context.d.ts.map +1 -1
- package/dist/dashboard-rpc/context.js +4 -0
- package/dist/dashboard-rpc/context.js.map +1 -1
- package/dist/dashboard-rpc/control.d.ts +1 -1
- package/dist/dashboard-rpc/control.js +3 -3
- package/dist/dashboard-rpc/control.js.map +1 -1
- package/dist/dashboard-rpc/events.d.ts +3 -3
- package/dist/dashboard-rpc/index.d.ts +1 -1
- package/dist/dashboard-rpc/index.d.ts.map +1 -1
- package/dist/dashboard-rpc/index.js +1 -1
- package/dist/dashboard-rpc/index.js.map +1 -1
- package/dist/dashboard-rpc/modules.d.ts +8 -6
- package/dist/dashboard-rpc/modules.d.ts.map +1 -1
- package/dist/dashboard-rpc/modules.js +8 -6
- package/dist/dashboard-rpc/modules.js.map +1 -1
- package/dist/dashboard-rpc/preferences.d.ts +2 -2
- package/dist/dashboard-rpc/preferences.d.ts.map +1 -1
- package/dist/dashboard-rpc/preferences.js +2 -2
- package/dist/dashboard-rpc/preferences.js.map +1 -1
- package/dist/dashboard-rpc/projects.d.ts +29 -3
- package/dist/dashboard-rpc/projects.d.ts.map +1 -1
- package/dist/dashboard-rpc/projects.js +49 -7
- package/dist/dashboard-rpc/projects.js.map +1 -1
- package/dist/dashboard-rpc/reads.d.ts +3 -3
- package/dist/dashboard-rpc/reads.js +1 -1
- package/dist/dashboard-rpc/test-context.d.ts.map +1 -1
- package/dist/dashboard-rpc/test-context.js +4 -3
- package/dist/dashboard-rpc/test-context.js.map +1 -1
- package/dist/event-stream.d.ts +1 -1
- package/dist/event-stream.js +1 -1
- package/dist/events.d.ts +8 -8
- package/dist/events.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/install.d.ts +9 -7
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +28 -14
- package/dist/install.js.map +1 -1
- package/dist/module-server.d.ts +1 -1
- package/dist/module-types/dashboard/lib/route.d.ts +2 -1
- package/dist/module-types/dashboard/lib/use-modules.d.ts +4 -3
- package/dist/module-types/dashboard/module/index.d.ts +5 -5
- package/dist/module-types/src/agent-view.d.ts +3 -3
- package/dist/module-types/src/bridge-browser.d.ts +4 -4
- package/dist/module-types/src/built-in.d.ts +13 -4
- package/dist/module-types/src/client.d.ts +1 -1
- package/dist/module-types/src/cloud-run-state.d.ts +1 -1
- package/dist/module-types/src/dashboard/agent-handoff.d.ts +4 -4
- package/dist/module-types/src/dashboard/bridge-endpoints.d.ts +3 -3
- package/dist/module-types/src/dashboard/docs.d.ts +1 -1
- package/dist/module-types/src/dashboard/git-status.d.ts +1 -1
- package/dist/module-types/src/dashboard/interventions.d.ts +2 -2
- package/dist/module-types/src/dashboard/open-in-app.d.ts +3 -3
- package/dist/module-types/src/dashboard/open-questions.d.ts +2 -2
- package/dist/module-types/src/dashboard/projects.d.ts +6 -5
- package/dist/module-types/src/dashboard/pull-requests.d.ts +5 -5
- package/dist/module-types/src/dashboard/remote-run.d.ts +5 -5
- package/dist/module-types/src/dashboard/rpc-serve.d.ts +7 -4
- package/dist/module-types/src/dashboard/run-inbox.d.ts +2 -2
- package/dist/module-types/src/dashboard/types.d.ts +29 -3
- package/dist/module-types/src/dashboard-rpc/context.d.ts +2 -0
- package/dist/module-types/src/dashboard-rpc/control.d.ts +1 -1
- package/dist/module-types/src/dashboard-rpc/events.d.ts +3 -3
- package/dist/module-types/src/dashboard-rpc/index.d.ts +1 -1
- package/dist/module-types/src/dashboard-rpc/modules.d.ts +8 -6
- package/dist/module-types/src/dashboard-rpc/preferences.d.ts +2 -2
- package/dist/module-types/src/dashboard-rpc/projects.d.ts +29 -3
- package/dist/module-types/src/dashboard-rpc/reads.d.ts +3 -3
- package/dist/module-types/src/event-stream.d.ts +1 -1
- package/dist/module-types/src/events.d.ts +8 -8
- package/dist/module-types/src/index.d.ts +3 -2
- package/dist/module-types/src/open-choices.d.ts +2 -2
- package/dist/module-types/src/{framework-dir.d.ts → openagent-dir.d.ts} +2 -2
- package/dist/module-types/src/openagent-gitignore.d.ts +11 -0
- package/dist/module-types/src/project-commands.d.ts +1 -1
- package/dist/module-types/src/project-errors.d.ts +11 -7
- package/dist/module-types/src/project-hooks.d.ts +4 -4
- package/dist/module-types/src/project-modules.d.ts +5 -5
- package/dist/module-types/src/project-presets.d.ts +4 -4
- package/dist/module-types/src/project.d.ts +6 -6
- package/dist/module-types/src/publish-levels.d.ts +4 -4
- package/dist/module-types/src/quota-boundary.d.ts +2 -2
- package/dist/module-types/src/registry.d.ts +13 -7
- package/dist/module-types/src/store/agent-checkout.d.ts +1 -1
- package/dist/module-types/src/store/agent-store.d.ts +6 -6
- package/dist/module-types/src/store/branches.d.ts +7 -7
- package/dist/module-types/src/store/git-host.d.ts +7 -7
- package/dist/module-types/src/store/provided.d.ts +3 -3
- package/dist/module-types/src/store/queue.d.ts +8 -8
- package/dist/module-types/src/store/repository.d.ts +2 -2
- package/dist/module-types/src/store/run-record.d.ts +10 -10
- package/dist/module-types/src/store/runs.d.ts +6 -6
- package/dist/module-types/src/store/tickets.d.ts +7 -7
- package/dist/module-types/src/terminal.d.ts +3 -3
- package/dist/open-choices.d.ts +2 -2
- package/dist/{framework-dir.js → openagent-dir.d.ts} +3 -3
- package/dist/openagent-dir.d.ts.map +1 -0
- package/dist/{framework-dir.d.ts → openagent-dir.js} +3 -3
- package/dist/openagent-dir.js.map +1 -0
- package/dist/openagent-gitignore.d.ts +12 -0
- package/dist/openagent-gitignore.d.ts.map +1 -0
- package/dist/openagent-gitignore.js +19 -0
- package/dist/openagent-gitignore.js.map +1 -0
- package/dist/pick-directory.js +2 -2
- package/dist/pick-directory.js.map +1 -1
- package/dist/project-commands.d.ts +1 -1
- package/dist/project-commands.js +1 -1
- package/dist/project-errors.d.ts +11 -7
- package/dist/project-errors.d.ts.map +1 -1
- package/dist/project-errors.js +10 -8
- package/dist/project-errors.js.map +1 -1
- package/dist/project-hooks.d.ts +4 -4
- package/dist/project-hooks.d.ts.map +1 -1
- package/dist/project-hooks.js +8 -8
- package/dist/project-hooks.js.map +1 -1
- package/dist/project-modules.d.ts +5 -5
- package/dist/project-modules.js +2 -2
- package/dist/project-presets.d.ts +4 -4
- package/dist/project-presets.d.ts.map +1 -1
- package/dist/project-presets.js +9 -9
- package/dist/project-presets.js.map +1 -1
- package/dist/project.d.ts +6 -6
- package/dist/project.js +6 -6
- package/dist/publish-levels.d.ts +4 -4
- package/dist/publish-levels.d.ts.map +1 -1
- package/dist/publish-levels.js +7 -5
- package/dist/publish-levels.js.map +1 -1
- package/dist/quota-boundary.d.ts +2 -2
- package/dist/quota-boundary.js +2 -2
- package/dist/registry.d.ts +13 -7
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +19 -3
- package/dist/registry.js.map +1 -1
- package/dist/remove-files.d.ts +24 -0
- package/dist/remove-files.d.ts.map +1 -0
- package/dist/remove-files.js +98 -0
- package/dist/remove-files.js.map +1 -0
- package/dist/store/agent-checkout.d.ts +1 -1
- package/dist/store/agent-checkout.js +3 -3
- package/dist/store/agent-checkout.js.map +1 -1
- package/dist/store/agent-store.d.ts +6 -6
- package/dist/store/agent-store.js +8 -8
- package/dist/store/agent-store.js.map +1 -1
- package/dist/store/branches.d.ts +7 -7
- package/dist/store/branches.d.ts.map +1 -1
- package/dist/store/branches.js +1 -1
- package/dist/store/branches.js.map +1 -1
- package/dist/store/git-host.d.ts +7 -7
- package/dist/store/git-host.d.ts.map +1 -1
- package/dist/store/git-host.js +1 -1
- package/dist/store/git-host.js.map +1 -1
- package/dist/store/provided.d.ts +3 -3
- package/dist/store/provided.d.ts.map +1 -1
- package/dist/store/provided.js +3 -3
- package/dist/store/provided.js.map +1 -1
- package/dist/store/queue.d.ts +8 -8
- package/dist/store/queue.d.ts.map +1 -1
- package/dist/store/queue.js +1 -1
- package/dist/store/queue.js.map +1 -1
- package/dist/store/repository.d.ts +2 -2
- package/dist/store/run-record.d.ts +10 -10
- package/dist/store/run-record.d.ts.map +1 -1
- package/dist/store/run-record.js +7 -7
- package/dist/store/run-record.js.map +1 -1
- package/dist/store/runs.d.ts +6 -6
- package/dist/store/runs.d.ts.map +1 -1
- package/dist/store/runs.js +2 -2
- package/dist/store/runs.js.map +1 -1
- package/dist/store/tickets.d.ts +7 -7
- package/dist/store/tickets.d.ts.map +1 -1
- package/dist/store/tickets.js +1 -1
- package/dist/store/tickets.js.map +1 -1
- package/dist/terminal.d.ts +3 -3
- package/dist/terminal.js +3 -3
- package/package.json +19 -19
- package/dist/agent-archive.d.ts +0 -35
- package/dist/agent-archive.d.ts.map +0 -1
- package/dist/agent-archive.js +0 -67
- package/dist/agent-archive.js.map +0 -1
- package/dist/agent-commit.d.ts +0 -140
- package/dist/agent-commit.d.ts.map +0 -1
- package/dist/agent-commit.js +0 -254
- package/dist/agent-commit.js.map +0 -1
- package/dist/agent-driver.d.ts +0 -28
- package/dist/agent-driver.d.ts.map +0 -1
- package/dist/agent-driver.js +0 -18
- package/dist/agent-driver.js.map +0 -1
- package/dist/agent-location.d.ts +0 -11
- package/dist/agent-location.d.ts.map +0 -1
- package/dist/agent-location.js +0 -10
- package/dist/agent-location.js.map +0 -1
- package/dist/agent-messages.d.ts +0 -55
- package/dist/agent-messages.d.ts.map +0 -1
- package/dist/agent-messages.js +0 -73
- package/dist/agent-messages.js.map +0 -1
- package/dist/agent-names.d.ts +0 -24
- package/dist/agent-names.d.ts.map +0 -1
- package/dist/agent-names.js +0 -33
- package/dist/agent-names.js.map +0 -1
- package/dist/agent-options.d.ts +0 -45
- package/dist/agent-options.d.ts.map +0 -1
- package/dist/agent-options.js +0 -83
- package/dist/agent-options.js.map +0 -1
- package/dist/agent-spec.d.ts +0 -56
- package/dist/agent-spec.d.ts.map +0 -1
- package/dist/agent-spec.js +0 -56
- package/dist/agent-spec.js.map +0 -1
- package/dist/agent-telemetry.d.ts +0 -88
- package/dist/agent-telemetry.d.ts.map +0 -1
- package/dist/agent-telemetry.js +0 -97
- package/dist/agent-telemetry.js.map +0 -1
- package/dist/agent.d.ts +0 -113
- package/dist/agent.d.ts.map +0 -1
- package/dist/agent.js +0 -168
- package/dist/agent.js.map +0 -1
- package/dist/archived-agent-patch.d.ts +0 -14
- package/dist/archived-agent-patch.d.ts.map +0 -1
- package/dist/archived-agent-patch.js +0 -22
- package/dist/archived-agent-patch.js.map +0 -1
- package/dist/auto-pm.d.ts +0 -538
- package/dist/auto-pm.d.ts.map +0 -1
- package/dist/auto-pm.js +0 -707
- package/dist/auto-pm.js.map +0 -1
- package/dist/await-gate.d.ts +0 -184
- package/dist/await-gate.d.ts.map +0 -1
- package/dist/await-gate.js +0 -252
- package/dist/await-gate.js.map +0 -1
- package/dist/branch-links-pass.d.ts +0 -15
- package/dist/branch-links-pass.d.ts.map +0 -1
- package/dist/branch-links-pass.js +0 -13
- package/dist/branch-links-pass.js.map +0 -1
- package/dist/branch-links.d.ts +0 -53
- package/dist/branch-links.d.ts.map +0 -1
- package/dist/branch-links.js +0 -94
- package/dist/branch-links.js.map +0 -1
- package/dist/branch-names.d.ts +0 -57
- package/dist/branch-names.d.ts.map +0 -1
- package/dist/branch-names.js +0 -72
- package/dist/branch-names.js.map +0 -1
- package/dist/ci-watch.d.ts +0 -123
- package/dist/ci-watch.d.ts.map +0 -1
- package/dist/ci-watch.js +0 -228
- package/dist/ci-watch.js.map +0 -1
- package/dist/claude-trust.d.ts +0 -16
- package/dist/claude-trust.d.ts.map +0 -1
- package/dist/claude-trust.js +0 -72
- package/dist/claude-trust.js.map +0 -1
- package/dist/cli-exec.d.ts +0 -36
- package/dist/cli-exec.d.ts.map +0 -1
- package/dist/cli-exec.js +0 -44
- package/dist/cli-exec.js.map +0 -1
- package/dist/closing-keywords.d.ts +0 -28
- package/dist/closing-keywords.d.ts.map +0 -1
- package/dist/closing-keywords.js +0 -49
- package/dist/closing-keywords.js.map +0 -1
- package/dist/config-layers.d.ts +0 -62
- package/dist/config-layers.d.ts.map +0 -1
- package/dist/config-layers.js +0 -70
- package/dist/config-layers.js.map +0 -1
- package/dist/config.d.ts +0 -54
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -78
- package/dist/config.js.map +0 -1
- package/dist/consumption-guard.d.ts +0 -53
- package/dist/consumption-guard.d.ts.map +0 -1
- package/dist/consumption-guard.js +0 -69
- package/dist/consumption-guard.js.map +0 -1
- package/dist/control.d.ts +0 -75
- package/dist/control.d.ts.map +0 -1
- package/dist/control.js +0 -68
- package/dist/control.js.map +0 -1
- package/dist/conversation-commit.d.ts +0 -166
- package/dist/conversation-commit.d.ts.map +0 -1
- package/dist/conversation-commit.js +0 -309
- package/dist/conversation-commit.js.map +0 -1
- package/dist/conversations.d.ts +0 -93
- package/dist/conversations.d.ts.map +0 -1
- package/dist/conversations.js +0 -176
- package/dist/conversations.js.map +0 -1
- package/dist/daemon-writes.d.ts +0 -33
- package/dist/daemon-writes.d.ts.map +0 -1
- package/dist/daemon-writes.js +0 -45
- package/dist/daemon-writes.js.map +0 -1
- package/dist/dashboard/agent-tree.d.ts +0 -106
- package/dist/dashboard/agent-tree.d.ts.map +0 -1
- package/dist/dashboard/agent-tree.js +0 -180
- package/dist/dashboard/agent-tree.js.map +0 -1
- package/dist/dashboard/browser-proxy.d.ts +0 -41
- package/dist/dashboard/browser-proxy.d.ts.map +0 -1
- package/dist/dashboard/browser-proxy.js +0 -96
- package/dist/dashboard/browser-proxy.js.map +0 -1
- package/dist/dashboard/discord-webhook.d.ts +0 -17
- package/dist/dashboard/discord-webhook.d.ts.map +0 -1
- package/dist/dashboard/discord-webhook.js +0 -36
- package/dist/dashboard/discord-webhook.js.map +0 -1
- package/dist/dashboard/file-diff.d.ts +0 -67
- package/dist/dashboard/file-diff.d.ts.map +0 -1
- package/dist/dashboard/file-diff.js +0 -132
- package/dist/dashboard/file-diff.js.map +0 -1
- package/dist/dashboard/file-read.d.ts +0 -42
- package/dist/dashboard/file-read.d.ts.map +0 -1
- package/dist/dashboard/file-read.js +0 -69
- package/dist/dashboard/file-read.js.map +0 -1
- package/dist/dashboard/file-status.d.ts +0 -21
- package/dist/dashboard/file-status.d.ts.map +0 -1
- package/dist/dashboard/file-status.js +0 -37
- package/dist/dashboard/file-status.js.map +0 -1
- package/dist/dashboard/gh.d.ts +0 -131
- package/dist/dashboard/gh.d.ts.map +0 -1
- package/dist/dashboard/gh.js +0 -150
- package/dist/dashboard/gh.js.map +0 -1
- package/dist/dashboard/github.d.ts +0 -11
- package/dist/dashboard/github.d.ts.map +0 -1
- package/dist/dashboard/github.js +0 -33
- package/dist/dashboard/github.js.map +0 -1
- package/dist/dashboard/run-handoff.d.ts +0 -311
- package/dist/dashboard/run-handoff.d.ts.map +0 -1
- package/dist/dashboard/run-handoff.js +0 -485
- package/dist/dashboard/run-handoff.js.map +0 -1
- package/dist/dashboard/scheduler-state.d.ts +0 -73
- package/dist/dashboard/scheduler-state.d.ts.map +0 -1
- package/dist/dashboard/scheduler-state.js +0 -120
- package/dist/dashboard/scheduler-state.js.map +0 -1
- package/dist/dashboard/subagent-settings.d.ts +0 -26
- package/dist/dashboard/subagent-settings.d.ts.map +0 -1
- package/dist/dashboard/subagent-settings.js +0 -52
- package/dist/dashboard/subagent-settings.js.map +0 -1
- package/dist/dashboard/telefunc-serve.d.ts +0 -118
- package/dist/dashboard/telefunc-serve.d.ts.map +0 -1
- package/dist/dashboard/telefunc-serve.js +0 -108
- package/dist/dashboard/telefunc-serve.js.map +0 -1
- package/dist/dashboard/tickets.d.ts +0 -29
- package/dist/dashboard/tickets.d.ts.map +0 -1
- package/dist/dashboard/tickets.js +0 -38
- package/dist/dashboard/tickets.js.map +0 -1
- package/dist/dashboard/widget-serve.d.ts +0 -15
- package/dist/dashboard/widget-serve.d.ts.map +0 -1
- package/dist/dashboard/widget-serve.js +0 -45
- package/dist/dashboard/widget-serve.js.map +0 -1
- package/dist/dashboard-bundle/assets/main-B3HghPQy.css +0 -2
- package/dist/dashboard-client/assets/chunks/chunk-BF9pJudf.js +0 -4
- package/dist/dashboard-client/assets/entries/entry-client-routing.CT1e9F0o.js +0 -1
- package/dist/dashboard-client/assets/entries/pages_index.CkW5JQ8X.js +0 -428
- package/dist/dashboard-client/assets/static/layouts_tailwind-00e65532.8OjKGAbA.css +0 -2
- package/dist/dashboard-client/index.html +0 -27
- package/dist/dashboard-client/index.pageContext.json +0 -1
- package/dist/dashboard-client/logo-animated.svg +0 -34
- package/dist/dashboard-client/logo.svg +0 -16
- package/dist/dashboard-rpc/control.telefunc.d.ts +0 -176
- package/dist/dashboard-rpc/control.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/control.telefunc.js +0 -373
- package/dist/dashboard-rpc/control.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/devices.telefunc.d.ts +0 -9
- package/dist/dashboard-rpc/devices.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/devices.telefunc.js +0 -12
- package/dist/dashboard-rpc/devices.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/events.telefunc.d.ts +0 -36
- package/dist/dashboard-rpc/events.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/events.telefunc.js +0 -70
- package/dist/dashboard-rpc/events.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/preferences.telefunc.d.ts +0 -97
- package/dist/dashboard-rpc/preferences.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/preferences.telefunc.js +0 -157
- package/dist/dashboard-rpc/preferences.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/projects.telefunc.d.ts +0 -56
- package/dist/dashboard-rpc/projects.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/projects.telefunc.js +0 -96
- package/dist/dashboard-rpc/projects.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/quota.telefunc.d.ts +0 -40
- package/dist/dashboard-rpc/quota.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/quota.telefunc.js +0 -84
- package/dist/dashboard-rpc/quota.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/reads.telefunc.d.ts +0 -197
- package/dist/dashboard-rpc/reads.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/reads.telefunc.js +0 -403
- package/dist/dashboard-rpc/reads.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/register.d.ts +0 -18
- package/dist/dashboard-rpc/register.d.ts.map +0 -1
- package/dist/dashboard-rpc/register.js +0 -66
- package/dist/dashboard-rpc/register.js.map +0 -1
- package/dist/dashboard-rpc/relay-run.d.ts +0 -9
- package/dist/dashboard-rpc/relay-run.d.ts.map +0 -1
- package/dist/dashboard-rpc/relay-run.js +0 -21
- package/dist/dashboard-rpc/relay-run.js.map +0 -1
- package/dist/dashboard-rpc/stream-channel.d.ts +0 -23
- package/dist/dashboard-rpc/stream-channel.d.ts.map +0 -1
- package/dist/dashboard-rpc/stream-channel.js +0 -52
- package/dist/dashboard-rpc/stream-channel.js.map +0 -1
- package/dist/dashboard-rpc/subagents.d.ts +0 -12
- package/dist/dashboard-rpc/subagents.d.ts.map +0 -1
- package/dist/dashboard-rpc/subagents.js +0 -13
- package/dist/dashboard-rpc/subagents.js.map +0 -1
- package/dist/dashboard-rpc/widgets.d.ts +0 -33
- package/dist/dashboard-rpc/widgets.d.ts.map +0 -1
- package/dist/dashboard-rpc/widgets.js +0 -54
- package/dist/dashboard-rpc/widgets.js.map +0 -1
- package/dist/data-branch.d.ts +0 -120
- package/dist/data-branch.d.ts.map +0 -1
- package/dist/data-branch.js +0 -319
- package/dist/data-branch.js.map +0 -1
- package/dist/discord/bot.d.ts +0 -61
- package/dist/discord/bot.d.ts.map +0 -1
- package/dist/discord/bot.js +0 -94
- package/dist/discord/bot.js.map +0 -1
- package/dist/discord/gateway.d.ts +0 -137
- package/dist/discord/gateway.d.ts.map +0 -1
- package/dist/discord/gateway.js +0 -315
- package/dist/discord/gateway.js.map +0 -1
- package/dist/discord/live-run.d.ts +0 -31
- package/dist/discord/live-run.d.ts.map +0 -1
- package/dist/discord/live-run.js +0 -57
- package/dist/discord/live-run.js.map +0 -1
- package/dist/discord/reply-mirror.d.ts +0 -83
- package/dist/discord/reply-mirror.d.ts.map +0 -1
- package/dist/discord/reply-mirror.js +0 -84
- package/dist/discord/reply-mirror.js.map +0 -1
- package/dist/discord/rest.d.ts +0 -20
- package/dist/discord/rest.d.ts.map +0 -1
- package/dist/discord/rest.js +0 -41
- package/dist/discord/rest.js.map +0 -1
- package/dist/discord/routing.d.ts +0 -81
- package/dist/discord/routing.d.ts.map +0 -1
- package/dist/discord/routing.js +0 -91
- package/dist/discord/routing.js.map +0 -1
- package/dist/discord-credentials-store.d.ts +0 -14
- package/dist/discord-credentials-store.d.ts.map +0 -1
- package/dist/discord-credentials-store.js +0 -53
- package/dist/discord-credentials-store.js.map +0 -1
- package/dist/discord-credentials.d.ts +0 -80
- package/dist/discord-credentials.d.ts.map +0 -1
- package/dist/discord-credentials.js +0 -55
- package/dist/discord-credentials.js.map +0 -1
- package/dist/driver/actions-zip.d.ts +0 -2
- package/dist/driver/actions-zip.d.ts.map +0 -1
- package/dist/driver/actions-zip.js +0 -70
- package/dist/driver/actions-zip.js.map +0 -1
- package/dist/driver/actions.d.ts +0 -130
- package/dist/driver/actions.d.ts.map +0 -1
- package/dist/driver/actions.js +0 -261
- package/dist/driver/actions.js.map +0 -1
- package/dist/driver/agent-cli.d.ts +0 -57
- package/dist/driver/agent-cli.d.ts.map +0 -1
- package/dist/driver/agent-cli.js +0 -134
- package/dist/driver/agent-cli.js.map +0 -1
- package/dist/driver/child-registry.d.ts +0 -25
- package/dist/driver/child-registry.d.ts.map +0 -1
- package/dist/driver/child-registry.js +0 -53
- package/dist/driver/child-registry.js.map +0 -1
- package/dist/driver/claude-code-quota.d.ts +0 -40
- package/dist/driver/claude-code-quota.d.ts.map +0 -1
- package/dist/driver/claude-code-quota.js +0 -144
- package/dist/driver/claude-code-quota.js.map +0 -1
- package/dist/driver/claude-code.d.ts +0 -104
- package/dist/driver/claude-code.d.ts.map +0 -1
- package/dist/driver/claude-code.js +0 -314
- package/dist/driver/claude-code.js.map +0 -1
- package/dist/driver/cli-session.d.ts +0 -57
- package/dist/driver/cli-session.d.ts.map +0 -1
- package/dist/driver/cli-session.js +0 -134
- package/dist/driver/cli-session.js.map +0 -1
- package/dist/driver/cloud.d.ts +0 -109
- package/dist/driver/cloud.d.ts.map +0 -1
- package/dist/driver/cloud.js +0 -232
- package/dist/driver/cloud.js.map +0 -1
- package/dist/driver/codex.d.ts +0 -99
- package/dist/driver/codex.d.ts.map +0 -1
- package/dist/driver/codex.js +0 -190
- package/dist/driver/codex.js.map +0 -1
- package/dist/driver/fake.d.ts +0 -54
- package/dist/driver/fake.d.ts.map +0 -1
- package/dist/driver/fake.js +0 -73
- package/dist/driver/fake.js.map +0 -1
- package/dist/driver/index.d.ts +0 -10
- package/dist/driver/index.d.ts.map +0 -1
- package/dist/driver/index.js +0 -14
- package/dist/driver/index.js.map +0 -1
- package/dist/driver/session-support.d.ts +0 -14
- package/dist/driver/session-support.d.ts.map +0 -1
- package/dist/driver/session-support.js +0 -37
- package/dist/driver/session-support.js.map +0 -1
- package/dist/driver/types.d.ts +0 -310
- package/dist/driver/types.d.ts.map +0 -1
- package/dist/driver/types.js +0 -5
- package/dist/driver/types.js.map +0 -1
- package/dist/driver-cli.d.ts +0 -61
- package/dist/driver-cli.d.ts.map +0 -1
- package/dist/driver-cli.js +0 -66
- package/dist/driver-cli.js.map +0 -1
- package/dist/fake-script.d.ts +0 -15
- package/dist/fake-script.d.ts.map +0 -1
- package/dist/fake-script.js +0 -58
- package/dist/fake-script.js.map +0 -1
- package/dist/framework-dir.d.ts.map +0 -1
- package/dist/framework-dir.js.map +0 -1
- package/dist/framework-gitignore.d.ts +0 -12
- package/dist/framework-gitignore.d.ts.map +0 -1
- package/dist/framework-gitignore.js +0 -19
- package/dist/framework-gitignore.js.map +0 -1
- package/dist/gate-keepalive.d.ts +0 -47
- package/dist/gate-keepalive.d.ts.map +0 -1
- package/dist/gate-keepalive.js +0 -62
- package/dist/gate-keepalive.js.map +0 -1
- package/dist/git-exclude.d.ts +0 -11
- package/dist/git-exclude.d.ts.map +0 -1
- package/dist/git-exclude.js +0 -23
- package/dist/git-exclude.js.map +0 -1
- package/dist/handoff-level.d.ts +0 -56
- package/dist/handoff-level.d.ts.map +0 -1
- package/dist/handoff-level.js +0 -62
- package/dist/handoff-level.js.map +0 -1
- package/dist/host-exec.d.ts +0 -21
- package/dist/host-exec.d.ts.map +0 -1
- package/dist/host-exec.js +0 -30
- package/dist/host-exec.js.map +0 -1
- package/dist/layout.d.ts +0 -41
- package/dist/layout.d.ts.map +0 -1
- package/dist/layout.js +0 -69
- package/dist/layout.js.map +0 -1
- package/dist/logs.d.ts +0 -73
- package/dist/logs.d.ts.map +0 -1
- package/dist/logs.js +0 -218
- package/dist/logs.js.map +0 -1
- package/dist/maintenance.d.ts +0 -90
- package/dist/maintenance.d.ts.map +0 -1
- package/dist/maintenance.js +0 -141
- package/dist/maintenance.js.map +0 -1
- package/dist/merged-worktrees.d.ts +0 -74
- package/dist/merged-worktrees.d.ts.map +0 -1
- package/dist/merged-worktrees.js +0 -84
- package/dist/merged-worktrees.js.map +0 -1
- package/dist/module-types/src/dashboard/agent-tree.d.ts +0 -105
- package/dist/module-types/src/dashboard/file-diff.d.ts +0 -66
- package/dist/module-types/src/dashboard/file-read.d.ts +0 -41
- package/dist/module-types/src/dashboard/file-status.d.ts +0 -20
- package/dist/module-types/src/dashboard/scheduler-state.d.ts +0 -72
- package/dist/module-types/src/dashboard/subagent-settings.d.ts +0 -25
- package/dist/module-types/src/dashboard-rpc/subagents.d.ts +0 -11
- package/dist/module-types/src/framework-gitignore.d.ts +0 -11
- package/dist/module-types/src/subagent-settings.d.ts +0 -26
- package/dist/on-before-mergeable-prompt.d.ts +0 -32
- package/dist/on-before-mergeable-prompt.d.ts.map +0 -1
- package/dist/on-before-mergeable-prompt.js +0 -26
- package/dist/on-before-mergeable-prompt.js.map +0 -1
- package/dist/planned-quick-wins.d.ts +0 -102
- package/dist/planned-quick-wins.d.ts.map +0 -1
- package/dist/planned-quick-wins.js +0 -171
- package/dist/planned-quick-wins.js.map +0 -1
- package/dist/preflight.d.ts +0 -77
- package/dist/preflight.d.ts.map +0 -1
- package/dist/preflight.js +0 -91
- package/dist/preflight.js.map +0 -1
- package/dist/preset-catalog.d.ts +0 -98
- package/dist/preset-catalog.d.ts.map +0 -1
- package/dist/preset-catalog.js +0 -129
- package/dist/preset-catalog.js.map +0 -1
- package/dist/preset-prompt.d.ts +0 -81
- package/dist/preset-prompt.d.ts.map +0 -1
- package/dist/preset-prompt.js +0 -51
- package/dist/preset-prompt.js.map +0 -1
- package/dist/preset-registry.d.ts +0 -32
- package/dist/preset-registry.d.ts.map +0 -1
- package/dist/preset-registry.js +0 -35
- package/dist/preset-registry.js.map +0 -1
- package/dist/presets.d.ts +0 -20
- package/dist/presets.d.ts.map +0 -1
- package/dist/presets.js +0 -33
- package/dist/presets.js.map +0 -1
- package/dist/preview-runtime.d.ts +0 -33
- package/dist/preview-runtime.d.ts.map +0 -1
- package/dist/preview-runtime.js +0 -96
- package/dist/preview-runtime.js.map +0 -1
- package/dist/preview.d.ts +0 -78
- package/dist/preview.d.ts.map +0 -1
- package/dist/preview.js +0 -301
- package/dist/preview.js.map +0 -1
- package/dist/project-widgets.d.ts +0 -46
- package/dist/project-widgets.d.ts.map +0 -1
- package/dist/project-widgets.js +0 -93
- package/dist/project-widgets.js.map +0 -1
- package/dist/prompt-run.d.ts +0 -104
- package/dist/prompt-run.d.ts.map +0 -1
- package/dist/prompt-run.js +0 -112
- package/dist/prompt-run.js.map +0 -1
- package/dist/prompt-template.d.ts +0 -16
- package/dist/prompt-template.d.ts.map +0 -1
- package/dist/prompt-template.js +0 -56
- package/dist/prompt-template.js.map +0 -1
- package/dist/prompts.generated.d.ts +0 -53
- package/dist/prompts.generated.d.ts.map +0 -1
- package/dist/prompts.generated.js +0 -55
- package/dist/prompts.generated.js.map +0 -1
- package/dist/queue-promote.d.ts +0 -70
- package/dist/queue-promote.d.ts.map +0 -1
- package/dist/queue-promote.js +0 -118
- package/dist/queue-promote.js.map +0 -1
- package/dist/relay.d.ts +0 -84
- package/dist/relay.d.ts.map +0 -1
- package/dist/relay.js +0 -199
- package/dist/relay.js.map +0 -1
- package/dist/repos-directory.d.ts +0 -19
- package/dist/repos-directory.d.ts.map +0 -1
- package/dist/repos-directory.js +0 -23
- package/dist/repos-directory.js.map +0 -1
- package/dist/retired-project-settings.d.ts +0 -43
- package/dist/retired-project-settings.d.ts.map +0 -1
- package/dist/retired-project-settings.js +0 -125
- package/dist/retired-project-settings.js.map +0 -1
- package/dist/routine-locks.d.ts +0 -53
- package/dist/routine-locks.d.ts.map +0 -1
- package/dist/routine-locks.js +0 -125
- package/dist/routine-locks.js.map +0 -1
- package/dist/run-driver.d.ts +0 -26
- package/dist/run-driver.d.ts.map +0 -1
- package/dist/run-driver.js +0 -17
- package/dist/run-driver.js.map +0 -1
- package/dist/run-locks.d.ts +0 -3
- package/dist/run-locks.d.ts.map +0 -1
- package/dist/run-locks.js +0 -39
- package/dist/run-locks.js.map +0 -1
- package/dist/run-messages.d.ts +0 -64
- package/dist/run-messages.d.ts.map +0 -1
- package/dist/run-messages.js +0 -76
- package/dist/run-messages.js.map +0 -1
- package/dist/run-options.d.ts +0 -53
- package/dist/run-options.d.ts.map +0 -1
- package/dist/run-options.js +0 -110
- package/dist/run-options.js.map +0 -1
- package/dist/run-telemetry.d.ts +0 -115
- package/dist/run-telemetry.d.ts.map +0 -1
- package/dist/run-telemetry.js +0 -137
- package/dist/run-telemetry.js.map +0 -1
- package/dist/run-view.d.ts +0 -109
- package/dist/run-view.d.ts.map +0 -1
- package/dist/run-view.js +0 -118
- package/dist/run-view.js.map +0 -1
- package/dist/run.d.ts +0 -261
- package/dist/run.d.ts.map +0 -1
- package/dist/run.js +0 -420
- package/dist/run.js.map +0 -1
- package/dist/runtime-keys.d.ts +0 -17
- package/dist/runtime-keys.d.ts.map +0 -1
- package/dist/runtime-keys.js +0 -17
- package/dist/runtime-keys.js.map +0 -1
- package/dist/sandbox.d.ts +0 -27
- package/dist/sandbox.d.ts.map +0 -1
- package/dist/sandbox.js +0 -63
- package/dist/sandbox.js.map +0 -1
- package/dist/session-link.d.ts +0 -19
- package/dist/session-link.d.ts.map +0 -1
- package/dist/session-link.js +0 -26
- package/dist/session-link.js.map +0 -1
- package/dist/sessions.d.ts +0 -77
- package/dist/sessions.d.ts.map +0 -1
- package/dist/sessions.js +0 -146
- package/dist/sessions.js.map +0 -1
- package/dist/spike-locks.d.ts +0 -75
- package/dist/spike-locks.d.ts.map +0 -1
- package/dist/spike-locks.js +0 -208
- package/dist/spike-locks.js.map +0 -1
- package/dist/stale-branch.d.ts +0 -21
- package/dist/stale-branch.d.ts.map +0 -1
- package/dist/stale-branch.js +0 -32
- package/dist/stale-branch.js.map +0 -1
- package/dist/steps.d.ts +0 -9
- package/dist/steps.d.ts.map +0 -1
- package/dist/steps.js +0 -13
- package/dist/steps.js.map +0 -1
- package/dist/store/forge.d.ts +0 -110
- package/dist/store/forge.d.ts.map +0 -1
- package/dist/store/forge.js +0 -97
- package/dist/store/forge.js.map +0 -1
- package/dist/store/run-checkout.d.ts +0 -33
- package/dist/store/run-checkout.d.ts.map +0 -1
- package/dist/store/run-checkout.js +0 -59
- package/dist/store/run-checkout.js.map +0 -1
- package/dist/store/run-store.d.ts +0 -501
- package/dist/store/run-store.d.ts.map +0 -1
- package/dist/store/run-store.js +0 -806
- package/dist/store/run-store.js.map +0 -1
- package/dist/store/suspend.d.ts +0 -38
- package/dist/store/suspend.d.ts.map +0 -1
- package/dist/store/suspend.js +0 -45
- package/dist/store/suspend.js.map +0 -1
- package/dist/store/worktree-deps.d.ts +0 -30
- package/dist/store/worktree-deps.d.ts.map +0 -1
- package/dist/store/worktree-deps.js +0 -115
- package/dist/store/worktree-deps.js.map +0 -1
- package/dist/store/worktree.d.ts +0 -194
- package/dist/store/worktree.d.ts.map +0 -1
- package/dist/store/worktree.js +0 -331
- package/dist/store/worktree.js.map +0 -1
- package/dist/subagent-settings.d.ts +0 -27
- package/dist/subagent-settings.d.ts.map +0 -1
- package/dist/subagent-settings.js +0 -35
- package/dist/subagent-settings.js.map +0 -1
- package/dist/system-prompt-file.d.ts +0 -18
- package/dist/system-prompt-file.d.ts.map +0 -1
- package/dist/system-prompt-file.js +0 -28
- package/dist/system-prompt-file.js.map +0 -1
- package/dist/system-prompt.d.ts +0 -148
- package/dist/system-prompt.d.ts.map +0 -1
- package/dist/system-prompt.js +0 -170
- package/dist/system-prompt.js.map +0 -1
- package/dist/target-driver.d.ts +0 -28
- package/dist/target-driver.d.ts.map +0 -1
- package/dist/target-driver.js +0 -18
- package/dist/target-driver.js.map +0 -1
- package/dist/ticket-locks.d.ts +0 -61
- package/dist/ticket-locks.d.ts.map +0 -1
- package/dist/ticket-locks.js +0 -137
- package/dist/ticket-locks.js.map +0 -1
- package/dist/tickets-file.d.ts +0 -7
- package/dist/tickets-file.d.ts.map +0 -1
- package/dist/tickets-file.js +0 -21
- package/dist/tickets-file.js.map +0 -1
- package/dist/tickets.d.ts +0 -18
- package/dist/tickets.d.ts.map +0 -1
- package/dist/tickets.js +0 -23
- package/dist/tickets.js.map +0 -1
- package/dist/todo-loop.d.ts +0 -110
- package/dist/todo-loop.d.ts.map +0 -1
- package/dist/todo-loop.js +0 -175
- package/dist/todo-loop.js.map +0 -1
- package/dist/turn-gate.d.ts +0 -144
- package/dist/turn-gate.d.ts.map +0 -1
- package/dist/turn-gate.js +0 -217
- package/dist/turn-gate.js.map +0 -1
- package/dist/usage.d.ts +0 -32
- package/dist/usage.d.ts.map +0 -1
- package/dist/usage.js +0 -46
- package/dist/usage.js.map +0 -1
- package/dist/widget-types/dashboard/components/LinkActions.d.ts +0 -26
- package/dist/widget-types/dashboard/components/Markdown.d.ts +0 -4
- package/dist/widget-types/dashboard/components/StartAgentButton.d.ts +0 -39
- package/dist/widget-types/dashboard/components/ui/badge.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/button.d.ts +0 -10
- package/dist/widget-types/dashboard/components/ui/card.d.ts +0 -5
- package/dist/widget-types/dashboard/components/ui/checkbox.d.ts +0 -7
- package/dist/widget-types/dashboard/components/ui/dropdown-menu.d.ts +0 -16
- package/dist/widget-types/dashboard/components/ui/input.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/option-label.d.ts +0 -4
- package/dist/widget-types/dashboard/components/ui/popover.d.ts +0 -8
- package/dist/widget-types/dashboard/components/ui/scroll-area.d.ts +0 -10
- package/dist/widget-types/dashboard/components/ui/separator.d.ts +0 -3
- package/dist/widget-types/dashboard/components/ui/skeleton.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/slider.d.ts +0 -9
- package/dist/widget-types/dashboard/components/ui/tooltip.d.ts +0 -11
- package/dist/widget-types/dashboard/lib/draft-handoff.d.ts +0 -15
- package/dist/widget-types/dashboard/lib/format-date.d.ts +0 -51
- package/dist/widget-types/dashboard/lib/host-services.d.ts +0 -12
- package/dist/widget-types/dashboard/lib/route.d.ts +0 -24
- package/dist/widget-types/dashboard/lib/rpc.d.ts +0 -31
- package/dist/widget-types/dashboard/lib/use-action.d.ts +0 -25
- package/dist/widget-types/dashboard/lib/use-async.d.ts +0 -39
- package/dist/widget-types/dashboard/lib/use-widgets.d.ts +0 -42
- package/dist/widget-types/dashboard/lib/utils.d.ts +0 -3
- package/dist/widget-types/dashboard/rpc/widgets.d.ts +0 -4
- package/dist/widget-types/dashboard/widget/index.d.ts +0 -207
- package/dist/widget-types/src/agent-id.d.ts +0 -12
- package/dist/widget-types/src/agent-locks.d.ts +0 -2
- package/dist/widget-types/src/agent-view.d.ts +0 -38
- package/dist/widget-types/src/bridge-browser.d.ts +0 -216
- package/dist/widget-types/src/browser-stream.d.ts +0 -19
- package/dist/widget-types/src/browser.d.ts +0 -15
- package/dist/widget-types/src/cli-exec.d.ts +0 -35
- package/dist/widget-types/src/cloud-run-state.d.ts +0 -26
- package/dist/widget-types/src/dashboard/activity.d.ts +0 -40
- package/dist/widget-types/src/dashboard/agent-handoff.d.ts +0 -211
- package/dist/widget-types/src/dashboard/agent-tree.d.ts +0 -105
- package/dist/widget-types/src/dashboard/bridge-endpoints.d.ts +0 -157
- package/dist/widget-types/src/dashboard/bridge-question.d.ts +0 -32
- package/dist/widget-types/src/dashboard/bridge-store.d.ts +0 -178
- package/dist/widget-types/src/dashboard/cache.d.ts +0 -46
- package/dist/widget-types/src/dashboard/content-type.d.ts +0 -2
- package/dist/widget-types/src/dashboard/dashboard.d.ts +0 -37
- package/dist/widget-types/src/dashboard/discord-webhook.d.ts +0 -16
- package/dist/widget-types/src/dashboard/docs.d.ts +0 -38
- package/dist/widget-types/src/dashboard/file-diff.d.ts +0 -66
- package/dist/widget-types/src/dashboard/file-read.d.ts +0 -41
- package/dist/widget-types/src/dashboard/file-status.d.ts +0 -20
- package/dist/widget-types/src/dashboard/gh.d.ts +0 -130
- package/dist/widget-types/src/dashboard/git-status.d.ts +0 -32
- package/dist/widget-types/src/dashboard/github.d.ts +0 -10
- package/dist/widget-types/src/dashboard/http.d.ts +0 -28
- package/dist/widget-types/src/dashboard/interventions.d.ts +0 -66
- package/dist/widget-types/src/dashboard/keys.d.ts +0 -30
- package/dist/widget-types/src/dashboard/models.d.ts +0 -24
- package/dist/widget-types/src/dashboard/open-in-app.d.ts +0 -42
- package/dist/widget-types/src/dashboard/open-questions.d.ts +0 -52
- package/dist/widget-types/src/dashboard/overview.d.ts +0 -77
- package/dist/widget-types/src/dashboard/projects.d.ts +0 -89
- package/dist/widget-types/src/dashboard/pull-requests.d.ts +0 -126
- package/dist/widget-types/src/dashboard/queue.d.ts +0 -16
- package/dist/widget-types/src/dashboard/quota.d.ts +0 -59
- package/dist/widget-types/src/dashboard/remote-run.d.ts +0 -94
- package/dist/widget-types/src/dashboard/rpc-serve.d.ts +0 -102
- package/dist/widget-types/src/dashboard/run-inbox.d.ts +0 -30
- package/dist/widget-types/src/dashboard/scheduler-state.d.ts +0 -64
- package/dist/widget-types/src/dashboard/tickets.d.ts +0 -28
- package/dist/widget-types/src/dashboard/types.d.ts +0 -99
- package/dist/widget-types/src/dashboard/widget-serve.d.ts +0 -14
- package/dist/widget-types/src/dashboard-rpc/context.d.ts +0 -53
- package/dist/widget-types/src/dashboard-rpc/control.d.ts +0 -108
- package/dist/widget-types/src/dashboard-rpc/devices.d.ts +0 -8
- package/dist/widget-types/src/dashboard-rpc/events-tail.d.ts +0 -53
- package/dist/widget-types/src/dashboard-rpc/events.d.ts +0 -29
- package/dist/widget-types/src/dashboard-rpc/index.d.ts +0 -28
- package/dist/widget-types/src/dashboard-rpc/models.d.ts +0 -3
- package/dist/widget-types/src/dashboard-rpc/preferences.d.ts +0 -40
- package/dist/widget-types/src/dashboard-rpc/projects.d.ts +0 -54
- package/dist/widget-types/src/dashboard-rpc/quota.d.ts +0 -26
- package/dist/widget-types/src/dashboard-rpc/reads.d.ts +0 -227
- package/dist/widget-types/src/dashboard-rpc/relay-agent.d.ts +0 -8
- package/dist/widget-types/src/dashboard-rpc/stream-forward.d.ts +0 -16
- package/dist/widget-types/src/dashboard-rpc/widgets.d.ts +0 -32
- package/dist/widget-types/src/discord-credentials.d.ts +0 -79
- package/dist/widget-types/src/driver-names.d.ts +0 -21
- package/dist/widget-types/src/error-message.d.ts +0 -7
- package/dist/widget-types/src/event-stream.d.ts +0 -32
- package/dist/widget-types/src/events.d.ts +0 -235
- package/dist/widget-types/src/framework-dir.d.ts +0 -10
- package/dist/widget-types/src/framework-gitignore.d.ts +0 -11
- package/dist/widget-types/src/index.d.ts +0 -42
- package/dist/widget-types/src/jsonl-tail.d.ts +0 -54
- package/dist/widget-types/src/loopback-host.d.ts +0 -19
- package/dist/widget-types/src/node-fs.d.ts +0 -32
- package/dist/widget-types/src/open-choices.d.ts +0 -14
- package/dist/widget-types/src/pick-directory.d.ts +0 -29
- package/dist/widget-types/src/preference-defaults.d.ts +0 -53
- package/dist/widget-types/src/project-commands.d.ts +0 -23
- package/dist/widget-types/src/project-errors.d.ts +0 -43
- package/dist/widget-types/src/project-hooks.d.ts +0 -133
- package/dist/widget-types/src/project-presets.d.ts +0 -29
- package/dist/widget-types/src/project-widgets.d.ts +0 -45
- package/dist/widget-types/src/project.d.ts +0 -28
- package/dist/widget-types/src/quota-boundary.d.ts +0 -115
- package/dist/widget-types/src/quota-poller.d.ts +0 -82
- package/dist/widget-types/src/registry.d.ts +0 -210
- package/dist/widget-types/src/store/agent-checkout.d.ts +0 -46
- package/dist/widget-types/src/store/agent-store.d.ts +0 -237
- package/dist/widget-types/src/store/branches.d.ts +0 -133
- package/dist/widget-types/src/store/forge.d.ts +0 -109
- package/dist/widget-types/src/store/git-host.d.ts +0 -111
- package/dist/widget-types/src/store/index.d.ts +0 -9
- package/dist/widget-types/src/store/provided.d.ts +0 -16
- package/dist/widget-types/src/store/queue.d.ts +0 -45
- package/dist/widget-types/src/store/run-record.d.ts +0 -21
- package/dist/widget-types/src/store/runs.d.ts +0 -101
- package/dist/widget-types/src/store/tickets.d.ts +0 -72
- package/dist/widget-types/src/tickets.d.ts +0 -17
- package/dist/widget-types/src/worktrees.d.ts +0 -89
- package/dist/widget.css +0 -50
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What launching a Chrome with its DevTools port open needs, whoever launches it: a port nobody
|
|
3
|
-
* holds, and a way to know the port answers. The bridge browser (#1332) is the one caller.
|
|
4
|
-
*/
|
|
5
|
-
/** A free localhost port, asked of the OS rather than guessed. */
|
|
6
|
-
export declare function freePort(): Promise<number>;
|
|
7
|
-
/**
|
|
8
|
-
* Poll `/json/version` until Chrome answers. Chrome opens the port a beat after the process
|
|
9
|
-
* starts, so connecting to a URL that is not listening yet is the obvious race.
|
|
10
|
-
*/
|
|
11
|
-
export declare function waitForDebugEndpoint(browserUrl: string, opts?: {
|
|
12
|
-
timeoutMs?: number;
|
|
13
|
-
intervalMs?: number;
|
|
14
|
-
fetchImpl?: typeof fetch;
|
|
15
|
-
}): Promise<boolean>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* One `execFile`-backed CLI runner, configured per binary — `gh`'s reads and writes. Git runs
|
|
3
|
-
* through the `skill-branches` package's own runner, which budgets per subcommand.
|
|
4
|
-
*/
|
|
5
|
-
/** Runs a CLI binary in `cwd`, resolving its stdout. Rejects on a non-zero exit. */
|
|
6
|
-
export type CliRunner = (args: string[], cwd: string) => Promise<string>;
|
|
7
|
-
/**
|
|
8
|
-
* A CLI killed for outrunning its timeout, as opposed to one the tool itself rejected (#997).
|
|
9
|
-
*
|
|
10
|
-
* `execFile` SIGTERMs on timeout, and a killed `git push` usually writes nothing to stderr, so
|
|
11
|
-
* without this the failure surfaces as a bare "Command failed: git push ..." that reads like a
|
|
12
|
-
* rejected push.
|
|
13
|
-
*/
|
|
14
|
-
export declare class CliTimeoutError extends Error {
|
|
15
|
-
readonly bin: string;
|
|
16
|
-
readonly args: string[];
|
|
17
|
-
readonly timeoutMs: number;
|
|
18
|
-
/** Brand, so a value that crossed a module boundary is still recognisable. */
|
|
19
|
-
readonly timedOut = true;
|
|
20
|
-
constructor(bin: string, args: string[], timeoutMs: number);
|
|
21
|
-
}
|
|
22
|
-
/** How to invoke one binary. */
|
|
23
|
-
export interface CliRunnerOptions {
|
|
24
|
-
bin: string;
|
|
25
|
-
/** Kill the process after this long, so a hung CLI cannot hang the caller. */
|
|
26
|
-
timeoutMs: number;
|
|
27
|
-
/**
|
|
28
|
-
* Reject with the CLI's own stderr rather than the generic exec message. `gh` puts the
|
|
29
|
-
* useful part there ("not logged in", "no default remote"), and that is exactly what the
|
|
30
|
-
* dashboard should show instead of a generic failure.
|
|
31
|
-
*/
|
|
32
|
-
preferStderr?: boolean;
|
|
33
|
-
}
|
|
34
|
-
/** Build a {@link CliRunner} for one binary. */
|
|
35
|
-
export declare function cliRunner(opts: CliRunnerOptions): CliRunner;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { AgentMeta } from './store/agent-store.js';
|
|
2
|
-
/**
|
|
3
|
-
* How long after its start a run's cloud session is still assumed to be alive. The same window
|
|
4
|
-
* the browser bridge watches a session for (`bridge-sessions`): past it nothing could learn the
|
|
5
|
-
* session is parked, so "in cloud" would be a guess nobody can correct — hence "done".
|
|
6
|
-
*/
|
|
7
|
-
export declare const CLOUD_SESSION_WINDOW_MS: number;
|
|
8
|
-
/**
|
|
9
|
-
* What the cloud side of a web run is doing.
|
|
10
|
-
*
|
|
11
|
-
* - `waiting`: the browser bridge holds a question the session is parked on
|
|
12
|
-
* - `merged`: the session's work was adopted (#1601) and its pull request merged by the framework
|
|
13
|
-
* - `in-cloud`: no pull request yet and the run is inside the session window, so it may still be working
|
|
14
|
-
* - `done`: its pull request exists — the work landed, and the PR badge carries its live state — or the
|
|
15
|
-
* window passed with nothing adopted: the session finished or never pushed
|
|
16
|
-
*/
|
|
17
|
-
export type CloudRunState = 'waiting' | 'merged' | 'in-cloud' | 'done';
|
|
18
|
-
/** The fields of a run's record the projection reads. */
|
|
19
|
-
export type CloudRunFacts = Pick<AgentMeta, 'target' | 'status' | 'startedAt' | 'pr' | 'mergeOutcome' | 'cloudWaiting'>;
|
|
20
|
-
/**
|
|
21
|
-
* The cloud state of a web run whose local half is over, or undefined for any other run — a
|
|
22
|
-
* local run, or a web run still handing off, stopped or failed — whose stored status is the word.
|
|
23
|
-
*/
|
|
24
|
-
export declare function cloudRunState(meta: CloudRunFacts, now: number): CloudRunState | undefined;
|
|
25
|
-
/** Whether the cloud side still counts as an agent at work: in its session, or waiting on a human. */
|
|
26
|
-
export declare function cloudRunActive(state: CloudRunState | undefined): boolean;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { type AgentMeta, type AgentStatus } from '../store/index.js';
|
|
2
|
-
import type { ProjectSummary, ProjectionRead } from './projects.js';
|
|
3
|
-
export { activityKey } from './keys.js';
|
|
4
|
-
/**
|
|
5
|
-
* One agent lifecycle event worth a passing mention. Two kinds: an agent `started` (entered
|
|
6
|
-
* `running`) or `finished` (reached a terminal status). The card is not shown for these — they
|
|
7
|
-
* only drive notifications — so the fields are just what a notification line needs.
|
|
8
|
-
*/
|
|
9
|
-
export interface Activity {
|
|
10
|
-
projectId: string;
|
|
11
|
-
projectName: string;
|
|
12
|
-
/** The agent this is about. */
|
|
13
|
-
agentId: string;
|
|
14
|
-
/** `started` = the agent entered `running`; `finished` = it reached a terminal status. */
|
|
15
|
-
kind: 'started' | 'finished';
|
|
16
|
-
/** What the agent is building (its `intent`), for the notification body; may be absent. */
|
|
17
|
-
title?: string;
|
|
18
|
-
/** The finished agent's terminal status (`finished` only), so a stop reads differently from a done. */
|
|
19
|
-
status?: AgentStatus;
|
|
20
|
-
/** When the agent last changed, ISO, for ordering and the baseline diff. */
|
|
21
|
-
updatedAt?: string;
|
|
22
|
-
}
|
|
23
|
-
/** Injectable seam so {@link buildActivity} is unit-testable off disk. */
|
|
24
|
-
export interface ActivityDeps {
|
|
25
|
-
/** A project's runs, live prepended to the archived history, newest-first. Defaults to disk. */
|
|
26
|
-
readAgents?: (cwd: string) => Promise<AgentMeta[]>;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Build the cross-project activity feed: for each registered project's most recent agents, one
|
|
30
|
-
* item per agent reflecting where it is now (`started` while it runs, `finished` once it lands),
|
|
31
|
-
* newest first. Forgiving — a project whose agents cannot be read simply contributes nothing, and
|
|
32
|
-
* comes back named as one that was *not* read whole (#1623), since "nothing happened there" and
|
|
33
|
-
* "I could not look" are the same empty list to everyone but the notification watcher.
|
|
34
|
-
*
|
|
35
|
-
* The `started` and `finished` items for one agent carry distinct keys ({@link activityKey}), so a
|
|
36
|
-
* run that is still going notifies once (started) and again when it lands (finished). An agent that
|
|
37
|
-
* both starts and finishes between two polls is only ever seen terminal, so it notifies once
|
|
38
|
-
* (finished) — one quick agent, one line.
|
|
39
|
-
*/
|
|
40
|
-
export declare function buildActivity(projects: ProjectSummary[], deps?: ActivityDeps): Promise<ProjectionRead<Activity>>;
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { type LinkedPr, type BranchPrLookup } from './pull-requests.js';
|
|
2
|
-
import type { Cached } from './cache.js';
|
|
3
|
-
import type { AgentMeta } from '../store/index.js';
|
|
4
|
-
import { type BranchesFor } from '../store/branches.js';
|
|
5
|
-
import { type GitHostFor } from '../store/git-host.js';
|
|
6
|
-
/** One commit a session put on its branch. */
|
|
7
|
-
export interface HandoffCommit {
|
|
8
|
-
sha: string;
|
|
9
|
-
/** Short sha, for display. */
|
|
10
|
-
short: string;
|
|
11
|
-
subject: string;
|
|
12
|
-
}
|
|
13
|
-
/** One file the session changed, against the branch point. */
|
|
14
|
-
export interface HandoffFile {
|
|
15
|
-
path: string;
|
|
16
|
-
insertions: number;
|
|
17
|
-
deletions: number;
|
|
18
|
-
/** True for a binary file, where line counts are meaningless. */
|
|
19
|
-
binary: boolean;
|
|
20
|
-
}
|
|
21
|
-
/** What a finished session produced and what can still be done with it. */
|
|
22
|
-
export interface AgentHandoff {
|
|
23
|
-
/** The branch the work is on. */
|
|
24
|
-
branch: string;
|
|
25
|
-
/** The name the agent gave its work, as the branches provider answers it; absent while the run has not named it. */
|
|
26
|
-
name?: string;
|
|
27
|
-
/** The branch still exists in the repo (a deleted or never-created one does not). */
|
|
28
|
-
exists: boolean;
|
|
29
|
-
/** The branch is gone because the run changed nothing ({@link leftNothing}), not because work went. */
|
|
30
|
-
unchanged?: boolean;
|
|
31
|
-
/** What the branch is measured against (the repo's default branch), when one was found. */
|
|
32
|
-
base?: string;
|
|
33
|
-
commits: HandoffCommit[];
|
|
34
|
-
files: HandoffFile[];
|
|
35
|
-
insertions: number;
|
|
36
|
-
deletions: number;
|
|
37
|
-
/**
|
|
38
|
-
* The session produced nothing to hand off: the branch exists but carries no commit the base
|
|
39
|
-
* does not already have — or nothing beyond the framework's own bookkeeping (#1291), which is
|
|
40
|
-
* committed for provenance, never as publishable work. Said out loud, rather than shown as an
|
|
41
|
-
* empty branch.
|
|
42
|
-
*/
|
|
43
|
-
empty: boolean;
|
|
44
|
-
/** The repo has a remote to push to at all. */
|
|
45
|
-
hasRemote: boolean;
|
|
46
|
-
/** The branch is on the remote and the remote is at the same commit. */
|
|
47
|
-
pushed: boolean;
|
|
48
|
-
/** The branch is already merged into the base. */
|
|
49
|
-
merged: boolean;
|
|
50
|
-
/** The project has a git host package (#1820): a pull request is a next step at all. Without one, the last step is the push. */
|
|
51
|
-
gitHost: boolean;
|
|
52
|
-
/** The PR opened for this branch, when there is one. */
|
|
53
|
-
pr?: LinkedPr;
|
|
54
|
-
/** The PR is not known yet, rather than absent (#1028): the lookup is still running. */
|
|
55
|
-
prPending?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* The files the session changed and never committed, read from its own checkout (#1173).
|
|
58
|
-
*
|
|
59
|
-
* The agent is told to commit its work, but one that ended without doing so holds its whole
|
|
60
|
-
* output in an uncommitted tree, and nothing commits it on the agent's behalf (#1638). That work
|
|
61
|
-
* is not on the branch yet, so it is
|
|
62
|
-
* not in {@link commits} and it does not make {@link empty} false. Paths rather than a count,
|
|
63
|
-
* because a no-diff branch must *name* what is waiting instead of offering an Open PR that
|
|
64
|
-
* the git host can only refuse. Absent when no checkout is on the branch any more — "no checkout"
|
|
65
|
-
* and "a checkout, tree clean" are different answers.
|
|
66
|
-
*/
|
|
67
|
-
pendingFiles?: string[];
|
|
68
|
-
}
|
|
69
|
-
/** Injectable seams so the reader is unit-testable off disk and off the provider. */
|
|
70
|
-
export interface AgentHandoffDeps {
|
|
71
|
-
pr?: BranchPrLookup;
|
|
72
|
-
/** The project's checkouts and branches (default the project's provider, {@link projectBranches}). */
|
|
73
|
-
branches?: BranchesFor;
|
|
74
|
-
/** The project's git host (default the project's provider, {@link projectGitHost}). */
|
|
75
|
-
gitHost?: GitHostFor;
|
|
76
|
-
/**
|
|
77
|
-
* When the agent started (ISO), so the PR lookup can tell the agent's own PR from an earlier agent's
|
|
78
|
-
* on the same branch name (#1251). Without it, only an open PR is trusted.
|
|
79
|
-
*/
|
|
80
|
-
since?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Which of the run's own PRs answers, when it has more than one (#1512). Identity questions want
|
|
83
|
-
* the first; a handoff decision comparing the branch tip against a PR's head wants the last one
|
|
84
|
-
* that saw the branch, or work a later PR already landed reads as unlanded. See {@link pickAgentPr}.
|
|
85
|
-
*/
|
|
86
|
-
order?: 'first' | 'latest';
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* The branch an agent's work is on: what was recorded while the checkout existed (#799/#1277).
|
|
90
|
-
* The agent renames its branch itself (#1725), so anything but the record is a guess, and a run
|
|
91
|
-
* whose record carries no branch has none to hand off.
|
|
92
|
-
*/
|
|
93
|
-
export declare function agentBranchFor(agent: {
|
|
94
|
-
id: string;
|
|
95
|
-
branch?: string;
|
|
96
|
-
}): string | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* Whether a run whose branch is gone changed nothing (#1850): it ended `done` or `failed` on this
|
|
99
|
-
* machine, and has no pull request. Such a run's own tool recorded the branch's last name as it
|
|
100
|
-
* ended and then reclaimed the checkout, and the branches rule deletes a branch with the checkout
|
|
101
|
-
* only when it holds nothing. A run another machine ran, or one whose process died before its tool
|
|
102
|
-
* could record the end (the sweep marks that one `stopped`), leaves no such proof.
|
|
103
|
-
*/
|
|
104
|
-
export declare function leftNothing(agent: {
|
|
105
|
-
status?: string;
|
|
106
|
-
host?: string;
|
|
107
|
-
pr?: unknown;
|
|
108
|
-
}, host?: string): boolean;
|
|
109
|
-
/** The cached single-PR read {@link resolveAgentPr} asks for the recorded PR's current state. */
|
|
110
|
-
export type CachedBranchPrLookup = (cwd: string, branch?: string) => Promise<Cached<LinkedPr | undefined>>;
|
|
111
|
-
/** What {@link resolveAgentPr} needs to know about an agent: structurally satisfied by {@link AgentMeta}. */
|
|
112
|
-
export interface PrAgent {
|
|
113
|
-
id: string;
|
|
114
|
-
branch?: string;
|
|
115
|
-
/** The pull request the agent recorded when one was opened for it (E6). */
|
|
116
|
-
pr?: {
|
|
117
|
-
number: number;
|
|
118
|
-
url: string;
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* The pull request that belongs to an agent: the one it recorded (E6), read live for its state.
|
|
123
|
-
*
|
|
124
|
-
* The number is a fact about the agent, so the agent writes it down — at the moment its handoff opens
|
|
125
|
-
* the PR, or when the dashboard's button does after the process is gone. Every surface then reads
|
|
126
|
-
* the same integer instead of re-deriving it.
|
|
127
|
-
*
|
|
128
|
-
* What that replaced: a three-way branch-name ladder (the recorded branch, then a branch built from
|
|
129
|
-
* the session name, then the run-id branch, because a hands-off web agent's checkout is gone and its
|
|
130
|
-
* session name may be a reused pin) plus a timestamp heuristic on top of it, so that a predecessor's PR on
|
|
131
|
-
* a shared branch name was not mistaken for this agent's. Three sources and a guess, standing in for
|
|
132
|
-
* one integer nobody had written down — the same lesson the `branch` event (#1277) already learned.
|
|
133
|
-
*
|
|
134
|
-
* The *state* is still read live, because it changes without this agent doing anything: a PR merges,
|
|
135
|
-
* a human closes it. That read rides the PR-lookup cache (#1028), and `pending` while it is warming means the
|
|
136
|
-
* caller can ask again rather than render "no PR".
|
|
137
|
-
*/
|
|
138
|
-
export declare function resolveAgentPr(cwd: string, agent: PrAgent, prs?: CachedBranchPrLookup): Promise<Cached<LinkedPr | undefined>>;
|
|
139
|
-
/**
|
|
140
|
-
* Merge a finished session's open PR (#1391): the Merge action, pressed by a human saying "it's
|
|
141
|
-
* good, land it". The landing itself is the git host provider's (`merge <number>`): armed to merge on
|
|
142
|
-
* green, merged at once where it is already green, or watched by the provider where the
|
|
143
|
-
* repository allows no auto-merge; a draft is marked ready on the way. Refuses when the agent has
|
|
144
|
-
* no PR or it is no longer open — "already merged" is an answer, not an action.
|
|
145
|
-
*/
|
|
146
|
-
export declare function mergeAgentPr(cwd: string, agent: PrAgent, deps?: {
|
|
147
|
-
gitHost?: GitHostFor;
|
|
148
|
-
prs?: CachedBranchPrLookup;
|
|
149
|
-
}): Promise<HandoffResult>;
|
|
150
|
-
/**
|
|
151
|
-
* Read what a finished session left behind, for `branch`: the branch's git facts from the
|
|
152
|
-
* project's branches provider, and the run's own pull request from the framework's lookup.
|
|
153
|
-
*
|
|
154
|
-
* Returns undefined only when the project has no branches provider, or the provider did not
|
|
155
|
-
* answer for the branch. A branch that no longer exists still returns a handoff (with
|
|
156
|
-
* `exists: false`), because "that branch is gone" is itself the answer the dashboard needs to
|
|
157
|
-
* show — and its PR is a remote question, still answerable (#1255).
|
|
158
|
-
*/
|
|
159
|
-
export declare function readAgentHandoff(cwd: string, branch: string, deps?: AgentHandoffDeps): Promise<AgentHandoff | undefined>;
|
|
160
|
-
/**
|
|
161
|
-
* What a handoff action did. The PR's `number` rides along with its `url` (E6), because the number
|
|
162
|
-
* is the fact worth *recording* — every surface that wants an agent's PR then reads it off the agent
|
|
163
|
-
* rather than re-deriving it later.
|
|
164
|
-
*/
|
|
165
|
-
export type HandoffResult = {
|
|
166
|
-
ok: true;
|
|
167
|
-
url?: string;
|
|
168
|
-
number?: number;
|
|
169
|
-
} | {
|
|
170
|
-
ok: false;
|
|
171
|
-
error: string;
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* Push a finished session's branch (#1820): the last step where the project has no git host, or the
|
|
175
|
-
* step a person wants on its own. The branches provider pushes it under its clean rule; a branch
|
|
176
|
-
* only the remote has is already there. Refuses a session that recorded no branch.
|
|
177
|
-
*/
|
|
178
|
-
export declare function pushAgentBranch(cwd: string, agent: Pick<AgentMeta, 'id' | 'branch'>, deps?: {
|
|
179
|
-
branches?: BranchesFor;
|
|
180
|
-
}): Promise<HandoffResult>;
|
|
181
|
-
/**
|
|
182
|
-
* Open a draft PR for a branch that exists only on the remote (#1601): a cloud session's own
|
|
183
|
-
* `claude/*` branch was pushed from a VM this machine never sees, so there is nothing to push
|
|
184
|
-
* here — the provider publishes the branch as the remote has it. Draft because a PR the
|
|
185
|
-
* framework opens by itself must not put a review request in anyone's inbox, and the
|
|
186
|
-
* interventions queue keeps listing a session's draft.
|
|
187
|
-
*/
|
|
188
|
-
export declare function openRemoteBranchPullRequest(cwd: string, agent: HandoffAgent, branch: string, deps?: {
|
|
189
|
-
branches?: BranchesFor;
|
|
190
|
-
gitHost?: GitHostFor;
|
|
191
|
-
}): Promise<HandoffResult>;
|
|
192
|
-
/**
|
|
193
|
-
* Open a PR for a finished session, deciding from what the agent recorded which cases should not
|
|
194
|
-
* open one. Reads the branch's handoff first: a branch that no longer exists, or a session that
|
|
195
|
-
* changed nothing, is a clear error rather than an empty PR, and a branch that already has a PR
|
|
196
|
-
* returns that one. Title is its branch, else the id; body is the intent, plus which session did it. This is the handoff decision the
|
|
197
|
-
* dashboard's open-PR button offers; the RPC layer only resolves which run it is about, and the
|
|
198
|
-
* two providers do the pushing and the opening.
|
|
199
|
-
*/
|
|
200
|
-
export declare function openAgentPullRequest(cwd: string, agent: AgentMeta, options?: {
|
|
201
|
-
draft?: boolean;
|
|
202
|
-
branches?: BranchesFor;
|
|
203
|
-
gitHost?: GitHostFor;
|
|
204
|
-
pr?: BranchPrLookup;
|
|
205
|
-
}): Promise<HandoffResult>;
|
|
206
|
-
/**
|
|
207
|
-
* The little a handoff needs to know about the agent it is for: which branch, and what to say on
|
|
208
|
-
* the PR. Narrower than {@link AgentMeta} so a caller cannot quietly start depending on the rest
|
|
209
|
-
* of the agent's state.
|
|
210
|
-
*/
|
|
211
|
-
export type HandoffAgent = Pick<AgentMeta, 'id' | 'branch' | 'intent'> & Partial<Pick<AgentMeta, 'startedAt'>>;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { type GitRunner } from '@gemstack/agent-data';
|
|
2
|
-
import { type BranchesFor } from '../store/index.js';
|
|
3
|
-
import type { Cached } from './cache.js';
|
|
4
|
-
import { type FileGitStatus } from './file-status.js';
|
|
5
|
-
import { type FileDiff } from './file-diff.js';
|
|
6
|
-
import { type FileContent } from './file-read.js';
|
|
7
|
-
import { type LinkedPr } from './pull-requests.js';
|
|
8
|
-
/** Where a run's files are read from, and the commit its changes are measured from (`base`). */
|
|
9
|
-
export type AgentFilesAt = {
|
|
10
|
-
source: 'checkout';
|
|
11
|
-
path: string;
|
|
12
|
-
base?: string;
|
|
13
|
-
} | {
|
|
14
|
-
source: 'branch';
|
|
15
|
-
branch: string;
|
|
16
|
-
ref: string;
|
|
17
|
-
base?: string;
|
|
18
|
-
} | {
|
|
19
|
-
source: 'merge';
|
|
20
|
-
number: number;
|
|
21
|
-
ref: string;
|
|
22
|
-
base?: string;
|
|
23
|
-
}
|
|
24
|
-
/** The run changed nothing: the project's default branch, where no path is marked. */
|
|
25
|
-
| {
|
|
26
|
-
source: 'unchanged';
|
|
27
|
-
ref: string;
|
|
28
|
-
}
|
|
29
|
-
/** The run's pull request is still being looked up: the next read knows. */
|
|
30
|
-
| {
|
|
31
|
-
source: 'pending';
|
|
32
|
-
} | {
|
|
33
|
-
source: 'gone';
|
|
34
|
-
};
|
|
35
|
-
/** One changed path: what changed, and whether it is committed or only on disk in the checkout. */
|
|
36
|
-
export interface FileMark {
|
|
37
|
-
status: FileGitStatus;
|
|
38
|
-
committed: boolean;
|
|
39
|
-
}
|
|
40
|
-
/** What the Files tab shows for a run: the tree at its last state, the paths it changed marked. */
|
|
41
|
-
export type AgentTree = {
|
|
42
|
-
source: 'checkout';
|
|
43
|
-
files: string[];
|
|
44
|
-
changes: Record<string, FileMark>;
|
|
45
|
-
} | {
|
|
46
|
-
source: 'branch';
|
|
47
|
-
branch: string;
|
|
48
|
-
files: string[];
|
|
49
|
-
changes: Record<string, FileMark>;
|
|
50
|
-
} | {
|
|
51
|
-
source: 'merge';
|
|
52
|
-
number: number;
|
|
53
|
-
files: string[];
|
|
54
|
-
changes: Record<string, FileMark>;
|
|
55
|
-
} | {
|
|
56
|
-
source: 'unchanged';
|
|
57
|
-
files: string[];
|
|
58
|
-
changes: Record<string, FileMark>;
|
|
59
|
-
} | {
|
|
60
|
-
source: 'pending';
|
|
61
|
-
} | {
|
|
62
|
-
source: 'gone';
|
|
63
|
-
};
|
|
64
|
-
/** What {@link resolveAgentFiles} reads through; each defaults to the production reader. */
|
|
65
|
-
export interface AgentFilesDeps {
|
|
66
|
-
git?: GitRunner;
|
|
67
|
-
branches?: BranchesFor;
|
|
68
|
-
agent?: (root: string, agentId: string) => Promise<{
|
|
69
|
-
id: string;
|
|
70
|
-
status?: string;
|
|
71
|
-
host?: string;
|
|
72
|
-
branch?: string;
|
|
73
|
-
pr?: {
|
|
74
|
-
number: number;
|
|
75
|
-
};
|
|
76
|
-
} | undefined>;
|
|
77
|
-
/** This machine's name, against the run's `host`. */
|
|
78
|
-
host?: string;
|
|
79
|
-
prs?: (root: string, branch: string) => Promise<Cached<LinkedPr[]>>;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Where the run `agentId` of the project at `root` has its files: its checkout, else its recorded
|
|
83
|
-
* branch (local, then origin's copy), else the commit its recorded pull request merged as, else,
|
|
84
|
-
* for a run that finished `done` on this machine with no pull request, the default branch as a
|
|
85
|
-
* run that changed nothing, else gone. A branch the default branch already contains (a true merge) shows no change, so there
|
|
86
|
-
* the merge commit is preferred when this machine has it.
|
|
87
|
-
*/
|
|
88
|
-
export declare function resolveAgentFiles(root: string, agentId: string, deps?: AgentFilesDeps): Promise<AgentFilesAt>;
|
|
89
|
-
/**
|
|
90
|
-
* The Files tab's answer for a resolved source. A checkout lists every file git sees in it and
|
|
91
|
-
* marks both what the run committed since it forked and what is on disk uncommitted, the
|
|
92
|
-
* uncommitted mark winning a path marked both: it is what the file is now. A branch or a merge
|
|
93
|
-
* lists the commit's tree and marks what it changed, all committed. A run that changed nothing
|
|
94
|
-
* lists the default branch's tree and marks nothing.
|
|
95
|
-
*/
|
|
96
|
-
export declare function readAgentTree(root: string, at: AgentFilesAt, git?: GitRunner): Promise<AgentTree>;
|
|
97
|
-
/**
|
|
98
|
-
* One changed file's diff, from the same source the tree was read from. In a checkout an
|
|
99
|
-
* uncommitted file diffs as it always has (against its last commit); a committed one diffs from
|
|
100
|
-
* the fork point to the checkout's last commit. On a branch or a merge it is the commit's own
|
|
101
|
-
* change. Null for a path that is unsafe or not changed there.
|
|
102
|
-
*/
|
|
103
|
-
export declare function readAgentFileDiff(root: string, at: AgentFilesAt, path: string, git?: GitRunner): Promise<FileDiff | null>;
|
|
104
|
-
/** One unchanged file's contents, from the same source the tree was read from. */
|
|
105
|
-
export declare function readAgentFileContent(root: string, at: AgentFilesAt, path: string, git?: GitRunner): Promise<FileContent | null>;
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import type { BridgeQuestion } from './bridge-question.js';
|
|
3
|
-
export type { BridgeOption, BridgeQuestion } from './bridge-question.js';
|
|
4
|
-
/**
|
|
5
|
-
* The browser bridge (#1237): the one endpoint an extension running in the user's own Claude
|
|
6
|
-
* session posts to, so a question a cloud agent is parked on becomes visible in the dashboard.
|
|
7
|
-
*
|
|
8
|
-
* **Why this route carries its own token, unlike every other one.** The #1051 guard in
|
|
9
|
-
* `startDashboard` only exists on a non-loopback bind, and what protects a loopback daemon is
|
|
10
|
-
* the same-origin check on `/_rpc`: a page on another origin is refused outright. This
|
|
11
|
-
* route is the first that is *meant* to be reached from another origin, so neither of those
|
|
12
|
-
* protects it, and it demands `Authorization: Bearer <daemonToken>` unconditionally instead.
|
|
13
|
-
*
|
|
14
|
-
* **No CORS headers, on purpose.** An extension's service worker holding `host_permissions`
|
|
15
|
-
* fetches without a preflight, so the bridge does not need `Access-Control-Allow-Origin` and
|
|
16
|
-
* must not have it: a wildcard here would let any page the user visits post to their daemon.
|
|
17
|
-
* The cost is that the extension has to post from its background worker rather than from the
|
|
18
|
-
* content script, which is a line in the extension and a much better trade.
|
|
19
|
-
*
|
|
20
|
-
* **What it accepts is deliberately tiny.** One shape, fully validated, with no path, command,
|
|
21
|
-
* prompt or free text anywhere in it. The worst a stolen token buys is a bogus question card in
|
|
22
|
-
* someone's dashboard, which is the point: this is attached to a daemon that spawns processes.
|
|
23
|
-
*/
|
|
24
|
-
export declare const BRIDGE_PREFIX = "/_bridge";
|
|
25
|
-
/**
|
|
26
|
-
* The extension version this daemon speaks (#1519). The extension states its own version on
|
|
27
|
-
* every call, in this header, and a daemon expecting another refuses outright: a version-skewed
|
|
28
|
-
* extension does not fail loudly, it half-works — missed messages, silently ignored fields —
|
|
29
|
-
* which reads as a framework bug and burns a debugging session. The extension's manifest must
|
|
30
|
-
* carry the same number; a test keeps the two in lockstep.
|
|
31
|
-
*/
|
|
32
|
-
export declare const EXPECTED_EXTENSION_VERSION = "0.12.0";
|
|
33
|
-
/** The header the extension states its version in. Lowercase, as node presents all headers. */
|
|
34
|
-
export declare const EXTENSION_VERSION_HEADER = "x-tf-extension-version";
|
|
35
|
-
/**
|
|
36
|
-
* One thing a cloud session did, as scraped from its page (#1237).
|
|
37
|
-
*
|
|
38
|
-
* `seq` is the message's position in the transcript, assigned by the extension, and it is what
|
|
39
|
-
* makes this idempotent: the page is re-read on every DOM change, so the same message arrives
|
|
40
|
-
* many times and the daemon keeps one copy per position rather than a growing pile of repeats.
|
|
41
|
-
*/
|
|
42
|
-
export interface BridgeEvent {
|
|
43
|
-
sessionId: string;
|
|
44
|
-
seq: number;
|
|
45
|
-
role: 'agent' | 'user';
|
|
46
|
-
text: string;
|
|
47
|
-
receivedAt: string;
|
|
48
|
-
}
|
|
49
|
-
/** What the page half of the bridge reports about itself, for diagnosis. */
|
|
50
|
-
export interface BridgeHello {
|
|
51
|
-
version: string;
|
|
52
|
-
sessionId?: string | undefined;
|
|
53
|
-
note: string;
|
|
54
|
-
at: string;
|
|
55
|
-
}
|
|
56
|
-
/** A cloud session the extension's Driver tab should be serving (#1237, #1332). */
|
|
57
|
-
export interface BridgeSession {
|
|
58
|
-
id: string;
|
|
59
|
-
url: string;
|
|
60
|
-
/**
|
|
61
|
-
* Whether the dashboard holds an answer for it waiting to be typed. Such a session is visited
|
|
62
|
-
* whatever the session list says about it.
|
|
63
|
-
*/
|
|
64
|
-
answerQueued: boolean;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* What claude.ai's own session list says a session is doing, as the Driver tab reads it (#1332).
|
|
68
|
-
*
|
|
69
|
-
* The list's status icon carries a text label, and these are its words: `awaiting` ("Awaiting
|
|
70
|
-
* input": the session stopped to ask its user), `unread` ("Unread response": it finished a turn
|
|
71
|
-
* nobody has read), `idle`, `running`, `landed` (the label is the session's pull request and
|
|
72
|
-
* its state), `missing` (the list does not show the session at all) and `unknown` — a label
|
|
73
|
-
* the extension does not know, carried verbatim so it can be named rather than guessed at.
|
|
74
|
-
*/
|
|
75
|
-
export type BridgeListStatus = 'awaiting' | 'unread' | 'idle' | 'running' | 'landed' | 'missing' | 'unknown';
|
|
76
|
-
/** One session's list status, stamped when the daemon took it. */
|
|
77
|
-
export interface BridgeSessionStatus {
|
|
78
|
-
sessionId: string;
|
|
79
|
-
status: BridgeListStatus;
|
|
80
|
-
/** The list's own label, kept only for `unknown`. */
|
|
81
|
-
label?: string | undefined;
|
|
82
|
-
at: string;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* A session the daemon wants the extension to create on claude.ai (#1328).
|
|
86
|
-
*
|
|
87
|
-
* The one shape that travels *out* of the bridge carrying free text, and that direction is what
|
|
88
|
-
* keeps the "deliberately tiny input" rule intact: the daemon writes it, the extension reads it,
|
|
89
|
-
* and what comes back is only an id, a boolean and a session id.
|
|
90
|
-
*/
|
|
91
|
-
export interface BridgeStart {
|
|
92
|
-
id: string;
|
|
93
|
-
/** `owner/name`, as the repo picker lists it. */
|
|
94
|
-
repo: string;
|
|
95
|
-
branch: string;
|
|
96
|
-
prompt: string;
|
|
97
|
-
/** The model to pick in claude.ai's model menu before sending (#1697); absent leaves the page's own. */
|
|
98
|
-
model?: string;
|
|
99
|
-
}
|
|
100
|
-
/** What the daemon wires behind the bridge. Absent when the feature is off, which 404s it. */
|
|
101
|
-
export interface BridgeHandlers {
|
|
102
|
-
/** The shared secret every bridge call must present. */
|
|
103
|
-
token: string;
|
|
104
|
-
/**
|
|
105
|
-
* The extension version to insist on (#1519). When set, every route past the token demands a
|
|
106
|
-
* matching {@link EXTENSION_VERSION_HEADER} and answers 426 otherwise — no degraded mode,
|
|
107
|
-
* ping included, so the only path forward from a stale extension is updating it.
|
|
108
|
-
*/
|
|
109
|
-
expectedExtensionVersion?: string;
|
|
110
|
-
/** What version the caller claimed and whether it was turned away, for the dashboard. */
|
|
111
|
-
extensionVersion?: (got: string, blocked: boolean) => void;
|
|
112
|
-
record: (question: BridgeQuestion) => void;
|
|
113
|
-
/** Record what the session said, keyed by its position in the transcript. */
|
|
114
|
-
recordEvent?: (event: BridgeEvent) => void;
|
|
115
|
-
/** Note that something reached the bridge, including when it was refused. */
|
|
116
|
-
contact?: (route: string, status: number) => void;
|
|
117
|
-
/** What the injected page script reports about itself. */
|
|
118
|
-
hello?: (hello: BridgeHello) => void;
|
|
119
|
-
/**
|
|
120
|
-
* The cloud sessions worth watching, newest first. The extension cannot know an agent started:
|
|
121
|
-
* it only sees pages the user is already on, so without this the bridge works only when
|
|
122
|
-
* somebody happens to be looking at claude.ai. This is how a tab gets opened for them.
|
|
123
|
-
*/
|
|
124
|
-
sessions?: () => Promise<BridgeSession[]>;
|
|
125
|
-
/**
|
|
126
|
-
* What the Driver tab read off claude.ai's session list for the watched sessions (#1332): the
|
|
127
|
-
* read-back a web run's own record cannot give, since the run ends at its hand-off.
|
|
128
|
-
*/
|
|
129
|
-
statuses?: (statuses: BridgeSessionStatus[]) => void;
|
|
130
|
-
/**
|
|
131
|
-
* The answer queued in the dashboard for that session, waiting to be delivered (#1237): `text`
|
|
132
|
-
* is exactly what the extension types into the composer, composed by the daemon from labels the
|
|
133
|
-
* session itself offered (#1554).
|
|
134
|
-
*/
|
|
135
|
-
answer?: (sessionId: string) => {
|
|
136
|
-
id: string;
|
|
137
|
-
text: string;
|
|
138
|
-
} | undefined;
|
|
139
|
-
/** The extension's word on what a delivery attempt did. */
|
|
140
|
-
answered?: (sessionId: string, id: string, ok: boolean, note?: string) => void;
|
|
141
|
-
/**
|
|
142
|
-
* The next session the daemon wants created, claimed for whoever is asking (#1328). Claiming is
|
|
143
|
-
* the callee's job: two tabs polling must not both be handed the same request, because a
|
|
144
|
-
* duplicate here is a duplicate cloud session on the user's account.
|
|
145
|
-
*/
|
|
146
|
-
start?: () => BridgeStart | undefined;
|
|
147
|
-
/** The extension's word on what a creation attempt did (#1328). */
|
|
148
|
-
started?: (id: string, ok: boolean, sessionId?: string, note?: string) => void;
|
|
149
|
-
now?: () => Date;
|
|
150
|
-
}
|
|
151
|
-
/** Route a `/_bridge/*` request. A daemon with the bridge off 404s every route. */
|
|
152
|
-
export declare function handleBridgeRequest(req: IncomingMessage, res: ServerResponse, pathname: string, handlers: BridgeHandlers | undefined): Promise<void>;
|
|
153
|
-
/**
|
|
154
|
-
* `Authorization: Bearer <token>`, compared in constant time. Rejects before the body is read,
|
|
155
|
-
* so an unauthenticated caller cannot make the daemon buffer anything.
|
|
156
|
-
*/
|
|
157
|
-
export declare function bearerAuthorized(req: IncomingMessage, token: string): boolean;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ChoiceRequest } from '../events.js';
|
|
2
|
-
/** One answer a bridged question offers: the same fields an `await-choices` option carries. */
|
|
3
|
-
export interface BridgeOption {
|
|
4
|
-
label: string;
|
|
5
|
-
detail?: string;
|
|
6
|
-
/** Starts checked, on a `multi` question. */
|
|
7
|
-
default?: boolean;
|
|
8
|
-
/** Picking it hands the session back to the user instead of continuing it (#358). */
|
|
9
|
-
stop?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A question a cloud session is parked on, as reported by the bridge. The shape of the session's
|
|
13
|
-
* own `await-choices` block (#1554), keyed by label rather than id: the page shows labels, and a
|
|
14
|
-
* label is what the extension can type back.
|
|
15
|
-
*/
|
|
16
|
-
export interface BridgeQuestion {
|
|
17
|
-
/** The cloud session that asked, which joins back to an agent through `AgentMeta.sessionId`. */
|
|
18
|
-
sessionId: string;
|
|
19
|
-
title: string;
|
|
20
|
-
options: BridgeOption[];
|
|
21
|
-
recommended?: string;
|
|
22
|
-
/** Several answers at once (#332): the pick is a subset of labels rather than one. */
|
|
23
|
-
multi?: boolean;
|
|
24
|
-
/** When the daemon accepted it. Set by the daemon, never by the caller. */
|
|
25
|
-
receivedAt: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* A bridged question as the gate panel renders it (#1554): the same `ChoiceRequest` a local
|
|
29
|
-
* agent's `choice` event carries, with the labels standing in for ids — a claude.ai page has no
|
|
30
|
-
* ids, and the label is what can be typed back into it.
|
|
31
|
-
*/
|
|
32
|
-
export declare function bridgeChoiceRequest(question: BridgeQuestion): ChoiceRequest;
|