@duvoai/cli 1.24.1 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/duvo.js CHANGED
@@ -92,11 +92,11 @@ import { z as z54 } from "zod";
92
92
  import { z as z55 } from "zod";
93
93
  import { z as z56 } from "zod";
94
94
  import { z as z57 } from "zod";
95
- import { z as z59 } from "zod";
96
95
  import { z as z58 } from "zod";
97
- import { z as z61 } from "zod";
98
96
  import { z as z60 } from "zod";
97
+ import { z as z59 } from "zod";
99
98
  import { z as z62 } from "zod";
99
+ import { z as z61 } from "zod";
100
100
  import { z as z63 } from "zod";
101
101
  import { z as z64 } from "zod";
102
102
  import { z as z65 } from "zod";
@@ -108,13 +108,14 @@ import { z as z70 } from "zod";
108
108
  import { z as z71 } from "zod";
109
109
  import { z as z72 } from "zod";
110
110
  import { z as z73 } from "zod";
111
- import { z as z75 } from "zod";
112
111
  import { z as z74 } from "zod";
113
112
  import { z as z76 } from "zod";
113
+ import { z as z75 } from "zod";
114
114
  import { z as z77 } from "zod";
115
115
  import { z as z78 } from "zod";
116
116
  import { z as z79 } from "zod";
117
117
  import { z as z80 } from "zod";
118
+ import { z as z81 } from "zod";
118
119
 
119
120
  // ../node_modules/.pnpm/jsonrepair@3.13.2/node_modules/jsonrepair/lib/esm/utils/JSONRepairError.js
120
121
  var JSONRepairError = class extends Error {
@@ -2502,7 +2503,7 @@ var canExecuteConcurrentResultSchema = z11.object({
2502
2503
  var BrowsingProviderSchema = z12.enum(["google", "anthropic"]);
2503
2504
  var PLATFORM_DEFAULT_MODELS = {
2504
2505
  agent: {
2505
- model: "claude-sonnet-4-6[1m]"
2506
+ model: "claude-sonnet-5"
2506
2507
  },
2507
2508
  browsing: {
2508
2509
  provider: "google",
@@ -2510,8 +2511,6 @@ var PLATFORM_DEFAULT_MODELS = {
2510
2511
  }
2511
2512
  };
2512
2513
  var CLAUDE_MODEL_IDS = [
2513
- "claude-sonnet-4-6",
2514
- "claude-sonnet-4-6[1m]",
2515
2514
  "claude-sonnet-5",
2516
2515
  "claude-opus-4-8",
2517
2516
  "claude-opus-4-8[1m]"
@@ -2536,6 +2535,8 @@ var LEGACY_MODEL_IDS = [
2536
2535
  "claude-sonnet-4-20250514[1m]",
2537
2536
  "claude-sonnet-4-5-20250929",
2538
2537
  "claude-sonnet-4-5-20250929[1m]",
2538
+ "claude-sonnet-4-6",
2539
+ "claude-sonnet-4-6[1m]",
2539
2540
  "claude-opus-4-1-20250805",
2540
2541
  "claude-opus-4-5-20251101",
2541
2542
  // Retired in favour of Opus 4.8 (migrated via LEGACY_MODEL_REMAP, not the
@@ -2550,13 +2551,6 @@ var ClaudeModelIdSchema = z12.enum([
2550
2551
  ...LEGACY_MODEL_IDS
2551
2552
  ]);
2552
2553
  var AVAILABLE_AGENT_MODELS = {
2553
- "claude-sonnet-4-6": {
2554
- displayName: "Claude Sonnet 4.6"
2555
- },
2556
- "claude-sonnet-4-6[1m]": {
2557
- displayName: "Claude Sonnet 4.6",
2558
- description: "Fast and capable for everyday tasks"
2559
- },
2560
2554
  "claude-sonnet-5": {
2561
2555
  displayName: "Claude Sonnet 5",
2562
2556
  description: "Fast and capable for everyday tasks"
@@ -2578,8 +2572,10 @@ var BrowsingModelIdSchema = z12.enum([
2578
2572
  "claude-sonnet-4-5",
2579
2573
  "claude-opus-4-1"
2580
2574
  ]);
2581
- var LEGACY_DEFAULT_MODEL = "claude-sonnet-4-6[1m]";
2575
+ var LEGACY_DEFAULT_MODEL = "claude-sonnet-5";
2582
2576
  var LEGACY_MODEL_REMAP = {
2577
+ "claude-sonnet-4-6": "claude-sonnet-5",
2578
+ "claude-sonnet-4-6[1m]": "claude-sonnet-5",
2583
2579
  "claude-opus-4-6": "claude-opus-4-8",
2584
2580
  "claude-opus-4-6[1m]": "claude-opus-4-8[1m]",
2585
2581
  "claude-opus-4-7": "claude-opus-4-8",
@@ -3360,9 +3356,9 @@ var clarityProcessLandscapeNodeSchema = z15.object({
3360
3356
  teamId: z15.guid().nullable().optional(),
3361
3357
  teamName: z15.string().nullable().optional(),
3362
3358
  assignedTeam: clarityLandscapeAssignedTeamSchema.nullable().optional(),
3363
- teamAssignmentSuggestions: z15.array(clarityLandscapeTeamAssignmentSuggestionSchema).optional(),
3364
- captureSuggestions: z15.array(clarityLandscapeCaptureSuggestionSchema).optional(),
3365
- captureRequests: z15.array(clarityLandscapeCaptureRequestSchema).optional(),
3359
+ teamAssignmentSuggestions: z15.array(clarityLandscapeTeamAssignmentSuggestionSchema).default([]),
3360
+ captureSuggestions: z15.array(clarityLandscapeCaptureSuggestionSchema).default([]),
3361
+ captureRequests: z15.array(clarityLandscapeCaptureRequestSchema).default([]),
3366
3362
  labels: z15.array(clarityProcessAssignedLabelSchema).default([])
3367
3363
  });
3368
3364
  var clarityProcessLandscapeUnlinkedProcessSchema = clarityProcessLandscapeSummarySchema.extend({
@@ -3561,10 +3557,6 @@ var portfolioIntelligenceStatusSchema = z15.enum(
3561
3557
  PORTFOLIO_INTELLIGENCE_STATUSES
3562
3558
  );
3563
3559
  var EXECUTION_MODES = ["human-led", "hybrid", "agent-led"];
3564
- var operatingModelDesignPrincipleSchema = z15.object({
3565
- title: z15.string().min(1),
3566
- description: z15.string().min(1)
3567
- });
3568
3560
  var operatingModelValueStreamSchema = z15.object({
3569
3561
  name: z15.string().min(1),
3570
3562
  description: z15.string().min(1),
@@ -3665,7 +3657,6 @@ var operatingModelObjectionsSchema = z15.object({
3665
3657
  });
3666
3658
  var operatingModelAnalysisSchema = z15.object({
3667
3659
  executiveSummary: z15.string().min(1),
3668
- designPrinciples: z15.array(operatingModelDesignPrincipleSchema).min(1),
3669
3660
  valueStreams: z15.array(operatingModelValueStreamSchema).min(1),
3670
3661
  organizationAndGovernance: z15.array(operatingModelOrgElementSchema).min(1),
3671
3662
  peopleAndSkills: z15.array(operatingModelPeopleSkillSchema).min(1),
@@ -6224,6 +6215,7 @@ __name(makeSentryReporter, "makeSentryReporter");
6224
6215
  __name2(makeSentryReporter, "makeSentryReporter");
6225
6216
  var MAX_BLOCKED_DOMAINS = 1e3;
6226
6217
  var MAX_GUARDRAILS_TEXT_LENGTH = 2e4;
6218
+ var MAX_VPN_BYPASS_DOMAINS = 1e3;
6227
6219
  var DOMAIN_LABEL = /^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/;
6228
6220
  function stripToHost(value) {
6229
6221
  if (/^[a-z][a-z0-9+.-]*:\/\//.test(value)) {
@@ -6354,6 +6346,22 @@ function blockedDomainAgentErrorMessage(args) {
6354
6346
  }
6355
6347
  __name(blockedDomainAgentErrorMessage, "blockedDomainAgentErrorMessage");
6356
6348
  __name2(blockedDomainAgentErrorMessage, "blockedDomainAgentErrorMessage");
6349
+ function domainsToBrowserbaseBypassPattern(domains) {
6350
+ if (domains.length === 0) {
6351
+ return null;
6352
+ }
6353
+ const escaped = domains.map(
6354
+ (domain) => domain.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
6355
+ );
6356
+ return `^([a-zA-Z0-9-]+\\.)*(${escaped.join("|")})$`;
6357
+ }
6358
+ __name(domainsToBrowserbaseBypassPattern, "domainsToBrowserbaseBypassPattern");
6359
+ __name2(domainsToBrowserbaseBypassPattern, "domainsToBrowserbaseBypassPattern");
6360
+ function normalizeShopDomain(input) {
6361
+ return input.trim().toLowerCase().replace(/^https?:\/\//, "").replace(/\/.*$/, "");
6362
+ }
6363
+ __name(normalizeShopDomain, "normalizeShopDomain");
6364
+ __name2(normalizeShopDomain, "normalizeShopDomain");
6357
6365
  var NOTIFICATION_SEVERITIES = [
6358
6366
  "info",
6359
6367
  "warning",
@@ -7414,6 +7422,38 @@ var deleteArtifactShareResponseSchema = z31.object({
7414
7422
  var deleteArtifactResponseSchema = z31.object({
7415
7423
  success: z31.literal(true)
7416
7424
  });
7425
+ var movePulseBodySchema = z31.object({
7426
+ targetTeamId: z31.guid().describe("ID of the destination team the dashboard moves to.")
7427
+ }).strict();
7428
+ var pulseConnectionDecisionSchema = z31.enum([
7429
+ "reuse",
7430
+ "needs_reconnect",
7431
+ "custom_to_rebuild"
7432
+ ]);
7433
+ var pulseConnectionOutcomeSchema = z31.object({
7434
+ integrationType: z31.string(),
7435
+ integrationName: z31.string(),
7436
+ instanceName: z31.string(),
7437
+ decision: pulseConnectionDecisionSchema
7438
+ });
7439
+ var movePulsePlanSchema = z31.object({
7440
+ artifactId: z31.guid(),
7441
+ artifactTitle: z31.string().nullable(),
7442
+ sourceTeamId: z31.guid(),
7443
+ targetTeamId: z31.guid(),
7444
+ // True when the dashboard's creator differs from the mover, so ownership
7445
+ // will be (or was) reassigned to the mover on the target team.
7446
+ ownershipReassigned: z31.boolean(),
7447
+ // True when the dashboard was published (visibility != 'private') and will
7448
+ // be (or was) reset to private on the target team.
7449
+ visibilityReset: z31.boolean(),
7450
+ connections: z31.object({
7451
+ reused: z31.array(pulseConnectionOutcomeSchema),
7452
+ disconnected: z31.array(pulseConnectionOutcomeSchema),
7453
+ customToRebuild: z31.array(pulseConnectionOutcomeSchema)
7454
+ }),
7455
+ applied: z31.boolean()
7456
+ });
7417
7457
  var uploadArtifactThumbnailBodySchema = z31.object({
7418
7458
  image_base64: z31.string().min(1).max(8e6)
7419
7459
  });
@@ -9063,107 +9103,113 @@ var activateAutomationRevisionResponseApiSchema = z50.object({
9063
9103
  ),
9064
9104
  repinned_case_count: z50.int().describe("Number of pending cases re-pinned onto the activated revision")
9065
9105
  });
9066
- var DataResidencySchema = z51.enum(["us", "eu", "apac"]);
9067
- var DataHandlingSchema = z51.enum(["standard", "zdr"]);
9068
- var browserPageSchema = z52.object({
9069
- id: z52.string().describe("Page ID"),
9070
- url: z52.url().describe("Page URL"),
9071
- faviconUrl: z52.string().describe("Page favicon URL"),
9072
- title: z52.string().describe("Page title"),
9073
- debuggerUrl: z52.url().describe("Page-specific debugger URL"),
9074
- debuggerFullscreenUrl: z52.url().describe("Page-specific full-screen debugger URL")
9075
- });
9076
- var browserSessionInfoSchema = z52.object({
9106
+ var BROWSER_EGRESS_MODES = [
9107
+ "provider",
9108
+ "direct",
9109
+ "organization-vpn"
9110
+ ];
9111
+ var browserEgressModeSchema = z51.enum(BROWSER_EGRESS_MODES);
9112
+ var DataResidencySchema = z52.enum(["us", "eu", "apac"]);
9113
+ var DataHandlingSchema = z52.enum(["standard", "zdr"]);
9114
+ var browserPageSchema = z53.object({
9115
+ id: z53.string().describe("Page ID"),
9116
+ url: z53.url().describe("Page URL"),
9117
+ faviconUrl: z53.string().describe("Page favicon URL"),
9118
+ title: z53.string().describe("Page title"),
9119
+ debuggerUrl: z53.url().describe("Page-specific debugger URL"),
9120
+ debuggerFullscreenUrl: z53.url().describe("Page-specific full-screen debugger URL")
9121
+ });
9122
+ var browserSessionInfoSchema = z53.object({
9077
9123
  // Session-level URLs (Browser Use provides these, Browserbase also has them)
9078
- wsUrl: z52.url().nullable(),
9079
- liveUrl: z52.url().nullable(),
9124
+ wsUrl: z53.url().nullable(),
9125
+ liveUrl: z53.url().nullable(),
9080
9126
  // Page-level data (Browserbase provides these, Browser Use returns empty array)
9081
- pages: z52.array(browserPageSchema)
9082
- });
9083
- var browserbaseDebugResponseSchema = z52.object({
9084
- debuggerFullscreenUrl: z52.url().describe("Session full-screen debugger URL"),
9085
- debuggerUrl: z52.url().describe("Session debugger URL"),
9086
- pages: z52.array(browserPageSchema).describe("List of pages in the session"),
9087
- wsUrl: z52.url().describe("WebSocket URL for the session")
9088
- });
9089
- var browserbaseSessionCreateResponseSchema = z52.object({
9090
- id: z52.string().describe("Session ID"),
9091
- createdAt: z52.iso.datetime().describe("Session creation timestamp"),
9092
- updatedAt: z52.iso.datetime().describe("Session last update timestamp"),
9093
- projectId: z52.string().describe("Project ID"),
9094
- startedAt: z52.iso.datetime().describe("Session start timestamp"),
9095
- endedAt: z52.iso.datetime().optional().describe("Session end timestamp"),
9096
- expiresAt: z52.iso.datetime().describe("Session expiration timestamp"),
9097
- status: z52.string().describe("Session status"),
9098
- proxyBytes: z52.number().describe("Proxy bytes used"),
9099
- avgCpuUsage: z52.number().describe("Average CPU usage"),
9100
- memoryUsage: z52.number().describe("Memory usage"),
9101
- keepAlive: z52.boolean().describe("Keep alive flag"),
9102
- contextId: z52.string().describe("Context ID"),
9103
- region: z52.string().describe("Region"),
9104
- userMetadata: z52.record(z52.string(), z52.unknown()).describe("User metadata"),
9105
- connectUrl: z52.string().describe("Connect URL"),
9106
- seleniumRemoteUrl: z52.string().describe("Selenium remote URL"),
9107
- signingKey: z52.string().describe("Signing key")
9108
- });
9109
- var getBuildParamsSchema = z53.object({
9110
- buildId: z53.guid()
9111
- });
9112
- var listBuildsParamsSchema = z53.object({
9113
- copilotId: z53.guid()
9114
- });
9115
- var updateBuildBodySchema = z53.object({
9116
- config: z53.record(z53.string(), z53.any()).optional().describe("Build configuration object"),
9117
- handoverTargetIds: z53.array(z53.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
9118
- revision_name: z53.string().trim().min(1).max(80).nullable().optional().describe(
9127
+ pages: z53.array(browserPageSchema)
9128
+ });
9129
+ var browserbaseDebugResponseSchema = z53.object({
9130
+ debuggerFullscreenUrl: z53.url().describe("Session full-screen debugger URL"),
9131
+ debuggerUrl: z53.url().describe("Session debugger URL"),
9132
+ pages: z53.array(browserPageSchema).describe("List of pages in the session"),
9133
+ wsUrl: z53.url().describe("WebSocket URL for the session")
9134
+ });
9135
+ var browserbaseSessionCreateResponseSchema = z53.object({
9136
+ id: z53.string().describe("Session ID"),
9137
+ createdAt: z53.iso.datetime().describe("Session creation timestamp"),
9138
+ updatedAt: z53.iso.datetime().describe("Session last update timestamp"),
9139
+ projectId: z53.string().describe("Project ID"),
9140
+ startedAt: z53.iso.datetime().describe("Session start timestamp"),
9141
+ endedAt: z53.iso.datetime().optional().describe("Session end timestamp"),
9142
+ expiresAt: z53.iso.datetime().describe("Session expiration timestamp"),
9143
+ status: z53.string().describe("Session status"),
9144
+ proxyBytes: z53.number().describe("Proxy bytes used"),
9145
+ avgCpuUsage: z53.number().describe("Average CPU usage"),
9146
+ memoryUsage: z53.number().describe("Memory usage"),
9147
+ keepAlive: z53.boolean().describe("Keep alive flag"),
9148
+ contextId: z53.string().describe("Context ID"),
9149
+ region: z53.string().describe("Region"),
9150
+ userMetadata: z53.record(z53.string(), z53.unknown()).describe("User metadata"),
9151
+ connectUrl: z53.string().describe("Connect URL"),
9152
+ seleniumRemoteUrl: z53.string().describe("Selenium remote URL"),
9153
+ signingKey: z53.string().describe("Signing key")
9154
+ });
9155
+ var getBuildParamsSchema = z54.object({
9156
+ buildId: z54.guid()
9157
+ });
9158
+ var listBuildsParamsSchema = z54.object({
9159
+ copilotId: z54.guid()
9160
+ });
9161
+ var updateBuildBodySchema = z54.object({
9162
+ config: z54.record(z54.string(), z54.any()).optional().describe("Build configuration object"),
9163
+ handoverTargetIds: z54.array(z54.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
9164
+ revision_name: z54.string().trim().min(1).max(80).nullable().optional().describe(
9119
9165
  "Optional user-defined name for this revision. Pass null to clear."
9120
9166
  ),
9121
- revision_description: z53.string().trim().max(500).nullable().optional().describe(
9167
+ revision_description: z54.string().trim().max(500).nullable().optional().describe(
9122
9168
  "Optional user-defined description for this revision. Pass null to clear."
9123
9169
  )
9124
9170
  });
9125
- var createBuildBodySchema = z53.object({
9126
- copilot_id: z53.guid().describe("Agent ID"),
9127
- name: z53.string().describe("Build name"),
9128
- config: z53.record(z53.string(), z53.any()).optional().describe("Build configuration object"),
9129
- handoverTargetIds: z53.array(z53.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
9130
- source_build_id: z53.guid().optional().describe("Build ID to copy integrations and queue links from")
9131
- });
9132
- var buildResponseSchema = z53.object({
9133
- build_id: z53.string().describe("Build ID"),
9134
- name: z53.string().describe("Build name"),
9135
- config: z53.record(z53.string(), z53.any()).nullable().describe("Build configuration"),
9136
- copilot_id: z53.string().describe("Associated copilot ID"),
9137
- status: z53.string().describe("Build status"),
9138
- created_at: z53.coerce.date().describe("Creation timestamp"),
9139
- updated_at: z53.coerce.date().nullable().describe("Last update timestamp"),
9140
- revision_number: z53.number().nullable().describe("Revision number"),
9141
- revision_name: z53.string().nullable().optional().describe("User-defined name for this revision"),
9142
- revision_description: z53.string().nullable().optional().describe("User-defined description for this revision"),
9143
- parent_build_id: z53.string().nullable().describe("Parent build ID"),
9144
- created_by: z53.string().nullable().describe("User who created this build"),
9145
- created_by_name: z53.string().nullable().optional().describe("Display name of the user who created this build")
9146
- });
9147
- var listBuildsResponseSchema = z53.array(buildResponseSchema);
9148
- var buildResponseApiSchema = z53.object({
9171
+ var createBuildBodySchema = z54.object({
9172
+ copilot_id: z54.guid().describe("Agent ID"),
9173
+ name: z54.string().describe("Build name"),
9174
+ config: z54.record(z54.string(), z54.any()).optional().describe("Build configuration object"),
9175
+ handoverTargetIds: z54.array(z54.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
9176
+ source_build_id: z54.guid().optional().describe("Build ID to copy integrations and queue links from")
9177
+ });
9178
+ var buildResponseSchema = z54.object({
9179
+ build_id: z54.string().describe("Build ID"),
9180
+ name: z54.string().describe("Build name"),
9181
+ config: z54.record(z54.string(), z54.any()).nullable().describe("Build configuration"),
9182
+ copilot_id: z54.string().describe("Associated copilot ID"),
9183
+ status: z54.string().describe("Build status"),
9184
+ created_at: z54.coerce.date().describe("Creation timestamp"),
9185
+ updated_at: z54.coerce.date().nullable().describe("Last update timestamp"),
9186
+ revision_number: z54.number().nullable().describe("Revision number"),
9187
+ revision_name: z54.string().nullable().optional().describe("User-defined name for this revision"),
9188
+ revision_description: z54.string().nullable().optional().describe("User-defined description for this revision"),
9189
+ parent_build_id: z54.string().nullable().describe("Parent build ID"),
9190
+ created_by: z54.string().nullable().describe("User who created this build"),
9191
+ created_by_name: z54.string().nullable().optional().describe("Display name of the user who created this build")
9192
+ });
9193
+ var listBuildsResponseSchema = z54.array(buildResponseSchema);
9194
+ var buildResponseApiSchema = z54.object({
9149
9195
  build: buildApiSchema
9150
9196
  });
9151
- var buildsListApiSchema = z53.object({
9152
- builds: z53.array(buildApiSchema),
9153
- total: z53.int(),
9154
- limit: z53.int(),
9155
- offset: z53.int()
9197
+ var buildsListApiSchema = z54.object({
9198
+ builds: z54.array(buildApiSchema),
9199
+ total: z54.int(),
9200
+ limit: z54.int(),
9201
+ offset: z54.int()
9156
9202
  });
9157
- var createBuildResponseApiSchema = z53.object({
9203
+ var createBuildResponseApiSchema = z54.object({
9158
9204
  build: buildApiSchema,
9159
- agent: z53.object({
9160
- id: z53.guid()
9205
+ agent: z54.object({
9206
+ id: z54.guid()
9161
9207
  })
9162
9208
  });
9163
- var builderRunGenerateResponseSchema = z53.object({
9164
- status: z53.literal("generating"),
9165
- builderRunId: z53.string(),
9166
- buildId: z53.string()
9209
+ var builderRunGenerateResponseSchema = z54.object({
9210
+ status: z54.literal("generating"),
9211
+ builderRunId: z54.string(),
9212
+ buildId: z54.string()
9167
9213
  });
9168
9214
  var BUILDER_RUN_STATUSES = [
9169
9215
  "not_started",
@@ -9174,252 +9220,252 @@ var BUILDER_RUN_STATUSES = [
9174
9220
  "waiting_for_input",
9175
9221
  "waiting_for_approve"
9176
9222
  ];
9177
- var builderRunStatusSchema = z53.object({
9178
- id: z53.string(),
9179
- status: z53.enum(BUILDER_RUN_STATUSES),
9180
- build_id: z53.string(),
9181
- started_at: z53.string().nullable(),
9182
- completed_at: z53.string().nullable(),
9223
+ var builderRunStatusSchema = z54.object({
9224
+ id: z54.string(),
9225
+ status: z54.enum(BUILDER_RUN_STATUSES),
9226
+ build_id: z54.string(),
9227
+ started_at: z54.string().nullable(),
9228
+ completed_at: z54.string().nullable(),
9183
9229
  checkpoint_config: StoredAgentConfigSchema.nullable(),
9184
9230
  pending_user_questions: askUserQuestionInputSchema.nullable(),
9185
- schedule_suggested: z53.boolean().optional()
9186
- });
9187
- var filterValueSchema = z54.object({
9188
- value: z54.string().min(1),
9189
- name: z54.string().min(1)
9190
- });
9191
- var filterCategorySchema = z54.object({
9192
- key: z54.string(),
9193
- name: z54.string().min(1),
9194
- selectionMode: z54.enum(["single", "multi"]),
9195
- values: z54.array(filterValueSchema)
9196
- });
9197
- var caseFiltersResponseSchema = z54.object({
9198
- filters: z54.array(filterCategorySchema)
9199
- });
9200
- var caseQueueFolderResponseSchema = z55.object({
9201
- id: z55.string(),
9202
- name: z55.string(),
9203
- team_id: z55.string(),
9204
- parent_folder_id: z55.string().nullable(),
9205
- created_at: z55.string(),
9206
- updated_at: z55.string()
9207
- });
9208
- var caseQueueFoldersListResponseSchema = z55.object({
9209
- folders: z55.array(caseQueueFolderResponseSchema)
9210
- });
9211
- var createCaseQueueFolderRequestSchema = z55.object({
9212
- name: z55.string().min(1).max(100),
9213
- parent_folder_id: z55.guid().nullable().optional()
9214
- });
9215
- var updateCaseQueueFolderRequestSchema = z55.object({
9216
- name: z55.string().min(1).max(100).optional(),
9217
- parent_folder_id: z55.guid().nullable().optional()
9218
- });
9219
- var moveQueuesToFolderRequestSchema = z55.object({
9220
- queue_ids: z55.array(z55.guid()).min(1),
9221
- folder_id: z55.guid().nullable()
9222
- });
9223
- var caseQueueLabelSchema = z56.object({
9224
- id: z56.guid(),
9225
- key: z56.string(),
9231
+ schedule_suggested: z54.boolean().optional()
9232
+ });
9233
+ var filterValueSchema = z55.object({
9234
+ value: z55.string().min(1),
9235
+ name: z55.string().min(1)
9236
+ });
9237
+ var filterCategorySchema = z55.object({
9238
+ key: z55.string(),
9239
+ name: z55.string().min(1),
9240
+ selectionMode: z55.enum(["single", "multi"]),
9241
+ values: z55.array(filterValueSchema)
9242
+ });
9243
+ var caseFiltersResponseSchema = z55.object({
9244
+ filters: z55.array(filterCategorySchema)
9245
+ });
9246
+ var caseQueueFolderResponseSchema = z56.object({
9247
+ id: z56.string(),
9248
+ name: z56.string(),
9249
+ team_id: z56.string(),
9250
+ parent_folder_id: z56.string().nullable(),
9251
+ created_at: z56.string(),
9252
+ updated_at: z56.string()
9253
+ });
9254
+ var caseQueueFoldersListResponseSchema = z56.object({
9255
+ folders: z56.array(caseQueueFolderResponseSchema)
9256
+ });
9257
+ var createCaseQueueFolderRequestSchema = z56.object({
9258
+ name: z56.string().min(1).max(100),
9259
+ parent_folder_id: z56.guid().nullable().optional()
9260
+ });
9261
+ var updateCaseQueueFolderRequestSchema = z56.object({
9262
+ name: z56.string().min(1).max(100).optional(),
9263
+ parent_folder_id: z56.guid().nullable().optional()
9264
+ });
9265
+ var moveQueuesToFolderRequestSchema = z56.object({
9266
+ queue_ids: z56.array(z56.guid()).min(1),
9267
+ folder_id: z56.guid().nullable()
9268
+ });
9269
+ var caseQueueLabelSchema = z57.object({
9270
+ id: z57.guid(),
9271
+ key: z57.string(),
9226
9272
  // Empty string key means a simple tag (value-only); non-empty key creates a key-value categorization
9227
- value: z56.string().min(1),
9228
- color_hue: z56.int().min(0).max(360)
9273
+ value: z57.string().min(1),
9274
+ color_hue: z57.int().min(0).max(360)
9229
9275
  });
9230
- var caseLabelsListResponseSchema = z56.object({
9231
- labels: z56.array(caseQueueLabelSchema)
9276
+ var caseLabelsListResponseSchema = z57.object({
9277
+ labels: z57.array(caseQueueLabelSchema)
9232
9278
  });
9233
- var caseLabelAssignInputSchema = z56.object({
9234
- labels: z56.array(
9235
- z56.object({
9236
- key: z56.string().optional().default(""),
9237
- value: z56.string().min(1)
9279
+ var caseLabelAssignInputSchema = z57.object({
9280
+ labels: z57.array(
9281
+ z57.object({
9282
+ key: z57.string().optional().default(""),
9283
+ value: z57.string().min(1)
9238
9284
  })
9239
9285
  ).min(1).max(50)
9240
9286
  });
9241
- var caseLabelAssignResponseSchema = z56.object({
9242
- labels: z56.array(caseQueueLabelSchema)
9287
+ var caseLabelAssignResponseSchema = z57.object({
9288
+ labels: z57.array(caseQueueLabelSchema)
9243
9289
  });
9244
- var caseLabelUpdateInputSchema = z56.object({
9290
+ var caseLabelUpdateInputSchema = z57.object({
9245
9291
  // key is a partial-update field: omit to leave the existing key unchanged.
9246
9292
  // Do NOT add `.default("")` — a missing key must not silently relocate the
9247
9293
  // label into the empty-key ("Labels") bucket when the caller only wants to
9248
9294
  // change color or value.
9249
- key: z56.string().optional(),
9250
- value: z56.string().min(1),
9251
- color_hue: z56.int().min(0).max(360).optional()
9295
+ key: z57.string().optional(),
9296
+ value: z57.string().min(1),
9297
+ color_hue: z57.int().min(0).max(360).optional()
9252
9298
  });
9253
- var caseLabelUpdateResponseSchema = z56.object({
9299
+ var caseLabelUpdateResponseSchema = z57.object({
9254
9300
  label: caseQueueLabelSchema
9255
9301
  });
9256
- var caseLabelUnlinkInputSchema = z56.object({
9257
- label_ids: z56.array(z56.guid()).min(1)
9302
+ var caseLabelUnlinkInputSchema = z57.object({
9303
+ label_ids: z57.array(z57.guid()).min(1)
9258
9304
  });
9259
- var caseLabelUnlinkResponseSchema = z56.object({
9260
- success: z56.boolean()
9305
+ var caseLabelUnlinkResponseSchema = z57.object({
9306
+ success: z57.boolean()
9261
9307
  });
9262
- var caseLabelCreateInputSchema = z56.object({
9263
- key: z56.string().optional().default(""),
9264
- value: z56.string().min(1),
9265
- color_hue: z56.int().min(0).max(360).optional()
9308
+ var caseLabelCreateInputSchema = z57.object({
9309
+ key: z57.string().optional().default(""),
9310
+ value: z57.string().min(1),
9311
+ color_hue: z57.int().min(0).max(360).optional()
9266
9312
  });
9267
- var caseLabelCreateResponseSchema = z56.object({
9313
+ var caseLabelCreateResponseSchema = z57.object({
9268
9314
  label: caseQueueLabelSchema.extend({
9269
- case_count: z56.int().min(0)
9315
+ case_count: z57.int().min(0)
9270
9316
  })
9271
9317
  });
9272
9318
  var caseQueueLabelWithCountSchema = caseQueueLabelSchema.extend({
9273
- case_count: z56.int().min(0)
9319
+ case_count: z57.int().min(0)
9274
9320
  });
9275
- var caseLabelsWithCountsListResponseSchema = z56.object({
9276
- labels: z56.array(caseQueueLabelWithCountSchema)
9321
+ var caseLabelsWithCountsListResponseSchema = z57.object({
9322
+ labels: z57.array(caseQueueLabelWithCountSchema)
9277
9323
  });
9278
9324
  var SEQUENTIAL_TRIGGER_CONCURRENCY = 1;
9279
- var settableTriggerConcurrencySchema = z57.literal(SEQUENTIAL_TRIGGER_CONCURRENCY).nullable();
9280
- var caseTriggerApiSchema = z57.object({
9281
- id: z57.string(),
9282
- agent_id: z57.string(),
9283
- case_queue_id: z57.string(),
9284
- case_queue_name: z57.string(),
9285
- user_id: z57.string(),
9286
- enabled: z57.boolean(),
9287
- concurrency: z57.int().positive().nullable(),
9288
- created_at: z57.string(),
9289
- updated_at: z57.string(),
9290
- creator_display_name: z57.string().nullable(),
9291
- can_disable: z57.boolean(),
9292
- has_conflict: z57.boolean(),
9293
- conflicting_agents: z57.array(conflictingAgentSchema)
9294
- });
9295
- var caseTriggerResponseSchema = z57.object({
9325
+ var settableTriggerConcurrencySchema = z58.literal(SEQUENTIAL_TRIGGER_CONCURRENCY).nullable();
9326
+ var caseTriggerApiSchema = z58.object({
9327
+ id: z58.string(),
9328
+ agent_id: z58.string(),
9329
+ case_queue_id: z58.string(),
9330
+ case_queue_name: z58.string(),
9331
+ user_id: z58.string(),
9332
+ enabled: z58.boolean(),
9333
+ concurrency: z58.int().positive().nullable(),
9334
+ created_at: z58.string(),
9335
+ updated_at: z58.string(),
9336
+ creator_display_name: z58.string().nullable(),
9337
+ can_disable: z58.boolean(),
9338
+ has_conflict: z58.boolean(),
9339
+ conflicting_agents: z58.array(conflictingAgentSchema)
9340
+ });
9341
+ var caseTriggerResponseSchema = z58.object({
9296
9342
  case_trigger: caseTriggerApiSchema
9297
9343
  });
9298
- var caseTriggersListResponseSchema = z57.object({
9299
- case_triggers: z57.array(caseTriggerApiSchema)
9344
+ var caseTriggersListResponseSchema = z58.object({
9345
+ case_triggers: z58.array(caseTriggerApiSchema)
9300
9346
  });
9301
- var deleteCaseTriggerResponseSchema = z57.object({
9302
- success: z57.literal(true)
9347
+ var deleteCaseTriggerResponseSchema = z58.object({
9348
+ success: z58.literal(true)
9303
9349
  });
9304
- var caseTriggerConflictPreviewResponseSchema = z57.object({
9305
- has_conflict: z57.boolean(),
9306
- conflicting_agents: z57.array(conflictingAgentSchema)
9350
+ var caseTriggerConflictPreviewResponseSchema = z58.object({
9351
+ has_conflict: z58.boolean(),
9352
+ conflicting_agents: z58.array(conflictingAgentSchema)
9307
9353
  });
9308
- var integrationConfigMinSchema = z57.object({
9309
- id: z57.string(),
9310
- integration_id: z57.guid().nullable(),
9311
- integration_type: z57.string()
9354
+ var integrationConfigMinSchema = z58.object({
9355
+ id: z58.string(),
9356
+ integration_id: z58.guid().nullable(),
9357
+ integration_type: z58.string()
9312
9358
  });
9313
- var integrationConfigsResponseSchema = z57.object({
9314
- integrations: z57.array(integrationConfigMinSchema)
9359
+ var integrationConfigsResponseSchema = z58.object({
9360
+ integrations: z58.array(integrationConfigMinSchema)
9315
9361
  });
9316
- var caseQueueMinSchema = z57.object({
9317
- id: z57.string(),
9318
- name: z57.string()
9362
+ var caseQueueMinSchema = z58.object({
9363
+ id: z58.string(),
9364
+ name: z58.string()
9319
9365
  });
9320
- var caseQueuesForSlotResponseSchema = z57.object({
9321
- queues: z57.array(caseQueueMinSchema)
9366
+ var caseQueuesForSlotResponseSchema = z58.object({
9367
+ queues: z58.array(caseQueueMinSchema)
9322
9368
  });
9323
9369
  var APPROVAL_DECISION = {
9324
9370
  APPROVED: "approved",
9325
9371
  REJECTED: "rejected"
9326
9372
  };
9327
- var approvalDecisionSchema = z58.enum([
9373
+ var approvalDecisionSchema = z59.enum([
9328
9374
  APPROVAL_DECISION.APPROVED,
9329
9375
  APPROVAL_DECISION.REJECTED
9330
9376
  ]);
9331
9377
  var HUMAN_REQUEST_TITLE_MAX = 200;
9332
9378
  var HUMAN_REQUEST_PROMPT_MAX = 2e3;
9333
9379
  var MAX_APPROVERS_PER_BATCH = 20;
9334
- var humanRequestBatchRowSchema = z58.object({
9335
- id: z58.string().uuid(),
9336
- assignee_user_id: z58.string().uuid(),
9337
- assignee_name: z58.string().nullable(),
9338
- assignee_email: z58.string().nullable(),
9380
+ var humanRequestBatchRowSchema = z59.object({
9381
+ id: z59.string().uuid(),
9382
+ assignee_user_id: z59.string().uuid(),
9383
+ assignee_name: z59.string().nullable(),
9384
+ assignee_email: z59.string().nullable(),
9339
9385
  /**
9340
9386
  * The free-text ask the agent posed to THIS specific approver. Each row
9341
9387
  * carries its own prompt — the multi-approver flow does not assume a
9342
9388
  * single shared question across approvers.
9343
9389
  */
9344
- prompt: z58.string(),
9390
+ prompt: z59.string(),
9345
9391
  decision: approvalDecisionSchema.nullable(),
9346
- responded_at: z58.string().nullable(),
9347
- responded_by_user_id: z58.string().uuid().nullable(),
9348
- responded_by_name: z58.string().nullable(),
9349
- responded_by_email: z58.string().nullable(),
9350
- cancelled_at: z58.string().nullable(),
9351
- cancellation_reason: z58.string().nullable()
9352
- });
9353
- var approvalBatchSchema = z58.object({
9354
- id: z58.string().uuid(),
9355
- case_queue_item_id: z58.string().uuid(),
9356
- agent_run_id: z58.string().uuid(),
9357
- title: z58.string(),
9358
- created_at: z58.string(),
9359
- resolved_at: z58.string().nullable(),
9360
- cancelled_at: z58.string().nullable(),
9361
- cancellation_reason: z58.string().nullable(),
9362
- rows: z58.array(humanRequestBatchRowSchema)
9363
- });
9364
- var approvalRequestInputSchema = z58.object({
9365
- approverUserId: z58.string().uuid(),
9366
- prompt: z58.string().trim().min(1).max(HUMAN_REQUEST_PROMPT_MAX)
9367
- });
9368
- var createHumanRequestBatchBodySchema = z58.object({
9369
- agentRunId: z58.string().uuid(),
9370
- title: z58.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
9371
- requests: z58.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
9372
- });
9373
- var createHumanRequestBatchResponseSchema = z58.object({
9374
- batchId: z58.string().uuid(),
9375
- createdAt: z58.string(),
9376
- humanRequestIds: z58.array(z58.string().uuid())
9377
- });
9378
- var requestCaseApprovalsToolInputSchema = z58.object({
9379
- title: z58.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
9380
- requests: z58.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
9381
- });
9382
- var requestCaseApprovalsBatchStatusSchema = z58.enum([
9392
+ responded_at: z59.string().nullable(),
9393
+ responded_by_user_id: z59.string().uuid().nullable(),
9394
+ responded_by_name: z59.string().nullable(),
9395
+ responded_by_email: z59.string().nullable(),
9396
+ cancelled_at: z59.string().nullable(),
9397
+ cancellation_reason: z59.string().nullable()
9398
+ });
9399
+ var approvalBatchSchema = z59.object({
9400
+ id: z59.string().uuid(),
9401
+ case_queue_item_id: z59.string().uuid(),
9402
+ agent_run_id: z59.string().uuid(),
9403
+ title: z59.string(),
9404
+ created_at: z59.string(),
9405
+ resolved_at: z59.string().nullable(),
9406
+ cancelled_at: z59.string().nullable(),
9407
+ cancellation_reason: z59.string().nullable(),
9408
+ rows: z59.array(humanRequestBatchRowSchema)
9409
+ });
9410
+ var approvalRequestInputSchema = z59.object({
9411
+ approverUserId: z59.string().uuid(),
9412
+ prompt: z59.string().trim().min(1).max(HUMAN_REQUEST_PROMPT_MAX)
9413
+ });
9414
+ var createHumanRequestBatchBodySchema = z59.object({
9415
+ agentRunId: z59.string().uuid(),
9416
+ title: z59.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
9417
+ requests: z59.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
9418
+ });
9419
+ var createHumanRequestBatchResponseSchema = z59.object({
9420
+ batchId: z59.string().uuid(),
9421
+ createdAt: z59.string(),
9422
+ humanRequestIds: z59.array(z59.string().uuid())
9423
+ });
9424
+ var requestCaseApprovalsToolInputSchema = z59.object({
9425
+ title: z59.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
9426
+ requests: z59.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
9427
+ });
9428
+ var requestCaseApprovalsBatchStatusSchema = z59.enum([
9383
9429
  "resolved",
9384
9430
  "cancelled"
9385
9431
  ]);
9386
- var requestCaseApprovalsDecisionEntrySchema = z58.object({
9387
- assigneeUserId: z58.string().uuid(),
9432
+ var requestCaseApprovalsDecisionEntrySchema = z59.object({
9433
+ assigneeUserId: z59.string().uuid(),
9388
9434
  decision: approvalDecisionSchema,
9389
- respondedAt: z58.string(),
9390
- respondedByUserId: z58.string().uuid()
9435
+ respondedAt: z59.string(),
9436
+ respondedByUserId: z59.string().uuid()
9391
9437
  });
9392
- var requestCaseApprovalsToolOutputSchema = z58.object({
9438
+ var requestCaseApprovalsToolOutputSchema = z59.object({
9393
9439
  status: requestCaseApprovalsBatchStatusSchema,
9394
- decisions: z58.array(requestCaseApprovalsDecisionEntrySchema)
9395
- });
9396
- var humanRequestContextSchema = z58.discriminatedUnion("kind", [
9397
- z58.object({
9398
- kind: z58.literal("run"),
9399
- runId: z58.string().uuid(),
9400
- buildId: z58.string().uuid(),
9401
- agentId: z58.string().uuid(),
9402
- agentName: z58.string().nullable()
9440
+ decisions: z59.array(requestCaseApprovalsDecisionEntrySchema)
9441
+ });
9442
+ var humanRequestContextSchema = z59.discriminatedUnion("kind", [
9443
+ z59.object({
9444
+ kind: z59.literal("run"),
9445
+ runId: z59.string().uuid(),
9446
+ buildId: z59.string().uuid(),
9447
+ agentId: z59.string().uuid(),
9448
+ agentName: z59.string().nullable()
9403
9449
  }),
9404
- z58.object({
9405
- kind: z58.literal("case"),
9406
- queueId: z58.string().uuid(),
9407
- caseId: z58.string().uuid(),
9408
- caseTitle: z58.string()
9450
+ z59.object({
9451
+ kind: z59.literal("case"),
9452
+ queueId: z59.string().uuid(),
9453
+ caseId: z59.string().uuid(),
9454
+ caseTitle: z59.string()
9409
9455
  })
9410
9456
  ]);
9411
- var caseQueueItemSchema = z59.object({
9412
- id: z59.guid(),
9413
- queue_id: z59.guid(),
9414
- title: z59.string(),
9415
- data: z59.string(),
9416
- status: z59.enum(["pending", "completed", "failed"]),
9457
+ var caseQueueItemSchema = z60.object({
9458
+ id: z60.guid(),
9459
+ queue_id: z60.guid(),
9460
+ title: z60.string(),
9461
+ data: z60.string(),
9462
+ status: z60.enum(["pending", "completed", "failed"]),
9417
9463
  /**
9418
9464
  * Derived display bucket combining the settlement status with ownership,
9419
9465
  * open HITL tokens, and scheduling. See CASE_DISPLAY_STATUS in
9420
9466
  * `constants/case-queue.ts` for the derivation rules.
9421
9467
  */
9422
- display_status: z59.enum([
9468
+ display_status: z60.enum([
9423
9469
  "pending",
9424
9470
  "in_progress",
9425
9471
  "needs_input",
@@ -9427,30 +9473,30 @@ var caseQueueItemSchema = z59.object({
9427
9473
  "completed",
9428
9474
  "failed"
9429
9475
  ]),
9430
- claimed_at: z59.string().nullable(),
9431
- claimed_by_run_id: z59.string().nullable(),
9432
- completed_at: z59.string().nullable(),
9476
+ claimed_at: z60.string().nullable(),
9477
+ claimed_by_run_id: z60.string().nullable(),
9478
+ completed_at: z60.string().nullable(),
9433
9479
  /** When the case is scheduled to be re-handled (null if not postponed) */
9434
- postponed_to: z59.string().nullable(),
9435
- created_at: z59.string(),
9436
- updated_at: z59.string(),
9437
- created_by_user_id: z59.guid().nullable(),
9438
- created_by_user_name: z59.string().nullable(),
9439
- created_by_user_email: z59.string().nullable(),
9480
+ postponed_to: z60.string().nullable(),
9481
+ created_at: z60.string(),
9482
+ updated_at: z60.string(),
9483
+ created_by_user_id: z60.guid().nullable(),
9484
+ created_by_user_name: z60.string().nullable(),
9485
+ created_by_user_email: z60.string().nullable(),
9440
9486
  /** Status of the associated agent run (running, waiting, etc.) - null if no active run */
9441
- agent_run_status: z59.string().nullable(),
9487
+ agent_run_status: z60.string().nullable(),
9442
9488
  /** User ID of the owner of the active agent run - null if no active run */
9443
- agent_run_user_id: z59.guid().nullable(),
9489
+ agent_run_user_id: z60.guid().nullable(),
9444
9490
  /** ID of the pending human request for cases waiting for input */
9445
- pending_human_request_id: z59.guid().nullable(),
9491
+ pending_human_request_id: z60.guid().nullable(),
9446
9492
  /** ID of the open `human_request_batch` bound to this case, if any. Used to derive the `awaiting_approval` UI state. */
9447
- pending_approval_batch_id: z59.guid().nullable(),
9493
+ pending_approval_batch_id: z60.guid().nullable(),
9448
9494
  /** User IDs of approvers named on the open batch's unresolved rows. Used to switch the badge to "Awaiting your approval" when the viewer is one of them. */
9449
- pending_approval_assignee_user_ids: z59.array(z59.guid()),
9495
+ pending_approval_assignee_user_ids: z60.array(z60.guid()),
9450
9496
  /** Count of resolved `human_request` approval rows on this case with `decision = 'approved'`. */
9451
- approval_approved_count: z59.int().nonnegative(),
9497
+ approval_approved_count: z60.int().nonnegative(),
9452
9498
  /** Count of resolved `human_request` approval rows on this case with `decision = 'rejected'`. */
9453
- approval_rejected_count: z59.int().nonnegative(),
9499
+ approval_rejected_count: z60.int().nonnegative(),
9454
9500
  /**
9455
9501
  * Whole-case evaluation summary for the "Found issues" column, mirroring a
9456
9502
  * Run's `eval_summaries`. Derived from the latest `case_evaluation` output:
@@ -9460,59 +9506,59 @@ var caseQueueItemSchema = z59.object({
9460
9506
  */
9461
9507
  eval_summary: evalSummarySchema.nullable().optional(),
9462
9508
  /** Snippet from the data field showing search match context. Only present when search matches data. */
9463
- search_match_data_snippet: z59.object({
9464
- before: z59.string(),
9465
- match: z59.string(),
9466
- after: z59.string()
9509
+ search_match_data_snippet: z60.object({
9510
+ before: z60.string(),
9511
+ match: z60.string(),
9512
+ after: z60.string()
9467
9513
  }).optional(),
9468
- labels: z59.array(caseQueueLabelSchema)
9469
- });
9470
- var caseQueueItemEventSchema = z59.object({
9471
- id: z59.guid(),
9472
- case_queue_item_id: z59.guid(),
9473
- agent_run_id: z59.guid().nullable(),
9474
- human_request_id: z59.guid().nullable(),
9475
- type: z59.string(),
9476
- reason: z59.string().nullable(),
9477
- created_at: z59.string(),
9478
- agent_id: z59.guid().nullable(),
9479
- agent_name: z59.string().nullable(),
9514
+ labels: z60.array(caseQueueLabelSchema)
9515
+ });
9516
+ var caseQueueItemEventSchema = z60.object({
9517
+ id: z60.guid(),
9518
+ case_queue_item_id: z60.guid(),
9519
+ agent_run_id: z60.guid().nullable(),
9520
+ human_request_id: z60.guid().nullable(),
9521
+ type: z60.string(),
9522
+ reason: z60.string().nullable(),
9523
+ created_at: z60.string(),
9524
+ agent_id: z60.guid().nullable(),
9525
+ agent_name: z60.string().nullable(),
9480
9526
  /**
9481
9527
  * Owner of the agent run referenced by this event (joined from
9482
9528
  * `agent_run.user_id`). The frontend mirrors the backend
9483
9529
  * `assertCanAccessRun` gate against this id + the viewer's team role to
9484
9530
  * decide whether the row should expose a click affordance.
9485
9531
  */
9486
- user_id: z59.guid().nullable(),
9487
- user_name: z59.string().nullable(),
9488
- user_email: z59.string().nullable(),
9489
- human_request_title: z59.string().nullable()
9490
- });
9491
- var casesListResponseSchema = z59.object({
9492
- cases: z59.array(caseQueueItemSchema),
9493
- total: z59.number(),
9494
- limit: z59.int(),
9495
- offset: z59.int()
9496
- });
9497
- var caseCreateInputSchema = z59.object({
9498
- title: z59.string().min(1).max(500).describe(
9532
+ user_id: z60.guid().nullable(),
9533
+ user_name: z60.string().nullable(),
9534
+ user_email: z60.string().nullable(),
9535
+ human_request_title: z60.string().nullable()
9536
+ });
9537
+ var casesListResponseSchema = z60.object({
9538
+ cases: z60.array(caseQueueItemSchema),
9539
+ total: z60.number(),
9540
+ limit: z60.int(),
9541
+ offset: z60.int()
9542
+ });
9543
+ var caseCreateInputSchema = z60.object({
9544
+ title: z60.string().min(1).max(500).describe(
9499
9545
  "Short title for the case (max 500 characters). Put long context in `data`."
9500
9546
  ),
9501
- data: z59.string().optional().describe(
9547
+ data: z60.string().optional().describe(
9502
9548
  "Additional data for the case. Free-form text or JSON; Agents receive this on claim."
9503
9549
  ),
9504
- labels: z59.array(
9505
- z59.object({
9506
- key: z59.string().optional().default("").describe("Label key (omit for a simple tag)."),
9507
- value: z59.string().min(1).describe("Label value (required).")
9550
+ labels: z60.array(
9551
+ z60.object({
9552
+ key: z60.string().optional().default("").describe("Label key (omit for a simple tag)."),
9553
+ value: z60.string().min(1).describe("Label value (required).")
9508
9554
  })
9509
9555
  ).max(50).optional().describe(
9510
9556
  "Optional labels to assign to the case at creation. Labels are created on the queue if they don't already exist."
9511
9557
  )
9512
9558
  });
9513
- var caseCreateRequestSchema = z59.object({
9559
+ var caseCreateRequestSchema = z60.object({
9514
9560
  case: caseCreateInputSchema.optional(),
9515
- cases: z59.array(caseCreateInputSchema).min(1).max(100).optional()
9561
+ cases: z60.array(caseCreateInputSchema).min(1).max(100).optional()
9516
9562
  }).superRefine((val, ctx) => {
9517
9563
  const hasCase = val.case !== void 0;
9518
9564
  const hasCases = val.cases !== void 0;
@@ -9530,28 +9576,28 @@ var caseCreateRequestSchema = z59.object({
9530
9576
  });
9531
9577
  }
9532
9578
  });
9533
- var caseCreateResponseSchema = z59.object({
9534
- added_cases: z59.array(caseQueueItemSchema)
9579
+ var caseCreateResponseSchema = z60.object({
9580
+ added_cases: z60.array(caseQueueItemSchema)
9535
9581
  });
9536
- var casesStatsSchema = z59.object({
9537
- total: z59.number(),
9582
+ var casesStatsSchema = z60.object({
9583
+ total: z60.number(),
9538
9584
  /** Pending, unowned, not postponed — idle and claimable */
9539
- pending: z59.number(),
9585
+ pending: z60.number(),
9540
9586
  /** "In Progress": pending cases owned by a run with no open HITL token */
9541
- claimed: z59.number(),
9587
+ claimed: z60.number(),
9542
9588
  /** "Needs Input": pending cases whose owning run has an open HITL token */
9543
- waiting: z59.number(),
9589
+ waiting: z60.number(),
9544
9590
  /** Pending, unowned cases postponed for later */
9545
- postponed: z59.number(),
9546
- completed: z59.number(),
9547
- failed: z59.number()
9591
+ postponed: z60.number(),
9592
+ completed: z60.number(),
9593
+ failed: z60.number()
9548
9594
  });
9549
- var casesStatsResponseSchema = z59.object({
9595
+ var casesStatsResponseSchema = z60.object({
9550
9596
  stats: casesStatsSchema
9551
9597
  });
9552
- var caseDetailResponseSchema = z59.object({
9598
+ var caseDetailResponseSchema = z60.object({
9553
9599
  case: caseQueueItemSchema,
9554
- events: z59.array(caseQueueItemEventSchema),
9600
+ events: z60.array(caseQueueItemEventSchema),
9555
9601
  /**
9556
9602
  * Every approval batch ever created on this case, newest first. Each
9557
9603
  * batch carries one child row per named approver (with their decision
@@ -9559,21 +9605,21 @@ var caseDetailResponseSchema = z59.object({
9559
9605
  * grouped per batch so the case-level approval history reads inline.
9560
9606
  * Empty array when no batch has ever been created on the case.
9561
9607
  */
9562
- approvalBatches: z59.array(approvalBatchSchema)
9608
+ approvalBatches: z60.array(approvalBatchSchema)
9563
9609
  });
9564
- var caseJobSummarySchema = z59.object({
9565
- id: z59.string().uuid(),
9566
- case_queue_item_id: z59.string().uuid(),
9567
- agent_id: z59.string().uuid(),
9568
- agent_name: z59.string(),
9610
+ var caseJobSummarySchema = z60.object({
9611
+ id: z60.string().uuid(),
9612
+ case_queue_item_id: z60.string().uuid(),
9613
+ agent_id: z60.string().uuid(),
9614
+ agent_name: z60.string(),
9569
9615
  status: agentRunStatusSchema,
9570
- source: z59.string().nullable(),
9571
- created_at: z59.string(),
9572
- started_at: z59.string().nullable(),
9573
- completed_at: z59.string().nullable(),
9574
- claimed_at: z59.string(),
9575
- has_pending_human_request: z59.boolean(),
9576
- pending_human_request_title: z59.string().nullable(),
9616
+ source: z60.string().nullable(),
9617
+ created_at: z60.string(),
9618
+ started_at: z60.string().nullable(),
9619
+ completed_at: z60.string().nullable(),
9620
+ claimed_at: z60.string(),
9621
+ has_pending_human_request: z60.boolean(),
9622
+ pending_human_request_title: z60.string().nullable(),
9577
9623
  evaluation: evalSummarySchema,
9578
9624
  /**
9579
9625
  * Owner of the agent run (from `agent_run.user_id`). The frontend mirrors
@@ -9581,228 +9627,228 @@ var caseJobSummarySchema = z59.object({
9581
9627
  * team role to decide whether the card is interactive (live messages,
9582
9628
  * HITL affordances, drawer link).
9583
9629
  */
9584
- user_id: z59.guid().nullable(),
9630
+ user_id: z60.guid().nullable(),
9585
9631
  /**
9586
9632
  * Display name of the user who triggered the run, joined from `profiles`.
9587
9633
  * Falls back to `user_email` for the in-card user pill when null.
9588
9634
  */
9589
- user_name: z59.string().nullable(),
9590
- user_email: z59.string().nullable()
9635
+ user_name: z60.string().nullable(),
9636
+ user_email: z60.string().nullable()
9591
9637
  });
9592
- var caseJobsResponseSchema = z59.object({
9593
- runs: z59.array(caseJobSummarySchema)
9638
+ var caseJobsResponseSchema = z60.object({
9639
+ runs: z60.array(caseJobSummarySchema)
9594
9640
  });
9595
- var caseJobRecentMessagesResponseSchema = z59.object({
9596
- messages: z59.array(agentMessageWithCreatedAtSchema)
9641
+ var caseJobRecentMessagesResponseSchema = z60.object({
9642
+ messages: z60.array(agentMessageWithCreatedAtSchema)
9597
9643
  });
9598
- var adjacentCasesResponseSchema = z59.object({
9599
- previousId: z59.guid().nullable(),
9600
- nextId: z59.guid().nullable(),
9601
- position: z59.number(),
9602
- total: z59.number()
9644
+ var adjacentCasesResponseSchema = z60.object({
9645
+ previousId: z60.guid().nullable(),
9646
+ nextId: z60.guid().nullable(),
9647
+ position: z60.number(),
9648
+ total: z60.number()
9603
9649
  });
9604
- var caseDeleteResponseSchema = z59.object({
9605
- success: z59.boolean(),
9606
- interruptedRunIds: z59.array(z59.guid())
9650
+ var caseDeleteResponseSchema = z60.object({
9651
+ success: z60.boolean(),
9652
+ interruptedRunIds: z60.array(z60.guid())
9607
9653
  });
9608
- var caseBulkDeleteResponseSchema = z59.object({
9609
- deletedCount: z59.number(),
9610
- interruptedRunIds: z59.array(z59.guid())
9654
+ var caseBulkDeleteResponseSchema = z60.object({
9655
+ deletedCount: z60.number(),
9656
+ interruptedRunIds: z60.array(z60.guid())
9611
9657
  });
9612
- var caseBulkReprocessResponseSchema = z59.object({
9613
- reprocessedCount: z59.number(),
9614
- skippedCount: z59.number(),
9658
+ var caseBulkReprocessResponseSchema = z60.object({
9659
+ reprocessedCount: z60.number(),
9660
+ skippedCount: z60.number(),
9615
9661
  // Deprecated aliases of `reprocessedCount`, both equal to it. Returned so
9616
9662
  // clients 308-redirected here from the deprecated `bulk-delegate` /
9617
9663
  // `bulk-retry` endpoints still find their original field. Optional +
9618
9664
  // `deprecated` so consumers don't couple to them; removed with those aliases
9619
9665
  // at the 2026-06-10 sunset.
9620
- delegatedCount: z59.number().meta({
9666
+ delegatedCount: z60.number().meta({
9621
9667
  deprecated: true,
9622
9668
  description: "Deprecated alias of reprocessedCount, kept for clients redirected from bulk-delegate. Removed on 2026-06-10."
9623
9669
  }).optional(),
9624
- retriedCount: z59.number().meta({
9670
+ retriedCount: z60.number().meta({
9625
9671
  deprecated: true,
9626
9672
  description: "Deprecated alias of reprocessedCount, kept for clients redirected from bulk-retry. Removed on 2026-06-10."
9627
9673
  }).optional()
9628
9674
  });
9629
- var caseBulkStatusUpdateResponseSchema = z59.object({
9630
- updatedCount: z59.number(),
9631
- skippedCount: z59.number(),
9632
- interruptedRunIds: z59.array(z59.guid())
9633
- });
9634
- var deleteQueueResponseSchema = z59.object({
9635
- success: z59.boolean(),
9636
- deleted_case_count: z59.number(),
9637
- interrupted_run_ids: z59.array(z59.guid())
9638
- });
9639
- var caseClearQueueResponseSchema = z59.object({
9640
- success: z59.boolean(),
9641
- deletedCount: z59.number(),
9642
- interruptedRunIds: z59.array(z59.guid())
9643
- });
9644
- var caseQueueSchema = z59.object({
9645
- id: z59.guid(),
9646
- name: z59.string(),
9647
- description: z59.string().nullable(),
9648
- folder_id: z59.guid().nullable(),
9675
+ var caseBulkStatusUpdateResponseSchema = z60.object({
9676
+ updatedCount: z60.number(),
9677
+ skippedCount: z60.number(),
9678
+ interruptedRunIds: z60.array(z60.guid())
9679
+ });
9680
+ var deleteQueueResponseSchema = z60.object({
9681
+ success: z60.boolean(),
9682
+ deleted_case_count: z60.number(),
9683
+ interrupted_run_ids: z60.array(z60.guid())
9684
+ });
9685
+ var caseClearQueueResponseSchema = z60.object({
9686
+ success: z60.boolean(),
9687
+ deletedCount: z60.number(),
9688
+ interruptedRunIds: z60.array(z60.guid())
9689
+ });
9690
+ var caseQueueSchema = z60.object({
9691
+ id: z60.guid(),
9692
+ name: z60.string(),
9693
+ description: z60.string().nullable(),
9694
+ folder_id: z60.guid().nullable(),
9649
9695
  // Optional (additive) so existing CaseQueue consumers and fixtures across the
9650
9696
  // FE/CLI don't break; the backend always populates it on real responses.
9651
- automation_id: z59.guid().nullable().optional(),
9652
- created_at: z59.string(),
9697
+ automation_id: z60.guid().nullable().optional(),
9698
+ created_at: z60.string(),
9653
9699
  /**
9654
9700
  * True when at least one case in this queue has ever had an approval
9655
9701
  * batch (open, resolved, or cancelled). The frontend uses this to relabel
9656
9702
  * the "Needs input" filter to "Needs input/approval" and to show the
9657
9703
  * per-case approvals column.
9658
9704
  */
9659
- has_approvals: z59.boolean()
9705
+ has_approvals: z60.boolean()
9660
9706
  });
9661
- var caseQueuesResponseSchema = z59.object({
9662
- queues: z59.array(caseQueueSchema),
9663
- total: z59.number(),
9664
- limit: z59.number(),
9665
- offset: z59.number()
9707
+ var caseQueuesResponseSchema = z60.object({
9708
+ queues: z60.array(caseQueueSchema),
9709
+ total: z60.number(),
9710
+ limit: z60.number(),
9711
+ offset: z60.number()
9666
9712
  });
9667
- var caseGetQueueResponseSchema = z59.object({
9713
+ var caseGetQueueResponseSchema = z60.object({
9668
9714
  queue: caseQueueSchema
9669
9715
  });
9670
- var caseCreateQueueResponseSchema = z59.object({
9716
+ var caseCreateQueueResponseSchema = z60.object({
9671
9717
  queue: caseQueueSchema
9672
9718
  });
9673
- var caseUpdateQueueResponseSchema = z59.object({
9719
+ var caseUpdateQueueResponseSchema = z60.object({
9674
9720
  queue: caseQueueSchema
9675
9721
  });
9676
- var caseQueueAgentProblemSchema = z59.enum([
9722
+ var caseQueueAgentProblemSchema = z60.enum([
9677
9723
  "multiple_triggers",
9678
9724
  "producer_consumer_mix"
9679
9725
  ]);
9680
- var queueAgentProducerSchema = z59.object({
9681
- agent_id: z59.guid(),
9682
- agent_name: z59.string(),
9683
- case_trigger_enabled: z59.boolean(),
9684
- case_trigger_queue_name: z59.string().nullable(),
9685
- problems: z59.array(caseQueueAgentProblemSchema)
9686
- });
9687
- var queueAgentConsumerSchema = z59.object({
9688
- agent_id: z59.guid(),
9689
- agent_name: z59.string(),
9690
- case_trigger_enabled: z59.boolean(),
9691
- is_handover_target: z59.boolean(),
9692
- problems: z59.array(caseQueueAgentProblemSchema),
9726
+ var queueAgentProducerSchema = z60.object({
9727
+ agent_id: z60.guid(),
9728
+ agent_name: z60.string(),
9729
+ case_trigger_enabled: z60.boolean(),
9730
+ case_trigger_queue_name: z60.string().nullable(),
9731
+ problems: z60.array(caseQueueAgentProblemSchema)
9732
+ });
9733
+ var queueAgentConsumerSchema = z60.object({
9734
+ agent_id: z60.guid(),
9735
+ agent_name: z60.string(),
9736
+ case_trigger_enabled: z60.boolean(),
9737
+ is_handover_target: z60.boolean(),
9738
+ problems: z60.array(caseQueueAgentProblemSchema),
9693
9739
  /**
9694
9740
  * Max concurrent Jobs this consumer's enabled trigger allows, after the
9695
9741
  * platform cap is applied. Populated only by the single-queue agents
9696
9742
  * endpoint; omitted when the consumer has no enabled trigger.
9697
9743
  */
9698
- concurrency_limit: z59.int().nonnegative().optional(),
9744
+ concurrency_limit: z60.int().nonnegative().optional(),
9699
9745
  /**
9700
9746
  * True when this consumer's active Jobs have reached `concurrency_limit`, so
9701
9747
  * the dispatcher pauses and new cases stay pending until a Job finishes.
9702
9748
  * Populated only by the single-queue agents endpoint.
9703
9749
  */
9704
- at_concurrency_limit: z59.boolean().optional()
9705
- });
9706
- var queueAgentsResponseSchema = z59.object({
9707
- queue_name: z59.string(),
9708
- producers: z59.array(queueAgentProducerSchema),
9709
- consumers: z59.array(queueAgentConsumerSchema)
9710
- });
9711
- var exportCasesResponseSchema = z59.object({
9712
- version: z59.number(),
9713
- queue_name: z59.string(),
9714
- exported_at: z59.string(),
9715
- cases: z59.array(
9716
- z59.object({
9717
- title: z59.string(),
9718
- data: z59.string().optional()
9750
+ at_concurrency_limit: z60.boolean().optional()
9751
+ });
9752
+ var queueAgentsResponseSchema = z60.object({
9753
+ queue_name: z60.string(),
9754
+ producers: z60.array(queueAgentProducerSchema),
9755
+ consumers: z60.array(queueAgentConsumerSchema)
9756
+ });
9757
+ var exportCasesResponseSchema = z60.object({
9758
+ version: z60.number(),
9759
+ queue_name: z60.string(),
9760
+ exported_at: z60.string(),
9761
+ cases: z60.array(
9762
+ z60.object({
9763
+ title: z60.string(),
9764
+ data: z60.string().optional()
9719
9765
  })
9720
9766
  )
9721
9767
  });
9722
- var importCasesResponseSchema = z59.object({
9723
- imported_count: z59.number()
9768
+ var importCasesResponseSchema = z60.object({
9769
+ imported_count: z60.number()
9724
9770
  });
9725
- var batchQueueStatsResponseSchema = z59.object({
9726
- stats: z59.record(z59.guid(), casesStatsSchema)
9771
+ var batchQueueStatsResponseSchema = z60.object({
9772
+ stats: z60.record(z60.guid(), casesStatsSchema)
9727
9773
  });
9728
- var batchQueueAgentsResponseSchema = z59.object({
9729
- agents: z59.record(
9730
- z59.guid(),
9731
- z59.object({
9732
- producers: z59.array(queueAgentProducerSchema),
9733
- consumers: z59.array(queueAgentConsumerSchema)
9774
+ var batchQueueAgentsResponseSchema = z60.object({
9775
+ agents: z60.record(
9776
+ z60.guid(),
9777
+ z60.object({
9778
+ producers: z60.array(queueAgentProducerSchema),
9779
+ consumers: z60.array(queueAgentConsumerSchema)
9734
9780
  })
9735
9781
  )
9736
9782
  });
9737
- var createTeamInviteLinkRequestSchema = z60.object({
9738
- frontendUrl: z60.url()
9783
+ var createTeamInviteLinkRequestSchema = z61.object({
9784
+ frontendUrl: z61.url()
9739
9785
  });
9740
- var getTeamInviteLinkQuerySchema = z60.object({
9741
- frontendUrl: z60.url()
9786
+ var getTeamInviteLinkQuerySchema = z61.object({
9787
+ frontendUrl: z61.url()
9742
9788
  });
9743
- var teamInviteLinkCreatorSchema = z60.object({
9744
- id: z60.guid(),
9745
- name: z60.string().nullable(),
9746
- email: z60.email()
9789
+ var teamInviteLinkCreatorSchema = z61.object({
9790
+ id: z61.guid(),
9791
+ name: z61.string().nullable(),
9792
+ email: z61.email()
9747
9793
  });
9748
- var teamInviteLinkSchema = z60.object({
9749
- id: z60.guid(),
9750
- url: z60.url().optional(),
9751
- createdAt: z60.string(),
9794
+ var teamInviteLinkSchema = z61.object({
9795
+ id: z61.guid(),
9796
+ url: z61.url().optional(),
9797
+ createdAt: z61.string(),
9752
9798
  createdBy: teamInviteLinkCreatorSchema
9753
9799
  });
9754
- var getTeamInviteLinkResponseSchema = z60.object({
9755
- hasLink: z60.boolean(),
9800
+ var getTeamInviteLinkResponseSchema = z61.object({
9801
+ hasLink: z61.boolean(),
9756
9802
  link: teamInviteLinkSchema.optional()
9757
9803
  });
9758
- var joinLinkInfoResponseSchema = z60.object({
9759
- valid: z60.boolean(),
9760
- teamName: z60.string().optional(),
9761
- teamId: z60.guid().optional(),
9762
- reason: z60.enum(["invalid", "expired"]).optional()
9804
+ var joinLinkInfoResponseSchema = z61.object({
9805
+ valid: z61.boolean(),
9806
+ teamName: z61.string().optional(),
9807
+ teamId: z61.guid().optional(),
9808
+ reason: z61.enum(["invalid", "expired"]).optional()
9763
9809
  });
9764
- var acceptJoinLinkResponseSchema = z60.object({
9765
- success: z60.boolean(),
9766
- teamId: z60.guid()
9810
+ var acceptJoinLinkResponseSchema = z61.object({
9811
+ success: z61.boolean(),
9812
+ teamId: z61.guid()
9767
9813
  });
9768
- var createClarityProcessInviteLinkRequestSchema = z61.object({
9769
- frontendUrl: z61.url()
9814
+ var createClarityProcessInviteLinkRequestSchema = z62.object({
9815
+ frontendUrl: z62.url()
9770
9816
  });
9771
9817
  var clarityProcessInviteLinkSchema = teamInviteLinkSchema;
9772
- var getClarityProcessInviteLinkResponseSchema = z61.object({
9773
- hasLink: z61.boolean(),
9818
+ var getClarityProcessInviteLinkResponseSchema = z62.object({
9819
+ hasLink: z62.boolean(),
9774
9820
  link: clarityProcessInviteLinkSchema.optional()
9775
9821
  });
9776
- var clarityJoinLinkInfoResponseSchema = z61.object({
9777
- valid: z61.boolean(),
9778
- processName: z61.string().optional(),
9779
- processId: z61.guid().optional(),
9780
- teamId: z61.guid().optional(),
9781
- reason: z61.enum(["invalid", "expired"]).optional()
9782
- });
9783
- var acceptClarityJoinLinkResponseSchema = z61.object({
9784
- success: z61.boolean(),
9785
- processId: z61.guid()
9786
- });
9787
- var credentialPreviewSchema = z62.object({
9788
- id: z62.guid().describe("Credential ID"),
9789
- domain: z62.string().describe("Domain for the credential"),
9790
- username: z62.string().nullable().describe("Username (if any)"),
9791
- hasEnabledTOTP: z62.boolean().describe("Whether TOTP is enabled"),
9792
- hasPassword: z62.boolean().describe("Whether a password is stored"),
9793
- user_id: z62.string().nullable().describe("Owner user id; null when shared with the team")
9794
- });
9795
- var otpResponseSchema = z62.object({
9796
- code: z62.string().describe("The TOTP code"),
9797
- expiresAt: z62.number().describe("Expiration timestamp in milliseconds")
9798
- });
9799
- var encryptedDataSchema = z62.object({
9800
- encrypted_data: z62.string().describe("Base64-encoded encrypted data"),
9801
- key_version: z62.string().describe("KMS key version or 'base64' for dev")
9802
- });
9803
- var credentialDetailSchema = z62.object({
9804
- domain: z62.string().describe("Domain for the credential"),
9805
- username: z62.string().nullable().describe("Username (if any)"),
9822
+ var clarityJoinLinkInfoResponseSchema = z62.object({
9823
+ valid: z62.boolean(),
9824
+ processName: z62.string().optional(),
9825
+ processId: z62.guid().optional(),
9826
+ teamId: z62.guid().optional(),
9827
+ reason: z62.enum(["invalid", "expired"]).optional()
9828
+ });
9829
+ var acceptClarityJoinLinkResponseSchema = z62.object({
9830
+ success: z62.boolean(),
9831
+ processId: z62.guid()
9832
+ });
9833
+ var credentialPreviewSchema = z63.object({
9834
+ id: z63.guid().describe("Credential ID"),
9835
+ domain: z63.string().describe("Domain for the credential"),
9836
+ username: z63.string().nullable().describe("Username (if any)"),
9837
+ hasEnabledTOTP: z63.boolean().describe("Whether TOTP is enabled"),
9838
+ hasPassword: z63.boolean().describe("Whether a password is stored"),
9839
+ user_id: z63.string().nullable().describe("Owner user id; null when shared with the team")
9840
+ });
9841
+ var otpResponseSchema = z63.object({
9842
+ code: z63.string().describe("The TOTP code"),
9843
+ expiresAt: z63.number().describe("Expiration timestamp in milliseconds")
9844
+ });
9845
+ var encryptedDataSchema = z63.object({
9846
+ encrypted_data: z63.string().describe("Base64-encoded encrypted data"),
9847
+ key_version: z63.string().describe("KMS key version or 'base64' for dev")
9848
+ });
9849
+ var credentialDetailSchema = z63.object({
9850
+ domain: z63.string().describe("Domain for the credential"),
9851
+ username: z63.string().nullable().describe("Username (if any)"),
9806
9852
  password: encryptedDataSchema.nullable().describe("Encrypted password data")
9807
9853
  });
9808
9854
  var FEATURE_FLAG_CATALOGUE = {
@@ -9961,6 +10007,11 @@ var FEATURE_FLAG_CATALOGUE = {
9961
10007
  defaultValue: false,
9962
10008
  description: "Enables the Move Agent to another team flow. Default-off while we monitor multi-table move semantics in prod; flip on for individual teams to grant access."
9963
10009
  },
10010
+ CROSS_TEAM_PULSE_MOVE: {
10011
+ key: "cross_team_pulse_move",
10012
+ defaultValue: false,
10013
+ description: "Enables the Move Pulse dashboard to another team flow. Moving a dashboard reassigns its ownership to the mover, resets it to private, and reconnects or drops its attached Connections against the target team. Default-off while we monitor move semantics in prod; flip on for individual teams to grant access."
10014
+ },
9964
10015
  TEAM_ONTOLOGY: {
9965
10016
  key: "team_ontology",
9966
10017
  defaultValue: false,
@@ -9986,11 +10037,6 @@ var FEATURE_FLAG_CATALOGUE = {
9986
10037
  defaultValue: false,
9987
10038
  description: "Enables minute-level granularity for scheduling agents, allowing sub-hour scheduling intervals for queue postponement."
9988
10039
  },
9989
- NEW_ORG_ONBOARDING: {
9990
- key: "new_org_onboarding",
9991
- defaultValue: false,
9992
- description: "Gates the entire organizations feature. When disabled, org UI is hidden and org API routes return 404 so the feature appears not to exist. When enabled, users can create organizations, invite members, manage teams under orgs, and go through the org-based onboarding flow."
9993
- },
9994
10040
  NOTIFICATION_CENTER: {
9995
10041
  key: "notification_center",
9996
10042
  defaultValue: false,
@@ -10044,160 +10090,160 @@ function coerceFlagValue(value) {
10044
10090
  }
10045
10091
  __name(coerceFlagValue, "coerceFlagValue");
10046
10092
  __name2(coerceFlagValue, "coerceFlagValue");
10047
- var teamFileItemSchema = z63.object({
10048
- id: z63.string(),
10049
- name: z63.string(),
10050
- path: z63.string(),
10051
- created_at: z63.string().optional(),
10052
- updated_at: z63.string().optional(),
10053
- metadata: z63.object({
10054
- mimetype: z63.string().optional(),
10055
- size: z63.number().optional()
10093
+ var teamFileItemSchema = z64.object({
10094
+ id: z64.string(),
10095
+ name: z64.string(),
10096
+ path: z64.string(),
10097
+ created_at: z64.string().optional(),
10098
+ updated_at: z64.string().optional(),
10099
+ metadata: z64.object({
10100
+ mimetype: z64.string().optional(),
10101
+ size: z64.number().optional()
10056
10102
  }).nullable().optional()
10057
10103
  });
10058
- var listTeamFilesResponseSchema = z63.object({
10059
- files: z63.array(teamFileItemSchema)
10060
- });
10061
- var createTeamFileUploadUrlBodySchema = z63.object({
10062
- fileName: z63.string().min(1),
10063
- contentType: z63.string().min(1)
10064
- });
10065
- var createTeamFileUploadUrlResponseSchema = z63.object({
10066
- signedUrl: z63.url(),
10067
- expiresAt: z63.iso.datetime(),
10068
- filePath: z63.string()
10069
- });
10070
- var renameTeamFileBodySchema = z63.object({
10071
- relativePath: z63.string().min(1),
10072
- newFilenameOnly: z63.string().min(1)
10073
- });
10074
- var teamFileSuccessResponseSchema = z63.object({
10075
- success: z63.boolean()
10076
- });
10077
- var teamFileDownloadUrlResponseSchema = z63.object({
10078
- url: z63.url(),
10079
- expiresAt: z63.iso.datetime()
10080
- });
10081
- var teamFileContentResponseSchema = z63.object({
10082
- content: z63.string(),
10083
- path: z63.string(),
10084
- contentType: z63.string().optional()
10085
- });
10086
- var updateTeamFileContentBodySchema = z63.object({
10087
- content: z63.string()
10088
- });
10089
- var globalAdminApiSchema = z64.object({
10090
- id: z64.guid(),
10091
- email: z64.string(),
10092
- userId: z64.guid(),
10093
- userName: z64.string().nullable(),
10094
- addedByUserId: z64.guid().nullable(),
10095
- createdAt: z64.string()
10096
- });
10097
- var globalAdminListResponseSchema = z64.object({
10098
- admins: z64.array(globalAdminApiSchema)
10099
- });
10100
- var globalAdminSearchResponseSchema = z64.object({
10101
- users: z64.array(
10102
- z64.object({
10103
- id: z64.guid(),
10104
- name: z64.string().nullable(),
10105
- email: z64.string(),
10106
- createdAt: z64.string().nullable()
10104
+ var listTeamFilesResponseSchema = z64.object({
10105
+ files: z64.array(teamFileItemSchema)
10106
+ });
10107
+ var createTeamFileUploadUrlBodySchema = z64.object({
10108
+ fileName: z64.string().min(1),
10109
+ contentType: z64.string().min(1)
10110
+ });
10111
+ var createTeamFileUploadUrlResponseSchema = z64.object({
10112
+ signedUrl: z64.url(),
10113
+ expiresAt: z64.iso.datetime(),
10114
+ filePath: z64.string()
10115
+ });
10116
+ var renameTeamFileBodySchema = z64.object({
10117
+ relativePath: z64.string().min(1),
10118
+ newFilenameOnly: z64.string().min(1)
10119
+ });
10120
+ var teamFileSuccessResponseSchema = z64.object({
10121
+ success: z64.boolean()
10122
+ });
10123
+ var teamFileDownloadUrlResponseSchema = z64.object({
10124
+ url: z64.url(),
10125
+ expiresAt: z64.iso.datetime()
10126
+ });
10127
+ var teamFileContentResponseSchema = z64.object({
10128
+ content: z64.string(),
10129
+ path: z64.string(),
10130
+ contentType: z64.string().optional()
10131
+ });
10132
+ var updateTeamFileContentBodySchema = z64.object({
10133
+ content: z64.string()
10134
+ });
10135
+ var globalAdminApiSchema = z65.object({
10136
+ id: z65.guid(),
10137
+ email: z65.string(),
10138
+ userId: z65.guid(),
10139
+ userName: z65.string().nullable(),
10140
+ addedByUserId: z65.guid().nullable(),
10141
+ createdAt: z65.string()
10142
+ });
10143
+ var globalAdminListResponseSchema = z65.object({
10144
+ admins: z65.array(globalAdminApiSchema)
10145
+ });
10146
+ var globalAdminSearchResponseSchema = z65.object({
10147
+ users: z65.array(
10148
+ z65.object({
10149
+ id: z65.guid(),
10150
+ name: z65.string().nullable(),
10151
+ email: z65.string(),
10152
+ createdAt: z65.string().nullable()
10107
10153
  })
10108
10154
  )
10109
10155
  });
10110
- var globalAdminCreateRequestSchema = z64.object({
10111
- userId: z64.guid()
10156
+ var globalAdminCreateRequestSchema = z65.object({
10157
+ userId: z65.guid()
10112
10158
  });
10113
- var globalAdminCreateResponseSchema = z64.object({
10159
+ var globalAdminCreateResponseSchema = z65.object({
10114
10160
  admin: globalAdminApiSchema
10115
10161
  });
10116
- var globalAdminDeleteResponseSchema = z64.object({
10117
- success: z64.literal(true)
10162
+ var globalAdminDeleteResponseSchema = z65.object({
10163
+ success: z65.literal(true)
10118
10164
  });
10119
- var adminAccessCheckResponseSchema = z64.object({
10120
- isGlobalAdmin: z64.boolean()
10165
+ var adminAccessCheckResponseSchema = z65.object({
10166
+ isGlobalAdmin: z65.boolean()
10121
10167
  });
10122
10168
  var JOB_LIST_SORT_COLUMNS = ["created_at"];
10123
- var jobListSortColumnSchema = z65.enum(JOB_LIST_SORT_COLUMNS);
10124
- var jobListIssueSeveritySchema = z65.enum(
10169
+ var jobListSortColumnSchema = z66.enum(JOB_LIST_SORT_COLUMNS);
10170
+ var jobListIssueSeveritySchema = z66.enum(
10125
10171
  ALL_EVALUATION_RUBRIC_SEVERITIES
10126
10172
  );
10127
- var jobListItemSchema = z65.object({
10128
- id: z65.guid(),
10129
- created_at: z65.coerce.date(),
10130
- updated_at: z65.coerce.date(),
10131
- started_at: z65.coerce.date().nullable(),
10132
- completed_at: z65.coerce.date().nullable(),
10173
+ var jobListItemSchema = z66.object({
10174
+ id: z66.guid(),
10175
+ created_at: z66.coerce.date(),
10176
+ updated_at: z66.coerce.date(),
10177
+ started_at: z66.coerce.date().nullable(),
10178
+ completed_at: z66.coerce.date().nullable(),
10133
10179
  status: agentRunStatusSchema,
10134
- source: z65.string().nullable(),
10135
- title: z65.string(),
10136
- run_number: z65.number(),
10180
+ source: z66.string().nullable(),
10181
+ title: z66.string(),
10182
+ run_number: z66.number(),
10137
10183
  // Agent info
10138
- agent_id: z65.guid(),
10139
- agent_name: z65.string(),
10140
- build_id: z65.guid(),
10184
+ agent_id: z66.guid(),
10185
+ agent_name: z66.string(),
10186
+ build_id: z66.guid(),
10141
10187
  // User info
10142
- user_id: z65.guid().nullable(),
10188
+ user_id: z66.guid().nullable(),
10143
10189
  // Case info
10144
- case_queue_item_id: z65.guid().nullable(),
10145
- case_queue_id: z65.guid().nullable(),
10146
- case_queue_name: z65.string().nullable(),
10147
- case_title: z65.string().nullable(),
10148
- postponed_to: z65.coerce.date().nullable(),
10149
- submitted_prompt_count: z65.number().int().min(0),
10190
+ case_queue_item_id: z66.guid().nullable(),
10191
+ case_queue_id: z66.guid().nullable(),
10192
+ case_queue_name: z66.string().nullable(),
10193
+ case_title: z66.string().nullable(),
10194
+ postponed_to: z66.coerce.date().nullable(),
10195
+ submitted_prompt_count: z66.number().int().min(0),
10150
10196
  eval_summaries: evalSummarySchema.nullable().optional()
10151
10197
  });
10152
- var jobListResponseSchema = z65.object({
10153
- data: z65.array(jobListItemSchema),
10154
- total: z65.number()
10198
+ var jobListResponseSchema = z66.object({
10199
+ data: z66.array(jobListItemSchema),
10200
+ total: z66.number()
10155
10201
  });
10156
- var jobFilterOptionsSchema = z65.object({
10157
- agents: z65.array(
10158
- z65.object({
10159
- id: z65.string(),
10160
- name: z65.string(),
10161
- folder_id: z65.string().nullable()
10202
+ var jobFilterOptionsSchema = z66.object({
10203
+ agents: z66.array(
10204
+ z66.object({
10205
+ id: z66.string(),
10206
+ name: z66.string(),
10207
+ folder_id: z66.string().nullable()
10162
10208
  })
10163
10209
  ),
10164
- folders: z65.array(
10165
- z65.object({
10166
- id: z65.string(),
10167
- name: z65.string(),
10168
- parent_folder_id: z65.string().nullable()
10210
+ folders: z66.array(
10211
+ z66.object({
10212
+ id: z66.string(),
10213
+ name: z66.string(),
10214
+ parent_folder_id: z66.string().nullable()
10169
10215
  })
10170
10216
  ),
10171
- users: z65.array(
10172
- z65.object({
10173
- id: z65.string(),
10174
- name: z65.string().nullable(),
10175
- email: z65.string()
10217
+ users: z66.array(
10218
+ z66.object({
10219
+ id: z66.string(),
10220
+ name: z66.string().nullable(),
10221
+ email: z66.string()
10176
10222
  })
10177
10223
  ),
10178
- caseQueues: z65.array(z65.object({ id: z65.string(), name: z65.string() }))
10179
- });
10180
- var mcpStepSchema = z66.object({
10181
- tool: z66.string().describe("MCP tool name (e.g., click, fill, navigate_page)"),
10182
- params: z66.record(z66.string(), z66.unknown()).describe("Tool-specific parameters"),
10183
- fallbackSelectors: z66.array(z66.string()).optional().describe("Alternative CSS selectors if primary fails"),
10184
- description: z66.string().optional().describe("Human-readable step description"),
10185
- screenshot: z66.string().optional().describe("Base64 screenshot at this step for visual context"),
10186
- snapshot: z66.string().optional().describe("DOM snapshot in accessibility tree format at this step"),
10187
- framePath: z66.array(z66.number()).optional().describe(
10224
+ caseQueues: z66.array(z66.object({ id: z66.string(), name: z66.string() }))
10225
+ });
10226
+ var mcpStepSchema = z67.object({
10227
+ tool: z67.string().describe("MCP tool name (e.g., click, fill, navigate_page)"),
10228
+ params: z67.record(z67.string(), z67.unknown()).describe("Tool-specific parameters"),
10229
+ fallbackSelectors: z67.array(z67.string()).optional().describe("Alternative CSS selectors if primary fails"),
10230
+ description: z67.string().optional().describe("Human-readable step description"),
10231
+ screenshot: z67.string().optional().describe("Base64 screenshot at this step for visual context"),
10232
+ snapshot: z67.string().optional().describe("DOM snapshot in accessibility tree format at this step"),
10233
+ framePath: z67.array(z67.number()).optional().describe(
10188
10234
  "Index-based path to the target iframe (e.g., [0] for first child iframe, [1, 0] for nested)"
10189
10235
  )
10190
10236
  });
10191
- var mcpWorkflowSchema = z66.object({
10192
- name: z66.string(),
10193
- startUrl: z66.string(),
10194
- viewport: z66.object({
10195
- width: z66.number(),
10196
- height: z66.number()
10237
+ var mcpWorkflowSchema = z67.object({
10238
+ name: z67.string(),
10239
+ startUrl: z67.string(),
10240
+ viewport: z67.object({
10241
+ width: z67.number(),
10242
+ height: z67.number()
10197
10243
  }),
10198
- steps: z66.array(mcpStepSchema)
10244
+ steps: z67.array(mcpStepSchema)
10199
10245
  });
10200
- var MCP_WORKFLOW_JSON_SCHEMA = z66.toJSONSchema(mcpWorkflowSchema, {
10246
+ var MCP_WORKFLOW_JSON_SCHEMA = z67.toJSONSchema(mcpWorkflowSchema, {
10201
10247
  reused: "inline"
10202
10248
  });
10203
10249
  var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
@@ -10206,52 +10252,55 @@ var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
10206
10252
  2
10207
10253
  );
10208
10254
  var ORG_BROWSER_CONFIG_VERSION = 1;
10209
- var organizationBrowserConfigDataSchema = z67.object({
10255
+ var organizationBrowserConfigDataSchema = z68.object({
10210
10256
  browserProvider: BrowserProviderTypeSchema.nullable(),
10211
10257
  dataResidency: DataResidencySchema.nullable(),
10212
10258
  dataHandling: DataHandlingSchema.nullable(),
10213
- enforced: z67.boolean()
10259
+ enforced: z68.boolean(),
10260
+ egressMode: browserEgressModeSchema.nullable().optional()
10214
10261
  });
10215
- var organizationBrowserConfigSchema = z67.object({
10216
- version: z67.literal(ORG_BROWSER_CONFIG_VERSION),
10262
+ var organizationBrowserConfigSchema = z68.object({
10263
+ version: z68.literal(ORG_BROWSER_CONFIG_VERSION),
10217
10264
  data: organizationBrowserConfigDataSchema
10218
10265
  });
10219
- var organizationBrowserSettingsSchema = z67.object({
10220
- organizationId: z67.guid(),
10266
+ var organizationBrowserSettingsSchema = z68.object({
10267
+ organizationId: z68.guid(),
10221
10268
  browserProvider: BrowserProviderTypeSchema.nullable(),
10222
10269
  dataResidency: DataResidencySchema.nullable(),
10223
10270
  dataHandling: DataHandlingSchema.nullable(),
10224
- enforced: z67.boolean(),
10225
- createdAt: z67.string(),
10226
- updatedAt: z67.string()
10271
+ enforced: z68.boolean(),
10272
+ egressMode: browserEgressModeSchema.nullable().optional(),
10273
+ createdAt: z68.string(),
10274
+ updatedAt: z68.string()
10227
10275
  });
10228
- var getOrganizationBrowserSettingsResponseSchema = z67.object({
10276
+ var getOrganizationBrowserSettingsResponseSchema = z68.object({
10229
10277
  settings: organizationBrowserSettingsSchema.nullable()
10230
10278
  });
10231
- var updateOrganizationBrowserSettingsRequestSchema = z67.object({
10279
+ var updateOrganizationBrowserSettingsRequestSchema = z68.object({
10232
10280
  browserProvider: BrowserProviderTypeSchema.nullable().optional(),
10233
10281
  dataResidency: DataResidencySchema.nullable().optional(),
10234
10282
  dataHandling: DataHandlingSchema.nullable().optional(),
10235
- enforced: z67.boolean().optional()
10283
+ enforced: z68.boolean().optional(),
10284
+ egressMode: browserEgressModeSchema.nullable().optional()
10236
10285
  });
10237
- var updateOrganizationBrowserSettingsResponseSchema = z67.object({
10286
+ var updateOrganizationBrowserSettingsResponseSchema = z68.object({
10238
10287
  settings: organizationBrowserSettingsSchema
10239
10288
  });
10240
- var catalogPluginSchema = z68.object({
10241
- name: z68.string().describe("Identifier to pass in the build's plugins array."),
10289
+ var catalogPluginSchema = z69.object({
10290
+ name: z69.string().describe("Identifier to pass in the build's plugins array."),
10242
10291
  type: extensibleEnum(["duvo-platform", "knowledge-work", "github"], {
10243
10292
  description: "Plugin source. 'duvo-platform' plugins are pre-baked into the Duvo runtime; 'knowledge-work' plugins are role-oriented bundles (engineering, sales, legal, \u2026) also baked into the runtime; 'github' plugins are downloaded from a user-supplied repository URL at run time."
10244
10293
  }),
10245
- description: z68.string()
10294
+ description: z69.string()
10246
10295
  });
10247
- var pluginCatalogResponseSchema = z68.object({
10248
- plugins: z68.array(catalogPluginSchema)
10296
+ var pluginCatalogResponseSchema = z69.object({
10297
+ plugins: z69.array(catalogPluginSchema)
10249
10298
  });
10250
- var limitValueSchema = z69.union([
10251
- z69.number().int().nonnegative(),
10252
- z69.literal("unlimited")
10299
+ var limitValueSchema = z70.union([
10300
+ z70.number().int().nonnegative(),
10301
+ z70.literal("unlimited")
10253
10302
  ]);
10254
- var runCountingModeSchema = z69.enum(["monthly", "lifetime"]);
10303
+ var runCountingModeSchema = z70.enum(["monthly", "lifetime"]);
10255
10304
  function addDuplicateKeyIssues({
10256
10305
  ctx,
10257
10306
  items,
@@ -10263,7 +10312,7 @@ function addDuplicateKeyIssues({
10263
10312
  const key = keyFor(item);
10264
10313
  if (seen.has(key)) {
10265
10314
  ctx.addIssue({
10266
- code: z69.ZodIssueCode.custom,
10315
+ code: z70.ZodIssueCode.custom,
10267
10316
  message: `Duplicate Product Access grant key: ${key}`,
10268
10317
  path: [...path, index]
10269
10318
  });
@@ -10274,34 +10323,34 @@ function addDuplicateKeyIssues({
10274
10323
  }
10275
10324
  __name(addDuplicateKeyIssues, "addDuplicateKeyIssues");
10276
10325
  __name2(addDuplicateKeyIssues, "addDuplicateKeyIssues");
10277
- var productAccessOwnerSchema = z69.discriminatedUnion("type", [
10278
- z69.object({
10279
- type: z69.literal("organization"),
10280
- organizationId: z69.guid()
10326
+ var productAccessOwnerSchema = z70.discriminatedUnion("type", [
10327
+ z70.object({
10328
+ type: z70.literal("organization"),
10329
+ organizationId: z70.guid()
10281
10330
  }),
10282
- z69.object({
10283
- type: z69.literal("team"),
10284
- teamId: z69.guid(),
10285
- organizationId: z69.guid().nullable()
10331
+ z70.object({
10332
+ type: z70.literal("team"),
10333
+ teamId: z70.guid(),
10334
+ organizationId: z70.guid().nullable()
10286
10335
  })
10287
10336
  ]);
10288
- var productAccessGrantSetSchema = z69.object({
10289
- products: z69.array(
10290
- z69.object({
10291
- productKey: z69.enum(PRODUCT_KEYS),
10292
- enabled: z69.boolean()
10337
+ var productAccessGrantSetSchema = z70.object({
10338
+ products: z70.array(
10339
+ z70.object({
10340
+ productKey: z70.enum(PRODUCT_KEYS),
10341
+ enabled: z70.boolean()
10293
10342
  })
10294
10343
  ),
10295
- capabilities: z69.array(
10296
- z69.object({
10297
- capabilityKey: z69.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
10298
- enabled: z69.boolean()
10344
+ capabilities: z70.array(
10345
+ z70.object({
10346
+ capabilityKey: z70.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
10347
+ enabled: z70.boolean()
10299
10348
  })
10300
10349
  ),
10301
- limits: z69.array(
10302
- z69.object({
10303
- productKey: z69.enum(PRODUCT_KEYS),
10304
- limitKey: z69.enum(ENTITLEMENT_LIMIT_KEYS),
10350
+ limits: z70.array(
10351
+ z70.object({
10352
+ productKey: z70.enum(PRODUCT_KEYS),
10353
+ limitKey: z70.enum(ENTITLEMENT_LIMIT_KEYS),
10305
10354
  limitValue: limitValueSchema,
10306
10355
  countingMode: runCountingModeSchema.nullable()
10307
10356
  })
@@ -10326,51 +10375,51 @@ var productAccessGrantSetSchema = z69.object({
10326
10375
  path: ["limits"]
10327
10376
  });
10328
10377
  });
10329
- var productAccessSnapshotSchema = z69.object({
10330
- products: z69.array(
10331
- z69.object({
10332
- productKey: z69.enum(PRODUCT_KEYS),
10333
- enabled: z69.boolean()
10378
+ var productAccessSnapshotSchema = z70.object({
10379
+ products: z70.array(
10380
+ z70.object({
10381
+ productKey: z70.enum(PRODUCT_KEYS),
10382
+ enabled: z70.boolean()
10334
10383
  })
10335
10384
  ),
10336
- capabilities: z69.array(
10337
- z69.object({
10385
+ capabilities: z70.array(
10386
+ z70.object({
10338
10387
  capabilityKey: extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS),
10339
- productKey: z69.enum(PRODUCT_KEYS),
10340
- enabled: z69.boolean()
10388
+ productKey: z70.enum(PRODUCT_KEYS),
10389
+ enabled: z70.boolean()
10341
10390
  })
10342
10391
  ),
10343
- limits: z69.array(
10344
- z69.object({
10345
- limitKey: z69.enum(ENTITLEMENT_LIMIT_KEYS),
10346
- productKey: z69.enum(PRODUCT_KEYS),
10392
+ limits: z70.array(
10393
+ z70.object({
10394
+ limitKey: z70.enum(ENTITLEMENT_LIMIT_KEYS),
10395
+ productKey: z70.enum(PRODUCT_KEYS),
10347
10396
  limitValue: limitValueSchema,
10348
10397
  countingMode: runCountingModeSchema.nullable(),
10349
- label: z69.literal("per_team")
10398
+ label: z70.literal("per_team")
10350
10399
  })
10351
10400
  )
10352
10401
  });
10353
- var billingPlanSchema = z69.object({
10354
- planVersionId: z69.string(),
10355
- planName: z69.string(),
10356
- basePlan: z69.enum(["free", "pro", "enterprise"])
10402
+ var billingPlanSchema = z70.object({
10403
+ planVersionId: z70.string(),
10404
+ planName: z70.string(),
10405
+ basePlan: z70.enum(["free", "pro", "enterprise"])
10357
10406
  });
10358
- var inheritedFromSchema = z69.discriminatedUnion("type", [
10359
- z69.object({
10360
- type: z69.literal("organization"),
10361
- organizationId: z69.guid()
10407
+ var inheritedFromSchema = z70.discriminatedUnion("type", [
10408
+ z70.object({
10409
+ type: z70.literal("organization"),
10410
+ organizationId: z70.guid()
10362
10411
  }),
10363
- z69.object({
10364
- type: z69.literal("team_subscription"),
10365
- planVersionId: z69.string()
10412
+ z70.object({
10413
+ type: z70.literal("team_subscription"),
10414
+ planVersionId: z70.string()
10366
10415
  })
10367
10416
  ]);
10368
- var productAccessReadResponseSchema = z69.object({
10417
+ var productAccessReadResponseSchema = z70.object({
10369
10418
  owner: productAccessOwnerSchema,
10370
- source: z69.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10371
- accessRevision: z69.string().min(1),
10419
+ source: z70.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10420
+ accessRevision: z70.string().min(1),
10372
10421
  displayPreset: displayPresetSchema,
10373
- hasExplicitTeamAccess: z69.boolean(),
10422
+ hasExplicitTeamAccess: z70.boolean(),
10374
10423
  inheritedFrom: inheritedFromSchema.nullable(),
10375
10424
  billingPlan: billingPlanSchema.nullable(),
10376
10425
  grants: productAccessSnapshotSchema,
@@ -10378,67 +10427,67 @@ var productAccessReadResponseSchema = z69.object({
10378
10427
  }).superRefine((value, ctx) => {
10379
10428
  if (value.owner.type === "team" && value.source === "organization" && value.inheritedFrom?.type !== "organization") {
10380
10429
  ctx.addIssue({
10381
- code: z69.ZodIssueCode.custom,
10430
+ code: z70.ZodIssueCode.custom,
10382
10431
  message: "inheritedFrom organization context is required when team source is organization",
10383
10432
  path: ["inheritedFrom"]
10384
10433
  });
10385
10434
  }
10386
10435
  if (value.owner.type === "team" && value.source === "team_subscription" && value.inheritedFrom?.type !== "team_subscription") {
10387
10436
  ctx.addIssue({
10388
- code: z69.ZodIssueCode.custom,
10437
+ code: z70.ZodIssueCode.custom,
10389
10438
  message: "inheritedFrom subscription context is required when team source is team_subscription",
10390
10439
  path: ["inheritedFrom"]
10391
10440
  });
10392
10441
  }
10393
10442
  if (value.owner.type === "team" && value.source === "team" && value.inheritedFrom !== null) {
10394
10443
  ctx.addIssue({
10395
- code: z69.ZodIssueCode.custom,
10444
+ code: z70.ZodIssueCode.custom,
10396
10445
  message: "inheritedFrom must be null for direct team Product Access",
10397
10446
  path: ["inheritedFrom"]
10398
10447
  });
10399
10448
  }
10400
10449
  if (value.owner.type === "organization" && value.billingPlan !== null) {
10401
10450
  ctx.addIssue({
10402
- code: z69.ZodIssueCode.custom,
10451
+ code: z70.ZodIssueCode.custom,
10403
10452
  message: "billingPlan must be null for organization Product Access",
10404
10453
  path: ["billingPlan"]
10405
10454
  });
10406
10455
  }
10407
10456
  if (value.owner.type === "organization" && value.source !== "organization") {
10408
10457
  ctx.addIssue({
10409
- code: z69.ZodIssueCode.custom,
10458
+ code: z70.ZodIssueCode.custom,
10410
10459
  message: "organization Product Access source must be organization",
10411
10460
  path: ["source"]
10412
10461
  });
10413
10462
  }
10414
10463
  if (value.owner.type === "organization" && value.inheritedFrom !== null) {
10415
10464
  ctx.addIssue({
10416
- code: z69.ZodIssueCode.custom,
10465
+ code: z70.ZodIssueCode.custom,
10417
10466
  message: "inheritedFrom must be null for organization Product Access",
10418
10467
  path: ["inheritedFrom"]
10419
10468
  });
10420
10469
  }
10421
10470
  });
10422
- var productAccessImpactRequestSchema = z69.object({
10471
+ var productAccessImpactRequestSchema = z70.object({
10423
10472
  proposedGrants: productAccessGrantSetSchema
10424
10473
  });
10425
- var productAccessWriteRequestSchema = z69.object({
10474
+ var productAccessWriteRequestSchema = z70.object({
10426
10475
  proposedGrants: productAccessGrantSetSchema,
10427
- accessRevision: z69.string().min(1),
10428
- impactFingerprint: z69.string().min(1).optional()
10429
- });
10430
- var productAccessTeamResetRequestSchema = z69.object({
10431
- accessRevision: z69.string().min(1),
10432
- impactFingerprint: z69.string().min(1).optional()
10433
- });
10434
- var productAccessChangeSummarySchema = z69.object({
10435
- addedProducts: z69.array(z69.enum(PRODUCT_KEYS)),
10436
- removedProducts: z69.array(z69.enum(PRODUCT_KEYS)),
10437
- addedCapabilities: z69.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10438
- removedCapabilities: z69.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10439
- limitChanges: z69.array(
10440
- z69.object({
10441
- limitKey: z69.enum(ENTITLEMENT_LIMIT_KEYS),
10476
+ accessRevision: z70.string().min(1),
10477
+ impactFingerprint: z70.string().min(1).optional()
10478
+ });
10479
+ var productAccessTeamResetRequestSchema = z70.object({
10480
+ accessRevision: z70.string().min(1),
10481
+ impactFingerprint: z70.string().min(1).optional()
10482
+ });
10483
+ var productAccessChangeSummarySchema = z70.object({
10484
+ addedProducts: z70.array(z70.enum(PRODUCT_KEYS)),
10485
+ removedProducts: z70.array(z70.enum(PRODUCT_KEYS)),
10486
+ addedCapabilities: z70.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10487
+ removedCapabilities: z70.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10488
+ limitChanges: z70.array(
10489
+ z70.object({
10490
+ limitKey: z70.enum(ENTITLEMENT_LIMIT_KEYS),
10442
10491
  currentValue: limitValueSchema,
10443
10492
  currentCountingMode: runCountingModeSchema.nullable(),
10444
10493
  proposedValue: limitValueSchema,
@@ -10446,61 +10495,61 @@ var productAccessChangeSummarySchema = z69.object({
10446
10495
  })
10447
10496
  )
10448
10497
  });
10449
- var productAccessImpactResponseSchema = z69.object({
10498
+ var productAccessImpactResponseSchema = z70.object({
10450
10499
  owner: productAccessOwnerSchema,
10451
- impactFingerprint: z69.string().min(1),
10452
- affectedTeamCount: z69.number().int().nonnegative(),
10453
- affectedTeamsTruncated: z69.boolean(),
10500
+ impactFingerprint: z70.string().min(1),
10501
+ affectedTeamCount: z70.number().int().nonnegative(),
10502
+ affectedTeamsTruncated: z70.boolean(),
10454
10503
  changes: productAccessChangeSummarySchema,
10455
- sideEffects: z69.object({
10456
- automationWillPause: z69.boolean(),
10457
- clarityWillHide: z69.boolean()
10504
+ sideEffects: z70.object({
10505
+ automationWillPause: z70.boolean(),
10506
+ clarityWillHide: z70.boolean()
10458
10507
  }),
10459
- affectedTeamsPreview: z69.array(
10460
- z69.object({
10461
- teamId: z69.guid(),
10462
- teamName: z69.string(),
10463
- source: z69.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10508
+ affectedTeamsPreview: z70.array(
10509
+ z70.object({
10510
+ teamId: z70.guid(),
10511
+ teamName: z70.string(),
10512
+ source: z70.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10464
10513
  changes: productAccessChangeSummarySchema
10465
10514
  })
10466
10515
  )
10467
10516
  });
10468
- var publicProfileSchema = z70.object({
10469
- id: z70.guid(),
10470
- name: z70.string().nullable(),
10471
- email: z70.email(),
10472
- teamId: z70.guid().nullable()
10517
+ var publicProfileSchema = z71.object({
10518
+ id: z71.guid(),
10519
+ name: z71.string().nullable(),
10520
+ email: z71.email(),
10521
+ teamId: z71.guid().nullable()
10473
10522
  });
10474
- var publicProfileResponseSchema = z70.object({
10523
+ var publicProfileResponseSchema = z71.object({
10475
10524
  profile: publicProfileSchema
10476
10525
  });
10477
- var elementSelectorsSchema = z71.object({
10478
- css: z71.string().optional(),
10479
- cssPath: z71.string().optional(),
10480
- xpath: z71.string().optional(),
10481
- testId: z71.string().optional(),
10482
- ariaSelector: z71.string().optional(),
10483
- text: z71.string().optional()
10526
+ var elementSelectorsSchema = z72.object({
10527
+ css: z72.string().optional(),
10528
+ cssPath: z72.string().optional(),
10529
+ xpath: z72.string().optional(),
10530
+ testId: z72.string().optional(),
10531
+ ariaSelector: z72.string().optional(),
10532
+ text: z72.string().optional()
10484
10533
  });
10485
- var elementInfoSchema = z71.object({
10486
- uid: z71.string().optional(),
10534
+ var elementInfoSchema = z72.object({
10535
+ uid: z72.string().optional(),
10487
10536
  selectors: elementSelectorsSchema,
10488
- tagName: z71.string(),
10489
- textContent: z71.string().optional(),
10490
- ariaLabel: z71.string().optional(),
10491
- computedRole: z71.string().optional(),
10492
- attributes: z71.record(z71.string(), z71.string()).optional(),
10493
- framePath: z71.array(z71.number()).optional(),
10494
- frameUrl: z71.string().optional()
10495
- });
10496
- var recordedEventSchema = z71.looseObject({
10497
- id: z71.string(),
10498
- type: z71.string(),
10499
- timestamp: z71.number(),
10500
- url: z71.string(),
10501
- tabId: z71.number().optional(),
10502
- frameId: z71.number().optional(),
10503
- framePath: z71.array(z71.number()).optional(),
10537
+ tagName: z72.string(),
10538
+ textContent: z72.string().optional(),
10539
+ ariaLabel: z72.string().optional(),
10540
+ computedRole: z72.string().optional(),
10541
+ attributes: z72.record(z72.string(), z72.string()).optional(),
10542
+ framePath: z72.array(z72.number()).optional(),
10543
+ frameUrl: z72.string().optional()
10544
+ });
10545
+ var recordedEventSchema = z72.looseObject({
10546
+ id: z72.string(),
10547
+ type: z72.string(),
10548
+ timestamp: z72.number(),
10549
+ url: z72.string(),
10550
+ tabId: z72.number().optional(),
10551
+ frameId: z72.number().optional(),
10552
+ framePath: z72.array(z72.number()).optional(),
10504
10553
  element: elementInfoSchema.optional()
10505
10554
  });
10506
10555
  var COMPUTER_USE_TARGET_SOURCES = [
@@ -10513,72 +10562,72 @@ var COMPUTER_USE_TARGET_CONFIDENCES = [
10513
10562
  "medium",
10514
10563
  "low"
10515
10564
  ];
10516
- var computerUseElementIdentitySchema = z71.object({
10517
- role: z71.string().optional(),
10518
- name: z71.string().optional(),
10519
- automationId: z71.string().optional(),
10520
- className: z71.string().optional(),
10521
- bounds: z71.object({
10522
- x: z71.number(),
10523
- y: z71.number(),
10524
- width: z71.number(),
10525
- height: z71.number()
10565
+ var computerUseElementIdentitySchema = z72.object({
10566
+ role: z72.string().optional(),
10567
+ name: z72.string().optional(),
10568
+ automationId: z72.string().optional(),
10569
+ className: z72.string().optional(),
10570
+ bounds: z72.object({
10571
+ x: z72.number(),
10572
+ y: z72.number(),
10573
+ width: z72.number(),
10574
+ height: z72.number()
10526
10575
  }).optional()
10527
10576
  });
10528
- var computerUseElementTargetSchema = z71.object({
10529
- selector: z71.string().optional(),
10530
- confidence: z71.enum(COMPUTER_USE_TARGET_CONFIDENCES),
10531
- source: z71.enum(COMPUTER_USE_TARGET_SOURCES),
10577
+ var computerUseElementTargetSchema = z72.object({
10578
+ selector: z72.string().optional(),
10579
+ confidence: z72.enum(COMPUTER_USE_TARGET_CONFIDENCES),
10580
+ source: z72.enum(COMPUTER_USE_TARGET_SOURCES),
10532
10581
  element: computerUseElementIdentitySchema.optional()
10533
10582
  });
10534
- var computerUseEventBaseSchema = z71.object({
10583
+ var computerUseEventBaseSchema = z72.object({
10535
10584
  /** Client-generated id; correlates an async element resolution back. */
10536
- id: z71.string().optional(),
10537
- timestamp: z71.number(),
10585
+ id: z72.string().optional(),
10586
+ timestamp: z72.number(),
10538
10587
  /** Links this event to a screenshot uploaded in the same/earlier batch. */
10539
- screenshotSeq: z71.number().int().nonnegative().optional(),
10588
+ screenshotSeq: z72.number().int().nonnegative().optional(),
10540
10589
  /** Resolved UIA element target (primary replay anchor). */
10541
10590
  target: computerUseElementTargetSchema.optional()
10542
10591
  });
10543
10592
  var computerUseClickEventSchema = computerUseEventBaseSchema.extend({
10544
- type: z71.literal("click"),
10593
+ type: z72.literal("click"),
10545
10594
  /** Cursor position in native desktop pixels. */
10546
- x: z71.number(),
10547
- y: z71.number(),
10548
- button: z71.enum(["left", "right", "middle"]).optional(),
10549
- double: z71.boolean().optional()
10595
+ x: z72.number(),
10596
+ y: z72.number(),
10597
+ button: z72.enum(["left", "right", "middle"]).optional(),
10598
+ double: z72.boolean().optional()
10550
10599
  });
10551
10600
  var computerUseScrollEventSchema = computerUseEventBaseSchema.extend({
10552
- type: z71.literal("scroll"),
10553
- x: z71.number(),
10554
- y: z71.number(),
10555
- deltaX: z71.number(),
10556
- deltaY: z71.number()
10601
+ type: z72.literal("scroll"),
10602
+ x: z72.number(),
10603
+ y: z72.number(),
10604
+ deltaX: z72.number(),
10605
+ deltaY: z72.number()
10557
10606
  });
10558
10607
  var computerUseTypeEventSchema = computerUseEventBaseSchema.extend({
10559
- type: z71.literal("type"),
10608
+ type: z72.literal("type"),
10560
10609
  /** Number of characters typed (redacted; no literal text). */
10561
- textLength: z71.number().int().nonnegative(),
10610
+ textLength: z72.number().int().nonnegative(),
10562
10611
  /**
10563
10612
  * @deprecated Never persisted. Literal typed text can contain secrets; the
10564
10613
  * recorder sends `textLength` instead and the backend strips any `text`.
10565
10614
  */
10566
- text: z71.string().optional()
10615
+ text: z72.string().optional()
10567
10616
  });
10568
10617
  var computerUseKeyEventSchema = computerUseEventBaseSchema.extend({
10569
- type: z71.literal("key"),
10570
- key: z71.string()
10618
+ type: z72.literal("key"),
10619
+ key: z72.string()
10571
10620
  });
10572
- var computerUseRecordedEventSchema = z71.discriminatedUnion("type", [
10621
+ var computerUseRecordedEventSchema = z72.discriminatedUnion("type", [
10573
10622
  computerUseClickEventSchema,
10574
10623
  computerUseScrollEventSchema,
10575
10624
  computerUseTypeEventSchema,
10576
10625
  computerUseKeyEventSchema
10577
10626
  ]);
10578
- var computerUseScreenshotSchema = z71.object({
10579
- seq: z71.number().int().nonnegative(),
10627
+ var computerUseScreenshotSchema = z72.object({
10628
+ seq: z72.number().int().nonnegative(),
10580
10629
  /** Base64-encoded JPEG (no data: URL prefix). */
10581
- base64: z71.string()
10630
+ base64: z72.string()
10582
10631
  });
10583
10632
  var DUVO_CLIENT_HEADER = "x-duvo-client";
10584
10633
  var DUVO_CLIENTS = {
@@ -10597,54 +10646,54 @@ function resolveRequestSourceFromClientHeader(header) {
10597
10646
  }
10598
10647
  __name(resolveRequestSourceFromClientHeader, "resolveRequestSourceFromClientHeader");
10599
10648
  __name2(resolveRequestSourceFromClientHeader, "resolveRequestSourceFromClientHeader");
10600
- var RedactedMcpServerConfigSchema = z72.object({
10649
+ var RedactedMcpServerConfigSchema = z73.object({
10601
10650
  type: TransportTypeSchema,
10602
10651
  integrationSlug: IntegrationSlugSchema,
10603
- instanceId: z72.string().nullable()
10652
+ instanceId: z73.string().nullable()
10604
10653
  });
10605
- var ThreadContextMessageSchema = z72.object({
10606
- role: z72.enum(["user", "assistant"]),
10607
- content: z72.string()
10654
+ var ThreadContextMessageSchema = z73.object({
10655
+ role: z73.enum(["user", "assistant"]),
10656
+ content: z73.string()
10608
10657
  });
10609
- var ChatFileReferenceSchema = z72.object({
10610
- id: z72.string(),
10611
- name: z72.string(),
10612
- mimetype: z72.string(),
10613
- size: z72.number(),
10614
- platform: z72.enum(["slack", "teams"]),
10615
- workspaceId: z72.string(),
10616
- channelId: z72.string()
10617
- });
10618
- var ResolvedSubAgentSchema = z72.object({
10619
- agentId: z72.string().uuid(),
10620
- buildId: z72.string().uuid(),
10621
- name: z72.string().min(1).max(64).regex(/^[a-z0-9-]+$/).describe(
10658
+ var ChatFileReferenceSchema = z73.object({
10659
+ id: z73.string(),
10660
+ name: z73.string(),
10661
+ mimetype: z73.string(),
10662
+ size: z73.number(),
10663
+ platform: z73.enum(["slack", "teams"]),
10664
+ workspaceId: z73.string(),
10665
+ channelId: z73.string()
10666
+ });
10667
+ var ResolvedSubAgentSchema = z73.object({
10668
+ agentId: z73.string().uuid(),
10669
+ buildId: z73.string().uuid(),
10670
+ name: z73.string().min(1).max(64).regex(/^[a-z0-9-]+$/).describe(
10622
10671
  "Stable slug used as the Claude Code subagent name (kebab-case, \u226464 chars)"
10623
10672
  ),
10624
- description: z72.string().describe(
10673
+ description: z73.string().describe(
10625
10674
  "Routing description Claude uses to decide when to delegate to this subagent"
10626
10675
  ),
10627
- prompt: z72.string().describe("System prompt (AOP) for this subagent"),
10628
- model: z72.string().optional().describe("Optional Claude model identifier override for this subagent"),
10629
- mcpServers: z72.record(z72.string(), RedactedMcpServerConfigSchema).default({}).describe(
10676
+ prompt: z73.string().describe("System prompt (AOP) for this subagent"),
10677
+ model: z73.string().optional().describe("Optional Claude model identifier override for this subagent"),
10678
+ mcpServers: z73.record(z73.string(), RedactedMcpServerConfigSchema).default({}).describe(
10630
10679
  "Redacted MCP server configs scoped to this subagent. Secrets resolved at execution time."
10631
10680
  )
10632
10681
  });
10633
10682
  var RunConfigSchema = AgentConfigSchema.extend({
10634
- task: z72.string(),
10635
- mcpServers: z72.record(z72.string(), RedactedMcpServerConfigSchema),
10636
- subAgents: z72.array(ResolvedSubAgentSchema).optional().default([]),
10637
- conversationHistory: z72.array(ThreadContextMessageSchema).optional(),
10638
- chatFiles: z72.array(ChatFileReferenceSchema).optional(),
10683
+ task: z73.string(),
10684
+ mcpServers: z73.record(z73.string(), RedactedMcpServerConfigSchema),
10685
+ subAgents: z73.array(ResolvedSubAgentSchema).optional().default([]),
10686
+ conversationHistory: z73.array(ThreadContextMessageSchema).optional(),
10687
+ chatFiles: z73.array(ChatFileReferenceSchema).optional(),
10639
10688
  /** IANA timezone (e.g. `"Europe/Prague"`). Consumers should fall back to UTC when absent. */
10640
- timezone: z72.string().optional(),
10689
+ timezone: z73.string().optional(),
10641
10690
  /**
10642
10691
  * ISO 8601 timestamp captured when the run was created. Frozen at
10643
10692
  * run-creation time and never recomputed, so resumes reuse the same value —
10644
10693
  * the runtime injects it into the cached system prompt and a changing value
10645
10694
  * would bust the prompt cache.
10646
10695
  */
10647
- sessionStartedAt: z72.string().optional(),
10696
+ sessionStartedAt: z73.string().optional(),
10648
10697
  /**
10649
10698
  * True when this dispatch resumes a run the user stopped. Derived on each
10650
10699
  * continue from the durable `agent_run.stopped_by_user` column (set only by a
@@ -10653,16 +10702,16 @@ var RunConfigSchema = AgentConfigSchema.extend({
10653
10702
  * first resumed turn. Lives here — not in cc-server memory — so it survives a
10654
10703
  * sandbox suspend/resume.
10655
10704
  */
10656
- resumedAfterStop: z72.boolean().optional()
10705
+ resumedAfterStop: z73.boolean().optional()
10657
10706
  });
10658
- var StoredRunConfigV0Schema = z72.object({
10659
- version: z72.literal("v0")
10707
+ var StoredRunConfigV0Schema = z73.object({
10708
+ version: z73.literal("v0")
10660
10709
  });
10661
- var StoredRunConfigV1Schema = z72.object({
10662
- version: z72.literal("v1"),
10710
+ var StoredRunConfigV1Schema = z73.object({
10711
+ version: z73.literal("v1"),
10663
10712
  data: RunConfigSchema
10664
10713
  });
10665
- var StoredRunConfigSchema = z72.union([
10714
+ var StoredRunConfigSchema = z73.union([
10666
10715
  StoredRunConfigV0Schema,
10667
10716
  StoredRunConfigV1Schema
10668
10717
  ]);
@@ -10681,178 +10730,178 @@ function isRunConfig(config) {
10681
10730
  }
10682
10731
  __name(isRunConfig, "isRunConfig");
10683
10732
  __name2(isRunConfig, "isRunConfig");
10684
- var skillApiSchema = z73.object({
10685
- id: z73.string(),
10686
- name: z73.string(),
10687
- description: z73.string(),
10733
+ var skillApiSchema = z74.object({
10734
+ id: z74.string(),
10735
+ name: z74.string(),
10736
+ description: z74.string(),
10688
10737
  // System skills have null team_id.
10689
- team_id: z73.string().nullable()
10738
+ team_id: z74.string().nullable()
10690
10739
  });
10691
- var listSkillsResponseSchema = z73.object({
10692
- skills: z73.array(skillApiSchema)
10693
- });
10694
- var systemSkillSchema = z73.object({
10695
- id: z73.string(),
10696
- name: z73.string(),
10697
- description: z73.string()
10740
+ var listSkillsResponseSchema = z74.object({
10741
+ skills: z74.array(skillApiSchema)
10698
10742
  });
10699
- var listSystemSkillsResponseSchema = z73.object({
10700
- skills: z73.array(systemSkillSchema)
10701
- });
10702
- var skillFileItemSchema = z73.object({
10703
- name: z73.string(),
10704
- path: z73.string(),
10705
- size: z73.number().optional(),
10706
- contentType: z73.string().optional(),
10707
- updatedAt: z73.string().optional()
10708
- });
10709
- var listSkillFilesResponseSchema = z73.object({
10710
- files: z73.array(skillFileItemSchema)
10711
- });
10712
- var getSkillFileContentResponseSchema = z73.object({
10713
- content: z73.string(),
10714
- path: z73.string(),
10715
- contentType: z73.string().optional()
10716
- });
10717
- var updateSkillFileBodySchema = z73.object({
10718
- content: z73.string()
10719
- });
10720
- var updateSkillFileResponseSchema = z73.object({
10721
- success: z73.boolean(),
10722
- message: z73.string(),
10723
- skill: z73.object({
10724
- id: z73.string(),
10725
- name: z73.string(),
10726
- description: z73.string()
10743
+ var systemSkillSchema = z74.object({
10744
+ id: z74.string(),
10745
+ name: z74.string(),
10746
+ description: z74.string()
10747
+ });
10748
+ var listSystemSkillsResponseSchema = z74.object({
10749
+ skills: z74.array(systemSkillSchema)
10750
+ });
10751
+ var skillFileItemSchema = z74.object({
10752
+ name: z74.string(),
10753
+ path: z74.string(),
10754
+ size: z74.number().optional(),
10755
+ contentType: z74.string().optional(),
10756
+ updatedAt: z74.string().optional()
10757
+ });
10758
+ var listSkillFilesResponseSchema = z74.object({
10759
+ files: z74.array(skillFileItemSchema)
10760
+ });
10761
+ var getSkillFileContentResponseSchema = z74.object({
10762
+ content: z74.string(),
10763
+ path: z74.string(),
10764
+ contentType: z74.string().optional()
10765
+ });
10766
+ var updateSkillFileBodySchema = z74.object({
10767
+ content: z74.string()
10768
+ });
10769
+ var updateSkillFileResponseSchema = z74.object({
10770
+ success: z74.boolean(),
10771
+ message: z74.string(),
10772
+ skill: z74.object({
10773
+ id: z74.string(),
10774
+ name: z74.string(),
10775
+ description: z74.string()
10727
10776
  }).optional()
10728
10777
  });
10729
- var deleteSkillResponseSchema = z73.object({
10730
- success: z73.boolean(),
10731
- message: z73.string()
10778
+ var deleteSkillResponseSchema = z74.object({
10779
+ success: z74.boolean(),
10780
+ message: z74.string()
10732
10781
  });
10733
- var generateSkillBodySchema = z73.object({
10734
- prompt: z73.string().min(1).max(2e3),
10735
- existingContent: z73.string().max(2e4).optional()
10782
+ var generateSkillBodySchema = z74.object({
10783
+ prompt: z74.string().min(1).max(2e3),
10784
+ existingContent: z74.string().max(2e4).optional()
10736
10785
  });
10737
- var generateSkillResponseSchema = z73.object({
10738
- content: z73.string()
10786
+ var generateSkillResponseSchema = z74.object({
10787
+ content: z74.string()
10739
10788
  });
10740
- var skillAssignmentSchema = z73.object({
10741
- id: z73.string(),
10742
- name: z73.string()
10789
+ var skillAssignmentSchema = z74.object({
10790
+ id: z74.string(),
10791
+ name: z74.string()
10743
10792
  });
10744
- var listSkillAssignmentsResponseSchema = z73.object({
10745
- assignments: z73.array(skillAssignmentSchema),
10746
- total: z73.number()
10793
+ var listSkillAssignmentsResponseSchema = z74.object({
10794
+ assignments: z74.array(skillAssignmentSchema),
10795
+ total: z74.number()
10747
10796
  });
10748
- var teamInvitationApiSchema = z74.object({
10749
- id: z74.string(),
10750
- team_id: z74.string(),
10751
- email: z74.email(),
10752
- invited_by: z74.string(),
10753
- role: z74.string(),
10754
- status: z74.string(),
10755
- name: z74.string().nullable(),
10756
- created_at: z74.string(),
10757
- process_id: z74.guid().nullable().optional()
10758
- });
10759
- var teamInvitationDetailApiSchema = z74.object({
10760
- id: z74.string(),
10761
- team_id: z74.string(),
10762
- email: z74.email(),
10763
- invited_by: z74.string(),
10764
- role: z74.string(),
10765
- status: z74.string(),
10766
- name: z74.string().nullable(),
10767
- created_at: z74.string(),
10768
- process_id: z74.guid().nullable().optional(),
10769
- team: z74.object({
10770
- id: z74.string(),
10771
- name: z74.string()
10797
+ var teamInvitationApiSchema = z75.object({
10798
+ id: z75.string(),
10799
+ team_id: z75.string(),
10800
+ email: z75.email(),
10801
+ invited_by: z75.string(),
10802
+ role: z75.string(),
10803
+ status: z75.string(),
10804
+ name: z75.string().nullable(),
10805
+ created_at: z75.string(),
10806
+ process_id: z75.guid().nullable().optional()
10807
+ });
10808
+ var teamInvitationDetailApiSchema = z75.object({
10809
+ id: z75.string(),
10810
+ team_id: z75.string(),
10811
+ email: z75.email(),
10812
+ invited_by: z75.string(),
10813
+ role: z75.string(),
10814
+ status: z75.string(),
10815
+ name: z75.string().nullable(),
10816
+ created_at: z75.string(),
10817
+ process_id: z75.guid().nullable().optional(),
10818
+ team: z75.object({
10819
+ id: z75.string(),
10820
+ name: z75.string()
10772
10821
  }),
10773
- invitedBy: z74.object({
10774
- id: z74.string(),
10775
- name: z74.string().nullable(),
10776
- email: z74.email()
10822
+ invitedBy: z75.object({
10823
+ id: z75.string(),
10824
+ name: z75.string().nullable(),
10825
+ email: z75.email()
10777
10826
  }),
10778
- process: z74.object({
10779
- id: z74.string(),
10780
- name: z74.string()
10827
+ process: z75.object({
10828
+ id: z75.string(),
10829
+ name: z75.string()
10781
10830
  }).optional()
10782
10831
  });
10783
- var createTeamInvitationRequestSchema = z74.object({
10784
- email: z74.email(),
10785
- role: z74.string(),
10786
- processId: z74.guid().optional()
10832
+ var createTeamInvitationRequestSchema = z75.object({
10833
+ email: z75.email(),
10834
+ role: z75.string(),
10835
+ processId: z75.guid().optional()
10787
10836
  });
10788
- var acceptTeamInvitationRequestSchema = z74.object({
10789
- name: z74.string().optional()
10837
+ var acceptTeamInvitationRequestSchema = z75.object({
10838
+ name: z75.string().optional()
10790
10839
  });
10791
- var bulkInviteResponseSchema = z74.object({
10792
- succeeded: z74.number(),
10793
- skipped: z74.number(),
10794
- failed: z74.number()
10840
+ var bulkInviteResponseSchema = z75.object({
10841
+ succeeded: z75.number(),
10842
+ skipped: z75.number(),
10843
+ failed: z75.number()
10795
10844
  });
10796
10845
  var TEAM_DISCOVERY_MODES = ["request", "auto"];
10797
- var teamDiscoveryModeSchema = z75.enum(TEAM_DISCOVERY_MODES);
10798
- var BrowserRegionSchema = z75.enum([
10846
+ var teamDiscoveryModeSchema = z76.enum(TEAM_DISCOVERY_MODES);
10847
+ var BrowserRegionSchema = z76.enum([
10799
10848
  "us-west-2",
10800
10849
  "us-east-1",
10801
10850
  "eu-central-1",
10802
10851
  "ap-southeast-1"
10803
10852
  ]);
10804
- var BrowserLocationSchema = z75.union([
10805
- z75.literal("cz"),
10806
- z75.literal("de"),
10807
- z75.literal("fr"),
10808
- z75.literal("gb"),
10809
- z75.literal("it"),
10810
- z75.literal("pl"),
10811
- z75.literal("sk")
10853
+ var BrowserLocationSchema = z76.union([
10854
+ z76.literal("cz"),
10855
+ z76.literal("de"),
10856
+ z76.literal("fr"),
10857
+ z76.literal("gb"),
10858
+ z76.literal("it"),
10859
+ z76.literal("pl"),
10860
+ z76.literal("sk")
10812
10861
  ]);
10813
- var teamMemberApiSchema = z75.object({
10814
- id: z75.guid(),
10815
- name: z75.string().nullable(),
10816
- email: z75.email(),
10817
- role: z75.string(),
10818
- inheritedFromOrg: z75.boolean().default(false)
10819
- });
10820
- var listTeamMembersResponseSchema = z75.object({
10821
- members: z75.array(teamMemberApiSchema),
10822
- total: z75.number().int().nonnegative(),
10823
- limit: z75.number().int().positive(),
10824
- offset: z75.number().int().nonnegative()
10825
- });
10826
- var updateMemberRoleRequestSchema = z75.object({
10827
- role: z75.string()
10828
- });
10829
- var removeMemberResponseSchema = z75.object({
10830
- success: z75.literal(true),
10831
- nextTeamId: z75.guid().nullable(),
10832
- planType: z75.enum(["pro", "enterprise"]).nullable()
10833
- });
10834
- var getMemberMeResponseSchema = z75.object({
10835
- role: z75.string().nullable(),
10862
+ var teamMemberApiSchema = z76.object({
10863
+ id: z76.guid(),
10864
+ name: z76.string().nullable(),
10865
+ email: z76.email(),
10866
+ role: z76.string(),
10867
+ inheritedFromOrg: z76.boolean().default(false)
10868
+ });
10869
+ var listTeamMembersResponseSchema = z76.object({
10870
+ members: z76.array(teamMemberApiSchema),
10871
+ total: z76.number().int().nonnegative(),
10872
+ limit: z76.number().int().positive(),
10873
+ offset: z76.number().int().nonnegative()
10874
+ });
10875
+ var updateMemberRoleRequestSchema = z76.object({
10876
+ role: z76.string()
10877
+ });
10878
+ var removeMemberResponseSchema = z76.object({
10879
+ success: z76.literal(true),
10880
+ nextTeamId: z76.guid().nullable(),
10881
+ planType: z76.enum(["pro", "enterprise"]).nullable()
10882
+ });
10883
+ var getMemberMeResponseSchema = z76.object({
10884
+ role: z76.string().nullable(),
10836
10885
  // True only when a real `user_team_memberships` row exists. `role` can be a
10837
10886
  // read-only *virtual* role for org leaders who haven't joined, so it is not a
10838
10887
  // membership signal on its own — use this flag to tell a real member apart.
10839
- isMember: z75.boolean()
10888
+ isMember: z76.boolean()
10840
10889
  });
10841
- var addTeamMemberRequestSchema = z75.object({
10842
- userId: z75.guid(),
10843
- role: z75.string()
10890
+ var addTeamMemberRequestSchema = z76.object({
10891
+ userId: z76.guid(),
10892
+ role: z76.string()
10844
10893
  });
10845
- var updateTeamRequestSchema = z75.object({
10846
- name: z75.string().min(1).optional(),
10847
- slack_team_id: z75.string().optional(),
10894
+ var updateTeamRequestSchema = z76.object({
10895
+ name: z76.string().min(1).optional(),
10896
+ slack_team_id: z76.string().optional(),
10848
10897
  discovery_mode: teamDiscoveryModeSchema.optional()
10849
10898
  });
10850
- var teamApiSchema = z75.object({
10851
- id: z75.guid().describe("Unique team identifier"),
10852
- name: z75.string().describe("Human-readable team name"),
10853
- created_at: z75.string().describe("ISO 8601 creation timestamp"),
10854
- organization_id: z75.guid().nullable().describe("Parent organization ID, or null if the team is standalone"),
10855
- slack_team_id: z75.string().nullable().describe("Linked Slack workspace ID, or null if Slack is not connected"),
10899
+ var teamApiSchema = z76.object({
10900
+ id: z76.guid().describe("Unique team identifier"),
10901
+ name: z76.string().describe("Human-readable team name"),
10902
+ created_at: z76.string().describe("ISO 8601 creation timestamp"),
10903
+ organization_id: z76.guid().nullable().describe("Parent organization ID, or null if the team is standalone"),
10904
+ slack_team_id: z76.string().nullable().describe("Linked Slack workspace ID, or null if Slack is not connected"),
10856
10905
  // Responses use x-extensible-enum: adding a discovery mode to a strict
10857
10906
  // response enum is breaking in oasdiff, while an added x-extensible-enum
10858
10907
  // value is not. The strict request enum (updateTeamRequestSchema) still
@@ -10861,198 +10910,220 @@ var teamApiSchema = z75.object({
10861
10910
  description: "How the team handles agent discovery"
10862
10911
  })
10863
10912
  });
10864
- var teamResponseApiSchema = z75.object({
10913
+ var teamResponseApiSchema = z76.object({
10865
10914
  team: teamApiSchema
10866
10915
  });
10867
10916
  var TEAM_CONFIG_VERSION = 1;
10868
- var teamConfigDataSchema = z75.object({
10917
+ var teamConfigDataSchema = z76.object({
10869
10918
  browserProviderOverride: BrowserProviderTypeSchema.nullable().optional(),
10870
10919
  // Egress identity (proxy country) — what the target site sees.
10871
10920
  browserLocationOverride: BrowserLocationSchema.nullable().optional(),
10921
+ // Egress mode override (provider / direct / organization-vpn). Location stays
10922
+ // on browserLocationOverride; this is the orthogonal mode axis.
10923
+ browserEgressModeOverride: browserEgressModeSchema.nullable().optional(),
10872
10924
  // Coarse residency + data-handling overrides (the current model).
10873
10925
  dataResidencyOverride: DataResidencySchema.nullable().optional(),
10874
10926
  dataHandlingOverride: DataHandlingSchema.nullable().optional(),
10927
+ // Domains that bypass the org VPN and connect directly (split tunnel).
10928
+ // Union'd at runtime with the org-default list on vpn_proxy_config.
10929
+ vpnBypassDomains: z76.array(z76.string()).max(MAX_VPN_BYPASS_DOMAINS).nullable().optional(),
10875
10930
  // Deprecated: superseded by dataResidencyOverride / dataHandlingOverride.
10876
10931
  // Kept optional so existing v1 rows still parse; the resolver reads the new
10877
10932
  // fields first and falls back to these. Do not surface in the UI.
10878
10933
  browserRegionOverride: BrowserRegionSchema.nullable().optional(),
10879
- sessionRecordingOverride: z75.boolean().nullable().optional()
10934
+ sessionRecordingOverride: z76.boolean().nullable().optional()
10880
10935
  });
10881
- var teamConfigSchema = z75.object({
10882
- version: z75.literal(TEAM_CONFIG_VERSION),
10936
+ var teamConfigSchema = z76.object({
10937
+ version: z76.literal(TEAM_CONFIG_VERSION),
10883
10938
  data: teamConfigDataSchema
10884
10939
  });
10885
- var listTeamInvitesResponseSchema = z75.object({
10886
- invitations: z75.array(teamInvitationApiSchema)
10940
+ var listTeamInvitesResponseSchema = z76.object({
10941
+ invitations: z76.array(teamInvitationApiSchema)
10887
10942
  });
10888
- var teamInsightsCopilotSchema = z76.object({
10889
- id: z76.guid(),
10890
- name: z76.string(),
10891
- teamName: z76.string().nullable().optional(),
10892
- created_at: z76.string().nullable(),
10893
- updated_at: z76.string().nullable(),
10894
- team_id: z76.string().nullable(),
10895
- thread_id: z76.string().nullable(),
10896
- slack_enabled: z76.boolean().nullable()
10897
- });
10898
- var teamInsightsUserProfileSchema = z76.object({
10899
- id: z76.guid(),
10900
- name: z76.string().nullable(),
10901
- email: z76.string()
10943
+ var teamInsightsCopilotSchema = z77.object({
10944
+ id: z77.guid(),
10945
+ name: z77.string(),
10946
+ teamName: z77.string().nullable().optional(),
10947
+ created_at: z77.string().nullable(),
10948
+ updated_at: z77.string().nullable(),
10949
+ team_id: z77.string().nullable(),
10950
+ thread_id: z77.string().nullable(),
10951
+ slack_enabled: z77.boolean().nullable()
10952
+ });
10953
+ var teamInsightsUserProfileSchema = z77.object({
10954
+ id: z77.guid(),
10955
+ name: z77.string().nullable(),
10956
+ email: z77.string()
10902
10957
  });
10903
10958
  var teamInsightsUserUsageSchema = teamInsightsUserProfileSchema.extend(
10904
10959
  {
10905
- runCount: z76.number(),
10906
- lastRun: z76.string().nullable()
10960
+ runCount: z77.number(),
10961
+ lastRun: z77.string().nullable()
10907
10962
  }
10908
10963
  );
10909
- var teamInsightsMetricSourceSchema = z76.object({
10964
+ var teamInsightsMetricSourceSchema = z77.object({
10910
10965
  source: agentRunSourceSchema,
10911
- runsTotal: z76.number(),
10912
- completedRuns: z76.number()
10966
+ runsTotal: z77.number(),
10967
+ completedRuns: z77.number()
10913
10968
  });
10914
10969
  var teamInsightsCopilotWithRunsSchema = teamInsightsCopilotSchema.extend({
10915
- integrations: z76.array(z76.string()),
10916
- uniqueUsersCount: z76.number(),
10917
- users: z76.array(teamInsightsUserUsageSchema),
10918
- totalRuns: z76.number(),
10919
- completedRuns: z76.number(),
10920
- totalTimeSpentMs: z76.number(),
10921
- averageTimeSpentMs: z76.number(),
10922
- completedRunsWithTiming: z76.number(),
10923
- sources: z76.array(teamInsightsMetricSourceSchema)
10924
- });
10925
- var teamInsightsAgentsRunResponseSchema = z76.object({
10926
- data: z76.array(teamInsightsCopilotWithRunsSchema),
10927
- total: z76.number()
10928
- });
10929
- var teamInsightsMetricsResponseSchema = z76.object({
10930
- runsTotal: z76.number(),
10931
- completedRuns: z76.number(),
10932
- sources: z76.array(teamInsightsMetricSourceSchema)
10933
- });
10934
- var teamInsightsUserAgentRunSchema = z76.object({
10935
- id: z76.guid(),
10936
- created_at: z76.string(),
10937
- updated_at: z76.string(),
10938
- agent_id: z76.guid(),
10939
- agent_name: z76.string(),
10940
- build_id: z76.guid(),
10941
- source: z76.string().nullable(),
10942
- started_at: z76.string().nullable(),
10943
- completed_at: z76.string().nullable()
10944
- });
10945
- var teamInsightsAgentSchema = z76.object({
10946
- id: z76.guid(),
10947
- name: z76.string(),
10948
- teamName: z76.string().nullable().optional(),
10949
- runs: z76.array(teamInsightsUserAgentRunSchema)
10950
- });
10951
- var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
10952
- agents: z76.array(teamInsightsAgentSchema),
10953
- runs: z76.array(teamInsightsUserAgentRunSchema),
10954
- totalRuns: z76.number()
10955
- });
10956
- var teamInsightsUsersResponseSchema = z76.object({
10957
- data: z76.array(teamInsightsUserWithAgentsAndRunsSchema),
10958
- total: z76.number()
10959
- });
10960
- var guardrailsAuthorSchema = z77.object({
10970
+ integrations: z77.array(z77.string()),
10971
+ uniqueUsersCount: z77.number(),
10972
+ users: z77.array(teamInsightsUserUsageSchema),
10973
+ totalRuns: z77.number(),
10974
+ completedRuns: z77.number(),
10975
+ totalTimeSpentMs: z77.number(),
10976
+ averageTimeSpentMs: z77.number(),
10977
+ completedRunsWithTiming: z77.number(),
10978
+ sources: z77.array(teamInsightsMetricSourceSchema)
10979
+ });
10980
+ var teamInsightsAgentsRunResponseSchema = z77.object({
10981
+ data: z77.array(teamInsightsCopilotWithRunsSchema),
10982
+ total: z77.number()
10983
+ });
10984
+ var teamInsightsMetricsResponseSchema = z77.object({
10985
+ runsTotal: z77.number(),
10986
+ completedRuns: z77.number(),
10987
+ sources: z77.array(teamInsightsMetricSourceSchema)
10988
+ });
10989
+ var teamInsightsUserAgentRunSchema = z77.object({
10961
10990
  id: z77.guid(),
10962
- name: z77.string().nullable(),
10963
- email: z77.email()
10964
- });
10965
- var guardrailsRevisionSchema = z77.object({
10991
+ created_at: z77.string(),
10992
+ updated_at: z77.string(),
10993
+ agent_id: z77.guid(),
10994
+ agent_name: z77.string(),
10995
+ build_id: z77.guid(),
10996
+ source: z77.string().nullable(),
10997
+ started_at: z77.string().nullable(),
10998
+ completed_at: z77.string().nullable()
10999
+ });
11000
+ var teamInsightsAgentSchema = z77.object({
10966
11001
  id: z77.guid(),
10967
- teamId: z77.guid(),
10968
- guardrailsText: z77.string().nullable(),
10969
- blockedDomains: z77.array(z77.string()),
10970
- createdAt: z77.string(),
11002
+ name: z77.string(),
11003
+ teamName: z77.string().nullable().optional(),
11004
+ runs: z77.array(teamInsightsUserAgentRunSchema)
11005
+ });
11006
+ var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
11007
+ agents: z77.array(teamInsightsAgentSchema),
11008
+ runs: z77.array(teamInsightsUserAgentRunSchema),
11009
+ totalRuns: z77.number()
11010
+ });
11011
+ var teamInsightsUsersResponseSchema = z77.object({
11012
+ data: z77.array(teamInsightsUserWithAgentsAndRunsSchema),
11013
+ total: z77.number()
11014
+ });
11015
+ var guardrailsAuthorSchema = z78.object({
11016
+ id: z78.guid(),
11017
+ name: z78.string().nullable(),
11018
+ email: z78.email()
11019
+ });
11020
+ var guardrailsRevisionSchema = z78.object({
11021
+ id: z78.guid(),
11022
+ teamId: z78.guid(),
11023
+ guardrailsText: z78.string().nullable(),
11024
+ blockedDomains: z78.array(z78.string()),
11025
+ createdAt: z78.string(),
10971
11026
  createdBy: guardrailsAuthorSchema
10972
11027
  });
10973
- var getTeamGuardrailsResponseSchema = z77.object({
11028
+ var getTeamGuardrailsResponseSchema = z78.object({
10974
11029
  current: guardrailsRevisionSchema.nullable()
10975
11030
  });
10976
- var listTeamGuardrailsRevisionsQuerySchema = z77.object({
10977
- limit: z77.coerce.number().int().min(1).max(100).default(20),
10978
- offset: z77.coerce.number().int().min(0).default(0)
11031
+ var listTeamGuardrailsRevisionsQuerySchema = z78.object({
11032
+ limit: z78.coerce.number().int().min(1).max(100).default(20),
11033
+ offset: z78.coerce.number().int().min(0).default(0)
10979
11034
  });
10980
- var listTeamGuardrailsRevisionsResponseSchema = z77.object({
10981
- revisions: z77.array(guardrailsRevisionSchema),
10982
- total: z77.number().int().nonnegative()
11035
+ var listTeamGuardrailsRevisionsResponseSchema = z78.object({
11036
+ revisions: z78.array(guardrailsRevisionSchema),
11037
+ total: z78.number().int().nonnegative()
10983
11038
  });
10984
- var createTeamGuardrailsRevisionRequestSchema = z77.object({
10985
- guardrailsText: z77.string().max(MAX_GUARDRAILS_TEXT_LENGTH).nullable().transform((value) => value && value.trim().length > 0 ? value : null),
10986
- blockedDomains: z77.array(z77.string()).max(MAX_BLOCKED_DOMAINS)
11039
+ var createTeamGuardrailsRevisionRequestSchema = z78.object({
11040
+ guardrailsText: z78.string().max(MAX_GUARDRAILS_TEXT_LENGTH).nullable().transform((value) => value && value.trim().length > 0 ? value : null),
11041
+ blockedDomains: z78.array(z78.string()).max(MAX_BLOCKED_DOMAINS)
10987
11042
  });
10988
- var userDismissalListResponseSchema = z78.object({
10989
- data: z78.array(z78.string())
11043
+ var userDismissalListResponseSchema = z79.object({
11044
+ data: z79.array(z79.string())
10990
11045
  });
10991
- var userDismissalMutationSchema = z78.object({
10992
- elementKey: z78.string()
11046
+ var userDismissalMutationSchema = z79.object({
11047
+ elementKey: z79.string()
10993
11048
  });
10994
11049
  var PASSWORD_MIN = 1;
10995
11050
  var PASSWORD_MAX = 1024;
10996
11051
  var NAME_MAX = 200;
10997
11052
  var URL_MAX = 500;
10998
11053
  var USERNAME_MAX = 200;
10999
- var vpnProxyConfigSummarySchema = z79.object({
11000
- id: z79.guid(),
11001
- name: z79.string(),
11002
- server: z79.string(),
11003
- username: z79.string(),
11004
- enabled: z79.boolean(),
11005
- passwordSet: z79.boolean(),
11006
- organizationCount: z79.number().int().nonnegative(),
11007
- createdAt: z79.string(),
11008
- updatedAt: z79.string()
11009
- });
11010
- var vpnProxyConfigListResponseSchema = z79.object({
11011
- configs: z79.array(vpnProxyConfigSummarySchema)
11012
- });
11013
- var vpnProxyConfigCreateRequestSchema = z79.object({
11014
- name: z79.string().trim().min(1).max(NAME_MAX),
11015
- server: z79.string().trim().min(1).max(URL_MAX).url(),
11016
- username: z79.string().trim().min(1).max(USERNAME_MAX),
11017
- password: z79.string().min(PASSWORD_MIN).max(PASSWORD_MAX),
11018
- enabled: z79.boolean().prefault(true)
11019
- });
11020
- var vpnProxyConfigCreateResponseSchema = z79.object({
11054
+ var vpnProxyConfigSummarySchema = z80.object({
11055
+ id: z80.guid(),
11056
+ name: z80.string(),
11057
+ server: z80.string(),
11058
+ username: z80.string(),
11059
+ enabled: z80.boolean(),
11060
+ passwordSet: z80.boolean(),
11061
+ organizationCount: z80.number().int().nonnegative(),
11062
+ createdAt: z80.string(),
11063
+ updatedAt: z80.string()
11064
+ });
11065
+ var vpnProxyConfigListResponseSchema = z80.object({
11066
+ configs: z80.array(vpnProxyConfigSummarySchema)
11067
+ });
11068
+ var vpnProxyConfigCreateRequestSchema = z80.object({
11069
+ name: z80.string().trim().min(1).max(NAME_MAX),
11070
+ server: z80.string().trim().min(1).max(URL_MAX).url(),
11071
+ username: z80.string().trim().min(1).max(USERNAME_MAX),
11072
+ password: z80.string().min(PASSWORD_MIN).max(PASSWORD_MAX),
11073
+ enabled: z80.boolean().prefault(true)
11074
+ });
11075
+ var vpnProxyConfigCreateResponseSchema = z80.object({
11021
11076
  config: vpnProxyConfigSummarySchema
11022
11077
  });
11023
- var vpnProxyConfigUpdateRequestSchema = z79.object({
11024
- name: z79.string().trim().min(1).max(NAME_MAX).optional(),
11025
- server: z79.string().trim().min(1).max(URL_MAX).url().optional(),
11026
- username: z79.string().trim().min(1).max(USERNAME_MAX).optional(),
11027
- password: z79.string().min(PASSWORD_MIN).max(PASSWORD_MAX).optional(),
11028
- enabled: z79.boolean().optional()
11078
+ var vpnProxyConfigUpdateRequestSchema = z80.object({
11079
+ name: z80.string().trim().min(1).max(NAME_MAX).optional(),
11080
+ server: z80.string().trim().min(1).max(URL_MAX).url().optional(),
11081
+ username: z80.string().trim().min(1).max(USERNAME_MAX).optional(),
11082
+ password: z80.string().min(PASSWORD_MIN).max(PASSWORD_MAX).optional(),
11083
+ enabled: z80.boolean().optional()
11029
11084
  });
11030
- var vpnProxyConfigUpdateResponseSchema = z79.object({
11085
+ var vpnProxyConfigUpdateResponseSchema = z80.object({
11031
11086
  config: vpnProxyConfigSummarySchema
11032
11087
  });
11033
- var vpnProxyConfigDeleteResponseSchema = z79.object({
11034
- success: z79.literal(true)
11088
+ var vpnProxyConfigDeleteResponseSchema = z80.object({
11089
+ success: z80.literal(true)
11035
11090
  });
11036
- var vpnProxyConfigOrganizationSchema = z79.object({
11037
- id: z79.guid(),
11038
- organizationId: z79.guid(),
11039
- organizationName: z79.string(),
11040
- attachedAt: z79.string()
11091
+ var vpnProxyConfigOrganizationSchema = z80.object({
11092
+ id: z80.guid(),
11093
+ organizationId: z80.guid(),
11094
+ organizationName: z80.string(),
11095
+ bypassDomains: z80.array(z80.string()),
11096
+ vpnEnforced: z80.boolean(),
11097
+ attachedAt: z80.string()
11041
11098
  });
11042
- var vpnProxyConfigOrganizationListResponseSchema = z79.object({
11043
- organizations: z79.array(vpnProxyConfigOrganizationSchema)
11099
+ var vpnProxyConfigOrganizationListResponseSchema = z80.object({
11100
+ organizations: z80.array(vpnProxyConfigOrganizationSchema)
11044
11101
  });
11045
- var vpnProxyConfigAttachOrganizationRequestSchema = z79.object({
11046
- organizationId: z79.guid()
11102
+ var vpnProxyConfigAttachOrganizationRequestSchema = z80.object({
11103
+ organizationId: z80.guid(),
11104
+ bypassDomains: z80.array(z80.string()).max(MAX_VPN_BYPASS_DOMAINS).prefault([]),
11105
+ vpnEnforced: z80.boolean().prefault(false)
11047
11106
  });
11048
- var vpnProxyConfigAttachOrganizationResponseSchema = z79.object({
11107
+ var vpnProxyConfigAttachOrganizationResponseSchema = z80.object({
11049
11108
  attachment: vpnProxyConfigOrganizationSchema
11050
11109
  });
11051
- var vpnProxyConfigDetachOrganizationResponseSchema = z79.object({
11052
- success: z79.literal(true)
11110
+ var vpnProxyConfigDetachOrganizationResponseSchema = z80.object({
11111
+ success: z80.literal(true)
11112
+ });
11113
+ var vpnProxyConfigForOrganizationAttachmentSchema = z80.object({
11114
+ bypassDomains: z80.array(z80.string()),
11115
+ vpnEnforced: z80.boolean()
11053
11116
  });
11054
- var vpnProxyConfigForOrganizationResponseSchema = z79.object({
11055
- config: vpnProxyConfigSummarySchema.nullable()
11117
+ var vpnProxyConfigForOrganizationResponseSchema = z80.object({
11118
+ config: vpnProxyConfigSummarySchema.nullable(),
11119
+ attachment: vpnProxyConfigForOrganizationAttachmentSchema.nullable()
11120
+ });
11121
+ var vpnProxyConfigUpdateOrganizationPolicyRequestSchema = z80.object({
11122
+ bypassDomains: z80.array(z80.string()).max(MAX_VPN_BYPASS_DOMAINS).optional(),
11123
+ vpnEnforced: z80.boolean().optional()
11124
+ });
11125
+ var vpnProxyConfigUpdateOrganizationPolicyResponseSchema = z80.object({
11126
+ attachment: vpnProxyConfigOrganizationSchema
11056
11127
  });
11057
11128
  function canonicalizeSopInput(config) {
11058
11129
  const { input } = config.data;
@@ -11072,7 +11143,7 @@ function canonicalizeSopInput(config) {
11072
11143
  }
11073
11144
  __name(canonicalizeSopInput, "canonicalizeSopInput");
11074
11145
  __name2(canonicalizeSopInput, "canonicalizeSopInput");
11075
- var caseFilterStatusSchema = z80.enum([
11146
+ var caseFilterStatusSchema = z81.enum([
11076
11147
  "pending",
11077
11148
  "claimed",
11078
11149
  "completed",
@@ -11080,19 +11151,19 @@ var caseFilterStatusSchema = z80.enum([
11080
11151
  "needs_input",
11081
11152
  "postponed"
11082
11153
  ]);
11083
- var casesFiltersSchema = z80.object({
11084
- status: z80.array(caseFilterStatusSchema).optional(),
11085
- created_at_from: z80.string().optional(),
11086
- updated_at_from: z80.string().optional(),
11087
- labels: z80.record(z80.string(), z80.array(z80.string())).optional()
11154
+ var casesFiltersSchema = z81.object({
11155
+ status: z81.array(caseFilterStatusSchema).optional(),
11156
+ created_at_from: z81.string().optional(),
11157
+ updated_at_from: z81.string().optional(),
11158
+ labels: z81.record(z81.string(), z81.array(z81.string())).optional()
11088
11159
  });
11089
- var casesListRequestBodySchema = z80.object({
11160
+ var casesListRequestBodySchema = z81.object({
11090
11161
  filters: casesFiltersSchema.default({}),
11091
- limit: z80.int().min(1).max(100).default(25),
11092
- offset: z80.int().min(0).default(0),
11093
- sort_by: z80.enum(["created_at", "updated_at", "postponed_to"]).default("created_at"),
11094
- sort_order: z80.enum(["asc", "desc"]).default("desc"),
11095
- search: z80.string().optional()
11162
+ limit: z81.int().min(1).max(100).default(25),
11163
+ offset: z81.int().min(0).default(0),
11164
+ sort_by: z81.enum(["created_at", "updated_at", "postponed_to"]).default("created_at"),
11165
+ sort_order: z81.enum(["asc", "desc"]).default("desc"),
11166
+ search: z81.string().optional()
11096
11167
  });
11097
11168
  function toBase64(input) {
11098
11169
  if (typeof btoa === "function") {
@@ -11187,7 +11258,7 @@ function setFilterValuesByCategoryKey(filters, categoryKey, values) {
11187
11258
  const { status: _, ...rest } = filters;
11188
11259
  return rest;
11189
11260
  }
11190
- const parsed = z80.array(caseFilterStatusSchema).safeParse(values);
11261
+ const parsed = z81.array(caseFilterStatusSchema).safeParse(values);
11191
11262
  if (!parsed.success) {
11192
11263
  return filters;
11193
11264
  }
@@ -12450,11 +12521,11 @@ function emptyConfig() {
12450
12521
  __name(emptyConfig, "emptyConfig");
12451
12522
 
12452
12523
  // src/config/env.ts
12453
- import { z as z81 } from "zod";
12454
- var optionalEnvString = z81.string().optional().transform(
12524
+ import { z as z82 } from "zod";
12525
+ var optionalEnvString = z82.string().optional().transform(
12455
12526
  (value) => value === void 0 || value === "" ? void 0 : value
12456
12527
  );
12457
- var CliEnvSchema = z81.object({
12528
+ var CliEnvSchema = z82.object({
12458
12529
  DUVO_PROFILE: optionalEnvString,
12459
12530
  DUVO_API_KEY: optionalEnvString,
12460
12531
  DUVO_API_BASE_URL: optionalEnvString,
@@ -12956,9 +13027,9 @@ async function requireAuthenticatedConfig(command) {
12956
13027
  __name(requireAuthenticatedConfig, "requireAuthenticatedConfig");
12957
13028
 
12958
13029
  // src/commands/shared/team-context.ts
12959
- import { z as z82 } from "zod";
12960
- var teamSchema = z82.object({ id: z82.string() });
12961
- var listMyTeamsResponseSchema = z82.object({ teams: z82.array(teamSchema) });
13030
+ import { z as z83 } from "zod";
13031
+ var teamSchema = z83.object({ id: z83.string() });
13032
+ var listMyTeamsResponseSchema = z83.object({ teams: z83.array(teamSchema) });
12962
13033
  async function resolveRequiredTeamId(config, options = {}) {
12963
13034
  if (options.override) {
12964
13035
  return options.override;
@@ -13741,109 +13812,109 @@ import { readFile as readFile2 } from "node:fs/promises";
13741
13812
  import { confirm as confirm2, isCancel as isCancel2, text } from "@clack/prompts";
13742
13813
 
13743
13814
  // src/api/agent-schemas.ts
13744
- import { z as z84 } from "zod";
13815
+ import { z as z85 } from "zod";
13745
13816
 
13746
13817
  // src/api/json-value.ts
13747
- import { z as z83 } from "zod";
13748
- var jsonValueSchema = z83.lazy(
13749
- () => z83.union([
13750
- z83.string(),
13751
- z83.number(),
13752
- z83.boolean(),
13753
- z83.null(),
13754
- z83.array(jsonValueSchema),
13755
- z83.record(z83.string(), jsonValueSchema)
13818
+ import { z as z84 } from "zod";
13819
+ var jsonValueSchema = z84.lazy(
13820
+ () => z84.union([
13821
+ z84.string(),
13822
+ z84.number(),
13823
+ z84.boolean(),
13824
+ z84.null(),
13825
+ z84.array(jsonValueSchema),
13826
+ z84.record(z84.string(), jsonValueSchema)
13756
13827
  ])
13757
13828
  );
13758
13829
 
13759
13830
  // src/api/agent-schemas.ts
13760
- var publicAgentSchema = z84.object({
13761
- id: z84.string(),
13762
- name: z84.string(),
13763
- slack_enabled: z84.boolean().nullish(),
13764
- microsoft_teams_enabled: z84.boolean().nullish(),
13765
- agentic_memory_enabled: z84.boolean().nullish(),
13766
- thread_id: z84.string().nullish(),
13767
- created_at: z84.string().nullish(),
13768
- updated_at: z84.string().nullish(),
13769
- latest_build: z84.object({ config: jsonValueSchema.nullish() }).nullish()
13770
- });
13771
- var publicBuildSchema = z84.object({
13772
- id: z84.string(),
13773
- agent_id: z84.string(),
13774
- name: z84.string(),
13775
- revision_number: z84.number().nullish(),
13776
- created_at: z84.string().nullish(),
13777
- updated_at: z84.string().nullish()
13778
- });
13779
- var listAgentsResponseSchema = z84.object({
13780
- agents: z84.array(publicAgentSchema),
13781
- total: z84.number().nullish(),
13782
- limit: z84.number().nullish(),
13783
- offset: z84.number().nullish()
13784
- });
13785
- var agentUserContextSchema = z84.object({
13786
- pinned_at: z84.string().nullable()
13787
- });
13788
- var getAgentResponseSchema = z84.object({
13831
+ var publicAgentSchema = z85.object({
13832
+ id: z85.string(),
13833
+ name: z85.string(),
13834
+ slack_enabled: z85.boolean().nullish(),
13835
+ microsoft_teams_enabled: z85.boolean().nullish(),
13836
+ agentic_memory_enabled: z85.boolean().nullish(),
13837
+ thread_id: z85.string().nullish(),
13838
+ created_at: z85.string().nullish(),
13839
+ updated_at: z85.string().nullish(),
13840
+ latest_build: z85.object({ config: jsonValueSchema.nullish() }).nullish()
13841
+ });
13842
+ var publicBuildSchema = z85.object({
13843
+ id: z85.string(),
13844
+ agent_id: z85.string(),
13845
+ name: z85.string(),
13846
+ revision_number: z85.number().nullish(),
13847
+ created_at: z85.string().nullish(),
13848
+ updated_at: z85.string().nullish()
13849
+ });
13850
+ var listAgentsResponseSchema = z85.object({
13851
+ agents: z85.array(publicAgentSchema),
13852
+ total: z85.number().nullish(),
13853
+ limit: z85.number().nullish(),
13854
+ offset: z85.number().nullish()
13855
+ });
13856
+ var agentUserContextSchema = z85.object({
13857
+ pinned_at: z85.string().nullable()
13858
+ });
13859
+ var getAgentResponseSchema = z85.object({
13789
13860
  agent: publicAgentSchema,
13790
13861
  user_context: agentUserContextSchema.optional()
13791
13862
  });
13792
- var createAgentResponseSchema = z84.object({
13863
+ var createAgentResponseSchema = z85.object({
13793
13864
  agent: publicAgentSchema,
13794
13865
  build: publicBuildSchema.optional()
13795
13866
  });
13796
- var deleteAgentResponseSchema = z84.object({
13797
- success: z84.literal(true)
13798
- });
13799
- var namedRefSchema = z84.object({
13800
- id: z84.string(),
13801
- name: z84.string()
13802
- });
13803
- var moveQueueRefSchema = z84.object({
13804
- id: z84.string(),
13805
- name: z84.string(),
13806
- item_count: z84.number()
13807
- });
13808
- var connectionDecisionSchema = z84.object({
13809
- agent_id: z84.string(),
13810
- agent_name: z84.string(),
13811
- integration_type: z84.string(),
13812
- integration_name: z84.string(),
13813
- instance_name: z84.string(),
13814
- decision: z84.string()
13815
- });
13816
- var customRebuildSchema = z84.object({
13817
- agent_id: z84.string(),
13818
- agent_name: z84.string(),
13819
- custom_integration_name: z84.string()
13820
- });
13821
- var moveAgentResponseSchema = z84.object({
13822
- source_team_id: z84.string(),
13823
- target_team_id: z84.string(),
13824
- root_agent_id: z84.string(),
13825
- agents: z84.array(namedRefSchema),
13826
- queues: z84.array(moveQueueRefSchema),
13827
- total_case_items: z84.number(),
13828
- total_runs: z84.number(),
13829
- skills_to_clone: z84.array(namedRefSchema),
13830
- files_to_copy: z84.array(z84.object({ path: z84.string() })),
13831
- warnings: z84.object({
13832
- outcome: z84.object({
13833
- instances_reconnected: z84.array(connectionDecisionSchema),
13834
- instances_disconnected: z84.array(connectionDecisionSchema),
13835
- custom_integrations_to_rebuild: z84.array(customRebuildSchema),
13836
- catalog_rows_created_on_target: z84.number()
13867
+ var deleteAgentResponseSchema = z85.object({
13868
+ success: z85.literal(true)
13869
+ });
13870
+ var namedRefSchema = z85.object({
13871
+ id: z85.string(),
13872
+ name: z85.string()
13873
+ });
13874
+ var moveQueueRefSchema = z85.object({
13875
+ id: z85.string(),
13876
+ name: z85.string(),
13877
+ item_count: z85.number()
13878
+ });
13879
+ var connectionDecisionSchema = z85.object({
13880
+ agent_id: z85.string(),
13881
+ agent_name: z85.string(),
13882
+ integration_type: z85.string(),
13883
+ integration_name: z85.string(),
13884
+ instance_name: z85.string(),
13885
+ decision: z85.string()
13886
+ });
13887
+ var customRebuildSchema = z85.object({
13888
+ agent_id: z85.string(),
13889
+ agent_name: z85.string(),
13890
+ custom_integration_name: z85.string()
13891
+ });
13892
+ var moveAgentResponseSchema = z85.object({
13893
+ source_team_id: z85.string(),
13894
+ target_team_id: z85.string(),
13895
+ root_agent_id: z85.string(),
13896
+ agents: z85.array(namedRefSchema),
13897
+ queues: z85.array(moveQueueRefSchema),
13898
+ total_case_items: z85.number(),
13899
+ total_runs: z85.number(),
13900
+ skills_to_clone: z85.array(namedRefSchema),
13901
+ files_to_copy: z85.array(z85.object({ path: z85.string() })),
13902
+ warnings: z85.object({
13903
+ outcome: z85.object({
13904
+ instances_reconnected: z85.array(connectionDecisionSchema),
13905
+ instances_disconnected: z85.array(connectionDecisionSchema),
13906
+ custom_integrations_to_rebuild: z85.array(customRebuildSchema),
13907
+ catalog_rows_created_on_target: z85.number()
13837
13908
  }),
13838
- dropped_folders: z84.array(namedRefSchema),
13839
- dropped_memory_count: z84.number(),
13840
- files_copied_count: z84.number(),
13841
- files_skipped_conflict: z84.array(z84.string())
13909
+ dropped_folders: z85.array(namedRefSchema),
13910
+ dropped_memory_count: z85.number(),
13911
+ files_copied_count: z85.number(),
13912
+ files_skipped_conflict: z85.array(z85.string())
13842
13913
  }),
13843
- options: z84.object({
13844
- move_learnings: z84.boolean()
13914
+ options: z85.object({
13915
+ move_learnings: z85.boolean()
13845
13916
  }),
13846
- applied: z84.boolean()
13917
+ applied: z85.boolean()
13847
13918
  });
13848
13919
  var buildConfigSchema = StoredAgentConfigSchemaV2;
13849
13920
  var DEFAULT_NEW_AGENT_NAME = DEFAULT_AGENT_NAME;
@@ -14560,29 +14631,29 @@ function registerAgentsEvalScores(agents) {
14560
14631
  __name(registerAgentsEvalScores, "registerAgentsEvalScores");
14561
14632
 
14562
14633
  // src/api/build-schemas.ts
14563
- import { z as z85 } from "zod";
14564
- var publicBuildSchema2 = z85.object({
14565
- id: z85.string(),
14566
- agent_id: z85.string(),
14567
- name: z85.string(),
14568
- status: z85.string().nullish(),
14634
+ import { z as z86 } from "zod";
14635
+ var publicBuildSchema2 = z86.object({
14636
+ id: z86.string(),
14637
+ agent_id: z86.string(),
14638
+ name: z86.string(),
14639
+ status: z86.string().nullish(),
14569
14640
  config: jsonValueSchema.nullish(),
14570
- revision_number: z85.number().nullish(),
14571
- created_at: z85.string().nullish(),
14572
- updated_at: z85.string().nullish()
14641
+ revision_number: z86.number().nullish(),
14642
+ created_at: z86.string().nullish(),
14643
+ updated_at: z86.string().nullish()
14573
14644
  });
14574
- var listBuildsResponseSchema2 = z85.object({
14575
- builds: z85.array(publicBuildSchema2),
14576
- total: z85.number().nullish(),
14577
- limit: z85.number().nullish(),
14578
- offset: z85.number().nullish()
14645
+ var listBuildsResponseSchema2 = z86.object({
14646
+ builds: z86.array(publicBuildSchema2),
14647
+ total: z86.number().nullish(),
14648
+ limit: z86.number().nullish(),
14649
+ offset: z86.number().nullish()
14579
14650
  });
14580
- var getBuildResponseSchema = z85.object({
14651
+ var getBuildResponseSchema = z86.object({
14581
14652
  build: publicBuildSchema2
14582
14653
  });
14583
- var createBuildResponseSchema = z85.object({
14654
+ var createBuildResponseSchema = z86.object({
14584
14655
  build: publicBuildSchema2,
14585
- agent: z85.object({ id: z85.string() })
14656
+ agent: z86.object({ id: z86.string() })
14586
14657
  });
14587
14658
 
14588
14659
  // src/commands/agents/get.ts
@@ -14978,30 +15049,30 @@ ${plan.warnings.dropped_memory_count} AOP exception(s) will be cleared for users
14978
15049
  __name(renderPlan, "renderPlan");
14979
15050
 
14980
15051
  // src/api/schedule-schemas.ts
14981
- import { z as z86 } from "zod";
14982
- var publicScheduleSchema = z86.object({
14983
- id: z86.string(),
14984
- build_id: z86.string(),
14985
- agent_id: z86.string(),
14986
- user_id: z86.string(),
14987
- enabled: z86.boolean(),
14988
- frequency: z86.string(),
14989
- time: z86.string().nullish(),
14990
- timezone: z86.string(),
14991
- day: z86.string().nullish(),
14992
- day_of_month: z86.number().nullish(),
14993
- cron: z86.string().nullish(),
14994
- source: z86.string().nullish(),
14995
- task: z86.string().nullish(),
14996
- recurring: z86.boolean().nullish(),
14997
- created_at: z86.string(),
14998
- updated_at: z86.string()
14999
- });
15000
- var listSchedulesResponseSchema = z86.object({
15001
- schedules: z86.array(publicScheduleSchema)
15002
- });
15003
- var deleteScheduleResponseSchema = z86.object({
15004
- success: z86.literal(true)
15052
+ import { z as z87 } from "zod";
15053
+ var publicScheduleSchema = z87.object({
15054
+ id: z87.string(),
15055
+ build_id: z87.string(),
15056
+ agent_id: z87.string(),
15057
+ user_id: z87.string(),
15058
+ enabled: z87.boolean(),
15059
+ frequency: z87.string(),
15060
+ time: z87.string().nullish(),
15061
+ timezone: z87.string(),
15062
+ day: z87.string().nullish(),
15063
+ day_of_month: z87.number().nullish(),
15064
+ cron: z87.string().nullish(),
15065
+ source: z87.string().nullish(),
15066
+ task: z87.string().nullish(),
15067
+ recurring: z87.boolean().nullish(),
15068
+ created_at: z87.string(),
15069
+ updated_at: z87.string()
15070
+ });
15071
+ var listSchedulesResponseSchema = z87.object({
15072
+ schedules: z87.array(publicScheduleSchema)
15073
+ });
15074
+ var deleteScheduleResponseSchema = z87.object({
15075
+ success: z87.literal(true)
15005
15076
  });
15006
15077
 
15007
15078
  // src/commands/agents/schedules/render-schedule.ts
@@ -15449,33 +15520,33 @@ function registerAgentsSetModel(agents) {
15449
15520
  __name(registerAgentsSetModel, "registerAgentsSetModel");
15450
15521
 
15451
15522
  // src/api/trigger-schemas.ts
15452
- import { z as z87 } from "zod";
15453
- var triggerSchema = z87.object({
15454
- id: z87.string(),
15455
- agent_id: z87.string(),
15456
- user_id: z87.string(),
15457
- integration_slug: z87.string(),
15458
- trigger_type: z87.string(),
15459
- filter_config: z87.record(z87.string(), z87.unknown()),
15460
- integration_instance_id: z87.string(),
15461
- enabled: z87.boolean(),
15462
- created_at: z87.string(),
15463
- updated_at: z87.string()
15523
+ import { z as z88 } from "zod";
15524
+ var triggerSchema = z88.object({
15525
+ id: z88.string(),
15526
+ agent_id: z88.string(),
15527
+ user_id: z88.string(),
15528
+ integration_slug: z88.string(),
15529
+ trigger_type: z88.string(),
15530
+ filter_config: z88.record(z88.string(), z88.unknown()),
15531
+ integration_instance_id: z88.string(),
15532
+ enabled: z88.boolean(),
15533
+ created_at: z88.string(),
15534
+ updated_at: z88.string()
15464
15535
  });
15465
- var listTriggersResponseSchema = z87.object({
15466
- triggers: z87.array(triggerSchema)
15536
+ var listTriggersResponseSchema = z88.object({
15537
+ triggers: z88.array(triggerSchema)
15467
15538
  });
15468
- var triggerTypeSchema = z87.object({
15469
- integration_slug: z87.string(),
15470
- integration_name: z87.string(),
15471
- icon_url: z87.string(),
15472
- trigger_type: z87.string(),
15473
- label: z87.string(),
15474
- description: z87.string(),
15475
- filter_schema: z87.record(z87.string(), z87.unknown())
15539
+ var triggerTypeSchema = z88.object({
15540
+ integration_slug: z88.string(),
15541
+ integration_name: z88.string(),
15542
+ icon_url: z88.string(),
15543
+ trigger_type: z88.string(),
15544
+ label: z88.string(),
15545
+ description: z88.string(),
15546
+ filter_schema: z88.record(z88.string(), z88.unknown())
15476
15547
  });
15477
- var listTriggerTypesResponseSchema = z87.object({
15478
- trigger_types: z87.array(triggerTypeSchema)
15548
+ var listTriggerTypesResponseSchema = z88.object({
15549
+ trigger_types: z88.array(triggerTypeSchema)
15479
15550
  });
15480
15551
 
15481
15552
  // src/commands/agents/triggers/list.ts
@@ -16105,55 +16176,55 @@ function fieldsToSearchParams(fields) {
16105
16176
  __name(fieldsToSearchParams, "fieldsToSearchParams");
16106
16177
 
16107
16178
  // src/api/integration-schemas.ts
16108
- import { z as z88 } from "zod";
16109
- var integrationSchema = z88.object({
16110
- id: z88.string(),
16111
- name: z88.string(),
16112
- type: z88.string(),
16113
- provider: z88.string(),
16114
- user_id: z88.string().nullable(),
16115
- team_id: z88.string(),
16116
- server_url: z88.string().optional(),
16117
- transport_type: z88.string().optional(),
16118
- auth_method: z88.string().nullish(),
16119
- composio_mcp_id: z88.string().nullish(),
16120
- custom_integration_id: z88.string().nullish(),
16121
- icon_url: z88.string().nullish(),
16122
- oauth_provider: z88.string().nullish(),
16123
- oauth_provider_key: z88.string().nullish(),
16124
- oauth_scopes: z88.array(z88.string()).nullish(),
16125
- integration_id: z88.string().nullish(),
16126
- created_at: z88.string(),
16127
- updated_at: z88.string()
16128
- });
16129
- var integrationsListResponseSchema2 = z88.object({
16130
- integrations: z88.array(integrationSchema)
16179
+ import { z as z89 } from "zod";
16180
+ var integrationSchema = z89.object({
16181
+ id: z89.string(),
16182
+ name: z89.string(),
16183
+ type: z89.string(),
16184
+ provider: z89.string(),
16185
+ user_id: z89.string().nullable(),
16186
+ team_id: z89.string(),
16187
+ server_url: z89.string().optional(),
16188
+ transport_type: z89.string().optional(),
16189
+ auth_method: z89.string().nullish(),
16190
+ composio_mcp_id: z89.string().nullish(),
16191
+ custom_integration_id: z89.string().nullish(),
16192
+ icon_url: z89.string().nullish(),
16193
+ oauth_provider: z89.string().nullish(),
16194
+ oauth_provider_key: z89.string().nullish(),
16195
+ oauth_scopes: z89.array(z89.string()).nullish(),
16196
+ integration_id: z89.string().nullish(),
16197
+ created_at: z89.string(),
16198
+ updated_at: z89.string()
16199
+ });
16200
+ var integrationsListResponseSchema2 = z89.object({
16201
+ integrations: z89.array(integrationSchema)
16131
16202
  });
16132
16203
  var connectionResponseSchema = integrationSchema;
16133
- var buildIntegrationConfigSchema2 = z88.object({
16134
- id: z88.string(),
16135
- integration_id: z88.string().nullable(),
16136
- custom_integration_id: z88.string().nullable(),
16137
- integration_type: z88.string(),
16138
- integration_name: z88.string(),
16139
- created_at: z88.string()
16204
+ var buildIntegrationConfigSchema2 = z89.object({
16205
+ id: z89.string(),
16206
+ integration_id: z89.string().nullable(),
16207
+ custom_integration_id: z89.string().nullable(),
16208
+ integration_type: z89.string(),
16209
+ integration_name: z89.string(),
16210
+ created_at: z89.string()
16140
16211
  });
16141
- var listBuildIntegrationsResponseSchema2 = z88.object({
16142
- integrations: z88.array(buildIntegrationConfigSchema2)
16212
+ var listBuildIntegrationsResponseSchema2 = z89.object({
16213
+ integrations: z89.array(buildIntegrationConfigSchema2)
16143
16214
  });
16144
- var attachBuildIntegrationsResponseSchema = z88.object({
16145
- success: z88.boolean(),
16146
- count: z88.number()
16215
+ var attachBuildIntegrationsResponseSchema = z89.object({
16216
+ success: z89.boolean(),
16217
+ count: z89.number()
16147
16218
  });
16148
- var buildIntegrationConnectionSchema = z88.object({
16149
- connection_id: z88.string(),
16150
- created_at: z88.string()
16219
+ var buildIntegrationConnectionSchema = z89.object({
16220
+ connection_id: z89.string(),
16221
+ created_at: z89.string()
16151
16222
  });
16152
- var listBuildIntegrationConnectionsResponseSchema = z88.object({
16153
- connections: z88.array(buildIntegrationConnectionSchema)
16223
+ var listBuildIntegrationConnectionsResponseSchema = z89.object({
16224
+ connections: z89.array(buildIntegrationConnectionSchema)
16154
16225
  });
16155
- var successResponseSchema = z88.object({
16156
- success: z88.boolean()
16226
+ var successResponseSchema = z89.object({
16227
+ success: z89.boolean()
16157
16228
  });
16158
16229
 
16159
16230
  // src/commands/build-integrations/attach.ts
@@ -16196,15 +16267,15 @@ function registerBuildIntegrationsAttach(buildIntegrations) {
16196
16267
  __name(registerBuildIntegrationsAttach, "registerBuildIntegrationsAttach");
16197
16268
 
16198
16269
  // src/commands/build-integrations/case-queue-setup.ts
16199
- import { z as z89 } from "zod";
16200
- var slotSchema = z89.object({
16201
- config_id: z89.string(),
16202
- integration_type: z89.string(),
16203
- linked_queue_count: z89.number()
16270
+ import { z as z90 } from "zod";
16271
+ var slotSchema = z90.object({
16272
+ config_id: z90.string(),
16273
+ integration_type: z90.string(),
16274
+ linked_queue_count: z90.number()
16204
16275
  });
16205
- var responseSchema2 = z89.object({
16206
- configs: z89.array(slotSchema),
16207
- has_available_queues: z89.boolean()
16276
+ var responseSchema2 = z90.object({
16277
+ configs: z90.array(slotSchema),
16278
+ has_available_queues: z90.boolean()
16208
16279
  });
16209
16280
  var TABLE_COLUMNS10 = [
16210
16281
  { header: "SLOT ID", cell: /* @__PURE__ */ __name((row) => row.config_id, "cell") },
@@ -16699,9 +16770,9 @@ function registerBuildsList(builds) {
16699
16770
  __name(registerBuildsList, "registerBuildsList");
16700
16771
 
16701
16772
  // src/commands/builds/promote.ts
16702
- import { z as z90 } from "zod";
16703
- var promoteResponseSchema = z90.object({
16704
- success: z90.boolean()
16773
+ import { z as z91 } from "zod";
16774
+ var promoteResponseSchema = z91.object({
16775
+ success: z91.boolean()
16705
16776
  });
16706
16777
  function registerBuildsPromote(builds) {
16707
16778
  builds.command("promote <id>").description(
@@ -17712,7 +17783,7 @@ function parseSortOrder(raw) {
17712
17783
  __name(parseSortOrder, "parseSortOrder");
17713
17784
 
17714
17785
  // src/commands/cases/runs.ts
17715
- import { z as z91 } from "zod";
17786
+ import { z as z92 } from "zod";
17716
17787
  var MIN_LIMIT4 = 1;
17717
17788
  var MAX_LIMIT4 = 10;
17718
17789
  var DEFAULT_LIMIT4 = 3;
@@ -17730,17 +17801,17 @@ var RUNS_TABLE_COLUMNS = [
17730
17801
  cell: /* @__PURE__ */ __name((row) => row.has_pending_human_request ? row.pending_human_request_title ?? "(unknown)" : "", "cell")
17731
17802
  }
17732
17803
  ];
17733
- var recentMessageSchema = z91.object({
17734
- id: z91.string(),
17735
- type: z91.string(),
17736
- role: z91.string(),
17737
- timestamp: z91.string(),
17738
- text_content: z91.string().nullish(),
17739
- tool_call: z91.object({ id: z91.string(), name: z91.string() }).passthrough().nullish(),
17740
- tool_result: z91.object({ tool_call_id: z91.string() }).passthrough().nullish()
17741
- });
17742
- var recentMessagesResponseSchema = z91.object({
17743
- messages: z91.array(recentMessageSchema)
17804
+ var recentMessageSchema = z92.object({
17805
+ id: z92.string(),
17806
+ type: z92.string(),
17807
+ role: z92.string(),
17808
+ timestamp: z92.string(),
17809
+ text_content: z92.string().nullish(),
17810
+ tool_call: z92.object({ id: z92.string(), name: z92.string() }).passthrough().nullish(),
17811
+ tool_result: z92.object({ tool_call_id: z92.string() }).passthrough().nullish()
17812
+ });
17813
+ var recentMessagesResponseSchema = z92.object({
17814
+ messages: z92.array(recentMessageSchema)
17744
17815
  });
17745
17816
  var TEXT_PREVIEW_WIDTH = 60;
17746
17817
  var MESSAGES_TABLE_COLUMNS = [
@@ -17869,55 +17940,55 @@ function registerCases(program) {
17869
17940
  __name(registerCases, "registerCases");
17870
17941
 
17871
17942
  // src/api/clarity-schemas.ts
17872
- import { z as z92 } from "zod";
17873
- var clarityListProcessSchema = z92.object({
17874
- id: z92.guid(),
17875
- name: z92.string(),
17943
+ import { z as z93 } from "zod";
17944
+ var clarityListProcessSchema = z93.object({
17945
+ id: z93.guid(),
17946
+ name: z93.string(),
17876
17947
  status: clarityProcessStatusSchema,
17877
17948
  visibility: clarityProcessVisibilitySchema,
17878
- version: z92.number().int(),
17879
- capture_count: z92.number().int(),
17880
- capture_counts: z92.object({
17881
- video: z92.number().int(),
17882
- interview: z92.number().int(),
17883
- document: z92.number().int()
17949
+ version: z93.number().int(),
17950
+ capture_count: z93.number().int(),
17951
+ capture_counts: z93.object({
17952
+ video: z93.number().int(),
17953
+ interview: z93.number().int(),
17954
+ document: z93.number().int()
17884
17955
  }).optional(),
17885
- pending_invitation_count: z92.number().int(),
17886
- contributors: z92.array(
17887
- z92.object({
17888
- user_id: z92.string(),
17889
- user_name: z92.string()
17956
+ pending_invitation_count: z93.number().int(),
17957
+ contributors: z93.array(
17958
+ z93.object({
17959
+ user_id: z93.string(),
17960
+ user_name: z93.string()
17890
17961
  })
17891
17962
  ),
17892
- created_at: z92.string(),
17893
- created_by_name: z92.string().nullable()
17894
- });
17895
- var listClarityProcessesResponseSchema = z92.object({
17896
- processes: z92.array(clarityListProcessSchema),
17897
- total: z92.number().int(),
17898
- limit: z92.number().int(),
17899
- offset: z92.number().int()
17900
- });
17901
- var createClarityInviteLinkResponseSchema = z92.object({
17902
- invite_link: z92.object({
17903
- id: z92.guid(),
17904
- url: z92.url(),
17905
- created_at: z92.string(),
17906
- created_by: z92.object({
17907
- id: z92.guid(),
17908
- email: z92.email().nullable()
17963
+ created_at: z93.string(),
17964
+ created_by_name: z93.string().nullable()
17965
+ });
17966
+ var listClarityProcessesResponseSchema = z93.object({
17967
+ processes: z93.array(clarityListProcessSchema),
17968
+ total: z93.number().int(),
17969
+ limit: z93.number().int(),
17970
+ offset: z93.number().int()
17971
+ });
17972
+ var createClarityInviteLinkResponseSchema = z93.object({
17973
+ invite_link: z93.object({
17974
+ id: z93.guid(),
17975
+ url: z93.url(),
17976
+ created_at: z93.string(),
17977
+ created_by: z93.object({
17978
+ id: z93.guid(),
17979
+ email: z93.email().nullable()
17909
17980
  })
17910
17981
  })
17911
17982
  });
17912
- var createArtifactImportUploadUrlResponseSchema = z92.object({
17913
- signed_url: z92.url(),
17914
- capture_id: z92.guid(),
17915
- expires_at: z92.iso.datetime()
17983
+ var createArtifactImportUploadUrlResponseSchema = z93.object({
17984
+ signed_url: z93.url(),
17985
+ capture_id: z93.guid(),
17986
+ expires_at: z93.iso.datetime()
17916
17987
  });
17917
- var completeArtifactImportResponseSchema = z92.object({
17988
+ var completeArtifactImportResponseSchema = z93.object({
17918
17989
  capture: clarityCaptureSchema.extend({
17919
- createdAt: z92.iso.datetime(),
17920
- updatedAt: z92.iso.datetime()
17990
+ createdAt: z93.iso.datetime(),
17991
+ updatedAt: z93.iso.datetime()
17921
17992
  })
17922
17993
  });
17923
17994
  var legacyClarityProcessResponseSchema = legacyClarityProcessDetailSchema;
@@ -18356,8 +18427,8 @@ function renderCompletedImport(response) {
18356
18427
  __name(renderCompletedImport, "renderCompletedImport");
18357
18428
 
18358
18429
  // src/commands/clarity/assign-extra-capture-request.ts
18359
- import { z as z93 } from "zod";
18360
- var responseSchema3 = z93.object({
18430
+ import { z as z94 } from "zod";
18431
+ var responseSchema3 = z94.object({
18361
18432
  request: clarityProposalExtraCaptureRequestSchema
18362
18433
  });
18363
18434
  function renderRequest(request) {
@@ -18404,11 +18475,11 @@ function registerClarityAssignExtraCaptureRequest(clarity) {
18404
18475
  __name(registerClarityAssignExtraCaptureRequest, "registerClarityAssignExtraCaptureRequest");
18405
18476
 
18406
18477
  // src/commands/clarity/build-automation.ts
18407
- import { z as z94 } from "zod";
18408
- var responseSchema4 = z94.object({
18409
- automation_run: z94.object({
18410
- id: z94.string(),
18411
- status: z94.string()
18478
+ import { z as z95 } from "zod";
18479
+ var responseSchema4 = z95.object({
18480
+ automation_run: z95.object({
18481
+ id: z95.string(),
18482
+ status: z95.string()
18412
18483
  })
18413
18484
  });
18414
18485
  function registerClarityBuildAutomation(clarity) {
@@ -18479,7 +18550,7 @@ function registerClarityCreateInviteLink(clarity) {
18479
18550
  __name(registerClarityCreateInviteLink, "registerClarityCreateInviteLink");
18480
18551
 
18481
18552
  // src/commands/clarity/doctor.ts
18482
- import { z as z95 } from "zod";
18553
+ import { z as z96 } from "zod";
18483
18554
 
18484
18555
  // src/commands/clarity/render.ts
18485
18556
  var DEFAULT_HUMAN_SUMMARY_LIMIT = 1200;
@@ -20143,19 +20214,6 @@ var CLARITY_WRITE_TOOLS = [
20143
20214
  ],
20144
20215
  description: "Move a landscape node under a new parent or to the root."
20145
20216
  },
20146
- {
20147
- name: "confirmClarityLandscapeNode",
20148
- scope: "v1+v2",
20149
- read_only: false,
20150
- commands: ["duvo clarity landscape confirm-node"],
20151
- endpoints: [
20152
- {
20153
- method: "POST",
20154
- path: "/v2/organizations/:orgId/clarity/hierarchy/nodes/:nodeId/confirm"
20155
- }
20156
- ],
20157
- description: "Confirm a landscape node placement, content, or existence axis."
20158
- },
20159
20217
  {
20160
20218
  name: "generateClarityProcessLandscape",
20161
20219
  scope: "v1+v2",
@@ -20418,8 +20476,8 @@ async function buildTeamContextCheck(config) {
20418
20476
  }
20419
20477
  }
20420
20478
  __name(buildTeamContextCheck, "buildTeamContextCheck");
20421
- var listMyTeamsResponseSchema2 = z95.object({
20422
- teams: z95.array(z95.object({ id: z95.string() }))
20479
+ var listMyTeamsResponseSchema2 = z96.object({
20480
+ teams: z96.array(z96.object({ id: z96.string() }))
20423
20481
  });
20424
20482
  async function buildClarityApiReachableCheck(command, config) {
20425
20483
  let teamId;
@@ -21037,19 +21095,19 @@ function buildGenerateTransformationProposalBody(options) {
21037
21095
  __name(buildGenerateTransformationProposalBody, "buildGenerateTransformationProposalBody");
21038
21096
 
21039
21097
  // src/commands/clarity/get-current-process.ts
21040
- import { z as z96 } from "zod";
21041
- var snapshotSchema = z96.object({
21042
- snapshot: z96.object({
21043
- id: z96.string(),
21044
- kind: z96.string(),
21045
- source_snapshot_id: z96.string().nullable(),
21046
- parent_id: z96.string().nullable(),
21047
- status: z96.string(),
21048
- creator_type: z96.string(),
21049
- user_id: z96.string().nullable(),
21050
- sandbox_id: z96.string().nullable(),
21051
- created_at: z96.string(),
21052
- updated_at: z96.string()
21098
+ import { z as z97 } from "zod";
21099
+ var snapshotSchema = z97.object({
21100
+ snapshot: z97.object({
21101
+ id: z97.string(),
21102
+ kind: z97.string(),
21103
+ source_snapshot_id: z97.string().nullable(),
21104
+ parent_id: z97.string().nullable(),
21105
+ status: z97.string(),
21106
+ creator_type: z97.string(),
21107
+ user_id: z97.string().nullable(),
21108
+ sandbox_id: z97.string().nullable(),
21109
+ created_at: z97.string(),
21110
+ updated_at: z97.string()
21053
21111
  })
21054
21112
  });
21055
21113
  function registerClarityGetCurrentProcess(clarity) {
@@ -21093,19 +21151,19 @@ function registerClarityGetCurrentProcess(clarity) {
21093
21151
  __name(registerClarityGetCurrentProcess, "registerClarityGetCurrentProcess");
21094
21152
 
21095
21153
  // src/commands/clarity/get-transformation-proposal.ts
21096
- import { z as z97 } from "zod";
21097
- var snapshotSchema2 = z97.object({
21098
- snapshot: z97.object({
21099
- id: z97.string(),
21100
- kind: z97.string(),
21101
- source_snapshot_id: z97.string().nullable(),
21102
- parent_id: z97.string().nullable(),
21103
- status: z97.string(),
21104
- creator_type: z97.string(),
21105
- user_id: z97.string().nullable(),
21106
- sandbox_id: z97.string().nullable(),
21107
- created_at: z97.string(),
21108
- updated_at: z97.string()
21154
+ import { z as z98 } from "zod";
21155
+ var snapshotSchema2 = z98.object({
21156
+ snapshot: z98.object({
21157
+ id: z98.string(),
21158
+ kind: z98.string(),
21159
+ source_snapshot_id: z98.string().nullable(),
21160
+ parent_id: z98.string().nullable(),
21161
+ status: z98.string(),
21162
+ creator_type: z98.string(),
21163
+ user_id: z98.string().nullable(),
21164
+ sandbox_id: z98.string().nullable(),
21165
+ created_at: z98.string(),
21166
+ updated_at: z98.string()
21109
21167
  })
21110
21168
  });
21111
21169
  function registerClarityGetTransformationProposal(clarity) {
@@ -21201,7 +21259,7 @@ Transformation proposal versions (${tpVersions.length}):`
21201
21259
  __name(registerClarityGet, "registerClarityGet");
21202
21260
 
21203
21261
  // src/commands/clarity/landscape.ts
21204
- import { z as z98 } from "zod";
21262
+ import { z as z99 } from "zod";
21205
21263
 
21206
21264
  // src/commands/clarity/org-scope.ts
21207
21265
  function getOrgFlag(command) {
@@ -21246,90 +21304,89 @@ var CAPTURES_RESOURCE_PATH = "/clarity/hierarchy/captures";
21246
21304
  var PROPOSED_PROCESSES_RESOURCE_PATH = "/clarity/hierarchy/proposed-processes";
21247
21305
  var PROCESS_NODE_TYPE = "process";
21248
21306
  var AREA_NODE_TYPE = "area";
21249
- var axisSchema = z98.enum(["content", "existence"]);
21250
- var processSummarySchema = z98.object({
21251
- id: z98.string(),
21252
- name: z98.string()
21307
+ var processSummarySchema = z99.object({
21308
+ id: z99.string(),
21309
+ name: z99.string()
21253
21310
  }).passthrough();
21254
- var landscapeNodeSchema = z98.object({
21255
- id: z98.string(),
21256
- parentId: z98.string().nullable(),
21257
- processId: z98.string().nullable(),
21258
- name: z98.string(),
21259
- ownerLabel: z98.string().nullable(),
21311
+ var landscapeNodeSchema = z99.object({
21312
+ id: z99.string(),
21313
+ parentId: z99.string().nullable(),
21314
+ processId: z99.string().nullable(),
21315
+ name: z99.string(),
21316
+ ownerLabel: z99.string().nullable(),
21260
21317
  process: processSummarySchema.nullable()
21261
21318
  }).passthrough();
21262
21319
  var unlinkedProcessSchema = processSummarySchema.extend({
21263
- teamId: z98.string(),
21264
- teamName: z98.string().nullable()
21320
+ teamId: z99.string(),
21321
+ teamName: z99.string().nullable()
21265
21322
  }).passthrough();
21266
- var treeNodeSchema = z98.object({
21267
- id: z98.string(),
21268
- parentId: z98.string().nullable(),
21269
- processId: z98.string().nullable(),
21270
- name: z98.string(),
21271
- ownerLabel: z98.string().nullable(),
21272
- depth: z98.number()
21323
+ var treeNodeSchema = z99.object({
21324
+ id: z99.string(),
21325
+ parentId: z99.string().nullable(),
21326
+ processId: z99.string().nullable(),
21327
+ name: z99.string(),
21328
+ ownerLabel: z99.string().nullable(),
21329
+ depth: z99.number()
21273
21330
  }).passthrough();
21274
- var landscapeResponseSchema = z98.object({
21275
- nodes: z98.array(landscapeNodeSchema),
21276
- links: z98.array(
21277
- z98.object({
21278
- id: z98.string(),
21279
- sourceNodeId: z98.string(),
21280
- targetNodeId: z98.string(),
21281
- type: z98.string(),
21282
- state: z98.string(),
21283
- confidence: z98.number().nullable()
21331
+ var landscapeResponseSchema = z99.object({
21332
+ nodes: z99.array(landscapeNodeSchema),
21333
+ links: z99.array(
21334
+ z99.object({
21335
+ id: z99.string(),
21336
+ sourceNodeId: z99.string(),
21337
+ targetNodeId: z99.string(),
21338
+ type: z99.string(),
21339
+ state: z99.string(),
21340
+ confidence: z99.number().nullable()
21284
21341
  }).passthrough()
21285
21342
  ),
21286
- unlinkedProcesses: z98.array(unlinkedProcessSchema),
21287
- stats: z98.object({
21288
- totalNodes: z98.number(),
21289
- processNodes: z98.number(),
21290
- proposedNodes: z98.number(),
21291
- unsortedProcesses: z98.number(),
21292
- latestUpdatedAt: z98.string().nullable()
21343
+ unlinkedProcesses: z99.array(unlinkedProcessSchema),
21344
+ stats: z99.object({
21345
+ totalNodes: z99.number(),
21346
+ processNodes: z99.number(),
21347
+ proposedNodes: z99.number(),
21348
+ unsortedProcesses: z99.number(),
21349
+ latestUpdatedAt: z99.string().nullable()
21293
21350
  }).passthrough(),
21294
- truncated: z98.boolean()
21351
+ truncated: z99.boolean()
21295
21352
  }).passthrough();
21296
- var treeResponseSchema = z98.object({
21297
- nodes: z98.array(treeNodeSchema),
21298
- truncated: z98.boolean()
21353
+ var treeResponseSchema = z99.object({
21354
+ nodes: z99.array(treeNodeSchema),
21355
+ truncated: z99.boolean()
21299
21356
  }).passthrough();
21300
- var nodeResponseSchema = z98.object({
21301
- id: z98.string(),
21302
- parentId: z98.string().nullable(),
21303
- processId: z98.string().nullable(),
21304
- name: z98.string(),
21305
- ownerLabel: z98.string().nullable()
21357
+ var nodeResponseSchema = z99.object({
21358
+ id: z99.string(),
21359
+ parentId: z99.string().nullable(),
21360
+ processId: z99.string().nullable(),
21361
+ name: z99.string(),
21362
+ ownerLabel: z99.string().nullable()
21306
21363
  }).passthrough();
21307
- var deleteNodeResponseSchema = z98.object({
21308
- deletedCount: z98.number(),
21309
- detachedCount: z98.number()
21310
- });
21311
- var generateLandscapeResponseSchema = z98.object({
21312
- started: z98.literal(true),
21313
- generationId: z98.string(),
21314
- eligibleCaptureCount: z98.number()
21364
+ var deleteNodeResponseSchema = z99.object({
21365
+ deletedCount: z99.number(),
21366
+ detachedCount: z99.number()
21367
+ });
21368
+ var generateLandscapeResponseSchema = z99.object({
21369
+ started: z99.literal(true),
21370
+ generationId: z99.string(),
21371
+ eligibleCaptureCount: z99.number()
21315
21372
  }).passthrough();
21316
- var captureSchema = z98.object({
21317
- id: z98.string(),
21318
- scope: z98.string(),
21319
- type: z98.string(),
21320
- title: z98.string(),
21321
- organizationId: z98.string().nullable(),
21322
- organizationName: z98.string().nullable(),
21323
- teamId: z98.string().nullable(),
21324
- teamName: z98.string().nullable(),
21325
- processNodeId: z98.string().nullable(),
21326
- createdAt: z98.string(),
21327
- transcriptMessageCount: z98.number()
21373
+ var captureSchema = z99.object({
21374
+ id: z99.string(),
21375
+ scope: z99.string(),
21376
+ type: z99.string(),
21377
+ title: z99.string(),
21378
+ organizationId: z99.string().nullable(),
21379
+ organizationName: z99.string().nullable(),
21380
+ teamId: z99.string().nullable(),
21381
+ teamName: z99.string().nullable(),
21382
+ processNodeId: z99.string().nullable(),
21383
+ createdAt: z99.string(),
21384
+ transcriptMessageCount: z99.number()
21328
21385
  }).passthrough();
21329
- var captureListResponseSchema = z98.object({
21330
- captures: z98.array(captureSchema),
21331
- total: z98.number(),
21332
- truncated: z98.boolean()
21386
+ var captureListResponseSchema = z99.object({
21387
+ captures: z99.array(captureSchema),
21388
+ total: z99.number(),
21389
+ truncated: z99.boolean()
21333
21390
  }).passthrough();
21334
21391
  var LANDSCAPE_COLUMNS = [
21335
21392
  { header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
@@ -21451,18 +21508,6 @@ function registerClarityLandscape(clarity) {
21451
21508
  const node = nodeResponseSchema.parse(raw);
21452
21509
  renderNodeMutationResult("Moved node", node, options);
21453
21510
  }, "moveNodeAction"));
21454
- landscape.command("confirm-node <node-id>").description("Confirm a landscape node axis").requiredOption("--axis <axis>", "content or existence").option("--org <org-id>", ORG_FLAG_DESCRIPTION).option("--json", "output JSON").action(/* @__PURE__ */ __name(async function confirmNodeAction(nodeId, options) {
21455
- const config = await requireAuthenticatedConfig(this);
21456
- const raw = await httpRequest({
21457
- method: "POST",
21458
- path: nodeConfirmPath(resolveOrgId(this), nodeId),
21459
- apiKey: config.apiKey,
21460
- apiBaseUrl: config.apiBaseUrl,
21461
- body: { axis: parseAxis(options.axis) }
21462
- });
21463
- const node = nodeResponseSchema.parse(raw);
21464
- renderNodeMutationResult("Confirmed node", node, options);
21465
- }, "confirmNodeAction"));
21466
21511
  landscape.command("delete-node <node-id>").description(
21467
21512
  "Delete a landscape node and its subtree. The node's linked process and captures are deleted; nested processes move to Unsorted"
21468
21513
  ).option("--org <org-id>", ORG_FLAG_DESCRIPTION).option("--json", "output JSON").action(/* @__PURE__ */ __name(async function deleteNodeAction(nodeId, options) {
@@ -21541,10 +21586,6 @@ function nodePlacementPath(orgId, nodeId) {
21541
21586
  return `${nodePath(orgId, nodeId)}/placement`;
21542
21587
  }
21543
21588
  __name(nodePlacementPath, "nodePlacementPath");
21544
- function nodeConfirmPath(orgId, nodeId) {
21545
- return `${nodePath(orgId, nodeId)}/confirm`;
21546
- }
21547
- __name(nodeConfirmPath, "nodeConfirmPath");
21548
21589
  function buildRenameNodeBody(options) {
21549
21590
  if (options.ownerLabel !== void 0 && options.clearOwnerLabel) {
21550
21591
  throw new CliError(
@@ -21663,14 +21704,6 @@ function buildRootSearchParams(rootId) {
21663
21704
  return searchParams;
21664
21705
  }
21665
21706
  __name(buildRootSearchParams, "buildRootSearchParams");
21666
- function parseAxis(value) {
21667
- const parsed = axisSchema.safeParse(value);
21668
- if (!parsed.success) {
21669
- throw new CliError("Axis must be content or existence.");
21670
- }
21671
- return parsed.data;
21672
- }
21673
- __name(parseAxis, "parseAxis");
21674
21707
  function renderLandscapeNodes(nodes, emptyMessage) {
21675
21708
  if (nodes.length === 0) {
21676
21709
  console.log(emptyMessage);
@@ -21899,22 +21932,22 @@ function registerClarityProcessSummaries(clarity) {
21899
21932
  __name(registerClarityProcessSummaries, "registerClarityProcessSummaries");
21900
21933
 
21901
21934
  // src/commands/clarity/list-snapshots.ts
21902
- import { z as z99 } from "zod";
21935
+ import { z as z100 } from "zod";
21903
21936
  var SNAPSHOT_KINDS = ["current_process", "transformation_proposal"];
21904
21937
  var DEFAULT_LIMIT7 = 50;
21905
21938
  var MIN_LIMIT7 = 1;
21906
21939
  var MAX_LIMIT7 = 100;
21907
- var snapshotListItemSchema = z99.looseObject({
21908
- id: z99.string(),
21909
- status: z99.string(),
21910
- creator_type: z99.string(),
21911
- created_at: z99.string(),
21912
- parent_id: z99.string().nullable().optional(),
21913
- source_snapshot_id: z99.string().nullable().optional()
21940
+ var snapshotListItemSchema = z100.looseObject({
21941
+ id: z100.string(),
21942
+ status: z100.string(),
21943
+ creator_type: z100.string(),
21944
+ created_at: z100.string(),
21945
+ parent_id: z100.string().nullable().optional(),
21946
+ source_snapshot_id: z100.string().nullable().optional()
21914
21947
  });
21915
- var listSnapshotsResponseSchema = z99.looseObject({
21916
- snapshots: z99.array(snapshotListItemSchema),
21917
- total: z99.number().int().optional()
21948
+ var listSnapshotsResponseSchema = z100.looseObject({
21949
+ snapshots: z100.array(snapshotListItemSchema),
21950
+ total: z100.number().int().optional()
21918
21951
  });
21919
21952
  var TABLE_COLUMNS21 = [
21920
21953
  {
@@ -22331,40 +22364,40 @@ function renderLabelSummary(label) {
22331
22364
  __name(renderLabelSummary, "renderLabelSummary");
22332
22365
 
22333
22366
  // src/commands/clarity/process-links.ts
22334
- import { z as z100 } from "zod";
22367
+ import { z as z101 } from "zod";
22335
22368
  var MIN_LIMIT9 = 1;
22336
22369
  var MAX_LIMIT9 = 500;
22337
22370
  var DEFAULT_LIMIT9 = 100;
22338
22371
  var ORG_FLAG_DESCRIPTION3 = "organization id for the org-scoped process landscape (overrides DUVO_ORG_ID)";
22339
22372
  var PROCESS_LINKS_RESOURCE_PATH = "/clarity/hierarchy/process-links";
22340
- var processLinkTypeSchema = z100.enum([
22373
+ var processLinkTypeSchema = z101.enum([
22341
22374
  "hands_off_to",
22342
22375
  "shares_step_with",
22343
22376
  "variant_of"
22344
22377
  ]);
22345
- var processLinkStateSchema = z100.enum(["suggested", "confirmed"]);
22346
- var processLinkSchema = z100.object({
22347
- id: z100.string(),
22348
- source_node_id: z100.string(),
22349
- target_node_id: z100.string(),
22378
+ var processLinkStateSchema = z101.enum(["suggested", "confirmed"]);
22379
+ var processLinkSchema = z101.object({
22380
+ id: z101.string(),
22381
+ source_node_id: z101.string(),
22382
+ target_node_id: z101.string(),
22350
22383
  type: processLinkTypeSchema,
22351
22384
  state: processLinkStateSchema,
22352
- confidence: z100.number().nullable(),
22353
- created_at: z100.string(),
22354
- updated_at: z100.string()
22385
+ confidence: z101.number().nullable(),
22386
+ created_at: z101.string(),
22387
+ updated_at: z101.string()
22355
22388
  });
22356
- var listProcessLinksResponseSchema = z100.object({
22357
- process_links: z100.array(processLinkSchema),
22358
- total: z100.number(),
22359
- limit: z100.number(),
22360
- offset: z100.number()
22389
+ var listProcessLinksResponseSchema = z101.object({
22390
+ process_links: z101.array(processLinkSchema),
22391
+ total: z101.number(),
22392
+ limit: z101.number(),
22393
+ offset: z101.number()
22361
22394
  });
22362
- var processLinkMutationResponseSchema = z100.object({
22395
+ var processLinkMutationResponseSchema = z101.object({
22363
22396
  process_link: processLinkSchema,
22364
- created: z100.boolean().optional()
22397
+ created: z101.boolean().optional()
22365
22398
  });
22366
- var deleteProcessLinkResponseSchema = z100.object({
22367
- deleted: z100.boolean()
22399
+ var deleteProcessLinkResponseSchema = z101.object({
22400
+ deleted: z101.boolean()
22368
22401
  });
22369
22402
  var PROCESS_LINK_COLUMNS = [
22370
22403
  { header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
@@ -22557,14 +22590,14 @@ function renderProcessLinks(response) {
22557
22590
  __name(renderProcessLinks, "renderProcessLinks");
22558
22591
 
22559
22592
  // src/commands/clarity/promote-current-process.ts
22560
- import { z as z101 } from "zod";
22561
- var snapshotSchema3 = z101.object({
22562
- snapshot: z101.object({
22563
- id: z101.string(),
22564
- status: z101.string(),
22565
- creator_type: z101.string(),
22566
- created_at: z101.string(),
22567
- updated_at: z101.string()
22593
+ import { z as z102 } from "zod";
22594
+ var snapshotSchema3 = z102.object({
22595
+ snapshot: z102.object({
22596
+ id: z102.string(),
22597
+ status: z102.string(),
22598
+ creator_type: z102.string(),
22599
+ created_at: z102.string(),
22600
+ updated_at: z102.string()
22568
22601
  })
22569
22602
  });
22570
22603
  function registerClarityPromoteCurrentProcess(clarity) {
@@ -22601,14 +22634,14 @@ function registerClarityPromoteCurrentProcess(clarity) {
22601
22634
  __name(registerClarityPromoteCurrentProcess, "registerClarityPromoteCurrentProcess");
22602
22635
 
22603
22636
  // src/commands/clarity/promote-transformation-proposal.ts
22604
- import { z as z102 } from "zod";
22605
- var snapshotSchema4 = z102.object({
22606
- snapshot: z102.object({
22607
- id: z102.string(),
22608
- status: z102.string(),
22609
- creator_type: z102.string(),
22610
- created_at: z102.string(),
22611
- updated_at: z102.string()
22637
+ import { z as z103 } from "zod";
22638
+ var snapshotSchema4 = z103.object({
22639
+ snapshot: z103.object({
22640
+ id: z103.string(),
22641
+ status: z103.string(),
22642
+ creator_type: z103.string(),
22643
+ created_at: z103.string(),
22644
+ updated_at: z103.string()
22612
22645
  })
22613
22646
  });
22614
22647
  function registerClarityPromoteTransformationProposal(clarity) {
@@ -22684,8 +22717,8 @@ __name(registerClarityRevertTransformationProposal, "registerClarityRevertTransf
22684
22717
 
22685
22718
  // src/commands/clarity/save-snapshot.ts
22686
22719
  import { readFile as readFile7 } from "node:fs/promises";
22687
- import { z as z103 } from "zod";
22688
- var snapshotFileSchema = z103.union([
22720
+ import { z as z104 } from "zod";
22721
+ var snapshotFileSchema = z104.union([
22689
22722
  saveClarityProcessSnapshotBodySchema.shape.steps,
22690
22723
  saveClarityProcessSnapshotBodySchema.pick({
22691
22724
  steps: true,
@@ -23686,16 +23719,16 @@ function registerConnectionsList(connections) {
23686
23719
  __name(registerConnectionsList, "registerConnectionsList");
23687
23720
 
23688
23721
  // src/commands/connections/probe.ts
23689
- import { z as z104 } from "zod";
23690
- var toolSchema = z104.object({
23691
- name: z104.string(),
23692
- description: z104.string().optional(),
23693
- input_schema: z104.record(z104.string(), z104.unknown()).optional()
23722
+ import { z as z105 } from "zod";
23723
+ var toolSchema = z105.object({
23724
+ name: z105.string(),
23725
+ description: z105.string().optional(),
23726
+ input_schema: z105.record(z105.string(), z105.unknown()).optional()
23694
23727
  });
23695
- var probeResponseSchema = z104.object({
23696
- success: z104.boolean(),
23697
- tools: z104.array(toolSchema).optional(),
23698
- error: z104.string().optional()
23728
+ var probeResponseSchema = z105.object({
23729
+ success: z105.boolean(),
23730
+ tools: z105.array(toolSchema).optional(),
23731
+ error: z105.string().optional()
23699
23732
  });
23700
23733
  var DESCRIPTION_MAX_WIDTH = 80;
23701
23734
  var TABLE_COLUMNS23 = [
@@ -23918,48 +23951,48 @@ function registerConnections(program) {
23918
23951
  __name(registerConnections, "registerConnections");
23919
23952
 
23920
23953
  // src/api/credential-schemas.ts
23921
- import { z as z105 } from "zod";
23922
- var dateLike = z105.string();
23923
- var secretSchema = z105.object({
23924
- id: z105.string(),
23925
- team_id: z105.string(),
23926
- user_id: z105.string().nullable(),
23927
- name: z105.string(),
23928
- service_slug: z105.string().nullable(),
23929
- env_var_keys: z105.array(z105.string()),
23930
- created_by: z105.string(),
23954
+ import { z as z106 } from "zod";
23955
+ var dateLike = z106.string();
23956
+ var secretSchema = z106.object({
23957
+ id: z106.string(),
23958
+ team_id: z106.string(),
23959
+ user_id: z106.string().nullable(),
23960
+ name: z106.string(),
23961
+ service_slug: z106.string().nullable(),
23962
+ env_var_keys: z106.array(z106.string()),
23963
+ created_by: z106.string(),
23931
23964
  created_at: dateLike,
23932
23965
  updated_at: dateLike
23933
23966
  });
23934
- var secretsListResponseSchema = z105.array(secretSchema);
23967
+ var secretsListResponseSchema = z106.array(secretSchema);
23935
23968
  var secretResponseSchema = secretSchema;
23936
- var browserLoginSchema = z105.object({
23937
- id: z105.string(),
23938
- user_id: z105.string().nullable(),
23939
- team_id: z105.string(),
23940
- domain: z105.string(),
23941
- username: z105.string().nullable(),
23969
+ var browserLoginSchema = z106.object({
23970
+ id: z106.string(),
23971
+ user_id: z106.string().nullable(),
23972
+ team_id: z106.string(),
23973
+ domain: z106.string(),
23974
+ username: z106.string().nullable(),
23942
23975
  password: encryptedDataSchema.nullable(),
23943
23976
  otp_secret: encryptedDataSchema.nullable(),
23944
23977
  created_at: dateLike,
23945
23978
  updated_at: dateLike
23946
23979
  });
23947
- var browserLoginsListResponseSchema = z105.array(credentialPreviewSchema);
23948
- var revisionLoginSummarySchema = z105.object({
23949
- id: z105.string(),
23950
- user_id: z105.string().nullable(),
23951
- team_id: z105.string().nullable(),
23952
- domain: z105.string(),
23953
- username: z105.string().nullable(),
23980
+ var browserLoginsListResponseSchema = z106.array(credentialPreviewSchema);
23981
+ var revisionLoginSummarySchema = z106.object({
23982
+ id: z106.string(),
23983
+ user_id: z106.string().nullable(),
23984
+ team_id: z106.string().nullable(),
23985
+ domain: z106.string(),
23986
+ username: z106.string().nullable(),
23954
23987
  created_at: dateLike,
23955
23988
  updated_at: dateLike
23956
23989
  });
23957
- var revisionLoginsListResponseSchema = z105.array(
23990
+ var revisionLoginsListResponseSchema = z106.array(
23958
23991
  revisionLoginSummarySchema
23959
23992
  );
23960
- var revisionSecretsListResponseSchema = z105.array(secretSchema);
23961
- var successResponseSchema2 = z105.object({
23962
- success: z105.boolean()
23993
+ var revisionSecretsListResponseSchema = z106.array(secretSchema);
23994
+ var successResponseSchema2 = z106.object({
23995
+ success: z106.boolean()
23963
23996
  });
23964
23997
  var attachSuccessResponseSchema = successResponseSchema2;
23965
23998
  var deleteSecretResponseSchema = successResponseSchema2;
@@ -26723,6 +26756,80 @@ function registerPulseMessages(pulse) {
26723
26756
  }
26724
26757
  __name(registerPulseMessages, "registerPulseMessages");
26725
26758
 
26759
+ // src/commands/pulse/move.ts
26760
+ function registerPulseMove(pulse) {
26761
+ pulse.command("move <id>").description(
26762
+ "Move a Pulse dashboard to another team. Only the latest version moves \u2014 chat, raw events, older versions, and member shares are deleted; you become the owner, visibility resets to private, and the dashboard's API key is rotated. Requires Manager or above on both teams."
26763
+ ).requiredOption("--to <team-id>", "destination team ID").option(
26764
+ "--team <id>",
26765
+ "source team ID (defaults to the team scoped to your credentials)"
26766
+ ).option(
26767
+ "--dry-run",
26768
+ "preview which connections reconnect vs drop without moving anything"
26769
+ ).option("-y, --yes", "skip the confirmation prompt").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function moveAction(id, options) {
26770
+ const pulseId = trimRequired(id, "<id>");
26771
+ const targetTeamId = trimRequired(options.to, "--to");
26772
+ const config = await requireAuthenticatedConfig(this);
26773
+ const { apiKey, apiBaseUrl } = config;
26774
+ const sourceTeamId = await resolveRequiredTeamId(config, {
26775
+ override: options.team ?? getTeamFlag(this)
26776
+ });
26777
+ if (!options.dryRun) {
26778
+ await confirmDestructive({
26779
+ message: `Move Pulse dashboard "${pulseId}" to team ${targetTeamId}? Chat, raw events, older versions, and member shares are deleted, visibility resets to private, and the dashboard's API key is rotated \u2014 only the latest version moves.`,
26780
+ skip: options.yes ?? false
26781
+ });
26782
+ }
26783
+ const searchParams = new URLSearchParams();
26784
+ if (options.dryRun) {
26785
+ searchParams.append("dryRun", "true");
26786
+ }
26787
+ const raw = await httpRequest({
26788
+ method: "POST",
26789
+ path: `/v2/teams/${encodeURIComponent(sourceTeamId)}/artifacts/${encodeURIComponent(pulseId)}/move`,
26790
+ apiKey,
26791
+ apiBaseUrl,
26792
+ searchParams,
26793
+ body: { targetTeamId }
26794
+ });
26795
+ if (options.json) {
26796
+ printJson(raw);
26797
+ return;
26798
+ }
26799
+ const parsed = movePulsePlanSchema.safeParse(raw);
26800
+ if (!parsed.success) {
26801
+ throw new CliError(
26802
+ `Unexpected response from the API: ${parsed.error.message}`
26803
+ );
26804
+ }
26805
+ const plan = parsed.data;
26806
+ const reused = plan.connections.reused.length;
26807
+ const dropped = plan.connections.disconnected.length;
26808
+ const toRebuild = plan.connections.customToRebuild.length;
26809
+ console.log(
26810
+ plan.applied ? green("Pulse dashboard moved.") : yellow("Preview only \u2014 nothing was moved.")
26811
+ );
26812
+ console.log();
26813
+ console.log(
26814
+ renderKeyValue([
26815
+ { label: "ID", value: plan.artifactId },
26816
+ { label: "Title", value: plan.artifactTitle ?? "" },
26817
+ { label: "From team", value: plan.sourceTeamId },
26818
+ { label: "To team", value: plan.targetTeamId },
26819
+ {
26820
+ label: "Connections",
26821
+ value: `${reused} reconnect, ${dropped} dropped, ${toRebuild} need rebuild`
26822
+ }
26823
+ ])
26824
+ );
26825
+ console.log();
26826
+ console.log(
26827
+ plan.applied ? "The chat and older versions were deleted \u2014 only the latest version moved." : `Apply it with: duvo pulse move ${plan.artifactId} --to ${plan.targetTeamId}`
26828
+ );
26829
+ }, "moveAction"));
26830
+ }
26831
+ __name(registerPulseMove, "registerPulseMove");
26832
+
26726
26833
  // src/commands/pulse/pdf.ts
26727
26834
  import { writeFile as writeFile2 } from "node:fs/promises";
26728
26835
 
@@ -26768,6 +26875,45 @@ function registerPulsePdf(pulse) {
26768
26875
  }
26769
26876
  __name(registerPulsePdf, "registerPulsePdf");
26770
26877
 
26878
+ // src/commands/pulse/refresh.ts
26879
+ function registerPulseRefresh(pulse) {
26880
+ pulse.command("refresh <id>").description(
26881
+ "Refresh a Pulse dashboard's data in place. The refresh runs in the background \u2014 poll `duvo pulse get` for status."
26882
+ ).option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function refreshAction(id, options) {
26883
+ const pulseId = trimRequired(id, "<id>");
26884
+ const { apiKey, apiBaseUrl } = await requireAuthenticatedConfig(this);
26885
+ const raw = await httpRequest({
26886
+ method: "POST",
26887
+ path: `/v2/artifacts/${encodeURIComponent(pulseId)}/refresh`,
26888
+ apiKey,
26889
+ apiBaseUrl,
26890
+ body: {}
26891
+ });
26892
+ if (options.json) {
26893
+ printJson(raw);
26894
+ return;
26895
+ }
26896
+ const parsed = artifactSchema.safeParse(raw);
26897
+ if (!parsed.success) {
26898
+ throw new CliError(
26899
+ `Unexpected response from the API: ${parsed.error.message}`
26900
+ );
26901
+ }
26902
+ console.log(green("Pulse refresh started."));
26903
+ console.log();
26904
+ console.log(
26905
+ renderKeyValue([
26906
+ { label: "ID", value: parsed.data.id },
26907
+ { label: "Title", value: parsed.data.title ?? "" },
26908
+ { label: "Status", value: parsed.data.status }
26909
+ ])
26910
+ );
26911
+ console.log();
26912
+ console.log(`Check progress with: duvo pulse get ${parsed.data.id}`);
26913
+ }, "refreshAction"));
26914
+ }
26915
+ __name(registerPulseRefresh, "registerPulseRefresh");
26916
+
26771
26917
  // src/commands/pulse/rename.ts
26772
26918
  var MAX_TITLE_LENGTH = 120;
26773
26919
  function registerPulseRename(pulse) {
@@ -27094,9 +27240,11 @@ function registerPulse(program) {
27094
27240
  registerPulseSnapshot(pulse);
27095
27241
  registerPulseSendMessage(pulse);
27096
27242
  registerPulseStop(pulse);
27243
+ registerPulseRefresh(pulse);
27097
27244
  registerPulseRename(pulse);
27098
27245
  registerPulseShare(pulse);
27099
27246
  registerPulseDuplicate(pulse);
27247
+ registerPulseMove(pulse);
27100
27248
  registerPulseDelete(pulse);
27101
27249
  registerPulseVersions(pulse);
27102
27250
  registerPulseRestore(pulse);
@@ -28384,91 +28532,91 @@ function registerRevisionSecrets(program) {
28384
28532
  __name(registerRevisionSecrets, "registerRevisionSecrets");
28385
28533
 
28386
28534
  // src/api/run-schemas.ts
28387
- import { z as z106 } from "zod";
28388
- var publicRunSchema = z106.object({
28389
- id: z106.string(),
28390
- agent_id: z106.string(),
28391
- build_id: z106.string(),
28392
- status: z106.string(),
28393
- source: z106.string().nullish(),
28394
- sandbox_id: z106.string().nullish(),
28395
- started_at: z106.string().nullish(),
28396
- completed_at: z106.string().nullish(),
28397
- created_at: z106.string(),
28398
- updated_at: z106.string().nullish(),
28399
- human_in_the_loop_enabled: z106.boolean().nullish()
28400
- });
28401
- var startRunResponseSchema = z106.object({
28535
+ import { z as z107 } from "zod";
28536
+ var publicRunSchema = z107.object({
28537
+ id: z107.string(),
28538
+ agent_id: z107.string(),
28539
+ build_id: z107.string(),
28540
+ status: z107.string(),
28541
+ source: z107.string().nullish(),
28542
+ sandbox_id: z107.string().nullish(),
28543
+ started_at: z107.string().nullish(),
28544
+ completed_at: z107.string().nullish(),
28545
+ created_at: z107.string(),
28546
+ updated_at: z107.string().nullish(),
28547
+ human_in_the_loop_enabled: z107.boolean().nullish()
28548
+ });
28549
+ var startRunResponseSchema = z107.object({
28402
28550
  run: publicRunSchema
28403
28551
  });
28404
- var questionOptionSchema = z106.object({
28405
- label: z106.string(),
28406
- description: z106.string().nullish()
28407
- });
28408
- var questionSchema = z106.object({
28409
- question: z106.string(),
28410
- header: z106.string().nullish(),
28411
- options: z106.array(questionOptionSchema).nullish(),
28412
- multi_select: z106.boolean().nullish()
28413
- });
28414
- var pendingHumanRequestSchema = z106.object({
28415
- id: z106.string(),
28416
- title: z106.string(),
28417
- description: z106.string().nullish(),
28418
- created_at: z106.string(),
28419
- type: z106.string(),
28420
- questions: z106.array(questionSchema).nullish()
28421
- });
28422
- var getRunResponseSchema = z106.object({
28552
+ var questionOptionSchema = z107.object({
28553
+ label: z107.string(),
28554
+ description: z107.string().nullish()
28555
+ });
28556
+ var questionSchema = z107.object({
28557
+ question: z107.string(),
28558
+ header: z107.string().nullish(),
28559
+ options: z107.array(questionOptionSchema).nullish(),
28560
+ multi_select: z107.boolean().nullish()
28561
+ });
28562
+ var pendingHumanRequestSchema = z107.object({
28563
+ id: z107.string(),
28564
+ title: z107.string(),
28565
+ description: z107.string().nullish(),
28566
+ created_at: z107.string(),
28567
+ type: z107.string(),
28568
+ questions: z107.array(questionSchema).nullish()
28569
+ });
28570
+ var getRunResponseSchema = z107.object({
28423
28571
  run: publicRunSchema.nullable(),
28424
28572
  pending_human_request: pendingHumanRequestSchema.nullish()
28425
28573
  });
28426
- var stopRunResponseSchema = z106.object({
28427
- success: z106.boolean(),
28428
- message: z106.string().nullish()
28429
- });
28430
- var runMessageSchema = z106.object({
28431
- id: z106.string(),
28432
- type: z106.string(),
28433
- role: z106.string(),
28434
- timestamp: z106.string(),
28435
- text_content: z106.string().nullish(),
28436
- tool_call: z106.object({
28437
- id: z106.string(),
28438
- name: z106.string(),
28439
- arguments: z106.record(z106.string(), z106.unknown()).nullish()
28574
+ var stopRunResponseSchema = z107.object({
28575
+ success: z107.boolean(),
28576
+ message: z107.string().nullish()
28577
+ });
28578
+ var runMessageSchema = z107.object({
28579
+ id: z107.string(),
28580
+ type: z107.string(),
28581
+ role: z107.string(),
28582
+ timestamp: z107.string(),
28583
+ text_content: z107.string().nullish(),
28584
+ tool_call: z107.object({
28585
+ id: z107.string(),
28586
+ name: z107.string(),
28587
+ arguments: z107.record(z107.string(), z107.unknown()).nullish()
28440
28588
  }).nullish(),
28441
- tool_result: z106.object({
28442
- tool_call_id: z106.string(),
28443
- result: z106.unknown().nullish(),
28444
- error: z106.string().nullish()
28589
+ tool_result: z107.object({
28590
+ tool_call_id: z107.string(),
28591
+ result: z107.unknown().nullish(),
28592
+ error: z107.string().nullish()
28445
28593
  }).nullish()
28446
28594
  });
28447
- var listRunMessagesResponseSchema = z106.object({
28448
- messages: z106.array(runMessageSchema),
28449
- total: z106.number().nullish(),
28450
- limit: z106.number().nullish(),
28451
- offset: z106.number().nullish()
28595
+ var listRunMessagesResponseSchema = z107.object({
28596
+ messages: z107.array(runMessageSchema),
28597
+ total: z107.number().nullish(),
28598
+ limit: z107.number().nullish(),
28599
+ offset: z107.number().nullish()
28452
28600
  });
28453
- var postedMessageSchema = z106.object({
28454
- id: z106.string(),
28455
- type: z106.string(),
28456
- role: z106.string(),
28457
- timestamp: z106.string(),
28458
- text_content: z106.string()
28601
+ var postedMessageSchema = z107.object({
28602
+ id: z107.string(),
28603
+ type: z107.string(),
28604
+ role: z107.string(),
28605
+ timestamp: z107.string(),
28606
+ text_content: z107.string()
28459
28607
  });
28460
- var postRunMessageResponseSchema = z106.object({
28608
+ var postRunMessageResponseSchema = z107.object({
28461
28609
  message: postedMessageSchema
28462
28610
  });
28463
- var respondHumanRequestResponseSchema = z106.object({
28464
- human_request: z106.object({
28465
- id: z106.string(),
28466
- run_id: z106.string(),
28467
- title: z106.string(),
28468
- description: z106.string().nullish(),
28469
- response: z106.string().nullish(),
28470
- responded_at: z106.string().nullish(),
28471
- created_at: z106.string()
28611
+ var respondHumanRequestResponseSchema = z107.object({
28612
+ human_request: z107.object({
28613
+ id: z107.string(),
28614
+ run_id: z107.string(),
28615
+ title: z107.string(),
28616
+ description: z107.string().nullish(),
28617
+ response: z107.string().nullish(),
28618
+ responded_at: z107.string().nullish(),
28619
+ created_at: z107.string()
28472
28620
  })
28473
28621
  });
28474
28622
 
@@ -29163,28 +29311,28 @@ function registerRuns(program) {
29163
29311
  __name(registerRuns, "registerRuns");
29164
29312
 
29165
29313
  // src/api/sandbox-schemas.ts
29166
- import { z as z107 } from "zod";
29167
- var createSandboxResponseSchema = z107.object({
29168
- sandbox_id: z107.string(),
29169
- expires_at: z107.string()
29314
+ import { z as z108 } from "zod";
29315
+ var createSandboxResponseSchema = z108.object({
29316
+ sandbox_id: z108.string(),
29317
+ expires_at: z108.string()
29170
29318
  });
29171
- var createSandboxUploadUrlResponseSchema = z107.object({
29172
- upload_url: z107.string(),
29173
- path: z107.string(),
29174
- expires_in_seconds: z107.number()
29319
+ var createSandboxUploadUrlResponseSchema = z108.object({
29320
+ upload_url: z108.string(),
29321
+ path: z108.string(),
29322
+ expires_in_seconds: z108.number()
29175
29323
  });
29176
- var sandboxFileSchema = z107.object({
29177
- name: z107.string(),
29178
- path: z107.string(),
29179
- type: z107.enum(["file", "dir"]),
29180
- size_bytes: z107.number()
29324
+ var sandboxFileSchema = z108.object({
29325
+ name: z108.string(),
29326
+ path: z108.string(),
29327
+ type: z108.enum(["file", "dir"]),
29328
+ size_bytes: z108.number()
29181
29329
  });
29182
- var listSandboxFilesResponseSchema = z107.object({
29183
- files: z107.array(sandboxFileSchema)
29330
+ var listSandboxFilesResponseSchema = z108.object({
29331
+ files: z108.array(sandboxFileSchema)
29184
29332
  });
29185
- var uploadSandboxFileResponseSchema = z107.object({
29186
- path: z107.string(),
29187
- size_bytes: z107.number()
29333
+ var uploadSandboxFileResponseSchema = z108.object({
29334
+ path: z108.string(),
29335
+ size_bytes: z108.number()
29188
29336
  });
29189
29337
  var DEFAULT_SANDBOX_FILES_PATH = "/workspace";
29190
29338
 
@@ -29795,13 +29943,13 @@ __name(registerSkillsAssignments, "registerSkillsAssignments");
29795
29943
 
29796
29944
  // src/commands/skills/create.ts
29797
29945
  import { readFileSync as readFileSync5 } from "node:fs";
29798
- import { z as z108 } from "zod";
29799
- var createSkillResponseSchema = z108.object({
29800
- skill: z108.object({
29801
- id: z108.string(),
29802
- name: z108.string(),
29803
- description: z108.string(),
29804
- team_id: z108.string()
29946
+ import { z as z109 } from "zod";
29947
+ var createSkillResponseSchema = z109.object({
29948
+ skill: z109.object({
29949
+ id: z109.string(),
29950
+ name: z109.string(),
29951
+ description: z109.string(),
29952
+ team_id: z109.string()
29805
29953
  })
29806
29954
  });
29807
29955
  function registerSkillsCreate(skills) {
@@ -30165,13 +30313,13 @@ function readExistingContent(source) {
30165
30313
  __name(readExistingContent, "readExistingContent");
30166
30314
 
30167
30315
  // src/commands/skills/install.ts
30168
- import { z as z109 } from "zod";
30169
- var installSkillResponseSchema = z109.object({
30170
- skill: z109.object({
30171
- id: z109.string(),
30172
- name: z109.string(),
30173
- description: z109.string(),
30174
- team_id: z109.string()
30316
+ import { z as z110 } from "zod";
30317
+ var installSkillResponseSchema = z110.object({
30318
+ skill: z110.object({
30319
+ id: z110.string(),
30320
+ name: z110.string(),
30321
+ description: z110.string(),
30322
+ team_id: z110.string()
30175
30323
  })
30176
30324
  });
30177
30325
  function registerSkillsInstall(skills) {
@@ -30361,13 +30509,13 @@ __name(registerSkillsSystem, "registerSkillsSystem");
30361
30509
  // src/commands/skills/upload.ts
30362
30510
  import { readFile as readFile9, stat as stat2 } from "node:fs/promises";
30363
30511
  import { basename as basename3 } from "node:path";
30364
- import { z as z110 } from "zod";
30365
- var uploadSkillResponseSchema = z110.object({
30366
- skill: z110.object({
30367
- id: z110.string(),
30368
- name: z110.string(),
30369
- description: z110.string(),
30370
- team_id: z110.string()
30512
+ import { z as z111 } from "zod";
30513
+ var uploadSkillResponseSchema = z111.object({
30514
+ skill: z111.object({
30515
+ id: z111.string(),
30516
+ name: z111.string(),
30517
+ description: z111.string(),
30518
+ team_id: z111.string()
30371
30519
  })
30372
30520
  });
30373
30521
  function registerSkillsUpload(skills) {
@@ -30740,9 +30888,9 @@ function registerTeamMembers(team) {
30740
30888
  __name(registerTeamMembers, "registerTeamMembers");
30741
30889
 
30742
30890
  // src/commands/team/use.ts
30743
- import { z as z111 } from "zod";
30891
+ import { z as z112 } from "zod";
30744
30892
  var TEAM_ID_SHAPE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
30745
- var teamIdSchema = z111.string().regex(TEAM_ID_SHAPE);
30893
+ var teamIdSchema = z112.string().regex(TEAM_ID_SHAPE);
30746
30894
  function registerTeamUse(team) {
30747
30895
  team.command("use <team-id>").description(
30748
30896
  "Set the default team for the active OAuth profile (overridable per-command via --team or DUVO_TEAM_ID)"
@@ -30828,14 +30976,14 @@ function registerTeam(program) {
30828
30976
  __name(registerTeam, "registerTeam");
30829
30977
 
30830
30978
  // src/commands/teams/list.ts
30831
- import { z as z112 } from "zod";
30832
- var teamApiSchema2 = z112.object({
30833
- id: z112.string(),
30834
- name: z112.string(),
30835
- organization_id: z112.string().nullable()
30979
+ import { z as z113 } from "zod";
30980
+ var teamApiSchema2 = z113.object({
30981
+ id: z113.string(),
30982
+ name: z113.string(),
30983
+ organization_id: z113.string().nullable()
30836
30984
  });
30837
- var listMyTeamsResponseSchema3 = z112.object({
30838
- teams: z112.array(teamApiSchema2)
30985
+ var listMyTeamsResponseSchema3 = z113.object({
30986
+ teams: z113.array(teamApiSchema2)
30839
30987
  });
30840
30988
  function registerTeamsList(teams) {
30841
30989
  teams.command("list", { isDefault: true }).description("List every team you can act on").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function listAction(options) {
@@ -30878,21 +31026,21 @@ function registerTeamsList(teams) {
30878
31026
  __name(registerTeamsList, "registerTeamsList");
30879
31027
 
30880
31028
  // src/commands/teams/org-insights.ts
30881
- import { z as z113 } from "zod";
30882
- var headlineSchema = z113.object({
30883
- total_runs: z113.number(),
30884
- completed_runs: z113.number(),
30885
- failed_runs: z113.number(),
30886
- success_rate: z113.number().nullable(),
30887
- active_agents: z113.number(),
30888
- active_users: z113.number(),
30889
- start_date: z113.string(),
30890
- end_date: z113.string(),
30891
- truncated: z113.boolean(),
30892
- aggregated_teams: z113.number(),
30893
- total_teams: z113.number()
30894
- });
30895
- var orgInsightsHeadlineResponseSchema = z113.object({
31029
+ import { z as z114 } from "zod";
31030
+ var headlineSchema = z114.object({
31031
+ total_runs: z114.number(),
31032
+ completed_runs: z114.number(),
31033
+ failed_runs: z114.number(),
31034
+ success_rate: z114.number().nullable(),
31035
+ active_agents: z114.number(),
31036
+ active_users: z114.number(),
31037
+ start_date: z114.string(),
31038
+ end_date: z114.string(),
31039
+ truncated: z114.boolean(),
31040
+ aggregated_teams: z114.number(),
31041
+ total_teams: z114.number()
31042
+ });
31043
+ var orgInsightsHeadlineResponseSchema = z114.object({
30896
31044
  headline: headlineSchema
30897
31045
  });
30898
31046
  function formatRate(rate) {
@@ -30960,26 +31108,26 @@ function registerTeamsOrgInsights(teams) {
30960
31108
  __name(registerTeamsOrgInsights, "registerTeamsOrgInsights");
30961
31109
 
30962
31110
  // src/commands/teams/org-metrics.ts
30963
- import { z as z114 } from "zod";
30964
- var teamMetricSchema = z114.object({
30965
- team_id: z114.string(),
30966
- team_name: z114.string(),
30967
- is_deleted: z114.boolean(),
30968
- member_count: z114.number(),
30969
- assignment_count: z114.number(),
30970
- scheduled_job_count: z114.number(),
30971
- total_jobs: z114.number(),
30972
- completed_jobs: z114.number(),
30973
- failed_jobs: z114.number(),
30974
- total_runs: z114.number()
30975
- });
30976
- var orgInsightsMetricsResponseSchema = z114.object({
30977
- teams: z114.array(teamMetricSchema),
30978
- start_date: z114.string(),
30979
- end_date: z114.string(),
30980
- truncated: z114.boolean(),
30981
- total_teams: z114.number(),
30982
- org_member_count: z114.number()
31111
+ import { z as z115 } from "zod";
31112
+ var teamMetricSchema = z115.object({
31113
+ team_id: z115.string(),
31114
+ team_name: z115.string(),
31115
+ is_deleted: z115.boolean(),
31116
+ member_count: z115.number(),
31117
+ assignment_count: z115.number(),
31118
+ scheduled_job_count: z115.number(),
31119
+ total_jobs: z115.number(),
31120
+ completed_jobs: z115.number(),
31121
+ failed_jobs: z115.number(),
31122
+ total_runs: z115.number()
31123
+ });
31124
+ var orgInsightsMetricsResponseSchema = z115.object({
31125
+ teams: z115.array(teamMetricSchema),
31126
+ start_date: z115.string(),
31127
+ end_date: z115.string(),
31128
+ truncated: z115.boolean(),
31129
+ total_teams: z115.number(),
31130
+ org_member_count: z115.number()
30983
31131
  });
30984
31132
  function registerTeamsOrgMetrics(teams) {
30985
31133
  teams.command("org-metrics <org-id>").description("Show per-team run metrics across an organization").option("--start-date <date>", "window start (ISO 8601, default 7d ago)").option("--end-date <date>", "window end (ISO 8601, default now)").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function orgMetricsAction(orgId, options) {
@@ -31042,20 +31190,20 @@ ${total_teams} teams${suffix} \xB7 ${org_member_count} org members`
31042
31190
  __name(registerTeamsOrgMetrics, "registerTeamsOrgMetrics");
31043
31191
 
31044
31192
  // src/commands/teams/org-usage.ts
31045
- import { z as z115 } from "zod";
31193
+ import { z as z116 } from "zod";
31046
31194
  var GRANULARITIES = ["day", "week", "month"];
31047
31195
  var DEFAULT_LOOKBACK_MS = 30 * 24 * 60 * 60 * 1e3;
31048
- var bucketSchema = z115.object({
31049
- period: z115.string(),
31050
- total_runs: z115.number(),
31051
- scheduled_runs: z115.number(),
31052
- on_demand_runs: z115.number()
31053
- });
31054
- var usageChartResponseSchema = z115.object({
31055
- buckets: z115.array(bucketSchema),
31056
- granularity: z115.enum(GRANULARITIES),
31057
- truncated: z115.boolean(),
31058
- total_teams: z115.number()
31196
+ var bucketSchema = z116.object({
31197
+ period: z116.string(),
31198
+ total_runs: z116.number(),
31199
+ scheduled_runs: z116.number(),
31200
+ on_demand_runs: z116.number()
31201
+ });
31202
+ var usageChartResponseSchema = z116.object({
31203
+ buckets: z116.array(bucketSchema),
31204
+ granularity: z116.enum(GRANULARITIES),
31205
+ truncated: z116.boolean(),
31206
+ total_teams: z116.number()
31059
31207
  });
31060
31208
  function registerTeamsOrgUsage(teams) {
31061
31209
  teams.command("org-usage <org-id>").description("Show org-wide run volume over time (scheduled vs on-demand)").option("--start-date <date>", "window start (ISO 8601, default 30d ago)").option("--end-date <date>", "window end (ISO 8601, default now)").option(
@@ -31114,17 +31262,17 @@ function registerTeamsOrgUsage(teams) {
31114
31262
  __name(registerTeamsOrgUsage, "registerTeamsOrgUsage");
31115
31263
 
31116
31264
  // src/commands/teams/org.ts
31117
- import { z as z116 } from "zod";
31118
- var orgTeamSchema = z116.object({
31119
- id: z116.string(),
31120
- name: z116.string(),
31121
- userIsMember: z116.boolean(),
31122
- userRole: z116.string().nullable(),
31123
- memberCount: z116.number()
31124
- });
31125
- var listOrgTeamsResponseSchema = z116.object({
31126
- teams: z116.array(orgTeamSchema),
31127
- total: z116.number()
31265
+ import { z as z117 } from "zod";
31266
+ var orgTeamSchema = z117.object({
31267
+ id: z117.string(),
31268
+ name: z117.string(),
31269
+ userIsMember: z117.boolean(),
31270
+ userRole: z117.string().nullable(),
31271
+ memberCount: z117.number()
31272
+ });
31273
+ var listOrgTeamsResponseSchema = z117.object({
31274
+ teams: z117.array(orgTeamSchema),
31275
+ total: z117.number()
31128
31276
  });
31129
31277
  function registerTeamsOrg(teams) {
31130
31278
  teams.command("org <org-id>").description("List all teams in an organization you belong to").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function orgAction(orgId, options) {
@@ -31229,7 +31377,7 @@ __name(resolveActiveTeamId, "resolveActiveTeamId");
31229
31377
  var version = resolveVersion();
31230
31378
  function resolveVersion() {
31231
31379
  if (true) {
31232
- return "1.24.1";
31380
+ return "1.26.0";
31233
31381
  }
31234
31382
  const packageJsonPath = join3(
31235
31383
  dirname3(fileURLToPath2(import.meta.url)),
@@ -31423,7 +31571,7 @@ function isNewerVersion(candidate, current) {
31423
31571
  __name(isNewerVersion, "isNewerVersion");
31424
31572
  function loadPackageMeta() {
31425
31573
  if (true) {
31426
- return { name: "@duvoai/cli", version: "1.24.1" };
31574
+ return { name: "@duvoai/cli", version: "1.26.0" };
31427
31575
  }
31428
31576
  const require2 = createRequire(import.meta.url);
31429
31577
  const raw = require2("../package.json");