dsh-prime-memory 0.22.2 → 0.24.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 (98) hide show
  1. package/CHANGELOG.en.md +401 -0
  2. package/CHANGELOG.ja.md +401 -0
  3. package/CHANGELOG.ko.md +401 -0
  4. package/CHANGELOG.md +100 -0
  5. package/dist/client.js +1180 -845
  6. package/dist/config.d.ts +128 -1341
  7. package/dist/config.js +80 -4
  8. package/dist/conflict-service.d.ts +4 -0
  9. package/dist/conflict-service.js +6 -1
  10. package/dist/contract.d.ts +196 -0
  11. package/dist/domain-gate.d.ts +11 -0
  12. package/dist/domain-gate.js +15 -0
  13. package/dist/hooks/obsolete-notice.d.ts +26 -0
  14. package/dist/hooks/obsolete-notice.js +64 -0
  15. package/dist/hooks/recall.d.ts +39 -0
  16. package/dist/hooks/recall.js +110 -30
  17. package/dist/index.d.ts +1 -1127
  18. package/dist/index.js +30 -2
  19. package/dist/memory-types.d.ts +69 -0
  20. package/dist/memory-types.js +165 -0
  21. package/dist/memport/format.d.ts +6 -1
  22. package/dist/memport/format.js +42 -2
  23. package/dist/pipeline/l1.d.ts +44 -2
  24. package/dist/pipeline/l1.js +163 -9
  25. package/dist/pipeline/md-sync.d.ts +65 -0
  26. package/dist/pipeline/md-sync.js +456 -0
  27. package/dist/pipeline/ruminate.d.ts +43 -1
  28. package/dist/pipeline/ruminate.js +100 -0
  29. package/dist/pipeline/runner.d.ts +10 -0
  30. package/dist/pipeline/runner.js +7 -1
  31. package/dist/pipeline/workspace-relink.d.ts +60 -0
  32. package/dist/pipeline/workspace-relink.js +73 -0
  33. package/dist/projection/recall.d.ts +51 -13
  34. package/dist/projection/recall.js +47 -12
  35. package/dist/prompts/examples.d.ts +73 -0
  36. package/dist/prompts/examples.js +178 -0
  37. package/dist/prompts/l1-dedup.d.ts +9 -3
  38. package/dist/prompts/l1-dedup.js +34 -13
  39. package/dist/prompts/l1-extraction.d.ts +5 -3
  40. package/dist/prompts/l1-extraction.js +49 -4
  41. package/dist/settings.d.ts +8 -0
  42. package/dist/settings.js +12 -1
  43. package/dist/stats.d.ts +12 -0
  44. package/dist/stats.js +327 -15
  45. package/dist/store/embedding-source.d.ts +8 -0
  46. package/dist/store/embedding-source.js +39 -2
  47. package/dist/store/file-versions.d.ts +2 -0
  48. package/dist/store/file-versions.js +2 -0
  49. package/dist/store/graph-store.d.ts +14 -0
  50. package/dist/store/graph-store.js +35 -0
  51. package/dist/store/l1-snapshot.d.ts +26 -1
  52. package/dist/store/l1-snapshot.js +53 -8
  53. package/dist/store/l1.d.ts +75 -3
  54. package/dist/store/l1.js +124 -3
  55. package/dist/store/memory-md-archive.d.ts +84 -0
  56. package/dist/store/memory-md-archive.js +155 -0
  57. package/dist/store/memory-md-disable.d.ts +23 -0
  58. package/dist/store/memory-md-disable.js +106 -0
  59. package/dist/store/memory-md-export.d.ts +50 -0
  60. package/dist/store/memory-md-export.js +200 -0
  61. package/dist/store/memory-md-ledger.d.ts +94 -0
  62. package/dist/store/memory-md-ledger.js +243 -0
  63. package/dist/store/memory-md-orphan.d.ts +27 -0
  64. package/dist/store/memory-md-orphan.js +153 -0
  65. package/dist/store/memory-md-parse.d.ts +35 -0
  66. package/dist/store/memory-md-parse.js +85 -0
  67. package/dist/store/memory-md-skeleton.d.ts +18 -0
  68. package/dist/store/memory-md-skeleton.js +61 -0
  69. package/dist/store/memory-md-types.d.ts +174 -0
  70. package/dist/store/memory-md-types.js +10 -0
  71. package/dist/store/memory-md.d.ts +108 -0
  72. package/dist/store/memory-md.js +219 -0
  73. package/dist/store/obsolete-notices.d.ts +39 -0
  74. package/dist/store/obsolete-notices.js +153 -0
  75. package/dist/store/recall-feedback.d.ts +75 -0
  76. package/dist/store/recall-feedback.js +213 -0
  77. package/dist/store/recall-usage.d.ts +11 -0
  78. package/dist/store/recall-usage.js +29 -0
  79. package/dist/store/session-recalled.d.ts +38 -3
  80. package/dist/store/session-recalled.js +156 -9
  81. package/dist/store/sqlite.d.ts +66 -0
  82. package/dist/store/sqlite.js +233 -15
  83. package/dist/store/supersede.d.ts +1 -1
  84. package/dist/store/supersede.js +1 -1
  85. package/dist/tools/index.d.ts +4 -0
  86. package/dist/tools/index.js +23 -6
  87. package/dist/types.d.ts +24 -7
  88. package/dist/types.js +10 -2
  89. package/dist/util/maturity.d.ts +20 -3
  90. package/dist/util/maturity.js +18 -1
  91. package/dist/util/md-name.d.ts +129 -0
  92. package/dist/util/md-name.js +366 -0
  93. package/dist/util/md-normalize.d.ts +23 -0
  94. package/dist/util/md-normalize.js +131 -0
  95. package/dist/workspace-route.d.ts +22 -0
  96. package/dist/workspace-route.js +66 -0
  97. package/dsh.plugin.json +1 -1
  98. package/package.json +6 -5
package/dist/config.d.ts CHANGED
@@ -1,13 +1,18 @@
1
1
  /**
2
- * 插件配置:Schemastery schema + 类型。
2
+ * volatile 引用的本地结构声明——故意不从 cordis 输 `Volatile<T>`。
3
3
  *
4
- * 默认数据目录:$DSH_HOME/memory(用官方 dshHomePath 解析,DSH_HOME 缺省 ~/.dsh)。
5
- * 键名/默认值/取值范围是部署面契约(patch.yml 按"整行替换,不深合并"覆盖),不可更名。
4
+ * 那个类型别名内部引用了 cosmokit 的私有名,拿它做导出成员的标注会让 d.ts 直接报
5
+ * TS2742 “inferred type cannot be named”(实测:往 devDeps 加 cosmokit 也不消错,
6
+ * 因为引用路径是 `.pnpm/@deepseek-ai+cosmokit@x` 这种私有目录)——整包 `npm run build`
7
+ * 卡住,而 build 是 `tsc && build-client && copy-client`,tsc 一红就掐断前端产物。
8
+ * 本插件只用 `.get()`,结构上兼容宿主给的真 `Volatile<T>`。
6
9
  */
7
- import Schema from '@deepseek-ai/schemastery';
8
- import type { Volatile } from '@deepseek-ai/cordis';
10
+ export interface VolatileRef<T> {
11
+ get(): T;
12
+ }
9
13
  import type { LayerRouteKey, MemoryLiveSettings, StaticFallbackEntry } from './contract.js';
10
14
  import type { ExtractMode, ScopeMode } from './types.js';
15
+ import type { WorkspaceRoute } from './workspace-route.js';
11
16
  /**
12
17
  * 蒸馏思考档位全词汇表(唯一事实源):'' = 自动(模型默认档 → high),
13
18
  * 其余为各适配器通用档位词汇(deepseek 认 'off',OpenAI 系是 'none')。
@@ -125,14 +130,118 @@ export interface MemoryConfig {
125
130
  /** 单次回填墙钟预算(ms),超时剩留待再次触发。 */
126
131
  timeBudgetMs: number;
127
132
  };
133
+ /**
134
+ * 内容路由(workspace 归属):按「这条记忆**谈到**哪个项目」给记录补 `workspace_id`。
135
+ *
136
+ * 名字沿革:本面曾叫 `workspaceHints`。那是“hints 时代”的遗产——当时归属靠来源链
137
+ * (session_id / 锚点 sessionId / 会话树路径反解)**猜**,证据弱所以只当提示。实测来源链三处
138
+ * 断裂(见下),主判据已换成内容路由:路由表是**权威裁决**而不是提示,它直接决定写盘落点。
139
+ * 硬改名不留兼容别名:`workspaceHints` 从未随任何发版外发,现网 profile 里不存在该键的已存值,
140
+ * 加别名等于养第二个事实源。
141
+ *
142
+ * 为什么不用「产生它的会话」定位:实测 `l1_records.session_id` 恒为 `default`(废字段),
143
+ * 锚点里的 sessionId 能在磁盘会话树里找到目录的只占 7.3%(树会被清理/隔离),
144
+ * 而 L1 时间戳与 L0 两个时间列零命中——来路链不可依赖。内容路由不受锚点缺失影响。
145
+ *
146
+ * 默认**开**。开启后**只写 `workspace_id` 列、不改 `scope`**:可见性仍由 `scope` 决定
147
+ * (`resolveRecordScope` 规则③ 的零漂移不破),所以对检索可见面零行为变化;
148
+ * 但它**决定投射文件的落点根**(`targetFor` 按 workspace 优先生成 `<ws>/.agents/memory/`),
149
+ * 这一点不像“提示”那样无害——也是当初叫 hints 名不副实的地方。
150
+ */
151
+ workspaceSource: {
152
+ enabled: boolean;
153
+ /** 路由表:按数组序取首个命中——dsh 侧在前,故双项目并存时归 dsh(用户口径)。 */
154
+ routes: WorkspaceRoute[];
155
+ /** 存量 re-link 的单次护栏。 */
156
+ maxRecords: number;
157
+ /** 存量 re-link 的墙钟预算(ms)。 */
158
+ timeBudgetMs: number;
159
+ };
160
+ /**
161
+ * md 投射与外部存档(N1/N8/N9):**投射默认开**(用户定:“这个应该常开”)——
162
+ * 整个 md 权威计划的前提就是“文件为内容权威 + 库为索引”,默认关就等于默认不用。
163
+ * 会写盘:无 `workspace_id` 的落 `<dataDir>/memories/`,有归属的落 `<ws>/.agents/memory/`。
164
+ * 但**反向同步(会写库的那一面)仍默认关**:风险不对称,且它需要先有一份导出跳过的基线。
165
+ */
166
+ memExport: {
167
+ enabled: boolean;
168
+ /** 投射根目录;空 = `<dataDir>/memories`。形状不合则回退默认并 warn,**不抛错**(投射是旁路,不能弄挂记忆)。 */
169
+ root: string;
170
+ /** 单次导出的**动作数**护栏(照 wing-backfill / workspace-relink 口径):只数碰了磁盘的
171
+ * 条(写入 / 补账 / 失败)。“未变且已记账”的不吃配额,否则第二次点击在同一批前 N 条上
172
+ * 打转、`remaining` 永不递减;扫描总量由 `timeBudgetMs` 兜底。 */
173
+ maxRecords: number;
174
+ /** 单次导出的墙钟预算(ms)。 */
175
+ timeBudgetMs: number;
176
+ };
177
+ /**
178
+ * P2 反向同步(md 文件 → 索引):整面**默认关**。它与 `memExport` 分开开关是因为
179
+ * **风险不对称**——导出只写文件,同步会写库。裁决全靠账本:账本为空(从没导出过)
180
+ * 时同步什么都判不出来,所以必须先开 `memExport` 再开本项。
181
+ */
182
+ mdSync: {
183
+ enabled: boolean;
184
+ /** 单轮扫描文件数护栏。 */
185
+ maxFiles: number;
186
+ /** 单轮墙钟预算(ms)。 */
187
+ timeBudgetMs: number;
188
+ };
128
189
  /** 使用场景(G1):抽取时产出“何时该浮现”数组落 metadata.dsh_usage_scenario。默认关,关时抽取产物逐字不变。 */
129
190
  usageScenario: {
130
191
  enabled: boolean;
131
192
  };
132
- /** 类型叙述模板(G2):抽取时按 7 类型各自的“前因后果”骨架写 content。默认关,关时 prompt 逐字不变。 */
193
+ /**
194
+ * 类型叙述模板(G2):抽取时按 7 类型各自的“前因后果”骨架写 content。
195
+ *
196
+ * 默认从 false 改 **true**(用户定的可用性判据:“没有前因后果、写不全就不算可用”)。
197
+ * 单开它还不够:`tools/ab-distill.mjs` 实测只给定义不给示例时,真会话 23 条产出
198
+ * **骨架齐备 0 条**——定义本身不被遵守,所以必须与 `naming.fewShot` 同开。
199
+ */
133
200
  narrativeTemplates: {
134
201
  enabled: boolean;
135
202
  };
203
+ /**
204
+ * 名称蒸馏(pm-name-distill Phase 3):让抽取当场就产出 `title`(与 content 分离定义),
205
+ * 而不是事后拿正则从正文剪。
206
+ *
207
+ * 两个开关都默认开,但**两者不对称**:关着时 prompt 与产物逐字不变(零漂移仍由
208
+ * `tests/prompt-fewshot.test.ts` 的 `off === 常量` 断言钉住),而默认值本身是实测定的:
209
+ * `tools/ab-distill.mjs` 在真会话上量到 无示例 0.000 vs 有示例 0.703 骨架齐备率
210
+ * (title 出现率 0.565 → 0.730,整批解析失败 1/8 → 0/8)。
211
+ * 注意示例段只对**抽取任务**有收益:`tools/ab-naming.mjs` 量到把它塞进存量改名
212
+ * 那条命名提示反而 −0.113(模型开始漏答条目)。同一堆例子放错任务就是负收益。
213
+ */
214
+ naming: {
215
+ /** 开=抽取与去重 merge 都要求产出 title,并把它当文件身份名候选入库(过不了闸仍交给起名器)。 */
216
+ enabled: boolean;
217
+ /**
218
+ * 开=在系统提示尾部追加标准格式示例段。每轮蒸馏都付它(约 1.2–1.4k 字),
219
+ * 默认开是因为实测显示“只给定义”的结构齐备率为 0;不想要结构时可以单关这一项。
220
+ */
221
+ fewShot: boolean;
222
+ };
223
+ /**
224
+ * 召回相关度反馈(人在召回卡上打 -1..5)。
225
+ *
226
+ * 默认**开**,与 usageScenario/narrativeTemplates 的默认关不同——那两个改的是
227
+ * 已发布的蒸馏产物,本项只新增一个写端点与一张卡;而播报只在用户显式打 -1
228
+ * 之后才发生(动作即授权),不开这个开关不会凭空改变任何现有行为。
229
+ */
230
+ recallFeedback: {
231
+ enabled: boolean;
232
+ /** -1 之后下一轮向模型声明“这条已退场”(一次性注入,取走即离队)。 */
233
+ announce: boolean;
234
+ /**
235
+ * 打分参与召回排序:4/5 上浮、0/1/2 下沉(纯重排,**score 不改写**,未打分保持原序)。
236
+ * 这是 0/1/2 的常规出口:不相关就排到注不上,而不是从库里消失。
237
+ */
238
+ affectRank: boolean;
239
+ /**
240
+ * 硬门:最近一笔是 0 的记录**不再被注入**(不退场,再点 1..5 即回来)。
241
+ * 默认关——低分已由上面的沉底表达;要“误点不致命”的口径就别开。
242
+ */
243
+ excludeZero: boolean;
244
+ };
136
245
  recall: {
137
246
  enabled: boolean;
138
247
  /** 每步自动召回注入的 L1 条数。 */
@@ -262,7 +371,7 @@ export interface MemoryConfig {
262
371
  * 原为 settings 服务 `dsh-memory` 命名空间,见 src/settings.ts 头注)。
263
372
  * 读取走 `config.live.get()`(每次操作取一次),写入走设置页或
264
373
  * settings-set RPC(经 `fiber.update` 持久化到 profile patch)。 */
265
- live: Volatile<MemoryLiveSettings>;
374
+ live: VolatileRef<MemoryLiveSettings>;
266
375
  }
267
376
  /**
268
377
  * 运行时开关节(0.1.7 声明式设置面的唯一事实源)。
@@ -274,1340 +383,18 @@ export interface MemoryConfig {
274
383
  *
275
384
  * ⚠️ 不得在节内再标 `.volatile()`(volatile 嵌套 volatile 会被宿主拒绝)。
276
385
  */
277
- export declare function liveSettingsSchema(): Schema<NoInfer<Schemastery.ObjectS<NoInfer<{
278
- enabled: Schema<boolean, boolean, "defined">;
279
- capture: Schema<boolean, boolean, "defined">;
280
- distill: Schema<boolean, boolean, "defined">;
281
- recall: Schema<boolean, boolean, "defined">;
282
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
283
- distillProvider: Schema<string, string, "defined">;
284
- distillModel: Schema<string, string, "defined">;
285
- distillChain: Schema<({
286
- provider?: string | null | undefined;
287
- model?: string | null | undefined;
288
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
289
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
290
- provider: Schema<string, string, "defined">;
291
- model: Schema<string, string, "defined">;
292
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
293
- }>>[], "defined">;
294
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
295
- l1: Schema<({
296
- provider?: string | null | undefined;
297
- model?: string | null | undefined;
298
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
299
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
300
- provider: Schema<string, string, "defined">;
301
- model: Schema<string, string, "defined">;
302
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
303
- }>>[], "defined">;
304
- l2: Schema<({
305
- provider?: string | null | undefined;
306
- model?: string | null | undefined;
307
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
308
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
309
- provider: Schema<string, string, "defined">;
310
- model: Schema<string, string, "defined">;
311
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
312
- }>>[], "defined">;
313
- l3: Schema<({
314
- provider?: string | null | undefined;
315
- model?: string | null | undefined;
316
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
317
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
318
- provider: Schema<string, string, "defined">;
319
- model: Schema<string, string, "defined">;
320
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
321
- }>>[], "defined">;
322
- }>>, Schemastery.ObjectT<NoInfer<{
323
- l1: Schema<({
324
- provider?: string | null | undefined;
325
- model?: string | null | undefined;
326
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
327
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
328
- provider: Schema<string, string, "defined">;
329
- model: Schema<string, string, "defined">;
330
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
331
- }>>[], "defined">;
332
- l2: Schema<({
333
- provider?: string | null | undefined;
334
- model?: string | null | undefined;
335
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
336
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
337
- provider: Schema<string, string, "defined">;
338
- model: Schema<string, string, "defined">;
339
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
340
- }>>[], "defined">;
341
- l3: Schema<({
342
- provider?: string | null | undefined;
343
- model?: string | null | undefined;
344
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
345
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
346
- provider: Schema<string, string, "defined">;
347
- model: Schema<string, string, "defined">;
348
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
349
- }>>[], "defined">;
350
- }>>, "defined">;
351
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
352
- extract: Schema<number, number, "defined">;
353
- dedup: Schema<number, number, "defined">;
354
- l2: Schema<number, number, "defined">;
355
- l3: Schema<number, number, "defined">;
356
- graph: Schema<number, number, "defined">;
357
- }>>, Schemastery.ObjectT<NoInfer<{
358
- extract: Schema<number, number, "defined">;
359
- dedup: Schema<number, number, "defined">;
360
- l2: Schema<number, number, "defined">;
361
- l3: Schema<number, number, "defined">;
362
- graph: Schema<number, number, "defined">;
363
- }>>, "defined">;
364
- distillMaxInputChars: Schema<number, number, "defined">;
365
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
366
- directBaseURL: Schema<string, string, "defined">;
367
- directApiKey: Schema<string, string, "defined">;
368
- embedRemoteBaseURL: Schema<string, string, "defined">;
369
- embedRemoteApiKey: Schema<string, string, "defined">;
370
- embedRemoteModel: Schema<string, string, "defined">;
371
- embedRemoteDimensions: Schema<number, number, "defined">;
372
- memoryMutate: Schema<boolean, boolean, "defined">;
373
- conflictFreeze: Schema<boolean, boolean, "defined">;
374
- skillsEnabled: Schema<boolean, boolean, "defined">;
375
- toolRoom: Schema<boolean, boolean, "defined">;
376
- toolGraph: Schema<boolean, boolean, "defined">;
377
- toolRuminate: Schema<boolean, boolean, "defined">;
378
- toolConflict: Schema<boolean, boolean, "defined">;
379
- toolMutate: Schema<boolean, boolean, "defined">;
380
- }>>>, NoInfer<Schemastery.ObjectT<NoInfer<{
381
- enabled: Schema<boolean, boolean, "defined">;
382
- capture: Schema<boolean, boolean, "defined">;
383
- distill: Schema<boolean, boolean, "defined">;
384
- recall: Schema<boolean, boolean, "defined">;
385
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
386
- distillProvider: Schema<string, string, "defined">;
387
- distillModel: Schema<string, string, "defined">;
388
- distillChain: Schema<({
389
- provider?: string | null | undefined;
390
- model?: string | null | undefined;
391
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
392
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
393
- provider: Schema<string, string, "defined">;
394
- model: Schema<string, string, "defined">;
395
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
396
- }>>[], "defined">;
397
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
398
- l1: Schema<({
399
- provider?: string | null | undefined;
400
- model?: string | null | undefined;
401
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
402
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
403
- provider: Schema<string, string, "defined">;
404
- model: Schema<string, string, "defined">;
405
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
406
- }>>[], "defined">;
407
- l2: Schema<({
408
- provider?: string | null | undefined;
409
- model?: string | null | undefined;
410
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
411
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
412
- provider: Schema<string, string, "defined">;
413
- model: Schema<string, string, "defined">;
414
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
415
- }>>[], "defined">;
416
- l3: Schema<({
417
- provider?: string | null | undefined;
418
- model?: string | null | undefined;
419
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
420
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
421
- provider: Schema<string, string, "defined">;
422
- model: Schema<string, string, "defined">;
423
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
424
- }>>[], "defined">;
425
- }>>, Schemastery.ObjectT<NoInfer<{
426
- l1: Schema<({
427
- provider?: string | null | undefined;
428
- model?: string | null | undefined;
429
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
430
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
431
- provider: Schema<string, string, "defined">;
432
- model: Schema<string, string, "defined">;
433
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
434
- }>>[], "defined">;
435
- l2: Schema<({
436
- provider?: string | null | undefined;
437
- model?: string | null | undefined;
438
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
439
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
440
- provider: Schema<string, string, "defined">;
441
- model: Schema<string, string, "defined">;
442
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
443
- }>>[], "defined">;
444
- l3: Schema<({
445
- provider?: string | null | undefined;
446
- model?: string | null | undefined;
447
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
448
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
449
- provider: Schema<string, string, "defined">;
450
- model: Schema<string, string, "defined">;
451
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
452
- }>>[], "defined">;
453
- }>>, "defined">;
454
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
455
- extract: Schema<number, number, "defined">;
456
- dedup: Schema<number, number, "defined">;
457
- l2: Schema<number, number, "defined">;
458
- l3: Schema<number, number, "defined">;
459
- graph: Schema<number, number, "defined">;
460
- }>>, Schemastery.ObjectT<NoInfer<{
461
- extract: Schema<number, number, "defined">;
462
- dedup: Schema<number, number, "defined">;
463
- l2: Schema<number, number, "defined">;
464
- l3: Schema<number, number, "defined">;
465
- graph: Schema<number, number, "defined">;
466
- }>>, "defined">;
467
- distillMaxInputChars: Schema<number, number, "defined">;
468
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
469
- directBaseURL: Schema<string, string, "defined">;
470
- directApiKey: Schema<string, string, "defined">;
471
- embedRemoteBaseURL: Schema<string, string, "defined">;
472
- embedRemoteApiKey: Schema<string, string, "defined">;
473
- embedRemoteModel: Schema<string, string, "defined">;
474
- embedRemoteDimensions: Schema<number, number, "defined">;
475
- memoryMutate: Schema<boolean, boolean, "defined">;
476
- conflictFreeze: Schema<boolean, boolean, "defined">;
477
- skillsEnabled: Schema<boolean, boolean, "defined">;
478
- toolRoom: Schema<boolean, boolean, "defined">;
479
- toolGraph: Schema<boolean, boolean, "defined">;
480
- toolRuminate: Schema<boolean, boolean, "defined">;
481
- toolConflict: Schema<boolean, boolean, "defined">;
482
- toolMutate: Schema<boolean, boolean, "defined">;
483
- }>>>, "volatile">;
484
- export declare const memorySchema: Schema<Schemastery.ObjectS<NoInfer<{
485
- dataDir: Schema<string, string, "defined">;
486
- family: Schema<"chat" | "work" | "auto", "chat" | "work" | "auto", "defined">;
487
- scope: Schema<string, string, "defined">;
488
- capture: Schema<Schemastery.ObjectS<NoInfer<{
489
- enabled: Schema<boolean, boolean, "defined">;
490
- stripCodeBlocks: Schema<boolean, boolean, "defined">;
491
- maxMessageChars: Schema<number, number, "defined">;
492
- redactSecrets: Schema<boolean, boolean, "defined">;
493
- }>>, Schemastery.ObjectT<NoInfer<{
494
- enabled: Schema<boolean, boolean, "defined">;
495
- stripCodeBlocks: Schema<boolean, boolean, "defined">;
496
- maxMessageChars: Schema<number, number, "defined">;
497
- redactSecrets: Schema<boolean, boolean, "defined">;
498
- }>>, "plain">;
499
- trace: Schema<Schemastery.ObjectS<NoInfer<{
500
- enabled: Schema<boolean, boolean, "defined">;
501
- retentionDays: Schema<number, number, "defined">;
502
- captureContent: Schema<boolean, boolean, "defined">;
503
- }>>, Schemastery.ObjectT<NoInfer<{
504
- enabled: Schema<boolean, boolean, "defined">;
505
- retentionDays: Schema<number, number, "defined">;
506
- captureContent: Schema<boolean, boolean, "defined">;
507
- }>>, "plain">;
508
- extract: Schema<Schemastery.ObjectS<NoInfer<{
509
- enabled: Schema<boolean, boolean, "defined">;
510
- minMessages: Schema<number, number, "defined">;
511
- idleSeconds: Schema<number, number, "defined">;
512
- backgroundMessages: Schema<number, number, "defined">;
513
- candidatePool: Schema<number, number, "defined">;
514
- }>>, Schemastery.ObjectT<NoInfer<{
515
- enabled: Schema<boolean, boolean, "defined">;
516
- minMessages: Schema<number, number, "defined">;
517
- idleSeconds: Schema<number, number, "defined">;
518
- backgroundMessages: Schema<number, number, "defined">;
519
- candidatePool: Schema<number, number, "defined">;
520
- }>>, "plain">;
521
- l2: Schema<Schemastery.ObjectS<NoInfer<{
522
- enabled: Schema<boolean, boolean, "defined">;
523
- minNewMemories: Schema<number, number, "defined">;
524
- maxScenes: Schema<number, number, "defined">;
525
- sceneContextLimit: Schema<number, number, "defined">;
526
- }>>, Schemastery.ObjectT<NoInfer<{
527
- enabled: Schema<boolean, boolean, "defined">;
528
- minNewMemories: Schema<number, number, "defined">;
529
- maxScenes: Schema<number, number, "defined">;
530
- sceneContextLimit: Schema<number, number, "defined">;
531
- }>>, "plain">;
532
- l3: Schema<Schemastery.ObjectS<NoInfer<{
533
- enabled: Schema<boolean, boolean, "defined">;
534
- interval: Schema<number, number, "defined">;
535
- }>>, Schemastery.ObjectT<NoInfer<{
536
- enabled: Schema<boolean, boolean, "defined">;
537
- interval: Schema<number, number, "defined">;
538
- }>>, "plain">;
539
- graph: Schema<Schemastery.ObjectS<NoInfer<{
540
- enabled: Schema<boolean, boolean, "defined">;
541
- }>>, Schemastery.ObjectT<NoInfer<{
542
- enabled: Schema<boolean, boolean, "defined">;
543
- }>>, "plain">;
544
- conflictFreeze: Schema<Schemastery.ObjectS<NoInfer<{
545
- enabled: Schema<boolean, boolean, "defined">;
546
- maxPending: Schema<number, number, "defined">;
547
- timeoutDays: Schema<number, number, "defined">;
548
- }>>, Schemastery.ObjectT<NoInfer<{
549
- enabled: Schema<boolean, boolean, "defined">;
550
- maxPending: Schema<number, number, "defined">;
551
- timeoutDays: Schema<number, number, "defined">;
552
- }>>, "plain">;
553
- memport: Schema<Schemastery.ObjectS<NoInfer<{
554
- enabled: Schema<boolean, boolean, "defined">;
555
- scanMaxRecords: Schema<number, number, "defined">;
556
- }>>, Schemastery.ObjectT<NoInfer<{
557
- enabled: Schema<boolean, boolean, "defined">;
558
- scanMaxRecords: Schema<number, number, "defined">;
559
- }>>, "plain">;
560
- skills: Schema<Schemastery.ObjectS<NoInfer<{
561
- enabled: Schema<boolean, boolean, "defined">;
562
- inject: Schema<boolean, boolean, "defined">;
563
- allowPromote: Schema<boolean, boolean, "defined">;
564
- minSessions: Schema<number, number, "defined">;
565
- minEvidence: Schema<number, number, "defined">;
566
- maxPerTurnBytes: Schema<number, number, "defined">;
567
- maxSkillCatalogBytes: Schema<number, number, "defined">;
568
- excerptChars: Schema<number, number, "defined">;
569
- idleArchiveDays: Schema<number, number, "defined">;
570
- }>>, Schemastery.ObjectT<NoInfer<{
571
- enabled: Schema<boolean, boolean, "defined">;
572
- inject: Schema<boolean, boolean, "defined">;
573
- allowPromote: Schema<boolean, boolean, "defined">;
574
- minSessions: Schema<number, number, "defined">;
575
- minEvidence: Schema<number, number, "defined">;
576
- maxPerTurnBytes: Schema<number, number, "defined">;
577
- maxSkillCatalogBytes: Schema<number, number, "defined">;
578
- excerptChars: Schema<number, number, "defined">;
579
- idleArchiveDays: Schema<number, number, "defined">;
580
- }>>, "plain">;
581
- backfill: Schema<Schemastery.ObjectS<NoInfer<{
582
- maxRecords: Schema<number, number, "defined">;
583
- timeBudgetMs: Schema<number, number, "defined">;
584
- }>>, Schemastery.ObjectT<NoInfer<{
585
- maxRecords: Schema<number, number, "defined">;
586
- timeBudgetMs: Schema<number, number, "defined">;
587
- }>>, "plain">;
588
- usageScenario: Schema<Schemastery.ObjectS<NoInfer<{
589
- enabled: Schema<boolean, boolean, "defined">;
590
- }>>, Schemastery.ObjectT<NoInfer<{
591
- enabled: Schema<boolean, boolean, "defined">;
592
- }>>, "plain">;
593
- narrativeTemplates: Schema<Schemastery.ObjectS<NoInfer<{
594
- enabled: Schema<boolean, boolean, "defined">;
595
- }>>, Schemastery.ObjectT<NoInfer<{
596
- enabled: Schema<boolean, boolean, "defined">;
597
- }>>, "plain">;
598
- recall: Schema<Schemastery.ObjectS<NoInfer<{
599
- enabled: Schema<boolean, boolean, "defined">;
600
- maxResults: Schema<number, number, "defined">;
601
- maxCharsPerMemory: Schema<number, number, "defined">;
602
- maxTotalRecallChars: Schema<number, number, "defined">;
603
- timeoutMs: Schema<number, number, "defined">;
604
- includePersona: Schema<boolean, boolean, "defined">;
605
- includeSceneNav: Schema<boolean, boolean, "defined">;
606
- strategy: Schema<"hybrid" | "keyword" | "embedding", "hybrid" | "keyword" | "embedding", "defined">;
607
- scoreThreshold: Schema<number, number, "defined">;
608
- decayHalfLifeDays: Schema<number, number, "defined">;
609
- scopeFence: Schema<Schemastery.ObjectS<NoInfer<{
610
- enabled: Schema<boolean, boolean, "defined">;
611
- crossRepoMultiplier: Schema<number, number, "defined">;
612
- }>>, Schemastery.ObjectT<NoInfer<{
613
- enabled: Schema<boolean, boolean, "defined">;
614
- crossRepoMultiplier: Schema<number, number, "defined">;
615
- }>>, "plain">;
616
- }>>, Schemastery.ObjectT<NoInfer<{
617
- enabled: Schema<boolean, boolean, "defined">;
618
- maxResults: Schema<number, number, "defined">;
619
- maxCharsPerMemory: Schema<number, number, "defined">;
620
- maxTotalRecallChars: Schema<number, number, "defined">;
621
- timeoutMs: Schema<number, number, "defined">;
622
- includePersona: Schema<boolean, boolean, "defined">;
623
- includeSceneNav: Schema<boolean, boolean, "defined">;
624
- strategy: Schema<"hybrid" | "keyword" | "embedding", "hybrid" | "keyword" | "embedding", "defined">;
625
- scoreThreshold: Schema<number, number, "defined">;
626
- decayHalfLifeDays: Schema<number, number, "defined">;
627
- scopeFence: Schema<Schemastery.ObjectS<NoInfer<{
628
- enabled: Schema<boolean, boolean, "defined">;
629
- crossRepoMultiplier: Schema<number, number, "defined">;
630
- }>>, Schemastery.ObjectT<NoInfer<{
631
- enabled: Schema<boolean, boolean, "defined">;
632
- crossRepoMultiplier: Schema<number, number, "defined">;
633
- }>>, "plain">;
634
- }>>, "plain">;
635
- embedding: Schema<Schemastery.ObjectS<NoInfer<{
636
- enabled: Schema<boolean, boolean, "defined">;
637
- baseUrl: Schema<string, string, "defined">;
638
- apiKey: Schema<string, string, "defined">;
639
- model: Schema<string, string, "defined">;
640
- dimensions: Schema<number, number, "defined">;
641
- maxInputChars: Schema<number, number, "defined">;
642
- timeoutMs: Schema<number, number, "defined">;
643
- allowLocalModels: Schema<boolean, boolean, "defined">;
644
- mirror: Schema<string, string, "defined">;
645
- proxy: Schema<string, string, "defined">;
646
- }>>, Schemastery.ObjectT<NoInfer<{
647
- enabled: Schema<boolean, boolean, "defined">;
648
- baseUrl: Schema<string, string, "defined">;
649
- apiKey: Schema<string, string, "defined">;
650
- model: Schema<string, string, "defined">;
651
- dimensions: Schema<number, number, "defined">;
652
- maxInputChars: Schema<number, number, "defined">;
653
- timeoutMs: Schema<number, number, "defined">;
654
- allowLocalModels: Schema<boolean, boolean, "defined">;
655
- mirror: Schema<string, string, "defined">;
656
- proxy: Schema<string, string, "defined">;
657
- }>>, "plain">;
658
- llm: Schema<Schemastery.ObjectS<NoInfer<{
659
- provider: Schema<string, string, "defined">;
660
- model: Schema<string, string, "defined">;
661
- mode: Schema<"host" | "direct", "host" | "direct", "defined">;
662
- baseURL: Schema<string, string, "defined">;
663
- apiKey: Schema<string, string, "defined">;
664
- fallbacks: Schema<({
665
- provider?: string | null | undefined;
666
- model?: string | null | undefined;
667
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
668
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
669
- provider: Schema<string, string, "defined">;
670
- model: Schema<string, string, "defined">;
671
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
672
- }>>[], "defined">;
673
- layerRoutes: Schema<Schemastery.ObjectS<NoInfer<{
674
- l1: Schema<({
675
- provider?: string | null | undefined;
676
- model?: string | null | undefined;
677
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
678
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
679
- provider: Schema<string, string, "defined">;
680
- model: Schema<string, string, "defined">;
681
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
682
- }>>[], "defined">;
683
- l2: Schema<({
684
- provider?: string | null | undefined;
685
- model?: string | null | undefined;
686
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
687
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
688
- provider: Schema<string, string, "defined">;
689
- model: Schema<string, string, "defined">;
690
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
691
- }>>[], "defined">;
692
- l3: Schema<({
693
- provider?: string | null | undefined;
694
- model?: string | null | undefined;
695
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
696
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
697
- provider: Schema<string, string, "defined">;
698
- model: Schema<string, string, "defined">;
699
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
700
- }>>[], "defined">;
701
- }>>, Schemastery.ObjectT<NoInfer<{
702
- l1: Schema<({
703
- provider?: string | null | undefined;
704
- model?: string | null | undefined;
705
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
706
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
707
- provider: Schema<string, string, "defined">;
708
- model: Schema<string, string, "defined">;
709
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
710
- }>>[], "defined">;
711
- l2: Schema<({
712
- provider?: string | null | undefined;
713
- model?: string | null | undefined;
714
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
715
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
716
- provider: Schema<string, string, "defined">;
717
- model: Schema<string, string, "defined">;
718
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
719
- }>>[], "defined">;
720
- l3: Schema<({
721
- provider?: string | null | undefined;
722
- model?: string | null | undefined;
723
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
724
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
725
- provider: Schema<string, string, "defined">;
726
- model: Schema<string, string, "defined">;
727
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
728
- }>>[], "defined">;
729
- }>>, "defined">;
730
- maxTokens: Schema<number, number, "defined">;
731
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
732
- temperature: Schema<number, number, "defined">;
733
- maxInputChars: Schema<number, number, "defined">;
734
- timeoutMs: Schema<number, number, "defined">;
735
- }>>, Schemastery.ObjectT<NoInfer<{
736
- provider: Schema<string, string, "defined">;
737
- model: Schema<string, string, "defined">;
738
- mode: Schema<"host" | "direct", "host" | "direct", "defined">;
739
- baseURL: Schema<string, string, "defined">;
740
- apiKey: Schema<string, string, "defined">;
741
- fallbacks: Schema<({
742
- provider?: string | null | undefined;
743
- model?: string | null | undefined;
744
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
745
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
746
- provider: Schema<string, string, "defined">;
747
- model: Schema<string, string, "defined">;
748
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
749
- }>>[], "defined">;
750
- layerRoutes: Schema<Schemastery.ObjectS<NoInfer<{
751
- l1: Schema<({
752
- provider?: string | null | undefined;
753
- model?: string | null | undefined;
754
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
755
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
756
- provider: Schema<string, string, "defined">;
757
- model: Schema<string, string, "defined">;
758
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
759
- }>>[], "defined">;
760
- l2: Schema<({
761
- provider?: string | null | undefined;
762
- model?: string | null | undefined;
763
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
764
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
765
- provider: Schema<string, string, "defined">;
766
- model: Schema<string, string, "defined">;
767
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
768
- }>>[], "defined">;
769
- l3: Schema<({
770
- provider?: string | null | undefined;
771
- model?: string | null | undefined;
772
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
773
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
774
- provider: Schema<string, string, "defined">;
775
- model: Schema<string, string, "defined">;
776
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
777
- }>>[], "defined">;
778
- }>>, Schemastery.ObjectT<NoInfer<{
779
- l1: Schema<({
780
- provider?: string | null | undefined;
781
- model?: string | null | undefined;
782
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
783
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
784
- provider: Schema<string, string, "defined">;
785
- model: Schema<string, string, "defined">;
786
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
787
- }>>[], "defined">;
788
- l2: Schema<({
789
- provider?: string | null | undefined;
790
- model?: string | null | undefined;
791
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
792
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
793
- provider: Schema<string, string, "defined">;
794
- model: Schema<string, string, "defined">;
795
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
796
- }>>[], "defined">;
797
- l3: Schema<({
798
- provider?: string | null | undefined;
799
- model?: string | null | undefined;
800
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
801
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
802
- provider: Schema<string, string, "defined">;
803
- model: Schema<string, string, "defined">;
804
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
805
- }>>[], "defined">;
806
- }>>, "defined">;
807
- maxTokens: Schema<number, number, "defined">;
808
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
809
- temperature: Schema<number, number, "defined">;
810
- maxInputChars: Schema<number, number, "defined">;
811
- timeoutMs: Schema<number, number, "defined">;
812
- }>>, "plain">;
813
- hall: Schema<Schemastery.ObjectS<NoInfer<{
814
- enabled: Schema<string[], string[], "defined">;
815
- }>>, Schemastery.ObjectT<NoInfer<{
816
- enabled: Schema<string[], string[], "defined">;
817
- }>>, "plain">;
818
- tokenCost: Schema<Schemastery.ObjectS<NoInfer<{
819
- retentionDays: Schema<number, number, "defined">;
820
- }>>, Schemastery.ObjectT<NoInfer<{
821
- retentionDays: Schema<number, number, "defined">;
822
- }>>, "plain">;
823
- slots: Schema<Schemastery.ObjectS<NoInfer<{
824
- enabled: Schema<boolean, boolean, "defined">;
825
- inject: Schema<boolean, boolean, "defined">;
826
- maxSlots: Schema<number, number, "defined">;
827
- maxAlwaysOnBytes: Schema<number, number, "defined">;
828
- maxBodyChars: Schema<number, number, "defined">;
829
- migrateLegacy: Schema<boolean, boolean, "defined">;
830
- }>>, Schemastery.ObjectT<NoInfer<{
831
- enabled: Schema<boolean, boolean, "defined">;
832
- inject: Schema<boolean, boolean, "defined">;
833
- maxSlots: Schema<number, number, "defined">;
834
- maxAlwaysOnBytes: Schema<number, number, "defined">;
835
- maxBodyChars: Schema<number, number, "defined">;
836
- migrateLegacy: Schema<boolean, boolean, "defined">;
837
- }>>, "plain">;
838
- tools: Schema<boolean, boolean, "defined">;
839
- benchControl: Schema<boolean, boolean, "defined">;
840
- live: Schema<NoInfer<Schemastery.ObjectS<NoInfer<{
841
- enabled: Schema<boolean, boolean, "defined">;
842
- capture: Schema<boolean, boolean, "defined">;
843
- distill: Schema<boolean, boolean, "defined">;
844
- recall: Schema<boolean, boolean, "defined">;
845
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
846
- distillProvider: Schema<string, string, "defined">;
847
- distillModel: Schema<string, string, "defined">;
848
- distillChain: Schema<({
849
- provider?: string | null | undefined;
850
- model?: string | null | undefined;
851
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
852
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
853
- provider: Schema<string, string, "defined">;
854
- model: Schema<string, string, "defined">;
855
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
856
- }>>[], "defined">;
857
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
858
- l1: Schema<({
859
- provider?: string | null | undefined;
860
- model?: string | null | undefined;
861
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
862
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
863
- provider: Schema<string, string, "defined">;
864
- model: Schema<string, string, "defined">;
865
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
866
- }>>[], "defined">;
867
- l2: Schema<({
868
- provider?: string | null | undefined;
869
- model?: string | null | undefined;
870
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
871
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
872
- provider: Schema<string, string, "defined">;
873
- model: Schema<string, string, "defined">;
874
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
875
- }>>[], "defined">;
876
- l3: Schema<({
877
- provider?: string | null | undefined;
878
- model?: string | null | undefined;
879
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
880
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
881
- provider: Schema<string, string, "defined">;
882
- model: Schema<string, string, "defined">;
883
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
884
- }>>[], "defined">;
885
- }>>, Schemastery.ObjectT<NoInfer<{
886
- l1: Schema<({
887
- provider?: string | null | undefined;
888
- model?: string | null | undefined;
889
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
890
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
891
- provider: Schema<string, string, "defined">;
892
- model: Schema<string, string, "defined">;
893
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
894
- }>>[], "defined">;
895
- l2: Schema<({
896
- provider?: string | null | undefined;
897
- model?: string | null | undefined;
898
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
899
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
900
- provider: Schema<string, string, "defined">;
901
- model: Schema<string, string, "defined">;
902
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
903
- }>>[], "defined">;
904
- l3: Schema<({
905
- provider?: string | null | undefined;
906
- model?: string | null | undefined;
907
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
908
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
909
- provider: Schema<string, string, "defined">;
910
- model: Schema<string, string, "defined">;
911
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
912
- }>>[], "defined">;
913
- }>>, "defined">;
914
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
915
- extract: Schema<number, number, "defined">;
916
- dedup: Schema<number, number, "defined">;
917
- l2: Schema<number, number, "defined">;
918
- l3: Schema<number, number, "defined">;
919
- graph: Schema<number, number, "defined">;
920
- }>>, Schemastery.ObjectT<NoInfer<{
921
- extract: Schema<number, number, "defined">;
922
- dedup: Schema<number, number, "defined">;
923
- l2: Schema<number, number, "defined">;
924
- l3: Schema<number, number, "defined">;
925
- graph: Schema<number, number, "defined">;
926
- }>>, "defined">;
927
- distillMaxInputChars: Schema<number, number, "defined">;
928
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
929
- directBaseURL: Schema<string, string, "defined">;
930
- directApiKey: Schema<string, string, "defined">;
931
- embedRemoteBaseURL: Schema<string, string, "defined">;
932
- embedRemoteApiKey: Schema<string, string, "defined">;
933
- embedRemoteModel: Schema<string, string, "defined">;
934
- embedRemoteDimensions: Schema<number, number, "defined">;
935
- memoryMutate: Schema<boolean, boolean, "defined">;
936
- conflictFreeze: Schema<boolean, boolean, "defined">;
937
- skillsEnabled: Schema<boolean, boolean, "defined">;
938
- toolRoom: Schema<boolean, boolean, "defined">;
939
- toolGraph: Schema<boolean, boolean, "defined">;
940
- toolRuminate: Schema<boolean, boolean, "defined">;
941
- toolConflict: Schema<boolean, boolean, "defined">;
942
- toolMutate: Schema<boolean, boolean, "defined">;
943
- }>>>, NoInfer<Schemastery.ObjectT<NoInfer<{
944
- enabled: Schema<boolean, boolean, "defined">;
945
- capture: Schema<boolean, boolean, "defined">;
946
- distill: Schema<boolean, boolean, "defined">;
947
- recall: Schema<boolean, boolean, "defined">;
948
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
949
- distillProvider: Schema<string, string, "defined">;
950
- distillModel: Schema<string, string, "defined">;
951
- distillChain: Schema<({
952
- provider?: string | null | undefined;
953
- model?: string | null | undefined;
954
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
955
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
956
- provider: Schema<string, string, "defined">;
957
- model: Schema<string, string, "defined">;
958
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
959
- }>>[], "defined">;
960
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
961
- l1: Schema<({
962
- provider?: string | null | undefined;
963
- model?: string | null | undefined;
964
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
965
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
966
- provider: Schema<string, string, "defined">;
967
- model: Schema<string, string, "defined">;
968
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
969
- }>>[], "defined">;
970
- l2: Schema<({
971
- provider?: string | null | undefined;
972
- model?: string | null | undefined;
973
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
974
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
975
- provider: Schema<string, string, "defined">;
976
- model: Schema<string, string, "defined">;
977
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
978
- }>>[], "defined">;
979
- l3: Schema<({
980
- provider?: string | null | undefined;
981
- model?: string | null | undefined;
982
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
983
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
984
- provider: Schema<string, string, "defined">;
985
- model: Schema<string, string, "defined">;
986
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
987
- }>>[], "defined">;
988
- }>>, Schemastery.ObjectT<NoInfer<{
989
- l1: Schema<({
990
- provider?: string | null | undefined;
991
- model?: string | null | undefined;
992
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
993
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
994
- provider: Schema<string, string, "defined">;
995
- model: Schema<string, string, "defined">;
996
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
997
- }>>[], "defined">;
998
- l2: Schema<({
999
- provider?: string | null | undefined;
1000
- model?: string | null | undefined;
1001
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1002
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1003
- provider: Schema<string, string, "defined">;
1004
- model: Schema<string, string, "defined">;
1005
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1006
- }>>[], "defined">;
1007
- l3: Schema<({
1008
- provider?: string | null | undefined;
1009
- model?: string | null | undefined;
1010
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1011
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1012
- provider: Schema<string, string, "defined">;
1013
- model: Schema<string, string, "defined">;
1014
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1015
- }>>[], "defined">;
1016
- }>>, "defined">;
1017
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
1018
- extract: Schema<number, number, "defined">;
1019
- dedup: Schema<number, number, "defined">;
1020
- l2: Schema<number, number, "defined">;
1021
- l3: Schema<number, number, "defined">;
1022
- graph: Schema<number, number, "defined">;
1023
- }>>, Schemastery.ObjectT<NoInfer<{
1024
- extract: Schema<number, number, "defined">;
1025
- dedup: Schema<number, number, "defined">;
1026
- l2: Schema<number, number, "defined">;
1027
- l3: Schema<number, number, "defined">;
1028
- graph: Schema<number, number, "defined">;
1029
- }>>, "defined">;
1030
- distillMaxInputChars: Schema<number, number, "defined">;
1031
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
1032
- directBaseURL: Schema<string, string, "defined">;
1033
- directApiKey: Schema<string, string, "defined">;
1034
- embedRemoteBaseURL: Schema<string, string, "defined">;
1035
- embedRemoteApiKey: Schema<string, string, "defined">;
1036
- embedRemoteModel: Schema<string, string, "defined">;
1037
- embedRemoteDimensions: Schema<number, number, "defined">;
1038
- memoryMutate: Schema<boolean, boolean, "defined">;
1039
- conflictFreeze: Schema<boolean, boolean, "defined">;
1040
- skillsEnabled: Schema<boolean, boolean, "defined">;
1041
- toolRoom: Schema<boolean, boolean, "defined">;
1042
- toolGraph: Schema<boolean, boolean, "defined">;
1043
- toolRuminate: Schema<boolean, boolean, "defined">;
1044
- toolConflict: Schema<boolean, boolean, "defined">;
1045
- toolMutate: Schema<boolean, boolean, "defined">;
1046
- }>>>, "volatile">;
1047
- }>>, Schemastery.ObjectT<NoInfer<{
1048
- dataDir: Schema<string, string, "defined">;
1049
- family: Schema<"chat" | "work" | "auto", "chat" | "work" | "auto", "defined">;
1050
- scope: Schema<string, string, "defined">;
1051
- capture: Schema<Schemastery.ObjectS<NoInfer<{
1052
- enabled: Schema<boolean, boolean, "defined">;
1053
- stripCodeBlocks: Schema<boolean, boolean, "defined">;
1054
- maxMessageChars: Schema<number, number, "defined">;
1055
- redactSecrets: Schema<boolean, boolean, "defined">;
1056
- }>>, Schemastery.ObjectT<NoInfer<{
1057
- enabled: Schema<boolean, boolean, "defined">;
1058
- stripCodeBlocks: Schema<boolean, boolean, "defined">;
1059
- maxMessageChars: Schema<number, number, "defined">;
1060
- redactSecrets: Schema<boolean, boolean, "defined">;
1061
- }>>, "plain">;
1062
- trace: Schema<Schemastery.ObjectS<NoInfer<{
1063
- enabled: Schema<boolean, boolean, "defined">;
1064
- retentionDays: Schema<number, number, "defined">;
1065
- captureContent: Schema<boolean, boolean, "defined">;
1066
- }>>, Schemastery.ObjectT<NoInfer<{
1067
- enabled: Schema<boolean, boolean, "defined">;
1068
- retentionDays: Schema<number, number, "defined">;
1069
- captureContent: Schema<boolean, boolean, "defined">;
1070
- }>>, "plain">;
1071
- extract: Schema<Schemastery.ObjectS<NoInfer<{
1072
- enabled: Schema<boolean, boolean, "defined">;
1073
- minMessages: Schema<number, number, "defined">;
1074
- idleSeconds: Schema<number, number, "defined">;
1075
- backgroundMessages: Schema<number, number, "defined">;
1076
- candidatePool: Schema<number, number, "defined">;
1077
- }>>, Schemastery.ObjectT<NoInfer<{
1078
- enabled: Schema<boolean, boolean, "defined">;
1079
- minMessages: Schema<number, number, "defined">;
1080
- idleSeconds: Schema<number, number, "defined">;
1081
- backgroundMessages: Schema<number, number, "defined">;
1082
- candidatePool: Schema<number, number, "defined">;
1083
- }>>, "plain">;
1084
- l2: Schema<Schemastery.ObjectS<NoInfer<{
1085
- enabled: Schema<boolean, boolean, "defined">;
1086
- minNewMemories: Schema<number, number, "defined">;
1087
- maxScenes: Schema<number, number, "defined">;
1088
- sceneContextLimit: Schema<number, number, "defined">;
1089
- }>>, Schemastery.ObjectT<NoInfer<{
1090
- enabled: Schema<boolean, boolean, "defined">;
1091
- minNewMemories: Schema<number, number, "defined">;
1092
- maxScenes: Schema<number, number, "defined">;
1093
- sceneContextLimit: Schema<number, number, "defined">;
1094
- }>>, "plain">;
1095
- l3: Schema<Schemastery.ObjectS<NoInfer<{
1096
- enabled: Schema<boolean, boolean, "defined">;
1097
- interval: Schema<number, number, "defined">;
1098
- }>>, Schemastery.ObjectT<NoInfer<{
1099
- enabled: Schema<boolean, boolean, "defined">;
1100
- interval: Schema<number, number, "defined">;
1101
- }>>, "plain">;
1102
- graph: Schema<Schemastery.ObjectS<NoInfer<{
1103
- enabled: Schema<boolean, boolean, "defined">;
1104
- }>>, Schemastery.ObjectT<NoInfer<{
1105
- enabled: Schema<boolean, boolean, "defined">;
1106
- }>>, "plain">;
1107
- conflictFreeze: Schema<Schemastery.ObjectS<NoInfer<{
1108
- enabled: Schema<boolean, boolean, "defined">;
1109
- maxPending: Schema<number, number, "defined">;
1110
- timeoutDays: Schema<number, number, "defined">;
1111
- }>>, Schemastery.ObjectT<NoInfer<{
1112
- enabled: Schema<boolean, boolean, "defined">;
1113
- maxPending: Schema<number, number, "defined">;
1114
- timeoutDays: Schema<number, number, "defined">;
1115
- }>>, "plain">;
1116
- memport: Schema<Schemastery.ObjectS<NoInfer<{
1117
- enabled: Schema<boolean, boolean, "defined">;
1118
- scanMaxRecords: Schema<number, number, "defined">;
1119
- }>>, Schemastery.ObjectT<NoInfer<{
1120
- enabled: Schema<boolean, boolean, "defined">;
1121
- scanMaxRecords: Schema<number, number, "defined">;
1122
- }>>, "plain">;
1123
- skills: Schema<Schemastery.ObjectS<NoInfer<{
1124
- enabled: Schema<boolean, boolean, "defined">;
1125
- inject: Schema<boolean, boolean, "defined">;
1126
- allowPromote: Schema<boolean, boolean, "defined">;
1127
- minSessions: Schema<number, number, "defined">;
1128
- minEvidence: Schema<number, number, "defined">;
1129
- maxPerTurnBytes: Schema<number, number, "defined">;
1130
- maxSkillCatalogBytes: Schema<number, number, "defined">;
1131
- excerptChars: Schema<number, number, "defined">;
1132
- idleArchiveDays: Schema<number, number, "defined">;
1133
- }>>, Schemastery.ObjectT<NoInfer<{
1134
- enabled: Schema<boolean, boolean, "defined">;
1135
- inject: Schema<boolean, boolean, "defined">;
1136
- allowPromote: Schema<boolean, boolean, "defined">;
1137
- minSessions: Schema<number, number, "defined">;
1138
- minEvidence: Schema<number, number, "defined">;
1139
- maxPerTurnBytes: Schema<number, number, "defined">;
1140
- maxSkillCatalogBytes: Schema<number, number, "defined">;
1141
- excerptChars: Schema<number, number, "defined">;
1142
- idleArchiveDays: Schema<number, number, "defined">;
1143
- }>>, "plain">;
1144
- backfill: Schema<Schemastery.ObjectS<NoInfer<{
1145
- maxRecords: Schema<number, number, "defined">;
1146
- timeBudgetMs: Schema<number, number, "defined">;
1147
- }>>, Schemastery.ObjectT<NoInfer<{
1148
- maxRecords: Schema<number, number, "defined">;
1149
- timeBudgetMs: Schema<number, number, "defined">;
1150
- }>>, "plain">;
1151
- usageScenario: Schema<Schemastery.ObjectS<NoInfer<{
1152
- enabled: Schema<boolean, boolean, "defined">;
1153
- }>>, Schemastery.ObjectT<NoInfer<{
1154
- enabled: Schema<boolean, boolean, "defined">;
1155
- }>>, "plain">;
1156
- narrativeTemplates: Schema<Schemastery.ObjectS<NoInfer<{
1157
- enabled: Schema<boolean, boolean, "defined">;
1158
- }>>, Schemastery.ObjectT<NoInfer<{
1159
- enabled: Schema<boolean, boolean, "defined">;
1160
- }>>, "plain">;
1161
- recall: Schema<Schemastery.ObjectS<NoInfer<{
1162
- enabled: Schema<boolean, boolean, "defined">;
1163
- maxResults: Schema<number, number, "defined">;
1164
- maxCharsPerMemory: Schema<number, number, "defined">;
1165
- maxTotalRecallChars: Schema<number, number, "defined">;
1166
- timeoutMs: Schema<number, number, "defined">;
1167
- includePersona: Schema<boolean, boolean, "defined">;
1168
- includeSceneNav: Schema<boolean, boolean, "defined">;
1169
- strategy: Schema<"hybrid" | "keyword" | "embedding", "hybrid" | "keyword" | "embedding", "defined">;
1170
- scoreThreshold: Schema<number, number, "defined">;
1171
- decayHalfLifeDays: Schema<number, number, "defined">;
1172
- scopeFence: Schema<Schemastery.ObjectS<NoInfer<{
1173
- enabled: Schema<boolean, boolean, "defined">;
1174
- crossRepoMultiplier: Schema<number, number, "defined">;
1175
- }>>, Schemastery.ObjectT<NoInfer<{
1176
- enabled: Schema<boolean, boolean, "defined">;
1177
- crossRepoMultiplier: Schema<number, number, "defined">;
1178
- }>>, "plain">;
1179
- }>>, Schemastery.ObjectT<NoInfer<{
1180
- enabled: Schema<boolean, boolean, "defined">;
1181
- maxResults: Schema<number, number, "defined">;
1182
- maxCharsPerMemory: Schema<number, number, "defined">;
1183
- maxTotalRecallChars: Schema<number, number, "defined">;
1184
- timeoutMs: Schema<number, number, "defined">;
1185
- includePersona: Schema<boolean, boolean, "defined">;
1186
- includeSceneNav: Schema<boolean, boolean, "defined">;
1187
- strategy: Schema<"hybrid" | "keyword" | "embedding", "hybrid" | "keyword" | "embedding", "defined">;
1188
- scoreThreshold: Schema<number, number, "defined">;
1189
- decayHalfLifeDays: Schema<number, number, "defined">;
1190
- scopeFence: Schema<Schemastery.ObjectS<NoInfer<{
1191
- enabled: Schema<boolean, boolean, "defined">;
1192
- crossRepoMultiplier: Schema<number, number, "defined">;
1193
- }>>, Schemastery.ObjectT<NoInfer<{
1194
- enabled: Schema<boolean, boolean, "defined">;
1195
- crossRepoMultiplier: Schema<number, number, "defined">;
1196
- }>>, "plain">;
1197
- }>>, "plain">;
1198
- embedding: Schema<Schemastery.ObjectS<NoInfer<{
1199
- enabled: Schema<boolean, boolean, "defined">;
1200
- baseUrl: Schema<string, string, "defined">;
1201
- apiKey: Schema<string, string, "defined">;
1202
- model: Schema<string, string, "defined">;
1203
- dimensions: Schema<number, number, "defined">;
1204
- maxInputChars: Schema<number, number, "defined">;
1205
- timeoutMs: Schema<number, number, "defined">;
1206
- allowLocalModels: Schema<boolean, boolean, "defined">;
1207
- mirror: Schema<string, string, "defined">;
1208
- proxy: Schema<string, string, "defined">;
1209
- }>>, Schemastery.ObjectT<NoInfer<{
1210
- enabled: Schema<boolean, boolean, "defined">;
1211
- baseUrl: Schema<string, string, "defined">;
1212
- apiKey: Schema<string, string, "defined">;
1213
- model: Schema<string, string, "defined">;
1214
- dimensions: Schema<number, number, "defined">;
1215
- maxInputChars: Schema<number, number, "defined">;
1216
- timeoutMs: Schema<number, number, "defined">;
1217
- allowLocalModels: Schema<boolean, boolean, "defined">;
1218
- mirror: Schema<string, string, "defined">;
1219
- proxy: Schema<string, string, "defined">;
1220
- }>>, "plain">;
1221
- llm: Schema<Schemastery.ObjectS<NoInfer<{
1222
- provider: Schema<string, string, "defined">;
1223
- model: Schema<string, string, "defined">;
1224
- mode: Schema<"host" | "direct", "host" | "direct", "defined">;
1225
- baseURL: Schema<string, string, "defined">;
1226
- apiKey: Schema<string, string, "defined">;
1227
- fallbacks: Schema<({
1228
- provider?: string | null | undefined;
1229
- model?: string | null | undefined;
1230
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1231
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1232
- provider: Schema<string, string, "defined">;
1233
- model: Schema<string, string, "defined">;
1234
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1235
- }>>[], "defined">;
1236
- layerRoutes: Schema<Schemastery.ObjectS<NoInfer<{
1237
- l1: Schema<({
1238
- provider?: string | null | undefined;
1239
- model?: string | null | undefined;
1240
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1241
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1242
- provider: Schema<string, string, "defined">;
1243
- model: Schema<string, string, "defined">;
1244
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1245
- }>>[], "defined">;
1246
- l2: Schema<({
1247
- provider?: string | null | undefined;
1248
- model?: string | null | undefined;
1249
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1250
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1251
- provider: Schema<string, string, "defined">;
1252
- model: Schema<string, string, "defined">;
1253
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1254
- }>>[], "defined">;
1255
- l3: Schema<({
1256
- provider?: string | null | undefined;
1257
- model?: string | null | undefined;
1258
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1259
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1260
- provider: Schema<string, string, "defined">;
1261
- model: Schema<string, string, "defined">;
1262
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1263
- }>>[], "defined">;
1264
- }>>, Schemastery.ObjectT<NoInfer<{
1265
- l1: Schema<({
1266
- provider?: string | null | undefined;
1267
- model?: string | null | undefined;
1268
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1269
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1270
- provider: Schema<string, string, "defined">;
1271
- model: Schema<string, string, "defined">;
1272
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1273
- }>>[], "defined">;
1274
- l2: Schema<({
1275
- provider?: string | null | undefined;
1276
- model?: string | null | undefined;
1277
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1278
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1279
- provider: Schema<string, string, "defined">;
1280
- model: Schema<string, string, "defined">;
1281
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1282
- }>>[], "defined">;
1283
- l3: Schema<({
1284
- provider?: string | null | undefined;
1285
- model?: string | null | undefined;
1286
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1287
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1288
- provider: Schema<string, string, "defined">;
1289
- model: Schema<string, string, "defined">;
1290
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1291
- }>>[], "defined">;
1292
- }>>, "defined">;
1293
- maxTokens: Schema<number, number, "defined">;
1294
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1295
- temperature: Schema<number, number, "defined">;
1296
- maxInputChars: Schema<number, number, "defined">;
1297
- timeoutMs: Schema<number, number, "defined">;
1298
- }>>, Schemastery.ObjectT<NoInfer<{
1299
- provider: Schema<string, string, "defined">;
1300
- model: Schema<string, string, "defined">;
1301
- mode: Schema<"host" | "direct", "host" | "direct", "defined">;
1302
- baseURL: Schema<string, string, "defined">;
1303
- apiKey: Schema<string, string, "defined">;
1304
- fallbacks: Schema<({
1305
- provider?: string | null | undefined;
1306
- model?: string | null | undefined;
1307
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1308
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1309
- provider: Schema<string, string, "defined">;
1310
- model: Schema<string, string, "defined">;
1311
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1312
- }>>[], "defined">;
1313
- layerRoutes: Schema<Schemastery.ObjectS<NoInfer<{
1314
- l1: Schema<({
1315
- provider?: string | null | undefined;
1316
- model?: string | null | undefined;
1317
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1318
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1319
- provider: Schema<string, string, "defined">;
1320
- model: Schema<string, string, "defined">;
1321
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1322
- }>>[], "defined">;
1323
- l2: Schema<({
1324
- provider?: string | null | undefined;
1325
- model?: string | null | undefined;
1326
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1327
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1328
- provider: Schema<string, string, "defined">;
1329
- model: Schema<string, string, "defined">;
1330
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1331
- }>>[], "defined">;
1332
- l3: Schema<({
1333
- provider?: string | null | undefined;
1334
- model?: string | null | undefined;
1335
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1336
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1337
- provider: Schema<string, string, "defined">;
1338
- model: Schema<string, string, "defined">;
1339
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1340
- }>>[], "defined">;
1341
- }>>, Schemastery.ObjectT<NoInfer<{
1342
- l1: Schema<({
1343
- provider?: string | null | undefined;
1344
- model?: string | null | undefined;
1345
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1346
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1347
- provider: Schema<string, string, "defined">;
1348
- model: Schema<string, string, "defined">;
1349
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1350
- }>>[], "defined">;
1351
- l2: Schema<({
1352
- provider?: string | null | undefined;
1353
- model?: string | null | undefined;
1354
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1355
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1356
- provider: Schema<string, string, "defined">;
1357
- model: Schema<string, string, "defined">;
1358
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1359
- }>>[], "defined">;
1360
- l3: Schema<({
1361
- provider?: string | null | undefined;
1362
- model?: string | null | undefined;
1363
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1364
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1365
- provider: Schema<string, string, "defined">;
1366
- model: Schema<string, string, "defined">;
1367
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1368
- }>>[], "defined">;
1369
- }>>, "defined">;
1370
- maxTokens: Schema<number, number, "defined">;
1371
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1372
- temperature: Schema<number, number, "defined">;
1373
- maxInputChars: Schema<number, number, "defined">;
1374
- timeoutMs: Schema<number, number, "defined">;
1375
- }>>, "plain">;
1376
- hall: Schema<Schemastery.ObjectS<NoInfer<{
1377
- enabled: Schema<string[], string[], "defined">;
1378
- }>>, Schemastery.ObjectT<NoInfer<{
1379
- enabled: Schema<string[], string[], "defined">;
1380
- }>>, "plain">;
1381
- tokenCost: Schema<Schemastery.ObjectS<NoInfer<{
1382
- retentionDays: Schema<number, number, "defined">;
1383
- }>>, Schemastery.ObjectT<NoInfer<{
1384
- retentionDays: Schema<number, number, "defined">;
1385
- }>>, "plain">;
1386
- slots: Schema<Schemastery.ObjectS<NoInfer<{
1387
- enabled: Schema<boolean, boolean, "defined">;
1388
- inject: Schema<boolean, boolean, "defined">;
1389
- maxSlots: Schema<number, number, "defined">;
1390
- maxAlwaysOnBytes: Schema<number, number, "defined">;
1391
- maxBodyChars: Schema<number, number, "defined">;
1392
- migrateLegacy: Schema<boolean, boolean, "defined">;
1393
- }>>, Schemastery.ObjectT<NoInfer<{
1394
- enabled: Schema<boolean, boolean, "defined">;
1395
- inject: Schema<boolean, boolean, "defined">;
1396
- maxSlots: Schema<number, number, "defined">;
1397
- maxAlwaysOnBytes: Schema<number, number, "defined">;
1398
- maxBodyChars: Schema<number, number, "defined">;
1399
- migrateLegacy: Schema<boolean, boolean, "defined">;
1400
- }>>, "plain">;
1401
- tools: Schema<boolean, boolean, "defined">;
1402
- benchControl: Schema<boolean, boolean, "defined">;
1403
- live: Schema<NoInfer<Schemastery.ObjectS<NoInfer<{
1404
- enabled: Schema<boolean, boolean, "defined">;
1405
- capture: Schema<boolean, boolean, "defined">;
1406
- distill: Schema<boolean, boolean, "defined">;
1407
- recall: Schema<boolean, boolean, "defined">;
1408
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1409
- distillProvider: Schema<string, string, "defined">;
1410
- distillModel: Schema<string, string, "defined">;
1411
- distillChain: Schema<({
1412
- provider?: string | null | undefined;
1413
- model?: string | null | undefined;
1414
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1415
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1416
- provider: Schema<string, string, "defined">;
1417
- model: Schema<string, string, "defined">;
1418
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1419
- }>>[], "defined">;
1420
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
1421
- l1: Schema<({
1422
- provider?: string | null | undefined;
1423
- model?: string | null | undefined;
1424
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1425
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1426
- provider: Schema<string, string, "defined">;
1427
- model: Schema<string, string, "defined">;
1428
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1429
- }>>[], "defined">;
1430
- l2: Schema<({
1431
- provider?: string | null | undefined;
1432
- model?: string | null | undefined;
1433
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1434
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1435
- provider: Schema<string, string, "defined">;
1436
- model: Schema<string, string, "defined">;
1437
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1438
- }>>[], "defined">;
1439
- l3: Schema<({
1440
- provider?: string | null | undefined;
1441
- model?: string | null | undefined;
1442
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1443
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1444
- provider: Schema<string, string, "defined">;
1445
- model: Schema<string, string, "defined">;
1446
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1447
- }>>[], "defined">;
1448
- }>>, Schemastery.ObjectT<NoInfer<{
1449
- l1: Schema<({
1450
- provider?: string | null | undefined;
1451
- model?: string | null | undefined;
1452
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1453
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1454
- provider: Schema<string, string, "defined">;
1455
- model: Schema<string, string, "defined">;
1456
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1457
- }>>[], "defined">;
1458
- l2: Schema<({
1459
- provider?: string | null | undefined;
1460
- model?: string | null | undefined;
1461
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1462
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1463
- provider: Schema<string, string, "defined">;
1464
- model: Schema<string, string, "defined">;
1465
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1466
- }>>[], "defined">;
1467
- l3: Schema<({
1468
- provider?: string | null | undefined;
1469
- model?: string | null | undefined;
1470
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1471
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1472
- provider: Schema<string, string, "defined">;
1473
- model: Schema<string, string, "defined">;
1474
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1475
- }>>[], "defined">;
1476
- }>>, "defined">;
1477
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
1478
- extract: Schema<number, number, "defined">;
1479
- dedup: Schema<number, number, "defined">;
1480
- l2: Schema<number, number, "defined">;
1481
- l3: Schema<number, number, "defined">;
1482
- graph: Schema<number, number, "defined">;
1483
- }>>, Schemastery.ObjectT<NoInfer<{
1484
- extract: Schema<number, number, "defined">;
1485
- dedup: Schema<number, number, "defined">;
1486
- l2: Schema<number, number, "defined">;
1487
- l3: Schema<number, number, "defined">;
1488
- graph: Schema<number, number, "defined">;
1489
- }>>, "defined">;
1490
- distillMaxInputChars: Schema<number, number, "defined">;
1491
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
1492
- directBaseURL: Schema<string, string, "defined">;
1493
- directApiKey: Schema<string, string, "defined">;
1494
- embedRemoteBaseURL: Schema<string, string, "defined">;
1495
- embedRemoteApiKey: Schema<string, string, "defined">;
1496
- embedRemoteModel: Schema<string, string, "defined">;
1497
- embedRemoteDimensions: Schema<number, number, "defined">;
1498
- memoryMutate: Schema<boolean, boolean, "defined">;
1499
- conflictFreeze: Schema<boolean, boolean, "defined">;
1500
- skillsEnabled: Schema<boolean, boolean, "defined">;
1501
- toolRoom: Schema<boolean, boolean, "defined">;
1502
- toolGraph: Schema<boolean, boolean, "defined">;
1503
- toolRuminate: Schema<boolean, boolean, "defined">;
1504
- toolConflict: Schema<boolean, boolean, "defined">;
1505
- toolMutate: Schema<boolean, boolean, "defined">;
1506
- }>>>, NoInfer<Schemastery.ObjectT<NoInfer<{
1507
- enabled: Schema<boolean, boolean, "defined">;
1508
- capture: Schema<boolean, boolean, "defined">;
1509
- distill: Schema<boolean, boolean, "defined">;
1510
- recall: Schema<boolean, boolean, "defined">;
1511
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1512
- distillProvider: Schema<string, string, "defined">;
1513
- distillModel: Schema<string, string, "defined">;
1514
- distillChain: Schema<({
1515
- provider?: string | null | undefined;
1516
- model?: string | null | undefined;
1517
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1518
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1519
- provider: Schema<string, string, "defined">;
1520
- model: Schema<string, string, "defined">;
1521
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1522
- }>>[], "defined">;
1523
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
1524
- l1: Schema<({
1525
- provider?: string | null | undefined;
1526
- model?: string | null | undefined;
1527
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1528
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1529
- provider: Schema<string, string, "defined">;
1530
- model: Schema<string, string, "defined">;
1531
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1532
- }>>[], "defined">;
1533
- l2: Schema<({
1534
- provider?: string | null | undefined;
1535
- model?: string | null | undefined;
1536
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1537
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1538
- provider: Schema<string, string, "defined">;
1539
- model: Schema<string, string, "defined">;
1540
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1541
- }>>[], "defined">;
1542
- l3: Schema<({
1543
- provider?: string | null | undefined;
1544
- model?: string | null | undefined;
1545
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1546
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1547
- provider: Schema<string, string, "defined">;
1548
- model: Schema<string, string, "defined">;
1549
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1550
- }>>[], "defined">;
1551
- }>>, Schemastery.ObjectT<NoInfer<{
1552
- l1: Schema<({
1553
- provider?: string | null | undefined;
1554
- model?: string | null | undefined;
1555
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1556
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1557
- provider: Schema<string, string, "defined">;
1558
- model: Schema<string, string, "defined">;
1559
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1560
- }>>[], "defined">;
1561
- l2: Schema<({
1562
- provider?: string | null | undefined;
1563
- model?: string | null | undefined;
1564
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1565
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1566
- provider: Schema<string, string, "defined">;
1567
- model: Schema<string, string, "defined">;
1568
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1569
- }>>[], "defined">;
1570
- l3: Schema<({
1571
- provider?: string | null | undefined;
1572
- model?: string | null | undefined;
1573
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1574
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1575
- provider: Schema<string, string, "defined">;
1576
- model: Schema<string, string, "defined">;
1577
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1578
- }>>[], "defined">;
1579
- }>>, "defined">;
1580
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
1581
- extract: Schema<number, number, "defined">;
1582
- dedup: Schema<number, number, "defined">;
1583
- l2: Schema<number, number, "defined">;
1584
- l3: Schema<number, number, "defined">;
1585
- graph: Schema<number, number, "defined">;
1586
- }>>, Schemastery.ObjectT<NoInfer<{
1587
- extract: Schema<number, number, "defined">;
1588
- dedup: Schema<number, number, "defined">;
1589
- l2: Schema<number, number, "defined">;
1590
- l3: Schema<number, number, "defined">;
1591
- graph: Schema<number, number, "defined">;
1592
- }>>, "defined">;
1593
- distillMaxInputChars: Schema<number, number, "defined">;
1594
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
1595
- directBaseURL: Schema<string, string, "defined">;
1596
- directApiKey: Schema<string, string, "defined">;
1597
- embedRemoteBaseURL: Schema<string, string, "defined">;
1598
- embedRemoteApiKey: Schema<string, string, "defined">;
1599
- embedRemoteModel: Schema<string, string, "defined">;
1600
- embedRemoteDimensions: Schema<number, number, "defined">;
1601
- memoryMutate: Schema<boolean, boolean, "defined">;
1602
- conflictFreeze: Schema<boolean, boolean, "defined">;
1603
- skillsEnabled: Schema<boolean, boolean, "defined">;
1604
- toolRoom: Schema<boolean, boolean, "defined">;
1605
- toolGraph: Schema<boolean, boolean, "defined">;
1606
- toolRuminate: Schema<boolean, boolean, "defined">;
1607
- toolConflict: Schema<boolean, boolean, "defined">;
1608
- toolMutate: Schema<boolean, boolean, "defined">;
1609
- }>>>, "volatile">;
1610
- }>>, "plain">;
386
+ export declare function liveSettingsSchema(): VolatileRef<MemoryLiveSettings>;
387
+ /**
388
+ * 导出面形状:宿主按 Standard Schema 接口消费它,测试把它当函数调(取默认值解算结果)。
389
+ *
390
+ * 为何不靠推断:`memorySchema` 的 `live` 节经 `.volatile()` 会把 schemastery 的 Mode 推成
391
+ * 'volatile',而 `SchemaOutput<…,'volatile'> = Volatile<T>` 里的那个 `Volatile` 来自 cordis
392
+ * 私带的那份 cosmokit(只在 `.pnpm` 私有目录可寻址)⇒ 导出的 d.ts 无法命名该类型,tsc 报
393
+ * TS2742,`npm run build` 与 `npm pack` 整链失败(实测 HEAD 亦然,本包并非这次才红)。
394
+ * 显式标注成本包自己声明的形状,既保住「可调用 + 可挂属性」的实际用法,又让 d.ts 可移植。
395
+ */
396
+ export type ConfigSchema = ((value: unknown) => MemoryConfig) & Record<string, unknown>;
397
+ export declare const memorySchema: ConfigSchema;
1611
398
  export declare function resolveDataDir(cfg: MemoryConfig): string;
1612
399
  /**
1613
400
  * `wing.enabled` 归一化(R14 三条规则,唯一实现点):