@mrciphersmith/keryx 0.4.31 → 0.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -40
- package/dist/cli.js +121 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -95,7 +95,8 @@ To set one up before the first run, or add another later:
|
|
|
95
95
|
|
|
96
96
|
```bash
|
|
97
97
|
keryx providers list # providers you already have configured
|
|
98
|
-
keryx auth login <provider> # subscription login
|
|
98
|
+
keryx auth login <provider> # subscription login: grok, openai-codex, github-copilot only
|
|
99
|
+
# (every other provider takes an API key via /connect or its env var)
|
|
99
100
|
```
|
|
100
101
|
|
|
101
102
|
Inside a running session, `/connect` opens one Providers dialog with two tabs:
|
|
@@ -137,7 +138,8 @@ first session:
|
|
|
137
138
|
of the session — see [permission modes](docs/docs/guides/permission-modes.md).
|
|
138
139
|
- `/help` lists every slash command available in the current mode.
|
|
139
140
|
- `/resume`, `/sessions`, `/new` move between sessions from inside the shell;
|
|
140
|
-
`keryx sessions list`
|
|
141
|
+
`keryx sessions list` shows them from outside it, and `keryx shell -r <id>`
|
|
142
|
+
resumes one.
|
|
141
143
|
|
|
142
144
|
### Where to go next
|
|
143
145
|
|
|
@@ -145,7 +147,7 @@ Full documentation site: **<https://mrciphersmith.github.io/keryx/>**, starting
|
|
|
145
147
|
with [Onboarding](docs/docs/onboarding.md) for the complete first-run
|
|
146
148
|
walkthrough. `keryx help` groups every command by task; the same table is a
|
|
147
149
|
generated reference page, [Commands by task](docs/docs/commands-by-task.md).
|
|
148
|
-
Run `keryx <command> --help` for the live flag surface of
|
|
150
|
+
Run `keryx <command> --help` for the live flag surface of a command, or see the [CLI reference](docs/docs/cli-reference.md).
|
|
149
151
|
Delivery orchestrators can also ask Jev to flag rule-breaking edits and triage
|
|
150
152
|
failed CI jobs — see [Jev in the delivery loop](docs/docs/guides/jev-in-the-delivery-loop.md).
|
|
151
153
|
The review orchestrator can ask Jev to triage CI and pick which reviewers to
|
|
@@ -330,12 +332,12 @@ opens once on its "Connect a model provider" tab. The readline shell,
|
|
|
330
332
|
|
|
331
333
|
### Turn budgets
|
|
332
334
|
|
|
333
|
-
Agent mode
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
Agent mode bounds each user turn by model rounds, not by distinct tool calls:
|
|
336
|
+
`40` in `ask`, `200` in `trust` and `auto` (`KERYX_AGENT_MAX_ROUNDS` overrides
|
|
337
|
+
them, up to `200`; see the permission modes below). Independently, an identical
|
|
338
|
+
`tool + normalized input` may be attempted at most three times in a turn, which
|
|
339
|
+
catches a real repeat loop without capping how many different calls a big task
|
|
340
|
+
needs.
|
|
339
341
|
|
|
340
342
|
### Version update advisory
|
|
341
343
|
|
|
@@ -379,7 +381,8 @@ of guessing — the same `ask` the policy engine raises for a guarded action:
|
|
|
379
381
|
|
|
380
382
|
What is in it today:
|
|
381
383
|
|
|
382
|
-
- **Provider-neutral loop.** Anthropic,
|
|
384
|
+
- **Provider-neutral loop.** Anthropic, OpenAI, Gemini, Ollama, Rapid-MLX, the
|
|
385
|
+
ChatGPT/Codex and GitHub Copilot subscriptions, and any OpenAI-compatible
|
|
383
386
|
gateway — OpenRouter, DeepSeek, Z.AI, Cerebras, Groq, Moonshot, Grok — plus an
|
|
384
387
|
offline fake provider for deterministic runs. Swapping the model does not
|
|
385
388
|
change the loop, the tools or the policy.
|
|
@@ -411,7 +414,7 @@ What is in it today:
|
|
|
411
414
|
`keryx sessions list|fork|export` — `fork` branches a conversation into a new
|
|
412
415
|
session that keeps its ancestry, without editing a transcript by hand.
|
|
413
416
|
`/status` is the session inspector (identity, context window and limits when
|
|
414
|
-
the provider reported them); `/session-info`
|
|
417
|
+
the provider reported them); there is no `/session-info` or `/info`.
|
|
415
418
|
- **`/rewind`: undo a turn.** Before the first mutating tool call of a turn,
|
|
416
419
|
keryx snapshots the work tree into a per-session shadow git repository (your
|
|
417
420
|
own `.git` is never touched). `/rewind` restores files, the conversation, or
|
|
@@ -506,8 +509,9 @@ What is in it today:
|
|
|
506
509
|
(`side-1`) in the TUI so the shell stays usable under long-running turns.
|
|
507
510
|
- **A policy engine with three answers, not two.** `allow`, `ask`, `deny` over
|
|
508
511
|
seven risk classes — read, write, shell, network, credential, delegate,
|
|
509
|
-
destructive — with path and command rules underneath.
|
|
510
|
-
|
|
512
|
+
destructive — with path and command rules underneath. In the interactive shell
|
|
513
|
+
a shell command asks before it runs and a destructive action needs an explicit
|
|
514
|
+
approval; only the read-only profile denies them outright.
|
|
511
515
|
- **Session permission modes.** `keryx shell --trust`/`--auto`, or `/mode`
|
|
512
516
|
inside a running session, decide whether that approval is asked for at all
|
|
513
517
|
— `ask` (default), `trust` (safe calls run, a destructive one still asks),
|
|
@@ -570,18 +574,20 @@ What is in it today:
|
|
|
570
574
|
`external/<run-id>` with one commit. Your current branch and working tree are
|
|
571
575
|
never touched, nothing is pushed and no pull request is opened;
|
|
572
576
|
`discard <run-id>` drops it. There is no flag that skips the confirmation. Only
|
|
573
|
-
`claude-cli` and `codex-cli`
|
|
577
|
+
`claude-cli` and `codex-cli` have this reviewed write (`antigravity-cli` refuses `--write`;
|
|
578
|
+
`gemini-acp --write` is the separate ACP mechanism above, whose patch keryx never
|
|
579
|
+
applies), the
|
|
574
580
|
review is a human reading the diff (a model review is not built), and neither
|
|
575
581
|
has a long live history (`codex` was verified in a scratch repository on
|
|
576
|
-
`codex` 0.159.2; versions outside 0.159.2 up to 0.160.0 are refused). In the TUI: `/external-diff` and a
|
|
582
|
+
`codex` 0.159.2; versions outside 0.159.2 up to, but not including, 0.160.0 are refused, except 0.164.0 exactly, which was measured separately). In the TUI: `/external-diff` and a
|
|
577
583
|
sidebar row while a diff waits. See the [external agent write
|
|
578
584
|
guide](docs/docs/guides/external-agent-write.md).
|
|
579
585
|
- **Completion you can audit.** The completion gate blocks on missing evidence: a
|
|
580
586
|
run that cannot produce the evidence its flow requires does not get to claim
|
|
581
587
|
it finished.
|
|
582
|
-
- **
|
|
583
|
-
|
|
584
|
-
interactive TUI runs its own
|
|
588
|
+
- **Three doors.** The CLI (`keryx harness run|exec|extension|wave|replay`) and the
|
|
589
|
+
loopback HTTP entry (`keryx serve`, whose `ask` decisions become approvals answered once over `/v1/approvals` or `keryx approvals`) share one execution loop; the
|
|
590
|
+
interactive TUI runs its own, with its own interactive tools under the same policy.
|
|
585
591
|
- **A record you can check.** `keryx harness run --record` writes a run's
|
|
586
592
|
recomputable hash surface and `keryx harness replay` validates a fixture
|
|
587
593
|
against it, naming the diverging field when one moves.
|
|
@@ -819,7 +825,7 @@ Grouped by what you are trying to do, not by internal module layout.
|
|
|
819
825
|
the same harness, so a bot or a browser workspace can drive a run.
|
|
820
826
|
|
|
821
827
|
`keryx modules` toggles modules by manifest key; `keryx status` shows what is
|
|
822
|
-
enabled. Nine modules are on after `init`; `mcp`
|
|
828
|
+
enabled. Nine modules are on after `init`; `mcp` and `sac` are opt-in.
|
|
823
829
|
|
|
824
830
|
## Agent integrations
|
|
825
831
|
|
|
@@ -828,6 +834,7 @@ enabled. Nine modules are on after `init`; `mcp` is opt-in.
|
|
|
828
834
|
| Claude Code | `CLAUDE.local.md` routing, orientation hook, security hooks, MCP server |
|
|
829
835
|
| Codex | `AGENTS.override.md` routing and orientation hook |
|
|
830
836
|
| Cursor | Rules/orientation, security hooks, MCP server |
|
|
837
|
+
| OpenCode, VS Code | MCP server via `keryx integrate opencode\|vscode`; OpenCode, Zcode and Antigravity also take routing via `keryx agents bootstrap` |
|
|
831
838
|
| Any other agent | Repository-local Markdown/JSON artifacts under `.metaproject/` |
|
|
832
839
|
|
|
833
840
|
After `init`, agents follow the routing block — in `CLAUDE.local.md` and
|
|
@@ -848,8 +855,10 @@ keryx agents bootstrap install --runtime claude
|
|
|
848
855
|
keryx integrate cursor # opt-in read-only MCP server
|
|
849
856
|
```
|
|
850
857
|
|
|
851
|
-
|
|
852
|
-
|
|
858
|
+
`orient install-hook` and `agents bootstrap` take `--runtime`; `integrate` takes
|
|
859
|
+
the editor as a positional (`cursor|claude|opencode|vscode|generic|all`, where
|
|
860
|
+
`generic` prints a ready snippet and writes no file), and each has its own list
|
|
861
|
+
of values — run `keryx <command> --help` for the ones it accepts.
|
|
853
862
|
|
|
854
863
|
### Using other people's MCP servers
|
|
855
864
|
|
|
@@ -882,8 +891,10 @@ and letting the server answer 401. It also refuses to follow a redirect
|
|
|
882
891
|
into the URL itself. `keryx mcp doctor` names which of those it is, rather
|
|
883
892
|
than reporting one "failed".
|
|
884
893
|
|
|
885
|
-
|
|
886
|
-
|
|
894
|
+
`keryx mcp auth <name>` and `keryx mcp logout <name>` handle OAuth for remote
|
|
895
|
+
servers. keryx also reads, never writes, the MCP servers you already configured
|
|
896
|
+
in Cursor, Claude (`~/.cursor/mcp.json`, `~/.claude.json`), a project `.mcp.json`
|
|
897
|
+
and Grok; a native entry wins over one it read from them.
|
|
887
898
|
|
|
888
899
|
## Requirements and compatibility
|
|
889
900
|
|
|
@@ -894,7 +905,7 @@ next.
|
|
|
894
905
|
| ripgrep | Required only for `keryx ctx rg` and the agent's `search_code` tool |
|
|
895
906
|
| Model provider credential | Required only for the optional AI commands below |
|
|
896
907
|
| macOS | Full support, including the complete policy sandbox |
|
|
897
|
-
| Linux | Full core support; filesystem containment and network on/off (needs `bubblewrap`) |
|
|
908
|
+
| Linux | Full core support; filesystem containment and network on/off (needs `bubblewrap`); no `harness exec` domain allowlist, but a scheduled agent task's `network: allowlist` works |
|
|
898
909
|
| Windows | Core CLI is not verified in CI; the OS sandbox is macOS/Linux only |
|
|
899
910
|
| CI | Ubuntu and macOS runners on every pull request and every push to `main` |
|
|
900
911
|
|
|
@@ -943,13 +954,15 @@ graph falls back to its deterministic resolver when a grammar is absent.
|
|
|
943
954
|
stops keryx from sending private work — code, diffs, CI-log excerpts,
|
|
944
955
|
prompts, rule text — to Jev/TypeSafe and to model vendors/tiers the
|
|
945
956
|
operator has not decided to trust with it. It is on by default (today's
|
|
946
|
-
behavior, unchanged) and is checked at the
|
|
947
|
-
anything out: the Jev client (`callJevSystemOne`, so every `review
|
|
948
|
-
command,
|
|
949
|
-
the turn guard are covered by one change)
|
|
950
|
-
choke point (a listed provider/model is excluded
|
|
951
|
-
resolution, falling through to the next layer with a notice
|
|
952
|
-
silently)
|
|
957
|
+
behavior, unchanged) and is checked at the three places that actually send
|
|
958
|
+
anything out: the Jev client (`callJevSystemOne`, so every `review jev-*`
|
|
959
|
+
command, `/conform`, `review ci-triage`, `review jev-select`, the routing
|
|
960
|
+
classifier and the turn guard are covered by one change), the
|
|
961
|
+
routing/model-selection choke point (a listed provider/model is excluded
|
|
962
|
+
from a category resolution, falling through to the next layer with a notice
|
|
963
|
+
rather than silently), and external-agent dispatch (`keryx agents external
|
|
964
|
+
run` and a model-initiated dispatch refuse a listed agent id such as
|
|
965
|
+
`antigravity-cli`).
|
|
953
966
|
|
|
954
967
|
```bash
|
|
955
968
|
keryx external status # effective on/off, source, Jev credential availability, what's blocked now
|
|
@@ -964,8 +977,8 @@ defaults on first use and never overwritten again. The defaults: Jev/
|
|
|
964
977
|
TypeSafe System One (the OpenRouter `/api/v1/systemone` endpoint — it
|
|
965
978
|
receives code and CI logs on every call); keryx's own direct provider ids
|
|
966
979
|
for vendors hosted under jurisdictions/terms where a prompt may be
|
|
967
|
-
retained or trained on (`deepseek`, `zai`/`zai-coding`, `moonshot`); the
|
|
968
|
-
same vendors reached instead through an OpenRouter model id, plus vendors
|
|
980
|
+
retained or trained on (`deepseek`, `zai`/`zai-coding`, `moonshot`); the Antigravity CLI
|
|
981
|
+
(`antigravity-cli`, the external agent id); the same vendors reached instead through an OpenRouter model id, plus vendors
|
|
969
982
|
with no first-class keryx provider at all (`deepseek/*`, `minimax/*`,
|
|
970
983
|
`z-ai/*`/`zhipu/*`/`glm/*`, `moonshotai/*`, `qwen/*`/`alibaba/*`,
|
|
971
984
|
`baidu/*`, `tencent/*`, `bytedance/*`, `01-ai/*`); OpenRouter's free tier
|
|
@@ -991,7 +1004,7 @@ on|off` toggles the per-user setting; a sidebar row appears when it is
|
|
|
991
1004
|
`off` (the default "on" state costs no permanent sidebar space, same idiom
|
|
992
1005
|
`/guard`/`/route` use for their own default state). See [the CLI
|
|
993
1006
|
reference](docs/docs/cli-reference.md#external) for the full command and
|
|
994
|
-
[Jev in review](docs/docs/jev-in-review.md
|
|
1007
|
+
[Jev in review](docs/docs/jev-in-review.md)
|
|
995
1008
|
for what changed there.
|
|
996
1009
|
|
|
997
1010
|
## Jev EDIT GUARD
|
|
@@ -1025,7 +1038,7 @@ agent is actually acting on the extra flags.
|
|
|
1025
1038
|
keryx review jev-edit-guard install # merge-safe: writes .claude/settings.local.json
|
|
1026
1039
|
```
|
|
1027
1040
|
|
|
1028
|
-
|
|
1041
|
+
Once installed, the hook is on by default wherever Jev is reachable and `/external` is on; to pin the choice per project (`false` turns it off), set:
|
|
1029
1042
|
|
|
1030
1043
|
```json
|
|
1031
1044
|
// .metaproject/tasks.config.json
|
|
@@ -1042,12 +1055,12 @@ untouched.
|
|
|
1042
1055
|
|
|
1043
1056
|
| Limitation | Impact | Alternative |
|
|
1044
1057
|
|------------|--------|-------------|
|
|
1045
|
-
|
|
|
1046
|
-
|
|
|
1058
|
+
| Stock `keryx serve` turns have no tools | A bare `/v1/turns` turn registers no tools, so it raises no approvals; with a registry an `ask` becomes a pending approval answered over `/v1/approvals` or `keryx approvals` | Run tool-using turns in `keryx shell`, which a Telegram topic or a Team Hub session can also drive |
|
|
1059
|
+
| `harness exec` domain allowlist is macOS-only | `--allowed-domains`, credential masking and TLS termination refuse to run on Linux rather than silently doing less; a scheduled agent task's `network: allowlist` does work on Linux | Filesystem containment and network on/off work on both |
|
|
1047
1060
|
| No bundled embedding runtime | No semantic ranking in memory search | Lexical memory search remains fully available |
|
|
1048
1061
|
| ripgrep is external | `keryx ctx rg` needs `rg` on `PATH` | Install ripgrep, or let the agent read files directly |
|
|
1049
1062
|
| Model commands need a credential | Four of the five commands above exit non-zero without one; `wiki enrich` exits `0` and marks the affected pages skipped | Everything else runs deterministically offline |
|
|
1050
|
-
| External agents are read-only, except `claude-cli` and `codex-cli` write mode, which have no long live history | A delegated CLI can read and search; only `claude-cli` and `codex-cli` can write, and only as a stored diff a human reviews (`keryx agents external review\|apply\|discard`) that lands as a new local branch — never on your checkout, never pushed. `claude` is confined by a tool allow-list (no shell, no network); `codex` by an OS sandbox that still leaves it a shell that can read files your user can read (it cannot send them, but they can show up in the run output), and is refused
|
|
1063
|
+
| External agents are read-only, except `claude-cli` and `codex-cli` write mode, which have no long live history | A delegated CLI can read and search; only `claude-cli` and `codex-cli` can write a reviewed diff, and only as a stored diff a human reviews (`keryx agents external review\|apply\|discard`) that lands as a new local branch — never on your checkout, never pushed. `claude` is confined by a tool allow-list (no shell, no network); `codex` by an OS sandbox that still leaves it a shell that can read files your user can read (it cannot send them, but they can show up in the run output), and is refused outside 0.159.2 up to, but not including, 0.160.0 (0.164.0 exactly is also accepted) — live-verified in a scratch repository on `codex` 0.159.2. `antigravity-cli` refuses `--write`, and `gemini-acp --write` is a separate ACP path whose patch keryx never applies. A model review is not built. The parent gets the child's result and nothing before it — supervision of a running external child is not implemented. `claude` and `agy` read-only runs are live-verified | Use keryx's own child agents for work that must mutate the tree, or the [external agent write guide](docs/docs/guides/external-agent-write.md) for a reviewed `claude-cli` or `codex-cli` diff |
|
|
1051
1064
|
| A dispatched `flow-next` task is "done" by checks, not review | `task done` means normal end + a commit on the trigger branch + `keryx health gate` passing in the worktree; nobody has read the diff | Review and merge the `trigger/<flow>-<task>` branch yourself |
|
|
1052
1065
|
| `trust` dispatch needs Linux + a working bubblewrap | The hardened unattended sandbox (network off, home hidden, allow-listed env) is bwrap-only; without it — or on macOS — a `trust` dispatch refuses before starting | Use `permissionMode: "ask"` (read-only), or run triggers on a Linux host with bwrap |
|
|
1053
1066
|
| `dispatch.network: true` is the host's full network | The agent's commands then reach the internet and every host loopback service; the model call never needs it (it is made outside the sandbox) | Leave `network` off; review the `trigger/*` branch before installing or building it |
|
|
@@ -1186,7 +1199,7 @@ Every managed review start, attach or ingest (and any `dispatch-check` or `blast
|
|
|
1186
1199
|
|
|
1187
1200
|
### Operator decisions in a review: a card, or a host question
|
|
1188
1201
|
|
|
1189
|
-
Four review acts are the operator's: `keryx review confirm-plan`, `waive-mutation`, `override-reviewers` and `decide-premise` (a held finding's premise). In `keryx shell` the agent calls a card and you answer it in the shell or in the Telegram topic; a card press is verified by keryx. In Claude Code, Codex or another host there is no card: the agent asks you with the host's own question tool (or a Telegram poll through Helyx) and records your answer with `--answered-by <source>:<ref> --answer-text "<your words, verbatim>" --question-text "<the question as asked>"`, with no terminal. That record carries `confirmedVia: "host-question"` and is weaker than a card: keryx does not verify the answer. Free text is never a decision, an unattended run refuses the flag, and `keryx review complete` with
|
|
1202
|
+
Four review acts are the operator's: `keryx review confirm-plan`, `waive-mutation`, `override-reviewers` and `decide-premise` (a held finding's premise). In `keryx shell` the agent calls a card and you answer it in the shell or in the Telegram topic; a card press is verified by keryx. In Claude Code, Codex or another host there is no card: the agent asks you with the host's own question tool (or a Telegram poll through Helyx) and records your answer with `--answered-by <source>:<ref> --answer-text "<your words, verbatim>" --question-text "<the question as asked>"`, with no terminal. That record carries `confirmedVia: "host-question"` and is weaker than a card: keryx does not verify the answer. Free text is never a decision, an unattended run refuses the flag, and `keryx review complete` with a waiver (`--waive-coverage`, `--waive`) takes the same three flags in place of a terminal. See [limitations](docs/docs/limitations.md#a-host-question-is-a-weaker-proof-than-a-card) and the [CLI reference](docs/docs/cli-reference.md#review).
|
|
1190
1203
|
|
|
1191
1204
|
### Review bot on pull requests
|
|
1192
1205
|
|
|
@@ -1205,6 +1218,12 @@ Set up the secret and copy [`docs/examples/review-bot.yml`](docs/examples/review
|
|
|
1205
1218
|
`keryx review bot post` is a dry run until you pass `--post`; the action's
|
|
1206
1219
|
`post: "false"` does the same. A run reviews at most `max-diff-bytes` of the diff
|
|
1207
1220
|
(default 200,000 bytes) with one reviewer turn plus one verifier turn per finding.
|
|
1221
|
+
The key is exported under `api-key-env` (default `ANTHROPIC_API_KEY`), so a key
|
|
1222
|
+
for another provider needs that input set too (for example `api-key-env:
|
|
1223
|
+
OPENROUTER_API_KEY` with `provider: openrouter`). Other inputs: `provider` and
|
|
1224
|
+
`model` (empty means the first provider with a key and its default model),
|
|
1225
|
+
`github-token` (default `github.token`) and `keryx-version` (npm tag or version,
|
|
1226
|
+
default `latest`).
|
|
1208
1227
|
`keryx review metrics` (and `/reviews` in the shell) reports findings acted on,
|
|
1209
1228
|
dismissed, precision and resolved-before-merge; a ratio with no data prints
|
|
1210
1229
|
`n/a`. Metrics need the managed review packages on the machine where you run
|
|
@@ -1229,7 +1248,7 @@ Full documentation site: **<https://mrciphersmith.github.io/keryx/>**
|
|
|
1229
1248
|
- **[Permission modes](docs/docs/guides/permission-modes.md)** — `ask`/`trust`/`auto` for the interactive shell: how to set them and exactly where the per-project default is stored.
|
|
1230
1249
|
- **[Changelog](CHANGELOG.md)** — what has landed since `v0.1.0`.
|
|
1231
1250
|
|
|
1232
|
-
Run `keryx <command> --help` for the live flag surface of
|
|
1251
|
+
Run `keryx <command> --help` for the live flag surface of a command, or see the [CLI reference](docs/docs/cli-reference.md).
|
|
1233
1252
|
|
|
1234
1253
|
## Local development
|
|
1235
1254
|
|
package/dist/cli.js
CHANGED
|
@@ -25495,6 +25495,7 @@ function renderIndexMarkdown({
|
|
|
25495
25495
|
enableMemory,
|
|
25496
25496
|
enableTasks,
|
|
25497
25497
|
enableSecurity = false,
|
|
25498
|
+
enableMcp = false,
|
|
25498
25499
|
ruleSources,
|
|
25499
25500
|
hasDistilledEntrypoints = false
|
|
25500
25501
|
}) {
|
|
@@ -25507,14 +25508,14 @@ function renderIndexMarkdown({
|
|
|
25507
25508
|
enableTesting ? "| testing | Test context, related tests, execution reports, and test intelligence | modules/testing.md |" : "",
|
|
25508
25509
|
enableMemory ? "| memory | Markdown-canonical memory: pure recall, explicit reports, lifecycle, and accepted/current bounded influence | modules/memory.md |" : "",
|
|
25509
25510
|
enableTasks ? "| tasks | Agent-first flow lifecycle: frozen acceptance criteria, status gates, PR completion | modules/tasks.md |" : "",
|
|
25510
|
-
enableSecurity ? "| security | Policy-based scanning, redaction, guardrails, and audit reports for agent inputs/outputs and artifacts | modules/security.md |" : ""
|
|
25511
|
+
enableSecurity ? "| security | Policy-based scanning, redaction, guardrails, and audit reports for agent inputs/outputs and artifacts | modules/security.md |" : "",
|
|
25512
|
+
enableMcp ? "| mcp | Model Context Protocol server (`keryx serve-mcp`) and client config for agent runtimes | modules/mcp.md |" : ""
|
|
25511
25513
|
].filter(Boolean).join(`
|
|
25512
25514
|
`);
|
|
25513
25515
|
const dataRefItems = [
|
|
25514
25516
|
...enableGdgraph ? [
|
|
25515
25517
|
"- `data/gdgraph/artifacts/summary.md`",
|
|
25516
|
-
"- `data/gdgraph/artifacts/module-map.json`"
|
|
25517
|
-
"- `data/gdgraph/queries/latest.md`"
|
|
25518
|
+
"- `data/gdgraph/artifacts/module-map.json`"
|
|
25518
25519
|
] : [],
|
|
25519
25520
|
...enableGdctx ? ["- `data/gdctx/artifacts/latest.md`"] : [],
|
|
25520
25521
|
...enableGdwiki ? ["- `wiki/index.md`"] : [],
|
|
@@ -25623,7 +25624,7 @@ function renderIndexMarkdown({
|
|
|
25623
25624
|
"Before writing external/tool content into memory, wiki, reports, or task context, or when scanning artifacts for secrets/PII/prompt-injection/egress, use `modules/security.md` and `keryx security check-output`/`security scan`; read `data/security/artifacts/latest.md` before claiming security status."
|
|
25624
25625
|
] : [],
|
|
25625
25626
|
"Use relevant skills from `skills/`.",
|
|
25626
|
-
"Discover tools: each `modules/*.md` manifest lists that module's `keryx` commands;
|
|
25627
|
+
"Discover tools: each `modules/*.md` manifest lists that module's `keryx` commands; the full command reference is `docs/docs/cli-reference.md` (neither `keryx --help` nor `keryx commands` lists every command).",
|
|
25627
25628
|
"Use module manifests before reading raw generated data.",
|
|
25628
25629
|
"Prefer curated artifacts in `data/*/artifacts`.",
|
|
25629
25630
|
"Run module CLI commands when generated data is stale."
|
|
@@ -25715,7 +25716,7 @@ function renderIndexGateMarkdown({
|
|
|
25715
25716
|
enableMemory ? '| past decisions, lessons, constraints | `keryx memory search "<query>"` |' : "",
|
|
25716
25717
|
enableTesting ? "| what tests to run, test context | `keryx test related <file>` |" : "",
|
|
25717
25718
|
enableHealth ? "| lint/type/test/quality status | `keryx health run` |" : "",
|
|
25718
|
-
enableTasks ? "| current work state | `keryx flow
|
|
25719
|
+
enableTasks ? "| current work state | `keryx flow list` (all flows), `keryx flow status <id>` (one flow) |" : "",
|
|
25719
25720
|
enableTasks ? "| spend, confirmations, signatures, gate outcomes across flows | `keryx governance report` |" : "",
|
|
25720
25721
|
enableTasks ? "| put a recurring or one-off unattended agent turn on a schedule | `keryx schedule add/list/show/pause/resume/run/remove` |" : "",
|
|
25721
25722
|
enableSecurity ? "| secrets, PII, prompt injection | `keryx security check-output` |" : "",
|
|
@@ -26948,6 +26949,28 @@ function isHeadingOnlyBody(body) {
|
|
|
26948
26949
|
return body.replace(/^#[^\n]*\n?/, "").trim().length === 0;
|
|
26949
26950
|
}
|
|
26950
26951
|
function extractAgentRuleBody(content) {
|
|
26952
|
+
return stripClaudeOnlySection(extractManagedBody(content));
|
|
26953
|
+
}
|
|
26954
|
+
function stripClaudeOnlySection(body) {
|
|
26955
|
+
const lines = body.split(`
|
|
26956
|
+
`);
|
|
26957
|
+
const out = [];
|
|
26958
|
+
let skipping = false;
|
|
26959
|
+
for (const line of lines) {
|
|
26960
|
+
if (/^##\s+Claude-only rules\s*$/i.test(line)) {
|
|
26961
|
+
skipping = true;
|
|
26962
|
+
continue;
|
|
26963
|
+
}
|
|
26964
|
+
if (skipping && /^#{1,2}\s/.test(line)) {
|
|
26965
|
+
skipping = false;
|
|
26966
|
+
}
|
|
26967
|
+
if (!skipping)
|
|
26968
|
+
out.push(line);
|
|
26969
|
+
}
|
|
26970
|
+
return out.join(`
|
|
26971
|
+
`).trim();
|
|
26972
|
+
}
|
|
26973
|
+
function extractManagedBody(content) {
|
|
26951
26974
|
const marker = "<!-- keryx:index -->";
|
|
26952
26975
|
const endMarker = "<!-- /keryx:index -->";
|
|
26953
26976
|
const markerIndex = content.indexOf(marker);
|
|
@@ -27011,7 +27034,7 @@ function renderMetaprojectReadme({
|
|
|
27011
27034
|
`) : "- No modules enabled yet.";
|
|
27012
27035
|
const commands = [
|
|
27013
27036
|
"keryx status",
|
|
27014
|
-
...enableGdgraph ? ["keryx gdgraph build", 'keryx gdgraph
|
|
27037
|
+
...enableGdgraph ? ["keryx gdgraph build", 'keryx gdgraph find "module pipelines"'] : [],
|
|
27015
27038
|
...enableGdctx ? ["keryx ctx status", "keryx ctx diff"] : [],
|
|
27016
27039
|
...enableGdwiki ? ["keryx wiki status", "keryx wiki collect", "keryx wiki index"] : [],
|
|
27017
27040
|
...enableGdskills ? [
|
|
@@ -27746,7 +27769,7 @@ What invalidates it:
|
|
|
27746
27769
|
How staleness is observed:
|
|
27747
27770
|
|
|
27748
27771
|
\`\`\`bash
|
|
27749
|
-
keryx gdgraph context #
|
|
27772
|
+
keryx gdgraph context # the \`freshness:\` line reads "freshness: working tree clean"
|
|
27750
27773
|
# or "freshness: N uncommitted code file(s) may not be reflected"
|
|
27751
27774
|
\`\`\`
|
|
27752
27775
|
|
|
@@ -27775,7 +27798,6 @@ touched graph-relevant paths (see \`hooks/README.md\`). It never blocks the comm
|
|
|
27775
27798
|
- \`data/gdgraph/artifacts/module-map.json\`
|
|
27776
27799
|
- \`data/gdgraph/storage/nodes.jsonl\`
|
|
27777
27800
|
- \`data/gdgraph/storage/edges.jsonl\`
|
|
27778
|
-
- \`data/gdgraph/artifacts/summary.md\`
|
|
27779
27801
|
|
|
27780
27802
|
## Skills
|
|
27781
27803
|
|
|
@@ -27966,7 +27988,6 @@ Runs common project context commands with token-aware filtering and stores raw o
|
|
|
27966
27988
|
|
|
27967
27989
|
- \`data/gdctx/artifacts/latest.md\`
|
|
27968
27990
|
- \`data/gdctx/raw/\`
|
|
27969
|
-
- \`data/gdctx/queries/\`
|
|
27970
27991
|
|
|
27971
27992
|
## Config
|
|
27972
27993
|
|
|
@@ -34694,7 +34715,7 @@ var package_default;
|
|
|
34694
34715
|
var init_package = __esm(() => {
|
|
34695
34716
|
package_default = {
|
|
34696
34717
|
name: "@mrciphersmith/keryx",
|
|
34697
|
-
version: "0.4.
|
|
34718
|
+
version: "0.4.33",
|
|
34698
34719
|
description: "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
|
|
34699
34720
|
private: false,
|
|
34700
34721
|
publishConfig: {
|
|
@@ -55993,7 +56014,7 @@ tracker reporting.
|
|
|
55993
56014
|
true\`)
|
|
55994
56015
|
- \`keryx flow recover <id> --reason "<why>"\` (moves a flow stuck in
|
|
55995
56016
|
\`completing\` back to \`in-progress\`)
|
|
55996
|
-
- \`keryx flow block
|
|
56017
|
+
- \`keryx flow block <id> --reason "<why>"\` / \`keryx flow unblock <id>\` / \`flow check\` (duplicate ids, including a
|
|
55997
56018
|
number the default branch holds, warns about a number another remote branch holds and about a flow folder that is not
|
|
55998
56019
|
committed) / \`flow renumber <dir> --to <id> --reason "<why>"\` (refuses an id a
|
|
55999
56020
|
known remote branch uses)
|
|
@@ -127083,6 +127104,7 @@ function printHelp() {
|
|
|
127083
127104
|
"keryx flow next <id> [--json] (first task not done whose dependsOn are all done)",
|
|
127084
127105
|
'keryx flow task add <id> --title "<t>" [--kind context|implement|test|verify|review|docs] [--depends T1,T2]',
|
|
127085
127106
|
'keryx flow task done <id> <taskId> [--disposition completed|blocked|failed|skipped] [--reason "<why>"]',
|
|
127107
|
+
"keryx flow task done <id> <taskId> --result <result.json> --resolved <resolved.json> [--ac AC1,AC2] [--evidence <path|ref>,...] (pin the task result against the resolved project context)",
|
|
127086
127108
|
'keryx flow task attempt <id> <taskId> --outcome started|failed|blocked [--detail "<what happened>"]',
|
|
127087
127109
|
'keryx flow task depends <id> <taskId> --on T1,T2|none --reason "<why>" (repair an unsatisfiable dependsOn)',
|
|
127088
127110
|
'keryx flow owner set <id> --owner "<name>" --reason "<why>" (the human accountable; never inferred)',
|
|
@@ -159457,7 +159479,7 @@ async function runJevEditGuardHook(cwd, deps = {}) {
|
|
|
159457
159479
|
process.exitCode = 0;
|
|
159458
159480
|
}
|
|
159459
159481
|
}
|
|
159460
|
-
async function handleInstall(cwd) {
|
|
159482
|
+
async function handleInstall(cwd, deps = {}) {
|
|
159461
159483
|
const root = resolveProjectRoot(cwd);
|
|
159462
159484
|
const { relativePath, owner } = editGuardSettingsTarget(root);
|
|
159463
159485
|
const { errors } = await installSurfaces(root, relativePath, ["jev-edit-guard"], owner);
|
|
@@ -159468,8 +159490,13 @@ async function handleInstall(cwd) {
|
|
|
159468
159490
|
return;
|
|
159469
159491
|
}
|
|
159470
159492
|
console.log(`\u2713 installed: ${relativePath} \u2014 PostToolUse(${EDIT_GUARD_HOOK_MATCHER}) \u2192 \`${editGuardHookCommand()}\``);
|
|
159471
|
-
|
|
159472
|
-
|
|
159493
|
+
const apiKey = resolveJevApiKey(deps.env ?? process.env, deps.configDir);
|
|
159494
|
+
const enabled = await readJevEditGuardEnabledDetailed(root, {
|
|
159495
|
+
jevAvailable: apiKey !== undefined && apiKey.length > 0,
|
|
159496
|
+
...deps.configDir !== undefined ? { configDir: deps.configDir } : {}
|
|
159497
|
+
});
|
|
159498
|
+
if (!enabled.value) {
|
|
159499
|
+
console.log(` note: review.jev.edit_guard is off here \u2014 the hook is installed but will stay silent ` + `(fail-open) until you set {"review":{"jev":{"edit_guard": true}}} in .metaproject/tasks.config.json, ` + `or toggle it with the TUI's /editguard. It defaults on only when /external is on and a Jev credential resolves.`);
|
|
159473
159500
|
}
|
|
159474
159501
|
}
|
|
159475
159502
|
async function handleUninstall(cwd) {
|
|
@@ -200092,7 +200119,7 @@ async function createShellChrome(otui, renderer, opts) {
|
|
|
200092
200119
|
const state = geometry.state();
|
|
200093
200120
|
const rail = state.mode === "rail";
|
|
200094
200121
|
sbHeader.flexDirection = rail ? "column" : "row";
|
|
200095
|
-
sbTitle.content = rail ? otui.t
|
|
200122
|
+
sbTitle.content = rail ? otui.t` ${boldChunk(otui, asciiIcons ? "k" : "\u25C6")}` : otui.t`${boldChunk(otui, "keryx")} ${dimChunk(otui, sbVersion.length > 0 ? `v${sbVersion}` : "")}`;
|
|
200096
200123
|
sbModes.flexDirection = rail ? "column" : "row";
|
|
200097
200124
|
for (const mode of SIDEBAR_MODES) {
|
|
200098
200125
|
const button = modeButtons.get(mode);
|
|
@@ -207220,6 +207247,16 @@ protocol adapter \u2014 it defines no new module logic.
|
|
|
207220
207247
|
\`keryx integrate generic\` (or any other editor) run once,
|
|
207221
207248
|
since codex's own installer has no notion of the keryx manifest.
|
|
207222
207249
|
|
|
207250
|
+
## Session trust (consumer side)
|
|
207251
|
+
|
|
207252
|
+
Separate from serving: when keryx *calls* another server's tools through
|
|
207253
|
+
\`use_tool\`, \`trust\` mode can grant one exact tool for the interactive session.
|
|
207254
|
+
A tool whose live catalog entry has \`destructiveHint: true\` is never offered the
|
|
207255
|
+
grant, and a grant already held is dropped on the next call once the hint turns
|
|
207256
|
+
\`true\`; an absent or \`false\` hint changes nothing. \`/mcp trust list\` and
|
|
207257
|
+
\`/mcp trust revoke <server__tool>|all\` show and remove grants, and \`/new\`,
|
|
207258
|
+
\`/clear\` and resume clear them. Guide: \`docs/docs/guides/permission-modes.md\`.
|
|
207259
|
+
|
|
207223
207260
|
## Notes
|
|
207224
207261
|
|
|
207225
207262
|
- Requires the optional \`@modelcontextprotocol/sdk\`. Disabled by default.
|
|
@@ -215281,6 +215318,15 @@ function signalFor(def, snapshot) {
|
|
|
215281
215318
|
return { severity: "normal" };
|
|
215282
215319
|
}
|
|
215283
215320
|
}
|
|
215321
|
+
function railBadge(badge) {
|
|
215322
|
+
if (badge === undefined || badge === "")
|
|
215323
|
+
return;
|
|
215324
|
+
if (/^[0-9]+$/.test(badge)) {
|
|
215325
|
+
const count = Number(badge);
|
|
215326
|
+
return count <= 9 ? SUPERSCRIPT_DIGITS[count] : "\u207A";
|
|
215327
|
+
}
|
|
215328
|
+
return displayWidth(badge) === 1 ? badge : "\u207A";
|
|
215329
|
+
}
|
|
215284
215330
|
function headerLine(icon, title, badge, width) {
|
|
215285
215331
|
const left = `${icon} ${title}`;
|
|
215286
215332
|
if (badge === undefined)
|
|
@@ -215324,14 +215370,17 @@ function buildCard(def, order, snapshot, ascii) {
|
|
|
215324
215370
|
tabs,
|
|
215325
215371
|
lines: (textWidth, mode) => {
|
|
215326
215372
|
if (mode === "rail") {
|
|
215327
|
-
return [fitCells(
|
|
215373
|
+
return [fitCells(` ${icon}${railBadge(badge) ?? ""}`, RAIL_CELLS)];
|
|
215328
215374
|
}
|
|
215329
215375
|
const lines = [headerLine(icon, def.title, badge, textWidth), ...valueRows(def, snapshot, textWidth)];
|
|
215330
215376
|
while (lines.length < MIN_CARD_LINES)
|
|
215331
215377
|
lines.push("");
|
|
215332
215378
|
return lines;
|
|
215333
215379
|
},
|
|
215334
|
-
rail: () =>
|
|
215380
|
+
rail: () => {
|
|
215381
|
+
const marker = railBadge(badge);
|
|
215382
|
+
return { glyph: icon, ...marker !== undefined ? { badge: marker } : {} };
|
|
215383
|
+
}
|
|
215335
215384
|
};
|
|
215336
215385
|
}
|
|
215337
215386
|
function buildSidebarCards(snapshot, options = {}) {
|
|
@@ -215397,7 +215446,7 @@ function mountSidebarCards(otui, renderer, parent, options) {
|
|
|
215397
215446
|
const slot = slots.get(card.id);
|
|
215398
215447
|
if (slot === undefined)
|
|
215399
215448
|
continue;
|
|
215400
|
-
slot.box.marginTop = mode === "rail"
|
|
215449
|
+
slot.box.marginTop = mode === "rail" ? 1 : card.order === 1 ? 0 : 1;
|
|
215401
215450
|
const lines = card.lines(width, mode);
|
|
215402
215451
|
const head = card.severity === "error" ? roleColor("error", theme) : card.severity === "attention" ? roleColor("attention", theme) : roleColor("text", theme);
|
|
215403
215452
|
for (const [index, text] of slot.texts.entries()) {
|
|
@@ -215543,7 +215592,7 @@ Enter opens ${tab.command}`,
|
|
|
215543
215592
|
const opened = handle;
|
|
215544
215593
|
return { close: () => opened.close(), activeTab: () => opened.activeTab() };
|
|
215545
215594
|
}
|
|
215546
|
-
var RAIL_CELLS = 3, MAX_VALUE_ROWS = 3, MIN_CARD_LINES = 3, NOTHING_TO_SHOW = "Nothing to show yet.", CARD_DEFS, SIDEBAR_CARD_IDS, SIDEBAR_SECTION_IDS, SIDEBAR_SECTION_CARD, SIDEBAR_CARD_FOOTER;
|
|
215595
|
+
var RAIL_CELLS = 3, SUPERSCRIPT_DIGITS, MAX_VALUE_ROWS = 3, MIN_CARD_LINES = 3, NOTHING_TO_SHOW = "Nothing to show yet.", CARD_DEFS, SIDEBAR_CARD_IDS, SIDEBAR_SECTION_IDS, SIDEBAR_SECTION_CARD, SIDEBAR_CARD_FOOTER;
|
|
215547
215596
|
var init_sidebar_cards = __esm(() => {
|
|
215548
215597
|
init_live_render();
|
|
215549
215598
|
init_call_diagnostics();
|
|
@@ -215551,6 +215600,7 @@ var init_sidebar_cards = __esm(() => {
|
|
|
215551
215600
|
init_sidebar_geometry();
|
|
215552
215601
|
init_theme();
|
|
215553
215602
|
init_theme_repaint();
|
|
215603
|
+
SUPERSCRIPT_DIGITS = ["\u2070", "\xB9", "\xB2", "\xB3", "\u2074", "\u2075", "\u2076", "\u2077", "\u2078", "\u2079"];
|
|
215554
215604
|
CARD_DEFS = [
|
|
215555
215605
|
{
|
|
215556
215606
|
id: "session",
|
|
@@ -215595,7 +215645,7 @@ var init_sidebar_cards = __esm(() => {
|
|
|
215595
215645
|
{
|
|
215596
215646
|
id: "work",
|
|
215597
215647
|
title: "Work",
|
|
215598
|
-
icon: "\
|
|
215648
|
+
icon: "\u25BA",
|
|
215599
215649
|
asciiIcon: "T",
|
|
215600
215650
|
sections: [
|
|
215601
215651
|
{ id: "status", label: "Status" },
|
|
@@ -293749,7 +293799,7 @@ refreshed by \`update\` without touching \`data/security\`.
|
|
|
293749
293799
|
- Raw retention defaults to \`off\`; the module operates without persisting raw
|
|
293750
293800
|
content. A \`configChecksum\` mismatch is surfaced as a finding plus an
|
|
293751
293801
|
incident entry; a mode downgrade or a disabled policy is surfaced as a
|
|
293752
|
-
warning plus an incident entry (self-protection
|
|
293802
|
+
warning plus an incident entry (self-protection).
|
|
293753
293803
|
`;
|
|
293754
293804
|
}
|
|
293755
293805
|
function renderSecurityCoreReadme() {
|
|
@@ -295049,7 +295099,8 @@ async function initCommand(args) {
|
|
|
295049
295099
|
enableTesting,
|
|
295050
295100
|
enableMemory,
|
|
295051
295101
|
enableTasks,
|
|
295052
|
-
enableSecurity
|
|
295102
|
+
enableSecurity,
|
|
295103
|
+
enableMcp: enableMcp || existingManifest?.modules?.mcp?.enabled === true
|
|
295053
295104
|
};
|
|
295054
295105
|
const divergenceResolution = parseDivergenceResolution(args);
|
|
295055
295106
|
if (options.preview) {
|
|
@@ -325202,6 +325253,7 @@ async function rulesCommand(args = [], projectRoot = process.cwd()) {
|
|
|
325202
325253
|
enableMemory: moduleEnabled(manifest, "memory"),
|
|
325203
325254
|
enableTasks,
|
|
325204
325255
|
enableSecurity: moduleEnabled(manifest, "security"),
|
|
325256
|
+
enableMcp: moduleEnabled(manifest, "mcp"),
|
|
325205
325257
|
ruleSources: await listRootEntrypoints(projectRoot, declaredImportSources(manifest.agentEntrypoints)),
|
|
325206
325258
|
hasDistilledEntrypoints: subcommand === "distill" ? true : await hasDistilledEntrypoints(metaprojectRoot)
|
|
325207
325259
|
}, { intent: `rules ${subcommand}`, steps: [rulesReadmeStep(metaprojectRoot, "managed")] });
|
|
@@ -325319,6 +325371,7 @@ async function refreshRoutingEntrypoints(metaprojectRoot, manifest, ruleSources,
|
|
|
325319
325371
|
enableMemory: moduleEnabled(manifest, "memory"),
|
|
325320
325372
|
enableTasks: moduleEnabled(manifest, "tasks"),
|
|
325321
325373
|
enableSecurity: moduleEnabled(manifest, "security"),
|
|
325374
|
+
enableMcp: moduleEnabled(manifest, "mcp"),
|
|
325322
325375
|
ruleSources,
|
|
325323
325376
|
hasDistilledEntrypoints: hasDistilled
|
|
325324
325377
|
}, {
|
|
@@ -325425,7 +325478,8 @@ async function collectArtifactIndex(cwd) {
|
|
|
325425
325478
|
await walk(full);
|
|
325426
325479
|
} else if (entry.isFile()) {
|
|
325427
325480
|
const rel = toPosix(path477.relative(cwd, full));
|
|
325428
|
-
|
|
325481
|
+
const localGdctx = rel.includes("/data/gdctx/artifacts/");
|
|
325482
|
+
if (rel.includes("/artifacts/") && !localGdctx) {
|
|
325429
325483
|
out.push(rel);
|
|
325430
325484
|
}
|
|
325431
325485
|
}
|
|
@@ -354586,6 +354640,7 @@ async function previewServiceFiles(projectRoot, options) {
|
|
|
354586
354640
|
enableMemory: moduleEnabled2(manifest, "memory"),
|
|
354587
354641
|
enableTasks,
|
|
354588
354642
|
enableSecurity: moduleEnabled2(manifest, "security"),
|
|
354643
|
+
enableMcp: moduleEnabled2(manifest, "mcp"),
|
|
354589
354644
|
ruleSources,
|
|
354590
354645
|
hasDistilledEntrypoints: await hasDistilledEntrypoints(metaprojectRoot)
|
|
354591
354646
|
}, { intent: "update", steps: [rulesReadmeStep(metaprojectRoot, "managed")] });
|
|
@@ -354620,6 +354675,7 @@ async function refreshServiceFiles(projectRoot, options) {
|
|
|
354620
354675
|
const enableTesting = moduleEnabled2(manifest, "testing");
|
|
354621
354676
|
const enableMemory = moduleEnabled2(manifest, "memory");
|
|
354622
354677
|
const enableSecurity = moduleEnabled2(manifest, "security");
|
|
354678
|
+
const enableMcp = moduleEnabled2(manifest, "mcp");
|
|
354623
354679
|
const enableSac = moduleEnabled2(manifest, "sac");
|
|
354624
354680
|
const hookWarnings = [];
|
|
354625
354681
|
let enableTasks = moduleEnabled2(manifest, "tasks");
|
|
@@ -354684,6 +354740,7 @@ async function refreshServiceFiles(projectRoot, options) {
|
|
|
354684
354740
|
enableMemory,
|
|
354685
354741
|
enableTasks,
|
|
354686
354742
|
enableSecurity,
|
|
354743
|
+
enableMcp,
|
|
354687
354744
|
ruleSources,
|
|
354688
354745
|
hasDistilledEntrypoints: await hasDistilledEntrypoints(metaprojectRoot)
|
|
354689
354746
|
}, {
|
|
@@ -355667,8 +355724,14 @@ function moduleEnabled2(manifest, name) {
|
|
|
355667
355724
|
return manifest.modules?.[name]?.enabled === true;
|
|
355668
355725
|
}
|
|
355669
355726
|
function parseUpdateArgs(args) {
|
|
355727
|
+
const positionals = args.filter((arg) => !arg.startsWith("-"));
|
|
355728
|
+
const helpWord = positionals.length === 1 && positionals[0] === "help";
|
|
355729
|
+
if (positionals.length > 0 && !helpWord) {
|
|
355730
|
+
throw new Error(`\`keryx update\` takes no arguments (got ${positionals.join(" ")}). Run \`keryx update --help\` for its flags.`);
|
|
355731
|
+
}
|
|
355732
|
+
rejectUnknownFlags(args, UPDATE_FLAGS, "update");
|
|
355670
355733
|
return {
|
|
355671
|
-
help: args.includes("--help") || args.includes("-h"),
|
|
355734
|
+
help: helpWord || args.includes("--help") || args.includes("-h"),
|
|
355672
355735
|
hooks: args.includes("--hooks"),
|
|
355673
355736
|
skipRuntime: args.includes("--skip-runtime"),
|
|
355674
355737
|
noTasks: args.includes("--no-tasks"),
|
|
@@ -355758,7 +355821,7 @@ function runtimeSourcePath2(relativePath) {
|
|
|
355758
355821
|
}
|
|
355759
355822
|
function printHelp25() {
|
|
355760
355823
|
helpTitle("keryx update", "refresh .metaproject service files (data left untouched)");
|
|
355761
|
-
helpUsage(["keryx update [--skip-runtime] [--hooks] [--no-tasks] [--yes]"]);
|
|
355824
|
+
helpUsage(["keryx update [--skip-runtime] [--hooks] [--no-tasks] [--preview|--dry-run] [--accept-version|--keep-existing] [--yes]"]);
|
|
355762
355825
|
heading("Default behavior");
|
|
355763
355826
|
for (const line of [
|
|
355764
355827
|
"updates managed runtime when present;",
|
|
@@ -355779,6 +355842,7 @@ function printHelp25() {
|
|
|
355779
355842
|
{ flag: "--yes", desc: "Skip the stale-worktree prune confirmation prompt (CI)." }
|
|
355780
355843
|
]);
|
|
355781
355844
|
}
|
|
355845
|
+
var UPDATE_FLAGS;
|
|
355782
355846
|
var init_update = __esm(() => {
|
|
355783
355847
|
init_contained_write();
|
|
355784
355848
|
init_managed_git_hook();
|
|
@@ -355805,6 +355869,7 @@ var init_update = __esm(() => {
|
|
|
355805
355869
|
init_templates6();
|
|
355806
355870
|
init_templates4();
|
|
355807
355871
|
init_fs();
|
|
355872
|
+
init_args();
|
|
355808
355873
|
init_git_hooks();
|
|
355809
355874
|
init_metaproject_gitignore();
|
|
355810
355875
|
init_seed();
|
|
@@ -355815,6 +355880,18 @@ var init_update = __esm(() => {
|
|
|
355815
355880
|
init_install_plan();
|
|
355816
355881
|
init_templates6();
|
|
355817
355882
|
init_templates2();
|
|
355883
|
+
UPDATE_FLAGS = [
|
|
355884
|
+
"--help",
|
|
355885
|
+
"-h",
|
|
355886
|
+
"--hooks",
|
|
355887
|
+
"--skip-runtime",
|
|
355888
|
+
"--no-tasks",
|
|
355889
|
+
"--preview",
|
|
355890
|
+
"--dry-run",
|
|
355891
|
+
"--accept-version",
|
|
355892
|
+
"--keep-existing",
|
|
355893
|
+
"--yes"
|
|
355894
|
+
];
|
|
355818
355895
|
});
|
|
355819
355896
|
|
|
355820
355897
|
// src/commands/dashboard.ts
|
|
@@ -367230,6 +367307,13 @@ async function printCommandHelp(command, rest = []) {
|
|
|
367230
367307
|
return;
|
|
367231
367308
|
}
|
|
367232
367309
|
}
|
|
367310
|
+
if (HELP_SAFE_VERBS.has(command)) {
|
|
367311
|
+
const route = CLI_ROUTES[command];
|
|
367312
|
+
if (route) {
|
|
367313
|
+
await route(["--help"]);
|
|
367314
|
+
return;
|
|
367315
|
+
}
|
|
367316
|
+
}
|
|
367233
367317
|
const usage = groupUsage(command);
|
|
367234
367318
|
console.log(usage === undefined ? `keryx ${VERSION4}
|
|
367235
367319
|
|
|
@@ -367656,7 +367740,18 @@ var init_cli_registry = __esm(() => {
|
|
|
367656
367740
|
};
|
|
367657
367741
|
MCP_KNOWN_SUBCOMMANDS = [...MCP_CONSUMER_SUBCOMMANDS, "install", "uninstall", "serve"];
|
|
367658
367742
|
DEEP_HELP_GROUPS = new Set(["agents", "shell"]);
|
|
367659
|
-
HELP_SAFE_VERBS = new Set([
|
|
367743
|
+
HELP_SAFE_VERBS = new Set([
|
|
367744
|
+
"skills",
|
|
367745
|
+
"memory",
|
|
367746
|
+
"security",
|
|
367747
|
+
"mcp",
|
|
367748
|
+
"test",
|
|
367749
|
+
"wiki",
|
|
367750
|
+
"update",
|
|
367751
|
+
"workspace",
|
|
367752
|
+
"gdgraph",
|
|
367753
|
+
"ctx"
|
|
367754
|
+
]);
|
|
367660
367755
|
SAFE_SUBCOMMAND_HELP = new Map([
|
|
367661
367756
|
["skills", new Set(["doctor", "uninstall", "scout", "eval", "judge-check", "stocktake"])],
|
|
367662
367757
|
["review", new Set(["scope", "tier", "bot", "metrics"])],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrciphersmith/keryx",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.33",
|
|
4
4
|
"description": "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|