Skip to main content

Module content

Module content 

Source

Structs§

AddonContent
Distribution view of an addon (unified distribution, GH #726): the authoring lean-ctx-addon.toml embedded verbatim. The TOML is the single source of truth — MCP wiring, capabilities, [install] bootstrap and the per-platform [artifacts] tables (GH #725) all live inside it, so nothing is duplicated at the pack layer that could drift.
DocumentBlob
One named blob: path + SHA-256 of the plaintext + compressed body. The hash pins the decoded bytes, so tampering with the stored body (or a decompression bug) is detected before anything lands on disk.
DocumentsContent
kind=skills payload (GH #727): a set of named, verified content blobs (markdown/scripts). No execution semantics in lean-ctx — skills are verified content; interpretation belongs to the consumer (an addon like lean-md, or the agent itself).
GotchaExport
GotchasLayer
GraphEdgeExport
GraphLayer
GraphNodeExport
KnowledgeLayer
PackageContent
PatternsLayer
SessionDecision
SessionFinding
SessionLayer

Constants§

DOCUMENT_ENCODING_ZSTD_B64
Body encoding marker for DocumentBlob::body. The only supported value; a field (not an enum) so future encodings fail with “unsupported encoding” on old readers instead of a serde parse error.
MAX_DOCUMENTS_TOTAL_BYTES
MAX_DOCUMENT_FILES
Per-file caps (plaintext bytes) — a skills pack is documentation and scripts, not a media archive.
MAX_DOCUMENT_FILE_BYTES