@epoch-agent/protocol 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  | 文件 | 内容 |
18
18
  | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
19
- | `tool.ts` | `EpochTool` / `ToolContext` / `ToolResult` / `ToolExposure` |
19
+ | `tool.ts` | `EpochTool` / `ToolContext` / `ToolResult` / `ToolExposure`。输出预算那两格(`ToolContext.outputBudget` 读额度、`EpochTool.governsOwnOutput` 免截)的判据在各自的 JSDoc 上,嵌入宿主那侧的说明在 [EMBEDDING.md](../../docs/EMBEDDING.md#工具输出预算outputbudget) |
20
20
  | `plugin.ts` | `EpochPlugin` —— 第三方加工具的唯一入口 |
21
21
  | `events.ts` | `AgentEvent` 判别联合 —— 引擎与所有宿主之间的事件契约、`TokenUsage` |
22
22
  | `usage.ts` | `TokenUsage` 的口径算术 + **压缩那条线**(`compressionThresholdTokens`) |
package/dist/index.d.ts CHANGED
@@ -396,6 +396,47 @@ interface ToolContext {
396
396
  * 调用它是**同步且廉价**的(往缓冲区里塞一段字符串),可以在 data 事件里直接调。
397
397
  */
398
398
  onOutput?: (chunk: string) => void;
399
+ /**
400
+ * **引擎这一次会在多少字符处开刀。**
401
+ *
402
+ * ## 它存在的理由:不知道额度的一侧没法按结构裁
403
+ *
404
+ * 工具输出回灌进上下文之前有个预算,超了引擎自己会截。引擎能做的是**通用**的切法
405
+ * (按 JSON 结构切到最后一个完整元素、按行切),它做不到的是**语义**的切法 ——
406
+ * 「丢掉尾部三个店铺、留下那两个计数」只有工具自己知道怎么做。
407
+ *
408
+ * 而在这一格出现之前,宿主想自己裁只有两条路,两条都会烂:
409
+ *
410
+ * 1. **硬编码一份副本**(嵌入宿主 nebular-agent 写的是 1900)。我们改了那个数,
411
+ * 它不会知道,而**失效时不报错**;
412
+ * 2. **反推档位**:靠 {@link ToolContext.callTool} 缺不缺席判「我是不是子调用」,
413
+ * 因为两档预算差 25 倍。那个等价关系今天成立,但它是
414
+ * `MAX_SUB_CALL_DEPTH === 1` 的副产品 —— 那个常量变成 2 的那天,
415
+ * 宿主的裁剪逻辑**静默**失效。
416
+ *
417
+ * 所以这一格给的是数,不是开关:**它不放开任何额度**,只是把已经存在的那个数
418
+ * 说出来。宿主拿它写 `if (len > ctx.outputBudget) trimByStructure()` 就够了。
419
+ *
420
+ * ## 三个取值
421
+ *
422
+ * - 模型直接调 = `MAX_TOOL_OUTPUT`(core 的 `agent/output-budget.ts`);
423
+ * - `run_code` 的子调用 = `MAX_SUB_CALL_OUTPUT`(子调用的返回值不进上下文,
424
+ * 所以放宽 —— 判据在那个常量上);
425
+ * - 声明了 {@link EpochTool.governsOwnOutput} 的工具 = `Infinity`。
426
+ * 进程内传递、不序列化,所以 `len > ctx.outputBudget` 这一支天然就对,不用特判。
427
+ *
428
+ * ## 量的是**工具交出来的那段文本**
429
+ *
430
+ * artifact 的 summary 和 `<tool_output untrusted>` 那层包装都在预算之外,
431
+ * 不占宿主的额度 —— 后者宿主算不出来,让它算就等于让它猜。
432
+ *
433
+ * ## 缺席只可能是宿主自己拼的 `ToolContext`
434
+ *
435
+ * 类型上可选,但**引擎一定给**。嵌入宿主自己拼 context 直接调 `tool.execute()`
436
+ * 是支持的用法,那条路上也没有引擎在截 —— 所以缺席的正确读法是「没人会截你」,
437
+ * 不是「预算是 0」。
438
+ */
439
+ outputBudget?: number;
399
440
  /**
400
441
  * 从一个工具里再调一次工具(方案 51「不是绕过审批的后门」)。**这是 `run_code` 的子调用通道。**
401
442
  *
@@ -493,6 +534,36 @@ interface EpochTool {
493
534
  * 导致审批缓存基本不命中——同一个操作反复问用户。
494
535
  */
495
536
  describeTarget?: (args: Record<string, unknown>) => string;
537
+ /**
538
+ * **这个工具自己管输出预算,引擎那一刀对它不生效。**
539
+ *
540
+ * ## 语义是「我自己会裁」,不是「我的输出很长」
541
+ *
542
+ * 长输出该走的是分页或摘要。设这一格的门槛是三条**同时**成立:
543
+ * 输出有个说得出来的上界、超了的时候它自己会说、且说完还给得出下一步。
544
+ * core 今天只有两个工具设它:
545
+ *
546
+ * - `skill_view` —— 正文整份都是**操作说明**,截一半比没有更坏(模型会照着
547
+ * 前半截把事做完)。它没有上界,靠的是「那是用户自己的文件」;
548
+ * - `terminal` —— `spillOutput()` 已经自治:50 KB 落盘线 + artifact 全文 +
549
+ * 头尾预览 + 取回提示,外加 10 MB 的硬杀。
550
+ *
551
+ * ⚠️ **失败路径不看这一格**:那条路上工具自己的预算逻辑按定义没跑完
552
+ * (`terminal` 在启动阶段就炸的时候 `spillOutput()` 一次都没被调到)。
553
+ *
554
+ * ## 嵌入宿主:你要的多半不是这一格
555
+ *
556
+ * 宿主注入的工具设得上它,但**先看 {@link ToolContext.outputBudget}** ——
557
+ * 放开豁免要求引擎信任宿主不吃上下文窗口,而告诉宿主额度不要求任何信任。
558
+ * 一个按结构裁到预算内的工具比一个豁免的工具好:前者的「没给全」是模型读得到
559
+ * 的一句话,后者是几万字符的报表挤掉了对话本身。
560
+ *
561
+ * ## MCP server 的工具给不出这一格,这是刻意的
562
+ *
563
+ * `plugin-mcp` 的 `toEpochTool()` 翻不出它 —— 「不许截我」这句话只有跑在本进程里、
564
+ * 代码你审得到的工具说得出口。远端 server 说不出。
565
+ */
566
+ governsOwnOutput?: boolean;
496
567
  /** 执行函数 */
497
568
  execute: (args: Record<string, unknown>, ctx: ToolContext) => Promise<ToolResult>;
498
569
  }
@@ -3189,8 +3260,22 @@ type FinishReason =
3189
3260
  'stop'
3190
3261
  /** 用尽轮次预算 */
3191
3262
  | 'max-turns'
3192
- /** 死循环检测触发 */
3263
+ /** 死循环检测触发 —— 连续多轮重复同一个工具调用 */
3193
3264
  | 'stalled'
3265
+ /**
3266
+ * 模型在**一次回复内**开始复读,被我们掐掉了(core 的 `repetition-detector.ts`)。
3267
+ *
3268
+ * ⚠️ **和 `'stalled'` 刻意分开。** 那一档是「连续多轮调同一个工具」,
3269
+ * 用户能做的是换个说法或者自己接手;这一档整轮工具调用为零,是解码退化,
3270
+ * 处置是重发一次(大概率就好了)。混成一个值之后,界面上只能给出一句
3271
+ * 同时对两种情况都不准的话。
3272
+ *
3273
+ * ⚠️ **也不是 `'length'`。** 那一档是 provider 按 max output tokens 切的、
3274
+ * 那半截正文是模型真想说的;这一档是**我们**在它撞上上限之前主动停的,
3275
+ * 已经产出的正文留着但没有价值。两者在账上差一整个输出预算 ——
3276
+ * 现场那一份是 31.6 KB 里只有 12 种句子。
3277
+ */
3278
+ | 'looping'
3194
3279
  /** 被宿主中止 */
3195
3280
  | 'aborted'
3196
3281
  /** 模型安全策略拒答 —— 是 **provider** 拒答,不是我们拦的 */
@@ -3807,8 +3892,10 @@ declare const SCHEDULE_RUN_STATUSES: readonly ScheduleRunStatus[];
3807
3892
  * 任务注册在哪儿。
3808
3893
  *
3809
3894
  * - `schtasks` / `launchd` —— 真的注册进了操作系统的调度器,**epoch 不用开着**
3810
- * - `host` —— 一行都没注册进 OS,宿主自己掐点调 `fire()`(方案 45 §2.6 的路 B)。
3811
- * **关掉宿主应用就不跑**,这句话必须原样说给用户听,不许写成「已启用」
3895
+ * - `host` —— **一行都没注册进 OS**(方案 45 §2.6 的路 B)。到点了唤起它的只能是
3896
+ * 宿主自己(`setInterval` 调 `fire()`)—— 而宿主有没有真的这么做,**这一格答不出来**,
3897
+ * 它唯一承诺的事实就是「没进 OS」。所以界面上不许把它写成「已启用」,
3898
+ * 也**不许许诺「开着就会跑」**(判据全文在 locales 的 `notice_host` 上)
3812
3899
  */
3813
3900
  type ScheduleBackendKind = 'schtasks' | 'launchd' | 'host';
3814
3901
  /**
@@ -6981,7 +7068,9 @@ declare const WIRE_SESSION_SUMMARY_FIELDS: WireFields<WireSessionSummary>;
6981
7068
  *
6982
7069
  * 三项**逐字来自 `finish` 那一帧**,不在这一层重新解释:
6983
7070
  *
6984
- * - `reason` 就是 {@link FinishReason},引擎九个出口共用的那一个构造器产出的
7071
+ * - `reason` 就是 {@link FinishReason},引擎那些出口共用的那一个构造器产出的
7072
+ * (⚠️ 这里原来写着「九个出口」,而 `FinishReason` 每加一档那个数就过期一次 ——
7073
+ * 判据同 web 那张 `OUTCOMES` 表上的 ⚠️:能编译过的是类型,会骗人的是散文)
6985
7074
  * - `runUsage` 就是 `finish.runUsage`(**这一次 run** 的账,方案 42 PR-2)。
6986
7075
  * 不是 `finish.usage` —— 后者是**累计**,口径由 `usageScope` 决定,
6987
7076
  * 拿它当「这一轮花了多少」会把一个刚开的会话写成花了一整个月的量
@@ -6992,7 +7081,7 @@ declare const WIRE_SESSION_SUMMARY_FIELDS: WireFields<WireSessionSummary>;
6992
7081
  * 同 `WireConfigResponse.maxCostUsd` 那条 ⚠️ 的判据。
6993
7082
  */
6994
7083
  interface WireSessionFinish {
6995
- /** 引擎给的终局原因。**只有 `'stop'` 是「干完了」**,其余八种都是提前收场 */
7084
+ /** 引擎给的终局原因。**只有 `'stop'` 是「干完了」**,其余每一种都是提前收场 */
6996
7085
  reason: FinishReason;
6997
7086
  /**
6998
7087
  * 这一轮从开跑到收尾用了多久(毫秒);起点不知道时 null(不是 0 ——
@@ -9267,11 +9356,11 @@ interface WireRoleAddResponse {
9267
9356
  declare const WIRE_ROLE_ADD_RESPONSE_FIELDS: WireFields<WireRoleAddResponse>;
9268
9357
 
9269
9358
  /**
9270
- * 插件那一页的契约 —— 十条端点(方案 59 §六 E2,2026-08-21;本地源与市场管理
9271
- * 2026-09-04 补,见下面第一节的**翻案**)。
9359
+ * 插件那一页的契约 —— 十二条端点(方案 59 §六 E2,2026-08-21;本地源与市场管理
9360
+ * 2026-09-04 补,见下面第一节的**翻案**;上传 2026-09-08 补,见第一节之二)。
9272
9361
  *
9273
9362
  * ```
9274
- * GET /api/plugins 装着的 + 市场里有什么 + 已加的市场 + pendingRestart
9363
+ * GET /api/plugins 装着的 + 市场里有什么 + 已加的市场 + pendingRestart + uploadEnabled
9275
9364
  * POST /api/plugins/install/preview {ref} → 将安装什么,一个字节都不写
9276
9365
  * POST /api/plugins/install {ref, token} → 真装
9277
9366
  * POST /api/plugins/install/local/preview {path} → 同上,来源是本机一条目录
@@ -9281,6 +9370,8 @@ declare const WIRE_ROLE_ADD_RESPONSE_FIELDS: WireFields<WireRoleAddResponse>;
9281
9370
  * POST /api/plugins/uninstall {name} → 卸载
9282
9371
  * POST /api/plugins/marketplaces {source} → 加一个市场
9283
9372
  * POST /api/plugins/marketplaces/remove {name} → 移除一个市场
9373
+ * POST /api/plugins/upload/preview {path} → 会打包哪些文件,一个字节都不发
9374
+ * POST /api/plugins/upload {path, token} → 打包 + 交给宿主
9284
9375
  * ```
9285
9376
  *
9286
9377
  * 底座是 `EpochRuntime.plugins`(方案 59 PR-4 落的那一片,判据全文在
@@ -9352,7 +9443,39 @@ declare const WIRE_ROLE_ADD_RESPONSE_FIELDS: WireFields<WireRoleAddResponse>;
9352
9443
  * 和 {@link WirePluginMarketplaceRequest}),而它们**是同一件事的两个入口,不是
9353
9444
  * 两道闸门** —— 网线那条多吃一道 403,判据同上第 3 条。
9354
9445
  *
9355
- * # 二、⚠️ 闸门:**绑在回环之外时那九条 POST 一律 403**
9446
+ * # 一之二、⚠️ 还有一条路是**往外**的(2026-09-08)
9447
+ *
9448
+ * | 端点 | 收什么 | 真按下去会发生什么 |
9449
+ * | ---------------- | --------------------- | ---------------------------------------- |
9450
+ * | `upload/preview` | 本机一条**绝对路径** | 走一遍目录,**一个字节都不发、连包都不打** |
9451
+ * | `upload` | 同上 + `token` | 打成 `.zip` → 交给**宿主**的回调 |
9452
+ *
9453
+ * 三条性质:
9454
+ *
9455
+ * 1. **epoch 一个网络请求都不发。** 出口是宿主给的一个回调
9456
+ * (`HostMarketplaces.upload`),不是一条我们去 POST 的 URL —— 判据全文在
9457
+ * `runtime/src/host-marketplaces.ts` 的 `PluginUploadFn` 上(简版:给一条 URL
9458
+ * 就得由我们定 multipart / 鉴权 / 重定向 / 回执四套契约,而那四个答案全在宿主
9459
+ * 那一侧;更要紧的是 token 压根不该进到我们的进程里);
9460
+ * 2. **`uploadEnabled` 那一格是这条路存在与否的全部凭据。** 宿主没给回调时
9461
+ * 界面上那枚按钮整个不画,硬打这条端点拿到 `upload-unavailable`;
9462
+ * 3. **预览那一段的清单,就是打包时喂给 `tar` 的那一份**(core 的 `planPack` →
9463
+ * `packPlugin`,走 `tar -T --format zip`)。「用户看到的」和「真发出去的」在构造上是同一份,
9464
+ * 不是两套规则各走一遍 —— 判据在 core `pack.ts` 的文件头第二节。
9465
+ *
9466
+ * ## ⚠️ 为什么预览那一屏必须**逐个列出文件名**,不能只给个数
9467
+ *
9468
+ * 装错了能卸,**发出去收不回来**。而这条路上最常见的一次事故不是「装错了」,
9469
+ * 是**目录里有一份 `.env`**。所以 {@link WirePluginUploadPlan.files} 是全量清单
9470
+ * 而不是一个 `count`,{@link WirePluginUploadPlan.suspicious} 还要把看起来像密钥的
9471
+ * 那几条单独点名 —— 而**它们仍然在 `files` 里面**(静默剔除会让用户以为发出去的
9472
+ * 是全量,判据在 core `pack.ts` 的文件头第四节)。
9473
+ *
9474
+ * # 二、⚠️ 闸门:**绑在回环之外时那十一条 POST 一律 403**
9475
+ *
9476
+ * > 这个数原来是「九条」,上传那两条 2026-09-08 加进来。**它们吃同一道闸,
9477
+ * > 而且是这一整张表里最该吃的两条**:它们读这台机器上任意一条目录、把内容
9478
+ * > **发到外面去**。放行的话,一个 LAN 上的人能指着 `~/.ssh` 说「上传它」。
9356
9479
  *
9357
9480
  * 判据同 [wire-agent-role.ts](./wire-agent-role.ts) 那道,但**这条路比它还远一格**,
9358
9481
  * 四条:
@@ -9420,7 +9543,14 @@ declare const WIRE_ROLE_ADD_RESPONSE_FIELDS: WireFields<WireRoleAddResponse>;
9420
9543
  * 一个插件是从哪儿装来的。**照抄 core 的 `PluginSourceType`,不是第二套枚举** ——
9421
9544
  * 界面据此说「这是一条软链 / 这是 clone 下来的」。
9422
9545
  */
9423
- type WirePluginSourceType = 'local' | 'git' | 'npm' | 'archive';
9546
+ type WirePluginSourceType = 'local' | 'git' | 'npm' | 'archive' | 'host';
9547
+ /**
9548
+ * 那一条是**谁都能装**还是**只有我能装**(2026-09-08)。
9549
+ *
9550
+ * `null` = 这个市场不分公私(一个 GitHub 上的开源市场就没有这个概念)——
9551
+ * 判据在 core `MarketplaceEntry.visibility` 上:布尔表达不出这第三档。
9552
+ */
9553
+ type WirePluginVisibility = 'private' | 'public';
9424
9554
  /** 六类扩展物各贡献了几条。字段名照 core 的 `PluginCounts`,不自造映射 */
9425
9555
  interface WirePluginCounts {
9426
9556
  commands: number;
@@ -9499,6 +9629,86 @@ interface WirePluginHit {
9499
9629
  installable: boolean;
9500
9630
  /** 已经装过同名的了。界面据此把「安装」换成「已装上」 */
9501
9631
  installed: boolean;
9632
+ /**
9633
+ * **这一条是谁写的**(2026-09-08)。目录里没写就是 `null`。
9634
+ *
9635
+ * ⚠️ **不是市场自己的 `owner`。** 那一格答的是「清单是谁放的」(「Acme 内部
9636
+ * 插件市场」),这一格答的是「这一个插件是谁写的」—— 在一个**用户上传的**市场里,
9637
+ * 两者从第二条开始就不相等。拿 `owner` 顶上去的表现是那一列给每一行印同一个
9638
+ * 名字,而那是一句假话(所以这份回执上刻意**没有** `owner`)。
9639
+ *
9640
+ * ⚠️ 摊平成一个字符串(`author.name`),口径同 {@link WirePluginPreview.author}:
9641
+ * 界面上这一格就印一个名字,把 `{name,email,url}` 整个发上去只是让浏览器多一份
9642
+ * 它不画的东西 —— 而 email 尤其不该在一份**不吃那道 403** 的 `GET` 里到处发
9643
+ * (判据同 `GET /api/mcp/config` 为什么连读都挡:那份里的 `env` 是明文密钥)。
9644
+ */
9645
+ author: string | null;
9646
+ /**
9647
+ * 被装过多少次(2026-09-08)。**`null` = 这个市场不报这个数**,界面上那一格
9648
+ * 整个不画 —— 它和 `0` 是两句不同的话(「没人报」vs「一次都没装过」)。
9649
+ *
9650
+ * ⚠️ **这个数是市场那一侧数的,不是我们数的**:安装是本机的事,epoch 不上报
9651
+ * 任何东西。判据在 core `MarketplaceEntry.downloads` 上,那儿还记着第二条 ——
9652
+ * **它冻在「加这个市场」那一刻**(目录是快照,`marketplace update` 才重拉)。
9653
+ */
9654
+ downloads: number | null;
9655
+ /** 被点了多少个赞。`null` = 不报,口径同 {@link downloads}(含「会过时」那条) */
9656
+ likes: number | null;
9657
+ /**
9658
+ * **给人看的名字**(2026-09-08)。`null` = 目录里没写,界面上就印 {@link name}。
9659
+ *
9660
+ * ⚠️ 它和 {@link name} 是两件事:那一格是**标识**(小写 ASCII,要能当命令前缀),
9661
+ * 这一格是**显示名**(「淘宝批量改价」)。少了它,一个面向中文用户的市场在列表上
9662
+ * 只能印 `taobao-batch-edit` —— 判据在 core `MarketplaceEntry.displayName` 上。
9663
+ */
9664
+ displayName: string | null;
9665
+ /**
9666
+ * 图标地址。`null` = 没有,那一格整个不画(**不画占位图**)。
9667
+ *
9668
+ * ⚠️ **界面会去加载它,也就是浏览器会发一次请求** —— 那不是 epoch 在调接口
9669
+ * (我们一个请求都不发),但它确实会让出这份目录的那台服务器知道
9670
+ * 「有人在看这个列表」。宿主拿自己的 CDN 时没问题;这一句写在这儿是为了让
9671
+ * 「填一个第三方地址」那个决定是睁着眼做的。判据同 core 那一格。
9672
+ */
9673
+ icon: string | null;
9674
+ /**
9675
+ * **市场说的**当前版本。`null` = 目录里没写。
9676
+ *
9677
+ * ⚠️ 它和「装上之后的版本」不是同一个数(那个在 {@link WirePluginEntry.version})。
9678
+ * 两者不等的结论已经算好了,在 {@link updateAvailable} —— 界面**别自己比**。
9679
+ */
9680
+ version: string | null;
9681
+ /** 这一版改了什么。`null` = 没写 */
9682
+ changelog: string | null;
9683
+ /** 安装包多大,字节。`null` = 没写(**不是 0**,一个空包装不上) */
9684
+ size: number | null;
9685
+ /** 这一条的主页 / 文档。`null` = 没写 */
9686
+ homepage: string | null;
9687
+ /** 公开还是私有。`null` = 这个市场不分这个,判据在 {@link WirePluginVisibility} 上 */
9688
+ visibility: WirePluginVisibility | null;
9689
+ /**
9690
+ * **装着的那个比市场说的旧**(2026-09-08)。
9691
+ *
9692
+ * ## ⚠️ 它是「多说一句 + 多给一个入口」,不是「可以收掉更新按钮」了
9693
+ *
9694
+ * 市场目录是**加市场那一刻的快照**(会过时,判据在 core
9695
+ * `MarketplaceEntry.version` 上那张两行的表)。所以比对的两个方向代价不同:
9696
+ *
9697
+ * - 说「有新版本」而其实没有 → 用户点一下,更新回同一版。烦,不坏;
9698
+ * - 说「已是最新」而其实有 → **一次真的更新被藏起来**。
9699
+ *
9700
+ * 于是规矩是:`true` 时市场那一行把「已装上」换成一枚**更新按钮**、装着那一行
9701
+ * 多一句「有新版本」;而 `false` **什么都不减** —— 装着那一行的更新按钮照旧画。
9702
+ * ⚠️ **别拿 `!updateAvailable` 去隐藏任何东西。**
9703
+ *
9704
+ * ## `false` 有三种成因,而界面不需要分
9705
+ *
9706
+ * 目录没写版本 / 两个版本一样 / 它是软链装的(那一档 update 恒回
9707
+ * `nothing-to-do`,画一个按钮是让用户去读一句本可以不出现的话)。
9708
+ * 三档的界面表现都是「不多说那句话」,所以合成一个布尔是对的 ——
9709
+ * 而**算它的地方只有服务端**(口径同 `installable`)。
9710
+ */
9711
+ updateAvailable: boolean;
9502
9712
  }
9503
9713
  /**
9504
9714
  * 已加的一个市场 —— 「插件从哪儿来」那张清单上的一行。
@@ -9552,6 +9762,39 @@ interface WirePluginsResponse {
9552
9762
  * 变 true —— 这个进程确实没变过。
9553
9763
  */
9554
9764
  pendingRestart: boolean;
9765
+ /**
9766
+ * 宿主给了上传出口吗(2026-09-08)。**界面上那枚「上传」按钮画不画就看这一格。**
9767
+ *
9768
+ * ⚠️ 发的是**服务端算好的结论**(runtime 那一层把「有没有出口」和「开关开没开」
9769
+ * 两格与在一起的答案),不是那两格本身 —— 口径逐字同
9770
+ * {@link WirePluginHit.installable} 为什么不发 `allowRemote`:一个问题两处能推的
9771
+ * 那天它们就会分叉,而分叉的表现是一枚画出来了、按下去必然拿到
9772
+ * `upload-unavailable` 的按钮。
9773
+ *
9774
+ * ⚠️ **默认是 `false`**:宿主那格 `allowUpload` 默认关(判据在
9775
+ * `HostMarketplaces.allowUpload` 上)。所以界面那一侧该按「不画」写默认分支,
9776
+ * 别写成「除非明确关掉否则画」。
9777
+ *
9778
+ * ⚠️ 它和 `lanExposed` 是**两格,各答一半**,界面要两格一起看:这一格答
9779
+ * 「这个部署有没有这条路」,那一格答「网线另一头是不是这台机器」。
9780
+ * 少任何一格都会画出一枚点了必然被拒的按钮。
9781
+ */
9782
+ uploadEnabled: boolean;
9783
+ /**
9784
+ * 上传那一屏上要不要多问那两格(2026-09-08)。
9785
+ *
9786
+ * ⚠️ **两个恒有的布尔,不是一个可选对象**:界面要的是「画不画」这个结论,
9787
+ * 而缺席 / 空对象 / 显式 false 三种写法说的是同一件事 —— 让每一层各自 `??`
9788
+ * 一次就是把同一个默认值抄三遍。口径同 {@link uploadEnabled}。
9789
+ *
9790
+ * ⚠️ 默认**都不问**:画一个「公开 / 私有」的选择就是在承诺「这个选择会被尊重」,
9791
+ * 而一个没有公私概念的宿主只能忽略它 —— 那时界面上那一下是骗人的。
9792
+ * 判据在 `HostMarketplaces.uploadOptions` 上。
9793
+ */
9794
+ uploadOptions: {
9795
+ visibility: boolean;
9796
+ changelog: boolean;
9797
+ };
9555
9798
  }
9556
9799
  declare const WIRE_PLUGINS_FIELDS: WireFields<WirePluginsResponse>;
9557
9800
  /**
@@ -9669,14 +9912,22 @@ declare const WIRE_PLUGIN_UPDATE_FIELDS: WireFields<WirePluginUpdateRequest>;
9669
9912
  * | `stale-token` | 你确认的和现在要装的对不上,**一个字节都没写** | 重看一次预览 |
9670
9913
  * | `not-installed` | update / uninstall 收到一个没装过的名字 | 先装上 |
9671
9914
  * | `nothing-to-do` | **不是出错**:软链装的插件一直是最新的 | 什么都不用做 |
9915
+ * | `upload-unavailable` | **宿主没给上传出口**,这个部署没有这条路 | 没有(按钮本不该画)|
9916
+ * | `upload-rejected` | **宿主收下了但说不行**(重名 / 无权限 / 待审核) | 看宿主那句 `detail` |
9672
9917
  * | `failed` | 其余(拉不到 / 清单坏了 / 写记录时被抢先) | 看 `detail` |
9673
9918
  *
9919
+ * ⚠️ 上传那两档(2026-09-08)**都不能并进 `failed`**:`upload-unavailable` 和
9920
+ * 503 `no-plugin-control` 同族 —— 它是一句关于**这个部署**的真话,用户没有下一步
9921
+ * (真收到了说明界面漏画了 `uploadEnabled` 那道判断,界面该按「我们的 bug」处置);
9922
+ * `upload-rejected` 的下一步**在宿主那句话里**,而 `failed` 的下一步是「再试一次」。
9923
+ * 合成一档的表现是界面拿「再试一次」去答「你没有这个市场的发布权限」。
9924
+ *
9674
9925
  * ⚠️ `not-local` **不能并进 `unknown-ref`**,尽管两者都是「你给的那串不对」:
9675
9926
  * 前者的下一步是「把相对路径改成绝对路径」或「这东西得从市场装」,
9676
9927
  * 后者是「换一条市场引用」。合成一档的表现是界面拿同一句话去答两个问题 ——
9677
9928
  * 而这条路上最常见的一次输入错误恰恰就是把 `github:` 贴进了本地那个框。
9678
9929
  */
9679
- type WirePluginRefuseReason = 'unknown-ref' | 'not-local' | 'remote-disabled' | 'conflict' | 'stale-token' | 'not-installed' | 'nothing-to-do' | 'failed';
9930
+ type WirePluginRefuseReason = 'unknown-ref' | 'not-local' | 'remote-disabled' | 'conflict' | 'stale-token' | 'not-installed' | 'nothing-to-do' | 'upload-unavailable' | 'upload-rejected' | 'failed';
9680
9931
  /** 一次 hook 盘点:这个事件上有几条 */
9681
9932
  interface WirePluginHookTally {
9682
9933
  type: string;
@@ -9812,6 +10063,132 @@ interface WirePluginMarketplaceResponse {
9812
10063
  detail: string | null;
9813
10064
  }
9814
10065
  declare const WIRE_PLUGIN_MARKETPLACE_RESPONSE_FIELDS: WireFields<WirePluginMarketplaceResponse>;
10066
+ /**
10067
+ * `POST /api/plugins/upload/preview` 的请求体 —— **本机上一条目录**。
10068
+ *
10069
+ * ⚠️ 只有 `path` 一格,而且只收**本地绝对路径**。形状上的性质逐字同
10070
+ * {@link WirePluginLocalRequest}:往这儿传 `github:acme/x` 或一条相对路径都是
10071
+ * `not-local`。它复用的就是那条端点的同一道闸(runtime 的 `resolveLocal`)——
10072
+ * 「什么算一条能指的本地目录」全仓只有一个答案。
10073
+ *
10074
+ * ⚠️ **这条 `path` 是服务端那台机器上的路径,不是浏览器那台的。** 界面上必须
10075
+ * 把这句话说出来 —— 而在这条路上它比装本地插件那条**更容易被误读**:一个写着
10076
+ * 「上传」的按钮旁边放一个输入框,用户第一反应就是贴自己电脑上的路径。
10077
+ */
10078
+ interface WirePluginUploadRequest {
10079
+ /** 本机上一条**绝对**路径,指向一个插件目录(里面得有 `epoch-plugin.json`) */
10080
+ path: string;
10081
+ }
10082
+ declare const WIRE_PLUGIN_UPLOAD_FIELDS: WireFields<WirePluginUploadRequest>;
10083
+ /**
10084
+ * `POST /api/plugins/upload` 的请求体。
10085
+ *
10086
+ * `token` 的判据同 {@link WirePluginInstallRequest},而这条路上它**更硬**:
10087
+ * 那一档拦的是「装了一份你没看过的东西」(还能卸),这一档拦的是
10088
+ * 「**发出去了**一份你没看过的东西」。对不上那一发**宿主回调一次都不调**。
10089
+ */
10090
+ interface WirePluginUploadConfirmRequest extends WirePluginUploadRequest {
10091
+ token: string;
10092
+ /**
10093
+ * 「公开还是私有」(2026-09-08)。**只在 `uploadOptions.visibility` 为真时才该发。**
10094
+ *
10095
+ * ⚠️ 发了也不一定算:runtime 那一层会把**宿主没声明要问的格子丢掉**
10096
+ * (判据在 `PluginUploadForm` 上)—— 否则一个改了请求体的浏览器就能让宿主收到
10097
+ * 一个它从没答应过要处理的值。也就是说这一格**在服务端是被收窄的,不是被信任的**。
10098
+ */
10099
+ visibility?: WirePluginVisibility;
10100
+ /** 本版更新说明。同上,只在 `uploadOptions.changelog` 为真时才该发 */
10101
+ changelog?: string;
10102
+ }
10103
+ declare const WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS: WireFields<WirePluginUploadConfirmRequest>;
10104
+ /** 会被打进包里的一个文件 */
10105
+ interface WirePluginUploadFile {
10106
+ /** 相对插件根,`/` 分隔 */
10107
+ path: string;
10108
+ bytes: number;
10109
+ }
10110
+ /**
10111
+ * 「会打包什么」那一屏的内容 —— 这条路上给**人**的那道闸门。
10112
+ *
10113
+ * ⚠️ **{@link files} 是全量清单不是一个计数**,判据在文件头第一节之二那条 ⚠️:
10114
+ * 这条路上最常见的一次事故是「目录里有一份 `.env`」,而一个「共 14 个文件」
10115
+ * 答不出那件事。
10116
+ */
10117
+ interface WirePluginUploadPlan {
10118
+ name: string;
10119
+ version: string;
10120
+ /** 清单里那句。没写就是空串 */
10121
+ description: string;
10122
+ /** 清单里的 `author.name`,摊平;没写就是 `null` */
10123
+ author: string | null;
10124
+ /** 会打进包里的每一个文件,按路径排过序 */
10125
+ files: readonly WirePluginUploadFile[];
10126
+ totalBytes: number;
10127
+ /**
10128
+ * 名字看起来像密钥的那几条(`.env` / `*.pem` / `*.key` / `id_rsa`)。
10129
+ *
10130
+ * ⚠️ **它们仍然在 {@link files} 里面** —— 这一格是「点名」不是「已剔除」。
10131
+ * 界面上必须说清这一点,否则用户会以为我们替他删掉了(判据在 core `pack.ts`
10132
+ * 的文件头第四节)。
10133
+ */
10134
+ suspicious: readonly string[];
10135
+ /**
10136
+ * 跳过的软链,**不在 {@link files} 里**。
10137
+ *
10138
+ * 要发出来:解开的包比原目录少东西而没人说过为什么,是这条路上最难查的一种
10139
+ * 「我上传的插件在别人那儿跑不起来」。
10140
+ */
10141
+ skippedLinks: readonly string[];
10142
+ }
10143
+ /**
10144
+ * `POST /api/plugins/upload/preview` 的回执。
10145
+ *
10146
+ * ⚠️ 失败也是 200,判据同 {@link WirePluginPreviewResponse}。
10147
+ */
10148
+ interface WirePluginUploadPreviewResponse {
10149
+ ok: boolean;
10150
+ /** 成了才有 */
10151
+ plan: WirePluginUploadPlan | null;
10152
+ /** 成了才有。原样发回 {@link WirePluginUploadConfirmRequest.token} */
10153
+ token: string | null;
10154
+ /** 没成才有 */
10155
+ reason: WirePluginRefuseReason | null;
10156
+ /** 没成才有。**服务端渲染好的一句人话**,界面原样上屏 */
10157
+ detail: string | null;
10158
+ }
10159
+ declare const WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS: WireFields<WirePluginUploadPreviewResponse>;
10160
+ /**
10161
+ * `POST /api/plugins/upload` 的回执。
10162
+ *
10163
+ * ⚠️ **这一份上没有 `pendingRestart`,而那不是漏了**:交出去一个包,这台机器上
10164
+ * 一个扩展物都没动 —— 判据逐字同 {@link WirePluginMarketplaceResponse} 上那条。
10165
+ *
10166
+ * ⚠️ **`ok: true` 的意思是「宿主收下了」,不是「市场里能搜到了」。** 后者要等
10167
+ * 宿主自己那份目录更新(可能还要过审核),而那件事发生在我们看不见的地方 ——
10168
+ * 所以那句话由 {@link detail}(宿主原话)来说,界面别自己补一句「已上架」。
10169
+ */
10170
+ interface WirePluginUploadResponse {
10171
+ ok: boolean;
10172
+ /**
10173
+ * 成了那一档:**宿主那句回执**(「已提交审核」/「已发布」),可能是空串 ——
10174
+ * 那时界面说自己那句「已交给这个程序」。没成那一档是拒绝的原因。
10175
+ *
10176
+ * ⚠️ 和 {@link WirePluginActionResponse.detail} 刻意在成功时发 `null` **不一样**,
10177
+ * 而这个不一致是有理由的:那一档屏幕上要说的话全在数据里(装上了什么、
10178
+ * 还没生效),而这一档屏幕上唯一能说的话**只有宿主知道** —— 上传之后发生什么
10179
+ * (直接上架?排队审核?)是它那一侧的流程,我们编不出来。
10180
+ */
10181
+ detail: string | null;
10182
+ /** 刚交出去的那一份是什么。没成那一档是 `null` */
10183
+ uploaded: {
10184
+ name: string;
10185
+ version: string;
10186
+ bytes: number;
10187
+ } | null;
10188
+ /** 没成才有 */
10189
+ reason: WirePluginRefuseReason | null;
10190
+ }
10191
+ declare const WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS: WireFields<WirePluginUploadResponse>;
9815
10192
 
9816
10193
  /**
9817
10194
  * 一条诊断。**原样来自 `parseMcpConfig` 的 `issues`**,服务端不改写也不筛。
@@ -12058,9 +12435,17 @@ declare const WIRE_SCHEDULE_CREATE_FIELDS: WireFields<WireScheduleCreateRequest>
12058
12435
  /**
12059
12436
  * `PATCH /api/schedules/:id` 的请求体 —— **没给的字段一个都不动**。
12060
12437
  *
12061
- * ⚠️ 三个「清空」用 `null` 而不是空串:`workDir: null` 是「不绑工作区了」,
12062
- * `workDir: ''` 说不清是「清空」还是「客户端把一个 undefined 序列化坏了」。
12438
+ * ⚠️ **四个**「清空」用 `null` 而不是空串(`workDir` / `model` / `startDate` /
12439
+ * `endDate`):`workDir: null` 是「不绑工作区了」,而 `workDir: ''` 说不清是
12440
+ * 「清空」还是「客户端把一个 undefined 序列化坏了」。
12063
12441
  * 同一条规矩在 `WireModelSetRequest.model` 上用过一次。
12442
+ *
12443
+ * ⚠️ **这个 `null` 一路走到 SQLite 的 `NULL`,中间没有第二个词。**
12444
+ * 2026-09-07 之前 server 那一层把它翻成空串再往下递(`schedule/body.ts`),
12445
+ * 而 core 压根不认空串是清空 —— 于是「两格生效区间都没填」被判成
12446
+ * 「给了两个不合法的日期」,表单上冒出两行 `生效区间不对: ` 后面空着;
12447
+ * 而那个空串真要是落进库,`isWithinWindow` 对它是 `false`,这条任务会
12448
+ * **每次到点都被判在生效区间外**。判据全文在 `UpdateScheduleInput` 上。
12064
12449
  */
12065
12450
  interface WireScheduleUpdateRequest {
12066
12451
  name?: string;
@@ -12847,4 +13232,4 @@ declare const SECRET_SERVICE = "epoch-agent";
12847
13232
  */
12848
13233
  declare const MCP_DATA_KEY_NAME = "mcp-auth-data-key";
12849
13234
 
12850
- 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, type Catalogs, type ComplianceAction, type ComplianceCategory, type ContextBreakdown, type ContextSegment, 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, 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, NOOP_TELEMETRY, type NoticeCode, OPERATION_TYPES, 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 TrustLevel, type TrustManager, type TrustRecord, type TrustScope, 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_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_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_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_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_UPDATE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_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_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_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_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_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 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 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 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 WirePluginRefuseReason, type WirePluginSourceType, type WirePluginUpdateRequest, type WirePluginsResponse, type WirePolicyDir, type WirePolicyStatus, 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 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 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 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 WireSkillSummary, type WireSummaryWorkspace, type WireTaggedEvent, type WireTasksResponse, type WireToolGate, type WireToolGateAxis, type WireToolRow, type WireToolSummary, type WireToolVerdict, type WireToolsResponse, 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, getProviderInfo, hasFailure, isApprovalOutcome, isContextNearlyFull, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWireRewindScope, isWireSettingWriteLayer, makeTranslate, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, totalUsageTokens, translatorFor, turnDigest, unfixedRules, utf8ByteLength, wireFields };
13235
+ 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, type Catalogs, type ComplianceAction, type ComplianceCategory, type ContextBreakdown, type ContextSegment, 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, 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, NOOP_TELEMETRY, type NoticeCode, OPERATION_TYPES, 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 TrustLevel, type TrustManager, type TrustRecord, type TrustScope, 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_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_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_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_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_UPDATE_FIELDS, WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS, WIRE_PLUGIN_UPLOAD_FIELDS, WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_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_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_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_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_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 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 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 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 WirePluginRefuseReason, type WirePluginSourceType, type WirePluginUpdateRequest, type WirePluginUploadConfirmRequest, type WirePluginUploadFile, type WirePluginUploadPlan, type WirePluginUploadPreviewResponse, type WirePluginUploadRequest, type WirePluginUploadResponse, type WirePluginVisibility, type WirePluginsResponse, type WirePolicyDir, type WirePolicyStatus, 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 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 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 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 WireSkillSummary, type WireSummaryWorkspace, type WireTaggedEvent, type WireTasksResponse, type WireToolGate, type WireToolGateAxis, type WireToolRow, type WireToolSummary, type WireToolVerdict, type WireToolsResponse, 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, getProviderInfo, hasFailure, isApprovalOutcome, isContextNearlyFull, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWireRewindScope, isWireSettingWriteLayer, makeTranslate, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, totalUsageTokens, translatorFor, turnDigest, unfixedRules, utf8ByteLength, wireFields };
package/dist/index.js CHANGED
@@ -1166,7 +1166,9 @@ var WIRE_PLUGINS_FIELDS = wireFields()({
1166
1166
  installed: true,
1167
1167
  hits: true,
1168
1168
  marketplaces: true,
1169
- pendingRestart: true
1169
+ pendingRestart: true,
1170
+ uploadEnabled: true,
1171
+ uploadOptions: true
1170
1172
  });
1171
1173
  var WIRE_PLUGIN_PREVIEW_FIELDS = wireFields()({ ref: true });
1172
1174
  var WIRE_PLUGIN_INSTALL_FIELDS = wireFields()({
@@ -1206,6 +1208,24 @@ var WIRE_PLUGIN_MARKETPLACE_RESPONSE_FIELDS = wireFields()({
1206
1208
  reason: true,
1207
1209
  detail: true
1208
1210
  });
1211
+ var WIRE_PLUGIN_UPLOAD_FIELDS = wireFields()({ path: true });
1212
+ var WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS = wireFields()({
1213
+ path: true,
1214
+ token: true
1215
+ });
1216
+ var WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS = wireFields()({
1217
+ ok: true,
1218
+ plan: true,
1219
+ token: true,
1220
+ reason: true,
1221
+ detail: true
1222
+ });
1223
+ var WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS = wireFields()({
1224
+ ok: true,
1225
+ detail: true,
1226
+ uploaded: true,
1227
+ reason: true
1228
+ });
1209
1229
  // src/wire-mcp-config.ts
1210
1230
  var WIRE_MCP_CONFIG_ISSUE_FIELDS = wireFields()({
1211
1231
  path: true,
@@ -1724,4 +1744,4 @@ var COMPLIANCE_ACTIONS = ["block", "mask", "warn", "off"];
1724
1744
  var SECRET_SERVICE = "epoch-agent";
1725
1745
  var MCP_DATA_KEY_NAME = "mcp-auth-data-key";
1726
1746
 
1727
- export { ACTION_CONTEXTS, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPROVAL_OUTCOMES, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, 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, 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_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_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_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_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_UPDATE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_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_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_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_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_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, getProviderInfo, hasFailure, isApprovalOutcome, isContextNearlyFull, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWireRewindScope, isWireSettingWriteLayer, makeTranslate, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, totalUsageTokens, translatorFor, turnDigest, unfixedRules, utf8ByteLength, wireFields };
1747
+ export { ACTION_CONTEXTS, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPROVAL_OUTCOMES, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, 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, 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_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_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_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_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_UPDATE_FIELDS, WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS, WIRE_PLUGIN_UPLOAD_FIELDS, WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_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_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_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_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_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, getProviderInfo, hasFailure, isApprovalOutcome, isContextNearlyFull, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWireRewindScope, isWireSettingWriteLayer, makeTranslate, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, totalUsageTokens, translatorFor, turnDigest, unfixedRules, utf8ByteLength, wireFields };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-agent/protocol",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "private": false,
5
5
  "description": "epoch-agent 契约层:工具 / 事件 / 权限 / 插件的类型定义,零运行时依赖",
6
6
  "repository": {