yymaxapi 1.0.40 → 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.
Files changed (2) hide show
  1. package/bin/yymaxapi.js +14 -0
  2. package/package.json +1 -1
package/bin/yymaxapi.js CHANGED
@@ -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 = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yymaxapi",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "跨平台 OpenClaw/Clawdbot 配置管理工具 - 管理中转地址、模型切换、API Keys、测速优化",
5
5
  "main": "bin/yymaxapi.js",
6
6
  "bin": {