dsh-multipane 1.0.34 → 1.0.36

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.en.md ADDED
@@ -0,0 +1,196 @@
1
+ # dsh-multipane
2
+
3
+ Turn the **DeepSeek Harness main area** into a multi-pane tabbed workspace: up to four panes side by side, each with its own tab strip and its own composer. Drag a tab to a pane edge to split.
4
+
5
+ [中文说明](README.md) · [Changelog](#changelog) · [Install](#install)
6
+
7
+ ![Two panes side by side: three tabs on the left pane, two on the right, each with its own tab strip and composer](https://raw.githubusercontent.com/weiaisuyan/dsh-split-view/main/docs/screenshots/01-overview.png)
8
+
9
+ > The images in this README are rendered from the plugin's real layout and colours — they are illustrations, not screen captures.
10
+
11
+ ---
12
+
13
+ ## The problem it solves
14
+
15
+ DSH shows one conversation at a time. Real work rarely looks like that: you want the plan on the left while you try it on the right, or the logs above and the code below. Every switch costs you the context you just built up.
16
+
17
+ Multi-pane puts those conversations on one screen, and keeps them **independent**: tabs, composer and the view switcher all belong to their own pane.
18
+
19
+ ## What you get
20
+
21
+ | Capability | Notes |
22
+ | --- | --- |
23
+ | Up to four panes | `MAX_PANES = 4`; extra tabs stay in their pane |
24
+ | Per-pane tab strip | Drag to reorder, double-click to close (optional), right-click to lock |
25
+ | Per-pane composer | Type in a pane and it goes to that pane's conversation — no focus juggling |
26
+ | Drag to split | Drop a tab (or a sidebar session) on the **outer 20%** of a pane body to open a new pane on that side |
27
+ | Sidebar state colours | Only *focused / open / hidden* rows are tinted — **untouched rows stay exactly as the host renders them** |
28
+ | View switcher | The "Conversation / Orchestrate / Cost…" row in each pane header; top, bottom or hidden, order configurable |
29
+ | Attachment targeting | Drop a file on a pane and the attachment lands in that pane only |
30
+ | Bilingual | Follows the host language; switches instantly, no restart |
31
+ | Layout persistence | Pane widths, tabs per pane and the active tab are remembered |
32
+
33
+ ## Install
34
+
35
+ ### npm (recommended)
36
+
37
+ ```bash
38
+ npx @deepseek-ai/dsh plugin --profile desktop add dsh-multipane
39
+ ```
40
+
41
+ ### Straight from GitHub
42
+
43
+ ```bash
44
+ npx @deepseek-ai/dsh plugin --profile desktop add github:weiaisuyan/dsh-split-view
45
+ ```
46
+
47
+ > The repository is called `dsh-split-view`, but the **npm package is `dsh-multipane`**. Install by package name.
48
+
49
+ ### Restart DSH afterwards
50
+
51
+ The plugin's client bundle can hot-swap, but **manifest changes such as `exports` entries are only read when the host starts or the loader entry restarts**. If you upgraded from an older version and the plugin list still shows an English-only name, restart the host once.
52
+
53
+ ### ⚠️ Do not enable together with `dsh-split-view` by luckybilly
54
+
55
+ Both plugins insert a loader entry with `id: split-view`, so the ids collide and the main area renders incorrectly. Remove one before installing the other.
56
+
57
+ ### Upgrade / uninstall
58
+
59
+ ```bash
60
+ # upgrade
61
+ npx @deepseek-ai/dsh plugin --profile desktop add dsh-multipane@latest
62
+
63
+ # uninstall
64
+ npx @deepseek-ai/dsh plugin --profile desktop remove dsh-multipane
65
+ ```
66
+
67
+
68
+
69
+ ## Using it
70
+
71
+ | Goal | How |
72
+ | --- | --- |
73
+ | Split | Drag a tab (or a sidebar session) onto the **outer 20%** of a pane body |
74
+ | Move a tab into another pane | Drag it onto the **middle** of the target pane |
75
+ | Close a tab | Double-click it (can be disabled in settings), or click its ✕ |
76
+ | Lock a pane | Right-click a tab → Lock; a locked pane cannot be dragged away and its tabs cannot be closed |
77
+ | Resize panes | Drag the divider between two panes |
78
+ | Hide the sidebar entry | Settings → Sidebar → Show entry in sidebar |
79
+
80
+ ![Drag to split: dragging a tab to the outer 20% shows a dashed drop zone; release to open a new pane](https://raw.githubusercontent.com/weiaisuyan/dsh-split-view/main/docs/screenshots/02-drag-split.png)
81
+
82
+ ## Settings
83
+
84
+ Available under DSH Settings, or by clicking the "Multi-pane" entry in the sidebar.
85
+
86
+ ![Settings page: appearance, view switcher and sidebar groups](https://raw.githubusercontent.com/weiaisuyan/dsh-split-view/main/docs/screenshots/03-settings.png)
87
+
88
+ | Group | What you can tune |
89
+ | --- | --- |
90
+ | Appearance | Global line colour (7 presets + custom), divider width and opacity, active-tab focus line, tab hover background; each item can follow the global value or override it |
91
+ | View switcher | Position (top / bottom / hidden), order, which views to hide |
92
+ | Sidebar | Show the sidebar entry, session-row colouring switch, intensity of the focused / open / hidden tints |
93
+ | Behaviour | Double-click to close, drop-zone size |
94
+ | Data | Export settings as JSON / restore from JSON / reset to defaults |
95
+
96
+ Everything is stored in **local `localStorage` (key `dsh-split-view:prefs:v1`). Nothing is uploaded and nothing phones home.
97
+
98
+ ## Language
99
+
100
+ The plugin follows the host language — no separate setting:
101
+
102
+ | Host language | Sidebar entry | Plugin list card | Settings title |
103
+ | --- | --- | --- | --- |
104
+ | 中文 | 多栏视图 | 多栏视图 (dsh-multipane) | 多栏视图 (Multi-pane) |
105
+ | English | Multi-pane | Multi-pane | 多栏视图 (Multi-pane) |
106
+
107
+ The settings title is intentionally bilingual so the plugin is recognisable in either UI language; every setting inside follows the host language and switches without a restart.
108
+
109
+ ## Update check
110
+
111
+ The settings page shows the current version and offers a "Check for updates" action:
112
+
113
+ - it compares against `https://registry.npmjs.org/dsh-multipane/latest`;
114
+ - when a newer version exists, one click calls the host-side `POST /dsh-multipane/update` route, which downloads the npm tarball, extracts it, backs up the old files and rolls back on failure;
115
+ - this self-update **only runs when you click it** — no background polling. It bypasses pnpm (no lockfile rewrite, no release-age cooldown) and only appends an `|| <current version>` allowance to an existing `dsh-multipane` line in `pnpm-workspace.yaml`.
116
+
117
+ ## Compatibility
118
+
119
+ - DSH `>= 0.2.1-rc.5` (desktop and web profiles)
120
+ - Client platform: `web` (the Chromium runtime inside DSH desktop)
121
+ - Four panes maximum; pane widths are stored as ratios so resizing the window does not break the layout
122
+
123
+ ## Known limitations
124
+
125
+ - Splitting only triggers on the **outer 20%** of a pane body; the middle is "merge into this pane";
126
+ - Four panes is a hard cap — a fifth tab stays where it is;
127
+ - Mutually exclusive with luckybilly's `dsh-split-view` (see above);
128
+ - Disabling the plugin restores the host's session list immediately, but an already open multi-pane workspace is not collapsed automatically — use the "Conversation" item in the view switcher to return to the single-pane view.
129
+
130
+ ## Feedback & support
131
+
132
+ | Channel | Good for | Where |
133
+ | --- | --- | --- |
134
+ | **GitHub Issues** (preferred) | Bugs, feature requests, usage questions — searchable and trackable | <https://github.com/weiaisuyan/dsh-split-view/issues/new/choose> |
135
+ | Email | Anything you would rather not post publicly (including security reports) | <1450719125@qq.com> |
136
+ | Marketplace page | Short description, install command, current version | <https://awesome-dsh-plugin.com/p/weiaisuyan/dsh-split-view/> |
137
+
138
+ When reporting, please include:
139
+
140
+ - **Version** — the `已是 最新版本(1.0.x,…)` line at the bottom of the settings page, or `version` in `~/.dsh/profiles/<profile>/node_modules/dsh-multipane/package.json`
141
+ - **DSH version** and OS (Windows / macOS / Linux)
142
+ - **UI language** (中文 / English) — the plugin ships two string sets, and some bugs only reproduce in one
143
+ - **Steps to reproduce**, plus any `[split-view]` error from the F12 console
144
+
145
+ ## Development
146
+
147
+ The shipped JavaScript **is** the source — there is no build step:
148
+
149
+ ```
150
+ lib/index.js host side: self-update routes (GET /dsh-multipane/status, POST /dsh-multipane/update)
151
+ lib/client.js client side: the whole workspace + settings page + sidebar marks (single file, ~9.4k lines)
152
+ locale/*.json plugin-list card title and description, per language (meta.title / meta.description)
153
+ cordis.patch.yml inserts the `id: split-view` loader entry
154
+ ```
155
+
156
+ Restart the host to pick up changes. Before opening a PR, run the bundled consistency check:
157
+
158
+ ```bash
159
+ node scripts/check-names.cjs # package name / version / release-age allowance must agree
160
+ ```
161
+
162
+ ## Changelog
163
+
164
+ ### 1.0.36 (2026-11-11)
165
+
166
+ - **Ctrl+W closes the tab, with two switches**: the settings page gains "Ctrl+W closes the tab" (master) and "Close the window on the last tab" (depends on the former; greyed out and disabled while the master is off). Pressing Ctrl+W on the last remaining tab now closes the window instead of appearing to do nothing
167
+ - **Bar thickness is now a continuous slider**: "Focused row bar thickness" and "Open-row bar thickness" were 1–8px chip buttons; they are sliders now, 0.5% steps up to 30% of the session-row width. Existing px values are converted to percentages automatically
168
+ - **Dragging a tab no longer lights up every divider**: only the divider the pointer is actually over highlights
169
+ - **New "Interaction" section in settings** explaining that motion follows the system animation setting, so the app stays still when Windows animations are off (by design)
170
+
171
+ ### 1.0.35 (2026-11-10)
172
+
173
+ - **Fixed the janky pulse in the session list**: the breathing effect no longer restyles and repaints the whole row every frame; it animates the opacity of a pseudo-element instead, which the compositor handles. Same look, a fraction of the cost
174
+ - **Removed the dead "Unopened row text brightness" slider**: it stopped affecting anything once 1.0.34 dropped the dimming rules
175
+ - **Documentation rewritten**: a complete Chinese README plus a complete English one ([README.en.md](README.en.md))
176
+ - **Three UI illustrations added**: overview, drag-to-split, settings (rendered from the real layout and colours, not screen grabs)
177
+ - **New npm description**, aligned with the plugin-list description in both languages
178
+ - **New "Feedback & support"** section: issue templates, email, marketplace page
179
+ - **Author-local scripts removed from the repository**, plus scripts/check-privacy.cjs and a CI gate so personal data cannot creep back in
180
+
181
+ ### 1.0.34 (2026-11-10)
182
+
183
+ - **Bilingual zh/en UI**: sidebar entry, every setting, tab strips, context menus and hints (~300 strings), following the host language with instant switching
184
+ - **Localised name in the plugin list**: added `locale/zh.json` + `locale/en.json` with a `./locale/*.json` export, so the card reads "多栏视图 (dsh-multipane)" / "Multi-pane"
185
+ - **Fixed the settings page losing its stylesheet**: the heartbeat no longer deletes the style element while the plugin is disabled, and the page no longer flashes unstyled
186
+ - **Fixed host session rows being restyled while the plugin was disabled**: row marks are cleared on disable, so untouched rows are fully restored
187
+ - **Fixed dimmed session rows**: removed three `opacity` rules that dimmed the entire row, including pinned rows and hover actions; only focused / open / hidden rows are tinted
188
+ - **Fixed drag-and-drop and the "+" file picker breaking while disabled**: drop listeners and the composer attachment slot now mount and unmount with the master switch, and a drop with no valid target is no longer swallowed
189
+
190
+ ### 1.0.33 and earlier
191
+
192
+ See [GitHub Releases](https://github.com/weiaisuyan/dsh-split-view/releases) and the commit history.
193
+
194
+ ## License
195
+
196
+ [MIT](LICENSE)