yingclaw 1.5.0 → 1.5.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.js +7 -7
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -114,7 +114,7 @@ program
|
|
|
114
114
|
if (!yes) return;
|
|
115
115
|
} catch {}
|
|
116
116
|
|
|
117
|
-
const network = await select({
|
|
117
|
+
const network = await select({ loop: false,
|
|
118
118
|
message: chalk.cyan('你的网络环境'),
|
|
119
119
|
choices: [
|
|
120
120
|
{ name: '有梯子 / 海外网络(走官方)', value: 'vpn' },
|
|
@@ -190,7 +190,7 @@ program
|
|
|
190
190
|
|
|
191
191
|
while (true) {
|
|
192
192
|
if (step === 'provider') {
|
|
193
|
-
providerKey = await select({
|
|
193
|
+
providerKey = await select({ loop: false,
|
|
194
194
|
message: chalk.cyan('选择 AI 厂商'),
|
|
195
195
|
choices: [
|
|
196
196
|
...Object.entries(PROVIDERS).map(([value, p]) => ({ name: p.name, value })),
|
|
@@ -221,7 +221,7 @@ program
|
|
|
221
221
|
modelChoices = provider.models;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
const m = await select({
|
|
224
|
+
const m = await select({ loop: false,
|
|
225
225
|
message: chalk.cyan('选择模型'),
|
|
226
226
|
choices: [
|
|
227
227
|
...modelChoices,
|
|
@@ -282,7 +282,7 @@ program
|
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
const providerKey = await select({
|
|
285
|
+
const providerKey = await select({ loop: false,
|
|
286
286
|
message: chalk.cyan('选择 AI 厂商'),
|
|
287
287
|
choices: [
|
|
288
288
|
...Object.entries(PROVIDERS).map(([value, p]) => ({ name: p.name, value })),
|
|
@@ -319,7 +319,7 @@ program
|
|
|
319
319
|
modelChoices = provider.models;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
const model = await select({
|
|
322
|
+
const model = await select({ loop: false,
|
|
323
323
|
message: chalk.cyan('选择模型'),
|
|
324
324
|
choices: [
|
|
325
325
|
...modelChoices,
|
|
@@ -393,7 +393,7 @@ async function runMenu() {
|
|
|
393
393
|
console.log(await renderStatusBar(apiStatus));
|
|
394
394
|
console.log();
|
|
395
395
|
|
|
396
|
-
const action = await select({
|
|
396
|
+
const action = await select({ loop: false,
|
|
397
397
|
message: chalk.cyan('选择操作'),
|
|
398
398
|
choices: [
|
|
399
399
|
{ name: '🤖 启动 Claude Code', value: 'launch', disabled: !config && '需先完成配置' },
|
|
@@ -447,7 +447,7 @@ async function runMenu() {
|
|
|
447
447
|
|
|
448
448
|
// 操作结束,提示返回菜单
|
|
449
449
|
console.log();
|
|
450
|
-
const next = await select({
|
|
450
|
+
const next = await select({ loop: false,
|
|
451
451
|
message: chalk.cyan('下一步'),
|
|
452
452
|
choices: [
|
|
453
453
|
{ name: '↩ 返回主菜单', value: 'menu' },
|