Files
Lumotia/crates/storage/src/file_storage.rs
Jake afbd33d33e agent: code-atomiser-fix — test_llm_model respects caller GPU preference (Race-8)
Add an Option<bool> use_gpu parameter to test_llm_model with the same
default-true semantics as load_llm_model. Hard-coding true triggered an
engine tear-down/rebuild when a parallel load_llm_model(use_gpu=false)
was in flight (LlmEngine::load_model triples on id+path+use_gpu) and
silently flipped the user's GPU mode underneath the test.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 15:12:24 +01:00

37 lines
1.2 KiB
Rust

use std::path::PathBuf;
pub fn app_data_dir() -> PathBuf {
lumotia_core::paths::app_paths().app_data_dir()
}
/// Path to the SQLite database file.
pub fn database_path() -> PathBuf {
lumotia_core::paths::app_paths().database_path()
}
/// Directory for saved audio recordings.
pub fn recordings_dir() -> PathBuf {
lumotia_core::paths::app_paths().recordings_dir()
}
/// Directory for crash dumps written by the Rust panic hook.
/// Each crash is a single text file: `<unix-ts>-<short-id>.crash`.
/// Used by the diagnostic-report bundler in Settings → About.
pub fn crashes_dir() -> PathBuf {
lumotia_core::paths::app_paths().crashes_dir()
}
/// Directory for the rolling Rust log file.
///
/// The base filename is `lumotia.log`; daily rotation produces dated
/// siblings (e.g. `lumotia.log.2026-05-12`). The appender keeps the
/// 7 most-recent days and prunes older files on rotation.
///
/// Subscriber and rotation policy are configured by `init_tracing` in
/// `src-tauri/src/lib.rs` at startup; the diagnostic-report bundler in
/// `src-tauri/src/commands/diagnostics.rs` attaches the live file from
/// this directory to user-submitted crash reports.
pub fn logs_dir() -> PathBuf {
lumotia_core::paths::app_paths().logs_dir()
}