diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d02c30..7a63c6b 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 +- **Rehearser voice-design namespace migration.** Character development and backend-refresh controls now use a private + scope with explicit compatibility exports and the existing voice-design namespace. - **Rehearser voice-picker namespace migration.** Local matching, preview state, Fish.audio search/import, and candidate assignment now use a private scope with explicit compatibility exports. - **Rehearser stage namespace migration.** Stage scaling, cast-sidebar controls, and strip rendering now use a private diff --git a/VERSION b/VERSION index ca69093..dd89f4d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.24.69 +1.24.70 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 715f6b8..15ace87 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -59,6 +59,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed) - ✅ Audiobook network transport uses a private scope with explicit timeout/stream compatibility exports. - ✅ Rehearser stage controls use a private scope with explicit scaling and cast-sidebar compatibility exports. - ✅ Rehearser voice-picker uses a private scope with explicit preview, search, and assignment compatibility exports. +- ✅ Rehearser voice-design uses a private scope with explicit development and backend-refresh compatibility exports. - ✅ `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 5b409b7..3a92cf5 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) { - + diff --git a/static/js/rehearser-voice-design.js b/static/js/rehearser-voice-design.js index 6a67feb..510e1f0 100644 --- a/static/js/rehearser-voice-design.js +++ b/static/js/rehearser-voice-design.js @@ -2,6 +2,8 @@ // Character development and backend selection resolve the shared Rehearser // state at interaction time, so they can be loaded as a leaf feature module. +(function (root) { + async function _castDevelop(sp, btn) { const script = $('reh-script-text')?.value.trim() || linesToScriptText(); if (!script) { toast('Load a script first', 'error'); return; } @@ -64,6 +66,8 @@ async function refreshRehBackends() { rehState.backend = sel.value || ''; }); -window.TTVC = window.TTVC || {}; -window.TTVC.rehearser = window.TTVC.rehearser || {}; -window.TTVC.rehearser.voiceDesign = { develop: _castDevelop, refreshBackends: refreshRehBackends }; +Object.assign(root, { _castDevelop, refreshRehBackends }); +root.TTVC = root.TTVC || {}; +root.TTVC.rehearser = root.TTVC.rehearser || {}; +root.TTVC.rehearser.voiceDesign = { develop: _castDevelop, refreshBackends: refreshRehBackends }; +})(window);