@rallycry/conveyor-agent 8.7.0 → 8.8.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.
|
@@ -1491,6 +1491,11 @@ var GetSuggestionsRequestSchema = z.object({
|
|
|
1491
1491
|
var ListManualTestsRequestSchema = z.object({
|
|
1492
1492
|
sessionId: z.string()
|
|
1493
1493
|
});
|
|
1494
|
+
var QueryManualTestsRequestSchema = z.object({
|
|
1495
|
+
sessionId: z.string(),
|
|
1496
|
+
cardStatuses: z.array(z.string()).optional(),
|
|
1497
|
+
testStatuses: z.array(z.enum(["open", "approved", "rejected"])).optional()
|
|
1498
|
+
});
|
|
1494
1499
|
var CreatePullRequestRequestSchema = CreatePRInputSchema.extend({ sessionId: z.string() });
|
|
1495
1500
|
var RequestFileUploadRequestSchema = z.object({
|
|
1496
1501
|
sessionId: z.string(),
|
|
@@ -2110,6 +2115,11 @@ var ListProjectManualTestsRequestSchema = z2.object({
|
|
|
2110
2115
|
projectId: z2.string(),
|
|
2111
2116
|
taskId: z2.string()
|
|
2112
2117
|
});
|
|
2118
|
+
var QueryProjectManualTestsRequestSchema = z2.object({
|
|
2119
|
+
projectId: z2.string(),
|
|
2120
|
+
cardStatuses: z2.array(z2.string()).optional(),
|
|
2121
|
+
testStatuses: z2.array(z2.enum(["open", "approved", "rejected"])).optional()
|
|
2122
|
+
});
|
|
2113
2123
|
var SetProjectManualTestsRequestSchema = z2.object({
|
|
2114
2124
|
projectId: z2.string(),
|
|
2115
2125
|
taskId: z2.string(),
|
|
@@ -4189,6 +4199,48 @@ function buildListManualTestsTool(connection) {
|
|
|
4189
4199
|
{ annotations: { readOnlyHint: true } }
|
|
4190
4200
|
);
|
|
4191
4201
|
}
|
|
4202
|
+
function renderManualTestGroups(groups) {
|
|
4203
|
+
const lines = [];
|
|
4204
|
+
for (const g of groups) {
|
|
4205
|
+
lines.push(`## ${g.title} [${g.status}] (${g.slug})`);
|
|
4206
|
+
for (const t of g.tests) {
|
|
4207
|
+
const mark = t.status === "approved" ? "\u2713" : t.status === "rejected" ? "\u2717" : "\u25CB";
|
|
4208
|
+
lines.push(` ${mark} ${t.title} \u2014 ${t.status}`);
|
|
4209
|
+
if (t.status === "rejected") {
|
|
4210
|
+
for (const f of t.failures ?? []) {
|
|
4211
|
+
lines.push(` \u26A0 ${f.userName ?? "Someone"}: ${f.reason ?? "(no message)"}`);
|
|
4212
|
+
}
|
|
4213
|
+
}
|
|
4214
|
+
}
|
|
4215
|
+
lines.push("");
|
|
4216
|
+
}
|
|
4217
|
+
return lines.join("\n").trimEnd();
|
|
4218
|
+
}
|
|
4219
|
+
function buildQueryManualTestsTool(connection) {
|
|
4220
|
+
return defineTool(
|
|
4221
|
+
"query_manual_tests",
|
|
4222
|
+
"Query manual tests across many tasks in this project, grouped by task. Filter by card status (ReviewDev, ReviewLive, Complete, ...) and/or test status (open | approved | rejected). Use to answer 'show all OPEN manual tests in ReviewDev' or 'show all REJECTED manual tests with the failing reason'. With no filters it defaults to the needs-attention view: open+rejected tests on ReviewDev/ReviewLive cards.",
|
|
4223
|
+
{
|
|
4224
|
+
cardStatuses: z8.array(z8.string()).optional().describe('Filter tasks by card status, e.g. ["ReviewDev", "ReviewLive"]'),
|
|
4225
|
+
testStatuses: z8.array(z8.enum(["open", "approved", "rejected"])).optional().describe("Filter tests by status: open | approved | rejected")
|
|
4226
|
+
},
|
|
4227
|
+
async ({ cardStatuses, testStatuses }) => {
|
|
4228
|
+
try {
|
|
4229
|
+
const groups = await connection.call("queryManualTests", {
|
|
4230
|
+
sessionId: connection.sessionId,
|
|
4231
|
+
cardStatuses,
|
|
4232
|
+
testStatuses
|
|
4233
|
+
});
|
|
4234
|
+
if (groups.length === 0) return textResult("No manual tests match those filters.");
|
|
4235
|
+
return textResult(renderManualTestGroups(groups));
|
|
4236
|
+
} catch (error) {
|
|
4237
|
+
const msg = error instanceof Error ? error.message : "Unknown error";
|
|
4238
|
+
return textResult(`Failed to query manual tests: ${msg}`);
|
|
4239
|
+
}
|
|
4240
|
+
},
|
|
4241
|
+
{ annotations: { readOnlyHint: true } }
|
|
4242
|
+
);
|
|
4243
|
+
}
|
|
4192
4244
|
function buildSetManualTestsTool(connection) {
|
|
4193
4245
|
return defineTool(
|
|
4194
4246
|
"set_manual_tests",
|
|
@@ -4308,6 +4360,7 @@ function buildCommonTools(connection, config) {
|
|
|
4308
4360
|
buildGetDependenciesTool(connection),
|
|
4309
4361
|
buildGetSuggestionsTool(connection),
|
|
4310
4362
|
buildListManualTestsTool(connection),
|
|
4363
|
+
buildQueryManualTestsTool(connection),
|
|
4311
4364
|
buildSetManualTestsTool(connection),
|
|
4312
4365
|
buildEditManualTestTool(connection),
|
|
4313
4366
|
buildRemoveManualTestTool(connection),
|
|
@@ -10692,4 +10745,4 @@ export {
|
|
|
10692
10745
|
loadConveyorConfig,
|
|
10693
10746
|
unshallowRepo
|
|
10694
10747
|
};
|
|
10695
|
-
//# sourceMappingURL=chunk-
|
|
10748
|
+
//# sourceMappingURL=chunk-KEBJAORX.js.map
|