dsh-office-tools 1.0.7 → 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 +5 -1
- package/README.zh.md +5 -1
- package/dsh.plugin.json +1 -1
- package/package.json +3 -2
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 |
|
|
@@ -74,7 +76,9 @@ pnpm install && pnpm run check # typecheck + tests + build
|
|
|
74
76
|
pnpm run test:e2e # real-composition E2E (sandbox-policy + fs-sandbox + tools)
|
|
75
77
|
```
|
|
76
78
|
|
|
77
|
-
|
|
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 -->
|
|
78
82
|
|
|
79
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.
|
|
80
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
|
| 工具 | 作用 |
|
|
@@ -74,7 +76,9 @@ pnpm install && pnpm run check # typecheck + tests + build
|
|
|
74
76
|
pnpm run test:e2e # 真实组合 E2E(sandbox-policy + fs-sandbox + tools)
|
|
75
77
|
```
|
|
76
78
|
|
|
77
|
-
|
|
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 -->
|
|
78
82
|
|
|
79
83
|
生成文件最多 50 MiB;PPT 最多 200 页(包含可选封面)。图片仍为外部链接。分层架构与真实图片嵌入的迁移方案见 [架构分析](docs/ARCHITECTURE.zh.md)。
|
|
80
84
|
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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": {
|
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",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
47
47
|
"test": "vitest run",
|
|
48
48
|
"test:e2e": "node tests/real-composition.mjs",
|
|
49
|
-
"
|
|
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"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
52
53
|
"@deepseek-ai/cordis": "^4.0.1",
|