@rudderhq/cli 0.2.0-canary.3 → 0.2.0-canary.5

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/dist/index.js CHANGED
@@ -1321,7 +1321,7 @@ var init_agent = __esm({
1321
1321
  name: z11.string().min(1).default("default")
1322
1322
  });
1323
1323
  wakeAgentSchema = z11.object({
1324
- source: z11.enum(["timer", "assignment", "on_demand", "automation"]).optional().default("on_demand"),
1324
+ source: z11.enum(["timer", "assignment", "review", "on_demand", "automation"]).optional().default("on_demand"),
1325
1325
  triggerDetail: z11.enum(["manual", "ping", "callback", "system"]).optional(),
1326
1326
  reason: z11.string().optional().nullable(),
1327
1327
  payload: z11.record(z11.unknown()).optional().nullable(),
@@ -1450,7 +1450,7 @@ var init_project = __esm({
1450
1450
 
1451
1451
  // ../packages/shared/src/validators/issue.ts
1452
1452
  import { z as z13 } from "zod";
1453
- var executionWorkspaceStrategySchema2, issueExecutionWorkspaceSettingsSchema, issueAssigneeAdapterOverridesSchema, createIssueSchema, createIssueLabelSchema, updateIssueLabelSchema, updateIssueSchema, reorderIssueSchema, checkoutIssueSchema, addIssueCommentSchema, linkIssueApprovalSchema, createIssueAttachmentMetadataSchema, ISSUE_DOCUMENT_FORMATS, issueDocumentFormatSchema, issueDocumentKeySchema, upsertIssueDocumentSchema;
1453
+ var executionWorkspaceStrategySchema2, issueExecutionWorkspaceSettingsSchema, issueAssigneeAdapterOverridesSchema, createIssueSchema, createIssueLabelSchema, updateIssueLabelSchema, updateIssueSchema, reorderIssueSchema, checkoutIssueSchema, addIssueCommentSchema, linkIssueApprovalSchema, createIssueAttachmentMetadataSchema, createIssueWorkspaceAttachmentSchema, ISSUE_DOCUMENT_FORMATS, issueDocumentFormatSchema, issueDocumentKeySchema, upsertIssueDocumentSchema;
1454
1454
  var init_issue = __esm({
1455
1455
  "../packages/shared/src/validators/issue.ts"() {
1456
1456
  "use strict";
@@ -1483,6 +1483,8 @@ var init_issue = __esm({
1483
1483
  priority: z13.enum(ISSUE_PRIORITIES).optional().default("medium"),
1484
1484
  assigneeAgentId: z13.string().uuid().optional().nullable(),
1485
1485
  assigneeUserId: z13.string().optional().nullable(),
1486
+ reviewerAgentId: z13.string().uuid().optional().nullable(),
1487
+ reviewerUserId: z13.string().optional().nullable(),
1486
1488
  requestDepth: z13.number().int().nonnegative().optional().default(0),
1487
1489
  billingCode: z13.string().optional().nullable(),
1488
1490
  assigneeAgentRuntimeOverrides: issueAssigneeAdapterOverridesSchema.optional().nullable(),
@@ -1541,6 +1543,9 @@ var init_issue = __esm({
1541
1543
  issueCommentId: z13.string().uuid().optional().nullable(),
1542
1544
  usage: z13.enum(["issue", "description_inline", "document_inline", "comment_inline", "comment_attachment"]).optional()
1543
1545
  });
1546
+ createIssueWorkspaceAttachmentSchema = z13.object({
1547
+ path: z13.string().trim().min(1).max(2048)
1548
+ });
1544
1549
  ISSUE_DOCUMENT_FORMATS = ["markdown"];
1545
1550
  issueDocumentFormatSchema = z13.enum(ISSUE_DOCUMENT_FORMATS);
1546
1551
  issueDocumentKeySchema = z13.string().trim().min(1).max(64).regex(/^[a-z0-9][a-z0-9_-]*$/, "Document key must be lowercase letters, numbers, _ or -");
@@ -4777,6 +4782,8 @@ var init_issues = __esm({
4777
4782
  boardOrder: integer9("board_order").notNull().default(0),
4778
4783
  assigneeAgentId: uuid28("assignee_agent_id").references(() => agents.id),
4779
4784
  assigneeUserId: text34("assignee_user_id"),
4785
+ reviewerAgentId: uuid28("reviewer_agent_id").references(() => agents.id),
4786
+ reviewerUserId: text34("reviewer_user_id"),
4780
4787
  checkoutRunId: uuid28("checkout_run_id").references(() => heartbeatRuns.id, { onDelete: "set null" }),
4781
4788
  executionRunId: uuid28("execution_run_id").references(() => heartbeatRuns.id, { onDelete: "set null" }),
4782
4789
  executionAgentNameKey: text34("execution_agent_name_key"),
@@ -4818,6 +4825,16 @@ var init_issues = __esm({
4818
4825
  table.assigneeUserId,
4819
4826
  table.status
4820
4827
  ),
4828
+ reviewerAgentStatusIdx: index25("issues_company_reviewer_agent_status_idx").on(
4829
+ table.orgId,
4830
+ table.reviewerAgentId,
4831
+ table.status
4832
+ ),
4833
+ reviewerUserStatusIdx: index25("issues_company_reviewer_user_status_idx").on(
4834
+ table.orgId,
4835
+ table.reviewerUserId,
4836
+ table.status
4837
+ ),
4821
4838
  parentIdx: index25("issues_company_parent_idx").on(table.orgId, table.parentId),
4822
4839
  projectIdx: index25("issues_company_project_idx").on(table.orgId, table.projectId),
4823
4840
  originIdx: index25("issues_company_origin_idx").on(table.orgId, table.originKind, table.originId),