From 3dcb965a3a65df7bc7f342fe90d627cc543a6700 Mon Sep 17 00:00:00 2001 From: "Mr. Q" <97194984+ToolboxAid@users.noreply.github.com> Date: Fri, 19 Jun 2026 20:44:45 -0400 Subject: [PATCH 1/2] PR_26171_006-016 Laptop BUILD docs for Messages, TTS, playback, and MIDI roadmap --- ..._006-message-emotion-profile-management.md | 83 ++++++++++++++++ ...6171_008-message-tts-profile-foundation.md | 98 +++++++++++++++++++ ...ILD_PR_26171_010-message-speech-preview.md | 84 ++++++++++++++++ ...171_012-message-voice-provider-adapters.md | 86 ++++++++++++++++ ...014-runtime-message-playback-foundation.md | 84 ++++++++++++++++ ...6171_016-midi-studio-roadmap-foundation.md | 74 ++++++++++++++ 6 files changed, 509 insertions(+) create mode 100644 docs_build/pr/BUILD_PR_26171_006-message-emotion-profile-management.md create mode 100644 docs_build/pr/BUILD_PR_26171_008-message-tts-profile-foundation.md create mode 100644 docs_build/pr/BUILD_PR_26171_010-message-speech-preview.md create mode 100644 docs_build/pr/BUILD_PR_26171_012-message-voice-provider-adapters.md create mode 100644 docs_build/pr/BUILD_PR_26171_014-runtime-message-playback-foundation.md create mode 100644 docs_build/pr/BUILD_PR_26171_016-midi-studio-roadmap-foundation.md diff --git a/docs_build/pr/BUILD_PR_26171_006-message-emotion-profile-management.md b/docs_build/pr/BUILD_PR_26171_006-message-emotion-profile-management.md new file mode 100644 index 000000000..d67a472af --- /dev/null +++ b/docs_build/pr/BUILD_PR_26171_006-message-emotion-profile-management.md @@ -0,0 +1,83 @@ +# BUILD PR_26171_006-message-emotion-profile-management + +## Branch Name + +`pr/PR_26171_006-message-emotion-profile-management` + +## Purpose + +Strengthen Messages Emotion Profile management by making profile usage visible and preventing accidental deactivation of profiles that are currently referenced by messages or message segments. + +## Exact Scope + +- Extend the Messages Local API emotion profile payloads with computed usage diagnostics: + - `messageUsageCount` + - `segmentUsageCount` + - `usageCount` + - `references` +- Count references from `messages_records.emotionProfileKey` and `messages_segments.emotionProfileKey`. +- Preserve add, edit, and Active/Inactive behavior for unreferenced emotion profiles. +- Block attempts to deactivate an emotion profile when it is referenced by any message or segment. +- Display usage counts in the Emotion Profiles table. +- Display visible actionable diagnostics when profile deactivation is blocked. +- Add targeted test coverage for profile usage counts and referenced-profile deactivation blocking. + +## Out Of Scope + +- Delete endpoints. +- Text To Speech profiles. +- Speech preview. +- Voice provider adapters. +- Runtime playback contracts. +- Audio generation or playback. +- Schema changes unless required for computed usage diagnostics. +- Changes to Messages, Categories, or Segments behavior beyond profile reference diagnostics. + +## Files Likely Affected + +- `src/dev-runtime/messages/messages-sqlite-service.mjs` +- `toolbox/messages/messages.js` +- `toolbox/messages/index.html` +- `tests/playwright/tools/MessagesTool.spec.mjs` +- `docs_build/dev/reports/*` + +## API/DB Rules + +- Browser must keep using the Messages Local API. +- Browser must not read or write SQLite directly. +- No delete endpoint may be introduced. +- Usage diagnostics are computed from existing Messages SQLite tables. +- No browser-owned product data or local storage source of truth. +- Server/API retains authoritative key and audit ownership. + +## Theme V2 Rules + +- Use existing Theme V2 classes only. +- Do not add page-local CSS, tool-local CSS, inline styles, `