@elisym/mcp 0.8.13 → 0.8.14

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
@@ -1167,6 +1167,7 @@ function sanitizeField(input, maxLen) {
1167
1167
  }
1168
1168
  var CUSTOMER_HISTORY_FILENAME = ".customer-history.json";
1169
1169
  var MAX_HISTORY_ENTRIES = 500;
1170
+ var RESULT_PREVIEW_MAX_LEN = 1e4;
1170
1171
  var StatusSchema = z.enum(["completed", "failed", "timeout"]);
1171
1172
  var FeedbackSchema = z.enum(["positive", "negative"]);
1172
1173
  var CustomerJobEntrySchema = z.object({
@@ -1179,7 +1180,7 @@ var CustomerJobEntrySchema = z.object({
1179
1180
  status: StatusSchema,
1180
1181
  submittedAt: z.number().int().nonnegative(),
1181
1182
  completedAt: z.number().int().nonnegative(),
1182
- resultPreview: z.string().max(500).optional(),
1183
+ resultPreview: z.string().max(RESULT_PREVIEW_MAX_LEN).optional(),
1183
1184
  paymentSig: z.string().max(128).optional(),
1184
1185
  customerFeedback: FeedbackSchema.optional()
1185
1186
  }).strict();
@@ -1856,7 +1857,7 @@ ${sanitized.text}`);
1856
1857
  status: "completed",
1857
1858
  submittedAt,
1858
1859
  completedAt: Date.now(),
1859
- resultPreview: result.slice(0, 500),
1860
+ resultPreview: result.slice(0, RESULT_PREVIEW_MAX_LEN),
1860
1861
  paymentSig
1861
1862
  });
1862
1863
  const warningBlock = paymentWarnings.length > 0 ? `${paymentWarnings.join("\n")}
@@ -2015,7 +2016,7 @@ ${sanitized.text}`
2015
2016
  status: "completed",
2016
2017
  submittedAt,
2017
2018
  completedAt: Date.now(),
2018
- resultPreview: result.slice(0, 500),
2019
+ resultPreview: result.slice(0, RESULT_PREVIEW_MAX_LEN),
2019
2020
  paymentSig
2020
2021
  });
2021
2022
  const warningBlock = paymentWarnings.length > 0 ? `${paymentWarnings.join("\n")}