content: id remapping / clone (clone.sx) + 10 tests (561/561)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 45s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 45s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ injected adapter, not core.
|
||||
|
||||
## Status (rolling)
|
||||
|
||||
`bash lib/content/conformance.sh` → **551/551** (Phases 1–4 COMPLETE + extensions: HTML/SX escaping, Markdown render + import/export incl. tables & frontmatter (full round-trip), CRDT replication, tree-aware validation, snapshot cache, doc metadata, plain-text render, nested block trees + deep tree editing, doc stats, table block, HTML page wrapper + SEO page, doc composition, portable data + wire serialization)
|
||||
`bash lib/content/conformance.sh` → **561/561** (Phases 1–4 COMPLETE + extensions: HTML/SX escaping, Markdown render + import/export incl. tables & frontmatter (full round-trip), CRDT replication, tree-aware validation, snapshot cache, doc metadata, plain-text render, nested block trees + deep tree editing, doc stats, table block, HTML page wrapper + SEO page, doc composition + id-remap, portable data + wire serialization)
|
||||
|
||||
## Ground rules
|
||||
|
||||
@@ -93,11 +93,18 @@ lib/content/api.sx ── (content/edit) (content/render) (content/history) ─
|
||||
- [x] SEO page (`page-full.sx`: content/page-full, lang + meta description from excerpt)
|
||||
- [x] document composition (`compose.sx`: concat/prepend/concat-all/wrap-section)
|
||||
- [x] deep tree editing (`tree-edit.sx`: doc-deep-update/replace/delete/insert-into)
|
||||
- [x] id remapping / clone (`clone.sx`: content/remap-ids + prefix-ids, collision-free compose)
|
||||
- [x] portable data serialization (`data.sx`: content/to-data + from-data, round-trips tree)
|
||||
- [x] wire serialization (`wire.sx`: content/to-wire + from-wire, SX-text on the wire)
|
||||
|
||||
## Progress log
|
||||
|
||||
- 2026-06-07 — Extension: id remapping / clone (`clone.sx`).
|
||||
`content/remap-ids` deep-rewrites every block id across the tree (sections
|
||||
recurse) via a function; `content/prefix-ids` prefixes them. Enables
|
||||
collision-free composition (prefix each doc before concat → validates clean,
|
||||
where the unprefixed concat has duplicate ids). Content unchanged, only ids;
|
||||
immutable. 10 tests; suite 561/561.
|
||||
- 2026-06-07 — Extension: deep tree editing (`tree-edit.sx`). `doc-deep-update`
|
||||
/ `doc-deep-replace` / `doc-deep-delete` / `doc-deep-insert-into` mutate blocks
|
||||
anywhere in the nested tree (descending into CtSection children), completing
|
||||
|
||||
Reference in New Issue
Block a user