Expand description
File-backed entry trees (YAML / JSON) with two-way synchronisation.
File edits are reconciled into the tree; runtime changes of the tree (API edits, plugin self-updates and self-disposals) are recorded in a journal and written back to whoever owns them: the file, or a patch in the include’s own configuration. On a conflict the file wins.
Modules§
- journal
- Tree-side changes that have not reached the file yet (
journal.ts). - patch
- Patches in the include’s own configuration (
patch.ts):{ insert: [...] }/{ id, insert: [...] }appends entries (to the root or a group);{ id, name?, ...keys }overrides keys of an entry. - yaml
- YAML (core schema) to JSON values, with node positions, and back.
Structs§
- Config
File Error - A config file that could not be read, parsed or validated.
- Config
Issue - Flat
- Where an entry is, and the group (
None: the list itself) it is in. - Include
- A running include.
- Include
Config - Include
Plugin - Grafts the entries of a YAML / JSON file into the loader as a subtree, and writes runtime changes of those entries back to the file.
Enums§
Functions§
- flatten
- Indexes every entry (nested group members included) by id.