@modusensus/dsh-mneme 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 CHANGED
@@ -1,6 +1,11 @@
1
1
  # dsh-mneme
2
2
 
3
- > 给 DeepSeek Harness 的跨会话记忆插件:让 Agent 记住你、记住项目、自动整理记忆。
3
+ [![npm version](https://img.shields.io/npm/v/@modusensus/dsh-mneme?color=blue&label=npm)](https://www.npmjs.com/package/@modusensus/dsh-mneme)
4
+ [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
5
+ [![dsh-plugin](https://img.shields.io/badge/dsh-plugin-awesome-orange)](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
6
+ [![tests](https://img.shields.io/badge/tests-104%20passed-success)](https://github.com/modusensus/dsh-mneme)
7
+
8
+ > 给 DeepSeek Harness 的跨会话记忆插件:让 Agent 记住你、记住项目、自动整理记忆。**Mneme**(Μνήμη)——希腊记忆女神 Mnemosyne 之名,掌管记忆与梦境,正如 autoDream 在后台巩固记忆。
4
9
 
5
10
  `dsh-mneme` 是一个 [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) 插件,为 Agent 提供持久的跨会话记忆能力。它借鉴了 Claude 的 **Dream 机制** 与 cc-haha / Claude Code 的 **autoDream** 实现思路——不仅**存储**记忆,还会**自动巩固**(去重、合并、冲突裁决、摘要生成),让记忆库越用越精炼。
6
11
 
@@ -53,55 +58,44 @@
53
58
 
54
59
  #### 方式一:npm 安装(推荐)
55
60
 
61
+ dsh-mneme 是一个 **bundle**(声明了 `dsh.bundle` manifest),安装即自动激活,无需手动写配置:
62
+
56
63
  ```bash
57
- # 1. DSH web profile 安装插件
64
+ # 1. 安装插件(自动注册 bundle 层)
58
65
  dsh plugin --profile web add @modusensus/dsh-mneme
59
66
 
60
- # 2. 在 ~/.dsh/profiles/web/cordis.patch.yml 注册插件(见下方配置块)
61
- # 3. 重启
67
+ # 2. 重启
62
68
  dsh web
63
69
  ```
64
70
 
71
+ > 如需自定义配置(阈值、延迟等),可在 `~/.dsh/profiles/web/cordis.patch.yml` 中按 `id: dsh-mneme` 覆盖默认值(见下方配置表)。
72
+
65
73
  #### 方式二:从源码安装
66
74
 
67
75
  ```bash
68
76
  git clone https://github.com/modusensus/dsh-mneme.git
77
+ cd dsh-mneme
78
+ dsh plugin --profile web add .
79
+ dsh web
69
80
  ```
70
81
 
71
- `~/.dsh/profiles/web/package.json` 添加依赖:
72
-
73
- ```json
74
- {
75
- "dependencies": {
76
- "@modusensus/dsh-mneme": "file:/path/to/dsh-mneme"
77
- }
78
- }
79
- ```
82
+ #### 自定义配置(可选)
80
83
 
81
- #### 插件注册(`~/.dsh/profiles/web/cordis.patch.yml`)
84
+ 默认配置即可用。如需调整,在 `~/.dsh/profiles/web/cordis.patch.yml` 中覆盖:
82
85
 
83
86
  ```yaml
84
- - insert:
85
- - id: dsh-mneme
86
- name: '@modusensus/dsh-mneme'
87
- config:
88
- memoryDir: ~/.dsh/memory
89
- autoInject: true
90
- autoSummarize: true
91
- maxInjectedItems: 5
92
- importanceThreshold: 3
93
- autoDream: true
94
- dreamThresholdCount: 10
95
- dreamThresholdChars: 5000
96
- dreamDelayMs: 2000
97
- ```
98
-
99
- 最后安装依赖并重启:
100
-
101
- ```bash
102
- cd ~/.dsh/profiles/web
103
- pnpm install
104
- dsh web
87
+ - id: dsh-mneme
88
+ name: '@modusensus/dsh-mneme'
89
+ config:
90
+ memoryDir: ~/.dsh/memory
91
+ autoInject: true
92
+ autoSummarize: true
93
+ maxInjectedItems: 5
94
+ importanceThreshold: 3
95
+ autoDream: true
96
+ dreamThresholdCount: 10
97
+ dreamThresholdChars: 5000
98
+ dreamDelayMs: 2000
105
99
  ```
106
100
 
107
101
  ## ⚙️ 配置
@@ -0,0 +1,15 @@
1
+ # dsh-mneme bundle patch — the layer applied when a profile lists this bundle.
2
+ # Installed via: dsh plugin --profile <name> add @modusensus/dsh-mneme
3
+ - insert:
4
+ - id: dsh-mneme
5
+ name: '@modusensus/dsh-mneme'
6
+ config:
7
+ memoryDir: ~/.dsh/memory
8
+ autoInject: true
9
+ autoSummarize: true
10
+ maxInjectedItems: 5
11
+ importanceThreshold: 3
12
+ autoDream: true
13
+ dreamThresholdCount: 10
14
+ dreamThresholdChars: 5000
15
+ dreamDelayMs: 2000
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@modusensus/dsh-mneme",
3
3
  "description": "Cross-session memory plugin for DeepSeek Harness with autoDream consolidation: SQLite+FTS5 store, Markdown mirrors, 6 model tools, automatic injection, session summarization, and a Web GUI panel",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",
@@ -14,11 +14,14 @@
14
14
  },
15
15
  "./package.json": "./package.json"
16
16
  },
17
- "files": ["lib", "src"],
17
+ "files": ["lib", "src", "cordis.patch.yml"],
18
18
  "dsh": {
19
19
  "client": {
20
20
  "inject": ["slots", "locale", "layout", "connection"],
21
21
  "platform": "web"
22
+ },
23
+ "bundle": {
24
+ "patch": "./cordis.patch.yml"
22
25
  }
23
26
  },
24
27
  "peerDependencies": {