Skip to content

Commit 7da46cc

Browse files
authored
chore: release v0.7.2 (issue #34 injectTimePrefix + issue #35 delete inline confirm) (#36)
- #35: directory delete button now uses an inline two-step confirm (✕ → 确认? → DELETE) instead of the unreliable host window.confirm; failed deletes surface a visible per-row error instead of failing silently - #34: opt-in injectTimePrefix config (default off) injects the current date/time once at conversation start ([当前时间: 2026-08-26 周二 19:30]), latched per session - README/CHANGELOG/package version synced; 770 tests green
1 parent 5b5a2aa commit 7da46cc

14 files changed

Lines changed: 241 additions & 25 deletions

‎README.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a href="https://github.com/awesome-dsh-plugin/awesome-dsh-plugin"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="Awesome"></a>
1111
<a href="https://github.com/modusensus/dsh-mneme/actions"><img src="https://img.shields.io/github/actions/workflow/status/modusensus/dsh-mneme/test.yml" alt="CI"></a>
1212
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-24%2B-blue" alt="node"></a>
13-
<a href="https://github.com/modusensus/dsh-mneme"><img src="https://img.shields.io/badge/tests-757%20passed-success" alt="tests"></a>
13+
<a href="https://github.com/modusensus/dsh-mneme"><img src="https://img.shields.io/badge/tests-770%20passed-success" alt="tests"></a>
1414
<a href="https://www.npmjs.com/package/@modusensus/dsh-mneme"><img src="https://img.shields.io/npm/dm/@modusensus/dsh-mneme?color=blue&label=downloads" alt="npm downloads"></a>
1515
<a href="https://codecov.io/gh/modusensus/dsh-mneme"><img src="https://img.shields.io/codecov/c/github/modusensus/dsh-mneme/main" alt="coverage"></a>
1616
</p>
@@ -104,14 +104,15 @@ dsh web
104104
| **v0.6.0** | 会话生命周期:删会话 ≠ 删记忆 | ✅ |
105105
| **v0.7.0** | 自进化记忆:heat 幂律衰减 + sleep 双保护 + 实体热投影 | ✅ |
106106
| **v0.7.1** | issue #31 修复:tags 桥接 entity_attrs + autoTag 面板开关生效 | ✅ |
107+
| **v0.7.2** | issue #35 删除按钮内联确认修复 + issue #34 对话开始注入当前时间(opt-in) | ✅ |
107108
| **v0.8.0** | 图谱增强:兴趣漂移 + 跨 workspace 共享 | 🚧 计划中(9 月末) |
108109

109110
## 🧪 本地开发
110111

111112
```bash
112113
cd dsh-mneme
113114
npm install
114-
npm test # 757 个测试
115+
npm test # 770 个测试
115116
npm run stress # 三轴线压测
116117
npm run sync # src → lib 同步
117118
```
@@ -206,14 +207,15 @@ Works out of the box. Enable these as needed:
206207
| **v0.6.0** | Session lifecycle: delete session ≠ delete memories | ✅ |
207208
| **v0.7.0** | Self-evolving memory: heat decay + sleep dual-protection + entity heat projection | ✅ |
208209
| **v0.7.1** | Issue #31 fix: tags bridged to entity_attrs + autoTag panel toggle takes effect | ✅ |
210+
| **v0.7.2** | Issue #35 delete button inline-confirm fix + Issue #34 inject current time at conversation start (opt-in) | ✅ |
209211
| **v0.8.0** | Graph enhancement: interest drift + cross-workspace sharing | 🚧 Planned (late Sep) |
210212

211213
## 🧪 Local Development
212214

213215
```bash
214216
cd dsh-mneme
215217
npm install
216-
npm test # 757 tests
218+
npm test # 770 tests
217219
npm run stress # three-axis stress test
218220
npm run sync # src → lib sync
219221
```

‎dsh-mneme/CHANGELOG.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [0.7.2] - 2026-08-26
4+
5+
### 🐛 修复(issue #35)
6+
7+
- **目录页删除按钮点击无反应**:`lib/client.js` 的 `DirectoryPanel.handleDelete` 之前依赖宿主 `window.confirm`(在 DSH 宿主 web 环境不可靠,可能被拦截或直接返回 false,点击看起来无反应),且删除失败的所有路径都被静默吞掉。改为**面板内联两步确认**(点 ✕ → 按钮变「确认?」→ 再点才发 DELETE,3 秒自动重置,点击行内其它地方取消),不再依赖任何原生对话框;删除失败(网络 / 401 / 500 / `deleted!==true`)时行内红色错误提示「删除失败」,3.5 秒自动消失,不再静默
8+
9+
### 🆕 新功能(issue #34)
10+
11+
- **对话开始自动注入当前时间**:新增 opt-in 配置 `injectTimePrefix`(默认 `false`,关闭时行为与之前完全一致)。开启后,新对话开始时在注入文本头部注入一次当前日期时间(格式 `[当前时间: 2026-08-26 周二 19:30]`,星期中文),按 session 闩锁——同一会话只注入一次,新会话再注入,满足"只需对话开始时"
12+
13+
### 测试
14+
15+
- 新增 6 个回归测试(client 2 + inject 3 + config 1),全套 **770 通过**
16+
317
## [0.7.1] - 2026-08-24
418

519
### 🐛 修复(issue #31)

‎dsh-mneme/README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![npm version](https://img.shields.io/npm/v/@modusensus/dsh-mneme?color=blue&label=npm)](https://www.npmjs.com/package/@modusensus/dsh-mneme)
66
[![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
77
[![Awesome](https://awesome-dsh-plugin.com/badge.svg)](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
8-
[![tests](https://img.shields.io/badge/tests-757%20passed-success)](https://github.com/modusensus/dsh-mneme)
8+
[![tests](https://img.shields.io/badge/tests-770%20passed-success)](https://github.com/modusensus/dsh-mneme)
99
[![CI](https://img.shields.io/github/actions/workflow/status/modusensus/dsh-mneme/test.yml)](https://github.com/modusensus/dsh-mneme/actions)
1010
[![node](https://img.shields.io/badge/node-24%2B-blue)](https://nodejs.org)
1111
[![npm downloads](https://img.shields.io/npm/dm/@modusensus/dsh-mneme?color=blue&label=downloads)](https://www.npmjs.com/package/@modusensus/dsh-mneme)
@@ -241,6 +241,7 @@ v0.3.0 起新增**记忆基因**层:从记忆里抽取**命名实体**、**带
241241

242242
| 版本 | 亮点 |
243243
|------|------|
244+
| **v0.7.2** | issue #35 修复:目录页删除按钮改面板内联两步确认(不再依赖宿主 `window.confirm`)+ 删除失败可见报错;issue #34 新功能:opt-in `injectTimePrefix` 对话开始自动注入当前时间一次(默认关);770 测试全绿 |
244245
| **v0.7.1** | issue #31 修复:memory_save/memory_update 的 tags 桥接进 entity_attrs 标签存储(目录/`tag:` 检索/tagBoost 立即可见,`tags: []` 清空移回 untagged)+ `store.setMemoryTags` 反向同步 `memories.tags` 列 + autoTag 面板开关成为运行时消费方(settings 覆盖 config);764 测试全绿 |
245246
| **v0.7.0** | 自进化记忆(heat 热度模型 + per-type 差异化半衰期 + sleep 热联合双保护)+ updated_at 语义修正(不算访问)+ recall_runs injected 两档标记 + 90 天滚动清理 + 实体热投影(ego-graph node heat → 前端节点大小/明暗);757 测试全绿 |
246247
| **v0.6.11** | 社区修复(PR #27,Jstn-1g):memory 渲染器暴露记忆 ID + 防御性加固(条数/块预算/Unicode 截断/JSONL 注入防护);issue #14 已关闭;735 测试全绿 |
@@ -287,6 +288,7 @@ v0.3.0 起新增**记忆基因**层:从记忆里抽取**命名实体**、**带
287288
| **v0.6.4** | ✅ 完成 | Tag 加权召回 | query/session tag 交集 boost(×1.15 / ×1.08),`tagBoostEnabled` 默认关 |
288289
| **v0.7.0** | ✅ 完成 | 自进化记忆 | heat 幂律衰减 + per-type 差异化半衰期(TYPE_DECAY)+ sleep 热联合双保护 + updated_at 语义修正 + recall_runs injected 两档标记 + 90 天清理 + 实体热投影(前端节点大小/明暗);757 测试全绿 |
289290
| **v0.7.1** | ✅ 完成 | issue #31 修复 | memory_save/update tags 桥接 entity_attrs 标签存储 + 列反向同步 + autoTag 面板开关生效(settings 覆盖 config);764 测试全绿 |
291+
| **v0.7.2** | ✅ 完成 | issue #34 + #35 修复 | 目录页删除按钮改内联两步确认 + 删除失败可见报错;opt-in `injectTimePrefix` 对话开始注入当前时间一次(默认关);770 测试全绿 |
290292
| **v0.8.0** | 🚧 计划中(9 月末) | 图谱增强 | 兴趣漂移可视化 + 跨 workspace 记忆共享 + 更多 heat 信号 |
291293

292294
> 新能力一律做成**可开关的功能**(配置启用/关闭),默认保守开启、不破坏现有行为。`failure_memories` 表与 autoDream 决策引擎已为后续反思性成长铺好路。
@@ -461,7 +463,7 @@ scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压
461463
```bash
462464
cd dsh-mneme
463465
npm install # 安装 peer 依赖(以 devDependencies 形式,用于本地测试)
464-
npm test # 运行 735 个测试
466+
npm test # 运行 770 个测试
465467
npm run stress # 三轴线压测:长会话检索 / 冲突仲裁 / 多 Agent 并发(离线 mock LLM)
466468
npm run sync # 把 src/ 同步到 lib/(发布时由 prepack 钩子自动执行)
467469
```

‎dsh-mneme/lib/client.js‎

Lines changed: 55 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ window.__ModuleLoader__.load({
122122
"memory.directory.empty": "暂无记忆条目",
123123
"directory.editToggle": "编辑模式(显示删除)",
124124
"directory.deleteConfirm": "确定删除这条记忆吗?",
125+
"directory.deleteConfirmShort": "确认?",
126+
"directory.deleteError": "删除失败",
125127
"memory.card.open": "在主区记忆库中查看全文",
126128
"memory.time.now": "刚刚",
127129
"memory.time.seconds": "{n}秒前",
@@ -229,6 +231,8 @@ window.__ModuleLoader__.load({
229231
"memory.directory.empty": "No memories yet",
230232
"directory.editToggle": "Edit mode",
231233
"directory.deleteConfirm": "Delete this memory?",
234+
"directory.deleteConfirmShort": "Confirm?",
235+
"directory.deleteError": "Delete failed",
232236
"memory.card.open": "Open full text in the Memory tab",
233237
"memory.time.now": "just now",
234238
"memory.time.seconds": "{n}s ago",
@@ -432,6 +436,9 @@ window.__ModuleLoader__.load({
432436
".mneme-dir-del{margin-left:auto;background:none;border:none;color:#e5484d;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px}",
433437
".mneme-dir-del:hover{filter:brightness(1.25)}",
434438
".mneme-edit-on .mneme-dir-del{opacity:1}",
439+
".mneme-dir-del-confirm{font-weight:700;background:rgba(229,72,77,.12);border-radius:4px}",
440+
".mneme-dir-item.mneme-dir-error{background:rgba(229,72,77,.14)}",
441+
".mneme-dir-del-err{flex:none;font-size:12px;line-height:16px;color:#e5484d}",
435442
".mneme-dir-ititle{background:none;border:none;padding:0;font:inherit;color:inherit;cursor:pointer;flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",
436443
".mneme-dir-folder{margin-bottom:4px}",
437444
".mneme-dir-folderhead{display:flex;align-items:center;gap:6px;width:100%;padding:6px 8px;border:none;border-radius:8px;background:none;color:var(--dsw-alias-label-primary);cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:18px;text-align:left}",
@@ -1184,6 +1191,9 @@ window.__ModuleLoader__.load({
11841191
const [dir, setDir] = useState(null); // { groups: [...], untagged: [...] }
11851192
const [status, setStatus] = useState("loading"); // loading | ready | error
11861193
const [editMode, setEditMode] = useState(false); // manual tag/delete UI gate
1194+
const [confirmingId, setConfirmingId] = useState(null); // row waiting for the 2nd confirm click
1195+
const [delErrorId, setDelErrorId] = useState(null); // row whose delete just failed
1196+
const confirmTimer = useRef(null);
11871197

11881198
useEffect(() => {
11891199
let cancelled = false;
@@ -1215,36 +1225,73 @@ window.__ModuleLoader__.load({
12151225
}).then((res) => { if (res.ok) setEditMode(next); }).catch(() => {});
12161226
};
12171227

1228+
const resetConfirm = () => {
1229+
clearTimeout(confirmTimer.current);
1230+
setConfirmingId(null);
1231+
};
1232+
12181233
const handleDelete = (memId, e) => {
12191234
e?.stopPropagation?.();
1220-
if (typeof window === "undefined" || !window.confirm(t("directory.deleteConfirm"))) return;
1235+
// 第一击进入「确认?」态,第二击才真正发 DELETE;宿主 web 环境里
1236+
// window.confirm 不可靠(可能被拦截或直接返回 false),点击会无反应,
1237+
// 所以改为面板内联两步确认,不依赖任何原生对话框。
1238+
if (confirmingId !== memId) {
1239+
setConfirmingId(memId);
1240+
clearTimeout(confirmTimer.current);
1241+
confirmTimer.current = setTimeout(() => setConfirmingId((cur) => (cur === memId ? null : cur)), 3000);
1242+
return;
1243+
}
1244+
clearTimeout(confirmTimer.current);
1245+
setConfirmingId(null);
12211246
apiFetch("/api/dsh-mneme/memories", {
12221247
method: "DELETE",
12231248
headers: { "Content-Type": "application/json" },
12241249
body: JSON.stringify({ id: memId })
12251250
})
12261251
.then((res) => (res.ok ? res.json() : null))
12271252
.then((d) => {
1228-
if (!d || d.deleted !== true) return;
1253+
if (!d || d.deleted !== true) {
1254+
// 服务端未确认删除也给出可见提示,不静默吞掉
1255+
setDelErrorId(memId);
1256+
setTimeout(() => setDelErrorId((cur) => (cur === memId ? null : cur)), 3500);
1257+
return;
1258+
}
12291259
setDir((prev) => ({
12301260
groups: prev.groups.map((g) => ({ ...g, memories: g.memories.filter((m) => m.id !== memId) })),
12311261
untagged: prev.untagged.filter((m) => m.id !== memId)
12321262
}));
12331263
})
1234-
.catch(() => {});
1264+
.catch(() => {
1265+
// 网络失败同样给出可见提示
1266+
setDelErrorId(memId);
1267+
setTimeout(() => setDelErrorId((cur) => (cur === memId ? null : cur)), 3500);
1268+
});
12351269
};
12361270

12371271
const renderFolder = (name, memories, extraKey, emptyLabel) => {
12381272
const folderKey = extraKey || name;
12391273
const open = !collapsed[folderKey];
1240-
const rows = memories.map((m) =>
1241-
h("div", { key: m.id, className: "mneme-dir-item" },
1274+
const rows = memories.map((m) => {
1275+
const confirming = confirmingId === m.id;
1276+
const err = delErrorId === m.id;
1277+
return h("div", {
1278+
key: m.id,
1279+
className: err ? "mneme-dir-item mneme-dir-error" : "mneme-dir-item",
1280+
// 点击行内其它地方取消「确认?」态
1281+
onClick: resetConfirm
1282+
},
12421283
h("span", { className: "mneme-tree-line" }),
12431284
h("button", { type: "button", className: "mneme-dir-ititle", onClick: () => onJump(m) }, m.title || m.content?.slice(0, 40)),
12441285
h("span", { className: "mneme-dir-itime" }, formatDate(m.updated_at || m.created_at)),
1245-
editMode && h("button", { type: "button", className: "mneme-dir-del", "aria-label": "delete", onClick: (e) => handleDelete(m.id, e) }, "✕")
1246-
)
1247-
);
1286+
editMode && h("button", {
1287+
type: "button",
1288+
className: confirming ? "mneme-dir-del mneme-dir-del-confirm" : "mneme-dir-del",
1289+
"aria-label": "delete",
1290+
onClick: (e) => handleDelete(m.id, e)
1291+
}, confirming ? t("directory.deleteConfirmShort") : "✕"),
1292+
err && h("span", { className: "mneme-dir-del-err" }, t("directory.deleteError"))
1293+
);
1294+
});
12481295
return h("div", {
12491296
key: folderKey,
12501297
className: "mneme-dir-folder",

‎dsh-mneme/lib/config.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ export const Config = z.object({
1717
summarizeModel: z.string().default(""),
1818
maxInjectedItems: z.natural().min(1).max(20).default(5),
1919
importanceThreshold: z.natural().min(1).max(5).default(3),
20+
// 时间前缀注入(issue #34,opt-in,默认关):开启时,新对话开始时把当前
21+
// 日期时间以 [当前时间: 2026-08-26 周二 19:30] 前缀注入一次,让模型感知
22+
// "现在几点/周几"。只注入一次(对话开始时),同会话后续渲染不再重复;
23+
// 关闭时行为与之前完全一致。
24+
injectTimePrefix: z.boolean().default(false),
2025
autoDream: z.boolean().default(true),
2126
dreamThresholdCount: z.natural().min(1).max(1000).default(10),
2227
dreamThresholdChars: z.natural().min(100).max(100000).default(5000),

‎dsh-mneme/lib/inject.js‎

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,32 @@ export function createInjector(ctx, service, settings, config) {
7575
const maxItems = config.maxInjectedItems ?? 5;
7676
const threshold = config.importanceThreshold ?? 3;
7777

78+
// Time-prefix injection (issue #34): opt-in, off by default. When enabled the
79+
// current date/time is injected once per conversation — at the first prompt
80+
// assembly of a new session — so the model can sense what time/day it is.
81+
// A per-session latch means later assemblies in the same session never
82+
// re-inject; a bare render ctx (no session id) falls back to once per
83+
// injector lifetime.
84+
const WEEKDAYS = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
85+
let timePrefixSession = null;
86+
87+
function renderTimePrefix(ctx) {
88+
if (config.injectTimePrefix !== true) return "";
89+
const sessionId = ctx?.agent?.session?.id;
90+
if (sessionId === undefined) {
91+
if (timePrefixSession !== null) return "";
92+
timePrefixSession = true;
93+
} else {
94+
if (sessionId === timePrefixSession) return "";
95+
timePrefixSession = sessionId;
96+
}
97+
const now = new Date();
98+
const pad = (n) => String(n).padStart(2, "0");
99+
const date = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`;
100+
const time = `${pad(now.getHours())}:${pad(now.getMinutes())}`;
101+
return `[当前时间: ${date} ${WEEKDAYS[now.getDay()]} ${time}]`;
102+
}
103+
78104
// Bug6: bound the injected memory block. Each entry's content is truncated to
79105
// MAX_CONTENT chars (trailing `…`); the whole block gets a MAX_BLOCK budget
80106
// and an entry that would exceed it collapses to its title only, so a long
@@ -188,8 +214,11 @@ export function createInjector(ctx, service, settings, config) {
188214
// separate context) keeps the prompt assembly stable at two blocks.
189215
const hotText = renderHotContext(ctx);
190216
const body = render(candidates);
191-
if (!hotText) return body;
192-
return body ? `${hotText}\n\n${body}` : hotText;
217+
let out = !hotText ? body : (body ? `${hotText}\n\n${body}` : hotText);
218+
// Time prefix (issue #34): leads the injection block once per session.
219+
const timePrefix = renderTimePrefix(ctx);
220+
if (!timePrefix) return out;
221+
return out ? `${timePrefix}\n\n${out}` : timePrefix;
193222
}
194223
}),
195224
ctx.systemPrompt.context({

‎dsh-mneme/package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dsh-mneme/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@modusensus/dsh-mneme",
33
"description": "Cross-session memory plugin for DeepSeek Harness with autoDream consolidation: SQLite store, Markdown mirrors, 7 model tools, automatic injection, session summarization, user profile/rules, custom slash commands, vector (semantic) search, and a Web GUI panel",
4-
"version": "0.7.1",
4+
"version": "0.7.2",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

‎dsh-mneme/src/config.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ export const Config = z.object({
1717
summarizeModel: z.string().default(""),
1818
maxInjectedItems: z.natural().min(1).max(20).default(5),
1919
importanceThreshold: z.natural().min(1).max(5).default(3),
20+
// 时间前缀注入(issue #34,opt-in,默认关):开启时,新对话开始时把当前
21+
// 日期时间以 [当前时间: 2026-08-26 周二 19:30] 前缀注入一次,让模型感知
22+
// "现在几点/周几"。只注入一次(对话开始时),同会话后续渲染不再重复;
23+
// 关闭时行为与之前完全一致。
24+
injectTimePrefix: z.boolean().default(false),
2025
autoDream: z.boolean().default(true),
2126
dreamThresholdCount: z.natural().min(1).max(1000).default(10),
2227
dreamThresholdChars: z.natural().min(100).max(100000).default(5000),

0 commit comments

Comments
 (0)