@openagt/dashboard 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/agent-view.d.ts +3 -3
- package/dist/bridge-browser.d.ts +4 -4
- package/dist/bridge-browser.d.ts.map +1 -1
- package/dist/bridge-browser.js +8 -8
- package/dist/bridge-browser.js.map +1 -1
- package/dist/built-in.d.ts +13 -4
- package/dist/built-in.d.ts.map +1 -1
- package/dist/built-in.js +45 -4
- package/dist/built-in.js.map +1 -1
- package/dist/chrome-extension/background.js +11 -11
- package/dist/chrome-extension/content.js +37 -37
- package/dist/chrome-extension/driver-plan.js +1 -1
- package/dist/chrome-extension/fingerprint.js +1 -1
- package/dist/chrome-extension/manifest.json +3 -3
- package/dist/chrome-extension/options.html +4 -4
- package/dist/chrome-extension/options.js +4 -4
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -7
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -2
- package/dist/cloud-run-state.d.ts +1 -1
- package/dist/cloud-scratch-refs.js +7 -7
- package/dist/cloud-scratch-refs.js.map +1 -1
- package/dist/cloud-work.js +2 -2
- package/dist/daemon-runtime.d.ts +5 -4
- package/dist/daemon-runtime.d.ts.map +1 -1
- package/dist/daemon-runtime.js +59 -9
- package/dist/daemon-runtime.js.map +1 -1
- package/dist/daemon-services.d.ts +4 -3
- package/dist/daemon-services.d.ts.map +1 -1
- package/dist/daemon-services.js +14 -8
- package/dist/daemon-services.js.map +1 -1
- package/dist/daemon-tick.js +1 -1
- package/dist/daemon.d.ts +1 -12
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +9 -32
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard/agent-handoff.d.ts +4 -4
- package/dist/dashboard/agent-handoff.js +7 -7
- package/dist/dashboard/agent-handoff.js.map +1 -1
- package/dist/dashboard/bridge-endpoints.d.ts +3 -3
- package/dist/dashboard/bridge-endpoints.js +3 -3
- package/dist/dashboard/content-type.js +1 -1
- package/dist/dashboard/docs.d.ts +1 -1
- package/dist/dashboard/docs.js +1 -1
- package/dist/dashboard/git-status.d.ts +1 -1
- package/dist/dashboard/index.d.ts +1 -1
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/interventions.d.ts +2 -2
- package/dist/dashboard/open-in-app.d.ts +3 -3
- package/dist/dashboard/open-in-app.js +4 -4
- package/dist/dashboard/open-questions.d.ts +2 -2
- package/dist/dashboard/projects.d.ts +6 -5
- package/dist/dashboard/projects.d.ts.map +1 -1
- package/dist/dashboard/projects.js.map +1 -1
- package/dist/dashboard/pull-requests.d.ts +5 -5
- package/dist/dashboard/pull-requests.d.ts.map +1 -1
- package/dist/dashboard/pull-requests.js +2 -2
- package/dist/dashboard/pull-requests.js.map +1 -1
- package/dist/dashboard/relay-endpoints.d.ts +3 -3
- package/dist/dashboard/relay-endpoints.js +1 -1
- package/dist/dashboard/remote-run.d.ts +5 -5
- package/dist/dashboard/remote-run.js +3 -3
- package/dist/dashboard/rpc-serve.d.ts +7 -4
- package/dist/dashboard/rpc-serve.d.ts.map +1 -1
- package/dist/dashboard/rpc-serve.js.map +1 -1
- package/dist/dashboard/run-inbox.d.ts +2 -2
- package/dist/dashboard/run-inbox.js +4 -4
- package/dist/dashboard/run-inbox.js.map +1 -1
- package/dist/dashboard/server.d.ts +6 -4
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard/server.js +3 -2
- package/dist/dashboard/server.js.map +1 -1
- package/dist/dashboard/static.js +1 -1
- package/dist/dashboard/types.d.ts +29 -3
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/dashboard/web-start-endpoints.d.ts +1 -1
- package/dist/dashboard/web-start-endpoints.d.ts.map +1 -1
- package/dist/dashboard/web-start-endpoints.js +1 -1
- package/dist/dashboard/web-start-endpoints.js.map +1 -1
- package/dist/dashboard-bundle/assets/{main-om0WOAku.js → main-B98UOA3_.js} +48 -48
- package/dist/dashboard-bundle/assets/main-ByRjbCiA.css +2 -0
- package/dist/dashboard-bundle/assets/{module-jASZmfSB.js → module-v213KWfH.js} +4 -4
- package/dist/dashboard-bundle/host/module.js +1 -1
- package/dist/dashboard-bundle/index.html +6 -6
- package/dist/dashboard-rpc/context.d.ts +2 -0
- package/dist/dashboard-rpc/context.d.ts.map +1 -1
- package/dist/dashboard-rpc/context.js +4 -0
- package/dist/dashboard-rpc/context.js.map +1 -1
- package/dist/dashboard-rpc/control.d.ts +1 -1
- package/dist/dashboard-rpc/control.js +3 -3
- package/dist/dashboard-rpc/control.js.map +1 -1
- package/dist/dashboard-rpc/events.d.ts +3 -3
- package/dist/dashboard-rpc/index.d.ts +1 -1
- package/dist/dashboard-rpc/index.d.ts.map +1 -1
- package/dist/dashboard-rpc/index.js +1 -1
- package/dist/dashboard-rpc/index.js.map +1 -1
- package/dist/dashboard-rpc/modules.d.ts +8 -6
- package/dist/dashboard-rpc/modules.d.ts.map +1 -1
- package/dist/dashboard-rpc/modules.js +8 -6
- package/dist/dashboard-rpc/modules.js.map +1 -1
- package/dist/dashboard-rpc/preferences.d.ts +2 -2
- package/dist/dashboard-rpc/preferences.d.ts.map +1 -1
- package/dist/dashboard-rpc/preferences.js +2 -2
- package/dist/dashboard-rpc/preferences.js.map +1 -1
- package/dist/dashboard-rpc/projects.d.ts +29 -3
- package/dist/dashboard-rpc/projects.d.ts.map +1 -1
- package/dist/dashboard-rpc/projects.js +49 -7
- package/dist/dashboard-rpc/projects.js.map +1 -1
- package/dist/dashboard-rpc/reads.d.ts +3 -3
- package/dist/dashboard-rpc/reads.js +1 -1
- package/dist/dashboard-rpc/test-context.d.ts.map +1 -1
- package/dist/dashboard-rpc/test-context.js +4 -3
- package/dist/dashboard-rpc/test-context.js.map +1 -1
- package/dist/event-stream.d.ts +1 -1
- package/dist/event-stream.js +1 -1
- package/dist/events.d.ts +8 -8
- package/dist/events.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/install.d.ts +9 -7
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +28 -14
- package/dist/install.js.map +1 -1
- package/dist/module-server.d.ts +1 -1
- package/dist/module-types/dashboard/lib/route.d.ts +2 -1
- package/dist/module-types/dashboard/lib/use-modules.d.ts +4 -3
- package/dist/module-types/dashboard/module/index.d.ts +5 -5
- package/dist/module-types/src/agent-view.d.ts +3 -3
- package/dist/module-types/src/bridge-browser.d.ts +4 -4
- package/dist/module-types/src/built-in.d.ts +13 -4
- package/dist/module-types/src/client.d.ts +1 -1
- package/dist/module-types/src/cloud-run-state.d.ts +1 -1
- package/dist/module-types/src/dashboard/agent-handoff.d.ts +4 -4
- package/dist/module-types/src/dashboard/bridge-endpoints.d.ts +3 -3
- package/dist/module-types/src/dashboard/docs.d.ts +1 -1
- package/dist/module-types/src/dashboard/git-status.d.ts +1 -1
- package/dist/module-types/src/dashboard/interventions.d.ts +2 -2
- package/dist/module-types/src/dashboard/open-in-app.d.ts +3 -3
- package/dist/module-types/src/dashboard/open-questions.d.ts +2 -2
- package/dist/module-types/src/dashboard/projects.d.ts +6 -5
- package/dist/module-types/src/dashboard/pull-requests.d.ts +5 -5
- package/dist/module-types/src/dashboard/remote-run.d.ts +5 -5
- package/dist/module-types/src/dashboard/rpc-serve.d.ts +7 -4
- package/dist/module-types/src/dashboard/run-inbox.d.ts +2 -2
- package/dist/module-types/src/dashboard/types.d.ts +29 -3
- package/dist/module-types/src/dashboard-rpc/context.d.ts +2 -0
- package/dist/module-types/src/dashboard-rpc/control.d.ts +1 -1
- package/dist/module-types/src/dashboard-rpc/events.d.ts +3 -3
- package/dist/module-types/src/dashboard-rpc/index.d.ts +1 -1
- package/dist/module-types/src/dashboard-rpc/modules.d.ts +8 -6
- package/dist/module-types/src/dashboard-rpc/preferences.d.ts +2 -2
- package/dist/module-types/src/dashboard-rpc/projects.d.ts +29 -3
- package/dist/module-types/src/dashboard-rpc/reads.d.ts +3 -3
- package/dist/module-types/src/event-stream.d.ts +1 -1
- package/dist/module-types/src/events.d.ts +8 -8
- package/dist/module-types/src/index.d.ts +3 -2
- package/dist/module-types/src/open-choices.d.ts +2 -2
- package/dist/module-types/src/{framework-dir.d.ts → openagent-dir.d.ts} +2 -2
- package/dist/module-types/src/openagent-gitignore.d.ts +11 -0
- package/dist/module-types/src/project-commands.d.ts +1 -1
- package/dist/module-types/src/project-errors.d.ts +11 -7
- package/dist/module-types/src/project-hooks.d.ts +4 -4
- package/dist/module-types/src/project-modules.d.ts +5 -5
- package/dist/module-types/src/project-presets.d.ts +4 -4
- package/dist/module-types/src/project.d.ts +6 -6
- package/dist/module-types/src/publish-levels.d.ts +4 -4
- package/dist/module-types/src/quota-boundary.d.ts +2 -2
- package/dist/module-types/src/registry.d.ts +13 -7
- package/dist/module-types/src/store/agent-checkout.d.ts +1 -1
- package/dist/module-types/src/store/agent-store.d.ts +6 -6
- package/dist/module-types/src/store/branches.d.ts +7 -7
- package/dist/module-types/src/store/git-host.d.ts +7 -7
- package/dist/module-types/src/store/provided.d.ts +3 -3
- package/dist/module-types/src/store/queue.d.ts +8 -8
- package/dist/module-types/src/store/repository.d.ts +2 -2
- package/dist/module-types/src/store/run-record.d.ts +10 -10
- package/dist/module-types/src/store/runs.d.ts +6 -6
- package/dist/module-types/src/store/tickets.d.ts +7 -7
- package/dist/module-types/src/terminal.d.ts +3 -3
- package/dist/open-choices.d.ts +2 -2
- package/dist/{framework-dir.js → openagent-dir.d.ts} +3 -3
- package/dist/openagent-dir.d.ts.map +1 -0
- package/dist/{framework-dir.d.ts → openagent-dir.js} +3 -3
- package/dist/openagent-dir.js.map +1 -0
- package/dist/openagent-gitignore.d.ts +12 -0
- package/dist/openagent-gitignore.d.ts.map +1 -0
- package/dist/openagent-gitignore.js +19 -0
- package/dist/openagent-gitignore.js.map +1 -0
- package/dist/pick-directory.js +2 -2
- package/dist/pick-directory.js.map +1 -1
- package/dist/project-commands.d.ts +1 -1
- package/dist/project-commands.js +1 -1
- package/dist/project-errors.d.ts +11 -7
- package/dist/project-errors.d.ts.map +1 -1
- package/dist/project-errors.js +10 -8
- package/dist/project-errors.js.map +1 -1
- package/dist/project-hooks.d.ts +4 -4
- package/dist/project-hooks.d.ts.map +1 -1
- package/dist/project-hooks.js +8 -8
- package/dist/project-hooks.js.map +1 -1
- package/dist/project-modules.d.ts +5 -5
- package/dist/project-modules.js +2 -2
- package/dist/project-presets.d.ts +4 -4
- package/dist/project-presets.d.ts.map +1 -1
- package/dist/project-presets.js +9 -9
- package/dist/project-presets.js.map +1 -1
- package/dist/project.d.ts +6 -6
- package/dist/project.js +6 -6
- package/dist/publish-levels.d.ts +4 -4
- package/dist/publish-levels.d.ts.map +1 -1
- package/dist/publish-levels.js +7 -5
- package/dist/publish-levels.js.map +1 -1
- package/dist/quota-boundary.d.ts +2 -2
- package/dist/quota-boundary.js +2 -2
- package/dist/registry.d.ts +13 -7
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +19 -3
- package/dist/registry.js.map +1 -1
- package/dist/remove-files.d.ts +24 -0
- package/dist/remove-files.d.ts.map +1 -0
- package/dist/remove-files.js +98 -0
- package/dist/remove-files.js.map +1 -0
- package/dist/store/agent-checkout.d.ts +1 -1
- package/dist/store/agent-checkout.js +3 -3
- package/dist/store/agent-checkout.js.map +1 -1
- package/dist/store/agent-store.d.ts +6 -6
- package/dist/store/agent-store.js +8 -8
- package/dist/store/agent-store.js.map +1 -1
- package/dist/store/branches.d.ts +7 -7
- package/dist/store/branches.d.ts.map +1 -1
- package/dist/store/branches.js +1 -1
- package/dist/store/branches.js.map +1 -1
- package/dist/store/git-host.d.ts +7 -7
- package/dist/store/git-host.d.ts.map +1 -1
- package/dist/store/git-host.js +1 -1
- package/dist/store/git-host.js.map +1 -1
- package/dist/store/provided.d.ts +3 -3
- package/dist/store/provided.d.ts.map +1 -1
- package/dist/store/provided.js +3 -3
- package/dist/store/provided.js.map +1 -1
- package/dist/store/queue.d.ts +8 -8
- package/dist/store/queue.d.ts.map +1 -1
- package/dist/store/queue.js +1 -1
- package/dist/store/queue.js.map +1 -1
- package/dist/store/repository.d.ts +2 -2
- package/dist/store/run-record.d.ts +10 -10
- package/dist/store/run-record.d.ts.map +1 -1
- package/dist/store/run-record.js +7 -7
- package/dist/store/run-record.js.map +1 -1
- package/dist/store/runs.d.ts +6 -6
- package/dist/store/runs.d.ts.map +1 -1
- package/dist/store/runs.js +2 -2
- package/dist/store/runs.js.map +1 -1
- package/dist/store/tickets.d.ts +7 -7
- package/dist/store/tickets.d.ts.map +1 -1
- package/dist/store/tickets.js +1 -1
- package/dist/store/tickets.js.map +1 -1
- package/dist/terminal.d.ts +3 -3
- package/dist/terminal.js +3 -3
- package/package.json +19 -19
- package/dist/agent-archive.d.ts +0 -35
- package/dist/agent-archive.d.ts.map +0 -1
- package/dist/agent-archive.js +0 -67
- package/dist/agent-archive.js.map +0 -1
- package/dist/agent-commit.d.ts +0 -140
- package/dist/agent-commit.d.ts.map +0 -1
- package/dist/agent-commit.js +0 -254
- package/dist/agent-commit.js.map +0 -1
- package/dist/agent-driver.d.ts +0 -28
- package/dist/agent-driver.d.ts.map +0 -1
- package/dist/agent-driver.js +0 -18
- package/dist/agent-driver.js.map +0 -1
- package/dist/agent-location.d.ts +0 -11
- package/dist/agent-location.d.ts.map +0 -1
- package/dist/agent-location.js +0 -10
- package/dist/agent-location.js.map +0 -1
- package/dist/agent-messages.d.ts +0 -55
- package/dist/agent-messages.d.ts.map +0 -1
- package/dist/agent-messages.js +0 -73
- package/dist/agent-messages.js.map +0 -1
- package/dist/agent-names.d.ts +0 -24
- package/dist/agent-names.d.ts.map +0 -1
- package/dist/agent-names.js +0 -33
- package/dist/agent-names.js.map +0 -1
- package/dist/agent-options.d.ts +0 -45
- package/dist/agent-options.d.ts.map +0 -1
- package/dist/agent-options.js +0 -83
- package/dist/agent-options.js.map +0 -1
- package/dist/agent-spec.d.ts +0 -56
- package/dist/agent-spec.d.ts.map +0 -1
- package/dist/agent-spec.js +0 -56
- package/dist/agent-spec.js.map +0 -1
- package/dist/agent-telemetry.d.ts +0 -88
- package/dist/agent-telemetry.d.ts.map +0 -1
- package/dist/agent-telemetry.js +0 -97
- package/dist/agent-telemetry.js.map +0 -1
- package/dist/agent.d.ts +0 -113
- package/dist/agent.d.ts.map +0 -1
- package/dist/agent.js +0 -168
- package/dist/agent.js.map +0 -1
- package/dist/archived-agent-patch.d.ts +0 -14
- package/dist/archived-agent-patch.d.ts.map +0 -1
- package/dist/archived-agent-patch.js +0 -22
- package/dist/archived-agent-patch.js.map +0 -1
- package/dist/auto-pm.d.ts +0 -538
- package/dist/auto-pm.d.ts.map +0 -1
- package/dist/auto-pm.js +0 -707
- package/dist/auto-pm.js.map +0 -1
- package/dist/await-gate.d.ts +0 -184
- package/dist/await-gate.d.ts.map +0 -1
- package/dist/await-gate.js +0 -252
- package/dist/await-gate.js.map +0 -1
- package/dist/branch-links-pass.d.ts +0 -15
- package/dist/branch-links-pass.d.ts.map +0 -1
- package/dist/branch-links-pass.js +0 -13
- package/dist/branch-links-pass.js.map +0 -1
- package/dist/branch-links.d.ts +0 -53
- package/dist/branch-links.d.ts.map +0 -1
- package/dist/branch-links.js +0 -94
- package/dist/branch-links.js.map +0 -1
- package/dist/branch-names.d.ts +0 -57
- package/dist/branch-names.d.ts.map +0 -1
- package/dist/branch-names.js +0 -72
- package/dist/branch-names.js.map +0 -1
- package/dist/ci-watch.d.ts +0 -123
- package/dist/ci-watch.d.ts.map +0 -1
- package/dist/ci-watch.js +0 -228
- package/dist/ci-watch.js.map +0 -1
- package/dist/claude-trust.d.ts +0 -16
- package/dist/claude-trust.d.ts.map +0 -1
- package/dist/claude-trust.js +0 -72
- package/dist/claude-trust.js.map +0 -1
- package/dist/cli-exec.d.ts +0 -36
- package/dist/cli-exec.d.ts.map +0 -1
- package/dist/cli-exec.js +0 -44
- package/dist/cli-exec.js.map +0 -1
- package/dist/closing-keywords.d.ts +0 -28
- package/dist/closing-keywords.d.ts.map +0 -1
- package/dist/closing-keywords.js +0 -49
- package/dist/closing-keywords.js.map +0 -1
- package/dist/config-layers.d.ts +0 -62
- package/dist/config-layers.d.ts.map +0 -1
- package/dist/config-layers.js +0 -70
- package/dist/config-layers.js.map +0 -1
- package/dist/config.d.ts +0 -54
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -78
- package/dist/config.js.map +0 -1
- package/dist/consumption-guard.d.ts +0 -53
- package/dist/consumption-guard.d.ts.map +0 -1
- package/dist/consumption-guard.js +0 -69
- package/dist/consumption-guard.js.map +0 -1
- package/dist/control.d.ts +0 -75
- package/dist/control.d.ts.map +0 -1
- package/dist/control.js +0 -68
- package/dist/control.js.map +0 -1
- package/dist/conversation-commit.d.ts +0 -166
- package/dist/conversation-commit.d.ts.map +0 -1
- package/dist/conversation-commit.js +0 -309
- package/dist/conversation-commit.js.map +0 -1
- package/dist/conversations.d.ts +0 -93
- package/dist/conversations.d.ts.map +0 -1
- package/dist/conversations.js +0 -176
- package/dist/conversations.js.map +0 -1
- package/dist/daemon-writes.d.ts +0 -33
- package/dist/daemon-writes.d.ts.map +0 -1
- package/dist/daemon-writes.js +0 -45
- package/dist/daemon-writes.js.map +0 -1
- package/dist/dashboard/agent-tree.d.ts +0 -106
- package/dist/dashboard/agent-tree.d.ts.map +0 -1
- package/dist/dashboard/agent-tree.js +0 -180
- package/dist/dashboard/agent-tree.js.map +0 -1
- package/dist/dashboard/browser-proxy.d.ts +0 -41
- package/dist/dashboard/browser-proxy.d.ts.map +0 -1
- package/dist/dashboard/browser-proxy.js +0 -96
- package/dist/dashboard/browser-proxy.js.map +0 -1
- package/dist/dashboard/discord-webhook.d.ts +0 -17
- package/dist/dashboard/discord-webhook.d.ts.map +0 -1
- package/dist/dashboard/discord-webhook.js +0 -36
- package/dist/dashboard/discord-webhook.js.map +0 -1
- package/dist/dashboard/file-diff.d.ts +0 -67
- package/dist/dashboard/file-diff.d.ts.map +0 -1
- package/dist/dashboard/file-diff.js +0 -132
- package/dist/dashboard/file-diff.js.map +0 -1
- package/dist/dashboard/file-read.d.ts +0 -42
- package/dist/dashboard/file-read.d.ts.map +0 -1
- package/dist/dashboard/file-read.js +0 -69
- package/dist/dashboard/file-read.js.map +0 -1
- package/dist/dashboard/file-status.d.ts +0 -21
- package/dist/dashboard/file-status.d.ts.map +0 -1
- package/dist/dashboard/file-status.js +0 -37
- package/dist/dashboard/file-status.js.map +0 -1
- package/dist/dashboard/gh.d.ts +0 -131
- package/dist/dashboard/gh.d.ts.map +0 -1
- package/dist/dashboard/gh.js +0 -150
- package/dist/dashboard/gh.js.map +0 -1
- package/dist/dashboard/github.d.ts +0 -11
- package/dist/dashboard/github.d.ts.map +0 -1
- package/dist/dashboard/github.js +0 -33
- package/dist/dashboard/github.js.map +0 -1
- package/dist/dashboard/run-handoff.d.ts +0 -311
- package/dist/dashboard/run-handoff.d.ts.map +0 -1
- package/dist/dashboard/run-handoff.js +0 -485
- package/dist/dashboard/run-handoff.js.map +0 -1
- package/dist/dashboard/scheduler-state.d.ts +0 -73
- package/dist/dashboard/scheduler-state.d.ts.map +0 -1
- package/dist/dashboard/scheduler-state.js +0 -120
- package/dist/dashboard/scheduler-state.js.map +0 -1
- package/dist/dashboard/subagent-settings.d.ts +0 -26
- package/dist/dashboard/subagent-settings.d.ts.map +0 -1
- package/dist/dashboard/subagent-settings.js +0 -52
- package/dist/dashboard/subagent-settings.js.map +0 -1
- package/dist/dashboard/telefunc-serve.d.ts +0 -118
- package/dist/dashboard/telefunc-serve.d.ts.map +0 -1
- package/dist/dashboard/telefunc-serve.js +0 -108
- package/dist/dashboard/telefunc-serve.js.map +0 -1
- package/dist/dashboard/tickets.d.ts +0 -29
- package/dist/dashboard/tickets.d.ts.map +0 -1
- package/dist/dashboard/tickets.js +0 -38
- package/dist/dashboard/tickets.js.map +0 -1
- package/dist/dashboard/widget-serve.d.ts +0 -15
- package/dist/dashboard/widget-serve.d.ts.map +0 -1
- package/dist/dashboard/widget-serve.js +0 -45
- package/dist/dashboard/widget-serve.js.map +0 -1
- package/dist/dashboard-bundle/assets/main-B3HghPQy.css +0 -2
- package/dist/dashboard-client/assets/chunks/chunk-BF9pJudf.js +0 -4
- package/dist/dashboard-client/assets/entries/entry-client-routing.CT1e9F0o.js +0 -1
- package/dist/dashboard-client/assets/entries/pages_index.CkW5JQ8X.js +0 -428
- package/dist/dashboard-client/assets/static/layouts_tailwind-00e65532.8OjKGAbA.css +0 -2
- package/dist/dashboard-client/index.html +0 -27
- package/dist/dashboard-client/index.pageContext.json +0 -1
- package/dist/dashboard-client/logo-animated.svg +0 -34
- package/dist/dashboard-client/logo.svg +0 -16
- package/dist/dashboard-rpc/control.telefunc.d.ts +0 -176
- package/dist/dashboard-rpc/control.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/control.telefunc.js +0 -373
- package/dist/dashboard-rpc/control.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/devices.telefunc.d.ts +0 -9
- package/dist/dashboard-rpc/devices.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/devices.telefunc.js +0 -12
- package/dist/dashboard-rpc/devices.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/events.telefunc.d.ts +0 -36
- package/dist/dashboard-rpc/events.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/events.telefunc.js +0 -70
- package/dist/dashboard-rpc/events.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/preferences.telefunc.d.ts +0 -97
- package/dist/dashboard-rpc/preferences.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/preferences.telefunc.js +0 -157
- package/dist/dashboard-rpc/preferences.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/projects.telefunc.d.ts +0 -56
- package/dist/dashboard-rpc/projects.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/projects.telefunc.js +0 -96
- package/dist/dashboard-rpc/projects.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/quota.telefunc.d.ts +0 -40
- package/dist/dashboard-rpc/quota.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/quota.telefunc.js +0 -84
- package/dist/dashboard-rpc/quota.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/reads.telefunc.d.ts +0 -197
- package/dist/dashboard-rpc/reads.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/reads.telefunc.js +0 -403
- package/dist/dashboard-rpc/reads.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/register.d.ts +0 -18
- package/dist/dashboard-rpc/register.d.ts.map +0 -1
- package/dist/dashboard-rpc/register.js +0 -66
- package/dist/dashboard-rpc/register.js.map +0 -1
- package/dist/dashboard-rpc/relay-run.d.ts +0 -9
- package/dist/dashboard-rpc/relay-run.d.ts.map +0 -1
- package/dist/dashboard-rpc/relay-run.js +0 -21
- package/dist/dashboard-rpc/relay-run.js.map +0 -1
- package/dist/dashboard-rpc/stream-channel.d.ts +0 -23
- package/dist/dashboard-rpc/stream-channel.d.ts.map +0 -1
- package/dist/dashboard-rpc/stream-channel.js +0 -52
- package/dist/dashboard-rpc/stream-channel.js.map +0 -1
- package/dist/dashboard-rpc/subagents.d.ts +0 -12
- package/dist/dashboard-rpc/subagents.d.ts.map +0 -1
- package/dist/dashboard-rpc/subagents.js +0 -13
- package/dist/dashboard-rpc/subagents.js.map +0 -1
- package/dist/dashboard-rpc/widgets.d.ts +0 -33
- package/dist/dashboard-rpc/widgets.d.ts.map +0 -1
- package/dist/dashboard-rpc/widgets.js +0 -54
- package/dist/dashboard-rpc/widgets.js.map +0 -1
- package/dist/data-branch.d.ts +0 -120
- package/dist/data-branch.d.ts.map +0 -1
- package/dist/data-branch.js +0 -319
- package/dist/data-branch.js.map +0 -1
- package/dist/discord/bot.d.ts +0 -61
- package/dist/discord/bot.d.ts.map +0 -1
- package/dist/discord/bot.js +0 -94
- package/dist/discord/bot.js.map +0 -1
- package/dist/discord/gateway.d.ts +0 -137
- package/dist/discord/gateway.d.ts.map +0 -1
- package/dist/discord/gateway.js +0 -315
- package/dist/discord/gateway.js.map +0 -1
- package/dist/discord/live-run.d.ts +0 -31
- package/dist/discord/live-run.d.ts.map +0 -1
- package/dist/discord/live-run.js +0 -57
- package/dist/discord/live-run.js.map +0 -1
- package/dist/discord/reply-mirror.d.ts +0 -83
- package/dist/discord/reply-mirror.d.ts.map +0 -1
- package/dist/discord/reply-mirror.js +0 -84
- package/dist/discord/reply-mirror.js.map +0 -1
- package/dist/discord/rest.d.ts +0 -20
- package/dist/discord/rest.d.ts.map +0 -1
- package/dist/discord/rest.js +0 -41
- package/dist/discord/rest.js.map +0 -1
- package/dist/discord/routing.d.ts +0 -81
- package/dist/discord/routing.d.ts.map +0 -1
- package/dist/discord/routing.js +0 -91
- package/dist/discord/routing.js.map +0 -1
- package/dist/discord-credentials-store.d.ts +0 -14
- package/dist/discord-credentials-store.d.ts.map +0 -1
- package/dist/discord-credentials-store.js +0 -53
- package/dist/discord-credentials-store.js.map +0 -1
- package/dist/discord-credentials.d.ts +0 -80
- package/dist/discord-credentials.d.ts.map +0 -1
- package/dist/discord-credentials.js +0 -55
- package/dist/discord-credentials.js.map +0 -1
- package/dist/driver/actions-zip.d.ts +0 -2
- package/dist/driver/actions-zip.d.ts.map +0 -1
- package/dist/driver/actions-zip.js +0 -70
- package/dist/driver/actions-zip.js.map +0 -1
- package/dist/driver/actions.d.ts +0 -130
- package/dist/driver/actions.d.ts.map +0 -1
- package/dist/driver/actions.js +0 -261
- package/dist/driver/actions.js.map +0 -1
- package/dist/driver/agent-cli.d.ts +0 -57
- package/dist/driver/agent-cli.d.ts.map +0 -1
- package/dist/driver/agent-cli.js +0 -134
- package/dist/driver/agent-cli.js.map +0 -1
- package/dist/driver/child-registry.d.ts +0 -25
- package/dist/driver/child-registry.d.ts.map +0 -1
- package/dist/driver/child-registry.js +0 -53
- package/dist/driver/child-registry.js.map +0 -1
- package/dist/driver/claude-code-quota.d.ts +0 -40
- package/dist/driver/claude-code-quota.d.ts.map +0 -1
- package/dist/driver/claude-code-quota.js +0 -144
- package/dist/driver/claude-code-quota.js.map +0 -1
- package/dist/driver/claude-code.d.ts +0 -104
- package/dist/driver/claude-code.d.ts.map +0 -1
- package/dist/driver/claude-code.js +0 -314
- package/dist/driver/claude-code.js.map +0 -1
- package/dist/driver/cli-session.d.ts +0 -57
- package/dist/driver/cli-session.d.ts.map +0 -1
- package/dist/driver/cli-session.js +0 -134
- package/dist/driver/cli-session.js.map +0 -1
- package/dist/driver/cloud.d.ts +0 -109
- package/dist/driver/cloud.d.ts.map +0 -1
- package/dist/driver/cloud.js +0 -232
- package/dist/driver/cloud.js.map +0 -1
- package/dist/driver/codex.d.ts +0 -99
- package/dist/driver/codex.d.ts.map +0 -1
- package/dist/driver/codex.js +0 -190
- package/dist/driver/codex.js.map +0 -1
- package/dist/driver/fake.d.ts +0 -54
- package/dist/driver/fake.d.ts.map +0 -1
- package/dist/driver/fake.js +0 -73
- package/dist/driver/fake.js.map +0 -1
- package/dist/driver/index.d.ts +0 -10
- package/dist/driver/index.d.ts.map +0 -1
- package/dist/driver/index.js +0 -14
- package/dist/driver/index.js.map +0 -1
- package/dist/driver/session-support.d.ts +0 -14
- package/dist/driver/session-support.d.ts.map +0 -1
- package/dist/driver/session-support.js +0 -37
- package/dist/driver/session-support.js.map +0 -1
- package/dist/driver/types.d.ts +0 -310
- package/dist/driver/types.d.ts.map +0 -1
- package/dist/driver/types.js +0 -5
- package/dist/driver/types.js.map +0 -1
- package/dist/driver-cli.d.ts +0 -61
- package/dist/driver-cli.d.ts.map +0 -1
- package/dist/driver-cli.js +0 -66
- package/dist/driver-cli.js.map +0 -1
- package/dist/fake-script.d.ts +0 -15
- package/dist/fake-script.d.ts.map +0 -1
- package/dist/fake-script.js +0 -58
- package/dist/fake-script.js.map +0 -1
- package/dist/framework-dir.d.ts.map +0 -1
- package/dist/framework-dir.js.map +0 -1
- package/dist/framework-gitignore.d.ts +0 -12
- package/dist/framework-gitignore.d.ts.map +0 -1
- package/dist/framework-gitignore.js +0 -19
- package/dist/framework-gitignore.js.map +0 -1
- package/dist/gate-keepalive.d.ts +0 -47
- package/dist/gate-keepalive.d.ts.map +0 -1
- package/dist/gate-keepalive.js +0 -62
- package/dist/gate-keepalive.js.map +0 -1
- package/dist/git-exclude.d.ts +0 -11
- package/dist/git-exclude.d.ts.map +0 -1
- package/dist/git-exclude.js +0 -23
- package/dist/git-exclude.js.map +0 -1
- package/dist/handoff-level.d.ts +0 -56
- package/dist/handoff-level.d.ts.map +0 -1
- package/dist/handoff-level.js +0 -62
- package/dist/handoff-level.js.map +0 -1
- package/dist/host-exec.d.ts +0 -21
- package/dist/host-exec.d.ts.map +0 -1
- package/dist/host-exec.js +0 -30
- package/dist/host-exec.js.map +0 -1
- package/dist/layout.d.ts +0 -41
- package/dist/layout.d.ts.map +0 -1
- package/dist/layout.js +0 -69
- package/dist/layout.js.map +0 -1
- package/dist/logs.d.ts +0 -73
- package/dist/logs.d.ts.map +0 -1
- package/dist/logs.js +0 -218
- package/dist/logs.js.map +0 -1
- package/dist/maintenance.d.ts +0 -90
- package/dist/maintenance.d.ts.map +0 -1
- package/dist/maintenance.js +0 -141
- package/dist/maintenance.js.map +0 -1
- package/dist/merged-worktrees.d.ts +0 -74
- package/dist/merged-worktrees.d.ts.map +0 -1
- package/dist/merged-worktrees.js +0 -84
- package/dist/merged-worktrees.js.map +0 -1
- package/dist/module-types/src/dashboard/agent-tree.d.ts +0 -105
- package/dist/module-types/src/dashboard/file-diff.d.ts +0 -66
- package/dist/module-types/src/dashboard/file-read.d.ts +0 -41
- package/dist/module-types/src/dashboard/file-status.d.ts +0 -20
- package/dist/module-types/src/dashboard/scheduler-state.d.ts +0 -72
- package/dist/module-types/src/dashboard/subagent-settings.d.ts +0 -25
- package/dist/module-types/src/dashboard-rpc/subagents.d.ts +0 -11
- package/dist/module-types/src/framework-gitignore.d.ts +0 -11
- package/dist/module-types/src/subagent-settings.d.ts +0 -26
- package/dist/on-before-mergeable-prompt.d.ts +0 -32
- package/dist/on-before-mergeable-prompt.d.ts.map +0 -1
- package/dist/on-before-mergeable-prompt.js +0 -26
- package/dist/on-before-mergeable-prompt.js.map +0 -1
- package/dist/planned-quick-wins.d.ts +0 -102
- package/dist/planned-quick-wins.d.ts.map +0 -1
- package/dist/planned-quick-wins.js +0 -171
- package/dist/planned-quick-wins.js.map +0 -1
- package/dist/preflight.d.ts +0 -77
- package/dist/preflight.d.ts.map +0 -1
- package/dist/preflight.js +0 -91
- package/dist/preflight.js.map +0 -1
- package/dist/preset-catalog.d.ts +0 -98
- package/dist/preset-catalog.d.ts.map +0 -1
- package/dist/preset-catalog.js +0 -129
- package/dist/preset-catalog.js.map +0 -1
- package/dist/preset-prompt.d.ts +0 -81
- package/dist/preset-prompt.d.ts.map +0 -1
- package/dist/preset-prompt.js +0 -51
- package/dist/preset-prompt.js.map +0 -1
- package/dist/preset-registry.d.ts +0 -32
- package/dist/preset-registry.d.ts.map +0 -1
- package/dist/preset-registry.js +0 -35
- package/dist/preset-registry.js.map +0 -1
- package/dist/presets.d.ts +0 -20
- package/dist/presets.d.ts.map +0 -1
- package/dist/presets.js +0 -33
- package/dist/presets.js.map +0 -1
- package/dist/preview-runtime.d.ts +0 -33
- package/dist/preview-runtime.d.ts.map +0 -1
- package/dist/preview-runtime.js +0 -96
- package/dist/preview-runtime.js.map +0 -1
- package/dist/preview.d.ts +0 -78
- package/dist/preview.d.ts.map +0 -1
- package/dist/preview.js +0 -301
- package/dist/preview.js.map +0 -1
- package/dist/project-widgets.d.ts +0 -46
- package/dist/project-widgets.d.ts.map +0 -1
- package/dist/project-widgets.js +0 -93
- package/dist/project-widgets.js.map +0 -1
- package/dist/prompt-run.d.ts +0 -104
- package/dist/prompt-run.d.ts.map +0 -1
- package/dist/prompt-run.js +0 -112
- package/dist/prompt-run.js.map +0 -1
- package/dist/prompt-template.d.ts +0 -16
- package/dist/prompt-template.d.ts.map +0 -1
- package/dist/prompt-template.js +0 -56
- package/dist/prompt-template.js.map +0 -1
- package/dist/prompts.generated.d.ts +0 -53
- package/dist/prompts.generated.d.ts.map +0 -1
- package/dist/prompts.generated.js +0 -55
- package/dist/prompts.generated.js.map +0 -1
- package/dist/queue-promote.d.ts +0 -70
- package/dist/queue-promote.d.ts.map +0 -1
- package/dist/queue-promote.js +0 -118
- package/dist/queue-promote.js.map +0 -1
- package/dist/relay.d.ts +0 -84
- package/dist/relay.d.ts.map +0 -1
- package/dist/relay.js +0 -199
- package/dist/relay.js.map +0 -1
- package/dist/repos-directory.d.ts +0 -19
- package/dist/repos-directory.d.ts.map +0 -1
- package/dist/repos-directory.js +0 -23
- package/dist/repos-directory.js.map +0 -1
- package/dist/retired-project-settings.d.ts +0 -43
- package/dist/retired-project-settings.d.ts.map +0 -1
- package/dist/retired-project-settings.js +0 -125
- package/dist/retired-project-settings.js.map +0 -1
- package/dist/routine-locks.d.ts +0 -53
- package/dist/routine-locks.d.ts.map +0 -1
- package/dist/routine-locks.js +0 -125
- package/dist/routine-locks.js.map +0 -1
- package/dist/run-driver.d.ts +0 -26
- package/dist/run-driver.d.ts.map +0 -1
- package/dist/run-driver.js +0 -17
- package/dist/run-driver.js.map +0 -1
- package/dist/run-locks.d.ts +0 -3
- package/dist/run-locks.d.ts.map +0 -1
- package/dist/run-locks.js +0 -39
- package/dist/run-locks.js.map +0 -1
- package/dist/run-messages.d.ts +0 -64
- package/dist/run-messages.d.ts.map +0 -1
- package/dist/run-messages.js +0 -76
- package/dist/run-messages.js.map +0 -1
- package/dist/run-options.d.ts +0 -53
- package/dist/run-options.d.ts.map +0 -1
- package/dist/run-options.js +0 -110
- package/dist/run-options.js.map +0 -1
- package/dist/run-telemetry.d.ts +0 -115
- package/dist/run-telemetry.d.ts.map +0 -1
- package/dist/run-telemetry.js +0 -137
- package/dist/run-telemetry.js.map +0 -1
- package/dist/run-view.d.ts +0 -109
- package/dist/run-view.d.ts.map +0 -1
- package/dist/run-view.js +0 -118
- package/dist/run-view.js.map +0 -1
- package/dist/run.d.ts +0 -261
- package/dist/run.d.ts.map +0 -1
- package/dist/run.js +0 -420
- package/dist/run.js.map +0 -1
- package/dist/runtime-keys.d.ts +0 -17
- package/dist/runtime-keys.d.ts.map +0 -1
- package/dist/runtime-keys.js +0 -17
- package/dist/runtime-keys.js.map +0 -1
- package/dist/sandbox.d.ts +0 -27
- package/dist/sandbox.d.ts.map +0 -1
- package/dist/sandbox.js +0 -63
- package/dist/sandbox.js.map +0 -1
- package/dist/session-link.d.ts +0 -19
- package/dist/session-link.d.ts.map +0 -1
- package/dist/session-link.js +0 -26
- package/dist/session-link.js.map +0 -1
- package/dist/sessions.d.ts +0 -77
- package/dist/sessions.d.ts.map +0 -1
- package/dist/sessions.js +0 -146
- package/dist/sessions.js.map +0 -1
- package/dist/spike-locks.d.ts +0 -75
- package/dist/spike-locks.d.ts.map +0 -1
- package/dist/spike-locks.js +0 -208
- package/dist/spike-locks.js.map +0 -1
- package/dist/stale-branch.d.ts +0 -21
- package/dist/stale-branch.d.ts.map +0 -1
- package/dist/stale-branch.js +0 -32
- package/dist/stale-branch.js.map +0 -1
- package/dist/steps.d.ts +0 -9
- package/dist/steps.d.ts.map +0 -1
- package/dist/steps.js +0 -13
- package/dist/steps.js.map +0 -1
- package/dist/store/forge.d.ts +0 -110
- package/dist/store/forge.d.ts.map +0 -1
- package/dist/store/forge.js +0 -97
- package/dist/store/forge.js.map +0 -1
- package/dist/store/run-checkout.d.ts +0 -33
- package/dist/store/run-checkout.d.ts.map +0 -1
- package/dist/store/run-checkout.js +0 -59
- package/dist/store/run-checkout.js.map +0 -1
- package/dist/store/run-store.d.ts +0 -501
- package/dist/store/run-store.d.ts.map +0 -1
- package/dist/store/run-store.js +0 -806
- package/dist/store/run-store.js.map +0 -1
- package/dist/store/suspend.d.ts +0 -38
- package/dist/store/suspend.d.ts.map +0 -1
- package/dist/store/suspend.js +0 -45
- package/dist/store/suspend.js.map +0 -1
- package/dist/store/worktree-deps.d.ts +0 -30
- package/dist/store/worktree-deps.d.ts.map +0 -1
- package/dist/store/worktree-deps.js +0 -115
- package/dist/store/worktree-deps.js.map +0 -1
- package/dist/store/worktree.d.ts +0 -194
- package/dist/store/worktree.d.ts.map +0 -1
- package/dist/store/worktree.js +0 -331
- package/dist/store/worktree.js.map +0 -1
- package/dist/subagent-settings.d.ts +0 -27
- package/dist/subagent-settings.d.ts.map +0 -1
- package/dist/subagent-settings.js +0 -35
- package/dist/subagent-settings.js.map +0 -1
- package/dist/system-prompt-file.d.ts +0 -18
- package/dist/system-prompt-file.d.ts.map +0 -1
- package/dist/system-prompt-file.js +0 -28
- package/dist/system-prompt-file.js.map +0 -1
- package/dist/system-prompt.d.ts +0 -148
- package/dist/system-prompt.d.ts.map +0 -1
- package/dist/system-prompt.js +0 -170
- package/dist/system-prompt.js.map +0 -1
- package/dist/target-driver.d.ts +0 -28
- package/dist/target-driver.d.ts.map +0 -1
- package/dist/target-driver.js +0 -18
- package/dist/target-driver.js.map +0 -1
- package/dist/ticket-locks.d.ts +0 -61
- package/dist/ticket-locks.d.ts.map +0 -1
- package/dist/ticket-locks.js +0 -137
- package/dist/ticket-locks.js.map +0 -1
- package/dist/tickets-file.d.ts +0 -7
- package/dist/tickets-file.d.ts.map +0 -1
- package/dist/tickets-file.js +0 -21
- package/dist/tickets-file.js.map +0 -1
- package/dist/tickets.d.ts +0 -18
- package/dist/tickets.d.ts.map +0 -1
- package/dist/tickets.js +0 -23
- package/dist/tickets.js.map +0 -1
- package/dist/todo-loop.d.ts +0 -110
- package/dist/todo-loop.d.ts.map +0 -1
- package/dist/todo-loop.js +0 -175
- package/dist/todo-loop.js.map +0 -1
- package/dist/turn-gate.d.ts +0 -144
- package/dist/turn-gate.d.ts.map +0 -1
- package/dist/turn-gate.js +0 -217
- package/dist/turn-gate.js.map +0 -1
- package/dist/usage.d.ts +0 -32
- package/dist/usage.d.ts.map +0 -1
- package/dist/usage.js +0 -46
- package/dist/usage.js.map +0 -1
- package/dist/widget-types/dashboard/components/LinkActions.d.ts +0 -26
- package/dist/widget-types/dashboard/components/Markdown.d.ts +0 -4
- package/dist/widget-types/dashboard/components/StartAgentButton.d.ts +0 -39
- package/dist/widget-types/dashboard/components/ui/badge.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/button.d.ts +0 -10
- package/dist/widget-types/dashboard/components/ui/card.d.ts +0 -5
- package/dist/widget-types/dashboard/components/ui/checkbox.d.ts +0 -7
- package/dist/widget-types/dashboard/components/ui/dropdown-menu.d.ts +0 -16
- package/dist/widget-types/dashboard/components/ui/input.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/option-label.d.ts +0 -4
- package/dist/widget-types/dashboard/components/ui/popover.d.ts +0 -8
- package/dist/widget-types/dashboard/components/ui/scroll-area.d.ts +0 -10
- package/dist/widget-types/dashboard/components/ui/separator.d.ts +0 -3
- package/dist/widget-types/dashboard/components/ui/skeleton.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/slider.d.ts +0 -9
- package/dist/widget-types/dashboard/components/ui/tooltip.d.ts +0 -11
- package/dist/widget-types/dashboard/lib/draft-handoff.d.ts +0 -15
- package/dist/widget-types/dashboard/lib/format-date.d.ts +0 -51
- package/dist/widget-types/dashboard/lib/host-services.d.ts +0 -12
- package/dist/widget-types/dashboard/lib/route.d.ts +0 -24
- package/dist/widget-types/dashboard/lib/rpc.d.ts +0 -31
- package/dist/widget-types/dashboard/lib/use-action.d.ts +0 -25
- package/dist/widget-types/dashboard/lib/use-async.d.ts +0 -39
- package/dist/widget-types/dashboard/lib/use-widgets.d.ts +0 -42
- package/dist/widget-types/dashboard/lib/utils.d.ts +0 -3
- package/dist/widget-types/dashboard/rpc/widgets.d.ts +0 -4
- package/dist/widget-types/dashboard/widget/index.d.ts +0 -207
- package/dist/widget-types/src/agent-id.d.ts +0 -12
- package/dist/widget-types/src/agent-locks.d.ts +0 -2
- package/dist/widget-types/src/agent-view.d.ts +0 -38
- package/dist/widget-types/src/bridge-browser.d.ts +0 -216
- package/dist/widget-types/src/browser-stream.d.ts +0 -19
- package/dist/widget-types/src/browser.d.ts +0 -15
- package/dist/widget-types/src/cli-exec.d.ts +0 -35
- package/dist/widget-types/src/cloud-run-state.d.ts +0 -26
- package/dist/widget-types/src/dashboard/activity.d.ts +0 -40
- package/dist/widget-types/src/dashboard/agent-handoff.d.ts +0 -211
- package/dist/widget-types/src/dashboard/agent-tree.d.ts +0 -105
- package/dist/widget-types/src/dashboard/bridge-endpoints.d.ts +0 -157
- package/dist/widget-types/src/dashboard/bridge-question.d.ts +0 -32
- package/dist/widget-types/src/dashboard/bridge-store.d.ts +0 -178
- package/dist/widget-types/src/dashboard/cache.d.ts +0 -46
- package/dist/widget-types/src/dashboard/content-type.d.ts +0 -2
- package/dist/widget-types/src/dashboard/dashboard.d.ts +0 -37
- package/dist/widget-types/src/dashboard/discord-webhook.d.ts +0 -16
- package/dist/widget-types/src/dashboard/docs.d.ts +0 -38
- package/dist/widget-types/src/dashboard/file-diff.d.ts +0 -66
- package/dist/widget-types/src/dashboard/file-read.d.ts +0 -41
- package/dist/widget-types/src/dashboard/file-status.d.ts +0 -20
- package/dist/widget-types/src/dashboard/gh.d.ts +0 -130
- package/dist/widget-types/src/dashboard/git-status.d.ts +0 -32
- package/dist/widget-types/src/dashboard/github.d.ts +0 -10
- package/dist/widget-types/src/dashboard/http.d.ts +0 -28
- package/dist/widget-types/src/dashboard/interventions.d.ts +0 -66
- package/dist/widget-types/src/dashboard/keys.d.ts +0 -30
- package/dist/widget-types/src/dashboard/models.d.ts +0 -24
- package/dist/widget-types/src/dashboard/open-in-app.d.ts +0 -42
- package/dist/widget-types/src/dashboard/open-questions.d.ts +0 -52
- package/dist/widget-types/src/dashboard/overview.d.ts +0 -77
- package/dist/widget-types/src/dashboard/projects.d.ts +0 -89
- package/dist/widget-types/src/dashboard/pull-requests.d.ts +0 -126
- package/dist/widget-types/src/dashboard/queue.d.ts +0 -16
- package/dist/widget-types/src/dashboard/quota.d.ts +0 -59
- package/dist/widget-types/src/dashboard/remote-run.d.ts +0 -94
- package/dist/widget-types/src/dashboard/rpc-serve.d.ts +0 -102
- package/dist/widget-types/src/dashboard/run-inbox.d.ts +0 -30
- package/dist/widget-types/src/dashboard/scheduler-state.d.ts +0 -64
- package/dist/widget-types/src/dashboard/tickets.d.ts +0 -28
- package/dist/widget-types/src/dashboard/types.d.ts +0 -99
- package/dist/widget-types/src/dashboard/widget-serve.d.ts +0 -14
- package/dist/widget-types/src/dashboard-rpc/context.d.ts +0 -53
- package/dist/widget-types/src/dashboard-rpc/control.d.ts +0 -108
- package/dist/widget-types/src/dashboard-rpc/devices.d.ts +0 -8
- package/dist/widget-types/src/dashboard-rpc/events-tail.d.ts +0 -53
- package/dist/widget-types/src/dashboard-rpc/events.d.ts +0 -29
- package/dist/widget-types/src/dashboard-rpc/index.d.ts +0 -28
- package/dist/widget-types/src/dashboard-rpc/models.d.ts +0 -3
- package/dist/widget-types/src/dashboard-rpc/preferences.d.ts +0 -40
- package/dist/widget-types/src/dashboard-rpc/projects.d.ts +0 -54
- package/dist/widget-types/src/dashboard-rpc/quota.d.ts +0 -26
- package/dist/widget-types/src/dashboard-rpc/reads.d.ts +0 -227
- package/dist/widget-types/src/dashboard-rpc/relay-agent.d.ts +0 -8
- package/dist/widget-types/src/dashboard-rpc/stream-forward.d.ts +0 -16
- package/dist/widget-types/src/dashboard-rpc/widgets.d.ts +0 -32
- package/dist/widget-types/src/discord-credentials.d.ts +0 -79
- package/dist/widget-types/src/driver-names.d.ts +0 -21
- package/dist/widget-types/src/error-message.d.ts +0 -7
- package/dist/widget-types/src/event-stream.d.ts +0 -32
- package/dist/widget-types/src/events.d.ts +0 -235
- package/dist/widget-types/src/framework-dir.d.ts +0 -10
- package/dist/widget-types/src/framework-gitignore.d.ts +0 -11
- package/dist/widget-types/src/index.d.ts +0 -42
- package/dist/widget-types/src/jsonl-tail.d.ts +0 -54
- package/dist/widget-types/src/loopback-host.d.ts +0 -19
- package/dist/widget-types/src/node-fs.d.ts +0 -32
- package/dist/widget-types/src/open-choices.d.ts +0 -14
- package/dist/widget-types/src/pick-directory.d.ts +0 -29
- package/dist/widget-types/src/preference-defaults.d.ts +0 -53
- package/dist/widget-types/src/project-commands.d.ts +0 -23
- package/dist/widget-types/src/project-errors.d.ts +0 -43
- package/dist/widget-types/src/project-hooks.d.ts +0 -133
- package/dist/widget-types/src/project-presets.d.ts +0 -29
- package/dist/widget-types/src/project-widgets.d.ts +0 -45
- package/dist/widget-types/src/project.d.ts +0 -28
- package/dist/widget-types/src/quota-boundary.d.ts +0 -115
- package/dist/widget-types/src/quota-poller.d.ts +0 -82
- package/dist/widget-types/src/registry.d.ts +0 -210
- package/dist/widget-types/src/store/agent-checkout.d.ts +0 -46
- package/dist/widget-types/src/store/agent-store.d.ts +0 -237
- package/dist/widget-types/src/store/branches.d.ts +0 -133
- package/dist/widget-types/src/store/forge.d.ts +0 -109
- package/dist/widget-types/src/store/git-host.d.ts +0 -111
- package/dist/widget-types/src/store/index.d.ts +0 -9
- package/dist/widget-types/src/store/provided.d.ts +0 -16
- package/dist/widget-types/src/store/queue.d.ts +0 -45
- package/dist/widget-types/src/store/run-record.d.ts +0 -21
- package/dist/widget-types/src/store/runs.d.ts +0 -101
- package/dist/widget-types/src/store/tickets.d.ts +0 -72
- package/dist/widget-types/src/tickets.d.ts +0 -17
- package/dist/widget-types/src/worktrees.d.ts +0 -89
- package/dist/widget.css +0 -50
|
@@ -4,10 +4,10 @@ import { type Cached } from './cache.js';
|
|
|
4
4
|
* The pull requests the dashboard reads (#1820), in one place, all through the project's git host
|
|
5
5
|
* provider (`../store/git-host.ts`): a branch's request, a branch's whole request history, and the
|
|
6
6
|
* project's open requests. Reads only: opening and landing are `agent-handoff.ts`'s, through the
|
|
7
|
-
* same provider.
|
|
7
|
+
* same provider. OpenAgent runs no git host tool; a project with no git host package has no pull
|
|
8
8
|
* requests, and every read here answers "none" for it.
|
|
9
9
|
*
|
|
10
|
-
* The shapes are
|
|
10
|
+
* The shapes are OpenAgent's own ({@link LinkedPr}, {@link OpenPr}), copied out of what the
|
|
11
11
|
* provider answers rather than passed through, so a field a provider adds cannot leak into what
|
|
12
12
|
* callers store.
|
|
13
13
|
*/
|
|
@@ -36,7 +36,7 @@ export interface OpenPr {
|
|
|
36
36
|
/**
|
|
37
37
|
* Draft PRs are generally left off the queue: a draft is not asking for review.
|
|
38
38
|
*
|
|
39
|
-
* The exception is a draft
|
|
39
|
+
* The exception is a draft OpenAgent opened for itself (#1102), which {@link headRefName}
|
|
40
40
|
* is what tells apart.
|
|
41
41
|
*/
|
|
42
42
|
isDraft: boolean;
|
|
@@ -57,7 +57,7 @@ export type PrLookup = (cwd: string, branch?: string) => Promise<LinkedPr | unde
|
|
|
57
57
|
export type BranchPrLookup = (cwd: string, branch: string) => Promise<LinkedPr | undefined>;
|
|
58
58
|
/** Lists a checkout's open PRs; rejects when the git host could not answer. */
|
|
59
59
|
export type PrLister = (cwd: string) => Promise<OpenPr[]>;
|
|
60
|
-
/** A provider's request as
|
|
60
|
+
/** A provider's request as OpenAgent keeps it: the state upper-cased, the head as the request's commit. */
|
|
61
61
|
export declare function linkedPrOf(request: GitHostRequest): LinkedPr;
|
|
62
62
|
/** A provider's open request as the interventions queue keeps it. */
|
|
63
63
|
export declare function openPrOf(request: GitHostRequest): OpenPr;
|
|
@@ -65,7 +65,7 @@ export declare function openPrOf(request: GitHostRequest): OpenPr;
|
|
|
65
65
|
* Every PR a branch name has ever had, newest first (#1251).
|
|
66
66
|
*
|
|
67
67
|
* The newest request for a head *in any state* is what a single view would answer, so a session
|
|
68
|
-
* whose prompt pins its branch name (`
|
|
68
|
+
* whose prompt pins its branch name (`openagent/triage-quick`) inherits a predecessor's
|
|
69
69
|
* merged PR as its own. The list form keeps the whole history so {@link pickAgentPr} can decide
|
|
70
70
|
* which entry, if any, belongs to the agent asking. Resolves `[]` when the project has no git host or
|
|
71
71
|
* the git host could not answer — indistinguishable from "no PRs", which is what every caller would do
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventStream } from '../event-stream.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OpenAgentEvent } from '../events.js';
|
|
3
3
|
import type { AgentMeta } from '../store/index.js';
|
|
4
4
|
import type { StartAgentOptions, StartAgentResult } from './types.js';
|
|
5
5
|
/**
|
|
@@ -9,7 +9,7 @@ import type { StartAgentOptions, StartAgentResult } from './types.js';
|
|
|
9
9
|
* {@link EventStream}, which the dashboard reads over its normal same-origin `onEvents` channel. So
|
|
10
10
|
* the browser never talks cross-origin and the token never leaves the two daemons (issue #1067 (b)).
|
|
11
11
|
*
|
|
12
|
-
* Authentication is the shared-token cookie (#1051), sent daemon-to-daemon: `Cookie:
|
|
12
|
+
* Authentication is the shared-token cookie (#1051), sent daemon-to-daemon: `Cookie: oa_daemon=<token>` with no
|
|
13
13
|
* `Origin` header. The remote's guard admits a matching cookie without the browser-only `?token=`
|
|
14
14
|
* 302, and its `/_rpc` CSRF check (absent Origin passes) is not even on these raw routes.
|
|
15
15
|
*/
|
|
@@ -50,7 +50,7 @@ export declare function relayRpc(target: RemoteTarget, fn: string, args: unknown
|
|
|
50
50
|
* cleanly rather than as an error, so the dashboard sees a normal `done`, not a lost connection.
|
|
51
51
|
* Returns a cancel function; calling it aborts the fetch and releases the reader.
|
|
52
52
|
*/
|
|
53
|
-
export declare function streamRemoteEvents(target: RemoteTarget, agentId: string, onEvent: (event:
|
|
53
|
+
export declare function streamRemoteEvents(target: RemoteTarget, agentId: string, onEvent: (event: OpenAgentEvent) => void, onEnd?: () => void): () => void;
|
|
54
54
|
/**
|
|
55
55
|
* The local daemon's live relayed runs (#1067), keyed by the remote agent id. Registering an agent opens
|
|
56
56
|
* an {@link EventStream} the dashboard reads through `onEvents`, fed by {@link streamRemoteEvents}
|
|
@@ -72,7 +72,7 @@ export declare class RelayedAgents {
|
|
|
72
72
|
/** Open a local stream for a remote agent and start pumping the remote's events into it. */
|
|
73
73
|
register(agentId: string, target: RemoteTarget, meta: AgentMeta, projectId: string): void;
|
|
74
74
|
/** The live event stream for a relayed agent, or undefined when this daemon is not relaying it. */
|
|
75
|
-
get(agentId: string | undefined): EventStream<
|
|
75
|
+
get(agentId: string | undefined): EventStream<OpenAgentEvent> | undefined;
|
|
76
76
|
/** The device a relayed agent runs on, kept past the event stream so post-run push/PR still reach it. */
|
|
77
77
|
target(agentId: string | undefined): RemoteTarget | undefined;
|
|
78
78
|
/** A project's relayed run stubs (#1077), newest-first, so `onAgents` can surface them in the list. */
|
|
@@ -91,4 +91,4 @@ export declare class RelayedAgents {
|
|
|
91
91
|
* card would say, kept here because that card is on the device. The events are the ones a run's
|
|
92
92
|
* diary yields: the agent's session id, its cost, its end.
|
|
93
93
|
*/
|
|
94
|
-
export declare function foldRelayedEvent(meta: AgentMeta, event:
|
|
94
|
+
export declare function foldRelayedEvent(meta: AgentMeta, event: OpenAgentEvent, at: string): AgentMeta;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OpenAgentEvent } from '../events.js';
|
|
3
3
|
import type { PreferencesStore } from '../registry.js';
|
|
4
4
|
import type { QuotaSource } from './quota.js';
|
|
5
5
|
import type { ModelsSource } from './models.js';
|
|
6
6
|
import type { BridgeBrowserOwner } from '../bridge-browser.js';
|
|
7
7
|
import type { ProjectErrorsReader } from '../project-errors.js';
|
|
8
|
-
import type { AddProjectResult, StartAgentOptions, StartAgentResult } from './types.js';
|
|
8
|
+
import type { AddProjectResult, RemoveProjectResult, StartAgentOptions, StartAgentResult } from './types.js';
|
|
9
9
|
import type { AgentMeta } from '../store/index.js';
|
|
10
10
|
/** Wired by the daemon so `sendStart` can reach the daemon's own `startAgent` closure. */
|
|
11
11
|
export type StartAgentHandler = (prompt: string, options: StartAgentOptions, projectId?: string) => StartAgentResult | Promise<StartAgentResult>;
|
|
12
12
|
/** Wired by the daemon so `sendAddProject` can install + register a repo (#433). */
|
|
13
|
-
export type AddProjectHandler = (path: string) => AddProjectResult | Promise<AddProjectResult>;
|
|
13
|
+
export type AddProjectHandler = (path: string, share: boolean) => AddProjectResult | Promise<AddProjectResult>;
|
|
14
|
+
/** Wired by the daemon so `sendRemoveProject` can take a project off the list, by its id, and with `files` remove what OpenAgent left in its folder. */
|
|
15
|
+
export type RemoveProjectHandler = (projectId: string, files: boolean) => RemoveProjectResult | Promise<RemoveProjectResult>;
|
|
14
16
|
/** Resolve an agent to its live event stream: the relay feeds `onEvents` from its own in-memory stream
|
|
15
17
|
* rather than a file on disk (#426), and the daemon feeds an agent it is relaying from a device (#1067).
|
|
16
18
|
* Returns undefined when there is no in-memory stream, so `onEvents` falls back to tailing the log. */
|
|
17
|
-
export type EventsSource = (projectId: string, agentId?: string) => AsyncIterable<
|
|
19
|
+
export type EventsSource = (projectId: string, agentId?: string) => AsyncIterable<OpenAgentEvent> | undefined;
|
|
18
20
|
/** Look up the device a relayed agent (#1067) executes on, or undefined for an ordinary local agent. The
|
|
19
21
|
* daemon wires this from its live relayed-agent map; a run-scoped RPC uses it to forward a remote agent's
|
|
20
22
|
* read/steer/handoff to that device instead of resolving a (nonexistent) local checkout. */
|
|
@@ -37,6 +39,7 @@ export interface RemoteAgents {
|
|
|
37
39
|
export interface DashboardContext {
|
|
38
40
|
startAgent: StartAgentHandler;
|
|
39
41
|
addProject: AddProjectHandler;
|
|
42
|
+
removeProject: RemoveProjectHandler;
|
|
40
43
|
/** The in-memory event stream for an agent relayed from a connected device (#1067), else undefined. */
|
|
41
44
|
eventsSource: EventsSource;
|
|
42
45
|
/** The relayed-agent lookup (#1067 slice 2), so a run-scoped RPC can tell a local agent from one
|
|
@@ -3,10 +3,10 @@ import { type InboxLine } from '@openagt/agent-driver';
|
|
|
3
3
|
* What a person says to a run (#1774): their own words, or their answer to the question the run
|
|
4
4
|
* stopped on. The daemon runs no agent, so the line reaches the run through what the run's tool
|
|
5
5
|
* reads: the inbox file in the run's checkout while the run works, the project's `resume` hook
|
|
6
|
-
* line once it has ended.
|
|
6
|
+
* line once it has ended. OpenAgent names no tool in either.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* The inbox of a run, in its checkout's `.
|
|
9
|
+
* The inbox of a run, in its checkout's `.openagent/`: the file agent-driver's session reads
|
|
10
10
|
* when a turn ends, one JSON line per message or answer. The run's tool hands the session the
|
|
11
11
|
* same path.
|
|
12
12
|
*/
|
|
@@ -14,10 +14,36 @@ export type DeleteAgentResult = {
|
|
|
14
14
|
ok: false;
|
|
15
15
|
error: string;
|
|
16
16
|
};
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The outcome of an add-project attempt (#396): registered, or was already, or why not.
|
|
19
|
+
* `noRemote` says the person asked to share the agents' records and the repository has no remote
|
|
20
|
+
* to share with: they are kept on this machine.
|
|
21
|
+
*/
|
|
18
22
|
export type AddProjectResult = {
|
|
19
23
|
ok: true;
|
|
20
24
|
alreadyActivated: boolean;
|
|
25
|
+
noRemote?: true;
|
|
26
|
+
} | {
|
|
27
|
+
ok: false;
|
|
28
|
+
error: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* What removing OpenAgent's files from a project's folder did: what went, what stayed with the
|
|
32
|
+
* reason, and what could not be done, each line in words for a person. Paths are from the
|
|
33
|
+
* project's root.
|
|
34
|
+
*/
|
|
35
|
+
export interface CleanupReport {
|
|
36
|
+
removed: string[];
|
|
37
|
+
kept: {
|
|
38
|
+
path: string;
|
|
39
|
+
reason: string;
|
|
40
|
+
}[];
|
|
41
|
+
failed: string[];
|
|
42
|
+
}
|
|
43
|
+
/** The outcome of removing a project from the list: gone from it, with what the clean-up did when one was asked for, or why not. */
|
|
44
|
+
export type RemoveProjectResult = {
|
|
45
|
+
ok: true;
|
|
46
|
+
cleanup?: CleanupReport;
|
|
21
47
|
} | {
|
|
22
48
|
ok: false;
|
|
23
49
|
error: string;
|
|
@@ -44,7 +70,7 @@ export interface StartAgentOptions {
|
|
|
44
70
|
model?: string;
|
|
45
71
|
/** Which coding agent the run is on: `claude-code` or `codex`. */
|
|
46
72
|
driver?: string;
|
|
47
|
-
/** The person's saved pick of how far the run takes its work when the agent finishes. Absent, none is saved: the daemon starts the run
|
|
73
|
+
/** The person's saved pick of how far the run takes its work when the agent finishes. Absent, none is saved: the daemon starts the run at `commit`. A saved pick the project is not offered is held to the furthest the project goes with no pull request. */
|
|
48
74
|
publish?: PublishPick;
|
|
49
75
|
/**
|
|
50
76
|
* The branch the agent's own branch starts from, as this machine has it, commits that are not
|
|
@@ -59,7 +85,7 @@ export interface StartAgentOptions {
|
|
|
59
85
|
then?: string;
|
|
60
86
|
/**
|
|
61
87
|
* Run this session on a connected device (#1067): the local daemon relays the start to the remote
|
|
62
|
-
* daemon at `url` (authenticating with `token` as the `
|
|
88
|
+
* daemon at `url` (authenticating with `token` as the `oa_daemon` cookie) and streams its events
|
|
63
89
|
* back into the local agent view. The device `label` rides along (memory-only, like `url`/`token`) so
|
|
64
90
|
* the local session list + notice can show which device the agent is on after a reload (#1077).
|
|
65
91
|
* Memory-only relay config the dashboard sets at submit time from a saved device. NEVER persisted to
|
|
@@ -51,3 +51,5 @@ export declare function contextBridgeBrowser(): BridgeBrowserOwner;
|
|
|
51
51
|
export declare function contextStartAgent(): DashboardContext['startAgent'];
|
|
52
52
|
/** Install + register a repo (#433), which only the daemon can do. */
|
|
53
53
|
export declare function contextAddProject(): DashboardContext['addProject'];
|
|
54
|
+
/** Take a project off the list, which only the daemon can do: it runs the project's close hooks first. */
|
|
55
|
+
export declare function contextRemoveProject(): DashboardContext['removeProject'];
|
|
@@ -16,7 +16,7 @@ export declare function agentLockKey(cwd: string, agentId: string): string;
|
|
|
16
16
|
/**
|
|
17
17
|
* Stop a live agent (the Stop button): SIGINT to the process the run's own card names, when it is
|
|
18
18
|
* this machine's and alive. The card is the file the dashboard shows the run from, and its pid is
|
|
19
|
-
* whoever runs the agent;
|
|
19
|
+
* whoever runs the agent; OpenAgent names no tool. Nothing else: a run without a live pid
|
|
20
20
|
* here has nothing to stop.
|
|
21
21
|
*/
|
|
22
22
|
export declare function sendStop(projectId: string, agentId?: string): Promise<void>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OpenAgentEvent } from '../events.js';
|
|
2
2
|
/**
|
|
3
3
|
* The end-of-replay marker (#1383). A subscribe replays the whole log before following live,
|
|
4
4
|
* and without a boundary a reconnecting client cannot tell "replay still streaming" from "the
|
|
5
5
|
* log is genuinely this short" — so it blanked a populated feed and refilled it line by line.
|
|
6
6
|
* Sent once per subscription, after the on-disk replay is delivered. Wire-only: it is not a
|
|
7
|
-
* {@link
|
|
7
|
+
* {@link OpenAgentEvent}, is never written to any journal, and the client swallows it.
|
|
8
8
|
*/
|
|
9
9
|
export type StreamSync = {
|
|
10
10
|
kind: 'stream-sync';
|
|
@@ -19,7 +19,7 @@ export type PartialMessage = {
|
|
|
19
19
|
text: string;
|
|
20
20
|
};
|
|
21
21
|
/** What `onEvents` streams: the agent's events, plus the wire-only end-of-replay marker and partial message. */
|
|
22
|
-
export type LiveFeedEvent =
|
|
22
|
+
export type LiveFeedEvent = OpenAgentEvent | StreamSync | PartialMessage;
|
|
23
23
|
/**
|
|
24
24
|
* Follow one agent's events: `send` is called per event until the returned stop function runs.
|
|
25
25
|
* Returns undefined when there is nothing to stream (an unknown project), which the mount ends as
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { onAgents, onAgent, onAgentsDoing, onDocs, onQueue, onOverview, onRecentAgents, onInterventions, onOpenQuestions, onActivity, onDashboard, onGitHostHome, onRepositoryOffer, onGitStatus, onProjectFiles, onRetainedWorktrees, onAgentWorktree, onAgentHandoff, onBridgeQuestion, onBridgeStatus, onBridgeToken, onBridgeEvents, onBridgeAnswer, onBridgeBrowser } from './reads.js';
|
|
2
2
|
export { sendStop, sendChoice, sendBridgeAnswer, sendBridgeAnswerCancel, sendBridgeBrowser, sendMessage, sendStart, sendOpenInApp, sendRemoveWorktree, sendDeleteAgent, sendOpenPullRequest, sendPush, sendMergeBranch, sendMerge, sendCreateRepository } from './control.js';
|
|
3
3
|
export { streamAgentEvents, type LiveFeedEvent, type PartialMessage, type StreamSync } from './events.js';
|
|
4
|
-
export { onProjects, sendAddProject, sendPickProjectDirectory, onOnboarding, onCommands, onStartCheck, type ProjectLauncher } from './projects.js';
|
|
4
|
+
export { onProjects, sendAddProject, sendRemoveProject, onRecordsReach, sendShareRecords, sendPickProjectDirectory, onOnboarding, onCommands, onStartCheck, type ProjectLauncher } from './projects.js';
|
|
5
5
|
export { onPreferences, savePreferences, patchPreferences, onProjectPresets, saveProjectPresets, onEditors, type SavePreferencesResult, type PatchPreferencesResult, } from './preferences.js';
|
|
6
6
|
export { type EditorInfo } from '../dashboard/open-in-app.js';
|
|
7
7
|
export { onQuota } from './quota.js';
|
|
@@ -12,8 +12,9 @@ export interface DashboardModule {
|
|
|
12
12
|
projects: string[];
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Every module any registered project brings (#1774), one per package
|
|
16
|
-
*
|
|
15
|
+
* Every module any registered project brings (#1774), one per package, with the projects
|
|
16
|
+
* that have it: with no project picked the sidebar and the pages are every project's, and the
|
|
17
|
+
* dashboard narrows them itself to a picked project's. A package several projects install is loaded once, from
|
|
17
18
|
* the first of them in the registry's order; its page then reads each project through that
|
|
18
19
|
* project's own command. A project that cannot be read contributes nothing.
|
|
19
20
|
*/
|
|
@@ -22,14 +23,15 @@ export declare function onModules(): Promise<DashboardModule[]>;
|
|
|
22
23
|
* Run one of a module package's commands in one project and answer its JSON output: how a module
|
|
23
24
|
* reads (and changes) its own data. Refused for an unknown project and for a package that is not a
|
|
24
25
|
* module of that project, so a page can run only its own package's commands, never an arbitrary
|
|
25
|
-
* program. Once the command has run,
|
|
26
|
+
* program. Once the command has run, OpenAgent forgets what it had read of that project's
|
|
26
27
|
* provided data (its queue, its runs): the command may have written it, and the next read sees
|
|
27
28
|
* that at once instead of a cached copy.
|
|
28
29
|
*
|
|
29
30
|
* `acts` says the command is a module's action on the project (a link action), not a page's read:
|
|
30
|
-
*
|
|
31
|
-
* every minute, before forgetting — a
|
|
32
|
-
* origin, and this machine's copy would otherwise show the
|
|
31
|
+
* OpenAgent then also converges the project's data branch with origin, as its clock does
|
|
32
|
+
* every minute, before forgetting — in a project that shares its records a package's command
|
|
33
|
+
* writes as a remote writer, straight to origin, and this machine's copy would otherwise show the
|
|
34
|
+
* write only at the next sync.
|
|
33
35
|
*/
|
|
34
36
|
export declare function runModuleCommand(projectId: string, pkg: string, args: string[], command?: string, acts?: boolean): Promise<ModuleCommandResult>;
|
|
35
37
|
/**
|
|
@@ -28,13 +28,13 @@ export type PatchPreferencesResult<T> = {
|
|
|
28
28
|
*/
|
|
29
29
|
export declare function patchPreferences(patch: Preferences): Promise<PatchPreferencesResult<Preferences>>;
|
|
30
30
|
/**
|
|
31
|
-
* A project's shared custom presets (#1025), committed into its `.
|
|
31
|
+
* A project's shared custom presets (#1025), committed into its `.openagent/` so they travel
|
|
32
32
|
* with the repo — the team-shared counterpart to the user-tier {@link onPreferences} presets. Read
|
|
33
33
|
* from the project's own checkout, so this resolves the project id to its workspace path rather than
|
|
34
34
|
* touching the home registry. `[]` for an unknown project.
|
|
35
35
|
*/
|
|
36
36
|
export declare function onProjectPresets(projectId: string): Promise<CustomPreset[]>;
|
|
37
|
-
/** Persist a project's shared custom presets into its `.
|
|
37
|
+
/** Persist a project's shared custom presets into its `.openagent/` (#1025). */
|
|
38
38
|
export declare function saveProjectPresets(projectId: string, presets: CustomPreset[]): Promise<SavePreferencesResult>;
|
|
39
39
|
/** The editors installed on this server (#727), for the "Preferred editor" picker. */
|
|
40
40
|
export declare function onEditors(): Promise<EditorInfo[]>;
|
|
@@ -1,16 +1,42 @@
|
|
|
1
1
|
import { type ProjectCommand } from '../project-commands.js';
|
|
2
|
+
import { type BranchReach } from '@openagt/agent-data';
|
|
2
3
|
import { type StartReadiness } from '../project-hooks.js';
|
|
3
4
|
import { type PickDirectoryResult } from '../pick-directory.js';
|
|
4
5
|
import type { ProjectSummary } from '../dashboard/projects.js';
|
|
5
|
-
import type { AddProjectResult, OnboardingSuggestion } from '../dashboard/types.js';
|
|
6
|
+
import type { AddProjectResult, OnboardingSuggestion, RemoveProjectResult } from '../dashboard/types.js';
|
|
6
7
|
export declare function onProjects(): Promise<ProjectSummary[]>;
|
|
7
8
|
/**
|
|
8
9
|
* Add a project from the dashboard (#396/#433): install the repo and register it so it joins the
|
|
9
10
|
* Projects list. Like `sendStart` this needs the daemon (it spawns git + writes the shared
|
|
10
11
|
* registry), so it calls the daemon's own `addProject` closure off the wired dashboard context.
|
|
11
12
|
* Returns the daemon's {@link AddProjectResult}.
|
|
13
|
+
*
|
|
14
|
+
* `share` is the person's answer, asked before the add: whether the agents' records may go to the
|
|
15
|
+
* repository's remote. Nothing is pushed for a project added with `false`.
|
|
12
16
|
*/
|
|
13
|
-
export declare function sendAddProject(path: string): Promise<AddProjectResult>;
|
|
17
|
+
export declare function sendAddProject(path: string, share: boolean): Promise<AddProjectResult>;
|
|
18
|
+
/**
|
|
19
|
+
* Remove a project from the dashboard: it leaves the Projects list. Nothing in its folder is
|
|
20
|
+
* deleted unless `files` is true: then what OpenAgent left there is removed too, and the answer
|
|
21
|
+
* says what went and what stayed. Like `sendAddProject` this is the daemon's to do (it runs the project's close hooks and
|
|
22
|
+
* writes the shared registry), so it calls the daemon's own closure off the wired dashboard context.
|
|
23
|
+
* Addressed by id and not by path, so a project whose folder is gone can still be removed.
|
|
24
|
+
*/
|
|
25
|
+
export declare function sendRemoveProject(projectId: string, files: boolean): Promise<RemoveProjectResult>;
|
|
26
|
+
/** How far the project's records reach right now, read off its repository; `null` when the project is unknown here. */
|
|
27
|
+
export declare function onRecordsReach(projectId: string): Promise<BranchReach | null>;
|
|
28
|
+
/**
|
|
29
|
+
* The person's switch: share the project's records with its remote, or keep them on this machine.
|
|
30
|
+
* Turning it on sends what is there now, so a remote that refuses is said at once, and the switch
|
|
31
|
+
* goes back to off: the records stay where they were. A project with no remote has nothing to
|
|
32
|
+
* share with, and is refused.
|
|
33
|
+
*/
|
|
34
|
+
export declare function sendShareRecords(projectId: string, on: boolean): Promise<{
|
|
35
|
+
ok: true;
|
|
36
|
+
} | {
|
|
37
|
+
ok: false;
|
|
38
|
+
error: string;
|
|
39
|
+
}>;
|
|
14
40
|
/**
|
|
15
41
|
* Open the OS folder picker on the daemon's machine and wait for the user's choice (#1150). The
|
|
16
42
|
* browser cannot learn an absolute path from any picker of its own, and the daemon — which runs on
|
|
@@ -26,7 +52,7 @@ export declare function onOnboarding(): Promise<OnboardingSuggestion>;
|
|
|
26
52
|
/** What the launcher offers for a project: its commands, and whether a run can be started here at all. */
|
|
27
53
|
export interface ProjectLauncher {
|
|
28
54
|
commands: ProjectCommand[];
|
|
29
|
-
/** Whether the project's `.
|
|
55
|
+
/** Whether the project's `.openagent/hooks.yml` has a `start` line; without one Start is off. */
|
|
30
56
|
startHook: boolean;
|
|
31
57
|
/** Whether one of the project's packages provides a git host; without one no pull request can be opened, so the publish menu stops at the branch. */
|
|
32
58
|
gitHost: boolean;
|
|
@@ -13,7 +13,7 @@ import { type DashboardData } from '../dashboard/dashboard.js';
|
|
|
13
13
|
import { type GitStatus } from '../dashboard/git-status.js';
|
|
14
14
|
import { type AgentHandoff } from '../dashboard/agent-handoff.js';
|
|
15
15
|
import type { AgentWorktree } from '../dashboard/types.js';
|
|
16
|
-
import type {
|
|
16
|
+
import type { OpenAgentEvent } from '../events.js';
|
|
17
17
|
import type { BridgeEvent, BridgeHello, BridgeQuestion } from '../dashboard/bridge-endpoints.js';
|
|
18
18
|
import type { BridgeAnswer, BridgeContact, BridgeVersion } from '../dashboard/bridge-store.js';
|
|
19
19
|
/**
|
|
@@ -78,7 +78,7 @@ export declare function onRetainedWorktrees(projectId: string): Promise<string[]
|
|
|
78
78
|
*/
|
|
79
79
|
export declare function onAgentWorktree(projectId: string, agentId: string): Promise<AgentWorktree | null>;
|
|
80
80
|
/** One archived agent's event log for replay (or `[]` when the agent or project is gone). */
|
|
81
|
-
export declare function onAgent(projectId: string, agentId: string): Promise<
|
|
81
|
+
export declare function onAgent(projectId: string, agentId: string): Promise<OpenAgentEvent[]>;
|
|
82
82
|
/** What each of the named runs of a project is doing now, by id; a run that is not working has no entry. */
|
|
83
83
|
export declare function onAgentsDoing(projectId: string, agentIds: string[]): Promise<Record<string, string>>;
|
|
84
84
|
/** The surfaced PLAN/TODO docs at the workspace root, in sidebar order (or `[]`). */
|
|
@@ -170,7 +170,7 @@ export declare function onBridgeStatus(): Promise<{
|
|
|
170
170
|
* page. Revealing it here is not a new exposure: anyone who can load this dashboard can already
|
|
171
171
|
* start runs on this machine, and on a non-loopback bind their browser is holding the same token
|
|
172
172
|
* as a cookie. What it replaces is the alternative, which was telling people to open
|
|
173
|
-
* `~/.
|
|
173
|
+
* `~/.openagent.json` and copy a field out of it.
|
|
174
174
|
*/
|
|
175
175
|
export declare function onBridgeToken(): Promise<string | null>;
|
|
176
176
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* iterators, and replay history from an offset (tail=N replay).
|
|
4
4
|
*
|
|
5
5
|
* Absorbed from `@gemstack/ai-autopilot` when that package was deleted (A2). Its element type
|
|
6
|
-
* used to default to the supervisor's event; the only caller here passes `
|
|
6
|
+
* used to default to the supervisor's event; the only caller here passes `OpenAgentEvent`, so
|
|
7
7
|
* the parameter is now required.
|
|
8
8
|
*/
|
|
9
9
|
export declare class EventStream<E> {
|
|
@@ -12,7 +12,7 @@ export interface ChoiceOption {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* An interactive choice the agent pauses on until a pick arrives (#304). Emitted as
|
|
15
|
-
* a `choice` {@link
|
|
15
|
+
* a `choice` {@link OpenAgentEvent}; the dashboard renders it in a panel and posts
|
|
16
16
|
* the pick back. The recommended option is what an agent nobody is watching takes.
|
|
17
17
|
*/
|
|
18
18
|
export interface ChoiceRequest {
|
|
@@ -39,7 +39,7 @@ export interface ChoiceRequest {
|
|
|
39
39
|
}
|
|
40
40
|
/** Who resolved a {@link ChoiceRequest}: a human, or a headless auto-accept. */
|
|
41
41
|
export type ChoiceBy = 'user' | 'auto';
|
|
42
|
-
/** What a {@link import('./agent.js').
|
|
42
|
+
/** What a {@link import('./agent.js').RunOpenAgentOptions.requestChoice} handler resolves with. */
|
|
43
43
|
export interface ChoicePick {
|
|
44
44
|
/** The picked option id, or (for a {@link ChoiceRequest.multi} select) the selected subset of ids. */
|
|
45
45
|
picked: string | readonly string[];
|
|
@@ -49,21 +49,21 @@ export interface ChoicePick {
|
|
|
49
49
|
/** Normalize a {@link ChoicePick} (single id or subset) to a list of picked ids. */
|
|
50
50
|
export declare function pickedIds(picked: string | readonly string[]): string[];
|
|
51
51
|
/**
|
|
52
|
-
* The single type a run's timeline is read as.
|
|
52
|
+
* The single type a run's timeline is read as. OpenAgent emits none of these itself (#1774):
|
|
53
53
|
* a run's tool writes the run's diary, and every line of it is read as one of these so the
|
|
54
54
|
* dashboard and the terminal render one timeline whatever wrote it.
|
|
55
55
|
*
|
|
56
56
|
* What a diary yields today is the agent's own progress (`driver`), the session id it reports
|
|
57
57
|
* (`session-update`), the question a turn ended on (`choice`), what it cost (`usage`) and how it
|
|
58
58
|
* ended (`end`). **The rest of this union is a reading vocabulary for runs recorded before the
|
|
59
|
-
* daemon stopped running agents** —
|
|
59
|
+
* daemon stopped running agents** — OpenAgent's own narration back then. They are kept
|
|
60
60
|
* because that history is still on the data branch and still has to render.
|
|
61
61
|
*
|
|
62
62
|
* Every event read from a diary line that says when it was written carries that time as `at`
|
|
63
63
|
* (ISO 8601), so the timeline shows the same times live, after a reload, and once the run has
|
|
64
64
|
* ended. Lines written before the diary kept times have none, and show none.
|
|
65
65
|
*/
|
|
66
|
-
export type
|
|
66
|
+
export type OpenAgentEvent = {
|
|
67
67
|
at?: string;
|
|
68
68
|
} & (
|
|
69
69
|
/**
|
|
@@ -105,8 +105,8 @@ export type FrameworkEvent = {
|
|
|
105
105
|
* A live screen something the agent ran is showing: a page on this machine's loopback, shown in
|
|
106
106
|
* the chat where the line is, while it is the newest open screen at that address and the run
|
|
107
107
|
* has not ended. `label` names what it showed then. The same address with `ended` says the
|
|
108
|
-
* screen has gone. A diary line a command appends itself (agent-driver's `DIARY_ENV`);
|
|
109
|
-
*
|
|
108
|
+
* screen has gone. A diary line a command appends itself (agent-driver's `DIARY_ENV`);
|
|
109
|
+
* OpenAgent knows nothing of what the page is.
|
|
110
110
|
*/
|
|
111
111
|
| {
|
|
112
112
|
kind: 'screen';
|
|
@@ -114,7 +114,7 @@ export type FrameworkEvent = {
|
|
|
114
114
|
label: string;
|
|
115
115
|
ended?: true;
|
|
116
116
|
}
|
|
117
|
-
/**
|
|
117
|
+
/** An OpenAgent-level log line. */
|
|
118
118
|
| {
|
|
119
119
|
kind: 'log';
|
|
120
120
|
message: string;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* ends where its consumers end, so a name nothing renders cannot quietly live on in it.
|
|
14
14
|
*/
|
|
15
15
|
export type { AgentError, SessionInfo } from './agent-view.js';
|
|
16
|
-
export type { ChoiceRequest,
|
|
16
|
+
export type { ChoiceRequest, OpenAgentEvent } from './events.js';
|
|
17
17
|
export type { QuotaBoundary } from './quota-boundary.js';
|
|
18
18
|
export type { CustomPreset, Preferences } from './registry.js';
|
|
19
19
|
export type { PublishPick } from './publish-levels.js';
|
|
@@ -23,6 +23,7 @@ export type { Activity } from './dashboard/activity.js';
|
|
|
23
23
|
export type { AgentHandoff } from './dashboard/agent-handoff.js';
|
|
24
24
|
export type { GitHostHome } from './store/git-host.js';
|
|
25
25
|
export type { RepositoryOffer, CreateRepositoryResult } from './store/repository.js';
|
|
26
|
+
export type { BranchReach as RecordsReach } from '@openagt/agent-data';
|
|
26
27
|
export type { BridgeEvent } from './dashboard/bridge-endpoints.js';
|
|
27
28
|
export type { BridgeOption, BridgeQuestion } from './dashboard/bridge-question.js';
|
|
28
29
|
export type { BridgeAnswer } from './dashboard/bridge-store.js';
|
|
@@ -37,4 +38,4 @@ export type { ProjectError, ProjectErrorCode } from './project-errors.js';
|
|
|
37
38
|
export type { ProjectQueue } from './dashboard/queue.js';
|
|
38
39
|
export type { QuotaView } from './dashboard/quota.js';
|
|
39
40
|
export type { Ticket } from './store/tickets.js';
|
|
40
|
-
export type { AgentWorktree, OnboardingSuggestion } from './dashboard/types.js';
|
|
41
|
+
export type { AgentWorktree, CleanupReport, OnboardingSuggestion } from './dashboard/types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChoiceRequest,
|
|
1
|
+
import type { ChoiceRequest, OpenAgentEvent } from './events.js';
|
|
2
2
|
/**
|
|
3
3
|
* Every question a run still waits on, in the order asked, read off the run's events. One rule
|
|
4
4
|
* for every surface that offers an answer (the run page, the open-questions list, the write
|
|
@@ -11,4 +11,4 @@ import type { ChoiceRequest, FrameworkEvent } from './events.js';
|
|
|
11
11
|
* checkout kept, and the answer resumes it. A run that died holding a question ends otherwise,
|
|
12
12
|
* and its question goes with it (#1359): nobody would read the pick.
|
|
13
13
|
*/
|
|
14
|
-
export declare function pendingChoices(events: readonly
|
|
14
|
+
export declare function pendingChoices(events: readonly OpenAgentEvent[]): ChoiceRequest[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The directory, under a project root, that holds
|
|
2
|
+
* The directory, under a project root, that holds OpenAgent's own files.
|
|
3
3
|
*
|
|
4
4
|
* Its own module so every reader and writer of the directory (the hooks file, the project's saved
|
|
5
5
|
* prompts, the activation's `.gitignore`, a run's card, diary and inbox) spells it the same way.
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* Nothing of the product's rides on a branch of its own any more: the agent archives are the
|
|
8
8
|
* `logs` skill's runs, on the shared `agent-data` branch that `@openagt/agent-data` names (#1769).
|
|
9
9
|
*/
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const OPENAGENT_DIR = ".openagent";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `.openagent/.gitignore` (#313): one file, one content, written at install.
|
|
3
|
+
*
|
|
4
|
+
* Everything under `.openagent/` is this machine's or transient: a run's live files, the
|
|
5
|
+
* hooks file. The lasting records (the runs, the `logs` skill's) live on the data branch
|
|
6
|
+
* (#1582/#1769), so nothing is tracked, this file included: git shows no trace of the directory.
|
|
7
|
+
*/
|
|
8
|
+
/** The `.gitignore` path under `cwd`'s `.openagent/`. */
|
|
9
|
+
export declare function gitignorePath(cwd: string): string;
|
|
10
|
+
/** The whole file: everything under `.openagent/` stays out of git, the file itself too (#1582). */
|
|
11
|
+
export declare function openagentGitignore(): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A project's commands (#1774): the skills written to be run by a person, read off the folders
|
|
3
|
-
* the coding agents read them from.
|
|
3
|
+
* the coding agents read them from. OpenAgent ships no prompt text; what a project can be
|
|
4
4
|
* asked to do is what its own command skills say. A skill that teaches the agent how to do
|
|
5
5
|
* something (the tickets, the queue) is not a command: typed alone it starts an agent with
|
|
6
6
|
* nothing to do, so the launcher does not list it.
|
|
@@ -7,13 +7,15 @@
|
|
|
7
7
|
* line on the daemon's stdout and nothing else, which is the worst way to handle a state nobody
|
|
8
8
|
* can see.
|
|
9
9
|
*
|
|
10
|
-
* A
|
|
11
|
-
* project. The sync records
|
|
10
|
+
* A project whose data stays on this machine is not an error: a folder with no origin, or one the
|
|
11
|
+
* person does not share, is a normal project. The sync records why as `local`, a note the
|
|
12
|
+
* dashboard says quietly.
|
|
12
13
|
*
|
|
13
14
|
* In memory on purpose. Every emitter re-evaluates on its own cadence — the sync every minute —
|
|
14
15
|
* so a restarted daemon re-learns each error within a tick, and there is no stale record to
|
|
15
16
|
* outlive the condition that raised it.
|
|
16
17
|
*/
|
|
18
|
+
import type { BranchReach } from '@openagt/agent-data';
|
|
17
19
|
/**
|
|
18
20
|
* What went wrong, by kind: the dashboard picks its wording from this, the message carries the
|
|
19
21
|
* detail. `data-sync`: the data branch cannot converge with the remote. `provider`: which package
|
|
@@ -28,6 +30,8 @@ export interface ProjectError {
|
|
|
28
30
|
/** ISO timestamp of when the error was first recorded; a re-report of the same code keeps it. */
|
|
29
31
|
since: string;
|
|
30
32
|
}
|
|
33
|
+
/** Why a project's data stays on this machine: its repository has no origin, or the person keeps it here. */
|
|
34
|
+
export type StaysLocal = Exclude<BranchReach, 'origin'>;
|
|
31
35
|
/** The daemon's write side: one slot per (project, code). */
|
|
32
36
|
export interface ProjectErrors {
|
|
33
37
|
/**
|
|
@@ -40,15 +44,15 @@ export interface ProjectErrors {
|
|
|
40
44
|
clear(projectPath: string, code: ProjectErrorCode): void;
|
|
41
45
|
/** The project's current errors, oldest first. */
|
|
42
46
|
list(projectPath: string): ProjectError[];
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
/** What the dashboard shows of the project: its errors, and
|
|
47
|
+
/** How far the project's data reaches, as the last sync found it. */
|
|
48
|
+
setReach(projectPath: string, reach: BranchReach): void;
|
|
49
|
+
/** What the dashboard shows of the project: its errors, and why its data stays local, if it does. */
|
|
46
50
|
read(projectPath: string): ProjectState;
|
|
47
51
|
}
|
|
48
|
-
/** What the background jobs currently know of a project: what is wrong with it, and
|
|
52
|
+
/** What the background jobs currently know of a project: what is wrong with it, and why its data stays on this machine, if it does. */
|
|
49
53
|
export interface ProjectState {
|
|
50
54
|
errors: ProjectError[];
|
|
51
|
-
|
|
55
|
+
local?: StaysLocal;
|
|
52
56
|
}
|
|
53
57
|
/** The dashboard's read side, wired into its context. */
|
|
54
58
|
export type ProjectErrorsReader = ProjectErrors['read'];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A project's hooks (#1774): the shell lines a project's own `.
|
|
2
|
+
* A project's hooks (#1774): the shell lines a project's own `.openagent/hooks.yml` names to
|
|
3
3
|
* run when the dashboard opens and when it closes, the two lines that start a run and continue
|
|
4
4
|
* one, and the line that says whether a run can start here at all. The daemon calls no tool by
|
|
5
5
|
* name: it runs whatever the file says, in the project, with the project's installed tools and
|
|
6
6
|
* then the built-in packages' on the PATH, so a line reaches its tool with nothing fetched from npm. Per
|
|
7
|
-
* user, since `.
|
|
7
|
+
* user, since `.openagent/` is ignored: a hook is this machine's, and a teammate's pull
|
|
8
8
|
* changes nothing.
|
|
9
9
|
*
|
|
10
10
|
* Optional, best-effort and bounded: no file means nothing runs, a broken file is a warning, an
|
|
11
11
|
* `open` or `close` line that fails or hangs is logged and the next line still runs, and nothing
|
|
12
12
|
* here ever throws to the daemon.
|
|
13
13
|
*/
|
|
14
|
-
/** The hooks file, under the project's ignored `.
|
|
15
|
-
export declare const PROJECT_HOOKS_FILE = ".
|
|
14
|
+
/** The hooks file, under the project's ignored `.openagent/`. */
|
|
15
|
+
export declare const PROJECT_HOOKS_FILE = ".openagent/hooks.yml";
|
|
16
16
|
/** How long one line may run before it is killed and logged as timed out. */
|
|
17
17
|
export declare const HOOK_TIMEOUT_MS = 60000;
|
|
18
18
|
/** When a project's hooks run: `open` when the dashboard starts (and when the project is added while it runs), `close` when it stops. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type PackageCommandResult } from '@openagt/agent-data';
|
|
2
2
|
/**
|
|
3
3
|
* A package that adds to the dashboard (#1774): its browser part, named by its
|
|
4
|
-
* `exports["./dashboard"]`, and optionally its server part, named by `exports["./server"]`.
|
|
5
|
-
*
|
|
6
|
-
* module, whoever wrote it, and
|
|
4
|
+
* `exports["./dashboard"]`, and optionally its server part, named by `exports["./server"]`.
|
|
5
|
+
* OpenAgent names no package: any dependency of the project that exports `./dashboard` is a
|
|
6
|
+
* module, whoever wrote it, and OpenAgent's own built-in modules come the same way.
|
|
7
7
|
*/
|
|
8
8
|
export interface ProjectModule {
|
|
9
9
|
/** The package's name, as the project's package.json lists it. */
|
|
@@ -21,7 +21,7 @@ export interface ProjectModule {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* The modules a project has: each of its dependencies whose package.json exports `./dashboard` to
|
|
24
|
-
* a file that exists inside the package, plus the modules among
|
|
24
|
+
* a file that exists inside the package, plus the modules among OpenAgent's built-in packages (`built-in.ts`). A project that
|
|
25
25
|
* depends on a built-in module's package itself gets its own copy. Sorted by name.
|
|
26
26
|
*/
|
|
27
27
|
export declare function readProjectModules(root: string): Promise<ProjectModule[]>;
|
|
@@ -38,7 +38,7 @@ export type ModuleCommandResult = PackageCommandResult;
|
|
|
38
38
|
/**
|
|
39
39
|
* Run one of a module package's own commands in the project, with the given arguments, and read
|
|
40
40
|
* its standard output as JSON. This is how a module reads its data: the same command an agent runs
|
|
41
|
-
* (`npx logs`), so the module and the agent see the same thing and
|
|
41
|
+
* (`npx logs`), so the module and the agent see the same thing and OpenAgent knows neither.
|
|
42
42
|
*
|
|
43
43
|
* `command` picks one of the package's commands; a package with exactly one needs none. The
|
|
44
44
|
* command runs with Node (a package's commands are Node scripts), in the project root, never
|