@nuucognition/mesh-core
v1.0.1-beta.1
Published
Isomorphic core for the Mesh SDK: document parsing, derived indexes, link/embed resolution, checks, operation builders, and wire snapshots.
Keywords
Readme
@nuucognition/mesh-core
Isomorphic core for the Mesh SDK: document parsing, derived indexes, link/embed resolution, checks, operation builders, and wire snapshots.
Surface
| Area | APIs |
| ---------- | --------------------------------------------------------------------------------------------------------------------------- |
| Documents | parseMeshDocument, normalizeDocument, serializeMeshDocument |
| Mesh | buildMesh, createMesh, createHydrationContext |
| Indexes | computeBacklinks, computeTagIndex, computeBlobNameIndex, delta helpers |
| Operations | buildCreateDocumentOperations, buildUpdateDocumentOperations, buildRenameDocumentOperationsByTitle, applyOperations |
| Checks | checkMesh, detectCaseCollisions |
| Wire | snapshotToWireFormat, wireFormatToSnapshot |
Wire Format
snapshotToWireFormat() emits v0.4 JSON and wireFormatToSnapshot() accepts v0.4 only — any other version is rejected with MeshWireFormatVersionError. Indexes are derived and never serialized.
Layout
src/document/ Markdown/frontmatter parsing and serialization
src/mesh/ Mesh construction, resolution, indexes, checks
src/operations/ JSON-serializable mutation builders
src/wire/ Snapshot import/export
src/utils/ Wikiref extraction, hashes, UUIDs, pathsRelated
@nuucognition/mesh-adapter-fspersists core operations on disk.@nuucognition/mesh-cliexposes the filesystem-backed command surface.
