@epoch-agent/protocol 0.13.0 → 0.14.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
@@ -2705,6 +2705,20 @@ interface EpochConfig {
2705
2705
  */
2706
2706
  vacuumAfterPrune?: boolean;
2707
2707
  };
2708
+ /**
2709
+ * 定时任务的录像留多少(2026-09-20)。
2710
+ *
2711
+ * ⚠️ 跑完的会话缺省**不留**(判据在 `ScheduleDefinition.showInSessionList` 上),
2712
+ * 所以 `<runId>.ndjson` 是那一轮**唯一**的记录 —— 删掉就真的没有了。
2713
+ * 缺省因此是 200 而不是老那个 20。`schedule_runs` 里那一行
2714
+ * (状态 / 花费 / 欠条)永远留着,被清掉的只是「点开能看的内容」。
2715
+ */
2716
+ automation?: {
2717
+ /** 一个任务留最近多少次运行的录像,缺省 200 */
2718
+ keepRuns?: number;
2719
+ /** 单个任务的录像总量上限(MB),缺省 64。先撞哪条算哪条 */
2720
+ maxRecordingMb?: number;
2721
+ };
2708
2722
  }
2709
2723
  /**
2710
2724
  * 支持的搜索后端。**三档「不用再办一个账号」的**:
@@ -4546,7 +4560,79 @@ type NoticeCode =
4546
4560
  * ⚠️ **一次 run 只发一帧**,判据逐字同 `images-dropped`:那几张历史图在这次
4547
4561
  * run 的每一轮都要重新摘一次,逐轮报的话一次多工具调用的对话会刷出十几行。
4548
4562
  */
4549
- | 'history-images-stripped';
4563
+ | 'history-images-stripped'
4564
+ /**
4565
+ * 用户**自己按了停**,而那一刻在飞的是一次 provider 请求(2026-09-17)。
4566
+ *
4567
+ * ## 它修的是一条穿过四层上屏的英文
4568
+ *
4569
+ * 中止信号一路往下传,最里层那次 `fetch` 抛的是 `DOMException: This
4570
+ * operation was aborted`。router 认得出它(`recovery: 'abort'`),但把
4571
+ * **异常的原文**当成给用户看的那句话发了出去(`{ type:'error' }`),
4572
+ * `turn.ts` 再 `throw new Error(那段字符串)` —— 于是 `AbortError` 这个身份
4573
+ * 在第三层就没了,只剩一句英文,落进 `AgentLoop.run()` 的兜底 catch,
4574
+ * 被记成 `finish: 'error'`。
4575
+ *
4576
+ * 三处因此同时说错话:会话里一条红色的 ⊗、回执 toast 那句「失败了」、
4577
+ * 以及落盘的 `finish_reason` 列(刷新之后变成「这一轮出错了」)。
4578
+ * 而**按停不是故障** —— 那正是用户刚刚要求的事。
4579
+ *
4580
+ * ## 和 `FinishReason` 的 `'aborted'` 是同一件事的两个出口,两个都要
4581
+ *
4582
+ * 判据逐字同 `response-truncated` / `'length'` 那一对:收尾原因是给**机器**
4583
+ * 分支的(落盘那一列、web 那枚记号、headless 的 `result.reason`),
4584
+ * 这一帧是给**人**看的那句话。少了这一帧,直播时屏幕上什么都没有,
4585
+ * 刷新之后反而多出一行 —— 两套说法。
4586
+ *
4587
+ * ⚠️ **两条路都发它,而且是同一帧**:请求在飞时按停(兜底 catch 那一支)和
4588
+ * 两轮之间按停(循环开头那道 `isAborted` 闸)。同一个按钮,按下去的那一刻
4589
+ * 卡在哪一段用户既看不见也控制不了 —— 分两套说法等于让同一次操作随机长成
4590
+ * 两块屏幕。
4591
+ *
4592
+ * ⚠️ **产出为零时不发**:按停赶在第一次请求发出之前的话,屏幕上一个字都没有,
4593
+ * 而这句话后半截说的是「上面已经产出的内容留着」—— 那时它指着空气。
4594
+ */
4595
+ | 'aborted'
4596
+ /**
4597
+ * **这一轮没能写进会话库**,屏幕上这段对话只活在这一次连接里(2026-09-20)。
4598
+ *
4599
+ * ## 它修的是一次「整段会话永久消失」
4600
+ *
4601
+ * 用户原话:「我打开一个新对话框,给他下达指令后,他完成了指令,但整个沟通
4602
+ * 记录一下子跳掉了。我是眼看着他跳掉的。」重启应用之后那段会话也不在了。
4603
+ *
4604
+ * 根因是 `runtime/src/session-store.ts` 的 `ensure()` 把「写不进去」读成了
4605
+ * 「已经存在」(判据全文在那个方法的头注释上)。会话行没建出来,而
4606
+ * `messages.session_id` 有外键指回 `sessions(id)`,于是**每一条消息都撞约束**,
4607
+ * 整段对话一个字节都没落盘 —— 而屏幕靠 SSE 直播,模型照跑、任务照做完,
4608
+ * 用户看到的一切都正常,直到一次重拉把空历史盖上去。
4609
+ *
4610
+ * 那个根因这一轮修掉了。这一帧管的是**剩下那一半**:磁盘满、库被另一个进程
4611
+ * 锁住、家目录只读 —— 这些是修不掉的,它们随时可能再次让落盘失败。差别只在
4612
+ * 于从此**用户当场知道**,而不是等一次刷新把对话吞掉才发现。
4613
+ *
4614
+ * ## ⚠️ 这一帧和别的 notice 不同:它说的是「屏幕上这些东西会没」
4615
+ *
4616
+ * 其余每一条 notice 说的都是已经发生、且**不影响存量**的事(压了一次、切了
4617
+ * 一段、丢了几张图)。这一条说的是**未来**:现在看得见的一切,关掉就没了。
4618
+ * 所以文案里必须有一句可执行的话(把重要的内容复制出去),只说
4619
+ * 「保存失败」等于让用户眼睁睁再丢一次。
4620
+ *
4621
+ * ## 两条路都发,但**一轮最多一帧**
4622
+ *
4623
+ * 开轮(`beginTurn`)就写不下去 = 这段会话一个字都不会落盘;跑到一半才写不
4624
+ * 下去(循环里的 `appendSteps` / `appendSteer`)= 用户那句话在库里、模型的回答
4625
+ * 不在。两种都要说,后一种一样会让人以为对话存住了。
4626
+ *
4627
+ * ⚠️ 但**一轮最多一帧**:磁盘满的时候这一轮里后续每一次落盘都会跟着失败,
4628
+ * 一次多工具调用逐个报会刷出十几行同样的话 —— 用户看见的是刷屏,不是提示。
4629
+ * 去重那一格在 `runtime/src/agent-session.ts` 的 `sayNotPersisted()` 上。
4630
+ *
4631
+ * ⚠️ 收尾那两处(`run()` 的 `finally` 里的 `appendSteps` / `endTurn`)**只记
4632
+ * 日志不发帧**:那一段一个 `yield` 都不能有(在 `finally` 里 yield 会吞掉正在
4633
+ * 传播的异常)。真只有收尾那一下失败时,用户这一轮看不到提示。
4634
+ */
4635
+ | 'not-persisted';
4550
4636
  type AgentEventType = AgentEvent['type'];
4551
4637
  /** 取出某个具体事件的类型,例如 AgentEventOf<'tool-call'> */
4552
4638
  type AgentEventOf<T extends AgentEventType> = Extract<AgentEvent, {
@@ -4913,6 +4999,29 @@ interface ScheduleDefinition {
4913
4999
  * 那种情况轮次和花费都不增长,这把尺子是唯一能拦它的。
4914
5000
  */
4915
5001
  timeoutMs: number;
5002
+ /**
5003
+ * 跑完的那一段会话**留不留**。不带 = `false` = **跑完就删掉,只留录像**。
5004
+ *
5005
+ * ## 缺省不留,而这是用户拍的
5006
+ *
5007
+ * 一条「每半点出报」的任务一天往侧栏里塞 48 段会话,几小时就把人真正在聊的
5008
+ * 那几段挤没了。所以缺省这一档:那一轮**既不进会话列表、也不进归档**,
5009
+ * 留下的只有 `<runId>.ndjson` 录像(执行记录点开就是它,工具卡 / 补丁 /
5010
+ * markdown 全渲染 —— 判据在 core 的 `schedule/recording.ts` 文件头)。
5011
+ *
5012
+ * ⚠️ **「收进归档」那一档试过又撤了**(2026-09-20 同一天):它确实能让侧栏
5013
+ * 干净,但设置页归档那一屏**只列最近 50 条、没有分页** —— 一条每半点的任务
5014
+ * 一天 48 条,拥挤只是从侧栏搬到了归档屏,而用户自己收起来的会话会被挤出去。
5015
+ * 所以执行记录上**也没有**「放进会话列表」那种按钮:没勾就是不留,
5016
+ * 没有事后补救那条路(要留就勾上,下一轮起生效)。
5017
+ *
5018
+ * ⚠️ 勾上之后它同时是**删除的豁免闸**:那条任务的会话一段都不删(判据在
5019
+ * runtime 执行器的 `dropSessions` 上)。用户明确要它进列表,那就是他的会话了。
5020
+ *
5021
+ * 今天只有 web 的任务表单写它;CLI 的 `add` 不给旗子 —— 缺省值就是要的行为
5022
+ * (同 {@link role} 那格「库里有位、写入路不写」的先例,只是这一格**读侧全通**)。
5023
+ */
5024
+ showInSessionList?: boolean;
4916
5025
  trigger: ScheduleTrigger;
4917
5026
  /**
4918
5027
  * 生效区间(`YYYY-MM-DD`,含首尾),留空表示始终生效。
@@ -5884,7 +5993,7 @@ declare function promptTokens(usage: TokenUsage): number;
5884
5993
  *
5885
5994
  * 上面那段话 2026-08-16 被逐字核过一次,核出来它比真相说得满 —— 那时两个消费方
5886
5995
  * 喂进来的**分子和分母都不是同一个东西**。两半分两轮接上了,这张表记的是
5887
- * **今天**的样子(原来那一版的分子行留在下面那张已结账的 📮 原文里当判据):
5996
+ * **今天**的样子:
5888
5997
  *
5889
5998
  * | | 引擎(`shouldCompress` 的实参) | 界面拿得到的 |
5890
5999
  * | --- | --- | --- |
@@ -5893,7 +6002,7 @@ declare function promptTokens(usage: TokenUsage): number;
5893
6002
  *
5894
6003
  * 分母那一半 2026-08-17 接上(`WireCompressionLine.contextLength` 转的就是
5895
6004
  * `services.contextLength` 本身),分子那一半 2026-08-18 接上(改的是 `loop.ts`
5896
- * 轮间压缩那一行的实参,判据见下面那张 ✅)。
6005
+ * 轮间压缩那一行的实参,判据见下面那一节)。
5897
6006
  *
5898
6007
  * ⚠️ **同一个量纲不等于同一个数。** 剩下两处差别是知道的,也是可接受的:
5899
6008
  * **一估一真**(界面那个是分词器估的,引擎那个是 provider 报的),
@@ -5908,7 +6017,7 @@ declare function promptTokens(usage: TokenUsage): number;
5908
6017
  *
5909
6018
  * ---
5910
6019
  *
5911
- * ### ✅ 2026-08-18 收了:答的是**「不该」**(原文是一张 📮,留着当判据)
6020
+ * ### ⚠️ 轮间压缩比的是**最近一次请求的提示词**,不是 run 内的累加和
5912
6021
  *
5913
6022
  * 落地就是改 `loop.ts` 轮间压缩那一行的实参:现在传的是最近一次请求的
5914
6023
  * `promptTokens(usage)`,`totalInput + totalOutput` 那个累加和退回它本来的
@@ -5946,53 +6055,11 @@ declare function promptTokens(usage: TokenUsage): number;
5946
6055
  * 都在场),断言压缩发生在**第七轮**(提示词真的越线那一轮),而不是错的那一版的
5947
6056
  * **第五轮**(累加和越线、冷却期恰好也走完的那一轮,那时窗口才用掉 15%)。
5948
6057
  *
5949
- * #### 落到界面上那一半:留了一张 📮
6058
+ * #### 落到界面上那一半
5950
6059
  *
5951
- * 这次修改让引擎那个分子和界面那个**变成了同一个量纲**,于是
5952
- * `design/web-ui/README.md` §10.4 和 `web/src/thread/turn-head.tsx` /
5953
- * `web/src/settings/context-memory.tsx` 上那几句「同一条线一个定义」可以说得比
5954
- * 今天更满;同时上面那条单向性质没了,它们的措辞得照着重读一遍。
5955
- * `packages/web/**` 和 `design/` 在本轮的禁区里,所以只记不改 —— 📮 写在
5956
- * {@link isContextNearlyFull} 上,因为那正是那两处 web 文件 import 的符号,
5957
- * 下一个动那几句措辞的人一定会先打开它(同方案 30 §16.5:写在下一个人会
5958
- * 打开的那一段上)。
6060
+ * 这次修改让引擎那个分子和界面那个**变成了同一个量纲**,同时上面那条单向性质没了
6061
+ * —— 三处 web 措辞因此跟着重读过一遍,逐处落点见 {@link isContextNearlyFull}。
5959
6062
  *
5960
- * ---
5961
- *
5962
- * **以下是原文,一个字没改** —— 这个仓的规矩是一条改过的判断只有连着它原来的
5963
- * 样子看,才知道改的是什么。
5964
- *
5965
- * ### 📮 我够不着,你来收(按方案 30 §十二):`shouldCompress` 的实参名不副实
5966
- *
5967
- * `core/src/agent/loop.ts` 的轮间压缩那一行传的是
5968
- * `this.maybeCompress(messages, totalInput + totalOutput)`,而
5969
- * `ContextCompressor.shouldCompress(promptTokens, contextLength)` 的形参叫
5970
- * `promptTokens`、并把它直接交给 {@link isContextNearlyFull}(`@param prompt`
5971
- * 写着「这一轮的**提示词大小**」)。**两处文档互相矛盾,其中一处是假话。**
5972
- * `compressor.ts` 文件头那句「触发点从来就是准的」说的是「不是估出来的」,
5973
- * 那一半对;但它和「它是提示词大小」是两件事,今天读起来像一件。
5974
- *
5975
- * 判据(要收的人得先答这个):**一个跨 run 不累加、量纲是「占窗口几成」的阈值,
5976
- * 该不该拿一个 run 内累加的总量去比。** 答「不该」就是改 `loop.ts` 那一行的实参;
5977
- * 答「该」就是给这条路上的形参和文档换一套名字,并且把
5978
- * {@link isContextNearlyFull} 从这条路上摘掉(它的语义是提示词占用,不是 run 总量)。
5979
- *
5980
- * **不收的代价**:今天这两个量纲在**单步回合**上恰好接近(`totalInput` 只加了一次),
5981
- * 在**多步工具回合**上差好几倍 —— 也就是说它对聊天大致对、对干活的 agent 明显偏早,
5982
- * 而这是一个编码宿主。症状是长回合里莫名其妙多压了几次(每次都是一次真实的 LLM
5983
- * 调用和一次早期消息改写),而没有任何用例、任何日志、任何界面会指向这一行。
5984
- * `core/**` 在本轮的禁区里,所以只记不改。
5985
- *
5986
- * ⚠️ **2026-08-17 合并那一轮看过了,判成不收,这张 📮 原样留着。** 判据不是
5987
- * 「够不着」了(合并的人哪个文件都够得着),是**它要的不是收账是判断**:上面
5988
- * 那道题只有两个答案,两个都改真实行为(一个改引擎什么时候压,一个改
5989
- * 一条压缩路径的语义),而这一轮的职责是「别让 main 撒谎或者坏掉」——
5990
- * 今天 main 两样都不占:这段文档把矛盾**逐字写明**了,没有第二处在说反话。
5991
- * 同一批里故意没收的另一笔(顶栏标题差一拍)和判据一起记在
5992
- * [plans/README](../../../.agents/plans/README.md) 的
5993
- * 「两笔合并那一轮故意没收的账」。
5994
- *
5995
- * ---
5996
6063
  *
5997
6064
  * ⚠️ **它只是那条线,不是「会不会压」的完整答案。** 压缩器上还有冷却期
5998
6065
  * (压完 N 轮内不再压)和熔断(连续失败就不再试),那两道**只有引擎知道**,
@@ -6013,9 +6080,9 @@ declare function compressionThresholdTokens(contextLength: number, threshold: nu
6013
6080
  *
6014
6081
  * ---
6015
6082
  *
6016
- * ### ✅ 2026-08-16 合并那一轮收了:三处 web 措辞照着重读了一遍
6083
+ * ### 那条单向保证没了之后,三处 web 措辞跟着改过(2026-08-16)
6017
6084
  *
6018
- * 逐处的落点(原文留在下面当判据):
6085
+ * 逐处的落点:
6019
6086
  *
6020
6087
  * | 处 | 收成什么 |
6021
6088
  * | --- | --- |
@@ -6023,36 +6090,10 @@ declare function compressionThresholdTokens(contextLength: number, threshold: nu
6023
6090
  * | `design/web-ui/README.md` §10.4 | 补了一张表说清「一条线是三样东西」:分母那一半是 `WireCompressionLine` 落地那一轮补的、分子这一半是这一轮补的,以及**少了的那条单向保证** |
6024
6091
  * | `web/src/settings/context-memory.tsx` | 那句免责标明「从这一轮起只剩一条腿」 |
6025
6092
  *
6026
- * ⚠️ 那张 📮 自己点名「i18n 那两行不用动」,照办了 —— 两个 locale 一个字没碰。
6093
+ * ⚠️ **i18n 那两行刻意没动**:`head_ctx_line` 的正文(「到压缩线」/
6094
+ * `at compaction line`)陈述的是「这一轮的提示词到线了」这个事实本身,
6095
+ * 两个 locale 今天都为真。
6027
6096
  *
6028
- * ---
6029
- *
6030
- * ### 📮 原文(我够不着,你来收,按方案 30 §十二):三处 web 措辞该照着重读一遍
6031
- *
6032
- * 2026-08-18 改掉了引擎那一侧的实参(判据全文在 {@link compressionThresholdTokens}
6033
- * 那张已结账的 📮 上)。对这个函数**本身没有影响** —— 它的 `@param prompt` 从来
6034
- * 说的就是提示词大小,这次是实参终于对上了。要收的是**两件事的措辞**:
6035
- *
6036
- * 1. **可以说得比今天满。** [design/web-ui/README.md](../../../design/web-ui/README.md)
6037
- * §10.4、`web/src/thread/turn-head.tsx` 的 `contextBadge()`、
6038
- * `web/src/settings/context-memory.tsx` 那三处今天只敢说「**这句算术**是同一个
6039
- * 函数」(原话:「同一个函数只管这句算术,管不着喂进去的数」)—— 分母
6040
- * 2026-08-17 接上了,分子 2026-08-18 接上了,现在**两个数也是同一个量纲**了;
6041
- * 2. **同时少了一条保证,别漏掉。** 改之前引擎那个累加和恒大于等于提示词大小,
6042
- * 于是「界面到线 ⇒ 引擎也过线」单向成立;现在两边一估一真、一前一后,
6043
- * **谁大谁小没有保证**。结论没变(措辞只准说「到线了」,不准说「接下来会压
6044
- * 一次」),但**理由变了**:从「引擎那个数更大,所以界面会漏说」换成了
6045
- * 「冷却期和熔断只有引擎知道」。写着旧理由的地方要跟着改。
6046
- *
6047
- * 📮 而不是 📌:它不是条件式的,是**这一轮就该做、只是不归我做**。
6048
- * `packages/web/**` 和 `design/` 都在本轮的禁区里(三家分支各在动),
6049
- * 绕过去(在 core 里复制一份措辞)和伸手改(合并必冲突)都不走,走第三条。
6050
- *
6051
- * ⚠️ **i18n 那两行不用动**:`head_ctx_line` 的正文是「到压缩线」/
6052
- * `at compaction line`,陈述的是「这一轮的提示词到线了」这个事实本身,
6053
- * 两个 locale 今天都为真、改完还是真。要改的只有代码注释和设计稿里那几段判据。
6054
- *
6055
- * ---
6056
6097
  *
6057
6098
  * @param prompt 这一轮的提示词大小,取 {@link promptTokens}(**不是** `usage.inputTokens`)
6058
6099
  */
@@ -7200,27 +7241,24 @@ declare const WIRE_PROJECT_INVENTORY_FIELDS: WireFields<WireProjectInventory>;
7200
7241
  * `getCapability(config.model).contextLength` —— 于是默认配置(schema 的 200_000)
7201
7242
  * 配上一个 gpt-4o(128_000)时,两个数差 1.56 倍,而没有任何地方会报错。
7202
7243
  *
7203
- * ## ✅ 2026-08-17 合并那一轮收掉了(原文是一张 📮,留着当判据)
7244
+ * ## ⚠️ 设置页那两个数只能从这一份取,**别从 `SETTING_ROWS` 里翻**
7204
7245
  *
7205
- * 收的那一笔只有一处:`web/src/settings/context-memory.tsx` 那一块的两个数改从
7206
- * `GET /api/config` 的这一份取(一路从 `app.tsx` 递下去),不再从设置页那几行翻。
7207
- * 同一轮还改了 `h_context_length` 那句文案 —— 它原来写着「配了就以配的为准」,
7208
- * 那是**反的**(判据见下面那一节)。
7246
+ * `web/src/settings/context-memory.tsx` 那一块(「设置 › 记忆与上下文」里
7247
+ * 「`128,000 × 50% = 64,000`」那条线)走的是 `GET /api/config` 的这一份,
7248
+ * 一路从 `app.tsx` 递下去。
7209
7249
  *
7210
- * 原文一个字没改地留在下面。它不是纪念品:**这一格今天对了,不代表下一个人
7211
- * 改回去会有东西红。** 那一块只要有人「顺手」把 `contextLength` 从
7212
- * `rows` 里翻出来(那一行就在同一个分区里,名字还一模一样),症状逐字就是下面写的。
7213
- *
7214
- * > 📮 **我够不着,你来收(按方案 30 §十二):`GET /api/sessions/:id/settings` 的
7215
- * > `contextLength` 那一行发的正是 `EpochConfig.contextLength`**(runtime 的
7216
- * > `SETTING_ROWS` + `valueAt(services.baseConfig, …)`),而
7217
- * > `web/src/settings/context-memory.tsx` 拿它乘出「`128,000 × 50% = 64,000`」印在
7218
- * > 「设置 › 记忆与上下文」上 —— **那条线对任何一个窗口不等于 `contextLength` 配置值的
7219
- * > 模型都是错的**(gpt-4o 印 100,000、真线 64,000;gemini 印 100,000、真线 500,000)。
7220
- * > 设置页那一块要的是这里这个 `contextLength`,不是那一行。
7221
- * > `web/src/settings/**` 在本轮的禁区里,所以只记不改。
7222
- * > **不收的代价**:那一块存在的全部理由就是「用户在别处算不出这条线,替他算出来」——
7223
- * > 算出一个错的比不算更坏,而屏幕上没有任何东西能让用户发现它错了。
7250
+ * **这一格今天对了,不代表下一个人改回去会有东西红。** 只要有人「顺手」把
7251
+ * `contextLength` 从 `rows` 里翻出来(那一行就在同一个分区里,名字还一模一样),
7252
+ * 拿到的就是 `EpochConfig.contextLength`(runtime 的 `SETTING_ROWS` +
7253
+ * `valueAt(services.baseConfig, …)`)—— **那条线对任何一个窗口不等于
7254
+ * `contextLength` 配置值的模型都是错的**(gpt-4o 印 100,000、真线 64,000;
7255
+ * gemini 印 100,000、真线 500,000)。
7256
+ *
7257
+ * 代价:那一块存在的全部理由就是「用户在别处算不出这条线,替他算出来」——
7258
+ * 算出一个错的比不算更坏,而屏幕上没有任何东西能让用户发现它错了。
7259
+ *
7260
+ * 同一处还有一句文案的坑:`h_context_length` 曾经写着「配了就以配的为准」,
7261
+ * 那是**反的**(判据见下面那一节)。
7224
7262
  *
7225
7263
  * ## 三个数各自是什么
7226
7264
  *
@@ -10101,6 +10139,28 @@ interface WireCapabilitiesResponse {
10101
10139
  project: WireCapabilityProject;
10102
10140
  }
10103
10141
  declare const WIRE_CAPABILITIES_FIELDS: WireFields<WireCapabilitiesResponse>;
10142
+ /**
10143
+ * `GET /api/roles` —— 角色清单,**和会话无关**(2026-09-17)。
10144
+ *
10145
+ * ## 它和 {@link WireCapabilitiesResponse} 的 `roles` 是同一份东西
10146
+ *
10147
+ * 服务端两处走的是同一行计算(`runtime.agentRoles.map(toWireRole)`),
10148
+ * 所以这**不是第二个真源,是同一份东西的第二道门**。
10149
+ *
10150
+ * 之所以要第二道门:上面那份挂在 `GET /api/sessions/:id/capabilities` 上,
10151
+ * 要一个 sessionId。而定时任务那一屏(选「这条任务用哪个角色跑」)**没有会话**
10152
+ * —— 一条定时任务本来就不属于任何会话,为了拿一份清单去借一个 sessionId
10153
+ * 是概念错位:没有活动会话时那一格会莫名其妙地空掉。
10154
+ *
10155
+ * ⚠️ **不要为了这一处再造一个更小的角色形状。** 复用
10156
+ * {@link WireAgentRoleSummary} —— 界面今天只用 `name` / `description`,
10157
+ * 但另造一份「精简版」的代价是同一个概念在网线上有两种形状,而它们迟早分叉
10158
+ * (判据同 `WireScheduleRow` 那段「拆开而不是摊平」的反面:这里本来就是同一份)。
10159
+ */
10160
+ interface WireRolesResponse {
10161
+ roles: readonly WireAgentRoleSummary[];
10162
+ }
10163
+ declare const WIRE_ROLES_FIELDS: WireFields<WireRolesResponse>;
10104
10164
  /**
10105
10165
  * 一次重连的回执 —— `POST /api/mcp/:name/reconnect`(方案 56 §1.1)。
10106
10166
  *
@@ -14333,19 +14393,42 @@ declare const WIRE_SCHEDULE_CAPABILITY_FIELDS: WireFields<WireScheduleCapability
14333
14393
  * 服务端原样转发。**不让表单自己写死一份**:那两份缺省一改,界面上预填的就是
14334
14394
  * 一个和引擎不一样的值,而它编译得过、跑得通、只是和 CLI 建出来的任务不一致。
14335
14395
  *
14336
- * ## ⚠️ 这里**没有** `maxBudgetUsd`,而那是整份契约里最要紧的一处缺席
14396
+ * ## ⚠️ 这一份是「表单该预填什么」,**不是**「没给值时引擎用什么」
14337
14397
  *
14338
- * 方案 45 §3.5 / §十二 第 2 条:`--budget` **必填、没有默认值**,这是全方案
14339
- * 唯一一处刻意增加的摩擦。一个假默认会让「一觉醒来 40 美元」变成我们的错。
14340
- * 所以这个形状里连一个可选的 `maxBudgetUsd?` 都不留 —— 留了下一个人就会
14341
- * 「顺手给个 0.50」,而那正是这条决定要拦的动作。表单上它是一个空的必填格,
14342
- * 旁边写着为什么。
14398
+ * 两者今天只在 {@link WireScheduleDefaults.maxBudgetUsd} 这一格上分开,而那一格
14399
+ * 正是这条分界存在的理由:
14400
+ *
14401
+ * | 这一份(`WireScheduleDefaults`) | core 的 `SCHEDULE_DEFAULTS` |
14402
+ * | --- | --- |
14403
+ * | 新建表单打开时那几个格子里**印着**什么 | 调 API / CLI **没给**这一格时引擎兜底用什么 |
14404
+ * | 预算在这儿有值(200) | 预算**不在那儿** —— 没给就是 400 |
14405
+ *
14406
+ * 也就是说:表单上预算那一格是预填的,而**网线那一侧照旧必填**。
14407
+ *
14408
+ * ## ⚠️ `maxBudgetUsd` 2026-09-18 加进来了,而它撤掉的是方案 45 §3.5
14409
+ *
14410
+ * 这里原来写着「这个形状里连一个可选的 `maxBudgetUsd?` 都不留 —— 留了下一个人
14411
+ * 就会顺手给个 0.50」。那条决定(`--budget` 必填、**没有默认值**,全方案唯一一处
14412
+ * 刻意增加的摩擦)**用户撤掉了一半**:表单上它现在预填 200。
14413
+ *
14414
+ * 留下的那一半是承重的,别跟着一起撤:
14415
+ *
14416
+ * 1. 表单上**清空了就存不下**(那两个保存按钮 `disabled`);
14417
+ * 2. **网线上照旧必填** —— 服务端 `schedule_budget_required` 是 400,CLI 的
14418
+ * `--budget` 照旧必给。这一道拦的是别的客户端,而不是坐在表单前的那个人。
14343
14419
  */
14344
14420
  interface WireScheduleDefaults {
14345
14421
  /** 无人看着的一轮不该比有人看着的更长(交互缺省是 50) */
14346
14422
  maxTurns: number;
14347
14423
  /** 墙钟超时。唯一能拦住「一条命令挂住了」的那把尺子 */
14348
14424
  timeoutMs: number;
14425
+ /**
14426
+ * 表单里预算那一格印什么(2026-09-18)。
14427
+ *
14428
+ * ⚠️ **只是预填**,不是引擎兜底 —— 判据全文在上面那张表上。这一格在
14429
+ * core 的 `SCHEDULE_DEFAULTS` 里**没有对应物**,那是刻意的。
14430
+ */
14431
+ maxBudgetUsd: number;
14349
14432
  allowTools: readonly string[];
14350
14433
  allowOperations: readonly OperationType[];
14351
14434
  allowRules: readonly string[];
@@ -14442,6 +14525,15 @@ interface WireScheduleCreateRequest {
14442
14525
  */
14443
14526
  workDir?: string;
14444
14527
  model?: string;
14528
+ /**
14529
+ * 「召唤专家」——这条任务用哪个身份跑(2026-09-17 接通)。
14530
+ *
14531
+ * 不给就跑默认 agent。给了一个**不存在**的名字,那一次运行会记成 `failed`,
14532
+ * `reason` 里带上可用角色清单——判据在 `ScheduleDefinition.role` 和执行器里
14533
+ * 递给 `buildRuntime({ agent })` 那一处:静默跑一个能力范围不同的 agent
14534
+ * 在无人值守下是最坏的结果,所以宁可红。
14535
+ */
14536
+ role?: string;
14445
14537
  allowTools?: readonly string[];
14446
14538
  allowOperations?: readonly OperationType[];
14447
14539
  allowRules?: readonly string[];
@@ -14450,6 +14542,13 @@ interface WireScheduleCreateRequest {
14450
14542
  startDate?: string;
14451
14543
  endDate?: string;
14452
14544
  enabled?: boolean;
14545
+ /**
14546
+ * 跑完的那一段会话直接进会话列表吗。**不给 = `false` = 跑完收进归档**。
14547
+ *
14548
+ * 判据全文(以及它同时还是留存清理的一道豁免闸)在
14549
+ * `ScheduleDefinition.showInSessionList` 上。
14550
+ */
14551
+ showInSessionList?: boolean;
14453
14552
  /**
14454
14553
  * 用户勾过那个「我明白」没有 —— **只在 `permission === 'bypass'` 时被看**。
14455
14554
  *
@@ -14462,8 +14561,8 @@ declare const WIRE_SCHEDULE_CREATE_FIELDS: WireFields<WireScheduleCreateRequest>
14462
14561
  /**
14463
14562
  * `PATCH /api/schedules/:id` 的请求体 —— **没给的字段一个都不动**。
14464
14563
  *
14465
- * ⚠️ **四个**「清空」用 `null` 而不是空串(`workDir` / `model` / `startDate` /
14466
- * `endDate`):`workDir: null` 是「不绑工作区了」,而 `workDir: ''` 说不清是
14564
+ * ⚠️ **五个**「清空」用 `null` 而不是空串(`workDir` / `model` / `role` /
14565
+ * `startDate` / `endDate`):`workDir: null` 是「不绑工作区了」,而 `workDir: ''` 说不清是
14467
14566
  * 「清空」还是「客户端把一个 undefined 序列化坏了」。
14468
14567
  * 同一条规矩在 `WireModelSetRequest.model` 上用过一次。
14469
14568
  *
@@ -14482,6 +14581,8 @@ interface WireScheduleUpdateRequest {
14482
14581
  maxBudgetUsd?: number;
14483
14582
  workDir?: string | null;
14484
14583
  model?: string | null;
14584
+ /** 换身份 / 清掉(`null` = 回到默认 agent)。见 {@link WireScheduleCreateRequest.role} */
14585
+ role?: string | null;
14485
14586
  allowTools?: readonly string[];
14486
14587
  allowOperations?: readonly OperationType[];
14487
14588
  allowRules?: readonly string[];
@@ -14491,6 +14592,8 @@ interface WireScheduleUpdateRequest {
14491
14592
  endDate?: string | null;
14492
14593
  /** 那个开关。`PATCH` 里改它 = `enable` / `disable`,**不另开一条端点** */
14493
14594
  enabled?: boolean;
14595
+ /** 见 {@link WireScheduleCreateRequest.showInSessionList} */
14596
+ showInSessionList?: boolean;
14494
14597
  bypassAcknowledged?: boolean;
14495
14598
  }
14496
14599
  /**
@@ -15299,4 +15402,4 @@ declare const SECRET_SERVICE = "epoch-agent";
15299
15402
  */
15300
15403
  declare const MCP_DATA_KEY_NAME = "mcp-auth-data-key";
15301
15404
 
15302
- export { ACTION_CONTEXTS, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPROVAL_OUTCOMES, type ActiveAgentRole, type AgentEvent, type AgentEventOf, type AgentEventType, type AgentRole, type AgentRoleScope, type AgentRoleSource, type ApprovalAnswer, type ApprovalOutcome, type ApprovalReply, type ApprovalRequest, type ArtifactKind, type AttributeValue, type Attributes, type BackgroundTaskInfo, type BackgroundTaskKind, type BackgroundTaskStatus, type BlankCard, type BlankGreeting, type BoundKey, type BudgetBreach, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, CURRENCIES, type Catalogs, type ComplianceAction, type ComplianceCategory, type ContextBreakdown, type ContextSegment, type Currency, type CurrencyDisplay, type CustomCommandDef, type CustomCommandSource, DEFAULT_AGENT_ROLE, DEFAULT_LANG, type DecidedTrustLevel, type Diagnostic, DiagnosticSink, type DiagnosticStatus, type EpochConfig, type EpochContentPart, 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 EpochUserContent, type ExpandedCommand, 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, 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 JsonSchema, KEY_ACTIONS, type KeyAction, type KeyChord, type KeyContext, type KeySequence, type KeybindingReport, type KeybindingSource, type KeybindingTable, LANGS, type Lang, type LocalizedDetail, type LogFn, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, METRIC, MIN_OPTIONS, type MentionSet, type ModelRef, type ModelSelection, type ModelSelectionOrigin, type MoneyDigits, NOOP_TELEMETRY, type NoticeCode, OPERATION_TYPES, OVERSIZE_RATIO, type Operation, type OperationType, PERMISSION_LEVELS, PLAN_OUTCOMES, 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 QuestionRequest, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, type RejectReason, type RejectedKey, type RuleValue, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MINUTES, SCHEDULE_RUN_STATUSES, SCHEDULE_TEMPLATES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SHELL_KINDS, SIDEBAR_MENU_MESSAGE_TYPE, SIMULTANEOUS_CONTEXTS, SYSTEM_NOTE_PREFIX, type ScheduleAllowlist, type ScheduleBackendKind, 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 ScheduleTemplate, type ScheduleTemplateId, 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 ShellKind, type SidebarMenuItem, type SidebarMenuMessage, type SpanLike, type SubToolCall, type SubToolCallResult, type Telemetry, type TokenUsage, type ToolAnnotations, type ToolArtifact, type ToolArtifactInput, type ToolContext, type ToolDefinition, ToolExposure, type ToolProvider, type ToolResult, type Translate, type TranslateVars, 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_APPROVAL_CACHE_REVOKE_REQUEST_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_RESPONSE_FIELDS, WIRE_APPROVAL_LIST_FIELDS, WIRE_APPROVAL_ROW_FIELDS, WIRE_ARTIFACTS_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_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_RECONNECT_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_MODEL_SUGGESTIONS_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_INSTALL_FIELDS, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_MARKETPLACE_FIELDS, WIRE_PLUGIN_MARKETPLACE_RESPONSE_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_REFRESH_RESPONSE_FIELDS, WIRE_PLUGIN_STAGE_FIELDS, WIRE_PLUGIN_STAGE_RESPONSE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS, WIRE_PLUGIN_UPLOAD_FIELDS, WIRE_PLUGIN_UPLOAD_FORM_FIELDS, WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROJECT_INVENTORY_FIELDS, WIRE_PROVIDERS_FIELDS, WIRE_PROVIDER_KEY_FIELDS, WIRE_PROVIDER_MODELS_FIELDS, WIRE_PROVIDER_OPTION_FIELDS, 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_REWIND_FILE_PLAN_FIELDS, WIRE_REWIND_OUTCOME_FIELDS, WIRE_REWIND_PREVIEW_FIELDS, WIRE_REWIND_REQUEST_FIELDS, WIRE_REWIND_RESPONSE_FIELDS, WIRE_REWIND_SCOPES, 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_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_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_TRUST_REQUEST_FIELDS, WIRE_TRUST_REQUEST_RESPONSE_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 WireApprovalCacheRevokeRequest, type WireApprovalCacheRevokeResponse, type WireApprovalListResponse, type WireApprovalRequest, type WireArtifactsResponse, 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 WireDiffNote, type WireDiffOmitReason, type WireDiffSource, type WireDiffStatus, 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 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 WireMcpReconnectResponse, type WireMessageListResponse, type WireModelCaveat, type WireModelProbeStatus, type WireModelRejection, type WireModelResponse, type WireModelSelection, type WireModelSetRequest, type WireModelSetResponse, type WireModelSource, type WireModelSuggestions, 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 WirePluginEntry, type WirePluginHit, type WirePluginHookTally, type WirePluginInstallRequest, type WirePluginLocalInstallRequest, type WirePluginLocalRequest, type WirePluginMarketplace, type WirePluginMarketplaceRequest, type WirePluginMarketplaceResponse, type WirePluginNameRequest, type WirePluginPreview, type WirePluginPreviewRequest, type WirePluginPreviewResponse, type WirePluginRefreshResponse, type WirePluginRefuseReason, type WirePluginSourceType, type WirePluginStageRequest, type WirePluginStageResponse, type WirePluginStatus, type WirePluginUpdateRequest, type WirePluginUploadChoice, type WirePluginUploadConfirmRequest, type WirePluginUploadField, type WirePluginUploadFieldName, type WirePluginUploadFields, type WirePluginUploadFile, type WirePluginUploadForm, type WirePluginUploadPlan, type WirePluginUploadPreviewResponse, type WirePluginUploadRequest, type WirePluginUploadResponse, type WirePluginVisibility, type WirePluginsResponse, type WirePolicyDir, type WirePolicyStatus, type WireProjectInventory, type WireProviderKeyRequest, type WireProviderKeyResponse, type WireProviderModelsRequest, type WireProviderModelsResponse, type WireProviderOption, type WireProviderSummary, type WireProvidersResponse, type WireQuestionListResponse, type WireQuestionRequest, type WireReplayMessage, type WireResetReason, type WireRespondApprovalRequest, type WireRespondApprovalResponse, type WireRespondQuestionRequest, type WireRespondQuestionResponse, 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 WireRunningSchedule, type WireSandboxReason, type WireSandboxStatus, 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 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 WireSkillImportConflict, type WireSkillImportEntry, type WireSkillImportFailure, type WireSkillImportForm, type WireSkillImportIssue, type WireSkillImportPreviewResponse, type WireSkillImportResponse, type WireSkillRemoveFailure, type WireSkillRemoveResponse, type WireSkillStageFailure, type WireSkillStageResponse, type WireSkillSummary, type WireSummaryWorkspace, type WireTaggedEvent, type WireTasksResponse, type WireToolGate, type WireToolGateAxis, type WireToolRow, type WireToolSummary, type WireToolVerdict, type WireToolsResponse, type WireTrustRequestRequest, type WireTrustRequestResponse, type WireTurnState, type WireWorkspaceBinding, type WireWorkspaceDiffResponse, type WireWorkspaceDirEntry, type WireWorkspaceDirsResponse, type WireWorkspaceRef, apiKeyEnvVar, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, diagnosticToLine, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, flattenCatalog, formatMoney, getProviderInfo, hasFailure, imagePartOmittedSummary, isApprovalOutcome, isContextNearlyFull, isCurrency, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWirePluginArchiveName, isWireRewindScope, isWireSettingWriteLayer, isWireSkillDropName, makeTranslate, mcpConnectorState, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, totalUsageTokens, translatorFor, truncateToBudget, turnDigest, unfixedRules, utf8ByteLength, wireFields };
15405
+ export { ACTION_CONTEXTS, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPROVAL_OUTCOMES, type ActiveAgentRole, type AgentEvent, type AgentEventOf, type AgentEventType, type AgentRole, type AgentRoleScope, type AgentRoleSource, type ApprovalAnswer, type ApprovalOutcome, type ApprovalReply, type ApprovalRequest, type ArtifactKind, type AttributeValue, type Attributes, type BackgroundTaskInfo, type BackgroundTaskKind, type BackgroundTaskStatus, type BlankCard, type BlankGreeting, type BoundKey, type BudgetBreach, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, CURRENCIES, type Catalogs, type ComplianceAction, type ComplianceCategory, type ContextBreakdown, type ContextSegment, type Currency, type CurrencyDisplay, type CustomCommandDef, type CustomCommandSource, DEFAULT_AGENT_ROLE, DEFAULT_LANG, type DecidedTrustLevel, type Diagnostic, DiagnosticSink, type DiagnosticStatus, type EpochConfig, type EpochContentPart, 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 EpochUserContent, type ExpandedCommand, 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, 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 JsonSchema, KEY_ACTIONS, type KeyAction, type KeyChord, type KeyContext, type KeySequence, type KeybindingReport, type KeybindingSource, type KeybindingTable, LANGS, type Lang, type LocalizedDetail, type LogFn, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, METRIC, MIN_OPTIONS, type MentionSet, type ModelRef, type ModelSelection, type ModelSelectionOrigin, type MoneyDigits, NOOP_TELEMETRY, type NoticeCode, OPERATION_TYPES, OVERSIZE_RATIO, type Operation, type OperationType, PERMISSION_LEVELS, PLAN_OUTCOMES, 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 QuestionRequest, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, type RejectReason, type RejectedKey, type RuleValue, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MINUTES, SCHEDULE_RUN_STATUSES, SCHEDULE_TEMPLATES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SHELL_KINDS, SIDEBAR_MENU_MESSAGE_TYPE, SIMULTANEOUS_CONTEXTS, SYSTEM_NOTE_PREFIX, type ScheduleAllowlist, type ScheduleBackendKind, 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 ScheduleTemplate, type ScheduleTemplateId, 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 ShellKind, type SidebarMenuItem, type SidebarMenuMessage, type SpanLike, type SubToolCall, type SubToolCallResult, type Telemetry, type TokenUsage, type ToolAnnotations, type ToolArtifact, type ToolArtifactInput, type ToolContext, type ToolDefinition, ToolExposure, type ToolProvider, type ToolResult, type Translate, type TranslateVars, 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_APPROVAL_CACHE_REVOKE_REQUEST_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_RESPONSE_FIELDS, WIRE_APPROVAL_LIST_FIELDS, WIRE_APPROVAL_ROW_FIELDS, WIRE_ARTIFACTS_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_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_RECONNECT_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_MODEL_SUGGESTIONS_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_INSTALL_FIELDS, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_MARKETPLACE_FIELDS, WIRE_PLUGIN_MARKETPLACE_RESPONSE_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_REFRESH_RESPONSE_FIELDS, WIRE_PLUGIN_STAGE_FIELDS, WIRE_PLUGIN_STAGE_RESPONSE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS, WIRE_PLUGIN_UPLOAD_FIELDS, WIRE_PLUGIN_UPLOAD_FORM_FIELDS, WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROJECT_INVENTORY_FIELDS, WIRE_PROVIDERS_FIELDS, WIRE_PROVIDER_KEY_FIELDS, WIRE_PROVIDER_MODELS_FIELDS, WIRE_PROVIDER_OPTION_FIELDS, 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_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_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_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_TRUST_REQUEST_FIELDS, WIRE_TRUST_REQUEST_RESPONSE_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 WireApprovalCacheRevokeRequest, type WireApprovalCacheRevokeResponse, type WireApprovalListResponse, type WireApprovalRequest, type WireArtifactsResponse, 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 WireDiffNote, type WireDiffOmitReason, type WireDiffSource, type WireDiffStatus, 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 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 WireMcpReconnectResponse, type WireMessageListResponse, type WireModelCaveat, type WireModelProbeStatus, type WireModelRejection, type WireModelResponse, type WireModelSelection, type WireModelSetRequest, type WireModelSetResponse, type WireModelSource, type WireModelSuggestions, 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 WirePluginEntry, type WirePluginHit, type WirePluginHookTally, type WirePluginInstallRequest, type WirePluginLocalInstallRequest, type WirePluginLocalRequest, type WirePluginMarketplace, type WirePluginMarketplaceRequest, type WirePluginMarketplaceResponse, type WirePluginNameRequest, type WirePluginPreview, type WirePluginPreviewRequest, type WirePluginPreviewResponse, type WirePluginRefreshResponse, type WirePluginRefuseReason, type WirePluginSourceType, type WirePluginStageRequest, type WirePluginStageResponse, type WirePluginStatus, type WirePluginUpdateRequest, type WirePluginUploadChoice, type WirePluginUploadConfirmRequest, type WirePluginUploadField, type WirePluginUploadFieldName, type WirePluginUploadFields, type WirePluginUploadFile, type WirePluginUploadForm, type WirePluginUploadPlan, type WirePluginUploadPreviewResponse, type WirePluginUploadRequest, type WirePluginUploadResponse, type WirePluginVisibility, type WirePluginsResponse, type WirePolicyDir, type WirePolicyStatus, type WireProjectInventory, type WireProviderKeyRequest, type WireProviderKeyResponse, type WireProviderModelsRequest, type WireProviderModelsResponse, type WireProviderOption, type WireProviderSummary, type WireProvidersResponse, type WireQuestionListResponse, type WireQuestionRequest, type WireReplayMessage, type WireResetReason, type WireRespondApprovalRequest, type WireRespondApprovalResponse, type WireRespondQuestionRequest, type WireRespondQuestionResponse, 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 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 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 WireSkillImportConflict, type WireSkillImportEntry, type WireSkillImportFailure, type WireSkillImportForm, type WireSkillImportIssue, type WireSkillImportPreviewResponse, type WireSkillImportResponse, type WireSkillRemoveFailure, type WireSkillRemoveResponse, type WireSkillStageFailure, type WireSkillStageResponse, type WireSkillSummary, type WireSummaryWorkspace, type WireTaggedEvent, type WireTasksResponse, type WireToolGate, type WireToolGateAxis, type WireToolRow, type WireToolSummary, type WireToolVerdict, type WireToolsResponse, type WireTrustRequestRequest, type WireTrustRequestResponse, type WireTurnState, type WireWorkspaceBinding, type WireWorkspaceDiffResponse, type WireWorkspaceDirEntry, type WireWorkspaceDirsResponse, type WireWorkspaceRef, apiKeyEnvVar, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, diagnosticToLine, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, flattenCatalog, formatMoney, getProviderInfo, hasFailure, imagePartOmittedSummary, isApprovalOutcome, isContextNearlyFull, isCurrency, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWirePluginArchiveName, isWireRewindScope, isWireSettingWriteLayer, isWireSkillDropName, makeTranslate, mcpConnectorState, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, totalUsageTokens, translatorFor, truncateToBudget, turnDigest, unfixedRules, utf8ByteLength, wireFields };
package/dist/index.js CHANGED
@@ -1221,6 +1221,7 @@ var WIRE_CAPABILITIES_FIELDS = wireFields()({
1221
1221
  mcpServers: true,
1222
1222
  project: true
1223
1223
  });
1224
+ var WIRE_ROLES_FIELDS = wireFields()({ roles: true });
1224
1225
  var WIRE_MCP_RECONNECT_FIELDS = wireFields()({
1225
1226
  ok: true,
1226
1227
  server: true
@@ -1712,6 +1713,7 @@ var WIRE_SCHEDULE_CAPABILITY_FIELDS = wireFields()({
1712
1713
  var WIRE_SCHEDULE_DEFAULTS_FIELDS = wireFields()({
1713
1714
  maxTurns: true,
1714
1715
  timeoutMs: true,
1716
+ maxBudgetUsd: true,
1715
1717
  allowTools: true,
1716
1718
  allowOperations: true,
1717
1719
  allowRules: true
@@ -1925,4 +1927,4 @@ var COMPLIANCE_ACTIONS = ["block", "mask", "warn", "off"];
1925
1927
  var SECRET_SERVICE = "epoch-agent";
1926
1928
  var MCP_DATA_KEY_NAME = "mcp-auth-data-key";
1927
1929
 
1928
- export { ACTION_CONTEXTS, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPROVAL_OUTCOMES, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, CURRENCIES, DEFAULT_AGENT_ROLE, DEFAULT_LANG, DiagnosticSink, GEN_AI, HEADLESS_INPUT_EVENT_TYPES, HEADLESS_INPUT_FORMATS, HEADLESS_OUTPUT_FORMATS, HEADLESS_PROTOCOL_VERSION, KEY_ACTIONS, LANGS, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, METRIC, MIN_OPTIONS, NOOP_TELEMETRY, OPERATION_TYPES, OVERSIZE_RATIO, PERMISSION_LEVELS, PLAN_OUTCOMES, PROVIDER_INFOS, PROVIDER_TYPES, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MINUTES, SCHEDULE_RUN_STATUSES, SCHEDULE_TEMPLATES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SHELL_KINDS, SIDEBAR_MENU_MESSAGE_TYPE, SIMULTANEOUS_CONTEXTS, SYSTEM_NOTE_PREFIX, ToolExposure, UNLIMITED_TURNS, WIRE_ABORT_FIELDS, WIRE_ABOUT_FIELDS, WIRE_AGENT_ROLE_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_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_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_RECONNECT_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_MODEL_SUGGESTIONS_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_INSTALL_FIELDS, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_MARKETPLACE_FIELDS, WIRE_PLUGIN_MARKETPLACE_RESPONSE_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_REFRESH_RESPONSE_FIELDS, WIRE_PLUGIN_STAGE_FIELDS, WIRE_PLUGIN_STAGE_RESPONSE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS, WIRE_PLUGIN_UPLOAD_FIELDS, WIRE_PLUGIN_UPLOAD_FORM_FIELDS, WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROJECT_INVENTORY_FIELDS, WIRE_PROVIDERS_FIELDS, WIRE_PROVIDER_KEY_FIELDS, WIRE_PROVIDER_MODELS_FIELDS, WIRE_PROVIDER_OPTION_FIELDS, 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_REWIND_FILE_PLAN_FIELDS, WIRE_REWIND_OUTCOME_FIELDS, WIRE_REWIND_PREVIEW_FIELDS, WIRE_REWIND_REQUEST_FIELDS, WIRE_REWIND_RESPONSE_FIELDS, WIRE_REWIND_SCOPES, 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_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_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_TRUST_REQUEST_FIELDS, WIRE_TRUST_REQUEST_RESPONSE_FIELDS, WIRE_WORKSPACE_DIFF_FIELDS, WIRE_WORKSPACE_DIRS_FIELDS, WIRE_WORKSPACE_DIR_ENTRY_FIELDS, WIRE_WORKSPACE_REF_FIELDS, apiKeyEnvVar, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, diagnosticToLine, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, flattenCatalog, formatMoney, getProviderInfo, hasFailure, imagePartOmittedSummary, isApprovalOutcome, isContextNearlyFull, isCurrency, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWirePluginArchiveName, isWireRewindScope, isWireSettingWriteLayer, isWireSkillDropName, makeTranslate, mcpConnectorState, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, totalUsageTokens, translatorFor, truncateToBudget, turnDigest, unfixedRules, utf8ByteLength, wireFields };
1930
+ export { ACTION_CONTEXTS, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPROVAL_OUTCOMES, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, CURRENCIES, DEFAULT_AGENT_ROLE, DEFAULT_LANG, DiagnosticSink, GEN_AI, HEADLESS_INPUT_EVENT_TYPES, HEADLESS_INPUT_FORMATS, HEADLESS_OUTPUT_FORMATS, HEADLESS_PROTOCOL_VERSION, KEY_ACTIONS, LANGS, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, METRIC, MIN_OPTIONS, NOOP_TELEMETRY, OPERATION_TYPES, OVERSIZE_RATIO, PERMISSION_LEVELS, PLAN_OUTCOMES, PROVIDER_INFOS, PROVIDER_TYPES, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MINUTES, SCHEDULE_RUN_STATUSES, SCHEDULE_TEMPLATES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SHELL_KINDS, SIDEBAR_MENU_MESSAGE_TYPE, SIMULTANEOUS_CONTEXTS, SYSTEM_NOTE_PREFIX, ToolExposure, UNLIMITED_TURNS, WIRE_ABORT_FIELDS, WIRE_ABOUT_FIELDS, WIRE_AGENT_ROLE_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_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_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_RECONNECT_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_MODEL_SUGGESTIONS_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_INSTALL_FIELDS, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_MARKETPLACE_FIELDS, WIRE_PLUGIN_MARKETPLACE_RESPONSE_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_REFRESH_RESPONSE_FIELDS, WIRE_PLUGIN_STAGE_FIELDS, WIRE_PLUGIN_STAGE_RESPONSE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS, WIRE_PLUGIN_UPLOAD_FIELDS, WIRE_PLUGIN_UPLOAD_FORM_FIELDS, WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROJECT_INVENTORY_FIELDS, WIRE_PROVIDERS_FIELDS, WIRE_PROVIDER_KEY_FIELDS, WIRE_PROVIDER_MODELS_FIELDS, WIRE_PROVIDER_OPTION_FIELDS, 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_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_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_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_TRUST_REQUEST_FIELDS, WIRE_TRUST_REQUEST_RESPONSE_FIELDS, WIRE_WORKSPACE_DIFF_FIELDS, WIRE_WORKSPACE_DIRS_FIELDS, WIRE_WORKSPACE_DIR_ENTRY_FIELDS, WIRE_WORKSPACE_REF_FIELDS, apiKeyEnvVar, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, diagnosticToLine, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, flattenCatalog, formatMoney, getProviderInfo, hasFailure, imagePartOmittedSummary, isApprovalOutcome, isContextNearlyFull, isCurrency, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWirePluginArchiveName, isWireRewindScope, isWireSettingWriteLayer, isWireSkillDropName, makeTranslate, mcpConnectorState, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, 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": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "private": false,
5
5
  "description": "epoch-agent 契约层:工具 / 事件 / 权限 / 插件的类型定义,零运行时依赖",
6
6
  "repository": {