@xiaofanzhao/dsh-plugin-knowledge-base 0.2.1 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -163,6 +163,7 @@ git push origin v0.1.0
163
163
 
164
164
  - **缩略图栏**:点哪页跳哪页,当前页有描边;工具栏最左边的按钮可以收起它
165
165
  - **单页 / 连续**:单页像放映(整页装下、居中、不裁切),连续是滚动阅读
166
+ - **首屏很快**:先渲染前 6 页给看,剩下的在后台继续补,几秒后自动出现(不用等整本渲完)
166
167
  - **大屏**:铺满整个窗口,`← →` / `PageUp PageDown` 翻页,`Esc` 或右上角「恢复」回面板
167
168
  - **文字版**:「原版式 / 文字」随时切换,文字版用于快速读、也是 AI 检索的来源
168
169
 
@@ -335,7 +336,21 @@ $env:KB_TEST_XLSX = "C:\path\to\any.xlsx"
335
336
 
336
337
  - 老版 Office(`.doc/.ppt/.xls`)能看原版式,但不抽正文,搜不到里面的字
337
338
  - 扫描件 PDF / 纯图片没有文字层,搜不到内容
338
- - 转换上限:单文件 50 MB(LibreOffice),单次渲图 200 页
339
+ - **原版式转换受 DSH 的 office-kit 限制**,默认 `maxInputBytes = 50 MB`。超过时不是卡住,而是立刻提示原因(可切「文字版」或「下载」)。
340
+ 想放宽:在 profile 的 `cordis.patch.yml` 里给 office-kit 加一段配置(`maxInputBytes` 必须 ≤ `maxSourceBytes`):
341
+
342
+ ```yaml
343
+ - id: office-kit
344
+ name: "@deepseek-ai/dsh-office-kit"
345
+ config:
346
+ maxInputBytes: 209715200
347
+ maxSourceBytes: 314572800
348
+ maxOutputBytes: 314572800
349
+ timeoutMs: 300000
350
+ ```
351
+
352
+ 本机没装原生 LibreOffice 时走的是 **WASM 引擎**:57 MB 的 PPT 实测转换约 **58 秒**,再大只会更慢,所以放宽上限主要适合"偶尔一个大文件"。
353
+ - 单次渲图最多 200 页
339
354
  - 桌面端不允许插件页面开新窗口,所以「大屏」是应用内全屏,不是独立窗口
340
355
 
341
356
  ## License