@ethlete/agent-rules 0.1.0-next.26 → 0.1.0-next.28

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.
Files changed (42) hide show
  1. package/AGENTS.md +28 -0
  2. package/CHANGELOG.md +114 -0
  3. package/CLAUDE.md +1 -0
  4. package/THIRD-PARTY-LICENSES.md +1 -1
  5. package/content/hooks/context-warning.py +46 -7
  6. package/content/mods/.claude-plugin/marketplace.json +11 -0
  7. package/content/mods/plugins/e2e-progress/.claude-plugin/plugin.json +6 -0
  8. package/content/mods/plugins/e2e-progress/hooks/hooks.json +1 -0
  9. package/content/mods/plugins/e2e-progress/hooks/register.tsx +442 -0
  10. package/content/mods/plugins/e2e-progress/tsconfig.json +3 -0
  11. package/content/mods/plugins/e2e-progress/types/index.d.ts +23 -0
  12. package/content/rules/agent-sessions-wake-up.md +11 -0
  13. package/content/rules/lint-and-format.md +2 -1
  14. package/content/rules/subagent-models.md +4 -0
  15. package/content/skills/agent-sessions/SKILL.md +81 -0
  16. package/content/skills/agent-sessions/agent-sessions.mjs +436 -0
  17. package/content/skills/design-exploration/SKILL.md +429 -135
  18. package/content/skills/e2e-triage/SKILL.md +80 -0
  19. package/content/skills/git-commit/SKILL.md +5 -0
  20. package/content/skills/grilling/SKILL.md +17 -0
  21. package/content/skills/handoff/SKILL.md +51 -1
  22. package/content/skills/sdk-update/SKILL.md +7 -0
  23. package/package.json +1 -1
  24. package/src/index.js +7 -0
  25. package/src/index.js.map +1 -1
  26. package/src/lib/config.d.ts +2 -0
  27. package/src/lib/config.js +5 -3
  28. package/src/lib/config.js.map +1 -1
  29. package/src/lib/plan.js +4 -0
  30. package/src/lib/plan.js.map +1 -1
  31. package/src/lib/sessions-command.d.ts +4 -0
  32. package/src/lib/sessions-command.js +16 -0
  33. package/src/lib/sessions-command.js.map +1 -0
  34. package/src/lib/targets/claude-hooks.d.ts +2 -0
  35. package/src/lib/targets/claude-hooks.js +4 -1
  36. package/src/lib/targets/claude-hooks.js.map +1 -1
  37. package/src/lib/targets/claude-mods.d.ts +20 -0
  38. package/src/lib/targets/claude-mods.js +47 -0
  39. package/src/lib/targets/claude-mods.js.map +1 -0
  40. package/src/lib/targets/hooks-shared.d.ts +1 -0
  41. package/src/lib/targets/hooks-shared.js +3 -2
  42. package/src/lib/targets/hooks-shared.js.map +1 -1
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: e2e-triage
3
+ description: Work through a failed Playwright e2e run - read the failures file the @ethlete/cli failure reporter writes, group the failures by error, fix the largest group first, and re-run only the specs that failed. Read when an e2e run fails with more than a few tests, when an `e2e-failures.jsonl` file is present, or before you start a full e2e run after a change.
4
+ kind: skill
5
+ scope: consumer
6
+ requires: ['@ethlete/cli']
7
+ vars: [docsBaseUrl]
8
+ ---
9
+
10
+ # Triage a failed e2e run
11
+
12
+ Many failed tests rarely mean many bugs. In one real run, a single change in a shared pipe failed 61
13
+ tests. After the fix, 158 of the first 159 retried tests passed. So find the shared cause first, and
14
+ never fix failures one test at a time from the top of the log.
15
+
16
+ ## Before the run
17
+
18
+ 1. Check that `playwright.config.ts` lists `@ethlete/cli/playwright/failure-reporter` in `reporter`.
19
+ If not, add it next to the reporter that is there: `[['list'], ['@ethlete/cli/playwright/failure-reporter']]`.
20
+ The reporter writes one JSON line per failed attempt while the run goes on. The guide is
21
+ {%docsBaseUrl%}/cli/e2e.
22
+ 2. Run the specs of the files you changed first. Start the full suite only when they pass. A full
23
+ run takes long, and one broken shared file fails it everywhere.
24
+
25
+ ## Read the failures
26
+
27
+ The file is `e2e-failures.jsonl` next to `playwright.config.ts`, unless `E2E_FAILURES_FILE` or the
28
+ `outputFile` option of the reporter names another path. You can read it while the run goes on.
29
+
30
+ Each line has `test`, `location`, `project`, `status`, `retry`, `seconds`, `error`, `detail` and `context`.
31
+ `error` holds the first lines of the message. `detail` holds the first later line with a URL, for errors whose first lines do not name it, or `null`. `context` is the path of Playwright's
32
+ `error-context.md`, which holds the page snapshot at the failure.
33
+
34
+ Do not parse the console log of the run. It mixes the output of parallel workers, and it has no end
35
+ line if the run stops.
36
+
37
+ ## Group, then fix the largest group
38
+
39
+ 1. Normalize the `error` text of each line. Remove line and column numbers, timeouts in ms, ids,
40
+ hashes and dates. Keep the matcher, the locator and the expected value.
41
+ 2. Group the lines by the normalized text. Count the distinct spec files per group, not only the lines.
42
+ A group that spans many spec files points at shared code: a component, a pipe, a fixture or a
43
+ test helper.
44
+ 3. Take the largest group. Read one `context` file of it, then the code the error points at. Find
45
+ one cause that explains the whole group.
46
+ 4. Fix that cause. Then re-run only the spec files of that group.
47
+
48
+ A group whose errors are a connection refused (`ERR_CONNECTION_REFUSED`, `ECONNREFUSED`) on a local mock or
49
+ `webServer` port is an infrastructure group, not a test verdict. Check that the server is still up,
50
+ restart it, and re-run those tests before you read them as failures.
51
+
52
+ Small groups that differ only in a locator often have the same cause. Check them after the large group
53
+ is fixed, because a fix often clears them too.
54
+
55
+ ## Re-run only what failed
56
+
57
+ Take the spec file from `location`, without the `:line`. Collect each file once, then run:
58
+
59
+ ```bash
60
+ npx playwright test <file> <file> --project=<project> --no-deps
61
+ ```
62
+
63
+ - Pass each file as its own argument. In zsh, an unquoted `$files` is one argument, and Playwright
64
+ then finds no tests.
65
+ - `--no-deps` skips the setup projects. Leave it out if the failure is in a setup project, or if the
66
+ setup state is gone.
67
+ - `--project` comes from the `project` field. Run one call per project.
68
+
69
+ ## Retries and flaky tests
70
+
71
+ With `retries` on, a test that fails each attempt has one line per attempt (`retry` 0, 1, and so on).
72
+ A test with a line for `retry` 0 and no line for the last retry passed on a later attempt: it is flaky.
73
+ Report a flaky test, but fix the stable failures first.
74
+
75
+ ## Rules
76
+
77
+ - Never skip a failed test, or mark it with `test.fail()` or `test.fixme()`, to make a run pass.
78
+ - Never change an assertion to match the wrong value the app shows now. A failed e2e test is a
79
+ signal first. If you think the test is wrong, say why, and ask before you change it.
80
+ - Report per group: the cause, the fix, the spec files you re-ran, and what still fails.
@@ -25,4 +25,9 @@ Commits are **lean** and follow {%commitRuleSource%}:
25
25
  - **Stage only what belongs to the change.** The working tree often carries
26
26
  unrelated in-progress work - `git add` the specific files, never `git add -A`
27
27
  blindly.
28
+ - **In a checkout that other sessions share**, commit with
29
+ `git commit -- <paths>`, so their staged files stay out. `git commit -- <path>`
30
+ refuses an untracked file: run `git add -N <that file>` for that one path
31
+ first. Pass a formatter or `eslint --fix` the exact paths you changed, never a
32
+ list from `git diff` or `git status` - that list holds other sessions' files.
28
33
  - Don't push unless asked.
@@ -32,3 +32,20 @@ The session is done when the frontier is empty: every branch of the design tree
32
32
  ---
33
33
 
34
34
  Vendored from [mattpocock/skills](https://github.com/mattpocock/skills) at `3cca18b`, MIT (Copyright (c) 2026 Matt Pocock).
35
+
36
+ ## Local addition: write each question so it reads alone
37
+
38
+ This section is ours, not upstream.
39
+
40
+ - **One question, one situation.** Say what the thing is and why the decision matters, in plain
41
+ words, before the choices. The user must understand it without the earlier rounds.
42
+ - **No reference chains.** Never lean on other question numbers, ADR numbers, slice numbers or
43
+ plan shorthand ("as Q6 settled", "per ADR 07"). Name the actual thing instead.
44
+ - **Remind the user of a concept** when a round starts a new topic: one or two sentences, with a
45
+ concrete example ("a sketch is a draft with several variants of one part, for example three
46
+ headers").
47
+ - **Check the facts before you recommend.** A recommendation built on an assumed file format or
48
+ an assumed existing tool is worse than none. Look it up first, and say in the round when a
49
+ look-up proved an earlier recommendation wrong.
50
+ - **Close with the shared state.** When the frontier is empty, list every decision in one short
51
+ summary and ask the user to confirm it before you write it anywhere.
@@ -15,6 +15,10 @@ continue in a fresh session. Two modes:
15
15
  - **save** ("handoff", "wrap up") - write a handoff file.
16
16
  - **resume** ("continue from the handoff") - read one and continue the work.
17
17
 
18
+ Text after the slug or the name is an instruction from the user, in both modes. In save mode it is
19
+ for the session that resumes, so it must reach that session word for word. In resume mode it wins
20
+ over the Next steps of the file where the two conflict.
21
+
18
22
  Name one invocation form to the user - your own - and never both. The skill is
19
23
  installed as `ethlete-handoff`, so under Claude Code the commands are
20
24
  `/ethlete-handoff` and `/ethlete-handoff resume [name]`; there is no `/handoff`.
@@ -87,6 +91,16 @@ If none of them holds, write no file. Tell the user in two or three lines what l
87
91
  the commits, and say a fresh session needs nothing from this one. A handoff nobody resumes is
88
92
  noise, and it costs the next session the tokens to read it.
89
93
 
94
+ Then give a prompt the user can copy into the fresh session, in a code block: the next task, the
95
+ plan file or finding it lives in, and any rule of this session that the repo does not record. Keep
96
+ it to a few lines.
97
+
98
+ An open item counts as the next task: a known gap, an open finding, or an unbuilt step in the plan,
99
+ in the task, or in your own report of this session. "Everything waits for the user" is true only
100
+ when every open item needs a decision of the user. Then name each decision; do not stop silently.
101
+ In a `tmux` session, restart yourself with the next task as the prompt (see the next section) instead
102
+ of handing the prompt to the user.
103
+
90
104
  Write `{%handoffDir%}/<slug>.md` where `<slug>` is a short kebab-case name for
91
105
  the task (use the user-provided slug if they gave one). If the file exists,
92
106
  overwrite it - a handoff always describes the _current_ state.
@@ -148,12 +162,48 @@ map, not a transcript.
148
162
  After writing, tell the user where it landed and that a fresh session should
149
163
  resume from it.
150
164
 
165
+ ## Clear and resume on your own
166
+
167
+ Run inside a `tmux` session started with the agent-sessions `run` command or the shell functions from `shell-install` (`echo $TMUX` is not empty and
168
+ the agent-sessions script `restart` finds the session)? Then you may clear and
169
+ resume yourself after the save, instead of asking the user to. You decide. Do it only if every line
170
+ is true:
171
+
172
+ - No sub-agent, workflow or background command still runs. A background command from the old
173
+ session reports back into the new one, and a sub-agent answer has no reader after the clear.
174
+ - No answer you wait for is open: a peer session, a mailbox reply, a CI run.
175
+ - The tree is committed, or the handoff file names every uncommitted change.
176
+ - The handoff file is saved and its Next steps are concrete.
177
+
178
+ If one line is false, finish or collect that first. If you cannot, hand the prompt to the user as
179
+ before. Then run, with the slug of the file you saved:
180
+
181
+ ```bash
182
+ node <sessions-skill-dir>/agent-sessions.mjs restart <name> '<resume command> <slug> [<text after the slug>]'
183
+ ```
184
+
185
+ If the user wrote text after the slug of the save command, append it to the prompt word for word.
186
+ Escape each `'` in it as `'\''`. The restart drops anything you leave out, and the fresh session has
187
+ no other way to see it.
188
+
189
+ `<resume command>` is your own resume form from the top of this guide, with the name this repo
190
+ installed the skill under: `/ethlete-handoff resume` under Claude Code, `ethlete-handoff resume`
191
+ under Codex. A repo that ships its own copy can name it `handoff`, so check the skill directory
192
+ name. A wrong name runs no skill, and the fresh session starts without the file.
193
+
194
+ `<name>` is the sender name of your own session. Read it first with `tmux display-message -p -t "$TMUX_PANE" '#{session_name}'` and drop the `@<repo>` part: `claude-2@ethlete-sdk` gives `claude-2`. Never take the name from an example: a second Claude session is `claude-2`, not `claude`. The command refuses a session you do not run in. It returns at once. It
195
+ types `/clear` (`/new` for a `codex` name) and the prompt into your pane a few seconds later, so
196
+ end your turn after you run it and do not start another tool call. The `/clear` wipes the pane, so
197
+ the user never sees text you write after the command. Before you run it, put the reason as the
198
+ first line of the handoff file: `Restarted because: <one line>`. End the turn with no text.
199
+
151
200
  ## Resume mode
152
201
 
153
202
  1. List `{%handoffDir%}/`. Pick the file matching the given name, or the most
154
203
  recently modified one if no name was given. If the directory is empty, say so
155
204
  and stop.
156
- 2. Read the file fully.
205
+ 2. Read the file fully. If its first line starts with `Restarted because:`, show that line to the
206
+ user first, then delete it from the file.
157
207
  3. Verify reality still matches: current branch, `git status`, last commit. If
158
208
  they diverge from the handoff (e.g. someone committed in between), say what
159
209
  changed and adapt - the repo is the truth, the handoff is the guide.
@@ -86,6 +86,13 @@ Every task carries a `kind`, and the kind decides who acts:
86
86
  3. Delete the task files you finished under `.ethlete/update`, and leave the ones you could not decide.
87
87
  4. Tell the user, per task: what you changed, and what still needs their decision.
88
88
 
89
+ ## Known traps
90
+
91
+ - **Angular 22: `a?.b` gives `undefined`, not `null`.** Once the `$safeNavigationMigration` flag is
92
+ gone, a pipe that treats `null` and `undefined` differently breaks at runtime, with no type error. A
93
+ pipe that resets its state on `undefined` returns `null`, and the template then throws on a member
94
+ read. Pass `null` explicitly: `(x?.store ?? null) | suspense`.
95
+
89
96
  ## Rules
90
97
 
91
98
  - **Never invent a migration.** Only the tasks in `.ethlete/update` and the guides they link are real.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/agent-rules",
3
- "version": "0.1.0-next.26",
3
+ "version": "0.1.0-next.28",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
package/src/index.js CHANGED
@@ -21,6 +21,7 @@ const cli_args_1 = require("./lib/cli-args");
21
21
  const config_1 = require("./lib/config");
22
22
  const git_flow_command_1 = require("./lib/git-flow-command");
23
23
  const load_content_1 = require("./lib/load-content");
24
+ const sessions_command_1 = require("./lib/sessions-command");
24
25
  const migrate_1 = require("./lib/migrate");
25
26
  const output_style_command_1 = require("./lib/output-style-command");
26
27
  const package_runner_1 = require("./lib/package-runner");
@@ -40,6 +41,9 @@ const USAGE = `ethlete-agents — compile @ethlete agent rules and skills into y
40
41
  ethlete-agents timetrack Ask the running Timetrack app about Jira - it holds this
41
42
  machine's credentials, so no repo needs a token
42
43
  (status, instance, issue, search, project, create, log)
44
+ ethlete-agents sessions Run agents in tmux sessions of one checkout: message them, wake idle
45
+ ones, restart one with a prompt, claim paths (run, up, down, restart,
46
+ send, inbox, claim). The old name "mailbox" works too
43
47
  ethlete-agents migrate Convert the repo to the AGENTS.md + .agents/skills layout:
44
48
  CLAUDE.md content moves into AGENTS.md (CLAUDE.md becomes an
45
49
  @AGENTS.md import), hand-written .claude/skills move to
@@ -112,6 +116,9 @@ const run = (argv) => {
112
116
  switch (command) {
113
117
  case 'git-flow':
114
118
  return (0, git_flow_command_1.gitFlowCommand)({ root, argv: argv.slice(1) });
119
+ case 'sessions':
120
+ case 'mailbox':
121
+ return (0, sessions_command_1.sessionsCommand)({ argv: argv.slice(1) });
115
122
  case 'output-style':
116
123
  return (0, output_style_command_1.outputStyleCommand)({ argv: argv.slice(1) });
117
124
  case 'timetrack':
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  hooks: string[];
30
30
  /** Opt-in git hooks, appended to the repo's own husky hooks. Same reason they never default. */
31
31
  gitHooks: string[];
32
+ /** Opt-in Claude Code mods from the `ethlete` marketplace the package ships. */
33
+ mods: string[];
32
34
  /** The branch grammar, resolved against its defaults — see `@ethlete/agent-rules/git-flow`. */
33
35
  gitFlow: GitFlowConfig;
34
36
  jira: JiraSettings;
package/src/lib/config.js CHANGED
@@ -30,6 +30,7 @@ const RAW_CONFIG_KEYS = [
30
30
  'claudeMdImportsAgentsMd',
31
31
  'hooks',
32
32
  'gitHooks',
33
+ 'mods',
33
34
  'gitFlow',
34
35
  'jira',
35
36
  ];
@@ -42,7 +43,7 @@ const parseJson = (text) => {
42
43
  }
43
44
  };
44
45
  const assertConfigShapes = (value) => {
45
- const arrays = ['exclude', 'hooks', 'gitHooks'];
46
+ const arrays = ['exclude', 'hooks', 'gitHooks', 'mods'];
46
47
  const objects = ['vars', 'gitFlow', 'jira'];
47
48
  for (const key of arrays) {
48
49
  const entry = value[key];
@@ -156,7 +157,7 @@ const gitFlowVars = (gitFlow) => ({
156
157
  gitFlowSubPrefix: gitFlow.subPrefix,
157
158
  });
158
159
  const loadConfig = (options) => {
159
- var _a, _b, _c, _d, _e, _f, _g;
160
+ var _a, _b, _c, _d, _e, _f, _g, _h;
160
161
  const { root, targetOverride } = options;
161
162
  const raw = readRawConfig(root);
162
163
  const configured = raw.targets && raw.targets !== 'auto' ? raw.targets : undefined;
@@ -172,8 +173,9 @@ const loadConfig = (options) => {
172
173
  claudeMdImportsAgentsMd: (_d = raw.claudeMdImportsAgentsMd) !== null && _d !== void 0 ? _d : false,
173
174
  hooks: (_e = raw.hooks) !== null && _e !== void 0 ? _e : [],
174
175
  gitHooks: (_f = raw.gitHooks) !== null && _f !== void 0 ? _f : [],
176
+ mods: (_g = raw.mods) !== null && _g !== void 0 ? _g : [],
175
177
  gitFlow,
176
- jira: (_g = raw.jira) !== null && _g !== void 0 ? _g : {},
178
+ jira: (_h = raw.jira) !== null && _h !== void 0 ? _h : {},
177
179
  configWarnings: unknownConfigKeyWarnings(raw),
178
180
  };
179
181
  };
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../libs/agent-rules/src/lib/config.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,+BAAqC;AACrC,6CAAuE;AAEvE,yCAAmF;AACnF,iDAAiD;AACjD,qDAAgG;AAEnF,QAAA,aAAa,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AAIlE,QAAA,gBAAgB,GAAG,4BAA4B,CAAC;AAEhD,QAAA,sBAAsB,GAAG,kCAAkC,CAAC;AA8CzE,uGAAuG;AAChG,MAAM,eAAe,GAAG,CAAC,KAAa,EAAE,EAAE;IAC/C,IAAI,OAAO,GAAG,KAAK,CAAC;IAEpB,OAAO,CAAC,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,OAAO,EAAE,wBAAgB,CAAC,CAAC,EAAE,CAAC;QACpD,MAAM,MAAM,GAAG,IAAA,cAAO,EAAC,OAAO,CAAC,CAAC;QAEhC,IAAI,MAAM,KAAK,OAAO;YAAE,OAAO,KAAK,CAAC;QAErC,OAAO,GAAG,MAAM,CAAC;IACnB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAZW,QAAA,eAAe,mBAY1B;AAEF,MAAM,eAAe,GAAwB;IAC3C,SAAS;IACT,SAAS;IACT,MAAM;IACN,SAAS;IACT,yBAAyB;IACzB,OAAO;IACP,UAAU;IACV,SAAS;IACT,MAAM;CACP,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,IAAY,EAA0C,EAAE;IACzE,IAAI,CAAC;QACH,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAY,EAAE,CAAC;IAChD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,KAAK,C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AAC,CAAC;IAE5B,OAAO;QACL,IAAI;QACJ,OAAO;QACP,MAAM,EAAE,GAAG,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;QACtE,IAAI,0FACC,IAAA,qCAAoB,EAAC,IAAI,EAAE,IAAA,8BAAe,GAAE,CAAC,GAC7C,IAAA,kCAAiB,EAAC,IAAI,CAAC,KAC1B,aAAa,EAAE,IAAA,oCAAmB,EAAC,IAAI,CAAC,KACrC,WAAW,CAAC,OAAO,CAAC,GACpB,IAAA,8BAAiB,EAAC,IAAA,iCAAoB,EAAC,IAAI,CAAC,CAAC,GAC7C,CAAC,MAAA,GAAG,CAAC,IAAI,mCAAI,EAAE,CAAC,CACpB;QACD,OAAO,EAAE,MAAA,GAAG,CAAC,OAAO,mCAAI,EAAE;QAC1B,uBAAuB,EAAE,MAAA,GAAG,CAAC,uBAAuB,mCAAI,KAAK;QAC7D,KAAK,EAAE,MAAA,GAAG,CAAC,KAAK,mCAAI,EAAE;QACtB,QAAQ,EAAE,MAAA,GAAG,CAAC,QAAQ,mCAAI,EAAE;QAC5B,IAAI,EAAE,MAAA,GAAG,CAAC,IAAI,mCAAI,EAAE;QACpB,OAAO;QACP,IAAI,EAAE,MAAA,GAAG,CAAC,IAAI,mCAAI,EAAE;QACpB,cAAc,EAAE,wBAAwB,CAAC,GAAG,CAAC;KAC9C,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,UAAU,cA8BrB"}
package/src/lib/plan.js CHANGED
@@ -10,6 +10,7 @@ const load_content_1 = require("./load-content");
10
10
  const package_runner_1 = require("./package-runner");
11
11
  const agents_skills_1 = require("./targets/agents-skills");
12
12
  const claude_hooks_1 = require("./targets/claude-hooks");
13
+ const claude_mods_1 = require("./targets/claude-mods");
13
14
  const claude_1 = require("./targets/claude");
14
15
  const codex_1 = require("./targets/codex");
15
16
  const codex_hooks_1 = require("./targets/codex-hooks");
@@ -197,6 +198,7 @@ const buildPlan = (options) => {
197
198
  const { config } = options;
198
199
  (0, hooks_shared_1.assertKnownHooks)(config.hooks);
199
200
  (0, git_hooks_1.assertKnownGitHooks)(config.gitHooks);
201
+ (0, claude_mods_1.assertKnownMods)(config.mods);
200
202
  const items = (0, load_content_1.loadContent)();
201
203
  const { kept, skipped } = (0, filter_1.filterContent)(items, config);
202
204
  (0, exports.assertResolvedContentReferences)({ items, kept, skipped });
@@ -227,6 +229,8 @@ const buildPlan = (options) => {
227
229
  context,
228
230
  claudeTarget: config.targets.includes('claude'),
229
231
  existingSettings: readExisting(config.root, claude_hooks_1.CLAUDE_SETTINGS_FILE),
232
+ mods: config.mods,
233
+ sdkProfile: config.scopes.includes('sdk'),
230
234
  }), ...(0, codex_hooks_1.emitCodexHooks)({
231
235
  context,
232
236
  codexTarget: config.targets.includes('codex'),
@@ -1 +1 @@
1
- {"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../../../libs/agent-rules/src/lib/plan.ts"],"names":[],"mappings":";;;AAAA,2BAAuE;AACvE,+BAAqC;AACrC,qCAOkB;AAClB,qCAA4C;AAC5C,qCAAsD;AACtD,iDAA0D;AAC1D,qDAA+C;AAC/C,2DAA2D;AAC3D,yDAA+E;AAC/E,6CAA8C;AAC9C,2CAAwD;AACxD,uDAAyE;AACzE,mDAAmH;AACnH,yDAAuE;AACvE,+CAA8D;AAC9D,6CAA8C;AAU9C,MAAM,kBAAkB,GAAG,sCAAsC,CAAC;AAClE,MAAM,qBAAqB,GAAG,yCAAyC,CAAC;AAEjE,MAAM,+BAA+B,GAAG,CAAC,OAI/C,EAAE,EAAE;;IACH,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IACzC,MAAM,WAAW,GAAG,IAAI,GAAG,CACzB,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,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,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;QAC7C,aAAa,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,8BAAgB,CAAC;KAC3D,CAAC,EACF,GAAG,IAAA,wBAAY,EAAC;QACd,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,WAAW,EAAE,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,MAAM,CAAC,IAAI,EAAE,qBAAS,CAAC,CAAC;QACrD,MAAM,EAAE,IAAA,yBAAgB,EAAC,MAAM,CAAC,IAAI,CAAC;QACrC,QAAQ,EAAE,MAAM,CAAC,WAAW,CAC1B,MAAM,CAAC,IAAI,CAAC,2BAAe,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,IAAA,yBAAa,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACnG;KACF,CAAC,CACH,CAAC;IAEF,OAAO;QACL,KAAK;QACL,OAAO;QACP,QAAQ,EAAE,eAAe,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;KACnD,CAAC;AACJ,CAAC,CAAC;AApEW,QAAA,SAAS,aAoEpB"}
@@ -0,0 +1,4 @@
1
+ export declare const SESSIONS_SCRIPT: string;
2
+ export declare const sessionsCommand: (options: {
3
+ argv: string[];
4
+ }) => number;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sessionsCommand = exports.SESSIONS_SCRIPT = void 0;
4
+ const child_process_1 = require("child_process");
5
+ const path_1 = require("path");
6
+ const load_content_1 = require("./load-content");
7
+ exports.SESSIONS_SCRIPT = (0, path_1.join)('skills', 'agent-sessions', 'agent-sessions.mjs');
8
+ const sessionsCommand = (options) => {
9
+ var _a;
10
+ const result = (0, child_process_1.spawnSync)(process.execPath, [(0, path_1.join)((0, load_content_1.resolveContentRoot)(), exports.SESSIONS_SCRIPT), ...options.argv], {
11
+ stdio: 'inherit',
12
+ });
13
+ return (_a = result.status) !== null && _a !== void 0 ? _a : 1;
14
+ };
15
+ exports.sessionsCommand = sessionsCommand;
16
+ //# sourceMappingURL=sessions-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions-command.js","sourceRoot":"","sources":["../../../../../libs/agent-rules/src/lib/sessions-command.ts"],"names":[],"mappings":";;;AAAA,iDAA0C;AAC1C,+BAA4B;AAC5B,iDAAoD;AAEvC,QAAA,eAAe,GAAG,IAAA,WAAI,EAAC,QAAQ,EAAE,gBAAgB,EAAE,oBAAoB,CAAC,CAAC;AAE/E,MAAM,eAAe,GAAG,CAAC,OAA2B,EAAE,EAAE;;IAC7D,MAAM,MAAM,GAAG,IAAA,yBAAS,EAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAA,WAAI,EAAC,IAAA,iCAAkB,GAAE,EAAE,uBAAe,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE;QACzG,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,OAAO,MAAA,MAAM,CAAC,MAAM,mCAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AANW,QAAA,eAAe,mBAM1B"}
@@ -8,4 +8,6 @@ export declare const emitClaudeHooks: (options: {
8
8
  context: EmitContext;
9
9
  claudeTarget: boolean;
10
10
  existingSettings: string;
11
+ mods: string[];
12
+ sdkProfile: boolean;
11
13
  }) => EmittedFile[];
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.emitClaudeHooks = exports.CLAUDE_SETTINGS_FILE = void 0;
4
4
  const render_1 = require("../render");
5
+ const claude_mods_1 = require("./claude-mods");
5
6
  const hooks_shared_1 = require("./hooks-shared");
6
7
  exports.CLAUDE_SETTINGS_FILE = '.claude/settings.json';
7
8
  const HOOKS_DIR = '.claude/hooks/ethlete';
@@ -11,8 +12,9 @@ const commandFor = (file) => `python3 "$CLAUDE_PROJECT_DIR/${HOOKS_DIR}/${file}"
11
12
  * repo that drops the target also gets its stale registrations removed.
12
13
  */
13
14
  const emitClaudeHooks = (options) => {
14
- const { context, claudeTarget, existingSettings } = options;
15
+ const { context, claudeTarget, existingSettings, sdkProfile } = options;
15
16
  const hooks = claudeTarget ? (0, hooks_shared_1.hooksForAgent)({ hooks: context.hooks, agent: 'claude' }) : [];
17
+ const mods = claudeTarget ? options.mods : [];
16
18
  return [
17
19
  ...(0, hooks_shared_1.emitHookScripts)({ hooks, hooksDir: HOOKS_DIR, runner: (0, render_1.packageRunnerVar)(context.vars) }),
18
20
  ...(0, hooks_shared_1.emitHookSettings)({
@@ -23,6 +25,7 @@ const emitClaudeHooks = (options) => {
23
25
  hooksDir: HOOKS_DIR,
24
26
  commandFor,
25
27
  createWhenEmpty: true,
28
+ mergeExtra: (merged) => (0, claude_mods_1.mergeModSettings)({ existing: merged, mods, marketplacePath: (0, claude_mods_1.modMarketplacePath)({ sdkProfile }) }),
26
29
  }),
27
30
  ];
28
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"claude-hooks.js","sourceRoot":"","sources":["../../../../../../libs/agent-rules/src/lib/targets/claude-hooks.ts"],"names":[],"mappings":";;;AACA,sCAA6C;AAC7C,iDAAkF;AAErE,QAAA,oBAAoB,GAAG,uBAAuB,CAAC;AAE5D,MAAM,SAAS,GAAG,uBAAuB,CAAC;AAE1C,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,gCAAgC,SAAS,IAAI,IAAI,kBAAkB,CAAC;AAEzG;;;GAGG;AACI,MAAM,eAAe,GAAG,CAAC,OAI/B,EAAiB,EAAE;IAClB,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAC5D,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,IAAA,4BAAa,EAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAA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,GAAG,IAAA,8BAAe,EAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,IAAA,yBAAgB,EAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1F,GAAG,IAAA,+BAAgB,EAAC;YAClB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,4BAAoB;YAC1B,QAAQ,EAAE,gBAAgB;YAC1B,KAAK;YACL,QAAQ,EAAE,SAAS;YACnB,UAAU;YACV,eAAe,EAAE,IAAI;YACrB,UAAU,EAAE,CAAC,MAAM,EAAE,EAAE,CACrB,IAAA,8BAAgB,EAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,IAAA,gCAAkB,EAAC,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;SACpG,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,eAAe,mBAyB1B"}
@@ -0,0 +1,20 @@
1
+ export declare const MOD_MARKETPLACE = "ethlete";
2
+ /**
3
+ * Claude Code mods a repo can opt into via the config's `mods` array. A mod runs code in every
4
+ * Claude Code session of the repo, so like the hooks it is never enabled by default.
5
+ */
6
+ export declare const KNOWN_MODS: string[];
7
+ export declare const assertKnownMods: (mods: string[]) => void;
8
+ /** Relative to the repo root. The settings file is committed, and an absolute path breaks on other machines. */
9
+ export declare const modMarketplacePath: (options: {
10
+ sdkProfile: boolean;
11
+ }) => "./libs/agent-rules/content/mods" | "./node_modules/@ethlete/agent-rules/content/mods";
12
+ /**
13
+ * Owns the `ethlete` marketplace entry and every `<mod>@ethlete` plugin entry: they are dropped and
14
+ * the configured mods re-added, so removing a mod from the config also disables it.
15
+ */
16
+ export declare const mergeModSettings: (options: {
17
+ existing: string;
18
+ mods: string[];
19
+ marketplacePath: string;
20
+ }) => string;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergeModSettings = exports.modMarketplacePath = exports.assertKnownMods = exports.KNOWN_MODS = exports.MOD_MARKETPLACE = void 0;
4
+ exports.MOD_MARKETPLACE = 'ethlete';
5
+ /**
6
+ * Claude Code mods a repo can opt into via the config's `mods` array. A mod runs code in every
7
+ * Claude Code session of the repo, so like the hooks it is never enabled by default.
8
+ */
9
+ exports.KNOWN_MODS = ['e2e-progress'];
10
+ const assertKnownMods = (mods) => {
11
+ const unknown = mods.filter((name) => !exports.KNOWN_MODS.includes(name));
12
+ if (unknown.length > 0) {
13
+ throw new Error(`Unknown mod(s): ${unknown.join(', ')}. Known mods: ${exports.KNOWN_MODS.join(', ')}.`);
14
+ }
15
+ };
16
+ exports.assertKnownMods = assertKnownMods;
17
+ /** Relative to the repo root. The settings file is committed, and an absolute path breaks on other machines. */
18
+ const modMarketplacePath = (options) => options.sdkProfile ? './libs/agent-rules/content/mods' : './node_modules/@ethlete/agent-rules/content/mods';
19
+ exports.modMarketplacePath = modMarketplacePath;
20
+ /**
21
+ * Owns the `ethlete` marketplace entry and every `<mod>@ethlete` plugin entry: they are dropped and
22
+ * the configured mods re-added, so removing a mod from the config also disables it.
23
+ */
24
+ const mergeModSettings = (options) => {
25
+ var _a, _b;
26
+ const { existing, mods, marketplacePath } = options;
27
+ const settings = JSON.parse(existing.trim() || '{}');
28
+ const marketplaces = Object.assign({}, ((_a = settings.extraKnownMarketplaces) !== null && _a !== void 0 ? _a : {}));
29
+ const plugins = Object.fromEntries(Object.entries((_b = settings.enabledPlugins) !== null && _b !== void 0 ? _b : {}).filter(([id]) => !id.endsWith(`@${exports.MOD_MARKETPLACE}`)));
30
+ delete marketplaces[exports.MOD_MARKETPLACE];
31
+ if (mods.length > 0) {
32
+ marketplaces[exports.MOD_MARKETPLACE] = { source: { source: 'directory', path: marketplacePath } };
33
+ for (const mod of mods)
34
+ plugins[`${mod}@${exports.MOD_MARKETPLACE}`] = true;
35
+ }
36
+ if (Object.keys(marketplaces).length > 0)
37
+ settings.extraKnownMarketplaces = marketplaces;
38
+ else
39
+ delete settings.extraKnownMarketplaces;
40
+ if (Object.keys(plugins).length > 0)
41
+ settings.enabledPlugins = plugins;
42
+ else
43
+ delete settings.enabledPlugins;
44
+ return `${JSON.stringify(settings, null, 2)}\n`;
45
+ };
46
+ exports.mergeModSettings = mergeModSettings;
47
+ //# sourceMappingURL=claude-mods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude-mods.js","sourceRoot":"","sources":["../../../../../../libs/agent-rules/src/lib/targets/claude-mods.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,SAAS,CAAC;AAEzC;;;GAGG;AACU,QAAA,UAAU,GAAG,CAAC,cAAc,CAAC,CAAC;AAEpC,MAAM,eAAe,GAAG,CAAC,IAAc,EAAE,EAAE;IAChD,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,kBAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAElE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,mBAAmB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,kBAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClG,CAAC;AACH,CAAC,CAAC;AANW,QAAA,eAAe,mBAM1B;AAEF,gHAAgH;AACzG,MAAM,kBAAkB,GAAG,CAAC,OAAgC,EAAE,EAAE,CACrE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,kDAAkD,CAAC;AADjG,QAAA,kBAAkB,sBAC+E;AAO9G;;;GAGG;AACI,MAAM,gBAAgB,GAAG,CAAC,OAAsE,EAAE,EAAE;;IACzG,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC;IACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,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56
  commandFor: (file: string) => string;
57
57
  createWhenEmpty: boolean;
58
+ mergeExtra?: (merged: string) => string;
58
59
  }) => EmittedFile[];
59
60
  export {};
@@ -112,11 +112,12 @@ const emitHookScripts = (options) => {
112
112
  exports.emitHookScripts = emitHookScripts;
113
113
  /** Only planned when the parsed content actually changes; an unparseable file is left alone. */
114
114
  const emitHookSettings = (options) => {
115
- const { agent, path, existing, hooks, hooksDir, commandFor, createWhenEmpty } = options;
115
+ const { agent, path, existing, hooks, hooksDir, commandFor, createWhenEmpty, mergeExtra } = options;
116
116
  if (existing.trim().length === 0 && hooks.length === 0 && !createWhenEmpty)
117
117
  return [];
118
118
  try {
119
- const merged = (0, exports.mergeHookSettings)({ agent, existing, hooks, hooksDir, commandFor });
119
+ const hookMerged = (0, exports.mergeHookSettings)({ agent, existing, hooks, hooksDir, commandFor });
120
+ const merged = mergeExtra ? mergeExtra(hookMerged) : hookMerged;
120
121
  if (JSON.stringify(JSON.parse(existing.trim() || '{}')) === JSON.stringify(JSON.parse(merged)))
121
122
  return [];
122
123
  return [{ path, contents: merged }];