Files
deepseek-harness/packages/document
sjw1231 08c155e145 refactor(office): record structured error name and code for Office tool failures
Office tool failures now throw HarnessError subclasses so tool/result keeps
error.name and error.code:

- OfficeKitError failures map to OfficeToolError OFFICE_* codes at the tool
  boundary, keeping the OfficeKitError as cause.
- A model route without image input is OfficeToolError
  MODEL_DOES_NOT_SUPPORT_IMAGES; oversized images are OFFICE_OUTPUT_TOO_LARGE;
  a remote workspace is OFFICE_UNSUPPORTED_REMOTE_WORKSPACE.
- Missing Agent, attachment store, or model route is ToolContextUnavailableError.
- Missing or non-regular inputs are FsError FS_NOT_FOUND / FS_NOT_REGULAR_FILE.
- Hand-checked argument rules are ToolArgsError INVALID_ARGS.
- Attachment store refusals keep their AttachmentError code.

Refs #7869
2026-11-09 15:27:37 +08:00
..

description, kind
description kind
Package map for Host Office rendering, conversion, and the model-facing Office tools. package-group

document/ — Office documents

English | 中文

Summary

Render, convert, and recalculate authorized Office files on the Host, for previews and for the model's Office tools. The shared service runs 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, PNG images, converted files, and recalculated workbooks with bounded queues and caching; the provider resolves its own Kit entry, engine manifests, and ASAR-unpacked engine paths ctx.officeKit
tool-office office_render, office_convert, and office_recalculate, declared after an Office skill loads: render pages as images in the tool result, convert documents, and recalculate workbooks —

Consumers own source authorization and presentation.

Dev Note

Working context for maintainers — click to expand

None.