@rallycry/conveyor-agent 8.6.0 → 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.
@@ -1525,6 +1525,15 @@ var RemoveManualTestRequestSchema = z.object({
1525
1525
  sessionId: z.string(),
1526
1526
  title: z.string().min(1)
1527
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
+ });
1528
1537
  var TrackSpendingRequestSchema = z.object({
1529
1538
  sessionId: z.string(),
1530
1539
  inputTokens: z.number().int().nonnegative(),
@@ -2120,6 +2129,19 @@ var RemoveProjectManualTestRequestSchema = z2.object({
2120
2129
  title: z2.string().min(1),
2121
2130
  requestingUserId: z2.string().optional()
2122
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
+ });
2123
2145
  var StartTaskAuditRequestSchema = z3.object({
2124
2146
  projectId: z3.string(),
2125
2147
  taskIds: z3.array(z3.string()).min(1)
@@ -4234,6 +4256,50 @@ function buildRemoveManualTestTool(connection) {
4234
4256
  }
4235
4257
  );
4236
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
+ }
4237
4303
 
4238
4304
  // src/tools/common-tools.ts
4239
4305
  function buildCommonTools(connection, config) {
@@ -4245,6 +4311,8 @@ function buildCommonTools(connection, config) {
4245
4311
  buildSetManualTestsTool(connection),
4246
4312
  buildEditManualTestTool(connection),
4247
4313
  buildRemoveManualTestTool(connection),
4314
+ buildApproveManualTestTool(connection),
4315
+ buildRejectManualTestTool(connection),
4248
4316
  ...buildMutationTools(connection, config),
4249
4317
  buildUploadAttachmentTool(connection, config)
4250
4318
  ];
@@ -10624,4 +10692,4 @@ export {
10624
10692
  loadConveyorConfig,
10625
10693
  unshallowRepo
10626
10694
  };
10627
- //# sourceMappingURL=chunk-HMSNJRVO.js.map
10695
+ //# sourceMappingURL=chunk-YIK2GHKX.js.map