dsh-nested-workspaces 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +92 -2
- package/client.js +1785 -0
- package/cordis.patch.yml +3 -0
- package/icon.svg +7 -0
- package/index.js +8 -0
- package/locale/en.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +57 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 poker
|
|
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.md
CHANGED
|
@@ -1,3 +1,93 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-nested-workspaces
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Nested child workspaces for the DeepSeek Harness sidebar.
|
|
4
|
+
|
|
5
|
+
DeepSeek Harness lists every workspace as a peer. This plugin turns that list
|
|
6
|
+
into a tree: a workspace can own child workspaces that live inside its directory,
|
|
7
|
+
sessions can be filed under any workspace, and the section title becomes yours to
|
|
8
|
+
name.
|
|
9
|
+
|
|
10
|
+
## What it does
|
|
11
|
+
|
|
12
|
+
- **Editable section title.** Double-click 「工作区」 (or `Workspaces`) to rename
|
|
13
|
+
it, press `Enter` to keep the name and `Escape` to cancel. `Enter` or `F2` does
|
|
14
|
+
the same from the keyboard. The name is stored in this browser and falls back to
|
|
15
|
+
the built-in label when emptied.
|
|
16
|
+
- **Add child workspace.** Right-click a workspace (or use its `…` menu) and pick
|
|
17
|
+
**添加子工作区 / Add child workspace**. The dialog asks for a folder name and
|
|
18
|
+
creates that directory *inside* the parent workspace's directory, then registers
|
|
19
|
+
it as a workspace. Because the child path sits under the parent path, the tree
|
|
20
|
+
nests it automatically.
|
|
21
|
+
- **File sessions under any workspace.** Drag a session row onto a workspace
|
|
22
|
+
header, or drop it above/below another session to place it exactly. The `…` menu
|
|
23
|
+
on every session also offers **移动到工作区 / Move to workspace** with one entry
|
|
24
|
+
per workspace — the same change without dragging.
|
|
25
|
+
- **Every row keeps its affordances.** Each workspace row, child or not, has the
|
|
26
|
+
same `…` menu (add child, new session, rename, delete) and the same
|
|
27
|
+
new-session button.
|
|
28
|
+
- **Workspace rename and delete.** Double-click a workspace title to rename it in
|
|
29
|
+
place; the `…` menu offers the same plus a delete confirmation. Deleting a
|
|
30
|
+
workspace only removes it from the sidebar — the folder and its sessions stay on
|
|
31
|
+
disk and the sessions reappear under *Ungrouped*.
|
|
32
|
+
- **Search.** The magnifier filters workspaces and sessions by title or path.
|
|
33
|
+
- **Archived sessions.** The archive button in the header reveals them; each
|
|
34
|
+
revealed row carries an unarchive button. Unarchive is otherwise unavailable
|
|
35
|
+
while this plugin owns the sidebar — the shipped browser's own archive view
|
|
36
|
+
is replaced.
|
|
37
|
+
|
|
38
|
+
## Limits
|
|
39
|
+
|
|
40
|
+
DSH assigns a session to a workspace by comparing the session's recorded working
|
|
41
|
+
directory with the workspace path. A session therefore cannot be re-homed to a
|
|
42
|
+
workspace with a different path. Filing a session under another workspace is a
|
|
43
|
+
*view* assignment kept by this plugin: the row is shown under the workspace you
|
|
44
|
+
dropped it on, and open/fork/archive keep working, but the session's own working
|
|
45
|
+
directory is unchanged. New sessions you start from a child workspace do get the
|
|
46
|
+
child directory as their working directory, because they are created there.
|
|
47
|
+
|
|
48
|
+
This plugin replaces the shipped workspace browser (it registers the same sidebar
|
|
49
|
+
seat at a lower priority, which is the only way to own the section title and the
|
|
50
|
+
row list). A few things come with that trade:
|
|
51
|
+
|
|
52
|
+
- Workspace rows carry this plugin's own menu instead of the shipped one: rename,
|
|
53
|
+
delete, new session and add child workspace all live there. Entries that other
|
|
54
|
+
plugins contribute to the *shipped* workspace context menu are not shown here.
|
|
55
|
+
- The shipped per-row **pin** and **archive** hover buttons are gone. Session
|
|
56
|
+
pinning and per-session archiving stay available from the session's own `…`
|
|
57
|
+
menu, which is still the shipped menu.
|
|
58
|
+
- The child seats the shipped browser used to expose
|
|
59
|
+
(`sidebar.workspaces.directoryFlow`, `sidebar.workspaces.session.row.action`,
|
|
60
|
+
`sidebar.session.row.leading`, `sidebar.session.row.trailing`,
|
|
61
|
+
`sidebar.session.row.hover`) are not rendered on these rows, so additions other
|
|
62
|
+
plugins place in them will not appear inside this section. The session `…` menu
|
|
63
|
+
is unaffected and remains the supported extension point.
|
|
64
|
+
|
|
65
|
+
## Using it
|
|
66
|
+
|
|
67
|
+
Right-click any workspace in the sidebar.
|
|
68
|
+
|
|
69
|
+
| Action | Where |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| Rename the section title | double-click the 「工作区」 label |
|
|
72
|
+
| Add a child workspace | workspace `…` menu → 添加子工作区 |
|
|
73
|
+
| New session in a child | the `+` on the child's row |
|
|
74
|
+
| File a session under another workspace | drag the session row, or session `…` menu → 移动到工作区 |
|
|
75
|
+
| Rename / delete a workspace | double-click its title, or its `…` menu |
|
|
76
|
+
| Show archived sessions | the archive button in the section header |
|
|
77
|
+
|
|
78
|
+
## Languages
|
|
79
|
+
|
|
80
|
+
The interface ships Simplified Chinese, English and Japanese. Other Harness
|
|
81
|
+
locales fall back to English.
|
|
82
|
+
|
|
83
|
+
## Install
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
dsh plugin add dsh-nested-workspaces
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Restart `dsh web` after installing.
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
MIT
|