dsh-zed-cc-workbench 0.0.0-stage → 2.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 rickon
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,57 @@
1
- # Temporary Holding Version
1
+ # Zed / Claude Code session workbench
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ ![icon](docs/icon-180.png)
4
+
5
+ A DeepSeek Harness (DSH) bundle that adds a **session workbench** page to the left sidebar: one list for every local DSH session plus Claude Code sessions (CLI / VS Code / Zed ACP).
6
+
7
+ - **Cross-workspace overview**: grouped by working directory, collapsible groups, "recently opened", running/stopped status.
8
+ - **Zed rename sync**: the Host mirrors Zed's `sidebar_threads` table (rename override first), so a thread renamed in Zed shows the same name here.
9
+ - **Chinese-friendly search**: in-browser substring search over a compact Host-built digest (user text, assistant text, tool-call name + arguments). No DSH search index required, so legacy session logs cannot block it.
10
+ - **Archive / unarchive** behind a confirmation dialog (`ctx.uiWorkspace.archiveSession`). No delete action.
11
+ - **Claude Code sessions**: lists `~/.claude/projects` sessions with their surface (CLI / VS Code / Zed) and resumes one in an embedded terminal (xterm) inside the page: `claude --resume <id>`.
12
+
13
+ ## Install
14
+
15
+ From npm (once published):
16
+
17
+ ```powershell
18
+ dsh plugin --profile desktop add dsh-zed-cc-workbench
19
+ ```
20
+
21
+ From this repository:
22
+
23
+ ```powershell
24
+ git clone https://github.com/handelxh/dsh-zed-cc-workbench
25
+ dsh plugin --profile desktop add "link:$(Resolve-Path .\dsh-zed-cc-workbench)"
26
+ ```
27
+
28
+ Then add `"dsh-zed-cc-workbench"` to `dsh.profile.bundles` in `%USERPROFILE%\.dsh\profiles\desktop\package.json` (or enable it in Settings → Plugins) and restart DSH.
29
+
30
+ See [docs/INSTALL.zh.md](docs/INSTALL.zh.md) for a Chinese walkthrough.
31
+
32
+ ## How it works
33
+
34
+ - Host half (`index.js`): mirrors Zed titles, builds a search digest from DSH session logs, and scans `~/.claude/projects` for Claude Code sessions.
35
+ - Client half (`client.js`): renders the page, reads Host projections through `workspaceFiles`, polls the session catalog, and mounts the embedded terminal through `webTerminals`.
36
+
37
+ Data written by the Host lives under `<DSH_HOME>/storages/`:
38
+
39
+ | File | Contents |
40
+ | --- | --- |
41
+ | `zed-thread-titles.json` | Zed thread titles / rename overrides |
42
+ | `all-sessions-messages.json` | DSH message digest (user, assistant, tool-call name + arguments) |
43
+ | `claude-sessions.json` | Claude Code session index + resolved CLI path |
44
+ | `claude-messages.json` | Claude Code message digest |
45
+
46
+ Conversation text is stored there in plain text to make search fast; no session file is modified. The plugin reads `~/.claude/projects`, Zed's SQLite database (read-only), and DSH session logs.
47
+
48
+ ## Limitations
49
+
50
+ - DSH hides its own right sidebar while a global page is shown, so the terminal is embedded in this page instead of the right sidebar.
51
+ - Windows-first paths: Claude CLI resolution and Zed database locations are handled per platform, but only Windows was verified in depth.
52
+ - Depends on internal DSH client services (`sidebar.panellist`, `main` slot, `webTerminals`, `workspaceFiles`); a DSH release may require updates.
53
+ - No delete action: DSH's session persistence seam has no delete interface.
54
+
55
+ ## License
56
+
57
+ MIT. The embedded xterm.js 5.3.0 build is MIT; see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
@@ -0,0 +1,34 @@
1
+ # Third-party notices
2
+
3
+ This package embeds the following third-party software in `client.js`:
4
+
5
+ ## xterm.js 5.3.0
6
+
7
+ - Project: https://github.com/xtermjs/xterm.js
8
+ - License: MIT
9
+ - Copyright (c) 2017-2023, The xterm.js authors
10
+
11
+ The minified UMD build of xterm.js and its stylesheet are embedded so the
12
+ session workbench page can render a real terminal without a separate asset.
13
+
14
+ MIT License text (xterm.js):
15
+
16
+ Copyright (c) 2017-2023, The xterm.js authors
17
+
18
+ Permission is hereby granted, free of charge, to any person obtaining a copy
19
+ of this software and associated documentation files (the "Software"), to deal
20
+ in the Software without restriction, including without limitation the rights
21
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
+ copies of the Software, and to permit persons to whom the Software is
23
+ furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included in all
26
+ copies or substantial portions of the Software.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
+ SOFTWARE.