dsh-layered-memory 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -139,6 +139,8 @@ the bundle layer appends and causes `duplicate loader entry id` startup failure)
139
139
  | `l3.interval` | `20` | L3 distillation interval (new-memory count) |
140
140
  | `recall.enabled` | `true` | Auto recall |
141
141
  | `recall.maxResults` | `5` | L1 records injected per step |
142
+ | `recall.includePersona` | `true` | Inject persona context on recall (`<user-persona>`) |
143
+ | `recall.includeSceneNav` | `true` | Inject scene navigation on recall (`<scene-navigation>`) |
142
144
  | `recall.strategy` | `hybrid` | Retrieval strategy: `keyword` / `embedding` / `hybrid` |
143
145
  | `recall.scoreThreshold` | `0.3` | Recall score threshold (below is not injected; applies to keyword/embedding only, not pre-fusion hybrid; tool path unfiltered) |
144
146
  | `embedding.enabled` | `false` | Vector retrieval switch; off = pure FTS |
@@ -146,6 +148,8 @@ the bundle layer appends and causes `duplicate loader entry id` startup failure)
146
148
  | `embedding.apiKey` | empty | API key |
147
149
  | `embedding.model` | empty | embedding model name |
148
150
  | `embedding.dimensions` | `0` | Vector dimensions (required when enabled; must match model output) |
151
+ | `embedding.maxInputChars` | `5000` | Max characters per text (overlong inputs truncated) |
152
+ | `embedding.timeoutMs` | `10000` | Per-call embedding timeout (ms) |
149
153
  | `embedding.allowLocalModels` | `true` | Allow the local embedding tier (deployment ceiling; when off, no model downloads and no local tier in settings) |
150
154
  | `embedding.mirror` | `https://hf-mirror.com` | Download mirror root for local models (can be changed back to `https://huggingface.co`) |
151
155
  | `llm.provider/model` | empty | Distillation model override (defaults to current selection) |
@@ -153,6 +157,7 @@ the bundle layer appends and causes `duplicate loader entry id` startup failure)
153
157
  | `llm.reasoningEffort` | `off` | Distillation reasoning-effort tier (deployment default): `off` / `high` / `max`; empty string = don't send (follow model default). Distillation is structured extraction, so thinking is off by default — a reasoning model (e.g. v4-flash) at its default `high` tier can consume the entire output budget on thinking, leaving 0 chars of text; set to empty string for models that don't recognize the effort parameter. Switchable at runtime in Settings → Memory → Overview ("follow config" falls back to this value) |
154
158
  | `llm.temperature` | `0.3` | Distillation temperature |
155
159
  | `llm.maxInputChars` | `700000` | Input character budget per distillation call (over-budget L1 inputs are chunked automatically) |
160
+ | `llm.timeoutMs` | `120000` | Per-call distillation timeout (ms) |
156
161
  | `tools` | `true` | Whether to register model-callable memory tools |
157
162
 
158
163
  ## Storage Layout
package/README.md CHANGED
@@ -44,7 +44,7 @@ L0 捕获 → L1 原子记忆 → L2 场景整合 → L3 画像蒸馏,模型
44
44
  - **控件**:输入栏内、模式选择器右侧的 pill(`记忆·自动`),点击在上方浮出 macOS
45
45
  风格滑动选择器——拖拽松手吸附最近档位;深浅主题自适应;
46
46
  - 每会话的选择按 sessionId 持久化到 `session-modes.json`,重启/恢复会话不丢;
47
- 与全局开关叠加(全局是总闸);L2/L3 完全分族,间族内容不渗透。
47
+ 与全局开关叠加(全局是总闸);L2/L3 完全分族,跨族内容不渗透。
48
48
 
49
49
  ## 快速开始
50
50
 
@@ -128,6 +128,8 @@ npx tsc src/smoke.ts --outDir dist-smoke --module nodenext --moduleResolution no
128
128
  | `l3.interval` | `20` | L3 蒸馏间隔(新记忆条数) |
129
129
  | `recall.enabled` | `true` | 自动召回 |
130
130
  | `recall.maxResults` | `5` | 每步召回注入的 L1 条数 |
131
+ | `recall.includePersona` | `true` | 召回时注入画像上下文(`<user-persona>`) |
132
+ | `recall.includeSceneNav` | `true` | 召回时注入场景导航(`<scene-navigation>`) |
131
133
  | `recall.strategy` | `hybrid` | 检索策略:`keyword` / `embedding` / `hybrid` |
132
134
  | `recall.scoreThreshold` | `0.3` | 召回分数阈值(低于不注入;仅 keyword/embedding 策略生效,hybrid 融合前不过滤;工具路径不过滤) |
133
135
  | `embedding.enabled` | `false` | 向量检索开关;关闭即纯 FTS 运行 |
@@ -135,6 +137,8 @@ npx tsc src/smoke.ts --outDir dist-smoke --module nodenext --moduleResolution no
135
137
  | `embedding.apiKey` | 空 | API Key |
136
138
  | `embedding.model` | 空 | embedding 模型名 |
137
139
  | `embedding.dimensions` | `0` | 向量维度(启用时必填,须与模型输出一致) |
140
+ | `embedding.maxInputChars` | `5000` | 单条文本最大字符数(超长截断) |
141
+ | `embedding.timeoutMs` | `10000` | 单次 embedding 调用超时(ms) |
138
142
  | `embedding.allowLocalModels` | `true` | 允许本地嵌入档(部署上限:关闭后设置页不能下载模型、不能切本地档) |
139
143
  | `embedding.mirror` | `https://hf-mirror.com` | 本地模型下载镜像根地址(可改回官方 `https://huggingface.co`) |
140
144
  | `llm.provider/model` | 空 | 蒸馏模型覆盖(默认用当前默认选择) |
@@ -142,6 +146,7 @@ npx tsc src/smoke.ts --outDir dist-smoke --module nodenext --moduleResolution no
142
146
  | `llm.reasoningEffort` | `off` | 蒸馏思考档位(部署默认):`off` / `high` / `max`,空串不传(跟随模型默认)。蒸馏是结构化抽取任务,默认关思考——推理模型(如 v4-flash)默认 high 档的思考可把任意输出预算全部吃光导致正文 0 字符;非推理模型不认识 effort 时需设为空串。运行时可在设置页 → 记忆 → 概览临时切换(选"跟随配置"即回退本值) |
143
147
  | `llm.temperature` | `0.3` | 蒸馏温度 |
144
148
  | `llm.maxInputChars` | `700000` | 单次蒸馏输入字符预算(超限的 L1 输入自动分块抽取) |
149
+ | `llm.timeoutMs` | `120000` | 单次蒸馏调用超时(ms) |
145
150
  | `tools` | `true` | 是否注册模型可调用的记忆工具 |
146
151
 
147
152
  ## 存储布局
Binary file