ponch-mcp-server 1.0.80 → 1.0.81
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 +18 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2530,9 +2530,9 @@ var MartinMemoriaSchema = import_zod21.z.object({
|
|
|
2530
2530
|
status: StatusMemoriaEnum.default("explicito"),
|
|
2531
2531
|
/** Veces que Martin la usó */
|
|
2532
2532
|
aplicacionesCount: import_zod21.z.number().int().nonnegative().default(0),
|
|
2533
|
-
ultimaAplicacionAt: import_zod21.z.string().datetime().nullable().default(null),
|
|
2534
|
-
createdAt: import_zod21.z.string().datetime(),
|
|
2535
|
-
updatedAt: import_zod21.z.string().datetime()
|
|
2533
|
+
ultimaAplicacionAt: import_zod21.z.string().datetime({ offset: true }).nullable().default(null),
|
|
2534
|
+
createdAt: import_zod21.z.string().datetime({ offset: true }),
|
|
2535
|
+
updatedAt: import_zod21.z.string().datetime({ offset: true })
|
|
2536
2536
|
}).strict();
|
|
2537
2537
|
function buildMartinMemoria(input) {
|
|
2538
2538
|
const now2 = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -2609,11 +2609,11 @@ var MartinRutinaSchema = import_zod22.z.object({
|
|
|
2609
2609
|
origen: OrigenRutinaSchema,
|
|
2610
2610
|
status: StatusRutinaEnum.default("activa"),
|
|
2611
2611
|
ejecucionesCount: import_zod22.z.number().int().nonnegative().default(0),
|
|
2612
|
-
ultimaEjecucionAt: import_zod22.z.string().datetime().nullable().default(null),
|
|
2612
|
+
ultimaEjecucionAt: import_zod22.z.string().datetime({ offset: true }).nullable().default(null),
|
|
2613
2613
|
/** Calculado para optimizar query del cron */
|
|
2614
|
-
proximaEjecucionAt: import_zod22.z.string().datetime(),
|
|
2615
|
-
createdAt: import_zod22.z.string().datetime(),
|
|
2616
|
-
updatedAt: import_zod22.z.string().datetime()
|
|
2614
|
+
proximaEjecucionAt: import_zod22.z.string().datetime({ offset: true }),
|
|
2615
|
+
createdAt: import_zod22.z.string().datetime({ offset: true }),
|
|
2616
|
+
updatedAt: import_zod22.z.string().datetime({ offset: true })
|
|
2617
2617
|
}).strict();
|
|
2618
2618
|
function buildMartinRutina(input) {
|
|
2619
2619
|
const now2 = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -16852,24 +16852,17 @@ function registerMartinTools(server, session) {
|
|
|
16852
16852
|
const dst = uidDestinatario ?? ctx.user.uid;
|
|
16853
16853
|
const result = await dispatchWithContract({
|
|
16854
16854
|
contract: programarRutinaContract,
|
|
16855
|
-
helper: async (parsed) => {
|
|
16856
|
-
|
|
16857
|
-
|
|
16858
|
-
|
|
16859
|
-
|
|
16860
|
-
|
|
16861
|
-
|
|
16862
|
-
|
|
16863
|
-
|
|
16864
|
-
|
|
16865
|
-
|
|
16866
|
-
});
|
|
16867
|
-
console.error(
|
|
16868
|
-
"[programar_rutina] createRutina output:",
|
|
16869
|
-
JSON.stringify(out)
|
|
16870
|
-
);
|
|
16871
|
-
return out;
|
|
16872
|
-
},
|
|
16855
|
+
helper: async (parsed) => createRutina({
|
|
16856
|
+
db: parsed.db,
|
|
16857
|
+
tenantId: parsed.tenantId,
|
|
16858
|
+
uidCreador: parsed.uid,
|
|
16859
|
+
uidDestinatario: parsed.uidDestinatario,
|
|
16860
|
+
tipo: parsed.tipo,
|
|
16861
|
+
frecuencia: parsed.frecuencia,
|
|
16862
|
+
config: parsed.config,
|
|
16863
|
+
accion: parsed.accion,
|
|
16864
|
+
origen: parsed.origen
|
|
16865
|
+
}),
|
|
16873
16866
|
callable: callProgramarRutina,
|
|
16874
16867
|
input: { tenantId: ctx.tenantId, uid: ctx.user.uid, uidDestinatario: dst, tipo, frecuencia, config, accion, origen },
|
|
16875
16868
|
ctx
|