wolfpack-mcp 1.0.85 → 1.0.86
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/dist/client.js +2 -2
- package/dist/procedureTools.js +15 -4
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -901,8 +901,8 @@ export class WolfpackClient {
|
|
|
901
901
|
params.append('status', options.status);
|
|
902
902
|
return this.fetchAllPages('/cases', params);
|
|
903
903
|
}
|
|
904
|
-
async upgradeCase(caseId, teamSlug) {
|
|
905
|
-
return this.api.post(this.withTeamSlug(`/cases/${caseId}/upgrade`, teamSlug), {});
|
|
904
|
+
async upgradeCase(caseId, teamSlug, resumeNodeId) {
|
|
905
|
+
return this.api.post(this.withTeamSlug(`/cases/${caseId}/upgrade`, teamSlug), resumeNodeId ? { resumeNodeId } : {});
|
|
906
906
|
}
|
|
907
907
|
async upgradeProcedureCases(procedureId, teamSlug) {
|
|
908
908
|
return this.api.post(this.withTeamSlug(`/procedures/${procedureId}/upgrade-cases`, teamSlug), {});
|
package/dist/procedureTools.js
CHANGED
|
@@ -224,8 +224,10 @@ export const PROCEDURE_TOOLS = [
|
|
|
224
224
|
description: 'Move a running (or paused) case onto the latest version of its procedure. The case resumes ' +
|
|
225
225
|
'at the node it is waiting at, keeping its variables and earlier activity outputs; nothing ' +
|
|
226
226
|
'before that node runs again. Refused — with the reason — when the case is not running, is ' +
|
|
227
|
-
'already on the current version, or its current node id is not in the new version
|
|
228
|
-
'the
|
|
227
|
+
'already on the current version, or its current node id is not in the new version — then pass ' +
|
|
228
|
+
'resume_node_id to choose the node of the new version it should continue from (see ' +
|
|
229
|
+
'get_procedure for the node ids), or cancel the case and start the procedure again from the ' +
|
|
230
|
+
'work item.',
|
|
229
231
|
inputSchema: {
|
|
230
232
|
type: 'object',
|
|
231
233
|
properties: {
|
|
@@ -233,6 +235,11 @@ export const PROCEDURE_TOOLS = [
|
|
|
233
235
|
type: 'string',
|
|
234
236
|
description: 'Case UUID or refId number',
|
|
235
237
|
},
|
|
238
|
+
resume_node_id: {
|
|
239
|
+
type: 'string',
|
|
240
|
+
description: 'Node id of the new version to resume at. Defaults to the node the case is waiting at; ' +
|
|
241
|
+
'required when that node no longer exists in the new version.',
|
|
242
|
+
},
|
|
236
243
|
project_slug: {
|
|
237
244
|
type: 'string',
|
|
238
245
|
description: 'Project slug (required when using refId)',
|
|
@@ -398,9 +405,13 @@ export async function handleProcedureTool(name, args, client) {
|
|
|
398
405
|
}
|
|
399
406
|
case 'upgrade_case': {
|
|
400
407
|
const parsed = z
|
|
401
|
-
.object({
|
|
408
|
+
.object({
|
|
409
|
+
case_id: z.string(),
|
|
410
|
+
resume_node_id: z.string().optional(),
|
|
411
|
+
project_slug: z.string().optional(),
|
|
412
|
+
})
|
|
402
413
|
.parse(args);
|
|
403
|
-
const result = await client.upgradeCase(parsed.case_id, parsed.project_slug);
|
|
414
|
+
const result = await client.upgradeCase(parsed.case_id, parsed.project_slug, parsed.resume_node_id);
|
|
404
415
|
return {
|
|
405
416
|
content: [
|
|
406
417
|
{
|