@epoch-agent/tui 0.7.1 → 0.9.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.
Files changed (2) hide show
  1. package/dist/index.js +16 -13
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1143,20 +1143,22 @@ function typeLabel(type) {
1143
1143
  return void 0;
1144
1144
  }
1145
1145
  }
1146
- function options() {
1146
+ function options(rememberable) {
1147
1147
  return [
1148
1148
  { label: t("tui.approval.allow_once"), value: "allow-once" },
1149
- {
1150
- label: t("tui.approval.allow_session"),
1151
- value: "allow-session",
1152
- description: t("tui.approval.allow_session_desc")
1153
- },
1154
- {
1155
- label: t("tui.approval.allow_always"),
1156
- value: "allow-always",
1157
- description: t("tui.approval.allow_always_desc"),
1158
- danger: true
1159
- },
1149
+ ...rememberable ? [
1150
+ {
1151
+ label: t("tui.approval.allow_session"),
1152
+ value: "allow-session",
1153
+ description: t("tui.approval.allow_session_desc")
1154
+ },
1155
+ {
1156
+ label: t("tui.approval.allow_always"),
1157
+ value: "allow-always",
1158
+ description: t("tui.approval.allow_always_desc"),
1159
+ danger: true
1160
+ }
1161
+ ] : [],
1160
1162
  { label: t("tui.approval.deny"), value: "deny", description: "Esc", danger: true }
1161
1163
  ];
1162
1164
  }
@@ -1208,10 +1210,11 @@ function ToolConfirmation({
1208
1210
  /* @__PURE__ */ jsx9(Text8, { color: WARN, children: request.reason })
1209
1211
  ] })
1210
1212
  ] }),
1213
+ request.rememberable === false && /* @__PURE__ */ jsx9(Text8, { color: dim7, dimColor: true, wrap: "wrap", children: t("tui.approval.not_rememberable") }),
1211
1214
  /* @__PURE__ */ jsx9(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx9(
1212
1215
  SelectList,
1213
1216
  {
1214
- options: options(),
1217
+ options: options(request.rememberable !== false),
1215
1218
  onSelect: onRespond,
1216
1219
  onCancel: () => onRespond("deny"),
1217
1220
  isActive
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-agent/tui",
3
- "version": "0.7.1",
3
+ "version": "0.9.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": "0.7.1",
33
- "@epoch-agent/view": "0.7.1"
32
+ "@epoch-agent/protocol": "0.9.0",
33
+ "@epoch-agent/view": "0.9.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.1.2",