@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,97 +0,0 @@
|
|
|
1
|
-
import type { DiscordCredentialStatus, DiscordCredentialsPatch } from '../discord-credentials.js';
|
|
2
|
-
import { type EditorInfo } from '../dashboard/open-in-app.js';
|
|
3
|
-
import type { CustomPreset, Preferences, ProjectPreferences } from '../registry.js';
|
|
4
|
-
/** The outcome of a {@link savePreferences} write. */
|
|
5
|
-
export type SavePreferencesResult = {
|
|
6
|
-
ok: true;
|
|
7
|
-
} | {
|
|
8
|
-
ok: false;
|
|
9
|
-
error: string;
|
|
10
|
-
};
|
|
11
|
-
/** The user's stored dashboard preferences, or `{}` on a host that has none / does not store them. */
|
|
12
|
-
export declare function onPreferences(): Promise<Preferences>;
|
|
13
|
-
/** Persist the dashboard preferences (sanitized in the store). No-op-safe on a public host. */
|
|
14
|
-
export declare function savePreferences(preferences: Preferences): Promise<SavePreferencesResult>;
|
|
15
|
-
/** The outcome of a patch write (#1148): the stored result, so the caller can adopt it. */
|
|
16
|
-
export type PatchPreferencesResult<T> = {
|
|
17
|
-
ok: true;
|
|
18
|
-
preferences: T;
|
|
19
|
-
} | {
|
|
20
|
-
ok: false;
|
|
21
|
-
error: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Merge the keys the caller changed into the stored preferences (#1148), and hand back what is
|
|
25
|
-
* now stored. The write half of the fix for a stale tab reverting settings it never touched:
|
|
26
|
-
* {@link savePreferences} replaces the whole block, so a client's snapshot overwrote whatever
|
|
27
|
-
* anyone else had changed since it loaded. Returning the merged result also lets the caller
|
|
28
|
-
* adopt the truth it just wrote against, so a tab converges instead of staying stale.
|
|
29
|
-
*/
|
|
30
|
-
export declare function patchPreferences(patch: Preferences): Promise<PatchPreferencesResult<Preferences>>;
|
|
31
|
-
/**
|
|
32
|
-
* One project's own run options (#840), or `{}` when it overrides nothing / the host stores
|
|
33
|
-
* none. Separate from {@link onPreferences} rather than folded into it: the client needs the
|
|
34
|
-
* two tiers apart to know which one a toggle should write to.
|
|
35
|
-
*/
|
|
36
|
-
export declare function onProjectPreferences(projectId: string): Promise<ProjectPreferences>;
|
|
37
|
-
/** Persist one project's run options (#840), sanitized in the store. No-op-safe on a public host. */
|
|
38
|
-
export declare function saveProjectPreferences(projectId: string, preferences: ProjectPreferences): Promise<SavePreferencesResult>;
|
|
39
|
-
/** {@link patchPreferences} for one project's run options (#1148). */
|
|
40
|
-
export declare function patchProjectPreferences(projectId: string, patch: ProjectPreferences): Promise<PatchPreferencesResult<ProjectPreferences>>;
|
|
41
|
-
/**
|
|
42
|
-
* A project's shared custom presets (#1025), committed into its `.the-framework/` so they travel
|
|
43
|
-
* with the repo — the team-shared counterpart to the user-tier {@link onPreferences} presets. Read
|
|
44
|
-
* from the project's own checkout, so this resolves the project id to its workspace path rather than
|
|
45
|
-
* touching the home registry. `[]` on a public host (no local checkout) or an unknown project.
|
|
46
|
-
*/
|
|
47
|
-
export declare function onProjectPresets(projectId: string): Promise<CustomPreset[]>;
|
|
48
|
-
/** Persist a project's shared custom presets into its `.the-framework/` (#1025). No-op-safe on a public host. */
|
|
49
|
-
export declare function saveProjectPresets(projectId: string, presets: CustomPreset[]): Promise<SavePreferencesResult>;
|
|
50
|
-
/**
|
|
51
|
-
* The editors installed on this server (#727), for the "Preferred editor" picker. Detection reads
|
|
52
|
-
* the daemon's own PATH, so it is gated on the same store presence as the other preference RPCs:
|
|
53
|
-
* a public host (the relay) has no local checkout to open anyway, so it returns `[]`.
|
|
54
|
-
*/
|
|
55
|
-
export declare function onEditors(): Promise<EditorInfo[]>;
|
|
56
|
-
/** Which notification channels the daemon can actually deliver on (#948). */
|
|
57
|
-
export interface NotifyChannels {
|
|
58
|
-
/** A webhook is set, so Discord delivery can fire. */
|
|
59
|
-
discordWebhook: boolean;
|
|
60
|
-
/** A bot token is set, so the Discord chatbot can answer. */
|
|
61
|
-
discordBot: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Where each credential came from (#1095), so the UI can offer an edit for one it stores and
|
|
64
|
-
* say "set on the daemon" for one it cannot touch. An absent key means that credential is
|
|
65
|
-
* not set. Still presence, never a value — nothing here can be turned back into a credential.
|
|
66
|
-
*/
|
|
67
|
-
sources: DiscordCredentialStatus;
|
|
68
|
-
/** Whether this host can store a credential at all. False on a public host, which wires no store. */
|
|
69
|
-
editable: boolean;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Whether the daemon has the Discord credentials (#948/#1095). The toggles are per-user
|
|
73
|
-
* preferences, but delivery needs a webhook / a bot token on the daemon — without this read the
|
|
74
|
-
* dashboard let you switch on a channel that delivers nothing and lit the bell for it.
|
|
75
|
-
*
|
|
76
|
-
* Only presence is reported, never the values, and that is the whole contract: a credential set
|
|
77
|
-
* from the dashboard (#1095) lives daemon-side and is never read back to a browser, so this stays
|
|
78
|
-
* booleans plus where each came from. Gated like the other preference RPCs, so a public host
|
|
79
|
-
* reports both absent.
|
|
80
|
-
*/
|
|
81
|
-
export declare function onNotifyChannels(): Promise<NotifyChannels>;
|
|
82
|
-
/**
|
|
83
|
-
* Store (or clear) the Discord credentials from the dashboard (#1095) — the step that used to
|
|
84
|
-
* need an edit to the daemon's environment and a restart, which made it the one onboarding step
|
|
85
|
-
* you could not finish in-product.
|
|
86
|
-
*
|
|
87
|
-
* Write-only on purpose: there is no companion read. The value goes daemon-side, and the browser
|
|
88
|
-
* only ever learns that it is there ({@link onNotifyChannels}). The store applies it live, so the
|
|
89
|
-
* bot connects and the watchers start on the save rather than at the next daemon start.
|
|
90
|
-
*
|
|
91
|
-
* The exposure is bounded by the guard the rest of this surface already sits behind: on a
|
|
92
|
-
* non-loopback bind every route requires the shared token (#1051), and anyone through that guard
|
|
93
|
-
* can start runs — strictly more than setting a webhook URL. A public host wires no store, so
|
|
94
|
-
* this refuses there.
|
|
95
|
-
*/
|
|
96
|
-
export declare function saveDiscordCredentials(patch: DiscordCredentialsPatch): Promise<SavePreferencesResult>;
|
|
97
|
-
//# sourceMappingURL=preferences.telefunc.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preferences.telefunc.d.ts","sourceRoot":"","sources":["../../src/dashboard-rpc/preferences.telefunc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACjG,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AASnF,sDAAsD;AACtD,MAAM,MAAM,qBAAqB,GAAG;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/E,sGAAsG;AACtG,wBAAsB,aAAa,IAAI,OAAO,CAAC,WAAW,CAAC,CAI1D;AAED,+FAA+F;AAC/F,wBAAsB,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAW9F;AAED,2FAA2F;AAC3F,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,WAAW,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnG;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,WAA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ectPath } from './context.js';
|
|
2
|
-
import { detectEditors } from '../dashboard/open-in-app.js';
|
|
3
|
-
import { readProjectPresets, writeProjectPresets } from '../project-presets.js';
|
|
4
|
-
/** The user's stored dashboard preferences, or `{}` on a host that has none / does not store them. */
|
|
5
|
-
export async function onPreferences() {
|
|
6
|
-
const store = contextPreferences();
|
|
7
|
-
if (!store)
|
|
8
|
-
return {};
|
|
9
|
-
return store.read().catch(() => ({}));
|
|
10
|
-
}
|
|
11
|
-
/** Persist the dashboard preferences (sanitized in the store). No-op-safe on a public host. */
|
|
12
|
-
export async function savePreferences(preferences) {
|
|
13
|
-
const store = contextPreferences();
|
|
14
|
-
if (!store)
|
|
15
|
-
return { ok: false, error: 'preferences are not enabled on this server' };
|
|
16
|
-
// A failed write returns the advertised typed error rather than rejecting the RPC,
|
|
17
|
-
// so the client handles it the same as the not-enabled case (both `{ ok: false }`).
|
|
18
|
-
try {
|
|
19
|
-
await store.save(preferences);
|
|
20
|
-
return { ok: true };
|
|
21
|
-
}
|
|
22
|
-
catch {
|
|
23
|
-
return { ok: false, error: 'failed to save preferences' };
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Merge the keys the caller changed into the stored preferences (#1148), and hand back what is
|
|
28
|
-
* now stored. The write half of the fix for a stale tab reverting settings it never touched:
|
|
29
|
-
* {@link savePreferences} replaces the whole block, so a client's snapshot overwrote whatever
|
|
30
|
-
* anyone else had changed since it loaded. Returning the merged result also lets the caller
|
|
31
|
-
* adopt the truth it just wrote against, so a tab converges instead of staying stale.
|
|
32
|
-
*/
|
|
33
|
-
export async function patchPreferences(patch) {
|
|
34
|
-
const store = contextPreferences();
|
|
35
|
-
if (!store?.patch)
|
|
36
|
-
return { ok: false, error: 'preferences are not enabled on this server' };
|
|
37
|
-
// Typed error rather than a rejection, like `savePreferences` — one shape for both failures.
|
|
38
|
-
try {
|
|
39
|
-
return { ok: true, preferences: await store.patch(patch) };
|
|
40
|
-
}
|
|
41
|
-
catch {
|
|
42
|
-
return { ok: false, error: 'failed to save preferences' };
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* One project's own run options (#840), or `{}` when it overrides nothing / the host stores
|
|
47
|
-
* none. Separate from {@link onPreferences} rather than folded into it: the client needs the
|
|
48
|
-
* two tiers apart to know which one a toggle should write to.
|
|
49
|
-
*/
|
|
50
|
-
export async function onProjectPreferences(projectId) {
|
|
51
|
-
const store = contextPreferences();
|
|
52
|
-
if (!store?.readProject)
|
|
53
|
-
return {};
|
|
54
|
-
return store.readProject(projectId).catch(() => ({}));
|
|
55
|
-
}
|
|
56
|
-
/** Persist one project's run options (#840), sanitized in the store. No-op-safe on a public host. */
|
|
57
|
-
export async function saveProjectPreferences(projectId, preferences) {
|
|
58
|
-
const store = contextPreferences();
|
|
59
|
-
if (!store?.saveProject)
|
|
60
|
-
return { ok: false, error: 'preferences are not enabled on this server' };
|
|
61
|
-
try {
|
|
62
|
-
await store.saveProject(projectId, preferences);
|
|
63
|
-
return { ok: true };
|
|
64
|
-
}
|
|
65
|
-
catch {
|
|
66
|
-
return { ok: false, error: 'failed to save preferences' };
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
/** {@link patchPreferences} for one project's run options (#1148). */
|
|
70
|
-
export async function patchProjectPreferences(projectId, patch) {
|
|
71
|
-
const store = contextPreferences();
|
|
72
|
-
if (!store?.patchProject)
|
|
73
|
-
return { ok: false, error: 'preferences are not enabled on this server' };
|
|
74
|
-
try {
|
|
75
|
-
return { ok: true, preferences: await store.patchProject(projectId, patch) };
|
|
76
|
-
}
|
|
77
|
-
catch {
|
|
78
|
-
return { ok: false, error: 'failed to save preferences' };
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* A project's shared custom presets (#1025), committed into its `.the-framework/` so they travel
|
|
83
|
-
* with the repo — the team-shared counterpart to the user-tier {@link onPreferences} presets. Read
|
|
84
|
-
* from the project's own checkout, so this resolves the project id to its workspace path rather than
|
|
85
|
-
* touching the home registry. `[]` on a public host (no local checkout) or an unknown project.
|
|
86
|
-
*/
|
|
87
|
-
export async function onProjectPresets(projectId) {
|
|
88
|
-
if (!contextPreferences())
|
|
89
|
-
return [];
|
|
90
|
-
const cwd = await resolveProjectPath(projectId);
|
|
91
|
-
if (!cwd)
|
|
92
|
-
return [];
|
|
93
|
-
return readProjectPresets(cwd).catch(() => []);
|
|
94
|
-
}
|
|
95
|
-
/** Persist a project's shared custom presets into its `.the-framework/` (#1025). No-op-safe on a public host. */
|
|
96
|
-
export async function saveProjectPresets(projectId, presets) {
|
|
97
|
-
if (!contextPreferences())
|
|
98
|
-
return { ok: false, error: 'preferences are not enabled on this server' };
|
|
99
|
-
const cwd = await resolveProjectPath(projectId);
|
|
100
|
-
if (!cwd)
|
|
101
|
-
return { ok: false, error: 'unknown project' };
|
|
102
|
-
try {
|
|
103
|
-
await writeProjectPresets(cwd, presets);
|
|
104
|
-
return { ok: true };
|
|
105
|
-
}
|
|
106
|
-
catch {
|
|
107
|
-
return { ok: false, error: 'failed to save presets' };
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* The editors installed on this server (#727), for the "Preferred editor" picker. Detection reads
|
|
112
|
-
* the daemon's own PATH, so it is gated on the same store presence as the other preference RPCs:
|
|
113
|
-
* a public host (the relay) has no local checkout to open anyway, so it returns `[]`.
|
|
114
|
-
*/
|
|
115
|
-
export async function onEditors() {
|
|
116
|
-
if (!contextPreferences())
|
|
117
|
-
return [];
|
|
118
|
-
return detectEditors().catch(() => []);
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Whether the daemon has the Discord credentials (#948/#1095). The toggles are per-user
|
|
122
|
-
* preferences, but delivery needs a webhook / a bot token on the daemon — without this read the
|
|
123
|
-
* dashboard let you switch on a channel that delivers nothing and lit the bell for it.
|
|
124
|
-
*
|
|
125
|
-
* Only presence is reported, never the values, and that is the whole contract: a credential set
|
|
126
|
-
* from the dashboard (#1095) lives daemon-side and is never read back to a browser, so this stays
|
|
127
|
-
* booleans plus where each came from. Gated like the other preference RPCs, so a public host
|
|
128
|
-
* reports both absent.
|
|
129
|
-
*/
|
|
130
|
-
export async function onNotifyChannels() {
|
|
131
|
-
const discord = contextDiscord();
|
|
132
|
-
if (!contextPreferences() || !discord)
|
|
133
|
-
return { discordWebhook: false, discordBot: false, sources: {}, editable: false };
|
|
134
|
-
const sources = await discord.status().catch(() => ({}));
|
|
135
|
-
return { discordWebhook: sources.webhook !== undefined, discordBot: sources.botToken !== undefined, sources, editable: true };
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Store (or clear) the Discord credentials from the dashboard (#1095) — the step that used to
|
|
139
|
-
* need an edit to the daemon's environment and a restart, which made it the one onboarding step
|
|
140
|
-
* you could not finish in-product.
|
|
141
|
-
*
|
|
142
|
-
* Write-only on purpose: there is no companion read. The value goes daemon-side, and the browser
|
|
143
|
-
* only ever learns that it is there ({@link onNotifyChannels}). The store applies it live, so the
|
|
144
|
-
* bot connects and the watchers start on the save rather than at the next daemon start.
|
|
145
|
-
*
|
|
146
|
-
* The exposure is bounded by the guard the rest of this surface already sits behind: on a
|
|
147
|
-
* non-loopback bind every route requires the shared token (#1051), and anyone through that guard
|
|
148
|
-
* can start runs — strictly more than setting a webhook URL. A public host wires no store, so
|
|
149
|
-
* this refuses there.
|
|
150
|
-
*/
|
|
151
|
-
export async function saveDiscordCredentials(patch) {
|
|
152
|
-
const discord = contextDiscord();
|
|
153
|
-
if (!discord)
|
|
154
|
-
return { ok: false, error: 'Discord cannot be configured on this server.' };
|
|
155
|
-
return discord.save(patch).catch(() => ({ ok: false, error: 'failed to save' }));
|
|
156
|
-
}
|
|
157
|
-
//# sourceMappingURL=preferences.telefunc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preferences.telefunc.js","sourceRoot":"","sources":["../../src/dashboard-rpc/preferences.telefunc.ts"],"names":[],"mappings":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ashboard/gh.js';
|
|
3
|
-
import type { AgentReady } from '../dashboard/types.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 project(s) from the dashboard (#396/#433): install a single repo, or every git
|
|
9
|
-
* repo under a directory, and register each so it joins the Projects list. Like
|
|
10
|
-
* `sendStart` this needs the daemon (it spawns git + writes the shared registry), so it
|
|
11
|
-
* calls the daemon's own `addProject` closure from the Telefunc request context. Returns
|
|
12
|
-
* the daemon's {@link AddProjectResult}; a public host (the relay) leaves it unwired.
|
|
13
|
-
*/
|
|
14
|
-
export declare function sendAddProject(path: string, directory: boolean): Promise<AddProjectResult>;
|
|
15
|
-
/**
|
|
16
|
-
* The Onboarding checklist's one server-side fact (#958): the directory this server runs in,
|
|
17
|
-
* so the first step can offer "Add {cwd} as project" without the user typing a path.
|
|
18
|
-
*
|
|
19
|
-
* Gated on the same `addProject` wiring as {@link sendAddProject}. A public host (the relay)
|
|
20
|
-
* cannot act on the suggestion anyway, and must not disclose where it runs, so it offers none.
|
|
21
|
-
*/
|
|
22
|
-
export declare function onOnboarding(): Promise<OnboardingSuggestion>;
|
|
23
|
-
/**
|
|
24
|
-
* Whether Claude Code trusts this project's root (#1318): the launcher warns before a web run
|
|
25
|
-
* on an untrusted project, which is doomed to die on the CLI's interactive trust dialog
|
|
26
|
-
* (#1314), instead of after it. Read-only — trusting a folder stays the user's own act in the
|
|
27
|
-
* CLI; run worktrees inherit the root's answer. `null` when the project is unknown here, and
|
|
28
|
-
* `known: false` when the CLI's config could not say.
|
|
29
|
-
*/
|
|
30
|
-
export declare function onClaudeTrust(projectId: string): Promise<(ClaudeTrust & {
|
|
31
|
-
root: string;
|
|
32
|
-
}) | null>;
|
|
33
|
-
/**
|
|
34
|
-
* Whether this project's repo allows GitHub auto-merge (#1417): the launcher warns when the merge
|
|
35
|
-
* rung is armed on a repo that does not, because the armed merge silently degrades to an immediate
|
|
36
|
-
* direct merge (#1216) — the PR lands before CI has run (#1406). Read-only and cached (#1028).
|
|
37
|
-
* `null` when the project is unknown here; `known: false` when `gh` could not say (not installed,
|
|
38
|
-
* not a GitHub repo), which renders nothing rather than crying wolf — the #1318 stance.
|
|
39
|
-
*/
|
|
40
|
-
export declare function onRepoAutoMerge(projectId: string): Promise<RepoAutoMerge | null>;
|
|
41
|
-
/**
|
|
42
|
-
* Whether the picked agent's CLI can start a run at all (#1326): installed, logged in, and not
|
|
43
|
-
* running as root. The launcher says so before the Start, the way #1318 warns about folder trust,
|
|
44
|
-
* rather than leaving the user with a spent branch and a dashboard stuck on "Waiting for the
|
|
45
|
-
* session to start..." (#1323).
|
|
46
|
-
*
|
|
47
|
-
* Reports problems only, and only ones the user can act on. The passing checks carry the version
|
|
48
|
-
* string and the logged-in account, which are of no use to a launcher and have no business
|
|
49
|
-
* reaching a browser that may be a relay guest, so they stay on this side.
|
|
50
|
-
*
|
|
51
|
-
* `publish` adds the `gh` half (#1419): a launcher with the PR/merge rung armed wants to hear
|
|
52
|
-
* about a missing or logged-out GitHub CLI now, not discover it hours later as a session whose
|
|
53
|
-
* publishing silently stopped at the pushed branch.
|
|
54
|
-
*/
|
|
55
|
-
export declare function onAgentReady(agent: string, publish?: boolean): Promise<AgentReady>;
|
|
56
|
-
//# sourceMappingURL=projects.telefunc.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projects.telefunc.d.ts","sourceRoot":"","sources":["../../src/dashboard-rpc/projects.telefunc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAG5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAOnF,wBAAsB,UAAU,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAE5D;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAMhG;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAMlE;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,IAAI,CAAC,CAKvG;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAMtF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAOxF"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getContext } from 'telefunc';
|
|
2
|
-
import { contextProjects } from './context.js';
|
|
3
|
-
import { readClaudeTrust } from '../claude-trust.js';
|
|
4
|
-
import { cachedRepoAutoMerge } from '../dashboard/gh.js';
|
|
5
|
-
import { preflight, preflightProblems } from '../preflight.js';
|
|
6
|
-
import { isAgentName } from '../agent-names.js';
|
|
7
|
-
// The Projects sidebar behind the new dashboard (#405): the global registry (#390) the
|
|
8
|
-
// daemon and CLI write — id, path, name, activated, last activity. The per-run
|
|
9
|
-
// foreground dashboard (#427) scopes this to a single project via the request context.
|
|
10
|
-
// The live event stream is its own Telefunc Channel (events.telefunc.ts).
|
|
11
|
-
export async function onProjects() {
|
|
12
|
-
return contextProjects().list();
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Add project(s) from the dashboard (#396/#433): install a single repo, or every git
|
|
16
|
-
* repo under a directory, and register each so it joins the Projects list. Like
|
|
17
|
-
* `sendStart` this needs the daemon (it spawns git + writes the shared registry), so it
|
|
18
|
-
* calls the daemon's own `addProject` closure from the Telefunc request context. Returns
|
|
19
|
-
* the daemon's {@link AddProjectResult}; a public host (the relay) leaves it unwired.
|
|
20
|
-
*/
|
|
21
|
-
export async function sendAddProject(path, directory) {
|
|
22
|
-
const { addProject } = getContext();
|
|
23
|
-
if (!addProject)
|
|
24
|
-
return { ok: false, error: 'adding projects is not enabled on this server' };
|
|
25
|
-
const trimmed = path.trim();
|
|
26
|
-
if (!trimmed)
|
|
27
|
-
return { ok: false, error: 'a project path is required' };
|
|
28
|
-
return addProject(trimmed, directory);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The Onboarding checklist's one server-side fact (#958): the directory this server runs in,
|
|
32
|
-
* so the first step can offer "Add {cwd} as project" without the user typing a path.
|
|
33
|
-
*
|
|
34
|
-
* Gated on the same `addProject` wiring as {@link sendAddProject}. A public host (the relay)
|
|
35
|
-
* cannot act on the suggestion anyway, and must not disclose where it runs, so it offers none.
|
|
36
|
-
*/
|
|
37
|
-
export async function onOnboarding() {
|
|
38
|
-
const { addProject } = getContext();
|
|
39
|
-
if (!addProject)
|
|
40
|
-
return { cwd: null, cwdProjectId: null };
|
|
41
|
-
const cwd = process.cwd();
|
|
42
|
-
const registered = await contextProjects().list();
|
|
43
|
-
return { cwd, cwdProjectId: registered.find(p => p.path === cwd)?.id ?? null };
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Whether Claude Code trusts this project's root (#1318): the launcher warns before a web run
|
|
47
|
-
* on an untrusted project, which is doomed to die on the CLI's interactive trust dialog
|
|
48
|
-
* (#1314), instead of after it. Read-only — trusting a folder stays the user's own act in the
|
|
49
|
-
* CLI; run worktrees inherit the root's answer. `null` when the project is unknown here, and
|
|
50
|
-
* `known: false` when the CLI's config could not say.
|
|
51
|
-
*/
|
|
52
|
-
export async function onClaudeTrust(projectId) {
|
|
53
|
-
const projects = await contextProjects().list();
|
|
54
|
-
const root = projects.find(p => p.id === projectId)?.path;
|
|
55
|
-
if (!root)
|
|
56
|
-
return null;
|
|
57
|
-
return { ...(await readClaudeTrust(root)), root };
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Whether this project's repo allows GitHub auto-merge (#1417): the launcher warns when the merge
|
|
61
|
-
* rung is armed on a repo that does not, because the armed merge silently degrades to an immediate
|
|
62
|
-
* direct merge (#1216) — the PR lands before CI has run (#1406). Read-only and cached (#1028).
|
|
63
|
-
* `null` when the project is unknown here; `known: false` when `gh` could not say (not installed,
|
|
64
|
-
* not a GitHub repo), which renders nothing rather than crying wolf — the #1318 stance.
|
|
65
|
-
*/
|
|
66
|
-
export async function onRepoAutoMerge(projectId) {
|
|
67
|
-
const projects = await contextProjects().list();
|
|
68
|
-
const root = projects.find(p => p.id === projectId)?.path;
|
|
69
|
-
if (!root)
|
|
70
|
-
return null;
|
|
71
|
-
const cached = await cachedRepoAutoMerge(root);
|
|
72
|
-
return cached.value ?? { known: false, allowed: false };
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Whether the picked agent's CLI can start a run at all (#1326): installed, logged in, and not
|
|
76
|
-
* running as root. The launcher says so before the Start, the way #1318 warns about folder trust,
|
|
77
|
-
* rather than leaving the user with a spent branch and a dashboard stuck on "Waiting for the
|
|
78
|
-
* session to start..." (#1323).
|
|
79
|
-
*
|
|
80
|
-
* Reports problems only, and only ones the user can act on. The passing checks carry the version
|
|
81
|
-
* string and the logged-in account, which are of no use to a launcher and have no business
|
|
82
|
-
* reaching a browser that may be a relay guest, so they stay on this side.
|
|
83
|
-
*
|
|
84
|
-
* `publish` adds the `gh` half (#1419): a launcher with the PR/merge rung armed wants to hear
|
|
85
|
-
* about a missing or logged-out GitHub CLI now, not discover it hours later as a session whose
|
|
86
|
-
* publishing silently stopped at the pushed branch.
|
|
87
|
-
*/
|
|
88
|
-
export async function onAgentReady(agent, publish) {
|
|
89
|
-
const result = await preflight({ agent: isAgentName(agent) ? agent : 'claude', publish: publish === true });
|
|
90
|
-
return {
|
|
91
|
-
ok: result.ok,
|
|
92
|
-
problems: preflightProblems(result),
|
|
93
|
-
warnings: result.checks.filter(c => c.warn).map(c => c.detail),
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=projects.telefunc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projects.telefunc.js","sourceRoot":"","sources":["../../src/dashboard-rpc/projects.telefunc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAoB,MAAM,oBAAoB,CAAA;AACtE,OAAO,EAAE,mBAAmB,EAAsB,MAAM,oBAAoB,CAAA;AAC5E,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAM/C,uFAAuF;AACvF,+EAA+E;AAC/E,uFAAuF;AACvF,0EAA0E;AAC1E,MAAM,CAAC,KAAK,UAAU,UAAU;IAC9B,OAAO,eAAe,EAAE,CAAC,IAAI,EAAE,CAAA;AACjC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAY,EAAE,SAAkB;IACnE,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,EAAoB,CAAA;IACrD,IAAI,CAAC,UAAU;QAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,+CAA+C,EAAE,CAAA;IAC7F,MAAM,OAAO,GAAG,IAAI,CAA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/C,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,SAAS,CAAC,EAAE,IAAI,CAAA;IACzD,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAA;IACtB,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,IAAI,CAAC,CAAA;IAC9C,OAAO,MAAM,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;AACzD,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,KAAa,EAAE,OAAiB;IACjE,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC,CAAA;IAC3G,OAAO;QACL,EAAE,EAAE,MAAM,CAAC,EAAE;QACb,QAAQ,EAAE,iBAAiB,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;KAC/D,CAAA;AACH,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { AutoPmOutcome, AutoPmReport } from '../auto-pm.js';
|
|
2
|
-
import type { QuotaView } from '../dashboard/quota.js';
|
|
3
|
-
/** Where the account's quota stands against its boundary. */
|
|
4
|
-
export declare function onQuota(): Promise<QuotaView>;
|
|
5
|
-
/**
|
|
6
|
-
* What auto PM last decided (#1161), for the line under the panel's toggle. It sits beside
|
|
7
|
-
* `onQuota` because it is the same panel and the same gate: auto PM spends against exactly the
|
|
8
|
-
* boundary drawn above it.
|
|
9
|
-
*
|
|
10
|
-
* `undefined` on a host with no sweep (the relay), which the panel reads as "nothing to say"
|
|
11
|
-
* rather than as an idle sweep — the distinction this whole read exists to make.
|
|
12
|
-
*/
|
|
13
|
-
export declare function onAutoPm(): Promise<AutoPmReport | undefined>;
|
|
14
|
-
/**
|
|
15
|
-
* Sweep now rather than at the next interval (#1210). The loop already had this — it is what a
|
|
16
|
-
* write that switches the preference on triggers (#1167) — but until now nothing could ask for
|
|
17
|
-
* it directly, so the only way to fast-forward was to tick the box off and on again.
|
|
18
|
-
*
|
|
19
|
-
* The `autoPm` preference does not gate it: that preference is consent to spend quota *unasked*,
|
|
20
|
-
* and this call is asking. So with auto-run off the daemon still sweeps once — every other
|
|
21
|
-
* stand-down reason in force — and the schedule stays wherever the box says.
|
|
22
|
-
*
|
|
23
|
-
* Awaits the sweep and returns what it decided, one line per project (#1433): the click used to
|
|
24
|
-
* be fire-and-forget, so two presses could show literally nothing — no loading state, no
|
|
25
|
-
* outcome, and the stand-down reason recoverable only from the source. The outcomes are read
|
|
26
|
-
* off the loop's own report once the tick resolves, so the card can say them without a poll
|
|
27
|
-
* having to race the sweep. `false` still means a host with no loop (the relay), which the
|
|
28
|
-
* button reads as "nothing here to trigger".
|
|
29
|
-
*
|
|
30
|
-
* `drainOnly` narrows the sweep to working the queue (#1204): the drain routine's Run now spins
|
|
31
|
-
* agents up on the queue's entries — the fan-out only the sweep can do — and an empty queue is
|
|
32
|
-
* reported rather than borrowed for a rotation job.
|
|
33
|
-
*/
|
|
34
|
-
export declare function sendAutoPmSweep(opts?: {
|
|
35
|
-
drainOnly?: boolean;
|
|
36
|
-
}): Promise<{
|
|
37
|
-
ok: boolean;
|
|
38
|
-
outcomes?: AutoPmOutcome[];
|
|
39
|
-
}>;
|
|
40
|
-
//# sourceMappingURL=quota.telefunc.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quota.telefunc.d.ts","sourceRoot":"","sources":["../../src/dashboard-rpc/quota.telefunc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAetD,6DAA6D;AAC7D,wBAAsB,OAAO,IAAI,OAAO,CAAC,SAAS,CAAC,CAIlD;AAED;;;;;;;GAOG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAQlE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,eAAe,CAAC,IAAI,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAA;CAAE,CAAC,CAqB1H"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { contextAutoPm, contextAutoPmSweep, contextQuota } from './context.js';
|
|
2
|
-
// The usage panel's read surface (#533): where the account's subscription quota stands,
|
|
3
|
-
// and where it stands against the quota boundary (#879). The source is threaded through
|
|
4
|
-
// the Telefunc request context by the daemon, which polls for its whole life; a public
|
|
5
|
-
// host (the relay) leaves it unwired, so the panel reports it has no reading rather than
|
|
6
|
-
// an empty one.
|
|
7
|
-
/** An honest empty view: no reading, and so no boundary to measure against. */
|
|
8
|
-
function noReading() {
|
|
9
|
-
// No windows and no boundary rather than zeroes: an empty bar reads as
|
|
10
|
-
// "nothing used", which is the one thing this panel must never imply.
|
|
11
|
-
return { windows: [], unavailable: 'fetch-failed' };
|
|
12
|
-
}
|
|
13
|
-
/** Where the account's quota stands against its boundary. */
|
|
14
|
-
export async function onQuota() {
|
|
15
|
-
const source = contextQuota();
|
|
16
|
-
if (!source)
|
|
17
|
-
return noReading();
|
|
18
|
-
return source.read().catch(() => noReading());
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* What auto PM last decided (#1161), for the line under the panel's toggle. It sits beside
|
|
22
|
-
* `onQuota` because it is the same panel and the same gate: auto PM spends against exactly the
|
|
23
|
-
* boundary drawn above it.
|
|
24
|
-
*
|
|
25
|
-
* `undefined` on a host with no sweep (the relay), which the panel reads as "nothing to say"
|
|
26
|
-
* rather than as an idle sweep — the distinction this whole read exists to make.
|
|
27
|
-
*/
|
|
28
|
-
export async function onAutoPm() {
|
|
29
|
-
const report = contextAutoPm();
|
|
30
|
-
if (!report)
|
|
31
|
-
return undefined;
|
|
32
|
-
try {
|
|
33
|
-
return report();
|
|
34
|
-
}
|
|
35
|
-
catch {
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Sweep now rather than at the next interval (#1210). The loop already had this — it is what a
|
|
41
|
-
* write that switches the preference on triggers (#1167) — but until now nothing could ask for
|
|
42
|
-
* it directly, so the only way to fast-forward was to tick the box off and on again.
|
|
43
|
-
*
|
|
44
|
-
* The `autoPm` preference does not gate it: that preference is consent to spend quota *unasked*,
|
|
45
|
-
* and this call is asking. So with auto-run off the daemon still sweeps once — every other
|
|
46
|
-
* stand-down reason in force — and the schedule stays wherever the box says.
|
|
47
|
-
*
|
|
48
|
-
* Awaits the sweep and returns what it decided, one line per project (#1433): the click used to
|
|
49
|
-
* be fire-and-forget, so two presses could show literally nothing — no loading state, no
|
|
50
|
-
* outcome, and the stand-down reason recoverable only from the source. The outcomes are read
|
|
51
|
-
* off the loop's own report once the tick resolves, so the card can say them without a poll
|
|
52
|
-
* having to race the sweep. `false` still means a host with no loop (the relay), which the
|
|
53
|
-
* button reads as "nothing here to trigger".
|
|
54
|
-
*
|
|
55
|
-
* `drainOnly` narrows the sweep to working the queue (#1204): the drain routine's Run now spins
|
|
56
|
-
* agents up on the queue's entries — the fan-out only the sweep can do — and an empty queue is
|
|
57
|
-
* reported rather than borrowed for a rotation job.
|
|
58
|
-
*/
|
|
59
|
-
export async function sendAutoPmSweep(opts) {
|
|
60
|
-
const sweep = contextAutoPmSweep();
|
|
61
|
-
// The reporter is captured BEFORE the sweep is awaited: the Telefunc request context does not
|
|
62
|
-
// survive an await, so a post-await `contextAutoPm()` found nothing on every real request and
|
|
63
|
-
// the card fell back to "The sweep ran." — the very fallback this RPC exists to avoid. The
|
|
64
|
-
// captured closure needs no context to be called later.
|
|
65
|
-
const reporter = contextAutoPm();
|
|
66
|
-
if (!sweep)
|
|
67
|
-
return { ok: false };
|
|
68
|
-
try {
|
|
69
|
-
await sweep(opts?.drainOnly ? { drainOnly: true } : undefined);
|
|
70
|
-
}
|
|
71
|
-
catch {
|
|
72
|
-
return { ok: false };
|
|
73
|
-
}
|
|
74
|
-
// The outcomes live on the loop's report — the same lines `onAutoPm` polls — read once the
|
|
75
|
-
// tick has resolved, so they describe the sweep this click fired.
|
|
76
|
-
try {
|
|
77
|
-
const report = reporter?.();
|
|
78
|
-
return { ok: true, ...(report ? { outcomes: report.outcomes } : {}) };
|
|
79
|
-
}
|
|
80
|
-
catch {
|
|
81
|
-
return { ok: true };
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=quota.telefunc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quota.telefunc.js","sourceRoot":"","sources":["../../src/dashboard-rpc/quota.telefunc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAI9E,wFAAwF;AACxF,wFAAwF;AACxF,uFAAuF;AACvF,yFAAyF;AACzF,gBAAgB;AAEhB,+EAA+E;AAC/E,SAAS,SAAS;IAChB,uEAAuE;IACvE,sEAAsE;IACtE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA;AACrD,CAAC;AAED,6DAA6D;AAC7D,MAAM,CAAC,KAAK,UAAU,OAAO;IAC3B,MAAM,MAAM,GAAG,YAAY,EAA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