dsh-tdai-memory 0.3.0 → 0.3.2
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/client.js +4 -3
- package/package.json +3 -3
package/client.js
CHANGED
|
@@ -185,7 +185,10 @@ window.__ModuleLoader__.load({
|
|
|
185
185
|
var [error, setError] = react.useState(null);
|
|
186
186
|
|
|
187
187
|
react.useEffect(function () {
|
|
188
|
-
|
|
188
|
+
// No refresh call: the scope's public seam has no load() — reads ride the
|
|
189
|
+
// shared describe mirror, which re-reads on every Host
|
|
190
|
+
// `settings/document-updated`. The guarded scope.load() that used to sit
|
|
191
|
+
// here was dead code that read like a refresh that never happened.
|
|
189
192
|
var alive = true;
|
|
190
193
|
var sync = function () { if (alive) setSnapshot(scope.getSnapshot()); };
|
|
191
194
|
var un = typeof scope.subscribe === "function" ? scope.subscribe(sync) : null;
|
|
@@ -258,7 +261,6 @@ window.__ModuleLoader__.load({
|
|
|
258
261
|
}
|
|
259
262
|
setNotice(t("saved"));
|
|
260
263
|
if (response.result.value) setDraft(Object.assign({}, valueToDraft(response.result.value)));
|
|
261
|
-
if (typeof scope.load === "function") scope.load();
|
|
262
264
|
}).catch(function (e) {
|
|
263
265
|
setBusy(false); setError(t("error") + ": " + String(e && e.message || e));
|
|
264
266
|
});
|
|
@@ -275,7 +277,6 @@ window.__ModuleLoader__.load({
|
|
|
275
277
|
if (!response.result.ok) { setError(t("error")); return; }
|
|
276
278
|
setNotice(t("saved"));
|
|
277
279
|
if (response.result.value) setDraft(Object.assign({}, valueToDraft(response.result.value)));
|
|
278
|
-
if (typeof scope.load === "function") scope.load();
|
|
279
280
|
}).catch(function (e) {
|
|
280
281
|
setBusy(false); setError(t("error") + ": " + String(e && e.message || e));
|
|
281
282
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tdai-memory",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "DeepSeek Harness 的 TencentDB Agent Memory 移植:L0 对话捕获 → L1 结构化记忆提取 → L2 场景/L3 画像,自动召回注入 + 记忆/对话搜索工具;复用现有 ~/.memory-tencentdb/memory-tdai 数据;附 Web UI 设置栏。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"react": "^18.2.0",
|
|
66
|
-
"@deepseek-ai/dsh-tools": "^0.1.0-rc.7 || ^0.1.1-rc.1 || ^0.1.2-rc.1",
|
|
67
|
-
"@deepseek-ai/dsh-settings": "^0.1.0-rc.7 || ^0.1.1-rc.1 || ^0.1.2-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-tools": "^0.1.0-rc.7 || ^0.1.1-rc.1 || ^0.1.2-rc.1 || ^0.1.5-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-settings": "^0.1.0-rc.7 || ^0.1.1-rc.1 || ^0.1.2-rc.1 || ^0.1.5-rc.1",
|
|
68
68
|
"node-llama-cpp": "^3.19.1"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|