Expand description
Global initialization module for Codanna
Manages:
- Global models directory for FastEmbed
- Project registry
- Symlink creation for model cache
Structs§
- Project
Id - Type-safe project identifier
- Project
Info - Information about a registered project
- Project
Registry - Registry schema for all indexed projects
Functions§
- create_
fastembed_ symlink - Create symlink from local FastEmbed cache to global models Note: With fastembed 5.0+, we use with_cache_dir() API instead of relying on symlinks This function is kept for backward compatibility and cleanup of old setups
- fastembed_
cache_ name - Get the FastEmbed cache directory name Returns the name used for the cache symlink NOTE: FastEmbed library is hardcoded to use “.fastembed_cache” so we must use this exact name for the symlink to work
- global_
dir - Get the global Codanna directory Returns ~/.codanna-dev (or test variant) on Unix-like systems
- init_
global_ dirs - Initialize global directory structure
- init_
profile_ infrastructure - Initialize profile system infrastructure Creates ~/.codanna/providers.json if it doesn’t exist
- local_
dir_ name - Get the local project directory name Returns the name used for local project config
- models_
dir - Get the models cache directory Returns ~/.codanna-dev/models/
- projects_
file - Get the projects registry file Returns ~/.codanna-dev/projects.json
- resolve_
index_ path - Resolve the index path from settings, accounting for –config flag usage