ponch-mcp-server 1.0.97 → 1.0.98

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/index.js CHANGED
@@ -12625,7 +12625,9 @@ Retorna la foto editada para que la revises. Si no te gusta:
12625
12625
  - Llama de nuevo con prompt ajustado
12626
12626
  - Maximo 3 iteraciones por foto
12627
12627
 
12628
- Si estrategia era 'tal_cual', pasa acciones=['none'] \u2014 no se edita pero si se genera thumbnail y embedding con tus tags.`,
12628
+ Si estrategia era 'tal_cual', pasa acciones=['none'] \u2014 no se edita pero si se genera thumbnail y embedding con tus tags.
12629
+
12630
+ Consume creditos: la primera llamada retorna state=pending_confirmation; pasa confirm=true en la segunda llamada para ejecutar la edicion.`,
12629
12631
  {
12630
12632
  fotoId: import_zod63.z.string(),
12631
12633
  brandId: import_zod63.z.string().optional().describe("Brand identifier (defaults to session brand)"),
@@ -12635,9 +12637,10 @@ Si estrategia era 'tal_cual', pasa acciones=['none'] \u2014 no se edita pero si
12635
12637
  tipo: import_zod63.z.string().nullable().describe("Tipo del catalogoVisual del tenant"),
12636
12638
  tagsPrimarios: import_zod63.z.array(import_zod63.z.string()),
12637
12639
  tagsSecundarios: import_zod63.z.array(import_zod63.z.string()),
12638
- tagsContexto: import_zod63.z.array(import_zod63.z.string())
12640
+ tagsContexto: import_zod63.z.array(import_zod63.z.string()),
12641
+ confirm: import_zod63.z.boolean().optional().describe("Set to true on the re-invocation after the user confirms. Default false. First call returns state=pending_confirmation (consumes credits).")
12639
12642
  },
12640
- async ({ fotoId, brandId: inputBrandId, prompt, acciones, descripcion, tipo, tagsPrimarios, tagsSecundarios, tagsContexto }) => {
12643
+ async ({ fotoId, brandId: inputBrandId, prompt, acciones, descripcion, tipo, tagsPrimarios, tagsSecundarios, tagsContexto, confirm }) => {
12641
12644
  const tenantId = session.requireTenant();
12642
12645
  const brandId = inputBrandId ?? session.requireBrand();
12643
12646
  const executePhotoEditAdapter = async (payload) => {
@@ -12653,7 +12656,7 @@ Si estrategia era 'tal_cual', pasa acciones=['none'] \u2014 no se edita pero si
12653
12656
  });
12654
12657
  return response.data ?? {};
12655
12658
  };
12656
- const ctx = await buildContext(session, brandId);
12659
+ const ctx = await buildContext(session, brandId, { confirmationGranted: confirm === true });
12657
12660
  const dispatchResult = await dispatchWithContract({
12658
12661
  contract: photoDirectorExecuteContract,
12659
12662
  // `lang` resuelto DENTRO del closure helper (solo corre en Modo A).