claude-dev-env 8.123.0 → 8.124.0
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/bin/ever-registered-hooks.mjs +2 -0
- package/bin/ever-registered-hooks.test.mjs +5 -0
- package/docs/templates/artifact-page/README.md +14 -1
- package/docs/templates/artifact-page/review-rounds.md +1 -1
- package/docs/templates/artifact-page/template.html +26 -18
- package/docs/templates/html-plan/README.md +4 -0
- package/hooks/blocking/artifact_current_page_fixtures/piled_review_page.html +399 -0
- package/hooks/blocking/artifact_current_page_fixtures/rebuilt_review_page.html +403 -0
- package/hooks/blocking/artifact_current_page_gate.py +418 -0
- package/hooks/blocking/artifact_repeated_item_render.cjs +112 -0
- package/hooks/blocking/open_tasks_stop_gate.py +12 -1
- package/hooks/blocking/open_tasks_transcript.py +30 -0
- package/hooks/blocking/open_tasks_transcript_records.py +57 -1
- package/hooks/blocking/test_artifact_current_page_gate.py +415 -0
- package/hooks/blocking/test_open_tasks_stop_gate.py +64 -0
- package/hooks/blocking/test_open_tasks_transcript.py +34 -0
- package/hooks/blocking/test_open_tasks_transcript_records.py +34 -0
- package/hooks/features/conduct-gates.md +6 -0
- package/hooks/hooks.json +15 -0
- package/hooks/hooks_constants/artifact_current_page_gate_constants.py +91 -0
- package/hooks/hooks_constants/artifact_dark_mode_gate_constants.py +3 -3
- package/hooks/hooks_constants/open_tasks_stop_gate_constants.py +8 -0
- package/hooks/hooks_constants/test_artifact_current_page_gate_constants.py +53 -0
- package/hooks/hooks_constants/test_artifact_dark_mode_gate_constants.py +6 -0
- package/hooks/session/artifact_link_record.py +109 -0
- package/hooks/session/test_artifact_link_record.py +101 -0
- package/hooks/test_context_budget_hooks.py +2 -0
- package/package.json +1 -1
- package/scripts/policy_lint/adapter_configuration.py +6 -0
- package/scripts/policy_lint/config/constants.py +1 -0
- package/scripts/tests/test_adapter_configuration.py +8 -0
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
<title>Sample Theme</title>
|
|
2
|
+
<style>
|
|
3
|
+
:root {
|
|
4
|
+
--bg: #f3f6f2; --surface: #ffffff; --fg: #17241b; --muted: #4c5c51; --line: #d5dfd6;
|
|
5
|
+
--done: #14603a; --done-soft: #dff2e6; --wait: #6f4100; --wait-soft: #fbf0dc;
|
|
6
|
+
--yours: #1f3f9c; --yours-soft: #e4ebfb;
|
|
7
|
+
--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
8
|
+
}
|
|
9
|
+
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
|
|
10
|
+
--bg: #101612; --surface: #18211b; --fg: #e5ece6; --muted: #a9b8ad; --line: #2a372e;
|
|
11
|
+
--done: #74d6a2; --done-soft: #16301f; --wait: #f0b860; --wait-soft: #33280f;
|
|
12
|
+
--yours: #a9bfff; --yours-soft: #1c2742; color-scheme: dark } }
|
|
13
|
+
:root[data-theme="dark"] {
|
|
14
|
+
--bg: #101612; --surface: #18211b; --fg: #e5ece6; --muted: #a9b8ad; --line: #2a372e;
|
|
15
|
+
--done: #74d6a2; --done-soft: #16301f; --wait: #f0b860; --wait-soft: #33280f;
|
|
16
|
+
--yours: #a9bfff; --yours-soft: #1c2742; color-scheme: dark }
|
|
17
|
+
* { box-sizing: border-box }
|
|
18
|
+
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.45;
|
|
19
|
+
padding-block: 24px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
|
|
20
|
+
.wrap { max-width: 1040px; margin: 0 auto; display: grid; gap: 20px }
|
|
21
|
+
h1 { font-size: 28px; font-weight: 800; margin: 0; text-wrap: balance }
|
|
22
|
+
h2 { font-size: 21px; font-weight: 800; margin: 0; text-wrap: balance }
|
|
23
|
+
p { margin: 0 }
|
|
24
|
+
.stamp { font-size: 16px; font-weight: 700; color: var(--muted) }
|
|
25
|
+
.steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0 }
|
|
26
|
+
.steps li, .chip { font-size: 16px; font-weight: 700; padding: 4px 12px; border-radius: 999px }
|
|
27
|
+
.done { background: var(--done-soft); color: var(--done) }
|
|
28
|
+
.wait { background: var(--wait-soft); color: var(--wait) }
|
|
29
|
+
.yours { background: var(--yours-soft); color: var(--yours) }
|
|
30
|
+
.group { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; min-width: 0 }
|
|
31
|
+
.group.pick { border-color: var(--yours) }
|
|
32
|
+
.note { font-size: 16px; font-weight: 700; color: var(--muted) }
|
|
33
|
+
.strips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start }
|
|
34
|
+
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-items: start }
|
|
35
|
+
figure { margin: 0; display: grid; gap: 8px; min-width: 0 }
|
|
36
|
+
figure img { display: block; width: 100%; max-width: 100%; border-radius: 12px; border: 2px solid var(--line); background: var(--line) }
|
|
37
|
+
.screens img { aspect-ratio: 9 / 16; object-fit: cover }
|
|
38
|
+
.strips img { aspect-ratio: 144 / 87; object-fit: cover; object-position: bottom }
|
|
39
|
+
.strips figure.whole img { aspect-ratio: 9 / 16 }
|
|
40
|
+
.toggle { font: inherit; font-size: 16px; font-weight: 700; color: var(--yours); background: var(--yours-soft); border: 2px solid var(--yours);
|
|
41
|
+
border-radius: 999px; padding: 4px 12px; cursor: pointer; justify-self: start }
|
|
42
|
+
.shot { position: relative }
|
|
43
|
+
.flag { position: absolute; top: 8px; left: 8px; background: var(--wait-soft); color: var(--wait); border: 2px solid var(--wait);
|
|
44
|
+
border-radius: 999px; padding: 2px 10px; font-size: 16px; font-weight: 800 }
|
|
45
|
+
figure.warned img { border-color: var(--wait) }
|
|
46
|
+
figcaption { display: grid; gap: 6px; font-size: 16px }
|
|
47
|
+
.name { font-size: 17px; font-weight: 800 }
|
|
48
|
+
.chips { display: flex; flex-wrap: wrap; gap: 6px }
|
|
49
|
+
.warns { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
|
|
50
|
+
.warns li { border-left: 4px solid var(--wait); padding-left: 8px; display: grid; gap: 4px; font-weight: 700; color: var(--wait) }
|
|
51
|
+
details { font-weight: 500; color: var(--muted) }
|
|
52
|
+
summary { cursor: pointer; font-size: 16px }
|
|
53
|
+
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; overflow-wrap: anywhere; display: block; padding-top: 4px }
|
|
54
|
+
.left { display: grid; gap: 8px }
|
|
55
|
+
.left ul { margin: 0; padding-left: 20px; display: grid; gap: 6px }
|
|
56
|
+
.foot { font-size: 16px; color: var(--muted) }
|
|
57
|
+
</style>
|
|
58
|
+
|
|
59
|
+
<div class="wrap">
|
|
60
|
+
<header class="left">
|
|
61
|
+
<h1>Sample Theme, first prototype run</h1>
|
|
62
|
+
<p class="stamp" id="stamp"></p>
|
|
63
|
+
</header>
|
|
64
|
+
|
|
65
|
+
<ul class="steps" id="steps"></ul>
|
|
66
|
+
|
|
67
|
+
<section class="group pick left">
|
|
68
|
+
<h2 id="pick-title"></h2>
|
|
69
|
+
<p class="note" id="pick-note"></p>
|
|
70
|
+
<div class="strips" id="pick-strips"></div>
|
|
71
|
+
</section>
|
|
72
|
+
|
|
73
|
+
<div id="sections" class="wrap"></div>
|
|
74
|
+
|
|
75
|
+
<section class="group left">
|
|
76
|
+
<h2>Warnings that no screen shows</h2>
|
|
77
|
+
<ul id="unseen"></ul>
|
|
78
|
+
</section>
|
|
79
|
+
|
|
80
|
+
<section class="group left">
|
|
81
|
+
<h2>What happens next</h2>
|
|
82
|
+
<ul id="next"></ul>
|
|
83
|
+
</section>
|
|
84
|
+
|
|
85
|
+
<p class="foot" id="foot"></p>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<script type="application/json" id="data">
|
|
89
|
+
{
|
|
90
|
+
"folder": "screens/sample-theme/",
|
|
91
|
+
"stamp": "Updated 2026-01-15 12:00 UTC. Every screen below is from sample run 3 and shows once.",
|
|
92
|
+
"steps": [
|
|
93
|
+
[
|
|
94
|
+
"done",
|
|
95
|
+
"Step 1"
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
"done",
|
|
99
|
+
"Step 2"
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
"done",
|
|
103
|
+
"Step 3"
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
"done",
|
|
107
|
+
"Step 4"
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
"done",
|
|
111
|
+
"Step 5"
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
"wait",
|
|
115
|
+
"Step 6"
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
"wait",
|
|
119
|
+
"Step 7"
|
|
120
|
+
],
|
|
121
|
+
[
|
|
122
|
+
"yours",
|
|
123
|
+
"Step 8"
|
|
124
|
+
]
|
|
125
|
+
],
|
|
126
|
+
"pick": {
|
|
127
|
+
"title": "Your pick: one of three draws",
|
|
128
|
+
"note": "Three draws of one screen.",
|
|
129
|
+
"strips": [
|
|
130
|
+
[
|
|
131
|
+
"screen-14",
|
|
132
|
+
"Draw 1",
|
|
133
|
+
"What draw 1 shows.",
|
|
134
|
+
[
|
|
135
|
+
"warning-01"
|
|
136
|
+
]
|
|
137
|
+
],
|
|
138
|
+
[
|
|
139
|
+
"screen-15",
|
|
140
|
+
"Draw 2",
|
|
141
|
+
"What draw 2 shows.",
|
|
142
|
+
[]
|
|
143
|
+
],
|
|
144
|
+
[
|
|
145
|
+
"screen-16",
|
|
146
|
+
"Draw 3",
|
|
147
|
+
"What draw 3 shows.",
|
|
148
|
+
[]
|
|
149
|
+
]
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"warnings": {
|
|
153
|
+
"warning-02": [
|
|
154
|
+
"What warning-02 means.",
|
|
155
|
+
"log line for warning-02"
|
|
156
|
+
],
|
|
157
|
+
"warning-03": [
|
|
158
|
+
"What warning-03 means.",
|
|
159
|
+
"log line for warning-03"
|
|
160
|
+
],
|
|
161
|
+
"warning-04": [
|
|
162
|
+
"What warning-04 means.",
|
|
163
|
+
"log line for warning-04"
|
|
164
|
+
],
|
|
165
|
+
"warning-05": [
|
|
166
|
+
"What warning-05 means.",
|
|
167
|
+
"log line for warning-05"
|
|
168
|
+
],
|
|
169
|
+
"warning-06": [
|
|
170
|
+
"What warning-06 means.",
|
|
171
|
+
"log line for warning-06"
|
|
172
|
+
],
|
|
173
|
+
"warning-07": [
|
|
174
|
+
"What warning-07 means.",
|
|
175
|
+
"log line for warning-07"
|
|
176
|
+
],
|
|
177
|
+
"warning-08": [
|
|
178
|
+
"What warning-08 means.",
|
|
179
|
+
"log line for warning-08"
|
|
180
|
+
],
|
|
181
|
+
"warning-09": [
|
|
182
|
+
"What warning-09 means.",
|
|
183
|
+
"log line for warning-09"
|
|
184
|
+
],
|
|
185
|
+
"warning-01": [
|
|
186
|
+
"What warning-01 means.",
|
|
187
|
+
"log line for warning-01"
|
|
188
|
+
],
|
|
189
|
+
"warning-10": [
|
|
190
|
+
"What warning-10 means.",
|
|
191
|
+
"log line for warning-10"
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"sections": [
|
|
195
|
+
{
|
|
196
|
+
"title": "Section 1",
|
|
197
|
+
"screens": [
|
|
198
|
+
[
|
|
199
|
+
"screen-01",
|
|
200
|
+
"Screen 01",
|
|
201
|
+
"new",
|
|
202
|
+
[
|
|
203
|
+
"warning-05"
|
|
204
|
+
]
|
|
205
|
+
],
|
|
206
|
+
[
|
|
207
|
+
"screen-02",
|
|
208
|
+
"Screen 02",
|
|
209
|
+
"new",
|
|
210
|
+
[
|
|
211
|
+
"warning-06"
|
|
212
|
+
]
|
|
213
|
+
],
|
|
214
|
+
[
|
|
215
|
+
"screen-03",
|
|
216
|
+
"Screen 03",
|
|
217
|
+
"base",
|
|
218
|
+
[
|
|
219
|
+
"warning-07"
|
|
220
|
+
]
|
|
221
|
+
],
|
|
222
|
+
[
|
|
223
|
+
"screen-04",
|
|
224
|
+
"Screen 04",
|
|
225
|
+
"base",
|
|
226
|
+
[
|
|
227
|
+
"warning-07"
|
|
228
|
+
]
|
|
229
|
+
]
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"title": "Section 2",
|
|
234
|
+
"screens": [
|
|
235
|
+
[
|
|
236
|
+
"screen-05",
|
|
237
|
+
"Screen 05",
|
|
238
|
+
"new",
|
|
239
|
+
[
|
|
240
|
+
"warning-06"
|
|
241
|
+
]
|
|
242
|
+
],
|
|
243
|
+
[
|
|
244
|
+
"screen-06",
|
|
245
|
+
"Screen 06",
|
|
246
|
+
"new",
|
|
247
|
+
[
|
|
248
|
+
"warning-03"
|
|
249
|
+
]
|
|
250
|
+
],
|
|
251
|
+
[
|
|
252
|
+
"screen-18",
|
|
253
|
+
"Screen 18",
|
|
254
|
+
"new",
|
|
255
|
+
[
|
|
256
|
+
"warning-04"
|
|
257
|
+
]
|
|
258
|
+
],
|
|
259
|
+
[
|
|
260
|
+
"screen-07",
|
|
261
|
+
"Screen 07",
|
|
262
|
+
"new",
|
|
263
|
+
[]
|
|
264
|
+
],
|
|
265
|
+
[
|
|
266
|
+
"screen-08",
|
|
267
|
+
"Screen 08",
|
|
268
|
+
"new",
|
|
269
|
+
[]
|
|
270
|
+
],
|
|
271
|
+
[
|
|
272
|
+
"screen-19",
|
|
273
|
+
"Screen 19",
|
|
274
|
+
"new",
|
|
275
|
+
[
|
|
276
|
+
"warning-06"
|
|
277
|
+
]
|
|
278
|
+
],
|
|
279
|
+
[
|
|
280
|
+
"screen-09",
|
|
281
|
+
"Screen 09",
|
|
282
|
+
"new",
|
|
283
|
+
[]
|
|
284
|
+
],
|
|
285
|
+
[
|
|
286
|
+
"screen-17",
|
|
287
|
+
"Screen 17",
|
|
288
|
+
"new",
|
|
289
|
+
[
|
|
290
|
+
"warning-02"
|
|
291
|
+
]
|
|
292
|
+
],
|
|
293
|
+
[
|
|
294
|
+
"screen-20",
|
|
295
|
+
"Screen 20",
|
|
296
|
+
"new",
|
|
297
|
+
[
|
|
298
|
+
"warning-08"
|
|
299
|
+
]
|
|
300
|
+
]
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"title": "Section 3",
|
|
305
|
+
"screens": [
|
|
306
|
+
[
|
|
307
|
+
"screen-10",
|
|
308
|
+
"Screen 10",
|
|
309
|
+
"base",
|
|
310
|
+
[
|
|
311
|
+
"warning-10"
|
|
312
|
+
]
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
"screen-11",
|
|
316
|
+
"Screen 11",
|
|
317
|
+
"base",
|
|
318
|
+
[
|
|
319
|
+
"warning-10",
|
|
320
|
+
"warning-09"
|
|
321
|
+
]
|
|
322
|
+
],
|
|
323
|
+
[
|
|
324
|
+
"screen-12",
|
|
325
|
+
"Screen 12",
|
|
326
|
+
"base",
|
|
327
|
+
[
|
|
328
|
+
"warning-10",
|
|
329
|
+
"warning-06"
|
|
330
|
+
]
|
|
331
|
+
],
|
|
332
|
+
[
|
|
333
|
+
"screen-13",
|
|
334
|
+
"Screen 13",
|
|
335
|
+
"base",
|
|
336
|
+
[
|
|
337
|
+
"warning-10",
|
|
338
|
+
"warning-06"
|
|
339
|
+
]
|
|
340
|
+
]
|
|
341
|
+
]
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"unseen": [
|
|
345
|
+
"Warning with no screen 1.",
|
|
346
|
+
"Warning with no screen 2.",
|
|
347
|
+
"Warning with no screen 3.",
|
|
348
|
+
"Warning with no screen 4."
|
|
349
|
+
],
|
|
350
|
+
"next": [
|
|
351
|
+
"Next step 1.",
|
|
352
|
+
"Next step 2.",
|
|
353
|
+
"Next step 3.",
|
|
354
|
+
"Next step 4."
|
|
355
|
+
],
|
|
356
|
+
"foot": "Every screen is a capture from sample run 3."
|
|
357
|
+
}
|
|
358
|
+
</script>
|
|
359
|
+
<script>
|
|
360
|
+
const data = JSON.parse(document.getElementById("data").textContent);
|
|
361
|
+
const stateChips = { new: ["done", "New art"], base: ["wait", "Still the base theme"] };
|
|
362
|
+
document.getElementById("stamp").textContent = data.stamp;
|
|
363
|
+
document.getElementById("steps").innerHTML = data.steps.map(([state, label]) => `<li class="${state}">${label}</li>`).join("");
|
|
364
|
+
document.getElementById("pick-title").textContent = data.pick.title;
|
|
365
|
+
document.getElementById("pick-note").textContent = data.pick.note;
|
|
366
|
+
const warningList = warningKeys => warningKeys.length ? `<ul class="warns">${warningKeys.map(key => `
|
|
367
|
+
<li><span>${data.warnings[key][0]}</span><details><summary>The run's log line</summary><code>${data.warnings[key][1]}</code></details></li>`).join("")}</ul>` : "";
|
|
368
|
+
document.getElementById("pick-strips").innerHTML = data.pick.strips.map(([file, label, line, warningKeys]) => `
|
|
369
|
+
<figure>
|
|
370
|
+
<img src="${data.folder}${file}.png" alt="${label}: sample screen" loading="lazy">
|
|
371
|
+
<figcaption><span class="name">${label}</span><span>${line}</span>
|
|
372
|
+
<button class="toggle" type="button">Show the whole screen</button>
|
|
373
|
+
${warningList(warningKeys)}
|
|
374
|
+
</figcaption>
|
|
375
|
+
</figure>`).join("");
|
|
376
|
+
document.getElementById("pick-strips").addEventListener("click", event => {
|
|
377
|
+
const button = event.target.closest(".toggle");
|
|
378
|
+
if (!button) return;
|
|
379
|
+
const isWhole = button.closest("figure").classList.toggle("whole");
|
|
380
|
+
button.textContent = isWhole ? "Zoom in" : "Show the whole screen";
|
|
381
|
+
});
|
|
382
|
+
const screenCard = ([file, label, state, warningKeys]) => {
|
|
383
|
+
const [chipClass, chipText] = stateChips[state];
|
|
384
|
+
const countText = warningKeys.length === 1 ? "1 warning" : `${warningKeys.length} warnings`;
|
|
385
|
+
return `
|
|
386
|
+
<figure class="${warningKeys.length ? "warned" : ""}">
|
|
387
|
+
<div class="shot"><img src="${data.folder}${file}.png" alt="${label} screen" loading="lazy">${warningKeys.length ? `<span class="flag">Warning</span>` : ""}</div>
|
|
388
|
+
<figcaption>
|
|
389
|
+
<span class="name">${label}</span>
|
|
390
|
+
<span class="chips"><span class="chip ${chipClass}">${chipText}</span>${warningKeys.length ? `<span class="chip wait">${countText}</span>` : ""}</span>
|
|
391
|
+
${warningList(warningKeys)}
|
|
392
|
+
</figcaption>
|
|
393
|
+
</figure>`;
|
|
394
|
+
};
|
|
395
|
+
document.getElementById("sections").innerHTML = data.sections.map(section => `
|
|
396
|
+
<section class="group">
|
|
397
|
+
<h2>${section.title}</h2>
|
|
398
|
+
<div class="screens">${section.screens.map(screenCard).join("")}</div>
|
|
399
|
+
</section>`).join("");
|
|
400
|
+
document.getElementById("unseen").innerHTML = data.unseen.map(line => `<li>${line}</li>`).join("");
|
|
401
|
+
document.getElementById("next").innerHTML = data.next.map(line => `<li>${line}</li>`).join("");
|
|
402
|
+
document.getElementById("foot").textContent = data.foot;
|
|
403
|
+
</script>
|