dsh-plugin-t-expert 0.4.48 → 0.4.53

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/README.md +2 -2
  3. package/THIRD-PARTY-NOTICES +3 -3
  4. package/data/roster.json +2220 -756
  5. package/data/source.json +2 -2
  6. package/lib/client.js +29 -3
  7. package/lib/fetch-assets.js +37 -2
  8. package/lib/index.js +37 -10
  9. package/lib/remote.js +13 -0
  10. package/package.json +2 -2
  11. package/vendor/third-party-licenses/README.md +1 -1
  12. package/data/experts/engineering/data-analytics-reporter/agents/data-analytics-reporter.md +0 -174
  13. package/data/experts/engineering/data-analytics-reporter/skills/analytics-reporting/SKILL.md +0 -213
  14. package/data/experts/engineering/data-analytics-reporter/skills/data-quality-assessment/SKILL.md +0 -167
  15. package/data/experts/engineering/data-analytics-reporter/skills/data-visualization/SKILL.md +0 -94
  16. package/data/experts/engineering/data-analytics-reporter/skills/kpi-design/SKILL.md +0 -134
  17. package/data/experts/engineering/data-analytics-reporter/skills/metric-diagnostics/SKILL.md +0 -143
  18. package/data/experts/finance/vietnam-finance-tax-expert/.codebuddy-plugin/plugin.json +0 -60
  19. package/data/experts/finance/vietnam-finance-tax-expert/.downloaded_at +0 -1
  20. package/data/experts/finance/vietnam-finance-tax-expert/.imported-from-workbuddy +0 -7
  21. package/data/experts/finance/vietnam-finance-tax-expert/README.md +0 -84
  22. package/data/experts/finance/vietnam-finance-tax-expert/persona.md +0 -323
  23. package/data/experts/hr/fbsir-beike-yi/agents/fbsir-beike-yi.md +0 -225
  24. package/data/experts/hr/fbsir-beike-yi/contracts/first-value-contract.json +0 -33
  25. package/data/experts/hr/fbsir-beike-yi/contracts/high-value-delivery.schema.json +0 -36
  26. package/data/experts/hr/fbsir-beike-yi/contracts/material-scope.schema.json +0 -46
  27. package/data/experts/hr/fbsir-beike-yi/contracts/option-decision-contract.json +0 -34
  28. package/data/experts/hr/fbsir-beike-yi/contracts/reuse-capsule.schema.json +0 -28
  29. package/data/experts/hr/fbsir-beike-yi/contracts/teaching-quality-review-contract.json +0 -38
  30. package/data/experts/hr/fbsir-beike-yi/contracts/writeback-contract.json +0 -34
  31. package/data/experts/hr/fbsir-beike-yi/examples/acceptance-cases.json +0 -104
  32. package/data/experts/hr/fbsir-beike-yi/examples/local-workspace-scenarios.json +0 -43
  33. package/data/experts/hr/fbsir-beike-yi/examples/output-structures.md +0 -111
  34. package/data/experts/hr/fbsir-beike-yi/references/evidence-and-source-ledger.md +0 -56
  35. package/data/experts/hr/fbsir-beike-yi/references/user-visible-copy.md +0 -60
  36. package/data/experts/hr/fbsir-beike-yi/references/workbuddy-local-mode-boundary.md +0 -41
  37. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/SKILL.md +0 -152
  38. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/bounded-revision.md +0 -30
  39. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/high-value-delivery.md +0 -33
  40. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/local-writeback.md +0 -35
  41. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/material-sensemaking.md +0 -43
  42. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/option-decision.md +0 -40
  43. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/reuse-capsule.md +0 -34
  44. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/references/teaching-quality-review.md +0 -28
  45. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/templates/high-value-delivery-card.md +0 -35
  46. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/templates/material-understanding-card.md +0 -47
  47. package/data/experts/hr/fbsir-beike-yi/skills/lesson-planning-core/templates/teaching-option-card.md +0 -38
  48. package/data/experts/marketing/kdocs-ppt-creator/agents/kdocs-ppt-creator.md +0 -42
  49. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/SKILL.md +0 -164
  50. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/auth.md +0 -32
  51. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/file-locating-guide.md +0 -34
  52. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/doc_master.md +0 -83
  53. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/doc_presentation.md +0 -85
  54. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/doc_shape.md +0 -118
  55. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/doc_slide.md +0 -94
  56. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/export.md +0 -178
  57. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/jsapi_shape.md +0 -131
  58. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/jsapi_slide.md +0 -126
  59. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/slide.md +0 -139
  60. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp/theme.md +0 -204
  61. package/data/experts/marketing/kdocs-ppt-creator/skills/ppt-gen/references/wpp.md +0 -164
  62. package/data/experts/specialized/job-companion-team/agents/job-companion-interview.md +0 -74
  63. package/data/experts/specialized/job-companion-team/agents/job-companion-negotiation.md +0 -82
  64. package/data/experts/specialized/job-companion-team/agents/job-companion-reflection.md +0 -87
  65. package/data/experts/specialized/job-companion-team/agents/job-companion-resume.md +0 -82
  66. package/data/experts/specialized/job-companion-team/agents/job-companion-team-lead.md +0 -162
  67. package/data/experts/specialized/job-companion-team/skills/interview-prep/SKILL.md +0 -73
  68. package/data/experts/specialized/job-companion-team/skills/mock-interview/SKILL.md +0 -65
  69. package/data/experts/specialized/job-companion-team/skills/onboarding-reflection/SKILL.md +0 -142
  70. package/data/experts/specialized/job-companion-team/skills/resume-polish/SKILL.md +0 -82
  71. package/data/experts/specialized/job-companion-team/skills/salary-negotiation/SKILL.md +0 -105
  72. package/data/experts/specialized/job-companion-team/skills/self-inventory/SKILL.md +0 -67
  73. package/data/experts/specialized/job-companion-team/skills/target-positioning/SKILL.md +0 -64
@@ -1,94 +0,0 @@
1
- # 幻灯片
2
-
3
- ## 1. wpp.read_slide
4
-
5
- #### 功能说明
6
-
7
- 可用 action:
8
- - query_count:幻灯片总数
9
- - query_detail:单张幻灯片详情
10
- - query_list:幻灯片列表
11
- - slides_notes_query:查询幻灯片备注
12
- - slides_tags_query:查询幻灯片标签
13
-
14
- **幂等性**:是
15
-
16
- > 推荐传 `body` 对象承载完整请求体;未传时从顶层参数组装
17
-
18
- #### 调用示例
19
-
20
- 示例调用:
21
-
22
- ```json
23
- {
24
- "file_id": "38b17a1f6216a9fe412583a400fb35dd",
25
- "action": "query_count"
26
- }
27
- ```
28
-
29
- #### 参数说明
30
-
31
- - `url` (string, 三选一必填: `url` / `link_id` / `file_id`): 文档 URL;与 link_id、file_id 三选一
32
- - `link_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 分享 id;与 url、file_id 三选一
33
- - `file_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 文件 id;与 url、link_id 三选一
34
- - `action` (string, 必填): 查询操作
35
- - `slide_id` (number, 可选): 幻灯片 ID,query_detail/notes/tags 时必填
36
- - `name` (string, 可选): 标签名,slides_tags_query 按名查询时传入
37
- - `body` (object, 可选): 完整请求体,优先使用
38
-
39
- #### 返回值说明
40
-
41
- ```json
42
- {"code": 0, "message": "成功", "data": {}}
43
-
44
- ```
45
-
46
-
47
- ---
48
-
49
- ## 2. wpp.write_slide
50
-
51
- #### 功能说明
52
-
53
- 可用 action:
54
- - slides_items_insert:插入空白幻灯片
55
- - slides_items_delete:删除幻灯片
56
- - update_move:移动幻灯片位置
57
- - update_duplicate:复制幻灯片
58
- - slides_tags_update:更新幻灯片标签,body.action 为 ADD 或 DELETE
59
-
60
- **幂等性**:否 — 写操作非幂等,重试前请确认当前文档状态
61
-
62
- > 推荐传 `body` 对象承载完整请求体;未传时从顶层参数组装
63
-
64
- #### 调用示例
65
-
66
- 示例调用:
67
-
68
- ```json
69
- {
70
- "file_id": "38b17a1f6216a9fe412583a400fb35dd",
71
- "action": "update_move"
72
- }
73
- ```
74
-
75
- #### 参数说明
76
-
77
- - `url` (string, 三选一必填: `url` / `link_id` / `file_id`): 文档 URL;与 link_id、file_id 三选一
78
- - `link_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 分享 id;与 url、file_id 三选一
79
- - `file_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 文件 id;与 url、link_id 三选一
80
- - `action` (string, 必填): 写操作
81
- - `slide_id` (number, 可选): 目标幻灯片 ID
82
- - `index` (number, 可选): 插入位置索引(slides_items_insert)
83
- - `layout` (number, 可选): 版式索引(slides_items_insert)
84
- - `to_position` (number, 可选): 目标位置(update_move)
85
- - `name` (string, 可选): 标签名(slides_tags_update)
86
- - `value` (string, 可选): 标签值(slides_tags_update ADD 时)
87
- - `body` (object, 可选): 完整请求体,优先使用
88
-
89
- #### 返回值说明
90
-
91
- ```json
92
- {"code": 0, "message": "成功", "data": {}}
93
-
94
- ```
@@ -1,178 +0,0 @@
1
- # 下载与导出
2
-
3
- ## 1. wpp.export_image
4
-
5
- #### 功能说明
6
-
7
- 将幻灯片导出为 **PNG** 或 **JPEG** 图片(同步接口,直接返回下载地址或 key)。
8
-
9
- **适用于**:缩略图、逐页图片导出。
10
-
11
- **幂等性**:否 — 导出为异步任务,用 task_id 轮询结果而非重复提交
12
-
13
- #### 调用示例
14
-
15
- 逐页、96 dpi、PNG、含水印:
16
-
17
- ```json
18
- {
19
- "link_id": "string",
20
- "format": "png",
21
- "dpi": 96,
22
- "water_mark": true,
23
- "from_page": 1,
24
- "to_page": 100,
25
- "combine_long_pic": false,
26
- "use_xva": true,
27
- "client_id": "",
28
- "password": "",
29
- "store_type": ""
30
- }
31
- ```
32
-
33
- #### 参数说明
34
-
35
- - `url` (string, 三选一必填: `url` / `link_id` / `file_id`): 文档 URL;与 link_id、file_id 三选一
36
- - `link_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 分享 id;与 url、file_id 三选一
37
- - `file_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 文件 id;与 url、link_id 三选一
38
- - `format` (string, 必填): 导出图片格式。可选值:`png` / `jpeg`
39
- - `dpi` (integer, 可选): 图片 DPI。可选值:`96` / `150` / `300`;默认值:`96`
40
- - `water_mark` (boolean, 可选): 是否含水印;默认值:`true`
41
- - `from_page` (integer, 可选): 起始页,从 0 开始;默认值:`1`
42
- - `to_page` (integer, 可选): 结束页;默认值:`9999`
43
- - `combine_long_pic` (boolean, 可选): 是否合并为长图;`false` 表示逐页
44
- - `use_xva` (boolean, 可选): 是否使用 XVA 渲染引擎
45
- - `client_id` (string, 可选): 客户端标识
46
- - `password` (string, 可选): 文档打开密码(若加密)
47
- - `store_type` (string, 可选): 存储类型,如 `ks3`、`cloud`
48
-
49
- #### 返回值说明
50
-
51
- ```json
52
- {
53
- "result": "ok",
54
- "url": "string",
55
- "key": "string",
56
- "file_id": "string",
57
- "without_attachment": false,
58
- "size": 0
59
- }
60
-
61
- ```
62
-
63
- | 字段 | 类型 | 说明 |
64
- |------|------|------|
65
- | `result` | string | 成功为 `ok` |
66
- | `url` | string | 图片下载地址(有时效) |
67
- | `key` | string | 导出文件标识 |
68
- | `file_id` | string | 关联文件 ID |
69
- | `size` | integer | 仅当请求要求返回大小时可能存在 |
70
-
71
- 失败时可能返回 `result` 为 `error` 且带 `data.code` / `data.message`,以实际响应为准。
72
-
73
-
74
- ---
75
-
76
- ## 2. wpp.export_pdf
77
-
78
- #### 功能说明
79
-
80
- 异步导出 PDF **步骤一**:**创建导出任务**(`POST .../async-export`),返回 `task_id`。本工具传入 `task_id` 时会调用查询接口进行轮询。
81
-
82
- **适用于**:需要可打印、可分享的 PDF 文件。
83
-
84
- **步骤二**:传入 `task_id` 查询导出进度,`status` 为 `running` 时需等待后重试,`finished` 时返回下载链接。
85
-
86
- **幂等性**:否 — 导出为异步任务,用 task_id 轮询结果而非重复提交
87
-
88
- #### 调用示例
89
-
90
- 步骤一:创建导出任务:
91
-
92
- ```json
93
- {
94
- "file_id": "string",
95
- "format": "pdf",
96
- "multipage": 1,
97
- "opt_frame": true,
98
- "from_page": 1,
99
- "to_page": 9999,
100
- "client_id": "",
101
- "store_type": "ks3",
102
- "password": "",
103
- "export_open_password": "",
104
- "export_modify_password": ""
105
- }
106
- ```
107
-
108
- 步骤二:查询导出进度:
109
-
110
- ```json
111
- {
112
- "task_id": "string",
113
- "task_type": "normal_export"
114
- }
115
- ```
116
-
117
- #### 参数说明
118
-
119
- - `url` (string, 三选一必填: `url` / `link_id` / `file_id`): 文档 URL;与 link_id、file_id 三选一
120
- - `link_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 分享 id;与 url、file_id 三选一
121
- - `file_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 文件 id;与 url、link_id 三选一
122
- - `format` (string, 必填): 固定 `pdf`
123
- - `task_id` (string, 可选): 任务 ID,步骤一返回,轮询时必填
124
- - `task_type` (string, 可选): 任务类型,固定 `normal_export`(轮询时必填)
125
- - `multipage` (integer, 可选): 是否多页合一类导出;`1` 表示是
126
- - `opt_frame` (boolean, 可选): 是否优化帧;默认值:`true`
127
- - `from_page` (integer, 可选): 起始页,从 0 开始;默认值:`1`
128
- - `to_page` (integer, 可选): 结束页;默认值:`9999`
129
- - `client_id` (string, 可选): 客户端标识
130
- - `store_type` (string, 可选): 存储类型,如 `ks3`、`cloud`
131
- - `password` (string, 可选): 源文件密码
132
- - `export_open_password` (string, 可选): 导出 PDF 打开密码
133
- - `export_modify_password` (string, 可选): 导出 PDF 修改密码
134
-
135
- #### 返回值说明
136
-
137
- ```json
138
- 步骤一返回:
139
-
140
- ```json
141
- {
142
- "task_id": "string",
143
- "task_type": "normal_export"
144
- }
145
- ```
146
-
147
- 步骤二返回(进行中):
148
-
149
- ```json
150
- {
151
- "status": "running",
152
- "data": null
153
- }
154
- ```
155
-
156
- 步骤二返回(已完成):
157
-
158
- ```json
159
- {
160
- "status": "finished",
161
- "data": {
162
- "file_id": "string",
163
- "key": "string",
164
- "result": "ok",
165
- "url": "string",
166
- "without_attachment": false
167
- }
168
- }
169
- ```
170
-
171
- ```
172
-
173
- | 字段 | 类型 | 说明 |
174
- |------|------|------|
175
- | `task_id` | string | 异步任务 ID,后续查询必填 |
176
- | `task_type` | string | 固定为 `normal_export`(导出 PDF 场景) |
177
- | `status` | string | `running` / `finished` |
178
- | `data.url` | string | PDF 下载地址(`finished` 时,有时效) |
@@ -1,131 +0,0 @@
1
- # 插入形状
2
-
3
- 所有形状插入命令共享相同的基础参数(`slideIndex`、`left`、`top`、`width`、`height`),区别在于形状类型不同。
4
-
5
- ## 通用参数说明
6
-
7
- | 参数 | 类型 | 必填 | 说明 |
8
- |------|------|------|------|
9
- | `slideIndex` | integer | 是 | 目标幻灯片序号,从 1 开始 |
10
- | `left` | number | 是 | 形状左上角 X 坐标(单位:磅) |
11
- | `top` | number | 是 | 形状左上角 Y 坐标(单位:磅) |
12
- | `width` | number | 是 | 形状宽度(单位:磅) |
13
- | `height` | number | 是 | 形状高度(单位:磅) |
14
-
15
- ---
16
-
17
- ## 插入矩形
18
-
19
- - **命令名**:`addRectangle`
20
- - **用途**:在指定幻灯片的指定位置插入一个矩形
21
-
22
- ### 调用示例
23
-
24
- ```json
25
- {
26
- "file_id": "file_xxx",
27
- "command": "addRectangle",
28
- "param": {
29
- "slideIndex": 1,
30
- "left": 100,
31
- "top": 100,
32
- "width": 200,
33
- "height": 200
34
- }
35
- }
36
- ```
37
-
38
- ---
39
-
40
- ## 插入圆形
41
-
42
- - **命令名**:`addOval`
43
- - **用途**:在指定幻灯片的指定位置插入一个椭圆
44
-
45
- ### 调用示例
46
-
47
- ```json
48
- {
49
- "file_id": "file_xxx",
50
- "command": "addOval",
51
- "param": {
52
- "slideIndex": 1,
53
- "left": 200,
54
- "top": 200,
55
- "width": 150,
56
- "height": 150
57
- }
58
- }
59
- ```
60
-
61
- ---
62
-
63
- ## 插入三角形
64
-
65
- - **命令名**:`addTriangle`
66
- - **用途**:在指定幻灯片的指定位置插入一个等腰三角形
67
-
68
- ### 调用示例
69
-
70
- ```json
71
- {
72
- "file_id": "file_xxx",
73
- "command": "addTriangle",
74
- "param": {
75
- "slideIndex": 1,
76
- "left": 50,
77
- "top": 50,
78
- "width": 200,
79
- "height": 180
80
- }
81
- }
82
- ```
83
-
84
- ---
85
-
86
- ## 插入圆角矩形
87
-
88
- - **命令名**:`addRoundedRectangle`
89
- - **用途**:在指定幻灯片的指定位置插入一个圆角矩形
90
-
91
- ### 调用示例
92
-
93
- ```json
94
- {
95
- "file_id": "file_xxx",
96
- "command": "addRoundedRectangle",
97
- "param": {
98
- "slideIndex": 1,
99
- "left": 100,
100
- "top": 300,
101
- "width": 250,
102
- "height": 100
103
- }
104
- }
105
- ```
106
-
107
- ---
108
-
109
- ## 通用形状类型枚举
110
-
111
- `AddShape` 通用签名:`Shapes.AddShape(shapeType, left, top, width, height)`
112
-
113
- 更换 `shapeType` 即可插入不同类型的形状:
114
-
115
- | 常量名 | 说明 |
116
- |--------|------|
117
- | `msoShapeRectangle` | 矩形 |
118
- | `msoShapeOval` | 椭圆/圆形 |
119
- | `msoShapeIsoscelesTriangle` | 等腰三角形 |
120
- | `msoShapeRoundedRectangle` | 圆角矩形 |
121
- | `msoShapeDiamond` | 菱形 |
122
- | `msoShapeParallelogram` | 平行四边形 |
123
- | `msoShapeTrapezoid` | 梯形 |
124
- | `msoShapeHexagon` | 六边形 |
125
- | `msoShapeOctagon` | 八边形 |
126
- | `msoShapeCross` | 十字形 |
127
- | `msoShapeStar5` | 五角星 |
128
- | `msoShapeRightArrow` | 右箭头 |
129
- | `msoShapeLeftArrow` | 左箭头 |
130
- | `msoShapeUpArrow` | 上箭头 |
131
- | `msoShapeDownArrow` | 下箭头 |
@@ -1,126 +0,0 @@
1
- # 幻灯片操作
2
-
3
- ## 添加指定版式幻灯片
4
-
5
- - **命令名**:`addLayoutSlide`
6
- - **用途**:在指定位置插入指定版式(文本/仅标题等)的幻灯片
7
-
8
- ### 参数
9
-
10
- | 参数 | 类型 | 必填 | 说明 |
11
- |------|------|------|------|
12
- | `slideIndex` | integer | 是 | 插入位置,从 1 开始(在第 N 张之前插入) |
13
- | `layout` | integer | 是 | 版式类型,枚举值见下表 |
14
-
15
- #### layout 版式枚举
16
-
17
- | 值 | 常量名 | 说明 |
18
- |----|--------|------|
19
- | 1 | `ppLayoutTitle` | 标题幻灯片 |
20
- | 2 | `ppLayoutText` | 标题和文本 |
21
- | 3 | `ppLayoutTwoColumnText` | 标题和两栏文本 |
22
- | 4 | `ppLayoutTable` | 标题和表格 |
23
- | 5 | `ppLayoutTextAndChart` | 标题、文本和图表 |
24
- | 6 | `ppLayoutChartAndText` | 标题、图表和文本 |
25
- | 7 | `ppLayoutOrgchart` | 标题和组织结构图 |
26
- | 8 | `ppLayoutChart` | 标题和图表 |
27
- | 9 | `ppLayoutTextAndClipart` | 标题、文本和剪贴画 |
28
- | 10 | `ppLayoutClipartAndText` | 标题、剪贴画和文本 |
29
- | 11 | `ppLayoutTitleOnly` | 仅标题 |
30
- | 12 | `ppLayoutBlank` | 空白 |
31
-
32
- ### 调用示例
33
-
34
- ```json
35
- {
36
- "file_id": "file_xxx",
37
- "command": "addLayoutSlide",
38
- "param": {
39
- "slideIndex": 2,
40
- "layout": 2
41
- }
42
- }
43
- ```
44
-
45
- ---
46
-
47
- ## 删除幻灯片
48
-
49
- - **命令名**:`deleteSlide`
50
- - **用途**:删除指定位置的幻灯片
51
-
52
- ### 参数
53
-
54
- | 参数 | 类型 | 必填 | 说明 |
55
- |------|------|------|------|
56
- | `slideIndex` | integer | 是 | 要删除的幻灯片序号,从 1 开始 |
57
-
58
- ### 调用示例
59
-
60
- ```json
61
- {
62
- "file_id": "file_xxx",
63
- "command": "deleteSlide",
64
- "param": {
65
- "slideIndex": 2
66
- }
67
- }
68
- ```
69
-
70
- ---
71
-
72
- ## 复制粘贴幻灯片
73
-
74
- - **命令名**:`copyPasteSlide`
75
- - **用途**:复制指定幻灯片并粘贴到指定位置(未指定则粘贴到末尾)
76
-
77
- ### 参数
78
-
79
- | 参数 | 类型 | 必填 | 说明 |
80
- |------|------|------|------|
81
- | `slideIndex` | integer | 是 | 要复制的幻灯片序号,从 1 开始 |
82
- | `pasteIndex` | integer | 否 | 粘贴目标位置,从 1 开始(在第 N 张之前粘贴)。不传则粘贴到末尾 |
83
-
84
- ### 调用示例
85
-
86
- ```json
87
- {
88
- "file_id": "file_xxx",
89
- "command": "copyPasteSlide",
90
- "param": {
91
- "slideIndex": 1,
92
- "pasteIndex": 3
93
- }
94
- }
95
- ```
96
-
97
- ---
98
-
99
- ## 获取幻灯片数量
100
-
101
- - **命令名**:`getSlidesCount`
102
- - **用途**:获取演示文稿中幻灯片的总数
103
-
104
- ### 参数
105
-
106
- 无需参数。
107
-
108
- ### 返回值
109
-
110
- `data` 为数字类型,表示幻灯片总数。
111
-
112
- ### 调用示例
113
-
114
- ```json
115
- {
116
- "file_id": "file_xxx",
117
- "command": "getSlidesCount",
118
- "param": {}
119
- }
120
- ```
121
-
122
- 返回示例:
123
-
124
- ```json
125
- {"ok": true, "message": "success", "data": 5}
126
- ```
@@ -1,139 +0,0 @@
1
- # 演示文稿与页面
2
-
3
- ## 1. wpp.insert_slide
4
-
5
- #### 功能说明
6
-
7
- 在**已有**在线演示文稿中插入一页空白幻灯片。
8
-
9
- **适用于**:已存在、可编辑的 WPP 演示(`file_id` 对应在线演示文档)。
10
-
11
- **幂等性**:否 — 重复调用会插入多页幻灯片,先确认是否已成功
12
-
13
- #### 调用示例
14
-
15
- 在第 1 页后插入空白页:
16
-
17
- ```json
18
- {
19
- "file_id": "string",
20
- "slide_idx": 1,
21
- "layout_id": 134217788
22
- }
23
- ```
24
-
25
- #### 参数说明
26
-
27
- - `url` (string, 三选一必填: `url` / `link_id` / `file_id`): 文档 URL;与 link_id、file_id 三选一
28
- - `link_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 分享 id;与 url、file_id 三选一
29
- - `file_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 文件 id;与 url、link_id 三选一
30
- - `slide_idx` (integer, 必填): 插入位置的幻灯片序号,**从 0 开始**
31
- - `layout_id` (integer, 可选): 指定模板版式 ID,从对应版式新建幻灯片(如结束页、标题页、内容页等)。版式 ID 与演示文稿模板中定义的版式一一对应,不同模板的可用 ID 不同
32
-
33
- #### 返回值说明
34
-
35
- ```json
36
- {
37
- "result": "ok",
38
- "detail": {
39
- "res": [
40
- {
41
- "cmdName": "slideInsert",
42
- "code": 0,
43
- "errName": "S_OK",
44
- "msg": "execute result",
45
- "token": "string"
46
- }
47
- ]
48
- }
49
- }
50
-
51
- ```
52
-
53
- | 字段 | 类型 | 说明 |
54
- |------|------|------|
55
- | `result` | string | 请求成功为 `ok` |
56
- | `detail.res[].cmdName` | string | 命令名,如 `slideInsert` |
57
- | `detail.res[].code` | integer | `0` 表示该条执行成功 |
58
- | `detail.res[].errName` | string | 如 `S_OK` |
59
- | `detail.res[].token` | string | 可选,会话/追踪用 |
60
-
61
-
62
- ---
63
-
64
- ## 2. wpp.import_slides
65
-
66
- #### 功能说明
67
-
68
- 从外部 PPTX 文件(通过 URL 获取)中选取指定幻灯片,导入到已有在线演示文稿的指定位置。
69
-
70
- **适用于**:将其他 PPTX 文件中的页面合并到已有在线演示文档中。
71
-
72
- **幂等性**:否 — 重复调用会再次导入同一组页面,重试前先确认目标文稿中是否已导入成功
73
-
74
- > object_url 域名需在服务端白名单内,否则返回 `validate_object_url` 错误
75
-
76
- #### 调用示例
77
-
78
- 导入源 PPTX 第 1 页到目标文稿第 1 页位置:
79
-
80
- ```json
81
- {
82
- "link_id": "cupf4t47i6Fx",
83
- "object_url": "https://example.com/slides/demo.pptx",
84
- "slide_idx": 0,
85
- "source_idxs": [
86
- 0
87
- ]
88
- }
89
- ```
90
-
91
- 导入源 PPTX 第 1、3、5 页到目标文稿第 2 页位置(原第 2 页及之后后移):
92
-
93
- ```json
94
- {
95
- "link_id": "cupf4t47i6Fx",
96
- "object_url": "https://example.com/slides/demo.pptx",
97
- "slide_idx": 1,
98
- "source_idxs": [
99
- 0,
100
- 2,
101
- 4
102
- ]
103
- }
104
- ```
105
-
106
- #### 参数说明
107
-
108
- - `url` (string, 三选一必填: `url` / `link_id` / `file_id`): 文档 URL;与 link_id、file_id 三选一
109
- - `link_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 分享 id;与 url、file_id 三选一
110
- - `file_id` (string, 三选一必填: `url` / `link_id` / `file_id`): 文件 id;与 url、link_id 三选一
111
- - `object_url` (string, 必填): 源 PPTX 文件的下载 URL
112
- - `slide_idx` (integer, 必填): 插入位置,目标文稿中的幻灯片索引,**从 0 开始**。导入的页面占据该索引位置,原位置及之后的页面顺序后移。用户说"插入到第 n 页"时传 n-1。超出范围时自动尾插
113
- - `source_idxs` (array, 必填): 要导入的源文件幻灯片索引数组,**从 0 开始**
114
-
115
- #### 返回值说明
116
-
117
- ```json
118
- {
119
- "result": "ok",
120
- "detail": {
121
- "res": [
122
- {
123
- "cmdName": "docTemplate",
124
- "code": 0,
125
- "errName": "S_OK",
126
- "msg": "execute result"
127
- }
128
- ]
129
- }
130
- }
131
-
132
- ```
133
-
134
- | 字段 | 类型 | 说明 |
135
- |------|------|------|
136
- | `result` | string | 请求成功为 `ok` |
137
- | `detail.res[].cmdName` | string | 命令名,如 `docTemplate` |
138
- | `detail.res[].code` | integer | `0` 表示该条执行成功 |
139
- | `detail.res[].errName` | string | 如 `S_OK` |