@meltstudio/meltctl 4.93.0 → 4.93.1
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 +13 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var CLI_VERSION;
|
|
|
14
14
|
var init_version = __esm({
|
|
15
15
|
"src/utils/version.ts"() {
|
|
16
16
|
"use strict";
|
|
17
|
-
CLI_VERSION = "4.93.
|
|
17
|
+
CLI_VERSION = "4.93.1";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -2560,7 +2560,7 @@ async function eventTrackCommand(options) {
|
|
|
2560
2560
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
2561
2561
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
2562
2562
|
import { z as z2 } from "zod";
|
|
2563
|
-
import
|
|
2563
|
+
import { readFile } from "fs/promises";
|
|
2564
2564
|
import path8 from "path";
|
|
2565
2565
|
import os3 from "os";
|
|
2566
2566
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -3317,14 +3317,20 @@ var AuthError = class extends Error {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
};
|
|
3319
3319
|
async function loadAuth() {
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3320
|
+
let raw;
|
|
3321
|
+
try {
|
|
3322
|
+
raw = await readFile(AUTH_FILE2, "utf8");
|
|
3323
|
+
} catch (err) {
|
|
3324
|
+
if (err.code === "ENOENT") {
|
|
3325
|
+
throw new AuthError(
|
|
3326
|
+
"No meltctl session found. Run `npx @meltstudio/meltctl@latest login` first, then restart your MCP-enabled editor."
|
|
3327
|
+
);
|
|
3328
|
+
}
|
|
3329
|
+
throw err;
|
|
3324
3330
|
}
|
|
3325
3331
|
let stored;
|
|
3326
3332
|
try {
|
|
3327
|
-
stored =
|
|
3333
|
+
stored = JSON.parse(raw);
|
|
3328
3334
|
} catch (err) {
|
|
3329
3335
|
throw new AuthError(
|
|
3330
3336
|
`Couldn't parse ${AUTH_FILE2}: ${err instanceof Error ? err.message : String(err)}. Run \`meltctl logout\` then \`meltctl login\` to refresh.`
|
package/package.json
CHANGED