dsh-office-tools 1.0.6 → 1.0.7
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 +14 -1
- package/README.zh.md +14 -1
- package/dsh.plugin.json +2 -2
- package/package.json +13 -10
package/README.md
CHANGED
|
@@ -27,6 +27,19 @@ One prompt, a quarterly-report trio:
|
|
|
27
27
|
|
|
28
28
|
<img src="docs/demo/session.svg" alt="One prompt generating report.docx, budget.xlsx, and deck.pptx" width="780">
|
|
29
29
|
|
|
30
|
+
## Positioning
|
|
31
|
+
|
|
32
|
+
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.
|
|
33
|
+
|
|
34
|
+
| | dsh-office-tools | Visual office suites (e.g. Univer-based plugins) |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| Output | Standard `.docx` / `.xlsx` / `.pptx` files | Native document model, exported to Office formats |
|
|
37
|
+
| Runtime | Node ≥ 20 only | Local gateway service + headless Chromium |
|
|
38
|
+
| Install size | ~160 KB unpacked | Hundreds of MB |
|
|
39
|
+
| Review | Tool results, markdown, wireframe sketches | Live canvas previews and approval cards |
|
|
40
|
+
|
|
41
|
+
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.
|
|
42
|
+
|
|
30
43
|
## Install
|
|
31
44
|
|
|
32
45
|
```bash
|
|
@@ -61,7 +74,7 @@ pnpm install && pnpm run check # typecheck + tests + build
|
|
|
61
74
|
pnpm run test:e2e # real-composition E2E (sandbox-policy + fs-sandbox + tools)
|
|
62
75
|
```
|
|
63
76
|
|
|
64
|
-
Compatibility: the declared DSH 0.1.x ranges and
|
|
77
|
+
Compatibility: the declared DSH 0.1.x ranges and `^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.
|
|
65
78
|
|
|
66
79
|
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
80
|
|
package/README.zh.md
CHANGED
|
@@ -27,6 +27,19 @@
|
|
|
27
27
|
|
|
28
28
|
<img src="docs/demo/session.svg" alt="一句话生成 report.docx、budget.xlsx、deck.pptx" width="780">
|
|
29
29
|
|
|
30
|
+
## 定位
|
|
31
|
+
|
|
32
|
+
这是无界面的 OOXML 工具箱,不是可视化办公套件:解包后约 160 KB,零运行时 npm 依赖(全部打包进产物),没有本地服务、不需要浏览器、不收集遥测。所有写入都经 DSH 文件系统服务,因此桌面会话与 CI 中的行为完全一致。
|
|
33
|
+
|
|
34
|
+
| | dsh-office-tools | 可视化办公套件(如基于 Univer 的插件) |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| 产物 | 标准 `.docx` / `.xlsx` / `.pptx` 文件 | 原生文档模型,再导出为 Office 格式 |
|
|
37
|
+
| 运行时 | 仅需 Node ≥ 20 | 本地网关服务 + 无头 Chromium |
|
|
38
|
+
| 安装体积 | 解包约 160 KB | 数百 MB |
|
|
39
|
+
| 审阅方式 | 工具结果、Markdown、线框图 | 实时画布预览与审批卡片 |
|
|
40
|
+
|
|
41
|
+
需要逐处查看、逐项批准修改时选可视化套件;需要 agent 批量产出标准 Office 文件、不想引入额外运行时,选本插件。
|
|
42
|
+
|
|
30
43
|
## 安装
|
|
31
44
|
|
|
32
45
|
```bash
|
|
@@ -61,7 +74,7 @@ pnpm install && pnpm run check # typecheck + tests + build
|
|
|
61
74
|
pnpm run test:e2e # 真实组合 E2E(sandbox-policy + fs-sandbox + tools)
|
|
62
75
|
```
|
|
63
76
|
|
|
64
|
-
兼容性:声明的 DSH 0.1.x 区间,以及
|
|
77
|
+
兼容性:声明的 DSH 0.1.x 区间,以及 `^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。
|
|
65
78
|
|
|
66
79
|
生成文件最多 50 MiB;PPT 最多 200 页(包含可选封面)。图片仍为外部链接。分层架构与真实图片嵌入的迁移方案见 [架构分析](docs/ARCHITECTURE.zh.md)。
|
|
67
80
|
|
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.7",
|
|
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.7",
|
|
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
|
},
|
|
@@ -49,11 +50,11 @@
|
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"@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 ||
|
|
53
|
+
"@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",
|
|
54
|
+
"@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",
|
|
55
|
+
"@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",
|
|
56
|
+
"@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",
|
|
57
|
+
"@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
58
|
},
|
|
58
59
|
"peerDependenciesMeta": {
|
|
59
60
|
"@deepseek-ai/cordis": {
|
|
@@ -119,7 +120,8 @@
|
|
|
119
120
|
"tools"
|
|
120
121
|
],
|
|
121
122
|
"engines": {
|
|
122
|
-
"node": ">=20"
|
|
123
|
+
"node": ">=20",
|
|
124
|
+
"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
125
|
},
|
|
124
126
|
"publishConfig": {
|
|
125
127
|
"access": "public"
|
|
@@ -154,7 +156,8 @@
|
|
|
154
156
|
"0.1.2-rc.1",
|
|
155
157
|
"0.1.5-rc.1",
|
|
156
158
|
"0.1.5-rc.2",
|
|
157
|
-
"0.2.0-rc.1"
|
|
159
|
+
"0.2.0-rc.1",
|
|
160
|
+
"0.2.1-rc.3"
|
|
158
161
|
]
|
|
159
162
|
},
|
|
160
163
|
"capability": {
|