@cyber-dash-tech/revela 0.18.15 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -45
- package/README.zh-CN.md +48 -45
- package/assets/img/lucent-01.jpg +0 -0
- package/assets/img/lucent-02.jpg +0 -0
- package/assets/img/lucent-03.jpg +0 -0
- package/assets/img/lucent-dark-01.jpg +0 -0
- package/assets/img/lucent-dark-02.jpg +0 -0
- package/assets/img/lucent-dark-03.jpg +0 -0
- package/assets/img/monet-01.jpg +0 -0
- package/assets/img/monet-02.jpg +0 -0
- package/assets/img/monet-03.jpg +0 -0
- package/assets/img/starter-01.jpg +0 -0
- package/assets/img/starter-02.jpg +0 -0
- package/assets/img/starter-03.jpg +0 -0
- package/assets/img/summit-01.jpg +0 -0
- package/assets/img/summit-02.jpg +0 -0
- package/assets/img/summit-03.jpg +0 -0
- package/designs/lucent/DESIGN.md +108 -1
- package/designs/lucent/design.css +283 -0
- package/designs/lucent-dark/DESIGN.md +278 -0
- package/designs/lucent-dark/assets/card-lens.jpg +0 -0
- package/designs/lucent-dark/assets/closing-background.jpg +0 -0
- package/designs/lucent-dark/assets/cover-background.jpg +0 -0
- package/designs/lucent-dark/assets/report-visual.jpg +0 -0
- package/designs/lucent-dark/assets/soft-texture.jpg +0 -0
- package/designs/lucent-dark/assets/toc-orb.png +0 -0
- package/designs/lucent-dark/design.css +417 -0
- package/designs/monet/DESIGN.md +53 -9
- package/designs/monet/assets/card-lens.jpg +0 -0
- package/designs/monet/assets/closing-background.jpg +0 -0
- package/designs/monet/assets/cover-background.jpg +0 -0
- package/designs/monet/assets/report-visual.jpg +0 -0
- package/designs/monet/assets/soft-texture.jpg +0 -0
- package/designs/monet/assets/toc-orb.png +0 -0
- package/designs/monet/design.css +340 -0
- package/designs/starter/DESIGN.md +22 -5
- package/designs/starter/assets/card-lens.jpg +0 -0
- package/designs/starter/assets/closing-background.jpg +0 -0
- package/designs/starter/assets/cover-background.jpg +0 -0
- package/designs/starter/assets/report-visual.jpg +0 -0
- package/designs/starter/assets/soft-texture.jpg +0 -0
- package/designs/starter/assets/toc-orb.png +0 -0
- package/designs/starter/design.css +322 -0
- package/designs/summit/DESIGN.md +54 -9
- package/designs/summit/assets/card-lens.jpg +0 -0
- package/designs/summit/assets/closing-background.jpg +0 -0
- package/designs/summit/assets/cover-background.jpg +0 -0
- package/designs/summit/assets/report-visual.jpg +0 -0
- package/designs/summit/assets/soft-texture.jpg +0 -0
- package/designs/summit/assets/toc-orb.png +0 -0
- package/designs/summit/design.css +334 -0
- package/lib/commands/designs-new.ts +18 -21
- package/lib/commands/designs-preview.ts +3 -8
- package/lib/deck-html/foundation.ts +8 -8
- package/lib/design/designs.ts +385 -14
- package/lib/narrative-state/deck-plan-artifact.ts +40 -3
- package/lib/page-templates/built-in-preview.html +373 -0
- package/lib/page-templates/contracts.ts +2 -0
- package/lib/page-templates/css.ts +2 -0
- package/lib/page-templates/foundation.ts +41 -0
- package/lib/page-templates/index.ts +6 -0
- package/lib/page-templates/registry.ts +3 -0
- package/lib/page-templates/render.ts +1202 -0
- package/lib/page-templates/templates/agenda.ts +4 -0
- package/lib/page-templates/templates/chart-takeaways.ts +4 -0
- package/lib/page-templates/templates/claim-supporting-visual.ts +4 -0
- package/lib/page-templates/templates/closing.ts +4 -0
- package/lib/page-templates/templates/cover.ts +4 -0
- package/lib/page-templates/templates/executive-summary.ts +4 -0
- package/lib/page-templates/templates/index.ts +19 -0
- package/lib/page-templates/templates/key-message-evidence.ts +4 -0
- package/lib/page-templates/templates/metric-highlight.ts +4 -0
- package/lib/page-templates/templates/problem-context.ts +4 -0
- package/lib/page-templates/templates/process-steps.ts +4 -0
- package/lib/page-templates/templates/recommendation-decision.ts +4 -0
- package/lib/page-templates/templates/risks-tradeoffs.ts +4 -0
- package/lib/page-templates/templates/section-divider.ts +4 -0
- package/lib/page-templates/templates/shared.ts +11 -0
- package/lib/page-templates/templates/table-comparison.ts +4 -0
- package/lib/page-templates/templates/timeline-roadmap.ts +4 -0
- package/lib/page-templates/vocabulary.ts +158 -0
- package/lib/prompt-builder.ts +9 -5
- package/lib/qa/artifact.ts +117 -7
- package/lib/qa/checks.ts +1 -1
- package/lib/qa/compliance.ts +5 -1
- package/lib/qa/component-contracts.ts +90 -0
- package/lib/runtime/index.ts +99 -3
- package/package.json +7 -15
- package/plugins/revela/.codex-plugin/plugin.json +4 -4
- package/plugins/revela/hooks/revela_guard.ts +35 -0
- package/plugins/revela/hooks/revela_post_write_notice.ts +39 -9
- package/plugins/revela/mcp/revela-server.ts +103 -7
- package/plugins/revela/skills/revela/SKILL.md +3 -3
- package/plugins/revela/skills/revela-design/SKILL.md +25 -14
- package/plugins/revela/skills/revela-helper/SKILL.md +3 -3
- package/plugins/revela/skills/revela-make-deck/SKILL.md +27 -12
- package/plugins/revela/skills/revela-research/SKILL.md +1 -0
- package/skill/SKILL.md +11 -2
- package/designs/lucent/preview.html +0 -612
- package/designs/monet/preview.html +0 -2293
- package/designs/starter/preview.html +0 -314
- package/designs/summit/preview.html +0 -2284
- package/plugins/revela/skills/revela-review/SKILL.md +0 -46
|
@@ -9,34 +9,39 @@ Use this skill when the user asks to create, customize, edit, validate, package,
|
|
|
9
9
|
|
|
10
10
|
## Contract
|
|
11
11
|
|
|
12
|
-
- Designs define deck visual systems: rules, foundation, layouts, components, chart rules, and
|
|
12
|
+
- Designs define deck visual systems: rules, foundation, layouts, components, chart rules, and page-template foundation styling.
|
|
13
|
+
- CSS-native designs include `design.css` as the executable visual source. `DESIGN.md` explains the design contract; `design.css` styles the stable template DOM classes.
|
|
14
|
+
- Designs should define executable visual contracts, not only mood, fonts, and palettes. Capture grid/safe-area, spacing scale, type scale, surface behavior, chart tokens, component states, and preview fixtures in the design package.
|
|
13
15
|
- Designs may include package-owned `assets/**` such as cover or closing backgrounds; design tools surface these as design elements, not source evidence.
|
|
14
16
|
- When the user uploads or provides logo, cover, closing, background, texture, brand image, or similar design material, store it inside the design package with `revela_design_draft_create.assets`; use paths under `assets/**` only.
|
|
15
|
-
-
|
|
17
|
+
- Design previews are generated from Revela's built-in page-template preview plus the draft or installed `design.css`.
|
|
16
18
|
- Default authoring is workspace draft first, then validate, then install only when appropriate.
|
|
17
19
|
- Direct user-level creation is reserved for explicit create/install-now requests.
|
|
18
20
|
- Shareable design archives are `.tar` or `.tar.gz`; install archives only from trusted local paths.
|
|
19
21
|
- Do not use domain tools for visual design work.
|
|
20
|
-
- Do not
|
|
22
|
+
- Do not write `decks/*.html` while authoring a design. Use `revela_design_preview` to generate a workspace-local design preview.
|
|
21
23
|
|
|
22
24
|
## Required Tools
|
|
23
25
|
|
|
24
26
|
For status, inspection, activation, or selection:
|
|
25
27
|
|
|
26
28
|
1. Call `revela_design_list`.
|
|
27
|
-
2. Call `revela_design_read`, `revela_design_inventory`, `revela_design_read_layout`, or `
|
|
29
|
+
2. Call `revela_design_read`, `revela_design_inventory`, `revela_design_read_layout`, `revela_design_read_component`, or `revela_page_template_foundation` as needed.
|
|
28
30
|
3. Call `revela_design_activate` only when the user asks to use a design.
|
|
29
31
|
|
|
30
32
|
For new or edited designs:
|
|
31
33
|
|
|
32
34
|
1. Call `revela_design_list`.
|
|
33
35
|
2. Read the requested base design or active design with `revela_design_read`.
|
|
34
|
-
3.
|
|
35
|
-
4. Call `
|
|
36
|
-
5.
|
|
37
|
-
6.
|
|
38
|
-
7. Call `
|
|
39
|
-
8. Call `
|
|
36
|
+
3. Call `revela_design_inventory` and inspect its `pageTemplates` summary.
|
|
37
|
+
4. Call `revela_page_template_foundation` for any built-in page templates the design should style or preview.
|
|
38
|
+
5. Draft complete `DESIGN.md` and complete `design.css` content.
|
|
39
|
+
6. Call `revela_design_draft_create` with `designCss`; when uploaded or local design material exists, pass `assets: [{ path: "assets/...", contentBase64|content|sourcePath }]` so the files are written into the draft package.
|
|
40
|
+
7. Call `revela_design_draft_validate`.
|
|
41
|
+
8. Call `revela_design_preview` for the draft and inspect the generated preview in Browser.
|
|
42
|
+
9. If validation or preview review fails, revise the draft content and repeat draft create/validate/preview.
|
|
43
|
+
10. Call `revela_design_draft_install` only after the draft validates and the user intent is to install it.
|
|
44
|
+
11. Call `revela_design_activate` only when the user asks to make it active.
|
|
40
45
|
|
|
41
46
|
For sharing or installing design archives:
|
|
42
47
|
|
|
@@ -52,17 +57,22 @@ Use `revela_design_create` only when the user explicitly requests direct local c
|
|
|
52
57
|
|
|
53
58
|
- Use a kebab-case design name.
|
|
54
59
|
- `DESIGN.md` must include valid frontmatter and complete design marker sections.
|
|
60
|
+
- `design.css` should be present for CSS-native designs and is the only executable CSS source for package-owned template styling.
|
|
55
61
|
- Include design rules, foundation guidance, at least one layout, and at least one component.
|
|
62
|
+
- In `@design:foundation`, document the design contract: grid columns or layout rails, safe area, spacing/baseline scale, typography scale, surfaces/borders/shadows, and chart tokens when charts are supported.
|
|
63
|
+
- Use page-template foundation as the starting point for built-in template styling. Style template classes, but do not remove structural classes or `data-template-slot` semantics.
|
|
64
|
+
- Layouts must declare stable slots and use grid/flex structure as the source of alignment. Avoid one-off absolute positioning that bypasses the declared layout contract.
|
|
65
|
+
- Components should describe normal, dense, and long-copy behavior where relevant. Chart, table, media, and source-note components need stable container dimensions.
|
|
56
66
|
- Optional assets must live under `assets/**`; reference them as package-relative paths like `assets/cover-background.png`.
|
|
57
67
|
- `DESIGN.md` may reference package assets in rules, layouts, or components with `assets/...`; do not reference workspace `assets/` media manifest entries for design-owned visuals.
|
|
58
|
-
- `
|
|
59
|
-
- If design assets are present,
|
|
60
|
-
-
|
|
68
|
+
- `revela_design_preview` must generate the visual preview; do not hand-write package `preview.html` for ordinary CSS-native design drafts.
|
|
69
|
+
- If design assets are present, the generated preview should visibly use the saved `assets/...` files when the design CSS references them.
|
|
70
|
+
- Generated preview should show the built-in page templates with normal, dense, chart/table, timeline, image, and source-note-like states.
|
|
61
71
|
- Preserve source inspiration and limitations explicitly; do not copy copyrighted design text or assets into the package.
|
|
62
72
|
|
|
63
73
|
## Outputs
|
|
64
74
|
|
|
65
|
-
- Design draft path/status or installed design name.
|
|
75
|
+
- Design draft path/status, generated preview path/status, or installed design name.
|
|
66
76
|
- Archive path/status when packaging or installing a shareable design.
|
|
67
77
|
- Asset metadata surfaced by read/inventory tools when `assets/**` exists.
|
|
68
78
|
- Saved asset paths and intended uses, for example `assets/cover-background.png -> cover hero background`.
|
|
@@ -74,5 +84,6 @@ Use `revela_design_create` only when the user explicitly requests direct local c
|
|
|
74
84
|
|
|
75
85
|
- Do not write `deck-plan.md`.
|
|
76
86
|
- Do not write `decks/*.html`.
|
|
87
|
+
- Do not patch `decks/_revela-design/**/design.css`; those files are regenerated deck-local snapshots.
|
|
77
88
|
- Do not install or activate a design unless the user requested that outcome.
|
|
78
89
|
- Do not invent licenses, asset provenance, or brand permissions.
|
|
@@ -12,7 +12,7 @@ Use this skill when the user asks what Revela is, what the current workspace sta
|
|
|
12
12
|
- This is a read-only helper and orientation surface.
|
|
13
13
|
- `revela` is the main workflow router; this skill explains status and capabilities.
|
|
14
14
|
- It may inspect runtime, design, domain, and workspace artifact status.
|
|
15
|
-
- It must not perform research, write files, create `spec.md`, create `deck-plan.md`, generate decks, open
|
|
15
|
+
- It must not perform research, write files, create `spec.md`, create `deck-plan.md`, generate decks, open deck browser views, or export artifacts.
|
|
16
16
|
- Keep the answer short and operational.
|
|
17
17
|
|
|
18
18
|
## Preconditions
|
|
@@ -46,7 +46,7 @@ Report:
|
|
|
46
46
|
- `spec.md` exists but no `researches/`: run `revela-research`.
|
|
47
47
|
- Research exists but no `deck-plan.md`: continue `revela-research` to the Planning Handoff.
|
|
48
48
|
- Valid `deck-plan.md` but no deck artifact: run `revela-make-deck`.
|
|
49
|
-
- Existing deck artifact:
|
|
49
|
+
- Existing deck artifact: surface the HTML deck as a website card/link for Codex Browser native annotation, or run `revela-export` for PDF/PPTX/PNG.
|
|
50
50
|
|
|
51
51
|
## Must Not
|
|
52
52
|
|
|
@@ -54,5 +54,5 @@ Report:
|
|
|
54
54
|
- Do not do external web research.
|
|
55
55
|
- Do not generate or repair `spec.md`.
|
|
56
56
|
- Do not generate or repair `deck-plan.md`.
|
|
57
|
-
- Do not generate,
|
|
57
|
+
- Do not generate, annotate, patch, or export deck artifacts.
|
|
58
58
|
- Do not create, install, or activate designs or domains; route those requests to `revela-design` or `revela-domain`.
|
|
@@ -12,9 +12,12 @@ Use this skill when the user asks to make, generate, render, or update a Revela
|
|
|
12
12
|
- Deck execution planning comes from canonical `deck-plan.md`.
|
|
13
13
|
- Local materials, material reviews, `researches/`, `assets/`, and user intent provide source context.
|
|
14
14
|
- Slide argument copy comes from `deck-plan.md` `Claim`, `Reasoning`, and `Audience takeaway` fields when present; raw findings are evidence/source context, not default body copy.
|
|
15
|
-
- Active/requested design tools define valid layouts, slots, components, nesting hints, and HTML writing rules.
|
|
15
|
+
- Active/requested design tools define valid layouts, slots, components, nesting hints, structure contracts, and HTML writing rules.
|
|
16
|
+
- Built-in page template tools define semantic page templates, foundation/scaffold HTML, editable slots, stable DOM contracts, and template QA contracts.
|
|
17
|
+
- Deck-local `decks/_revela-design/**/design.css` files are generated design snapshots. Do not patch them during deck making; regenerate the deck foundation or enter the design workflow instead.
|
|
16
18
|
- Active/requested domain guidance may inform communication framing, but it is not source evidence.
|
|
17
19
|
- Generated artifacts live under `decks/*.html`.
|
|
20
|
+
- After final Artifact QA passes, reply with the generated HTML deck as a standalone website link/card that opens in Codex Browser for native browsing and annotation.
|
|
18
21
|
- Do not require a Narrative Vault before generating a deck.
|
|
19
22
|
- This skill does not own normal plan authoring; `revela-research` owns source preparation and `deck-plan.md` planning handoff.
|
|
20
23
|
- `deck-plan.md` is required for normal deck generation.
|
|
@@ -42,14 +45,19 @@ Before render preflight:
|
|
|
42
45
|
1. Call `revela_design_list`.
|
|
43
46
|
2. Call `revela_design_read` with `section: "rules"` for the active/requested design.
|
|
44
47
|
3. Call `revela_design_inventory`.
|
|
48
|
+
4. Call `revela_list_page_templates` when the deck-plan uses `template` fields or when adding a new page.
|
|
49
|
+
5. For each template used in the current batch, call `revela_page_template_foundation` before creating or editing scaffold HTML.
|
|
50
|
+
6. Review each component's `contract` field. Components with structure contracts must be planned from structured content and rendered with the required internal DOM/classes, not simplified freehand markup.
|
|
45
51
|
|
|
46
52
|
Before HTML writing:
|
|
47
53
|
|
|
48
54
|
1. Call `revela_read_deck_plan`.
|
|
49
55
|
2. Read the returned `htmlWritingBatches`.
|
|
50
|
-
3.
|
|
51
|
-
4.
|
|
52
|
-
5.
|
|
56
|
+
3. For new slides with `template`, call `revela_render_template_scaffold` or `revela_add_template_scaffold`, then bounded-edit only the inserted slide's `data-template-slot` regions.
|
|
57
|
+
4. Use `revela_render_template_slide` / `revela_add_template_slide` only as a compatibility path for existing full `Template Content` JSON plans.
|
|
58
|
+
5. For legacy slides without `template`, call `revela_design_read_layout` for each layout used in the current batch.
|
|
59
|
+
6. For legacy slides without `template`, call `revela_design_read_component` for each component used in the current batch. For contract components, treat the returned CSS/HTML as executable grammar and preserve the required root, descendant, item, and alternating classes.
|
|
60
|
+
7. Fetch chart rules before creating or modifying ECharts.
|
|
53
61
|
|
|
54
62
|
## Plan Preflight And Repair
|
|
55
63
|
|
|
@@ -61,6 +69,7 @@ Allowed plan repairs are limited to technical diagnostics from `revela_read_deck
|
|
|
61
69
|
- Invalid or missing `sourceLinks` field structure, without adding new unsupported source links.
|
|
62
70
|
- Layout, slot, component, or `children` names that do not match `revela_design_inventory`.
|
|
63
71
|
- Component nesting fixes such as using `box.children` when the selected component model requires nested semantic groups.
|
|
72
|
+
- Missing or misspelled built-in `template` ids reported by `revela_read_deck_plan`.
|
|
64
73
|
|
|
65
74
|
Do not redesign the argument structure, add new slides, remove supported slides, rewrite claims, or add source links that were not reviewed or saved by `revela-research`. If normal plan authoring is needed, stop and send the user back to `revela` routing or `revela-research` Planning Handoff.
|
|
66
75
|
|
|
@@ -74,19 +83,24 @@ Use this phase when the user asks to make, generate, render, or update an HTML d
|
|
|
74
83
|
2. Read `htmlWritingBatches` before any HTML write. `revela_read_deck_plan` is QA/diagnostics, not a writer.
|
|
75
84
|
3. For new HTML files, call `revela_create_deck_foundation`.
|
|
76
85
|
4. Use the deck-plan's `Claim`, `Reasoning`, and `Audience takeaway` as the primary slide copy. Keep finding text in source notes, captions, evidence charts, or speaker notes unless the plan explicitly calls for a direct evidence quote.
|
|
77
|
-
5.
|
|
78
|
-
6.
|
|
79
|
-
7.
|
|
80
|
-
8.
|
|
81
|
-
9.
|
|
82
|
-
10.
|
|
83
|
-
11.
|
|
84
|
-
12.
|
|
86
|
+
5. For template slides, use the deck-plan `template` to create a scaffold with `revela_add_template_scaffold`; use `Template Content` only as seed or compatibility input, not as the final authoring interface.
|
|
87
|
+
6. After scaffold insertion, bounded-edit the current slide HTML: preserve `.slide`, `.slide-canvas`, `data-template`, required template classes, and `data-template-slot` semantics.
|
|
88
|
+
7. Visual slots may be replaced by image, chart, table, or diagram containers only when the replacement keeps a clear semantic container for QA and export.
|
|
89
|
+
8. A single HTML write/edit/apply_patch may add or rewrite at most 5 slide sections.
|
|
90
|
+
9. If a chapter is longer than 5 slides, use the consecutive batch parts returned by `revela_read_deck_plan`.
|
|
91
|
+
10. Patch slides into the foundation between Revela slide markers.
|
|
92
|
+
11. Preserve positive 1-based `data-slide-index` values.
|
|
93
|
+
12. Every slide must have exactly one direct `.slide-canvas` child.
|
|
94
|
+
13. Keep the HTML valid after each write.
|
|
95
|
+
14. After every HTML write, call `revela_run_deck_qa` and repair hard errors before continuing or export.
|
|
96
|
+
15. After the final `revela_run_deck_qa` passes with zero hard errors, reply with a standalone Markdown link to the generated HTML deck artifact so Codex renders an Open in Browser website card.
|
|
97
|
+
16. Prefer an absolute `file://` URL for the card. If the card or direct file navigation is unavailable, start a read-only local static server from the workspace root and use the exact `http://127.0.0.1:<port>/decks/<file>.html` URL.
|
|
85
98
|
|
|
86
99
|
## Outputs
|
|
87
100
|
|
|
88
101
|
- `decks/*.html`.
|
|
89
102
|
- Artifact QA status.
|
|
103
|
+
- Website card/link for the QA-passed HTML deck.
|
|
90
104
|
- Unresolved render/design issues and any plan diagnostics that require `revela-research` Planning Handoff.
|
|
91
105
|
|
|
92
106
|
## Must Not
|
|
@@ -96,6 +110,7 @@ Use this phase when the user asks to make, generate, render, or update an HTML d
|
|
|
96
110
|
- Do not write a new `deck-plan.md` when it is missing.
|
|
97
111
|
- Do not use design inventory names, slots, or components that were not returned by the active/requested design tools.
|
|
98
112
|
- Do not use a slot that does not belong to the selected layout.
|
|
113
|
+
- Do not delete template required classes or slots during bounded edits. If the required structure cannot be satisfied, choose a simpler valid template/component or stop with the contract issue.
|
|
99
114
|
- Do not patch more than 5 slide sections in one HTML write.
|
|
100
115
|
- Do not invent source links, quotes, URLs, page references, caveats, or licenses.
|
|
101
116
|
- Do not write remote image candidates directly into deck HTML; save them as workspace assets first.
|
|
@@ -49,6 +49,7 @@ Use this skill when the user asks to start from a goal, inspect local materials,
|
|
|
49
49
|
- Call `revela_design_list`.
|
|
50
50
|
- Call `revela_design_read` with `section: "rules"` for the active/requested design.
|
|
51
51
|
- Call `revela_design_inventory`.
|
|
52
|
+
- When a chosen component has a `contract` field, preserve that contract in the visual brief/render notes so Make Deck renders the required internal structure instead of a simplified lookalike.
|
|
52
53
|
- Write `deck-plan.md` directly from reviewed materials, saved findings, assets, user intent, active domain framing, and active design vocabulary.
|
|
53
54
|
- Call `revela_read_deck_plan` after writing `deck-plan.md`.
|
|
54
55
|
- If diagnostics report `sourceLinks`, layout, slot, component, or `children` issues, patch `deck-plan.md` directly and call `revela_read_deck_plan` again.
|
package/skill/SKILL.md
CHANGED
|
@@ -143,6 +143,9 @@ Rules for the slide plan:
|
|
|
143
143
|
- Use exact layout names from the Layout Index and exact component names from
|
|
144
144
|
the Component Index. Use only slots returned by the selected layout inventory.
|
|
145
145
|
Do not invent layout, slot, or component names.
|
|
146
|
+
- Components marked in the Component Index Contract column have mandatory
|
|
147
|
+
internal structure. Preserve their required DOM/classes in render notes and
|
|
148
|
+
HTML generation; do not describe them as generic visual ideas.
|
|
146
149
|
- Use `box.children` when several child components support one semantic idea.
|
|
147
150
|
Do not duplicate a child component both inside `box.children` and as a
|
|
148
151
|
separate top-level component plan entry.
|
|
@@ -217,8 +220,11 @@ Before writing or materially changing HTML:
|
|
|
217
220
|
layout names, comma-separated.
|
|
218
221
|
5. Call `revela-designs` with `action: "read"` and `component` set to all
|
|
219
222
|
required component names, comma-separated.
|
|
220
|
-
6.
|
|
221
|
-
|
|
223
|
+
6. For any component with a Contract marker, copy the fetched component
|
|
224
|
+
structure closely and keep its required root, descendant, item, and
|
|
225
|
+
alternating classes.
|
|
226
|
+
7. Fetch `section: "chart-rules"` before using ECharts.
|
|
227
|
+
8. Do not update legacy `requiredInputs`; design fetching is an execution step,
|
|
222
228
|
not a workflow permission gate.
|
|
223
229
|
|
|
224
230
|
Never generate HTML from memory or prior knowledge of a design. Copy the fetched
|
|
@@ -279,6 +285,9 @@ The active design defines a closed vocabulary of layouts and components.
|
|
|
279
285
|
|
|
280
286
|
- Every slide must use exactly one layout class from the Layout Index.
|
|
281
287
|
- Every content block must use component classes from the Component Index.
|
|
288
|
+
- Contract components must satisfy their fetched structure contract. Do not
|
|
289
|
+
replace a timeline, roadmap, chart frame, or other structured component with
|
|
290
|
+
a visual approximation that only resembles it.
|
|
282
291
|
- Do not invent layout classes, component names, CSS variables, custom grids, or
|
|
283
292
|
custom visual effects.
|
|
284
293
|
- Do not define new class rules in the deck `<style>` block unless the fetched
|