@aigne/cli 1.0.0-19 → 1.0.0-20

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.
@@ -1,8 +1,17 @@
1
- export const asciiLogo = `
1
+ import chalk from "chalk";
2
+ import gradient from "gradient-string";
3
+ import pkg from "../../package.json" with { type: "json" };
4
+ const modernGradient = gradient([
5
+ "#4facfe", // 天蓝色
6
+ "#7367f0", // 紫色
7
+ "#f86aad", // 粉红色
8
+ ]);
9
+ const logo = `
2
10
  _ ___ ____ _ _ _____
3
11
  / \\ |_ _/ ___| \\ | | ____|
4
12
  / _ \\ | | | _| \\| | _|
5
13
  / ___ \\ | | |_| | |\\ | |___
6
14
  /_/ \\_\\___\\____|_| \\_|_____|
7
-
8
15
  `;
16
+ const frameworkInfo = `v${pkg.version}`;
17
+ export const asciiLogo = `${modernGradient(logo)}\n\t${chalk.cyan(frameworkInfo)}\n\n`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.0.0-19",
3
+ "version": "1.0.0-20",
4
4
  "description": "cli for AIGNE framework",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,13 +24,16 @@
24
24
  "aigne": "dist/cli.js"
25
25
  },
26
26
  "dependencies": {
27
+ "chalk": "^5.4.1",
27
28
  "commander": "^13.1.0",
29
+ "gradient-string": "^3.0.0",
28
30
  "inquirer": "^12.5.0",
29
31
  "openai": "^4.91.1",
30
32
  "@aigne/core": "^1.5.1-2"
31
33
  },
32
34
  "devDependencies": {
33
35
  "@types/bun": "^1.2.8",
36
+ "@types/gradient-string": "^1.1.6",
34
37
  "@types/node": "^22.13.17",
35
38
  "npm-run-all": "^4.1.5",
36
39
  "rimraf": "^6.0.1",