Skip to main content

systemprompt_cloud/paths/
mod.rs

1//! Filesystem path resolution for the cloud layer.
2//!
3//! Covers project discovery ([`DiscoveredProject`]), the typed project/profile
4//! path enums ([`ProjectPath`], [`ProfilePath`], [`ProjectContext`]), the
5//! container-side [`CloudPaths`], and the [`UnifiedContext`] that ties them
6//! together for credential, tenant, and session lookups.
7
8mod cloud;
9mod context;
10mod discovery;
11mod project;
12
13use std::path::{Path, PathBuf};
14
15pub use cloud::{CloudPath, CloudPaths, get_cloud_paths};
16pub use context::UnifiedContext;
17pub use discovery::DiscoveredProject;
18pub use project::{ProfilePath, ProjectContext, ProjectPath};
19pub use systemprompt_models::profile::{expand_home, resolve_with_home};
20
21#[must_use]
22pub fn resolve_path(base_dir: &Path, path_str: &str) -> PathBuf {
23    resolve_with_home(base_dir, path_str)
24}