yymaxapi 1.0.39 → 1.0.41

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/yymaxapi.js CHANGED
@@ -2614,8 +2614,8 @@ async function autoActivate(paths, args = {}) {
2614
2614
 
2615
2615
  // Claude 侧
2616
2616
  const claudeBaseUrl = buildFullUrl(selectedEndpoint.url, 'claude');
2617
- const claudeModelId = 'claude-opus-4-6';
2618
- const claudeModel = CLAUDE_MODELS.find(m => m.id === claudeModelId) || { id: claudeModelId, name: 'Claude Opus 4.6' };
2617
+ const claudeModelId = 'claude-sonnet-4-6';
2618
+ const claudeModel = CLAUDE_MODELS.find(m => m.id === claudeModelId) || { id: claudeModelId, name: 'Claude Sonnet 4.6' };
2619
2619
  const claudeModelKey = `${claudeProviderName}/${claudeModelId}`;
2620
2620
 
2621
2621
  config.models.providers[claudeProviderName] = {
@@ -2705,6 +2705,13 @@ async function autoActivate(paths, args = {}) {
2705
2705
  console.log(chalk.gray(' API Key: 已设置'));
2706
2706
  if (extSynced.length > 0) console.log(chalk.gray(` 同步: ${extSynced.join(', ')}`));
2707
2707
 
2708
+ const gwPort = config.gateway?.port || 18789;
2709
+ const gwToken = config.gateway?.auth?.token;
2710
+ if (gwToken) {
2711
+ console.log(chalk.green(`\n🌐 Web Dashboard:`));
2712
+ console.log(chalk.cyan(` http://localhost:${gwPort}/?token=${gwToken}`));
2713
+ }
2714
+
2708
2715
  // ---- 测试连接 ----
2709
2716
  const shouldTestGateway = args.test !== undefined
2710
2717
  ? !['false', '0', 'no'].includes(String(args.test).toLowerCase())
@@ -3221,6 +3228,13 @@ async function switchModel(paths) {
3221
3228
  console.log(chalk.green(`\n✅ 已切换到 ${selectedName}`));
3222
3229
  console.log(chalk.gray(` ${newPrimary}`));
3223
3230
  console.log(chalk.yellow('\n💡 切换后建议重启 Gateway: openclaw gateway restart'));
3231
+
3232
+ const gwPort = config.gateway?.port || 18789;
3233
+ const gwToken = config.gateway?.auth?.token;
3234
+ if (gwToken) {
3235
+ console.log(chalk.green(`\n🌐 Web Dashboard:`));
3236
+ console.log(chalk.cyan(` http://localhost:${gwPort}/?token=${gwToken}`));
3237
+ }
3224
3238
  }
3225
3239
  // ============ 测试连接 ============
3226
3240
  async function testConnection(paths, args = {}) {
@@ -44,7 +44,7 @@
44
44
  "providerName": "claude-yunyi"
45
45
  },
46
46
  "codex": {
47
- "urlSuffix": "/codex/v1",
47
+ "urlSuffix": "/codex",
48
48
  "api": "openai-responses",
49
49
  "contextWindow": 128000,
50
50
  "maxTokens": 32768,
package/install.sh CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yymaxapi",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "跨平台 OpenClaw/Clawdbot 配置管理工具 - 管理中转地址、模型切换、API Keys、测速优化",
5
5
  "main": "bin/yymaxapi.js",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "bin/",
27
27
  "lib/",
28
28
  "README.md",
29
- "config/",
29
+ "config/API节点设置.md",
30
30
  "install.sh",
31
31
  "install.ps1"
32
32
  ],
@@ -1,149 +0,0 @@
1
- {
2
- "meta": {
3
- "lastTouchedVersion": "2026.2.14",
4
- "lastTouchedAt": "2026-03-01T12:55:23.903Z"
5
- },
6
- "wizard": {
7
- "lastRunAt": "2026-02-16T14:33:54.345Z",
8
- "lastRunVersion": "0.1.4",
9
- "lastRunCommand": "configure",
10
- "lastRunMode": "local"
11
- },
12
- "models": {
13
- "mode": "merge",
14
- "providers": {
15
- "claude-yunyi": {
16
- "baseUrl": "https://yunyi.rdzhvip.com/claude",
17
- "api": "anthropic-messages",
18
- "apiKey": "YOUR_API_KEY_HERE",
19
- "models": [
20
- {
21
- "id": "claude-opus-4-6",
22
- "name": "Claude Opus 4.6",
23
- "contextWindow": 200000,
24
- "maxTokens": 8192
25
- }
26
- ]
27
- },
28
- "yunyi": {
29
- "baseUrl": "https://yunyi.rdzhvip.com/codex/v1",
30
- "api": "openai-responses",
31
- "apiKey": "YOUR_API_KEY_HERE",
32
- "models": [
33
- {
34
- "id": "gpt-5.3-codex",
35
- "name": "GPT 5.3 Codex",
36
- "contextWindow": 128000,
37
- "maxTokens": 32768
38
- }
39
- ]
40
- }
41
- }
42
- },
43
- "agents": {
44
- "defaults": {
45
- "model": {
46
- "primary": "claude-yunyi/claude-opus-4-6",
47
- "fallbacks": [
48
- "yunyi/gpt-5.3-codex"
49
- ]
50
- },
51
- "models": {
52
- "claude-yunyi/claude-opus-4-6": {
53
- "alias": "claude-yunyi"
54
- },
55
- "yunyi/gpt-5.3-codex": {
56
- "alias": "yunyi"
57
- }
58
- },
59
- "workspace": "D:\\\\path\\\\to\\\\your\\\\workspace",
60
- "compaction": {
61
- "mode": "safeguard"
62
- },
63
- "maxConcurrent": 4,
64
- "subagents": {
65
- "maxConcurrent": 8
66
- }
67
- },
68
- "list": []
69
- },
70
- "tools": {
71
- "elevated": {
72
- "enabled": true
73
- }
74
- },
75
- "messages": {
76
- "ackReactionScope": "group-mentions"
77
- },
78
- "commands": {
79
- "native": false,
80
- "nativeSkills": false
81
- },
82
- "channels": {
83
- "telegram": {
84
- "enabled": false,
85
- "dmPolicy": "open",
86
- "botToken": "YOUR_TELEGRAM_BOT_TOKEN",
87
- "allowFrom": [
88
- "*"
89
- ],
90
- "groupPolicy": "allowlist",
91
- "streamMode": "partial"
92
- },
93
- "feishu": {
94
- "appId": "YOUR_FEISHU_APP_ID",
95
- "appSecret": "YOUR_FEISHU_APP_SECRET",
96
- "botName": "测试clawbot",
97
- "accounts": {
98
- "default": {
99
- "appId": "YOUR_FEISHU_APP_ID",
100
- "appSecret": "YOUR_FEISHU_APP_SECRET",
101
- "enabled": true
102
- }
103
- }
104
- }
105
- },
106
- "gateway": {
107
- "port": 18789,
108
- "mode": "local",
109
- "bind": "loopback",
110
- "auth": {
111
- "mode": "token",
112
- "token": "YOUR_GATEWAY_TOKEN"
113
- },
114
- "remote": {
115
- "token": "YOUR_REMOTE_TOKEN"
116
- }
117
- },
118
- "plugins": {
119
- "load": {
120
- "paths": [
121
- "C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\openclaw-cn\\\\extensions\\\\feishu"
122
- ]
123
- },
124
- "entries": {
125
- "google-antigravity-auth": {
126
- "enabled": true
127
- },
128
- "telegram": {
129
- "enabled": true
130
- },
131
- "feishu": {
132
- "enabled": true
133
- }
134
- }
135
- },
136
- "auth": {
137
- "profiles": {
138
- "claude-yunyi:default": {
139
- "provider": "claude-yunyi",
140
- "mode": "api_key"
141
- },
142
- "yunyi:default": {
143
- "provider": "yunyi",
144
- "mode": "api_key"
145
- }
146
- }
147
- }
148
- }
149
-