@jingyi0605/codingns4dsh 0.1.7-rc.3 → 0.2.0-beta.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 +695 -0
- package/README.en.md +23 -9
- package/README.md +23 -9
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +1 -1
- package/data/build/dist/bootstrap/index.d.ts +1 -1
- package/data/build/dist/client/bundle.js +1200 -170
- package/data/build/dist/client/context-breakdown-dom.d.ts +53 -0
- package/data/build/dist/client/context-breakdown-dom.js +171 -0
- package/data/build/dist/client/dsh-h5-bootstrap.js +7 -1
- package/data/build/dist/client/features/cli-adapters.js +11 -0
- package/data/build/dist/client/features/index.d.ts +1 -0
- package/data/build/dist/client/features/index.js +1 -0
- package/data/build/dist/client/features/subscription-usage-panel.d.ts +15 -0
- package/data/build/dist/client/features/subscription-usage-panel.js +117 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js +22 -5
- package/data/build/dist/client/features/workspace-session-enhancement.js +17 -2
- package/data/build/dist/client/git-management.js +80 -10
- package/data/build/dist/client/index.d.ts +1 -0
- package/data/build/dist/client/index.js +16 -49
- package/data/build/dist/client/locale.js +20 -2
- package/data/build/dist/client/remote-web-context.js +26 -2
- package/data/build/dist/client/settings-bridge.d.ts +20 -5
- package/data/build/dist/client/settings-bridge.js +30 -7
- package/data/build/dist/client/subscription-slot.d.ts +3 -1
- package/data/build/dist/client/subscription-slot.js +31 -6
- package/data/build/dist/client/terminal/ui.js +1 -1
- package/data/build/dist/client/terminal/xterm-view.js +1 -1
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js +22 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +5 -2
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +3 -2
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts +2 -2
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.d.ts +22 -1
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.js +29 -3
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.d.ts +2 -2
- package/data/build/dist/dsh-capabilities/matrix.js +31 -1
- package/data/build/dist/dsh-capabilities/routes.d.ts +8 -1
- package/data/build/dist/dsh-capabilities/routes.js +173 -5
- package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
- package/data/build/dist/features/registry.d.ts +7 -0
- package/data/build/dist/features/registry.js +20 -2
- package/data/build/dist/host/cli-adapters/feature.js +24 -2
- package/data/build/dist/host/cli-adapters/native-team-proxy.d.ts +36 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.js +108 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +35 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.js +405 -5
- package/data/build/dist/host/cli-adapters/registry.d.ts +9 -3
- package/data/build/dist/host/cli-adapters/registry.js +30 -0
- package/data/build/dist/host/cli-adapters/session-store.d.ts +8 -2
- package/data/build/dist/host/cli-adapters/session-store.js +19 -0
- package/data/build/dist/host/features/git-management.js +41 -18
- package/data/build/dist/host/features/types.d.ts +6 -3
- package/data/build/dist/host/index-injection.d.ts +12 -5
- package/data/build/dist/host/index-injection.js +32 -11
- package/data/build/dist/host/index.js +15 -4
- package/data/build/dist/host/lan-access-dsh.d.ts +2 -2
- package/data/build/dist/host/native-session-bridge.d.ts +4 -0
- package/data/build/dist/host/native-session-bridge.js +51 -9
- package/data/build/dist/host/relay-tunnel-runtime.js +10 -1
- package/data/build/dist/host/remote-web-runtime.js +40 -17
- package/data/build/dist/host/rpc.d.ts +24 -5
- package/data/build/dist/host/rpc.js +38 -9
- package/data/build/dist/host/session-migration-repair.js +14 -0
- package/data/build/dist/host/settings.d.ts +2 -2
- package/data/build/dist/host/settings.js +11 -1
- package/data/build/dist/host/terminal/startup.d.ts +2 -2
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +22 -1
- package/data/build/dist/shared/contracts/config.d.ts +21 -0
- package/data/build/dist/shared/contracts/config.js +17 -0
- package/data/build/dist/shared/contracts/errors.d.ts +2 -2
- package/data/build/dist/shared/contracts/subscription.d.ts +7 -0
- package/data/build/dist/shared/contracts/subscription.js +14 -1
- package/data/build/dist/shared/contracts/version.d.ts +4 -4
- package/data/build/dist/shared/contracts/version.js +3 -3
- package/data/build/dist/shared/index.d.ts +3 -2
- package/data/build/dist/shared/index.js +2 -1
- package/data/build/dist/transport/carrier.d.ts +11 -1
- package/data/build/dist/transport/carrier.js +77 -26
- package/data/build/dist/transport/debug.d.ts +5 -0
- package/data/build/dist/transport/debug.js +17 -2
- package/data/build/dist/transport/dsh-session.d.ts +18 -1
- package/data/build/dist/transport/dsh-session.js +48 -13
- package/data/build/dist/transport/index.d.ts +1 -1
- package/data/build/dist/transport/index.js +1 -1
- package/package.json +23 -19
- package/profile/README.md +2 -2
- package/profile/package.json +4 -3
- package/profile/version.json +3 -3
- package/version.json +3 -3
package/README.en.md
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
**External Agent CLIs, persistent terminals, workspace debug and remote access — inside DSH's own UI.**
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@jingyi0605/codingns4dsh)
|
|
8
|
-
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
9
9
|
[](https://nodejs.org)
|
|
10
|
+
[](https://www.gnu.org/licenses/gpl-3.0.html)
|
|
10
11
|
|
|
11
12
|
[简体中文](README.md) · **English**
|
|
12
13
|
|
|
13
|
-
**Current release `@jingyi0605/codingns4dsh@0.
|
|
14
|
+
**Current release `@jingyi0605/codingns4dsh@0.2.0-beta.1`** · DSH **`>=0.2.0-rc.1 <=0.2.0-rc.1`** (validated `0.2.0-rc.1`) · Node **`>= 22.19`** · macOS / Linux / Windows
|
|
14
15
|
|
|
15
16
|
**[GitHub](https://github.com/jingyi0605/Codingns4DSH)** · **[npm](https://www.npmjs.com/package/@jingyi0605/codingns4dsh)** · **QQ group 1092985965**
|
|
16
17
|
|
|
@@ -23,7 +24,8 @@
|
|
|
23
24
|
<a href="#first-run">First run</a> ·
|
|
24
25
|
<a href="#troubleshooting">Troubleshooting</a> ·
|
|
25
26
|
<a href="#development">Development</a> ·
|
|
26
|
-
<a href="#acknowledgements">Acknowledgements</a>
|
|
27
|
+
<a href="#acknowledgements">Acknowledgements</a> ·
|
|
28
|
+
<a href="#license">License</a>
|
|
27
29
|
</p>
|
|
28
30
|
|
|
29
31
|
</div>
|
|
@@ -60,7 +62,7 @@ Nothing native is replaced — conversations, sessions, sidebar, settings and ap
|
|
|
60
62
|
|
|
61
63
|
Everything runs on the **Host** (your machine): Agents, terminals, files, LAN/relay listeners; the browser is only a view. Agent CLIs run as DSH child processes with their own credentials and providers — model traffic never goes through Codingns4DSH. Remote access is available through optional modules.
|
|
62
64
|
|
|
63
|
-
Notes: the sidebar terminal exists as soon as the plugin is installed — **Terminal enhancement** only switches it to the persistent backend (tmux on macOS/Linux, ConPTY on Windows) and applies on restart;
|
|
65
|
+
Notes: the sidebar terminal exists as soon as the plugin is installed — **Terminal enhancement** only switches it to the persistent backend (tmux on macOS/Linux, ConPTY on Windows) and applies on restart; the 调试 card is currently Chinese-only.
|
|
64
66
|
|
|
65
67
|
---
|
|
66
68
|
|
|
@@ -102,9 +104,11 @@ After you pick an Agent and a model, Codingns4DSH starts (or resumes) that CLI a
|
|
|
102
104
|
|
|
103
105
|
The model list is read from each CLI and can be switched at any time; the composer button also shows the current model and thinking effort.
|
|
104
106
|
|
|
107
|
+
External Agents assemble their own requests, so the context panel's heuristic composition never matches the provider-reported usage; those sessions keep only the occupancy percentage and totals, without the System / Tools / Messages breakdown.
|
|
108
|
+
|
|
105
109
|
### Session Enhancement and Usage
|
|
106
110
|
|
|
107
|
-
Session rows show the Agent logo and archive entry, and the composer dock shows subscription or upstream usage for Agents whose limits can be read (cache hit rate, per-model stats and cost included).
|
|
111
|
+
Session rows show the Agent logo and archive entry, and the composer dock shows subscription or upstream usage for Agents whose limits can be read (cache hit rate, per-model stats and cost included). The "Settings" button next to "Show subscription and usage" adjusts the query timeout (10 seconds by default, applied to every Agent) and the auto refresh interval (5 minutes by default, 0 disables automatic refresh); switching back to the same Agent within the interval reuses the previous result instead of querying upstream again.
|
|
108
112
|
|
|
109
113
|
<div align="center">
|
|
110
114
|
<table>
|
|
@@ -196,14 +200,14 @@ The “access” line tells you whether you entered DSH Web locally, over the LA
|
|
|
196
200
|
|
|
197
201
|
## Installation
|
|
198
202
|
|
|
199
|
-
**Requirements**: DSH inside `>=0.
|
|
203
|
+
**Requirements**: DSH inside `>=0.2.0-rc.1 <=0.2.0-rc.1` (plugin and DSH versions ship independently; both the installer and the runtime reject unsupported versions) · Node.js `>= 22.19` · `pnpm` on `PATH` (`dsh plugin` forwards to pnpm) · optional: Agent CLIs, and `tmux` on macOS/Linux for persistent terminals (`brew install tmux` / `sudo apt install tmux`).
|
|
200
204
|
|
|
201
205
|
### Simplest install: use the built-in `web` profile
|
|
202
206
|
|
|
203
207
|
DSH automatically initializes the `web` profile on first use. You do not need to create a config file or run `--dump-config`:
|
|
204
208
|
|
|
205
209
|
```bash
|
|
206
|
-
dsh plugin --profile web add @jingyi0605/codingns4dsh@0.
|
|
210
|
+
dsh plugin --profile web add @jingyi0605/codingns4dsh@0.2.0-beta.1
|
|
207
211
|
dsh web
|
|
208
212
|
```
|
|
209
213
|
|
|
@@ -213,7 +217,7 @@ If you do not want to modify the built-in `web` profile, create a separate profi
|
|
|
213
217
|
|
|
214
218
|
```bash
|
|
215
219
|
dsh codingns --from-default-profile web --dump-config
|
|
216
|
-
dsh plugin --profile codingns add @jingyi0605/codingns4dsh@0.
|
|
220
|
+
dsh plugin --profile codingns add @jingyi0605/codingns4dsh@0.2.0-beta.1
|
|
217
221
|
dsh codingns
|
|
218
222
|
```
|
|
219
223
|
|
|
@@ -234,7 +238,7 @@ dsh plugin --profile web remove @jingyi0605/codingns4dsh
|
|
|
234
238
|
```bash
|
|
235
239
|
git clone https://github.com/jingyi0605/Codingns4DSH.git && cd Codingns4DSH
|
|
236
240
|
pnpm install && pnpm build
|
|
237
|
-
dsh plugin --profile web add "$PWD" # or: npm pack, then add ./jingyi0605-codingns4dsh-0.
|
|
241
|
+
dsh plugin --profile web add "$PWD" # or: npm pack, then add ./jingyi0605-codingns4dsh-0.2.0-beta.1.tgz
|
|
238
242
|
dsh web
|
|
239
243
|
```
|
|
240
244
|
|
|
@@ -304,3 +308,13 @@ Screenshot assets and shot list: [assets/screenshots](assets/screenshots/README.
|
|
|
304
308
|
The inspiration for Codingns4DSH — and part of its implementation approach — comes from **[CodexHost](https://github.com/BytePioneer-AI/codex-host)**, which runs Pi, Claude Code, Grok Build and other Harnesses natively inside Codex Desktop. It showed the direction Codingns4DSH follows from the other side: host *other* Harnesses as first-class Agents instead of replacing them. The multi-Harness adapter model, projecting a CLI event stream into native sessions, and keeping each Agent's sessions in the host sidebar and composer trace back to that design. Thanks to its authors and community.
|
|
305
309
|
|
|
306
310
|
Codingns4DSH is an independent project and is not affiliated with CodexHost.
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
## License
|
|
315
|
+
|
|
316
|
+
Codingns4DSH is released under the **GNU General Public License version 3 or later** (SPDX: `GPL-3.0-or-later`); the full terms are in [LICENSE](LICENSE), and the `license` field in `package.json` matches.
|
|
317
|
+
|
|
318
|
+
Copyright (C) 2026 jingyi0605
|
|
319
|
+
|
|
320
|
+
You may use, modify and distribute the project freely under the terms of the license; derivative works must stay under the same license, ship the complete source and keep the copyright notice, and the project comes with no warranty.
|
package/README.md
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
**把外部 Agent CLI、持久终端、工作区调试和远程访问,装进 DSH 原生界面。**
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@jingyi0605/codingns4dsh)
|
|
8
|
-
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
9
9
|
[](https://nodejs.org)
|
|
10
|
+
[](https://www.gnu.org/licenses/gpl-3.0.html)
|
|
10
11
|
|
|
11
12
|
**简体中文** · [English](README.en.md)
|
|
12
13
|
|
|
13
|
-
**当前版本 `@jingyi0605/codingns4dsh@0.
|
|
14
|
+
**当前版本 `@jingyi0605/codingns4dsh@0.2.0-beta.1`** · DSH **`>=0.2.0-rc.1 <=0.2.0-rc.1`**(已验证 `0.2.0-rc.1`)· Node **`>= 22.19`** · macOS / Linux / Windows
|
|
14
15
|
|
|
15
16
|
**[GitHub](https://github.com/jingyi0605/Codingns4DSH)** · **[npm](https://www.npmjs.com/package/@jingyi0605/codingns4dsh)** · **QQ 群 1092985965**
|
|
16
17
|
|
|
@@ -23,7 +24,8 @@
|
|
|
23
24
|
<a href="#首次使用">首次使用</a> ·
|
|
24
25
|
<a href="#故障排查">故障排查</a> ·
|
|
25
26
|
<a href="#开发">开发</a> ·
|
|
26
|
-
<a href="#鸣谢">鸣谢</a>
|
|
27
|
+
<a href="#鸣谢">鸣谢</a> ·
|
|
28
|
+
<a href="#许可证">许可证</a>
|
|
27
29
|
</p>
|
|
28
30
|
|
|
29
31
|
</div>
|
|
@@ -62,7 +64,7 @@ DSH 原生部分不会被替换:对话、会话列表、侧栏、设置、权
|
|
|
62
64
|
|
|
63
65
|
一切都跑在 **Host(你的电脑)** 上:Agent 进程、终端、文件、局域网/中继监听;浏览器只是视图。Agent CLI 作为 DSH 子进程使用自己的凭据与上游,模型流量不经过插件。远程访问全部可用。
|
|
64
66
|
|
|
65
|
-
补充说明:Codingns4DSH 装好后侧栏终端就已存在,**终端强化** 只是把它从基础本地 PTY 切换为持久后端(macOS/Linux 用 tmux,Windows 用 ConPTY
|
|
67
|
+
补充说明:Codingns4DSH 装好后侧栏终端就已存在,**终端强化** 只是把它从基础本地 PTY 切换为持久后端(macOS/Linux 用 tmux,Windows 用 ConPTY),重启后生效;**工作区调试** 目前界面文案只有中文。
|
|
66
68
|
|
|
67
69
|
---
|
|
68
70
|
|
|
@@ -104,9 +106,11 @@ DSH 原生部分不会被替换:对话、会话列表、侧栏、设置、权
|
|
|
104
106
|
|
|
105
107
|
模型列表直接读取自各 CLI,可随时切换;按钮上还会显示当前模型与思考强度。
|
|
106
108
|
|
|
109
|
+
外部 Agent 自己组装请求,上下文面板的启发式构成与真实用量不同源;这些会话的面板只保留占用百分比与总量,不显示「系统 / 工具 / 消息」明细。
|
|
110
|
+
|
|
107
111
|
### 会话增强与订阅用量
|
|
108
112
|
|
|
109
|
-
会话行显示 Agent Logo 与归档入口,输入框下方显示可读取额度的 Agent
|
|
113
|
+
会话行显示 Agent Logo 与归档入口,输入框下方显示可读取额度的 Agent 的订阅或上游用量(含缓存命中率、按模型统计与费用)。「显示订阅/用量检测」右侧的“设置”按钮可调整查询超时(默认 10 秒,作用于所有 Agent)与自动查询间隔(默认 5 分钟,0 表示不自动查询);同一 Agent 在间隔内切回时复用上次结果,不重复请求上游。
|
|
110
114
|
|
|
111
115
|
<div align="center">
|
|
112
116
|
<table>
|
|
@@ -210,14 +214,14 @@ DSH 设置按钮旁的账户入口会显示登录状态、访问路径与延迟
|
|
|
210
214
|
|
|
211
215
|
## 安装
|
|
212
216
|
|
|
213
|
-
**环境要求**:DSH 在 `>=0.
|
|
217
|
+
**环境要求**:DSH 在 `>=0.2.0-rc.1 <=0.2.0-rc.1` 范围内(插件与 DSH 版本独立发布,安装期与运行期都会拒绝不兼容版本)· Node.js `>= 22.19` · `PATH` 中有 `pnpm`(`dsh plugin` 转发给 pnpm)· 可选:Agent CLI,以及 macOS/Linux 上用于持久终端的 `tmux`(`brew install tmux` / `sudo apt install tmux`)。
|
|
214
218
|
|
|
215
219
|
### 最简单的安装方式:使用内置 `web` Profile
|
|
216
220
|
|
|
217
221
|
DSH 的 `web` Profile 会在首次使用时自动初始化,不需要手动创建配置文件,也不需要执行 `--dump-config`:
|
|
218
222
|
|
|
219
223
|
```bash
|
|
220
|
-
dsh plugin --profile web add @jingyi0605/codingns4dsh@0.
|
|
224
|
+
dsh plugin --profile web add @jingyi0605/codingns4dsh@0.2.0-beta.1
|
|
221
225
|
dsh web
|
|
222
226
|
```
|
|
223
227
|
|
|
@@ -227,7 +231,7 @@ dsh web
|
|
|
227
231
|
|
|
228
232
|
```bash
|
|
229
233
|
dsh codingns --from-default-profile web --dump-config
|
|
230
|
-
dsh plugin --profile codingns add @jingyi0605/codingns4dsh@0.
|
|
234
|
+
dsh plugin --profile codingns add @jingyi0605/codingns4dsh@0.2.0-beta.1
|
|
231
235
|
dsh codingns
|
|
232
236
|
```
|
|
233
237
|
|
|
@@ -248,7 +252,7 @@ dsh plugin --profile web remove @jingyi0605/codingns4dsh
|
|
|
248
252
|
```bash
|
|
249
253
|
git clone https://github.com/jingyi0605/Codingns4DSH.git && cd Codingns4DSH
|
|
250
254
|
pnpm install && pnpm build
|
|
251
|
-
dsh plugin --profile web add "$PWD" # 或 npm pack 后 add ./jingyi0605-codingns4dsh-0.
|
|
255
|
+
dsh plugin --profile web add "$PWD" # 或 npm pack 后 add ./jingyi0605-codingns4dsh-0.2.0-beta.1.tgz
|
|
252
256
|
dsh web
|
|
253
257
|
```
|
|
254
258
|
|
|
@@ -318,3 +322,13 @@ pnpm run capability:check # DSH 能力注册表退休检查
|
|
|
318
322
|
Codingns4DSH 的项目灵感与部分实现思路来自 **[CodexHost](https://github.com/BytePioneer-AI/codex-host)**——它把 Pi、Claude Code、Grok Build 等 Harness 原生跑在 Codex Desktop 里,展示了 Codingns4DSH 从另一侧沿用的方向:**把其他 Harness 作为一等 Agent 接入**,而不是替换它们。多 Harness 适配器模型、把 CLI 事件流投影为宿主原生会话、让每个 Agent 的会话留在宿主侧栏与输入框,都源自该项目的设计。感谢其作者与社区。
|
|
319
323
|
|
|
320
324
|
Codingns4DSH 是独立项目,与 CodexHost 无隶属关系。
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## 许可证
|
|
329
|
+
|
|
330
|
+
本项目以 **GNU 通用公共许可证第 3 版或更高版本**发布(SPDX:`GPL-3.0-or-later`),完整条款见 [LICENSE](LICENSE),`package.json` 中的 `license` 字段与之保持一致。
|
|
331
|
+
|
|
332
|
+
Copyright (C) 2026 jingyi0605
|
|
333
|
+
|
|
334
|
+
你可以在许可证允许的范围内自由使用、修改和分发本项目;分发衍生作品时须同样以 GPL 授权、附上完整源码并保留版权声明,且本项目不提供任何担保。
|
|
@@ -93,5 +93,5 @@ export declare function installDshTransport(options: {
|
|
|
93
93
|
}): CodingNsTransportRegistration & {
|
|
94
94
|
hooks: DshClientTransportHooks;
|
|
95
95
|
};
|
|
96
|
-
export declare const SUPPORTED_DSH_CONNECTION_VERSION: "0.
|
|
96
|
+
export declare const SUPPORTED_DSH_CONNECTION_VERSION: "0.2.0-rc.1";
|
|
97
97
|
//# sourceMappingURL=dsh-connection-adapter.d.ts.map
|
|
@@ -20,7 +20,7 @@ export interface CodingNsTransportRegistration {
|
|
|
20
20
|
readonly transport: CodingNsPreCordisTransport;
|
|
21
21
|
dispose(): void;
|
|
22
22
|
}
|
|
23
|
-
export declare const CODINGNS_BOOTSTRAP_DSH_VERSION: "0.
|
|
23
|
+
export declare const CODINGNS_BOOTSTRAP_DSH_VERSION: "0.2.0-rc.1";
|
|
24
24
|
/**
|
|
25
25
|
* 在 DSH Client/Cordis 启动前登记唯一 Transport。
|
|
26
26
|
*
|