--- 'plitejs': patch --- Store `collab: 'shared'` state fields solely in `records['shared-state']`, isolate non-JSON live state values, add `'configuration'` to `EditorCommitChangeKind`, tighten `StateFieldDescriptor`, and remove `invertEffect`, `mapEffect`, `encodeEditorEffect`, `decodeEditorEffect`, `state.meta()`, and shared `field.effect` - Store `collab: 'shared'` state fields only in `records['shared-state']` (migrating legacy `meta` entries on load) so `tx.value.replace`, late install, and multi-peer sync converge on one store - Isolate non-JSON live field values (`Date`, `Map`, `Set`, `Uint8Array`, and `SharedArrayBuffer`-backed views) across editor creation, persisted reload, reads, and `useStateFieldValue` - Add `'configuration'` to `EditorCommitChangeKind` and remove the `'$configuration'` sentinel from `commit.dirtyStateKeys` - Split `StateFieldDescriptor` into `LocalStateFieldDescriptor | SharedStateFieldDescriptor`, model omitted `initial` as `TValue | undefined`, and represent absent transition sides safely - Remove `invertEffect`, `mapEffect`, `encodeEditorEffect`, `decodeEditorEffect`, and `state.meta()` (`editor.read.meta()`, `tx.meta()`), and retire `field.effect` on `collab: 'shared'` fields (which now sync and undo exclusively through `set_register` steps) **Migration:** - Replace `commit.dirtyStateKeys.includes('$configuration')` with `commit.changed.hasAny('configuration')`, and add `'configuration'` to `dependsOn` or `commit.changed.hasAny(...)` checks that relied on `'state'` waking on plugin reconfiguration. - Replace `editor.read.meta()` with `editor.read.value().meta` or `editor.read.getField(field)`. - Add `persist` and remove `reduce` on `collab: 'shared'` fields, update shared fields via `tx.setField(field, value)` instead of `tx.effects.emit(field.effect, ...)`, handle `undefined` (or supply `initial`) on fields declared without `initial`, and type runtime field parameters as `EditorStateField` rather than `StateFieldDescriptor`. - Serialize collaborative changes with `commit.changes.toJSON()` (`set_register` carries shared state fields) and history with `History.toJSON` / `History.fromJSON` instead of calling `encodeEditorEffect` or `decodeEditorEffect`.