yymaxapi 1.0.108 → 1.0.110

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/README.md CHANGED
@@ -46,13 +46,13 @@ set OPENCLAW_CODEX_KEY=你的Key && npx yymaxapi@latest preset-codex
46
46
  **方式四:完全自动化(无交互)**
47
47
  ```bash
48
48
  # macOS/Linux
49
- OPENCLAW_CLAUDE_KEY="你的Key" npx yymaxapi@latest preset-claude --model claude-opus-4-6 --set-primary true --force --test true
49
+ OPENCLAW_CLAUDE_KEY="你的Key" npx yymaxapi@latest preset-claude --model claude-opus-4-7 --set-primary true --force --test true
50
50
 
51
51
  # Windows PowerShell
52
- $env:OPENCLAW_CLAUDE_KEY="你的Key"; npx yymaxapi@latest preset-claude --model claude-opus-4-6 --set-primary true --force --test true
52
+ $env:OPENCLAW_CLAUDE_KEY="你的Key"; npx yymaxapi@latest preset-claude --model claude-opus-4-7 --set-primary true --force --test true
53
53
 
54
54
  # Windows CMD
55
- set OPENCLAW_CLAUDE_KEY=你的Key && npx yymaxapi@latest preset-claude --model claude-opus-4-6 --set-primary true --force --test true
55
+ set OPENCLAW_CLAUDE_KEY=你的Key && npx yymaxapi@latest preset-claude --model claude-opus-4-7 --set-primary true --force --test true
56
56
 
57
57
  # macOS/Linux
58
58
  OPENCLAW_CODEX_KEY="你的Key" npx yymaxapi@latest preset-codex --model gpt-5.4 --set-primary true --force --test true
package/bin/yymaxapi.js CHANGED
@@ -107,12 +107,12 @@ const DEFAULT_CLAUDE_MODELS = [
107
107
  "name": "Claude Sonnet 4.6"
108
108
  },
109
109
  {
110
- "id": "claude-opus-4-6",
111
- "name": "Claude Opus 4.6"
110
+ "id": "claude-opus-4-7",
111
+ "name": "Claude Opus 4.7"
112
112
  },
113
113
  {
114
- "id": "claude-opus-4-6-thinking",
115
- "name": "Claude Opus 4.6 Thinking"
114
+ "id": "claude-haiku-4-5",
115
+ "name": "Claude Haiku 4.5"
116
116
  }
117
117
  ];
118
118
 
@@ -2207,13 +2207,13 @@ const YYMAXAPI_OPENCLAW_ALT_CLAUDE_AGENT_ID = 'yunyi-claude';
2207
2207
  const YYMAXAPI_OPENCLAW_GPT_AGENT_ID = 'yunyi-gpt';
2208
2208
  const YYMAXAPI_OPENCLAW_LEGACY_GPT_AGENT_IDS = ['gpt'];
2209
2209
  const YYMAXAPI_OPENCLAW_CLAUDE_PRIMARY = `${YYMAXAPI_OPENCLAW_CLAUDE_PROVIDER}/claude-sonnet-4-6`;
2210
- const YYMAXAPI_OPENCLAW_CLAUDE_FALLBACK = `${YYMAXAPI_OPENCLAW_CLAUDE_PROVIDER}/claude-opus-4-6`;
2210
+ const YYMAXAPI_OPENCLAW_CLAUDE_FALLBACK = `${YYMAXAPI_OPENCLAW_CLAUDE_PROVIDER}/claude-opus-4-7`;
2211
2211
  const YYMAXAPI_OPENCLAW_GPT_PRIMARY = `${YYMAXAPI_OPENCLAW_GPT_PROVIDER}/gpt-5.4`;
2212
2212
  const YYMAXAPI_OPENCLAW_GPT_FALLBACK = `${YYMAXAPI_OPENCLAW_GPT_PROVIDER}/gpt-5.3-codex`;
2213
2213
  const YYMAXAPI_MANAGED_MAIN_NAMES = new Set(['Claude', 'claude', 'yunyi-claude', 'claude-yunyi']);
2214
2214
  const YYMAXAPI_MANAGED_GPT_NAMES = new Set(['GPT', 'Codex', 'gpt', 'yunyi-gpt', 'yunyi-codex']);
2215
2215
  const YYMAXAPI_MANAGED_MULTIMODAL_MODELS = {
2216
- claude: new Set(['claude-sonnet-4-6', 'claude-opus-4-6', 'claude-opus-4-6-thinking']),
2216
+ claude: new Set(['claude-sonnet-4-6', 'claude-opus-4-7', 'claude-haiku-4-5']),
2217
2217
  codex: new Set(['gpt-5.4', 'gpt-5.3-codex'])
2218
2218
  };
2219
2219
 
@@ -3391,6 +3391,15 @@ async function confirmImmediateTest(args = {}, message = '是否立即测试连
3391
3391
  return shouldTest;
3392
3392
  }
3393
3393
 
3394
+ async function pauseBeforeReturningToMenu(args = {}, message = '测试完成,按回车返回主菜单') {
3395
+ if (!args.fromMenu) return;
3396
+ await inquirer.prompt([{
3397
+ type: 'input',
3398
+ name: 'continue',
3399
+ message
3400
+ }]);
3401
+ }
3402
+
3394
3403
  function extendPathEnv(preferredNodePath) {
3395
3404
  const current = process.env.PATH || '';
3396
3405
  const parts = current.split(path.delimiter).filter(Boolean);
@@ -3633,7 +3642,7 @@ function readTextIfExists(filePath) {
3633
3642
  }
3634
3643
 
3635
3644
  function getHermesDataDir() {
3636
- const envDir = String(process.env.HERMES_DATA_DIR || '').trim();
3645
+ const envDir = String(process.env.HERMES_HOME || process.env.HERMES_DATA_DIR || '').trim();
3637
3646
  return envDir || path.join(os.homedir(), '.hermes');
3638
3647
  }
3639
3648
 
@@ -5431,6 +5440,7 @@ async function activateClaudeCode(paths, args = {}) {
5431
5440
 
5432
5441
  if (await confirmImmediateTest(args, '是否立即测试 Claude Code CLI 连接?')) {
5433
5442
  await testAdditionalCliConnections(args, { only: ['claude'] });
5443
+ await pauseBeforeReturningToMenu(args);
5434
5444
  }
5435
5445
  }
5436
5446
 
@@ -5485,6 +5495,7 @@ async function activateOpencode(paths, args = {}) {
5485
5495
 
5486
5496
  if (await confirmImmediateTest(args, '是否立即测试 Opencode CLI 连接?')) {
5487
5497
  await testAdditionalCliConnections(args, { only: ['opencode'] });
5498
+ await pauseBeforeReturningToMenu(args);
5488
5499
  }
5489
5500
  }
5490
5501
 
@@ -5549,6 +5560,7 @@ async function activateCodex(paths, args = {}) {
5549
5560
 
5550
5561
  if (await confirmImmediateTest(args, '是否立即测试 Codex CLI 连接?')) {
5551
5562
  await testAdditionalCliConnections(args, { only: ['codex'] });
5563
+ await pauseBeforeReturningToMenu(args);
5552
5564
  }
5553
5565
  }
5554
5566
 
@@ -5608,6 +5620,7 @@ async function activateHermes(paths, args = {}) {
5608
5620
 
5609
5621
  if (await confirmImmediateTest(args, '是否立即测试 Hermes CLI 连接?')) {
5610
5622
  await testAdditionalCliConnections(args, { only: ['hermes'] });
5623
+ await pauseBeforeReturningToMenu(args);
5611
5624
  }
5612
5625
  }
5613
5626
 
@@ -5720,16 +5733,16 @@ async function main() {
5720
5733
  await restore(paths);
5721
5734
  break;
5722
5735
  case 'activate_claude_code':
5723
- await activateClaudeCode(paths);
5736
+ await activateClaudeCode(paths, { fromMenu: true });
5724
5737
  break;
5725
5738
  case 'activate_hermes':
5726
- await activateHermes(paths);
5739
+ await activateHermes(paths, { fromMenu: true });
5727
5740
  break;
5728
5741
  case 'activate_opencode':
5729
- await activateOpencode(paths);
5742
+ await activateOpencode(paths, { fromMenu: true });
5730
5743
  break;
5731
5744
  case 'activate_codex':
5732
- await activateCodex(paths);
5745
+ await activateCodex(paths, { fromMenu: true });
5733
5746
  break;
5734
5747
  }
5735
5748
  } catch (error) {
@@ -25,8 +25,8 @@
25
25
  "models": {
26
26
  "claude": [
27
27
  { "id": "claude-sonnet-4-6", "name": "Claude Sonnet 4.6" },
28
- { "id": "claude-opus-4-6", "name": "Claude Opus 4.6" },
29
- { "id": "claude-opus-4-6-thinking", "name": "Claude Opus 4.6 Thinking" }
28
+ { "id": "claude-opus-4-7", "name": "Claude Opus 4.7" },
29
+ { "id": "claude-haiku-4-5", "name": "Claude Haiku 4.5" }
30
30
  ],
31
31
  "codex": [
32
32
  { "id": "gpt-5.4", "name": "GPT 5.4" },
@@ -104,7 +104,7 @@ npx yymaxapi@latest
104
104
 
105
105
  **注意事项:**
106
106
  - `base_url` 不要加 `/v1`,平台会自动拼接路径
107
- - Claude 可用模型:`claude-sonnet-4-6`、`claude-opus-4-6`、`claude-opus-4-6-thinking`
107
+ - Claude 可用模型:`claude-sonnet-4-6`、`claude-opus-4-7`、`claude-haiku-4-5`
108
108
  - GPT 可用模型:`gpt-5.4`
109
109
  - 已验证环境:腾讯云 OpenCloudOS,OpenClaw `2026.2.3-1`
110
110
  - 参考文档:https://cloud.tencent.com/developer/article/2624003
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yymaxapi",
3
- "version": "1.0.108",
3
+ "version": "1.0.110",
4
4
  "description": "跨平台 OpenClaw/Clawdbot 配置管理工具 - 管理中转地址、模型切换、API Keys、测速优化",
5
5
  "main": "bin/yymaxapi.js",
6
6
  "bin": {