thumbnailgpt 1.0.4 → 1.0.5
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 +3 -4
- package/dist/mcp.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import { Command } from "commander";
|
|
|
2
2
|
import readline from "readline";
|
|
3
3
|
import ora from "ora";
|
|
4
4
|
import pc from "picocolors";
|
|
5
|
-
import { setApiKey, clearApiKey,
|
|
5
|
+
import { setApiKey, clearApiKey, setApiUrl } from "./config.js";
|
|
6
6
|
import { ThumbnailGPTClient } from "./client.js";
|
|
7
7
|
import { runMcpServer } from "./mcp.js";
|
|
8
8
|
const program = new Command();
|
|
9
9
|
program
|
|
10
10
|
.name("thumbnailgpt")
|
|
11
11
|
.description("Official CLI and MCP server for ThumbnailGPT Studio")
|
|
12
|
-
.version("1.0.
|
|
12
|
+
.version("1.0.5");
|
|
13
13
|
// 1. Auth Login
|
|
14
14
|
program
|
|
15
15
|
.command("login")
|
|
@@ -22,7 +22,7 @@ program
|
|
|
22
22
|
}
|
|
23
23
|
if (options.key) {
|
|
24
24
|
setApiKey(options.key);
|
|
25
|
-
console.log(pc.green(
|
|
25
|
+
console.log(pc.green("✔ API key saved successfully!"));
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
const rl = readline.createInterface({
|
|
@@ -61,7 +61,6 @@ program
|
|
|
61
61
|
const credits = await client.getCredits();
|
|
62
62
|
spinner.stop();
|
|
63
63
|
console.log(pc.bold("\nThumbnailGPT Account"));
|
|
64
|
-
console.log(`${pc.gray("Endpoint:")} ${getApiUrl()}`);
|
|
65
64
|
console.log(`${pc.gray("Plan Status:")} ${pc.cyan(credits.subscription_status.toUpperCase())}`);
|
|
66
65
|
console.log(`${pc.gray("Credits:")} ${pc.green(pc.bold(String(credits.credits)))} available`);
|
|
67
66
|
console.log(`${pc.gray("Cost Tiers:")} 1K = 10 cr | 2K = 20 cr | 4K = 30 cr\n`);
|
package/dist/mcp.js
CHANGED