@epoch-agent/core 0.20.1 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -60,6 +60,19 @@ A 的预算上、把文件快照落进 A 的检查点目录。
60
60
  **这不是破坏性改动**:参数少的函数可以赋给参数多的函数类型,所以单会话调用方
61
61
  (CLI / TUI / 用例)写 `(req) => …` 照旧编译得过,一行不用改。
62
62
 
63
+ **`ask_user_question` 的页面位只收本机回环,而这不是抄设置页那条口径**(2026-09-29)。
64
+ 参数里多了一格 `questions[].page = { url, label? }` —— 插件在本机起一张页、
65
+ 而那个选择用选项说不清时,模型把地址放进这一格,带界面的宿主会把它嵌在那一问旁边。
66
+ ⚠️ **闸在 `parseQuestion` 里**(`new URL` parse 得动 + scheme 是 http/https +
67
+ host 是 `127.0.0.1` / `localhost`),而它**和 `EpochConfig.settingsPanes` 那一个
68
+ 量的一样宽、口径相反**:那一边的 url 是**用户自己写的 `config.yaml`**,所以
69
+ 「给什么嵌什么」站得住;这一格来自**模型参数**,而模型的上下文里有工具输出和网页
70
+ —— 那是可注入的。判据全文在 [protocol 的 question.ts](../protocol/src/question.ts) 文件头。
71
+
72
+ **坏 page 只丢那一格,不拒整条提问。** 同 `icon` 那条「认不出来的当没给」:
73
+ `page` 是锦上添花,而选项是必填的 —— 为它把整问打回,用户看到的是「这个问题根本
74
+ 没弹出来」,代价和收益完全不成比例。
75
+
63
76
  **`AgentConfig.site` 是「在哪儿干活」的现读出口,给了它 `workDir` /
64
77
  `projectContext` 就不再被读。**(迟绑,2026-08-20)循环内部只认 `site()` 这一个真源,
65
78
  不存在「workDir 是新的、projectContext 还是旧的」这种状态。不给时它按那两格折一个
package/dist/index.d.ts CHANGED
@@ -7172,6 +7172,7 @@ declare function loadPlugins(opts: PluginLoadOptions): PluginArtifacts;
7172
7172
  * | `name` / `version` / `epochVersion` / `author` | **epoch 自己** —— 装不装得上、叫什么 |
7173
7173
  * | `displayName` / `category` / `icon` / `visibility` / `changelog` | **上传那一屏的预填**,epoch 一个字不读 |
7174
7174
  * | `description` / `homepage` / `keywords` | 两边都读 |
7175
+ * | `dependencies` | **epoch 自己** —— 装它时要一起装谁 |
7175
7176
  *
7176
7177
  * 第二族 2026-09-15 加的,判据在它们自己那几格上。要紧的一条:它们是**预填**,
7177
7178
  * 用户在那一屏上改得动,改了之后发出去的是改后的 —— 包里这一份原地不动。
@@ -7261,6 +7262,7 @@ declare const ManifestSchema: z.ZodObject<{
7261
7262
  epochVersion: z.ZodOptional<z.ZodString>;
7262
7263
  homepage: z.ZodOptional<z.ZodString>;
7263
7264
  keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
7265
+ dependencies: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodString>>>;
7264
7266
  displayName: z.ZodOptional<z.ZodString>;
7265
7267
  category: z.ZodOptional<z.ZodString>;
7266
7268
  icon: z.ZodOptional<z.ZodString>;
@@ -7937,6 +7939,17 @@ interface InstallOptions {
7937
7939
  pluginsDir: string;
7938
7940
  /** `pluginsStatePath(homeDir)` */
7939
7941
  statePath: string;
7942
+ /**
7943
+ * `marketplacesPath(homeDir)` —— 依赖解析**第二段**读的那一份(2026-09-30)。
7944
+ *
7945
+ * ⚠️ **和 {@link statePath} 是两个文件**(`plugins.json` / `marketplaces.json`),
7946
+ * 而这个区别第一次写必然踩:拿 `statePath` 去当市场目录读,`parseLenient` 会把
7947
+ * 一份插件记录当成一份没市场的目录 —— 于是症状是「市场里明明有它,
7948
+ * 那一屏却说没有」(2026-09-30 在真 CLI 上撞到,e2e 抓出来的)。
7949
+ *
7950
+ * **不给 = 跳过那一段**:依赖解析还剩「已装」和「宿主」两段。
7951
+ */
7952
+ marketplacesStatePath?: string;
7940
7953
  /** 从市场装的话记下市场名 */
7941
7954
  marketplace?: string;
7942
7955
  /**
@@ -7991,6 +8004,27 @@ interface InstallOptions {
7991
8004
  ok: false;
7992
8005
  reason?: string;
7993
8006
  }>;
8007
+ /**
8008
+ * 把一个**依赖的名字**解析成一个安装来源(2026-09-30)。
8009
+ *
8010
+ * 宿主这一档存在的理由和 {@link InstallOptions.fetchFromHost} **逐字同**:有些包
8011
+ * 的地址只有宿主手上有(它的 `plugin_key` 和 sha256 躺在它自己那份目录里),
8012
+ * 而这一层看不见那份目录 —— 引擎只知道「清单里写了 `b-kit`」这一个字符串。
8013
+ *
8014
+ * 引擎自己会先把**能自己答的那一段**试完(已加的市场目录,见
8015
+ * `findMarketplaceEntryByName`),答不上来才问这一格。所以:
8016
+ *
8017
+ * - **不给它 = `host:` 那批依赖解不出来**,其余照旧;
8018
+ * - 它回一个 `installPlugin` 认得的 source 字符串(`host:…` / `github:…` /
8019
+ * 一条 https / 一条本地路径),回 `undefined` 就是「这个我也不知道在哪」;
8020
+ * - **回一个看不懂的字符串不算错**:那一条会以「解析出来的来源不合法」出现在
8021
+ * 预览里(判据在 {@link InstallDependency} 的 `unresolved` 那一格)。
8022
+ *
8023
+ * ⚠️ **它答不上来不拦安装** —— 处置是「照装 + 当着用户的面点名」,判据在
8024
+ * `resolveClosure` 上那段:一个依赖解不出来是**一句关于这台机器的话**,
8025
+ * 不该让用户连根插件都装不上。
8026
+ */
8027
+ resolveDependency?: (name: string) => Promise<string | undefined>;
7994
8028
  }
7995
8029
  /** 安装前预览(§2.8)。宿主拿它画那张「将安装什么」的表 */
7996
8030
  interface InstallPreview {
@@ -8020,6 +8054,60 @@ interface InstallPreview {
8020
8054
  current: string;
8021
8055
  reason: string;
8022
8056
  };
8057
+ /**
8058
+ * 清单里写了 `dependencies` 时才有这一格:**每一个依赖这次怎么处置**。
8059
+ *
8060
+ * 缺席 = 这个插件不依赖别人(存量那一批全部走这一支,预览一个字不变)。
8061
+ * 空数组**不会**出现 —— 一个都不依赖和一格都没有是同一件事。
8062
+ */
8063
+ dependencies?: InstallDependency[];
8064
+ }
8065
+ /**
8066
+ * 闭包里**一个依赖**的处置(2026-09-30)。
8067
+ *
8068
+ * 三档各答一个不同的问题,也是那一屏上三种不同的画法:
8069
+ *
8070
+ * | 档 | 说的是 | 那一屏上 |
8071
+ * | ------------ | ----------------------------------- | --------------- |
8072
+ * | `installed` | 已经在场了,这次不动它 | 一行灰字 |
8073
+ * | `plan` | 这次一起装(`manifest` / `inventory` 有值) | 完整的一段 |
8074
+ * | `unresolved` | 三条解析路都试过,解不出(`reason`)| 点名 + 照装 |
8075
+ *
8076
+ * ⚠️ **`unresolved` 不是失败**,这次安装照常进行 —— 判据在 `resolveClosure` 上。
8077
+ *
8078
+ * ⚠️ 这一格**不写版本范围**:`installed` 那一档只按名字判在场,不校验版本。
8079
+ * 判据在 `ManifestSchema.dependencies` 那一格的文档上(「只写名字」)。
8080
+ */
8081
+ interface InstallDependency {
8082
+ /** 清单里写的那个名字,**原样**(不合法也照留,见 manifest.ts 那一格) */
8083
+ name: string;
8084
+ status: 'installed' | 'plan' | 'unresolved';
8085
+ /**
8086
+ * 谁要的它:根的名字,或者闭包里上一层那个依赖的名字。
8087
+ *
8088
+ * ⚠️ **一个依赖只报一行**(同一个名字在多条路上被要时取**第一条**),所以这一格
8089
+ * 是「谁第一个把它拖进来的」,不是「谁都要它」—— 后者要一张图,而那一屏上
8090
+ * 一张图换不来任何动作。
8091
+ */
8092
+ requiredBy: string;
8093
+ /** `plan` 是解析出来的 source 原文;`unresolved` 时它是**试过的那一条**(可能没有) */
8094
+ source?: string;
8095
+ /** `unresolved` 的原因,给人看 */
8096
+ reason?: string;
8097
+ /** `plan` 专有:这个包自己的清单 */
8098
+ manifest?: PluginManifest;
8099
+ /** `plan` 专有:它会带来什么(那一屏照根那一份的画法画) */
8100
+ inventory?: PluginInventory;
8101
+ /**
8102
+ * `plan` 专有:它自己那份 `epochVersion` 和当前引擎不匹配 —— **装得上,但加载器
8103
+ * 会跳过它**。口径逐字同 {@link InstallPreview.versionUnmet}:它**不拒绝**这次
8104
+ * 安装,只是「你刚装进来的这个依赖,这个引擎加载不了」这件事得在那一屏上说清。
8105
+ */
8106
+ versionUnmet?: {
8107
+ required: string;
8108
+ current: string;
8109
+ reason: string;
8110
+ };
8023
8111
  }
8024
8112
  type InstallOutcome = {
8025
8113
  ok: true;
@@ -11578,7 +11666,9 @@ declare function explainSetting(key: string, base: BaseSlot, file?: FileSlots):
11578
11666
  * 3. ${ENV_VAR} 模板展开(递归,最多 10 层)
11579
11667
  * 3.5 SecretStore(系统钥匙串,装配层预取后注入 —— 见 `readProviderKeyEnv`)
11580
11668
  * 4. .env 文件(secrets)
11581
- * 5. process.env 直接覆盖(最高优先级)
11669
+ * 5. process.env 直接覆盖(最高优先级)—— `EPOCH_PROVIDER` / `EPOCH_BASE_URL`
11670
+ * 这两个例外:它们**读一次、落两次**(第 3.5~4 层取 secrets 的前后各一次),
11671
+ * 理由见 `readProviderOverride` / `applyProviderOverride`
11582
11672
  * 6. 损坏回退(last-known-good → 默认值)
11583
11673
  * 7. 损坏备份(config.yaml.corrupt.<ts>.bak)
11584
11674
  * 8. 缓存(mtime + size + env_snapshot)
@@ -11755,6 +11845,10 @@ declare const EpochConfigSchema: z.ZodObject<{
11755
11845
  groq: "groq";
11756
11846
  mistral: "mistral";
11757
11847
  moonshotai: "moonshotai";
11848
+ zhipu: "zhipu";
11849
+ dashscope: "dashscope";
11850
+ bytedance: "bytedance";
11851
+ qianfan: "qianfan";
11758
11852
  cohere: "cohere";
11759
11853
  xai: "xai";
11760
11854
  perplexity: "perplexity";
@@ -11818,6 +11912,10 @@ declare const EpochConfigSchema: z.ZodObject<{
11818
11912
  groq: "groq";
11819
11913
  mistral: "mistral";
11820
11914
  moonshotai: "moonshotai";
11915
+ zhipu: "zhipu";
11916
+ dashscope: "dashscope";
11917
+ bytedance: "bytedance";
11918
+ qianfan: "qianfan";
11821
11919
  cohere: "cohere";
11822
11920
  xai: "xai";
11823
11921
  perplexity: "perplexity";
@@ -14987,6 +15085,126 @@ declare class LastOpenSessions {
14987
15085
  private save;
14988
15086
  }
14989
15087
 
15088
+ /**
15089
+ * 界面外观偏好(主题 / 语言)的落盘(2026-09-29)。`~/.epoch/appearance.json`。
15090
+ *
15091
+ * ## 它治的是什么
15092
+ *
15093
+ * 在这之前 `epoch.theme` / `epoch.lang` **只**写在浏览器的 `localStorage` 里
15094
+ * ([web/src/prefs.ts](../../web/src/prefs.ts)),而 localStorage 按 origin 隔离。
15095
+ * 嵌入宿主按 [EMBEDDING.md §9](../../../docs/EMBEDDING.md) 的建议用 `port: 0` 时,
15096
+ * 每次启动都是一个新的 `http://127.0.0.1:<新端口>` —— 上次那份读不到。
15097
+ * 症状:设置里选了深色,关掉再开又回到「跟随系统」(升级必然重启一次,
15098
+ * 所以它在升级那里最显眼)。这份文件就是那条跨重启、跨 origin 的路。
15099
+ *
15100
+ * ## 为什么不是 `config.yaml` 里的 `display.*`
15101
+ *
15102
+ * 这一条是**逐条核对过**的,不是「JSON 更顺手」:
15103
+ *
15104
+ * 1. **`display.language` 的值域是 `LANGS`(`zh|en`),没有 `system`。**
15105
+ * 而外观那一格是三档(`system | zh | en`)—— 写一个 `system` 进去会让
15106
+ * `parseLenient` 产出一条 `config-invalid`,然后**整份配置退默认值**
15107
+ * (provider 和 apiKey 一起没)。本机实测:`display.language: dracula` /
15108
+ * `system` / 空串三种写法都是 `apiKey: ""` + `model: gpt-4o-mini`。
15109
+ * 2. **写盘那条链刻意没有「删键」**([core/config/write.ts](./config/write.ts) 文件头
15110
+ * 第三节 + protocol 的 `WireSettingsWriteRequest`)。而「选回跟随系统」如果
15111
+ * 要复用 `display.language`,就只能靠删键 —— 因为「键不写」是它唯一表达得出
15112
+ * 「跟随系统」的形状。
15113
+ * 3. **那个形状本身也表达不了三档。** 宿主每次启动都带自己的初值(`ui`),
15114
+ * 而「键不写 = 跟随系统」和「键不写 = 用户从没选过」逐字同形 ⇒ 用户显式选的
15115
+ * 「跟随系统」会被宿主初值盖掉 —— 正是这一轮要修的那个症状换个方向。
15116
+ * 4. 它还会顺手改掉 CLI / TUI 的语言(`cli/src/language.ts` 读的就是
15117
+ * `display.language`)。那在 EMBEDDING 里是**刻意分开的两件事**
15118
+ * (「界面初值」vs「进程语言」,两张表都在 §9),不该被一个界面偏好偷偷合并。
15119
+ *
15120
+ * 所以这份偏好住自己那一格:三档**原样**存(`system` 也在盘上,因此「没选过」
15121
+ * 和「选了跟随系统」是两件事),值域自由,一个字节都不碰 `config.yaml`。
15122
+ *
15123
+ * ## 值域谁说了算:**这一层不说**
15124
+ *
15125
+ * 这个类只做「把两条字符串存下来、读回去」,不判字面值。判定在两处,而且都在
15126
+ * 消费侧:
15127
+ *
15128
+ * - **写入口**:`POST /api/appearance` 用 server `bind.ts` 的两个 guard
15129
+ * (`isUiThemePref` / `isUiLangPref`)挡 —— 那正是宿主初值走的那一道关,
15130
+ * 两处合一处就不会出现「宿主给的认得出、盘上存回来的认不出」。
15131
+ * - **消费侧**:第一方界面那段内联脚本对 query 的坏值策略本来就是
15132
+ * 「认不出来当没给」(`index.html` 里的 `allowed`)。
15133
+ *
15134
+ * 所以手改出来的 `"theme": "dracula"` 是一个**惰性**的坏值:它读得出来、
15135
+ * 用不上、也不报错,逐字同 `prefs.ts` 的 `readPref` 那条
15136
+ * 「认不出来的值 = 当没设,不写回、不清理」。在这一层再抄一份值域,
15137
+ * 只会多一个「四份字面量」的走散点。
15138
+ *
15139
+ * ## 三条照抄 {@link RecentWorkspaces} / {@link LastOpenSessions}(同一类东西)
15140
+ *
15141
+ * 1. **本机文件,不是服务**(方案 42 §三那条范围闸门)。
15142
+ * 2. **写失败不抛。** 记不下来的代价是下次启动回到默认外观 —— 它不该把
15143
+ * 「切主题」这个主路径顶掉(判据同上,那一份是「切会话」)。
15144
+ * 3. **原子写 + 0o600**:那是这台机器上这个人挑了哪个主题,不是组内共享的东西。
15145
+ * 写到一半崩溃只会留下一个 `.tmp`,而不是半个 JSON。
15146
+ *
15147
+ * ⚠️ **只为真的 I/O 失败出声**(结构问题一律当「还没选过」,静静吞掉)——
15148
+ * 判据逐字同 `LastOpenSessions` 的文件头末节:一份读不出来的偏好和一份
15149
+ * 「他还没选过」在界面上长得一模一样,为它在每次启动时印一行黄字,
15150
+ * 只会教人忽略诊断。
15151
+ */
15152
+
15153
+ /**
15154
+ * 盘上那一份偏好。
15155
+ *
15156
+ * **两个键都缺席 = 用户从没选过**(宿主给的初值这时才生效);写了一个字面值
15157
+ * (包括 `'system'`)就是用户自己选过的那一档,此后宿主给的初值不再覆盖它。
15158
+ * 这一条是整份文件存在的理由,判据在文件头。
15159
+ *
15160
+ * ⚠️ 类型是 `string` 而不是那三档的联合,理由见文件头「值域谁说了算」——
15161
+ * 这一层不做值域判断,于是它也不该在类型上装作自己做过。
15162
+ */
15163
+ interface StoredAppearance {
15164
+ /** 主题偏好(`system | light | dark`)。缺席 = 没选过 */
15165
+ theme?: string;
15166
+ /** 语言偏好(`system | zh | en`)。缺席 = 没选过 */
15167
+ lang?: string;
15168
+ }
15169
+ declare class AppearanceStore {
15170
+ private readonly filePath;
15171
+ private prefs;
15172
+ /**
15173
+ * 读取时真的发生了 I/O 失败(文件在、但读不动)。空数组 = 读取正常。
15174
+ *
15175
+ * ⚠️ **结构问题不进这里**,判据在文件头最后一段。每一项是一个还没渲染的闭包
15176
+ * (理由逐字同 `RecentWorkspaces` 的文件头末节:它要进启动诊断,而诊断得能按
15177
+ * 这一次请求的语言重放一遍,在装配期渲染成字符串等于把进程语言钉死在里面)。
15178
+ */
15179
+ readonly loadErrors: LocalizedDetail[];
15180
+ /** 写入失败的原因。见文件头第 2 条 —— 写不进去不抛,但也不装作写进去了 */
15181
+ readonly writeErrors: LocalizedDetail[];
15182
+ constructor(filePath?: string);
15183
+ /** 盘上现在那一份。返回副本 —— 调用方改它不该改到存储 */
15184
+ get(): StoredAppearance;
15185
+ /**
15186
+ * 写一次。**只覆盖 `patch` 里真的给了的那几格**,其余原样留着。
15187
+ *
15188
+ * 空串和 `undefined` 一个待遇(当没给):这个文件里那两个键的语义是
15189
+ * 「用户选过哪一档」,而空串不是任何一档 —— 写一个空的 `theme` 下去,
15190
+ * 下一次读出来要么当没选过(对),要么变成一个要另写一条判据的第四种状态。
15191
+ *
15192
+ * **值没变就不写盘**:界面切一次主题报一次,而 React 那边同一件事可能报两遍
15193
+ * (同 `LastOpenSessions.remember` 那条理由)。
15194
+ */
15195
+ set(patch: StoredAppearance): void;
15196
+ private load;
15197
+ /** JSON → 偏好。认不出来的一律当没选过,一个字都不说(判据在文件头末段) */
15198
+ private adopt;
15199
+ /**
15200
+ * 原子写入:先写同目录的临时文件再 rename。判据逐字同 `RecentWorkspaces.save()`。
15201
+ *
15202
+ * 权限 0o600:这份文件说的是这个人挑了深色还是浅色、界面说中文还是英文 ——
15203
+ * 它一个秘密都没有,但它也没有任何理由让同机的别人读。
15204
+ */
15205
+ private save;
15206
+ }
15207
+
14990
15208
  /**
14991
15209
  * Policy Engine 类型定义 — 简单策略规则。
14992
15210
  */
@@ -20477,4 +20695,4 @@ declare function resolveCodeModeWorker(baseDir: string, exists?: typeof existsSy
20477
20695
  */
20478
20696
  declare function codeModeWorkerPath(): string | undefined;
20479
20697
 
20480
- export { 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, type AppendMessageInput, ApprovalCache, type ApprovalDecision, type ApprovalScope, 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 ImportMessage, type ImportNode, type ImportPartsResult, type ImportSessionInput, type ImportSessionMeta, type ImportSessionResult, type ImportSkipReason, ImportTrustStore, type InstallOptions, type InstallOutcome, type InstallPreview, 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, MemoryManager, type MemoryNotice, 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_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 PluginArtifacts, type PluginAuthor, PluginAuthorSchema, type PluginCommandDir, type PluginCounts, 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_CREATE_TOOL, SKILL_EDIT_TOOL, 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 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 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, 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, 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, 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 };
20698
+ export { 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 ApprovalScope, 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 ImportMessage, type ImportNode, type ImportPartsResult, type ImportSessionInput, type ImportSessionMeta, type ImportSessionResult, type ImportSkipReason, ImportTrustStore, type InstallDependency, type InstallOptions, type InstallOutcome, type InstallPreview, 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, MemoryManager, type MemoryNotice, 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_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 PluginArtifacts, type PluginAuthor, PluginAuthorSchema, type PluginCommandDir, type PluginCounts, 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_CREATE_TOOL, SKILL_EDIT_TOOL, 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 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, 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, 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, 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 };