yingclaw 2.1.3 → 2.1.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/bin/cli.js CHANGED
@@ -866,9 +866,10 @@ program
866
866
  if (result.status === 0) {
867
867
  console.log(boxen(
868
868
  chalk.bold(`yingclaw 已升级到 v${latest}\n\n`) +
869
- chalk.dim('重新运行 ') + chalk.cyan('claw') + chalk.dim(' 使新版本生效'),
869
+ chalk.dim('运行 ') + chalk.cyan('claw') + chalk.dim(' 启动新版本'),
870
870
  { padding: { top: 0, bottom: 0, left: 2, right: 2 }, borderStyle: 'round', borderColor: 'green', margin: { top: 1, bottom: 1 } }
871
871
  ));
872
+ process.exit(0);
872
873
  } else {
873
874
  console.log(chalk.red('\n升级失败,请手动运行:'));
874
875
  console.log(chalk.cyan('npm install -g yingclaw@latest'));
package/lib/config.js CHANGED
@@ -42,7 +42,6 @@ const PROVIDERS = {
42
42
  baseUrl: 'https://dashscope.aliyuncs.com/apps/anthropic',
43
43
  modelsUrl: 'https://dashscope.aliyuncs.com/compatible-mode/v1/models',
44
44
  fastModel: 'qwen3.5-plus',
45
- noDesktopPrefix: true,
46
45
  models: [
47
46
  { name: 'Qwen3 Max(强力)', value: 'qwen3-max' },
48
47
  { name: 'Qwen3 Plus(均衡)', value: 'qwen3-plus' },
@@ -53,7 +52,6 @@ const PROVIDERS = {
53
52
  name: 'MiniMax',
54
53
  baseUrl: 'https://api.minimaxi.com/anthropic',
55
54
  modelsUrl: 'https://api.minimaxi.com/v1/models',
56
- noDesktopPrefix: true,
57
55
  models: [
58
56
  { name: 'MiniMax M2.7(旗舰)', value: 'MiniMax-M2.7' },
59
57
  { name: 'MiniMax M2.7 Turbo(快速)', value: 'MiniMax-M2.7-Turbo' },
@@ -64,7 +62,6 @@ const PROVIDERS = {
64
62
  name: '智谱 GLM',
65
63
  baseUrl: 'https://open.bigmodel.cn/api/anthropic',
66
64
  modelsUrl: 'https://open.bigmodel.cn/api/paas/v4/models',
67
- noDesktopPrefix: true,
68
65
  models: [
69
66
  { name: 'GLM-4.7(旗舰)', value: 'GLM-4.7' },
70
67
  { name: 'GLM-5.1(强力)', value: 'GLM-5.1' },
@@ -76,7 +73,6 @@ const PROVIDERS = {
76
73
  name: '小米 MiMo',
77
74
  baseUrl: 'https://api.xiaomimimo.com/anthropic',
78
75
  modelsUrl: 'https://api.xiaomimimo.com/v1/models',
79
- noDesktopPrefix: true,
80
76
  models: [
81
77
  { name: 'MiMo V2.5 Pro(旗舰)', value: 'mimo-v2.5-pro' },
82
78
  ],
package/lib/desktop.js CHANGED
@@ -3,7 +3,7 @@ const fs = require('fs');
3
3
  const os = require('os');
4
4
  const path = require('path');
5
5
  const { spawnSync } = require('child_process');
6
- const { normalizeAnthropicBaseUrl, PROVIDERS } = require('./config');
6
+ const { normalizeAnthropicBaseUrl } = require('./config');
7
7
 
8
8
  const CLAUDE_DESKTOP_LABEL = 'Claude 桌面应用配置';
9
9
  const DESKTOP_GATEWAY_KEYS = [
@@ -63,8 +63,7 @@ function collectModels(config) {
63
63
  const list = Array.isArray(config.availableModels) && config.availableModels.length > 0
64
64
  ? [config.model, config.fastModel, ...config.availableModels]
65
65
  : [config.model, config.fastModel];
66
- const noPrefix = PROVIDERS[config.provider]?.noDesktopPrefix;
67
- return [...new Set(list.filter(Boolean).map(m => noPrefix ? m : toDesktopModelId(m)))];
66
+ return [...new Set(list.filter(Boolean).map(toDesktopModelId))];
68
67
  }
69
68
 
70
69
  // 按官方 schema:所有值必须是字符串(包括布尔、数组都序列化)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yingclaw",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "Claude Code × 国产大模型一键接入:DeepSeek、Kimi、Qwen、MiniMax、GLM、MiMo",
5
5
  "main": "index.js",
6
6
  "bin": {