@ethlete/agent-rules 0.1.0-next.51 → 0.1.0-next.52

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 (59) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +16 -53
  3. package/content/hooks/away-mode.py +90 -7
  4. package/content/hooks/{background-design-commands.py → background-commands.py} +14 -65
  5. package/content/hooks/builder-idle-check.py +90 -11
  6. package/content/mods/plugins/codex-runs/.claude-plugin/plugin.json +1 -1
  7. package/content/mods/plugins/codex-runs/hooks/agent-runs.ts +310 -0
  8. package/content/mods/plugins/codex-runs/hooks/register.tsx +171 -12
  9. package/content/mods/plugins/codex-runs/types/index.d.ts +18 -0
  10. package/content/mods/plugins/e2e-progress/.claude-plugin/plugin.json +1 -1
  11. package/content/mods/plugins/status-line/.claude-plugin/plugin.json +1 -1
  12. package/content/mods/plugins/usage-line/.claude-plugin/plugin.json +1 -1
  13. package/content/mods/plugins/usage-line/hooks/rate-limits.ts +23 -0
  14. package/content/mods/plugins/usage-line/hooks/register.tsx +16 -0
  15. package/content/skills/agent-sessions/SKILL.md +1 -1
  16. package/content/skills/codex-subagent/SKILL.md +8 -2
  17. package/content/skills/codex-subagent/codex-agent.mjs +33 -2
  18. package/content/skills/design-exploration/SKILL.md +22 -104
  19. package/content/skills/design-exploration/reference-shots.md +1 -11
  20. package/migrations/studio-claude-plugin.md +27 -0
  21. package/migrations.json +8 -0
  22. package/package.json +1 -1
  23. package/src/index.js +0 -6
  24. package/src/index.js.map +1 -1
  25. package/src/lib/config.d.ts +4 -7
  26. package/src/lib/config.js +12 -9
  27. package/src/lib/config.js.map +1 -1
  28. package/src/lib/filter.d.ts +1 -0
  29. package/src/lib/filter.js +3 -1
  30. package/src/lib/filter.js.map +1 -1
  31. package/src/lib/plan.js +6 -3
  32. package/src/lib/plan.js.map +1 -1
  33. package/src/lib/report-command.js +8 -2
  34. package/src/lib/report-command.js.map +1 -1
  35. package/src/lib/targets/hooks-shared.d.ts +5 -0
  36. package/src/lib/targets/hooks-shared.js +12 -10
  37. package/src/lib/targets/hooks-shared.js.map +1 -1
  38. package/src/lib/targets/mcp.d.ts +10 -1
  39. package/src/lib/targets/mcp.js +43 -1
  40. package/src/lib/targets/mcp.js.map +1 -1
  41. package/src/lib/timetrack.d.ts +0 -591
  42. package/src/lib/timetrack.js +3 -139
  43. package/src/lib/timetrack.js.map +1 -1
  44. package/content/hooks/design-live-check.py +0 -136
  45. package/content/skills/design-exploration/reference-check-and-notes.md +0 -101
  46. package/content/skills/design-exploration/reference-flows.md +0 -38
  47. package/content/skills/design-exploration/reference-inbox-and-mcp.md +0 -54
  48. package/content/skills/design-exploration/reference-order-and-design-system.md +0 -120
  49. package/content/skills/design-exploration/reference-products-and-sketches.md +0 -250
  50. package/content/skills/timetrack/SKILL.md +0 -324
  51. package/src/lib/peer-path.d.ts +0 -12
  52. package/src/lib/peer-path.js +0 -39
  53. package/src/lib/peer-path.js.map +0 -1
  54. package/src/lib/timetrack-command.d.ts +0 -11
  55. package/src/lib/timetrack-command.js +0 -1262
  56. package/src/lib/timetrack-command.js.map +0 -1
  57. package/src/lib/timetrack-snapshot.d.ts +0 -66
  58. package/src/lib/timetrack-snapshot.js +0 -146
  59. package/src/lib/timetrack-snapshot.js.map +0 -1
@@ -39,6 +39,12 @@ Options: `-m` model, `-e` effort (`low`, `medium`, `high`, `xhigh`), `-C` workin
39
39
  `--write`, `--resume <thread>`, `--prompt-file <file>`, `--schema <json-schema-file>`,
40
40
  `--timeout <seconds>`, `--trace`. Run it with `--help` for the full list.
41
41
 
42
+ Start every run with the Bash tool's `run_in_background`, even a short lookup. The answer comes
43
+ back as the task's notification, and the user watches the run while it works: the `codex-runs`
44
+ mod draws a progress line under the call, `/codex-runs` opens the Codex pane with every run and
45
+ its trace, and the status line counts the running runs. The wrapper writes the trace to
46
+ `$TMPDIR/codex-agent/<stamp>.jsonl` and the run's state to `<stamp>.run.json` beside it.
47
+
42
48
  The run prints a footer with the model, the sandbox, the time, the output tokens, the resume
43
49
  id and the log path. Read the log only when a run fails.
44
50
 
@@ -69,8 +75,8 @@ started read-only stays read-only, so start a new run when you need write access
69
75
 
70
76
  ## Run several at once
71
77
 
72
- The wrapper blocks until the agent is done, which takes minutes for real work. Start each run
73
- as a background command, and collect the answers when they arrive. Give each run its own
78
+ The wrapper blocks until the agent is done, which takes minutes for real work. Each run is a
79
+ background command already, so start several and collect the answers when they arrive. Give each run its own
74
80
  question. Two agents on one question waste a model.
75
81
 
76
82
  ## Write the prompt for a stranger
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
  import { spawn } from 'node:child_process';
12
- import { createWriteStream, mkdirSync, readFileSync, rmSync } from 'node:fs';
12
+ import { createWriteStream, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs';
13
13
  import { tmpdir } from 'node:os';
14
14
  import { join } from 'node:path';
15
15
  import { createInterface } from 'node:readline';
@@ -118,6 +118,15 @@ const duration = (milliseconds) => {
118
118
  return seconds < 60 ? `${seconds}s` : `${Math.floor(seconds / 60)}m${String(seconds % 60).padStart(2, '0')}s`;
119
119
  };
120
120
 
121
+ const writeIndex = (file, index) => {
122
+ try {
123
+ writeFileSync(`${file}.tmp`, `${JSON.stringify(index)}\n`);
124
+ renameSync(`${file}.tmp`, file);
125
+ } catch {
126
+ // The index only feeds the codex-runs mod; a run never fails over it.
127
+ }
128
+ };
129
+
121
130
  const run = async () => {
122
131
  const options = parseArgs(process.argv.slice(2));
123
132
 
@@ -139,6 +148,7 @@ const run = async () => {
139
148
  const stamp = new Date().toISOString().replace(/[:.]/g, '-');
140
149
  const logFile = join(logDir, `${stamp}.jsonl`);
141
150
  const lastMessageFile = join(logDir, `${stamp}.last.md`);
151
+ const indexFile = join(logDir, `${stamp}.run.json`);
142
152
  const log = createWriteStream(logFile);
143
153
  const started = Date.now();
144
154
 
@@ -149,6 +159,19 @@ const run = async () => {
149
159
 
150
160
  child.stdin.end(options.prompt);
151
161
 
162
+ const index = {
163
+ pid: process.pid,
164
+ session: process.env.CLAUDE_CODE_SESSION_ID ?? '',
165
+ cwd: options.cd,
166
+ model: options.model,
167
+ effort: options.effort,
168
+ sandbox: options.write ? 'workspace-write' : 'read-only',
169
+ prompt: options.prompt.trim().split('\n')[0].slice(0, 160),
170
+ startedAt: started,
171
+ log: logFile,
172
+ };
173
+ writeIndex(indexFile, index);
174
+
152
175
  const state = { thread: '', usage: null, errors: [], trace: [], failed: false };
153
176
 
154
177
  createInterface({ input: child.stdout }).on('line', (line) => {
@@ -194,12 +217,20 @@ const run = async () => {
194
217
  }
195
218
 
196
219
  const failed = code !== 0 || state.failed || (!finalMessage && state.errors.length > 0);
220
+ const reason = state.errors.join('\n') || stderrText.trim() || `codex exited with code ${code}`;
221
+
222
+ writeIndex(indexFile, {
223
+ ...index,
224
+ endedAt: Date.now(),
225
+ exitCode: code,
226
+ failed,
227
+ error: failed ? reason.split('\n')[0].slice(0, 300) : '',
228
+ });
197
229
 
198
230
  if (options.trace && state.trace.length > 0) process.stdout.write(`${state.trace.join('\n')}\n\n`);
199
231
  if (finalMessage) process.stdout.write(`${finalMessage}\n`);
200
232
 
201
233
  if (failed) {
202
- const reason = state.errors.join('\n') || stderrText.trim() || `codex exited with code ${code}`;
203
234
  process.stdout.write(`\ncodex agent FAILED: ${reason}\n`);
204
235
  }
205
236
 
@@ -53,9 +53,7 @@ Confirm the step size once, at the start. A task is not finished while the user
53
53
  - Nothing else. No next step, no second finding.
54
54
 
55
55
  **Do not send a screenshot.** The user keeps the call open. Screenshot only for your own check that a
56
- variant renders: `et design shot <layer>/<name> --states [--variants]` draws one contact sheet. Every
57
- flag, the motion shots and the raw screenshot script are in {%resource:reference-shots.md%}. Do not
58
- write a scratch script for batch shots.
56
+ variant renders. Do not write a scratch script for batch shots.
59
57
 
60
58
  If a second defect appears, add it to the open list and give it one line. Do not draw it.
61
59
 
@@ -63,121 +61,41 @@ If a second defect appears, add it to the open list and give it one line. Do not
63
61
 
64
62
  The exploration's plan file names the tool. Two shapes exist.
65
63
 
66
- **A repository with a `.ethlete/design` folder** keeps one design system per **product**, and the
67
- user reads and decides in Ethlete Studio. The tool is `et design`, from `@ethlete/cli`; run
68
- `et design --help` for every command, `et design <command> [<subcommand>] --help` for one.
69
- In the SDK checkout, `yarn design` builds the CLI before each call; in a check-and-shot loop,
70
- build once and call `node dist/libs/cli/src/index.js design`.
71
- Ask the user, then run `et design studio open` to show your checkout in Studio. If it is not
72
- running, the request is kept for 7 days and Studio adds the checkout at its next start (exit 3, queued). In a client run (`CLEAN_SLATE_SANDBOX` is set) the
73
- command refuses: a run must not write the user's Studio roots, so the user opens the run's checkout.
64
+ **A repository with a `.ethlete/design` folder** keeps one design system per product, drawn and decided in Ethlete
65
+ Studio. Use the Studio design MCP server (`ethlete-design`): its server instructions and its `design_guide` tool
66
+ carry the commands, the rules for products and sketches, the checks and the shots. Without that server in your tool
67
+ list, ask the user to add it.
74
68
 
75
- ```
76
- .ethlete/design/
77
- config.json the port and one `products` entry each
78
- <product>/<layer>/<part>/ layer: foundations, components, elements, pages
79
- <product>/flows/<name>.json a flow: pages and their states joined by lines
80
- <product>/sketches/<layer>-<name>/ an open sketch: sketch.json and one folder per variant
81
- <product>/comments/<id>.json a comment the user wrote in Studio
82
- calls/ old calls: Legacy, read-only
83
- ```
84
-
85
- Studio takes no new calls. **New work goes to a product**, never `et design new`. Old calls stay in
86
- the Legacy tab as reference for moving them into a product, with no picks and no new variants.
87
-
88
- ## Hard rules for products and sketches
89
-
90
- - A change to a merged part, also a small one, is a **sketch**; never edit a merged part directly. When
91
- nothing is to choose, the sketch has one variant (`--variants a`). Variants are alternatives, never a state
92
- of another variant. Two to four variants, each with its cost; run `sketch check` before `sketch ready`.
93
- - **Never run `sketch merge` or `sketch discard`, and never pick a variant, unless your role has its own picks; discarding the mood sketch is the one exception.** Studio merges on the user's
94
- click. After a pick or discard, do not merge. Run `sketch reject` or `reopen` only when the user did.
95
- - Mark a sketch `ready` only when no change waits on anything; otherwise `sketch hold`. The pick of another
96
- sketch is not a wait: draw with the part as merged now.
97
- - Every write command takes `--by <model id>`. **Never guess your id**: use the one your prompt names, or ask
98
- before you write.
99
- - `design check` opens an edit sketch for a direct edit of a merged part; the user picks in Studio. Remove a part only with `et design part remove`, never `git rm`.
100
- - Share code between variants in the sketch's `shared/` folder only. An asset is one file in `<product>/assets/`.
101
- - A user comment to combine variants is a new variant in a new round (`sketch variant --from --round --note`).
102
- - Read the inbox at the start of a session and after each `ready`. Answer with `inbox done <id> --note`,
103
- ask with `comment reply --question` only when you cannot go on. Only the user resolves a thread.
104
- - Use the `ethlete-design` MCP tools when they are in your tool list, and call `sketch_report` before every
105
- variant edit.
106
- - Draw from the design system, never invent a button or field: the product's parts, then SDK components via
107
- `ng()`, then new. Colours come from the SDK theming systems. A part exists only because the user picked a sketch.
108
- - **A new product starts with one real screen** (a film app: the overview) in two or three finished moods:
109
- real colours, real type, real content from the product's data. The user picks no mood and nothing merges:
110
- he collects by commenting on what he likes. Wait for his "collected enough", then draw the first real
111
- page from his comments as a new sketch and discard the mood sketch. Menu, navigation
112
- and layout are your call, shown only inside the finished screen: draw the masthead, menu and navigation as
113
- `elements/shell-<purpose>` inside each mood's variant folder, and let the page import it, never an inline
114
- `<header>` or `<nav>` in the page. Never draw a wireframe or a layout round of grey boxes.
115
- - Do not start a design stage before the one above it is settled: foundations, logo and
116
- CI, components, elements, pages, prototype.
117
- - A logo is explored small and elaborated after the pick: a logo sketch variant shows only the mark, at one size,
118
- so ten variants stay ten quick looks. Only after the merge of the picked variant, draw the six sections of
119
- `foundations/logo`: anatomy, clear space, minimum size, colour variants, misuse and motion (one state each:
120
- `anatomy`, `clear-space`, `minimum-size`, `colour-variants`, `misuse`, `motion`). The design check reports a missing section on a merged logo.
121
- - Mark a sketch `ready` only after you looked at a shot of each variant ({%resource:reference-shots.md%}).
122
- - Talk to the user about the product: screens, moods, content. Never name tools, commands or file paths.
123
- A variant note is at most two short sentences in the words of the screen, never a field or prop name.
124
- - Work only from your repo and what the user hands you; never search the machine or other folders for
125
- material. When an image or other material is missing, ask for it in one plain sentence.
126
- - Every interactive part (a poster card, a search field, a chip, a button) draws its own hover and focus-visible
127
- states next to rest. A page has none: it imports those parts and shows theirs, so never write a hover or
128
- focus rule only in a page's CSS.
129
- - A state must read as different from rest at a glance: change colour, surface, outline or shadow. A lift or move
130
- of a few px alone barely differs, and `sketch check` and `sketch ready` warn about it.
131
- - The app shell (masthead, menu, navigation, and any header or footer every page shares) is one element each
132
- page imports, never drawn inside a page. This holds in the first sketch too.
133
-
134
- Details, commands and examples, read on demand:
135
-
136
- - {%resource:reference-products-and-sketches.md%}: creating a product, every `sketch` command, shared code,
137
- assets, rounds, `--by`, the merge and accept flow. Read before the first sketch command.
138
- - {%resource:reference-inbox-and-mcp.md%}: reading and answering comments, thread states, the MCP tools.
139
- - {%resource:reference-flows.md%}: flow JSON, `embedPage`, the shell.
140
- - {%resource:reference-check-and-notes.md%}: `design check` rules and warnings, drawing-file constraints,
141
- `setup`, `ngStates`, notes.
142
- - {%resource:reference-order-and-design-system.md%}: the stage order, component states and
143
- `interactionRows`, `ng()` and form fields, theming rules.
144
- - {%resource:reference-shots.md%}: every `shot` flag, motion shots, the screenshot script.
145
-
146
- ## Check before you look
69
+ **A repository with a sketch Storybook** draws every variant in the **same** story, side by side, under the real
70
+ geometry the thing ships in. The default Storybook is {%storybookUrl%}; an app with its own sketch Storybook names its
71
+ port in the plan file.
147
72
 
148
- A broken build draws an overlay, so a screenshot of it looks like a design. **One check
149
- covers that, and it is the whole gate.** Name the files you changed, never a whole project,
150
- which is far slower and can fight the user's own editor.
73
+ Details, read on demand:
151
74
 
152
- With `et design`, run the checker from the checkout it draws:
75
+ - {%resource:reference-shots.md%}: screenshots of a Storybook story, with forced pseudo-states.
153
76
 
154
- ```bash
155
- et design check --lint <changed files> --tsconfig
156
- ```
157
-
158
- `--tsconfig` with no path types every call of the checkout. `--tsconfig` also types each variant of
159
- an open sketch and prints the tsc output of a failing one. `--checkout <path>` names another
160
- one.
77
+ ## Check before you look
161
78
 
162
- With a Storybook, copy {%resource:check-story.mjs%} to the **repository root** first:
79
+ A broken build draws an overlay, so a screenshot of it looks like a design. **One check covers that, and it is the
80
+ whole gate.** Name the files you changed, never a whole project, which is far slower and can fight the user's own
81
+ editor. In a Studio repository, run the check the MCP server describes. With a Storybook, copy
82
+ {%resource:check-story.mjs%} to the **repository root** first:
163
83
 
164
84
  ```bash
165
85
  node check-story.mjs --lint <changed files> --tsconfig apps/<app>/.storybook/tsconfig.json
166
86
  ```
167
87
 
168
- Both take about four seconds and need no dev server. Open a browser only when the check passes and
169
- the drawing still does not appear:
88
+ It takes about four seconds and needs no dev server. Open a browser only when the check passes and the drawing still
89
+ does not appear:
170
90
 
171
91
  ```bash
172
- et design check --call <slug> # every variant of the call
173
- et design check --call <slug> --variant b # one of them
174
92
  node check-story.mjs --tsconfig <path> --story <story-id>
175
93
  ```
176
94
 
177
- A passing check says the variant builds, not that it looks good. Before `sketch ready`, look at
178
- each variant at a readable scale and in its whole host page, and critique its hierarchy, spacing,
179
- nesting and host context together. Drop a visually weak variant before the user sees it. In your summary, say "renders correctly", never "good" or "approved":
180
- the user decides that.
95
+ A passing check says the variant builds, not that it looks good. Before the user sees a variant, look at it at a
96
+ readable scale and in its whole host page, and critique its hierarchy, spacing, nesting and host context together.
97
+ Drop a visually weak variant before the user sees it. In your summary, say "renders correctly", never "good" or
98
+ "approved": the user decides that.
181
99
 
182
100
  ## Delegating a sketch
183
101
 
@@ -193,7 +111,7 @@ command." You know the id because you chose the model; the sub-agent does not, a
193
111
  2. **One check-and-fix agent, after the drawing agents return.** Give it the changed files
194
112
  and the call slug. It runs the check above, fixes what it reports, and repeats until the
195
113
  check says `ok`. It may not change what a variant draws, only what stops it rendering.
196
- 3. **One write-up agent, once the user settles the sketch in Studio.** Give it the verdict in the
114
+ 3. **One write-up agent, once the user settles the sketch.** Give it the verdict in the
197
115
  user's own words and the plan file. It records what won, what lost and why, it sets each
198
116
  variant's `verdict` in an old call's `call.ts` (a product sketch needs none; the merge sets the note). It runs while you open
199
117
  the next call.
@@ -1,14 +1,4 @@
1
- # Design exploration: shots and screenshots
2
-
3
- **Do not send a screenshot.** The user keeps the call open. Screenshot only for your own
4
- check that a variant renders. In a repository with `et design`, take it with
5
- `et design shot <layer>/<name> --states [--variants]`: one contact sheet of every state, and
6
- every variant of the open sketch, with a label per cell; below each variant row, a diff row marks
7
- the pixels that differ from the merged state in red, or says "no pixel change" (with ", but the markup differs" when only the markup changed, e.g. both sides miss the same content). It prints the PNG path last. `--scale 2` enlarges a small part; `--crop x,y,w,h` cuts each cell to that CSS-pixel box, to judge hairlines. `--interaction hover` forces an interaction on every cell. `--state a,b` draws only those states, to compare them side by side. With `--variants`, `--round r2` or `--variant i,j` draws only those variants next to the merged row, so the current round stays readable; it filters the picture, never the checks. With `--variants`, `--diff-props` compares each variant with the merged part drawn with the variant's state props, so changed props do not paint the diff red. It draws
8
- undimmed, whatever Studio shows. Do not write a scratch script for batch shots.
9
- `et design motion shots <layer>/<name> <motion>` draws a motion at its keyframes, in full and reduced motion, into one sheet, and writes its tracks (element, properties, start, duration, easing) as JSON next to it.
10
-
11
- ## Screenshots
1
+ # Design exploration: screenshots
12
2
 
13
3
  **Off by default.** The user has the call open and sends you a picture when something looks
14
4
  wrong. Take one only when the code cannot tell you whether two variants really differ, and
@@ -0,0 +1,27 @@
1
+ # Install the Ethlete Studio Claude plugin
2
+
3
+ The design hooks `background-design-commands` and `design-live-check` moved out of `@ethlete/agent-rules`
4
+ into the `ethlete-studio` Claude Code plugin that Ethlete Studio ships. `ethlete-agents sync` removes the old
5
+ hook scripts and their settings entries and keeps the generic `background-commands` hook.
6
+
7
+ A checkout without a `.ethlete/design` folder needs nothing: delete this task file.
8
+
9
+ ## What to do
10
+
11
+ 1. Open the checkout in Ethlete Studio, press Ctrl+K and run **Agent verbinden**.
12
+ 2. Run the **Claude Code** line in a terminal. It has this form:
13
+
14
+ ```sh
15
+ cd <checkout> && claude plugin install ethlete-studio --marketplace "<Studio resources>/claude-plugin" --scope local
16
+ ```
17
+
18
+ It adds Studio's marketplace to the user settings and enables the plugin for this checkout only.
19
+
20
+ 3. Remove a hand-added `ethlete-design` server from `claude mcp` (`claude mcp remove ethlete-design`) when the
21
+ checkout had one: the plugin brings its own.
22
+
23
+ ## Done when
24
+
25
+ - A new Claude Code session in the checkout lists the `mcp__plugin_ethlete-studio_ethlete-design__*` tools.
26
+
27
+ Then delete this task file.
package/migrations.json CHANGED
@@ -34,6 +34,14 @@
34
34
  "level": "optional",
35
35
  "description": "Compare the workspace with the Nx layout rule, and decide whether any project moves.",
36
36
  "instructions": "./migrations/nx-layout.md"
37
+ },
38
+ {
39
+ "name": "studio-claude-plugin",
40
+ "version": "0.1.0-next.52",
41
+ "kind": "manual",
42
+ "level": "recommended",
43
+ "description": "The design hooks left agent-rules: a checkout that uses Ethlete Studio installs its Claude plugin to keep them.",
44
+ "instructions": "./migrations/studio-claude-plugin.md"
37
45
  }
38
46
  ]
39
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/agent-rules",
3
- "version": "0.1.0-next.51",
3
+ "version": "0.1.0-next.52",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
package/src/index.js CHANGED
@@ -29,7 +29,6 @@ const package_runner_1 = require("./lib/package-runner");
29
29
  const plain_text_1 = require("./lib/plain-text");
30
30
  const report_command_1 = require("./lib/report-command");
31
31
  const sync_1 = require("./lib/sync");
32
- const timetrack_command_1 = require("./lib/timetrack-command");
33
32
  const USAGE = `ethlete-agents — compile @ethlete agent rules and skills into your repo
34
33
 
35
34
  ethlete-agents sync Write the generated rules/skills for every detected agent
@@ -40,9 +39,6 @@ const USAGE = `ethlete-agents — compile @ethlete agent rules and skills into y
40
39
  ethlete-agents output-style
41
40
  Install an Ethlete output style into this machine's Claude Code
42
41
  config and switch to it (Claude Code only)
43
- ethlete-agents timetrack Ask the running Timetrack app about Jira - it holds this
44
- machine's credentials, so no repo needs a token
45
- (status, instance, issue, search, project, create, log)
46
42
  ethlete-agents sessions Run agents in tmux sessions of one checkout: message them, wake idle
47
43
  ones, restart one with a prompt, claim paths (run, up, down, restart,
48
44
  send, inbox, claim). The old name "mailbox" works too
@@ -128,8 +124,6 @@ const run = (argv) => {
128
124
  return (0, output_style_command_1.outputStyleCommand)({ argv: argv.slice(1) });
129
125
  case 'report':
130
126
  return (0, report_command_1.reportCommand)({ root, argv: argv.slice(1) });
131
- case 'timetrack':
132
- return (0, timetrack_command_1.timetrackCommand)({ root, argv: argv.slice(1) });
133
127
  default:
134
128
  console.log(USAGE);
135
129
  return command === undefined || command === '--help' || command === '-h' ? 0 : 1;
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/agent-rules/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,2BAAgC;AAChC,6CAA+C;AAC/C,+BAA4B;AAC5B,6CAA+D;AAC/D,yCAA+F;AAC/F,6DAAwD;AACxD,qDAAqD;AACrD,6DAAyD;AACzD,2CAAwC;AACxC,qEAAgE;AAChE,yDAA+E;AAC/E,iDAAyC;AACzC,yDAAqD;AACrD,qCAAyC;AACzC,+DAA2D;AAE3D,MAAM,KAAK,GAAG;;;;6CAI+B,yBAAgB;;;;;;;;;;;;;;;;;;;;;kDAqBX,sBAAa,CAAC,IAAI,CAAC,IAAI,CAAC;;uBAEnD,yBAAgB;;CAEtC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAc,EAAE,IAAY,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,KAAK,KAAK,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IAEnC,OAAO,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;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26
  */
27
27
  claudeMdImportsAgentsMd: boolean;
28
- /**
29
- * Opt-in agent hooks (they run commands on the developer's machine, so never default), plus
30
- * `DESIGN_SYSTEM_HOOKS` in a repo with a design system.
31
- */
28
+ /** Opt-in agent hooks: they run commands on the developer's machine, so never default. */
32
29
  hooks: string[];
33
30
  /** Opt-in git hooks, appended to the repo's own husky hooks. Same reason they never default. */
34
31
  gitHooks: string[];
@@ -76,7 +73,7 @@ export type BuilderIdleConfig = {
76
73
  * a handoff instead of writing the handoff file automatically.
77
74
  *
78
75
  * Where the sibling checkouts live (`sdkSourcePath`, `apiRepoPaths`, `apiRepoBranches`) is not here:
79
- * it moved to `@ethlete/cli`'s `ethlete.config.local.json`, because `et` reads the same values.
76
+ * it moved to `ethlete.config.local.json`, which the `et` CLI owns, because `et` reads the same values.
80
77
  *
81
78
  * No secret belongs here any more. Jira is reached through the Timetrack app, which holds the token
82
79
  * in the machine's keychain — one secret per machine rather than one per checkout.
@@ -103,12 +100,12 @@ export type LocalConfigState = {
103
100
  };
104
101
  export declare const LOCAL_CONFIG_KEYS: (keyof LocalConfig)[];
105
102
  /**
106
- * Repo topology moved to `@ethlete/cli`'s `ethlete.config.local.json`, because `et` needs it too.
103
+ * Repo topology moved to `ethlete.config.local.json`, which the `et` CLI owns, because `et` needs it too.
107
104
  * Still recognised here so a checkout that has not moved them yet gets told where they went
108
105
  * instead of an "unsupported key" warning.
109
106
  */
110
107
  export declare const MOVED_LOCAL_CONFIG_KEYS: string[];
111
- /** Named only to point a migration at it. `@ethlete/cli` owns the file and validates its values. */
108
+ /** Named only to point a migration at it. The `et` CLI owns the file and validates its values. */
112
109
  export declare const TOPOLOGY_CONFIG_FILE_NAME = "ethlete.config.local.json";
113
110
  export declare const readLocalConfig: (root: string) => LocalConfigState;
114
111
  /**
package/src/lib/config.js CHANGED
@@ -7,6 +7,7 @@ const commitlint_1 = require("./commitlint");
7
7
  const git_flow_1 = require("./git-flow");
8
8
  const load_content_1 = require("./load-content");
9
9
  const package_runner_1 = require("./package-runner");
10
+ const hooks_shared_1 = require("./targets/hooks-shared");
10
11
  exports.AGENT_TARGETS = ['claude', 'codex', 'cursor', 'copilot'];
11
12
  exports.CONFIG_FILE_NAME = 'ethlete-agents.config.json';
12
13
  exports.LOCAL_CONFIG_FILE_NAME = 'ethlete-agents.config.local.json';
@@ -111,12 +112,12 @@ exports.LOCAL_CONFIG_KEYS = [
111
112
  'mods',
112
113
  ];
113
114
  /**
114
- * Repo topology moved to `@ethlete/cli`'s `ethlete.config.local.json`, because `et` needs it too.
115
+ * Repo topology moved to `ethlete.config.local.json`, which the `et` CLI owns, because `et` needs it too.
115
116
  * Still recognised here so a checkout that has not moved them yet gets told where they went
116
117
  * instead of an "unsupported key" warning.
117
118
  */
118
119
  exports.MOVED_LOCAL_CONFIG_KEYS = ['sdkSourcePath', 'apiRepoPaths', 'apiRepoBranches'];
119
- /** Named only to point a migration at it. `@ethlete/cli` owns the file and validates its values. */
120
+ /** Named only to point a migration at it. The `et` CLI owns the file and validates its values. */
120
121
  exports.TOPOLOGY_CONFIG_FILE_NAME = 'ethlete.config.local.json';
121
122
  const readLocalConfig = (root) => {
122
123
  const path = (0, path_1.join)(root, exports.LOCAL_CONFIG_FILE_NAME);
@@ -173,12 +174,14 @@ const gitFlowVars = (gitFlow) => ({
173
174
  gitFlowEnforcement: gitFlow.enforcement,
174
175
  gitFlowSubPrefix: gitFlow.subPrefix,
175
176
  });
176
- const DESIGN_SYSTEM_HOOKS = ['design-live-check'];
177
- const resolveHooks = (root, configured) => {
178
- if (!(0, fs_1.existsSync)((0, path_1.join)(root, '.ethlete/design/config.json')))
179
- return configured;
180
- return [...configured, ...DESIGN_SYSTEM_HOOKS.filter((hook) => !configured.includes(hook))];
181
- };
177
+ const resolveHooks = (configured) => [
178
+ ...new Set(configured.flatMap((hook) => {
179
+ if (!Object.prototype.hasOwnProperty.call(hooks_shared_1.MOVED_HOOKS, hook))
180
+ return [hook];
181
+ const moved = hooks_shared_1.MOVED_HOOKS[hook];
182
+ return moved ? [moved] : [];
183
+ })),
184
+ ];
182
185
  const loadConfig = (options) => {
183
186
  var _a, _b, _c, _d, _e, _f, _g, _h;
184
187
  const { root, targetOverride } = options;
@@ -194,7 +197,7 @@ const loadConfig = (options) => {
194
197
  vars: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, package_runner_1.followPackageManager)(root, (0, load_content_1.loadDefaultVars)())), (0, package_runner_1.detectCommandVars)(root)), { packageRunner: (0, package_runner_1.detectPackageRunner)(root) }), gitFlowVars(gitFlow)), (0, commitlint_1.commitMessageVars)((0, commitlint_1.findCommitlintConfig)(root))), ((_b = raw.vars) !== null && _b !== void 0 ? _b : {})),
195
198
  exclude: (_c = raw.exclude) !== null && _c !== void 0 ? _c : [],
196
199
  claudeMdImportsAgentsMd: (_d = raw.claudeMdImportsAgentsMd) !== null && _d !== void 0 ? _d : false,
197
- hooks: resolveHooks(root, (_e = raw.hooks) !== null && _e !== void 0 ? _e : []),
200
+ hooks: resolveHooks((_e = raw.hooks) !== null && _e !== void 0 ? _e : []),
198
201
  gitHooks: (_f = raw.gitHooks) !== null && _f !== void 0 ? _f : [],
199
202
  mods: (_g = raw.mods) !== null && _g !== void 0 ? _g : [],
200
203
  gitFlow,
@@ -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;AAkEzE,uGAAuG;AAChG,MAAM,eAAe,GAAG,CAAC,KAAa,EAAE,EAAE;IAC/C,IAAI,OAAO,GA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I,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"}
@@ -15,4 +15,5 @@ export type FilterResult = {
15
15
  * workspace package rather than at the root, so monorepo consumers are not silently filtered out.
16
16
  */
17
17
  export declare const isPackageInstalled: (root: string, packageName: string) => boolean;
18
+ export declare const isBinInstalled: (root: string, binary: string) => boolean;
18
19
  export declare const filterContent: (items: ContentItem[], config: SyncConfig) => FilterResult;
package/src/lib/filter.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterContent = exports.isPackageInstalled = void 0;
3
+ exports.filterContent = exports.isBinInstalled = exports.isPackageInstalled = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const path_1 = require("path");
6
6
  /**
@@ -18,6 +18,8 @@ const isPackageInstalled = (root, packageName) => {
18
18
  return Object.prototype.hasOwnProperty.call(declared, packageName);
19
19
  };
20
20
  exports.isPackageInstalled = isPackageInstalled;
21
+ const isBinInstalled = (root, binary) => (0, fs_1.existsSync)((0, path_1.join)(root, 'node_modules', '.bin', binary));
22
+ exports.isBinInstalled = isBinInstalled;
21
23
  const filterContent = (items, config) => {
22
24
  const kept = [];
23
25
  const skipped = [];
@@ -1 +1 @@
1
- {"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../../libs/agent-rules/src/lib/filter.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,+BAA4B;AAuB5B;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,WAAmB,EAAE,EAAE;IACtE,IAAI,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,IAAI,EAAE,cAAc,EAAE,GAAG,WAAW,CAAC,KAAK,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AAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,KAAK,mCAAmC,EAAE,CAAC,CAAC;YACnG,SAAS;QACX,CAAC;QAED,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,IAAA,0BAAkB,EAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;QAErG,IAAI,cAAc,EAAE,CAAC;YACnB,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,cAAc,0BAA0B,EAAE,CAAC,CAAC;YACxG,SAAS;QACX,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,SAAS,CAAC,CAAC;QAE9E,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,UAAU,6BAA6B,EAAE,CAAC,CAAC;YACrG,SAAS;QACX,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC,CAAC;AAnCW,QAAA,aAAa,iBAmCxB"}
package/src/lib/plan.js CHANGED
@@ -230,13 +230,16 @@ const buildPlan = (options) => {
230
230
  if (config.targets.includes('copilot')) {
231
231
  files.push(...(0, copilot_1.emitCopilot)({ context, existing: readExisting(config.root, copilot_1.COPILOT_FILE) }));
232
232
  }
233
- if ((0, filter_1.isPackageInstalled)(config.root, '@ethlete/cli')) {
233
+ if ((0, filter_1.isBinInstalled)(config.root, 'et')) {
234
234
  if (config.targets.includes('claude')) {
235
- files.push((0, mcp_1.emitClaudeMcp)({
235
+ const claudeMcp = (0, mcp_1.emitClaudeMcp)({
236
236
  existing: readExisting(config.root, mcp_1.CLAUDE_MCP_FILE),
237
237
  runner: (0, render_1.packageRunnerVar)(config.vars),
238
238
  command: (0, render_1.designMcpCommandVar)(config.vars),
239
- }));
239
+ studioPluginEnabled: (0, mcp_1.isStudioPluginEnabled)(config.root),
240
+ });
241
+ if (claudeMcp)
242
+ files.push(claudeMcp);
240
243
  }
241
244
  if (config.targets.includes('codex')) {
242
245
  files.push((0, mcp_1.emitCodexMcp)({