Skip to main content

Module ctx_knowledge

Module ctx_knowledge 

Source

Functions§

handle
Dispatches knowledge base actions (remember, recall, pattern, timeline, etc.).
handle_export_okf
Exports the project’s current knowledge as an Open Knowledge Format (OKF) bundle — a directory of Markdown files, portable and vendor-neutral. Renders from the shared crate::core::knowledge::KnowledgeSnapshot, so it never disagrees with a ctxpkg export on what the knowledge is. out is the target directory (defaults to the data dir’s exports/okf/<hash>).
handle_import
Imports knowledge from path. A directory is treated as an OKF bundle; a file falls back to the native JSON / simple-array / JSONL import.