aico-cli 0.3.8 → 0.3.10

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.
@@ -13,7 +13,7 @@ import { join as join$1 } from 'node:path';
13
13
  import { join, dirname, basename } from 'pathe';
14
14
  import { fileURLToPath } from 'node:url';
15
15
 
16
- const version = "0.3.8";
16
+ const version = "0.3.10";
17
17
 
18
18
  function displayBanner(subtitle) {
19
19
  const defaultSubtitle = "\u4E00\u952E\u914D\u7F6E\u4F60\u7684\u5F00\u53D1\u73AF\u5883";
package/dist/cli.mjs CHANGED
@@ -222,26 +222,16 @@ async function launchCodeEditor() {
222
222
  return startClaudeCodeEditor();
223
223
  }
224
224
  async function launchCUI() {
225
- const { spawn } = await import('child_process');
226
- const { promisify } = await import('util');
227
- const exec = promisify(require("child_process").exec);
228
225
  try {
229
- console.log("\u6B63\u5728\u5B89\u88C5 pm2...");
230
- await exec("npm install -g pm2");
231
- console.log("pm2 \u5B89\u88C5\u6210\u529F");
232
- console.log("\u6B63\u5728\u5B89\u88C5 aico-cui...");
233
- await exec("npm install -g aico-cui");
234
- console.log("aico-cui \u5B89\u88C5\u6210\u529F");
235
- console.log("\u542F\u52A8 AICO CUI \u53EF\u89C6\u5316\u754C\u9762...");
236
- const cuiProcess = spawn("aico-cui", [], { stdio: "inherit" });
237
- cuiProcess.on("close", (code) => {
238
- console.log(`AICO CUI \u5DF2\u9000\u51FA\uFF0C\u9000\u51FA\u7801: ${code}`);
239
- });
240
- cuiProcess.on("error", (err) => {
241
- console.error("\u542F\u52A8 AICO CUI \u5931\u8D25:", err);
242
- });
226
+ const { run } = await Promise.resolve().then(function () { return runCommand; });
227
+ console.log("\x1B[36m\u6B63\u5728\u5B89\u88C5PM2...\x1B[0m");
228
+ await run("npm install -g pm2");
229
+ console.log("\x1B[36m\u6B63\u5728\u5B89\u88C5AICO\u53EF\u89C6\u5316\u754C\u9762...\x1B[0m");
230
+ await run("npm install -g aico-cui");
231
+ console.log("\x1B[36m\u542F\u52A8AICO\u53EF\u89C6\u5316\u754C\u9762...\x1B[0m");
232
+ await run("aico-cui");
243
233
  } catch (error) {
244
- console.error("\u542F\u52A8\u53EF\u89C6\u5316\u754C\u9762\u5931\u8D25:", error);
234
+ console.error("\x1B[31m\u542F\u52A8\u53EF\u89C6\u5316\u754C\u9762\u5931\u8D25:\x1B[0m", error);
245
235
  throw error;
246
236
  }
247
237
  }
@@ -554,11 +544,10 @@ function customizeHelp(sections) {
554
544
  async function startUI() {
555
545
  try {
556
546
  const { run } = await Promise.resolve().then(function () { return runCommand; });
557
- console.log("\x1B[36m\u6B63\u5728\u5B89\u88C5PM2...\x1B[0m");
547
+ console.log("\x1B[36m\u6B63\u5728\u5B89\u88C5\u667A\u80FD\u8F6F\u4EF6\u661F\u5DE5\u5382\u53EF\u89C6\u5316\u754C\u9762...\x1B[0m");
558
548
  await run("npm install -g pm2");
559
- console.log("\x1B[36m\u6B63\u5728\u5B89\u88C5AICO\u53EF\u89C6\u5316\u754C\u9762...\x1B[0m");
560
549
  await run("npm install -g aico-cui");
561
- console.log("\x1B[36m\u542F\u52A8AICO\u53EF\u89C6\u5316\u754C\u9762...\x1B[0m");
550
+ console.log("\x1B[36m\u542F\u52A8\u667A\u80FD\u8F6F\u4EF6\u661F\u5DE5\u5382\u53EF\u89C6\u5316\u754C\u9762...\x1B[0m");
562
551
  await run("aico-cui");
563
552
  } catch (error) {
564
553
  console.error("\x1B[31m\u542F\u52A8\u53EF\u89C6\u5316\u754C\u9762\u5931\u8D25:\x1B[0m", error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aico-cli",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "packageManager": "pnpm@9.15.9",
5
5
  "description": "AI CLI",
6
6
  "repository": {
@@ -27,19 +27,6 @@ ILF对应10,EI对应4,EO对应4,EQ对应5。
27
27
 
28
28
  # 相关内容
29
29
 
30
- ## 可用模块
31
- - 数据字典
32
- - 模型展示
33
- - 模型管理
34
- - 模型的参数输入
35
- - 模型输出结果
36
- - 权限管理
37
- - 系统监控
38
- - 系统工具
39
- - 个人中心
40
- - 首页
41
- - 登录
42
-
43
30
  ## CSV输出格式要求
44
31
 
45
32
  ### 文件格式
@@ -68,8 +55,6 @@ ILF对应10,EI对应4,EO对应4,EQ对应5。
68
55
  ```csv
69
56
  一级模块,二级模块(选填),三级模块(选填),四级模块(选填),功能项描述,功能点计数项名称,类别,未调整功能点数(UFP),复用程度,修改类型,关联人
70
57
  模型参数,DPO节点,,,新增DPO节点界面,DPO节点界面新增,内部逻辑文件(ILF),10,低,新增,50632783
71
- 模型参数,DPO节点,,,导出DPO节点列表,DPO节点导出,外部查询(EQ),4,低,新增,50632783
72
- 模型参数,DPO节点,,,删除一个或者多个DPO节点,DPO节点删除,外部输入(EI),4,低,新增,50632783
73
58
  ```
74
59
 
75
60
  ### 功能点类型与点数对应关系
@@ -94,7 +79,7 @@ ILF对应10,EI对应4,EO对应4,EQ对应5。
94
79
 
95
80
  2. 研发需求规范描述细则
96
81
 
97
- 标题描述句式: 触发主体 + 核心业务对象 + 精确动作动词 + 处理逻辑 + 关联数据实体
82
+ 功能项描述句式: 触发主体 + 核心业务对象 + 精确动作动词 + 处理逻辑 + 关联数据实体
98
83
 
99
84
  七大核心规则:
100
85
  1. 明确触发主体 - 清晰说明用户角色或外部系统
@@ -91,8 +91,8 @@ description: 架构师级软件工程师,以工程卓越为信仰,为追求
91
91
 
92
92
  5. **总结反馈**
93
93
  - 输出最终方案
94
+ - 更新TODO清单
94
95
  - 附优化建议
95
- - 标注复用组件
96
96
 
97
97
  **执行原则(AI优化版):**
98
98
  - 创建并更新TODO清单