The types in src/shared/okf/types.ts are the contract between the OKF core, the main
process, and the renderer.
| Type |
Key fields |
Bundle |
id, label, source, okfVersion?, shared?, concepts[], indexes[], logs[], types[], diagnostics[] |
Concept |
id, filePath, type, frontmatter, title?, description?, resource?, tags[], timestamp?, body, outgoing[] |
Link |
href, text, targetId?, external?, broken |
Diagnostic |
severity, code, file, message |
A Concept.id is its path minus .md. A Link is resolved to either an in-bundle
targetId, an external URL, or flagged broken — the basis for graph edges and document
backlinks.