mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:10:42 +00:00
refactor(pdf): move document extraction to plugin
* refactor(pdf): move document extraction to plugin * fix(deps): sync document extract lockfile * fix(pdf): harden document extraction plugin
This commit is contained in:
@@ -48,8 +48,12 @@
|
||||
"risk": ["parser", "untrusted-html"]
|
||||
},
|
||||
"@napi-rs/canvas": {
|
||||
"owner": "capability:document-and-image-rendering",
|
||||
"class": "default-runtime-initially",
|
||||
"owner": "plugin:document-extract",
|
||||
"class": "optional-peer-runtime",
|
||||
"activation": [
|
||||
"input_file.application_pdf.image_fallback",
|
||||
"plugins.entries.document-extract.enabled"
|
||||
],
|
||||
"risk": ["native", "parser", "untrusted-files"]
|
||||
},
|
||||
"@vincentkoc/qrcode-tui": {
|
||||
@@ -149,8 +153,9 @@
|
||||
"risk": ["terminal-rendering"]
|
||||
},
|
||||
"pdfjs-dist": {
|
||||
"owner": "capability:document-extract",
|
||||
"class": "default-runtime-initially",
|
||||
"owner": "plugin:document-extract",
|
||||
"class": "plugin-runtime",
|
||||
"activation": ["input_file.application_pdf", "plugins.entries.document-extract.enabled"],
|
||||
"risk": ["parser", "untrusted-files"]
|
||||
},
|
||||
"proxy-agent": {
|
||||
|
||||
@@ -266,6 +266,7 @@
|
||||
"provider-stream",
|
||||
"provider-tools",
|
||||
"provider-usage",
|
||||
"document-extractor",
|
||||
"web-content-extractor",
|
||||
"provider-web-fetch-contract",
|
||||
"provider-web-fetch",
|
||||
|
||||
Reference in New Issue
Block a user