feat(core): implement Plan #62 efficiency, deduplication, caching & hook optimizations

This commit is contained in:
Hermes Agent committed 2026-12-02 22:09:58 +00:00
1 parent d4b7502501
commit 9b587d6351
20 files changed
+176 -195

No files matched your search

@@ -39,7 +39,7 @@ from pathlib import Path
from typing import Any
from hyperstitionstud_io import __version__ as CURRENT_VERSION
from hyperstitionstud_io.config import load_workspace_config
from hyperstitionstud_io.config import load_json_cached, load_workspace_config
from hyperstitionstud_io.glossary import ReadOnlyIsolationGuard
from hyperstitionstud_io.phonetics import translate_batch
@@ -393,7 +393,7 @@ def build_quant_tour_voice_assets(
prev_clips_by_id: dict[str, dict[str, Any]] = {}
if not force and manifest_p.is_file():
try:
prev_man = json.loads(manifest_p.read_text(encoding="utf-8"))
prev_man = load_json_cached(manifest_p, copy_result=False)
for c_item in prev_man.get("clips") or []:
cid = str(c_item.get("clip_id") or "")
if cid and (target_dir / f"{cid}.wav").is_file():