@ww_nero/skills 2.2.12 → 2.2.13
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/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -136,9 +136,9 @@ const GUIDES = {
|
|
|
136
136
|
- 收集图片素材,优先使用用户提供的图片;如未提供,则使用图片生成工具生成合适的图片
|
|
137
137
|
- 将图片素材保存到\`images\`文件夹中,通过python脚本获取每个图片的宽高比例,然后对每张图片进行重命名,通过名称标识图片的内容及宽高比例,例如\`main_background_16_9.png\`表示该图片是主背景图,宽高比为16:9;对于用户提供的图片素材,可调用工具解读图片内容
|
|
138
138
|
|
|
139
|
-
2.
|
|
140
|
-
-
|
|
141
|
-
-
|
|
139
|
+
2. **通过SVG代码实现Slides的排版**:
|
|
140
|
+
- 如需插图,统一使用\`rect\`或\`circle\`元素进行占位(必须符合图片宽高比例),占位元素应设置合适的位置,可添加浅色填充或边框以便预览时识别
|
|
141
|
+
- 所有Slide的页面共同保存在一个HTML文件中。
|
|
142
142
|
|
|
143
143
|
3. **把SVG转成PPTX文件**:
|
|
144
144
|
- 参考snippet工具中提供的\`svg_to_pptx\`代码示例,编写临时的python脚本,把svg转化成可编辑的pptx文件,不要遗漏任何元素(例如线条、装饰等)
|
|
@@ -237,7 +237,7 @@ const listTools = () => ({
|
|
|
237
237
|
]
|
|
238
238
|
});
|
|
239
239
|
|
|
240
|
-
const server = new Server({ name: 'skills', version: '2.2.
|
|
240
|
+
const server = new Server({ name: 'skills', version: '2.2.13' }, { capabilities: { tools: {} } });
|
|
241
241
|
|
|
242
242
|
server.setRequestHandler(ListToolsRequestSchema, async () => listTools());
|
|
243
243
|
|