Skip to main content

Module engine_config

Module engine_config 

Source
Expand description

TOML-based embedding engine configuration for khive.

Loads .khive/config.toml (or --config / KHIVE_CONFIG) and exposes an [[engines]] array for arbitrary-N embedding engine registration. Falls back to KHIVE_EMBEDDING_MODEL env vars when no config file is present.

Structs§

ActorConfig
Actor configuration — the default namespace / identity for this khive instance.
BackendConfig
Configuration for a named storage backend.
EngineConfig
Configuration for a single embedding engine.
GitWriteEntryConfig
One [[git_write.allowed]] entry: a repo this operator has declared trusted for khive-mediated git writes, plus the branches on it a write verb (git.commit/git.branch/git.push) may target.
GitWriteSectionConfig
[git_write] section — the closed repo/branch allowlist consulted by khive-pack-git’s write verbs at the handler level (ADR-108 Amendment), independent of Gate policy. Absent or empty allowed is the fail-closed default: the write verbs report themselves unavailable rather than defaulting open.
KhiveConfig
Top-level khive configuration loaded from khive.toml or config.toml.
PackConfig
Per-pack backend assignment.
RuntimeSectionConfig
[runtime] section in khive.toml.
StorageSectionConfig
[storage] section in khive.toml. Holds storage-layer config not already covered by [[backends]] (ADR-028).

Enums§

BackendKind
Storage backend kind.
BlobConfig
[storage.blob] section: a closed backend = "fs" | "s3" selector.
ConfigError
Errors produced while loading or validating a KhiveConfig.

Functions§

config_from_env
Build an in-memory KhiveConfig from the legacy env-var path.