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.
Files changed (2) hide show
  1. package/bin/cli.js +9 -5
  2. 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, editor } = require('@inquirer/prompts');
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
- const newPrompt = await editor({
692
- message: chalk.cyan('编辑系统提示词(保存并关闭编辑器后生效)'),
693
- default: currentPrompt || '',
694
- waitForUseInput: false,
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()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yingclaw",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Claude Code × 国产大模型一键接入:DeepSeek、Kimi、Qwen、MiniMax、GLM、MiMo",
5
5
  "main": "index.js",
6
6
  "bin": {