even-keel 0.2.4 → 0.3.0-rc.2
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/.claude-plugin/marketplace.json +16 -4
- package/.env.example +2 -2
- package/CHANGELOG.md +23 -0
- package/README.md +10 -8
- package/dist/src/account/aws.js +76 -0
- package/dist/src/account/azure.js +36 -0
- package/dist/src/account/cloud-errors.js +72 -0
- package/dist/src/account/cloud.js +335 -0
- package/dist/src/account/credit.js +49 -7
- package/dist/src/account/gcloud.js +71 -0
- package/dist/src/account/header-levels.js +3 -2
- package/dist/src/account/homes.js +49 -5
- package/dist/src/account/keycheck.js +57 -4
- package/dist/src/account/management.js +41 -0
- package/dist/src/account/model.js +41 -18
- package/dist/src/account/network.js +8 -3
- package/dist/src/account/service-defaults.js +12 -3
- package/dist/src/account/settingsGuard.js +92 -0
- package/dist/src/account/settingsGuardStrip.js +36 -0
- package/dist/src/account/settingsHook.js +15 -0
- package/dist/src/account/settingsLayer.js +190 -0
- package/dist/src/account/settingsUninstall.js +7 -0
- package/dist/src/account/share.js +23 -6
- package/dist/src/account/spend.js +155 -0
- package/dist/src/account/watcher.js +189 -24
- package/dist/src/agent/adapters.js +13 -2
- package/dist/src/agent/env.js +22 -7
- package/dist/src/agent/model-slots.js +32 -0
- package/dist/src/agent/process.js +32 -6
- package/dist/src/agent/projectRules.js +3 -2
- package/dist/src/agent/providers.js +18 -1
- package/dist/src/agent/scripted.js +319 -0
- package/dist/src/agent/windows.js +35 -3
- package/dist/src/badge/action.js +41 -0
- package/dist/src/badge/check.js +60 -0
- package/dist/src/badge/collect.js +174 -0
- package/dist/src/badge/dates.js +29 -0
- package/dist/src/badge/drawing.js +3 -0
- package/dist/src/badge/fonts.generated.js +11 -0
- package/dist/src/badge/model.js +9 -0
- package/dist/src/badge/privacy.js +151 -0
- package/dist/src/badge/push.js +117 -0
- package/dist/src/badge/render.js +490 -0
- package/dist/src/badge/settings.js +43 -0
- package/dist/src/badge/stats.js +31 -0
- package/dist/src/badge/status.js +57 -0
- package/dist/src/badge/text.js +52 -0
- package/dist/src/badge/theme.js +54 -0
- package/dist/src/badge/translate.js +162 -0
- package/dist/src/builtin/adapter.js +40 -0
- package/dist/src/builtin/control.js +179 -0
- package/dist/src/builtin/editor.js +117 -0
- package/dist/src/builtin/export-store.js +67 -0
- package/dist/src/builtin/export.js +202 -0
- package/dist/src/builtin/exporting.js +25 -0
- package/dist/src/builtin/files.js +155 -0
- package/dist/src/builtin/links.js +25 -0
- package/dist/src/builtin/model.js +59 -0
- package/dist/src/builtin/routes.js +108 -0
- package/dist/src/builtin/source.js +240 -0
- package/dist/src/builtin/store.js +520 -0
- package/dist/src/builtin/switch.js +77 -0
- package/dist/src/chain/answers.js +27 -0
- package/dist/src/chain/archive.js +0 -1
- package/dist/src/chain/dispatcher.js +105 -12
- package/dist/src/chain/fence.js +30 -0
- package/dist/src/chain/handover.js +27 -9
- package/dist/src/chain/launches.js +4 -4
- package/dist/src/chain/limitNotice.js +1 -1
- package/dist/src/chain/lists.js +42 -6
- package/dist/src/chain/log.js +3 -1
- package/dist/src/chain/maincheck.js +116 -10
- package/dist/src/chain/mainci.js +26 -7
- package/dist/src/chain/mainfix.js +12 -1
- package/dist/src/chain/milestone-sequence.js +40 -0
- package/dist/src/chain/milestones.js +3 -2
- package/dist/src/chain/order.js +20 -5
- package/dist/src/chain/overage.js +7 -2
- package/dist/src/chain/places.js +1 -1
- package/dist/src/chain/prompts.js +64 -6
- package/dist/src/chain/relay.js +35 -14
- package/dist/src/chain/reviews.js +8 -4
- package/dist/src/chain/rules.js +40 -11
- package/dist/src/chain/snapshots.js +2 -0
- package/dist/src/chain/start.js +21 -1
- package/dist/src/chain/store.js +16 -6
- package/dist/src/chain/unchanged.js +68 -5
- package/dist/src/ci/adapters.js +3 -1
- package/dist/src/ci/forgejo-profile.js +3 -24
- package/dist/src/ci/forgejo.js +2 -1
- package/dist/src/ci/github.js +10 -2
- package/dist/src/ci/gitlab.js +10 -3
- package/dist/src/ci/http.js +4 -0
- package/dist/src/ci/model.js +79 -6
- package/dist/src/ci/report.js +6 -3
- package/dist/src/ci/shared.js +9 -0
- package/dist/src/ci/verdict.js +18 -7
- package/dist/src/ci/watcher.js +95 -23
- package/dist/src/ci/wiring.js +15 -0
- package/dist/src/claude/adapter.js +34 -8
- package/dist/src/claude/cli.js +32 -8
- package/dist/src/claude/instructions.js +42 -7
- package/dist/src/claude/oauth.js +67 -0
- package/dist/src/claude/sdk/host.js +9 -4
- package/dist/src/claude/tree.js +45 -14
- package/dist/src/cli-check/run.js +3 -3
- package/dist/src/cli-check/support.js +4 -4
- package/dist/src/cli.js +54 -17
- package/dist/src/codex/adapter.js +2 -0
- package/dist/src/codex/cli.js +34 -18
- package/dist/src/codex/protection.js +17 -11
- package/dist/src/codex/rollout.js +9 -2
- package/dist/src/codex/turns.js +6 -3
- package/dist/src/codex/window.js +14 -0
- package/dist/src/config-form.js +63 -7
- package/dist/src/config-store.js +29 -7
- package/dist/src/config.js +45 -15
- package/dist/src/copilot/adapter.js +2 -0
- package/dist/src/copilot/cli.js +8 -11
- package/dist/src/copilot/home.js +1 -1
- package/dist/src/copilot/transcript.js +1 -2
- package/dist/src/demo/agent.js +97 -0
- package/dist/src/demo/model.js +6 -0
- package/dist/src/demo/scenario.js +139 -0
- package/dist/src/demo/service.js +161 -0
- package/dist/src/diagnostics/stop.js +16 -0
- package/dist/src/env-file.js +4 -0
- package/dist/src/error-reason.js +10 -0
- package/dist/src/event-log/log.js +97 -0
- package/dist/src/event-log/model.js +1 -0
- package/dist/src/event-log/page-events.js +71 -0
- package/dist/src/event-log/watch.js +236 -0
- package/dist/src/events.js +57 -1
- package/dist/src/forgejo/adapter.js +49 -0
- package/dist/src/forgejo/api.js +95 -0
- package/dist/src/forgejo/editor.js +196 -0
- package/dist/src/forgejo/model.js +90 -0
- package/dist/src/forgejo/profile.js +24 -0
- package/dist/src/forgejo/source.js +292 -0
- package/dist/src/forgejo/trust.js +45 -0
- package/dist/src/git/branches.js +88 -0
- package/dist/src/git/clone-progress.js +168 -0
- package/dist/src/git/remote-run.js +162 -0
- package/dist/src/git/run.js +6 -2
- package/dist/src/git/setup.js +4 -5
- package/dist/src/git/slot.js +9 -7
- package/dist/src/git/worktree.js +13 -10
- package/dist/src/github/adapter.js +1 -0
- package/dist/src/github/editor.js +214 -0
- package/dist/src/github/edits.js +31 -0
- package/dist/src/github/model.js +10 -4
- package/dist/src/github/source.js +66 -15
- package/dist/src/gitlab/adapter.js +1 -0
- package/dist/src/gitlab/api.js +4 -2
- package/dist/src/gitlab/editor.js +248 -0
- package/dist/src/gitlab/model.js +43 -4
- package/dist/src/gitlab/source.js +113 -22
- package/dist/src/guard.js +26 -10
- package/dist/src/hotkeys.js +51 -0
- package/dist/src/huly/adapter.js +1 -0
- package/dist/src/huly/collab.js +15 -0
- package/dist/src/huly/editor.js +241 -0
- package/dist/src/huly/marks.js +48 -0
- package/dist/src/huly/model.js +22 -5
- package/dist/src/huly/source.js +111 -48
- package/dist/src/intake/github.js +10 -0
- package/dist/src/intake/intake.js +41 -1
- package/dist/src/intake/model.js +8 -3
- package/dist/src/jira/adapter.js +1 -0
- package/dist/src/jira/api.js +28 -7
- package/dist/src/jira/editor.js +243 -0
- package/dist/src/jira/model.js +19 -5
- package/dist/src/jira/source.js +41 -9
- package/dist/src/jobs/model.js +1 -0
- package/dist/src/jobs/runner.js +236 -0
- package/dist/src/limits/chatgpt.js +11 -0
- package/dist/src/limits/copilot.js +51 -18
- package/dist/src/limits/model.js +62 -8
- package/dist/src/limits/overage-session.js +2 -2
- package/dist/src/limits/overage.js +8 -5
- package/dist/src/limits/reset.js +7 -0
- package/dist/src/limits/usage.js +60 -5
- package/dist/src/linear/adapter.js +1 -0
- package/dist/src/linear/editor.js +220 -0
- package/dist/src/linear/estimate.js +32 -0
- package/dist/src/linear/model.js +24 -3
- package/dist/src/linear/source.js +74 -21
- package/dist/src/main.js +53 -23
- package/dist/src/notice/en-advice.js +28 -0
- package/dist/src/notice/en-review.js +29 -0
- package/dist/src/notice/en-startup.js +21 -0
- package/dist/src/notice/en-values.js +47 -0
- package/dist/src/notice/en.js +265 -96
- package/dist/src/notice/kinds.js +26 -0
- package/dist/src/notice/notice.js +49 -6
- package/dist/src/npm-access.js +58 -0
- package/dist/src/opencode/adapter.js +4 -2
- package/dist/src/opencode/cli.js +34 -25
- package/dist/src/opencode/go.js +51 -0
- package/dist/src/opencode/home.js +41 -8
- package/dist/src/opencode/transcript.js +5 -5
- package/dist/src/opencode/usage.js +10 -4
- package/dist/src/opencode/window.js +54 -0
- package/dist/src/packages/check.js +11 -5
- package/dist/src/packages/gateway.js +76 -6
- package/dist/src/packages/launch.js +6 -3
- package/dist/src/packages/model.js +61 -2
- package/dist/src/packages/npm.js +55 -6
- package/dist/src/packages/plugins.js +23 -2
- package/dist/src/packages/service.js +104 -17
- package/dist/src/packages/settings.js +13 -0
- package/dist/src/packages/store.js +1 -1
- package/dist/src/paths.js +32 -0
- package/dist/src/profiles/control.js +1 -0
- package/dist/src/profiles/model.js +2 -2
- package/dist/src/profiles/oauth-error.js +1 -9
- package/dist/src/profiles/oauth-response.js +2 -0
- package/dist/src/profiles/service.js +46 -4
- package/dist/src/profiles/store.js +10 -5
- package/dist/src/projects/add.js +25 -2
- package/dist/src/projects/branch-control.js +86 -0
- package/dist/src/projects/branch-move.js +39 -0
- package/dist/src/projects/branch.js +13 -0
- package/dist/src/projects/check.js +80 -36
- package/dist/src/projects/creation.js +166 -0
- package/dist/src/projects/git-found.js +62 -0
- package/dist/src/projects/git-mode.js +116 -0
- package/dist/src/projects/own-folder.js +8 -0
- package/dist/src/projects/place.js +235 -0
- package/dist/src/projects/remote-branches.js +24 -0
- package/dist/src/projects/target-read.js +95 -0
- package/dist/src/projects/target.js +56 -0
- package/dist/src/review/events.js +1 -1
- package/dist/src/review/note.js +58 -0
- package/dist/src/review/open.js +3 -3
- package/dist/src/review/wiring.js +25 -3
- package/dist/src/secrets/catalog.js +4 -1
- package/dist/src/server-control.js +1 -0
- package/dist/src/server-guard.js +4 -0
- package/dist/src/server-request.js +88 -10
- package/dist/src/server-response.js +143 -0
- package/dist/src/server-security.js +16 -0
- package/dist/src/server.js +105 -117
- package/dist/src/service/account-packages.js +116 -0
- package/dist/src/service/accounts.js +109 -81
- package/dist/src/service/badge-private.js +62 -0
- package/dist/src/service/badge.js +203 -0
- package/dist/src/service/chain-prompts.js +87 -0
- package/dist/src/service/chain.js +120 -190
- package/dist/src/service/cleanup.js +114 -0
- package/dist/src/service/cli-check.js +1 -1
- package/dist/src/service/closing.js +57 -0
- package/dist/src/service/demo.js +46 -0
- package/dist/src/service/hosting.js +239 -18
- package/dist/src/service/install-check.js +78 -0
- package/dist/src/service/lifecycle.js +4 -7
- package/dist/src/service/stats.js +3 -3
- package/dist/src/service/trackers.js +27 -1
- package/dist/src/service/vocabulary.js +17 -0
- package/dist/src/service.js +215 -19
- package/dist/src/sessions/agents.js +10 -2
- package/dist/src/sessions/approvals.js +1 -1
- package/dist/src/sessions/ask.js +32 -6
- package/dist/src/sessions/boot.js +7 -0
- package/dist/src/sessions/chat.js +16 -4
- package/dist/src/sessions/commandPrompt.js +13 -6
- package/dist/src/sessions/history.js +2 -0
- package/dist/src/sessions/keepwarm.js +1 -1
- package/dist/src/sessions/launch.js +21 -25
- package/dist/src/sessions/lingering.js +30 -7
- package/dist/src/sessions/mail.js +7 -6
- package/dist/src/sessions/mailRelay.js +2 -2
- package/dist/src/sessions/mailbox.js +1 -1
- package/dist/src/sessions/monitor.js +47 -3
- package/dist/src/sessions/note.js +44 -19
- package/dist/src/sessions/permission.js +32 -10
- package/dist/src/sessions/protection.js +38 -14
- package/dist/src/sessions/rare.js +130 -0
- package/dist/src/sessions/runs-store.js +20 -0
- package/dist/src/sessions/runs.js +140 -0
- package/dist/src/sessions/tail.js +4 -0
- package/dist/src/sessions/transcript.js +64 -8
- package/dist/src/settings/defaults.js +1 -0
- package/dist/src/settings/registry.js +86 -24
- package/dist/src/settings/store.js +14 -5
- package/dist/src/setup.js +5 -0
- package/dist/src/shown-work.js +22 -0
- package/dist/src/state/settings.js +1 -0
- package/dist/src/stats/base-sql.js +7 -1
- package/dist/src/stats/checkpoint.js +8 -5
- package/dist/src/stats/model.js +1 -1
- package/dist/src/stats/reader.js +50 -25
- package/dist/src/stats/rules-reader.js +6 -2
- package/dist/src/stats/steps-reader.js +5 -0
- package/dist/src/stats/tally-schema.js +1 -1
- package/dist/src/storage/backup-model.js +3 -0
- package/dist/src/storage/backup-schedule.js +197 -0
- package/dist/src/storage/backup-worker.js +9 -0
- package/dist/src/storage/backup.js +141 -0
- package/dist/src/storage/browser-hotkeys.js +25 -0
- package/dist/src/storage/context-windows.js +39 -0
- package/dist/src/storage/copy.js +44 -13
- package/dist/src/storage/database.js +343 -4
- package/dist/src/storage/left-folders.js +16 -0
- package/dist/src/storage/migrations.js +98 -1
- package/dist/src/storage/owner.js +12 -7
- package/dist/src/storage/schema.js +1 -1
- package/dist/src/storage/startup.js +25 -0
- package/dist/src/storage/state-files.js +1 -1
- package/dist/src/storage/vacuum.js +29 -0
- package/dist/src/taskmcp/args.js +146 -0
- package/dist/src/taskmcp/calls.js +741 -0
- package/dist/src/taskmcp/downloads.js +87 -0
- package/dist/src/taskmcp/files.js +58 -0
- package/dist/src/taskmcp/retries.js +57 -0
- package/dist/src/taskmcp/server.js +81 -0
- package/dist/src/taskmcp/tools.js +128 -0
- package/dist/src/taskmcp/vocabulary.js +75 -0
- package/dist/src/tools/panel.js +41 -8
- package/dist/src/tools/sessionSettings.js +2 -1
- package/dist/src/tools/settings.js +16 -3
- package/dist/src/tracker/adapters.js +3 -1
- package/dist/src/tracker/card.js +16 -12
- package/dist/src/tracker/close.js +57 -0
- package/dist/src/tracker/closer.js +18 -15
- package/dist/src/tracker/closes.js +6 -0
- package/dist/src/tracker/control.js +32 -13
- package/dist/src/tracker/diagnostics.js +5 -2
- package/dist/src/tracker/editor.js +108 -0
- package/dist/src/tracker/export-target.js +30 -0
- package/dist/src/tracker/export.js +168 -0
- package/dist/src/tracker/health.js +5 -0
- package/dist/src/tracker/link.js +127 -24
- package/dist/src/tracker/markers.js +7 -0
- package/dist/src/tracker/model.js +0 -12
- package/dist/src/tracker/parents.js +8 -0
- package/dist/src/tracker/questions.js +24 -3
- package/dist/src/tracker/readers.js +19 -3
- package/dist/src/tracker/source.js +5 -0
- package/dist/src/tracker/start.js +61 -6
- package/dist/src/tracker/templates.js +102 -0
- package/dist/src/tracker/trackers.js +20 -10
- package/dist/src/updates/runner.js +1 -1
- package/dist/src/updates/settle.js +11 -3
- package/dist/src/updates/updater.js +4 -4
- package/dist/tally/src/builtin-tasks.js +45 -0
- package/dist/tally/src/catalogue.js +70 -0
- package/dist/tally/src/classify.js +1 -0
- package/dist/tally/src/collect.js +33 -10
- package/dist/tally/src/copilot.js +1 -0
- package/dist/tally/src/db-classify.js +46 -0
- package/dist/tally/src/db.js +66 -60
- package/dist/tally/src/migrations/10-rework-label.sql +73 -0
- package/dist/tally/src/migrations/11-catalogue-prices.sql +53 -0
- package/dist/tally/src/migrations/12-key-spends.sql +30 -0
- package/dist/tally/src/migrations/13-normal-spans.sql +110 -0
- package/dist/tally/src/migrations/14-model-families.sql +25 -0
- package/dist/tally/src/migrations/15-task-moves.sql +32 -0
- package/dist/tally/src/migrations.js +1 -1
- package/dist/tally/src/opencode.js +1 -0
- package/dist/tally/src/parse.js +3 -0
- package/dist/tally/src/rollout.js +2 -1
- package/dist/tally/src/rule-hook-size.js +2 -1
- package/dist/tally/src/rule-hook.js +3 -0
- package/dist/tally/src/task-moves.js +32 -0
- package/dist/web/assets/BadgeDialog-Dx2EERWr.js +1 -0
- package/dist/web/assets/BadgeDialog-W0giN4k2.css +1 -0
- package/dist/web/assets/DescriptionEditor-BL_6314d.js +216 -0
- package/dist/web/assets/ProjectPackages-D-Hqs0sG.js +1 -0
- package/dist/web/assets/Select-B5xZpiCG.js +1 -0
- package/dist/web/assets/Select-CYemy5Na.css +1 -0
- package/dist/web/assets/TaskCard-B9EJ_Qa2.js +2 -0
- package/dist/web/assets/TaskCard-BV2lQojC.css +1 -0
- package/dist/web/assets/TranscriptWindow-BN6jSpev.css +1 -0
- package/dist/web/assets/TranscriptWindow-E8DxggYC.js +4 -0
- package/dist/web/assets/accountParts-c2gPSGKK.js +3 -0
- package/dist/web/assets/accountParts-tFRVownp.css +1 -0
- package/dist/web/assets/blocks-B03KxlgQ.js +12 -0
- package/dist/web/assets/blocks-Dx3DACiG.css +1 -0
- package/dist/web/assets/cardDrafts-Cb5dNpJ3.js +12 -0
- package/dist/web/assets/cardDrafts-izWnctoh.css +1 -0
- package/dist/web/assets/cardSide-63fNWHHv.css +1 -0
- package/dist/web/assets/cardSide-CIGvmTwG.js +2 -0
- package/dist/web/assets/description-C-o9LBbp.css +1 -0
- package/dist/web/assets/feedLine-Buzox_AA.js +1 -0
- package/dist/web/assets/feedLine-CBjZXWwX.css +1 -0
- package/dist/web/assets/hooks-DdmIE6gF.js +1 -0
- package/dist/web/assets/index-CkYiatZt.css +1 -0
- package/dist/web/assets/index-DELgEMlH.js +25 -0
- package/dist/web/assets/lib-B8qNeB0X.css +1 -0
- package/dist/web/assets/lib-C1i2rKJZ.js +18 -0
- package/dist/web/assets/overview-B7iEgjQD.css +1 -0
- package/dist/web/assets/overview-D9PUjFeR.js +7 -0
- package/dist/web/assets/packageGroups-B34vA6-0.js +1 -0
- package/dist/web/assets/packages-Dld4uH9X.css +1 -0
- package/dist/web/assets/react-dom-vGPErQYp.js +1 -0
- package/dist/web/assets/rules-BVB-I2tg.js +1 -0
- package/dist/web/assets/rules-Bgil4ZBp.css +1 -0
- package/dist/web/assets/secret-CmK85pY6.js +1 -0
- package/dist/web/assets/secret-DldsC74x.css +1 -0
- package/dist/web/assets/useFileDrop-eZtIxL1H.js +1 -0
- package/dist/web/assets/useHeightGlide-BmtdsmN0.css +1 -0
- package/dist/web/assets/useHeightGlide-DQvvOoIL.js +3 -0
- package/dist/web/assets/useRowFocus-CwOoEmzD.js +1 -0
- package/dist/web/index.html +30 -9
- package/dist/web/theme.js +6 -0
- package/even-keel.config.example.json +5 -4
- package/package.json +21 -5
- package/plugins/agent-bridge/.claude-plugin/plugin.json +16 -0
- package/plugins/{checkpoint → agent-bridge}/README.md +20 -6
- package/plugins/agent-bridge/hooks/addressban.mjs +64 -0
- package/plugins/{checkpoint → agent-bridge}/hooks/checkpoint-mark.mjs +4 -3
- package/plugins/{checkpoint → agent-bridge}/hooks/evenkeel.mjs +28 -11
- package/plugins/agent-bridge/hooks/git-ban.mjs +31 -0
- package/plugins/agent-bridge/hooks/gitban.mjs +83 -0
- package/plugins/agent-bridge/hooks/handoff.mjs +20 -0
- package/plugins/{checkpoint → agent-bridge}/hooks/hooks.json +10 -0
- package/plugins/{checkpoint → agent-bridge}/hooks/mailbox.mjs +6 -3
- package/plugins/{checkpoint → agent-bridge}/hooks/nudges.mjs +11 -7
- package/plugins/{checkpoint/opencode/checkpoint.mjs → agent-bridge/opencode/agent-bridge.mjs} +15 -9
- package/plugins/forgejo/.claude-plugin/plugin.json +7 -0
- package/plugins/forgejo/.mcp.json +13 -0
- package/plugins/forgejo/README.md +23 -0
- package/plugins/forgejo/skills/task/SKILL.md +55 -0
- package/plugins/github/.claude-plugin/plugin.json +1 -1
- package/plugins/github/README.md +1 -1
- package/plugins/github/skills/task/SKILL.md +2 -2
- package/plugins/gitlab/.claude-plugin/plugin.json +1 -1
- package/plugins/gitlab/skills/task/SKILL.md +2 -2
- package/plugins/huly/.claude-plugin/plugin.json +1 -1
- package/plugins/huly/skills/task/SKILL.md +4 -4
- package/plugins/jira/.claude-plugin/plugin.json +1 -1
- package/plugins/jira/skills/task/SKILL.md +3 -3
- package/plugins/linear/.claude-plugin/plugin.json +1 -1
- package/plugins/linear/README.md +1 -1
- package/plugins/linear/skills/task/SKILL.md +3 -3
- package/plugins/tally/.claude-plugin/plugin.json +1 -1
- package/plugins/tally/skills/session-audit/SKILL.md +5 -5
- package/plugins/tasks/.claude-plugin/plugin.json +9 -0
- package/plugins/tasks/.mcp.json +8 -0
- package/plugins/tasks/README.md +42 -0
- package/plugins/tasks/hooks/calibration-context.mjs +45 -0
- package/plugins/tasks/hooks/calibration.mjs +92 -0
- package/plugins/tasks/hooks/check-service.mjs +15 -0
- package/plugins/tasks/hooks/hooks.json +28 -0
- package/plugins/tasks/hooks/service-check.mjs +34 -0
- package/plugins/tasks/hooks/show-calibration.mjs +19 -0
- package/plugins/tasks/opencode/tasks.mjs +28 -0
- package/plugins/tasks/skills/split/SKILL.md +29 -0
- package/plugins/tasks/skills/task/SKILL.md +61 -0
- package/service/EvenKeelTray.cs +4 -20
- package/service/install.sh +25 -2
- package/service/uninstall.ps1 +16 -0
- package/service/uninstall.sh +10 -0
- package/tally/tally.config.json +2 -0
- package/dist/web/assets/Loader-CRe-GCoI.js +0 -31
- package/dist/web/assets/Loader-DJJTBsaF.css +0 -1
- package/dist/web/assets/TaskCard-Br2QIllc.css +0 -1
- package/dist/web/assets/TaskCard-C2xeaHWD.js +0 -2
- package/dist/web/assets/TranscriptWindow-B9zsSmIg.css +0 -1
- package/dist/web/assets/TranscriptWindow-COL_WTrF.js +0 -4
- package/dist/web/assets/feedLine-D0lnFyBZ.js +0 -1
- package/dist/web/assets/index-DQje9Nfo.js +0 -25
- package/dist/web/assets/index-mDBlgk2Y.css +0 -1
- package/dist/web/assets/media-BlW-XXN0.js +0 -1
- package/dist/web/assets/media-DR8nAbPy.css +0 -1
- package/dist/web/assets/useModels-1oIk0mDX.css +0 -1
- package/dist/web/assets/useModels-DRW63oka.js +0 -15
- package/plugins/checkpoint/.claude-plugin/plugin.json +0 -9
- package/plugins/checkpoint/hooks/handoff.mjs +0 -9
- /package/plugins/{checkpoint → agent-bridge}/hooks/context-checkpoint.mjs +0 -0
- /package/plugins/{checkpoint → agent-bridge}/hooks/merge-check.mjs +0 -0
- /package/plugins/{checkpoint → agent-bridge}/hooks/merges.mjs +0 -0
- /package/plugins/{checkpoint → agent-bridge}/hooks/permission.mjs +0 -0
- /package/plugins/{checkpoint → agent-bridge}/hooks/schema-hint.mjs +0 -0
- /package/plugins/{checkpoint → agent-bridge}/hooks/standard-gate.mjs +0 -0
- /package/plugins/{checkpoint → agent-bridge}/hooks/standards.mjs +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { isCallTimeout } from '../claude/calls.js';
|
|
2
|
+
import { runGit } from '../git/run.js';
|
|
3
|
+
import { slotPaths } from '../git/slot.js';
|
|
4
|
+
import { removeLeftFolder, taskPlace } from '../git/worktree.js';
|
|
5
|
+
import { englishOf, notice, noticeOf } from '../notice/notice.js';
|
|
6
|
+
import { isInside } from '../paths.js';
|
|
7
|
+
import { isLive } from '../sessions/agents.js';
|
|
8
|
+
import { rareEvents } from '../sessions/rare.js';
|
|
9
|
+
/** How long a cleanup after Done keeps trying a stop that timed out in the folder's queue before it warns (EKR-99). */
|
|
10
|
+
export const STOP_RETRY_MS = 5 * 60_000;
|
|
11
|
+
/**
|
|
12
|
+
* Stops the task's sessions that are not mid-turn; the rest are kept in `lingering`, to be stopped once their turn ends
|
|
13
|
+
* (BTN-616). A stop that timed out waiting for the account folder's queue is kept too, to be tried again (EKR-99):
|
|
14
|
+
* `retrying` says so, and the cleanup then leaves the worktree folder the session holds to `deferLeftFolder`.
|
|
15
|
+
* `shared` — a project without git (BTN-883): every task works in `repo` itself, so only the sessions the launch log
|
|
16
|
+
* gives the task are its own.
|
|
17
|
+
*/
|
|
18
|
+
export async function stopTaskSessions(ctx, project, repo, task, count, shared = false) {
|
|
19
|
+
const own = new Set(ctx.launches.filter((entry) => entry.task === task).map((entry) => entry.sessionId));
|
|
20
|
+
const slots = slotPaths(repo, count);
|
|
21
|
+
const inPlace = (agent) => shared
|
|
22
|
+
? isInside(agent.cwd, repo) && own.has(agent.sessionId)
|
|
23
|
+
: isInside(agent.cwd, taskPlace(repo, task).path) || (slots.some((slot) => isInside(agent.cwd, slot)) && own.has(agent.sessionId));
|
|
24
|
+
const sessions = ctx.agents.filter((agent) => agent.id !== undefined && isLive(agent) && inPlace(agent));
|
|
25
|
+
const warnings = [];
|
|
26
|
+
let retrying = false;
|
|
27
|
+
for (const agent of sessions) {
|
|
28
|
+
if (midTurn(agent)) {
|
|
29
|
+
ctx.lingering.keep(task, agent.sessionId, undefined, project);
|
|
30
|
+
rareEvents.once('17c', 'deferred', { ...agent, task, project }, `cleanup-deferred status=${agent.status}; will stop the session once its turn ends`);
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
try {
|
|
34
|
+
await ctx.stopIn(ctx.homeOf(agent.account ?? 'global'), { agentId: agent.id, sessionId: agent.sessionId });
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
if (!isCallTimeout(error)) {
|
|
38
|
+
warnings.push(notice('cleanup.sessionNotStopped', { session: agent.sessionId }, { cause: noticeOf(error) }));
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
ctx.lingering.keep(task, agent.sessionId, { project, until: Date.now() + STOP_RETRY_MS });
|
|
42
|
+
retrying = true;
|
|
43
|
+
console.log(`cleanup: the stop of the session ${agent.sessionId} of ${task} timed out, it will be tried again: ${englishOf(noticeOf(error))}`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return { warnings, retrying };
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The cleanup's warnings without the worktree folder a process still holds: a session whose stop is tried again
|
|
50
|
+
* (EKR-99), or one just stopped whose process or children have not let go yet (BTN-870). The folder is tried again on
|
|
51
|
+
* each tick once no kept session of the task is left, and warned about only if it is still held after `STOP_RETRY_MS`.
|
|
52
|
+
*/
|
|
53
|
+
export function deferLeftFolder(ctx, project, repo, task, warnings) {
|
|
54
|
+
return warnings.filter((warning) => {
|
|
55
|
+
if (warning.code !== 'cleanup.folderLeft')
|
|
56
|
+
return true;
|
|
57
|
+
const path = warning.params.full ?? warning.params.path;
|
|
58
|
+
ctx.lingering.leave({ project, task, repo, path, until: Date.now() + STOP_RETRY_MS });
|
|
59
|
+
console.log(`cleanup: the worktree folder ${path} of ${task} is held, it will be tried again once nothing holds it`);
|
|
60
|
+
return false;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Stops the sessions a cleanup after Done left mid-turn whose turn has ended since, tries again the stops that timed
|
|
65
|
+
* out, and removes the folders they held (`stopTaskSessions`). What still fails once the wait is over is warned about
|
|
66
|
+
* on the task, as the cleanup itself would have.
|
|
67
|
+
*/
|
|
68
|
+
export function stopLingering(ctx, git = runGit) {
|
|
69
|
+
return ctx.lingering.alone(async () => {
|
|
70
|
+
for (const { task, agent, retry, project } of ctx.lingering.due(ctx.agents, midTurn)) {
|
|
71
|
+
if (agent.id === undefined)
|
|
72
|
+
continue;
|
|
73
|
+
try {
|
|
74
|
+
await ctx.stopIn(ctx.homeOf(agent.account ?? 'global'), { agentId: agent.id, sessionId: agent.sessionId });
|
|
75
|
+
if (project !== undefined)
|
|
76
|
+
rareEvents.once('17c', 'stop-result', { ...agent, task, project }, 'cleanup-stop result=stopped; the turn after Done ended');
|
|
77
|
+
console.log(`cleanup: stopped the session ${agent.sessionId} of ${task}, ${retry === undefined ? 'its turn after Done ended' : 'its stop tried again'}`);
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
if (retry !== undefined && isCallTimeout(error) && Date.now() < retry.until) {
|
|
81
|
+
ctx.lingering.keep(task, agent.sessionId, retry);
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
console.warn(`cleanup: the session ${agent.sessionId} of ${task} was not stopped: ${englishOf(noticeOf(error))}`);
|
|
85
|
+
if (project !== undefined)
|
|
86
|
+
rareEvents.once('17c', 'stop-result', { ...agent, task, project }, `cleanup-stop result=failed detail=${JSON.stringify(englishOf(noticeOf(error)))}; leaving the session as before`);
|
|
87
|
+
if (retry !== undefined)
|
|
88
|
+
ctx.dispatcher.leftover(retry.project, task, notice('cleanup.sessionNotStopped', { session: agent.sessionId }, { cause: noticeOf(error) }));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
// The folders a previous run left wait for the first read of the sessions, as the cleanup itself does (BTN-646).
|
|
92
|
+
if (ctx.agentsRead)
|
|
93
|
+
ctx.lingering.wake();
|
|
94
|
+
for (const folder of ctx.lingering.dueFolders(Date.now())) {
|
|
95
|
+
const left = await removeLeftFolder(git, folder.repo, folder.path);
|
|
96
|
+
if (left === null) {
|
|
97
|
+
ctx.lingering.settle(folder);
|
|
98
|
+
console.log(`cleanup: removed the worktree folder ${folder.path} of ${folder.task} once nothing held it`);
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
// A stopped process lets go of the folder a moment after it exits, its children later still (BTN-870).
|
|
102
|
+
if (left.code === 'cleanup.folderLeft' && Date.now() < folder.until) {
|
|
103
|
+
ctx.lingering.again(folder);
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
ctx.lingering.settle(folder);
|
|
107
|
+
console.warn(`git: ${folder.task}: ${englishOf(left)}`);
|
|
108
|
+
ctx.dispatcher.leftover(folder.project, folder.task, left);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
export function midTurn(agent) {
|
|
113
|
+
return agent.status === 'busy' || agent.status === 'waiting';
|
|
114
|
+
}
|
|
@@ -38,7 +38,7 @@ export function wireCliChecks(ctx, history) {
|
|
|
38
38
|
model: CHECK_MODELS[agent] ?? null,
|
|
39
39
|
usage: false,
|
|
40
40
|
work: join(ctx.stateDir, 'cli-check'),
|
|
41
|
-
env: () => sessionBase(process.env, ctx.packages.keyNames()),
|
|
41
|
+
env: () => sessionBase(process.env, ctx.packages.keyNames(), ctx.envFile.own()),
|
|
42
42
|
say: (line) => console.log(`cli-check: ${line}`),
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { doneMove } from '../chain/moves.js';
|
|
2
|
+
import { englishOf, noticeOf } from '../notice/notice.js';
|
|
3
|
+
import { checkDone, closeInto } from '../tracker/close.js';
|
|
4
|
+
/**
|
|
5
|
+
* The chain's own closes — a merged pull request, a pull request with nothing to open, a `NO CHANGES:` mark, "Accept
|
|
6
|
+
* as answer" — into the done status the task's source chose, as the merge closer's (BTN-1163).
|
|
7
|
+
*/
|
|
8
|
+
export function wireClosing(ctx) {
|
|
9
|
+
const doneOf = (project, task) => {
|
|
10
|
+
const plan = ctx.readerMoves(ctx.readerFor(project, task));
|
|
11
|
+
return plan === undefined ? undefined : doneMove(plan.rules, plan.profile, plan.source);
|
|
12
|
+
};
|
|
13
|
+
const close = async (link, task, done, held) => {
|
|
14
|
+
const complete = (status) => link.run(async (tracker) => (await tracker.complete?.(task, status)) ?? false);
|
|
15
|
+
await closeInto(task, done, complete, held ? { held: true } : {});
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
review: async (project, task, merged) => {
|
|
19
|
+
const link = ctx.linkFor(project, task);
|
|
20
|
+
if (link === undefined)
|
|
21
|
+
return;
|
|
22
|
+
try {
|
|
23
|
+
// A merged one is not held: the merge closer tries it again on each read of the tracker.
|
|
24
|
+
await close(link, task, doneOf(project, task), !merged);
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
if (merged)
|
|
28
|
+
ctx.pendingCloses.note(ctx.readerFor(project, task), task, noticeOf(error));
|
|
29
|
+
throw error;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
unchanged: async (project, task, comment) => {
|
|
33
|
+
const link = ctx.linkFor(project, task);
|
|
34
|
+
if (link === undefined)
|
|
35
|
+
return;
|
|
36
|
+
await close(link, task, doneOf(project, task), true);
|
|
37
|
+
// The task is done whatever becomes of the comment.
|
|
38
|
+
await link.run(async (tracker) => tracker.comment?.(task, comment)).catch((error) => {
|
|
39
|
+
console.warn(`chain: ${task}: the comment on the task closed with no change did not reach the tracker: ${englishOf(noticeOf(error))}`);
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
accept: async (project, task, comment) => {
|
|
43
|
+
const link = ctx.linkFor(project, task);
|
|
44
|
+
if (link === undefined)
|
|
45
|
+
throw new Error(`no tracker is linked to ${task}`);
|
|
46
|
+
const done = doneOf(project, task);
|
|
47
|
+
// Before the comment: a close that cannot go through leaves no answer on a task still open.
|
|
48
|
+
checkDone(task, done, { held: true });
|
|
49
|
+
await link.run(async (tracker) => {
|
|
50
|
+
if (tracker.comment === undefined || tracker.complete === undefined)
|
|
51
|
+
throw new Error('the tracker cannot comment or close a task');
|
|
52
|
+
await tracker.comment(task, comment);
|
|
53
|
+
});
|
|
54
|
+
await close(link, task, done, true);
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { builtinControl, builtinPlaces } from '../builtin/control.js';
|
|
2
|
+
import { BuiltinStore } from '../builtin/store.js';
|
|
3
|
+
import { forgetProjectRows } from '../chain/store.js';
|
|
4
|
+
import { runSettings } from '../config.js';
|
|
5
|
+
import { DEMO_ACCOUNT, DEMO_AGENT } from '../demo/model.js';
|
|
6
|
+
import { DemoService } from '../demo/service.js';
|
|
7
|
+
import { runGit } from '../git/run.js';
|
|
8
|
+
/** The demo project runs on the demo's agent and account, whatever the settings say: no config row names them. */
|
|
9
|
+
const DEMO_RUN = { provider: DEMO_AGENT, models: {}, accounts: { [DEMO_AGENT]: DEMO_ACCOUNT } };
|
|
10
|
+
/** The run settings of a project, the demo's own for the demo project (BTN-776). */
|
|
11
|
+
export function runOf(ctx, project) {
|
|
12
|
+
return ctx.demo.owns(project) ? DEMO_RUN : runSettings(ctx.configStore.current, project);
|
|
13
|
+
}
|
|
14
|
+
export function wireDemo(ctx) {
|
|
15
|
+
const chainOn = (project) => ctx.dispatcher.state.active.some((chain) => chain.project === project) || ctx.dispatcher.state.queue.includes(project);
|
|
16
|
+
const demo = new DemoService({
|
|
17
|
+
stateDir: ctx.stateDir,
|
|
18
|
+
git: runGit,
|
|
19
|
+
config: () => ctx.configStore.current,
|
|
20
|
+
language: () => ctx.configStore.current.language ?? ctx.promptLanguage(),
|
|
21
|
+
addProject: (draft, own) => ctx.configStore.addProject(draft, own),
|
|
22
|
+
removeProject: (project) => ctx.configStore.removeProject(project),
|
|
23
|
+
builtin: builtinControl({ db: ctx.db, places: () => builtinPlaces(ctx.configStore.current), refresh: (project) => ctx.refreshProject(project) }),
|
|
24
|
+
store: () => new BuiltinStore(ctx.db),
|
|
25
|
+
startChain: (project) => ctx.chainControl.start(project),
|
|
26
|
+
stopChain: (project) => ctx.chainControl.stop(project),
|
|
27
|
+
chainOn,
|
|
28
|
+
homes: ctx.homes,
|
|
29
|
+
refreshAccounts: () => ctx.account.refresh(),
|
|
30
|
+
forgetRows: async (project) => {
|
|
31
|
+
await ctx.writes.settled();
|
|
32
|
+
await forgetProjectRows(ctx.db, project);
|
|
33
|
+
for (const list of [ctx.launches, ctx.archive]) {
|
|
34
|
+
for (let at = list.length - 1; at >= 0; at--)
|
|
35
|
+
if (list[at].project === project)
|
|
36
|
+
list.splice(at, 1);
|
|
37
|
+
}
|
|
38
|
+
ctx.mergeMarks.forget(project);
|
|
39
|
+
ctx.taskRuns.forget(project);
|
|
40
|
+
},
|
|
41
|
+
changed: () => ctx.hub.broadcastSoon('state', ctx.getState),
|
|
42
|
+
});
|
|
43
|
+
// The end card shows once every task is closed and the chain let go: read as often as the event log reads the state.
|
|
44
|
+
ctx.hub.watch('state', () => void demo.check().catch((error) => console.warn(`demo: ${error instanceof Error ? error.message : String(error)}`)), 2_000);
|
|
45
|
+
return demo;
|
|
46
|
+
}
|