Expand description
RuntimeConfig, BackendId, NamespaceToken, and embedding model helpers.
Structs§
- Backend
Id - Identifies a named backend in a multi-backend deployment.
- Namespace
Token - Authorization proof that a caller is permitted to access a specific namespace.
- Runtime
Config - Runtime configuration.
Functions§
- assert_
db_ anchor_ consistent - Assert that a resolved
db_path: whichcompute_config_idfolds into a process’sconfig_id: agrees with whatresolve_db_anchorderives from the same--db/KHIVE_DBinput. Call this right afterdb_pathis resolved at each construction boundary. - parse_
pack_ list - Parse a comma- or whitespace-separated pack list from a single string.
- resolve_
db_ anchor - Resolve the
--db/KHIVE_DBvalue into the anchor path used for tier-3 project-local.khive/config.tomldiscovery, mirroring the precedencekkernel mcpandkkernel execuse to open the database itself::memory:has no file to anchor on (None); an explicit path anchors on that path; an unset value falls back to$HOME/.khive/khive.db, or./.khive/khive.dbwhenHOMEis unset. - resolve_
project_ actor_ id - Resolve the per-connection attribution actor from the project/cwd-anchored
config tier, independently of the database-anchored config load that
governs
config_id. - runtime_
config_ from_ khive_ config - Build a
RuntimeConfigfrom a parsedKhiveConfig.