dsh-site-bridge 0.4.0 → 0.4.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/README.md +7 -8
- package/README.ru.md +7 -8
- package/README.zh-CN.md +6 -6
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,9 +70,8 @@ candidates checked for uniqueness, and the site's own xhr/fetch calls with heade
|
|
|
70
70
|
written to files an agent can read. Automation exists so that "this selector works" and "this BFF call
|
|
71
71
|
passes with my cookies" are checked against the live page instead of assumed.
|
|
72
72
|
|
|
73
|
-
The practical consequence:
|
|
74
|
-
tools
|
|
75
|
-
that embeds into one specific site, you need the capture, and the input comes with it.
|
|
73
|
+
The practical consequence: this plugin is built for writing an extension for one specific site, and
|
|
74
|
+
the input tools exist to verify that work against the live page rather than to browse the web.
|
|
76
75
|
|
|
77
76
|
## Requirements
|
|
78
77
|
|
|
@@ -181,12 +180,12 @@ The wire protocol is small and documented in [docs/protocol.md](docs/protocol.md
|
|
|
181
180
|
puts a secret under an unusual key, redaction will not recognise it. Treat a capture bundle as
|
|
182
181
|
sensitive, exactly like any traffic dump.
|
|
183
182
|
|
|
184
|
-
###
|
|
183
|
+
### Trust model
|
|
185
184
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
The bridge accepts only requests that carry the pairing token. The extension asks for `debugger`
|
|
186
|
+
instead of `<all_urls>` and does not inject a content script into every page. The cost is a pairing
|
|
187
|
+
step and Chrome's debugging banner. In exchange the permission is granted per tab, for the duration
|
|
188
|
+
of a session, and requests are read where they are made — no credential is copied out of the browser.
|
|
190
189
|
|
|
191
190
|
## Limitations
|
|
192
191
|
|
package/README.ru.md
CHANGED
|
@@ -70,9 +70,8 @@ site_capture → captures/<host>/<timestamp>/
|
|
|
70
70
|
которые агент читает. Автоматизация нужна, чтобы «этот селектор работает» и «этот вызов BFF проходит
|
|
71
71
|
с моими куками» проверялись на живой странице, а не предполагались.
|
|
72
72
|
|
|
73
|
-
Практическое следствие: для
|
|
74
|
-
|
|
75
|
-
конкретный сайт, нужен снимок, а ввод идёт в комплекте.
|
|
73
|
+
Практическое следствие: плагин сделан для написания расширения под конкретный сайт, а инструменты
|
|
74
|
+
ввода нужны, чтобы проверять эту работу на живой странице, а не для браузинга.
|
|
76
75
|
|
|
77
76
|
## Требования
|
|
78
77
|
|
|
@@ -180,12 +179,12 @@ site_inject {js:"..."} → выполнить ваш скрипт в с
|
|
|
180
179
|
сайт кладёт секрет под нестандартным ключом, редакция его не узнает. Считайте пакет снимка
|
|
181
180
|
чувствительным, как и любой дамп трафика.
|
|
182
181
|
|
|
183
|
-
###
|
|
182
|
+
### Модель доверия
|
|
184
183
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
184
|
+
Мост принимает только запросы с токеном сопряжения. Расширение просит `debugger`, а не
|
|
185
|
+
`<all_urls>`, и не внедряет content script в каждую страницу. Цена — шаг сопряжения и плашка отладки
|
|
186
|
+
Chrome. Взамен право выдаётся на вкладку и на время сессии, а запросы читаются там, где они сделаны:
|
|
187
|
+
учётные данные не покидают браузер.
|
|
189
188
|
|
|
190
189
|
## Ограничения
|
|
191
190
|
|
package/README.zh-CN.md
CHANGED
|
@@ -56,8 +56,8 @@ site_capture → captures/<host>/<timestamp>/
|
|
|
56
56
|
xhr/fetch(含请求头与请求体),全部写成智能体可读的文件。自动化的作用是让「这个选择器可用」和
|
|
57
57
|
「这个 BFF 调用能带着我的 Cookie 通过」在活页面上被验证,而不是被假设。
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
实际后果:本项目是为编写面向某个具体网站的扩展而做的,输入工具用来在活页面上验证这些工作,而不是
|
|
60
|
+
用来浏览网页。
|
|
61
61
|
|
|
62
62
|
## 环境要求
|
|
63
63
|
|
|
@@ -147,11 +147,11 @@ site_inject {js:"..."} → 在页面中执行你的脚本以验证
|
|
|
147
147
|
- **仅回环。** 网桥只绑定 `127.0.0.1`,任何没有 32 字节配对令牌的请求都会被拒绝。`site_status` 打印的是令牌文件路径,而不是令牌本身。
|
|
148
148
|
- **残余风险。** 请求头与请求体仍会经过 DSH 进程的内存。如果站点把密钥放在非常规字段名下,脱敏无法识别。请像对待任何流量转储一样,把快照包视为敏感数据。
|
|
149
149
|
|
|
150
|
-
###
|
|
150
|
+
### 信任模型
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
网桥只接受携带配对令牌的请求。扩展申请 `debugger` 而不是 `<all_urls>`,也不会向每个页面注入
|
|
153
|
+
content script。代价是配对步骤与 Chrome 的调试提示条。换来的是:权限按标签页、按会话授予,请求在
|
|
154
|
+
产生的地方被读取,凭据不离开浏览器。
|
|
155
155
|
|
|
156
156
|
## 限制
|
|
157
157
|
|
package/extension/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-site-bridge",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Chrome/Edge MV3 bridge for DeepSeek Harness: capture page markup (DOM, styles, selectors) and BFF traffic (xhr/fetch with headers and bodies) into a workspace snapshot bundle, drive the page with trusted CDP input, and verify injected scripts. Authorization never leaves the browser and is never written to disk.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|