From 8329c00fccac72d8ac43fbe7bc2f9edd6d4c8fc4 Mon Sep 17 00:00:00 2001 From: Zaine Date: Thu, 9 Jul 2026 17:06:10 +0100 Subject: [PATCH] testing --- docs/hidden-memory-architecture.md | 2 +- src/authoring_service/config.py | 2 +- src/authoring_service/hidden.py | 4 ++-- src/authoring_service/templates.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/hidden-memory-architecture.md b/docs/hidden-memory-architecture.md index 4f5dae3..6348bba 100755 --- a/docs/hidden-memory-architecture.md +++ b/docs/hidden-memory-architecture.md @@ -6,7 +6,7 @@ The hidden ecosystem has one friendly source of truth: The live site still consumes generated constants in: -- `assets/scripts/hidden-details.js` in `org_web` +- `assets/scripts/features/hidden-details.js` in `org_web` ## Canonical Content diff --git a/src/authoring_service/config.py b/src/authoring_service/config.py index 457f43f..a9368b3 100755 --- a/src/authoring_service/config.py +++ b/src/authoring_service/config.py @@ -48,7 +48,7 @@ POSTS_DIR = ROOT / "posts" LIMA_DIR = ROOT / "lima" IMAGE_ASSETS_DIR = ROOT / "assets" / "images" HZONE_ASSETS_DIR = IMAGE_ASSETS_DIR / "hzone" -HIDDEN_DETAILS_JS = ROOT / "assets" / "scripts" / "hidden-details.js" +HIDDEN_DETAILS_JS = ROOT / "assets" / "scripts" / "features" / "hidden-details.js" HIDDEN_CONTENT_JSON = ROOT / "assets" / "content" / "hidden-details.json" HIDDEN_BACKUP_DIR = Path(os.environ.get("AUTHOR_HIDDEN_BACKUP_DIR", APP_ROOT / "backups" / "hidden-details")).expanduser().resolve() EXCLUDED_CONTENT_DIR_NAMES = { diff --git a/src/authoring_service/hidden.py b/src/authoring_service/hidden.py index f0f3b4e..f305313 100755 --- a/src/authoring_service/hidden.py +++ b/src/authoring_service/hidden.py @@ -477,7 +477,7 @@ def load_hidden_store() -> dict[str, Any]: migrated = True data = { "schemaVersion": 2, - "generatedFrom": "assets/scripts/hidden-details.js", + "generatedFrom": "assets/scripts/features/hidden-details.js", "generatedAt": datetime.now().isoformat(timespec="seconds"), "entries": entries, "stories": stories, @@ -554,7 +554,7 @@ def validate_hidden_integrity(entries: list[dict[str, Any]], stories: list[dict[ def hidden_architecture_recommendations() -> dict[str, Any]: return { - "storage": "Use assets/content/hidden-details.json as the friendly source of truth for reusable memories, first-class stories, and story-only sections, then regenerate the editable constants in assets/scripts/hidden-details.js.", + "storage": "Use assets/content/hidden-details.json as the friendly source of truth for reusable memories, first-class stories, and story-only sections, then regenerate the editable constants in assets/scripts/features/hidden-details.js.", "backups": "Every save writes timestamped backups for both JSON and JS under backups/hidden-details/.", "versioning": "Commit the JSON and generated JS together so the live site and authoring history stay aligned.", "collaboration": "For simultaneous editing, resolve conflicts by entry id and story id rather than by whole-file ownership.", diff --git a/src/authoring_service/templates.py b/src/authoring_service/templates.py index 99fabcd..91615ae 100755 --- a/src/authoring_service/templates.py +++ b/src/authoring_service/templates.py @@ -1989,7 +1989,7 @@ HIDDEN_APP_HTML = r"""

Canonical model: fragments are tiny reusable lines, memories are richer observatory moments, interactions are triggers, lore is world material, and stories are curated routes through them.

Story model: stories are first-class emotional routes. Entries can belong to multiple stories, but routes stay readable and authored in order.

Legacy links: old continuations, echoes, and symbolic links are retained for migration only. New authoring happens through Story Builder.

-

Storage: the friendly graph lives in assets/content/hidden-details.json; the live site still receives generated constants in assets/scripts/hidden-details.js.

+

Storage: the friendly graph lives in assets/content/hidden-details.json; the live site still receives generated constants in assets/scripts/features/hidden-details.js.