@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,74 +0,0 @@
|
|
|
1
|
-
import { type RemoveResult, type WorktreeRow } from './worktrees.js';
|
|
2
|
-
import { type ProjectPass, type ProjectsSource } from './project-pass.js';
|
|
3
|
-
/** One worktree this sweep removed. */
|
|
4
|
-
export interface RemovedWorktree {
|
|
5
|
-
/** The agent id, which is also the worktree's directory name. */
|
|
6
|
-
agentId: string;
|
|
7
|
-
/** Branches that went with it: one holding nothing the remote lacks (#1650), a run-id branch the kept branch contains (#1657). */
|
|
8
|
-
branchesDeleted?: string[];
|
|
9
|
-
}
|
|
10
|
-
/** A worktree the sweep tried to reclaim and could not, and why. */
|
|
11
|
-
export interface FailedRemoval {
|
|
12
|
-
agentId: string;
|
|
13
|
-
error: string;
|
|
14
|
-
}
|
|
15
|
-
/** What {@link removeMergedWorktrees} did. */
|
|
16
|
-
export interface MergedSweepResult {
|
|
17
|
-
removed: RemovedWorktree[];
|
|
18
|
-
/** Worktrees it tried and could not reclaim — most often a branch it could not push. */
|
|
19
|
-
failed: FailedRemoval[];
|
|
20
|
-
}
|
|
21
|
-
/** Injectable seams so the sweep is unit-testable off disk. */
|
|
22
|
-
export interface MergedSweepDeps {
|
|
23
|
-
/** The worktrees on disk (default {@link listProjectWorktrees}). */
|
|
24
|
-
worktrees?: (cwd: string) => Promise<WorktreeRow[]>;
|
|
25
|
-
/** Removes one worktree (default {@link removeProjectWorktree}). */
|
|
26
|
-
remove?: (cwd: string, agentId: string) => Promise<RemoveResult>;
|
|
27
|
-
/** Whether the repo has a remote at all (default {@link repoHasRemote}). */
|
|
28
|
-
hasRemote?: (cwd: string) => Promise<boolean>;
|
|
29
|
-
/** Agent ids whose checkouts the daemon is still responsible for; see {@link MergedSweepOptions.busy}. */
|
|
30
|
-
busy?: ReadonlySet<string>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Reclaim every retained worktree in `cwd` whose work can reach the remote (E5).
|
|
34
|
-
*
|
|
35
|
-
* The decision is entirely {@link removeProjectWorktree}'s — keep a dirty checkout, push the
|
|
36
|
-
* branch, remove only once the remote has it — so the automatic path and the manual one (the
|
|
37
|
-
* dashboard's Remove button) are one behaviour rather than two that can disagree. This adds the
|
|
38
|
-
* loop, the one thing it must never touch (a live agent's checkout, where its agent is working), and
|
|
39
|
-
* the agent lock.
|
|
40
|
-
*
|
|
41
|
-
* The lock is load-bearing: an agent's meta flips to `done` a beat before its teardown finishes
|
|
42
|
-
* archiving, so a sweep landing in that window would remove the checkout out from under the
|
|
43
|
-
* archive — which then recreates the directory it was reading from, and the removal silently
|
|
44
|
-
* un-happens. Every other actor on a checkout already takes this lock.
|
|
45
|
-
*/
|
|
46
|
-
export declare function removeMergedWorktrees(cwd: string, deps?: MergedSweepDeps): Promise<MergedSweepResult>;
|
|
47
|
-
/** `its branch x` / `its branches x and y`, for the removal line. */
|
|
48
|
-
export declare function describeDeleted(branches: readonly string[]): string;
|
|
49
|
-
/** What {@link startMergedWorktreeSweep} needs from the daemon. */
|
|
50
|
-
export interface MergedSweepOptions {
|
|
51
|
-
/** The registered projects to sweep. */
|
|
52
|
-
projects: ProjectsSource;
|
|
53
|
-
log: (message: string) => void;
|
|
54
|
-
/**
|
|
55
|
-
* The agents the daemon is still responsible for — spawning, running, or mid-retirement — whose
|
|
56
|
-
* checkouts this must not touch.
|
|
57
|
-
*
|
|
58
|
-
* "Not live" on disk is not "the daemon is finished with it": an agent's meta flips to `done` a
|
|
59
|
-
* beat before its teardown archives the history and reclaims the checkout, and a sweep landing
|
|
60
|
-
* in that window races the teardown for the same directory. Absent means nothing is busy, which
|
|
61
|
-
* is right for a caller that spawns no agents.
|
|
62
|
-
*/
|
|
63
|
-
busy?: () => ReadonlySet<string>;
|
|
64
|
-
/** The per-project sweep (default {@link removeMergedWorktrees}). */
|
|
65
|
-
sweep?: (cwd: string) => Promise<MergedSweepResult>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Sweep every registered project's reclaimable worktrees (#1036), one turn per call.
|
|
69
|
-
*
|
|
70
|
-
* Says what it removed rather than removing it silently: a checkout vanishing from under someone
|
|
71
|
-
* with no line explaining why reads as a bug, even when the work behind it is safe.
|
|
72
|
-
*/
|
|
73
|
-
export declare function startMergedWorktreeSweep(opts: MergedSweepOptions): ProjectPass;
|
|
74
|
-
//# sourceMappingURL=merged-worktrees.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merged-worktrees.d.ts","sourceRoot":"","sources":["../src/merged-worktrees.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAGjH,OAAO,EAAoB,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAmB3F,uCAAuC;AACvC,MAAM,WAAW,eAAe;IAC9B,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAA;IACf,kIAAkI;IAClI,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAC3B;AAED,oEAAoE;AACpE,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd;AAED,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,eAAe,EAAE,CAAA;IAC1B,wFAAwF;IACxF,MAAM,EAAE,aAAa,EAAE,CAAA;CACxB;AAED,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,oEAAoE;IACpE,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IACnD,oEAAoE;IACpE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAA;IAChE,4EAA4E;IAC5E,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC7C,0GAA0G;IAC1G,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC3B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,eAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAyB/G;AAED,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAEnE;AAED,mEAAmE;AACnE,MAAM,WAAW,kBAAkB;IACjC,wCAAwC;IACxC,QAAQ,EAAE,cAAc,CAAA;IACxB,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,MAAM,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,qEAAqE;IACrE,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAA;CACpD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,kBAAkB,GAAG,WAAW,CA6B9E"}
|
package/dist/merged-worktrees.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { listProjectWorktrees, removeProjectWorktree } from './worktrees.js';
|
|
2
|
-
import { withAgentLock } from './agent-locks.js';
|
|
3
|
-
import { repoHasRemote, worktreePath } from '@gemstack/skill-branches';
|
|
4
|
-
import { startProjectPass } from './project-pass.js';
|
|
5
|
-
/**
|
|
6
|
-
* Reclaim every retained worktree in `cwd` whose work can reach the remote (E5).
|
|
7
|
-
*
|
|
8
|
-
* The decision is entirely {@link removeProjectWorktree}'s — keep a dirty checkout, push the
|
|
9
|
-
* branch, remove only once the remote has it — so the automatic path and the manual one (the
|
|
10
|
-
* dashboard's Remove button) are one behaviour rather than two that can disagree. This adds the
|
|
11
|
-
* loop, the one thing it must never touch (a live agent's checkout, where its agent is working), and
|
|
12
|
-
* the agent lock.
|
|
13
|
-
*
|
|
14
|
-
* The lock is load-bearing: an agent's meta flips to `done` a beat before its teardown finishes
|
|
15
|
-
* archiving, so a sweep landing in that window would remove the checkout out from under the
|
|
16
|
-
* archive — which then recreates the directory it was reading from, and the removal silently
|
|
17
|
-
* un-happens. Every other actor on a checkout already takes this lock.
|
|
18
|
-
*/
|
|
19
|
-
export async function removeMergedWorktrees(cwd, deps = {}) {
|
|
20
|
-
// Sizes off: `du` over every retained checkout is the expensive part of the listing, and a sweep
|
|
21
|
-
// that only decides removal never reads the number.
|
|
22
|
-
const worktrees = deps.worktrees ?? ((path) => listProjectWorktrees(path, { sizes: false }));
|
|
23
|
-
const remove = deps.remove ?? removeProjectWorktree;
|
|
24
|
-
const hasRemote = deps.hasRemote ?? repoHasRemote;
|
|
25
|
-
const result = { removed: [], failed: [] };
|
|
26
|
-
const rows = (await worktrees(cwd).catch(() => [])).filter(row => !row.live && !deps.busy?.has(row.agentId));
|
|
27
|
-
if (!rows.length)
|
|
28
|
-
return result;
|
|
29
|
-
// Asked once per project, not once per checkout: with no remote the rule keeps everything, and
|
|
30
|
-
// that answer cannot change between two rows of the same sweep — so the doomed per-checkout
|
|
31
|
-
// probe-and-push cycle is skipped while each retained checkout is still accounted for.
|
|
32
|
-
if (!(await hasRemote(cwd))) {
|
|
33
|
-
for (const row of rows)
|
|
34
|
-
result.failed.push({ agentId: row.agentId, error: 'the repo has no remote; its worktree was kept' });
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
for (const row of rows) {
|
|
38
|
-
const outcome = await withAgentLock(worktreePath(cwd, row.agentId), () => remove(cwd, row.agentId));
|
|
39
|
-
if (outcome.ok)
|
|
40
|
-
result.removed.push({ agentId: row.agentId, ...(outcome.branchesDeleted ? { branchesDeleted: outcome.branchesDeleted } : {}) });
|
|
41
|
-
else
|
|
42
|
-
result.failed.push({ agentId: row.agentId, error: outcome.error });
|
|
43
|
-
}
|
|
44
|
-
return result;
|
|
45
|
-
}
|
|
46
|
-
/** `its branch x` / `its branches x and y`, for the removal line. */
|
|
47
|
-
export function describeDeleted(branches) {
|
|
48
|
-
return branches.length === 1 ? `its branch ${branches[0]}` : `its branches ${branches.join(' and ')}`;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Sweep every registered project's reclaimable worktrees (#1036), one turn per call.
|
|
52
|
-
*
|
|
53
|
-
* Says what it removed rather than removing it silently: a checkout vanishing from under someone
|
|
54
|
-
* with no line explaining why reads as a bug, even when the work behind it is safe.
|
|
55
|
-
*/
|
|
56
|
-
export function startMergedWorktreeSweep(opts) {
|
|
57
|
-
const sweep = opts.sweep ?? ((cwd) => removeMergedWorktrees(cwd, { ...(opts.busy ? { busy: opts.busy() } : {}) }));
|
|
58
|
-
// Each checkout's last-announced keep reason, so a retained checkout is accounted for once per
|
|
59
|
-
// *state* rather than re-announced every ten minutes for the life of the daemon — a permanently
|
|
60
|
-
// unpushable one (no remote, a publish-nothing session) repeats forever. A changed reason is a
|
|
61
|
-
// changed state and is said again (a remote added, pushes now failing on auth); a removal
|
|
62
|
-
// clears the entry, so a same-id checkout that reappears is a new thing to account for; a
|
|
63
|
-
// daemon restart starts the accounting over, which is the boot-time announcement the retained
|
|
64
|
-
// state deserves.
|
|
65
|
-
const announced = new Map();
|
|
66
|
-
// No timer of its own (E4): the daemon's one clock calls `tick`, including once at start-up —
|
|
67
|
-
// the case this exists for is a machine that was off while the work could not be pushed.
|
|
68
|
-
return startProjectPass(opts.projects, async (cwd) => {
|
|
69
|
-
const { removed, failed } = await sweep(cwd).catch(() => ({ removed: [], failed: [] }));
|
|
70
|
-
for (const item of removed) {
|
|
71
|
-
announced.delete(item.agentId);
|
|
72
|
-
opts.log(item.branchesDeleted
|
|
73
|
-
? `[framework] removed the worktree for session ${item.agentId} and ${describeDeleted(item.branchesDeleted)}: nothing on it is missing elsewhere. The session is kept.`
|
|
74
|
-
: `[framework] removed the worktree for session ${item.agentId}: its branch is on the remote. The branch and the session are kept.`);
|
|
75
|
-
}
|
|
76
|
-
for (const item of failed) {
|
|
77
|
-
if (announced.get(item.agentId) === item.error)
|
|
78
|
-
continue;
|
|
79
|
-
announced.set(item.agentId, item.error);
|
|
80
|
-
opts.log(`[framework] kept the worktree for session ${item.agentId}: ${item.error}`);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=merged-worktrees.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merged-worktrees.js","sourceRoot":"","sources":["../src/merged-worktrees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAuC,MAAM,gBAAgB,CAAA;AACjH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAE,gBAAgB,EAAyC,MAAM,mBAAmB,CAAA;AAoD3F;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,GAAW,EAAE,IAAI,GAAoB,EAAE;IACjF,iGAAiG;IACjG,oDAAoD;IACpD,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,oBAAoB,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;IACpG,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,qBAAqB,CAAA;IACnD,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,aAAa,CAAA;IAEjD,MAAM,MAAM,GAAsB,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAA;IAC7D,MAAM,IAAI,GAAG,CAAC,MAAM,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAkB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CACvE,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CACjD,CAAA;IACD,IAAI,CAAC,IAAI,CAAC,MAAM;QAAE,OAAO,MAAM,CAAA;IAC/B,+FAA+F;IAC/F,4FAA4F;IAC5F,uFAAuF;IACvF,IAAI,CAAC,CAAC,MAAM,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QAC5B,KAAK,MAAM,GAAG,IAAI,IAAI;YAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,+CAA+C,EAAE,CAAC,CAAA;QAC5H,OAAO,MAAM,CAAA;IACf,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;QACnG,IAAI,OAAO,CAAC,EAAE;YAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;;YAC1I,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;IACzE,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,eAAe,CAAC,QAA2B;IACzD,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,cAAc,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;AACvG,CAAC;AAqBD;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAAwB;IAC/D,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,qBAAqB,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IAC1H,+FAA+F;IAC/F,gGAAgG;IAChG,+FAA+F;IAC/F,0FAA0F;IAC1F,0FAA0F;IAC1F,8FAA8F;IAC9F,kBAAkB;IAClB,MAAM,SAAS,GAAG,IAAI,GAAG,EAAkB,CAAA;IAE3C,8FAA8F;IAC9F,yFAAyF;IACzF,OAAO,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAC,GAAG,EAAC,EAAE;QACjD,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAsB,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;QAC1G,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;YAC3B,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC9B,IAAI,CAAC,GAAG,CACN,IAAI,CAAC,eAAe;gBAClB,CAAC,CAAC,gDAAgD,IAAI,CAAC,OAAO,QAAQ,eAAe,CAAC,IAAI,CAAC,eAAe,CAAC,4DAA4D;gBACvK,CAAC,CAAC,gDAAgD,IAAI,CAAC,OAAO,qEAAqE,CACtI,CAAA;QACH,CAAC;QACD,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;YAC1B,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,KAAK;gBAAE,SAAQ;YACxD,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;YACvC,IAAI,CAAC,GAAG,CAAC,6CAA6C,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;QACtF,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { type GitRunner } from '@gemstack/agent-data';
|
|
2
|
-
import { type BranchesFor } from '../store/index.js';
|
|
3
|
-
import type { Cached } from './cache.js';
|
|
4
|
-
import { type FileGitStatus } from './file-status.js';
|
|
5
|
-
import { type FileDiff } from './file-diff.js';
|
|
6
|
-
import { type FileContent } from './file-read.js';
|
|
7
|
-
import { type LinkedPr } from './pull-requests.js';
|
|
8
|
-
/** Where a run's files are read from, and the commit its changes are measured from (`base`). */
|
|
9
|
-
export type AgentFilesAt = {
|
|
10
|
-
source: 'checkout';
|
|
11
|
-
path: string;
|
|
12
|
-
base?: string;
|
|
13
|
-
} | {
|
|
14
|
-
source: 'branch';
|
|
15
|
-
branch: string;
|
|
16
|
-
ref: string;
|
|
17
|
-
base?: string;
|
|
18
|
-
} | {
|
|
19
|
-
source: 'merge';
|
|
20
|
-
number: number;
|
|
21
|
-
ref: string;
|
|
22
|
-
base?: string;
|
|
23
|
-
}
|
|
24
|
-
/** The run changed nothing: the project's default branch, where no path is marked. */
|
|
25
|
-
| {
|
|
26
|
-
source: 'unchanged';
|
|
27
|
-
ref: string;
|
|
28
|
-
}
|
|
29
|
-
/** The run's pull request is still being looked up: the next read knows. */
|
|
30
|
-
| {
|
|
31
|
-
source: 'pending';
|
|
32
|
-
} | {
|
|
33
|
-
source: 'gone';
|
|
34
|
-
};
|
|
35
|
-
/** One changed path: what changed, and whether it is committed or only on disk in the checkout. */
|
|
36
|
-
export interface FileMark {
|
|
37
|
-
status: FileGitStatus;
|
|
38
|
-
committed: boolean;
|
|
39
|
-
}
|
|
40
|
-
/** What the Files tab shows for a run: the tree at its last state, the paths it changed marked. */
|
|
41
|
-
export type AgentTree = {
|
|
42
|
-
source: 'checkout';
|
|
43
|
-
files: string[];
|
|
44
|
-
changes: Record<string, FileMark>;
|
|
45
|
-
} | {
|
|
46
|
-
source: 'branch';
|
|
47
|
-
branch: string;
|
|
48
|
-
files: string[];
|
|
49
|
-
changes: Record<string, FileMark>;
|
|
50
|
-
} | {
|
|
51
|
-
source: 'merge';
|
|
52
|
-
number: number;
|
|
53
|
-
files: string[];
|
|
54
|
-
changes: Record<string, FileMark>;
|
|
55
|
-
} | {
|
|
56
|
-
source: 'unchanged';
|
|
57
|
-
files: string[];
|
|
58
|
-
changes: Record<string, FileMark>;
|
|
59
|
-
} | {
|
|
60
|
-
source: 'pending';
|
|
61
|
-
} | {
|
|
62
|
-
source: 'gone';
|
|
63
|
-
};
|
|
64
|
-
/** What {@link resolveAgentFiles} reads through; each defaults to the production reader. */
|
|
65
|
-
export interface AgentFilesDeps {
|
|
66
|
-
git?: GitRunner;
|
|
67
|
-
branches?: BranchesFor;
|
|
68
|
-
agent?: (root: string, agentId: string) => Promise<{
|
|
69
|
-
id: string;
|
|
70
|
-
status?: string;
|
|
71
|
-
host?: string;
|
|
72
|
-
branch?: string;
|
|
73
|
-
pr?: {
|
|
74
|
-
number: number;
|
|
75
|
-
};
|
|
76
|
-
} | undefined>;
|
|
77
|
-
/** This machine's name, against the run's `host`. */
|
|
78
|
-
host?: string;
|
|
79
|
-
prs?: (root: string, branch: string) => Promise<Cached<LinkedPr[]>>;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Where the run `agentId` of the project at `root` has its files: its checkout, else its recorded
|
|
83
|
-
* branch (local, then origin's copy), else the commit its recorded pull request merged as, else,
|
|
84
|
-
* for a run that finished `done` on this machine with no pull request, the default branch as a
|
|
85
|
-
* run that changed nothing, else gone. A branch the default branch already contains (a true merge) shows no change, so there
|
|
86
|
-
* the merge commit is preferred when this machine has it.
|
|
87
|
-
*/
|
|
88
|
-
export declare function resolveAgentFiles(root: string, agentId: string, deps?: AgentFilesDeps): Promise<AgentFilesAt>;
|
|
89
|
-
/**
|
|
90
|
-
* The Files tab's answer for a resolved source. A checkout lists every file git sees in it and
|
|
91
|
-
* marks both what the run committed since it forked and what is on disk uncommitted, the
|
|
92
|
-
* uncommitted mark winning a path marked both: it is what the file is now. A branch or a merge
|
|
93
|
-
* lists the commit's tree and marks what it changed, all committed. A run that changed nothing
|
|
94
|
-
* lists the default branch's tree and marks nothing.
|
|
95
|
-
*/
|
|
96
|
-
export declare function readAgentTree(root: string, at: AgentFilesAt, git?: GitRunner): Promise<AgentTree>;
|
|
97
|
-
/**
|
|
98
|
-
* One changed file's diff, from the same source the tree was read from. In a checkout an
|
|
99
|
-
* uncommitted file diffs as it always has (against its last commit); a committed one diffs from
|
|
100
|
-
* the fork point to the checkout's last commit. On a branch or a merge it is the commit's own
|
|
101
|
-
* change. Null for a path that is unsafe or not changed there.
|
|
102
|
-
*/
|
|
103
|
-
export declare function readAgentFileDiff(root: string, at: AgentFilesAt, path: string, git?: GitRunner): Promise<FileDiff | null>;
|
|
104
|
-
/** One unchanged file's contents, from the same source the tree was read from. */
|
|
105
|
-
export declare function readAgentFileContent(root: string, at: AgentFilesAt, path: string, git?: GitRunner): Promise<FileContent | null>;
|
|
@@ -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,72 +0,0 @@
|
|
|
1
|
-
import type { ProjectSummary } from './projects.js';
|
|
2
|
-
import { type PublishLevel, type PublishPick } from '../publish-levels.js';
|
|
3
|
-
import { type GitHostFor } from '../store/git-host.js';
|
|
4
|
-
/** The file the scheduler keeps its state in, at the project's root; per user, hidden from git by the tool. */
|
|
5
|
-
export declare const SCHEDULER_STATE_FILE = ".agent-scheduler/state.json";
|
|
6
|
-
/** What the last tick decided for one scheduled command, one line for a person. */
|
|
7
|
-
export interface SchedulerDecision {
|
|
8
|
-
command: string;
|
|
9
|
-
outcome: string;
|
|
10
|
-
/** The run's id when the tick started one: the same id the agent's record and checkout carry. */
|
|
11
|
-
run?: string;
|
|
12
|
-
}
|
|
13
|
-
/** The last tick as the state file remembers it. */
|
|
14
|
-
export interface SchedulerTick {
|
|
15
|
-
/** ISO timestamp. */
|
|
16
|
-
at: string;
|
|
17
|
-
decisions: SchedulerDecision[];
|
|
18
|
-
/** Why the tick decided nothing, when it could not. */
|
|
19
|
-
note?: string;
|
|
20
|
-
}
|
|
21
|
-
/** One command of the project's schedule, as the scheduler's last tick read it, with this machine's switch and publish pick. */
|
|
22
|
-
export interface SchedulerCommand {
|
|
23
|
-
command: string;
|
|
24
|
-
/** How often at most, as written (`1d`). */
|
|
25
|
-
every?: string;
|
|
26
|
-
/** The check, when the line has one. */
|
|
27
|
-
when?: string;
|
|
28
|
-
/** Whether it runs on this machine: the machine's switch, else what the line says. */
|
|
29
|
-
on: boolean;
|
|
30
|
-
/** How far a run of the command publishes its work, when the line says: `branch`, `pr` or `merge`. A line that says nothing publishes nothing. */
|
|
31
|
-
publish?: PublishLevel;
|
|
32
|
-
/** This machine's publish pick for the command, which stands in for the line's level; absent when nobody picked here. */
|
|
33
|
-
publishPick?: PublishPick;
|
|
34
|
-
}
|
|
35
|
-
/** A project's scheduler as the card shows it. */
|
|
36
|
-
export interface SchedulerState {
|
|
37
|
-
/** Whether the state file exists and parses: a project without it has no scheduler set up. */
|
|
38
|
-
present: boolean;
|
|
39
|
-
/** Whether ticks start agents. */
|
|
40
|
-
on: boolean;
|
|
41
|
-
/** Whether the scheduler's process outlives the dashboard that started it. */
|
|
42
|
-
keepAlive: boolean;
|
|
43
|
-
/** Whether the scheduler's own process is alive on this machine. */
|
|
44
|
-
running: boolean;
|
|
45
|
-
/** The model every run starts on. */
|
|
46
|
-
model?: string;
|
|
47
|
-
/** How far past the quota boundary this project's unattended runs may start, in percentage points. */
|
|
48
|
-
spendOffset?: number;
|
|
49
|
-
lastTick?: SchedulerTick;
|
|
50
|
-
/** The schedule's commands with their switches; empty until the scheduler has ticked once with a schedule. */
|
|
51
|
-
commands: SchedulerCommand[];
|
|
52
|
-
}
|
|
53
|
-
export interface ProjectScheduler extends SchedulerState {
|
|
54
|
-
projectId: string;
|
|
55
|
-
projectName: string;
|
|
56
|
-
/** Whether one of the project's packages provides a git host; without one no pull request can be opened, so a publish pick stops at the branch. */
|
|
57
|
-
gitHost: boolean;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Read one project's scheduler state. `isAlive` is the process probe; injectable so a test can
|
|
61
|
-
* decide what "running" means without holding a process.
|
|
62
|
-
*/
|
|
63
|
-
export declare function readSchedulerState(cwd: string, isAlive?: (pid: number) => boolean): Promise<SchedulerState>;
|
|
64
|
-
/** Every registered project's scheduler, one row per project in registry order, a failing read as not set up. */
|
|
65
|
-
export declare function collectSchedulers(projects: ProjectSummary[], read?: (cwd: string) => Promise<SchedulerState>, gitHost?: GitHostFor): Promise<ProjectScheduler[]>;
|
|
66
|
-
/**
|
|
67
|
-
* The spend offset the usage panel draws (#960), read off the projects' schedulers: the loosest
|
|
68
|
-
* one, since it is the one that lets unattended work spend the furthest; `undefined` when no
|
|
69
|
-
* scheduler names one. The panel's slider writes it back through each project's `offset` hook,
|
|
70
|
-
* so the schedulers agree unless one was set by hand.
|
|
71
|
-
*/
|
|
72
|
-
export declare function loosestSpendOffset(states: readonly SchedulerState[]): number | undefined;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { runSubagentsHook } from '../project-hooks.js';
|
|
2
|
-
import { type SubagentSettings } from '../subagent-settings.js';
|
|
3
|
-
import type { ProjectSummary } from './projects.js';
|
|
4
|
-
/** The settings in force, and how many projects have the line that writes them. */
|
|
5
|
-
export interface SubagentSettingsView {
|
|
6
|
-
settings: SubagentSettings;
|
|
7
|
-
/** Projects with a `subagents` line; none means Settings can save nothing. */
|
|
8
|
-
hooked: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The settings of the first project, in registry order, that has the line and a file: Settings
|
|
12
|
-
* writes every project alike, so they differ only where a file was edited by hand.
|
|
13
|
-
*/
|
|
14
|
-
export declare function readSubagentSettings(projects: readonly ProjectSummary[]): Promise<SubagentSettingsView>;
|
|
15
|
-
/**
|
|
16
|
-
* Save the settings whole, through the `subagents` line of each project given. Only settings of the
|
|
17
|
-
* promised shape are passed on. A project without the line is skipped; none having it, or a line
|
|
18
|
-
* that fails, is the answer's error, each failing project named.
|
|
19
|
-
*/
|
|
20
|
-
export declare function setSubagentSettings(projects: readonly ProjectSummary[], settings: SubagentSettings, run?: typeof runSubagentsHook): Promise<{
|
|
21
|
-
ok: true;
|
|
22
|
-
} | {
|
|
23
|
-
ok: false;
|
|
24
|
-
error: string;
|
|
25
|
-
}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type SubagentSettingsView } from '../dashboard/subagent-settings.js';
|
|
2
|
-
import type { SubagentSettings } from '../subagent-settings.js';
|
|
3
|
-
/** The settings in force, and how many projects have the line that writes them. */
|
|
4
|
-
export declare function onSubagentSettings(): Promise<SubagentSettingsView>;
|
|
5
|
-
/** Save the settings whole, through every registered project's `subagents` line. */
|
|
6
|
-
export declare function sendSubagentSettings(settings: SubagentSettings): Promise<{
|
|
7
|
-
ok: true;
|
|
8
|
-
} | {
|
|
9
|
-
ok: false;
|
|
10
|
-
error: string;
|
|
11
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The directory, under a project root, that holds The Framework's own files.
|
|
3
|
-
*
|
|
4
|
-
* Its own module so every reader and writer of the directory (the hooks file, the project's saved
|
|
5
|
-
* prompts, the activation's `.gitignore`, a run's card, diary and inbox) spells it the same way.
|
|
6
|
-
*
|
|
7
|
-
* Nothing of the product's rides on a branch of its own any more: the agent archives are the
|
|
8
|
-
* `logs` skill's runs, on the shared `agent-data` branch that `@openagt/agent-data` names (#1769).
|
|
9
|
-
*/
|
|
10
|
-
export declare const THE_FRAMEWORK_DIR = ".the-framework";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `.the-framework/.gitignore` (#313): one file, one content, written at install.
|
|
3
|
-
*
|
|
4
|
-
* Everything under `.the-framework/` is this machine's or transient: a run's live files, the
|
|
5
|
-
* hooks file. The lasting records (the runs, the `logs` skill's) live on the data branch
|
|
6
|
-
* (#1582/#1769), so nothing but this file is tracked: main is 100% code.
|
|
7
|
-
*/
|
|
8
|
-
/** The `.gitignore` path under `cwd`'s `.the-framework/`. */
|
|
9
|
-
export declare function gitignorePath(cwd: string): string;
|
|
10
|
-
/** The whole file: everything under `.the-framework/` stays out of git (#1582). */
|
|
11
|
-
export declare function frameworkGitignore(): string;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type DriverName } from './driver-names.js';
|
|
2
|
-
/**
|
|
3
|
-
* The person's subagent settings (#1902), node-free so the daemon and the dashboard bundle share
|
|
4
|
-
* one copy: the coding agent and model a main agent's subagents run on, by how hard their task is,
|
|
5
|
-
* and how many of one main agent's subagents run at once. They are the orchestration package's, in
|
|
6
|
-
* its file at each project's root, written through each project's `subagents` line; the dashboard
|
|
7
|
-
* reads the file by its name and runs no tool. A level left out runs on the main agent's own coding
|
|
8
|
-
* agent and model, and a limit left out is the package's own, {@link DEFAULT_AT_ONCE}.
|
|
9
|
-
*/
|
|
10
|
-
/** The file the settings are kept in, at a project's root; this machine's, hidden from git by the package. */
|
|
11
|
-
export declare const SUBAGENT_SETTINGS_FILE = ".orchestration/settings.json";
|
|
12
|
-
/** How many of one main agent's subagents run at once when nobody said: the orchestration package's default. */
|
|
13
|
-
export declare const DEFAULT_AT_ONCE = 4;
|
|
14
|
-
/** A coding agent and, when one is picked, its model; no model is that coding agent's own default. */
|
|
15
|
-
export interface SubagentRunner {
|
|
16
|
-
driver: DriverName;
|
|
17
|
-
model?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface SubagentSettings {
|
|
20
|
-
simple?: SubagentRunner;
|
|
21
|
-
hard?: SubagentRunner;
|
|
22
|
-
atOnce?: number;
|
|
23
|
-
}
|
|
24
|
-
export declare const SUBAGENT_LEVELS: readonly ['simple', 'hard'];
|
|
25
|
-
/** The settings in `value`, each field kept only when it has the shape the file promises. */
|
|
26
|
-
export declare function subagentSettingsIn(value: unknown): SubagentSettings;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The on-before-mergeable prompt (#326), in `prompts/on_before_mergeable_prompt.md` (#551).
|
|
3
|
-
*
|
|
4
|
-
* It does not *run* the quality presets, it *queues* them: one agent turn that appends
|
|
5
|
-
* "Apply <preset filePath> with tf.params.what set to ..." entries to the project's queue
|
|
6
|
-
* file (`TODO_AGENTS.md`), which a later drain picks up. That is the whole point of
|
|
7
|
-
* #556 — the previous suite executed maintainability, readability and security-audit as
|
|
8
|
-
* three child runs on the spot, which does not compose with the queue.
|
|
9
|
-
*
|
|
10
|
-
* The markdown is the prompt, verbatim: it is compiled into the package at build time and
|
|
11
|
-
* used as it is written, so what a reviewer reads in `prompts/` is what an agent is sent.
|
|
12
|
-
*
|
|
13
|
-
* Two sections: `## Maintenance` queues the quality presets, and `## Business knowledge`
|
|
14
|
-
* (#537) asks the agent to fold what it learned back into {@link BUSINESS_KNOWLEDGE_DOCS}.
|
|
15
|
-
*/
|
|
16
|
-
export declare const ON_BEFORE_MERGEABLE_PROMPT_TEMPLATE = "TODO_FILE: the agent queue, `TODO_AGENTS.md` \u2014 add an entry with `queue add \"<entry>\"` from the `queue` skill\n\n## Maintenance\n\nIf the changes introduced by ${{ tf.session_name }} aren't trivial and have refactor potential, add the following to <TODO_FILE>\n- `Apply ${{ tf.presets.maintainability.filePath }} with tf.params.what set to \"changes introduced by ${{ tf.session_name }}\"`\nIf the changes introduced by ${{ tf.session_name }} can potentially lead to security issues, add the following to <TODO_FILE>\n- `Apply ${{ tf.presets.security_audit.filePath }} with tf.params.what set to \"changes introduced by ${{ tf.session_name }}\"`\n\n\n## Business knowledge\n\nIf you didn't already, consider updating the following based on the changes and discussions of ${{ tf.session_name }} (you can create the files if they're missing):\n- `knowledge-base/DECISIONS.md` (decisions taken, and why)\n- `knowledge-base/FACTS.md` (non-obvious facts relevant to the project)\n- `knowledge-base/INSIGHTS.md` (insights relevant to the project)\n\nOnly write what a future agent would need and cannot get from the code itself.";
|
|
17
|
-
/** What the on-before-mergeable prompt's fragments read. */
|
|
18
|
-
export interface OnBeforeMergeableContext {
|
|
19
|
-
/** The finished agent's session name, read off its branch (#1725). Every line of the prompt names it. */
|
|
20
|
-
session_name: string;
|
|
21
|
-
/**
|
|
22
|
-
* The materialized presets, stem -> `{ filePath }` (#326). The `## Maintenance` entries carry
|
|
23
|
-
* `tf.presets.<name>.filePath` so the picked-up agent opens the real preset file. Defaulted
|
|
24
|
-
* from {@link presetContext}, so callers get the standard `.the-framework/presets/*.md` paths.
|
|
25
|
-
*/
|
|
26
|
-
presets?: Record<string, {
|
|
27
|
-
filePath: string;
|
|
28
|
-
}>;
|
|
29
|
-
}
|
|
30
|
-
/** Render the on-before-mergeable prompt for a finished session. */
|
|
31
|
-
export declare function renderOnBeforeMergeablePrompt(tf: OnBeforeMergeableContext): string;
|
|
32
|
-
//# sourceMappingURL=on-before-mergeable-prompt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"on-before-mergeable-prompt.d.ts","sourceRoot":"","sources":["../src/on-before-mergeable-prompt.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mCAAmC,8mCAA6B,CAAA;AAE7E,4DAA4D;AAC5D,MAAM,WAAW,wBAAwB;IACvC,yGAAyG;IACzG,YAAY,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC/C;AAED,oEAAoE;AACpE,wBAAgB,6BAA6B,CAAC,EAAE,EAAE,wBAAwB,GAAG,MAAM,CAIlF"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { renderTemplate } from './prompt-template.js';
|
|
2
|
-
import { ON_BEFORE_MERGEABLE_PROMPT } from './prompts.generated.js';
|
|
3
|
-
import { presetContext } from './presets.js';
|
|
4
|
-
/**
|
|
5
|
-
* The on-before-mergeable prompt (#326), in `prompts/on_before_mergeable_prompt.md` (#551).
|
|
6
|
-
*
|
|
7
|
-
* It does not *run* the quality presets, it *queues* them: one agent turn that appends
|
|
8
|
-
* "Apply <preset filePath> with tf.params.what set to ..." entries to the project's queue
|
|
9
|
-
* file (`TODO_AGENTS.md`), which a later drain picks up. That is the whole point of
|
|
10
|
-
* #556 — the previous suite executed maintainability, readability and security-audit as
|
|
11
|
-
* three child runs on the spot, which does not compose with the queue.
|
|
12
|
-
*
|
|
13
|
-
* The markdown is the prompt, verbatim: it is compiled into the package at build time and
|
|
14
|
-
* used as it is written, so what a reviewer reads in `prompts/` is what an agent is sent.
|
|
15
|
-
*
|
|
16
|
-
* Two sections: `## Maintenance` queues the quality presets, and `## Business knowledge`
|
|
17
|
-
* (#537) asks the agent to fold what it learned back into {@link BUSINESS_KNOWLEDGE_DOCS}.
|
|
18
|
-
*/
|
|
19
|
-
export const ON_BEFORE_MERGEABLE_PROMPT_TEMPLATE = ON_BEFORE_MERGEABLE_PROMPT;
|
|
20
|
-
/** Render the on-before-mergeable prompt for a finished session. */
|
|
21
|
-
export function renderOnBeforeMergeablePrompt(tf) {
|
|
22
|
-
return renderTemplate(ON_BEFORE_MERGEABLE_PROMPT_TEMPLATE, {
|
|
23
|
-
tf: { ...tf, presets: tf.presets ?? presetContext() },
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=on-before-mergeable-prompt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"on-before-mergeable-prompt.js","sourceRoot":"","sources":["../src/on-before-mergeable-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,0BAA0B,CAAA;AAc7E,oEAAoE;AACpE,MAAM,UAAU,6BAA6B,CAAC,EAA4B;IACxE,OAAO,cAAc,CAAC,mCAAmC,EAAE;QACzD,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,IAAI,aAAa,EAAE,EAAE;KACtD,CAAC,CAAA;AACJ,CAAC"}
|