modality-kit 0.13.0 → 0.13.2

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
@@ -208,10 +208,11 @@ function withErrorHandling(fn, operation) {
208
208
  // src/util_response.ts
209
209
  function formatSuccessResponse(content, meta) {
210
210
  const { instructions, ...restContent } = content;
211
+ const otherContent = JSON.parse(JSON.stringify(restContent || {}));
211
212
  return JSON.stringify({
212
213
  success: true,
213
214
  instructions,
214
- content: Object.keys(restContent || {}).length ? restContent : undefined,
215
+ content: Object.keys(otherContent || {}).length ? otherContent : undefined,
215
216
  meta
216
217
  });
217
218
  }
@@ -19,7 +19,7 @@ export interface McpErrorResponse {
19
19
  }
20
20
  interface SuccessData extends Record<string, any> {
21
21
  message?: string;
22
- instructions?: string | string[];
22
+ instructions?: string | Record<string, any>[];
23
23
  }
24
24
  /**
25
25
  * Generic error data interface for MCP error responses
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.13.0",
2
+ "version": "0.13.2",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",