Files
deepseek-harness/packages/document
Yudong Han c72724b42e feat(office): add experimental office preview by frame forwarding bundle (#8441)
* feat(office): add frame-forwarded preview and bundle integration

* feat(office): present document and slideshow frames with video

* test(office): simulate video frame cloning across preview sessions

* fix(frame-forwarding): preserve document proportions during resize

* fix(office-preview): resume frames after tab switches and restore margin dragging

* refactor(office-preview): share submitted geometry and simplify fixture cleanup

* refactor(office): remove obsolete viewport discard comparison

* refactor(office): take shared textures from the dsh-shared-texture services

The Office preview spec helper imported the bridge and lease types from the removed @deepseek-ai/dsh-shared-texture-client-types package, passed frame forwarding the failureSource() adapter that its Client service no longer declares, and the specs stubbed globalThis.dshDesktop, which frame forwarding no longer reads.

The helper imports the types from @deepseek-ai/dsh-shared-texture/client and drops the adapter, and the specs stop stubbing dshDesktop. The shared-texture Agent Note drops the PR citation from its NodeNext declaration check sentence, and the README model-experience registry rewords the dsh-shared-texture entry.

* fix(office-preview): take the React 19 ref types

The client moved to React 19, whose types require an initial value for `useRef` and type a DOM ref created with `null`
as `RefObject<T | null>`. Refs that start empty now pass `undefined`, the surface takes its element refs as
`RefObject<HTMLDivElement | null>`, and `RefObject` replaces the deprecated `MutableRefObject`, as the rest of the client
does.

* fix(office-preview): align the producer and receiver tests on Kit 0.2.4

* chore(office-preview): refresh the client slot catalog

* fix(office-preview): drain document releases and handle slideshow frame failures

* refactor(office): expose Kit discovery and editor opening on officeKit

* fix(office-preview): preserve slideshows across same-client event reconnects

* refactor(frame-forwarding): use single-producer channels and retain Office slide previews

* fix(plugins): show native Office preview only in Desktop

* fix(office-preview): reconcile slideshow and document lifetimes on reconnect and refresh

* fix(office-preview): simplify slideshow recovery and retain hidden fallback views

* refactor(office-preview): type document operations and detach playback before refresh

* feat(office-preview): lease documents by tab and reopen expired previews

* fix(office-preview): retire slideshow mounts without blocking channel recovery

* fix(office-preview): restore the last shown slide on channel reconnect

* fix(office-preview): preserve channel loss while waiting for the first viewport

* fix(office-preview): cancel slideshow readiness when playback stops

* test(web): exclude desktop-only bundles in plugin-config e2e

* fix(office): cancel retired viewport waits and count successful redraws

* fix(office-preview): await timed-out open cleanup on plugin disposal
2026-11-27 16:10:38 +00: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-document document_render, document_convert, and document_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.