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 +1 -1
- package/dist/types/util_response.d.ts +3 -2
- package/package.json +1 -1
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
|
|
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
|
|
23
|
+
interface ErrorData {
|
|
23
24
|
success?: boolean;
|
|
24
25
|
code?: string | number;
|
|
25
26
|
message: string;
|
package/package.json
CHANGED