wolfpack-mcp 1.0.54 → 1.0.56
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/agentBuilderTools.js +22 -2
- package/dist/client.js +5 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -188,6 +188,14 @@ export const AGENT_BUILDER_TOOLS = [
|
|
|
188
188
|
agent_id: { type: 'string', description: 'Agent profile ID' },
|
|
189
189
|
prompt: { type: 'string', description: 'What the agent should do' },
|
|
190
190
|
project_slug: { type: 'string', description: 'Project to scope the session to (optional)' },
|
|
191
|
+
git_ref: {
|
|
192
|
+
type: 'string',
|
|
193
|
+
description: 'Git ref (branch, tag, SHA) to check out after cloning. Mutually exclusive with pr_number.',
|
|
194
|
+
},
|
|
195
|
+
pr_number: {
|
|
196
|
+
type: 'integer',
|
|
197
|
+
description: 'GitHub PR number to check out after cloning. Mutually exclusive with git_ref.',
|
|
198
|
+
},
|
|
191
199
|
...ORG_SLUG_PROP,
|
|
192
200
|
},
|
|
193
201
|
required: ['agent_id', 'prompt'],
|
|
@@ -296,6 +304,14 @@ export const AGENT_BUILDER_TOOLS = [
|
|
|
296
304
|
agent_id: { type: 'string', description: 'Agent profile ID' },
|
|
297
305
|
task_id: { type: 'string', description: 'Task ID to run' },
|
|
298
306
|
project_slug: { type: 'string', description: 'Project to scope the session to (optional)' },
|
|
307
|
+
git_ref: {
|
|
308
|
+
type: 'string',
|
|
309
|
+
description: 'Git ref (branch, tag, SHA) to check out after cloning. Mutually exclusive with pr_number.',
|
|
310
|
+
},
|
|
311
|
+
pr_number: {
|
|
312
|
+
type: 'integer',
|
|
313
|
+
description: 'GitHub PR number to check out after cloning. Mutually exclusive with git_ref.',
|
|
314
|
+
},
|
|
299
315
|
...ORG_SLUG_PROP,
|
|
300
316
|
},
|
|
301
317
|
required: ['agent_id', 'task_id'],
|
|
@@ -682,10 +698,12 @@ export async function handleAgentBuilderTool(name, args, client) {
|
|
|
682
698
|
agent_id: z.string(),
|
|
683
699
|
prompt: z.string(),
|
|
684
700
|
project_slug: z.string().optional(),
|
|
701
|
+
git_ref: z.string().optional(),
|
|
702
|
+
pr_number: z.number().int().positive().optional(),
|
|
685
703
|
org_slug: orgSlugField,
|
|
686
704
|
})
|
|
687
705
|
.parse(args);
|
|
688
|
-
const result = await client.runAgent(parsed.agent_id, parsed.prompt, parsed.project_slug, resolveOrg(parsed));
|
|
706
|
+
const result = await client.runAgent(parsed.agent_id, parsed.prompt, parsed.project_slug, resolveOrg(parsed), parsed.git_ref, parsed.pr_number);
|
|
689
707
|
return {
|
|
690
708
|
content: [
|
|
691
709
|
{
|
|
@@ -781,10 +799,12 @@ export async function handleAgentBuilderTool(name, args, client) {
|
|
|
781
799
|
agent_id: z.string(),
|
|
782
800
|
task_id: z.string(),
|
|
783
801
|
project_slug: z.string().optional(),
|
|
802
|
+
git_ref: z.string().optional(),
|
|
803
|
+
pr_number: z.number().int().positive().optional(),
|
|
784
804
|
org_slug: orgSlugField,
|
|
785
805
|
})
|
|
786
806
|
.parse(args);
|
|
787
|
-
const result = await client.runAgentTask(parsed.agent_id, parsed.task_id, parsed.project_slug, resolveOrg(parsed));
|
|
807
|
+
const result = await client.runAgentTask(parsed.agent_id, parsed.task_id, parsed.project_slug, resolveOrg(parsed), parsed.git_ref, parsed.pr_number);
|
|
788
808
|
return {
|
|
789
809
|
content: [
|
|
790
810
|
{
|
package/dist/client.js
CHANGED
|
@@ -651,10 +651,12 @@ export class WolfpackClient {
|
|
|
651
651
|
const q = params.toString();
|
|
652
652
|
return this.api.get(`/agents/${agentId}/sessions/${sessionId}/conversation${q ? `?${q}` : ''}`);
|
|
653
653
|
}
|
|
654
|
-
async runAgent(agentId, prompt, teamSlug, orgSlug) {
|
|
654
|
+
async runAgent(agentId, prompt, teamSlug, orgSlug, gitRef, prNumber) {
|
|
655
655
|
return this.api.post(this.withOrgSlug(`/agents/${agentId}/run`, orgSlug), {
|
|
656
656
|
prompt,
|
|
657
657
|
teamSlug,
|
|
658
|
+
gitRef,
|
|
659
|
+
prNumber,
|
|
658
660
|
});
|
|
659
661
|
}
|
|
660
662
|
async stopAgentSession(agentId, sessionId, orgSlug) {
|
|
@@ -683,8 +685,8 @@ export class WolfpackClient {
|
|
|
683
685
|
async updateAgentTask(agentId, taskId, body, orgSlug) {
|
|
684
686
|
return this.api.patch(this.withOrgSlug(`/agents/${agentId}/tasks/${taskId}`, orgSlug), body);
|
|
685
687
|
}
|
|
686
|
-
async runAgentTask(agentId, taskId, teamSlug, orgSlug) {
|
|
687
|
-
return this.api.post(this.withOrgSlug(`/agents/${agentId}/tasks/${taskId}/run`, orgSlug), { teamSlug });
|
|
688
|
+
async runAgentTask(agentId, taskId, teamSlug, orgSlug, gitRef, prNumber) {
|
|
689
|
+
return this.api.post(this.withOrgSlug(`/agents/${agentId}/tasks/${taskId}/run`, orgSlug), { teamSlug, gitRef, prNumber });
|
|
688
690
|
}
|
|
689
691
|
// ─── Agent Builder: Queue ──────────────────────────────────────────────────
|
|
690
692
|
async listAgentQueue(agentId, status, orgSlug) {
|
package/dist/index.js
CHANGED
|
@@ -575,7 +575,7 @@ const AddDiscussionCommentSchema = z.object({
|
|
|
575
575
|
.describe('Parent comment ID for threaded replies (omit for top-level)'),
|
|
576
576
|
});
|
|
577
577
|
// Fields containing user-defined data that should never be recursively processed.
|
|
578
|
-
const PASSTHROUGH_FIELDS = new Set(['formDefinition', 'formValues']);
|
|
578
|
+
const PASSTHROUGH_FIELDS = new Set(['formDefinition', 'formValues', 'formContent']);
|
|
579
579
|
// Strip UUID v4 fields from response objects so agents use refId/slug instead.
|
|
580
580
|
// Preserves Clerk user IDs (user_xxx format) and operational fields (categoryId, radarItemId).
|
|
581
581
|
function stripUuids(obj) {
|