stratagate-dsh 0.3.3 → 0.3.4
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/CHANGELOG.md +6 -0
- package/dist/client.js +3 -3
- package/dist/plugin.js +308 -52
- package/dist/plugin.js.map +1 -1
- package/docs/DSH.md +6 -0
- package/docs/DSH.zh-CN.md +6 -0
- package/package.json +1 -1
package/docs/DSH.md
CHANGED
|
@@ -197,6 +197,12 @@ config:
|
|
|
197
197
|
# model: deepseek-chat
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
+
Topic Projection has an independent output bound of 32,768 tokens. Advertised model context capacity can lower it after subtracting estimated input and a 1,024-token margin. Other memory tasks retain their existing budget policies. The Host's `defaultMaxTokens` is a default, not a hard capacity declaration; unadvertised provider limits can still fail a request.
|
|
201
|
+
|
|
202
|
+
Topic technical details and task details in `/api/stratagate/overview` distinguish `max-tokens`, `schema-invalid`, `validation-failed`, `timeout`, `provider-failed`, `worker-failed`, and `source-changed`. Diagnostics retain only safe validation rules and numeric/runtime metadata, never raw chat, Event/Topic prose, full model responses, or reasoning. `requested-unverified` means off was requested, not that the provider honored it; observed reasoning is marked separately.
|
|
203
|
+
|
|
204
|
+
Only explicit `finish=max-tokens` splits a failed batch in half, with at most four levels and three attempts per singleton. Each historical child still consumes the shared Bootstrap allowance, without trimming Event evidence. Other failures keep bounded retry and backoff. After automatic attempts are exhausted, the directory retry action (`POST /api/stratagate/topics/retry`, with namespace, jobId and expectedRevision) or `POST /api/stratagate/jobs/retry?namespace=...&kind=topic-projection&jobId=...` queues a fresh job ID. Both paths enforce source versions, reject old results, and persist across restart. Upgrades never automatically revive historical terminal failures.
|
|
205
|
+
|
|
200
206
|
`blockTurnSize` and `blockDecayLambda` are initial fallbacks. Once changed in **Advanced Settings**, persisted UI values take precedence. λ defaults to `0.3`; smaller values forget more slowly and consume more tokens, and values above `0.4` are not recommended.
|
|
201
207
|
|
|
202
208
|
`project` derives a stable namespace from the normalized session working directory. `session` isolates every DSH session. `global` shares one namespace.
|
package/docs/DSH.zh-CN.md
CHANGED
|
@@ -172,6 +172,12 @@ config:
|
|
|
172
172
|
# model: deepseek-chat
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
+
Topic Projection 使用独立的 32,768 token 输出上限;若宿主公布了模型 context window,会扣除估算输入和 1,024 token 余量后进一步降低上限。其他记忆任务继续使用原有预算策略。宿主的 `defaultMaxTokens` 是默认值,不代表模型硬上限;未公布的 provider 限制仍可能导致调用失败。
|
|
176
|
+
|
|
177
|
+
Topic 技术详情及 `/api/stratagate/overview` 的任务详情会区分 `max-tokens`、`schema-invalid`、`validation-failed`、`timeout`、`provider-failed`、`worker-failed` 和 `source-changed`。诊断仅记录安全校验规则、数量、估算 token、请求预算、finish reason、reasoning off 请求/回退状态和尝试次数,不记录原始聊天、Event/Topic 正文、完整模型响应或 reasoning。`requested-unverified` 表示发送了 off 请求,不能证明 provider 实际关闭了 reasoning;若仍观察到 reasoning,会明确标记。
|
|
178
|
+
|
|
179
|
+
只有明确的 `finish=max-tokens` 才会二分失败批次,最多四层,单条批次最多尝试三次;每个历史子批次仍受共用 Bootstrap 额度约束,不裁剪 Event 证据。其他错误维持原有有限重试与退避。自动尝试耗尽后,可通过目录“重新整理这 N 条”(`POST /api/stratagate/topics/retry`,携带 namespace、jobId 和 expectedRevision),或 `POST /api/stratagate/jobs/retry?namespace=...&kind=topic-projection&jobId=...` 重新排队。两条路径均开启新 jobId 周期,检查来源版本并拒绝旧结果,状态在重启后保留。升级不会自动复活历史终态失败。
|
|
180
|
+
|
|
175
181
|
配置文件中的 `blockTurnSize` 和 `blockDecayLambda` 是初始后备值;一旦在“高级设置”中修改,持久化的界面值优先生效。λ 默认值为 `0.3`;数字越小,记忆遗忘越慢、消耗 token 越多,不建议大于 `0.4`。
|
|
176
182
|
|
|
177
183
|
`project` 会根据规范化后的会话工作目录生成稳定的命名空间;`session` 会隔离每个 DSH 会话;`global` 则让所有会话共享同一个命名空间。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stratagate-dsh",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Recent conversations stay vivid. Older ones fade into summaries, not oblivion. StrataGate gives DeepSeek Harness six-layer, time-decaying memory, while lasting events and relationships settle into a knowledge graph. Bring your memories from other AIs with you—no need to start over.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|