@chorus-aidlc/chorus-openclaw-plugin 0.1.8 → 0.2.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/package.json +1 -1
- package/src/tools/dev-tools.ts +60 -0
- package/src/tools/pm-tools.ts +7 -7
package/package.json
CHANGED
package/src/tools/dev-tools.ts
CHANGED
|
@@ -82,4 +82,64 @@ export function registerDevTools(api: any, mcpClient: ChorusMcpClient) {
|
|
|
82
82
|
return JSON.stringify(result, null, 2);
|
|
83
83
|
},
|
|
84
84
|
});
|
|
85
|
+
|
|
86
|
+
api.registerTool({
|
|
87
|
+
name: "chorus_report_criteria_self_check",
|
|
88
|
+
description: "Report self-check results on acceptance criteria for a task you're working on. For required criteria, keep working until all pass. Only mark optional criteria as failed if out of scope.",
|
|
89
|
+
parameters: {
|
|
90
|
+
type: "object",
|
|
91
|
+
properties: {
|
|
92
|
+
taskUuid: { type: "string", description: "Task UUID" },
|
|
93
|
+
criteria: {
|
|
94
|
+
type: "array",
|
|
95
|
+
description: "Array of { uuid, devStatus: 'passed'|'failed', devEvidence?: string }",
|
|
96
|
+
items: {
|
|
97
|
+
type: "object",
|
|
98
|
+
properties: {
|
|
99
|
+
uuid: { type: "string", description: "AcceptanceCriterion UUID" },
|
|
100
|
+
devStatus: { type: "string", description: "Self-check result: passed | failed" },
|
|
101
|
+
devEvidence: { type: "string", description: "Optional evidence/notes" },
|
|
102
|
+
},
|
|
103
|
+
required: ["uuid", "devStatus"],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
required: ["taskUuid", "criteria"],
|
|
108
|
+
additionalProperties: false,
|
|
109
|
+
},
|
|
110
|
+
async execute(_id: string, { taskUuid, criteria }: { taskUuid: string; criteria: Array<{ uuid: string; devStatus: string; devEvidence?: string }> }) {
|
|
111
|
+
const result = await mcpClient.callTool("chorus_report_criteria_self_check", { taskUuid, criteria });
|
|
112
|
+
return JSON.stringify(result, null, 2);
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
api.registerTool({
|
|
117
|
+
name: "chorus_mark_acceptance_criteria",
|
|
118
|
+
description: "Mark acceptance criteria as passed or failed (admin verification). Blocked criteria prevent task from being verified (to_verify -> done).",
|
|
119
|
+
parameters: {
|
|
120
|
+
type: "object",
|
|
121
|
+
properties: {
|
|
122
|
+
taskUuid: { type: "string", description: "Task UUID" },
|
|
123
|
+
criteria: {
|
|
124
|
+
type: "array",
|
|
125
|
+
description: "Array of { uuid, status: 'passed'|'failed', evidence?: string }",
|
|
126
|
+
items: {
|
|
127
|
+
type: "object",
|
|
128
|
+
properties: {
|
|
129
|
+
uuid: { type: "string", description: "AcceptanceCriterion UUID" },
|
|
130
|
+
status: { type: "string", description: "Verification result: passed | failed" },
|
|
131
|
+
evidence: { type: "string", description: "Optional evidence/notes" },
|
|
132
|
+
},
|
|
133
|
+
required: ["uuid", "status"],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
required: ["taskUuid", "criteria"],
|
|
138
|
+
additionalProperties: false,
|
|
139
|
+
},
|
|
140
|
+
async execute(_id: string, { taskUuid, criteria }: { taskUuid: string; criteria: Array<{ uuid: string; status: string; evidence?: string }> }) {
|
|
141
|
+
const result = await mcpClient.callTool("chorus_mark_acceptance_criteria", { taskUuid, criteria });
|
|
142
|
+
return JSON.stringify(result, null, 2);
|
|
143
|
+
},
|
|
144
|
+
});
|
|
85
145
|
}
|
package/src/tools/pm-tools.ts
CHANGED
|
@@ -108,7 +108,7 @@ export function registerPmTools(api: any, mcpClient: ChorusMcpClient) {
|
|
|
108
108
|
inputUuids: { type: "array", description: "Array of input UUIDs", items: { type: "string" } },
|
|
109
109
|
description: { type: "string", description: "Proposal description" },
|
|
110
110
|
documentDrafts: { type: "array", description: "Array of { type, title, content }", items: { type: "object" } },
|
|
111
|
-
taskDrafts: { type: "array", description: "Array of { title, description?, priority?, storyPoints?,
|
|
111
|
+
taskDrafts: { type: "array", description: "Array of { title, description?, priority?, storyPoints?, acceptanceCriteriaItems?, dependsOnDraftUuids? }", items: { type: "object" } },
|
|
112
112
|
},
|
|
113
113
|
required: ["projectUuid", "title", "inputType", "inputUuids"],
|
|
114
114
|
additionalProperties: false,
|
|
@@ -158,20 +158,20 @@ export function registerPmTools(api: any, mcpClient: ChorusMcpClient) {
|
|
|
158
158
|
description: { type: "string", description: "Task description" },
|
|
159
159
|
priority: { type: "string", description: 'Priority: "low", "medium", or "high"' },
|
|
160
160
|
storyPoints: { type: "number", description: "Effort estimate in agent hours" },
|
|
161
|
-
|
|
161
|
+
acceptanceCriteriaItems: { type: "array", description: "Structured acceptance criteria: [{ description, required? }]", items: { type: "object", properties: { description: { type: "string" }, required: { type: "boolean" } }, required: ["description"] } },
|
|
162
162
|
dependsOnDraftUuids: { type: "array", description: "Dependent task draft UUIDs", items: { type: "string" } },
|
|
163
163
|
},
|
|
164
164
|
required: ["proposalUuid", "title"],
|
|
165
165
|
additionalProperties: false,
|
|
166
166
|
},
|
|
167
167
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
168
|
-
async execute(_id: string, { proposalUuid, title, description, priority, storyPoints,
|
|
168
|
+
async execute(_id: string, { proposalUuid, title, description, priority, storyPoints, acceptanceCriteriaItems, dependsOnDraftUuids }: any) {
|
|
169
169
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
170
170
|
const args: Record<string, any> = { proposalUuid, title };
|
|
171
171
|
if (description !== undefined) args.description = description;
|
|
172
172
|
if (priority !== undefined) args.priority = priority;
|
|
173
173
|
if (storyPoints !== undefined) args.storyPoints = storyPoints;
|
|
174
|
-
if (
|
|
174
|
+
if (acceptanceCriteriaItems !== undefined) args.acceptanceCriteriaItems = acceptanceCriteriaItems;
|
|
175
175
|
if (dependsOnDraftUuids !== undefined) args.dependsOnDraftUuids = dependsOnDraftUuids;
|
|
176
176
|
const result = await mcpClient.callTool("chorus_pm_add_task_draft", args);
|
|
177
177
|
return JSON.stringify(result, null, 2);
|
|
@@ -237,21 +237,21 @@ export function registerPmTools(api: any, mcpClient: ChorusMcpClient) {
|
|
|
237
237
|
description: { type: "string", description: "New task description" },
|
|
238
238
|
priority: { type: "string", description: 'Priority: "low", "medium", or "high"' },
|
|
239
239
|
storyPoints: { type: "number", description: "Effort estimate in agent hours" },
|
|
240
|
-
|
|
240
|
+
acceptanceCriteriaItems: { type: "array", description: "Structured acceptance criteria: [{ description, required? }]", items: { type: "object", properties: { description: { type: "string" }, required: { type: "boolean" } }, required: ["description"] } },
|
|
241
241
|
dependsOnDraftUuids: { type: "array", description: "Task draft UUIDs this task depends on (sets execution order)", items: { type: "string" } },
|
|
242
242
|
},
|
|
243
243
|
required: ["proposalUuid", "draftUuid"],
|
|
244
244
|
additionalProperties: false,
|
|
245
245
|
},
|
|
246
246
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
247
|
-
async execute(_id: string, { proposalUuid, draftUuid, title, description, priority, storyPoints,
|
|
247
|
+
async execute(_id: string, { proposalUuid, draftUuid, title, description, priority, storyPoints, acceptanceCriteriaItems, dependsOnDraftUuids }: any) {
|
|
248
248
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
249
249
|
const args: Record<string, any> = { proposalUuid, draftUuid };
|
|
250
250
|
if (title !== undefined) args.title = title;
|
|
251
251
|
if (description !== undefined) args.description = description;
|
|
252
252
|
if (priority !== undefined) args.priority = priority;
|
|
253
253
|
if (storyPoints !== undefined) args.storyPoints = storyPoints;
|
|
254
|
-
if (
|
|
254
|
+
if (acceptanceCriteriaItems !== undefined) args.acceptanceCriteriaItems = acceptanceCriteriaItems;
|
|
255
255
|
if (dependsOnDraftUuids !== undefined) args.dependsOnDraftUuids = dependsOnDraftUuids;
|
|
256
256
|
const result = await mcpClient.callTool("chorus_pm_update_task_draft", args);
|
|
257
257
|
return JSON.stringify(result, null, 2);
|