dsh-mnemon 0.4.0 → 0.4.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
@@ -24,7 +24,7 @@
24
24
  <p align="center">
25
25
  <a href="./docs/en/capabilities.md"><strong>Explore the capability map</strong></a> ·
26
26
  <a href="./docs/en/getting-started.md">Start in five minutes</a> ·
27
- <a href="./docs/en/releases/v0.4.0.md">Read the v0.4.0 notes</a> ·
27
+ <a href="./docs/en/releases/v0.4.1.md">Read the v0.4.1 notes</a> ·
28
28
  <a href="https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4">Watch the widescreen demo</a>
29
29
  </p>
30
30
 
@@ -36,6 +36,8 @@ Since v0.3.0, the three tiers are the **default topology** of a composable kerne
36
36
 
37
37
  v0.4.0 makes Sidebar the only Memory System workspace and removes the builtin display mode and its setting. Legacy display preferences are ignored without changing memory data; the complete view-based upgrade is planned for v0.5, not this release. Read the [upgrade and compatibility notes](./docs/en/releases/v0.4.0.md#upgrade-and-compatibility) before updating.
38
38
 
39
+ v0.4.1 fixes Memory System and Save to memory rendering with this-dependent DSH settings stores, plus ZIP export failures and archive differences across timezones. It preserves the v0.4.0 workflow and existing memory formats. See the [patch release notes](./docs/en/releases/v0.4.1.md).
40
+
39
41
  ## Understand the scope in 30 seconds
40
42
 
41
43
  | Tier | Keep here | How it reaches the Agent | Managed by |
@@ -210,7 +212,7 @@ See [Operations, security, and troubleshooting](./docs/en/operations.md) for bac
210
212
  | Back up, update, or troubleshoot | [Operations](./docs/en/operations.md) |
211
213
  | Integrate tools, commands, or RPC | [Interface reference](./docs/en/interfaces.md) |
212
214
  | Build a Layer, Adapter, Strategy, Guard, or MemorySource extension | [Extension guide](./docs/en/extensions.md) |
213
- | Review the release | [v0.4.0 release notes](./docs/en/releases/v0.4.0.md) |
215
+ | Review the release | [v0.4.1 release notes](./docs/en/releases/v0.4.1.md) |
214
216
 
215
217
  See the [documentation hub](./docs/en/README.md) for the full map.
216
218
 
package/README.zh-CN.md CHANGED
@@ -24,7 +24,7 @@
24
24
  <p align="center">
25
25
  <a href="./docs/zh-CN/capabilities.md"><strong>先看能力地图</strong></a> ·
26
26
  <a href="./docs/zh-CN/getting-started.md">5 分钟开始</a> ·
27
- <a href="./docs/zh-CN/releases/v0.4.0.md">v0.4.0 升级说明</a> ·
27
+ <a href="./docs/zh-CN/releases/v0.4.1.md">v0.4.1 升级说明</a> ·
28
28
  <a href="https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4">观看宽屏实机演示</a>
29
29
  </p>
30
30
 
@@ -36,6 +36,8 @@
36
36
 
37
37
  v0.4.0 将 Sidebar 设为记忆系统的唯一工作台入口,移除 builtin 展示模式及其设置。旧展示偏好会被忽略,不改变记忆数据;完整的 view-based 升级计划放在 v0.5,不包含在本版中。更新前请阅读[升级与兼容性说明](./docs/zh-CN/releases/v0.4.0.md#升级与兼容性)。
38
38
 
39
+ v0.4.1 修复记忆系统和存入记忆在依赖 `this` 的 DSH settings store 上的渲染崩溃,以及 ZIP 导出失败和跨时区归档差异;保留 v0.4.0 工作流与既有记忆格式。详见[补丁发布说明](./docs/zh-CN/releases/v0.4.1.md)。
40
+
39
41
  ## 30 秒理解能力边界
40
42
 
41
43
  | 层级 | 适合保存 | 如何进入 Agent 上下文 | 由谁管理 |
@@ -210,7 +212,7 @@ dsh plugin --profile headless add "link:/absolute/path/to/dsh-mnemon"
210
212
  | 备份、更新或排障 | [运维指南](./docs/zh-CN/operations.md) |
211
213
  | 接入工具、命令或 RPC | [接口参考](./docs/zh-CN/interfaces.md) |
212
214
  | 开发 Layer、Adapter、Strategy、Guard 或 MemorySource 扩展 | [扩展开发指南](./docs/zh-CN/extensions.md) |
213
- | 查看本次升级 | [v0.4.0 发布说明](./docs/zh-CN/releases/v0.4.0.md) |
215
+ | 查看本次升级 | [v0.4.1 发布说明](./docs/zh-CN/releases/v0.4.1.md) |
214
216
 
215
217
  完整目录见[文档中心](./docs/zh-CN/README.md)。
216
218
 
package/lib/client.js CHANGED
@@ -4451,7 +4451,9 @@ window.__ModuleLoader__.load({
4451
4451
  const PREVIEW_LIMIT = 8e3;
4452
4452
  /** Save-to-memory action on finalized assistant messages, routed through the supervised writeback gate. */
4453
4453
  const MnemonSaveAction = (0, react.memo)(function MnemonSaveAction({ messageId, sessionId, connection, settingsScope, t }) {
4454
- const settingsSnapshot = (0, react.useSyncExternalStore)(settingsScope.subscribe, settingsScope.getSnapshot, settingsScope.getSnapshot);
4454
+ const subscribeSettings = (0, react.useCallback)((listener) => settingsScope.subscribe(listener), [settingsScope]);
4455
+ const getSettingsSnapshot = (0, react.useCallback)(() => settingsScope.getSnapshot(), [settingsScope]);
4456
+ const settingsSnapshot = (0, react.useSyncExternalStore)(subscribeSettings, getSettingsSnapshot, getSettingsSnapshot);
4455
4457
  const managementWritable = settingsSnapshot.status === "ready" && settingsSnapshot.writable;
4456
4458
  const [open, setOpen] = (0, react.useState)(false);
4457
4459
  const [writeEnabled, setWriteEnabled] = (0, react.useState)(void 0);
@@ -11290,7 +11292,9 @@ window.__ModuleLoader__.load({
11290
11292
  }
11291
11293
  function MnemonWorkspace({ connection, settingsScope, sessionId, workspaceId, workspaceSelection, onClose }) {
11292
11294
  const t = useT();
11293
- const settingsSnapshot = (0, react.useSyncExternalStore)(settingsScope.subscribe, settingsScope.getSnapshot, settingsScope.getSnapshot);
11295
+ const subscribeSettings = (0, react.useCallback)((listener) => settingsScope.subscribe(listener), [settingsScope]);
11296
+ const getSettingsSnapshot = (0, react.useCallback)(() => settingsScope.getSnapshot(), [settingsScope]);
11297
+ const settingsSnapshot = (0, react.useSyncExternalStore)(subscribeSettings, getSettingsSnapshot, getSettingsSnapshot);
11294
11298
  const client = (0, react.useMemo)(() => new MnemonClient(connection, sessionId, workspaceId), [
11295
11299
  connection,
11296
11300
  sessionId,
package/lib/index.js CHANGED
@@ -2712,7 +2712,7 @@ var MnemonPackManager = class {
2712
2712
  };
2713
2713
  const archive = zipSync(entries, {
2714
2714
  level: 6,
2715
- mtime: /* @__PURE__ */ new Date("1980-01-01T00:00:00.000Z")
2715
+ mtime: new Date(1980, 0, 1)
2716
2716
  });
2717
2717
  if (archive.length > 50331648) throw new Error("exported Mnemon Pack exceeds the transport safety limit");
2718
2718
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mnemon",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Composable three-tier memory control plane for DeepSeek Harness: persistent runtime context, searchable project documents, pluggable long-term memory, guarded strategies, WebUI, and headless tools.",
5
5
  "keywords": [
6
6
  "deepseek-harness",