dsh-layers-hippocampus 1.9.21 → 1.9.22
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/CHANGELOG.md +18 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/ui/client.js +11 -18
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ All notable changes to `dsh-layers-hippocampus` are documented here.
|
|
|
4
4
|
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
5
5
|
and the project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.9.22] — 2026-12-02
|
|
8
|
+
|
|
9
|
+
**侧栏图标又变回按钮了:直接 `register` 在冷启动时会被丢掉。**
|
|
10
|
+
|
|
11
|
+
重启 DSH 之后(新进程、新端口),实时槽位树里 `sidebar.panellist` 的 8 个占用者中**没有**
|
|
12
|
+
`hippocampus-panel`,footer 的「记忆」按钮又出现了 —— 说明那对入口这次根本没注册上。
|
|
13
|
+
|
|
14
|
+
原因:1.9.17 把成对注册改成了**直接 `slots.register`**(当时的依据是 `main` 占用者显示
|
|
15
|
+
`active:false`,误判成 inject 包装回收了注册)。直接注册在 `apply()` 里立即执行,而声明这两个
|
|
16
|
+
座位的 factory 在冷启动时还没实例化 → 注册进了一个尚不存在的座位,被静默丢弃。而
|
|
17
|
+
`slots.inject(key, cb)` 的全部意义就是**等座位出现再回调**,dsh-context 与
|
|
18
|
+
dsh-plugin-tool-management 都是这么写的,它们的占用者长期 `active:true`。
|
|
19
|
+
|
|
20
|
+
- **Fixed**:`main` + `sidebar.panellist` 回到 `mount()`(inject 包装),删除 `mountDirect`。
|
|
21
|
+
昨天那个 `active:false` 的真因是面板抛错(#310,已在 1.9.20 修复),不是 inject。
|
|
22
|
+
- **Tests**:`clientSlot`/`v150.ui` 的注入清单回到 6 条;`v1102.seats` 增加
|
|
23
|
+
「不得存在 mountDirect 直注册路径」断言。全套 **750/750**。
|
|
24
|
+
|
|
7
25
|
## [1.9.21] — 2026-12-01
|
|
8
26
|
|
|
9
27
|
**宿主报了两个窗口,谁小听谁的(这次是 262,144 赢了 1,048,576)。**
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-layers-hippocampus",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Layered long-term memory for DeepSeek Harness: append-only event log, rebuildable tag index, day diaries, independent semantic layer, L2.5 trend quarantine, offline knowledge graph and a Web UI panel.",
|
|
6
6
|
"type": "module",
|
package/ui/client.js
CHANGED
|
@@ -5719,22 +5719,15 @@ h(
|
|
|
5719
5719
|
}
|
|
5720
5720
|
};
|
|
5721
5721
|
|
|
5722
|
-
// v1.9.
|
|
5723
|
-
//
|
|
5724
|
-
//
|
|
5725
|
-
//
|
|
5726
|
-
//
|
|
5727
|
-
//
|
|
5728
|
-
//
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
if (typeof slots.register !== 'function') return;
|
|
5732
|
-
slots.register({ name, ...options }, component);
|
|
5733
|
-
} catch (error) {
|
|
5734
|
-
report(`register ${name}`, error);
|
|
5735
|
-
}
|
|
5736
|
-
};
|
|
5737
|
-
|
|
5722
|
+
// v1.9.22: BOTH halves go through `slots.inject`, exactly like
|
|
5723
|
+
// dsh-context and dsh-plugin-tool-management. v1.9.17 switched to a direct
|
|
5724
|
+
// `slots.register` because a `main` occupant came back `active:false`; that
|
|
5725
|
+
// reading was a symptom of the panel THROWING (#310), not of the inject
|
|
5726
|
+
// wrapper. A direct registration runs before the shell has instantiated the
|
|
5727
|
+
// factory that declares these seats, so on a cold boot the entries were
|
|
5728
|
+
// dropped entirely — the sidebar went back to a footer button. `inject`
|
|
5729
|
+
// defers until the seat exists, which is the whole point of the API.
|
|
5730
|
+
//
|
|
5738
5731
|
// Every seat below was verified live through
|
|
5739
5732
|
// `cordis_inspect_query(client, Slots, listSubTree)` — and the list is
|
|
5740
5733
|
// pinned by `test/v1102.seats.test.js`, because a seat name is an open
|
|
@@ -5745,8 +5738,8 @@ h(
|
|
|
5745
5738
|
// sidebar.footer.action fallback entry (hides once the icon renders)
|
|
5746
5739
|
// shell.overlay the fallback sheet that entry opens
|
|
5747
5740
|
// settings.section the settings page
|
|
5748
|
-
|
|
5749
|
-
|
|
5741
|
+
mount('main', { key: MEMORY_PANEL_ID }, MemoryPanelHost);
|
|
5742
|
+
mount('sidebar.panellist', { id: MEMORY_PANEL_ID, order: 60, label: '海马体记忆' }, MemoryPanelIcon);
|
|
5750
5743
|
mount('sidebar.footer.action', { id: 'hippocampus-resume', order: 31, label: '续接' }, SidebarResumeButton);
|
|
5751
5744
|
mount('sidebar.footer.action', { id: 'hippocampus-open', order: 30, label: '海马体记忆' }, SidebarMemoryAction);
|
|
5752
5745
|
mount('shell.overlay', { id: 'hippocampus-overlay', order: 30, label: '海马体记忆' }, MemoryOverlay);
|