dsh-dejavu-memory 0.5.8 → 0.5.9
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 +1 -1
- package/README.zh.md +1 -1
- package/dist/index.js +13 -3
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ The [OpenAI/Codex plugin](https://github.com/RetiredPhysicist/openai-plugins/tre
|
|
|
26
26
|
|---|---|
|
|
27
27
|
| `dejavu_boot` | load at session start: `system://boot`, `system://recent/5`, `system://triggers`, then best-effort `system://briefing`; afterward read `system://focus` (recent is a briefing subset — no need to re-read it after boot) |
|
|
28
28
|
| `dejavu_read` | read a memory by URI (`system://…`, `dejavu://agent`, …) |
|
|
29
|
-
| `dejavu_search` | search memories
|
|
29
|
+
| `dejavu_search` | search memories via `search_memory`: keyword / trigger recall first, semantic hits when they fall short; `mode` and `prefix` scope the query |
|
|
30
30
|
| `dejavu_create` | create a memory node (`[Baseline]`/`[Deviation]`/`[Result]`/`[Reusable judgment]`) |
|
|
31
31
|
| `dejavu_update` | full replace, patch (old_string/new_string), or append; optional `relation` |
|
|
32
32
|
| `dejavu_delete` | delete a memory by URI (`delete_memory`) |
|
package/README.zh.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|---|---|
|
|
27
27
|
| `dejavu_boot` | 会话开始加载:`system://boot`、`system://recent/5`、`system://triggers`,再 best-effort 读 `system://briefing`;随后读 `system://focus`(`recent` 是 briefing 子集——boot 之后不必再单独读) |
|
|
28
28
|
| `dejavu_read` | 按 URI 读记忆(`system://…`、`dejavu://agent`…) |
|
|
29
|
-
| `dejavu_search` | 搜记忆(
|
|
29
|
+
| `dejavu_search` | 搜记忆(服务端 `search_memory`:关键词/触发词优先,不够再叠语义;`mode` 与 `prefix` 控制范围) |
|
|
30
30
|
| `dejavu_create` | 新建记忆节点(支持 `[Baseline]`/`[Deviation]`/`[Result]`/`[Reusable judgment]`) |
|
|
31
31
|
| `dejavu_update` | 全文替换、patch(old_string/new_string)或 append;可选 `relation` |
|
|
32
32
|
| `dejavu_delete` | 按 URI 删除记忆(`delete_memory`) |
|
package/dist/index.js
CHANGED
|
@@ -278,7 +278,15 @@ export function apply(ctx, config) {
|
|
|
278
278
|
parameters: {
|
|
279
279
|
query: { type: 'string', required: true, description: 'Concept or keywords to search for' },
|
|
280
280
|
limit: { type: 'number', description: 'Max results (1-50, default 20)' },
|
|
281
|
-
|
|
281
|
+
mode: {
|
|
282
|
+
type: 'string',
|
|
283
|
+
enum: ['auto', 'fts', 'hybrid'],
|
|
284
|
+
description: 'Default auto: answers from keywords when they fill the request, then adds semantic hits. hybrid always fuses both; fts is keyword-only and makes no embedding call.',
|
|
285
|
+
},
|
|
286
|
+
prefix: {
|
|
287
|
+
type: 'string',
|
|
288
|
+
description: 'Project scope: only paths at or below this prefix, e.g. agent/work. One personal tree, no tenants.',
|
|
289
|
+
},
|
|
282
290
|
},
|
|
283
291
|
output: {
|
|
284
292
|
schema: { type: 'string' },
|
|
@@ -293,8 +301,10 @@ export function apply(ctx, config) {
|
|
|
293
301
|
const arguments_ = { query: args.query };
|
|
294
302
|
if (args.limit !== undefined)
|
|
295
303
|
arguments_.limit = args.limit;
|
|
296
|
-
if (args.
|
|
297
|
-
arguments_.
|
|
304
|
+
if (args.mode)
|
|
305
|
+
arguments_.mode = args.mode;
|
|
306
|
+
if (args.prefix)
|
|
307
|
+
arguments_.prefix = args.prefix;
|
|
298
308
|
const data = await c.call('tools/call', {
|
|
299
309
|
name: MCP_TOOLS.search,
|
|
300
310
|
arguments: arguments_,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-dejavu-memory",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "DeepSeek Harness plugin: DejaVu memory client — automated long-term memory (boot/read/search/create/update/delete) backed by your own DejaVu MCP server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
],
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@deepseek-ai/cordis": "~4.0
|
|
34
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
35
|
-
"@deepseek-ai/schemastery": "~3.
|
|
33
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
34
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
35
|
+
"@deepseek-ai/schemastery": "~3.19.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^26.6.5",
|
|
@@ -52,5 +52,8 @@
|
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=26"
|
|
55
|
+
},
|
|
56
|
+
"overrides": {
|
|
57
|
+
"zod": "4.6.7"
|
|
55
58
|
}
|
|
56
59
|
}
|