yymaxapi 1.0.60 → 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 -0
- 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 ============
|