dsh-web-fetch-playwright 0.1.0 → 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/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/lib/client.js +24 -24
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -99,6 +99,8 @@ src/
|
|
|
99
99
|
tests/ # unit + provider + browser integration (self-skipping)
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
+
See [CONTRIBUTING.md](./CONTRIBUTING.md) for the development and release workflow, and [SECURITY.md](./SECURITY.md) for the security model and reporting policy.
|
|
103
|
+
|
|
102
104
|
## Security
|
|
103
105
|
|
|
104
106
|
Same stance as the built-in HTTP provider: **no SSRF / private-network protection is implemented** — anything the browser can reach, this provider can fetch. The CDP endpoint is configured from the settings page with no loopback restriction, so only expose the settings page to trusted environments. Fetched pages are rendered locally; no data is sent anywhere beyond the target page itself.
|
package/README.zh-CN.md
CHANGED
|
@@ -99,6 +99,8 @@ src/
|
|
|
99
99
|
tests/ # 单元 + provider + 浏览器集成(可自跳过)
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
+
开发与发布流程见 [CONTRIBUTING.md](./CONTRIBUTING.md),安全模型与漏洞报告见 [SECURITY.md](./SECURITY.md)。
|
|
103
|
+
|
|
102
104
|
## 安全边界
|
|
103
105
|
|
|
104
106
|
与内置 HTTP provider 同立场:**未实现 SSRF/私网防护**——浏览器能访问的目标,本 provider 就能抓。CDP 地址由设置页配置,不做回环限制,请在可信环境暴露设置页。抓取仅在本地渲染,除目标页面自身外不会向任何地方发送数据。
|
package/lib/client.js
CHANGED
|
@@ -359,21 +359,21 @@ window.__ModuleLoader__.load({
|
|
|
359
359
|
document.head.appendChild(tag);
|
|
360
360
|
}
|
|
361
361
|
var PluginCard_module_css_default = {
|
|
362
|
-
"
|
|
363
|
-
"
|
|
362
|
+
"description": "UM8-Rq_description",
|
|
363
|
+
"footer": "UM8-Rq_footer",
|
|
364
|
+
"chevron": "UM8-Rq_chevron",
|
|
364
365
|
"name": "UM8-Rq_name",
|
|
366
|
+
"save": "UM8-Rq_save",
|
|
365
367
|
"readOnly": "UM8-Rq_readOnly",
|
|
366
|
-
"headText": "UM8-Rq_headText",
|
|
367
|
-
"discard": "UM8-Rq_discard",
|
|
368
|
-
"cardOpen": "UM8-Rq_cardOpen",
|
|
369
|
-
"footer": "UM8-Rq_footer",
|
|
370
368
|
"card": "UM8-Rq_card",
|
|
371
|
-
"header": "UM8-Rq_header",
|
|
372
|
-
"body": "UM8-Rq_body",
|
|
373
369
|
"pending": "UM8-Rq_pending",
|
|
374
|
-
"
|
|
375
|
-
"
|
|
376
|
-
"
|
|
370
|
+
"body": "UM8-Rq_body",
|
|
371
|
+
"headText": "UM8-Rq_headText",
|
|
372
|
+
"chevronOpen": "UM8-Rq_chevronOpen",
|
|
373
|
+
"failed": "UM8-Rq_failed",
|
|
374
|
+
"cardOpen": "UM8-Rq_cardOpen",
|
|
375
|
+
"discard": "UM8-Rq_discard",
|
|
376
|
+
"header": "UM8-Rq_header"
|
|
377
377
|
};
|
|
378
378
|
//#endregion
|
|
379
379
|
//#region src/client/PluginCard.tsx
|
|
@@ -490,25 +490,25 @@ window.__ModuleLoader__.load({
|
|
|
490
490
|
document.head.appendChild(tag);
|
|
491
491
|
}
|
|
492
492
|
var fields_module_css_default = {
|
|
493
|
-
"
|
|
494
|
-
"
|
|
495
|
-
"
|
|
496
|
-
"
|
|
493
|
+
"radioText": "CFSaVG_radioText",
|
|
494
|
+
"field": "CFSaVG_field",
|
|
495
|
+
"radioPick": "CFSaVG_radioPick",
|
|
496
|
+
"label": "CFSaVG_label",
|
|
497
|
+
"radioContent": "CFSaVG_radioContent",
|
|
497
498
|
"radioHint": "CFSaVG_radioHint",
|
|
499
|
+
"radioGroup": "CFSaVG_radioGroup",
|
|
500
|
+
"radioLabel": "CFSaVG_radioLabel",
|
|
498
501
|
"checkboxRow": "CFSaVG_checkboxRow",
|
|
499
|
-
"
|
|
502
|
+
"badge": "CFSaVG_badge",
|
|
503
|
+
"invalid": "CFSaVG_invalid",
|
|
500
504
|
"badges": "CFSaVG_badges",
|
|
501
|
-
"
|
|
505
|
+
"reset": "CFSaVG_reset",
|
|
506
|
+
"input": "CFSaVG_input",
|
|
502
507
|
"head": "CFSaVG_head",
|
|
503
|
-
"radioGroup": "CFSaVG_radioGroup",
|
|
504
|
-
"radioPick": "CFSaVG_radioPick",
|
|
505
|
-
"hint": "CFSaVG_hint",
|
|
506
|
-
"radioContent": "CFSaVG_radioContent",
|
|
507
508
|
"fieldEmbedded": "CFSaVG_fieldEmbedded",
|
|
508
509
|
"inputInvalid": "CFSaVG_inputInvalid",
|
|
509
|
-
"
|
|
510
|
-
"
|
|
511
|
-
"radioText": "CFSaVG_radioText"
|
|
510
|
+
"radioOption": "CFSaVG_radioOption",
|
|
511
|
+
"hint": "CFSaVG_hint"
|
|
512
512
|
};
|
|
513
513
|
//#endregion
|
|
514
514
|
//#region src/client/fields.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-web-fetch-playwright",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Playwright/CDP web-fetch provider for DeepSeek Harness: renders pages in a real browser, denoises them (Readability + DOMPurify), and returns markdown.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"@deepseek-ai/cordis": ">=4.0.1-rc.1 <5",
|
|
101
|
-
"@deepseek-ai/dsh-settings": ">=0.1.0-rc.6 <1",
|
|
102
|
-
"@deepseek-ai/dsh-web": ">=0.1.0-rc.6 <1"
|
|
101
|
+
"@deepseek-ai/dsh-settings": ">=0.1.0-rc.6 <0.2.0 || >=0.1.1-rc.1 <1",
|
|
102
|
+
"@deepseek-ai/dsh-web": ">=0.1.0-rc.6 <0.2.0 || >=0.1.1-rc.1 <1"
|
|
103
103
|
},
|
|
104
104
|
"peerDependenciesMeta": {
|
|
105
105
|
"@deepseek-ai/cordis": {
|