@a9i5k4/dsh-auto-memory 0.1.22 → 0.1.24

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
@@ -76,7 +76,8 @@ then restart dsh web to activate the plugin.
76
76
 
77
77
  > **Centralized storage (WorkBuddy-style)**: all workspace memories live under one root — `~/.dsh/memory/workspaces/`, one subdirectory per workspace (readable by any model in any session via injection + cross-workspace `memory_recall`). Legacy per-workspace `.dsh-memory/` folders are auto-migrated on first run after upgrade (the old copies are kept, not deleted).
78
78
 
79
- - **Auto injection (at the end of the system prompt)**: every prompt gets a `<memory_system>` block (user rules + project notes + recent reflections + recent N days of log tails + pending calendar items + writing discipline); it is placed at the very end of the system prompt so the model reads the memory discipline right before replying
79
+ - **Auto injection (at the end of the system prompt)**: every prompt gets a `<memory_system>` block (user rules + project notes + reflection digest + recent 1 day of log tails + external memory paths + pending calendar items + writing discipline); it is placed at the very end of the system prompt so the model reads the memory discipline right before replying
80
+ - **Lean by default, details on demand (v0.1.24)**: injection stays small — the last 1 day of logs, a reflection digest (achievements section only), and paths for external memory instead of full text. `memory_read` fetches full log/reflection/user/notes/calendar files when needed; sensitive sections (credentials/tokens/secrets) are **filtered out of the prompt** but kept in the files
80
81
  - **Visible memory ops**: when the AI updates or searches memory, it says so in plain text in the chat reply (e.g. "Logged X to today's journal", "I checked memory and found..."), not hidden inside tool calls
81
82
 
82
83
  ### Auto-Consolidation — memory writes itself after every turn (v0.1.9)
@@ -88,7 +89,7 @@ Every finished conversation turn is automatically evaluated (via a small subagen
88
89
  - **Small talk is skipped** (content threshold `autoConsolidateMinChars`), each turn is deduplicated by turn number, subagent turns are ignored
89
90
  - **Agent traces in the GUI**: the overview shows "Auto-consolidated N points today (latest HH:MM)"; the panel refreshes on open, every 30s while open, and via the ⟳ button
90
91
  - **`memory_consolidate` tool**: read recent logs and distill long-term decisions / architecture / user preferences into MEMORY.md on demand ("dream-like" consolidation)
91
- - Configurable in `~/.dsh/dsh-auto-memory.json`: `autoConsolidate` (default true), `autoConsolidateMinChars` (default 60)
92
+ - Configurable in `~/.dsh/dsh-auto-memory.json`: `autoConsolidate` (default true), `autoConsolidateMinChars` (default 240), `autoConsolidateCooldownMinutes` (default 30, doubled 22:00–08:00), `autoConsolidateDailyMax` (default 8) — all adjustable in the Settings → Automation section
92
93
 
93
94
  ### AI Greetings & Three-level Drawers (Overview page, v0.1.9)
94
95
 
@@ -167,6 +168,10 @@ All screenshots below are real captures of the plugin running inside the DSH Web
167
168
 
168
169
  - **Auto-consolidation**: every finished turn is evaluated by a small subagent and topic-grouped entries are written to today's log automatically (`## 主题(HH:MM)` + bullet points) — no `memory_log` needed for routine work. Long-term value is promoted to project notes / user-level memory, small talk is skipped, failures are queued and retried every 5 minutes (a 15-second heartbeat file proves the loop is alive).
169
170
  - **Smart search**: ask in natural language — the AI expands your query into keywords, scans every memory layer, then answers conversationally with sources cited.
171
+ - **Calendar with day timeline (v0.1.24)**: click a date to open a 07:00–22:00 timeline with events placed on their time slots; add events with location/reminder/details; the AI proactively files deadlines via `calendar_add` and marks them done via `calendar_done`/`calendar_remove`.
172
+ - **Workspace mind map (v0.1.24)**: an AI-generated graph of workspaces, topics and cross-workspace links; pan by dragging, resize with the slider, click a card for details.
173
+ - **Memory panel UI (v0.1.24)**: liquid-glass panel with smooth animations everywhere — tab strip with arrow scrolling, expanding sections (greeting drawers, workspace summaries), floating save bar in Settings that highlights when there are unsaved changes.
174
+ - **External memory management (v0.1.24)**: per-source view/import/remove — imported sources show "✓" and become "Delete" buttons per target (notes vs user-level); full content is read on demand and never injected in bulk.
170
175
  - **Calendar reminders**: pending items are injected into future sessions' system prompts until completed — the AI reminds you without being asked.
171
176
  - **One-click update**: the settings page shows your installed version vs. the npm registry latest; registry installs get a one-click update button (pnpm/npm runs under the hood), then restart to apply.
172
177
 
@@ -182,12 +187,15 @@ Defaults (JSON file `~/.dsh/dsh-auto-memory.json`):
182
187
  "projectMemoryDir": ".dsh-memory",
183
188
  "injectEnabled": true,
184
189
  "injectBudgetChars": 2400,
185
- "recentDaysInjected": 3,
190
+ "recentDaysInjected": 1,
186
191
  "reflectEnabled": true,
187
192
  "reflectStyle": "auto",
188
193
  "locale": "zh",
189
194
  "autoConsolidate": true,
190
- "autoConsolidateMinChars": 60,
195
+ "autoConsolidateMinChars": 240,
196
+ "autoConsolidateCooldownMinutes": 30,
197
+ "autoConsolidateDailyMax": 8,
198
+ "externalInjectionChars": 1400,
191
199
  "memoryRoot": "~/.dsh/memory/workspaces",
192
200
  "dayBoundaryMinutes": 450
193
201
  }
package/README.zh-CN.md CHANGED
@@ -74,7 +74,8 @@ pnpm up @a9i5k4/dsh-auto-memory # 或: npm install @a9i5k4/dsh-auto-memory@lat
74
74
 
75
75
  > **集中式存储(WorkBuddy 式)**:所有工作区的记忆统一存放在一个根目录 `~/.dsh/memory/workspaces/` 下,每工作区一个子目录——任何模型、任何会话都能通过注入 + 跨工作区 `memory_recall` 读取。旧版分散在各工作区 `.dsh-memory/` 的记忆会在升级后首次运行时自动迁移(旧副本保留不删)。
76
76
 
77
- - **自动注入(放在系统提示词末尾)**:每次组装系统提示词时注入 `<memory_system>` 块(用户规则 + 项目笔记 + 最近反思 + 最近 N 天日志尾部 + 未完成日历事项 + 写入纪律),并置于提示词**最末尾**——模型在回复前最后读到记忆纪律,遵循度更高
77
+ - **自动注入(放在系统提示词末尾)**:每次组装系统提示词时注入 `<memory_system>` 块(用户规则 + 项目笔记 + 反思精华 + 最近 1 天日志尾部 + 外部记忆路径 + 未完成日历事项 + 写入纪律),并置于提示词**最末尾**——模型在回复前最后读到记忆纪律,遵循度更高
78
+ - **注入精简、细节按需(v0.1.24)**:注入保持轻量——只含最近 1 天日志、反思「成果回顾」精华、外部记忆绝对路径(不再整段注入);需要完整日志/反思/记忆文件时用 `memory_read` 工具按需读取;**敏感段落(凭据/令牌/密钥)从注入中过滤**(文件保留,不进 prompt)
78
79
  - **记忆操作可见**:更新/检索记忆时,AI 会在对话正文中明文说明(如"已把 X 记入今日日志""我查了记忆,发现…"),不藏在工具调用里
79
80
 
80
81
  ### 每轮自动沉淀 — 记忆自己写自己(v0.1.9)
@@ -86,7 +87,7 @@ pnpm up @a9i5k4/dsh-auto-memory # 或: npm install @a9i5k4/dsh-auto-memory@lat
86
87
  - **寒暄轮自动跳过**(内容门槛 `autoConsolidateMinChars`);按 turn 去重,每轮只写一次;子代理轮次不参与
87
88
  - **GUI 有 Agent 参与痕迹**:概览页显示"今日已自动沉淀 N 条要点(最近 HH:MM)";面板打开即刷新、打开期间每 30 秒自动重拉、⟳ 按钮手动刷新
88
89
  - **`memory_consolidate` 工具**:AI 读最近日志发散提炼,把有长期价值的决策/架构/用户偏好固化进 MEMORY.md("做梦式"固化)
89
- - 可在 `~/.dsh/dsh-auto-memory.json` 配置:`autoConsolidate`(默认开)、`autoConsolidateMinChars`(默认 60)
90
+ - 可在 `~/.dsh/dsh-auto-memory.json` 配置:`autoConsolidate`(默认开)、`autoConsolidateMinChars`(默认 240)、`autoConsolidateCooldownMinutes`(默认 30,22:00-08:00 自动翻倍)、`autoConsolidateDailyMax`(默认 8)——全部可在设置页「自动化」分组调整
90
91
 
91
92
  ### AI 时段问候与三级抽屉(概览页,v0.1.9)
92
93
 
@@ -171,6 +172,10 @@ pnpm up @a9i5k4/dsh-auto-memory # 或: npm install @a9i5k4/dsh-auto-memory@lat
171
172
 
172
173
  - **每轮自动沉淀**:每轮对话结束由小代理自动评估,按主题分组写进今日日志(`## 主题(HH:MM)` + 要点列表)——常规工作不需要手动 memory_log。有长期价值的内容自动升格项目笔记 / 用户级记忆;寒暄轮跳过;AI 失败入队,每 5 分钟重试(15 秒心跳文件证明轮询存活)。
173
174
  - **智能检索**:自然语言提问,AI 扩成关键词扫描全部记忆层,再综合成带出处的自然语言回答。
175
+ - **日历与当天时间轴(v0.1.24)**:点击日期打开 07:00-22:00 时间轴,事件按时间槽落位;支持地点/提醒/补充说明;AI 主动提取 deadline 用 `calendar_add` 写入、`calendar_done`/`calendar_remove` 维护。
176
+ - **工作区思维导图(v0.1.24)**:AI 生成工作区/主题/跨工作区关联图,支持拖动画布、滑块缩放、点击卡片看摘要。
177
+ - **记忆面板 UI(v0.1.24)**:液态玻璃面板 + 全站丝滑动效——模块箭头滚动条、抽屉展开/收起过渡、设置页浮动保存栏(未保存高亮)。
178
+ - **外部记忆管理(v0.1.24)**:按来源查看/接入/移除——已接入显示 ✓、按目标(笔记/用户级)独立删除;内容按需读取,不再整段注入。
174
179
  - **日历提醒**:未完成事项注入之后每次会话的系统提示词——AI 不用你提醒就会主动提及。
175
180
  - **一键更新**:设置页对比本地版本与 npm registry 最新版;registry 安装的用户可直接「一键更新」(后台自动跑 pnpm/npm),重启后生效。
176
181
 
@@ -186,12 +191,15 @@ pnpm up @a9i5k4/dsh-auto-memory # 或: npm install @a9i5k4/dsh-auto-memory@lat
186
191
  "projectMemoryDir": ".dsh-memory",
187
192
  "injectEnabled": true,
188
193
  "injectBudgetChars": 2400,
189
- "recentDaysInjected": 3,
194
+ "recentDaysInjected": 1,
190
195
  "reflectEnabled": true,
191
196
  "reflectStyle": "auto",
192
197
  "locale": "zh",
193
198
  "autoConsolidate": true,
194
- "autoConsolidateMinChars": 60,
199
+ "autoConsolidateMinChars": 240,
200
+ "autoConsolidateCooldownMinutes": 30,
201
+ "autoConsolidateDailyMax": 8,
202
+ "externalInjectionChars": 1400,
195
203
  "memoryRoot": "~/.dsh/memory/workspaces",
196
204
  "dayBoundaryMinutes": 450
197
205
  }