@a9i5k4/dsh-auto-memory 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +54 -26
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,26 +1,34 @@
1
- # dsh-auto-memory — DSH 自动记忆插件
1
+ # dsh-auto-memory — DSH Auto Memory Plugin / DSH 自动记忆插件
2
+
3
+ An auto-memory plugin for the DeepSeek Harness Web GUI: three-layer memory (user-level / project notes / daily logs) with automatic injection and retrieval, daily reflections, a visual panel and settings page, plus inheritance of memories from other AI tools.
2
4
 
3
5
  DSH Web GUI 的记忆插件:三层记忆(用户级 / 项目笔记 / 每日日志)自动注入与检索、每日反思、可视化面板与设置页,支持继承其他 AI 工具的历史记忆。
4
6
 
5
- ## ✨ 功能
7
+ ---
8
+
9
+ ## ✨ Features / 功能
6
10
 
7
- | 层 | 位置 | 说明 |
11
+ | Layer / 层 | Location / 位置 | Description / 说明 |
8
12
  |---|---|---|
9
- | 用户级记忆 | `~/.dsh/memory/MEMORY.md` | 跨项目规则/偏好(用户明确要求时写) |
10
- | 项目笔记 | `{工作区}/.dsh-memory/MEMORY.md` | 项目长期约定、决策、架构要点 |
11
- | 每日日志 | `{工作区}/.dsh-memory/YYYY-MM-DD.md` | append-only 工作日志 |
12
- | 反思 | `{工作区}/.dsh-memory/reflections/YYYY-MM-DD.md` | 每日反思(自动提示生成) |
13
+ | User-level memory / 用户级记忆 | `~/.dsh/memory/MEMORY.md` | Cross-project rules & preferences / 跨项目规则/偏好 |
14
+ | Project notes / 项目笔记 | `{workspace}/.dsh-memory/MEMORY.md` | Project conventions & decisions / 项目长期约定、决策 |
15
+ | Daily logs / 每日日志 | `{workspace}/.dsh-memory/YYYY-MM-DD.md` | Append-only work log / 每日工作日志 |
16
+ | Reflections / 反思 | `{workspace}/.dsh-memory/reflections/YYYY-MM-DD.md` | Daily reflection, auto-prompted / 每日反思(自动提示生成) |
17
+
18
+ - **Auto injection / 自动注入**: injects a `<memory_system>` block into every system prompt (user rules + project notes + recent reflections + recent N days of log tails + writing discipline)
19
+ - **Daily reflection / 每日反思**: when yesterday has logs but no reflection, the agent is asked to present one at session start
20
+ - **Agent tools / Agent 工具**: `memory_log` / `memory_note` / `memory_user` / `memory_recall` / `memory_external` / `memory_maintain` / `memory_status` / `memory_reflect`
21
+ - **GUI**: sidebar 「记忆」entry → floating panel (Overview / Logs / Notes / Reflections / Connect / Search); Settings page (Settings → Auto Memory)
22
+ - **External memory inheritance / 外部记忆继承**: import memories accumulated by other AI tools (CodeBuddy / Claude Code / Codex / project convention files)
13
23
 
14
- - **自动注入**:每次组装系统提示词时注入 `<memory_system>` 块(用户规则 + 项目笔记 + 最近反思 + 最近 N 天日志尾部 + 写入纪律)
15
- - **每日反思**:检测到"昨天有日志但未生成反思"时,会话首轮自动请求 agent 生成昨日反思
16
- - **Agent 工具**:`memory_log` / `memory_note` / `memory_user` / `memory_recall` / `memory_external` / `memory_maintain` / `memory_status` / `memory_reflect`
17
- - **GUI**:侧边栏「记忆」入口 → 浮层面板(概览/日志/笔记/反思/接续/检索);设置页(设置 → 自动记忆)
18
- - **外部记忆继承**:接入其他 AI 工具(CodeBuddy / Claude Code / Codex / 项目约定文件)积累的记忆
24
+ ---
19
25
 
20
- ## 🚀 安装(NPM 一键)
26
+ ## 🚀 Installation (one command) / 安装(NPM 一键)
21
27
 
28
+ > Prerequisite: install [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (dsh) and start `dsh web` at least once.
22
29
  > 前提:已安装 DeepSeek Harness(dsh)并至少启动过一次 `dsh web`。
23
30
 
31
+ Run in the **profile directory** (`~/.dsh/profiles/web`):
24
32
  在 **profile 目录**(`~/.dsh/profiles/web`)下执行:
25
33
 
26
34
  ```bash
@@ -28,29 +36,43 @@ cd ~/.dsh/profiles/web
28
36
  pnpm add @a9i5k4/dsh-auto-memory
29
37
  ```
30
38
 
39
+ Then edit `package.json` in that directory and append to the `dsh.profile.bundles` array:
31
40
  然后编辑该目录下的 `package.json`,在 `dsh.profile.bundles` 数组里追加:
32
41
 
33
42
  ```json
34
43
  "@a9i5k4/dsh-auto-memory"
35
44
  ```
36
45
 
46
+ Restart **dsh web** to activate (the 「记忆」entry appears in the sidebar).
37
47
  保存后**重启 dsh web**,插件即生效(侧边栏出现「记忆」入口)。
38
48
 
49
+ > No pnpm? Use npm: `npm install @a9i5k4/dsh-auto-memory`
39
50
  > 没有 pnpm?用 npm 也行:`npm install @a9i5k4/dsh-auto-memory`
40
51
 
41
- ## 🤖 AI 时代安装(把这句话直接丢给 AI)
52
+ ---
42
53
 
54
+ ## 🤖 AI-Era Installation (copy-paste for your AI) / AI 时代安装(把这句话直接丢给 AI)
55
+
56
+ > It's the AI era — just copy the sentence below to your AI assistant (DeepSeek / Claude / Codex etc.) and it will do the installation for you.
43
57
  > 现在是 AI 时代,你可以直接把下面这句话复制给你的 AI 助手(DeepSeek / Claude / Codex 等),它会帮你完成安装:
44
58
 
45
- ```
59
+ ```text
60
+ Install the npm package @a9i5k4/dsh-auto-memory in the DeepSeek Harness web profile
61
+ directory ~/.dsh/profiles/web (run "pnpm add @a9i5k4/dsh-auto-memory" or "npm install @a9i5k4/dsh-auto-memory"),
62
+ append "@a9i5k4/dsh-auto-memory" to the dsh.profile.bundles array in package.json,
63
+ then restart dsh web to activate the plugin.
64
+
46
65
  请在 DeepSeek Harness 的 web profile 目录 ~/.dsh/profiles/web 下安装 npm 包
47
66
  @a9i5k4/dsh-auto-memory(执行 pnpm add @a9i5k4/dsh-auto-memory 或 npm install),
48
67
  然后在 package.json 的 dsh.profile.bundles 数组追加 "@a9i5k4/dsh-auto-memory",
49
68
  最后重启 dsh web 使插件生效。
50
69
  ```
51
70
 
52
- ## ⚙️ 配置
71
+ ---
72
+
73
+ ## ⚙️ Configuration / 配置
53
74
 
75
+ Defaults (JSON file `~/.dsh/dsh-auto-memory.json`):
54
76
  默认值(JSON 文件 `~/.dsh/dsh-auto-memory.json`):
55
77
 
56
78
  ```json
@@ -65,21 +87,27 @@ pnpm add @a9i5k4/dsh-auto-memory
65
87
  }
66
88
  ```
67
89
 
68
- 可在 GUI(设置 → 自动记忆)中调整。
90
+ Adjustable in the GUI (Settings → Auto Memory). / 可在 GUI(设置 → 自动记忆)中调整。
91
+
92
+ ---
93
+
94
+ ## 📁 Structure / 结构
95
+
96
+ - `lib/index.js` — Host half: engine, injection, tools, routes (zero runtime deps, Node built-ins only) / Host 半:引擎、注入、工具、路由(零运行时依赖)
97
+ - `lib/client.js` — Browser half: memory panel + settings page / 浏览器半:记忆面板 + 设置页
98
+ - `cordis.patch.yml` — Plugin row (`auto-memory`)
69
99
 
70
- ## 📁 结构
100
+ ---
71
101
 
72
- - `lib/index.js` Host 半:引擎、注入、工具、路由(零运行时依赖,仅 node 内置模块)
73
- - `lib/client.js` — 浏览器半:记忆面板 + 设置页
74
- - `cordis.patch.yml` — 插件行(`auto-memory`)
102
+ ## ⚠️ Limitations / 限制
75
103
 
76
- ## ⚠️ 限制
104
+ - Memory files are plain-text Markdown; no secrets stored unless explicitly requested. / 记忆文件为明文 Markdown;不存密钥,除非用户明确要求。
105
+ - `memory_recall` session search depends on the deployed session-query index; without it, only local search works. / `memory_recall` 的历史会话检索依赖部署的 session-query 索引,未启用时仅本地检索。
106
+ - Plugin-set changes require a dsh restart. / 插件集变更需重启 dsh 生效。
77
107
 
78
- - 记忆文件为明文 Markdown;不存密钥,除非用户明确要求。
79
- - `memory_recall` 的历史会话检索依赖部署的 session-query 索引,未启用时仅本地检索。
80
- - 插件集变更需重启 dsh 生效。
108
+ ---
81
109
 
82
- ## 📦 发布信息
110
+ ## 📦 Release Info / 发布信息
83
111
 
84
112
  - GitHub: https://github.com/Aik358/dsh-auto-memory
85
113
  - npm: `@a9i5k4/dsh-auto-memory`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@a9i5k4/dsh-auto-memory",
3
3
  "description": "DSH 自动记忆插件:三层记忆(用户级/项目笔记/每日日志)自动注入与检索、每日反思、可视化面板与设置页,支持继承其他 AI 工具的记忆。",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "exports": {