dsh-office-tools 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/README.zh.md +18 -1
- package/dsh.plugin.json +2 -2
- package/package.json +15 -11
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Eight model-facing Office file tools for DeepSeek Harness: create, read, and update Word (`.docx`), Excel (`.xlsx`), and PowerPoint (`.pptx`) files inside the session workspace. Zero runtime dependencies — every package is generated and parsed by the plugin's own OOXML engine, and every byte crosses the official `ctx.fs` service.
|
|
8
8
|
|
|
9
|
+
**Scope:** this is a file generator, not an editor. It creates files and appends to them (`word_update` appends; there is no `ppt_update`), `word_create` and each `word_update` write at most one table, and PPT images are **linked, not embedded** because the workspace write channel is text-only.
|
|
10
|
+
|
|
9
11
|
## Tools
|
|
10
12
|
|
|
11
13
|
| Tool | Purpose |
|
|
@@ -27,6 +29,19 @@ One prompt, a quarterly-report trio:
|
|
|
27
29
|
|
|
28
30
|
<img src="docs/demo/session.svg" alt="One prompt generating report.docx, budget.xlsx, and deck.pptx" width="780">
|
|
29
31
|
|
|
32
|
+
## Positioning
|
|
33
|
+
|
|
34
|
+
A headless OOXML toolkit, not a visual office suite: about 160 KB unpacked, no runtime npm dependencies (everything is bundled), no local service, no browser, and no telemetry. Every write goes through the DSH filesystem service, so behavior is identical in a desktop session and in CI.
|
|
35
|
+
|
|
36
|
+
| | dsh-office-tools | Visual office suites (e.g. Univer-based plugins) |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| Output | Standard `.docx` / `.xlsx` / `.pptx` files | Native document model, exported to Office formats |
|
|
39
|
+
| Runtime | Node ≥ 20 only | Local gateway service + headless Chromium |
|
|
40
|
+
| Install size | ~160 KB unpacked | Hundreds of MB |
|
|
41
|
+
| Review | Tool results, markdown, wireframe sketches | Live canvas previews and approval cards |
|
|
42
|
+
|
|
43
|
+
Use a visual suite when you need to see and approve every edit; use this plugin when the agent should produce standard Office files in bulk without extra moving parts.
|
|
44
|
+
|
|
30
45
|
## Install
|
|
31
46
|
|
|
32
47
|
```bash
|
|
@@ -61,7 +76,9 @@ pnpm install && pnpm run check # typecheck + tests + build
|
|
|
61
76
|
pnpm run test:e2e # real-composition E2E (sandbox-policy + fs-sandbox + tools)
|
|
62
77
|
```
|
|
63
78
|
|
|
64
|
-
|
|
79
|
+
<!-- compatibility:start -->
|
|
80
|
+
Compatibility: `^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3`; exact tested releases live in `package.json` (`dsh.compatibility.dshReleases`). CI exercises 0.1.2-rc.1, 0.2.0-rc.1, and 0.2.1-rc.3. DSH 0.3.x is not declared supported.
|
|
81
|
+
<!-- compatibility:end -->
|
|
65
82
|
|
|
66
83
|
Generated packages are limited to 50 MiB. Up to 200 PPT slides (including an optional title slide) are accepted; linked images remain external. See [architecture and migration plan](docs/ARCHITECTURE.zh.md) for the binary-write seam needed for true embedding.
|
|
67
84
|
|
package/README.zh.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
为 DeepSeek Harness 提供 8 个模型可调用的 Office 文件工具:在会话工作区内创建、读取、更新 Word(`.docx`)、Excel(`.xlsx`)、PowerPoint(`.pptx`)。零运行时依赖 —— 文件由插件自带的 OOXML 引擎生成与解析,所有字节都经官方 `ctx.fs` 服务传输。
|
|
8
8
|
|
|
9
|
+
**边界:** 这是文件生成器,不是编辑器。它创建文件并追加内容(`word_update` 只追加;没有 `ppt_update`),`word_create` 与每次 `word_update` 最多写入一张表;PPT 图片是**链接式**而非内嵌,因为工作区写入通道只支持文本。
|
|
10
|
+
|
|
9
11
|
## 工具
|
|
10
12
|
|
|
11
13
|
| 工具 | 作用 |
|
|
@@ -27,6 +29,19 @@
|
|
|
27
29
|
|
|
28
30
|
<img src="docs/demo/session.svg" alt="一句话生成 report.docx、budget.xlsx、deck.pptx" width="780">
|
|
29
31
|
|
|
32
|
+
## 定位
|
|
33
|
+
|
|
34
|
+
这是无界面的 OOXML 工具箱,不是可视化办公套件:解包后约 160 KB,零运行时 npm 依赖(全部打包进产物),没有本地服务、不需要浏览器、不收集遥测。所有写入都经 DSH 文件系统服务,因此桌面会话与 CI 中的行为完全一致。
|
|
35
|
+
|
|
36
|
+
| | dsh-office-tools | 可视化办公套件(如基于 Univer 的插件) |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| 产物 | 标准 `.docx` / `.xlsx` / `.pptx` 文件 | 原生文档模型,再导出为 Office 格式 |
|
|
39
|
+
| 运行时 | 仅需 Node ≥ 20 | 本地网关服务 + 无头 Chromium |
|
|
40
|
+
| 安装体积 | 解包约 160 KB | 数百 MB |
|
|
41
|
+
| 审阅方式 | 工具结果、Markdown、线框图 | 实时画布预览与审批卡片 |
|
|
42
|
+
|
|
43
|
+
需要逐处查看、逐项批准修改时选可视化套件;需要 agent 批量产出标准 Office 文件、不想引入额外运行时,选本插件。
|
|
44
|
+
|
|
30
45
|
## 安装
|
|
31
46
|
|
|
32
47
|
```bash
|
|
@@ -61,7 +76,9 @@ pnpm install && pnpm run check # typecheck + tests + build
|
|
|
61
76
|
pnpm run test:e2e # 真实组合 E2E(sandbox-policy + fs-sandbox + tools)
|
|
62
77
|
```
|
|
63
78
|
|
|
64
|
-
|
|
79
|
+
<!-- compatibility:start -->
|
|
80
|
+
兼容性:`^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3`;逐版本的实测记录见 `package.json`(`dsh.compatibility.dshReleases`)。CI 验证 0.1.2-rc.1、0.2.0-rc.1、0.2.1-rc.3,尚未声明支持 DSH 0.3.x。
|
|
81
|
+
<!-- compatibility:end -->
|
|
65
82
|
|
|
66
83
|
生成文件最多 50 MiB;PPT 最多 200 页(包含可选封面)。图片仍为外部链接。分层架构与真实图片嵌入的迁移方案见 [架构分析](docs/ARCHITECTURE.zh.md)。
|
|
67
84
|
|
package/dsh.plugin.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-office-tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "Office tools for the model: create, read, and update Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) files inside the session workspace through the official DSH filesystem service.",
|
|
6
6
|
"engines": {
|
|
7
|
-
"dsh": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 ||
|
|
7
|
+
"dsh": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3"
|
|
8
8
|
},
|
|
9
9
|
"contributes": {
|
|
10
10
|
"tools": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-office-tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "DSH model-facing Office tools: create, read, and update Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) files inside the session workspace, entirely through the official DSH filesystem service.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"patch": "./cordis.patch.yml"
|
|
19
19
|
},
|
|
20
20
|
"compatibility": {
|
|
21
|
-
"dsh": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 ||
|
|
21
|
+
"dsh": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3",
|
|
22
22
|
"dshReleases": {
|
|
23
23
|
"0.1.1-rc.2": "compatible",
|
|
24
24
|
"0.1.2-alpha.4": "compatible",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"0.1.2-rc.1": "compatible",
|
|
27
27
|
"0.1.5-rc.1": "compatible",
|
|
28
28
|
"0.1.5-rc.2": "compatible",
|
|
29
|
-
"0.2.0-rc.1": "compatible"
|
|
29
|
+
"0.2.0-rc.1": "compatible",
|
|
30
|
+
"0.2.1-rc.3": "compatible"
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
},
|
|
@@ -45,15 +46,16 @@
|
|
|
45
46
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
46
47
|
"test": "vitest run",
|
|
47
48
|
"test:e2e": "node tests/real-composition.mjs",
|
|
48
|
-
"
|
|
49
|
+
"sync:metadata": "node scripts/sync-metadata.mjs",
|
|
50
|
+
"check": "node scripts/sync-metadata.mjs --check && pnpm run typecheck && pnpm run types && pnpm run test && pnpm run build"
|
|
49
51
|
},
|
|
50
52
|
"peerDependencies": {
|
|
51
53
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
52
|
-
"@deepseek-ai/dsh-agent": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 ||
|
|
53
|
-
"@deepseek-ai/dsh-fs": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 ||
|
|
54
|
-
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 ||
|
|
55
|
-
"@deepseek-ai/dsh-session": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 ||
|
|
56
|
-
"@deepseek-ai/dsh-tools": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 ||
|
|
54
|
+
"@deepseek-ai/dsh-agent": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3",
|
|
55
|
+
"@deepseek-ai/dsh-fs": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3",
|
|
56
|
+
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3",
|
|
57
|
+
"@deepseek-ai/dsh-session": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3",
|
|
58
|
+
"@deepseek-ai/dsh-tools": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3"
|
|
57
59
|
},
|
|
58
60
|
"peerDependenciesMeta": {
|
|
59
61
|
"@deepseek-ai/cordis": {
|
|
@@ -119,7 +121,8 @@
|
|
|
119
121
|
"tools"
|
|
120
122
|
],
|
|
121
123
|
"engines": {
|
|
122
|
-
"node": ">=20"
|
|
124
|
+
"node": ">=20",
|
|
125
|
+
"dsh": "^0.1.0-rc.6 || ^0.1.1-rc.0 || ^0.1.2-alpha.0 || ^0.1.5-alpha.0 || ^0.2.0-rc.1 || ^0.2.1-rc.3"
|
|
123
126
|
},
|
|
124
127
|
"publishConfig": {
|
|
125
128
|
"access": "public"
|
|
@@ -154,7 +157,8 @@
|
|
|
154
157
|
"0.1.2-rc.1",
|
|
155
158
|
"0.1.5-rc.1",
|
|
156
159
|
"0.1.5-rc.2",
|
|
157
|
-
"0.2.0-rc.1"
|
|
160
|
+
"0.2.0-rc.1",
|
|
161
|
+
"0.2.1-rc.3"
|
|
158
162
|
]
|
|
159
163
|
},
|
|
160
164
|
"capability": {
|