dsh-web-fetch-playwright 0.2.2 → 0.2.3

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/cordis.patch.yml CHANGED
@@ -1,9 +1,15 @@
1
1
  # dsh-web-fetch-playwright bundle layer.
2
2
  #
3
3
  # 1. Pin the web seam's fetch provider to this plugin's provider (id
4
- # 'playwright'). A patch replaces the targeted row's WHOLE config, so the
5
- # shipped search selection is restated verbatim — losing it would break
6
- # web_search.
4
+ # 'playwright'). A patch replaces the targeted row's WHOLE config, so every
5
+ # key written here is deliberate. `searchProvider` is intentionally omitted:
6
+ # this bundle owns fetch, not search. Omitted means auto-select when exactly
7
+ # one search provider is usable (the base bundle registers only
8
+ # 'deepseek-official', so the default composition is unchanged), while any
9
+ # later layer — the user's own search bundle, the profile/home
10
+ # cordis.patch.yml, or $DSH_WEB_SEARCH_PROVIDER — stays free to pin search
11
+ # without this layer out-ranking it. Two usable search providers with no
12
+ # explicit selection fail loud (WEB_PROVIDER_AMBIGUOUS) instead of guessing.
7
13
  # 2. Enable the model-facing web_fetch tool with a browser-realistic budget
8
14
  # (launch + render + denoise takes longer than a plain HTTP GET; 60s
9
15
  # matches the deployment's search budget). `disabled: false` re-enables
@@ -16,7 +22,6 @@
16
22
  # ('web-fetch-playwright') layering over the row config is hot-reloaded.
17
23
  - id: web
18
24
  config:
19
- searchProvider: deepseek-official
20
25
  fetchProvider: playwright
21
26
 
22
27
  - id: tool-web
package/lib/client.js CHANGED
@@ -388,21 +388,21 @@ window.__ModuleLoader__.load({
388
388
  document.head.appendChild(tag);
389
389
  }
390
390
  var PluginCard_module_css_default = {
391
- "chevron": "UM8-Rq_chevron",
392
- "chevronOpen": "UM8-Rq_chevronOpen",
393
- "save": "UM8-Rq_save",
394
- "name": "UM8-Rq_name",
395
- "discard": "UM8-Rq_discard",
396
- "failed": "UM8-Rq_failed",
397
391
  "header": "UM8-Rq_header",
398
392
  "cardOpen": "UM8-Rq_cardOpen",
393
+ "readOnly": "UM8-Rq_readOnly",
394
+ "discard": "UM8-Rq_discard",
395
+ "headText": "UM8-Rq_headText",
396
+ "pending": "UM8-Rq_pending",
399
397
  "description": "UM8-Rq_description",
398
+ "footer": "UM8-Rq_footer",
399
+ "chevron": "UM8-Rq_chevron",
400
+ "failed": "UM8-Rq_failed",
401
+ "save": "UM8-Rq_save",
402
+ "name": "UM8-Rq_name",
400
403
  "body": "UM8-Rq_body",
401
404
  "card": "UM8-Rq_card",
402
- "footer": "UM8-Rq_footer",
403
- "readOnly": "UM8-Rq_readOnly",
404
- "headText": "UM8-Rq_headText",
405
- "pending": "UM8-Rq_pending"
405
+ "chevronOpen": "UM8-Rq_chevronOpen"
406
406
  };
407
407
  //#endregion
408
408
  //#region src/client/PluginCard.tsx
@@ -519,26 +519,26 @@ window.__ModuleLoader__.load({
519
519
  document.head.appendChild(tag);
520
520
  }
521
521
  var fields_module_css_default = {
522
- "badges": "CFSaVG_badges",
523
- "invalid": "CFSaVG_invalid",
524
522
  "radioContent": "CFSaVG_radioContent",
523
+ "field": "CFSaVG_field",
524
+ "invalid": "CFSaVG_invalid",
525
525
  "hint": "CFSaVG_hint",
526
+ "head": "CFSaVG_head",
527
+ "hintIndented": "CFSaVG_hintIndented",
528
+ "fieldEmbedded": "CFSaVG_fieldEmbedded",
529
+ "inputInvalid": "CFSaVG_inputInvalid",
530
+ "radioHint": "CFSaVG_radioHint",
531
+ "checkboxRow": "CFSaVG_checkboxRow",
526
532
  "radioLabel": "CFSaVG_radioLabel",
527
- "radioGroup": "CFSaVG_radioGroup",
533
+ "reset": "CFSaVG_reset",
528
534
  "radioText": "CFSaVG_radioText",
535
+ "radioOption": "CFSaVG_radioOption",
529
536
  "badge": "CFSaVG_badge",
530
- "fieldEmbedded": "CFSaVG_fieldEmbedded",
531
- "checkboxRow": "CFSaVG_checkboxRow",
532
- "hintIndented": "CFSaVG_hintIndented",
533
- "input": "CFSaVG_input",
534
- "radioHint": "CFSaVG_radioHint",
535
537
  "label": "CFSaVG_label",
536
- "reset": "CFSaVG_reset",
537
- "inputInvalid": "CFSaVG_inputInvalid",
538
- "field": "CFSaVG_field",
538
+ "badges": "CFSaVG_badges",
539
+ "radioGroup": "CFSaVG_radioGroup",
539
540
  "radioPick": "CFSaVG_radioPick",
540
- "head": "CFSaVG_head",
541
- "radioOption": "CFSaVG_radioOption"
541
+ "input": "CFSaVG_input"
542
542
  };
543
543
  //#endregion
544
544
  //#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.2.2",
3
+ "version": "0.2.3",
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",
@@ -31,13 +31,6 @@
31
31
  "README.zh-CN.md",
32
32
  "LICENSE"
33
33
  ],
34
- "scripts": {
35
- "build": "rm -rf lib && tsc -p tsconfig.build.json --emitDeclarationOnly && tsdown",
36
- "prepare": "pnpm run build",
37
- "prepublishOnly": "pnpm run build",
38
- "typecheck": "tsc --noEmit",
39
- "test": "vitest run"
40
- },
41
34
  "dsh": {
42
35
  "bundle": {
43
36
  "patch": "./cordis.patch.yml"
@@ -127,5 +120,10 @@
127
120
  "tsdown": "^0.22.2",
128
121
  "typescript": "^5.8.0",
129
122
  "vitest": "^4.1.8"
123
+ },
124
+ "scripts": {
125
+ "build": "rm -rf lib && tsc -p tsconfig.build.json --emitDeclarationOnly && tsdown",
126
+ "typecheck": "tsc --noEmit",
127
+ "test": "vitest run"
130
128
  }
131
- }
129
+ }