dsh-ppt 0.16.1 → 0.18.0
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/CHANGELOG.md +13 -0
- package/README.en.md +8 -0
- package/README.md +8 -0
- package/docs/WORKBENCH.md +29 -0
- package/lib/client.js +1583 -821
- package/lib/index.js +2 -0
- package/package.json +11 -7
package/lib/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { registerUpdates } from '@stardustlc/dsh-updates';
|
|
1
2
|
/**
|
|
2
3
|
* dsh-ppt —— 演示文稿技能 + 工具插件。
|
|
3
4
|
*
|
|
@@ -25,6 +26,7 @@ import { nativeVisualModel } from './visual-model.js';
|
|
|
25
26
|
export const inject = ['tools', 'skills'];
|
|
26
27
|
export const name = 'dsh-ppt';
|
|
27
28
|
export function apply(ctx, config = {}) {
|
|
29
|
+
registerUpdates(ctx, { name: "dsh-ppt" });
|
|
28
30
|
const resolved = resolvePptConfig(config);
|
|
29
31
|
const warn = (message) => { ctx.logger?.warn?.(message); };
|
|
30
32
|
const disposers = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ppt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "DSH 演示文稿插件:生成 HTML、可编辑 PPTX 和工程文件,支持数字溯源、现场推演与可选 AI 看图修复。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"LICENSE"
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "tsc -p tsconfig.json",
|
|
33
|
+
"build": "tsc -p tsconfig.json && node scripts/build-client.mjs && node scripts/build-updates.mjs",
|
|
34
34
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
35
35
|
"test": "pnpm run build && node --test \"test/*.test.mjs\"",
|
|
36
36
|
"test:core": "node --test \"test/*.test.mjs\"",
|
|
@@ -41,10 +41,12 @@
|
|
|
41
41
|
"patch": "./cordis.patch.yml"
|
|
42
42
|
},
|
|
43
43
|
"client": {
|
|
44
|
+
"platform": "web",
|
|
44
45
|
"inject": [
|
|
45
|
-
"@deepseek-ai/dsh-client-ui-settings"
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
47
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
48
|
+
"@deepseek-ai/dsh-client-ui-sidebar"
|
|
49
|
+
]
|
|
48
50
|
}
|
|
49
51
|
},
|
|
50
52
|
"keywords": [
|
|
@@ -61,7 +63,8 @@
|
|
|
61
63
|
],
|
|
62
64
|
"license": "MIT",
|
|
63
65
|
"engines": {
|
|
64
|
-
"node": "^22.19.0 || >=24.0.0"
|
|
66
|
+
"node": "^22.19.0 || >=24.0.0",
|
|
67
|
+
"dsh": ">=0.2.1-rc.3"
|
|
65
68
|
},
|
|
66
69
|
"devDependencies": {
|
|
67
70
|
"@types/node": "^24.0.0",
|
|
@@ -81,7 +84,8 @@
|
|
|
81
84
|
"@office-kit/pptx": "0.21.0",
|
|
82
85
|
"csv-parse": "6.1.0",
|
|
83
86
|
"fflate": "0.8.3",
|
|
84
|
-
"jsep": "1.4.0"
|
|
87
|
+
"jsep": "1.4.0",
|
|
88
|
+
"@stardustlc/dsh-updates": "0.1.0"
|
|
85
89
|
},
|
|
86
90
|
"peerDependencies": {
|
|
87
91
|
"@deepseek-ai/libreoffice-kit": "0.1.5"
|