claqueta-mcp 0.58.0 → 0.60.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.58.0" : "dev";
86
+ var VERSION = true ? "0.60.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:dd3174a33e61e892e41338076e82181d6e6ab02786447d946a9fe7cedd7d4b87";
253
- var IMAGEN_CLONACION_POR_DEFECTO = "public.ecr.aws/v9d5u4i8/claqueta-motor@sha256:a3d58055519cf9f85197308269714e55b87981045e126778bd4cc843b3adf8d9";
254
- var MOTOR_VERSION_POR_DEFECTO = "0.23.0";
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";
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) => {
@@ -10696,6 +10696,7 @@ function argumentosDocker(c, e7, usuario) {
10696
10696
  ...e7.composicionDir ? ["-v", `${e7.composicionDir}:/composicion:ro`] : [],
10697
10697
  ...e7.reutilizarDir ? ["-v", `${e7.reutilizarDir}:/reutilizar:ro`] : [],
10698
10698
  ...e7.versionVideo ? ["-e", `CLAQUETA_VIDEO_VERSION=${e7.versionVideo}`] : [],
10699
+ ...e7.modeloFondo ? ["-e", `CLAQUETA_FONDO_MODELO=${e7.modeloFondo}`] : [],
10699
10700
  c.imagen,
10700
10701
  ...argumentosSubcomando(e7.subcomando ?? "generar", "/pedido/pedido.json", "/salida", e7.composicionDir ? "/composicion" : void 0, e7.muestraSha256, e7.reutilizarDir ? "/reutilizar" : void 0)
10701
10702
  ];
@@ -10730,7 +10731,8 @@ async function ejecutarMotor(c, e7, timeoutMs = c.timeoutMs) {
10730
10731
  const usuario = typeof process.getuid === "function" ? `${process.getuid()}:${process.getgid()}` : void 0;
10731
10732
  prepararCache(c);
10732
10733
  const [bin, args2] = c.comando ? [c.comando, argumentosSubcomando(e7.subcomando ?? "generar", join7(e7.pedidoDir, "pedido.json"), e7.salidaDir, e7.composicionDir, e7.muestraSha256, e7.reutilizarDir)] : ["docker", argumentosDocker(c, e7, usuario)];
10733
- const entorno = c.comando && e7.versionVideo ? { ...c.entornoMotor ?? process.env, CLAQUETA_VIDEO_VERSION: String(e7.versionVideo) } : c.entornoMotor;
10734
+ const extra = { ...e7.versionVideo ? { CLAQUETA_VIDEO_VERSION: String(e7.versionVideo) } : {}, ...e7.modeloFondo ? { CLAQUETA_FONDO_MODELO: e7.modeloFondo } : {} };
10735
+ const entorno = c.comando && Object.keys(extra).length ? { ...c.entornoMotor ?? process.env, ...extra } : c.entornoMotor;
10734
10736
  const hijo = spawn2(
10735
10737
  bin,
10736
10738
  args2,
@@ -14881,8 +14883,17 @@ async function resolverQuitarFondo(c, d, t) {
14881
14883
  await writeFile5(join23(pedidoDir, "pedido.json"), JSON.stringify({ entrada, recortar: t.recortar }));
14882
14884
  const res = await (d.motor ?? ejecutarMotor)(
14883
14885
  c,
14884
- { subcomando: "quitar-fondo", pedidoDir, salidaDir, nombreContenedor: `claqueta-quitar-fondo-${t.id}`.replace(/[^a-zA-Z0-9_.-]/g, "_"), onEvento: () => {
14885
- }, ...d.senal ? { senal: d.senal } : {} },
14886
+ {
14887
+ subcomando: "quitar-fondo",
14888
+ pedidoDir,
14889
+ salidaDir,
14890
+ nombreContenedor: `claqueta-quitar-fondo-${t.id}`.replace(/[^a-zA-Z0-9_.-]/g, "_"),
14891
+ onEvento: () => {
14892
+ },
14893
+ // CLA-296: en una captura de app o web isnet (el modelo por defecto) borra las tarjetas blancas; u2netp las respeta.
14894
+ ...t.tipo === "interfaz" ? { modeloFondo: "u2netp" } : {},
14895
+ ...d.senal ? { senal: d.senal } : {}
14896
+ },
14886
14897
  Math.min(c.timeoutMs, TIMEOUT_FONDO_MS)
14887
14898
  );
14888
14899
  if (res.abortado) return await error2("el worker se detuvo mientras quitaba el fondo");
@@ -1 +1 @@
1
- 0.23.0
1
+ 0.24.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.23.0
34
- export CLAQUETA_MOTOR_IMAGEN=public.ecr.aws/v9d5u4i8/claqueta-motor:0.23.0
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
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
@@ -29,3 +29,7 @@ No son recursos libres: cada set trae sus términos en su carpeta y el motor nun
29
29
  - `emoji:` Fluent Emoji de Microsoft (SVG a color y planos), MIT (`emoji/LICENSE`). CLA-291.
30
30
  - `bandera:` flag-icons 7.6.0, MIT (`bandera/LICENSE`). CLA-291.
31
31
  - `dev:` Devicon 2.18.0, MIT (`dev/LICENSE`); los logos son marcas de sus dueños, solo para identificar. CLA-291.
32
+ - `salud:` Healthicons (healthicons@main), CC0-1.0 (`salud/LICENSE`). CLA-301.
33
+ - `clima:` Meteocons (@meteocons/svg-static@0.1.0), Bas Milius, MIT (`clima/LICENSE`). CLA-301.
34
+ - `lugar:` Maki y Temaki (temaki@5.13.0 maki@8.2.0), CC0-1.0 (`lugar/LICENSE`). CLA-301.
35
+ - `cripto:` cryptocurrency-icons 0.18.1, CC0-1.0; los logos son de sus proyectos, solo para identificar (`cripto/LICENSE`). CLA-301.
@@ -844,6 +844,66 @@
844
844
  "total": 652,
845
845
  "alias": 13,
846
846
  "nota": "Logos de lenguajes y herramientas en sus colores originales: dev:python, dev:react, dev:docker, dev:postgresql… Para un solo color usa marca:. Uso nominativo."
847
+ },
848
+ {
849
+ "id": "salud",
850
+ "prefijo": "salud:",
851
+ "nombre": "Healthicons",
852
+ "autor": "Resolve to Save Lives y comunidad",
853
+ "fuente": "https://healthicons.org",
854
+ "licencia": "CC0-1.0",
855
+ "licencia_archivo": "salud/LICENSE",
856
+ "verificada": "2026-11-25",
857
+ "credito": "Healthicons (CC0)",
858
+ "version": "healthicons@main",
859
+ "total": 1552,
860
+ "alias": 1458,
861
+ "nota": "Salud y medicina en un color (currentColor): órganos, medicamentos, personal médico, equipo, enfermedades, nutrición y ejercicio. Rellenos por defecto; `<nombre>-linea` en contorno. Alias en español: salud:vacuna, salud:corazon, salud:pulmones, salud:doctor, salud:hospital, salud:ambulancia, salud:virus… Se pueden rotar y animar."
862
+ },
863
+ {
864
+ "id": "clima",
865
+ "prefijo": "clima:",
866
+ "nombre": "Meteocons",
867
+ "autor": "Bas Milius",
868
+ "fuente": "https://meteocons.com",
869
+ "licencia": "MIT",
870
+ "licencia_archivo": "clima/LICENSE",
871
+ "verificada": "2026-11-25",
872
+ "credito": "Meteocons, Bas Milius (MIT)",
873
+ "version": "@meteocons/svg-static@0.1.0",
874
+ "total": 519,
875
+ "alias": 48,
876
+ "nota": "Clima y naturaleza a color (estáticos): clima:lluvia, clima:tormenta, clima:nieve, clima:sol, clima:nublado, clima:huracan, clima:arcoiris, clima:termometro, fases de la luna, viento, polen, paneles solares… Se pueden rotar y animar."
877
+ },
878
+ {
879
+ "id": "lugar",
880
+ "prefijo": "lugar:",
881
+ "nombre": "Maki (Mapbox) + Temaki",
882
+ "autor": "Mapbox y Rapid Editor",
883
+ "fuente": "https://github.com/mapbox/maki",
884
+ "licencia": "CC0-1.0",
885
+ "licencia_archivo": "lugar/LICENSE",
886
+ "verificada": "2026-11-25",
887
+ "credito": "Maki (Mapbox) y Temaki (CC0)",
888
+ "version": "temaki@5.13.0 maki@8.2.0",
889
+ "total": 739,
890
+ "alias": 99,
891
+ "nota": "Puntos de interés de mapa en un color (currentColor): lugar:aeropuerto, lugar:hospital, lugar:museo, lugar:estadio, lugar:gasolinera, lugar:restaurante, lugar:escuela, lugar:ubicacion, transporte y deportes. Se pueden rotar y animar."
892
+ },
893
+ {
894
+ "id": "cripto",
895
+ "prefijo": "cripto:",
896
+ "nombre": "cryptocurrency-icons",
897
+ "autor": "spothq",
898
+ "fuente": "https://github.com/spothq/cryptocurrency-icons",
899
+ "licencia": "CC0-1.0",
900
+ "licencia_archivo": "cripto/LICENSE",
901
+ "verificada": "2026-11-25",
902
+ "credito": "cryptocurrency-icons (CC0); logos de sus proyectos",
903
+ "version": "0.18.1",
904
+ "total": 483,
905
+ "alias": 398,
906
+ "nota": "Logos de criptomonedas a color por símbolo o nombre: cripto:btc o cripto:bitcoin, cripto:eth, cripto:usdt, cripto:sol, cripto:doge… Son logos: uso nominativo, no se deforman."
847
907
  }
848
908
  ]
849
909
  }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-present Bas Milius
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.