dsh-memory-palace 1.8.1-alpha.3 → 1.8.1-alpha.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/README.md +9 -7
- package/lib/api.mjs +3 -1
- package/lib/index.js +8 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
把 WorkBuddy 的文件式记忆系统移植进 [DeepSeek Harness](https://www.deepseek.com/harness/) —— 为 Harness 提供**跨会话持久化、人类可直接编辑的 Markdown 记忆**。
|
|
4
4
|
|
|
5
|
-
[](./LICENSE) [](https://awesome-dsh-plugin.com) [](https://www.npmjs.com/package/dsh-memory-palace) [](./LICENSE) [](https://awesome-dsh-plugin.com) [](https://www.npmjs.com/package/dsh-memory-palace) [](https://github.com/deepseek-ai/deepseek-harness) [](#安装)
|
|
6
6
|
|
|
7
7
|
## 特性
|
|
8
8
|
|
|
@@ -120,13 +120,15 @@ dsh plugin --profile web remove dsh-memory-palace
|
|
|
120
120
|
## 版本历史
|
|
121
121
|
|
|
122
122
|
- **1.8.1**
|
|
123
|
+
- **1.8.1-alpha.4**
|
|
124
|
+
- 💪跟随官方移除 webRuntime 更改为 webStartup
|
|
125
|
+
- 💪适配deepseek harness 0.2.1-alpha.1
|
|
123
126
|
- **1.8.1-alpha.3**
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
- 🐛修复 memory_reorganize 工具读取历史工作日志的问题
|
|
127
|
+
- 💥移除「蒸馏项目记忆」手动功能
|
|
128
|
+
- 💥移除 session header 记忆按钮
|
|
129
|
+
- 🔥增加会话命令 memory_reorganize *全量重整项目记忆*
|
|
130
|
+
- 💪优化 memory_write 工具 prompt
|
|
131
|
+
- 🐛修复 memory_reorganize 工具读取历史工作日志的问题
|
|
130
132
|
- **1.8.1-alpha.1**
|
|
131
133
|
- 💥移除「蒸馏会话」手动功能
|
|
132
134
|
- 💥配置项 summaryMaxTokens / feedbackEnabled 删除,旧值静默失效
|
package/lib/api.mjs
CHANGED
|
@@ -122,7 +122,9 @@ export function registerApi({ ctx, getSettingsFace }) {
|
|
|
122
122
|
kind: "prefix",
|
|
123
123
|
path: "/memory-palace/api",
|
|
124
124
|
handler: async (req, res) => {
|
|
125
|
-
|
|
125
|
+
// 信任权威读自 webStartup(dsh 0.2.1-alpha.1 起取代 webRuntime;
|
|
126
|
+
// 值为本次调用的 --trusted-host 清单)。信任栅栏本体见 apiIsTrustedRequest。
|
|
127
|
+
const fence = (r) => apiIsTrustedRequest(r, ctx.webStartup?.trustedHosts ?? []);
|
|
126
128
|
if (!fence(req)) {
|
|
127
129
|
apiWriteJson(res, 403, { ok: false, error: { code: "forbidden", message: "forbidden" } });
|
|
128
130
|
return;
|
package/lib/index.js
CHANGED
|
@@ -97,7 +97,14 @@ export const Config = Schema.object({
|
|
|
97
97
|
customInstructions: Schema.string().default("").description("自定义指令:非空时追加到系统提示词「记忆分工说明」之后,用于承载不适合写进用户记忆的特殊指令。对全部会话生效;留空则不注入。").volatile(),
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
// 适配 dsh 0.2.1-alpha.1——Web 面删除 webRuntime 服务,信任权威改由 webStartup 携带
|
|
101
|
+
// (DSH-CONTRACT-TRACKING.md §1.13)。仍注入旧服务名会等待一个永不挂载的服务:插件永久
|
|
102
|
+
// pending、记忆功能整体失效。
|
|
103
|
+
//
|
|
104
|
+
// 注:inject 是**硬依赖**清单(全部就绪才执行 apply)。其中 webServer/webStartup 都在 Web
|
|
105
|
+
// 组合包内提供,Desktop profile 同样引用该组合包,故两 profile 均可用。若未来要在无 Web 面的
|
|
106
|
+
// profile(如 headless)装载本插件,须把这两个服务改为可选依赖(ctx.inject 回调)而非直接列入。
|
|
107
|
+
export const inject = ["systemPrompt", "tools", "llm", "webServer", "webStartup"];
|
|
101
108
|
|
|
102
109
|
/**
|
|
103
110
|
* (dsh 0.1.7 适配):解包 cordis 解析后的 cosmokit Volatile 引用。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-memory-palace",
|
|
3
|
-
"version": "1.8.1-alpha.
|
|
3
|
+
"version": "1.8.1-alpha.4",
|
|
4
4
|
"description": "把 WorkBuddy 的文件式记忆系统移植进 DeepSeek Harness:用户级 + 工作区的人类可读 Markdown 记忆(~/.deepseek-harness/MEMORY.md 与 <cwd>/.deepseek-harness/memory/)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@deepseek-ai/cordis": "*",
|
|
45
|
-
"@deepseek-ai/dsh-llm": "^0.2.
|
|
46
|
-
"@deepseek-ai/dsh-settings": "^0.2.
|
|
47
|
-
"@deepseek-ai/dsh-tools": "^0.2.
|
|
48
|
-
"@deepseek-ai/schemastery": "
|
|
45
|
+
"@deepseek-ai/dsh-llm": "^0.2.1-alpha.1",
|
|
46
|
+
"@deepseek-ai/dsh-settings": "^0.2.1-alpha.1",
|
|
47
|
+
"@deepseek-ai/dsh-tools": "^0.2.1-alpha.1",
|
|
48
|
+
"@deepseek-ai/schemastery": "~3.18.5-alpha.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@deepseek-ai/dsh-settings": "^0.2.
|
|
51
|
+
"@deepseek-ai/dsh-settings": "^0.2.1-alpha.1"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "node scripts/build.mjs",
|