@rallycry/conveyor-agent 11.0.39 → 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.
- package/dist/{chunk-B4YQABDZ.js → chunk-CG7AHC25.js} +400 -368
- package/dist/{chunk-WQC2YQT4.js → chunk-G2CE3NFY.js} +1 -1
- package/dist/{chunk-735H53UF.js → chunk-SELXSOT7.js} +142 -56
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{serve-boot-KXWMUVAG.js → serve-boot-YARBQBSA.js} +2 -2
- package/package.json +2 -2
- package/skills/conveyor-build/SKILL.md +14 -5
- package/skills/conveyor-release-review/SKILL.md +372 -0
- package/skills/conveyor-release-review/references/dimensions.md +289 -0
- package/skills/conveyor-release-review/references/report-and-cards.md +183 -0
- package/skills/conveyor-workflows/SKILL.md +1 -0
|
@@ -1530,14 +1530,14 @@ ${q.question}${q.options.length ? "\n" + q.options.map((o) => `- ${o.label}: ${o
|
|
|
1530
1530
|
}
|
|
1531
1531
|
};
|
|
1532
1532
|
|
|
1533
|
-
// ../shared/dist/chunk-
|
|
1533
|
+
// ../shared/dist/chunk-BH4SLNGU.js
|
|
1534
1534
|
import { z } from "zod";
|
|
1535
1535
|
import { z as z2 } from "zod";
|
|
1536
|
-
var DEFAULT_SONNET_MODEL = "claude-sonnet-5";
|
|
1536
|
+
var DEFAULT_SONNET_MODEL = "claude-sonnet-5-5";
|
|
1537
1537
|
var DEFAULT_OPUS_MODEL = "claude-opus-5-5";
|
|
1538
1538
|
var DEFAULT_HAIKU_MODEL = "claude-haiku-4-5-20251001";
|
|
1539
1539
|
var FABLE_MODEL = "claude-fable-5-1";
|
|
1540
|
-
var PREVIOUS_SONNET_MODEL = "claude-sonnet-
|
|
1540
|
+
var PREVIOUS_SONNET_MODEL = "claude-sonnet-5";
|
|
1541
1541
|
var PREVIOUS_OPUS_MODEL = "claude-opus-5";
|
|
1542
1542
|
function formatModelId(provider, model) {
|
|
1543
1543
|
return `${provider}/${model}`;
|
|
@@ -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
|
|
3261
|
-
|
|
3262
|
-
|
|
3239
|
+
var ListProjectTaskFilesRequestSchema = z8.object({
|
|
3240
|
+
projectId: z8.string(),
|
|
3241
|
+
taskId: z8.string()
|
|
3263
3242
|
});
|
|
3264
|
-
var
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
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 =
|
|
3285
|
-
type:
|
|
3286
|
-
path:
|
|
3287
|
-
label:
|
|
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:
|
|
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:
|
|
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 =
|
|
3298
|
-
var overviewPathSchema =
|
|
3299
|
-
var CreateProjectTagRequestSchema =
|
|
3300
|
-
projectId:
|
|
3301
|
-
name:
|
|
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:
|
|
3304
|
-
overview:
|
|
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:
|
|
3334
|
+
contextPaths: z10.array(ProjectTagContextPathSchema).max(20).optional(),
|
|
3308
3335
|
/** Parents to link at create time (multi-parent DAG). */
|
|
3309
|
-
parentTagIds:
|
|
3310
|
-
requestingUserId:
|
|
3336
|
+
parentTagIds: z10.array(z10.string()).max(25).optional(),
|
|
3337
|
+
requestingUserId: z10.string().optional()
|
|
3311
3338
|
});
|
|
3312
|
-
var UpdateProjectTagRequestSchema =
|
|
3313
|
-
projectId:
|
|
3314
|
-
tagId:
|
|
3315
|
-
name:
|
|
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:
|
|
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:
|
|
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:
|
|
3350
|
+
contextPaths: z10.array(ProjectTagContextPathSchema).max(20).optional(),
|
|
3324
3351
|
/** Full-set replacement of the tag's parent tags (multi-parent DAG). */
|
|
3325
|
-
parentTagIds:
|
|
3352
|
+
parentTagIds: z10.array(z10.string()).max(25).optional(),
|
|
3326
3353
|
/** One-line revision provenance, recorded in the tag's history. */
|
|
3327
|
-
reason:
|
|
3354
|
+
reason: z10.string().max(TAG_REASON_MAX).optional(),
|
|
3328
3355
|
/** Card the caller was working in — stamped into the revision history. */
|
|
3329
|
-
taskId:
|
|
3330
|
-
requestingUserId:
|
|
3356
|
+
taskId: z10.string().optional(),
|
|
3357
|
+
requestingUserId: z10.string().optional()
|
|
3331
3358
|
});
|
|
3332
|
-
var PostToProjectChatRequestSchema =
|
|
3333
|
-
projectId:
|
|
3334
|
-
content:
|
|
3335
|
-
requestingUserId:
|
|
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:
|
|
3338
|
-
});
|
|
3339
|
-
var StartTagAuditRequestSchema =
|
|
3340
|
-
projectId:
|
|
3341
|
-
requestingUserId:
|
|
3342
|
-
});
|
|
3343
|
-
var StartTaskAuditRequestSchema =
|
|
3344
|
-
projectId:
|
|
3345
|
-
taskIds:
|
|
3346
|
-
requestingUserId:
|
|
3347
|
-
});
|
|
3348
|
-
var GetActiveAuditSessionsRequestSchema =
|
|
3349
|
-
projectId:
|
|
3350
|
-
});
|
|
3351
|
-
var ReportTaskAuditResultRequestSchema =
|
|
3352
|
-
projectId:
|
|
3353
|
-
taskId:
|
|
3354
|
-
summary:
|
|
3355
|
-
turnGrades:
|
|
3356
|
-
|
|
3357
|
-
turnIndex:
|
|
3358
|
-
phase:
|
|
3359
|
-
grade:
|
|
3360
|
-
reasoning:
|
|
3361
|
-
eventType:
|
|
3362
|
-
eventSummary:
|
|
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:
|
|
3366
|
-
buildingAccuracy:
|
|
3367
|
-
humanAccuracy:
|
|
3368
|
-
planningCorrect:
|
|
3369
|
-
planningNeutral:
|
|
3370
|
-
planningBlunder:
|
|
3371
|
-
buildingCorrect:
|
|
3372
|
-
buildingNeutral:
|
|
3373
|
-
buildingBlunder:
|
|
3374
|
-
humanCorrect:
|
|
3375
|
-
humanNeutral:
|
|
3376
|
-
humanBlunder:
|
|
3377
|
-
humanEvaluations:
|
|
3378
|
-
|
|
3379
|
-
messageIndex:
|
|
3380
|
-
rating:
|
|
3381
|
-
reasoning:
|
|
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:
|
|
3385
|
-
auditCostUsd:
|
|
3386
|
-
model:
|
|
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:
|
|
3415
|
+
error: z10.string().optional()
|
|
3389
3416
|
});
|
|
3390
|
-
var GetTaskAuditsRequestSchema =
|
|
3391
|
-
projectId:
|
|
3392
|
-
limit:
|
|
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 =
|
|
3395
|
-
projectId:
|
|
3396
|
-
auditId:
|
|
3421
|
+
var GetTaskAuditRequestSchema = z10.object({
|
|
3422
|
+
projectId: z10.string(),
|
|
3423
|
+
auditId: z10.string()
|
|
3397
3424
|
});
|
|
3398
|
-
var GetTaskAuditAggregatesRequestSchema =
|
|
3399
|
-
projectId:
|
|
3425
|
+
var GetTaskAuditAggregatesRequestSchema = z10.object({
|
|
3426
|
+
projectId: z10.string()
|
|
3400
3427
|
});
|
|
3401
|
-
var DeleteTaskAuditRequestSchema =
|
|
3402
|
-
projectId:
|
|
3403
|
-
auditId:
|
|
3404
|
-
requestingUserId:
|
|
3428
|
+
var DeleteTaskAuditRequestSchema = z10.object({
|
|
3429
|
+
projectId: z10.string(),
|
|
3430
|
+
auditId: z10.string(),
|
|
3431
|
+
requestingUserId: z10.string().optional()
|
|
3405
3432
|
});
|
|
3406
|
-
var MarkInitialPromptSubmittedRequestSchema =
|
|
3407
|
-
sessionId:
|
|
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 =
|
|
3462
|
-
var optionInputSchema =
|
|
3463
|
-
label:
|
|
3464
|
-
description:
|
|
3465
|
-
kind:
|
|
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 =
|
|
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 =
|
|
3472
|
-
projectId:
|
|
3498
|
+
var CreateDecisionRequestSchema = z11.object({
|
|
3499
|
+
projectId: z11.string().cuid("Invalid project ID"),
|
|
3473
3500
|
/** The question, as one plain sentence. */
|
|
3474
|
-
title:
|
|
3475
|
-
description:
|
|
3476
|
-
context:
|
|
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:
|
|
3480
|
-
deadlineHours:
|
|
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:
|
|
3483
|
-
tagNames:
|
|
3484
|
-
raisedByTaskId:
|
|
3485
|
-
raisedByPrNumber:
|
|
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 =
|
|
3514
|
+
var VoteDecisionRequestSchema = z11.object({
|
|
3488
3515
|
decisionId: decisionIdSchema,
|
|
3489
|
-
optionId:
|
|
3490
|
-
reason:
|
|
3491
|
-
source:
|
|
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 =
|
|
3520
|
+
var RemoveDecisionVoteRequestSchema = z11.object({
|
|
3494
3521
|
decisionId: decisionIdSchema
|
|
3495
3522
|
});
|
|
3496
|
-
var ResolveDecisionRequestSchema =
|
|
3523
|
+
var ResolveDecisionRequestSchema = z11.object({
|
|
3497
3524
|
decisionId: decisionIdSchema,
|
|
3498
|
-
chosenOptionId:
|
|
3499
|
-
resolution:
|
|
3500
|
-
resolutionNotes:
|
|
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 =
|
|
3529
|
+
var CancelDecisionRequestSchema = z11.object({
|
|
3503
3530
|
decisionId: decisionIdSchema,
|
|
3504
3531
|
/** Why it is being dropped. Posted to the decision thread. */
|
|
3505
|
-
reason:
|
|
3532
|
+
reason: z11.string().max(DECISION_RESOLUTION_MAX).optional()
|
|
3506
3533
|
});
|
|
3507
|
-
var BulkDecisionIdsRequestSchema =
|
|
3508
|
-
projectId:
|
|
3509
|
-
decisionIds:
|
|
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 =
|
|
3538
|
+
var ReopenDecisionRequestSchema = z11.object({
|
|
3512
3539
|
decisionId: decisionIdSchema,
|
|
3513
|
-
deadlineHours:
|
|
3540
|
+
deadlineHours: z11.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional()
|
|
3514
3541
|
});
|
|
3515
|
-
var UpdateDecisionRequestSchema =
|
|
3542
|
+
var UpdateDecisionRequestSchema = z11.object({
|
|
3516
3543
|
decisionId: decisionIdSchema,
|
|
3517
|
-
title:
|
|
3518
|
-
description:
|
|
3519
|
-
context:
|
|
3520
|
-
deadlineAt:
|
|
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:
|
|
3524
|
-
addImpactedCardRefs:
|
|
3525
|
-
removeImpactedCardIds:
|
|
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 =
|
|
3554
|
+
var GetDecisionRequestSchema = z11.object({
|
|
3528
3555
|
/** cuid or slug. A slug needs `projectId` to resolve unambiguously. */
|
|
3529
|
-
decisionId:
|
|
3530
|
-
projectId:
|
|
3556
|
+
decisionId: z11.string().min(1),
|
|
3557
|
+
projectId: z11.string().cuid().optional()
|
|
3531
3558
|
});
|
|
3532
|
-
var ListDecisionsRequestSchema =
|
|
3533
|
-
projectId:
|
|
3534
|
-
status:
|
|
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:
|
|
3563
|
+
tag: z11.string().min(1).optional(),
|
|
3537
3564
|
/** Decisions that this card is blocked by (cuid or slug). */
|
|
3538
|
-
cardId:
|
|
3539
|
-
query:
|
|
3540
|
-
limit:
|
|
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 =
|
|
3543
|
-
label:
|
|
3544
|
-
description:
|
|
3545
|
-
kind:
|
|
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 =
|
|
3548
|
-
var deadlineHours =
|
|
3549
|
-
var CreateProjectDecisionRequestSchema =
|
|
3550
|
-
projectId:
|
|
3551
|
-
question:
|
|
3552
|
-
summary:
|
|
3553
|
-
context:
|
|
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:
|
|
3582
|
+
defaultOption: z12.number().int().min(1).max(DECISION_OPTIONS_MAX),
|
|
3556
3583
|
deadlineHours,
|
|
3557
|
-
impactedCards:
|
|
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:
|
|
3564
|
-
sessionId:
|
|
3565
|
-
tagNames:
|
|
3566
|
-
raisedByPr:
|
|
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:
|
|
3595
|
+
raisedByCard: z12.string().min(1).optional(),
|
|
3569
3596
|
/** Absolute deadline (ISO 8601). Wins over `deadlineHours` when both are sent. */
|
|
3570
|
-
deadlineAt:
|
|
3571
|
-
requestingUserId:
|
|
3597
|
+
deadlineAt: z12.string().datetime({ offset: true }).optional(),
|
|
3598
|
+
requestingUserId: z12.string().optional()
|
|
3572
3599
|
});
|
|
3573
|
-
var ListProjectDecisionsRequestSchema =
|
|
3574
|
-
projectId:
|
|
3575
|
-
status:
|
|
3576
|
-
tag:
|
|
3577
|
-
card:
|
|
3578
|
-
query:
|
|
3579
|
-
limit:
|
|
3580
|
-
requestingUserId:
|
|
3581
|
-
});
|
|
3582
|
-
var GetProjectDecisionRequestSchema =
|
|
3583
|
-
projectId:
|
|
3584
|
-
decision:
|
|
3585
|
-
requestingUserId:
|
|
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 =
|
|
3588
|
-
projectId:
|
|
3589
|
-
decision:
|
|
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:
|
|
3592
|
-
reason:
|
|
3593
|
-
requestingUserId:
|
|
3594
|
-
});
|
|
3595
|
-
var ResolveProjectDecisionRequestSchema =
|
|
3596
|
-
projectId:
|
|
3597
|
-
decision:
|
|
3598
|
-
option:
|
|
3599
|
-
resolution:
|
|
3600
|
-
notes:
|
|
3601
|
-
requestingUserId:
|
|
3602
|
-
});
|
|
3603
|
-
var UpdateProjectDecisionRequestSchema =
|
|
3604
|
-
projectId:
|
|
3605
|
-
decision:
|
|
3606
|
-
question:
|
|
3607
|
-
summary:
|
|
3608
|
-
context:
|
|
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:
|
|
3612
|
-
tagNames:
|
|
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:
|
|
3616
|
-
addImpactedCards:
|
|
3617
|
-
removeImpactedCards:
|
|
3618
|
-
status:
|
|
3619
|
-
requestingUserId:
|
|
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 =
|
|
3628
|
-
key:
|
|
3629
|
-
type:
|
|
3630
|
-
instructions:
|
|
3631
|
-
options:
|
|
3632
|
-
|
|
3633
|
-
key:
|
|
3634
|
-
description:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 =
|
|
3667
|
-
projectId:
|
|
3668
|
-
state:
|
|
3669
|
-
items:
|
|
3670
|
-
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:
|
|
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:
|
|
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:
|
|
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 =
|
|
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 =
|
|
3733
|
-
projectId:
|
|
3734
|
-
rawText:
|
|
3735
|
-
title:
|
|
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:
|
|
3740
|
-
source:
|
|
3766
|
+
format: z14.enum(["text", "vtt", "srt"]).optional(),
|
|
3767
|
+
source: z14.enum(["manual", "slack"]).optional()
|
|
3741
3768
|
});
|
|
3742
|
-
var GetMeetingRequestSchema =
|
|
3743
|
-
projectId:
|
|
3744
|
-
meetingId:
|
|
3769
|
+
var GetMeetingRequestSchema = z14.object({
|
|
3770
|
+
projectId: z14.string().cuid(),
|
|
3771
|
+
meetingId: z14.string().cuid()
|
|
3745
3772
|
});
|
|
3746
|
-
var UpdateMeetingRequestSchema =
|
|
3747
|
-
projectId:
|
|
3748
|
-
meetingId:
|
|
3749
|
-
title:
|
|
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 =
|
|
3753
|
-
projectId:
|
|
3754
|
-
meetingId:
|
|
3779
|
+
var RegenerateMeetingSummaryRequestSchema = z14.object({
|
|
3780
|
+
projectId: z14.string().cuid(),
|
|
3781
|
+
meetingId: z14.string().cuid()
|
|
3755
3782
|
});
|
|
3756
|
-
var DeleteMeetingRequestSchema =
|
|
3757
|
-
projectId:
|
|
3758
|
-
meetingId:
|
|
3783
|
+
var DeleteMeetingRequestSchema = z14.object({
|
|
3784
|
+
projectId: z14.string().cuid(),
|
|
3785
|
+
meetingId: z14.string().cuid()
|
|
3759
3786
|
});
|
|
3760
|
-
var checklistTitle =
|
|
3761
|
-
var ListMeetingChecklistRequestSchema =
|
|
3762
|
-
projectId:
|
|
3763
|
-
meetingId:
|
|
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 =
|
|
3766
|
-
projectId:
|
|
3767
|
-
meetingId:
|
|
3768
|
-
items:
|
|
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 =
|
|
3771
|
-
projectId:
|
|
3772
|
-
meetingId:
|
|
3773
|
-
itemId:
|
|
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:
|
|
3802
|
+
ordinal: z14.number().int().min(0).optional(),
|
|
3776
3803
|
/** Explicit null clears the link; undefined leaves it alone. */
|
|
3777
|
-
linkedTaskId:
|
|
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 =
|
|
3783
|
-
projectId:
|
|
3784
|
-
meetingId:
|
|
3785
|
-
itemId:
|
|
3786
|
-
});
|
|
3787
|
-
var SetMeetingChecklistItemCheckedRequestSchema =
|
|
3788
|
-
projectId:
|
|
3789
|
-
meetingId:
|
|
3790
|
-
itemId:
|
|
3791
|
-
checked:
|
|
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:
|
|
3820
|
+
linkedTaskId: z14.string().cuid().nullable().optional()
|
|
3794
3821
|
});
|
|
3795
|
-
var ListMeetingsRequestSchema =
|
|
3796
|
-
projectId:
|
|
3797
|
-
limit:
|
|
3798
|
-
search:
|
|
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 =
|
|
3801
|
-
projectId:
|
|
3802
|
-
meetingId:
|
|
3803
|
-
offset:
|
|
3804
|
-
limit:
|
|
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 =
|
|
3808
|
-
projectId:
|
|
3809
|
-
meetingId:
|
|
3810
|
-
items:
|
|
3811
|
-
requestingUserId:
|
|
3812
|
-
});
|
|
3813
|
-
var CheckProjectMeetingChecklistItemRequestSchema =
|
|
3814
|
-
projectId:
|
|
3815
|
-
meetingId:
|
|
3816
|
-
title:
|
|
3817
|
-
checked:
|
|
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:
|
|
3820
|
-
requestingUserId:
|
|
3821
|
-
});
|
|
3822
|
-
var EditProjectMeetingChecklistItemRequestSchema =
|
|
3823
|
-
projectId:
|
|
3824
|
-
meetingId:
|
|
3825
|
-
title:
|
|
3826
|
-
newTitle:
|
|
3827
|
-
requestingUserId:
|
|
3828
|
-
});
|
|
3829
|
-
var RemoveProjectMeetingChecklistItemRequestSchema =
|
|
3830
|
-
projectId:
|
|
3831
|
-
meetingId:
|
|
3832
|
-
title:
|
|
3833
|
-
requestingUserId:
|
|
3834
|
-
});
|
|
3835
|
-
var CreateProjectMeetingRequestSchema =
|
|
3836
|
-
projectId:
|
|
3837
|
-
rawText:
|
|
3838
|
-
title:
|
|
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:
|
|
3867
|
+
requestingUserId: z14.string().optional()
|
|
3841
3868
|
});
|
|
3842
|
-
var UpdateProjectMeetingRequestSchema =
|
|
3843
|
-
projectId:
|
|
3844
|
-
meetingId:
|
|
3845
|
-
title:
|
|
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:
|
|
3848
|
-
requestingUserId:
|
|
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."
|
|
@@ -3871,8 +3898,8 @@ function anthropicEntry(model, label, inputPerMillion, outputPerMillion, opts =
|
|
|
3871
3898
|
var ANTHROPIC_CATALOG = [
|
|
3872
3899
|
anthropicEntry(DEFAULT_OPUS_MODEL, "Opus 5.5 Latest", 4, 20),
|
|
3873
3900
|
anthropicEntry(PREVIOUS_OPUS_MODEL, "Opus 5", 5, 25),
|
|
3874
|
-
anthropicEntry(DEFAULT_SONNET_MODEL, "Sonnet 5 Latest",
|
|
3875
|
-
anthropicEntry(PREVIOUS_SONNET_MODEL, "Sonnet
|
|
3901
|
+
anthropicEntry(DEFAULT_SONNET_MODEL, "Sonnet 5.5 Latest", 2, 10),
|
|
3902
|
+
anthropicEntry(PREVIOUS_SONNET_MODEL, "Sonnet 5", 2, 10),
|
|
3876
3903
|
// The Haiku line (4.5 and older) predates the tuning surface and 400s on it.
|
|
3877
3904
|
anthropicEntry(DEFAULT_HAIKU_MODEL, "Haiku 4.5", 1, 5, { supportsEffort: false }),
|
|
3878
3905
|
anthropicEntry(FABLE_MODEL, "Fable 5.1", 10, 50)
|
|
@@ -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) {
|