wolfpack-mcp 1.0.16 → 1.0.17
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/index.js +20 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -223,6 +223,18 @@ const CreateIssueCommentSchema = z.object({
|
|
|
223
223
|
issue_id: z.string().describe('The issue UUID'),
|
|
224
224
|
content: z.string().describe('Comment content (markdown)'),
|
|
225
225
|
});
|
|
226
|
+
// Helper to detect if a work item description contains a plan
|
|
227
|
+
function hasPlan(description) {
|
|
228
|
+
if (!description)
|
|
229
|
+
return false;
|
|
230
|
+
// Check for markdown checklist items (plan indicators)
|
|
231
|
+
if (/- \[[ x]\]/.test(description))
|
|
232
|
+
return true;
|
|
233
|
+
// Check for --- separator with content after (agent-added section)
|
|
234
|
+
if (/\n---\n/.test(description))
|
|
235
|
+
return true;
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
226
238
|
class WolfpackMCPServer {
|
|
227
239
|
server;
|
|
228
240
|
client;
|
|
@@ -790,8 +802,15 @@ class WolfpackMCPServer {
|
|
|
790
802
|
const parsed = GetWorkItemSchema.parse(args);
|
|
791
803
|
const workItem = await this.client.getWorkItem(parsed.work_item_id, parsed.team_id || this.client.getTeamId() || undefined);
|
|
792
804
|
if (workItem) {
|
|
805
|
+
let text = JSON.stringify(workItem, null, 2);
|
|
806
|
+
// Add hint if no plan detected in description
|
|
807
|
+
if (!hasPlan(workItem.description)) {
|
|
808
|
+
text =
|
|
809
|
+
'REMINDER: This work item has no plan. Before starting work, use update_work_progress to add a plan below a "---" separator. Preserve the original description and append your plan with markdown checkboxes (- [ ] task).\n\n' +
|
|
810
|
+
text;
|
|
811
|
+
}
|
|
793
812
|
return {
|
|
794
|
-
content: [{ type: 'text', text
|
|
813
|
+
content: [{ type: 'text', text }],
|
|
795
814
|
};
|
|
796
815
|
}
|
|
797
816
|
return {
|