@bendyline/gilde 0.3.0 → 0.3.2
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/authoring/tactical/wave.json +18 -18
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/craftbook.json +418 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/test.json +196 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/craftbook.json +432 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/test.json +192 -0
- package/data/craftbook-templates/al/alert-rules/versions/1.0.5/craftbook.json +384 -0
- package/data/craftbook-templates/al/alert-rules/versions/1.0.5/test.json +145 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/craftbook.json +736 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/test.json +221 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/craftbook.json +799 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/test.json +221 -0
- package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/craftbook.json +119 -0
- package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/test.json +128 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/craftbook.json +607 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/test.json +252 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/craftbook.json +661 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/test.json +252 -0
- package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/craftbook.json +416 -0
- package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/test.json +238 -0
- package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/craftbook.json +494 -0
- package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/test.json +167 -0
- package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/craftbook.json +419 -0
- package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/test.json +172 -0
- package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/craftbook.json +285 -0
- package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/test.json +102 -0
- package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/craftbook.json +431 -0
- package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/test.json +348 -0
- package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/craftbook.json +452 -0
- package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/test.json +184 -0
- package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/craftbook.json +625 -0
- package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/test.json +235 -0
- package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/craftbook.json +312 -0
- package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/test.json +87 -0
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/craftbook.json +702 -0
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/test.json +191 -0
- package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/craftbook.json +720 -0
- package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/test.json +239 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/craftbook.json +480 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/test.json +176 -0
- package/data/craftbook-templates/in/investigate/versions/1.1.1/craftbook.json +85 -0
- package/data/craftbook-templates/in/investigate/versions/1.1.1/test.json +118 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.9/craftbook.json +515 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.9/test.json +140 -0
- package/data/craftbook-templates/index.json +1 -1
- package/data/craftbook-templates/ma/market-scan/versions/1.0.5/craftbook.json +480 -0
- package/data/craftbook-templates/ma/market-scan/versions/1.0.5/test.json +223 -0
- package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/craftbook.json +255 -0
- package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/test.json +140 -0
- package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/craftbook.json +270 -0
- package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/test.json +105 -0
- package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/craftbook.json +320 -0
- package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/test.json +94 -0
- package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/craftbook.json +699 -0
- package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/test.json +235 -0
- package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/craftbook.json +603 -0
- package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/test.json +266 -0
- package/data/craftbook-templates/pr/press-release/versions/1.0.6/craftbook.json +450 -0
- package/data/craftbook-templates/pr/press-release/versions/1.0.6/test.json +356 -0
- package/data/craftbook-templates/raw-index.json +1 -1
- package/data/craftbook-templates/re/refactor-module/versions/2.0.6/craftbook.json +699 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.6/test.json +241 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.7/craftbook.json +753 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.7/test.json +241 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.6/craftbook.json +339 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.6/test.json +107 -0
- package/data/craftbook-templates/re/research-report/versions/1.0.6/craftbook.json +417 -0
- package/data/craftbook-templates/re/research-report/versions/1.0.6/test.json +183 -0
- package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/craftbook.json +319 -0
- package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/test.json +87 -0
- package/data/craftbook-templates/ru/runbook/versions/1.0.5/craftbook.json +491 -0
- package/data/craftbook-templates/ru/runbook/versions/1.0.5/test.json +118 -0
- package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/craftbook.json +626 -0
- package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/test.json +225 -0
- package/data/craftbook-templates/sh/ship/versions/1.1.4/craftbook.json +353 -0
- package/data/craftbook-templates/sh/ship/versions/1.1.4/test.json +235 -0
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/craftbook.json +596 -0
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/test.json +195 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/craftbook.json +596 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/test.json +221 -0
- package/data/craftbook-templates/we/week-plan/versions/1.0.5/craftbook.json +313 -0
- package/data/craftbook-templates/we/week-plan/versions/1.0.5/test.json +175 -0
- package/data/gezel-templates/im/image-editor/manifest.json +21 -0
- package/data/gezel-templates/im/image-editor/versions/1.0.0/about.md +17 -0
- package/data/gezel-templates/im/image-editor/versions/1.0.0/manifest.json +14 -0
- package/data/gezel-templates/index.json +1 -1
- package/data/gezel-templates/raw-index.json +1 -1
- package/data/image-models/fl/flux-2-klein-4b-q4/manifest.json +3 -0
- package/data/image-models/index.json +1 -1
- package/data/image-models/qw/qwen-image-edit-2511-q4/manifest.json +44 -0
- package/data/image-models/qw/qwen-image-edit-2511-q4/versions/1.0.0/manifest.json +36 -0
- package/data/image-models/raw-index.json +1 -1
- package/package.json +1 -1
- package/schemas/image-model-identity.schema.json +16 -0
- package/schemas/image-model-version.schema.json +1 -0
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "html-arcade-game",
|
|
3
|
+
"name": "HTML Arcade Game",
|
|
4
|
+
"description": "Build a playable single-file HTML/canvas arcade game (shooter, runner, dodger, etc.). Splits design into game-mechanics and visual look, builds, then evaluates against a playability bar and loops until it is actually fun and bug-free.\n\nA gallery craftbook generated from an archetype spec. It runs\n`phase → (per-phase gate) → … → evaluate → (loop) → finish`. Each build\nphase that produces a checkable artifact is followed by a **runtime\ngate-checkpoint** — the runtime verifies the artifact and routes with no\nmodel turn, looping back to redo the phase on a miss. The final `evaluate`\nstep holds a static deliverable gate plus a reviewer QA pass. What it adds\nover the generic `build-loop`: a specialist role per phase, a\ndomain-correct ordering, and a concrete per-phase quality bar.\n\nDeliverables marked \"artifact\" land in the project's artifacts drawer (`write_artifact` / `read_artifact`), not the shipped workspace — review output is not product source.\n\nPhases:\n\n1. Game design (game-designer) — mechanics, controls, win/lose, difficulty → gated on artifact `design/game-design.md` (markdown-notes)\n2. Visual design (visual-designer) — palette, shapes/sprites, layout, juice → gated on artifact `design/visual-design.md` (markdown-notes)\n3. Build (developer) — implement the game in one index.html → gated on `index.html` (html-game)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
|
|
5
|
+
"entryStepId": "game-design",
|
|
6
|
+
"triggers": [
|
|
7
|
+
"arcade game",
|
|
8
|
+
"space shooter",
|
|
9
|
+
"html game",
|
|
10
|
+
"build a game"
|
|
11
|
+
],
|
|
12
|
+
"contract": {
|
|
13
|
+
"goal": "A playable, self-contained arcade game in one index.html: a real game loop and input, a visible win or lose state, and an in-page restart, with scripts that parse and no network assets.",
|
|
14
|
+
"deliverables": [
|
|
15
|
+
{
|
|
16
|
+
"id": "game",
|
|
17
|
+
"path": "index.html",
|
|
18
|
+
"kind": "html-game",
|
|
19
|
+
"description": "The finished game, with its CSS and JavaScript inline"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"criteria": [
|
|
23
|
+
{
|
|
24
|
+
"id": "real-game",
|
|
25
|
+
"kind": "acceptance",
|
|
26
|
+
"text": "index.html is a complete, substantial game page whose HTML is well formed and whose inline scripts parse",
|
|
27
|
+
"checks": [
|
|
28
|
+
{
|
|
29
|
+
"kind": "minBytes",
|
|
30
|
+
"file": "index.html",
|
|
31
|
+
"bytes": 3200
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"kind": "sniff",
|
|
35
|
+
"file": "index.html",
|
|
36
|
+
"sniff": "html-game"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"kind": "htmlLint",
|
|
40
|
+
"file": "index.html"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "loop-and-input",
|
|
46
|
+
"kind": "acceptance",
|
|
47
|
+
"text": "It runs a game loop and handles player input",
|
|
48
|
+
"checks": [
|
|
49
|
+
{
|
|
50
|
+
"kind": "contains",
|
|
51
|
+
"file": "index.html",
|
|
52
|
+
"pattern": "requestAnimationFrame\\s*\\(|set(?:Interval|Timeout)\\s*\\(",
|
|
53
|
+
"label": "a game loop"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"kind": "contains",
|
|
57
|
+
"file": "index.html",
|
|
58
|
+
"pattern": "addEventListener\\s*\\(\\s*['\"](?:key(?:down|up|press)|pointer(?:down|move|up)|mouse(?:down|move|up)|touch(?:start|move|end)|click)['\"]|\\bon(?:key(?:down|up|press)|pointer(?:down|move)|mouse(?:down|move)|touchstart|click)\\s*=",
|
|
59
|
+
"flags": "i",
|
|
60
|
+
"label": "input handling"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "end-and-restart",
|
|
66
|
+
"kind": "acceptance",
|
|
67
|
+
"text": "A round reaches a visible win or lose state, and the player can restart in the page",
|
|
68
|
+
"checks": [
|
|
69
|
+
{
|
|
70
|
+
"kind": "contains",
|
|
71
|
+
"file": "index.html",
|
|
72
|
+
"pattern": "game\\s*-?\\s*over|you\\s+(?:win|won|lose|lost)|victory|defeat",
|
|
73
|
+
"flags": "i",
|
|
74
|
+
"label": "visible end state"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"kind": "contains",
|
|
78
|
+
"file": "index.html",
|
|
79
|
+
"pattern": "restart|play\\s*again|new\\s*game|try\\s*again",
|
|
80
|
+
"flags": "i",
|
|
81
|
+
"label": "restart path"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "self-contained",
|
|
87
|
+
"kind": "acceptance",
|
|
88
|
+
"text": "It loads no network assets: no external scripts, stylesheets, fonts, images or sounds",
|
|
89
|
+
"checks": [
|
|
90
|
+
{
|
|
91
|
+
"kind": "notContains",
|
|
92
|
+
"file": "index.html",
|
|
93
|
+
"pattern": "<(?:script|link|img|audio|video|source|iframe)\\b[^>]*\\s(?:src|href)\\s*=\\s*[\"']?\\s*(?:https?:)?//|@import\\s+(?:url\\()?\\s*[\"']?\\s*(?:https?:)?//|url\\(\\s*[\"']?\\s*(?:https?:)?//",
|
|
94
|
+
"flags": "i",
|
|
95
|
+
"label": "a network asset"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "playable",
|
|
101
|
+
"kind": "quality",
|
|
102
|
+
"enforce": "advisory",
|
|
103
|
+
"text": "It actually plays: input moves the player, collisions change the score or state, a round can end, and restart starts a fresh round without console errors",
|
|
104
|
+
"judge": {
|
|
105
|
+
"rubric": "Played or traced through its source, does input move the player, do collisions change score or state, can a round reach its end state, and does restart begin a clean round with no errors?"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "looks-designed",
|
|
110
|
+
"kind": "quality",
|
|
111
|
+
"enforce": "advisory",
|
|
112
|
+
"text": "It looks deliberate: a consistent palette, readable game objects, a HUD showing score, lives or time, and at least one feedback effect",
|
|
113
|
+
"judge": {
|
|
114
|
+
"rubric": "Does the game use a consistent palette, readable shapes, a clear HUD, and at least one feedback effect such as a hit flash, shake or particles?"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"steps": [
|
|
120
|
+
{
|
|
121
|
+
"id": "game-design",
|
|
122
|
+
"name": "Game design",
|
|
123
|
+
"description": "mechanics, controls, win/lose, difficulty",
|
|
124
|
+
"prompt": "Design the GAME, not the code. Decide: core mechanic (what the player does), controls (keys/mouse/touch), win and lose conditions, scoring, restart behavior, and the difficulty curve. Then write an **acceptance-criteria checklist** (4-8 concrete, checkable items, e.g. \"arrow keys move the ship\", \"colliding with an enemy ends the game\", \"score increments on hit\", \"restart resets the score\", \"game is playable for >30s without a JS error\"). Save the complete mechanics + checklist to artifact `design/game-design.md` with `write_artifact`, and summarize the path in task notes. No code, no visuals yet.",
|
|
125
|
+
"suggestedRole": "game-designer",
|
|
126
|
+
"toolPolicy": {
|
|
127
|
+
"disallowBuiltinToolsets": [
|
|
128
|
+
"ai-apps",
|
|
129
|
+
"archives",
|
|
130
|
+
"audio",
|
|
131
|
+
"browser-automation",
|
|
132
|
+
"code-execution",
|
|
133
|
+
"craftbooks",
|
|
134
|
+
"data-tables",
|
|
135
|
+
"entity-intel",
|
|
136
|
+
"git",
|
|
137
|
+
"image-intel",
|
|
138
|
+
"images",
|
|
139
|
+
"role-delegation",
|
|
140
|
+
"role-delegation-escalation",
|
|
141
|
+
"security-intel",
|
|
142
|
+
"team-management",
|
|
143
|
+
"videos",
|
|
144
|
+
"web",
|
|
145
|
+
"workspace-fs-write"
|
|
146
|
+
],
|
|
147
|
+
"outputMedium": "artifact",
|
|
148
|
+
"additionalOutputMedia": [
|
|
149
|
+
"task-note"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"advanceWhen": {
|
|
153
|
+
"file": "design/game-design.md",
|
|
154
|
+
"minBytes": 1,
|
|
155
|
+
"sniff": "nonempty",
|
|
156
|
+
"artifact": true
|
|
157
|
+
},
|
|
158
|
+
"gate": {
|
|
159
|
+
"at": "completion",
|
|
160
|
+
"checks": [
|
|
161
|
+
{
|
|
162
|
+
"kind": "minBytes",
|
|
163
|
+
"file": "design/game-design.md",
|
|
164
|
+
"bytes": 600,
|
|
165
|
+
"artifact": true
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"kind": "sniff",
|
|
169
|
+
"file": "design/game-design.md",
|
|
170
|
+
"sniff": "nonempty",
|
|
171
|
+
"artifact": true
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"kind": "contains",
|
|
175
|
+
"file": "design/game-design.md",
|
|
176
|
+
"pattern": "acceptance|criteria|checklist",
|
|
177
|
+
"flags": "i",
|
|
178
|
+
"label": "acceptance criteria",
|
|
179
|
+
"artifact": true
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"kind": "contains",
|
|
183
|
+
"file": "design/game-design.md",
|
|
184
|
+
"pattern": "control|input|keyboard|mouse|touch",
|
|
185
|
+
"flags": "i",
|
|
186
|
+
"label": "control scheme",
|
|
187
|
+
"artifact": true
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "contains",
|
|
191
|
+
"file": "design/game-design.md",
|
|
192
|
+
"pattern": "win|lose|game over|victory|defeat",
|
|
193
|
+
"flags": "i",
|
|
194
|
+
"label": "end-state rules",
|
|
195
|
+
"artifact": true
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"onReject": "game-design",
|
|
199
|
+
"maxAttempts": 3
|
|
200
|
+
},
|
|
201
|
+
"next": "visual-design"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "visual-design",
|
|
205
|
+
"name": "Visual design",
|
|
206
|
+
"description": "palette, shapes/sprites, layout, juice",
|
|
207
|
+
"prompt": "Read artifact `design/game-design.md` with `read_artifact`, then decide how the game LOOKS. Pick a palette with exact color values, the canvas shapes or sprites for player/enemies/projectiles, the HUD layout (score, lives or timer), and at least one feedback effect (hit flash, screen shake, or particles). Keep it self-contained — canvas drawing or CSS, no external asset downloads. Save the concrete visual target to artifact `design/visual-design.md` with `write_artifact`, and summarize the path in task notes. Still no game code.",
|
|
208
|
+
"suggestedRole": "visual-designer",
|
|
209
|
+
"toolPolicy": {
|
|
210
|
+
"disallowBuiltinToolsets": [
|
|
211
|
+
"ai-apps",
|
|
212
|
+
"archives",
|
|
213
|
+
"audio",
|
|
214
|
+
"browser-automation",
|
|
215
|
+
"code-execution",
|
|
216
|
+
"craftbooks",
|
|
217
|
+
"data-tables",
|
|
218
|
+
"entity-intel",
|
|
219
|
+
"git",
|
|
220
|
+
"image-intel",
|
|
221
|
+
"images",
|
|
222
|
+
"role-delegation",
|
|
223
|
+
"role-delegation-escalation",
|
|
224
|
+
"security-intel",
|
|
225
|
+
"team-management",
|
|
226
|
+
"videos",
|
|
227
|
+
"web",
|
|
228
|
+
"workspace-fs-write"
|
|
229
|
+
],
|
|
230
|
+
"outputMedium": "artifact",
|
|
231
|
+
"additionalOutputMedia": [
|
|
232
|
+
"task-note"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"consumes": [
|
|
236
|
+
{
|
|
237
|
+
"file": "design/game-design.md",
|
|
238
|
+
"artifact": true
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"advanceWhen": {
|
|
242
|
+
"file": "design/visual-design.md",
|
|
243
|
+
"minBytes": 1,
|
|
244
|
+
"sniff": "nonempty",
|
|
245
|
+
"artifact": true
|
|
246
|
+
},
|
|
247
|
+
"gate": {
|
|
248
|
+
"at": "completion",
|
|
249
|
+
"checks": [
|
|
250
|
+
{
|
|
251
|
+
"kind": "minBytes",
|
|
252
|
+
"file": "design/visual-design.md",
|
|
253
|
+
"bytes": 450,
|
|
254
|
+
"artifact": true
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"kind": "sniff",
|
|
258
|
+
"file": "design/visual-design.md",
|
|
259
|
+
"sniff": "nonempty",
|
|
260
|
+
"artifact": true
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"kind": "contains",
|
|
264
|
+
"file": "design/visual-design.md",
|
|
265
|
+
"pattern": "#[0-9a-f]{3,8}|rgb\\(|hsl\\(",
|
|
266
|
+
"flags": "i",
|
|
267
|
+
"label": "concrete palette",
|
|
268
|
+
"artifact": true
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"kind": "contains",
|
|
272
|
+
"file": "design/visual-design.md",
|
|
273
|
+
"pattern": "HUD|score|lives|timer",
|
|
274
|
+
"flags": "i",
|
|
275
|
+
"label": "HUD design",
|
|
276
|
+
"artifact": true
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"onReject": "visual-design",
|
|
280
|
+
"maxAttempts": 3
|
|
281
|
+
},
|
|
282
|
+
"next": "build"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"id": "build",
|
|
286
|
+
"name": "Build",
|
|
287
|
+
"description": "implement the game in one index.html",
|
|
288
|
+
"prompt": "Read artifacts `design/game-design.md` and `design/visual-design.md` with `read_artifact`. Implement the game in workspace `index.html` with `write_file` (inline CSS + JS) so it satisfies the acceptance criteria and matches the visual spec. Include a real game loop, real input handling, score/state, a visible win or lose state, and an in-page restart path. Keep it self-contained with no network assets. On a loop-back, fix only the gaps the reviewer named — do not regress criteria that already passed. `write_task_note` the workspace path and which criteria now pass.",
|
|
289
|
+
"suggestedRole": "developer",
|
|
290
|
+
"toolPolicy": {
|
|
291
|
+
"disallowBuiltinToolsets": [
|
|
292
|
+
"ai-apps",
|
|
293
|
+
"archives",
|
|
294
|
+
"audio",
|
|
295
|
+
"browser-automation",
|
|
296
|
+
"code-execution",
|
|
297
|
+
"craftbooks",
|
|
298
|
+
"data-tables",
|
|
299
|
+
"entity-intel",
|
|
300
|
+
"git",
|
|
301
|
+
"image-intel",
|
|
302
|
+
"images",
|
|
303
|
+
"role-delegation",
|
|
304
|
+
"role-delegation-escalation",
|
|
305
|
+
"security-intel",
|
|
306
|
+
"team-management",
|
|
307
|
+
"videos",
|
|
308
|
+
"web"
|
|
309
|
+
],
|
|
310
|
+
"outputMedium": "workspace",
|
|
311
|
+
"additionalOutputMedia": [
|
|
312
|
+
"task-note"
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
"consumes": [
|
|
316
|
+
{
|
|
317
|
+
"file": "design/game-design.md",
|
|
318
|
+
"artifact": true
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"file": "design/visual-design.md",
|
|
322
|
+
"artifact": true
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"advanceWhen": {
|
|
326
|
+
"file": "index.html",
|
|
327
|
+
"minBytes": 1,
|
|
328
|
+
"sniff": "html-complete"
|
|
329
|
+
},
|
|
330
|
+
"gate": {
|
|
331
|
+
"at": "completion",
|
|
332
|
+
"checks": [
|
|
333
|
+
{
|
|
334
|
+
"kind": "minBytes",
|
|
335
|
+
"file": "index.html",
|
|
336
|
+
"bytes": 3200
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"kind": "htmlLint",
|
|
340
|
+
"file": "index.html"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"kind": "contains",
|
|
344
|
+
"file": "index.html",
|
|
345
|
+
"pattern": "game\\s*-?\\s*over|you\\s+(?:win|won|lose|lost)|victory|defeat",
|
|
346
|
+
"flags": "i",
|
|
347
|
+
"label": "visible end state"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"kind": "contains",
|
|
351
|
+
"file": "index.html",
|
|
352
|
+
"pattern": "restart|play\\s*again|new\\s*game|try\\s*again",
|
|
353
|
+
"flags": "i",
|
|
354
|
+
"label": "restart path"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"scripts": [
|
|
358
|
+
{
|
|
359
|
+
"name": "checkHtmlGame",
|
|
360
|
+
"scope": "standard",
|
|
361
|
+
"inputs": {
|
|
362
|
+
"file": "index.html"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "checkJsParses",
|
|
367
|
+
"scope": "standard",
|
|
368
|
+
"inputs": {
|
|
369
|
+
"file": "index.html"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"onReject": "build",
|
|
374
|
+
"maxAttempts": 4
|
|
375
|
+
},
|
|
376
|
+
"next": "evaluate"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"id": "evaluate",
|
|
380
|
+
"name": "Evaluate",
|
|
381
|
+
"description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
|
|
382
|
+
"prompt": "Read workspace `index.html` with `read_file` and actually exercise the game. If a browser/QA capability is available, load it, play it, test restart, and watch the console for errors; otherwise trace the game loop, input listeners, end-state transition, and reset path in source. Check every criterion from artifact `design/game-design.md` and write PASS/FAIL per criterion.\n\nThen record your verdict — this is the whole point of the loop:\n\n1. If any criterion fails, first write the specific gaps to the task notes with `write_task_note`: which file, which part, and what is missing. The \"Build\" step reads them when it fixes the work.\n2. When you have graded every criterion, write `{{task.dir}}/verdict.md` with `write_artifact`. One line per criterion and no preamble: the criterion, its one-line reason, then PASS or FAIL as the last word on the line. Writing verdict.md completes this step.\n\nThe runtime routes on the verdict: every line PASS moves the task to \"Finish\"; any FAIL sends it back to \"Build\" to fix those gaps, and a review that keeps failing pauses the task for the user. Mark a criterion PASS only when it is met. The build phase's completion gate already blocked a grossly-incomplete deliverable; your job is the judgment an automated check cannot make (does it actually work, read well, look right).",
|
|
383
|
+
"suggestedRole": "reviewer",
|
|
384
|
+
"toolPolicy": {
|
|
385
|
+
"disallowBuiltinToolsets": [
|
|
386
|
+
"ai-apps",
|
|
387
|
+
"archives",
|
|
388
|
+
"audio",
|
|
389
|
+
"browser-automation",
|
|
390
|
+
"code-execution",
|
|
391
|
+
"craftbooks",
|
|
392
|
+
"data-tables",
|
|
393
|
+
"entity-intel",
|
|
394
|
+
"git",
|
|
395
|
+
"image-intel",
|
|
396
|
+
"images",
|
|
397
|
+
"role-delegation",
|
|
398
|
+
"role-delegation-escalation",
|
|
399
|
+
"security-intel",
|
|
400
|
+
"team-management",
|
|
401
|
+
"videos",
|
|
402
|
+
"web",
|
|
403
|
+
"workspace-fs-write"
|
|
404
|
+
],
|
|
405
|
+
"outputMedium": "artifact",
|
|
406
|
+
"additionalOutputMedia": [
|
|
407
|
+
"task-note"
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
"consumes": [
|
|
411
|
+
{
|
|
412
|
+
"file": "index.html"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"advanceWhen": {
|
|
416
|
+
"file": "{{task.dir}}/verdict.md",
|
|
417
|
+
"minBytes": 40,
|
|
418
|
+
"sniff": "nonempty",
|
|
419
|
+
"artifact": true
|
|
420
|
+
},
|
|
421
|
+
"gate": {
|
|
422
|
+
"at": "completion",
|
|
423
|
+
"checks": [
|
|
424
|
+
{
|
|
425
|
+
"kind": "contains",
|
|
426
|
+
"file": "{{task.dir}}/verdict.md",
|
|
427
|
+
"pattern": "(?<!/\\s*)\\bPASS\\b(?!\\s*/)",
|
|
428
|
+
"label": "the verdict marks its criteria PASS",
|
|
429
|
+
"artifact": true
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"kind": "notContains",
|
|
433
|
+
"file": "{{task.dir}}/verdict.md",
|
|
434
|
+
"pattern": "(?<!/\\s*)\\bFAIL\\b(?!\\s*/)",
|
|
435
|
+
"label": "no criterion is marked FAIL",
|
|
436
|
+
"artifact": true
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"onReject": "build",
|
|
440
|
+
"maxAttempts": 3
|
|
441
|
+
},
|
|
442
|
+
"next": "finish"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"id": "finish",
|
|
446
|
+
"name": "Finish",
|
|
447
|
+
"description": "All acceptance criteria met. Stamp a short summary and report DONE.",
|
|
448
|
+
"prompt": "Every acceptance criterion passed. Write a one-paragraph DONE summary to task notes via `write_task_note`: what was built, the deliverable path(s), and a one-line confirmation that each criterion is met. Then report DONE.",
|
|
449
|
+
"suggestedRole": "developer",
|
|
450
|
+
"toolPolicy": {
|
|
451
|
+
"disallowBuiltinToolsets": [
|
|
452
|
+
"ai-apps",
|
|
453
|
+
"archives",
|
|
454
|
+
"artifacts",
|
|
455
|
+
"audio",
|
|
456
|
+
"browser-automation",
|
|
457
|
+
"code-execution",
|
|
458
|
+
"craftbooks",
|
|
459
|
+
"data-tables",
|
|
460
|
+
"entity-intel",
|
|
461
|
+
"git",
|
|
462
|
+
"image-intel",
|
|
463
|
+
"images",
|
|
464
|
+
"role-delegation",
|
|
465
|
+
"role-delegation-escalation",
|
|
466
|
+
"security-intel",
|
|
467
|
+
"team-management",
|
|
468
|
+
"videos",
|
|
469
|
+
"web",
|
|
470
|
+
"workspace-fs-write"
|
|
471
|
+
],
|
|
472
|
+
"outputMedium": "task-note"
|
|
473
|
+
},
|
|
474
|
+
"terminal": true
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"version": "1.2.5",
|
|
478
|
+
"releasedAt": "2026-10-23T00:00:00Z",
|
|
479
|
+
"minGezelVersion": "1.26295"
|
|
480
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "Playable single-file arcade-game workflow",
|
|
4
|
+
"objective": "Run the HTML Arcade Game craftbook and verify concrete game/visual design artifacts precede a complete playable canvas game with end state and restart behavior.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"html-game",
|
|
7
|
+
"workflow"
|
|
8
|
+
],
|
|
9
|
+
"prompt": "Use the HTML Arcade Game craftbook. Read workspace `source/game-brief.md`, then build workspace `index.html` as a self-contained canvas game called Returns Rush. The player moves a sorting cart left/right, catches accepted parcels for points, avoids exception parcels that cost a life, wins at 10 points, loses at zero lives, and can restart in-page after either end state. Use keyboard controls, a visible score/lives HUD, inline CSS/JS, and no external assets. Complete game-design and visual-design artifacts before implementation.",
|
|
10
|
+
"setup": {
|
|
11
|
+
"projectName": "HTML Arcade Game Eval",
|
|
12
|
+
"about": "Self-contained workflow eval for the HTML Arcade Game craftbook. The brief is in the workspace, design deliverables belong in artifacts, and the playable game belongs at workspace/index.html.",
|
|
13
|
+
"missionObjectives": "Ship a playable Returns Rush canvas game with real input, score/lives state, win and lose states, restart behavior, visual feedback, and no external dependencies.",
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "source/game-brief.md",
|
|
17
|
+
"content": "# Returns Rush Game Brief\n\nTheme: a busy returns desk sorting accepted parcels from exception parcels.\n\nRequired mechanics:\n- Move a sorting cart left and right with ArrowLeft/ArrowRight (A/D may also work).\n- Accepted parcels add one point.\n- Exception parcels remove one life.\n- Start with three lives.\n- Win at 10 points and lose at zero lives.\n- Show score, lives, controls, and current state on screen.\n- After win or game over, an in-page control restarts a fresh round.\n- Keep the game self-contained in one index.html with no network assets.\n"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"worker": {
|
|
21
|
+
"name": "Jules",
|
|
22
|
+
"role": "Developer"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"mocks": [],
|
|
26
|
+
"success": {
|
|
27
|
+
"summary": "A craftbook task records game/visual designs and ships a parseable, substantial Returns Rush game with input, end states, and restart behavior.",
|
|
28
|
+
"deliverables": [
|
|
29
|
+
{
|
|
30
|
+
"path": "index.html",
|
|
31
|
+
"kind": "html-game",
|
|
32
|
+
"minBytes": 4200,
|
|
33
|
+
"checks": [
|
|
34
|
+
{
|
|
35
|
+
"kind": "cssMinBytes",
|
|
36
|
+
"bytes": 600,
|
|
37
|
+
"file": "index.html"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"kind": "jsParses",
|
|
41
|
+
"file": "index.html"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "contains",
|
|
45
|
+
"file": "index.html",
|
|
46
|
+
"pattern": "<canvas\\b",
|
|
47
|
+
"flags": "i"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"kind": "contains",
|
|
51
|
+
"file": "index.html",
|
|
52
|
+
"pattern": "Returns Rush|returns desk",
|
|
53
|
+
"flags": "i"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"kind": "contains",
|
|
57
|
+
"file": "index.html",
|
|
58
|
+
"pattern": "ArrowLeft|ArrowRight|keydown"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"kind": "contains",
|
|
62
|
+
"file": "index.html",
|
|
63
|
+
"pattern": "score[\\s\\S]*lives|lives[\\s\\S]*score",
|
|
64
|
+
"flags": "i"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"kind": "contains",
|
|
68
|
+
"file": "index.html",
|
|
69
|
+
"pattern": "game\\s*-?\\s*over|you\\s+(?:win|lose)|victory|defeat",
|
|
70
|
+
"flags": "i"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"kind": "contains",
|
|
74
|
+
"file": "index.html",
|
|
75
|
+
"pattern": "restart|play\\s*again|new\\s*game|try\\s*again",
|
|
76
|
+
"flags": "i"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"kind": "contains",
|
|
80
|
+
"file": "index.html",
|
|
81
|
+
"pattern": "requestAnimationFrame"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"checks": [
|
|
87
|
+
{
|
|
88
|
+
"kind": "minBytes",
|
|
89
|
+
"file": "design/game-design.md",
|
|
90
|
+
"bytes": 600,
|
|
91
|
+
"artifact": true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"kind": "contains",
|
|
95
|
+
"file": "design/game-design.md",
|
|
96
|
+
"pattern": "(?:acceptance|criteria)[\\s\\S]*(?:control|input)[\\s\\S]*(?:win|lose|game over)",
|
|
97
|
+
"flags": "i",
|
|
98
|
+
"artifact": true
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"kind": "minBytes",
|
|
102
|
+
"file": "design/visual-design.md",
|
|
103
|
+
"bytes": 450,
|
|
104
|
+
"artifact": true
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"kind": "contains",
|
|
108
|
+
"file": "design/visual-design.md",
|
|
109
|
+
"pattern": "#[0-9a-f]{3,8}[\\s\\S]*(?:HUD|score|lives)",
|
|
110
|
+
"flags": "i",
|
|
111
|
+
"artifact": true
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"taskNotes": {
|
|
115
|
+
"minBytes": 160,
|
|
116
|
+
"checks": [
|
|
117
|
+
{
|
|
118
|
+
"kind": "contains",
|
|
119
|
+
"file": "task-notes.md",
|
|
120
|
+
"pattern": "game-design\\.md",
|
|
121
|
+
"flags": "i"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"kind": "contains",
|
|
125
|
+
"file": "task-notes.md",
|
|
126
|
+
"pattern": "visual-design\\.md",
|
|
127
|
+
"flags": "i"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"kind": "contains",
|
|
131
|
+
"file": "task-notes.md",
|
|
132
|
+
"pattern": "index\\.html",
|
|
133
|
+
"flags": "i"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"requireCraftbookTask": true
|
|
137
|
+
},
|
|
138
|
+
"taskGraph": {
|
|
139
|
+
"requireCraftbookTask": true,
|
|
140
|
+
"requireTerminalStep": true
|
|
141
|
+
},
|
|
142
|
+
"unchangedFixtures": [
|
|
143
|
+
"source/game-brief.md"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"rubric": {
|
|
147
|
+
"artifact": {
|
|
148
|
+
"path": "index.html",
|
|
149
|
+
"kind": "html"
|
|
150
|
+
},
|
|
151
|
+
"axes": [
|
|
152
|
+
{
|
|
153
|
+
"name": "playability",
|
|
154
|
+
"description": "Keyboard input moves the player, collisions change score/lives, and a round can reach both win and lose states."
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "completeness",
|
|
158
|
+
"description": "The game includes a real loop, visible HUD, end-state feedback, and a reliable fresh-round restart."
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "visual feedback",
|
|
162
|
+
"description": "The locked palette, readable game objects, HUD hierarchy, and collision/end-state feedback are applied intentionally."
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "workflow evidence",
|
|
166
|
+
"description": "The game and visual design artifacts are concrete and agree with the implementation."
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"qualityFocus": [
|
|
171
|
+
"craftbook attribution",
|
|
172
|
+
"design-before-build ordering",
|
|
173
|
+
"runtime playability",
|
|
174
|
+
"end-state and restart behavior"
|
|
175
|
+
]
|
|
176
|
+
}
|