@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,31 +0,0 @@
|
|
|
1
|
-
import type { LiveFeedEvent } from '../../src/dashboard-rpc/index.js';
|
|
2
|
-
/**
|
|
3
|
-
* A typed stub for one RPC. `F` is the implementation's own signature, so the call is checked
|
|
4
|
-
* against the real thing and a rename that misses a caller is a type error rather than a 404.
|
|
5
|
-
*
|
|
6
|
-
* Arguments and return value go through JSON, which is what they always did — the wire has no
|
|
7
|
-
* opinion about `Date` or `Map` here because none of these RPCs pass one.
|
|
8
|
-
*/
|
|
9
|
-
export declare function rpc<F extends (...args: never[]) => unknown>(name: string): (...args: Parameters<F>) => Promise<Awaited<ReturnType<F>>>;
|
|
10
|
-
/**
|
|
11
|
-
* A live feed of one agent's events.
|
|
12
|
-
*
|
|
13
|
-
* The contract the dashboard relies on, unchanged from the Channel it replaced: `listen` per
|
|
14
|
-
* event, and `onClose` telling a clean end (the server is done — an unknown project, a finished
|
|
15
|
-
* relay stream) apart from a dropped one (retry with backoff). That distinction is the whole
|
|
16
|
-
* reason the feed can say "the daemon is not answering" instead of looking like a quiet agent.
|
|
17
|
-
*/
|
|
18
|
-
export interface EventChannel {
|
|
19
|
-
listen(onEvent: (event: LiveFeedEvent) => void): void;
|
|
20
|
-
onClose(onClosed: (err?: Error) => void): void;
|
|
21
|
-
close(): void;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Subscribe to an agent's events over SSE. Rejects when the subscription itself fails, which the
|
|
25
|
-
* caller retries; a stream that opens and later dies closes with an error instead.
|
|
26
|
-
*
|
|
27
|
-
* Read with `fetch` rather than `EventSource` because `EventSource` reconnects on its own
|
|
28
|
-
* schedule, which would fight the caller's backoff and erase the clean-vs-dropped distinction —
|
|
29
|
-
* it reports every end as an error and retries even the ones that meant "done".
|
|
30
|
-
*/
|
|
31
|
-
export declare function openEvents(projectId: string, agentId?: string): Promise<EventChannel>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What an action did: `ok` says whether it succeeded, and only then is there a `value`.
|
|
3
|
-
*
|
|
4
|
-
* Said as a pair rather than as "the value, or `undefined` when it did not succeed", because an
|
|
5
|
-
* action that succeeds with nothing to report is not a failure: with the value alone, a `sendStop`
|
|
6
|
-
* that resolves void was indistinguishable from one that threw, and every such caller had to map
|
|
7
|
-
* its success to a stand-in value to tell the two apart.
|
|
8
|
-
*/
|
|
9
|
-
export type ActionOutcome<T> = {
|
|
10
|
-
ok: true;
|
|
11
|
-
value: Succeeded<T>;
|
|
12
|
-
} | {
|
|
13
|
-
ok: false;
|
|
14
|
-
};
|
|
15
|
-
/** What is left of an action's result once its own refusal branch is ruled out. */
|
|
16
|
-
type Succeeded<T> = Exclude<T, {
|
|
17
|
-
ok: false;
|
|
18
|
-
}>;
|
|
19
|
-
export declare function useAction(): {
|
|
20
|
-
busy: boolean;
|
|
21
|
-
error: string | null;
|
|
22
|
-
reset: () => void;
|
|
23
|
-
run: <T>(fn: () => Promise<T>, fallback?: string) => Promise<ActionOutcome<T>>;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type DependencyList } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* What a read shows when its deps change, until the new answer lands. By default, nothing: the
|
|
4
|
-
* `initial` value, so one target's data is never shown as another's.
|
|
5
|
-
*
|
|
6
|
-
* - `'previous'`: the last answer, whatever it was for. For a read whose target barely matters
|
|
7
|
-
* to the eye (the git host page of a project), where blanking would only flicker.
|
|
8
|
-
* - `{ remember: key }`: the last answer read under this key, marked loaded, or nothing when no
|
|
9
|
-
* answer was. For a page a person goes back and forth between (a run's facts): going back shows
|
|
10
|
-
* what was read last time at once, and the read is made again all the same, so it is replaced
|
|
11
|
-
* the moment the fresh answer lands. The key names the target, so no other target's answer is
|
|
12
|
-
* ever shown.
|
|
13
|
-
*/
|
|
14
|
-
export type Keep = 'previous' | {
|
|
15
|
-
remember: string;
|
|
16
|
-
};
|
|
17
|
-
/** Forget every remembered answer. For tests. */
|
|
18
|
-
export declare function forgetRemembered(): void;
|
|
19
|
-
/**
|
|
20
|
-
* Read once, and again whenever `deps` change.
|
|
21
|
-
*
|
|
22
|
-
* Pass `null` for `load` when there is nothing to read yet (no project selected): the
|
|
23
|
-
* value stays `initial` and no read is made. `load` must close over exactly `deps`.
|
|
24
|
-
*/
|
|
25
|
-
export declare function useLoaded<T>(load: (() => Promise<T>) | null, initial: T, deps: DependencyList, keep?: Keep): T;
|
|
26
|
-
/**
|
|
27
|
-
* Read now, again every `everyMs`, and again whenever `deps` change. Polling stops on
|
|
28
|
-
* unmount. `reload` reads immediately, for when a local action means the next tick is
|
|
29
|
-
* too late to wait for.
|
|
30
|
-
*
|
|
31
|
-
* Pass `null` for `load` when there is nothing to read yet. `load` must close over
|
|
32
|
-
* exactly `deps`. `loaded` is false until the first successful read, and again after
|
|
33
|
-
* a dep change — for callers that must tell "not there" from "not read yet".
|
|
34
|
-
*/
|
|
35
|
-
export declare function usePolled<T>(load: (() => Promise<T>) | null, initial: T, everyMs: number, deps: DependencyList, keep?: Keep): {
|
|
36
|
-
value: T;
|
|
37
|
-
reload: () => void;
|
|
38
|
-
loaded: boolean;
|
|
39
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { LinkAction, WidgetCard, WidgetPage } from '../widget/index.js';
|
|
2
|
-
/** A widget page as the shell mounts it: the page, plus the package it came from and the projects that have it. */
|
|
3
|
-
export interface MountedPage extends WidgetPage {
|
|
4
|
-
package: string;
|
|
5
|
-
projects: string[];
|
|
6
|
-
}
|
|
7
|
-
/** A link action as the shell mounts it (#1774): the action, plus the package it came from and the projects that have it. */
|
|
8
|
-
export interface MountedLinkAction extends LinkAction {
|
|
9
|
-
package: string;
|
|
10
|
-
projects: string[];
|
|
11
|
-
}
|
|
12
|
-
/** A card as the shell mounts it (#1818): the card, plus the package it came from and the projects that have it. */
|
|
13
|
-
export interface MountedCard extends WidgetCard {
|
|
14
|
-
package: string;
|
|
15
|
-
projects: string[];
|
|
16
|
-
}
|
|
17
|
-
/** What the installed widgets bring, once loaded: their pages, their cards and their link actions. */
|
|
18
|
-
export interface MountedWidgets {
|
|
19
|
-
pages: MountedPage[];
|
|
20
|
-
/** The Overview's cards, in the order they are drawn: by `order`, then by package name. */
|
|
21
|
-
cards: MountedCard[];
|
|
22
|
-
linkActions: MountedLinkAction[];
|
|
23
|
-
/** True once the widget list was read and every module in it imported or skipped. */
|
|
24
|
-
loaded: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* What the registered projects' widgets add (#1774), in package order: the pages, a segment two
|
|
28
|
-
* widgets claim going to the first, the cards (#1818), sorted by their order then their package, and the link actions, every one of them, each carrying the
|
|
29
|
-
* package it came from and the projects that have it. `loaded` is false until the widget list has
|
|
30
|
-
* been read and every module in it imported, so the shell can tell "no such page" from "not
|
|
31
|
-
* loaded yet".
|
|
32
|
-
*/
|
|
33
|
-
export declare function useWidgets(): MountedWidgets;
|
|
34
|
-
/**
|
|
35
|
-
* The mounted widgets, for any component in the shell (#1774): the shell reads them once with
|
|
36
|
-
* {@link useWidgets} and provides them here, so a page deep in the tree finds the link actions
|
|
37
|
-
* without the shell threading them through every prop. Outside the provider: nothing mounted,
|
|
38
|
-
* not loaded.
|
|
39
|
-
*/
|
|
40
|
-
export declare const WidgetsContext: import("react").Context<MountedWidgets>;
|
|
41
|
-
/** The installed widgets' pages and link actions, as the shell mounted them. */
|
|
42
|
-
export declare function useMountedWidgets(): MountedWidgets;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type * as impl from '../../src/dashboard-rpc/widgets.js';
|
|
2
|
-
export type * from '../../src/dashboard-rpc/widgets.js';
|
|
3
|
-
export declare const onWidgets: () => Promise<impl.DashboardWidget[]>;
|
|
4
|
-
export declare const runWidgetCommand: (projectId: string, pkg: string, args: string[], command?: string | undefined, acts?: boolean | undefined) => Promise<import("@gemstack/agent-data").PackageCommandResult>;
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { type ComponentType } from 'react';
|
|
2
|
-
import type { AgentStatus } from '../../src/index.js';
|
|
3
|
-
import type { WidgetCommandResult } from '../rpc/widgets.js';
|
|
4
|
-
export type { WidgetCommandResult, AgentStatus };
|
|
5
|
-
/** A registered project that has the widget's package, as a page gets it. */
|
|
6
|
-
export interface WidgetProject {
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* What a widget page is rendered with. A page reads its sub-path and navigates within itself
|
|
12
|
-
* through {@link WidgetHost.openPage}; the dashboard's own pages reach it the same way, by the
|
|
13
|
-
* link convention below.
|
|
14
|
-
*
|
|
15
|
-
* A link into a project's files (`WidgetLink.href` such as `tickets/2026-01-01_x.md`) opens the
|
|
16
|
-
* mounted page named by its first segment, at `/<segment>/<projectId>/<rest…>`: the path a page
|
|
17
|
-
* gets for it is `[projectId, ...rest]`. So a page that shows one project's file under its own
|
|
18
|
-
* segment is where every such link in the dashboard lands, and the dashboard names no page.
|
|
19
|
-
*/
|
|
20
|
-
export interface WidgetPageProps {
|
|
21
|
-
/** The registered projects whose dependencies include the widget's package, in the registry's order. */
|
|
22
|
-
projects: WidgetProject[];
|
|
23
|
-
/** The URL's segments after the page's own, decoded: `/logs/a` gives `['a']`. */
|
|
24
|
-
path: string[];
|
|
25
|
-
}
|
|
26
|
-
/** A page a widget adds: its own URL segment and its row in the sidebar. */
|
|
27
|
-
export interface WidgetPage {
|
|
28
|
-
/** The page's URL, `/<segment>`: a lowercase letter, then lowercase letters and digits (never a project's id, which always has a dash). */
|
|
29
|
-
segment: string;
|
|
30
|
-
/** The sidebar row's label. */
|
|
31
|
-
label: string;
|
|
32
|
-
/** The sidebar row's icon; a generic one when absent. */
|
|
33
|
-
icon?: ComponentType<{
|
|
34
|
-
className?: string;
|
|
35
|
-
'aria-hidden'?: boolean;
|
|
36
|
-
}>;
|
|
37
|
-
/** The page itself. */
|
|
38
|
-
Page: ComponentType<WidgetPageProps>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* A link a dashboard page shows (#1774): the name of some work and where it points. What a
|
|
42
|
-
* {@link LinkAction} is given. The dashboard knows nothing of what the link names; the page that
|
|
43
|
-
* shows it does, and says so in these three fields.
|
|
44
|
-
*/
|
|
45
|
-
export interface WidgetLink {
|
|
46
|
-
/** The link's text: the name of the work. */
|
|
47
|
-
text: string;
|
|
48
|
-
/**
|
|
49
|
-
* Where the link points: a path inside the project's repository (`tickets/2026-01-01_x.md`) or an
|
|
50
|
-
* absolute URL. Absent for plain text that names work without pointing anywhere.
|
|
51
|
-
*/
|
|
52
|
-
href?: string;
|
|
53
|
-
/** How urgent the page says the work is, 0 (only if capacity) to 10 (critical); absent when the page does not say. */
|
|
54
|
-
priority?: number;
|
|
55
|
-
}
|
|
56
|
-
/** What a link action did: done, or stopped, with the reason the action or its command gave. */
|
|
57
|
-
export type LinkActionResult = {
|
|
58
|
-
ok: true;
|
|
59
|
-
} | {
|
|
60
|
-
ok: false;
|
|
61
|
-
error: string;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* An action a widget offers on the links dashboard pages show (#1774): one verb, done by the
|
|
65
|
-
* widget package's own command. The dashboard shows it as a button beside any link whose project
|
|
66
|
-
* has the widget's package, with no page naming the widget: the page shows links, the widget acts
|
|
67
|
-
* on links, the dashboard puts the two together.
|
|
68
|
-
*/
|
|
69
|
-
export interface LinkAction {
|
|
70
|
-
/** The button's label, a short verb phrase: "Add to queue". */
|
|
71
|
-
label: string;
|
|
72
|
-
/** What the button says once the action is done: "Queued". The label with a check mark otherwise. */
|
|
73
|
-
doneLabel?: string;
|
|
74
|
-
/** The button's icon; none otherwise. */
|
|
75
|
-
icon?: ComponentType<{
|
|
76
|
-
className?: string;
|
|
77
|
-
'aria-hidden'?: boolean;
|
|
78
|
-
}>;
|
|
79
|
-
/**
|
|
80
|
-
* Act on the links, in the order given, all in one project. `host` runs the widget package's
|
|
81
|
-
* own commands in that project. A batch stops at its first failure and says why.
|
|
82
|
-
*/
|
|
83
|
-
run(host: WidgetHost, projectId: string, links: WidgetLink[]): Promise<LinkActionResult>;
|
|
84
|
-
}
|
|
85
|
-
/** What a widget card is rendered with: the projects that have its package. A card has no URL and no sub-path. */
|
|
86
|
-
export interface WidgetCardProps {
|
|
87
|
-
/** The registered projects whose dependencies include the widget's package, in the registry's order. */
|
|
88
|
-
projects: WidgetProject[];
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* A card a widget adds to the Overview (#1818): the package's own summary of its data across the
|
|
92
|
-
* projects that have it, drawn beside the dashboard's own cards. A project none of whose packages
|
|
93
|
-
* declares a card sees none.
|
|
94
|
-
*/
|
|
95
|
-
export interface WidgetCard {
|
|
96
|
-
/** Which card this is, for the shell's key and its error line; never shown as a title. */
|
|
97
|
-
id: string;
|
|
98
|
-
/** Its place among every installed package's cards, lower first; 50 when unsaid, ties by package name. */
|
|
99
|
-
order?: number;
|
|
100
|
-
/** The card itself. */
|
|
101
|
-
Card: ComponentType<WidgetCardProps>;
|
|
102
|
-
}
|
|
103
|
-
/** What a widget module default-exports. */
|
|
104
|
-
export interface WidgetDefinition {
|
|
105
|
-
/** The pages the widget adds, each with a sidebar row. */
|
|
106
|
-
pages?: WidgetPage[];
|
|
107
|
-
/** The cards the widget adds to the Overview. */
|
|
108
|
-
cards?: WidgetCard[];
|
|
109
|
-
/** The actions the widget offers on the links dashboard pages show, wherever the link's project has the widget's package. */
|
|
110
|
-
linkActions?: LinkAction[];
|
|
111
|
-
/** A stylesheet to load with the widget, relative to the widget module's own URL. */
|
|
112
|
-
stylesheet?: string;
|
|
113
|
-
}
|
|
114
|
-
/** Type the default export: `export default defineWidget({ ... })`. */
|
|
115
|
-
export declare function defineWidget(definition: WidgetDefinition): WidgetDefinition;
|
|
116
|
-
/** A run of a project as the dashboard knows it (#1774): enough for a page to name one and link to it. */
|
|
117
|
-
export interface WidgetAgent {
|
|
118
|
-
/** The run's id, the one {@link WidgetHost.openAgent} takes. */
|
|
119
|
-
id: string;
|
|
120
|
-
/** The run's branch, the name the agent gave its work, when its record carries one. */
|
|
121
|
-
name?: string;
|
|
122
|
-
/** What the run was asked, as typed or as queued; absent when its record carries none. */
|
|
123
|
-
ask?: string;
|
|
124
|
-
status: AgentStatus;
|
|
125
|
-
/** ISO 8601. */
|
|
126
|
-
startedAt: string;
|
|
127
|
-
}
|
|
128
|
-
/** What starting a run answered: the run's id, or in words why there is none. */
|
|
129
|
-
export type StartRunResult = {
|
|
130
|
-
ok: true;
|
|
131
|
-
agentId: string;
|
|
132
|
-
} | {
|
|
133
|
-
ok: false;
|
|
134
|
-
error: string;
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* What the dashboard gives the widget it is rendering. Every service is generic — a project, a
|
|
138
|
-
* run, a page, a command — and none names a skill: what a widget composes out of them is its own.
|
|
139
|
-
*/
|
|
140
|
-
export interface WidgetHost {
|
|
141
|
-
/** The package the widget came from: the one whose commands {@link runCommand} runs. */
|
|
142
|
-
package: string;
|
|
143
|
-
/**
|
|
144
|
-
* Run one of the widget package's own commands in one project and get its JSON output: the
|
|
145
|
-
* same command an agent runs (`npx <command> …`). `command` names one when the package has several.
|
|
146
|
-
*/
|
|
147
|
-
runCommand(projectId: string, args: string[], command?: string): Promise<WidgetCommandResult>;
|
|
148
|
-
/**
|
|
149
|
-
* The same, for a command that changes the project's data (a claim released, an entry added):
|
|
150
|
-
* the dashboard then syncs the project's data with origin and forgets what it had read, so the
|
|
151
|
-
* change shows at once instead of at the next sync. A link action's host runs every command so.
|
|
152
|
-
*/
|
|
153
|
-
act(projectId: string, args: string[], command?: string): Promise<WidgetCommandResult>;
|
|
154
|
-
/** Open one agent's page in the dashboard: its live feed while it runs, its record after. */
|
|
155
|
-
openAgent(projectId: string, agentId: string): void;
|
|
156
|
-
/** Open a page a widget adds (this one's or another's), at a sub-path: `openPage('tickets', [projectId, file])`. */
|
|
157
|
-
openPage(segment: string, path?: string[]): void;
|
|
158
|
-
/**
|
|
159
|
-
* Start a run in one project with this prompt, with the person's own picks (which tool, which
|
|
160
|
-
* model, where it runs), and land on it, unless `land` is false: then the dashboard stays where
|
|
161
|
-
* it is, for a widget that starts several runs in a row. Answers the run's id, or why there is none.
|
|
162
|
-
*/
|
|
163
|
-
startRun(projectId: string, prompt: string, opts?: {
|
|
164
|
-
land?: boolean;
|
|
165
|
-
}): Promise<StartRunResult>;
|
|
166
|
-
/** Open the project's launcher with this prompt drafted in, to set it up before sending: "Configure first, then run". */
|
|
167
|
-
configureRun(projectId: string, prompt: string): void;
|
|
168
|
-
/** The project's runs the dashboard knows: the ones running, and the recorded ones when the project records them. */
|
|
169
|
-
agents(projectId: string): Promise<WidgetAgent[]>;
|
|
170
|
-
}
|
|
171
|
-
/** What the dashboard knows about the widget it is serving: every service but the commands, which it binds to the package. */
|
|
172
|
-
export type WidgetHostBase = Omit<WidgetHost, 'runCommand' | 'act'>;
|
|
173
|
-
/**
|
|
174
|
-
* The host for one widget: the dashboard's services, and its commands bound to the widget's own
|
|
175
|
-
* package. `acts` marks every command as an action on the project rather than a page's read: the
|
|
176
|
-
* dashboard builds a link action's host with it, so what the action wrote is read back at once.
|
|
177
|
-
*/
|
|
178
|
-
export declare function widgetHost(base: WidgetHostBase, opts?: {
|
|
179
|
-
acts?: boolean;
|
|
180
|
-
}): WidgetHost;
|
|
181
|
-
/**
|
|
182
|
-
* Set by the dashboard around every widget page it renders: the widget's package and the
|
|
183
|
-
* dashboard's services. A test of a widget page provides a whole host here, commands included,
|
|
184
|
-
* and {@link useWidgetHost} hands it over as it is.
|
|
185
|
-
*/
|
|
186
|
-
export declare const WidgetHostContext: import("react").Context<WidgetHost | WidgetHostBase | null>;
|
|
187
|
-
/** The dashboard's services for the widget being rendered. Only valid inside a widget page. */
|
|
188
|
-
export declare function useWidgetHost(): WidgetHost;
|
|
189
|
-
export { Button, buttonVariants, type ButtonProps } from '../components/ui/button.js';
|
|
190
|
-
export { Badge } from '../components/ui/badge.js';
|
|
191
|
-
export { Card, CardHeader, CardTitle, CardContent } from '../components/ui/card.js';
|
|
192
|
-
export { Skeleton } from '../components/ui/skeleton.js';
|
|
193
|
-
export { Checkbox } from '../components/ui/checkbox.js';
|
|
194
|
-
export { Input } from '../components/ui/input.js';
|
|
195
|
-
export { Popover, PopoverContent, PopoverTrigger } from '../components/ui/popover.js';
|
|
196
|
-
export { RangeSlider } from '../components/ui/slider.js';
|
|
197
|
-
export { Separator } from '../components/ui/separator.js';
|
|
198
|
-
export { ScrollArea } from '../components/ui/scroll-area.js';
|
|
199
|
-
export { Tooltip, TooltipTrigger, TooltipContent } from '../components/ui/tooltip.js';
|
|
200
|
-
export { DropdownMenu, DropdownMenuContent, DropdownMenuCheckboxItem, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from '../components/ui/dropdown-menu.js';
|
|
201
|
-
export { Markdown } from '../components/Markdown.js';
|
|
202
|
-
export { StartAgentButton } from '../components/StartAgentButton.js';
|
|
203
|
-
export { LinkActions, type ProjectLinks, type LinkTargets } from '../components/LinkActions.js';
|
|
204
|
-
export { cn } from '../lib/utils.js';
|
|
205
|
-
export { formatRelative, formatDateTime, formatDuration, formatAge } from '../lib/format-date.js';
|
|
206
|
-
export { usePolled, useLoaded } from '../lib/use-async.js';
|
|
207
|
-
export { useAction } from '../lib/use-action.js';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An agent's id, derived from the moment it starts. Pure — no node imports — because the sweep
|
|
3
|
-
* that mints ids ahead of a claim (#1748) is reachable from the dashboard's browser bundle.
|
|
4
|
-
*/
|
|
5
|
-
/** Filesystem-safe, lexicographically-sortable agent id from an ISO start time. */
|
|
6
|
-
export declare function agentIdFromStartedAt(startedAt: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* The inverse of {@link agentIdFromStartedAt}, for a caller that has the id but not the meta
|
|
9
|
-
* (#1251): picking which PR is the agent's needs the start time to tell the agent's own PR from a
|
|
10
|
-
* predecessor's on the same branch name. Undefined for an id that is not one of ours.
|
|
11
|
-
*/
|
|
12
|
-
export declare function startedAtFromAgentId(id: string): string | undefined;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { FrameworkEvent } from './events.js';
|
|
2
|
-
/** One error of a run: one the agent reported through an `error` block (#1500), or one its tool wrote in the diary. */
|
|
3
|
-
export interface AgentError {
|
|
4
|
-
/** What is wrong, in one line. */
|
|
5
|
-
headline: string;
|
|
6
|
-
/** What it ran and what that said, when the agent wrote any. */
|
|
7
|
-
detail?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Every error of the run (#1500), oldest first — the count the dashboard shows on the session, and
|
|
11
|
-
* the latest headline it shows beside it. Two sources: the `error` lines the run's tool writes in
|
|
12
|
-
* the diary when the coding agent or its transport fails (the message's first line is the
|
|
13
|
-
* headline, the rest the detail), and the `error` blocks of runs recorded before the daemon
|
|
14
|
-
* stopped running agents.
|
|
15
|
-
*
|
|
16
|
-
* A fold over the log rather than state of its own: an error is an event that happened, so the
|
|
17
|
-
* list only ever grows, and reopening a finished agent shows exactly what it showed while it ran.
|
|
18
|
-
*/
|
|
19
|
-
export declare function agentErrors(events: readonly FrameworkEvent[]): AgentError[];
|
|
20
|
-
/** The wrapped agent session (#431): its id and a deep link, when one is known. */
|
|
21
|
-
export interface SessionInfo {
|
|
22
|
-
sessionId?: string;
|
|
23
|
-
sessionLink?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The directory the agent ran in (#1195), from the opening `session` event.
|
|
26
|
-
*
|
|
27
|
-
* Taken from the event rather than the filesystem on purpose: an agent that finishes cleanly has
|
|
28
|
-
* its worktree removed (`tearDownWorktree`), so the event is the only surviving record of where
|
|
29
|
-
* the session lived — and that path is exactly what `claude --resume` needs to find it again.
|
|
30
|
-
*/
|
|
31
|
-
workspace?: string;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* The session behind the agent (#431): the workspace from the opening `session`
|
|
35
|
-
* event, then the id and any deep link from the latest `session-update`. Null before the
|
|
36
|
-
* session opens. The link is what the old dashboard surfaced as "open session".
|
|
37
|
-
*/
|
|
38
|
-
export declare function sessionInfo(events: readonly FrameworkEvent[]): SessionInfo | null;
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The bridge browser (#1332): a Chrome for Testing the daemon launches and owns, with the Claude
|
|
3
|
-
* web bridge extension installed, signed in to claude.ai once by the user and kept minimized.
|
|
4
|
-
*
|
|
5
|
-
* The bridge's far end is a browser signed in to claude.ai. Until now that was the user's own
|
|
6
|
-
* Chrome with the extension loaded, so a web run could only start — and a parked question could
|
|
7
|
-
* only be noticed — while that Chrome happened to be open. The spike on #1332 settled what a
|
|
8
|
-
* browser nobody attends has to be: headed, because claude.ai's Cloudflare gate never clears a
|
|
9
|
-
* headless one; Chrome for Testing, because branded Chrome stopped loading unpacked extensions
|
|
10
|
-
* from the command line; and installed over CDP with developer mode on, because an extension
|
|
11
|
-
* loaded any other way is disabled the first time it reloads itself (#1712).
|
|
12
|
-
*
|
|
13
|
-
* Nothing here talks to claude.ai. The daemon launches the browser, hands the extension the
|
|
14
|
-
* bridge token, and from then on the extension's Driver tab does exactly what it does in the
|
|
15
|
-
* user's own Chrome — the daemon only keeps the window out of the way and brings it up when the
|
|
16
|
-
* user has to sign in.
|
|
17
|
-
*/
|
|
18
|
-
/** The directory holding the bridge browser's profile and binary, next to the registry file. */
|
|
19
|
-
export declare const BRIDGE_BROWSER_DIR = "the-framework-browser";
|
|
20
|
-
/**
|
|
21
|
-
* Where the bridge browser lives: `$XDG_CONFIG_HOME/the-framework-browser` when set, else the
|
|
22
|
-
* dotted `$HOME/.the-framework-browser`. Beside the registry, so the same variable that isolates
|
|
23
|
-
* a test's registry isolates its browser, and a machine's real one is never touched from a test.
|
|
24
|
-
* The profile inside it is persistent on purpose: the user signs in once and the sign-in outlives
|
|
25
|
-
* every daemon restart.
|
|
26
|
-
*/
|
|
27
|
-
export declare function bridgeBrowserDir(env: NodeJS.ProcessEnv): string;
|
|
28
|
-
/**
|
|
29
|
-
* The launch flags. Headed (no `--headless`): claude.ai's bot gate rejects a headless browser
|
|
30
|
-
* outright, and a headed one whose window is minimized passes. The unsafe-extension-debugging
|
|
31
|
-
* flag is what lets `Extensions.loadUnpacked` install the extension over CDP. The keychain flags
|
|
32
|
-
* keep the cookie-encryption key out of the OS keychain (macOS asks for the login password on
|
|
33
|
-
* every launch otherwise, and Linux for the wallet) — the same choice Puppeteer makes; the profile
|
|
34
|
-
* directory's own permissions are what guard the sign-in.
|
|
35
|
-
*/
|
|
36
|
-
export declare function bridgeBrowserLaunchArgs(port: number, profileDir: string): string[];
|
|
37
|
-
/** Where the extension's files are, and whether that is a checkout, where they are edited in place. */
|
|
38
|
-
export interface BridgeExtensionSource {
|
|
39
|
-
dir: string;
|
|
40
|
-
checkout: boolean;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* The extension's files (#1720): the checkout's `packages/chrome-extension` next to this package,
|
|
44
|
-
* so an edit there reaches the browser through the extension's self-reload; else the copy the
|
|
45
|
-
* build puts in `dist/chrome-extension`, which is what an installed package has. A folder counts
|
|
46
|
-
* only when its manifest names the bridge extension. Undefined when neither is there.
|
|
47
|
-
* `moduleUrl` is this file's URL; tests point it elsewhere.
|
|
48
|
-
*/
|
|
49
|
-
export declare function bridgeExtensionSource(moduleUrl?: string): BridgeExtensionSource | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* The process holding a profile's singleton lock, or undefined when nothing does. Chrome leaves
|
|
52
|
-
* the lock behind as a symlink whose target is `<host>-<pid>`; a daemon that died without closing
|
|
53
|
-
* its browser leaves that browser running, and a second Chrome on the same profile would hand its
|
|
54
|
-
* command line to the first and exit at once.
|
|
55
|
-
*/
|
|
56
|
-
export declare function profileLockOwner(profileDir: string, readLink?: (path: string) => Promise<string>): Promise<number | undefined>;
|
|
57
|
-
/** One page, worker or browser-internal target Chrome lists. */
|
|
58
|
-
export interface CdpTarget {
|
|
59
|
-
id: string;
|
|
60
|
-
type: string;
|
|
61
|
-
url: string;
|
|
62
|
-
webSocketDebuggerUrl?: string;
|
|
63
|
-
}
|
|
64
|
-
/** A session on one target: the calls go to that page or worker rather than to the browser. */
|
|
65
|
-
export interface CdpTargetSession {
|
|
66
|
-
send(method: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
67
|
-
close(): void;
|
|
68
|
-
}
|
|
69
|
-
/** How the daemon talks to its browser. Injectable: the real one speaks WebSocket to Chrome. */
|
|
70
|
-
export interface BridgeBrowserCdp {
|
|
71
|
-
/** A browser-level call: installing the extension, opening and closing targets, window bounds. */
|
|
72
|
-
call(method: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
73
|
-
/** Every target Chrome lists — pages, the extension's worker, browser-internal pages. */
|
|
74
|
-
targets(): Promise<CdpTarget[]>;
|
|
75
|
-
/** Attach to one target. */
|
|
76
|
-
attach(target: CdpTarget): Promise<CdpTargetSession>;
|
|
77
|
-
/** Drop the browser-level connection. The browser keeps running. */
|
|
78
|
-
close(): void;
|
|
79
|
-
}
|
|
80
|
-
/** The real connection: the browser socket from `/json/version`, targets from `/json/list`. */
|
|
81
|
-
export declare function connectBridgeBrowser(browserUrl: string): Promise<BridgeBrowserCdp>;
|
|
82
|
-
/** Install the extension from its directory. Chrome answers with the extension's id. */
|
|
83
|
-
export declare function installExtension(cdp: BridgeBrowserCdp, extensionDir: string): Promise<string>;
|
|
84
|
-
/**
|
|
85
|
-
* The developer-mode switch on Chrome's extensions page, flipped on if it is off. Chrome (137
|
|
86
|
-
* and later) disables an unpacked extension on reload while the mode is off, and the extension
|
|
87
|
-
* reloads itself whenever its files change (#1712), so without this the bridge would die on the
|
|
88
|
-
* first edit or pull. The profile remembers the setting, but writing the preference into the
|
|
89
|
-
* profile directly does nothing — the switch is the one way that works.
|
|
90
|
-
*/
|
|
91
|
-
export declare const DEVELOPER_MODE_ON = "(() => {\n const manager = document.querySelector('extensions-manager')?.shadowRoot\n const toggle = manager?.querySelector('extensions-toolbar')?.shadowRoot?.querySelector('#devMode')\n if (!toggle) return 'missing'\n if (!toggle.checked) toggle.click()\n return 'on'\n})()";
|
|
92
|
-
/** Open Chrome's extensions page in the background, switch developer mode on, close the page. */
|
|
93
|
-
export declare function enableDeveloperMode(cdp: BridgeBrowserCdp, sleep: (ms: number) => Promise<void>): Promise<void>;
|
|
94
|
-
/**
|
|
95
|
-
* What the extension is told, run inside its own worker: the daemon's address and the bridge
|
|
96
|
-
* token go into the storage its options page would have written, and the Driver tab is opened
|
|
97
|
-
* as the one pinned claude.ai/code tab — the shape the extension adopts as its Driver — in place
|
|
98
|
-
* of the blank page the browser started on. Opened here rather than left to the extension
|
|
99
|
-
* because the extension opens no Driver tab while the daemon lists no cloud session, and the user
|
|
100
|
-
* signs in on that tab before any session exists.
|
|
101
|
-
*/
|
|
102
|
-
export declare function seedExpression(daemonUrl: string, token: string): string;
|
|
103
|
-
/** Hand the freshly installed extension its daemon and token, in its service worker. */
|
|
104
|
-
export declare function seedExtension(cdp: BridgeBrowserCdp, extensionId: string, daemonUrl: string, token: string, sleep: (ms: number) => Promise<void>): Promise<void>;
|
|
105
|
-
/** The bridge browser once it runs. */
|
|
106
|
-
export interface BridgeBrowser {
|
|
107
|
-
extensionId: string;
|
|
108
|
-
/** The path the claude.ai tab is on (`/login` while signed out), or undefined without such a tab. */
|
|
109
|
-
page(): Promise<string | undefined>;
|
|
110
|
-
/** Restore the window and bring the browser to the front, for the user to sign in. */
|
|
111
|
-
show(): Promise<void>;
|
|
112
|
-
/** Minimize the window again. */
|
|
113
|
-
hide(): Promise<void>;
|
|
114
|
-
/** Called once if Chrome exits on its own — the user quit it, or it crashed. */
|
|
115
|
-
onExit(listener: (detail: string) => void): void;
|
|
116
|
-
/** Close the browser. Safe to call twice. */
|
|
117
|
-
close(): Promise<void>;
|
|
118
|
-
}
|
|
119
|
-
/** The Chrome process, as much of it as this module needs. */
|
|
120
|
-
export interface BridgeBrowserProcess {
|
|
121
|
-
pid?: number | undefined;
|
|
122
|
-
kill(signal?: NodeJS.Signals): unknown;
|
|
123
|
-
on(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): unknown;
|
|
124
|
-
on(event: 'error', listener: (err: Error) => void): unknown;
|
|
125
|
-
}
|
|
126
|
-
/** Everything the launch touches outside its own logic. Injectable so the sequence is testable without a Chrome. */
|
|
127
|
-
export interface BridgeBrowserDeps {
|
|
128
|
-
/** The Chrome for Testing binary, downloaded into `cacheDir` if none is there yet. */
|
|
129
|
-
binary(cacheDir: string, report: (detail: string) => void): Promise<string>;
|
|
130
|
-
/** The process holding the profile's lock, if any. */
|
|
131
|
-
lockOwner(profileDir: string): Promise<number | undefined>;
|
|
132
|
-
alive(pid: number): boolean;
|
|
133
|
-
kill(pid: number, signal: NodeJS.Signals): void;
|
|
134
|
-
port(): Promise<number>;
|
|
135
|
-
spawn(binary: string, args: string[]): BridgeBrowserProcess;
|
|
136
|
-
ready(browserUrl: string): Promise<boolean>;
|
|
137
|
-
connect(browserUrl: string): Promise<BridgeBrowserCdp>;
|
|
138
|
-
/** Bring the browser application to the front (macOS: activate the app bundle). */
|
|
139
|
-
activate(binary: string): void;
|
|
140
|
-
sleep(ms: number): Promise<void>;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* The Chrome for Testing binary in `cacheDir`, or the current stable one downloaded there (about
|
|
144
|
-
* 150 MB, once). Chrome for Testing rather than whatever Chrome the machine has: branded Chrome
|
|
145
|
-
* ignores an unpacked extension handed to it from outside, and the agent's own browser lookup
|
|
146
|
-
* would find exactly that.
|
|
147
|
-
*/
|
|
148
|
-
export declare function bridgeBrowserBinary(cacheDir: string, report: (detail: string) => void): Promise<string>;
|
|
149
|
-
/** macOS: the `.app` bundle the binary lives in, which `open` activates. Undefined elsewhere. */
|
|
150
|
-
export declare function appBundle(binary: string): string | undefined;
|
|
151
|
-
/** The real dependencies. */
|
|
152
|
-
export declare function bridgeBrowserDeps(): BridgeBrowserDeps;
|
|
153
|
-
/**
|
|
154
|
-
* Make sure nothing else holds the profile: a browser a dead daemon left behind is stopped,
|
|
155
|
-
* gently first. It is the framework's own profile, so whatever holds it is the framework's own
|
|
156
|
-
* leftover; nothing the user runs shares it.
|
|
157
|
-
*/
|
|
158
|
-
export declare function freeProfile(profileDir: string, deps: BridgeBrowserDeps): Promise<boolean>;
|
|
159
|
-
/** What a launch needs to know. */
|
|
160
|
-
export interface BridgeBrowserOptions {
|
|
161
|
-
/** Where the daemon listens — what the extension is told to call. */
|
|
162
|
-
daemonUrl: string;
|
|
163
|
-
/** The bridge token the extension presents on every call. */
|
|
164
|
-
token: string;
|
|
165
|
-
/** The bridge browser's directory: the profile and the binary live under it. */
|
|
166
|
-
dir: string;
|
|
167
|
-
/** The extension's files. Default: `bridgeExtensionSource()`. */
|
|
168
|
-
extension?: BridgeExtensionSource | undefined;
|
|
169
|
-
/** Progress, one line at a time, for the dashboard to show while the launch runs. */
|
|
170
|
-
report?: ((detail: string) => void) | undefined;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Launch the bridge browser and get it ready: binary, profile, extension, developer mode, token,
|
|
174
|
-
* Driver tab, minimized. Throws with the step that failed; the browser is closed again on a
|
|
175
|
-
* failure after the spawn, so a half-set-up browser is never left running.
|
|
176
|
-
*/
|
|
177
|
-
export declare function startBridgeBrowser(opts: BridgeBrowserOptions, deps?: BridgeBrowserDeps): Promise<BridgeBrowser>;
|
|
178
|
-
/** Where the bridge browser stands, for the dashboard. */
|
|
179
|
-
export type BridgeBrowserStatus = {
|
|
180
|
-
state: 'off';
|
|
181
|
-
} | {
|
|
182
|
-
state: 'starting';
|
|
183
|
-
detail: string;
|
|
184
|
-
}
|
|
185
|
-
/** `signIn`: the claude.ai tab is on the sign-in page, so a person has to sign in before anything is served. */
|
|
186
|
-
| {
|
|
187
|
-
state: 'running';
|
|
188
|
-
since: string;
|
|
189
|
-
visible: boolean;
|
|
190
|
-
signIn: boolean;
|
|
191
|
-
} | {
|
|
192
|
-
state: 'stopped';
|
|
193
|
-
detail: string;
|
|
194
|
-
};
|
|
195
|
-
/** What the dashboard can ask of the bridge browser. */
|
|
196
|
-
export type BridgeBrowserAction = 'show' | 'hide' | 'restart';
|
|
197
|
-
/** The daemon's handle on its bridge browser: one at a time, started and stopped from the preference and the dashboard. */
|
|
198
|
-
export interface BridgeBrowserOwner {
|
|
199
|
-
/** Where the browser stands; a running one is asked which page its claude.ai tab is on. */
|
|
200
|
-
status(): Promise<BridgeBrowserStatus>;
|
|
201
|
-
/** Launch it, unless it is running or on its way. Resolves once the launch is over, either way. */
|
|
202
|
-
start(): Promise<void>;
|
|
203
|
-
/** Close it, or cancel a launch under way. */
|
|
204
|
-
stop(): Promise<void>;
|
|
205
|
-
act(action: BridgeBrowserAction): Promise<void>;
|
|
206
|
-
}
|
|
207
|
-
/** How the owner launches a browser: the daemon's real launch, or a test's fake. */
|
|
208
|
-
export type BridgeBrowserLauncher = (report: (detail: string) => void) => Promise<BridgeBrowser>;
|
|
209
|
-
/**
|
|
210
|
-
* The one bridge browser a daemon runs. A launch is slow — the first one downloads Chrome — so
|
|
211
|
-
* the status carries the step it is on, and a stop that lands mid-launch closes the browser the
|
|
212
|
-
* launch then hands over rather than leaving it running unowned. A browser that exits on its own
|
|
213
|
-
* (the user quit it) is reported as stopped with the reason, and not relaunched: quitting it was
|
|
214
|
-
* an act, and the dashboard offers a restart.
|
|
215
|
-
*/
|
|
216
|
-
export declare function bridgeBrowserOwner(launch: BridgeBrowserLauncher, log?: (line: string) => void): BridgeBrowserOwner;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The DevTools connection to a Chrome the daemon owns: the bridge browser's (#1332). Chrome
|
|
3
|
-
* refuses DevTools socket connections carrying an `Origin` header unless launched with
|
|
4
|
-
* `--remote-allow-origins`, and opening that up would let any page the user happens to visit
|
|
5
|
-
* drive the browser. So the debug port stays unreachable from the web, and this process is the
|
|
6
|
-
* only one that talks to it.
|
|
7
|
-
*/
|
|
8
|
-
/** What a caller needs from a CDP connection, so a test can stand in for Chrome. */
|
|
9
|
-
export interface CdpSession {
|
|
10
|
-
send(method: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
11
|
-
close(): void;
|
|
12
|
-
}
|
|
13
|
-
/** How a caller reaches a browser or a page. Injectable: the real one speaks WebSocket to Chrome. */
|
|
14
|
-
export type CdpConnect = (webSocketDebuggerUrl: string) => Promise<CdpSession>;
|
|
15
|
-
/**
|
|
16
|
-
* Talk CDP to Chrome over its debugger socket. Node's global WebSocket is enough, which is
|
|
17
|
-
* what keeps this dependency-free.
|
|
18
|
-
*/
|
|
19
|
-
export declare const connectCdp: CdpConnect;
|