thumbnailgpt 1.0.3 → 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 CHANGED
@@ -2,20 +2,24 @@ 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, getApiUrl } from "./config.js";
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.3");
12
+ .version("1.0.5");
13
13
  // 1. Auth Login
14
14
  program
15
15
  .command("login")
16
16
  .description("Authenticate the CLI with your Personal API Key")
17
17
  .option("-k, --key <key>", "Pass the API key directly")
18
+ .option("-u, --url <url>", "Custom API endpoint URL (e.g. https://thumbnailgpt.com)")
18
19
  .action(async (options) => {
20
+ if (options.url) {
21
+ setApiUrl(options.url);
22
+ }
19
23
  if (options.key) {
20
24
  setApiKey(options.key);
21
25
  console.log(pc.green("✔ API key saved successfully!"));
@@ -57,7 +61,6 @@ program
57
61
  const credits = await client.getCredits();
58
62
  spinner.stop();
59
63
  console.log(pc.bold("\nThumbnailGPT Account"));
60
- console.log(`${pc.gray("Endpoint:")} ${getApiUrl()}`);
61
64
  console.log(`${pc.gray("Plan Status:")} ${pc.cyan(credits.subscription_status.toUpperCase())}`);
62
65
  console.log(`${pc.gray("Credits:")} ${pc.green(pc.bold(String(credits.credits)))} available`);
63
66
  console.log(`${pc.gray("Cost Tiers:")} 1K = 10 cr | 2K = 20 cr | 4K = 30 cr\n`);
package/dist/mcp.js CHANGED
@@ -14,7 +14,7 @@ export async function runMcpServer() {
14
14
  const client = new ThumbnailGPTClient(apiKey);
15
15
  const server = new Server({
16
16
  name: "thumbnailgpt-mcp",
17
- version: "1.0.3",
17
+ version: "1.0.5",
18
18
  }, {
19
19
  capabilities: {
20
20
  tools: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thumbnailgpt",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Official CLI and Model Context Protocol (MCP) server for ThumbnailGPT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",