@openagt/dashboard 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/agent-view.d.ts +3 -3
- package/dist/bridge-browser.d.ts +4 -4
- package/dist/bridge-browser.d.ts.map +1 -1
- package/dist/bridge-browser.js +8 -8
- package/dist/bridge-browser.js.map +1 -1
- package/dist/built-in.d.ts +13 -4
- package/dist/built-in.d.ts.map +1 -1
- package/dist/built-in.js +45 -4
- package/dist/built-in.js.map +1 -1
- package/dist/chrome-extension/background.js +11 -11
- package/dist/chrome-extension/content.js +37 -37
- package/dist/chrome-extension/driver-plan.js +1 -1
- package/dist/chrome-extension/fingerprint.js +1 -1
- package/dist/chrome-extension/manifest.json +3 -3
- package/dist/chrome-extension/options.html +4 -4
- package/dist/chrome-extension/options.js +4 -4
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -7
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -2
- package/dist/cloud-run-state.d.ts +1 -1
- package/dist/cloud-scratch-refs.js +7 -7
- package/dist/cloud-scratch-refs.js.map +1 -1
- package/dist/cloud-work.js +2 -2
- package/dist/daemon-runtime.d.ts +5 -4
- package/dist/daemon-runtime.d.ts.map +1 -1
- package/dist/daemon-runtime.js +59 -9
- package/dist/daemon-runtime.js.map +1 -1
- package/dist/daemon-services.d.ts +4 -3
- package/dist/daemon-services.d.ts.map +1 -1
- package/dist/daemon-services.js +14 -8
- package/dist/daemon-services.js.map +1 -1
- package/dist/daemon-tick.js +1 -1
- package/dist/daemon.d.ts +1 -12
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +9 -32
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard/agent-handoff.d.ts +4 -4
- package/dist/dashboard/agent-handoff.js +7 -7
- package/dist/dashboard/agent-handoff.js.map +1 -1
- package/dist/dashboard/bridge-endpoints.d.ts +3 -3
- package/dist/dashboard/bridge-endpoints.js +3 -3
- package/dist/dashboard/content-type.js +1 -1
- package/dist/dashboard/docs.d.ts +1 -1
- package/dist/dashboard/docs.js +1 -1
- package/dist/dashboard/git-status.d.ts +1 -1
- package/dist/dashboard/index.d.ts +1 -1
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/interventions.d.ts +2 -2
- package/dist/dashboard/open-in-app.d.ts +3 -3
- package/dist/dashboard/open-in-app.js +4 -4
- package/dist/dashboard/open-questions.d.ts +2 -2
- package/dist/dashboard/projects.d.ts +6 -5
- package/dist/dashboard/projects.d.ts.map +1 -1
- package/dist/dashboard/projects.js.map +1 -1
- package/dist/dashboard/pull-requests.d.ts +5 -5
- package/dist/dashboard/pull-requests.d.ts.map +1 -1
- package/dist/dashboard/pull-requests.js +2 -2
- package/dist/dashboard/pull-requests.js.map +1 -1
- package/dist/dashboard/relay-endpoints.d.ts +3 -3
- package/dist/dashboard/relay-endpoints.js +1 -1
- package/dist/dashboard/remote-run.d.ts +5 -5
- package/dist/dashboard/remote-run.js +3 -3
- package/dist/dashboard/rpc-serve.d.ts +7 -4
- package/dist/dashboard/rpc-serve.d.ts.map +1 -1
- package/dist/dashboard/rpc-serve.js.map +1 -1
- package/dist/dashboard/run-inbox.d.ts +2 -2
- package/dist/dashboard/run-inbox.js +4 -4
- package/dist/dashboard/run-inbox.js.map +1 -1
- package/dist/dashboard/server.d.ts +6 -4
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard/server.js +3 -2
- package/dist/dashboard/server.js.map +1 -1
- package/dist/dashboard/static.js +1 -1
- package/dist/dashboard/types.d.ts +29 -3
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/dashboard/web-start-endpoints.d.ts +1 -1
- package/dist/dashboard/web-start-endpoints.d.ts.map +1 -1
- package/dist/dashboard/web-start-endpoints.js +1 -1
- package/dist/dashboard/web-start-endpoints.js.map +1 -1
- package/dist/dashboard-bundle/assets/{main-om0WOAku.js → main-B98UOA3_.js} +48 -48
- package/dist/dashboard-bundle/assets/main-ByRjbCiA.css +2 -0
- package/dist/dashboard-bundle/assets/{module-jASZmfSB.js → module-v213KWfH.js} +4 -4
- package/dist/dashboard-bundle/host/module.js +1 -1
- package/dist/dashboard-bundle/index.html +6 -6
- package/dist/dashboard-rpc/context.d.ts +2 -0
- package/dist/dashboard-rpc/context.d.ts.map +1 -1
- package/dist/dashboard-rpc/context.js +4 -0
- package/dist/dashboard-rpc/context.js.map +1 -1
- package/dist/dashboard-rpc/control.d.ts +1 -1
- package/dist/dashboard-rpc/control.js +3 -3
- package/dist/dashboard-rpc/control.js.map +1 -1
- package/dist/dashboard-rpc/events.d.ts +3 -3
- package/dist/dashboard-rpc/index.d.ts +1 -1
- package/dist/dashboard-rpc/index.d.ts.map +1 -1
- package/dist/dashboard-rpc/index.js +1 -1
- package/dist/dashboard-rpc/index.js.map +1 -1
- package/dist/dashboard-rpc/modules.d.ts +8 -6
- package/dist/dashboard-rpc/modules.d.ts.map +1 -1
- package/dist/dashboard-rpc/modules.js +8 -6
- package/dist/dashboard-rpc/modules.js.map +1 -1
- package/dist/dashboard-rpc/preferences.d.ts +2 -2
- package/dist/dashboard-rpc/preferences.d.ts.map +1 -1
- package/dist/dashboard-rpc/preferences.js +2 -2
- package/dist/dashboard-rpc/preferences.js.map +1 -1
- package/dist/dashboard-rpc/projects.d.ts +29 -3
- package/dist/dashboard-rpc/projects.d.ts.map +1 -1
- package/dist/dashboard-rpc/projects.js +49 -7
- package/dist/dashboard-rpc/projects.js.map +1 -1
- package/dist/dashboard-rpc/reads.d.ts +3 -3
- package/dist/dashboard-rpc/reads.js +1 -1
- package/dist/dashboard-rpc/test-context.d.ts.map +1 -1
- package/dist/dashboard-rpc/test-context.js +4 -3
- package/dist/dashboard-rpc/test-context.js.map +1 -1
- package/dist/event-stream.d.ts +1 -1
- package/dist/event-stream.js +1 -1
- package/dist/events.d.ts +8 -8
- package/dist/events.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/install.d.ts +9 -7
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +28 -14
- package/dist/install.js.map +1 -1
- package/dist/module-server.d.ts +1 -1
- package/dist/module-types/dashboard/lib/route.d.ts +2 -1
- package/dist/module-types/dashboard/lib/use-modules.d.ts +4 -3
- package/dist/module-types/dashboard/module/index.d.ts +5 -5
- package/dist/module-types/src/agent-view.d.ts +3 -3
- package/dist/module-types/src/bridge-browser.d.ts +4 -4
- package/dist/module-types/src/built-in.d.ts +13 -4
- package/dist/module-types/src/client.d.ts +1 -1
- package/dist/module-types/src/cloud-run-state.d.ts +1 -1
- package/dist/module-types/src/dashboard/agent-handoff.d.ts +4 -4
- package/dist/module-types/src/dashboard/bridge-endpoints.d.ts +3 -3
- package/dist/module-types/src/dashboard/docs.d.ts +1 -1
- package/dist/module-types/src/dashboard/git-status.d.ts +1 -1
- package/dist/module-types/src/dashboard/interventions.d.ts +2 -2
- package/dist/module-types/src/dashboard/open-in-app.d.ts +3 -3
- package/dist/module-types/src/dashboard/open-questions.d.ts +2 -2
- package/dist/module-types/src/dashboard/projects.d.ts +6 -5
- package/dist/module-types/src/dashboard/pull-requests.d.ts +5 -5
- package/dist/module-types/src/dashboard/remote-run.d.ts +5 -5
- package/dist/module-types/src/dashboard/rpc-serve.d.ts +7 -4
- package/dist/module-types/src/dashboard/run-inbox.d.ts +2 -2
- package/dist/module-types/src/dashboard/types.d.ts +29 -3
- package/dist/module-types/src/dashboard-rpc/context.d.ts +2 -0
- package/dist/module-types/src/dashboard-rpc/control.d.ts +1 -1
- package/dist/module-types/src/dashboard-rpc/events.d.ts +3 -3
- package/dist/module-types/src/dashboard-rpc/index.d.ts +1 -1
- package/dist/module-types/src/dashboard-rpc/modules.d.ts +8 -6
- package/dist/module-types/src/dashboard-rpc/preferences.d.ts +2 -2
- package/dist/module-types/src/dashboard-rpc/projects.d.ts +29 -3
- package/dist/module-types/src/dashboard-rpc/reads.d.ts +3 -3
- package/dist/module-types/src/event-stream.d.ts +1 -1
- package/dist/module-types/src/events.d.ts +8 -8
- package/dist/module-types/src/index.d.ts +3 -2
- package/dist/module-types/src/open-choices.d.ts +2 -2
- package/dist/module-types/src/{framework-dir.d.ts → openagent-dir.d.ts} +2 -2
- package/dist/module-types/src/openagent-gitignore.d.ts +11 -0
- package/dist/module-types/src/project-commands.d.ts +1 -1
- package/dist/module-types/src/project-errors.d.ts +11 -7
- package/dist/module-types/src/project-hooks.d.ts +4 -4
- package/dist/module-types/src/project-modules.d.ts +5 -5
- package/dist/module-types/src/project-presets.d.ts +4 -4
- package/dist/module-types/src/project.d.ts +6 -6
- package/dist/module-types/src/publish-levels.d.ts +4 -4
- package/dist/module-types/src/quota-boundary.d.ts +2 -2
- package/dist/module-types/src/registry.d.ts +13 -7
- package/dist/module-types/src/store/agent-checkout.d.ts +1 -1
- package/dist/module-types/src/store/agent-store.d.ts +6 -6
- package/dist/module-types/src/store/branches.d.ts +7 -7
- package/dist/module-types/src/store/git-host.d.ts +7 -7
- package/dist/module-types/src/store/provided.d.ts +3 -3
- package/dist/module-types/src/store/queue.d.ts +8 -8
- package/dist/module-types/src/store/repository.d.ts +2 -2
- package/dist/module-types/src/store/run-record.d.ts +10 -10
- package/dist/module-types/src/store/runs.d.ts +6 -6
- package/dist/module-types/src/store/tickets.d.ts +7 -7
- package/dist/module-types/src/terminal.d.ts +3 -3
- package/dist/open-choices.d.ts +2 -2
- package/dist/{framework-dir.js → openagent-dir.d.ts} +3 -3
- package/dist/openagent-dir.d.ts.map +1 -0
- package/dist/{framework-dir.d.ts → openagent-dir.js} +3 -3
- package/dist/openagent-dir.js.map +1 -0
- package/dist/openagent-gitignore.d.ts +12 -0
- package/dist/openagent-gitignore.d.ts.map +1 -0
- package/dist/openagent-gitignore.js +19 -0
- package/dist/openagent-gitignore.js.map +1 -0
- package/dist/pick-directory.js +2 -2
- package/dist/pick-directory.js.map +1 -1
- package/dist/project-commands.d.ts +1 -1
- package/dist/project-commands.js +1 -1
- package/dist/project-errors.d.ts +11 -7
- package/dist/project-errors.d.ts.map +1 -1
- package/dist/project-errors.js +10 -8
- package/dist/project-errors.js.map +1 -1
- package/dist/project-hooks.d.ts +4 -4
- package/dist/project-hooks.d.ts.map +1 -1
- package/dist/project-hooks.js +8 -8
- package/dist/project-hooks.js.map +1 -1
- package/dist/project-modules.d.ts +5 -5
- package/dist/project-modules.js +2 -2
- package/dist/project-presets.d.ts +4 -4
- package/dist/project-presets.d.ts.map +1 -1
- package/dist/project-presets.js +9 -9
- package/dist/project-presets.js.map +1 -1
- package/dist/project.d.ts +6 -6
- package/dist/project.js +6 -6
- package/dist/publish-levels.d.ts +4 -4
- package/dist/publish-levels.d.ts.map +1 -1
- package/dist/publish-levels.js +7 -5
- package/dist/publish-levels.js.map +1 -1
- package/dist/quota-boundary.d.ts +2 -2
- package/dist/quota-boundary.js +2 -2
- package/dist/registry.d.ts +13 -7
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +19 -3
- package/dist/registry.js.map +1 -1
- package/dist/remove-files.d.ts +24 -0
- package/dist/remove-files.d.ts.map +1 -0
- package/dist/remove-files.js +98 -0
- package/dist/remove-files.js.map +1 -0
- package/dist/store/agent-checkout.d.ts +1 -1
- package/dist/store/agent-checkout.js +3 -3
- package/dist/store/agent-checkout.js.map +1 -1
- package/dist/store/agent-store.d.ts +6 -6
- package/dist/store/agent-store.js +8 -8
- package/dist/store/agent-store.js.map +1 -1
- package/dist/store/branches.d.ts +7 -7
- package/dist/store/branches.d.ts.map +1 -1
- package/dist/store/branches.js +1 -1
- package/dist/store/branches.js.map +1 -1
- package/dist/store/git-host.d.ts +7 -7
- package/dist/store/git-host.d.ts.map +1 -1
- package/dist/store/git-host.js +1 -1
- package/dist/store/git-host.js.map +1 -1
- package/dist/store/provided.d.ts +3 -3
- package/dist/store/provided.d.ts.map +1 -1
- package/dist/store/provided.js +3 -3
- package/dist/store/provided.js.map +1 -1
- package/dist/store/queue.d.ts +8 -8
- package/dist/store/queue.d.ts.map +1 -1
- package/dist/store/queue.js +1 -1
- package/dist/store/queue.js.map +1 -1
- package/dist/store/repository.d.ts +2 -2
- package/dist/store/run-record.d.ts +10 -10
- package/dist/store/run-record.d.ts.map +1 -1
- package/dist/store/run-record.js +7 -7
- package/dist/store/run-record.js.map +1 -1
- package/dist/store/runs.d.ts +6 -6
- package/dist/store/runs.d.ts.map +1 -1
- package/dist/store/runs.js +2 -2
- package/dist/store/runs.js.map +1 -1
- package/dist/store/tickets.d.ts +7 -7
- package/dist/store/tickets.d.ts.map +1 -1
- package/dist/store/tickets.js +1 -1
- package/dist/store/tickets.js.map +1 -1
- package/dist/terminal.d.ts +3 -3
- package/dist/terminal.js +3 -3
- package/package.json +19 -19
- package/dist/agent-archive.d.ts +0 -35
- package/dist/agent-archive.d.ts.map +0 -1
- package/dist/agent-archive.js +0 -67
- package/dist/agent-archive.js.map +0 -1
- package/dist/agent-commit.d.ts +0 -140
- package/dist/agent-commit.d.ts.map +0 -1
- package/dist/agent-commit.js +0 -254
- package/dist/agent-commit.js.map +0 -1
- package/dist/agent-driver.d.ts +0 -28
- package/dist/agent-driver.d.ts.map +0 -1
- package/dist/agent-driver.js +0 -18
- package/dist/agent-driver.js.map +0 -1
- package/dist/agent-location.d.ts +0 -11
- package/dist/agent-location.d.ts.map +0 -1
- package/dist/agent-location.js +0 -10
- package/dist/agent-location.js.map +0 -1
- package/dist/agent-messages.d.ts +0 -55
- package/dist/agent-messages.d.ts.map +0 -1
- package/dist/agent-messages.js +0 -73
- package/dist/agent-messages.js.map +0 -1
- package/dist/agent-names.d.ts +0 -24
- package/dist/agent-names.d.ts.map +0 -1
- package/dist/agent-names.js +0 -33
- package/dist/agent-names.js.map +0 -1
- package/dist/agent-options.d.ts +0 -45
- package/dist/agent-options.d.ts.map +0 -1
- package/dist/agent-options.js +0 -83
- package/dist/agent-options.js.map +0 -1
- package/dist/agent-spec.d.ts +0 -56
- package/dist/agent-spec.d.ts.map +0 -1
- package/dist/agent-spec.js +0 -56
- package/dist/agent-spec.js.map +0 -1
- package/dist/agent-telemetry.d.ts +0 -88
- package/dist/agent-telemetry.d.ts.map +0 -1
- package/dist/agent-telemetry.js +0 -97
- package/dist/agent-telemetry.js.map +0 -1
- package/dist/agent.d.ts +0 -113
- package/dist/agent.d.ts.map +0 -1
- package/dist/agent.js +0 -168
- package/dist/agent.js.map +0 -1
- package/dist/archived-agent-patch.d.ts +0 -14
- package/dist/archived-agent-patch.d.ts.map +0 -1
- package/dist/archived-agent-patch.js +0 -22
- package/dist/archived-agent-patch.js.map +0 -1
- package/dist/auto-pm.d.ts +0 -538
- package/dist/auto-pm.d.ts.map +0 -1
- package/dist/auto-pm.js +0 -707
- package/dist/auto-pm.js.map +0 -1
- package/dist/await-gate.d.ts +0 -184
- package/dist/await-gate.d.ts.map +0 -1
- package/dist/await-gate.js +0 -252
- package/dist/await-gate.js.map +0 -1
- package/dist/branch-links-pass.d.ts +0 -15
- package/dist/branch-links-pass.d.ts.map +0 -1
- package/dist/branch-links-pass.js +0 -13
- package/dist/branch-links-pass.js.map +0 -1
- package/dist/branch-links.d.ts +0 -53
- package/dist/branch-links.d.ts.map +0 -1
- package/dist/branch-links.js +0 -94
- package/dist/branch-links.js.map +0 -1
- package/dist/branch-names.d.ts +0 -57
- package/dist/branch-names.d.ts.map +0 -1
- package/dist/branch-names.js +0 -72
- package/dist/branch-names.js.map +0 -1
- package/dist/ci-watch.d.ts +0 -123
- package/dist/ci-watch.d.ts.map +0 -1
- package/dist/ci-watch.js +0 -228
- package/dist/ci-watch.js.map +0 -1
- package/dist/claude-trust.d.ts +0 -16
- package/dist/claude-trust.d.ts.map +0 -1
- package/dist/claude-trust.js +0 -72
- package/dist/claude-trust.js.map +0 -1
- package/dist/cli-exec.d.ts +0 -36
- package/dist/cli-exec.d.ts.map +0 -1
- package/dist/cli-exec.js +0 -44
- package/dist/cli-exec.js.map +0 -1
- package/dist/closing-keywords.d.ts +0 -28
- package/dist/closing-keywords.d.ts.map +0 -1
- package/dist/closing-keywords.js +0 -49
- package/dist/closing-keywords.js.map +0 -1
- package/dist/config-layers.d.ts +0 -62
- package/dist/config-layers.d.ts.map +0 -1
- package/dist/config-layers.js +0 -70
- package/dist/config-layers.js.map +0 -1
- package/dist/config.d.ts +0 -54
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -78
- package/dist/config.js.map +0 -1
- package/dist/consumption-guard.d.ts +0 -53
- package/dist/consumption-guard.d.ts.map +0 -1
- package/dist/consumption-guard.js +0 -69
- package/dist/consumption-guard.js.map +0 -1
- package/dist/control.d.ts +0 -75
- package/dist/control.d.ts.map +0 -1
- package/dist/control.js +0 -68
- package/dist/control.js.map +0 -1
- package/dist/conversation-commit.d.ts +0 -166
- package/dist/conversation-commit.d.ts.map +0 -1
- package/dist/conversation-commit.js +0 -309
- package/dist/conversation-commit.js.map +0 -1
- package/dist/conversations.d.ts +0 -93
- package/dist/conversations.d.ts.map +0 -1
- package/dist/conversations.js +0 -176
- package/dist/conversations.js.map +0 -1
- package/dist/daemon-writes.d.ts +0 -33
- package/dist/daemon-writes.d.ts.map +0 -1
- package/dist/daemon-writes.js +0 -45
- package/dist/daemon-writes.js.map +0 -1
- package/dist/dashboard/agent-tree.d.ts +0 -106
- package/dist/dashboard/agent-tree.d.ts.map +0 -1
- package/dist/dashboard/agent-tree.js +0 -180
- package/dist/dashboard/agent-tree.js.map +0 -1
- package/dist/dashboard/browser-proxy.d.ts +0 -41
- package/dist/dashboard/browser-proxy.d.ts.map +0 -1
- package/dist/dashboard/browser-proxy.js +0 -96
- package/dist/dashboard/browser-proxy.js.map +0 -1
- package/dist/dashboard/discord-webhook.d.ts +0 -17
- package/dist/dashboard/discord-webhook.d.ts.map +0 -1
- package/dist/dashboard/discord-webhook.js +0 -36
- package/dist/dashboard/discord-webhook.js.map +0 -1
- package/dist/dashboard/file-diff.d.ts +0 -67
- package/dist/dashboard/file-diff.d.ts.map +0 -1
- package/dist/dashboard/file-diff.js +0 -132
- package/dist/dashboard/file-diff.js.map +0 -1
- package/dist/dashboard/file-read.d.ts +0 -42
- package/dist/dashboard/file-read.d.ts.map +0 -1
- package/dist/dashboard/file-read.js +0 -69
- package/dist/dashboard/file-read.js.map +0 -1
- package/dist/dashboard/file-status.d.ts +0 -21
- package/dist/dashboard/file-status.d.ts.map +0 -1
- package/dist/dashboard/file-status.js +0 -37
- package/dist/dashboard/file-status.js.map +0 -1
- package/dist/dashboard/gh.d.ts +0 -131
- package/dist/dashboard/gh.d.ts.map +0 -1
- package/dist/dashboard/gh.js +0 -150
- package/dist/dashboard/gh.js.map +0 -1
- package/dist/dashboard/github.d.ts +0 -11
- package/dist/dashboard/github.d.ts.map +0 -1
- package/dist/dashboard/github.js +0 -33
- package/dist/dashboard/github.js.map +0 -1
- package/dist/dashboard/run-handoff.d.ts +0 -311
- package/dist/dashboard/run-handoff.d.ts.map +0 -1
- package/dist/dashboard/run-handoff.js +0 -485
- package/dist/dashboard/run-handoff.js.map +0 -1
- package/dist/dashboard/scheduler-state.d.ts +0 -73
- package/dist/dashboard/scheduler-state.d.ts.map +0 -1
- package/dist/dashboard/scheduler-state.js +0 -120
- package/dist/dashboard/scheduler-state.js.map +0 -1
- package/dist/dashboard/subagent-settings.d.ts +0 -26
- package/dist/dashboard/subagent-settings.d.ts.map +0 -1
- package/dist/dashboard/subagent-settings.js +0 -52
- package/dist/dashboard/subagent-settings.js.map +0 -1
- package/dist/dashboard/telefunc-serve.d.ts +0 -118
- package/dist/dashboard/telefunc-serve.d.ts.map +0 -1
- package/dist/dashboard/telefunc-serve.js +0 -108
- package/dist/dashboard/telefunc-serve.js.map +0 -1
- package/dist/dashboard/tickets.d.ts +0 -29
- package/dist/dashboard/tickets.d.ts.map +0 -1
- package/dist/dashboard/tickets.js +0 -38
- package/dist/dashboard/tickets.js.map +0 -1
- package/dist/dashboard/widget-serve.d.ts +0 -15
- package/dist/dashboard/widget-serve.d.ts.map +0 -1
- package/dist/dashboard/widget-serve.js +0 -45
- package/dist/dashboard/widget-serve.js.map +0 -1
- package/dist/dashboard-bundle/assets/main-B3HghPQy.css +0 -2
- package/dist/dashboard-client/assets/chunks/chunk-BF9pJudf.js +0 -4
- package/dist/dashboard-client/assets/entries/entry-client-routing.CT1e9F0o.js +0 -1
- package/dist/dashboard-client/assets/entries/pages_index.CkW5JQ8X.js +0 -428
- package/dist/dashboard-client/assets/static/layouts_tailwind-00e65532.8OjKGAbA.css +0 -2
- package/dist/dashboard-client/index.html +0 -27
- package/dist/dashboard-client/index.pageContext.json +0 -1
- package/dist/dashboard-client/logo-animated.svg +0 -34
- package/dist/dashboard-client/logo.svg +0 -16
- package/dist/dashboard-rpc/control.telefunc.d.ts +0 -176
- package/dist/dashboard-rpc/control.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/control.telefunc.js +0 -373
- package/dist/dashboard-rpc/control.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/devices.telefunc.d.ts +0 -9
- package/dist/dashboard-rpc/devices.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/devices.telefunc.js +0 -12
- package/dist/dashboard-rpc/devices.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/events.telefunc.d.ts +0 -36
- package/dist/dashboard-rpc/events.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/events.telefunc.js +0 -70
- package/dist/dashboard-rpc/events.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/preferences.telefunc.d.ts +0 -97
- package/dist/dashboard-rpc/preferences.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/preferences.telefunc.js +0 -157
- package/dist/dashboard-rpc/preferences.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/projects.telefunc.d.ts +0 -56
- package/dist/dashboard-rpc/projects.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/projects.telefunc.js +0 -96
- package/dist/dashboard-rpc/projects.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/quota.telefunc.d.ts +0 -40
- package/dist/dashboard-rpc/quota.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/quota.telefunc.js +0 -84
- package/dist/dashboard-rpc/quota.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/reads.telefunc.d.ts +0 -197
- package/dist/dashboard-rpc/reads.telefunc.d.ts.map +0 -1
- package/dist/dashboard-rpc/reads.telefunc.js +0 -403
- package/dist/dashboard-rpc/reads.telefunc.js.map +0 -1
- package/dist/dashboard-rpc/register.d.ts +0 -18
- package/dist/dashboard-rpc/register.d.ts.map +0 -1
- package/dist/dashboard-rpc/register.js +0 -66
- package/dist/dashboard-rpc/register.js.map +0 -1
- package/dist/dashboard-rpc/relay-run.d.ts +0 -9
- package/dist/dashboard-rpc/relay-run.d.ts.map +0 -1
- package/dist/dashboard-rpc/relay-run.js +0 -21
- package/dist/dashboard-rpc/relay-run.js.map +0 -1
- package/dist/dashboard-rpc/stream-channel.d.ts +0 -23
- package/dist/dashboard-rpc/stream-channel.d.ts.map +0 -1
- package/dist/dashboard-rpc/stream-channel.js +0 -52
- package/dist/dashboard-rpc/stream-channel.js.map +0 -1
- package/dist/dashboard-rpc/subagents.d.ts +0 -12
- package/dist/dashboard-rpc/subagents.d.ts.map +0 -1
- package/dist/dashboard-rpc/subagents.js +0 -13
- package/dist/dashboard-rpc/subagents.js.map +0 -1
- package/dist/dashboard-rpc/widgets.d.ts +0 -33
- package/dist/dashboard-rpc/widgets.d.ts.map +0 -1
- package/dist/dashboard-rpc/widgets.js +0 -54
- package/dist/dashboard-rpc/widgets.js.map +0 -1
- package/dist/data-branch.d.ts +0 -120
- package/dist/data-branch.d.ts.map +0 -1
- package/dist/data-branch.js +0 -319
- package/dist/data-branch.js.map +0 -1
- package/dist/discord/bot.d.ts +0 -61
- package/dist/discord/bot.d.ts.map +0 -1
- package/dist/discord/bot.js +0 -94
- package/dist/discord/bot.js.map +0 -1
- package/dist/discord/gateway.d.ts +0 -137
- package/dist/discord/gateway.d.ts.map +0 -1
- package/dist/discord/gateway.js +0 -315
- package/dist/discord/gateway.js.map +0 -1
- package/dist/discord/live-run.d.ts +0 -31
- package/dist/discord/live-run.d.ts.map +0 -1
- package/dist/discord/live-run.js +0 -57
- package/dist/discord/live-run.js.map +0 -1
- package/dist/discord/reply-mirror.d.ts +0 -83
- package/dist/discord/reply-mirror.d.ts.map +0 -1
- package/dist/discord/reply-mirror.js +0 -84
- package/dist/discord/reply-mirror.js.map +0 -1
- package/dist/discord/rest.d.ts +0 -20
- package/dist/discord/rest.d.ts.map +0 -1
- package/dist/discord/rest.js +0 -41
- package/dist/discord/rest.js.map +0 -1
- package/dist/discord/routing.d.ts +0 -81
- package/dist/discord/routing.d.ts.map +0 -1
- package/dist/discord/routing.js +0 -91
- package/dist/discord/routing.js.map +0 -1
- package/dist/discord-credentials-store.d.ts +0 -14
- package/dist/discord-credentials-store.d.ts.map +0 -1
- package/dist/discord-credentials-store.js +0 -53
- package/dist/discord-credentials-store.js.map +0 -1
- package/dist/discord-credentials.d.ts +0 -80
- package/dist/discord-credentials.d.ts.map +0 -1
- package/dist/discord-credentials.js +0 -55
- package/dist/discord-credentials.js.map +0 -1
- package/dist/driver/actions-zip.d.ts +0 -2
- package/dist/driver/actions-zip.d.ts.map +0 -1
- package/dist/driver/actions-zip.js +0 -70
- package/dist/driver/actions-zip.js.map +0 -1
- package/dist/driver/actions.d.ts +0 -130
- package/dist/driver/actions.d.ts.map +0 -1
- package/dist/driver/actions.js +0 -261
- package/dist/driver/actions.js.map +0 -1
- package/dist/driver/agent-cli.d.ts +0 -57
- package/dist/driver/agent-cli.d.ts.map +0 -1
- package/dist/driver/agent-cli.js +0 -134
- package/dist/driver/agent-cli.js.map +0 -1
- package/dist/driver/child-registry.d.ts +0 -25
- package/dist/driver/child-registry.d.ts.map +0 -1
- package/dist/driver/child-registry.js +0 -53
- package/dist/driver/child-registry.js.map +0 -1
- package/dist/driver/claude-code-quota.d.ts +0 -40
- package/dist/driver/claude-code-quota.d.ts.map +0 -1
- package/dist/driver/claude-code-quota.js +0 -144
- package/dist/driver/claude-code-quota.js.map +0 -1
- package/dist/driver/claude-code.d.ts +0 -104
- package/dist/driver/claude-code.d.ts.map +0 -1
- package/dist/driver/claude-code.js +0 -314
- package/dist/driver/claude-code.js.map +0 -1
- package/dist/driver/cli-session.d.ts +0 -57
- package/dist/driver/cli-session.d.ts.map +0 -1
- package/dist/driver/cli-session.js +0 -134
- package/dist/driver/cli-session.js.map +0 -1
- package/dist/driver/cloud.d.ts +0 -109
- package/dist/driver/cloud.d.ts.map +0 -1
- package/dist/driver/cloud.js +0 -232
- package/dist/driver/cloud.js.map +0 -1
- package/dist/driver/codex.d.ts +0 -99
- package/dist/driver/codex.d.ts.map +0 -1
- package/dist/driver/codex.js +0 -190
- package/dist/driver/codex.js.map +0 -1
- package/dist/driver/fake.d.ts +0 -54
- package/dist/driver/fake.d.ts.map +0 -1
- package/dist/driver/fake.js +0 -73
- package/dist/driver/fake.js.map +0 -1
- package/dist/driver/index.d.ts +0 -10
- package/dist/driver/index.d.ts.map +0 -1
- package/dist/driver/index.js +0 -14
- package/dist/driver/index.js.map +0 -1
- package/dist/driver/session-support.d.ts +0 -14
- package/dist/driver/session-support.d.ts.map +0 -1
- package/dist/driver/session-support.js +0 -37
- package/dist/driver/session-support.js.map +0 -1
- package/dist/driver/types.d.ts +0 -310
- package/dist/driver/types.d.ts.map +0 -1
- package/dist/driver/types.js +0 -5
- package/dist/driver/types.js.map +0 -1
- package/dist/driver-cli.d.ts +0 -61
- package/dist/driver-cli.d.ts.map +0 -1
- package/dist/driver-cli.js +0 -66
- package/dist/driver-cli.js.map +0 -1
- package/dist/fake-script.d.ts +0 -15
- package/dist/fake-script.d.ts.map +0 -1
- package/dist/fake-script.js +0 -58
- package/dist/fake-script.js.map +0 -1
- package/dist/framework-dir.d.ts.map +0 -1
- package/dist/framework-dir.js.map +0 -1
- package/dist/framework-gitignore.d.ts +0 -12
- package/dist/framework-gitignore.d.ts.map +0 -1
- package/dist/framework-gitignore.js +0 -19
- package/dist/framework-gitignore.js.map +0 -1
- package/dist/gate-keepalive.d.ts +0 -47
- package/dist/gate-keepalive.d.ts.map +0 -1
- package/dist/gate-keepalive.js +0 -62
- package/dist/gate-keepalive.js.map +0 -1
- package/dist/git-exclude.d.ts +0 -11
- package/dist/git-exclude.d.ts.map +0 -1
- package/dist/git-exclude.js +0 -23
- package/dist/git-exclude.js.map +0 -1
- package/dist/handoff-level.d.ts +0 -56
- package/dist/handoff-level.d.ts.map +0 -1
- package/dist/handoff-level.js +0 -62
- package/dist/handoff-level.js.map +0 -1
- package/dist/host-exec.d.ts +0 -21
- package/dist/host-exec.d.ts.map +0 -1
- package/dist/host-exec.js +0 -30
- package/dist/host-exec.js.map +0 -1
- package/dist/layout.d.ts +0 -41
- package/dist/layout.d.ts.map +0 -1
- package/dist/layout.js +0 -69
- package/dist/layout.js.map +0 -1
- package/dist/logs.d.ts +0 -73
- package/dist/logs.d.ts.map +0 -1
- package/dist/logs.js +0 -218
- package/dist/logs.js.map +0 -1
- package/dist/maintenance.d.ts +0 -90
- package/dist/maintenance.d.ts.map +0 -1
- package/dist/maintenance.js +0 -141
- package/dist/maintenance.js.map +0 -1
- package/dist/merged-worktrees.d.ts +0 -74
- package/dist/merged-worktrees.d.ts.map +0 -1
- package/dist/merged-worktrees.js +0 -84
- package/dist/merged-worktrees.js.map +0 -1
- package/dist/module-types/src/dashboard/agent-tree.d.ts +0 -105
- package/dist/module-types/src/dashboard/file-diff.d.ts +0 -66
- package/dist/module-types/src/dashboard/file-read.d.ts +0 -41
- package/dist/module-types/src/dashboard/file-status.d.ts +0 -20
- package/dist/module-types/src/dashboard/scheduler-state.d.ts +0 -72
- package/dist/module-types/src/dashboard/subagent-settings.d.ts +0 -25
- package/dist/module-types/src/dashboard-rpc/subagents.d.ts +0 -11
- package/dist/module-types/src/framework-gitignore.d.ts +0 -11
- package/dist/module-types/src/subagent-settings.d.ts +0 -26
- package/dist/on-before-mergeable-prompt.d.ts +0 -32
- package/dist/on-before-mergeable-prompt.d.ts.map +0 -1
- package/dist/on-before-mergeable-prompt.js +0 -26
- package/dist/on-before-mergeable-prompt.js.map +0 -1
- package/dist/planned-quick-wins.d.ts +0 -102
- package/dist/planned-quick-wins.d.ts.map +0 -1
- package/dist/planned-quick-wins.js +0 -171
- package/dist/planned-quick-wins.js.map +0 -1
- package/dist/preflight.d.ts +0 -77
- package/dist/preflight.d.ts.map +0 -1
- package/dist/preflight.js +0 -91
- package/dist/preflight.js.map +0 -1
- package/dist/preset-catalog.d.ts +0 -98
- package/dist/preset-catalog.d.ts.map +0 -1
- package/dist/preset-catalog.js +0 -129
- package/dist/preset-catalog.js.map +0 -1
- package/dist/preset-prompt.d.ts +0 -81
- package/dist/preset-prompt.d.ts.map +0 -1
- package/dist/preset-prompt.js +0 -51
- package/dist/preset-prompt.js.map +0 -1
- package/dist/preset-registry.d.ts +0 -32
- package/dist/preset-registry.d.ts.map +0 -1
- package/dist/preset-registry.js +0 -35
- package/dist/preset-registry.js.map +0 -1
- package/dist/presets.d.ts +0 -20
- package/dist/presets.d.ts.map +0 -1
- package/dist/presets.js +0 -33
- package/dist/presets.js.map +0 -1
- package/dist/preview-runtime.d.ts +0 -33
- package/dist/preview-runtime.d.ts.map +0 -1
- package/dist/preview-runtime.js +0 -96
- package/dist/preview-runtime.js.map +0 -1
- package/dist/preview.d.ts +0 -78
- package/dist/preview.d.ts.map +0 -1
- package/dist/preview.js +0 -301
- package/dist/preview.js.map +0 -1
- package/dist/project-widgets.d.ts +0 -46
- package/dist/project-widgets.d.ts.map +0 -1
- package/dist/project-widgets.js +0 -93
- package/dist/project-widgets.js.map +0 -1
- package/dist/prompt-run.d.ts +0 -104
- package/dist/prompt-run.d.ts.map +0 -1
- package/dist/prompt-run.js +0 -112
- package/dist/prompt-run.js.map +0 -1
- package/dist/prompt-template.d.ts +0 -16
- package/dist/prompt-template.d.ts.map +0 -1
- package/dist/prompt-template.js +0 -56
- package/dist/prompt-template.js.map +0 -1
- package/dist/prompts.generated.d.ts +0 -53
- package/dist/prompts.generated.d.ts.map +0 -1
- package/dist/prompts.generated.js +0 -55
- package/dist/prompts.generated.js.map +0 -1
- package/dist/queue-promote.d.ts +0 -70
- package/dist/queue-promote.d.ts.map +0 -1
- package/dist/queue-promote.js +0 -118
- package/dist/queue-promote.js.map +0 -1
- package/dist/relay.d.ts +0 -84
- package/dist/relay.d.ts.map +0 -1
- package/dist/relay.js +0 -199
- package/dist/relay.js.map +0 -1
- package/dist/repos-directory.d.ts +0 -19
- package/dist/repos-directory.d.ts.map +0 -1
- package/dist/repos-directory.js +0 -23
- package/dist/repos-directory.js.map +0 -1
- package/dist/retired-project-settings.d.ts +0 -43
- package/dist/retired-project-settings.d.ts.map +0 -1
- package/dist/retired-project-settings.js +0 -125
- package/dist/retired-project-settings.js.map +0 -1
- package/dist/routine-locks.d.ts +0 -53
- package/dist/routine-locks.d.ts.map +0 -1
- package/dist/routine-locks.js +0 -125
- package/dist/routine-locks.js.map +0 -1
- package/dist/run-driver.d.ts +0 -26
- package/dist/run-driver.d.ts.map +0 -1
- package/dist/run-driver.js +0 -17
- package/dist/run-driver.js.map +0 -1
- package/dist/run-locks.d.ts +0 -3
- package/dist/run-locks.d.ts.map +0 -1
- package/dist/run-locks.js +0 -39
- package/dist/run-locks.js.map +0 -1
- package/dist/run-messages.d.ts +0 -64
- package/dist/run-messages.d.ts.map +0 -1
- package/dist/run-messages.js +0 -76
- package/dist/run-messages.js.map +0 -1
- package/dist/run-options.d.ts +0 -53
- package/dist/run-options.d.ts.map +0 -1
- package/dist/run-options.js +0 -110
- package/dist/run-options.js.map +0 -1
- package/dist/run-telemetry.d.ts +0 -115
- package/dist/run-telemetry.d.ts.map +0 -1
- package/dist/run-telemetry.js +0 -137
- package/dist/run-telemetry.js.map +0 -1
- package/dist/run-view.d.ts +0 -109
- package/dist/run-view.d.ts.map +0 -1
- package/dist/run-view.js +0 -118
- package/dist/run-view.js.map +0 -1
- package/dist/run.d.ts +0 -261
- package/dist/run.d.ts.map +0 -1
- package/dist/run.js +0 -420
- package/dist/run.js.map +0 -1
- package/dist/runtime-keys.d.ts +0 -17
- package/dist/runtime-keys.d.ts.map +0 -1
- package/dist/runtime-keys.js +0 -17
- package/dist/runtime-keys.js.map +0 -1
- package/dist/sandbox.d.ts +0 -27
- package/dist/sandbox.d.ts.map +0 -1
- package/dist/sandbox.js +0 -63
- package/dist/sandbox.js.map +0 -1
- package/dist/session-link.d.ts +0 -19
- package/dist/session-link.d.ts.map +0 -1
- package/dist/session-link.js +0 -26
- package/dist/session-link.js.map +0 -1
- package/dist/sessions.d.ts +0 -77
- package/dist/sessions.d.ts.map +0 -1
- package/dist/sessions.js +0 -146
- package/dist/sessions.js.map +0 -1
- package/dist/spike-locks.d.ts +0 -75
- package/dist/spike-locks.d.ts.map +0 -1
- package/dist/spike-locks.js +0 -208
- package/dist/spike-locks.js.map +0 -1
- package/dist/stale-branch.d.ts +0 -21
- package/dist/stale-branch.d.ts.map +0 -1
- package/dist/stale-branch.js +0 -32
- package/dist/stale-branch.js.map +0 -1
- package/dist/steps.d.ts +0 -9
- package/dist/steps.d.ts.map +0 -1
- package/dist/steps.js +0 -13
- package/dist/steps.js.map +0 -1
- package/dist/store/forge.d.ts +0 -110
- package/dist/store/forge.d.ts.map +0 -1
- package/dist/store/forge.js +0 -97
- package/dist/store/forge.js.map +0 -1
- package/dist/store/run-checkout.d.ts +0 -33
- package/dist/store/run-checkout.d.ts.map +0 -1
- package/dist/store/run-checkout.js +0 -59
- package/dist/store/run-checkout.js.map +0 -1
- package/dist/store/run-store.d.ts +0 -501
- package/dist/store/run-store.d.ts.map +0 -1
- package/dist/store/run-store.js +0 -806
- package/dist/store/run-store.js.map +0 -1
- package/dist/store/suspend.d.ts +0 -38
- package/dist/store/suspend.d.ts.map +0 -1
- package/dist/store/suspend.js +0 -45
- package/dist/store/suspend.js.map +0 -1
- package/dist/store/worktree-deps.d.ts +0 -30
- package/dist/store/worktree-deps.d.ts.map +0 -1
- package/dist/store/worktree-deps.js +0 -115
- package/dist/store/worktree-deps.js.map +0 -1
- package/dist/store/worktree.d.ts +0 -194
- package/dist/store/worktree.d.ts.map +0 -1
- package/dist/store/worktree.js +0 -331
- package/dist/store/worktree.js.map +0 -1
- package/dist/subagent-settings.d.ts +0 -27
- package/dist/subagent-settings.d.ts.map +0 -1
- package/dist/subagent-settings.js +0 -35
- package/dist/subagent-settings.js.map +0 -1
- package/dist/system-prompt-file.d.ts +0 -18
- package/dist/system-prompt-file.d.ts.map +0 -1
- package/dist/system-prompt-file.js +0 -28
- package/dist/system-prompt-file.js.map +0 -1
- package/dist/system-prompt.d.ts +0 -148
- package/dist/system-prompt.d.ts.map +0 -1
- package/dist/system-prompt.js +0 -170
- package/dist/system-prompt.js.map +0 -1
- package/dist/target-driver.d.ts +0 -28
- package/dist/target-driver.d.ts.map +0 -1
- package/dist/target-driver.js +0 -18
- package/dist/target-driver.js.map +0 -1
- package/dist/ticket-locks.d.ts +0 -61
- package/dist/ticket-locks.d.ts.map +0 -1
- package/dist/ticket-locks.js +0 -137
- package/dist/ticket-locks.js.map +0 -1
- package/dist/tickets-file.d.ts +0 -7
- package/dist/tickets-file.d.ts.map +0 -1
- package/dist/tickets-file.js +0 -21
- package/dist/tickets-file.js.map +0 -1
- package/dist/tickets.d.ts +0 -18
- package/dist/tickets.d.ts.map +0 -1
- package/dist/tickets.js +0 -23
- package/dist/tickets.js.map +0 -1
- package/dist/todo-loop.d.ts +0 -110
- package/dist/todo-loop.d.ts.map +0 -1
- package/dist/todo-loop.js +0 -175
- package/dist/todo-loop.js.map +0 -1
- package/dist/turn-gate.d.ts +0 -144
- package/dist/turn-gate.d.ts.map +0 -1
- package/dist/turn-gate.js +0 -217
- package/dist/turn-gate.js.map +0 -1
- package/dist/usage.d.ts +0 -32
- package/dist/usage.d.ts.map +0 -1
- package/dist/usage.js +0 -46
- package/dist/usage.js.map +0 -1
- package/dist/widget-types/dashboard/components/LinkActions.d.ts +0 -26
- package/dist/widget-types/dashboard/components/Markdown.d.ts +0 -4
- package/dist/widget-types/dashboard/components/StartAgentButton.d.ts +0 -39
- package/dist/widget-types/dashboard/components/ui/badge.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/button.d.ts +0 -10
- package/dist/widget-types/dashboard/components/ui/card.d.ts +0 -5
- package/dist/widget-types/dashboard/components/ui/checkbox.d.ts +0 -7
- package/dist/widget-types/dashboard/components/ui/dropdown-menu.d.ts +0 -16
- package/dist/widget-types/dashboard/components/ui/input.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/option-label.d.ts +0 -4
- package/dist/widget-types/dashboard/components/ui/popover.d.ts +0 -8
- package/dist/widget-types/dashboard/components/ui/scroll-area.d.ts +0 -10
- package/dist/widget-types/dashboard/components/ui/separator.d.ts +0 -3
- package/dist/widget-types/dashboard/components/ui/skeleton.d.ts +0 -2
- package/dist/widget-types/dashboard/components/ui/slider.d.ts +0 -9
- package/dist/widget-types/dashboard/components/ui/tooltip.d.ts +0 -11
- package/dist/widget-types/dashboard/lib/draft-handoff.d.ts +0 -15
- package/dist/widget-types/dashboard/lib/format-date.d.ts +0 -51
- package/dist/widget-types/dashboard/lib/host-services.d.ts +0 -12
- package/dist/widget-types/dashboard/lib/route.d.ts +0 -24
- package/dist/widget-types/dashboard/lib/rpc.d.ts +0 -31
- package/dist/widget-types/dashboard/lib/use-action.d.ts +0 -25
- package/dist/widget-types/dashboard/lib/use-async.d.ts +0 -39
- package/dist/widget-types/dashboard/lib/use-widgets.d.ts +0 -42
- package/dist/widget-types/dashboard/lib/utils.d.ts +0 -3
- package/dist/widget-types/dashboard/rpc/widgets.d.ts +0 -4
- package/dist/widget-types/dashboard/widget/index.d.ts +0 -207
- package/dist/widget-types/src/agent-id.d.ts +0 -12
- package/dist/widget-types/src/agent-locks.d.ts +0 -2
- package/dist/widget-types/src/agent-view.d.ts +0 -38
- package/dist/widget-types/src/bridge-browser.d.ts +0 -216
- package/dist/widget-types/src/browser-stream.d.ts +0 -19
- package/dist/widget-types/src/browser.d.ts +0 -15
- package/dist/widget-types/src/cli-exec.d.ts +0 -35
- package/dist/widget-types/src/cloud-run-state.d.ts +0 -26
- package/dist/widget-types/src/dashboard/activity.d.ts +0 -40
- package/dist/widget-types/src/dashboard/agent-handoff.d.ts +0 -211
- package/dist/widget-types/src/dashboard/agent-tree.d.ts +0 -105
- package/dist/widget-types/src/dashboard/bridge-endpoints.d.ts +0 -157
- package/dist/widget-types/src/dashboard/bridge-question.d.ts +0 -32
- package/dist/widget-types/src/dashboard/bridge-store.d.ts +0 -178
- package/dist/widget-types/src/dashboard/cache.d.ts +0 -46
- package/dist/widget-types/src/dashboard/content-type.d.ts +0 -2
- package/dist/widget-types/src/dashboard/dashboard.d.ts +0 -37
- package/dist/widget-types/src/dashboard/discord-webhook.d.ts +0 -16
- package/dist/widget-types/src/dashboard/docs.d.ts +0 -38
- package/dist/widget-types/src/dashboard/file-diff.d.ts +0 -66
- package/dist/widget-types/src/dashboard/file-read.d.ts +0 -41
- package/dist/widget-types/src/dashboard/file-status.d.ts +0 -20
- package/dist/widget-types/src/dashboard/gh.d.ts +0 -130
- package/dist/widget-types/src/dashboard/git-status.d.ts +0 -32
- package/dist/widget-types/src/dashboard/github.d.ts +0 -10
- package/dist/widget-types/src/dashboard/http.d.ts +0 -28
- package/dist/widget-types/src/dashboard/interventions.d.ts +0 -66
- package/dist/widget-types/src/dashboard/keys.d.ts +0 -30
- package/dist/widget-types/src/dashboard/models.d.ts +0 -24
- package/dist/widget-types/src/dashboard/open-in-app.d.ts +0 -42
- package/dist/widget-types/src/dashboard/open-questions.d.ts +0 -52
- package/dist/widget-types/src/dashboard/overview.d.ts +0 -77
- package/dist/widget-types/src/dashboard/projects.d.ts +0 -89
- package/dist/widget-types/src/dashboard/pull-requests.d.ts +0 -126
- package/dist/widget-types/src/dashboard/queue.d.ts +0 -16
- package/dist/widget-types/src/dashboard/quota.d.ts +0 -59
- package/dist/widget-types/src/dashboard/remote-run.d.ts +0 -94
- package/dist/widget-types/src/dashboard/rpc-serve.d.ts +0 -102
- package/dist/widget-types/src/dashboard/run-inbox.d.ts +0 -30
- package/dist/widget-types/src/dashboard/scheduler-state.d.ts +0 -64
- package/dist/widget-types/src/dashboard/tickets.d.ts +0 -28
- package/dist/widget-types/src/dashboard/types.d.ts +0 -99
- package/dist/widget-types/src/dashboard/widget-serve.d.ts +0 -14
- package/dist/widget-types/src/dashboard-rpc/context.d.ts +0 -53
- package/dist/widget-types/src/dashboard-rpc/control.d.ts +0 -108
- package/dist/widget-types/src/dashboard-rpc/devices.d.ts +0 -8
- package/dist/widget-types/src/dashboard-rpc/events-tail.d.ts +0 -53
- package/dist/widget-types/src/dashboard-rpc/events.d.ts +0 -29
- package/dist/widget-types/src/dashboard-rpc/index.d.ts +0 -28
- package/dist/widget-types/src/dashboard-rpc/models.d.ts +0 -3
- package/dist/widget-types/src/dashboard-rpc/preferences.d.ts +0 -40
- package/dist/widget-types/src/dashboard-rpc/projects.d.ts +0 -54
- package/dist/widget-types/src/dashboard-rpc/quota.d.ts +0 -26
- package/dist/widget-types/src/dashboard-rpc/reads.d.ts +0 -227
- package/dist/widget-types/src/dashboard-rpc/relay-agent.d.ts +0 -8
- package/dist/widget-types/src/dashboard-rpc/stream-forward.d.ts +0 -16
- package/dist/widget-types/src/dashboard-rpc/widgets.d.ts +0 -32
- package/dist/widget-types/src/discord-credentials.d.ts +0 -79
- package/dist/widget-types/src/driver-names.d.ts +0 -21
- package/dist/widget-types/src/error-message.d.ts +0 -7
- package/dist/widget-types/src/event-stream.d.ts +0 -32
- package/dist/widget-types/src/events.d.ts +0 -235
- package/dist/widget-types/src/framework-dir.d.ts +0 -10
- package/dist/widget-types/src/framework-gitignore.d.ts +0 -11
- package/dist/widget-types/src/index.d.ts +0 -42
- package/dist/widget-types/src/jsonl-tail.d.ts +0 -54
- package/dist/widget-types/src/loopback-host.d.ts +0 -19
- package/dist/widget-types/src/node-fs.d.ts +0 -32
- package/dist/widget-types/src/open-choices.d.ts +0 -14
- package/dist/widget-types/src/pick-directory.d.ts +0 -29
- package/dist/widget-types/src/preference-defaults.d.ts +0 -53
- package/dist/widget-types/src/project-commands.d.ts +0 -23
- package/dist/widget-types/src/project-errors.d.ts +0 -43
- package/dist/widget-types/src/project-hooks.d.ts +0 -133
- package/dist/widget-types/src/project-presets.d.ts +0 -29
- package/dist/widget-types/src/project-widgets.d.ts +0 -45
- package/dist/widget-types/src/project.d.ts +0 -28
- package/dist/widget-types/src/quota-boundary.d.ts +0 -115
- package/dist/widget-types/src/quota-poller.d.ts +0 -82
- package/dist/widget-types/src/registry.d.ts +0 -210
- package/dist/widget-types/src/store/agent-checkout.d.ts +0 -46
- package/dist/widget-types/src/store/agent-store.d.ts +0 -237
- package/dist/widget-types/src/store/branches.d.ts +0 -133
- package/dist/widget-types/src/store/forge.d.ts +0 -109
- package/dist/widget-types/src/store/git-host.d.ts +0 -111
- package/dist/widget-types/src/store/index.d.ts +0 -9
- package/dist/widget-types/src/store/provided.d.ts +0 -16
- package/dist/widget-types/src/store/queue.d.ts +0 -45
- package/dist/widget-types/src/store/run-record.d.ts +0 -21
- package/dist/widget-types/src/store/runs.d.ts +0 -101
- package/dist/widget-types/src/store/tickets.d.ts +0 -72
- package/dist/widget-types/src/tickets.d.ts +0 -17
- package/dist/widget-types/src/worktrees.d.ts +0 -89
- package/dist/widget.css +0 -50
package/dist/store/worktree.js
DELETED
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import { join } from 'node:path';
|
|
2
|
-
import { realpath } from 'node:fs/promises';
|
|
3
|
-
import { nodeGitRunner } from '../project.js';
|
|
4
|
-
import { FRAMEWORK_DIR, BRANCHES_DIR, isSafeAgentId } from './agent-store.js';
|
|
5
|
-
import { worktreeDirName } from '../branch-names.js';
|
|
6
|
-
/**
|
|
7
|
-
* Git-worktree lifecycle for concurrent agents (#453/#735): give each agent its own
|
|
8
|
-
* checkout so N runs on one repo never fight over the working tree. Pure plumbing
|
|
9
|
-
* over the existing {@link GitRunner} seam; no daemon wiring, no concurrency, no
|
|
10
|
-
* dashboard changes (those are the sibling #453 slices). This module only knows
|
|
11
|
-
* how to add, list, remove, and prune worktrees.
|
|
12
|
-
*/
|
|
13
|
-
/** The path an agent's worktree gets (#1580): `<repo>/.the-framework/branches/<run branch name>`. */
|
|
14
|
-
export function worktreePath(repo, agentId) {
|
|
15
|
-
return join(repo, FRAMEWORK_DIR, BRANCHES_DIR, worktreeDirName(agentId));
|
|
16
|
-
}
|
|
17
|
-
export { AGENT_BRANCH_PREFIX, LEGACY_AGENT_BRANCH_PREFIX, agentBranchName, legacyAgentBranchName, } from '../branch-names.js';
|
|
18
|
-
/**
|
|
19
|
-
* Create a worktree for an agent on a fresh branch: `git worktree add -b <branch>
|
|
20
|
-
* <path> [base]`. Git makes the leaf dir (and any missing parents) itself. The
|
|
21
|
-
* `agentId` is validated as path-safe first so a caller can never traverse out of
|
|
22
|
-
* `.the-framework/branches/`. Rejects on any git failure (a caller that wants a
|
|
23
|
-
* run needs its checkout, so failure must surface, not be swallowed).
|
|
24
|
-
*/
|
|
25
|
-
export async function addWorktree(repo, opts, agent = nodeGitRunner()) {
|
|
26
|
-
if (!isSafeAgentId(opts.agentId))
|
|
27
|
-
throw new Error(`unsafe run id: ${opts.agentId}`);
|
|
28
|
-
const path = worktreePath(repo, opts.agentId);
|
|
29
|
-
await agent(['worktree', 'add', '-b', opts.branch, path, ...(opts.base ? [opts.base] : [])], repo);
|
|
30
|
-
return { path, branch: opts.branch };
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check an *existing* branch out into an agent's worktree (#762): `git worktree add <path> <branch>`,
|
|
34
|
-
* no `-b`. Continuing an agent puts it back on the branch its work is already on, rather than
|
|
35
|
-
* branching again from HEAD and stranding what it did last time.
|
|
36
|
-
*
|
|
37
|
-
* A branch that is gone is recreated from HEAD (#1650): the only branch the framework deletes is
|
|
38
|
-
* one that held nothing past a commit the remote already had, so HEAD is where its work was.
|
|
39
|
-
* Anything else git refuses — the branch checked out elsewhere, say — still rejects, like
|
|
40
|
-
* {@link addWorktree}: a continued agent needs its checkout.
|
|
41
|
-
*/
|
|
42
|
-
export async function attachWorktree(repo, opts, agent = nodeGitRunner()) {
|
|
43
|
-
if (!isSafeAgentId(opts.agentId))
|
|
44
|
-
throw new Error(`unsafe run id: ${opts.agentId}`);
|
|
45
|
-
const path = worktreePath(repo, opts.agentId);
|
|
46
|
-
try {
|
|
47
|
-
await agent(['worktree', 'add', path, opts.branch], repo);
|
|
48
|
-
}
|
|
49
|
-
catch (err) {
|
|
50
|
-
// `worktree add <path> <name>` also resolves a remote-only `origin/<name>`, so the existence
|
|
51
|
-
// check comes after the attempt, not before it.
|
|
52
|
-
const exists = await agent(['show-ref', '--verify', '--quiet', `refs/heads/${opts.branch}`], repo).then(() => true, () => false);
|
|
53
|
-
if (exists)
|
|
54
|
-
throw err;
|
|
55
|
-
await agent(['worktree', 'add', '-b', opts.branch, path], repo);
|
|
56
|
-
}
|
|
57
|
-
return { path, branch: opts.branch };
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Every worktree registered for the repo (the main checkout included). Forgiving:
|
|
61
|
-
* a non-repo / git failure yields `[]` so a reconcile scan never throws.
|
|
62
|
-
*/
|
|
63
|
-
export async function listWorktrees(repo, agent = nodeGitRunner()) {
|
|
64
|
-
try {
|
|
65
|
-
return parseWorktreeList(await agent(['worktree', 'list', '--porcelain'], repo));
|
|
66
|
-
}
|
|
67
|
-
catch {
|
|
68
|
-
return [];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Parse `git worktree list --porcelain`: blank-line-separated records, each with
|
|
73
|
-
* a `worktree <path>` line, a `HEAD <sha>` line, and either `branch refs/heads/...`
|
|
74
|
-
* or `detached`. Extra attributes (bare/locked/prunable) are ignored. Exported so
|
|
75
|
-
* the parsing is unit-testable without a real repo.
|
|
76
|
-
*/
|
|
77
|
-
export function parseWorktreeList(porcelain) {
|
|
78
|
-
const entries = [];
|
|
79
|
-
for (const block of porcelain.split(/\n\s*\n/)) {
|
|
80
|
-
let path;
|
|
81
|
-
let head = '';
|
|
82
|
-
let branch;
|
|
83
|
-
for (const line of block.split('\n')) {
|
|
84
|
-
if (line.startsWith('worktree '))
|
|
85
|
-
path = line.slice('worktree '.length).trim();
|
|
86
|
-
else if (line.startsWith('HEAD '))
|
|
87
|
-
head = line.slice('HEAD '.length).trim();
|
|
88
|
-
else if (line.startsWith('branch '))
|
|
89
|
-
branch = line.slice('branch '.length).trim().replace(/^refs\/heads\//, '');
|
|
90
|
-
}
|
|
91
|
-
if (path)
|
|
92
|
-
entries.push({ path, head, ...(branch ? { branch } : {}) });
|
|
93
|
-
}
|
|
94
|
-
return entries;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Commit whatever the agent left behind, on the agent's own branch (#786).
|
|
98
|
-
*
|
|
99
|
-
* An agent that edits and stops without committing is behaving as instructed: the
|
|
100
|
-
* system prompt has it commit *pre-existing* changes before it starts, never its own
|
|
101
|
-
* work at the end. Removing that checkout would destroy the diff (the work was never
|
|
102
|
-
* staged, so it is not recoverable from git afterwards), so teardown commits it first
|
|
103
|
-
* and the branch outlives the worktree.
|
|
104
|
-
*
|
|
105
|
-
* Returns whether the checkout is safe to remove: true when it was already clean or
|
|
106
|
-
* the work is now committed, false when the commit failed (no git identity, a hook
|
|
107
|
-
* refusing it). False means keep the checkout, which is the safe direction.
|
|
108
|
-
*
|
|
109
|
-
* Retries before giving up (#1376): the daemon's conversation committer works in the same
|
|
110
|
-
* checkout and is busiest exactly when this runs (session end), so a first attempt can lose
|
|
111
|
-
* an `index.lock` race. That transient loss is how a session's real work got judged
|
|
112
|
-
* "committed nothing" by the handoff while the teardown's identical commit, seconds later,
|
|
113
|
-
* succeeded. A short wait outlasts the committer's hold; a persistent failure (identity,
|
|
114
|
-
* hooks) still comes back false.
|
|
115
|
-
*/
|
|
116
|
-
export async function commitPendingWork(path, agent = nodeGitRunner(), retry = {}) {
|
|
117
|
-
const attempts = Math.max(1, retry.attempts ?? 3);
|
|
118
|
-
const delayMs = retry.delayMs ?? 300;
|
|
119
|
-
for (let attempt = 1; attempt <= attempts; attempt++) {
|
|
120
|
-
try {
|
|
121
|
-
const status = await agent(['status', '--porcelain'], path);
|
|
122
|
-
if (!status.trim())
|
|
123
|
-
return true;
|
|
124
|
-
await agent(['add', '-A'], path);
|
|
125
|
-
// Same wording as the install-time safety commit (install.ts), for one vocabulary.
|
|
126
|
-
await agent(['commit', '-m', '[The Framework] uncommitted changes'], path);
|
|
127
|
-
return true;
|
|
128
|
-
}
|
|
129
|
-
catch {
|
|
130
|
-
if (attempt < attempts)
|
|
131
|
-
await new Promise(resolve => setTimeout(resolve, delayMs));
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Remove an agent's worktree. Tolerant of an already-gone / never-registered path so
|
|
138
|
-
* teardown stays idempotent (the agent child is detached; the daemon only holds its pid).
|
|
139
|
-
*
|
|
140
|
-
* Plain removal first: it refuses a checkout git considers unclean, which after
|
|
141
|
-
* {@link commitPendingWork} means a state we did not anticipate. Falling back to
|
|
142
|
-
* `--force` keeps teardown working (an ignored build artifact must not strand a
|
|
143
|
-
* worktree forever), but it says so, because forcing past unknown state is exactly
|
|
144
|
-
* how uncommitted work got deleted in the first place.
|
|
145
|
-
*/
|
|
146
|
-
export async function removeWorktree(repo, path, agent = nodeGitRunner()) {
|
|
147
|
-
try {
|
|
148
|
-
await agent(['worktree', 'remove', path], repo);
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
catch {
|
|
152
|
-
// Unclean by git's reckoning, already removed, or never registered: try forcing.
|
|
153
|
-
}
|
|
154
|
-
try {
|
|
155
|
-
await agent(['worktree', 'remove', '--force', path], repo);
|
|
156
|
-
console.log(`[framework] forced removal of worktree ${path} (git called it unclean)`);
|
|
157
|
-
}
|
|
158
|
-
catch {
|
|
159
|
-
// Already removed, or never registered: nothing to do.
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Delete a branch that holds nothing (#1650). `-D`, because "merged" in git's eyes is the wrong
|
|
164
|
-
* test: the caller proved the tip is a commit the remote already has, which is the stronger fact.
|
|
165
|
-
* Forgiving: the checkout is already gone by the time this runs, and a branch that would not
|
|
166
|
-
* delete is a leftover name, not lost work.
|
|
167
|
-
*/
|
|
168
|
-
export async function deleteBranch(repo, branch, agent = nodeGitRunner()) {
|
|
169
|
-
await agent(['branch', '-D', branch], repo).catch(() => undefined);
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Whether `path` is the root of a git worktree — the main checkout's or a linked one (#1654).
|
|
173
|
-
*
|
|
174
|
-
* Git answers for any directory *inside* a repository, so a `branches/<run>` directory that is
|
|
175
|
-
* no longer a worktree (a checkout removed by hand, a marker written after teardown) makes every
|
|
176
|
-
* git command run in it act on the enclosing repo: the user's own checkout, on the user's own
|
|
177
|
-
* branch. The one question that tells the two apart is whether git's top level is this very
|
|
178
|
-
* directory. False on any failure, and the caller leaves the directory alone.
|
|
179
|
-
*/
|
|
180
|
-
export async function isWorktreeRoot(path, agent = nodeGitRunner()) {
|
|
181
|
-
try {
|
|
182
|
-
const top = (await agent(['rev-parse', '--show-toplevel'], path)).trim();
|
|
183
|
-
if (!top)
|
|
184
|
-
return false;
|
|
185
|
-
// Both sides resolved: macOS's tmpdir sits behind the /var -> /private/var link, and git
|
|
186
|
-
// reports the resolved path.
|
|
187
|
-
return (await realpath(top)) === (await realpath(path));
|
|
188
|
-
}
|
|
189
|
-
catch {
|
|
190
|
-
return false;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* The branch checked out at `path` when `path` is a worktree root (#1654), else `undefined` —
|
|
195
|
-
* the read every consumer of a `branches/<run>` directory wants, so none of them can take the
|
|
196
|
-
* enclosing repo's branch for the run's.
|
|
197
|
-
*/
|
|
198
|
-
export async function worktreeBranch(path, agent = nodeGitRunner()) {
|
|
199
|
-
return (await isWorktreeRoot(path, agent)) ? currentBranch(path, agent) : undefined;
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* The branch checked out at `path`, or `undefined` when detached / not a repo.
|
|
203
|
-
* Forgiving, like {@link listWorktrees}: callers use it to decide, not to fail.
|
|
204
|
-
*/
|
|
205
|
-
export async function currentBranch(path, agent = nodeGitRunner()) {
|
|
206
|
-
try {
|
|
207
|
-
const name = (await agent(['rev-parse', '--abbrev-ref', 'HEAD'], path)).trim();
|
|
208
|
-
return name && name !== 'HEAD' ? name : undefined;
|
|
209
|
-
}
|
|
210
|
-
catch {
|
|
211
|
-
return undefined;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Rename an agent's branch once the agent names the session (#736): the worktree is
|
|
216
|
-
* created on `tf-agent-<agentId>` before a name exists, and this puts the
|
|
217
|
-
* readable `tf-<sessionName>` on it.
|
|
218
|
-
*
|
|
219
|
-
* Only renames when `path` is still on `from`. The #326 system prompt currently
|
|
220
|
-
* tells the agent to create and check out its own `tf-<name>` branch,
|
|
221
|
-
* and until that step is dropped there (the prompt ships verbatim from the issue,
|
|
222
|
-
* so it is not ours to edit) the agent may already have moved off `from` — in
|
|
223
|
-
* which case it named the branch itself and there is nothing to rename. Returns
|
|
224
|
-
* whether it renamed, and never throws: an agent must not die over a branch name.
|
|
225
|
-
*/
|
|
226
|
-
export async function renameAgentBranch(path, from, to, agent = nodeGitRunner()) {
|
|
227
|
-
if ((await currentBranch(path, agent)) !== from)
|
|
228
|
-
return false;
|
|
229
|
-
try {
|
|
230
|
-
await agent(['branch', '-m', from, to], path);
|
|
231
|
-
return true;
|
|
232
|
-
}
|
|
233
|
-
catch {
|
|
234
|
-
// Target name taken, or an invalid slug: keep the run-id branch.
|
|
235
|
-
return false;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* `git worktree prune`: drop administrative entries for worktree dirs a crash left
|
|
240
|
-
* behind. Never removes a live worktree, so it is always safe. Forgiving.
|
|
241
|
-
*/
|
|
242
|
-
export async function pruneWorktrees(repo, agent = nodeGitRunner()) {
|
|
243
|
-
try {
|
|
244
|
-
await agent(['worktree', 'prune'], repo);
|
|
245
|
-
}
|
|
246
|
-
catch {
|
|
247
|
-
// Not a repo / nothing to prune: no-op.
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
/** A {@link SizeRunner} over `du -sk`: one process, and it does not follow the symlinked deps (#736). */
|
|
251
|
-
export function nodeSizeRunner() {
|
|
252
|
-
return path => new Promise((resolvePromise, rejectPromise) => {
|
|
253
|
-
void import('node:child_process').then(({ execFile }) => {
|
|
254
|
-
execFile('du', ['-sk', path], { timeout: 5_000 }, (err, stdout) => err ? rejectPromise(err) : resolvePromise(stdout));
|
|
255
|
-
});
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* A worktree's size on disk in bytes, or undefined when it cannot be read (#798). Best-effort by
|
|
260
|
-
* design: this only ever labels a "remove this" button, so a missing number costs nothing while a
|
|
261
|
-
* throw or a hang would cost the panel it sits in. `du` is absent on Windows, which reads as
|
|
262
|
-
* unknown like any other failure.
|
|
263
|
-
*/
|
|
264
|
-
export async function worktreeSize(path, agent = nodeSizeRunner()) {
|
|
265
|
-
try {
|
|
266
|
-
const kb = Number.parseInt((await agent(path)).trim().split(/\s+/)[0] ?? '', 10);
|
|
267
|
-
return Number.isFinite(kb) ? kb * 1024 : undefined;
|
|
268
|
-
}
|
|
269
|
-
catch {
|
|
270
|
-
return undefined;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* Whether a branch is on the remote, with the local tip already there (E5).
|
|
275
|
-
*
|
|
276
|
-
* The one predicate the whole retention story is built on: nothing local is ever the last copy of
|
|
277
|
-
* work, so anything the remote has may be deleted and anything it does not have stays. It replaced
|
|
278
|
-
* three interacting rules — a clean finish removes the checkout, a failure keeps it, a merged
|
|
279
|
-
* branch reclaims it later — each of which asked *what state did this session end in* rather than
|
|
280
|
-
* *is this recoverable*.
|
|
281
|
-
*
|
|
282
|
-
* `git rev-parse` of the remote-tracking ref, then a merge-base check: the ref existing is not
|
|
283
|
-
* enough, because a branch pushed and then committed to again has a tip the remote has never seen.
|
|
284
|
-
* Reads only local refs (no fetch), so it is cheap enough to ask on every teardown — the remote ref
|
|
285
|
-
* is written by the push this is checking for, which is what makes that sound.
|
|
286
|
-
*
|
|
287
|
-
* Anything unreadable answers `false`. A repo with no remote configured therefore keeps every
|
|
288
|
-
* checkout, which is the honest outcome: there is nowhere for the work to be recoverable from.
|
|
289
|
-
*/
|
|
290
|
-
export async function branchPushed(repo, branch, agent = nodeGitRunner()) {
|
|
291
|
-
try {
|
|
292
|
-
const local = (await agent(['rev-parse', '--verify', `refs/heads/${branch}`], repo)).trim();
|
|
293
|
-
const remote = (await agent(['rev-parse', '--verify', `refs/remotes/origin/${branch}`], repo)).trim();
|
|
294
|
-
if (!local || !remote)
|
|
295
|
-
return false;
|
|
296
|
-
if (local === remote)
|
|
297
|
-
return true;
|
|
298
|
-
// The remote may be ahead (someone pushed on top): what matters is that our tip is in it.
|
|
299
|
-
await agent(['merge-base', '--is-ancestor', local, remote], repo);
|
|
300
|
-
return true;
|
|
301
|
-
}
|
|
302
|
-
catch {
|
|
303
|
-
return false;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Whether the checkout has nothing uncommitted — the read half of {@link commitPendingWork}, for
|
|
308
|
-
* a decision that must not commit on the way to its answer: removing a publish-nothing session's
|
|
309
|
-
* checkout requires a clean tree, and grabbing someone's half-typed edits as a commit to find
|
|
310
|
-
* that out would be the intrusion the question exists to avoid. Throws when git cannot answer,
|
|
311
|
-
* so the caller keeps the checkout rather than guessing.
|
|
312
|
-
*/
|
|
313
|
-
export async function worktreeClean(path, agent = nodeGitRunner()) {
|
|
314
|
-
return !(await agent(['status', '--porcelain'], path)).trim();
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Whether the repo has any remote configured at all. What the sweep asks once per project: with
|
|
318
|
-
* no remote, {@link branchPushed} is false for every checkout and the push cannot land, so the
|
|
319
|
-
* whole per-checkout probe-and-push cycle is doomed before it starts — and that answer cannot
|
|
320
|
-
* change between two rows of the same sweep. Anything unreadable answers `false`, like
|
|
321
|
-
* {@link branchPushed}: keeping a checkout is the safe direction.
|
|
322
|
-
*/
|
|
323
|
-
export async function repoHasRemote(repo, agent = nodeGitRunner()) {
|
|
324
|
-
try {
|
|
325
|
-
return (await agent(['remote'], repo)).trim().length > 0;
|
|
326
|
-
}
|
|
327
|
-
catch {
|
|
328
|
-
return false;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
//# sourceMappingURL=worktree.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worktree.js","sourceRoot":"","sources":["../../src/store/worktree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAkB,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;;;GAMG;AAEH,qGAAqG;AACrG,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,OAAe;IACxD,OAAO,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAA;AAC1E,CAAC;AAGD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,EACf,qBAAqB,GACtB,MAAM,oBAAoB,CAAA;AA2B3B;;;;;;GAMG;AACH,MAAM,CAAC,KA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CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;AAC/D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAY,EAAE,KAAK,GAAc,aAAa,EAAE;IAClF,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAA;IAC1D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1,27 +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;
|
|
27
|
-
//# sourceMappingURL=subagent-settings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subagent-settings.d.ts","sourceRoot":"","sources":["../src/subagent-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEjE;;;;;;;GAOG;AAEH,8GAA8G;AAC9G,eAAO,MAAM,sBAAsB,iCAAiC,CAAA;AAEpE,gHAAgH;AAChH,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC,sGAAsG;AACtG,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,eAAe,YAAI,QAAQ,EAAE,MAAM,CAAU,CAAA;AAE1D,6FAA6F;AAC7F,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAcnE"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { isDriverName } 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 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 const DEFAULT_AT_ONCE = 4;
|
|
14
|
-
export const SUBAGENT_LEVELS = ['simple', 'hard'];
|
|
15
|
-
/** The settings in `value`, each field kept only when it has the shape the file promises. */
|
|
16
|
-
export function subagentSettingsIn(value) {
|
|
17
|
-
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
18
|
-
return {};
|
|
19
|
-
const given = value;
|
|
20
|
-
const settings = {};
|
|
21
|
-
for (const level of SUBAGENT_LEVELS) {
|
|
22
|
-
const runner = given[level];
|
|
23
|
-
if (!runner || typeof runner !== 'object')
|
|
24
|
-
continue;
|
|
25
|
-
const { driver, model } = runner;
|
|
26
|
-
if (typeof driver !== 'string' || !isDriverName(driver))
|
|
27
|
-
continue;
|
|
28
|
-
settings[level] = { driver, ...(typeof model === 'string' && model.trim() ? { model: model.trim() } : {}) };
|
|
29
|
-
}
|
|
30
|
-
const atOnce = given['atOnce'];
|
|
31
|
-
if (typeof atOnce === 'number' && Number.isInteger(atOnce) && atOnce >= 1)
|
|
32
|
-
settings.atOnce = atOnce;
|
|
33
|
-
return settings;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=subagent-settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subagent-settings.js","sourceRoot":"","sources":["../src/subagent-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAmB,MAAM,mBAAmB,CAAA;AAEjE;;;;;;;GAOG;AAEH,8GAA8G;AAC9G,MAAM,CAAC,MAAM,sBAAsB,GAAG,8BAA8B,CAAA;AAEpE,gHAAgH;AAChH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAA;AAchC,MAAM,CAAC,M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ept apart from the composition itself (#520).
|
|
4
|
-
*
|
|
5
|
-
* The split is what lets the dashboard render the prompt in the browser: a
|
|
6
|
-
* bundler that reaches `system-prompt.ts` must not find `node:fs` behind it, and
|
|
7
|
-
* `client.ts` promises exactly that. Everything here takes a `dir` and hands back
|
|
8
|
-
* a string, which the pure side takes as plain input.
|
|
9
|
-
*/
|
|
10
|
-
/** The user's system prompt file, read from the workspace root. */
|
|
11
|
-
export declare const SYSTEM_PROMPT_FILE = "SYSTEM.md";
|
|
12
|
-
/**
|
|
13
|
-
* Read the user's system prompt from {@link SYSTEM_PROMPT_FILE} at the workspace
|
|
14
|
-
* root. Returns `undefined` when the file is absent or empty, so the caller falls
|
|
15
|
-
* back to the built-in default alone.
|
|
16
|
-
*/
|
|
17
|
-
export declare function loadUserSystemPrompt(dir: string, file?: string): Promise<string | undefined>;
|
|
18
|
-
//# sourceMappingURL=system-prompt-file.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system-prompt-file.d.ts","sourceRoot":"","sources":["../src/system-prompt-file.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,cAAc,CAAA;AAE7C;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAA2B,GAChC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAO7B"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { readFile } from 'node:fs/promises';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
|
-
/**
|
|
4
|
-
* Reading the user's own `SYSTEM.md` off disk — the one Node-bound half of the
|
|
5
|
-
* system prompt, kept apart from the composition itself (#520).
|
|
6
|
-
*
|
|
7
|
-
* The split is what lets the dashboard render the prompt in the browser: a
|
|
8
|
-
* bundler that reaches `system-prompt.ts` must not find `node:fs` behind it, and
|
|
9
|
-
* `client.ts` promises exactly that. Everything here takes a `dir` and hands back
|
|
10
|
-
* a string, which the pure side takes as plain input.
|
|
11
|
-
*/
|
|
12
|
-
/** The user's system prompt file, read from the workspace root. */
|
|
13
|
-
export const SYSTEM_PROMPT_FILE = 'SYSTEM.md';
|
|
14
|
-
/**
|
|
15
|
-
* Read the user's system prompt from {@link SYSTEM_PROMPT_FILE} at the workspace
|
|
16
|
-
* root. Returns `undefined` when the file is absent or empty, so the caller falls
|
|
17
|
-
* back to the built-in default alone.
|
|
18
|
-
*/
|
|
19
|
-
export async function loadUserSystemPrompt(dir, file = SYSTEM_PROMPT_FILE) {
|
|
20
|
-
try {
|
|
21
|
-
const content = (await readFile(join(dir, file), 'utf8')).trim();
|
|
22
|
-
return content || undefined;
|
|
23
|
-
}
|
|
24
|
-
catch {
|
|
25
|
-
return undefined;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=system-prompt-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system-prompt-file.js","sourceRoot":"","sources":["../src/system-prompt-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC;;;;;;;;GAQG;AAEH,mEAAmE;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAA;AAE7C;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,GAAW,EACX,IAAI,GAAW,kBAAkB;IAEjC,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;QAChE,OAAO,OAAO,IAAI,SAAS,CAAA;IAC7B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAA;IAClB,CAAC;AACH,CAAC"}
|
package/dist/system-prompt.d.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The system prompt (#326), verbatim, as a template. It supersedes the
|
|
3
|
-
* anti-lazy-pill (#297/#301) it grew out of: the prompt is analyzed first — an
|
|
4
|
-
* ambiguous one becomes a ranked `showChoices()` list, a
|
|
5
|
-
* large scope becomes a PLAN file to approve, a very large one also spins off a TODO
|
|
6
|
-
* backlog (#323), the work moves onto its own
|
|
7
|
-
* `agent-<session>` branch before the first change, and the alternatives flow
|
|
8
|
-
* rates problem "variability" before code is written.
|
|
9
|
-
*
|
|
10
|
-
* Two layers make it executable:
|
|
11
|
-
* - `${{ ... }}` fragments are JS evaluated against a {@link TfContext} (#350).
|
|
12
|
-
* - The trailing `# User prompt` section is the user-prompt slot; use
|
|
13
|
-
* {@link renderSystemPrompt} to render and split the two halves.
|
|
14
|
-
*
|
|
15
|
-
* The `<SHOW_*>` / `<AWAIT>` macros are interpreted by the agent itself (Rom's
|
|
16
|
-
* call on #326); the await protocol (#337/#339) pins how the stop-signal is
|
|
17
|
-
* emitted so the turn-boundary gates can detect it.
|
|
18
|
-
*
|
|
19
|
-
* The text lives in `prompts/system_prompt.md` (#551), not here. It is Rom's living
|
|
20
|
-
* doc: change it on #326 first, then sync the markdown.
|
|
21
|
-
*/
|
|
22
|
-
export declare const SYSTEM_PROMPT_TEMPLATE = "# System prompt\n\nSHOW_MD: Show it via `showMarkdown()`\nSHOW_CHOICES: Show it via `showChoices()`\nAWAIT: Stop, await user answer before resuming\nSESSION_NAME: the name of the session\nTODO_FILE: the agent queue, `TODO_AGENTS.md` \u2014 add an entry with `queue add \"<entry>\" --priority <N>` from the `queue` skill\n\n## Analyze the user prompt\n\nAnalyze the user prompt and follow the instructions below.\n\n### Ambiguous prompt\n\nIf it isn't clear what you should do (e.g. unclear scope, unclear user prompt), make a list of interpretations sorted by plausibility, <SHOW_CHOICES>, <AWAIT>\n\n### Scope\n\n- If the scope of what you'll work on is *large*, create a `PLAN_<SESSION_NAME>.agent.md` of what you'll work on, <SHOW_MD>, <AWAIT>\n- If the scope is potentially *very large* (e.g. spans over many hours/days of work), consider adding entries to <TODO_FILE> (backlog of follow-up tasks) and show new entries <SHOW_MD>\n\n\n## Before starting changes\n\nDo the following before applying your first change.\n\n### Session name\n\n1. Create a <SESSION_NAME> as a string [a-z0-9-]+ that succinctly represents the intention of the user prompt\n2. Name your branch after it: use the `branches` skill, which says how. Where that skill is not available, the \"Branch management\" section below says how instead. If the name you end up with differs, that is your <SESSION_NAME> from now on\n\n\n## Before applying changes\n\nDo the following before applying changes \u2014 do it again anytime you make new changes.\n\n### Alternatives\n\nMeasure \"variability\":\n- List all high-level problems that you're about to solve\n- Give a rating to each problem (from 0 to 10) following this criteria: is there an obviously optimal way to solve the problem (10), or is it highly unclear whether the problem can be solved in a better way (0)?\n- Explore and suggest alternatives for problems with a low rating\n- For each problem that has alternatives: list all alternatives sorted in a sensible order, <SHOW_CHOICES>, <AWAIT>\n\n\n## After applying changes\n\nAfter you're done, decide: is <SESSION_NAME> finished, with no work left to do?\n- Yes: call setReadyForMerge() \u2014 required, the work is never merged without it\n- No: don't call it; say what's left instead\n\n\n\n# User prompt\n\n${{tf.prompt}}";
|
|
23
|
-
/**
|
|
24
|
-
* The `tf` context the templates' `${{...}}` fragments read (#326/#350). One shape across
|
|
25
|
-
* the prompts; each reads the subset it needs. `session_name` is the on-before-mergeable
|
|
26
|
-
* prompt's (#556), and is snake_case because the doc writes it that way.
|
|
27
|
-
*/
|
|
28
|
-
export interface TfContext {
|
|
29
|
-
/** The user's prompt (the session's intent, or the typed prompt): fills `${{tf.prompt}}`. */
|
|
30
|
-
prompt: string;
|
|
31
|
-
/**
|
|
32
|
-
* The session name, read off the agent's branch (#1725) once it named it. Only the
|
|
33
|
-
* on-before-mergeable prompt reads it, never the system prompt: the name exists before the agent
|
|
34
|
-
* makes changes and is read afterwards, so it is not chicken-and-egg.
|
|
35
|
-
*/
|
|
36
|
-
session_name?: string | undefined;
|
|
37
|
-
}
|
|
38
|
-
/** A project-context document: a repo-root path and the one-line gloss shown beside it (#559). */
|
|
39
|
-
export interface ContextDoc {
|
|
40
|
-
path: string;
|
|
41
|
-
comment: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* The business-knowledge docs (#537): what the repo has learned about itself, which the
|
|
45
|
-
* agent both reads at the start of an agent and folds new knowledge back into at merge. The
|
|
46
|
-
* on-before-mergeable prompt's `## Business knowledge` section names this exact set, so the
|
|
47
|
-
* agent is never told to read one set of files and update another (pinned by a test). A
|
|
48
|
-
* subset of {@link CONTEXT_DOCS}.
|
|
49
|
-
*/
|
|
50
|
-
export declare const BUSINESS_KNOWLEDGE_DOCS: readonly ContextDoc[];
|
|
51
|
-
/**
|
|
52
|
-
* Everything the agent keeps in context when it starts (#683), which
|
|
53
|
-
* {@link systemPromptBlock} renders as the `Context:` bullets. A superset of
|
|
54
|
-
* {@link BUSINESS_KNOWLEDGE_DOCS}: it adds `GOAL.md`, `BUSINESS_LOGIC.md`, and the
|
|
55
|
-
* roadmap/queue pointers the agent reads but does *not* fold knowledge back into — the tickets
|
|
56
|
-
* (the potential work, the `tickets` skill's) and the agent queue (the `queue` skill's) (#1748):
|
|
57
|
-
* they live on the `agent-data` branch, and each skill says how to read and change its own and
|
|
58
|
-
* what the format is.
|
|
59
|
-
* Repo-root paths, because that is the agent's cwd. README is left out: a repo's own `README.md`
|
|
60
|
-
* already covers the overview.
|
|
61
|
-
*/
|
|
62
|
-
export declare const CONTEXT_DOCS: readonly ContextDoc[];
|
|
63
|
-
/** The two halves of the rendered {@link SYSTEM_PROMPT_TEMPLATE}. */
|
|
64
|
-
export interface RenderedSystemPrompt {
|
|
65
|
-
/** The `# System prompt` half: frames the session's system channel. */
|
|
66
|
-
system: string;
|
|
67
|
-
/** The `# User prompt` half: the rendered user-prompt slot (`${{tf.prompt}}` plus any framing Rom adds around it). */
|
|
68
|
-
user: string;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Render the built-in system prompt against a {@link TfContext} and split it at
|
|
72
|
-
* the `# User prompt` heading. The split happens on the *template*, before
|
|
73
|
-
* rendering, so a user prompt that itself contains the heading can never move
|
|
74
|
-
* the boundary.
|
|
75
|
-
*/
|
|
76
|
-
export declare function renderSystemPrompt(tf?: TfContext): RenderedSystemPrompt;
|
|
77
|
-
/** Inputs to {@link systemPromptBlock}. */
|
|
78
|
-
export interface SystemPromptOptions {
|
|
79
|
-
/** Remove the built-in #326 system prompt. Default `false` — it is included. */
|
|
80
|
-
vanilla?: boolean | undefined;
|
|
81
|
-
/** The user's own system prompt (e.g. from `SYSTEM.md`), injected after the built-in one. */
|
|
82
|
-
user?: string | undefined;
|
|
83
|
-
/** Context for the template's `${{...}}` fragments. Default: {@link DEFAULT_TF}. */
|
|
84
|
-
tf?: TfContext | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Directories the user picked as in-context (#439/#314). The agent can reach every
|
|
87
|
-
* registered repo, so this narrows its focus: it prepends one `Context: <dirs>` line to
|
|
88
|
-
* the block. Empty/absent adds nothing.
|
|
89
|
-
*/
|
|
90
|
-
context?: readonly string[] | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* Transparent mode (#625): drop *everything* framework-authored from the system channel —
|
|
93
|
-
* the built-in prompt, the knowledge docs, AND the emit protocols — so the agent receives an
|
|
94
|
-
* empty system channel, byte-identical to raw `claude -p <prompt>`. This is stronger than
|
|
95
|
-
* `--vanilla` (which keeps the AWAIT/SIGNAL emit contract so the agent can still drive the
|
|
96
|
-
* dashboard's gates); transparent means there is no framework behavior left to signal to.
|
|
97
|
-
* Short-circuits {@link composeAgentSystem}, so it overrides every other option here.
|
|
98
|
-
*/
|
|
99
|
-
transparent?: boolean | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* This agent has a real browser attached (#824). Adds the section telling the agent so: the
|
|
102
|
-
* tools are wired through MCP, which the agent discovers, but nothing otherwise says to prefer
|
|
103
|
-
* them — so it reaches for `WebFetch`, and the browser (and its preview) sits unused.
|
|
104
|
-
*/
|
|
105
|
-
browser?: boolean | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* This agent hands off to a remote session whose workspace nothing local sees (#1231), so it
|
|
108
|
-
* has to land its own work: appends {@link HANDS_OFF_PROTOCOL}, the commit-and-open-a-PR rule.
|
|
109
|
-
*/
|
|
110
|
-
handsOff?: boolean | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* This agent runs in a checkout The Framework created, with `branches` on its PATH
|
|
113
|
-
* (#1725) — a daemon-started agent on this machine. It gets the `branches` skill; any
|
|
114
|
-
* other agent (a plain terminal run in the user's own checkout, a GitHub Actions runner, a cloud
|
|
115
|
-
* session) gets the section that has it branch with git itself.
|
|
116
|
-
*/
|
|
117
|
-
ownedCheckout?: boolean | undefined;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Compose the system-prompt block injected into every prompt: the built-in #326
|
|
121
|
-
* prompt (unless removed) followed by the user's own prompt. Additive, so a repo
|
|
122
|
-
* can keep the built-in *and* add its instructions, remove it and keep only its
|
|
123
|
-
* own, or leave both off. Returns `''` when there is nothing to inject. Only the
|
|
124
|
-
* template's system half lands here; the user-prompt half is the caller's to
|
|
125
|
-
* deliver (see {@link renderSystemPrompt}).
|
|
126
|
-
*/
|
|
127
|
-
export declare function systemPromptBlock(opts?: SystemPromptOptions): string;
|
|
128
|
-
/** Inputs to {@link composeAgentSystem}. */
|
|
129
|
-
export type AgentSystemOptions = SystemPromptOptions;
|
|
130
|
-
/**
|
|
131
|
-
* Assemble an agent's full system channel — the single place it is composed (#501), so the
|
|
132
|
-
* build path and the direct-prompt path, before D2 collapsed them into one {@link runAgent}
|
|
133
|
-
* cannot drift. That drift is exactly what dropped the session-action (#326) layer from `--vanilla`
|
|
134
|
-
* builds (#500): the two sites each inlined the composition and one nested the protocols
|
|
135
|
-
* inside the built-in-prompt branch.
|
|
136
|
-
*
|
|
137
|
-
* Order is fixed: the built-in system prompt (#326) block (context / built-in prompt / user SYSTEM.md)
|
|
138
|
-
* first, then the emit protocols. Nothing else is appended — a build agent's system channel
|
|
139
|
-
* is exactly this (#547), which is what lets the dashboard show the whole prompt before an agent
|
|
140
|
-
* starts (#520). The protocols are otherwise unconditional — they are the *emit contract* (how
|
|
141
|
-
* the agent signals an awaited choice and the setReadyForMerge() lifecycle),
|
|
142
|
-
* not prompt content — so the agent needs them even with the built-in prompt off (`--vanilla`).
|
|
143
|
-
*
|
|
144
|
-
* The one exception is transparent mode (#625): there is no framework behavior to signal to, so
|
|
145
|
-
* the whole channel is empty and the agent runs as raw `claude -p`.
|
|
146
|
-
*/
|
|
147
|
-
export declare function composeAgentSystem(opts?: AgentSystemOptions): string;
|
|
148
|
-
//# sourceMappingURL=system-prompt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../src/system-prompt.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,sBAAsB,ywEAAgB,CAAA;AAEnD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,6FAA6F;IAC7F,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAClC;AAKD,kGAAkG;AAClG,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAQD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,UAAU,EAA6C,CAAA;AAYtG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAiB7C,CAAA;AAED,qEAAqE;AACrE,MAAM,WAAW,oBAAoB;IACnC,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,sHAAsH;IACtH,IAAI,EAAE,MAAM,CAAA;CACb;AAID;;;;;GAKG;AACH,wBAAgB,kBAAkB,CA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