Skip to main content

Module utils

Module utils 

Source

Structs§

CheckResult
Check result with actionable error message
FileSystemWatcher
A file system watcher that monitors changes in a directory
RetryConfig
Retry configuration
Tokenizer
Token counting utility using character-based estimation Uses ~4 characters per token as a reasonable approximation

Enums§

FileEvent
Events that we care about for the file system

Traits§

MutexExt
Extension trait for Mutex to provide safe lock operations

Functions§

check_git_repo
Check if the given path is inside a git repository
check_ollama_available
Check if Ollama is running and responding
check_ollama_model
Check if a specific model is available in Ollama
count_file_tokens
Count tokens in file contents (~4 chars per token)
format_relative_timestamp
Format a timestamp as a relative, human-readable string
init_logger
Initialize the logging system with tracing
lock_arc_mutex_safe
Safe lock for Arc<Mutex> - standalone function since we can’t impl on Arc
log_debug
Log a debug message (backward compatible)
log_error
Log an error message with category prefix (backward compatible)
log_info
Log an info message with category prefix (backward compatible)
log_progress
Progress indicator for startup sequence
log_warn
Log a warning message with category prefix (backward compatible)
retry_async
Retry an async operation with exponential backoff