@deepseek-ai/dsh-experimental-inspector 0.1.7-alpha.2 → 0.1.7-rc.2
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/README.i18n.yaml +45 -5
- package/README.md +4 -4
- package/README.zh.md +4 -4
- package/cordis.patch.yml +6 -0
- package/icon.svg +12 -0
- package/lib/client.js +1 -1
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +18 -9
package/README.i18n.yaml
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
|
-
# Bilingual-pair consistency record (docs/i18n/README.md):
|
|
2
|
-
#
|
|
3
|
-
#
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/experimental/inspector/README.md
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/:
|
|
6
|
+
en: ff4e1ec5ccd5d0b3
|
|
7
|
+
zh: d29383843e3decc8
|
|
8
|
+
/deepseek-ai-dsh-experimental-inspector:
|
|
9
|
+
en: 1060bee3ef37134d
|
|
10
|
+
zh: 7a7b0096714f4279
|
|
11
|
+
/deepseek-ai-dsh-experimental-inspector/summary:
|
|
12
|
+
en: 65ed8a4c21915cc0
|
|
13
|
+
zh: dcb1ae527e6bfc8c
|
|
14
|
+
/deepseek-ai-dsh-experimental-inspector/table-of-contents:
|
|
15
|
+
en: 2650c2b268bf6dff
|
|
16
|
+
zh: 43a08863d2c75ad1
|
|
17
|
+
/deepseek-ai-dsh-experimental-inspector/runtime-layout:
|
|
18
|
+
en: a713d2910acf48c9
|
|
19
|
+
zh: 152dcdba78e73115
|
|
20
|
+
/deepseek-ai-dsh-experimental-inspector/configuration:
|
|
21
|
+
en: 95f1c9c4ea6ba8b8
|
|
22
|
+
zh: 16b56e2dd8c7408a
|
|
23
|
+
/deepseek-ai-dsh-experimental-inspector/observation-api:
|
|
24
|
+
en: d32f994e6c9d0c4a
|
|
25
|
+
zh: ac2f35f5799aeae0
|
|
26
|
+
/deepseek-ai-dsh-experimental-inspector/cordis-tree-inspection:
|
|
27
|
+
en: 9abe1a8cd52386fb
|
|
28
|
+
zh: a5e96ec22a503153
|
|
29
|
+
/deepseek-ai-dsh-experimental-inspector/host-fetch-capture:
|
|
30
|
+
en: 187859f65acc45d7
|
|
31
|
+
zh: 606e93905c8275e6
|
|
32
|
+
/deepseek-ai-dsh-experimental-inspector/security:
|
|
33
|
+
en: 2372c96aba1ce7e6
|
|
34
|
+
zh: 823ceaa99cfb1f6a
|
|
35
|
+
/deepseek-ai-dsh-experimental-inspector/model-experience:
|
|
36
|
+
en: 6ac8fb2f45b3a97c
|
|
37
|
+
zh: 9162ffb1a133e11b
|
|
38
|
+
/deepseek-ai-dsh-experimental-inspector/model-experience/kv-cache-effect:
|
|
39
|
+
en: ca75c51c89c2c9b0
|
|
40
|
+
zh: 64715dc7e6d02f71
|
|
41
|
+
/deepseek-ai-dsh-experimental-inspector/known-limitations-and-deferred-work:
|
|
42
|
+
en: a35e1559aff5e7aa
|
|
43
|
+
zh: fbe20422dbe4a0f6
|
|
44
|
+
/deepseek-ai-dsh-experimental-inspector/known-limitations-and-deferred-work/dev-note:
|
|
45
|
+
en: 59a59a4788c80163
|
|
46
|
+
zh: db23a6b9dc0880ba
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Experimental Chrome DevTools inspection for Host and browser Client Cordis runtimes, including Console evaluation, Sources, Network capture, Elements trees, and a CDP-independent query API."
|
|
3
|
-
kind: "package-
|
|
3
|
+
kind: "package-bundle"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# @deepseek-ai/dsh-experimental-inspector
|
|
@@ -9,9 +9,9 @@ English | [中文](README.zh.md)
|
|
|
9
9
|
|
|
10
10
|
## Summary
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Inspect one running dsh Host and its browser Clients in Chrome DevTools: Host and Client Console contexts, Host Sources and debugging, captured Host fetches, and a shared Cordis tree, with all CDP state in a Worker.
|
|
13
13
|
|
|
14
|
-
The
|
|
14
|
+
The Inspector stays off the default plugin list. Install its bundle explicitly with `dsh plugin --profile web add @deepseek-ai/dsh-experimental-inspector`. Its [`cordis.patch.yml`](cordis.patch.yml) mounts the installed package; `pnpm run demo:inspector` mounts the source tree. The Host row needs a Web server. The Worker never accesses live Cordis objects: the shared collector projects them into validated snapshots before transport.
|
|
15
15
|
|
|
16
16
|
## Table of Contents
|
|
17
17
|
|
|
@@ -30,7 +30,7 @@ The package publishes under its experimental name and requires an explicit compo
|
|
|
30
30
|
<a id="runtime-layout"></a>
|
|
31
31
|
## Runtime layout
|
|
32
32
|
|
|
33
|
-
The Host plugin starts the Worker and connects a dedicated `MessagePort`. The Client plugin reads the injected `globalThis.__DSH_INSPECTOR__` bootstrap and opens a separate authenticated WebSocket directly to the Worker. Chrome DevTools connects to the Worker's CDP WebSocket. A private `node:inspector.Session` per DevTools connection attaches from the Worker to the Host main thread, so Host Console evaluation, Sources, breakpoints, and resume remain available while Host JavaScript is paused.
|
|
33
|
+
The Host plugin starts the Worker and connects a dedicated `MessagePort`. The Client plugin reads the injected `globalThis.__DSH_INSPECTOR__` bootstrap and opens a separate authenticated WebSocket directly to the Worker; a page opened before the Host row was enabled has no bootstrap, fails its Client plugin with a reload instruction, and inspects only after a reload. Chrome DevTools connects to the Worker's CDP WebSocket. A private `node:inspector.Session` per DevTools connection attaches from the Worker to the Host main thread, so Host Console evaluation, Sources, breakpoints, and resume remain available while Host JavaScript is paused.
|
|
34
34
|
|
|
35
35
|
The source tree follows those execution environments: `client/` and `host/` provide mirrored adapter entry paths, `worker/` contains only Worker-thread orchestration and Chrome protocol state, and `shared/` contains environment-independent Cordis and network models, normalized realm backend interfaces, and the internal bridge protocol. Worker-side Client and Host adapters are mirrored under `worker/realms/`; a Client adapter in that directory still executes in the Worker.
|
|
36
36
|
|
package/README.zh.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "面向 Host 与浏览器 Client Cordis 运行时的实验性 Chrome DevTools 检查,包括 Console 求值、Sources、Network 采集、Elements 树和独立于 CDP 的查询 API。"
|
|
3
|
-
kind: "package-
|
|
3
|
+
kind: "package-bundle"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# @deepseek-ai/dsh-experimental-inspector
|
|
@@ -9,9 +9,9 @@ kind: "package-reference"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
在 Chrome DevTools 中检查一个运行中的 dsh Host 及其浏览器 Client:Host 与 Client Console context、Host Sources 与调试、Host fetch 采集和共享 Cordis 树,全部 CDP 状态都在 Worker 中。
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Inspector 不在默认插件列表中显示。使用 `dsh plugin --profile web add @deepseek-ai/dsh-experimental-inspector` 显式安装其 bundle。其 [`cordis.patch.yml`](cordis.patch.yml) 挂载已安装的包;`pnpm run demo:inspector` 则挂载源码树。Host 行需要 Web 服务器。Worker 不访问实时 Cordis 对象;共享 collector 会在传输前把它们投影成已验证快照。
|
|
15
15
|
|
|
16
16
|
## 目录
|
|
17
17
|
|
|
@@ -30,7 +30,7 @@ kind: "package-reference"
|
|
|
30
30
|
<a id="runtime-layout"></a>
|
|
31
31
|
## 运行时布局
|
|
32
32
|
|
|
33
|
-
Host 插件启动 Worker 并连接专用 `MessagePort`。Client 插件读取注入的 `globalThis.__DSH_INSPECTOR__` bootstrap,直接向 Worker 打开一条独立、带鉴权的 WebSocket
|
|
33
|
+
Host 插件启动 Worker 并连接专用 `MessagePort`。Client 插件读取注入的 `globalThis.__DSH_INSPECTOR__` bootstrap,直接向 Worker 打开一条独立、带鉴权的 WebSocket;在 Host 行启用前打开的页面没有 bootstrap,其 Client 插件会以刷新提示失败,刷新后才能被检查。Chrome DevTools 连接 Worker 的 CDP WebSocket。每条 DevTools 连接在 Worker 中独占一个连接 Host 主线程的 `node:inspector.Session`,因此 Host JavaScript 暂停时,Host Console 求值、Sources、断点和 resume 仍然可用。
|
|
34
34
|
|
|
35
35
|
源码树遵循这些执行环境:`client/` 与 `host/` 提供镜像的适配器 entry path,`worker/` 只包含 Worker thread orchestration 与 Chrome protocol 状态,`shared/` 包含与环境无关的 Cordis 和 network model、规范化 realm 后端接口及内部 bridge protocol。Worker 侧 Client 与 Host 适配器镜像放在 `worker/realms/` 下;其中的 Client 适配器仍然在 Worker 中执行。
|
|
36
36
|
|
package/cordis.patch.yml
ADDED
package/icon.svg
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="15.5" cy="15.5" r="8.5" fill="url(#a)" />
|
|
3
|
+
<circle cx="15.5" cy="15.5" r="5" fill="#FFFFFF" />
|
|
4
|
+
<path d="M13.2 15.5L14.9 17.2L18.2 13.9" stroke="#145AF3" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" />
|
|
5
|
+
<path d="M22 22L29 29" stroke="#145AF3" stroke-width="3.2" stroke-linecap="round" />
|
|
6
|
+
<defs>
|
|
7
|
+
<linearGradient id="a" x1="7" y1="7" x2="24" y2="24" gradientUnits="userSpaceOnUse">
|
|
8
|
+
<stop stop-color="#7CB7FF" />
|
|
9
|
+
<stop offset="1" stop-color="#45D9E7" />
|
|
10
|
+
</linearGradient>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
package/lib/client.js
CHANGED
|
@@ -3384,7 +3384,7 @@ window.__ModuleLoader__.load({
|
|
|
3384
3384
|
*/
|
|
3385
3385
|
async function apply(ctx) {
|
|
3386
3386
|
const injected = globalThis.__DSH_INSPECTOR__;
|
|
3387
|
-
if (injected === void 0) throw new Error("experimental inspector: Host bootstrap is missing");
|
|
3387
|
+
if (injected === void 0) throw new Error("experimental inspector: Host bootstrap is missing; reload the page after enabling the Inspector");
|
|
3388
3388
|
const bootstrap = parseInspectorClientBootstrap(injected);
|
|
3389
3389
|
await ctx.effect(async () => {
|
|
3390
3390
|
const source = await startInspectorClient(bootstrap);
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Inspector",
|
|
4
|
+
"description": "Open the running Host and its browser Clients in Chrome DevTools through a loopback endpoint that allows code execution and captures Host network traffic, including secrets. For developers; Web only; reload open pages after enabling."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-experimental-inspector",
|
|
3
3
|
"description": "Experimental cross-realm CDP hub for Host debugging and Client Runtime inspection",
|
|
4
|
-
"version": "0.1.7-
|
|
4
|
+
"version": "0.1.7-rc.2",
|
|
5
|
+
"icon": "./icon.svg",
|
|
5
6
|
"publishConfig": {
|
|
6
7
|
"access": "public"
|
|
7
8
|
},
|
|
@@ -23,34 +24,42 @@
|
|
|
23
24
|
"default": "./lib/client.js"
|
|
24
25
|
},
|
|
25
26
|
"./src/*": "./src/*",
|
|
26
|
-
"./package.json": "./package.json"
|
|
27
|
+
"./package.json": "./package.json",
|
|
28
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
29
|
+
"./locale/*.json": "./locale/*.json"
|
|
27
30
|
},
|
|
28
31
|
"dsh": {
|
|
29
32
|
"client": {
|
|
30
33
|
"inject": [],
|
|
31
34
|
"platform": "web",
|
|
32
35
|
"immediately": true
|
|
36
|
+
},
|
|
37
|
+
"bundle": {
|
|
38
|
+
"patch": "./cordis.patch.yml"
|
|
33
39
|
}
|
|
34
40
|
},
|
|
35
41
|
"files": [
|
|
42
|
+
"icon.svg",
|
|
43
|
+
"locale/*.json",
|
|
36
44
|
"lib/index.js",
|
|
37
45
|
"lib/client.js",
|
|
46
|
+
"cordis.patch.yml",
|
|
38
47
|
"lib/worker.js",
|
|
39
48
|
"lib/types/**/*.d.ts"
|
|
40
49
|
],
|
|
41
50
|
"license": "MIT",
|
|
42
51
|
"dependencies": {
|
|
43
52
|
"ws": "^8.21.0",
|
|
44
|
-
"@deepseek-ai/dsh-
|
|
45
|
-
"@deepseek-ai/dsh-util-crypto": "0.1.7-
|
|
53
|
+
"@deepseek-ai/dsh-brand": "0.1.7-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-util-crypto": "0.1.7-rc.2",
|
|
46
55
|
"@deepseek-ai/schemastery": "~3.18.4",
|
|
47
|
-
"@deepseek-ai/dsh-
|
|
56
|
+
"@deepseek-ai/dsh-app-boot": "0.1.7-rc.2"
|
|
48
57
|
},
|
|
49
58
|
"peerDependencies": {
|
|
50
|
-
"@deepseek-ai/cordis-plugin-loader": "~1.0.5",
|
|
51
59
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
52
|
-
"@deepseek-ai/dsh-client-modules": "0.1.7-
|
|
53
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.7-
|
|
60
|
+
"@deepseek-ai/dsh-client-modules": "0.1.7-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.7-rc.2",
|
|
62
|
+
"@deepseek-ai/cordis-plugin-loader": "~1.0.5"
|
|
54
63
|
},
|
|
55
64
|
"devDependencies": {
|
|
56
65
|
"@types/ws": "^8.18.1",
|
|
@@ -59,6 +68,6 @@
|
|
|
59
68
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
60
69
|
"@deepseek-ai/cordis-plugin-include": "~1.0.9",
|
|
61
70
|
"@deepseek-ai/cordis-plugin-loader": "~1.0.5",
|
|
62
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.7-
|
|
71
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.7-rc.2"
|
|
63
72
|
}
|
|
64
73
|
}
|