modality-kit 0.15.0 → 0.15.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
@@ -60,7 +60,7 @@ function mergeResponsesContent(content) {
60
60
  function formatSuccessResponse(successData, content) {
61
61
  const data = structuredClone(successData);
62
62
  const result = {
63
- isError: false,
63
+ isError: successData.success != null ? !successData.success : false,
64
64
  content: [
65
65
  {
66
66
  type: "text",
@@ -12,14 +12,15 @@ export interface McpErrorResponse {
12
12
  reason?: string;
13
13
  meta?: Record<string, any>;
14
14
  }
15
- interface SuccessData extends Record<string, any> {
15
+ interface SuccessData {
16
+ success?: boolean;
16
17
  message?: string;
17
18
  instructions?: string | any[];
18
19
  }
19
20
  /**
20
21
  * Generic error data interface for MCP error responses
21
22
  */
22
- interface ErrorData extends Record<string, any> {
23
+ interface ErrorData {
23
24
  success?: boolean;
24
25
  code?: string | number;
25
26
  message: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.15.0",
2
+ "version": "0.15.2",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",