@rallycry/conveyor-agent 8.5.1 → 8.7.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.
|
@@ -1516,6 +1516,24 @@ var SetManualTestsRequestSchema = z.object({
|
|
|
1516
1516
|
sessionId: z.string(),
|
|
1517
1517
|
items: z.array(z.object({ title: z.string().min(1) })).min(1)
|
|
1518
1518
|
});
|
|
1519
|
+
var EditManualTestRequestSchema = z.object({
|
|
1520
|
+
sessionId: z.string(),
|
|
1521
|
+
title: z.string().min(1),
|
|
1522
|
+
newTitle: z.string().min(1)
|
|
1523
|
+
});
|
|
1524
|
+
var RemoveManualTestRequestSchema = z.object({
|
|
1525
|
+
sessionId: z.string(),
|
|
1526
|
+
title: z.string().min(1)
|
|
1527
|
+
});
|
|
1528
|
+
var ApproveManualTestRequestSchema = z.object({
|
|
1529
|
+
sessionId: z.string(),
|
|
1530
|
+
title: z.string().min(1)
|
|
1531
|
+
});
|
|
1532
|
+
var RejectManualTestRequestSchema = z.object({
|
|
1533
|
+
sessionId: z.string(),
|
|
1534
|
+
title: z.string().min(1),
|
|
1535
|
+
reason: z.string().min(1).max(2e3)
|
|
1536
|
+
});
|
|
1519
1537
|
var TrackSpendingRequestSchema = z.object({
|
|
1520
1538
|
sessionId: z.string(),
|
|
1521
1539
|
inputTokens: z.number().int().nonnegative(),
|
|
@@ -1837,6 +1855,9 @@ var PostProjectAgentMessageRequestSchema = z2.object({
|
|
|
1837
1855
|
content: z2.string().min(1),
|
|
1838
1856
|
chatId: z2.string().optional()
|
|
1839
1857
|
});
|
|
1858
|
+
var ListAccessibleProjectsRequestSchema = z2.object({
|
|
1859
|
+
pageSize: z2.number().int().positive().max(100).optional().default(100)
|
|
1860
|
+
});
|
|
1840
1861
|
var ListProjectTasksRequestSchema = z2.object({
|
|
1841
1862
|
projectId: z2.string(),
|
|
1842
1863
|
status: z2.string().optional(),
|
|
@@ -2095,6 +2116,32 @@ var SetProjectManualTestsRequestSchema = z2.object({
|
|
|
2095
2116
|
items: z2.array(z2.object({ title: z2.string().min(1) })).min(1),
|
|
2096
2117
|
requestingUserId: z2.string().optional()
|
|
2097
2118
|
});
|
|
2119
|
+
var EditProjectManualTestRequestSchema = z2.object({
|
|
2120
|
+
projectId: z2.string(),
|
|
2121
|
+
taskId: z2.string(),
|
|
2122
|
+
title: z2.string().min(1),
|
|
2123
|
+
newTitle: z2.string().min(1),
|
|
2124
|
+
requestingUserId: z2.string().optional()
|
|
2125
|
+
});
|
|
2126
|
+
var RemoveProjectManualTestRequestSchema = z2.object({
|
|
2127
|
+
projectId: z2.string(),
|
|
2128
|
+
taskId: z2.string(),
|
|
2129
|
+
title: z2.string().min(1),
|
|
2130
|
+
requestingUserId: z2.string().optional()
|
|
2131
|
+
});
|
|
2132
|
+
var ApproveProjectManualTestRequestSchema = z2.object({
|
|
2133
|
+
projectId: z2.string(),
|
|
2134
|
+
taskId: z2.string(),
|
|
2135
|
+
title: z2.string().min(1),
|
|
2136
|
+
requestingUserId: z2.string().optional()
|
|
2137
|
+
});
|
|
2138
|
+
var RejectProjectManualTestRequestSchema = z2.object({
|
|
2139
|
+
projectId: z2.string(),
|
|
2140
|
+
taskId: z2.string(),
|
|
2141
|
+
title: z2.string().min(1),
|
|
2142
|
+
reason: z2.string().min(1).max(2e3),
|
|
2143
|
+
requestingUserId: z2.string().optional()
|
|
2144
|
+
});
|
|
2098
2145
|
var StartTaskAuditRequestSchema = z3.object({
|
|
2099
2146
|
projectId: z3.string(),
|
|
2100
2147
|
taskIds: z3.array(z3.string()).min(1)
|
|
@@ -4124,9 +4171,15 @@ function buildListManualTestsTool(connection) {
|
|
|
4124
4171
|
sessionId: connection.sessionId
|
|
4125
4172
|
});
|
|
4126
4173
|
if (items.length === 0) return textResult("No manual tests recorded for this task.");
|
|
4127
|
-
const lines = items.
|
|
4174
|
+
const lines = items.flatMap((item, i) => {
|
|
4128
4175
|
const checked = item.checked ? "[x]" : "[ ]";
|
|
4129
|
-
|
|
4176
|
+
const row = [`${i + 1}. ${checked} ${item.title}`];
|
|
4177
|
+
for (const f of item.failures ?? []) {
|
|
4178
|
+
const who = f.userName ?? "Someone";
|
|
4179
|
+
const reason = f.reason ?? "(no message)";
|
|
4180
|
+
row.push(` \u26A0 Failed (${who}): ${reason}`);
|
|
4181
|
+
}
|
|
4182
|
+
return row;
|
|
4130
4183
|
});
|
|
4131
4184
|
return textResult(lines.join("\n"));
|
|
4132
4185
|
} catch {
|
|
@@ -4159,6 +4212,94 @@ function buildSetManualTestsTool(connection) {
|
|
|
4159
4212
|
}
|
|
4160
4213
|
);
|
|
4161
4214
|
}
|
|
4215
|
+
function buildEditManualTestTool(connection) {
|
|
4216
|
+
return defineTool(
|
|
4217
|
+
"edit_manual_test",
|
|
4218
|
+
"Rename an existing manual test step. Identify the test by its current title (case-insensitive); pass the new title to replace it. Use to correct or refine a recorded manual verification step.",
|
|
4219
|
+
{
|
|
4220
|
+
title: z8.string().min(1).describe("The current title of the manual test to edit"),
|
|
4221
|
+
newTitle: z8.string().min(1).describe("The new title for the manual test")
|
|
4222
|
+
},
|
|
4223
|
+
async ({ title, newTitle }) => {
|
|
4224
|
+
try {
|
|
4225
|
+
await connection.call("editManualTest", {
|
|
4226
|
+
sessionId: connection.sessionId,
|
|
4227
|
+
title,
|
|
4228
|
+
newTitle
|
|
4229
|
+
});
|
|
4230
|
+
return textResult(`Updated manual test to "${newTitle}".`);
|
|
4231
|
+
} catch (error) {
|
|
4232
|
+
const msg = error instanceof Error ? error.message : "Unknown error";
|
|
4233
|
+
return textResult(`Failed to edit manual test: ${msg}`);
|
|
4234
|
+
}
|
|
4235
|
+
}
|
|
4236
|
+
);
|
|
4237
|
+
}
|
|
4238
|
+
function buildRemoveManualTestTool(connection) {
|
|
4239
|
+
return defineTool(
|
|
4240
|
+
"remove_manual_test",
|
|
4241
|
+
"Remove an existing manual test step from the task checklist. Identify the test by its title (case-insensitive). Use to delete a stale or incorrect manual verification step.",
|
|
4242
|
+
{
|
|
4243
|
+
title: z8.string().min(1).describe("The title of the manual test to remove")
|
|
4244
|
+
},
|
|
4245
|
+
async ({ title }) => {
|
|
4246
|
+
try {
|
|
4247
|
+
await connection.call("removeManualTest", {
|
|
4248
|
+
sessionId: connection.sessionId,
|
|
4249
|
+
title
|
|
4250
|
+
});
|
|
4251
|
+
return textResult(`Removed manual test "${title}".`);
|
|
4252
|
+
} catch (error) {
|
|
4253
|
+
const msg = error instanceof Error ? error.message : "Unknown error";
|
|
4254
|
+
return textResult(`Failed to remove manual test: ${msg}`);
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4257
|
+
);
|
|
4258
|
+
}
|
|
4259
|
+
function buildApproveManualTestTool(connection) {
|
|
4260
|
+
return defineTool(
|
|
4261
|
+
"approve_manual_test",
|
|
4262
|
+
"Sign off on (approve) a manual test step on behalf of your authenticated user. Identify the test by its title (case-insensitive). Use after you have verified the step passes.",
|
|
4263
|
+
{
|
|
4264
|
+
title: z8.string().min(1).describe("The title of the manual test to approve")
|
|
4265
|
+
},
|
|
4266
|
+
async ({ title }) => {
|
|
4267
|
+
try {
|
|
4268
|
+
await connection.call("approveManualTest", {
|
|
4269
|
+
sessionId: connection.sessionId,
|
|
4270
|
+
title
|
|
4271
|
+
});
|
|
4272
|
+
return textResult(`Approved manual test "${title}".`);
|
|
4273
|
+
} catch (error) {
|
|
4274
|
+
const msg = error instanceof Error ? error.message : "Unknown error";
|
|
4275
|
+
return textResult(`Failed to approve manual test: ${msg}`);
|
|
4276
|
+
}
|
|
4277
|
+
}
|
|
4278
|
+
);
|
|
4279
|
+
}
|
|
4280
|
+
function buildRejectManualTestTool(connection) {
|
|
4281
|
+
return defineTool(
|
|
4282
|
+
"reject_manual_test",
|
|
4283
|
+
"Flag an issue with (reject) a manual test step on behalf of your authenticated user, recording the reason. Identify the test by its title (case-insensitive). Use when the step fails verification.",
|
|
4284
|
+
{
|
|
4285
|
+
title: z8.string().min(1).describe("The title of the manual test to reject"),
|
|
4286
|
+
reason: z8.string().min(1).max(2e3).describe("Why the test failed \u2014 what went wrong, shown to the team")
|
|
4287
|
+
},
|
|
4288
|
+
async ({ title, reason }) => {
|
|
4289
|
+
try {
|
|
4290
|
+
await connection.call("rejectManualTest", {
|
|
4291
|
+
sessionId: connection.sessionId,
|
|
4292
|
+
title,
|
|
4293
|
+
reason
|
|
4294
|
+
});
|
|
4295
|
+
return textResult(`Flagged an issue with manual test "${title}": ${reason}`);
|
|
4296
|
+
} catch (error) {
|
|
4297
|
+
const msg = error instanceof Error ? error.message : "Unknown error";
|
|
4298
|
+
return textResult(`Failed to reject manual test: ${msg}`);
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
);
|
|
4302
|
+
}
|
|
4162
4303
|
|
|
4163
4304
|
// src/tools/common-tools.ts
|
|
4164
4305
|
function buildCommonTools(connection, config) {
|
|
@@ -4168,6 +4309,10 @@ function buildCommonTools(connection, config) {
|
|
|
4168
4309
|
buildGetSuggestionsTool(connection),
|
|
4169
4310
|
buildListManualTestsTool(connection),
|
|
4170
4311
|
buildSetManualTestsTool(connection),
|
|
4312
|
+
buildEditManualTestTool(connection),
|
|
4313
|
+
buildRemoveManualTestTool(connection),
|
|
4314
|
+
buildApproveManualTestTool(connection),
|
|
4315
|
+
buildRejectManualTestTool(connection),
|
|
4171
4316
|
...buildMutationTools(connection, config),
|
|
4172
4317
|
buildUploadAttachmentTool(connection, config)
|
|
4173
4318
|
];
|
|
@@ -10547,4 +10692,4 @@ export {
|
|
|
10547
10692
|
loadConveyorConfig,
|
|
10548
10693
|
unshallowRepo
|
|
10549
10694
|
};
|
|
10550
|
-
//# sourceMappingURL=chunk-
|
|
10695
|
+
//# sourceMappingURL=chunk-YIK2GHKX.js.map
|