diff --git a/CHANGELOG.md b/CHANGELOG.md index a3814ef..b636656 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi ## [Unreleased] ### Changed +- **Frontend namespace migration completed.** The remaining utility, library, cast-compatibility, i18n, and settings/log + surfaces now keep implementation state private while preserving explicit legacy compatibility exports. - **Conversation/log namespace migration.** Settings log state and About rendering helpers now use a private scope with compatibility exports and a `window.TTVC.conversation` API. - **i18n namespace migration.** Language dictionaries and mutable language state now use a private scope with compatibility diff --git a/TODO.md b/TODO.md index 657f4a2..549f9e2 100644 --- a/TODO.md +++ b/TODO.md @@ -124,11 +124,11 @@ architecture change: the larger Audiobook/Rehearser/style split. voice design, I/O, library, stage, and recording blocks plus Audiobook casting, preview, export, and feature styles are isolated. Core Reader state and compatibility event wiring remain ordered in the legacy entry points. - [x] Extract Rehearser stage display and cast-sidebar controls into `rehearser-stage.js`. -- [ ] Replace broad globals with namespaces such as `window.TTVC.audiobook`; pure leaves, Audiobook/Reader/Rehearser +- [x] Replace broad globals with namespaces such as `window.TTVC.audiobook`; pure leaves, Audiobook/Reader/Rehearser feature modules, Studio, and character-library persistence now use private scopes with explicit compatibility exports. - Voice-library loading, rendering, benchmarking, import workflows, character-sheet extraction, and character-library - rendering/actions, voice-inspector selection, and shared utility helpers are now scoped; remaining legacy library UI - modules still require the same responsibility-by-responsibility migration. + Voice-library loading, rendering, benchmarking, import workflows, character-sheet extraction, character-library + rendering/actions, voice-inspector selection, shared utility helpers, cast compatibility, i18n, and settings/log UI + are also scoped; legacy entry points remain only as explicit compatibility exports. - [x] Generate the feature-module list for `loader.js` and `scripts/minify.mjs` from one shared manifest; larger responsibility splits remain. - [x] Add a dependency-free frontend syntax and top-level declaration collision gate (`npm run check:frontend`); diff --git a/VERSION b/VERSION index 6241735..3da8cae 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.24.97 +1.24.98 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 411be82..8e0bee1 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -85,6 +85,8 @@ Done incrementally as global-scope ordered files (no ES-module change needed) - ✅ SillyTavern character-card import/export helpers use a private scope with a namespace API. - ✅ i18n dictionaries and language state use a private scope with compatibility exports and a namespace API. - ✅ Conversation settings/log state and About helpers use a private scope with compatibility exports and a namespace API. +- ✅ All remaining application frontend modules are either privately scoped or intentionally stateless bootstrap/cache IIFEs; + legacy globals are explicit compatibility exports and new integrations use `window.TTVC` namespaces. - ✅ `static/css/resource-diagnostics.css` — isolated Performance/resource diagnostic panel styles. - ✅ `static/css/background-jobs.css` — isolated background-job history and retry-panel styles. - ✅ `static/css/voice-design.css` — isolated Voice Design form, samples, and preview-match styles. diff --git a/static/index.html b/static/index.html index 902d7e5..5b1017a 100644 --- a/static/index.html +++ b/static/index.html @@ -10,7 +10,7 @@ - + @@ -27,12 +27,12 @@ - - - - - - + + + + + + @@ -397,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) { - +