ccman 3.3.30 → 3.3.31

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -466,7 +466,6 @@ var init_codex = __esm({
466
466
  };
467
467
  GMN_PROVIDER_HOSTS = [
468
468
  "ai.gmncode.com",
469
- "cdn-gmn.chuangzuoli.com",
470
469
  "gmncodex.com",
471
470
  "gmncode.cn",
472
471
  "cdn.gmncode.cn",
@@ -3866,7 +3865,7 @@ var init_sync = __esm({
3866
3865
  });
3867
3866
 
3868
3867
  // src/index.ts
3869
- import { Command as Command3 } from "commander";
3868
+ import { Command as Command3, Option as Option2 } from "commander";
3870
3869
  import chalk57 from "chalk";
3871
3870
 
3872
3871
  // src/utils/logo.ts
@@ -7832,11 +7831,6 @@ var GMN_PROFILE = {
7832
7831
  label: "GMN \u4E3B\u7AD9",
7833
7832
  url: "https://ai.gmncode.com",
7834
7833
  description: "GMN \u4E3B\u57DF\u540D\u5165\u53E3"
7835
- },
7836
- {
7837
- label: "GMN CDN",
7838
- url: "https://cdn-gmn.chuangzuoli.com",
7839
- description: "GMN CDN \u52A0\u901F\u5165\u53E3"
7840
7834
  }
7841
7835
  ]
7842
7836
  };
@@ -7845,7 +7839,7 @@ var GMN1_PROFILE = {
7845
7839
  title: "GMN1",
7846
7840
  defaultProviderName: "gmn1",
7847
7841
  endpointGroupLabel: "\u6269\u5C55\u52A0\u901F\u7EBF\u8DEF",
7848
- endpointGroupDescription: "\u5305\u542B\u9664 chuangzuoli \u4E4B\u5916\u7684\u5176\u4F59 5 \u6761\u5730\u5740",
7842
+ endpointGroupDescription: "\u5305\u542B\u9664 gmn\u4E3B\u7AD9 \u4E4B\u5916\u7684\u5176\u4F59 5 \u6761\u5730\u5740",
7849
7843
  baseUrls: [
7850
7844
  {
7851
7845
  label: "\u963F\u91CC\u4E91 CDN",
@@ -8312,8 +8306,18 @@ async function gmn1Command(apiKey, platformArg, providerNameArg, baseUrlArg) {
8312
8306
  await runGmnCommand(GMN1_PROFILE, apiKey, platformArg, providerNameArg, baseUrlArg);
8313
8307
  }
8314
8308
 
8309
+ // src/utils/version-args.ts
8310
+ var ROOT_VERSION_FLAGS = /* @__PURE__ */ new Set(["-v", "-V", "--version"]);
8311
+ function isRootVersionRequest(args) {
8312
+ return args.length === 1 && ROOT_VERSION_FLAGS.has(args[0]);
8313
+ }
8314
+
8315
8315
  // src/index.ts
8316
8316
  init_dist2();
8317
+ if (isRootVersionRequest(process.argv.slice(2))) {
8318
+ console.log(VERSION);
8319
+ process.exit(0);
8320
+ }
8317
8321
  if (process.env.NODE_ENV === "development") {
8318
8322
  console.log(chalk57.gray("\n[\u5F00\u53D1\u6A21\u5F0F] \u914D\u7F6E\u76EE\u5F55:"));
8319
8323
  console.log(chalk57.gray(` ccman: ${getCcmanDir()}`));
@@ -8324,12 +8328,7 @@ if (process.env.NODE_ENV === "development") {
8324
8328
  console.log();
8325
8329
  }
8326
8330
  var program = new Command3();
8327
- program.name("ccman").description("Codex/Claude Code/Gemini/OpenCode/OpenClaw API \u670D\u52A1\u5546\u914D\u7F6E\u7BA1\u7406\u5DE5\u5177").version(VERSION).showHelpAfterError(false).exitOverride((err) => {
8328
- if (err.code === "commander.helpDisplayed" || err.code === "commander.version") {
8329
- process.exit(0);
8330
- }
8331
- throw err;
8332
- });
8331
+ program.name("ccman").description("Codex/Claude Code/Gemini/OpenCode/OpenClaw API \u670D\u52A1\u5546\u914D\u7F6E\u7BA1\u7406\u5DE5\u5177").version(VERSION).addOption(new Option2("-v, --version", "output the version number").hideHelp()).showHelpAfterError(false);
8333
8332
  program.on("command:*", (operands) => {
8334
8333
  const unknownCommand = operands[0];
8335
8334
  console.error(chalk57.red(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccman",
3
- "version": "3.3.30",
3
+ "version": "3.3.31",
4
4
  "type": "module",
5
5
  "description": "Manage Codex, Claude Code, Gemini CLI, OpenCode, OpenClaw, and MCP API service provider configurations",
6
6
  "main": "./dist/index.js",