@openagt/dashboard 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +125 -2
- package/dist/agent-id.d.ts +13 -0
- package/dist/agent-id.d.ts.map +1 -0
- package/dist/agent-id.js +20 -0
- package/dist/agent-id.js.map +1 -0
- package/dist/agent-locks.d.ts +3 -0
- package/dist/agent-locks.d.ts.map +1 -0
- package/dist/agent-locks.js +40 -0
- package/dist/agent-locks.js.map +1 -0
- package/dist/agent-view.d.ts +39 -0
- package/dist/agent-view.d.ts.map +1 -0
- package/dist/agent-view.js +45 -0
- package/dist/agent-view.js.map +1 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +11 -0
- package/dist/bin.js.map +1 -0
- package/dist/branch-name.d.ts +8 -0
- package/dist/branch-name.d.ts.map +1 -0
- package/dist/branch-name.js +20 -0
- package/dist/branch-name.js.map +1 -0
- package/dist/bridge-browser.d.ts +217 -0
- package/dist/bridge-browser.d.ts.map +1 -0
- package/dist/bridge-browser.js +520 -0
- package/dist/bridge-browser.js.map +1 -0
- package/dist/browser-stream.d.ts +20 -0
- package/dist/browser-stream.d.ts.map +1 -0
- package/dist/browser-stream.js +51 -0
- package/dist/browser-stream.js.map +1 -0
- package/dist/browser.d.ts +16 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +38 -0
- package/dist/browser.js.map +1 -0
- package/dist/built-in.d.ts +38 -0
- package/dist/built-in.d.ts.map +1 -0
- package/dist/built-in.js +119 -0
- package/dist/built-in.js.map +1 -0
- package/dist/chrome-extension/background.js +532 -0
- package/dist/chrome-extension/content.js +1475 -0
- package/dist/chrome-extension/driver-plan.js +41 -0
- package/dist/chrome-extension/fingerprint.js +43 -0
- package/dist/chrome-extension/manifest.json +31 -0
- package/dist/chrome-extension/options.html +48 -0
- package/dist/chrome-extension/options.js +122 -0
- package/dist/cli.d.ts +43 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +186 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.d.ts +16 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +30 -0
- package/dist/client.js.map +1 -0
- package/dist/cloud-run-state.d.ts +27 -0
- package/dist/cloud-run-state.d.ts.map +1 -0
- package/dist/cloud-run-state.js +36 -0
- package/dist/cloud-run-state.js.map +1 -0
- package/dist/cloud-scratch-refs.d.ts +85 -0
- package/dist/cloud-scratch-refs.d.ts.map +1 -0
- package/dist/cloud-scratch-refs.js +275 -0
- package/dist/cloud-scratch-refs.js.map +1 -0
- package/dist/cloud-work.d.ts +66 -0
- package/dist/cloud-work.d.ts.map +1 -0
- package/dist/cloud-work.js +204 -0
- package/dist/cloud-work.js.map +1 -0
- package/dist/daemon-runtime.d.ts +42 -0
- package/dist/daemon-runtime.d.ts.map +1 -0
- package/dist/daemon-runtime.js +183 -0
- package/dist/daemon-runtime.js.map +1 -0
- package/dist/daemon-services.d.ts +37 -0
- package/dist/daemon-services.d.ts.map +1 -0
- package/dist/daemon-services.js +126 -0
- package/dist/daemon-services.js.map +1 -0
- package/dist/daemon-tick.d.ts +68 -0
- package/dist/daemon-tick.d.ts.map +1 -0
- package/dist/daemon-tick.js +97 -0
- package/dist/daemon-tick.js.map +1 -0
- package/dist/daemon.d.ts +65 -0
- package/dist/daemon.d.ts.map +1 -0
- package/dist/daemon.js +202 -0
- package/dist/daemon.js.map +1 -0
- package/dist/dashboard/activity.d.ts +41 -0
- package/dist/dashboard/activity.d.ts.map +1 -0
- package/dist/dashboard/activity.js +56 -0
- package/dist/dashboard/activity.js.map +1 -0
- package/dist/dashboard/agent-handoff.d.ts +244 -0
- package/dist/dashboard/agent-handoff.d.ts.map +1 -0
- package/dist/dashboard/agent-handoff.js +310 -0
- package/dist/dashboard/agent-handoff.js.map +1 -0
- package/dist/dashboard/bridge-endpoints.d.ts +158 -0
- package/dist/dashboard/bridge-endpoints.d.ts.map +1 -0
- package/dist/dashboard/bridge-endpoints.js +382 -0
- package/dist/dashboard/bridge-endpoints.js.map +1 -0
- package/dist/dashboard/bridge-question.d.ts +33 -0
- package/dist/dashboard/bridge-question.d.ts.map +1 -0
- package/dist/dashboard/bridge-question.js +20 -0
- package/dist/dashboard/bridge-question.js.map +1 -0
- package/dist/dashboard/bridge-sessions.d.ts +25 -0
- package/dist/dashboard/bridge-sessions.d.ts.map +1 -0
- package/dist/dashboard/bridge-sessions.js +46 -0
- package/dist/dashboard/bridge-sessions.js.map +1 -0
- package/dist/dashboard/bridge-starts.d.ts +61 -0
- package/dist/dashboard/bridge-starts.d.ts.map +1 -0
- package/dist/dashboard/bridge-starts.js +94 -0
- package/dist/dashboard/bridge-starts.js.map +1 -0
- package/dist/dashboard/bridge-store.d.ts +179 -0
- package/dist/dashboard/bridge-store.d.ts.map +1 -0
- package/dist/dashboard/bridge-store.js +262 -0
- package/dist/dashboard/bridge-store.js.map +1 -0
- package/dist/dashboard/bundle.d.ts +12 -0
- package/dist/dashboard/bundle.d.ts.map +1 -0
- package/dist/dashboard/bundle.js +22 -0
- package/dist/dashboard/bundle.js.map +1 -0
- package/dist/dashboard/cache.d.ts +47 -0
- package/dist/dashboard/cache.d.ts.map +1 -0
- package/dist/dashboard/cache.js +87 -0
- package/dist/dashboard/cache.js.map +1 -0
- package/dist/dashboard/content-type.d.ts +3 -0
- package/dist/dashboard/content-type.d.ts.map +1 -0
- package/dist/dashboard/content-type.js +31 -0
- package/dist/dashboard/content-type.js.map +1 -0
- package/dist/dashboard/dashboard.d.ts +38 -0
- package/dist/dashboard/dashboard.d.ts.map +1 -0
- package/dist/dashboard/dashboard.js +42 -0
- package/dist/dashboard/dashboard.js.map +1 -0
- package/dist/dashboard/docs.d.ts +39 -0
- package/dist/dashboard/docs.d.ts.map +1 -0
- package/dist/dashboard/docs.js +59 -0
- package/dist/dashboard/docs.js.map +1 -0
- package/dist/dashboard/git-status.d.ts +44 -0
- package/dist/dashboard/git-status.d.ts.map +1 -0
- package/dist/dashboard/git-status.js +37 -0
- package/dist/dashboard/git-status.js.map +1 -0
- package/dist/dashboard/http.d.ts +29 -0
- package/dist/dashboard/http.d.ts.map +1 -0
- package/dist/dashboard/http.js +74 -0
- package/dist/dashboard/http.js.map +1 -0
- package/dist/dashboard/index.d.ts +24 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +23 -0
- package/dist/dashboard/index.js.map +1 -0
- package/dist/dashboard/interventions.d.ts +67 -0
- package/dist/dashboard/interventions.d.ts.map +1 -0
- package/dist/dashboard/interventions.js +169 -0
- package/dist/dashboard/interventions.js.map +1 -0
- package/dist/dashboard/keyed-watcher.d.ts +29 -0
- package/dist/dashboard/keyed-watcher.d.ts.map +1 -0
- package/dist/dashboard/keyed-watcher.js +42 -0
- package/dist/dashboard/keyed-watcher.js.map +1 -0
- package/dist/dashboard/keys.d.ts +31 -0
- package/dist/dashboard/keys.d.ts.map +1 -0
- package/dist/dashboard/keys.js +37 -0
- package/dist/dashboard/keys.js.map +1 -0
- package/dist/dashboard/models.d.ts +25 -0
- package/dist/dashboard/models.d.ts.map +1 -0
- package/dist/dashboard/models.js +30 -0
- package/dist/dashboard/models.js.map +1 -0
- package/dist/dashboard/module-host.d.ts +44 -0
- package/dist/dashboard/module-host.d.ts.map +1 -0
- package/dist/dashboard/module-host.js +91 -0
- package/dist/dashboard/module-host.js.map +1 -0
- package/dist/dashboard/module-serve.d.ts +15 -0
- package/dist/dashboard/module-serve.d.ts.map +1 -0
- package/dist/dashboard/module-serve.js +45 -0
- package/dist/dashboard/module-serve.js.map +1 -0
- package/dist/dashboard/open-in-app.d.ts +43 -0
- package/dist/dashboard/open-in-app.d.ts.map +1 -0
- package/dist/dashboard/open-in-app.js +98 -0
- package/dist/dashboard/open-in-app.js.map +1 -0
- package/dist/dashboard/open-questions.d.ts +45 -0
- package/dist/dashboard/open-questions.d.ts.map +1 -0
- package/dist/dashboard/open-questions.js +62 -0
- package/dist/dashboard/open-questions.js.map +1 -0
- package/dist/dashboard/overview.d.ts +78 -0
- package/dist/dashboard/overview.d.ts.map +1 -0
- package/dist/dashboard/overview.js +87 -0
- package/dist/dashboard/overview.js.map +1 -0
- package/dist/dashboard/projects.d.ts +101 -0
- package/dist/dashboard/projects.d.ts.map +1 -0
- package/dist/dashboard/projects.js +63 -0
- package/dist/dashboard/projects.js.map +1 -0
- package/dist/dashboard/pull-requests.d.ts +127 -0
- package/dist/dashboard/pull-requests.d.ts.map +1 -0
- package/dist/dashboard/pull-requests.js +137 -0
- package/dist/dashboard/pull-requests.js.map +1 -0
- package/dist/dashboard/queue.d.ts +17 -0
- package/dist/dashboard/queue.d.ts.map +1 -0
- package/dist/dashboard/queue.js +19 -0
- package/dist/dashboard/queue.js.map +1 -0
- package/dist/dashboard/quota.d.ts +53 -0
- package/dist/dashboard/quota.d.ts.map +1 -0
- package/dist/dashboard/quota.js +42 -0
- package/dist/dashboard/quota.js.map +1 -0
- package/dist/dashboard/relay-endpoints.d.ts +32 -0
- package/dist/dashboard/relay-endpoints.d.ts.map +1 -0
- package/dist/dashboard/relay-endpoints.js +115 -0
- package/dist/dashboard/relay-endpoints.js.map +1 -0
- package/dist/dashboard/remote-run.d.ts +95 -0
- package/dist/dashboard/remote-run.d.ts.map +1 -0
- package/dist/dashboard/remote-run.js +235 -0
- package/dist/dashboard/remote-run.js.map +1 -0
- package/dist/dashboard/rpc-serve.d.ts +106 -0
- package/dist/dashboard/rpc-serve.d.ts.map +1 -0
- package/dist/dashboard/rpc-serve.js +180 -0
- package/dist/dashboard/rpc-serve.js.map +1 -0
- package/dist/dashboard/run-inbox.d.ts +31 -0
- package/dist/dashboard/run-inbox.d.ts.map +1 -0
- package/dist/dashboard/run-inbox.js +51 -0
- package/dist/dashboard/run-inbox.js.map +1 -0
- package/dist/dashboard/server.d.ts +105 -0
- package/dist/dashboard/server.d.ts.map +1 -0
- package/dist/dashboard/server.js +231 -0
- package/dist/dashboard/server.js.map +1 -0
- package/dist/dashboard/static.d.ts +9 -0
- package/dist/dashboard/static.d.ts.map +1 -0
- package/dist/dashboard/static.js +54 -0
- package/dist/dashboard/static.js.map +1 -0
- package/dist/dashboard/types.d.ts +135 -0
- package/dist/dashboard/types.d.ts.map +1 -0
- package/dist/dashboard/types.js +2 -0
- package/dist/dashboard/types.js.map +1 -0
- package/dist/dashboard/web-start-endpoints.d.ts +32 -0
- package/dist/dashboard/web-start-endpoints.d.ts.map +1 -0
- package/dist/dashboard/web-start-endpoints.js +75 -0
- package/dist/dashboard/web-start-endpoints.js.map +1 -0
- package/dist/dashboard-bundle/assets/client-CbBRB9m4.js +9 -0
- package/dist/dashboard-bundle/assets/jsx-runtime-By8HlURe.js +1 -0
- package/dist/dashboard-bundle/assets/main-B98UOA3_.js +140 -0
- package/dist/dashboard-bundle/assets/main-ByRjbCiA.css +2 -0
- package/dist/dashboard-bundle/assets/module-v213KWfH.js +21 -0
- package/dist/dashboard-bundle/assets/react-CZI7_Jkm.js +1 -0
- package/dist/dashboard-bundle/assets/react-dom-cJyBB_A4.js +1 -0
- package/dist/dashboard-bundle/assets/rolldown-runtime-QTnfLwEv.js +1 -0
- package/dist/dashboard-bundle/host/module.js +1 -0
- package/dist/dashboard-bundle/host/react-dom-client.js +1 -0
- package/dist/dashboard-bundle/host/react-dom.js +1 -0
- package/dist/dashboard-bundle/host/react-jsx-runtime.js +1 -0
- package/dist/dashboard-bundle/host/react.js +1 -0
- package/dist/dashboard-bundle/index.html +42 -0
- package/dist/dashboard-bundle/logo-animated.svg +34 -0
- package/dist/dashboard-bundle/logo.svg +16 -0
- package/dist/dashboard-rpc/context.d.ts +56 -0
- package/dist/dashboard-rpc/context.d.ts.map +1 -0
- package/dist/dashboard-rpc/context.js +106 -0
- package/dist/dashboard-rpc/context.js.map +1 -0
- package/dist/dashboard-rpc/control.d.ts +124 -0
- package/dist/dashboard-rpc/control.d.ts.map +1 -0
- package/dist/dashboard-rpc/control.js +284 -0
- package/dist/dashboard-rpc/control.js.map +1 -0
- package/dist/dashboard-rpc/devices.d.ts +9 -0
- package/dist/dashboard-rpc/devices.d.ts.map +1 -0
- package/dist/dashboard-rpc/devices.js +12 -0
- package/dist/dashboard-rpc/devices.js.map +1 -0
- package/dist/dashboard-rpc/events-tail.d.ts +68 -0
- package/dist/dashboard-rpc/events-tail.d.ts.map +1 -0
- package/dist/dashboard-rpc/events-tail.js +257 -0
- package/dist/dashboard-rpc/events-tail.js.map +1 -0
- package/dist/dashboard-rpc/events.d.ts +39 -0
- package/dist/dashboard-rpc/events.d.ts.map +1 -0
- package/dist/dashboard-rpc/events.js +47 -0
- package/dist/dashboard-rpc/events.js.map +1 -0
- package/dist/dashboard-rpc/index.d.ts +29 -0
- package/dist/dashboard-rpc/index.d.ts.map +1 -0
- package/dist/dashboard-rpc/index.js +40 -0
- package/dist/dashboard-rpc/index.js.map +1 -0
- package/dist/dashboard-rpc/models.d.ts +4 -0
- package/dist/dashboard-rpc/models.d.ts.map +1 -0
- package/dist/dashboard-rpc/models.js +8 -0
- package/dist/dashboard-rpc/models.js.map +1 -0
- package/dist/dashboard-rpc/modules.d.ts +45 -0
- package/dist/dashboard-rpc/modules.d.ts.map +1 -0
- package/dist/dashboard-rpc/modules.js +79 -0
- package/dist/dashboard-rpc/modules.js.map +1 -0
- package/dist/dashboard-rpc/preferences.d.ts +41 -0
- package/dist/dashboard-rpc/preferences.d.ts.map +1 -0
- package/dist/dashboard-rpc/preferences.js +65 -0
- package/dist/dashboard-rpc/preferences.js.map +1 -0
- package/dist/dashboard-rpc/projects.d.ts +85 -0
- package/dist/dashboard-rpc/projects.d.ts.map +1 -0
- package/dist/dashboard-rpc/projects.js +129 -0
- package/dist/dashboard-rpc/projects.js.map +1 -0
- package/dist/dashboard-rpc/quota.d.ts +4 -0
- package/dist/dashboard-rpc/quota.d.ts.map +1 -0
- package/dist/dashboard-rpc/quota.js +15 -0
- package/dist/dashboard-rpc/quota.js.map +1 -0
- package/dist/dashboard-rpc/reads.d.ts +185 -0
- package/dist/dashboard-rpc/reads.d.ts.map +1 -0
- package/dist/dashboard-rpc/reads.js +370 -0
- package/dist/dashboard-rpc/reads.js.map +1 -0
- package/dist/dashboard-rpc/relay-agent.d.ts +9 -0
- package/dist/dashboard-rpc/relay-agent.d.ts.map +1 -0
- package/dist/dashboard-rpc/relay-agent.js +21 -0
- package/dist/dashboard-rpc/relay-agent.js.map +1 -0
- package/dist/dashboard-rpc/relay-dispatch.d.ts +9 -0
- package/dist/dashboard-rpc/relay-dispatch.d.ts.map +1 -0
- package/dist/dashboard-rpc/relay-dispatch.js +24 -0
- package/dist/dashboard-rpc/relay-dispatch.js.map +1 -0
- package/dist/dashboard-rpc/stream-forward.d.ts +17 -0
- package/dist/dashboard-rpc/stream-forward.d.ts.map +1 -0
- package/dist/dashboard-rpc/stream-forward.js +38 -0
- package/dist/dashboard-rpc/stream-forward.js.map +1 -0
- package/dist/dashboard-rpc/test-context.d.ts +23 -0
- package/dist/dashboard-rpc/test-context.d.ts.map +1 -0
- package/dist/dashboard-rpc/test-context.js +43 -0
- package/dist/dashboard-rpc/test-context.js.map +1 -0
- package/dist/driver-names.d.ts +22 -0
- package/dist/driver-names.d.ts.map +1 -0
- package/dist/driver-names.js +29 -0
- package/dist/driver-names.js.map +1 -0
- package/dist/error-message.d.ts +8 -0
- package/dist/error-message.d.ts.map +1 -0
- package/dist/error-message.js +10 -0
- package/dist/error-message.js.map +1 -0
- package/dist/event-stream.d.ts +33 -0
- package/dist/event-stream.d.ts.map +1 -0
- package/dist/event-stream.js +104 -0
- package/dist/event-stream.js.map +1 -0
- package/dist/events.d.ts +236 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +5 -0
- package/dist/events.js.map +1 -0
- package/dist/format-bytes.d.ts +3 -0
- package/dist/format-bytes.d.ts.map +1 -0
- package/dist/format-bytes.js +18 -0
- package/dist/format-bytes.js.map +1 -0
- package/dist/has-remote.d.ts +8 -0
- package/dist/has-remote.d.ts.map +1 -0
- package/dist/has-remote.js +10 -0
- package/dist/has-remote.js.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/install.d.ts +31 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +54 -0
- package/dist/install.js.map +1 -0
- package/dist/jsonl-tail.d.ts +59 -0
- package/dist/jsonl-tail.d.ts.map +1 -0
- package/dist/jsonl-tail.js +152 -0
- package/dist/jsonl-tail.js.map +1 -0
- package/dist/loopback-host.d.ts +20 -0
- package/dist/loopback-host.d.ts.map +1 -0
- package/dist/loopback-host.js +31 -0
- package/dist/loopback-host.js.map +1 -0
- package/dist/module-server.d.ts +56 -0
- package/dist/module-types/dashboard/components/DiffStat.d.ts +6 -0
- package/dist/module-types/dashboard/components/DriverModelMenu.d.ts +23 -0
- package/dist/module-types/dashboard/components/LinkActions.d.ts +26 -0
- package/dist/module-types/dashboard/components/Markdown.d.ts +4 -0
- package/dist/module-types/dashboard/components/SettingsRows.d.ts +37 -0
- package/dist/module-types/dashboard/components/StartAgentButton.d.ts +39 -0
- package/dist/module-types/dashboard/components/ui/badge.d.ts +2 -0
- package/dist/module-types/dashboard/components/ui/button.d.ts +10 -0
- package/dist/module-types/dashboard/components/ui/card.d.ts +5 -0
- package/dist/module-types/dashboard/components/ui/checkbox.d.ts +7 -0
- package/dist/module-types/dashboard/components/ui/dropdown-menu.d.ts +16 -0
- package/dist/module-types/dashboard/components/ui/input.d.ts +2 -0
- package/dist/module-types/dashboard/components/ui/option-label.d.ts +4 -0
- package/dist/module-types/dashboard/components/ui/popover.d.ts +8 -0
- package/dist/module-types/dashboard/components/ui/scroll-area.d.ts +10 -0
- package/dist/module-types/dashboard/components/ui/separator.d.ts +3 -0
- package/dist/module-types/dashboard/components/ui/skeleton.d.ts +2 -0
- package/dist/module-types/dashboard/components/ui/slider.d.ts +9 -0
- package/dist/module-types/dashboard/components/ui/tooltip.d.ts +11 -0
- package/dist/module-types/dashboard/lib/agent-settings.d.ts +2 -0
- package/dist/module-types/dashboard/lib/draft-handoff.d.ts +15 -0
- package/dist/module-types/dashboard/lib/format-date.d.ts +51 -0
- package/dist/module-types/dashboard/lib/host-services.d.ts +12 -0
- package/dist/module-types/dashboard/lib/models.d.ts +24 -0
- package/dist/module-types/dashboard/lib/route.d.ts +38 -0
- package/dist/module-types/dashboard/lib/rpc.d.ts +31 -0
- package/dist/module-types/dashboard/lib/use-action.d.ts +25 -0
- package/dist/module-types/dashboard/lib/use-async.d.ts +45 -0
- package/dist/module-types/dashboard/lib/use-modules.d.ts +79 -0
- package/dist/module-types/dashboard/lib/utils.d.ts +3 -0
- package/dist/module-types/dashboard/module/index.d.ts +335 -0
- package/dist/module-types/dashboard/rpc/models.d.ts +2 -0
- package/dist/module-types/dashboard/rpc/modules.d.ts +5 -0
- package/dist/module-types/src/agent-id.d.ts +12 -0
- package/dist/module-types/src/agent-locks.d.ts +2 -0
- package/dist/module-types/src/agent-view.d.ts +38 -0
- package/dist/module-types/src/bridge-browser.d.ts +216 -0
- package/dist/module-types/src/browser-stream.d.ts +19 -0
- package/dist/module-types/src/browser.d.ts +15 -0
- package/dist/module-types/src/built-in.d.ts +37 -0
- package/dist/module-types/src/client.d.ts +15 -0
- package/dist/module-types/src/cloud-run-state.d.ts +26 -0
- package/dist/module-types/src/dashboard/activity.d.ts +40 -0
- package/dist/module-types/src/dashboard/agent-handoff.d.ts +243 -0
- package/dist/module-types/src/dashboard/bridge-endpoints.d.ts +157 -0
- package/dist/module-types/src/dashboard/bridge-question.d.ts +32 -0
- package/dist/module-types/src/dashboard/bridge-store.d.ts +178 -0
- package/dist/module-types/src/dashboard/cache.d.ts +46 -0
- package/dist/module-types/src/dashboard/content-type.d.ts +2 -0
- package/dist/module-types/src/dashboard/dashboard.d.ts +37 -0
- package/dist/module-types/src/dashboard/docs.d.ts +38 -0
- package/dist/module-types/src/dashboard/git-status.d.ts +43 -0
- package/dist/module-types/src/dashboard/http.d.ts +28 -0
- package/dist/module-types/src/dashboard/interventions.d.ts +66 -0
- package/dist/module-types/src/dashboard/keyed-watcher.d.ts +28 -0
- package/dist/module-types/src/dashboard/keys.d.ts +30 -0
- package/dist/module-types/src/dashboard/models.d.ts +24 -0
- package/dist/module-types/src/dashboard/module-host.d.ts +43 -0
- package/dist/module-types/src/dashboard/module-serve.d.ts +14 -0
- package/dist/module-types/src/dashboard/open-in-app.d.ts +42 -0
- package/dist/module-types/src/dashboard/open-questions.d.ts +44 -0
- package/dist/module-types/src/dashboard/overview.d.ts +77 -0
- package/dist/module-types/src/dashboard/projects.d.ts +100 -0
- package/dist/module-types/src/dashboard/pull-requests.d.ts +126 -0
- package/dist/module-types/src/dashboard/queue.d.ts +16 -0
- package/dist/module-types/src/dashboard/quota.d.ts +52 -0
- package/dist/module-types/src/dashboard/remote-run.d.ts +94 -0
- package/dist/module-types/src/dashboard/rpc-serve.d.ts +105 -0
- package/dist/module-types/src/dashboard/run-inbox.d.ts +30 -0
- package/dist/module-types/src/dashboard/types.d.ts +134 -0
- package/dist/module-types/src/dashboard-rpc/context.d.ts +55 -0
- package/dist/module-types/src/dashboard-rpc/control.d.ts +123 -0
- package/dist/module-types/src/dashboard-rpc/devices.d.ts +8 -0
- package/dist/module-types/src/dashboard-rpc/events-tail.d.ts +67 -0
- package/dist/module-types/src/dashboard-rpc/events.d.ts +38 -0
- package/dist/module-types/src/dashboard-rpc/index.d.ts +28 -0
- package/dist/module-types/src/dashboard-rpc/models.d.ts +3 -0
- package/dist/module-types/src/dashboard-rpc/modules.d.ts +44 -0
- package/dist/module-types/src/dashboard-rpc/preferences.d.ts +40 -0
- package/dist/module-types/src/dashboard-rpc/projects.d.ts +84 -0
- package/dist/module-types/src/dashboard-rpc/quota.d.ts +3 -0
- package/dist/module-types/src/dashboard-rpc/reads.d.ts +184 -0
- package/dist/module-types/src/dashboard-rpc/relay-agent.d.ts +8 -0
- package/dist/module-types/src/dashboard-rpc/stream-forward.d.ts +16 -0
- package/dist/module-types/src/driver-names.d.ts +21 -0
- package/dist/module-types/src/error-message.d.ts +7 -0
- package/dist/module-types/src/event-stream.d.ts +32 -0
- package/dist/module-types/src/events.d.ts +235 -0
- package/dist/module-types/src/format-bytes.d.ts +2 -0
- package/dist/module-types/src/has-remote.d.ts +7 -0
- package/dist/module-types/src/index.d.ts +41 -0
- package/dist/module-types/src/jsonl-tail.d.ts +58 -0
- package/dist/module-types/src/loopback-host.d.ts +19 -0
- package/dist/module-types/src/node-fs.d.ts +32 -0
- package/dist/module-types/src/open-choices.d.ts +14 -0
- package/dist/module-types/src/openagent-dir.d.ts +10 -0
- package/dist/module-types/src/openagent-gitignore.d.ts +11 -0
- package/dist/module-types/src/pick-directory.d.ts +29 -0
- package/dist/module-types/src/preference-defaults.d.ts +42 -0
- package/dist/module-types/src/project-commands.d.ts +23 -0
- package/dist/module-types/src/project-errors.d.ts +59 -0
- package/dist/module-types/src/project-hooks.d.ts +129 -0
- package/dist/module-types/src/project-modules.d.ts +49 -0
- package/dist/module-types/src/project-presets.d.ts +29 -0
- package/dist/module-types/src/project.d.ts +28 -0
- package/dist/module-types/src/publish-levels.d.ts +32 -0
- package/dist/module-types/src/quota-boundary.d.ts +64 -0
- package/dist/module-types/src/quota-poller.d.ts +82 -0
- package/dist/module-types/src/registry.d.ts +226 -0
- package/dist/module-types/src/store/agent-checkout.d.ts +53 -0
- package/dist/module-types/src/store/agent-store.d.ts +266 -0
- package/dist/module-types/src/store/branches.d.ts +163 -0
- package/dist/module-types/src/store/git-host.d.ts +113 -0
- package/dist/module-types/src/store/index.d.ts +9 -0
- package/dist/module-types/src/store/provided.d.ts +16 -0
- package/dist/module-types/src/store/queue.d.ts +45 -0
- package/dist/module-types/src/store/repository.d.ts +32 -0
- package/dist/module-types/src/store/run-record.d.ts +21 -0
- package/dist/module-types/src/store/runs.d.ts +107 -0
- package/dist/module-types/src/store/tickets.d.ts +72 -0
- package/dist/module-types/src/terminal.d.ts +3 -0
- package/dist/module-types/src/worktrees.d.ts +89 -0
- package/dist/module.css +50 -0
- package/dist/node-fs.d.ts +33 -0
- package/dist/node-fs.d.ts.map +1 -0
- package/dist/node-fs.js +57 -0
- package/dist/node-fs.js.map +1 -0
- package/dist/open-choices.d.ts +15 -0
- package/dist/open-choices.d.ts.map +1 -0
- package/dist/open-choices.js +31 -0
- package/dist/open-choices.js.map +1 -0
- package/dist/openagent-dir.d.ts +11 -0
- package/dist/openagent-dir.d.ts.map +1 -0
- package/dist/openagent-dir.js +11 -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.d.ts +30 -0
- package/dist/pick-directory.d.ts.map +1 -0
- package/dist/pick-directory.js +102 -0
- package/dist/pick-directory.js.map +1 -0
- package/dist/preference-defaults.d.ts +43 -0
- package/dist/preference-defaults.d.ts.map +1 -0
- package/dist/preference-defaults.js +34 -0
- package/dist/preference-defaults.js.map +1 -0
- package/dist/project-commands.d.ts +24 -0
- package/dist/project-commands.d.ts.map +1 -0
- package/dist/project-commands.js +57 -0
- package/dist/project-commands.js.map +1 -0
- package/dist/project-errors.d.ts +60 -0
- package/dist/project-errors.d.ts.map +1 -0
- package/dist/project-errors.js +51 -0
- package/dist/project-errors.js.map +1 -0
- package/dist/project-hooks.d.ts +130 -0
- package/dist/project-hooks.d.ts.map +1 -0
- package/dist/project-hooks.js +232 -0
- package/dist/project-hooks.js.map +1 -0
- package/dist/project-modules.d.ts +50 -0
- package/dist/project-modules.d.ts.map +1 -0
- package/dist/project-modules.js +110 -0
- package/dist/project-modules.js.map +1 -0
- package/dist/project-pass.d.ts +32 -0
- package/dist/project-pass.d.ts.map +1 -0
- package/dist/project-pass.js +45 -0
- package/dist/project-pass.js.map +1 -0
- package/dist/project-presets.d.ts +30 -0
- package/dist/project-presets.d.ts.map +1 -0
- package/dist/project-presets.js +74 -0
- package/dist/project-presets.js.map +1 -0
- package/dist/project.d.ts +29 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +41 -0
- package/dist/project.js.map +1 -0
- package/dist/publish-levels.d.ts +33 -0
- package/dist/publish-levels.d.ts.map +1 -0
- package/dist/publish-levels.js +53 -0
- package/dist/publish-levels.js.map +1 -0
- package/dist/quota-boundary.d.ts +65 -0
- package/dist/quota-boundary.d.ts.map +1 -0
- package/dist/quota-boundary.js +135 -0
- package/dist/quota-boundary.js.map +1 -0
- package/dist/quota-poller.d.ts +83 -0
- package/dist/quota-poller.d.ts.map +1 -0
- package/dist/quota-poller.js +118 -0
- package/dist/quota-poller.js.map +1 -0
- package/dist/registry.d.ts +227 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +364 -0
- package/dist/registry.js.map +1 -0
- 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/request-path.d.ts +10 -0
- package/dist/request-path.d.ts.map +1 -0
- package/dist/request-path.js +16 -0
- package/dist/request-path.js.map +1 -0
- package/dist/store/agent-checkout.d.ts +54 -0
- package/dist/store/agent-checkout.d.ts.map +1 -0
- package/dist/store/agent-checkout.js +61 -0
- package/dist/store/agent-checkout.js.map +1 -0
- package/dist/store/agent-store.d.ts +267 -0
- package/dist/store/agent-store.d.ts.map +1 -0
- package/dist/store/agent-store.js +190 -0
- package/dist/store/agent-store.js.map +1 -0
- package/dist/store/branches.d.ts +164 -0
- package/dist/store/branches.d.ts.map +1 -0
- package/dist/store/branches.js +187 -0
- package/dist/store/branches.js.map +1 -0
- package/dist/store/git-host.d.ts +114 -0
- package/dist/store/git-host.d.ts.map +1 -0
- package/dist/store/git-host.js +103 -0
- package/dist/store/git-host.js.map +1 -0
- package/dist/store/index.d.ts +10 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +10 -0
- package/dist/store/index.js.map +1 -0
- package/dist/store/provided.d.ts +17 -0
- package/dist/store/provided.d.ts.map +1 -0
- package/dist/store/provided.js +37 -0
- package/dist/store/provided.js.map +1 -0
- package/dist/store/queue.d.ts +46 -0
- package/dist/store/queue.d.ts.map +1 -0
- package/dist/store/queue.js +61 -0
- package/dist/store/queue.js.map +1 -0
- package/dist/store/repository.d.ts +33 -0
- package/dist/store/repository.d.ts.map +1 -0
- package/dist/store/repository.js +25 -0
- package/dist/store/repository.js.map +1 -0
- package/dist/store/run-record.d.ts +22 -0
- package/dist/store/run-record.d.ts.map +1 -0
- package/dist/store/run-record.js +108 -0
- package/dist/store/run-record.js.map +1 -0
- package/dist/store/runs.d.ts +108 -0
- package/dist/store/runs.d.ts.map +1 -0
- package/dist/store/runs.js +146 -0
- package/dist/store/runs.js.map +1 -0
- package/dist/store/test-branches.d.ts +18 -0
- package/dist/store/test-branches.d.ts.map +1 -0
- package/dist/store/test-branches.js +59 -0
- package/dist/store/test-branches.js.map +1 -0
- package/dist/store/test-runs.d.ts +15 -0
- package/dist/store/test-runs.d.ts.map +1 -0
- package/dist/store/test-runs.js +37 -0
- package/dist/store/test-runs.js.map +1 -0
- package/dist/store/tickets.d.ts +73 -0
- package/dist/store/tickets.d.ts.map +1 -0
- package/dist/store/tickets.js +67 -0
- package/dist/store/tickets.js.map +1 -0
- package/dist/terminal.d.ts +4 -0
- package/dist/terminal.d.ts.map +1 -0
- package/dist/terminal.js +97 -0
- package/dist/terminal.js.map +1 -0
- package/dist/update-check.d.ts +44 -0
- package/dist/update-check.d.ts.map +1 -0
- package/dist/update-check.js +71 -0
- package/dist/update-check.js.map +1 -0
- package/dist/worktrees.d.ts +90 -0
- package/dist/worktrees.d.ts.map +1 -0
- package/dist/worktrees.js +123 -0
- package/dist/worktrees.js.map +1 -0
- package/package.json +103 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-check.d.ts","sourceRoot":"","sources":["../src/update-check.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,iFAAiF;AACjF,eAAO,MAAM,YAAY,uBAAuB,CAAA;AAEhD,wGAAwG;AACxG,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAEzE;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,cAAc,CAYnD;AAED,qCAAqC;AACrC,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC7D;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAExC;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAW5D;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,cAAc,EAC3B,GAAG,GAAE,MAAqB,GACzB,OAAO,CAAC,YAAY,CAAC,CAMvB;AAED,8FAA8F;AAC9F,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAS3E"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI "up-to-date?" check (#312): after the bare-`openagent` version footer,
|
|
3
|
+
* tell the user whether a newer version is published on npm. Display only;
|
|
4
|
+
* auto-update is a separate, deferred concern. Same seam + node-adapter +
|
|
5
|
+
* forgiving-on-error convention as `project.ts` (#380).
|
|
6
|
+
*/
|
|
7
|
+
/** The npm package this CLI ships as; the registry key for the version check. */
|
|
8
|
+
export const PACKAGE_NAME = '@openagt/dashboard';
|
|
9
|
+
/**
|
|
10
|
+
* A {@link VersionFetcher} backed by the npm registry. GETs the packument and
|
|
11
|
+
* reads `dist-tags.latest`. A 2.5s AbortSignal.timeout caps it; any error /
|
|
12
|
+
* non-ok / offline yields undefined (the check silently degrades to "unknown").
|
|
13
|
+
*/
|
|
14
|
+
export function nodeVersionFetcher() {
|
|
15
|
+
return async (pkg) => {
|
|
16
|
+
try {
|
|
17
|
+
const res = await fetch(`https://registry.npmjs.org/${pkg}`, { signal: AbortSignal.timeout(2500) });
|
|
18
|
+
if (!res.ok)
|
|
19
|
+
return undefined;
|
|
20
|
+
const data = (await res.json());
|
|
21
|
+
const latest = data?.['dist-tags']?.latest;
|
|
22
|
+
return typeof latest === 'string' ? latest : undefined;
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Compare two `major.minor.patch` versions numerically (a prerelease/build
|
|
31
|
+
* suffix after `-` or `+` is stripped, missing parts read as 0). Returns
|
|
32
|
+
* -1 / 0 / 1. No semver dependency.
|
|
33
|
+
*/
|
|
34
|
+
export function compareVersions(a, b) {
|
|
35
|
+
const parse = (v) => (v.split(/[-+]/)[0] ?? '').split('.').map(n => parseInt(n, 10) || 0);
|
|
36
|
+
const pa = parse(a);
|
|
37
|
+
const pb = parse(b);
|
|
38
|
+
for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
|
|
39
|
+
const na = pa[i] ?? 0;
|
|
40
|
+
const nb = pb[i] ?? 0;
|
|
41
|
+
if (na !== nb)
|
|
42
|
+
return na < nb ? -1 : 1;
|
|
43
|
+
}
|
|
44
|
+
return 0;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check whether `current` is behind the latest published version. Uses the
|
|
48
|
+
* injected fetcher; a missing/failed fetch is 'unknown'. `current` >= latest is
|
|
49
|
+
* 'up-to-date' (so running a local build ahead of the registry never reads as
|
|
50
|
+
* "update available").
|
|
51
|
+
*/
|
|
52
|
+
export async function checkForUpdate(current, fetchLatest, pkg = PACKAGE_NAME) {
|
|
53
|
+
const latest = await fetchLatest(pkg);
|
|
54
|
+
if (!latest)
|
|
55
|
+
return { kind: 'unknown', current };
|
|
56
|
+
return compareVersions(latest, current) > 0
|
|
57
|
+
? { kind: 'update-available', current, latest }
|
|
58
|
+
: { kind: 'up-to-date', current };
|
|
59
|
+
}
|
|
60
|
+
/** The one-line message to print for a status, or undefined for 'unknown' (print nothing). */
|
|
61
|
+
export function formatUpdateStatus(status) {
|
|
62
|
+
switch (status.kind) {
|
|
63
|
+
case 'up-to-date':
|
|
64
|
+
return `✅ Up to date (v${status.current})`;
|
|
65
|
+
case 'update-available':
|
|
66
|
+
return `⬆️ Update available: v${status.latest} (you have v${status.current}). Run: npm i -g ${PACKAGE_NAME}`;
|
|
67
|
+
case 'unknown':
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=update-check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-check.js","sourceRoot":"","sources":["../src/update-check.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,iFAAiF;AACjF,MAAM,CAAC,MAAM,YAAY,GAAG,oBAAoB,CAAA;AAKhD;;;;GAIG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,KAAK,EAAC,GAAG,EAAC,EAAE;QACjB,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,8BAA8B,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;YACnG,IAAI,CAAC,GAAG,CAAC,EAAE;gBAAE,OAAO,SAAS,CAAA;YAC7B,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAuD,CAAA;YACrF,MAAM,MAAM,GAAG,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,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CAAC,CAAA;IACrC,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAA;IAChD,OAAO,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC;QACzC,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,EAAE;QAC/C,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,CAAA;AACrC,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,kBAAkB,CAAC,MAAoB;IACrD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,YAAY;YACf,OAAO,kBAAkB,MAAM,CAAC,OAAO,GAAG,CAAA;QAC5C,KAAK,kBAAkB;YACrB,OAAO,0BAA0B,MAAM,CAAC,MAAM,eAAe,MAAM,CAAC,OAAO,oBAAoB,YAAY,EAAE,CAAA;QAC/G,KAAK,SAAS;YACZ,OAAO,SAAS,CAAA;IACpB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { type AgentStatus, type BranchesFor, type RunsFor } from './store/index.js';
|
|
2
|
+
/** A retained worktree and the agent that left it behind (#752). */
|
|
3
|
+
export interface WorktreeRow {
|
|
4
|
+
/** The agent id. */
|
|
5
|
+
agentId: string;
|
|
6
|
+
/** The branch the agent's work landed on, when its meta recorded one (#799). */
|
|
7
|
+
branch?: string;
|
|
8
|
+
/** How the agent that left this checkout ended, or `running` while it is still going. */
|
|
9
|
+
status?: AgentStatus;
|
|
10
|
+
/** Size on disk in bytes, absent for a live agent (its tree is still changing) or when unreadable. */
|
|
11
|
+
sizeBytes?: number;
|
|
12
|
+
/** True while the agent owning this checkout is still going: it is in use, not retained. */
|
|
13
|
+
live: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** The outcome of {@link removeProjectWorktree}. */
|
|
16
|
+
export type RemoveResult = {
|
|
17
|
+
ok: true;
|
|
18
|
+
/**
|
|
19
|
+
* Branches that went with the checkout: the branch it was on, when that held nothing of
|
|
20
|
+
* its own (#1650); the run-id branch the agent branched away from, when everything on
|
|
21
|
+
* it is in the branch that stays (#1657). Absent when nothing went.
|
|
22
|
+
*/
|
|
23
|
+
branchesDeleted?: string[];
|
|
24
|
+
} | {
|
|
25
|
+
ok: false;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The worktrees a project still has on disk (#752), newest first — the same view the dashboard's
|
|
30
|
+
* retained-worktrees list is built from, through the same store reads, so the CLI is a second
|
|
31
|
+
* surface rather than a second behaviour. The checkouts are what the project's branches provider
|
|
32
|
+
* lists (#1774); a project with no provider has none.
|
|
33
|
+
*
|
|
34
|
+
* A live agent's checkout is included and flagged rather than hidden: "what is this directory and
|
|
35
|
+
* why can I not remove it" is exactly the question the list has to answer.
|
|
36
|
+
*/
|
|
37
|
+
export declare function listProjectWorktrees(cwd: string, opts?: {
|
|
38
|
+
sizes?: boolean;
|
|
39
|
+
}, branches?: BranchesFor): Promise<WorktreeRow[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Remove one retained worktree (#752/#737/E5): the one implementation behind every surface that
|
|
42
|
+
* removes one: the dashboard's Remove button (#982). The run's own tool reclaims a finished run's
|
|
43
|
+
* checkout by the same rule; this is for the checkouts that rule kept.
|
|
44
|
+
*
|
|
45
|
+
* **One rule: only what is committed may go**: the rule is the branches provider's, whose
|
|
46
|
+
* `remove` takes a clean checkout and leaves its branch on this machine, pushing nothing
|
|
47
|
+
* (#1774); its refusal is answered in its own words.
|
|
48
|
+
*
|
|
49
|
+
* Refuses while the agent is still going — an agent's checkout is where its agent is working, and Stop
|
|
50
|
+
* is how you end an agent, not pulling the floor out from under it.
|
|
51
|
+
*/
|
|
52
|
+
export declare function removeProjectWorktree(cwd: string, agentId: string, branches?: BranchesFor): Promise<RemoveResult>;
|
|
53
|
+
/** The outcome of {@link deleteProjectAgent}. */
|
|
54
|
+
export type DeleteAgentResult = {
|
|
55
|
+
ok: true;
|
|
56
|
+
} | {
|
|
57
|
+
ok: false;
|
|
58
|
+
error: string;
|
|
59
|
+
};
|
|
60
|
+
/** Where {@link deleteProjectAgent} reads: the project's providers by default. */
|
|
61
|
+
export interface DeleteAgentOptions {
|
|
62
|
+
/** Where the project's finished runs are read and removed; the project's runs provider by default. */
|
|
63
|
+
runs?: RunsFor;
|
|
64
|
+
/** Where the project's checkouts are read and removed; the project's branches provider by default. */
|
|
65
|
+
branches?: BranchesFor;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Delete a session (#1032): take it out of the dashboard, records and all.
|
|
69
|
+
*
|
|
70
|
+
* This is the sibling of {@link removeProjectWorktree}, and the difference is the whole point.
|
|
71
|
+
* Remove-worktree reclaims the checkout on disk and keeps the session — its row, its replayable
|
|
72
|
+
* log — because the run is recorded on the data branch. Delete removes that record too: the card
|
|
73
|
+
* (`<id>.json`, what the rail lists) and the diary (`<id>.jsonl`, what replays), so the row is
|
|
74
|
+
* gone for good. It is the one destructive-of-history action, which is
|
|
75
|
+
* why the surfaces that call it confirm first. The run is on the data branch, so its deletion is
|
|
76
|
+
* itself a committed, pushed change.
|
|
77
|
+
*
|
|
78
|
+
* What it deliberately leaves is git's, not the dashboard's: the branch `agent-<id>`
|
|
79
|
+
* (or the name the agent gave it) and its commits. Deleting a branch that may carry merged work
|
|
80
|
+
* or an open PR is not a thing a
|
|
81
|
+
* dashboard action should do silently, so the branch stays and delete means "remove from the
|
|
82
|
+
* dashboard", not "erase every trace".
|
|
83
|
+
*
|
|
84
|
+
* Refuses while the agent is still going — Stop is how an agent ends. Any uncommitted work in the
|
|
85
|
+
* worktree is discarded with it, which is the intent here (the session is being thrown away),
|
|
86
|
+
* unlike remove-worktree, which refuses a checkout holding uncommitted work: the branches
|
|
87
|
+
* provider's `remove --discard` (#1774).
|
|
88
|
+
*/
|
|
89
|
+
export declare function deleteProjectAgent(cwd: string, agentId: string, opts?: DeleteAgentOptions): Promise<DeleteAgentResult>;
|
|
90
|
+
//# sourceMappingURL=worktrees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktrees.d.ts","sourceRoot":"","sources":["../src/worktrees.ts"],"names":[],"mappings":"AACA,OAAO,EAAoE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAErJ,oEAAoE;AACpE,MAAM,WAAW,WAAW;IAC1B,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,gFAAgF;IAChF,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yFAAyF;IACzF,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,sGAAsG;IACtG,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4FAA4F;IAC5F,IAAI,EAAE,OAAO,CAAA;CACd;AAED,oDAAoD;AACpD,MAAM,MAAM,YAAY,GACpB;IACE,EAAE,EAAE,IAAI,CAAA;IACR;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAC3B,GACD;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhC;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,EAAE,QAAQ,GAAE,WAA6B,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAuBvJ;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAE,WAA6B,GAAG,OAAO,CAAC,YAAY,CAAC,CAgBxI;AAED,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GAAG;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE3E,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IACjC,sGAAsG;IACtG,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,sGAAsG;IACtG,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,kBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA2BhI"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { errorMessage } from './error-message.js';
|
|
2
|
+
import { isRunId, listAgents, projectBranches, projectRuns, readLiveMetas } from './store/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* The worktrees a project still has on disk (#752), newest first — the same view the dashboard's
|
|
5
|
+
* retained-worktrees list is built from, through the same store reads, so the CLI is a second
|
|
6
|
+
* surface rather than a second behaviour. The checkouts are what the project's branches provider
|
|
7
|
+
* lists (#1774); a project with no provider has none.
|
|
8
|
+
*
|
|
9
|
+
* A live agent's checkout is included and flagged rather than hidden: "what is this directory and
|
|
10
|
+
* why can I not remove it" is exactly the question the list has to answer.
|
|
11
|
+
*/
|
|
12
|
+
export async function listProjectWorktrees(cwd, opts = {}, branches = projectBranches) {
|
|
13
|
+
const source = await branches(cwd).catch(() => undefined);
|
|
14
|
+
if (!source)
|
|
15
|
+
return [];
|
|
16
|
+
const [checkouts, live, archived] = await Promise.all([
|
|
17
|
+
// Sizing a tree an agent is writing to gives a number that is wrong by the time it prints;
|
|
18
|
+
// a caller that only wants the rows (the dashboard's retained list) skips the du entirely.
|
|
19
|
+
source.list(opts.sizes === false ? {} : { sizes: true }).catch(() => []),
|
|
20
|
+
readLiveMetas(cwd, undefined, branches).catch(() => []),
|
|
21
|
+
listAgents(cwd).catch(() => []),
|
|
22
|
+
]);
|
|
23
|
+
const rows = [];
|
|
24
|
+
for (const checkout of checkouts) {
|
|
25
|
+
const meta = live.find(agent => agent.id === checkout.id) ?? archived.find(agent => agent.id === checkout.id);
|
|
26
|
+
const isLive = meta?.status === 'running';
|
|
27
|
+
rows.push({
|
|
28
|
+
agentId: checkout.id,
|
|
29
|
+
live: isLive,
|
|
30
|
+
...(meta?.branch ? { branch: meta.branch } : {}),
|
|
31
|
+
...(meta?.status ? { status: meta.status } : {}),
|
|
32
|
+
...(!isLive && checkout.sizeBytes !== undefined ? { sizeBytes: checkout.sizeBytes } : {}),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return rows.sort((a, b) => (a.agentId < b.agentId ? 1 : a.agentId > b.agentId ? -1 : 0));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Remove one retained worktree (#752/#737/E5): the one implementation behind every surface that
|
|
39
|
+
* removes one: the dashboard's Remove button (#982). The run's own tool reclaims a finished run's
|
|
40
|
+
* checkout by the same rule; this is for the checkouts that rule kept.
|
|
41
|
+
*
|
|
42
|
+
* **One rule: only what is committed may go**: the rule is the branches provider's, whose
|
|
43
|
+
* `remove` takes a clean checkout and leaves its branch on this machine, pushing nothing
|
|
44
|
+
* (#1774); its refusal is answered in its own words.
|
|
45
|
+
*
|
|
46
|
+
* Refuses while the agent is still going — an agent's checkout is where its agent is working, and Stop
|
|
47
|
+
* is how you end an agent, not pulling the floor out from under it.
|
|
48
|
+
*/
|
|
49
|
+
export async function removeProjectWorktree(cwd, agentId, branches = projectBranches) {
|
|
50
|
+
if (!isRunId(agentId))
|
|
51
|
+
return { ok: false, error: `invalid session id: ${agentId}` };
|
|
52
|
+
const live = await readLiveMetas(cwd, undefined, branches).catch(() => []);
|
|
53
|
+
const agent = live.find(agent => agent.id === agentId);
|
|
54
|
+
if (agent?.status === 'running') {
|
|
55
|
+
return { ok: false, error: 'that session is still going; stop it before removing its worktree' };
|
|
56
|
+
}
|
|
57
|
+
const source = await branches(cwd).catch(() => undefined);
|
|
58
|
+
if (!source)
|
|
59
|
+
return { ok: false, error: 'no package of this project provides its checkouts' };
|
|
60
|
+
try {
|
|
61
|
+
// The commit the run's branch started from, when its card names one: a branch with no commit
|
|
62
|
+
// past it goes with the checkout, and one with its own work stays.
|
|
63
|
+
return await source.remove(agentId, agent?.baseCommit !== undefined ? { from: agent.baseCommit } : {});
|
|
64
|
+
}
|
|
65
|
+
catch (err) {
|
|
66
|
+
return { ok: false, error: errorMessage(err) };
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Delete a session (#1032): take it out of the dashboard, records and all.
|
|
71
|
+
*
|
|
72
|
+
* This is the sibling of {@link removeProjectWorktree}, and the difference is the whole point.
|
|
73
|
+
* Remove-worktree reclaims the checkout on disk and keeps the session — its row, its replayable
|
|
74
|
+
* log — because the run is recorded on the data branch. Delete removes that record too: the card
|
|
75
|
+
* (`<id>.json`, what the rail lists) and the diary (`<id>.jsonl`, what replays), so the row is
|
|
76
|
+
* gone for good. It is the one destructive-of-history action, which is
|
|
77
|
+
* why the surfaces that call it confirm first. The run is on the data branch, so its deletion is
|
|
78
|
+
* itself a committed, pushed change.
|
|
79
|
+
*
|
|
80
|
+
* What it deliberately leaves is git's, not the dashboard's: the branch `agent-<id>`
|
|
81
|
+
* (or the name the agent gave it) and its commits. Deleting a branch that may carry merged work
|
|
82
|
+
* or an open PR is not a thing a
|
|
83
|
+
* dashboard action should do silently, so the branch stays and delete means "remove from the
|
|
84
|
+
* dashboard", not "erase every trace".
|
|
85
|
+
*
|
|
86
|
+
* Refuses while the agent is still going — Stop is how an agent ends. Any uncommitted work in the
|
|
87
|
+
* worktree is discarded with it, which is the intent here (the session is being thrown away),
|
|
88
|
+
* unlike remove-worktree, which refuses a checkout holding uncommitted work: the branches
|
|
89
|
+
* provider's `remove --discard` (#1774).
|
|
90
|
+
*/
|
|
91
|
+
export async function deleteProjectAgent(cwd, agentId, opts = {}) {
|
|
92
|
+
if (!isRunId(agentId))
|
|
93
|
+
return { ok: false, error: `invalid session id: ${agentId}` };
|
|
94
|
+
const branches = opts.branches ?? projectBranches;
|
|
95
|
+
const live = await readLiveMetas(cwd, undefined, branches).catch(() => []);
|
|
96
|
+
if (live.some(agent => agent.id === agentId && agent.status === 'running')) {
|
|
97
|
+
return { ok: false, error: 'that session is still going; stop it before deleting it' };
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
// The checkout first, if the provider lists one: removed with its uncommitted work (it goes
|
|
101
|
+
// with the session), where remove-worktree would have refused it.
|
|
102
|
+
const source = await branches(cwd).catch(() => undefined);
|
|
103
|
+
if (source && (await source.list().catch(() => [])).some(checkout => checkout.id === agentId)) {
|
|
104
|
+
const removed = await source.remove(agentId, { discard: true });
|
|
105
|
+
if (!removed.ok)
|
|
106
|
+
return removed;
|
|
107
|
+
}
|
|
108
|
+
// Then the record that put the row in the list: the finished run, removed through the
|
|
109
|
+
// project's runs provider (#1582/#1769). Tolerant of an absent record, and of a project with
|
|
110
|
+
// no provider, so a half-deleted session (its worktree already gone) still finishes cleanly.
|
|
111
|
+
const runs = await (opts.runs ?? projectRuns)(cwd).catch(() => undefined);
|
|
112
|
+
if (runs && (await runs.list()).some(card => card.id === agentId)) {
|
|
113
|
+
const removed = await runs.remove(agentId);
|
|
114
|
+
if (!removed.ok)
|
|
115
|
+
return { ok: false, error: removed.error };
|
|
116
|
+
}
|
|
117
|
+
return { ok: true };
|
|
118
|
+
}
|
|
119
|
+
catch (err) {
|
|
120
|
+
return { ok: false, error: errorMessage(err) };
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=worktrees.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktrees.js","sourceRoot":"","sources":["../src/worktrees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAoD,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AE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAA;QAC7D,CAAC;QACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAA;IACrB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,CAAA;IAChD,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,106 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openagt/dashboard",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "OpenAgent: a local dashboard and daemon for coding agents. It starts an agent through the project's own start hook and shows every agent from the files it keeps; it runs no coding agent itself.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ai",
|
|
7
|
+
"agent",
|
|
8
|
+
"claude-code",
|
|
9
|
+
"orchestration",
|
|
10
|
+
"openagent",
|
|
11
|
+
"codegen",
|
|
12
|
+
"cli",
|
|
13
|
+
"turnkey"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://github.com/openagt/openagent/tree/main/packages/openagent#readme",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/openagt/openagent/issues"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/openagt/openagent.git",
|
|
23
|
+
"directory": "packages/openagent"
|
|
24
|
+
},
|
|
25
|
+
"type": "module",
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=22.12.0"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"bin": {
|
|
33
|
+
"openagent": "dist/bin.js"
|
|
34
|
+
},
|
|
35
|
+
"exports": {
|
|
36
|
+
"./module": {
|
|
37
|
+
"types": "./dist/module-types/dashboard/module/index.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./module.css": "./dist/module.css",
|
|
40
|
+
"./module-server": {
|
|
41
|
+
"types": "./dist/module-server.d.ts"
|
|
42
|
+
},
|
|
43
|
+
"./package.json": "./package.json"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@base-ui-components/react": "1.0.0-rc.0",
|
|
47
|
+
"@puppeteer/browsers": "3.2.1",
|
|
48
|
+
"@shadcn/react": "^0.2.1",
|
|
49
|
+
"@tiptap/core": "^2.10.0",
|
|
50
|
+
"@tiptap/pm": "^2.10.0",
|
|
51
|
+
"@tiptap/react": "^2.10.0",
|
|
52
|
+
"@tiptap/starter-kit": "^2.10.0",
|
|
53
|
+
"@tiptap/suggestion": "^2.10.0",
|
|
54
|
+
"class-variance-authority": "^0.7.1",
|
|
55
|
+
"clsx": "^2.1.1",
|
|
56
|
+
"lucide-react": "^0.469.0",
|
|
57
|
+
"react": "^19.2.0",
|
|
58
|
+
"react-dom": "^19.2.0",
|
|
59
|
+
"tailwind-merge": "^2.6.0",
|
|
60
|
+
"tiptap-markdown": "^0.8.10",
|
|
61
|
+
"yaml": "^2.5.0",
|
|
62
|
+
"@openagt/agent-driver-claude": "0.0.2",
|
|
63
|
+
"@openagt/agent-driver-codex": "0.0.2",
|
|
64
|
+
"@openagt/agent-data": "0.0.2",
|
|
65
|
+
"@openagt/files": "0.0.2",
|
|
66
|
+
"@openagt/skill-github": "0.0.2",
|
|
67
|
+
"@openagt/skill-logs": "0.0.2",
|
|
68
|
+
"@openagt/agent-driver": "0.0.2",
|
|
69
|
+
"@openagt/agent-runner": "0.0.2",
|
|
70
|
+
"@openagt/skill-branches": "0.0.2"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@tailwindcss/vite": "^4.0.0",
|
|
74
|
+
"@testing-library/dom": "^10.4.1",
|
|
75
|
+
"@testing-library/react": "^16.3.2",
|
|
76
|
+
"@types/node": "^20.0.0",
|
|
77
|
+
"@types/react": "^19.2.0",
|
|
78
|
+
"@types/react-dom": "^19.2.0",
|
|
79
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
80
|
+
"jsdom": "^29.1.1",
|
|
81
|
+
"tailwindcss": "^4.0.0",
|
|
82
|
+
"tsx": "^4.22.4",
|
|
83
|
+
"typescript": "^7.0.2",
|
|
84
|
+
"vite": "^8.0.0",
|
|
85
|
+
"vitest": "^4.1.10",
|
|
86
|
+
"@openagt/skill-queue": "0.0.2",
|
|
87
|
+
"@openagt/skill-tickets": "0.0.2"
|
|
88
|
+
},
|
|
89
|
+
"author": "Suleiman Shahbari",
|
|
90
|
+
"publishConfig": {
|
|
91
|
+
"access": "public"
|
|
92
|
+
},
|
|
93
|
+
"scripts": {
|
|
94
|
+
"build": "tsc -p tsconfig.build.json && tsc -p dashboard/tsconfig.module.json && cp dashboard/module/theme.css dist/module.css && cp src/module-server.d.ts dist/module-server.d.ts && node scripts/copy-extension.mjs && cd dashboard && vite build",
|
|
95
|
+
"preview": "node dist/bin.js",
|
|
96
|
+
"dev": "tsc -p tsconfig.build.json --watch",
|
|
97
|
+
"dev:dashboard": "cd dashboard && vite",
|
|
98
|
+
"dev:daemon": "cd dashboard && OPENAGENT_DEV_DAEMON=1 vite",
|
|
99
|
+
"design:build": "tsx dashboard/design/build.mts",
|
|
100
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p dashboard/tsconfig.json",
|
|
101
|
+
"test": "pnpm test:node && pnpm test:dashboard",
|
|
102
|
+
"test:node": "tsc -p tsconfig.test.json && node scripts/run-tests.mjs",
|
|
103
|
+
"test:dashboard": "cd dashboard && vitest run",
|
|
104
|
+
"clean": "rm -rf dist dist-test"
|
|
105
|
+
}
|
|
6
106
|
}
|