phase 2 checkpoint

This commit is contained in:
2026-03-10 10:42:24 -04:00
parent 8116f4ea94
commit 41a40aaa68
8 changed files with 349 additions and 6 deletions

View File

@@ -64,6 +64,13 @@ def get_global_tool_presets_path() -> Path:
def get_project_tool_presets_path(project_root: Path) -> Path:
return project_root / "project_tool_presets.toml"
def get_global_personas_path() -> Path:
root_dir = Path(__file__).resolve().parent.parent
return Path(os.environ.get("SLOP_GLOBAL_PERSONAS", root_dir / "personas.toml"))
def get_project_personas_path(project_root: Path) -> Path:
return project_root / "project_personas.toml"
def _resolve_path(env_var: str, config_key: str, default: str) -> Path:
if env_var in os.environ:
return Path(os.environ[env_var])