Release v2.12.0: Implement single-layer compression enforcement, 256KB plan archive cap with git.libre.audio citations, cold-archived inactive plans, codebase modularity/security/economization (Strategies 1A/2B/3A/4A/5A/6A/7A), and /quant/ spoken voice narration & #lensSelect UI element indicators (Strategies 1B/2A/3A/4A)
This commit is contained in:
1 parent
cc73a57bd8
commit
a066a0d03d
69 files changed
+2334
-619
No files matched your search
@@ -11,20 +11,15 @@ import shutil
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
from hyperstitionstud_io.config import load_workspace_config
|
||||
from hyperstitionstud_io.config import load_json_cached, load_workspace_config
|
||||
|
||||
_FALLBACK_PATH = Path(__file__).resolve().parent / "cmudict_fallback.json"
|
||||
_FALLBACK_CACHE: dict[str, str] | None = None
|
||||
|
||||
|
||||
def _load_fallback() -> dict[str, str]:
|
||||
global _FALLBACK_CACHE
|
||||
if _FALLBACK_CACHE is None:
|
||||
if _FALLBACK_PATH.is_file():
|
||||
_FALLBACK_CACHE = json.loads(_FALLBACK_PATH.read_text(encoding="utf-8"))
|
||||
else:
|
||||
_FALLBACK_CACHE = {}
|
||||
return _FALLBACK_CACHE
|
||||
if _FALLBACK_PATH.is_file():
|
||||
return load_json_cached(_FALLBACK_PATH, copy_result=False)
|
||||
return {}
|
||||
|
||||
|
||||
def translate_batch(terms: list[str], workdir: str | Path | None = None) -> dict[str, str]:
|
||||
|
||||
Reference in new issue
Block a user