even-keel 0.3.0-rc.1 → 0.3.0-rc.3
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 +5 -5
- package/.env.example +2 -2
- package/CHANGELOG.md +19 -0
- package/README.md +52 -114
- package/dist/src/account/header-levels.js +3 -2
- package/dist/src/account/homes.js +14 -4
- package/dist/src/account/keycheck.js +4 -2
- package/dist/src/account/management.js +5 -2
- package/dist/src/account/model.js +31 -16
- 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 +11 -4
- package/dist/src/account/watcher.js +85 -14
- package/dist/src/agent/adapters.js +1 -1
- package/dist/src/agent/copies.js +48 -9
- package/dist/src/agent/copy.js +2 -0
- package/dist/src/agent/env.js +17 -9
- package/dist/src/agent/model-slots.js +32 -0
- package/dist/src/agent/npm-global.js +31 -0
- package/dist/src/agent/pinned.js +8 -1
- package/dist/src/agent/providers.js +18 -1
- package/dist/src/agent/scripted.js +21 -2
- 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 +162 -0
- package/dist/src/badge/dates.js +25 -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 +474 -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/control.js +21 -7
- package/dist/src/builtin/editor.js +52 -4
- package/dist/src/builtin/export-store.js +67 -0
- package/dist/src/builtin/export.js +218 -0
- package/dist/src/builtin/exporting.js +25 -0
- package/dist/src/builtin/model.js +2 -2
- package/dist/src/builtin/routes.js +21 -0
- package/dist/src/builtin/source.js +13 -12
- package/dist/src/builtin/store.js +25 -3
- 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/checkreports.js +24 -0
- package/dist/src/chain/cleanup.js +1 -1
- package/dist/src/chain/dispatcher.js +77 -4
- package/dist/src/chain/fence.js +30 -0
- package/dist/src/chain/handover.js +6 -5
- package/dist/src/chain/launches.js +1 -1
- package/dist/src/chain/limitNotice.js +1 -1
- package/dist/src/chain/lists.js +33 -6
- package/dist/src/chain/maincheck.js +18 -8
- package/dist/src/chain/mainci.js +12 -8
- package/dist/src/chain/overage.js +7 -2
- package/dist/src/chain/places.js +1 -1
- package/dist/src/chain/prompts.js +62 -6
- package/dist/src/chain/relay.js +30 -11
- package/dist/src/chain/reviews.js +7 -3
- package/dist/src/chain/rules.js +40 -8
- package/dist/src/chain/start.js +20 -0
- package/dist/src/chain/store.js +11 -8
- package/dist/src/chain/unchanged.js +68 -5
- package/dist/src/claude/adapter.js +8 -7
- package/dist/src/claude/cli.js +37 -13
- package/dist/src/claude/sdk/host.js +2 -0
- package/dist/src/claude/tree.js +45 -14
- package/dist/src/cli-args.js +5 -0
- package/dist/src/cli-check/run.js +3 -3
- package/dist/src/cli-check/support.js +4 -4
- package/dist/src/cli.js +63 -23
- package/dist/src/codex/adapter.js +2 -0
- package/dist/src/codex/cli.js +19 -4
- package/dist/src/codex/protection.js +17 -11
- package/dist/src/codex/rollout.js +9 -2
- package/dist/src/codex/trust.js +77 -0
- package/dist/src/config-form.js +36 -6
- package/dist/src/config-store.js +12 -4
- package/dist/src/config.js +34 -14
- package/dist/src/copilot/adapter.js +2 -0
- package/dist/src/copilot/cli.js +3 -2
- package/dist/src/copilot/home.js +1 -1
- package/dist/src/copilot/transcript.js +1 -2
- package/dist/src/demo/scenario.js +13 -2
- package/dist/src/demo/service.js +43 -20
- 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 +2 -1
- package/dist/src/event-log/page-events.js +9 -4
- package/dist/src/event-log/watch.js +4 -4
- package/dist/src/forgejo/adapter.js +1 -0
- package/dist/src/forgejo/api.js +16 -2
- package/dist/src/forgejo/editor.js +196 -0
- package/dist/src/forgejo/model.js +37 -4
- package/dist/src/forgejo/source.js +59 -9
- 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 +23 -13
- 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 +14 -7
- package/dist/src/jira/source.js +38 -41
- 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 +14 -5
- 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/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 +13 -1
- package/dist/src/linear/source.js +70 -16
- 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 +49 -0
- package/dist/src/notice/en.js +142 -114
- package/dist/src/notice/notice.js +49 -6
- package/dist/src/npm-access.js +58 -0
- package/dist/src/opencode/adapter.js +2 -0
- package/dist/src/opencode/cli.js +25 -11
- package/dist/src/opencode/go.js +51 -0
- package/dist/src/opencode/home.js +34 -6
- package/dist/src/opencode/transcript.js +3 -4
- package/dist/src/opencode/usage.js +10 -4
- package/dist/src/packages/check.js +11 -5
- package/dist/src/packages/gateway.js +37 -6
- package/dist/src/packages/launch.js +1 -1
- 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 +103 -16
- package/dist/src/packages/settings.js +13 -0
- package/dist/src/packages/store.js +1 -1
- package/dist/src/paths.js +52 -3
- package/dist/src/profiles/oauth-error.js +1 -9
- package/dist/src/profiles/oauth-response.js +2 -0
- package/dist/src/profiles/service.js +26 -7
- package/dist/src/projects/add.js +23 -5
- package/dist/src/projects/check.js +66 -15
- 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/note.js +58 -0
- package/dist/src/review/open.js +3 -3
- package/dist/src/review/wiring.js +6 -1
- 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 +64 -7
- package/dist/src/server-response.js +4 -1
- package/dist/src/server-security.js +16 -0
- package/dist/src/server.js +89 -20
- package/dist/src/service/account-packages.js +116 -0
- package/dist/src/service/accounts.js +38 -98
- 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 +58 -96
- package/dist/src/service/cleanup.js +16 -7
- package/dist/src/service/cli-check.js +1 -1
- package/dist/src/service/closing.js +57 -0
- package/dist/src/service/demo.js +2 -1
- package/dist/src/service/hosting.js +153 -9
- package/dist/src/service/install-check.js +78 -0
- package/dist/src/service/lifecycle.js +5 -7
- package/dist/src/service/trackers.js +25 -1
- package/dist/src/service/vocabulary.js +23 -0
- package/dist/src/service.js +133 -13
- package/dist/src/sessions/agents.js +10 -2
- package/dist/src/sessions/approvals.js +1 -1
- package/dist/src/sessions/ask.js +13 -3
- package/dist/src/sessions/chat.js +2 -1
- package/dist/src/sessions/commandPrompt.js +13 -6
- package/dist/src/sessions/history.js +2 -0
- package/dist/src/sessions/launch.js +21 -25
- package/dist/src/sessions/lingering.js +25 -2
- 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 +31 -2
- package/dist/src/sessions/note.js +44 -19
- package/dist/src/sessions/permission.js +32 -10
- package/dist/src/sessions/protection.js +29 -7
- package/dist/src/sessions/runs-store.js +20 -0
- package/dist/src/sessions/runs.js +140 -0
- package/dist/src/sessions/transcript.js +58 -6
- package/dist/src/settings/registry.js +47 -23
- package/dist/src/setup.js +5 -0
- package/dist/src/state/settings.js +1 -0
- package/dist/src/stats/base-sql.js +1 -1
- package/dist/src/stats/checkpoint.js +1 -1
- package/dist/src/stats/reader.js +64 -15
- package/dist/src/stats/rules-reader.js +2 -0
- package/dist/src/stats/steps-reader.js +5 -0
- package/dist/src/stats/tally-schema.js +17 -1
- package/dist/src/stats/tally.js +2 -2
- 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 +158 -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 +39 -12
- package/dist/src/storage/database.js +177 -4
- package/dist/src/storage/left-folders.js +16 -0
- package/dist/src/storage/migrations.js +59 -1
- package/dist/src/storage/owner.js +10 -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 +51 -0
- package/dist/src/taskmcp/calls.js +527 -154
- package/dist/src/taskmcp/downloads.js +95 -0
- package/dist/src/taskmcp/files.js +58 -0
- package/dist/src/taskmcp/retries.js +57 -0
- package/dist/src/taskmcp/server.js +5 -1
- package/dist/src/taskmcp/tools.js +36 -7
- package/dist/src/taskmcp/vocabulary.js +75 -0
- package/dist/src/tools/panel.js +44 -8
- package/dist/src/tools/sessionSettings.js +2 -1
- package/dist/src/tools/settings.js +16 -3
- package/dist/src/tracker/card.js +10 -8
- package/dist/src/tracker/close.js +57 -0
- package/dist/src/tracker/closer.js +18 -15
- package/dist/src/tracker/control.js +11 -1
- package/dist/src/tracker/diagnostics.js +5 -2
- package/dist/src/tracker/editor.js +76 -0
- package/dist/src/tracker/export-target.js +30 -0
- package/dist/src/tracker/export.js +172 -0
- package/dist/src/tracker/link.js +104 -24
- package/dist/src/tracker/markers.js +7 -0
- package/dist/src/tracker/model.js +0 -10
- package/dist/src/tracker/parents.js +8 -0
- package/dist/src/tracker/questions.js +14 -0
- package/dist/src/tracker/readers.js +14 -0
- package/dist/src/tracker/source.js +1 -0
- package/dist/src/tracker/start.js +93 -8
- package/dist/src/tracker/templates.js +102 -0
- package/dist/src/updates/runner.js +1 -1
- package/dist/src/updates/settle.js +11 -3
- package/dist/src/updates/updater.js +2 -2
- package/dist/tally/src/collect-worker.js +8 -1
- package/dist/tally/src/collect.js +11 -5
- package/dist/tally/src/db-classify.js +46 -0
- package/dist/tally/src/db.js +14 -38
- 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/16-minimax-family.sql +25 -0
- package/dist/tally/src/migrations.js +10 -1
- package/dist/tally/src/task-moves.js +32 -0
- package/dist/web/assets/BadgeDialog-B8RUL_Ow.js +1 -0
- package/dist/web/assets/BadgeDialog-W0giN4k2.css +1 -0
- package/dist/web/assets/{DescriptionEditor-D8PUeuQ6.js → DescriptionEditor-DUSwRGCZ.js} +6 -6
- package/dist/web/assets/ProjectPackages-BJEPijBV.js +1 -0
- package/dist/web/assets/Select-CYemy5Na.css +1 -0
- package/dist/web/assets/Select-NXi_Bsw-.js +1 -0
- package/dist/web/assets/TaskCard-097ft8uY.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-Bz5yFw-z.js +4 -0
- package/dist/web/assets/accountParts-CNUeXPYn.js +3 -0
- package/dist/web/assets/accountParts-tFRVownp.css +1 -0
- package/dist/web/assets/blocks-CiOz7u_W.js +12 -0
- package/dist/web/assets/blocks-Dx3DACiG.css +1 -0
- package/dist/web/assets/cardDrafts-DDpQR0kq.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-DEslYiM-.js +2 -0
- package/dist/web/assets/feedLine-CBjZXWwX.css +1 -0
- package/dist/web/assets/feedLine-CNG43g34.js +1 -0
- package/dist/web/assets/hooks-CgKVeUg8.js +1 -0
- package/dist/web/assets/index-4Ta6ufEr.js +25 -0
- package/dist/web/assets/index-6af4d6up.css +1 -0
- package/dist/web/assets/lib-DnFFmOv9.js +18 -0
- package/dist/web/assets/overview-0NAogPYB.js +7 -0
- package/dist/web/assets/overview-B7iEgjQD.css +1 -0
- package/dist/web/assets/packageGroups-6mYiV3fk.js +1 -0
- package/dist/web/assets/packages-Dld4uH9X.css +1 -0
- package/dist/web/assets/react-dom-DiYkIXNS.js +1 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/rules-Bgil4ZBp.css +1 -0
- package/dist/web/assets/rules-DLe7kZM5.js +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-CEn6qZnh.js +1 -0
- package/dist/web/assets/useHeightGlide-B2o4yzDR.css +1 -0
- package/dist/web/assets/useHeightGlide-BPjzH9PL.js +3 -0
- package/dist/web/assets/useRowFocus-COI8llTH.js +1 -0
- package/dist/web/index.html +30 -20
- package/dist/web/theme.js +6 -0
- package/even-keel.config.example.json +3 -4
- package/package.json +6 -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 +38 -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/merge-check.mjs +9 -3
- package/plugins/{checkpoint → agent-bridge}/hooks/merges.mjs +14 -1
- package/plugins/{checkpoint → agent-bridge}/hooks/nudges.mjs +11 -7
- package/plugins/{checkpoint/opencode/checkpoint.mjs → agent-bridge/opencode/agent-bridge.mjs} +23 -11
- package/plugins/forgejo/.claude-plugin/plugin.json +1 -1
- package/plugins/forgejo/skills/task/SKILL.md +2 -2
- 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 +2 -2
- package/plugins/tasks/README.md +25 -4
- 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 +2 -2
- package/plugins/tasks/skills/task/SKILL.md +19 -10
- package/service/install.sh +46 -2
- package/service/uninstall.ps1 +16 -0
- package/service/uninstall.sh +10 -0
- package/tally/tally.config.json +1 -0
- package/dist/web/assets/ConfirmDialog-CT1w8fds.css +0 -1
- package/dist/web/assets/ConfirmDialog-DtrqXMLY.js +0 -7
- package/dist/web/assets/Loader-D4ik19jr.css +0 -1
- package/dist/web/assets/Loader-mgoVDIvZ.js +0 -12
- package/dist/web/assets/ProjectPackages-DnCW8kXc.js +0 -1
- package/dist/web/assets/TaskCard-Bjnnsxah.js +0 -3
- package/dist/web/assets/TaskCard-f7aXQS6c.css +0 -1
- package/dist/web/assets/TranscriptWindow-B9zsSmIg.css +0 -1
- package/dist/web/assets/TranscriptWindow-BEAdgN2M.js +0 -4
- package/dist/web/assets/chatKeys-7ClMP73F.css +0 -1
- package/dist/web/assets/chatKeys-Doxn3auX.js +0 -1
- package/dist/web/assets/feedLine-qIhoKONX.js +0 -1
- package/dist/web/assets/index-ernY0hZ5.css +0 -1
- package/dist/web/assets/index-srs3Jx9s.js +0 -24
- package/dist/web/assets/lib-DZ3lmyI6.js +0 -18
- package/dist/web/assets/overview-B_Cnubfu.css +0 -1
- package/dist/web/assets/overview-hxpvjWJS.js +0 -1
- package/dist/web/assets/packageGroups-DMT_PhT3.css +0 -1
- package/dist/web/assets/packageGroups-DWLFjsUs.js +0 -8
- package/dist/web/assets/state-DZUHccAT.css +0 -1
- package/dist/web/assets/state-ky_dNYYi.js +0 -3
- package/dist/web/assets/useFileDrop-4efYr2eq.js +0 -1
- package/dist/web/assets/useModels-1WRBMBb2.css +0 -1
- package/dist/web/assets/useModels-C_U0wgab.js +0 -4
- package/dist/web/assets/useRowFocus-BjMFkowJ.js +0 -1
- package/dist/web/assets/useRowFocus-BsvvWNh2.css +0 -1
- 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/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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
|
|
3
3
|
"name": "even-keel",
|
|
4
|
-
"description": "Plugins for sessions run by Even Keel:
|
|
4
|
+
"description": "Plugins for sessions run by Even Keel: tracker tools and task skills, and the bridge between agent sessions and the service",
|
|
5
5
|
"owner": {
|
|
6
6
|
"name": "Even Keel"
|
|
7
7
|
},
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "tasks",
|
|
47
|
-
"description": "Even Keel
|
|
47
|
+
"description": "Any tracker of an Even Keel project for sessions: its own tasks server with five tools — list, read, create in batches, update with description patches, comment — and skills to work a task and split it into subtasks",
|
|
48
48
|
"source": "./plugins/tasks",
|
|
49
49
|
"category": "productivity"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
"name": "
|
|
53
|
-
"description": "Context checkpoints: once the context
|
|
54
|
-
"source": "./plugins/
|
|
52
|
+
"name": "agent-bridge",
|
|
53
|
+
"description": "Bridge between agent sessions and Even Keel: context handoffs, chat messages mid-turn, permission questions, checks before merges, project standards, badge status and MCP schema hints. Context checkpoints for Even Keel chain sessions of Claude Code, Codex and OpenCode: once the context passes 200k tokens (and every 50k after, every 25k past 250k), the session is asked to write a handoff note and end its turn with `CHECKPOINT: <path>`, so that Even Keel continues the task in a fresh session instead of re-reading the whole context on every turn. A session that writes the note but forgets the line is sent back to add it. In a project without git, where every task shares one folder, the note is the task's own `.temp/handoff-<task>.md` instead of `.temp/handoff.md`. The context and the note come from Even Keel, which reads the transcripts of both agents, so a session it did not start is left alone. The first threshold is the project's calibrated one, and a task that has had three handoffs is asked only from 300k; on a small context window the late and hard thresholds come down to 85 % and 95 % of it. A project that turns handoffs by context off in Even Keel gets no nudge at all and is left to the agent's own compaction. Thresholds: CHECKPOINT_FIRST_TOKENS, CHECKPOINT_STEP_TOKENS, CHECKPOINT_LATE_TOKENS, CHECKPOINT_LATE_STEP_TOKENS, CHECKPOINT_HARD_TOKENS and CHECKPOINT_MAX_HANDOFFS. In a chain session of a project without a CI to judge its main branch, the merge of the task branch waits for the project's check commands from Even Keel and is blocked while they fail. A message the user writes from Even Keel's chat to a working session reaches it mid-turn: before or after its next tool call, at its stop (the turn goes on), or in place of a question it was about to ask. With the same call Even Keel may add a note of its own to a tool call's context: for a project that publishes a README badge, a request for one `status: …` line in the session's next message. A tool call Claude Code stops on a permission dialog for is asked on Even Keel's page too, and the user's \"Allow\" or \"Deny\" there answers the dialog without stopping the session. An MCP call Claude Code made before loading the tool's schema, whose numbers or lists went as strings and failed the server's validation, gets a hint in the context: load the schema with ToolSearch and repeat the call. A project's standards, set on Even Keel's page (a document of the repository and the files it guards): the first read of a guarded file brings the document into the context, the first edit of one before that is refused with the document, a compaction brings it again, and a standard that asks for it holds the merge (in PR mode, the PULL REQUEST mark) of a branch that changed its files until `.temp/shot/` has shots newer than the change and `.temp/<document>-check.md` answers each question of the document's section \"The check\". OpenCode sessions get the nudges and the chat's messages after each tool call, the standards, the merge check and the CHECKPOINT line from the plugin's OpenCode plugin (opencode/agent-bridge.mjs): a turn that wrote the note gets the line added to its last text instead of being sent back.",
|
|
54
|
+
"source": "./plugins/agent-bridge",
|
|
55
55
|
"category": "productivity"
|
|
56
56
|
},
|
|
57
57
|
{
|
package/.env.example
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Copy to .env (ignored by git).
|
|
2
|
-
# The trackers' credentials are profiles: /settings ->
|
|
2
|
+
# The trackers' credentials are profiles: /settings -> Trackers and CI -> Add profile. Tracker variables found here
|
|
3
3
|
# on the first start become the default profile of their tracker, once; after that they are not read.
|
|
4
4
|
# HULY_URL=https://huly.example.com
|
|
5
5
|
# HULY_WORKSPACE=example
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
# The local MCP gateway chain sessions reach their packages' servers through (docs/packages.md); always on 127.0.0.1.
|
|
27
27
|
# EVEN_KEEL_MCP_PORT=4748
|
|
28
28
|
|
|
29
|
-
# The page's token for requests from other machines; required when EVEN_KEEL_HOST is not loopback (
|
|
29
|
+
# The page's token for requests from other machines; required when EVEN_KEEL_HOST is not loopback (docs/guide/setup.md).
|
|
30
30
|
# EVEN_KEEL_TOKEN=change-me-0123456789abcdef
|
|
31
31
|
|
|
32
32
|
# Folder with one Claude config folder per extra account; defaults to ~/.claude-accounts.
|
package/CHANGELOG.md
CHANGED
|
@@ -8,13 +8,32 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
8
8
|
|
|
9
9
|
### Changed
|
|
10
10
|
|
|
11
|
+
- **What a task runs on is set on its card, not by a tracker label.** A task's run — provider, model and effort — is kept by Even Keel: the card's **Runs on** picks it, and a session can set it through the tasks server's `run` field of `tasks_create` and `task_update`. The effort is new: Claude Code's `low` to `max` and Codex's `minimal` to `xhigh`; empty passes none. Labels `<Provider> | <model>` are no longer read. The update moves the run label of each open task into its run once, in the projects that had run labels on; the labels stay in the tracker. The setting `modelLabels` is removed.
|
|
12
|
+
- **OpenCode keeps a model for each provider it signs in to.** Switching OpenCode's account to one on another sign-in (ChatGPT, an Anthropic key, OpenRouter, Copilot, Go, the free models) and back no longer loses the model you set: the model field shows the one of the account's sign-in and says which it is, in the settings of Even Keel and of a project. In the config `models.opencode` becomes `models.opencode/<provider>`; the update moves yours by its model's prefix. On a task's card, picking another provider and back brings back the model you typed for it.
|
|
13
|
+
|
|
14
|
+
- **No label is kept out of the chain by default.** `chain.excludedLabels` starts empty and the built-in tracker no longer offers `Manual`: name the label you mark your own tasks with in the chain rules. An installation that relied on the default keeps `Manual` in its shared list after the update, so the same tasks stay out.
|
|
11
15
|
- **The main branch field offers the repository's branches, and saving another branch switches the main checkout to it**, in a project's settings and in the wizard that adds one: a branch the repository lacks is created from where the checkout stands, one only on a remote is taken from there, and the line under the field says which before you save. The wizard fills in the checkout's current branch and no longer refuses a branch the repository lacks. A checkout switched by hand is shown in the settings and on the chain's card, with buttons to make its branch the main one or to put the folder back, instead of only when a task fails to start.
|
|
16
|
+
- **The `checkpoint` plugin is now `agent-bridge`.** The first start after the update replaces `checkpoint@even-keel` with `agent-bridge@even-keel` in every project; a task already running keeps the old plugin until it ends. Let running tasks reach Done before you update: a task carried across the update on the old plugin was not tried through a handoff or a second restart. If you installed `checkpoint` into your own Claude Code by hand, uninstall it as [setup](docs/guide/setup.md#plugins) says.
|
|
17
|
+
- **A page tab open over the update may need a reload.** Page commands now answer only `{ok:true}`. A tab opened before the update reloads itself once the new service answers, but one held by an open dialog or a field you are typing in waits, and a command sent from it before the reload leaves it broken: reload it by hand.
|
|
18
|
+
|
|
19
|
+
### Security
|
|
20
|
+
|
|
21
|
+
- **A chain session's request to Even Keel's own address is refused.** Even Keel lets a request from its own machine through without the page's token, so a session under someone else's text could change Protection, answer a question for you or create a task in another project with a plain `curl`. The new Protection group **Requests to Even Keel's address**, on by default, makes the `agent-bridge` plugin (1.2.0) refuse a shell command that sends such a request, on every agent. It is a pattern, not isolation: a script the session wrote gets past it. Turn it off for a project whose tasks work with Even Keel's API.
|
|
22
|
+
- **The page takes a request only from its own origin, port included.** Before, the `Origin` check compared only the name, so a page on another port of an allowed name — a project's dev server on `localhost`, another service on your tailnet name — could post commands to Even Keel: start a chain, answer a session, add an MCP server. Now `Origin` must match the request's `Host` with its port, and a `POST` to `/api/` must be `Content-Type: application/json` (415 otherwise). A script posting to the API without that header has to add it.
|
|
23
|
+
- **An MCP server's whole dependency tree is pinned, and npm runs no install scripts.** A server started as `npx -y <package>@<range>` keeps its npm lock file next to its install, so two installs of one version run the same code; an update that changes a dependency says how many in a notice and lists them in the log. Install scripts of the package and its dependencies no longer run as the service's user: a package that needs them gets the **Install scripts** switch in its details. A server started any other way (`uvx`, `docker run`, `npx` without `-y`) shows "version not pinned" in its row. The new installs happen at a package's next update or check; one already installed keeps running as it was.
|
|
12
24
|
|
|
13
25
|
### Fixed
|
|
14
26
|
|
|
15
27
|
- **A project's lone `AGENTS.md` is no longer in a Claude session's context twice.** Claude Code reads the file by itself, so Even Keel stopped appending it to the system prompt; the same text reached every turn twice before.
|
|
16
28
|
- **A project's lone `AGENTS.md` reaches a Claude session again when a `CLAUDE.md` lies in a folder above the checkout**, such as `~/.claude/CLAUDE.md` for a checkout in your home folder. Claude Code skips the file then, so Even Keel appends it to the system prompt in that case only.
|
|
17
29
|
- The Forgejo plugin's `forgejo:task` skill loads again: its description is quoted, so the skill's frontmatter parses and chain sessions on Forgejo, Gitea and Codeberg projects get the skill (plugin 0.1.1). A test now parses the frontmatter of every bundled skill.
|
|
30
|
+
- **`npx even-keel` on macOS and Linux says what to do when npm cannot write its global folder**, as with Node from the nodejs.org installer, whose folder under `/usr/local` belongs to root: it installs nothing and prints the commands that move the folder into your home, also after an `EACCES` of npm itself. It refuses to run as root, since the service would then be installed for root.
|
|
31
|
+
|
|
32
|
+
## [0.2.4] - 2026-11-11
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- A project without a counted CI no longer takes main for green when the session merged without running its check. Main counts as green only when the check hook reports it passed on the merged tree (`checkpoint` plugin 0.14.1). A merge without that report, made by a session without the `checkpoint` package for one, is checked in the next task's folder before that task starts.
|
|
18
37
|
|
|
19
38
|
## [0.2.3] - 2026-11-07
|
|
20
39
|
|
package/README.md
CHANGED
|
@@ -5,65 +5,75 @@
|
|
|
5
5
|
</picture>
|
|
6
6
|
</h1>
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
<a href="https://github.com/NamerekT/even-keel/releases"><picture><source media="(prefers-color-scheme: light)" srcset="https://even-keel-badge.nykolai-tymchenko.workers.dev/even-keel.svg?theme=light"><img alt="Even Keel: what the chain is building now" src="https://even-keel-badge.nykolai-tymchenko.workers.dev/even-keel.svg?theme=dark"></picture></a>
|
|
9
9
|
|
|
10
|
-
**
|
|
10
|
+
**You write the tickets. It takes the night shift.** Even Keel takes a project's open tasks, in the order of their `blocks` links, and works through them one at a time with [Claude Code](https://docs.claude.com/en/docs/claude-code/overview), [Codex](https://github.com/openai/codex), [OpenCode](https://opencode.ai) or [GitHub Copilot](https://github.com/github/copilot-cli) while you do something else. It waits out a spent usage limit, hands a long session over to a fresh one and keeps going while you are away; only a question or a decision waits for you — on its page, in the tracker or on your phone.
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
- **A full context, your way.** A session past its context threshold writes a handoff note and a fresh one takes over in the same worktree — or leaves it to Claude Code's auto-compact, per project or per task by a [label](docs/guide/reference.md#configuration). The statistics count both, so you can compare what each cost on your own tasks.
|
|
14
|
-
- **What each task cost.** Built-in statistics (optional): cost and time per task, where sessions got stuck, how full the context ran, and before/after every change to your rule files. A session audit skill reads them and proposes what to change in your rules.
|
|
15
|
-
- **Every account on one page.** Claude, Codex, OpenCode and Copilot — subscriptions and API keys — each with its limits or spend and what runs on it right now. You pick the account a project runs on.
|
|
16
|
-
- **`CLAUDE.md` or `AGENTS.md`.** One instruction file reaches every agent: Claude Code reads your `AGENTS.md` by itself, Codex your `CLAUDE.md`.
|
|
12
|
+
**Who it's for:** you have a bunch of ideas and an agent subscription, and you'd rather have the agent work through them one task at a time than watch a terminal. No tracker? It has one built in. No git? A plain folder works.
|
|
17
13
|
|
|
18
|
-
|
|
14
|
+
**Not for:** ten agents at once — it runs one task per folder, on purpose. And it won't write your tasks for you: a clear task makes a good night.
|
|
19
15
|
|
|
20
|
-
|
|
16
|
+
## Quick start
|
|
21
17
|
|
|
22
|
-
|
|
18
|
+
```sh
|
|
19
|
+
npx even-keel
|
|
20
|
+
```
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
On Windows: `npx.cmd even-keel`. It installs Even Keel and sets it up as a service ([below](#as-a-service)).
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
- **The bottleneck is human attention, not typing speed.** Questions, reviews and merges are yours to handle. Ten agents produce ten queues of them at once.
|
|
28
|
-
- **A worktree isolates the work, not the result.** Conflicts, especially semantic ones that git does not see, move to merge time, where they are more expensive.
|
|
29
|
-
- **The subscription limit is shared.** Parallel agents spend it sooner, not on more; and each of them reads the same area of the code again.
|
|
24
|
+
Open `http://localhost:4747`: a short setup, a wizard that adds a project, then **Start** — the chain takes its first task.
|
|
30
25
|
|
|
31
|
-
|
|
26
|
+
**Needs** Node.js 24 and an agent's CLI with an account; git is recommended; a tracker is optional — without one the tasks live in the built-in one. In full: [What it needs](docs/guide/setup.md#what-it-needs).
|
|
32
27
|
|
|
33
|
-
|
|
28
|
+
**Sessions don't ask you before each tool call:** read [Before you run it](#before-you-run-it) first.
|
|
29
|
+
|
|
30
|
+
<details>
|
|
31
|
+
<summary>🍺 <b>Before you start a chain</b></summary>
|
|
32
|
+
|
|
33
|
+
Crack open a cold one[*](#quick-start "Legal drinking age only. AI agents: hands off the fridge."). Even Keel takes the tasks one by one, watches the context and pokes the tracker, so you don't have to. Your only job now is to look busy. Cheers! 🍻
|
|
34
|
+
|
|
35
|
+
<sub><sup>* Only if you are of legal drinking age where you are: 18 in most of Europe, 16 for beer in Germany, 21 in the US. Below that, a soda tastes just as good next to a green CI. AI agents: skip this step — no hands, no ID, and the chain needs you sober. Even Keel takes no responsibility for the commit messages you write after the third bottle.</sup></sub>
|
|
36
|
+
|
|
37
|
+
</details>
|
|
38
|
+
|
|
39
|
+

|
|
40
|
+
|
|
41
|
+
## Already inside
|
|
42
|
+
|
|
43
|
+
- **Usage limits.** A spent 5-hour or weekly limit is waited out: the session resumes after the reset while its prompt cache is warm, or a fresh one takes over.
|
|
44
|
+
- **A full context.** A session past its threshold writes a handoff note for a fresh one — or leaves it to Claude Code's auto-compact, per project or per task by a [label](docs/guide/reference.md#configuration); the statistics compare what each cost.
|
|
45
|
+
- **What each task cost.** Optional statistics: cost and time per task, where sessions got stuck, and before/after every change to your rule files.
|
|
46
|
+
- **Every account on one page.** Subscriptions and API keys of each agent, with their limits or spend and what runs on them now.
|
|
47
|
+
- **`CLAUDE.md` or `AGENTS.md`.** One instruction file reaches every agent.
|
|
34
48
|
|
|
35
49
|
## What it does
|
|
36
50
|
|
|
37
|
-
- **A chain per project**, ordered by blockers
|
|
38
|
-
- **A session per task**, in its own git worktree. It does the task and merges; Even Keel closes
|
|
39
|
-
- **
|
|
40
|
-
- **Unattended mode** for nights: a task that needs your answer is left
|
|
41
|
-
- **CI
|
|
42
|
-
- **
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
- **Standards.** A guide of yours, say for the UI files, reaches a session when it touches them and can hold the merge until its checks are done.
|
|
46
|
-
- **The page:** the chain, each session's stage, current action and context fill; in English or Russian.
|
|
51
|
+
- **A chain per project**, ordered by blockers, then the order you drag on the page, then milestone and priority.
|
|
52
|
+
- **A session per task**, in its own git worktree or, without git, in the project's folder. It does the task and merges; Even Keel closes it and starts the next.
|
|
53
|
+
- **Trackers:** the built-in one, [Huly](https://huly.io), GitHub Issues, [Linear](https://linear.app), GitLab Issues, Jira Cloud and Forgejo Issues (Forgejo, Gitea or Codeberg); several in one chain, or several chains on one tracker project.
|
|
54
|
+
- **Unattended mode** for nights: a task that needs your answer is left with the question, and the chain moves on.
|
|
55
|
+
- **CI and pull requests:** the next task waits for a green main branch; PRs instead of merging on GitHub, Forgejo or GitLab.
|
|
56
|
+
- **Plugins, MCP servers and standards** per project, their keys kept away from the sessions; destructive commands are refused for every agent.
|
|
57
|
+
|
|
58
|
+
It runs as a service on your own machine, next to your repositories, on your own subscription, through the unmodified `claude`, `codex`, `opencode` and `copilot` CLIs.
|
|
47
59
|
|
|
48
60
|
| A question in the page's chat | A spent limit, waited out with the cache warm | Statistics |
|
|
49
61
|
| --- | --- | --- |
|
|
50
62
|
|  |  |  |
|
|
51
63
|
|
|
52
|
-
Every feature in full: [docs/guide
|
|
64
|
+
Every feature in full: [docs/guide](docs/guide/README.md), a page per area.
|
|
65
|
+
|
|
66
|
+
## Sequential by design
|
|
53
67
|
|
|
54
|
-
|
|
68
|
+
Parallel agents decide on their own what an unfinished task will look like, hand you ten queues of questions at once and spend the shared limit sooner. Even Keel wins in time, not in width: one task at a time per folder, and the chain survives what usually stops it. Why, in full: [Why one task at a time](docs/guide/chain.md#why-one-task-at-a-time).
|
|
55
69
|
|
|
56
|
-
|
|
57
|
-
- **git** ([git-scm.com](https://git-scm.com/downloads)) with your name and e-mail set (`git config --global user.name` and `user.email`): sessions commit and merge under that name.
|
|
58
|
-
- **An agent and an account of it:** [Claude Code](https://docs.claude.com/en/docs/claude-code/setup), [Codex](https://github.com/openai/codex), [OpenCode](https://opencode.ai) (preview) or [GitHub Copilot CLI](https://github.com/github/copilot-cli) (preview), on a subscription or an API key; OpenCode also runs its free models. The setup can download the CLI for you.
|
|
59
|
-
- **A tracker:** a Huly workspace, GitHub, GitLab or Forgejo projects with Issues, a Linear workspace or a Jira Cloud site.
|
|
60
|
-
- **Windows, Linux or macOS.** Windows is where it runs every day; Linux and macOS (Apple silicon) were checked end to end. The MSI installer of Node can sit on "Preparing to install…" for over 10 minutes: wait it out.
|
|
70
|
+

|
|
61
71
|
|
|
62
72
|
## Before you run it
|
|
63
73
|
|
|
64
74
|
- **Even Keel depends on undocumented behaviour of the agents' CLIs**, none of it a public API. Last checked against **Claude Code 2.1.319**, **codex-cli 0.167.0**, **OpenCode 1.19.5** and **Copilot CLI 1.0.106**; the page warns when yours is another version and can run sessions on the checked one instead. A CLI update may break a part of Even Keel until it is adapted — please open an issue when it does. Details: [setup](docs/guide/setup.md#the-clis-it-depends-on).
|
|
65
75
|
- **Your subscription, the providers' terms.** A project runs on one account per provider, and a spent limit is waited out, never got round by switching accounts. Even Keel does not share, pool or resell access. Each agent's sessions fall under its provider's terms, listed below.
|
|
66
|
-
- **Sessions don't ask you before each tool call** (Claude in auto mode, Codex with `--approve-for-me` or, if you choose, with no sandbox). Protection refuses destructive commands; set up any other permissions and hooks in your agents' settings before you start a chain.
|
|
76
|
+
- **Sessions don't ask you before each tool call** (Claude in auto mode, Codex with `--approve-for-me` or, if you choose, with no sandbox). Protection refuses destructive commands; set up any other permissions and hooks in your agents' settings before you start a chain. Whoever writes a task's text steers its session: read [whose text a session reads and what it may do](docs/guide/security.md) before a chain runs on a public repository.
|
|
67
77
|
- **Your sign-in stays with the CLIs.** Even Keel reads only expiry dates, the e-mail and the plan; tokens are never copied or sent anywhere. An API key you add goes only to its own provider.
|
|
68
78
|
- **Some behaviour has never been checked live**, such as long chains on Codex, OpenCode and Copilot. Read [What has not been verified](docs/unverified.md) before relying on it; every live check is logged in [What has been verified](docs/verified.md).
|
|
69
79
|
|
|
@@ -77,105 +87,33 @@ Every feature in full: [docs/guide/features.md](docs/guide/features.md).
|
|
|
77
87
|
|
|
78
88
|
</details>
|
|
79
89
|
|
|
80
|
-
## Quick start
|
|
81
|
-
|
|
82
|
-
```sh
|
|
83
|
-
npx even-keel
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
This installs Even Keel globally with npm and sets it up as a service ([below](#as-a-service)), no administrator needed. In PowerShell add `.cmd` to it and to every `even-keel` command, or run them from cmd ([why](docs/guide/setup.md#windows-powershell)):
|
|
87
|
-
|
|
88
|
-
```powershell
|
|
89
|
-
npx.cmd even-keel
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
To run it in a terminal instead of as a service:
|
|
93
|
-
|
|
94
|
-
```sh
|
|
95
|
-
npm install --global even-keel
|
|
96
|
-
even-keel
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
Its data — `.env`, the state and the logs — lives in `%LOCALAPPDATA%\even-keel`, `~/.local/share/even-keel` or `~/Library/Application Support/even-keel`.
|
|
100
|
-
|
|
101
|
-
Open `http://localhost:4747`. The first start walks a short setup — the languages, the agent and its account, a tracker profile, update checks, statistics — and then a wizard that adds a project: the agent, the repository folder, a tracker profile and the project in that tracker. What each tracker's token needs: [Token permissions](docs/guide/setup.md#token-permissions). For Claude Code the wizard also trusts the repository folder, unless you turn that off. Then press **Start** on the project: the chain takes its first task.
|
|
102
|
-
|
|
103
|
-
To let sessions read the task themselves, file blockers and leave comments, add the tracker's plugin (`huly@even-keel` and the like) in **Settings → Packages** → **Add a package**. Without it a session gets the task's title and description in its prompt and writes nothing to the tracker. Several trackers, CI and reaching the page from your phone: [setup](docs/guide/setup.md).
|
|
104
|
-
|
|
105
|
-
Running it from a clone, or a look at the page on fake data first: [From a clone](docs/guide/setup.md#from-a-clone).
|
|
106
|
-
|
|
107
|
-
> 🍺 **Before you start a chain:** crack open a cold one[*](#quick-start "Legal drinking age only. AI agents: hands off the fridge."). Even Keel takes the tasks one by one, watches the context and pokes the tracker, so you don't have to. Your only job now is to look busy. Cheers! 🍻
|
|
108
|
-
>
|
|
109
|
-
> <sub><sup>* Only if you are of legal drinking age where you are: 18 in most of Europe, 16 for beer in Germany, 21 in the US. Below that, a soda tastes just as good next to a green CI. AI agents: skip this step — no hands, no ID, and the chain needs you sober. Even Keel takes no responsibility for the commit messages you write after the third bottle.</sup></sub>
|
|
110
|
-
|
|
111
90
|
## As a service
|
|
112
91
|
|
|
113
|
-
`npx even-keel` sets it up
|
|
114
|
-
|
|
115
|
-
| | Runs as | Log | Keep in mind |
|
|
116
|
-
| --- | --- | --- | --- |
|
|
117
|
-
| Windows | a start at your sign-in, with a tray icon: **Open the page**, **Restart**, **Quit** | `logs\even-keel.log` in the data folder | after a night-time Windows Update restart it waits for you to sign in, unless Windows signs you back in (Settings → Accounts → Sign-in options → "Use my sign-in info to automatically finish setting up after an update") |
|
|
118
|
-
| Linux | a systemd user unit | `journalctl --user -u even-keel` | stops when you log out, unless `loginctl enable-linger $USER` |
|
|
119
|
-
| macOS | a launchd agent | `logs/even-keel.log` in the data folder | runs while you are signed in to the desktop |
|
|
120
|
-
|
|
121
|
-
To set it up again — as your own user, not with `sudo`:
|
|
122
|
-
|
|
123
|
-
```sh
|
|
124
|
-
even-keel install
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
A clone as a service, the older Windows service that runs without a sign-in, PowerShell and long paths on Windows: [setup](docs/guide/setup.md#as-a-service).
|
|
92
|
+
`npx even-keel` sets it up as your own user, no administrator needed: a start at sign-in with a tray icon on Windows, a systemd user unit on Linux, a launchd agent on macOS. It restarts Even Keel if it fails; stopping it leaves running sessions alone. `even-keel install` sets it up again (in PowerShell `even-keel.cmd`, [why](docs/guide/setup.md#windows-powershell)). Logs, the data folder, running it in a terminal or from a clone: [setup](docs/guide/setup.md#as-a-service).
|
|
128
93
|
|
|
129
94
|
## Updating
|
|
130
95
|
|
|
131
|
-
The gear menu in the header
|
|
132
|
-
|
|
133
|
-
By hand, installed with npm — it stops the service, installs the latest release and starts it (a given version: `npm install --global even-keel@<version>` with Even Keel stopped):
|
|
134
|
-
|
|
135
|
-
```sh
|
|
136
|
-
even-keel update
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
The latest release candidate, when there is one:
|
|
140
|
-
|
|
141
|
-
```sh
|
|
142
|
-
npx even-keel@next
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
Updating a clone, the `dev` branch, plugins, stored state and going back to an older version: [setup](docs/guide/setup.md#updating).
|
|
96
|
+
The gear menu in the header tells you when a newer release is out: **Update** waits for the chains to settle, installs it and restarts the service, and brings back the version you had if anything fails. By hand: `even-keel update`; the next release candidate: `npx even-keel@next`. In full: [setup](docs/guide/setup.md#updating).
|
|
146
97
|
|
|
147
98
|
## Uninstall
|
|
148
99
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
```sh
|
|
152
|
-
even-keel uninstall
|
|
153
|
-
npm uninstall --global even-keel
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
A clone, and what stays in your repositories and your Claude Code config: [setup](docs/guide/setup.md#uninstall).
|
|
100
|
+
`even-keel uninstall` removes the service and nothing else, then `npm uninstall --global even-keel` the package; delete the data folder yourself. What stays in your repositories and agents' config: [setup](docs/guide/setup.md#uninstall).
|
|
157
101
|
|
|
158
102
|
## Configuration
|
|
159
103
|
|
|
160
|
-
The settings live in Even Keel's database and are edited on the page
|
|
104
|
+
The settings live in Even Keel's database and are edited on the page, applied at once with no restart; `.env` holds the page's address and a few paths. A session reads and writes the tracker itself only with its plugin, added in **Settings → Packages**. Every variable and key: [docs/guide/reference.md](docs/guide/reference.md).
|
|
161
105
|
|
|
162
106
|
## What comes next
|
|
163
107
|
|
|
164
|
-
Looked at, not promised: several machines taking the tasks of one project,
|
|
108
|
+
Looked at, not promised: several machines taking the tasks of one project, running in Docker, a cap on how much of the usage limit one task may spend.
|
|
165
109
|
|
|
166
110
|
## Extending
|
|
167
111
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
Where it could grow:
|
|
171
|
-
|
|
172
|
-
- Other trackers: YouTrack, Jira Data Center…
|
|
173
|
-
- Your own classifier for the statistics, or a different model behind it.
|
|
174
|
-
- Other APIs and other agents: today Even Keel runs the Claude Code, Codex, OpenCode and GitHub Copilot CLIs and is built around the first two's subscription limits.
|
|
112
|
+
A new tracker is an adapter and a plugin ([CONTRIBUTING.md](CONTRIBUTING.md#extending)); YouTrack, Jira Data Center, other agents or your own classifier for the statistics are all welcome.
|
|
175
113
|
|
|
176
114
|
## Development
|
|
177
115
|
|
|
178
|
-
`main` is always the latest release
|
|
116
|
+
`main` is always the latest release; the next version is built on `dev`, fixes on `release/v<x.y>` ([docs/releases.md](docs/releases.md)). Pull requests are not accepted for now: bugs and ideas go to issues. Running from a clone, or the page on fake data: [setup](docs/guide/setup.md#from-a-clone) and [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
179
117
|
|
|
180
118
|
## Security
|
|
181
119
|
|
|
@@ -8,10 +8,11 @@ export function headerLevels(ctx) {
|
|
|
8
8
|
const current = ctx.tasks.find((task) => task.id === ctx.current?.task && open(task));
|
|
9
9
|
const next = nextTask(ctx.tasks, ctx.order.filter((id) => ctx.tasks.some((task) => task.id === id && open(task))), ctx.holding ?? []);
|
|
10
10
|
const task = current ?? ctx.tasks.find((each) => each.id === next);
|
|
11
|
-
const
|
|
11
|
+
const run = task === undefined ? undefined : ctx.runOf(task.id);
|
|
12
|
+
const choice = runChoice(run, ctx.project, ctx.hasAccount);
|
|
12
13
|
const pinned = current && ctx.current?.sessionId ? ctx.sessionAccount(ctx.current.sessionId) : undefined;
|
|
13
14
|
const account = pinned ?? choice.account;
|
|
14
|
-
const labelled =
|
|
15
|
+
const labelled = (run?.provider ?? null) !== null && choice.fallback === null;
|
|
15
16
|
const levels = [];
|
|
16
17
|
if (task && (labelled || account !== project))
|
|
17
18
|
levels.push({ account, source: 'task', task: task.id });
|
|
@@ -6,7 +6,7 @@ import { CODEX } from '../codex/name.js';
|
|
|
6
6
|
import { tokenOf, writeToken } from '../copilot/home.js';
|
|
7
7
|
import { COPILOT } from '../copilot/name.js';
|
|
8
8
|
import { fail } from '../notice/notice.js';
|
|
9
|
-
import { keyOf, keyVendor, replaceKey, writeKey } from '../opencode/home.js';
|
|
9
|
+
import { consoleKey, readAuth, keyOf, keyVendor, replaceKey, writeKey } from '../opencode/home.js';
|
|
10
10
|
import { OPENCODE } from '../opencode/name.js';
|
|
11
11
|
import { samePath } from '../paths.js';
|
|
12
12
|
import { shortLivedProfile } from './aws.js';
|
|
@@ -170,7 +170,9 @@ export class AccountHomes {
|
|
|
170
170
|
* `codex login --with-api-key` writes it (BTN-177). OpenCode's: an `auth.json` under the provider the key is of (BTN-214).
|
|
171
171
|
* Copilot's: the GitHub token in `even-keel.json` (BTN-215).
|
|
172
172
|
*/
|
|
173
|
-
addApiKey(name, key, agent = CLAUDE) {
|
|
173
|
+
addApiKey(name, key, agent = CLAUDE, provider) {
|
|
174
|
+
if (provider !== undefined && (agent !== OPENCODE || provider !== 'opencode-go'))
|
|
175
|
+
throw fail('request.required', { field: 'provider' });
|
|
174
176
|
const value = assertApiKey(key, agent);
|
|
175
177
|
const home = this.home(agent, folderName(name.trim() === '' ? (agent === COPILOT ? 'github' : 'api') : name, this.taken()));
|
|
176
178
|
mkdirSync(home.dir, { recursive: true });
|
|
@@ -180,7 +182,7 @@ export class AccountHomes {
|
|
|
180
182
|
return home;
|
|
181
183
|
}
|
|
182
184
|
if (agent === OPENCODE) {
|
|
183
|
-
writeKey(home.dir, value);
|
|
185
|
+
writeKey(home.dir, value, provider);
|
|
184
186
|
return home;
|
|
185
187
|
}
|
|
186
188
|
if (agent === CODEX) {
|
|
@@ -219,6 +221,8 @@ export class AccountHomes {
|
|
|
219
221
|
const held = home.global ? null : this.apiKeyOf(home);
|
|
220
222
|
if (held === null)
|
|
221
223
|
throw fail('account.keyNotHeld', { agent: home.agent });
|
|
224
|
+
if (home.agent === OPENCODE && consoleKey(readAuth(home.dir)) !== null)
|
|
225
|
+
return value;
|
|
222
226
|
const provider = keyProvider(home.agent, held);
|
|
223
227
|
if (keyProvider(home.agent, value) !== provider)
|
|
224
228
|
throw fail('account.keyOtherProvider', { provider });
|
|
@@ -267,11 +271,16 @@ export class AccountHomes {
|
|
|
267
271
|
return null;
|
|
268
272
|
}
|
|
269
273
|
}
|
|
274
|
+
settings = null;
|
|
275
|
+
/** What the transfer wrote into each folder's `settings.json` and each account's own layer (BTN-901). */
|
|
276
|
+
useSettings(settings) {
|
|
277
|
+
this.settings = settings;
|
|
278
|
+
}
|
|
270
279
|
/** Claude's shared configuration into an account folder; Codex reads its own `config.toml`. */
|
|
271
280
|
share(home) {
|
|
272
281
|
if (home.global || home.agent !== CLAUDE)
|
|
273
282
|
return false;
|
|
274
|
-
return shareConfig({ dir: this.global.dir, config: this.configFile(this.global) }, home.dir);
|
|
283
|
+
return shareConfig({ dir: this.global.dir, config: this.configFile(this.global) }, home.dir, console.warn, this.settings?.planner(home.key));
|
|
275
284
|
}
|
|
276
285
|
/** The `.claude.json` the CLI reads with this folder. */
|
|
277
286
|
configFile(home) {
|
|
@@ -287,6 +296,7 @@ export class AccountHomes {
|
|
|
287
296
|
return;
|
|
288
297
|
}
|
|
289
298
|
rmSync(home.dir, { recursive: true, force: true, maxRetries: 3 });
|
|
299
|
+
this.settings?.forget(home.key);
|
|
290
300
|
this.forget();
|
|
291
301
|
}
|
|
292
302
|
home(agent, name) {
|
|
@@ -41,8 +41,10 @@ export async function checkOpenAiKey(key, timeoutMs, fetchImpl = fetch) {
|
|
|
41
41
|
export async function checkOpenRouterKey(key, timeoutMs, fetchImpl = fetch) {
|
|
42
42
|
return askModels(OPENROUTER_KEY_URL, { authorization: `Bearer ${key}` }, timeoutMs, fetchImpl, undefined, async (response) => {
|
|
43
43
|
const body = await response.json();
|
|
44
|
-
const
|
|
45
|
-
|
|
44
|
+
const data = typeof body === 'object' && body !== null ? body.data : null;
|
|
45
|
+
const limit = openRouterLimit(data);
|
|
46
|
+
const management = typeof data === 'object' && data !== null && data.is_management_key === true;
|
|
47
|
+
return { ...(limit !== null && { limit }), ...(management && { management: true }) };
|
|
46
48
|
});
|
|
47
49
|
}
|
|
48
50
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Tells the account's credits bought and used. Documented for a management key only, yet live it answered the key a
|
|
3
|
+
* session runs on too, with the same totals (2026-11-15, BTN-1206).
|
|
4
|
+
*/
|
|
2
5
|
const OPENROUTER_CREDITS_URL = 'https://openrouter.ai/api/v1/credits';
|
|
3
|
-
/** The account's balance, `total_credits` less `total_usage`; 401 and 403 are a key
|
|
6
|
+
/** The account's balance, `total_credits` less `total_usage`; 401 and 403 are a key OpenRouter does not tell it to. */
|
|
4
7
|
export async function readOpenRouterBalance(key, timeoutMs, fetchImpl = fetch) {
|
|
5
8
|
let response;
|
|
6
9
|
try {
|
|
@@ -185,13 +185,19 @@ export function launchBlock(view, key = view.active) {
|
|
|
185
185
|
return freeHeld(view.accounts, key);
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
189
|
-
* free accounts to get round the limits, so only the first of them works (BTN-176).
|
|
188
|
+
* Free ChatGPT folders past the first identity in folder order. That identity may have one folder per agent.
|
|
190
189
|
*/
|
|
191
190
|
export function extraFree(accounts) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
const [first, ...rest] = freeChatGpt(accounts);
|
|
192
|
+
if (first === undefined)
|
|
193
|
+
return [];
|
|
194
|
+
const agents = new Set([first.agent]);
|
|
195
|
+
return rest.filter(entry => {
|
|
196
|
+
if (!sameEmail(first.status, entry.status) || agents.has(entry.agent))
|
|
197
|
+
return true;
|
|
198
|
+
agents.add(entry.agent);
|
|
199
|
+
return false;
|
|
200
|
+
}).map(entry => entry.key);
|
|
195
201
|
}
|
|
196
202
|
/**
|
|
197
203
|
* Whether an account of the agent just added takes the shared pool's entry for it: it does while that entry names no
|
|
@@ -211,30 +217,39 @@ export function missingNotice(agent) {
|
|
|
211
217
|
return notice(agent === CODEX ? 'login.codexMissing' : 'login.claudeMissing', {});
|
|
212
218
|
}
|
|
213
219
|
/**
|
|
214
|
-
* Why a
|
|
215
|
-
* is that very account again.
|
|
220
|
+
* Why a free ChatGPT sign-in is not added. The same identity in another agent shares its allowance.
|
|
216
221
|
*/
|
|
217
222
|
export function secondFreeProblem(accounts, agent, status) {
|
|
218
|
-
if (
|
|
223
|
+
if (!isFree(agent, status))
|
|
219
224
|
return undefined;
|
|
220
|
-
const
|
|
225
|
+
const free = freeChatGpt(accounts);
|
|
226
|
+
const first = free[0];
|
|
221
227
|
if (first === undefined)
|
|
222
228
|
return undefined;
|
|
223
229
|
const account = first.status?.email ?? first.key;
|
|
224
|
-
const same =
|
|
230
|
+
const same = sameEmail(first.status, status);
|
|
231
|
+
if (same && !free.some(entry => entry.agent === agent && sameEmail(entry.status, status)))
|
|
232
|
+
return undefined;
|
|
225
233
|
return notice(same ? 'account.sameFree' : 'account.secondFree', { account });
|
|
226
234
|
}
|
|
227
235
|
function freeHeld(accounts, key) {
|
|
228
|
-
const
|
|
229
|
-
if (first === undefined || !
|
|
236
|
+
const first = freeChatGpt(accounts)[0];
|
|
237
|
+
if (first === undefined || !extraFree(accounts).includes(key))
|
|
230
238
|
return undefined;
|
|
231
239
|
return notice('account.extraFree', { account: first.status?.email ?? first.key });
|
|
232
240
|
}
|
|
233
|
-
function
|
|
234
|
-
return accounts.filter((entry) => entry.agent
|
|
241
|
+
function freeChatGpt(accounts) {
|
|
242
|
+
return accounts.filter((entry) => isFree(entry.agent, entry.status));
|
|
243
|
+
}
|
|
244
|
+
function isFree(agent, status) {
|
|
245
|
+
if (status?.loggedIn !== true)
|
|
246
|
+
return false;
|
|
247
|
+
if (agent === CODEX)
|
|
248
|
+
return status.subscriptionType === FREE_PLAN && !isApiKey(status);
|
|
249
|
+
return agent === OPENCODE && status.authMethod === 'oauth' && status.chatgptPlan === FREE_PLAN;
|
|
235
250
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
251
|
+
function sameEmail(left, right) {
|
|
252
|
+
return !!left.email && !!right.email && left.email.toLowerCase() === right.email.toLowerCase();
|
|
238
253
|
}
|
|
239
254
|
function stringOf(value) {
|
|
240
255
|
return typeof value === 'string' && value !== '' ? value : null;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { readFileSync, readdirSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { pathsOf, samePath } from '../paths.js';
|
|
5
|
+
import { SETTINGS_GUARD_MARK as MARK, stripSettingsGuard } from './settingsGuardStrip.js';
|
|
6
|
+
export { stripSettingsGuard };
|
|
7
|
+
function object(value) {
|
|
8
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value) ? value : {};
|
|
9
|
+
}
|
|
10
|
+
export function withSettingsGuard(settings, config) {
|
|
11
|
+
const clean = stripSettingsGuard(settings);
|
|
12
|
+
const hooks = object(clean.hooks);
|
|
13
|
+
const script = fileURLToPath(new URL(import.meta.url.endsWith('.ts') ? '../../dist/src/account/settingsHook.js' : './settingsHook.js', import.meta.url));
|
|
14
|
+
const data = Buffer.from(JSON.stringify(config)).toString('base64url');
|
|
15
|
+
return { ...clean, hooks: { ...hooks, PreToolUse: [
|
|
16
|
+
...(Array.isArray(hooks.PreToolUse) ? hooks.PreToolUse : []),
|
|
17
|
+
{ matcher: 'Edit|Write|MultiEdit', hooks: [{ type: 'command', command: process.execPath,
|
|
18
|
+
args: [script, MARK, data], timeout: 5, onFailure: 'continue' }] },
|
|
19
|
+
] } };
|
|
20
|
+
}
|
|
21
|
+
export function removeSettingsGuard(dir) {
|
|
22
|
+
const file = join(dir, 'settings.json');
|
|
23
|
+
try {
|
|
24
|
+
const settings = JSON.parse(readFileSync(file, 'utf8'));
|
|
25
|
+
const clean = stripSettingsGuard(settings);
|
|
26
|
+
if (clean !== settings)
|
|
27
|
+
writeFileSync(file, JSON.stringify(clean, null, 2));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
if (error.code === 'ENOENT')
|
|
31
|
+
return;
|
|
32
|
+
throw error;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/** Uninstall keeps account folders and user hooks; only managed Claude folders are visited. */
|
|
36
|
+
export function removeAccountSettingsGuards(accountsDir, globalDir) {
|
|
37
|
+
let entries;
|
|
38
|
+
try {
|
|
39
|
+
entries = readdirSync(accountsDir, { withFileTypes: true });
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
if (error.code === 'ENOENT')
|
|
43
|
+
return;
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
for (const entry of entries) {
|
|
47
|
+
const dir = join(accountsDir, entry.name);
|
|
48
|
+
if (!entry.isDirectory() || samePath(dir, globalDir))
|
|
49
|
+
continue;
|
|
50
|
+
try {
|
|
51
|
+
removeSettingsGuard(dir);
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
console.warn(`account settings guard: could not remove hook from ${dir}: ${String(error)}`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/** No HTTP call for ordinary edits. The service confirms that a candidate belongs to a listed Claude account. */
|
|
59
|
+
export async function guardSettingsEdit(input, config, ask = async () => {
|
|
60
|
+
const response = await fetch(`${config.url}/api/state`, { signal: AbortSignal.timeout(1500), redirect: 'error' });
|
|
61
|
+
return response.ok ? response.json() : null;
|
|
62
|
+
}, platform = process.platform) {
|
|
63
|
+
try {
|
|
64
|
+
const event = object(input);
|
|
65
|
+
if (!['Edit', 'Write', 'MultiEdit'].includes(String(event.tool_name)))
|
|
66
|
+
return null;
|
|
67
|
+
const tool = object(event.tool_input);
|
|
68
|
+
const paths = pathsOf(platform);
|
|
69
|
+
const targets = [tool.file_path, ...(Array.isArray(tool.edits) ? tool.edits.map((edit) => object(edit).file_path) : [])]
|
|
70
|
+
.filter((path) => typeof path === 'string' && path !== '')
|
|
71
|
+
.map((path) => paths.resolve(typeof event.cwd === 'string' ? event.cwd : process.cwd(), path))
|
|
72
|
+
.filter((path) => platform === 'linux' ? paths.basename(path) === 'settings.json' : paths.basename(path).toLowerCase() === 'settings.json')
|
|
73
|
+
.filter((path) => samePath(paths.dirname(paths.dirname(path)), config.accountsDir, platform)
|
|
74
|
+
&& !samePath(paths.dirname(path), config.globalDir, platform)
|
|
75
|
+
&& samePath(path, paths.join(paths.dirname(path), 'settings.json'), platform));
|
|
76
|
+
if (targets.length === 0)
|
|
77
|
+
return null;
|
|
78
|
+
const accounts = object(object(await ask()).account).accounts;
|
|
79
|
+
if (!Array.isArray(accounts))
|
|
80
|
+
return null;
|
|
81
|
+
const managed = accounts.some((value) => {
|
|
82
|
+
const account = object(value);
|
|
83
|
+
return account.agent === 'claude' && account.global === false && typeof account.key === 'string'
|
|
84
|
+
&& paths.basename(account.key) === account.key
|
|
85
|
+
&& targets.some((path) => samePath(path, paths.join(config.accountsDir, account.key, 'settings.json'), platform));
|
|
86
|
+
});
|
|
87
|
+
return managed ? 'Even Keel manages this account folder’s settings.json. Edit shared settings in ~/.claude/settings.json; Even Keel transfers them to all Claude accounts before launch. For account-only settings, use Accounts in Even Keel: resolve a settings change with “Keep for this account only”.' : null;
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
}
|