claqueta-mcp 0.60.0 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -83,7 +83,7 @@ function ayudaConexionTodas(plataforma = process.platform) {
83
83
  }
84
84
 
85
85
  // src/config.ts
86
- var VERSION = true ? "0.60.0" : "dev";
86
+ var VERSION = true ? "0.61.0" : "dev";
87
87
  var construirAyuda = (plataforma = process.platform) => `claqueta-mcp ${VERSION}: puente stdio hacia el servidor MCP remoto de Claqueta.
88
88
 
89
89
  Uso:
@@ -249,9 +249,9 @@ import { join as join28 } from "node:path";
249
249
 
250
250
  // src/motor-docker.ts
251
251
  import { spawn } from "node:child_process";
252
- var IMAGEN_POR_DEFECTO = "public.ecr.aws/v9d5u4i8/claqueta-motor@sha256:3a479ac2bcf6d016ff4444d324c9b1cd99336601a00ab33d577b8e20b99338f1";
253
- var IMAGEN_CLONACION_POR_DEFECTO = "public.ecr.aws/v9d5u4i8/claqueta-motor@sha256:007ac0b331faf48d8b8cb36d4511f92ed3131f0b30a3819f5835ca5502c474bc";
254
- var MOTOR_VERSION_POR_DEFECTO = "0.24.0";
252
+ var IMAGEN_POR_DEFECTO = "public.ecr.aws/v9d5u4i8/claqueta-motor@sha256:90dcaed3050ae0e8edf200680f4bdf778da226d9282a57bbf0a4573134e93381";
253
+ var IMAGEN_CLONACION_POR_DEFECTO = "public.ecr.aws/v9d5u4i8/claqueta-motor@sha256:836bd5f415ac2af78d7b21f462d07e745d3100c9a05a605c6bc5eb4d060c0d12";
254
+ var MOTOR_VERSION_POR_DEFECTO = "0.25.0";
255
255
  var PERFIL_AWS_POR_DEFECTO = "claqueta-motor";
256
256
  var REGION_POR_DEFECTO = "us-west-1";
257
257
  var ejecutarReal = (cmd, args2, opc) => new Promise((resolver) => {
@@ -1 +1 @@
1
- 0.24.0
1
+ 0.25.0
package/motor/README.md CHANGED
@@ -30,8 +30,8 @@ Requisitos: Docker Desktop abierto (probado con 8 GB de RAM). No hacen falta cre
30
30
  git clone https://github.com/ajuarez93/claqueta-motores && cd claqueta-motores
31
31
 
32
32
  # Opción A: la imagen pública ya publicada (multi-arquitectura, amd64 y arm64)
33
- docker pull public.ecr.aws/v9d5u4i8/claqueta-motor:0.24.0
34
- export CLAQUETA_MOTOR_IMAGEN=public.ecr.aws/v9d5u4i8/claqueta-motor:0.24.0
33
+ docker pull public.ecr.aws/v9d5u4i8/claqueta-motor:0.25.0
34
+ export CLAQUETA_MOTOR_IMAGEN=public.ecr.aws/v9d5u4i8/claqueta-motor:0.25.0
35
35
 
36
36
  # Opción B: construirla desde este repo (primera vez: varios minutos); queda como claqueta-motor:dev
37
37
  ./motor.sh build
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "claqueta-motor"
3
- version = "0.24.0"
3
+ version = "0.25.0"
4
4
  description = "Motor de generación de Claqueta: VideoRequest -> MP4 vertical con voz y subtítulos"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -16,6 +16,10 @@ dependencies = [
16
16
  # (Apache-2.0, Baidu/PaddleOCR) y usa el onnxruntime que ya está; necesita cv2, solo en su versión headless.
17
17
  "rapidocr==3.10.0",
18
18
  "opencv-python-headless>=4.10",
19
+ # CLA-302: SFX con Stable Audio Open Small en su variante LiteRT/TFLite. ai-edge-litert (Apache-2.0, Google; ruedas para
20
+ # Linux x86_64/aarch64 y macOS arm64) corre los grafos; sentencepiece (Apache-2.0) tokeniza el prompt para T5.
21
+ "ai-edge-litert>=2.4.0",
22
+ "sentencepiece>=0.2.0",
19
23
  ]
20
24
 
21
25
  [project.optional-dependencies]
@@ -33,7 +33,7 @@ from .contrato import ASPECTOS, VOCES_ES, leer_json, leer_prueba_voz, lienzo_com
33
33
  from .errores import ErrorMotor, PedidoInvalido
34
34
  from .progreso import Progreso, ahora, log
35
35
 
36
- VERSION = "0.24.0"
36
+ VERSION = "0.25.0"
37
37
  # Versión del bloque `construccion` del manifiesto (CLA-100); sube si cambia su forma.
38
38
  CONSTRUCCION_VERSION = 1
39
39
 
@@ -1218,6 +1218,23 @@ def vectorizar_logo(pedido_src: str | None, entrada: Path | None, salida: Path)
1218
1218
  return errores.OK
1219
1219
 
1220
1220
 
1221
+ def generar_sfx(pedido_src: str | None, prompt: str | None, duracion: float | None, semilla: int | None,
1222
+ salida: Path) -> int:
1223
+ """CLA-302: genera un efecto de sonido con Stable Audio Open Small (`sfx.wav` + `sfx.json` en la salida). El pedido
1224
+ es `{"prompt": "fast cinematic whoosh", "duracion_s": 1.5, "semilla": 7}`; o `--prompt/--duracion/--semilla`."""
1225
+ from . import sfx_generado
1226
+
1227
+ if pedido_src:
1228
+ datos = leer_json(pedido_src)
1229
+ if not isinstance(datos, dict):
1230
+ raise PedidoInvalido('el pedido de SFX es un objeto {"prompt", "duracion_s", "semilla"}')
1231
+ prompt, duracion, semilla = datos.get("prompt"), datos.get("duracion_s"), datos.get("semilla", 0)
1232
+ r = sfx_generado.generar_sfx(prompt, duracion, 0 if semilla is None else semilla, salida / "sfx.wav")
1233
+ _escribir_json(salida / "sfx.json", {"motor": {"nombre": "claqueta-motor", "version": VERSION}, **r.a_json(),
1234
+ "creado": ahora()})
1235
+ return errores.OK
1236
+
1237
+
1221
1238
  def _subcomandos_pasos(sub) -> None:
1222
1239
  """CLA-181: motor por pasos sobre una carpeta de trabajo (docs/contrato-motor.md §10)."""
1223
1240
  def _p(nombre: str, ayuda: str):
@@ -1326,6 +1343,13 @@ def main(argv: list[str] | None = None) -> int:
1326
1343
  vc_e.add_argument("--pedido", help='JSON {"entrada": "logo.png"} (entrada junto al pedido), o - para stdin')
1327
1344
  vc_e.add_argument("--entrada", type=Path, help="ruta a la imagen (PNG, JPG o WebP)")
1328
1345
  vc.add_argument("--salida", required=True, type=Path)
1346
+ sx = sub.add_parser("generar-sfx", help="genera un efecto de sonido desde texto: sfx.wav + sfx.json (CLA-302; pide HF_TOKEN)")
1347
+ sx_e = sx.add_mutually_exclusive_group(required=True)
1348
+ sx_e.add_argument("--pedido", help='JSON {"prompt": "...", "duracion_s": 1.5, "semilla": 7}, o - para stdin')
1349
+ sx_e.add_argument("--prompt", help="descripción del efecto en inglés")
1350
+ sx.add_argument("--duracion", type=float, default=1.5, help="segundos (0.3 a 11; por defecto 1.5)")
1351
+ sx.add_argument("--semilla", type=int, default=0, help="semilla (misma semilla y prompt = mismo audio)")
1352
+ sx.add_argument("--salida", required=True, type=Path)
1329
1353
  sub.add_parser("version", help="versiones de motor y componentes")
1330
1354
  _subcomandos_pasos(sub)
1331
1355
  fa = sub.add_parser("familias", help="catálogo de familias de estilo (JSON a stdout; con --salida, también familias.json)")
@@ -1396,6 +1420,8 @@ def main(argv: list[str] | None = None) -> int:
1396
1420
  return quitar_fondo(a.pedido, a.entrada, salida, recortar=not a.sin_recorte)
1397
1421
  if a.cmd == "vectorizar":
1398
1422
  return vectorizar_logo(a.pedido, a.entrada, salida)
1423
+ if a.cmd == "generar-sfx":
1424
+ return generar_sfx(a.pedido, a.prompt, a.duracion, a.semilla, salida)
1399
1425
  if a.cmd == "preparar":
1400
1426
  preparar(a.pedido, salida, trabajo, prog, a.reutilizar)
1401
1427
  return errores.OK
@@ -1407,7 +1433,8 @@ def main(argv: list[str] | None = None) -> int:
1407
1433
  return errores.CANCELADO
1408
1434
  except ErrorMotor as e:
1409
1435
  etapa = e.etapa or ("composicion" if a.cmd == "renderizar" else "voz")
1410
- prog.evento(etapa, 0, str(e), "error")
1436
+ # fondo/sfx no son etapas del progreso (ETAPAS): sin esto `evento` lanza ValueError y no queda error.json
1437
+ prog.evento(etapa if etapa in errores.ETAPAS else "voz", 0, str(e), "error")
1411
1438
  log(f"ERROR [{etapa}] {e}")
1412
1439
  salida.mkdir(parents=True, exist_ok=True)
1413
1440
  (salida / "error.json").write_text(
@@ -15,14 +15,16 @@ def dir_cache() -> Path:
15
15
  return d
16
16
 
17
17
 
18
- def descargar(url: str, destino: Path) -> Path:
19
- """Descarga atómica (archivo .part + rename). No hace nada si ya existe."""
18
+ def descargar(url: str, destino: Path, cabeceras: dict[str, str] | None = None) -> Path:
19
+ """Descarga atómica (archivo .part + rename). No hace nada si ya existe. `cabeceras` (p. ej. el token de un repo
20
+ restringido de Hugging Face, CLA-302) van en la petición y nunca al log."""
20
21
  if destino.exists() and destino.stat().st_size > 0:
21
22
  return destino
22
23
  destino.parent.mkdir(parents=True, exist_ok=True)
23
24
  parcial = destino.with_suffix(destino.suffix + ".part")
24
25
  log(f"descargando {url} -> {destino}")
25
- with urllib.request.urlopen(url, timeout=60) as r, open(parcial, "wb") as f: # noqa: S310 (URL fija, pública)
26
+ peticion = urllib.request.Request(url, headers=cabeceras or {})
27
+ with urllib.request.urlopen(peticion, timeout=60) as r, open(parcial, "wb") as f: # noqa: S310 (URL fija)
26
28
  while chunk := r.read(1 << 20):
27
29
  f.write(chunk)
28
30
  parcial.rename(destino)
@@ -0,0 +1,293 @@
1
+ """Efectos de sonido generados desde texto con Stable Audio Open Small (CLA-302).
2
+
3
+ Hoy los SFX del video salen de una biblioteca fija (`medios.sfx`); esto genera un clip corto (whoosh, clic, golpe,
4
+ transición, notificación…) desde un prompt en inglés, una duración y una semilla. Todavía NO lo usa la composición
5
+ automática: solo el subcomando `generar-sfx`.
6
+
7
+ Corre en CPU con la variante LiteRT/TFLite que publica el mismo repo (`tflite-arm-path/`, exportada por Arm desde
8
+ `model.ckpt`): tres grafos y el tokenizador de T5.
9
+
10
+ 1. SentencePiece (T5-base) convierte el prompt en ids (hasta 128, terminados en `</s>`) y su máscara.
11
+ 2. `conditioners_float32.tflite` (T5-base + la duración) da la condición cruzada [1, 65, 768] y la global [1, 768].
12
+ 3. `dit_model.tflite` (DiT de 341 M parámetros, int8 dinámico) corre `PASOS` pasos del muestreador «ping-pong» de flujo
13
+ rectificado (sin CFG), con el calendario de `stable-audio-tools`: t = sigmoid(-logsnr), logsnr de -6 a 2.
14
+ 4. `autoencoder_model.tflite` decodifica el latente [1, 64, 256] a 524 288 muestras estéreo a 44.1 kHz (≈ 11.9 s, fijo);
15
+ la duración pedida condiciona cuánto de esa ventana se llena y el clip se recorta a ella.
16
+ 5. Se normaliza el pico a `PICO_DBFS`, se aplica un desvanecido corto al final del recorte y se escribe WAV PCM 16 bits.
17
+
18
+ Medido en Docker arm64 con 8 GB y 4 hilos (CLA-302): ~10-16 s por clip (fijo, por la ventana de 11.9 s), ~2.3 GB de RAM
19
+ pico, ~3-23 s para cargar los grafos. La variante PyTorch (`stable-audio-tools`) es más rápida por clip (3-6 s) pero pide
20
+ torch, una docena de dependencias fijadas a versiones viejas y ~4.7 GB de RAM: se descartó para el motor.
21
+
22
+ Licencia: los pesos (y su derivado TFLite) son de Stability AI bajo la **Stability AI Community License** (uso comercial
23
+ gratis solo con ingresos anuales < USD 1 M, registro con Stability AI, aviso «Powered by Stability AI» y la política de uso
24
+ aceptable); `spiece.model` es de google-t5/t5-base (Apache-2.0). El repo de Hugging Face es restringido: la descarga
25
+ necesita un token con el acuerdo aceptado en `HF_TOKEN`. La imagen no lleva ni el token ni los pesos: se bajan la primera
26
+ vez a `<caché del motor>/sfx/<revisión>/` y se verifica el SHA-256 de cada archivo.
27
+
28
+ Caché del resultado por (prompt, duración, semilla, modelo, revisión, pasos) en `<caché del motor>/sfx-generado/`."""
29
+
30
+ from __future__ import annotations
31
+
32
+ import hashlib
33
+ import json
34
+ import os
35
+ import shutil
36
+ import time
37
+ import urllib.error
38
+ from collections.abc import Callable
39
+ from dataclasses import dataclass, field
40
+ from pathlib import Path
41
+ from typing import Protocol
42
+
43
+ import numpy as np
44
+
45
+ from .descargas import descargar, dir_cache
46
+ from .errores import ErrorMotor, PedidoInvalido
47
+ from .progreso import log
48
+
49
+ REPO = "stabilityai/stable-audio-open-small"
50
+ REVISION = "ea2772170fc06f80dfd02bea6e57a44d9d4bc9d3"
51
+ AVISO_LICENCIA = ("This Stability AI Model is licensed under the Stability AI Community License, "
52
+ "Copyright © Stability AI Ltd. All Rights Reserved")
53
+ MODELO = {
54
+ "nombre": "stable-audio-open-small-tflite",
55
+ "descripcion": "Stable Audio Open Small (Stability AI), variante LiteRT/TFLite de tflite-arm-path con DiT int8",
56
+ "licencia": "Stability AI Community License",
57
+ "fuente": f"https://huggingface.co/{REPO}",
58
+ "revision": REVISION,
59
+ "aviso": AVISO_LICENCIA,
60
+ }
61
+ # Archivo -> (bytes, sha256), fijados a REVISION.
62
+ ARCHIVOS = {
63
+ "conditioners_float32.tflite": (439606520, "eccbc94e4ddb4ff6a209620a1a69af0168ea7af2e06abe3b1ac4d097610c7406"),
64
+ "dit_model.tflite": (346342160, "2f88b5a7b574129b06da36f4cde59f558b1788e214b51b2ab6d91a602add7175"),
65
+ "autoencoder_model.tflite": (312650344, "1f1eecb49712c541a9c502ff29f774827bb63ca4da46f5cd312c91e5026f0b38"),
66
+ "spiece.model": (791656, "d60acb128cf7b7f2536e8f38a5b18a05535c9e14c7a355904270e15b0945ea86"),
67
+ }
68
+ CAMPOS_JSON = ("nombre", "descripcion", "licencia", "fuente", "revision", "aviso")
69
+ SR = 44100
70
+ VENTANA = 524288 # muestras que da el decodificador (≈ 11.9 s)
71
+ LATENTE = (1, 64, 256)
72
+ MAX_TOKENS = 128
73
+ EOS = 1 # `</s>` de T5
74
+ PASOS = 8
75
+ DURACION_MIN, DURACION_MAX = 0.3, 11.0
76
+ MAX_PROMPT = 300
77
+ SEMILLA_MAX = 2**32 - 1
78
+ PICO_DBFS = -1.0
79
+ DESVANECIDO_S = 0.02
80
+ HILOS = 4
81
+ VERSION_CACHE = 1 # súbelo si cambia la forma de generar (invalida la caché)
82
+ VARS_TOKEN = ("HF_TOKEN", "HUGGING_FACE_HUB_TOKEN")
83
+
84
+
85
+ class Modelo(Protocol):
86
+ def generar(self, prompt: str, duracion: float, semilla: int) -> np.ndarray:
87
+ """Audio estéreo float32 (2, n) de la ventana completa."""
88
+ ...
89
+
90
+
91
+ @dataclass
92
+ class Resultado:
93
+ salida: Path
94
+ prompt: str
95
+ duracion: float
96
+ semilla: int
97
+ segundos: float
98
+ desde_cache: bool
99
+ clave: str
100
+ avisos: list[str] = field(default_factory=list)
101
+
102
+ def a_json(self) -> dict:
103
+ return {"salida": self.salida.name, "prompt": self.prompt, "duracion_s": self.duracion, "semilla": self.semilla,
104
+ "sample_rate": SR, "canales": 2, "segundos": round(self.segundos, 3), "desde_cache": self.desde_cache,
105
+ "clave": self.clave, "avisos": self.avisos, "modelo": {k: MODELO[k] for k in CAMPOS_JSON}}
106
+
107
+
108
+ def validar(prompt: object, duracion: object, semilla: object) -> tuple[str, float, int]:
109
+ if not isinstance(prompt, str) or not prompt.strip():
110
+ raise PedidoInvalido("el SFX necesita `prompt` (texto en inglés, p. ej. «fast cinematic whoosh»)")
111
+ prompt = " ".join(prompt.split())
112
+ if len(prompt) > MAX_PROMPT:
113
+ raise PedidoInvalido(f"`prompt` pasa de {MAX_PROMPT} caracteres")
114
+ if isinstance(duracion, bool) or not isinstance(duracion, (int, float)) or not (
115
+ DURACION_MIN <= float(duracion) <= DURACION_MAX):
116
+ raise PedidoInvalido(f"`duracion_s` va de {DURACION_MIN} a {DURACION_MAX} s")
117
+ if isinstance(semilla, bool) or not isinstance(semilla, int) or not (0 <= semilla <= SEMILLA_MAX):
118
+ raise PedidoInvalido(f"`semilla` es un entero de 0 a {SEMILLA_MAX}")
119
+ return prompt, round(float(duracion), 3), semilla
120
+
121
+
122
+ def clave_cache(prompt: str, duracion: float, semilla: int) -> str:
123
+ datos = {"prompt": prompt, "duracion": duracion, "semilla": semilla, "modelo": MODELO["nombre"],
124
+ "revision": REVISION, "pasos": PASOS, "pico": PICO_DBFS, "v": VERSION_CACHE}
125
+ return hashlib.sha256(json.dumps(datos, sort_keys=True, ensure_ascii=False).encode()).hexdigest()
126
+
127
+
128
+ def token_hf() -> str:
129
+ for var in VARS_TOKEN:
130
+ if valor := os.environ.get(var, "").strip():
131
+ return valor
132
+ raise ErrorMotor("falta HF_TOKEN: los pesos de Stable Audio Open Small están en un repo restringido de Hugging Face; "
133
+ "pasa un token de lectura con el acuerdo aceptado en la variable HF_TOKEN", etapa="sfx")
134
+
135
+
136
+ def _sha256(ruta: Path) -> str:
137
+ h = hashlib.sha256()
138
+ with open(ruta, "rb") as f:
139
+ while bloque := f.read(1 << 22):
140
+ h.update(bloque)
141
+ return h.hexdigest()
142
+
143
+
144
+ def rutas_pesos(directorio: Path | None = None) -> dict[str, Path]:
145
+ """Los archivos del modelo en la caché (los baja la primera vez, con token) con su SHA-256 verificado. Con la caché
146
+ completa no hace falta el token."""
147
+ base = directorio or dir_cache() / "sfx" / REVISION
148
+ rutas = {n: base / n for n in ARCHIVOS}
149
+ faltan = [n for n, r in rutas.items() if not (r.is_file() and r.stat().st_size == ARCHIVOS[n][0])]
150
+ cabeceras = {"Authorization": f"Bearer {token_hf()}"} if faltan else {}
151
+ for n in faltan:
152
+ url = f"https://huggingface.co/{REPO}/resolve/{REVISION}/tflite-arm-path/{n}"
153
+ try:
154
+ descargar(url, rutas[n], cabeceras)
155
+ except urllib.error.HTTPError as e:
156
+ if e.code in (401, 403):
157
+ raise ErrorMotor(f"Hugging Face negó la descarga de {n} ({e.code}): el token de HF_TOKEN no vale o su cuenta "
158
+ "no aceptó el acuerdo de stabilityai/stable-audio-open-small", etapa="sfx") from None
159
+ raise ErrorMotor(f"no se pudo bajar {n} de Hugging Face ({e.code})", etapa="sfx") from None
160
+ except (urllib.error.URLError, OSError) as e:
161
+ raise ErrorMotor(f"no se pudo bajar {n} de Hugging Face ({e})", etapa="sfx") from None
162
+ for n, r in rutas.items():
163
+ if _sha256(r) != ARCHIVOS[n][1]:
164
+ r.unlink(missing_ok=True)
165
+ raise ErrorMotor(f"{n} no coincide con su SHA-256 (se borró; vuelve a intentar)", etapa="sfx")
166
+ return rutas
167
+
168
+
169
+ def calendario(pasos: int = PASOS) -> np.ndarray:
170
+ """t de cada paso (de 1 a 0), como `stable-audio-tools` para el muestreador ping-pong con sigma_max = 1."""
171
+ t = 1.0 / (1.0 + np.exp(np.linspace(-6.0, 2.0, pasos + 1)))
172
+ t[0], t[-1] = 1.0, 0.0
173
+ return t
174
+
175
+
176
+ def tokens(ids: list[int]) -> tuple[np.ndarray, np.ndarray]:
177
+ """ids de SentencePiece -> (ids, máscara) int64 [1, MAX_TOKENS], terminados en `</s>` y recortados."""
178
+ ids = list(ids)[: MAX_TOKENS - 1]
179
+ if not ids or ids[-1] != EOS:
180
+ ids.append(EOS)
181
+ tok = np.zeros((1, MAX_TOKENS), np.int64)
182
+ msk = np.zeros((1, MAX_TOKENS), np.int64)
183
+ tok[0, : len(ids)] = ids
184
+ msk[0, : len(ids)] = 1
185
+ return tok, msk
186
+
187
+
188
+ def muestrear(dit: Callable[[np.ndarray, float], np.ndarray], semilla: int, pasos: int = PASOS) -> np.ndarray:
189
+ """Muestreador ping-pong: denoised = x - t·v(x, t); x = (1 - t') · denoised + t' · ruido."""
190
+ rng = np.random.default_rng(semilla)
191
+ x = rng.standard_normal(LATENTE).astype(np.float32)
192
+ t = calendario(pasos)
193
+ for i in range(pasos):
194
+ limpio = x - np.float32(t[i]) * dit(x, float(t[i]))
195
+ x = ((1 - t[i + 1]) * limpio + t[i + 1] * rng.standard_normal(LATENTE)).astype(np.float32)
196
+ return x
197
+
198
+
199
+ def terminar(audio: np.ndarray, duracion: float) -> np.ndarray:
200
+ """(2, n) de la ventana -> (muestras, 2) recortado a la duración, pico a PICO_DBFS y desvanecido al final."""
201
+ a = np.asarray(audio, dtype=np.float32).reshape(2, -1)[:, : round(duracion * SR)].T.copy()
202
+ pico = float(np.abs(a).max()) if a.size else 0.0
203
+ if pico > 1e-6:
204
+ a *= (10 ** (PICO_DBFS / 20)) / pico
205
+ n = min(len(a), int(DESVANECIDO_S * SR))
206
+ if n > 1:
207
+ a[-n:] *= np.linspace(1.0, 0.0, n, dtype=np.float32)[:, None]
208
+ return a
209
+
210
+
211
+ class StableAudioTflite:
212
+ """Los tres intérpretes de LiteRT y el tokenizador, cargados una vez."""
213
+
214
+ def __init__(self, rutas: dict[str, Path] | None = None, hilos: int = HILOS):
215
+ rutas = rutas or rutas_pesos()
216
+ try: # imports tardíos: las pruebas no los cargan
217
+ import sentencepiece as spm
218
+ from ai_edge_litert.interpreter import Interpreter
219
+ except ImportError as e:
220
+ raise ErrorMotor(f"falta el runtime de SFX ({e.name}); instala ai-edge-litert y sentencepiece", etapa="sfx") from None
221
+ self.sp = spm.SentencePieceProcessor(model_file=str(rutas["spiece.model"]))
222
+
223
+ def interp(n: str):
224
+ i = Interpreter(model_path=str(rutas[n]), num_threads=hilos)
225
+ i.allocate_tensors()
226
+ return i
227
+
228
+ self.cond = interp("conditioners_float32.tflite")
229
+ self.dit = interp("dit_model.tflite")
230
+ self.dec = interp("autoencoder_model.tflite")
231
+ self._dit_ent = {d["name"]: d["index"] for d in self.dit.get_input_details()}
232
+
233
+ def _condicion(self, prompt: str, duracion: float) -> tuple[np.ndarray, np.ndarray]:
234
+ tok, msk = tokens(self.sp.encode(prompt))
235
+ ent = {d["name"]: d["index"] for d in self.cond.get_input_details()}
236
+ self.cond.set_tensor(ent["serving_default_args_0"], tok)
237
+ self.cond.set_tensor(ent["serving_default_args_1"], msk)
238
+ self.cond.set_tensor(ent["serving_default_args_2"], np.array([duracion], np.float32))
239
+ self.cond.invoke()
240
+ sal = {tuple(d["shape"].tolist()): self.cond.get_tensor(d["index"]) for d in self.cond.get_output_details()}
241
+ return sal[(1, 65, 768)].astype(np.float32), sal[(1, 768)].astype(np.float32)
242
+
243
+ def generar(self, prompt: str, duracion: float, semilla: int) -> np.ndarray:
244
+ cruzada, glob = self._condicion(prompt, duracion)
245
+ e = self._dit_ent
246
+ self.dit.set_tensor(e["serving_default_cross_attn_cond"], cruzada)
247
+ self.dit.set_tensor(e["serving_default_global_cond"], glob)
248
+ salida = self.dit.get_output_details()[0]["index"]
249
+
250
+ def v(x: np.ndarray, t: float) -> np.ndarray:
251
+ self.dit.set_tensor(e["serving_default_x"], x)
252
+ self.dit.set_tensor(e["serving_default_t"], np.array([t], np.float32))
253
+ self.dit.invoke()
254
+ return self.dit.get_tensor(salida)
255
+
256
+ latente = muestrear(v, semilla)
257
+ self.dec.set_tensor(self.dec.get_input_details()[0]["index"], latente)
258
+ self.dec.invoke()
259
+ return self.dec.get_tensor(self.dec.get_output_details()[0]["index"]).reshape(2, VENTANA)
260
+
261
+
262
+ def escribir_wav(audio: np.ndarray, destino: Path) -> None:
263
+ import soundfile as sf
264
+
265
+ destino.parent.mkdir(parents=True, exist_ok=True)
266
+ parcial = destino.with_name(destino.name + ".part.wav")
267
+ sf.write(str(parcial), audio, SR, subtype="PCM_16")
268
+ parcial.replace(destino)
269
+
270
+
271
+ def generar_sfx(prompt: object, duracion: object, semilla: object, salida: Path,
272
+ fabrica: Callable[[], Modelo] = StableAudioTflite) -> Resultado:
273
+ """Genera (o toma de la caché) un SFX y lo deja en `salida` (WAV estéreo 44.1 kHz, 16 bits)."""
274
+ prompt, duracion, semilla = validar(prompt, duracion, semilla)
275
+ clave = clave_cache(prompt, duracion, semilla)
276
+ cache = dir_cache() / "sfx-generado" / f"{clave}.wav"
277
+ t0 = time.time()
278
+ if cache.is_file():
279
+ salida.parent.mkdir(parents=True, exist_ok=True)
280
+ shutil.copyfile(cache, salida)
281
+ log(f"SFX «{prompt}» {duracion} s semilla {semilla}: caché")
282
+ return Resultado(salida, prompt, duracion, semilla, time.time() - t0, True, clave)
283
+ modelo = fabrica()
284
+ t1 = time.time()
285
+ audio = terminar(modelo.generar(prompt, duracion, semilla), duracion)
286
+ escribir_wav(audio, cache)
287
+ salida.parent.mkdir(parents=True, exist_ok=True)
288
+ shutil.copyfile(cache, salida)
289
+ avisos = []
290
+ if float(np.abs(audio).max(initial=0.0)) < 1e-4:
291
+ avisos.append("el modelo devolvió silencio; prueba otra semilla o un prompt más concreto")
292
+ log(f"SFX «{prompt}» {duracion} s semilla {semilla}: {time.time() - t1:.2f} s (carga {t1 - t0:.2f} s)")
293
+ return Resultado(salida, prompt, duracion, semilla, time.time() - t0, False, clave, avisos)
package/motor/uv.lock CHANGED
@@ -30,6 +30,43 @@ overrides = [
30
30
  { name = "opencv-python", marker = "sys_platform == 'never'" },
31
31
  ]
32
32
 
33
+ [[package]]
34
+ name = "ai-edge-litert"
35
+ version = "2.4.0"
36
+ source = { registry = "https://pypi.org/simple" }
37
+ dependencies = [
38
+ { name = "backports-strenum" },
39
+ { name = "flatbuffers" },
40
+ { name = "ml-dtypes" },
41
+ { name = "numpy", version = "2.4.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" },
42
+ { name = "numpy", version = "2.5.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" },
43
+ { name = "protobuf" },
44
+ { name = "tqdm" },
45
+ { name = "typing-extensions" },
46
+ ]
47
+ wheels = [
48
+ { url = "https://files.pythonhosted.org/packages/e9/05/339834da3eb83ce73fb845bdda857f0e9edd2d2d4db614ca5c06649e3967/ai_edge_litert-2.4.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:268259f12fdca9764269c0bcb32dedd4c4e7fa610636709db19e87653fb5d481", size = 9890258, upload-time = "2026-11-20T20:13:28.904Z" },
49
+ { url = "https://files.pythonhosted.org/packages/4e/b5/4bd9fd96a075bbfec1340d18bee3468731800eab15166fe470e0a8b30f0a/ai_edge_litert-2.4.0-cp311-cp311-manylinux_2_27_aarch64.whl", hash = "sha256:de4714f9a20ddd876b43301b5f125ea32427f4704fb9163de8fb30ed7ebcd20f", size = 16434971, upload-time = "2026-11-20T20:08:34.039Z" },
50
+ { url = "https://files.pythonhosted.org/packages/86/97/718f72a7b325a1a2af202ed5ce6468cb93f7c47028f1c8c4cf2988829977/ai_edge_litert-2.4.0-cp311-cp311-manylinux_2_27_x86_64.whl", hash = "sha256:a3066a45353e92d0c28689e2268a31637af9891baf71e3f44ad75cdf16198b4f", size = 20971690, upload-time = "2026-11-20T20:00:17.52Z" },
51
+ { url = "https://files.pythonhosted.org/packages/21/af/ab40ebb05dfff95e76988232121bbfb5ee53e76e97ac0bf1f21050df49e7/ai_edge_litert-2.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:0f6dced01f9affb32d19197773f5aafb8b04d8619239c69cde92989cd2a84ec2", size = 18582224, upload-time = "2026-11-20T19:48:09.106Z" },
52
+ { url = "https://files.pythonhosted.org/packages/d3/e0/21b3ce2435dfb8ece44786e5a6f1c4857afee3e6adf210475178d148b05e/ai_edge_litert-2.4.0-cp311-cp311-win_arm64.whl", hash = "sha256:2939ab5361b002aebb093dcd0c72c2f1e77807460176dd80a3f8f0622536a4bb", size = 9840727, upload-time = "2026-11-20T19:48:11.092Z" },
53
+ { url = "https://files.pythonhosted.org/packages/8b/f0/ec5cb55aae6b6065029548e6a1d9cb8cb6d7c01f2eb275573b86a954db66/ai_edge_litert-2.4.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:34320266cf76c374aa7f2776120cd15a9c4ae8cb810f99d0ef1bb619594c1e14", size = 9894442, upload-time = "2026-11-20T20:13:30.62Z" },
54
+ { url = "https://files.pythonhosted.org/packages/03/7e/3887c67fa5235373f22fbe6ebf5378a68c3d6547441776b5654e8f8dff21/ai_edge_litert-2.4.0-cp312-cp312-manylinux_2_27_aarch64.whl", hash = "sha256:575ff9fdd7fcdda0fe8b79f26bcc08dca2b98395d41d1b59771f87eda01bc6f0", size = 16436115, upload-time = "2026-11-20T20:08:36.333Z" },
55
+ { url = "https://files.pythonhosted.org/packages/4b/a9/87d838fbc6f9e4059158b92d3e6e355838af8ca14938d872c6b4d94b352b/ai_edge_litert-2.4.0-cp312-cp312-manylinux_2_27_x86_64.whl", hash = "sha256:1ad7b17c7fd0267db96a58d48ae09c7a39738c181a3f23c414b5cb0555f9ee47", size = 20978447, upload-time = "2026-11-20T20:00:19.928Z" },
56
+ { url = "https://files.pythonhosted.org/packages/f8/2b/aa32ea0d84b5c1f03013ea8558a45c6759bef80150276e685942eb07f08b/ai_edge_litert-2.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:c96479e4fd791976e68d1985db655e293e6e5492a19e1863ed0c9a2223287acc", size = 18583489, upload-time = "2026-11-20T19:48:13.008Z" },
57
+ { url = "https://files.pythonhosted.org/packages/b7/a1/acdc92410e0a3b51b9a88e46fc49b28e1e7d87f2211d7f5b436444e40413/ai_edge_litert-2.4.0-cp312-cp312-win_arm64.whl", hash = "sha256:d26b9b68e82a0b18c6003dc6ce0ac39e243c34bf06bdcdc33cf85fd8de6ea8a1", size = 9842479, upload-time = "2026-11-20T19:48:14.985Z" },
58
+ { url = "https://files.pythonhosted.org/packages/c3/16/e93f739dde7a2ef28ddbeac6b57298a65cf1dad11080eab371d62341adb8/ai_edge_litert-2.4.0-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:cbc7cf7fa714ebc22d4173b66c8dbac39225aecdfbb4de06039393762d910778", size = 9895251, upload-time = "2026-11-20T20:13:32.31Z" },
59
+ { url = "https://files.pythonhosted.org/packages/19/fc/04e2d36606082aa884bb97c57a0768a37d5b7eb7c81e8eb767ade9158e9e/ai_edge_litert-2.4.0-cp313-cp313-manylinux_2_27_aarch64.whl", hash = "sha256:8b4b2ac6e9a79bf67f78d43d984791af41ff7cc92fc876eb1101ba675c35346f", size = 16436397, upload-time = "2026-11-20T20:08:38.327Z" },
60
+ { url = "https://files.pythonhosted.org/packages/34/e3/1c98dc5ab5967caf344b5d95d47b49c6f5ed470ec4b1b6731ae1d349a6ad/ai_edge_litert-2.4.0-cp313-cp313-manylinux_2_27_x86_64.whl", hash = "sha256:a6247e9f95b750e602634de6376e106db5d059dff5353dfe7ca8fef52c9bea15", size = 20978439, upload-time = "2026-11-20T20:00:22.443Z" },
61
+ { url = "https://files.pythonhosted.org/packages/9a/55/f85c79887efde68479a6183dc2f7f82b39a5685affc96047e692a15835f2/ai_edge_litert-2.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:fd751c98b0ce57b30ad07de41b048d8c8981efa7a8137d21ca4f7f0807bf08cd", size = 18583446, upload-time = "2026-11-20T19:48:16.769Z" },
62
+ { url = "https://files.pythonhosted.org/packages/22/29/3738ea468852cac7d4c51e9765f667614588053d6e818bdee5a5a0df5e62/ai_edge_litert-2.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:c2d7bbb6934b8c382121931898add6996f22ec1d526f7de9284e1d55d9ca201f", size = 9842179, upload-time = "2026-11-20T19:48:18.535Z" },
63
+ { url = "https://files.pythonhosted.org/packages/11/9b/1217bb9fe9c1a1ce95812e6c058a0d389186f2c6daab7f89d2909fad08a3/ai_edge_litert-2.4.0-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:df9308cf3c7b84c94bdbbf95f7b7a19b5ad73b55284f24a509ffd6b61e19dbb3", size = 9894259, upload-time = "2026-11-20T20:13:34.103Z" },
64
+ { url = "https://files.pythonhosted.org/packages/17/62/3b2a4794972648c773865d22d137a2fa21d762c128ae248e66ce34af3e0d/ai_edge_litert-2.4.0-cp314-cp314-manylinux_2_27_aarch64.whl", hash = "sha256:c2742eab703412c0c4613cffde6839ed52e8142ad8ebd15abf4f372707eecee9", size = 16436839, upload-time = "2026-11-20T20:08:40.412Z" },
65
+ { url = "https://files.pythonhosted.org/packages/4b/8d/ebaf9abf82b0b81c49384ba2efc9f24d4f2edf13741558bfe0740416ccfc/ai_edge_litert-2.4.0-cp314-cp314-manylinux_2_27_x86_64.whl", hash = "sha256:bed92cb7e7a13d4856049b254207057287b9bf1c761466870cb8348fa9f676ad", size = 20978662, upload-time = "2026-11-20T20:00:24.848Z" },
66
+ { url = "https://files.pythonhosted.org/packages/b2/78/2b166fcbc96d2ce661b890e8e9a113b14e51f5dfc65197e6d58a3fd17dd1/ai_edge_litert-2.4.0-cp314-cp314-win_amd64.whl", hash = "sha256:939ec56b86d7d2bfb6714810c9a252e833f02f5e062355d378cb61c42278eda7", size = 19237787, upload-time = "2026-11-20T19:48:20.515Z" },
67
+ { url = "https://files.pythonhosted.org/packages/61/f5/c89755213bbf3054cb55a0ee215eb4d3f102b3874813d6bc47ed0db8700c/ai_edge_litert-2.4.0-cp314-cp314-win_arm64.whl", hash = "sha256:8a854943ec55cd3c41e63f2794606afa07750389958eab57875edc2add841f68", size = 10180428, upload-time = "2026-11-20T19:48:22.488Z" },
68
+ ]
69
+
33
70
  [[package]]
34
71
  name = "annotated-doc"
35
72
  version = "0.0.7"
@@ -214,6 +251,15 @@ wheels = [
214
251
  { url = "https://files.pythonhosted.org/packages/60/4e/d96cc9fff457069c52754f63151a0340cb4886330d58e09061f203696b60/av-19.0.2-cp314-cp314t-win_arm64.whl", hash = "sha256:0e425d631510ca21e47c58f3837a9dceae0453c24e926408c8a12b95239cbbd6", size = 21916888, upload-time = "2026-10-21T03:45:27.298Z" },
215
252
  ]
216
253
 
254
+ [[package]]
255
+ name = "backports-strenum"
256
+ version = "1.3.1"
257
+ source = { registry = "https://pypi.org/simple" }
258
+ sdist = { url = "https://files.pythonhosted.org/packages/35/c7/2ed54c32fed313591ffb21edbd48db71e68827d43a61938e5a0bc2b6ec91/backports_strenum-1.3.1.tar.gz", hash = "sha256:77c52407342898497714f0596e86188bb7084f89063226f4ba66863482f42414", size = 7257, upload-time = "2023-12-09T14:36:40.937Z" }
259
+ wheels = [
260
+ { url = "https://files.pythonhosted.org/packages/d6/50/56cf20e2ee5127b603b81d5a69580a1a325083e2b921aa8f067da83927c0/backports_strenum-1.3.1-py3-none-any.whl", hash = "sha256:cdcfe36dc897e2615dc793b7d3097f54d359918fc448754a517e6f23044ccf83", size = 8304, upload-time = "2023-12-09T14:36:39.905Z" },
261
+ ]
262
+
217
263
  [[package]]
218
264
  name = "brotli"
219
265
  version = "1.2.1"
@@ -634,9 +680,10 @@ wheels = [
634
680
 
635
681
  [[package]]
636
682
  name = "claqueta-motor"
637
- version = "0.24.0"
683
+ version = "0.25.0"
638
684
  source = { editable = "." }
639
685
  dependencies = [
686
+ { name = "ai-edge-litert" },
640
687
  { name = "faster-whisper" },
641
688
  { name = "kokoro-onnx" },
642
689
  { name = "numpy", version = "2.4.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" },
@@ -644,6 +691,7 @@ dependencies = [
644
691
  { name = "opencv-python-headless" },
645
692
  { name = "pydantic" },
646
693
  { name = "rapidocr" },
694
+ { name = "sentencepiece" },
647
695
  { name = "soundfile" },
648
696
  { name = "vtracer" },
649
697
  ]
@@ -673,6 +721,7 @@ dev = [
673
721
 
674
722
  [package.metadata]
675
723
  requires-dist = [
724
+ { name = "ai-edge-litert", specifier = ">=2.4.0" },
676
725
  { name = "chatterbox-tts", marker = "extra == 'clonacion'", specifier = "==0.1.7" },
677
726
  { name = "faster-whisper", specifier = ">=1.1.0" },
678
727
  { name = "huggingface-hub", marker = "extra == 'clonacion'", specifier = ">=0.30" },
@@ -682,6 +731,7 @@ requires-dist = [
682
731
  { name = "pydantic", specifier = ">=2.7" },
683
732
  { name = "rapidocr", specifier = "==3.10.0" },
684
733
  { name = "safetensors", marker = "extra == 'clonacion'", specifier = ">=0.5.3" },
734
+ { name = "sentencepiece", specifier = ">=0.2.0" },
685
735
  { name = "setuptools", marker = "extra == 'clonacion'", specifier = "<81" },
686
736
  { name = "soundfile", specifier = ">=0.12" },
687
737
  { name = "torch", marker = "python_full_version >= '3.14' and sys_platform == 'linux' and extra == 'clonacion'", specifier = ">=2.9.0", index = "https://download.pytorch.org/whl/cpu" },
@@ -3106,6 +3156,49 @@ wheels = [
3106
3156
  { url = "https://files.pythonhosted.org/packages/6a/23/8146aad7d88f4fcb3a6218f41a60f6c2d4e3a72de72da1825dc7c8f7877c/semantic_version-2.10.0-py2.py3-none-any.whl", hash = "sha256:de78a3b8e0feda74cabc54aab2da702113e33ac9d9eb9d2389bcf1f58b7d9177", size = 15552, upload-time = "2022-05-26T13:35:21.206Z" },
3107
3157
  ]
3108
3158
 
3159
+ [[package]]
3160
+ name = "sentencepiece"
3161
+ version = "0.2.3"
3162
+ source = { registry = "https://pypi.org/simple" }
3163
+ sdist = { url = "https://files.pythonhosted.org/packages/54/83/0664683546ffca8e36653d39d6217c361d931953f40ce28210b56927a9b6/sentencepiece-0.2.3.tar.gz", hash = "sha256:21618ad31f0453a1ebf5ec58defed99758d54af0b670546ecac639ddd8b86fbd", size = 3751846, upload-time = "2026-11-05T05:38:22.108Z" }
3164
+ wheels = [
3165
+ { url = "https://files.pythonhosted.org/packages/37/fa/02579970d01a0e92619967c7c2401839e3f3806fb1852d3bb8ae0e7013c2/sentencepiece-0.2.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6b94ccd8554338970e1d73959a7e3ed4d110a60dab95d459990b30a508fa0998", size = 1426225, upload-time = "2026-11-05T05:35:44.624Z" },
3166
+ { url = "https://files.pythonhosted.org/packages/c2/4f/6db415ccb1d9508becda7e56092f63f24972dea0605fe94a8c1d9d4b5075/sentencepiece-0.2.3-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:855b047e02fb9c7aae2f673f5c1adbd42a4a0e8ce77e5090d14ff26f9282749d", size = 1626383, upload-time = "2026-11-05T05:35:50.398Z" },
3167
+ { url = "https://files.pythonhosted.org/packages/0f/90/7a01161697ff2a6dc1968a735b7ea7fefd7eb09827d90242923ff76e33fd/sentencepiece-0.2.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:141dc0bef1e28a5cf7e41c8354ad6cc14525758278045286dcb5429b9906d39f", size = 1713961, upload-time = "2026-11-05T05:35:54.276Z" },
3168
+ { url = "https://files.pythonhosted.org/packages/c1/ed/8c25ed68a0e9380813f880b0bc3d986f232191e0989d035253c8deb8cfbf/sentencepiece-0.2.3-cp311-cp311-win_amd64.whl", hash = "sha256:a01e76cf49a0c1abc527c4e5fd6d3a87a3139a1d3ad2d5761567179a70805cce", size = 1653925, upload-time = "2026-11-05T05:35:59.379Z" },
3169
+ { url = "https://files.pythonhosted.org/packages/c8/6b/939dca65c0eee57be23a01c35b0264656dddf3b2fa60b0af8051dd548464/sentencepiece-0.2.3-cp311-cp311-win_arm64.whl", hash = "sha256:ec5c6a53f9f7adfe6e7f62b12696280632c0da2352a696b436ae4152f72ff706", size = 1866592, upload-time = "2026-11-05T05:36:04.684Z" },
3170
+ { url = "https://files.pythonhosted.org/packages/f8/a9/8dbb891f51a80f1f47afa3d5336b165e269c4fa87f47b7fba6fc34a4a6a0/sentencepiece-0.2.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9b39b16b889c9d3be4f00f1a0a4283ee81ad8af745d48023e5ab18c724019c08", size = 1426879, upload-time = "2026-11-05T05:36:08.906Z" },
3171
+ { url = "https://files.pythonhosted.org/packages/31/26/fb6572cc96090953051089f8e4260a455b6b0c7378bb06fb87725224ce61/sentencepiece-0.2.3-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a6b735a8027b998c163e540fdde66ac0bb95fc471f6f4165c8df35fb45385116", size = 1627109, upload-time = "2026-11-05T05:36:13.057Z" },
3172
+ { url = "https://files.pythonhosted.org/packages/51/72/42952e5b9f254aa2952c04360b38ed614ca4f5600ee2b0cf8e1c0f6661c5/sentencepiece-0.2.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cc3189b79c1ffda767f71b04238c27ac746f3b7abc263eab9a41c4cf46aee49e", size = 1716727, upload-time = "2026-11-05T05:36:17.199Z" },
3173
+ { url = "https://files.pythonhosted.org/packages/b5/78/47be22c27976afed9f88cb9bcdb225abb37991c1ff442a9234e64e7a3d23/sentencepiece-0.2.3-cp312-cp312-win_amd64.whl", hash = "sha256:972af959c63cde446210a8935524806820c253afa4b0a97d83c206b857085f44", size = 1655435, upload-time = "2026-11-05T05:36:21.633Z" },
3174
+ { url = "https://files.pythonhosted.org/packages/e4/5c/6f921049ef4136e360437d370396ac36b927ce1be0184ddbeca50581580d/sentencepiece-0.2.3-cp312-cp312-win_arm64.whl", hash = "sha256:ceaf9a73f7e1672990547e8efe5bb79ea61884a8fe24600662d12e3a8aaf1a5b", size = 1860800, upload-time = "2026-11-05T05:36:26.727Z" },
3175
+ { url = "https://files.pythonhosted.org/packages/4e/86/7ccc32fa2059e6d9217e31fe6d502dcb24a5760013f850292f59b85dc115/sentencepiece-0.2.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:80fe42d6ecd3860ee43327de31687f222af8e93f7d66e248d241cf9a0466eb73", size = 1426935, upload-time = "2026-11-05T05:36:31.447Z" },
3176
+ { url = "https://files.pythonhosted.org/packages/bb/31/a06474a3e0dc8366873fd10b7bbf690b9ad9b00603e02e5f14a370c74ed3/sentencepiece-0.2.3-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dfc31f9f133a2712d396efa94d666c2ad83d5611ce34f11339429c6831253014", size = 1627113, upload-time = "2026-11-05T05:36:36.653Z" },
3177
+ { url = "https://files.pythonhosted.org/packages/8f/7e/78634050dcac5c3a6aedd6c315b83ce6bd466ccebf68f31a57d8d5655900/sentencepiece-0.2.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4d82f2a0f704f5d0cf027bc8cc5ad49e23c11a9cc0b5bd08ca51985917963bf5", size = 1717008, upload-time = "2026-11-05T05:36:40.505Z" },
3178
+ { url = "https://files.pythonhosted.org/packages/a3/39/41b3c56beb8ced46bfb346a638ca588741fcd10b6e1143d9143787e1c66d/sentencepiece-0.2.3-cp313-cp313-win_amd64.whl", hash = "sha256:84e9def430ca8cc848b84adb304ffb77bff151cfc7dc66eb881f0385258f536b", size = 1655543, upload-time = "2026-11-05T05:36:49.566Z" },
3179
+ { url = "https://files.pythonhosted.org/packages/00/18/12f01c575ea8afaa459959b9f71175c2caa9268639defe367db6d66a89bf/sentencepiece-0.2.3-cp313-cp313-win_arm64.whl", hash = "sha256:01e62cf99d3af7950cff04986c7e58dd4cd376fcf2367cd1c5314182d5f4adc5", size = 1860989, upload-time = "2026-11-05T05:36:56.342Z" },
3180
+ { url = "https://files.pythonhosted.org/packages/a7/5b/267e83f3990d0ef941141cb1bb9d0ed4c595623bb07ee5d78ee78aa05ee4/sentencepiece-0.2.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ba4dfdbb2972e42d01ad32fe03788717e94d92830f981b7895835e65bfe92b2c", size = 1428246, upload-time = "2026-11-05T05:37:00.418Z" },
3181
+ { url = "https://files.pythonhosted.org/packages/6b/79/918626ea30fe00370ae34ed297189d5572a7b190019ee565074ad2d249d5/sentencepiece-0.2.3-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9f77802993eb51a08e856278f73894615b9a6cc3244857fcf962bc657578f591", size = 1627519, upload-time = "2026-11-05T05:37:03.846Z" },
3182
+ { url = "https://files.pythonhosted.org/packages/ad/b3/4269e1c4494b9a17ed6d11a072b3ae52786eac9084bb5c18cdfa9434b5a5/sentencepiece-0.2.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22dce81a65b8a1819eef9fef4970d6581ea0cbde7f58fbbbb42521535eba15e2", size = 1716877, upload-time = "2026-11-05T05:37:09.708Z" },
3183
+ { url = "https://files.pythonhosted.org/packages/10/5f/54ded99266afba048f53d7cd0f6383178172415005dff5f298cb13786145/sentencepiece-0.2.3-cp314-cp314-win_amd64.whl", hash = "sha256:0d1235ccd36c3e8c2021355258b47866c694a55003a89f00701c513eac1aef06", size = 1774639, upload-time = "2026-11-05T05:37:16.075Z" },
3184
+ { url = "https://files.pythonhosted.org/packages/4d/42/97d3e65a74a4a68a2b1ee15ab7fd1af21258edafbbc2213388526835cb8a/sentencepiece-0.2.3-cp314-cp314-win_arm64.whl", hash = "sha256:39ce776c5564192c4361085f10cfe3f1bcc0749feab314060b2bbb4244266dec", size = 1991285, upload-time = "2026-11-05T05:37:22.026Z" },
3185
+ { url = "https://files.pythonhosted.org/packages/8a/40/e55b496924e55f954d4ae4988785728ec514d543cbf650be0eb4eaf076b3/sentencepiece-0.2.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5ea5e9c9b40bb7e9ff64151071ab04365890da2e1edaa1d7e1a131ffdb735509", size = 1443058, upload-time = "2026-11-05T05:37:25.666Z" },
3186
+ { url = "https://files.pythonhosted.org/packages/05/7a/e0fab6eb0b0488943ccb620f12c18e5bdcc7a3d1ddd868b2232519ec0c70/sentencepiece-0.2.3-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e64c49a30001245702035aba15ff3833895d3598228dd9f980df3d146dc4fd33", size = 1628592, upload-time = "2026-11-05T05:37:29.31Z" },
3187
+ { url = "https://files.pythonhosted.org/packages/03/14/bf300d47736e8cd161bbbb0fb39a36e52d3043f26b3316f811cb0df39a18/sentencepiece-0.2.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2e39d12eead4e417a6a2e852305f890fd7f09bf48b2577a4e336285ae24439ab", size = 1717251, upload-time = "2026-11-05T05:37:33.756Z" },
3188
+ { url = "https://files.pythonhosted.org/packages/e2/19/070292b72b2aba95e8c18aec301d978dcc23c6b518f08e76223aee612f02/sentencepiece-0.2.3-cp314-cp314t-win_amd64.whl", hash = "sha256:deba7b85448bf4cfabf2e097f3d42e51a45ba5d531421f28fefecf542e0aa9d5", size = 1783555, upload-time = "2026-11-05T05:37:39.468Z" },
3189
+ { url = "https://files.pythonhosted.org/packages/94/01/15194c03a2ea0171ab08e5f7c3f8977ef310f81ea09feb84ca2b9674d389/sentencepiece-0.2.3-cp314-cp314t-win_arm64.whl", hash = "sha256:7e9cd3b7229da250c8988e46dc29ae339147d463ab50e1fb697bc59d02880cc1", size = 2003342, upload-time = "2026-11-05T05:37:44.521Z" },
3190
+ { url = "https://files.pythonhosted.org/packages/c7/f8/02dc219a545896743edbb0bc60dd7e48fbb1cc96d9299a870b5fca0014ea/sentencepiece-0.2.3-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:0ef20da5e56faff98bfcd1eb78c9abedc10253035051ab34e0c4be22734390ef", size = 1428565, upload-time = "2026-11-05T05:37:47.676Z" },
3191
+ { url = "https://files.pythonhosted.org/packages/26/b3/425151b9086b8814f070e954b3ac94f6899df8e26091769fb26b6ff2b2cc/sentencepiece-0.2.3-cp315-cp315-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e55cea81a9e68ee3bd119ca530225cbf1f4ac46bf35604c8aa677bfd5055bc7c", size = 1627637, upload-time = "2026-11-05T05:37:51.297Z" },
3192
+ { url = "https://files.pythonhosted.org/packages/83/28/916674d1b5d3edfc5c8b6dbcda94b8898f81cbd082b182e44bbccd5dfe05/sentencepiece-0.2.3-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:016218e381da4c492323f2d7959012338795a2fb2dfccf14a2bc421c1b040612", size = 1717507, upload-time = "2026-11-05T05:37:54.694Z" },
3193
+ { url = "https://files.pythonhosted.org/packages/2f/b4/2d823ad807db17bfde7b4349113617cbad6514cb30de6afa74db1563609f/sentencepiece-0.2.3-cp315-cp315-win_amd64.whl", hash = "sha256:b3dcda6a6eaa297db9e595d1d59a0ca4127ff01af573a24f2665a938c14b9e2a", size = 1774642, upload-time = "2026-11-05T05:37:58.306Z" },
3194
+ { url = "https://files.pythonhosted.org/packages/11/d0/1ea6fae967b746d907162b3459c67024a0fe0f686c17143372eb455e45df/sentencepiece-0.2.3-cp315-cp315-win_arm64.whl", hash = "sha256:a0a75095caa5d4ac208dd8d1c051dd78fa7dbdb3b62d2aae86986b678324f759", size = 1991240, upload-time = "2026-11-05T05:38:02.098Z" },
3195
+ { url = "https://files.pythonhosted.org/packages/ee/7d/c39a28a48d7545b0dc4ef4cf46d15dc408c49f44c8ad7b27e3fc9abed756/sentencepiece-0.2.3-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:2b79f0bbd03ca46ae117595c830eef17bc31a00c566f3b7be3b5f03d51efda3a", size = 1443110, upload-time = "2026-11-05T05:38:05.342Z" },
3196
+ { url = "https://files.pythonhosted.org/packages/0b/5d/e16c2d83f20e904fc8b7572d7694456a5836bbc3b4b089122e15d89ab191/sentencepiece-0.2.3-cp315-cp315t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d8dd43abf868aa70508d463709812250266aa3f2e4bd4c3d524a5f7d8c18856e", size = 1628798, upload-time = "2026-11-05T05:38:08.705Z" },
3197
+ { url = "https://files.pythonhosted.org/packages/db/f6/c9d335834e4dbaf057d778528cc8a9c280edbd8cfc46a1b31c1d13f99bb8/sentencepiece-0.2.3-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5b280042f92596dbbfeae01759578897b49fdf1ac1a24ec8ddd6a3de1f6a996d", size = 1717932, upload-time = "2026-11-05T05:38:12.194Z" },
3198
+ { url = "https://files.pythonhosted.org/packages/ce/c9/9532310b0f0d4a3e30c5606b57b72e4694cfe3d63eb13a7339fa7b2ff1d3/sentencepiece-0.2.3-cp315-cp315t-win_amd64.whl", hash = "sha256:821cd46446d0791df174e7f9e463aa3fc5a923286b98f3509f79bda9992e51cb", size = 1783362, upload-time = "2026-11-05T05:38:14.922Z" },
3199
+ { url = "https://files.pythonhosted.org/packages/ed/02/2d41f5ac76ee221913fd4775ad95da0f4ea47a7e2c66f479cd1f187ac19d/sentencepiece-0.2.3-cp315-cp315t-win_arm64.whl", hash = "sha256:61993a60493c44f8c99a773d2b0f1162cbbab319989ce3fe04ef4130b740397a", size = 2003172, upload-time = "2026-11-05T05:38:18.034Z" },
3200
+ ]
3201
+
3109
3202
  [[package]]
3110
3203
  name = "setuptools"
3111
3204
  version = "80.10.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claqueta-mcp",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
4
4
  "description": "Cliente de Claqueta: puente stdio para el servidor MCP remoto, comando setup y worker de la cola. Úsalo con npx en Claude Desktop o Claude Code.",
5
5
  "type": "module",
6
6
  "bin": {