dsh-feiyu-memgate 0.1.0 → 0.1.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.md +2 -2
- package/README.zh.md +2 -2
- package/client/client.js +8 -2
- package/docs/DETAIL.en.md +2 -2
- package/docs/DETAIL.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -216,9 +216,9 @@ The setup survives closing or reloading the page. After a DSH restart in the mid
|
|
|
216
216
|
- **One store per tier.** The plugin uses a single gateway client and a single store per tier. It does not keep separate memories per user or per project.
|
|
217
217
|
- **The settings page depends on host UI interfaces that are still changing.** The plugin works without it: every setting can be changed with `/memgate` or in the profile file.
|
|
218
218
|
- **Forgetting is experimental** and has been tested only in simulations.
|
|
219
|
-
- **Real-host testing.** Tested in the installed DeepSeek Harness 0.2.2-rc.1 on Windows 11 with an isolated profile: the plugin loads, the bundled gateway starts with a Python from PATH, the settings page renders and saves, the status and model routes answer only to the owner session, the chat command works, and with the add-on and bge-small-zh-v1.5 the local tier is used and reworded questions find their memories. Not tested: macOS and Linux desktops, the Desktop application's own window (the web profile of the same host was used), a conversation with a real model (automatic recall and the two tools were exercised in tests and against the gateway, not in a live chat)
|
|
219
|
+
- **Real-host testing.** Tested in the installed DeepSeek Harness 0.2.2-rc.1 on Windows 11 with an isolated profile: the plugin loads, the bundled gateway starts with a Python from PATH, the settings page renders and saves, the status and model routes answer only to the owner session, the chat command works, and with the add-on and bge-small-zh-v1.5 the local tier is used and reworded questions find their memories. Installing the add-on from npm through the settings page was run too, with the dependency's install script refused: the add-on is installed and enabled, the model is downloaded and the local tier takes over (the path that allows the script was not run). Not tested: macOS and Linux desktops, the Desktop application's own window (the web profile of the same host was used), and a conversation with a real model (automatic recall and the two tools were exercised in tests and against the gateway, not in a live chat).
|
|
220
220
|
- **Other versions and systems.** Other DSH versions in the accepted ranges, other operating systems and other Python builds are not covered by a real-host test.
|
|
221
|
-
- This is version 0.1.
|
|
221
|
+
- This is version 0.1.1.
|
|
222
222
|
|
|
223
223
|
## Troubleshooting
|
|
224
224
|
|
package/README.zh.md
CHANGED
|
@@ -216,9 +216,9 @@ profile 的 `cordis.patch.yml` 里,一行会整个替换同一个 `id` 那一
|
|
|
216
216
|
- **每种检索方式只有一个存储。** 插件只用一个网关客户端和每种方式一个存储,不按用户或项目分开保存记忆。
|
|
217
217
|
- **设置页面依赖宿主里仍在变化的界面接口。** 没有它插件照样能用:每项设置都能用 `/memgate` 或在 profile 文件里修改。
|
|
218
218
|
- **遗忘是实验性的**,只在模拟里测过。
|
|
219
|
-
- **真实环境测试。** 在 Windows 11 上已安装的 DeepSeek Harness 0.2.2-rc.1 里,用一个隔离的配置测过:插件能加载,自带网关用 PATH 上的 Python 启动,设置页面能显示和保存,状态接口和模型接口只回应所有者的会话,聊天命令可用;装上向量插件和 bge-small-zh-v1.5 后用的是 local
|
|
219
|
+
- **真实环境测试。** 在 Windows 11 上已安装的 DeepSeek Harness 0.2.2-rc.1 里,用一个隔离的配置测过:插件能加载,自带网关用 PATH 上的 Python 启动,设置页面能显示和保存,状态接口和模型接口只回应所有者的会话,聊天命令可用;装上向量插件和 bge-small-zh-v1.5 后用的是 local 检索方式,换了说法的问题能找到对应的记忆。通过设置页面从 npm 安装向量插件也测过,测的是拒绝依赖的安装脚本这条路:向量插件装好并启用,模型下载完成,检索方式换成 local(允许脚本的那条路没有跑过)。没有测过:macOS 和 Linux 桌面、桌面应用自己的窗口(用的是同一宿主的 web 配置)、和真实模型的对话(自动召回和两个工具只在测试里和对着网关测过,没有在实际聊天里用过)。
|
|
220
220
|
- **其他版本和系统。** 可接受范围内的其他 DSH 版本、其他操作系统和其他 Python 构建,都没有在真实宿主里测过。
|
|
221
|
-
- 当前版本是 0.1.
|
|
221
|
+
- 当前版本是 0.1.1。
|
|
222
222
|
|
|
223
223
|
## 故障排查
|
|
224
224
|
|
package/client/client.js
CHANGED
|
@@ -1066,6 +1066,12 @@ window.__ModuleLoader__.load({ id: 'dsh-feiyu-memgate', factory: (require) => {
|
|
|
1066
1066
|
body)
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
|
+
// The answer to a click and the stored state of the chain often carry the same failure (a declined
|
|
1070
|
+
// install script is both). Found in a real host: the message was shown twice. Show the stored one.
|
|
1071
|
+
function sameProblem(a, b) {
|
|
1072
|
+
return Boolean(a && b && a.code && a.code === b.code)
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1069
1075
|
function Problem(props) {
|
|
1070
1076
|
const { problem, lang, t } = props
|
|
1071
1077
|
if (!problem) return null
|
|
@@ -1187,7 +1193,7 @@ window.__ModuleLoader__.load({ id: 'dsh-feiyu-memgate', factory: (require) => {
|
|
|
1187
1193
|
view.python && view.python.problem ? h(Problem, { problem: view.python.problem, lang, t }) : null,
|
|
1188
1194
|
line ? h('p', { style: S.note, role: 'status' }, line) : null,
|
|
1189
1195
|
view.chain && view.chain.error ? h(Problem, { problem: view.chain.error, lang, t }) : null,
|
|
1190
|
-
refusal ? h(Problem, { problem: refusal, lang, t }) : null,
|
|
1196
|
+
refusal && !sameProblem(refusal, view.chain && view.chain.error) ? h(Problem, { problem: refusal, lang, t }) : null,
|
|
1191
1197
|
declined ? h('p', { style: S.note, role: 'status' }, t('declined')) : null,
|
|
1192
1198
|
view.builds
|
|
1193
1199
|
? h('div', { style: S.confirm, role: 'dialog', 'aria-label': t('phase.builds') },
|
|
@@ -1310,7 +1316,7 @@ window.__ModuleLoader__.load({ id: 'dsh-feiyu-memgate', factory: (require) => {
|
|
|
1310
1316
|
// For tests: the page's pure parts and components.
|
|
1311
1317
|
internals: {
|
|
1312
1318
|
FIELDS, NS, ROW_KEY, STATUS_ROUTE, MODELS_ROUTE, dictionaries, fieldView, buildOps, saveDraft, statusRows, checkText,
|
|
1313
|
-
fetchStatus, fetchModels, postModels, pickText, formatSize, memoryText, modelActions, chainLine, SettingsPage, SettingsBody, ModelsSection,
|
|
1319
|
+
fetchStatus, fetchModels, postModels, pickText, formatSize, memoryText, modelActions, chainLine, sameProblem, SettingsPage, SettingsBody, ModelsSection,
|
|
1314
1320
|
ModelRowForTests: ModelRow,
|
|
1315
1321
|
},
|
|
1316
1322
|
}
|
package/docs/DETAIL.en.md
CHANGED
|
@@ -72,8 +72,8 @@ An add-on that is installed but not switched on (for example after a `dsh plugin
|
|
|
72
72
|
- Only memories the model chose to save exist, unless automatic capture is on.
|
|
73
73
|
- The daily write cap is counted in memory, per DSH process, and starts again when the gateway restarts.
|
|
74
74
|
- The settings page depends on host UI interfaces that are still changing; without it, every setting can be changed with `/memgate` or in the profile file.
|
|
75
|
-
- Real-host testing. Tested in the installed DeepSeek Harness 0.2.2-rc.1 on Windows 11 with an isolated profile: the plugin loads, the bundled gateway starts with a Python from PATH, the settings page renders and saves, the status and model routes answer only to the owner session, the chat command works, and with the add-on and bge-small-zh-v1.5 the local tier is used and reworded questions find their memories. Not tested: macOS and Linux desktops, the Desktop application's own window (the web profile of the same host was used), a conversation with a real model (automatic recall and the two tools were exercised in tests and against the gateway, not in a live chat)
|
|
76
|
-
- This is version 0.1.
|
|
75
|
+
- Real-host testing. Tested in the installed DeepSeek Harness 0.2.2-rc.1 on Windows 11 with an isolated profile: the plugin loads, the bundled gateway starts with a Python from PATH, the settings page renders and saves, the status and model routes answer only to the owner session, the chat command works, and with the add-on and bge-small-zh-v1.5 the local tier is used and reworded questions find their memories. Installing the add-on from npm through the settings page was run too, with the dependency's install script refused: the add-on is installed and enabled, the model is downloaded and the local tier takes over (the path that allows the script was not run). Not tested: macOS and Linux desktops, the Desktop application's own window (the web profile of the same host was used), and a conversation with a real model (automatic recall and the two tools were exercised in tests and against the gateway, not in a live chat).
|
|
76
|
+
- This is version 0.1.1.
|
|
77
77
|
|
|
78
78
|
## Troubleshooting
|
|
79
79
|
|
package/docs/DETAIL.md
CHANGED
|
@@ -72,8 +72,8 @@ dsh plugin --profile <name> add dsh-feiyu-memgate
|
|
|
72
72
|
- 只有模型选择保存的记忆才存在,除非打开自动记录。
|
|
73
73
|
- 每日写入上限在内存里计数,按 DSH 进程计,网关重启后重新开始。
|
|
74
74
|
- 设置页面依赖宿主里仍在变化的界面接口;没有它,用 `/memgate` 或 profile 文件也能改全部设置。
|
|
75
|
-
- 真实环境测试:在 Windows 11 上已安装的 DeepSeek Harness 0.2.2-rc.1 里,用一个隔离的配置测过:插件能加载,自带网关用 PATH 上的 Python 启动,设置页面能显示和保存,状态接口和模型接口只回应所有者的会话,聊天命令可用;装上向量插件和 bge-small-zh-v1.5 后用的是 local
|
|
76
|
-
- 当前版本是 0.1.
|
|
75
|
+
- 真实环境测试:在 Windows 11 上已安装的 DeepSeek Harness 0.2.2-rc.1 里,用一个隔离的配置测过:插件能加载,自带网关用 PATH 上的 Python 启动,设置页面能显示和保存,状态接口和模型接口只回应所有者的会话,聊天命令可用;装上向量插件和 bge-small-zh-v1.5 后用的是 local 检索方式,换了说法的问题能找到对应的记忆。通过设置页面从 npm 安装向量插件也测过,测的是拒绝依赖的安装脚本这条路:向量插件装好并启用,模型下载完成,检索方式换成 local(允许脚本的那条路没有跑过)。没有测过:macOS 和 Linux 桌面、桌面应用自己的窗口(用的是同一宿主的 web 配置)、和真实模型的对话(自动召回和两个工具只在测试里和对着网关测过,没有在实际聊天里用过)。
|
|
76
|
+
- 当前版本是 0.1.1。
|
|
77
77
|
|
|
78
78
|
## 遇到问题
|
|
79
79
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-feiyu-memgate",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "DeepSeek Harness (DSH) plugin for the feiyu-memgate memory gateway: automatic recall, remember and search tools, with a bundled gateway.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|