Defines immutable primitive bundles of default link verbs, frontmatter fields, routing flags, and enrichment slots for schema packs, providing compile‑time inheritance defaults.
// Source: https://github.com/garrytan/gbrain | License: MIT | Copyright 2026 Garry Tan // Provided via justclaw.it.com; keep this notice with the code. // v0.38 Schema Pack primitives — the five composable defaults. // // A primitive is a named bundle of (default link verbs, default frontmatter // fields, expert-routing flag, enrichment rubric slot). Pack types extend // one primitive by name; the primitive's defaults flow through unless the // type overrides specific fields. Closed enum — packs CANNOT add new // primitives, only types that extend them. This keeps compile-time // exhaustiveness available on the primitive enum even though PageType // is now open string. // // Primitives drive INHERITANCE DEFAULTS only — NOT query closure. The E8 // refinement of D12 separates these two axe ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key