@restregular/dsh-powerup 0.7.0 → 0.8.0
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 +40 -2
- package/client.js +1244 -3
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Small, opt-in upgrades for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness).
|
|
4
4
|
The upgrades include a **right-click action menu in the Trajectory view**, a
|
|
5
5
|
**copyable step reference** that an agent can resolve back into the raw session
|
|
6
|
-
data, an optional **stop reason for background jobs**,
|
|
7
|
-
**plugin installer
|
|
6
|
+
data, an optional **stop reason for background jobs**, an in-place
|
|
7
|
+
**plugin installer**, and a **sidebar launcher** that turns the left sidebar's
|
|
8
|
+
panel list into an adaptive icon grid with drag sorting and folders.
|
|
8
9
|
|
|
9
10
|
## Install
|
|
10
11
|
|
|
@@ -87,6 +88,31 @@ omitted by default because they are large. The tool is workspace-agnostic: it
|
|
|
87
88
|
reads the session named in the reference through `ctx.sessionQuery`, so an agent
|
|
88
89
|
can open a step in a session it never had to locate on disk.
|
|
89
90
|
|
|
91
|
+
### Sidebar launcher
|
|
92
|
+
|
|
93
|
+
The left sidebar's global panel buttons (Conversation, Files, Plugins, and the
|
|
94
|
+
entries other plugins add) become an icon grid instead of a one-per-row list:
|
|
95
|
+
|
|
96
|
+
- **Columns follow the width.** The list is an `auto-fill` grid of
|
|
97
|
+
`minmax(58px, 1fr)` cells, so widening the sidebar adds columns and narrowing
|
|
98
|
+
it removes them — there is no fixed column count to break.
|
|
99
|
+
- **Icons above labels.** Each tile stacks a 20px icon over an 11px caption, one
|
|
100
|
+
line with an ellipsis when the label is long.
|
|
101
|
+
- **Drag to sort.** Press and drag a tile; a ghost follows the pointer and a
|
|
102
|
+
thin accent line marks the insertion point. Order is stored per browser.
|
|
103
|
+
- **Drop onto a tile's middle to build a folder.** Dropping on the middle of
|
|
104
|
+
another icon folds both into a folder tile (like a Windows Start menu folder);
|
|
105
|
+
dropping on a folder adds to it; dropping a folder onto an icon or another
|
|
106
|
+
folder merges them. Click a folder and the contained icons appear in a flyout
|
|
107
|
+
anchored to the tile, scaling in from its edge. Inside the flyout: click an
|
|
108
|
+
entry to open that panel, `×` removes it from the folder, click the title to
|
|
109
|
+
rename the folder, and **Ungroup** returns every member to the grid.
|
|
110
|
+
- **Collapsed sidebar stays native.** When the sidebar collapses to its 56px
|
|
111
|
+
rail there are no labels to stack, so the launcher steps aside and the host's
|
|
112
|
+
rail rendering takes over untouched.
|
|
113
|
+
- The grid can be switched off on the Power-Up page; order and folders survive
|
|
114
|
+
the switch and are kept in `localStorage`.
|
|
115
|
+
|
|
90
116
|
## Install a plugin
|
|
91
117
|
|
|
92
118
|
Open the built-in **Plugins** page. Every third-party card under **Installed
|
|
@@ -170,6 +196,18 @@ fiber is unloaded. The panel closes; refresh the page when the install finishes.
|
|
|
170
196
|
The typed reason goes to `POST /dsh-powerup/api/job-kill`, which calls the
|
|
171
197
|
registry's `kill(id, session, reason)` — the same admission the built-in
|
|
172
198
|
Remote uses, with the reason settlement merges into the job's `detail` line.
|
|
199
|
+
- **The launcher upgrades the host list in place.** It never re-renders the
|
|
200
|
+
host's own panel rows: it marks the `<nav>`, applies grid/tile CSS, appends
|
|
201
|
+
synthetic folder tiles, hides the rows that moved into a folder with an
|
|
202
|
+
inline `display` (React rewrites `className` when the active panel changes and
|
|
203
|
+
would drop an added class), and sorts with the grid's `order` property. A
|
|
204
|
+
`MutationObserver` re-applies that after every host render, and the module
|
|
205
|
+
falls back to the native rail whenever the wide layout disappears.
|
|
206
|
+
- **Launcher state is tiny and self-healing.** `dsh-powerup:launcher:v1` stores
|
|
207
|
+
only an order array plus group records. `normalizeLauncherState` drops panels
|
|
208
|
+
that no longer exist (unregistered or unpinned), appends new ones in host
|
|
209
|
+
order, and dissolves empty folders, so plugin changes never wedge the layout
|
|
210
|
+
or lose the settings of the panels that remain.
|
|
173
211
|
- **The install entry uses the built-in page's contracts.** The Plugins page has
|
|
174
212
|
no per-card slot, so the overlay injects one button into every
|
|
175
213
|
`[data-plugin-group="bundles"] [data-plugin-package]` card and re-asserts it
|