@epoch-agent/plugin-terminal 3.2.0 → 4.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 +6 -2
- package/dist/index.d.ts +195 -332
- package/dist/index.js +173 -132
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -97,7 +97,11 @@
|
|
|
97
97
|
第 1 条和第 3 条一个字都没变。那份清单也**不认上面那个开关**(它是一张静态的
|
|
98
98
|
工具名清单)—— 开关关着时唯一如实说话的地方是每条命令自己的那一行回执。
|
|
99
99
|
3. **Windows 上没有后端**,所以那儿一次都没包上 —— 工具输出里会逐字说
|
|
100
|
-
|
|
100
|
+
`[sandbox: none] no OS-level isolation this time …`。`epoch doctor` 的沙箱一节印的是实测值。
|
|
101
|
+
|
|
102
|
+
> ⚠️ **工具输出(回给模型读的那一份)2026-11-05 起一律英文**,不跟用户界面语言走:
|
|
103
|
+
> 上面那行回执、截断与落盘提示、`task_*` / `shell_*` 的状态行、沙箱与失败说明都是。
|
|
104
|
+
> 判据同 `core/src/code-mode/notice.ts` 的文件头;工具 `description` 本来就是英文。
|
|
101
105
|
|
|
102
106
|
PTY 那条是最后接的,而且方案里**允许的结论是「不上沙箱,如实说明」**:
|
|
103
107
|
`sandbox-exec` 包一层之后 tty 分配 / 窗口尺寸 / 信号转发都可能坏,坏法还很阴
|
|
@@ -410,7 +414,7 @@ CLI / TUI / server 都是一进程一 runtime,碰不到;嵌入宿主要开
|
|
|
410
414
|
命令是在一次性子 shell 里跑的,退出后 cwd 根本没变。所以检测到裸 `cd` 时,工具返回
|
|
411
415
|
一条**准确**的提示:
|
|
412
416
|
|
|
413
|
-
> `[
|
|
417
|
+
> `[note] cd only takes effect inside this subshell; the next call still runs in the original working directory. If the following commands have to run in X, pass the workdir parameter, or write it as "cd X && <command>".`
|
|
414
418
|
|
|
415
419
|
之前这里返回的是「[工作目录已切换: X]」——谎报会让模型基于错误的 cwd 假设继续拼
|
|
416
420
|
相对路径。**这个插件不维护会话级工作目录。**
|