dsh-mnemon-source-runtime 0.5.3 → 0.5.5

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
@@ -25,4 +25,4 @@ The optional `./client` entry is an ordinary DSH Client plugin. This package own
25
25
 
26
26
  From a source checkout, install the declared dependencies and run `pnpm verify` to check Host behavior, Source-backed page interactions and Host/browser artifacts. Unreleased SDK work consumes a packed `dsh-mnemon` peer, not repository aliases or copied root tests.
27
27
 
28
- [Plugin development](https://github.com/omdsh-dev/dsh-mnemon/blob/8466e3560a3b9de4e9f4b7302cbf005c84e8e69f/docs/en/development/extensions.md) · [中文指南](https://github.com/omdsh-dev/dsh-mnemon/blob/8466e3560a3b9de4e9f4b7302cbf005c84e8e69f/docs/zh-CN/development/extensions.md)
28
+ [Plugin development](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/development/extensions.md) · [中文指南](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/development/extensions.md)
package/lib/client.js CHANGED
@@ -22,7 +22,7 @@ window.__ModuleLoader__.load({
22
22
  "runtime.refresh": "刷新",
23
23
  "runtime.hotContext": "每轮上下文",
24
24
  "runtime.addTitle": "添加热记忆",
25
- "runtime.addDescription": "稳定但仍需频繁使用的信息优先留在这里,长期归档由 Mnemon 记忆体承接。",
25
+ "runtime.addDescription": "稳定但仍需频繁使用的信息优先留在这里,长期归档由 Mnemon 记忆空间承接。",
26
26
  "runtime.content": "运行时记忆内容",
27
27
  "runtime.placeholder": "输入一条简洁、独立、未来仍然有用的信息…",
28
28
  "runtime.target": "分类",
@@ -31,9 +31,9 @@ window.__ModuleLoader__.load({
31
31
  "runtime.addButton": "添加记忆",
32
32
  "runtime.addAction": "添加",
33
33
  "runtime.target.user": "用户画像",
34
- "runtime.target.user.description": "身份、角色、习惯、表达偏好与明确的协作要求;容量整理始终留在本地,不进入记忆体。",
34
+ "runtime.target.user.description": "身份、角色、习惯、表达偏好与明确的协作要求;容量整理始终留在本地,不进入记忆空间。",
35
35
  "runtime.target.memory": "工作记忆",
36
- "runtime.target.memory.description": "项目、环境、决策、约定、工具特性与可复用经验;容量达到上限时按主题归档到一个或多个记忆体。",
36
+ "runtime.target.memory.description": "项目、环境、决策、约定、工具特性与可复用经验;容量达到上限时按主题归档到一个或多个记忆空间。",
37
37
  "runtime.importance.critical": "关键",
38
38
  "runtime.importance.normal": "普通",
39
39
  "runtime.importance.low": "低",
@@ -50,8 +50,8 @@ window.__ModuleLoader__.load({
50
50
  "runtime.result.add": "已添加到{target} · 当前 {count} 条",
51
51
  "runtime.result.replace": "已更新{target} · 当前 {count} 条",
52
52
  "runtime.result.remove": "已从{target}移除 · 当前 {count} 条",
53
- "runtime.result.maintenance": "容量整理完成:已先归档到记忆体 {spaces},再更新{target} · 当前 {count} 条",
54
- "runtime.result.localCompaction": "本地画像整理完成:未写入记忆体,已更新{target} · 当前 {count} 条",
53
+ "runtime.result.maintenance": "容量整理完成:已先归档到记忆空间 {spaces},再更新{target} · 当前 {count} 条",
54
+ "runtime.result.localCompaction": "本地画像整理完成:未写入记忆空间,已更新{target} · 当前 {count} 条",
55
55
  "runtime.readOnly": "当前部署为只读模式;热记忆仍会进入上下文,但不能在此修改。",
56
56
  "runtime.footnote": "memories.json 是唯一事实源;两个 Markdown 文件由控制层生成,不应直接编辑。"
57
57
  };
@@ -337,8 +337,8 @@ window.__ModuleLoader__.load({
337
337
  title: t("runtime.branchBadge"),
338
338
  children: entry.branches.join(", ")
339
339
  })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("time", {
340
- dateTime: entry.updated_at,
341
- children: new Date(entry.updated_at).toLocaleString(locale)
340
+ dateTime: entry.created_at,
341
+ children: new Date(entry.created_at).toLocaleString(locale)
342
342
  })]
343
343
  }),
344
344
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: entry.content }),
@@ -384,7 +384,7 @@ window.__ModuleLoader__.load({
384
384
  });
385
385
  };
386
386
  const normalizedQuery = filterQuery.trim().toLocaleLowerCase();
387
- const filteredEntries = (snapshot?.entries ?? []).filter((entry) => (filterTarget === "all" || entry.target === filterTarget) && (normalizedQuery === "" || entry.content.toLocaleLowerCase().includes(normalizedQuery)));
387
+ const filteredEntries = (snapshot?.entries ?? []).filter((entry) => (filterTarget === "all" || entry.target === filterTarget) && (normalizedQuery === "" || entry.content.toLocaleLowerCase().includes(normalizedQuery))).sort((left, right) => Date.parse(right.created_at) - Date.parse(left.created_at));
388
388
  const visibleEntries = filteredEntries.slice(0, visibleLimit);
389
389
  const closeComposer = () => {
390
390
  setContent("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mnemon-source-runtime",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "Self-contained runtime Source for Composable View Memory.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -61,7 +61,7 @@
61
61
  "@types/node": "^22.0.0",
62
62
  "@types/react": "^18.3.0",
63
63
  "@types/react-dom": "^18.3.0",
64
- "dsh-mnemon": "^0.5.3",
64
+ "dsh-mnemon": "^0.5.6",
65
65
  "jsdom": "^26.0.0",
66
66
  "react": "^18.2.0",
67
67
  "react-dom": "^18.2.0",
@@ -13,7 +13,7 @@
13
13
  "runtime.refresh": "刷新",
14
14
  "runtime.hotContext": "每轮上下文",
15
15
  "runtime.addTitle": "添加热记忆",
16
- "runtime.addDescription": "稳定但仍需频繁使用的信息优先留在这里,长期归档由 Mnemon 记忆体承接。",
16
+ "runtime.addDescription": "稳定但仍需频繁使用的信息优先留在这里,长期归档由 Mnemon 记忆空间承接。",
17
17
  "runtime.content": "运行时记忆内容",
18
18
  "runtime.placeholder": "输入一条简洁、独立、未来仍然有用的信息…",
19
19
  "runtime.target": "分类",
@@ -22,9 +22,9 @@
22
22
  "runtime.addButton": "添加记忆",
23
23
  "runtime.addAction": "添加",
24
24
  "runtime.target.user": "用户画像",
25
- "runtime.target.user.description": "身份、角色、习惯、表达偏好与明确的协作要求;容量整理始终留在本地,不进入记忆体。",
25
+ "runtime.target.user.description": "身份、角色、习惯、表达偏好与明确的协作要求;容量整理始终留在本地,不进入记忆空间。",
26
26
  "runtime.target.memory": "工作记忆",
27
- "runtime.target.memory.description": "项目、环境、决策、约定、工具特性与可复用经验;容量达到上限时按主题归档到一个或多个记忆体。",
27
+ "runtime.target.memory.description": "项目、环境、决策、约定、工具特性与可复用经验;容量达到上限时按主题归档到一个或多个记忆空间。",
28
28
  "runtime.importance.critical": "关键",
29
29
  "runtime.importance.normal": "普通",
30
30
  "runtime.importance.low": "低",
@@ -41,8 +41,8 @@
41
41
  "runtime.result.add": "已添加到{target} · 当前 {count} 条",
42
42
  "runtime.result.replace": "已更新{target} · 当前 {count} 条",
43
43
  "runtime.result.remove": "已从{target}移除 · 当前 {count} 条",
44
- "runtime.result.maintenance": "容量整理完成:已先归档到记忆体 {spaces},再更新{target} · 当前 {count} 条",
45
- "runtime.result.localCompaction": "本地画像整理完成:未写入记忆体,已更新{target} · 当前 {count} 条",
44
+ "runtime.result.maintenance": "容量整理完成:已先归档到记忆空间 {spaces},再更新{target} · 当前 {count} 条",
45
+ "runtime.result.localCompaction": "本地画像整理完成:未写入记忆空间,已更新{target} · 当前 {count} 条",
46
46
  "runtime.readOnly": "当前部署为只读模式;热记忆仍会进入上下文,但不能在此修改。",
47
47
  "runtime.footnote": "memories.json 是唯一事实源;两个 Markdown 文件由控制层生成,不应直接编辑。"
48
48
  },