ccman 3.3.2 → 3.3.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "../core/package.json"() {
16
16
  package_default = {
17
17
  name: "@ccman/core",
18
- version: "3.3.2",
18
+ version: "3.3.3",
19
19
  type: "module",
20
20
  description: "Core business logic for ccman - Manage Codex, Claude Code, Gemini CLI, and MCP configurations",
21
21
  main: "./dist/index.js",
@@ -6317,10 +6317,6 @@ async function resolveOpenAIDomain(domainArg, platforms) {
6317
6317
  return answers.domain;
6318
6318
  }
6319
6319
  async function gmnCommand(apiKey, platformArg, domainArg) {
6320
- let resolvedApiKey = apiKey?.trim();
6321
- if (!resolvedApiKey) {
6322
- resolvedApiKey = await promptApiKey();
6323
- }
6324
6320
  let platforms;
6325
6321
  try {
6326
6322
  platforms = await resolvePlatforms(platformArg);
@@ -6335,6 +6331,10 @@ async function gmnCommand(apiKey, platformArg, domainArg) {
6335
6331
  console.error(chalk47.red(`\u274C ${error.message}`));
6336
6332
  process.exit(1);
6337
6333
  }
6334
+ let resolvedApiKey = apiKey?.trim();
6335
+ if (!resolvedApiKey) {
6336
+ resolvedApiKey = await promptApiKey();
6337
+ }
6338
6338
  if (!resolvedApiKey?.trim()) {
6339
6339
  console.error(chalk47.red("\u274C \u9519\u8BEF: API Key \u4E0D\u80FD\u4E3A\u7A7A"));
6340
6340
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccman",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "type": "module",
5
5
  "description": "Manage Codex, Claude Code, Gemini CLI, OpenCode, and MCP API service provider configurations",
6
6
  "main": "./dist/index.js",