@eventmodelers/cli 1.0.87 → 1.0.88
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/package.json +1 -1
- package/shared/build-kit/lib/tracing.js +3 -4
- package/shared/skills/learn-eventmodelers-api/SKILL.md +22 -15
- package/stacks/modeling-kit/templates/.claude/skills/discover-storyboard/SKILL.md +2 -0
- package/stacks/modeling-kit/templates/.claude/skills/eventmodeling-storyboarding-events/SKILL.md +1 -1
- package/stacks/modeling-kit/templates/.claude/skills/examples/SKILL.md +7 -17
- package/stacks/modeling-kit/templates/.claude/skills/examples/references/api-fallback.md +4 -3
- package/stacks/modeling-kit/templates/.claude/skills/html-screen/SKILL.md +2 -1
- package/stacks/modeling-kit/templates/.claude/skills/html-screen/references/api-fallback.md +2 -0
- package/stacks/modeling-kit/templates/.claude/skills/storyboard/SKILL.md +1 -1
- package/stacks/modeling-kit/templates/kit/CLAUDE-STANDALONE.md +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventmodelers/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.88",
|
|
4
4
|
"description": "Eventmodelers CLI — real-time Claude agent + skills for Claude Code, for any stack (Node, Supabase, Axon, OpenCQRS, UmaDB, Kurrent, or modeling-only)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// What a slice costs: one trace per build turn against one slice, posted to the platform's
|
|
2
|
-
// /api/org/:orgId/
|
|
2
|
+
// /api/org/:orgId/agent-traces. Only the runner can see what a turn cost, so it reports it.
|
|
3
3
|
//
|
|
4
4
|
// Best effort: each trace is appended to a local JSONL file, then POSTed once. No retries, no
|
|
5
5
|
// buffering. A failed upload is logged and forgotten; the file is the record.
|
|
@@ -114,10 +114,9 @@ export function createSliceTracer({ baseUrl, token, organizationId, agentId, tra
|
|
|
114
114
|
const canUpload = !!(enabled && baseUrl && token && organizationId && agentId);
|
|
115
115
|
|
|
116
116
|
async function post(trace) {
|
|
117
|
-
|
|
118
|
-
if (!canUpload || !trace.boardId) return;
|
|
117
|
+
if (!canUpload) return;
|
|
119
118
|
try {
|
|
120
|
-
const res = await fetch(`${baseUrl}/api/org/${organizationId}/
|
|
119
|
+
const res = await fetch(`${baseUrl}/api/org/${organizationId}/agent-traces`, {
|
|
121
120
|
method: 'POST',
|
|
122
121
|
headers: { 'Content-Type': 'application/json', 'x-token': token, 'x-agent-id': agentId },
|
|
123
122
|
body: JSON.stringify({ traces: [trace] }),
|
|
@@ -27,8 +27,7 @@ Write tools take their items as an array (`nodeIds[]`, `elements[]`, `connection
|
|
|
27
27
|
| `get_nodes` | `boardId`, `type?`, `name?`, `chapterId?`, `nodeIds?`, `projection?` (`"line"`) | List nodes, optionally by type and/or a partial case-insensitive title match. `chapterId` scopes to one timeline — prefer this over an unscoped board-wide call whenever the step is working within one chapter (the common case); `nodeIds` fetches a known, scattered subset in one call (e.g. re-verifying exactly the nodes just touched by a batch write) instead of a full `type` refetch; `projection: "line"` maps each match to `{id, type, title}` only. Every node carries `cellName`, its cell address in the chapter it is placed in (absent when unplaced) — read the cell names the cell-addressed tools need from here, never derive or invent one | §3 `GET .../nodes` |
|
|
28
28
|
| `get_node` | `boardId`, `nodeId`, `projection?` (`"cells"` \| `"edges"`) | Get one node — the full response carries `cellName`, its cell address in the chapter it is placed in. `projection: "cells"` (CHAPTER nodes only) returns just `{rows, columns, cells}` instead of the full `timelineData` — use whenever only the grid/occupancy is needed, not the whole chapter; `projection: "edges"` returns just that node's inbound/outbound connections instead of `findNodeById`'s full record. Both are opt-in — omitting `projection` is the unchanged full response | §3 `GET .../nodes/:nodeId` |
|
|
29
29
|
| `get_node_comments` | `boardId`, `nodeId` | List comments on a node | §1 `GET .../nodes/:nodeId/comments` |
|
|
30
|
-
| `get_board_events` | `boardId` |
|
|
31
|
-
| `search_board_events` | `boardId`, `name` | Search events by node name | §1 `GET .../events/search` |
|
|
30
|
+
| `get_board_events` | `boardId`, `since?`, `seq?` | A page of at most 300 board events, oldest first, as `{events, pageSize, hasMore}`. Not the whole log: while `hasMore` is true, page on by passing the last event's `seq` as `since`. `seq` returns only the event of exactly that seq | §1 `GET .../events` |
|
|
32
31
|
| `submit_node_events` | `boardId`, `events[]`, `autoConnect?`, `compact?` | Create/update nodes (raw `NodeChangeEvent`/edge events). Every event property is described on the tool's own `events[]` schema — read that rather than this skill when all you need is the event shape. An event needs its own `id` (required — a fresh uuid per event, never the node id) and its `eventType`, plus the keys of its kind (`nodeId`/`meta`/`node`, or `edgeId`/`source`/`target`). The `id` keys the returned `hashes` map and makes a resubmit idempotent — the same event sent twice under one id writes a single board event. Don't send `boardId` or `timestamp` per event — the server takes the board from the call and stamps the time itself, and ignores both if sent. `autoConnect: false` places freshly-created nodes without wiring them to their own/previous-column neighbors (avoids a stray nearest-left edge); `compact: true` returns `{persisted: <count>}` instead of the per-node hash map | §3 `POST .../nodes/events` |
|
|
33
32
|
| `delete_node` | `boardId`, `nodeIds[]` | Delete nodes, applied in order — one failure doesn't stop the rest; answers `{results}`. Deleting a chapter (timeline) cascades — every node placed in one of its cells, plus any node parented to it (e.g. SLICE_BORDER), is deleted too, along with all their edges | (via `node:deleted` event, §3) |
|
|
34
33
|
| `create_drawing` | `boardId`, `drawings[]` (each `kind`, `x`, `y`, `width`, `height`, ...) | Freehand canvas annotation (path/rect/text/sticky) — never placed in a cell. An annotation is rarely one stroke: a loop plus its arrows and label is one call with several `drawings` entries, applied in order, not three calls | — (REST `POST .../drawing/draw` accepts a single drawing or an array) |
|
|
@@ -59,9 +58,8 @@ Write tools take their items as an array (`nodeIds[]`, `elements[]`, `connection
|
|
|
59
58
|
| `link_element` | `boardId`, `nodeId`, plus either `targetNodeId` or `timelineId` (+ `columnIndex?`, `lane?`) | Turn a node into a linked copy of `nodeId` — it receives a full copy of that node's meta plus `meta.linkedTo`. Name an existing `targetNodeId`, or pass `timelineId` to have the copy placed and linked in this one call (inheriting the original's type and title), which is what a translation or automation chain wants | §3 `POST .../nodes/:nodeId/link` |
|
|
60
59
|
| `add_comment` | `boardId`, `comments[]` (each `nodeId`, `text`, `type?` `'COMMENT'\|'TASK'\|'QUESTION'`, `author?`) | Add comments on any nodes of one board — `QUESTION` is the type for a gap/edge case raised during review, and a review posts all its questions in one call; answers `{results}` in request order | §1 `POST .../boards/:boardId/comments` (batch) |
|
|
61
60
|
| `update_comment` | `boardId`, `nodeId`, `commentId`, `action` (`'resolve'\|'delete'`) | Resolve or delete a comment | — (via comment events) |
|
|
62
|
-
| `create_screen` | `boardId`, `screens[]` (each `contentType` `'image'\|'sketch'\|'html'`, `chapterId`, `cellId?`/`cellName?`, `nodeId?`, content fields `imageBase64`/`mimeType`, `elements[]`, or `pages[]`/`backgroundColor`, `title?`, `description?`, `fields?`), `autoConnect?` | Create + place new screen nodes (SCREEN or HTML_SCREEN) with their content, in one call; entries applied in order, one failure doesn't stop the rest; answers `{results}`. `title` names the node (`meta.title`) in the same call — no follow-up `node:changed` just to label the screen. `autoConnect: false` places without wiring to timeline neighbors | §4 `POST .../images/:id/sketch` + `image-nodes` |
|
|
63
|
-
| `render_screen` | `boardId`, `nodeId`, `elements[]?` (SCREEN) or `pages[]?`+`backgroundColor?` (HTML_SCREEN), `description?` | Update an existing screen's content — exactly one of `elements`/`pages` | §4 `POST .../images/:id/sketch` + `image-nodes` |
|
|
64
|
-
| `add_field_examples` | `boardId`, `nodeId?`, `name?`, `cellName?`, `timelineId?` | Fill empty field examples using linked-node context | — (MCP-only convenience) |
|
|
61
|
+
| `create_screen` | `boardId`, `screens[]` (each `contentType` `'image'\|'sketch'\|'html'`, `chapterId`, `cellId?`/`cellName?`, `nodeId?`, content fields `imageBase64`/`mimeType`, `elements[]`, or `pages[]`/`backgroundColor`, `title?`, `description?`, `fields?`), `autoConnect?` | Create + place new screen nodes (SCREEN or HTML_SCREEN) with their content, in one call; each HTML page at most 6000 characters (`HTML_SCREEN_PAGE_TOO_LONG` otherwise); entries applied in order, one failure doesn't stop the rest; answers `{results}`. `title` names the node (`meta.title`) in the same call — no follow-up `node:changed` just to label the screen. `autoConnect: false` places without wiring to timeline neighbors | §4 `POST .../images/:id/sketch` + `image-nodes` |
|
|
62
|
+
| `render_screen` | `boardId`, `nodeId`, `elements[]?` (SCREEN) or `pages[]?`+`backgroundColor?` (HTML_SCREEN), `description?` | Update an existing screen's content — exactly one of `elements`/`pages`; each HTML page at most 6000 characters (`HTML_SCREEN_PAGE_TOO_LONG` otherwise) | §4 `POST .../images/:id/sketch` + `image-nodes` |
|
|
65
63
|
| `get_attribute_chain` | `boardId`, `timelineId`, `targetCellName`, `sourceCellName` | Resolve every node between two cells, ordered target→source. Both cell names must come from a node's reported `cellName` (`get_board_outline`, `get_nodes`, `get_node`) — a guessed address that happens to exist silently resolves the wrong chain | — (MCP-only convenience) |
|
|
66
64
|
| `get_image_snapshot_description` | `boardId`, `nodeId` | Load the `{elements:[...]}` sketch description from storage | — (reads what §4 sketch endpoints write) |
|
|
67
65
|
| `validate_slice_data` | `sliceData` | Offline validation of a `SliceDataOutput` payload — no board access | — (MCP-only, pure function) |
|
|
@@ -188,18 +186,27 @@ Delete a board.
|
|
|
188
186
|
|
|
189
187
|
---
|
|
190
188
|
|
|
191
|
-
### GET `/api/org/:orgId/boards/:boardId/events/search`
|
|
192
|
-
Search events by node name.
|
|
193
|
-
|
|
194
|
-
**Query params**: `name` (string)
|
|
195
|
-
**Response**: `200` — matching event array
|
|
196
|
-
|
|
197
|
-
---
|
|
198
|
-
|
|
199
189
|
### GET `/api/org/:orgId/boards/:boardId/events`
|
|
200
|
-
Get
|
|
190
|
+
Get a page of board events in sequence order — **at most 300 per call**, oldest first. One call is not the whole log: to read it all, pass the last event's `seq` as `since` and repeat while the `X-Has-More` response header is `true`. `X-Page-Size` carries the page size that applied.
|
|
201
191
|
|
|
202
|
-
**
|
|
192
|
+
**Query params**:
|
|
193
|
+
- `since` (integer, optional) — only events with a `seq` greater than this
|
|
194
|
+
- `skipSilent` (boolean, default `true`) — `false` also includes events marked silent
|
|
195
|
+
- `seq` (integer, optional) — only the event of exactly this seq (silent or not); `since` and `skipSilent` are ignored
|
|
196
|
+
|
|
197
|
+
**Response**: `200` — event array (at most 300; at most one with `seq`, empty if there is none — `X-Has-More` is then `false`)
|
|
198
|
+
**Errors**: `400` `EVENT_SEQ_INVALID` — `seq` is not a non-negative integer
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
since=0
|
|
202
|
+
while :; do
|
|
203
|
+
more=$(curl -s -D - -o page.json "$BASE_URL/api/org/$ORG_ID/boards/$BOARD_ID/events?since=$since" -H "x-token: $TOKEN" \
|
|
204
|
+
| tr -d '\r' | awk -F': ' 'tolower($1)=="x-has-more"{print $2}')
|
|
205
|
+
# ...use page.json...
|
|
206
|
+
[ "$more" = "true" ] || break
|
|
207
|
+
since=$(jq '.[-1].seq' page.json)
|
|
208
|
+
done
|
|
209
|
+
```
|
|
203
210
|
|
|
204
211
|
---
|
|
205
212
|
|
|
@@ -317,6 +317,8 @@ mcp__eventmodelers__create_screen {
|
|
|
317
317
|
|
|
318
318
|
**Never pass an empty `pages` array** — an empty array produces a blank placeholder, same as in `html-screen`/`eventmodeling-storyboarding-events`.
|
|
319
319
|
|
|
320
|
+
**Keep every reconstructed page at most 6000 characters per page (the server rejects a longer page with `400 HTML_SCREEN_PAGE_TOO_LONG` — split the screen into more pages or trim the markup instead).** A reconstructed real-world page easily runs longer — keep only the structure and content the screen is about, not every nav link, footer, or repeated list item.
|
|
321
|
+
|
|
320
322
|
**Image path — `renderMode == "image"` only, when the user explicitly asked for screenshots:**
|
|
321
323
|
|
|
322
324
|
```
|
package/stacks/modeling-kit/templates/.claude/skills/eventmodeling-storyboarding-events/SKILL.md
CHANGED
|
@@ -245,7 +245,7 @@ The MCP `create_screen` call above already sets the node's `title` and `meta.fie
|
|
|
245
245
|
|
|
246
246
|
A storyboard screen is placed at a *provisional* position — Steps 4 and 5 wire it to its COMMAND / READMODEL once those exist, and may move it first. Pass `autoConnect: false` on `create_screen` here so the placement doesn't pre-wire the screen to whatever happens to sit in the adjacent column; the real `SCREEN → COMMAND` and `READMODEL → SCREEN` edges are created deliberately in Steps 4 and 5. When creating several screens whose HTML is already authored, put them all in one `create_screen` call's `screens` array with `autoConnect: false`.
|
|
247
247
|
|
|
248
|
-
Design the page(s) as real HTML/CSS, following the `html-screen` skill's guidance: write full-size markup (16px body text, generous padding — the canvas scales it down, don't shrink it yourself), one complete self-contained fragment per page (no `<html>`/`<head>`/`<body>` wrapper — the canvas adds those), no `<script>`/inline handlers (stripped server-side), and Bulma CSS classes (`title`, `button`, `is-primary`, `field`/`control`/`input`, etc. — remember heading size modifiers like `class="title is-1"`) since Bulma 0.9.4 is loaded by default. Every page MUST include real field labels matching the actual event/command fields this screen captures or displays, and at least one primary action (submit/confirm button) for command screens.
|
|
248
|
+
Design the page(s) as real HTML/CSS, following the `html-screen` skill's guidance: write full-size markup (16px body text, generous padding — the canvas scales it down, don't shrink it yourself), one complete self-contained fragment per page (no `<html>`/`<head>`/`<body>` wrapper — the canvas adds those), no `<script>`/inline handlers (stripped server-side), and Bulma CSS classes (`title`, `button`, `is-primary`, `field`/`control`/`input`, etc. — remember heading size modifiers like `class="title is-1"`) since Bulma 0.9.4 is loaded by default. Keep every page at most 6000 characters per page (the server rejects a longer page with `400 HTML_SCREEN_PAGE_TOO_LONG` — split the screen into more pages or trim the markup instead). Every page MUST include real field labels matching the actual event/command fields this screen captures or displays, and at least one primary action (submit/confirm button) for command screens.
|
|
249
249
|
|
|
250
250
|
> **CRITICAL: NEVER pass an empty `pages` array.** An empty pages array produces a blank placeholder and is always wrong. You MUST design and include actual page markup before calling the render API.
|
|
251
251
|
|
|
@@ -31,31 +31,21 @@ From `$ARGUMENTS`, extract:
|
|
|
31
31
|
|
|
32
32
|
1. Read the chapter **once**: `mcp__eventmodelers__get_nodes { "boardId": "$BOARD_ID", "chapterId": "$CHAPTER_ID" }`. That single response carries every element's `meta.fields` *including the `example` values already filled in* — which is exactly the canonical-value pool Step 3c asks for, for the whole chapter, in one call.
|
|
33
33
|
2. Pick the canonical value per field name from that pool (e.g. `customerId: "cust-123"`, `email: "jane@example.com"`) before writing anything, so every element ends up consistent.
|
|
34
|
-
3. Then
|
|
34
|
+
3. Then generate every target's values and write them all in a single `submit_node_events { events: [...] }` call — one `node:changed` event per element, never one call per element.
|
|
35
35
|
|
|
36
36
|
A run that opens each element with its own `get_node` to "read existing examples first" is doing step 1 N times over.
|
|
37
37
|
|
|
38
38
|
---
|
|
39
39
|
|
|
40
|
-
## Step 2 — Resolve
|
|
40
|
+
## Step 2 — Resolve the element (prefer MCP)
|
|
41
41
|
|
|
42
|
-
`
|
|
42
|
+
Resolve `target` to a node, with whichever identifier it is:
|
|
43
43
|
|
|
44
|
-
- `target` is a UUID →
|
|
45
|
-
- `target` is a name →
|
|
46
|
-
- `target` is a cell name (e.g. `B3`) →
|
|
44
|
+
- `target` is a UUID → `mcp__eventmodelers__get_node { "boardId": "$BOARD_ID", "nodeId": "<target>" }`
|
|
45
|
+
- `target` is a name → `mcp__eventmodelers__get_nodes { "boardId": "$BOARD_ID", "name": "<target>" }` — a partial, case-insensitive title match; prefer an exact title, and if several elements still match, list them and ask the user to pick one
|
|
46
|
+
- `target` is a cell name (e.g. `B3`) → `mcp__eventmodelers__get_nodes { "boardId": "$BOARD_ID", "chapterId": "$CHAPTER_ID" }` and take the node whose `cellName` is `target` (if multiple chapters exist, find the chapter first with `get_nodes { "type": "CHAPTER" }` and ask the user if ambiguous). Never construct a cell address yourself — only use one you were given or read back as a node's `cellName`.
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
mcp__eventmodelers__add_field_examples { "boardId": "$BOARD_ID", "nodeId": "<target, if a UUID>" }
|
|
50
|
-
```
|
|
51
|
-
```
|
|
52
|
-
mcp__eventmodelers__add_field_examples { "boardId": "$BOARD_ID", "name": "<target, if a name>" }
|
|
53
|
-
```
|
|
54
|
-
```
|
|
55
|
-
mcp__eventmodelers__add_field_examples { "boardId": "$BOARD_ID", "cellName": "<target, if a cell name>", "timelineId": "$CHAPTER_ID" }
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
If this succeeds, skip straight to Step 6 (report back), describing the fields the tool reports as changed. Use the manual fallback flow below (Steps 2–5) only if MCP isn't connected.
|
|
48
|
+
Then continue with Step 3 (linked elements) — `mcp__eventmodelers__get_connected_nodes { "boardId": "$BOARD_ID", "nodeId": "<resolved id>", "includeFields": true }` returns the neighbours and their fields in one call.
|
|
59
49
|
|
|
60
50
|
**Fallback (no MCP):** see `references/api-fallback.md` — "Step 2 — Resolve the element".
|
|
61
51
|
|
|
@@ -15,11 +15,12 @@ curl -s "$BASE_URL/api/org/$ORG_ID/boards/$BOARD_ID/nodes/$target" \
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
### 2b — Name search
|
|
18
|
-
If `target` is not a UUID,
|
|
18
|
+
If `target` is not a UUID, list the board's nodes and match on `meta.title` (the REST nodes endpoint has no name filter):
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
curl -s "$BASE_URL/api/org/$ORG_ID/boards/$BOARD_ID/
|
|
22
|
-
-H "x-user-id: examples-skill"
|
|
21
|
+
curl -s "$BASE_URL/api/org/$ORG_ID/boards/$BOARD_ID/nodes" \
|
|
22
|
+
-H "x-user-id: examples-skill" \
|
|
23
|
+
| jq --arg t "$target" '[.[] | select((.meta.title // "") | ascii_downcase | contains($t | ascii_downcase))]'
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
Pick the best match (exact title match preferred; case-insensitive). If multiple matches exist, list them and ask the user to pick one.
|
|
@@ -54,6 +54,7 @@ Write normal, full-size HTML/CSS for each page — as if designing a real webpag
|
|
|
54
54
|
Guidelines:
|
|
55
55
|
- **Keep it simple — this is a view-only mockup, not a working app.** No JavaScript, no interactivity beyond what a static page can show (enforced server-side, see below). Keep the CSS compact: inline styles or a handful of Bulma classes are enough — don't write a large embedded `<style>` block or reinvent what Bulma already gives you for free.
|
|
56
56
|
- Each page is one complete, standalone HTML fragment — not a `data-step` div nested inside a shared blob. A multi-step flow (e.g. cart → payment → confirmation) is three separate pages in the array, each fully self-contained.
|
|
57
|
+
- **Each page may be at most 6000 characters** (the full markup string, including inline styles). The server rejects a longer page with `400 HTML_SCREEN_PAGE_TOO_LONG` (`context: {pageIndex, length, maxLength}`) and saves nothing — the render call fails as a whole. Check each page's length before rendering; if one is over, trim it (fewer inline styles, Bulma classes instead of custom CSS, fewer repeated sample rows) or split the content into another page. Adding a mark also counts toward the limit, since it adds attributes to the page's markup.
|
|
57
58
|
- Inline styles (`style="..."`) are the simplest way to keep each page self-contained.
|
|
58
59
|
- No `<script>` tags, no inline event handlers (`onclick`, `onload`, ...), no `javascript:` URIs — these are stripped server-side from every page before persisting regardless of what's sent. This is a static visual mockup, not an interactive prototype.
|
|
59
60
|
- A real page background (e.g. a light gray full-bleed background behind a centered white card) reads more realistically than a bare form floating on white.
|
|
@@ -149,7 +150,7 @@ mcp__eventmodelers__create_screen {
|
|
|
149
150
|
|
|
150
151
|
**Fallback (no MCP):** see `references/api-fallback.md` — "Step 4 — Creating a new node".
|
|
151
152
|
|
|
152
|
-
Expect `204 No Content` on success from either curl call.
|
|
153
|
+
Expect `204 No Content` on success from either curl call. A `HTML_SCREEN_PAGE_TOO_LONG` error means a page exceeds 6000 characters — shorten or split that page (see Step 3's guidelines) and send the call again; don't give up on the render.
|
|
153
154
|
|
|
154
155
|
## Step 5 — Define field data lineage (mandatory)
|
|
155
156
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Only needed when MCP is not connected. Every call below has an MCP equivalent in the main SKILL.md — always prefer that.
|
|
4
4
|
|
|
5
|
+
Each entry in `pages` may be at most 6000 characters — a longer page returns `400 {"code": "HTML_SCREEN_PAGE_TOO_LONG", "context": {"pageIndex", "length", "maxLength"}}` and nothing is saved.
|
|
6
|
+
|
|
5
7
|
## Step 2 — Load existing pages
|
|
6
8
|
|
|
7
9
|
```bash
|
|
@@ -43,7 +43,7 @@ Then **create one task per screen** using TaskCreate, naming each task after the
|
|
|
43
43
|
|
|
44
44
|
## HTML page design (default)
|
|
45
45
|
|
|
46
|
-
Design each page as real, full-size HTML/CSS following the `html-screen` skill's conventions: full-size markup (16px body text, generous padding — the canvas scales it down, don't shrink it yourself), one complete self-contained fragment per page (no `<html>`/`<head>`/`<body>` wrapper), no `<script>`/inline handlers (stripped server-side), and Bulma CSS classes (`title`, `button`, `is-primary`, `field`/`control`/`input`, etc. — remember heading size modifiers like `class="title is-1"`) since Bulma 0.9.4 is loaded by default.
|
|
46
|
+
Design each page as real, full-size HTML/CSS following the `html-screen` skill's conventions: full-size markup (16px body text, generous padding — the canvas scales it down, don't shrink it yourself), one complete self-contained fragment per page (no `<html>`/`<head>`/`<body>` wrapper), no `<script>`/inline handlers (stripped server-side), and Bulma CSS classes (`title`, `button`, `is-primary`, `field`/`control`/`input`, etc. — remember heading size modifiers like `class="title is-1"`) since Bulma 0.9.4 is loaded by default. Keep every page at most 6000 characters per page (the server rejects a longer page with `400 HTML_SCREEN_PAGE_TOO_LONG` — split the screen into more pages or trim the markup instead).
|
|
47
47
|
|
|
48
48
|
## Sketch path (explicit request only)
|
|
49
49
|
|
|
@@ -53,10 +53,7 @@ Steps:
|
|
|
53
53
|
chain they belong to, the timeline around them — and spend a full-`meta` `get_nodes` only
|
|
54
54
|
on the handful you conclude you are actually going to touch. One `get_node` per changed
|
|
55
55
|
node, or a second outline call for a chapter you already read this turn, is the same
|
|
56
|
-
fetch paid for twice (see `connect` Step 5).
|
|
57
|
-
`mcp__eventmodelers__get_board_events` with the header's `seq` range tells you what the
|
|
58
|
-
change actually was when the node's current state doesn't make it obvious. Then judge the
|
|
59
|
-
board as a whole: run `/analyze-existing-model` once per session to get that picture and
|
|
56
|
+
fetch paid for twice (see `connect` Step 5). Then judge the board as a whole: run `/analyze-existing-model` once per session to get that picture and
|
|
60
57
|
keep it in mind across turns, refreshing it when a turn's changes invalidate it. On a
|
|
61
58
|
`BOARD_REVIEW` turn that model-wide picture *is* the starting point.
|
|
62
59
|
**What you read here is what you hand down in step 3.** Index it and keep it: every fact
|