Skip to main content

Module config

Module config 

Source

Structs§

HematiteConfig
PermissionRules
VerifyProfile
VerifyProfilesConfig
WorkspaceTrustConfig

Enums§

PermissionDecision
PermissionMode

Constants§

DEFAULT_LM_STUDIO_API_URL
DEFAULT_OLLAMA_API_URL

Functions§

api_url_is_local
Returns true if the URL host resolves to a loopback address (localhost, 127.x, ::1). Used to gate warnings when a workspace config redirects inference to a remote host.
default_api_url_for_provider
effective_api_url
effective_gemma_native_formatting
effective_voice
effective_voice_speed
effective_voice_volume
gemma_native_mode_label
glob_matches
Simple glob matcher: * is a wildcard, matching is case-insensitive. cargo * matches cargo build, cargo check --all-targets, etc.
invalidate_config_cache
Invalidate the in-process config cache. Called by save_config() so that the next load_config() sees the freshly written file immediately.
load_config
Load .hematite/settings.json from the workspace root, with global ~/.hematite/settings.json as a fallback for unset fields. Workspace config always wins; global fills in what workspace doesn’t set. Results are cached for 500 ms so multiple per-turn call sites share one read.
permission_for_shell
Returns the permission decision for a shell command given the loaded config.
preferred_coding_model
provider_label_for_api_url
save_config
set_api_url_override
set_gemma_native_formatting
set_gemma_native_mode
set_preferred_coding_model
set_preferred_embed_model
set_voice
settings_path