@epoch-agent/protocol 5.0.0 → 6.0.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/dist/index.d.ts CHANGED
@@ -594,6 +594,20 @@ interface ToolContext {
594
594
  * 失灵**(配了 `false` 却照旧有沙箱),而那种失败用户报得出来。
595
595
  */
596
596
  sandboxTerminal?: boolean;
597
+ /**
598
+ * **宿主自己的安装目录**,绝对路径。不给 = 没有保护区。
599
+ *
600
+ * 它和 {@link sandboxTerminal} 不在一个轴上:那个是「要不要上沙箱」的开关,这一格
601
+ * 是「**上不上都不许写这里**」。宿主传 `buildRuntime({ sandboxProtectedDirs })`,
602
+ * 引擎原样落到这里,`plugin-terminal` 再交给 infra 的 `SandboxPolicy.protectedDirs`。
603
+ *
604
+ * ⚠️ 它压过权限档和提权:`auto` 档今天整个让开沙箱,有这一格时仍会套一个只含
605
+ * deny 的 profile。不要把它实现成「只对 workspace-write 生效」—— 那正好漏掉唯一
606
+ * 一个能改到安装目录的档。
607
+ *
608
+ * ⚠️ Windows 上没有后端,这一格落不了地(`detectBackend()` 恒回 `'none'`)。
609
+ */
610
+ sandboxProtectedDirs?: readonly string[];
597
611
  /**
598
612
  * **模型请求、用户批准的那一个升权目标**。引擎在 `ToolExecutor.resolveEscalation()`
599
613
  * 里校验并审批之后才填它,工具侧拿到的是一份**已经获批**的结论,不该再判一次。
@@ -3438,6 +3452,20 @@ interface EpochConfig {
3438
3452
  /** 单个任务的录像总量上限(MB),缺省 64。先撞哪条算哪条 */
3439
3453
  maxRecordingMb?: number;
3440
3454
  };
3455
+ /**
3456
+ * 后台作业(`terminal({ background: true })` / `delegate_task({ background: true })`)。
3457
+ *
3458
+ * 只有一个开关:作业跑完之后**替用户开一轮**去读结果(引擎那条 note 走的是拉,
3459
+ * 模型起了作业就收工的话那一轮永远不会来)。缺省**开** —— 这一格就是那个功能本身。
3460
+ *
3461
+ * 判据、六条前置条件和它管不着谁,在 core 的 `BackgroundTasksSchema` 与
3462
+ * `server/src/sessions/task-wake.ts` 上。真源是 core 的 `EpochConfigSchema`,
3463
+ * 这一格只是它**解析完之后**那个形状的镜像(同 `sessions` / `automation` 一族)。
3464
+ */
3465
+ backgroundTasks?: {
3466
+ /** 作业结束时自己开一轮,缺省 `true` */
3467
+ wakeOnFinish?: boolean;
3468
+ };
3441
3469
  /**
3442
3470
  * 删一条定时任务时那句确认,宿主可以整句换掉。**缺省 = 我们那句**
3443
3471
  * (`web.ui.auto.remove_confirm`,跟着界面语言翻)。
@@ -6580,8 +6608,8 @@ type ScheduleWideningKind = 'permission' | 'allowlist' | 'enabled';
6580
6608
  * 工作区信任契约。
6581
6609
  *
6582
6610
  * 为什么需要:clone 一个仓库就等于让它的 `AGENTS.md` 进 system prompt、
6583
- * 它的 hook 配置被执行、它的 policy 覆盖本地权限判定。这是漏洞,不是缺功能。
6584
- * 信任判定把「加载项目级配置」这件事收到一次显式用户决策后面。
6611
+ * 它的 hook 配置被执行。epoch 的默认值是信任,所以这份契约真正承载的是
6612
+ * **拒绝名单**:记下用户明确拒掉的目录,其余全部按默认加载。
6585
6613
  *
6586
6614
  * 参照物是 Codex 的 `trust_directory.rs` 和 Gemini CLI 的 `trustedFolders.ts`,都只是
6587
6615
  * 读过的:契约形状跟它们都不一样(它们是三枚举 + 靠 TRUST_PARENT 取 dirname 编码作用域,
@@ -6608,13 +6636,15 @@ type TrustScope =
6608
6636
  /** 这个目录及其所有子目录 */
6609
6637
  | 'directory-tree';
6610
6638
  /**
6611
- * 一次授信授到哪一档。**两档是相加的:`exec` 蕴含 `read`。**
6639
+ * 一次性授到哪一档。**两档是相加的:`exec` 蕴含 `read`。**
6612
6640
  *
6613
- * 拆开的原因:此前 `trusted` 是一个布尔,那一个布尔后面挂着七样东西 —— 其中
6641
+ * ⚠️ **默认信任之后,闸门不再拿这个字段分档**:不拒绝的目录两档一起给,
6642
+ * 被拒绝的两档一起收。字段保留是因为调用点(hook / policy 的加载条件)按档判,
6643
+ * 而且老记录里已经写着它。
6644
+ *
6645
+ * 拆开最初的原因:此前 `trusted` 是一个布尔,那一个布尔后面挂着七样东西 —— 其中
6614
6646
  * `.epoch/hooks.json` 和 `.claude/settings.json` 的每一项都是一条要 spawn 子进程的
6615
- * 命令(判据在 [core/hook/sources.ts](../../core/src/hook/sources.ts) 的文件头)。而用户
6616
- * 被问到的那句话逐字只说了「本目录的项目指令会加载」:**「往上下文里注入一段文本」和
6617
- * 「在这台机器上执行任意命令」共用了同一次点击**,问话只描述了前者。
6647
+ * 命令(判据在 [core/hook/sources.ts](../../core/src/hook/sources.ts) 的文件头)。
6618
6648
  *
6619
6649
  * | 档 | 放开什么 | 风险 |
6620
6650
  * | --- | --------------------------------------------------------------- | ---------- |
@@ -6985,6 +7015,7 @@ declare function packSessionSurface(messages: readonly SessionSurfaceMessage[],
6985
7015
  * | [core/agent/loop.ts](../../core/src/agent/loop.ts) | `verify:stop` 要求继续时注入的那一条(方案 38) |
6986
7016
  * | [core/agent/task-notice.ts](../../core/src/agent/task-notice.ts) | 后台任务的状态通知(方案 36 PR-2) |
6987
7017
  * | [runtime/agent-session.ts](../../runtime/src/agent-session.ts) | 换专家那一刻的留痕,正文取自 catalog `agent_role.*`(方案 57 §3.5) |
7018
+ * | [server/sessions/task-wake.ts](../../server/src/sessions/task-wake.ts) | 后台作业结束时开的那一轮(`[系统] 后台任务 t85 已结束…`)。**同时带 {@link WAKE_NOTE_MARK}** |
6988
7019
  * | [web/thread/system-note.ts](../../web/src/thread/system-note.ts) | **读的那一侧**:认出留痕行,并把前缀剥掉再显示给人看 |
6989
7020
  * | [web/dev/fake-server.ts](../../web/dev/fake-server.ts) | 假服务端造的那条留痕。**不发布**,但漂了会让开发时看到的是另一个界面 |
6990
7021
  *
@@ -6999,8 +7030,8 @@ declare function packSessionSurface(messages: readonly SessionSurfaceMessage[],
6999
7030
  * 前缀就又有了三份副本,而其中两份会跟着译者走。
7000
7031
  *
7001
7032
  * ⚠️ 这个文件在 [scripts/i18n-scan.mjs](../../../scripts/i18n-scan.mjs) 的
7002
- * `SKIP_FILES` 里 —— 那个前缀**恰好是中文、又恰好绝不能翻**,而豁免口是
7003
- * **文件级**的。所以这里除了这一个标记之外**不许再放任何面向用户的文案**,
7033
+ * `SKIP_FILES` 里 —— 那两个标记**恰好是中文、又恰好绝不能翻**,而豁免口是
7034
+ * **文件级**的。所以这里除了这两个标记之外**不许再放任何面向用户的文案**,
7004
7035
  * 否则那条文案会跟着一起免检。
7005
7036
  *
7006
7037
  * 「四处发出点用的是同一个常量」这条不变量由
@@ -7038,6 +7069,37 @@ declare function systemNote(body: string): string;
7038
7069
  * 设计的**已知代价**:认它的凭据只有前缀本身,而那正是模型那一侧的处境。
7039
7070
  */
7040
7071
  declare function stripSystemNote(text: string): string | undefined;
7072
+ /**
7073
+ * 「这一条系统留痕**自己开了一轮**」—— 第二个标记,永远紧跟在
7074
+ * {@link SYSTEM_NOTE_PREFIX} 后面。
7075
+ *
7076
+ * ## 它解决什么
7077
+ *
7078
+ * 后台作业跑完之后,服务端会替用户位开一轮(`[系统] 后台任务 t85 已结束…`)。
7079
+ * 浏览器那一侧只认 `user` 行开一轮(`web/thread/rows.ts` 的 `turnStarts()`),
7080
+ * 于是这条留痕**不开轮**:汇报会挂在上一轮的尾巴上,而 `finalAnswerAt()` 取的是
7081
+ * 「这一轮最后一段有字的正文」—— 上一轮自己的答案会被折进折叠条,屏幕上最后
7082
+ * 那段变成了汇报。
7083
+ *
7084
+ * 所以留痕分成两种,靠这一个字节标记区分:
7085
+ *
7086
+ * | 有没有它 | 这一条留痕 | 浏览器怎么排 |
7087
+ * | -------- | ---------- | ------------ |
7088
+ * | 没有 | 换专家 / 换地盘 / 后台任务状态通知 / verify 注入 | `note`,**不开轮** |
7089
+ * | 有 | 自唤醒(后台作业结束时开的那一轮) | `note`,**开一轮** |
7090
+ *
7091
+ * ## 为什么它也不能翻译
7092
+ *
7093
+ * 同 {@link SYSTEM_NOTE_PREFIX}:认它的两端是**模型**和**浏览器**,两边都只认字节。
7094
+ * 它是中英文都一样的固定串,不进 catalog。
7095
+ */
7096
+ declare const WAKE_NOTE_MARK = "[\u81EA\u5524\u9192] ";
7097
+ /**
7098
+ * 这段正文是一条自唤醒的正文吗 —— 是的话回它**剥掉标记之后**的部分。
7099
+ *
7100
+ * 调用方是先 {@link stripSystemNote} 再走这里(标记在 `[系统] ` 后面)。
7101
+ */
7102
+ declare function stripWakeMark(body: string): string | undefined;
7041
7103
 
7042
7104
  /**
7043
7105
  * `TokenUsage` 的两个口径函数。
@@ -9226,6 +9288,19 @@ interface WireMessageListResponse {
9226
9288
  * 说到一半就断的对话,而分不出「模型自己停了」和「程序被关掉了」。
9227
9289
  */
9228
9290
  interruptedTurnFrom?: number;
9291
+ /**
9292
+ * 上面那批 `messages` **是被截过的**(`?tail=N` 要了最后 N 条)。
9293
+ * 缺席 = 没截,手里是全部。
9294
+ *
9295
+ * 为什么要有这一格:没有它,客户端收到的只是一段看起来完整的历史,
9296
+ * 而「开头那几条去哪了」在界面上没有任何征兆 —— 滚动到顶的人会以为
9297
+ * 之前的对话被删了。**不截就不写这个键**,不要写 `false`。
9298
+ *
9299
+ * ⚠️ 只有带 `?tail=N` 的请求可能拿到它;桌面端不带这个参数,永远看不到。
9300
+ */
9301
+ truncated?: true;
9302
+ /** 截之前一共有多少条(只在 `truncated` 在场时有意义)。 */
9303
+ total?: number;
9229
9304
  }
9230
9305
  declare const WIRE_MESSAGE_LIST_FIELDS: WireFields<WireMessageListResponse>;
9231
9306
  /**
@@ -10659,63 +10734,6 @@ type WirePickDirectoryResponse = {
10659
10734
  } | {
10660
10735
  canceled: true;
10661
10736
  };
10662
- /**
10663
- * 「请弹一个授信对话框」——**门铃,不是开关**(方案 61)。
10664
- *
10665
- * ## ⚠️ 先读这一段:信任的写入口**没有**上网线
10666
- *
10667
- * 全仓最贵的那条纪律逐字还在(方案 42 PR-3,判据在 `wire-security.ts` 文件头):
10668
- * 把信任的写入口搬到 HTTP 上,等于让浏览器决定「哪个目录里的文件能当指令读」。
10669
- *
10670
- * 这条端点**不是**那个写入口,两件事把它和写入口分开:
10671
- *
10672
- * 1. **载荷里没有 `level`,也没有 `scope`。** 浏览器表达不出「把 X 设成已信任」,
10673
- * 它只能说「我想解锁 X,去问问用户」。档位和作用域由宿主的对话框决定;
10674
- * 2. **服务端自己不落盘。** 它只调宿主注入的那个回调
10675
- * (`CreateWebServerOptions.onTrustRequest`),落盘发生在宿主主进程里的
10676
- * `runtime.trust.record()` —— 而那儿是可信代码,和 CLI 同一档。
10677
- *
10678
- * 形状照抄 `POST /api/workspaces/pick`:浏览器发起一个**它自己答不了**的请求,
10679
- * 答案来自一个人在别处按的那一下。
10680
- *
10681
- * ## 200 不代表授信了
10682
- *
10683
- * 响应里**没有** `granted` 那一格,这是刻意的:这条端点在宿主把对话框**弹出来**
10684
- * 之后(或者干脆在 resolve 时)就回 200,它不报告用户选了什么。
10685
- * 要知道结果就重新取一次 `GET /api/sessions/:id/security`(或 capabilities)——
10686
- * 那两份载荷里的 `trusted` / `execTrusted` 是唯一真源。
10687
- *
10688
- * 回一个 `granted` 的代价很具体:那个布尔和盘上的记录会各自演化(宿主的框可能
10689
- * 开着不关、用户可能在 CLI 里同时改),而两者分叉时界面会信错的那一个。
10690
- */
10691
- interface WireTrustRequestRequest {
10692
- /**
10693
- * 要解锁的目录(服务端绝对路径)。
10694
- *
10695
- * ⚠️ **服务端必须校验它**:只接受这个会话绑着的根、或者「已知工作区」清单里
10696
- * 的某一行。不校验的话,一个页面就能让宿主弹出一个「要不要信任 `/`」的框 ——
10697
- * 而对话框本身是可信的,被滥用的是「让谁出现在框里」这件事。
10698
- */
10699
- root: string;
10700
- /**
10701
- * 想解锁哪一档 —— **提示,不是命令**(缺省 `read`)。
10702
- *
10703
- * 它只影响宿主对话框的默认落点:用户从技能页点进来那一下多半只想要读类,
10704
- * 从「hook 没生效」那一处点进来才是执行类。宿主可以无视它。
10705
- */
10706
- want?: 'read' | 'exec';
10707
- }
10708
- declare const WIRE_TRUST_REQUEST_FIELDS: WireFields<WireTrustRequestRequest>;
10709
- /**
10710
- * `POST /api/workspaces/trust-request` 的响应。
10711
- *
10712
- * **只有一格,而且它只说「问出去了」。** 别在这里加 `granted` —— 判据在上面。
10713
- */
10714
- interface WireTrustRequestResponse {
10715
- /** 宿主的回调被调起来了(对话框弹没弹、用户选了什么,这一格都不知道) */
10716
- asked: true;
10717
- }
10718
- declare const WIRE_TRUST_REQUEST_RESPONSE_FIELDS: WireFields<WireTrustRequestResponse>;
10719
10737
  /**
10720
10738
  * 划掉一行**使用记录**。
10721
10739
  *
@@ -10931,9 +10949,25 @@ interface WireRevealWorkspaceRequest {
10931
10949
  *
10932
10950
  * ⚠️ **服务端必须校验它**:只接受「已知工作区」清单里的某一行,或者会话列表里
10933
10951
  * 某个 `bound` 的 `root`。不校验的话,这一条就等于「随便 POST 一个路径就在用户
10934
- * 屏幕上弹一个窗口」—— 形状和 `trust-request` 那道校验逐字同一个判据。
10952
+ * 屏幕上弹一个窗口」—— 判据是:**能让什么出现在用户面前,得是服务端自己认识
10953
+ * 的东西**。
10935
10954
  */
10936
10955
  root: string;
10956
+ /**
10957
+ * 要露出来的**那个文件**(可选)。给了就把「打开 `root`」换成
10958
+ * 「打开 `file` 所在的那一层目录」,`root` 变成它的边界。
10959
+ *
10960
+ * 存在的理由只有一条:文件卡片底部那一枚「在文件夹中显示」。用户要的是
10961
+ * 「这个文件在我电脑上的哪儿」,而打开工作区根只会让他再从根目录里自己翻一遍。
10962
+ *
10963
+ * ⚠️ 边界两道:`root` 自己必需是已知根(同上面那一条);`file` 按 `root` 解析之后
10964
+ * **必须还在 `root` 里面**,否则回 `unknown-root` —— 两边都不区分「不认识」和
10965
+ * 「越界」,判据同服务端的 `knownRoots`。
10966
+ *
10967
+ * 相对路径按 `root` 解析,绝对路径也可以用(文件卡片手上那个字符串是模型写的,
10968
+ * 两种形态都有)。
10969
+ */
10970
+ file?: string;
10937
10971
  }
10938
10972
  declare const WIRE_REVEAL_WORKSPACE_FIELDS: WireFields<WireRevealWorkspaceRequest>;
10939
10973
  /**
@@ -11917,8 +11951,8 @@ interface WireHostEventFrame {
11917
11951
  *
11918
11952
  * 分成三族:
11919
11953
  *
11920
- * 1. **用户在这张页上做了什么**(`menu-select` / `user-menu` / `link`)——
11921
- * 一次性的动作,不补发;
11954
+ * 1. **用户在这张页上做了什么**(`menu-select` / `user-menu` / `link` /
11955
+ * `file-action`)—— 一次性的动作,不补发;
11922
11956
  * 2. **服务端的状态变了**(`config-changed` / `appearance-changed` / `lang-changed` /
11923
11957
  * `plugins-changed` / `mcp-changed` / `mcp-auth-changed` / `roles-changed` /
11924
11958
  * `skills-changed` / `host-slots-changed`)—— 失效信号,宿主收到后自己拉全量;
@@ -11972,6 +12006,20 @@ type WireHostEvent =
11972
12006
  type: 'link';
11973
12007
  url: string;
11974
12008
  }
12009
+ /**
12010
+ * 文件卡片上点了宿主自己配的那一枚(`fileCardActions`)。
12011
+ *
12012
+ * 属于第一族(用户在这张页上做的一件事,**不补发**),和 `menu-select`
12013
+ * 同一个道理:宿主没连着的时候它就是丢了。
12014
+ *
12015
+ * 三格的含义在下面 {@link WireHostEventPublish} 的同名成员上。
12016
+ */
12017
+ | {
12018
+ type: 'file-action';
12019
+ actionId: string;
12020
+ sessionId: string;
12021
+ path: string;
12022
+ }
11975
12023
  /**
11976
12024
  * `POST /api/sessions/:id/settings` 写成功了一项设置。**失效信号**:宿主收到后
11977
12025
  * 自己决定要不要重取 `GET /api/sessions/:id/settings`。
@@ -12089,6 +12137,28 @@ type WireHostEventPublish = {
12089
12137
  } | {
12090
12138
  type: 'link';
12091
12139
  url: string;
12140
+ }
12141
+ /**
12142
+ * 文件卡片上点了**宿主自己配的那一枚**(`fileCardActions`)。
12143
+ *
12144
+ * ## 三格,一格都不多
12145
+ *
12146
+ * - `actionId` —— 宿主写进 `config.yaml` 的那个 `id`,它靠这个认出是哪一枚;
12147
+ * - `sessionId` —— 路径是相对**这段会话绑的工作区根**的,不给这一格宿主解析不了;
12148
+ * - `path` —— 模型在 ```files 围栏里写的那个字符串,**原样**。不拼、不归一、
12149
+ * 不换成绝对路径:换成绝对路径就等于在这一层替宿主猜了一次根,而猜错的那个
12150
+ * 文件会被它的编辑器打开。
12151
+ *
12152
+ * ## 为什么 `default: true` 也走这一条
12153
+ *
12154
+ * 配了 `default` 的那一枚换掉的是「点卡片本身」那一下,而它要交出去的是同一件事
12155
+ * —— 否则宿主得记两条规则(按钮走事件、卡片本身走另一条),而两条一漂就分叉。
12156
+ */
12157
+ | {
12158
+ type: 'file-action';
12159
+ actionId: string;
12160
+ sessionId: string;
12161
+ path: string;
12092
12162
  };
12093
12163
  /**
12094
12164
  * `POST /api/host/events` 的回执。
@@ -12186,6 +12256,14 @@ interface WireHostCommandResponse {
12186
12256
  }
12187
12257
  /** `menu-select.id` 的长度上限(字符)。和 `SidebarMenuItem.id` 的现实长度留足余量 */
12188
12258
  declare const MAX_HOST_EVENT_ID = 256;
12259
+ /**
12260
+ * `file-action.path` 的长度上限(字符)。
12261
+ *
12262
+ * 一条路径的现实长度远小于它(macOS 单段名字上限 255、一个路径通常不到 300);
12263
+ * 留到 4096 是因为**这一格不该成为第二个限制**:模型印出来的路径该不该读不了由
12264
+ * `file-stat` 的边界判,不在这里卡。这一格是挡「一整段任意文本」的兜底。
12265
+ */
12266
+ declare const MAX_HOST_FILE_PATH = 4096;
12189
12267
  /**
12190
12268
  * `POST /api/host/commands {command:'open-session'}` 里 `sessionId` 的长度上限。
12191
12269
  *
@@ -13410,8 +13488,6 @@ interface WireCapabilityProject {
13410
13488
  execTrusted: boolean;
13411
13489
  /** 这个目录里有什么被挡着。**未信任时也是满的**,那正是它的用处 */
13412
13490
  inventory: WireProjectInventory;
13413
- /** 宿主接了「请求授信」那条回调吗 —— 判据同 `WireSecurityWorkspace.trustRequest` */
13414
- trustRequest: boolean;
13415
13491
  }
13416
13492
  declare const WIRE_CAPABILITY_PROJECT_FIELDS: WireFields<WireCapabilityProject>;
13417
13493
  interface WireCapabilitiesResponse {
@@ -15460,7 +15536,8 @@ type WireSandboxReason = 'os-isolated' | 'backend-unavailable' | 'backend-missin
15460
15536
  interface WireSandboxStatus {
15461
15537
  /** `os` = 真被 OS 关起来了;`process` = 只有进程隔离(能读写整盘、能联网) */
15462
15538
  level: 'os' | 'process';
15463
- backend: 'seatbelt' | 'bubblewrap' | 'none';
15539
+ /** `windows-acl` = Windows 的受限令牌 + 完整性标签那套(只包住写与删,PTY 那条路不在内)*/
15540
+ backend: 'seatbelt' | 'bubblewrap' | 'none' | 'windows-acl';
15464
15541
  reason: WireSandboxReason;
15465
15542
  /** `os.platform()` 的原值(`darwin` / `linux` / `win32` …)。界面原样显示 */
15466
15543
  platform: string;
@@ -15702,19 +15779,6 @@ interface WireSecurityWorkspace extends WireSessionWorkspace {
15702
15779
  * 说不出有多少。
15703
15780
  */
15704
15781
  inventory: WireProjectInventory;
15705
- /**
15706
- * 这个服务背后的宿主接了「请求授信」那条回调吗(方案 61 的门铃)。
15707
- *
15708
- * 为真时界面画一枚按钮(点它 = 请宿主弹自己的对话框),为假时画今天那块
15709
- * 「复制 `epoch trust add`」。**不画灰按钮**(决定 20 ①:画一个点了没反应的
15710
- * 菜单项,比不画更糟)。
15711
- *
15712
- * ⚠️ **它是进程级的事实,却在两份载荷上各出现一次**(这里和
15713
- * `WireCapabilityProject.trustRequest`)。不抽成第三个端点是因为那要让这两屏
15714
- * 各多打一发 GET,而「一次取齐」是这两份载荷共同的形状。两处**同源**——
15715
- * server 从同一个 `CreateWebServerOptions.onTrustRequest` 是否存在算出来。
15716
- */
15717
- trustRequest: boolean;
15718
15782
  }
15719
15783
  declare const WIRE_SECURITY_WORKSPACE_FIELDS: WireFields<WireSecurityWorkspace>;
15720
15784
  /**
@@ -18217,6 +18281,57 @@ type SettingsPaneId = (typeof SETTINGS_PANE_IDS)[number];
18217
18281
  */
18218
18282
  declare function isSettingsPaneId(value: string): value is SettingsPaneId;
18219
18283
 
18284
+ /**
18285
+ * 文件卡片上**宿主自己那一排按钮**(`fileCardActions`)。
18286
+ *
18287
+ * ## 为什么这一族进宿主那一块配置
18288
+ *
18289
+ * 「这个文件在我的应用里该怎么打开」只有宿主答得出来:在它自己的编辑器里预览、
18290
+ * 丢进它的上传队列、拿去跑它的某个流程。epoch 这一侧能给的只有两件事 ——
18291
+ * **把路径交出去**、**认不认得这次点击**。所以这里只写「按钮长什么样、什么时候
18292
+ * 出现、点了回哪个码」,动作本身在宿主那一边。
18293
+ *
18294
+ * ## `id` 是唯一回给宿主的东西
18295
+ *
18296
+ * 点下去发的是 `file-action` 宿主事件,载荷 `{ actionId, sessionId, path }` ——
18297
+ * 标签、图标都不发:那两样是宿主自己配的,它手上已经有;多带一份就是多一份会漂
18298
+ * 的副本(判据逐字同 `menu-select` 的 `id`)。
18299
+ *
18300
+ * ## `extensions` 不带点、小写
18301
+ *
18302
+ * 卡片按**文件名的最后一段**匹配(`报表.XLSX` → `xlsx`),写 `['.xlsx']` 或
18303
+ * `['XLSX']` 一条都命中不了。这条不校验也不纠正:配置里那串东西最终要和宿主
18304
+ * 自己那套匹配逻辑对得上,我们擅自归一化只会让它两边不一致。
18305
+ *
18306
+ * ## `default: true` 换掉的是「点卡片本身」那一下
18307
+ *
18308
+ * 缺省那一下是**用系统默认应用打开**(服务端 `openable` 为假时退回站内看一眼 /
18309
+ * 下载)。配了 `default` 的那一条命中时,改发一条 `file-action` —— 整张卡交给
18310
+ * 宿主处理。同一个扩展名上命中两条 `default` 时**先配的那条赢**(顺序就是宿主
18311
+ * 写在配置里的顺序),我们不排序、不去重。
18312
+ */
18313
+ interface FileCardAction {
18314
+ /** 宿主自己认的那个码(`file-action` 的 `actionId`)。同一份配置里应当唯一 */
18315
+ id: string;
18316
+ /** 按钮上那句话(`title` / 读屏念的那一句)。宿主写死,不做本地化 */
18317
+ label: string;
18318
+ /**
18319
+ * 图标名。**收 `string` 而不是联合类型**,判据逐字同 `SidebarMenuItem.icon`:
18320
+ * 为一枚图标让宿主整份配置退默认值完全不成比例。认不出来的落兜底那一枚
18321
+ * (web 的 `hostIcon`,词表就是宿主菜单那张 `HOST_ICONS`)。
18322
+ */
18323
+ icon?: string;
18324
+ /**
18325
+ * 只在这些扩展名上出现(`['xlsx', 'xls']`,不带点、小写)。**缺省 = 所有文件**。
18326
+ */
18327
+ extensions?: readonly string[];
18328
+ /**
18329
+ * 配成 `true` 就把「点卡片本身」那一下交给宿主,而不是本机的默认应用。
18330
+ * 缺省 / `false` 只是卡片底部多一个按钮。
18331
+ */
18332
+ default?: boolean;
18333
+ }
18334
+
18220
18335
  /**
18221
18336
  * 宿主自己那一块配置的**网线形状** —— `GET` / `PUT /api/host/slots`。
18222
18337
  *
@@ -18291,6 +18406,16 @@ interface WireHostSlots {
18291
18406
  settingsHidden?: readonly string[];
18292
18407
  /** 侧栏「插件」那一整块换成宿主那一页 */
18293
18408
  capabilityPane?: CapabilityPane;
18409
+ /**
18410
+ * 文件卡片上**宿主自己那一排按钮**(判据全在
18411
+ * [file-card-action.ts](./file-card-action.ts) 文件头)。
18412
+ *
18413
+ * 缺省 = 卡片底部只有我们自己那一枚「在文件夹中显示」。这一族是**加**的,
18414
+ * 不是换的 —— 宿主能把「点卡片本身」那一下接过去(`default: true`),
18415
+ * 但拿不掉我们那一枚:它回答的是「这个文件在我的电脑上到底在哪」,
18416
+ * 而那个问题永远是本机的。
18417
+ */
18418
+ fileCardActions?: readonly FileCardAction[];
18294
18419
  /** 新会话空屏上的开场卡片 */
18295
18420
  blankCards?: readonly BlankCard[];
18296
18421
  /** 新会话空屏上那段招呼 */
@@ -18455,4 +18580,4 @@ declare const SECRET_SERVICE = "epoch-agent";
18455
18580
  */
18456
18581
  declare const MCP_DATA_KEY_NAME = "mcp-auth-data-key";
18457
18582
 
18458
- export { ACTION_CONTEXTS, AGENT_MESSAGE_NOTE_TITLE, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPEARANCE_ACCENTS, APPEARANCE_BACKGROUND_FITS, APPEARANCE_BACKGROUND_KINDS, APPEARANCE_BACKGROUND_ON_PARAM, APPEARANCE_CODE_FONTS, APPEARANCE_CODE_FONT_SIZE, APPEARANCE_CONTRAST, APPEARANCE_DEFAULT_CODE_FONT_SIZE, APPEARANCE_DEFAULT_FONT_SIZE, APPEARANCE_DIFF_TREE_WIDTH, APPEARANCE_FIRST_SCREEN_FIELDS, APPEARANCE_FIRST_SCREEN_FIELD_ORDER, APPEARANCE_FONT_SIZE, APPEARANCE_LANGS, APPEARANCE_MOTION, APPEARANCE_ROOT_ATTRIBUTES, APPEARANCE_SIDEBAR_WIDTH, APPEARANCE_THEMES, APPEARANCE_THEME_NAME_MAX, APPEARANCE_TRANSLUCENT, APPEARANCE_UI_FONTS, APPROVAL_OUTCOMES, APPROVAL_POLICIES, type ActiveAgentRole, type ActivityKind, type AgentEvent, type AgentEventOf, type AgentEventType, type AgentMemberInfo, type AgentMemberStatus, type AgentMessage, type AgentRole, type AgentRoleScope, type AgentRoleSource, type AppearanceAccent, type AppearanceAccentValue, type AppearanceBackground, type AppearanceBackgroundFit, type AppearanceBackgroundKind, type AppearanceCodeFont, type AppearanceEffectiveTheme, type AppearanceFirstScreenField, type AppearanceFirstScreenKind, type AppearanceLang, type AppearanceModePatch, type AppearanceMotion, type AppearanceTheme, type AppearanceUiFont, type AppearanceVisualSource, type ApprovalAnswer, type ApprovalOutcome, type ApprovalPolicy, type ApprovalReply, type ApprovalRequest, type ApprovalScope, type ArtifactKind, type AttributeValue, type Attributes, BRAND_WHEN_SIDEBAR_COLLAPSED, type BackgroundTaskInfo, type BackgroundTaskKind, type BackgroundTaskStatus, type BlankCard, type BlankGreeting, type BoardChannel, type BoardPost, type BoardThread, type BoundKey, type BrandWhenSidebarCollapsed, type BudgetBreach, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, CURRENCIES, type CapabilityPane, type Catalogs, type ComplianceAction, type ComplianceCategory, type ContextBreakdown, type ContextCacheStats, type ContextNote, type ContextSegment, type ContextSegmentKind, type Currency, type CurrencyDisplay, type CustomCommandDef, type CustomCommandSource, DEFAULT_AGENT_ROLE, DEFAULT_LANG, DEFAULT_PERMISSION_LEVEL, type DecidedTrustLevel, type Diagnostic, DiagnosticSink, type DiagnosticStatus, ENGINE_RESTART_ACCEPTED_STATUS, ENTRY_REF_PREFIX, ENTRY_SECRET_PREFIX, type EpochConfig, type EpochContentPart, type EpochDiffSnapshot, type EpochFilePart, type EpochHook, type EpochImagePart, type EpochMessage, type EpochMessageRole, type EpochPlugin, type EpochSessionPart, type EpochSkill, type EpochTextPart, type EpochTool, type EpochToolCall, type EpochToolResult, type EpochTurnFacts, type EpochUserCommand, type EpochUserContent, type ExpandedCommand, FOLLOW_SYSTEM, type FileOmitReason, type FinishReason, type FixableApproval, type FlatCatalog, type FormatMoneyOptions, GEN_AI, HEADLESS_INPUT_EVENT_TYPES, HEADLESS_INPUT_FORMATS, HEADLESS_OUTPUT_FORMATS, HEADLESS_PROTOCOL_VERSION, HOST_COMMANDS, HOST_SLOTS_STALE_CODE, type HeadlessEnvelope, type HeadlessEvent, type HeadlessInit, type HeadlessInputEvent, type HeadlessInputEventType, type HeadlessInputFormat, type HeadlessLifecycleEvent, type HeadlessOutputFormat, type HeadlessResult, type HeadlessResultReason, type HookContext, type HookEvent, type HookHandler, type HookManager, type HookRegistration, type HookType, type HostText, type HostUser, type Hsv, type JsonSchema, KEY_ACTIONS, type KeyAction, type KeyChord, type KeyContext, type KeySequence, type KeybindingReport, type KeybindingSource, type KeybindingTable, LANGS, LEAD_AGENT_ID, LEGACY_LEVEL_ALIASES, type Lang, type LocalizedDetail, type LogFn, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_HOST_EVENT_ID, MAX_HOST_EVENT_KEY, MAX_HOST_PLUGIN_NAME, MAX_HOST_SESSION_ID, MAX_HOST_SKILL_NAME, MAX_HOST_SLOTS_JSON, MAX_LINK_URL, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, MCP_LOGIN_IN_FLIGHT_CODE, METRIC, MIN_OPTIONS, MODEL_ENTRY_PROTOCOLS, type MentionSet, type ModelEntry, type ModelEntryCapabilities, type ModelEntryProtocol, type ModelRef, type ModelSelection, type ModelSelectionOrigin, type MoneyDigits, NOOP_TELEMETRY, type NoticeCode, OFFLOADED_IMAGE_NOTE, OPENABLE_LINK_SCHEMES, OPERATION_TYPES, OVERSIZE_RATIO, type Operation, type OperationType, PERMISSION_LEVELS, PLAN_OUTCOMES, PLUGIN_CATEGORY_DISPLAY_SEP, PLUGIN_PREVIEW_STREAM_MIME, PROVIDER_INFOS, PROVIDER_TYPES, type PermissionDecision, type PermissionLevel, type PermissionManager, type PermissionRuleLists, type PlanApprovalOutcome, type PlanProposal, type PluginContext, type ProviderInfo, type ProviderType, type QuestionAnswer, type QuestionItem, type QuestionOption, type QuestionPage, type QuestionRequest, REASONING_EFFORTS, REASONING_OFF, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, type ReasoningChoice, type ReasoningEffort, type ReasoningState, type RejectReason, type RejectedKey, type ResolvedAppearanceVisual, type RuleValue, SCHEDULE_CONFIRM_PLACEHOLDER, SCHEDULE_DEFAULT_PERMISSION, SCHEDULE_DRAFT_SAVED_MARK, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MAX_MINUTES, SCHEDULE_INTERVAL_MIN_MINUTES, SCHEDULE_MAX_TIMES_PER_DAY, SCHEDULE_RUN_STATUSES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SETTINGS_PANE_IDS, SHELL_KINDS, SIMULTANEOUS_CONTEXTS, SKILL_FILES_UNKNOWN_CODE, SYSTEM_NOTE_PREFIX, type SandboxMode, type ScheduleAllowlist, type ScheduleBackendKind, type ScheduleCronTrigger, type ScheduleCycle, type ScheduleDefinition, type ScheduleDraft, type ScheduleDraftAllowlist, type ScheduleDraftCreate, type ScheduleDraftPermission, type ScheduleDraftUpdate, type SchedulePendingApproval, type SchedulePendingItem, type ScheduleRun, type ScheduleRunStatus, type ScheduleRunnerSpec, type ScheduleTrigger, type ScheduleTriggerKind, type ScheduleWeekday, type ScheduleWideningKind, type SearchProviderType, type SecretBackendId, type SecretStore, type SelectionContext, type SelectionRejection, type SelectionWarning, type SessionAttachKind, type SessionAttachResult, type SessionOmitReason, type SessionSurfaceMessage, type SessionSurfaceView, type SetSelectionResult, type SettingsPaneId, type SettingsPaneItem, type ShellKind, type SidebarMenuItem, type SidebarNavItem, type SpanLike, type SubToolCall, type SubToolCallResult, type TeamTask, type TeamTaskPatch, type TeamTaskStatus, type Telemetry, type TokenUsage, type ToolActivity, type ToolAnnotations, type ToolArtifact, type ToolArtifactInput, type ToolContext, type ToolDefinition, ToolExposure, type ToolProvider, type ToolResult, type Translate, type TranslateVars, type TrayMenuItem, type TrustExecGrant, type TrustGrant, type TrustLevel, type TrustManager, type TrustRecord, type TrustScope, type TrustTier, UNLIMITED_TURNS, type VerifyResult, WIRE_ABORT_FIELDS, WIRE_ABOUT_FIELDS, WIRE_AGENT_ROLE_FIELDS, WIRE_APPEARANCE_RESPONSE_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_REQUEST_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_RESPONSE_FIELDS, WIRE_APPROVAL_LIST_FIELDS, WIRE_APPROVAL_ROW_FIELDS, WIRE_ARTIFACTS_FIELDS, WIRE_ATTACHMENT_FOLDER_FIELDS, WIRE_ATTACHMENT_UPLOAD_FIELDS, WIRE_AUDIT_LOG_FIELDS, WIRE_AUDIT_ROW_FIELDS, WIRE_AUTH_COOKIE, WIRE_AUTH_COOKIE_ATTRS, WIRE_AUTH_TOKEN_PARAM, WIRE_BACKGROUND_TASK_FIELDS, WIRE_BLOCKED_GOALS_FIELDS, WIRE_BLOCKED_GOAL_FIELDS, WIRE_BLOCKED_LEVEL_FIELDS, WIRE_BUILTIN_CONNECTOR_FIELDS, WIRE_CACHED_APPROVAL_FIELDS, WIRE_CAPABILITIES_FIELDS, WIRE_CAPABILITY_PROJECT_FIELDS, WIRE_CHECKPOINT_LIST_FIELDS, WIRE_CHECKPOINT_SUMMARY_FIELDS, WIRE_COMMANDS_FIELDS, WIRE_COMMAND_EXPANSION_FIELDS, WIRE_COMPACT_FIELDS, WIRE_COMPRESSION_LINE_FIELDS, WIRE_CONFIG_FIELDS, WIRE_CONTEXT_FIELDS, WIRE_CREATE_SESSION_FIELDS, WIRE_CREATE_WORKSPACE_FIELDS, WIRE_CREATE_WORKSPACE_RESPONSE_FIELDS, WIRE_CUSTOM_COMMAND_FIELDS, WIRE_DELETE_SESSION_FIELDS, WIRE_DIFF_FILE_FIELDS, WIRE_DIFF_FILE_RESPONSE_FIELDS, WIRE_ERROR_FIELDS, WIRE_FILE_CANDIDATES_FIELDS, WIRE_FILE_CANDIDATE_FIELDS, WIRE_FILE_CHANGE_FIELDS, WIRE_FILE_OPEN_RESPONSE_FIELDS, WIRE_FILE_REFERENCE_FIELDS, WIRE_FILE_STAT_MAX, WIRE_FILE_STAT_OK_FIELDS, WIRE_FILE_STAT_REFUSED_FIELDS, WIRE_FILE_STAT_RESPONSE_FIELDS, WIRE_FILE_TEXT_RESPONSE_FIELDS, WIRE_FORGET_WORKSPACE_FIELDS, WIRE_FORGET_WORKSPACE_RESPONSE_FIELDS, WIRE_GOAL_ACTIONS, WIRE_GOAL_BLOCK_FIELDS, WIRE_GOAL_CLEAR_FIELDS, WIRE_GOAL_CREATE_FIELDS, WIRE_GOAL_FIELDS, WIRE_GOAL_LIMITS_FIELDS, WIRE_GOAL_PHASES, WIRE_GOAL_REFUSALS, WIRE_GOAL_RESPONSE_FIELDS, WIRE_GOAL_WRITE_FIELDS, WIRE_HEALTH_FIELDS, WIRE_IMAGE_REFERENCE_FIELDS, WIRE_KNOWN_WORKSPACE_FIELDS, WIRE_LANG_PARAM, WIRE_LAST_SESSION_FIELDS, WIRE_LAST_SESSION_RESPONSE_FIELDS, WIRE_MANAGED_LOCK_FIELDS, WIRE_MCP_ADD_FIELDS, WIRE_MCP_ADD_RESPONSE_FIELDS, WIRE_MCP_APPLY_ENTRY_FIELDS, WIRE_MCP_APPLY_RESPONSE_FIELDS, WIRE_MCP_CONFIG_APPLY_FIELDS, WIRE_MCP_CONFIG_FIELDS, WIRE_MCP_CONFIG_ISSUE_FIELDS, WIRE_MCP_CONFIG_SAVE_FIELDS, WIRE_MCP_CONFIG_SAVE_RESPONSE_FIELDS, WIRE_MCP_CONNECTOR_FIELDS, WIRE_MCP_ENTRY_RESPONSE_FIELDS, WIRE_MCP_LIST_FIELDS, WIRE_MCP_RECONNECT_FIELDS, WIRE_MCP_REMOVE_FIELDS, WIRE_MCP_REMOVE_RESPONSE_FIELDS, WIRE_MCP_TOGGLE_FIELDS, WIRE_MCP_TOGGLE_RESPONSE_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_ENTRIES_FIELDS, WIRE_MODEL_ENTRY_MODELS_FIELDS, WIRE_MODEL_ENTRY_SAVE_FIELDS, WIRE_MODEL_ENTRY_TEST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_PATCH_SESSION_FIELDS, WIRE_PATCH_SESSION_RESPONSE_FIELDS, WIRE_PERMISSION_RULE_FIELDS, WIRE_PERMISSION_SET_REQUEST_FIELDS, WIRE_PERMISSION_SET_RESPONSE_FIELDS, WIRE_PERMISSION_SHADOW_FIELDS, WIRE_PERMISSION_STATE_FIELDS, WIRE_PERMISSION_STATUS_FIELDS, WIRE_PLAN_ACTIONS, WIRE_PLAN_FIELDS, WIRE_PLAN_MODE_REQUEST_FIELDS, WIRE_PLAN_MODE_RESPONSE_FIELDS, WIRE_PLAN_MODE_STATE_FIELDS, WIRE_PLUGINS_FIELDS, WIRE_PLUGIN_ACTION_FIELDS, WIRE_PLUGIN_ARCHIVE_SUFFIXES, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_STAGE_FIELDS, WIRE_PLUGIN_STAGE_RESPONSE_FIELDS, WIRE_PLUGIN_TOGGLE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_VIEW_FIELDS, WIRE_PLUGIN_VIEW_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROJECT_INVENTORY_FIELDS, WIRE_PROVIDER_GROUPS, WIRE_QUESTION_LIST_FIELDS, WIRE_QUESTION_ROW_FIELDS, WIRE_RESPOND_APPROVAL_FIELDS, WIRE_RESPOND_APPROVAL_RESPONSE_FIELDS, WIRE_RESPOND_QUESTION_FIELDS, WIRE_RESPOND_QUESTION_RESPONSE_FIELDS, WIRE_REVEAL_WORKSPACE_FIELDS, WIRE_REVEAL_WORKSPACE_RESPONSE_FIELDS, WIRE_REVIVE_FIELDS, WIRE_REWIND_FILE_PLAN_FIELDS, WIRE_REWIND_OUTCOME_FIELDS, WIRE_REWIND_PREVIEW_FIELDS, WIRE_REWIND_REQUEST_FIELDS, WIRE_REWIND_RESPONSE_FIELDS, WIRE_REWIND_SCOPES, WIRE_ROLES_FIELDS, WIRE_ROLE_ADD_FIELDS, WIRE_ROLE_ADD_RESPONSE_FIELDS, WIRE_ROLE_REMOVE_FIELDS, WIRE_RUNNING_SCHEDULE_FIELDS, WIRE_SANDBOX_STATUS_FIELDS, WIRE_SCHEDULE_CAPABILITY_FIELDS, WIRE_SCHEDULE_CREATE_FIELDS, WIRE_SCHEDULE_DEFAULTS_FIELDS, WIRE_SCHEDULE_DELETE_FIELDS, WIRE_SCHEDULE_FIELDS, WIRE_SCHEDULE_FIX_FIELDS, WIRE_SCHEDULE_FIX_REQUEST_FIELDS, WIRE_SCHEDULE_ISSUE_CODES, WIRE_SCHEDULE_LIST_FIELDS, WIRE_SCHEDULE_PENDING_FIELDS, WIRE_SCHEDULE_RECORDING_FIELDS, WIRE_SCHEDULE_ROW_FIELDS, WIRE_SCHEDULE_RUNNING_FIELDS, WIRE_SCHEDULE_RUNS_FIELDS, WIRE_SCHEDULE_RUN_FIELDS, WIRE_SCHEDULE_SAVE_FIELDS, WIRE_SECURITY_FIELDS, WIRE_SECURITY_WORKSPACE_FIELDS, WIRE_SEND_MESSAGE_FIELDS, WIRE_SEND_MESSAGE_RESPONSE_FIELDS, WIRE_SESSION_BRANCH_RESPONSE_FIELDS, WIRE_SESSION_CANDIDATES_FIELDS, WIRE_SESSION_CANDIDATE_FIELDS, WIRE_SESSION_FINISH_FIELDS, WIRE_SESSION_LIST_FIELDS, WIRE_SESSION_REFERENCE_FIELDS, WIRE_SESSION_RESPONSE_FIELDS, WIRE_SESSION_SUMMARY_FIELDS, WIRE_SESSION_WORKSPACE_FIELDS, WIRE_SESSION_WORKSPACE_RESPONSE_FIELDS, WIRE_SETTINGS_FIELDS, WIRE_SETTINGS_WRITE_FIELDS, WIRE_SETTINGS_WRITE_REQUEST_FIELDS, WIRE_SETTING_PENDING_FIELDS, WIRE_SETTING_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_DROP_SUFFIXES, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_SKILL_STAGE_FIELDS, WIRE_SKILL_TOGGLE_FIELDS, WIRE_SUBAGENT_LIST_FIELDS, WIRE_TASKS_FIELDS, WIRE_TEAM_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_TRUST_REQUEST_FIELDS, WIRE_TRUST_REQUEST_RESPONSE_FIELDS, WIRE_WITHDRAW_MESSAGE_FIELDS, WIRE_WORKSPACE_DIFF_FIELDS, WIRE_WORKSPACE_DIRS_FIELDS, WIRE_WORKSPACE_DIR_ENTRY_FIELDS, WIRE_WORKSPACE_REF_FIELDS, type WireAbortResponse, type WireAbout, type WireAgentEnvelope, type WireAgentEvent, type WireAgentRoleSummary, type WireAppearanceRequest, type WireAppearanceResponse, type WireApprovalCacheRevokeRequest, type WireApprovalCacheRevokeResponse, type WireApprovalListResponse, type WireApprovalRequest, type WireArtifactsResponse, type WireAttachmentFolderResponse, type WireAttachmentUploadResponse, type WireAuditCode, type WireAuditLog, type WireAuditOutcome, type WireAuditRow, type WireAuthDenyReason, type WireAuthDenyStatus, type WireAuthGuard, type WireAuthRequestView, type WireAuthVerdict, type WireBackgroundTask, type WireBindWorkspaceRequest, type WireBlockedGoal, type WireBlockedGoalsResponse, type WireBlockedLevel, type WireBuiltinConnector, type WireCachedApproval, type WireCachedDecision, type WireCapabilitiesResponse, type WireCapabilityProject, type WireCheckpointListResponse, type WireCheckpointSummary, type WireCommandExpansion, type WireCommandsResponse, type WireCompactRequest, type WireCompactResponse, type WireCompressionLine, type WireConfigResponse, type WireContextResponse, type WireCreateSessionRequest, type WireCreateSessionResponse, type WireCreateWorkspaceRequest, type WireCreateWorkspaceResponse, type WireCustomCommand, type WireDeleteSessionResponse, type WireDiffFile, type WireDiffFileResponse, type WireDiffNote, type WireDiffOmitReason, type WireDiffSource, type WireDiffStatus, type WireEffectiveModel, type WireEffectiveSlots, type WireEngineRestartDone, type WireEngineRestartError, type WireEngineRestartMode, type WireEngineRestartRefused, type WireEngineRestartRequest, type WireEngineRestartResponse, type WireEntryProbeCode, type WireEntryProvider, type WireEnvelope, type WireErrorResponse, type WireEvent, type WireFields, type WireFileCandidate, type WireFileCandidatesResponse, type WireFileChange, type WireFileKind, type WireFileOpenRefusal, type WireFileOpenResponse, type WireFileReference, type WireFileRefusal, type WireFileStat, type WireFileStatOk, type WireFileStatRefused, type WireFileStatResponse, type WireFileTextResponse, type WireFixture, type WireFixtureCase, type WireForgetWorkspaceRequest, type WireForgetWorkspaceResponse, type WireGoal, type WireGoalBlock, type WireGoalClearResponse, type WireGoalCreateRequest, type WireGoalLimits, type WireGoalPhase, type WireGoalRefusal, type WireGoalResponse, type WireGoalUpdateRequest, type WireGoalWriteResponse, type WireHealthResponse, type WireHostBadgeRequest, type WireHostBadges, type WireHostCommand, type WireHostCommandRequest, type WireHostCommandResponse, type WireHostCompose, type WireHostComposeRequest, type WireHostComposeResponse, type WireHostComposeStateResponse, type WireHostComposeTakeResponse, type WireHostEvent, type WireHostEventFrame, type WireHostEventPublish, type WireHostEventPublishResponse, type WireHostMenuAction, type WireHostMenuRect, type WireHostSlots, type WireHostSlotsResponse, type WireHostSlotsWriteRequest, type WireHostSlotsWriteResponse, type WireHostTray, type WireHostTrayItemRequest, type WireHostTrayRequest, type WireHubEnvelope, type WireHubEvent, type WireImageReference, type WireKnownWorkspace, type WireKnownWorkspaceRef, type WireLastSessionRequest, type WireLastSessionResponse, type WireManagedLock, type WireMcpAddRequest, type WireMcpAddResponse, type WireMcpApplyAction, type WireMcpApplyEntry, type WireMcpApplyResponse, type WireMcpConfigApplyRequest, type WireMcpConfigIssue, type WireMcpConfigResponse, type WireMcpConfigSaveRequest, type WireMcpConfigSaveResponse, type WireMcpConnector, type WireMcpEntryResponse, type WireMcpListResponse, type WireMcpLoginResponse, type WireMcpLogoutResponse, type WireMcpReconnectResponse, type WireMcpRemoveRequest, type WireMcpRemoveResponse, type WireMcpToggleRequest, type WireMcpToggleResponse, type WireMcpUpdateRequest, type WireMcpUpdateResponse, type WireMessageListResponse, type WireModelCaveat, type WireModelEffortRequest, type WireModelEffortResponse, type WireModelEntriesResponse, type WireModelEntry, type WireModelEntryModelsResponse, type WireModelEntryProbeRequest, type WireModelEntryRefRequest, type WireModelEntryRefs, type WireModelEntrySaveRequest, type WireModelEntrySaveResponse, type WireModelEntryTestResponse, type WireModelRejection, type WireModelResponse, type WireModelSelection, type WireModelSetRequest, type WireModelSetResponse, type WirePatchSessionRequest, type WirePatchSessionResponse, type WirePermissionRememberFailure, type WirePermissionRuleRow, type WirePermissionSetRequest, type WirePermissionSetResponse, type WirePermissionShadow, type WirePermissionState, type WirePermissionStatus, type WirePickDirectoryResponse, type WirePlanAction, type WirePlanModeRequest, type WirePlanModeResponse, type WirePlanModeState, type WirePlanResponse, type WirePluginActionResponse, type WirePluginCounts, type WirePluginDependency, type WirePluginDependencyInventory, type WirePluginDependencyStatus, type WirePluginDoc, type WirePluginDocs, type WirePluginEntry, type WirePluginHookTally, type WirePluginLocalInstallRequest, type WirePluginLocalRequest, type WirePluginNameRequest, type WirePluginPanel, type WirePluginPreview, type WirePluginPreviewResponse, type WirePluginPreviewStreamLine, type WirePluginProgressStep, type WirePluginRefuseReason, type WirePluginSourceType, type WirePluginStageRequest, type WirePluginStageResponse, type WirePluginToggleRequest, type WirePluginUpdateRequest, type WirePluginVersionUnmet, type WirePluginViewRequest, type WirePluginViewResponse, type WirePluginsResponse, type WirePolicyDir, type WirePolicyStatus, type WireProjectInventory, type WireProviderGroup, type WireQuestionListResponse, type WireQuestionRequest, type WireReplayMessage, type WireResetReason, type WireRespondApprovalRequest, type WireRespondApprovalResponse, type WireRespondQuestionRequest, type WireRespondQuestionResponse, type WireRevealWorkspaceRefusal, type WireRevealWorkspaceRequest, type WireRevealWorkspaceResponse, type WireReviveResponse, type WireRewindAction, type WireRewindDrift, type WireRewindFilePlan, type WireRewindOutcome, type WireRewindPreview, type WireRewindRequest, type WireRewindResponse, type WireRewindScope, type WireRoleAddRequest, type WireRoleAddResponse, type WireRoleRemoveFailure, type WireRoleRemoveResponse, type WireRolesResponse, type WireRunningSchedule, type WireSandboxReason, type WireSandboxStatus, type WireScheduleCancelResponse, type WireScheduleCapability, type WireScheduleCreateRequest, type WireScheduleDefaults, type WireScheduleDeleteResponse, type WireScheduleFixRequest, type WireScheduleFixResponse, type WireScheduleIssue, type WireScheduleIssueCode, type WireScheduleListResponse, type WireSchedulePendingResponse, type WireScheduleRecordingResponse, type WireScheduleRegisterRefusal, type WireScheduleRegisterWarning, type WireScheduleRegistration, type WireScheduleResponse, type WireScheduleRow, type WireScheduleRunResponse, type WireScheduleRunningResponse, type WireScheduleRunsResponse, type WireScheduleSaveResponse, type WireScheduleUpdateRequest, type WireSecurityResponse, type WireSecurityWorkspace, type WireSendMessageRequest, type WireSendMessageResponse, type WireSessionBranchResponse, type WireSessionCandidate, type WireSessionCandidatesResponse, type WireSessionFinish, type WireSessionListResponse, type WireSessionReference, type WireSessionResponse, type WireSessionSummary, type WireSessionWorkspace, type WireSessionWorkspaceResponse, type WireSettingApply, type WireSettingFutile, type WireSettingLayer, type WireSettingPending, type WireSettingRow, type WireSettingStep, type WireSettingValue, type WireSettingValueKind, type WireSettingWrite, type WireSettingWriteLayer, type WireSettingsResponse, type WireSettingsWriteRequest, type WireSettingsWriteResponse, type WireSkillBodyResponse, type WireSkillEntry, type WireSkillFile, type WireSkillFilesResponse, type WireSkillImportConflict, type WireSkillImportEntry, type WireSkillImportFailure, type WireSkillImportForm, type WireSkillImportIssue, type WireSkillImportPreviewResponse, type WireSkillImportResponse, type WireSkillRemoveFailure, type WireSkillRemoveResponse, type WireSkillStageFailure, type WireSkillStageResponse, type WireSkillSummary, type WireSkillToggleRequest, type WireSkillToggleResponse, type WireSkillsResponse, type WireSubagentListResponse, type WireSubagentRow, type WireSubagentStatus, type WireSummaryWorkspace, type WireTaggedEvent, type WireTasksResponse, type WireTeamResponse, type WireToolGate, type WireToolGateAxis, type WireToolRow, type WireToolSummary, type WireToolVerdict, type WireToolsResponse, type WireTrayItemOverride, type WireTrustRequestRequest, type WireTrustRequestResponse, type WireTurnState, type WireWithdrawMessageResponse, type WireWorkspaceBinding, type WireWorkspaceDiffResponse, type WireWorkspaceDirEntry, type WireWorkspaceDirsResponse, type WireWorkspaceRef, accentScale, activityOf, agentMessageLine, apiKeyEnvVar, appearanceInlineVars, appearanceRootAttributes, appearanceVisualCss, approvalPolicyForLevel, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, cronTimes, diagnosticToLine, encodeAppearanceFirstScreenValue, entryDisplayName, entryRef, entrySecretName, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, fillPlaceholders, flattenCatalog, formatAppearanceTranslucent, formatMoney, getProviderInfo, hasFailure, hexToHsv, hsvToHex, imagePartOmittedSummary, isAppearanceAccent, isAppearanceAccentValue, isAppearanceBackground, isAppearanceBackgroundFit, isAppearanceBackgroundKind, isAppearanceCodeFont, isAppearanceCodeFontSize, isAppearanceContrast, isAppearanceDiffTreeWidth, isAppearanceFontSize, isAppearanceLang, isAppearanceModePatch, isAppearanceMotion, isAppearanceSidebarWidth, isAppearanceTheme, isAppearanceThemeName, isAppearanceTranslucent, isAppearanceUiFont, isApprovalOutcome, isContextNearlyFull, isCurrency, isEntrySecretName, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isHexColor, isHostCommand, isHostMenuAction, isKeyAction, isLang, isMentionableFilePath, isModelEntryId, isOpenableLink, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isReasoningEffort, isSearchProviderType, isSettingsPaneId, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWirePluginArchiveName, isWireRewindScope, isWireSettingWriteLayer, isWireSkillDropName, liveDetail, makeTranslate, mcpConnectorState, normalizeAppearanceTranslucent, normalizeApproval, offloadedImagePart, packSessionSurface, parseAppearanceTranslucentText, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, relativeLuminance, resolveAppearanceVisual, resolveHostText, resolvePermissionLevel, sequenceId, sessionPartSummary, sessionSenderLabel, snapAppearanceContrast, stripSystemNote, stripTurnDigest, systemNote, tableOf, toolActivity, totalUsageTokens, translatorFor, truncateToBudget, turnDigest, unfixedRules, utf8ByteLength, wireFields };
18583
+ export { ACTION_CONTEXTS, AGENT_MESSAGE_NOTE_TITLE, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPEARANCE_ACCENTS, APPEARANCE_BACKGROUND_FITS, APPEARANCE_BACKGROUND_KINDS, APPEARANCE_BACKGROUND_ON_PARAM, APPEARANCE_CODE_FONTS, APPEARANCE_CODE_FONT_SIZE, APPEARANCE_CONTRAST, APPEARANCE_DEFAULT_CODE_FONT_SIZE, APPEARANCE_DEFAULT_FONT_SIZE, APPEARANCE_DIFF_TREE_WIDTH, APPEARANCE_FIRST_SCREEN_FIELDS, APPEARANCE_FIRST_SCREEN_FIELD_ORDER, APPEARANCE_FONT_SIZE, APPEARANCE_LANGS, APPEARANCE_MOTION, APPEARANCE_ROOT_ATTRIBUTES, APPEARANCE_SIDEBAR_WIDTH, APPEARANCE_THEMES, APPEARANCE_THEME_NAME_MAX, APPEARANCE_TRANSLUCENT, APPEARANCE_UI_FONTS, APPROVAL_OUTCOMES, APPROVAL_POLICIES, type ActiveAgentRole, type ActivityKind, type AgentEvent, type AgentEventOf, type AgentEventType, type AgentMemberInfo, type AgentMemberStatus, type AgentMessage, type AgentRole, type AgentRoleScope, type AgentRoleSource, type AppearanceAccent, type AppearanceAccentValue, type AppearanceBackground, type AppearanceBackgroundFit, type AppearanceBackgroundKind, type AppearanceCodeFont, type AppearanceEffectiveTheme, type AppearanceFirstScreenField, type AppearanceFirstScreenKind, type AppearanceLang, type AppearanceModePatch, type AppearanceMotion, type AppearanceTheme, type AppearanceUiFont, type AppearanceVisualSource, type ApprovalAnswer, type ApprovalOutcome, type ApprovalPolicy, type ApprovalReply, type ApprovalRequest, type ApprovalScope, type ArtifactKind, type AttributeValue, type Attributes, BRAND_WHEN_SIDEBAR_COLLAPSED, type BackgroundTaskInfo, type BackgroundTaskKind, type BackgroundTaskStatus, type BlankCard, type BlankGreeting, type BoardChannel, type BoardPost, type BoardThread, type BoundKey, type BrandWhenSidebarCollapsed, type BudgetBreach, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, CURRENCIES, type CapabilityPane, type Catalogs, type ComplianceAction, type ComplianceCategory, type ContextBreakdown, type ContextCacheStats, type ContextNote, type ContextSegment, type ContextSegmentKind, type Currency, type CurrencyDisplay, type CustomCommandDef, type CustomCommandSource, DEFAULT_AGENT_ROLE, DEFAULT_LANG, DEFAULT_PERMISSION_LEVEL, type DecidedTrustLevel, type Diagnostic, DiagnosticSink, type DiagnosticStatus, ENGINE_RESTART_ACCEPTED_STATUS, ENTRY_REF_PREFIX, ENTRY_SECRET_PREFIX, type EpochConfig, type EpochContentPart, type EpochDiffSnapshot, type EpochFilePart, type EpochHook, type EpochImagePart, type EpochMessage, type EpochMessageRole, type EpochPlugin, type EpochSessionPart, type EpochSkill, type EpochTextPart, type EpochTool, type EpochToolCall, type EpochToolResult, type EpochTurnFacts, type EpochUserCommand, type EpochUserContent, type ExpandedCommand, FOLLOW_SYSTEM, type FileCardAction, type FileOmitReason, type FinishReason, type FixableApproval, type FlatCatalog, type FormatMoneyOptions, GEN_AI, HEADLESS_INPUT_EVENT_TYPES, HEADLESS_INPUT_FORMATS, HEADLESS_OUTPUT_FORMATS, HEADLESS_PROTOCOL_VERSION, HOST_COMMANDS, HOST_SLOTS_STALE_CODE, type HeadlessEnvelope, type HeadlessEvent, type HeadlessInit, type HeadlessInputEvent, type HeadlessInputEventType, type HeadlessInputFormat, type HeadlessLifecycleEvent, type HeadlessOutputFormat, type HeadlessResult, type HeadlessResultReason, type HookContext, type HookEvent, type HookHandler, type HookManager, type HookRegistration, type HookType, type HostText, type HostUser, type Hsv, type JsonSchema, KEY_ACTIONS, type KeyAction, type KeyChord, type KeyContext, type KeySequence, type KeybindingReport, type KeybindingSource, type KeybindingTable, LANGS, LEAD_AGENT_ID, LEGACY_LEVEL_ALIASES, type Lang, type LocalizedDetail, type LogFn, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_HOST_EVENT_ID, MAX_HOST_EVENT_KEY, MAX_HOST_FILE_PATH, MAX_HOST_PLUGIN_NAME, MAX_HOST_SESSION_ID, MAX_HOST_SKILL_NAME, MAX_HOST_SLOTS_JSON, MAX_LINK_URL, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, MCP_LOGIN_IN_FLIGHT_CODE, METRIC, MIN_OPTIONS, MODEL_ENTRY_PROTOCOLS, type MentionSet, type ModelEntry, type ModelEntryCapabilities, type ModelEntryProtocol, type ModelRef, type ModelSelection, type ModelSelectionOrigin, type MoneyDigits, NOOP_TELEMETRY, type NoticeCode, OFFLOADED_IMAGE_NOTE, OPENABLE_LINK_SCHEMES, OPERATION_TYPES, OVERSIZE_RATIO, type Operation, type OperationType, PERMISSION_LEVELS, PLAN_OUTCOMES, PLUGIN_CATEGORY_DISPLAY_SEP, PLUGIN_PREVIEW_STREAM_MIME, PROVIDER_INFOS, PROVIDER_TYPES, type PermissionDecision, type PermissionLevel, type PermissionManager, type PermissionRuleLists, type PlanApprovalOutcome, type PlanProposal, type PluginContext, type ProviderInfo, type ProviderType, type QuestionAnswer, type QuestionItem, type QuestionOption, type QuestionPage, type QuestionRequest, REASONING_EFFORTS, REASONING_OFF, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, type ReasoningChoice, type ReasoningEffort, type ReasoningState, type RejectReason, type RejectedKey, type ResolvedAppearanceVisual, type RuleValue, SCHEDULE_CONFIRM_PLACEHOLDER, SCHEDULE_DEFAULT_PERMISSION, SCHEDULE_DRAFT_SAVED_MARK, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MAX_MINUTES, SCHEDULE_INTERVAL_MIN_MINUTES, SCHEDULE_MAX_TIMES_PER_DAY, SCHEDULE_RUN_STATUSES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SETTINGS_PANE_IDS, SHELL_KINDS, SIMULTANEOUS_CONTEXTS, SKILL_FILES_UNKNOWN_CODE, SYSTEM_NOTE_PREFIX, type SandboxMode, type ScheduleAllowlist, type ScheduleBackendKind, type ScheduleCronTrigger, type ScheduleCycle, type ScheduleDefinition, type ScheduleDraft, type ScheduleDraftAllowlist, type ScheduleDraftCreate, type ScheduleDraftPermission, type ScheduleDraftUpdate, type SchedulePendingApproval, type SchedulePendingItem, type ScheduleRun, type ScheduleRunStatus, type ScheduleRunnerSpec, type ScheduleTrigger, type ScheduleTriggerKind, type ScheduleWeekday, type ScheduleWideningKind, type SearchProviderType, type SecretBackendId, type SecretStore, type SelectionContext, type SelectionRejection, type SelectionWarning, type SessionAttachKind, type SessionAttachResult, type SessionOmitReason, type SessionSurfaceMessage, type SessionSurfaceView, type SetSelectionResult, type SettingsPaneId, type SettingsPaneItem, type ShellKind, type SidebarMenuItem, type SidebarNavItem, type SpanLike, type SubToolCall, type SubToolCallResult, type TeamTask, type TeamTaskPatch, type TeamTaskStatus, type Telemetry, type TokenUsage, type ToolActivity, type ToolAnnotations, type ToolArtifact, type ToolArtifactInput, type ToolContext, type ToolDefinition, ToolExposure, type ToolProvider, type ToolResult, type Translate, type TranslateVars, type TrayMenuItem, type TrustExecGrant, type TrustGrant, type TrustLevel, type TrustManager, type TrustRecord, type TrustScope, type TrustTier, UNLIMITED_TURNS, type VerifyResult, WAKE_NOTE_MARK, WIRE_ABORT_FIELDS, WIRE_ABOUT_FIELDS, WIRE_AGENT_ROLE_FIELDS, WIRE_APPEARANCE_RESPONSE_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_REQUEST_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_RESPONSE_FIELDS, WIRE_APPROVAL_LIST_FIELDS, WIRE_APPROVAL_ROW_FIELDS, WIRE_ARTIFACTS_FIELDS, WIRE_ATTACHMENT_FOLDER_FIELDS, WIRE_ATTACHMENT_UPLOAD_FIELDS, WIRE_AUDIT_LOG_FIELDS, WIRE_AUDIT_ROW_FIELDS, WIRE_AUTH_COOKIE, WIRE_AUTH_COOKIE_ATTRS, WIRE_AUTH_TOKEN_PARAM, WIRE_BACKGROUND_TASK_FIELDS, WIRE_BLOCKED_GOALS_FIELDS, WIRE_BLOCKED_GOAL_FIELDS, WIRE_BLOCKED_LEVEL_FIELDS, WIRE_BUILTIN_CONNECTOR_FIELDS, WIRE_CACHED_APPROVAL_FIELDS, WIRE_CAPABILITIES_FIELDS, WIRE_CAPABILITY_PROJECT_FIELDS, WIRE_CHECKPOINT_LIST_FIELDS, WIRE_CHECKPOINT_SUMMARY_FIELDS, WIRE_COMMANDS_FIELDS, WIRE_COMMAND_EXPANSION_FIELDS, WIRE_COMPACT_FIELDS, WIRE_COMPRESSION_LINE_FIELDS, WIRE_CONFIG_FIELDS, WIRE_CONTEXT_FIELDS, WIRE_CREATE_SESSION_FIELDS, WIRE_CREATE_WORKSPACE_FIELDS, WIRE_CREATE_WORKSPACE_RESPONSE_FIELDS, WIRE_CUSTOM_COMMAND_FIELDS, WIRE_DELETE_SESSION_FIELDS, WIRE_DIFF_FILE_FIELDS, WIRE_DIFF_FILE_RESPONSE_FIELDS, WIRE_ERROR_FIELDS, WIRE_FILE_CANDIDATES_FIELDS, WIRE_FILE_CANDIDATE_FIELDS, WIRE_FILE_CHANGE_FIELDS, WIRE_FILE_OPEN_RESPONSE_FIELDS, WIRE_FILE_REFERENCE_FIELDS, WIRE_FILE_STAT_MAX, WIRE_FILE_STAT_OK_FIELDS, WIRE_FILE_STAT_REFUSED_FIELDS, WIRE_FILE_STAT_RESPONSE_FIELDS, WIRE_FILE_TEXT_RESPONSE_FIELDS, WIRE_FORGET_WORKSPACE_FIELDS, WIRE_FORGET_WORKSPACE_RESPONSE_FIELDS, WIRE_GOAL_ACTIONS, WIRE_GOAL_BLOCK_FIELDS, WIRE_GOAL_CLEAR_FIELDS, WIRE_GOAL_CREATE_FIELDS, WIRE_GOAL_FIELDS, WIRE_GOAL_LIMITS_FIELDS, WIRE_GOAL_PHASES, WIRE_GOAL_REFUSALS, WIRE_GOAL_RESPONSE_FIELDS, WIRE_GOAL_WRITE_FIELDS, WIRE_HEALTH_FIELDS, WIRE_IMAGE_REFERENCE_FIELDS, WIRE_KNOWN_WORKSPACE_FIELDS, WIRE_LANG_PARAM, WIRE_LAST_SESSION_FIELDS, WIRE_LAST_SESSION_RESPONSE_FIELDS, WIRE_MANAGED_LOCK_FIELDS, WIRE_MCP_ADD_FIELDS, WIRE_MCP_ADD_RESPONSE_FIELDS, WIRE_MCP_APPLY_ENTRY_FIELDS, WIRE_MCP_APPLY_RESPONSE_FIELDS, WIRE_MCP_CONFIG_APPLY_FIELDS, WIRE_MCP_CONFIG_FIELDS, WIRE_MCP_CONFIG_ISSUE_FIELDS, WIRE_MCP_CONFIG_SAVE_FIELDS, WIRE_MCP_CONFIG_SAVE_RESPONSE_FIELDS, WIRE_MCP_CONNECTOR_FIELDS, WIRE_MCP_ENTRY_RESPONSE_FIELDS, WIRE_MCP_LIST_FIELDS, WIRE_MCP_RECONNECT_FIELDS, WIRE_MCP_REMOVE_FIELDS, WIRE_MCP_REMOVE_RESPONSE_FIELDS, WIRE_MCP_TOGGLE_FIELDS, WIRE_MCP_TOGGLE_RESPONSE_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_ENTRIES_FIELDS, WIRE_MODEL_ENTRY_MODELS_FIELDS, WIRE_MODEL_ENTRY_SAVE_FIELDS, WIRE_MODEL_ENTRY_TEST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_PATCH_SESSION_FIELDS, WIRE_PATCH_SESSION_RESPONSE_FIELDS, WIRE_PERMISSION_RULE_FIELDS, WIRE_PERMISSION_SET_REQUEST_FIELDS, WIRE_PERMISSION_SET_RESPONSE_FIELDS, WIRE_PERMISSION_SHADOW_FIELDS, WIRE_PERMISSION_STATE_FIELDS, WIRE_PERMISSION_STATUS_FIELDS, WIRE_PLAN_ACTIONS, WIRE_PLAN_FIELDS, WIRE_PLAN_MODE_REQUEST_FIELDS, WIRE_PLAN_MODE_RESPONSE_FIELDS, WIRE_PLAN_MODE_STATE_FIELDS, WIRE_PLUGINS_FIELDS, WIRE_PLUGIN_ACTION_FIELDS, WIRE_PLUGIN_ARCHIVE_SUFFIXES, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_STAGE_FIELDS, WIRE_PLUGIN_STAGE_RESPONSE_FIELDS, WIRE_PLUGIN_TOGGLE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_VIEW_FIELDS, WIRE_PLUGIN_VIEW_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROJECT_INVENTORY_FIELDS, WIRE_PROVIDER_GROUPS, WIRE_QUESTION_LIST_FIELDS, WIRE_QUESTION_ROW_FIELDS, WIRE_RESPOND_APPROVAL_FIELDS, WIRE_RESPOND_APPROVAL_RESPONSE_FIELDS, WIRE_RESPOND_QUESTION_FIELDS, WIRE_RESPOND_QUESTION_RESPONSE_FIELDS, WIRE_REVEAL_WORKSPACE_FIELDS, WIRE_REVEAL_WORKSPACE_RESPONSE_FIELDS, WIRE_REVIVE_FIELDS, WIRE_REWIND_FILE_PLAN_FIELDS, WIRE_REWIND_OUTCOME_FIELDS, WIRE_REWIND_PREVIEW_FIELDS, WIRE_REWIND_REQUEST_FIELDS, WIRE_REWIND_RESPONSE_FIELDS, WIRE_REWIND_SCOPES, WIRE_ROLES_FIELDS, WIRE_ROLE_ADD_FIELDS, WIRE_ROLE_ADD_RESPONSE_FIELDS, WIRE_ROLE_REMOVE_FIELDS, WIRE_RUNNING_SCHEDULE_FIELDS, WIRE_SANDBOX_STATUS_FIELDS, WIRE_SCHEDULE_CAPABILITY_FIELDS, WIRE_SCHEDULE_CREATE_FIELDS, WIRE_SCHEDULE_DEFAULTS_FIELDS, WIRE_SCHEDULE_DELETE_FIELDS, WIRE_SCHEDULE_FIELDS, WIRE_SCHEDULE_FIX_FIELDS, WIRE_SCHEDULE_FIX_REQUEST_FIELDS, WIRE_SCHEDULE_ISSUE_CODES, WIRE_SCHEDULE_LIST_FIELDS, WIRE_SCHEDULE_PENDING_FIELDS, WIRE_SCHEDULE_RECORDING_FIELDS, WIRE_SCHEDULE_ROW_FIELDS, WIRE_SCHEDULE_RUNNING_FIELDS, WIRE_SCHEDULE_RUNS_FIELDS, WIRE_SCHEDULE_RUN_FIELDS, WIRE_SCHEDULE_SAVE_FIELDS, WIRE_SECURITY_FIELDS, WIRE_SECURITY_WORKSPACE_FIELDS, WIRE_SEND_MESSAGE_FIELDS, WIRE_SEND_MESSAGE_RESPONSE_FIELDS, WIRE_SESSION_BRANCH_RESPONSE_FIELDS, WIRE_SESSION_CANDIDATES_FIELDS, WIRE_SESSION_CANDIDATE_FIELDS, WIRE_SESSION_FINISH_FIELDS, WIRE_SESSION_LIST_FIELDS, WIRE_SESSION_REFERENCE_FIELDS, WIRE_SESSION_RESPONSE_FIELDS, WIRE_SESSION_SUMMARY_FIELDS, WIRE_SESSION_WORKSPACE_FIELDS, WIRE_SESSION_WORKSPACE_RESPONSE_FIELDS, WIRE_SETTINGS_FIELDS, WIRE_SETTINGS_WRITE_FIELDS, WIRE_SETTINGS_WRITE_REQUEST_FIELDS, WIRE_SETTING_PENDING_FIELDS, WIRE_SETTING_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_DROP_SUFFIXES, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_SKILL_STAGE_FIELDS, WIRE_SKILL_TOGGLE_FIELDS, WIRE_SUBAGENT_LIST_FIELDS, WIRE_TASKS_FIELDS, WIRE_TEAM_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_WITHDRAW_MESSAGE_FIELDS, WIRE_WORKSPACE_DIFF_FIELDS, WIRE_WORKSPACE_DIRS_FIELDS, WIRE_WORKSPACE_DIR_ENTRY_FIELDS, WIRE_WORKSPACE_REF_FIELDS, type WireAbortResponse, type WireAbout, type WireAgentEnvelope, type WireAgentEvent, type WireAgentRoleSummary, type WireAppearanceRequest, type WireAppearanceResponse, type WireApprovalCacheRevokeRequest, type WireApprovalCacheRevokeResponse, type WireApprovalListResponse, type WireApprovalRequest, type WireArtifactsResponse, type WireAttachmentFolderResponse, type WireAttachmentUploadResponse, type WireAuditCode, type WireAuditLog, type WireAuditOutcome, type WireAuditRow, type WireAuthDenyReason, type WireAuthDenyStatus, type WireAuthGuard, type WireAuthRequestView, type WireAuthVerdict, type WireBackgroundTask, type WireBindWorkspaceRequest, type WireBlockedGoal, type WireBlockedGoalsResponse, type WireBlockedLevel, type WireBuiltinConnector, type WireCachedApproval, type WireCachedDecision, type WireCapabilitiesResponse, type WireCapabilityProject, type WireCheckpointListResponse, type WireCheckpointSummary, type WireCommandExpansion, type WireCommandsResponse, type WireCompactRequest, type WireCompactResponse, type WireCompressionLine, type WireConfigResponse, type WireContextResponse, type WireCreateSessionRequest, type WireCreateSessionResponse, type WireCreateWorkspaceRequest, type WireCreateWorkspaceResponse, type WireCustomCommand, type WireDeleteSessionResponse, type WireDiffFile, type WireDiffFileResponse, type WireDiffNote, type WireDiffOmitReason, type WireDiffSource, type WireDiffStatus, type WireEffectiveModel, type WireEffectiveSlots, type WireEngineRestartDone, type WireEngineRestartError, type WireEngineRestartMode, type WireEngineRestartRefused, type WireEngineRestartRequest, type WireEngineRestartResponse, type WireEntryProbeCode, type WireEntryProvider, type WireEnvelope, type WireErrorResponse, type WireEvent, type WireFields, type WireFileCandidate, type WireFileCandidatesResponse, type WireFileChange, type WireFileKind, type WireFileOpenRefusal, type WireFileOpenResponse, type WireFileReference, type WireFileRefusal, type WireFileStat, type WireFileStatOk, type WireFileStatRefused, type WireFileStatResponse, type WireFileTextResponse, type WireFixture, type WireFixtureCase, type WireForgetWorkspaceRequest, type WireForgetWorkspaceResponse, type WireGoal, type WireGoalBlock, type WireGoalClearResponse, type WireGoalCreateRequest, type WireGoalLimits, type WireGoalPhase, type WireGoalRefusal, type WireGoalResponse, type WireGoalUpdateRequest, type WireGoalWriteResponse, type WireHealthResponse, type WireHostBadgeRequest, type WireHostBadges, type WireHostCommand, type WireHostCommandRequest, type WireHostCommandResponse, type WireHostCompose, type WireHostComposeRequest, type WireHostComposeResponse, type WireHostComposeStateResponse, type WireHostComposeTakeResponse, type WireHostEvent, type WireHostEventFrame, type WireHostEventPublish, type WireHostEventPublishResponse, type WireHostMenuAction, type WireHostMenuRect, type WireHostSlots, type WireHostSlotsResponse, type WireHostSlotsWriteRequest, type WireHostSlotsWriteResponse, type WireHostTray, type WireHostTrayItemRequest, type WireHostTrayRequest, type WireHubEnvelope, type WireHubEvent, type WireImageReference, type WireKnownWorkspace, type WireKnownWorkspaceRef, type WireLastSessionRequest, type WireLastSessionResponse, type WireManagedLock, type WireMcpAddRequest, type WireMcpAddResponse, type WireMcpApplyAction, type WireMcpApplyEntry, type WireMcpApplyResponse, type WireMcpConfigApplyRequest, type WireMcpConfigIssue, type WireMcpConfigResponse, type WireMcpConfigSaveRequest, type WireMcpConfigSaveResponse, type WireMcpConnector, type WireMcpEntryResponse, type WireMcpListResponse, type WireMcpLoginResponse, type WireMcpLogoutResponse, type WireMcpReconnectResponse, type WireMcpRemoveRequest, type WireMcpRemoveResponse, type WireMcpToggleRequest, type WireMcpToggleResponse, type WireMcpUpdateRequest, type WireMcpUpdateResponse, type WireMessageListResponse, type WireModelCaveat, type WireModelEffortRequest, type WireModelEffortResponse, type WireModelEntriesResponse, type WireModelEntry, type WireModelEntryModelsResponse, type WireModelEntryProbeRequest, type WireModelEntryRefRequest, type WireModelEntryRefs, type WireModelEntrySaveRequest, type WireModelEntrySaveResponse, type WireModelEntryTestResponse, type WireModelRejection, type WireModelResponse, type WireModelSelection, type WireModelSetRequest, type WireModelSetResponse, type WirePatchSessionRequest, type WirePatchSessionResponse, type WirePermissionRememberFailure, type WirePermissionRuleRow, type WirePermissionSetRequest, type WirePermissionSetResponse, type WirePermissionShadow, type WirePermissionState, type WirePermissionStatus, type WirePickDirectoryResponse, type WirePlanAction, type WirePlanModeRequest, type WirePlanModeResponse, type WirePlanModeState, type WirePlanResponse, type WirePluginActionResponse, type WirePluginCounts, type WirePluginDependency, type WirePluginDependencyInventory, type WirePluginDependencyStatus, type WirePluginDoc, type WirePluginDocs, type WirePluginEntry, type WirePluginHookTally, type WirePluginLocalInstallRequest, type WirePluginLocalRequest, type WirePluginNameRequest, type WirePluginPanel, type WirePluginPreview, type WirePluginPreviewResponse, type WirePluginPreviewStreamLine, type WirePluginProgressStep, type WirePluginRefuseReason, type WirePluginSourceType, type WirePluginStageRequest, type WirePluginStageResponse, type WirePluginToggleRequest, type WirePluginUpdateRequest, type WirePluginVersionUnmet, type WirePluginViewRequest, type WirePluginViewResponse, type WirePluginsResponse, type WirePolicyDir, type WirePolicyStatus, type WireProjectInventory, type WireProviderGroup, type WireQuestionListResponse, type WireQuestionRequest, type WireReplayMessage, type WireResetReason, type WireRespondApprovalRequest, type WireRespondApprovalResponse, type WireRespondQuestionRequest, type WireRespondQuestionResponse, type WireRevealWorkspaceRefusal, type WireRevealWorkspaceRequest, type WireRevealWorkspaceResponse, type WireReviveResponse, type WireRewindAction, type WireRewindDrift, type WireRewindFilePlan, type WireRewindOutcome, type WireRewindPreview, type WireRewindRequest, type WireRewindResponse, type WireRewindScope, type WireRoleAddRequest, type WireRoleAddResponse, type WireRoleRemoveFailure, type WireRoleRemoveResponse, type WireRolesResponse, type WireRunningSchedule, type WireSandboxReason, type WireSandboxStatus, type WireScheduleCancelResponse, type WireScheduleCapability, type WireScheduleCreateRequest, type WireScheduleDefaults, type WireScheduleDeleteResponse, type WireScheduleFixRequest, type WireScheduleFixResponse, type WireScheduleIssue, type WireScheduleIssueCode, type WireScheduleListResponse, type WireSchedulePendingResponse, type WireScheduleRecordingResponse, type WireScheduleRegisterRefusal, type WireScheduleRegisterWarning, type WireScheduleRegistration, type WireScheduleResponse, type WireScheduleRow, type WireScheduleRunResponse, type WireScheduleRunningResponse, type WireScheduleRunsResponse, type WireScheduleSaveResponse, type WireScheduleUpdateRequest, type WireSecurityResponse, type WireSecurityWorkspace, type WireSendMessageRequest, type WireSendMessageResponse, type WireSessionBranchResponse, type WireSessionCandidate, type WireSessionCandidatesResponse, type WireSessionFinish, type WireSessionListResponse, type WireSessionReference, type WireSessionResponse, type WireSessionSummary, type WireSessionWorkspace, type WireSessionWorkspaceResponse, type WireSettingApply, type WireSettingFutile, type WireSettingLayer, type WireSettingPending, type WireSettingRow, type WireSettingStep, type WireSettingValue, type WireSettingValueKind, type WireSettingWrite, type WireSettingWriteLayer, type WireSettingsResponse, type WireSettingsWriteRequest, type WireSettingsWriteResponse, type WireSkillBodyResponse, type WireSkillEntry, type WireSkillFile, type WireSkillFilesResponse, type WireSkillImportConflict, type WireSkillImportEntry, type WireSkillImportFailure, type WireSkillImportForm, type WireSkillImportIssue, type WireSkillImportPreviewResponse, type WireSkillImportResponse, type WireSkillRemoveFailure, type WireSkillRemoveResponse, type WireSkillStageFailure, type WireSkillStageResponse, type WireSkillSummary, type WireSkillToggleRequest, type WireSkillToggleResponse, type WireSkillsResponse, type WireSubagentListResponse, type WireSubagentRow, type WireSubagentStatus, type WireSummaryWorkspace, type WireTaggedEvent, type WireTasksResponse, type WireTeamResponse, type WireToolGate, type WireToolGateAxis, type WireToolRow, type WireToolSummary, type WireToolVerdict, type WireToolsResponse, type WireTrayItemOverride, type WireTurnState, type WireWithdrawMessageResponse, type WireWorkspaceBinding, type WireWorkspaceDiffResponse, type WireWorkspaceDirEntry, type WireWorkspaceDirsResponse, type WireWorkspaceRef, accentScale, activityOf, agentMessageLine, apiKeyEnvVar, appearanceInlineVars, appearanceRootAttributes, appearanceVisualCss, approvalPolicyForLevel, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, cronTimes, diagnosticToLine, encodeAppearanceFirstScreenValue, entryDisplayName, entryRef, entrySecretName, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, fillPlaceholders, flattenCatalog, formatAppearanceTranslucent, formatMoney, getProviderInfo, hasFailure, hexToHsv, hsvToHex, imagePartOmittedSummary, isAppearanceAccent, isAppearanceAccentValue, isAppearanceBackground, isAppearanceBackgroundFit, isAppearanceBackgroundKind, isAppearanceCodeFont, isAppearanceCodeFontSize, isAppearanceContrast, isAppearanceDiffTreeWidth, isAppearanceFontSize, isAppearanceLang, isAppearanceModePatch, isAppearanceMotion, isAppearanceSidebarWidth, isAppearanceTheme, isAppearanceThemeName, isAppearanceTranslucent, isAppearanceUiFont, isApprovalOutcome, isContextNearlyFull, isCurrency, isEntrySecretName, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isHexColor, isHostCommand, isHostMenuAction, isKeyAction, isLang, isMentionableFilePath, isModelEntryId, isOpenableLink, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isReasoningEffort, isSearchProviderType, isSettingsPaneId, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWirePluginArchiveName, isWireRewindScope, isWireSettingWriteLayer, isWireSkillDropName, liveDetail, makeTranslate, mcpConnectorState, normalizeAppearanceTranslucent, normalizeApproval, offloadedImagePart, packSessionSurface, parseAppearanceTranslucentText, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, relativeLuminance, resolveAppearanceVisual, resolveHostText, resolvePermissionLevel, sequenceId, sessionPartSummary, sessionSenderLabel, snapAppearanceContrast, stripSystemNote, stripTurnDigest, stripWakeMark, systemNote, tableOf, toolActivity, totalUsageTokens, translatorFor, truncateToBudget, turnDigest, unfixedRules, utf8ByteLength, wireFields };
package/dist/index.js CHANGED
@@ -730,6 +730,11 @@ function stripSystemNote(text) {
730
730
  if (!text.startsWith(SYSTEM_NOTE_PREFIX)) return void 0;
731
731
  return text.slice(SYSTEM_NOTE_PREFIX.length);
732
732
  }
733
+ var WAKE_NOTE_MARK = "[\u81EA\u5524\u9192] ";
734
+ function stripWakeMark(body) {
735
+ if (!body.startsWith(WAKE_NOTE_MARK)) return void 0;
736
+ return body.slice(WAKE_NOTE_MARK.length);
737
+ }
733
738
  // src/activity.ts
734
739
  var BY_NAME = {
735
740
  file_read: "read",
@@ -1226,12 +1231,6 @@ var WIRE_CREATE_WORKSPACE_FIELDS = wireFields()({
1226
1231
  var WIRE_CREATE_WORKSPACE_RESPONSE_FIELDS = wireFields()({
1227
1232
  entry: true
1228
1233
  });
1229
- var WIRE_TRUST_REQUEST_FIELDS = wireFields()({
1230
- root: true
1231
- });
1232
- var WIRE_TRUST_REQUEST_RESPONSE_FIELDS = wireFields()({
1233
- asked: true
1234
- });
1235
1234
  var WIRE_FORGET_WORKSPACE_FIELDS = wireFields()({
1236
1235
  root: true
1237
1236
  });
@@ -1314,8 +1313,7 @@ var WIRE_CAPABILITY_PROJECT_FIELDS = wireFields()({
1314
1313
  root: true,
1315
1314
  trusted: true,
1316
1315
  execTrusted: true,
1317
- inventory: true,
1318
- trustRequest: true
1316
+ inventory: true
1319
1317
  });
1320
1318
  var WIRE_CAPABILITIES_FIELDS = wireFields()({
1321
1319
  roles: true,
@@ -1552,8 +1550,7 @@ var WIRE_SECURITY_WORKSPACE_FIELDS = wireFields()({
1552
1550
  trustLevel: true,
1553
1551
  unloadedExtraInstructionFiles: true,
1554
1552
  execTrusted: true,
1555
- inventory: true,
1556
- trustRequest: true
1553
+ inventory: true
1557
1554
  });
1558
1555
  var WIRE_KNOWN_WORKSPACE_FIELDS = wireFields()({
1559
1556
  root: true,
@@ -2497,6 +2494,7 @@ var HOST_COMMANDS = [
2497
2494
  "select-skill"
2498
2495
  ];
2499
2496
  var MAX_HOST_EVENT_ID = 256;
2497
+ var MAX_HOST_FILE_PATH = 4096;
2500
2498
  var MAX_HOST_SESSION_ID = 256;
2501
2499
  var MAX_HOST_PLUGIN_NAME = 128;
2502
2500
  var MAX_HOST_SKILL_NAME = 128;
@@ -2563,4 +2561,4 @@ var COMPLIANCE_ACTIONS = ["block", "mask", "warn", "off"];
2563
2561
  var SECRET_SERVICE = "epoch-agent";
2564
2562
  var MCP_DATA_KEY_NAME = "mcp-auth-data-key";
2565
2563
 
2566
- export { ACTION_CONTEXTS, AGENT_MESSAGE_NOTE_TITLE, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPEARANCE_ACCENTS, APPEARANCE_BACKGROUND_FITS, APPEARANCE_BACKGROUND_KINDS, APPEARANCE_BACKGROUND_ON_PARAM, APPEARANCE_CODE_FONTS, APPEARANCE_CODE_FONT_SIZE, APPEARANCE_CONTRAST, APPEARANCE_DEFAULT_CODE_FONT_SIZE, APPEARANCE_DEFAULT_FONT_SIZE, APPEARANCE_DIFF_TREE_WIDTH, APPEARANCE_FIRST_SCREEN_FIELDS, APPEARANCE_FIRST_SCREEN_FIELD_ORDER, APPEARANCE_FONT_SIZE, APPEARANCE_LANGS, APPEARANCE_MOTION, APPEARANCE_ROOT_ATTRIBUTES, APPEARANCE_SIDEBAR_WIDTH, APPEARANCE_THEMES, APPEARANCE_THEME_NAME_MAX, APPEARANCE_TRANSLUCENT, APPEARANCE_UI_FONTS, APPROVAL_OUTCOMES, APPROVAL_POLICIES, BRAND_WHEN_SIDEBAR_COLLAPSED, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, CURRENCIES, DEFAULT_AGENT_ROLE, DEFAULT_LANG, DEFAULT_PERMISSION_LEVEL, DiagnosticSink, ENGINE_RESTART_ACCEPTED_STATUS, ENTRY_REF_PREFIX, ENTRY_SECRET_PREFIX, FOLLOW_SYSTEM, GEN_AI, HEADLESS_INPUT_EVENT_TYPES, HEADLESS_INPUT_FORMATS, HEADLESS_OUTPUT_FORMATS, HEADLESS_PROTOCOL_VERSION, HOST_COMMANDS, HOST_SLOTS_STALE_CODE, KEY_ACTIONS, LANGS, LEAD_AGENT_ID, LEGACY_LEVEL_ALIASES, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_HOST_EVENT_ID, MAX_HOST_EVENT_KEY, MAX_HOST_PLUGIN_NAME, MAX_HOST_SESSION_ID, MAX_HOST_SKILL_NAME, MAX_HOST_SLOTS_JSON, MAX_LINK_URL, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, MCP_LOGIN_IN_FLIGHT_CODE, METRIC, MIN_OPTIONS, MODEL_ENTRY_PROTOCOLS, NOOP_TELEMETRY, OFFLOADED_IMAGE_NOTE, OPENABLE_LINK_SCHEMES, OPERATION_TYPES, OVERSIZE_RATIO, PERMISSION_LEVELS, PLAN_OUTCOMES, PLUGIN_CATEGORY_DISPLAY_SEP, PLUGIN_PREVIEW_STREAM_MIME, PROVIDER_INFOS, PROVIDER_TYPES, REASONING_EFFORTS, REASONING_OFF, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, SCHEDULE_CONFIRM_PLACEHOLDER, SCHEDULE_DEFAULT_PERMISSION, SCHEDULE_DRAFT_SAVED_MARK, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MAX_MINUTES, SCHEDULE_INTERVAL_MIN_MINUTES, SCHEDULE_MAX_TIMES_PER_DAY, SCHEDULE_RUN_STATUSES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SETTINGS_PANE_IDS, SHELL_KINDS, SIMULTANEOUS_CONTEXTS, SKILL_FILES_UNKNOWN_CODE, SYSTEM_NOTE_PREFIX, ToolExposure, UNLIMITED_TURNS, WIRE_ABORT_FIELDS, WIRE_ABOUT_FIELDS, WIRE_AGENT_ROLE_FIELDS, WIRE_APPEARANCE_RESPONSE_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_REQUEST_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_RESPONSE_FIELDS, WIRE_APPROVAL_LIST_FIELDS, WIRE_APPROVAL_ROW_FIELDS, WIRE_ARTIFACTS_FIELDS, WIRE_ATTACHMENT_FOLDER_FIELDS, WIRE_ATTACHMENT_UPLOAD_FIELDS, WIRE_AUDIT_LOG_FIELDS, WIRE_AUDIT_ROW_FIELDS, WIRE_AUTH_COOKIE, WIRE_AUTH_COOKIE_ATTRS, WIRE_AUTH_TOKEN_PARAM, WIRE_BACKGROUND_TASK_FIELDS, WIRE_BLOCKED_GOALS_FIELDS, WIRE_BLOCKED_GOAL_FIELDS, WIRE_BLOCKED_LEVEL_FIELDS, WIRE_BUILTIN_CONNECTOR_FIELDS, WIRE_CACHED_APPROVAL_FIELDS, WIRE_CAPABILITIES_FIELDS, WIRE_CAPABILITY_PROJECT_FIELDS, WIRE_CHECKPOINT_LIST_FIELDS, WIRE_CHECKPOINT_SUMMARY_FIELDS, WIRE_COMMANDS_FIELDS, WIRE_COMMAND_EXPANSION_FIELDS, WIRE_COMPACT_FIELDS, WIRE_COMPRESSION_LINE_FIELDS, WIRE_CONFIG_FIELDS, WIRE_CONTEXT_FIELDS, WIRE_CREATE_SESSION_FIELDS, WIRE_CREATE_WORKSPACE_FIELDS, WIRE_CREATE_WORKSPACE_RESPONSE_FIELDS, WIRE_CUSTOM_COMMAND_FIELDS, WIRE_DELETE_SESSION_FIELDS, WIRE_DIFF_FILE_FIELDS, WIRE_DIFF_FILE_RESPONSE_FIELDS, WIRE_ERROR_FIELDS, WIRE_FILE_CANDIDATES_FIELDS, WIRE_FILE_CANDIDATE_FIELDS, WIRE_FILE_CHANGE_FIELDS, WIRE_FILE_OPEN_RESPONSE_FIELDS, WIRE_FILE_REFERENCE_FIELDS, WIRE_FILE_STAT_MAX, WIRE_FILE_STAT_OK_FIELDS, WIRE_FILE_STAT_REFUSED_FIELDS, WIRE_FILE_STAT_RESPONSE_FIELDS, WIRE_FILE_TEXT_RESPONSE_FIELDS, WIRE_FORGET_WORKSPACE_FIELDS, WIRE_FORGET_WORKSPACE_RESPONSE_FIELDS, WIRE_GOAL_ACTIONS, WIRE_GOAL_BLOCK_FIELDS, WIRE_GOAL_CLEAR_FIELDS, WIRE_GOAL_CREATE_FIELDS, WIRE_GOAL_FIELDS, WIRE_GOAL_LIMITS_FIELDS, WIRE_GOAL_PHASES, WIRE_GOAL_REFUSALS, WIRE_GOAL_RESPONSE_FIELDS, WIRE_GOAL_WRITE_FIELDS, WIRE_HEALTH_FIELDS, WIRE_IMAGE_REFERENCE_FIELDS, WIRE_KNOWN_WORKSPACE_FIELDS, WIRE_LANG_PARAM, WIRE_LAST_SESSION_FIELDS, WIRE_LAST_SESSION_RESPONSE_FIELDS, WIRE_MANAGED_LOCK_FIELDS, WIRE_MCP_ADD_FIELDS, WIRE_MCP_ADD_RESPONSE_FIELDS, WIRE_MCP_APPLY_ENTRY_FIELDS, WIRE_MCP_APPLY_RESPONSE_FIELDS, WIRE_MCP_CONFIG_APPLY_FIELDS, WIRE_MCP_CONFIG_FIELDS, WIRE_MCP_CONFIG_ISSUE_FIELDS, WIRE_MCP_CONFIG_SAVE_FIELDS, WIRE_MCP_CONFIG_SAVE_RESPONSE_FIELDS, WIRE_MCP_CONNECTOR_FIELDS, WIRE_MCP_ENTRY_RESPONSE_FIELDS, WIRE_MCP_LIST_FIELDS, WIRE_MCP_RECONNECT_FIELDS, WIRE_MCP_REMOVE_FIELDS, WIRE_MCP_REMOVE_RESPONSE_FIELDS, WIRE_MCP_TOGGLE_FIELDS, WIRE_MCP_TOGGLE_RESPONSE_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_ENTRIES_FIELDS, WIRE_MODEL_ENTRY_MODELS_FIELDS, WIRE_MODEL_ENTRY_SAVE_FIELDS, WIRE_MODEL_ENTRY_TEST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_PATCH_SESSION_FIELDS, WIRE_PATCH_SESSION_RESPONSE_FIELDS, WIRE_PERMISSION_RULE_FIELDS, WIRE_PERMISSION_SET_REQUEST_FIELDS, WIRE_PERMISSION_SET_RESPONSE_FIELDS, WIRE_PERMISSION_SHADOW_FIELDS, WIRE_PERMISSION_STATE_FIELDS, WIRE_PERMISSION_STATUS_FIELDS, WIRE_PLAN_ACTIONS, WIRE_PLAN_FIELDS, WIRE_PLAN_MODE_REQUEST_FIELDS, WIRE_PLAN_MODE_RESPONSE_FIELDS, WIRE_PLAN_MODE_STATE_FIELDS, WIRE_PLUGINS_FIELDS, WIRE_PLUGIN_ACTION_FIELDS, WIRE_PLUGIN_ARCHIVE_SUFFIXES, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_STAGE_FIELDS, WIRE_PLUGIN_STAGE_RESPONSE_FIELDS, WIRE_PLUGIN_TOGGLE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_VIEW_FIELDS, WIRE_PLUGIN_VIEW_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROJECT_INVENTORY_FIELDS, WIRE_PROVIDER_GROUPS, WIRE_QUESTION_LIST_FIELDS, WIRE_QUESTION_ROW_FIELDS, WIRE_RESPOND_APPROVAL_FIELDS, WIRE_RESPOND_APPROVAL_RESPONSE_FIELDS, WIRE_RESPOND_QUESTION_FIELDS, WIRE_RESPOND_QUESTION_RESPONSE_FIELDS, WIRE_REVEAL_WORKSPACE_FIELDS, WIRE_REVEAL_WORKSPACE_RESPONSE_FIELDS, WIRE_REVIVE_FIELDS, WIRE_REWIND_FILE_PLAN_FIELDS, WIRE_REWIND_OUTCOME_FIELDS, WIRE_REWIND_PREVIEW_FIELDS, WIRE_REWIND_REQUEST_FIELDS, WIRE_REWIND_RESPONSE_FIELDS, WIRE_REWIND_SCOPES, WIRE_ROLES_FIELDS, WIRE_ROLE_ADD_FIELDS, WIRE_ROLE_ADD_RESPONSE_FIELDS, WIRE_ROLE_REMOVE_FIELDS, WIRE_RUNNING_SCHEDULE_FIELDS, WIRE_SANDBOX_STATUS_FIELDS, WIRE_SCHEDULE_CAPABILITY_FIELDS, WIRE_SCHEDULE_CREATE_FIELDS, WIRE_SCHEDULE_DEFAULTS_FIELDS, WIRE_SCHEDULE_DELETE_FIELDS, WIRE_SCHEDULE_FIELDS, WIRE_SCHEDULE_FIX_FIELDS, WIRE_SCHEDULE_FIX_REQUEST_FIELDS, WIRE_SCHEDULE_ISSUE_CODES, WIRE_SCHEDULE_LIST_FIELDS, WIRE_SCHEDULE_PENDING_FIELDS, WIRE_SCHEDULE_RECORDING_FIELDS, WIRE_SCHEDULE_ROW_FIELDS, WIRE_SCHEDULE_RUNNING_FIELDS, WIRE_SCHEDULE_RUNS_FIELDS, WIRE_SCHEDULE_RUN_FIELDS, WIRE_SCHEDULE_SAVE_FIELDS, WIRE_SECURITY_FIELDS, WIRE_SECURITY_WORKSPACE_FIELDS, WIRE_SEND_MESSAGE_FIELDS, WIRE_SEND_MESSAGE_RESPONSE_FIELDS, WIRE_SESSION_BRANCH_RESPONSE_FIELDS, WIRE_SESSION_CANDIDATES_FIELDS, WIRE_SESSION_CANDIDATE_FIELDS, WIRE_SESSION_FINISH_FIELDS, WIRE_SESSION_LIST_FIELDS, WIRE_SESSION_REFERENCE_FIELDS, WIRE_SESSION_RESPONSE_FIELDS, WIRE_SESSION_SUMMARY_FIELDS, WIRE_SESSION_WORKSPACE_FIELDS, WIRE_SESSION_WORKSPACE_RESPONSE_FIELDS, WIRE_SETTINGS_FIELDS, WIRE_SETTINGS_WRITE_FIELDS, WIRE_SETTINGS_WRITE_REQUEST_FIELDS, WIRE_SETTING_PENDING_FIELDS, WIRE_SETTING_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_DROP_SUFFIXES, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_SKILL_STAGE_FIELDS, WIRE_SKILL_TOGGLE_FIELDS, WIRE_SUBAGENT_LIST_FIELDS, WIRE_TASKS_FIELDS, WIRE_TEAM_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_TRUST_REQUEST_FIELDS, WIRE_TRUST_REQUEST_RESPONSE_FIELDS, WIRE_WITHDRAW_MESSAGE_FIELDS, WIRE_WORKSPACE_DIFF_FIELDS, WIRE_WORKSPACE_DIRS_FIELDS, WIRE_WORKSPACE_DIR_ENTRY_FIELDS, WIRE_WORKSPACE_REF_FIELDS, accentScale, activityOf, agentMessageLine, apiKeyEnvVar, appearanceInlineVars, appearanceRootAttributes, appearanceVisualCss, approvalPolicyForLevel, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, cronTimes, diagnosticToLine, encodeAppearanceFirstScreenValue, entryDisplayName, entryRef, entrySecretName, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, fillPlaceholders, flattenCatalog, formatAppearanceTranslucent, formatMoney, getProviderInfo, hasFailure, hexToHsv, hsvToHex, imagePartOmittedSummary, isAppearanceAccent, isAppearanceAccentValue, isAppearanceBackground, isAppearanceBackgroundFit, isAppearanceBackgroundKind, isAppearanceCodeFont, isAppearanceCodeFontSize, isAppearanceContrast, isAppearanceDiffTreeWidth, isAppearanceFontSize, isAppearanceLang, isAppearanceModePatch, isAppearanceMotion, isAppearanceSidebarWidth, isAppearanceTheme, isAppearanceThemeName, isAppearanceTranslucent, isAppearanceUiFont, isApprovalOutcome, isContextNearlyFull, isCurrency, isEntrySecretName, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isHexColor, isHostCommand, isHostMenuAction, isKeyAction, isLang, isMentionableFilePath, isModelEntryId, isOpenableLink, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isReasoningEffort, isSearchProviderType, isSettingsPaneId, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWirePluginArchiveName, isWireRewindScope, isWireSettingWriteLayer, isWireSkillDropName, liveDetail, makeTranslate, mcpConnectorState, normalizeAppearanceTranslucent, normalizeApproval, offloadedImagePart, packSessionSurface, parseAppearanceTranslucentText, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, relativeLuminance, resolveAppearanceVisual, resolveHostText, resolvePermissionLevel, sequenceId, sessionPartSummary, sessionSenderLabel, snapAppearanceContrast, stripSystemNote, stripTurnDigest, systemNote, tableOf, toolActivity, totalUsageTokens, translatorFor, truncateToBudget, turnDigest, unfixedRules, utf8ByteLength, wireFields };
2564
+ export { ACTION_CONTEXTS, AGENT_MESSAGE_NOTE_TITLE, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPEARANCE_ACCENTS, APPEARANCE_BACKGROUND_FITS, APPEARANCE_BACKGROUND_KINDS, APPEARANCE_BACKGROUND_ON_PARAM, APPEARANCE_CODE_FONTS, APPEARANCE_CODE_FONT_SIZE, APPEARANCE_CONTRAST, APPEARANCE_DEFAULT_CODE_FONT_SIZE, APPEARANCE_DEFAULT_FONT_SIZE, APPEARANCE_DIFF_TREE_WIDTH, APPEARANCE_FIRST_SCREEN_FIELDS, APPEARANCE_FIRST_SCREEN_FIELD_ORDER, APPEARANCE_FONT_SIZE, APPEARANCE_LANGS, APPEARANCE_MOTION, APPEARANCE_ROOT_ATTRIBUTES, APPEARANCE_SIDEBAR_WIDTH, APPEARANCE_THEMES, APPEARANCE_THEME_NAME_MAX, APPEARANCE_TRANSLUCENT, APPEARANCE_UI_FONTS, APPROVAL_OUTCOMES, APPROVAL_POLICIES, BRAND_WHEN_SIDEBAR_COLLAPSED, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, CURRENCIES, DEFAULT_AGENT_ROLE, DEFAULT_LANG, DEFAULT_PERMISSION_LEVEL, DiagnosticSink, ENGINE_RESTART_ACCEPTED_STATUS, ENTRY_REF_PREFIX, ENTRY_SECRET_PREFIX, FOLLOW_SYSTEM, GEN_AI, HEADLESS_INPUT_EVENT_TYPES, HEADLESS_INPUT_FORMATS, HEADLESS_OUTPUT_FORMATS, HEADLESS_PROTOCOL_VERSION, HOST_COMMANDS, HOST_SLOTS_STALE_CODE, KEY_ACTIONS, LANGS, LEAD_AGENT_ID, LEGACY_LEVEL_ALIASES, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_HOST_EVENT_ID, MAX_HOST_EVENT_KEY, MAX_HOST_FILE_PATH, MAX_HOST_PLUGIN_NAME, MAX_HOST_SESSION_ID, MAX_HOST_SKILL_NAME, MAX_HOST_SLOTS_JSON, MAX_LINK_URL, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, MCP_LOGIN_IN_FLIGHT_CODE, METRIC, MIN_OPTIONS, MODEL_ENTRY_PROTOCOLS, NOOP_TELEMETRY, OFFLOADED_IMAGE_NOTE, OPENABLE_LINK_SCHEMES, OPERATION_TYPES, OVERSIZE_RATIO, PERMISSION_LEVELS, PLAN_OUTCOMES, PLUGIN_CATEGORY_DISPLAY_SEP, PLUGIN_PREVIEW_STREAM_MIME, PROVIDER_INFOS, PROVIDER_TYPES, REASONING_EFFORTS, REASONING_OFF, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, SCHEDULE_CONFIRM_PLACEHOLDER, SCHEDULE_DEFAULT_PERMISSION, SCHEDULE_DRAFT_SAVED_MARK, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MAX_MINUTES, SCHEDULE_INTERVAL_MIN_MINUTES, SCHEDULE_MAX_TIMES_PER_DAY, SCHEDULE_RUN_STATUSES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SETTINGS_PANE_IDS, SHELL_KINDS, SIMULTANEOUS_CONTEXTS, SKILL_FILES_UNKNOWN_CODE, SYSTEM_NOTE_PREFIX, ToolExposure, UNLIMITED_TURNS, WAKE_NOTE_MARK, WIRE_ABORT_FIELDS, WIRE_ABOUT_FIELDS, WIRE_AGENT_ROLE_FIELDS, WIRE_APPEARANCE_RESPONSE_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_REQUEST_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_RESPONSE_FIELDS, WIRE_APPROVAL_LIST_FIELDS, WIRE_APPROVAL_ROW_FIELDS, WIRE_ARTIFACTS_FIELDS, WIRE_ATTACHMENT_FOLDER_FIELDS, WIRE_ATTACHMENT_UPLOAD_FIELDS, WIRE_AUDIT_LOG_FIELDS, WIRE_AUDIT_ROW_FIELDS, WIRE_AUTH_COOKIE, WIRE_AUTH_COOKIE_ATTRS, WIRE_AUTH_TOKEN_PARAM, WIRE_BACKGROUND_TASK_FIELDS, WIRE_BLOCKED_GOALS_FIELDS, WIRE_BLOCKED_GOAL_FIELDS, WIRE_BLOCKED_LEVEL_FIELDS, WIRE_BUILTIN_CONNECTOR_FIELDS, WIRE_CACHED_APPROVAL_FIELDS, WIRE_CAPABILITIES_FIELDS, WIRE_CAPABILITY_PROJECT_FIELDS, WIRE_CHECKPOINT_LIST_FIELDS, WIRE_CHECKPOINT_SUMMARY_FIELDS, WIRE_COMMANDS_FIELDS, WIRE_COMMAND_EXPANSION_FIELDS, WIRE_COMPACT_FIELDS, WIRE_COMPRESSION_LINE_FIELDS, WIRE_CONFIG_FIELDS, WIRE_CONTEXT_FIELDS, WIRE_CREATE_SESSION_FIELDS, WIRE_CREATE_WORKSPACE_FIELDS, WIRE_CREATE_WORKSPACE_RESPONSE_FIELDS, WIRE_CUSTOM_COMMAND_FIELDS, WIRE_DELETE_SESSION_FIELDS, WIRE_DIFF_FILE_FIELDS, WIRE_DIFF_FILE_RESPONSE_FIELDS, WIRE_ERROR_FIELDS, WIRE_FILE_CANDIDATES_FIELDS, WIRE_FILE_CANDIDATE_FIELDS, WIRE_FILE_CHANGE_FIELDS, WIRE_FILE_OPEN_RESPONSE_FIELDS, WIRE_FILE_REFERENCE_FIELDS, WIRE_FILE_STAT_MAX, WIRE_FILE_STAT_OK_FIELDS, WIRE_FILE_STAT_REFUSED_FIELDS, WIRE_FILE_STAT_RESPONSE_FIELDS, WIRE_FILE_TEXT_RESPONSE_FIELDS, WIRE_FORGET_WORKSPACE_FIELDS, WIRE_FORGET_WORKSPACE_RESPONSE_FIELDS, WIRE_GOAL_ACTIONS, WIRE_GOAL_BLOCK_FIELDS, WIRE_GOAL_CLEAR_FIELDS, WIRE_GOAL_CREATE_FIELDS, WIRE_GOAL_FIELDS, WIRE_GOAL_LIMITS_FIELDS, WIRE_GOAL_PHASES, WIRE_GOAL_REFUSALS, WIRE_GOAL_RESPONSE_FIELDS, WIRE_GOAL_WRITE_FIELDS, WIRE_HEALTH_FIELDS, WIRE_IMAGE_REFERENCE_FIELDS, WIRE_KNOWN_WORKSPACE_FIELDS, WIRE_LANG_PARAM, WIRE_LAST_SESSION_FIELDS, WIRE_LAST_SESSION_RESPONSE_FIELDS, WIRE_MANAGED_LOCK_FIELDS, WIRE_MCP_ADD_FIELDS, WIRE_MCP_ADD_RESPONSE_FIELDS, WIRE_MCP_APPLY_ENTRY_FIELDS, WIRE_MCP_APPLY_RESPONSE_FIELDS, WIRE_MCP_CONFIG_APPLY_FIELDS, WIRE_MCP_CONFIG_FIELDS, WIRE_MCP_CONFIG_ISSUE_FIELDS, WIRE_MCP_CONFIG_SAVE_FIELDS, WIRE_MCP_CONFIG_SAVE_RESPONSE_FIELDS, WIRE_MCP_CONNECTOR_FIELDS, WIRE_MCP_ENTRY_RESPONSE_FIELDS, WIRE_MCP_LIST_FIELDS, WIRE_MCP_RECONNECT_FIELDS, WIRE_MCP_REMOVE_FIELDS, WIRE_MCP_REMOVE_RESPONSE_FIELDS, WIRE_MCP_TOGGLE_FIELDS, WIRE_MCP_TOGGLE_RESPONSE_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_ENTRIES_FIELDS, WIRE_MODEL_ENTRY_MODELS_FIELDS, WIRE_MODEL_ENTRY_SAVE_FIELDS, WIRE_MODEL_ENTRY_TEST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_PATCH_SESSION_FIELDS, WIRE_PATCH_SESSION_RESPONSE_FIELDS, WIRE_PERMISSION_RULE_FIELDS, WIRE_PERMISSION_SET_REQUEST_FIELDS, WIRE_PERMISSION_SET_RESPONSE_FIELDS, WIRE_PERMISSION_SHADOW_FIELDS, WIRE_PERMISSION_STATE_FIELDS, WIRE_PERMISSION_STATUS_FIELDS, WIRE_PLAN_ACTIONS, WIRE_PLAN_FIELDS, WIRE_PLAN_MODE_REQUEST_FIELDS, WIRE_PLAN_MODE_RESPONSE_FIELDS, WIRE_PLAN_MODE_STATE_FIELDS, WIRE_PLUGINS_FIELDS, WIRE_PLUGIN_ACTION_FIELDS, WIRE_PLUGIN_ARCHIVE_SUFFIXES, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_STAGE_FIELDS, WIRE_PLUGIN_STAGE_RESPONSE_FIELDS, WIRE_PLUGIN_TOGGLE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_VIEW_FIELDS, WIRE_PLUGIN_VIEW_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROJECT_INVENTORY_FIELDS, WIRE_PROVIDER_GROUPS, WIRE_QUESTION_LIST_FIELDS, WIRE_QUESTION_ROW_FIELDS, WIRE_RESPOND_APPROVAL_FIELDS, WIRE_RESPOND_APPROVAL_RESPONSE_FIELDS, WIRE_RESPOND_QUESTION_FIELDS, WIRE_RESPOND_QUESTION_RESPONSE_FIELDS, WIRE_REVEAL_WORKSPACE_FIELDS, WIRE_REVEAL_WORKSPACE_RESPONSE_FIELDS, WIRE_REVIVE_FIELDS, WIRE_REWIND_FILE_PLAN_FIELDS, WIRE_REWIND_OUTCOME_FIELDS, WIRE_REWIND_PREVIEW_FIELDS, WIRE_REWIND_REQUEST_FIELDS, WIRE_REWIND_RESPONSE_FIELDS, WIRE_REWIND_SCOPES, WIRE_ROLES_FIELDS, WIRE_ROLE_ADD_FIELDS, WIRE_ROLE_ADD_RESPONSE_FIELDS, WIRE_ROLE_REMOVE_FIELDS, WIRE_RUNNING_SCHEDULE_FIELDS, WIRE_SANDBOX_STATUS_FIELDS, WIRE_SCHEDULE_CAPABILITY_FIELDS, WIRE_SCHEDULE_CREATE_FIELDS, WIRE_SCHEDULE_DEFAULTS_FIELDS, WIRE_SCHEDULE_DELETE_FIELDS, WIRE_SCHEDULE_FIELDS, WIRE_SCHEDULE_FIX_FIELDS, WIRE_SCHEDULE_FIX_REQUEST_FIELDS, WIRE_SCHEDULE_ISSUE_CODES, WIRE_SCHEDULE_LIST_FIELDS, WIRE_SCHEDULE_PENDING_FIELDS, WIRE_SCHEDULE_RECORDING_FIELDS, WIRE_SCHEDULE_ROW_FIELDS, WIRE_SCHEDULE_RUNNING_FIELDS, WIRE_SCHEDULE_RUNS_FIELDS, WIRE_SCHEDULE_RUN_FIELDS, WIRE_SCHEDULE_SAVE_FIELDS, WIRE_SECURITY_FIELDS, WIRE_SECURITY_WORKSPACE_FIELDS, WIRE_SEND_MESSAGE_FIELDS, WIRE_SEND_MESSAGE_RESPONSE_FIELDS, WIRE_SESSION_BRANCH_RESPONSE_FIELDS, WIRE_SESSION_CANDIDATES_FIELDS, WIRE_SESSION_CANDIDATE_FIELDS, WIRE_SESSION_FINISH_FIELDS, WIRE_SESSION_LIST_FIELDS, WIRE_SESSION_REFERENCE_FIELDS, WIRE_SESSION_RESPONSE_FIELDS, WIRE_SESSION_SUMMARY_FIELDS, WIRE_SESSION_WORKSPACE_FIELDS, WIRE_SESSION_WORKSPACE_RESPONSE_FIELDS, WIRE_SETTINGS_FIELDS, WIRE_SETTINGS_WRITE_FIELDS, WIRE_SETTINGS_WRITE_REQUEST_FIELDS, WIRE_SETTING_PENDING_FIELDS, WIRE_SETTING_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_DROP_SUFFIXES, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_SKILL_STAGE_FIELDS, WIRE_SKILL_TOGGLE_FIELDS, WIRE_SUBAGENT_LIST_FIELDS, WIRE_TASKS_FIELDS, WIRE_TEAM_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_WITHDRAW_MESSAGE_FIELDS, WIRE_WORKSPACE_DIFF_FIELDS, WIRE_WORKSPACE_DIRS_FIELDS, WIRE_WORKSPACE_DIR_ENTRY_FIELDS, WIRE_WORKSPACE_REF_FIELDS, accentScale, activityOf, agentMessageLine, apiKeyEnvVar, appearanceInlineVars, appearanceRootAttributes, appearanceVisualCss, approvalPolicyForLevel, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, cronTimes, diagnosticToLine, encodeAppearanceFirstScreenValue, entryDisplayName, entryRef, entrySecretName, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, fillPlaceholders, flattenCatalog, formatAppearanceTranslucent, formatMoney, getProviderInfo, hasFailure, hexToHsv, hsvToHex, imagePartOmittedSummary, isAppearanceAccent, isAppearanceAccentValue, isAppearanceBackground, isAppearanceBackgroundFit, isAppearanceBackgroundKind, isAppearanceCodeFont, isAppearanceCodeFontSize, isAppearanceContrast, isAppearanceDiffTreeWidth, isAppearanceFontSize, isAppearanceLang, isAppearanceModePatch, isAppearanceMotion, isAppearanceSidebarWidth, isAppearanceTheme, isAppearanceThemeName, isAppearanceTranslucent, isAppearanceUiFont, isApprovalOutcome, isContextNearlyFull, isCurrency, isEntrySecretName, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isHexColor, isHostCommand, isHostMenuAction, isKeyAction, isLang, isMentionableFilePath, isModelEntryId, isOpenableLink, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isReasoningEffort, isSearchProviderType, isSettingsPaneId, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWirePluginArchiveName, isWireRewindScope, isWireSettingWriteLayer, isWireSkillDropName, liveDetail, makeTranslate, mcpConnectorState, normalizeAppearanceTranslucent, normalizeApproval, offloadedImagePart, packSessionSurface, parseAppearanceTranslucentText, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, relativeLuminance, resolveAppearanceVisual, resolveHostText, resolvePermissionLevel, sequenceId, sessionPartSummary, sessionSenderLabel, snapAppearanceContrast, stripSystemNote, stripTurnDigest, stripWakeMark, systemNote, tableOf, toolActivity, totalUsageTokens, translatorFor, truncateToBudget, turnDigest, unfixedRules, utf8ByteLength, wireFields };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-agent/protocol",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "private": false,
5
5
  "description": "epoch-agent 契约层:工具 / 事件 / 权限 / 插件的类型定义,零运行时依赖",
6
6
  "repository": {