@ww_nero/skills 3.3.0 → 3.4.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/index.js +7 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -139,8 +139,8 @@ const listTools = () => ({
|
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
name: '
|
|
143
|
-
description: '制作PPT
|
|
142
|
+
name: 'ppt',
|
|
143
|
+
description: '制作PPT的全流程指导说明和注意事项',
|
|
144
144
|
inputSchema: {
|
|
145
145
|
type: 'object',
|
|
146
146
|
properties: {},
|
|
@@ -148,8 +148,8 @@ const listTools = () => ({
|
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
|
-
name: '
|
|
152
|
-
description: '
|
|
151
|
+
name: 'video',
|
|
152
|
+
description: '视频处理(如添加字幕)的指导说明和注意事项',
|
|
153
153
|
inputSchema: {
|
|
154
154
|
type: 'object',
|
|
155
155
|
properties: {},
|
|
@@ -159,7 +159,7 @@ const listTools = () => ({
|
|
|
159
159
|
]
|
|
160
160
|
});
|
|
161
161
|
|
|
162
|
-
const server = new Server({ name: 'skills', version: '3.
|
|
162
|
+
const server = new Server({ name: 'skills', version: '3.4.0' }, { capabilities: { tools: {} } });
|
|
163
163
|
|
|
164
164
|
server.setRequestHandler(ListToolsRequestSchema, async () => listTools());
|
|
165
165
|
|
|
@@ -176,11 +176,11 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
176
176
|
return { content: [{ type: 'text', text: result }] };
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
if (name === '
|
|
179
|
+
if (name === 'ppt') {
|
|
180
180
|
return { content: [{ type: 'text', text: PPT_PROMPT }] };
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
if (name === '
|
|
183
|
+
if (name === 'video') {
|
|
184
184
|
return { content: [{ type: 'text', text: VIDEO_PROMPT }] };
|
|
185
185
|
}
|
|
186
186
|
|