@vxnus/e-knowledge
v0.1.4
Published
Portable filesystem knowledge packs for E
Readme
@vxnus/e-knowledge
Filesystem knowledge packs for E. A pack is portable, self-contained, and
validated before it is exposed as a KnowledgeProvider.
Layout
pack/
├── manifest.json
├── revisions/<revision-id>.json
├── sources/<source-id>.json
├── documents/<document-id>.json
├── chunks/<chunk-id>.json
├── entities/<entity-id>.json
└── relations/<relation-id>.jsonloadPack(directory) validates every record, checks references, verifies the
declared revision hash, and returns a local lexical provider.
Validate a pack
Publishers can validate a pack before uploading or distributing it:
npx @vxnus/e-knowledge ./packThe command exits non-zero for malformed records, broken references, missing revisions, or a content-hash mismatch. It prints only public pack metadata and record counts.
The sample pack under fixtures/sample/ is the reference directory layout.
Its revision hash covers sorted source, document, chunk, entity, and relation
records using SHA-256. The manifest must advertise revisions: true when a
hash is required.
