refactor(web-fetch): move readability extraction to plugin

* refactor(web-fetch): move readability extraction to plugin

* fix(web-fetch): cache extractor resolution by config

* fix(test): remove redundant stat assertions
This commit is contained in:
Vincent Koc
2026-04-24 13:34:37 -07:00
committed by GitHub
parent f102ddad0c
commit 86099ec62a
32 changed files with 1078 additions and 316 deletions

View File

@@ -42,8 +42,9 @@
"risk": ["protocol-client", "network"]
},
"@mozilla/readability": {
"owner": "capability:web-extract-local",
"class": "default-runtime-initially",
"owner": "plugin:web-readability",
"class": "plugin-runtime",
"activation": ["tools.web.fetch.readability", "plugins.entries.web-readability.enabled"],
"risk": ["parser", "untrusted-html"]
},
"@napi-rs/canvas": {
@@ -122,8 +123,9 @@
"risk": ["archive-parser", "untrusted-files"]
},
"linkedom": {
"owner": "capability:web-extract-local",
"class": "default-runtime-initially",
"owner": "plugin:web-readability",
"class": "plugin-runtime",
"activation": ["tools.web.fetch.readability", "plugins.entries.web-readability.enabled"],
"risk": ["parser", "untrusted-html"]
},
"markdown-it": {

View File

@@ -266,6 +266,7 @@
"provider-stream",
"provider-tools",
"provider-usage",
"web-content-extractor",
"provider-web-fetch-contract",
"provider-web-fetch",
"provider-web-search-config-contract",