@rallycry/conveyor-agent 8.5.1 → 8.6.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,15 @@ 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
|
+
});
|
|
1519
1528
|
var TrackSpendingRequestSchema = z.object({
|
|
1520
1529
|
sessionId: z.string(),
|
|
1521
1530
|
inputTokens: z.number().int().nonnegative(),
|
|
@@ -1837,6 +1846,9 @@ var PostProjectAgentMessageRequestSchema = z2.object({
|
|
|
1837
1846
|
content: z2.string().min(1),
|
|
1838
1847
|
chatId: z2.string().optional()
|
|
1839
1848
|
});
|
|
1849
|
+
var ListAccessibleProjectsRequestSchema = z2.object({
|
|
1850
|
+
pageSize: z2.number().int().positive().max(100).optional().default(100)
|
|
1851
|
+
});
|
|
1840
1852
|
var ListProjectTasksRequestSchema = z2.object({
|
|
1841
1853
|
projectId: z2.string(),
|
|
1842
1854
|
status: z2.string().optional(),
|
|
@@ -2095,6 +2107,19 @@ var SetProjectManualTestsRequestSchema = z2.object({
|
|
|
2095
2107
|
items: z2.array(z2.object({ title: z2.string().min(1) })).min(1),
|
|
2096
2108
|
requestingUserId: z2.string().optional()
|
|
2097
2109
|
});
|
|
2110
|
+
var EditProjectManualTestRequestSchema = z2.object({
|
|
2111
|
+
projectId: z2.string(),
|
|
2112
|
+
taskId: z2.string(),
|
|
2113
|
+
title: z2.string().min(1),
|
|
2114
|
+
newTitle: z2.string().min(1),
|
|
2115
|
+
requestingUserId: z2.string().optional()
|
|
2116
|
+
});
|
|
2117
|
+
var RemoveProjectManualTestRequestSchema = z2.object({
|
|
2118
|
+
projectId: z2.string(),
|
|
2119
|
+
taskId: z2.string(),
|
|
2120
|
+
title: z2.string().min(1),
|
|
2121
|
+
requestingUserId: z2.string().optional()
|
|
2122
|
+
});
|
|
2098
2123
|
var StartTaskAuditRequestSchema = z3.object({
|
|
2099
2124
|
projectId: z3.string(),
|
|
2100
2125
|
taskIds: z3.array(z3.string()).min(1)
|
|
@@ -4124,9 +4149,15 @@ function buildListManualTestsTool(connection) {
|
|
|
4124
4149
|
sessionId: connection.sessionId
|
|
4125
4150
|
});
|
|
4126
4151
|
if (items.length === 0) return textResult("No manual tests recorded for this task.");
|
|
4127
|
-
const lines = items.
|
|
4152
|
+
const lines = items.flatMap((item, i) => {
|
|
4128
4153
|
const checked = item.checked ? "[x]" : "[ ]";
|
|
4129
|
-
|
|
4154
|
+
const row = [`${i + 1}. ${checked} ${item.title}`];
|
|
4155
|
+
for (const f of item.failures ?? []) {
|
|
4156
|
+
const who = f.userName ?? "Someone";
|
|
4157
|
+
const reason = f.reason ?? "(no message)";
|
|
4158
|
+
row.push(` \u26A0 Failed (${who}): ${reason}`);
|
|
4159
|
+
}
|
|
4160
|
+
return row;
|
|
4130
4161
|
});
|
|
4131
4162
|
return textResult(lines.join("\n"));
|
|
4132
4163
|
} catch {
|
|
@@ -4159,6 +4190,50 @@ function buildSetManualTestsTool(connection) {
|
|
|
4159
4190
|
}
|
|
4160
4191
|
);
|
|
4161
4192
|
}
|
|
4193
|
+
function buildEditManualTestTool(connection) {
|
|
4194
|
+
return defineTool(
|
|
4195
|
+
"edit_manual_test",
|
|
4196
|
+
"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.",
|
|
4197
|
+
{
|
|
4198
|
+
title: z8.string().min(1).describe("The current title of the manual test to edit"),
|
|
4199
|
+
newTitle: z8.string().min(1).describe("The new title for the manual test")
|
|
4200
|
+
},
|
|
4201
|
+
async ({ title, newTitle }) => {
|
|
4202
|
+
try {
|
|
4203
|
+
await connection.call("editManualTest", {
|
|
4204
|
+
sessionId: connection.sessionId,
|
|
4205
|
+
title,
|
|
4206
|
+
newTitle
|
|
4207
|
+
});
|
|
4208
|
+
return textResult(`Updated manual test to "${newTitle}".`);
|
|
4209
|
+
} catch (error) {
|
|
4210
|
+
const msg = error instanceof Error ? error.message : "Unknown error";
|
|
4211
|
+
return textResult(`Failed to edit manual test: ${msg}`);
|
|
4212
|
+
}
|
|
4213
|
+
}
|
|
4214
|
+
);
|
|
4215
|
+
}
|
|
4216
|
+
function buildRemoveManualTestTool(connection) {
|
|
4217
|
+
return defineTool(
|
|
4218
|
+
"remove_manual_test",
|
|
4219
|
+
"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.",
|
|
4220
|
+
{
|
|
4221
|
+
title: z8.string().min(1).describe("The title of the manual test to remove")
|
|
4222
|
+
},
|
|
4223
|
+
async ({ title }) => {
|
|
4224
|
+
try {
|
|
4225
|
+
await connection.call("removeManualTest", {
|
|
4226
|
+
sessionId: connection.sessionId,
|
|
4227
|
+
title
|
|
4228
|
+
});
|
|
4229
|
+
return textResult(`Removed manual test "${title}".`);
|
|
4230
|
+
} catch (error) {
|
|
4231
|
+
const msg = error instanceof Error ? error.message : "Unknown error";
|
|
4232
|
+
return textResult(`Failed to remove manual test: ${msg}`);
|
|
4233
|
+
}
|
|
4234
|
+
}
|
|
4235
|
+
);
|
|
4236
|
+
}
|
|
4162
4237
|
|
|
4163
4238
|
// src/tools/common-tools.ts
|
|
4164
4239
|
function buildCommonTools(connection, config) {
|
|
@@ -4168,6 +4243,8 @@ function buildCommonTools(connection, config) {
|
|
|
4168
4243
|
buildGetSuggestionsTool(connection),
|
|
4169
4244
|
buildListManualTestsTool(connection),
|
|
4170
4245
|
buildSetManualTestsTool(connection),
|
|
4246
|
+
buildEditManualTestTool(connection),
|
|
4247
|
+
buildRemoveManualTestTool(connection),
|
|
4171
4248
|
...buildMutationTools(connection, config),
|
|
4172
4249
|
buildUploadAttachmentTool(connection, config)
|
|
4173
4250
|
];
|
|
@@ -10547,4 +10624,4 @@ export {
|
|
|
10547
10624
|
loadConveyorConfig,
|
|
10548
10625
|
unshallowRepo
|
|
10549
10626
|
};
|
|
10550
|
-
//# sourceMappingURL=chunk-
|
|
10627
|
+
//# sourceMappingURL=chunk-HMSNJRVO.js.map
|