@epoch-agent/tui 3.1.1 → 3.2.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 +2 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,8 @@ Ink 7 + React 19 的终端界面。
|
|
|
4
4
|
|
|
5
5
|
- ✅ **做**:组件、布局、键位、Markdown 渲染、斜杠命令
|
|
6
6
|
- ❌ **不做**:**不许 import [core](../core)**(`check:layers` 会红)、不 spawn 子进程、
|
|
7
|
-
|
|
7
|
+
**不碰用户文件**(唯一的写盘是 `EPOCH_DEBUG` 打开的调试日志,`src/debug.ts`
|
|
8
|
+
往系统临时目录追加 —— 2026-11-03 把上一版那句笼统的「不碰文件系统」改准)。
|
|
8
9
|
- **依赖**:[protocol](../protocol) + [view](../view) + `chalk` / `lowlight` /
|
|
9
10
|
`string-width` 等纯渲染库。`ink` 和 `react` 是 **peer**
|
|
10
11
|
|
package/dist/index.d.ts
CHANGED
|
@@ -685,6 +685,12 @@ interface HostActions {
|
|
|
685
685
|
before: number;
|
|
686
686
|
after: number;
|
|
687
687
|
reason?: string;
|
|
688
|
+
/**
|
|
689
|
+
* 这一次**一发摘要请求都没打**(中段为空 / 裁完就够)—— 见
|
|
690
|
+
* `CompressResult.summarySkipped`。`after === before` 时靠它分开说:
|
|
691
|
+
* 这一档一分钱没花,另一档(摘要没生成出来)钱是真花了。
|
|
692
|
+
*/
|
|
693
|
+
summarySkipped?: boolean;
|
|
688
694
|
}>;
|
|
689
695
|
/** 最近的会话列表(`/resume` 的候选) */
|
|
690
696
|
listSessions?: () => ReadonlyArray<{
|
package/dist/index.js
CHANGED
|
@@ -5203,9 +5203,10 @@ var compact = {
|
|
|
5203
5203
|
return;
|
|
5204
5204
|
}
|
|
5205
5205
|
if (result.after >= result.before) {
|
|
5206
|
+
const vars = { before: result.before, after: result.after };
|
|
5206
5207
|
ctx.push({
|
|
5207
5208
|
type: "warning",
|
|
5208
|
-
text: t("tui.compact.
|
|
5209
|
+
text: result.summarySkipped === true ? t("tui.compact.nothing_to_do", vars) : t("tui.compact.no_change", vars)
|
|
5209
5210
|
});
|
|
5210
5211
|
return;
|
|
5211
5212
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epoch-agent/tui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "epoch-agent Ink TUI 界面",
|
|
6
6
|
"repository": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"mnemonist": "0",
|
|
30
30
|
"string-width": "8",
|
|
31
31
|
"strip-ansi": "7",
|
|
32
|
-
"@epoch-agent/protocol": "3.
|
|
33
|
-
"@epoch-agent/view": "3.
|
|
32
|
+
"@epoch-agent/protocol": "3.2.0",
|
|
33
|
+
"@epoch-agent/view": "3.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^26.1.2",
|