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:
Vincent Koc
2026-04-24 17:15:05 -07:00
committed by GitHub
parent 915931aa38
commit e3cba98f39
34 changed files with 1023 additions and 321 deletions

View File

@@ -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": {

View File

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