@openagt/dashboard 0.8.0 → 0.10.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 +14 -17
- 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 +45 -14
- package/dist/built-in.d.ts.map +1 -1
- package/dist/built-in.js +122 -27
- 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 -10
- 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/start-branch.d.ts +32 -0
- package/dist/dashboard/start-branch.d.ts.map +1 -0
- package/dist/dashboard/start-branch.js +47 -0
- package/dist/dashboard/start-branch.js.map +1 -0
- 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-Q7JMdMJI.css +2 -0
- package/dist/dashboard-bundle/assets/main-fDZWGOub.js +140 -0
- package/dist/dashboard-bundle/assets/{module-jASZmfSB.js → module-gKz-ZvkG.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 +2 -1
- package/dist/dashboard-rpc/index.d.ts.map +1 -1
- package/dist/dashboard-rpc/index.js +4 -2
- 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 +57 -8
- 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/skills.d.ts +80 -0
- package/dist/dashboard-rpc/skills.d.ts.map +1 -0
- package/dist/dashboard-rpc/skills.js +84 -0
- package/dist/dashboard-rpc/skills.js.map +1 -0
- 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/components/ui/switch.d.ts +7 -0
- 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 +6 -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 +45 -14
- 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/start-branch.d.ts +31 -0
- 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 +2 -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/dashboard-rpc/skills.d.ts +79 -0
- 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/openagent-dir.d.ts +8 -0
- package/dist/module-types/src/openagent-gitignore.d.ts +11 -0
- package/dist/module-types/src/project-commands.d.ts +5 -1
- package/dist/module-types/src/project-errors.d.ts +11 -7
- package/dist/module-types/src/project-hooks.d.ts +12 -9
- package/dist/module-types/src/project-modules.d.ts +9 -7
- 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 +8 -8
- package/dist/module-types/src/store/git-host.d.ts +8 -8
- package/dist/module-types/src/store/provided.d.ts +3 -3
- package/dist/module-types/src/store/queue.d.ts +9 -9
- 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 +7 -7
- package/dist/module-types/src/store/tickets.d.ts +8 -8
- package/dist/module-types/src/terminal.d.ts +3 -3
- package/dist/open-choices.d.ts +2 -2
- package/dist/openagent-dir.d.ts +9 -0
- package/dist/openagent-dir.d.ts.map +1 -0
- package/dist/openagent-dir.js +9 -0
- 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 +5 -1
- package/dist/project-commands.d.ts.map +1 -1
- package/dist/project-commands.js +1 -1
- package/dist/project-commands.js.map +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 +12 -9
- package/dist/project-hooks.d.ts.map +1 -1
- package/dist/project-hooks.js +17 -14
- package/dist/project-hooks.js.map +1 -1
- package/dist/project-modules.d.ts +9 -7
- package/dist/project-modules.d.ts.map +1 -1
- package/dist/project-modules.js +7 -13
- package/dist/project-modules.js.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/project.js +6 -7
- package/dist/project.js.map +1 -1
- 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 +8 -8
- package/dist/store/branches.d.ts.map +1 -1
- package/dist/store/branches.js +2 -2
- package/dist/store/branches.js.map +1 -1
- package/dist/store/git-host.d.ts +8 -8
- package/dist/store/git-host.d.ts.map +1 -1
- package/dist/store/git-host.js +3 -3
- 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 +9 -9
- package/dist/store/queue.d.ts.map +1 -1
- package/dist/store/queue.js +2 -2
- 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 +7 -7
- package/dist/store/runs.d.ts.map +1 -1
- package/dist/store/runs.js +3 -3
- package/dist/store/runs.js.map +1 -1
- package/dist/store/test-branches.d.ts +0 -8
- package/dist/store/test-branches.d.ts.map +1 -1
- package/dist/store/test-branches.js +0 -24
- package/dist/store/test-branches.js.map +1 -1
- package/dist/store/tickets.d.ts +8 -8
- package/dist/store/tickets.d.ts.map +1 -1
- package/dist/store/tickets.js +2 -2
- package/dist/store/tickets.js.map +1 -1
- package/dist/terminal.d.ts +3 -3
- package/dist/terminal.js +3 -3
- package/package.json +23 -20
- 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-bundle/assets/main-om0WOAku.js +0 -140
- 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 +0 -11
- package/dist/framework-dir.d.ts.map +0 -1
- package/dist/framework-dir.js +0 -11
- 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-dir.d.ts +0 -10
- 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,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tail a JSONL log: read what is already in it, then follow appends. Each complete line is
|
|
3
|
-
* parsed and handed to `onEvent`; malformed lines are skipped. Returns a stop function that
|
|
4
|
-
* removes the watcher and the poll.
|
|
5
|
-
*
|
|
6
|
-
* The reading is {@link JsonlTailer} and the following is {@link followFile}. This used to be
|
|
7
|
-
* its own copy of both, which is how it ended up missing the tailer's same-length-rewrite
|
|
8
|
-
* detection (#567).
|
|
9
|
-
*
|
|
10
|
-
* `onReplayed` is told once the first pull — the replay of everything already logged — has
|
|
11
|
-
* been delivered (#1383). That boundary is what lets a reconnecting client buffer the replay
|
|
12
|
-
* and swap its feed atomically instead of blanking while history re-streams. The follower
|
|
13
|
-
* only starts after it, so no appended line can slip in ahead of the marker. Best-effort on
|
|
14
|
-
* a failed first read: the marker still fires (the poll retries the read), because a client
|
|
15
|
-
* waiting on it forever would freeze its feed.
|
|
16
|
-
*
|
|
17
|
-
* Kept transport-agnostic (a plain `onEvent` callback, not a stream) so the file
|
|
18
|
-
* side can be driven on its own; `events.ts` wires it to the SSE endpoint.
|
|
19
|
-
*/
|
|
20
|
-
export declare function tailEvents<T = unknown>(path: string, onEvent: (event: T) => void, onReplayed?: () => void): () => void;
|
|
21
|
-
/** Where a relocating tail reads now: a file it follows, a finished run's lines, whole, or nowhere yet (`pending`: ask again shortly). */
|
|
22
|
-
export type TailTarget<T> = {
|
|
23
|
-
file: string;
|
|
24
|
-
} | {
|
|
25
|
-
finished: T[];
|
|
26
|
-
} | {
|
|
27
|
-
pending: true;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Tail a run's diary across its relocations: the same read-then-follow as {@link tailEvents},
|
|
31
|
-
* but where the diary is is asked again whenever the tailed file is not there.
|
|
32
|
-
*
|
|
33
|
-
* A run's diary does not sit still. While the run works it is a file in the run's checkout; when
|
|
34
|
-
* the run ends its tool records it and reclaims the checkout, and from then on the diary is the
|
|
35
|
-
* finished run's, read whole from the project's runs provider. A fixed-path tail whose file was
|
|
36
|
-
* retired went silent *without the final lines* whenever the last `fs.watch` signal was lost —
|
|
37
|
-
* the 1s poll then found the file gone and had nothing to read, so the feed never learned the run
|
|
38
|
-
* ended. This tail treats a missing file as the question it is: it asks `resolve` where the diary
|
|
39
|
-
* is now (`resolveAgentDiary` answers the finished run once the checkout is gone, #1472). A new
|
|
40
|
-
* file retargets the same tailer and follows it. A finished run's lines are the same lines the
|
|
41
|
-
* file had, in the same order, so the ones past the count already delivered are sent and the tail
|
|
42
|
-
* ends: a finished diary does not grow. The same file, or no answer, means the diary has not
|
|
43
|
-
* moved, and the tail keeps waiting where it is. A diary that is nowhere yet (`pending`: the run
|
|
44
|
-
* was started a moment ago and its tool has not made the checkout) is asked for again on the
|
|
45
|
-
* same cadence until it has a home, and only then followed; the replay boundary is reported at
|
|
46
|
-
* once, since there is nothing to replay. Asking even when the file was never seen matters for a
|
|
47
|
-
* short run (#1774): started, ended and reclaimed between two polls, its diary was only ever
|
|
48
|
-
* visible as a finished run.
|
|
49
|
-
*
|
|
50
|
-
* `onReplayed` keeps {@link tailEvents}' once-per-subscription contract: a relocation is not a
|
|
51
|
-
* new replay boundary, so it never fires twice.
|
|
52
|
-
*/
|
|
53
|
-
export declare function tailAgentEvents<T = unknown>(resolve: () => Promise<TailTarget<T> | undefined>, onEvent: (event: T) => void, onReplayed?: () => void): () => void;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { FrameworkEvent } from '../events.js';
|
|
2
|
-
/**
|
|
3
|
-
* The end-of-replay marker (#1383). A subscribe replays the whole log before following live,
|
|
4
|
-
* and without a boundary a reconnecting client cannot tell "replay still streaming" from "the
|
|
5
|
-
* log is genuinely this short" — so it blanked a populated feed and refilled it line by line.
|
|
6
|
-
* Sent once per subscription, after the on-disk replay is delivered. Wire-only: it is not a
|
|
7
|
-
* {@link FrameworkEvent}, is never written to any journal, and the client swallows it.
|
|
8
|
-
*/
|
|
9
|
-
export type StreamSync = {
|
|
10
|
-
kind: 'stream-sync';
|
|
11
|
-
};
|
|
12
|
-
/** What `onEvents` streams: the agent's events, plus the wire-only end-of-replay marker. */
|
|
13
|
-
export type LiveFeedEvent = FrameworkEvent | StreamSync;
|
|
14
|
-
/**
|
|
15
|
-
* Follow one agent's events: `send` is called per event until the returned stop function runs.
|
|
16
|
-
* Returns undefined when there is nothing to stream (an unknown project), which the mount ends as
|
|
17
|
-
* a clean close — mirroring the read model's empty results rather than throwing at the client.
|
|
18
|
-
*
|
|
19
|
-
* The `agentId` names the run whose diary is followed; without one there is nothing to stream.
|
|
20
|
-
*
|
|
21
|
-
* Two sources, chosen by what is wired. An in-memory stream wins: an agent the daemon is relaying
|
|
22
|
-
* from a device (#1067). Otherwise the on-disk log. The daemon's source answers only for relayed
|
|
23
|
-
* runs, so an ordinary local agent falls through to tailing the log.
|
|
24
|
-
*
|
|
25
|
-
* Only the on-disk tail sends the {@link StreamSync} marker: the in-memory sources have no replay
|
|
26
|
-
* boundary to report, so a reconnecting client falls back to a grace deadline before swapping its
|
|
27
|
-
* feed (see use-live-events in the dashboard).
|
|
28
|
-
*/
|
|
29
|
-
export declare function streamAgentEvents(projectId: string, agentId: string | undefined, send: (value: LiveFeedEvent) => void, onDone?: () => void): Promise<(() => void) | undefined>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export { onAgents, onAgent, onDocs, onQueue, onOverview, onRecentAgents, onInterventions, onOpenQuestions, onActivity, onDashboard, onGitHostHome, onGitStatus, onProjectFiles, onProjectFileStatus, onAgentTree, onFileDiff, onAgentChanges, onFileContent, onRetainedWorktrees, onAgentWorktree, onAgentHandoff, onBridgeQuestion, onBridgeStatus, onBridgeToken, onBridgeEvents, onBridgeAnswer, onBridgeBrowser } from './reads.js';
|
|
2
|
-
export { sendStop, sendChoice, sendBridgeAnswer, sendBridgeAnswerCancel, sendBridgeBrowser, sendMessage, sendStart, sendOpenInApp, sendRemoveWorktree, sendDeleteAgent, sendOpenPullRequest, sendPush, sendMerge } from './control.js';
|
|
3
|
-
export { streamAgentEvents, type LiveFeedEvent, type StreamSync } from './events.js';
|
|
4
|
-
export { onProjects, sendAddProject, sendPickProjectDirectory, onOnboarding, onCommands, onStartCheck, sendScheduleSwitch, type ProjectLauncher } from './projects.js';
|
|
5
|
-
export { onPreferences, savePreferences, patchPreferences, onProjectPresets, saveProjectPresets, onEditors, type SavePreferencesResult, type PatchPreferencesResult, } from './preferences.js';
|
|
6
|
-
export { type EditorInfo } from '../dashboard/open-in-app.js';
|
|
7
|
-
export { onQuota } from './quota.js';
|
|
8
|
-
export { onModels } from './models.js';
|
|
9
|
-
export { checkDevices, type DeviceCheck } from './devices.js';
|
|
10
|
-
export { onWidgets, runWidgetCommand, type DashboardWidget, type WidgetCommandResult } from './widgets.js';
|
|
11
|
-
import { streamAgentEvents } from './events.js';
|
|
12
|
-
/** One RPC: called with whatever the browser sent, answering with whatever JSON.stringify keeps. */
|
|
13
|
-
export type RpcHandler = (...args: never[]) => unknown;
|
|
14
|
-
/**
|
|
15
|
-
* Every RPC the mount will answer, by name.
|
|
16
|
-
*
|
|
17
|
-
* Built from the modules' own exports rather than listed by hand, so a function that is exported
|
|
18
|
-
* and simply never registered — the failure that shipped per-project preferences broken (#866),
|
|
19
|
-
* a 400 and nothing else — cannot happen: the name IS the export name.
|
|
20
|
-
*
|
|
21
|
-
* Null-prototype, because the name is a path segment off an unauthenticated request and this table
|
|
22
|
-
* is indexed by it directly. With `Object.prototype` behind it, `POST /_rpc/constructor` found
|
|
23
|
-
* `Object` and answered 200 with whatever it was handed, and `__proto__` / `toString` / `valueOf`
|
|
24
|
-
* were reachable too — 500s rather than the 404 a name that is not an RPC has to get.
|
|
25
|
-
*/
|
|
26
|
-
export declare const RPC_HANDLERS: Record<string, RpcHandler>;
|
|
27
|
-
/** The live event stream, which is a subscription rather than a call — see `rpc-serve.ts`. */
|
|
28
|
-
export declare const RPC_EVENT_STREAM: typeof streamAgentEvents;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { type EditorInfo } from '../dashboard/open-in-app.js';
|
|
2
|
-
import type { CustomPreset, Preferences } from '../registry.js';
|
|
3
|
-
/** The outcome of a {@link savePreferences} write. */
|
|
4
|
-
export type SavePreferencesResult = {
|
|
5
|
-
ok: true;
|
|
6
|
-
} | {
|
|
7
|
-
ok: false;
|
|
8
|
-
error: string;
|
|
9
|
-
};
|
|
10
|
-
/** The user's stored dashboard preferences, or `{}` when the read fails. */
|
|
11
|
-
export declare function onPreferences(): Promise<Preferences>;
|
|
12
|
-
/** Persist the dashboard preferences (sanitized in the store). */
|
|
13
|
-
export declare function savePreferences(preferences: Preferences): Promise<SavePreferencesResult>;
|
|
14
|
-
/** The outcome of a patch write (#1148): the stored result, so the caller can adopt it. */
|
|
15
|
-
export type PatchPreferencesResult<T> = {
|
|
16
|
-
ok: true;
|
|
17
|
-
preferences: T;
|
|
18
|
-
} | {
|
|
19
|
-
ok: false;
|
|
20
|
-
error: string;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Merge the keys the caller changed into the stored preferences (#1148), and hand back what is
|
|
24
|
-
* now stored. The write half of the fix for a stale tab reverting settings it never touched:
|
|
25
|
-
* {@link savePreferences} replaces the whole block, so a client's snapshot overwrote whatever
|
|
26
|
-
* anyone else had changed since it loaded. Returning the merged result also lets the caller
|
|
27
|
-
* adopt the truth it just wrote against, so a tab converges instead of staying stale.
|
|
28
|
-
*/
|
|
29
|
-
export declare function patchPreferences(patch: Preferences): Promise<PatchPreferencesResult<Preferences>>;
|
|
30
|
-
/**
|
|
31
|
-
* A project's shared custom presets (#1025), committed into its `.the-framework/` so they travel
|
|
32
|
-
* with the repo — the team-shared counterpart to the user-tier {@link onPreferences} presets. Read
|
|
33
|
-
* from the project's own checkout, so this resolves the project id to its workspace path rather than
|
|
34
|
-
* touching the home registry. `[]` for an unknown project.
|
|
35
|
-
*/
|
|
36
|
-
export declare function onProjectPresets(projectId: string): Promise<CustomPreset[]>;
|
|
37
|
-
/** Persist a project's shared custom presets into its `.the-framework/` (#1025). */
|
|
38
|
-
export declare function saveProjectPresets(projectId: string, presets: CustomPreset[]): Promise<SavePreferencesResult>;
|
|
39
|
-
/** The editors installed on this server (#727), for the "Preferred editor" picker. */
|
|
40
|
-
export declare function onEditors(): Promise<EditorInfo[]>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { type ProjectCommand } from '../project-commands.js';
|
|
2
|
-
import { type StartReadiness } from '../project-hooks.js';
|
|
3
|
-
import { type PickDirectoryResult } from '../pick-directory.js';
|
|
4
|
-
import type { ProjectSummary } from '../dashboard/projects.js';
|
|
5
|
-
import type { AddProjectResult, OnboardingSuggestion } from '../dashboard/types.js';
|
|
6
|
-
export declare function onProjects(): Promise<ProjectSummary[]>;
|
|
7
|
-
/**
|
|
8
|
-
* Add a project from the dashboard (#396/#433): install the repo and register it so it joins the
|
|
9
|
-
* Projects list. Like `sendStart` this needs the daemon (it spawns git + writes the shared
|
|
10
|
-
* registry), so it calls the daemon's own `addProject` closure off the wired dashboard context.
|
|
11
|
-
* Returns the daemon's {@link AddProjectResult}.
|
|
12
|
-
*/
|
|
13
|
-
export declare function sendAddProject(path: string): Promise<AddProjectResult>;
|
|
14
|
-
/**
|
|
15
|
-
* Open the OS folder picker on the daemon's machine and wait for the user's choice (#1150). The
|
|
16
|
-
* browser cannot learn an absolute path from any picker of its own, and the daemon — which runs on
|
|
17
|
-
* the machine the user is sitting at — can, so the dialog is the daemon's. A dismissed dialog
|
|
18
|
-
* comes back as `path: null`.
|
|
19
|
-
*/
|
|
20
|
-
export declare function sendPickProjectDirectory(): Promise<PickDirectoryResult>;
|
|
21
|
-
/**
|
|
22
|
-
* The Onboarding checklist's one server-side fact (#958): the directory this server runs in,
|
|
23
|
-
* so the first step can offer "Add {cwd} as project" without the user typing a path.
|
|
24
|
-
*/
|
|
25
|
-
export declare function onOnboarding(): Promise<OnboardingSuggestion>;
|
|
26
|
-
/** What the launcher offers for a project: its commands, and whether a run can be started here at all. */
|
|
27
|
-
export interface ProjectLauncher {
|
|
28
|
-
commands: ProjectCommand[];
|
|
29
|
-
/** Whether the project's `.the-framework/hooks.yml` has a `start` line; without one Start is off. */
|
|
30
|
-
startHook: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* The project's commands (#1774), read off its skills folders, and whether it has a start hook.
|
|
34
|
-
* `null` when the project is unknown here.
|
|
35
|
-
*/
|
|
36
|
-
export declare function onCommands(projectId: string): Promise<ProjectLauncher | null>;
|
|
37
|
-
/**
|
|
38
|
-
* What would stop a run in this project before it spends a checkout, said in the launcher before
|
|
39
|
-
* the Start: the project's `check` hook, given the coding agent picked. A missing CLI or a
|
|
40
|
-
* logged-out one is a problem the run itself would refuse on; a warning is said and blocks nothing.
|
|
41
|
-
* A check line that fails is said as a warning: it is a broken check, not a reason to stop.
|
|
42
|
-
* `null` for an unknown project or one without a check hook: nothing to say.
|
|
43
|
-
*/
|
|
44
|
-
export declare function onStartCheck(projectId: string, driver?: string): Promise<StartReadiness | null>;
|
|
45
|
-
/**
|
|
46
|
-
* Switch one scheduled command on or off on this machine: the project's `switch` hook line. The
|
|
47
|
-
* daemon names no tool; the scheduler card reads the switch back from the scheduler's state.
|
|
48
|
-
*/
|
|
49
|
-
export declare function sendScheduleSwitch(projectId: string, command: string, on: boolean): Promise<{
|
|
50
|
-
ok: true;
|
|
51
|
-
} | {
|
|
52
|
-
ok: false;
|
|
53
|
-
error: string;
|
|
54
|
-
}>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { QuotaView } from '../dashboard/quota.js';
|
|
2
|
-
import { runOffsetHook } from '../project-hooks.js';
|
|
3
|
-
import type { ProjectSummary } from '../dashboard/projects.js';
|
|
4
|
-
/** Where the account's quota stands against its boundary. */
|
|
5
|
-
export declare function onQuota(): Promise<QuotaView>;
|
|
6
|
-
/**
|
|
7
|
-
* Set how far past the quota boundary unattended work may go (#960): every registered project's
|
|
8
|
-
* `offset` hook line, with the points in `POINTS`. The daemon names no tool: the line is the
|
|
9
|
-
* project's, and what it writes is what the panel reads back.
|
|
10
|
-
*/
|
|
11
|
-
export declare function sendSpendOffset(points: number): Promise<{
|
|
12
|
-
ok: true;
|
|
13
|
-
} | {
|
|
14
|
-
ok: false;
|
|
15
|
-
error: string;
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* The write behind {@link sendSpendOffset}, over the projects given. A project without the line is
|
|
19
|
-
* skipped; none having it, or a line that fails, is the answer's error, each failing project named.
|
|
20
|
-
*/
|
|
21
|
-
export declare function setSpendOffset(projects: readonly ProjectSummary[], points: number, run?: typeof runOffsetHook): Promise<{
|
|
22
|
-
ok: true;
|
|
23
|
-
} | {
|
|
24
|
-
ok: false;
|
|
25
|
-
error: string;
|
|
26
|
-
}>;
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import type { BridgeBrowserStatus } from '../bridge-browser.js';
|
|
2
|
-
import { type AgentMeta } from '../store/index.js';
|
|
3
|
-
import { type GitHostHome } from '../store/git-host.js';
|
|
4
|
-
import { type WorkspaceDoc } from '../dashboard/docs.js';
|
|
5
|
-
import { type ProjectQueue } from '../dashboard/queue.js';
|
|
6
|
-
import { type ProjectScheduler } from '../dashboard/scheduler-state.js';
|
|
7
|
-
import { type Overview, type RecentAgent } from '../dashboard/overview.js';
|
|
8
|
-
import { type Intervention } from '../dashboard/interventions.js';
|
|
9
|
-
import type { ProjectionRead } from '../dashboard/projects.js';
|
|
10
|
-
import { type OpenQuestion } from '../dashboard/open-questions.js';
|
|
11
|
-
import { type Activity } from '../dashboard/activity.js';
|
|
12
|
-
import { type DashboardData } from '../dashboard/dashboard.js';
|
|
13
|
-
import { type GitStatus } from '../dashboard/git-status.js';
|
|
14
|
-
import { type AgentHandoff } from '../dashboard/agent-handoff.js';
|
|
15
|
-
import type { AgentWorktree } from '../dashboard/types.js';
|
|
16
|
-
import { type FileGitStatus } from '../dashboard/file-status.js';
|
|
17
|
-
import { type FileDiff, type FileChange } from '../dashboard/file-diff.js';
|
|
18
|
-
import { type FileContent } from '../dashboard/file-read.js';
|
|
19
|
-
import { type AgentTree } from '../dashboard/agent-tree.js';
|
|
20
|
-
import type { FrameworkEvent } from '../events.js';
|
|
21
|
-
import type { BridgeEvent, BridgeHello, BridgeQuestion } from '../dashboard/bridge-endpoints.js';
|
|
22
|
-
import type { BridgeAnswer, BridgeContact, BridgeVersion } from '../dashboard/bridge-store.js';
|
|
23
|
-
/**
|
|
24
|
-
* The project's runs, most-recent first (or `[]`). The archived (finished) runs
|
|
25
|
-
* from `agents/`, plus every live agent prepended — so the sidebar shows an in-progress
|
|
26
|
-
* run with a `running` status the moment it starts, not only after it closes.
|
|
27
|
-
*
|
|
28
|
-
* Since #736 a project has any number of live agents, each in its own worktree, so this reads
|
|
29
|
-
* them all (#738) instead of the single one that used to sit at the project path. They come
|
|
30
|
-
* back as {@link LiveAgent}s, carrying the `cwd` of the checkout that agent is editing.
|
|
31
|
-
*
|
|
32
|
-
* One row per id, and where both a live and an archived copy exist the live one wins (#768): a
|
|
33
|
-
* continued run (#762) has an archive from its first leg while being live again, and the archive
|
|
34
|
-
* would otherwise show a running agent as finished. The status is not filtered on: `readLiveMeta`
|
|
35
|
-
* may have just self-healed a dead agent to `stopped` (#716), and that freshly-archived row can
|
|
36
|
-
* lag `listAgents` by a poll — keeping it regardless leaves the row visible with no flicker.
|
|
37
|
-
*
|
|
38
|
-
* An agent relayed to a connected device (#1067) lives only in the daemon's memory, never on disk, so
|
|
39
|
-
* its in-memory stub is merged in too (#1077): that is what re-opens it after a dashboard reload
|
|
40
|
-
* instead of losing it.
|
|
41
|
-
*/
|
|
42
|
-
export declare function onAgents(projectId: string): Promise<AgentMeta[]>;
|
|
43
|
-
/**
|
|
44
|
-
* A web run whose cloud session is waiting on a human — the bridge holds its parked question, or
|
|
45
|
-
* claude.ai's session list shows it awaiting input (#1332) — is marked waiting (#1668), so its row
|
|
46
|
-
* says so instead of "in cloud": the archive on disk cannot know, only the daemon's bridge store
|
|
47
|
-
* does. Every other run passes through untouched.
|
|
48
|
-
*/
|
|
49
|
-
export declare function markCloudWaiting(agent: AgentMeta): AgentMeta;
|
|
50
|
-
/**
|
|
51
|
-
* A run another machine's daemon started is marked as from another host (#1648): the data branch
|
|
52
|
-
* is shared precisely so other machines' runs show up here, and a row that looked exactly like
|
|
53
|
-
* one of this daemon's own sent the user reading the archive by hand to learn whose it was. A run
|
|
54
|
-
* with no recorded host predates the field and passes through untouched.
|
|
55
|
-
*/
|
|
56
|
-
export declare function markOtherHost(agent: AgentMeta, thisHost?: string): AgentMeta;
|
|
57
|
-
/**
|
|
58
|
-
* A run that ended clean while the process its card names is still alive on this host is marked
|
|
59
|
-
* saving: the tool that runs it saves the run's record and cleans up its checkout after the card says
|
|
60
|
-
* done, and a row that said "done" through that window read as finished with nothing coming. A
|
|
61
|
-
* run of another host, or with no recorded process, passes through untouched.
|
|
62
|
-
*/
|
|
63
|
-
export declare function markSaving(agent: AgentMeta, thisHost?: string, alive?: (pid: number) => boolean): AgentMeta;
|
|
64
|
-
/**
|
|
65
|
-
* The agent ids that still have a worktree on disk (#737). An agent that failed or was stopped keeps
|
|
66
|
-
* its checkout so you can go look at what it was holding; this is how the dashboard knows which
|
|
67
|
-
* finished run has one to offer removing. Live agents are excluded — their worktree is in use.
|
|
68
|
-
*/
|
|
69
|
-
export declare function onRetainedWorktrees(projectId: string): Promise<string[]>;
|
|
70
|
-
/**
|
|
71
|
-
* Where a session is working (#798): the checkout it has, its branch, whether it is holding
|
|
72
|
-
* uncommitted changes, and — once it is no longer live — what that checkout costs on disk.
|
|
73
|
-
*
|
|
74
|
-
* The dashboard could not answer "where is this session working". The git status bar reads the
|
|
75
|
-
* *project*, so a session's own branch was visible nowhere, and a worktree an agent kept (#737) was
|
|
76
|
-
* a name in a list with no size and no way in.
|
|
77
|
-
*
|
|
78
|
-
* Every run works in a checkout of its own, so once that checkout is gone there is no tree left to
|
|
79
|
-
* be clean or dirty: the answer is then only what the run recorded, its branch and its pull
|
|
80
|
-
* request. It used to fall back to the project's root and report the user's own checkout (their
|
|
81
|
-
* branch, their "clean") as the run's.
|
|
82
|
-
*/
|
|
83
|
-
export declare function onAgentWorktree(projectId: string, agentId: string): Promise<AgentWorktree | null>;
|
|
84
|
-
/** One archived agent's event log for replay (or `[]` when the agent or project is gone). */
|
|
85
|
-
export declare function onAgent(projectId: string, agentId: string): Promise<FrameworkEvent[]>;
|
|
86
|
-
/** The surfaced PLAN/TODO docs at the workspace root, in sidebar order (or `[]`). */
|
|
87
|
-
export declare function onDocs(projectId: string): Promise<WorkspaceDoc[]>;
|
|
88
|
-
/** The aggregated open TODO queue across every registered project (#438), most-open first. */
|
|
89
|
-
export declare function onQueue(): Promise<ProjectQueue[]>;
|
|
90
|
-
/** Every project's scheduler (#1774): a projection of each project's `.agent-scheduler/state.json`, one row per project. */
|
|
91
|
-
export declare function onSchedulers(): Promise<ProjectScheduler[]>;
|
|
92
|
-
/** The cross-project Overview (#437): what is running now, the queue size, and recent projects. */
|
|
93
|
-
export declare function onOverview(): Promise<Overview>;
|
|
94
|
-
/** Recent sessions pooled across every project (#shared-shell), newest first, for the home rail. */
|
|
95
|
-
export declare function onRecentAgents(): Promise<RecentAgent[]>;
|
|
96
|
-
/**
|
|
97
|
-
* The cross-project interventions queue (#632, Queue #624): open PRs that need review, newest first,
|
|
98
|
-
* plus which projects were read whole (#1625).
|
|
99
|
-
*
|
|
100
|
-
* The panels render `items` and ignore the rest. The browser's notifier is the caller that cannot:
|
|
101
|
-
* it keeps a baseline of what was already waiting when the page opened, and a queue that came back
|
|
102
|
-
* empty because the git host was unreachable is not a baseline — taking it for one announces the whole
|
|
103
|
-
* backlog the moment the git host answers.
|
|
104
|
-
*/
|
|
105
|
-
export declare function onInterventions(): Promise<ProjectionRead<Intervention>>;
|
|
106
|
-
/** Every session's open question with its full gate (#1455), longest-waiting first: the launcher's hub. */
|
|
107
|
-
export declare function onOpenQuestions(): Promise<OpenQuestion[]>;
|
|
108
|
-
/**
|
|
109
|
-
* The cross-project "New activity" feed (#627): recent run started/finished transitions, newest
|
|
110
|
-
* first, with the projects that were read whole beside them (#1625) — see {@link onInterventions}.
|
|
111
|
-
*/
|
|
112
|
-
export declare function onActivity(): Promise<ProjectionRead<Activity>>;
|
|
113
|
-
/** The Overview dashboard page (#471): the {@link onOverview} rollup plus agent counts, run-status totals, and activity. */
|
|
114
|
-
export declare function onDashboard(): Promise<DashboardData>;
|
|
115
|
-
/**
|
|
116
|
-
* The project's files for the `#` context picker (#504) and the project's file tree (#492): every
|
|
117
|
-
* file git sees (tracked + untracked, honoring .gitignore), repo-relative and sorted, via
|
|
118
|
-
* `git ls-files`. Localhost-only by nature — the relay has no checkout, so it resolves `[]`.
|
|
119
|
-
* Pass a live `agentId` to list that agent's worktree instead of the project root (#738); a run's
|
|
120
|
-
* own tree is {@link onAgentTree}.
|
|
121
|
-
*/
|
|
122
|
-
export declare function onProjectFiles(projectId: string, agentId?: string): Promise<string[]>;
|
|
123
|
-
/**
|
|
124
|
-
* Per-file git status for the project's file tree (#492): repo-relative path -> untracked/
|
|
125
|
-
* modified/deleted, from `git status --porcelain` in the project root. `{}` when not a repo. A
|
|
126
|
-
* run's own marks come with its tree, {@link onAgentTree}.
|
|
127
|
-
*/
|
|
128
|
-
export declare function onProjectFileStatus(projectId: string): Promise<Record<string, FileGitStatus>>;
|
|
129
|
-
/**
|
|
130
|
-
* A run's files for the agent page's Files tab (`agent-tree.ts`): the tree with the paths the run
|
|
131
|
-
* changed marked, read from its checkout while it exists, then from its branch, then from the
|
|
132
|
-
* commit its pull request merged as. `gone` when none is left on this machine, `pending` while
|
|
133
|
-
* the pull request is still being looked up.
|
|
134
|
-
*/
|
|
135
|
-
export declare function onAgentTree(projectId: string, agentId: string): Promise<AgentTree>;
|
|
136
|
-
/**
|
|
137
|
-
* One changed file's diff, for the tree's hover card (#816). Null when the path is not a changed
|
|
138
|
-
* file, is unsafe (see `safeRepoPath`), or there is no checkout. For a run it reads the same
|
|
139
|
-
* source its tree does ({@link onAgentTree}), so it shows the same change the tree marked (#815).
|
|
140
|
-
*
|
|
141
|
-
* The status comes from the same git read the marks do, rather than from the caller: a client
|
|
142
|
-
* that thinks a file is untracked must not be able to make the server read it as one.
|
|
143
|
-
*/
|
|
144
|
-
export declare function onFileDiff(projectId: string, path: string, agentId?: string): Promise<FileDiff | null>;
|
|
145
|
-
/**
|
|
146
|
-
* What the session changed (#817): every changed file in its worktree with line counts, newest
|
|
147
|
-
* state each poll. `[]` when nothing changed or there is no checkout.
|
|
148
|
-
*
|
|
149
|
-
* Derived from the worktree rather than from the agent's tool calls on purpose. The driver
|
|
150
|
-
* surfaces a tool's name and not its arguments (#165) — we verify by outcome, not by watching
|
|
151
|
-
* which tool the agent reached for — so reading git is both the honest source and the one that
|
|
152
|
-
* works for every agent, not just the ones whose stream carries an edit payload.
|
|
153
|
-
*/
|
|
154
|
-
export declare function onAgentChanges(projectId: string, agentId?: string): Promise<FileChange[]>;
|
|
155
|
-
/**
|
|
156
|
-
* One unchanged file's contents, for the tree's hover card (#828). Null when the path is unsafe
|
|
157
|
-
* (see `safeRepoPath`), outside the checkout, or unreadable. For a run it reads the same source
|
|
158
|
-
* its tree does ({@link onAgentTree}), so it shows the copy the tree is listing (#815).
|
|
159
|
-
*
|
|
160
|
-
* The caller picks this or {@link onFileDiff} from the status the tree already holds; a changed
|
|
161
|
-
* file has a diff worth seeing, an unchanged one has only itself.
|
|
162
|
-
*/
|
|
163
|
-
export declare function onFileContent(projectId: string, path: string, agentId?: string): Promise<FileContent | null>;
|
|
164
|
-
/** The project's page on its git host and the git host's name (#489, #1820), or null: no git host package, no remote there, or the relay. */
|
|
165
|
-
export declare function onGitHostHome(projectId: string): Promise<GitHostHome | null>;
|
|
166
|
-
/**
|
|
167
|
-
* The project's git status (#491): active branch, dirty flag, linked PR. Null when not a repo /
|
|
168
|
-
* relay. Pass a live `agentId` to read that agent's worktree, which is the branch and the dirty
|
|
169
|
-
* state that actually belong to it (#738). A run-scoped read is since-filtered (#1255): an agent on
|
|
170
|
-
* a reused pinned branch must not wear a predecessor's merged PR as its own badge.
|
|
171
|
-
*/
|
|
172
|
-
export declare function onGitStatus(projectId: string, agentId?: string): Promise<GitStatus | null>;
|
|
173
|
-
/**
|
|
174
|
-
* The end-of-session handoff (#799): the branch a finished session left its work on, what it
|
|
175
|
-
* committed, what it changed, and whether that has been pushed or opened as a PR.
|
|
176
|
-
*
|
|
177
|
-
* Read from the *project* checkout against the session's branch, not from the session's worktree.
|
|
178
|
-
* A clean agent's worktree is removed when it finishes, and `resolveAgentPath` then falls back to the
|
|
179
|
-
* project root — so a worktree-addressed read reports the project's own branch and the user's own
|
|
180
|
-
* uncommitted changes as though they were the session's. The branch is what outlives the agent, so
|
|
181
|
-
* the branch is what this asks about.
|
|
182
|
-
*/
|
|
183
|
-
export declare function onAgentHandoff(projectId: string, agentId: string): Promise<AgentHandoff | null>;
|
|
184
|
-
/**
|
|
185
|
-
* The question a Claude web session is parked on, as reported by the browser bridge (#1237).
|
|
186
|
-
*
|
|
187
|
-
* Keyed by cloud session id rather than agent id because that is what the bridge can see: it reads
|
|
188
|
-
* a claude.ai page, which knows its session and nothing about our runs. The agent view already
|
|
189
|
-
* derives that id from the agent's own `cloud <url>` event, so the join happens on the client
|
|
190
|
-
* without the daemon having to index runs by session.
|
|
191
|
-
*
|
|
192
|
-
* Returns null for anything unrecognised, so an agent with no bridge, no question, or a target that
|
|
193
|
-
* is not `web` renders exactly as it did before.
|
|
194
|
-
*/
|
|
195
|
-
export declare function onBridgeQuestion(sessionId: string): Promise<BridgeQuestion | null>;
|
|
196
|
-
/**
|
|
197
|
-
* Whether anything has reached the browser bridge, and how it went (#1237).
|
|
198
|
-
*
|
|
199
|
-
* A misconfigured extension and an uninstalled one both leave no question behind, so "nothing is
|
|
200
|
-
* showing" cannot be diagnosed from the questions alone. A refused request at least proves
|
|
201
|
-
* something is trying, and its status says which half is wrong.
|
|
202
|
-
*/
|
|
203
|
-
export declare function onBridgeStatus(): Promise<{
|
|
204
|
-
lastContact: BridgeContact | null;
|
|
205
|
-
questions: number;
|
|
206
|
-
page: BridgeHello | null;
|
|
207
|
-
version: BridgeVersion | null;
|
|
208
|
-
}>;
|
|
209
|
-
/**
|
|
210
|
-
* The bridge token, for the setup step where a user pastes it into the extension (#1237).
|
|
211
|
-
*
|
|
212
|
-
* Only while the bridge is on, so a daemon with the feature off never hands the secret to a
|
|
213
|
-
* page. Revealing it here is not a new exposure: anyone who can load this dashboard can already
|
|
214
|
-
* start runs on this machine, and on a non-loopback bind their browser is holding the same token
|
|
215
|
-
* as a cookie. What it replaces is the alternative, which was telling people to open
|
|
216
|
-
* `~/.the-framework.json` and copy a field out of it.
|
|
217
|
-
*/
|
|
218
|
-
export declare function onBridgeToken(): Promise<string | null>;
|
|
219
|
-
/**
|
|
220
|
-
* Where the answer picked for that session's question stands (#1237): queued for the
|
|
221
|
-
* extension, delivered, or failed with the extension's reason. Null when nothing was picked.
|
|
222
|
-
*/
|
|
223
|
-
export declare function onBridgeAnswer(sessionId: string): Promise<BridgeAnswer | null>;
|
|
224
|
-
/** What a Claude web session has said so far, as scraped by the browser bridge (#1237). */
|
|
225
|
-
export declare function onBridgeEvents(sessionId: string): Promise<BridgeEvent[]>;
|
|
226
|
-
/** Where the daemon's own bridge browser stands (#1332): off, starting (and on which step), running, or stopped and why. */
|
|
227
|
-
export declare function onBridgeBrowser(): Promise<BridgeBrowserStatus>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run a run-scoped RPC locally, or relay it to the device when `agentId` names an agent this daemon is
|
|
3
|
-
* relaying to a connected one (#1067 slice 2). For an ordinary local agent the remote lookup is empty and
|
|
4
|
-
* `local()` runs unchanged. For a remote agent there is no local checkout, so the call is forwarded to the
|
|
5
|
-
* device over the token; if the device is unreachable, `unreachable` is returned - the same empty/error
|
|
6
|
-
* shape `local()` gives on a failed read - so the caller never special-cases a remote agent.
|
|
7
|
-
*/
|
|
8
|
-
export declare function relayOr<T>(agentId: string | undefined, fn: string, args: unknown[], local: () => Promise<T>, unreachable: T): Promise<T>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Forward an async-iterable of events to a `send` sink until the source is exhausted or
|
|
3
|
-
* the returned stop function is called (#426). This is the bridge behind a relayed
|
|
4
|
-
* run's live feed: the agent is an `AsyncIterable` that replays its buffered history then follows
|
|
5
|
-
* live, and each value becomes one `send(event)`. Transport-agnostic on purpose — a plain
|
|
6
|
-
* callback, so the pump is driven and tested on its own, and the mount decides what a value
|
|
7
|
-
* becomes on the wire.
|
|
8
|
-
*
|
|
9
|
-
* `onDone` fires when the source runs out on its own — a relayed agent that finished. Without it a
|
|
10
|
-
* consumer cannot tell "nothing more is coming" from "nothing has happened yet", so an SSE
|
|
11
|
-
* response would stay open forever on a stream that was already over.
|
|
12
|
-
*
|
|
13
|
-
* Returns a stop function that halts forwarding and cancels the iterator, releasing the
|
|
14
|
-
* follower waiting on the next event. Idempotent. An absent source is a no-op.
|
|
15
|
-
*/
|
|
16
|
-
export declare function forwardStream<T>(iterable: AsyncIterable<T> | undefined, send: (value: T) => void, onDone?: () => void): () => void;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type WidgetCommandResult } from '../project-widgets.js';
|
|
2
|
-
export type { WidgetCommandResult } from '../project-widgets.js';
|
|
3
|
-
/** One widget as the dashboard loads it: where its module is, and which projects have it. */
|
|
4
|
-
export interface DashboardWidget {
|
|
5
|
-
/** The package that brings it. */
|
|
6
|
-
package: string;
|
|
7
|
-
/** The URL of its browser module, served from the first project that has it. */
|
|
8
|
-
url: string;
|
|
9
|
-
/** The registered projects whose packages include it, in the registry's order. */
|
|
10
|
-
projects: string[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Every widget any registered project brings (#1774), one per package: the sidebar and the pages
|
|
14
|
-
* are cross-project, like the Overview. A package several projects install is loaded once, from
|
|
15
|
-
* the first of them in the registry's order; its page then reads each project through that
|
|
16
|
-
* project's own command. A project that cannot be read contributes nothing.
|
|
17
|
-
*/
|
|
18
|
-
export declare function onWidgets(): Promise<DashboardWidget[]>;
|
|
19
|
-
/**
|
|
20
|
-
* Run one of a widget package's commands in one project and answer its JSON output: how a widget
|
|
21
|
-
* reads (and changes) its own data. Refused for an unknown project and for a package that is not a
|
|
22
|
-
* widget of that project, so a page can run only its own package's commands, never an arbitrary
|
|
23
|
-
* program. Once the command has run, the framework forgets what it had read of that project's
|
|
24
|
-
* provided data (its queue, its runs): the command may have written it, and the next read sees
|
|
25
|
-
* that at once instead of a cached copy.
|
|
26
|
-
*
|
|
27
|
-
* `acts` says the command is a widget's action on the project (a link action), not a page's read:
|
|
28
|
-
* the framework then also converges the project's data branch with origin, as its clock does
|
|
29
|
-
* every minute, before forgetting — a package's command writes as a remote writer, straight to
|
|
30
|
-
* origin, and this machine's copy would otherwise show the write only at the next sync.
|
|
31
|
-
*/
|
|
32
|
-
export declare function runWidgetCommand(projectId: string, pkg: string, args: string[], command?: string, acts?: boolean): Promise<WidgetCommandResult>;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { RegistrySecrets } from './registry.js';
|
|
2
|
-
/**
|
|
3
|
-
* Where the daemon's Discord credential — the notifications webhook — comes from (#1095).
|
|
4
|
-
*
|
|
5
|
-
* It used to be an environment variable and nothing else, which made "enable Discord" the one
|
|
6
|
-
* onboarding step you could not finish from the dashboard: you had to edit the daemon's
|
|
7
|
-
* environment and restart it. It is now also settable from the UI, stored in the registry file
|
|
8
|
-
* beside the daemon token, and picked up without a restart.
|
|
9
|
-
*
|
|
10
|
-
* The values only ever move daemon-side. This module is the rules — resolution, precedence,
|
|
11
|
-
* validation — and holds no credential itself, which is what lets the dashboard share the same
|
|
12
|
-
* validation the daemon enforces; reading and writing them is `discord-credentials-store.ts`,
|
|
13
|
-
* deliberately a separate file so the home-file edge stays out of the browser bundle.
|
|
14
|
-
*
|
|
15
|
-
* What the dashboard is told is {@link DiscordCredentialStatus}: which credential exists and where
|
|
16
|
-
* it came from, never what it is. That is the presence-only contract `onNotifyChannels` has had
|
|
17
|
-
* since #948, kept on purpose — a stored credential is not a credential you can read back.
|
|
18
|
-
*/
|
|
19
|
-
/** The resolved credentials a daemon runs with. Absent means Discord notifications are off. */
|
|
20
|
-
export interface DiscordCredentials {
|
|
21
|
-
/** Where notifications are posted (#627). */
|
|
22
|
-
webhook?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Which of the two places a credential came from. `env` wins, and the dashboard says so rather
|
|
26
|
-
* than offering an edit that would not take effect: an environment variable is how a deployment
|
|
27
|
-
* (a container, a systemd unit, a shared box) configures the daemon, and a value typed into a
|
|
28
|
-
* browser must not quietly override the machine it is running on.
|
|
29
|
-
*/
|
|
30
|
-
export type CredentialSource = 'env' | 'stored';
|
|
31
|
-
/** Which credentials the daemon holds and where each came from. Presence, never values. */
|
|
32
|
-
export interface DiscordCredentialStatus {
|
|
33
|
-
webhook?: CredentialSource;
|
|
34
|
-
}
|
|
35
|
-
/** An edit to the stored credentials: a string sets, `null` clears, absent leaves alone. */
|
|
36
|
-
export interface DiscordCredentialsPatch {
|
|
37
|
-
webhook?: string | null;
|
|
38
|
-
}
|
|
39
|
-
/** The outcome of a {@link DiscordCredentialsStore.save}. */
|
|
40
|
-
export type SaveCredentialsResult = {
|
|
41
|
-
ok: true;
|
|
42
|
-
} | {
|
|
43
|
-
ok: false;
|
|
44
|
-
error: string;
|
|
45
|
-
};
|
|
46
|
-
/** The env var behind each credential, so the two tables below cannot drift apart. */
|
|
47
|
-
export declare const ENV_KEYS: {
|
|
48
|
-
readonly webhook: 'DISCORD_WEBHOOK';
|
|
49
|
-
};
|
|
50
|
-
/** The registry key behind each credential. */
|
|
51
|
-
export declare const SECRET_KEYS: {
|
|
52
|
-
readonly webhook: 'discordWebhook';
|
|
53
|
-
};
|
|
54
|
-
/** The credential names, once, so every loop over them covers both by construction. */
|
|
55
|
-
export declare const CREDENTIALS: Array<keyof DiscordCredentials>;
|
|
56
|
-
/** The environment variable a credential is read from, for the UI's "set on the daemon" copy. */
|
|
57
|
-
export declare function credentialEnvVar(credential: keyof DiscordCredentials): string;
|
|
58
|
-
/** The credentials to run with: the environment first, the stored value as the fallback. */
|
|
59
|
-
export declare function resolveDiscordCredentials(env: NodeJS.ProcessEnv, secrets: RegistrySecrets): DiscordCredentials;
|
|
60
|
-
/** The same resolution, reported as presence + origin. The browser-facing half of the pair above. */
|
|
61
|
-
export declare function discordCredentialStatus(env: NodeJS.ProcessEnv, secrets: RegistrySecrets): DiscordCredentialStatus;
|
|
62
|
-
/**
|
|
63
|
-
* Reject what cannot possibly work, before it is stored and silently does nothing.
|
|
64
|
-
*
|
|
65
|
-
* Deliberately shallow: a token is only checked for the shape of a token (one opaque word), and a
|
|
66
|
-
* webhook for being an http(s) URL rather than for being on discord.com — people front webhooks
|
|
67
|
-
* with their own proxies, and the daemon has no business refusing a URL it was told to post to.
|
|
68
|
-
* Whether the credential actually authenticates is Discord's answer to give, and the daemon logs it.
|
|
69
|
-
*/
|
|
70
|
-
export declare function validateCredential(credential: keyof DiscordCredentials, value: string): string | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* The store the dashboard's context carries (#1095): status out, edits in. The daemon
|
|
73
|
-
* wires one; a public host (the relay) leaves it unset, so the RPCs report nothing configured and
|
|
74
|
-
* refuse the write, the same way the preferences store degrades.
|
|
75
|
-
*/
|
|
76
|
-
export interface DiscordCredentialsStore {
|
|
77
|
-
status(): Promise<DiscordCredentialStatus>;
|
|
78
|
-
save(patch: DiscordCredentialsPatch): Promise<SaveCredentialsResult>;
|
|
79
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The driver vocabulary (#542), node-free so every surface shares one copy: the registry's
|
|
3
|
-
* preference sanitizer and the dashboard bundle. The names are agent-driver's own, the ones a
|
|
4
|
-
* run's card carries, so the pick handed to a project's start hook as `DRIVER` and the record
|
|
5
|
-
* that comes back say the same word. The dashboard's per-driver UI table is keyed by
|
|
6
|
-
* {@link DriverName}, so a missing entry there is a compile error, not a silent gap.
|
|
7
|
-
*/
|
|
8
|
-
/** The coding agents a person can pick for a run, in the order surfaces list them. */
|
|
9
|
-
export declare const DRIVERS: readonly ['claude-code', 'codex'];
|
|
10
|
-
/** A driver the user can pick. */
|
|
11
|
-
export type DriverName = (typeof DRIVERS)[number];
|
|
12
|
-
/** Whether `value` names a driver we can run. */
|
|
13
|
-
export declare function isDriverName(value: string | undefined): value is DriverName;
|
|
14
|
-
/** How each driver reads in a sentence or on a button. */
|
|
15
|
-
export declare const DRIVER_LABELS: Record<DriverName, string>;
|
|
16
|
-
/**
|
|
17
|
-
* The pick behind the driver a run's record names (#831). Every surface Claude ran on is still
|
|
18
|
-
* Claude (#1263): older records name its cloud session and its Actions runner. `undefined` for a
|
|
19
|
-
* driver no pick claims (a fake one, or a record from a newer version).
|
|
20
|
-
*/
|
|
21
|
-
export declare function driverFromImpl(impl: string | undefined): DriverName | undefined;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The message of an unknown caught value. `catch` hands back `unknown`, and this ternary was
|
|
3
|
-
* spelled out at over twenty call sites; the next variation in one of them would be a bug (a
|
|
4
|
-
* dropped `String()` turns a thrown string into `[object Object]`'s sibling problems), so the
|
|
5
|
-
* idiom gets one home. Node-free, exported through /client for the dashboard's use too.
|
|
6
|
-
*/
|
|
7
|
-
export declare function errorMessage(err: unknown): string;
|