{"owner":"ianstormtaylor","repo":"editor","hasSkills":true,"totalSkillsCount":5,"totalTokensCount":1490,"categories":["plugin-manifest"],"hasMcp":false,"mcpConfig":null,"found":["packages/slate-history/Readme.md","packages/slate-hyperscript/Readme.md","packages/slate-react/Readme.md","packages/slate/Readme.md","packages/slate/test/properties/README.md"],"skills":{"packages/slate-history/Readme.md":"This package contains the core logic of Slate. Feel free to poke around to learn more!\n","packages/slate-hyperscript/Readme.md":"This package contains a hyperscript helper for creating Slate documents with JSX!\n","packages/slate-react/Readme.md":"This package contains the React-specific logic for Slate. It's separated further into a series of directories:\n\n- [**Components**](./src/components) — containing the React components for rendering Slate editors.\n- [**Hooks**](./src/hooks) — containing a few React hooks for Slate editors.\n- [**Plugins**](./src/plugin) — containing the React-specific plugins for Slate editors.\n- [**Utils**](./src/utils) — containing a few private convenience modules.\n\nFeel free to poke around in each of them to learn more!\n","packages/slate/Readme.md":"This package contains the core logic of Slate. Feel free to poke around to learn more!\n\nNote: A number of source files contain extracted types for `Interfaces` or `Transforms`. This is done currently to enable custom type extensions as found in `packages/src/interfaces/custom-types.ts`.\n","packages/slate/test/properties/README.md":"# Core property tests\n\n`yarn test` includes this suite with seed `20261014` and 100 runs per property. `yarn test:fuzz` runs the same 41 properties 5,000 times each, with a longer Mocha timeout. fast-check shrinks failures and prints the seed, replay path and counterexample.\n\nTo replay a failure, select its property and pass the reported seed and path:\n\n```sh\nSLATE_FUZZ_SEED=20261014 SLATE_FUZZ_PATH='0:1' yarn test:fuzz --grep 'normalization is idempotent'\n```\n\nFor a different run count or seed:\n\n```sh\nSLATE_FUZZ_RUNS=10000 SLATE_FUZZ_SEED=42 yarn test:fuzz\n```\n\n## Domains and contracts\n\nDefault documents are bounded to four top-level blocks, a container level, inline elements and voids. The fuzz profile raises those limits to six root blocks and three container levels. Text includes ASCII, accented characters, a surrogate pair and a combining sequence. Text marks include optional booleans, IDs and nested JSON data. The normalization generator also supplies empty elements, adjacent text nodes and mixed block/inline content, including invalid top-level text.\n\nEach of the nine operation types has its own document-and-selection inverse property. Operation payloads come from the current tree: removed text and nodes match their source, merge positions and properties match the preceding node, split properties match the source, and moves cannot target their own descendants. Separate generated sequences recompute valid operations after each step.\n\nRaw operation and ref checks disable automatic normalization. An inverse cannot undo extra operations performed by a normalizer. The separate normalization property checks idempotence, no changes on a second pass, nonempty elements, compatible inline/block children, text around inline elements, and no adjacent empty or equal-mark texts.\n\nSelection inverse properties use surviving, unambiguous points. Removing text or a node destroys position information inside it; re-inserting it cannot recover an old selection. The closed removed-text interval and both representations of a text merge seam are excluded from inverse assertions. Merged node paths also lose their separate node identities, so the path inverse check excludes those two exact paths. These exclusions are computed from the original operation, never by filtering for a successful transform result. Refs still test all these cases, including null affinities and removal, and must release their registrations.\n\nCharacter positions are grapheme positions, not every UTF-16 offset. The string/position property compares against independently segmented block strings using `Intl.Segmenter`, checks strictly increasing points and their exact offsets, and checks reverse traversal by text-prefix positions. Distinct leaf endpoints can represent the same block offset when walking in opposite directions. It uses `voids: true` so hidden void text is included consistently by both string APIs.\n\nLoose text equality is checked against Lodash's deep comparison of independently extracted marks. Generators never produce explicit `undefined` property values. Slate's equality treats them as missing keys, and `merge_node` and `set_node` inverses can drop them, so the strict round-trip checks would report differences JSON cannot represent. Equal nested values are cloned to avoid checking only shared object identities.\n\n## High-level transforms and history\n\nFifteen properties apply normalized high-level transforms with valid generated points, ranges and paths: delete, insertText, insertFragment, insertNodes, splitNodes, mergeNodes, inline/block wrap and unwrap, liftNodes, moveNodes, setNodes, unsetNodes and removeNodes. Deletion varies character/word/line/block units, distance and direction. Expanded deletion uses `hanging: true`; collapsed ranges use point deletion rather than an empty-range string oracle. String checks preserve the unaffected prefix/suffix, or all text for structural transforms. Point deletion protects root blocks outside the target and its immediate neighbors to allow void and empty-inline behavior.\n\nThree history properties execute one to ten transforms under default history, `withNewBatch`, or `withoutMerging`. Empty documents are repaired with one root insertion before subsequent commands.\n\nDocuments must match the starting and ending snapshots after undoing and redoing every batch. Undo restores the first saved batch's selection. Redo starts from the final batch's `selectionBefore` and transforms it through its saved operations with forward affinity, checking equality when those points survive; standalone selection changes are not history entries. Every final selection must resolve to valid text offsets. This selection oracle tests history wiring, not an independent implementation of point transformation.\n\nSeven position properties cover word, line and block with both void modes, plus character with `voids: false`. Each direction is strictly ordered and agrees with `after` or `before` for consecutive positions. Forward and reverse word boundaries need not coincide. A sample custom normalizer converts paragraphs containing exactly \"x\" into `x-para`, then checks termination, structural invariants and an operation-free second normalization.\n\n## Regressions and deferred contracts\n\n`regressions.spec.ts` retains plain regressions for fragment replacement through voids and block-leading inlines, history restoring saved selections from null, and directional traversal through inline voids. The leading-inline cases cover both range directions and whether a preceding block exists; insertion must remain in its own block. A deep-container case also covers the trailing inline while the document temporarily ends in emptied containers.\n\nText-conserving generated merges use adjacent sibling elements with compatible child modes: both have block children, or both have text/inline children. An additional generated property constructs incompatible sibling pairs in both directions and checks that they throw without changing the document, selection, operations or registered refs. Plain regressions also cover inline children, a non-sibling target, empty sides, text-node merging and the previous-node removal policy.\n\nThe `withoutMerging` property covers [issue #6302](https://github.com/ianstormtaylor/slate/issues/6302): before the fix, a transform's normalization operations became separate undo steps, and undoing them could throw or restore an invalid selection.\n\n## Scope\n\nThe fixed seed is a reproducible regression sample, not exhaustive coverage. Documents and sequences are deliberately small; sequences contain at most ten operations. Platform input and concurrent-operation convergence remain outside this suite; Slate operation transformation is not a convergent OT. History is the only plugin exercised here.\n"},"files":{"packages/slate-history/Readme.md":"This package contains the core logic of Slate. Feel free to poke around to learn more!\n","packages/slate-hyperscript/Readme.md":"This package contains a hyperscript helper for creating Slate documents with JSX!\n","packages/slate-react/Readme.md":"This package contains the React-specific logic for Slate. It's separated further into a series of directories:\n\n- [**Components**](./src/components) — containing the React components for rendering Slate editors.\n- [**Hooks**](./src/hooks) — containing a few React hooks for Slate editors.\n- [**Plugins**](./src/plugin) — containing the React-specific plugins for Slate editors.\n- [**Utils**](./src/utils) — containing a few private convenience modules.\n\nFeel free to poke around in each of them to learn more!\n","packages/slate/Readme.md":"This package contains the core logic of Slate. Feel free to poke around to learn more!\n\nNote: A number of source files contain extracted types for `Interfaces` or `Transforms`. This is done currently to enable custom type extensions as found in `packages/src/interfaces/custom-types.ts`.\n","packages/slate/test/properties/README.md":"# Core property tests\n\n`yarn test` includes this suite with seed `20261014` and 100 runs per property. `yarn test:fuzz` runs the same 41 properties 5,000 times each, with a longer Mocha timeout. fast-check shrinks failures and prints the seed, replay path and counterexample.\n\nTo replay a failure, select its property and pass the reported seed and path:\n\n```sh\nSLATE_FUZZ_SEED=20261014 SLATE_FUZZ_PATH='0:1' yarn test:fuzz --grep 'normalization is idempotent'\n```\n\nFor a different run count or seed:\n\n```sh\nSLATE_FUZZ_RUNS=10000 SLATE_FUZZ_SEED=42 yarn test:fuzz\n```\n\n## Domains and contracts\n\nDefault documents are bounded to four top-level blocks, a container level, inline elements and voids. The fuzz profile raises those limits to six root blocks and three container levels. Text includes ASCII, accented characters, a surrogate pair and a combining sequence. Text marks include optional booleans, IDs and nested JSON data. The normalization generator also supplies empty elements, adjacent text nodes and mixed block/inline content, including invalid top-level text.\n\nEach of the nine operation types has its own document-and-selection inverse property. Operation payloads come from the current tree: removed text and nodes match their source, merge positions and properties match the preceding node, split properties match the source, and moves cannot target their own descendants. Separate generated sequences recompute valid operations after each step.\n\nRaw operation and ref checks disable automatic normalization. An inverse cannot undo extra operations performed by a normalizer. The separate normalization property checks idempotence, no changes on a second pass, nonempty elements, compatible inline/block children, text around inline elements, and no adjacent empty or equal-mark texts.\n\nSelection inverse properties use surviving, unambiguous points. Removing text or a node destroys position information inside it; re-inserting it cannot recover an old selection. The closed removed-text interval and both representations of a text merge seam are excluded from inverse assertions. Merged node paths also lose their separate node identities, so the path inverse check excludes those two exact paths. These exclusions are computed from the original operation, never by filtering for a successful transform result. Refs still test all these cases, including null affinities and removal, and must release their registrations.\n\nCharacter positions are grapheme positions, not every UTF-16 offset. The string/position property compares against independently segmented block strings using `Intl.Segmenter`, checks strictly increasing points and their exact offsets, and checks reverse traversal by text-prefix positions. Distinct leaf endpoints can represent the same block offset when walking in opposite directions. It uses `voids: true` so hidden void text is included consistently by both string APIs.\n\nLoose text equality is checked against Lodash's deep comparison of independently extracted marks. Generators never produce explicit `undefined` property values. Slate's equality treats them as missing keys, and `merge_node` and `set_node` inverses can drop them, so the strict round-trip checks would report differences JSON cannot represent. Equal nested values are cloned to avoid checking only shared object identities.\n\n## High-level transforms and history\n\nFifteen properties apply normalized high-level transforms with valid generated points, ranges and paths: delete, insertText, insertFragment, insertNodes, splitNodes, mergeNodes, inline/block wrap and unwrap, liftNodes, moveNodes, setNodes, unsetNodes and removeNodes. Deletion varies character/word/line/block units, distance and direction. Expanded deletion uses `hanging: true`; collapsed ranges use point deletion rather than an empty-range string oracle. String checks preserve the unaffected prefix/suffix, or all text for structural transforms. Point deletion protects root blocks outside the target and its immediate neighbors to allow void and empty-inline behavior.\n\nThree history properties execute one to ten transforms under default history, `withNewBatch`, or `withoutMerging`. Empty documents are repaired with one root insertion before subsequent commands.\n\nDocuments must match the starting and ending snapshots after undoing and redoing every batch. Undo restores the first saved batch's selection. Redo starts from the final batch's `selectionBefore` and transforms it through its saved operations with forward affinity, checking equality when those points survive; standalone selection changes are not history entries. Every final selection must resolve to valid text offsets. This selection oracle tests history wiring, not an independent implementation of point transformation.\n\nSeven position properties cover word, line and block with both void modes, plus character with `voids: false`. Each direction is strictly ordered and agrees with `after` or `before` for consecutive positions. Forward and reverse word boundaries need not coincide. A sample custom normalizer converts paragraphs containing exactly \"x\" into `x-para`, then checks termination, structural invariants and an operation-free second normalization.\n\n## Regressions and deferred contracts\n\n`regressions.spec.ts` retains plain regressions for fragment replacement through voids and block-leading inlines, history restoring saved selections from null, and directional traversal through inline voids. The leading-inline cases cover both range directions and whether a preceding block exists; insertion must remain in its own block. A deep-container case also covers the trailing inline while the document temporarily ends in emptied containers.\n\nText-conserving generated merges use adjacent sibling elements with compatible child modes: both have block children, or both have text/inline children. An additional generated property constructs incompatible sibling pairs in both directions and checks that they throw without changing the document, selection, operations or registered refs. Plain regressions also cover inline children, a non-sibling target, empty sides, text-node merging and the previous-node removal policy.\n\nThe `withoutMerging` property covers [issue #6302](https://github.com/ianstormtaylor/slate/issues/6302): before the fix, a transform's normalization operations became separate undo steps, and undoing them could throw or restore an invalid selection.\n\n## Scope\n\nThe fixed seed is a reproducible regression sample, not exhaustive coverage. Documents and sequences are deliberately small; sequences contain at most ten operations. Platform input and concurrent-operation convergence remain outside this suite; Slate operation transformation is not a convergent OT. History is the only plugin exercised here.\n"},"items":[{"name":"Readme.md","path":"packages/slate-history/Readme.md","rawUrl":"https://raw.githubusercontent.com/ianstormtaylor/editor/HEAD/packages/slate-history/Readme.md","title":"slate-history Documentation","category":"plugin-manifest","format":"markdown","content":"This package contains the core logic of Slate. Feel free to poke around to learn more!\n","isInternal":false,"tokens":18,"sizeBytes":87},{"name":"Readme.md","path":"packages/slate-hyperscript/Readme.md","rawUrl":"https://raw.githubusercontent.com/ianstormtaylor/editor/HEAD/packages/slate-hyperscript/Readme.md","title":"slate-hyperscript Documentation","category":"plugin-manifest","format":"markdown","content":"This package contains a hyperscript helper for creating Slate documents with JSX!\n","isInternal":false,"tokens":14,"sizeBytes":82},{"name":"Readme.md","path":"packages/slate-react/Readme.md","rawUrl":"https://raw.githubusercontent.com/ianstormtaylor/editor/HEAD/packages/slate-react/Readme.md","title":"slate-react Documentation","category":"plugin-manifest","format":"markdown","content":"This package contains the React-specific logic for Slate. It's separated further into a series of directories:\n\n- [**Components**](./src/components) — containing the React components for rendering Slate editors.\n- [**Hooks**](./src/hooks) — containing a few React hooks for Slate editors.\n- [**Plugins**](./src/plugin) — containing the React-specific plugins for Slate editors.\n- [**Utils**](./src/utils) — containing a few private convenience modules.\n\nFeel free to poke around in each of them to learn more!\n","isInternal":false,"tokens":111,"sizeBytes":518},{"name":"Readme.md","path":"packages/slate/Readme.md","rawUrl":"https://raw.githubusercontent.com/ianstormtaylor/editor/HEAD/packages/slate/Readme.md","title":"slate Documentation","category":"plugin-manifest","format":"markdown","content":"This package contains the core logic of Slate. Feel free to poke around to learn more!\n\nNote: A number of source files contain extracted types for `Interfaces` or `Transforms`. This is done currently to enable custom type extensions as found in `packages/src/interfaces/custom-types.ts`.\n","isInternal":false,"tokens":57,"sizeBytes":288},{"name":"README.md","path":"packages/slate/test/properties/README.md","rawUrl":"https://raw.githubusercontent.com/ianstormtaylor/editor/HEAD/packages/slate/test/properties/README.md","title":"properties Documentation","category":"plugin-manifest","format":"markdown","content":"# Core property tests\n\n`yarn test` includes this suite with seed `20261014` and 100 runs per property. `yarn test:fuzz` runs the same 41 properties 5,000 times each, with a longer Mocha timeout. fast-check shrinks failures and prints the seed, replay path and counterexample.\n\nTo replay a failure, select its property and pass the reported seed and path:\n\n```sh\nSLATE_FUZZ_SEED=20261014 SLATE_FUZZ_PATH='0:1' yarn test:fuzz --grep 'normalization is idempotent'\n```\n\nFor a different run count or seed:\n\n```sh\nSLATE_FUZZ_RUNS=10000 SLATE_FUZZ_SEED=42 yarn test:fuzz\n```\n\n## Domains and contracts\n\nDefault documents are bounded to four top-level blocks, a container level, inline elements and voids. The fuzz profile raises those limits to six root blocks and three container levels. Text includes ASCII, accented characters, a surrogate pair and a combining sequence. Text marks include optional booleans, IDs and nested JSON data. The normalization generator also supplies empty elements, adjacent text nodes and mixed block/inline content, including invalid top-level text.\n\nEach of the nine operation types has its own document-and-selection inverse property. Operation payloads come from the current tree: removed text and nodes match their source, merge positions and properties match the preceding node, split properties match the source, and moves cannot target their own descendants. Separate generated sequences recompute valid operations after each step.\n\nRaw operation and ref checks disable automatic normalization. An inverse cannot undo extra operations performed by a normalizer. The separate normalization property checks idempotence, no changes on a second pass, nonempty elements, compatible inline/block children, text around inline elements, and no adjacent empty or equal-mark texts.\n\nSelection inverse properties use surviving, unambiguous points. Removing text or a node destroys position information inside it; re-inserting it cannot recover an old selection. The closed removed-text interval and both representations of a text merge seam are excluded from inverse assertions. Merged node paths also lose their separate node identities, so the path inverse check excludes those two exact paths. These exclusions are computed from the original operation, never by filtering for a successful transform result. Refs still test all these cases, including null affinities and removal, and must release their registrations.\n\nCharacter positions are grapheme positions, not every UTF-16 offset. The string/position property compares against independently segmented block strings using `Intl.Segmenter`, checks strictly increasing points and their exact offsets, and checks reverse traversal by text-prefix positions. Distinct leaf endpoints can represent the same block offset when walking in opposite directions. It uses `voids: true` so hidden void text is included consistently by both string APIs.\n\nLoose text equality is checked against Lodash's deep comparison of independently extracted marks. Generators never produce explicit `undefined` property values. Slate's equality treats them as missing keys, and `merge_node` and `set_node` inverses can drop them, so the strict round-trip checks would report differences JSON cannot represent. Equal nested values are cloned to avoid checking only shared object identities.\n\n## High-level transforms and history\n\nFifteen properties apply normalized high-level transforms with valid generated points, ranges and paths: delete, insertText, insertFragment, insertNodes, splitNodes, mergeNodes, inline/block wrap and unwrap, liftNodes, moveNodes, setNodes, unsetNodes and removeNodes. Deletion varies character/word/line/block units, distance and direction. Expanded deletion uses `hanging: true`; collapsed ranges use point deletion rather than an empty-range string oracle. String checks preserve the unaffected prefix/suffix, or all text for structural transforms. Point deletion protects root blocks outside the target and its immediate neighbors to allow void and empty-inline behavior.\n\nThree history properties execute one to ten transforms under default history, `withNewBatch`, or `withoutMerging`. Empty documents are repaired with one root insertion before subsequent commands.\n\nDocuments must match the starting and ending snapshots after undoing and redoing every batch. Undo restores the first saved batch's selection. Redo starts from the final batch's `selectionBefore` and transforms it through its saved operations with forward affinity, checking equality when those points survive; standalone selection changes are not history entries. Every final selection must resolve to valid text offsets. This selection oracle tests history wiring, not an independent implementation of point transformation.\n\nSeven position properties cover word, line and block with both void modes, plus character with `voids: false`. Each direction is strictly ordered and agrees with `after` or `before` for consecutive positions. Forward and reverse word boundaries need not coincide. A sample custom normalizer converts paragraphs containing exactly \"x\" into `x-para`, then checks termination, structural invariants and an operation-free second normalization.\n\n## Regressions and deferred contracts\n\n`regressions.spec.ts` retains plain regressions for fragment replacement through voids and block-leading inlines, history restoring saved selections from null, and directional traversal through inline voids. The leading-inline cases cover both range directions and whether a preceding block exists; insertion must remain in its own block. A deep-container case also covers the trailing inline while the document temporarily ends in emptied containers.\n\nText-conserving generated merges use adjacent sibling elements with compatible child modes: both have block children, or both have text/inline children. An additional generated property constructs incompatible sibling pairs in both directions and checks that they throw without changing the document, selection, operations or registered refs. Plain regressions also cover inline children, a non-sibling target, empty sides, text-node merging and the previous-node removal policy.\n\nThe `withoutMerging` property covers [issue #6302](https://github.com/ianstormtaylor/slate/issues/6302): before the fix, a transform's normalization operations became separate undo steps, and undoing them could throw or restore an invalid selection.\n\n## Scope\n\nThe fixed seed is a reproducible regression sample, not exhaustive coverage. Documents and sequences are deliberately small; sequences contain at most ten operations. Platform input and concurrent-operation convergence remain outside this suite; Slate operation transformation is not a convergent OT. History is the only plugin exercised here.\n","isInternal":false,"tokens":1290,"sizeBytes":6799}],"systemPromptSnippet":"<yakaai_skills repo=\"ianstormtaylor/editor\">\n<!-- File: packages/slate-history/Readme.md (Tokens: ~18 | Category: plugin-manifest) -->\nThis package contains the core logic of Slate. Feel free to poke around to learn more!\n\n<!-- File: packages/slate-hyperscript/Readme.md (Tokens: ~14 | Category: plugin-manifest) -->\nThis package contains a hyperscript helper for creating Slate documents with JSX!\n\n<!-- File: packages/slate-react/Readme.md (Tokens: ~111 | Category: plugin-manifest) -->\nThis package contains the React-specific logic for Slate. It's separated further into a series of directories:\n\n- [**Components**](./src/components) — containing the React components for rendering Slate editors.\n- [**Hooks**](./src/hooks) — containing a few React hooks for Slate editors.\n- [**Plugins**](./src/plugin) — containing the React-specific plugins for Slate editors.\n- [**Utils**](./src/utils) — containing a few private convenience modules.\n\nFeel free to poke around in each of them to learn more!\n\n<!-- File: packages/slate/Readme.md (Tokens: ~57 | Category: plugin-manifest) -->\nThis package contains the core logic of Slate. Feel free to poke around to learn more!\n\nNote: A number of source files contain extracted types for `Interfaces` or `Transforms`. This is done currently to enable custom type extensions as found in `packages/src/interfaces/custom-types.ts`.\n\n<!-- File: packages/slate/test/properties/README.md (Tokens: ~1290 | Category: plugin-manifest) -->\n# Core property tests\n\n`yarn test` includes this suite with seed `20261014` and 100 runs per property. `yarn test:fuzz` runs the same 41 properties 5,000 times each, with a longer Mocha timeout. fast-check shrinks failures and prints the seed, replay path and counterexample.\n\nTo replay a failure, select its property and pass the reported seed and path:\n\n```sh\nSLATE_FUZZ_SEED=20261014 SLATE_FUZZ_PATH='0:1' yarn test:fuzz --grep 'normalization is idempotent'\n```\n\nFor a different run count or seed:\n\n```sh\nSLATE_FUZZ_RUNS=10000 SLATE_FUZZ_SEED=42 yarn test:fuzz\n```\n\n## Domains and contracts\n\nDefault documents are bounded to four top-level blocks, a container level, inline elements and voids. The fuzz profile raises those limits to six root blocks and three container levels. Text includes ASCII, accented characters, a surrogate pair and a combining sequence. Text marks include optional booleans, IDs and nested JSON data. The normalization generator also supplies empty elements, adjacent text nodes and mixed block/inline content, including invalid top-level text.\n\nEach of the nine operation types has its own document-and-selection inverse property. Operation payloads come from the current tree: removed text and nodes match their source, merge positions and properties match the preceding node, split properties match the source, and moves cannot target their own descendants. Separate generated sequences recompute valid operations after each step.\n\nRaw operation and ref checks disable automatic normalization. An inverse cannot undo extra operations performed by a normalizer. The separate normalization property checks idempotence, no changes on a second pass, nonempty elements, compatible inline/block children, text around inline elements, and no adjacent empty or equal-mark texts.\n\nSelection inverse properties use surviving, unambiguous points. Removing text or a node destroys position information inside it; re-inserting it cannot recover an old selection. The closed removed-text interval and both representations of a text merge seam are excluded from inverse assertions. Merged node paths also lose their separate node identities, so the path inverse check excludes those two exact paths. These exclusions are computed from the original operation, never by filtering for a successful transform result. Refs still test all these cases, including null affinities and removal, and must release their registrations.\n\nCharacter positions are grapheme positions, not every UTF-16 offset. The string/position property compares against independently segmented block strings using `Intl.Segmenter`, checks strictly increasing points and their exact offsets, and checks reverse traversal by text-prefix positions. Distinct leaf endpoints can represent the same block offset when walking in opposite directions. It uses `voids: true` so hidden void text is included consistently by both string APIs.\n\nLoose text equality is checked against Lodash's deep comparison of independently extracted marks. Generators never produce explicit `undefined` property values. Slate's equality treats them as missing keys, and `merge_node` and `set_node` inverses can drop them, so the strict round-trip checks would report differences JSON cannot represent. Equal nested values are cloned to avoid checking only shared object identities.\n\n## High-level transforms and history\n\nFifteen properties apply normalized high-level transforms with valid generated points, ranges and paths: delete, insertText, insertFragment, insertNodes, splitNodes, mergeNodes, inline/block wrap and unwrap, liftNodes, moveNodes, setNodes, unsetNodes and removeNodes. Deletion varies character/word/line/block units, distance and direction. Expanded deletion uses `hanging: true`; collapsed ranges use point deletion rather than an empty-range string oracle. String checks preserve the unaffected prefix/suffix, or all text for structural transforms. Point deletion protects root blocks outside the target and its immediate neighbors to allow void and empty-inline behavior.\n\nThree history properties execute one to ten transforms under default history, `withNewBatch`, or `withoutMerging`. Empty documents are repaired with one root insertion before subsequent commands.\n\nDocuments must match the starting and ending snapshots after undoing and redoing every batch. Undo restores the first saved batch's selection. Redo starts from the final batch's `selectionBefore` and transforms it through its saved operations with forward affinity, checking equality when those points survive; standalone selection changes are not history entries. Every final selection must resolve to valid text offsets. This selection oracle tests history wiring, not an independent implementation of point transformation.\n\nSeven position properties cover word, line and block with both void modes, plus character with `voids: false`. Each direction is strictly ordered and agrees with `after` or `before` for consecutive positions. Forward and reverse word boundaries need not coincide. A sample custom normalizer converts paragraphs containing exactly \"x\" into `x-para`, then checks termination, structural invariants and an operation-free second normalization.\n\n## Regressions and deferred contracts\n\n`regressions.spec.ts` retains plain regressions for fragment replacement through voids and block-leading inlines, history restoring saved selections from null, and directional traversal through inline voids. The leading-inline cases cover both range directions and whether a preceding block exists; insertion must remain in its own block. A deep-container case also covers the trailing inline while the document temporarily ends in emptied containers.\n\nText-conserving generated merges use adjacent sibling elements with compatible child modes: both have block children, or both have text/inline children. An additional generated property constructs incompatible sibling pairs in both directions and checks that they throw without changing the document, selection, operations or registered refs. Plain regressions also cover inline children, a non-sibling target, empty sides, text-node merging and the previous-node removal policy.\n\nThe `withoutMerging` property covers [issue #6302](https://github.com/ianstormtaylor/slate/issues/6302): before the fix, a transform's normalization operations became separate undo steps, and undoing them could throw or restore an invalid selection.\n\n## Scope\n\nThe fixed seed is a reproducible regression sample, not exhaustive coverage. Documents and sequences are deliberately small; sequences contain at most ten operations. Platform input and concurrent-operation convergence remain outside this suite; Slate operation transformation is not a convergent OT. History is the only plugin exercised here.\n</yakaai_skills>"}