yingclaw 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.js +9 -5
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { Command } = require('commander');
|
|
4
|
-
const { select, input, confirm
|
|
4
|
+
const { select, input, confirm } = require('@inquirer/prompts');
|
|
5
5
|
const {
|
|
6
6
|
loadConfig,
|
|
7
7
|
saveConfig,
|
|
@@ -688,10 +688,14 @@ program
|
|
|
688
688
|
return;
|
|
689
689
|
}
|
|
690
690
|
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
691
|
+
if (currentPrompt) {
|
|
692
|
+
console.log(chalk.dim(' 直接输入新内容覆盖,留空并回车取消'));
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
const newPrompt = await input({
|
|
696
|
+
message: chalk.cyan('系统提示词'),
|
|
697
|
+
default: currentPrompt || undefined,
|
|
698
|
+
validate: () => true,
|
|
695
699
|
});
|
|
696
700
|
|
|
697
701
|
if (!newPrompt || !newPrompt.trim()) {
|