mimi-seed 0.4.2 → 0.4.3
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.
|
@@ -16,6 +16,16 @@ async function mcpCall(endpoint, token, name, args) {
|
|
|
16
16
|
params: { name, arguments: args }
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
|
+
if (!res.ok) {
|
|
20
|
+
const raw = await res.text();
|
|
21
|
+
let msg = raw;
|
|
22
|
+
try {
|
|
23
|
+
const parsed = JSON.parse(raw);
|
|
24
|
+
if (typeof parsed.error === "string") msg = parsed.error;
|
|
25
|
+
} catch {
|
|
26
|
+
}
|
|
27
|
+
return { text: `HTTP ${res.status}: ${msg}`, isError: true };
|
|
28
|
+
}
|
|
19
29
|
const contentType = res.headers.get("content-type") ?? "";
|
|
20
30
|
let payload;
|
|
21
31
|
if (contentType.includes("text/event-stream")) {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
mcpCall
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DW3LOLPJ.js";
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
7
|
import os7 from "os";
|
|
@@ -1525,7 +1525,7 @@ async function cmdDeploy(argv) {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
let appId = args.appId;
|
|
1527
1527
|
if (!appId) {
|
|
1528
|
-
const { mcpCall: mcpCall2 } = await import("./mcp-client-
|
|
1528
|
+
const { mcpCall: mcpCall2 } = await import("./mcp-client-SLIKR42C.js");
|
|
1529
1529
|
const r = await mcpCall2(cfg.endpoint, cfg.token, "list_apps", {});
|
|
1530
1530
|
if (!r.isError) {
|
|
1531
1531
|
try {
|