1.5 KiB
1.5 KiB
AI-spel frontend instructions
- This repository owns only the static, accessible web client and its container/chart packaging.
- Rust remains the sole authority for game state. The frontend calls the backend through same-origin
/api/...and/versionpaths. - Keep frontend and backend behind
ai-spel.k3s.k0.nuso session cookies remain same-origin. VERSIONis the only release-version source in this repository. Usescripts/bump-version.py; do not manually edit chart versions.- Changes are written locally and built, checked, published, and exercised by Gitea Actions on the existing
largerunner and Kubernetes. Never run apps, tests, containers, images, or binaries locally. Do not create or register runners. - Never commit secrets, generated credentials, kubeconfigs, or environment files.
- Helm charts are published to
harbor.k3s.k0.nu/ai-spel; Argo CD uses the existingai-spelproject and namespace. - Player-facing speech uses the local Piper WebAssembly adapter when the player has activated audio. All supported Swedish Piper voice models are packaged into the frontend image and served from this origin; model downloads are redirected to same-origin paths and cached by the browser when supported. Game text is synthesized on-device and must never be sent to a TTS provider.
- Build Piper/ONNX WebAssembly files and fetch/checksum pinned Swedish model files in the
largerunner; serve them from the frontend image under/tts/piper-wasm-v1/. Never build or run these assets locally.