@bendyline/gilde 0.3.13 → 0.3.14
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/data/connector-types/bl/bluesky-posts/manifest.json +1 -1
- package/data/connector-types/bl/bluesky-posts/versions/1.0.3/manifest.json +95 -0
- package/data/connector-types/in/instagram-media/manifest.json +1 -1
- package/data/connector-types/in/instagram-media/versions/1.0.2/manifest.json +98 -0
- package/data/connector-types/index.json +1 -1
- package/data/connector-types/li/linkedin-posts/manifest.json +1 -1
- package/data/connector-types/li/linkedin-posts/versions/1.0.1/manifest.json +56 -0
- package/data/connector-types/raw-index.json +1 -1
- package/data/connector-types/x-/x-posts/manifest.json +1 -1
- package/data/connector-types/x-/x-posts/versions/1.0.2/manifest.json +95 -0
- package/data/craftbook-templates/bo/board-game-web/versions/1.0.5/craftbook.json +317 -0
- package/data/craftbook-templates/bo/board-game-web/versions/1.0.5/test.json +99 -0
- package/data/craftbook-templates/ca/canvas-generative-art/versions/1.0.5/craftbook.json +254 -0
- package/data/craftbook-templates/ca/canvas-generative-art/versions/1.0.5/test.json +106 -0
- package/data/craftbook-templates/ch/chart-pack/versions/1.0.5/craftbook.json +317 -0
- package/data/craftbook-templates/ch/chart-pack/versions/1.0.5/test.json +104 -0
- package/data/craftbook-templates/da/data-viz-page/versions/1.0.5/craftbook.json +318 -0
- package/data/craftbook-templates/da/data-viz-page/versions/1.0.5/test.json +117 -0
- package/data/craftbook-templates/fo/form-wizard/versions/1.0.5/craftbook.json +251 -0
- package/data/craftbook-templates/fo/form-wizard/versions/1.0.5/test.json +110 -0
- package/data/craftbook-templates/ga/game-with-screens/versions/1.0.5/craftbook.json +335 -0
- package/data/craftbook-templates/ga/game-with-screens/versions/1.0.5/test.json +99 -0
- package/data/craftbook-templates/ht/html-puzzle-game/versions/1.0.5/craftbook.json +317 -0
- package/data/craftbook-templates/ht/html-puzzle-game/versions/1.0.5/test.json +99 -0
- package/data/craftbook-templates/id/idle-clicker-game/versions/1.0.5/craftbook.json +317 -0
- package/data/craftbook-templates/id/idle-clicker-game/versions/1.0.5/test.json +99 -0
- package/data/craftbook-templates/in/interactive-quiz/versions/1.0.5/craftbook.json +310 -0
- package/data/craftbook-templates/in/interactive-quiz/versions/1.0.5/test.json +124 -0
- package/data/craftbook-templates/index.json +1 -1
- package/data/craftbook-templates/kp/kpi-scorecard/versions/1.0.6/craftbook.json +317 -0
- package/data/craftbook-templates/kp/kpi-scorecard/versions/1.0.6/test.json +84 -0
- package/data/craftbook-templates/mi/micro-game-jam/versions/1.0.5/craftbook.json +258 -0
- package/data/craftbook-templates/mi/micro-game-jam/versions/1.0.5/test.json +99 -0
- package/data/craftbook-templates/on/onboarding-flow/versions/1.0.6/craftbook.json +310 -0
- package/data/craftbook-templates/on/onboarding-flow/versions/1.0.6/test.json +85 -0
- package/data/craftbook-templates/ph/physics-toy/versions/1.0.6/craftbook.json +251 -0
- package/data/craftbook-templates/ph/physics-toy/versions/1.0.6/test.json +75 -0
- package/data/craftbook-templates/raw-index.json +1 -1
- package/data/craftbook-templates/sp/spa-dashboard/versions/1.0.6/craftbook.json +315 -0
- package/data/craftbook-templates/sp/spa-dashboard/versions/1.0.6/test.json +85 -0
- package/data/craftbook-templates/we/web-app-crud/versions/1.0.6/craftbook.json +310 -0
- package/data/craftbook-templates/we/web-app-crud/versions/1.0.6/test.json +85 -0
- package/data/gezel-templates/index.json +1 -1
- package/data/gezel-templates/me/meester/versions/1.4.2/about.md +26 -0
- package/data/gezel-templates/me/meester/versions/1.4.2/manifest.json +9 -0
- package/data/gezel-templates/raw-index.json +1 -1
- package/data/page-libraries/ch/chart.js/manifest.json +19 -0
- package/data/page-libraries/ch/chart.js/versions/1.0.0/manifest.json +70 -0
- package/data/page-libraries/d3/d3/manifest.json +20 -0
- package/data/page-libraries/d3/d3/versions/1.0.0/manifest.json +661 -0
- package/data/page-libraries/ht/htm/manifest.json +19 -0
- package/data/page-libraries/ht/htm/versions/1.0.0/manifest.json +45 -0
- package/data/page-libraries/index.json +1 -0
- package/data/page-libraries/ku/kurkle-color/manifest.json +18 -0
- package/data/page-libraries/ku/kurkle-color/versions/1.0.0/manifest.json +38 -0
- package/data/page-libraries/pr/preact/manifest.json +19 -0
- package/data/page-libraries/pr/preact/versions/1.0.0/manifest.json +52 -0
- package/data/page-libraries/raw-index.json +1 -0
- package/data/page-libraries/re/react/manifest.json +19 -0
- package/data/page-libraries/re/react/versions/1.0.0/manifest.json +197 -0
- package/data/page-libraries/re/react-dom/manifest.json +19 -0
- package/data/page-libraries/re/react-dom/versions/1.0.0/manifest.json +161 -0
- package/data/page-libraries/sc/scheduler/manifest.json +18 -0
- package/data/page-libraries/sc/scheduler/versions/1.0.0/manifest.json +61 -0
- package/data/page-libraries/th/three/manifest.json +21 -0
- package/data/page-libraries/th/three/versions/1.0.0/manifest.json +217 -0
- package/data/page-libraries/vu/vue/manifest.json +19 -0
- package/data/page-libraries/vu/vue/versions/1.0.0/manifest.json +46 -0
- package/package.json +1 -1
- package/schemas/connector-type-test.schema.json +225 -0
- package/schemas/connector-type-version.schema.json +22 -0
- package/schemas/craftbook-doc.schema.json +16 -0
- package/schemas/craftbook-template-version.schema.json +16 -0
- package/schemas/craftbook-test.schema.json +1 -0
- package/schemas/page-library-identity.schema.json +99 -0
- package/schemas/page-library-version.schema.json +372 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "canvas-generative-art",
|
|
3
|
+
"name": "Canvas Generative Art",
|
|
4
|
+
"description": "Build a single-file generative art piece on canvas — flow fields, particle systems, recursive trees, Voronoi, noise terrain, or geometric tilings — that produces a fresh composition each run from a seed, with parameters the viewer can tweak. Defines the aesthetic and the generative algorithm first, then implements a seeded, reproducible renderer with a regenerate control. Generative art is an algorithm-and-aesthetic problem, so the aesthetic-scope phase locks the visual rules and the seedable randomness before any drawing, the ordering that yields a deliberate piece rather than random noise.\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. Aesthetic scope (visual-designer) — the algorithm, palette, composition rules, seed → gated on artifact `{{workPath}}/aesthetic-scope.md` (markdown-notes)\n2. Build (developer) — implement the seeded renderer in index.html → gated on `index.html` (html-page)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
|
|
5
|
+
"entryStepId": "aesthetic-scope",
|
|
6
|
+
"triggers": [
|
|
7
|
+
"generative art",
|
|
8
|
+
"creative coding",
|
|
9
|
+
"procedural art",
|
|
10
|
+
"flow field",
|
|
11
|
+
"canvas art",
|
|
12
|
+
"algorithmic art"
|
|
13
|
+
],
|
|
14
|
+
"paramSchema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"workPath": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"title": "Working folder",
|
|
20
|
+
"description": "Per-task working folder in the artifacts drawer. Defaults to this task's own folder so runs never collide; override with a stable name when you deliberately want runs to share files.",
|
|
21
|
+
"default": "{{task.dir}}"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"steps": [
|
|
26
|
+
{
|
|
27
|
+
"id": "aesthetic-scope",
|
|
28
|
+
"name": "Aesthetic scope",
|
|
29
|
+
"description": "the algorithm, palette, composition rules, seed",
|
|
30
|
+
"prompt": "Define the aesthetic and the generative system. (1) Choose the algorithm (flow field, particles, recursive subdivision, noise, Voronoi, packing) and describe in steps how it draws a composition. (2) Pick a palette (hex) and the composition rules (density, scale, symmetry, margins, layering, blend). (3) Decide the seed: each run uses a seed so output is reproducible, and a regenerate control makes a new one. (4) List the tweakable parameters exposed to the viewer (count, scale, palette). (5) Write an acceptance-criteria checklist of 5-8 items, e.g. 'a composition renders on load', 'regenerate produces a clearly different composition', 'the same seed reproduces the same image', 'parameters change the output', 'the palette is used (not random colors)', 'no console errors'. Write to {{workPath}}/aesthetic-scope.md and via write_task_note. No code yet.\n\nThe deliverable `{{workPath}}/aesthetic-scope.md` lands in the project's artifacts drawer — write it with `write_artifact` and read it back with `read_artifact`; the shipped workspace stays untouched.",
|
|
31
|
+
"suggestedRole": "visual-designer",
|
|
32
|
+
"advanceWhen": {
|
|
33
|
+
"file": "{{workPath}}/aesthetic-scope.md",
|
|
34
|
+
"minBytes": 1,
|
|
35
|
+
"sniff": "nonempty",
|
|
36
|
+
"artifact": true
|
|
37
|
+
},
|
|
38
|
+
"gate": {
|
|
39
|
+
"at": "completion",
|
|
40
|
+
"checks": [
|
|
41
|
+
{
|
|
42
|
+
"kind": "minBytes",
|
|
43
|
+
"file": "{{workPath}}/aesthetic-scope.md",
|
|
44
|
+
"bytes": 120,
|
|
45
|
+
"artifact": true
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"kind": "sniff",
|
|
49
|
+
"file": "{{workPath}}/aesthetic-scope.md",
|
|
50
|
+
"sniff": "nonempty",
|
|
51
|
+
"artifact": true
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"onReject": "aesthetic-scope",
|
|
55
|
+
"maxAttempts": 3
|
|
56
|
+
},
|
|
57
|
+
"next": "build",
|
|
58
|
+
"toolPolicy": {
|
|
59
|
+
"disallowBuiltinToolsets": [
|
|
60
|
+
"ai-apps",
|
|
61
|
+
"archives",
|
|
62
|
+
"audio",
|
|
63
|
+
"browser-automation",
|
|
64
|
+
"code-execution",
|
|
65
|
+
"craftbooks",
|
|
66
|
+
"data-tables",
|
|
67
|
+
"entity-intel",
|
|
68
|
+
"git",
|
|
69
|
+
"image-intel",
|
|
70
|
+
"images",
|
|
71
|
+
"role-delegation",
|
|
72
|
+
"role-delegation-escalation",
|
|
73
|
+
"security-intel",
|
|
74
|
+
"team-management",
|
|
75
|
+
"videos",
|
|
76
|
+
"web",
|
|
77
|
+
"workspace-fs-write"
|
|
78
|
+
],
|
|
79
|
+
"outputMedium": "artifact",
|
|
80
|
+
"additionalOutputMedia": [
|
|
81
|
+
"task-note"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "build",
|
|
87
|
+
"name": "Build",
|
|
88
|
+
"description": "implement the seeded renderer in index.html",
|
|
89
|
+
"prompt": "Implement the generative piece in a single index.html (inline CSS + JS) to the aesthetic spec. (1) Set up a full-canvas 2d context sized to the viewport. (2) Implement a seedable PRNG (e.g. mulberry32) so a given seed reproduces the same image; derive all randomness from it. (3) Implement the algorithm to draw a composition honoring the palette and composition rules. (4) Add a regenerate button (new seed -> redraw) and controls for the exposed parameters that recompute on change. (5) Optionally a save/export. Plain JavaScript on a canvas, or three.js when your instructions list it and the piece is 3D; no other external assets. On a loop-back, fix only the named gaps without regressing passing criteria. write_task_note the path and passing criteria.",
|
|
90
|
+
"suggestedRole": "developer",
|
|
91
|
+
"advanceWhen": {
|
|
92
|
+
"file": "index.html",
|
|
93
|
+
"minBytes": 1,
|
|
94
|
+
"sniff": "html-complete"
|
|
95
|
+
},
|
|
96
|
+
"gate": {
|
|
97
|
+
"at": "completion",
|
|
98
|
+
"checks": [
|
|
99
|
+
{
|
|
100
|
+
"kind": "minBytes",
|
|
101
|
+
"file": "index.html",
|
|
102
|
+
"bytes": 800
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"kind": "htmlLint",
|
|
106
|
+
"file": "index.html"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"scripts": [
|
|
110
|
+
{
|
|
111
|
+
"name": "checkHtmlComplete",
|
|
112
|
+
"scope": "standard",
|
|
113
|
+
"inputs": {
|
|
114
|
+
"file": "index.html"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"onReject": "build",
|
|
119
|
+
"maxAttempts": 4
|
|
120
|
+
},
|
|
121
|
+
"next": "evaluate",
|
|
122
|
+
"toolPolicy": {
|
|
123
|
+
"disallowBuiltinToolsets": [
|
|
124
|
+
"ai-apps",
|
|
125
|
+
"archives",
|
|
126
|
+
"artifacts",
|
|
127
|
+
"audio",
|
|
128
|
+
"browser-automation",
|
|
129
|
+
"code-execution",
|
|
130
|
+
"craftbooks",
|
|
131
|
+
"data-tables",
|
|
132
|
+
"entity-intel",
|
|
133
|
+
"git",
|
|
134
|
+
"image-intel",
|
|
135
|
+
"images",
|
|
136
|
+
"role-delegation",
|
|
137
|
+
"role-delegation-escalation",
|
|
138
|
+
"security-intel",
|
|
139
|
+
"team-management",
|
|
140
|
+
"videos",
|
|
141
|
+
"web"
|
|
142
|
+
],
|
|
143
|
+
"outputMedium": "workspace",
|
|
144
|
+
"additionalOutputMedia": [
|
|
145
|
+
"task-note"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"libraries": [
|
|
149
|
+
"three"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "evaluate",
|
|
154
|
+
"name": "Evaluate",
|
|
155
|
+
"description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
|
|
156
|
+
"prompt": "Evaluate the art piece. Open/render index.html, regenerate several times, and tweak a parameter. Check EACH criterion from {{workPath}}/aesthetic-scope.md and write PASS/FAIL with a reason: does a composition render on load, does regenerate clearly change it, does the same seed reproduce the same image, do parameters affect output, is the chosen palette used (not arbitrary colors), zero console errors? If regenerate does nothing or the same seed gives different images, FAIL and loop back to build.\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 `{{workPath}}/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).",
|
|
157
|
+
"suggestedRole": "reviewer",
|
|
158
|
+
"consumes": [
|
|
159
|
+
{
|
|
160
|
+
"file": "index.html"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"advanceWhen": {
|
|
164
|
+
"file": "{{workPath}}/verdict.md",
|
|
165
|
+
"minBytes": 40,
|
|
166
|
+
"sniff": "nonempty",
|
|
167
|
+
"artifact": true
|
|
168
|
+
},
|
|
169
|
+
"gate": {
|
|
170
|
+
"at": "completion",
|
|
171
|
+
"checks": [
|
|
172
|
+
{
|
|
173
|
+
"kind": "contains",
|
|
174
|
+
"file": "{{workPath}}/verdict.md",
|
|
175
|
+
"pattern": "(?<!/\\s*)\\bPASS\\b(?!\\s*/)",
|
|
176
|
+
"label": "the verdict marks its criteria PASS",
|
|
177
|
+
"artifact": true
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"kind": "notContains",
|
|
181
|
+
"file": "{{workPath}}/verdict.md",
|
|
182
|
+
"pattern": "(?<!/\\s*)\\bFAIL\\b(?!\\s*/)",
|
|
183
|
+
"label": "no criterion is marked FAIL",
|
|
184
|
+
"artifact": true
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"onReject": "build",
|
|
188
|
+
"maxAttempts": 3
|
|
189
|
+
},
|
|
190
|
+
"next": "finish",
|
|
191
|
+
"toolPolicy": {
|
|
192
|
+
"disallowBuiltinToolsets": [
|
|
193
|
+
"ai-apps",
|
|
194
|
+
"archives",
|
|
195
|
+
"audio",
|
|
196
|
+
"browser-automation",
|
|
197
|
+
"code-execution",
|
|
198
|
+
"craftbooks",
|
|
199
|
+
"data-tables",
|
|
200
|
+
"entity-intel",
|
|
201
|
+
"git",
|
|
202
|
+
"image-intel",
|
|
203
|
+
"images",
|
|
204
|
+
"role-delegation",
|
|
205
|
+
"role-delegation-escalation",
|
|
206
|
+
"security-intel",
|
|
207
|
+
"team-management",
|
|
208
|
+
"videos",
|
|
209
|
+
"web",
|
|
210
|
+
"workspace-fs-write"
|
|
211
|
+
],
|
|
212
|
+
"outputMedium": "artifact",
|
|
213
|
+
"additionalOutputMedia": [
|
|
214
|
+
"task-note"
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"id": "finish",
|
|
220
|
+
"name": "Finish",
|
|
221
|
+
"description": "All acceptance criteria met. Stamp a short summary and report DONE.",
|
|
222
|
+
"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.",
|
|
223
|
+
"suggestedRole": "developer",
|
|
224
|
+
"terminal": true,
|
|
225
|
+
"toolPolicy": {
|
|
226
|
+
"disallowBuiltinToolsets": [
|
|
227
|
+
"ai-apps",
|
|
228
|
+
"archives",
|
|
229
|
+
"artifacts",
|
|
230
|
+
"audio",
|
|
231
|
+
"browser-automation",
|
|
232
|
+
"code-execution",
|
|
233
|
+
"craftbooks",
|
|
234
|
+
"data-tables",
|
|
235
|
+
"entity-intel",
|
|
236
|
+
"git",
|
|
237
|
+
"image-intel",
|
|
238
|
+
"images",
|
|
239
|
+
"role-delegation",
|
|
240
|
+
"role-delegation-escalation",
|
|
241
|
+
"security-intel",
|
|
242
|
+
"team-management",
|
|
243
|
+
"videos",
|
|
244
|
+
"web",
|
|
245
|
+
"workspace-fs-write"
|
|
246
|
+
],
|
|
247
|
+
"outputMedium": "task-note"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"version": "1.0.5",
|
|
252
|
+
"releasedAt": "2026-11-21T00:00:00Z",
|
|
253
|
+
"minGezelVersion": "1.26233"
|
|
254
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "Seeded interactive canvas artwork",
|
|
4
|
+
"objective": "Measure whether the canvas-generative-art craftbook locks an aesthetic direction and ships a complete animated canvas page.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"html-page"
|
|
7
|
+
],
|
|
8
|
+
"prompt": "In the `Canvas Art Eval` project, build `index.html`: a self-contained generative canvas artwork called \"Harbor Current\". It should use a seeded pseudo-random generator, draw layered wave/particle forms on a canvas, animate subtly with requestAnimationFrame, include Regenerate and Pause controls, and show the seed on screen. Inline CSS and JS only; no external assets.",
|
|
9
|
+
"setup": {
|
|
10
|
+
"projectName": "Canvas Art Eval",
|
|
11
|
+
"about": "Self-contained eval project for canvas-generative-art. The only deliverable is workspace/index.html.",
|
|
12
|
+
"missionObjectives": "Produce a complete animated canvas artwork with seed display, controls, and substantial inline CSS/JS.",
|
|
13
|
+
"files": [],
|
|
14
|
+
"worker": {
|
|
15
|
+
"name": "Lio",
|
|
16
|
+
"role": "Developer"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"mocks": [],
|
|
20
|
+
"success": {
|
|
21
|
+
"summary": "index.html is a complete animated canvas page with seed and control vocabulary.",
|
|
22
|
+
"deliverables": [
|
|
23
|
+
{
|
|
24
|
+
"path": "index.html",
|
|
25
|
+
"kind": "html-page",
|
|
26
|
+
"minBytes": 3200,
|
|
27
|
+
"checks": [
|
|
28
|
+
{
|
|
29
|
+
"kind": "cssMinBytes",
|
|
30
|
+
"bytes": 650,
|
|
31
|
+
"file": "index.html"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"kind": "jsParses",
|
|
35
|
+
"file": "index.html"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"kind": "contains",
|
|
39
|
+
"file": "index.html",
|
|
40
|
+
"pattern": "<canvas|canvas",
|
|
41
|
+
"flags": "i"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "contains",
|
|
45
|
+
"file": "index.html",
|
|
46
|
+
"pattern": "requestAnimationFrame",
|
|
47
|
+
"flags": "i"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"kind": "contains",
|
|
51
|
+
"file": "index.html",
|
|
52
|
+
"pattern": "seed|random",
|
|
53
|
+
"flags": "i"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"kind": "contains",
|
|
57
|
+
"file": "index.html",
|
|
58
|
+
"pattern": "regenerate|new seed",
|
|
59
|
+
"flags": "i"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"kind": "contains",
|
|
63
|
+
"file": "index.html",
|
|
64
|
+
"pattern": "pause|resume",
|
|
65
|
+
"flags": "i"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"kind": "contains",
|
|
69
|
+
"file": "index.html",
|
|
70
|
+
"pattern": "Harbor Current",
|
|
71
|
+
"flags": "i"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"rubric": {
|
|
78
|
+
"artifact": {
|
|
79
|
+
"path": "index.html",
|
|
80
|
+
"kind": "html"
|
|
81
|
+
},
|
|
82
|
+
"axes": [
|
|
83
|
+
{
|
|
84
|
+
"name": "structure",
|
|
85
|
+
"description": "Layout and hierarchy fit the content; sections are scannable and coherent."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "grounding",
|
|
89
|
+
"description": "Seeded source content is used faithfully — no invented facts or dropped requirements."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "interactivity",
|
|
93
|
+
"description": "Controls and states the page claims to offer actually work."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "polish",
|
|
97
|
+
"description": "Styling is intentional and responsive rather than unstyled or broken."
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"qualityFocus": [
|
|
102
|
+
"canvas rendering",
|
|
103
|
+
"seeded variation",
|
|
104
|
+
"interactive controls"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "chart-pack",
|
|
3
|
+
"name": "Chart Pack from Data",
|
|
4
|
+
"description": "Build a single interactive HTML page of charts that answers a defined set of questions about a dataset. Scopes the questions and the right chart type per question FIRST (so you don't make a pretty chart that answers nothing), then analyzes the data into chart-ready series, then builds one self-contained HTML page rendering every chart with titles, axis labels, and a one-line takeaway caption each. Use this for a dashboard of charts, a visualization pack, a metrics page, or turning a CSV into graphs and plots.\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. Scope the questions (planner) — lock the questions and the chart type that answers each → gated on artifact `{{workPath}}/question-scope.md` (markdown-notes)\n2. Analyze into chart-ready series (data-analyst) — aggregate the data into the exact series each chart needs → gated on `data/series.json` (json)\n3. Build the chart page (developer) — render every chart in one self-contained index.html → gated on `index.html` (html-page)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
|
|
5
|
+
"entryStepId": "question-scope",
|
|
6
|
+
"triggers": [
|
|
7
|
+
"make charts from data",
|
|
8
|
+
"chart pack",
|
|
9
|
+
"visualize this dataset",
|
|
10
|
+
"graphs from a csv",
|
|
11
|
+
"build a charts page"
|
|
12
|
+
],
|
|
13
|
+
"paramSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"workPath": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"title": "Working folder",
|
|
19
|
+
"description": "Per-task working folder in the artifacts drawer. Defaults to this task's own folder so runs never collide; override with a stable name when you deliberately want runs to share files.",
|
|
20
|
+
"default": "{{task.dir}}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"steps": [
|
|
25
|
+
{
|
|
26
|
+
"id": "question-scope",
|
|
27
|
+
"name": "Scope the questions",
|
|
28
|
+
"description": "lock the questions and the chart type that answers each",
|
|
29
|
+
"prompt": "Decide WHAT the chart pack must answer before any analysis. Step 1: list 4-8 specific questions a reader has about this data (e.g. 'how did revenue trend by month?', 'which 5 categories are largest?', 'how are values distributed?'). Step 2: for EACH question pick the chart type that answers it best and say why (trend over time -> line; part-to-whole -> bar/stacked, not pie unless <=5 slices; distribution -> histogram; comparison -> grouped bar; relationship -> scatter). Step 3: name the exact columns and aggregation each chart needs. Step 4: write an acceptance-criteria checklist ('one chart per question', 'every chart has a title + axis labels', 'every chart has a one-line takeaway caption', 'chart type matches the question'). Call write_task_note and write the question->chart mapping + checklist to {{workPath}}/question-scope.md.\n\nThe deliverable `{{workPath}}/question-scope.md` lands in the project's artifacts drawer — write it with `write_artifact` and read it back with `read_artifact`; the shipped workspace stays untouched.",
|
|
30
|
+
"suggestedRole": "planner",
|
|
31
|
+
"advanceWhen": {
|
|
32
|
+
"file": "{{workPath}}/question-scope.md",
|
|
33
|
+
"minBytes": 1,
|
|
34
|
+
"sniff": "nonempty",
|
|
35
|
+
"artifact": true
|
|
36
|
+
},
|
|
37
|
+
"gate": {
|
|
38
|
+
"at": "completion",
|
|
39
|
+
"checks": [
|
|
40
|
+
{
|
|
41
|
+
"kind": "minBytes",
|
|
42
|
+
"file": "{{workPath}}/question-scope.md",
|
|
43
|
+
"bytes": 120,
|
|
44
|
+
"artifact": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"kind": "sniff",
|
|
48
|
+
"file": "{{workPath}}/question-scope.md",
|
|
49
|
+
"sniff": "nonempty",
|
|
50
|
+
"artifact": true
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"onReject": "question-scope",
|
|
54
|
+
"maxAttempts": 3
|
|
55
|
+
},
|
|
56
|
+
"next": "analyze",
|
|
57
|
+
"toolPolicy": {
|
|
58
|
+
"disallowBuiltinToolsets": [
|
|
59
|
+
"ai-apps",
|
|
60
|
+
"archives",
|
|
61
|
+
"audio",
|
|
62
|
+
"browser-automation",
|
|
63
|
+
"code-execution",
|
|
64
|
+
"craftbooks",
|
|
65
|
+
"data-tables",
|
|
66
|
+
"entity-intel",
|
|
67
|
+
"git",
|
|
68
|
+
"image-intel",
|
|
69
|
+
"images",
|
|
70
|
+
"role-delegation",
|
|
71
|
+
"role-delegation-escalation",
|
|
72
|
+
"security-intel",
|
|
73
|
+
"team-management",
|
|
74
|
+
"videos",
|
|
75
|
+
"web",
|
|
76
|
+
"workspace-fs-write"
|
|
77
|
+
],
|
|
78
|
+
"outputMedium": "artifact",
|
|
79
|
+
"additionalOutputMedia": [
|
|
80
|
+
"task-note"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "analyze",
|
|
86
|
+
"name": "Analyze into chart-ready series",
|
|
87
|
+
"description": "aggregate the data into the exact series each chart needs",
|
|
88
|
+
"prompt": "Transform the raw data into the precise series each scoped chart needs. Step 1: for each chart, group/aggregate the columns named in the scope (sum, count, average, bucketed histogram) and produce ordered (label, value) arrays. Step 2: sort sensibly (time ascending, categories by magnitude) and cap to a readable count (top-N + 'other' if needed). Step 3: write the computed takeaway caption for each chart from the numbers ('March was the peak at 4.2k, up 38% from Feb'). Step 4: emit the series as data/series.json keyed by chart id so the build phase reads it directly. Call write_task_note with the series summary and the captions.",
|
|
89
|
+
"suggestedRole": "data-analyst",
|
|
90
|
+
"advanceWhen": {
|
|
91
|
+
"file": "data/series.json",
|
|
92
|
+
"minBytes": 1,
|
|
93
|
+
"sniff": "json-valid"
|
|
94
|
+
},
|
|
95
|
+
"gate": {
|
|
96
|
+
"at": "completion",
|
|
97
|
+
"checks": [
|
|
98
|
+
{
|
|
99
|
+
"kind": "minBytes",
|
|
100
|
+
"file": "data/series.json",
|
|
101
|
+
"bytes": 2
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"scripts": [
|
|
105
|
+
{
|
|
106
|
+
"name": "checkJsonValid",
|
|
107
|
+
"scope": "standard",
|
|
108
|
+
"inputs": {
|
|
109
|
+
"file": "data/series.json"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"onReject": "analyze",
|
|
114
|
+
"maxAttempts": 3
|
|
115
|
+
},
|
|
116
|
+
"next": "build",
|
|
117
|
+
"toolPolicy": {
|
|
118
|
+
"disallowBuiltinToolsets": [
|
|
119
|
+
"ai-apps",
|
|
120
|
+
"archives",
|
|
121
|
+
"artifacts",
|
|
122
|
+
"audio",
|
|
123
|
+
"browser-automation",
|
|
124
|
+
"craftbooks",
|
|
125
|
+
"data-tables",
|
|
126
|
+
"entity-intel",
|
|
127
|
+
"git",
|
|
128
|
+
"image-intel",
|
|
129
|
+
"images",
|
|
130
|
+
"role-delegation",
|
|
131
|
+
"role-delegation-escalation",
|
|
132
|
+
"security-intel",
|
|
133
|
+
"team-management",
|
|
134
|
+
"videos",
|
|
135
|
+
"web"
|
|
136
|
+
],
|
|
137
|
+
"outputMedium": "workspace",
|
|
138
|
+
"additionalOutputMedia": [
|
|
139
|
+
"task-note"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"id": "build",
|
|
145
|
+
"name": "Build the chart page",
|
|
146
|
+
"description": "render every chart in one self-contained index.html",
|
|
147
|
+
"prompt": "Build a single self-contained index.html that renders every scoped chart from data/series.json. Step 1: draw with Chart.js when your instructions list it, else inline <canvas>/SVG; load nothing else from the network; if you embed the series, keep it in sync with the JSON. Step 2: render each chart with its title, labeled axes, readable ticks, and a legend where needed. Step 3: place the one-line takeaway caption under each chart. Step 4: lay the charts out responsively in a grid that reads top-to-bottom in the scoped order. Step 5: ensure no console errors and that charts have real data, not placeholders. On a loop-back, fix only the named gaps. Call write_task_note with the path and chart count.",
|
|
148
|
+
"suggestedRole": "developer",
|
|
149
|
+
"consumes": [
|
|
150
|
+
{
|
|
151
|
+
"file": "data/series.json"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"advanceWhen": {
|
|
155
|
+
"file": "index.html",
|
|
156
|
+
"minBytes": 1,
|
|
157
|
+
"sniff": "html-complete"
|
|
158
|
+
},
|
|
159
|
+
"gate": {
|
|
160
|
+
"at": "completion",
|
|
161
|
+
"checks": [
|
|
162
|
+
{
|
|
163
|
+
"kind": "minBytes",
|
|
164
|
+
"file": "index.html",
|
|
165
|
+
"bytes": 800
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"kind": "htmlLint",
|
|
169
|
+
"file": "index.html"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"scripts": [
|
|
173
|
+
{
|
|
174
|
+
"name": "checkHtmlComplete",
|
|
175
|
+
"scope": "standard",
|
|
176
|
+
"inputs": {
|
|
177
|
+
"file": "index.html"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"onReject": "build",
|
|
182
|
+
"maxAttempts": 4
|
|
183
|
+
},
|
|
184
|
+
"next": "evaluate",
|
|
185
|
+
"toolPolicy": {
|
|
186
|
+
"disallowBuiltinToolsets": [
|
|
187
|
+
"ai-apps",
|
|
188
|
+
"archives",
|
|
189
|
+
"artifacts",
|
|
190
|
+
"audio",
|
|
191
|
+
"browser-automation",
|
|
192
|
+
"code-execution",
|
|
193
|
+
"craftbooks",
|
|
194
|
+
"data-tables",
|
|
195
|
+
"entity-intel",
|
|
196
|
+
"git",
|
|
197
|
+
"image-intel",
|
|
198
|
+
"images",
|
|
199
|
+
"role-delegation",
|
|
200
|
+
"role-delegation-escalation",
|
|
201
|
+
"security-intel",
|
|
202
|
+
"team-management",
|
|
203
|
+
"videos",
|
|
204
|
+
"web"
|
|
205
|
+
],
|
|
206
|
+
"outputMedium": "workspace",
|
|
207
|
+
"additionalOutputMedia": [
|
|
208
|
+
"task-note"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"libraries": [
|
|
212
|
+
"chart.js"
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id": "evaluate",
|
|
217
|
+
"name": "Evaluate",
|
|
218
|
+
"description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
|
|
219
|
+
"prompt": "Open index.html (render it if a browser capability exists, else trace the source). Verify: there is one chart per scoped question; each chart has a title, labeled axes, and a takeaway caption; the chart type matches the question from the scope; charts render real values from the series, not placeholders; and there are no console errors. Spot-check two charts' values against data/series.json. Write PASS/FAIL per criterion; any FAIL loops back to build.\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 the chart page\" step reads them when it fixes the work.\n2. When you have graded every criterion, write `{{workPath}}/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 the chart page\" 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).",
|
|
220
|
+
"suggestedRole": "reviewer",
|
|
221
|
+
"consumes": [
|
|
222
|
+
{
|
|
223
|
+
"file": "index.html"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"advanceWhen": {
|
|
227
|
+
"file": "{{workPath}}/verdict.md",
|
|
228
|
+
"minBytes": 40,
|
|
229
|
+
"sniff": "nonempty",
|
|
230
|
+
"artifact": true
|
|
231
|
+
},
|
|
232
|
+
"gate": {
|
|
233
|
+
"at": "completion",
|
|
234
|
+
"checks": [
|
|
235
|
+
{
|
|
236
|
+
"kind": "contains",
|
|
237
|
+
"file": "{{workPath}}/verdict.md",
|
|
238
|
+
"pattern": "(?<!/\\s*)\\bPASS\\b(?!\\s*/)",
|
|
239
|
+
"label": "the verdict marks its criteria PASS",
|
|
240
|
+
"artifact": true
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"kind": "notContains",
|
|
244
|
+
"file": "{{workPath}}/verdict.md",
|
|
245
|
+
"pattern": "(?<!/\\s*)\\bFAIL\\b(?!\\s*/)",
|
|
246
|
+
"label": "no criterion is marked FAIL",
|
|
247
|
+
"artifact": true
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"onReject": "build",
|
|
251
|
+
"maxAttempts": 3
|
|
252
|
+
},
|
|
253
|
+
"next": "finish",
|
|
254
|
+
"toolPolicy": {
|
|
255
|
+
"disallowBuiltinToolsets": [
|
|
256
|
+
"ai-apps",
|
|
257
|
+
"archives",
|
|
258
|
+
"audio",
|
|
259
|
+
"browser-automation",
|
|
260
|
+
"code-execution",
|
|
261
|
+
"craftbooks",
|
|
262
|
+
"data-tables",
|
|
263
|
+
"entity-intel",
|
|
264
|
+
"git",
|
|
265
|
+
"image-intel",
|
|
266
|
+
"images",
|
|
267
|
+
"role-delegation",
|
|
268
|
+
"role-delegation-escalation",
|
|
269
|
+
"security-intel",
|
|
270
|
+
"team-management",
|
|
271
|
+
"videos",
|
|
272
|
+
"web",
|
|
273
|
+
"workspace-fs-write"
|
|
274
|
+
],
|
|
275
|
+
"outputMedium": "artifact",
|
|
276
|
+
"additionalOutputMedia": [
|
|
277
|
+
"task-note"
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"id": "finish",
|
|
283
|
+
"name": "Finish",
|
|
284
|
+
"description": "All acceptance criteria met. Stamp a short summary and report DONE.",
|
|
285
|
+
"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.",
|
|
286
|
+
"suggestedRole": "developer",
|
|
287
|
+
"terminal": true,
|
|
288
|
+
"toolPolicy": {
|
|
289
|
+
"disallowBuiltinToolsets": [
|
|
290
|
+
"ai-apps",
|
|
291
|
+
"archives",
|
|
292
|
+
"artifacts",
|
|
293
|
+
"audio",
|
|
294
|
+
"browser-automation",
|
|
295
|
+
"code-execution",
|
|
296
|
+
"craftbooks",
|
|
297
|
+
"data-tables",
|
|
298
|
+
"entity-intel",
|
|
299
|
+
"git",
|
|
300
|
+
"image-intel",
|
|
301
|
+
"images",
|
|
302
|
+
"role-delegation",
|
|
303
|
+
"role-delegation-escalation",
|
|
304
|
+
"security-intel",
|
|
305
|
+
"team-management",
|
|
306
|
+
"videos",
|
|
307
|
+
"web",
|
|
308
|
+
"workspace-fs-write"
|
|
309
|
+
],
|
|
310
|
+
"outputMedium": "task-note"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"version": "1.0.5",
|
|
315
|
+
"releasedAt": "2026-11-21T00:00:00Z",
|
|
316
|
+
"minGezelVersion": "1.26233"
|
|
317
|
+
}
|