@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,226 @@
|
|
|
1
|
+
import { type PublishPick } from './publish-levels.js';
|
|
2
|
+
/**
|
|
3
|
+
* The multi-project registry (#390): the list of projects the user has
|
|
4
|
+
* installed OpenAgent into, kept as a single JSON file `.bashrc`-style —
|
|
5
|
+
* `$HOME/.openagent.json` — so it is the user's responsibility to re-create
|
|
6
|
+
* per machine. The same file also holds the user's dashboard preferences (#410),
|
|
7
|
+
* so the daemon owns one user file and the UI never needs localStorage.
|
|
8
|
+
*/
|
|
9
|
+
/** One registered project. */
|
|
10
|
+
export interface ProjectRecord {
|
|
11
|
+
/** Stable, URL-safe id derived from the path. */
|
|
12
|
+
id: string;
|
|
13
|
+
/** Absolute repo path. */
|
|
14
|
+
path: string;
|
|
15
|
+
/** ISO timestamp the project was added. */
|
|
16
|
+
addedAt: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The dashboard's Global options (#410), persisted next to the project list so they
|
|
20
|
+
* survive restarts without localStorage — the daemon reads/writes them, the SPA reads
|
|
21
|
+
* them over `POST /_rpc/onPreferences`. Mostly flat booleans mirroring the Start form's
|
|
22
|
+
* toggles; every field is optional and absent means off, except where a field documents its
|
|
23
|
+
* own default below.
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* A user-defined preset (#626): a named prompt the user saved to re-run their own high-signal
|
|
27
|
+
* prompts, listed as a saved prompt in the launcher's Commands menu beside the project's commands.
|
|
28
|
+
* Just data — the label is the menu item, the prompt is loaded verbatim into the editor. `id` is
|
|
29
|
+
* stable so edits/deletes address one.
|
|
30
|
+
*/
|
|
31
|
+
export interface CustomPreset {
|
|
32
|
+
id: string;
|
|
33
|
+
label: string;
|
|
34
|
+
prompt: string;
|
|
35
|
+
}
|
|
36
|
+
export interface Preferences {
|
|
37
|
+
/** Fire a browser notification when a new item lands on the "needs you" queue (#627). Absent = on. */
|
|
38
|
+
notifyBrowser?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Also notify on plain agent activity — an agent started, an agent finished (#627). The default-off
|
|
41
|
+
* counterpart to the always-on "needs you" notifications: it keeps you loosely informed of the
|
|
42
|
+
* pipeline moving even when nothing needs you. A *category* toggle: it composes with the method
|
|
43
|
+
* toggle {@link notifyBrowser}.
|
|
44
|
+
*/
|
|
45
|
+
notifyNewActivity?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The "needs you" category (#627): notify when an agent is awaiting your answer or a PR is ready
|
|
48
|
+
* to review. A *category* toggle, like {@link notifyNewActivity}, composing with the method
|
|
49
|
+
* toggle {@link notifyBrowser}. **Absent = on**: unlike the other
|
|
50
|
+
* flat opt-in booleans, human-intervention pings are the baseline OpenAgent leans on, so an
|
|
51
|
+
* unset preference keeps them firing; a user turns them off explicitly.
|
|
52
|
+
*/
|
|
53
|
+
notifyHumanIntervention?: boolean;
|
|
54
|
+
/** The model to run on (#628), e.g. `opus` / `sonnet`, handed to the project's start hook. Absent = the hook's own default. */
|
|
55
|
+
model?: string;
|
|
56
|
+
/** Which coding agent a run starts on (#650): `claude-code` or `codex`, handed to the project's start hook. Absent = the hook's own default. */
|
|
57
|
+
driver?: string;
|
|
58
|
+
/** How far a run started from the dashboard publishes its work: `nothing`, or the level handed to the project's start hook, `commit`, `branch`, `pr` or `merge`. The launcher's menu shows it and writes it. Absent = none saved: the daemon decides where a Start goes. */
|
|
59
|
+
publish?: PublishPick;
|
|
60
|
+
/**
|
|
61
|
+
* Where an agent started from the launcher starts, per project: the projects, by id, whose
|
|
62
|
+
* launcher is set to "My local branch" (the branch the project's folder is on, as this machine
|
|
63
|
+
* has it). The launcher's "start from" chip shows it and writes it. **A project not listed
|
|
64
|
+
* starts from its main branch**, so the default stores nothing.
|
|
65
|
+
*/
|
|
66
|
+
startFrom?: Record<string, 'local'>;
|
|
67
|
+
/**
|
|
68
|
+
* Post-merge cleanup: a run started from the launcher, in a project that has the
|
|
69
|
+
* `post-merge-cleanup` command, is followed by a fresh agent running it on the run's branch
|
|
70
|
+
* before the run's pull request merges. The default of the launcher's box, which writes it
|
|
71
|
+
* too. **Absent = off.**
|
|
72
|
+
*/
|
|
73
|
+
postMergeCleanup?: boolean;
|
|
74
|
+
/** Preferred editor for "Open in editor" (#727): an editor CLI (e.g. `code`, `cursor`, `zed`).
|
|
75
|
+
* Absent falls back to `$OPENAGENT_EDITOR`, then `code`. */
|
|
76
|
+
editor?: string;
|
|
77
|
+
/** Dashboard color theme (#725): `system` (follow the OS, the default), `light`, or `dark`. Absent = system. */
|
|
78
|
+
theme?: 'system' | 'light' | 'dark';
|
|
79
|
+
/**
|
|
80
|
+
* The browser bridge (#1237): let an extension running in the user's own Claude session report
|
|
81
|
+
* the question a Claude web agent is parked on, so it shows in the dashboard rather than only on
|
|
82
|
+
* claude.ai. **Absent = off.** It opens the daemon's one route reachable from another origin,
|
|
83
|
+
* so it is opt-in rather than a baseline, and turning it on is what mints the bridge token.
|
|
84
|
+
*/
|
|
85
|
+
bridge?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* The bridge browser (#1332): let the daemon run its own Chrome for Testing with the bridge
|
|
88
|
+
* extension installed, signed in once and kept minimized, so web runs stop depending on the
|
|
89
|
+
* user's own Chrome being open. **Absent = off**: it downloads a browser and keeps a signed-in
|
|
90
|
+
* claude.ai session on disk, neither of which should happen unasked. Needs {@link bridge}.
|
|
91
|
+
*/
|
|
92
|
+
bridgeBrowser?: boolean;
|
|
93
|
+
/** User-defined presets (#626): the user's own saved prompts, shown in the Commands menu beside the project's commands. */
|
|
94
|
+
customPresets?: CustomPreset[];
|
|
95
|
+
/**
|
|
96
|
+
* Whether the Overview's Onboarding checklist has been dismissed (#958). Absent = show it,
|
|
97
|
+
* so a fresh install is walked through setup; dismissing only hides it on the Overview, and
|
|
98
|
+
* the same checklist stays available on the settings page.
|
|
99
|
+
*/
|
|
100
|
+
onboardingDismissed?: boolean;
|
|
101
|
+
}
|
|
102
|
+
/** The persisted registry file shape (#410): the project list plus the user preferences. */
|
|
103
|
+
export interface Registry {
|
|
104
|
+
projects: ProjectRecord[];
|
|
105
|
+
preferences: Preferences;
|
|
106
|
+
/**
|
|
107
|
+
* The shared daemon token (#1051): generated on the first non-loopback bind and reused after.
|
|
108
|
+
* A top-level field, deliberately not a {@link Preferences} one, so it is never shipped to the
|
|
109
|
+
* browser bundle. Absent on a loopback-only machine.
|
|
110
|
+
*/
|
|
111
|
+
daemonToken?: string;
|
|
112
|
+
}
|
|
113
|
+
/** A read/write handle for the user preferences, wired into the dashboard's context by the daemon. */
|
|
114
|
+
export interface PreferencesStore {
|
|
115
|
+
read(): Promise<Preferences>;
|
|
116
|
+
save(preferences: Preferences): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Merge only the keys the caller changed (#1148) and hand back the stored result. Preferred over
|
|
119
|
+
* {@link save}, which replaces the whole block from a snapshot that may already be stale.
|
|
120
|
+
*/
|
|
121
|
+
patch(patch: Preferences): Promise<Preferences>;
|
|
122
|
+
}
|
|
123
|
+
/** The registry file name: a single file under `$XDG_CONFIG_HOME` (dotted under `$HOME`). */
|
|
124
|
+
export declare const REGISTRY_FILE = "openagent.json";
|
|
125
|
+
/** Owner read/write only: the file holds the daemon token (#1051). */
|
|
126
|
+
export declare const REGISTRY_FILE_MODE = 384;
|
|
127
|
+
/**
|
|
128
|
+
* Deterministic, URL-safe id for a project path: the sanitized basename plus a
|
|
129
|
+
* short hash of the full path, so two repos named alike still get distinct ids.
|
|
130
|
+
* Pure; same path always yields the same id.
|
|
131
|
+
*/
|
|
132
|
+
export declare function projectId(path: string): string;
|
|
133
|
+
/**
|
|
134
|
+
* The registry file path, resolved from `env` (injectable so tests never touch
|
|
135
|
+
* the real home): `$XDG_CONFIG_HOME/openagent.json` when set, else the
|
|
136
|
+
* dotted `$HOME/.openagent.json`. A single file, not a directory (#390).
|
|
137
|
+
*/
|
|
138
|
+
export declare function registryPath(env: NodeJS.ProcessEnv): string;
|
|
139
|
+
/** Minimal fs seam so the registry is unit-testable without touching disk. */
|
|
140
|
+
export interface RegistryFs {
|
|
141
|
+
/** Rejects when the file is absent. */
|
|
142
|
+
read(path: string): Promise<string>;
|
|
143
|
+
write(path: string, contents: string): Promise<void>;
|
|
144
|
+
/** Recursive; used on the registry file's parent dir. */
|
|
145
|
+
mkdir(path: string): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* Replace `to` with `from`, atomically. Optional only so an existing implementation of this
|
|
148
|
+
* seam keeps compiling; without it {@link writeRegistry} falls back to the truncate-then-write
|
|
149
|
+
* this method exists to avoid (#991).
|
|
150
|
+
*/
|
|
151
|
+
rename?(from: string, to: string): Promise<void>;
|
|
152
|
+
/**
|
|
153
|
+
* Narrow a file's permissions. Optional, and best-effort at the call site: this file holds the
|
|
154
|
+
* daemon token (#1051), so it is written owner-only — but a
|
|
155
|
+
* filesystem that cannot express that (Windows, a FAT volume) must not fail the write.
|
|
156
|
+
*/
|
|
157
|
+
chmod?(path: string, mode: number): Promise<void>;
|
|
158
|
+
}
|
|
159
|
+
/** A {@link RegistryFs} backed by `node:fs/promises`. See {@link nodeFs}. */
|
|
160
|
+
export declare function nodeRegistryFs(): RegistryFs;
|
|
161
|
+
/**
|
|
162
|
+
* Keep only well-formed custom presets (#626): each needs a non-empty id, label, and prompt;
|
|
163
|
+
* label/prompt are trimmed and length-capped, the list capped at {@link CUSTOM_PRESET_LIMITS.count},
|
|
164
|
+
* and duplicate ids dropped. A malformed entry is skipped, not thrown — a bad registry never breaks the read.
|
|
165
|
+
*/
|
|
166
|
+
export declare function sanitizeCustomPresets(value: unknown): CustomPreset[];
|
|
167
|
+
/**
|
|
168
|
+
* Read the whole registry. Forgiving: a missing / unreadable / malformed file — or one in a shape
|
|
169
|
+
* this no longer writes — yields an empty registry, never throws. Projects are deduped by resolved
|
|
170
|
+
* path and unknown preference fields are dropped.
|
|
171
|
+
*/
|
|
172
|
+
export declare function readRegistry(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<Registry>;
|
|
173
|
+
/**
|
|
174
|
+
* Read the registry's project list. Forgiving: a missing / unreadable / malformed
|
|
175
|
+
* file yields `[]`, never throws. Deduped by resolved path, first wins.
|
|
176
|
+
*/
|
|
177
|
+
export declare function listProjects(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<ProjectRecord[]>;
|
|
178
|
+
/**
|
|
179
|
+
* Register a project. Idempotent by resolved path: when the path is already
|
|
180
|
+
* registered, the existing record is returned untouched (addedAt survives);
|
|
181
|
+
* otherwise the new record is appended and the file written back (preferences preserved).
|
|
182
|
+
*/
|
|
183
|
+
export declare function addProject(path: string, addedAt: string, fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<ProjectRecord>;
|
|
184
|
+
/**
|
|
185
|
+
* Take a project off the list, by id. Answers the record that was removed, or `undefined` when
|
|
186
|
+
* no project has that id. Only the list changes: nothing in the project's folder is touched, so
|
|
187
|
+
* a project whose folder is gone is removed like any other.
|
|
188
|
+
*/
|
|
189
|
+
export declare function removeProject(id: string, fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<ProjectRecord | undefined>;
|
|
190
|
+
/** The user's dashboard preferences (#410), or `{}` when none are stored. */
|
|
191
|
+
export declare function readPreferences(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<Preferences>;
|
|
192
|
+
/** Persist the dashboard preferences (#410), sanitized, preserving the project list. */
|
|
193
|
+
export declare function writePreferences(preferences: Preferences, fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<void>;
|
|
194
|
+
/**
|
|
195
|
+
* Merge `patch` over the stored preferences (#1148) and return the result.
|
|
196
|
+
*
|
|
197
|
+
* The counterpart to {@link writePreferences}, which replaces the whole block: a client that
|
|
198
|
+
* sends its entire snapshot replays every value it happens to hold, so a dashboard tab opened
|
|
199
|
+
* before someone else's change silently reverted it on the tab's next write, whatever key that
|
|
200
|
+
* write was actually about. Sending only the changed keys makes a write touch only what it names.
|
|
201
|
+
*
|
|
202
|
+
* Clearing needs no sentinel: {@link sanitizePreferences} already drops blank strings and empty
|
|
203
|
+
* lists, so `{ editor: '' }` merges in as blank and comes out absent, which is how the dashboard
|
|
204
|
+
* clears the editor today.
|
|
205
|
+
*/
|
|
206
|
+
export declare function patchPreferences(patch: Preferences, fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<Preferences>;
|
|
207
|
+
/**
|
|
208
|
+
* The shared daemon token (#1051): read the persisted one, or generate + persist it now. Called
|
|
209
|
+
* only on a non-loopback bind, so a loopback-only machine never grows one. Serialized with the
|
|
210
|
+
* other mutators so two concurrent binds can't each write a different token. `base64url` of 32
|
|
211
|
+
* random bytes: URL-safe, so it drops straight into a `?token=` without encoding.
|
|
212
|
+
*/
|
|
213
|
+
export declare function ensureDaemonToken(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<string>;
|
|
214
|
+
/** The persisted daemon token (#1051), or `undefined` when none exists. A pure read, so a process
|
|
215
|
+
* that only prints the reachable URL never generates one. */
|
|
216
|
+
export declare function readDaemonToken(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<string | undefined>;
|
|
217
|
+
/** A {@link PreferencesStore} bound to the real registry file, wired by the daemon so the
|
|
218
|
+
* dashboard's preferences RPCs read/write the user's home file.
|
|
219
|
+
*
|
|
220
|
+
* `onChange` is handed **the keys the caller wrote**, not the merged result, so a listener can
|
|
221
|
+
* tell "this write switched the setting on" from "it was already on and something else changed"
|
|
222
|
+
* (#1161). It runs after the write has landed, and its failure is swallowed: the save succeeded,
|
|
223
|
+
* and a listener must not be able to report otherwise: a setting saved in the browser has to
|
|
224
|
+
* reach the daemon's own services without a restart.
|
|
225
|
+
*/
|
|
226
|
+
export declare function registryPreferencesStore(fs?: RegistryFs, env?: NodeJS.ProcessEnv, onChange?: (written: Preferences) => void): PreferencesStore;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type BranchesFor, type Checkout } from './branches.js';
|
|
2
|
+
import { type AnyDiaryLine, type RunsFor } from './runs.js';
|
|
3
|
+
/**
|
|
4
|
+
* A run's checkout, as the project's branches provider lists it, or `undefined` when it lists
|
|
5
|
+
* none for the id. The provider's list is shared for a few seconds; a run that is not in it may
|
|
6
|
+
* have started a moment ago, so a miss asks once more, fresh (`branches.ts` bounds how fresh).
|
|
7
|
+
*/
|
|
8
|
+
export declare function findCheckout(projectCwd: string, agentId: string, branches: BranchesFor, opts?: {
|
|
9
|
+
cached?: boolean;
|
|
10
|
+
}): Promise<Checkout | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* The checkout an agent id resolves to (#738/#797): the agent's own checkout while the project's
|
|
13
|
+
* branches provider lists one for it, else the project root. The list is asked fresh on a miss:
|
|
14
|
+
* a run that just started has its checkout before its tool has written the card (#766), and the
|
|
15
|
+
* event stream resolves its path once, when the browser opens it.
|
|
16
|
+
*
|
|
17
|
+
* An unknown or finished `agentId` falls back to the project root rather than failing: the
|
|
18
|
+
* run's checkout may already be gone, and the project's own state is still the sane thing to
|
|
19
|
+
* act on. This is the one resolution every run-addressed surface shares — the daemon's serve
|
|
20
|
+
* targets and previews, and each dashboard RPC — so the fallback rules cannot drift apart.
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveAgentCheckout(projectCwd: string, agentId: string | undefined, branches?: BranchesFor): Promise<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Where a run's diary is, for a reader that follows it: a file while the run has a checkout, the
|
|
25
|
+
* finished run's lines once it has none, or nowhere yet (`pending`): the run was started a moment
|
|
26
|
+
* ago and its tool has not made the checkout, so the reader asks again shortly.
|
|
27
|
+
*/
|
|
28
|
+
export type AgentDiarySource = {
|
|
29
|
+
file: string;
|
|
30
|
+
} | {
|
|
31
|
+
finished: AnyDiaryLine[];
|
|
32
|
+
} | {
|
|
33
|
+
pending: true;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The diary a run-scoped subscribe should follow (#1472, #1774): the run's own `<id>.jsonl`.
|
|
37
|
+
* While the run has a checkout it is a file there, under the checkout's `.openagent/`,
|
|
38
|
+
* written by the run's tool as the agent works. Once the run is recorded and its checkout
|
|
39
|
+
* reclaimed, it is the finished run's diary, whole, from the project's runs provider. A run that
|
|
40
|
+
* has neither yet was started a moment ago: its tool has not made the checkout, so the diary is
|
|
41
|
+
* nowhere yet, and the tail asks again (`../dashboard-rpc/events-tail.ts`). A project with no
|
|
42
|
+
* runs provider answers the same for a finished run: nowhere, where nothing more comes.
|
|
43
|
+
*
|
|
44
|
+
* `cached` answers from the shared lists only, never asking the checkouts fresh on a miss: for a
|
|
45
|
+
* reader that asks about a finished run for as long as it is open, in case it is resumed.
|
|
46
|
+
*
|
|
47
|
+
* Only the events tails resolve here; every other run-addressed surface keeps
|
|
48
|
+
* {@link resolveAgentCheckout}'s root fallback, where the project's own state is the sane
|
|
49
|
+
* thing to act on.
|
|
50
|
+
*/
|
|
51
|
+
export declare function resolveAgentDiary(projectCwd: string, agentId: string | undefined, runs?: RunsFor, branches?: BranchesFor, opts?: {
|
|
52
|
+
cached?: boolean;
|
|
53
|
+
}): Promise<AgentDiarySource | undefined>;
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import type { OpenAgentEvent } from '../events.js';
|
|
2
|
+
import { type BranchesFor, type Checkout } from './branches.js';
|
|
3
|
+
import { type AnyDiaryLine, type RunsFor } from './runs.js';
|
|
4
|
+
/**
|
|
5
|
+
* The read side of a project's runs (#1774). The daemon runs no agent and writes no run: a run's
|
|
6
|
+
* tool keeps the run's card (`<id>.json`) and diary (`<id>.jsonl`) under the `.openagent/`
|
|
7
|
+
* of the run's own checkout while it works, and a finished run is whatever the project's runs
|
|
8
|
+
* provider answers (`runs.ts`), when one of its packages provides them. The dashboard is a
|
|
9
|
+
* projection of those files and that answer.
|
|
10
|
+
*/
|
|
11
|
+
export type AgentStatus = 'running' | 'done' | 'stopped' | 'failed' | 'waiting';
|
|
12
|
+
/**
|
|
13
|
+
* A queryable snapshot of the agent, derived entirely from the event log. Lets the
|
|
14
|
+
* dashboard render a header (and a future agent list) without parsing every line.
|
|
15
|
+
*/
|
|
16
|
+
export interface AgentMeta {
|
|
17
|
+
status: AgentStatus;
|
|
18
|
+
/** Stable, path-safe id for this agent (derived from {@link startedAt}). */
|
|
19
|
+
id: string;
|
|
20
|
+
/** ISO timestamp the store was opened (run start). */
|
|
21
|
+
startedAt: string;
|
|
22
|
+
/** ISO timestamp of the last event written. */
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
/** ISO timestamp the run ended (the `end` event), absent while it is going. The skill's card field. */
|
|
25
|
+
endedAt?: string;
|
|
26
|
+
/** What the run cost so far in US dollars, summed over its `usage` events; absent until one says. The skill's card field. */
|
|
27
|
+
cost?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The OS pid of the process running this run, on {@link host} — whatever process the project's
|
|
30
|
+
* start hook began. Recorded on the card so Stop has something to signal, and so a reader can
|
|
31
|
+
* tell a run that is working from one whose process died without recording an ending (#716).
|
|
32
|
+
*/
|
|
33
|
+
pid?: number;
|
|
34
|
+
/** The host the owning {@link pid} lives on, so a pid probe only trusts a match (#716). */
|
|
35
|
+
host?: string;
|
|
36
|
+
/** What this session was asked for (from the `intent` event). */
|
|
37
|
+
intent?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The run this one was started for, by its id: this run is that run's subagent. Written on the
|
|
40
|
+
* card by the tool that started it; absent on a run a person or a schedule started.
|
|
41
|
+
*/
|
|
42
|
+
parent?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The branch the run was told to start from, by its name: a person's local branch picked in the
|
|
45
|
+
* launcher, or, for a subagent, its main agent's branch. Written on the card by the tool that
|
|
46
|
+
* started it; absent on a run that started from origin's default branch.
|
|
47
|
+
*/
|
|
48
|
+
base?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The commit the run's own work begins at: where its branch was made, for a run started from a
|
|
51
|
+
* branch other than the default one (a subagent starts from its main agent's). Its changes are
|
|
52
|
+
* measured from it; absent, from the default branch. Written on the card by the tool that
|
|
53
|
+
* started it.
|
|
54
|
+
*/
|
|
55
|
+
baseCommit?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The last commit of the run's work, written on the card when its main agent landed it: its
|
|
58
|
+
* branch is gone, and its changes are read from this commit. Absent on a run that is not landed.
|
|
59
|
+
*/
|
|
60
|
+
landed?: string;
|
|
61
|
+
/** The wrapped agent (from the `session` event). */
|
|
62
|
+
driver?: string;
|
|
63
|
+
/** The workspace the agent builds in (from the `session` event). */
|
|
64
|
+
workspace?: string;
|
|
65
|
+
/** The wrapped agent's real session id, once it reports one. */
|
|
66
|
+
sessionId?: string;
|
|
67
|
+
/** The link shown to jump into the live agent session. */
|
|
68
|
+
sessionLink?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The branch the agent's work is on: the card's, and for a run with a checkout the branch that
|
|
71
|
+
* checkout has checked out right now (the branches provider reads it), since the agent renames
|
|
72
|
+
* its branch itself while the card learns the new name only when the run ends.
|
|
73
|
+
*
|
|
74
|
+
* Recorded, not derived: a clean agent loses its checkout, and the agent renames its branch
|
|
75
|
+
* itself (#1725), so no name built from the run's id is guaranteed to be the one holding the
|
|
76
|
+
* commits.
|
|
77
|
+
*/
|
|
78
|
+
branch?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The hand-off anchor a cloud run pushed for its session to clone at (#1601): an empty commit
|
|
81
|
+
* unique to this run, folded from the `cloud-anchor` event. The session works on a `claude/*`
|
|
82
|
+
* branch of the cloud's own naming, and this is the ancestor by which the daemon's adoption
|
|
83
|
+
* pass recognizes which of origin's `claude/*` heads is this run's. Absent on non-web runs
|
|
84
|
+
* and on web runs whose pre-hand-off push failed.
|
|
85
|
+
*/
|
|
86
|
+
cloudAnchor?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The pull request this session's work is on (E6), recorded when one is opened rather than
|
|
89
|
+
* re-derived from branch names and timestamps by every surface that wants it.
|
|
90
|
+
*/
|
|
91
|
+
pr?: {
|
|
92
|
+
number: number;
|
|
93
|
+
url: string;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* What this session's end-of-session handoff is armed to do (#1102): push its branch, and open
|
|
97
|
+
* a draft PR for it. Both start on.
|
|
98
|
+
*
|
|
99
|
+
* On the meta because the checkboxes that show it live in a different process from the agent that
|
|
100
|
+
* obeys it, and a tab opened after the agent started has no event history to fold — the same
|
|
101
|
+
* reason {@link browserStreamPort} is here. Absent means an older agent, which the reader treats
|
|
102
|
+
* as armed, matching what that agent will actually do.
|
|
103
|
+
*
|
|
104
|
+
* `merge` mirrors the auto-merge arming (#1216, #1382) — display-only, like the rest of this
|
|
105
|
+
* field: the agent merges off its own config, never off the meta. Absent on records from before
|
|
106
|
+
* #1382, which the reader treats as off.
|
|
107
|
+
*/
|
|
108
|
+
handoff?: {
|
|
109
|
+
push: boolean;
|
|
110
|
+
pr: boolean;
|
|
111
|
+
merge?: boolean;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* How the handoff's merge half went (#1418), folded from the `handoff` event's `merge` field.
|
|
115
|
+
*
|
|
116
|
+
* What the daemon's CI watch scans for: `watched` is a PR waiting for green that *this* side
|
|
117
|
+
* must merge (the repo could not arm the git host's auto-merge), `auto-armed` one the git host will land by
|
|
118
|
+
* itself but whose checks going red is still ours to notice. On the meta because the watch
|
|
119
|
+
* reads metas, not event logs, and must survive both the agent's process and the daemon's.
|
|
120
|
+
* Absent on runs from before this field, and on every agent whose handoff had no merge to report.
|
|
121
|
+
*/
|
|
122
|
+
mergeOutcome?: 'auto-armed' | 'merged' | 'watched' | 'withheld' | 'failed';
|
|
123
|
+
/**
|
|
124
|
+
* The choice gate the agent is currently parked on (#636): set when a `choice` event fires and
|
|
125
|
+
* cleared when its `choice-resolved` (or the agent's `end`) arrives. Present means the agent is
|
|
126
|
+
* paused waiting for the user's answer — the second "needs you" source after open PRs (#624).
|
|
127
|
+
*/
|
|
128
|
+
pendingChoice?: {
|
|
129
|
+
id: string;
|
|
130
|
+
title: string;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* The browser bridge holds a question this run's cloud session is parked on (#1668). Not stored:
|
|
134
|
+
* the daemon annotates a web run's record on the way to the dashboard, the way a relayed run's
|
|
135
|
+
* label is, because the bridge store is in memory and the archive on disk knows nothing of it.
|
|
136
|
+
*/
|
|
137
|
+
cloudWaiting?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* The run was started by another machine's daemon (#1648): its {@link host} is not this one.
|
|
140
|
+
* Not stored either — annotated on the way to the dashboard like {@link cloudWaiting}, since
|
|
141
|
+
* the shared data branch shows every machine's runs here and only this daemon knows which host
|
|
142
|
+
* it is.
|
|
143
|
+
*/
|
|
144
|
+
otherHost?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* The run ended clean and its process is still alive on this host: the tool that runs it is
|
|
147
|
+
* still saving its record and cleaning up its checkout, the window every surface says "saving…" for.
|
|
148
|
+
* Not stored: annotated on the way to the dashboard like {@link otherHost}, since only this
|
|
149
|
+
* machine can ask whether the process is alive.
|
|
150
|
+
*/
|
|
151
|
+
saving?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* The loopback port the agent's browser preview is listening on (#813), or absent when the agent
|
|
154
|
+
* has no browser. What lets the daemon proxy the pane: the port is allocated per agent and the
|
|
155
|
+
* dashboard is a different process, so meta is the only place it can learn it.
|
|
156
|
+
*/
|
|
157
|
+
browserStreamPort?: number;
|
|
158
|
+
/**
|
|
159
|
+
* Where this run executes (#1050/#1053/#610): `actions` for a GitHub Actions run, `web` for a
|
|
160
|
+
* Claude Code cloud session, `remote` when relayed to a connected device (#1067), absent for a
|
|
161
|
+
* local run. Persisted so the agent view can tell a burst-mode Actions run from a stalled live
|
|
162
|
+
* feed, show a cloud agent's session link after a reload, and gate the browser pane off (#1053).
|
|
163
|
+
*/
|
|
164
|
+
target?: 'local' | 'actions' | 'remote' | 'web';
|
|
165
|
+
/** The connected device a remote agent (#1067) executes on, for the session list + notice after a reload. */
|
|
166
|
+
remoteLabel?: string;
|
|
167
|
+
/**
|
|
168
|
+
* The flow this agent started under (#1467): `build` for the scope→build orchestration, `prompt`
|
|
169
|
+
* for the direct-prompt path (research and transparent runs record `prompt` too). Persisted so a
|
|
170
|
+
* continuation (#762) can re-enter the flow its first leg ran — the composer's Resume always
|
|
171
|
+
* arrives as a `prompt` start, and without this record a resumed build agent ended as a bare
|
|
172
|
+
* prompt session (no synthesize framing, no backlog offer). Absent on records from before this
|
|
173
|
+
* field, which a reader treats as unknown (the continuation then keeps the prompt path).
|
|
174
|
+
*/
|
|
175
|
+
kind?: 'build' | 'prompt';
|
|
176
|
+
/**
|
|
177
|
+
* The model id the current leg's agent was started with (#1438), folded from each leg's
|
|
178
|
+
* `session` event — a continuation (#762) may run a different model than the first leg, so
|
|
179
|
+
* the latest leg wins rather than the first pinning it. Absent when the leg left the agent
|
|
180
|
+
* on its own default (and on records from before this field).
|
|
181
|
+
*/
|
|
182
|
+
model?: string;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* The slice of a filesystem the store's reads need: the logic is testable with an in-memory fs,
|
|
186
|
+
* and only {@link nodeStoreFs} touches disk.
|
|
187
|
+
*/
|
|
188
|
+
export interface StoreFs {
|
|
189
|
+
read(path: string): Promise<string>;
|
|
190
|
+
write(path: string, contents: string): Promise<void>;
|
|
191
|
+
append(path: string, contents: string): Promise<void>;
|
|
192
|
+
exists(path: string): Promise<boolean>;
|
|
193
|
+
mkdir(path: string): Promise<void>;
|
|
194
|
+
/** List a directory's entries (names only). Missing dir yields `[]`. */
|
|
195
|
+
readdir(path: string): Promise<string[]>;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* A project's finished runs, most-recent first: what its runs provider answers, unfolded into
|
|
199
|
+
* OpenAgent's meta. No provider, or one that cannot be read, is no runs, never a throw.
|
|
200
|
+
*
|
|
201
|
+
* `since` (epoch ms) is for a caller that only wants recent runs — a poll on a cadence, not the
|
|
202
|
+
* history list. `fresh` asks the provider past its last answer: the caller knows a run just finished.
|
|
203
|
+
*/
|
|
204
|
+
export declare function listAgents(cwd: string, runs?: RunsFor, opts?: {
|
|
205
|
+
since?: number;
|
|
206
|
+
fresh?: boolean;
|
|
207
|
+
}): Promise<AgentMeta[]>;
|
|
208
|
+
/**
|
|
209
|
+
* One finished run's whole diary, from the project's runs provider: for a reader that follows a
|
|
210
|
+
* run past its checkout. `undefined` for an unknown or unsafe id, a project with no provider, and
|
|
211
|
+
* a record that still says `running` — the marker a run's tool may leave as it starts, before its
|
|
212
|
+
* checkout exists: that run is not finished, its diary is still to come in the checkout.
|
|
213
|
+
*/
|
|
214
|
+
export declare function readFinishedDiary(cwd: string, agentId: string, runs?: RunsFor): Promise<AnyDiaryLine[] | undefined>;
|
|
215
|
+
/**
|
|
216
|
+
* Whether `pid` is a live process on this host. `process.kill(pid, 0)` sends no signal but
|
|
217
|
+
* throws `ESRCH` once the process is gone; `EPERM` means it exists under another user (still
|
|
218
|
+
* alive). A pid on a *different* host is unknowable here, so callers guard on {@link AgentMeta.host}
|
|
219
|
+
* before trusting a result. A recycled pid (another process reusing a dead agent's number) reads as
|
|
220
|
+
* alive — an accepted, vanishingly rare miss on a single dev box.
|
|
221
|
+
*/
|
|
222
|
+
export declare function isPidAlive(pid: number): boolean;
|
|
223
|
+
/**
|
|
224
|
+
* The run a checkout holds, off its live card, `<id>.json` under the checkout's `.openagent/`:
|
|
225
|
+
* the shape agent-driver's log writes, read as the meta the card unfolds to, `running` or not (a
|
|
226
|
+
* run that ended waiting on a question keeps its checkout), on the branch the checkout is on now
|
|
227
|
+
* (the provider read it), since the agent renames its branch itself while its card learns the new
|
|
228
|
+
* name only when the run ends. `undefined` when there is no card.
|
|
229
|
+
* Never healed here: the tool that started the run sweeps its own dead runs.
|
|
230
|
+
*/
|
|
231
|
+
export declare function readLiveMeta(checkout: Checkout, fs?: StoreFs): Promise<AgentMeta | undefined>;
|
|
232
|
+
/** A run with a checkout, plus that checkout (#738): where to read the run's git and file status from. */
|
|
233
|
+
export interface LiveAgent extends AgentMeta {
|
|
234
|
+
/** The run's own checkout, a worktree under `.branches/`. */
|
|
235
|
+
cwd: string;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Every run of a project that has a checkout (#738): each checkout the project's branches
|
|
239
|
+
* provider lists, its card through {@link readLiveMeta}. Newest first, by id. Never throws: a
|
|
240
|
+
* project with no provider has no checkouts, and an unreadable checkout is skipped.
|
|
241
|
+
*/
|
|
242
|
+
export declare function readLiveMetas(cwd: string, fs?: StoreFs, branches?: BranchesFor): Promise<LiveAgent[]>;
|
|
243
|
+
/**
|
|
244
|
+
* One run's events, for a reader that replays them: the diary in the run's checkout while it has
|
|
245
|
+
* one (it is the newer of the two), else the finished run's diary from the runs provider.
|
|
246
|
+
* `undefined` for an unknown or unsafe id.
|
|
247
|
+
*/
|
|
248
|
+
export declare function loadAgentEvents(cwd: string, id: string, fs?: StoreFs, runs?: RunsFor, branches?: BranchesFor): Promise<OpenAgentEvent[] | undefined>;
|
|
249
|
+
/**
|
|
250
|
+
* What each of the named runs is doing now, by id: the last thing its diary says it did (a tool
|
|
251
|
+
* it used, with what) or said, on one line. Only a run with a checkout whose card says `running`
|
|
252
|
+
* has an entry: an ended run is doing nothing, and its row says how it ended.
|
|
253
|
+
*/
|
|
254
|
+
export declare function readDoing(cwd: string, ids: readonly string[], fs?: StoreFs, branches?: BranchesFor): Promise<Record<string, string>>;
|
|
255
|
+
/** A {@link StoreFs} backed by `node:fs/promises`. See {@link nodeFs}. */
|
|
256
|
+
export declare function nodeStoreFs(): StoreFs;
|
|
257
|
+
/**
|
|
258
|
+
* A project's runs: the ones with a checkout prepended to the finished ones, newest-first.
|
|
259
|
+
* Forgiving — a side that cannot be read simply contributes nothing.
|
|
260
|
+
*
|
|
261
|
+
* The checkout's card wins over the recorded one (#768): a resumed run has a record from its
|
|
262
|
+
* first leg AND is going again, and the record alone would show a running agent as finished.
|
|
263
|
+
*/
|
|
264
|
+
export declare function readAllAgents(cwd: string, fs?: StoreFs, runs?: RunsFor, branches?: BranchesFor): Promise<AgentMeta[]>;
|
|
265
|
+
/** One run's meta by id, the checkout's card winning over the record: {@link readAllAgents}'s rule for a single row. */
|
|
266
|
+
export declare function findAgent(cwd: string, agentId: string, fs?: StoreFs, runs?: RunsFor, branches?: BranchesFor): Promise<AgentMeta | undefined>;
|