Repository navigation
RDAT: Translation Copilot v0.4.1 (Pre-release)
Pre-releasev0.4.1 Pre-release — Resilience fixes
Four fixes addressing near-term production risks identified after v0.4.0:
1. Gemini 3.8 Flash upgrade + configurable model ID + model-retired error
The Gemini model ID was hardcoded as gemini-2.5-flash in 7 places. Upgraded default to gemini-3.8-flash (the latest stable Flash model — note: Gemini 4.0 does not exist yet). Made the model ID user-configurable in the API Keys panel. Vercel functions respect a GEMINI_MODEL env var. New ModelRetiredError surfaces a specific actionable message instead of a generic 404.
2. Document entity (docId) — no more cross-document overwrites
Segment ids were positional with no document identity. Confirming segment N in document B overwrote document A. v0.4.1 adds a docId (crypto.randomUUID()), DB v4→v5 additive migration, and scopes hydration + clear-text by docId.
3. Export + persistence
- DOCX export (source/target pairs as .docx)
- JSON backup/restore (full dump of segments + glossary + documents)
navigator.storage.persist()on boot
4. ARASEG benchmark — 70.62% F1
Benchmarked the Arabic segmenter against ARASEG (NAMAA-Community, MBZUAI + NYU Abu Dhabi). Results on the PA dev split (222 docs, 163k tokens):
| Method | PA F1 |
|---|---|
| Generic rules | 63–67% |
| SaT (neural) | 66.9% |
| RDAT segmenter | 70.62% |
| Gemini 3.1 Pro | 76.8% |
| Fine-tuned CAMeLBERT | 95.6% |
Beats generic rules + SaT. Below neural baselines — the expected cost of the rule-based approach (no model download, instant, deterministic, privacy-first).
Test results
npm run lint: clean- 8 test suites: 356/356 pass (12+30+89+65+51+37+31+41)
cargo audit: 0 vulnerabilitiesvite build: OK
This is a pre-release. Desktop installers (Windows/macOS/Linux) are building now via GitHub Actions and will attach automatically.