dsh-multipane 1.0.56 → 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 +21 -21
- package/README.en.md +42 -2
- package/README.md +320 -280
- package/cordis.patch.yml +11 -11
- package/lib/client.js +1470 -131
- package/lib/index.js +166 -9
- package/locale/en.json +0 -0
- package/locale/zh.json +0 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 weiaisuyan
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 weiaisuyan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.en.md
CHANGED
|
@@ -161,9 +161,49 @@ node scripts/check-names.cjs # package name / version / release-age allowanc
|
|
|
161
161
|
|
|
162
162
|
## Changelog
|
|
163
163
|
|
|
164
|
-
|
|
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
165
|
|
|
166
|
-
|
|
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.
|
|
167
207
|
|
|
168
208
|
### 1.0.55 (2026-11-22)
|
|
169
209
|
|