mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:20:44 +00:00
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:
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user