feat(workspace): implement WorkspaceManager and path resolution

This commit is contained in:
2026-05-05 20:50:55 -04:00
parent 98400358af
commit 5b3173a1ae
2 changed files with 79 additions and 0 deletions
+7
View File
@@ -72,6 +72,13 @@ def get_global_personas_path() -> Path:
def get_project_personas_path(project_root: Path) -> Path:
return project_root / "project_personas.toml"
def get_global_workspace_profiles_path() -> Path:
root_dir = Path(__file__).resolve().parent.parent
return Path(os.environ.get("SLOP_GLOBAL_WORKSPACE_PROFILES", root_dir / "workspace_profiles.toml"))
def get_project_workspace_profiles_path(project_root: Path) -> Path:
return project_root / ".ai" / "workspace_profiles.toml"
def _resolve_path(env_var: str, config_key: str, default: str) -> Path:
root_dir = Path(__file__).resolve().parent.parent
p = None