feat: manually mirror opencoze's code from bytedance

Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
fanlv
2025-07-20 17:36:12 +08:00
commit 890153324f
14811 changed files with 1923430 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# @coze-arch/pdfjs-shadow
## Description
原始的 pdfjs-dist 包兼容性过低,需要重新编译,增加 polyfill 之后才能正常运行,因此设计该 package主要作用
1. 收敛 pdfjs-dist 调用,避免 bot 环境中多出定义 pdfjs-dist 版本;
2. 收敛 worker src url 的计算逻辑。
注意,该 package 仅供 coze 消费。