@duvoai/cli 1.25.0 → 1.27.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({
@@ -3385,14 +3381,24 @@ var clarityProcessLandscapeStatsSchema = z15.object({
3385
3381
  unsortedProcesses: z15.number(),
3386
3382
  latestUpdatedAt: z15.string().nullable()
3387
3383
  });
3384
+ var landscapeGenerationResultSummarySchema = z15.object({
3385
+ changed: z15.boolean(),
3386
+ createdNodeCount: z15.number().int().nonnegative(),
3387
+ reparentedNodeCount: z15.number().int().nonnegative(),
3388
+ attachedProcessCount: z15.number().int().nonnegative(),
3389
+ unchangedWriteCount: z15.number().int().nonnegative(),
3390
+ failedWriteCount: z15.number().int().nonnegative()
3391
+ });
3388
3392
  var clarityProcessLandscapeGenerationSchema = z15.object({
3389
- eligibleCaptureCount: z15.number(),
3393
+ eligibleCaptureCount: z15.number().int().nonnegative(),
3394
+ eligibleProcessCount: z15.number().int().nonnegative(),
3390
3395
  status: z15.enum(["idle", "starting", "running", "completed", "failed"])
3391
3396
  });
3392
3397
  var generateClarityProcessLandscapeResponseSchema = z15.object({
3393
3398
  started: z15.literal(true),
3394
3399
  generationId: z15.guid(),
3395
- eligibleCaptureCount: z15.number()
3400
+ eligibleCaptureCount: z15.number().int().nonnegative(),
3401
+ eligibleProcessCount: z15.number().int().nonnegative()
3396
3402
  });
3397
3403
  var clarityProcessLandscapeResponseSchema = z15.object({
3398
3404
  nodes: z15.array(clarityProcessLandscapeNodeSchema),
@@ -3561,10 +3567,6 @@ var portfolioIntelligenceStatusSchema = z15.enum(
3561
3567
  PORTFOLIO_INTELLIGENCE_STATUSES
3562
3568
  );
3563
3569
  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
3570
  var operatingModelValueStreamSchema = z15.object({
3569
3571
  name: z15.string().min(1),
3570
3572
  description: z15.string().min(1),
@@ -3665,7 +3667,6 @@ var operatingModelObjectionsSchema = z15.object({
3665
3667
  });
3666
3668
  var operatingModelAnalysisSchema = z15.object({
3667
3669
  executiveSummary: z15.string().min(1),
3668
- designPrinciples: z15.array(operatingModelDesignPrincipleSchema).min(1),
3669
3670
  valueStreams: z15.array(operatingModelValueStreamSchema).min(1),
3670
3671
  organizationAndGovernance: z15.array(operatingModelOrgElementSchema).min(1),
3671
3672
  peopleAndSkills: z15.array(operatingModelPeopleSkillSchema).min(1),
@@ -5020,7 +5021,8 @@ var clarityProcessLandscapeGenerationStatusChangedEventDataSchema = z21.object({
5020
5021
  status: clarityProcessLandscapeGenerationSchema.shape.status.exclude([
5021
5022
  "idle"
5022
5023
  ]),
5023
- error: z21.string().optional()
5024
+ error: z21.string().optional(),
5025
+ result: landscapeGenerationResultSummarySchema.optional()
5024
5026
  });
5025
5027
  var clarityProcessLandscapeRoomPayloadSchema = z21.object({
5026
5028
  organizationId: z21.guid()
@@ -6224,6 +6226,7 @@ __name(makeSentryReporter, "makeSentryReporter");
6224
6226
  __name2(makeSentryReporter, "makeSentryReporter");
6225
6227
  var MAX_BLOCKED_DOMAINS = 1e3;
6226
6228
  var MAX_GUARDRAILS_TEXT_LENGTH = 2e4;
6229
+ var MAX_VPN_BYPASS_DOMAINS = 1e3;
6227
6230
  var DOMAIN_LABEL = /^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/;
6228
6231
  function stripToHost(value) {
6229
6232
  if (/^[a-z][a-z0-9+.-]*:\/\//.test(value)) {
@@ -6354,6 +6357,22 @@ function blockedDomainAgentErrorMessage(args) {
6354
6357
  }
6355
6358
  __name(blockedDomainAgentErrorMessage, "blockedDomainAgentErrorMessage");
6356
6359
  __name2(blockedDomainAgentErrorMessage, "blockedDomainAgentErrorMessage");
6360
+ function domainsToBrowserbaseBypassPattern(domains) {
6361
+ if (domains.length === 0) {
6362
+ return null;
6363
+ }
6364
+ const escaped = domains.map(
6365
+ (domain) => domain.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
6366
+ );
6367
+ return `^([a-zA-Z0-9-]+\\.)*(${escaped.join("|")})$`;
6368
+ }
6369
+ __name(domainsToBrowserbaseBypassPattern, "domainsToBrowserbaseBypassPattern");
6370
+ __name2(domainsToBrowserbaseBypassPattern, "domainsToBrowserbaseBypassPattern");
6371
+ function normalizeShopDomain(input) {
6372
+ return input.trim().toLowerCase().replace(/^https?:\/\//, "").replace(/\/.*$/, "");
6373
+ }
6374
+ __name(normalizeShopDomain, "normalizeShopDomain");
6375
+ __name2(normalizeShopDomain, "normalizeShopDomain");
6357
6376
  var NOTIFICATION_SEVERITIES = [
6358
6377
  "info",
6359
6378
  "warning",
@@ -7414,6 +7433,38 @@ var deleteArtifactShareResponseSchema = z31.object({
7414
7433
  var deleteArtifactResponseSchema = z31.object({
7415
7434
  success: z31.literal(true)
7416
7435
  });
7436
+ var movePulseBodySchema = z31.object({
7437
+ targetTeamId: z31.guid().describe("ID of the destination team the dashboard moves to.")
7438
+ }).strict();
7439
+ var pulseConnectionDecisionSchema = z31.enum([
7440
+ "reuse",
7441
+ "needs_reconnect",
7442
+ "custom_to_rebuild"
7443
+ ]);
7444
+ var pulseConnectionOutcomeSchema = z31.object({
7445
+ integrationType: z31.string(),
7446
+ integrationName: z31.string(),
7447
+ instanceName: z31.string(),
7448
+ decision: pulseConnectionDecisionSchema
7449
+ });
7450
+ var movePulsePlanSchema = z31.object({
7451
+ artifactId: z31.guid(),
7452
+ artifactTitle: z31.string().nullable(),
7453
+ sourceTeamId: z31.guid(),
7454
+ targetTeamId: z31.guid(),
7455
+ // True when the dashboard's creator differs from the mover, so ownership
7456
+ // will be (or was) reassigned to the mover on the target team.
7457
+ ownershipReassigned: z31.boolean(),
7458
+ // True when the dashboard was published (visibility != 'private') and will
7459
+ // be (or was) reset to private on the target team.
7460
+ visibilityReset: z31.boolean(),
7461
+ connections: z31.object({
7462
+ reused: z31.array(pulseConnectionOutcomeSchema),
7463
+ disconnected: z31.array(pulseConnectionOutcomeSchema),
7464
+ customToRebuild: z31.array(pulseConnectionOutcomeSchema)
7465
+ }),
7466
+ applied: z31.boolean()
7467
+ });
7417
7468
  var uploadArtifactThumbnailBodySchema = z31.object({
7418
7469
  image_base64: z31.string().min(1).max(8e6)
7419
7470
  });
@@ -9063,107 +9114,113 @@ var activateAutomationRevisionResponseApiSchema = z50.object({
9063
9114
  ),
9064
9115
  repinned_case_count: z50.int().describe("Number of pending cases re-pinned onto the activated revision")
9065
9116
  });
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({
9117
+ var BROWSER_EGRESS_MODES = [
9118
+ "provider",
9119
+ "direct",
9120
+ "organization-vpn"
9121
+ ];
9122
+ var browserEgressModeSchema = z51.enum(BROWSER_EGRESS_MODES);
9123
+ var DataResidencySchema = z52.enum(["us", "eu", "apac"]);
9124
+ var DataHandlingSchema = z52.enum(["standard", "zdr"]);
9125
+ var browserPageSchema = z53.object({
9126
+ id: z53.string().describe("Page ID"),
9127
+ url: z53.url().describe("Page URL"),
9128
+ faviconUrl: z53.string().describe("Page favicon URL"),
9129
+ title: z53.string().describe("Page title"),
9130
+ debuggerUrl: z53.url().describe("Page-specific debugger URL"),
9131
+ debuggerFullscreenUrl: z53.url().describe("Page-specific full-screen debugger URL")
9132
+ });
9133
+ var browserSessionInfoSchema = z53.object({
9077
9134
  // Session-level URLs (Browser Use provides these, Browserbase also has them)
9078
- wsUrl: z52.url().nullable(),
9079
- liveUrl: z52.url().nullable(),
9135
+ wsUrl: z53.url().nullable(),
9136
+ liveUrl: z53.url().nullable(),
9080
9137
  // 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(
9138
+ pages: z53.array(browserPageSchema)
9139
+ });
9140
+ var browserbaseDebugResponseSchema = z53.object({
9141
+ debuggerFullscreenUrl: z53.url().describe("Session full-screen debugger URL"),
9142
+ debuggerUrl: z53.url().describe("Session debugger URL"),
9143
+ pages: z53.array(browserPageSchema).describe("List of pages in the session"),
9144
+ wsUrl: z53.url().describe("WebSocket URL for the session")
9145
+ });
9146
+ var browserbaseSessionCreateResponseSchema = z53.object({
9147
+ id: z53.string().describe("Session ID"),
9148
+ createdAt: z53.iso.datetime().describe("Session creation timestamp"),
9149
+ updatedAt: z53.iso.datetime().describe("Session last update timestamp"),
9150
+ projectId: z53.string().describe("Project ID"),
9151
+ startedAt: z53.iso.datetime().describe("Session start timestamp"),
9152
+ endedAt: z53.iso.datetime().optional().describe("Session end timestamp"),
9153
+ expiresAt: z53.iso.datetime().describe("Session expiration timestamp"),
9154
+ status: z53.string().describe("Session status"),
9155
+ proxyBytes: z53.number().describe("Proxy bytes used"),
9156
+ avgCpuUsage: z53.number().describe("Average CPU usage"),
9157
+ memoryUsage: z53.number().describe("Memory usage"),
9158
+ keepAlive: z53.boolean().describe("Keep alive flag"),
9159
+ contextId: z53.string().describe("Context ID"),
9160
+ region: z53.string().describe("Region"),
9161
+ userMetadata: z53.record(z53.string(), z53.unknown()).describe("User metadata"),
9162
+ connectUrl: z53.string().describe("Connect URL"),
9163
+ seleniumRemoteUrl: z53.string().describe("Selenium remote URL"),
9164
+ signingKey: z53.string().describe("Signing key")
9165
+ });
9166
+ var getBuildParamsSchema = z54.object({
9167
+ buildId: z54.guid()
9168
+ });
9169
+ var listBuildsParamsSchema = z54.object({
9170
+ copilotId: z54.guid()
9171
+ });
9172
+ var updateBuildBodySchema = z54.object({
9173
+ config: z54.record(z54.string(), z54.any()).optional().describe("Build configuration object"),
9174
+ handoverTargetIds: z54.array(z54.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
9175
+ revision_name: z54.string().trim().min(1).max(80).nullable().optional().describe(
9119
9176
  "Optional user-defined name for this revision. Pass null to clear."
9120
9177
  ),
9121
- revision_description: z53.string().trim().max(500).nullable().optional().describe(
9178
+ revision_description: z54.string().trim().max(500).nullable().optional().describe(
9122
9179
  "Optional user-defined description for this revision. Pass null to clear."
9123
9180
  )
9124
9181
  });
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({
9182
+ var createBuildBodySchema = z54.object({
9183
+ copilot_id: z54.guid().describe("Agent ID"),
9184
+ name: z54.string().describe("Build name"),
9185
+ config: z54.record(z54.string(), z54.any()).optional().describe("Build configuration object"),
9186
+ handoverTargetIds: z54.array(z54.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
9187
+ source_build_id: z54.guid().optional().describe("Build ID to copy integrations and queue links from")
9188
+ });
9189
+ var buildResponseSchema = z54.object({
9190
+ build_id: z54.string().describe("Build ID"),
9191
+ name: z54.string().describe("Build name"),
9192
+ config: z54.record(z54.string(), z54.any()).nullable().describe("Build configuration"),
9193
+ copilot_id: z54.string().describe("Associated copilot ID"),
9194
+ status: z54.string().describe("Build status"),
9195
+ created_at: z54.coerce.date().describe("Creation timestamp"),
9196
+ updated_at: z54.coerce.date().nullable().describe("Last update timestamp"),
9197
+ revision_number: z54.number().nullable().describe("Revision number"),
9198
+ revision_name: z54.string().nullable().optional().describe("User-defined name for this revision"),
9199
+ revision_description: z54.string().nullable().optional().describe("User-defined description for this revision"),
9200
+ parent_build_id: z54.string().nullable().describe("Parent build ID"),
9201
+ created_by: z54.string().nullable().describe("User who created this build"),
9202
+ created_by_name: z54.string().nullable().optional().describe("Display name of the user who created this build")
9203
+ });
9204
+ var listBuildsResponseSchema = z54.array(buildResponseSchema);
9205
+ var buildResponseApiSchema = z54.object({
9149
9206
  build: buildApiSchema
9150
9207
  });
9151
- var buildsListApiSchema = z53.object({
9152
- builds: z53.array(buildApiSchema),
9153
- total: z53.int(),
9154
- limit: z53.int(),
9155
- offset: z53.int()
9208
+ var buildsListApiSchema = z54.object({
9209
+ builds: z54.array(buildApiSchema),
9210
+ total: z54.int(),
9211
+ limit: z54.int(),
9212
+ offset: z54.int()
9156
9213
  });
9157
- var createBuildResponseApiSchema = z53.object({
9214
+ var createBuildResponseApiSchema = z54.object({
9158
9215
  build: buildApiSchema,
9159
- agent: z53.object({
9160
- id: z53.guid()
9216
+ agent: z54.object({
9217
+ id: z54.guid()
9161
9218
  })
9162
9219
  });
9163
- var builderRunGenerateResponseSchema = z53.object({
9164
- status: z53.literal("generating"),
9165
- builderRunId: z53.string(),
9166
- buildId: z53.string()
9220
+ var builderRunGenerateResponseSchema = z54.object({
9221
+ status: z54.literal("generating"),
9222
+ builderRunId: z54.string(),
9223
+ buildId: z54.string()
9167
9224
  });
9168
9225
  var BUILDER_RUN_STATUSES = [
9169
9226
  "not_started",
@@ -9174,252 +9231,252 @@ var BUILDER_RUN_STATUSES = [
9174
9231
  "waiting_for_input",
9175
9232
  "waiting_for_approve"
9176
9233
  ];
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(),
9234
+ var builderRunStatusSchema = z54.object({
9235
+ id: z54.string(),
9236
+ status: z54.enum(BUILDER_RUN_STATUSES),
9237
+ build_id: z54.string(),
9238
+ started_at: z54.string().nullable(),
9239
+ completed_at: z54.string().nullable(),
9183
9240
  checkpoint_config: StoredAgentConfigSchema.nullable(),
9184
9241
  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(),
9242
+ schedule_suggested: z54.boolean().optional()
9243
+ });
9244
+ var filterValueSchema = z55.object({
9245
+ value: z55.string().min(1),
9246
+ name: z55.string().min(1)
9247
+ });
9248
+ var filterCategorySchema = z55.object({
9249
+ key: z55.string(),
9250
+ name: z55.string().min(1),
9251
+ selectionMode: z55.enum(["single", "multi"]),
9252
+ values: z55.array(filterValueSchema)
9253
+ });
9254
+ var caseFiltersResponseSchema = z55.object({
9255
+ filters: z55.array(filterCategorySchema)
9256
+ });
9257
+ var caseQueueFolderResponseSchema = z56.object({
9258
+ id: z56.string(),
9259
+ name: z56.string(),
9260
+ team_id: z56.string(),
9261
+ parent_folder_id: z56.string().nullable(),
9262
+ created_at: z56.string(),
9263
+ updated_at: z56.string()
9264
+ });
9265
+ var caseQueueFoldersListResponseSchema = z56.object({
9266
+ folders: z56.array(caseQueueFolderResponseSchema)
9267
+ });
9268
+ var createCaseQueueFolderRequestSchema = z56.object({
9269
+ name: z56.string().min(1).max(100),
9270
+ parent_folder_id: z56.guid().nullable().optional()
9271
+ });
9272
+ var updateCaseQueueFolderRequestSchema = z56.object({
9273
+ name: z56.string().min(1).max(100).optional(),
9274
+ parent_folder_id: z56.guid().nullable().optional()
9275
+ });
9276
+ var moveQueuesToFolderRequestSchema = z56.object({
9277
+ queue_ids: z56.array(z56.guid()).min(1),
9278
+ folder_id: z56.guid().nullable()
9279
+ });
9280
+ var caseQueueLabelSchema = z57.object({
9281
+ id: z57.guid(),
9282
+ key: z57.string(),
9226
9283
  // 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)
9284
+ value: z57.string().min(1),
9285
+ color_hue: z57.int().min(0).max(360)
9229
9286
  });
9230
- var caseLabelsListResponseSchema = z56.object({
9231
- labels: z56.array(caseQueueLabelSchema)
9287
+ var caseLabelsListResponseSchema = z57.object({
9288
+ labels: z57.array(caseQueueLabelSchema)
9232
9289
  });
9233
- var caseLabelAssignInputSchema = z56.object({
9234
- labels: z56.array(
9235
- z56.object({
9236
- key: z56.string().optional().default(""),
9237
- value: z56.string().min(1)
9290
+ var caseLabelAssignInputSchema = z57.object({
9291
+ labels: z57.array(
9292
+ z57.object({
9293
+ key: z57.string().optional().default(""),
9294
+ value: z57.string().min(1)
9238
9295
  })
9239
9296
  ).min(1).max(50)
9240
9297
  });
9241
- var caseLabelAssignResponseSchema = z56.object({
9242
- labels: z56.array(caseQueueLabelSchema)
9298
+ var caseLabelAssignResponseSchema = z57.object({
9299
+ labels: z57.array(caseQueueLabelSchema)
9243
9300
  });
9244
- var caseLabelUpdateInputSchema = z56.object({
9301
+ var caseLabelUpdateInputSchema = z57.object({
9245
9302
  // key is a partial-update field: omit to leave the existing key unchanged.
9246
9303
  // Do NOT add `.default("")` — a missing key must not silently relocate the
9247
9304
  // label into the empty-key ("Labels") bucket when the caller only wants to
9248
9305
  // 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()
9306
+ key: z57.string().optional(),
9307
+ value: z57.string().min(1),
9308
+ color_hue: z57.int().min(0).max(360).optional()
9252
9309
  });
9253
- var caseLabelUpdateResponseSchema = z56.object({
9310
+ var caseLabelUpdateResponseSchema = z57.object({
9254
9311
  label: caseQueueLabelSchema
9255
9312
  });
9256
- var caseLabelUnlinkInputSchema = z56.object({
9257
- label_ids: z56.array(z56.guid()).min(1)
9313
+ var caseLabelUnlinkInputSchema = z57.object({
9314
+ label_ids: z57.array(z57.guid()).min(1)
9258
9315
  });
9259
- var caseLabelUnlinkResponseSchema = z56.object({
9260
- success: z56.boolean()
9316
+ var caseLabelUnlinkResponseSchema = z57.object({
9317
+ success: z57.boolean()
9261
9318
  });
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()
9319
+ var caseLabelCreateInputSchema = z57.object({
9320
+ key: z57.string().optional().default(""),
9321
+ value: z57.string().min(1),
9322
+ color_hue: z57.int().min(0).max(360).optional()
9266
9323
  });
9267
- var caseLabelCreateResponseSchema = z56.object({
9324
+ var caseLabelCreateResponseSchema = z57.object({
9268
9325
  label: caseQueueLabelSchema.extend({
9269
- case_count: z56.int().min(0)
9326
+ case_count: z57.int().min(0)
9270
9327
  })
9271
9328
  });
9272
9329
  var caseQueueLabelWithCountSchema = caseQueueLabelSchema.extend({
9273
- case_count: z56.int().min(0)
9330
+ case_count: z57.int().min(0)
9274
9331
  });
9275
- var caseLabelsWithCountsListResponseSchema = z56.object({
9276
- labels: z56.array(caseQueueLabelWithCountSchema)
9332
+ var caseLabelsWithCountsListResponseSchema = z57.object({
9333
+ labels: z57.array(caseQueueLabelWithCountSchema)
9277
9334
  });
9278
9335
  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({
9336
+ var settableTriggerConcurrencySchema = z58.literal(SEQUENTIAL_TRIGGER_CONCURRENCY).nullable();
9337
+ var caseTriggerApiSchema = z58.object({
9338
+ id: z58.string(),
9339
+ agent_id: z58.string(),
9340
+ case_queue_id: z58.string(),
9341
+ case_queue_name: z58.string(),
9342
+ user_id: z58.string(),
9343
+ enabled: z58.boolean(),
9344
+ concurrency: z58.int().positive().nullable(),
9345
+ created_at: z58.string(),
9346
+ updated_at: z58.string(),
9347
+ creator_display_name: z58.string().nullable(),
9348
+ can_disable: z58.boolean(),
9349
+ has_conflict: z58.boolean(),
9350
+ conflicting_agents: z58.array(conflictingAgentSchema)
9351
+ });
9352
+ var caseTriggerResponseSchema = z58.object({
9296
9353
  case_trigger: caseTriggerApiSchema
9297
9354
  });
9298
- var caseTriggersListResponseSchema = z57.object({
9299
- case_triggers: z57.array(caseTriggerApiSchema)
9355
+ var caseTriggersListResponseSchema = z58.object({
9356
+ case_triggers: z58.array(caseTriggerApiSchema)
9300
9357
  });
9301
- var deleteCaseTriggerResponseSchema = z57.object({
9302
- success: z57.literal(true)
9358
+ var deleteCaseTriggerResponseSchema = z58.object({
9359
+ success: z58.literal(true)
9303
9360
  });
9304
- var caseTriggerConflictPreviewResponseSchema = z57.object({
9305
- has_conflict: z57.boolean(),
9306
- conflicting_agents: z57.array(conflictingAgentSchema)
9361
+ var caseTriggerConflictPreviewResponseSchema = z58.object({
9362
+ has_conflict: z58.boolean(),
9363
+ conflicting_agents: z58.array(conflictingAgentSchema)
9307
9364
  });
9308
- var integrationConfigMinSchema = z57.object({
9309
- id: z57.string(),
9310
- integration_id: z57.guid().nullable(),
9311
- integration_type: z57.string()
9365
+ var integrationConfigMinSchema = z58.object({
9366
+ id: z58.string(),
9367
+ integration_id: z58.guid().nullable(),
9368
+ integration_type: z58.string()
9312
9369
  });
9313
- var integrationConfigsResponseSchema = z57.object({
9314
- integrations: z57.array(integrationConfigMinSchema)
9370
+ var integrationConfigsResponseSchema = z58.object({
9371
+ integrations: z58.array(integrationConfigMinSchema)
9315
9372
  });
9316
- var caseQueueMinSchema = z57.object({
9317
- id: z57.string(),
9318
- name: z57.string()
9373
+ var caseQueueMinSchema = z58.object({
9374
+ id: z58.string(),
9375
+ name: z58.string()
9319
9376
  });
9320
- var caseQueuesForSlotResponseSchema = z57.object({
9321
- queues: z57.array(caseQueueMinSchema)
9377
+ var caseQueuesForSlotResponseSchema = z58.object({
9378
+ queues: z58.array(caseQueueMinSchema)
9322
9379
  });
9323
9380
  var APPROVAL_DECISION = {
9324
9381
  APPROVED: "approved",
9325
9382
  REJECTED: "rejected"
9326
9383
  };
9327
- var approvalDecisionSchema = z58.enum([
9384
+ var approvalDecisionSchema = z59.enum([
9328
9385
  APPROVAL_DECISION.APPROVED,
9329
9386
  APPROVAL_DECISION.REJECTED
9330
9387
  ]);
9331
9388
  var HUMAN_REQUEST_TITLE_MAX = 200;
9332
9389
  var HUMAN_REQUEST_PROMPT_MAX = 2e3;
9333
9390
  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(),
9391
+ var humanRequestBatchRowSchema = z59.object({
9392
+ id: z59.string().uuid(),
9393
+ assignee_user_id: z59.string().uuid(),
9394
+ assignee_name: z59.string().nullable(),
9395
+ assignee_email: z59.string().nullable(),
9339
9396
  /**
9340
9397
  * The free-text ask the agent posed to THIS specific approver. Each row
9341
9398
  * carries its own prompt — the multi-approver flow does not assume a
9342
9399
  * single shared question across approvers.
9343
9400
  */
9344
- prompt: z58.string(),
9401
+ prompt: z59.string(),
9345
9402
  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([
9403
+ responded_at: z59.string().nullable(),
9404
+ responded_by_user_id: z59.string().uuid().nullable(),
9405
+ responded_by_name: z59.string().nullable(),
9406
+ responded_by_email: z59.string().nullable(),
9407
+ cancelled_at: z59.string().nullable(),
9408
+ cancellation_reason: z59.string().nullable()
9409
+ });
9410
+ var approvalBatchSchema = z59.object({
9411
+ id: z59.string().uuid(),
9412
+ case_queue_item_id: z59.string().uuid(),
9413
+ agent_run_id: z59.string().uuid(),
9414
+ title: z59.string(),
9415
+ created_at: z59.string(),
9416
+ resolved_at: z59.string().nullable(),
9417
+ cancelled_at: z59.string().nullable(),
9418
+ cancellation_reason: z59.string().nullable(),
9419
+ rows: z59.array(humanRequestBatchRowSchema)
9420
+ });
9421
+ var approvalRequestInputSchema = z59.object({
9422
+ approverUserId: z59.string().uuid(),
9423
+ prompt: z59.string().trim().min(1).max(HUMAN_REQUEST_PROMPT_MAX)
9424
+ });
9425
+ var createHumanRequestBatchBodySchema = z59.object({
9426
+ agentRunId: z59.string().uuid(),
9427
+ title: z59.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
9428
+ requests: z59.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
9429
+ });
9430
+ var createHumanRequestBatchResponseSchema = z59.object({
9431
+ batchId: z59.string().uuid(),
9432
+ createdAt: z59.string(),
9433
+ humanRequestIds: z59.array(z59.string().uuid())
9434
+ });
9435
+ var requestCaseApprovalsToolInputSchema = z59.object({
9436
+ title: z59.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
9437
+ requests: z59.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
9438
+ });
9439
+ var requestCaseApprovalsBatchStatusSchema = z59.enum([
9383
9440
  "resolved",
9384
9441
  "cancelled"
9385
9442
  ]);
9386
- var requestCaseApprovalsDecisionEntrySchema = z58.object({
9387
- assigneeUserId: z58.string().uuid(),
9443
+ var requestCaseApprovalsDecisionEntrySchema = z59.object({
9444
+ assigneeUserId: z59.string().uuid(),
9388
9445
  decision: approvalDecisionSchema,
9389
- respondedAt: z58.string(),
9390
- respondedByUserId: z58.string().uuid()
9446
+ respondedAt: z59.string(),
9447
+ respondedByUserId: z59.string().uuid()
9391
9448
  });
9392
- var requestCaseApprovalsToolOutputSchema = z58.object({
9449
+ var requestCaseApprovalsToolOutputSchema = z59.object({
9393
9450
  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()
9451
+ decisions: z59.array(requestCaseApprovalsDecisionEntrySchema)
9452
+ });
9453
+ var humanRequestContextSchema = z59.discriminatedUnion("kind", [
9454
+ z59.object({
9455
+ kind: z59.literal("run"),
9456
+ runId: z59.string().uuid(),
9457
+ buildId: z59.string().uuid(),
9458
+ agentId: z59.string().uuid(),
9459
+ agentName: z59.string().nullable()
9403
9460
  }),
9404
- z58.object({
9405
- kind: z58.literal("case"),
9406
- queueId: z58.string().uuid(),
9407
- caseId: z58.string().uuid(),
9408
- caseTitle: z58.string()
9461
+ z59.object({
9462
+ kind: z59.literal("case"),
9463
+ queueId: z59.string().uuid(),
9464
+ caseId: z59.string().uuid(),
9465
+ caseTitle: z59.string()
9409
9466
  })
9410
9467
  ]);
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"]),
9468
+ var caseQueueItemSchema = z60.object({
9469
+ id: z60.guid(),
9470
+ queue_id: z60.guid(),
9471
+ title: z60.string(),
9472
+ data: z60.string(),
9473
+ status: z60.enum(["pending", "completed", "failed"]),
9417
9474
  /**
9418
9475
  * Derived display bucket combining the settlement status with ownership,
9419
9476
  * open HITL tokens, and scheduling. See CASE_DISPLAY_STATUS in
9420
9477
  * `constants/case-queue.ts` for the derivation rules.
9421
9478
  */
9422
- display_status: z59.enum([
9479
+ display_status: z60.enum([
9423
9480
  "pending",
9424
9481
  "in_progress",
9425
9482
  "needs_input",
@@ -9427,30 +9484,30 @@ var caseQueueItemSchema = z59.object({
9427
9484
  "completed",
9428
9485
  "failed"
9429
9486
  ]),
9430
- claimed_at: z59.string().nullable(),
9431
- claimed_by_run_id: z59.string().nullable(),
9432
- completed_at: z59.string().nullable(),
9487
+ claimed_at: z60.string().nullable(),
9488
+ claimed_by_run_id: z60.string().nullable(),
9489
+ completed_at: z60.string().nullable(),
9433
9490
  /** 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(),
9491
+ postponed_to: z60.string().nullable(),
9492
+ created_at: z60.string(),
9493
+ updated_at: z60.string(),
9494
+ created_by_user_id: z60.guid().nullable(),
9495
+ created_by_user_name: z60.string().nullable(),
9496
+ created_by_user_email: z60.string().nullable(),
9440
9497
  /** Status of the associated agent run (running, waiting, etc.) - null if no active run */
9441
- agent_run_status: z59.string().nullable(),
9498
+ agent_run_status: z60.string().nullable(),
9442
9499
  /** User ID of the owner of the active agent run - null if no active run */
9443
- agent_run_user_id: z59.guid().nullable(),
9500
+ agent_run_user_id: z60.guid().nullable(),
9444
9501
  /** ID of the pending human request for cases waiting for input */
9445
- pending_human_request_id: z59.guid().nullable(),
9502
+ pending_human_request_id: z60.guid().nullable(),
9446
9503
  /** 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(),
9504
+ pending_approval_batch_id: z60.guid().nullable(),
9448
9505
  /** 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()),
9506
+ pending_approval_assignee_user_ids: z60.array(z60.guid()),
9450
9507
  /** Count of resolved `human_request` approval rows on this case with `decision = 'approved'`. */
9451
- approval_approved_count: z59.int().nonnegative(),
9508
+ approval_approved_count: z60.int().nonnegative(),
9452
9509
  /** Count of resolved `human_request` approval rows on this case with `decision = 'rejected'`. */
9453
- approval_rejected_count: z59.int().nonnegative(),
9510
+ approval_rejected_count: z60.int().nonnegative(),
9454
9511
  /**
9455
9512
  * Whole-case evaluation summary for the "Found issues" column, mirroring a
9456
9513
  * Run's `eval_summaries`. Derived from the latest `case_evaluation` output:
@@ -9460,59 +9517,59 @@ var caseQueueItemSchema = z59.object({
9460
9517
  */
9461
9518
  eval_summary: evalSummarySchema.nullable().optional(),
9462
9519
  /** 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()
9520
+ search_match_data_snippet: z60.object({
9521
+ before: z60.string(),
9522
+ match: z60.string(),
9523
+ after: z60.string()
9467
9524
  }).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(),
9525
+ labels: z60.array(caseQueueLabelSchema)
9526
+ });
9527
+ var caseQueueItemEventSchema = z60.object({
9528
+ id: z60.guid(),
9529
+ case_queue_item_id: z60.guid(),
9530
+ agent_run_id: z60.guid().nullable(),
9531
+ human_request_id: z60.guid().nullable(),
9532
+ type: z60.string(),
9533
+ reason: z60.string().nullable(),
9534
+ created_at: z60.string(),
9535
+ agent_id: z60.guid().nullable(),
9536
+ agent_name: z60.string().nullable(),
9480
9537
  /**
9481
9538
  * Owner of the agent run referenced by this event (joined from
9482
9539
  * `agent_run.user_id`). The frontend mirrors the backend
9483
9540
  * `assertCanAccessRun` gate against this id + the viewer's team role to
9484
9541
  * decide whether the row should expose a click affordance.
9485
9542
  */
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(
9543
+ user_id: z60.guid().nullable(),
9544
+ user_name: z60.string().nullable(),
9545
+ user_email: z60.string().nullable(),
9546
+ human_request_title: z60.string().nullable()
9547
+ });
9548
+ var casesListResponseSchema = z60.object({
9549
+ cases: z60.array(caseQueueItemSchema),
9550
+ total: z60.number(),
9551
+ limit: z60.int(),
9552
+ offset: z60.int()
9553
+ });
9554
+ var caseCreateInputSchema = z60.object({
9555
+ title: z60.string().min(1).max(500).describe(
9499
9556
  "Short title for the case (max 500 characters). Put long context in `data`."
9500
9557
  ),
9501
- data: z59.string().optional().describe(
9558
+ data: z60.string().optional().describe(
9502
9559
  "Additional data for the case. Free-form text or JSON; Agents receive this on claim."
9503
9560
  ),
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).")
9561
+ labels: z60.array(
9562
+ z60.object({
9563
+ key: z60.string().optional().default("").describe("Label key (omit for a simple tag)."),
9564
+ value: z60.string().min(1).describe("Label value (required).")
9508
9565
  })
9509
9566
  ).max(50).optional().describe(
9510
9567
  "Optional labels to assign to the case at creation. Labels are created on the queue if they don't already exist."
9511
9568
  )
9512
9569
  });
9513
- var caseCreateRequestSchema = z59.object({
9570
+ var caseCreateRequestSchema = z60.object({
9514
9571
  case: caseCreateInputSchema.optional(),
9515
- cases: z59.array(caseCreateInputSchema).min(1).max(100).optional()
9572
+ cases: z60.array(caseCreateInputSchema).min(1).max(100).optional()
9516
9573
  }).superRefine((val, ctx) => {
9517
9574
  const hasCase = val.case !== void 0;
9518
9575
  const hasCases = val.cases !== void 0;
@@ -9530,28 +9587,28 @@ var caseCreateRequestSchema = z59.object({
9530
9587
  });
9531
9588
  }
9532
9589
  });
9533
- var caseCreateResponseSchema = z59.object({
9534
- added_cases: z59.array(caseQueueItemSchema)
9590
+ var caseCreateResponseSchema = z60.object({
9591
+ added_cases: z60.array(caseQueueItemSchema)
9535
9592
  });
9536
- var casesStatsSchema = z59.object({
9537
- total: z59.number(),
9593
+ var casesStatsSchema = z60.object({
9594
+ total: z60.number(),
9538
9595
  /** Pending, unowned, not postponed — idle and claimable */
9539
- pending: z59.number(),
9596
+ pending: z60.number(),
9540
9597
  /** "In Progress": pending cases owned by a run with no open HITL token */
9541
- claimed: z59.number(),
9598
+ claimed: z60.number(),
9542
9599
  /** "Needs Input": pending cases whose owning run has an open HITL token */
9543
- waiting: z59.number(),
9600
+ waiting: z60.number(),
9544
9601
  /** Pending, unowned cases postponed for later */
9545
- postponed: z59.number(),
9546
- completed: z59.number(),
9547
- failed: z59.number()
9602
+ postponed: z60.number(),
9603
+ completed: z60.number(),
9604
+ failed: z60.number()
9548
9605
  });
9549
- var casesStatsResponseSchema = z59.object({
9606
+ var casesStatsResponseSchema = z60.object({
9550
9607
  stats: casesStatsSchema
9551
9608
  });
9552
- var caseDetailResponseSchema = z59.object({
9609
+ var caseDetailResponseSchema = z60.object({
9553
9610
  case: caseQueueItemSchema,
9554
- events: z59.array(caseQueueItemEventSchema),
9611
+ events: z60.array(caseQueueItemEventSchema),
9555
9612
  /**
9556
9613
  * Every approval batch ever created on this case, newest first. Each
9557
9614
  * batch carries one child row per named approver (with their decision
@@ -9559,21 +9616,21 @@ var caseDetailResponseSchema = z59.object({
9559
9616
  * grouped per batch so the case-level approval history reads inline.
9560
9617
  * Empty array when no batch has ever been created on the case.
9561
9618
  */
9562
- approvalBatches: z59.array(approvalBatchSchema)
9619
+ approvalBatches: z60.array(approvalBatchSchema)
9563
9620
  });
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(),
9621
+ var caseJobSummarySchema = z60.object({
9622
+ id: z60.string().uuid(),
9623
+ case_queue_item_id: z60.string().uuid(),
9624
+ agent_id: z60.string().uuid(),
9625
+ agent_name: z60.string(),
9569
9626
  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(),
9627
+ source: z60.string().nullable(),
9628
+ created_at: z60.string(),
9629
+ started_at: z60.string().nullable(),
9630
+ completed_at: z60.string().nullable(),
9631
+ claimed_at: z60.string(),
9632
+ has_pending_human_request: z60.boolean(),
9633
+ pending_human_request_title: z60.string().nullable(),
9577
9634
  evaluation: evalSummarySchema,
9578
9635
  /**
9579
9636
  * Owner of the agent run (from `agent_run.user_id`). The frontend mirrors
@@ -9581,228 +9638,228 @@ var caseJobSummarySchema = z59.object({
9581
9638
  * team role to decide whether the card is interactive (live messages,
9582
9639
  * HITL affordances, drawer link).
9583
9640
  */
9584
- user_id: z59.guid().nullable(),
9641
+ user_id: z60.guid().nullable(),
9585
9642
  /**
9586
9643
  * Display name of the user who triggered the run, joined from `profiles`.
9587
9644
  * Falls back to `user_email` for the in-card user pill when null.
9588
9645
  */
9589
- user_name: z59.string().nullable(),
9590
- user_email: z59.string().nullable()
9646
+ user_name: z60.string().nullable(),
9647
+ user_email: z60.string().nullable()
9591
9648
  });
9592
- var caseJobsResponseSchema = z59.object({
9593
- runs: z59.array(caseJobSummarySchema)
9649
+ var caseJobsResponseSchema = z60.object({
9650
+ runs: z60.array(caseJobSummarySchema)
9594
9651
  });
9595
- var caseJobRecentMessagesResponseSchema = z59.object({
9596
- messages: z59.array(agentMessageWithCreatedAtSchema)
9652
+ var caseJobRecentMessagesResponseSchema = z60.object({
9653
+ messages: z60.array(agentMessageWithCreatedAtSchema)
9597
9654
  });
9598
- var adjacentCasesResponseSchema = z59.object({
9599
- previousId: z59.guid().nullable(),
9600
- nextId: z59.guid().nullable(),
9601
- position: z59.number(),
9602
- total: z59.number()
9655
+ var adjacentCasesResponseSchema = z60.object({
9656
+ previousId: z60.guid().nullable(),
9657
+ nextId: z60.guid().nullable(),
9658
+ position: z60.number(),
9659
+ total: z60.number()
9603
9660
  });
9604
- var caseDeleteResponseSchema = z59.object({
9605
- success: z59.boolean(),
9606
- interruptedRunIds: z59.array(z59.guid())
9661
+ var caseDeleteResponseSchema = z60.object({
9662
+ success: z60.boolean(),
9663
+ interruptedRunIds: z60.array(z60.guid())
9607
9664
  });
9608
- var caseBulkDeleteResponseSchema = z59.object({
9609
- deletedCount: z59.number(),
9610
- interruptedRunIds: z59.array(z59.guid())
9665
+ var caseBulkDeleteResponseSchema = z60.object({
9666
+ deletedCount: z60.number(),
9667
+ interruptedRunIds: z60.array(z60.guid())
9611
9668
  });
9612
- var caseBulkReprocessResponseSchema = z59.object({
9613
- reprocessedCount: z59.number(),
9614
- skippedCount: z59.number(),
9669
+ var caseBulkReprocessResponseSchema = z60.object({
9670
+ reprocessedCount: z60.number(),
9671
+ skippedCount: z60.number(),
9615
9672
  // Deprecated aliases of `reprocessedCount`, both equal to it. Returned so
9616
9673
  // clients 308-redirected here from the deprecated `bulk-delegate` /
9617
9674
  // `bulk-retry` endpoints still find their original field. Optional +
9618
9675
  // `deprecated` so consumers don't couple to them; removed with those aliases
9619
9676
  // at the 2026-06-10 sunset.
9620
- delegatedCount: z59.number().meta({
9677
+ delegatedCount: z60.number().meta({
9621
9678
  deprecated: true,
9622
9679
  description: "Deprecated alias of reprocessedCount, kept for clients redirected from bulk-delegate. Removed on 2026-06-10."
9623
9680
  }).optional(),
9624
- retriedCount: z59.number().meta({
9681
+ retriedCount: z60.number().meta({
9625
9682
  deprecated: true,
9626
9683
  description: "Deprecated alias of reprocessedCount, kept for clients redirected from bulk-retry. Removed on 2026-06-10."
9627
9684
  }).optional()
9628
9685
  });
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(),
9686
+ var caseBulkStatusUpdateResponseSchema = z60.object({
9687
+ updatedCount: z60.number(),
9688
+ skippedCount: z60.number(),
9689
+ interruptedRunIds: z60.array(z60.guid())
9690
+ });
9691
+ var deleteQueueResponseSchema = z60.object({
9692
+ success: z60.boolean(),
9693
+ deleted_case_count: z60.number(),
9694
+ interrupted_run_ids: z60.array(z60.guid())
9695
+ });
9696
+ var caseClearQueueResponseSchema = z60.object({
9697
+ success: z60.boolean(),
9698
+ deletedCount: z60.number(),
9699
+ interruptedRunIds: z60.array(z60.guid())
9700
+ });
9701
+ var caseQueueSchema = z60.object({
9702
+ id: z60.guid(),
9703
+ name: z60.string(),
9704
+ description: z60.string().nullable(),
9705
+ folder_id: z60.guid().nullable(),
9649
9706
  // Optional (additive) so existing CaseQueue consumers and fixtures across the
9650
9707
  // 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(),
9708
+ automation_id: z60.guid().nullable().optional(),
9709
+ created_at: z60.string(),
9653
9710
  /**
9654
9711
  * True when at least one case in this queue has ever had an approval
9655
9712
  * batch (open, resolved, or cancelled). The frontend uses this to relabel
9656
9713
  * the "Needs input" filter to "Needs input/approval" and to show the
9657
9714
  * per-case approvals column.
9658
9715
  */
9659
- has_approvals: z59.boolean()
9716
+ has_approvals: z60.boolean()
9660
9717
  });
9661
- var caseQueuesResponseSchema = z59.object({
9662
- queues: z59.array(caseQueueSchema),
9663
- total: z59.number(),
9664
- limit: z59.number(),
9665
- offset: z59.number()
9718
+ var caseQueuesResponseSchema = z60.object({
9719
+ queues: z60.array(caseQueueSchema),
9720
+ total: z60.number(),
9721
+ limit: z60.number(),
9722
+ offset: z60.number()
9666
9723
  });
9667
- var caseGetQueueResponseSchema = z59.object({
9724
+ var caseGetQueueResponseSchema = z60.object({
9668
9725
  queue: caseQueueSchema
9669
9726
  });
9670
- var caseCreateQueueResponseSchema = z59.object({
9727
+ var caseCreateQueueResponseSchema = z60.object({
9671
9728
  queue: caseQueueSchema
9672
9729
  });
9673
- var caseUpdateQueueResponseSchema = z59.object({
9730
+ var caseUpdateQueueResponseSchema = z60.object({
9674
9731
  queue: caseQueueSchema
9675
9732
  });
9676
- var caseQueueAgentProblemSchema = z59.enum([
9733
+ var caseQueueAgentProblemSchema = z60.enum([
9677
9734
  "multiple_triggers",
9678
9735
  "producer_consumer_mix"
9679
9736
  ]);
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),
9737
+ var queueAgentProducerSchema = z60.object({
9738
+ agent_id: z60.guid(),
9739
+ agent_name: z60.string(),
9740
+ case_trigger_enabled: z60.boolean(),
9741
+ case_trigger_queue_name: z60.string().nullable(),
9742
+ problems: z60.array(caseQueueAgentProblemSchema)
9743
+ });
9744
+ var queueAgentConsumerSchema = z60.object({
9745
+ agent_id: z60.guid(),
9746
+ agent_name: z60.string(),
9747
+ case_trigger_enabled: z60.boolean(),
9748
+ is_handover_target: z60.boolean(),
9749
+ problems: z60.array(caseQueueAgentProblemSchema),
9693
9750
  /**
9694
9751
  * Max concurrent Jobs this consumer's enabled trigger allows, after the
9695
9752
  * platform cap is applied. Populated only by the single-queue agents
9696
9753
  * endpoint; omitted when the consumer has no enabled trigger.
9697
9754
  */
9698
- concurrency_limit: z59.int().nonnegative().optional(),
9755
+ concurrency_limit: z60.int().nonnegative().optional(),
9699
9756
  /**
9700
9757
  * True when this consumer's active Jobs have reached `concurrency_limit`, so
9701
9758
  * the dispatcher pauses and new cases stay pending until a Job finishes.
9702
9759
  * Populated only by the single-queue agents endpoint.
9703
9760
  */
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()
9761
+ at_concurrency_limit: z60.boolean().optional()
9762
+ });
9763
+ var queueAgentsResponseSchema = z60.object({
9764
+ queue_name: z60.string(),
9765
+ producers: z60.array(queueAgentProducerSchema),
9766
+ consumers: z60.array(queueAgentConsumerSchema)
9767
+ });
9768
+ var exportCasesResponseSchema = z60.object({
9769
+ version: z60.number(),
9770
+ queue_name: z60.string(),
9771
+ exported_at: z60.string(),
9772
+ cases: z60.array(
9773
+ z60.object({
9774
+ title: z60.string(),
9775
+ data: z60.string().optional()
9719
9776
  })
9720
9777
  )
9721
9778
  });
9722
- var importCasesResponseSchema = z59.object({
9723
- imported_count: z59.number()
9779
+ var importCasesResponseSchema = z60.object({
9780
+ imported_count: z60.number()
9724
9781
  });
9725
- var batchQueueStatsResponseSchema = z59.object({
9726
- stats: z59.record(z59.guid(), casesStatsSchema)
9782
+ var batchQueueStatsResponseSchema = z60.object({
9783
+ stats: z60.record(z60.guid(), casesStatsSchema)
9727
9784
  });
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)
9785
+ var batchQueueAgentsResponseSchema = z60.object({
9786
+ agents: z60.record(
9787
+ z60.guid(),
9788
+ z60.object({
9789
+ producers: z60.array(queueAgentProducerSchema),
9790
+ consumers: z60.array(queueAgentConsumerSchema)
9734
9791
  })
9735
9792
  )
9736
9793
  });
9737
- var createTeamInviteLinkRequestSchema = z60.object({
9738
- frontendUrl: z60.url()
9794
+ var createTeamInviteLinkRequestSchema = z61.object({
9795
+ frontendUrl: z61.url()
9739
9796
  });
9740
- var getTeamInviteLinkQuerySchema = z60.object({
9741
- frontendUrl: z60.url()
9797
+ var getTeamInviteLinkQuerySchema = z61.object({
9798
+ frontendUrl: z61.url()
9742
9799
  });
9743
- var teamInviteLinkCreatorSchema = z60.object({
9744
- id: z60.guid(),
9745
- name: z60.string().nullable(),
9746
- email: z60.email()
9800
+ var teamInviteLinkCreatorSchema = z61.object({
9801
+ id: z61.guid(),
9802
+ name: z61.string().nullable(),
9803
+ email: z61.email()
9747
9804
  });
9748
- var teamInviteLinkSchema = z60.object({
9749
- id: z60.guid(),
9750
- url: z60.url().optional(),
9751
- createdAt: z60.string(),
9805
+ var teamInviteLinkSchema = z61.object({
9806
+ id: z61.guid(),
9807
+ url: z61.url().optional(),
9808
+ createdAt: z61.string(),
9752
9809
  createdBy: teamInviteLinkCreatorSchema
9753
9810
  });
9754
- var getTeamInviteLinkResponseSchema = z60.object({
9755
- hasLink: z60.boolean(),
9811
+ var getTeamInviteLinkResponseSchema = z61.object({
9812
+ hasLink: z61.boolean(),
9756
9813
  link: teamInviteLinkSchema.optional()
9757
9814
  });
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()
9815
+ var joinLinkInfoResponseSchema = z61.object({
9816
+ valid: z61.boolean(),
9817
+ teamName: z61.string().optional(),
9818
+ teamId: z61.guid().optional(),
9819
+ reason: z61.enum(["invalid", "expired"]).optional()
9763
9820
  });
9764
- var acceptJoinLinkResponseSchema = z60.object({
9765
- success: z60.boolean(),
9766
- teamId: z60.guid()
9821
+ var acceptJoinLinkResponseSchema = z61.object({
9822
+ success: z61.boolean(),
9823
+ teamId: z61.guid()
9767
9824
  });
9768
- var createClarityProcessInviteLinkRequestSchema = z61.object({
9769
- frontendUrl: z61.url()
9825
+ var createClarityProcessInviteLinkRequestSchema = z62.object({
9826
+ frontendUrl: z62.url()
9770
9827
  });
9771
9828
  var clarityProcessInviteLinkSchema = teamInviteLinkSchema;
9772
- var getClarityProcessInviteLinkResponseSchema = z61.object({
9773
- hasLink: z61.boolean(),
9829
+ var getClarityProcessInviteLinkResponseSchema = z62.object({
9830
+ hasLink: z62.boolean(),
9774
9831
  link: clarityProcessInviteLinkSchema.optional()
9775
9832
  });
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)"),
9833
+ var clarityJoinLinkInfoResponseSchema = z62.object({
9834
+ valid: z62.boolean(),
9835
+ processName: z62.string().optional(),
9836
+ processId: z62.guid().optional(),
9837
+ teamId: z62.guid().optional(),
9838
+ reason: z62.enum(["invalid", "expired"]).optional()
9839
+ });
9840
+ var acceptClarityJoinLinkResponseSchema = z62.object({
9841
+ success: z62.boolean(),
9842
+ processId: z62.guid()
9843
+ });
9844
+ var credentialPreviewSchema = z63.object({
9845
+ id: z63.guid().describe("Credential ID"),
9846
+ domain: z63.string().describe("Domain for the credential"),
9847
+ username: z63.string().nullable().describe("Username (if any)"),
9848
+ hasEnabledTOTP: z63.boolean().describe("Whether TOTP is enabled"),
9849
+ hasPassword: z63.boolean().describe("Whether a password is stored"),
9850
+ user_id: z63.string().nullable().describe("Owner user id; null when shared with the team")
9851
+ });
9852
+ var otpResponseSchema = z63.object({
9853
+ code: z63.string().describe("The TOTP code"),
9854
+ expiresAt: z63.number().describe("Expiration timestamp in milliseconds")
9855
+ });
9856
+ var encryptedDataSchema = z63.object({
9857
+ encrypted_data: z63.string().describe("Base64-encoded encrypted data"),
9858
+ key_version: z63.string().describe("KMS key version or 'base64' for dev")
9859
+ });
9860
+ var credentialDetailSchema = z63.object({
9861
+ domain: z63.string().describe("Domain for the credential"),
9862
+ username: z63.string().nullable().describe("Username (if any)"),
9806
9863
  password: encryptedDataSchema.nullable().describe("Encrypted password data")
9807
9864
  });
9808
9865
  var FEATURE_FLAG_CATALOGUE = {
@@ -9834,7 +9891,7 @@ var FEATURE_FLAG_CATALOGUE = {
9834
9891
  CASE_QUEUE_EVALS: {
9835
9892
  key: "case_queue_evals",
9836
9893
  defaultValue: false,
9837
- description: "Surfaces case-level evaluation rubrics in the FE: the queue's 'Evaluation rubrics' panel + 'why changed' transparency feed, and the per-case eval-outcome pill/panel. Backend generation + evaluation run regardless of this flag; it gates display only. DUVO-6203."
9894
+ description: "Enables automatic case-level evaluations and their supporting rubrics, plus the queue's 'Evaluation rubrics' panel, 'why changed' transparency feed, and per-case evaluation outcome. DUVO-6203."
9838
9895
  },
9839
9896
  AGENTIC_MEMORY_TEAM_WIDE: {
9840
9897
  key: "agentic_memory_team_wide",
@@ -9961,6 +10018,11 @@ var FEATURE_FLAG_CATALOGUE = {
9961
10018
  defaultValue: false,
9962
10019
  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
10020
  },
10021
+ CROSS_TEAM_PULSE_MOVE: {
10022
+ key: "cross_team_pulse_move",
10023
+ defaultValue: false,
10024
+ 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."
10025
+ },
9964
10026
  TEAM_ONTOLOGY: {
9965
10027
  key: "team_ontology",
9966
10028
  defaultValue: false,
@@ -10039,160 +10101,160 @@ function coerceFlagValue(value) {
10039
10101
  }
10040
10102
  __name(coerceFlagValue, "coerceFlagValue");
10041
10103
  __name2(coerceFlagValue, "coerceFlagValue");
10042
- var teamFileItemSchema = z63.object({
10043
- id: z63.string(),
10044
- name: z63.string(),
10045
- path: z63.string(),
10046
- created_at: z63.string().optional(),
10047
- updated_at: z63.string().optional(),
10048
- metadata: z63.object({
10049
- mimetype: z63.string().optional(),
10050
- size: z63.number().optional()
10104
+ var teamFileItemSchema = z64.object({
10105
+ id: z64.string(),
10106
+ name: z64.string(),
10107
+ path: z64.string(),
10108
+ created_at: z64.string().optional(),
10109
+ updated_at: z64.string().optional(),
10110
+ metadata: z64.object({
10111
+ mimetype: z64.string().optional(),
10112
+ size: z64.number().optional()
10051
10113
  }).nullable().optional()
10052
10114
  });
10053
- var listTeamFilesResponseSchema = z63.object({
10054
- files: z63.array(teamFileItemSchema)
10055
- });
10056
- var createTeamFileUploadUrlBodySchema = z63.object({
10057
- fileName: z63.string().min(1),
10058
- contentType: z63.string().min(1)
10059
- });
10060
- var createTeamFileUploadUrlResponseSchema = z63.object({
10061
- signedUrl: z63.url(),
10062
- expiresAt: z63.iso.datetime(),
10063
- filePath: z63.string()
10064
- });
10065
- var renameTeamFileBodySchema = z63.object({
10066
- relativePath: z63.string().min(1),
10067
- newFilenameOnly: z63.string().min(1)
10068
- });
10069
- var teamFileSuccessResponseSchema = z63.object({
10070
- success: z63.boolean()
10071
- });
10072
- var teamFileDownloadUrlResponseSchema = z63.object({
10073
- url: z63.url(),
10074
- expiresAt: z63.iso.datetime()
10075
- });
10076
- var teamFileContentResponseSchema = z63.object({
10077
- content: z63.string(),
10078
- path: z63.string(),
10079
- contentType: z63.string().optional()
10080
- });
10081
- var updateTeamFileContentBodySchema = z63.object({
10082
- content: z63.string()
10083
- });
10084
- var globalAdminApiSchema = z64.object({
10085
- id: z64.guid(),
10086
- email: z64.string(),
10087
- userId: z64.guid(),
10088
- userName: z64.string().nullable(),
10089
- addedByUserId: z64.guid().nullable(),
10090
- createdAt: z64.string()
10091
- });
10092
- var globalAdminListResponseSchema = z64.object({
10093
- admins: z64.array(globalAdminApiSchema)
10094
- });
10095
- var globalAdminSearchResponseSchema = z64.object({
10096
- users: z64.array(
10097
- z64.object({
10098
- id: z64.guid(),
10099
- name: z64.string().nullable(),
10100
- email: z64.string(),
10101
- createdAt: z64.string().nullable()
10115
+ var listTeamFilesResponseSchema = z64.object({
10116
+ files: z64.array(teamFileItemSchema)
10117
+ });
10118
+ var createTeamFileUploadUrlBodySchema = z64.object({
10119
+ fileName: z64.string().min(1),
10120
+ contentType: z64.string().min(1)
10121
+ });
10122
+ var createTeamFileUploadUrlResponseSchema = z64.object({
10123
+ signedUrl: z64.url(),
10124
+ expiresAt: z64.iso.datetime(),
10125
+ filePath: z64.string()
10126
+ });
10127
+ var renameTeamFileBodySchema = z64.object({
10128
+ relativePath: z64.string().min(1),
10129
+ newFilenameOnly: z64.string().min(1)
10130
+ });
10131
+ var teamFileSuccessResponseSchema = z64.object({
10132
+ success: z64.boolean()
10133
+ });
10134
+ var teamFileDownloadUrlResponseSchema = z64.object({
10135
+ url: z64.url(),
10136
+ expiresAt: z64.iso.datetime()
10137
+ });
10138
+ var teamFileContentResponseSchema = z64.object({
10139
+ content: z64.string(),
10140
+ path: z64.string(),
10141
+ contentType: z64.string().optional()
10142
+ });
10143
+ var updateTeamFileContentBodySchema = z64.object({
10144
+ content: z64.string()
10145
+ });
10146
+ var globalAdminApiSchema = z65.object({
10147
+ id: z65.guid(),
10148
+ email: z65.string(),
10149
+ userId: z65.guid(),
10150
+ userName: z65.string().nullable(),
10151
+ addedByUserId: z65.guid().nullable(),
10152
+ createdAt: z65.string()
10153
+ });
10154
+ var globalAdminListResponseSchema = z65.object({
10155
+ admins: z65.array(globalAdminApiSchema)
10156
+ });
10157
+ var globalAdminSearchResponseSchema = z65.object({
10158
+ users: z65.array(
10159
+ z65.object({
10160
+ id: z65.guid(),
10161
+ name: z65.string().nullable(),
10162
+ email: z65.string(),
10163
+ createdAt: z65.string().nullable()
10102
10164
  })
10103
10165
  )
10104
10166
  });
10105
- var globalAdminCreateRequestSchema = z64.object({
10106
- userId: z64.guid()
10167
+ var globalAdminCreateRequestSchema = z65.object({
10168
+ userId: z65.guid()
10107
10169
  });
10108
- var globalAdminCreateResponseSchema = z64.object({
10170
+ var globalAdminCreateResponseSchema = z65.object({
10109
10171
  admin: globalAdminApiSchema
10110
10172
  });
10111
- var globalAdminDeleteResponseSchema = z64.object({
10112
- success: z64.literal(true)
10173
+ var globalAdminDeleteResponseSchema = z65.object({
10174
+ success: z65.literal(true)
10113
10175
  });
10114
- var adminAccessCheckResponseSchema = z64.object({
10115
- isGlobalAdmin: z64.boolean()
10176
+ var adminAccessCheckResponseSchema = z65.object({
10177
+ isGlobalAdmin: z65.boolean()
10116
10178
  });
10117
10179
  var JOB_LIST_SORT_COLUMNS = ["created_at"];
10118
- var jobListSortColumnSchema = z65.enum(JOB_LIST_SORT_COLUMNS);
10119
- var jobListIssueSeveritySchema = z65.enum(
10180
+ var jobListSortColumnSchema = z66.enum(JOB_LIST_SORT_COLUMNS);
10181
+ var jobListIssueSeveritySchema = z66.enum(
10120
10182
  ALL_EVALUATION_RUBRIC_SEVERITIES
10121
10183
  );
10122
- var jobListItemSchema = z65.object({
10123
- id: z65.guid(),
10124
- created_at: z65.coerce.date(),
10125
- updated_at: z65.coerce.date(),
10126
- started_at: z65.coerce.date().nullable(),
10127
- completed_at: z65.coerce.date().nullable(),
10184
+ var jobListItemSchema = z66.object({
10185
+ id: z66.guid(),
10186
+ created_at: z66.coerce.date(),
10187
+ updated_at: z66.coerce.date(),
10188
+ started_at: z66.coerce.date().nullable(),
10189
+ completed_at: z66.coerce.date().nullable(),
10128
10190
  status: agentRunStatusSchema,
10129
- source: z65.string().nullable(),
10130
- title: z65.string(),
10131
- run_number: z65.number(),
10191
+ source: z66.string().nullable(),
10192
+ title: z66.string(),
10193
+ run_number: z66.number(),
10132
10194
  // Agent info
10133
- agent_id: z65.guid(),
10134
- agent_name: z65.string(),
10135
- build_id: z65.guid(),
10195
+ agent_id: z66.guid(),
10196
+ agent_name: z66.string(),
10197
+ build_id: z66.guid(),
10136
10198
  // User info
10137
- user_id: z65.guid().nullable(),
10199
+ user_id: z66.guid().nullable(),
10138
10200
  // Case info
10139
- case_queue_item_id: z65.guid().nullable(),
10140
- case_queue_id: z65.guid().nullable(),
10141
- case_queue_name: z65.string().nullable(),
10142
- case_title: z65.string().nullable(),
10143
- postponed_to: z65.coerce.date().nullable(),
10144
- submitted_prompt_count: z65.number().int().min(0),
10201
+ case_queue_item_id: z66.guid().nullable(),
10202
+ case_queue_id: z66.guid().nullable(),
10203
+ case_queue_name: z66.string().nullable(),
10204
+ case_title: z66.string().nullable(),
10205
+ postponed_to: z66.coerce.date().nullable(),
10206
+ submitted_prompt_count: z66.number().int().min(0),
10145
10207
  eval_summaries: evalSummarySchema.nullable().optional()
10146
10208
  });
10147
- var jobListResponseSchema = z65.object({
10148
- data: z65.array(jobListItemSchema),
10149
- total: z65.number()
10209
+ var jobListResponseSchema = z66.object({
10210
+ data: z66.array(jobListItemSchema),
10211
+ total: z66.number()
10150
10212
  });
10151
- var jobFilterOptionsSchema = z65.object({
10152
- agents: z65.array(
10153
- z65.object({
10154
- id: z65.string(),
10155
- name: z65.string(),
10156
- folder_id: z65.string().nullable()
10213
+ var jobFilterOptionsSchema = z66.object({
10214
+ agents: z66.array(
10215
+ z66.object({
10216
+ id: z66.string(),
10217
+ name: z66.string(),
10218
+ folder_id: z66.string().nullable()
10157
10219
  })
10158
10220
  ),
10159
- folders: z65.array(
10160
- z65.object({
10161
- id: z65.string(),
10162
- name: z65.string(),
10163
- parent_folder_id: z65.string().nullable()
10221
+ folders: z66.array(
10222
+ z66.object({
10223
+ id: z66.string(),
10224
+ name: z66.string(),
10225
+ parent_folder_id: z66.string().nullable()
10164
10226
  })
10165
10227
  ),
10166
- users: z65.array(
10167
- z65.object({
10168
- id: z65.string(),
10169
- name: z65.string().nullable(),
10170
- email: z65.string()
10228
+ users: z66.array(
10229
+ z66.object({
10230
+ id: z66.string(),
10231
+ name: z66.string().nullable(),
10232
+ email: z66.string()
10171
10233
  })
10172
10234
  ),
10173
- caseQueues: z65.array(z65.object({ id: z65.string(), name: z65.string() }))
10174
- });
10175
- var mcpStepSchema = z66.object({
10176
- tool: z66.string().describe("MCP tool name (e.g., click, fill, navigate_page)"),
10177
- params: z66.record(z66.string(), z66.unknown()).describe("Tool-specific parameters"),
10178
- fallbackSelectors: z66.array(z66.string()).optional().describe("Alternative CSS selectors if primary fails"),
10179
- description: z66.string().optional().describe("Human-readable step description"),
10180
- screenshot: z66.string().optional().describe("Base64 screenshot at this step for visual context"),
10181
- snapshot: z66.string().optional().describe("DOM snapshot in accessibility tree format at this step"),
10182
- framePath: z66.array(z66.number()).optional().describe(
10235
+ caseQueues: z66.array(z66.object({ id: z66.string(), name: z66.string() }))
10236
+ });
10237
+ var mcpStepSchema = z67.object({
10238
+ tool: z67.string().describe("MCP tool name (e.g., click, fill, navigate_page)"),
10239
+ params: z67.record(z67.string(), z67.unknown()).describe("Tool-specific parameters"),
10240
+ fallbackSelectors: z67.array(z67.string()).optional().describe("Alternative CSS selectors if primary fails"),
10241
+ description: z67.string().optional().describe("Human-readable step description"),
10242
+ screenshot: z67.string().optional().describe("Base64 screenshot at this step for visual context"),
10243
+ snapshot: z67.string().optional().describe("DOM snapshot in accessibility tree format at this step"),
10244
+ framePath: z67.array(z67.number()).optional().describe(
10183
10245
  "Index-based path to the target iframe (e.g., [0] for first child iframe, [1, 0] for nested)"
10184
10246
  )
10185
10247
  });
10186
- var mcpWorkflowSchema = z66.object({
10187
- name: z66.string(),
10188
- startUrl: z66.string(),
10189
- viewport: z66.object({
10190
- width: z66.number(),
10191
- height: z66.number()
10248
+ var mcpWorkflowSchema = z67.object({
10249
+ name: z67.string(),
10250
+ startUrl: z67.string(),
10251
+ viewport: z67.object({
10252
+ width: z67.number(),
10253
+ height: z67.number()
10192
10254
  }),
10193
- steps: z66.array(mcpStepSchema)
10255
+ steps: z67.array(mcpStepSchema)
10194
10256
  });
10195
- var MCP_WORKFLOW_JSON_SCHEMA = z66.toJSONSchema(mcpWorkflowSchema, {
10257
+ var MCP_WORKFLOW_JSON_SCHEMA = z67.toJSONSchema(mcpWorkflowSchema, {
10196
10258
  reused: "inline"
10197
10259
  });
10198
10260
  var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
@@ -10201,52 +10263,55 @@ var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
10201
10263
  2
10202
10264
  );
10203
10265
  var ORG_BROWSER_CONFIG_VERSION = 1;
10204
- var organizationBrowserConfigDataSchema = z67.object({
10266
+ var organizationBrowserConfigDataSchema = z68.object({
10205
10267
  browserProvider: BrowserProviderTypeSchema.nullable(),
10206
10268
  dataResidency: DataResidencySchema.nullable(),
10207
10269
  dataHandling: DataHandlingSchema.nullable(),
10208
- enforced: z67.boolean()
10270
+ enforced: z68.boolean(),
10271
+ egressMode: browserEgressModeSchema.nullable().optional()
10209
10272
  });
10210
- var organizationBrowserConfigSchema = z67.object({
10211
- version: z67.literal(ORG_BROWSER_CONFIG_VERSION),
10273
+ var organizationBrowserConfigSchema = z68.object({
10274
+ version: z68.literal(ORG_BROWSER_CONFIG_VERSION),
10212
10275
  data: organizationBrowserConfigDataSchema
10213
10276
  });
10214
- var organizationBrowserSettingsSchema = z67.object({
10215
- organizationId: z67.guid(),
10277
+ var organizationBrowserSettingsSchema = z68.object({
10278
+ organizationId: z68.guid(),
10216
10279
  browserProvider: BrowserProviderTypeSchema.nullable(),
10217
10280
  dataResidency: DataResidencySchema.nullable(),
10218
10281
  dataHandling: DataHandlingSchema.nullable(),
10219
- enforced: z67.boolean(),
10220
- createdAt: z67.string(),
10221
- updatedAt: z67.string()
10282
+ enforced: z68.boolean(),
10283
+ egressMode: browserEgressModeSchema.nullable().optional(),
10284
+ createdAt: z68.string(),
10285
+ updatedAt: z68.string()
10222
10286
  });
10223
- var getOrganizationBrowserSettingsResponseSchema = z67.object({
10287
+ var getOrganizationBrowserSettingsResponseSchema = z68.object({
10224
10288
  settings: organizationBrowserSettingsSchema.nullable()
10225
10289
  });
10226
- var updateOrganizationBrowserSettingsRequestSchema = z67.object({
10290
+ var updateOrganizationBrowserSettingsRequestSchema = z68.object({
10227
10291
  browserProvider: BrowserProviderTypeSchema.nullable().optional(),
10228
10292
  dataResidency: DataResidencySchema.nullable().optional(),
10229
10293
  dataHandling: DataHandlingSchema.nullable().optional(),
10230
- enforced: z67.boolean().optional()
10294
+ enforced: z68.boolean().optional(),
10295
+ egressMode: browserEgressModeSchema.nullable().optional()
10231
10296
  });
10232
- var updateOrganizationBrowserSettingsResponseSchema = z67.object({
10297
+ var updateOrganizationBrowserSettingsResponseSchema = z68.object({
10233
10298
  settings: organizationBrowserSettingsSchema
10234
10299
  });
10235
- var catalogPluginSchema = z68.object({
10236
- name: z68.string().describe("Identifier to pass in the build's plugins array."),
10300
+ var catalogPluginSchema = z69.object({
10301
+ name: z69.string().describe("Identifier to pass in the build's plugins array."),
10237
10302
  type: extensibleEnum(["duvo-platform", "knowledge-work", "github"], {
10238
10303
  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."
10239
10304
  }),
10240
- description: z68.string()
10305
+ description: z69.string()
10241
10306
  });
10242
- var pluginCatalogResponseSchema = z68.object({
10243
- plugins: z68.array(catalogPluginSchema)
10307
+ var pluginCatalogResponseSchema = z69.object({
10308
+ plugins: z69.array(catalogPluginSchema)
10244
10309
  });
10245
- var limitValueSchema = z69.union([
10246
- z69.number().int().nonnegative(),
10247
- z69.literal("unlimited")
10310
+ var limitValueSchema = z70.union([
10311
+ z70.number().int().nonnegative(),
10312
+ z70.literal("unlimited")
10248
10313
  ]);
10249
- var runCountingModeSchema = z69.enum(["monthly", "lifetime"]);
10314
+ var runCountingModeSchema = z70.enum(["monthly", "lifetime"]);
10250
10315
  function addDuplicateKeyIssues({
10251
10316
  ctx,
10252
10317
  items,
@@ -10258,7 +10323,7 @@ function addDuplicateKeyIssues({
10258
10323
  const key = keyFor(item);
10259
10324
  if (seen.has(key)) {
10260
10325
  ctx.addIssue({
10261
- code: z69.ZodIssueCode.custom,
10326
+ code: z70.ZodIssueCode.custom,
10262
10327
  message: `Duplicate Product Access grant key: ${key}`,
10263
10328
  path: [...path, index]
10264
10329
  });
@@ -10269,34 +10334,34 @@ function addDuplicateKeyIssues({
10269
10334
  }
10270
10335
  __name(addDuplicateKeyIssues, "addDuplicateKeyIssues");
10271
10336
  __name2(addDuplicateKeyIssues, "addDuplicateKeyIssues");
10272
- var productAccessOwnerSchema = z69.discriminatedUnion("type", [
10273
- z69.object({
10274
- type: z69.literal("organization"),
10275
- organizationId: z69.guid()
10337
+ var productAccessOwnerSchema = z70.discriminatedUnion("type", [
10338
+ z70.object({
10339
+ type: z70.literal("organization"),
10340
+ organizationId: z70.guid()
10276
10341
  }),
10277
- z69.object({
10278
- type: z69.literal("team"),
10279
- teamId: z69.guid(),
10280
- organizationId: z69.guid().nullable()
10342
+ z70.object({
10343
+ type: z70.literal("team"),
10344
+ teamId: z70.guid(),
10345
+ organizationId: z70.guid().nullable()
10281
10346
  })
10282
10347
  ]);
10283
- var productAccessGrantSetSchema = z69.object({
10284
- products: z69.array(
10285
- z69.object({
10286
- productKey: z69.enum(PRODUCT_KEYS),
10287
- enabled: z69.boolean()
10348
+ var productAccessGrantSetSchema = z70.object({
10349
+ products: z70.array(
10350
+ z70.object({
10351
+ productKey: z70.enum(PRODUCT_KEYS),
10352
+ enabled: z70.boolean()
10288
10353
  })
10289
10354
  ),
10290
- capabilities: z69.array(
10291
- z69.object({
10292
- capabilityKey: z69.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
10293
- enabled: z69.boolean()
10355
+ capabilities: z70.array(
10356
+ z70.object({
10357
+ capabilityKey: z70.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
10358
+ enabled: z70.boolean()
10294
10359
  })
10295
10360
  ),
10296
- limits: z69.array(
10297
- z69.object({
10298
- productKey: z69.enum(PRODUCT_KEYS),
10299
- limitKey: z69.enum(ENTITLEMENT_LIMIT_KEYS),
10361
+ limits: z70.array(
10362
+ z70.object({
10363
+ productKey: z70.enum(PRODUCT_KEYS),
10364
+ limitKey: z70.enum(ENTITLEMENT_LIMIT_KEYS),
10300
10365
  limitValue: limitValueSchema,
10301
10366
  countingMode: runCountingModeSchema.nullable()
10302
10367
  })
@@ -10321,51 +10386,51 @@ var productAccessGrantSetSchema = z69.object({
10321
10386
  path: ["limits"]
10322
10387
  });
10323
10388
  });
10324
- var productAccessSnapshotSchema = z69.object({
10325
- products: z69.array(
10326
- z69.object({
10327
- productKey: z69.enum(PRODUCT_KEYS),
10328
- enabled: z69.boolean()
10389
+ var productAccessSnapshotSchema = z70.object({
10390
+ products: z70.array(
10391
+ z70.object({
10392
+ productKey: z70.enum(PRODUCT_KEYS),
10393
+ enabled: z70.boolean()
10329
10394
  })
10330
10395
  ),
10331
- capabilities: z69.array(
10332
- z69.object({
10396
+ capabilities: z70.array(
10397
+ z70.object({
10333
10398
  capabilityKey: extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS),
10334
- productKey: z69.enum(PRODUCT_KEYS),
10335
- enabled: z69.boolean()
10399
+ productKey: z70.enum(PRODUCT_KEYS),
10400
+ enabled: z70.boolean()
10336
10401
  })
10337
10402
  ),
10338
- limits: z69.array(
10339
- z69.object({
10340
- limitKey: z69.enum(ENTITLEMENT_LIMIT_KEYS),
10341
- productKey: z69.enum(PRODUCT_KEYS),
10403
+ limits: z70.array(
10404
+ z70.object({
10405
+ limitKey: z70.enum(ENTITLEMENT_LIMIT_KEYS),
10406
+ productKey: z70.enum(PRODUCT_KEYS),
10342
10407
  limitValue: limitValueSchema,
10343
10408
  countingMode: runCountingModeSchema.nullable(),
10344
- label: z69.literal("per_team")
10409
+ label: z70.literal("per_team")
10345
10410
  })
10346
10411
  )
10347
10412
  });
10348
- var billingPlanSchema = z69.object({
10349
- planVersionId: z69.string(),
10350
- planName: z69.string(),
10351
- basePlan: z69.enum(["free", "pro", "enterprise"])
10413
+ var billingPlanSchema = z70.object({
10414
+ planVersionId: z70.string(),
10415
+ planName: z70.string(),
10416
+ basePlan: z70.enum(["free", "pro", "enterprise"])
10352
10417
  });
10353
- var inheritedFromSchema = z69.discriminatedUnion("type", [
10354
- z69.object({
10355
- type: z69.literal("organization"),
10356
- organizationId: z69.guid()
10418
+ var inheritedFromSchema = z70.discriminatedUnion("type", [
10419
+ z70.object({
10420
+ type: z70.literal("organization"),
10421
+ organizationId: z70.guid()
10357
10422
  }),
10358
- z69.object({
10359
- type: z69.literal("team_subscription"),
10360
- planVersionId: z69.string()
10423
+ z70.object({
10424
+ type: z70.literal("team_subscription"),
10425
+ planVersionId: z70.string()
10361
10426
  })
10362
10427
  ]);
10363
- var productAccessReadResponseSchema = z69.object({
10428
+ var productAccessReadResponseSchema = z70.object({
10364
10429
  owner: productAccessOwnerSchema,
10365
- source: z69.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10366
- accessRevision: z69.string().min(1),
10430
+ source: z70.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10431
+ accessRevision: z70.string().min(1),
10367
10432
  displayPreset: displayPresetSchema,
10368
- hasExplicitTeamAccess: z69.boolean(),
10433
+ hasExplicitTeamAccess: z70.boolean(),
10369
10434
  inheritedFrom: inheritedFromSchema.nullable(),
10370
10435
  billingPlan: billingPlanSchema.nullable(),
10371
10436
  grants: productAccessSnapshotSchema,
@@ -10373,67 +10438,67 @@ var productAccessReadResponseSchema = z69.object({
10373
10438
  }).superRefine((value, ctx) => {
10374
10439
  if (value.owner.type === "team" && value.source === "organization" && value.inheritedFrom?.type !== "organization") {
10375
10440
  ctx.addIssue({
10376
- code: z69.ZodIssueCode.custom,
10441
+ code: z70.ZodIssueCode.custom,
10377
10442
  message: "inheritedFrom organization context is required when team source is organization",
10378
10443
  path: ["inheritedFrom"]
10379
10444
  });
10380
10445
  }
10381
10446
  if (value.owner.type === "team" && value.source === "team_subscription" && value.inheritedFrom?.type !== "team_subscription") {
10382
10447
  ctx.addIssue({
10383
- code: z69.ZodIssueCode.custom,
10448
+ code: z70.ZodIssueCode.custom,
10384
10449
  message: "inheritedFrom subscription context is required when team source is team_subscription",
10385
10450
  path: ["inheritedFrom"]
10386
10451
  });
10387
10452
  }
10388
10453
  if (value.owner.type === "team" && value.source === "team" && value.inheritedFrom !== null) {
10389
10454
  ctx.addIssue({
10390
- code: z69.ZodIssueCode.custom,
10455
+ code: z70.ZodIssueCode.custom,
10391
10456
  message: "inheritedFrom must be null for direct team Product Access",
10392
10457
  path: ["inheritedFrom"]
10393
10458
  });
10394
10459
  }
10395
10460
  if (value.owner.type === "organization" && value.billingPlan !== null) {
10396
10461
  ctx.addIssue({
10397
- code: z69.ZodIssueCode.custom,
10462
+ code: z70.ZodIssueCode.custom,
10398
10463
  message: "billingPlan must be null for organization Product Access",
10399
10464
  path: ["billingPlan"]
10400
10465
  });
10401
10466
  }
10402
10467
  if (value.owner.type === "organization" && value.source !== "organization") {
10403
10468
  ctx.addIssue({
10404
- code: z69.ZodIssueCode.custom,
10469
+ code: z70.ZodIssueCode.custom,
10405
10470
  message: "organization Product Access source must be organization",
10406
10471
  path: ["source"]
10407
10472
  });
10408
10473
  }
10409
10474
  if (value.owner.type === "organization" && value.inheritedFrom !== null) {
10410
10475
  ctx.addIssue({
10411
- code: z69.ZodIssueCode.custom,
10476
+ code: z70.ZodIssueCode.custom,
10412
10477
  message: "inheritedFrom must be null for organization Product Access",
10413
10478
  path: ["inheritedFrom"]
10414
10479
  });
10415
10480
  }
10416
10481
  });
10417
- var productAccessImpactRequestSchema = z69.object({
10482
+ var productAccessImpactRequestSchema = z70.object({
10418
10483
  proposedGrants: productAccessGrantSetSchema
10419
10484
  });
10420
- var productAccessWriteRequestSchema = z69.object({
10485
+ var productAccessWriteRequestSchema = z70.object({
10421
10486
  proposedGrants: productAccessGrantSetSchema,
10422
- accessRevision: z69.string().min(1),
10423
- impactFingerprint: z69.string().min(1).optional()
10424
- });
10425
- var productAccessTeamResetRequestSchema = z69.object({
10426
- accessRevision: z69.string().min(1),
10427
- impactFingerprint: z69.string().min(1).optional()
10428
- });
10429
- var productAccessChangeSummarySchema = z69.object({
10430
- addedProducts: z69.array(z69.enum(PRODUCT_KEYS)),
10431
- removedProducts: z69.array(z69.enum(PRODUCT_KEYS)),
10432
- addedCapabilities: z69.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10433
- removedCapabilities: z69.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10434
- limitChanges: z69.array(
10435
- z69.object({
10436
- limitKey: z69.enum(ENTITLEMENT_LIMIT_KEYS),
10487
+ accessRevision: z70.string().min(1),
10488
+ impactFingerprint: z70.string().min(1).optional()
10489
+ });
10490
+ var productAccessTeamResetRequestSchema = z70.object({
10491
+ accessRevision: z70.string().min(1),
10492
+ impactFingerprint: z70.string().min(1).optional()
10493
+ });
10494
+ var productAccessChangeSummarySchema = z70.object({
10495
+ addedProducts: z70.array(z70.enum(PRODUCT_KEYS)),
10496
+ removedProducts: z70.array(z70.enum(PRODUCT_KEYS)),
10497
+ addedCapabilities: z70.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10498
+ removedCapabilities: z70.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10499
+ limitChanges: z70.array(
10500
+ z70.object({
10501
+ limitKey: z70.enum(ENTITLEMENT_LIMIT_KEYS),
10437
10502
  currentValue: limitValueSchema,
10438
10503
  currentCountingMode: runCountingModeSchema.nullable(),
10439
10504
  proposedValue: limitValueSchema,
@@ -10441,61 +10506,61 @@ var productAccessChangeSummarySchema = z69.object({
10441
10506
  })
10442
10507
  )
10443
10508
  });
10444
- var productAccessImpactResponseSchema = z69.object({
10509
+ var productAccessImpactResponseSchema = z70.object({
10445
10510
  owner: productAccessOwnerSchema,
10446
- impactFingerprint: z69.string().min(1),
10447
- affectedTeamCount: z69.number().int().nonnegative(),
10448
- affectedTeamsTruncated: z69.boolean(),
10511
+ impactFingerprint: z70.string().min(1),
10512
+ affectedTeamCount: z70.number().int().nonnegative(),
10513
+ affectedTeamsTruncated: z70.boolean(),
10449
10514
  changes: productAccessChangeSummarySchema,
10450
- sideEffects: z69.object({
10451
- automationWillPause: z69.boolean(),
10452
- clarityWillHide: z69.boolean()
10515
+ sideEffects: z70.object({
10516
+ automationWillPause: z70.boolean(),
10517
+ clarityWillHide: z70.boolean()
10453
10518
  }),
10454
- affectedTeamsPreview: z69.array(
10455
- z69.object({
10456
- teamId: z69.guid(),
10457
- teamName: z69.string(),
10458
- source: z69.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10519
+ affectedTeamsPreview: z70.array(
10520
+ z70.object({
10521
+ teamId: z70.guid(),
10522
+ teamName: z70.string(),
10523
+ source: z70.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10459
10524
  changes: productAccessChangeSummarySchema
10460
10525
  })
10461
10526
  )
10462
10527
  });
10463
- var publicProfileSchema = z70.object({
10464
- id: z70.guid(),
10465
- name: z70.string().nullable(),
10466
- email: z70.email(),
10467
- teamId: z70.guid().nullable()
10528
+ var publicProfileSchema = z71.object({
10529
+ id: z71.guid(),
10530
+ name: z71.string().nullable(),
10531
+ email: z71.email(),
10532
+ teamId: z71.guid().nullable()
10468
10533
  });
10469
- var publicProfileResponseSchema = z70.object({
10534
+ var publicProfileResponseSchema = z71.object({
10470
10535
  profile: publicProfileSchema
10471
10536
  });
10472
- var elementSelectorsSchema = z71.object({
10473
- css: z71.string().optional(),
10474
- cssPath: z71.string().optional(),
10475
- xpath: z71.string().optional(),
10476
- testId: z71.string().optional(),
10477
- ariaSelector: z71.string().optional(),
10478
- text: z71.string().optional()
10537
+ var elementSelectorsSchema = z72.object({
10538
+ css: z72.string().optional(),
10539
+ cssPath: z72.string().optional(),
10540
+ xpath: z72.string().optional(),
10541
+ testId: z72.string().optional(),
10542
+ ariaSelector: z72.string().optional(),
10543
+ text: z72.string().optional()
10479
10544
  });
10480
- var elementInfoSchema = z71.object({
10481
- uid: z71.string().optional(),
10545
+ var elementInfoSchema = z72.object({
10546
+ uid: z72.string().optional(),
10482
10547
  selectors: elementSelectorsSchema,
10483
- tagName: z71.string(),
10484
- textContent: z71.string().optional(),
10485
- ariaLabel: z71.string().optional(),
10486
- computedRole: z71.string().optional(),
10487
- attributes: z71.record(z71.string(), z71.string()).optional(),
10488
- framePath: z71.array(z71.number()).optional(),
10489
- frameUrl: z71.string().optional()
10490
- });
10491
- var recordedEventSchema = z71.looseObject({
10492
- id: z71.string(),
10493
- type: z71.string(),
10494
- timestamp: z71.number(),
10495
- url: z71.string(),
10496
- tabId: z71.number().optional(),
10497
- frameId: z71.number().optional(),
10498
- framePath: z71.array(z71.number()).optional(),
10548
+ tagName: z72.string(),
10549
+ textContent: z72.string().optional(),
10550
+ ariaLabel: z72.string().optional(),
10551
+ computedRole: z72.string().optional(),
10552
+ attributes: z72.record(z72.string(), z72.string()).optional(),
10553
+ framePath: z72.array(z72.number()).optional(),
10554
+ frameUrl: z72.string().optional()
10555
+ });
10556
+ var recordedEventSchema = z72.looseObject({
10557
+ id: z72.string(),
10558
+ type: z72.string(),
10559
+ timestamp: z72.number(),
10560
+ url: z72.string(),
10561
+ tabId: z72.number().optional(),
10562
+ frameId: z72.number().optional(),
10563
+ framePath: z72.array(z72.number()).optional(),
10499
10564
  element: elementInfoSchema.optional()
10500
10565
  });
10501
10566
  var COMPUTER_USE_TARGET_SOURCES = [
@@ -10508,72 +10573,72 @@ var COMPUTER_USE_TARGET_CONFIDENCES = [
10508
10573
  "medium",
10509
10574
  "low"
10510
10575
  ];
10511
- var computerUseElementIdentitySchema = z71.object({
10512
- role: z71.string().optional(),
10513
- name: z71.string().optional(),
10514
- automationId: z71.string().optional(),
10515
- className: z71.string().optional(),
10516
- bounds: z71.object({
10517
- x: z71.number(),
10518
- y: z71.number(),
10519
- width: z71.number(),
10520
- height: z71.number()
10576
+ var computerUseElementIdentitySchema = z72.object({
10577
+ role: z72.string().optional(),
10578
+ name: z72.string().optional(),
10579
+ automationId: z72.string().optional(),
10580
+ className: z72.string().optional(),
10581
+ bounds: z72.object({
10582
+ x: z72.number(),
10583
+ y: z72.number(),
10584
+ width: z72.number(),
10585
+ height: z72.number()
10521
10586
  }).optional()
10522
10587
  });
10523
- var computerUseElementTargetSchema = z71.object({
10524
- selector: z71.string().optional(),
10525
- confidence: z71.enum(COMPUTER_USE_TARGET_CONFIDENCES),
10526
- source: z71.enum(COMPUTER_USE_TARGET_SOURCES),
10588
+ var computerUseElementTargetSchema = z72.object({
10589
+ selector: z72.string().optional(),
10590
+ confidence: z72.enum(COMPUTER_USE_TARGET_CONFIDENCES),
10591
+ source: z72.enum(COMPUTER_USE_TARGET_SOURCES),
10527
10592
  element: computerUseElementIdentitySchema.optional()
10528
10593
  });
10529
- var computerUseEventBaseSchema = z71.object({
10594
+ var computerUseEventBaseSchema = z72.object({
10530
10595
  /** Client-generated id; correlates an async element resolution back. */
10531
- id: z71.string().optional(),
10532
- timestamp: z71.number(),
10596
+ id: z72.string().optional(),
10597
+ timestamp: z72.number(),
10533
10598
  /** Links this event to a screenshot uploaded in the same/earlier batch. */
10534
- screenshotSeq: z71.number().int().nonnegative().optional(),
10599
+ screenshotSeq: z72.number().int().nonnegative().optional(),
10535
10600
  /** Resolved UIA element target (primary replay anchor). */
10536
10601
  target: computerUseElementTargetSchema.optional()
10537
10602
  });
10538
10603
  var computerUseClickEventSchema = computerUseEventBaseSchema.extend({
10539
- type: z71.literal("click"),
10604
+ type: z72.literal("click"),
10540
10605
  /** Cursor position in native desktop pixels. */
10541
- x: z71.number(),
10542
- y: z71.number(),
10543
- button: z71.enum(["left", "right", "middle"]).optional(),
10544
- double: z71.boolean().optional()
10606
+ x: z72.number(),
10607
+ y: z72.number(),
10608
+ button: z72.enum(["left", "right", "middle"]).optional(),
10609
+ double: z72.boolean().optional()
10545
10610
  });
10546
10611
  var computerUseScrollEventSchema = computerUseEventBaseSchema.extend({
10547
- type: z71.literal("scroll"),
10548
- x: z71.number(),
10549
- y: z71.number(),
10550
- deltaX: z71.number(),
10551
- deltaY: z71.number()
10612
+ type: z72.literal("scroll"),
10613
+ x: z72.number(),
10614
+ y: z72.number(),
10615
+ deltaX: z72.number(),
10616
+ deltaY: z72.number()
10552
10617
  });
10553
10618
  var computerUseTypeEventSchema = computerUseEventBaseSchema.extend({
10554
- type: z71.literal("type"),
10619
+ type: z72.literal("type"),
10555
10620
  /** Number of characters typed (redacted; no literal text). */
10556
- textLength: z71.number().int().nonnegative(),
10621
+ textLength: z72.number().int().nonnegative(),
10557
10622
  /**
10558
10623
  * @deprecated Never persisted. Literal typed text can contain secrets; the
10559
10624
  * recorder sends `textLength` instead and the backend strips any `text`.
10560
10625
  */
10561
- text: z71.string().optional()
10626
+ text: z72.string().optional()
10562
10627
  });
10563
10628
  var computerUseKeyEventSchema = computerUseEventBaseSchema.extend({
10564
- type: z71.literal("key"),
10565
- key: z71.string()
10629
+ type: z72.literal("key"),
10630
+ key: z72.string()
10566
10631
  });
10567
- var computerUseRecordedEventSchema = z71.discriminatedUnion("type", [
10632
+ var computerUseRecordedEventSchema = z72.discriminatedUnion("type", [
10568
10633
  computerUseClickEventSchema,
10569
10634
  computerUseScrollEventSchema,
10570
10635
  computerUseTypeEventSchema,
10571
10636
  computerUseKeyEventSchema
10572
10637
  ]);
10573
- var computerUseScreenshotSchema = z71.object({
10574
- seq: z71.number().int().nonnegative(),
10638
+ var computerUseScreenshotSchema = z72.object({
10639
+ seq: z72.number().int().nonnegative(),
10575
10640
  /** Base64-encoded JPEG (no data: URL prefix). */
10576
- base64: z71.string()
10641
+ base64: z72.string()
10577
10642
  });
10578
10643
  var DUVO_CLIENT_HEADER = "x-duvo-client";
10579
10644
  var DUVO_CLIENTS = {
@@ -10592,54 +10657,54 @@ function resolveRequestSourceFromClientHeader(header) {
10592
10657
  }
10593
10658
  __name(resolveRequestSourceFromClientHeader, "resolveRequestSourceFromClientHeader");
10594
10659
  __name2(resolveRequestSourceFromClientHeader, "resolveRequestSourceFromClientHeader");
10595
- var RedactedMcpServerConfigSchema = z72.object({
10660
+ var RedactedMcpServerConfigSchema = z73.object({
10596
10661
  type: TransportTypeSchema,
10597
10662
  integrationSlug: IntegrationSlugSchema,
10598
- instanceId: z72.string().nullable()
10663
+ instanceId: z73.string().nullable()
10599
10664
  });
10600
- var ThreadContextMessageSchema = z72.object({
10601
- role: z72.enum(["user", "assistant"]),
10602
- content: z72.string()
10665
+ var ThreadContextMessageSchema = z73.object({
10666
+ role: z73.enum(["user", "assistant"]),
10667
+ content: z73.string()
10603
10668
  });
10604
- var ChatFileReferenceSchema = z72.object({
10605
- id: z72.string(),
10606
- name: z72.string(),
10607
- mimetype: z72.string(),
10608
- size: z72.number(),
10609
- platform: z72.enum(["slack", "teams"]),
10610
- workspaceId: z72.string(),
10611
- channelId: z72.string()
10612
- });
10613
- var ResolvedSubAgentSchema = z72.object({
10614
- agentId: z72.string().uuid(),
10615
- buildId: z72.string().uuid(),
10616
- name: z72.string().min(1).max(64).regex(/^[a-z0-9-]+$/).describe(
10669
+ var ChatFileReferenceSchema = z73.object({
10670
+ id: z73.string(),
10671
+ name: z73.string(),
10672
+ mimetype: z73.string(),
10673
+ size: z73.number(),
10674
+ platform: z73.enum(["slack", "teams"]),
10675
+ workspaceId: z73.string(),
10676
+ channelId: z73.string()
10677
+ });
10678
+ var ResolvedSubAgentSchema = z73.object({
10679
+ agentId: z73.string().uuid(),
10680
+ buildId: z73.string().uuid(),
10681
+ name: z73.string().min(1).max(64).regex(/^[a-z0-9-]+$/).describe(
10617
10682
  "Stable slug used as the Claude Code subagent name (kebab-case, \u226464 chars)"
10618
10683
  ),
10619
- description: z72.string().describe(
10684
+ description: z73.string().describe(
10620
10685
  "Routing description Claude uses to decide when to delegate to this subagent"
10621
10686
  ),
10622
- prompt: z72.string().describe("System prompt (AOP) for this subagent"),
10623
- model: z72.string().optional().describe("Optional Claude model identifier override for this subagent"),
10624
- mcpServers: z72.record(z72.string(), RedactedMcpServerConfigSchema).default({}).describe(
10687
+ prompt: z73.string().describe("System prompt (AOP) for this subagent"),
10688
+ model: z73.string().optional().describe("Optional Claude model identifier override for this subagent"),
10689
+ mcpServers: z73.record(z73.string(), RedactedMcpServerConfigSchema).default({}).describe(
10625
10690
  "Redacted MCP server configs scoped to this subagent. Secrets resolved at execution time."
10626
10691
  )
10627
10692
  });
10628
10693
  var RunConfigSchema = AgentConfigSchema.extend({
10629
- task: z72.string(),
10630
- mcpServers: z72.record(z72.string(), RedactedMcpServerConfigSchema),
10631
- subAgents: z72.array(ResolvedSubAgentSchema).optional().default([]),
10632
- conversationHistory: z72.array(ThreadContextMessageSchema).optional(),
10633
- chatFiles: z72.array(ChatFileReferenceSchema).optional(),
10694
+ task: z73.string(),
10695
+ mcpServers: z73.record(z73.string(), RedactedMcpServerConfigSchema),
10696
+ subAgents: z73.array(ResolvedSubAgentSchema).optional().default([]),
10697
+ conversationHistory: z73.array(ThreadContextMessageSchema).optional(),
10698
+ chatFiles: z73.array(ChatFileReferenceSchema).optional(),
10634
10699
  /** IANA timezone (e.g. `"Europe/Prague"`). Consumers should fall back to UTC when absent. */
10635
- timezone: z72.string().optional(),
10700
+ timezone: z73.string().optional(),
10636
10701
  /**
10637
10702
  * ISO 8601 timestamp captured when the run was created. Frozen at
10638
10703
  * run-creation time and never recomputed, so resumes reuse the same value —
10639
10704
  * the runtime injects it into the cached system prompt and a changing value
10640
10705
  * would bust the prompt cache.
10641
10706
  */
10642
- sessionStartedAt: z72.string().optional(),
10707
+ sessionStartedAt: z73.string().optional(),
10643
10708
  /**
10644
10709
  * True when this dispatch resumes a run the user stopped. Derived on each
10645
10710
  * continue from the durable `agent_run.stopped_by_user` column (set only by a
@@ -10648,16 +10713,16 @@ var RunConfigSchema = AgentConfigSchema.extend({
10648
10713
  * first resumed turn. Lives here — not in cc-server memory — so it survives a
10649
10714
  * sandbox suspend/resume.
10650
10715
  */
10651
- resumedAfterStop: z72.boolean().optional()
10716
+ resumedAfterStop: z73.boolean().optional()
10652
10717
  });
10653
- var StoredRunConfigV0Schema = z72.object({
10654
- version: z72.literal("v0")
10718
+ var StoredRunConfigV0Schema = z73.object({
10719
+ version: z73.literal("v0")
10655
10720
  });
10656
- var StoredRunConfigV1Schema = z72.object({
10657
- version: z72.literal("v1"),
10721
+ var StoredRunConfigV1Schema = z73.object({
10722
+ version: z73.literal("v1"),
10658
10723
  data: RunConfigSchema
10659
10724
  });
10660
- var StoredRunConfigSchema = z72.union([
10725
+ var StoredRunConfigSchema = z73.union([
10661
10726
  StoredRunConfigV0Schema,
10662
10727
  StoredRunConfigV1Schema
10663
10728
  ]);
@@ -10676,178 +10741,178 @@ function isRunConfig(config) {
10676
10741
  }
10677
10742
  __name(isRunConfig, "isRunConfig");
10678
10743
  __name2(isRunConfig, "isRunConfig");
10679
- var skillApiSchema = z73.object({
10680
- id: z73.string(),
10681
- name: z73.string(),
10682
- description: z73.string(),
10744
+ var skillApiSchema = z74.object({
10745
+ id: z74.string(),
10746
+ name: z74.string(),
10747
+ description: z74.string(),
10683
10748
  // System skills have null team_id.
10684
- team_id: z73.string().nullable()
10685
- });
10686
- var listSkillsResponseSchema = z73.object({
10687
- skills: z73.array(skillApiSchema)
10688
- });
10689
- var systemSkillSchema = z73.object({
10690
- id: z73.string(),
10691
- name: z73.string(),
10692
- description: z73.string()
10749
+ team_id: z74.string().nullable()
10693
10750
  });
10694
- var listSystemSkillsResponseSchema = z73.object({
10695
- skills: z73.array(systemSkillSchema)
10751
+ var listSkillsResponseSchema = z74.object({
10752
+ skills: z74.array(skillApiSchema)
10696
10753
  });
10697
- var skillFileItemSchema = z73.object({
10698
- name: z73.string(),
10699
- path: z73.string(),
10700
- size: z73.number().optional(),
10701
- contentType: z73.string().optional(),
10702
- updatedAt: z73.string().optional()
10703
- });
10704
- var listSkillFilesResponseSchema = z73.object({
10705
- files: z73.array(skillFileItemSchema)
10706
- });
10707
- var getSkillFileContentResponseSchema = z73.object({
10708
- content: z73.string(),
10709
- path: z73.string(),
10710
- contentType: z73.string().optional()
10711
- });
10712
- var updateSkillFileBodySchema = z73.object({
10713
- content: z73.string()
10714
- });
10715
- var updateSkillFileResponseSchema = z73.object({
10716
- success: z73.boolean(),
10717
- message: z73.string(),
10718
- skill: z73.object({
10719
- id: z73.string(),
10720
- name: z73.string(),
10721
- description: z73.string()
10754
+ var systemSkillSchema = z74.object({
10755
+ id: z74.string(),
10756
+ name: z74.string(),
10757
+ description: z74.string()
10758
+ });
10759
+ var listSystemSkillsResponseSchema = z74.object({
10760
+ skills: z74.array(systemSkillSchema)
10761
+ });
10762
+ var skillFileItemSchema = z74.object({
10763
+ name: z74.string(),
10764
+ path: z74.string(),
10765
+ size: z74.number().optional(),
10766
+ contentType: z74.string().optional(),
10767
+ updatedAt: z74.string().optional()
10768
+ });
10769
+ var listSkillFilesResponseSchema = z74.object({
10770
+ files: z74.array(skillFileItemSchema)
10771
+ });
10772
+ var getSkillFileContentResponseSchema = z74.object({
10773
+ content: z74.string(),
10774
+ path: z74.string(),
10775
+ contentType: z74.string().optional()
10776
+ });
10777
+ var updateSkillFileBodySchema = z74.object({
10778
+ content: z74.string()
10779
+ });
10780
+ var updateSkillFileResponseSchema = z74.object({
10781
+ success: z74.boolean(),
10782
+ message: z74.string(),
10783
+ skill: z74.object({
10784
+ id: z74.string(),
10785
+ name: z74.string(),
10786
+ description: z74.string()
10722
10787
  }).optional()
10723
10788
  });
10724
- var deleteSkillResponseSchema = z73.object({
10725
- success: z73.boolean(),
10726
- message: z73.string()
10789
+ var deleteSkillResponseSchema = z74.object({
10790
+ success: z74.boolean(),
10791
+ message: z74.string()
10727
10792
  });
10728
- var generateSkillBodySchema = z73.object({
10729
- prompt: z73.string().min(1).max(2e3),
10730
- existingContent: z73.string().max(2e4).optional()
10793
+ var generateSkillBodySchema = z74.object({
10794
+ prompt: z74.string().min(1).max(2e3),
10795
+ existingContent: z74.string().max(2e4).optional()
10731
10796
  });
10732
- var generateSkillResponseSchema = z73.object({
10733
- content: z73.string()
10797
+ var generateSkillResponseSchema = z74.object({
10798
+ content: z74.string()
10734
10799
  });
10735
- var skillAssignmentSchema = z73.object({
10736
- id: z73.string(),
10737
- name: z73.string()
10800
+ var skillAssignmentSchema = z74.object({
10801
+ id: z74.string(),
10802
+ name: z74.string()
10738
10803
  });
10739
- var listSkillAssignmentsResponseSchema = z73.object({
10740
- assignments: z73.array(skillAssignmentSchema),
10741
- total: z73.number()
10804
+ var listSkillAssignmentsResponseSchema = z74.object({
10805
+ assignments: z74.array(skillAssignmentSchema),
10806
+ total: z74.number()
10742
10807
  });
10743
- var teamInvitationApiSchema = z74.object({
10744
- id: z74.string(),
10745
- team_id: z74.string(),
10746
- email: z74.email(),
10747
- invited_by: z74.string(),
10748
- role: z74.string(),
10749
- status: z74.string(),
10750
- name: z74.string().nullable(),
10751
- created_at: z74.string(),
10752
- process_id: z74.guid().nullable().optional()
10753
- });
10754
- var teamInvitationDetailApiSchema = z74.object({
10755
- id: z74.string(),
10756
- team_id: z74.string(),
10757
- email: z74.email(),
10758
- invited_by: z74.string(),
10759
- role: z74.string(),
10760
- status: z74.string(),
10761
- name: z74.string().nullable(),
10762
- created_at: z74.string(),
10763
- process_id: z74.guid().nullable().optional(),
10764
- team: z74.object({
10765
- id: z74.string(),
10766
- name: z74.string()
10808
+ var teamInvitationApiSchema = 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
+ });
10819
+ var teamInvitationDetailApiSchema = z75.object({
10820
+ id: z75.string(),
10821
+ team_id: z75.string(),
10822
+ email: z75.email(),
10823
+ invited_by: z75.string(),
10824
+ role: z75.string(),
10825
+ status: z75.string(),
10826
+ name: z75.string().nullable(),
10827
+ created_at: z75.string(),
10828
+ process_id: z75.guid().nullable().optional(),
10829
+ team: z75.object({
10830
+ id: z75.string(),
10831
+ name: z75.string()
10767
10832
  }),
10768
- invitedBy: z74.object({
10769
- id: z74.string(),
10770
- name: z74.string().nullable(),
10771
- email: z74.email()
10833
+ invitedBy: z75.object({
10834
+ id: z75.string(),
10835
+ name: z75.string().nullable(),
10836
+ email: z75.email()
10772
10837
  }),
10773
- process: z74.object({
10774
- id: z74.string(),
10775
- name: z74.string()
10838
+ process: z75.object({
10839
+ id: z75.string(),
10840
+ name: z75.string()
10776
10841
  }).optional()
10777
10842
  });
10778
- var createTeamInvitationRequestSchema = z74.object({
10779
- email: z74.email(),
10780
- role: z74.string(),
10781
- processId: z74.guid().optional()
10843
+ var createTeamInvitationRequestSchema = z75.object({
10844
+ email: z75.email(),
10845
+ role: z75.string(),
10846
+ processId: z75.guid().optional()
10782
10847
  });
10783
- var acceptTeamInvitationRequestSchema = z74.object({
10784
- name: z74.string().optional()
10848
+ var acceptTeamInvitationRequestSchema = z75.object({
10849
+ name: z75.string().optional()
10785
10850
  });
10786
- var bulkInviteResponseSchema = z74.object({
10787
- succeeded: z74.number(),
10788
- skipped: z74.number(),
10789
- failed: z74.number()
10851
+ var bulkInviteResponseSchema = z75.object({
10852
+ succeeded: z75.number(),
10853
+ skipped: z75.number(),
10854
+ failed: z75.number()
10790
10855
  });
10791
10856
  var TEAM_DISCOVERY_MODES = ["request", "auto"];
10792
- var teamDiscoveryModeSchema = z75.enum(TEAM_DISCOVERY_MODES);
10793
- var BrowserRegionSchema = z75.enum([
10857
+ var teamDiscoveryModeSchema = z76.enum(TEAM_DISCOVERY_MODES);
10858
+ var BrowserRegionSchema = z76.enum([
10794
10859
  "us-west-2",
10795
10860
  "us-east-1",
10796
10861
  "eu-central-1",
10797
10862
  "ap-southeast-1"
10798
10863
  ]);
10799
- var BrowserLocationSchema = z75.union([
10800
- z75.literal("cz"),
10801
- z75.literal("de"),
10802
- z75.literal("fr"),
10803
- z75.literal("gb"),
10804
- z75.literal("it"),
10805
- z75.literal("pl"),
10806
- z75.literal("sk")
10864
+ var BrowserLocationSchema = z76.union([
10865
+ z76.literal("cz"),
10866
+ z76.literal("de"),
10867
+ z76.literal("fr"),
10868
+ z76.literal("gb"),
10869
+ z76.literal("it"),
10870
+ z76.literal("pl"),
10871
+ z76.literal("sk")
10807
10872
  ]);
10808
- var teamMemberApiSchema = z75.object({
10809
- id: z75.guid(),
10810
- name: z75.string().nullable(),
10811
- email: z75.email(),
10812
- role: z75.string(),
10813
- inheritedFromOrg: z75.boolean().default(false)
10814
- });
10815
- var listTeamMembersResponseSchema = z75.object({
10816
- members: z75.array(teamMemberApiSchema),
10817
- total: z75.number().int().nonnegative(),
10818
- limit: z75.number().int().positive(),
10819
- offset: z75.number().int().nonnegative()
10820
- });
10821
- var updateMemberRoleRequestSchema = z75.object({
10822
- role: z75.string()
10823
- });
10824
- var removeMemberResponseSchema = z75.object({
10825
- success: z75.literal(true),
10826
- nextTeamId: z75.guid().nullable(),
10827
- planType: z75.enum(["pro", "enterprise"]).nullable()
10828
- });
10829
- var getMemberMeResponseSchema = z75.object({
10830
- role: z75.string().nullable(),
10873
+ var teamMemberApiSchema = z76.object({
10874
+ id: z76.guid(),
10875
+ name: z76.string().nullable(),
10876
+ email: z76.email(),
10877
+ role: z76.string(),
10878
+ inheritedFromOrg: z76.boolean().default(false)
10879
+ });
10880
+ var listTeamMembersResponseSchema = z76.object({
10881
+ members: z76.array(teamMemberApiSchema),
10882
+ total: z76.number().int().nonnegative(),
10883
+ limit: z76.number().int().positive(),
10884
+ offset: z76.number().int().nonnegative()
10885
+ });
10886
+ var updateMemberRoleRequestSchema = z76.object({
10887
+ role: z76.string()
10888
+ });
10889
+ var removeMemberResponseSchema = z76.object({
10890
+ success: z76.literal(true),
10891
+ nextTeamId: z76.guid().nullable(),
10892
+ planType: z76.enum(["pro", "enterprise"]).nullable()
10893
+ });
10894
+ var getMemberMeResponseSchema = z76.object({
10895
+ role: z76.string().nullable(),
10831
10896
  // True only when a real `user_team_memberships` row exists. `role` can be a
10832
10897
  // read-only *virtual* role for org leaders who haven't joined, so it is not a
10833
10898
  // membership signal on its own — use this flag to tell a real member apart.
10834
- isMember: z75.boolean()
10899
+ isMember: z76.boolean()
10835
10900
  });
10836
- var addTeamMemberRequestSchema = z75.object({
10837
- userId: z75.guid(),
10838
- role: z75.string()
10901
+ var addTeamMemberRequestSchema = z76.object({
10902
+ userId: z76.guid(),
10903
+ role: z76.string()
10839
10904
  });
10840
- var updateTeamRequestSchema = z75.object({
10841
- name: z75.string().min(1).optional(),
10842
- slack_team_id: z75.string().optional(),
10905
+ var updateTeamRequestSchema = z76.object({
10906
+ name: z76.string().min(1).optional(),
10907
+ slack_team_id: z76.string().optional(),
10843
10908
  discovery_mode: teamDiscoveryModeSchema.optional()
10844
10909
  });
10845
- var teamApiSchema = z75.object({
10846
- id: z75.guid().describe("Unique team identifier"),
10847
- name: z75.string().describe("Human-readable team name"),
10848
- created_at: z75.string().describe("ISO 8601 creation timestamp"),
10849
- organization_id: z75.guid().nullable().describe("Parent organization ID, or null if the team is standalone"),
10850
- slack_team_id: z75.string().nullable().describe("Linked Slack workspace ID, or null if Slack is not connected"),
10910
+ var teamApiSchema = z76.object({
10911
+ id: z76.guid().describe("Unique team identifier"),
10912
+ name: z76.string().describe("Human-readable team name"),
10913
+ created_at: z76.string().describe("ISO 8601 creation timestamp"),
10914
+ organization_id: z76.guid().nullable().describe("Parent organization ID, or null if the team is standalone"),
10915
+ slack_team_id: z76.string().nullable().describe("Linked Slack workspace ID, or null if Slack is not connected"),
10851
10916
  // Responses use x-extensible-enum: adding a discovery mode to a strict
10852
10917
  // response enum is breaking in oasdiff, while an added x-extensible-enum
10853
10918
  // value is not. The strict request enum (updateTeamRequestSchema) still
@@ -10856,198 +10921,220 @@ var teamApiSchema = z75.object({
10856
10921
  description: "How the team handles agent discovery"
10857
10922
  })
10858
10923
  });
10859
- var teamResponseApiSchema = z75.object({
10924
+ var teamResponseApiSchema = z76.object({
10860
10925
  team: teamApiSchema
10861
10926
  });
10862
10927
  var TEAM_CONFIG_VERSION = 1;
10863
- var teamConfigDataSchema = z75.object({
10928
+ var teamConfigDataSchema = z76.object({
10864
10929
  browserProviderOverride: BrowserProviderTypeSchema.nullable().optional(),
10865
10930
  // Egress identity (proxy country) — what the target site sees.
10866
10931
  browserLocationOverride: BrowserLocationSchema.nullable().optional(),
10932
+ // Egress mode override (provider / direct / organization-vpn). Location stays
10933
+ // on browserLocationOverride; this is the orthogonal mode axis.
10934
+ browserEgressModeOverride: browserEgressModeSchema.nullable().optional(),
10867
10935
  // Coarse residency + data-handling overrides (the current model).
10868
10936
  dataResidencyOverride: DataResidencySchema.nullable().optional(),
10869
10937
  dataHandlingOverride: DataHandlingSchema.nullable().optional(),
10938
+ // Domains that bypass the org VPN and connect directly (split tunnel).
10939
+ // Union'd at runtime with the org-default list on vpn_proxy_config.
10940
+ vpnBypassDomains: z76.array(z76.string()).max(MAX_VPN_BYPASS_DOMAINS).nullable().optional(),
10870
10941
  // Deprecated: superseded by dataResidencyOverride / dataHandlingOverride.
10871
10942
  // Kept optional so existing v1 rows still parse; the resolver reads the new
10872
10943
  // fields first and falls back to these. Do not surface in the UI.
10873
10944
  browserRegionOverride: BrowserRegionSchema.nullable().optional(),
10874
- sessionRecordingOverride: z75.boolean().nullable().optional()
10945
+ sessionRecordingOverride: z76.boolean().nullable().optional()
10875
10946
  });
10876
- var teamConfigSchema = z75.object({
10877
- version: z75.literal(TEAM_CONFIG_VERSION),
10947
+ var teamConfigSchema = z76.object({
10948
+ version: z76.literal(TEAM_CONFIG_VERSION),
10878
10949
  data: teamConfigDataSchema
10879
10950
  });
10880
- var listTeamInvitesResponseSchema = z75.object({
10881
- invitations: z75.array(teamInvitationApiSchema)
10951
+ var listTeamInvitesResponseSchema = z76.object({
10952
+ invitations: z76.array(teamInvitationApiSchema)
10882
10953
  });
10883
- var teamInsightsCopilotSchema = z76.object({
10884
- id: z76.guid(),
10885
- name: z76.string(),
10886
- teamName: z76.string().nullable().optional(),
10887
- created_at: z76.string().nullable(),
10888
- updated_at: z76.string().nullable(),
10889
- team_id: z76.string().nullable(),
10890
- thread_id: z76.string().nullable(),
10891
- slack_enabled: z76.boolean().nullable()
10892
- });
10893
- var teamInsightsUserProfileSchema = z76.object({
10894
- id: z76.guid(),
10895
- name: z76.string().nullable(),
10896
- email: z76.string()
10954
+ var teamInsightsCopilotSchema = z77.object({
10955
+ id: z77.guid(),
10956
+ name: z77.string(),
10957
+ teamName: z77.string().nullable().optional(),
10958
+ created_at: z77.string().nullable(),
10959
+ updated_at: z77.string().nullable(),
10960
+ team_id: z77.string().nullable(),
10961
+ thread_id: z77.string().nullable(),
10962
+ slack_enabled: z77.boolean().nullable()
10963
+ });
10964
+ var teamInsightsUserProfileSchema = z77.object({
10965
+ id: z77.guid(),
10966
+ name: z77.string().nullable(),
10967
+ email: z77.string()
10897
10968
  });
10898
10969
  var teamInsightsUserUsageSchema = teamInsightsUserProfileSchema.extend(
10899
10970
  {
10900
- runCount: z76.number(),
10901
- lastRun: z76.string().nullable()
10971
+ runCount: z77.number(),
10972
+ lastRun: z77.string().nullable()
10902
10973
  }
10903
10974
  );
10904
- var teamInsightsMetricSourceSchema = z76.object({
10975
+ var teamInsightsMetricSourceSchema = z77.object({
10905
10976
  source: agentRunSourceSchema,
10906
- runsTotal: z76.number(),
10907
- completedRuns: z76.number()
10977
+ runsTotal: z77.number(),
10978
+ completedRuns: z77.number()
10908
10979
  });
10909
10980
  var teamInsightsCopilotWithRunsSchema = teamInsightsCopilotSchema.extend({
10910
- integrations: z76.array(z76.string()),
10911
- uniqueUsersCount: z76.number(),
10912
- users: z76.array(teamInsightsUserUsageSchema),
10913
- totalRuns: z76.number(),
10914
- completedRuns: z76.number(),
10915
- totalTimeSpentMs: z76.number(),
10916
- averageTimeSpentMs: z76.number(),
10917
- completedRunsWithTiming: z76.number(),
10918
- sources: z76.array(teamInsightsMetricSourceSchema)
10919
- });
10920
- var teamInsightsAgentsRunResponseSchema = z76.object({
10921
- data: z76.array(teamInsightsCopilotWithRunsSchema),
10922
- total: z76.number()
10923
- });
10924
- var teamInsightsMetricsResponseSchema = z76.object({
10925
- runsTotal: z76.number(),
10926
- completedRuns: z76.number(),
10927
- sources: z76.array(teamInsightsMetricSourceSchema)
10928
- });
10929
- var teamInsightsUserAgentRunSchema = z76.object({
10930
- id: z76.guid(),
10931
- created_at: z76.string(),
10932
- updated_at: z76.string(),
10933
- agent_id: z76.guid(),
10934
- agent_name: z76.string(),
10935
- build_id: z76.guid(),
10936
- source: z76.string().nullable(),
10937
- started_at: z76.string().nullable(),
10938
- completed_at: z76.string().nullable()
10939
- });
10940
- var teamInsightsAgentSchema = z76.object({
10941
- id: z76.guid(),
10942
- name: z76.string(),
10943
- teamName: z76.string().nullable().optional(),
10944
- runs: z76.array(teamInsightsUserAgentRunSchema)
10945
- });
10946
- var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
10947
- agents: z76.array(teamInsightsAgentSchema),
10948
- runs: z76.array(teamInsightsUserAgentRunSchema),
10949
- totalRuns: z76.number()
10950
- });
10951
- var teamInsightsUsersResponseSchema = z76.object({
10952
- data: z76.array(teamInsightsUserWithAgentsAndRunsSchema),
10953
- total: z76.number()
10954
- });
10955
- var guardrailsAuthorSchema = z77.object({
10981
+ integrations: z77.array(z77.string()),
10982
+ uniqueUsersCount: z77.number(),
10983
+ users: z77.array(teamInsightsUserUsageSchema),
10984
+ totalRuns: z77.number(),
10985
+ completedRuns: z77.number(),
10986
+ totalTimeSpentMs: z77.number(),
10987
+ averageTimeSpentMs: z77.number(),
10988
+ completedRunsWithTiming: z77.number(),
10989
+ sources: z77.array(teamInsightsMetricSourceSchema)
10990
+ });
10991
+ var teamInsightsAgentsRunResponseSchema = z77.object({
10992
+ data: z77.array(teamInsightsCopilotWithRunsSchema),
10993
+ total: z77.number()
10994
+ });
10995
+ var teamInsightsMetricsResponseSchema = z77.object({
10996
+ runsTotal: z77.number(),
10997
+ completedRuns: z77.number(),
10998
+ sources: z77.array(teamInsightsMetricSourceSchema)
10999
+ });
11000
+ var teamInsightsUserAgentRunSchema = z77.object({
10956
11001
  id: z77.guid(),
10957
- name: z77.string().nullable(),
10958
- email: z77.email()
10959
- });
10960
- var guardrailsRevisionSchema = z77.object({
11002
+ created_at: z77.string(),
11003
+ updated_at: z77.string(),
11004
+ agent_id: z77.guid(),
11005
+ agent_name: z77.string(),
11006
+ build_id: z77.guid(),
11007
+ source: z77.string().nullable(),
11008
+ started_at: z77.string().nullable(),
11009
+ completed_at: z77.string().nullable()
11010
+ });
11011
+ var teamInsightsAgentSchema = z77.object({
10961
11012
  id: z77.guid(),
10962
- teamId: z77.guid(),
10963
- guardrailsText: z77.string().nullable(),
10964
- blockedDomains: z77.array(z77.string()),
10965
- createdAt: z77.string(),
11013
+ name: z77.string(),
11014
+ teamName: z77.string().nullable().optional(),
11015
+ runs: z77.array(teamInsightsUserAgentRunSchema)
11016
+ });
11017
+ var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
11018
+ agents: z77.array(teamInsightsAgentSchema),
11019
+ runs: z77.array(teamInsightsUserAgentRunSchema),
11020
+ totalRuns: z77.number()
11021
+ });
11022
+ var teamInsightsUsersResponseSchema = z77.object({
11023
+ data: z77.array(teamInsightsUserWithAgentsAndRunsSchema),
11024
+ total: z77.number()
11025
+ });
11026
+ var guardrailsAuthorSchema = z78.object({
11027
+ id: z78.guid(),
11028
+ name: z78.string().nullable(),
11029
+ email: z78.email()
11030
+ });
11031
+ var guardrailsRevisionSchema = z78.object({
11032
+ id: z78.guid(),
11033
+ teamId: z78.guid(),
11034
+ guardrailsText: z78.string().nullable(),
11035
+ blockedDomains: z78.array(z78.string()),
11036
+ createdAt: z78.string(),
10966
11037
  createdBy: guardrailsAuthorSchema
10967
11038
  });
10968
- var getTeamGuardrailsResponseSchema = z77.object({
11039
+ var getTeamGuardrailsResponseSchema = z78.object({
10969
11040
  current: guardrailsRevisionSchema.nullable()
10970
11041
  });
10971
- var listTeamGuardrailsRevisionsQuerySchema = z77.object({
10972
- limit: z77.coerce.number().int().min(1).max(100).default(20),
10973
- offset: z77.coerce.number().int().min(0).default(0)
11042
+ var listTeamGuardrailsRevisionsQuerySchema = z78.object({
11043
+ limit: z78.coerce.number().int().min(1).max(100).default(20),
11044
+ offset: z78.coerce.number().int().min(0).default(0)
10974
11045
  });
10975
- var listTeamGuardrailsRevisionsResponseSchema = z77.object({
10976
- revisions: z77.array(guardrailsRevisionSchema),
10977
- total: z77.number().int().nonnegative()
11046
+ var listTeamGuardrailsRevisionsResponseSchema = z78.object({
11047
+ revisions: z78.array(guardrailsRevisionSchema),
11048
+ total: z78.number().int().nonnegative()
10978
11049
  });
10979
- var createTeamGuardrailsRevisionRequestSchema = z77.object({
10980
- guardrailsText: z77.string().max(MAX_GUARDRAILS_TEXT_LENGTH).nullable().transform((value) => value && value.trim().length > 0 ? value : null),
10981
- blockedDomains: z77.array(z77.string()).max(MAX_BLOCKED_DOMAINS)
11050
+ var createTeamGuardrailsRevisionRequestSchema = z78.object({
11051
+ guardrailsText: z78.string().max(MAX_GUARDRAILS_TEXT_LENGTH).nullable().transform((value) => value && value.trim().length > 0 ? value : null),
11052
+ blockedDomains: z78.array(z78.string()).max(MAX_BLOCKED_DOMAINS)
10982
11053
  });
10983
- var userDismissalListResponseSchema = z78.object({
10984
- data: z78.array(z78.string())
11054
+ var userDismissalListResponseSchema = z79.object({
11055
+ data: z79.array(z79.string())
10985
11056
  });
10986
- var userDismissalMutationSchema = z78.object({
10987
- elementKey: z78.string()
11057
+ var userDismissalMutationSchema = z79.object({
11058
+ elementKey: z79.string()
10988
11059
  });
10989
11060
  var PASSWORD_MIN = 1;
10990
11061
  var PASSWORD_MAX = 1024;
10991
11062
  var NAME_MAX = 200;
10992
11063
  var URL_MAX = 500;
10993
11064
  var USERNAME_MAX = 200;
10994
- var vpnProxyConfigSummarySchema = z79.object({
10995
- id: z79.guid(),
10996
- name: z79.string(),
10997
- server: z79.string(),
10998
- username: z79.string(),
10999
- enabled: z79.boolean(),
11000
- passwordSet: z79.boolean(),
11001
- organizationCount: z79.number().int().nonnegative(),
11002
- createdAt: z79.string(),
11003
- updatedAt: z79.string()
11004
- });
11005
- var vpnProxyConfigListResponseSchema = z79.object({
11006
- configs: z79.array(vpnProxyConfigSummarySchema)
11007
- });
11008
- var vpnProxyConfigCreateRequestSchema = z79.object({
11009
- name: z79.string().trim().min(1).max(NAME_MAX),
11010
- server: z79.string().trim().min(1).max(URL_MAX).url(),
11011
- username: z79.string().trim().min(1).max(USERNAME_MAX),
11012
- password: z79.string().min(PASSWORD_MIN).max(PASSWORD_MAX),
11013
- enabled: z79.boolean().prefault(true)
11014
- });
11015
- var vpnProxyConfigCreateResponseSchema = z79.object({
11065
+ var vpnProxyConfigSummarySchema = z80.object({
11066
+ id: z80.guid(),
11067
+ name: z80.string(),
11068
+ server: z80.string(),
11069
+ username: z80.string(),
11070
+ enabled: z80.boolean(),
11071
+ passwordSet: z80.boolean(),
11072
+ organizationCount: z80.number().int().nonnegative(),
11073
+ createdAt: z80.string(),
11074
+ updatedAt: z80.string()
11075
+ });
11076
+ var vpnProxyConfigListResponseSchema = z80.object({
11077
+ configs: z80.array(vpnProxyConfigSummarySchema)
11078
+ });
11079
+ var vpnProxyConfigCreateRequestSchema = z80.object({
11080
+ name: z80.string().trim().min(1).max(NAME_MAX),
11081
+ server: z80.string().trim().min(1).max(URL_MAX).url(),
11082
+ username: z80.string().trim().min(1).max(USERNAME_MAX),
11083
+ password: z80.string().min(PASSWORD_MIN).max(PASSWORD_MAX),
11084
+ enabled: z80.boolean().prefault(true)
11085
+ });
11086
+ var vpnProxyConfigCreateResponseSchema = z80.object({
11016
11087
  config: vpnProxyConfigSummarySchema
11017
11088
  });
11018
- var vpnProxyConfigUpdateRequestSchema = z79.object({
11019
- name: z79.string().trim().min(1).max(NAME_MAX).optional(),
11020
- server: z79.string().trim().min(1).max(URL_MAX).url().optional(),
11021
- username: z79.string().trim().min(1).max(USERNAME_MAX).optional(),
11022
- password: z79.string().min(PASSWORD_MIN).max(PASSWORD_MAX).optional(),
11023
- enabled: z79.boolean().optional()
11089
+ var vpnProxyConfigUpdateRequestSchema = z80.object({
11090
+ name: z80.string().trim().min(1).max(NAME_MAX).optional(),
11091
+ server: z80.string().trim().min(1).max(URL_MAX).url().optional(),
11092
+ username: z80.string().trim().min(1).max(USERNAME_MAX).optional(),
11093
+ password: z80.string().min(PASSWORD_MIN).max(PASSWORD_MAX).optional(),
11094
+ enabled: z80.boolean().optional()
11024
11095
  });
11025
- var vpnProxyConfigUpdateResponseSchema = z79.object({
11096
+ var vpnProxyConfigUpdateResponseSchema = z80.object({
11026
11097
  config: vpnProxyConfigSummarySchema
11027
11098
  });
11028
- var vpnProxyConfigDeleteResponseSchema = z79.object({
11029
- success: z79.literal(true)
11099
+ var vpnProxyConfigDeleteResponseSchema = z80.object({
11100
+ success: z80.literal(true)
11030
11101
  });
11031
- var vpnProxyConfigOrganizationSchema = z79.object({
11032
- id: z79.guid(),
11033
- organizationId: z79.guid(),
11034
- organizationName: z79.string(),
11035
- attachedAt: z79.string()
11102
+ var vpnProxyConfigOrganizationSchema = z80.object({
11103
+ id: z80.guid(),
11104
+ organizationId: z80.guid(),
11105
+ organizationName: z80.string(),
11106
+ bypassDomains: z80.array(z80.string()),
11107
+ vpnEnforced: z80.boolean(),
11108
+ attachedAt: z80.string()
11036
11109
  });
11037
- var vpnProxyConfigOrganizationListResponseSchema = z79.object({
11038
- organizations: z79.array(vpnProxyConfigOrganizationSchema)
11110
+ var vpnProxyConfigOrganizationListResponseSchema = z80.object({
11111
+ organizations: z80.array(vpnProxyConfigOrganizationSchema)
11039
11112
  });
11040
- var vpnProxyConfigAttachOrganizationRequestSchema = z79.object({
11041
- organizationId: z79.guid()
11113
+ var vpnProxyConfigAttachOrganizationRequestSchema = z80.object({
11114
+ organizationId: z80.guid(),
11115
+ bypassDomains: z80.array(z80.string()).max(MAX_VPN_BYPASS_DOMAINS).prefault([]),
11116
+ vpnEnforced: z80.boolean().prefault(false)
11042
11117
  });
11043
- var vpnProxyConfigAttachOrganizationResponseSchema = z79.object({
11118
+ var vpnProxyConfigAttachOrganizationResponseSchema = z80.object({
11044
11119
  attachment: vpnProxyConfigOrganizationSchema
11045
11120
  });
11046
- var vpnProxyConfigDetachOrganizationResponseSchema = z79.object({
11047
- success: z79.literal(true)
11121
+ var vpnProxyConfigDetachOrganizationResponseSchema = z80.object({
11122
+ success: z80.literal(true)
11123
+ });
11124
+ var vpnProxyConfigForOrganizationAttachmentSchema = z80.object({
11125
+ bypassDomains: z80.array(z80.string()),
11126
+ vpnEnforced: z80.boolean()
11127
+ });
11128
+ var vpnProxyConfigForOrganizationResponseSchema = z80.object({
11129
+ config: vpnProxyConfigSummarySchema.nullable(),
11130
+ attachment: vpnProxyConfigForOrganizationAttachmentSchema.nullable()
11048
11131
  });
11049
- var vpnProxyConfigForOrganizationResponseSchema = z79.object({
11050
- config: vpnProxyConfigSummarySchema.nullable()
11132
+ var vpnProxyConfigUpdateOrganizationPolicyRequestSchema = z80.object({
11133
+ bypassDomains: z80.array(z80.string()).max(MAX_VPN_BYPASS_DOMAINS).optional(),
11134
+ vpnEnforced: z80.boolean().optional()
11135
+ });
11136
+ var vpnProxyConfigUpdateOrganizationPolicyResponseSchema = z80.object({
11137
+ attachment: vpnProxyConfigOrganizationSchema
11051
11138
  });
11052
11139
  function canonicalizeSopInput(config) {
11053
11140
  const { input } = config.data;
@@ -11067,7 +11154,7 @@ function canonicalizeSopInput(config) {
11067
11154
  }
11068
11155
  __name(canonicalizeSopInput, "canonicalizeSopInput");
11069
11156
  __name2(canonicalizeSopInput, "canonicalizeSopInput");
11070
- var caseFilterStatusSchema = z80.enum([
11157
+ var caseFilterStatusSchema = z81.enum([
11071
11158
  "pending",
11072
11159
  "claimed",
11073
11160
  "completed",
@@ -11075,19 +11162,19 @@ var caseFilterStatusSchema = z80.enum([
11075
11162
  "needs_input",
11076
11163
  "postponed"
11077
11164
  ]);
11078
- var casesFiltersSchema = z80.object({
11079
- status: z80.array(caseFilterStatusSchema).optional(),
11080
- created_at_from: z80.string().optional(),
11081
- updated_at_from: z80.string().optional(),
11082
- labels: z80.record(z80.string(), z80.array(z80.string())).optional()
11165
+ var casesFiltersSchema = z81.object({
11166
+ status: z81.array(caseFilterStatusSchema).optional(),
11167
+ created_at_from: z81.string().optional(),
11168
+ updated_at_from: z81.string().optional(),
11169
+ labels: z81.record(z81.string(), z81.array(z81.string())).optional()
11083
11170
  });
11084
- var casesListRequestBodySchema = z80.object({
11171
+ var casesListRequestBodySchema = z81.object({
11085
11172
  filters: casesFiltersSchema.default({}),
11086
- limit: z80.int().min(1).max(100).default(25),
11087
- offset: z80.int().min(0).default(0),
11088
- sort_by: z80.enum(["created_at", "updated_at", "postponed_to"]).default("created_at"),
11089
- sort_order: z80.enum(["asc", "desc"]).default("desc"),
11090
- search: z80.string().optional()
11173
+ limit: z81.int().min(1).max(100).default(25),
11174
+ offset: z81.int().min(0).default(0),
11175
+ sort_by: z81.enum(["created_at", "updated_at", "postponed_to"]).default("created_at"),
11176
+ sort_order: z81.enum(["asc", "desc"]).default("desc"),
11177
+ search: z81.string().optional()
11091
11178
  });
11092
11179
  function toBase64(input) {
11093
11180
  if (typeof btoa === "function") {
@@ -11182,7 +11269,7 @@ function setFilterValuesByCategoryKey(filters, categoryKey, values) {
11182
11269
  const { status: _, ...rest } = filters;
11183
11270
  return rest;
11184
11271
  }
11185
- const parsed = z80.array(caseFilterStatusSchema).safeParse(values);
11272
+ const parsed = z81.array(caseFilterStatusSchema).safeParse(values);
11186
11273
  if (!parsed.success) {
11187
11274
  return filters;
11188
11275
  }
@@ -12445,11 +12532,11 @@ function emptyConfig() {
12445
12532
  __name(emptyConfig, "emptyConfig");
12446
12533
 
12447
12534
  // src/config/env.ts
12448
- import { z as z81 } from "zod";
12449
- var optionalEnvString = z81.string().optional().transform(
12535
+ import { z as z82 } from "zod";
12536
+ var optionalEnvString = z82.string().optional().transform(
12450
12537
  (value) => value === void 0 || value === "" ? void 0 : value
12451
12538
  );
12452
- var CliEnvSchema = z81.object({
12539
+ var CliEnvSchema = z82.object({
12453
12540
  DUVO_PROFILE: optionalEnvString,
12454
12541
  DUVO_API_KEY: optionalEnvString,
12455
12542
  DUVO_API_BASE_URL: optionalEnvString,
@@ -12951,9 +13038,9 @@ async function requireAuthenticatedConfig(command) {
12951
13038
  __name(requireAuthenticatedConfig, "requireAuthenticatedConfig");
12952
13039
 
12953
13040
  // src/commands/shared/team-context.ts
12954
- import { z as z82 } from "zod";
12955
- var teamSchema = z82.object({ id: z82.string() });
12956
- var listMyTeamsResponseSchema = z82.object({ teams: z82.array(teamSchema) });
13041
+ import { z as z83 } from "zod";
13042
+ var teamSchema = z83.object({ id: z83.string() });
13043
+ var listMyTeamsResponseSchema = z83.object({ teams: z83.array(teamSchema) });
12957
13044
  async function resolveRequiredTeamId(config, options = {}) {
12958
13045
  if (options.override) {
12959
13046
  return options.override;
@@ -13736,109 +13823,109 @@ import { readFile as readFile2 } from "node:fs/promises";
13736
13823
  import { confirm as confirm2, isCancel as isCancel2, text } from "@clack/prompts";
13737
13824
 
13738
13825
  // src/api/agent-schemas.ts
13739
- import { z as z84 } from "zod";
13826
+ import { z as z85 } from "zod";
13740
13827
 
13741
13828
  // src/api/json-value.ts
13742
- import { z as z83 } from "zod";
13743
- var jsonValueSchema = z83.lazy(
13744
- () => z83.union([
13745
- z83.string(),
13746
- z83.number(),
13747
- z83.boolean(),
13748
- z83.null(),
13749
- z83.array(jsonValueSchema),
13750
- z83.record(z83.string(), jsonValueSchema)
13829
+ import { z as z84 } from "zod";
13830
+ var jsonValueSchema = z84.lazy(
13831
+ () => z84.union([
13832
+ z84.string(),
13833
+ z84.number(),
13834
+ z84.boolean(),
13835
+ z84.null(),
13836
+ z84.array(jsonValueSchema),
13837
+ z84.record(z84.string(), jsonValueSchema)
13751
13838
  ])
13752
13839
  );
13753
13840
 
13754
13841
  // src/api/agent-schemas.ts
13755
- var publicAgentSchema = z84.object({
13756
- id: z84.string(),
13757
- name: z84.string(),
13758
- slack_enabled: z84.boolean().nullish(),
13759
- microsoft_teams_enabled: z84.boolean().nullish(),
13760
- agentic_memory_enabled: z84.boolean().nullish(),
13761
- thread_id: z84.string().nullish(),
13762
- created_at: z84.string().nullish(),
13763
- updated_at: z84.string().nullish(),
13764
- latest_build: z84.object({ config: jsonValueSchema.nullish() }).nullish()
13765
- });
13766
- var publicBuildSchema = z84.object({
13767
- id: z84.string(),
13768
- agent_id: z84.string(),
13769
- name: z84.string(),
13770
- revision_number: z84.number().nullish(),
13771
- created_at: z84.string().nullish(),
13772
- updated_at: z84.string().nullish()
13773
- });
13774
- var listAgentsResponseSchema = z84.object({
13775
- agents: z84.array(publicAgentSchema),
13776
- total: z84.number().nullish(),
13777
- limit: z84.number().nullish(),
13778
- offset: z84.number().nullish()
13779
- });
13780
- var agentUserContextSchema = z84.object({
13781
- pinned_at: z84.string().nullable()
13782
- });
13783
- var getAgentResponseSchema = z84.object({
13842
+ var publicAgentSchema = z85.object({
13843
+ id: z85.string(),
13844
+ name: z85.string(),
13845
+ slack_enabled: z85.boolean().nullish(),
13846
+ microsoft_teams_enabled: z85.boolean().nullish(),
13847
+ agentic_memory_enabled: z85.boolean().nullish(),
13848
+ thread_id: z85.string().nullish(),
13849
+ created_at: z85.string().nullish(),
13850
+ updated_at: z85.string().nullish(),
13851
+ latest_build: z85.object({ config: jsonValueSchema.nullish() }).nullish()
13852
+ });
13853
+ var publicBuildSchema = z85.object({
13854
+ id: z85.string(),
13855
+ agent_id: z85.string(),
13856
+ name: z85.string(),
13857
+ revision_number: z85.number().nullish(),
13858
+ created_at: z85.string().nullish(),
13859
+ updated_at: z85.string().nullish()
13860
+ });
13861
+ var listAgentsResponseSchema = z85.object({
13862
+ agents: z85.array(publicAgentSchema),
13863
+ total: z85.number().nullish(),
13864
+ limit: z85.number().nullish(),
13865
+ offset: z85.number().nullish()
13866
+ });
13867
+ var agentUserContextSchema = z85.object({
13868
+ pinned_at: z85.string().nullable()
13869
+ });
13870
+ var getAgentResponseSchema = z85.object({
13784
13871
  agent: publicAgentSchema,
13785
13872
  user_context: agentUserContextSchema.optional()
13786
13873
  });
13787
- var createAgentResponseSchema = z84.object({
13874
+ var createAgentResponseSchema = z85.object({
13788
13875
  agent: publicAgentSchema,
13789
13876
  build: publicBuildSchema.optional()
13790
13877
  });
13791
- var deleteAgentResponseSchema = z84.object({
13792
- success: z84.literal(true)
13793
- });
13794
- var namedRefSchema = z84.object({
13795
- id: z84.string(),
13796
- name: z84.string()
13797
- });
13798
- var moveQueueRefSchema = z84.object({
13799
- id: z84.string(),
13800
- name: z84.string(),
13801
- item_count: z84.number()
13802
- });
13803
- var connectionDecisionSchema = z84.object({
13804
- agent_id: z84.string(),
13805
- agent_name: z84.string(),
13806
- integration_type: z84.string(),
13807
- integration_name: z84.string(),
13808
- instance_name: z84.string(),
13809
- decision: z84.string()
13810
- });
13811
- var customRebuildSchema = z84.object({
13812
- agent_id: z84.string(),
13813
- agent_name: z84.string(),
13814
- custom_integration_name: z84.string()
13815
- });
13816
- var moveAgentResponseSchema = z84.object({
13817
- source_team_id: z84.string(),
13818
- target_team_id: z84.string(),
13819
- root_agent_id: z84.string(),
13820
- agents: z84.array(namedRefSchema),
13821
- queues: z84.array(moveQueueRefSchema),
13822
- total_case_items: z84.number(),
13823
- total_runs: z84.number(),
13824
- skills_to_clone: z84.array(namedRefSchema),
13825
- files_to_copy: z84.array(z84.object({ path: z84.string() })),
13826
- warnings: z84.object({
13827
- outcome: z84.object({
13828
- instances_reconnected: z84.array(connectionDecisionSchema),
13829
- instances_disconnected: z84.array(connectionDecisionSchema),
13830
- custom_integrations_to_rebuild: z84.array(customRebuildSchema),
13831
- catalog_rows_created_on_target: z84.number()
13878
+ var deleteAgentResponseSchema = z85.object({
13879
+ success: z85.literal(true)
13880
+ });
13881
+ var namedRefSchema = z85.object({
13882
+ id: z85.string(),
13883
+ name: z85.string()
13884
+ });
13885
+ var moveQueueRefSchema = z85.object({
13886
+ id: z85.string(),
13887
+ name: z85.string(),
13888
+ item_count: z85.number()
13889
+ });
13890
+ var connectionDecisionSchema = z85.object({
13891
+ agent_id: z85.string(),
13892
+ agent_name: z85.string(),
13893
+ integration_type: z85.string(),
13894
+ integration_name: z85.string(),
13895
+ instance_name: z85.string(),
13896
+ decision: z85.string()
13897
+ });
13898
+ var customRebuildSchema = z85.object({
13899
+ agent_id: z85.string(),
13900
+ agent_name: z85.string(),
13901
+ custom_integration_name: z85.string()
13902
+ });
13903
+ var moveAgentResponseSchema = z85.object({
13904
+ source_team_id: z85.string(),
13905
+ target_team_id: z85.string(),
13906
+ root_agent_id: z85.string(),
13907
+ agents: z85.array(namedRefSchema),
13908
+ queues: z85.array(moveQueueRefSchema),
13909
+ total_case_items: z85.number(),
13910
+ total_runs: z85.number(),
13911
+ skills_to_clone: z85.array(namedRefSchema),
13912
+ files_to_copy: z85.array(z85.object({ path: z85.string() })),
13913
+ warnings: z85.object({
13914
+ outcome: z85.object({
13915
+ instances_reconnected: z85.array(connectionDecisionSchema),
13916
+ instances_disconnected: z85.array(connectionDecisionSchema),
13917
+ custom_integrations_to_rebuild: z85.array(customRebuildSchema),
13918
+ catalog_rows_created_on_target: z85.number()
13832
13919
  }),
13833
- dropped_folders: z84.array(namedRefSchema),
13834
- dropped_memory_count: z84.number(),
13835
- files_copied_count: z84.number(),
13836
- files_skipped_conflict: z84.array(z84.string())
13920
+ dropped_folders: z85.array(namedRefSchema),
13921
+ dropped_memory_count: z85.number(),
13922
+ files_copied_count: z85.number(),
13923
+ files_skipped_conflict: z85.array(z85.string())
13837
13924
  }),
13838
- options: z84.object({
13839
- move_learnings: z84.boolean()
13925
+ options: z85.object({
13926
+ move_learnings: z85.boolean()
13840
13927
  }),
13841
- applied: z84.boolean()
13928
+ applied: z85.boolean()
13842
13929
  });
13843
13930
  var buildConfigSchema = StoredAgentConfigSchemaV2;
13844
13931
  var DEFAULT_NEW_AGENT_NAME = DEFAULT_AGENT_NAME;
@@ -14555,29 +14642,29 @@ function registerAgentsEvalScores(agents) {
14555
14642
  __name(registerAgentsEvalScores, "registerAgentsEvalScores");
14556
14643
 
14557
14644
  // src/api/build-schemas.ts
14558
- import { z as z85 } from "zod";
14559
- var publicBuildSchema2 = z85.object({
14560
- id: z85.string(),
14561
- agent_id: z85.string(),
14562
- name: z85.string(),
14563
- status: z85.string().nullish(),
14645
+ import { z as z86 } from "zod";
14646
+ var publicBuildSchema2 = z86.object({
14647
+ id: z86.string(),
14648
+ agent_id: z86.string(),
14649
+ name: z86.string(),
14650
+ status: z86.string().nullish(),
14564
14651
  config: jsonValueSchema.nullish(),
14565
- revision_number: z85.number().nullish(),
14566
- created_at: z85.string().nullish(),
14567
- updated_at: z85.string().nullish()
14652
+ revision_number: z86.number().nullish(),
14653
+ created_at: z86.string().nullish(),
14654
+ updated_at: z86.string().nullish()
14568
14655
  });
14569
- var listBuildsResponseSchema2 = z85.object({
14570
- builds: z85.array(publicBuildSchema2),
14571
- total: z85.number().nullish(),
14572
- limit: z85.number().nullish(),
14573
- offset: z85.number().nullish()
14656
+ var listBuildsResponseSchema2 = z86.object({
14657
+ builds: z86.array(publicBuildSchema2),
14658
+ total: z86.number().nullish(),
14659
+ limit: z86.number().nullish(),
14660
+ offset: z86.number().nullish()
14574
14661
  });
14575
- var getBuildResponseSchema = z85.object({
14662
+ var getBuildResponseSchema = z86.object({
14576
14663
  build: publicBuildSchema2
14577
14664
  });
14578
- var createBuildResponseSchema = z85.object({
14665
+ var createBuildResponseSchema = z86.object({
14579
14666
  build: publicBuildSchema2,
14580
- agent: z85.object({ id: z85.string() })
14667
+ agent: z86.object({ id: z86.string() })
14581
14668
  });
14582
14669
 
14583
14670
  // src/commands/agents/get.ts
@@ -14973,30 +15060,30 @@ ${plan.warnings.dropped_memory_count} AOP exception(s) will be cleared for users
14973
15060
  __name(renderPlan, "renderPlan");
14974
15061
 
14975
15062
  // src/api/schedule-schemas.ts
14976
- import { z as z86 } from "zod";
14977
- var publicScheduleSchema = z86.object({
14978
- id: z86.string(),
14979
- build_id: z86.string(),
14980
- agent_id: z86.string(),
14981
- user_id: z86.string(),
14982
- enabled: z86.boolean(),
14983
- frequency: z86.string(),
14984
- time: z86.string().nullish(),
14985
- timezone: z86.string(),
14986
- day: z86.string().nullish(),
14987
- day_of_month: z86.number().nullish(),
14988
- cron: z86.string().nullish(),
14989
- source: z86.string().nullish(),
14990
- task: z86.string().nullish(),
14991
- recurring: z86.boolean().nullish(),
14992
- created_at: z86.string(),
14993
- updated_at: z86.string()
14994
- });
14995
- var listSchedulesResponseSchema = z86.object({
14996
- schedules: z86.array(publicScheduleSchema)
14997
- });
14998
- var deleteScheduleResponseSchema = z86.object({
14999
- success: z86.literal(true)
15063
+ import { z as z87 } from "zod";
15064
+ var publicScheduleSchema = z87.object({
15065
+ id: z87.string(),
15066
+ build_id: z87.string(),
15067
+ agent_id: z87.string(),
15068
+ user_id: z87.string(),
15069
+ enabled: z87.boolean(),
15070
+ frequency: z87.string(),
15071
+ time: z87.string().nullish(),
15072
+ timezone: z87.string(),
15073
+ day: z87.string().nullish(),
15074
+ day_of_month: z87.number().nullish(),
15075
+ cron: z87.string().nullish(),
15076
+ source: z87.string().nullish(),
15077
+ task: z87.string().nullish(),
15078
+ recurring: z87.boolean().nullish(),
15079
+ created_at: z87.string(),
15080
+ updated_at: z87.string()
15081
+ });
15082
+ var listSchedulesResponseSchema = z87.object({
15083
+ schedules: z87.array(publicScheduleSchema)
15084
+ });
15085
+ var deleteScheduleResponseSchema = z87.object({
15086
+ success: z87.literal(true)
15000
15087
  });
15001
15088
 
15002
15089
  // src/commands/agents/schedules/render-schedule.ts
@@ -15444,33 +15531,33 @@ function registerAgentsSetModel(agents) {
15444
15531
  __name(registerAgentsSetModel, "registerAgentsSetModel");
15445
15532
 
15446
15533
  // src/api/trigger-schemas.ts
15447
- import { z as z87 } from "zod";
15448
- var triggerSchema = z87.object({
15449
- id: z87.string(),
15450
- agent_id: z87.string(),
15451
- user_id: z87.string(),
15452
- integration_slug: z87.string(),
15453
- trigger_type: z87.string(),
15454
- filter_config: z87.record(z87.string(), z87.unknown()),
15455
- integration_instance_id: z87.string(),
15456
- enabled: z87.boolean(),
15457
- created_at: z87.string(),
15458
- updated_at: z87.string()
15534
+ import { z as z88 } from "zod";
15535
+ var triggerSchema = z88.object({
15536
+ id: z88.string(),
15537
+ agent_id: z88.string(),
15538
+ user_id: z88.string(),
15539
+ integration_slug: z88.string(),
15540
+ trigger_type: z88.string(),
15541
+ filter_config: z88.record(z88.string(), z88.unknown()),
15542
+ integration_instance_id: z88.string(),
15543
+ enabled: z88.boolean(),
15544
+ created_at: z88.string(),
15545
+ updated_at: z88.string()
15459
15546
  });
15460
- var listTriggersResponseSchema = z87.object({
15461
- triggers: z87.array(triggerSchema)
15547
+ var listTriggersResponseSchema = z88.object({
15548
+ triggers: z88.array(triggerSchema)
15462
15549
  });
15463
- var triggerTypeSchema = z87.object({
15464
- integration_slug: z87.string(),
15465
- integration_name: z87.string(),
15466
- icon_url: z87.string(),
15467
- trigger_type: z87.string(),
15468
- label: z87.string(),
15469
- description: z87.string(),
15470
- filter_schema: z87.record(z87.string(), z87.unknown())
15550
+ var triggerTypeSchema = z88.object({
15551
+ integration_slug: z88.string(),
15552
+ integration_name: z88.string(),
15553
+ icon_url: z88.string(),
15554
+ trigger_type: z88.string(),
15555
+ label: z88.string(),
15556
+ description: z88.string(),
15557
+ filter_schema: z88.record(z88.string(), z88.unknown())
15471
15558
  });
15472
- var listTriggerTypesResponseSchema = z87.object({
15473
- trigger_types: z87.array(triggerTypeSchema)
15559
+ var listTriggerTypesResponseSchema = z88.object({
15560
+ trigger_types: z88.array(triggerTypeSchema)
15474
15561
  });
15475
15562
 
15476
15563
  // src/commands/agents/triggers/list.ts
@@ -16100,55 +16187,55 @@ function fieldsToSearchParams(fields) {
16100
16187
  __name(fieldsToSearchParams, "fieldsToSearchParams");
16101
16188
 
16102
16189
  // src/api/integration-schemas.ts
16103
- import { z as z88 } from "zod";
16104
- var integrationSchema = z88.object({
16105
- id: z88.string(),
16106
- name: z88.string(),
16107
- type: z88.string(),
16108
- provider: z88.string(),
16109
- user_id: z88.string().nullable(),
16110
- team_id: z88.string(),
16111
- server_url: z88.string().optional(),
16112
- transport_type: z88.string().optional(),
16113
- auth_method: z88.string().nullish(),
16114
- composio_mcp_id: z88.string().nullish(),
16115
- custom_integration_id: z88.string().nullish(),
16116
- icon_url: z88.string().nullish(),
16117
- oauth_provider: z88.string().nullish(),
16118
- oauth_provider_key: z88.string().nullish(),
16119
- oauth_scopes: z88.array(z88.string()).nullish(),
16120
- integration_id: z88.string().nullish(),
16121
- created_at: z88.string(),
16122
- updated_at: z88.string()
16123
- });
16124
- var integrationsListResponseSchema2 = z88.object({
16125
- integrations: z88.array(integrationSchema)
16190
+ import { z as z89 } from "zod";
16191
+ var integrationSchema = z89.object({
16192
+ id: z89.string(),
16193
+ name: z89.string(),
16194
+ type: z89.string(),
16195
+ provider: z89.string(),
16196
+ user_id: z89.string().nullable(),
16197
+ team_id: z89.string(),
16198
+ server_url: z89.string().optional(),
16199
+ transport_type: z89.string().optional(),
16200
+ auth_method: z89.string().nullish(),
16201
+ composio_mcp_id: z89.string().nullish(),
16202
+ custom_integration_id: z89.string().nullish(),
16203
+ icon_url: z89.string().nullish(),
16204
+ oauth_provider: z89.string().nullish(),
16205
+ oauth_provider_key: z89.string().nullish(),
16206
+ oauth_scopes: z89.array(z89.string()).nullish(),
16207
+ integration_id: z89.string().nullish(),
16208
+ created_at: z89.string(),
16209
+ updated_at: z89.string()
16210
+ });
16211
+ var integrationsListResponseSchema2 = z89.object({
16212
+ integrations: z89.array(integrationSchema)
16126
16213
  });
16127
16214
  var connectionResponseSchema = integrationSchema;
16128
- var buildIntegrationConfigSchema2 = z88.object({
16129
- id: z88.string(),
16130
- integration_id: z88.string().nullable(),
16131
- custom_integration_id: z88.string().nullable(),
16132
- integration_type: z88.string(),
16133
- integration_name: z88.string(),
16134
- created_at: z88.string()
16215
+ var buildIntegrationConfigSchema2 = z89.object({
16216
+ id: z89.string(),
16217
+ integration_id: z89.string().nullable(),
16218
+ custom_integration_id: z89.string().nullable(),
16219
+ integration_type: z89.string(),
16220
+ integration_name: z89.string(),
16221
+ created_at: z89.string()
16135
16222
  });
16136
- var listBuildIntegrationsResponseSchema2 = z88.object({
16137
- integrations: z88.array(buildIntegrationConfigSchema2)
16223
+ var listBuildIntegrationsResponseSchema2 = z89.object({
16224
+ integrations: z89.array(buildIntegrationConfigSchema2)
16138
16225
  });
16139
- var attachBuildIntegrationsResponseSchema = z88.object({
16140
- success: z88.boolean(),
16141
- count: z88.number()
16226
+ var attachBuildIntegrationsResponseSchema = z89.object({
16227
+ success: z89.boolean(),
16228
+ count: z89.number()
16142
16229
  });
16143
- var buildIntegrationConnectionSchema = z88.object({
16144
- connection_id: z88.string(),
16145
- created_at: z88.string()
16230
+ var buildIntegrationConnectionSchema = z89.object({
16231
+ connection_id: z89.string(),
16232
+ created_at: z89.string()
16146
16233
  });
16147
- var listBuildIntegrationConnectionsResponseSchema = z88.object({
16148
- connections: z88.array(buildIntegrationConnectionSchema)
16234
+ var listBuildIntegrationConnectionsResponseSchema = z89.object({
16235
+ connections: z89.array(buildIntegrationConnectionSchema)
16149
16236
  });
16150
- var successResponseSchema = z88.object({
16151
- success: z88.boolean()
16237
+ var successResponseSchema = z89.object({
16238
+ success: z89.boolean()
16152
16239
  });
16153
16240
 
16154
16241
  // src/commands/build-integrations/attach.ts
@@ -16191,15 +16278,15 @@ function registerBuildIntegrationsAttach(buildIntegrations) {
16191
16278
  __name(registerBuildIntegrationsAttach, "registerBuildIntegrationsAttach");
16192
16279
 
16193
16280
  // src/commands/build-integrations/case-queue-setup.ts
16194
- import { z as z89 } from "zod";
16195
- var slotSchema = z89.object({
16196
- config_id: z89.string(),
16197
- integration_type: z89.string(),
16198
- linked_queue_count: z89.number()
16281
+ import { z as z90 } from "zod";
16282
+ var slotSchema = z90.object({
16283
+ config_id: z90.string(),
16284
+ integration_type: z90.string(),
16285
+ linked_queue_count: z90.number()
16199
16286
  });
16200
- var responseSchema2 = z89.object({
16201
- configs: z89.array(slotSchema),
16202
- has_available_queues: z89.boolean()
16287
+ var responseSchema2 = z90.object({
16288
+ configs: z90.array(slotSchema),
16289
+ has_available_queues: z90.boolean()
16203
16290
  });
16204
16291
  var TABLE_COLUMNS10 = [
16205
16292
  { header: "SLOT ID", cell: /* @__PURE__ */ __name((row) => row.config_id, "cell") },
@@ -16694,9 +16781,9 @@ function registerBuildsList(builds) {
16694
16781
  __name(registerBuildsList, "registerBuildsList");
16695
16782
 
16696
16783
  // src/commands/builds/promote.ts
16697
- import { z as z90 } from "zod";
16698
- var promoteResponseSchema = z90.object({
16699
- success: z90.boolean()
16784
+ import { z as z91 } from "zod";
16785
+ var promoteResponseSchema = z91.object({
16786
+ success: z91.boolean()
16700
16787
  });
16701
16788
  function registerBuildsPromote(builds) {
16702
16789
  builds.command("promote <id>").description(
@@ -17707,7 +17794,7 @@ function parseSortOrder(raw) {
17707
17794
  __name(parseSortOrder, "parseSortOrder");
17708
17795
 
17709
17796
  // src/commands/cases/runs.ts
17710
- import { z as z91 } from "zod";
17797
+ import { z as z92 } from "zod";
17711
17798
  var MIN_LIMIT4 = 1;
17712
17799
  var MAX_LIMIT4 = 10;
17713
17800
  var DEFAULT_LIMIT4 = 3;
@@ -17725,17 +17812,17 @@ var RUNS_TABLE_COLUMNS = [
17725
17812
  cell: /* @__PURE__ */ __name((row) => row.has_pending_human_request ? row.pending_human_request_title ?? "(unknown)" : "", "cell")
17726
17813
  }
17727
17814
  ];
17728
- var recentMessageSchema = z91.object({
17729
- id: z91.string(),
17730
- type: z91.string(),
17731
- role: z91.string(),
17732
- timestamp: z91.string(),
17733
- text_content: z91.string().nullish(),
17734
- tool_call: z91.object({ id: z91.string(), name: z91.string() }).passthrough().nullish(),
17735
- tool_result: z91.object({ tool_call_id: z91.string() }).passthrough().nullish()
17736
- });
17737
- var recentMessagesResponseSchema = z91.object({
17738
- messages: z91.array(recentMessageSchema)
17815
+ var recentMessageSchema = z92.object({
17816
+ id: z92.string(),
17817
+ type: z92.string(),
17818
+ role: z92.string(),
17819
+ timestamp: z92.string(),
17820
+ text_content: z92.string().nullish(),
17821
+ tool_call: z92.object({ id: z92.string(), name: z92.string() }).passthrough().nullish(),
17822
+ tool_result: z92.object({ tool_call_id: z92.string() }).passthrough().nullish()
17823
+ });
17824
+ var recentMessagesResponseSchema = z92.object({
17825
+ messages: z92.array(recentMessageSchema)
17739
17826
  });
17740
17827
  var TEXT_PREVIEW_WIDTH = 60;
17741
17828
  var MESSAGES_TABLE_COLUMNS = [
@@ -17864,55 +17951,55 @@ function registerCases(program) {
17864
17951
  __name(registerCases, "registerCases");
17865
17952
 
17866
17953
  // src/api/clarity-schemas.ts
17867
- import { z as z92 } from "zod";
17868
- var clarityListProcessSchema = z92.object({
17869
- id: z92.guid(),
17870
- name: z92.string(),
17954
+ import { z as z93 } from "zod";
17955
+ var clarityListProcessSchema = z93.object({
17956
+ id: z93.guid(),
17957
+ name: z93.string(),
17871
17958
  status: clarityProcessStatusSchema,
17872
17959
  visibility: clarityProcessVisibilitySchema,
17873
- version: z92.number().int(),
17874
- capture_count: z92.number().int(),
17875
- capture_counts: z92.object({
17876
- video: z92.number().int(),
17877
- interview: z92.number().int(),
17878
- document: z92.number().int()
17960
+ version: z93.number().int(),
17961
+ capture_count: z93.number().int(),
17962
+ capture_counts: z93.object({
17963
+ video: z93.number().int(),
17964
+ interview: z93.number().int(),
17965
+ document: z93.number().int()
17879
17966
  }).optional(),
17880
- pending_invitation_count: z92.number().int(),
17881
- contributors: z92.array(
17882
- z92.object({
17883
- user_id: z92.string(),
17884
- user_name: z92.string()
17967
+ pending_invitation_count: z93.number().int(),
17968
+ contributors: z93.array(
17969
+ z93.object({
17970
+ user_id: z93.string(),
17971
+ user_name: z93.string()
17885
17972
  })
17886
17973
  ),
17887
- created_at: z92.string(),
17888
- created_by_name: z92.string().nullable()
17889
- });
17890
- var listClarityProcessesResponseSchema = z92.object({
17891
- processes: z92.array(clarityListProcessSchema),
17892
- total: z92.number().int(),
17893
- limit: z92.number().int(),
17894
- offset: z92.number().int()
17895
- });
17896
- var createClarityInviteLinkResponseSchema = z92.object({
17897
- invite_link: z92.object({
17898
- id: z92.guid(),
17899
- url: z92.url(),
17900
- created_at: z92.string(),
17901
- created_by: z92.object({
17902
- id: z92.guid(),
17903
- email: z92.email().nullable()
17974
+ created_at: z93.string(),
17975
+ created_by_name: z93.string().nullable()
17976
+ });
17977
+ var listClarityProcessesResponseSchema = z93.object({
17978
+ processes: z93.array(clarityListProcessSchema),
17979
+ total: z93.number().int(),
17980
+ limit: z93.number().int(),
17981
+ offset: z93.number().int()
17982
+ });
17983
+ var createClarityInviteLinkResponseSchema = z93.object({
17984
+ invite_link: z93.object({
17985
+ id: z93.guid(),
17986
+ url: z93.url(),
17987
+ created_at: z93.string(),
17988
+ created_by: z93.object({
17989
+ id: z93.guid(),
17990
+ email: z93.email().nullable()
17904
17991
  })
17905
17992
  })
17906
17993
  });
17907
- var createArtifactImportUploadUrlResponseSchema = z92.object({
17908
- signed_url: z92.url(),
17909
- capture_id: z92.guid(),
17910
- expires_at: z92.iso.datetime()
17994
+ var createArtifactImportUploadUrlResponseSchema = z93.object({
17995
+ signed_url: z93.url(),
17996
+ capture_id: z93.guid(),
17997
+ expires_at: z93.iso.datetime()
17911
17998
  });
17912
- var completeArtifactImportResponseSchema = z92.object({
17999
+ var completeArtifactImportResponseSchema = z93.object({
17913
18000
  capture: clarityCaptureSchema.extend({
17914
- createdAt: z92.iso.datetime(),
17915
- updatedAt: z92.iso.datetime()
18001
+ createdAt: z93.iso.datetime(),
18002
+ updatedAt: z93.iso.datetime()
17916
18003
  })
17917
18004
  });
17918
18005
  var legacyClarityProcessResponseSchema = legacyClarityProcessDetailSchema;
@@ -18351,8 +18438,8 @@ function renderCompletedImport(response) {
18351
18438
  __name(renderCompletedImport, "renderCompletedImport");
18352
18439
 
18353
18440
  // src/commands/clarity/assign-extra-capture-request.ts
18354
- import { z as z93 } from "zod";
18355
- var responseSchema3 = z93.object({
18441
+ import { z as z94 } from "zod";
18442
+ var responseSchema3 = z94.object({
18356
18443
  request: clarityProposalExtraCaptureRequestSchema
18357
18444
  });
18358
18445
  function renderRequest(request) {
@@ -18399,11 +18486,11 @@ function registerClarityAssignExtraCaptureRequest(clarity) {
18399
18486
  __name(registerClarityAssignExtraCaptureRequest, "registerClarityAssignExtraCaptureRequest");
18400
18487
 
18401
18488
  // src/commands/clarity/build-automation.ts
18402
- import { z as z94 } from "zod";
18403
- var responseSchema4 = z94.object({
18404
- automation_run: z94.object({
18405
- id: z94.string(),
18406
- status: z94.string()
18489
+ import { z as z95 } from "zod";
18490
+ var responseSchema4 = z95.object({
18491
+ automation_run: z95.object({
18492
+ id: z95.string(),
18493
+ status: z95.string()
18407
18494
  })
18408
18495
  });
18409
18496
  function registerClarityBuildAutomation(clarity) {
@@ -18474,7 +18561,7 @@ function registerClarityCreateInviteLink(clarity) {
18474
18561
  __name(registerClarityCreateInviteLink, "registerClarityCreateInviteLink");
18475
18562
 
18476
18563
  // src/commands/clarity/doctor.ts
18477
- import { z as z95 } from "zod";
18564
+ import { z as z96 } from "zod";
18478
18565
 
18479
18566
  // src/commands/clarity/render.ts
18480
18567
  var DEFAULT_HUMAN_SUMMARY_LIMIT = 1200;
@@ -20138,19 +20225,6 @@ var CLARITY_WRITE_TOOLS = [
20138
20225
  ],
20139
20226
  description: "Move a landscape node under a new parent or to the root."
20140
20227
  },
20141
- {
20142
- name: "confirmClarityLandscapeNode",
20143
- scope: "v1+v2",
20144
- read_only: false,
20145
- commands: ["duvo clarity landscape confirm-node"],
20146
- endpoints: [
20147
- {
20148
- method: "POST",
20149
- path: "/v2/organizations/:orgId/clarity/hierarchy/nodes/:nodeId/confirm"
20150
- }
20151
- ],
20152
- description: "Confirm a landscape node placement, content, or existence axis."
20153
- },
20154
20228
  {
20155
20229
  name: "generateClarityProcessLandscape",
20156
20230
  scope: "v1+v2",
@@ -20413,8 +20487,8 @@ async function buildTeamContextCheck(config) {
20413
20487
  }
20414
20488
  }
20415
20489
  __name(buildTeamContextCheck, "buildTeamContextCheck");
20416
- var listMyTeamsResponseSchema2 = z95.object({
20417
- teams: z95.array(z95.object({ id: z95.string() }))
20490
+ var listMyTeamsResponseSchema2 = z96.object({
20491
+ teams: z96.array(z96.object({ id: z96.string() }))
20418
20492
  });
20419
20493
  async function buildClarityApiReachableCheck(command, config) {
20420
20494
  let teamId;
@@ -21032,19 +21106,19 @@ function buildGenerateTransformationProposalBody(options) {
21032
21106
  __name(buildGenerateTransformationProposalBody, "buildGenerateTransformationProposalBody");
21033
21107
 
21034
21108
  // src/commands/clarity/get-current-process.ts
21035
- import { z as z96 } from "zod";
21036
- var snapshotSchema = z96.object({
21037
- snapshot: z96.object({
21038
- id: z96.string(),
21039
- kind: z96.string(),
21040
- source_snapshot_id: z96.string().nullable(),
21041
- parent_id: z96.string().nullable(),
21042
- status: z96.string(),
21043
- creator_type: z96.string(),
21044
- user_id: z96.string().nullable(),
21045
- sandbox_id: z96.string().nullable(),
21046
- created_at: z96.string(),
21047
- updated_at: z96.string()
21109
+ import { z as z97 } from "zod";
21110
+ var snapshotSchema = z97.object({
21111
+ snapshot: z97.object({
21112
+ id: z97.string(),
21113
+ kind: z97.string(),
21114
+ source_snapshot_id: z97.string().nullable(),
21115
+ parent_id: z97.string().nullable(),
21116
+ status: z97.string(),
21117
+ creator_type: z97.string(),
21118
+ user_id: z97.string().nullable(),
21119
+ sandbox_id: z97.string().nullable(),
21120
+ created_at: z97.string(),
21121
+ updated_at: z97.string()
21048
21122
  })
21049
21123
  });
21050
21124
  function registerClarityGetCurrentProcess(clarity) {
@@ -21088,19 +21162,19 @@ function registerClarityGetCurrentProcess(clarity) {
21088
21162
  __name(registerClarityGetCurrentProcess, "registerClarityGetCurrentProcess");
21089
21163
 
21090
21164
  // src/commands/clarity/get-transformation-proposal.ts
21091
- import { z as z97 } from "zod";
21092
- var snapshotSchema2 = z97.object({
21093
- snapshot: z97.object({
21094
- id: z97.string(),
21095
- kind: z97.string(),
21096
- source_snapshot_id: z97.string().nullable(),
21097
- parent_id: z97.string().nullable(),
21098
- status: z97.string(),
21099
- creator_type: z97.string(),
21100
- user_id: z97.string().nullable(),
21101
- sandbox_id: z97.string().nullable(),
21102
- created_at: z97.string(),
21103
- updated_at: z97.string()
21165
+ import { z as z98 } from "zod";
21166
+ var snapshotSchema2 = z98.object({
21167
+ snapshot: z98.object({
21168
+ id: z98.string(),
21169
+ kind: z98.string(),
21170
+ source_snapshot_id: z98.string().nullable(),
21171
+ parent_id: z98.string().nullable(),
21172
+ status: z98.string(),
21173
+ creator_type: z98.string(),
21174
+ user_id: z98.string().nullable(),
21175
+ sandbox_id: z98.string().nullable(),
21176
+ created_at: z98.string(),
21177
+ updated_at: z98.string()
21104
21178
  })
21105
21179
  });
21106
21180
  function registerClarityGetTransformationProposal(clarity) {
@@ -21196,7 +21270,7 @@ Transformation proposal versions (${tpVersions.length}):`
21196
21270
  __name(registerClarityGet, "registerClarityGet");
21197
21271
 
21198
21272
  // src/commands/clarity/landscape.ts
21199
- import { z as z98 } from "zod";
21273
+ import { z as z99 } from "zod";
21200
21274
 
21201
21275
  // src/commands/clarity/org-scope.ts
21202
21276
  function getOrgFlag(command) {
@@ -21241,90 +21315,90 @@ var CAPTURES_RESOURCE_PATH = "/clarity/hierarchy/captures";
21241
21315
  var PROPOSED_PROCESSES_RESOURCE_PATH = "/clarity/hierarchy/proposed-processes";
21242
21316
  var PROCESS_NODE_TYPE = "process";
21243
21317
  var AREA_NODE_TYPE = "area";
21244
- var axisSchema = z98.enum(["content", "existence"]);
21245
- var processSummarySchema = z98.object({
21246
- id: z98.string(),
21247
- name: z98.string()
21318
+ var processSummarySchema = z99.object({
21319
+ id: z99.string(),
21320
+ name: z99.string()
21248
21321
  }).passthrough();
21249
- var landscapeNodeSchema = z98.object({
21250
- id: z98.string(),
21251
- parentId: z98.string().nullable(),
21252
- processId: z98.string().nullable(),
21253
- name: z98.string(),
21254
- ownerLabel: z98.string().nullable(),
21322
+ var landscapeNodeSchema = z99.object({
21323
+ id: z99.string(),
21324
+ parentId: z99.string().nullable(),
21325
+ processId: z99.string().nullable(),
21326
+ name: z99.string(),
21327
+ ownerLabel: z99.string().nullable(),
21255
21328
  process: processSummarySchema.nullable()
21256
21329
  }).passthrough();
21257
21330
  var unlinkedProcessSchema = processSummarySchema.extend({
21258
- teamId: z98.string(),
21259
- teamName: z98.string().nullable()
21331
+ teamId: z99.string(),
21332
+ teamName: z99.string().nullable()
21260
21333
  }).passthrough();
21261
- var treeNodeSchema = z98.object({
21262
- id: z98.string(),
21263
- parentId: z98.string().nullable(),
21264
- processId: z98.string().nullable(),
21265
- name: z98.string(),
21266
- ownerLabel: z98.string().nullable(),
21267
- depth: z98.number()
21334
+ var treeNodeSchema = z99.object({
21335
+ id: z99.string(),
21336
+ parentId: z99.string().nullable(),
21337
+ processId: z99.string().nullable(),
21338
+ name: z99.string(),
21339
+ ownerLabel: z99.string().nullable(),
21340
+ depth: z99.number()
21268
21341
  }).passthrough();
21269
- var landscapeResponseSchema = z98.object({
21270
- nodes: z98.array(landscapeNodeSchema),
21271
- links: z98.array(
21272
- z98.object({
21273
- id: z98.string(),
21274
- sourceNodeId: z98.string(),
21275
- targetNodeId: z98.string(),
21276
- type: z98.string(),
21277
- state: z98.string(),
21278
- confidence: z98.number().nullable()
21342
+ var landscapeResponseSchema = z99.object({
21343
+ nodes: z99.array(landscapeNodeSchema),
21344
+ links: z99.array(
21345
+ z99.object({
21346
+ id: z99.string(),
21347
+ sourceNodeId: z99.string(),
21348
+ targetNodeId: z99.string(),
21349
+ type: z99.string(),
21350
+ state: z99.string(),
21351
+ confidence: z99.number().nullable()
21279
21352
  }).passthrough()
21280
21353
  ),
21281
- unlinkedProcesses: z98.array(unlinkedProcessSchema),
21282
- stats: z98.object({
21283
- totalNodes: z98.number(),
21284
- processNodes: z98.number(),
21285
- proposedNodes: z98.number(),
21286
- unsortedProcesses: z98.number(),
21287
- latestUpdatedAt: z98.string().nullable()
21354
+ unlinkedProcesses: z99.array(unlinkedProcessSchema),
21355
+ stats: z99.object({
21356
+ totalNodes: z99.number(),
21357
+ processNodes: z99.number(),
21358
+ proposedNodes: z99.number(),
21359
+ unsortedProcesses: z99.number(),
21360
+ latestUpdatedAt: z99.string().nullable()
21288
21361
  }).passthrough(),
21289
- truncated: z98.boolean()
21362
+ truncated: z99.boolean()
21290
21363
  }).passthrough();
21291
- var treeResponseSchema = z98.object({
21292
- nodes: z98.array(treeNodeSchema),
21293
- truncated: z98.boolean()
21364
+ var treeResponseSchema = z99.object({
21365
+ nodes: z99.array(treeNodeSchema),
21366
+ truncated: z99.boolean()
21294
21367
  }).passthrough();
21295
- var nodeResponseSchema = z98.object({
21296
- id: z98.string(),
21297
- parentId: z98.string().nullable(),
21298
- processId: z98.string().nullable(),
21299
- name: z98.string(),
21300
- ownerLabel: z98.string().nullable()
21368
+ var nodeResponseSchema = z99.object({
21369
+ id: z99.string(),
21370
+ parentId: z99.string().nullable(),
21371
+ processId: z99.string().nullable(),
21372
+ name: z99.string(),
21373
+ ownerLabel: z99.string().nullable()
21301
21374
  }).passthrough();
21302
- var deleteNodeResponseSchema = z98.object({
21303
- deletedCount: z98.number(),
21304
- detachedCount: z98.number()
21305
- });
21306
- var generateLandscapeResponseSchema = z98.object({
21307
- started: z98.literal(true),
21308
- generationId: z98.string(),
21309
- eligibleCaptureCount: z98.number()
21375
+ var deleteNodeResponseSchema = z99.object({
21376
+ deletedCount: z99.number(),
21377
+ detachedCount: z99.number()
21378
+ });
21379
+ var generateLandscapeResponseSchema = z99.object({
21380
+ started: z99.literal(true),
21381
+ generationId: z99.string(),
21382
+ eligibleCaptureCount: z99.number(),
21383
+ eligibleProcessCount: z99.number().int().nonnegative()
21310
21384
  }).passthrough();
21311
- var captureSchema = z98.object({
21312
- id: z98.string(),
21313
- scope: z98.string(),
21314
- type: z98.string(),
21315
- title: z98.string(),
21316
- organizationId: z98.string().nullable(),
21317
- organizationName: z98.string().nullable(),
21318
- teamId: z98.string().nullable(),
21319
- teamName: z98.string().nullable(),
21320
- processNodeId: z98.string().nullable(),
21321
- createdAt: z98.string(),
21322
- transcriptMessageCount: z98.number()
21385
+ var captureSchema = z99.object({
21386
+ id: z99.string(),
21387
+ scope: z99.string(),
21388
+ type: z99.string(),
21389
+ title: z99.string(),
21390
+ organizationId: z99.string().nullable(),
21391
+ organizationName: z99.string().nullable(),
21392
+ teamId: z99.string().nullable(),
21393
+ teamName: z99.string().nullable(),
21394
+ processNodeId: z99.string().nullable(),
21395
+ createdAt: z99.string(),
21396
+ transcriptMessageCount: z99.number()
21323
21397
  }).passthrough();
21324
- var captureListResponseSchema = z98.object({
21325
- captures: z98.array(captureSchema),
21326
- total: z98.number(),
21327
- truncated: z98.boolean()
21398
+ var captureListResponseSchema = z99.object({
21399
+ captures: z99.array(captureSchema),
21400
+ total: z99.number(),
21401
+ truncated: z99.boolean()
21328
21402
  }).passthrough();
21329
21403
  var LANDSCAPE_COLUMNS = [
21330
21404
  { header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
@@ -21446,18 +21520,6 @@ function registerClarityLandscape(clarity) {
21446
21520
  const node = nodeResponseSchema.parse(raw);
21447
21521
  renderNodeMutationResult("Moved node", node, options);
21448
21522
  }, "moveNodeAction"));
21449
- 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) {
21450
- const config = await requireAuthenticatedConfig(this);
21451
- const raw = await httpRequest({
21452
- method: "POST",
21453
- path: nodeConfirmPath(resolveOrgId(this), nodeId),
21454
- apiKey: config.apiKey,
21455
- apiBaseUrl: config.apiBaseUrl,
21456
- body: { axis: parseAxis(options.axis) }
21457
- });
21458
- const node = nodeResponseSchema.parse(raw);
21459
- renderNodeMutationResult("Confirmed node", node, options);
21460
- }, "confirmNodeAction"));
21461
21523
  landscape.command("delete-node <node-id>").description(
21462
21524
  "Delete a landscape node and its subtree. The node's linked process and captures are deleted; nested processes move to Unsorted"
21463
21525
  ).option("--org <org-id>", ORG_FLAG_DESCRIPTION).option("--json", "output JSON").action(/* @__PURE__ */ __name(async function deleteNodeAction(nodeId, options) {
@@ -21493,7 +21555,7 @@ function registerClarityLandscape(clarity) {
21493
21555
  return;
21494
21556
  }
21495
21557
  console.log(
21496
- `Started process landscape generation: ${response.generationId} (${response.eligibleCaptureCount} captures)`
21558
+ `Started process landscape generation: ${response.generationId} (${response.eligibleProcessCount} processes, ${response.eligibleCaptureCount} optional captures)`
21497
21559
  );
21498
21560
  }, "generateAction"));
21499
21561
  landscape.command("captures").description("List Clarity captures eligible for the process landscape").option("--org <org-id>", ORG_FLAG_DESCRIPTION).option("--limit <n>", "page size").option("--include-transcripts", "include full transcripts in JSON output").option("--json", "output JSON").action(/* @__PURE__ */ __name(async function capturesAction(options) {
@@ -21536,10 +21598,6 @@ function nodePlacementPath(orgId, nodeId) {
21536
21598
  return `${nodePath(orgId, nodeId)}/placement`;
21537
21599
  }
21538
21600
  __name(nodePlacementPath, "nodePlacementPath");
21539
- function nodeConfirmPath(orgId, nodeId) {
21540
- return `${nodePath(orgId, nodeId)}/confirm`;
21541
- }
21542
- __name(nodeConfirmPath, "nodeConfirmPath");
21543
21601
  function buildRenameNodeBody(options) {
21544
21602
  if (options.ownerLabel !== void 0 && options.clearOwnerLabel) {
21545
21603
  throw new CliError(
@@ -21658,14 +21716,6 @@ function buildRootSearchParams(rootId) {
21658
21716
  return searchParams;
21659
21717
  }
21660
21718
  __name(buildRootSearchParams, "buildRootSearchParams");
21661
- function parseAxis(value) {
21662
- const parsed = axisSchema.safeParse(value);
21663
- if (!parsed.success) {
21664
- throw new CliError("Axis must be content or existence.");
21665
- }
21666
- return parsed.data;
21667
- }
21668
- __name(parseAxis, "parseAxis");
21669
21719
  function renderLandscapeNodes(nodes, emptyMessage) {
21670
21720
  if (nodes.length === 0) {
21671
21721
  console.log(emptyMessage);
@@ -21894,22 +21944,22 @@ function registerClarityProcessSummaries(clarity) {
21894
21944
  __name(registerClarityProcessSummaries, "registerClarityProcessSummaries");
21895
21945
 
21896
21946
  // src/commands/clarity/list-snapshots.ts
21897
- import { z as z99 } from "zod";
21947
+ import { z as z100 } from "zod";
21898
21948
  var SNAPSHOT_KINDS = ["current_process", "transformation_proposal"];
21899
21949
  var DEFAULT_LIMIT7 = 50;
21900
21950
  var MIN_LIMIT7 = 1;
21901
21951
  var MAX_LIMIT7 = 100;
21902
- var snapshotListItemSchema = z99.looseObject({
21903
- id: z99.string(),
21904
- status: z99.string(),
21905
- creator_type: z99.string(),
21906
- created_at: z99.string(),
21907
- parent_id: z99.string().nullable().optional(),
21908
- source_snapshot_id: z99.string().nullable().optional()
21952
+ var snapshotListItemSchema = z100.looseObject({
21953
+ id: z100.string(),
21954
+ status: z100.string(),
21955
+ creator_type: z100.string(),
21956
+ created_at: z100.string(),
21957
+ parent_id: z100.string().nullable().optional(),
21958
+ source_snapshot_id: z100.string().nullable().optional()
21909
21959
  });
21910
- var listSnapshotsResponseSchema = z99.looseObject({
21911
- snapshots: z99.array(snapshotListItemSchema),
21912
- total: z99.number().int().optional()
21960
+ var listSnapshotsResponseSchema = z100.looseObject({
21961
+ snapshots: z100.array(snapshotListItemSchema),
21962
+ total: z100.number().int().optional()
21913
21963
  });
21914
21964
  var TABLE_COLUMNS21 = [
21915
21965
  {
@@ -22326,40 +22376,40 @@ function renderLabelSummary(label) {
22326
22376
  __name(renderLabelSummary, "renderLabelSummary");
22327
22377
 
22328
22378
  // src/commands/clarity/process-links.ts
22329
- import { z as z100 } from "zod";
22379
+ import { z as z101 } from "zod";
22330
22380
  var MIN_LIMIT9 = 1;
22331
22381
  var MAX_LIMIT9 = 500;
22332
22382
  var DEFAULT_LIMIT9 = 100;
22333
22383
  var ORG_FLAG_DESCRIPTION3 = "organization id for the org-scoped process landscape (overrides DUVO_ORG_ID)";
22334
22384
  var PROCESS_LINKS_RESOURCE_PATH = "/clarity/hierarchy/process-links";
22335
- var processLinkTypeSchema = z100.enum([
22385
+ var processLinkTypeSchema = z101.enum([
22336
22386
  "hands_off_to",
22337
22387
  "shares_step_with",
22338
22388
  "variant_of"
22339
22389
  ]);
22340
- var processLinkStateSchema = z100.enum(["suggested", "confirmed"]);
22341
- var processLinkSchema = z100.object({
22342
- id: z100.string(),
22343
- source_node_id: z100.string(),
22344
- target_node_id: z100.string(),
22390
+ var processLinkStateSchema = z101.enum(["suggested", "confirmed"]);
22391
+ var processLinkSchema = z101.object({
22392
+ id: z101.string(),
22393
+ source_node_id: z101.string(),
22394
+ target_node_id: z101.string(),
22345
22395
  type: processLinkTypeSchema,
22346
22396
  state: processLinkStateSchema,
22347
- confidence: z100.number().nullable(),
22348
- created_at: z100.string(),
22349
- updated_at: z100.string()
22397
+ confidence: z101.number().nullable(),
22398
+ created_at: z101.string(),
22399
+ updated_at: z101.string()
22350
22400
  });
22351
- var listProcessLinksResponseSchema = z100.object({
22352
- process_links: z100.array(processLinkSchema),
22353
- total: z100.number(),
22354
- limit: z100.number(),
22355
- offset: z100.number()
22401
+ var listProcessLinksResponseSchema = z101.object({
22402
+ process_links: z101.array(processLinkSchema),
22403
+ total: z101.number(),
22404
+ limit: z101.number(),
22405
+ offset: z101.number()
22356
22406
  });
22357
- var processLinkMutationResponseSchema = z100.object({
22407
+ var processLinkMutationResponseSchema = z101.object({
22358
22408
  process_link: processLinkSchema,
22359
- created: z100.boolean().optional()
22409
+ created: z101.boolean().optional()
22360
22410
  });
22361
- var deleteProcessLinkResponseSchema = z100.object({
22362
- deleted: z100.boolean()
22411
+ var deleteProcessLinkResponseSchema = z101.object({
22412
+ deleted: z101.boolean()
22363
22413
  });
22364
22414
  var PROCESS_LINK_COLUMNS = [
22365
22415
  { header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
@@ -22552,14 +22602,14 @@ function renderProcessLinks(response) {
22552
22602
  __name(renderProcessLinks, "renderProcessLinks");
22553
22603
 
22554
22604
  // src/commands/clarity/promote-current-process.ts
22555
- import { z as z101 } from "zod";
22556
- var snapshotSchema3 = z101.object({
22557
- snapshot: z101.object({
22558
- id: z101.string(),
22559
- status: z101.string(),
22560
- creator_type: z101.string(),
22561
- created_at: z101.string(),
22562
- updated_at: z101.string()
22605
+ import { z as z102 } from "zod";
22606
+ var snapshotSchema3 = z102.object({
22607
+ snapshot: z102.object({
22608
+ id: z102.string(),
22609
+ status: z102.string(),
22610
+ creator_type: z102.string(),
22611
+ created_at: z102.string(),
22612
+ updated_at: z102.string()
22563
22613
  })
22564
22614
  });
22565
22615
  function registerClarityPromoteCurrentProcess(clarity) {
@@ -22596,14 +22646,14 @@ function registerClarityPromoteCurrentProcess(clarity) {
22596
22646
  __name(registerClarityPromoteCurrentProcess, "registerClarityPromoteCurrentProcess");
22597
22647
 
22598
22648
  // src/commands/clarity/promote-transformation-proposal.ts
22599
- import { z as z102 } from "zod";
22600
- var snapshotSchema4 = z102.object({
22601
- snapshot: z102.object({
22602
- id: z102.string(),
22603
- status: z102.string(),
22604
- creator_type: z102.string(),
22605
- created_at: z102.string(),
22606
- updated_at: z102.string()
22649
+ import { z as z103 } from "zod";
22650
+ var snapshotSchema4 = z103.object({
22651
+ snapshot: z103.object({
22652
+ id: z103.string(),
22653
+ status: z103.string(),
22654
+ creator_type: z103.string(),
22655
+ created_at: z103.string(),
22656
+ updated_at: z103.string()
22607
22657
  })
22608
22658
  });
22609
22659
  function registerClarityPromoteTransformationProposal(clarity) {
@@ -22679,8 +22729,8 @@ __name(registerClarityRevertTransformationProposal, "registerClarityRevertTransf
22679
22729
 
22680
22730
  // src/commands/clarity/save-snapshot.ts
22681
22731
  import { readFile as readFile7 } from "node:fs/promises";
22682
- import { z as z103 } from "zod";
22683
- var snapshotFileSchema = z103.union([
22732
+ import { z as z104 } from "zod";
22733
+ var snapshotFileSchema = z104.union([
22684
22734
  saveClarityProcessSnapshotBodySchema.shape.steps,
22685
22735
  saveClarityProcessSnapshotBodySchema.pick({
22686
22736
  steps: true,
@@ -23681,16 +23731,16 @@ function registerConnectionsList(connections) {
23681
23731
  __name(registerConnectionsList, "registerConnectionsList");
23682
23732
 
23683
23733
  // src/commands/connections/probe.ts
23684
- import { z as z104 } from "zod";
23685
- var toolSchema = z104.object({
23686
- name: z104.string(),
23687
- description: z104.string().optional(),
23688
- input_schema: z104.record(z104.string(), z104.unknown()).optional()
23734
+ import { z as z105 } from "zod";
23735
+ var toolSchema = z105.object({
23736
+ name: z105.string(),
23737
+ description: z105.string().optional(),
23738
+ input_schema: z105.record(z105.string(), z105.unknown()).optional()
23689
23739
  });
23690
- var probeResponseSchema = z104.object({
23691
- success: z104.boolean(),
23692
- tools: z104.array(toolSchema).optional(),
23693
- error: z104.string().optional()
23740
+ var probeResponseSchema = z105.object({
23741
+ success: z105.boolean(),
23742
+ tools: z105.array(toolSchema).optional(),
23743
+ error: z105.string().optional()
23694
23744
  });
23695
23745
  var DESCRIPTION_MAX_WIDTH = 80;
23696
23746
  var TABLE_COLUMNS23 = [
@@ -23913,48 +23963,48 @@ function registerConnections(program) {
23913
23963
  __name(registerConnections, "registerConnections");
23914
23964
 
23915
23965
  // src/api/credential-schemas.ts
23916
- import { z as z105 } from "zod";
23917
- var dateLike = z105.string();
23918
- var secretSchema = z105.object({
23919
- id: z105.string(),
23920
- team_id: z105.string(),
23921
- user_id: z105.string().nullable(),
23922
- name: z105.string(),
23923
- service_slug: z105.string().nullable(),
23924
- env_var_keys: z105.array(z105.string()),
23925
- created_by: z105.string(),
23966
+ import { z as z106 } from "zod";
23967
+ var dateLike = z106.string();
23968
+ var secretSchema = z106.object({
23969
+ id: z106.string(),
23970
+ team_id: z106.string(),
23971
+ user_id: z106.string().nullable(),
23972
+ name: z106.string(),
23973
+ service_slug: z106.string().nullable(),
23974
+ env_var_keys: z106.array(z106.string()),
23975
+ created_by: z106.string(),
23926
23976
  created_at: dateLike,
23927
23977
  updated_at: dateLike
23928
23978
  });
23929
- var secretsListResponseSchema = z105.array(secretSchema);
23979
+ var secretsListResponseSchema = z106.array(secretSchema);
23930
23980
  var secretResponseSchema = secretSchema;
23931
- var browserLoginSchema = z105.object({
23932
- id: z105.string(),
23933
- user_id: z105.string().nullable(),
23934
- team_id: z105.string(),
23935
- domain: z105.string(),
23936
- username: z105.string().nullable(),
23981
+ var browserLoginSchema = z106.object({
23982
+ id: z106.string(),
23983
+ user_id: z106.string().nullable(),
23984
+ team_id: z106.string(),
23985
+ domain: z106.string(),
23986
+ username: z106.string().nullable(),
23937
23987
  password: encryptedDataSchema.nullable(),
23938
23988
  otp_secret: encryptedDataSchema.nullable(),
23939
23989
  created_at: dateLike,
23940
23990
  updated_at: dateLike
23941
23991
  });
23942
- var browserLoginsListResponseSchema = z105.array(credentialPreviewSchema);
23943
- var revisionLoginSummarySchema = z105.object({
23944
- id: z105.string(),
23945
- user_id: z105.string().nullable(),
23946
- team_id: z105.string().nullable(),
23947
- domain: z105.string(),
23948
- username: z105.string().nullable(),
23992
+ var browserLoginsListResponseSchema = z106.array(credentialPreviewSchema);
23993
+ var revisionLoginSummarySchema = z106.object({
23994
+ id: z106.string(),
23995
+ user_id: z106.string().nullable(),
23996
+ team_id: z106.string().nullable(),
23997
+ domain: z106.string(),
23998
+ username: z106.string().nullable(),
23949
23999
  created_at: dateLike,
23950
24000
  updated_at: dateLike
23951
24001
  });
23952
- var revisionLoginsListResponseSchema = z105.array(
24002
+ var revisionLoginsListResponseSchema = z106.array(
23953
24003
  revisionLoginSummarySchema
23954
24004
  );
23955
- var revisionSecretsListResponseSchema = z105.array(secretSchema);
23956
- var successResponseSchema2 = z105.object({
23957
- success: z105.boolean()
24005
+ var revisionSecretsListResponseSchema = z106.array(secretSchema);
24006
+ var successResponseSchema2 = z106.object({
24007
+ success: z106.boolean()
23958
24008
  });
23959
24009
  var attachSuccessResponseSchema = successResponseSchema2;
23960
24010
  var deleteSecretResponseSchema = successResponseSchema2;
@@ -26718,6 +26768,82 @@ function registerPulseMessages(pulse) {
26718
26768
  }
26719
26769
  __name(registerPulseMessages, "registerPulseMessages");
26720
26770
 
26771
+ // src/commands/pulse/move.ts
26772
+ var MOVE_REQUEST_TIMEOUT_MS = 12e4;
26773
+ function registerPulseMove(pulse) {
26774
+ pulse.command("move <id>").description(
26775
+ "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."
26776
+ ).requiredOption("--to <team-id>", "destination team ID").option(
26777
+ "--team <id>",
26778
+ "source team ID (defaults to the team scoped to your credentials)"
26779
+ ).option(
26780
+ "--dry-run",
26781
+ "preview which connections reconnect vs drop without moving anything"
26782
+ ).option("-y, --yes", "skip the confirmation prompt").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function moveAction(id, options) {
26783
+ const pulseId = trimRequired(id, "<id>");
26784
+ const targetTeamId = trimRequired(options.to, "--to");
26785
+ const config = await requireAuthenticatedConfig(this);
26786
+ const { apiKey, apiBaseUrl } = config;
26787
+ const sourceTeamId = await resolveRequiredTeamId(config, {
26788
+ override: options.team ?? getTeamFlag(this)
26789
+ });
26790
+ if (!options.dryRun) {
26791
+ await confirmDestructive({
26792
+ 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.`,
26793
+ skip: options.yes ?? false
26794
+ });
26795
+ }
26796
+ const searchParams = new URLSearchParams();
26797
+ if (options.dryRun) {
26798
+ searchParams.append("dryRun", "true");
26799
+ }
26800
+ const raw = await httpRequest({
26801
+ method: "POST",
26802
+ path: `/v2/teams/${encodeURIComponent(sourceTeamId)}/artifacts/${encodeURIComponent(pulseId)}/move`,
26803
+ apiKey,
26804
+ apiBaseUrl,
26805
+ searchParams,
26806
+ body: { targetTeamId },
26807
+ timeoutMs: MOVE_REQUEST_TIMEOUT_MS
26808
+ });
26809
+ if (options.json) {
26810
+ printJson(raw);
26811
+ return;
26812
+ }
26813
+ const parsed = movePulsePlanSchema.safeParse(raw);
26814
+ if (!parsed.success) {
26815
+ throw new CliError(
26816
+ `Unexpected response from the API: ${parsed.error.message}`
26817
+ );
26818
+ }
26819
+ const plan = parsed.data;
26820
+ const reused = plan.connections.reused.length;
26821
+ const dropped = plan.connections.disconnected.length;
26822
+ const toRebuild = plan.connections.customToRebuild.length;
26823
+ console.log(
26824
+ plan.applied ? green("Pulse dashboard moved.") : yellow("Preview only \u2014 nothing was moved.")
26825
+ );
26826
+ console.log();
26827
+ console.log(
26828
+ renderKeyValue([
26829
+ { label: "ID", value: plan.artifactId },
26830
+ { label: "Title", value: plan.artifactTitle ?? "" },
26831
+ { label: "From team", value: plan.sourceTeamId },
26832
+ { label: "To team", value: plan.targetTeamId },
26833
+ {
26834
+ label: "Connections",
26835
+ value: `${reused} reconnect, ${dropped} dropped, ${toRebuild} need rebuild`
26836
+ }
26837
+ ])
26838
+ );
26839
+ console.log();
26840
+ console.log(
26841
+ 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}`
26842
+ );
26843
+ }, "moveAction"));
26844
+ }
26845
+ __name(registerPulseMove, "registerPulseMove");
26846
+
26721
26847
  // src/commands/pulse/pdf.ts
26722
26848
  import { writeFile as writeFile2 } from "node:fs/promises";
26723
26849
 
@@ -27132,6 +27258,7 @@ function registerPulse(program) {
27132
27258
  registerPulseRename(pulse);
27133
27259
  registerPulseShare(pulse);
27134
27260
  registerPulseDuplicate(pulse);
27261
+ registerPulseMove(pulse);
27135
27262
  registerPulseDelete(pulse);
27136
27263
  registerPulseVersions(pulse);
27137
27264
  registerPulseRestore(pulse);
@@ -28419,91 +28546,91 @@ function registerRevisionSecrets(program) {
28419
28546
  __name(registerRevisionSecrets, "registerRevisionSecrets");
28420
28547
 
28421
28548
  // src/api/run-schemas.ts
28422
- import { z as z106 } from "zod";
28423
- var publicRunSchema = z106.object({
28424
- id: z106.string(),
28425
- agent_id: z106.string(),
28426
- build_id: z106.string(),
28427
- status: z106.string(),
28428
- source: z106.string().nullish(),
28429
- sandbox_id: z106.string().nullish(),
28430
- started_at: z106.string().nullish(),
28431
- completed_at: z106.string().nullish(),
28432
- created_at: z106.string(),
28433
- updated_at: z106.string().nullish(),
28434
- human_in_the_loop_enabled: z106.boolean().nullish()
28435
- });
28436
- var startRunResponseSchema = z106.object({
28549
+ import { z as z107 } from "zod";
28550
+ var publicRunSchema = z107.object({
28551
+ id: z107.string(),
28552
+ agent_id: z107.string(),
28553
+ build_id: z107.string(),
28554
+ status: z107.string(),
28555
+ source: z107.string().nullish(),
28556
+ sandbox_id: z107.string().nullish(),
28557
+ started_at: z107.string().nullish(),
28558
+ completed_at: z107.string().nullish(),
28559
+ created_at: z107.string(),
28560
+ updated_at: z107.string().nullish(),
28561
+ human_in_the_loop_enabled: z107.boolean().nullish()
28562
+ });
28563
+ var startRunResponseSchema = z107.object({
28437
28564
  run: publicRunSchema
28438
28565
  });
28439
- var questionOptionSchema = z106.object({
28440
- label: z106.string(),
28441
- description: z106.string().nullish()
28442
- });
28443
- var questionSchema = z106.object({
28444
- question: z106.string(),
28445
- header: z106.string().nullish(),
28446
- options: z106.array(questionOptionSchema).nullish(),
28447
- multi_select: z106.boolean().nullish()
28448
- });
28449
- var pendingHumanRequestSchema = z106.object({
28450
- id: z106.string(),
28451
- title: z106.string(),
28452
- description: z106.string().nullish(),
28453
- created_at: z106.string(),
28454
- type: z106.string(),
28455
- questions: z106.array(questionSchema).nullish()
28456
- });
28457
- var getRunResponseSchema = z106.object({
28566
+ var questionOptionSchema = z107.object({
28567
+ label: z107.string(),
28568
+ description: z107.string().nullish()
28569
+ });
28570
+ var questionSchema = z107.object({
28571
+ question: z107.string(),
28572
+ header: z107.string().nullish(),
28573
+ options: z107.array(questionOptionSchema).nullish(),
28574
+ multi_select: z107.boolean().nullish()
28575
+ });
28576
+ var pendingHumanRequestSchema = z107.object({
28577
+ id: z107.string(),
28578
+ title: z107.string(),
28579
+ description: z107.string().nullish(),
28580
+ created_at: z107.string(),
28581
+ type: z107.string(),
28582
+ questions: z107.array(questionSchema).nullish()
28583
+ });
28584
+ var getRunResponseSchema = z107.object({
28458
28585
  run: publicRunSchema.nullable(),
28459
28586
  pending_human_request: pendingHumanRequestSchema.nullish()
28460
28587
  });
28461
- var stopRunResponseSchema = z106.object({
28462
- success: z106.boolean(),
28463
- message: z106.string().nullish()
28464
- });
28465
- var runMessageSchema = z106.object({
28466
- id: z106.string(),
28467
- type: z106.string(),
28468
- role: z106.string(),
28469
- timestamp: z106.string(),
28470
- text_content: z106.string().nullish(),
28471
- tool_call: z106.object({
28472
- id: z106.string(),
28473
- name: z106.string(),
28474
- arguments: z106.record(z106.string(), z106.unknown()).nullish()
28588
+ var stopRunResponseSchema = z107.object({
28589
+ success: z107.boolean(),
28590
+ message: z107.string().nullish()
28591
+ });
28592
+ var runMessageSchema = z107.object({
28593
+ id: z107.string(),
28594
+ type: z107.string(),
28595
+ role: z107.string(),
28596
+ timestamp: z107.string(),
28597
+ text_content: z107.string().nullish(),
28598
+ tool_call: z107.object({
28599
+ id: z107.string(),
28600
+ name: z107.string(),
28601
+ arguments: z107.record(z107.string(), z107.unknown()).nullish()
28475
28602
  }).nullish(),
28476
- tool_result: z106.object({
28477
- tool_call_id: z106.string(),
28478
- result: z106.unknown().nullish(),
28479
- error: z106.string().nullish()
28603
+ tool_result: z107.object({
28604
+ tool_call_id: z107.string(),
28605
+ result: z107.unknown().nullish(),
28606
+ error: z107.string().nullish()
28480
28607
  }).nullish()
28481
28608
  });
28482
- var listRunMessagesResponseSchema = z106.object({
28483
- messages: z106.array(runMessageSchema),
28484
- total: z106.number().nullish(),
28485
- limit: z106.number().nullish(),
28486
- offset: z106.number().nullish()
28609
+ var listRunMessagesResponseSchema = z107.object({
28610
+ messages: z107.array(runMessageSchema),
28611
+ total: z107.number().nullish(),
28612
+ limit: z107.number().nullish(),
28613
+ offset: z107.number().nullish()
28487
28614
  });
28488
- var postedMessageSchema = z106.object({
28489
- id: z106.string(),
28490
- type: z106.string(),
28491
- role: z106.string(),
28492
- timestamp: z106.string(),
28493
- text_content: z106.string()
28615
+ var postedMessageSchema = z107.object({
28616
+ id: z107.string(),
28617
+ type: z107.string(),
28618
+ role: z107.string(),
28619
+ timestamp: z107.string(),
28620
+ text_content: z107.string()
28494
28621
  });
28495
- var postRunMessageResponseSchema = z106.object({
28622
+ var postRunMessageResponseSchema = z107.object({
28496
28623
  message: postedMessageSchema
28497
28624
  });
28498
- var respondHumanRequestResponseSchema = z106.object({
28499
- human_request: z106.object({
28500
- id: z106.string(),
28501
- run_id: z106.string(),
28502
- title: z106.string(),
28503
- description: z106.string().nullish(),
28504
- response: z106.string().nullish(),
28505
- responded_at: z106.string().nullish(),
28506
- created_at: z106.string()
28625
+ var respondHumanRequestResponseSchema = z107.object({
28626
+ human_request: z107.object({
28627
+ id: z107.string(),
28628
+ run_id: z107.string(),
28629
+ title: z107.string(),
28630
+ description: z107.string().nullish(),
28631
+ response: z107.string().nullish(),
28632
+ responded_at: z107.string().nullish(),
28633
+ created_at: z107.string()
28507
28634
  })
28508
28635
  });
28509
28636
 
@@ -29198,28 +29325,28 @@ function registerRuns(program) {
29198
29325
  __name(registerRuns, "registerRuns");
29199
29326
 
29200
29327
  // src/api/sandbox-schemas.ts
29201
- import { z as z107 } from "zod";
29202
- var createSandboxResponseSchema = z107.object({
29203
- sandbox_id: z107.string(),
29204
- expires_at: z107.string()
29328
+ import { z as z108 } from "zod";
29329
+ var createSandboxResponseSchema = z108.object({
29330
+ sandbox_id: z108.string(),
29331
+ expires_at: z108.string()
29205
29332
  });
29206
- var createSandboxUploadUrlResponseSchema = z107.object({
29207
- upload_url: z107.string(),
29208
- path: z107.string(),
29209
- expires_in_seconds: z107.number()
29333
+ var createSandboxUploadUrlResponseSchema = z108.object({
29334
+ upload_url: z108.string(),
29335
+ path: z108.string(),
29336
+ expires_in_seconds: z108.number()
29210
29337
  });
29211
- var sandboxFileSchema = z107.object({
29212
- name: z107.string(),
29213
- path: z107.string(),
29214
- type: z107.enum(["file", "dir"]),
29215
- size_bytes: z107.number()
29338
+ var sandboxFileSchema = z108.object({
29339
+ name: z108.string(),
29340
+ path: z108.string(),
29341
+ type: z108.enum(["file", "dir"]),
29342
+ size_bytes: z108.number()
29216
29343
  });
29217
- var listSandboxFilesResponseSchema = z107.object({
29218
- files: z107.array(sandboxFileSchema)
29344
+ var listSandboxFilesResponseSchema = z108.object({
29345
+ files: z108.array(sandboxFileSchema)
29219
29346
  });
29220
- var uploadSandboxFileResponseSchema = z107.object({
29221
- path: z107.string(),
29222
- size_bytes: z107.number()
29347
+ var uploadSandboxFileResponseSchema = z108.object({
29348
+ path: z108.string(),
29349
+ size_bytes: z108.number()
29223
29350
  });
29224
29351
  var DEFAULT_SANDBOX_FILES_PATH = "/workspace";
29225
29352
 
@@ -29830,13 +29957,13 @@ __name(registerSkillsAssignments, "registerSkillsAssignments");
29830
29957
 
29831
29958
  // src/commands/skills/create.ts
29832
29959
  import { readFileSync as readFileSync5 } from "node:fs";
29833
- import { z as z108 } from "zod";
29834
- var createSkillResponseSchema = z108.object({
29835
- skill: z108.object({
29836
- id: z108.string(),
29837
- name: z108.string(),
29838
- description: z108.string(),
29839
- team_id: z108.string()
29960
+ import { z as z109 } from "zod";
29961
+ var createSkillResponseSchema = z109.object({
29962
+ skill: z109.object({
29963
+ id: z109.string(),
29964
+ name: z109.string(),
29965
+ description: z109.string(),
29966
+ team_id: z109.string()
29840
29967
  })
29841
29968
  });
29842
29969
  function registerSkillsCreate(skills) {
@@ -30200,13 +30327,13 @@ function readExistingContent(source) {
30200
30327
  __name(readExistingContent, "readExistingContent");
30201
30328
 
30202
30329
  // src/commands/skills/install.ts
30203
- import { z as z109 } from "zod";
30204
- var installSkillResponseSchema = z109.object({
30205
- skill: z109.object({
30206
- id: z109.string(),
30207
- name: z109.string(),
30208
- description: z109.string(),
30209
- team_id: z109.string()
30330
+ import { z as z110 } from "zod";
30331
+ var installSkillResponseSchema = z110.object({
30332
+ skill: z110.object({
30333
+ id: z110.string(),
30334
+ name: z110.string(),
30335
+ description: z110.string(),
30336
+ team_id: z110.string()
30210
30337
  })
30211
30338
  });
30212
30339
  function registerSkillsInstall(skills) {
@@ -30396,13 +30523,13 @@ __name(registerSkillsSystem, "registerSkillsSystem");
30396
30523
  // src/commands/skills/upload.ts
30397
30524
  import { readFile as readFile9, stat as stat2 } from "node:fs/promises";
30398
30525
  import { basename as basename3 } from "node:path";
30399
- import { z as z110 } from "zod";
30400
- var uploadSkillResponseSchema = z110.object({
30401
- skill: z110.object({
30402
- id: z110.string(),
30403
- name: z110.string(),
30404
- description: z110.string(),
30405
- team_id: z110.string()
30526
+ import { z as z111 } from "zod";
30527
+ var uploadSkillResponseSchema = z111.object({
30528
+ skill: z111.object({
30529
+ id: z111.string(),
30530
+ name: z111.string(),
30531
+ description: z111.string(),
30532
+ team_id: z111.string()
30406
30533
  })
30407
30534
  });
30408
30535
  function registerSkillsUpload(skills) {
@@ -30775,9 +30902,9 @@ function registerTeamMembers(team) {
30775
30902
  __name(registerTeamMembers, "registerTeamMembers");
30776
30903
 
30777
30904
  // src/commands/team/use.ts
30778
- import { z as z111 } from "zod";
30905
+ import { z as z112 } from "zod";
30779
30906
  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;
30780
- var teamIdSchema = z111.string().regex(TEAM_ID_SHAPE);
30907
+ var teamIdSchema = z112.string().regex(TEAM_ID_SHAPE);
30781
30908
  function registerTeamUse(team) {
30782
30909
  team.command("use <team-id>").description(
30783
30910
  "Set the default team for the active OAuth profile (overridable per-command via --team or DUVO_TEAM_ID)"
@@ -30863,14 +30990,14 @@ function registerTeam(program) {
30863
30990
  __name(registerTeam, "registerTeam");
30864
30991
 
30865
30992
  // src/commands/teams/list.ts
30866
- import { z as z112 } from "zod";
30867
- var teamApiSchema2 = z112.object({
30868
- id: z112.string(),
30869
- name: z112.string(),
30870
- organization_id: z112.string().nullable()
30993
+ import { z as z113 } from "zod";
30994
+ var teamApiSchema2 = z113.object({
30995
+ id: z113.string(),
30996
+ name: z113.string(),
30997
+ organization_id: z113.string().nullable()
30871
30998
  });
30872
- var listMyTeamsResponseSchema3 = z112.object({
30873
- teams: z112.array(teamApiSchema2)
30999
+ var listMyTeamsResponseSchema3 = z113.object({
31000
+ teams: z113.array(teamApiSchema2)
30874
31001
  });
30875
31002
  function registerTeamsList(teams) {
30876
31003
  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) {
@@ -30913,21 +31040,21 @@ function registerTeamsList(teams) {
30913
31040
  __name(registerTeamsList, "registerTeamsList");
30914
31041
 
30915
31042
  // src/commands/teams/org-insights.ts
30916
- import { z as z113 } from "zod";
30917
- var headlineSchema = z113.object({
30918
- total_runs: z113.number(),
30919
- completed_runs: z113.number(),
30920
- failed_runs: z113.number(),
30921
- success_rate: z113.number().nullable(),
30922
- active_agents: z113.number(),
30923
- active_users: z113.number(),
30924
- start_date: z113.string(),
30925
- end_date: z113.string(),
30926
- truncated: z113.boolean(),
30927
- aggregated_teams: z113.number(),
30928
- total_teams: z113.number()
30929
- });
30930
- var orgInsightsHeadlineResponseSchema = z113.object({
31043
+ import { z as z114 } from "zod";
31044
+ var headlineSchema = z114.object({
31045
+ total_runs: z114.number(),
31046
+ completed_runs: z114.number(),
31047
+ failed_runs: z114.number(),
31048
+ success_rate: z114.number().nullable(),
31049
+ active_agents: z114.number(),
31050
+ active_users: z114.number(),
31051
+ start_date: z114.string(),
31052
+ end_date: z114.string(),
31053
+ truncated: z114.boolean(),
31054
+ aggregated_teams: z114.number(),
31055
+ total_teams: z114.number()
31056
+ });
31057
+ var orgInsightsHeadlineResponseSchema = z114.object({
30931
31058
  headline: headlineSchema
30932
31059
  });
30933
31060
  function formatRate(rate) {
@@ -30995,26 +31122,26 @@ function registerTeamsOrgInsights(teams) {
30995
31122
  __name(registerTeamsOrgInsights, "registerTeamsOrgInsights");
30996
31123
 
30997
31124
  // src/commands/teams/org-metrics.ts
30998
- import { z as z114 } from "zod";
30999
- var teamMetricSchema = z114.object({
31000
- team_id: z114.string(),
31001
- team_name: z114.string(),
31002
- is_deleted: z114.boolean(),
31003
- member_count: z114.number(),
31004
- assignment_count: z114.number(),
31005
- scheduled_job_count: z114.number(),
31006
- total_jobs: z114.number(),
31007
- completed_jobs: z114.number(),
31008
- failed_jobs: z114.number(),
31009
- total_runs: z114.number()
31010
- });
31011
- var orgInsightsMetricsResponseSchema = z114.object({
31012
- teams: z114.array(teamMetricSchema),
31013
- start_date: z114.string(),
31014
- end_date: z114.string(),
31015
- truncated: z114.boolean(),
31016
- total_teams: z114.number(),
31017
- org_member_count: z114.number()
31125
+ import { z as z115 } from "zod";
31126
+ var teamMetricSchema = z115.object({
31127
+ team_id: z115.string(),
31128
+ team_name: z115.string(),
31129
+ is_deleted: z115.boolean(),
31130
+ member_count: z115.number(),
31131
+ assignment_count: z115.number(),
31132
+ scheduled_job_count: z115.number(),
31133
+ total_jobs: z115.number(),
31134
+ completed_jobs: z115.number(),
31135
+ failed_jobs: z115.number(),
31136
+ total_runs: z115.number()
31137
+ });
31138
+ var orgInsightsMetricsResponseSchema = z115.object({
31139
+ teams: z115.array(teamMetricSchema),
31140
+ start_date: z115.string(),
31141
+ end_date: z115.string(),
31142
+ truncated: z115.boolean(),
31143
+ total_teams: z115.number(),
31144
+ org_member_count: z115.number()
31018
31145
  });
31019
31146
  function registerTeamsOrgMetrics(teams) {
31020
31147
  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) {
@@ -31077,20 +31204,20 @@ ${total_teams} teams${suffix} \xB7 ${org_member_count} org members`
31077
31204
  __name(registerTeamsOrgMetrics, "registerTeamsOrgMetrics");
31078
31205
 
31079
31206
  // src/commands/teams/org-usage.ts
31080
- import { z as z115 } from "zod";
31207
+ import { z as z116 } from "zod";
31081
31208
  var GRANULARITIES = ["day", "week", "month"];
31082
31209
  var DEFAULT_LOOKBACK_MS = 30 * 24 * 60 * 60 * 1e3;
31083
- var bucketSchema = z115.object({
31084
- period: z115.string(),
31085
- total_runs: z115.number(),
31086
- scheduled_runs: z115.number(),
31087
- on_demand_runs: z115.number()
31088
- });
31089
- var usageChartResponseSchema = z115.object({
31090
- buckets: z115.array(bucketSchema),
31091
- granularity: z115.enum(GRANULARITIES),
31092
- truncated: z115.boolean(),
31093
- total_teams: z115.number()
31210
+ var bucketSchema = z116.object({
31211
+ period: z116.string(),
31212
+ total_runs: z116.number(),
31213
+ scheduled_runs: z116.number(),
31214
+ on_demand_runs: z116.number()
31215
+ });
31216
+ var usageChartResponseSchema = z116.object({
31217
+ buckets: z116.array(bucketSchema),
31218
+ granularity: z116.enum(GRANULARITIES),
31219
+ truncated: z116.boolean(),
31220
+ total_teams: z116.number()
31094
31221
  });
31095
31222
  function registerTeamsOrgUsage(teams) {
31096
31223
  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(
@@ -31149,17 +31276,17 @@ function registerTeamsOrgUsage(teams) {
31149
31276
  __name(registerTeamsOrgUsage, "registerTeamsOrgUsage");
31150
31277
 
31151
31278
  // src/commands/teams/org.ts
31152
- import { z as z116 } from "zod";
31153
- var orgTeamSchema = z116.object({
31154
- id: z116.string(),
31155
- name: z116.string(),
31156
- userIsMember: z116.boolean(),
31157
- userRole: z116.string().nullable(),
31158
- memberCount: z116.number()
31159
- });
31160
- var listOrgTeamsResponseSchema = z116.object({
31161
- teams: z116.array(orgTeamSchema),
31162
- total: z116.number()
31279
+ import { z as z117 } from "zod";
31280
+ var orgTeamSchema = z117.object({
31281
+ id: z117.string(),
31282
+ name: z117.string(),
31283
+ userIsMember: z117.boolean(),
31284
+ userRole: z117.string().nullable(),
31285
+ memberCount: z117.number()
31286
+ });
31287
+ var listOrgTeamsResponseSchema = z117.object({
31288
+ teams: z117.array(orgTeamSchema),
31289
+ total: z117.number()
31163
31290
  });
31164
31291
  function registerTeamsOrg(teams) {
31165
31292
  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) {
@@ -31200,11 +31327,63 @@ function registerTeamsOrg(teams) {
31200
31327
  }
31201
31328
  __name(registerTeamsOrg, "registerTeamsOrg");
31202
31329
 
31330
+ // src/commands/teams/orgs.ts
31331
+ import { z as z118 } from "zod";
31332
+ var orgMembershipSchema = z118.object({
31333
+ organization: z118.object({
31334
+ id: z118.string(),
31335
+ name: z118.string()
31336
+ }),
31337
+ role: z118.string(),
31338
+ memberCount: z118.number()
31339
+ });
31340
+ var listMyOrganizationsResponseSchema = z118.object({
31341
+ memberships: z118.array(orgMembershipSchema)
31342
+ });
31343
+ function registerTeamsOrgs(teams) {
31344
+ teams.command("orgs").description("List the organizations you belong to and your role in each").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function orgsAction(options) {
31345
+ const { apiKey, apiBaseUrl } = await requireAuthenticatedConfig(this);
31346
+ const raw = await httpRequest({
31347
+ method: "GET",
31348
+ path: "/v2/organizations/mine",
31349
+ apiKey,
31350
+ apiBaseUrl
31351
+ });
31352
+ if (options.json) {
31353
+ printJson(raw);
31354
+ return;
31355
+ }
31356
+ const parsed = listMyOrganizationsResponseSchema.safeParse(raw);
31357
+ if (!parsed.success) {
31358
+ throw new CliError(
31359
+ `Unexpected response from GET /v2/organizations/mine: ${parsed.error.message}`
31360
+ );
31361
+ }
31362
+ if (parsed.data.memberships.length === 0) {
31363
+ console.log("You are not a member of any organization.");
31364
+ return;
31365
+ }
31366
+ console.log(
31367
+ renderTable(
31368
+ [
31369
+ { header: "ID", cell: /* @__PURE__ */ __name((m) => m.organization.id, "cell") },
31370
+ { header: "NAME", cell: /* @__PURE__ */ __name((m) => m.organization.name, "cell"), maxWidth: 40 },
31371
+ { header: "ROLE", cell: /* @__PURE__ */ __name((m) => m.role, "cell") },
31372
+ { header: "MEMBERS", cell: /* @__PURE__ */ __name((m) => String(m.memberCount), "cell") }
31373
+ ],
31374
+ parsed.data.memberships
31375
+ )
31376
+ );
31377
+ }, "orgsAction"));
31378
+ }
31379
+ __name(registerTeamsOrgs, "registerTeamsOrgs");
31380
+
31203
31381
  // src/commands/teams/index.ts
31204
31382
  function registerTeams(program) {
31205
31383
  const teams = program.command("teams").description("Inspect the teams your credentials can act on");
31206
31384
  registerTeamsList(teams);
31207
31385
  registerTeamsOrg(teams);
31386
+ registerTeamsOrgs(teams);
31208
31387
  registerTeamsOrgInsights(teams);
31209
31388
  registerTeamsOrgMetrics(teams);
31210
31389
  registerTeamsOrgUsage(teams);
@@ -31264,7 +31443,7 @@ __name(resolveActiveTeamId, "resolveActiveTeamId");
31264
31443
  var version = resolveVersion();
31265
31444
  function resolveVersion() {
31266
31445
  if (true) {
31267
- return "1.25.0";
31446
+ return "1.27.0";
31268
31447
  }
31269
31448
  const packageJsonPath = join3(
31270
31449
  dirname3(fileURLToPath2(import.meta.url)),
@@ -31458,7 +31637,7 @@ function isNewerVersion(candidate, current) {
31458
31637
  __name(isNewerVersion, "isNewerVersion");
31459
31638
  function loadPackageMeta() {
31460
31639
  if (true) {
31461
- return { name: "@duvoai/cli", version: "1.25.0" };
31640
+ return { name: "@duvoai/cli", version: "1.27.0" };
31462
31641
  }
31463
31642
  const require2 = createRequire(import.meta.url);
31464
31643
  const raw = require2("../package.json");