openclawsetup 2.4.0 → 2.4.1
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.mjs +19 -12
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -1128,15 +1128,16 @@ async function showInteractiveMenu(existing) {
|
|
|
1128
1128
|
showDashboardAccessInfo();
|
|
1129
1129
|
|
|
1130
1130
|
console.log(colors.cyan('\n请选择操作:'));
|
|
1131
|
-
console.log(` ${colors.yellow('1')}.
|
|
1132
|
-
console.log(` ${colors.yellow('2')}.
|
|
1133
|
-
console.log(` ${colors.yellow('3')}.
|
|
1134
|
-
console.log(` ${colors.yellow('4')}. 配置 Chat
|
|
1135
|
-
console.log(` ${colors.yellow('5')}.
|
|
1136
|
-
console.log(` ${colors.yellow('6')}.
|
|
1131
|
+
console.log(` ${colors.yellow('1')}. 检查修复`);
|
|
1132
|
+
console.log(` ${colors.yellow('2')}. 检查更新`);
|
|
1133
|
+
console.log(` ${colors.yellow('3')}. 配置模型`);
|
|
1134
|
+
console.log(` ${colors.yellow('4')}. 配置 Chat`);
|
|
1135
|
+
console.log(` ${colors.yellow('5')}. 配置技能`);
|
|
1136
|
+
console.log(` ${colors.yellow('6')}. 重新安装`);
|
|
1137
|
+
console.log(` ${colors.yellow('7')}. 完全卸载`);
|
|
1137
1138
|
console.log(` ${colors.yellow('0')}. 退出`);
|
|
1138
1139
|
|
|
1139
|
-
const choice = await askQuestion('\n请输入选项 (0-
|
|
1140
|
+
const choice = await askQuestion('\n请输入选项 (0-7): ');
|
|
1140
1141
|
|
|
1141
1142
|
switch (choice.trim()) {
|
|
1142
1143
|
case '1':
|
|
@@ -1157,9 +1158,9 @@ async function showInteractiveMenu(existing) {
|
|
|
1157
1158
|
break;
|
|
1158
1159
|
case '4':
|
|
1159
1160
|
console.log(colors.cyan('\n选择聊天渠道:'));
|
|
1160
|
-
console.log(` ${colors.yellow('a')}. Discord
|
|
1161
|
-
console.log(` ${colors.yellow('b')}.
|
|
1162
|
-
console.log(` ${colors.yellow('c')}. Telegram
|
|
1161
|
+
console.log(` ${colors.yellow('a')}. Discord`);
|
|
1162
|
+
console.log(` ${colors.yellow('b')}. 飞书`);
|
|
1163
|
+
console.log(` ${colors.yellow('c')}. Telegram`);
|
|
1163
1164
|
console.log(` ${colors.yellow('0')}. 返回`);
|
|
1164
1165
|
const chatChoice = await askQuestion('\n请选择 (a/b/c/0): ');
|
|
1165
1166
|
switch (chatChoice.trim().toLowerCase()) {
|
|
@@ -1176,6 +1177,12 @@ async function showInteractiveMenu(existing) {
|
|
|
1176
1177
|
await waitForEnter('\n按回车返回菜单...');
|
|
1177
1178
|
break;
|
|
1178
1179
|
case '5':
|
|
1180
|
+
console.log(colors.cyan('\n配置技能(即将支持)...'));
|
|
1181
|
+
// TODO: 等待技能地址提供后实现
|
|
1182
|
+
log.warn('技能配置功能即将上线,请稍后再试');
|
|
1183
|
+
await waitForEnter('\n按回车返回菜单...');
|
|
1184
|
+
break;
|
|
1185
|
+
case '6':
|
|
1179
1186
|
console.log(colors.yellow('\n即将重新安装 OpenClaw...'));
|
|
1180
1187
|
const confirmReinstall = await askQuestion('确认重新安装?(y/N): ');
|
|
1181
1188
|
if (confirmReinstall.toLowerCase() === 'y') {
|
|
@@ -1185,7 +1192,7 @@ async function showInteractiveMenu(existing) {
|
|
|
1185
1192
|
showCompletionInfo(newCliName);
|
|
1186
1193
|
}
|
|
1187
1194
|
break;
|
|
1188
|
-
case '
|
|
1195
|
+
case '7':
|
|
1189
1196
|
console.log(colors.red('\n⚠ 警告:卸载将删除所有配置!'));
|
|
1190
1197
|
const confirmUninstall = await askQuestion('确认卸载?(y/N): ');
|
|
1191
1198
|
if (confirmUninstall.toLowerCase() === 'y') {
|
|
@@ -1199,7 +1206,7 @@ async function showInteractiveMenu(existing) {
|
|
|
1199
1206
|
console.log(colors.gray('\n再见!'));
|
|
1200
1207
|
process.exit(0);
|
|
1201
1208
|
default:
|
|
1202
|
-
log.warn('无效选项,请输入 0-
|
|
1209
|
+
log.warn('无效选项,请输入 0-7');
|
|
1203
1210
|
}
|
|
1204
1211
|
}
|
|
1205
1212
|
}
|