Files
deepseek-harness/packages/document
yudshj a220e017b5 refactor(office): 合并为 office-kit,Kit 缺失时降级而非加载失败
- Kit CLI 由 office-kit/locate 在 Host 中定位(含 ASAR 映射与可选 root 越界检查),删除 Desktop 壳的 office-cli 与诊断文件;生产版 Desktop 由壳通过 DSH_BUNDLED_RUNTIME_ROOT 显式传入 Kit 根目录,开发版与 Web 不检查
- office-to-pdf 与 office-kit-resolver 合并为 @deepseek-ai/dsh-office-kit,由同一包定位 Kit 并提供转换服务
- Kit 缺失时 provider 照常注册,转换请求以 OfficeKitError unavailable 拒绝,之后安装 Kit 无需重载
- 类型统一使用 OfficeKit 前缀(OfficeKitRequest/Result/Priority/Key),同步消费方、文档、升级指南与 catalog
- 处理 ds-review-bot 意见,并更新 unknown 断言基线

本 PR 的 snapshot 统一在这个提交里用 keyless refresh 重新生成,前 3 个提交中的 snapshot 不一定和那一步的代码对应。
2026-11-04 18:17:57 +08:00
..

description, kind
description kind
Package map for Host Office conversion and reusable PDF results. package-group

document/ — Office conversion

English | 中文

Summary

Convert authorized Office files to reusable PDFs on the Host. The shared service converts through LibreOffice kit. Targets with a declared native engine use it; other targets use Node WASM.

Table of Contents


Packages

Each package owns its configuration and lifetime rules; the subsystem reference describes their shared conversion operation.

Package Role ctx key
office-kit Authorized Office bytes to complete PDFs with bounded queues and caching; consumer-anchored Kit entry, CLI, and engine manifests through /locate ctx.officeKit

Consumers own source authorization and presentation.

Dev Note

Working context for maintainers — click to expand

None.