@rallycry/conveyor-agent 11.0.40 → 11.0.41

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.
@@ -1530,7 +1530,7 @@ ${q.question}${q.options.length ? "\n" + q.options.map((o) => `- ${o.label}: ${o
1530
1530
  }
1531
1531
  };
1532
1532
 
1533
- // ../shared/dist/chunk-PVMC53P5.js
1533
+ // ../shared/dist/chunk-BH4SLNGU.js
1534
1534
  import { z } from "zod";
1535
1535
  import { z as z2 } from "zod";
1536
1536
  var DEFAULT_SONNET_MODEL = "claude-sonnet-5-5";
@@ -1817,6 +1817,7 @@ import { z as z10 } from "zod";
1817
1817
  import { z as z11 } from "zod";
1818
1818
  import { z as z12 } from "zod";
1819
1819
  import { z as z13 } from "zod";
1820
+ import { z as z14 } from "zod";
1820
1821
  var EXTERNAL_AGENT_MESSAGE_SOURCE = "external_agent";
1821
1822
  var TUI_KINDS = ["claude-code", "opencode", "codex"];
1822
1823
  var ACHIEVEMENT_RARITIES = [
@@ -2236,6 +2237,11 @@ var DeleteTaskFileRequestSchema = z4.object({
2236
2237
  sessionId: z4.string(),
2237
2238
  fileId: z4.string()
2238
2239
  });
2240
+ var SetTaskFileShowcaseRequestSchema = z4.object({
2241
+ sessionId: z4.string(),
2242
+ fileId: z4.string(),
2243
+ showcase: z4.boolean()
2244
+ });
2239
2245
  var GetTaskRequestSchema = z4.object({
2240
2246
  sessionId: z4.string(),
2241
2247
  taskSlugOrId: z4.string()
@@ -2284,7 +2290,11 @@ var ConfirmFileUploadRequestSchema = z4.object({
2284
2290
  fileId: z4.string(),
2285
2291
  title: z4.string().max(500).optional(),
2286
2292
  /** Glossary tag names (or ids) this file is an example of. */
2287
- tags: z4.array(z4.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS).optional()
2293
+ tags: z4.array(z4.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS).optional(),
2294
+ /** Mark the file as the card's showcase (the deliverable). */
2295
+ showcase: z4.boolean().optional(),
2296
+ /** Id of an older file on the same card this upload replaces. */
2297
+ supersedes: z4.string().min(1).max(64).optional()
2288
2298
  });
2289
2299
  var UpdateTaskStatusRequestSchema = z4.object({
2290
2300
  sessionId: z4.string(),
@@ -2819,6 +2829,9 @@ var CreateProjectTaskRequestSchema = z6.object({
2819
2829
  status: z6.string().optional(),
2820
2830
  // Assign to a sub-project board. Validated to belong to `projectId` in the handler.
2821
2831
  subProjectId: z6.string().nullable().optional(),
2832
+ // Priority value. Resolved to the project's configured Priority row in the
2833
+ // handler, which rejects an unconfigured value before the card is written.
2834
+ priorityValue: z6.number().int().positive().optional(),
2822
2835
  requestingUserId: z6.string().optional()
2823
2836
  });
2824
2837
  var SetProjectTaskParentRequestSchema = z6.object({
@@ -2848,6 +2861,9 @@ var UpdateProjectTaskRequestSchema = z6.object({
2848
2861
  // Story-point value, or null to clear. Resolved to the project's configured
2849
2862
  // StoryPoint row in the handler, which rejects an unconfigured value.
2850
2863
  storyPointValue: z6.number().int().positive().nullable().optional(),
2864
+ // Priority value, or null to clear. Resolved to the project's configured
2865
+ // Priority row in the handler, which rejects an unconfigured value.
2866
+ priorityValue: z6.number().int().positive().nullable().optional(),
2851
2867
  assignedUserId: z6.string().nullish(),
2852
2868
  // Move to a different sub-project board, or null to move to the parent board.
2853
2869
  // Validated to belong to `projectId` in the handler.
@@ -2864,9 +2880,9 @@ var UpdateProjectTaskRequestSchema = z6.object({
2864
2880
  onHold: z6.boolean().optional(),
2865
2881
  requestingUserId: z6.string().optional()
2866
2882
  }).strict().refine(
2867
- (v) => v.title !== void 0 || v.description !== void 0 || v.plan !== void 0 || v.status !== void 0 || v.risk !== void 0 || v.storyPointValue !== void 0 || v.assignedUserId !== void 0 || v.subProjectId !== void 0 || v.githubBranch !== void 0 || v.onHold !== void 0,
2883
+ (v) => v.title !== void 0 || v.description !== void 0 || v.plan !== void 0 || v.status !== void 0 || v.risk !== void 0 || v.storyPointValue !== void 0 || v.priorityValue !== void 0 || v.assignedUserId !== void 0 || v.subProjectId !== void 0 || v.githubBranch !== void 0 || v.onHold !== void 0,
2868
2884
  {
2869
- message: "update_task requires at least one field to change (title, description, plan, status, risk, storyPointValue, assignedUserId, subProjectId, githubBranch, or onHold)"
2885
+ message: "update_task requires at least one field to change (title, description, plan, status, risk, storyPointValue, priorityValue, assignedUserId, subProjectId, githubBranch, or onHold)"
2870
2886
  }
2871
2887
  );
2872
2888
  var TransitionProjectTaskStatusRequestSchema = z6.object({
@@ -3114,43 +3130,6 @@ var GetProjectTaskDependenciesRequestSchema = z6.object({
3114
3130
  projectId: z6.string(),
3115
3131
  taskId: z6.string()
3116
3132
  });
3117
- var ListProjectTaskFilesRequestSchema = z6.object({
3118
- projectId: z6.string(),
3119
- taskId: z6.string()
3120
- });
3121
- var GetProjectAttachmentRequestSchema = z6.object({
3122
- projectId: z6.string(),
3123
- taskId: z6.string(),
3124
- fileId: z6.string(),
3125
- /** Byte offset into text content (paging large logs/JSON). Default 0. */
3126
- offset: z6.number().int().nonnegative().optional(),
3127
- /** Max bytes of text content to return from `offset`. Server default applies. */
3128
- maxBytes: z6.number().int().positive().optional()
3129
- });
3130
- var DeleteProjectTaskFileRequestSchema = z6.object({
3131
- projectId: z6.string(),
3132
- taskId: z6.string(),
3133
- fileId: z6.string(),
3134
- requestingUserId: z6.string().optional()
3135
- });
3136
- var RequestProjectFileUploadRequestSchema = z6.object({
3137
- projectId: z6.string(),
3138
- taskId: z6.string(),
3139
- fileName: z6.string().min(1).max(255),
3140
- mimeType: z6.string().min(1).max(128),
3141
- fileSize: z6.number().int().positive().max(MAX_FILE_SIZE_BYTES),
3142
- requestingUserId: z6.string().optional()
3143
- });
3144
- var ConfirmProjectFileUploadRequestSchema = z6.object({
3145
- projectId: z6.string(),
3146
- taskId: z6.string(),
3147
- fileId: z6.string(),
3148
- /** When set, the attachment is also posted to the task chat with this text. */
3149
- comment: z6.string().max(2e3).optional(),
3150
- /** Glossary tag names (or ids) this file is an example of. */
3151
- tags: z6.array(z6.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS).optional(),
3152
- requestingUserId: z6.string().optional()
3153
- });
3154
3133
  var CreateProjectPullRequestRequestSchema = z6.object({
3155
3134
  projectId: z6.string(),
3156
3135
  taskId: z6.string(),
@@ -3257,14 +3236,62 @@ var GetProjectAnalyticsSummaryRequestSchema = z7.object({
3257
3236
  rangeDays: z7.number().int().min(1).max(GET_ANALYTICS_SUMMARY_MAX_RANGE_DAYS).optional(),
3258
3237
  campaign: z7.string().max(200).optional()
3259
3238
  });
3260
- var RequestWorkspaceRecycleRequestSchema = z8.object({
3261
- sessionId: z8.string(),
3262
- reason: z8.string().max(2e3)
3239
+ var ListProjectTaskFilesRequestSchema = z8.object({
3240
+ projectId: z8.string(),
3241
+ taskId: z8.string()
3263
3242
  });
3264
- var ReportApiOutageRequestSchema = z8.object({
3265
- sessionId: z8.string(),
3266
- detail: z8.string().max(2e3),
3267
- attempts: z8.number().int().min(0).max(100)
3243
+ var GetProjectAttachmentRequestSchema = z8.object({
3244
+ projectId: z8.string(),
3245
+ taskId: z8.string(),
3246
+ fileId: z8.string(),
3247
+ /** Byte offset into text content (paging large logs/JSON). Default 0. */
3248
+ offset: z8.number().int().nonnegative().optional(),
3249
+ /** Max bytes of text content to return from `offset`. Server default applies. */
3250
+ maxBytes: z8.number().int().positive().optional()
3251
+ });
3252
+ var DeleteProjectTaskFileRequestSchema = z8.object({
3253
+ projectId: z8.string(),
3254
+ taskId: z8.string(),
3255
+ fileId: z8.string(),
3256
+ requestingUserId: z8.string().optional()
3257
+ });
3258
+ var SetProjectTaskFileShowcaseRequestSchema = z8.object({
3259
+ projectId: z8.string(),
3260
+ taskId: z8.string(),
3261
+ fileId: z8.string(),
3262
+ showcase: z8.boolean(),
3263
+ requestingUserId: z8.string().optional()
3264
+ });
3265
+ var RequestProjectFileUploadRequestSchema = z8.object({
3266
+ projectId: z8.string(),
3267
+ taskId: z8.string(),
3268
+ fileName: z8.string().min(1).max(255),
3269
+ mimeType: z8.string().min(1).max(128),
3270
+ fileSize: z8.number().int().positive().max(MAX_FILE_SIZE_BYTES),
3271
+ requestingUserId: z8.string().optional()
3272
+ });
3273
+ var ConfirmProjectFileUploadRequestSchema = z8.object({
3274
+ projectId: z8.string(),
3275
+ taskId: z8.string(),
3276
+ fileId: z8.string(),
3277
+ /** When set, the attachment is also posted to the task chat with this text. */
3278
+ comment: z8.string().max(2e3).optional(),
3279
+ /** Glossary tag names (or ids) this file is an example of. */
3280
+ tags: z8.array(z8.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS).optional(),
3281
+ /** The card's showcase (its deliverable); always posts to chat, even with no `comment`. */
3282
+ showcase: z8.boolean().optional(),
3283
+ /** Id of an older file on the same card this upload replaces. */
3284
+ supersedes: z8.string().min(1).max(64).optional(),
3285
+ requestingUserId: z8.string().optional()
3286
+ });
3287
+ var RequestWorkspaceRecycleRequestSchema = z9.object({
3288
+ sessionId: z9.string(),
3289
+ reason: z9.string().max(2e3)
3290
+ });
3291
+ var ReportApiOutageRequestSchema = z9.object({
3292
+ sessionId: z9.string(),
3293
+ detail: z9.string().max(2e3),
3294
+ attempts: z9.number().int().min(0).max(100)
3268
3295
  });
3269
3296
  var CONTEXT_LINK_LOCATOR_MAX = 300;
3270
3297
  var TEST_TITLE = /\b(?:it|test|describe)(?:\.\w+)?\s*\(\s*(['"`])((?:(?!\1)[\s\S])*)\1/g;
@@ -3281,130 +3308,130 @@ function locatorMatchesContent(content, locatorType, locator) {
3281
3308
  var TAG_DESCRIPTION_MAX = CARD_DESCRIPTION_MAX;
3282
3309
  var TAG_OVERVIEW_MAX = 32e3;
3283
3310
  var TAG_REASON_MAX = 500;
3284
- var ProjectTagContextPathSchema = z9.object({
3285
- type: z9.enum(["rule", "doc", "file", "folder"]),
3286
- path: z9.string().min(1).max(500),
3287
- label: z9.string().max(100).optional(),
3311
+ var ProjectTagContextPathSchema = z10.object({
3312
+ type: z10.enum(["rule", "doc", "file", "folder"]),
3313
+ path: z10.string().min(1).max(500),
3314
+ label: z10.string().max(100).optional(),
3288
3315
  /** Verified-link tether — text that must keep existing in the file. */
3289
- locator: z9.string().min(1).max(CONTEXT_LINK_LOCATOR_MAX).regex(/^[^\r\n]*$/, "Locator cannot contain line breaks").optional(),
3316
+ locator: z10.string().min(1).max(CONTEXT_LINK_LOCATOR_MAX).regex(/^[^\r\n]*$/, "Locator cannot contain line breaks").optional(),
3290
3317
  /** test = must appear in a real test/describe title; code = any substring. */
3291
- locatorType: z9.enum(["test", "code"]).optional()
3318
+ locatorType: z10.enum(["test", "code"]).optional()
3292
3319
  }).refine((link) => link.locator === void 0 === (link.locatorType === void 0), {
3293
3320
  message: "locator and locatorType must be provided together"
3294
3321
  }).refine((link) => link.locator === void 0 || link.type !== "folder", {
3295
3322
  message: "folder links cannot carry a locator"
3296
3323
  });
3297
- var hexColor = z9.string().regex(/^#[0-9a-fA-F]{6}$/, "Expected #RRGGBB hex color");
3298
- var overviewPathSchema = z9.string().min(1).max(500).regex(/^[^\r\n]*$/, "Overview path cannot contain line breaks");
3299
- var CreateProjectTagRequestSchema = z9.object({
3300
- projectId: z9.string(),
3301
- name: z9.string().min(1).max(50),
3324
+ var hexColor = z10.string().regex(/^#[0-9a-fA-F]{6}$/, "Expected #RRGGBB hex color");
3325
+ var overviewPathSchema = z10.string().min(1).max(500).regex(/^[^\r\n]*$/, "Overview path cannot contain line breaks");
3326
+ var CreateProjectTagRequestSchema = z10.object({
3327
+ projectId: z10.string(),
3328
+ name: z10.string().min(1).max(50),
3302
3329
  color: hexColor.optional(),
3303
- description: z9.string().max(TAG_DESCRIPTION_MAX).optional(),
3304
- overview: z9.string().max(TAG_OVERVIEW_MAX).optional(),
3330
+ description: z10.string().max(TAG_DESCRIPTION_MAX).optional(),
3331
+ overview: z10.string().max(TAG_OVERVIEW_MAX).optional(),
3305
3332
  /** Source the overview from this repo file (stored overview stays as the pending fallback). */
3306
3333
  overviewPath: overviewPathSchema.optional(),
3307
- contextPaths: z9.array(ProjectTagContextPathSchema).max(20).optional(),
3334
+ contextPaths: z10.array(ProjectTagContextPathSchema).max(20).optional(),
3308
3335
  /** Parents to link at create time (multi-parent DAG). */
3309
- parentTagIds: z9.array(z9.string()).max(25).optional(),
3310
- requestingUserId: z9.string().optional()
3336
+ parentTagIds: z10.array(z10.string()).max(25).optional(),
3337
+ requestingUserId: z10.string().optional()
3311
3338
  });
3312
- var UpdateProjectTagRequestSchema = z9.object({
3313
- projectId: z9.string(),
3314
- tagId: z9.string(),
3315
- name: z9.string().min(1).max(50).optional(),
3339
+ var UpdateProjectTagRequestSchema = z10.object({
3340
+ projectId: z10.string(),
3341
+ tagId: z10.string(),
3342
+ name: z10.string().min(1).max(50).optional(),
3316
3343
  color: hexColor.optional(),
3317
- description: z9.string().max(TAG_DESCRIPTION_MAX).optional(),
3344
+ description: z10.string().max(TAG_DESCRIPTION_MAX).optional(),
3318
3345
  /** Full markdown glossary body; null clears it. Rejected while overviewPath is set. */
3319
- overview: z9.string().max(TAG_OVERVIEW_MAX).nullable().optional(),
3346
+ overview: z10.string().max(TAG_OVERVIEW_MAX).nullable().optional(),
3320
3347
  /** Repo file to source the overview from; null clears back to the stored overview. */
3321
3348
  overviewPath: overviewPathSchema.nullable().optional(),
3322
3349
  /** Full replacement of the tag's context links when provided. */
3323
- contextPaths: z9.array(ProjectTagContextPathSchema).max(20).optional(),
3350
+ contextPaths: z10.array(ProjectTagContextPathSchema).max(20).optional(),
3324
3351
  /** Full-set replacement of the tag's parent tags (multi-parent DAG). */
3325
- parentTagIds: z9.array(z9.string()).max(25).optional(),
3352
+ parentTagIds: z10.array(z10.string()).max(25).optional(),
3326
3353
  /** One-line revision provenance, recorded in the tag's history. */
3327
- reason: z9.string().max(TAG_REASON_MAX).optional(),
3354
+ reason: z10.string().max(TAG_REASON_MAX).optional(),
3328
3355
  /** Card the caller was working in — stamped into the revision history. */
3329
- taskId: z9.string().optional(),
3330
- requestingUserId: z9.string().optional()
3356
+ taskId: z10.string().optional(),
3357
+ requestingUserId: z10.string().optional()
3331
3358
  });
3332
- var PostToProjectChatRequestSchema = z9.object({
3333
- projectId: z9.string(),
3334
- content: z9.string().min(1).max(2e4),
3335
- requestingUserId: z9.string().optional(),
3359
+ var PostToProjectChatRequestSchema = z10.object({
3360
+ projectId: z10.string(),
3361
+ content: z10.string().min(1).max(2e4),
3362
+ requestingUserId: z10.string().optional(),
3336
3363
  /** Marks the post so the server can persist it beyond chat (tag-audit summaries land in tag history). */
3337
- kind: z9.enum(["tag_audit_summary"]).optional()
3338
- });
3339
- var StartTagAuditRequestSchema = z9.object({
3340
- projectId: z9.string(),
3341
- requestingUserId: z9.string().optional()
3342
- });
3343
- var StartTaskAuditRequestSchema = z9.object({
3344
- projectId: z9.string(),
3345
- taskIds: z9.array(z9.string()).min(1).max(20),
3346
- requestingUserId: z9.string().optional()
3347
- });
3348
- var GetActiveAuditSessionsRequestSchema = z9.object({
3349
- projectId: z9.string()
3350
- });
3351
- var ReportTaskAuditResultRequestSchema = z9.object({
3352
- projectId: z9.string(),
3353
- taskId: z9.string(),
3354
- summary: z9.string(),
3355
- turnGrades: z9.array(
3356
- z9.object({
3357
- turnIndex: z9.number(),
3358
- phase: z9.enum(["planning", "building", "human"]),
3359
- grade: z9.enum(["correct", "neutral", "blunder"]),
3360
- reasoning: z9.string(),
3361
- eventType: z9.string(),
3362
- eventSummary: z9.string()
3364
+ kind: z10.enum(["tag_audit_summary"]).optional()
3365
+ });
3366
+ var StartTagAuditRequestSchema = z10.object({
3367
+ projectId: z10.string(),
3368
+ requestingUserId: z10.string().optional()
3369
+ });
3370
+ var StartTaskAuditRequestSchema = z10.object({
3371
+ projectId: z10.string(),
3372
+ taskIds: z10.array(z10.string()).min(1).max(20),
3373
+ requestingUserId: z10.string().optional()
3374
+ });
3375
+ var GetActiveAuditSessionsRequestSchema = z10.object({
3376
+ projectId: z10.string()
3377
+ });
3378
+ var ReportTaskAuditResultRequestSchema = z10.object({
3379
+ projectId: z10.string(),
3380
+ taskId: z10.string(),
3381
+ summary: z10.string(),
3382
+ turnGrades: z10.array(
3383
+ z10.object({
3384
+ turnIndex: z10.number(),
3385
+ phase: z10.enum(["planning", "building", "human"]),
3386
+ grade: z10.enum(["correct", "neutral", "blunder"]),
3387
+ reasoning: z10.string(),
3388
+ eventType: z10.string(),
3389
+ eventSummary: z10.string()
3363
3390
  })
3364
3391
  ),
3365
- planningAccuracy: z9.number().nullable(),
3366
- buildingAccuracy: z9.number().nullable(),
3367
- humanAccuracy: z9.number().nullable(),
3368
- planningCorrect: z9.number(),
3369
- planningNeutral: z9.number(),
3370
- planningBlunder: z9.number(),
3371
- buildingCorrect: z9.number(),
3372
- buildingNeutral: z9.number(),
3373
- buildingBlunder: z9.number(),
3374
- humanCorrect: z9.number(),
3375
- humanNeutral: z9.number(),
3376
- humanBlunder: z9.number(),
3377
- humanEvaluations: z9.array(
3378
- z9.object({
3379
- messageIndex: z9.number(),
3380
- rating: z9.union([z9.literal(-1), z9.literal(0), z9.literal(1)]),
3381
- reasoning: z9.string()
3392
+ planningAccuracy: z10.number().nullable(),
3393
+ buildingAccuracy: z10.number().nullable(),
3394
+ humanAccuracy: z10.number().nullable(),
3395
+ planningCorrect: z10.number(),
3396
+ planningNeutral: z10.number(),
3397
+ planningBlunder: z10.number(),
3398
+ buildingCorrect: z10.number(),
3399
+ buildingNeutral: z10.number(),
3400
+ buildingBlunder: z10.number(),
3401
+ humanCorrect: z10.number(),
3402
+ humanNeutral: z10.number(),
3403
+ humanBlunder: z10.number(),
3404
+ humanEvaluations: z10.array(
3405
+ z10.object({
3406
+ messageIndex: z10.number(),
3407
+ rating: z10.union([z10.literal(-1), z10.literal(0), z10.literal(1)]),
3408
+ reasoning: z10.string()
3382
3409
  })
3383
3410
  ).optional(),
3384
- suggestionIds: z9.array(z9.string()),
3385
- auditCostUsd: z9.number().nullable(),
3386
- model: z9.string().nullable(),
3411
+ suggestionIds: z10.array(z10.string()),
3412
+ auditCostUsd: z10.number().nullable(),
3413
+ model: z10.string().nullable(),
3387
3414
  /** When set, the audit is marked failed with this message instead. */
3388
- error: z9.string().optional()
3415
+ error: z10.string().optional()
3389
3416
  });
3390
- var GetTaskAuditsRequestSchema = z9.object({
3391
- projectId: z9.string(),
3392
- limit: z9.number().int().positive().max(200).optional().default(50)
3417
+ var GetTaskAuditsRequestSchema = z10.object({
3418
+ projectId: z10.string(),
3419
+ limit: z10.number().int().positive().max(200).optional().default(50)
3393
3420
  });
3394
- var GetTaskAuditRequestSchema = z9.object({
3395
- projectId: z9.string(),
3396
- auditId: z9.string()
3421
+ var GetTaskAuditRequestSchema = z10.object({
3422
+ projectId: z10.string(),
3423
+ auditId: z10.string()
3397
3424
  });
3398
- var GetTaskAuditAggregatesRequestSchema = z9.object({
3399
- projectId: z9.string()
3425
+ var GetTaskAuditAggregatesRequestSchema = z10.object({
3426
+ projectId: z10.string()
3400
3427
  });
3401
- var DeleteTaskAuditRequestSchema = z9.object({
3402
- projectId: z9.string(),
3403
- auditId: z9.string(),
3404
- requestingUserId: z9.string().optional()
3428
+ var DeleteTaskAuditRequestSchema = z10.object({
3429
+ projectId: z10.string(),
3430
+ auditId: z10.string(),
3431
+ requestingUserId: z10.string().optional()
3405
3432
  });
3406
- var MarkInitialPromptSubmittedRequestSchema = z9.object({
3407
- sessionId: z9.string()
3433
+ var MarkInitialPromptSubmittedRequestSchema = z10.object({
3434
+ sessionId: z10.string()
3408
3435
  });
3409
3436
  var CRITICAL_AUTOMATED_SOURCES = /* @__PURE__ */ new Set([
3410
3437
  "ci_failure",
@@ -3458,165 +3485,165 @@ var DECISION_DEADLINE_MIN_HOURS = 1;
3458
3485
  var DECISION_DEADLINE_MAX_DAYS = 30;
3459
3486
  var DECISION_DEADLINE_MAX_HOURS = DECISION_DEADLINE_MAX_DAYS * 24;
3460
3487
  var DECISION_LIST_MAX_LIMIT = 200;
3461
- var decisionIdSchema = z10.string().cuid("Invalid decision ID");
3462
- var optionInputSchema = z10.object({
3463
- label: z10.string().min(1, "Option label is required").max(DECISION_OPTION_LABEL_MAX),
3464
- description: z10.string().min(1, "Describe the option as GIVEN / WHEN / THEN"),
3465
- kind: z10.enum(DECISION_OPTION_KINDS).optional()
3488
+ var decisionIdSchema = z11.string().cuid("Invalid decision ID");
3489
+ var optionInputSchema = z11.object({
3490
+ label: z11.string().min(1, "Option label is required").max(DECISION_OPTION_LABEL_MAX),
3491
+ description: z11.string().min(1, "Describe the option as GIVEN / WHEN / THEN"),
3492
+ kind: z11.enum(DECISION_OPTION_KINDS).optional()
3466
3493
  });
3467
- var optionsArraySchema = z10.array(optionInputSchema).min(DECISION_OPTIONS_MIN, `A decision needs at least ${DECISION_OPTIONS_MIN} options`).max(
3494
+ var optionsArraySchema = z11.array(optionInputSchema).min(DECISION_OPTIONS_MIN, `A decision needs at least ${DECISION_OPTIONS_MIN} options`).max(
3468
3495
  DECISION_OPTIONS_MAX,
3469
3496
  `A decision takes at most ${DECISION_OPTIONS_MAX} options \u2014 more than that means the question is not framed yet`
3470
3497
  );
3471
- var CreateDecisionRequestSchema = z10.object({
3472
- projectId: z10.string().cuid("Invalid project ID"),
3498
+ var CreateDecisionRequestSchema = z11.object({
3499
+ projectId: z11.string().cuid("Invalid project ID"),
3473
3500
  /** The question, as one plain sentence. */
3474
- title: z10.string().min(1, "A decision needs a question").max(DECISION_QUESTION_MAX),
3475
- description: z10.string().max(CARD_DESCRIPTION_MAX).optional(),
3476
- context: z10.string().min(1, "Context is required \u2014 say why this is being asked now"),
3501
+ title: z11.string().min(1, "A decision needs a question").max(DECISION_QUESTION_MAX),
3502
+ description: z11.string().max(CARD_DESCRIPTION_MAX).optional(),
3503
+ context: z11.string().min(1, "Context is required \u2014 say why this is being asked now"),
3477
3504
  options: optionsArraySchema,
3478
3505
  /** 1-based position of the option that wins on silence. */
3479
- defaultOptionOrdinal: z10.number().int().min(1).max(DECISION_OPTIONS_MAX),
3480
- deadlineHours: z10.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional(),
3506
+ defaultOptionOrdinal: z11.number().int().min(1).max(DECISION_OPTIONS_MAX),
3507
+ deadlineHours: z11.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional(),
3481
3508
  /** Cards this decision blocks, by cuid or slug. */
3482
- impactedCardRefs: z10.array(z10.string().min(1)).max(50).optional(),
3483
- tagNames: z10.array(z10.string().min(1)).max(10).optional(),
3484
- raisedByTaskId: z10.string().min(1).optional(),
3485
- raisedByPrNumber: z10.number().int().positive().optional()
3509
+ impactedCardRefs: z11.array(z11.string().min(1)).max(50).optional(),
3510
+ tagNames: z11.array(z11.string().min(1)).max(10).optional(),
3511
+ raisedByTaskId: z11.string().min(1).optional(),
3512
+ raisedByPrNumber: z11.number().int().positive().optional()
3486
3513
  });
3487
- var VoteDecisionRequestSchema = z10.object({
3514
+ var VoteDecisionRequestSchema = z11.object({
3488
3515
  decisionId: decisionIdSchema,
3489
- optionId: z10.string().cuid("Invalid option ID"),
3490
- reason: z10.string().max(DECISION_VOTE_REASON_MAX).optional(),
3491
- source: z10.enum(DECISION_VOTE_SOURCES).optional()
3516
+ optionId: z11.string().cuid("Invalid option ID"),
3517
+ reason: z11.string().max(DECISION_VOTE_REASON_MAX).optional(),
3518
+ source: z11.enum(DECISION_VOTE_SOURCES).optional()
3492
3519
  });
3493
- var RemoveDecisionVoteRequestSchema = z10.object({
3520
+ var RemoveDecisionVoteRequestSchema = z11.object({
3494
3521
  decisionId: decisionIdSchema
3495
3522
  });
3496
- var ResolveDecisionRequestSchema = z10.object({
3523
+ var ResolveDecisionRequestSchema = z11.object({
3497
3524
  decisionId: decisionIdSchema,
3498
- chosenOptionId: z10.string().cuid("Invalid option ID"),
3499
- resolution: z10.string().min(1, "A resolution is required \u2014 say what was decided").max(DECISION_RESOLUTION_MAX),
3500
- resolutionNotes: z10.string().optional()
3525
+ chosenOptionId: z11.string().cuid("Invalid option ID"),
3526
+ resolution: z11.string().min(1, "A resolution is required \u2014 say what was decided").max(DECISION_RESOLUTION_MAX),
3527
+ resolutionNotes: z11.string().optional()
3501
3528
  });
3502
- var CancelDecisionRequestSchema = z10.object({
3529
+ var CancelDecisionRequestSchema = z11.object({
3503
3530
  decisionId: decisionIdSchema,
3504
3531
  /** Why it is being dropped. Posted to the decision thread. */
3505
- reason: z10.string().max(DECISION_RESOLUTION_MAX).optional()
3532
+ reason: z11.string().max(DECISION_RESOLUTION_MAX).optional()
3506
3533
  });
3507
- var BulkDecisionIdsRequestSchema = z10.object({
3508
- projectId: z10.string().cuid("Invalid project ID"),
3509
- decisionIds: z10.array(z10.string().cuid()).min(1).max(200)
3534
+ var BulkDecisionIdsRequestSchema = z11.object({
3535
+ projectId: z11.string().cuid("Invalid project ID"),
3536
+ decisionIds: z11.array(z11.string().cuid()).min(1).max(200)
3510
3537
  });
3511
- var ReopenDecisionRequestSchema = z10.object({
3538
+ var ReopenDecisionRequestSchema = z11.object({
3512
3539
  decisionId: decisionIdSchema,
3513
- deadlineHours: z10.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional()
3540
+ deadlineHours: z11.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional()
3514
3541
  });
3515
- var UpdateDecisionRequestSchema = z10.object({
3542
+ var UpdateDecisionRequestSchema = z11.object({
3516
3543
  decisionId: decisionIdSchema,
3517
- title: z10.string().min(1).max(200).optional(),
3518
- description: z10.string().max(CARD_DESCRIPTION_MAX).optional(),
3519
- context: z10.string().min(1).optional(),
3520
- deadlineAt: z10.string().datetime().optional(),
3544
+ title: z11.string().min(1).max(200).optional(),
3545
+ description: z11.string().max(CARD_DESCRIPTION_MAX).optional(),
3546
+ context: z11.string().min(1).optional(),
3547
+ deadlineAt: z11.string().datetime().optional(),
3521
3548
  /** Only accepted while the decision has zero votes. */
3522
3549
  options: optionsArraySchema.optional(),
3523
- defaultOptionOrdinal: z10.number().int().min(1).max(DECISION_OPTIONS_MAX).optional(),
3524
- addImpactedCardRefs: z10.array(z10.string().min(1)).max(50).optional(),
3525
- removeImpactedCardIds: z10.array(z10.string().min(1)).max(50).optional()
3550
+ defaultOptionOrdinal: z11.number().int().min(1).max(DECISION_OPTIONS_MAX).optional(),
3551
+ addImpactedCardRefs: z11.array(z11.string().min(1)).max(50).optional(),
3552
+ removeImpactedCardIds: z11.array(z11.string().min(1)).max(50).optional()
3526
3553
  });
3527
- var GetDecisionRequestSchema = z10.object({
3554
+ var GetDecisionRequestSchema = z11.object({
3528
3555
  /** cuid or slug. A slug needs `projectId` to resolve unambiguously. */
3529
- decisionId: z10.string().min(1),
3530
- projectId: z10.string().cuid().optional()
3556
+ decisionId: z11.string().min(1),
3557
+ projectId: z11.string().cuid().optional()
3531
3558
  });
3532
- var ListDecisionsRequestSchema = z10.object({
3533
- projectId: z10.string().cuid("Invalid project ID"),
3534
- status: z10.enum(DECISION_STATUS_LABELS).optional(),
3559
+ var ListDecisionsRequestSchema = z11.object({
3560
+ projectId: z11.string().cuid("Invalid project ID"),
3561
+ status: z11.enum(DECISION_STATUS_LABELS).optional(),
3535
3562
  /** Tag name, not id — an agent knows the tag it is working under. */
3536
- tag: z10.string().min(1).optional(),
3563
+ tag: z11.string().min(1).optional(),
3537
3564
  /** Decisions that this card is blocked by (cuid or slug). */
3538
- cardId: z10.string().min(1).optional(),
3539
- query: z10.string().min(1).optional(),
3540
- limit: z10.number().int().min(1).max(DECISION_LIST_MAX_LIMIT).optional()
3565
+ cardId: z11.string().min(1).optional(),
3566
+ query: z11.string().min(1).optional(),
3567
+ limit: z11.number().int().min(1).max(DECISION_LIST_MAX_LIMIT).optional()
3541
3568
  });
3542
- var optionInput = z11.object({
3543
- label: z11.string().min(1).max(DECISION_OPTION_LABEL_MAX),
3544
- description: z11.string().min(1),
3545
- kind: z11.enum(DECISION_OPTION_KINDS).optional()
3569
+ var optionInput = z12.object({
3570
+ label: z12.string().min(1).max(DECISION_OPTION_LABEL_MAX),
3571
+ description: z12.string().min(1),
3572
+ kind: z12.enum(DECISION_OPTION_KINDS).optional()
3546
3573
  });
3547
- var optionsInput = z11.array(optionInput).min(DECISION_OPTIONS_MIN).max(DECISION_OPTIONS_MAX);
3548
- var deadlineHours = z11.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional();
3549
- var CreateProjectDecisionRequestSchema = z11.object({
3550
- projectId: z11.string(),
3551
- question: z11.string().min(1).max(200),
3552
- summary: z11.string().max(CARD_DESCRIPTION_MAX).optional(),
3553
- context: z11.string().min(1),
3574
+ var optionsInput = z12.array(optionInput).min(DECISION_OPTIONS_MIN).max(DECISION_OPTIONS_MAX);
3575
+ var deadlineHours = z12.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional();
3576
+ var CreateProjectDecisionRequestSchema = z12.object({
3577
+ projectId: z12.string(),
3578
+ question: z12.string().min(1).max(200),
3579
+ summary: z12.string().max(CARD_DESCRIPTION_MAX).optional(),
3580
+ context: z12.string().min(1),
3554
3581
  options: optionsInput,
3555
- defaultOption: z11.number().int().min(1).max(DECISION_OPTIONS_MAX),
3582
+ defaultOption: z12.number().int().min(1).max(DECISION_OPTIONS_MAX),
3556
3583
  deadlineHours,
3557
- impactedCards: z11.array(z11.string().min(1)).max(50).optional(),
3584
+ impactedCards: z12.array(z12.string().min(1)).max(50).optional(),
3558
3585
  /**
3559
3586
  * Pod surface only: also block the card this session is working on. The
3560
3587
  * session's task id is resolved SERVER-side from `sessionId` — a
3561
3588
  * client-supplied card id would let a pod block any card in the project.
3562
3589
  */
3563
- includeCurrentCard: z11.boolean().optional(),
3564
- sessionId: z11.string().optional(),
3565
- tagNames: z11.array(z11.string().min(1)).max(10).optional(),
3566
- raisedByPr: z11.number().int().positive().optional(),
3590
+ includeCurrentCard: z12.boolean().optional(),
3591
+ sessionId: z12.string().optional(),
3592
+ tagNames: z12.array(z12.string().min(1)).max(10).optional(),
3593
+ raisedByPr: z12.number().int().positive().optional(),
3567
3594
  /** Slug or id of the card that raised the question. A link back, not a block. */
3568
- raisedByCard: z11.string().min(1).optional(),
3595
+ raisedByCard: z12.string().min(1).optional(),
3569
3596
  /** Absolute deadline (ISO 8601). Wins over `deadlineHours` when both are sent. */
3570
- deadlineAt: z11.string().datetime({ offset: true }).optional(),
3571
- requestingUserId: z11.string().optional()
3597
+ deadlineAt: z12.string().datetime({ offset: true }).optional(),
3598
+ requestingUserId: z12.string().optional()
3572
3599
  });
3573
- var ListProjectDecisionsRequestSchema = z11.object({
3574
- projectId: z11.string(),
3575
- status: z11.enum(DECISION_STATUS_LABELS).optional(),
3576
- tag: z11.string().min(1).optional(),
3577
- card: z11.string().min(1).optional(),
3578
- query: z11.string().min(1).optional(),
3579
- limit: z11.number().int().min(1).max(DECISION_LIST_MAX_LIMIT).optional(),
3580
- requestingUserId: z11.string().optional()
3581
- });
3582
- var GetProjectDecisionRequestSchema = z11.object({
3583
- projectId: z11.string(),
3584
- decision: z11.string().min(1),
3585
- requestingUserId: z11.string().optional()
3600
+ var ListProjectDecisionsRequestSchema = z12.object({
3601
+ projectId: z12.string(),
3602
+ status: z12.enum(DECISION_STATUS_LABELS).optional(),
3603
+ tag: z12.string().min(1).optional(),
3604
+ card: z12.string().min(1).optional(),
3605
+ query: z12.string().min(1).optional(),
3606
+ limit: z12.number().int().min(1).max(DECISION_LIST_MAX_LIMIT).optional(),
3607
+ requestingUserId: z12.string().optional()
3608
+ });
3609
+ var GetProjectDecisionRequestSchema = z12.object({
3610
+ projectId: z12.string(),
3611
+ decision: z12.string().min(1),
3612
+ requestingUserId: z12.string().optional()
3586
3613
  });
3587
- var VoteProjectDecisionRequestSchema = z11.object({
3588
- projectId: z11.string(),
3589
- decision: z11.string().min(1),
3614
+ var VoteProjectDecisionRequestSchema = z12.object({
3615
+ projectId: z12.string(),
3616
+ decision: z12.string().min(1),
3590
3617
  /** An option id, or its 1-based position. */
3591
- option: z11.string().min(1),
3592
- reason: z11.string().max(CARD_DESCRIPTION_MAX).optional(),
3593
- requestingUserId: z11.string().optional()
3594
- });
3595
- var ResolveProjectDecisionRequestSchema = z11.object({
3596
- projectId: z11.string(),
3597
- decision: z11.string().min(1),
3598
- option: z11.string().min(1),
3599
- resolution: z11.string().min(1).max(DECISION_RESOLUTION_MAX),
3600
- notes: z11.string().optional(),
3601
- requestingUserId: z11.string().optional()
3602
- });
3603
- var UpdateProjectDecisionRequestSchema = z11.object({
3604
- projectId: z11.string(),
3605
- decision: z11.string().min(1),
3606
- question: z11.string().min(1).max(200).optional(),
3607
- summary: z11.string().max(CARD_DESCRIPTION_MAX).optional(),
3608
- context: z11.string().min(1).optional(),
3618
+ option: z12.string().min(1),
3619
+ reason: z12.string().max(CARD_DESCRIPTION_MAX).optional(),
3620
+ requestingUserId: z12.string().optional()
3621
+ });
3622
+ var ResolveProjectDecisionRequestSchema = z12.object({
3623
+ projectId: z12.string(),
3624
+ decision: z12.string().min(1),
3625
+ option: z12.string().min(1),
3626
+ resolution: z12.string().min(1).max(DECISION_RESOLUTION_MAX),
3627
+ notes: z12.string().optional(),
3628
+ requestingUserId: z12.string().optional()
3629
+ });
3630
+ var UpdateProjectDecisionRequestSchema = z12.object({
3631
+ projectId: z12.string(),
3632
+ decision: z12.string().min(1),
3633
+ question: z12.string().min(1).max(200).optional(),
3634
+ summary: z12.string().max(CARD_DESCRIPTION_MAX).optional(),
3635
+ context: z12.string().min(1).optional(),
3609
3636
  /** Accepted only while nobody has voted. */
3610
3637
  options: optionsInput.optional(),
3611
- defaultOption: z11.number().int().min(1).max(DECISION_OPTIONS_MAX).optional(),
3612
- tagNames: z11.array(z11.string().min(1)).max(10).optional(),
3638
+ defaultOption: z12.number().int().min(1).max(DECISION_OPTIONS_MAX).optional(),
3639
+ tagNames: z12.array(z12.string().min(1)).max(10).optional(),
3613
3640
  deadlineHours,
3614
3641
  /** Absolute deadline (ISO 8601). Wins over `deadlineHours` when both are sent. */
3615
- deadlineAt: z11.string().datetime({ offset: true }).optional(),
3616
- addImpactedCards: z11.array(z11.string().min(1)).max(50).optional(),
3617
- removeImpactedCards: z11.array(z11.string().min(1)).max(50).optional(),
3618
- status: z11.enum(["Cancelled", "Open"]).optional(),
3619
- requestingUserId: z11.string().optional()
3642
+ deadlineAt: z12.string().datetime({ offset: true }).optional(),
3643
+ addImpactedCards: z12.array(z12.string().min(1)).max(50).optional(),
3644
+ removeImpactedCards: z12.array(z12.string().min(1)).max(50).optional(),
3645
+ status: z12.enum(["Cancelled", "Open"]).optional(),
3646
+ requestingUserId: z12.string().optional()
3620
3647
  });
3621
3648
  var EVALUATE_MAX_QUESTIONS = 32;
3622
3649
  var EVALUATE_MAX_ITEMS = 100;
@@ -3624,29 +3651,29 @@ var EVALUATE_ITEM_MAX_CHARS = 8e3;
3624
3651
  var EVALUATE_REQUEST_MAX_CHARS = 4e5;
3625
3652
  var TEXT_MAX = 1e3;
3626
3653
  var QUESTION_KEY = /^[A-Za-z0-9_-]{1,64}$/;
3627
- var EvaluateQuestionSchema = z12.object({
3628
- key: z12.string().regex(QUESTION_KEY, "key must be 1-64 letters, digits, _ or -"),
3629
- type: z12.enum(["noul", "choice", "score"]),
3630
- instructions: z12.string().min(1).max(4e3),
3631
- options: z12.array(
3632
- z12.object({
3633
- key: z12.string().min(1).max(200),
3634
- description: z12.string().min(1).max(TEXT_MAX)
3654
+ var EvaluateQuestionSchema = z13.object({
3655
+ key: z13.string().regex(QUESTION_KEY, "key must be 1-64 letters, digits, _ or -"),
3656
+ type: z13.enum(["noul", "choice", "score"]),
3657
+ instructions: z13.string().min(1).max(4e3),
3658
+ options: z13.array(
3659
+ z13.object({
3660
+ key: z13.string().min(1).max(200),
3661
+ description: z13.string().min(1).max(TEXT_MAX)
3635
3662
  })
3636
3663
  ).optional(),
3637
- levels: z12.array(z12.string().min(1).max(TEXT_MAX)).optional()
3664
+ levels: z13.array(z13.string().min(1).max(TEXT_MAX)).optional()
3638
3665
  }).superRefine((q, ctx) => {
3639
3666
  if (q.type === "choice") {
3640
3667
  const n = q.options?.length ?? 0;
3641
3668
  if (n < 2 || n > 255) {
3642
3669
  ctx.addIssue({
3643
- code: z12.ZodIssueCode.custom,
3670
+ code: z13.ZodIssueCode.custom,
3644
3671
  path: ["options"],
3645
3672
  message: "a choice question needs 2-255 options"
3646
3673
  });
3647
3674
  } else if (new Set(q.options?.map((o) => o.key)).size !== n) {
3648
3675
  ctx.addIssue({
3649
- code: z12.ZodIssueCode.custom,
3676
+ code: z13.ZodIssueCode.custom,
3650
3677
  path: ["options"],
3651
3678
  message: "option keys must be unique"
3652
3679
  });
@@ -3656,36 +3683,36 @@ var EvaluateQuestionSchema = z12.object({
3656
3683
  const n = q.levels?.length ?? 0;
3657
3684
  if (n < 2 || n > 10) {
3658
3685
  ctx.addIssue({
3659
- code: z12.ZodIssueCode.custom,
3686
+ code: z13.ZodIssueCode.custom,
3660
3687
  path: ["levels"],
3661
3688
  message: "a score question needs 2-10 levels"
3662
3689
  });
3663
3690
  }
3664
3691
  }
3665
3692
  });
3666
- var EvaluateQuestionsRequestSchema = z12.object({
3667
- projectId: z12.string(),
3668
- state: z12.string().max(JEV_STATE_MAX_CHARS).optional(),
3669
- items: z12.array(z12.string().max(EVALUATE_ITEM_MAX_CHARS)).max(EVALUATE_MAX_ITEMS).optional(),
3670
- questions: z12.array(EvaluateQuestionSchema).min(1).max(EVALUATE_MAX_QUESTIONS)
3693
+ var EvaluateQuestionsRequestSchema = z13.object({
3694
+ projectId: z13.string(),
3695
+ state: z13.string().max(JEV_STATE_MAX_CHARS).optional(),
3696
+ items: z13.array(z13.string().max(EVALUATE_ITEM_MAX_CHARS)).max(EVALUATE_MAX_ITEMS).optional(),
3697
+ questions: z13.array(EvaluateQuestionSchema).min(1).max(EVALUATE_MAX_QUESTIONS)
3671
3698
  }).superRefine((req, ctx) => {
3672
3699
  if (req.state === void 0 && (!req.items || req.items.length === 0)) {
3673
3700
  ctx.addIssue({
3674
- code: z12.ZodIssueCode.custom,
3701
+ code: z13.ZodIssueCode.custom,
3675
3702
  path: ["state"],
3676
3703
  message: "pass state, or a non-empty items array"
3677
3704
  });
3678
3705
  }
3679
3706
  if (JSON.stringify(req).length > EVALUATE_REQUEST_MAX_CHARS) {
3680
3707
  ctx.addIssue({
3681
- code: z12.ZodIssueCode.custom,
3708
+ code: z13.ZodIssueCode.custom,
3682
3709
  path: [],
3683
3710
  message: `the request is over ${EVALUATE_REQUEST_MAX_CHARS} characters; split the items across calls`
3684
3711
  });
3685
3712
  }
3686
3713
  if (new Set(req.questions.map((q) => q.key)).size !== req.questions.length) {
3687
3714
  ctx.addIssue({
3688
- code: z12.ZodIssueCode.custom,
3715
+ code: z13.ZodIssueCode.custom,
3689
3716
  path: ["questions"],
3690
3717
  message: "question keys must be unique"
3691
3718
  });
@@ -3723,129 +3750,129 @@ var MEETING_TITLE_MAX = 200;
3723
3750
  var MEETING_OCCURRED_AT_MIN_YEAR = 2e3;
3724
3751
  var MEETING_OCCURRED_AT_MAX_FUTURE_MS = 48 * 60 * 60 * 1e3;
3725
3752
  var OCCURRED_AT_RANGE_MESSAGE = `occurredAt must be a real date: no earlier than ${MEETING_OCCURRED_AT_MIN_YEAR}, and no more than 48 hours in the future.`;
3726
- var MeetingOccurredAtSchema = z13.string().datetime().refine((value) => {
3753
+ var MeetingOccurredAtSchema = z14.string().datetime().refine((value) => {
3727
3754
  const ms = Date.parse(value);
3728
3755
  if (Number.isNaN(ms)) return false;
3729
3756
  if (ms > Date.now() + MEETING_OCCURRED_AT_MAX_FUTURE_MS) return false;
3730
3757
  return new Date(ms).getUTCFullYear() >= MEETING_OCCURRED_AT_MIN_YEAR;
3731
3758
  }, OCCURRED_AT_RANGE_MESSAGE);
3732
- var CreateMeetingFromTranscriptRequestSchema = z13.object({
3733
- projectId: z13.string().cuid(),
3734
- rawText: z13.string().min(1).max(MEETING_TRANSCRIPT_MAX_CHARS),
3735
- title: z13.string().min(1).max(MEETING_TITLE_MAX).optional(),
3759
+ var CreateMeetingFromTranscriptRequestSchema = z14.object({
3760
+ projectId: z14.string().cuid(),
3761
+ rawText: z14.string().min(1).max(MEETING_TRANSCRIPT_MAX_CHARS),
3762
+ title: z14.string().min(1).max(MEETING_TITLE_MAX).optional(),
3736
3763
  /** ISO 8601. Defaults to now when the source carries no date. */
3737
3764
  occurredAt: MeetingOccurredAtSchema.optional(),
3738
3765
  /** Override auto-detection. Rarely needed; detection handles the three formats. */
3739
- format: z13.enum(["text", "vtt", "srt"]).optional(),
3740
- source: z13.enum(["manual", "slack"]).optional()
3766
+ format: z14.enum(["text", "vtt", "srt"]).optional(),
3767
+ source: z14.enum(["manual", "slack"]).optional()
3741
3768
  });
3742
- var GetMeetingRequestSchema = z13.object({
3743
- projectId: z13.string().cuid(),
3744
- meetingId: z13.string().cuid()
3769
+ var GetMeetingRequestSchema = z14.object({
3770
+ projectId: z14.string().cuid(),
3771
+ meetingId: z14.string().cuid()
3745
3772
  });
3746
- var UpdateMeetingRequestSchema = z13.object({
3747
- projectId: z13.string().cuid(),
3748
- meetingId: z13.string().cuid(),
3749
- title: z13.string().min(1).max(MEETING_TITLE_MAX).optional(),
3773
+ var UpdateMeetingRequestSchema = z14.object({
3774
+ projectId: z14.string().cuid(),
3775
+ meetingId: z14.string().cuid(),
3776
+ title: z14.string().min(1).max(MEETING_TITLE_MAX).optional(),
3750
3777
  occurredAt: MeetingOccurredAtSchema.optional()
3751
3778
  });
3752
- var RegenerateMeetingSummaryRequestSchema = z13.object({
3753
- projectId: z13.string().cuid(),
3754
- meetingId: z13.string().cuid()
3779
+ var RegenerateMeetingSummaryRequestSchema = z14.object({
3780
+ projectId: z14.string().cuid(),
3781
+ meetingId: z14.string().cuid()
3755
3782
  });
3756
- var DeleteMeetingRequestSchema = z13.object({
3757
- projectId: z13.string().cuid(),
3758
- meetingId: z13.string().cuid()
3783
+ var DeleteMeetingRequestSchema = z14.object({
3784
+ projectId: z14.string().cuid(),
3785
+ meetingId: z14.string().cuid()
3759
3786
  });
3760
- var checklistTitle = z13.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX);
3761
- var ListMeetingChecklistRequestSchema = z13.object({
3762
- projectId: z13.string().cuid(),
3763
- meetingId: z13.string().cuid()
3787
+ var checklistTitle = z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX);
3788
+ var ListMeetingChecklistRequestSchema = z14.object({
3789
+ projectId: z14.string().cuid(),
3790
+ meetingId: z14.string().cuid()
3764
3791
  });
3765
- var AddMeetingChecklistItemsRequestSchema = z13.object({
3766
- projectId: z13.string().cuid(),
3767
- meetingId: z13.string().cuid(),
3768
- items: z13.array(z13.object({ title: checklistTitle })).min(1).max(50)
3792
+ var AddMeetingChecklistItemsRequestSchema = z14.object({
3793
+ projectId: z14.string().cuid(),
3794
+ meetingId: z14.string().cuid(),
3795
+ items: z14.array(z14.object({ title: checklistTitle })).min(1).max(50)
3769
3796
  });
3770
- var UpdateMeetingChecklistItemRequestSchema = z13.object({
3771
- projectId: z13.string().cuid(),
3772
- meetingId: z13.string().cuid(),
3773
- itemId: z13.string().cuid(),
3797
+ var UpdateMeetingChecklistItemRequestSchema = z14.object({
3798
+ projectId: z14.string().cuid(),
3799
+ meetingId: z14.string().cuid(),
3800
+ itemId: z14.string().cuid(),
3774
3801
  title: checklistTitle.optional(),
3775
- ordinal: z13.number().int().min(0).optional(),
3802
+ ordinal: z14.number().int().min(0).optional(),
3776
3803
  /** Explicit null clears the link; undefined leaves it alone. */
3777
- linkedTaskId: z13.string().cuid().nullable().optional()
3804
+ linkedTaskId: z14.string().cuid().nullable().optional()
3778
3805
  }).refine(
3779
3806
  (v) => v.title !== void 0 || v.ordinal !== void 0 || v.linkedTaskId !== void 0,
3780
3807
  "Pass at least one of title, ordinal, or linkedTaskId."
3781
3808
  );
3782
- var DeleteMeetingChecklistItemRequestSchema = z13.object({
3783
- projectId: z13.string().cuid(),
3784
- meetingId: z13.string().cuid(),
3785
- itemId: z13.string().cuid()
3786
- });
3787
- var SetMeetingChecklistItemCheckedRequestSchema = z13.object({
3788
- projectId: z13.string().cuid(),
3789
- meetingId: z13.string().cuid(),
3790
- itemId: z13.string().cuid(),
3791
- checked: z13.boolean(),
3809
+ var DeleteMeetingChecklistItemRequestSchema = z14.object({
3810
+ projectId: z14.string().cuid(),
3811
+ meetingId: z14.string().cuid(),
3812
+ itemId: z14.string().cuid()
3813
+ });
3814
+ var SetMeetingChecklistItemCheckedRequestSchema = z14.object({
3815
+ projectId: z14.string().cuid(),
3816
+ meetingId: z14.string().cuid(),
3817
+ itemId: z14.string().cuid(),
3818
+ checked: z14.boolean(),
3792
3819
  /** Attach the card in the same call that ticks the item. */
3793
- linkedTaskId: z13.string().cuid().nullable().optional()
3820
+ linkedTaskId: z14.string().cuid().nullable().optional()
3794
3821
  });
3795
- var ListMeetingsRequestSchema = z13.object({
3796
- projectId: z13.string().cuid(),
3797
- limit: z13.number().int().min(1).max(50).optional(),
3798
- search: z13.string().max(200).optional()
3822
+ var ListMeetingsRequestSchema = z14.object({
3823
+ projectId: z14.string().cuid(),
3824
+ limit: z14.number().int().min(1).max(50).optional(),
3825
+ search: z14.string().max(200).optional()
3799
3826
  });
3800
- var ReadMeetingTranscriptRequestSchema = z13.object({
3801
- projectId: z13.string().cuid(),
3802
- meetingId: z13.string().cuid(),
3803
- offset: z13.number().int().min(0).optional(),
3804
- limit: z13.number().int().min(1).max(500).optional()
3827
+ var ReadMeetingTranscriptRequestSchema = z14.object({
3828
+ projectId: z14.string().cuid(),
3829
+ meetingId: z14.string().cuid(),
3830
+ offset: z14.number().int().min(0).optional(),
3831
+ limit: z14.number().int().min(1).max(500).optional()
3805
3832
  });
3806
3833
  var MEETING_SUMMARY_MAX_CHARS = 5e4;
3807
- var AddProjectMeetingChecklistItemsRequestSchema = z13.object({
3808
- projectId: z13.string().cuid(),
3809
- meetingId: z13.string().cuid(),
3810
- items: z13.array(z13.object({ title: z13.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX) })).min(1).max(50),
3811
- requestingUserId: z13.string().optional()
3812
- });
3813
- var CheckProjectMeetingChecklistItemRequestSchema = z13.object({
3814
- projectId: z13.string().cuid(),
3815
- meetingId: z13.string().cuid(),
3816
- title: z13.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3817
- checked: z13.boolean(),
3834
+ var AddProjectMeetingChecklistItemsRequestSchema = z14.object({
3835
+ projectId: z14.string().cuid(),
3836
+ meetingId: z14.string().cuid(),
3837
+ items: z14.array(z14.object({ title: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX) })).min(1).max(50),
3838
+ requestingUserId: z14.string().optional()
3839
+ });
3840
+ var CheckProjectMeetingChecklistItemRequestSchema = z14.object({
3841
+ projectId: z14.string().cuid(),
3842
+ meetingId: z14.string().cuid(),
3843
+ title: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3844
+ checked: z14.boolean(),
3818
3845
  /** Card id or slug. Resolved server-side and required to be in the project. */
3819
- linkedTask: z13.string().min(1).optional(),
3820
- requestingUserId: z13.string().optional()
3821
- });
3822
- var EditProjectMeetingChecklistItemRequestSchema = z13.object({
3823
- projectId: z13.string().cuid(),
3824
- meetingId: z13.string().cuid(),
3825
- title: z13.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3826
- newTitle: z13.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3827
- requestingUserId: z13.string().optional()
3828
- });
3829
- var RemoveProjectMeetingChecklistItemRequestSchema = z13.object({
3830
- projectId: z13.string().cuid(),
3831
- meetingId: z13.string().cuid(),
3832
- title: z13.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3833
- requestingUserId: z13.string().optional()
3834
- });
3835
- var CreateProjectMeetingRequestSchema = z13.object({
3836
- projectId: z13.string().cuid(),
3837
- rawText: z13.string().min(1).max(MEETING_TRANSCRIPT_MAX_CHARS),
3838
- title: z13.string().min(1).max(MEETING_TITLE_MAX).optional(),
3846
+ linkedTask: z14.string().min(1).optional(),
3847
+ requestingUserId: z14.string().optional()
3848
+ });
3849
+ var EditProjectMeetingChecklistItemRequestSchema = z14.object({
3850
+ projectId: z14.string().cuid(),
3851
+ meetingId: z14.string().cuid(),
3852
+ title: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3853
+ newTitle: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3854
+ requestingUserId: z14.string().optional()
3855
+ });
3856
+ var RemoveProjectMeetingChecklistItemRequestSchema = z14.object({
3857
+ projectId: z14.string().cuid(),
3858
+ meetingId: z14.string().cuid(),
3859
+ title: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3860
+ requestingUserId: z14.string().optional()
3861
+ });
3862
+ var CreateProjectMeetingRequestSchema = z14.object({
3863
+ projectId: z14.string().cuid(),
3864
+ rawText: z14.string().min(1).max(MEETING_TRANSCRIPT_MAX_CHARS),
3865
+ title: z14.string().min(1).max(MEETING_TITLE_MAX).optional(),
3839
3866
  occurredAt: MeetingOccurredAtSchema.optional(),
3840
- requestingUserId: z13.string().optional()
3867
+ requestingUserId: z14.string().optional()
3841
3868
  });
3842
- var UpdateProjectMeetingRequestSchema = z13.object({
3843
- projectId: z13.string().cuid(),
3844
- meetingId: z13.string().cuid(),
3845
- title: z13.string().min(1).max(MEETING_TITLE_MAX).optional(),
3869
+ var UpdateProjectMeetingRequestSchema = z14.object({
3870
+ projectId: z14.string().cuid(),
3871
+ meetingId: z14.string().cuid(),
3872
+ title: z14.string().min(1).max(MEETING_TITLE_MAX).optional(),
3846
3873
  occurredAt: MeetingOccurredAtSchema.optional(),
3847
- summary: z13.string().min(1).max(MEETING_SUMMARY_MAX_CHARS).optional(),
3848
- requestingUserId: z13.string().optional()
3874
+ summary: z14.string().min(1).max(MEETING_SUMMARY_MAX_CHARS).optional(),
3875
+ requestingUserId: z14.string().optional()
3849
3876
  }).refine(
3850
3877
  (v) => v.title !== void 0 || v.occurredAt !== void 0 || v.summary !== void 0,
3851
3878
  "Pass at least one of title, occurredAt, or summary."
@@ -3897,6 +3924,11 @@ These rules do NOT apply to code, code comments, commit messages, or quoted outp
3897
3924
  var CLAUDESPACE_WORKLOAD_LABEL = "rc-workload";
3898
3925
  var CLAUDESPACE_WORKLOAD_VALUE = "claudespace";
3899
3926
  var CONVEYOR_POD_SELECTOR = `${CLAUDESPACE_WORKLOAD_LABEL}=${CLAUDESPACE_WORKLOAD_VALUE}`;
3927
+ var PERSONAL_LOCAL_REGISTRY_NAMESPACE = "conveyor-system";
3928
+ var PERSONAL_LOCAL_REGISTRY_NAME = "conveyor-registry";
3929
+ var PERSONAL_LOCAL_REGISTRY_PORT = 5e3;
3930
+ var PERSONAL_LOCAL_REGISTRY_HOST = `${PERSONAL_LOCAL_REGISTRY_NAME}.${PERSONAL_LOCAL_REGISTRY_NAMESPACE}.svc.cluster.local:${PERSONAL_LOCAL_REGISTRY_PORT}`;
3931
+ var PERSONAL_LOCAL_REGISTRY_NODE_ENDPOINT = `http://127.0.0.1:${PERSONAL_LOCAL_REGISTRY_PORT}`;
3900
3932
  var MS_PER_DAY = 24 * 60 * 60 * 1e3;
3901
3933
  var MENTION_TOKEN_REGEX = /@\[(\w+):([^\]]+)\]/g;
3902
3934
  function parseMentions(content) {