@cfbender/cesium 0.6.1 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.6.2 — 2026-05-13
4
+
5
+ Prompt fix. The `diff` block was missing from the agent-facing quick reference
6
+ in `system-fragment.md` — only fifteen of the sixteen catalog blocks were
7
+ surfaced — so agents would reach for `code` blocks with hand-rolled `+`/`-`
8
+ lines when asked to walk through a diff or release. The `diff` block is now
9
+ listed alongside `code`/`timeline`, and a short trigger note pairs "release
10
+ walkthrough / version diff / before-after / refactor proposal" with the `diff`
11
+ block explicitly.
12
+
13
+ - **fix:** Add `diff` to the prompt's quick block reference.
14
+ - **fix:** Add "When showing code changes" trigger paragraph.
15
+ - **chore:** Bump the block-type enumeration tests from 15 → 16 to keep the
16
+ catalog and the human-curated reference in lockstep.
17
+
18
+ No runtime or rendering changes; the `diff` block itself was already wired
19
+ end-to-end since v0.4.
20
+
3
21
  ## v0.6.1 — 2026-05-13
4
22
 
5
23
  Fixes a regression introduced by the v0.4 blocks refactor: the README's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfbender/cesium",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Beautiful self-contained HTML artifacts from your opencode agent.",
5
5
  "keywords": [
6
6
  "agent",
@@ -78,11 +78,16 @@ Call `cesium_styleguide` for full schemas and rendered examples.
78
78
  - `prose` — free-form markdown; `list` — bullet/numbered/checklist
79
79
  - `callout` — aside with variant: note/warn/risk; `divider` — rule
80
80
  - `code` — fenced code with lang; `timeline` — milestone list
81
+ - `diff` — side-by-side before/after code with bezier connectors
81
82
  - `compare_table` — comparison grid; `risk_table` — risk grid
82
83
  - `kv` — key-value pairs; `pill_row` — pill/tag chips
83
84
  - `diagram` — SVG/HTML visual (scrubbed)
84
85
  - `raw_html` — custom HTML escape hatch (scrubbed; add `purpose`)
85
86
 
87
+ ## When showing code changes
88
+
89
+ Showing what changed — release walkthroughs, version diffs, refactor proposals, before/after — use the `diff` block, not a `code` block with hand-rolled `+`/`-` lines. Pass either `patch` (unified diff) or both `before` and `after`. One `diff` block per file or hunk.
90
+
86
91
  {{BLOCK_FIELD_REFERENCE}}
87
92
 
88
93
  ## When to use raw_html / diagram