feat: harden runtime readiness and session workflow

This commit is contained in:
User
2026-07-14 10:27:25 +02:00
parent 6d7738d538
commit 6dbf93fff9
52 changed files with 1464 additions and 169 deletions
+6 -1
View File
@@ -327,6 +327,11 @@ class Config(BaseModel):
return translated
def workspace_id_from_path(path: Path) -> str:
"""Return the stable workspace identity, resolving deployment aliases first."""
return path.resolve().stem.lower().replace(".", "-").replace("_", "-")
def load_config(path: Path) -> Config:
if not path.exists():
raise ConfigError(f"File di configurazione non trovato: {path}")
@@ -378,7 +383,7 @@ def load_config(path: Path) -> Config:
FutureWarning,
stacklevel=2,
)
cfg._workspace_id = path.stem.lower().replace(".", "-").replace("_", "-")
cfg._workspace_id = workspace_id_from_path(path)
cfg._config_source = path.resolve().as_posix()
return cfg