@epoch-agent/cli 5.0.0 → 6.1.0
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 +3 -4
- package/dist/index.js +380 -531
- package/dist/tui-entry.js +141 -291
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
CLI 入口。装了它才有 `epoch` 这个可执行文件。
|
|
4
4
|
|
|
5
|
-
- ✅ **做**:commander 参数解析、TUI
|
|
5
|
+
- ✅ **做**:commander 参数解析、TUI 启动、审批的终端交互、输出格式化、
|
|
6
6
|
退出码、更新检查、shell 补全
|
|
7
7
|
- ❌ **不做**:装配(在 [runtime](../runtime))、领域逻辑(在 [core](../core))、
|
|
8
8
|
渲染细节(在 [tui](../tui))
|
|
@@ -38,7 +38,6 @@ epoch doctor # 装不上 / 跑不起来时第一个跑这个
|
|
|
38
38
|
| `commands/web-open.ts` | 跨平台打开浏览器(`start` / `open` / `xdg-open`) |
|
|
39
39
|
| `tui-entry.ts` | TUI 启动:建 runtime、接 `AgentSession`、`renderApp()` |
|
|
40
40
|
| `approval.ts` | 非 TUI 场景的终端审批交互 |
|
|
41
|
-
| `trust-prompt.ts` | 工作区信任的首次询问 |
|
|
42
41
|
| `import-prompt.ts` | 指令文件引用项目**之外**的文件时的逐个询问(方案 33) |
|
|
43
42
|
| `files/` | `config.yaml` / `.env` 的读写(保留注释与格式);以及 `epoch config schema` 写出的 `.epoch/schemas/*.json` |
|
|
44
43
|
| `errors.ts` / `exit-codes.ts` | 错误 → 人话 + 稳定退出码(CI 靠它判断)。别的包抛的「预期内失败」按 `err.name` 查一张表,不打 stack |
|
|
@@ -105,8 +104,8 @@ stdio 让父进程自然活着):worktree 的收尾得等 TUI 真的退出,
|
|
|
105
104
|
打字的时候问他「要不要删这个 worktree」。
|
|
106
105
|
|
|
107
106
|
`-c` / `-r` 还多一条:**选哪一段在父进程里就定完**(含 `-r` 不带 id 时的选择器)。
|
|
108
|
-
ink 一接管 stdin,inquirer 就抢不回来 ——
|
|
109
|
-
|
|
107
|
+
ink 一接管 stdin,inquirer 就抢不回来 —— 和项目外 `@import` 的询问必须排在
|
|
108
|
+
`renderApp` 之前是同一个约束。
|
|
110
109
|
|
|
111
110
|
三处的「坏输入」都**报错退出**,不静默当没给:
|
|
112
111
|
|