@epoch-agent/tui 3.0.0 → 3.1.2

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/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.no_change", { before: result.before, after: result.after })
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.0.0",
3
+ "version": "3.1.2",
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/view": "3.0.0",
33
- "@epoch-agent/protocol": "3.0.0"
32
+ "@epoch-agent/protocol": "3.1.2",
33
+ "@epoch-agent/view": "3.1.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.1.2",