dsh-rig 0.0.0-stage → 0.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+
3
+ 本项目的所有重要改动都会记在这里。格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
4
+ 版本号遵循 [SemVer](https://semver.org/lang/zh-CN/)。
5
+
6
+ ## [0.1.0] - 2026-11-21
7
+
8
+ 第一个可用版本。
9
+
10
+ ### Added
11
+
12
+ - 右栏「插件实验室」面板:创建 / 启动 / 重启 / 刷新 / 弹出 / 停止 / 销毁一个**真实、进程级隔离**的 DSH
13
+ - 内嵌实时界面,配「锁定 / 可介入」开关(锁定只挡输入,不是安全边界)
14
+ - 实时日志:跟随实验室的 stdout/stderr,token 与用户名自动打码
15
+ - 体检报告 `report`:profile 声明 / 组合补丁行 / 运行时 / 启动期被禁用或加载失败的插件行 / 工作区文件树
16
+ - 智能体工具 `plugin_lab`(生命周期,常驻)
17
+ - 智能体工具 `lab_ui`(看 / 拍 / 按文字点 / 打字 / 派任务),**只在用户授权期间注册**
18
+ - 界面驱动后端按可用性降级:Playwright(自带或系统浏览器 channel)→ 裸 CDP → 明确报告缺失项
19
+ - 切换实验室使用的 DSH 版本(仅已安装版本),重启后生效
20
+ - 中英双语 README、插件详情页与预览图
21
+
22
+ ### Notes
23
+
24
+ - 实验室的 `DSH_HOME` 与宿主互不包含;创建与启动前都会校验,命中越界直接拒绝。
25
+ - 默认把宿主凭据复制进实验室,否则实验室里的智能体没有可用模型;可在配置里关闭。
26
+ - 已知边界:不能安装新的 DSH 版本;「向实验室派活」与施工可视化留待后续版本。
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,18 @@
1
+ dsh-rig
2
+ Copyright 2026 gezi-wen
3
+
4
+ This product includes software developed as part of DeepSeek Harness plugin
5
+ development. It bundles no third-party runtime dependencies.
6
+
7
+ Design notes
8
+ ------------
9
+
10
+ The planned "agents at work" visualisation (a later release) takes its *idea*
11
+ from Swarm by Joel Califa and the Swarm Cursors extension by Dhvanil Patel.
12
+ Neither project is licensed for reuse, and no code, SVG paths, colour tables or
13
+ other assets from them are included here. Any animation shipped by this package
14
+ is an independent implementation of the concept.
15
+
16
+ "DeepSeek", "DeepSeek Harness" and the DeepSeek Harness marks are trademarks of
17
+ their respective owners. This package is an independent plugin and is not
18
+ published by DeepSeek.
package/README.en.md ADDED
@@ -0,0 +1,100 @@
1
+ # dsh-rig
2
+
3
+ A **right-sidebar plugin lab** for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness): run a real, process-isolated DSH beside your conversation — install plugins into it, watch its logs, switch versions, and know that a crash stays inside the lab.
4
+
5
+ [中文](README.md) · [Changelog](CHANGELOG.md)
6
+
7
+ ![The plugin lab in the right sidebar, with a real DSH running inside](docs/screenshot-panel.png)
8
+
9
+ ## Why
10
+
11
+ When you develop a DSH plugin, the painful part is that **there is nowhere safe to break things**. The convenient move is to mount the plugin into the profile you are actually using — and one bad `apply()` takes the whole harness down with it.
12
+
13
+ dsh-rig gives you a test bench:
14
+
15
+ - the lab is **another process**, with its own `DSH_HOME`, profile, port and workspace;
16
+ - if it crashes, or its dependency tree gets mangled, it stays there (the host's dependency closure was measured unchanged);
17
+ - the panel lives in the right sidebar: state, logs, restart and a health report in one place.
18
+
19
+ ![The bundle's detail page](docs/screenshot-detail.png)
20
+
21
+ ## Install
22
+
23
+ ```bash
24
+ dsh plugin --profile web add dsh-rig
25
+ ```
26
+
27
+ Or from the app: **Plugins → Add plugin → dsh-rig**.
28
+
29
+ Reload the page afterwards: the session header gains a "Plugin Lab" button, and the right sidebar's start page gains a card.
30
+
31
+ ## Use
32
+
33
+ 1. Open the **Plugin Lab** tab → **Create lab**;
34
+ 2. **Start** — a real DSH comes up in about ten seconds, embedded right there;
35
+ 3. **Locked / Step in** — locking blocks only your mouse and keyboard (anti-mistouch); unlock and click away;
36
+ 4. **Restart / Refresh / Pop out / Stop / Destroy** — the whole lifecycle in one row;
37
+ 5. **Logs** — follows its stdout/stderr, with tokens and user names redacted.
38
+
39
+ Labs live under the application data directory (`%LOCALAPPDATA%\dsh-rig` on Windows), one folder per lab with `home/` (DSH_HOME), `workspace/` and `shots/`.
40
+
41
+ ## How isolated is it
42
+
43
+ | Layer | Covered | Not covered |
44
+ |---|---|---|
45
+ | Process | separate process, crash containment, own port | — |
46
+ | DSH data | own `DSH_HOME` (credentials, sessions, profile, plugins) | — |
47
+ | Filesystem | `workspace-write` by default, cwd pinned to the lab workspace | does not stop the lab's agent from touching files its permission allows |
48
+ | Kernel | — | Home-edition Windows has no Sandbox/Hyper-V, so this is not VM-level isolation |
49
+ | Input | lock blocks mouse and keyboard | does not block the lab's own agent; this is not a security boundary |
50
+
51
+ ## Agent tools
52
+
53
+ Two tools are added:
54
+
55
+ | Tool | Available | Does |
56
+ |---|---|---|
57
+ | `plugin_lab` | always | `list / create / start / stop / restart / destroy / status / logs / report / versions / set_version` |
58
+ | `lab_ui` | **only while you allow it** | `snapshot / screenshot / click / type / task` — finds buttons **by their text** and lists candidates when it cannot |
59
+
60
+ `lab_ui` is not resident: a tool schema costs context every turn, and most sessions never click anything. So it sits behind a permission — the panel's "Let the agent operate the UI" switch registers it, and turning the switch off unregisters it.
61
+
62
+ The UI backend degrades by availability, and **assumes no browser**:
63
+
64
+ 1. Playwright with its own browser;
65
+ 2. Playwright driving the system Edge/Chrome (no download);
66
+ 3. Raw CDP against any installed Chromium-based browser (zero npm dependencies);
67
+ 4. Otherwise it says exactly what is missing.
68
+
69
+ ## Health report (`report`)
70
+
71
+ Being able to *see* is worth more than being able to *click*. `report` returns blocks, each with its own evidence source:
72
+
73
+ - **declared** — bundles the profile declares;
74
+ - **patched** — rows in the composition patch;
75
+ - **runtime** — status, port, exit code;
76
+ - **logFacts** — plugin rows denied or failed at startup;
77
+ - **workspace** — workspace file tree.
78
+
79
+ Anything unreadable is reported as unreadable with a reason — never an empty array pretending to be "none".
80
+
81
+ ## Configuration
82
+
83
+ | Field | Default | Meaning |
84
+ |---|---|---|
85
+ | `labRoot` | `dsh-rig` under app data | Lab root; **must not contain or sit inside the host `DSH_HOME`**, otherwise creation is refused |
86
+ | `copyCredentials` | `true` | Copy the host `.credentials.yaml` into the lab (without it the lab's agent has no model) |
87
+ | `maxLabs` | `8` | Concurrent labs |
88
+ | `startTimeoutMs` | `60000` | How long to wait for HTTP readiness |
89
+ | `logRingLines` | `2000` | Log lines kept per lab |
90
+ | `uiBackend` | `auto` | `auto / playwright / cdp`; also `DSH_RIG_UI_BACKEND` |
91
+
92
+ ## Known limits
93
+
94
+ - Switching DSH versions works only for **already installed** versions (no installer yet).
95
+ - "Dispatch a task into the lab" and progress visualisation are not built yet — for now you type in the unlocked view, or let the agent drive `lab_ui`.
96
+ - The headless browser opens a local debugging port. It lives only while the lab runs and only while you allow it, but that is the inherent cost of the simulate-a-human path.
97
+
98
+ ## License
99
+
100
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
package/README.md CHANGED
@@ -1,3 +1,102 @@
1
- # Temporary Holding Version
1
+ # dsh-rig
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
+ 给 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的**右栏插件实验室**:在会话旁边跑一个真实、进程级隔离的 DSH,装插件、看日志、换版本,崩了不牵连你正在用的这个。
4
+
5
+ [English](README.en.md) · [更新日志](CHANGELOG.md)
6
+
7
+ ![右栏里的插件实验室:一个真实 DSH 正在运行](docs/screenshot-panel.png)
8
+
9
+ ## 它解决什么
10
+
11
+ 开发 DSH 插件时,最难受的是**没有一块可以随便弄坏的地方**:图省事把插件挂进自己在用的 profile,一次坏的 `apply()` 就把整个 harness 拖下去。
12
+
13
+ dsh-rig 给你一块试验台:
14
+
15
+ - 实验室是**另一个进程**,有自己的 `DSH_HOME`、profile、端口和工作区;
16
+ - 它崩了、它的依赖树乱了,都只发生在它自己身上(宿主依赖闭包实测零变化);
17
+ - 面板就在右栏,状态、日志、重启、体检都在一处。
18
+
19
+ ![插件详情页](docs/screenshot-detail.png)
20
+
21
+ ## 装
22
+
23
+ ```bash
24
+ dsh plugin --profile web add dsh-rig
25
+ ```
26
+
27
+ 或在 DSH 里:**插件 → 添加插件 → dsh-rig**。
28
+
29
+ 装完刷新页面,会话头部会多一个「插件实验室」按钮;右栏开始页也会多一张卡片。
30
+
31
+ ## 用
32
+
33
+ 1. 点右栏「插件实验室」→「创建实验室」;
34
+ 2. 「启动」:起一个真实 DSH(十秒左右到「运行中」),右栏里直接嵌着它的界面;
35
+ 3. 「锁定 / 可介入」:锁定只挡你的鼠标键盘(防误触),解锁就直接在里面点;
36
+ 4. 「重启 / 刷新 / 弹出 / 停止 / 销毁」:生命周期都在这一行;
37
+ 5. 「日志」:跟着它的 stdout/stderr,token 与用户名自动打码。
38
+
39
+ 实验室默认落在 `%LOCALAPPDATA%\dsh-rig\`(Windows 上;其它平台回落到应用数据目录),
40
+ 每个实验室一份 `home/`(DSH_HOME)、`workspace/`、`shots/`。
41
+
42
+ ## 隔离到什么程度
43
+
44
+ | 层 | 做到 | 没做到 |
45
+ |---|---|---|
46
+ | 进程 | 独立进程、崩溃不连坐、独立端口 | — |
47
+ | DSH 数据 | 独立 `DSH_HOME`(凭据、会话、profile、依赖全隔离) | — |
48
+ | 文件系统 | 默认 `workspace-write`,cwd 锁在实验室工作区 | 不防实验室里的智能体按它的权限读写你机器别处 |
49
+ | 内核 | — | 家庭版 Windows 没有 Sandbox / Hyper-V,所以不是虚拟机级隔离 |
50
+ | 输入 | 锁定态挡鼠标键盘 | 挡不住实验室自己的智能体;这不是安全边界 |
51
+
52
+ ## 工具面
53
+
54
+ 装好后,智能体多两个工具:
55
+
56
+ | 工具 | 什么时候在 | 干什么 |
57
+ |---|---|---|
58
+ | `plugin_lab` | 常驻 | `list / create / start / stop / restart / destroy / status / logs / report / versions / set_version` |
59
+ | `lab_ui` | **只在你授权期间** | `snapshot / screenshot / click / type / task` —— 按**文字**找按钮,找不到会把候选名列出来 |
60
+
61
+ `lab_ui` 不是常驻的:工具 schema 每轮都进上下文,而大多数时候用不到「点按钮」。
62
+ 所以它挂在权限后面——面板里打开「智能体操作界面」才注册,关掉即注销。
63
+
64
+ 界面驱动的后端按可用性降级,**不假设你机器上有浏览器**:
65
+
66
+ 1. Playwright(自带浏览器);
67
+ 2. Playwright 借用系统 Edge/Chrome(不下载);
68
+ 3. 裸 CDP 直连系统 Chromium 系浏览器(零 npm 依赖);
69
+ 4. 都没有就明说缺什么。
70
+
71
+ ## 体检(`report`)
72
+
73
+ 比「能点」更值钱的是「看得清」。`report` 给出一份分块报告,每块有各自的证据来源:
74
+
75
+ - **declared**:profile 声明了哪些 bundle;
76
+ - **patched**:组合补丁里的行;
77
+ - **runtime**:状态、端口、退出码;
78
+ - **logFacts**:启动期被版本闸门禁用或加载失败的插件行;
79
+ - **workspace**:工作区文件树。
80
+
81
+ 读不到就写「读不到」加原因,不拿空数组冒充「没有」。
82
+
83
+ ## 配置
84
+
85
+ | 字段 | 默认 | 说明 |
86
+ |---|---|---|
87
+ | `labRoot` | 应用数据目录下的 `dsh-rig` | 实验室根目录;**必须与宿主 `DSH_HOME` 互不包含**,否则拒绝创建 |
88
+ | `copyCredentials` | `true` | 把宿主 `.credentials.yaml` 复制进实验室(否则实验室里的智能体没有可用模型) |
89
+ | `maxLabs` | `8` | 同时存在的实验室上限 |
90
+ | `startTimeoutMs` | `60000` | 等 HTTP 就绪的上限 |
91
+ | `logRingLines` | `2000` | 每个实验室保留的日志行数 |
92
+ | `uiBackend` | `auto` | `auto / playwright / cdp`;也可用环境变量 `DSH_RIG_UI_BACKEND` |
93
+
94
+ ## 已知边界
95
+
96
+ - 换 DSH 版本目前只能切到**已装**的版本(安装新版本的入口还没做)。
97
+ - 「派活给实验室里的智能体」与「施工过程可视化」还没做——现在靠你在解锁态下自己输入,或让智能体用 `lab_ui` 去点。
98
+ - 无头浏览器会开一个本地调试端口;它随实验室起停、只在授权期间存在,但这是「模拟点击」这条路的固有代价。
99
+
100
+ ## 许可
101
+
102
+ Apache-2.0,见 [LICENSE](LICENSE) 与 [NOTICE](NOTICE)。
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: dsh-rig
3
+ name: 'dsh-rig'
package/docs/DETAIL.md ADDED
@@ -0,0 +1 @@
1
+ ![A lab tab in the right sidebar showing a nested DSH instance that is running](preview.svg)
@@ -0,0 +1 @@
1
+ ![右栏的实验室页签里,嵌着一个正在运行的真实 DSH](preview.svg)
@@ -0,0 +1,40 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="640" height="300" viewBox="0 0 640 300">
2
+ <!-- 左:对话区(暗) -->
3
+ <rect width="640" height="300" rx="20" fill="#0f1115"/>
4
+ <rect x="40" y="36" width="300" height="228" rx="14" fill="#151922" stroke="#232a36" stroke-width="2"/>
5
+ <rect x="60" y="56" width="150" height="10" rx="5" fill="#2c3546"/>
6
+ <rect x="60" y="80" width="240" height="8" rx="4" fill="#1e2530"/>
7
+ <rect x="60" y="96" width="200" height="8" rx="4" fill="#1e2530"/>
8
+ <rect x="60" y="196" width="260" height="48" rx="12" fill="#11151d" stroke="#2c3546" stroke-width="2"/>
9
+ <rect x="76" y="214" width="120" height="8" rx="4" fill="#2c3546"/>
10
+
11
+ <!-- 右:实验室页签 -->
12
+ <rect x="356" y="36" width="244" height="228" rx="14" fill="#151922" stroke="#3f6ea8" stroke-width="2"/>
13
+ <rect x="372" y="50" width="86" height="16" rx="8" fill="#1c2532" stroke="#3f6ea8" stroke-width="1.5"/>
14
+ <circle cx="384" cy="58" r="4" fill="#37b26d"/>
15
+ <rect x="394" y="54" width="52" height="8" rx="4" fill="#33405a"/>
16
+
17
+ <!-- 状态行 + 控件行 -->
18
+ <rect x="372" y="76" width="120" height="10" rx="5" fill="#2c3546"/>
19
+ <circle cx="508" cy="81" r="5" fill="#37b26d"/>
20
+ <rect x="520" y="77" width="60" height="8" rx="4" fill="#243047"/>
21
+ <rect x="372" y="96" width="44" height="16" rx="8" fill="#1b2a3d" stroke="#3f6ea8" stroke-width="1.5"/>
22
+ <rect x="422" y="96" width="44" height="16" rx="8" fill="#1c2532"/>
23
+ <rect x="472" y="96" width="44" height="16" rx="8" fill="#1c2532"/>
24
+ <rect x="522" y="96" width="56" height="16" rx="8" fill="#1c2532"/>
25
+
26
+ <!-- 内嵌真实实例:窗口 + 左栏 + 输入框 -->
27
+ <rect x="372" y="120" width="212" height="98" rx="10" fill="#0d1016" stroke="#2c3546" stroke-width="2"/>
28
+ <rect x="382" y="130" width="46" height="78" rx="6" fill="#151a23"/>
29
+ <rect x="388" y="138" width="34" height="6" rx="3" fill="#2c3546"/>
30
+ <rect x="388" y="150" width="34" height="6" rx="3" fill="#232a36"/>
31
+ <rect x="388" y="162" width="34" height="6" rx="3" fill="#232a36"/>
32
+ <rect x="438" y="140" width="120" height="8" rx="4" fill="#232a36"/>
33
+ <rect x="438" y="156" width="96" height="8" rx="4" fill="#1e2530"/>
34
+ <rect x="438" y="184" width="134" height="22" rx="8" fill="#11151d" stroke="#2c3546" stroke-width="1.5"/>
35
+
36
+ <!-- 锁形徽标 -->
37
+ <circle cx="560" cy="234" r="12" fill="#1b2a3d" stroke="#3f6ea8" stroke-width="1.5"/>
38
+ <rect x="555" y="231" width="10" height="7" rx="2" fill="#3f6ea8"/>
39
+ <path d="M557 231v-3a3 3 0 0 1 6 0v3" stroke="#3f6ea8" stroke-width="1.6" fill="none"/>
40
+ </svg>
Binary file
Binary file
package/icon.svg ADDED
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36" fill="none">
2
+ <!-- 试验台:两根立柱 + 顶梁,罩住一块待测芯片 -->
3
+ <path d="M7 8h22" stroke="#247bbf" stroke-width="2.6" stroke-linecap="round"/>
4
+ <path d="M9.5 8v9M26.5 8v9" stroke="#247bbf" stroke-width="2.6" stroke-linecap="round"/>
5
+ <rect x="12" y="17" width="12" height="11" rx="2.4" stroke="#7fb2d9" stroke-width="2.2"/>
6
+ <path d="M15.5 17v-2.2M20.5 17v-2.2M18 28v2.2" stroke="#7fb2d9" stroke-width="2" stroke-linecap="round"/>
7
+ <circle cx="18" cy="22.5" r="2.1" fill="#247bbf"/>
8
+ </svg>