yymaxapi 1.0.59 → 1.0.61
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 +18 -5
- package/package.json +1 -1
package/bin/yymaxapi.js
CHANGED
|
@@ -2764,6 +2764,24 @@ async function autoActivate(paths, args = {}) {
|
|
|
2764
2764
|
console.log(chalk.green(`\n🌐 Web Dashboard:`));
|
|
2765
2765
|
console.log(chalk.cyan(` http://127.0.0.1:${gwPort}/?token=${gwToken}`));
|
|
2766
2766
|
}
|
|
2767
|
+
|
|
2768
|
+
// ---- 配置完成后:测试连接 or 退出 ----
|
|
2769
|
+
const { nextAction } = await inquirer.prompt([{
|
|
2770
|
+
type: 'list',
|
|
2771
|
+
name: 'nextAction',
|
|
2772
|
+
message: '接下来:',
|
|
2773
|
+
choices: [
|
|
2774
|
+
{ name: '测试连接', value: 'test' },
|
|
2775
|
+
{ name: '退出', value: 'exit' }
|
|
2776
|
+
]
|
|
2777
|
+
}]);
|
|
2778
|
+
|
|
2779
|
+
if (nextAction === 'test') {
|
|
2780
|
+
await testConnection(paths, args);
|
|
2781
|
+
} else {
|
|
2782
|
+
console.log(chalk.cyan('👋 再见!\n'));
|
|
2783
|
+
process.exit(0);
|
|
2784
|
+
}
|
|
2767
2785
|
}
|
|
2768
2786
|
|
|
2769
2787
|
// ============ 单独配置 Claude Code CLI ============
|
|
@@ -3148,8 +3166,6 @@ async function main() {
|
|
|
3148
3166
|
{ name: ' 测试连接', value: 'test_connection' },
|
|
3149
3167
|
{ name: ' 查看配置', value: 'view_config' },
|
|
3150
3168
|
{ name: ' 恢复默认', value: 'restore' },
|
|
3151
|
-
new inquirer.Separator(' -- 安装 --'),
|
|
3152
|
-
{ name: ' 安装/更新 OpenClaw', value: 'install_openclaw' },
|
|
3153
3169
|
new inquirer.Separator(''),
|
|
3154
3170
|
{ name: ' 退出', value: 'exit' }
|
|
3155
3171
|
]
|
|
@@ -3182,9 +3198,6 @@ async function main() {
|
|
|
3182
3198
|
case 'restore':
|
|
3183
3199
|
await restore(paths);
|
|
3184
3200
|
break;
|
|
3185
|
-
case 'install_openclaw':
|
|
3186
|
-
await installOrUpdateOpenClaw();
|
|
3187
|
-
break;
|
|
3188
3201
|
case 'activate_claude_code':
|
|
3189
3202
|
await activateClaudeCode(paths);
|
|
3190
3203
|
break;
|