imean-service-engine 1.4.1 → 1.5.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/mod.cjs CHANGED
@@ -292,8 +292,6 @@ async function formatCode(code) {
292
292
  return code;
293
293
  }
294
294
  }
295
-
296
- // core/generator.ts
297
295
  function getZodTypeString(schema, defaultOptional = false) {
298
296
  function processType(type) {
299
297
  const def = type._def;
@@ -303,6 +301,9 @@ function getZodTypeString(schema, defaultOptional = false) {
303
301
  if (def.typeName === "ZodOptional") {
304
302
  return processType(def.innerType);
305
303
  }
304
+ if (def.typeName === "ZodEffects" && def.schema?._def.typeName !== "ZodAny") {
305
+ return processType(def.schema);
306
+ }
306
307
  switch (def.typeName) {
307
308
  case "ZodString": {
308
309
  return "string";
@@ -310,6 +311,9 @@ function getZodTypeString(schema, defaultOptional = false) {
310
311
  case "ZodNumber": {
311
312
  return "number";
312
313
  }
314
+ case "ZodBigInt": {
315
+ return "bigint";
316
+ }
313
317
  case "ZodBoolean": {
314
318
  return "boolean";
315
319
  }
@@ -1305,9 +1309,8 @@ var ModelContextProtocolPlugin = class extends Plugin {
1305
1309
  action.description ?? "",
1306
1310
  args,
1307
1311
  async (params) => {
1308
- const args2 = Object.values(params);
1309
1312
  const argsList = [];
1310
- for (const [key, value] of Object.entries(args2)) {
1313
+ for (const [key, value] of Object.entries(params)) {
1311
1314
  argsList[argsIndex[key]] = value;
1312
1315
  }
1313
1316
  const result = await engine.getActionHandler(module.name, action.name).handle(argsList);
package/dist/mod.js CHANGED
@@ -283,8 +283,6 @@ async function formatCode(code) {
283
283
  return code;
284
284
  }
285
285
  }
286
-
287
- // core/generator.ts
288
286
  function getZodTypeString(schema, defaultOptional = false) {
289
287
  function processType(type) {
290
288
  const def = type._def;
@@ -294,6 +292,9 @@ function getZodTypeString(schema, defaultOptional = false) {
294
292
  if (def.typeName === "ZodOptional") {
295
293
  return processType(def.innerType);
296
294
  }
295
+ if (def.typeName === "ZodEffects" && def.schema?._def.typeName !== "ZodAny") {
296
+ return processType(def.schema);
297
+ }
297
298
  switch (def.typeName) {
298
299
  case "ZodString": {
299
300
  return "string";
@@ -301,6 +302,9 @@ function getZodTypeString(schema, defaultOptional = false) {
301
302
  case "ZodNumber": {
302
303
  return "number";
303
304
  }
305
+ case "ZodBigInt": {
306
+ return "bigint";
307
+ }
304
308
  case "ZodBoolean": {
305
309
  return "boolean";
306
310
  }
@@ -1296,9 +1300,8 @@ var ModelContextProtocolPlugin = class extends Plugin {
1296
1300
  action.description ?? "",
1297
1301
  args,
1298
1302
  async (params) => {
1299
- const args2 = Object.values(params);
1300
1303
  const argsList = [];
1301
- for (const [key, value] of Object.entries(args2)) {
1304
+ for (const [key, value] of Object.entries(params)) {
1302
1305
  argsList[argsIndex[key]] = value;
1303
1306
  }
1304
1307
  const result = await engine.getActionHandler(module.name, action.name).handle(argsList);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imean-service-engine",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "microservice engine",
5
5
  "keywords": [
6
6
  "microservice",