dsh-synapse 0.4.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
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 ADDED
@@ -0,0 +1,81 @@
1
+ # dsh-synapse
2
+
3
+ ![version](https://img.shields.io/badge/version-0.3.0-3478f6?style=flat-square)
4
+ ![license](https://img.shields.io/badge/license-MIT-10b981?style=flat-square)
5
+ ![platform](https://img.shields.io/badge/platform-web-7c3aed?style=flat-square)
6
+ ![node](https://img.shields.io/badge/node-%3E%3D22.19-334155?style=flat-square)
7
+
8
+ **A visual, non-linear conversation workspace plugin for DeepSeek Harness.**
9
+
10
+ 把同一工作区中的会话、追问和分支组织成可浏览、可拖拽、可缩放的对话地图,同时保留 DSH 原生的会话能力。
11
+
12
+ [中文指南](docs/zh-CN/README.md) · [English guide](docs/en/README.md) · [Development](docs/development.md) · [Architecture](docs/architecture.md)
13
+
14
+ ![Synapse workspace canvas](docs/images/synapse-ui.png)
15
+
16
+ ## Overview
17
+
18
+ `dsh-synapse` adds a visual session map to the native DeepSeek Harness Web interface. It projects committed DSH conversations into connected cards, keeps forks attached to their real branching turns, and synchronizes the current session between the map and native chat.
19
+
20
+ Synapse is an interface layer, not a second conversation system. DSH continues to own sessions, model requests, tools, permissions, and the Web server.
21
+
22
+ ## Features
23
+
24
+ | | Feature | 功能 |
25
+ |---|---|---|
26
+ | 🗺️ | Browse sessions and turns as a connected canvas | 将会话和追问显示为连线画布 |
27
+ | 🌿 | Preserve native DSH fork lineage | 按真实分叉点显示 DSH 分支 |
28
+ | 📁 | Group sessions by DSH workspace and directory | 按工作区和目录组织会话 |
29
+ | 📥 | Project committed and streaming replies into cards | 将已提交和流式回复投影到卡片 |
30
+ | 🔧 | Fold tool calls and results into assistant replies | 将工具调用和结果折叠到助手回答 |
31
+ | ⚡ | Synchronize the active session with native chat | 与 DSH 原生对话双向同步当前会话 |
32
+ | 🎨 | Pan, zoom, drag, fold descendant subtrees, focus, and persist card positions | 支持平移、缩放、拖动、展开/折叠后续子树、定位和位置保存 |
33
+
34
+ ![Native dialogue and Synapse toggle](docs/images/native-webui.png)
35
+
36
+ ## Quick start
37
+
38
+ Requirements: DeepSeek Harness with the profile plugin mechanism, Node.js `>= 22.19.0`, and the `web` profile.
39
+
40
+ ```powershell
41
+ corepack pnpm dsh plugin --profile web add dsh-synapse
42
+ corepack pnpm dsh web
43
+ ```
44
+
45
+ Open `http://127.0.0.1:3080/` and select **Session Map / 会话地图** from the top switch.
46
+
47
+ > [!NOTE]
48
+ > Synapse extends the existing DSH Web profile. It does not start a second application server. The npm package needs no build permission; Git and local-checkout installs are documented in the installation guide.
49
+
50
+ ## Documentation
51
+
52
+ | Document | Description |
53
+ |---|---|
54
+ | [中文指南](docs/zh-CN/README.md) | 安装、启动、配置、使用、卸载和已知限制 |
55
+ | [English guide](docs/en/README.md) | Installation, configuration, usage, cleanup, and limitations |
56
+ | [Development and releases](docs/development.md) | Local validation, GitHub Actions, version tags, and npm publishing |
57
+ | [Architecture and boundaries](docs/architecture.md) | Session ownership, projection, storage, model impact, and operational limits |
58
+
59
+ ## Development
60
+
61
+ ```powershell
62
+ corepack pnpm install --frozen-lockfile
63
+ corepack pnpm run build
64
+ corepack pnpm test
65
+ ```
66
+
67
+ See the [development and release guide](docs/development.md) for CI/CD and npm publication details.
68
+
69
+ ## Runtime boundaries
70
+
71
+ - DSH session logs remain the source of truth for conversation content.
72
+ - Synapse stores canvas metadata separately under `$DSH_HOME/synapse/`.
73
+ - Projected card text is capped at 8000 characters; the full message remains available in conversation details.
74
+ - The plugin does not modify prompts, model requests, tool schemas, provider routing, or reusable KV-cache prefixes.
75
+ - Only the DSH `web` profile is supported by the bundled patch.
76
+
77
+ See [Architecture and runtime boundaries](docs/architecture.md) for the complete model.
78
+
79
+ ## License
80
+
81
+ [MIT](LICENSE)