@duvoai/cli 1.72.0 → 1.73.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.
Files changed (2) hide show
  1. package/dist/bin/duvo.js +1930 -1630
  2. package/package.json +1 -1
package/dist/bin/duvo.js CHANGED
@@ -538,6 +538,7 @@ var CLARITY_INTERVIEW_LANGUAGES = [
538
538
  "cs",
539
539
  "de",
540
540
  "en",
541
+ "en-GB",
541
542
  "es",
542
543
  "es-MX",
543
544
  "fr",
@@ -556,7 +557,8 @@ var clarityInterviewLanguageResponseSchema = extensibleEnum(
556
557
  CLARITY_INTERVIEW_LANGUAGES
557
558
  ).default("en");
558
559
  var CLARITY_LANGUAGE_DISPLAY_NAMES = {
559
- en: "English",
560
+ en: "English (United States)",
561
+ "en-GB": "English (United Kingdom)",
560
562
  cs: "Czech",
561
563
  fr: "French",
562
564
  de: "German",
@@ -6145,13 +6147,30 @@ var ORG_ROLE = {
6145
6147
  EXECUTIVE: "organization:executive",
6146
6148
  OWNER: "organization:owner",
6147
6149
  ADMIN: "organization:admin",
6148
- MEMBER: "organization:member"
6150
+ MEMBER: "organization:member",
6151
+ /**
6152
+ * Belongs to a team of this organization, with no organization-level
6153
+ * standing. Derived from team membership, never invited or assigned: the
6154
+ * write paths are typed on {@link ORG_ROLES.ALL} (invitations) and
6155
+ * {@link ORG_ROLES.SSO_ASSIGNABLE} (SSO defaults), neither of which
6156
+ * contains it.
6157
+ *
6158
+ * A guest's reach is deliberately identical to a team member holding no
6159
+ * membership row at all, with one exception: the organization appears in
6160
+ * their switcher (`/organizations/mine` is self-scoped and ungated), where
6161
+ * the row is rendered inert. See specs/org-owned-resources/PHASE_0_PLAN.md.
6162
+ */
6163
+ GUEST: "organization:guest"
6149
6164
  };
6150
6165
  var ORG_ROLE_CONFIG = {
6151
6166
  [ORG_ROLE.EXECUTIVE]: { parentRole: null },
6152
6167
  [ORG_ROLE.OWNER]: { parentRole: ORG_ROLE.EXECUTIVE },
6153
6168
  [ORG_ROLE.ADMIN]: { parentRole: ORG_ROLE.OWNER },
6154
- [ORG_ROLE.MEMBER]: { parentRole: ORG_ROLE.ADMIN }
6169
+ [ORG_ROLE.MEMBER]: { parentRole: ORG_ROLE.ADMIN },
6170
+ // Lowest tier: `hasMinimumOrgRole(GUEST, MEMBER)` is false, so a guest
6171
+ // clears no role floor, while `canAssignOrgRole(ADMIN, GUEST)` is true so
6172
+ // an admin can promote one.
6173
+ [ORG_ROLE.GUEST]: { parentRole: ORG_ROLE.MEMBER }
6155
6174
  };
6156
6175
  var ORG_ROLES = {
6157
6176
  EXECUTIVE_ONLY: [ORG_ROLE.EXECUTIVE],
@@ -6161,6 +6180,23 @@ var ORG_ROLES = {
6161
6180
  ORG_ROLE.OWNER,
6162
6181
  ORG_ROLE.ADMIN
6163
6182
  ],
6183
+ /**
6184
+ * Every role that carries organization-level standing — the widest allowlist
6185
+ * an org-scoped route may accept.
6186
+ *
6187
+ * `GUEST` is deliberately absent, and that omission is the whole of its
6188
+ * access policy: `requireOrgRole` rejects any role missing from the list it
6189
+ * is handed, so every current and future site gating on this array denies a
6190
+ * guest by default. Adding `GUEST` here would silently grant guests the
6191
+ * org-wide Clarity process landscape and ~20 other org-content reads. Don't.
6192
+ *
6193
+ * Need a place guest IS a legal value — e.g. a request body an admin may
6194
+ * set it through — without touching this array? That's `MEMBER_ASSIGNABLE`
6195
+ * below. Widening `ALL` for one such call site widens every authorization
6196
+ * check built on it at the same time; that's exactly the bug this file's
6197
+ * PR (`organization:guest`) had to fix twice already (the SSO login gate,
6198
+ * the org-owned Pulse scope check) before landing on two separate arrays.
6199
+ */
6164
6200
  ALL: [
6165
6201
  ORG_ROLE.EXECUTIVE,
6166
6202
  ORG_ROLE.OWNER,
@@ -6170,13 +6206,37 @@ var ORG_ROLES = {
6170
6206
  // Org roles an SSO connection may auto-grant to every user it admits.
6171
6207
  // Excludes executive/owner: default_org_role is applied unconditionally to
6172
6208
  // every SSO login, so those tiers must never be broadly granted by config.
6173
- SSO_ASSIGNABLE: [ORG_ROLE.ADMIN, ORG_ROLE.MEMBER]
6209
+ // Excludes guest: it is derived from team membership, never configured.
6210
+ SSO_ASSIGNABLE: [ORG_ROLE.ADMIN, ORG_ROLE.MEMBER],
6211
+ /**
6212
+ * Roles an admin may explicitly set on an *existing* member — `ALL` plus
6213
+ * `GUEST`. Distinct from `ALL`: that array answers "does this role carry
6214
+ * organization-level standing" (the authorization allowlist every org-scoped
6215
+ * route gates on), while this answers "can a human pick this value for a
6216
+ * member" — guest included, since assigning it is how an admin revokes a
6217
+ * member's org-level access without removing them from their teams (it can
6218
+ * only ever reduce reach, being the lowest tier). Invitations use `ALL`
6219
+ * unchanged: guest can't be invited, only reached by joining a team or by
6220
+ * this explicit downgrade.
6221
+ */
6222
+ MEMBER_ASSIGNABLE: [
6223
+ ORG_ROLE.EXECUTIVE,
6224
+ ORG_ROLE.OWNER,
6225
+ ORG_ROLE.ADMIN,
6226
+ ORG_ROLE.MEMBER,
6227
+ ORG_ROLE.GUEST
6228
+ ]
6174
6229
  };
6175
6230
  function isValidOrgRole(role) {
6176
6231
  return Object.values(ORG_ROLE).includes(role);
6177
6232
  }
6178
6233
  __name(isValidOrgRole, "isValidOrgRole");
6179
6234
  __name2(isValidOrgRole, "isValidOrgRole");
6235
+ function isOrgStandingRole(role) {
6236
+ return ORG_ROLES.ALL.includes(role);
6237
+ }
6238
+ __name(isOrgStandingRole, "isOrgStandingRole");
6239
+ __name2(isOrgStandingRole, "isOrgStandingRole");
6180
6240
  function isSsoAssignableOrgRole(role) {
6181
6241
  return ORG_ROLES.SSO_ASSIGNABLE.includes(role);
6182
6242
  }
@@ -6201,7 +6261,14 @@ var TEAM_ROLE_BY_ORG_ROLE = {
6201
6261
  [ORG_ROLE.EXECUTIVE]: TEAM_ROLE.SUPERADMIN,
6202
6262
  [ORG_ROLE.OWNER]: TEAM_ROLE.OWNER,
6203
6263
  [ORG_ROLE.ADMIN]: TEAM_ROLE.SUPERADMIN,
6204
- [ORG_ROLE.MEMBER]: null
6264
+ [ORG_ROLE.MEMBER]: null,
6265
+ // Guest confers nothing, for the same reason MEMBER does not: it is a
6266
+ // team-membership side effect with no organization-level standing. `null`
6267
+ // rather than a missing key matters — callers test `=== null` and would let
6268
+ // an `undefined` through as a team role (see `resolve-minted-team-role.ts`
6269
+ // and `create-team-join-request.route.ts`), which the exhaustive `Record`
6270
+ // exists to prevent.
6271
+ [ORG_ROLE.GUEST]: null
6205
6272
  };
6206
6273
  function teamRoleForOrgRole(orgRole) {
6207
6274
  if (orgRole === null || !isValidOrgRole(orgRole)) {
@@ -9245,7 +9312,27 @@ var automationSummaryApiSchema = z41.object({
9245
9312
  agent_count: z41.int(),
9246
9313
  queue_count: z41.int(),
9247
9314
  created_at: z41.string(),
9248
- updated_at: z41.string()
9315
+ updated_at: z41.string(),
9316
+ // The wording below rests on `setup_started_at` being write-once AND
9317
+ // demo-only: `markModuleSetupStarted` is its single writer, narrowed to a row
9318
+ // that still has `demo_at`, and no path clears it. That is what makes the flag
9319
+ // outlive the conversion, and what makes a list row carrying it an automation
9320
+ // that is already set up.
9321
+ //
9322
+ // #10950 breaks both halves. `finish-setup` clears the column, so the flag
9323
+ // stops outliving anything; `reopen-setup` and self-serve setup stamp it on a
9324
+ // row whose `demo_at` is already NULL, so `is_setting_up` alone becomes the
9325
+ // primary mid-setup state - the inverse of the worked example below, not just
9326
+ // a change to how long it lasts.
9327
+ //
9328
+ // The agreed target is #10950's reading: `is_setting_up` means setup is
9329
+ // CURRENTLY under way. This block is therefore the accurate description of
9330
+ // today's code and not the destination - when #10950 lands, replace it with
9331
+ // that meaning rather than merging the two. The text below is right only for
9332
+ // as long as nothing clears the column.
9333
+ is_setting_up: z41.boolean().default(false).describe(
9334
+ "True once a team has started setting this Module up, and true from then on. setup_started_at is written once, by markModuleSetupStarted, and no path clears it, so this records that setup BEGAN rather than that it is still under way. Read together with is_demo, which lives on the detail response: both true is a demo with a build under way; is_demo alone is a demo nobody has begun; is_setting_up alone is an automation whose demo marker was cleared, which means it is already set up and running, NOT that it is still being set up. A list response carries only that last case, since the listing excludes demos - so is_setting_up on a list row is a record of past setup, and deciding whether a module is mid-setup needs is_demo from the detail. On the summary rather than the detail so that a client holding only a list, create or patch response knows the state too, and so every write onto the shared automation collection carries it. Defaulted rather than required: the client parses this response, so a backend that predates the column must not throw and take the automation's name down with it, and nothing on the wire has always meant an automation nobody has set up."
9335
+ )
9249
9336
  });
9250
9337
  var automationsListApiSchema = z41.object({
9251
9338
  automations: z41.array(automationSummaryApiSchema),
@@ -9265,10 +9352,7 @@ var automationDetailApiSchema = automationSummaryApiSchema.extend({
9265
9352
  ),
9266
9353
  module_template_version: z41.int().nullable().describe("Version of that template, set alongside the slug."),
9267
9354
  is_demo: z41.boolean().describe(
9268
- "True while this is an unconverted Module demo: its data is sample data and it cannot run. Cleared by the Setup tab."
9269
- ),
9270
- is_setting_up: z41.boolean().default(false).describe(
9271
- "True once a team has started setting this Module up. Read together with is_demo: both true is a module being built from its setup interview, is_demo alone is an untouched demo. Stays true after setup, when is_demo is what has changed. Defaulted rather than required for the same reason `tabs` is optional: the client parses this response, so during a deploy window a backend that predates the field would otherwise throw and take the automation's name and revision state down with it."
9355
+ "True while this is an unconverted Module demo: its data is sample data and it cannot run. Cleared when the demo is converted into a real automation, which is irreversible and either deletes the sample cases and Runs or closes them out as history. Starting setup does not clear it: that only records that setup began."
9272
9356
  ),
9273
9357
  has_draft: z41.boolean().describe(
9274
9358
  "Whether an open draft revision exists. Always false for an automation without revisions: an automation-level draft badge is a revision concept, and the agent builder surfaces its own draft build state."
@@ -10786,6 +10870,19 @@ var caseQueueSchema = z49.object({
10786
10870
  // links (e.g. the automation-shell redirect resolver).
10787
10871
  team_id: z49.string().nullable().optional(),
10788
10872
  created_at: z49.string(),
10873
+ /**
10874
+ * The user who created the queue, resolved to their profile. Null for a
10875
+ * queue with no recorded creator — one created by an automation install or
10876
+ * predating the column. Same shape as an agent's `created_by`, so a reader
10877
+ * that renders one renders the other. Optional (additive) for the same
10878
+ * reason as the fields above: existing fixtures and CLI callers must keep
10879
+ * validating.
10880
+ */
10881
+ created_by: z49.object({
10882
+ id: z49.string(),
10883
+ name: z49.string().nullable(),
10884
+ email: z49.string()
10885
+ }).nullable().optional(),
10789
10886
  /**
10790
10887
  * True when at least one case in this queue has ever had an approval
10791
10888
  * batch (open, resolved, or cancelled). The frontend uses this to relabel
@@ -11215,12 +11312,7 @@ var inviteOrgMemberResponseSchema = z56.object({
11215
11312
  emailSent: z56.boolean()
11216
11313
  });
11217
11314
  var updateOrgMemberRoleRequestSchema = z56.object({
11218
- role: z56.enum([
11219
- "organization:executive",
11220
- "organization:owner",
11221
- "organization:admin",
11222
- "organization:member"
11223
- ])
11315
+ role: z56.enum(ORG_ROLES.MEMBER_ASSIGNABLE)
11224
11316
  });
11225
11317
  var addOrgDomainRequestSchema = z56.object({
11226
11318
  domain: z56.string().min(3).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/)
@@ -14062,7 +14154,7 @@ __name(registerAgentsCaseTriggers, "registerAgentsCaseTriggers");
14062
14154
  // src/commands/agents/create.ts
14063
14155
  import { readFile as readFile2 } from "node:fs/promises";
14064
14156
  import { confirm as confirm2, isCancel as isCancel2, text } from "@clack/prompts";
14065
- import { z as z120 } from "zod";
14157
+ import { z as z121 } from "zod";
14066
14158
 
14067
14159
  // src/api/agent-schemas.ts
14068
14160
  import { z as z68 } from "zod";
@@ -14341,14 +14433,15 @@ import { z as z108 } from "zod";
14341
14433
  import { z as z109 } from "zod";
14342
14434
  import { z as z110 } from "zod";
14343
14435
  import { z as z111 } from "zod";
14344
- import { z as z113 } from "zod";
14345
14436
  import { z as z1122 } from "zod";
14346
14437
  import { z as z114 } from "zod";
14438
+ import { z as z113 } from "zod";
14347
14439
  import { z as z115 } from "zod";
14348
14440
  import { z as z116 } from "zod";
14349
14441
  import { z as z117 } from "zod";
14350
14442
  import { z as z118 } from "zod";
14351
14443
  import { z as z119 } from "zod";
14444
+ import { z as z120 } from "zod";
14352
14445
 
14353
14446
  // ../node_modules/.pnpm/jsonrepair@3.13.2/node_modules/jsonrepair/lib/esm/utils/JSONRepairError.js
14354
14447
  var JSONRepairError = class extends Error {
@@ -18375,6 +18468,7 @@ var CLARITY_INTERVIEW_LANGUAGES2 = [
18375
18468
  "cs",
18376
18469
  "de",
18377
18470
  "en",
18471
+ "en-GB",
18378
18472
  "es",
18379
18473
  "es-MX",
18380
18474
  "fr",
@@ -18393,7 +18487,8 @@ var clarityInterviewLanguageResponseSchema2 = extensibleEnum2(
18393
18487
  CLARITY_INTERVIEW_LANGUAGES2
18394
18488
  ).default("en");
18395
18489
  var CLARITY_LANGUAGE_DISPLAY_NAMES2 = {
18396
- en: "English",
18490
+ en: "English (United States)",
18491
+ "en-GB": "English (United Kingdom)",
18397
18492
  cs: "Czech",
18398
18493
  fr: "French",
18399
18494
  de: "German",
@@ -25030,13 +25125,30 @@ var ORG_ROLE2 = {
25030
25125
  EXECUTIVE: "organization:executive",
25031
25126
  OWNER: "organization:owner",
25032
25127
  ADMIN: "organization:admin",
25033
- MEMBER: "organization:member"
25128
+ MEMBER: "organization:member",
25129
+ /**
25130
+ * Belongs to a team of this organization, with no organization-level
25131
+ * standing. Derived from team membership, never invited or assigned: the
25132
+ * write paths are typed on {@link ORG_ROLES.ALL} (invitations) and
25133
+ * {@link ORG_ROLES.SSO_ASSIGNABLE} (SSO defaults), neither of which
25134
+ * contains it.
25135
+ *
25136
+ * A guest's reach is deliberately identical to a team member holding no
25137
+ * membership row at all, with one exception: the organization appears in
25138
+ * their switcher (`/organizations/mine` is self-scoped and ungated), where
25139
+ * the row is rendered inert. See specs/org-owned-resources/PHASE_0_PLAN.md.
25140
+ */
25141
+ GUEST: "organization:guest"
25034
25142
  };
25035
25143
  var ORG_ROLE_CONFIG2 = {
25036
25144
  [ORG_ROLE2.EXECUTIVE]: { parentRole: null },
25037
25145
  [ORG_ROLE2.OWNER]: { parentRole: ORG_ROLE2.EXECUTIVE },
25038
25146
  [ORG_ROLE2.ADMIN]: { parentRole: ORG_ROLE2.OWNER },
25039
- [ORG_ROLE2.MEMBER]: { parentRole: ORG_ROLE2.ADMIN }
25147
+ [ORG_ROLE2.MEMBER]: { parentRole: ORG_ROLE2.ADMIN },
25148
+ // Lowest tier: `hasMinimumOrgRole(GUEST, MEMBER)` is false, so a guest
25149
+ // clears no role floor, while `canAssignOrgRole(ADMIN, GUEST)` is true so
25150
+ // an admin can promote one.
25151
+ [ORG_ROLE2.GUEST]: { parentRole: ORG_ROLE2.MEMBER }
25040
25152
  };
25041
25153
  var ORG_ROLES2 = {
25042
25154
  EXECUTIVE_ONLY: [ORG_ROLE2.EXECUTIVE],
@@ -25046,6 +25158,23 @@ var ORG_ROLES2 = {
25046
25158
  ORG_ROLE2.OWNER,
25047
25159
  ORG_ROLE2.ADMIN
25048
25160
  ],
25161
+ /**
25162
+ * Every role that carries organization-level standing — the widest allowlist
25163
+ * an org-scoped route may accept.
25164
+ *
25165
+ * `GUEST` is deliberately absent, and that omission is the whole of its
25166
+ * access policy: `requireOrgRole` rejects any role missing from the list it
25167
+ * is handed, so every current and future site gating on this array denies a
25168
+ * guest by default. Adding `GUEST` here would silently grant guests the
25169
+ * org-wide Clarity process landscape and ~20 other org-content reads. Don't.
25170
+ *
25171
+ * Need a place guest IS a legal value — e.g. a request body an admin may
25172
+ * set it through — without touching this array? That's `MEMBER_ASSIGNABLE`
25173
+ * below. Widening `ALL` for one such call site widens every authorization
25174
+ * check built on it at the same time; that's exactly the bug this file's
25175
+ * PR (`organization:guest`) had to fix twice already (the SSO login gate,
25176
+ * the org-owned Pulse scope check) before landing on two separate arrays.
25177
+ */
25049
25178
  ALL: [
25050
25179
  ORG_ROLE2.EXECUTIVE,
25051
25180
  ORG_ROLE2.OWNER,
@@ -25055,13 +25184,37 @@ var ORG_ROLES2 = {
25055
25184
  // Org roles an SSO connection may auto-grant to every user it admits.
25056
25185
  // Excludes executive/owner: default_org_role is applied unconditionally to
25057
25186
  // every SSO login, so those tiers must never be broadly granted by config.
25058
- SSO_ASSIGNABLE: [ORG_ROLE2.ADMIN, ORG_ROLE2.MEMBER]
25187
+ // Excludes guest: it is derived from team membership, never configured.
25188
+ SSO_ASSIGNABLE: [ORG_ROLE2.ADMIN, ORG_ROLE2.MEMBER],
25189
+ /**
25190
+ * Roles an admin may explicitly set on an *existing* member — `ALL` plus
25191
+ * `GUEST`. Distinct from `ALL`: that array answers "does this role carry
25192
+ * organization-level standing" (the authorization allowlist every org-scoped
25193
+ * route gates on), while this answers "can a human pick this value for a
25194
+ * member" — guest included, since assigning it is how an admin revokes a
25195
+ * member's org-level access without removing them from their teams (it can
25196
+ * only ever reduce reach, being the lowest tier). Invitations use `ALL`
25197
+ * unchanged: guest can't be invited, only reached by joining a team or by
25198
+ * this explicit downgrade.
25199
+ */
25200
+ MEMBER_ASSIGNABLE: [
25201
+ ORG_ROLE2.EXECUTIVE,
25202
+ ORG_ROLE2.OWNER,
25203
+ ORG_ROLE2.ADMIN,
25204
+ ORG_ROLE2.MEMBER,
25205
+ ORG_ROLE2.GUEST
25206
+ ]
25059
25207
  };
25060
25208
  function isValidOrgRole2(role) {
25061
25209
  return Object.values(ORG_ROLE2).includes(role);
25062
25210
  }
25063
25211
  __name(isValidOrgRole2, "isValidOrgRole");
25064
25212
  __name3(isValidOrgRole2, "isValidOrgRole");
25213
+ function isOrgStandingRole2(role) {
25214
+ return ORG_ROLES2.ALL.includes(role);
25215
+ }
25216
+ __name(isOrgStandingRole2, "isOrgStandingRole");
25217
+ __name3(isOrgStandingRole2, "isOrgStandingRole");
25065
25218
  function isSsoAssignableOrgRole2(role) {
25066
25219
  return ORG_ROLES2.SSO_ASSIGNABLE.includes(role);
25067
25220
  }
@@ -25086,7 +25239,14 @@ var TEAM_ROLE_BY_ORG_ROLE2 = {
25086
25239
  [ORG_ROLE2.EXECUTIVE]: TEAM_ROLE2.SUPERADMIN,
25087
25240
  [ORG_ROLE2.OWNER]: TEAM_ROLE2.OWNER,
25088
25241
  [ORG_ROLE2.ADMIN]: TEAM_ROLE2.SUPERADMIN,
25089
- [ORG_ROLE2.MEMBER]: null
25242
+ [ORG_ROLE2.MEMBER]: null,
25243
+ // Guest confers nothing, for the same reason MEMBER does not: it is a
25244
+ // team-membership side effect with no organization-level standing. `null`
25245
+ // rather than a missing key matters — callers test `=== null` and would let
25246
+ // an `undefined` through as a team role (see `resolve-minted-team-role.ts`
25247
+ // and `create-team-join-request.route.ts`), which the exhaustive `Record`
25248
+ // exists to prevent.
25249
+ [ORG_ROLE2.GUEST]: null
25090
25250
  };
25091
25251
  function teamRoleForOrgRole2(orgRole) {
25092
25252
  if (orgRole === null || !isValidOrgRole2(orgRole)) {
@@ -27680,7 +27840,12 @@ var toolExecutionPairSchema = z522.object({
27680
27840
  afterScreenshot: browserReplayScreenshotSchema.nullable()
27681
27841
  });
27682
27842
  var screenshotsTimelineResponseSchema = z522.object({
27683
- toolExecutions: z522.array(toolExecutionPairSchema)
27843
+ toolExecutions: z522.array(toolExecutionPairSchema),
27844
+ // Screenshots stored for the run, which exceeds the frames returned when the
27845
+ // timeline is capped. Both fields are optional so a client parsing this
27846
+ // schema still reads a response from a backend that predates the cap.
27847
+ totalScreenshotCount: z522.number().int().nonnegative().optional(),
27848
+ truncated: z522.boolean().optional()
27684
27849
  });
27685
27850
  var HUMAN_REQUEST_MIN_OPTIONS = 2;
27686
27851
  var HUMAN_REQUEST_MAX_OPTIONS = 6;
@@ -28965,12 +29130,7 @@ var inviteOrgMemberResponseSchema2 = z612.object({
28965
29130
  emailSent: z612.boolean()
28966
29131
  });
28967
29132
  var updateOrgMemberRoleRequestSchema2 = z612.object({
28968
- role: z612.enum([
28969
- "organization:executive",
28970
- "organization:owner",
28971
- "organization:admin",
28972
- "organization:member"
28973
- ])
29133
+ role: z612.enum(ORG_ROLES2.MEMBER_ASSIGNABLE)
28974
29134
  });
28975
29135
  var addOrgDomainRequestSchema2 = z612.object({
28976
29136
  domain: z612.string().min(3).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/)
@@ -30403,6 +30563,58 @@ var agentChatMessageMetadataSchema = z722.object({
30403
30563
  }).optional(),
30404
30564
  /** Artifact produced/edited by this turn — renders the transcript chip. */
30405
30565
  artifact: agentChatMessageArtifactRefSchema2.optional(),
30566
+ /**
30567
+ * A New Pulse submission handed to Ask Duvo. The user pressed "Create Pulse"
30568
+ * on the New Pulse page, so the request was collected outside the chat: the
30569
+ * turn's hidden instruction tells the agent to call `create_pulse_artifact`,
30570
+ * and this sidecar carries the arguments it must NOT author — the prompt
30571
+ * verbatim (mention tags intact), the Connections picked in the composer,
30572
+ * and the substrate the V1/V2 switch chose. The tool reads them server-side,
30573
+ * exactly as `refinePulseDashboard` reads `pulse.selectedElement`, so a
30574
+ * paraphrased prompt, a dropped `@queue` tag or an invented connection id is
30575
+ * not expressible.
30576
+ *
30577
+ * Written only on the hidden turn row, so it is also the marker that says
30578
+ * "this turn is a seeded creation" — see `resolveSeededPulseCreation`.
30579
+ * Deliberately NOT in the response projection below: the readable copy of
30580
+ * the request is the visible message the user already sees.
30581
+ */
30582
+ pulseCreation: z722.object({
30583
+ prompt: z722.string().min(1).max(MAX_ARTIFACT_MESSAGE_CHARS2),
30584
+ connectionIds: z722.array(z722.guid()).max(MAX_ARTIFACT_CONNECTIONS2),
30585
+ /**
30586
+ * Absent when PULSE_OPENUI is off for the team — the substrate then
30587
+ * comes from the flag default, and a stored format would claim a
30588
+ * substrate the page never offered.
30589
+ */
30590
+ contentFormat: pulseContentFormatSchema2.optional(),
30591
+ /**
30592
+ * The visible row carrying the same request, so the artifact ref lands
30593
+ * on the message a reader can actually see (the transcript chip) rather
30594
+ * than on the hidden instruction that produced it.
30595
+ */
30596
+ visibleMessageId: z722.guid(),
30597
+ /**
30598
+ * Set by whichever `create_pulse_artifact` call won the right to build
30599
+ * this request's dashboard, BEFORE it starts building. The write is a
30600
+ * conditional update that only succeeds while this field is unset, so
30601
+ * two calls that overlap — parallel tool calls in one turn — cannot both
30602
+ * proceed: the loser is told the dashboard is already being built rather
30603
+ * than starting a second one. `fulfilledArtifactId` alone cannot do this
30604
+ * job, because it is only knowable after the artifact exists, which is
30605
+ * after the duplicate would already have been created.
30606
+ *
30607
+ * Cleared again if the build fails, so a real retry is not locked out.
30608
+ */
30609
+ fulfillmentClaimedAt: z722.iso.datetime().optional(),
30610
+ /**
30611
+ * The dashboard this request produced, stamped once it exists. A second
30612
+ * `create_pulse_artifact` call on the same turn returns this dashboard
30613
+ * instead of building another one — the model retrying (or "improving")
30614
+ * its own successful call must not cost the user two dashboards.
30615
+ */
30616
+ fulfilledArtifactId: z722.guid().optional()
30617
+ }).optional(),
30406
30618
  /**
30407
30619
  * Present when the SERVER composed this turn, rather than the party it is
30408
30620
  * attributed to having authored it. A flow preset collects its input outside
@@ -31021,7 +31233,27 @@ var automationSummaryApiSchema2 = z79.object({
31021
31233
  agent_count: z79.int(),
31022
31234
  queue_count: z79.int(),
31023
31235
  created_at: z79.string(),
31024
- updated_at: z79.string()
31236
+ updated_at: z79.string(),
31237
+ // The wording below rests on `setup_started_at` being write-once AND
31238
+ // demo-only: `markModuleSetupStarted` is its single writer, narrowed to a row
31239
+ // that still has `demo_at`, and no path clears it. That is what makes the flag
31240
+ // outlive the conversion, and what makes a list row carrying it an automation
31241
+ // that is already set up.
31242
+ //
31243
+ // #10950 breaks both halves. `finish-setup` clears the column, so the flag
31244
+ // stops outliving anything; `reopen-setup` and self-serve setup stamp it on a
31245
+ // row whose `demo_at` is already NULL, so `is_setting_up` alone becomes the
31246
+ // primary mid-setup state - the inverse of the worked example below, not just
31247
+ // a change to how long it lasts.
31248
+ //
31249
+ // The agreed target is #10950's reading: `is_setting_up` means setup is
31250
+ // CURRENTLY under way. This block is therefore the accurate description of
31251
+ // today's code and not the destination - when #10950 lands, replace it with
31252
+ // that meaning rather than merging the two. The text below is right only for
31253
+ // as long as nothing clears the column.
31254
+ is_setting_up: z79.boolean().default(false).describe(
31255
+ "True once a team has started setting this Module up, and true from then on. setup_started_at is written once, by markModuleSetupStarted, and no path clears it, so this records that setup BEGAN rather than that it is still under way. Read together with is_demo, which lives on the detail response: both true is a demo with a build under way; is_demo alone is a demo nobody has begun; is_setting_up alone is an automation whose demo marker was cleared, which means it is already set up and running, NOT that it is still being set up. A list response carries only that last case, since the listing excludes demos - so is_setting_up on a list row is a record of past setup, and deciding whether a module is mid-setup needs is_demo from the detail. On the summary rather than the detail so that a client holding only a list, create or patch response knows the state too, and so every write onto the shared automation collection carries it. Defaulted rather than required: the client parses this response, so a backend that predates the column must not throw and take the automation's name down with it, and nothing on the wire has always meant an automation nobody has set up."
31256
+ )
31025
31257
  });
31026
31258
  var automationsListApiSchema2 = z79.object({
31027
31259
  automations: z79.array(automationSummaryApiSchema2),
@@ -31041,10 +31273,7 @@ var automationDetailApiSchema2 = automationSummaryApiSchema2.extend({
31041
31273
  ),
31042
31274
  module_template_version: z79.int().nullable().describe("Version of that template, set alongside the slug."),
31043
31275
  is_demo: z79.boolean().describe(
31044
- "True while this is an unconverted Module demo: its data is sample data and it cannot run. Cleared by the Setup tab."
31045
- ),
31046
- is_setting_up: z79.boolean().default(false).describe(
31047
- "True once a team has started setting this Module up. Read together with is_demo: both true is a module being built from its setup interview, is_demo alone is an untouched demo. Stays true after setup, when is_demo is what has changed. Defaulted rather than required for the same reason `tabs` is optional: the client parses this response, so during a deploy window a backend that predates the field would otherwise throw and take the automation's name and revision state down with it."
31276
+ "True while this is an unconverted Module demo: its data is sample data and it cannot run. Cleared when the demo is converted into a real automation, which is irreversible and either deletes the sample cases and Runs or closes them out as history. Starting setup does not clear it: that only records that setup began."
31048
31277
  ),
31049
31278
  has_draft: z79.boolean().describe(
31050
31279
  "Whether an open draft revision exists. Always false for an automation without revisions: an automation-level draft badge is a revision concept, and the agent builder surfaces its own draft build state."
@@ -32662,6 +32891,19 @@ var caseQueueSchema2 = z922.object({
32662
32891
  // links (e.g. the automation-shell redirect resolver).
32663
32892
  team_id: z922.string().nullable().optional(),
32664
32893
  created_at: z922.string(),
32894
+ /**
32895
+ * The user who created the queue, resolved to their profile. Null for a
32896
+ * queue with no recorded creator — one created by an automation install or
32897
+ * predating the column. Same shape as an agent's `created_by`, so a reader
32898
+ * that renders one renders the other. Optional (additive) for the same
32899
+ * reason as the fields above: existing fixtures and CLI callers must keep
32900
+ * validating.
32901
+ */
32902
+ created_by: z922.object({
32903
+ id: z922.string(),
32904
+ name: z922.string().nullable(),
32905
+ email: z922.string()
32906
+ }).nullable().optional(),
32665
32907
  /**
32666
32908
  * True when at least one case in this queue has ever had an approval
32667
32909
  * batch (open, resolved, or cancelled). The frontend uses this to relabel
@@ -33227,6 +33469,16 @@ var FEATURE_FLAG_CATALOGUE = {
33227
33469
  defaultValue: false,
33228
33470
  description: "Switches the evaluation judge model \u2014 the run-level judge (evaluate-agent-run) and the whole-case judge (case-evaluation-engine) \u2014 from the Sonnet default (EVALUATION_MODEL, claude-sonnet-5[1m]) to Kimi K3 served from Duvo's own GPU cluster (kimi-k3-duvo; LiteLLM fails over to the Fireworks deployment on cluster saturation or outage). Applies only when the team resolves to the `default` LLM provider: provider-pinned organizations keep the Sonnet judge, because kimi-k3-duvo has no deployment inside the pinned-provider key closure and the sandbox key would reject the request. Any provider or flag resolution failure fails safe to the Sonnet judge. The internal benchmark judges (ontology, workflow-builder) and AOP suggestion generation stay on EVALUATION_MODEL regardless. Judge scores are calibrated per model, so flipping this shifts the team's evaluation baseline \u2014 enable deliberately, per team. Off-by-default; also the kill-switch for the Kimi judge."
33229
33471
  },
33472
+ HUMAN_OUTCOME_LABELS: {
33473
+ key: "human_outcome_labels",
33474
+ defaultValue: false,
33475
+ description: "Private human outcome labels on completed Runs and Cases for internal reviewers. Enable per user. No runtime or judge effects."
33476
+ },
33477
+ IMPERSONATION: {
33478
+ key: "impersonation",
33479
+ defaultValue: true,
33480
+ description: "Allows staff to impersonate users who belong to the targeted tenant. Default ON. Turn off as a team or organization override to refuse execute for any target who is a member of that tenant \u2014 impersonation is user-level, so one disabled tenant among the target's memberships blocks the session. User-level overrides are ignored (this is a tenant policy, not a per-person toggle). Creating and ending a session are not gated. An already-live session is not revoked; it expires on its existing deadline. The Impersonate control stays visible; execute returns 403."
33481
+ },
33230
33482
  MAERSK_CONNECTION: {
33231
33483
  key: "maersk_connection",
33232
33484
  defaultValue: false,
@@ -33310,7 +33562,7 @@ var FEATURE_FLAG_CATALOGUE = {
33310
33562
  PULSE_EDIT_IN_ASK_DUVO: {
33311
33563
  key: "pulse_edit_in_ask_duvo",
33312
33564
  defaultValue: false,
33313
- description: "Routes the Pulse dashboard's 'Edit in chat' action to Ask Duvo instead of the native Pulse chat panel. When on, clicking 'Edit in chat' opens the Ask Duvo rail bound to the dashboard (so the agent can edit it and prior Pulse chat messages surface in-rail); when off, the button toggles the native in-page Pulse chat panel as before. Requires META_AGENT_ARTIFACTS. Off-by-default for staged rollout."
33565
+ description: "Routes Pulse through Ask Duvo instead of the native Pulse chat panel. Covers both halves of a dashboard's life. Editing: clicking 'Edit in chat' opens the Ask Duvo rail bound to the dashboard (so the agent can edit it and prior Pulse chat messages surface in-rail); with the flag off the button toggles the native in-page Pulse chat panel as before. Creating: submitting a prompt on the New Pulse page opens an Ask Duvo conversation whose first message is that prompt and whose hidden companion turn makes the agent build the dashboard immediately, so the build narrates in the conversation instead of in silence; with the flag off New Pulse creates the dashboard directly and lands on its canvas. Text-only submissions take the Ask Duvo path \u2014 a submission carrying file attachments always creates directly, since the in-chat create tool cannot carry them. Requires META_AGENT_ARTIFACTS (which registers the in-chat create/edit tools; without it the agent falls back to the public createPulseDashboard tool and produces a dashboard with no binding and no in-chat progress) and AGENT_CHAT (the surface the conversation lands in). Off-by-default for staged rollout."
33314
33566
  },
33315
33567
  PULSE_OPENUI: {
33316
33568
  key: "pulse_openui",
@@ -33465,6 +33717,43 @@ var globalAdminDeleteResponseSchema = z101.object({
33465
33717
  var adminAccessCheckResponseSchema = z101.object({
33466
33718
  isGlobalAdmin: z101.boolean()
33467
33719
  });
33720
+ var humanOutcomeSubjectSchema = z1022.object({
33721
+ kind: z1022.enum(["run", "case"]),
33722
+ id: z1022.guid()
33723
+ });
33724
+ var humanOutcomeSchema = z1022.enum(["success", "failed"]);
33725
+ var humanOutcomeEvidenceSummarySchema = z1022.object({
33726
+ evaluationId: z1022.guid().nullable(),
33727
+ status: z1022.string(),
33728
+ completedAt: z1022.string().nullable(),
33729
+ messageCount: z1022.number().int().nonnegative(),
33730
+ capturedAt: z1022.string()
33731
+ });
33732
+ var humanOutcomeLabelSchema = z1022.object({
33733
+ id: z1022.guid(),
33734
+ /** `null` means this row removed the label. */
33735
+ outcome: humanOutcomeSchema.nullable(),
33736
+ reason: z1022.string().nullable(),
33737
+ evidenceFingerprint: z1022.string(),
33738
+ /** The live subject no longer matches the evidence behind this label. */
33739
+ evidenceChanged: z1022.boolean(),
33740
+ createdAt: z1022.string()
33741
+ });
33742
+ var humanOutcomeStateSchema = z1022.object({
33743
+ eligible: z1022.boolean(),
33744
+ ineligibleReason: z1022.string().nullable(),
33745
+ /** Echoed back on save so the server can detect changed evidence. */
33746
+ evidenceFingerprint: z1022.string().nullable(),
33747
+ summary: humanOutcomeEvidenceSummarySchema.nullable(),
33748
+ current: humanOutcomeLabelSchema.nullable(),
33749
+ history: z1022.array(humanOutcomeLabelSchema)
33750
+ });
33751
+ var humanOutcomeWriteSchema = z1022.object({
33752
+ /** `null` removes the current label and keeps the history. */
33753
+ outcome: humanOutcomeSchema.nullable(),
33754
+ reason: z1022.string().trim().max(1e4).nullable(),
33755
+ evidenceFingerprint: z1022.string().min(1)
33756
+ });
33468
33757
  function asRecord(value) {
33469
33758
  return typeof value === "object" && value !== null ? value : void 0;
33470
33759
  }
@@ -33580,151 +33869,151 @@ function readDesktopStepParams(step) {
33580
33869
  __name(readDesktopStepParams, "readDesktopStepParams");
33581
33870
  __name3(readDesktopStepParams, "readDesktopStepParams");
33582
33871
  var JOB_LIST_SORT_COLUMNS2 = ["created_at"];
33583
- var jobListSortColumnSchema2 = z1022.enum(JOB_LIST_SORT_COLUMNS2);
33584
- var jobListIssueSeveritySchema2 = z1022.enum(
33872
+ var jobListSortColumnSchema2 = z103.enum(JOB_LIST_SORT_COLUMNS2);
33873
+ var jobListIssueSeveritySchema2 = z103.enum(
33585
33874
  ALL_EVALUATION_RUBRIC_SEVERITIES2
33586
33875
  );
33587
- var jobListItemSchema2 = z1022.object({
33588
- id: z1022.guid(),
33589
- created_at: z1022.coerce.date(),
33590
- updated_at: z1022.coerce.date(),
33591
- started_at: z1022.coerce.date().nullable(),
33592
- completed_at: z1022.coerce.date().nullable(),
33876
+ var jobListItemSchema2 = z103.object({
33877
+ id: z103.guid(),
33878
+ created_at: z103.coerce.date(),
33879
+ updated_at: z103.coerce.date(),
33880
+ started_at: z103.coerce.date().nullable(),
33881
+ completed_at: z103.coerce.date().nullable(),
33593
33882
  status: agentRunStatusSchema2,
33594
- source: z1022.string().nullable(),
33595
- title: z1022.string(),
33596
- run_number: z1022.number(),
33883
+ source: z103.string().nullable(),
33884
+ title: z103.string(),
33885
+ run_number: z103.number(),
33597
33886
  // Agent info
33598
- agent_id: z1022.guid(),
33599
- agent_name: z1022.string(),
33600
- build_id: z1022.guid(),
33887
+ agent_id: z103.guid(),
33888
+ agent_name: z103.string(),
33889
+ build_id: z103.guid(),
33601
33890
  // Automation info (null for runs whose agent doesn't belong to an automation)
33602
- automation_id: z1022.guid().nullable(),
33603
- automation_name: z1022.string().nullable(),
33891
+ automation_id: z103.guid().nullable(),
33892
+ automation_name: z103.string().nullable(),
33604
33893
  // User info
33605
- user_id: z1022.guid().nullable(),
33894
+ user_id: z103.guid().nullable(),
33606
33895
  // Case info
33607
- case_queue_item_id: z1022.guid().nullable(),
33608
- case_queue_id: z1022.guid().nullable(),
33609
- case_queue_name: z1022.string().nullable(),
33610
- case_title: z1022.string().nullable(),
33611
- postponed_to: z1022.coerce.date().nullable(),
33612
- submitted_prompt_count: z1022.number().int().min(0),
33896
+ case_queue_item_id: z103.guid().nullable(),
33897
+ case_queue_id: z103.guid().nullable(),
33898
+ case_queue_name: z103.string().nullable(),
33899
+ case_title: z103.string().nullable(),
33900
+ postponed_to: z103.coerce.date().nullable(),
33901
+ submitted_prompt_count: z103.number().int().min(0),
33613
33902
  eval_summaries: evalSummarySchema2.nullable().optional()
33614
33903
  });
33615
- var jobListResponseSchema2 = z1022.object({
33616
- data: z1022.array(jobListItemSchema2),
33617
- total: z1022.number()
33904
+ var jobListResponseSchema2 = z103.object({
33905
+ data: z103.array(jobListItemSchema2),
33906
+ total: z103.number()
33618
33907
  });
33619
- var jobFilterOptionsSchema2 = z1022.object({
33620
- agents: z1022.array(
33621
- z1022.object({
33622
- id: z1022.string(),
33623
- name: z1022.string(),
33624
- folder_id: z1022.string().nullable()
33908
+ var jobFilterOptionsSchema2 = z103.object({
33909
+ agents: z103.array(
33910
+ z103.object({
33911
+ id: z103.string(),
33912
+ name: z103.string(),
33913
+ folder_id: z103.string().nullable()
33625
33914
  })
33626
33915
  ),
33627
- folders: z1022.array(
33628
- z1022.object({
33629
- id: z1022.string(),
33630
- name: z1022.string(),
33631
- parent_folder_id: z1022.string().nullable()
33916
+ folders: z103.array(
33917
+ z103.object({
33918
+ id: z103.string(),
33919
+ name: z103.string(),
33920
+ parent_folder_id: z103.string().nullable()
33632
33921
  })
33633
33922
  ),
33634
- users: z1022.array(
33635
- z1022.object({
33636
- id: z1022.string(),
33637
- name: z1022.string().nullable(),
33638
- email: z1022.string()
33923
+ users: z103.array(
33924
+ z103.object({
33925
+ id: z103.string(),
33926
+ name: z103.string().nullable(),
33927
+ email: z103.string()
33639
33928
  })
33640
33929
  ),
33641
- caseQueues: z1022.array(z1022.object({ id: z1022.string(), name: z1022.string() })),
33642
- automations: z1022.array(z1022.object({ id: z1022.string(), name: z1022.string() }))
33643
- });
33644
- var stepModeSchema = z103.enum(["deterministic", "parameterized", "agent"]).describe("How replay executes this step");
33645
- var credentialFieldSchema = z103.enum(["username", "password", "otp", "new-password"]).describe("Which login field this fill targets");
33646
- var workflowParameterSchema = z103.object({
33647
- name: z103.string(),
33648
- type: z103.literal("string"),
33649
- description: z103.string(),
33650
- required: z103.boolean(),
33651
- example: z103.string().optional()
33652
- });
33653
- var outputCaptureSchema = z103.enum(["currentUrl", "elementText"]).describe("How the value is captured: page URL, or an element's text");
33654
- var workflowOutputSchema = z103.object({
33655
- name: z103.string(),
33930
+ caseQueues: z103.array(z103.object({ id: z103.string(), name: z103.string() })),
33931
+ automations: z103.array(z103.object({ id: z103.string(), name: z103.string() }))
33932
+ });
33933
+ var stepModeSchema = z104.enum(["deterministic", "parameterized", "agent"]).describe("How replay executes this step");
33934
+ var credentialFieldSchema = z104.enum(["username", "password", "otp", "new-password"]).describe("Which login field this fill targets");
33935
+ var workflowParameterSchema = z104.object({
33936
+ name: z104.string(),
33937
+ type: z104.literal("string"),
33938
+ description: z104.string(),
33939
+ required: z104.boolean(),
33940
+ example: z104.string().optional()
33941
+ });
33942
+ var outputCaptureSchema = z104.enum(["currentUrl", "elementText"]).describe("How the value is captured: page URL, or an element's text");
33943
+ var workflowOutputSchema = z104.object({
33944
+ name: z104.string(),
33656
33945
  capture: outputCaptureSchema,
33657
- stepIndex: z103.number().int().nonnegative(),
33658
- selector: z103.string().optional().describe(
33946
+ stepIndex: z104.number().int().nonnegative(),
33947
+ selector: z104.string().optional().describe(
33659
33948
  "CSS selector to read text from; required when capture is 'elementText'"
33660
33949
  ),
33661
- description: z103.string()
33950
+ description: z104.string()
33662
33951
  }).superRefine((output, ctx) => {
33663
33952
  if (output.capture === "elementText" && !output.selector) {
33664
33953
  ctx.addIssue({
33665
- code: z103.ZodIssueCode.custom,
33954
+ code: z104.ZodIssueCode.custom,
33666
33955
  path: ["selector"],
33667
33956
  message: "elementText outputs must declare a selector"
33668
33957
  });
33669
33958
  }
33670
33959
  });
33671
- var mcpStepSchema = z103.object({
33672
- tool: z103.string().describe("MCP tool name (e.g., click, fill, navigate_page)"),
33673
- params: z103.record(z103.string(), z103.unknown()).describe("Tool-specific parameters"),
33674
- fallbackSelectors: z103.array(z103.string()).optional().describe("Alternative CSS selectors if primary fails"),
33675
- description: z103.string().optional().describe("Human-readable step description"),
33676
- screenshot: z103.string().optional().describe(
33960
+ var mcpStepSchema = z104.object({
33961
+ tool: z104.string().describe("MCP tool name (e.g., click, fill, navigate_page)"),
33962
+ params: z104.record(z104.string(), z104.unknown()).describe("Tool-specific parameters"),
33963
+ fallbackSelectors: z104.array(z104.string()).optional().describe("Alternative CSS selectors if primary fails"),
33964
+ description: z104.string().optional().describe("Human-readable step description"),
33965
+ screenshot: z104.string().optional().describe(
33677
33966
  "Path to this step's captured frame, relative to the skill root (e.g. `assets/screenshots/12.jpg`). Never inline image data \u2014 the frame is a separate asset in the skill bundle."
33678
33967
  ),
33679
- snapshot: z103.string().optional().describe("DOM snapshot in accessibility tree format at this step"),
33680
- coordinates: z103.object({ x: z103.number(), y: z103.number() }).optional().describe(
33968
+ snapshot: z104.string().optional().describe("DOM snapshot in accessibility tree format at this step"),
33969
+ coordinates: z104.object({ x: z104.number(), y: z104.number() }).optional().describe(
33681
33970
  "Where in the viewport the action happened, in CSS pixels relative to `viewport`. Presentation only \u2014 replay targets the element, never the point \u2014 so a player can mark the spot on this step's `screenshot`."
33682
33971
  ),
33683
- framePath: z103.array(z103.number()).optional().describe(
33972
+ framePath: z104.array(z104.number()).optional().describe(
33684
33973
  "Index-based path to the target iframe (e.g., [0] for first child iframe, [1, 0] for nested)"
33685
33974
  ),
33686
33975
  mode: stepModeSchema.optional().describe("Replay execution mode; absent is treated as deterministic"),
33687
- variable: z103.object({ name: z103.string() }).optional().describe(
33976
+ variable: z104.object({ name: z104.string() }).optional().describe(
33688
33977
  "Binding key that replaces the recorded literal for parameterized steps"
33689
33978
  ),
33690
33979
  credentialField: credentialFieldSchema.optional().describe(
33691
33980
  "Set when this fill targets a login field. `username` / `password` / `otp` are resolved from the Login attached to the Agent (list_credentials, then fill_username / fill_password / fill_otp) \u2014 never from a recorded literal and never from a binding, so the secret stays out of model context. `new-password` is the opposite case: a password being *set* rather than signed in with, which must NOT come from the vault. It is tagged all the same so that no password box is ever declared as a bindable parameter."
33692
33981
  )
33693
33982
  });
33694
- var workflowProviderSchema = z103.enum(["browsing", "computer_use"]).describe("Replay surface: browser vs computer-use desktop");
33695
- var mcpWorkflowSchema = z103.object({
33696
- name: z103.string(),
33983
+ var workflowProviderSchema = z104.enum(["browsing", "computer_use"]).describe("Replay surface: browser vs computer-use desktop");
33984
+ var mcpWorkflowSchema = z104.object({
33985
+ name: z104.string(),
33697
33986
  // Browser-only: the page the recording started on. Optional so computer-use
33698
33987
  // workflows (which have no URL) share this schema; required for browsing via
33699
33988
  // the refine below.
33700
- startUrl: z103.string().optional(),
33989
+ startUrl: z104.string().optional(),
33701
33990
  // For browsing this is the browser viewport; for computer_use it is the
33702
33991
  // recorded desktop size. Same field, provider-specific meaning.
33703
- viewport: z103.object({
33704
- width: z103.number(),
33705
- height: z103.number()
33992
+ viewport: z104.object({
33993
+ width: z104.number(),
33994
+ height: z104.number()
33706
33995
  }),
33707
33996
  // Optional (not defaulted) so existing browser workflows and every McpWorkflow
33708
33997
  // constructor stay valid without naming it; absent means "browsing".
33709
33998
  provider: workflowProviderSchema.optional(),
33710
- computer_use_backend: z103.enum(["sandbox", "rdp"]).optional().describe("Which computer-use backend recorded this workflow"),
33711
- steps: z103.array(mcpStepSchema),
33712
- version: z103.union([z103.literal(1), z103.literal(2)]).optional().describe(
33999
+ computer_use_backend: z104.enum(["sandbox", "rdp"]).optional().describe("Which computer-use backend recorded this workflow"),
34000
+ steps: z104.array(mcpStepSchema),
34001
+ version: z104.union([z104.literal(1), z104.literal(2)]).optional().describe(
33713
34002
  "Workflow schema version: absent/1 = legacy, 2 = classified for deterministic workflow execution. Unknown versions are rejected rather than silently treated as legacy."
33714
34003
  ),
33715
- parameters: z103.array(workflowParameterSchema).optional().describe("Typed parameters the agent binds at replay"),
33716
- outputs: z103.array(workflowOutputSchema).optional().describe("Values the replay captures and returns to the agent")
34004
+ parameters: z104.array(workflowParameterSchema).optional().describe("Typed parameters the agent binds at replay"),
34005
+ outputs: z104.array(workflowOutputSchema).optional().describe("Values the replay captures and returns to the agent")
33717
34006
  }).superRefine((workflow, ctx) => {
33718
34007
  if ((workflow.provider ?? "browsing") === "browsing" && !workflow.startUrl) {
33719
34008
  ctx.addIssue({
33720
- code: z103.ZodIssueCode.custom,
34009
+ code: z104.ZodIssueCode.custom,
33721
34010
  path: ["startUrl"],
33722
34011
  message: "browsing workflows must declare a startUrl"
33723
34012
  });
33724
34013
  }
33725
34014
  if (workflow.computer_use_backend !== void 0 && workflow.provider !== "computer_use") {
33726
34015
  ctx.addIssue({
33727
- code: z103.ZodIssueCode.custom,
34016
+ code: z104.ZodIssueCode.custom,
33728
34017
  path: ["computer_use_backend"],
33729
34018
  message: "computer_use_backend requires provider: computer_use"
33730
34019
  });
@@ -33732,7 +34021,7 @@ var mcpWorkflowSchema = z103.object({
33732
34021
  workflow.steps.forEach((step, index) => {
33733
34022
  if (step.mode === "parameterized" && !step.variable) {
33734
34023
  ctx.addIssue({
33735
- code: z103.ZodIssueCode.custom,
34024
+ code: z104.ZodIssueCode.custom,
33736
34025
  path: ["steps", index, "variable"],
33737
34026
  message: "parameterized steps must declare a variable binding"
33738
34027
  });
@@ -33742,7 +34031,7 @@ var mcpWorkflowSchema = z103.object({
33742
34031
  (workflow.outputs ?? []).forEach((output, i) => {
33743
34032
  if (seenOutputNames.has(output.name)) {
33744
34033
  ctx.addIssue({
33745
- code: z103.ZodIssueCode.custom,
34034
+ code: z104.ZodIssueCode.custom,
33746
34035
  path: ["outputs", i, "name"],
33747
34036
  message: "output names must be unique"
33748
34037
  });
@@ -33750,14 +34039,14 @@ var mcpWorkflowSchema = z103.object({
33750
34039
  seenOutputNames.add(output.name);
33751
34040
  if (output.stepIndex >= workflow.steps.length) {
33752
34041
  ctx.addIssue({
33753
- code: z103.ZodIssueCode.custom,
34042
+ code: z104.ZodIssueCode.custom,
33754
34043
  path: ["outputs", i, "stepIndex"],
33755
34044
  message: "output stepIndex is out of range"
33756
34045
  });
33757
34046
  }
33758
34047
  });
33759
34048
  });
33760
- var MCP_WORKFLOW_JSON_SCHEMA = z103.toJSONSchema(mcpWorkflowSchema, {
34049
+ var MCP_WORKFLOW_JSON_SCHEMA = z104.toJSONSchema(mcpWorkflowSchema, {
33761
34050
  reused: "inline"
33762
34051
  });
33763
34052
  var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
@@ -33766,38 +34055,38 @@ var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
33766
34055
  2
33767
34056
  );
33768
34057
  var ORG_BROWSER_CONFIG_VERSION = 1;
33769
- var organizationBrowserConfigDataSchema = z104.object({
34058
+ var organizationBrowserConfigDataSchema = z105.object({
33770
34059
  browserProvider: BrowserProviderTypeSchema2.nullable(),
33771
34060
  dataResidency: DataResidencySchema2.nullable(),
33772
34061
  dataHandling: DataHandlingSchema2.nullable(),
33773
- enforced: z104.boolean(),
34062
+ enforced: z105.boolean(),
33774
34063
  egressMode: browserEgressModeSchema2.nullable().optional()
33775
34064
  });
33776
- var organizationBrowserConfigSchema = z104.object({
33777
- version: z104.literal(ORG_BROWSER_CONFIG_VERSION),
34065
+ var organizationBrowserConfigSchema = z105.object({
34066
+ version: z105.literal(ORG_BROWSER_CONFIG_VERSION),
33778
34067
  data: organizationBrowserConfigDataSchema
33779
34068
  });
33780
- var organizationBrowserSettingsSchema = z104.object({
33781
- organizationId: z104.guid(),
34069
+ var organizationBrowserSettingsSchema = z105.object({
34070
+ organizationId: z105.guid(),
33782
34071
  browserProvider: BrowserProviderTypeSchema2.nullable(),
33783
34072
  dataResidency: DataResidencySchema2.nullable(),
33784
34073
  dataHandling: DataHandlingSchema2.nullable(),
33785
- enforced: z104.boolean(),
34074
+ enforced: z105.boolean(),
33786
34075
  egressMode: browserEgressModeSchema2.nullable().optional(),
33787
- createdAt: z104.string(),
33788
- updatedAt: z104.string()
34076
+ createdAt: z105.string(),
34077
+ updatedAt: z105.string()
33789
34078
  });
33790
- var getOrganizationBrowserSettingsResponseSchema = z104.object({
34079
+ var getOrganizationBrowserSettingsResponseSchema = z105.object({
33791
34080
  settings: organizationBrowserSettingsSchema.nullable()
33792
34081
  });
33793
- var updateOrganizationBrowserSettingsRequestSchema = z104.object({
34082
+ var updateOrganizationBrowserSettingsRequestSchema = z105.object({
33794
34083
  browserProvider: BrowserProviderTypeSchema2.nullable().optional(),
33795
34084
  dataResidency: DataResidencySchema2.nullable().optional(),
33796
34085
  dataHandling: DataHandlingSchema2.nullable().optional(),
33797
- enforced: z104.boolean().optional(),
34086
+ enforced: z105.boolean().optional(),
33798
34087
  egressMode: browserEgressModeSchema2.nullable().optional()
33799
34088
  });
33800
- var updateOrganizationBrowserSettingsResponseSchema = z104.object({
34089
+ var updateOrganizationBrowserSettingsResponseSchema = z105.object({
33801
34090
  settings: organizationBrowserSettingsSchema
33802
34091
  });
33803
34092
  var DEPLOYMENT_REGION_FACETS = [
@@ -33807,22 +34096,22 @@ var DEPLOYMENT_REGION_FACETS = [
33807
34096
  "storage",
33808
34097
  "analytics"
33809
34098
  ];
33810
- var deploymentRegionFacetSchema = z105.enum(DEPLOYMENT_REGION_FACETS);
34099
+ var deploymentRegionFacetSchema = z106.enum(DEPLOYMENT_REGION_FACETS);
33811
34100
  var ORG_DEPLOYMENT_CONFIG_VERSION = 1;
33812
- var deploymentFacetOverridesSchema = z105.object({
34101
+ var deploymentFacetOverridesSchema = z106.object({
33813
34102
  sandbox: DataResidencySchema2.nullable(),
33814
34103
  inference: DataResidencySchema2.nullable(),
33815
34104
  storage: DataResidencySchema2.nullable(),
33816
34105
  analytics: DataResidencySchema2.nullable()
33817
34106
  });
33818
34107
  var MAX_DEPLOYMENT_NOTES_LENGTH = 2e3;
33819
- var organizationDeploymentConfigDataSchema = z105.object({
34108
+ var organizationDeploymentConfigDataSchema = z106.object({
33820
34109
  facetOverrides: deploymentFacetOverridesSchema,
33821
- analyticsEnabled: z105.boolean(),
33822
- notes: z105.string().max(MAX_DEPLOYMENT_NOTES_LENGTH).nullable()
34110
+ analyticsEnabled: z106.boolean(),
34111
+ notes: z106.string().max(MAX_DEPLOYMENT_NOTES_LENGTH).nullable()
33823
34112
  });
33824
- var organizationDeploymentConfigSchema = z105.object({
33825
- version: z105.literal(ORG_DEPLOYMENT_CONFIG_VERSION),
34113
+ var organizationDeploymentConfigSchema = z106.object({
34114
+ version: z106.literal(ORG_DEPLOYMENT_CONFIG_VERSION),
33826
34115
  data: organizationDeploymentConfigDataSchema
33827
34116
  });
33828
34117
  var DEPLOYMENT_REGION_SOURCES = [
@@ -33830,12 +34119,12 @@ var DEPLOYMENT_REGION_SOURCES = [
33830
34119
  "org-umbrella",
33831
34120
  "platform-default"
33832
34121
  ];
33833
- var resolvedDeploymentRegionSchema = z105.object({
34122
+ var resolvedDeploymentRegionSchema = z106.object({
33834
34123
  value: DataResidencySchema2,
33835
- source: z105.enum(DEPLOYMENT_REGION_SOURCES),
33836
- divergesFromUmbrella: z105.boolean()
34124
+ source: z106.enum(DEPLOYMENT_REGION_SOURCES),
34125
+ divergesFromUmbrella: z106.boolean()
33837
34126
  });
33838
- var platformRegionDefaultsSchema = z105.object({
34127
+ var platformRegionDefaultsSchema = z106.object({
33839
34128
  browser: DataResidencySchema2,
33840
34129
  sandbox: DataResidencySchema2,
33841
34130
  inference: DataResidencySchema2,
@@ -33893,108 +34182,108 @@ var ORGANIZATION_TAG_COLORS = [
33893
34182
  "pink",
33894
34183
  "teal"
33895
34184
  ];
33896
- var organizationTagColorSchema = z105.enum(ORGANIZATION_TAG_COLORS);
34185
+ var organizationTagColorSchema = z106.enum(ORGANIZATION_TAG_COLORS);
33897
34186
  function normalizeTagSlug(input) {
33898
34187
  return input.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, MAX_TAG_SLUG_LENGTH);
33899
34188
  }
33900
34189
  __name(normalizeTagSlug, "normalizeTagSlug");
33901
34190
  __name3(normalizeTagSlug, "normalizeTagSlug");
33902
- var organizationTagSchema = z105.object({
33903
- id: z105.guid(),
33904
- slug: z105.string(),
33905
- label: z105.string(),
34191
+ var organizationTagSchema = z106.object({
34192
+ id: z106.guid(),
34193
+ slug: z106.string(),
34194
+ label: z106.string(),
33906
34195
  color: organizationTagColorSchema,
33907
- description: z105.string().nullable(),
33908
- createdAt: z105.string(),
33909
- updatedAt: z105.string()
34196
+ description: z106.string().nullable(),
34197
+ createdAt: z106.string(),
34198
+ updatedAt: z106.string()
33910
34199
  });
33911
- var createOrganizationTagRequestSchema = z105.object({
33912
- label: z105.string().min(1).max(MAX_TAG_LABEL_LENGTH),
33913
- slug: z105.string().min(1).max(MAX_TAG_SLUG_LENGTH).optional(),
34200
+ var createOrganizationTagRequestSchema = z106.object({
34201
+ label: z106.string().min(1).max(MAX_TAG_LABEL_LENGTH),
34202
+ slug: z106.string().min(1).max(MAX_TAG_SLUG_LENGTH).optional(),
33914
34203
  color: organizationTagColorSchema,
33915
- description: z105.string().max(MAX_TAG_DESCRIPTION_LENGTH).nullable().optional()
34204
+ description: z106.string().max(MAX_TAG_DESCRIPTION_LENGTH).nullable().optional()
33916
34205
  });
33917
- var updateOrganizationTagRequestSchema = z105.object({
33918
- label: z105.string().min(1).max(MAX_TAG_LABEL_LENGTH).optional(),
34206
+ var updateOrganizationTagRequestSchema = z106.object({
34207
+ label: z106.string().min(1).max(MAX_TAG_LABEL_LENGTH).optional(),
33919
34208
  color: organizationTagColorSchema.optional(),
33920
- description: z105.string().max(MAX_TAG_DESCRIPTION_LENGTH).nullable().optional()
34209
+ description: z106.string().max(MAX_TAG_DESCRIPTION_LENGTH).nullable().optional()
33921
34210
  });
33922
- var listOrganizationTagsResponseSchema = z105.object({
33923
- tags: z105.array(organizationTagSchema)
34211
+ var listOrganizationTagsResponseSchema = z106.object({
34212
+ tags: z106.array(organizationTagSchema)
33924
34213
  });
33925
- var organizationTagResponseSchema = z105.object({
34214
+ var organizationTagResponseSchema = z106.object({
33926
34215
  tag: organizationTagSchema
33927
34216
  });
33928
- var organizationDeploymentProfileSchema = z105.object({
33929
- organizationId: z105.guid(),
34217
+ var organizationDeploymentProfileSchema = z106.object({
34218
+ organizationId: z106.guid(),
33930
34219
  dataRegion: DataResidencySchema2.nullable(),
33931
34220
  sandboxRegion: DataResidencySchema2.nullable(),
33932
34221
  inferenceRegion: DataResidencySchema2.nullable(),
33933
34222
  storageRegion: DataResidencySchema2.nullable(),
33934
34223
  analyticsRegion: DataResidencySchema2.nullable(),
33935
- analyticsEnabled: z105.boolean(),
33936
- notes: z105.string().nullable(),
33937
- createdAt: z105.string(),
33938
- updatedAt: z105.string()
34224
+ analyticsEnabled: z106.boolean(),
34225
+ notes: z106.string().nullable(),
34226
+ createdAt: z106.string(),
34227
+ updatedAt: z106.string()
33939
34228
  });
33940
- var updateOrganizationDeploymentProfileRequestSchema = z105.object({
34229
+ var updateOrganizationDeploymentProfileRequestSchema = z106.object({
33941
34230
  /**
33942
34231
  * Optional tag assignment, applied in the same transaction as the profile.
33943
34232
  * The drawer saves both at once; two sequential requests could leave the
33944
34233
  * profile written and the tags not, while the UI reported a failed save.
33945
34234
  */
33946
- tagIds: z105.array(z105.guid()).max(50).optional(),
34235
+ tagIds: z106.array(z106.guid()).max(50).optional(),
33947
34236
  dataRegion: DataResidencySchema2.nullable().optional(),
33948
34237
  sandboxRegion: DataResidencySchema2.nullable().optional(),
33949
34238
  inferenceRegion: DataResidencySchema2.nullable().optional(),
33950
34239
  storageRegion: DataResidencySchema2.nullable().optional(),
33951
34240
  analyticsRegion: DataResidencySchema2.nullable().optional(),
33952
- analyticsEnabled: z105.boolean().optional(),
33953
- notes: z105.string().max(MAX_DEPLOYMENT_NOTES_LENGTH).nullable().optional()
34241
+ analyticsEnabled: z106.boolean().optional(),
34242
+ notes: z106.string().max(MAX_DEPLOYMENT_NOTES_LENGTH).nullable().optional()
33954
34243
  });
33955
- var organizationDeploymentProfileResponseSchema = z105.object({
34244
+ var organizationDeploymentProfileResponseSchema = z106.object({
33956
34245
  profile: organizationDeploymentProfileSchema,
33957
34246
  /** Present only when the request also set `tagIds`. */
33958
- tags: z105.array(organizationTagSchema).optional()
34247
+ tags: z106.array(organizationTagSchema).optional()
33959
34248
  });
33960
- var runVolumeSchema = z105.object({
33961
- last7Days: z105.number().int().nonnegative(),
33962
- last30Days: z105.number().int().nonnegative()
34249
+ var runVolumeSchema = z106.object({
34250
+ last7Days: z106.number().int().nonnegative(),
34251
+ last30Days: z106.number().int().nonnegative()
33963
34252
  });
33964
- var resolvedRegionsSchema = z105.object({
34253
+ var resolvedRegionsSchema = z106.object({
33965
34254
  browser: resolvedDeploymentRegionSchema,
33966
34255
  sandbox: resolvedDeploymentRegionSchema,
33967
34256
  inference: resolvedDeploymentRegionSchema,
33968
34257
  storage: resolvedDeploymentRegionSchema,
33969
34258
  analytics: resolvedDeploymentRegionSchema
33970
34259
  });
33971
- var deploymentOrgFlagsSchema = z105.object({
33972
- enterpriseBillingEnabled: z105.boolean(),
33973
- connectionsSharingEnabled: z105.boolean(),
33974
- discoveryMode: z105.string(),
33975
- analyticsEnabled: z105.boolean(),
33976
- browserSettingsEnforced: z105.boolean(),
33977
- hasVpnConfig: z105.boolean(),
33978
- hasSsoConnection: z105.boolean()
33979
- });
33980
- var deploymentOrgRowSchema = z105.object({
33981
- organizationId: z105.guid(),
33982
- name: z105.string(),
33983
- deletedAt: z105.string().nullable(),
33984
- llmProvider: z105.enum(LLM_PROVIDERS),
33985
- browserProvider: z105.string().nullable(),
34260
+ var deploymentOrgFlagsSchema = z106.object({
34261
+ enterpriseBillingEnabled: z106.boolean(),
34262
+ connectionsSharingEnabled: z106.boolean(),
34263
+ discoveryMode: z106.string(),
34264
+ analyticsEnabled: z106.boolean(),
34265
+ browserSettingsEnforced: z106.boolean(),
34266
+ hasVpnConfig: z106.boolean(),
34267
+ hasSsoConnection: z106.boolean()
34268
+ });
34269
+ var deploymentOrgRowSchema = z106.object({
34270
+ organizationId: z106.guid(),
34271
+ name: z106.string(),
34272
+ deletedAt: z106.string().nullable(),
34273
+ llmProvider: z106.enum(LLM_PROVIDERS),
34274
+ browserProvider: z106.string().nullable(),
33986
34275
  dataRegion: DataResidencySchema2.nullable(),
33987
34276
  regions: resolvedRegionsSchema,
33988
34277
  flags: deploymentOrgFlagsSchema,
33989
- tags: z105.array(organizationTagSchema),
33990
- teamCount: z105.number().int().nonnegative(),
34278
+ tags: z106.array(organizationTagSchema),
34279
+ teamCount: z106.number().int().nonnegative(),
33991
34280
  runVolume: runVolumeSchema
33992
34281
  });
33993
- var deploymentTeamRowSchema = z105.object({
33994
- teamId: z105.guid(),
33995
- name: z105.string(),
33996
- browserProvider: z105.string().nullable(),
33997
- browserProviderSource: z105.enum([
34282
+ var deploymentTeamRowSchema = z106.object({
34283
+ teamId: z106.guid(),
34284
+ name: z106.string(),
34285
+ browserProvider: z106.string().nullable(),
34286
+ browserProviderSource: z106.enum([
33998
34287
  "team",
33999
34288
  "org-enforced",
34000
34289
  "org-default",
@@ -34006,47 +34295,47 @@ var deploymentTeamRowSchema = z105.object({
34006
34295
  * retry-time switch, so this column reports the resolved *setting*, never
34007
34296
  * proof of what a given run used.
34008
34297
  */
34009
- browserProviderPinned: z105.boolean(),
34298
+ browserProviderPinned: z106.boolean(),
34010
34299
  residency: DataResidencySchema2.nullable(),
34011
- residencyDivergesFromOrg: z105.boolean(),
34300
+ residencyDivergesFromOrg: z106.boolean(),
34012
34301
  runVolume: runVolumeSchema
34013
34302
  });
34014
- var listDeploymentTeamsResponseSchema = z105.object({
34015
- teams: z105.array(deploymentTeamRowSchema)
34303
+ var listDeploymentTeamsResponseSchema = z106.object({
34304
+ teams: z106.array(deploymentTeamRowSchema)
34016
34305
  });
34017
- var unassignedTeamsSummarySchema = z105.object({
34018
- teamCount: z105.number().int().nonnegative(),
34306
+ var unassignedTeamsSummarySchema = z106.object({
34307
+ teamCount: z106.number().int().nonnegative(),
34019
34308
  runVolume: runVolumeSchema
34020
34309
  });
34021
- var listDeploymentOrganizationsResponseSchema = z105.object({
34022
- data: z105.array(deploymentOrgRowSchema),
34023
- total: z105.number().int().nonnegative(),
34024
- limit: z105.number().int().positive(),
34025
- offset: z105.number().int().nonnegative(),
34310
+ var listDeploymentOrganizationsResponseSchema = z106.object({
34311
+ data: z106.array(deploymentOrgRowSchema),
34312
+ total: z106.number().int().nonnegative(),
34313
+ limit: z106.number().int().positive(),
34314
+ offset: z106.number().int().nonnegative(),
34026
34315
  platformDefaults: platformRegionDefaultsSchema,
34027
34316
  unassigned: unassignedTeamsSummarySchema
34028
34317
  });
34029
- var deploymentOrgDetailResponseSchema = z105.object({
34318
+ var deploymentOrgDetailResponseSchema = z106.object({
34030
34319
  organization: deploymentOrgRowSchema,
34031
34320
  profile: organizationDeploymentProfileSchema,
34032
34321
  platformDefaults: platformRegionDefaultsSchema,
34033
- products: z105.array(z105.string())
34322
+ products: z106.array(z106.string())
34034
34323
  });
34035
- var catalogPluginSchema2 = z106.object({
34036
- name: z106.string().describe("Identifier to pass in the build's plugins array."),
34324
+ var catalogPluginSchema2 = z107.object({
34325
+ name: z107.string().describe("Identifier to pass in the build's plugins array."),
34037
34326
  type: extensibleEnum2(["duvo-platform", "knowledge-work", "github"], {
34038
34327
  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."
34039
34328
  }),
34040
- description: z106.string()
34329
+ description: z107.string()
34041
34330
  });
34042
- var pluginCatalogResponseSchema2 = z106.object({
34043
- plugins: z106.array(catalogPluginSchema2)
34331
+ var pluginCatalogResponseSchema2 = z107.object({
34332
+ plugins: z107.array(catalogPluginSchema2)
34044
34333
  });
34045
- var limitValueSchema = z107.union([
34046
- z107.number().int().nonnegative(),
34047
- z107.literal("unlimited")
34334
+ var limitValueSchema = z108.union([
34335
+ z108.number().int().nonnegative(),
34336
+ z108.literal("unlimited")
34048
34337
  ]);
34049
- var runCountingModeSchema = z107.enum(["monthly", "lifetime"]);
34338
+ var runCountingModeSchema = z108.enum(["monthly", "lifetime"]);
34050
34339
  function addDuplicateKeyIssues({
34051
34340
  ctx,
34052
34341
  items,
@@ -34058,7 +34347,7 @@ function addDuplicateKeyIssues({
34058
34347
  const key = keyFor(item);
34059
34348
  if (seen.has(key)) {
34060
34349
  ctx.addIssue({
34061
- code: z107.ZodIssueCode.custom,
34350
+ code: z108.ZodIssueCode.custom,
34062
34351
  message: `Duplicate Product Access grant key: ${key}`,
34063
34352
  path: [...path, index]
34064
34353
  });
@@ -34069,34 +34358,34 @@ function addDuplicateKeyIssues({
34069
34358
  }
34070
34359
  __name(addDuplicateKeyIssues, "addDuplicateKeyIssues");
34071
34360
  __name3(addDuplicateKeyIssues, "addDuplicateKeyIssues");
34072
- var productAccessOwnerSchema = z107.discriminatedUnion("type", [
34073
- z107.object({
34074
- type: z107.literal("organization"),
34075
- organizationId: z107.guid()
34361
+ var productAccessOwnerSchema = z108.discriminatedUnion("type", [
34362
+ z108.object({
34363
+ type: z108.literal("organization"),
34364
+ organizationId: z108.guid()
34076
34365
  }),
34077
- z107.object({
34078
- type: z107.literal("team"),
34079
- teamId: z107.guid(),
34080
- organizationId: z107.guid().nullable()
34366
+ z108.object({
34367
+ type: z108.literal("team"),
34368
+ teamId: z108.guid(),
34369
+ organizationId: z108.guid().nullable()
34081
34370
  })
34082
34371
  ]);
34083
- var productAccessGrantSetSchema = z107.object({
34084
- products: z107.array(
34085
- z107.object({
34086
- productKey: z107.enum(PRODUCT_KEYS2),
34087
- enabled: z107.boolean()
34372
+ var productAccessGrantSetSchema = z108.object({
34373
+ products: z108.array(
34374
+ z108.object({
34375
+ productKey: z108.enum(PRODUCT_KEYS2),
34376
+ enabled: z108.boolean()
34088
34377
  })
34089
34378
  ),
34090
- capabilities: z107.array(
34091
- z107.object({
34092
- capabilityKey: z107.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
34093
- enabled: z107.boolean()
34379
+ capabilities: z108.array(
34380
+ z108.object({
34381
+ capabilityKey: z108.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
34382
+ enabled: z108.boolean()
34094
34383
  })
34095
34384
  ),
34096
- limits: z107.array(
34097
- z107.object({
34098
- productKey: z107.enum(PRODUCT_KEYS2),
34099
- limitKey: z107.enum(ENTITLEMENT_LIMIT_KEYS),
34385
+ limits: z108.array(
34386
+ z108.object({
34387
+ productKey: z108.enum(PRODUCT_KEYS2),
34388
+ limitKey: z108.enum(ENTITLEMENT_LIMIT_KEYS),
34100
34389
  limitValue: limitValueSchema,
34101
34390
  countingMode: runCountingModeSchema.nullable()
34102
34391
  })
@@ -34121,59 +34410,59 @@ var productAccessGrantSetSchema = z107.object({
34121
34410
  path: ["limits"]
34122
34411
  });
34123
34412
  });
34124
- var productAccessSnapshotSchema = z107.object({
34125
- products: z107.array(
34126
- z107.object({
34127
- productKey: z107.enum(PRODUCT_KEYS2),
34128
- enabled: z107.boolean()
34413
+ var productAccessSnapshotSchema = z108.object({
34414
+ products: z108.array(
34415
+ z108.object({
34416
+ productKey: z108.enum(PRODUCT_KEYS2),
34417
+ enabled: z108.boolean()
34129
34418
  })
34130
34419
  ),
34131
- capabilities: z107.array(
34132
- z107.object({
34420
+ capabilities: z108.array(
34421
+ z108.object({
34133
34422
  capabilityKey: extensibleEnum2(PRODUCT_ACCESS_CAPABILITY_KEYS),
34134
- productKey: z107.enum(PRODUCT_KEYS2),
34135
- enabled: z107.boolean()
34423
+ productKey: z108.enum(PRODUCT_KEYS2),
34424
+ enabled: z108.boolean()
34136
34425
  })
34137
34426
  ),
34138
- limits: z107.array(
34139
- z107.object({
34140
- limitKey: z107.enum(ENTITLEMENT_LIMIT_KEYS),
34141
- productKey: z107.enum(PRODUCT_KEYS2),
34427
+ limits: z108.array(
34428
+ z108.object({
34429
+ limitKey: z108.enum(ENTITLEMENT_LIMIT_KEYS),
34430
+ productKey: z108.enum(PRODUCT_KEYS2),
34142
34431
  limitValue: limitValueSchema,
34143
34432
  countingMode: runCountingModeSchema.nullable(),
34144
- label: z107.literal("per_team")
34433
+ label: z108.literal("per_team")
34145
34434
  })
34146
34435
  )
34147
34436
  });
34148
- var billingPlanSchema = z107.object({
34149
- planVersionId: z107.string(),
34150
- planName: z107.string(),
34151
- basePlan: z107.enum(["free", "pro", "enterprise"])
34437
+ var billingPlanSchema = z108.object({
34438
+ planVersionId: z108.string(),
34439
+ planName: z108.string(),
34440
+ basePlan: z108.enum(["free", "pro", "enterprise"])
34152
34441
  });
34153
- var inheritedFromSchema = z107.discriminatedUnion("type", [
34154
- z107.object({
34155
- type: z107.literal("organization"),
34156
- organizationId: z107.guid()
34442
+ var inheritedFromSchema = z108.discriminatedUnion("type", [
34443
+ z108.object({
34444
+ type: z108.literal("organization"),
34445
+ organizationId: z108.guid()
34157
34446
  }),
34158
- z107.object({
34159
- type: z107.literal("team_subscription"),
34160
- planVersionId: z107.string()
34447
+ z108.object({
34448
+ type: z108.literal("team_subscription"),
34449
+ planVersionId: z108.string()
34161
34450
  })
34162
34451
  ]);
34163
- var productAccessReadResponseSchema = z107.object({
34452
+ var productAccessReadResponseSchema = z108.object({
34164
34453
  owner: productAccessOwnerSchema,
34165
- source: z107.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
34166
- accessRevision: z107.string().min(1),
34454
+ source: z108.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
34455
+ accessRevision: z108.string().min(1),
34167
34456
  /**
34168
34457
  * End of the owner's own access window — a trial deadline set on this
34169
34458
  * organization's or team's product grants. `null` means open-ended.
34170
34459
  * Inherited access is not summarised here: a team that follows its
34171
34460
  * organization reads `null` and the organization carries the window.
34172
34461
  */
34173
- accessExpiresAt: z107.iso.datetime().nullable(),
34462
+ accessExpiresAt: z108.iso.datetime().nullable(),
34174
34463
  displayPreset: displayPresetSchema,
34175
- hasExplicitTeamAccess: z107.boolean(),
34176
- followsOrganization: z107.boolean(),
34464
+ hasExplicitTeamAccess: z108.boolean(),
34465
+ followsOrganization: z108.boolean(),
34177
34466
  inheritedFrom: inheritedFromSchema.nullable(),
34178
34467
  billingPlan: billingPlanSchema.nullable(),
34179
34468
  grants: productAccessSnapshotSchema,
@@ -34181,93 +34470,93 @@ var productAccessReadResponseSchema = z107.object({
34181
34470
  }).superRefine((value, ctx) => {
34182
34471
  if (value.owner.type === "team" && value.source === "organization" && value.inheritedFrom?.type !== "organization") {
34183
34472
  ctx.addIssue({
34184
- code: z107.ZodIssueCode.custom,
34473
+ code: z108.ZodIssueCode.custom,
34185
34474
  message: "inheritedFrom organization context is required when team source is organization",
34186
34475
  path: ["inheritedFrom"]
34187
34476
  });
34188
34477
  }
34189
34478
  if (value.owner.type === "team" && value.source === "team_subscription" && value.inheritedFrom?.type !== "team_subscription") {
34190
34479
  ctx.addIssue({
34191
- code: z107.ZodIssueCode.custom,
34480
+ code: z108.ZodIssueCode.custom,
34192
34481
  message: "inheritedFrom subscription context is required when team source is team_subscription",
34193
34482
  path: ["inheritedFrom"]
34194
34483
  });
34195
34484
  }
34196
34485
  if (value.owner.type === "team" && value.source === "team" && value.inheritedFrom !== null) {
34197
34486
  ctx.addIssue({
34198
- code: z107.ZodIssueCode.custom,
34487
+ code: z108.ZodIssueCode.custom,
34199
34488
  message: "inheritedFrom must be null for direct team Product Access",
34200
34489
  path: ["inheritedFrom"]
34201
34490
  });
34202
34491
  }
34203
34492
  if (value.owner.type === "team" && value.source === "team" && value.followsOrganization) {
34204
34493
  ctx.addIssue({
34205
- code: z107.ZodIssueCode.custom,
34494
+ code: z108.ZodIssueCode.custom,
34206
34495
  message: "followsOrganization cannot be set for direct team Product Access",
34207
34496
  path: ["followsOrganization"]
34208
34497
  });
34209
34498
  }
34210
34499
  if (value.owner.type === "organization" && value.followsOrganization) {
34211
34500
  ctx.addIssue({
34212
- code: z107.ZodIssueCode.custom,
34501
+ code: z108.ZodIssueCode.custom,
34213
34502
  message: "followsOrganization must be false for organization Product Access",
34214
34503
  path: ["followsOrganization"]
34215
34504
  });
34216
34505
  }
34217
34506
  if (value.owner.type === "organization" && value.billingPlan !== null) {
34218
34507
  ctx.addIssue({
34219
- code: z107.ZodIssueCode.custom,
34508
+ code: z108.ZodIssueCode.custom,
34220
34509
  message: "billingPlan must be null for organization Product Access",
34221
34510
  path: ["billingPlan"]
34222
34511
  });
34223
34512
  }
34224
34513
  if (value.owner.type === "organization" && value.source !== "organization") {
34225
34514
  ctx.addIssue({
34226
- code: z107.ZodIssueCode.custom,
34515
+ code: z108.ZodIssueCode.custom,
34227
34516
  message: "organization Product Access source must be organization",
34228
34517
  path: ["source"]
34229
34518
  });
34230
34519
  }
34231
34520
  if (value.owner.type === "organization" && value.inheritedFrom !== null) {
34232
34521
  ctx.addIssue({
34233
- code: z107.ZodIssueCode.custom,
34522
+ code: z108.ZodIssueCode.custom,
34234
34523
  message: "inheritedFrom must be null for organization Product Access",
34235
34524
  path: ["inheritedFrom"]
34236
34525
  });
34237
34526
  }
34238
34527
  });
34239
- var productAccessImpactRequestSchema = z107.object({
34528
+ var productAccessImpactRequestSchema = z108.object({
34240
34529
  proposedGrants: productAccessGrantSetSchema
34241
34530
  });
34242
- var productAccessWriteRequestSchema = z107.object({
34531
+ var productAccessWriteRequestSchema = z108.object({
34243
34532
  proposedGrants: productAccessGrantSetSchema,
34244
- accessRevision: z107.string().min(1),
34245
- impactFingerprint: z107.string().min(1).optional()
34533
+ accessRevision: z108.string().min(1),
34534
+ impactFingerprint: z108.string().min(1).optional()
34246
34535
  });
34247
- var productAccessExpiryRequestSchema = z107.object({
34248
- expiresAt: z107.iso.datetime().nullable(),
34249
- accessRevision: z107.string().min(1),
34536
+ var productAccessExpiryRequestSchema = z108.object({
34537
+ expiresAt: z108.iso.datetime().nullable(),
34538
+ accessRevision: z108.string().min(1),
34250
34539
  /**
34251
34540
  * Required when the deadline has already passed, because that ends access
34252
34541
  * immediately and is confirmed like any other removal of access.
34253
34542
  */
34254
- impactFingerprint: z107.string().min(1).optional()
34543
+ impactFingerprint: z108.string().min(1).optional()
34255
34544
  });
34256
- var productAccessTeamResetRequestSchema = z107.object({
34257
- accessRevision: z107.string().min(1),
34258
- impactFingerprint: z107.string().min(1).optional()
34545
+ var productAccessTeamResetRequestSchema = z108.object({
34546
+ accessRevision: z108.string().min(1),
34547
+ impactFingerprint: z108.string().min(1).optional()
34259
34548
  });
34260
34549
  var productAccessTeamFollowOrganizationRequestSchema = productAccessTeamResetRequestSchema.extend({
34261
- follow: z107.boolean()
34262
- });
34263
- var productAccessChangeSummarySchema = z107.object({
34264
- addedProducts: z107.array(z107.enum(PRODUCT_KEYS2)),
34265
- removedProducts: z107.array(z107.enum(PRODUCT_KEYS2)),
34266
- addedCapabilities: z107.array(extensibleEnum2(PRODUCT_ACCESS_CAPABILITY_KEYS)),
34267
- removedCapabilities: z107.array(extensibleEnum2(PRODUCT_ACCESS_CAPABILITY_KEYS)),
34268
- limitChanges: z107.array(
34269
- z107.object({
34270
- limitKey: z107.enum(ENTITLEMENT_LIMIT_KEYS),
34550
+ follow: z108.boolean()
34551
+ });
34552
+ var productAccessChangeSummarySchema = z108.object({
34553
+ addedProducts: z108.array(z108.enum(PRODUCT_KEYS2)),
34554
+ removedProducts: z108.array(z108.enum(PRODUCT_KEYS2)),
34555
+ addedCapabilities: z108.array(extensibleEnum2(PRODUCT_ACCESS_CAPABILITY_KEYS)),
34556
+ removedCapabilities: z108.array(extensibleEnum2(PRODUCT_ACCESS_CAPABILITY_KEYS)),
34557
+ limitChanges: z108.array(
34558
+ z108.object({
34559
+ limitKey: z108.enum(ENTITLEMENT_LIMIT_KEYS),
34271
34560
  currentValue: limitValueSchema,
34272
34561
  currentCountingMode: runCountingModeSchema.nullable(),
34273
34562
  proposedValue: limitValueSchema,
@@ -34275,91 +34564,91 @@ var productAccessChangeSummarySchema = z107.object({
34275
34564
  })
34276
34565
  )
34277
34566
  });
34278
- var productAccessImpactResponseSchema = z107.object({
34567
+ var productAccessImpactResponseSchema = z108.object({
34279
34568
  owner: productAccessOwnerSchema,
34280
- impactFingerprint: z107.string().min(1),
34281
- affectedTeamCount: z107.number().int().nonnegative(),
34282
- affectedTeamsTruncated: z107.boolean(),
34569
+ impactFingerprint: z108.string().min(1),
34570
+ affectedTeamCount: z108.number().int().nonnegative(),
34571
+ affectedTeamsTruncated: z108.boolean(),
34283
34572
  changes: productAccessChangeSummarySchema,
34284
- sideEffects: z107.object({
34285
- automationWillPause: z107.boolean(),
34286
- clarityWillHide: z107.boolean()
34573
+ sideEffects: z108.object({
34574
+ automationWillPause: z108.boolean(),
34575
+ clarityWillHide: z108.boolean()
34287
34576
  }),
34288
- affectedTeamsPreview: z107.array(
34289
- z107.object({
34290
- teamId: z107.guid(),
34291
- teamName: z107.string(),
34292
- source: z107.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
34577
+ affectedTeamsPreview: z108.array(
34578
+ z108.object({
34579
+ teamId: z108.guid(),
34580
+ teamName: z108.string(),
34581
+ source: z108.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
34293
34582
  changes: productAccessChangeSummarySchema
34294
34583
  })
34295
34584
  )
34296
34585
  });
34297
- var publicProfileSchema2 = z108.object({
34298
- id: z108.guid(),
34299
- name: z108.string().nullable(),
34300
- email: z108.email(),
34301
- teamId: z108.guid().nullable()
34586
+ var publicProfileSchema2 = z109.object({
34587
+ id: z109.guid(),
34588
+ name: z109.string().nullable(),
34589
+ email: z109.email(),
34590
+ teamId: z109.guid().nullable()
34302
34591
  });
34303
- var publicProfileResponseSchema2 = z108.object({
34592
+ var publicProfileResponseSchema2 = z109.object({
34304
34593
  profile: publicProfileSchema2
34305
34594
  });
34306
- var recordingProvisioningDesktopSchema = z109.discriminatedUnion("kind", [
34307
- z109.object({ kind: z109.literal("standard") }),
34308
- z109.object({ kind: z109.literal("template"), snapshotId: z109.string().min(1) })
34595
+ var recordingProvisioningDesktopSchema = z110.discriminatedUnion("kind", [
34596
+ z110.object({ kind: z110.literal("standard") }),
34597
+ z110.object({ kind: z110.literal("template"), snapshotId: z110.string().min(1) })
34309
34598
  ]);
34310
- var recordingProvisioningNetworkSchema = z109.discriminatedUnion("kind", [
34311
- z109.object({ kind: z109.literal("direct") }),
34312
- z109.object({ kind: z109.literal("vpn"), vpnConfigId: z109.string().min(1) })
34599
+ var recordingProvisioningNetworkSchema = z110.discriminatedUnion("kind", [
34600
+ z110.object({ kind: z110.literal("direct") }),
34601
+ z110.object({ kind: z110.literal("vpn"), vpnConfigId: z110.string().min(1) })
34313
34602
  ]);
34314
- var recordingProvisioningRequestSchema = z109.object({
34603
+ var recordingProvisioningRequestSchema = z110.object({
34315
34604
  desktop: recordingProvisioningDesktopSchema,
34316
- region: z109.string().min(1),
34605
+ region: z110.string().min(1),
34317
34606
  network: recordingProvisioningNetworkSchema
34318
34607
  });
34319
- var recordingLoginFillRecordSchema = z109.object({
34608
+ var recordingLoginFillRecordSchema = z110.object({
34320
34609
  /** Which login field was typed. */
34321
- field: z109.enum(["username", "password", "otp"]),
34610
+ field: z110.enum(["username", "password", "otp"]),
34322
34611
  /** `name` attribute of the element that received it, if it had one. */
34323
- name: z109.string().optional(),
34612
+ name: z110.string().optional(),
34324
34613
  /** `id` attribute of the element that received it, if it had one. */
34325
- id: z109.string().optional(),
34614
+ id: z110.string().optional(),
34326
34615
  /** Lowercased tag name of that element. */
34327
- tagName: z109.string(),
34616
+ tagName: z110.string(),
34328
34617
  /** When the fill landed, so a repeat fill of the same field can be ordered. */
34329
- filledAt: z109.number()
34618
+ filledAt: z110.number()
34330
34619
  });
34331
- var recordingLoginFillClaimSchema = z109.object({
34332
- token: z109.string(),
34620
+ var recordingLoginFillClaimSchema = z110.object({
34621
+ token: z110.string(),
34333
34622
  /** Epoch millis, so a claim abandoned by a crashed request can go stale. */
34334
- at: z109.number()
34335
- });
34336
- var elementSelectorsSchema = z109.object({
34337
- css: z109.string().optional(),
34338
- cssPath: z109.string().optional(),
34339
- xpath: z109.string().optional(),
34340
- testId: z109.string().optional(),
34341
- ariaSelector: z109.string().optional(),
34342
- text: z109.string().optional()
34343
- });
34344
- var elementInfoSchema = z109.object({
34345
- uid: z109.string().optional(),
34623
+ at: z110.number()
34624
+ });
34625
+ var elementSelectorsSchema = z110.object({
34626
+ css: z110.string().optional(),
34627
+ cssPath: z110.string().optional(),
34628
+ xpath: z110.string().optional(),
34629
+ testId: z110.string().optional(),
34630
+ ariaSelector: z110.string().optional(),
34631
+ text: z110.string().optional()
34632
+ });
34633
+ var elementInfoSchema = z110.object({
34634
+ uid: z110.string().optional(),
34346
34635
  selectors: elementSelectorsSchema,
34347
- tagName: z109.string(),
34348
- textContent: z109.string().optional(),
34349
- ariaLabel: z109.string().optional(),
34350
- computedRole: z109.string().optional(),
34351
- attributes: z109.record(z109.string(), z109.string()).optional(),
34352
- framePath: z109.array(z109.number()).optional(),
34353
- frameUrl: z109.string().optional()
34354
- });
34355
- var recordedEventSchema = z109.looseObject({
34356
- id: z109.string(),
34357
- type: z109.string(),
34358
- timestamp: z109.number(),
34359
- url: z109.string(),
34360
- tabId: z109.number().optional(),
34361
- frameId: z109.number().optional(),
34362
- framePath: z109.array(z109.number()).optional(),
34636
+ tagName: z110.string(),
34637
+ textContent: z110.string().optional(),
34638
+ ariaLabel: z110.string().optional(),
34639
+ computedRole: z110.string().optional(),
34640
+ attributes: z110.record(z110.string(), z110.string()).optional(),
34641
+ framePath: z110.array(z110.number()).optional(),
34642
+ frameUrl: z110.string().optional()
34643
+ });
34644
+ var recordedEventSchema = z110.looseObject({
34645
+ id: z110.string(),
34646
+ type: z110.string(),
34647
+ timestamp: z110.number(),
34648
+ url: z110.string(),
34649
+ tabId: z110.number().optional(),
34650
+ frameId: z110.number().optional(),
34651
+ framePath: z110.array(z110.number()).optional(),
34363
34652
  element: elementInfoSchema.optional()
34364
34653
  });
34365
34654
  var COMPUTER_USE_TARGET_SOURCES = [
@@ -34373,31 +34662,31 @@ var COMPUTER_USE_TARGET_CONFIDENCES = [
34373
34662
  "low"
34374
34663
  ];
34375
34664
  var COMPUTER_USE_MODIFIERS = ["Control", "Shift", "Alt"];
34376
- var computerUseElementIdentitySchema = z109.object({
34377
- role: z109.string().optional(),
34378
- name: z109.string().optional(),
34379
- automationId: z109.string().optional(),
34380
- className: z109.string().optional(),
34381
- bounds: z109.object({
34382
- x: z109.number(),
34383
- y: z109.number(),
34384
- width: z109.number(),
34385
- height: z109.number()
34665
+ var computerUseElementIdentitySchema = z110.object({
34666
+ role: z110.string().optional(),
34667
+ name: z110.string().optional(),
34668
+ automationId: z110.string().optional(),
34669
+ className: z110.string().optional(),
34670
+ bounds: z110.object({
34671
+ x: z110.number(),
34672
+ y: z110.number(),
34673
+ width: z110.number(),
34674
+ height: z110.number()
34386
34675
  }).optional()
34387
34676
  });
34388
- var computerUseElementTargetSchema = z109.object({
34389
- selector: z109.string().optional(),
34390
- confidence: z109.enum(COMPUTER_USE_TARGET_CONFIDENCES),
34391
- source: z109.enum(COMPUTER_USE_TARGET_SOURCES),
34677
+ var computerUseElementTargetSchema = z110.object({
34678
+ selector: z110.string().optional(),
34679
+ confidence: z110.enum(COMPUTER_USE_TARGET_CONFIDENCES),
34680
+ source: z110.enum(COMPUTER_USE_TARGET_SOURCES),
34392
34681
  element: computerUseElementIdentitySchema.optional(),
34393
34682
  /**
34394
34683
  * How many nodes in the recorded tree shared this target's anchor
34395
34684
  * (role+name, or the derived selector). Drives deterministic-vs-agent
34396
34685
  * classification: a non-unique anchor is ambiguous and must not replay blindly.
34397
34686
  */
34398
- matchCount: z109.number().int().positive().optional(),
34687
+ matchCount: z110.number().int().positive().optional(),
34399
34688
  /** Convenience flag: `matchCount === 1`. Absent on older recordings. */
34400
- unique: z109.boolean().optional()
34689
+ unique: z110.boolean().optional()
34401
34690
  });
34402
34691
  var EDITABLE_COMPUTER_USE_ROLES = /* @__PURE__ */ new Set([
34403
34692
  "combobox",
@@ -34436,16 +34725,16 @@ function canCaptureComputerUseTypedText(target) {
34436
34725
  }
34437
34726
  __name(canCaptureComputerUseTypedText, "canCaptureComputerUseTypedText");
34438
34727
  __name3(canCaptureComputerUseTypedText, "canCaptureComputerUseTypedText");
34439
- var computerUseElementResolutionSchema = z109.object({
34728
+ var computerUseElementResolutionSchema = z110.object({
34440
34729
  target: computerUseElementTargetSchema.nullable(),
34441
- activeWindow: z109.string().nullable()
34730
+ activeWindow: z110.string().nullable()
34442
34731
  });
34443
- var computerUseEventBaseSchema = z109.object({
34732
+ var computerUseEventBaseSchema = z110.object({
34444
34733
  /** Client-generated id; correlates an async element resolution back. */
34445
- id: z109.string().optional(),
34446
- timestamp: z109.number(),
34734
+ id: z110.string().optional(),
34735
+ timestamp: z110.number(),
34447
34736
  /** Links this event to a screenshot uploaded in the same/earlier batch. */
34448
- screenshotSeq: z109.number().int().nonnegative().optional(),
34737
+ screenshotSeq: z110.number().int().nonnegative().optional(),
34449
34738
  /** Resolved UIA element target (primary workflow-execution anchor). */
34450
34739
  target: computerUseElementTargetSchema.optional(),
34451
34740
  /**
@@ -34455,60 +34744,60 @@ var computerUseEventBaseSchema = z109.object({
34455
34744
  * performing the (possibly anchorless) action, so a fixed-pixel click can't
34456
34745
  * fire into a screen that hasn't reached the recorded state.
34457
34746
  */
34458
- activeWindow: z109.string().optional()
34747
+ activeWindow: z110.string().optional()
34459
34748
  });
34460
34749
  var computerUseClickEventSchema = computerUseEventBaseSchema.extend({
34461
- type: z109.literal("click"),
34750
+ type: z110.literal("click"),
34462
34751
  /** Cursor position in native desktop pixels. */
34463
- x: z109.number(),
34464
- y: z109.number(),
34465
- button: z109.enum(["left", "right", "middle"]).optional(),
34466
- double: z109.boolean().optional(),
34752
+ x: z110.number(),
34753
+ y: z110.number(),
34754
+ button: z110.enum(["left", "right", "middle"]).optional(),
34755
+ double: z110.boolean().optional(),
34467
34756
  /**
34468
34757
  * Modifier keys held during the click (e.g. ["Shift"], ["Control"]),
34469
34758
  * normalized to Windows names (Meta→Control) at capture. A modified click
34470
34759
  * (range/multi-select) can't replay atomically on the sandbox, so it is
34471
34760
  * classified as an agent step — but it must still be recorded, not lost.
34472
34761
  */
34473
- modifiers: z109.array(z109.enum(COMPUTER_USE_MODIFIERS)).optional()
34762
+ modifiers: z110.array(z110.enum(COMPUTER_USE_MODIFIERS)).optional()
34474
34763
  });
34475
34764
  var computerUseScrollEventSchema = computerUseEventBaseSchema.extend({
34476
- type: z109.literal("scroll"),
34477
- x: z109.number(),
34478
- y: z109.number(),
34479
- deltaX: z109.number(),
34480
- deltaY: z109.number()
34765
+ type: z110.literal("scroll"),
34766
+ x: z110.number(),
34767
+ y: z110.number(),
34768
+ deltaX: z110.number(),
34769
+ deltaY: z110.number()
34481
34770
  });
34482
34771
  var computerUseTypeEventSchema = computerUseEventBaseSchema.extend({
34483
- type: z109.literal("type"),
34772
+ type: z110.literal("type"),
34484
34773
  /** Number of characters typed. */
34485
- textLength: z109.number().int().nonnegative(),
34774
+ textLength: z110.number().int().nonnegative(),
34486
34775
  /**
34487
34776
  * Present only when the focused control is a known non-sensitive text field.
34488
34777
  * Sensitive and unresolved controls keep only `textLength`.
34489
34778
  */
34490
- text: z109.string().optional()
34779
+ text: z110.string().optional()
34491
34780
  });
34492
34781
  var computerUseKeyEventSchema = computerUseEventBaseSchema.extend({
34493
- type: z109.literal("key"),
34494
- key: z109.string(),
34782
+ type: z110.literal("key"),
34783
+ key: z110.string(),
34495
34784
  /**
34496
34785
  * Modifier keys held with `key`, forming a chord (e.g. ["Control"] for
34497
34786
  * Ctrl+S), normalized to Windows names (Meta→Control) at capture. Replays
34498
34787
  * atomically via keyboard.press(key, modifiers).
34499
34788
  */
34500
- modifiers: z109.array(z109.enum(COMPUTER_USE_MODIFIERS)).optional()
34789
+ modifiers: z110.array(z110.enum(COMPUTER_USE_MODIFIERS)).optional()
34501
34790
  });
34502
- var computerUseRecordedEventSchema = z109.discriminatedUnion("type", [
34791
+ var computerUseRecordedEventSchema = z110.discriminatedUnion("type", [
34503
34792
  computerUseClickEventSchema,
34504
34793
  computerUseScrollEventSchema,
34505
34794
  computerUseTypeEventSchema,
34506
34795
  computerUseKeyEventSchema
34507
34796
  ]);
34508
- var computerUseScreenshotSchema = z109.object({
34509
- seq: z109.number().int().nonnegative(),
34797
+ var computerUseScreenshotSchema = z110.object({
34798
+ seq: z110.number().int().nonnegative(),
34510
34799
  /** Base64-encoded JPEG (no data: URL prefix). */
34511
- base64: z109.string()
34800
+ base64: z110.string()
34512
34801
  });
34513
34802
  var DUVO_CLIENTS2 = {
34514
34803
  cli: "cli",
@@ -34526,30 +34815,30 @@ function resolveRequestSourceFromClientHeader2(header) {
34526
34815
  }
34527
34816
  __name(resolveRequestSourceFromClientHeader2, "resolveRequestSourceFromClientHeader");
34528
34817
  __name3(resolveRequestSourceFromClientHeader2, "resolveRequestSourceFromClientHeader");
34529
- var RedactedMcpServerConfigSchema = z110.object({
34818
+ var RedactedMcpServerConfigSchema = z111.object({
34530
34819
  type: TransportTypeSchema2,
34531
34820
  integrationSlug: IntegrationSlugSchema2,
34532
- instanceId: z110.string().nullable()
34821
+ instanceId: z111.string().nullable()
34533
34822
  });
34534
- var ThreadContextMessageSchema = z110.object({
34535
- role: z110.enum(["user", "assistant"]),
34536
- content: z110.string()
34823
+ var ThreadContextMessageSchema = z111.object({
34824
+ role: z111.enum(["user", "assistant"]),
34825
+ content: z111.string()
34537
34826
  });
34538
- var ChatFileReferenceSchema = z110.object({
34539
- id: z110.string(),
34540
- name: z110.string(),
34541
- mimetype: z110.string(),
34542
- size: z110.number(),
34543
- platform: z110.enum(["slack", "teams"]),
34544
- workspaceId: z110.string(),
34545
- channelId: z110.string()
34546
- });
34547
- var ResolvedSkillRefSchema = z110.object({
34548
- skillId: z110.string().uuid(),
34549
- skillName: z110.string(),
34550
- revisionId: z110.string().uuid().nullable(),
34551
- gcsBucket: z110.string(),
34552
- gcsPath: z110.string()
34827
+ var ChatFileReferenceSchema = z111.object({
34828
+ id: z111.string(),
34829
+ name: z111.string(),
34830
+ mimetype: z111.string(),
34831
+ size: z111.number(),
34832
+ platform: z111.enum(["slack", "teams"]),
34833
+ workspaceId: z111.string(),
34834
+ channelId: z111.string()
34835
+ });
34836
+ var ResolvedSkillRefSchema = z111.object({
34837
+ skillId: z111.string().uuid(),
34838
+ skillName: z111.string(),
34839
+ revisionId: z111.string().uuid().nullable(),
34840
+ gcsBucket: z111.string(),
34841
+ gcsPath: z111.string()
34553
34842
  });
34554
34843
  var RunConfigSchema = AgentConfigSchema2.omit({
34555
34844
  // Sub-Assignments is retired. `subAgents` survives on AgentConfigSchema only
@@ -34557,8 +34846,8 @@ var RunConfigSchema = AgentConfigSchema2.omit({
34557
34846
  // never had a reason to carry it, so it is dropped here rather than frozen.
34558
34847
  subAgents: true
34559
34848
  }).extend({
34560
- task: z110.string(),
34561
- mcpServers: z110.record(z110.string(), RedactedMcpServerConfigSchema),
34849
+ task: z111.string(),
34850
+ mcpServers: z111.record(z111.string(), RedactedMcpServerConfigSchema),
34562
34851
  /**
34563
34852
  * Newly created runs store `ResolvedSkillRef` entries exclusively. The
34564
34853
  * `string` arm exists ONLY for stored v1 rows written before skill pinning
@@ -34575,18 +34864,18 @@ var RunConfigSchema = AgentConfigSchema2.omit({
34575
34864
  * applies. Defaulting it to `[]` would read as "frozen with zero skills"
34576
34865
  * and silently drop those runs' skills. New writers always set the key.
34577
34866
  */
34578
- skills: z110.array(z110.union([ResolvedSkillRefSchema, z110.string()])).optional(),
34579
- conversationHistory: z110.array(ThreadContextMessageSchema).optional(),
34580
- chatFiles: z110.array(ChatFileReferenceSchema).optional(),
34867
+ skills: z111.array(z111.union([ResolvedSkillRefSchema, z111.string()])).optional(),
34868
+ conversationHistory: z111.array(ThreadContextMessageSchema).optional(),
34869
+ chatFiles: z111.array(ChatFileReferenceSchema).optional(),
34581
34870
  /** IANA timezone (e.g. `"Europe/Prague"`). Consumers should fall back to UTC when absent. */
34582
- timezone: z110.string().optional(),
34871
+ timezone: z111.string().optional(),
34583
34872
  /**
34584
34873
  * ISO 8601 timestamp captured when the run was created. Frozen at
34585
34874
  * run-creation time and never recomputed, so resumes reuse the same value —
34586
34875
  * the runtime injects it into the cached system prompt and a changing value
34587
34876
  * would bust the prompt cache.
34588
34877
  */
34589
- sessionStartedAt: z110.string().optional(),
34878
+ sessionStartedAt: z111.string().optional(),
34590
34879
  /**
34591
34880
  * True when this dispatch resumes a run the user stopped. Derived on each
34592
34881
  * continue from the durable `agent_run.stopped_by_user` column (set only by a
@@ -34595,17 +34884,17 @@ var RunConfigSchema = AgentConfigSchema2.omit({
34595
34884
  * first resumed turn. Lives here — not in cc-server memory — so it survives a
34596
34885
  * sandbox suspend/resume.
34597
34886
  */
34598
- resumedAfterStop: z110.boolean().optional()
34887
+ resumedAfterStop: z111.boolean().optional()
34599
34888
  });
34600
- var StoredRunConfigV0Schema = z110.object({
34601
- version: z110.literal("v0")
34889
+ var StoredRunConfigV0Schema = z111.object({
34890
+ version: z111.literal("v0")
34602
34891
  });
34603
34892
  var STORED_CODE_STEP_RUN_CONFIG_VERSION = "code-v1";
34604
- var policyValueJsonSchema = z110.json();
34605
- z110.globalRegistry.add(policyValueJsonSchema, { id: "ResolvedPolicyValueJson" });
34606
- var ResolvedPolicyValueSchema = z110.object({
34607
- key: z110.string(),
34608
- question: z110.string(),
34893
+ var policyValueJsonSchema = z111.json();
34894
+ z111.globalRegistry.add(policyValueJsonSchema, { id: "ResolvedPolicyValueJson" });
34895
+ var ResolvedPolicyValueSchema = z111.object({
34896
+ key: z111.string(),
34897
+ question: z111.string(),
34609
34898
  /**
34610
34899
  * The answer. A JSON schema rather than `z.unknown()`, which would let the
34611
34900
  * key be omitted entirely — Zod treats an `unknown` field as optional — and
@@ -34615,10 +34904,10 @@ var ResolvedPolicyValueSchema = z110.object({
34615
34904
  * already filters out. `null` stays legal: it is an answer.
34616
34905
  */
34617
34906
  value: policyValueJsonSchema,
34618
- locked: z110.boolean()
34907
+ locked: z111.boolean()
34619
34908
  });
34620
34909
  var CodeStepRunConfigSchema = codeStepConfigSchema2.extend({
34621
- mcpServers: z110.record(z110.string(), RedactedMcpServerConfigSchema).default({}).describe(
34910
+ mcpServers: z111.record(z111.string(), RedactedMcpServerConfigSchema).default({}).describe(
34622
34911
  "Redacted MCP server configs resolved for this run. Keyed as `<slug>` or `<slug>_<instanceId>`. Secrets resolved at call time."
34623
34912
  ),
34624
34913
  /**
@@ -34634,12 +34923,12 @@ var CodeStepRunConfigSchema = codeStepConfigSchema2.extend({
34634
34923
  *
34635
34924
  * Defaulted, so runs admitted before this shipped keep parsing.
34636
34925
  */
34637
- policyValues: z110.array(ResolvedPolicyValueSchema).default([]).describe(
34926
+ policyValues: z111.array(ResolvedPolicyValueSchema).default([]).describe(
34638
34927
  "Policy field values this build reads, resolved and frozen at admission."
34639
34928
  )
34640
34929
  });
34641
- var StoredCodeStepRunConfigSchema = z110.object({
34642
- version: z110.literal(STORED_CODE_STEP_RUN_CONFIG_VERSION),
34930
+ var StoredCodeStepRunConfigSchema = z111.object({
34931
+ version: z111.literal(STORED_CODE_STEP_RUN_CONFIG_VERSION),
34643
34932
  data: CodeStepRunConfigSchema,
34644
34933
  /**
34645
34934
  * Per-run input, frozen at admission alongside the config.
@@ -34656,11 +34945,11 @@ var StoredCodeStepRunConfigSchema = z110.object({
34656
34945
  input: codeStepRunInputSchema.optional()
34657
34946
  });
34658
34947
  var StoredCodeStepRunConfigForConfigReadSchema = StoredCodeStepRunConfigSchema.omit({ input: true });
34659
- var StoredRunConfigV1Schema = z110.object({
34660
- version: z110.literal("v1"),
34948
+ var StoredRunConfigV1Schema = z111.object({
34949
+ version: z111.literal("v1"),
34661
34950
  data: RunConfigSchema
34662
34951
  });
34663
- var StoredRunConfigSchema = z110.union([
34952
+ var StoredRunConfigSchema = z111.union([
34664
34953
  StoredRunConfigV0Schema,
34665
34954
  StoredRunConfigV1Schema,
34666
34955
  StoredCodeStepRunConfigSchema
@@ -34685,187 +34974,187 @@ function isRunConfig(config) {
34685
34974
  }
34686
34975
  __name(isRunConfig, "isRunConfig");
34687
34976
  __name3(isRunConfig, "isRunConfig");
34688
- var skillApiSchema2 = z111.object({
34689
- id: z111.string(),
34690
- name: z111.string(),
34691
- description: z111.string(),
34977
+ var skillApiSchema2 = z1122.object({
34978
+ id: z1122.string(),
34979
+ name: z1122.string(),
34980
+ description: z1122.string(),
34692
34981
  // System skills have null team_id.
34693
- team_id: z111.string().nullable()
34982
+ team_id: z1122.string().nullable()
34694
34983
  });
34695
- var listSkillsResponseSchema2 = z111.object({
34696
- skills: z111.array(skillApiSchema2)
34984
+ var listSkillsResponseSchema2 = z1122.object({
34985
+ skills: z1122.array(skillApiSchema2)
34697
34986
  });
34698
- var systemSkillSchema2 = z111.object({
34699
- id: z111.string(),
34700
- name: z111.string(),
34701
- description: z111.string()
34987
+ var systemSkillSchema2 = z1122.object({
34988
+ id: z1122.string(),
34989
+ name: z1122.string(),
34990
+ description: z1122.string()
34702
34991
  });
34703
- var listSystemSkillsResponseSchema2 = z111.object({
34704
- skills: z111.array(systemSkillSchema2)
34992
+ var listSystemSkillsResponseSchema2 = z1122.object({
34993
+ skills: z1122.array(systemSkillSchema2)
34705
34994
  });
34706
- var skillFileItemSchema2 = z111.object({
34707
- name: z111.string(),
34708
- path: z111.string(),
34709
- size: z111.number().optional(),
34710
- contentType: z111.string().optional(),
34711
- updatedAt: z111.string().optional()
34995
+ var skillFileItemSchema2 = z1122.object({
34996
+ name: z1122.string(),
34997
+ path: z1122.string(),
34998
+ size: z1122.number().optional(),
34999
+ contentType: z1122.string().optional(),
35000
+ updatedAt: z1122.string().optional()
34712
35001
  });
34713
- var listSkillFilesResponseSchema2 = z111.object({
34714
- files: z111.array(skillFileItemSchema2)
35002
+ var listSkillFilesResponseSchema2 = z1122.object({
35003
+ files: z1122.array(skillFileItemSchema2)
34715
35004
  });
34716
- var getSkillFileContentResponseSchema2 = z111.object({
34717
- content: z111.string(),
34718
- path: z111.string(),
34719
- contentType: z111.string().optional()
35005
+ var getSkillFileContentResponseSchema2 = z1122.object({
35006
+ content: z1122.string(),
35007
+ path: z1122.string(),
35008
+ contentType: z1122.string().optional()
34720
35009
  });
34721
- var updateSkillFileBodySchema2 = z111.object({
34722
- content: z111.string()
35010
+ var updateSkillFileBodySchema2 = z1122.object({
35011
+ content: z1122.string()
34723
35012
  });
34724
- var updateSkillFileResponseSchema2 = z111.object({
34725
- success: z111.boolean(),
34726
- message: z111.string(),
34727
- skill: z111.object({
34728
- id: z111.string(),
34729
- name: z111.string(),
34730
- description: z111.string()
35013
+ var updateSkillFileResponseSchema2 = z1122.object({
35014
+ success: z1122.boolean(),
35015
+ message: z1122.string(),
35016
+ skill: z1122.object({
35017
+ id: z1122.string(),
35018
+ name: z1122.string(),
35019
+ description: z1122.string()
34731
35020
  }).optional()
34732
35021
  });
34733
- var deleteSkillResponseSchema2 = z111.object({
34734
- success: z111.boolean(),
34735
- message: z111.string()
35022
+ var deleteSkillResponseSchema2 = z1122.object({
35023
+ success: z1122.boolean(),
35024
+ message: z1122.string()
34736
35025
  });
34737
- var generateSkillBodySchema2 = z111.object({
34738
- prompt: z111.string().min(1).max(2e3),
34739
- existingContent: z111.string().max(2e4).optional()
35026
+ var generateSkillBodySchema2 = z1122.object({
35027
+ prompt: z1122.string().min(1).max(2e3),
35028
+ existingContent: z1122.string().max(2e4).optional()
34740
35029
  });
34741
- var generateSkillResponseSchema2 = z111.object({
34742
- content: z111.string()
35030
+ var generateSkillResponseSchema2 = z1122.object({
35031
+ content: z1122.string()
34743
35032
  });
34744
- var skillAssignmentSchema2 = z111.object({
34745
- id: z111.string(),
34746
- name: z111.string()
35033
+ var skillAssignmentSchema2 = z1122.object({
35034
+ id: z1122.string(),
35035
+ name: z1122.string()
34747
35036
  });
34748
- var listSkillAssignmentsResponseSchema2 = z111.object({
34749
- assignments: z111.array(skillAssignmentSchema2),
34750
- total: z111.number()
35037
+ var listSkillAssignmentsResponseSchema2 = z1122.object({
35038
+ assignments: z1122.array(skillAssignmentSchema2),
35039
+ total: z1122.number()
34751
35040
  });
34752
- var teamInvitationApiSchema2 = z1122.object({
34753
- id: z1122.string(),
34754
- team_id: z1122.string(),
34755
- email: z1122.email(),
34756
- invited_by: z1122.string(),
34757
- role: z1122.string(),
34758
- status: z1122.string(),
34759
- name: z1122.string().nullable(),
34760
- created_at: z1122.string(),
34761
- process_id: z1122.guid().nullable().optional()
34762
- });
34763
- var teamInvitationDetailApiSchema2 = z1122.object({
34764
- id: z1122.string(),
34765
- team_id: z1122.string(),
34766
- email: z1122.email(),
34767
- invited_by: z1122.string(),
34768
- role: z1122.string(),
34769
- status: z1122.string(),
34770
- name: z1122.string().nullable(),
34771
- created_at: z1122.string(),
34772
- process_id: z1122.guid().nullable().optional(),
34773
- team: z1122.object({
34774
- id: z1122.string(),
34775
- name: z1122.string()
35041
+ var teamInvitationApiSchema2 = z113.object({
35042
+ id: z113.string(),
35043
+ team_id: z113.string(),
35044
+ email: z113.email(),
35045
+ invited_by: z113.string(),
35046
+ role: z113.string(),
35047
+ status: z113.string(),
35048
+ name: z113.string().nullable(),
35049
+ created_at: z113.string(),
35050
+ process_id: z113.guid().nullable().optional()
35051
+ });
35052
+ var teamInvitationDetailApiSchema2 = z113.object({
35053
+ id: z113.string(),
35054
+ team_id: z113.string(),
35055
+ email: z113.email(),
35056
+ invited_by: z113.string(),
35057
+ role: z113.string(),
35058
+ status: z113.string(),
35059
+ name: z113.string().nullable(),
35060
+ created_at: z113.string(),
35061
+ process_id: z113.guid().nullable().optional(),
35062
+ team: z113.object({
35063
+ id: z113.string(),
35064
+ name: z113.string()
34776
35065
  }),
34777
- invitedBy: z1122.object({
34778
- id: z1122.string(),
34779
- name: z1122.string().nullable(),
34780
- email: z1122.email()
35066
+ invitedBy: z113.object({
35067
+ id: z113.string(),
35068
+ name: z113.string().nullable(),
35069
+ email: z113.email()
34781
35070
  }),
34782
- process: z1122.object({
34783
- id: z1122.string(),
34784
- name: z1122.string()
35071
+ process: z113.object({
35072
+ id: z113.string(),
35073
+ name: z113.string()
34785
35074
  }).optional()
34786
35075
  });
34787
- var createTeamInvitationRequestSchema2 = z1122.object({
34788
- email: z1122.email().describe("Email address of the person to invite."),
34789
- role: z1122.string().describe(
35076
+ var createTeamInvitationRequestSchema2 = z113.object({
35077
+ email: z113.email().describe("Email address of the person to invite."),
35078
+ role: z113.string().describe(
34790
35079
  "Team role to grant. One of: team:owner, team:superadmin, team:admin (deprecated), team:manager, team:builder, team:member, team:clarity-member. You cannot grant a role above your own. Process invitations must use team:clarity-member."
34791
35080
  ),
34792
- processId: z1122.guid().optional().describe(
35081
+ processId: z113.guid().optional().describe(
34793
35082
  "Invite the person to this Clarity process rather than the whole team. Requires the team:clarity-member role."
34794
35083
  )
34795
35084
  });
34796
- var acceptTeamInvitationRequestSchema2 = z1122.object({
34797
- name: z1122.string().optional()
35085
+ var acceptTeamInvitationRequestSchema2 = z113.object({
35086
+ name: z113.string().optional()
34798
35087
  });
34799
- var acceptTeamInvitationResponseSchema2 = z1122.object({
34800
- success: z1122.boolean(),
34801
- teamId: z1122.guid().optional(),
34802
- processId: z1122.guid().optional()
35088
+ var acceptTeamInvitationResponseSchema2 = z113.object({
35089
+ success: z113.boolean(),
35090
+ teamId: z113.guid().optional(),
35091
+ processId: z113.guid().optional()
34803
35092
  });
34804
- var bulkInviteResponseSchema2 = z1122.object({
34805
- succeeded: z1122.number(),
34806
- skipped: z1122.number(),
34807
- failed: z1122.number()
35093
+ var bulkInviteResponseSchema2 = z113.object({
35094
+ succeeded: z113.number(),
35095
+ skipped: z113.number(),
35096
+ failed: z113.number()
34808
35097
  });
34809
35098
  var TEAM_DISCOVERY_MODES2 = ["request", "auto"];
34810
- var teamDiscoveryModeSchema2 = z113.enum(TEAM_DISCOVERY_MODES2);
34811
- var BrowserRegionSchema2 = z113.enum([
35099
+ var teamDiscoveryModeSchema2 = z114.enum(TEAM_DISCOVERY_MODES2);
35100
+ var BrowserRegionSchema2 = z114.enum([
34812
35101
  "us-west-2",
34813
35102
  "us-east-1",
34814
35103
  "eu-central-1",
34815
35104
  "ap-southeast-1"
34816
35105
  ]);
34817
- var BrowserLocationSchema2 = z113.union([
34818
- z113.literal("cz"),
34819
- z113.literal("de"),
34820
- z113.literal("fr"),
34821
- z113.literal("gb"),
34822
- z113.literal("it"),
34823
- z113.literal("pl"),
34824
- z113.literal("sk")
35106
+ var BrowserLocationSchema2 = z114.union([
35107
+ z114.literal("cz"),
35108
+ z114.literal("de"),
35109
+ z114.literal("fr"),
35110
+ z114.literal("gb"),
35111
+ z114.literal("it"),
35112
+ z114.literal("pl"),
35113
+ z114.literal("sk")
34825
35114
  ]);
34826
- var teamMemberApiSchema2 = z113.object({
34827
- id: z113.guid(),
34828
- name: z113.string().nullable(),
34829
- email: z113.email(),
34830
- role: z113.string(),
34831
- inheritedFromOrg: z113.boolean().default(false)
34832
- });
34833
- var listTeamMembersResponseSchema2 = z113.object({
34834
- members: z113.array(teamMemberApiSchema2),
34835
- total: z113.number().int().nonnegative(),
34836
- limit: z113.number().int().positive(),
34837
- offset: z113.number().int().nonnegative()
34838
- });
34839
- var updateMemberRoleRequestSchema2 = z113.object({
34840
- role: z113.string()
34841
- });
34842
- var removeMemberResponseSchema2 = z113.object({
34843
- success: z113.literal(true),
34844
- nextTeamId: z113.guid().nullable(),
34845
- planType: z113.enum(["pro", "enterprise"]).nullable()
34846
- });
34847
- var getMemberMeResponseSchema2 = z113.object({
34848
- role: z113.string().nullable(),
35115
+ var teamMemberApiSchema2 = z114.object({
35116
+ id: z114.guid(),
35117
+ name: z114.string().nullable(),
35118
+ email: z114.email(),
35119
+ role: z114.string(),
35120
+ inheritedFromOrg: z114.boolean().default(false)
35121
+ });
35122
+ var listTeamMembersResponseSchema2 = z114.object({
35123
+ members: z114.array(teamMemberApiSchema2),
35124
+ total: z114.number().int().nonnegative(),
35125
+ limit: z114.number().int().positive(),
35126
+ offset: z114.number().int().nonnegative()
35127
+ });
35128
+ var updateMemberRoleRequestSchema2 = z114.object({
35129
+ role: z114.string()
35130
+ });
35131
+ var removeMemberResponseSchema2 = z114.object({
35132
+ success: z114.literal(true),
35133
+ nextTeamId: z114.guid().nullable(),
35134
+ planType: z114.enum(["pro", "enterprise"]).nullable()
35135
+ });
35136
+ var getMemberMeResponseSchema2 = z114.object({
35137
+ role: z114.string().nullable(),
34849
35138
  // True only when a real `user_team_memberships` row exists. `role` can be a
34850
35139
  // read-only *virtual* role for org leaders who haven't joined, so it is not a
34851
35140
  // membership signal on its own — use this flag to tell a real member apart.
34852
- isMember: z113.boolean()
35141
+ isMember: z114.boolean()
34853
35142
  });
34854
- var addTeamMemberRequestSchema2 = z113.object({
34855
- userId: z113.guid(),
34856
- role: z113.string()
35143
+ var addTeamMemberRequestSchema2 = z114.object({
35144
+ userId: z114.guid(),
35145
+ role: z114.string()
34857
35146
  });
34858
- var updateTeamRequestSchema2 = z113.object({
34859
- name: z113.string().min(1).optional(),
34860
- slack_team_id: z113.string().optional(),
35147
+ var updateTeamRequestSchema2 = z114.object({
35148
+ name: z114.string().min(1).optional(),
35149
+ slack_team_id: z114.string().optional(),
34861
35150
  discovery_mode: teamDiscoveryModeSchema2.optional()
34862
35151
  });
34863
- var teamApiSchema2 = z113.object({
34864
- id: z113.guid().describe("Unique team identifier"),
34865
- name: z113.string().describe("Human-readable team name"),
34866
- created_at: z113.string().describe("ISO 8601 creation timestamp"),
34867
- organization_id: z113.guid().nullable().describe("Parent organization ID, or null if the team is standalone"),
34868
- slack_team_id: z113.string().nullable().describe("Linked Slack workspace ID, or null if Slack is not connected"),
35152
+ var teamApiSchema2 = z114.object({
35153
+ id: z114.guid().describe("Unique team identifier"),
35154
+ name: z114.string().describe("Human-readable team name"),
35155
+ created_at: z114.string().describe("ISO 8601 creation timestamp"),
35156
+ organization_id: z114.guid().nullable().describe("Parent organization ID, or null if the team is standalone"),
35157
+ slack_team_id: z114.string().nullable().describe("Linked Slack workspace ID, or null if Slack is not connected"),
34869
35158
  // Responses use x-extensible-enum: adding a discovery mode to a strict
34870
35159
  // response enum is breaking in oasdiff, while an added x-extensible-enum
34871
35160
  // value is not. The strict request enum (updateTeamRequestSchema) still
@@ -34873,18 +35162,18 @@ var teamApiSchema2 = z113.object({
34873
35162
  discovery_mode: extensibleEnum2(TEAM_DISCOVERY_MODES2, {
34874
35163
  description: "How the team handles agent discovery"
34875
35164
  }),
34876
- automations_migrated_at: z113.string().nullable().describe(
35165
+ automations_migrated_at: z114.string().nullable().describe(
34877
35166
  "ISO 8601 timestamp of the team's move to the Automations workspace, or null if it has not moved"
34878
35167
  ),
34879
- automation_revisions_migrated_at: z113.string().nullable().describe(
35168
+ automation_revisions_migrated_at: z114.string().nullable().describe(
34880
35169
  "ISO 8601 timestamp of the team's move to automation revisions, or null. Narrower than automations_migrated_at: a team can be on the workspace without revisions"
34881
35170
  )
34882
35171
  });
34883
- var teamResponseApiSchema2 = z113.object({
35172
+ var teamResponseApiSchema2 = z114.object({
34884
35173
  team: teamApiSchema2
34885
35174
  });
34886
35175
  var TEAM_CONFIG_VERSION2 = 1;
34887
- var teamConfigDataSchema2 = z113.object({
35176
+ var teamConfigDataSchema2 = z114.object({
34888
35177
  browserProviderOverride: BrowserProviderTypeSchema2.nullable().optional(),
34889
35178
  // Egress identity (proxy country) — what the target site sees.
34890
35179
  browserLocationOverride: BrowserLocationSchema2.nullable().optional(),
@@ -34896,125 +35185,125 @@ var teamConfigDataSchema2 = z113.object({
34896
35185
  dataHandlingOverride: DataHandlingSchema2.nullable().optional(),
34897
35186
  // Domains that bypass the org VPN and connect directly (split tunnel).
34898
35187
  // Union'd at runtime with the org-default list on vpn_proxy_config.
34899
- vpnBypassDomains: z113.array(z113.string()).max(MAX_VPN_BYPASS_DOMAINS2).nullable().optional(),
35188
+ vpnBypassDomains: z114.array(z114.string()).max(MAX_VPN_BYPASS_DOMAINS2).nullable().optional(),
34900
35189
  // Deprecated: superseded by dataResidencyOverride / dataHandlingOverride.
34901
35190
  // Kept optional so existing v1 rows still parse; the resolver reads the new
34902
35191
  // fields first and falls back to these. Do not surface in the UI.
34903
35192
  browserRegionOverride: BrowserRegionSchema2.nullable().optional(),
34904
- sessionRecordingOverride: z113.boolean().nullable().optional()
35193
+ sessionRecordingOverride: z114.boolean().nullable().optional()
34905
35194
  });
34906
- var teamConfigSchema2 = z113.object({
34907
- version: z113.literal(TEAM_CONFIG_VERSION2),
35195
+ var teamConfigSchema2 = z114.object({
35196
+ version: z114.literal(TEAM_CONFIG_VERSION2),
34908
35197
  data: teamConfigDataSchema2
34909
35198
  });
34910
- var listTeamInvitesResponseSchema2 = z113.object({
34911
- invitations: z113.array(teamInvitationApiSchema2)
35199
+ var listTeamInvitesResponseSchema2 = z114.object({
35200
+ invitations: z114.array(teamInvitationApiSchema2)
34912
35201
  });
34913
- var teamInsightsCopilotSchema = z114.object({
34914
- id: z114.guid(),
34915
- name: z114.string(),
34916
- teamName: z114.string().nullable().optional(),
34917
- created_at: z114.string().nullable(),
34918
- updated_at: z114.string().nullable(),
34919
- team_id: z114.string().nullable(),
34920
- thread_id: z114.string().nullable(),
34921
- slack_enabled: z114.boolean().nullable()
34922
- });
34923
- var teamInsightsUserProfileSchema = z114.object({
34924
- id: z114.guid(),
34925
- name: z114.string().nullable(),
34926
- email: z114.string()
35202
+ var teamInsightsCopilotSchema = z115.object({
35203
+ id: z115.guid(),
35204
+ name: z115.string(),
35205
+ teamName: z115.string().nullable().optional(),
35206
+ created_at: z115.string().nullable(),
35207
+ updated_at: z115.string().nullable(),
35208
+ team_id: z115.string().nullable(),
35209
+ thread_id: z115.string().nullable(),
35210
+ slack_enabled: z115.boolean().nullable()
35211
+ });
35212
+ var teamInsightsUserProfileSchema = z115.object({
35213
+ id: z115.guid(),
35214
+ name: z115.string().nullable(),
35215
+ email: z115.string()
34927
35216
  });
34928
35217
  var teamInsightsUserUsageSchema = teamInsightsUserProfileSchema.extend(
34929
35218
  {
34930
- runCount: z114.number(),
34931
- lastRun: z114.string().nullable()
35219
+ runCount: z115.number(),
35220
+ lastRun: z115.string().nullable()
34932
35221
  }
34933
35222
  );
34934
- var teamInsightsMetricSourceSchema = z114.object({
35223
+ var teamInsightsMetricSourceSchema = z115.object({
34935
35224
  source: agentRunSourceSchema2,
34936
- runsTotal: z114.number(),
34937
- completedRuns: z114.number()
35225
+ runsTotal: z115.number(),
35226
+ completedRuns: z115.number()
34938
35227
  });
34939
35228
  var teamInsightsCopilotWithRunsSchema = teamInsightsCopilotSchema.extend({
34940
- integrations: z114.array(z114.string()),
34941
- uniqueUsersCount: z114.number(),
34942
- users: z114.array(teamInsightsUserUsageSchema),
34943
- totalRuns: z114.number(),
34944
- completedRuns: z114.number(),
34945
- totalTimeSpentMs: z114.number(),
34946
- averageTimeSpentMs: z114.number(),
34947
- completedRunsWithTiming: z114.number(),
34948
- sources: z114.array(teamInsightsMetricSourceSchema)
34949
- });
34950
- var teamInsightsAgentsRunResponseSchema = z114.object({
34951
- data: z114.array(teamInsightsCopilotWithRunsSchema),
34952
- total: z114.number()
34953
- });
34954
- var teamInsightsMetricsResponseSchema = z114.object({
34955
- runsTotal: z114.number(),
34956
- completedRuns: z114.number(),
34957
- sources: z114.array(teamInsightsMetricSourceSchema)
34958
- });
34959
- var teamInsightsUserAgentRunSchema = z114.object({
34960
- id: z114.guid(),
34961
- created_at: z114.string(),
34962
- updated_at: z114.string(),
34963
- agent_id: z114.guid(),
34964
- agent_name: z114.string(),
34965
- build_id: z114.guid(),
34966
- source: z114.string().nullable(),
34967
- started_at: z114.string().nullable(),
34968
- completed_at: z114.string().nullable()
34969
- });
34970
- var teamInsightsAgentSchema = z114.object({
34971
- id: z114.guid(),
34972
- name: z114.string(),
34973
- teamName: z114.string().nullable().optional(),
34974
- runs: z114.array(teamInsightsUserAgentRunSchema)
34975
- });
34976
- var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
34977
- agents: z114.array(teamInsightsAgentSchema),
34978
- runs: z114.array(teamInsightsUserAgentRunSchema),
34979
- totalRuns: z114.number()
34980
- });
34981
- var teamInsightsUsersResponseSchema = z114.object({
34982
- data: z114.array(teamInsightsUserWithAgentsAndRunsSchema),
34983
- total: z114.number()
34984
- });
34985
- var guardrailsAuthorSchema = z115.object({
35229
+ integrations: z115.array(z115.string()),
35230
+ uniqueUsersCount: z115.number(),
35231
+ users: z115.array(teamInsightsUserUsageSchema),
35232
+ totalRuns: z115.number(),
35233
+ completedRuns: z115.number(),
35234
+ totalTimeSpentMs: z115.number(),
35235
+ averageTimeSpentMs: z115.number(),
35236
+ completedRunsWithTiming: z115.number(),
35237
+ sources: z115.array(teamInsightsMetricSourceSchema)
35238
+ });
35239
+ var teamInsightsAgentsRunResponseSchema = z115.object({
35240
+ data: z115.array(teamInsightsCopilotWithRunsSchema),
35241
+ total: z115.number()
35242
+ });
35243
+ var teamInsightsMetricsResponseSchema = z115.object({
35244
+ runsTotal: z115.number(),
35245
+ completedRuns: z115.number(),
35246
+ sources: z115.array(teamInsightsMetricSourceSchema)
35247
+ });
35248
+ var teamInsightsUserAgentRunSchema = z115.object({
34986
35249
  id: z115.guid(),
34987
- name: z115.string().nullable(),
34988
- email: z115.email()
34989
- });
34990
- var guardrailsRevisionSchema = z115.object({
35250
+ created_at: z115.string(),
35251
+ updated_at: z115.string(),
35252
+ agent_id: z115.guid(),
35253
+ agent_name: z115.string(),
35254
+ build_id: z115.guid(),
35255
+ source: z115.string().nullable(),
35256
+ started_at: z115.string().nullable(),
35257
+ completed_at: z115.string().nullable()
35258
+ });
35259
+ var teamInsightsAgentSchema = z115.object({
34991
35260
  id: z115.guid(),
34992
- teamId: z115.guid(),
34993
- guardrailsText: z115.string().nullable(),
34994
- blockedDomains: z115.array(z115.string()),
34995
- createdAt: z115.string(),
35261
+ name: z115.string(),
35262
+ teamName: z115.string().nullable().optional(),
35263
+ runs: z115.array(teamInsightsUserAgentRunSchema)
35264
+ });
35265
+ var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
35266
+ agents: z115.array(teamInsightsAgentSchema),
35267
+ runs: z115.array(teamInsightsUserAgentRunSchema),
35268
+ totalRuns: z115.number()
35269
+ });
35270
+ var teamInsightsUsersResponseSchema = z115.object({
35271
+ data: z115.array(teamInsightsUserWithAgentsAndRunsSchema),
35272
+ total: z115.number()
35273
+ });
35274
+ var guardrailsAuthorSchema = z116.object({
35275
+ id: z116.guid(),
35276
+ name: z116.string().nullable(),
35277
+ email: z116.email()
35278
+ });
35279
+ var guardrailsRevisionSchema = z116.object({
35280
+ id: z116.guid(),
35281
+ teamId: z116.guid(),
35282
+ guardrailsText: z116.string().nullable(),
35283
+ blockedDomains: z116.array(z116.string()),
35284
+ createdAt: z116.string(),
34996
35285
  createdBy: guardrailsAuthorSchema
34997
35286
  });
34998
- var getTeamGuardrailsResponseSchema = z115.object({
35287
+ var getTeamGuardrailsResponseSchema = z116.object({
34999
35288
  current: guardrailsRevisionSchema.nullable()
35000
35289
  });
35001
- var listTeamGuardrailsRevisionsQuerySchema = z115.object({
35002
- limit: z115.coerce.number().int().min(1).max(100).default(20),
35003
- offset: z115.coerce.number().int().min(0).default(0)
35290
+ var listTeamGuardrailsRevisionsQuerySchema = z116.object({
35291
+ limit: z116.coerce.number().int().min(1).max(100).default(20),
35292
+ offset: z116.coerce.number().int().min(0).default(0)
35004
35293
  });
35005
- var listTeamGuardrailsRevisionsResponseSchema = z115.object({
35006
- revisions: z115.array(guardrailsRevisionSchema),
35007
- total: z115.number().int().nonnegative()
35294
+ var listTeamGuardrailsRevisionsResponseSchema = z116.object({
35295
+ revisions: z116.array(guardrailsRevisionSchema),
35296
+ total: z116.number().int().nonnegative()
35008
35297
  });
35009
- var createTeamGuardrailsRevisionRequestSchema = z115.object({
35010
- guardrailsText: z115.string().max(MAX_GUARDRAILS_TEXT_LENGTH).nullable().transform((value) => value && value.trim().length > 0 ? value : null),
35011
- blockedDomains: z115.array(z115.string()).max(MAX_BLOCKED_DOMAINS)
35298
+ var createTeamGuardrailsRevisionRequestSchema = z116.object({
35299
+ guardrailsText: z116.string().max(MAX_GUARDRAILS_TEXT_LENGTH).nullable().transform((value) => value && value.trim().length > 0 ? value : null),
35300
+ blockedDomains: z116.array(z116.string()).max(MAX_BLOCKED_DOMAINS)
35012
35301
  });
35013
- var userDismissalListResponseSchema = z116.object({
35014
- data: z116.array(z116.string())
35302
+ var userDismissalListResponseSchema = z117.object({
35303
+ data: z117.array(z117.string())
35015
35304
  });
35016
- var userDismissalMutationSchema = z116.object({
35017
- elementKey: z116.string()
35305
+ var userDismissalMutationSchema = z117.object({
35306
+ elementKey: z117.string()
35018
35307
  });
35019
35308
  function orgWelcomeDismissalKey(orgId) {
35020
35309
  return `org-welcome:${orgId}`;
@@ -35026,94 +35315,94 @@ var PASSWORD_MAX = 1024;
35026
35315
  var NAME_MAX = 200;
35027
35316
  var URL_MAX = 500;
35028
35317
  var USERNAME_MAX = 200;
35029
- var vpnProxyConfigSummarySchema = z117.object({
35030
- id: z117.guid(),
35031
- name: z117.string(),
35032
- server: z117.string(),
35033
- username: z117.string(),
35034
- enabled: z117.boolean(),
35035
- passwordSet: z117.boolean(),
35036
- organizationCount: z117.number().int().nonnegative(),
35037
- createdAt: z117.string(),
35038
- updatedAt: z117.string()
35039
- });
35040
- var vpnProxyConfigListResponseSchema = z117.object({
35041
- configs: z117.array(vpnProxyConfigSummarySchema)
35042
- });
35043
- var vpnProxyConfigCreateRequestSchema = z117.object({
35044
- name: z117.string().trim().min(1).max(NAME_MAX),
35045
- server: z117.string().trim().min(1).max(URL_MAX).url(),
35046
- username: z117.string().trim().min(1).max(USERNAME_MAX),
35047
- password: z117.string().min(PASSWORD_MIN).max(PASSWORD_MAX),
35048
- enabled: z117.boolean().prefault(true)
35049
- });
35050
- var vpnProxyConfigCreateResponseSchema = z117.object({
35318
+ var vpnProxyConfigSummarySchema = z118.object({
35319
+ id: z118.guid(),
35320
+ name: z118.string(),
35321
+ server: z118.string(),
35322
+ username: z118.string(),
35323
+ enabled: z118.boolean(),
35324
+ passwordSet: z118.boolean(),
35325
+ organizationCount: z118.number().int().nonnegative(),
35326
+ createdAt: z118.string(),
35327
+ updatedAt: z118.string()
35328
+ });
35329
+ var vpnProxyConfigListResponseSchema = z118.object({
35330
+ configs: z118.array(vpnProxyConfigSummarySchema)
35331
+ });
35332
+ var vpnProxyConfigCreateRequestSchema = z118.object({
35333
+ name: z118.string().trim().min(1).max(NAME_MAX),
35334
+ server: z118.string().trim().min(1).max(URL_MAX).url(),
35335
+ username: z118.string().trim().min(1).max(USERNAME_MAX),
35336
+ password: z118.string().min(PASSWORD_MIN).max(PASSWORD_MAX),
35337
+ enabled: z118.boolean().prefault(true)
35338
+ });
35339
+ var vpnProxyConfigCreateResponseSchema = z118.object({
35051
35340
  config: vpnProxyConfigSummarySchema
35052
35341
  });
35053
- var vpnProxyConfigUpdateRequestSchema = z117.object({
35054
- name: z117.string().trim().min(1).max(NAME_MAX).optional(),
35055
- server: z117.string().trim().min(1).max(URL_MAX).url().optional(),
35056
- username: z117.string().trim().min(1).max(USERNAME_MAX).optional(),
35057
- password: z117.string().min(PASSWORD_MIN).max(PASSWORD_MAX).optional(),
35058
- enabled: z117.boolean().optional()
35342
+ var vpnProxyConfigUpdateRequestSchema = z118.object({
35343
+ name: z118.string().trim().min(1).max(NAME_MAX).optional(),
35344
+ server: z118.string().trim().min(1).max(URL_MAX).url().optional(),
35345
+ username: z118.string().trim().min(1).max(USERNAME_MAX).optional(),
35346
+ password: z118.string().min(PASSWORD_MIN).max(PASSWORD_MAX).optional(),
35347
+ enabled: z118.boolean().optional()
35059
35348
  });
35060
- var vpnProxyConfigUpdateResponseSchema = z117.object({
35349
+ var vpnProxyConfigUpdateResponseSchema = z118.object({
35061
35350
  config: vpnProxyConfigSummarySchema
35062
35351
  });
35063
- var vpnProxyConfigDeleteResponseSchema = z117.object({
35064
- success: z117.literal(true)
35352
+ var vpnProxyConfigDeleteResponseSchema = z118.object({
35353
+ success: z118.literal(true)
35065
35354
  });
35066
- var vpnProxyConfigOrganizationSchema = z117.object({
35067
- id: z117.guid(),
35068
- organizationId: z117.guid(),
35069
- organizationName: z117.string(),
35070
- bypassDomains: z117.array(z117.string()),
35071
- vpnEnforced: z117.boolean(),
35072
- attachedAt: z117.string()
35355
+ var vpnProxyConfigOrganizationSchema = z118.object({
35356
+ id: z118.guid(),
35357
+ organizationId: z118.guid(),
35358
+ organizationName: z118.string(),
35359
+ bypassDomains: z118.array(z118.string()),
35360
+ vpnEnforced: z118.boolean(),
35361
+ attachedAt: z118.string()
35073
35362
  });
35074
- var vpnProxyConfigOrganizationListResponseSchema = z117.object({
35075
- organizations: z117.array(vpnProxyConfigOrganizationSchema)
35363
+ var vpnProxyConfigOrganizationListResponseSchema = z118.object({
35364
+ organizations: z118.array(vpnProxyConfigOrganizationSchema)
35076
35365
  });
35077
- var vpnProxyConfigAttachOrganizationRequestSchema = z117.object({
35078
- organizationId: z117.guid(),
35079
- bypassDomains: z117.array(z117.string()).max(MAX_VPN_BYPASS_DOMAINS2).prefault([]),
35080
- vpnEnforced: z117.boolean().prefault(false)
35366
+ var vpnProxyConfigAttachOrganizationRequestSchema = z118.object({
35367
+ organizationId: z118.guid(),
35368
+ bypassDomains: z118.array(z118.string()).max(MAX_VPN_BYPASS_DOMAINS2).prefault([]),
35369
+ vpnEnforced: z118.boolean().prefault(false)
35081
35370
  });
35082
- var vpnProxyConfigAttachOrganizationResponseSchema = z117.object({
35371
+ var vpnProxyConfigAttachOrganizationResponseSchema = z118.object({
35083
35372
  attachment: vpnProxyConfigOrganizationSchema
35084
35373
  });
35085
- var vpnProxyConfigDetachOrganizationResponseSchema = z117.object({
35086
- success: z117.literal(true)
35374
+ var vpnProxyConfigDetachOrganizationResponseSchema = z118.object({
35375
+ success: z118.literal(true)
35087
35376
  });
35088
- var vpnProxyConfigForOrganizationAttachmentSchema = z117.object({
35089
- bypassDomains: z117.array(z117.string()),
35090
- vpnEnforced: z117.boolean()
35377
+ var vpnProxyConfigForOrganizationAttachmentSchema = z118.object({
35378
+ bypassDomains: z118.array(z118.string()),
35379
+ vpnEnforced: z118.boolean()
35091
35380
  });
35092
- var vpnProxyConfigForOrganizationResponseSchema = z117.object({
35381
+ var vpnProxyConfigForOrganizationResponseSchema = z118.object({
35093
35382
  config: vpnProxyConfigSummarySchema.nullable(),
35094
35383
  attachment: vpnProxyConfigForOrganizationAttachmentSchema.nullable()
35095
35384
  });
35096
- var vpnProxyConfigUpdateOrganizationPolicyRequestSchema = z117.object({
35097
- bypassDomains: z117.array(z117.string()).max(MAX_VPN_BYPASS_DOMAINS2).optional(),
35098
- vpnEnforced: z117.boolean().optional()
35385
+ var vpnProxyConfigUpdateOrganizationPolicyRequestSchema = z118.object({
35386
+ bypassDomains: z118.array(z118.string()).max(MAX_VPN_BYPASS_DOMAINS2).optional(),
35387
+ vpnEnforced: z118.boolean().optional()
35099
35388
  });
35100
- var vpnProxyConfigUpdateOrganizationPolicyResponseSchema = z117.object({
35389
+ var vpnProxyConfigUpdateOrganizationPolicyResponseSchema = z118.object({
35101
35390
  attachment: vpnProxyConfigOrganizationSchema
35102
35391
  });
35103
- var workflowExecutionReportSchema = z118.object({
35104
- agentRunId: z118.string(),
35105
- provider: z118.string().nullable(),
35106
- expectedProgrammatic: z118.number(),
35107
- totalSteps: z118.number(),
35108
- executedSteps: z118.number(),
35109
- calls: z118.number(),
35110
- executions: z118.number(),
35111
- handoffs: z118.number(),
35112
- errors: z118.number(),
35113
- failures: z118.number(),
35114
- stopReasons: z118.array(z118.string()),
35115
- reachedCompletion: z118.boolean(),
35116
- programmaticExecutionRate: z118.number()
35392
+ var workflowExecutionReportSchema = z119.object({
35393
+ agentRunId: z119.string(),
35394
+ provider: z119.string().nullable(),
35395
+ expectedProgrammatic: z119.number(),
35396
+ totalSteps: z119.number(),
35397
+ executedSteps: z119.number(),
35398
+ calls: z119.number(),
35399
+ executions: z119.number(),
35400
+ handoffs: z119.number(),
35401
+ errors: z119.number(),
35402
+ failures: z119.number(),
35403
+ stopReasons: z119.array(z119.string()),
35404
+ reachedCompletion: z119.boolean(),
35405
+ programmaticExecutionRate: z119.number()
35117
35406
  });
35118
35407
  var OAUTH_SEED_RESOLVE_HEADROOM_MS = 10 * 6e4;
35119
35408
  var OAUTH_SEED_JITTER_MS = 5 * 6e4;
@@ -35380,7 +35669,7 @@ var CASE_FILTER_STATUS_LEGACY2 = [
35380
35669
  "completed",
35381
35670
  "failed"
35382
35671
  ];
35383
- var caseFilterStatusSchema2 = z119.enum([
35672
+ var caseFilterStatusSchema2 = z120.enum([
35384
35673
  ...CASE_FILTER_STATUS_BUCKETS2,
35385
35674
  ...CASE_FILTER_STATUS_LEGACY2
35386
35675
  ]);
@@ -35388,18 +35677,18 @@ var CASE_FILTERABLE_ISSUE_SEVERITIES2 = [
35388
35677
  CASE_OUTCOME_SEVERITY2.CRITICAL,
35389
35678
  CASE_OUTCOME_SEVERITY2.MEDIUM
35390
35679
  ];
35391
- var caseIssueSeverityFilterSchema2 = z119.enum(
35680
+ var caseIssueSeverityFilterSchema2 = z120.enum(
35392
35681
  CASE_FILTERABLE_ISSUE_SEVERITIES2
35393
35682
  );
35394
- var casesFiltersSchema2 = z119.object({
35395
- status: z119.array(caseFilterStatusSchema2).optional(),
35396
- issue_severity: z119.array(caseIssueSeverityFilterSchema2).optional(),
35397
- priority: z119.array(casePriorityFilterSchema2).optional(),
35398
- created_at_from: z119.string().optional(),
35399
- created_at_to: z119.string().optional(),
35400
- updated_at_from: z119.string().optional(),
35401
- updated_at_to: z119.string().optional(),
35402
- labels: z119.record(z119.string(), z119.array(z119.string())).optional(),
35683
+ var casesFiltersSchema2 = z120.object({
35684
+ status: z120.array(caseFilterStatusSchema2).optional(),
35685
+ issue_severity: z120.array(caseIssueSeverityFilterSchema2).optional(),
35686
+ priority: z120.array(casePriorityFilterSchema2).optional(),
35687
+ created_at_from: z120.string().optional(),
35688
+ created_at_to: z120.string().optional(),
35689
+ updated_at_from: z120.string().optional(),
35690
+ updated_at_to: z120.string().optional(),
35691
+ labels: z120.record(z120.string(), z120.array(z120.string())).optional(),
35403
35692
  /**
35404
35693
  * Field-value filters over a typed Queue's `json_data` payload, ANDed with
35405
35694
  * each other and with every facet above. Each names a scalar path declared in
@@ -35410,16 +35699,16 @@ var casesFiltersSchema2 = z119.object({
35410
35699
  * the label filters already use, because a `{path, operator, value}` triple
35411
35700
  * has no unambiguous query-string spelling.
35412
35701
  */
35413
- json_data: z119.array(caseJsonDataFilterSchema2).max(MAX_CASE_JSON_DATA_FILTERS2).optional()
35702
+ json_data: z120.array(caseJsonDataFilterSchema2).max(MAX_CASE_JSON_DATA_FILTERS2).optional()
35414
35703
  });
35415
- var casesListRequestBodySchema2 = z119.object({
35704
+ var casesListRequestBodySchema2 = z120.object({
35416
35705
  filters: casesFiltersSchema2.default({}),
35417
- limit: z119.int().min(1).max(100).default(25),
35418
- offset: z119.int().min(0).default(0),
35419
- sort_by: z119.enum(["created_at", "updated_at", "postponed_to"]).default("created_at"),
35420
- sort_order: z119.enum(["asc", "desc"]).default("desc"),
35421
- search: z119.string().optional(),
35422
- count_only: z119.boolean().optional().describe(
35706
+ limit: z120.int().min(1).max(100).default(25),
35707
+ offset: z120.int().min(0).default(0),
35708
+ sort_by: z120.enum(["created_at", "updated_at", "postponed_to"]).default("created_at"),
35709
+ sort_order: z120.enum(["asc", "desc"]).default("desc"),
35710
+ search: z120.string().optional(),
35711
+ count_only: z120.boolean().optional().describe(
35423
35712
  "Skip Case row selection, enrichment, and transformation. The normal response shape contains an empty cases array and the matching total."
35424
35713
  )
35425
35714
  });
@@ -35540,7 +35829,7 @@ function setFilterValuesByCategoryKey2(filters, categoryKey, values) {
35540
35829
  if (values.length === 0) {
35541
35830
  return omitFilter2(filters, categoryKey);
35542
35831
  }
35543
- const parsed = z119.array(ARRAY_FILTER_ITEM_SCHEMAS2[categoryKey]).safeParse(values);
35832
+ const parsed = z120.array(ARRAY_FILTER_ITEM_SCHEMAS2[categoryKey]).safeParse(values);
35544
35833
  if (!parsed.success) {
35545
35834
  return filters;
35546
35835
  }
@@ -36591,7 +36880,7 @@ The step exists with no build. Retry with: duvo revisions create --agent ${agent
36591
36880
  if (parsedBuild.success && parsedBuild.data.build) {
36592
36881
  build = parsedBuild.data.build;
36593
36882
  }
36594
- const rawEnvelope = z120.object({ build: jsonValueSchema2 }).safeParse(rawBuild);
36883
+ const rawEnvelope = z121.object({ build: jsonValueSchema2 }).safeParse(rawBuild);
36595
36884
  if (rawEnvelope.success) {
36596
36885
  rawRevisionBuild = rawEnvelope.data.build;
36597
36886
  }
@@ -37270,30 +37559,30 @@ function registerAgentsEvalScores(agents) {
37270
37559
  __name(registerAgentsEvalScores, "registerAgentsEvalScores");
37271
37560
 
37272
37561
  // src/api/build-schemas.ts
37273
- import { z as z121 } from "zod";
37274
- var publicBuildSchema2 = z121.object({
37275
- id: z121.string(),
37276
- agent_id: z121.string(),
37277
- name: z121.string(),
37278
- status: z121.string().nullish(),
37562
+ import { z as z123 } from "zod";
37563
+ var publicBuildSchema2 = z123.object({
37564
+ id: z123.string(),
37565
+ agent_id: z123.string(),
37566
+ name: z123.string(),
37567
+ status: z123.string().nullish(),
37279
37568
  config: jsonValueSchema2.nullish(),
37280
- revision_number: z121.number().nullish(),
37281
- handover_to: z121.string().nullish(),
37282
- created_at: z121.string().nullish(),
37283
- updated_at: z121.string().nullish()
37284
- });
37285
- var listBuildsResponseSchema3 = z121.object({
37286
- builds: z121.array(publicBuildSchema2),
37287
- total: z121.number().nullish(),
37288
- limit: z121.number().nullish(),
37289
- offset: z121.number().nullish()
37290
- });
37291
- var getBuildResponseSchema = z121.object({
37569
+ revision_number: z123.number().nullish(),
37570
+ handover_to: z123.string().nullish(),
37571
+ created_at: z123.string().nullish(),
37572
+ updated_at: z123.string().nullish()
37573
+ });
37574
+ var listBuildsResponseSchema3 = z123.object({
37575
+ builds: z123.array(publicBuildSchema2),
37576
+ total: z123.number().nullish(),
37577
+ limit: z123.number().nullish(),
37578
+ offset: z123.number().nullish()
37579
+ });
37580
+ var getBuildResponseSchema = z123.object({
37292
37581
  build: publicBuildSchema2
37293
37582
  });
37294
- var createBuildResponseSchema = z121.object({
37583
+ var createBuildResponseSchema = z123.object({
37295
37584
  build: publicBuildSchema2,
37296
- agent: z121.object({ id: z121.string() })
37585
+ agent: z123.object({ id: z123.string() })
37297
37586
  });
37298
37587
 
37299
37588
  // src/commands/agents/get.ts
@@ -37777,30 +38066,30 @@ ${plan.warnings.dropped_memory_count} AOP exception(s) will be cleared for users
37777
38066
  __name(renderPlan, "renderPlan");
37778
38067
 
37779
38068
  // src/api/schedule-schemas.ts
37780
- import { z as z123 } from "zod";
37781
- var publicScheduleSchema = z123.object({
37782
- id: z123.string(),
37783
- build_id: z123.string(),
37784
- agent_id: z123.string(),
37785
- user_id: z123.string(),
37786
- enabled: z123.boolean(),
37787
- frequency: z123.string(),
37788
- time: z123.string().nullish(),
37789
- timezone: z123.string(),
37790
- day: z123.string().nullish(),
37791
- day_of_month: z123.number().nullish(),
37792
- cron: z123.string().nullish(),
37793
- source: z123.string().nullish(),
37794
- task: z123.string().nullish(),
37795
- recurring: z123.boolean().nullish(),
37796
- created_at: z123.string(),
37797
- updated_at: z123.string()
37798
- });
37799
- var listSchedulesResponseSchema = z123.object({
37800
- schedules: z123.array(publicScheduleSchema)
37801
- });
37802
- var deleteScheduleResponseSchema = z123.object({
37803
- success: z123.literal(true)
38069
+ import { z as z124 } from "zod";
38070
+ var publicScheduleSchema = z124.object({
38071
+ id: z124.string(),
38072
+ build_id: z124.string(),
38073
+ agent_id: z124.string(),
38074
+ user_id: z124.string(),
38075
+ enabled: z124.boolean(),
38076
+ frequency: z124.string(),
38077
+ time: z124.string().nullish(),
38078
+ timezone: z124.string(),
38079
+ day: z124.string().nullish(),
38080
+ day_of_month: z124.number().nullish(),
38081
+ cron: z124.string().nullish(),
38082
+ source: z124.string().nullish(),
38083
+ task: z124.string().nullish(),
38084
+ recurring: z124.boolean().nullish(),
38085
+ created_at: z124.string(),
38086
+ updated_at: z124.string()
38087
+ });
38088
+ var listSchedulesResponseSchema = z124.object({
38089
+ schedules: z124.array(publicScheduleSchema)
38090
+ });
38091
+ var deleteScheduleResponseSchema = z124.object({
38092
+ success: z124.literal(true)
37804
38093
  });
37805
38094
 
37806
38095
  // src/commands/agents/schedules/render-schedule.ts
@@ -38248,58 +38537,58 @@ function registerAgentsSetModel(agents) {
38248
38537
  __name(registerAgentsSetModel, "registerAgentsSetModel");
38249
38538
 
38250
38539
  // src/api/trigger-schemas.ts
38251
- import { z as z124 } from "zod";
38252
- var triggerSchema = z124.object({
38253
- id: z124.string(),
38254
- agent_id: z124.string(),
38255
- user_id: z124.string(),
38256
- integration_slug: z124.string(),
38257
- trigger_type: z124.string(),
38258
- filter_config: z124.record(z124.string(), z124.unknown()),
38259
- integration_instance_id: z124.string(),
38260
- enabled: z124.boolean(),
38261
- created_at: z124.string(),
38262
- updated_at: z124.string()
38263
- });
38264
- var listTriggersResponseSchema = z124.object({
38265
- triggers: z124.array(triggerSchema)
38266
- });
38267
- var triggerTypeSchema = z124.object({
38268
- integration_slug: z124.string(),
38269
- integration_name: z124.string(),
38270
- icon_url: z124.string(),
38271
- trigger_type: z124.string(),
38272
- label: z124.string(),
38273
- description: z124.string(),
38274
- filter_schema: z124.record(z124.string(), z124.unknown())
38275
- });
38276
- var listTriggerTypesResponseSchema = z124.object({
38277
- trigger_types: z124.array(triggerTypeSchema)
38278
- });
38279
- var deleteTriggerResponseSchema = z124.object({
38280
- success: z124.literal(true)
38281
- });
38282
- var slackTriggerResponseSchema = z124.object({
38540
+ import { z as z125 } from "zod";
38541
+ var triggerSchema = z125.object({
38542
+ id: z125.string(),
38543
+ agent_id: z125.string(),
38544
+ user_id: z125.string(),
38545
+ integration_slug: z125.string(),
38546
+ trigger_type: z125.string(),
38547
+ filter_config: z125.record(z125.string(), z125.unknown()),
38548
+ integration_instance_id: z125.string(),
38549
+ enabled: z125.boolean(),
38550
+ created_at: z125.string(),
38551
+ updated_at: z125.string()
38552
+ });
38553
+ var listTriggersResponseSchema = z125.object({
38554
+ triggers: z125.array(triggerSchema)
38555
+ });
38556
+ var triggerTypeSchema = z125.object({
38557
+ integration_slug: z125.string(),
38558
+ integration_name: z125.string(),
38559
+ icon_url: z125.string(),
38560
+ trigger_type: z125.string(),
38561
+ label: z125.string(),
38562
+ description: z125.string(),
38563
+ filter_schema: z125.record(z125.string(), z125.unknown())
38564
+ });
38565
+ var listTriggerTypesResponseSchema = z125.object({
38566
+ trigger_types: z125.array(triggerTypeSchema)
38567
+ });
38568
+ var deleteTriggerResponseSchema = z125.object({
38569
+ success: z125.literal(true)
38570
+ });
38571
+ var slackTriggerResponseSchema = z125.object({
38283
38572
  slack_trigger: triggerSchema
38284
38573
  });
38285
- var listSlackTriggersResponseSchema = z124.object({
38286
- slack_triggers: z124.array(triggerSchema)
38574
+ var listSlackTriggersResponseSchema = z125.object({
38575
+ slack_triggers: z125.array(triggerSchema)
38287
38576
  });
38288
- var deleteSlackTriggerResponseSchema = z124.object({
38289
- success: z124.literal(true)
38577
+ var deleteSlackTriggerResponseSchema = z125.object({
38578
+ success: z125.literal(true)
38290
38579
  });
38291
- var slackBoundWorkspaceSchema = z124.object({
38292
- slack_team_id: z124.string(),
38293
- slack_workspace_name: z124.string(),
38294
- integration_instance_id: z124.string(),
38295
- shared: z124.boolean()
38580
+ var slackBoundWorkspaceSchema = z125.object({
38581
+ slack_team_id: z125.string(),
38582
+ slack_workspace_name: z125.string(),
38583
+ integration_instance_id: z125.string(),
38584
+ shared: z125.boolean()
38296
38585
  });
38297
- var listSlackBoundWorkspacesResponseSchema = z124.object({
38298
- workspaces: z124.array(slackBoundWorkspaceSchema)
38586
+ var listSlackBoundWorkspacesResponseSchema = z125.object({
38587
+ workspaces: z125.array(slackBoundWorkspaceSchema)
38299
38588
  });
38300
38589
 
38301
38590
  // src/commands/agents/slack-triggers/render-slack-trigger.ts
38302
- import { z as z125 } from "zod";
38591
+ import { z as z126 } from "zod";
38303
38592
  function readChannelId(trigger) {
38304
38593
  const value = trigger.filter_config.channelId;
38305
38594
  return typeof value === "string" ? value : "";
@@ -38315,9 +38604,9 @@ function readWorkspaceId(trigger) {
38315
38604
  return typeof value === "string" ? value : "";
38316
38605
  }
38317
38606
  __name(readWorkspaceId, "readWorkspaceId");
38318
- var keywordMatchRuleSchema = z125.object({
38319
- kind: z125.literal("contains"),
38320
- values: z125.array(z125.string())
38607
+ var keywordMatchRuleSchema = z126.object({
38608
+ kind: z126.literal("contains"),
38609
+ values: z126.array(z126.string())
38321
38610
  });
38322
38611
  function readMatchRule(trigger) {
38323
38612
  const parsed = keywordMatchRuleSchema.safeParse(
@@ -39893,54 +40182,54 @@ function registerAutomations(program) {
39893
40182
  __name(registerAutomations, "registerAutomations");
39894
40183
 
39895
40184
  // src/api/integration-schemas.ts
39896
- import { z as z126 } from "zod";
39897
- var integrationSchema = z126.object({
39898
- id: z126.string(),
39899
- name: z126.string(),
39900
- type: z126.string(),
39901
- provider: z126.string(),
39902
- user_id: z126.string().nullable(),
39903
- team_id: z126.string(),
39904
- server_url: z126.string().optional(),
39905
- transport_type: z126.string().optional(),
39906
- auth_method: z126.string().nullish(),
39907
- custom_integration_id: z126.string().nullish(),
39908
- icon_url: z126.string().nullish(),
39909
- oauth_provider: z126.string().nullish(),
39910
- oauth_provider_key: z126.string().nullish(),
39911
- oauth_scopes: z126.array(z126.string()).nullish(),
39912
- integration_id: z126.string().nullish(),
39913
- created_at: z126.string(),
39914
- updated_at: z126.string()
39915
- });
39916
- var integrationsListResponseSchema3 = z126.object({
39917
- integrations: z126.array(integrationSchema)
40185
+ import { z as z127 } from "zod";
40186
+ var integrationSchema = z127.object({
40187
+ id: z127.string(),
40188
+ name: z127.string(),
40189
+ type: z127.string(),
40190
+ provider: z127.string(),
40191
+ user_id: z127.string().nullable(),
40192
+ team_id: z127.string(),
40193
+ server_url: z127.string().optional(),
40194
+ transport_type: z127.string().optional(),
40195
+ auth_method: z127.string().nullish(),
40196
+ custom_integration_id: z127.string().nullish(),
40197
+ icon_url: z127.string().nullish(),
40198
+ oauth_provider: z127.string().nullish(),
40199
+ oauth_provider_key: z127.string().nullish(),
40200
+ oauth_scopes: z127.array(z127.string()).nullish(),
40201
+ integration_id: z127.string().nullish(),
40202
+ created_at: z127.string(),
40203
+ updated_at: z127.string()
40204
+ });
40205
+ var integrationsListResponseSchema3 = z127.object({
40206
+ integrations: z127.array(integrationSchema)
39918
40207
  });
39919
40208
  var connectionResponseSchema = integrationSchema;
39920
- var buildIntegrationConfigSchema3 = z126.object({
39921
- id: z126.string(),
39922
- integration_id: z126.string().nullable(),
39923
- custom_integration_id: z126.string().nullable(),
39924
- integration_type: z126.string(),
39925
- integration_name: z126.string(),
39926
- created_at: z126.string()
40209
+ var buildIntegrationConfigSchema3 = z127.object({
40210
+ id: z127.string(),
40211
+ integration_id: z127.string().nullable(),
40212
+ custom_integration_id: z127.string().nullable(),
40213
+ integration_type: z127.string(),
40214
+ integration_name: z127.string(),
40215
+ created_at: z127.string()
39927
40216
  });
39928
- var listBuildIntegrationsResponseSchema3 = z126.object({
39929
- integrations: z126.array(buildIntegrationConfigSchema3)
40217
+ var listBuildIntegrationsResponseSchema3 = z127.object({
40218
+ integrations: z127.array(buildIntegrationConfigSchema3)
39930
40219
  });
39931
- var attachBuildIntegrationsResponseSchema = z126.object({
39932
- success: z126.boolean(),
39933
- count: z126.number()
40220
+ var attachBuildIntegrationsResponseSchema = z127.object({
40221
+ success: z127.boolean(),
40222
+ count: z127.number()
39934
40223
  });
39935
- var buildIntegrationConnectionSchema = z126.object({
39936
- connection_id: z126.string(),
39937
- created_at: z126.string()
40224
+ var buildIntegrationConnectionSchema = z127.object({
40225
+ connection_id: z127.string(),
40226
+ created_at: z127.string()
39938
40227
  });
39939
- var listBuildIntegrationConnectionsResponseSchema = z126.object({
39940
- connections: z126.array(buildIntegrationConnectionSchema)
40228
+ var listBuildIntegrationConnectionsResponseSchema = z127.object({
40229
+ connections: z127.array(buildIntegrationConnectionSchema)
39941
40230
  });
39942
- var successResponseSchema = z126.object({
39943
- success: z126.boolean()
40231
+ var successResponseSchema = z127.object({
40232
+ success: z127.boolean()
39944
40233
  });
39945
40234
 
39946
40235
  // src/commands/build-integrations/attach.ts
@@ -39983,15 +40272,15 @@ function registerBuildIntegrationsAttach(buildIntegrations) {
39983
40272
  __name(registerBuildIntegrationsAttach, "registerBuildIntegrationsAttach");
39984
40273
 
39985
40274
  // src/commands/build-integrations/case-queue-setup.ts
39986
- import { z as z127 } from "zod";
39987
- var slotSchema = z127.object({
39988
- config_id: z127.string(),
39989
- integration_type: z127.string(),
39990
- linked_queue_count: z127.number()
40275
+ import { z as z128 } from "zod";
40276
+ var slotSchema = z128.object({
40277
+ config_id: z128.string(),
40278
+ integration_type: z128.string(),
40279
+ linked_queue_count: z128.number()
39991
40280
  });
39992
- var responseSchema3 = z127.object({
39993
- configs: z127.array(slotSchema),
39994
- has_available_queues: z127.boolean()
40281
+ var responseSchema3 = z128.object({
40282
+ configs: z128.array(slotSchema),
40283
+ has_available_queues: z128.boolean()
39995
40284
  });
39996
40285
  var TABLE_COLUMNS13 = [
39997
40286
  { header: "SLOT ID", cell: /* @__PURE__ */ __name((row) => row.config_id, "cell") },
@@ -40514,9 +40803,9 @@ function registerBuildsList(builds) {
40514
40803
  __name(registerBuildsList, "registerBuildsList");
40515
40804
 
40516
40805
  // src/commands/builds/promote.ts
40517
- import { z as z128 } from "zod";
40518
- var promoteResponseSchema = z128.object({
40519
- success: z128.boolean()
40806
+ import { z as z129 } from "zod";
40807
+ var promoteResponseSchema = z129.object({
40808
+ success: z129.boolean()
40520
40809
  });
40521
40810
  function registerBuildsPromote(builds) {
40522
40811
  builds.command("promote <id>").description(
@@ -42209,7 +42498,7 @@ function buildListSearchParams({
42209
42498
  __name(buildListSearchParams, "buildListSearchParams");
42210
42499
 
42211
42500
  // src/commands/cases/runs.ts
42212
- import { z as z129 } from "zod";
42501
+ import { z as z130 } from "zod";
42213
42502
  var MIN_LIMIT5 = 1;
42214
42503
  var MAX_LIMIT5 = 10;
42215
42504
  var DEFAULT_LIMIT5 = 3;
@@ -42227,17 +42516,17 @@ var RUNS_TABLE_COLUMNS = [
42227
42516
  cell: /* @__PURE__ */ __name((row) => row.has_pending_human_request ? row.pending_human_request_title ?? "(unknown)" : "", "cell")
42228
42517
  }
42229
42518
  ];
42230
- var recentMessageSchema = z129.object({
42231
- id: z129.string(),
42232
- type: z129.string(),
42233
- role: z129.string(),
42234
- timestamp: z129.string(),
42235
- text_content: z129.string().nullish(),
42236
- tool_call: z129.object({ id: z129.string(), name: z129.string() }).passthrough().nullish(),
42237
- tool_result: z129.object({ tool_call_id: z129.string() }).passthrough().nullish()
42519
+ var recentMessageSchema = z130.object({
42520
+ id: z130.string(),
42521
+ type: z130.string(),
42522
+ role: z130.string(),
42523
+ timestamp: z130.string(),
42524
+ text_content: z130.string().nullish(),
42525
+ tool_call: z130.object({ id: z130.string(), name: z130.string() }).passthrough().nullish(),
42526
+ tool_result: z130.object({ tool_call_id: z130.string() }).passthrough().nullish()
42238
42527
  });
42239
- var recentMessagesResponseSchema = z129.object({
42240
- messages: z129.array(recentMessageSchema)
42528
+ var recentMessagesResponseSchema = z130.object({
42529
+ messages: z130.array(recentMessageSchema)
42241
42530
  });
42242
42531
  var TEXT_PREVIEW_WIDTH = 60;
42243
42532
  var MESSAGES_TABLE_COLUMNS = [
@@ -42430,65 +42719,65 @@ function registerCases(program) {
42430
42719
  __name(registerCases, "registerCases");
42431
42720
 
42432
42721
  // src/api/clarity-schemas.ts
42433
- import { z as z130 } from "zod";
42434
- var clarityListProcessSchema = z130.object({
42435
- id: z130.guid(),
42436
- name: z130.string(),
42722
+ import { z as z131 } from "zod";
42723
+ var clarityListProcessSchema = z131.object({
42724
+ id: z131.guid(),
42725
+ name: z131.string(),
42437
42726
  status: clarityProcessStatusSchema,
42438
42727
  visibility: clarityProcessVisibilitySchema,
42439
- version: z130.number().int(),
42440
- capture_count: z130.number().int(),
42441
- capture_counts: z130.object({
42442
- video: z130.number().int(),
42443
- interview: z130.number().int(),
42444
- document: z130.number().int()
42728
+ version: z131.number().int(),
42729
+ capture_count: z131.number().int(),
42730
+ capture_counts: z131.object({
42731
+ video: z131.number().int(),
42732
+ interview: z131.number().int(),
42733
+ document: z131.number().int()
42445
42734
  }).optional(),
42446
- pending_invitation_count: z130.number().int(),
42447
- contributors: z130.array(
42448
- z130.object({
42449
- user_id: z130.string(),
42450
- user_name: z130.string()
42735
+ pending_invitation_count: z131.number().int(),
42736
+ contributors: z131.array(
42737
+ z131.object({
42738
+ user_id: z131.string(),
42739
+ user_name: z131.string()
42451
42740
  })
42452
42741
  ),
42453
- created_at: z130.string(),
42454
- created_by_name: z130.string().nullable()
42455
- });
42456
- var listClarityProcessesResponseSchema = z130.object({
42457
- processes: z130.array(clarityListProcessSchema),
42458
- total: z130.number().int(),
42459
- limit: z130.number().int(),
42460
- offset: z130.number().int()
42461
- });
42462
- var createClarityInviteLinkResponseSchema = z130.object({
42463
- invite_link: z130.object({
42464
- id: z130.guid(),
42465
- url: z130.url(),
42466
- created_at: z130.string(),
42467
- created_by: z130.object({
42468
- id: z130.guid(),
42469
- email: z130.email().nullable()
42742
+ created_at: z131.string(),
42743
+ created_by_name: z131.string().nullable()
42744
+ });
42745
+ var listClarityProcessesResponseSchema = z131.object({
42746
+ processes: z131.array(clarityListProcessSchema),
42747
+ total: z131.number().int(),
42748
+ limit: z131.number().int(),
42749
+ offset: z131.number().int()
42750
+ });
42751
+ var createClarityInviteLinkResponseSchema = z131.object({
42752
+ invite_link: z131.object({
42753
+ id: z131.guid(),
42754
+ url: z131.url(),
42755
+ created_at: z131.string(),
42756
+ created_by: z131.object({
42757
+ id: z131.guid(),
42758
+ email: z131.email().nullable()
42470
42759
  })
42471
42760
  })
42472
42761
  });
42473
- var createClarityProcessResponseSchema3 = z130.object({
42474
- id: z130.guid(),
42475
- name: z130.string(),
42762
+ var createClarityProcessResponseSchema3 = z131.object({
42763
+ id: z131.guid(),
42764
+ name: z131.string(),
42476
42765
  status: clarityProcessStatusSchema,
42477
- version: z130.union([z130.literal(1), z130.literal(2)]),
42478
- createdAt: z130.string()
42766
+ version: z131.union([z131.literal(1), z131.literal(2)]),
42767
+ createdAt: z131.string()
42479
42768
  });
42480
- var getClarityCaptureResponseSchema = z130.object({
42769
+ var getClarityCaptureResponseSchema = z131.object({
42481
42770
  capture: clarityCaptureSchema
42482
42771
  });
42483
- var createArtifactImportUploadUrlResponseSchema = z130.object({
42484
- signed_url: z130.url(),
42485
- capture_id: z130.guid(),
42486
- expires_at: z130.iso.datetime()
42772
+ var createArtifactImportUploadUrlResponseSchema = z131.object({
42773
+ signed_url: z131.url(),
42774
+ capture_id: z131.guid(),
42775
+ expires_at: z131.iso.datetime()
42487
42776
  });
42488
- var completeArtifactImportResponseSchema = z130.object({
42777
+ var completeArtifactImportResponseSchema = z131.object({
42489
42778
  capture: clarityCaptureSchema.extend({
42490
- createdAt: z130.iso.datetime(),
42491
- updatedAt: z130.iso.datetime()
42779
+ createdAt: z131.iso.datetime(),
42780
+ updatedAt: z131.iso.datetime()
42492
42781
  })
42493
42782
  });
42494
42783
  var legacyClarityProcessResponseSchema = legacyClarityProcessDetailSchema;
@@ -42986,8 +43275,8 @@ function renderCompletedImport(response) {
42986
43275
  __name(renderCompletedImport, "renderCompletedImport");
42987
43276
 
42988
43277
  // src/commands/clarity/assign-extra-capture-request.ts
42989
- import { z as z131 } from "zod";
42990
- var responseSchema4 = z131.object({
43278
+ import { z as z133 } from "zod";
43279
+ var responseSchema4 = z133.object({
42991
43280
  request: clarityProposalExtraCaptureRequestSchema
42992
43281
  });
42993
43282
  function renderRequest(request) {
@@ -43034,11 +43323,11 @@ function registerClarityAssignExtraCaptureRequest(clarity) {
43034
43323
  __name(registerClarityAssignExtraCaptureRequest, "registerClarityAssignExtraCaptureRequest");
43035
43324
 
43036
43325
  // src/commands/clarity/build-automation.ts
43037
- import { z as z133 } from "zod";
43038
- var responseSchema5 = z133.object({
43039
- automation_run: z133.object({
43040
- id: z133.string(),
43041
- status: z133.string()
43326
+ import { z as z134 } from "zod";
43327
+ var responseSchema5 = z134.object({
43328
+ automation_run: z134.object({
43329
+ id: z134.string(),
43330
+ status: z134.string()
43042
43331
  })
43043
43332
  });
43044
43333
  function registerClarityBuildAutomation(clarity) {
@@ -43078,7 +43367,7 @@ function registerClarityBuildAutomation(clarity) {
43078
43367
  __name(registerClarityBuildAutomation, "registerClarityBuildAutomation");
43079
43368
 
43080
43369
  // src/commands/clarity/capture-administration.ts
43081
- import { z as z134 } from "zod";
43370
+ import { z as z135 } from "zod";
43082
43371
 
43083
43372
  // src/commands/clarity/parse-response.ts
43084
43373
  function parseClarityResponse(schema, raw) {
@@ -43234,17 +43523,17 @@ async function uploadFileToSignedUrl(signedUrl, upload) {
43234
43523
  __name(uploadFileToSignedUrl, "uploadFileToSignedUrl");
43235
43524
 
43236
43525
  // src/commands/clarity/capture-administration.ts
43237
- var createUploadResponseSchema = z134.object({
43238
- signedUrl: z134.url(),
43239
- captureId: z134.guid(),
43240
- expiresAt: z134.iso.datetime(),
43241
- gcsPath: z134.string()
43242
- });
43243
- var completeCaptureResponseSchema = z134.looseObject({
43244
- id: z134.guid(),
43245
- processId: z134.guid(),
43246
- type: z134.enum(["document", "video", "image"]),
43247
- status: z134.string()
43526
+ var createUploadResponseSchema = z135.object({
43527
+ signedUrl: z135.url(),
43528
+ captureId: z135.guid(),
43529
+ expiresAt: z135.iso.datetime(),
43530
+ gcsPath: z135.string()
43531
+ });
43532
+ var completeCaptureResponseSchema = z135.looseObject({
43533
+ id: z135.guid(),
43534
+ processId: z135.guid(),
43535
+ type: z135.enum(["document", "video", "image"]),
43536
+ status: z135.string()
43248
43537
  });
43249
43538
  function registerClarityCaptureAdministration(clarity) {
43250
43539
  const captures = clarity.command("capture-admin").description("Create and manage Clarity captures");
@@ -43445,7 +43734,7 @@ function registerClarityCreateProcess(clarity) {
43445
43734
  __name(registerClarityCreateProcess, "registerClarityCreateProcess");
43446
43735
 
43447
43736
  // src/commands/clarity/doctor.ts
43448
- import { z as z135 } from "zod";
43737
+ import { z as z136 } from "zod";
43449
43738
 
43450
43739
  // src/commands/clarity/render.ts
43451
43740
  var DEFAULT_HUMAN_SUMMARY_LIMIT = 1200;
@@ -46366,8 +46655,8 @@ async function buildTeamContextCheck(config) {
46366
46655
  }
46367
46656
  }
46368
46657
  __name(buildTeamContextCheck, "buildTeamContextCheck");
46369
- var listMyTeamsResponseSchema2 = z135.object({
46370
- teams: z135.array(z135.object({ id: z135.string() }))
46658
+ var listMyTeamsResponseSchema2 = z136.object({
46659
+ teams: z136.array(z136.object({ id: z136.string() }))
46371
46660
  });
46372
46661
  async function buildClarityApiReachableCheck(command, config) {
46373
46662
  let teamId;
@@ -47220,19 +47509,19 @@ function buildGenerateTransformationProposalBody(options) {
47220
47509
  __name(buildGenerateTransformationProposalBody, "buildGenerateTransformationProposalBody");
47221
47510
 
47222
47511
  // src/commands/clarity/get-current-process.ts
47223
- import { z as z136 } from "zod";
47224
- var snapshotSchema = z136.object({
47225
- snapshot: z136.object({
47226
- id: z136.string(),
47227
- kind: z136.string(),
47228
- source_snapshot_id: z136.string().nullable(),
47229
- parent_id: z136.string().nullable(),
47230
- status: z136.string(),
47231
- creator_type: z136.string(),
47232
- user_id: z136.string().nullable(),
47233
- sandbox_id: z136.string().nullable(),
47234
- created_at: z136.string(),
47235
- updated_at: z136.string()
47512
+ import { z as z137 } from "zod";
47513
+ var snapshotSchema = z137.object({
47514
+ snapshot: z137.object({
47515
+ id: z137.string(),
47516
+ kind: z137.string(),
47517
+ source_snapshot_id: z137.string().nullable(),
47518
+ parent_id: z137.string().nullable(),
47519
+ status: z137.string(),
47520
+ creator_type: z137.string(),
47521
+ user_id: z137.string().nullable(),
47522
+ sandbox_id: z137.string().nullable(),
47523
+ created_at: z137.string(),
47524
+ updated_at: z137.string()
47236
47525
  })
47237
47526
  });
47238
47527
  function registerClarityGetCurrentProcess(clarity) {
@@ -47276,19 +47565,19 @@ function registerClarityGetCurrentProcess(clarity) {
47276
47565
  __name(registerClarityGetCurrentProcess, "registerClarityGetCurrentProcess");
47277
47566
 
47278
47567
  // src/commands/clarity/get-transformation-proposal.ts
47279
- import { z as z137 } from "zod";
47280
- var snapshotSchema2 = z137.object({
47281
- snapshot: z137.object({
47282
- id: z137.string(),
47283
- kind: z137.string(),
47284
- source_snapshot_id: z137.string().nullable(),
47285
- parent_id: z137.string().nullable(),
47286
- status: z137.string(),
47287
- creator_type: z137.string(),
47288
- user_id: z137.string().nullable(),
47289
- sandbox_id: z137.string().nullable(),
47290
- created_at: z137.string(),
47291
- updated_at: z137.string()
47568
+ import { z as z138 } from "zod";
47569
+ var snapshotSchema2 = z138.object({
47570
+ snapshot: z138.object({
47571
+ id: z138.string(),
47572
+ kind: z138.string(),
47573
+ source_snapshot_id: z138.string().nullable(),
47574
+ parent_id: z138.string().nullable(),
47575
+ status: z138.string(),
47576
+ creator_type: z138.string(),
47577
+ user_id: z138.string().nullable(),
47578
+ sandbox_id: z138.string().nullable(),
47579
+ created_at: z138.string(),
47580
+ updated_at: z138.string()
47292
47581
  })
47293
47582
  });
47294
47583
  function registerClarityGetTransformationProposal(clarity) {
@@ -47762,37 +48051,37 @@ __name(renderInterview, "renderInterview");
47762
48051
 
47763
48052
  // src/commands/clarity/invites-exports-portfolio.ts
47764
48053
  import { readFile as readFile8, stat as stat3 } from "node:fs/promises";
47765
- import { z as z138 } from "zod";
48054
+ import { z as z139 } from "zod";
47766
48055
  var MAX_BPMN_BYTES = 5e6;
47767
- var startExportResponseSchema = z138.object({
47768
- id: z138.guid(),
47769
- status: z138.literal("queued")
47770
- });
47771
- var activeExportSchema = z138.object({
47772
- exportRunId: z138.guid(),
47773
- processId: z138.guid(),
47774
- processName: z138.string(),
48056
+ var startExportResponseSchema = z139.object({
48057
+ id: z139.guid(),
48058
+ status: z139.literal("queued")
48059
+ });
48060
+ var activeExportSchema = z139.object({
48061
+ exportRunId: z139.guid(),
48062
+ processId: z139.guid(),
48063
+ processName: z139.string(),
47775
48064
  status: clarityExportStatusSchema
47776
48065
  });
47777
- var activeExportsResponseSchema = z138.array(activeExportSchema);
47778
- var exportResponseSchema = z138.object({
47779
- id: z138.guid(),
47780
- target: z138.string(),
48066
+ var activeExportsResponseSchema = z139.array(activeExportSchema);
48067
+ var exportResponseSchema = z139.object({
48068
+ id: z139.guid(),
48069
+ target: z139.string(),
47781
48070
  status: clarityExportStatusSchema,
47782
- processId: z138.guid(),
47783
- teamId: z138.guid(),
47784
- userId: z138.guid(),
47785
- connectionInstanceId: z138.guid(),
47786
- sandboxId: z138.string().nullable(),
48071
+ processId: z139.guid(),
48072
+ teamId: z139.guid(),
48073
+ userId: z139.guid(),
48074
+ connectionInstanceId: z139.guid(),
48075
+ sandboxId: z139.string().nullable(),
47787
48076
  result: clarityExportResultSchema.nullable(),
47788
- error: z138.string().nullable(),
47789
- createdAt: z138.string(),
47790
- updatedAt: z138.string()
48077
+ error: z139.string().nullable(),
48078
+ createdAt: z139.string(),
48079
+ updatedAt: z139.string()
47791
48080
  });
47792
- var portfolioGenerationResponseSchema = z138.object({
47793
- status: z138.literal("generating")
48081
+ var portfolioGenerationResponseSchema = z139.object({
48082
+ status: z139.literal("generating")
47794
48083
  });
47795
- var upgradeResponseSchema = z138.object({ id: z138.guid() });
48084
+ var upgradeResponseSchema = z139.object({ id: z139.guid() });
47796
48085
  var EXPORT_COLUMNS = [
47797
48086
  {
47798
48087
  header: "EXPORT",
@@ -48132,7 +48421,7 @@ function renderMutationResult(response, message, options) {
48132
48421
  __name(renderMutationResult, "renderMutationResult");
48133
48422
 
48134
48423
  // src/commands/clarity/landscape.ts
48135
- import { z as z145 } from "zod";
48424
+ import { z as z146 } from "zod";
48136
48425
 
48137
48426
  // src/commands/clarity/landscape-paths.ts
48138
48427
  var NODES_RESOURCE_PATH = "/clarity/hierarchy/nodes";
@@ -48154,26 +48443,26 @@ function nodePersonPath(orgId, nodeId, personId) {
48154
48443
  __name(nodePersonPath, "nodePersonPath");
48155
48444
 
48156
48445
  // src/commands/clarity/landscape-people.ts
48157
- import { z as z139 } from "zod";
48446
+ import { z as z140 } from "zod";
48158
48447
  var BATCH_PEOPLE_RESOURCE_PATH = "/clarity/hierarchy/people/batch";
48159
- var personSchema = z139.object({
48160
- id: z139.string(),
48161
- userId: z139.string().nullable(),
48162
- name: z139.string().nullable(),
48163
- email: z139.string().nullable(),
48164
- role: z139.string().nullable(),
48165
- status: z139.string().nullable()
48448
+ var personSchema = z140.object({
48449
+ id: z140.string(),
48450
+ userId: z140.string().nullable(),
48451
+ name: z140.string().nullable(),
48452
+ email: z140.string().nullable(),
48453
+ role: z140.string().nullable(),
48454
+ status: z140.string().nullable()
48166
48455
  }).passthrough();
48167
- var peopleResponseSchema = z139.object({ people: z139.array(personSchema) }).passthrough();
48168
- var batchPeopleResponseSchema = z139.object({
48169
- outcomes: z139.array(z139.object({ outcome: z139.string() }).passthrough()),
48170
- counts: z139.object({
48171
- requested: z139.number().int().nonnegative(),
48172
- assigned: z139.number().int().nonnegative(),
48173
- alreadyPresent: z139.number().int().nonnegative(),
48174
- failed: z139.number().int().nonnegative(),
48175
- invitationsSent: z139.number().int().nonnegative(),
48176
- invitationFailures: z139.number().int().nonnegative()
48456
+ var peopleResponseSchema = z140.object({ people: z140.array(personSchema) }).passthrough();
48457
+ var batchPeopleResponseSchema = z140.object({
48458
+ outcomes: z140.array(z140.object({ outcome: z140.string() }).passthrough()),
48459
+ counts: z140.object({
48460
+ requested: z140.number().int().nonnegative(),
48461
+ assigned: z140.number().int().nonnegative(),
48462
+ alreadyPresent: z140.number().int().nonnegative(),
48463
+ failed: z140.number().int().nonnegative(),
48464
+ invitationsSent: z140.number().int().nonnegative(),
48465
+ invitationFailures: z140.number().int().nonnegative()
48177
48466
  }).passthrough()
48178
48467
  }).passthrough();
48179
48468
  var PERSON_COLUMNS = [
@@ -48293,7 +48582,7 @@ function parseBatchPeopleInput(input) {
48293
48582
  );
48294
48583
  if (!parsed.success) {
48295
48584
  throw new CliError(
48296
- `Invalid batch-people input: ${z139.prettifyError(parsed.error)}`
48585
+ `Invalid batch-people input: ${z140.prettifyError(parsed.error)}`
48297
48586
  );
48298
48587
  }
48299
48588
  return parsed.data;
@@ -48332,17 +48621,17 @@ function buildUpdatePersonBody(options) {
48332
48621
  __name(buildUpdatePersonBody, "buildUpdatePersonBody");
48333
48622
 
48334
48623
  // src/commands/clarity/landscape-priorities.ts
48335
- import { z as z140 } from "zod";
48624
+ import { z as z141 } from "zod";
48336
48625
  var LANDSCAPE_PRIORITIES = ["high", "medium", "low"];
48337
48626
  var PRIORITIES_RESOURCE_PATH = "/clarity/hierarchy/priorities";
48338
48627
  var MAX_BATCH_SIZE = 200;
48339
- var setPrioritiesResponseSchema = z140.object({
48340
- nodes: z140.array(z140.object({ id: z140.string() }).passthrough())
48628
+ var setPrioritiesResponseSchema = z141.object({
48629
+ nodes: z141.array(z141.object({ id: z141.string() }).passthrough())
48341
48630
  }).passthrough();
48342
- var inputEntrySchema = z140.object({
48343
- nodeId: z140.string().min(1),
48344
- priority: z140.enum(LANDSCAPE_PRIORITIES).nullable(),
48345
- reasoning: z140.string().nullable().optional()
48631
+ var inputEntrySchema = z141.object({
48632
+ nodeId: z141.string().min(1),
48633
+ priority: z141.enum(LANDSCAPE_PRIORITIES).nullable(),
48634
+ reasoning: z141.string().nullable().optional()
48346
48635
  }).passthrough();
48347
48636
  function registerClarityLandscapeSetPriorities(landscape, orgFlagDescription) {
48348
48637
  landscape.command("set-priorities").description(
@@ -48439,7 +48728,7 @@ function parseClearId(nodeId) {
48439
48728
  }
48440
48729
  __name(parseClearId, "parseClearId");
48441
48730
  function parseInputEntries(value) {
48442
- const parsed = z140.array(inputEntrySchema).safeParse(value);
48731
+ const parsed = z141.array(inputEntrySchema).safeParse(value);
48443
48732
  if (!parsed.success) {
48444
48733
  throw new CliError(
48445
48734
  "Input must be a JSON array of {nodeId, priority, reasoning} entries with priority high, medium, low, or null."
@@ -48470,19 +48759,19 @@ function isLandscapePriority(value) {
48470
48759
  __name(isLandscapePriority, "isLandscapePriority");
48471
48760
 
48472
48761
  // src/commands/clarity/landscape-proposals.ts
48473
- import { z as z141 } from "zod";
48474
- var acceptedNodeSchema = z141.object({
48475
- id: z141.string(),
48476
- parentId: z141.string().nullable(),
48477
- processId: z141.string().nullable(),
48478
- name: z141.string()
48762
+ import { z as z143 } from "zod";
48763
+ var acceptedNodeSchema = z143.object({
48764
+ id: z143.string(),
48765
+ parentId: z143.string().nullable(),
48766
+ processId: z143.string().nullable(),
48767
+ name: z143.string()
48479
48768
  }).passthrough();
48480
- var declineResponseSchema = z141.object({
48481
- deletedCount: z141.number(),
48482
- detachedCount: z141.number()
48769
+ var declineResponseSchema = z143.object({
48770
+ deletedCount: z143.number(),
48771
+ detachedCount: z143.number()
48483
48772
  }).passthrough();
48484
48773
  var assignTeamResponseSchema = acceptedNodeSchema.extend({
48485
- assignedTeam: z141.object({ id: z141.string(), name: z141.string() }).passthrough().nullable()
48774
+ assignedTeam: z143.object({ id: z143.string(), name: z143.string() }).passthrough().nullable()
48486
48775
  });
48487
48776
  function registerClarityLandscapeProposals(landscape, orgFlagDescription) {
48488
48777
  landscape.command("accept-node <node-id>").description(
@@ -48572,16 +48861,16 @@ function assertAssignIntent(value) {
48572
48861
  __name(assertAssignIntent, "assertAssignIntent");
48573
48862
 
48574
48863
  // src/commands/clarity/landscape-structure.ts
48575
- import { z as z143 } from "zod";
48864
+ import { z as z144 } from "zod";
48576
48865
  var AREA_ORDER_RESOURCE_PATH = "/clarity/hierarchy/areas/order";
48577
48866
  var PROCESS_NODES_RESOURCE_PATH = "/clarity/hierarchy/process-nodes";
48578
- var nodeSchema = z143.object({
48579
- id: z143.string(),
48580
- parentId: z143.string().nullable(),
48581
- processId: z143.string().nullable(),
48582
- name: z143.string()
48867
+ var nodeSchema = z144.object({
48868
+ id: z144.string(),
48869
+ parentId: z144.string().nullable(),
48870
+ processId: z144.string().nullable(),
48871
+ name: z144.string()
48583
48872
  }).passthrough();
48584
- var reorderAreasResponseSchema = z143.object({ nodes: z143.array(nodeSchema) }).passthrough();
48873
+ var reorderAreasResponseSchema = z144.object({ nodes: z144.array(nodeSchema) }).passthrough();
48585
48874
  function registerClarityLandscapeStructure(landscape, orgFlagDescription) {
48586
48875
  landscape.command("reorder-areas").description(
48587
48876
  "Reorder a sibling group of area folders left-to-right. Pass every sibling exactly once \u2014 a partial list is rejected"
@@ -48653,7 +48942,7 @@ function collectRepeatable4(value, previous) {
48653
48942
  }
48654
48943
  __name(collectRepeatable4, "collectRepeatable");
48655
48944
  function parseInputAreaIds(value) {
48656
- const parsed = z143.array(z143.string().min(1)).safeParse(value);
48945
+ const parsed = z144.array(z144.string().min(1)).safeParse(value);
48657
48946
  if (!parsed.success) {
48658
48947
  throw new CliError("Input must be a JSON array of area node ids.");
48659
48948
  }
@@ -48674,23 +48963,23 @@ function assertUniqueAreaIds(areaIds) {
48674
48963
  __name(assertUniqueAreaIds, "assertUniqueAreaIds");
48675
48964
 
48676
48965
  // src/commands/clarity/landscape-suggestions.ts
48677
- import { z as z144 } from "zod";
48966
+ import { z as z145 } from "zod";
48678
48967
  var ORGANIZE_RESOURCE_PATH = "/clarity/hierarchy/organize";
48679
48968
  var FLAT_HIERARCHY_NODES_PATH = "/v2/clarity/hierarchy/nodes";
48680
- var organizeResponseSchema = z144.object({
48681
- started: z144.boolean(),
48682
- bagSize: z144.number().int().nonnegative()
48969
+ var organizeResponseSchema = z145.object({
48970
+ started: z145.boolean(),
48971
+ bagSize: z145.number().int().nonnegative()
48683
48972
  });
48684
- var identifiedResourceSchema = z144.object({ id: z144.string() }).passthrough();
48685
- var teamSuggestionAcceptResponseSchema = z144.object({
48686
- node: identifiedResourceSchema.extend({ name: z144.string() }),
48973
+ var identifiedResourceSchema = z145.object({ id: z145.string() }).passthrough();
48974
+ var teamSuggestionAcceptResponseSchema = z145.object({
48975
+ node: identifiedResourceSchema.extend({ name: z145.string() }),
48687
48976
  suggestion: identifiedResourceSchema
48688
48977
  }).passthrough();
48689
- var captureSuggestionAcceptResponseSchema = z144.object({
48978
+ var captureSuggestionAcceptResponseSchema = z145.object({
48690
48979
  suggestion: identifiedResourceSchema,
48691
48980
  request: identifiedResourceSchema
48692
48981
  }).passthrough();
48693
- var captureRequestAssignmentResponseSchema = z144.object({ request: identifiedResourceSchema }).passthrough();
48982
+ var captureRequestAssignmentResponseSchema = z145.object({ request: identifiedResourceSchema }).passthrough();
48694
48983
  var SUGGESTION_MUTATIONS = [
48695
48984
  {
48696
48985
  command: "accept-team",
@@ -48809,131 +49098,131 @@ var CAPTURES_RESOURCE_PATH = "/clarity/hierarchy/captures";
48809
49098
  var PROPOSED_PROCESSES_RESOURCE_PATH = "/clarity/hierarchy/proposed-processes";
48810
49099
  var PROCESS_NODE_TYPE = "process";
48811
49100
  var AREA_NODE_TYPE = "area";
48812
- var processSummarySchema = z145.object({
48813
- id: z145.string(),
48814
- name: z145.string()
49101
+ var processSummarySchema = z146.object({
49102
+ id: z146.string(),
49103
+ name: z146.string()
48815
49104
  }).passthrough();
48816
49105
  var prioritySchemaShape = {
48817
- priority: z145.enum(LANDSCAPE_PRIORITIES).nullable().optional(),
48818
- priorityReasoning: z145.string().nullable().optional(),
48819
- priorityAssessedAt: z145.string().nullable().optional()
49106
+ priority: z146.enum(LANDSCAPE_PRIORITIES).nullable().optional(),
49107
+ priorityReasoning: z146.string().nullable().optional(),
49108
+ priorityAssessedAt: z146.string().nullable().optional()
48820
49109
  };
48821
- var landscapeFullNodeSchema = z145.object({
48822
- access: z145.literal("full").default("full"),
48823
- id: z145.string(),
48824
- parentId: z145.string().nullable(),
48825
- processId: z145.string().nullable(),
48826
- name: z145.string(),
48827
- ownerLabel: z145.string().nullable(),
49110
+ var landscapeFullNodeSchema = z146.object({
49111
+ access: z146.literal("full").default("full"),
49112
+ id: z146.string(),
49113
+ parentId: z146.string().nullable(),
49114
+ processId: z146.string().nullable(),
49115
+ name: z146.string(),
49116
+ ownerLabel: z146.string().nullable(),
48828
49117
  process: processSummarySchema.nullable(),
48829
49118
  ...prioritySchemaShape
48830
49119
  }).passthrough();
48831
- var landscapeRedactedNodeSchema = z145.object({
48832
- access: z145.literal("redacted"),
48833
- hint: z145.literal("restricted_process"),
48834
- id: z145.string(),
48835
- parentId: z145.string().nullable(),
48836
- sortOrder: z145.number(),
48837
- depth: z145.number()
49120
+ var landscapeRedactedNodeSchema = z146.object({
49121
+ access: z146.literal("redacted"),
49122
+ hint: z146.literal("restricted_process"),
49123
+ id: z146.string(),
49124
+ parentId: z146.string().nullable(),
49125
+ sortOrder: z146.number(),
49126
+ depth: z146.number()
48838
49127
  }).strict();
48839
- var landscapeNodeSchema = z145.union([
49128
+ var landscapeNodeSchema = z146.union([
48840
49129
  landscapeFullNodeSchema,
48841
49130
  landscapeRedactedNodeSchema
48842
49131
  ]);
48843
49132
  var unlinkedProcessSchema = processSummarySchema.extend({
48844
- teamId: z145.string(),
48845
- teamName: z145.string().nullable()
49133
+ teamId: z146.string(),
49134
+ teamName: z146.string().nullable()
48846
49135
  }).passthrough();
48847
- var treeNodeSchema = z145.object({
48848
- id: z145.string(),
48849
- parentId: z145.string().nullable(),
48850
- processId: z145.string().nullable(),
48851
- name: z145.string(),
48852
- ownerLabel: z145.string().nullable(),
48853
- depth: z145.number(),
49136
+ var treeNodeSchema = z146.object({
49137
+ id: z146.string(),
49138
+ parentId: z146.string().nullable(),
49139
+ processId: z146.string().nullable(),
49140
+ name: z146.string(),
49141
+ ownerLabel: z146.string().nullable(),
49142
+ depth: z146.number(),
48854
49143
  ...prioritySchemaShape
48855
49144
  }).passthrough();
48856
- var landscapeResponseSchema = z145.object({
48857
- nodes: z145.array(landscapeNodeSchema),
48858
- links: z145.array(
48859
- z145.object({
48860
- id: z145.string(),
48861
- sourceNodeId: z145.string(),
48862
- targetNodeId: z145.string(),
48863
- type: z145.string(),
48864
- state: z145.string(),
48865
- confidence: z145.number().nullable()
49145
+ var landscapeResponseSchema = z146.object({
49146
+ nodes: z146.array(landscapeNodeSchema),
49147
+ links: z146.array(
49148
+ z146.object({
49149
+ id: z146.string(),
49150
+ sourceNodeId: z146.string(),
49151
+ targetNodeId: z146.string(),
49152
+ type: z146.string(),
49153
+ state: z146.string(),
49154
+ confidence: z146.number().nullable()
48866
49155
  }).passthrough()
48867
49156
  ),
48868
- unlinkedProcesses: z145.array(unlinkedProcessSchema),
48869
- stats: z145.object({
48870
- totalNodes: z145.number(),
48871
- processNodes: z145.number(),
48872
- proposedNodes: z145.number(),
48873
- unsortedProcesses: z145.number(),
48874
- latestUpdatedAt: z145.string().nullable()
49157
+ unlinkedProcesses: z146.array(unlinkedProcessSchema),
49158
+ stats: z146.object({
49159
+ totalNodes: z146.number(),
49160
+ processNodes: z146.number(),
49161
+ proposedNodes: z146.number(),
49162
+ unsortedProcesses: z146.number(),
49163
+ latestUpdatedAt: z146.string().nullable()
48875
49164
  }).passthrough(),
48876
- truncated: z145.boolean()
49165
+ truncated: z146.boolean()
48877
49166
  }).passthrough();
48878
- var treeResponseSchema = z145.object({
48879
- nodes: z145.array(treeNodeSchema),
48880
- truncated: z145.boolean()
49167
+ var treeResponseSchema = z146.object({
49168
+ nodes: z146.array(treeNodeSchema),
49169
+ truncated: z146.boolean()
48881
49170
  }).passthrough();
48882
- var hierarchyPersonSchema = z145.object({
48883
- nodeId: z145.string(),
48884
- processId: z145.string(),
48885
- id: z145.string(),
48886
- userId: z145.string().nullable(),
48887
- name: z145.string().nullable(),
48888
- email: z145.string().nullable(),
48889
- role: z145.string().nullable(),
48890
- status: z145.string().nullable(),
48891
- captureCount: z145.number()
49171
+ var hierarchyPersonSchema = z146.object({
49172
+ nodeId: z146.string(),
49173
+ processId: z146.string(),
49174
+ id: z146.string(),
49175
+ userId: z146.string().nullable(),
49176
+ name: z146.string().nullable(),
49177
+ email: z146.string().nullable(),
49178
+ role: z146.string().nullable(),
49179
+ status: z146.string().nullable(),
49180
+ captureCount: z146.number()
48892
49181
  }).passthrough();
48893
- var hierarchyPeopleResponseSchema = z145.object({
48894
- people: z145.array(hierarchyPersonSchema),
48895
- truncated: z145.boolean()
49182
+ var hierarchyPeopleResponseSchema = z146.object({
49183
+ people: z146.array(hierarchyPersonSchema),
49184
+ truncated: z146.boolean()
48896
49185
  }).passthrough();
48897
- var nodeResponseSchema = z145.object({
48898
- id: z145.string(),
48899
- parentId: z145.string().nullable(),
48900
- processId: z145.string().nullable(),
48901
- name: z145.string(),
48902
- ownerLabel: z145.string().nullable(),
48903
- outcome: z145.enum(["created", "reused"]).optional(),
49186
+ var nodeResponseSchema = z146.object({
49187
+ id: z146.string(),
49188
+ parentId: z146.string().nullable(),
49189
+ processId: z146.string().nullable(),
49190
+ name: z146.string(),
49191
+ ownerLabel: z146.string().nullable(),
49192
+ outcome: z146.enum(["created", "reused"]).optional(),
48904
49193
  ...prioritySchemaShape
48905
49194
  }).passthrough();
48906
- var deleteNodeResponseSchema = z145.object({
48907
- deletedCount: z145.number(),
48908
- detachedCount: z145.number()
48909
- });
48910
- var generateLandscapeResponseSchema = z145.object({
48911
- started: z145.literal(true),
48912
- generationId: z145.string(),
48913
- eligibleCaptureCount: z145.number(),
48914
- eligibleProcessCount: z145.number().int().nonnegative()
49195
+ var deleteNodeResponseSchema = z146.object({
49196
+ deletedCount: z146.number(),
49197
+ detachedCount: z146.number()
49198
+ });
49199
+ var generateLandscapeResponseSchema = z146.object({
49200
+ started: z146.literal(true),
49201
+ generationId: z146.string(),
49202
+ eligibleCaptureCount: z146.number(),
49203
+ eligibleProcessCount: z146.number().int().nonnegative()
48915
49204
  }).passthrough();
48916
- var captureSchema = z145.object({
48917
- id: z145.string(),
48918
- scope: z145.string(),
48919
- type: z145.string(),
48920
- title: z145.string(),
48921
- organizationId: z145.string().nullable(),
48922
- organizationName: z145.string().nullable(),
48923
- teamId: z145.string().nullable(),
48924
- teamName: z145.string().nullable(),
48925
- processNodeId: z145.string().nullable(),
48926
- createdAt: z145.string(),
48927
- transcriptMessageCount: z145.number(),
48928
- usability_status: z145.enum(["usable", "excluded"]).default("usable"),
48929
- usability_reason: z145.string().nullable().default(null),
48930
- usability_source: z145.enum(["agent", "interviewee", "manager"]).nullable().default(null),
48931
- usability_confidence: z145.enum(["high", "medium", "low"]).nullable().default(null)
49205
+ var captureSchema = z146.object({
49206
+ id: z146.string(),
49207
+ scope: z146.string(),
49208
+ type: z146.string(),
49209
+ title: z146.string(),
49210
+ organizationId: z146.string().nullable(),
49211
+ organizationName: z146.string().nullable(),
49212
+ teamId: z146.string().nullable(),
49213
+ teamName: z146.string().nullable(),
49214
+ processNodeId: z146.string().nullable(),
49215
+ createdAt: z146.string(),
49216
+ transcriptMessageCount: z146.number(),
49217
+ usability_status: z146.enum(["usable", "excluded"]).default("usable"),
49218
+ usability_reason: z146.string().nullable().default(null),
49219
+ usability_source: z146.enum(["agent", "interviewee", "manager"]).nullable().default(null),
49220
+ usability_confidence: z146.enum(["high", "medium", "low"]).nullable().default(null)
48932
49221
  }).passthrough();
48933
- var captureListResponseSchema = z145.object({
48934
- captures: z145.array(captureSchema),
48935
- total: z145.number(),
48936
- truncated: z145.boolean()
49222
+ var captureListResponseSchema = z146.object({
49223
+ captures: z146.array(captureSchema),
49224
+ total: z146.number(),
49225
+ truncated: z146.boolean()
48937
49226
  }).passthrough();
48938
49227
  var LANDSCAPE_COLUMNS = [
48939
49228
  { header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
@@ -49605,22 +49894,22 @@ function registerClarityProcessSummaries(clarity) {
49605
49894
  __name(registerClarityProcessSummaries, "registerClarityProcessSummaries");
49606
49895
 
49607
49896
  // src/commands/clarity/list-snapshots.ts
49608
- import { z as z146 } from "zod";
49897
+ import { z as z147 } from "zod";
49609
49898
  var SNAPSHOT_KINDS = ["current_process", "transformation_proposal"];
49610
49899
  var DEFAULT_LIMIT9 = 50;
49611
49900
  var MIN_LIMIT9 = 1;
49612
49901
  var MAX_LIMIT9 = 100;
49613
- var snapshotListItemSchema = z146.looseObject({
49614
- id: z146.string(),
49615
- status: z146.string(),
49616
- creator_type: z146.string(),
49617
- created_at: z146.string(),
49618
- parent_id: z146.string().nullable().optional(),
49619
- source_snapshot_id: z146.string().nullable().optional()
49620
- });
49621
- var listSnapshotsResponseSchema = z146.looseObject({
49622
- snapshots: z146.array(snapshotListItemSchema),
49623
- total: z146.number().int().optional()
49902
+ var snapshotListItemSchema = z147.looseObject({
49903
+ id: z147.string(),
49904
+ status: z147.string(),
49905
+ creator_type: z147.string(),
49906
+ created_at: z147.string(),
49907
+ parent_id: z147.string().nullable().optional(),
49908
+ source_snapshot_id: z147.string().nullable().optional()
49909
+ });
49910
+ var listSnapshotsResponseSchema = z147.looseObject({
49911
+ snapshots: z147.array(snapshotListItemSchema),
49912
+ total: z147.number().int().optional()
49624
49913
  });
49625
49914
  var TABLE_COLUMNS25 = [
49626
49915
  {
@@ -49733,46 +50022,46 @@ __name(registerClarityPostprocess, "registerClarityPostprocess");
49733
50022
 
49734
50023
  // src/commands/clarity/process-administration.ts
49735
50024
  import { createReadStream as createReadStream2 } from "node:fs";
49736
- import { z as z147 } from "zod";
50025
+ import { z as z148 } from "zod";
49737
50026
  var MAX_GUIDANCE_LENGTH = 5e3;
49738
50027
  var MAX_GUIDANCE_BYTES = MAX_GUIDANCE_LENGTH * 4;
49739
- var guidanceResponseSchema = z147.object({
49740
- id: z147.guid(),
49741
- processId: z147.guid(),
49742
- content: z147.string(),
49743
- author: z147.string().nullable(),
49744
- createdAt: z147.string().optional(),
49745
- updatedAt: z147.string().optional()
49746
- });
49747
- var sharingResponseSchema = z147.object({
49748
- shareEnabled: z147.boolean(),
49749
- shareToken: z147.string().nullable(),
49750
- shareUrl: z147.string().nullable(),
49751
- proposalShareEnabled: z147.boolean()
49752
- });
49753
- var processAccessUserSchema = z147.object({
49754
- id: z147.guid(),
49755
- name: z147.string().nullable(),
49756
- email: z147.email().nullable()
49757
- });
49758
- var processMemberSchema = z147.object({
49759
- id: z147.guid(),
50028
+ var guidanceResponseSchema = z148.object({
50029
+ id: z148.guid(),
50030
+ processId: z148.guid(),
50031
+ content: z148.string(),
50032
+ author: z148.string().nullable(),
50033
+ createdAt: z148.string().optional(),
50034
+ updatedAt: z148.string().optional()
50035
+ });
50036
+ var sharingResponseSchema = z148.object({
50037
+ shareEnabled: z148.boolean(),
50038
+ shareToken: z148.string().nullable(),
50039
+ shareUrl: z148.string().nullable(),
50040
+ proposalShareEnabled: z148.boolean()
50041
+ });
50042
+ var processAccessUserSchema = z148.object({
50043
+ id: z148.guid(),
50044
+ name: z148.string().nullable(),
50045
+ email: z148.email().nullable()
50046
+ });
50047
+ var processMemberSchema = z148.object({
50048
+ id: z148.guid(),
49760
50049
  user: processAccessUserSchema,
49761
- role: z147.string().nullable(),
49762
- createdAt: z147.string()
50050
+ role: z148.string().nullable(),
50051
+ createdAt: z148.string()
49763
50052
  });
49764
- var processPendingInviteSchema = z147.object({
49765
- id: z147.guid(),
49766
- email: z147.string(),
49767
- createdAt: z147.string()
50053
+ var processPendingInviteSchema = z148.object({
50054
+ id: z148.guid(),
50055
+ email: z148.string(),
50056
+ createdAt: z148.string()
49768
50057
  });
49769
- var processMembersResponseSchema = z147.object({
49770
- visibility: z147.enum(["team", "restricted"]),
50058
+ var processMembersResponseSchema = z148.object({
50059
+ visibility: z148.enum(["team", "restricted"]),
49771
50060
  owner: processAccessUserSchema,
49772
- members: z147.array(processMemberSchema),
50061
+ members: z148.array(processMemberSchema),
49773
50062
  // Defaulted so a backend that predates the field still parses, and so the
49774
50063
  // renderer never has to branch on undefined.
49775
- pending: z147.array(processPendingInviteSchema).default([])
50064
+ pending: z148.array(processPendingInviteSchema).default([])
49776
50065
  });
49777
50066
  var MEMBER_COLUMNS = [
49778
50067
  { header: "ID", cell: /* @__PURE__ */ __name((member) => member.id, "cell") },
@@ -50569,21 +50858,21 @@ function renderLabelSummary(label) {
50569
50858
  __name(renderLabelSummary, "renderLabelSummary");
50570
50859
 
50571
50860
  // src/commands/clarity/process-lifecycle.ts
50572
- import { z as z148 } from "zod";
50573
- var visibilitySchema = z148.enum(["team", "restricted"]);
50574
- var updatedProcessSchema = z148.object({
50575
- id: z148.guid(),
50576
- name: z148.string(),
50577
- status: z148.string(),
50861
+ import { z as z149 } from "zod";
50862
+ var visibilitySchema = z149.enum(["team", "restricted"]);
50863
+ var updatedProcessSchema = z149.object({
50864
+ id: z149.guid(),
50865
+ name: z149.string(),
50866
+ status: z149.string(),
50578
50867
  visibility: visibilitySchema,
50579
- customPrompt: z148.string().nullable(),
50580
- updatedAt: z148.string()
50868
+ customPrompt: z149.string().nullable(),
50869
+ updatedAt: z149.string()
50581
50870
  });
50582
- var duplicatedProcessSchema = z148.object({
50583
- id: z148.guid()
50871
+ var duplicatedProcessSchema = z149.object({
50872
+ id: z149.guid()
50584
50873
  });
50585
- var deletedProcessSchema = z148.object({
50586
- success: z148.literal(true)
50874
+ var deletedProcessSchema = z149.object({
50875
+ success: z149.literal(true)
50587
50876
  });
50588
50877
  function registerClarityProcessLifecycle(clarity) {
50589
50878
  clarity.command("update <process-id>").description("Update a Clarity process").option("--name <name>", "set the process name").option("--guidance <text>", "set process-specific guidance").option("--clear-guidance", "remove process-specific guidance").option("--visibility <visibility>", "set visibility: team or restricted").option("--complete", "mark a review-stage process complete").option("--json", "output raw JSON from the API").action(updateProcess);
@@ -50691,41 +50980,41 @@ function parseResponse2(schema, raw) {
50691
50980
  __name(parseResponse2, "parseResponse");
50692
50981
 
50693
50982
  // src/commands/clarity/process-links.ts
50694
- import { z as z149 } from "zod";
50983
+ import { z as z150 } from "zod";
50695
50984
  var MIN_LIMIT11 = 1;
50696
50985
  var MAX_LIMIT11 = 500;
50697
50986
  var DEFAULT_LIMIT11 = 100;
50698
50987
  var ORG_FLAG_DESCRIPTION4 = "organization id for the org-scoped process landscape (overrides DUVO_ORG_ID)";
50699
50988
  var PROCESS_LINKS_RESOURCE_PATH = "/clarity/hierarchy/process-links";
50700
- var processLinkTypeSchema = z149.enum([
50989
+ var processLinkTypeSchema = z150.enum([
50701
50990
  "hands_off_to",
50702
50991
  "shares_step_with",
50703
50992
  "variant_of"
50704
50993
  ]);
50705
- var processLinkStateSchema = z149.enum(["suggested", "confirmed"]);
50706
- var processLinkSchema = z149.object({
50707
- id: z149.string(),
50708
- source_node_id: z149.string(),
50709
- target_node_id: z149.string(),
50994
+ var processLinkStateSchema = z150.enum(["suggested", "confirmed"]);
50995
+ var processLinkSchema = z150.object({
50996
+ id: z150.string(),
50997
+ source_node_id: z150.string(),
50998
+ target_node_id: z150.string(),
50710
50999
  type: processLinkTypeSchema,
50711
51000
  state: processLinkStateSchema,
50712
- confidence: z149.number().nullable(),
50713
- rationale: z149.string().nullable().default(null),
50714
- created_at: z149.string(),
50715
- updated_at: z149.string()
50716
- });
50717
- var listProcessLinksResponseSchema = z149.object({
50718
- process_links: z149.array(processLinkSchema),
50719
- total: z149.number(),
50720
- limit: z149.number(),
50721
- offset: z149.number()
50722
- });
50723
- var processLinkMutationResponseSchema = z149.object({
51001
+ confidence: z150.number().nullable(),
51002
+ rationale: z150.string().nullable().default(null),
51003
+ created_at: z150.string(),
51004
+ updated_at: z150.string()
51005
+ });
51006
+ var listProcessLinksResponseSchema = z150.object({
51007
+ process_links: z150.array(processLinkSchema),
51008
+ total: z150.number(),
51009
+ limit: z150.number(),
51010
+ offset: z150.number()
51011
+ });
51012
+ var processLinkMutationResponseSchema = z150.object({
50724
51013
  process_link: processLinkSchema,
50725
- created: z149.boolean().optional()
51014
+ created: z150.boolean().optional()
50726
51015
  });
50727
- var deleteProcessLinkResponseSchema = z149.object({
50728
- deleted: z149.boolean()
51016
+ var deleteProcessLinkResponseSchema = z150.object({
51017
+ deleted: z150.boolean()
50729
51018
  });
50730
51019
  var PROCESS_LINK_COLUMNS = [
50731
51020
  { header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
@@ -50926,14 +51215,14 @@ function renderProcessLinks(response) {
50926
51215
  __name(renderProcessLinks, "renderProcessLinks");
50927
51216
 
50928
51217
  // src/commands/clarity/promote-current-process.ts
50929
- import { z as z150 } from "zod";
50930
- var snapshotSchema3 = z150.object({
50931
- snapshot: z150.object({
50932
- id: z150.string(),
50933
- status: z150.string(),
50934
- creator_type: z150.string(),
50935
- created_at: z150.string(),
50936
- updated_at: z150.string()
51218
+ import { z as z151 } from "zod";
51219
+ var snapshotSchema3 = z151.object({
51220
+ snapshot: z151.object({
51221
+ id: z151.string(),
51222
+ status: z151.string(),
51223
+ creator_type: z151.string(),
51224
+ created_at: z151.string(),
51225
+ updated_at: z151.string()
50937
51226
  })
50938
51227
  });
50939
51228
  function registerClarityPromoteCurrentProcess(clarity) {
@@ -50970,14 +51259,14 @@ function registerClarityPromoteCurrentProcess(clarity) {
50970
51259
  __name(registerClarityPromoteCurrentProcess, "registerClarityPromoteCurrentProcess");
50971
51260
 
50972
51261
  // src/commands/clarity/promote-transformation-proposal.ts
50973
- import { z as z151 } from "zod";
50974
- var snapshotSchema4 = z151.object({
50975
- snapshot: z151.object({
50976
- id: z151.string(),
50977
- status: z151.string(),
50978
- creator_type: z151.string(),
50979
- created_at: z151.string(),
50980
- updated_at: z151.string()
51262
+ import { z as z153 } from "zod";
51263
+ var snapshotSchema4 = z153.object({
51264
+ snapshot: z153.object({
51265
+ id: z153.string(),
51266
+ status: z153.string(),
51267
+ creator_type: z153.string(),
51268
+ created_at: z153.string(),
51269
+ updated_at: z153.string()
50981
51270
  })
50982
51271
  });
50983
51272
  function registerClarityPromoteTransformationProposal(clarity) {
@@ -51053,9 +51342,9 @@ __name(registerClarityRevertTransformationProposal, "registerClarityRevertTransf
51053
51342
 
51054
51343
  // src/commands/clarity/save-snapshot.ts
51055
51344
  import { readFile as readFile9 } from "node:fs/promises";
51056
- import { z as z153 } from "zod";
51057
- var snapshotFileStepsSchema = z153.array(postprocessClarityStepBaseSchema).min(1);
51058
- var snapshotFileSchema = z153.union([
51345
+ import { z as z154 } from "zod";
51346
+ var snapshotFileStepsSchema = z154.array(postprocessClarityStepBaseSchema).min(1);
51347
+ var snapshotFileSchema = z154.union([
51059
51348
  snapshotFileStepsSchema,
51060
51349
  saveClarityProcessSnapshotBodySchema.pick({ summary: true, swot: true, projectedImpact: true }).extend({ steps: snapshotFileStepsSchema })
51061
51350
  ]);
@@ -52212,17 +52501,17 @@ function registerConnectionsList(connections) {
52212
52501
  __name(registerConnectionsList, "registerConnectionsList");
52213
52502
 
52214
52503
  // src/commands/connections/probe.ts
52215
- import { z as z154 } from "zod";
52216
- var toolSchema = z154.object({
52217
- name: z154.string(),
52218
- description: z154.string().optional(),
52219
- input_schema: z154.record(z154.string(), z154.unknown()).optional()
52504
+ import { z as z155 } from "zod";
52505
+ var toolSchema = z155.object({
52506
+ name: z155.string(),
52507
+ description: z155.string().optional(),
52508
+ input_schema: z155.record(z155.string(), z155.unknown()).optional()
52220
52509
  });
52221
- var probeResponseSchema = z154.object({
52222
- success: z154.boolean(),
52223
- tools: z154.array(toolSchema).optional(),
52224
- error: z154.string().optional(),
52225
- code: z154.enum(["listing_unavailable", "probe_failed"]).optional()
52510
+ var probeResponseSchema = z155.object({
52511
+ success: z155.boolean(),
52512
+ tools: z155.array(toolSchema).optional(),
52513
+ error: z155.string().optional(),
52514
+ code: z155.enum(["listing_unavailable", "probe_failed"]).optional()
52226
52515
  });
52227
52516
  var DESCRIPTION_MAX_WIDTH = 80;
52228
52517
  var TABLE_COLUMNS28 = [
@@ -52432,48 +52721,48 @@ function registerConnections(program) {
52432
52721
  __name(registerConnections, "registerConnections");
52433
52722
 
52434
52723
  // src/api/credential-schemas.ts
52435
- import { z as z155 } from "zod";
52436
- var dateLike = z155.string();
52437
- var secretSchema = z155.object({
52438
- id: z155.string(),
52439
- team_id: z155.string(),
52440
- user_id: z155.string().nullable(),
52441
- name: z155.string(),
52442
- service_slug: z155.string().nullable(),
52443
- env_var_keys: z155.array(z155.string()),
52444
- created_by: z155.string(),
52724
+ import { z as z156 } from "zod";
52725
+ var dateLike = z156.string();
52726
+ var secretSchema = z156.object({
52727
+ id: z156.string(),
52728
+ team_id: z156.string(),
52729
+ user_id: z156.string().nullable(),
52730
+ name: z156.string(),
52731
+ service_slug: z156.string().nullable(),
52732
+ env_var_keys: z156.array(z156.string()),
52733
+ created_by: z156.string(),
52445
52734
  created_at: dateLike,
52446
52735
  updated_at: dateLike
52447
52736
  });
52448
- var secretsListResponseSchema = z155.array(secretSchema);
52737
+ var secretsListResponseSchema = z156.array(secretSchema);
52449
52738
  var secretResponseSchema = secretSchema;
52450
- var browserLoginSchema = z155.object({
52451
- id: z155.string(),
52452
- user_id: z155.string().nullable(),
52453
- team_id: z155.string(),
52454
- domain: z155.string(),
52455
- username: z155.string().nullable(),
52739
+ var browserLoginSchema = z156.object({
52740
+ id: z156.string(),
52741
+ user_id: z156.string().nullable(),
52742
+ team_id: z156.string(),
52743
+ domain: z156.string(),
52744
+ username: z156.string().nullable(),
52456
52745
  password: encryptedDataSchema.nullable(),
52457
52746
  otp_secret: encryptedDataSchema.nullable(),
52458
52747
  created_at: dateLike,
52459
52748
  updated_at: dateLike
52460
52749
  });
52461
- var browserLoginsListResponseSchema = z155.array(credentialPreviewSchema);
52462
- var revisionLoginSummarySchema = z155.object({
52463
- id: z155.string(),
52464
- user_id: z155.string().nullable(),
52465
- team_id: z155.string().nullable(),
52466
- domain: z155.string(),
52467
- username: z155.string().nullable(),
52750
+ var browserLoginsListResponseSchema = z156.array(credentialPreviewSchema);
52751
+ var revisionLoginSummarySchema = z156.object({
52752
+ id: z156.string(),
52753
+ user_id: z156.string().nullable(),
52754
+ team_id: z156.string().nullable(),
52755
+ domain: z156.string(),
52756
+ username: z156.string().nullable(),
52468
52757
  created_at: dateLike,
52469
52758
  updated_at: dateLike
52470
52759
  });
52471
- var revisionLoginsListResponseSchema = z155.array(
52760
+ var revisionLoginsListResponseSchema = z156.array(
52472
52761
  revisionLoginSummarySchema
52473
52762
  );
52474
- var revisionSecretsListResponseSchema = z155.array(secretSchema);
52475
- var successResponseSchema2 = z155.object({
52476
- success: z155.boolean()
52763
+ var revisionSecretsListResponseSchema = z156.array(secretSchema);
52764
+ var successResponseSchema2 = z156.object({
52765
+ success: z156.boolean()
52477
52766
  });
52478
52767
  var attachSuccessResponseSchema = successResponseSchema2;
52479
52768
  var deleteSecretResponseSchema = successResponseSchema2;
@@ -53662,13 +53951,13 @@ function registerInviteBulk(invite) {
53662
53951
  __name(registerInviteBulk, "registerInviteBulk");
53663
53952
 
53664
53953
  // src/api/invite-schemas.ts
53665
- import { z as z156 } from "zod";
53666
- var updateTeamInviteResponseSchema = z156.object({
53667
- id: z156.string(),
53668
- role: z156.string()
53954
+ import { z as z157 } from "zod";
53955
+ var updateTeamInviteResponseSchema = z157.object({
53956
+ id: z157.string(),
53957
+ role: z157.string()
53669
53958
  });
53670
- var inviteSuccessResponseSchema = z156.object({
53671
- success: z156.literal(true)
53959
+ var inviteSuccessResponseSchema = z157.object({
53960
+ success: z157.literal(true)
53672
53961
  });
53673
53962
 
53674
53963
  // src/commands/invite/send-invitation-email.ts
@@ -58578,7 +58867,11 @@ function registerQueuesGet(queues) {
58578
58867
  { label: "Name", value: queue.name },
58579
58868
  { label: "Description", value: queue.description ?? "" },
58580
58869
  { label: "Folder", value: queue.folder_id ?? "" },
58581
- { label: "Created", value: queue.created_at ?? "" }
58870
+ { label: "Created", value: queue.created_at ?? "" },
58871
+ {
58872
+ label: "Created by",
58873
+ value: queue.created_by ? `${queue.created_by.name ?? queue.created_by.email} (${queue.created_by.id})` : ""
58874
+ }
58582
58875
  ])
58583
58876
  );
58584
58877
  }, "getAction"));
@@ -58951,7 +59244,14 @@ var TABLE_COLUMNS43 = [
58951
59244
  cell: /* @__PURE__ */ __name((row) => row.description ?? "", "cell"),
58952
59245
  maxWidth: 40
58953
59246
  },
58954
- { header: "CREATED", cell: /* @__PURE__ */ __name((row) => row.created_at ?? "", "cell") }
59247
+ { header: "CREATED", cell: /* @__PURE__ */ __name((row) => row.created_at ?? "", "cell") },
59248
+ {
59249
+ header: "CREATED BY",
59250
+ // Name when the profile has one, email otherwise. Blank for a queue with
59251
+ // no recorded creator, such as one an automation install created.
59252
+ cell: /* @__PURE__ */ __name((row) => row.created_by?.name ?? row.created_by?.email ?? "", "cell"),
59253
+ maxWidth: 30
59254
+ }
58955
59255
  ];
58956
59256
  function registerQueuesList(queues) {
58957
59257
  queues.command("list", { isDefault: true }).description("List queues for your team").option("--limit <n>", `page size (${MIN_LIMIT19}-${MAX_LIMIT17})`).option("--offset <n>", "number of queues to skip").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function listAction(options) {
@@ -59763,91 +60063,91 @@ function registerRevisionSecrets(program) {
59763
60063
  __name(registerRevisionSecrets, "registerRevisionSecrets");
59764
60064
 
59765
60065
  // src/api/run-schemas.ts
59766
- import { z as z157 } from "zod";
59767
- var publicRunSchema = z157.object({
59768
- id: z157.string(),
59769
- agent_id: z157.string(),
59770
- build_id: z157.string(),
59771
- status: z157.string(),
59772
- source: z157.string().nullish(),
59773
- sandbox_id: z157.string().nullish(),
59774
- started_at: z157.string().nullish(),
59775
- completed_at: z157.string().nullish(),
59776
- created_at: z157.string(),
59777
- updated_at: z157.string().nullish(),
59778
- human_in_the_loop_enabled: z157.boolean().nullish()
59779
- });
59780
- var startRunResponseSchema = z157.object({
60066
+ import { z as z158 } from "zod";
60067
+ var publicRunSchema = z158.object({
60068
+ id: z158.string(),
60069
+ agent_id: z158.string(),
60070
+ build_id: z158.string(),
60071
+ status: z158.string(),
60072
+ source: z158.string().nullish(),
60073
+ sandbox_id: z158.string().nullish(),
60074
+ started_at: z158.string().nullish(),
60075
+ completed_at: z158.string().nullish(),
60076
+ created_at: z158.string(),
60077
+ updated_at: z158.string().nullish(),
60078
+ human_in_the_loop_enabled: z158.boolean().nullish()
60079
+ });
60080
+ var startRunResponseSchema = z158.object({
59781
60081
  run: publicRunSchema
59782
60082
  });
59783
- var questionOptionSchema = z157.object({
59784
- label: z157.string(),
59785
- description: z157.string().nullish()
59786
- });
59787
- var questionSchema = z157.object({
59788
- question: z157.string(),
59789
- header: z157.string().nullish(),
59790
- options: z157.array(questionOptionSchema).nullish(),
59791
- multi_select: z157.boolean().nullish()
59792
- });
59793
- var pendingHumanRequestSchema = z157.object({
59794
- id: z157.string(),
59795
- title: z157.string(),
59796
- description: z157.string().nullish(),
59797
- created_at: z157.string(),
59798
- type: z157.string(),
59799
- questions: z157.array(questionSchema).nullish()
59800
- });
59801
- var getRunResponseSchema = z157.object({
60083
+ var questionOptionSchema = z158.object({
60084
+ label: z158.string(),
60085
+ description: z158.string().nullish()
60086
+ });
60087
+ var questionSchema = z158.object({
60088
+ question: z158.string(),
60089
+ header: z158.string().nullish(),
60090
+ options: z158.array(questionOptionSchema).nullish(),
60091
+ multi_select: z158.boolean().nullish()
60092
+ });
60093
+ var pendingHumanRequestSchema = z158.object({
60094
+ id: z158.string(),
60095
+ title: z158.string(),
60096
+ description: z158.string().nullish(),
60097
+ created_at: z158.string(),
60098
+ type: z158.string(),
60099
+ questions: z158.array(questionSchema).nullish()
60100
+ });
60101
+ var getRunResponseSchema = z158.object({
59802
60102
  run: publicRunSchema.nullable(),
59803
60103
  pending_human_request: pendingHumanRequestSchema.nullish()
59804
60104
  });
59805
- var stopRunResponseSchema = z157.object({
59806
- success: z157.boolean(),
59807
- message: z157.string().nullish()
59808
- });
59809
- var runMessageSchema = z157.object({
59810
- id: z157.string(),
59811
- type: z157.string(),
59812
- role: z157.string(),
59813
- timestamp: z157.string(),
59814
- text_content: z157.string().nullish(),
59815
- tool_call: z157.object({
59816
- id: z157.string(),
59817
- name: z157.string(),
59818
- arguments: z157.record(z157.string(), z157.unknown()).nullish()
60105
+ var stopRunResponseSchema = z158.object({
60106
+ success: z158.boolean(),
60107
+ message: z158.string().nullish()
60108
+ });
60109
+ var runMessageSchema = z158.object({
60110
+ id: z158.string(),
60111
+ type: z158.string(),
60112
+ role: z158.string(),
60113
+ timestamp: z158.string(),
60114
+ text_content: z158.string().nullish(),
60115
+ tool_call: z158.object({
60116
+ id: z158.string(),
60117
+ name: z158.string(),
60118
+ arguments: z158.record(z158.string(), z158.unknown()).nullish()
59819
60119
  }).nullish(),
59820
- tool_result: z157.object({
59821
- tool_call_id: z157.string(),
59822
- result: z157.unknown().nullish(),
59823
- error: z157.string().nullish()
60120
+ tool_result: z158.object({
60121
+ tool_call_id: z158.string(),
60122
+ result: z158.unknown().nullish(),
60123
+ error: z158.string().nullish()
59824
60124
  }).nullish()
59825
60125
  });
59826
- var listRunMessagesResponseSchema = z157.object({
59827
- messages: z157.array(runMessageSchema),
59828
- total: z157.number().nullish(),
59829
- limit: z157.number().nullish(),
59830
- offset: z157.number().nullish()
60126
+ var listRunMessagesResponseSchema = z158.object({
60127
+ messages: z158.array(runMessageSchema),
60128
+ total: z158.number().nullish(),
60129
+ limit: z158.number().nullish(),
60130
+ offset: z158.number().nullish()
59831
60131
  });
59832
- var postedMessageSchema = z157.object({
59833
- id: z157.string(),
59834
- type: z157.string(),
59835
- role: z157.string(),
59836
- timestamp: z157.string(),
59837
- text_content: z157.string()
60132
+ var postedMessageSchema = z158.object({
60133
+ id: z158.string(),
60134
+ type: z158.string(),
60135
+ role: z158.string(),
60136
+ timestamp: z158.string(),
60137
+ text_content: z158.string()
59838
60138
  });
59839
- var postRunMessageResponseSchema = z157.object({
60139
+ var postRunMessageResponseSchema = z158.object({
59840
60140
  message: postedMessageSchema
59841
60141
  });
59842
- var respondHumanRequestResponseSchema = z157.object({
59843
- human_request: z157.object({
59844
- id: z157.string(),
59845
- run_id: z157.string(),
59846
- title: z157.string(),
59847
- description: z157.string().nullish(),
59848
- response: z157.string().nullish(),
59849
- responded_at: z157.string().nullish(),
59850
- created_at: z157.string()
60142
+ var respondHumanRequestResponseSchema = z158.object({
60143
+ human_request: z158.object({
60144
+ id: z158.string(),
60145
+ run_id: z158.string(),
60146
+ title: z158.string(),
60147
+ description: z158.string().nullish(),
60148
+ response: z158.string().nullish(),
60149
+ responded_at: z158.string().nullish(),
60150
+ created_at: z158.string()
59851
60151
  })
59852
60152
  });
59853
60153
 
@@ -60568,28 +60868,28 @@ function registerRuns(program) {
60568
60868
  __name(registerRuns, "registerRuns");
60569
60869
 
60570
60870
  // src/api/sandbox-schemas.ts
60571
- import { z as z158 } from "zod";
60572
- var createSandboxResponseSchema = z158.object({
60573
- sandbox_id: z158.string(),
60574
- expires_at: z158.string()
60871
+ import { z as z159 } from "zod";
60872
+ var createSandboxResponseSchema = z159.object({
60873
+ sandbox_id: z159.string(),
60874
+ expires_at: z159.string()
60575
60875
  });
60576
- var createSandboxUploadUrlResponseSchema = z158.object({
60577
- upload_url: z158.string(),
60578
- path: z158.string(),
60579
- expires_in_seconds: z158.number()
60876
+ var createSandboxUploadUrlResponseSchema = z159.object({
60877
+ upload_url: z159.string(),
60878
+ path: z159.string(),
60879
+ expires_in_seconds: z159.number()
60580
60880
  });
60581
- var sandboxFileSchema = z158.object({
60582
- name: z158.string(),
60583
- path: z158.string(),
60584
- type: z158.enum(["file", "dir"]),
60585
- size_bytes: z158.number()
60881
+ var sandboxFileSchema = z159.object({
60882
+ name: z159.string(),
60883
+ path: z159.string(),
60884
+ type: z159.enum(["file", "dir"]),
60885
+ size_bytes: z159.number()
60586
60886
  });
60587
- var listSandboxFilesResponseSchema = z158.object({
60588
- files: z158.array(sandboxFileSchema)
60887
+ var listSandboxFilesResponseSchema = z159.object({
60888
+ files: z159.array(sandboxFileSchema)
60589
60889
  });
60590
- var uploadSandboxFileResponseSchema = z158.object({
60591
- path: z158.string(),
60592
- size_bytes: z158.number()
60890
+ var uploadSandboxFileResponseSchema = z159.object({
60891
+ path: z159.string(),
60892
+ size_bytes: z159.number()
60593
60893
  });
60594
60894
  var DEFAULT_SANDBOX_FILES_PATH = "/workspace";
60595
60895
 
@@ -61200,13 +61500,13 @@ __name(registerSkillsAssignments, "registerSkillsAssignments");
61200
61500
 
61201
61501
  // src/commands/skills/create.ts
61202
61502
  import { readFileSync as readFileSync6 } from "node:fs";
61203
- import { z as z159 } from "zod";
61204
- var createSkillResponseSchema = z159.object({
61205
- skill: z159.object({
61206
- id: z159.string(),
61207
- name: z159.string(),
61208
- description: z159.string(),
61209
- team_id: z159.string()
61503
+ import { z as z160 } from "zod";
61504
+ var createSkillResponseSchema = z160.object({
61505
+ skill: z160.object({
61506
+ id: z160.string(),
61507
+ name: z160.string(),
61508
+ description: z160.string(),
61509
+ team_id: z160.string()
61210
61510
  })
61211
61511
  });
61212
61512
  function registerSkillsCreate(skills) {
@@ -61581,13 +61881,13 @@ function readExistingContent(source) {
61581
61881
  __name(readExistingContent, "readExistingContent");
61582
61882
 
61583
61883
  // src/commands/skills/install.ts
61584
- import { z as z160 } from "zod";
61585
- var installSkillResponseSchema = z160.object({
61586
- skill: z160.object({
61587
- id: z160.string(),
61588
- name: z160.string(),
61589
- description: z160.string(),
61590
- team_id: z160.string()
61884
+ import { z as z161 } from "zod";
61885
+ var installSkillResponseSchema = z161.object({
61886
+ skill: z161.object({
61887
+ id: z161.string(),
61888
+ name: z161.string(),
61889
+ description: z161.string(),
61890
+ team_id: z161.string()
61591
61891
  })
61592
61892
  });
61593
61893
  function registerSkillsInstall(skills) {
@@ -61736,48 +62036,48 @@ function registerSkillsList(skills) {
61736
62036
  __name(registerSkillsList, "registerSkillsList");
61737
62037
 
61738
62038
  // src/api/skill-revision-schemas.ts
61739
- import { z as z161 } from "zod";
61740
- var skillRevisionSchema = z161.object({
61741
- id: z161.string(),
61742
- skill_id: z161.string(),
61743
- revision_number: z161.number().nullable(),
61744
- status: z161.enum(["draft", "live", "historic"]),
61745
- revision_name: z161.string().nullable(),
61746
- revision_description: z161.string().nullable(),
61747
- created_by: z161.string().nullable(),
61748
- created_by_name: z161.string().nullable(),
61749
- created_at: z161.string(),
61750
- updated_at: z161.string()
61751
- });
61752
- var listSkillRevisionsResponseSchema = z161.object({
61753
- revisions: z161.array(skillRevisionSchema),
61754
- total: z161.number().nullish(),
61755
- limit: z161.number().nullish(),
61756
- offset: z161.number().nullish()
61757
- });
61758
- var createSkillRevisionResponseSchema = z161.object({
62039
+ import { z as z163 } from "zod";
62040
+ var skillRevisionSchema = z163.object({
62041
+ id: z163.string(),
62042
+ skill_id: z163.string(),
62043
+ revision_number: z163.number().nullable(),
62044
+ status: z163.enum(["draft", "live", "historic"]),
62045
+ revision_name: z163.string().nullable(),
62046
+ revision_description: z163.string().nullable(),
62047
+ created_by: z163.string().nullable(),
62048
+ created_by_name: z163.string().nullable(),
62049
+ created_at: z163.string(),
62050
+ updated_at: z163.string()
62051
+ });
62052
+ var listSkillRevisionsResponseSchema = z163.object({
62053
+ revisions: z163.array(skillRevisionSchema),
62054
+ total: z163.number().nullish(),
62055
+ limit: z163.number().nullish(),
62056
+ offset: z163.number().nullish()
62057
+ });
62058
+ var createSkillRevisionResponseSchema = z163.object({
61759
62059
  revision: skillRevisionSchema,
61760
- created: z161.boolean()
62060
+ created: z163.boolean()
61761
62061
  });
61762
- var skillRevisionResponseSchema = z161.object({
62062
+ var skillRevisionResponseSchema = z163.object({
61763
62063
  revision: skillRevisionSchema
61764
62064
  });
61765
- var deleteSkillRevisionResponseSchema = z161.object({
61766
- success: z161.boolean(),
61767
- message: z161.string()
62065
+ var deleteSkillRevisionResponseSchema = z163.object({
62066
+ success: z163.boolean(),
62067
+ message: z163.string()
61768
62068
  });
61769
- var skillRevisionFileSchema = z161.object({
61770
- name: z161.string(),
61771
- path: z161.string(),
61772
- size: z161.number().optional(),
61773
- contentType: z161.string().optional(),
61774
- updatedAt: z161.string().optional()
62069
+ var skillRevisionFileSchema = z163.object({
62070
+ name: z163.string(),
62071
+ path: z163.string(),
62072
+ size: z163.number().optional(),
62073
+ contentType: z163.string().optional(),
62074
+ updatedAt: z163.string().optional()
61775
62075
  });
61776
- var listSkillRevisionFilesResponseSchema = z161.object({
61777
- files: z161.array(skillRevisionFileSchema),
61778
- limit: z161.number().nullish(),
61779
- has_more: z161.boolean().nullish(),
61780
- next_cursor: z161.string().nullish()
62076
+ var listSkillRevisionFilesResponseSchema = z163.object({
62077
+ files: z163.array(skillRevisionFileSchema),
62078
+ limit: z163.number().nullish(),
62079
+ has_more: z163.boolean().nullish(),
62080
+ next_cursor: z163.string().nullish()
61781
62081
  });
61782
62082
 
61783
62083
  // src/commands/skills/revisions/create.ts
@@ -62253,13 +62553,13 @@ __name(registerSkillsSystem, "registerSkillsSystem");
62253
62553
  // src/commands/skills/upload.ts
62254
62554
  import { readFile as readFile14, stat as stat6 } from "node:fs/promises";
62255
62555
  import { basename as basename6 } from "node:path";
62256
- import { z as z163 } from "zod";
62257
- var uploadSkillResponseSchema = z163.object({
62258
- skill: z163.object({
62259
- id: z163.string(),
62260
- name: z163.string(),
62261
- description: z163.string(),
62262
- team_id: z163.string()
62556
+ import { z as z164 } from "zod";
62557
+ var uploadSkillResponseSchema = z164.object({
62558
+ skill: z164.object({
62559
+ id: z164.string(),
62560
+ name: z164.string(),
62561
+ description: z164.string(),
62562
+ team_id: z164.string()
62263
62563
  })
62264
62564
  });
62265
62565
  function registerSkillsUpload(skills) {
@@ -62495,13 +62795,13 @@ function registerSuggestionsGet(suggestions) {
62495
62795
  __name(registerSuggestionsGet, "registerSuggestionsGet");
62496
62796
 
62497
62797
  // src/commands/suggestions/list.ts
62498
- import { z as z164 } from "zod";
62798
+ import { z as z165 } from "zod";
62499
62799
  var DEFAULT_LIMIT22 = 100;
62500
62800
  var MIN_LIMIT24 = 1;
62501
62801
  var MAX_LIMIT22 = 250;
62502
- var listEnvelopeSchema = z164.object({
62503
- data: z164.array(z164.unknown()),
62504
- pending_count: z164.number().int().nonnegative()
62802
+ var listEnvelopeSchema = z165.object({
62803
+ data: z165.array(z165.unknown()),
62804
+ pending_count: z165.number().int().nonnegative()
62505
62805
  });
62506
62806
  var STATUS_FILTERS = ["pending", "history"];
62507
62807
  var TITLE_PREVIEW_WIDTH2 = 50;
@@ -62919,9 +63219,9 @@ function registerTeamSetRole(team) {
62919
63219
  __name(registerTeamSetRole, "registerTeamSetRole");
62920
63220
 
62921
63221
  // src/commands/team/use.ts
62922
- import { z as z165 } from "zod";
63222
+ import { z as z166 } from "zod";
62923
63223
  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;
62924
- var teamIdSchema = z165.string().regex(TEAM_ID_SHAPE);
63224
+ var teamIdSchema = z166.string().regex(TEAM_ID_SHAPE);
62925
63225
  function registerTeamUse(team) {
62926
63226
  team.command("use <team-id>").description(
62927
63227
  "Set the default team for the active profile (overridable per-command via --team or DUVO_TEAM_ID)"
@@ -63006,10 +63306,10 @@ function registerTeam(program) {
63006
63306
  __name(registerTeam, "registerTeam");
63007
63307
 
63008
63308
  // src/commands/teams/create-org-team.ts
63009
- import { z as z166 } from "zod";
63010
- var createOrgTeamResponseSchema = z166.object({
63011
- id: z166.guid(),
63012
- name: z166.string()
63309
+ import { z as z167 } from "zod";
63310
+ var createOrgTeamResponseSchema = z167.object({
63311
+ id: z167.guid(),
63312
+ name: z167.string()
63013
63313
  });
63014
63314
  function registerTeamsCreateOrgTeam(teams) {
63015
63315
  teams.command("create-org-team <org-id>").description("Create a new team inside an organization you administer").requiredOption("--name <name>", "team name").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function createOrgTeamAction(orgId, options) {
@@ -63047,14 +63347,14 @@ function registerTeamsCreateOrgTeam(teams) {
63047
63347
  __name(registerTeamsCreateOrgTeam, "registerTeamsCreateOrgTeam");
63048
63348
 
63049
63349
  // src/commands/teams/list.ts
63050
- import { z as z167 } from "zod";
63051
- var teamApiSchema3 = z167.object({
63052
- id: z167.string(),
63053
- name: z167.string(),
63054
- organization_id: z167.string().nullable()
63350
+ import { z as z168 } from "zod";
63351
+ var teamApiSchema3 = z168.object({
63352
+ id: z168.string(),
63353
+ name: z168.string(),
63354
+ organization_id: z168.string().nullable()
63055
63355
  });
63056
- var listMyTeamsResponseSchema3 = z167.object({
63057
- teams: z167.array(teamApiSchema3)
63356
+ var listMyTeamsResponseSchema3 = z168.object({
63357
+ teams: z168.array(teamApiSchema3)
63058
63358
  });
63059
63359
  function registerTeamsList(teams) {
63060
63360
  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) {
@@ -63097,29 +63397,29 @@ function registerTeamsList(teams) {
63097
63397
  __name(registerTeamsList, "registerTeamsList");
63098
63398
 
63099
63399
  // src/commands/teams/org-agents.ts
63100
- import { z as z168 } from "zod";
63400
+ import { z as z169 } from "zod";
63101
63401
  var DEFAULT_LIMIT24 = 20;
63102
63402
  var MIN_LIMIT26 = 1;
63103
63403
  var MAX_LIMIT24 = 100;
63104
63404
  var NAME_PREVIEW_WIDTH = 32;
63105
- var orgAgentSchema = z168.object({
63106
- id: z168.string(),
63107
- name: z168.string(),
63108
- team_id: z168.string(),
63109
- team_name: z168.string(),
63110
- created_at: z168.string().nullable(),
63111
- updated_at: z168.string().nullable(),
63112
- last_run_at: z168.string().nullable(),
63113
- last_run_status: z168.string().nullable(),
63114
- schedule_enabled: z168.boolean(),
63115
- auto_disabled_at: z168.string().nullable(),
63116
- auto_disabled_reason: z168.string().nullable()
63117
- });
63118
- var orgAgentsResponseSchema = z168.object({
63119
- agents: z168.array(orgAgentSchema),
63120
- total: z168.number(),
63121
- limit: z168.number(),
63122
- offset: z168.number()
63405
+ var orgAgentSchema = z169.object({
63406
+ id: z169.string(),
63407
+ name: z169.string(),
63408
+ team_id: z169.string(),
63409
+ team_name: z169.string(),
63410
+ created_at: z169.string().nullable(),
63411
+ updated_at: z169.string().nullable(),
63412
+ last_run_at: z169.string().nullable(),
63413
+ last_run_status: z169.string().nullable(),
63414
+ schedule_enabled: z169.boolean(),
63415
+ auto_disabled_at: z169.string().nullable(),
63416
+ auto_disabled_reason: z169.string().nullable()
63417
+ });
63418
+ var orgAgentsResponseSchema = z169.object({
63419
+ agents: z169.array(orgAgentSchema),
63420
+ total: z169.number(),
63421
+ limit: z169.number(),
63422
+ offset: z169.number()
63123
63423
  });
63124
63424
  function formatSchedule(agent) {
63125
63425
  if (agent.schedule_enabled) {
@@ -63229,21 +63529,21 @@ Showing ${agents.length} of ${total} agents (offset ${offset})`
63229
63529
  __name(registerTeamsOrgAgents, "registerTeamsOrgAgents");
63230
63530
 
63231
63531
  // src/commands/teams/org-insights.ts
63232
- import { z as z169 } from "zod";
63233
- var headlineSchema = z169.object({
63234
- total_runs: z169.number(),
63235
- completed_runs: z169.number(),
63236
- failed_runs: z169.number(),
63237
- success_rate: z169.number().nullable(),
63238
- active_agents: z169.number(),
63239
- active_users: z169.number(),
63240
- start_date: z169.string(),
63241
- end_date: z169.string(),
63242
- truncated: z169.boolean(),
63243
- aggregated_teams: z169.number(),
63244
- total_teams: z169.number()
63245
- });
63246
- var orgInsightsHeadlineResponseSchema = z169.object({
63532
+ import { z as z170 } from "zod";
63533
+ var headlineSchema = z170.object({
63534
+ total_runs: z170.number(),
63535
+ completed_runs: z170.number(),
63536
+ failed_runs: z170.number(),
63537
+ success_rate: z170.number().nullable(),
63538
+ active_agents: z170.number(),
63539
+ active_users: z170.number(),
63540
+ start_date: z170.string(),
63541
+ end_date: z170.string(),
63542
+ truncated: z170.boolean(),
63543
+ aggregated_teams: z170.number(),
63544
+ total_teams: z170.number()
63545
+ });
63546
+ var orgInsightsHeadlineResponseSchema = z170.object({
63247
63547
  headline: headlineSchema
63248
63548
  });
63249
63549
  function formatRate(rate) {
@@ -63311,26 +63611,26 @@ function registerTeamsOrgInsights(teams) {
63311
63611
  __name(registerTeamsOrgInsights, "registerTeamsOrgInsights");
63312
63612
 
63313
63613
  // src/commands/teams/org-metrics.ts
63314
- import { z as z170 } from "zod";
63315
- var teamMetricSchema = z170.object({
63316
- team_id: z170.string(),
63317
- team_name: z170.string(),
63318
- is_deleted: z170.boolean(),
63319
- member_count: z170.number(),
63320
- assignment_count: z170.number(),
63321
- scheduled_job_count: z170.number(),
63322
- total_jobs: z170.number(),
63323
- completed_jobs: z170.number(),
63324
- failed_jobs: z170.number(),
63325
- total_runs: z170.number()
63326
- });
63327
- var orgInsightsMetricsResponseSchema = z170.object({
63328
- teams: z170.array(teamMetricSchema),
63329
- start_date: z170.string(),
63330
- end_date: z170.string(),
63331
- truncated: z170.boolean(),
63332
- total_teams: z170.number(),
63333
- org_member_count: z170.number()
63614
+ import { z as z171 } from "zod";
63615
+ var teamMetricSchema = z171.object({
63616
+ team_id: z171.string(),
63617
+ team_name: z171.string(),
63618
+ is_deleted: z171.boolean(),
63619
+ member_count: z171.number(),
63620
+ assignment_count: z171.number(),
63621
+ scheduled_job_count: z171.number(),
63622
+ total_jobs: z171.number(),
63623
+ completed_jobs: z171.number(),
63624
+ failed_jobs: z171.number(),
63625
+ total_runs: z171.number()
63626
+ });
63627
+ var orgInsightsMetricsResponseSchema = z171.object({
63628
+ teams: z171.array(teamMetricSchema),
63629
+ start_date: z171.string(),
63630
+ end_date: z171.string(),
63631
+ truncated: z171.boolean(),
63632
+ total_teams: z171.number(),
63633
+ org_member_count: z171.number()
63334
63634
  });
63335
63635
  function registerTeamsOrgMetrics(teams) {
63336
63636
  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) {
@@ -63393,7 +63693,7 @@ ${total_teams} teams${suffix} \xB7 ${org_member_count} org members`
63393
63693
  __name(registerTeamsOrgMetrics, "registerTeamsOrgMetrics");
63394
63694
 
63395
63695
  // src/commands/teams/org-runs.ts
63396
- import { z as z171 } from "zod";
63696
+ import { z as z173 } from "zod";
63397
63697
  var DEFAULT_LIMIT25 = 20;
63398
63698
  var MIN_LIMIT27 = 1;
63399
63699
  var MAX_LIMIT25 = 500;
@@ -63405,32 +63705,32 @@ var RUN_STATUSES = [
63405
63705
  "needs_attention"
63406
63706
  ];
63407
63707
  var HAS_ISSUES_VALUES2 = ["true", "false"];
63408
- var orgRunSchema = z171.object({
63409
- id: z171.string(),
63410
- status: z171.string(),
63411
- source: z171.string().nullable(),
63412
- team_id: z171.string(),
63413
- team_name: z171.string().nullable(),
63414
- agent_id: z171.string(),
63415
- agent_name: z171.string(),
63416
- build_id: z171.string().nullable(),
63417
- automation_id: z171.string().nullable(),
63418
- automation_name: z171.string().nullable(),
63419
- user_id: z171.string().nullable(),
63420
- created_at: z171.string(),
63421
- updated_at: z171.string(),
63422
- started_at: z171.string().nullable(),
63423
- completed_at: z171.string().nullable()
63424
- });
63425
- var orgRunsResponseSchema = z171.object({
63426
- runs: z171.array(orgRunSchema),
63427
- total: z171.number().nullable(),
63428
- limit: z171.number(),
63708
+ var orgRunSchema = z173.object({
63709
+ id: z173.string(),
63710
+ status: z173.string(),
63711
+ source: z173.string().nullable(),
63712
+ team_id: z173.string(),
63713
+ team_name: z173.string().nullable(),
63714
+ agent_id: z173.string(),
63715
+ agent_name: z173.string(),
63716
+ build_id: z173.string().nullable(),
63717
+ automation_id: z173.string().nullable(),
63718
+ automation_name: z173.string().nullable(),
63719
+ user_id: z173.string().nullable(),
63720
+ created_at: z173.string(),
63721
+ updated_at: z173.string(),
63722
+ started_at: z173.string().nullable(),
63723
+ completed_at: z173.string().nullable()
63724
+ });
63725
+ var orgRunsResponseSchema = z173.object({
63726
+ runs: z173.array(orgRunSchema),
63727
+ total: z173.number().nullable(),
63728
+ limit: z173.number(),
63429
63729
  // Optional so the CLI keeps working against an API that predates them.
63430
- created_after: z171.string().nullable().optional(),
63431
- default_window_applied: z171.boolean().optional(),
63432
- has_more: z171.boolean().optional(),
63433
- next_cursor: z171.string().nullable().optional()
63730
+ created_after: z173.string().nullable().optional(),
63731
+ default_window_applied: z173.boolean().optional(),
63732
+ has_more: z173.boolean().optional(),
63733
+ next_cursor: z173.string().nullable().optional()
63434
63734
  });
63435
63735
  var DEFAULT_WINDOW_NOTE = "default window: last 7 days \u2014 pass --created-after (or any time bound) to widen";
63436
63736
  function buildOrgRunsQuery(options, limit) {
@@ -63609,20 +63909,20 @@ Showing ${runs.length} runs${windowNote}; pass --include-total for the total`
63609
63909
  __name(registerTeamsOrgRuns, "registerTeamsOrgRuns");
63610
63910
 
63611
63911
  // src/commands/teams/org-usage.ts
63612
- import { z as z173 } from "zod";
63912
+ import { z as z174 } from "zod";
63613
63913
  var GRANULARITIES = ["day", "week", "month"];
63614
63914
  var DEFAULT_LOOKBACK_MS = 30 * 24 * 60 * 60 * 1e3;
63615
- var bucketSchema = z173.object({
63616
- period: z173.string(),
63617
- total_runs: z173.number(),
63618
- scheduled_runs: z173.number(),
63619
- on_demand_runs: z173.number()
63620
- });
63621
- var usageChartResponseSchema = z173.object({
63622
- buckets: z173.array(bucketSchema),
63623
- granularity: z173.enum(GRANULARITIES),
63624
- truncated: z173.boolean(),
63625
- total_teams: z173.number()
63915
+ var bucketSchema = z174.object({
63916
+ period: z174.string(),
63917
+ total_runs: z174.number(),
63918
+ scheduled_runs: z174.number(),
63919
+ on_demand_runs: z174.number()
63920
+ });
63921
+ var usageChartResponseSchema = z174.object({
63922
+ buckets: z174.array(bucketSchema),
63923
+ granularity: z174.enum(GRANULARITIES),
63924
+ truncated: z174.boolean(),
63925
+ total_teams: z174.number()
63626
63926
  });
63627
63927
  function registerTeamsOrgUsage(teams) {
63628
63928
  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(
@@ -63681,17 +63981,17 @@ function registerTeamsOrgUsage(teams) {
63681
63981
  __name(registerTeamsOrgUsage, "registerTeamsOrgUsage");
63682
63982
 
63683
63983
  // src/commands/teams/org.ts
63684
- import { z as z174 } from "zod";
63685
- var orgTeamSchema = z174.object({
63686
- id: z174.string(),
63687
- name: z174.string(),
63688
- userIsMember: z174.boolean(),
63689
- userRole: z174.string().nullable(),
63690
- memberCount: z174.number()
63984
+ import { z as z175 } from "zod";
63985
+ var orgTeamSchema = z175.object({
63986
+ id: z175.string(),
63987
+ name: z175.string(),
63988
+ userIsMember: z175.boolean(),
63989
+ userRole: z175.string().nullable(),
63990
+ memberCount: z175.number()
63691
63991
  });
63692
- var listOrgTeamsResponseSchema = z174.object({
63693
- teams: z174.array(orgTeamSchema),
63694
- total: z174.number()
63992
+ var listOrgTeamsResponseSchema = z175.object({
63993
+ teams: z175.array(orgTeamSchema),
63994
+ total: z175.number()
63695
63995
  });
63696
63996
  var SORT_BY_VALUES = ["createdAt", "name"];
63697
63997
  function registerTeamsOrg(teams) {
@@ -63752,17 +64052,17 @@ function registerTeamsOrg(teams) {
63752
64052
  __name(registerTeamsOrg, "registerTeamsOrg");
63753
64053
 
63754
64054
  // src/commands/teams/orgs.ts
63755
- import { z as z175 } from "zod";
63756
- var orgMembershipSchema = z175.object({
63757
- organization: z175.object({
63758
- id: z175.string(),
63759
- name: z175.string()
64055
+ import { z as z176 } from "zod";
64056
+ var orgMembershipSchema = z176.object({
64057
+ organization: z176.object({
64058
+ id: z176.string(),
64059
+ name: z176.string()
63760
64060
  }),
63761
- role: z175.string(),
63762
- memberCount: z175.number()
64061
+ role: z176.string(),
64062
+ memberCount: z176.number()
63763
64063
  });
63764
- var listMyOrganizationsResponseSchema = z175.object({
63765
- memberships: z175.array(orgMembershipSchema)
64064
+ var listMyOrganizationsResponseSchema = z176.object({
64065
+ memberships: z176.array(orgMembershipSchema)
63766
64066
  });
63767
64067
  function registerTeamsOrgs(teams) {
63768
64068
  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) {
@@ -63941,7 +64241,7 @@ __name(isStandaloneBinary, "isStandaloneBinary");
63941
64241
  import { createRequire } from "node:module";
63942
64242
  function getPackageMeta() {
63943
64243
  if (true) {
63944
- return { name: "@duvoai/cli", version: "1.72.0" };
64244
+ return { name: "@duvoai/cli", version: "1.73.0" };
63945
64245
  }
63946
64246
  const require2 = createRequire(import.meta.url);
63947
64247
  const raw = require2("../../package.json");