refactor(core): 移除 UI 交互层,保持 core 为纯能力模块

- 删除 terminal.ts 及其测试(UI 交互应属于 cli 包)
- 清理 index.ts 中的 CLI 入口代码
- 合并 lib.ts 导出到 index.ts
- 移除 commander、inquirer 依赖
- 更新 package.json 导出配置
This commit is contained in:
2025-12-13 00:42:07 +08:00
parent 5b7d62e793
commit 5d4afecd48
5 changed files with 95 additions and 1212 deletions
+10
View File
@@ -72,6 +72,9 @@ importers:
minimatch:
specifier: ^10.1.1
version: 10.1.1
nanoid:
specifier: ^5.1.6
version: 5.1.6
qwen-ai-provider-v5:
specifier: ^1.0.2
version: 1.0.2(zod@4.1.13)
@@ -3625,6 +3628,11 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
nanoid@5.1.6:
resolution: {integrity: sha512-c7+7RQ+dMB5dPwwCp4ee1/iV/q2P6aK1mTZcfr1BTuVlyW9hJYiMPybJCcnBlQtuSmTIWNeazm/zqNoZSSElBg==}
engines: {node: ^18 || >=20}
hasBin: true
neotraverse@0.6.18:
resolution: {integrity: sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==}
engines: {node: '>= 10'}
@@ -8675,6 +8683,8 @@ snapshots:
nanoid@3.3.11: {}
nanoid@5.1.6: {}
neotraverse@0.6.18: {}
nlcst-to-string@4.0.0: