@longzai-intelligence-cli/standard 0.0.9 → 0.0.11
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/README.md +13 -0
- package/package.json +9 -7
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @longzai-intelligence-cli/standard
|
|
2
|
+
|
|
3
|
+
Longzai Intelligence Cli 的标准预设包,为命令行应用提供开箱即用的交互与着色固定策略(clack 交互 + picocolors 着色)。
|
|
4
|
+
|
|
5
|
+
## 简介
|
|
6
|
+
|
|
7
|
+
治理交互与着色实现的重复选型:core 只定契约不绑定实现,本包承载固定策略,消费方装配时注入即得标准命令行体验,需要特定交互偏好时也可自带 Provider 替换。
|
|
8
|
+
|
|
9
|
+
## 能力
|
|
10
|
+
|
|
11
|
+
- 交互策略(方向键单选、确认、文本输入、spinner、提示)按 InteractionProvider 契约交付
|
|
12
|
+
- 着色策略(完整色彩与字重别名)按 ColorProvider 契约交付
|
|
13
|
+
- 取消操作(Ctrl+C / Esc)统一退出处理
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence-cli/standard",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.0.11",
|
|
4
|
+
"description": "Longzai Intelligence CLI 标准交互预设",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"longzai-intelligence",
|
|
6
7
|
"clack",
|
|
7
8
|
"cli",
|
|
8
9
|
"picocolors",
|
|
9
10
|
"preset"
|
|
10
11
|
],
|
|
12
|
+
"private": false,
|
|
11
13
|
"license": "UNLICENSED",
|
|
12
14
|
"files": [
|
|
13
15
|
"dist"
|
|
@@ -23,12 +25,12 @@
|
|
|
23
25
|
},
|
|
24
26
|
"scripts": {
|
|
25
27
|
"build": "lzi-builder",
|
|
26
|
-
"build:prod": "NODE_ENV=production
|
|
28
|
+
"build:prod": "NODE_ENV=production bun run build",
|
|
27
29
|
"prepublishOnly": "bun run build:prod",
|
|
28
30
|
"typecheck": "bun run typecheck:app && bun run typecheck:node && bun run typecheck:test",
|
|
29
|
-
"typecheck:app": "tsgo
|
|
30
|
-
"typecheck:node": "tsgo
|
|
31
|
-
"typecheck:test": "tsgo
|
|
31
|
+
"typecheck:app": "lzi-tsgo typecheck tsconfig/app.json",
|
|
32
|
+
"typecheck:node": "lzi-tsgo typecheck tsconfig/node.json",
|
|
33
|
+
"typecheck:test": "lzi-tsgo typecheck tsconfig/test.json",
|
|
32
34
|
"lint": "oxlint && oxfmt --check",
|
|
33
35
|
"lint:fix": "oxlint --fix && oxfmt",
|
|
34
36
|
"test": "bun test",
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
},
|
|
39
41
|
"dependencies": {
|
|
40
42
|
"@clack/prompts": "^0.11.0",
|
|
41
|
-
"@longzai-intelligence-cli/core": "0.0.
|
|
43
|
+
"@longzai-intelligence-cli/core": "0.0.11",
|
|
42
44
|
"picocolors": "^1.1.1"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {}
|