OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:RainL-621/dsh-office-bridge
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
中文简介:你和 AI 智能体在 DSH 侧边栏里编辑同一个 Office 文件,保存直接写回原文件——不上传、不转格式。完整中文文档见 README.zh-CN.md。
You and your AI agent edit the same Office file in the DSH sidebar — ONLYOFFICE does the heavy lifting, saves land back on the original file, no uploading files around.
.xlsx / .xls / .csv / .tsv / .docx / .pptxThe editing engine is not part of this plugin. This plugin is an MIT-licensed, zero-dependency integration layer and contains no ONLYOFFICE Document Server code. You must download and install ONLYOFFICE Document Server for Windows yourself (installer is about 873 MB), and read and accept its AGPLv3 or commercial license terms before installing.
Click an Office file in a DSH session and the right sidebar opens an ONLYOFFICE editor tab:
filename.ext.bak in the same directory.fileLimitMb size cap (default 100 MB);
the local exchange service binds to 127.0.0.1 only; HMAC token validation on
download URLs. See SECURITY.md.filename.ext.bak in the same directory. Only the most recent previous
version is kept — a second save overwrites it.backoff limit exceeded). Save/close first.http://localhost/healthcheck should return
{"error":false};http://127.0.0.1:80; if your port differs, see the
configuration table.profiles/desktop/node_modules/dsh-office-bridge/), add
"dsh-office-bridge" to dsh.profile.bundles in the profile
package.json, and restart DSH Desktop.When DS enables JWT, the plugin auto-detects the secret from DS's
C:\Program Files\ONLYOFFICE\DocumentServer\config\local.json
(zero-dependency HS256 implementation, cached on file mtime). If detection
fails, tokens are omitted. You can also set dsSecret manually.
| Key | Default | Description |
|---|---|---|
office-bridge.dsBaseUrl |
http://127.0.0.1:80 |
DS address (also the base of the write-back URL allow-list); change if port 80 is taken |
office-bridge.bridgePort |
17890 |
Local file-exchange port; auto +1 retry up to 10 times if taken |
office-bridge.dsSecret |
auto-detect | Manual JWT secret |
office-bridge.lang |
zh-CN |
Editor language; fallback chain zh-CN → zh → en |
office-bridge.defaultMode |
edit |
edit (editable) / view (read-only preview) |
office-bridge.fileLimitMb |
100 |
File size limit (oversize refuses download / write-back) |
GET /office-bridge/api/health — dsReachable, actual bridgePort, jwt
status, version.GET /office-bridge/api/config — effective configuration.ERR- prefix. If
the sidebar shows "cannot open editor", check that DS is running, then retry.The community also has dsh-sidebar-onlyoffice (a plugin for dsh web
deployments). This project targets DSH Desktop: files are on local disk,
edits write straight back to the original file, no upload/download step, plus
disk-change banners, .bak backups, and registry session restore.
If you run dsh as a web service, use that project instead.
LICENSE) and contains no source
code from ONLYOFFICE Document Server.This software is provided "as is" (MIT License, sections 3–6). Write-back overwrites the original file. Despite the .bak mechanism, keep your own backups and version control for important documents. Any data loss or damage caused by using this software is at the user's own risk.
Source is the artifact (direct ESM, zero build, zero runtime dependencies).
Issues and PRs are welcome. After changing host/index.js or
dist/client.js, run node --test test/smoke.test.mjs and keep the security
boundary documented in SECURITY.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: file、files。