feat: init Scalper — pipeline légal scrape+traduction (SCAL-1..SCAL-12)
- legal-source-check (liste de blocage scanlation, robots.txt, rate limiting) - sources: demo (fixture) + mangadex (API officielle) - cleaner, translator (LLM Mistral + glossaire), QA, exporter (md/json/html) - CLI + pipeline resumable (state.json), 22 tests unitaires - sous-agents Mistral Agents SDK: orchestrator + scraper/translator/qa - skills/ (6 SKILL.md), docs légales, CI GitHub Actions Refs: Jira SCAL-1 (Epic CDC), SCAL-2..SCAL-12 (backlog Scrum)
This commit is contained in:
commit
f38a1d630b
38 files changed
+1733
No files matched your search
@@ -0,0 +1,15 @@
|
||||
---
|
||||
name: llm-translator
|
||||
description: Traduit un chapitre structuré vers une langue cible via LLM Mistral, avec glossaire injecté, cohérence des noms, préservation des placeholders [IMG:n], chunking respectant le budget de tokens.
|
||||
---
|
||||
|
||||
# llm-translator
|
||||
|
||||
Paramètres : `target_lang`, `glossary` (JSON terme -> traduction), style.
|
||||
|
||||
Règles du prompt système : ne jamais traduire [IMG:n] ni les URLs ; respecter le glossaire ; conserver le registre ; aucune explication en sortie.
|
||||
|
||||
Pipeline : glossaire chargé/étendu au fil des chapitres ; chunks <= ~1500 tokens de sortie en respectant les frontières de blocs ; retry max 3 si sortie invalide.
|
||||
|
||||
Sortie : `chapter.<lang>.json`. Clé API via `MISTRAL_API_KEY` uniquement.
|
||||
Implémentation : `src/scalper/translator.py`.
|
||||
Reference in new issue
Block a user