@openagt/dashboard 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -17
- package/dist/agent-view.d.ts +3 -3
- package/dist/bridge-browser.d.ts +4 -4
- package/dist/bridge-browser.d.ts.map +1 -1
- package/dist/bridge-browser.js +8 -8
- package/dist/bridge-browser.js.map +1 -1
- package/dist/built-in.d.ts +45 -14
- package/dist/built-in.d.ts.map +1 -1
- package/dist/built-in.js +122 -27
- package/dist/built-in.js.map +1 -1
- package/dist/chrome-extension/background.js +11 -11
- package/dist/chrome-extension/content.js +37 -37
- package/dist/chrome-extension/driver-plan.js +1 -1
- package/dist/chrome-extension/fingerprint.js +1 -1
- package/dist/chrome-extension/manifest.json +3 -3
- package/dist/chrome-extension/options.html +4 -4
- package/dist/chrome-extension/options.js +4 -4
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -7
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -2
- package/dist/cloud-run-state.d.ts +1 -1
- package/dist/cloud-scratch-refs.js +7 -7
- package/dist/cloud-scratch-refs.js.map +1 -1
- package/dist/cloud-work.js +2 -2
- package/dist/daemon-runtime.d.ts +5 -4
- package/dist/daemon-runtime.d.ts.map +1 -1
- package/dist/daemon-runtime.js +59 -10
- package/dist/daemon-runtime.js.map +1 -1
- package/dist/daemon-services.d.ts +4 -3
- package/dist/daemon-services.d.ts.map +1 -1
- package/dist/daemon-services.js +14 -8
- package/dist/daemon-services.js.map +1 -1
- package/dist/daemon-tick.js +1 -1
- package/dist/daemon.d.ts +1 -12
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +9 -32
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard/agent-handoff.d.ts +4 -4
- package/dist/dashboard/agent-handoff.js +7 -7
- package/dist/dashboard/agent-handoff.js.map +1 -1
- package/dist/dashboard/bridge-endpoints.d.ts +3 -3
- package/dist/dashboard/bridge-endpoints.js +3 -3
- package/dist/dashboard/content-type.js +1 -1
- package/dist/dashboard/docs.d.ts +1 -1
- package/dist/dashboard/docs.js +1 -1
- package/dist/dashboard/git-status.d.ts +1 -1
- package/dist/dashboard/index.d.ts +1 -1
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/interventions.d.ts +2 -2
- package/dist/dashboard/open-in-app.d.ts +3 -3
- package/dist/dashboard/open-in-app.js +4 -4
- package/dist/dashboard/open-questions.d.ts +2 -2
- package/dist/dashboard/projects.d.ts +6 -5
- package/dist/dashboard/projects.d.ts.map +1 -1
- package/dist/dashboard/projects.js.map +1 -1
- package/dist/dashboard/pull-requests.d.ts +5 -5
- package/dist/dashboard/pull-requests.d.ts.map +1 -1
- package/dist/dashboard/pull-requests.js +2 -2
- package/dist/dashboard/pull-requests.js.map +1 -1
- package/dist/dashboard/relay-endpoints.d.ts +3 -3
- package/dist/dashboard/relay-endpoints.js +1 -1
- package/dist/dashboard/remote-run.d.ts +5 -5
- package/dist/dashboard/remote-run.js +3 -3
- package/dist/dashboard/rpc-serve.d.ts +7 -4
- package/dist/dashboard/rpc-serve.d.ts.map +1 -1
- package/dist/dashboard/rpc-serve.js.map +1 -1
- package/dist/dashboard/run-inbox.d.ts +2 -2
- package/dist/dashboard/run-inbox.js +4 -4
- package/dist/dashboard/run-inbox.js.map +1 -1
- package/dist/dashboard/server.d.ts +6 -4
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard/server.js +3 -2
- package/dist/dashboard/server.js.map +1 -1
- package/dist/dashboard/start-branch.d.ts +32 -0
- package/dist/dashboard/start-branch.d.ts.map +1 -0
- package/dist/dashboard/start-branch.js +47 -0
- package/dist/dashboard/start-branch.js.map +1 -0
- package/dist/dashboard/static.js +1 -1
- package/dist/dashboard/types.d.ts +29 -3
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/dashboard/web-start-endpoints.d.ts +1 -1
- package/dist/dashboard/web-start-endpoints.d.ts.map +1 -1
- package/dist/dashboard/web-start-endpoints.js +1 -1
- package/dist/dashboard/web-start-endpoints.js.map +1 -1
- package/dist/dashboard-bundle/assets/main-Q7JMdMJI.css +2 -0
- package/dist/dashboard-bundle/assets/main-fDZWGOub.js +140 -0
- package/dist/dashboard-bundle/assets/{module-jASZmfSB.js → module-gKz-ZvkG.js} +4 -4
- package/dist/dashboard-bundle/host/module.js +1 -1
- package/dist/dashboard-bundle/index.html +6 -6
- package/dist/dashboard-rpc/context.d.ts +2 -0
- package/dist/dashboard-rpc/context.d.ts.map +1 -1
- package/dist/dashboard-rpc/context.js +4 -0
- package/dist/dashboard-rpc/context.js.map +1 -1
- package/dist/dashboard-rpc/control.d.ts +1 -1
- package/dist/dashboard-rpc/control.js +3 -3
- package/dist/dashboard-rpc/control.js.map +1 -1
- package/dist/dashboard-rpc/events.d.ts +3 -3
- package/dist/dashboard-rpc/index.d.ts +2 -1
- package/dist/dashboard-rpc/index.d.ts.map +1 -1
- package/dist/dashboard-rpc/index.js +4 -2
- package/dist/dashboard-rpc/index.js.map +1 -1
- package/dist/dashboard-rpc/modules.d.ts +8 -6
- package/dist/dashboard-rpc/modules.d.ts.map +1 -1
- package/dist/dashboard-rpc/modules.js +8 -6
- package/dist/dashboard-rpc/modules.js.map +1 -1
- package/dist/dashboard-rpc/preferences.d.ts +2 -2
- package/dist/dashboard-rpc/preferences.d.ts.map +1 -1
- package/dist/dashboard-rpc/preferences.js +2 -2
- package/dist/dashboard-rpc/preferences.js.map +1 -1
- package/dist/dashboard-rpc/projects.d.ts +29 -3
- package/dist/dashboard-rpc/projects.d.ts.map +1 -1
- package/dist/dashboard-rpc/projects.js +57 -8
- package/dist/dashboard-rpc/projects.js.map +1 -1
- package/dist/dashboard-rpc/reads.d.ts +3 -3
- package/dist/dashboard-rpc/reads.js +1 -1
- package/dist/dashboard-rpc/skills.d.ts +80 -0
- package/dist/dashboard-rpc/skills.d.ts.map +1 -0
- package/dist/dashboard-rpc/skills.js +84 -0
- package/dist/dashboard-rpc/skills.js.map +1 -0
- package/dist/dashboard-rpc/test-context.d.ts.map +1 -1
- package/dist/dashboard-rpc/test-context.js +4 -3
- package/dist/dashboard-rpc/test-context.js.map +1 -1
- package/dist/event-stream.d.ts +1 -1
- package/dist/event-stream.js +1 -1
- package/dist/events.d.ts +8 -8
- package/dist/events.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/install.d.ts +9 -7
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +28 -14
- package/dist/install.js.map +1 -1
- package/dist/module-server.d.ts +1 -1
- package/dist/module-types/dashboard/components/ui/switch.d.ts +7 -0
- package/dist/module-types/dashboard/lib/route.d.ts +2 -1
- package/dist/module-types/dashboard/lib/use-modules.d.ts +4 -3
- package/dist/module-types/dashboard/module/index.d.ts +6 -5
- package/dist/module-types/src/agent-view.d.ts +3 -3
- package/dist/module-types/src/bridge-browser.d.ts +4 -4
- package/dist/module-types/src/built-in.d.ts +45 -14
- package/dist/module-types/src/client.d.ts +1 -1
- package/dist/module-types/src/cloud-run-state.d.ts +1 -1
- package/dist/module-types/src/dashboard/agent-handoff.d.ts +4 -4
- package/dist/module-types/src/dashboard/bridge-endpoints.d.ts +3 -3
- package/dist/module-types/src/dashboard/docs.d.ts +1 -1
- package/dist/module-types/src/dashboard/git-status.d.ts +1 -1
- package/dist/module-types/src/dashboard/interventions.d.ts +2 -2
- package/dist/module-types/src/dashboard/open-in-app.d.ts +3 -3
- package/dist/module-types/src/dashboard/open-questions.d.ts +2 -2
- package/dist/module-types/src/dashboard/projects.d.ts +6 -5
- package/dist/module-types/src/dashboard/pull-requests.d.ts +5 -5
- package/dist/module-types/src/dashboard/remote-run.d.ts +5 -5
- package/dist/module-types/src/dashboard/rpc-serve.d.ts +7 -4
- package/dist/module-types/src/dashboard/run-inbox.d.ts +2 -2
- package/dist/module-types/src/dashboard/start-branch.d.ts +31 -0
- package/dist/module-types/src/dashboard/types.d.ts +29 -3
- package/dist/module-types/src/dashboard-rpc/context.d.ts +2 -0
- package/dist/module-types/src/dashboard-rpc/control.d.ts +1 -1
- package/dist/module-types/src/dashboard-rpc/events.d.ts +3 -3
- package/dist/module-types/src/dashboard-rpc/index.d.ts +2 -1
- package/dist/module-types/src/dashboard-rpc/modules.d.ts +8 -6
- package/dist/module-types/src/dashboard-rpc/preferences.d.ts +2 -2
- package/dist/module-types/src/dashboard-rpc/projects.d.ts +29 -3
- package/dist/module-types/src/dashboard-rpc/reads.d.ts +3 -3
- package/dist/module-types/src/dashboard-rpc/skills.d.ts +79 -0
- package/dist/module-types/src/event-stream.d.ts +1 -1
- package/dist/module-types/src/events.d.ts +8 -8
- package/dist/module-types/src/index.d.ts +3 -2
- package/dist/module-types/src/open-choices.d.ts +2 -2
- package/dist/module-types/src/openagent-dir.d.ts +8 -0
- package/dist/module-types/src/openagent-gitignore.d.ts +11 -0
- package/dist/module-types/src/project-commands.d.ts +5 -1
- package/dist/module-types/src/project-errors.d.ts +11 -7
- package/dist/module-types/src/project-hooks.d.ts +12 -9
- package/dist/module-types/src/project-modules.d.ts +9 -7
- package/dist/module-types/src/project-presets.d.ts +4 -4
- package/dist/module-types/src/project.d.ts +6 -6
- package/dist/module-types/src/publish-levels.d.ts +4 -4
- package/dist/module-types/src/quota-boundary.d.ts +2 -2
- package/dist/module-types/src/registry.d.ts +13 -7
- package/dist/module-types/src/store/agent-checkout.d.ts +1 -1
- package/dist/module-types/src/store/agent-store.d.ts +6 -6
- package/dist/module-types/src/store/branches.d.ts +8 -8
- package/dist/module-types/src/store/git-host.d.ts +8 -8
- package/dist/module-types/src/store/provided.d.ts +3 -3
- package/dist/module-types/src/store/queue.d.ts +9 -9
- package/dist/module-types/src/store/repository.d.ts +2 -2
- package/dist/module-types/src/store/run-record.d.ts +10 -10
- package/dist/module-types/src/store/runs.d.ts +7 -7
- package/dist/module-types/src/store/tickets.d.ts +8 -8
- package/dist/module-types/src/terminal.d.ts +3 -3
- package/dist/open-choices.d.ts +2 -2
- package/dist/openagent-dir.d.ts +9 -0
- package/dist/openagent-dir.d.ts.map +1 -0
- package/dist/openagent-dir.js +9 -0
- package/dist/openagent-dir.js.map +1 -0
- package/dist/openagent-gitignore.d.ts +12 -0
- package/dist/openagent-gitignore.d.ts.map +1 -0
- package/dist/openagent-gitignore.js +19 -0
- package/dist/openagent-gitignore.js.map +1 -0
- package/dist/pick-directory.js +2 -2
- package/dist/pick-directory.js.map +1 -1
- package/dist/project-commands.d.ts +5 -1
- package/dist/project-commands.d.ts.map +1 -1
- package/dist/project-commands.js +1 -1
- package/dist/project-commands.js.map +1 -1
- package/dist/project-errors.d.ts +11 -7
- package/dist/project-errors.d.ts.map +1 -1
- package/dist/project-errors.js +10 -8
- package/dist/project-errors.js.map +1 -1
- package/dist/project-hooks.d.ts +12 -9
- package/dist/project-hooks.d.ts.map +1 -1
- package/dist/project-hooks.js +17 -14
- package/dist/project-hooks.js.map +1 -1
- package/dist/project-modules.d.ts +9 -7
- package/dist/project-modules.d.ts.map +1 -1
- package/dist/project-modules.js +7 -13
- package/dist/project-modules.js.map +1 -1
- package/dist/project-presets.d.ts +4 -4
- package/dist/project-presets.d.ts.map +1 -1
- package/dist/project-presets.js +9 -9
- package/dist/project-presets.js.map +1 -1
- package/dist/project.d.ts +6 -6
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +6 -7
- package/dist/project.js.map +1 -1
- package/dist/publish-levels.d.ts +4 -4
- package/dist/publish-levels.d.ts.map +1 -1
- package/dist/publish-levels.js +7 -5
- package/dist/publish-levels.js.map +1 -1
- package/dist/quota-boundary.d.ts +2 -2
- package/dist/quota-boundary.js +2 -2
- package/dist/registry.d.ts +13 -7
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +19 -3
- package/dist/registry.js.map +1 -1
- package/dist/remove-files.d.ts +24 -0
- package/dist/remove-files.d.ts.map +1 -0
- package/dist/remove-files.js +98 -0
- package/dist/remove-files.js.map +1 -0
- package/dist/store/agent-checkout.d.ts +1 -1
- package/dist/store/agent-checkout.js +3 -3
- package/dist/store/agent-checkout.js.map +1 -1
- package/dist/store/agent-store.d.ts +6 -6
- package/dist/store/agent-store.js +8 -8
- package/dist/store/agent-store.js.map +1 -1
- package/dist/store/branches.d.ts +8 -8
- package/dist/store/branches.d.ts.map +1 -1
- package/dist/store/branches.js +2 -2
- package/dist/store/branches.js.map +1 -1
- package/dist/store/git-host.d.ts +8 -8
- package/dist/store/git-host.d.ts.map +1 -1
- package/dist/store/git-host.js +3 -3
- package/dist/store/git-host.js.map +1 -1
- package/dist/store/provided.d.ts +3 -3
- package/dist/store/provided.d.ts.map +1 -1
- package/dist/store/provided.js +3 -3
- package/dist/store/provided.js.map +1 -1
- package/dist/store/queue.d.ts +9 -9
- package/dist/store/queue.d.ts.map +1 -1
- package/dist/store/queue.js +2 -2
- package/dist/store/queue.js.map +1 -1
- package/dist/store/repository.d.ts +2 -2
- package/dist/store/run-record.d.ts +10 -10
- package/dist/store/run-record.d.ts.map +1 -1
- package/dist/store/run-record.js +7 -7
- package/dist/store/run-record.js.map +1 -1
- package/dist/store/runs.d.ts +7 -7
- package/dist/store/runs.d.ts.map +1 -1
- package/dist/store/runs.js +3 -3
- package/dist/store/runs.js.map +1 -1
- package/dist/store/test-branches.d.ts +0 -8
- package/dist/store/test-branches.d.ts.map +1 -1
- package/dist/store/test-branches.js +0 -24
- package/dist/store/test-branches.js.map +1 -1
- package/dist/store/tickets.d.ts +8 -8
- package/dist/store/tickets.d.ts.map +1 -1
- package/dist/store/tickets.js +2 -2
- package/dist/store/tickets.js.map +1 -1
- package/dist/terminal.d.ts +3 -3
- package/dist/terminal.js +3 -3
- package/package.json +23 -20
- package/dist/agent-archive.d.ts +0 -35
- package/dist/agent-archive.d.ts.map +0 -1
- package/dist/agent-archive.js +0 -67
- package/dist/agent-archive.js.map +0 -1
- package/dist/agent-commit.d.ts +0 -140
- package/dist/agent-commit.d.ts.map +0 -1
- package/dist/agent-commit.js +0 -254
- package/dist/agent-commit.js.map +0 -1
- package/dist/agent-driver.d.ts +0 -28
- package/dist/agent-driver.d.ts.map +0 -1
- package/dist/agent-driver.js +0 -18
- package/dist/agent-driver.js.map +0 -1
- package/dist/agent-location.d.ts +0 -11
- package/dist/agent-location.d.ts.map +0 -1
- package/dist/agent-location.js +0 -10
- package/dist/agent-location.js.map +0 -1
- package/dist/agent-messages.d.ts +0 -55
- package/dist/agent-messages.d.ts.map +0 -1
- package/dist/agent-messages.js +0 -73
- package/dist/agent-messages.js.map +0 -1
- package/dist/agent-names.d.ts +0 -24
- package/dist/agent-names.d.ts.map +0 -1
- package/dist/agent-names.js +0 -33
- package/dist/agent-names.js.map +0 -1
- package/dist/agent-options.d.ts +0 -45
- package/dist/agent-options.d.ts.map +0 -1
- package/dist/agent-options.js +0 -83
- package/dist/agent-options.js.map +0 -1
- package/dist/agent-spec.d.ts +0 -56
- package/dist/agent-spec.d.ts.map +0 -1
- package/dist/agent-spec.js +0 -56
- package/dist/agent-spec.js.map +0 -1
- package/dist/agent-telemetry.d.ts +0 -88
- package/dist/agent-telemetry.d.ts.map +0 -1
- package/dist/agent-telemetry.js +0 -97
- package/dist/agent-telemetry.js.map +0 -1
- package/dist/agent.d.ts +0 -113
- package/dist/agent.d.ts.map +0 -1
- package/dist/agent.js +0 -168
- package/dist/agent.js.map +0 -1
- package/dist/archived-agent-patch.d.ts +0 -14
- package/dist/archived-agent-patch.d.ts.map +0 -1
- package/dist/archived-agent-patch.js +0 -22
- package/dist/archived-agent-patch.js.map +0 -1
- package/dist/auto-pm.d.ts +0 -538
- package/dist/auto-pm.d.ts.map +0 -1
- package/dist/auto-pm.js +0 -707
- package/dist/auto-pm.js.map +0 -1
- package/dist/await-gate.d.ts +0 -184
- package/dist/await-gate.d.ts.map +0 -1
- package/dist/await-gate.js +0 -252
- package/dist/await-gate.js.map +0 -1
- package/dist/branch-links-pass.d.ts +0 -15
- package/dist/branch-links-pass.d.ts.map +0 -1
- package/dist/branch-links-pass.js +0 -13
- package/dist/branch-links-pass.js.map +0 -1
- package/dist/branch-links.d.ts +0 -53
- package/dist/branch-links.d.ts.map +0 -1
- package/dist/branch-links.js +0 -94
- package/dist/branch-links.js.map +0 -1
- package/dist/branch-names.d.ts +0 -57
- package/dist/branch-names.d.ts.map +0 -1
- package/dist/branch-names.js +0 -72
- package/dist/branch-names.js.map +0 -1
- package/dist/ci-watch.d.ts +0 -123
- package/dist/ci-watch.d.ts.map +0 -1
- package/dist/ci-watch.js +0 -228
- package/dist/ci-watch.js.map +0 -1
- package/dist/claude-trust.d.ts +0 -16
- package/dist/claude-trust.d.ts.map +0 -1
- package/dist/claude-trust.js +0 -72
- package/dist/claude-trust.js.map +0 -1
- package/dist/cli-exec.d.ts +0 -36
- package/dist/cli-exec.d.ts.map +0 -1
- package/dist/cli-exec.js +0 -44
- package/dist/cli-exec.js.map +0 -1
- package/dist/closing-keywords.d.ts +0 -28
- package/dist/closing-keywords.d.ts.map +0 -1
- package/dist/closing-keywords.js +0 -49
- package/dist/closing-keywords.js.map +0 -1
- package/dist/config-layers.d.ts +0 -62
- package/dist/config-layers.d.ts.map +0 -1
- package/dist/config-layers.js +0 -70
- package/dist/config-layers.js.map +0 -1
- package/dist/config.d.ts +0 -54
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -78
- package/dist/config.js.map +0 -1
- package/dist/consumption-guard.d.ts +0 -53
- package/dist/consumption-guard.d.ts.map +0 -1
- package/dist/consumption-guard.js +0 -69
- package/dist/consumption-guard.js.map +0 -1
- package/dist/control.d.ts +0 -75
- package/dist/control.d.ts.map +0 -1
- package/dist/control.js +0 -68
- package/dist/control.js.map +0 -1
- package/dist/conversation-commit.d.ts +0 -166
- package/dist/conversation-commit.d.ts.map +0 -1
- package/dist/conversation-commit.js +0 -309
- package/dist/conversation-commit.js.map +0 -1
- package/dist/conversations.d.ts +0 -93
- package/dist/conversations.d.ts.map +0 -1
- package/dist/conversations.js +0 -176
- package/dist/conversations.js.map +0 -1
- package/dist/daemon-writes.d.ts +0 -33
- package/dist/daemon-writes.d.ts.map +0 -1
- package/dist/daemon-writes.js +0 -45
- package/dist/daemon-writes.js.map +0 -1
- package/dist/dashboard/agent-tree.d.ts +0 -106
- package/dist/dashboard/agent-tree.d.ts.map +0 -1
- package/dist/dashboard/agent-tree.js +0 -180
- package/dist/dashboard/agent-tree.js.map +0 -1
- package/dist/dashboard/browser-proxy.d.ts +0 -41
- package/dist/dashboard/browser-proxy.d.ts.map +0 -1
- package/dist/dashboard/browser-proxy.js +0 -96
- package/dist/dashboard/browser-proxy.js.map +0 -1
- package/dist/dashboard/discord-webhook.d.ts +0 -17
- package/dist/dashboard/discord-webhook.d.ts.map +0 -1
- package/dist/dashboard/discord-webhook.js +0 -36
- package/dist/dashboard/discord-webhook.js.map +0 -1
- package/dist/dashboard/file-diff.d.ts +0 -67
- package/dist/dashboard/file-diff.d.ts.map +0 -1
- package/dist/dashboard/file-diff.js +0 -132
- package/dist/dashboard/file-diff.js.map +0 -1
- package/dist/dashboard/file-read.d.ts +0 -42
- package/dist/dashboard/file-read.d.ts.map +0 -1
- package/dist/dashboard/file-read.js +0 -69
- package/dist/dashboard/file-read.js.map +0 -1
- package/dist/dashboard/file-status.d.ts +0 -21
- package/dist/dashboard/file-status.d.ts.map +0 -1
- package/dist/dashboard/file-status.js +0 -37
- package/dist/dashboard/file-status.js.map +0 -1
- package/dist/dashboard/gh.d.ts +0 -131
- package/dist/dashboard/gh.d.ts.map +0 -1
- package/dist/dashboard/gh.js +0 -150
- package/dist/dashboard/gh.js.map +0 -1
- package/dist/dashboard/github.d.ts +0 -11
- package/dist/dashboard/github.d.ts.map +0 -1
- package/dist/dashboard/github.js +0 -33
- package/dist/dashboard/github.js.map +0 -1
- package/dist/dashboard/run-handoff.d.ts +0 -311
- package/dist/dashboard/run-handoff.d.ts.map +0 -1
- package/dist/dashboard/run-handoff.js +0 -485
- package/dist/dashboard/run-handoff.js.map +0 -1
- package/dist/dashboard/scheduler-state.d.ts +0 -73
- package/dist/dashboard/scheduler-state.d.ts.map +0 -1
- package/dist/dashboard/scheduler-state.js +0 -120
- package/dist/dashboard/scheduler-state.js.map +0 -1
- package/dist/dashboard/subagent-settings.d.ts +0 -26
- package/dist/dashboard/subagent-settings.d.ts.map +0 -1
- package/dist/dashboard/subagent-settings.js +0 -52
- package/dist/dashboard/subagent-settings.js.map +0 -1
- package/dist/dashboard/telefunc-serve.d.ts +0 -118
- package/dist/dashboard/telefunc-serve.d.ts.map +0 -1
- package/dist/dashboard/telefunc-serve.js +0 -108
- package/dist/dashboard/telefunc-serve.js.map +0 -1
- package/dist/dashboard/tickets.d.ts +0 -29
- package/dist/dashboard/tickets.d.ts.map +0 -1
- package/dist/dashboard/tickets.js +0 -38
- package/dist/dashboard/tickets.js.map +0 -1
- package/dist/dashboard/widget-serve.d.ts +0 -15
- package/dist/dashboard/widget-serve.d.ts.map +0 -1
- package/dist/dashboard/widget-serve.js +0 -45
- package/dist/dashboard/widget-serve.js.map +0 -1
- package/dist/dashboard-bundle/assets/main-B3HghPQy.css +0 -2
- package/dist/dashboard-bundle/assets/main-om0WOAku.js +0 -140
- package/dist/dashboard-client/assets/chunks/chunk-BF9pJudf.js +0 -4
- package/dist/dashboard-client/assets/entries/entry-client-routing.CT1e9F0o.js +0 -1
- package/dist/dashboard-client/assets/entries/pages_index.CkW5JQ8X.js +0 -428
- package/dist/dashboard-client/assets/static/layouts_tailwind-00e65532.8OjKGAbA.css +0 -2
- package/dist/dashboard-client/index.html +0 -27
- package/dist/dashboard-client/index.pageContext.json +0 -1
- package/dist/dashboard-client/logo-animated.svg +0 -34
- package/dist/dashboard-client/logo.svg +0 -16
- package/dist/dashboard-rpc/control.telefunc.d.ts +0 -176
- package/dist/dashboard-rpc/control.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/control.telefunc.js +0 -373
- package/dist/dashboard-rpc/control.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/devices.telefunc.d.ts +0 -9
- package/dist/dashboard-rpc/devices.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/devices.telefunc.js +0 -12
- package/dist/dashboard-rpc/devices.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/events.telefunc.d.ts +0 -36
- package/dist/dashboard-rpc/events.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/events.telefunc.js +0 -70
- package/dist/dashboard-rpc/events.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/preferences.telefunc.d.ts +0 -97
- package/dist/dashboard-rpc/preferences.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/preferences.telefunc.js +0 -157
- package/dist/dashboard-rpc/preferences.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/projects.telefunc.d.ts +0 -56
- package/dist/dashboard-rpc/projects.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/projects.telefunc.js +0 -96
- package/dist/dashboard-rpc/projects.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/quota.telefunc.d.ts +0 -40
- package/dist/dashboard-rpc/quota.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/quota.telefunc.js +0 -84
- package/dist/dashboard-rpc/quota.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/reads.telefunc.d.ts +0 -197
- package/dist/dashboard-rpc/reads.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/reads.telefunc.js +0 -403
- package/dist/dashboard-rpc/reads.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/register.d.ts +0 -18
- package/dist/dashboard-rpc/register.d.ts.map +0 -1
- package/dist/dashboard-rpc/register.js +0 -66
- package/dist/dashboard-rpc/register.js.map +0 -1
- package/dist/dashboard-rpc/relay-run.d.ts +0 -9
- package/dist/dashboard-rpc/relay-run.d.ts.map +0 -1
- package/dist/dashboard-rpc/relay-run.js +0 -21
- package/dist/dashboard-rpc/relay-run.js.map +0 -1
- package/dist/dashboard-rpc/stream-channel.d.ts +0 -23
- package/dist/dashboard-rpc/stream-channel.d.ts.map +0 -1
- package/dist/dashboard-rpc/stream-channel.js +0 -52
- package/dist/dashboard-rpc/stream-channel.js.map +0 -1
- package/dist/dashboard-rpc/subagents.d.ts +0 -12
- package/dist/dashboard-rpc/subagents.d.ts.map +0 -1
- package/dist/dashboard-rpc/subagents.js +0 -13
- package/dist/dashboard-rpc/subagents.js.map +0 -1
- package/dist/dashboard-rpc/widgets.d.ts +0 -33
- package/dist/dashboard-rpc/widgets.d.ts.map +0 -1
- package/dist/dashboard-rpc/widgets.js +0 -54
- package/dist/dashboard-rpc/widgets.js.map +0 -1
- package/dist/data-branch.d.ts +0 -120
- package/dist/data-branch.d.ts.map +0 -1
- package/dist/data-branch.js +0 -319
- package/dist/data-branch.js.map +0 -1
- package/dist/discord/bot.d.ts +0 -61
- package/dist/discord/bot.d.ts.map +0 -1
- package/dist/discord/bot.js +0 -94
- package/dist/discord/bot.js.map +0 -1
- package/dist/discord/gateway.d.ts +0 -137
- package/dist/discord/gateway.d.ts.map +0 -1
- package/dist/discord/gateway.js +0 -315
- package/dist/discord/gateway.js.map +0 -1
- package/dist/discord/live-run.d.ts +0 -31
- package/dist/discord/live-run.d.ts.map +0 -1
- package/dist/discord/live-run.js +0 -57
- package/dist/discord/live-run.js.map +0 -1
- package/dist/discord/reply-mirror.d.ts +0 -83
- package/dist/discord/reply-mirror.d.ts.map +0 -1
- package/dist/discord/reply-mirror.js +0 -84
- package/dist/discord/reply-mirror.js.map +0 -1
- package/dist/discord/rest.d.ts +0 -20
- package/dist/discord/rest.d.ts.map +0 -1
- package/dist/discord/rest.js +0 -41
- package/dist/discord/rest.js.map +0 -1
- package/dist/discord/routing.d.ts +0 -81
- package/dist/discord/routing.d.ts.map +0 -1
- package/dist/discord/routing.js +0 -91
- package/dist/discord/routing.js.map +0 -1
- package/dist/discord-credentials-store.d.ts +0 -14
- package/dist/discord-credentials-store.d.ts.map +0 -1
- package/dist/discord-credentials-store.js +0 -53
- package/dist/discord-credentials-store.js.map +0 -1
- package/dist/discord-credentials.d.ts +0 -80
- package/dist/discord-credentials.d.ts.map +0 -1
- package/dist/discord-credentials.js +0 -55
- package/dist/discord-credentials.js.map +0 -1
- package/dist/driver/actions-zip.d.ts +0 -2
- package/dist/driver/actions-zip.d.ts.map +0 -1
- package/dist/driver/actions-zip.js +0 -70
- package/dist/driver/actions-zip.js.map +0 -1
- package/dist/driver/actions.d.ts +0 -130
- package/dist/driver/actions.d.ts.map +0 -1
- package/dist/driver/actions.js +0 -261
- package/dist/driver/actions.js.map +0 -1
- package/dist/driver/agent-cli.d.ts +0 -57
- package/dist/driver/agent-cli.d.ts.map +0 -1
- package/dist/driver/agent-cli.js +0 -134
- package/dist/driver/agent-cli.js.map +0 -1
- package/dist/driver/child-registry.d.ts +0 -25
- package/dist/driver/child-registry.d.ts.map +0 -1
- package/dist/driver/child-registry.js +0 -53
- package/dist/driver/child-registry.js.map +0 -1
- package/dist/driver/claude-code-quota.d.ts +0 -40
- package/dist/driver/claude-code-quota.d.ts.map +0 -1
- package/dist/driver/claude-code-quota.js +0 -144
- package/dist/driver/claude-code-quota.js.map +0 -1
- package/dist/driver/claude-code.d.ts +0 -104
- package/dist/driver/claude-code.d.ts.map +0 -1
- package/dist/driver/claude-code.js +0 -314
- package/dist/driver/claude-code.js.map +0 -1
- package/dist/driver/cli-session.d.ts +0 -57
- package/dist/driver/cli-session.d.ts.map +0 -1
- package/dist/driver/cli-session.js +0 -134
- package/dist/driver/cli-session.js.map +0 -1
- package/dist/driver/cloud.d.ts +0 -109
- package/dist/driver/cloud.d.ts.map +0 -1
- package/dist/driver/cloud.js +0 -232
- package/dist/driver/cloud.js.map +0 -1
- package/dist/driver/codex.d.ts +0 -99
- package/dist/driver/codex.d.ts.map +0 -1
- package/dist/driver/codex.js +0 -190
- package/dist/driver/codex.js.map +0 -1
- package/dist/driver/fake.d.ts +0 -54
- package/dist/driver/fake.d.ts.map +0 -1
- package/dist/driver/fake.js +0 -73
- package/dist/driver/fake.js.map +0 -1
- package/dist/driver/index.d.ts +0 -10
- package/dist/driver/index.d.ts.map +0 -1
- package/dist/driver/index.js +0 -14
- package/dist/driver/index.js.map +0 -1
- package/dist/driver/session-support.d.ts +0 -14
- package/dist/driver/session-support.d.ts.map +0 -1
- package/dist/driver/session-support.js +0 -37
- package/dist/driver/session-support.js.map +0 -1
- package/dist/driver/types.d.ts +0 -310
- package/dist/driver/types.d.ts.map +0 -1
- package/dist/driver/types.js +0 -5
- package/dist/driver/types.js.map +0 -1
- package/dist/driver-cli.d.ts +0 -61
- package/dist/driver-cli.d.ts.map +0 -1
- package/dist/driver-cli.js +0 -66
- package/dist/driver-cli.js.map +0 -1
- package/dist/fake-script.d.ts +0 -15
- package/dist/fake-script.d.ts.map +0 -1
- package/dist/fake-script.js +0 -58
- package/dist/fake-script.js.map +0 -1
- package/dist/framework-dir.d.ts +0 -11
- package/dist/framework-dir.d.ts.map +0 -1
- package/dist/framework-dir.js +0 -11
- package/dist/framework-dir.js.map +0 -1
- package/dist/framework-gitignore.d.ts +0 -12
- package/dist/framework-gitignore.d.ts.map +0 -1
- package/dist/framework-gitignore.js +0 -19
- package/dist/framework-gitignore.js.map +0 -1
- package/dist/gate-keepalive.d.ts +0 -47
- package/dist/gate-keepalive.d.ts.map +0 -1
- package/dist/gate-keepalive.js +0 -62
- package/dist/gate-keepalive.js.map +0 -1
- package/dist/git-exclude.d.ts +0 -11
- package/dist/git-exclude.d.ts.map +0 -1
- package/dist/git-exclude.js +0 -23
- package/dist/git-exclude.js.map +0 -1
- package/dist/handoff-level.d.ts +0 -56
- package/dist/handoff-level.d.ts.map +0 -1
- package/dist/handoff-level.js +0 -62
- package/dist/handoff-level.js.map +0 -1
- package/dist/host-exec.d.ts +0 -21
- package/dist/host-exec.d.ts.map +0 -1
- package/dist/host-exec.js +0 -30
- package/dist/host-exec.js.map +0 -1
- package/dist/layout.d.ts +0 -41
- package/dist/layout.d.ts.map +0 -1
- package/dist/layout.js +0 -69
- package/dist/layout.js.map +0 -1
- package/dist/logs.d.ts +0 -73
- package/dist/logs.d.ts.map +0 -1
- package/dist/logs.js +0 -218
- package/dist/logs.js.map +0 -1
- package/dist/maintenance.d.ts +0 -90
- package/dist/maintenance.d.ts.map +0 -1
- package/dist/maintenance.js +0 -141
- package/dist/maintenance.js.map +0 -1
- package/dist/merged-worktrees.d.ts +0 -74
- package/dist/merged-worktrees.d.ts.map +0 -1
- package/dist/merged-worktrees.js +0 -84
- package/dist/merged-worktrees.js.map +0 -1
- package/dist/module-types/src/dashboard/agent-tree.d.ts +0 -105
- package/dist/module-types/src/dashboard/file-diff.d.ts +0 -66
- package/dist/module-types/src/dashboard/file-read.d.ts +0 -41
- package/dist/module-types/src/dashboard/file-status.d.ts +0 -20
- package/dist/module-types/src/dashboard/scheduler-state.d.ts +0 -72
- package/dist/module-types/src/dashboard/subagent-settings.d.ts +0 -25
- package/dist/module-types/src/dashboard-rpc/subagents.d.ts +0 -11
- package/dist/module-types/src/framework-dir.d.ts +0 -10
- package/dist/module-types/src/framework-gitignore.d.ts +0 -11
- package/dist/module-types/src/subagent-settings.d.ts +0 -26
- package/dist/on-before-mergeable-prompt.d.ts +0 -32
- package/dist/on-before-mergeable-prompt.d.ts.map +0 -1
- package/dist/on-before-mergeable-prompt.js +0 -26
- package/dist/on-before-mergeable-prompt.js.map +0 -1
- package/dist/planned-quick-wins.d.ts +0 -102
- package/dist/planned-quick-wins.d.ts.map +0 -1
- package/dist/planned-quick-wins.js +0 -171
- package/dist/planned-quick-wins.js.map +0 -1
- package/dist/preflight.d.ts +0 -77
- package/dist/preflight.d.ts.map +0 -1
- package/dist/preflight.js +0 -91
- package/dist/preflight.js.map +0 -1
- package/dist/preset-catalog.d.ts +0 -98
- package/dist/preset-catalog.d.ts.map +0 -1
- package/dist/preset-catalog.js +0 -129
- package/dist/preset-catalog.js.map +0 -1
- package/dist/preset-prompt.d.ts +0 -81
- package/dist/preset-prompt.d.ts.map +0 -1
- package/dist/preset-prompt.js +0 -51
- package/dist/preset-prompt.js.map +0 -1
- package/dist/preset-registry.d.ts +0 -32
- package/dist/preset-registry.d.ts.map +0 -1
- package/dist/preset-registry.js +0 -35
- package/dist/preset-registry.js.map +0 -1
- package/dist/presets.d.ts +0 -20
- package/dist/presets.d.ts.map +0 -1
- package/dist/presets.js +0 -33
- package/dist/presets.js.map +0 -1
- package/dist/preview-runtime.d.ts +0 -33
- package/dist/preview-runtime.d.ts.map +0 -1
- package/dist/preview-runtime.js +0 -96
- package/dist/preview-runtime.js.map +0 -1
- package/dist/preview.d.ts +0 -78
- package/dist/preview.d.ts.map +0 -1
- package/dist/preview.js +0 -301
- package/dist/preview.js.map +0 -1
- package/dist/project-widgets.d.ts +0 -46
- package/dist/project-widgets.d.ts.map +0 -1
- package/dist/project-widgets.js +0 -93
- package/dist/project-widgets.js.map +0 -1
- package/dist/prompt-run.d.ts +0 -104
- package/dist/prompt-run.d.ts.map +0 -1
- package/dist/prompt-run.js +0 -112
- package/dist/prompt-run.js.map +0 -1
- package/dist/prompt-template.d.ts +0 -16
- package/dist/prompt-template.d.ts.map +0 -1
- package/dist/prompt-template.js +0 -56
- package/dist/prompt-template.js.map +0 -1
- package/dist/prompts.generated.d.ts +0 -53
- package/dist/prompts.generated.d.ts.map +0 -1
- package/dist/prompts.generated.js +0 -55
- package/dist/prompts.generated.js.map +0 -1
- package/dist/queue-promote.d.ts +0 -70
- package/dist/queue-promote.d.ts.map +0 -1
- package/dist/queue-promote.js +0 -118
- package/dist/queue-promote.js.map +0 -1
- package/dist/relay.d.ts +0 -84
- package/dist/relay.d.ts.map +0 -1
- package/dist/relay.js +0 -199
- package/dist/relay.js.map +0 -1
- package/dist/repos-directory.d.ts +0 -19
- package/dist/repos-directory.d.ts.map +0 -1
- package/dist/repos-directory.js +0 -23
- package/dist/repos-directory.js.map +0 -1
- package/dist/retired-project-settings.d.ts +0 -43
- package/dist/retired-project-settings.d.ts.map +0 -1
- package/dist/retired-project-settings.js +0 -125
- package/dist/retired-project-settings.js.map +0 -1
- package/dist/routine-locks.d.ts +0 -53
- package/dist/routine-locks.d.ts.map +0 -1
- package/dist/routine-locks.js +0 -125
- package/dist/routine-locks.js.map +0 -1
- package/dist/run-driver.d.ts +0 -26
- package/dist/run-driver.d.ts.map +0 -1
- package/dist/run-driver.js +0 -17
- package/dist/run-driver.js.map +0 -1
- package/dist/run-locks.d.ts +0 -3
- package/dist/run-locks.d.ts.map +0 -1
- package/dist/run-locks.js +0 -39
- package/dist/run-locks.js.map +0 -1
- package/dist/run-messages.d.ts +0 -64
- package/dist/run-messages.d.ts.map +0 -1
- package/dist/run-messages.js +0 -76
- package/dist/run-messages.js.map +0 -1
- package/dist/run-options.d.ts +0 -53
- package/dist/run-options.d.ts.map +0 -1
- package/dist/run-options.js +0 -110
- package/dist/run-options.js.map +0 -1
- package/dist/run-telemetry.d.ts +0 -115
- package/dist/run-telemetry.d.ts.map +0 -1
- package/dist/run-telemetry.js +0 -137
- package/dist/run-telemetry.js.map +0 -1
- package/dist/run-view.d.ts +0 -109
- package/dist/run-view.d.ts.map +0 -1
- package/dist/run-view.js +0 -118
- package/dist/run-view.js.map +0 -1
- package/dist/run.d.ts +0 -261
- package/dist/run.d.ts.map +0 -1
- package/dist/run.js +0 -420
- package/dist/run.js.map +0 -1
- package/dist/runtime-keys.d.ts +0 -17
- package/dist/runtime-keys.d.ts.map +0 -1
- package/dist/runtime-keys.js +0 -17
- package/dist/runtime-keys.js.map +0 -1
- package/dist/sandbox.d.ts +0 -27
- package/dist/sandbox.d.ts.map +0 -1
- package/dist/sandbox.js +0 -63
- package/dist/sandbox.js.map +0 -1
- package/dist/session-link.d.ts +0 -19
- package/dist/session-link.d.ts.map +0 -1
- package/dist/session-link.js +0 -26
- package/dist/session-link.js.map +0 -1
- package/dist/sessions.d.ts +0 -77
- package/dist/sessions.d.ts.map +0 -1
- package/dist/sessions.js +0 -146
- package/dist/sessions.js.map +0 -1
- package/dist/spike-locks.d.ts +0 -75
- package/dist/spike-locks.d.ts.map +0 -1
- package/dist/spike-locks.js +0 -208
- package/dist/spike-locks.js.map +0 -1
- package/dist/stale-branch.d.ts +0 -21
- package/dist/stale-branch.d.ts.map +0 -1
- package/dist/stale-branch.js +0 -32
- package/dist/stale-branch.js.map +0 -1
- package/dist/steps.d.ts +0 -9
- package/dist/steps.d.ts.map +0 -1
- package/dist/steps.js +0 -13
- package/dist/steps.js.map +0 -1
- package/dist/store/forge.d.ts +0 -110
- package/dist/store/forge.d.ts.map +0 -1
- package/dist/store/forge.js +0 -97
- package/dist/store/forge.js.map +0 -1
- package/dist/store/run-checkout.d.ts +0 -33
- package/dist/store/run-checkout.d.ts.map +0 -1
- package/dist/store/run-checkout.js +0 -59
- package/dist/store/run-checkout.js.map +0 -1
- package/dist/store/run-store.d.ts +0 -501
- package/dist/store/run-store.d.ts.map +0 -1
- package/dist/store/run-store.js +0 -806
- package/dist/store/run-store.js.map +0 -1
- package/dist/store/suspend.d.ts +0 -38
- package/dist/store/suspend.d.ts.map +0 -1
- package/dist/store/suspend.js +0 -45
- package/dist/store/suspend.js.map +0 -1
- package/dist/store/worktree-deps.d.ts +0 -30
- package/dist/store/worktree-deps.d.ts.map +0 -1
- package/dist/store/worktree-deps.js +0 -115
- package/dist/store/worktree-deps.js.map +0 -1
- package/dist/store/worktree.d.ts +0 -194
- package/dist/store/worktree.d.ts.map +0 -1
- package/dist/store/worktree.js +0 -331
- package/dist/store/worktree.js.map +0 -1
- package/dist/subagent-settings.d.ts +0 -27
- package/dist/subagent-settings.d.ts.map +0 -1
- package/dist/subagent-settings.js +0 -35
- package/dist/subagent-settings.js.map +0 -1
- package/dist/system-prompt-file.d.ts +0 -18
- package/dist/system-prompt-file.d.ts.map +0 -1
- package/dist/system-prompt-file.js +0 -28
- package/dist/system-prompt-file.js.map +0 -1
- package/dist/system-prompt.d.ts +0 -148
- package/dist/system-prompt.d.ts.map +0 -1
- package/dist/system-prompt.js +0 -170
- package/dist/system-prompt.js.map +0 -1
- package/dist/target-driver.d.ts +0 -28
- package/dist/target-driver.d.ts.map +0 -1
- package/dist/target-driver.js +0 -18
- package/dist/target-driver.js.map +0 -1
- package/dist/ticket-locks.d.ts +0 -61
- package/dist/ticket-locks.d.ts.map +0 -1
- package/dist/ticket-locks.js +0 -137
- package/dist/ticket-locks.js.map +0 -1
- package/dist/tickets-file.d.ts +0 -7
- package/dist/tickets-file.d.ts.map +0 -1
- package/dist/tickets-file.js +0 -21
- package/dist/tickets-file.js.map +0 -1
- package/dist/tickets.d.ts +0 -18
- package/dist/tickets.d.ts.map +0 -1
- package/dist/tickets.js +0 -23
- package/dist/tickets.js.map +0 -1
- package/dist/todo-loop.d.ts +0 -110
- package/dist/todo-loop.d.ts.map +0 -1
- package/dist/todo-loop.js +0 -175
- package/dist/todo-loop.js.map +0 -1
- package/dist/turn-gate.d.ts +0 -144
- package/dist/turn-gate.d.ts.map +0 -1
- package/dist/turn-gate.js +0 -217
- package/dist/turn-gate.js.map +0 -1
- package/dist/usage.d.ts +0 -32
- package/dist/usage.d.ts.map +0 -1
- package/dist/usage.js +0 -46
- package/dist/usage.js.map +0 -1
- package/dist/widget-types/dashboard/components/LinkActions.d.ts +0 -26
- package/dist/widget-types/dashboard/components/Markdown.d.ts +0 -4
- package/dist/widget-types/dashboard/components/StartAgentButton.d.ts +0 -39
- package/dist/widget-types/dashboard/components/ui/badge.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/button.d.ts +0 -10
- package/dist/widget-types/dashboard/components/ui/card.d.ts +0 -5
- package/dist/widget-types/dashboard/components/ui/checkbox.d.ts +0 -7
- package/dist/widget-types/dashboard/components/ui/dropdown-menu.d.ts +0 -16
- package/dist/widget-types/dashboard/components/ui/input.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/option-label.d.ts +0 -4
- package/dist/widget-types/dashboard/components/ui/popover.d.ts +0 -8
- package/dist/widget-types/dashboard/components/ui/scroll-area.d.ts +0 -10
- package/dist/widget-types/dashboard/components/ui/separator.d.ts +0 -3
- package/dist/widget-types/dashboard/components/ui/skeleton.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/slider.d.ts +0 -9
- package/dist/widget-types/dashboard/components/ui/tooltip.d.ts +0 -11
- package/dist/widget-types/dashboard/lib/draft-handoff.d.ts +0 -15
- package/dist/widget-types/dashboard/lib/format-date.d.ts +0 -51
- package/dist/widget-types/dashboard/lib/host-services.d.ts +0 -12
- package/dist/widget-types/dashboard/lib/route.d.ts +0 -24
- package/dist/widget-types/dashboard/lib/rpc.d.ts +0 -31
- package/dist/widget-types/dashboard/lib/use-action.d.ts +0 -25
- package/dist/widget-types/dashboard/lib/use-async.d.ts +0 -39
- package/dist/widget-types/dashboard/lib/use-widgets.d.ts +0 -42
- package/dist/widget-types/dashboard/lib/utils.d.ts +0 -3
- package/dist/widget-types/dashboard/rpc/widgets.d.ts +0 -4
- package/dist/widget-types/dashboard/widget/index.d.ts +0 -207
- package/dist/widget-types/src/agent-id.d.ts +0 -12
- package/dist/widget-types/src/agent-locks.d.ts +0 -2
- package/dist/widget-types/src/agent-view.d.ts +0 -38
- package/dist/widget-types/src/bridge-browser.d.ts +0 -216
- package/dist/widget-types/src/browser-stream.d.ts +0 -19
- package/dist/widget-types/src/browser.d.ts +0 -15
- package/dist/widget-types/src/cli-exec.d.ts +0 -35
- package/dist/widget-types/src/cloud-run-state.d.ts +0 -26
- package/dist/widget-types/src/dashboard/activity.d.ts +0 -40
- package/dist/widget-types/src/dashboard/agent-handoff.d.ts +0 -211
- package/dist/widget-types/src/dashboard/agent-tree.d.ts +0 -105
- package/dist/widget-types/src/dashboard/bridge-endpoints.d.ts +0 -157
- package/dist/widget-types/src/dashboard/bridge-question.d.ts +0 -32
- package/dist/widget-types/src/dashboard/bridge-store.d.ts +0 -178
- package/dist/widget-types/src/dashboard/cache.d.ts +0 -46
- package/dist/widget-types/src/dashboard/content-type.d.ts +0 -2
- package/dist/widget-types/src/dashboard/dashboard.d.ts +0 -37
- package/dist/widget-types/src/dashboard/discord-webhook.d.ts +0 -16
- package/dist/widget-types/src/dashboard/docs.d.ts +0 -38
- package/dist/widget-types/src/dashboard/file-diff.d.ts +0 -66
- package/dist/widget-types/src/dashboard/file-read.d.ts +0 -41
- package/dist/widget-types/src/dashboard/file-status.d.ts +0 -20
- package/dist/widget-types/src/dashboard/gh.d.ts +0 -130
- package/dist/widget-types/src/dashboard/git-status.d.ts +0 -32
- package/dist/widget-types/src/dashboard/github.d.ts +0 -10
- package/dist/widget-types/src/dashboard/http.d.ts +0 -28
- package/dist/widget-types/src/dashboard/interventions.d.ts +0 -66
- package/dist/widget-types/src/dashboard/keys.d.ts +0 -30
- package/dist/widget-types/src/dashboard/models.d.ts +0 -24
- package/dist/widget-types/src/dashboard/open-in-app.d.ts +0 -42
- package/dist/widget-types/src/dashboard/open-questions.d.ts +0 -52
- package/dist/widget-types/src/dashboard/overview.d.ts +0 -77
- package/dist/widget-types/src/dashboard/projects.d.ts +0 -89
- package/dist/widget-types/src/dashboard/pull-requests.d.ts +0 -126
- package/dist/widget-types/src/dashboard/queue.d.ts +0 -16
- package/dist/widget-types/src/dashboard/quota.d.ts +0 -59
- package/dist/widget-types/src/dashboard/remote-run.d.ts +0 -94
- package/dist/widget-types/src/dashboard/rpc-serve.d.ts +0 -102
- package/dist/widget-types/src/dashboard/run-inbox.d.ts +0 -30
- package/dist/widget-types/src/dashboard/scheduler-state.d.ts +0 -64
- package/dist/widget-types/src/dashboard/tickets.d.ts +0 -28
- package/dist/widget-types/src/dashboard/types.d.ts +0 -99
- package/dist/widget-types/src/dashboard/widget-serve.d.ts +0 -14
- package/dist/widget-types/src/dashboard-rpc/context.d.ts +0 -53
- package/dist/widget-types/src/dashboard-rpc/control.d.ts +0 -108
- package/dist/widget-types/src/dashboard-rpc/devices.d.ts +0 -8
- package/dist/widget-types/src/dashboard-rpc/events-tail.d.ts +0 -53
- package/dist/widget-types/src/dashboard-rpc/events.d.ts +0 -29
- package/dist/widget-types/src/dashboard-rpc/index.d.ts +0 -28
- package/dist/widget-types/src/dashboard-rpc/models.d.ts +0 -3
- package/dist/widget-types/src/dashboard-rpc/preferences.d.ts +0 -40
- package/dist/widget-types/src/dashboard-rpc/projects.d.ts +0 -54
- package/dist/widget-types/src/dashboard-rpc/quota.d.ts +0 -26
- package/dist/widget-types/src/dashboard-rpc/reads.d.ts +0 -227
- package/dist/widget-types/src/dashboard-rpc/relay-agent.d.ts +0 -8
- package/dist/widget-types/src/dashboard-rpc/stream-forward.d.ts +0 -16
- package/dist/widget-types/src/dashboard-rpc/widgets.d.ts +0 -32
- package/dist/widget-types/src/discord-credentials.d.ts +0 -79
- package/dist/widget-types/src/driver-names.d.ts +0 -21
- package/dist/widget-types/src/error-message.d.ts +0 -7
- package/dist/widget-types/src/event-stream.d.ts +0 -32
- package/dist/widget-types/src/events.d.ts +0 -235
- package/dist/widget-types/src/framework-dir.d.ts +0 -10
- package/dist/widget-types/src/framework-gitignore.d.ts +0 -11
- package/dist/widget-types/src/index.d.ts +0 -42
- package/dist/widget-types/src/jsonl-tail.d.ts +0 -54
- package/dist/widget-types/src/loopback-host.d.ts +0 -19
- package/dist/widget-types/src/node-fs.d.ts +0 -32
- package/dist/widget-types/src/open-choices.d.ts +0 -14
- package/dist/widget-types/src/pick-directory.d.ts +0 -29
- package/dist/widget-types/src/preference-defaults.d.ts +0 -53
- package/dist/widget-types/src/project-commands.d.ts +0 -23
- package/dist/widget-types/src/project-errors.d.ts +0 -43
- package/dist/widget-types/src/project-hooks.d.ts +0 -133
- package/dist/widget-types/src/project-presets.d.ts +0 -29
- package/dist/widget-types/src/project-widgets.d.ts +0 -45
- package/dist/widget-types/src/project.d.ts +0 -28
- package/dist/widget-types/src/quota-boundary.d.ts +0 -115
- package/dist/widget-types/src/quota-poller.d.ts +0 -82
- package/dist/widget-types/src/registry.d.ts +0 -210
- package/dist/widget-types/src/store/agent-checkout.d.ts +0 -46
- package/dist/widget-types/src/store/agent-store.d.ts +0 -237
- package/dist/widget-types/src/store/branches.d.ts +0 -133
- package/dist/widget-types/src/store/forge.d.ts +0 -109
- package/dist/widget-types/src/store/git-host.d.ts +0 -111
- package/dist/widget-types/src/store/index.d.ts +0 -9
- package/dist/widget-types/src/store/provided.d.ts +0 -16
- package/dist/widget-types/src/store/queue.d.ts +0 -45
- package/dist/widget-types/src/store/run-record.d.ts +0 -21
- package/dist/widget-types/src/store/runs.d.ts +0 -101
- package/dist/widget-types/src/store/tickets.d.ts +0 -72
- package/dist/widget-types/src/tickets.d.ts +0 -17
- package/dist/widget-types/src/worktrees.d.ts +0 -89
- package/dist/widget.css +0 -50
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import type { BridgeEvent, BridgeHello, BridgeQuestion, BridgeSessionStatus } from './bridge-endpoints.js';
|
|
2
|
-
/**
|
|
3
|
-
* An answer picked in the dashboard, on its way back to the session (#1237).
|
|
4
|
-
*
|
|
5
|
-
* `queued` until the extension fetches it, delivers it into the composer and acknowledges;
|
|
6
|
-
* then `sent`, or `failed` with the extension's reason. The id is what the acknowledgement
|
|
7
|
-
* references, so a stale ack from a tab that died mid-delivery cannot resolve a newer answer.
|
|
8
|
-
*/
|
|
9
|
-
export interface BridgeAnswer {
|
|
10
|
-
id: string;
|
|
11
|
-
sessionId: string;
|
|
12
|
-
/** The label(s) picked — one, or a `multi` question's subset (possibly none). */
|
|
13
|
-
labels: string[];
|
|
14
|
-
/**
|
|
15
|
-
* What the extension types into the session (#1554): the same continuation a local gate
|
|
16
|
-
* re-prompts with, so a cloud session hears its answer exactly as a local one does — and, on a
|
|
17
|
-
* `stop` pick, that the user is taking over, since nothing of ours can end a session over there.
|
|
18
|
-
*/
|
|
19
|
-
text: string;
|
|
20
|
-
queuedAt: string;
|
|
21
|
-
/**
|
|
22
|
-
* When a Driver collected it to type (#1332). Two Drivers can serve one daemon — the user's own
|
|
23
|
-
* Chrome and the daemon's bridge browser — and an answer handed to both would be typed twice.
|
|
24
|
-
*/
|
|
25
|
-
claimedAt?: string;
|
|
26
|
-
state: 'queued' | 'sent' | 'failed';
|
|
27
|
-
note?: string;
|
|
28
|
-
}
|
|
29
|
-
/** How long a collected answer stays with the Driver that collected it before it is offered again. */
|
|
30
|
-
export declare const ANSWER_CLAIM_TTL_MS = 90000;
|
|
31
|
-
/**
|
|
32
|
-
* The questions a Claude web session is parked on, keyed by its cloud session id (#1237).
|
|
33
|
-
*
|
|
34
|
-
* A cloud agent has no live local session to hang a choice gate on: #1231 ends the agent at the
|
|
35
|
-
* hand-off, so by the time the agent asks anything the agent is already `done`. The join back to
|
|
36
|
-
* an agent is `AgentMeta.sessionId`, which a web agent already carries because `CloudSession` reports
|
|
37
|
-
* the cloud id on its result.
|
|
38
|
-
*
|
|
39
|
-
* In memory on purpose. A question is only answerable while the session that asked it is still
|
|
40
|
-
* parked, and the bridge that reported it re-reports on reconnect, so surviving a daemon restart
|
|
41
|
-
* would preserve a question that may already have been answered elsewhere.
|
|
42
|
-
*/
|
|
43
|
-
/** The last time anything spoke to the bridge, and how it went. */
|
|
44
|
-
export interface BridgeContact {
|
|
45
|
-
at: string;
|
|
46
|
-
route: string;
|
|
47
|
-
status: number;
|
|
48
|
-
}
|
|
49
|
-
/** The extension's last version claim, and whether the doorway turned it away (#1519). */
|
|
50
|
-
export interface BridgeVersion {
|
|
51
|
-
got: string;
|
|
52
|
-
expected: string;
|
|
53
|
-
blocked: boolean;
|
|
54
|
-
at: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* What a cloud session is told when the user picks a `stop` option (#358, #1554). It lives on
|
|
58
|
-
* claude.ai where nothing of ours can end it, so the bridge types this instead of a continuation:
|
|
59
|
-
* the decision, and that the user is taking over from here.
|
|
60
|
-
*/
|
|
61
|
-
export declare function takeoverPrompt(question: string, answer: string): string;
|
|
62
|
-
export declare class BridgeQuestions {
|
|
63
|
-
private readonly bySession;
|
|
64
|
-
private contact;
|
|
65
|
-
/**
|
|
66
|
-
* Note that something reached the bridge, whatever the outcome.
|
|
67
|
-
*
|
|
68
|
-
* Failures are recorded too, and that is the point: an extension that is misconfigured looks
|
|
69
|
-
* exactly like one that is not installed, because both leave no question behind. A refused
|
|
70
|
-
* request at least proves something is trying.
|
|
71
|
-
*/
|
|
72
|
-
recordContact(route: string, status: number): void;
|
|
73
|
-
private versionState;
|
|
74
|
-
/**
|
|
75
|
-
* What version the extension last claimed and whether it was refused for it (#1519).
|
|
76
|
-
*
|
|
77
|
-
* The accepted claims are recorded too, which is what clears a blocked banner: the moment an
|
|
78
|
-
* updated extension gets through, the last word is no longer a refusal.
|
|
79
|
-
*/
|
|
80
|
-
recordVersion(got: string, expected: string, blocked: boolean): void;
|
|
81
|
-
/** The last version claim, or undefined while nothing has stated one. */
|
|
82
|
-
version(): BridgeVersion | undefined;
|
|
83
|
-
private helloState;
|
|
84
|
-
/** What the injected page script last said about itself. */
|
|
85
|
-
recordHello(hello: BridgeHello): void;
|
|
86
|
-
/** The page script's last report, or undefined if none has ever arrived. */
|
|
87
|
-
hello(): BridgeHello | undefined;
|
|
88
|
-
/** The last contact, or undefined if nothing has ever reached the bridge. */
|
|
89
|
-
lastContact(): BridgeContact | undefined;
|
|
90
|
-
private readonly statusBySession;
|
|
91
|
-
/**
|
|
92
|
-
* What claude.ai's session list last said about a session (#1332), as the Driver tab read it.
|
|
93
|
-
*
|
|
94
|
-
* This is the read-back a web run's own record cannot give: the run ends at its hand-off, so
|
|
95
|
-
* the record says `done` whether the session is parked on its user or finished hours ago.
|
|
96
|
-
*/
|
|
97
|
-
recordStatus(status: BridgeSessionStatus): void;
|
|
98
|
-
/** The session's last list status, or undefined while the Driver has never reported one. */
|
|
99
|
-
status(sessionId: string): BridgeSessionStatus | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* Whether the session is waiting on a human: the bridge holds the question it is parked on, or
|
|
102
|
-
* claude.ai's list shows it awaiting input — a question asked in prose carries no block for
|
|
103
|
-
* the bridge to hold, and the list is the only thing that says the session stopped for it.
|
|
104
|
-
*
|
|
105
|
-
* A list status older than the session window no longer counts: the Driver stops reading a
|
|
106
|
-
* session past the window, so its last word would otherwise stand forever.
|
|
107
|
-
*/
|
|
108
|
-
waiting(sessionId: string, now?: Date): boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Whether an extension is around (#1328): something reached the bridge and was let in within
|
|
111
|
-
* the window. The worker polls every half minute while it lives, so a longer silence means
|
|
112
|
-
* there is nobody to drain a request.
|
|
113
|
-
*/
|
|
114
|
-
extensionAlive(now?: Date, windowMs?: number): boolean;
|
|
115
|
-
private readonly eventsBySession;
|
|
116
|
-
/**
|
|
117
|
-
* Record one transcript entry, keyed by its position.
|
|
118
|
-
*
|
|
119
|
-
* Keyed rather than appended because the page is re-read on every DOM change, so the same
|
|
120
|
-
* message arrives repeatedly and a growing list would be mostly duplicates. Position also lets
|
|
121
|
-
* a later read replace an earlier one, which is what a message still being streamed needs.
|
|
122
|
-
*/
|
|
123
|
-
recordEvent(event: BridgeEvent): void;
|
|
124
|
-
/** That session's transcript so far, in order. */
|
|
125
|
-
events(sessionId: string): BridgeEvent[];
|
|
126
|
-
private readonly answersBySession;
|
|
127
|
-
/** The fingerprint of the question each session's `sent` answer resolved. */
|
|
128
|
-
private readonly answeredBySession;
|
|
129
|
-
/**
|
|
130
|
-
* Record the question a session is parked on, replacing any earlier one for that session.
|
|
131
|
-
*
|
|
132
|
-
* A question identical to one an answer was already delivered for is dropped: the extension's
|
|
133
|
-
* worker forgets what it sent when it restarts, and the answered block stays in the page's DOM,
|
|
134
|
-
* so the same question would otherwise resurface as parked right after being answered.
|
|
135
|
-
*/
|
|
136
|
-
record(question: BridgeQuestion): void;
|
|
137
|
-
/**
|
|
138
|
-
* Queue an answer picked in the dashboard (#1237). Refuses anything but labels of the question
|
|
139
|
-
* currently parked — exactly one unless the question is `multi` — so the only text this can
|
|
140
|
-
* ever put in a composer is composed from what the session itself offered.
|
|
141
|
-
*/
|
|
142
|
-
queueAnswer(sessionId: string, labels: string[]): BridgeAnswer | string;
|
|
143
|
-
/** Withdraw a queued answer. Too late once a Driver has collected it or the extension has delivered it. */
|
|
144
|
-
cancelAnswer(sessionId: string, now?: number): boolean;
|
|
145
|
-
/** The answer waiting for the extension to deliver, if any — collected by a Driver or not. */
|
|
146
|
-
pendingAnswer(sessionId: string): BridgeAnswer | undefined;
|
|
147
|
-
/** Whether a Driver holds the answer: collected, and not so long ago that it is presumed lost. */
|
|
148
|
-
private claimed;
|
|
149
|
-
/**
|
|
150
|
-
* Hand the queued answer to the Driver asking, once (#1332): the next Driver asking within the
|
|
151
|
-
* claim's lifetime gets nothing, so a session served by two browsers is not answered twice. A
|
|
152
|
-
* claim nobody acknowledged — the Driver died mid-delivery — expires, and the answer is offered
|
|
153
|
-
* again.
|
|
154
|
-
*/
|
|
155
|
-
claimAnswer(sessionId: string, now?: number): BridgeAnswer | undefined;
|
|
156
|
-
/**
|
|
157
|
-
* Every session with an answer waiting to be delivered. The Driver serves these whatever the
|
|
158
|
-
* session window says: the page reports whichever session the user is on, so a pick can be for
|
|
159
|
-
* a session no listed run carries, and one nothing serves would sit queued forever.
|
|
160
|
-
*/
|
|
161
|
-
pendingAnswerSessions(): string[];
|
|
162
|
-
/** The session's answer in whatever state, for the dashboard to render. */
|
|
163
|
-
answer(sessionId: string): BridgeAnswer | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* The extension's word on what happened to a delivery. On success the question is resolved:
|
|
166
|
-
* it is dropped, and re-reports of the same block are ignored (see {@link record}).
|
|
167
|
-
*/
|
|
168
|
-
resolveAnswer(sessionId: string, id: string, ok: boolean, note?: string): void;
|
|
169
|
-
/** The question that session is parked on, if the bridge has reported one. */
|
|
170
|
-
get(sessionId: string): BridgeQuestion | undefined;
|
|
171
|
-
/** Every parked question, newest first. */
|
|
172
|
-
list(): BridgeQuestion[];
|
|
173
|
-
/** Drop a session's question, once it is answered or its agent is gone. */
|
|
174
|
-
clear(sessionId: string): void;
|
|
175
|
-
}
|
|
176
|
-
export declare function bridgeQuestions(): BridgeQuestions;
|
|
177
|
-
/** Replace the store. Tests only: a module singleton would otherwise leak between them. */
|
|
178
|
-
export declare function resetBridgeQuestions(): void;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A read-through cache for the dashboard's slow reads (#1028).
|
|
3
|
-
*
|
|
4
|
-
* The dashboard polls. Every session view asks for its branch's PR, twice (the worktree bar and
|
|
5
|
-
* the handoff summary), on every navigation and again every ten seconds — and a git host read costs
|
|
6
|
-
* about 600ms against a local git read's ten. So the same answer was being bought over and over,
|
|
7
|
-
* and the panel waited for it each time.
|
|
8
|
-
*
|
|
9
|
-
* Three behaviours, and each one is load-bearing:
|
|
10
|
-
* - **single flight** — concurrent asks for the same key share one call, so two panels and a
|
|
11
|
-
* poll tick do not become three subprocesses
|
|
12
|
-
* - **stale while revalidate** — once a value exists it is returned immediately, and refreshed
|
|
13
|
-
* in the background when it is older than `ttlMs`; nobody waits twice for the same answer
|
|
14
|
-
* - **a budget on the cold ask** — the first ask waits only `budgetMs` for the answer before
|
|
15
|
-
* reporting `pending`, so a slow lookup delays one panel's extra detail rather than the page
|
|
16
|
-
*
|
|
17
|
-
* `pending` is not "failed": it means the answer is on its way and the next read will have it.
|
|
18
|
-
* A caller that must not act on a half-answer (offering to open a PR that may already exist)
|
|
19
|
-
* uses it to hold off.
|
|
20
|
-
*/
|
|
21
|
-
/** What a cached read answers with: the value, and whether it is still being fetched. */
|
|
22
|
-
export interface Cached<T> {
|
|
23
|
-
value: T | undefined;
|
|
24
|
-
/** True when no value is known yet and a read is still running. */
|
|
25
|
-
pending: boolean;
|
|
26
|
-
}
|
|
27
|
-
/** Clock seam, so the tests do not sleep. */
|
|
28
|
-
export type Now = () => number;
|
|
29
|
-
export interface CacheOptions {
|
|
30
|
-
/** How old a value may be before a background refresh is started. */
|
|
31
|
-
ttlMs?: number;
|
|
32
|
-
/** How long a first, uncached ask waits before reporting `pending`. */
|
|
33
|
-
budgetMs?: number;
|
|
34
|
-
now?: Now;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Read `key` through the cache, calling `load` when it is missing or stale.
|
|
38
|
-
*
|
|
39
|
-
* A failed load is not cached: it leaves whatever was there (a panel keeps showing the last PR it
|
|
40
|
-
* knew about rather than dropping it because the git host hiccuped) and the next read tries again.
|
|
41
|
-
*/
|
|
42
|
-
export declare function cachedRead<T>(key: string, load: () => Promise<T>, options?: CacheOptions): Promise<Cached<T>>;
|
|
43
|
-
/** Drop what is cached under `key`, so the next read is a fresh one. */
|
|
44
|
-
export declare function invalidate(key: string): void;
|
|
45
|
-
/** Test seam: forget everything. */
|
|
46
|
-
export declare function clearCache(): void;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { ProjectSummary } from './projects.js';
|
|
2
|
-
import { type ProjectQueue } from './queue.js';
|
|
3
|
-
import { type ActiveAgent, type OverviewDeps } from './overview.js';
|
|
4
|
-
/** One project's rollup row. */
|
|
5
|
-
export interface ProjectStat {
|
|
6
|
-
projectId: string;
|
|
7
|
-
/** Whether the repo has any ticket in `tickets/` (#958) — presence only, not a count. */
|
|
8
|
-
hasTickets: boolean;
|
|
9
|
-
/** Whether one of the project's packages provides tickets at all (#1774): without one, there is nothing to populate. */
|
|
10
|
-
providesTickets: boolean;
|
|
11
|
-
}
|
|
12
|
-
/** The dashboard page payload (#471). */
|
|
13
|
-
export interface DashboardData {
|
|
14
|
-
totals: {
|
|
15
|
-
projects: number;
|
|
16
|
-
openTodos: number;
|
|
17
|
-
};
|
|
18
|
-
/** Agents going right now, most-recently-updated first (from {@link buildOverview}). */
|
|
19
|
-
active: ActiveAgent[];
|
|
20
|
-
/** Every registered project, most-recently-active first. */
|
|
21
|
-
projects: ProjectStat[];
|
|
22
|
-
/** The per-project agent queue (from {@link collectQueue}): the projects that have one, with their open entries. */
|
|
23
|
-
queue: ProjectQueue[];
|
|
24
|
-
}
|
|
25
|
-
/** Injectable readers so {@link buildDashboard} is unit-testable off disk. */
|
|
26
|
-
export interface DashboardDeps extends OverviewDeps {
|
|
27
|
-
/** Whether a project has tickets (#958). Defaults to the provider's list being non-empty (false on any error). */
|
|
28
|
-
tickets?: (cwd: string) => Promise<boolean>;
|
|
29
|
-
/** Whether a project's packages provide tickets (#1774). Defaults to the provider lookup (false on any error). */
|
|
30
|
-
providesTickets?: (cwd: string) => Promise<boolean>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Build the Overview dashboard: the {@link buildOverview} rollup (working now / queue) plus the
|
|
34
|
-
* per-project ticket presence the onboarding checklist reads. Forgiving — a project whose state
|
|
35
|
-
* cannot be read simply contributes nothing.
|
|
36
|
-
*/
|
|
37
|
-
export declare function buildDashboard(projects: ProjectSummary[], deps?: DashboardDeps): Promise<DashboardData>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Discord rejects a message over 2000 characters outright, so a long reply is trimmed. */
|
|
2
|
-
export declare const MAX_CONTENT = 2000;
|
|
3
|
-
/**
|
|
4
|
-
* The one Discord *webhook* transport (#627): a single POST of one message. The two
|
|
5
|
-
* notification posters (activity, interventions) each carried their own copy of this fetch;
|
|
6
|
-
* their line formatters rightly stay beside the types they switch on, but the transport is
|
|
7
|
-
* not per-feed. Deliberately not in discord/rest.ts — that module is the bot-token API
|
|
8
|
-
* (channels, replies), and a webhook needs no token and reaches one fixed channel — though
|
|
9
|
-
* it shares that module's clamp: Discord rejects a message over 2000 chars outright, so an
|
|
10
|
-
* unclamped "needs you" batch would silently post nothing (#940).
|
|
11
|
-
*
|
|
12
|
-
* Resolves whether Discord accepted the post. A failed delivery must never throw out of a
|
|
13
|
-
* daemon watcher, so a non-ok response and a network error both resolve `false` for the
|
|
14
|
-
* caller to log.
|
|
15
|
-
*/
|
|
16
|
-
export declare function postDiscordWebhook(webhook: string, content: string, fetchImpl?: typeof fetch): Promise<boolean>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The plan/backlog document categories the dashboard surfaces in its sidebar
|
|
3
|
-
* (#319, part of the MVP UI #309), so the human can read them beside the agent.
|
|
4
|
-
*
|
|
5
|
-
* These are written per session as `PLAN_<SESSION>.agent.md` (the plan for now) and
|
|
6
|
-
* `TODO_<SESSION>.agent.md` (the backlog), where SESSION is a git-branch slug — by
|
|
7
|
-
* The Framework's own system prompt back when it ran the agent (#323/#326), and by
|
|
8
|
-
* whatever a project's own skills tell an agent to write now. The flat fallback is `PLAN.md`
|
|
9
|
-
* at the root; the `TODO` category has no flat file: the agent queue is not a document of the
|
|
10
|
-
* checkout but a project package's data, and the dashboard shows it on that package's own page
|
|
11
|
-
* and the Overview's AI Queue card (#1774), not here. Scoped and flat-root names are matched
|
|
12
|
-
* against a flat readdir of the root, never taken from user input, so there is no path
|
|
13
|
-
* traversal to guard against.
|
|
14
|
-
*/
|
|
15
|
-
export declare const DOC_CATEGORIES: readonly [{
|
|
16
|
-
readonly flat: 'PLAN.md';
|
|
17
|
-
readonly scoped: RegExp;
|
|
18
|
-
}, {
|
|
19
|
-
readonly scoped: RegExp;
|
|
20
|
-
}];
|
|
21
|
-
/** One surfaced document: its filename and current contents. */
|
|
22
|
-
export interface WorkspaceDoc {
|
|
23
|
-
name: string;
|
|
24
|
-
content: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The workspace-root filenames to surface, in sidebar order: per category the flat
|
|
28
|
-
* file (if present) then its session-scoped files (sorted). Every name is a bare
|
|
29
|
-
* readdir entry matched against a fixed pattern, so none can traverse. Returns
|
|
30
|
-
* empty when the workspace is missing or unreadable.
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* Read the surfaced plan/todo docs, in sidebar order: per category the flat file (if the
|
|
34
|
-
* category has one and it is present) then its session-scoped files (sorted), every one a
|
|
35
|
-
* workspace-root file. Missing or blank files are skipped; a file over the size cap is
|
|
36
|
-
* truncated. Never throws — a read error just omits that doc.
|
|
37
|
-
*/
|
|
38
|
-
export declare function readDocs(cwd: string): Promise<WorkspaceDoc[]>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { type GitRunner } from '@gemstack/agent-data';
|
|
2
|
-
import type { FileGitStatus } from './file-status.js';
|
|
3
|
-
import { safeRepoPath } from './file-read.js';
|
|
4
|
-
export { safeRepoPath };
|
|
5
|
-
/** One file's diff, capped so a hover card can render it. */
|
|
6
|
-
export interface FileDiff {
|
|
7
|
-
/** The repo-relative path asked for. */
|
|
8
|
-
path: string;
|
|
9
|
-
status: FileGitStatus;
|
|
10
|
-
/** Unified diff body, hunks only (git's `diff --git` / index preamble is dropped). */
|
|
11
|
-
patch: string;
|
|
12
|
-
added: number;
|
|
13
|
-
removed: number;
|
|
14
|
-
/** The patch hit the preview cap and was cut. */
|
|
15
|
-
truncated: boolean;
|
|
16
|
-
/** Nothing textual to show (git reports a binary change, or the file is not UTF-8 text). */
|
|
17
|
-
binary: boolean;
|
|
18
|
-
}
|
|
19
|
-
/** One changed file in a session's Changes list (#817): what moved, and by how much. */
|
|
20
|
-
export interface FileChange {
|
|
21
|
-
path: string;
|
|
22
|
-
status: FileGitStatus;
|
|
23
|
-
added: number;
|
|
24
|
-
removed: number;
|
|
25
|
-
/** Line counts are unavailable (a binary file, or an untracked one too large to count). */
|
|
26
|
-
binary: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* The diff for one changed file in the checkout at `cwd`, or, given a `range`, between two
|
|
30
|
-
* commits of the repository at `cwd` (a run's committed change, `agent-tree.ts`).
|
|
31
|
-
*
|
|
32
|
-
* Tracked files diff against `HEAD`, not the index, so a change the agent staged still shows;
|
|
33
|
-
* that also matches `git status --porcelain`, which is what dotted the file in the first place.
|
|
34
|
-
* An untracked file is rendered as all-added from its contents, since `git diff --no-index`
|
|
35
|
-
* exits non-zero on a difference and would read as a failure here.
|
|
36
|
-
*
|
|
37
|
-
* Returns null when the path is unsafe, unreadable, or has no diff to show.
|
|
38
|
-
*/
|
|
39
|
-
export declare function readFileDiff(cwd: string, path: string, status: FileGitStatus, git?: GitRunner, range?: {
|
|
40
|
-
from: string;
|
|
41
|
-
to: string;
|
|
42
|
-
}): Promise<FileDiff | null>;
|
|
43
|
-
/** One `git diff --numstat` line, parsed. */
|
|
44
|
-
export interface NumstatEntry {
|
|
45
|
-
path: string;
|
|
46
|
-
added: number;
|
|
47
|
-
removed: number;
|
|
48
|
-
binary: boolean;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Parse `git diff --numstat` output: `added<TAB>removed<TAB>path`, with `-` for both counts
|
|
52
|
-
* on a binary file. The one parser for the grammar — it was written here and in run-handoff,
|
|
53
|
-
* and the copies had already drifted on a path containing a tab (this side rejoined it, the
|
|
54
|
-
* other dropped the line).
|
|
55
|
-
*/
|
|
56
|
-
export declare function parseNumstat(out: string): NumstatEntry[];
|
|
57
|
-
/**
|
|
58
|
-
* Every changed file in the checkout at `cwd`, with its line counts: the session's Changes list
|
|
59
|
-
* (#817). One `git status` plus one `git diff --numstat`, not a diff per file, so a session that
|
|
60
|
-
* touched forty files still costs two git calls.
|
|
61
|
-
*
|
|
62
|
-
* Untracked files have no numstat entry (they are not in the diff at all), so their added count
|
|
63
|
-
* is their line count, read from disk. Sorted by path, so the list does not reshuffle as a live
|
|
64
|
-
* session edits.
|
|
65
|
-
*/
|
|
66
|
-
export declare function readFileChanges(cwd: string, statuses: Record<string, FileGitStatus>, git?: GitRunner): Promise<FileChange[]>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/** Cap what a hover card renders, whether it is a patch or a file. */
|
|
2
|
-
export declare const MAX_PREVIEW_LINES = 500;
|
|
3
|
-
/** One unchanged file's contents for the tree's hover card (#828). */
|
|
4
|
-
export interface FileContent {
|
|
5
|
-
/** The repo-relative path asked for. */
|
|
6
|
-
path: string;
|
|
7
|
-
/** The file's text, cut at {@link MAX_PREVIEW_LINES}. Empty when binary. */
|
|
8
|
-
text: string;
|
|
9
|
-
/** The file was longer than the cap and was cut. */
|
|
10
|
-
truncated: boolean;
|
|
11
|
-
/** Not UTF-8 text, so there is nothing to render. */
|
|
12
|
-
binary: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Whether a client-supplied path may be read: repo-relative, no traversal, no absolute path, no
|
|
16
|
-
* leading `-` (git would read it as a flag), and never into `.git` (config and credentials live
|
|
17
|
-
* there). Rejecting is the whole contract; the caller resolves it against a checkout it chose.
|
|
18
|
-
*/
|
|
19
|
-
export declare function safeRepoPath(path: string): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Read a repo-relative file from `cwd`, or null when it is unsafe, outside the checkout, or
|
|
22
|
-
* unreadable.
|
|
23
|
-
*
|
|
24
|
-
* The confinement check is a `realpath` on both sides, not a string compare on the resolved path.
|
|
25
|
-
* `resolve` does not follow symlinks, so `src/link.txt -> /etc/passwd` resolves to a path that sits
|
|
26
|
-
* happily under `cwd` and passes a textual check while the read leaves the repo. `realpath` is what
|
|
27
|
-
* makes the containment real; it also normalizes the platform's own links (macOS `/tmp`), which is
|
|
28
|
-
* why `cwd` goes through it too rather than being compared raw.
|
|
29
|
-
*/
|
|
30
|
-
export declare function readConfinedFile(cwd: string, path: string): Promise<Buffer | null>;
|
|
31
|
-
/** Cut a body to {@link MAX_PREVIEW_LINES}, reporting whether anything was dropped. */
|
|
32
|
-
export declare function cutToPreview(body: string): {
|
|
33
|
-
body: string;
|
|
34
|
-
truncated: boolean;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* One unchanged file's contents (#828). Null when the path is unsafe, outside the checkout, or
|
|
38
|
-
* unreadable. A file git has not touched still reads from the resolved checkout, so a session's
|
|
39
|
-
* hover shows its worktree's copy rather than the project root's (#815).
|
|
40
|
-
*/
|
|
41
|
-
export declare function readFileContent(cwd: string, path: string): Promise<FileContent | null>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type GitRunner } from '@gemstack/agent-data';
|
|
2
|
-
/**
|
|
3
|
-
* The tree's per-file git state. `added` is a file a commit created (a run's committed change,
|
|
4
|
-
* `agent-tree.ts`); the working tree's status here never says it, a new file there is `untracked`.
|
|
5
|
-
*/
|
|
6
|
-
export type FileGitStatus = 'untracked' | 'added' | 'modified' | 'deleted';
|
|
7
|
-
/** One `git status --porcelain` line: the two status columns and the path they are about. */
|
|
8
|
-
export interface PorcelainEntry {
|
|
9
|
-
code: string;
|
|
10
|
-
/** Repo-relative; a rename resolves to the new path. */
|
|
11
|
-
path: string;
|
|
12
|
-
}
|
|
13
|
-
/** Parse `git status --porcelain` output. Shared with the handoff's pending-files read (#1173). */
|
|
14
|
-
export declare function parsePorcelain(out: string): PorcelainEntry[];
|
|
15
|
-
/**
|
|
16
|
-
* Read each changed file's status from `git status --porcelain`, keyed by repo-relative path.
|
|
17
|
-
* `??` is untracked, a `D` in either column is deleted, anything else (M/A/R/C…) reads as
|
|
18
|
-
* modified. Renames map to the new path. Returns `{}` when the path is not a git repo.
|
|
19
|
-
*/
|
|
20
|
-
export declare function readFileStatuses(cwd: string, git?: GitRunner): Promise<Record<string, FileGitStatus>>;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { type CliRunner } from '../cli-exec.js';
|
|
2
|
-
import { type Cached } from './cache.js';
|
|
3
|
-
/**
|
|
4
|
-
* The `gh` CLI, in one place: the JSON reads the dashboard makes of pull requests. Reads only:
|
|
5
|
-
* pushing, opening and merging are the project's branches provider's (`../store/branches.ts`).
|
|
6
|
-
*
|
|
7
|
-
* There were four separate `gh` adapters across three modules. Three were reads that each
|
|
8
|
-
* hand-rolled `execFile` + `JSON.parse` + a swallowed failure and each spelled the 8s timeout
|
|
9
|
-
* again, and two of those differed only in whether a branch positional was passed.
|
|
10
|
-
*/
|
|
11
|
-
/** Runs `gh`, resolving stdout and rejecting with the CLI's own stderr on failure. */
|
|
12
|
-
export type GhRunner = CliRunner;
|
|
13
|
-
/** A forgiving `gh --json` read: resolves `empty` when gh is missing/unauthed, or its output is not JSON. */
|
|
14
|
-
export declare function ghJson<T>(args: string[], cwd: string, empty: T, gh?: GhRunner): Promise<T>;
|
|
15
|
-
/** The PR opened for a branch, when there is one. */
|
|
16
|
-
export interface LinkedPr {
|
|
17
|
-
number: number;
|
|
18
|
-
url: string;
|
|
19
|
-
/** OPEN / MERGED / CLOSED (as gh reports it). */
|
|
20
|
-
state: string;
|
|
21
|
-
title: string;
|
|
22
|
-
/** ISO creation time, when the read included it: what tells one agent's PR from a predecessor's. */
|
|
23
|
-
createdAt?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The head commit the PR covers, when the read included it (#1512): what tells "the branch's
|
|
26
|
-
* PR already landed everything" from "the session kept working after its PR merged".
|
|
27
|
-
*/
|
|
28
|
-
headRefOid?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* A best-effort PR lookup, for a named branch or for the checkout's current branch. One type for
|
|
32
|
-
* both: the named-branch form is the general one, and "the current branch" is just omitting it.
|
|
33
|
-
*/
|
|
34
|
-
export type PrLookup = (cwd: string, branch?: string) => Promise<LinkedPr | undefined>;
|
|
35
|
-
/**
|
|
36
|
-
* The branch-addressed form, for a caller that always names one (#799): a finished session's
|
|
37
|
-
* worktree may be gone, so "the current branch" would silently be the project's, not the
|
|
38
|
-
* session's. Narrower than {@link PrLookup} on purpose, so that invariant is in the type.
|
|
39
|
-
*/
|
|
40
|
-
export type BranchPrLookup = (cwd: string, branch: string) => Promise<LinkedPr | undefined>;
|
|
41
|
-
/**
|
|
42
|
-
* The PR for `branch`, or for whatever branch `cwd` is on when none is named. Resolves undefined
|
|
43
|
-
* when gh is missing/unauthed or there is no PR.
|
|
44
|
-
*
|
|
45
|
-
* The named-branch form is what a finished session needs (#799): its worktree may be gone, so the
|
|
46
|
-
* checkout's current branch is the project's, not the session's. The fields are copied out rather
|
|
47
|
-
* than passed through, so a future `--json` addition cannot leak into what callers store.
|
|
48
|
-
*
|
|
49
|
-
* Every optional field {@link LinkedPr} declares must be both asked for and copied out here, or it
|
|
50
|
-
* is silently absent for every caller of this path. `createdAt` was once neither, and it is what
|
|
51
|
-
* tells an agent's own PR from a predecessor's on the same branch name ({@link pickAgentPr}).
|
|
52
|
-
*/
|
|
53
|
-
export declare function ghPrView(cwd: string, branch?: string, gh?: GhRunner): Promise<LinkedPr | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* The cached form of {@link ghPrView} (#1028), and what the dashboard's panels use.
|
|
56
|
-
*
|
|
57
|
-
* A PR lookup costs about 600ms where the git reads beside it cost ten, and the answer changes
|
|
58
|
-
* about as often as someone opens a PR. Cached per checkout and branch, shared between the
|
|
59
|
-
* worktree bar and the handoff summary, and refreshed behind whoever asks. `pending` says the
|
|
60
|
-
* answer is not known yet rather than that there is no PR — the difference matters to a caller
|
|
61
|
-
* deciding whether to offer "Open PR".
|
|
62
|
-
*/
|
|
63
|
-
export declare function cachedPrView(cwd: string, branch?: string): Promise<Cached<LinkedPr | undefined>>;
|
|
64
|
-
/** Forget a branch's PR, after an action that changes whether it has one. */
|
|
65
|
-
export declare function forgetPr(cwd: string, branch?: string): void;
|
|
66
|
-
/**
|
|
67
|
-
* Every PR a branch name has ever had, newest first (#1251).
|
|
68
|
-
*
|
|
69
|
-
* `gh pr view <branch>` answers with the newest PR for that head *in any state*, so a session
|
|
70
|
-
* whose prompt pins its branch name (`the-framework/triage-quick`) inherits a predecessor's
|
|
71
|
-
* merged PR as its own. The list form keeps the whole history so {@link pickAgentPr} can decide
|
|
72
|
-
* which entry, if any, belongs to the agent asking. Resolves `[]` when gh is missing/unauthed —
|
|
73
|
-
* indistinguishable from "no PRs", which is what every caller would do with a failure anyway.
|
|
74
|
-
*/
|
|
75
|
-
export declare function ghPrsForBranch(cwd: string, branch: string): Promise<LinkedPr[]>;
|
|
76
|
-
/**
|
|
77
|
-
* {@link ghPrsForBranch} for a caller about to *open* a PR (#1601): a listing that fails throws
|
|
78
|
-
* instead of reading as "no PRs", because "none" and "could not tell" must not look alike there —
|
|
79
|
-
* the difference is a second draft PR on a branch that already has one.
|
|
80
|
-
*/
|
|
81
|
-
export declare function ghPrsForBranchOrThrow(cwd: string, branch: string): Promise<LinkedPr[]>;
|
|
82
|
-
/** The cached form of {@link ghPrsForBranch}, shared through the same read-through cache (#1028). */
|
|
83
|
-
export declare function cachedPrsForBranch(cwd: string, branch: string): Promise<Cached<LinkedPr[]>>;
|
|
84
|
-
/** Forget a branch's PR history, after an action that changes it (opening one). */
|
|
85
|
-
export declare function forgetBranchPrs(cwd: string, branch: string): void;
|
|
86
|
-
/**
|
|
87
|
-
* The PR that belongs to an agent, out of every PR its branch name has had (#1251/#1255).
|
|
88
|
-
*
|
|
89
|
-
* An OPEN PR always counts: GitHub allows one open PR per head branch, so whatever is open on the
|
|
90
|
-
* run's branch is where its pushed commits land. A closed one counts only when it was created
|
|
91
|
-
* after the agent started (`since`, the agent's `startedAt`) — the oldest such entry, which is the one
|
|
92
|
-
* this agent's handoff opened. Anything older is a previous agent's PR wearing the same branch name,
|
|
93
|
-
* which is exactly what showed a merged two-day-old PR as a fresh session's own. Without `since`
|
|
94
|
-
* only an open PR is trusted.
|
|
95
|
-
*
|
|
96
|
-
* `order` exists for the one caller asking a different question (#1512). `'first'` answers
|
|
97
|
-
* identity — which PR did *this agent* open, so a later agent's must not be the answer. `'latest'`
|
|
98
|
-
* answers the handoff decision — which PR last saw the branch, so "did the session keep working
|
|
99
|
-
* past it" is readable off that PR's `headRefOid`; there the oldest entry would call work that a
|
|
100
|
-
* second PR already landed unlanded.
|
|
101
|
-
*/
|
|
102
|
-
export declare function pickAgentPr(prs: LinkedPr[], since?: string, order?: 'first' | 'latest'): LinkedPr | undefined;
|
|
103
|
-
/** An open PR on the interventions queue (#632). */
|
|
104
|
-
export interface OpenPr {
|
|
105
|
-
number: number;
|
|
106
|
-
title: string;
|
|
107
|
-
url: string;
|
|
108
|
-
/**
|
|
109
|
-
* Draft PRs are generally left off the queue: a draft is not asking for review.
|
|
110
|
-
*
|
|
111
|
-
* The exception is a draft the framework opened for itself (#1102), which {@link headRefName}
|
|
112
|
-
* is what tells apart.
|
|
113
|
-
*/
|
|
114
|
-
isDraft: boolean;
|
|
115
|
-
/** The branch the PR is from, so a session's own PR can be recognised as ours (#1102). */
|
|
116
|
-
headRefName?: string;
|
|
117
|
-
createdAt?: string;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* A checkout's open PRs. Unlike the other reads here it *rejects* when gh could not answer — no
|
|
121
|
-
* remote, not authenticated, GitHub unreachable — instead of resolving `[]`.
|
|
122
|
-
*
|
|
123
|
-
* "No PRs are open" and "I could not look" are different answers, and its caller keeps a baseline
|
|
124
|
-
* of what it has already announced (#1623): taking the second for the first makes the next
|
|
125
|
-
* successful read announce every already-open PR as new. The caller decides what a failure costs;
|
|
126
|
-
* it cannot decide what it never hears about.
|
|
127
|
-
*/
|
|
128
|
-
export declare function ghPrList(cwd: string, gh?: GhRunner): Promise<OpenPr[]>;
|
|
129
|
-
/** Lists a checkout's open PRs; rejects when there is no remote / gh is unavailable. */
|
|
130
|
-
export type PrLister = (cwd: string) => Promise<OpenPr[]>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type GitRunner } from '@gemstack/agent-data';
|
|
2
|
-
import { type LinkedPr, type PrLookup } from './pull-requests.js';
|
|
3
|
-
/** A project's git status for the panel. */
|
|
4
|
-
export interface GitStatus {
|
|
5
|
-
branch: string;
|
|
6
|
-
/** Uncommitted changes present. */
|
|
7
|
-
dirty: boolean;
|
|
8
|
-
pr?: LinkedPr;
|
|
9
|
-
/** The PR is not known yet, rather than absent (#1028): the lookup is still running. */
|
|
10
|
-
prPending?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/** Injectable seams so {@link readGitStatus} is unit-testable off disk. */
|
|
13
|
-
export interface GitStatusDeps {
|
|
14
|
-
git?: GitRunner;
|
|
15
|
-
pr?: PrLookup;
|
|
16
|
-
/**
|
|
17
|
-
* The agent's start, when the status is read for an agent's checkout (#1255). The default lookup
|
|
18
|
-
* answers the newest PR for the branch *in any state* — so an agent on a reused pinned branch
|
|
19
|
-
* (`the-framework/triage-quick`) wears a predecessor's merged PR as its own badge.
|
|
20
|
-
* With `since` set the PR is picked from the branch's whole history by {@link pickAgentPr}
|
|
21
|
-
* instead: an open PR, or a closed one no older than the agent itself.
|
|
22
|
-
*/
|
|
23
|
-
since?: string;
|
|
24
|
-
/** The branch's full PR history, for the {@link GitStatusDeps.since} path (default {@link cachedPrsForBranch}). */
|
|
25
|
-
prs?: (cwd: string, branch: string) => Promise<LinkedPr[]>;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Read a project's git status: the current branch and dirty flag (from git), plus the linked
|
|
29
|
-
* PR (best-effort). Returns undefined when the path is not a git repo. Forgiving — a failed
|
|
30
|
-
* `git status` reads as clean, and a failed PR lookup simply omits the PR.
|
|
31
|
-
*/
|
|
32
|
-
export declare function readGitStatus(cwd: string, deps?: GitStatusDeps): Promise<GitStatus | undefined>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type GitRunner } from '@gemstack/agent-data';
|
|
2
|
-
/**
|
|
3
|
-
* Normalize a git remote URL to an `https://github.com/<owner>/<repo>` URL, or undefined when
|
|
4
|
-
* it is not a GitHub remote. Handles the scp-style (`git@github.com:o/r.git`), ssh
|
|
5
|
-
* (`ssh://git@github.com/o/r.git`), and https (`https://github.com/o/r.git`) forms, dropping
|
|
6
|
-
* a `.git` suffix, an embedded credential, and a trailing slash.
|
|
7
|
-
*/
|
|
8
|
-
export declare function githubUrlFromRemote(remote: string): string | undefined;
|
|
9
|
-
/** The repo's GitHub URL from its `origin` remote, or undefined (no remote / not GitHub). */
|
|
10
|
-
export declare function githubUrlFor(cwd: string, git?: GitRunner): Promise<string | undefined>;
|