@ethlete/agent-rules 0.1.0-next.45 → 0.1.0-next.46
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 +8 -0
- package/content/hooks/builder-idle-check.py +6 -3
- 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/design-exploration/reference-check-and-notes.md +4 -0
- package/content/skills/design-exploration/reference-order-and-design-system.md +5 -0
- package/content/skills/design-exploration/reference-products-and-sketches.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @ethlete/agent-rules
|
|
2
2
|
|
|
3
|
+
## 0.1.0-next.46
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The `builder-idle-check` hook no longer counts a subagent as done when it stopped to wait on its own background work.
|
|
8
|
+
- A failed `et design sketch check` now ends with a line telling the agent to fix the cause in its variant files and draw every variant, and the design-exploration guide says a stub variant is not done.
|
|
9
|
+
- `sketch ready` refuses interactions in round 1 of a new part and demands them in the round after the pick (`INTERACTION-ROUND`).
|
|
10
|
+
|
|
3
11
|
## 0.1.0-next.45
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -8,8 +8,9 @@ has open rows owned by `Builder` without a wait reason, the stop is blocked and
|
|
|
8
8
|
the reason names those rows, so the turn goes on.
|
|
9
9
|
|
|
10
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.
|
|
12
|
-
|
|
11
|
+
async Agent start, minus every task-notification and every TaskStop for it. A
|
|
12
|
+
notification that says the agent "is waiting on its own background work" does not end it: the
|
|
13
|
+
agent has not handed back yet and notifies again when it does.
|
|
13
14
|
|
|
14
15
|
A row waits when its `Stand` cell contains "wartet auf" or "Offen nur:"
|
|
15
16
|
(case-insensitive). Rows owned by anyone else are skipped.
|
|
@@ -58,6 +59,7 @@ SERVER_COMMAND = re.compile(
|
|
|
58
59
|
CI_POLL = re.compile(r"\b(?:gh\s+run\s+(?:view|list)|glab\s+ci\s+(?:status|list|get))\b")
|
|
59
60
|
LOOP = re.compile(r"\b(?:while|until|for)\b")
|
|
60
61
|
NOTIFICATION = re.compile(r"<task-notification>(.*?)</task-notification>", re.S)
|
|
62
|
+
WAITING_SUMMARY = re.compile(r"<summary>[^<]*is waiting on its own background work")
|
|
61
63
|
NOTIFICATION_IDS = re.compile(r"<(?:task-id|tool-use-id)>([^<]+)</(?:task-id|tool-use-id)>")
|
|
62
64
|
LINE_HINTS = ("tool_use", "task-notification", "builder", "doc-agent", "resume")
|
|
63
65
|
|
|
@@ -108,7 +110,8 @@ def read_transcript(path):
|
|
|
108
110
|
if not any(hint in raw for hint in LINE_HINTS):
|
|
109
111
|
continue
|
|
110
112
|
for chunk in NOTIFICATION.findall(raw.replace("\\n", "\n")):
|
|
111
|
-
|
|
113
|
+
if not WAITING_SUMMARY.search(chunk):
|
|
114
|
+
state["done"].update(NOTIFICATION_IDS.findall(chunk))
|
|
112
115
|
try:
|
|
113
116
|
line = json.loads(raw)
|
|
114
117
|
except ValueError:
|
|
@@ -29,6 +29,10 @@ product, part, state, size and a selector path:
|
|
|
29
29
|
- `UNKNOWN-THEME` - a `et-color--<name>` class names a colour theme no stylesheet of the frame defines, so it draws in the fallback colour.
|
|
30
30
|
- `RENDER` - the frame refused to draw, or the part did not load.
|
|
31
31
|
|
|
32
|
+
A failed `sketch check` is yours to fix first: a `TYPE-ERROR` or a missing export usually comes from your variant files, so
|
|
33
|
+
correct them and run it again. Draw every variant of the sketch; a variant left as the stub `sketch new` wrote fails
|
|
34
|
+
`STATE-SENTENCE` and `sketch ready` refuses it. Report a tool fault only when the refusal is not caused by your files.
|
|
35
|
+
|
|
32
36
|
A `WARNING` line does not fail the check:
|
|
33
37
|
|
|
34
38
|
- `UNDEFINED-CLASS` - a class carries a prefix the product's part CSS uses (`st-`, not the SDK's
|
|
@@ -39,6 +39,11 @@ from `@design-system` and spread the result into `definePart`; never write those
|
|
|
39
39
|
Draw the interactions once, on the first row. A row that only changes content, such as a badge, a longer title or a
|
|
40
40
|
missing logo, is drawn only at rest: name it in `restOnly: ['series']`. `sketch ready` refuses a content row whose
|
|
41
41
|
interactions look the same as the first row's as `INTERACTION-REPEAT`.
|
|
42
|
+
The first sketch of a new part draws every variant only at rest, one state per content. Once the user picks a base
|
|
43
|
+
variant, open a second round from it (`sketch variant <layer>/<name> <key> --from <picked> --round <title> --note <why>`)
|
|
44
|
+
and draw hover, active, focus-visible and disabled there, for that variant only. `sketch ready` refuses interactions in
|
|
45
|
+
round 1 of a new part, and a missing one in a later round, as `INTERACTION-ROUND`; drop an interaction the part cannot
|
|
46
|
+
have with `sketch round <layer>/<name> <round> --drops <interaction>`.
|
|
42
47
|
`sketch check` prints `grid <rows> x <columns> ok`, or the states the grid leaves out; a state in two cells
|
|
43
48
|
fails it as `GRID`, in `design check` too.
|
|
44
49
|
Interaction states (a state name whose last word is hover, focus, pressed, active or selected, such as `row-hover`) live only on a control
|
|
@@ -204,7 +204,7 @@ pick; it refuses while the decision is a discard (the user picks a variant first
|
|
|
204
204
|
goes on the running round: what it showed and why its variants lost. Older variants stay pickable.
|
|
205
205
|
The command prints the notes of the previous round. Fix a round's title or note later with `sketch round <layer>/<name> <round> --title … --note … --by <model id>`; `sketch list` shows each sketch's rounds.
|
|
206
206
|
Letters continue across rounds (r1: a, b; r2: c, d). `sketch variant <layer>/<name> c,d --from a` adds
|
|
207
|
-
several variants at once; with `--round` they all start the new round. A new round answers the comments on the
|
|
207
|
+
several variants at once; with `--round` they all start the new round. On a new part, the round after the pick of a base variant draws its interactions (see `INTERACTION-ROUND`). A new round answers the comments on the
|
|
208
208
|
`--from` variant and marks them "addressed in round" with the new round's key. A variant without `--round` fails while the sketch has open comments and lists them: a variant that answers a comment starts a new round. Draw the combined
|
|
209
209
|
variant and mark the sketch `ready` again. `sketch new --round <title> --note <text>` names
|
|
210
210
|
round 1 and sets its note; `--round` without `--note` fails. `sketch ready` refuses while the running round has no note; set it with `sketch round`.
|