tolingcode 2026.3.14 → 2026.3.15

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/tolingcode.js +19 -2
  2. package/package.json +1 -1
package/bin/tolingcode.js CHANGED
@@ -16,8 +16,8 @@ const REGISTRY_URL = process.env.TOLINGCODE_REGISTRY || 'https://toling.me/api/r
16
16
 
17
17
  program
18
18
  .name('tolingcode')
19
- .description(chalk.green('TolingCode CLI - 跨境电商 AI 助手技能管理工具'))
20
- .version(pkg.version, '-v, --version', '显示版本号')
19
+ .description(chalk.white('TolingCode CLI - 跨境电商 AI 助手技能管理工具'))
20
+ .version(pkg.version, '-v, --version', chalk.white('显示版本号'))
21
21
  .addHelpText('after', `
22
22
  ${chalk.green.bold('快速开始:')}
23
23
  ${chalk.white('# 安装技能')}
@@ -36,6 +36,23 @@ ${chalk.green.bold('快速开始:')}
36
36
  ${chalk.hex('#FFA500')('$ tolingcode examples')}
37
37
  `);
38
38
 
39
+ // Override help output colors
40
+ const originalHelpInformation = program.helpInformation.bind(program);
41
+ program.helpInformation = function() {
42
+ const help = originalHelpInformation();
43
+ return help
44
+ .replace(/^(Options:)/gm, chalk.green.bold('$1'))
45
+ .replace(/^(Commands:)/gm, chalk.green.bold('$1'))
46
+ .replace(/^ (-v, --version)/gm, chalk.white('$1'))
47
+ .replace(/^ (-h, --help)/gm, chalk.white('$1'))
48
+ .replace(/^ (install)/gm, chalk.white('$1'))
49
+ .replace(/^ (list)/gm, chalk.white('$1'))
50
+ .replace(/^ (search)/gm, chalk.white('$1'))
51
+ .replace(/^ (publish)/gm, chalk.white('$1'))
52
+ .replace(/^ (examples)/gm, chalk.white('$1'))
53
+ .replace(/^ (help)/gm, chalk.white('$1'));
54
+ };
55
+
39
56
  // install command
40
57
  program
41
58
  .command('install <type> <name>')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tolingcode",
3
- "version": "2026.3.14",
3
+ "version": "2026.3.15",
4
4
  "description": "TolingCode CLI - Install skills and apps from toling.me",
5
5
  "main": "bin/tolingcode.js",
6
6
  "files": [