dsh-plugin-inspiration-workbench 0.0.0-stage → 0.1.1

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 WilShi
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,138 @@
1
- # Temporary Holding Version
1
+ # Inspiration 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
+ **Open many DeepSeek Harness sessions side by side, as draggable cards on a free canvas.**
4
+ **把多个 DSH 会话同时摊在一个画布上,像便利贴一样拖动、叠放、对比。**
5
+
6
+ [![npm](https://img.shields.io/npm/v/dsh-plugin-inspiration-workbench.svg)](https://www.npmjs.com/package/dsh-plugin-inspiration-workbench)
7
+ [![license](https://img.shields.io/npm/l/dsh-plugin-inspiration-workbench.svg)](./LICENSE)
8
+ [![dsh](https://img.shields.io/badge/dsh-0.2.1--rc.5%20%7C%200.2.2--rc.1-blue)](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
9
+
10
+ DSH 一次只能打开一个会话:想同时看三条线的进展,只能来回切标签、丢掉上下文。
11
+ 这个插件把会话变成卡片:可以并排看、叠成一摞、按状态分栏、把一张卡的结论引用/流水线喂给另一张卡。
12
+
13
+ ---
14
+
15
+ ## 截图 / Screenshots
16
+
17
+ | 多卡 + 折叠轮次 | 分栏看板 |
18
+ |---|---|
19
+ | ![folded turns](docs/screenshots/folded-turns.png) | ![kanban](docs/screenshots/kanban.png) |
20
+
21
+ | 卡内搜索 | 批量操作 |
22
+ |---|---|
23
+ | ![search](docs/screenshots/search.png) | ![batch](docs/screenshots/batch-select.png) |
24
+
25
+ | 跨卡引用 | 卡片流水线 |
26
+ |---|---|
27
+ | ![quote](docs/screenshots/quote.png) | ![pipeline](docs/screenshots/pipeline.png) |
28
+
29
+ | 附件(模型真实读到文件) | 键盘可达 |
30
+ |---|---|
31
+ | ![attachments](docs/screenshots/real-attachment.png) | ![keyboard](docs/screenshots/keyboard.png) |
32
+
33
+ ---
34
+
35
+ ## 功能 / Features
36
+
37
+ **画布与卡片**
38
+ - 侧栏会话行的 `+` 把会话加成卡片;侧栏点击行为不变
39
+ - 拖动 / 缩放 / 叠成一摞 / 双击居中 / 点空白平移 / ⌘+滚轮缩放
40
+ - 便签卡(随手记)、钉住位置、未读圆点、复制为 Markdown、在原生会话打开
41
+
42
+ **与原生一致的会话渲染**
43
+ - 轮次折叠(桌面默认 `standard` 策略)、点开看步骤、步骤行活动图标 + 悬停变箭头
44
+ - Markdown(代码块带复制、表格、列表、引用)、失败横幅、思考强度两级菜单
45
+ - 排队消息条、插话(⌘+Enter)、图片/文件附件、提问回答
46
+
47
+ **多卡协作**
48
+ - 卡内搜索(高亮 + `1/N` 跳转)、轮次大纲
49
+ - 跨卡引用:把任意消息引用到另一张卡的输入框(带来源)
50
+ - 批量选择(⌘/Shift 点击)+ 叠放 / 对齐 / 铺开 / 关闭
51
+ - 排列策略:网格 / 按工作区 / 按最近活动
52
+ - 看板分栏:按状态 / 工作区 / 活跃度,退出恢复原位
53
+ - 流水线:上游卡一轮跑完,自动把结果送进下游卡(发送 or 只填草稿,3 跳防环)
54
+
55
+ **工程能力**
56
+ - Host 侧持久化 + SSE 多窗口同步(清站点数据可从 Host 恢复)
57
+ - 键盘可达:roving tabindex、方向键切卡、Shift+方向键移动、`/` `t` `o` `p` `c` `[` `]`
58
+ - 25+ 项 Playwright 回归断言:`npm run verify -- --url "<dsh url>"`
59
+
60
+ ---
61
+
62
+ ## 安装 / Install
63
+
64
+ ```sh
65
+ dsh plugin add dsh-plugin-inspiration-workbench
66
+ ```
67
+
68
+ 然后重启 DSH(或 ⌘R 刷新 Web UI),侧栏会出现「灵感工作台」。
69
+
70
+ 本地开发用链接安装:
71
+
72
+ ```sh
73
+ git clone https://github.com/WilShi/dsh-plugin-inspiration-workbench.git
74
+ cd dsh-plugin-inspiration-workbench
75
+ npm install
76
+ npm run build # 产出 lib/client.js
77
+ ln -s "$PWD" ~/.dsh/profiles/<profile>/node_modules/@local/dsh-inspiration-workbench
78
+ ```
79
+
80
+ ---
81
+
82
+ ## 使用 / Usage
83
+
84
+ 1. 侧栏悬停任意会话 → 点 `+` → 变成卡片
85
+ 2. 卡片顶部:模型 / 思考强度、工作区、搜索、大纲、流水线、钉住、复制、打开原生、关闭
86
+ 3. 「新建会话卡」会先问工作区(画布没有"继承侧栏行工作区"的上下文)
87
+ 4. 卡片底部输入框:Enter 排队、⌘+Enter 插话、回形针/粘贴/拖拽加附件
88
+
89
+ ---
90
+
91
+ ## 兼容性 / Compatibility
92
+
93
+ | DSH | 状态 |
94
+ |---|---|
95
+ | `0.2.2-rc.1` | ✅ 完整验证 |
96
+ | `0.2.1-rc.5` | ✅ 完整验证 |
97
+
98
+ 只支持 **web 平台**(桌面版 / 浏览器版都包含 web UI)。
99
+
100
+ ---
101
+
102
+ ## 已知限制 / Known limitations
103
+
104
+ - **内联审批做不到**:`approval/request` 是宿主的客户端瀑布事件,这一版只派发给内置包;
105
+ 插件从根作用域和会话作用域注册监听都收不到(实测注册成功、调用次数 0)。
106
+ 卡片会显示"这一版插件拿不到审批请求",建议用「工作区内修改」访问模式让沙箱直接拒绝。
107
+ - 布局落盘在 `~/.dsh/inspiration-workbench-layout.json`,**全机共享**,未按 profile 隔离。
108
+ - 拖侧栏会话行到画布未实现(侧栏 drag payload 未公开)。
109
+ - 触屏/手势未做。
110
+
111
+ ---
112
+
113
+ ## 开发 / Development
114
+
115
+ ```sh
116
+ npm install
117
+ npm run build # esbuild → lib/client.js(产物随包发布,安装时无需构建)
118
+ npm run verify -- --url "http://127.0.0.1:<port>/?token=<token>"
119
+ ```
120
+
121
+ 源码结构:
122
+
123
+ | 文件 | 作用 |
124
+ |---|---|
125
+ | `src/client/index.jsx` | 插件入口:locale、slot 注册、审批 hub |
126
+ | `src/client/board.js` | 画布状态机 + 卡片装配 |
127
+ | `src/client/render.js` | 会话内容渲染(轮次/步骤/工具/审批/附件) |
128
+ | `src/client/card-tools.js` | 复制、卡内搜索、轮次大纲、跨卡引用 |
129
+ | `src/client/popovers.js` | 模型菜单、排列、设置、工作区选择 |
130
+ | `src/client/sessions.js` | 会话适配层(retain / prompt / 投影读取) |
131
+ | `src/client/markdown.js` | Markdown 渲染 |
132
+ | `src/host/index.js` | Host 半:布局读写 + SSE 广播 |
133
+
134
+ ---
135
+
136
+ ## License
137
+
138
+ MIT © WilShi
@@ -0,0 +1,4 @@
1
+ - insert:
2
+ - id: inspiration-workbench
3
+ name: dsh-plugin-inspiration-workbench
4
+ config: {}
package/icon.svg ADDED
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64" role="img" aria-label="Inspiration workbench">
2
+ <rect width="64" height="64" rx="14" fill="#0F1115"/>
3
+ <rect x="12" y="18" width="24" height="16" rx="4" fill="#FFFFFF" opacity="0.35"/>
4
+ <rect x="18" y="26" width="26" height="18" rx="4" fill="#FFFFFF" opacity="0.6"/>
5
+ <rect x="24" y="34" width="28" height="16" rx="4" fill="#4176E6"/>
6
+ <circle cx="30" cy="42" r="2.2" fill="#FFFFFF"/>
7
+ <rect x="36" y="40.5" width="10" height="3" rx="1.5" fill="#FFFFFF" opacity="0.9"/>
8
+ </svg>