feat: align frontend runtime and Edge TTS

This commit is contained in:
2026-07-22 15:01:25 +08:00
parent d2c278f0ea
commit 699a0bced4
43 changed files with 2000 additions and 73 deletions
+4 -2
View File
@@ -11,6 +11,7 @@ under `src/`.
- `src/shared/`: reusable UI, config, styles, and utilities.
- `src/mocks/`: MSW handlers and fixtures for backend-independent development.
- `src/test/`: Vitest setup.
- `server/`: same-origin Edge TTS adapter used by Vite and the production container.
## Commands
@@ -31,5 +32,6 @@ Use TypeScript and React function components. Prefer explicit exported types at
module boundaries. Keep Agent dynamic UI rendering schema-driven: Agent output
must be validated before it reaches React components.
Do not add Next.js APIs or server routes to this frontend. Backend/BFF behavior
belongs in the Agent service or a separate service.
Do not add Next.js APIs or general BFF routes to this frontend. Agent behavior
belongs in the Agent service; the local `server/` exception is limited to the
same-origin Edge TTS network adapter.