yuangs 1.1.0 → 1.1.2

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/cli.js +4 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -2,11 +2,14 @@
2
2
 
3
3
  const yuangs = require('./index.js');
4
4
  const chalk = require('chalk');
5
+ const { version } = require('./package.json'); // 引入版本号
6
+
5
7
  const args = process.argv.slice(2);
6
8
  const command = args[0];
7
9
 
8
10
  function printHelp() {
9
11
  console.log(chalk.bold.cyan('\n🎨 苑广山的个人应用启动器\n'));
12
+ console.log(chalk.yellow(`当前版本: ${version}\n`)); // 显示版本号
10
13
  console.log(chalk.white('使用方法:') + chalk.gray(' yuangs <命令> [参数]\n'));
11
14
  console.log(chalk.bold('命令列表:'));
12
15
  console.log(` ${chalk.green('shici')} 打开古诗词 PWA`);
@@ -16,7 +19,7 @@ function printHelp() {
16
19
  console.log(` ${chalk.green('ai')} "<问题>" 向 AI 提问`);
17
20
  console.log(` ${chalk.gray('--model <模型名称>')} 指定 AI 模型 (可选)`);
18
21
  console.log(` ${chalk.green('help')} 显示帮助信息\n`);
19
- console.log(chalk.gray('AI 示例: yuangs ai "你好" --model gemini-pro'));
22
+ console.log(chalk.gray('AI 示例: yuangs ai "你好" --model gemini-pro-latest'));
20
23
  console.log(chalk.gray('普通示例: yuangs shici\n'));
21
24
  }
22
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuangs",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "苑广山的个人应用集合 CLI(彩色版)",
5
5
  "main": "index.js",
6
6
  "bin": {