edsger 0.33.0 → 0.33.1
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.
|
@@ -165,6 +165,16 @@ export function createChatMcpServer() {
|
|
|
165
165
|
name: z.string().optional(),
|
|
166
166
|
description: z.string().optional(),
|
|
167
167
|
is_critical: z.boolean().optional(),
|
|
168
|
+
status: z
|
|
169
|
+
.enum([
|
|
170
|
+
'draft',
|
|
171
|
+
'pending_approval',
|
|
172
|
+
'in_progress',
|
|
173
|
+
'done',
|
|
174
|
+
'cancelled',
|
|
175
|
+
])
|
|
176
|
+
.optional()
|
|
177
|
+
.describe('Test case status. Cannot be set to approved — only humans can approve via the web UI.'),
|
|
168
178
|
})),
|
|
169
179
|
}, async (args) => {
|
|
170
180
|
const results = [];
|
|
@@ -190,11 +200,19 @@ export function createChatMcpServer() {
|
|
|
190
200
|
results.push({ action: 'delete', success: true });
|
|
191
201
|
}
|
|
192
202
|
else if (action.action === 'update' && action.test_case_id) {
|
|
193
|
-
|
|
203
|
+
const updateParams = {
|
|
194
204
|
test_case_id: action.test_case_id,
|
|
195
|
-
status: 'draft',
|
|
196
205
|
reason: args.reason,
|
|
197
|
-
}
|
|
206
|
+
};
|
|
207
|
+
if (action.name !== undefined)
|
|
208
|
+
updateParams.name = action.name;
|
|
209
|
+
if (action.description !== undefined)
|
|
210
|
+
updateParams.description = action.description;
|
|
211
|
+
if (action.is_critical !== undefined)
|
|
212
|
+
updateParams.is_critical = action.is_critical;
|
|
213
|
+
if (action.status !== undefined)
|
|
214
|
+
updateParams.status = action.status;
|
|
215
|
+
await callMcpEndpoint('test_cases/update', updateParams);
|
|
198
216
|
results.push({ action: 'update', success: true });
|
|
199
217
|
}
|
|
200
218
|
}
|