@epoch-agent/core 0.29.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +101 -50
  2. package/dist/index.js +559 -367
  3. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -7265,13 +7265,17 @@ declare function loadPlugins(opts: PluginLoadOptions): PluginArtifacts;
7265
7265
  * | 族 | 谁读它 |
7266
7266
  * | ----------------------------------------------- | ---------------------------------------- |
7267
7267
  * | `name` / `version` / `epochVersion` / `author` | **epoch 自己** —— 装不装得上、叫什么 |
7268
- * | `displayName` / `category` / `visibility` / `changelog` | **上传那一屏的预填**,epoch 一个字不读 |
7268
+ * | `displayName` / `category` / `visibility` / `changelog` | **上传那一屏的预填**(`displayName` 例外,见下) |
7269
7269
  * | `description` / `homepage` / `keywords` / `icon` | 两边都读(`icon` 见它那一格) |
7270
7270
  * | `dependencies` | **epoch 自己** —— 装它时要一起装谁 |
7271
7271
  *
7272
7272
  * 第二族 2026-09-15 加的,判据在它们自己那几格上。要紧的一条:它们是**预填**,
7273
7273
  * 用户在那一屏上改得动,改了之后发出去的是改后的 —— 包里这一份原地不动。
7274
7274
  *
7275
+ * ⚠️ **`displayName` 不只是预填**(这张表原来写的「epoch 一个字不读」早就不成立了):
7276
+ * 安装前那一屏预览和依赖清单读它(`install.ts`),已装那一栏在市场目录说不出名字时
7277
+ * 也拿它兜底(2026-10-14,runtime 的 `PluginEntryView.packageDisplayName`)。
7278
+ *
7275
7279
  * 文件名放在**插件根**,不学竞品的 `.claude-plugin/` 子目录 —— 多一层目录没带来
7276
7280
  * 任何好处,而「插件根下有没有 `epoch-plugin.json`」是判定「这是不是一个插件」
7277
7281
  * 最省事的问法。
@@ -12336,7 +12340,7 @@ declare const EpochConfigSchema: z.ZodObject<{
12336
12340
  id: z.ZodString;
12337
12341
  label: z.ZodString;
12338
12342
  icon: z.ZodOptional<z.ZodString>;
12339
- pinned: z.ZodOptional<z.ZodBoolean>;
12343
+ primary: z.ZodOptional<z.ZodBoolean>;
12340
12344
  }, z.core.$strip>>>;
12341
12345
  userMenu: z.ZodOptional<z.ZodArray<z.ZodObject<{
12342
12346
  id: z.ZodString;
@@ -16863,13 +16867,15 @@ type ScheduleIssueCode =
16863
16867
  | 'max-turns-invalid'
16864
16868
  /** 墙钟超时必须是正数 */
16865
16869
  | 'timeout-invalid'
16866
- /** 时刻不是 `HH:mm` */
16870
+ /** 时刻不是 `HH:mm`(周期档多个时刻时,每个认不出来的各报一条) */
16867
16871
  | 'trigger-time-invalid'
16872
+ /** 周期档一天的时刻超过了 `SCHEDULE_MAX_TIMES_PER_DAY` */
16873
+ | 'trigger-times-too-many'
16868
16874
  /** 每周档一天都没选 */
16869
16875
  | 'trigger-weekdays-empty'
16870
16876
  /** 每月档的「几号」不在 1–31 之内,或者一个都没选 */
16871
16877
  | 'trigger-days-invalid'
16872
- /** 间隔不在 `SCHEDULE_INTERVAL_MINUTES` 里,理由见那个常量 */
16878
+ /** 间隔不是正整数分钟,或者不在 `SCHEDULE_INTERVAL_MIN_MINUTES`–`MAX` 之内 */
16873
16879
  | 'trigger-interval-invalid'
16874
16880
  /** 单次档的日期不是 `YYYY-MM-DD`,或者压根不是一个真实存在的日子 */
16875
16881
  | 'trigger-once-date-invalid'
@@ -17363,19 +17369,28 @@ declare function listRunningSchedules(db: SqliteDatabase, clock?: () => number):
17363
17369
  /**
17364
17370
  * 触发器的校验、下一次触发时刻、以及生效区间(方案 45 §2.1)。
17365
17371
  *
17366
- * ## 「按间隔」档的时刻锚在**午夜**,不在创建时刻
17372
+ * ## 「按间隔」档的时刻锚在**每天的午夜**,不在创建时刻
17367
17373
  *
17368
17374
  * 这一条是两个平台能逐字一致的全部原因:
17369
17375
  *
17370
17376
  * ```
17371
17377
  * 每 15 分钟 → 每小时的 :00 :15 :30 :45
17372
17378
  * 每 2 小时 → 每天的 00:00 02:00 04:00 …
17379
+ * 每 7 分钟 → 每天的 00:00 00:07 … 23:55,次日 00:00 重新起算
17373
17380
  * ```
17374
17381
  *
17375
- * Windows 那侧靠 `/ST 00:00` 把起点钉死(`/SC MINUTE /MO 15 /ST 00:00`),
17376
- * macOS 那侧本来就只能列举时刻(`StartCalendarInterval`)。
17382
+ * Windows 那侧是「每天 00:00 触发 + 重复间隔 n 分钟、持续 1 天」(任务 XML 的
17383
+ * `Repetition`),macOS 那侧本来就只能列举时刻(`StartCalendarInterval`)。
17377
17384
  * 换成「从创建那一刻起每 15 分钟」的话,Windows 能表达而 macOS 表达不了 ——
17378
17385
  * 于是同一条任务在两台机器上跑在不同的时刻,而这种漂移只有对着日志比才看得出来。
17386
+ * 除不尽一天的间隔,午夜那一格会短一截:那是这条约定的代价,用户 2026-10-12 拍的板
17387
+ * (取值范围和三个例子在 protocol 的 `SCHEDULE_INTERVAL_MIN_MINUTES` 上)。
17388
+ *
17389
+ * ## 周期档一天可以有几个时刻
17390
+ *
17391
+ * `at` + `alsoAt`,读的时候一律走 protocol 的 `cronTimes()`(去重、升序)。
17392
+ * 写进库之前过一遍 {@link normalizeTrigger},于是单时刻的任务存出来和多时刻
17393
+ * 这一格出现之前**逐字节一样**(判据在 protocol 那个类型的注释上)。
17379
17394
  *
17380
17395
  * ## 这里算出来的「下一次」只用于**显示**
17381
17396
  *
@@ -17404,6 +17419,17 @@ declare function parseDate(value: string): {
17404
17419
  * 校验触发器本身。**不看生效区间**(那要和触发器合起来判,见 `validateWindow`)。
17405
17420
  */
17406
17421
  declare function validateTrigger(trigger: ScheduleTrigger, now?: number): ScheduleIssue[];
17422
+ /** 间隔是不是正整数分钟、且在 protocol 给的范围里(含两端) */
17423
+ declare function isValidInterval(everyMinutes: number): boolean;
17424
+ /**
17425
+ * 写进库之前的归一:周期档的时刻**去重、升序**,`at` 是最早那个,其余进 `alsoAt`;
17426
+ * 只剩一个时刻时**不写 `alsoAt` 这个键**。
17427
+ *
17428
+ * 不写那个键(而不是写 `alsoAt: []`)是这一格的全部意义:单时刻任务存出来的
17429
+ * JSON 和多时刻出现之前逐字节一样,老版本的读者、`doctor` 的比对都不受影响。
17430
+ * 其余档原样返回。
17431
+ */
17432
+ declare function normalizeTrigger(trigger: ScheduleTrigger): ScheduleTrigger;
17407
17433
  /**
17408
17434
  * 校验生效区间。
17409
17435
  *
@@ -17559,10 +17585,8 @@ type DraftParse = Parsed<ScheduleDraft>;
17559
17585
  /**
17560
17586
  * 触发器。
17561
17587
  *
17562
- * ⚠️ **`everyMinutes` 只收 `SCHEDULE_INTERVAL_MINUTES` 里那些值**,而这一条要在
17563
- * 这儿就拦住、不能等 `validateTrigger`:模型很容易写一个 `7`,而那个值在两个平台
17564
- * 上的行为不一致(判据在协议那个常量上)。拦在这儿的好处是回给它的话能带上全集,
17565
- * 它下一轮就改对了。
17588
+ * `everyMinutes` 的范围在这儿就拦住、不等 `validateTrigger`:拦在这儿回给模型的话
17589
+ * 能带上范围和「每天从 0 点起算」那条语义,它下一轮就改对了。
17566
17590
  */
17567
17591
  declare function parseTrigger(v: unknown): Parsed<ScheduleTrigger>;
17568
17592
  /**
@@ -18034,16 +18058,31 @@ interface BackendOptions {
18034
18058
  */
18035
18059
  declare function resolveScheduleBackend(platform?: NodeJS.Platform, opts?: BackendOptions): Promise<ScheduleBackend | null>;
18036
18060
  /**
18037
- * 「按间隔」档在两个平台上的公共语义:**时刻锚在午夜**。
18061
+ * 「按间隔」档展开成「一天里的哪些时刻」—— launchd 那侧列举 `StartCalendarInterval` 用。
18062
+ *
18063
+ * 公共语义是**每天从 0 点起算**(判据全文在 [trigger.ts](../trigger.ts) 的文件头)。三种形状:
18064
+ *
18065
+ * | 间隔 | 展开成 | 例 |
18066
+ * | ------------------------------ | ------------------------------ | -------------------------- |
18067
+ * | 能整除 60 分钟 | `minutes`:每小时的这几分 | 15 → `[0, 15, 30, 45]` |
18068
+ * | 整小时数且能整除 24 小时 | `hours`:每天的这几点整 | 120 → `[0, 2, 4, …, 22]` |
18069
+ * | 其余(7 分钟、90 分钟、5 小时) | `clock`:当天逐个列出 | 7 → 00:00 00:07 … 23:55 |
18038
18070
  *
18039
- * 每 15 分钟 = 每小时的 :00 :15 :30 :45;每 2 小时 = 每天 00:00 02:00 04:00…
18040
- * 判据全文在 [trigger.ts](../trigger.ts) 的文件头 —— 这里是那条约定在两个后端
18041
- * 之间的唯一共享实现,别在各自的文件里再算一遍。
18071
+ * ⚠️ **前两种不能并进第三种**,哪怕第三种算出来的时刻一模一样:已经注册的任务,
18072
+ * `doctor` 是拿「重新渲染一遍 plist」去和盘上那份逐字比的,前两种的形状变了,
18073
+ * 每一条老任务都会报一次漂移。第三种是多时刻那一笔(2026-10-12)才有的。
18042
18074
  */
18043
- declare function intervalSlots(everyMinutes: number): {
18044
- hours?: number[];
18075
+ type IntervalSlots = {
18045
18076
  minutes: number[];
18077
+ } | {
18078
+ hours: number[];
18079
+ } | {
18080
+ clock: Array<{
18081
+ hour: number;
18082
+ minute: number;
18083
+ }>;
18046
18084
  };
18085
+ declare function intervalSlots(everyMinutes: number): IntervalSlots;
18047
18086
 
18048
18087
  /**
18049
18088
  * 注册器 —— 把 store、OS 后端、那条 argv 三样拧在一起(方案 45 §2.5 / §2.6)。
@@ -18280,7 +18319,8 @@ declare function pruneSchedules(drifts: readonly ScheduleDrift[], opts: Diagnose
18280
18319
  * 而**丢掉**」
18281
18320
  *
18282
18321
  * 所以「每 15 分钟」写成四个 dict(`Minute` = 0/15/30/45),
18283
- * 而不是 `StartInterval: 900`。这也是「间隔只能是 60 的约数」的真正原因。
18322
+ * 而不是 `StartInterval: 900`。这也是「按间隔」档每天从 0 点重新起算的真正原因:
18323
+ * 列举只能列「一天里的哪些时刻」,「从某一刻起连续每 7 分钟」列不出来。
18284
18324
  *
18285
18325
  * ## 停用不是 `bootout`
18286
18326
  *
@@ -18310,44 +18350,54 @@ declare const LAUNCHD_LABEL_PREFIX = "cn.epoch.schedule.";
18310
18350
  * Windows 后端:任务计划程序(`schtasks`,方案 45 §2.2)。
18311
18351
  *
18312
18352
  * ```
18313
- * schtasks /Create /F /IT /RL LIMITED
18314
- * /TN "epoch\<taskId>"
18315
- * /TR "\"<node 绝对路径>\" \"<入口 js>\" schedule fire <taskId> --home <dir>"
18316
- * /SC DAILY /ST 09:00 /SD 2026/08/14 /ED 2026/12/31
18353
+ * schtasks /Create /F /TN "epoch\<taskId>" /XML <临时文件>
18317
18354
  * ```
18318
18355
  *
18319
- * 五个参数是刻意选的:
18356
+ * ## 注册走 `/XML`,不走 `/SC /ST /TR` 那组参数(2026-10-12 换的)
18357
+ *
18358
+ * 原来那组参数**一条任务只能挂一个触发器**,于是「每天 09:00、14:00、18:00」和
18359
+ * 「每月 1 号、15 号」都表达不了(后者以前在注册前就被拒了)。任务 XML 的
18360
+ * `<Triggers>` 最多收 48 个(`triggersType` 的 `maxOccurs="48"`,微软的 Task Scheduler
18361
+ * Schema 文档),一个时刻一个 `CalendarTrigger`,多天放进同一个触发器里。
18362
+ *
18363
+ * `/XML` 只能和 `/RU` `/RP` 一起用(`schtasks /Create` 文档原文),所以原来那几个
18364
+ * 参数的意思全部搬进了 XML,**一条都没丢**:
18365
+ *
18366
+ * | 原来的参数 | XML 里的对应 | 为什么要它 |
18367
+ * | -------------- | --------------------------------------------- | ------------------------------------------ |
18368
+ * | `/IT` | `<LogonType>InteractiveToken</LogonType>` | 只在用户登录时跑 —— 密钥走 DPAPI 用户密钥,未登录会话取不到;用 `/RU` `/RP` 存密码换「不登录也跑」是反向的 |
18369
+ * | `/RL LIMITED` | `<RunLevel>LeastPrivilege</RunLevel>` | 定时任务不该以管理员身份跑 |
18370
+ * | `/TN epoch\…` | 照旧走 `/TN` | 任务计划程序里一眼看见「这些是 epoch 的」,`doctor` 按前缀枚举 |
18371
+ * | `/F` | 照旧走 `/F` | 覆盖同名,「改了再保存」是幂等的 |
18372
+ * | `/TR` | `<Command>` + `<Arguments>` | 两个绝对路径(node + 入口 js),见 argv.ts |
18373
+ *
18374
+ * `Settings` 那一段照抄 `/Create` 建出来的任务导出的原文(真机实测),**只改了两格**:
18375
+ * `DisallowStartIfOnBatteries` / `StopIfGoingOnBatteries` 从 `true` 改成 `false` ——
18376
+ * 原来 Windows 笔记本不插电时定时任务一律不跑,而 macOS 上没有这个限制(用户 2026-10-12 拍的板)。
18377
+ *
18378
+ * ## 换了之后顺带没了的三条老边界
18320
18379
  *
18321
- * - **`/IT`** —— 帮助原文:「此任务只有在用户已登录的情况下才运行」。要它的理由
18322
- * 不是「交互」而是**凭据**:`~/.epoch` 的密钥走 DPAPI 用户密钥,未登录会话下
18323
- * 取不到。用 `/RU` + `/RP` 存密码换「不登录也跑」是反向的 —— 为了一个定时任务
18324
- * 让用户把 Windows 密码交出来,代价远大于收益。
18325
- * - **`/RL LIMITED`**(默认值,显式写出来)—— 定时任务不该以管理员身份跑。
18326
- * - **`/TN "epoch\<taskId>"`** —— 带一层 `epoch\` 目录,用户在任务计划程序里能
18327
- * 一眼看见「这些是 epoch 的」,`doctor` 也能按前缀枚举。
18328
- * - **`/F`** —— 覆盖同名,让「改了任务再保存」是幂等的。
18329
- * - **`/TR` 里两个绝对路径**(node + 入口 js,不是 `epoch.cmd`),见 argv.ts。
18380
+ * 2026-08-18 在真 Windows 上撞出来的那三条([验收记录](../../../../../docs/verify/VERIFY_RECORD-45-schedule-windows.md)),
18381
+ * 在 `/XML` 这条路上都不成立了,2026-10-12 逐条重验过
18382
+ * ([验收记录](../../../../../docs/verify/VERIFY_RECORD-schedule-multi-times.md)):
18330
18383
  *
18331
- * ## 已确认做不到的一件事:没有「错过了就尽快补跑」的开关
18384
+ * 1. **`/TR` 最长 261 字符** —— 那是 `/TR` 这个参数的限制。`<Arguments>` 超过 300 字符照样建得出来,
18385
+ * 所以源码形态(`pnpm epoch:dev`,394 字符)现在也能注册;
18386
+ * 2. **`/Z` 要求结束边界** —— 我们从来不写 `DeleteExpiredTaskAfter`,单次档收摊仍然走 `retire()`;
18387
+ * 3. **`/SC MONTHLY /D` 只收一天** —— XML 的 `<DaysOfMonth>` 收多个 `<Day>`。
18332
18388
  *
18333
- * `/Create` 的参数表里没有对应项,那个设置只在任务 XML 的 `StartWhenAvailable`
18334
- * 里。要它就得走 `/XML` 递一份完整的任务 XML。**v1 不做补跑**,理由不是难 ——
18335
- * 是补跑的产品语义本身是错的(下午 4 点开机补跑一份 9 点的仓库巡检,价值是负的)。
18389
+ * ## 新的两条硬约束(同样是真机实测)
18336
18390
  *
18337
- * ## `/Create` 的三条硬边界(2026-08-18 在真 Windows 上逐条实测出来的)
18391
+ * - **XML 文件必须是 UTF-16LE + BOM**。写成 UTF-8(声明也改成 UTF-8)当场报
18392
+ * 「任务 XML 格式错误 … 无法切换编码」;
18393
+ * - **生效区间的截止那天要写到 `T23:59:59`**。原来 `/ED 2026/12/31` 落进 XML 是
18394
+ * `EndBoundary 2026-12-31T00:00:00` —— 截止那天 0 点就停了,那天 9 点的任务不跑,
18395
+ * 和界面上「含首尾」相反。这一笔顺带修掉(只对重新保存过的任务生效)。
18338
18396
  *
18339
- * 这个文件的每条参数原本都是对着 `schtasks /Create /?` 的帮助原文写的,从没在真机
18340
- * 上递进去过。第一次真跑就撞出三条帮助原文**没写**的边界,全部记在
18341
- * [验收记录](../../../../../docs/verify/VERIFY_RECORD-45-schedule-windows.md) 里:
18397
+ * ## 已确认做不到的一件事:没有「错过了就尽快补跑」
18342
18398
  *
18343
- * 1. **`/TR` 最长 261 字符**,超一个字就 `exit 2147500037`。所以 `register()`
18344
- * 第一件事是量长度 —— 见 {@link TR_MAX_CHARS}。
18345
- * 2. **`/Z` 要求任务有结束边界**。`/SC ONCE` 不带 `/ET` / `/DU` 时没有
18346
- * `EndBoundary`,`/Z` 会让整条 `/Create` 报「任务 XML 缺少个所需元素或属性」。
18347
- * 所以单次档**不带 `/Z`**,收摊仍然走 `retire()`(macOS 那侧一直是这么做的)。
18348
- * 3. **`/SC MONTHLY` 的 `/D` 只收一天**(`1` - `31`),逗号列表报「值对 /D 选项
18349
- * 无效」。而 `ScheduleTrigger` 的每月档允许多天、launchd 也原生支持多天,
18350
- * 所以这里只能明确拒绝 —— 见 `register()` 里那道闸。
18399
+ * 那个设置是 XML 的 `StartWhenAvailable`,现在够得着了,但**照样不写**:
18400
+ * 补跑的产品语义本身是错的(下午 4 点开机补跑一份 9 点的仓库巡检,价值是负的)。
18351
18401
  *
18352
18402
  * ## 读回那一侧一律走 `/Query /XML`,不碰 `/FO LIST`
18353
18403
  *
@@ -18357,7 +18407,8 @@ declare const LAUNCHD_LABEL_PREFIX = "cn.epoch.schedule.";
18357
18407
  * 而 `enabled` 恒等于 `true`(**一条已停用的任务被报成启用**,是不安全的方向)。
18358
18408
  *
18359
18409
  * ⚠️ `/Query /XML` 有个坑:它吐的 XML 声明写着 `encoding="UTF-16"`,但管道里的
18360
- * 字节不是 UTF-16。所以**别**把它交给一个信任声明的解析器,我们只按元素名取几段。
18410
+ * 字节不是 UTF-16(中文系统上实测是 GBK)。所以**别**把它交给一个信任声明的解析器,
18411
+ * 我们只按元素名取几段。
18361
18412
  */
18362
18413
 
18363
18414
  /** 任务名前缀。**定死** —— 同 launchd 的 Label 前缀,改了就留下枚举不到的孤儿 */
@@ -21215,4 +21266,4 @@ declare function resolveCodeModeWorker(baseDir: string, exists?: typeof existsSy
21215
21266
  */
21216
21267
  declare function codeModeWorkerPath(): string | undefined;
21217
21268
 
21218
- export { ABOUT_DESC_MAX_CHARS, ABOUT_README_MAX_CHARS, AGENT_ROLE_DIAG_MODULE, ARTIFACT_MAX_TOTAL_BYTES, ARTIFACT_RETENTION_DEFAULTS, ATTACHMENT_MAX_TOTAL_BYTES, ATTACHMENT_RETENTION_DEFAULTS, type AcquireResult, type AgentConfig, AgentLoop, type AgentProvider, type AgentSite, type AgentSiteRef, AppearanceStore, type AppendMessageInput, ApprovalCache, type ApprovalDecision, type ArtifactOpenRefusal, type ArtifactRetention, type AskQuestionDeps, type AttachmentRetention, BLOCKED_TOOLS, type BackendOptions, type BackendOutcome, type BackgroundTaskSource, type BaseOrigin, type BaseSlot, type BeginTurnInput, type BreakdownInput, BudgetGuard, type BudgetGuardOptions, type BudgetInfo, type BudgetLevel, type BudgetOptions, type BudgetStatus, BudgetStore, type BudgetStoreOptions, type BuildFireArgvInput, type BuildIndexOptions, CHECKPOINT_MAX_TOTAL_BYTES, CLAUDE_EVENT_NAMES, CLAUDE_TOOL_NAMES, CODE_MODE_LIMITS, CODE_MODE_SDK_TAG, CONFIG_KEYS, CURRENT_CONFIG_VERSION, type CachedApproval, type CachedDecision, type CheckpointCapture, type CheckpointFile, CheckpointManager, type CheckpointManagerOptions, type CheckpointManifest, CheckpointStore, type CheckpointStoreOptions, type CheckpointSummary, type ClaudeHooksParseOptions, type CodeModeLimits, type CodeRequest, type CodeResult, CodeSandbox, type CommandHookConfig, type CommandHookResult, type CommandLoadOutcome, type CommandLoadSummary, type CommandResult, type CommandRunner, type CompactionResult, type CompiledRules, type ComplianceDirSpec, type ComplianceDirsSummary, ComplianceEngine, type ComplianceEngineInput, type ComplianceGate, type ComplianceHit, type ComplianceRule, type ComplianceRuleSource, type ComplianceSettings, type ComplianceVerdict, type CompressConfig, type CompressResult, type ConfigMigration, type ConfigOrigins, ContextCompressor, type ContextEngine, type CreateScheduleInput, type CreateSessionInput, DEFAULT_COMPLIANCE_ACTIONS, DEFAULT_COMPLIANCE_SETTINGS, DEFAULT_COMPRESSION_THRESHOLD, DEFAULT_GOAL_MAX_ROUNDS, DEFAULT_MAX_HOLD_CHARS, type DelegateArgs, type DelegateConfig, DelegateManager, type DelegateTaskResult, type DiagnoseOptions, type DiscoverOutcome, type DiscoveredFile, type DoctorReport, type DraftParse, EMPTY_RULES, EPOCH_DISK_LEDGER, EpochConfigSchema, type ExpandOptions, type ExtractOutcome, FTS_TABLES, FTS_TRIGGERS, type FallbackEvent, type FileSlots, type FileSourceKind, type ForkInput, type FrontmatterParse, type FrontmatterSplit, type FtsHealth, type FtsReclaim, type FtsSpace, type FtsTableHealth, GOAL_BLOCK_CODES, type GateAxis, type GateVerdict, type GenerateInput, type GenerateOutput, type Goal, type GoalBlockReason, type GoalClear, type GoalPhase, type GoalPromptView, type GoalRefusal, type GoalRoundResult, GoalService, GoalStore, type GoalToolDeps, type GoalWrite, HEADLESS_AUDIT_CODES, type HeadlessPolicy, type HookConfigEntry, HookManager, type HookManagerOptions, type HookMatcher, type HookSourceKind, type HookSourceStatus, type HookSourcesOptions, type HookSourcesSummary, type HooksParseOutcome, type MemoryManager$1 as IMemoryManager, INSTRUCTION_BUDGET_CHARS, INSTRUCTION_FILES, type SessionManager$1 as ISessionManager, type SkillSystem$1 as ISkillSystem, ImageLoadError, type ImageSize, type ImportDecision, type ImportGate, type ImportGoal, type ImportMessage, type ImportNode, type ImportPartsResult, type ImportSessionInput, type ImportSessionMeta, type ImportSessionResult, type ImportSkipReason, type ImportTodo, ImportTrustStore, type InstallDependency, type InstallOptions, type InstallOutcome, type InstallPreview, type InstallStep, type InstructionScan, type InstructionSource, type IsolationReason, type IsolationReport, type JsonSchemaDocument, LAUNCHD_LABEL_PREFIX, LOCK_HEARTBEAT_MS, LOCK_STALE_MS, type LastOpenSession, LastOpenSessions, type LayerOutcome, type LayerScalars, type LayerStatus, type LearningContext, type LearningResult, type LearningSkipReason, type LexiconLoadOutcome, type LifecycleOutcome, type ListCandidatesInput, type ListSessionsInput, type ListSessionsOutput, type LoadCommandsOptions, type LoadConfigOptions, type LoadKeybindingsOptions, type LoadKeybindingsResult, type LoadRolesOptions, type LoadedPlugin, type LockHolder, MARKETPLACE_DISPLAY_FIELDS, MARKETPLACE_FILE, MAX_AUDIT_ENTRIES, MAX_COMMAND_DEPTH, MAX_GOAL_MAX_ROUNDS, MAX_IMPORT_DEPTH, MAX_LAST_OPEN_SESSIONS, MAX_OBJECTIVE_CHARS, MAX_REASON_CHARS, MAX_RECENT_WORKSPACES, MODEL_GIVE_UP_THRESHOLD, MULTIMODAL_DEFAULTS, type ManagedPolicy, ManagedPolicyError, type ManagedSettings, ManagedSettingsSchema, type MarketplaceCatalog, type MarketplaceCategory, type MarketplaceDisplay, type MarketplaceDisplayField, type MarketplaceEntry, type MarketplaceOutcome, type MarketplaceRecord, type MarketplaceStatus, type MemoryConfig, type MemoryEntry, type MemoryImportRecord, type MemoryImportResult, MemoryManager, type MemoryManagerOptions, type MemoryNotice, type MemoryRemoval, type MemorySearchResult, type MemoryTarget, type MemoryWriteResult, type MentionPart, type MentionResolution, type Message, type MessageHit, type MessageRecord, type MessageSurface, type ModelCapability, ModelFailureTracker, type ModelMetaEntry, type ModelPricing, type MultimodalPolicy, NOMINAL_TOTAL_BYTES, NO_REVEALED_TOOLS, type NonInteractiveProbe, type OsTaskSnapshot, type OutputGuard, PACK_EXCLUDES, PACK_MAX_BYTES, PACK_MAX_FILES, PERMISSION_AUDIT_CODES, PLUGIN_ICON_MAX_BYTES, PLUGIN_LAYOUT, PLUGIN_MANIFEST_FILE, PLUGIN_MANIFEST_KEYS, PLUGIN_NAME_PATTERN, PLUGIN_ROOT_ENV, PLUGIN_ROOT_TOKEN, PLUGIN_VISIBILITY, POLICY_DECISIONS, PROBE_VERSION, PROJECT_AGENTS_SUBDIR, PROVIDER_NO_CREDENTIAL, type PackFile, type PackLimits, type PackOutcome, type PackPlan, type PackPlanOutcome, type PermissionAuditCode, type PermissionAuditEntry, type PermissionAuditOutcome, type PermissionAuditScope, type PermissionAuditSnapshot, PermissionManager, type PersistFailureKind, type PersistedBudget, type PersistedPart, type PlanApprovalFn, type PlanEnterResult, type PlanModeDeps, PlanModeState, type PlanSettlement, type PluginAbout, type PluginArtifacts, type PluginAuthor, PluginAuthorSchema, type PluginCommandDir, type PluginCounts, type PluginDoc, type PluginHookFile, type PluginInventory, type PluginLoadOptions, type PluginManifest, type PluginPathRef, type PluginRecord, type PluginSettingsFile, type PluginSourceType, type PluginStateReadOutcome, PluginStore, type PluginVisibility, type PolicyDirSpec, type PolicyDirsSummary, type PolicyLoadOutcome, type PolicyRule, PolicyRuleSchema, type PricingAt, type PricingOverride, type ProjectContext, type ProjectExtensionInventory, ProviderError, ProviderRouter, type ProviderStreamChunk, type ProviderToolCall$1 as ProviderToolCall, type ProviderWarning, type PruneResult, type QuestionAskFn, RECORDING_KEEP_RUNS, RECORDING_MAX_BYTES, ROLE_FRONTMATTER_SCHEMA, RUN_CODE_TOOL, type ReadMessagesInput, type ReadMessagesOutput, type RecentWorkspace, RecentWorkspaces, type RecordRunInput, type RecorderOptions, type RecoveryAction, type RegisterInput, type RegisterOutcome, type RegistrarOptions, type RegistrationPatch, type RepairOutcome, type ResolveMentionsOptions, type ResolveReferenceInput, type ResolveSettingsOptions, type ResolvedCompression, type ResolvedReference, type ResolvedSource, type ResponseFormat, type RestorePartsOptions, type RewindAction, type RewindDrift, type RewindFilePlan, type RewindOptions, type RewindOutcome, type RewindPreview, type RoleCreateFailure, type RoleCreateInput, type RoleCreateOptions, type RoleCreateOutcome, type RoleLoadOutcome, type RoleLoadSummary, type RoleMergeNotice, type RoleMergeResult, type RoleRemoveFailure, type RoleRemoveOptions, type RoleRemoveOutcome, type RoleScope, type RuleMatch, type RuleSuggestion, type RuleVerdict, type RunCodeFailure, type RunCodeInput, type RunCodeOutcome, type RunCodeToolDeps, type RunEstimateInput, type RunInput, type RunResult, type RunningSchedule, SANDBOX_COVERS, SANDBOX_EXCLUDES, SCALAR_KEYS, SCHEDULE_DEFAULTS, SCHEDULE_DEFAULT_ALLOWLIST, SCHEDULE_FORM_BUDGET_USD, SCHEDULE_ISSUE_CODES, SCHTASKS_FOLDER, SESSION_MESSAGES_READ_TOOL, SESSION_MESSAGES_SEARCH_TOOL, SESSION_QUERY_TOOLS, SESSION_SEARCH_TOOL, SESSION_TRACE_TOOL, SETTINGS_LAYER_ORDER, SETTING_WRITE_KEYS, SETTING_WRITE_LAYERS, SKILL_ASSET_DIRS, SKILL_CREATE_TOOL, SKILL_EDIT_TOOL, SKILL_FILE, SKILL_PATCH_TOOL, SKILL_VIEW_TOOL, SKILL_WRITE_FILE_TOOL, SLASH_COMMANDS_DIAG_MODULE, type ScalarKey, type ScanInstructionsOptions, type ScheduleArgvRefusal, type ScheduleArgvResult, type ScheduleArgvWarning, type ScheduleBackend, type ScheduleCliEntry, type ScheduleDraftDeps, type ScheduleDrift, type ScheduleDriftKind, type ScheduleImportInput, type ScheduleInstallForm, type ScheduleIssue, type ScheduleIssueCode, type ScheduleLock, ScheduleRecorder, ScheduleRegistrar, ScheduleStore, type ScheduleValidation, type SchemaExport, type SearchHit, type SearchInput, type SearchMessagesInput, type SearchMessagesOutput, type SearchOutput, type SearchSessionsInput, type SelectionDeps, type SelfConnector, type SelfIndexInput, type SelfSettings, type Session, type SessionCandidate, type SessionHit, SessionManager, type SessionMentionDeps, type SessionMeta, SessionQueries, SessionReferences, type SessionSearchDeps, type SessionStats, type SessionSurface, type SessionTrace, type SessionVisibility, type SessionVisibilityInput, type SettingApply, type SettingApplyFacts, type SettingChain, type SettingFutile, type SettingLayer, type SettingStep, type SettingValue, type SettingValueKind, type SettingWriteFailure, type SettingWriteKey, type SettingWriteLayer, type SettingWriteOutcome, type SettingWriteRequest, type SettingWriteTarget, type SettingWriteTargetsOptions, type SettingsFile, SettingsFileError, SettingsFileSchema, type SettingsLayer, type SettingsResolution, type ShadowFinding, type ShadowKind, type Skill, type SkillDirSource, type SkillDirSpec, type SkillDirsSummary, type SkillImportConflict, type SkillImportDone, type SkillImportEntry, type SkillImportFailure, type SkillImportForm, type SkillImportOptions, type SkillImportPreview, type SkillImportResult, type SkillIndexEntry, type SkillIndexOptions, type SkillIndexResidency, type SkillIndexStats, SkillLearner, type SkillLearningProvider, type SkillMeta, type SkillStats, SkillSystem, type SkillSystemOptions, type SkillViewDeps, type SkillWriteDeps, type SteerSource, type StoredAppearance, type SubAgentRunner, type SubTask, type SubToolCaller, type SummarizeOutput, type SurfaceMessage, type SystemPromptParams, type SystemPromptSegments, TOOL_SEARCH_TOOL, TaskNoticeTracker, type TodoItem, type ToolCall, type ToolConflict, type ToolGate, type ToolNameFidelity, type ToolNameLookup, ToolRegistry, type ToolRevealState, type ToolScope, type ToolSearchDeps, type ToolTableCost, type TraceInput, type TraceNode, TrackerDB, type TrustDecision, type TrustGate, type TrustGateOptions, TrustManager, type TurnRecord, type TurnTiming, type UpdateScheduleInput, type UtilityModelInfo, type ValidateScheduleInput, type VersionCheck, Workspace, type WorkspaceFiles, type WorkspaceIssue, type WorkspaceIssueKind, acquireScheduleLock, addMarketplace, addUsage, admitArtifact, admitArtifacts, affectedPaths, approvalEntryFor, approvalRootFor, artifactLaunchArgv, artifactOpenRefusal, assertLevelAllowed, blockedRoleTools, buildContextBreakdown, buildFireArgv, buildFtsMatchQuery, buildSchemaExports, buildSystemPrompt, buildTrigramMatchQuery, builtinRoles, checkEpochVersion, checkFtsHealth, checkShadowing, classifyPersistFailure, classifyProviderError, clearModelCache, coalesceRecording, codeModeWorkerPath, commandNameFromRelPath, compileRuleLists, compressionOptions, computeCost, computeCostMicros, computeExecHash, countRules, createAllowAllGate, createAllowAllImportGate, createAskQuestionTool, createCodeExecTool, createDelegateTool, createDenyAllGate, createDenyAllImportGate, createGoalTool, createImportGate, createMemoryTool, createPlanModeTools, createRoleFile, createRoleScope, createRunCodeTool, createScheduleDraftTool, createSessionMessagesReadTool, createSessionMessagesSearchTool, createSessionSearchTool, createSessionSearchTools, createSessionTraceTool, createSkillViewTool, createSkillWriteTools, createTodoTool, createToolRevealState, createToolScope, createToolSearchTool, createTrustGate, currentEpochVersion, decideImport, decideTrust, defaultConfig, defaultModelOf, describeArtifactRefusal, describeBackgroundTask, describeHeadlessPolicy, describeIsolation, describeJsonError, diagnoseSchedules, discoverMarkdown, discoverModels, discoverProject, displayAllows, displayCurrency, draftCommandLine, draftWidening, escapeRuleContent, estimateImageTokens, estimateRunTokens, estimateTokens, evaluateSelection, expandCommand, expandImports, explainSetting, extractArchive, findInstructionFiles, findProjectInstructions, findRole, formatBytes, formatSkillIndex, formatUsd, gateForTool, getCapability, getConfigIssues, getConfigOrigins, getImportGate, getTrustGate, grantedPathsFor, hasDedicatedExecContent, hasExecTierContent, hasPromptCaching, hasProviderCredentials, hasReadTierContent, imageFromBase64, imageFromPath, imagePartTokens, importParts, importSkills, installPlugin, instructionDirs, instructionNotices, intervalSlots, inventoryProjectExtensions, inventoryTotal, isBlockCode, isCodeModeDeferred, isEmptyRules, isGoalPhase, isNonInteractive, isReadOnlySubCall, isSettingWriteLayer, isTransientPersistFailure, isValidPluginName, isWithinWindow, isWritableSettingKey, labelSlug, layerRank, listRunningSchedules, listSessionCandidates, listWorkspaceFiles, loadCommandDefinitions, loadCommandFile, loadCommands, loadConfig, loadHookSources, loadKeybindings, loadLexiconDir, loadLexiconFiles, loadPlugins, loadPolicyFiles, loadPolicyRules, loadRoleDefinitions, loadRoleDir, loadedImports, localDateString, managedSwitchNotes, mapClaudeToolName, mapEpochToolName, mapOperationType, matchPreauthorization, matchRuleLists, matchesHook, mentionsPluginRoot, mergeHeadlessPolicy, mergeRoles, mergeSchedulePatch, microsToUsd, modelListCandidates, needsAllowlist, nextFallbackModel, nextRunAt, noConfigOrigins, noManagedPolicy, noPlugins, openArtifact, originOf, packFileName, packPlugin, parseClaudeSettingsHooks, parseClock, parseDate, parseFrontmatter, parseHooksConfig, parseHooksConfigVerbose, parseImportLine, parseModelList, parseRoleDefinition, parseScheduleDraft, parseSkillFrontmatter, parseTrigger, pendingImageTokens, persistFailureCode, persistParts, persistToolResults, persistedUsage, planPack, previewSkillImport, pricingFor, projectEntryForDisplay, pruneArtifacts, pruneAttachments, pruneRecordings, pruneSchedules, readImageSize, readMarketplaces, readPluginAbout, readPluginIcon, readPluginManifest, readPluginRecords, readProviderKeyEnv, readRecording, readSessionSurface, reclaimFtsSpace, redactLine, refreshOpenRouterMetadata, removeMarketplace, removeRecordings, removeRoleFile, removeSessionArtifacts, removeSessionAttachments, renderImportTree, renderProjectContext, renderSdkDeclaration, renderSelfIndex, repairSchedules, resolveArtifactRetention, resolveCodeModeWorker, resolveComplianceDirs, resolveEntrySource, resolveInWorkspace, resolveMarketplaceRef, resolveMentions, resolveMultimodalPolicy, resolvePolicyDirs, resolvePricingAt, resolveProjectRoot, resolveScheduleBackend, resolveSessionReference, resolveSessionVisibility, resolveSettings, resolveSkillDirs, resolveSource, resolveTar, resolveWorkspace, restoreParts, revealScopedProvider, roleScopedProvider, roleSourceLabel, ruleCovers, ruleFromString, ruleToString, runCode, runCommand, sanitizeArgNames, sanitizeCommand, sanitizeFtsQuery, sanitizePath, sanitizeToolOutput, scanInstructions, scanPluginDir, scanSkillDirs, searchMarketplaces, setDisplayCurrency, setImportGate, setPluginEnabled, setTrustGate, settingValueChoices, settingValueKind, settingWriteApply, settingWriteLayers, settingWriteTargets, skillIndexDescription, skillIndexResidency, skillIndexStats, sniffMediaType, splitFrontmatter, staticToolProvider, stripArtifactData, substitutePluginRoot, suggestRuleFromApproval, systemOpenArgv, systemPromptSegments, toPosix, toolDefinitionTokens, toolMatches, toolTableTokens, totalTokens, traceSession, triggerPeriodMs, unescapeRuleContent, uninstallPlugin, unknownRoleSkills, unknownRoleTools, unloadedInstructionFiles, updateMarketplace, updatePlugin, usdToMicros, validateSchedule, validateTrigger, validateWindow, withGoalCompression, withGoalPrompt, workspaceDisplayPath, writeSettingValue };
21269
+ export { ABOUT_DESC_MAX_CHARS, ABOUT_README_MAX_CHARS, AGENT_ROLE_DIAG_MODULE, ARTIFACT_MAX_TOTAL_BYTES, ARTIFACT_RETENTION_DEFAULTS, ATTACHMENT_MAX_TOTAL_BYTES, ATTACHMENT_RETENTION_DEFAULTS, type AcquireResult, type AgentConfig, AgentLoop, type AgentProvider, type AgentSite, type AgentSiteRef, AppearanceStore, type AppendMessageInput, ApprovalCache, type ApprovalDecision, type ArtifactOpenRefusal, type ArtifactRetention, type AskQuestionDeps, type AttachmentRetention, BLOCKED_TOOLS, type BackendOptions, type BackendOutcome, type BackgroundTaskSource, type BaseOrigin, type BaseSlot, type BeginTurnInput, type BreakdownInput, BudgetGuard, type BudgetGuardOptions, type BudgetInfo, type BudgetLevel, type BudgetOptions, type BudgetStatus, BudgetStore, type BudgetStoreOptions, type BuildFireArgvInput, type BuildIndexOptions, CHECKPOINT_MAX_TOTAL_BYTES, CLAUDE_EVENT_NAMES, CLAUDE_TOOL_NAMES, CODE_MODE_LIMITS, CODE_MODE_SDK_TAG, CONFIG_KEYS, CURRENT_CONFIG_VERSION, type CachedApproval, type CachedDecision, type CheckpointCapture, type CheckpointFile, CheckpointManager, type CheckpointManagerOptions, type CheckpointManifest, CheckpointStore, type CheckpointStoreOptions, type CheckpointSummary, type ClaudeHooksParseOptions, type CodeModeLimits, type CodeRequest, type CodeResult, CodeSandbox, type CommandHookConfig, type CommandHookResult, type CommandLoadOutcome, type CommandLoadSummary, type CommandResult, type CommandRunner, type CompactionResult, type CompiledRules, type ComplianceDirSpec, type ComplianceDirsSummary, ComplianceEngine, type ComplianceEngineInput, type ComplianceGate, type ComplianceHit, type ComplianceRule, type ComplianceRuleSource, type ComplianceSettings, type ComplianceVerdict, type CompressConfig, type CompressResult, type ConfigMigration, type ConfigOrigins, ContextCompressor, type ContextEngine, type CreateScheduleInput, type CreateSessionInput, DEFAULT_COMPLIANCE_ACTIONS, DEFAULT_COMPLIANCE_SETTINGS, DEFAULT_COMPRESSION_THRESHOLD, DEFAULT_GOAL_MAX_ROUNDS, DEFAULT_MAX_HOLD_CHARS, type DelegateArgs, type DelegateConfig, DelegateManager, type DelegateTaskResult, type DiagnoseOptions, type DiscoverOutcome, type DiscoveredFile, type DoctorReport, type DraftParse, EMPTY_RULES, EPOCH_DISK_LEDGER, EpochConfigSchema, type ExpandOptions, type ExtractOutcome, FTS_TABLES, FTS_TRIGGERS, type FallbackEvent, type FileSlots, type FileSourceKind, type ForkInput, type FrontmatterParse, type FrontmatterSplit, type FtsHealth, type FtsReclaim, type FtsSpace, type FtsTableHealth, GOAL_BLOCK_CODES, type GateAxis, type GateVerdict, type GenerateInput, type GenerateOutput, type Goal, type GoalBlockReason, type GoalClear, type GoalPhase, type GoalPromptView, type GoalRefusal, type GoalRoundResult, GoalService, GoalStore, type GoalToolDeps, type GoalWrite, HEADLESS_AUDIT_CODES, type HeadlessPolicy, type HookConfigEntry, HookManager, type HookManagerOptions, type HookMatcher, type HookSourceKind, type HookSourceStatus, type HookSourcesOptions, type HookSourcesSummary, type HooksParseOutcome, type MemoryManager$1 as IMemoryManager, INSTRUCTION_BUDGET_CHARS, INSTRUCTION_FILES, type SessionManager$1 as ISessionManager, type SkillSystem$1 as ISkillSystem, ImageLoadError, type ImageSize, type ImportDecision, type ImportGate, type ImportGoal, type ImportMessage, type ImportNode, type ImportPartsResult, type ImportSessionInput, type ImportSessionMeta, type ImportSessionResult, type ImportSkipReason, type ImportTodo, ImportTrustStore, type InstallDependency, type InstallOptions, type InstallOutcome, type InstallPreview, type InstallStep, type InstructionScan, type InstructionSource, type IsolationReason, type IsolationReport, type JsonSchemaDocument, LAUNCHD_LABEL_PREFIX, LOCK_HEARTBEAT_MS, LOCK_STALE_MS, type LastOpenSession, LastOpenSessions, type LayerOutcome, type LayerScalars, type LayerStatus, type LearningContext, type LearningResult, type LearningSkipReason, type LexiconLoadOutcome, type LifecycleOutcome, type ListCandidatesInput, type ListSessionsInput, type ListSessionsOutput, type LoadCommandsOptions, type LoadConfigOptions, type LoadKeybindingsOptions, type LoadKeybindingsResult, type LoadRolesOptions, type LoadedPlugin, type LockHolder, MARKETPLACE_DISPLAY_FIELDS, MARKETPLACE_FILE, MAX_AUDIT_ENTRIES, MAX_COMMAND_DEPTH, MAX_GOAL_MAX_ROUNDS, MAX_IMPORT_DEPTH, MAX_LAST_OPEN_SESSIONS, MAX_OBJECTIVE_CHARS, MAX_REASON_CHARS, MAX_RECENT_WORKSPACES, MODEL_GIVE_UP_THRESHOLD, MULTIMODAL_DEFAULTS, type ManagedPolicy, ManagedPolicyError, type ManagedSettings, ManagedSettingsSchema, type MarketplaceCatalog, type MarketplaceCategory, type MarketplaceDisplay, type MarketplaceDisplayField, type MarketplaceEntry, type MarketplaceOutcome, type MarketplaceRecord, type MarketplaceStatus, type MemoryConfig, type MemoryEntry, type MemoryImportRecord, type MemoryImportResult, MemoryManager, type MemoryManagerOptions, type MemoryNotice, type MemoryRemoval, type MemorySearchResult, type MemoryTarget, type MemoryWriteResult, type MentionPart, type MentionResolution, type Message, type MessageHit, type MessageRecord, type MessageSurface, type ModelCapability, ModelFailureTracker, type ModelMetaEntry, type ModelPricing, type MultimodalPolicy, NOMINAL_TOTAL_BYTES, NO_REVEALED_TOOLS, type NonInteractiveProbe, type OsTaskSnapshot, type OutputGuard, PACK_EXCLUDES, PACK_MAX_BYTES, PACK_MAX_FILES, PERMISSION_AUDIT_CODES, PLUGIN_ICON_MAX_BYTES, PLUGIN_LAYOUT, PLUGIN_MANIFEST_FILE, PLUGIN_MANIFEST_KEYS, PLUGIN_NAME_PATTERN, PLUGIN_ROOT_ENV, PLUGIN_ROOT_TOKEN, PLUGIN_VISIBILITY, POLICY_DECISIONS, PROBE_VERSION, PROJECT_AGENTS_SUBDIR, PROVIDER_NO_CREDENTIAL, type PackFile, type PackLimits, type PackOutcome, type PackPlan, type PackPlanOutcome, type PermissionAuditCode, type PermissionAuditEntry, type PermissionAuditOutcome, type PermissionAuditScope, type PermissionAuditSnapshot, PermissionManager, type PersistFailureKind, type PersistedBudget, type PersistedPart, type PlanApprovalFn, type PlanEnterResult, type PlanModeDeps, PlanModeState, type PlanSettlement, type PluginAbout, type PluginArtifacts, type PluginAuthor, PluginAuthorSchema, type PluginCommandDir, type PluginCounts, type PluginDoc, type PluginHookFile, type PluginInventory, type PluginLoadOptions, type PluginManifest, type PluginPathRef, type PluginRecord, type PluginSettingsFile, type PluginSourceType, type PluginStateReadOutcome, PluginStore, type PluginVisibility, type PolicyDirSpec, type PolicyDirsSummary, type PolicyLoadOutcome, type PolicyRule, PolicyRuleSchema, type PricingAt, type PricingOverride, type ProjectContext, type ProjectExtensionInventory, ProviderError, ProviderRouter, type ProviderStreamChunk, type ProviderToolCall$1 as ProviderToolCall, type ProviderWarning, type PruneResult, type QuestionAskFn, RECORDING_KEEP_RUNS, RECORDING_MAX_BYTES, ROLE_FRONTMATTER_SCHEMA, RUN_CODE_TOOL, type ReadMessagesInput, type ReadMessagesOutput, type RecentWorkspace, RecentWorkspaces, type RecordRunInput, type RecorderOptions, type RecoveryAction, type RegisterInput, type RegisterOutcome, type RegistrarOptions, type RegistrationPatch, type RepairOutcome, type ResolveMentionsOptions, type ResolveReferenceInput, type ResolveSettingsOptions, type ResolvedCompression, type ResolvedReference, type ResolvedSource, type ResponseFormat, type RestorePartsOptions, type RewindAction, type RewindDrift, type RewindFilePlan, type RewindOptions, type RewindOutcome, type RewindPreview, type RoleCreateFailure, type RoleCreateInput, type RoleCreateOptions, type RoleCreateOutcome, type RoleLoadOutcome, type RoleLoadSummary, type RoleMergeNotice, type RoleMergeResult, type RoleRemoveFailure, type RoleRemoveOptions, type RoleRemoveOutcome, type RoleScope, type RuleMatch, type RuleSuggestion, type RuleVerdict, type RunCodeFailure, type RunCodeInput, type RunCodeOutcome, type RunCodeToolDeps, type RunEstimateInput, type RunInput, type RunResult, type RunningSchedule, SANDBOX_COVERS, SANDBOX_EXCLUDES, SCALAR_KEYS, SCHEDULE_DEFAULTS, SCHEDULE_DEFAULT_ALLOWLIST, SCHEDULE_FORM_BUDGET_USD, SCHEDULE_ISSUE_CODES, SCHTASKS_FOLDER, SESSION_MESSAGES_READ_TOOL, SESSION_MESSAGES_SEARCH_TOOL, SESSION_QUERY_TOOLS, SESSION_SEARCH_TOOL, SESSION_TRACE_TOOL, SETTINGS_LAYER_ORDER, SETTING_WRITE_KEYS, SETTING_WRITE_LAYERS, SKILL_ASSET_DIRS, SKILL_CREATE_TOOL, SKILL_EDIT_TOOL, SKILL_FILE, SKILL_PATCH_TOOL, SKILL_VIEW_TOOL, SKILL_WRITE_FILE_TOOL, SLASH_COMMANDS_DIAG_MODULE, type ScalarKey, type ScanInstructionsOptions, type ScheduleArgvRefusal, type ScheduleArgvResult, type ScheduleArgvWarning, type ScheduleBackend, type ScheduleCliEntry, type ScheduleDraftDeps, type ScheduleDrift, type ScheduleDriftKind, type ScheduleImportInput, type ScheduleInstallForm, type ScheduleIssue, type ScheduleIssueCode, type ScheduleLock, ScheduleRecorder, ScheduleRegistrar, ScheduleStore, type ScheduleValidation, type SchemaExport, type SearchHit, type SearchInput, type SearchMessagesInput, type SearchMessagesOutput, type SearchOutput, type SearchSessionsInput, type SelectionDeps, type SelfConnector, type SelfIndexInput, type SelfSettings, type Session, type SessionCandidate, type SessionHit, SessionManager, type SessionMentionDeps, type SessionMeta, SessionQueries, SessionReferences, type SessionSearchDeps, type SessionStats, type SessionSurface, type SessionTrace, type SessionVisibility, type SessionVisibilityInput, type SettingApply, type SettingApplyFacts, type SettingChain, type SettingFutile, type SettingLayer, type SettingStep, type SettingValue, type SettingValueKind, type SettingWriteFailure, type SettingWriteKey, type SettingWriteLayer, type SettingWriteOutcome, type SettingWriteRequest, type SettingWriteTarget, type SettingWriteTargetsOptions, type SettingsFile, SettingsFileError, SettingsFileSchema, type SettingsLayer, type SettingsResolution, type ShadowFinding, type ShadowKind, type Skill, type SkillDirSource, type SkillDirSpec, type SkillDirsSummary, type SkillImportConflict, type SkillImportDone, type SkillImportEntry, type SkillImportFailure, type SkillImportForm, type SkillImportOptions, type SkillImportPreview, type SkillImportResult, type SkillIndexEntry, type SkillIndexOptions, type SkillIndexResidency, type SkillIndexStats, SkillLearner, type SkillLearningProvider, type SkillMeta, type SkillStats, SkillSystem, type SkillSystemOptions, type SkillViewDeps, type SkillWriteDeps, type SteerSource, type StoredAppearance, type SubAgentRunner, type SubTask, type SubToolCaller, type SummarizeOutput, type SurfaceMessage, type SystemPromptParams, type SystemPromptSegments, TOOL_SEARCH_TOOL, TaskNoticeTracker, type TodoItem, type ToolCall, type ToolConflict, type ToolGate, type ToolNameFidelity, type ToolNameLookup, ToolRegistry, type ToolRevealState, type ToolScope, type ToolSearchDeps, type ToolTableCost, type TraceInput, type TraceNode, TrackerDB, type TrustDecision, type TrustGate, type TrustGateOptions, TrustManager, type TurnRecord, type TurnTiming, type UpdateScheduleInput, type UtilityModelInfo, type ValidateScheduleInput, type VersionCheck, Workspace, type WorkspaceFiles, type WorkspaceIssue, type WorkspaceIssueKind, acquireScheduleLock, addMarketplace, addUsage, admitArtifact, admitArtifacts, affectedPaths, approvalEntryFor, approvalRootFor, artifactLaunchArgv, artifactOpenRefusal, assertLevelAllowed, blockedRoleTools, buildContextBreakdown, buildFireArgv, buildFtsMatchQuery, buildSchemaExports, buildSystemPrompt, buildTrigramMatchQuery, builtinRoles, checkEpochVersion, checkFtsHealth, checkShadowing, classifyPersistFailure, classifyProviderError, clearModelCache, coalesceRecording, codeModeWorkerPath, commandNameFromRelPath, compileRuleLists, compressionOptions, computeCost, computeCostMicros, computeExecHash, countRules, createAllowAllGate, createAllowAllImportGate, createAskQuestionTool, createCodeExecTool, createDelegateTool, createDenyAllGate, createDenyAllImportGate, createGoalTool, createImportGate, createMemoryTool, createPlanModeTools, createRoleFile, createRoleScope, createRunCodeTool, createScheduleDraftTool, createSessionMessagesReadTool, createSessionMessagesSearchTool, createSessionSearchTool, createSessionSearchTools, createSessionTraceTool, createSkillViewTool, createSkillWriteTools, createTodoTool, createToolRevealState, createToolScope, createToolSearchTool, createTrustGate, currentEpochVersion, decideImport, decideTrust, defaultConfig, defaultModelOf, describeArtifactRefusal, describeBackgroundTask, describeHeadlessPolicy, describeIsolation, describeJsonError, diagnoseSchedules, discoverMarkdown, discoverModels, discoverProject, displayAllows, displayCurrency, draftCommandLine, draftWidening, escapeRuleContent, estimateImageTokens, estimateRunTokens, estimateTokens, evaluateSelection, expandCommand, expandImports, explainSetting, extractArchive, findInstructionFiles, findProjectInstructions, findRole, formatBytes, formatSkillIndex, formatUsd, gateForTool, getCapability, getConfigIssues, getConfigOrigins, getImportGate, getTrustGate, grantedPathsFor, hasDedicatedExecContent, hasExecTierContent, hasPromptCaching, hasProviderCredentials, hasReadTierContent, imageFromBase64, imageFromPath, imagePartTokens, importParts, importSkills, installPlugin, instructionDirs, instructionNotices, intervalSlots, inventoryProjectExtensions, inventoryTotal, isBlockCode, isCodeModeDeferred, isEmptyRules, isGoalPhase, isNonInteractive, isReadOnlySubCall, isSettingWriteLayer, isTransientPersistFailure, isValidInterval, isValidPluginName, isWithinWindow, isWritableSettingKey, labelSlug, layerRank, listRunningSchedules, listSessionCandidates, listWorkspaceFiles, loadCommandDefinitions, loadCommandFile, loadCommands, loadConfig, loadHookSources, loadKeybindings, loadLexiconDir, loadLexiconFiles, loadPlugins, loadPolicyFiles, loadPolicyRules, loadRoleDefinitions, loadRoleDir, loadedImports, localDateString, managedSwitchNotes, mapClaudeToolName, mapEpochToolName, mapOperationType, matchPreauthorization, matchRuleLists, matchesHook, mentionsPluginRoot, mergeHeadlessPolicy, mergeRoles, mergeSchedulePatch, microsToUsd, modelListCandidates, needsAllowlist, nextFallbackModel, nextRunAt, noConfigOrigins, noManagedPolicy, noPlugins, normalizeTrigger, openArtifact, originOf, packFileName, packPlugin, parseClaudeSettingsHooks, parseClock, parseDate, parseFrontmatter, parseHooksConfig, parseHooksConfigVerbose, parseImportLine, parseModelList, parseRoleDefinition, parseScheduleDraft, parseSkillFrontmatter, parseTrigger, pendingImageTokens, persistFailureCode, persistParts, persistToolResults, persistedUsage, planPack, previewSkillImport, pricingFor, projectEntryForDisplay, pruneArtifacts, pruneAttachments, pruneRecordings, pruneSchedules, readImageSize, readMarketplaces, readPluginAbout, readPluginIcon, readPluginManifest, readPluginRecords, readProviderKeyEnv, readRecording, readSessionSurface, reclaimFtsSpace, redactLine, refreshOpenRouterMetadata, removeMarketplace, removeRecordings, removeRoleFile, removeSessionArtifacts, removeSessionAttachments, renderImportTree, renderProjectContext, renderSdkDeclaration, renderSelfIndex, repairSchedules, resolveArtifactRetention, resolveCodeModeWorker, resolveComplianceDirs, resolveEntrySource, resolveInWorkspace, resolveMarketplaceRef, resolveMentions, resolveMultimodalPolicy, resolvePolicyDirs, resolvePricingAt, resolveProjectRoot, resolveScheduleBackend, resolveSessionReference, resolveSessionVisibility, resolveSettings, resolveSkillDirs, resolveSource, resolveTar, resolveWorkspace, restoreParts, revealScopedProvider, roleScopedProvider, roleSourceLabel, ruleCovers, ruleFromString, ruleToString, runCode, runCommand, sanitizeArgNames, sanitizeCommand, sanitizeFtsQuery, sanitizePath, sanitizeToolOutput, scanInstructions, scanPluginDir, scanSkillDirs, searchMarketplaces, setDisplayCurrency, setImportGate, setPluginEnabled, setTrustGate, settingValueChoices, settingValueKind, settingWriteApply, settingWriteLayers, settingWriteTargets, skillIndexDescription, skillIndexResidency, skillIndexStats, sniffMediaType, splitFrontmatter, staticToolProvider, stripArtifactData, substitutePluginRoot, suggestRuleFromApproval, systemOpenArgv, systemPromptSegments, toPosix, toolDefinitionTokens, toolMatches, toolTableTokens, totalTokens, traceSession, triggerPeriodMs, unescapeRuleContent, uninstallPlugin, unknownRoleSkills, unknownRoleTools, unloadedInstructionFiles, updateMarketplace, updatePlugin, usdToMicros, validateSchedule, validateTrigger, validateWindow, withGoalCompression, withGoalPrompt, workspaceDisplayPath, writeSettingValue };