Skip to main content

Crate codewhale_config

Crate codewhale_config 

Source

Structs§

CliRuntimeOverrides
ConfigStore
ConfigToml
HookSinksToml
On-disk schema for the [hook_sinks] table.
LspConfigToml
On-disk schema for the [lsp] table (#136). See config.example.toml for documentation. All fields are optional so the TUI runtime can fall back to its own defaults when keys are absent.
NetworkPolicyToml
On-disk schema for the [network] table (#135). See config.example.toml for documentation.
ProviderConfigToml
ProvidersToml
ResolvedRuntimeOptions
Secrets
High-level facade combining a KeyringStore with environment variable fallbacks.
SkillsToml
On-disk schema for the [skills] table (#140). See config.example.toml for documentation.
SnapshotsToml
On-disk schema for the [snapshots] table (#137). See config.example.toml for documentation.
ToolsToml
On-disk schema for the [tools] table (#2076).

Enums§

ProviderKind
RuntimeApiKeySource

Constants§

CODEWHALE_APP_DIR
Canonical CodeWhale app directory name under $HOME.
CONFIG_FILE_NAME
LEGACY_APP_DIR
Legacy DeepSeek-branded app directory name (compatibility fallback).

Functions§

codewhale_home
Resolve the primary CodeWhale home directory.
default_config_path
default_secrets
Process-wide default Secrets façade. The first caller wins; the lock is exposed so test or CLI code can install an explicit backend (e.g. an codewhale_secrets::InMemoryKeyringStore) before any resolver runs.
ensure_project_state_dir
Ensure a project-local state subdirectory exists under .codewhale/, creating it if necessary. Returns the directory path.
ensure_state_dir
Ensure a state subdirectory exists under the primary CodeWhale root, creating it if necessary. This is the write-path resolver.
is_sensitive_config_key
legacy_deepseek_home
Resolve the legacy DeepSeek home directory ($HOME/.deepseek).
load_project_config
Load a project-level config from the workspace.
migrate_config_if_needed
v0.8.44: one-time migration from ~/.deepseek/config.toml to ~/.codewhale/config.toml. Called on first launch after the config is loaded; copies the legacy file if the primary doesn’t exist yet. Never overwrites an existing primary config.
project_approval_policy_is_allowed
project_sandbox_mode_is_allowed
resolve_config_path
resolve_project_state_dir
Resolve a project-local state subdirectory, preferring .codewhale/ when it exists, falling back to .deepseek/ for legacy projects.
resolve_state_dir
Resolve a state subdirectory, preferring the CodeWhale root if it already exists, otherwise falling back to the legacy root.