dsh-agent-memory-hub 0.0.0-stage → 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 CHANGED
@@ -1,3 +1,54 @@
1
- # Temporary Holding Version
1
+ # dsh-agent-memory-hub — DSH 插件
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [agent-memory-hub](https://github.com/zhiwuli0228/agent-memory-hub) 的 DeepSeek Harness(DSH)宿主适配层:一个薄的 cordis 插件壳,把记忆中枢的 8 个 `memory_*` 工具挂进 DSH。全部记忆逻辑在 [`agent-memory-hub`](https://www.npmjs.com/package/agent-memory-hub) core(已随本包 esbuild 打包,约 42KB,零运行时依赖)。
4
+
5
+ ## 安装
6
+
7
+ DSH 内(插件管理 / `plugin_manager`):
8
+
9
+ ```
10
+ install_bundle dsh-agent-memory-hub@0.1.0
11
+ ```
12
+
13
+ 或任何 npm 客户端:`npm i dsh-agent-memory-hub`
14
+
15
+ ## 配置
16
+
17
+ 插件的 hub 目录解析顺序:`$MEMHUB_ROOT` → 会话工作目录里含 `hub.yaml` 的目录 → 合成目录。
18
+ 想固定指向某个 hub,在你的 profile patch 里 override:
19
+
20
+ ```yaml
21
+ - override:
22
+ id: agent-memory-hub-dsh
23
+ config:
24
+ root: 'C:\mem\my-hub'
25
+ ```
26
+
27
+ 与旧版 `dsh-memory-hub` 插件共存时,加 `toolConflict: suffix`(工具注册为 `memory_*__amh`)。
28
+
29
+ ## 工具面(8 个)
30
+
31
+ | 工具 | 作用 |
32
+ |---|---|
33
+ | `memory_search` / `memory_get` | 本地检索(CJK 分词 + 倒排 + BM25-lite)/ 读单条 |
34
+ | `memory_status` | 自检 + **数据新鲜度**(lastPullAt/lastPublishedAt/lastExtractAt)|
35
+ | `memory_propose` | 创建候选提案(**永不直接写 knowledge/**,人工批准闸门)|
36
+ | `memory_preflight` / `memory_inject` | 上下文注入(L0 静态包)|
37
+ | `memory_cite` / `memory_close_task` | 引用记账 / 任务收尾 |
38
+ | `memory_journal` / `memory_dejavu` | 情景日志 / 会话去重索引 |
39
+
40
+ ## 运行时零网络
41
+
42
+ 检索、提案、批准、引用全部走本地文件(`knowledge/` + 倒排索引)。远端记忆库服务只是**发布/同步通道**:`memhub publish`(可定义出口,ADR-0015)失败自动降级报错、水位线不动、重试安全——远端挂了不影响任何宿主的运行时效果,agent 可通过 `memory_status` 的 freshness 字段感知知识边界。
43
+
44
+ ## 跨宿主
45
+
46
+ 同一核心也以独立 MCP server / CLI 分发(`npm i agent-memory-hub`):
47
+
48
+ ```sh
49
+ memhub mcp --root <hub> # Claude Code / OpenCode 等 MCP 宿主挂载
50
+ memhub extract material # 任何 workflow 平台的定时萃取原料
51
+ memhub publish # 按你定义的出口发布到团队记忆库
52
+ ```
53
+
54
+ 规范与对接文档:[docs/02-spec](https://github.com/zhiwuli0228/agent-memory-hub/tree/main/docs/02-spec) · [docs/03-usage](https://github.com/zhiwuli0228/agent-memory-hub/tree/main/docs/03-usage)
@@ -0,0 +1,16 @@
1
+ # dsh-agent-memory-hub bundle patch: one host plugin row.
2
+ # root: '' (empty) means the hub directory resolves from $MEMHUB_ROOT, or the
3
+ # session working directory when it contains a hub (hub.yaml), else synthetic.
4
+ # Point it at a fixed hub by overriding this row's config in your own profile
5
+ # patch, e.g.:
6
+ # - override:
7
+ # id: agent-memory-hub-dsh
8
+ # config:
9
+ # root: 'C:\mem\my-hub'
10
+ # Coexisting with the legacy dsh-memory-hub plugin? Add `toolConflict: suffix`
11
+ # so tools register as memory_*__amh instead of erroring on name clashes.
12
+ - insert:
13
+ - id: agent-memory-hub-dsh
14
+ name: dsh-agent-memory-hub
15
+ config:
16
+ root: ''