dsh-multipane 1.0.55 → 1.1.9

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/LICENSE CHANGED
File without changes
package/README.en.md CHANGED
@@ -161,6 +161,50 @@ node scripts/check-names.cjs # package name / version / release-age allowanc
161
161
 
162
162
  ## Changelog
163
163
 
164
+ > 1.0.57–1.1.8 were internal iterations and were not published to npm; 1.1.9 is the first public release after 1.0.56.
165
+
166
+ ### 1.1.9 (2026-11-23)
167
+
168
+ - **Fix: after disabling and re-enabling in the plugin manager, the panes did not return and the colors turned gray.** On 0.2.3 a disable stops only the Host entry; the client code is never unloaded. The Host `/dsh-multipane/status` now reads the profile `package.json` `bundles` directly (the manager removes the plugin there), and the client watches it through a `globalThis` watchdog that survives a ctx disposal. A disable clears the styles, row marks, `data-dsv-*` and `--dsv-*`; a re-enable revives in place: restores `prefs.enabled`, reinstalls the stylesheet, rewrites the color variables, and removes the stale inline `display:none` on `.dsv-root`.
169
+ - **Fix: the sidebar rail and tab underlines were gray after a re-enable.** The purge removed the `--dsv-*` variables from `<html>`, while the old code rewrote them only through a prefs subscription that died with the old context. The 700 ms global heartbeat now rewrites them whenever they are missing or the settings changed, without relying on that subscription.
170
+ - **Diagnostics**: `~/.dsh/.dsv-diag.json` now reports `build / status / panel.activePanelId / dom` (root, pane and tab rects plus computed styles); `~/.dsh/.dsv-disabled` can force one disable-cleanup pass for troubleshooting.
171
+
172
+ ### 1.0.89 (2026-11-23)
173
+
174
+ - **Fix: the Session list lost its rendering as soon as the plugin manager opened.** The cause was the `html:not(:has(.dsv-root)) …` fallback added in 1.0.8x: a missing `.dsv-root` does not mean "disabled" — opening the plugin manager, the settings page or any Host panel that takes over the workspace unmounts it, leaving the marks in place while those rules stripped every style. The whole block is gone; cleanup after a disable is the liveness probe's job now.
175
+ - **A disable is now declared only after eight continuous seconds without the Host route** (it used to be two failed probes, about five seconds). Host recomposition makes the route blink; counting attempts cleared the page too eagerly.
176
+ ### 1.0.88 (2026-11-23)
177
+
178
+ - **Disabling the plugin in the host's plugin manager now cleans the page immediately (no `Ctrl+R`).** On 0.2.3 a disable stops only the Host entry: the client code already injected into the page is never unloaded and receives no notification. The plugin now treats **its own Host route as the liveness signal**: `lib/index.js` registers `/dsh-multipane/status` inside `ctx.effect`, so disabling removes the route together with the plugin. The client probes it every 2.5s, requires one successful answer first (so environments without a webServer never false-positive), and after two consecutive failures deletes its injected `<style>`, the row marks, the `<html>` attributes and hides the workspace root, restoring the stock look in place. Re-enabling answers again, and the client then reloads the page once to mount the plugin cleanly (sessions and tasks live on the Host, so the reload does not interrupt them). If the Host keeps the workspace mounted after a disable, the client reloads once as well, so the stock interface comes back completely.
179
+ - **The row rail is now a slice of the Session row instead of a stripe beside it.** The breathing plate used to cover only the padding box while the rail was painted into the row's outermost 2.67px transparent border, so the two left edges disagreed and a seam showed around the rounded corners. The plate now spans the whole row (border box), and the static rail is drawn by an `::after` with the same shape plus a mask that keeps only the leading pixels: its outer edge follows the row's radius, its inner edge meets the plate, and the rail itself does not participate in the breathing animation.
180
+ ### 1.0.87 (2026-11-23)
181
+
182
+ - **Fix: only one Session row remained after opening the plugin manager.** 1.0.60 replaced the hand-built Session reference with the host's **real retain handle**. The host treats that handle as "a mounted surface is using this Session" and releases it when the workspace unmounts, so the Session vanished from the sidebar. An A/B check (1.0.55 fine; 1.0.86 with the real handle off keeps both rows) confirmed it, so the shell is back. The actual fix for empty pane bodies was `facets: { conversation: true }` on retain (1.0.63), independent of the reference shape.
183
+ - Also confirmed: after disabling the plugin in the manager, no sidebar marks remain (`html:not(:has(.dsv-root))` neutralizes them when the workspace is gone).
184
+ ### 1.0.64 (2026-11-23)
185
+
186
+ - **Fix: only the focused pane had a body** (covers the 1.0.61–1.0.63 investigation). The reference handed to the host's Session context was a hand-built shell and `sessions.retain()` omitted `facets: { conversation: true }`. 0.2.3 resolves bindings through `bindingSource(reference)`, so the shell produced none and the missing facet never materialized the conversation face — the subtree fell back to the host's current Session. The real retain handle is returned now, with the conversation facet; each pane binds its own Session. Verified with two panes side by side.
187
+ - **Session drag into a pane is no longer hijacked**: 0.2.3 shows a document-level "open in sidebar" drop preview over the main area. The gesture is now taken over in the window capture phase — the host never sees it (no preview) and the same coordinates are replayed to our pane, reusing the existing edge-split / add-tab logic.
188
+ - **Diagnostics are silent by default**: set `window.__dsvDiagOn = true` in the Console to enable them.
189
+ ### 1.0.60 (2026-11-23)
190
+
191
+ - **Fix: only the focused pane had a body.** The reference handed to the host's Session context was a hand-built `{sessionId, binding}` shell. 0.2.3 resolves the binding through `bindingSource(reference)`, so the shell produced an empty binding and the subtree fell back to the host's *current* Session — every other pane rendered empty. The real `sessions.retain()` handle is returned now, so each pane binds its own Session.
192
+ - **Drag-in fallback**: another plugin can swallow `dragstart` during the capture phase, which made the whole drag look "external" and let the host's "open in sidebar" target take the drop. The row's Session is now recorded on pointerdown, and the window title bar is switched to no-drag at the same moment so `dragover` reaches the page.
193
+ ### 1.0.59 (2026-11-23)
194
+
195
+ - **Fix: the rightmost header button toggled the wrong thing.** 1.0.58 forwarded its click to the new 0.2.3 "Session panel" switch; that was wrong — this button has always opened the **right sidebar** (the tabbed column), while the Session panel is a separate floating surface. It now calls `sidebarRight.toggleExpanded()` for state and `layout.openRightbar/closeRightbar` for the track (flattened onto `layout` in 0.2.3), both through the compatibility layer.
196
+ - **Read the state from the service** (`sidebarRight.isExpanded()`) instead of the build-hashed `.mP3x-q_rightbarCol` class.
197
+ ### 1.0.58 (2026-11-23)
198
+
199
+ - **Restore the two APIs DSH 0.2.3 moved**: the host flattened the right-bar methods from `layout.panels.*` onto `layout.*` and deleted `uiWorkspace.replaceMain` (replaced by `openSession`). All six call sites went silent: the right-bar button did nothing, the focused tab stopped syncing the host's current Session, and leaving split view left the host on the old Session. A compatibility layer now speaks both generations.
200
+ - **The corner toggle forwards to the official switch**: 0.2.3's right bar is the official Session panel, whose own toggle owns state and animation. Our corner button now delegates the click instead of reimplementing the open/close logic.
201
+ - **Creation hooks cover the new entry points**: `connectWorkspace` / `startSession` are captured too, and the "retry every 300 ms while an API is missing" loop is capped at 20 attempts so a removed API no longer spins forever.
202
+ ### 1.0.57 (2026-11-23)
203
+
204
+ - **Adapt to DSH 0.2.3-alpha.2 header entries**: the host now injects a full set of standard props into every slot entry. Our pane header builds props by hand, so a missing one silently removed the whole entry — four buttons disappeared in one day: the new **Session panel toggle** (three-line glyph), **schedule catalog**, **subagent breadcrumb** and **agent-preset label**. The pane header now supplies `useSessions`, `useAccess` and friends, and every entry gets a renderer for the child slots it declares (the Session panel's attention dot lives there); an undeclared child slot returns empty instead of throwing.
205
+ - **Fix the stylesheet never installing**: calling `applyLineVars()` during module evaluation hit the TDZ of the style text (`Cannot access 'CSS' before initialization`). The first call is now deferred to a microtask and `installStyles` retries once.
206
+ - Known gap (next release): focus-session sync and right-panel open/close still use 0.2.2's `uiWorkspace.replaceMain` / `layout.panels`, which 0.2.3 removed or flattened.
207
+
164
208
  ### 1.0.55 (2026-11-22)
165
209
 
166
210
  - **Fix duplicate New Session rows when the sidebar button is clicked repeatedly.** The sidebar New Session entry (and Ctrl+N) goes through the host's `uiWorkspace.startSession`. The 1.0.54 guard tried to install itself once at plugin load, but that host service often becomes available later, so the guard was never installed: each click really created or reused a blank session. The plugin did not open it as a tab, but the host still made it the current session, so another "New session" row appeared in the sidebar. The guard now retries until the service is ready (every 700ms, then stops), and when a new blank is merged into the pane's existing blank tab the host's main session is switched back to that existing blank as a second line of defence.
package/README.md CHANGED
@@ -160,6 +160,50 @@ node scripts/check-names.cjs # 包名 / 版本 / 冷却豁免三处是否一
160
160
 
161
161
  ## 更新记录
162
162
 
163
+ > 1.0.57–1.1.8 是内部迭代版本,未发布到 npm;1.1.9 是 1.0.56 之后的首个公开发布。
164
+
165
+ ### 1.1.9(2026-11-23)
166
+
167
+ - **修「插件管理里禁用后再启用,分栏不回来 / 颜色变灰」**:0.2.3 禁用时只停宿主入口,不卸载客户端。现在宿主 `/dsh-multipane/status` 直接读 profile `package.json` 的 `bundles`(管理器禁用就是从这里删),客户端用挂在 `globalThis` 上的看门狗(不随 ctx 销毁)判断;禁用后清样式、行标记、`data-dsv-*` 与 `--dsv-*`,重新启用时原地复活:恢复 `prefs.enabled`、重装样式、重写颜色变量、摘掉 `.dsv-root` 上残留的内联 `display:none`。
168
+ - **修「重新启用后竖条 / 标签下划线是灰色」**:清场删掉了 `<html>` 上的 `--dsv-*`,旧代码只靠 prefs 订阅重写,订阅随旧 context 消失后没人补。现在 700ms 全局心跳在变量缺失或设置变更时补写,不依赖订阅。
169
+ - **诊断**:`~/.dsh/.dsv-diag.json` 增加 `build / status / panel.activePanelId / dom`(root、pane、tab 的 rect 与 computed style);`~/.dsh/.dsv-disabled` 可手动触发一次禁用清场,用于排障。
170
+
171
+ ### 1.0.89(2026-11-23)
172
+
173
+ - **修「一进插件管理页,会话列表的渲染就没了」**:根因是 1.0.8x 加的那组 `html:not(:has(.dsv-root)) …` 兜底规则。`.dsv-root` 不存在 ≠ 被禁用——打开插件管理页、设置页或任何切走工作区的宿主面板时,工作区本来就会被卸载,于是标记还在、样式被这组规则全抹掉。整组已删除;禁用后的清理改由存活探测负责。
174
+ - **禁用判定改成「连续缺席 8 秒」**:原来是「连续两次探测失败(约 5s)」。宿主重排会让路由短暂消失,按次数判会误清,现在必须连续 8 秒都答不上来才清场。
175
+ ### 1.0.88(2026-11-23)
176
+
177
+ - **在宿主插件管理里禁用,页面立刻自清(不用再按 Ctrl+R)**:0.2.3 的禁用只停宿主入口,已经注入页面的客户端代码不会被卸载,插件也收不到任何通知。现在改为**用自己的宿主路由当存活信号**:`lib/index.js` 把 `/dsh-multipane/status` 注册进 `ctx.effect`,禁用时路由随插件一起注销;客户端每 2.5s 探一次,先确认答过一次(避免没有 webServer 的环境误判),之后连续两次答不上来就判定「已被禁用」,立刻删掉注入的 `<style>`、行标记与 `<html>` 属性并隐藏工作区根节点 —— 界面就地回到官方外观。重新启用时路由会答话,客户端检测到后自动重载一次页面,把插件完整装回来(会话与任务都在宿主侧,重载不打断);若禁用后宿主仍把工作区留在文档里,也会自动重载一次以彻底回到官方界面。
178
+ - **竖线改成从会话条上「切」出来的一条**:以前呼吸底板(伪元素)只铺 padding box,而竖线画在 border box 最左 2.67px,两层左缘不重合,圆角处能看出缝。现在底板铺满整行(含两侧透明边框区),竖线用同一形状的 `::after` + mask 只留左边几像素,左缘跟着行圆角走,右缘与底板严丝合缝;竖线本身不参与呼吸动画。
179
+ ### 1.0.87(2026-11-23)
180
+
181
+ - **修「进插件管理页,会话列表只剩一个会话」**:根因是 1.0.60 把交给宿主的会话引用从「自己拼的壳子」换成了**真 retain 句柄**。真句柄会被宿主当成"有挂载面在用",工作区一卸载就替我们释放,那个会话随即从侧栏消失。对照实验(1.0.55 正常 / 1.0.86 关掉真句柄后两行都在)确认后回退到壳子;**两栏正文不空白的真正原因是 retain 时带了 `facets:{conversation:true}`**(1.0.63),与引用形状无关。
182
+ - 顺带确认:插件管理里禁用后会话行不再残留(样式由 `html:not(:has(.dsv-root))` 判定,工作区不在即失效)。
183
+ ### 1.0.64(2026-11-23)
184
+
185
+ - **修「只有焦点栏有正文,其它栏全空」**(合并 1.0.61~1.0.63 的排查过程):给宿主会话上下文的那份 reference 之前是自己拼的壳子,且 `sessions.retain()` 没带 `facets: { conversation: true }`。0.2.3 的 SessionProvider 认 `bindingSource(reference)`,壳子解析不出绑定、缺 facet 又不物化「对话」面 → 子树退回宿主当前会话,于是只有焦点栏有内容。现在交回真 retain 句柄并带上 conversation facet,每栏各自绑定自己的会话。实测两栏并排正文都在。
186
+ - **拖会话进栏不再被官方抢走**:官方 0.2.3 在主区拖会话时会盖一层「在侧边栏打开」的预览(挂在 document 上),挡住我们的落点。改为在 window 捕获阶段接管整次拖拽:官方收不到事件(预览不出现),再补发同坐标事件给我们的栏,复用原有的边缘分栏 / 中间加标签逻辑。
187
+ - **诊断日志默认静默**:Console 里执行 `window.__dsvDiagOn = true` 才会打印,方便以后再定位。
188
+ ### 1.0.60(2026-11-23)
189
+
190
+ - **修「只有焦点栏有正文,其它栏全空」**:给宿主会话上下文的那份 reference 以前是自己拼的 `{sessionId, binding}` 壳子。0.2.3 的 SessionProvider 认的是 `bindingSource(reference)`,壳子解析不出绑定 → 子树退回宿主「当前会话」,于是只有焦点栏有内容。现在把 `sessions.retain()` 的真实句柄交回去(retainGuard 里本来就存着),每栏各自绑定自己的会话。
191
+ - **拖会话进栏的识别兜底**:别的插件可能在捕获阶段先截走 `dragstart`,导致整次拖拽被当成"外部拖拽"放行给官方(用户看到官方「在侧边栏打开」抢走落点)。现在鼠标按下的瞬间就记下按的是哪一行会话,并在按下时把窗口标题栏切成 no-drag,保证 dragover 能进页面。
192
+ ### 1.0.59(2026-11-23)
193
+
194
+ - **修「栏头最右那颗按钮点了去折叠别的东西」**:1.0.58 我把它的点击转交给了 0.2.3 新增的「会话面板」开关,这是错的 —— 那颗按钮的语义一直是开/关**右侧边栏**(带页签的那条栏),会话面板是浮在对话区右侧的另一套东西。现在恢复正路:`sidebarRight.toggleExpanded()` 管状态、`layout.openRightbar/closeRightbar`(0.2.3 已拍平到 layout)管列宽轨道,两代接口走兼容层。
195
+ - **开关状态改问服务,不再靠哈希类名**:展开与否读 `sidebarRight.isExpanded()`,不再依赖随构建变化的 `.mP3x-q_rightbarCol`。
196
+ ### 1.0.58(2026-11-23)
197
+
198
+ - **接通 DSH 0.2.3 搬走的两个接口**:宿主把右栏方法从 `layout.panels.*` 拍平到 `layout.*`,又删掉了 `uiWorkspace.replaceMain`(换成 `openSession`)。插件里这两处共 6 个调用点因此全部空转:右栏按钮点了没反应、焦点标签不再同步成宿主「当前会话」、退回单栏时宿主主会话停在旧的那个。现在加了兼容层,两代接口都认。
199
+ - **右栏按钮改成转交官方开关**:0.2.3 的右栏就是官方「会话面板」,栏头那颗三横线开关自己管状态与动画。我们的角落按钮检测到它就直接把点击转过去,不再自己造一套开合逻辑。
200
+ - **建会话钩子补上 0.2.3 的入口**:`connectWorkspace` / `startSession` 也能捕获新建出来的会话 id;同时把「缺一个接口就每 300ms 重试」改成最多 20 次,宿主删接口后不再常驻空转。
201
+ ### 1.0.57(2026-11-23)
202
+
203
+ - **适配 DSH 0.2.3-alpha.2 的会话头新条目**:宿主这一天给每个槽位条目注入了一整套「标准 props」,我们的多栏头是手工拼 props 渲染的,缺哪个就整格报错消失 —— 实测掉了四颗按钮:官方新增的**会话面板开关**(三横线)、**定时任务**、**子智能体面包屑**、**智能体预设标签**。现在补齐 `useSessions` / `useAccess` 等标准 props,并给每个条目生成它自己声明过的子槽渲染器(会话面板那颗「有后台任务」的蓝点就靠它),子槽没声明时安静返回空,绝不抛异常把按钮带走。
204
+ - **修「插件样式表没装上」**:模块加载期就调用 `applyLineVars()` 会撞上样式文案 `CSS` 的 TDZ,控制台报 `Cannot access 'CSS' before initialization`,整块界面裸奔。改为推迟到本轮微任务之后执行,并给 `installStyles` 加一次延迟重试。
205
+ - 已知未修(下一版):焦点会话同步、右栏开合仍走 0.2.2 的 `uiWorkspace.replaceMain` / `layout.panels`,这两处在 0.2.3 已被删除/搬平,需要按新接口重写。
206
+
163
207
  ### 1.0.55(2026-11-22)
164
208
 
165
209
  - **修「连点新建会话,侧栏会多出新会话行」**:侧栏「新建会话」/ Ctrl+N 走的是宿主的 `uiWorkspace.startSession`。上一版的拦截在插件加载时只尝试安装一次,而宿主的这个服务经常晚于插件就绪,拦截没装上,于是每点一次宿主就真的新建/复用一个空白会话;插件虽然没给它开标签,宿主仍把它当成当前会话,侧栏就多出一行「新会话」。现在改为服务就绪后自动重试安装(每 700ms 一次,装好即停),并在「合并到本栏已有空白标签」时把宿主的主会话切回原有空白会话,双保险。
package/cordis.patch.yml CHANGED
File without changes