@ethlete/agent-rules 0.1.0-next.44 → 0.1.0-next.45
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/CHANGELOG.md +22 -0
- package/README.md +19 -1
- package/content/hooks/away-mode.py +287 -0
- package/content/hooks/builder-idle-check.py +253 -0
- package/content/mods/plugins/e2e-progress/.claude-plugin/plugin.json +1 -1
- package/content/mods/plugins/status-line/.claude-plugin/plugin.json +1 -1
- package/content/skills/agent-sessions/agent-sessions.mjs +2 -0
- package/content/skills/design-exploration/SKILL.md +1 -1
- package/content/skills/design-exploration/reference-order-and-design-system.md +3 -1
- package/content/skills/design-exploration/reference-products-and-sketches.md +23 -0
- package/package.json +1 -1
- package/src/lib/config.d.ts +11 -1
- package/src/lib/config.js +10 -3
- package/src/lib/config.js.map +1 -1
- package/src/lib/targets/hooks-shared.js +12 -0
- package/src/lib/targets/hooks-shared.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @ethlete/agent-rules
|
|
2
2
|
|
|
3
|
+
## 0.1.0-next.45
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- New opt-in `builder-idle-check` Stop hook: a builder session that ends a turn with nothing running while `plans/QUEUE.md` has open Builder rows is sent back to work, with those rows named.
|
|
8
|
+
- Restore the `away-mode` hook and the `awayMode` config key, including the report on return.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- `agent-sessions run` and `restart` no longer refuse a command that sets CLAUDE_CONFIG_DIR when the caller is a human shell (no CLAUDECODE, no CLAUDE_CONFIG_DIR), so `claude2` starts from a plain terminal.
|
|
13
|
+
- `et design sketch check` warns when a state draws a title next to an `<img data-et-carries-title>`, a picture with the title baked in.
|
|
14
|
+
- `sync` registers the `design-live-check` hook in every repo with `.ethlete/design/config.json`, without the repo listing it in `hooks`. Before, no repo turned it on, so a design agent never got its live findings.
|
|
15
|
+
- `et design product new --colors` registers an error and a warning colour theme, so a danger button no longer falls back to the accent.
|
|
16
|
+
- `design sketch check` now also catches an element a variant draws in an existing part's root class or tag under another prefix (`<span class="tsh-badge">Serie</span>` for `et-badge`) as an inline rebuild, and checks only parts the drawing layer may embed.
|
|
17
|
+
- The sketch check fails a variant that draws an existing part inline (`<span>${FIXTURE.badge}</span>` beside the SDK badge) unless it embeds the part or the target states the difference.
|
|
18
|
+
- A parent sketch merge now also writes each approved sub-sketch's `shared/` and asset changes, and refuses when two of its sketches change the same file.
|
|
19
|
+
- A parent sketch merges together with its sub-sketches once every one is approved; until then each merge path refuses it.
|
|
20
|
+
- Picking another variant of a parent sketch now discards the sub-sketches it no longer marks, after a confirmation in `sketch pick` (`--discard-sub-sketches`) and in Studio.
|
|
21
|
+
- Marked sub-parts may differ between composition variants, a name match with an existing part needs `--not-rebuild-of` and a stated difference, a mark change reopens a ready sketch, and Studio shows the marks at the variant header.
|
|
22
|
+
- `et design studio open` keeps its request when Studio is not running and exits 3 (queued); Studio adds the checkout at its next start and drops requests older than 7 days or whose checkout lost its design config.
|
|
23
|
+
- `sketch check` warns when a state uses an `et-color--<name>` class that no foundation of the product defines, and names the defined ones, instead of letting it fall back to the accent silently.
|
|
24
|
+
|
|
3
25
|
## 0.1.0-next.44
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -312,7 +312,7 @@ per hook in the config:
|
|
|
312
312
|
|
|
313
313
|
```json
|
|
314
314
|
{
|
|
315
|
-
"hooks": ["context-warning", "subagent-model-policy", "background-design-commands", "git-safety"]
|
|
315
|
+
"hooks": ["context-warning", "subagent-model-policy", "background-design-commands", "git-safety", "away-mode"]
|
|
316
316
|
}
|
|
317
317
|
```
|
|
318
318
|
|
|
@@ -374,6 +374,24 @@ Available hooks:
|
|
|
374
374
|
user knows whether the task is judgment-heavy. A fork and an agent type whose own
|
|
375
375
|
definition sets a model both pass untouched, because `model` would change nothing there.
|
|
376
376
|
|
|
377
|
+
- **`builder-idle-check`** (Claude Code only) - a `Stop` hook for the builder session (the
|
|
378
|
+
one that ran the `builder-agent` skill or `/handoff resume builder-...`). When a turn ends
|
|
379
|
+
with no subagent and no background command running - a CI watcher (`gh run watch`, a
|
|
380
|
+
`gh run view` poll loop) or a dev server does not count - while `plans/QUEUE.md` has open
|
|
381
|
+
rows owned by `Builder` without a wait reason, it blocks the stop and names those rows. A
|
|
382
|
+
row waits when its `Stand` cell contains "wartet auf" or "Offen nur:". It fires once per
|
|
383
|
+
idle stop chain (`stop_hook_active` passes).
|
|
384
|
+
|
|
385
|
+
- **`away-mode`** (Claude Code only) - switches an interactive session into "user is away" mode
|
|
386
|
+
on its own. Opt in with `"awayMode": { "skills": ["my-skill"], "thresholdMinutes": 15 }` in the
|
|
387
|
+
config (the local config overrides it); a session is tracked once a prompt starts with
|
|
388
|
+
`/my-skill`. When a prompt that is not typed by a human (mailbox, cross-session, task
|
|
389
|
+
notification, restart) arrives after the threshold without typed input, the hook tells the
|
|
390
|
+
agent the user is away; the next typed prompt tells it the user is back. A typed `afk` marks
|
|
391
|
+
the session away at once. With `"reportCommand": "<cli> report"` inside `awayMode`, the back
|
|
392
|
+
message also carries that command's table since the last typed input (dropped when it fails or
|
|
393
|
+
takes over 10 s). State is kept in `.git/ethlete/away/`.
|
|
394
|
+
|
|
377
395
|
Hooks can be turned off per machine - see the local config below.
|
|
378
396
|
|
|
379
397
|
## Mods (Claude Code)
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""UserPromptSubmit hook: switch an interactive session into "user is away" mode on its own.
|
|
3
|
+
|
|
4
|
+
A session opts in through `awayMode` in ethlete-agents.config.json (the local config file
|
|
5
|
+
overrides it): {"awayMode": {"skills": ["doc-agent"], "thresholdMinutes": 15}}. Without `skills`
|
|
6
|
+
the hook does nothing. A session becomes active when a prompt starts with `/<skill>` or with
|
|
7
|
+
`/handoff resume <skill>-`.
|
|
8
|
+
|
|
9
|
+
Prompts the agent sessions send themselves (mailbox messages, cross-session messages, task
|
|
10
|
+
notifications, system reminders, the restart prompt) are not human input. The last human-typed
|
|
11
|
+
prompt is stored per session; when a non-human prompt arrives after the threshold, the hook injects
|
|
12
|
+
the away message once and a one-line reminder afterwards. The next human-typed prompt injects the
|
|
13
|
+
back message; with `awayMode.reportCommand` (e.g. `node dist/libs/agent-rules/src/index.js report`)
|
|
14
|
+
it also carries that command's table for the time away (`--since <last typed input>`), left out when the
|
|
15
|
+
command fails or takes over 10 s. A human prompt that is exactly `afk` marks the session away at once.
|
|
16
|
+
|
|
17
|
+
State lives in `<git common dir>/ethlete/away/<session_id>.json`, so it is never committed.
|
|
18
|
+
|
|
19
|
+
Can be disabled per machine via a gitignored ethlete-agents.config.local.json at the repo root:
|
|
20
|
+
{"disableHooks": true} or {"disableHooks": ["away-mode"]}.
|
|
21
|
+
|
|
22
|
+
Fail-safe: any error exits 0 with no output - the hook must never block work because it could
|
|
23
|
+
not read its own input.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
import json
|
|
27
|
+
import os
|
|
28
|
+
import re
|
|
29
|
+
import shlex
|
|
30
|
+
import subprocess
|
|
31
|
+
import sys
|
|
32
|
+
from datetime import datetime, timezone
|
|
33
|
+
|
|
34
|
+
HOOK_NAME = "away-mode"
|
|
35
|
+
CONFIG_FILE = "ethlete-agents.config.json"
|
|
36
|
+
LOCAL_CONFIG_FILE = "ethlete-agents.config.local.json"
|
|
37
|
+
DEFAULT_THRESHOLD_MINUTES = 15
|
|
38
|
+
AGENT_SESSIONS_SUFFIX = "[typed by agent-sessions]"
|
|
39
|
+
|
|
40
|
+
BACK_MESSAGE = (
|
|
41
|
+
"The user is back (typed input after {minutes} min away). Leave away mode: put every question you "
|
|
42
|
+
"collected while they were away once, in full, in your round format."
|
|
43
|
+
)
|
|
44
|
+
AWAY_MESSAGE = (
|
|
45
|
+
"The user is away (no typed input for {minutes} min). Work by your skill's away rules: collect "
|
|
46
|
+
"questions, one short line per event, no round. Typed input switches back on its own."
|
|
47
|
+
)
|
|
48
|
+
BACK_REPORT_MESSAGE = (
|
|
49
|
+
" Paste this report for the time away unchanged, then the collected questions:\n\n{report}"
|
|
50
|
+
)
|
|
51
|
+
REPORT_TIMEOUT_SECONDS = 10
|
|
52
|
+
STILL_AWAY_MESSAGE = "The user is still away (no typed input for {minutes} min)."
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def agent_name(argv):
|
|
56
|
+
"""The --agent value, defaulting to claude — older registrations pass no flag."""
|
|
57
|
+
for index, arg in enumerate(argv):
|
|
58
|
+
if arg == "--agent" and index + 1 < len(argv):
|
|
59
|
+
return argv[index + 1]
|
|
60
|
+
if arg.startswith("--agent="):
|
|
61
|
+
return arg.split("=", 1)[1]
|
|
62
|
+
return "claude"
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def repo_root(data):
|
|
66
|
+
"""Repo root: the env var the agent sets, else the script's own location, else the cwd."""
|
|
67
|
+
for variable in ("CLAUDE_PROJECT_DIR", "CODEX_PROJECT_DIR"):
|
|
68
|
+
value = os.environ.get(variable)
|
|
69
|
+
if value:
|
|
70
|
+
return value
|
|
71
|
+
here = os.path.abspath(__file__)
|
|
72
|
+
derived = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(here))))
|
|
73
|
+
if os.path.isfile(os.path.join(derived, LOCAL_CONFIG_FILE)):
|
|
74
|
+
return derived
|
|
75
|
+
cwd = data.get("cwd")
|
|
76
|
+
return cwd if isinstance(cwd, str) and cwd else derived
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def load_config(root, file_name):
|
|
80
|
+
"""Parsed JSON object at the repo root, or {} if missing/unreadable."""
|
|
81
|
+
if not root:
|
|
82
|
+
return {}
|
|
83
|
+
try:
|
|
84
|
+
with open(os.path.join(root, file_name), encoding="utf-8") as f:
|
|
85
|
+
config = json.load(f)
|
|
86
|
+
except (OSError, ValueError, AttributeError):
|
|
87
|
+
return {}
|
|
88
|
+
return config if isinstance(config, dict) else {}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def load_local_config(root):
|
|
92
|
+
return load_config(root, LOCAL_CONFIG_FILE)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def disabled_locally(config):
|
|
96
|
+
"""True when the local config disables this hook (or all hooks) on this machine."""
|
|
97
|
+
disabled = config.get("disableHooks")
|
|
98
|
+
return disabled is True or (isinstance(disabled, list) and HOOK_NAME in disabled)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def away_settings(root, local_config):
|
|
102
|
+
"""(skills, threshold in minutes); the local config's `awayMode` replaces the shared one."""
|
|
103
|
+
setting = local_config.get("awayMode")
|
|
104
|
+
if not isinstance(setting, dict):
|
|
105
|
+
setting = load_config(root, CONFIG_FILE).get("awayMode")
|
|
106
|
+
if not isinstance(setting, dict):
|
|
107
|
+
return [], DEFAULT_THRESHOLD_MINUTES
|
|
108
|
+
skills = setting.get("skills")
|
|
109
|
+
skills = [s for s in skills if isinstance(s, str) and s] if isinstance(skills, list) else []
|
|
110
|
+
threshold = setting.get("thresholdMinutes")
|
|
111
|
+
if isinstance(threshold, bool) or not isinstance(threshold, (int, float)) or threshold <= 0:
|
|
112
|
+
threshold = DEFAULT_THRESHOLD_MINUTES
|
|
113
|
+
return skills, threshold
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def report_command(root, local_config):
|
|
117
|
+
"""The configured report command; the local config's `awayMode` replaces the shared one."""
|
|
118
|
+
setting = local_config.get("awayMode")
|
|
119
|
+
if not isinstance(setting, dict):
|
|
120
|
+
setting = load_config(root, CONFIG_FILE).get("awayMode")
|
|
121
|
+
command = setting.get("reportCommand") if isinstance(setting, dict) else None
|
|
122
|
+
return command.strip() if isinstance(command, str) and command.strip() else None
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def away_report(root, command, since):
|
|
126
|
+
"""The report table since `since`, or None when the command is missing, fails or is too slow."""
|
|
127
|
+
if not command or not since:
|
|
128
|
+
return None
|
|
129
|
+
try:
|
|
130
|
+
result = subprocess.run(
|
|
131
|
+
shlex.split(command) + ["--since", since],
|
|
132
|
+
cwd=root,
|
|
133
|
+
capture_output=True,
|
|
134
|
+
text=True,
|
|
135
|
+
timeout=REPORT_TIMEOUT_SECONDS,
|
|
136
|
+
)
|
|
137
|
+
except Exception:
|
|
138
|
+
return None
|
|
139
|
+
output = result.stdout.strip()
|
|
140
|
+
return output if result.returncode == 0 and output else None
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def is_human_typed(prompt):
|
|
144
|
+
stripped = prompt.strip()
|
|
145
|
+
return not (
|
|
146
|
+
stripped.startswith("Mailbox message from ")
|
|
147
|
+
or "<cross-session-message" in stripped
|
|
148
|
+
or stripped.endswith(AGENT_SESSIONS_SUFFIX)
|
|
149
|
+
or stripped.startswith("<task-notification")
|
|
150
|
+
or stripped.startswith("<system-reminder")
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def invokes_skill(prompt, skills):
|
|
155
|
+
text = prompt.strip()
|
|
156
|
+
if text.endswith(AGENT_SESSIONS_SUFFIX):
|
|
157
|
+
text = text[: -len(AGENT_SESSIONS_SUFFIX)].strip()
|
|
158
|
+
for skill in skills:
|
|
159
|
+
name = re.escape(skill)
|
|
160
|
+
if re.match(rf"/{name}(?![\w-])", text) or re.match(rf"/handoff\s+resume\s+{name}-", text):
|
|
161
|
+
return True
|
|
162
|
+
return False
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def state_path(root, session_id):
|
|
166
|
+
result = subprocess.run(
|
|
167
|
+
["git", "-C", root, "rev-parse", "--path-format=absolute", "--git-common-dir"],
|
|
168
|
+
capture_output=True,
|
|
169
|
+
text=True,
|
|
170
|
+
timeout=3,
|
|
171
|
+
)
|
|
172
|
+
common_dir = result.stdout.strip() if result.returncode == 0 else ""
|
|
173
|
+
if not common_dir:
|
|
174
|
+
return None
|
|
175
|
+
safe_id = re.sub(r"[^\w.-]", "_", str(session_id))
|
|
176
|
+
return os.path.join(common_dir, "ethlete", "away", f"{safe_id}.json")
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
def read_state(path):
|
|
180
|
+
try:
|
|
181
|
+
with open(path, encoding="utf-8") as f:
|
|
182
|
+
state = json.load(f)
|
|
183
|
+
except (OSError, ValueError):
|
|
184
|
+
return None
|
|
185
|
+
return state if isinstance(state, dict) else None
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
def write_state(path, state):
|
|
189
|
+
os.makedirs(os.path.dirname(path), exist_ok=True)
|
|
190
|
+
with open(path, "w", encoding="utf-8") as f:
|
|
191
|
+
json.dump(state, f)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def minutes_since(iso, now):
|
|
195
|
+
try:
|
|
196
|
+
then = datetime.fromisoformat(iso)
|
|
197
|
+
except (TypeError, ValueError):
|
|
198
|
+
return None
|
|
199
|
+
if then.tzinfo is None:
|
|
200
|
+
then = then.replace(tzinfo=timezone.utc)
|
|
201
|
+
return max(0, int((now - then).total_seconds() // 60))
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
def emit(message):
|
|
205
|
+
print(
|
|
206
|
+
json.dumps(
|
|
207
|
+
{"hookSpecificOutput": {"hookEventName": "UserPromptSubmit", "additionalContext": message}}
|
|
208
|
+
)
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
def main():
|
|
213
|
+
if agent_name(sys.argv[1:]) != "claude":
|
|
214
|
+
return
|
|
215
|
+
|
|
216
|
+
data = json.load(sys.stdin)
|
|
217
|
+
prompt = data.get("prompt")
|
|
218
|
+
session_id = data.get("session_id")
|
|
219
|
+
|
|
220
|
+
if not isinstance(prompt, str) or not session_id:
|
|
221
|
+
return
|
|
222
|
+
|
|
223
|
+
root = repo_root(data)
|
|
224
|
+
local_config = load_local_config(root)
|
|
225
|
+
|
|
226
|
+
if disabled_locally(local_config):
|
|
227
|
+
return
|
|
228
|
+
|
|
229
|
+
skills, threshold = away_settings(root, local_config)
|
|
230
|
+
|
|
231
|
+
if not skills:
|
|
232
|
+
return
|
|
233
|
+
|
|
234
|
+
path = state_path(root, session_id)
|
|
235
|
+
|
|
236
|
+
if not path:
|
|
237
|
+
return
|
|
238
|
+
|
|
239
|
+
now = datetime.now(timezone.utc)
|
|
240
|
+
now_iso = now.isoformat(timespec="seconds")
|
|
241
|
+
state = read_state(path)
|
|
242
|
+
human = is_human_typed(prompt)
|
|
243
|
+
|
|
244
|
+
if not state or not state.get("active"):
|
|
245
|
+
if not invokes_skill(prompt, skills):
|
|
246
|
+
return
|
|
247
|
+
state = {"active": True, "lastHumanInput": now_iso if human else None, "away": False}
|
|
248
|
+
write_state(path, state)
|
|
249
|
+
return
|
|
250
|
+
|
|
251
|
+
if human:
|
|
252
|
+
was_away = state.get("away") is True
|
|
253
|
+
since = state.get("lastHumanInput")
|
|
254
|
+
minutes = minutes_since(since, now)
|
|
255
|
+
state["lastHumanInput"] = now_iso
|
|
256
|
+
state["away"] = prompt.strip().lower() == "afk"
|
|
257
|
+
write_state(path, state)
|
|
258
|
+
if was_away and not state["away"]:
|
|
259
|
+
message = BACK_MESSAGE.format(minutes=minutes if minutes is not None else threshold)
|
|
260
|
+
report = away_report(root, report_command(root, local_config), since)
|
|
261
|
+
if report:
|
|
262
|
+
message += BACK_REPORT_MESSAGE.format(report=report)
|
|
263
|
+
emit(message)
|
|
264
|
+
return
|
|
265
|
+
|
|
266
|
+
minutes = minutes_since(state.get("lastHumanInput"), now)
|
|
267
|
+
|
|
268
|
+
if minutes is not None and minutes < threshold:
|
|
269
|
+
return
|
|
270
|
+
|
|
271
|
+
shown = minutes if minutes is not None else int(threshold)
|
|
272
|
+
|
|
273
|
+
if state.get("away") is True:
|
|
274
|
+
emit(STILL_AWAY_MESSAGE.format(minutes=shown))
|
|
275
|
+
return
|
|
276
|
+
|
|
277
|
+
state["away"] = True
|
|
278
|
+
write_state(path, state)
|
|
279
|
+
emit(AWAY_MESSAGE.format(minutes=shown))
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
if __name__ == "__main__":
|
|
283
|
+
try:
|
|
284
|
+
main()
|
|
285
|
+
except Exception:
|
|
286
|
+
pass
|
|
287
|
+
sys.exit(0)
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Stop hook: keep a builder session working while the queue has rows for it.
|
|
3
|
+
|
|
4
|
+
A builder session (one that ran the `builder-agent` skill, or `/handoff resume
|
|
5
|
+
builder-...`) must not end a turn idle. When a turn ends with no subagent and no
|
|
6
|
+
background command running - a CI watcher or a dev server does not count - and `plans/QUEUE.md`
|
|
7
|
+
has open rows owned by `Builder` without a wait reason, the stop is blocked and
|
|
8
|
+
the reason names those rows, so the turn goes on.
|
|
9
|
+
|
|
10
|
+
Running work comes from the transcript: every background Bash, Monitor and
|
|
11
|
+
async Agent start, minus every task-notification and every TaskStop for it. An
|
|
12
|
+
agent that "is waiting on its own background work" has handed back, so it counts as done.
|
|
13
|
+
|
|
14
|
+
A row waits when its `Stand` cell contains "wartet auf" or "Offen nur:"
|
|
15
|
+
(case-insensitive). Rows owned by anyone else are skipped.
|
|
16
|
+
|
|
17
|
+
Fires at most once per idle stop chain: a stop that a Stop hook already
|
|
18
|
+
continued (`stop_hook_active`) passes.
|
|
19
|
+
|
|
20
|
+
Can be disabled per machine via a gitignored ethlete-agents.config.local.json at
|
|
21
|
+
the repo root: {"disableHooks": true} or {"disableHooks": ["builder-idle-check"]}.
|
|
22
|
+
|
|
23
|
+
Fail-safe: any error exits 0 with no output.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
import json
|
|
27
|
+
import os
|
|
28
|
+
import re
|
|
29
|
+
import sys
|
|
30
|
+
from datetime import datetime
|
|
31
|
+
|
|
32
|
+
HOOK_NAME = "builder-idle-check"
|
|
33
|
+
LOCAL_CONFIG_FILE = "ethlete-agents.config.local.json"
|
|
34
|
+
QUEUE_FILE = os.path.join("plans", "QUEUE.md")
|
|
35
|
+
QUEUE_OWNER = "Builder"
|
|
36
|
+
WAIT_MARKERS = ("wartet auf", "offen nur:")
|
|
37
|
+
|
|
38
|
+
BUILDER_LAUNCH = re.compile(
|
|
39
|
+
r"Base directory for this skill: \S*/skills/builder-agent\b"
|
|
40
|
+
r"|<command-name>/builder-agent</command-name>"
|
|
41
|
+
r"|<command-args>\s*resume\s+builder\b"
|
|
42
|
+
)
|
|
43
|
+
OTHER_ROLE_LAUNCH = re.compile(
|
|
44
|
+
r"Base directory for this skill: \S*/skills/doc-agent\b"
|
|
45
|
+
r"|<command-name>/doc-agent</command-name>"
|
|
46
|
+
r"|<command-args>\s*resume\s+doc\b"
|
|
47
|
+
)
|
|
48
|
+
WATCHER_COMMAND = re.compile(
|
|
49
|
+
r"\bgh\s+run\s+watch\b"
|
|
50
|
+
r"|\bgh\s+pr\s+checks\b[^\n]*--watch\b"
|
|
51
|
+
r"|\bglab\s+ci\s+(?:status|view)\b[^\n]*--live\b"
|
|
52
|
+
)
|
|
53
|
+
SERVER_COMMAND = re.compile(
|
|
54
|
+
r"\b(?:npm|yarn)\s+(?:run\s+)?(?:storybook|serve|start|dev)\b"
|
|
55
|
+
r"|\bnx\s+(?:serve\b|run\s+\S+:(?:serve|storybook)\b)"
|
|
56
|
+
r"|\bstorybook\s+dev\b"
|
|
57
|
+
)
|
|
58
|
+
CI_POLL = re.compile(r"\b(?:gh\s+run\s+(?:view|list)|glab\s+ci\s+(?:status|list|get))\b")
|
|
59
|
+
LOOP = re.compile(r"\b(?:while|until|for)\b")
|
|
60
|
+
NOTIFICATION = re.compile(r"<task-notification>(.*?)</task-notification>", re.S)
|
|
61
|
+
NOTIFICATION_IDS = re.compile(r"<(?:task-id|tool-use-id)>([^<]+)</(?:task-id|tool-use-id)>")
|
|
62
|
+
LINE_HINTS = ("tool_use", "task-notification", "builder", "doc-agent", "resume")
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def repo_root(data):
|
|
66
|
+
value = os.environ.get("CLAUDE_PROJECT_DIR")
|
|
67
|
+
if value:
|
|
68
|
+
return value
|
|
69
|
+
cwd = data.get("cwd")
|
|
70
|
+
return cwd if isinstance(cwd, str) and cwd else os.getcwd()
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def disabled_locally(root):
|
|
74
|
+
try:
|
|
75
|
+
with open(os.path.join(root, LOCAL_CONFIG_FILE), encoding="utf-8") as f:
|
|
76
|
+
config = json.load(f)
|
|
77
|
+
except (OSError, ValueError):
|
|
78
|
+
return False
|
|
79
|
+
disabled = config.get("disableHooks") if isinstance(config, dict) else None
|
|
80
|
+
return disabled is True or (isinstance(disabled, list) and HOOK_NAME in disabled)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def is_watcher(command):
|
|
84
|
+
if WATCHER_COMMAND.search(command) or SERVER_COMMAND.search(command):
|
|
85
|
+
return True
|
|
86
|
+
return bool(CI_POLL.search(command) and LOOP.search(command) and "sleep" in command)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def parse_time(value):
|
|
90
|
+
try:
|
|
91
|
+
return datetime.fromisoformat(value.replace("Z", "+00:00")).timestamp()
|
|
92
|
+
except (AttributeError, ValueError):
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def texts_of(content):
|
|
97
|
+
if isinstance(content, str):
|
|
98
|
+
return [content]
|
|
99
|
+
if isinstance(content, list):
|
|
100
|
+
return [item.get("text", "") for item in content if isinstance(item, dict) and item.get("type") == "text"]
|
|
101
|
+
return []
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def read_transcript(path):
|
|
105
|
+
state = {"builder": False, "tool_uses": {}, "tasks": {}, "done": set(), "now": None}
|
|
106
|
+
with open(path, encoding="utf-8") as f:
|
|
107
|
+
for raw in f:
|
|
108
|
+
if not any(hint in raw for hint in LINE_HINTS):
|
|
109
|
+
continue
|
|
110
|
+
for chunk in NOTIFICATION.findall(raw.replace("\\n", "\n")):
|
|
111
|
+
state["done"].update(NOTIFICATION_IDS.findall(chunk))
|
|
112
|
+
try:
|
|
113
|
+
line = json.loads(raw)
|
|
114
|
+
except ValueError:
|
|
115
|
+
continue
|
|
116
|
+
if not isinstance(line, dict) or line.get("isSidechain") or line.get("type") not in ("user", "assistant"):
|
|
117
|
+
continue
|
|
118
|
+
state["now"] = parse_time(line.get("timestamp")) or state["now"]
|
|
119
|
+
message = line.get("message") or {}
|
|
120
|
+
content = message.get("content")
|
|
121
|
+
if line["type"] == "user":
|
|
122
|
+
read_user_line(state, line, content)
|
|
123
|
+
else:
|
|
124
|
+
read_assistant_line(state, content)
|
|
125
|
+
return state
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def read_user_line(state, line, content):
|
|
129
|
+
for text in texts_of(content):
|
|
130
|
+
if BUILDER_LAUNCH.search(text):
|
|
131
|
+
state["builder"] = True
|
|
132
|
+
elif OTHER_ROLE_LAUNCH.search(text):
|
|
133
|
+
state["builder"] = False
|
|
134
|
+
if not isinstance(content, list):
|
|
135
|
+
return
|
|
136
|
+
result = line.get("toolUseResult")
|
|
137
|
+
if not isinstance(result, dict):
|
|
138
|
+
return
|
|
139
|
+
for item in content:
|
|
140
|
+
if not isinstance(item, dict) or item.get("type") != "tool_result":
|
|
141
|
+
continue
|
|
142
|
+
use = state["tool_uses"].get(item.get("tool_use_id"))
|
|
143
|
+
if not use:
|
|
144
|
+
continue
|
|
145
|
+
name, tool_input = use
|
|
146
|
+
task_id = result.get("backgroundTaskId") or result.get("taskId")
|
|
147
|
+
if task_id and name in ("Bash", "Monitor"):
|
|
148
|
+
started = parse_time(line.get("timestamp"))
|
|
149
|
+
timeout = result.get("timeoutMs")
|
|
150
|
+
state["tasks"][task_id] = {
|
|
151
|
+
"kind": "command",
|
|
152
|
+
"tool_use_id": item.get("tool_use_id"),
|
|
153
|
+
"label": tool_input.get("description") or tool_input.get("command", "")[:80],
|
|
154
|
+
"watcher": is_watcher(tool_input.get("command", "")),
|
|
155
|
+
"ends": started + timeout / 1000 if started and isinstance(timeout, (int, float)) else None,
|
|
156
|
+
}
|
|
157
|
+
elif result.get("agentId") and (result.get("isAsync") or result.get("status") == "async_launched"):
|
|
158
|
+
state["tasks"][result["agentId"]] = {
|
|
159
|
+
"kind": "agent",
|
|
160
|
+
"tool_use_id": item.get("tool_use_id"),
|
|
161
|
+
"label": tool_input.get("description", ""),
|
|
162
|
+
"watcher": False,
|
|
163
|
+
"ends": None,
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def read_assistant_line(state, content):
|
|
168
|
+
if not isinstance(content, list):
|
|
169
|
+
return
|
|
170
|
+
for item in content:
|
|
171
|
+
if not isinstance(item, dict) or item.get("type") != "tool_use":
|
|
172
|
+
continue
|
|
173
|
+
tool_input = item.get("input") if isinstance(item.get("input"), dict) else {}
|
|
174
|
+
state["tool_uses"][item.get("id")] = (item.get("name"), tool_input)
|
|
175
|
+
if item.get("name") == "Skill" and tool_input.get("skill") == "builder-agent":
|
|
176
|
+
state["builder"] = True
|
|
177
|
+
elif item.get("name") == "Skill" and tool_input.get("skill") == "doc-agent":
|
|
178
|
+
state["builder"] = False
|
|
179
|
+
elif item.get("name") == "TaskStop":
|
|
180
|
+
state["done"].update(str(tool_input.get(key)) for key in ("task_id", "shell_id") if tool_input.get(key))
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
def running_tasks(state):
|
|
184
|
+
now = state["now"]
|
|
185
|
+
return [
|
|
186
|
+
task
|
|
187
|
+
for task_id, task in state["tasks"].items()
|
|
188
|
+
if task_id not in state["done"]
|
|
189
|
+
and task["tool_use_id"] not in state["done"]
|
|
190
|
+
and not (task["ends"] and now and now >= task["ends"])
|
|
191
|
+
]
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def waits(stand):
|
|
195
|
+
lowered = stand.lower()
|
|
196
|
+
return any(marker in lowered for marker in WAIT_MARKERS)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def open_builder_rows(queue_text):
|
|
200
|
+
rows = []
|
|
201
|
+
stand_index = None
|
|
202
|
+
for raw in queue_text.splitlines():
|
|
203
|
+
if not raw.startswith("|"):
|
|
204
|
+
continue
|
|
205
|
+
cells = [cell.strip() for cell in raw.strip().strip("|").split("|")]
|
|
206
|
+
if cells and cells[0] == "ID":
|
|
207
|
+
stand_index = cells.index("Stand") if "Stand" in cells else None
|
|
208
|
+
continue
|
|
209
|
+
if stand_index is None or len(cells) <= stand_index or not re.fullmatch(r"[A-Z]+\d+", cells[0]):
|
|
210
|
+
continue
|
|
211
|
+
if cells[-1] == QUEUE_OWNER and not waits(cells[stand_index]):
|
|
212
|
+
rows.append(f"{cells[0]} ({cells[1]})")
|
|
213
|
+
return rows
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
def reason_for(rows, watchers):
|
|
217
|
+
watching = f" (still watching: {', '.join(watchers)})" if watchers else ""
|
|
218
|
+
return (
|
|
219
|
+
f"[{HOOK_NAME} hook] This turn ends with no subagent and no background command running apart from CI watchers and dev servers{watching}, "
|
|
220
|
+
f"while plans/QUEUE.md has open Builder rows without a wait reason: {', '.join(rows)}. "
|
|
221
|
+
"Do not wait idle: take the first of them now, or start a subagent on it. "
|
|
222
|
+
'A row waits when its Stand cell contains "wartet auf" or "Offen nur:"; if a row really waits, '
|
|
223
|
+
"write the reason into its Stand cell. This hook fires once per idle stop."
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
def main():
|
|
228
|
+
try:
|
|
229
|
+
data = json.load(sys.stdin)
|
|
230
|
+
if not isinstance(data, dict) or data.get("stop_hook_active"):
|
|
231
|
+
return
|
|
232
|
+
root = repo_root(data)
|
|
233
|
+
transcript_path = data.get("transcript_path")
|
|
234
|
+
if disabled_locally(root) or not isinstance(transcript_path, str):
|
|
235
|
+
return
|
|
236
|
+
state = read_transcript(transcript_path)
|
|
237
|
+
if not state["builder"]:
|
|
238
|
+
return
|
|
239
|
+
running = running_tasks(state)
|
|
240
|
+
if any(not task["watcher"] for task in running):
|
|
241
|
+
return
|
|
242
|
+
with open(os.path.join(root, QUEUE_FILE), encoding="utf-8") as f:
|
|
243
|
+
rows = open_builder_rows(f.read())
|
|
244
|
+
if not rows:
|
|
245
|
+
return
|
|
246
|
+
watchers = [task["label"] for task in running]
|
|
247
|
+
print(json.dumps({"decision": "block", "reason": reason_for(rows, watchers)}))
|
|
248
|
+
except Exception:
|
|
249
|
+
return
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
if __name__ == "__main__":
|
|
253
|
+
main()
|
|
@@ -218,7 +218,9 @@ const ENV_WORD = /^[A-Za-z_][A-Za-z0-9_]*=/;
|
|
|
218
218
|
const CONFIG_WORD = 'CLAUDE_CONFIG_DIR=';
|
|
219
219
|
const callerConfigDir = () => resolve(process.env.CLAUDE_CONFIG_DIR || join(homedir(), '.claude'));
|
|
220
220
|
const configDirOf = (words) => words.find((word) => word.startsWith(CONFIG_WORD))?.slice(CONFIG_WORD.length);
|
|
221
|
+
const callerIsAgent = () => Boolean(process.env.CLAUDECODE || process.env.CLAUDE_CONFIG_DIR);
|
|
221
222
|
const configMismatch = (words) => {
|
|
223
|
+
if (!callerIsAgent()) return false;
|
|
222
224
|
const given = configDirOf(words);
|
|
223
225
|
return given !== undefined && resolve(given) !== callerConfigDir();
|
|
224
226
|
};
|
|
@@ -69,7 +69,7 @@ user reads and decides in Ethlete Studio. The tool is `et design`, from `@ethlet
|
|
|
69
69
|
In the SDK checkout, `yarn design` builds the CLI before each call; in a check-and-shot loop,
|
|
70
70
|
build once and call `node dist/libs/cli/src/index.js design`.
|
|
71
71
|
Ask the user, then run `et design studio open` to show your checkout in Studio. If it is not
|
|
72
|
-
running, the
|
|
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
73
|
command refuses: a run must not write the user's Studio roots, so the user opens the run's checkout.
|
|
74
74
|
|
|
75
75
|
```
|
|
@@ -105,7 +105,9 @@ stylesheet. Give a raised or floating area `data-et-auto-surface` and an interac
|
|
|
105
105
|
`data-et-surface-interactive`, never a picked `et-surface--<name>` class: the frame resolves them by elevation like
|
|
106
106
|
`etAutoSurface` and `etSurfaceInteractive`. Give a warning, error or success accent
|
|
107
107
|
`data-et-semantic-color="<type>"`, never a picked `et-color--<name>` class: the frame resolves it by type like
|
|
108
|
-
`injectSemanticColorTheme`.
|
|
108
|
+
`injectSemanticColorTheme`. A generated colors foundation registers one theme per type, named after it
|
|
109
|
+
(`et-color--error`, `et-color--warning`); an SDK drawing input that takes a theme name, like the button's `color`,
|
|
110
|
+
takes that name, since no other name resolves. `sketch check` warns when a state uses an `et-color--<name>` no foundation of the product defines, naming the defined ones. Read the theming skill of the SDK before the first colour in a drawing. `et design check` reports
|
|
109
111
|
a denied class from the product's `deniedClasses` list in `config.json`.
|
|
110
112
|
|
|
111
113
|
A part is one folder, `<product>/<layer>/<part>/`, with its drawing and states. Read the parts of
|
|
@@ -86,6 +86,29 @@ draws that variant, or the user's pick once there is one, with no hint in Studio
|
|
|
86
86
|
cannot merge before the sub-part does; the merge of the sub-part rebases the composition sketch onto
|
|
87
87
|
the merged part.
|
|
88
88
|
|
|
89
|
+
A new part one variant builds for its own arrangement (a hero's poster strip) is a marked sub-part:
|
|
90
|
+
`sketch sub-part <target> <layer>/<name>[,…] --variant <key> --by <model id>` (`--remove` drops it).
|
|
91
|
+
Marked sub-parts may differ between variants; the check fails every new part a composition variant
|
|
92
|
+
builds without a mark, and every mark on an existing part. A new part whose name matches an existing
|
|
93
|
+
component or element (`hero-badges` and `badge`) must embed it, or state the difference:
|
|
94
|
+
`sketch sub-part … <part> "<what it is that the other is not>" --not-rebuild-of sdk:badge`. The same holds
|
|
95
|
+
for markup a variant draws inline: a value named like an existing part as an element's text
|
|
96
|
+
(`<span>${FIXTURE.badge}</span>`), or an element with content in an existing part's root class or tag under
|
|
97
|
+
another prefix (`<span class="tsh-badge">Serie</span>` for `et-badge`), must become that part, or the target states the difference with itself as
|
|
98
|
+
`<part>`. Never rename a part or value to dodge the match. Studio shows the marks at the variant header; a mark change on a ready
|
|
99
|
+
sketch moves it back to in progress.
|
|
100
|
+
|
|
101
|
+
A pick of a variant with marked sub-parts merges nothing: it opens one sub-sketch per sub-part, seeded from
|
|
102
|
+
that variant. Draw each and mark it ready with `sketch ready` first: `sketch approve` refuses a sub-sketch
|
|
103
|
+
in progress. Once the user approves it, record that with
|
|
104
|
+
`sketch approve <sub-part> --variant <key> --decided-by <their words> --by <model id>`; a sub-sketch never
|
|
105
|
+
merges on its own. The parent merge waits until every sub-sketch is approved and names the open ones;
|
|
106
|
+
then one merge writes the parent and every approved sub-part with its `shared/` and asset changes, and closes
|
|
107
|
+
the sub-sketches. Two of them changing the same `shared/` or asset file refuse the merge, naming the file.
|
|
108
|
+
A pick of another variant while the parent is unmerged discards the sub-sketches the new variant does not
|
|
109
|
+
mark, approved ones too, keeps those it marks again and opens its new ones; `sketch pick` names them and
|
|
110
|
+
needs `--discard-sub-sketches` to confirm.
|
|
111
|
+
|
|
89
112
|
A variant mirrors the product layout and holds only the parts it changes. Draw two to four
|
|
90
113
|
variants, each with what it costs, and run `sketch check` before `ready`. A variant with problems
|
|
91
114
|
cannot be picked. A part in a variant keeps every state the part has in the product: `sketch check`
|
package/package.json
CHANGED
package/src/lib/config.d.ts
CHANGED
|
@@ -25,7 +25,10 @@ export type SyncConfig = {
|
|
|
25
25
|
* `AGENTS.md` marker block, and a second copy would load twice.
|
|
26
26
|
*/
|
|
27
27
|
claudeMdImportsAgentsMd: boolean;
|
|
28
|
-
/**
|
|
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
|
+
*/
|
|
29
32
|
hooks: string[];
|
|
30
33
|
/** Opt-in git hooks, appended to the repo's own husky hooks. Same reason they never default. */
|
|
31
34
|
gitHooks: string[];
|
|
@@ -36,6 +39,12 @@ export type SyncConfig = {
|
|
|
36
39
|
jira: JiraSettings;
|
|
37
40
|
configWarnings?: string[];
|
|
38
41
|
};
|
|
42
|
+
/** Opt-in settings of the `away-mode` hook: the skills whose sessions it tracks, the idle threshold, and the command printing the report table on return. */
|
|
43
|
+
export type AwayModeConfig = {
|
|
44
|
+
skills?: string[];
|
|
45
|
+
thresholdMinutes?: number;
|
|
46
|
+
reportCommand?: string;
|
|
47
|
+
};
|
|
39
48
|
/** Opt-in settings of `ethlete-agents report`: repo-relative paths of the markdown files holding row tables and the queue. */
|
|
40
49
|
export type ReportConfig = {
|
|
41
50
|
planFiles?: string[];
|
|
@@ -64,6 +73,7 @@ export declare const readReportConfig: (root: string) => ReportConfig;
|
|
|
64
73
|
export type LocalConfig = {
|
|
65
74
|
disableHooks?: boolean | string[];
|
|
66
75
|
disableAutoHandoffSave?: boolean;
|
|
76
|
+
awayMode?: AwayModeConfig;
|
|
67
77
|
};
|
|
68
78
|
export type LocalConfigState = {
|
|
69
79
|
exists: false;
|
package/src/lib/config.js
CHANGED
|
@@ -33,6 +33,7 @@ const RAW_CONFIG_KEYS = [
|
|
|
33
33
|
'mods',
|
|
34
34
|
'gitFlow',
|
|
35
35
|
'jira',
|
|
36
|
+
'awayMode',
|
|
36
37
|
'report',
|
|
37
38
|
];
|
|
38
39
|
const parseJson = (text) => {
|
|
@@ -46,7 +47,7 @@ const parseJson = (text) => {
|
|
|
46
47
|
const assertConfigShapes = (value) => {
|
|
47
48
|
var _a;
|
|
48
49
|
const arrays = ['exclude', 'hooks', 'gitHooks', 'mods'];
|
|
49
|
-
const objects = ['vars', 'gitFlow', 'jira', 'report'];
|
|
50
|
+
const objects = ['vars', 'gitFlow', 'jira', 'awayMode', 'report'];
|
|
50
51
|
for (const key of arrays) {
|
|
51
52
|
const entry = value[key];
|
|
52
53
|
if (entry !== undefined && (!Array.isArray(entry) || entry.some((item) => typeof item !== 'string'))) {
|
|
@@ -101,7 +102,7 @@ const unknownConfigKeyWarnings = (raw) => {
|
|
|
101
102
|
]
|
|
102
103
|
: [];
|
|
103
104
|
};
|
|
104
|
-
exports.LOCAL_CONFIG_KEYS = ['disableHooks', 'disableAutoHandoffSave'];
|
|
105
|
+
exports.LOCAL_CONFIG_KEYS = ['disableHooks', 'disableAutoHandoffSave', 'awayMode'];
|
|
105
106
|
/**
|
|
106
107
|
* Repo topology moved to `@ethlete/cli`'s `ethlete.config.local.json`, because `et` needs it too.
|
|
107
108
|
* Still recognised here so a checkout that has not moved them yet gets told where they went
|
|
@@ -165,6 +166,12 @@ const gitFlowVars = (gitFlow) => ({
|
|
|
165
166
|
gitFlowEnforcement: gitFlow.enforcement,
|
|
166
167
|
gitFlowSubPrefix: gitFlow.subPrefix,
|
|
167
168
|
});
|
|
169
|
+
const DESIGN_SYSTEM_HOOKS = ['design-live-check'];
|
|
170
|
+
const resolveHooks = (root, configured) => {
|
|
171
|
+
if (!(0, fs_1.existsSync)((0, path_1.join)(root, '.ethlete/design/config.json')))
|
|
172
|
+
return configured;
|
|
173
|
+
return [...configured, ...DESIGN_SYSTEM_HOOKS.filter((hook) => !configured.includes(hook))];
|
|
174
|
+
};
|
|
168
175
|
const loadConfig = (options) => {
|
|
169
176
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
170
177
|
const { root, targetOverride } = options;
|
|
@@ -180,7 +187,7 @@ const loadConfig = (options) => {
|
|
|
180
187
|
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 : {})),
|
|
181
188
|
exclude: (_c = raw.exclude) !== null && _c !== void 0 ? _c : [],
|
|
182
189
|
claudeMdImportsAgentsMd: (_d = raw.claudeMdImportsAgentsMd) !== null && _d !== void 0 ? _d : false,
|
|
183
|
-
hooks: (_e = raw.hooks) !== null && _e !== void 0 ? _e : [],
|
|
190
|
+
hooks: resolveHooks(root, (_e = raw.hooks) !== null && _e !== void 0 ? _e : []),
|
|
184
191
|
gitHooks: (_f = raw.gitHooks) !== null && _f !== void 0 ? _f : [],
|
|
185
192
|
mods: (_g = raw.mods) !== null && _g !== void 0 ? _g : [],
|
|
186
193
|
gitFlow,
|
package/src/lib/config.js.map
CHANGED
|
@@ -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;
|
|
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,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,OA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AAI,EAAE,CAAC;QAC1C,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"}
|
|
@@ -30,6 +30,12 @@ exports.KNOWN_HOOKS = {
|
|
|
30
30
|
timeout: 10,
|
|
31
31
|
agents: ['claude'],
|
|
32
32
|
},
|
|
33
|
+
'away-mode': {
|
|
34
|
+
events: [{ event: 'UserPromptSubmit' }],
|
|
35
|
+
file: 'away-mode.py',
|
|
36
|
+
timeout: 10,
|
|
37
|
+
agents: ['claude'],
|
|
38
|
+
},
|
|
33
39
|
'background-design-commands': {
|
|
34
40
|
events: [{ event: 'PreToolUse', matcher: 'Bash' }],
|
|
35
41
|
file: 'background-design-commands.py',
|
|
@@ -42,6 +48,12 @@ exports.KNOWN_HOOKS = {
|
|
|
42
48
|
timeout: 60,
|
|
43
49
|
agents: ['claude'],
|
|
44
50
|
},
|
|
51
|
+
'builder-idle-check': {
|
|
52
|
+
events: [{ event: 'Stop' }],
|
|
53
|
+
file: 'builder-idle-check.py',
|
|
54
|
+
timeout: 10,
|
|
55
|
+
agents: ['claude'],
|
|
56
|
+
},
|
|
45
57
|
'git-safety': {
|
|
46
58
|
events: [{ event: 'PreToolUse', matcher: 'Bash' }],
|
|
47
59
|
file: 'git-safety.py',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks-shared.js","sourceRoot":"","sources":["../../../../../../libs/agent-rules/src/lib/targets/hooks-shared.ts"],"names":[],"mappings":";;;AAAA,2BAAkC;AAClC,+BAA4B;AAC5B,kDAAqD;AACrD,sCAAwC;AAmBxC;;;GAGG;AACU,QAAA,WAAW,GAA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