dsh-prime-memory 0.22.1 → 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 (121) 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 +1951 -1188
  6. package/dist/config.d.ts +176 -1240
  7. package/dist/config.js +113 -2
  8. package/dist/conflict-service.d.ts +12 -0
  9. package/dist/conflict-service.js +24 -0
  10. package/dist/contract.d.ts +327 -0
  11. package/dist/domain-gate.d.ts +19 -0
  12. package/dist/domain-gate.js +45 -0
  13. package/dist/graph/constraints.d.ts +4 -2
  14. package/dist/graph/constraints.js +4 -2
  15. package/dist/hooks/obsolete-notice.d.ts +26 -0
  16. package/dist/hooks/obsolete-notice.js +64 -0
  17. package/dist/hooks/recall.d.ts +41 -0
  18. package/dist/hooks/recall.js +127 -28
  19. package/dist/hooks/skill-recall.d.ts +25 -0
  20. package/dist/hooks/skill-recall.js +72 -0
  21. package/dist/index.d.ts +1 -1029
  22. package/dist/index.js +55 -2
  23. package/dist/memory-types.d.ts +69 -0
  24. package/dist/memory-types.js +165 -0
  25. package/dist/memport/format.d.ts +75 -0
  26. package/dist/memport/format.js +345 -0
  27. package/dist/memport/prefilter.d.ts +62 -0
  28. package/dist/memport/prefilter.js +132 -0
  29. package/dist/memport/scan.d.ts +13 -0
  30. package/dist/memport/scan.js +100 -0
  31. package/dist/metadata-validators.d.ts +22 -0
  32. package/dist/metadata-validators.js +45 -0
  33. package/dist/pipeline/l1.d.ts +44 -2
  34. package/dist/pipeline/l1.js +177 -9
  35. package/dist/pipeline/md-sync.d.ts +65 -0
  36. package/dist/pipeline/md-sync.js +456 -0
  37. package/dist/pipeline/ruminate.d.ts +46 -1
  38. package/dist/pipeline/ruminate.js +150 -1
  39. package/dist/pipeline/runner.d.ts +10 -0
  40. package/dist/pipeline/runner.js +7 -1
  41. package/dist/pipeline/slot-migrate.d.ts +45 -0
  42. package/dist/pipeline/slot-migrate.js +45 -0
  43. package/dist/pipeline/workspace-relink.d.ts +60 -0
  44. package/dist/pipeline/workspace-relink.js +73 -0
  45. package/dist/projection/recall.d.ts +112 -0
  46. package/dist/projection/recall.js +183 -0
  47. package/dist/projection/slots.d.ts +5 -0
  48. package/dist/prompts/examples.d.ts +73 -0
  49. package/dist/prompts/examples.js +178 -0
  50. package/dist/prompts/graph-projection.js +3 -0
  51. package/dist/prompts/l1-dedup.d.ts +9 -3
  52. package/dist/prompts/l1-dedup.js +34 -13
  53. package/dist/prompts/l1-extraction.d.ts +9 -4
  54. package/dist/prompts/l1-extraction.js +76 -8
  55. package/dist/settings.d.ts +8 -0
  56. package/dist/settings.js +15 -1
  57. package/dist/skills/crystallize.d.ts +41 -0
  58. package/dist/skills/crystallize.js +75 -0
  59. package/dist/stats.d.ts +30 -1
  60. package/dist/stats.js +504 -13
  61. package/dist/store/embedding-source.d.ts +8 -0
  62. package/dist/store/embedding-source.js +39 -2
  63. package/dist/store/file-versions.d.ts +4 -0
  64. package/dist/store/file-versions.js +4 -0
  65. package/dist/store/graph-store.d.ts +14 -0
  66. package/dist/store/graph-store.js +35 -0
  67. package/dist/store/l1-snapshot.d.ts +26 -1
  68. package/dist/store/l1-snapshot.js +53 -8
  69. package/dist/store/l1.d.ts +77 -3
  70. package/dist/store/l1.js +128 -3
  71. package/dist/store/memory-md-archive.d.ts +84 -0
  72. package/dist/store/memory-md-archive.js +155 -0
  73. package/dist/store/memory-md-disable.d.ts +23 -0
  74. package/dist/store/memory-md-disable.js +106 -0
  75. package/dist/store/memory-md-export.d.ts +50 -0
  76. package/dist/store/memory-md-export.js +200 -0
  77. package/dist/store/memory-md-ledger.d.ts +94 -0
  78. package/dist/store/memory-md-ledger.js +243 -0
  79. package/dist/store/memory-md-orphan.d.ts +27 -0
  80. package/dist/store/memory-md-orphan.js +153 -0
  81. package/dist/store/memory-md-parse.d.ts +35 -0
  82. package/dist/store/memory-md-parse.js +85 -0
  83. package/dist/store/memory-md-skeleton.d.ts +18 -0
  84. package/dist/store/memory-md-skeleton.js +61 -0
  85. package/dist/store/memory-md-types.d.ts +174 -0
  86. package/dist/store/memory-md-types.js +10 -0
  87. package/dist/store/memory-md.d.ts +108 -0
  88. package/dist/store/memory-md.js +219 -0
  89. package/dist/store/memory-sources.d.ts +59 -0
  90. package/dist/store/memory-sources.js +214 -0
  91. package/dist/store/obsolete-notices.d.ts +39 -0
  92. package/dist/store/obsolete-notices.js +153 -0
  93. package/dist/store/recall-feedback.d.ts +75 -0
  94. package/dist/store/recall-feedback.js +213 -0
  95. package/dist/store/recall-usage.d.ts +11 -0
  96. package/dist/store/recall-usage.js +29 -0
  97. package/dist/store/session-recalled.d.ts +60 -0
  98. package/dist/store/session-recalled.js +310 -0
  99. package/dist/store/skill-store.d.ts +99 -0
  100. package/dist/store/skill-store.js +330 -0
  101. package/dist/store/sqlite.d.ts +71 -0
  102. package/dist/store/sqlite.js +259 -15
  103. package/dist/store/supersede.d.ts +1 -1
  104. package/dist/store/supersede.js +1 -1
  105. package/dist/tools/index.d.ts +4 -13
  106. package/dist/tools/index.js +80 -12
  107. package/dist/tools/skills.d.ts +13 -0
  108. package/dist/tools/skills.js +130 -0
  109. package/dist/types.d.ts +30 -7
  110. package/dist/types.js +10 -2
  111. package/dist/util/maturity.d.ts +44 -0
  112. package/dist/util/maturity.js +43 -0
  113. package/dist/util/md-name.d.ts +129 -0
  114. package/dist/util/md-name.js +366 -0
  115. package/dist/util/md-normalize.d.ts +23 -0
  116. package/dist/util/md-normalize.js +131 -0
  117. package/dist/wing-backfill.js +7 -4
  118. package/dist/workspace-route.d.ts +22 -0
  119. package/dist/workspace-route.js +66 -0
  120. package/dsh.plugin.json +1 -1
  121. 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')。
@@ -90,6 +95,153 @@ export interface MemoryConfig {
90
95
  * **0 = 不做超时降级**(显式关闭,而非"立刻全部超时")。 */
91
96
  timeoutDays: number;
92
97
  };
98
+ /** 轨3 memport Connect:外部记忆来源登记与只读扫描。**默认关**——
99
+ * scan 仅预览(不写库),写库仍走 memory_import;enabled 关时 memory-sources 与 memport-scan 端点均不可用。 */
100
+ memport: {
101
+ enabled: boolean;
102
+ /** 单源扫描记录上限(0 = 不限;仍受总护栏)。 */
103
+ scanMaxRecords: number;
104
+ };
105
+ /** 轨2 技能结晶(程序性记忆)。**默认关**:allowPromote 也默认关(上线先只计数不晋升,
106
+ * distinct-session 达阈后才开);injectionTier 不用 union,消费侧归一。 */
107
+ skills: {
108
+ enabled: boolean;
109
+ /** 开且 enabled 时,每轮 pre-step 才注入 active 技能。 */
110
+ inject: boolean;
111
+ /** candidate→active 自动晋升总闸(默认关,只计数)。 */
112
+ allowPromote: boolean;
113
+ /** 晋升需 distinct session 数。 */
114
+ minSessions: number;
115
+ /** 晋升需证据条数下限(与 minSessions 同时满足)。 */
116
+ minEvidence: number;
117
+ /** 每轮技能注入字节预算(独立于召回 2000 预算)。 */
118
+ maxPerTurnBytes: number;
119
+ /** 技能目录常驻字节预算。 */
120
+ maxSkillCatalogBytes: number;
121
+ /** excerpt 档每技能正文截断。 */
122
+ excerptChars: number;
123
+ /** active 技能闲置多少天后自动归档(0 = 不做闲置归档)。 */
124
+ idleArchiveDays: number;
125
+ };
126
+ /** wing 存量回填护栏(默认 300 条/120s;想一次多跑点可调大,代价是后台占用更久)。 */
127
+ backfill: {
128
+ /** 单次回填处理条数上限。 */
129
+ maxRecords: number;
130
+ /** 单次回填墙钟预算(ms),超时剩留待再次触发。 */
131
+ timeBudgetMs: number;
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
+ };
189
+ /** 使用场景(G1):抽取时产出“何时该浮现”数组落 metadata.dsh_usage_scenario。默认关,关时抽取产物逐字不变。 */
190
+ usageScenario: {
191
+ enabled: boolean;
192
+ };
193
+ /**
194
+ * 类型叙述模板(G2):抽取时按 7 类型各自的“前因后果”骨架写 content。
195
+ *
196
+ * 默认从 false 改 **true**(用户定的可用性判据:“没有前因后果、写不全就不算可用”)。
197
+ * 单开它还不够:`tools/ab-distill.mjs` 实测只给定义不给示例时,真会话 23 条产出
198
+ * **骨架齐备 0 条**——定义本身不被遵守,所以必须与 `naming.fewShot` 同开。
199
+ */
200
+ narrativeTemplates: {
201
+ enabled: boolean;
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
+ };
93
245
  recall: {
94
246
  enabled: boolean;
95
247
  /** 每步自动召回注入的 L1 条数。 */
@@ -203,6 +355,12 @@ export interface MemoryConfig {
203
355
  maxAlwaysOnBytes: number;
204
356
  /** 槽位正文最大字符数。 */
205
357
  maxBodyChars: number;
358
+ /**
359
+ * 旧语义迁移(默认关):反刍收尾时,把“钉成常驻、但内容已由一条活 L1 记忆承载”的
360
+ * rule 槽位软退场(dropped),让那条记忆回到相关性召回而非每轮硬注入。
361
+ * 需用户显式授权:动的是手动建的约定,不自动生效。
362
+ */
363
+ migrateLegacy: boolean;
206
364
  };
207
365
  /** 是否注册模型可调用的记忆工具。 */
208
366
  tools: boolean;
@@ -213,7 +371,7 @@ export interface MemoryConfig {
213
371
  * 原为 settings 服务 `dsh-memory` 命名空间,见 src/settings.ts 头注)。
214
372
  * 读取走 `config.live.get()`(每次操作取一次),写入走设置页或
215
373
  * settings-set RPC(经 `fiber.update` 持久化到 profile patch)。 */
216
- live: Volatile<MemoryLiveSettings>;
374
+ live: VolatileRef<MemoryLiveSettings>;
217
375
  }
218
376
  /**
219
377
  * 运行时开关节(0.1.7 声明式设置面的唯一事实源)。
@@ -225,1240 +383,18 @@ export interface MemoryConfig {
225
383
  *
226
384
  * ⚠️ 不得在节内再标 `.volatile()`(volatile 嵌套 volatile 会被宿主拒绝)。
227
385
  */
228
- export declare function liveSettingsSchema(): Schema<NoInfer<Schemastery.ObjectS<NoInfer<{
229
- enabled: Schema<boolean, boolean, "defined">;
230
- capture: Schema<boolean, boolean, "defined">;
231
- distill: Schema<boolean, boolean, "defined">;
232
- recall: Schema<boolean, boolean, "defined">;
233
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
234
- distillProvider: Schema<string, string, "defined">;
235
- distillModel: Schema<string, string, "defined">;
236
- distillChain: Schema<({
237
- provider?: string | null | undefined;
238
- model?: string | null | undefined;
239
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
240
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
241
- provider: Schema<string, string, "defined">;
242
- model: Schema<string, string, "defined">;
243
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
244
- }>>[], "defined">;
245
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
246
- l1: Schema<({
247
- provider?: string | null | undefined;
248
- model?: string | null | undefined;
249
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
250
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
251
- provider: Schema<string, string, "defined">;
252
- model: Schema<string, string, "defined">;
253
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
254
- }>>[], "defined">;
255
- l2: Schema<({
256
- provider?: string | null | undefined;
257
- model?: string | null | undefined;
258
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
259
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
260
- provider: Schema<string, string, "defined">;
261
- model: Schema<string, string, "defined">;
262
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
263
- }>>[], "defined">;
264
- l3: Schema<({
265
- provider?: string | null | undefined;
266
- model?: string | null | undefined;
267
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
268
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
269
- provider: Schema<string, string, "defined">;
270
- model: Schema<string, string, "defined">;
271
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
272
- }>>[], "defined">;
273
- }>>, Schemastery.ObjectT<NoInfer<{
274
- l1: Schema<({
275
- provider?: string | null | undefined;
276
- model?: string | null | undefined;
277
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
278
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
279
- provider: Schema<string, string, "defined">;
280
- model: Schema<string, string, "defined">;
281
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
282
- }>>[], "defined">;
283
- l2: Schema<({
284
- provider?: string | null | undefined;
285
- model?: string | null | undefined;
286
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
287
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
288
- provider: Schema<string, string, "defined">;
289
- model: Schema<string, string, "defined">;
290
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
291
- }>>[], "defined">;
292
- l3: Schema<({
293
- provider?: string | null | undefined;
294
- model?: string | null | undefined;
295
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
296
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
297
- provider: Schema<string, string, "defined">;
298
- model: Schema<string, string, "defined">;
299
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
300
- }>>[], "defined">;
301
- }>>, "defined">;
302
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
303
- extract: Schema<number, number, "defined">;
304
- dedup: Schema<number, number, "defined">;
305
- l2: Schema<number, number, "defined">;
306
- l3: Schema<number, number, "defined">;
307
- graph: Schema<number, number, "defined">;
308
- }>>, Schemastery.ObjectT<NoInfer<{
309
- extract: Schema<number, number, "defined">;
310
- dedup: Schema<number, number, "defined">;
311
- l2: Schema<number, number, "defined">;
312
- l3: Schema<number, number, "defined">;
313
- graph: Schema<number, number, "defined">;
314
- }>>, "defined">;
315
- distillMaxInputChars: Schema<number, number, "defined">;
316
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
317
- directBaseURL: Schema<string, string, "defined">;
318
- directApiKey: Schema<string, string, "defined">;
319
- embedRemoteBaseURL: Schema<string, string, "defined">;
320
- embedRemoteApiKey: Schema<string, string, "defined">;
321
- embedRemoteModel: Schema<string, string, "defined">;
322
- embedRemoteDimensions: Schema<number, number, "defined">;
323
- memoryMutate: Schema<boolean, boolean, "defined">;
324
- conflictFreeze: Schema<boolean, boolean, "defined">;
325
- toolRoom: Schema<boolean, boolean, "defined">;
326
- toolGraph: Schema<boolean, boolean, "defined">;
327
- toolRuminate: Schema<boolean, boolean, "defined">;
328
- toolConflict: Schema<boolean, boolean, "defined">;
329
- toolMutate: Schema<boolean, boolean, "defined">;
330
- }>>>, NoInfer<Schemastery.ObjectT<NoInfer<{
331
- enabled: Schema<boolean, boolean, "defined">;
332
- capture: Schema<boolean, boolean, "defined">;
333
- distill: Schema<boolean, boolean, "defined">;
334
- recall: Schema<boolean, boolean, "defined">;
335
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
336
- distillProvider: Schema<string, string, "defined">;
337
- distillModel: Schema<string, string, "defined">;
338
- distillChain: Schema<({
339
- provider?: string | null | undefined;
340
- model?: string | null | undefined;
341
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
342
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
343
- provider: Schema<string, string, "defined">;
344
- model: Schema<string, string, "defined">;
345
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
346
- }>>[], "defined">;
347
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
348
- l1: Schema<({
349
- provider?: string | null | undefined;
350
- model?: string | null | undefined;
351
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
352
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
353
- provider: Schema<string, string, "defined">;
354
- model: Schema<string, string, "defined">;
355
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
356
- }>>[], "defined">;
357
- l2: Schema<({
358
- provider?: string | null | undefined;
359
- model?: string | null | undefined;
360
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
361
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
362
- provider: Schema<string, string, "defined">;
363
- model: Schema<string, string, "defined">;
364
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
365
- }>>[], "defined">;
366
- l3: Schema<({
367
- provider?: string | null | undefined;
368
- model?: string | null | undefined;
369
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
370
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
371
- provider: Schema<string, string, "defined">;
372
- model: Schema<string, string, "defined">;
373
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
374
- }>>[], "defined">;
375
- }>>, Schemastery.ObjectT<NoInfer<{
376
- l1: Schema<({
377
- provider?: string | null | undefined;
378
- model?: string | null | undefined;
379
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
380
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
381
- provider: Schema<string, string, "defined">;
382
- model: Schema<string, string, "defined">;
383
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
384
- }>>[], "defined">;
385
- l2: Schema<({
386
- provider?: string | null | undefined;
387
- model?: string | null | undefined;
388
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
389
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
390
- provider: Schema<string, string, "defined">;
391
- model: Schema<string, string, "defined">;
392
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
393
- }>>[], "defined">;
394
- l3: Schema<({
395
- provider?: string | null | undefined;
396
- model?: string | null | undefined;
397
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
398
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
399
- provider: Schema<string, string, "defined">;
400
- model: Schema<string, string, "defined">;
401
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
402
- }>>[], "defined">;
403
- }>>, "defined">;
404
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
405
- extract: Schema<number, number, "defined">;
406
- dedup: Schema<number, number, "defined">;
407
- l2: Schema<number, number, "defined">;
408
- l3: Schema<number, number, "defined">;
409
- graph: Schema<number, number, "defined">;
410
- }>>, Schemastery.ObjectT<NoInfer<{
411
- extract: Schema<number, number, "defined">;
412
- dedup: Schema<number, number, "defined">;
413
- l2: Schema<number, number, "defined">;
414
- l3: Schema<number, number, "defined">;
415
- graph: Schema<number, number, "defined">;
416
- }>>, "defined">;
417
- distillMaxInputChars: Schema<number, number, "defined">;
418
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
419
- directBaseURL: Schema<string, string, "defined">;
420
- directApiKey: Schema<string, string, "defined">;
421
- embedRemoteBaseURL: Schema<string, string, "defined">;
422
- embedRemoteApiKey: Schema<string, string, "defined">;
423
- embedRemoteModel: Schema<string, string, "defined">;
424
- embedRemoteDimensions: Schema<number, number, "defined">;
425
- memoryMutate: Schema<boolean, boolean, "defined">;
426
- conflictFreeze: Schema<boolean, boolean, "defined">;
427
- toolRoom: Schema<boolean, boolean, "defined">;
428
- toolGraph: Schema<boolean, boolean, "defined">;
429
- toolRuminate: Schema<boolean, boolean, "defined">;
430
- toolConflict: Schema<boolean, boolean, "defined">;
431
- toolMutate: Schema<boolean, boolean, "defined">;
432
- }>>>, "volatile">;
433
- export declare const memorySchema: Schema<Schemastery.ObjectS<NoInfer<{
434
- dataDir: Schema<string, string, "defined">;
435
- family: Schema<"chat" | "work" | "auto", "chat" | "work" | "auto", "defined">;
436
- scope: Schema<string, string, "defined">;
437
- capture: Schema<Schemastery.ObjectS<NoInfer<{
438
- enabled: Schema<boolean, boolean, "defined">;
439
- stripCodeBlocks: Schema<boolean, boolean, "defined">;
440
- maxMessageChars: Schema<number, number, "defined">;
441
- redactSecrets: Schema<boolean, boolean, "defined">;
442
- }>>, Schemastery.ObjectT<NoInfer<{
443
- enabled: Schema<boolean, boolean, "defined">;
444
- stripCodeBlocks: Schema<boolean, boolean, "defined">;
445
- maxMessageChars: Schema<number, number, "defined">;
446
- redactSecrets: Schema<boolean, boolean, "defined">;
447
- }>>, "plain">;
448
- trace: Schema<Schemastery.ObjectS<NoInfer<{
449
- enabled: Schema<boolean, boolean, "defined">;
450
- retentionDays: Schema<number, number, "defined">;
451
- captureContent: Schema<boolean, boolean, "defined">;
452
- }>>, Schemastery.ObjectT<NoInfer<{
453
- enabled: Schema<boolean, boolean, "defined">;
454
- retentionDays: Schema<number, number, "defined">;
455
- captureContent: Schema<boolean, boolean, "defined">;
456
- }>>, "plain">;
457
- extract: Schema<Schemastery.ObjectS<NoInfer<{
458
- enabled: Schema<boolean, boolean, "defined">;
459
- minMessages: Schema<number, number, "defined">;
460
- idleSeconds: Schema<number, number, "defined">;
461
- backgroundMessages: Schema<number, number, "defined">;
462
- candidatePool: Schema<number, number, "defined">;
463
- }>>, Schemastery.ObjectT<NoInfer<{
464
- enabled: Schema<boolean, boolean, "defined">;
465
- minMessages: Schema<number, number, "defined">;
466
- idleSeconds: Schema<number, number, "defined">;
467
- backgroundMessages: Schema<number, number, "defined">;
468
- candidatePool: Schema<number, number, "defined">;
469
- }>>, "plain">;
470
- l2: Schema<Schemastery.ObjectS<NoInfer<{
471
- enabled: Schema<boolean, boolean, "defined">;
472
- minNewMemories: Schema<number, number, "defined">;
473
- maxScenes: Schema<number, number, "defined">;
474
- sceneContextLimit: Schema<number, number, "defined">;
475
- }>>, Schemastery.ObjectT<NoInfer<{
476
- enabled: Schema<boolean, boolean, "defined">;
477
- minNewMemories: Schema<number, number, "defined">;
478
- maxScenes: Schema<number, number, "defined">;
479
- sceneContextLimit: Schema<number, number, "defined">;
480
- }>>, "plain">;
481
- l3: Schema<Schemastery.ObjectS<NoInfer<{
482
- enabled: Schema<boolean, boolean, "defined">;
483
- interval: Schema<number, number, "defined">;
484
- }>>, Schemastery.ObjectT<NoInfer<{
485
- enabled: Schema<boolean, boolean, "defined">;
486
- interval: Schema<number, number, "defined">;
487
- }>>, "plain">;
488
- graph: Schema<Schemastery.ObjectS<NoInfer<{
489
- enabled: Schema<boolean, boolean, "defined">;
490
- }>>, Schemastery.ObjectT<NoInfer<{
491
- enabled: Schema<boolean, boolean, "defined">;
492
- }>>, "plain">;
493
- conflictFreeze: Schema<Schemastery.ObjectS<NoInfer<{
494
- enabled: Schema<boolean, boolean, "defined">;
495
- maxPending: Schema<number, number, "defined">;
496
- timeoutDays: Schema<number, number, "defined">;
497
- }>>, Schemastery.ObjectT<NoInfer<{
498
- enabled: Schema<boolean, boolean, "defined">;
499
- maxPending: Schema<number, number, "defined">;
500
- timeoutDays: Schema<number, number, "defined">;
501
- }>>, "plain">;
502
- recall: Schema<Schemastery.ObjectS<NoInfer<{
503
- enabled: Schema<boolean, boolean, "defined">;
504
- maxResults: Schema<number, number, "defined">;
505
- maxCharsPerMemory: Schema<number, number, "defined">;
506
- maxTotalRecallChars: Schema<number, number, "defined">;
507
- timeoutMs: Schema<number, number, "defined">;
508
- includePersona: Schema<boolean, boolean, "defined">;
509
- includeSceneNav: Schema<boolean, boolean, "defined">;
510
- strategy: Schema<"hybrid" | "keyword" | "embedding", "hybrid" | "keyword" | "embedding", "defined">;
511
- scoreThreshold: Schema<number, number, "defined">;
512
- decayHalfLifeDays: Schema<number, number, "defined">;
513
- scopeFence: Schema<Schemastery.ObjectS<NoInfer<{
514
- enabled: Schema<boolean, boolean, "defined">;
515
- crossRepoMultiplier: Schema<number, number, "defined">;
516
- }>>, Schemastery.ObjectT<NoInfer<{
517
- enabled: Schema<boolean, boolean, "defined">;
518
- crossRepoMultiplier: Schema<number, number, "defined">;
519
- }>>, "plain">;
520
- }>>, Schemastery.ObjectT<NoInfer<{
521
- enabled: Schema<boolean, boolean, "defined">;
522
- maxResults: Schema<number, number, "defined">;
523
- maxCharsPerMemory: Schema<number, number, "defined">;
524
- maxTotalRecallChars: Schema<number, number, "defined">;
525
- timeoutMs: Schema<number, number, "defined">;
526
- includePersona: Schema<boolean, boolean, "defined">;
527
- includeSceneNav: Schema<boolean, boolean, "defined">;
528
- strategy: Schema<"hybrid" | "keyword" | "embedding", "hybrid" | "keyword" | "embedding", "defined">;
529
- scoreThreshold: Schema<number, number, "defined">;
530
- decayHalfLifeDays: Schema<number, number, "defined">;
531
- scopeFence: Schema<Schemastery.ObjectS<NoInfer<{
532
- enabled: Schema<boolean, boolean, "defined">;
533
- crossRepoMultiplier: Schema<number, number, "defined">;
534
- }>>, Schemastery.ObjectT<NoInfer<{
535
- enabled: Schema<boolean, boolean, "defined">;
536
- crossRepoMultiplier: Schema<number, number, "defined">;
537
- }>>, "plain">;
538
- }>>, "plain">;
539
- embedding: Schema<Schemastery.ObjectS<NoInfer<{
540
- enabled: Schema<boolean, boolean, "defined">;
541
- baseUrl: Schema<string, string, "defined">;
542
- apiKey: Schema<string, string, "defined">;
543
- model: Schema<string, string, "defined">;
544
- dimensions: Schema<number, number, "defined">;
545
- maxInputChars: Schema<number, number, "defined">;
546
- timeoutMs: Schema<number, number, "defined">;
547
- allowLocalModels: Schema<boolean, boolean, "defined">;
548
- mirror: Schema<string, string, "defined">;
549
- proxy: Schema<string, string, "defined">;
550
- }>>, Schemastery.ObjectT<NoInfer<{
551
- enabled: Schema<boolean, boolean, "defined">;
552
- baseUrl: Schema<string, string, "defined">;
553
- apiKey: Schema<string, string, "defined">;
554
- model: Schema<string, string, "defined">;
555
- dimensions: Schema<number, number, "defined">;
556
- maxInputChars: Schema<number, number, "defined">;
557
- timeoutMs: Schema<number, number, "defined">;
558
- allowLocalModels: Schema<boolean, boolean, "defined">;
559
- mirror: Schema<string, string, "defined">;
560
- proxy: Schema<string, string, "defined">;
561
- }>>, "plain">;
562
- llm: Schema<Schemastery.ObjectS<NoInfer<{
563
- provider: Schema<string, string, "defined">;
564
- model: Schema<string, string, "defined">;
565
- mode: Schema<"host" | "direct", "host" | "direct", "defined">;
566
- baseURL: Schema<string, string, "defined">;
567
- apiKey: Schema<string, string, "defined">;
568
- fallbacks: Schema<({
569
- provider?: string | null | undefined;
570
- model?: string | null | undefined;
571
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
572
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
573
- provider: Schema<string, string, "defined">;
574
- model: Schema<string, string, "defined">;
575
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
576
- }>>[], "defined">;
577
- layerRoutes: Schema<Schemastery.ObjectS<NoInfer<{
578
- l1: Schema<({
579
- provider?: string | null | undefined;
580
- model?: string | null | undefined;
581
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
582
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
583
- provider: Schema<string, string, "defined">;
584
- model: Schema<string, string, "defined">;
585
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
586
- }>>[], "defined">;
587
- l2: Schema<({
588
- provider?: string | null | undefined;
589
- model?: string | null | undefined;
590
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
591
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
592
- provider: Schema<string, string, "defined">;
593
- model: Schema<string, string, "defined">;
594
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
595
- }>>[], "defined">;
596
- l3: Schema<({
597
- provider?: string | null | undefined;
598
- model?: string | null | undefined;
599
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
600
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
601
- provider: Schema<string, string, "defined">;
602
- model: Schema<string, string, "defined">;
603
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
604
- }>>[], "defined">;
605
- }>>, Schemastery.ObjectT<NoInfer<{
606
- l1: Schema<({
607
- provider?: string | null | undefined;
608
- model?: string | null | undefined;
609
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
610
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
611
- provider: Schema<string, string, "defined">;
612
- model: Schema<string, string, "defined">;
613
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
614
- }>>[], "defined">;
615
- l2: Schema<({
616
- provider?: string | null | undefined;
617
- model?: string | null | undefined;
618
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
619
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
620
- provider: Schema<string, string, "defined">;
621
- model: Schema<string, string, "defined">;
622
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
623
- }>>[], "defined">;
624
- l3: Schema<({
625
- provider?: string | null | undefined;
626
- model?: string | null | undefined;
627
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
628
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
629
- provider: Schema<string, string, "defined">;
630
- model: Schema<string, string, "defined">;
631
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
632
- }>>[], "defined">;
633
- }>>, "defined">;
634
- maxTokens: Schema<number, number, "defined">;
635
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
636
- temperature: Schema<number, number, "defined">;
637
- maxInputChars: Schema<number, number, "defined">;
638
- timeoutMs: Schema<number, number, "defined">;
639
- }>>, Schemastery.ObjectT<NoInfer<{
640
- provider: Schema<string, string, "defined">;
641
- model: Schema<string, string, "defined">;
642
- mode: Schema<"host" | "direct", "host" | "direct", "defined">;
643
- baseURL: Schema<string, string, "defined">;
644
- apiKey: Schema<string, string, "defined">;
645
- fallbacks: Schema<({
646
- provider?: string | null | undefined;
647
- model?: string | null | undefined;
648
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
649
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
650
- provider: Schema<string, string, "defined">;
651
- model: Schema<string, string, "defined">;
652
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
653
- }>>[], "defined">;
654
- layerRoutes: Schema<Schemastery.ObjectS<NoInfer<{
655
- l1: Schema<({
656
- provider?: string | null | undefined;
657
- model?: string | null | undefined;
658
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
659
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
660
- provider: Schema<string, string, "defined">;
661
- model: Schema<string, string, "defined">;
662
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
663
- }>>[], "defined">;
664
- l2: 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
- l3: Schema<({
674
- provider?: string | null | undefined;
675
- model?: string | null | undefined;
676
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
677
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
678
- provider: Schema<string, string, "defined">;
679
- model: Schema<string, string, "defined">;
680
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
681
- }>>[], "defined">;
682
- }>>, Schemastery.ObjectT<NoInfer<{
683
- l1: 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
- l2: 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
- l3: Schema<({
702
- provider?: string | null | undefined;
703
- model?: string | null | undefined;
704
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
705
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
706
- provider: Schema<string, string, "defined">;
707
- model: Schema<string, string, "defined">;
708
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
709
- }>>[], "defined">;
710
- }>>, "defined">;
711
- maxTokens: Schema<number, number, "defined">;
712
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
713
- temperature: Schema<number, number, "defined">;
714
- maxInputChars: Schema<number, number, "defined">;
715
- timeoutMs: Schema<number, number, "defined">;
716
- }>>, "plain">;
717
- hall: Schema<Schemastery.ObjectS<NoInfer<{
718
- enabled: Schema<string[], string[], "defined">;
719
- }>>, Schemastery.ObjectT<NoInfer<{
720
- enabled: Schema<string[], string[], "defined">;
721
- }>>, "plain">;
722
- tokenCost: Schema<Schemastery.ObjectS<NoInfer<{
723
- retentionDays: Schema<number, number, "defined">;
724
- }>>, Schemastery.ObjectT<NoInfer<{
725
- retentionDays: Schema<number, number, "defined">;
726
- }>>, "plain">;
727
- slots: Schema<Schemastery.ObjectS<NoInfer<{
728
- enabled: Schema<boolean, boolean, "defined">;
729
- inject: Schema<boolean, boolean, "defined">;
730
- maxSlots: Schema<number, number, "defined">;
731
- maxAlwaysOnBytes: Schema<number, number, "defined">;
732
- maxBodyChars: Schema<number, number, "defined">;
733
- }>>, Schemastery.ObjectT<NoInfer<{
734
- enabled: Schema<boolean, boolean, "defined">;
735
- inject: Schema<boolean, boolean, "defined">;
736
- maxSlots: Schema<number, number, "defined">;
737
- maxAlwaysOnBytes: Schema<number, number, "defined">;
738
- maxBodyChars: Schema<number, number, "defined">;
739
- }>>, "plain">;
740
- tools: Schema<boolean, boolean, "defined">;
741
- benchControl: Schema<boolean, boolean, "defined">;
742
- live: Schema<NoInfer<Schemastery.ObjectS<NoInfer<{
743
- enabled: Schema<boolean, boolean, "defined">;
744
- capture: Schema<boolean, boolean, "defined">;
745
- distill: Schema<boolean, boolean, "defined">;
746
- recall: Schema<boolean, boolean, "defined">;
747
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
748
- distillProvider: Schema<string, string, "defined">;
749
- distillModel: Schema<string, string, "defined">;
750
- distillChain: Schema<({
751
- provider?: string | null | undefined;
752
- model?: string | null | undefined;
753
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
754
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
755
- provider: Schema<string, string, "defined">;
756
- model: Schema<string, string, "defined">;
757
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
758
- }>>[], "defined">;
759
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
760
- l1: 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
- l2: 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
- l3: Schema<({
779
- provider?: string | null | undefined;
780
- model?: string | null | undefined;
781
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
782
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
783
- provider: Schema<string, string, "defined">;
784
- model: Schema<string, string, "defined">;
785
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
786
- }>>[], "defined">;
787
- }>>, Schemastery.ObjectT<NoInfer<{
788
- l1: 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
- l2: 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
- l3: Schema<({
807
- provider?: string | null | undefined;
808
- model?: string | null | undefined;
809
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
810
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
811
- provider: Schema<string, string, "defined">;
812
- model: Schema<string, string, "defined">;
813
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
814
- }>>[], "defined">;
815
- }>>, "defined">;
816
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
817
- extract: Schema<number, number, "defined">;
818
- dedup: Schema<number, number, "defined">;
819
- l2: Schema<number, number, "defined">;
820
- l3: Schema<number, number, "defined">;
821
- graph: Schema<number, number, "defined">;
822
- }>>, Schemastery.ObjectT<NoInfer<{
823
- extract: Schema<number, number, "defined">;
824
- dedup: Schema<number, number, "defined">;
825
- l2: Schema<number, number, "defined">;
826
- l3: Schema<number, number, "defined">;
827
- graph: Schema<number, number, "defined">;
828
- }>>, "defined">;
829
- distillMaxInputChars: Schema<number, number, "defined">;
830
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
831
- directBaseURL: Schema<string, string, "defined">;
832
- directApiKey: Schema<string, string, "defined">;
833
- embedRemoteBaseURL: Schema<string, string, "defined">;
834
- embedRemoteApiKey: Schema<string, string, "defined">;
835
- embedRemoteModel: Schema<string, string, "defined">;
836
- embedRemoteDimensions: Schema<number, number, "defined">;
837
- memoryMutate: Schema<boolean, boolean, "defined">;
838
- conflictFreeze: Schema<boolean, boolean, "defined">;
839
- toolRoom: Schema<boolean, boolean, "defined">;
840
- toolGraph: Schema<boolean, boolean, "defined">;
841
- toolRuminate: Schema<boolean, boolean, "defined">;
842
- toolConflict: Schema<boolean, boolean, "defined">;
843
- toolMutate: Schema<boolean, boolean, "defined">;
844
- }>>>, NoInfer<Schemastery.ObjectT<NoInfer<{
845
- enabled: Schema<boolean, boolean, "defined">;
846
- capture: Schema<boolean, boolean, "defined">;
847
- distill: Schema<boolean, boolean, "defined">;
848
- recall: Schema<boolean, boolean, "defined">;
849
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
850
- distillProvider: Schema<string, string, "defined">;
851
- distillModel: Schema<string, string, "defined">;
852
- distillChain: Schema<({
853
- provider?: string | null | undefined;
854
- model?: string | null | undefined;
855
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
856
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
857
- provider: Schema<string, string, "defined">;
858
- model: Schema<string, string, "defined">;
859
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
860
- }>>[], "defined">;
861
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
862
- l1: Schema<({
863
- provider?: string | null | undefined;
864
- model?: string | null | undefined;
865
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
866
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
867
- provider: Schema<string, string, "defined">;
868
- model: Schema<string, string, "defined">;
869
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
870
- }>>[], "defined">;
871
- l2: Schema<({
872
- provider?: string | null | undefined;
873
- model?: string | null | undefined;
874
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
875
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
876
- provider: Schema<string, string, "defined">;
877
- model: Schema<string, string, "defined">;
878
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
879
- }>>[], "defined">;
880
- l3: Schema<({
881
- provider?: string | null | undefined;
882
- model?: string | null | undefined;
883
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
884
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
885
- provider: Schema<string, string, "defined">;
886
- model: Schema<string, string, "defined">;
887
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
888
- }>>[], "defined">;
889
- }>>, Schemastery.ObjectT<NoInfer<{
890
- l1: Schema<({
891
- provider?: string | null | undefined;
892
- model?: string | null | undefined;
893
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
894
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
895
- provider: Schema<string, string, "defined">;
896
- model: Schema<string, string, "defined">;
897
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
898
- }>>[], "defined">;
899
- l2: Schema<({
900
- provider?: string | null | undefined;
901
- model?: string | null | undefined;
902
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
903
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
904
- provider: Schema<string, string, "defined">;
905
- model: Schema<string, string, "defined">;
906
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
907
- }>>[], "defined">;
908
- l3: Schema<({
909
- provider?: string | null | undefined;
910
- model?: string | null | undefined;
911
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
912
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
913
- provider: Schema<string, string, "defined">;
914
- model: Schema<string, string, "defined">;
915
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
916
- }>>[], "defined">;
917
- }>>, "defined">;
918
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
919
- extract: Schema<number, number, "defined">;
920
- dedup: Schema<number, number, "defined">;
921
- l2: Schema<number, number, "defined">;
922
- l3: Schema<number, number, "defined">;
923
- graph: Schema<number, number, "defined">;
924
- }>>, Schemastery.ObjectT<NoInfer<{
925
- extract: Schema<number, number, "defined">;
926
- dedup: Schema<number, number, "defined">;
927
- l2: Schema<number, number, "defined">;
928
- l3: Schema<number, number, "defined">;
929
- graph: Schema<number, number, "defined">;
930
- }>>, "defined">;
931
- distillMaxInputChars: Schema<number, number, "defined">;
932
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
933
- directBaseURL: Schema<string, string, "defined">;
934
- directApiKey: Schema<string, string, "defined">;
935
- embedRemoteBaseURL: Schema<string, string, "defined">;
936
- embedRemoteApiKey: Schema<string, string, "defined">;
937
- embedRemoteModel: Schema<string, string, "defined">;
938
- embedRemoteDimensions: Schema<number, number, "defined">;
939
- memoryMutate: Schema<boolean, boolean, "defined">;
940
- conflictFreeze: Schema<boolean, boolean, "defined">;
941
- toolRoom: Schema<boolean, boolean, "defined">;
942
- toolGraph: Schema<boolean, boolean, "defined">;
943
- toolRuminate: Schema<boolean, boolean, "defined">;
944
- toolConflict: Schema<boolean, boolean, "defined">;
945
- toolMutate: Schema<boolean, boolean, "defined">;
946
- }>>>, "volatile">;
947
- }>>, Schemastery.ObjectT<NoInfer<{
948
- dataDir: Schema<string, string, "defined">;
949
- family: Schema<"chat" | "work" | "auto", "chat" | "work" | "auto", "defined">;
950
- scope: Schema<string, string, "defined">;
951
- capture: Schema<Schemastery.ObjectS<NoInfer<{
952
- enabled: Schema<boolean, boolean, "defined">;
953
- stripCodeBlocks: Schema<boolean, boolean, "defined">;
954
- maxMessageChars: Schema<number, number, "defined">;
955
- redactSecrets: Schema<boolean, boolean, "defined">;
956
- }>>, Schemastery.ObjectT<NoInfer<{
957
- enabled: Schema<boolean, boolean, "defined">;
958
- stripCodeBlocks: Schema<boolean, boolean, "defined">;
959
- maxMessageChars: Schema<number, number, "defined">;
960
- redactSecrets: Schema<boolean, boolean, "defined">;
961
- }>>, "plain">;
962
- trace: Schema<Schemastery.ObjectS<NoInfer<{
963
- enabled: Schema<boolean, boolean, "defined">;
964
- retentionDays: Schema<number, number, "defined">;
965
- captureContent: Schema<boolean, boolean, "defined">;
966
- }>>, Schemastery.ObjectT<NoInfer<{
967
- enabled: Schema<boolean, boolean, "defined">;
968
- retentionDays: Schema<number, number, "defined">;
969
- captureContent: Schema<boolean, boolean, "defined">;
970
- }>>, "plain">;
971
- extract: Schema<Schemastery.ObjectS<NoInfer<{
972
- enabled: Schema<boolean, boolean, "defined">;
973
- minMessages: Schema<number, number, "defined">;
974
- idleSeconds: Schema<number, number, "defined">;
975
- backgroundMessages: Schema<number, number, "defined">;
976
- candidatePool: Schema<number, number, "defined">;
977
- }>>, Schemastery.ObjectT<NoInfer<{
978
- enabled: Schema<boolean, boolean, "defined">;
979
- minMessages: Schema<number, number, "defined">;
980
- idleSeconds: Schema<number, number, "defined">;
981
- backgroundMessages: Schema<number, number, "defined">;
982
- candidatePool: Schema<number, number, "defined">;
983
- }>>, "plain">;
984
- l2: Schema<Schemastery.ObjectS<NoInfer<{
985
- enabled: Schema<boolean, boolean, "defined">;
986
- minNewMemories: Schema<number, number, "defined">;
987
- maxScenes: Schema<number, number, "defined">;
988
- sceneContextLimit: Schema<number, number, "defined">;
989
- }>>, Schemastery.ObjectT<NoInfer<{
990
- enabled: Schema<boolean, boolean, "defined">;
991
- minNewMemories: Schema<number, number, "defined">;
992
- maxScenes: Schema<number, number, "defined">;
993
- sceneContextLimit: Schema<number, number, "defined">;
994
- }>>, "plain">;
995
- l3: Schema<Schemastery.ObjectS<NoInfer<{
996
- enabled: Schema<boolean, boolean, "defined">;
997
- interval: Schema<number, number, "defined">;
998
- }>>, Schemastery.ObjectT<NoInfer<{
999
- enabled: Schema<boolean, boolean, "defined">;
1000
- interval: Schema<number, number, "defined">;
1001
- }>>, "plain">;
1002
- graph: Schema<Schemastery.ObjectS<NoInfer<{
1003
- enabled: Schema<boolean, boolean, "defined">;
1004
- }>>, Schemastery.ObjectT<NoInfer<{
1005
- enabled: Schema<boolean, boolean, "defined">;
1006
- }>>, "plain">;
1007
- conflictFreeze: Schema<Schemastery.ObjectS<NoInfer<{
1008
- enabled: Schema<boolean, boolean, "defined">;
1009
- maxPending: Schema<number, number, "defined">;
1010
- timeoutDays: Schema<number, number, "defined">;
1011
- }>>, Schemastery.ObjectT<NoInfer<{
1012
- enabled: Schema<boolean, boolean, "defined">;
1013
- maxPending: Schema<number, number, "defined">;
1014
- timeoutDays: Schema<number, number, "defined">;
1015
- }>>, "plain">;
1016
- recall: Schema<Schemastery.ObjectS<NoInfer<{
1017
- enabled: Schema<boolean, boolean, "defined">;
1018
- maxResults: Schema<number, number, "defined">;
1019
- maxCharsPerMemory: Schema<number, number, "defined">;
1020
- maxTotalRecallChars: Schema<number, number, "defined">;
1021
- timeoutMs: Schema<number, number, "defined">;
1022
- includePersona: Schema<boolean, boolean, "defined">;
1023
- includeSceneNav: Schema<boolean, boolean, "defined">;
1024
- strategy: Schema<"hybrid" | "keyword" | "embedding", "hybrid" | "keyword" | "embedding", "defined">;
1025
- scoreThreshold: Schema<number, number, "defined">;
1026
- decayHalfLifeDays: Schema<number, number, "defined">;
1027
- scopeFence: Schema<Schemastery.ObjectS<NoInfer<{
1028
- enabled: Schema<boolean, boolean, "defined">;
1029
- crossRepoMultiplier: Schema<number, number, "defined">;
1030
- }>>, Schemastery.ObjectT<NoInfer<{
1031
- enabled: Schema<boolean, boolean, "defined">;
1032
- crossRepoMultiplier: Schema<number, number, "defined">;
1033
- }>>, "plain">;
1034
- }>>, Schemastery.ObjectT<NoInfer<{
1035
- enabled: Schema<boolean, boolean, "defined">;
1036
- maxResults: Schema<number, number, "defined">;
1037
- maxCharsPerMemory: Schema<number, number, "defined">;
1038
- maxTotalRecallChars: Schema<number, number, "defined">;
1039
- timeoutMs: Schema<number, number, "defined">;
1040
- includePersona: Schema<boolean, boolean, "defined">;
1041
- includeSceneNav: Schema<boolean, boolean, "defined">;
1042
- strategy: Schema<"hybrid" | "keyword" | "embedding", "hybrid" | "keyword" | "embedding", "defined">;
1043
- scoreThreshold: Schema<number, number, "defined">;
1044
- decayHalfLifeDays: Schema<number, number, "defined">;
1045
- scopeFence: Schema<Schemastery.ObjectS<NoInfer<{
1046
- enabled: Schema<boolean, boolean, "defined">;
1047
- crossRepoMultiplier: Schema<number, number, "defined">;
1048
- }>>, Schemastery.ObjectT<NoInfer<{
1049
- enabled: Schema<boolean, boolean, "defined">;
1050
- crossRepoMultiplier: Schema<number, number, "defined">;
1051
- }>>, "plain">;
1052
- }>>, "plain">;
1053
- embedding: Schema<Schemastery.ObjectS<NoInfer<{
1054
- enabled: Schema<boolean, boolean, "defined">;
1055
- baseUrl: Schema<string, string, "defined">;
1056
- apiKey: Schema<string, string, "defined">;
1057
- model: Schema<string, string, "defined">;
1058
- dimensions: Schema<number, number, "defined">;
1059
- maxInputChars: Schema<number, number, "defined">;
1060
- timeoutMs: Schema<number, number, "defined">;
1061
- allowLocalModels: Schema<boolean, boolean, "defined">;
1062
- mirror: Schema<string, string, "defined">;
1063
- proxy: Schema<string, string, "defined">;
1064
- }>>, Schemastery.ObjectT<NoInfer<{
1065
- enabled: Schema<boolean, boolean, "defined">;
1066
- baseUrl: Schema<string, string, "defined">;
1067
- apiKey: Schema<string, string, "defined">;
1068
- model: Schema<string, string, "defined">;
1069
- dimensions: Schema<number, number, "defined">;
1070
- maxInputChars: Schema<number, number, "defined">;
1071
- timeoutMs: Schema<number, number, "defined">;
1072
- allowLocalModels: Schema<boolean, boolean, "defined">;
1073
- mirror: Schema<string, string, "defined">;
1074
- proxy: Schema<string, string, "defined">;
1075
- }>>, "plain">;
1076
- llm: Schema<Schemastery.ObjectS<NoInfer<{
1077
- provider: Schema<string, string, "defined">;
1078
- model: Schema<string, string, "defined">;
1079
- mode: Schema<"host" | "direct", "host" | "direct", "defined">;
1080
- baseURL: Schema<string, string, "defined">;
1081
- apiKey: Schema<string, string, "defined">;
1082
- fallbacks: Schema<({
1083
- provider?: string | null | undefined;
1084
- model?: string | null | undefined;
1085
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1086
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1087
- provider: Schema<string, string, "defined">;
1088
- model: Schema<string, string, "defined">;
1089
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1090
- }>>[], "defined">;
1091
- layerRoutes: Schema<Schemastery.ObjectS<NoInfer<{
1092
- l1: Schema<({
1093
- provider?: string | null | undefined;
1094
- model?: string | null | undefined;
1095
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1096
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1097
- provider: Schema<string, string, "defined">;
1098
- model: Schema<string, string, "defined">;
1099
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1100
- }>>[], "defined">;
1101
- l2: Schema<({
1102
- provider?: string | null | undefined;
1103
- model?: string | null | undefined;
1104
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1105
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1106
- provider: Schema<string, string, "defined">;
1107
- model: Schema<string, string, "defined">;
1108
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1109
- }>>[], "defined">;
1110
- l3: Schema<({
1111
- provider?: string | null | undefined;
1112
- model?: string | null | undefined;
1113
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1114
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1115
- provider: Schema<string, string, "defined">;
1116
- model: Schema<string, string, "defined">;
1117
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1118
- }>>[], "defined">;
1119
- }>>, Schemastery.ObjectT<NoInfer<{
1120
- l1: Schema<({
1121
- provider?: string | null | undefined;
1122
- model?: string | null | undefined;
1123
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1124
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1125
- provider: Schema<string, string, "defined">;
1126
- model: Schema<string, string, "defined">;
1127
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1128
- }>>[], "defined">;
1129
- l2: Schema<({
1130
- provider?: string | null | undefined;
1131
- model?: string | null | undefined;
1132
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1133
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1134
- provider: Schema<string, string, "defined">;
1135
- model: Schema<string, string, "defined">;
1136
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1137
- }>>[], "defined">;
1138
- l3: Schema<({
1139
- provider?: string | null | undefined;
1140
- model?: string | null | undefined;
1141
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1142
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1143
- provider: Schema<string, string, "defined">;
1144
- model: Schema<string, string, "defined">;
1145
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1146
- }>>[], "defined">;
1147
- }>>, "defined">;
1148
- maxTokens: Schema<number, number, "defined">;
1149
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1150
- temperature: Schema<number, number, "defined">;
1151
- maxInputChars: Schema<number, number, "defined">;
1152
- timeoutMs: Schema<number, number, "defined">;
1153
- }>>, Schemastery.ObjectT<NoInfer<{
1154
- provider: Schema<string, string, "defined">;
1155
- model: Schema<string, string, "defined">;
1156
- mode: Schema<"host" | "direct", "host" | "direct", "defined">;
1157
- baseURL: Schema<string, string, "defined">;
1158
- apiKey: Schema<string, string, "defined">;
1159
- fallbacks: Schema<({
1160
- provider?: string | null | undefined;
1161
- model?: string | null | undefined;
1162
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1163
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1164
- provider: Schema<string, string, "defined">;
1165
- model: Schema<string, string, "defined">;
1166
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1167
- }>>[], "defined">;
1168
- layerRoutes: Schema<Schemastery.ObjectS<NoInfer<{
1169
- l1: Schema<({
1170
- provider?: string | null | undefined;
1171
- model?: string | null | undefined;
1172
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1173
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1174
- provider: Schema<string, string, "defined">;
1175
- model: Schema<string, string, "defined">;
1176
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1177
- }>>[], "defined">;
1178
- l2: Schema<({
1179
- provider?: string | null | undefined;
1180
- model?: string | null | undefined;
1181
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1182
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1183
- provider: Schema<string, string, "defined">;
1184
- model: Schema<string, string, "defined">;
1185
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1186
- }>>[], "defined">;
1187
- l3: Schema<({
1188
- provider?: string | null | undefined;
1189
- model?: string | null | undefined;
1190
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1191
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1192
- provider: Schema<string, string, "defined">;
1193
- model: Schema<string, string, "defined">;
1194
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1195
- }>>[], "defined">;
1196
- }>>, Schemastery.ObjectT<NoInfer<{
1197
- l1: Schema<({
1198
- provider?: string | null | undefined;
1199
- model?: string | null | undefined;
1200
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1201
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1202
- provider: Schema<string, string, "defined">;
1203
- model: Schema<string, string, "defined">;
1204
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1205
- }>>[], "defined">;
1206
- l2: Schema<({
1207
- provider?: string | null | undefined;
1208
- model?: string | null | undefined;
1209
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1210
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1211
- provider: Schema<string, string, "defined">;
1212
- model: Schema<string, string, "defined">;
1213
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1214
- }>>[], "defined">;
1215
- l3: Schema<({
1216
- provider?: string | null | undefined;
1217
- model?: string | null | undefined;
1218
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1219
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1220
- provider: Schema<string, string, "defined">;
1221
- model: Schema<string, string, "defined">;
1222
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1223
- }>>[], "defined">;
1224
- }>>, "defined">;
1225
- maxTokens: Schema<number, number, "defined">;
1226
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1227
- temperature: Schema<number, number, "defined">;
1228
- maxInputChars: Schema<number, number, "defined">;
1229
- timeoutMs: Schema<number, number, "defined">;
1230
- }>>, "plain">;
1231
- hall: Schema<Schemastery.ObjectS<NoInfer<{
1232
- enabled: Schema<string[], string[], "defined">;
1233
- }>>, Schemastery.ObjectT<NoInfer<{
1234
- enabled: Schema<string[], string[], "defined">;
1235
- }>>, "plain">;
1236
- tokenCost: Schema<Schemastery.ObjectS<NoInfer<{
1237
- retentionDays: Schema<number, number, "defined">;
1238
- }>>, Schemastery.ObjectT<NoInfer<{
1239
- retentionDays: Schema<number, number, "defined">;
1240
- }>>, "plain">;
1241
- slots: Schema<Schemastery.ObjectS<NoInfer<{
1242
- enabled: Schema<boolean, boolean, "defined">;
1243
- inject: Schema<boolean, boolean, "defined">;
1244
- maxSlots: Schema<number, number, "defined">;
1245
- maxAlwaysOnBytes: Schema<number, number, "defined">;
1246
- maxBodyChars: Schema<number, number, "defined">;
1247
- }>>, Schemastery.ObjectT<NoInfer<{
1248
- enabled: Schema<boolean, boolean, "defined">;
1249
- inject: Schema<boolean, boolean, "defined">;
1250
- maxSlots: Schema<number, number, "defined">;
1251
- maxAlwaysOnBytes: Schema<number, number, "defined">;
1252
- maxBodyChars: Schema<number, number, "defined">;
1253
- }>>, "plain">;
1254
- tools: Schema<boolean, boolean, "defined">;
1255
- benchControl: Schema<boolean, boolean, "defined">;
1256
- live: Schema<NoInfer<Schemastery.ObjectS<NoInfer<{
1257
- enabled: Schema<boolean, boolean, "defined">;
1258
- capture: Schema<boolean, boolean, "defined">;
1259
- distill: Schema<boolean, boolean, "defined">;
1260
- recall: Schema<boolean, boolean, "defined">;
1261
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1262
- distillProvider: Schema<string, string, "defined">;
1263
- distillModel: Schema<string, string, "defined">;
1264
- distillChain: Schema<({
1265
- provider?: string | null | undefined;
1266
- model?: string | null | undefined;
1267
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1268
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1269
- provider: Schema<string, string, "defined">;
1270
- model: Schema<string, string, "defined">;
1271
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1272
- }>>[], "defined">;
1273
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
1274
- l1: 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
- l2: 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
- l3: Schema<({
1293
- provider?: string | null | undefined;
1294
- model?: string | null | undefined;
1295
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1296
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1297
- provider: Schema<string, string, "defined">;
1298
- model: Schema<string, string, "defined">;
1299
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1300
- }>>[], "defined">;
1301
- }>>, Schemastery.ObjectT<NoInfer<{
1302
- l1: Schema<({
1303
- provider?: string | null | undefined;
1304
- model?: string | null | undefined;
1305
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1306
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1307
- provider: Schema<string, string, "defined">;
1308
- model: Schema<string, string, "defined">;
1309
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1310
- }>>[], "defined">;
1311
- l2: Schema<({
1312
- provider?: string | null | undefined;
1313
- model?: string | null | undefined;
1314
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1315
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1316
- provider: Schema<string, string, "defined">;
1317
- model: Schema<string, string, "defined">;
1318
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1319
- }>>[], "defined">;
1320
- l3: Schema<({
1321
- provider?: string | null | undefined;
1322
- model?: string | null | undefined;
1323
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1324
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1325
- provider: Schema<string, string, "defined">;
1326
- model: Schema<string, string, "defined">;
1327
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1328
- }>>[], "defined">;
1329
- }>>, "defined">;
1330
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
1331
- extract: Schema<number, number, "defined">;
1332
- dedup: Schema<number, number, "defined">;
1333
- l2: Schema<number, number, "defined">;
1334
- l3: Schema<number, number, "defined">;
1335
- graph: Schema<number, number, "defined">;
1336
- }>>, Schemastery.ObjectT<NoInfer<{
1337
- extract: Schema<number, number, "defined">;
1338
- dedup: Schema<number, number, "defined">;
1339
- l2: Schema<number, number, "defined">;
1340
- l3: Schema<number, number, "defined">;
1341
- graph: Schema<number, number, "defined">;
1342
- }>>, "defined">;
1343
- distillMaxInputChars: Schema<number, number, "defined">;
1344
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
1345
- directBaseURL: Schema<string, string, "defined">;
1346
- directApiKey: Schema<string, string, "defined">;
1347
- embedRemoteBaseURL: Schema<string, string, "defined">;
1348
- embedRemoteApiKey: Schema<string, string, "defined">;
1349
- embedRemoteModel: Schema<string, string, "defined">;
1350
- embedRemoteDimensions: Schema<number, number, "defined">;
1351
- memoryMutate: Schema<boolean, boolean, "defined">;
1352
- conflictFreeze: Schema<boolean, boolean, "defined">;
1353
- toolRoom: Schema<boolean, boolean, "defined">;
1354
- toolGraph: Schema<boolean, boolean, "defined">;
1355
- toolRuminate: Schema<boolean, boolean, "defined">;
1356
- toolConflict: Schema<boolean, boolean, "defined">;
1357
- toolMutate: Schema<boolean, boolean, "defined">;
1358
- }>>>, NoInfer<Schemastery.ObjectT<NoInfer<{
1359
- enabled: Schema<boolean, boolean, "defined">;
1360
- capture: Schema<boolean, boolean, "defined">;
1361
- distill: Schema<boolean, boolean, "defined">;
1362
- recall: Schema<boolean, boolean, "defined">;
1363
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1364
- distillProvider: Schema<string, string, "defined">;
1365
- distillModel: Schema<string, string, "defined">;
1366
- distillChain: Schema<({
1367
- provider?: string | null | undefined;
1368
- model?: string | null | undefined;
1369
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1370
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1371
- provider: Schema<string, string, "defined">;
1372
- model: Schema<string, string, "defined">;
1373
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1374
- }>>[], "defined">;
1375
- distillLayerChains: Schema<Schemastery.ObjectS<NoInfer<{
1376
- l1: Schema<({
1377
- provider?: string | null | undefined;
1378
- model?: string | null | undefined;
1379
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1380
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1381
- provider: Schema<string, string, "defined">;
1382
- model: Schema<string, string, "defined">;
1383
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1384
- }>>[], "defined">;
1385
- l2: Schema<({
1386
- provider?: string | null | undefined;
1387
- model?: string | null | undefined;
1388
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1389
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1390
- provider: Schema<string, string, "defined">;
1391
- model: Schema<string, string, "defined">;
1392
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1393
- }>>[], "defined">;
1394
- l3: Schema<({
1395
- provider?: string | null | undefined;
1396
- model?: string | null | undefined;
1397
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1398
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1399
- provider: Schema<string, string, "defined">;
1400
- model: Schema<string, string, "defined">;
1401
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1402
- }>>[], "defined">;
1403
- }>>, Schemastery.ObjectT<NoInfer<{
1404
- l1: Schema<({
1405
- provider?: string | null | undefined;
1406
- model?: string | null | undefined;
1407
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1408
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1409
- provider: Schema<string, string, "defined">;
1410
- model: Schema<string, string, "defined">;
1411
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1412
- }>>[], "defined">;
1413
- l2: Schema<({
1414
- provider?: string | null | undefined;
1415
- model?: string | null | undefined;
1416
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1417
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1418
- provider: Schema<string, string, "defined">;
1419
- model: Schema<string, string, "defined">;
1420
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1421
- }>>[], "defined">;
1422
- l3: Schema<({
1423
- provider?: string | null | undefined;
1424
- model?: string | null | undefined;
1425
- reasoningEffort?: "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
1426
- } & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
1427
- provider: Schema<string, string, "defined">;
1428
- model: Schema<string, string, "defined">;
1429
- reasoningEffort: Schema<"" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "" | "off" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max", "defined">;
1430
- }>>[], "defined">;
1431
- }>>, "defined">;
1432
- distillBudgets: Schema<Schemastery.ObjectS<NoInfer<{
1433
- extract: Schema<number, number, "defined">;
1434
- dedup: Schema<number, number, "defined">;
1435
- l2: Schema<number, number, "defined">;
1436
- l3: Schema<number, number, "defined">;
1437
- graph: Schema<number, number, "defined">;
1438
- }>>, Schemastery.ObjectT<NoInfer<{
1439
- extract: Schema<number, number, "defined">;
1440
- dedup: Schema<number, number, "defined">;
1441
- l2: Schema<number, number, "defined">;
1442
- l3: Schema<number, number, "defined">;
1443
- graph: Schema<number, number, "defined">;
1444
- }>>, "defined">;
1445
- distillMaxInputChars: Schema<number, number, "defined">;
1446
- distillMode: Schema<"" | "host" | "direct", "" | "host" | "direct", "defined">;
1447
- directBaseURL: Schema<string, string, "defined">;
1448
- directApiKey: Schema<string, string, "defined">;
1449
- embedRemoteBaseURL: Schema<string, string, "defined">;
1450
- embedRemoteApiKey: Schema<string, string, "defined">;
1451
- embedRemoteModel: Schema<string, string, "defined">;
1452
- embedRemoteDimensions: Schema<number, number, "defined">;
1453
- memoryMutate: Schema<boolean, boolean, "defined">;
1454
- conflictFreeze: Schema<boolean, boolean, "defined">;
1455
- toolRoom: Schema<boolean, boolean, "defined">;
1456
- toolGraph: Schema<boolean, boolean, "defined">;
1457
- toolRuminate: Schema<boolean, boolean, "defined">;
1458
- toolConflict: Schema<boolean, boolean, "defined">;
1459
- toolMutate: Schema<boolean, boolean, "defined">;
1460
- }>>>, "volatile">;
1461
- }>>, "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;
1462
398
  export declare function resolveDataDir(cfg: MemoryConfig): string;
1463
399
  /**
1464
400
  * `wing.enabled` 归一化(R14 三条规则,唯一实现点):