mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1458] [MERGED] Add TTS and translation API wrappers #5098
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5098
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1458
Author: @Xelvanis
Created: 5/28/2026
Status: ✅ Merged
Merged: 5/28/2026
Merged by: @SpicyMarinara
Base:
refactor← Head:chore/raw-invoketauri-tts-translate📝 Commits (4)
74be484Add TTS and translation API wrappers60150b0Update shared API docs for TTS wrappers2e761e2Validate TTS speak responsesa8c9cd5Refresh Graphify for TTS wrappers📊 Changes
17 files changed (+3461 additions, -2365 deletions)
View changed files
📝
docs/developer/architecture.html(+1 -1)📝
docs/developer/modules.html(+1 -1)📝
graphify-out/.graphify_labels.json(+17 -0)📝
graphify-out/GRAPH_REPORT.md(+340 -243)📝
graphify-out/cache/stat-index.json(+1 -1)📝
graphify-out/graph.json(+2714 -1998)📝
graphify-out/manifest.json(+75 -55)📝
src/shared/api/integration-utility-api.ts(+1 -40)📝
src/shared/api/tauri-client.test.ts(+22 -0)➕
src/shared/api/translation-api.test.ts(+43 -0)➕
src/shared/api/translation-api.ts(+30 -0)➕
src/shared/api/tts-api.test.ts(+122 -0)➕
src/shared/api/tts-api.ts(+72 -0)📝
src/shared/hooks/use-translate.ts(+8 -10)📝
src/shared/hooks/use-tts.ts(+5 -5)📝
src/shared/lib/translate-text.ts(+8 -10)📝
src/shared/lib/tts-service.ts(+1 -1)📄 Description
Linked issue
Refs #1457
Why this change
invokeTaurimigration by moving TTS and translation command calls behind focused shared API wrappers.What changed
src/shared/api/tts-api.tsfor TTS config, voices, and speech command wrappers.src/shared/api/translation-api.tsfor translation command payload/response validation.integration-utility-api.tscompatibility exports while removing its inline TTS command implementation.refactor, resolving thetauri-client.test.tsconflict by keeping both haptics local-only coverage and TTS/translation remote-runtime coverage.Refactor impact
Primary owner:
Shared API wrapper layer (
src/shared/api).Impact areas reviewed:
Boundary notes:
invokeTauriknowledge for this slice.remote-runtime.tsand are covered bytauri-clientrouting tests.Validation
pnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallymarinara-serverManual verification notes
pnpm exec vitest run src/shared/api/tts-api.test.ts src/shared/api/translation-api.test.ts src/shared/api/tauri-client.test.tspassed: 3 files, 29 tests.pnpm typecheckpassed.pnpm check:architecturepassed.pnpm check:docspassed: checked 40 docs and repo guidance files.pnpm buildpassed with the existing large chunk warning.pnpm graphify:patchpassed.graphify update .passed.git diff --check origin/refactor...HEADpassed.marinara-server; routing is covered by unit tests.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdDeveloper docs under
docs/developer/were updated to listtts-api.tsandtranslation-api.tsin the shared API wrapper map.UI evidence
No visible UI changes. This is a shared API wrapper migration slice.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.