DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@dake6767/dsh-onlyoffice

Onlyoffice

DSH Web 插件:在嵌入式 OnlyOffice 编辑器中打开侧边栏文件管理器里的 .docx/.xlsx/.pptx 文件(静态 SDK,无需 Document Server)。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @dake6767/dsh-onlyoffice@0.1.9
README兼容性版本

兼容性与来源证明

Onlyoffice 以 @dake6767/dsh-onlyoffice 发布,当前版本为 0.1.9。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/10/24

版本

0.1.9stable
2026/10/24
0.1.7stable
2026/10/21
0.1.6stable
2026/10/21
查看其余 3 个版本收起版本
0.1.4stable
2026/10/21
0.1.3stable
2026/10/21
0.1.0stable
2026/10/21

相关插件

正在加载相关插件…

最新版
0.1.9
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
1.7 MB
文件数
77
Surface
web
许可证
AGPL-3.0-only
发布源
npm
GitHub
★ 0
周下载
0
最近提交
2026/10/24
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

README

dsh-onlyoffice

English | 中文

A DeepSeek Harness plugin that opens .docx / .xlsx / .pptx files from the Harness sidebar file managers and edits them in an embedded OnlyOffice editor — client-side static SDK, no Document Server, no backend conversion service. Documents never leave the machine; the only network traffic is fetching the OpenOffice-format engine assets once (cached on disk).

Package@dake6767/dsh-onlyoffice (npm) — linked directory install in the desktop profile
Host halflib/index.js — /dsh-onlyoffice/* routes (SDK proxy + cache, read/write, diagnostics)
Client halflib/client.js — one module-loader bundle, three consumers of the vendored engine
Engineonlyoffice-web-comp vendored under vendor/onlyoffice-web-comp (patched: vendor/PATCHES.md)

What it does

  • Two integration paths, one engine
    • DSH built-in document preview (primary, no third-party dependency): registers a document implementation through ctx.documentPreviews plus the keyed sidebar.right.tab.document slot (loading: 'renderer').
    • dsh-better-sidebar (optional): registers three file viewers through ctx.betterSidebar.registerFileViewer. The service is awaited across load order (get → optional inject → bounded poll), so the two plugins compose in either boot order.
  • Edit + save back to the original file
    • ⌘S / Ctrl+S inside the editor (the vendor's save-shortcut blocker is re-pointed at this plugin) and the editor's own save affordance (onSave → ONSAVE) both write the document back.
    • Auto-save: every document change schedules a debounced (1.8 s idle) write-back; manual saves flush immediately. Saves are silent.
  • External changes are detected, never swapped underneath you: the preview watcher reports a new file version; the viewer shows “文件已在磁盘上更新。[重新加载]” and you decide when to reload.
  • Export the edited document as a download; toggle read-only/edit; editor UI theme follows DSH light/dark.
  • Diagnostics left in the product: viewer failures render the captured console/iframe errors and an environment snapshot, and report to POST /dsh-onlyoffice/diagnostic (appended to <cacheDir>/.requests.log).

Requirements

  • A DSH build whose client exposes documentPreviews + slots (the shipped @deepseek-ai/dsh-client-ui-sidebar-documentpreview) and, for the optional path, dsh-better-sidebar.
  • Network access to one of the SDK mirrors on first open (see below).

Install

Deployments behind a reverse proxy are supported: the plugin resolves its routes against the page directory, so a GUI served at https://host/app/<id>/ works the same as http://127.0.0.1:53803/ or the desktop shell dsh-app://app/.

The bundle is a linked directory; plugin_manager install_bundle with target: /Users/wuliqi/projects/dsh-onlyoffice adds the dependency and the profile bundle row. A page refresh (Cmd+R) loads client changes; host-half changes need a full DSH restart (HMR is not reliable for the linked host module).

node build/build-client.mjs   # vendor + src/client -> lib/client.js (582 KB)
node build/build-host.mjs     # host/*.js -> lib/*.js
node --test "test/**/*.test.mjs"

OnlyOffice static SDK: where the engine comes from

The SDK tree is ~19.6k files / 1.1 GB and is distributed separately. The Host reads a prepared shared copy when configured, then falls back to its writable member cache and upstream mirrors.

GET /dsh-onlyoffice/sdk/onlyoffice/<version>/<rest>
  shared hit -> <DSH_ONLYOFFICE_SHARED_CACHE_DIR>/<version>/<rest>
  member hit -> <cacheDir>/<version>/<rest>
  cache miss -> <mirror>/onlyoffice/<version>/<rest>  (first working mirror)

Default ordered mirrors (failover on network error / timeout / 404 / 5xx):

  1. https://onlyoffice-web-comp.vercel.app/packages
  2. https://cdn.jsdelivr.net/gh/electroluxcode/onlyoffice-web-comp@main/public/packages
  3. https://raw.githubusercontent.com/electroluxcode/onlyoffice-web-comp/main/public/packages

Definitive 404s (e.g. dictionaries/en_US/*, absent from every mirror) are remembered for 10 minutes so they do not re-walk the mirror chain on every render.

Configuration (cordis.patch.yml row onlyoffice)

- id: onlyoffice
  name: '@dake6767/dsh-onlyoffice'
  config:
    version: '9.4.0-develop'          # SDK directory segment (client reads it from /status)
    upstreamBase: 'https://onlyoffice-web-comp.vercel.app/packages'
    upstreamFallbacks: []             # [] = single source; omit for the defaults above
    cacheDir: '~/.dsh/onlyoffice-sdk'
    fetchTimeoutMs: 300000            # upstream budget per asset
    saveEnabled: true                 # false disables the write route
    autoSave: false                   # true enables the debounced background writer
                                      #   (manual Cmd/Ctrl+S and the editor save button always work)
    maxSaveBytes: 268435456           # 256 MiB write cap

Offline / intranet: pre-populate cacheDir with the same directory layout, or point upstreamBase at a self-hosted static copy.

Shared SDK with a writable member fallback

Set DSH_ONLYOFFICE_SHARED_CACHE_DIR (0.1.9+) to a prepared SDK root visible to each Host process:

export DSH_ONLYOFFICE_SHARED_CACHE_DIR=/opt/onlyoffice-sdk
# Expected asset: /opt/onlyoffice-sdk/9.4.0-develop/web-apps/apps/api/documents/api.js

Mount this directory read-only for members. Shared hits contact no upstream and write nothing into the shared tree. Missing, inaccessible or non-file entries fall back to the member cache; symlinks resolving outside the shared root are ignored. A newly available shared file takes priority over both a member copy and a remembered upstream 404.

Downloads and request logs stay in the writable cache. Its existing precedence is unchanged: explicit plugin cacheDir, then DSH_ONLYOFFICE_CACHE_DIR, then $DSH_HOME/onlyoffice-sdk. The older DSH_ONLYOFFICE_CACHE_DIR setting still selects a writable cache; use the separate shared setting for a read-only mount. /status file and byte counts describe only the writable cache.

HTTP routes (all behind the connection fence, same as /sidebar/*)

RoutePurpose
GET /status{version, sdkBaseUrl, upstreams, cacheDir, files, bytes, lastError}
GET /sdk/onlyoffice/<ver>/<rest>SDK proxy + disk cache (immutable headers)
GET /read?sessionId&path[&cwd]document bytes + x-dsh-file-version (renderer mode)
POST /save?sessionId&path[&cwd][&mtimeMs]atomic write-back of raw document bytes
POST /diagnosticbounded browser diagnostic line → .requests.log

Write safety (the only writer in the plugin): target must already exist and be a regular file inside the session workspace (fs.contains, realpath fallback); extension must be docx/xlsx/pptx (the engine's native output — writing docx bytes over .odt/.doc/.csv would corrupt them, those stay export-only); optional mtimeMs is an optimistic lock (409 instead of clobbering a changed file); same-directory temp file + rename, original mode preserved.

Known limitations

Troubleshooting: "host SDK route unreachable" on a space page

DSH spaces can serve the workspace at /app/<spaceId>/. On such a page the plugin routes are reachable only under that prefix; the same routes at the origin root are rejected by the connection fence with 403 Forbidden. The client therefore probes the candidates at startup (page directory → origin → root-relative) and reuses whichever answers GET …/status with JSON.

Run this in the page console to see exactly what each base returns:

await window.__dshooProbe()

It reports HTTP status, content-type, timing and a body prefix for both /status and the SDK api.js, so 403 / text/plain (fence) is easy to tell apart from 200 / text/html (SPA fallback) or a timeout.

File formats

WhatFormats
Opened in OnlyOffice (built-in preview & better-sidebar)docx doc odt rtf · xlsx xls ods csv · pptx ppt odp
Written back to the original fileonly docx xlsx pptx (the engine's native output; writing docx bytes over .odt/.doc/.csv would corrupt them)
Other formats (still previewed/edited by DSH's own viewers)text, markdown, code, images, pdf, html…
Parsed by the engine but not usable in this SDK exportpdf/pdfa/djvu/xps (needs the pdfeditor app), Visio vsdx/vssx/vstx/... (needs visioeditor) — the shipped static SDK contains only documenteditor/spreadsheeteditor/presentationeditor, and api.js maps documentType: 'pdf' to pdfeditor, so those 404
Engine input formats not registered heretxt html mht epub fb2 mobi docm dotx dotm fodt ott oform docxf xlsm xltx xltm xlsb fods ots ppsx pptm ppsm potx potm fodp otp — add the extension to NATIVE_EXTENSIONS / VIEWER_EXTS and a MIME entry to enable, but keep them read-only/export-only

The extension must match the actual content (x2t picks its parser by extension). PDF deliberately stays on DSH's native viewer: it renders the embedded glyphs directly, while routing it through OnlyOffice would require a separate pdfeditor application and a conversion round-trip.

  • No real-time co-editing: the static SDK has no collaboration channel. True character-level sync needs a Document Server / WOPI backend.
  • External changes reload the document (on your click), not individual characters; the in-place refreshFile path is unreliable in this SDK build and is only a documented vendor patch, not the default.
  • Save-back supports native OOXML formats only; legacy/ODF/CSV files open and export but cannot be written back.
  • dsh-resource://file/absolute/... addresses carry no session, so save-back is unavailable for them (viewing works).
  • First open of a document downloads its slice of the SDK (tens of MB); later opens are local. x2t conversion is a page-global worker — conversions are serialized by a lock.
  • Viewer chrome is our own toolbar row; the reload control at the top-right belongs to the built-in preview, and the external-update banner is the only additional reload entry this plugin adds.

Troubleshooting

SymptomCheck
First open very slow / loading engineexpected cold download; watch <cacheDir> grow
编辑器渲染超时viewer error detail shows console errors + iframe state
404 for dictionaries/en_US/*harmless (spellcheck dictionaries absent upstream), negative-cached
Save fails with conflictfile changed on disk since load — reload first
Save fails with method not allowedthe running Host predates the save route — restart DSH
Blank sidebar after a plugin updateclient bundle crash — the viewer reports [console-*] lines; check .requests.log

<cacheDir>/.requests.log records every SDK/read/save/diagnostic request with status and duration (2 MiB rotation) — the fastest way to see what the browser actually did.

License

This package is distributed under the GNU Affero General Public License v3.0 (see LICENSE); first-party sources carry SPDX-License-Identifier: AGPL-3.0-only headers.

  • The vendored editor engine vendor/onlyoffice-web-comp is upstream electroluxcode/onlyoffice-web-comp, also AGPL-3.0, modified per vendor/PATCHES.md; its license text is kept at vendor/onlyoffice-web-comp/LICENSE.
  • OnlyOffice SDK assets are not part of this package — they are fetched at runtime from the configured mirrors and cached locally. Their terms (AGPL-3.0 community code, commercial Developer Edition builds, an unclear x2t WASM build) are recorded in THIRD_PARTY_NOTICES.md; read that before publishing, self-hosting a mirror, or shipping commercially.
  • The vendored brotli decoder keeps its Apache-2.0 headers.

OnlyOffice is a trademark of Ascensio System SIA; this plugin is an independent integration.

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / pet / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Archive Manager@michengai/dsh-archive-manager归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。Remotedsh-remoteDeepSeek Harness 的远程工作助手:连接 SSH(密码/密钥/代理/键盘交互、多跳 ProxyJump),从 ~/.ssh/config 列出主机,选择远程工作区,使用 21 个 rw_* 工具对其进行操作,支持感知冲突的镜像同步、内嵌 PTY t