@duvoai/cli 1.112.1 → 1.112.2

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 +74 -326
  2. package/package.json +1 -1
package/dist/bin/duvo.js CHANGED
@@ -5554,42 +5554,16 @@ var rotateInterviewVoiceTokenResponseSchema = z16.object({
5554
5554
  providerConfig: voiceProviderConfigSchema
5555
5555
  });
5556
5556
  var connectionTestTokenResponseSchema = z16.object({
5557
- clientSecretToken: z16.string().min(1),
5558
- /**
5559
- * Gemini Live relay token and relay URL, present when the team's interviews
5560
- * run on Gemini (`clarity_voice_google`), so the diagnostic probes that socket.
5561
- */
5562
- googleLiveToken: z16.string().min(1).optional(),
5563
- googleLiveRelayUrl: z16.string().min(1).optional(),
5564
- rtcUrl: z16.string(),
5565
- /**
5566
- * WSS endpoint resolved from the backend's OPENAI_BASE_URL — the base the
5567
- * secret was minted against. The browser's NEXT_PUBLIC_OPENAI_BASE_URL is
5568
- * baked at build time and can lag it, so the probe must not derive its own.
5569
- */
5570
- webSocketUrl: z16.string().min(1),
5571
- /**
5572
- * Realtime model the secret was minted for. The WebSocket probe must name the
5573
- * same model in its URL (`wss://.../v1/realtime?model=...`) or OpenAI rejects
5574
- * the session, which would misread as a network block.
5575
- */
5576
- model: z16.string().min(1),
5577
- expiresAt: z16.string(),
5578
- /**
5579
- * Present when the caller's team is pinned to the TURN relay (the spike
5580
- * flag). The diagnostic must carry it for the same reason it resolves
5581
- * `rtcUrl` through the proxy flag: a relay-only customer whose media never
5582
- * leaves the relay would otherwise be told the direct path is broken, which
5583
- * is true and useless.
5584
- */
5557
+ /** Gemini Live relay token and relay URL for probing the voice socket. */
5558
+ googleLiveToken: z16.string().min(1),
5559
+ googleLiveRelayUrl: z16.string().min(1),
5560
+ /** Legacy OpenAI Realtime fields kept optional for rolling-deploy compatibility. */
5561
+ clientSecretToken: z16.string().optional(),
5562
+ rtcUrl: z16.string().optional(),
5563
+ webSocketUrl: z16.string().optional(),
5564
+ model: z16.string().optional(),
5565
+ expiresAt: z16.string().optional(),
5585
5566
  relayOnlyRtcConfig: relayOnlyRtcConfigSchema.optional(),
5586
- /**
5587
- * The relay configuration the interview's relay rung mints on demand for
5588
- * every team: present whenever the deployment has a relay, whatever the
5589
- * team's flags. The diagnostic's TURN probe dials it, so the verdict can
5590
- * see the rung the interview would climb to when direct media is blocked.
5591
- * Absent on a deployment without a relay, where that rung does not exist.
5592
- */
5593
5567
  turnRelayRtcConfig: relayOnlyRtcConfigSchema.optional()
5594
5568
  });
5595
5569
  var WEBSOCKET_FALLBACK_MINT_REASON = "websocket-fallback";
@@ -6694,7 +6668,6 @@ var sendArtifactChatMessageResponseSchema = z20.object({
6694
6668
  var updateArtifactChatMessageBodySchema = z20.object({
6695
6669
  decision: z20.enum(["accept", "decline"])
6696
6670
  });
6697
- var updateArtifactChatMessageResponseSchema = sendArtifactChatMessageResponseSchema;
6698
6671
  var artifactChatMessageUpsertEventDataSchema = z20.object({
6699
6672
  conversation: clarityProcessChatConversationSchema,
6700
6673
  message: clarityProcessChatMessageSchema
@@ -13545,6 +13518,12 @@ var casesListResponseSchema = z53.object({
13545
13518
  limit: z53.int(),
13546
13519
  offset: z53.int()
13547
13520
  });
13521
+ var CASE_LIST_SELECTABLE_FIELDS = caseQueueItemSchema.keyof().exclude(["outcome_source"]).options;
13522
+ var CASE_LIST_FIELDS_DESCRIPTION = "Return only these keys on each case, for a light read such as a dashboard polling for changes. `id` is always returned. Leaving out `data`, `json_data` and `search_match_data_snippet` keeps the case payload out of the response and skips reading it for the returned rows; a search or json_data filter still reads it to match. A key the case does not carry in this read is left out, such as `blocker` without include_blockers or `search_match_data_snippet` without a search match. An unknown key is rejected. Omit to return every key.";
13523
+ var caseQueueItemSparseSchema = caseQueueItemSchema.partial().required({ id: true });
13524
+ var casesListSparseResponseSchema = casesListResponseSchema.extend({
13525
+ cases: z53.array(caseQueueItemSparseSchema)
13526
+ });
13548
13527
  var activeCasesResponseSchema = z53.object({
13549
13528
  cases: z53.array(caseQueueItemSchema),
13550
13529
  total: z53.number()
@@ -16964,7 +16943,8 @@ var casesListRequestBodySchema = z77.object({
16964
16943
  count_only: z77.boolean().optional().describe(
16965
16944
  "Skip Case row selection, enrichment, and transformation. The normal response shape contains an empty cases array and the matching total."
16966
16945
  ),
16967
- include_blockers: z77.boolean().optional().describe(CASE_INCLUDE_BLOCKERS_DESCRIPTION)
16946
+ include_blockers: z77.boolean().optional().describe(CASE_INCLUDE_BLOCKERS_DESCRIPTION),
16947
+ fields: z77.array(z77.enum(CASE_LIST_SELECTABLE_FIELDS)).min(1).optional().describe(CASE_LIST_FIELDS_DESCRIPTION)
16968
16948
  });
16969
16949
  function toBase64(input) {
16970
16950
  if (typeof btoa === "function") {
@@ -30231,119 +30211,6 @@ ${renderTable(MESSAGE_COLUMNS, response.messages)}`
30231
30211
  }, "action"));
30232
30212
  }
30233
30213
  __name(registerClarityArtifactChatMessages, "registerClarityArtifactChatMessages");
30234
- function registerClaritySendArtifactChatMessage(clarity) {
30235
- clarity.command("send-artifact-chat-message <process-id>").description("Send an artifact-chat message or HITL answer").option(
30236
- "--conversation-id <id>",
30237
- "existing conversation to continue; omit to start a new conversation"
30238
- ).requiredOption(
30239
- "--snapshot-kind <current_process|transformation_proposal>",
30240
- "artifact kind to edit",
30241
- parseSnapshotKind
30242
- ).requiredOption(
30243
- "--baseline-snapshot-id <id>",
30244
- "snapshot version the artifact-chat turn is based on"
30245
- ).option("--message <text>", "message text to send").option(
30246
- "--answer <key=value>",
30247
- "answer one HITL question; repeat for multiple answers",
30248
- collectAnswer,
30249
- []
30250
- ).option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function action(processId, options) {
30251
- const answers = parseAnswers(options.answer ?? []);
30252
- if (options.message === void 0 && answers === void 0) {
30253
- throw new CliError("Pass --message, at least one --answer, or both.");
30254
- }
30255
- if (answers !== void 0 && options.conversationId === void 0) {
30256
- throw new CliError("--answer requires --conversation-id.");
30257
- }
30258
- const body = {
30259
- conversation_id: options.conversationId ?? null,
30260
- snapshot_kind: options.snapshotKind,
30261
- baseline_snapshot_id: options.baselineSnapshotId
30262
- };
30263
- if (options.message !== void 0) {
30264
- body.content = options.message;
30265
- }
30266
- if (answers !== void 0) {
30267
- body.answers = answers;
30268
- }
30269
- const { apiKey, apiBaseUrl } = await requireAuthenticatedConfig(this);
30270
- const raw = await httpRequest({
30271
- method: "POST",
30272
- path: `/v2/clarity-v2/processes/${encodeURIComponent(processId)}/artifact-chat/messages`,
30273
- apiKey,
30274
- apiBaseUrl,
30275
- body
30276
- });
30277
- if (options.json) {
30278
- printJson(raw);
30279
- return;
30280
- }
30281
- const parsed = sendArtifactChatMessageResponseSchema.safeParse(raw);
30282
- if (!parsed.success) {
30283
- throw new CliError(
30284
- `Unexpected response from the API: ${parsed.error.message}`
30285
- );
30286
- }
30287
- renderArtifactChatTurn(parsed.data);
30288
- }, "action"));
30289
- }
30290
- __name(registerClaritySendArtifactChatMessage, "registerClaritySendArtifactChatMessage");
30291
- function registerClarityDecideArtifactChatPatch(clarity) {
30292
- clarity.command("decide-artifact-chat-patch <process-id> <message-id>").description("Accept or decline an artifact-chat patch proposal").option("--accept", "accept the patch proposal").option("--decline", "decline the patch proposal").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function action(processId, messageId, options) {
30293
- if (options.accept === options.decline) {
30294
- throw new CliError("Pass exactly one of --accept or --decline.");
30295
- }
30296
- const { apiKey, apiBaseUrl } = await requireAuthenticatedConfig(this);
30297
- const raw = await httpRequest({
30298
- method: "PUT",
30299
- path: `/v2/clarity-v2/processes/${encodeURIComponent(processId)}/artifact-chat/messages/${encodeURIComponent(messageId)}`,
30300
- apiKey,
30301
- apiBaseUrl,
30302
- body: { decision: options.accept === true ? "accept" : "decline" }
30303
- });
30304
- if (options.json) {
30305
- printJson(raw);
30306
- return;
30307
- }
30308
- const parsed = updateArtifactChatMessageResponseSchema.safeParse(raw);
30309
- if (!parsed.success) {
30310
- throw new CliError(
30311
- `Unexpected response from the API: ${parsed.error.message}`
30312
- );
30313
- }
30314
- renderArtifactChatTurn(parsed.data);
30315
- }, "action"));
30316
- }
30317
- __name(registerClarityDecideArtifactChatPatch, "registerClarityDecideArtifactChatPatch");
30318
- function registerClarityStopArtifactChatConversation(clarity) {
30319
- clarity.command("artifact-chat-stop <process-id> <conversation-id>").description("Stop an in-flight artifact-chat reply").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function action(rawProcessId, rawConversationId, options) {
30320
- const processId = trimRequired(rawProcessId, "<process-id>");
30321
- const conversationId = trimRequired(
30322
- rawConversationId,
30323
- "<conversation-id>"
30324
- );
30325
- const { apiKey, apiBaseUrl } = await requireAuthenticatedConfig(this);
30326
- const raw = await httpRequest({
30327
- method: "POST",
30328
- path: `/v2/clarity-v2/processes/${encodeURIComponent(processId)}/artifact-chat/conversations/${encodeURIComponent(conversationId)}/stop`,
30329
- apiKey,
30330
- apiBaseUrl,
30331
- body: {}
30332
- });
30333
- const parsed = sendArtifactChatMessageResponseSchema.safeParse(raw);
30334
- if (!parsed.success) {
30335
- throw new CliError(
30336
- `Unexpected response from the API: ${parsed.error.message}`
30337
- );
30338
- }
30339
- if (options.json) {
30340
- printJson(parsed.data);
30341
- return;
30342
- }
30343
- renderArtifactChatTurn(parsed.data);
30344
- }, "action"));
30345
- }
30346
- __name(registerClarityStopArtifactChatConversation, "registerClarityStopArtifactChatConversation");
30347
30214
  function registerClarityDeleteArtifactChatConversation(clarity) {
30348
30215
  clarity.command("artifact-chat-delete <process-id> <conversation-id>").description("Delete an open or working artifact-chat conversation").option("-y, --yes", "skip the confirmation prompt").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function action(rawProcessId, rawConversationId, options) {
30349
30216
  const processId = trimRequired(rawProcessId, "<process-id>");
@@ -30384,43 +30251,6 @@ function parseSnapshotKind(value) {
30384
30251
  return parsed.data;
30385
30252
  }
30386
30253
  __name(parseSnapshotKind, "parseSnapshotKind");
30387
- function collectAnswer(value, previous) {
30388
- return [...previous, value];
30389
- }
30390
- __name(collectAnswer, "collectAnswer");
30391
- function parseAnswers(entries) {
30392
- if (entries.length === 0) {
30393
- return void 0;
30394
- }
30395
- const answers = {};
30396
- for (const entry of entries) {
30397
- const separatorIndex = entry.indexOf("=");
30398
- if (separatorIndex <= 0) {
30399
- throw new CliError("--answer must use key=value format.");
30400
- }
30401
- const key = entry.slice(0, separatorIndex).trim();
30402
- const value = entry.slice(separatorIndex + 1);
30403
- if (key.length === 0) {
30404
- throw new CliError("--answer key cannot be empty.");
30405
- }
30406
- answers[key] = value;
30407
- }
30408
- return answers;
30409
- }
30410
- __name(parseAnswers, "parseAnswers");
30411
- function renderArtifactChatTurn(response) {
30412
- console.log(
30413
- renderKeyValue([
30414
- { label: "Conversation", value: response.conversation.id },
30415
- { label: "Conversation status", value: response.conversation.status },
30416
- { label: "Message", value: response.message.id },
30417
- { label: "Role", value: response.message.role },
30418
- { label: "Kind", value: response.message.kind },
30419
- { label: "Created", value: response.message.created_at }
30420
- ])
30421
- );
30422
- }
30423
- __name(renderArtifactChatTurn, "renderArtifactChatTurn");
30424
30254
  function describeMessageBody(body) {
30425
30255
  switch (body.kind) {
30426
30256
  case "text":
@@ -32838,19 +32668,6 @@ var CLARITY_READ_TOOLS = [
32838
32668
  }
32839
32669
  ];
32840
32670
  var CLARITY_WRITE_TOOLS = [
32841
- {
32842
- name: "stopClarityArtifactChatConversation",
32843
- scope: "v2",
32844
- read_only: false,
32845
- commands: ["duvo clarity artifact-chat-stop"],
32846
- endpoints: [
32847
- {
32848
- method: "POST",
32849
- path: "/v2/clarity-v2/processes/:processId/artifact-chat/conversations/:conversationId/stop"
32850
- }
32851
- ],
32852
- description: "Stop an in-flight artifact-chat reply."
32853
- },
32854
32671
  {
32855
32672
  name: "deleteClarityArtifactChatConversation",
32856
32673
  scope: "v2",
@@ -33340,32 +33157,6 @@ var CLARITY_WRITE_TOOLS = [
33340
33157
  endpoints: [{ method: "DELETE", path: "/v2/clarity/processes/:processId" }],
33341
33158
  description: "Soft-delete a process from normal product views when no capture analysis is still in progress."
33342
33159
  },
33343
- {
33344
- name: "sendClarityArtifactChatMessage",
33345
- scope: "v2",
33346
- read_only: false,
33347
- commands: ["duvo clarity send-artifact-chat-message"],
33348
- endpoints: [
33349
- {
33350
- method: "POST",
33351
- path: "/v2/clarity-v2/processes/:processId/artifact-chat/messages"
33352
- }
33353
- ],
33354
- description: "Send a new artifact-chat message, continue an existing conversation, or answer HITL questions."
33355
- },
33356
- {
33357
- name: "decideClarityArtifactChatPatch",
33358
- scope: "v2",
33359
- read_only: false,
33360
- commands: ["duvo clarity decide-artifact-chat-patch"],
33361
- endpoints: [
33362
- {
33363
- method: "PUT",
33364
- path: "/v2/clarity-v2/processes/:processId/artifact-chat/messages/:messageId"
33365
- }
33366
- ],
33367
- description: "Accept or decline a proposed artifact-chat patch."
33368
- },
33369
33160
  {
33370
33161
  name: "generateClarityProcessSnapshot",
33371
33162
  scope: "v2",
@@ -39277,9 +39068,6 @@ function registerClarity(program) {
39277
39068
  registerClarityAnalyzeConflicts(clarity);
39278
39069
  registerClarityArtifactChatConversations(clarity);
39279
39070
  registerClarityArtifactChatMessages(clarity);
39280
- registerClaritySendArtifactChatMessage(clarity);
39281
- registerClarityDecideArtifactChatPatch(clarity);
39282
- registerClarityStopArtifactChatConversation(clarity);
39283
39071
  registerClarityDeleteArtifactChatConversation(clarity);
39284
39072
  registerClarityGenerateCurrentProcess(clarity);
39285
39073
  registerClarityGenerateMaps(clarity);
@@ -43954,10 +43742,10 @@ function registerProfiles(program) {
43954
43742
  __name(registerProfiles, "registerProfiles");
43955
43743
 
43956
43744
  // src/commands/pulse/answer.ts
43957
- function collectAnswer2(value, previous) {
43745
+ function collectAnswer(value, previous) {
43958
43746
  return [...previous, value];
43959
43747
  }
43960
- __name(collectAnswer2, "collectAnswer");
43748
+ __name(collectAnswer, "collectAnswer");
43961
43749
  function buildAnswers(raw) {
43962
43750
  const answers = {};
43963
43751
  for (const entry of raw) {
@@ -43993,7 +43781,7 @@ function registerPulseAnswer(pulse) {
43993
43781
  ).option(
43994
43782
  "--answer <key=value>",
43995
43783
  "an answer as key=value; repeat for multiple answers",
43996
- collectAnswer2,
43784
+ collectAnswer,
43997
43785
  []
43998
43786
  ).option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function answerAction(id, options) {
43999
43787
  const pulseId = trimRequired(id, "<id>");
@@ -48430,11 +48218,11 @@ function registerRunsMessages(runs) {
48430
48218
  __name(registerRunsMessages, "registerRunsMessages");
48431
48219
 
48432
48220
  // src/commands/runs/respond.ts
48433
- function collectAnswer3(value, previous = []) {
48221
+ function collectAnswer2(value, previous = []) {
48434
48222
  return [...previous, value];
48435
48223
  }
48436
- __name(collectAnswer3, "collectAnswer");
48437
- function parseAnswers2(raw) {
48224
+ __name(collectAnswer2, "collectAnswer");
48225
+ function parseAnswers(raw) {
48438
48226
  const answers = /* @__PURE__ */ Object.create(null);
48439
48227
  for (const entry of raw) {
48440
48228
  const eq = entry.indexOf("=");
@@ -48454,7 +48242,7 @@ function parseAnswers2(raw) {
48454
48242
  }
48455
48243
  return answers;
48456
48244
  }
48457
- __name(parseAnswers2, "parseAnswers");
48245
+ __name(parseAnswers, "parseAnswers");
48458
48246
  function buildBody7(options) {
48459
48247
  const approveSet = options.approve === true;
48460
48248
  const denySet = options.deny === true;
@@ -48474,7 +48262,7 @@ function buildBody7(options) {
48474
48262
  return { approved: false };
48475
48263
  }
48476
48264
  if (answers.length > 0) {
48477
- return { answers: parseAnswers2(answers) };
48265
+ return { answers: parseAnswers(answers) };
48478
48266
  }
48479
48267
  throw new CliError(
48480
48268
  "Provide --approve, --deny, or at least one --answer question=answer."
@@ -48509,7 +48297,7 @@ function registerRunsRespond(runs) {
48509
48297
  ).option("--approve", "approve an approval-type request").option("--deny", "deny an approval-type request").option(
48510
48298
  "--answer <question=answer>",
48511
48299
  "answer a question-type request (repeatable)",
48512
- collectAnswer3,
48300
+ collectAnswer2,
48513
48301
  []
48514
48302
  ).option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function respondAction(runId, requestIdArg, options) {
48515
48303
  const body = buildBody7(options);
@@ -56146,7 +55934,7 @@ var FEATURE_FLAG_CATALOGUE = {
56146
55934
  defaultValue: false,
56147
55935
  stage: "dev",
56148
55936
  stageEnrollmentExclusion: "An organization policy that deletes data, turned on per organization by an owner's decision.",
56149
- description: "Organization data retention (ENT-344, ENT-167). Read at the ORGANIZATION tier only: team and user overrides are ignored, because retention belongs to the organization. When on, organization Executives, Owners and Admins see the Data retention section in Organization settings (Executives and Owners can change the window; default 60 days, minimum 1 day), and the retention job deletes that organization's expired data, starting with paused E2B sandboxes. When off (default), the section and its /organizations/:orgId/settings/data-retention routes return 404 and nothing is deleted for the organization. Rollout flag: remove at global release."
55937
+ description: "Organization data retention (ENT-344, ENT-167). Read at the ORGANIZATION tier only: team and user overrides are ignored, because retention belongs to the organization. When on, organization Executives, Owners and Admins see the Data retention section in Organization settings (Executives and Owners can change the window; default 60 days, minimum 1 day), and the retention job deletes that organization's expired data, starting with paused E2B sandboxes. In an environment where `purge-browser-contexts` is in the live cron list, that includes an Agent's saved website logins (Browserbase contexts, Browser Use profiles) unused for the window, and a deleted Agent's a day after their last use (ENT-795). When off (default), the section and its /organizations/:orgId/settings/data-retention routes return 404 and nothing is deleted for the organization. Rollout flag: remove at global release."
56150
55938
  },
56151
55939
  ANNOUNCEMENTS: {
56152
55940
  key: "announcements",
@@ -56164,13 +55952,13 @@ var FEATURE_FLAG_CATALOGUE = {
56164
55952
  key: "automations",
56165
55953
  defaultValue: false,
56166
55954
  stage: "alpha",
56167
- description: "Exposes the Automations workspace migration entry point, together with AUTOMATION_MIGRATION \u2014 the entry point needs both flags on, and this flag alone no longer shows it. When both are on, team Administrators and Owners see a 'Migrate to automations' action on the Agents page that sorts the team's standalone agents and queues into Automations (one per connected closure, via the same closure logic as the cross-team move) and stamps team.automations_migrated_at. Which conversion runs is decided by AUTOMATION_VERSIONING, not by this flag: off (the default) writes automation containers and identity FKs only, so builds, triggers and schedules keep their existing lifecycle; on, the same entry point converts straight to revision semantics and additionally stamps team.automation_revisions_migrated_at. Neither conversion can be reversed: nothing clears team.automations_migrated_at. Revision semantics are also reachable for an already-converted team through the separate phase-2 cutover. The workspace stamp \u2014 not this flag \u2014 drives the Automations sidebar entry, and a team carrying it keeps Automations access whatever this flag says: the team gate `isAutomationsEnabledForTeam`, and Modules through it, treat a migrated team as enabled, because its agents live inside automations and nothing undoes the migration, so this flag only decides access for teams that have not migrated. The one exception is the `policy-apply` chat preset, which still reads this flag directly. The migration gate resolves it for the caller, user-level overrides included, as the button does. Off-by-default for staged, per-team rollout."
55955
+ description: "Exposes the Automations workspace migration entry point, together with AUTOMATION_MIGRATION \u2014 the entry point needs both flags on, and this flag alone no longer shows it. When both are on, team Administrators and Owners see a 'Migrate to automations' action on the Agents page that sorts the team's standalone agents and queues into Automations (one per connected closure, via the same closure logic as the cross-team move) and stamps team.automations_migrated_at. Which conversion runs is decided by AUTOMATION_VERSIONING, not by this flag: off (the default) writes automation containers and identity FKs only, so builds, triggers and schedules keep their existing lifecycle; on, the same entry point converts straight to revision semantics and additionally stamps team.automation_revisions_migrated_at. Neither conversion can be reversed: nothing clears team.automations_migrated_at. Revision semantics are also reachable for an already-converted team through the separate phase-2 cutover. The workspace stamp \u2014 not this flag \u2014 drives the Automations sidebar entry, and a team carrying it keeps Automations access whatever this flag says: the team gate `isAutomationsEnabledForTeam`, and Modules through it, treat a migrated team as enabled, because its agents live inside automations and nothing undoes the migration, so this flag only decides access for teams that have not migrated. The `policy-apply` chat preset follows the same team gate. Outside that gate, the migration entry point still reads this flag: it resolves it for the caller, user-level overrides included, as the button does. Off-by-default for staged, per-team rollout."
56168
55956
  },
56169
55957
  CRON_FREE_PRO_AUTOMATIONS: {
56170
55958
  key: "cron_free_pro_automations",
56171
55959
  defaultValue: false,
56172
55960
  stage: "temporary",
56173
- description: "Kill switch for the background conversion of Free and Pro teams to the lite Automations workspace. When on, the `cron-automation-auto-migration` Cloud Scheduler job (POST /v1/cron/automation-auto-migration, every 5 minutes) picks a small batch of teams with an active or trialing subscription on the Free or Pro plan that are not yet on the workspace (org-managed teams \u2014 enterprise billing, following or inheriting organization grants, or holding a sales_override grant \u2014 are left to the manual conversion), and runs the same lite conversion as POST /automations/migrate for each: agents and queues are sorted into automation containers and team.automations_migrated_at is stamped, while builds, triggers and schedules keep their legacy lifecycle. It never converts to revision semantics, and the conversion cannot be reversed. When off (the default), every tick is a no-op. The job itself ships paused in Terraform, so nothing ticks until it is unpaused there as well \u2014 this flag alone converts nothing. Resolved globally only \u2014 the cron has no user, team or organization to resolve against, so only the global override counts; a team, organization or user override has no effect. Independent of AUTOMATIONS and AUTOMATION_MIGRATION, which gate the manual entry point."
55961
+ description: "Kill switch for the background conversion of Free and Pro teams to the lite Automations workspace. When on, the `cron-automation-auto-migration` Cloud Scheduler job (POST /v1/cron/automation-auto-migration, every 5 minutes) picks a small batch of teams with an active or trialing subscription on the Free or Pro plan that are not yet on the workspace (org-managed teams \u2014 enterprise billing, following or inheriting organization grants, or holding a sales_override grant \u2014 are left to the manual conversion), and runs the same lite conversion as POST /automations/migrate for each: agents and queues are sorted into automation containers and team.automations_migrated_at is stamped, while builds, triggers and schedules keep their legacy lifecycle. It never converts to revision semantics, and the conversion cannot be reversed. When off (the default), every tick is a no-op. The job runs unpaused in Terraform in staging and production, so turning on the global override starts conversions on the next tick. Resolved globally only \u2014 the cron has no user, team or organization to resolve against, so only the global override counts; a team, organization or user override has no effect. Independent of AUTOMATIONS and AUTOMATION_MIGRATION, which gate the manual entry point."
56174
55962
  },
56175
55963
  AUTOMATION_HISTORY_BACKFILL_WORKER: {
56176
55964
  key: "automation_history_backfill_worker",
@@ -56290,29 +56078,11 @@ var FEATURE_FLAG_CATALOGUE = {
56290
56078
  stage: "dev",
56291
56079
  description: "Rollout gate for the PDF-only document path of teams that scrub PII. When on, such a team uploads documents through the backend: other formats are refused with 400, a PDF is kept only as scrubbed page images under CLARITY_PDF_PAGE_IMAGES (its kill switch), and a raw file that still reaches the bucket through a signed URL is deleted rather than kept. When off, the team's documents upload through a signed URL and are stored and transcribed raw, as before the path existed. Off by default. Resolved for the owning team on every upload, upload completion and queued PDF transcription, so turning it on also refuses a raw PDF already queued. A failed lookup fails the request rather than taking the raw path. Teams that do not scrub PII never read it. Organization documents are not covered."
56292
56080
  },
56293
- CLARITY_PROCESS_GUIDANCE_AUTHORITATIVE: {
56294
- key: "clarity_process_guidance_authoritative",
56295
- defaultValue: false,
56296
- stage: "private_beta",
56297
- description: "Makes the Clarity interview agent follow the process owner's guidance thoroughly instead of treating it as low-priority context it must not act on. The guidance is rendered as owner direction for how to run the interview - which areas to prioritize, how to order them, which questions to push on. It still cannot override what the interviewee says or what the screen shows, and it cannot relax the interview BOUNDARIES (never request credentials, personal data, or customer names). Affects the live voice/screenshare interview prompt only; the current-process and transformation-proposal generation pipelines keep the soft-steer framing. Onboarding interviews are unaffected: their guidance is Duvo's own and is always followed."
56298
- },
56299
- CLARITY_INTERVIEW_CONVERSATIONAL_PROMPT: {
56300
- key: "clarity_interview_conversational_prompt",
56301
- defaultValue: false,
56302
- stage: "alpha",
56303
- description: "Gives default-profile Clarity interviews, voice and screenshare, the short conversational prompt (AUT-1409, #12190) instead of the eight coverage areas: a plain greeting that eases in with their job, one named recent case told from its start, where their part starts and ends confirmed from that story, weekly volume and time right after it, three to five main steps taken one at a time and each probed for systems, fields read and filled in, buttons and actions, re-entry, decisions and branches (what decides each 'sometimes' or 'it depends'), exceptions, rework, frequency and hands-on time, one follow-up for vague answers, a pacing rule that shortens the rest when they are short on time, their own view, and a close that reads the numbers and branches back. The screenshare director starts from the matching checklist. Team and organization interviews keep their landscape prompt but gain the blocking close and a landscape director that tracks areas, high-level processes, owners and dependencies. The director's map is also the notes it shares with the voice model: after each director pass the client sends the voice model a short private brief rendered from the map (settled topics, then open items with what is known and the missing fact), and the director keeps each step open until its actor, system, fields, action, decision rule, exceptions and handoff are known. On a process set to build on what's known, the director reads each document, recording and session in the background when it settles, reads everything again when one is removed, and a new full interview starts from those notes: it opens by saying it has some context, still has the person walk through a recent case for their part, skips questions the notes already answer, raises the open areas, and asks each person for their own workload, pain points and headcount, and the close waits for that walkthrough; the start screen catches up on unread material before the Start button is enabled. Processes set to start fresh each time and targeted follow-ups only gain the brief. A module's process is not affected. Onboarding and module-setup interviews with authoritative guidance keep their own prompts. Resolved for the interviewee (user, then team); the background reading is resolved for the person who added the capture. Off by default: the prompt and the director checklist are unchanged."
56304
- },
56305
56081
  CLARITY_INTERVIEW_EVALS: {
56306
56082
  key: "clarity_interview_evals",
56307
56083
  defaultValue: false,
56308
56084
  stage: "dev",
56309
- description: "Grades Clarity interviews against the topics of the checklist each one ran on: the default coverage areas or the conversational prompt's topics with clarity_interview_conversational_prompt. Each capture records its checklist when the interview starts; a capture with no recorded checklist, such as one started before checklists were recorded, is graded on the coverage areas. When a voice or screenshare interview settles as usable, one model call reads its transcript and stores each topic as covered, low or not asked, with a short answer, on the capture. Targeted follow-up sessions and meetings are not graded, and grading calls are kept out of the Anthropic call capture because a transcript can quote a credential. The landscape People view then shows a coverage ring on each person's process row, a hover card listing the topics, and a summary combining that person's captures. Grading is resolved for the process's team; the ring, card and summary for the entry team and its organization, alongside clarity_landscape_people_view. Off by default: nothing is graded, the roster omits topic coverage and the summary read answers 404."
56310
- },
56311
- CLARITY_REALTIME_SDP_PROXY: {
56312
- key: "clarity_realtime_sdp_proxy",
56313
- defaultValue: false,
56314
- stage: "private_beta",
56315
- description: "Superseded by clarity_sdp_proxy_wss_fallback, still honoured on its own so teams already enabled keep working: arms the WebSocket rung of the Clarity WebRTC-first transport ladder (clarity_wss_first_transport off). Interview signaling always runs through the Duvo SDP proxy regardless of this flag. Retirement staged in #10298."
56085
+ description: "Grades Clarity interviews against the topics of the checklist each one ran on: the conversational prompt's topics for default interviews, or the coverage areas for historical captures and module setup interviews. Each capture records its checklist when the interview starts; a capture with no recorded checklist, such as one started before checklists were recorded, is graded on the coverage areas. When a voice or screenshare interview settles as usable, one model call reads its transcript and stores each topic as covered, low or not asked, with a short answer, on the capture. Targeted follow-up sessions and meetings are not graded, and grading calls are kept out of the Anthropic call capture because a transcript can quote a credential. The landscape People view then shows a coverage ring on each person's process row, a hover card listing the topics, and a summary combining that person's captures. Grading is resolved for the process's team; the ring, card and summary for the entry team and its organization, alongside clarity_landscape_people_view. Off by default: nothing is graded, the roster omits topic coverage and the summary read answers 404."
56316
56086
  },
56317
56087
  CLARITY_INTERVIEW_UPLOAD_PROXY_FALLBACK: {
56318
56088
  key: "clarity_interview_upload_proxy_fallback",
@@ -56326,12 +56096,6 @@ var FEATURE_FLAG_CATALOGUE = {
56326
56096
  stage: "dev",
56327
56097
  description: "Adds an 'Interview to take' choice to the Clarity process invite form: Interview (today's behaviour) or No interview, which gives the person Clarity Member access to the process without asking them to record. The choice is stored per person per process as clarity_process_person.interview_requested, the process People dialog marks people who were not asked, and its row menu can request the interview later, which flips the flag to true and emails them an interview request (the clarity-interview-requested Loops template; the invitation email is resent while LOOPS_CLARITY_INTERVIEW_REQUESTED_TRANSACTION_ID is unset). People not asked for an interview land on the process page instead of the interview recorder when they accept or open their invitation. When off (default), the form invites to an interview as before and the create-invite route rejects interviewRequested: false; people already invited without an interview keep that state. It also shows each person, in unified Clarity, the processes where someone else asked them for an interview (badge, quick filter, detail panel request), from the existing roster data."
56328
56098
  },
56329
- CLARITY_INTERVIEW_WS_FALLBACK: {
56330
- key: "clarity_interview_ws_fallback",
56331
- defaultValue: false,
56332
- stage: "temporary",
56333
- description: "Superseded by clarity_sdp_proxy_wss_fallback, still honoured on its own: arms the WebSocket rung of the Clarity WebRTC-first transport ladder (clarity_wss_first_transport off), reached after direct and relayed WebRTC both lost their media path. Retirement staged in #10298."
56334
- },
56335
56099
  CLARITY_SDP_PROXY_WSS_FALLBACK: {
56336
56100
  key: "clarity_sdp_proxy_wss_fallback",
56337
56101
  defaultValue: true,
@@ -56350,12 +56114,6 @@ var FEATURE_FLAG_CATALOGUE = {
56350
56114
  stage: "dev",
56351
56115
  description: "Selects the Clarity voice transport ladder. Off (default): direct WebRTC, then relay-only WebRTC through the TURN relay, then the OpenAI WebSocket (that last rung armed by clarity_sdp_proxy_wss_fallback). On: the OpenAI WebSocket first, then direct WebRTC, then relay-only WebRTC. Every WebRTC rung signals through the Duvo SDP proxy. Flip per team, org or user to move a customer between the two orders in minutes, without a release; the WebSocket uplink measured about a second slower per turn than WebRTC in September 2026 (DUVO-11711), which is why WebRTC leads by default."
56352
56116
  },
56353
- CLARITY_MIC_AUDIO_WORKLET: {
56354
- key: "clarity_mic_audio_worklet",
56355
- defaultValue: true,
56356
- stage: "temporary",
56357
- description: "Kill switch for capturing the Clarity microphone uplink in an AudioWorklet (default on). The previous ScriptProcessorNode pump encoded PCM on the main thread, where screenshare frame sampling, MediaRecorder and React rendering share the budget: measured on prod, screenshare captures lost ~5.3% of the interviewee's speech and 27% of ten-second windows lost audio, against essentially none on voice-only captures (DUVO-11670). An explicit false restores that main-thread pump exactly as prod ran it, in minutes and without a revert release \u2014 the same mitigation shape INC-150 showed this media path needs. Independently, a session whose worklet module cannot be fetched falls back to the same pump on its own. A session that falls back logs a console warning; nothing measures uplink coverage per pump since the clarity_v2_mic_pump_health event left with Amplitude, so add a Datadog RUM action first if the removal needs data. Remove the flag and the main-thread pump one release after the worklet survives in prod."
56358
- },
56359
56117
  CLARITY_MISSING_INFO_QUESTIONS: {
56360
56118
  key: "clarity_missing_info_questions",
56361
56119
  defaultValue: false,
@@ -56374,12 +56132,6 @@ var FEATURE_FLAG_CATALOGUE = {
56374
56132
  stage: "temporary",
56375
56133
  description: "Per-team diagnostic that reorders the Clarity transport ladder to relay-first: WebRTC media through the authenticated Duvo coturn relay (turn.prd.duvo.ai) from the FIRST attempt, falling forward to the OpenAI WebSocket transport on a relay media failure, whatever clarity_wss_first_transport says. The ordinary ladders reach the relay only after a direct rung fails, so this flag exists for teams whose networks are known to need the relay immediately. Requires CLARITY_TURN_RELAY_URL and CLARITY_TURN_SHARED_SECRET, and fails the interview start when enabled without them. Keep per-team: the relay is a single capacity-limited VM (coturn total-quota caps concurrent sessions), and forcing it moves ALL of a team's media there rather than only socket-failed sessions."
56376
56134
  },
56377
- CLARITY_VOICE_GOOGLE: {
56378
- key: "clarity_voice_google",
56379
- defaultValue: false,
56380
- stage: "dev",
56381
- description: "Routes Clarity interviews (voice-only AND voice+screenshare) to the Google Gemini Live conversational provider. When off, interviews use OpenAI Realtime."
56382
- },
56383
56135
  CLAUDE_OPUS: {
56384
56136
  key: "claude_opus",
56385
56137
  defaultValue: true,
@@ -61165,6 +60917,7 @@ var clarityInterviewLanguageSchema2 = clarityInterviewLanguageValueSchema2.defau
61165
60917
  var clarityInterviewLanguageResponseSchema2 = extensibleEnum2(
61166
60918
  CLARITY_INTERVIEW_LANGUAGES2
61167
60919
  ).default("en");
60920
+ var DEFAULT_CLARITY_LANGUAGE = "en";
61168
60921
  var CLARITY_BASE_LANGUAGE_DISPLAY_NAMES2 = {
61169
60922
  en: "English (United States)",
61170
60923
  "en-GB": "English (United Kingdom)",
@@ -65963,42 +65716,16 @@ var rotateInterviewVoiceTokenResponseSchema2 = z432.object({
65963
65716
  providerConfig: voiceProviderConfigSchema2
65964
65717
  });
65965
65718
  var connectionTestTokenResponseSchema2 = z432.object({
65966
- clientSecretToken: z432.string().min(1),
65967
- /**
65968
- * Gemini Live relay token and relay URL, present when the team's interviews
65969
- * run on Gemini (`clarity_voice_google`), so the diagnostic probes that socket.
65970
- */
65971
- googleLiveToken: z432.string().min(1).optional(),
65972
- googleLiveRelayUrl: z432.string().min(1).optional(),
65973
- rtcUrl: z432.string(),
65974
- /**
65975
- * WSS endpoint resolved from the backend's OPENAI_BASE_URL — the base the
65976
- * secret was minted against. The browser's NEXT_PUBLIC_OPENAI_BASE_URL is
65977
- * baked at build time and can lag it, so the probe must not derive its own.
65978
- */
65979
- webSocketUrl: z432.string().min(1),
65980
- /**
65981
- * Realtime model the secret was minted for. The WebSocket probe must name the
65982
- * same model in its URL (`wss://.../v1/realtime?model=...`) or OpenAI rejects
65983
- * the session, which would misread as a network block.
65984
- */
65985
- model: z432.string().min(1),
65986
- expiresAt: z432.string(),
65987
- /**
65988
- * Present when the caller's team is pinned to the TURN relay (the spike
65989
- * flag). The diagnostic must carry it for the same reason it resolves
65990
- * `rtcUrl` through the proxy flag: a relay-only customer whose media never
65991
- * leaves the relay would otherwise be told the direct path is broken, which
65992
- * is true and useless.
65993
- */
65719
+ /** Gemini Live relay token and relay URL for probing the voice socket. */
65720
+ googleLiveToken: z432.string().min(1),
65721
+ googleLiveRelayUrl: z432.string().min(1),
65722
+ /** Legacy OpenAI Realtime fields kept optional for rolling-deploy compatibility. */
65723
+ clientSecretToken: z432.string().optional(),
65724
+ rtcUrl: z432.string().optional(),
65725
+ webSocketUrl: z432.string().optional(),
65726
+ model: z432.string().optional(),
65727
+ expiresAt: z432.string().optional(),
65994
65728
  relayOnlyRtcConfig: relayOnlyRtcConfigSchema2.optional(),
65995
- /**
65996
- * The relay configuration the interview's relay rung mints on demand for
65997
- * every team: present whenever the deployment has a relay, whatever the
65998
- * team's flags. The diagnostic's TURN probe dials it, so the verdict can
65999
- * see the rung the interview would climb to when direct media is blocked.
66000
- * Absent on a deployment without a relay, where that rung does not exist.
66001
- */
66002
65729
  turnRelayRtcConfig: relayOnlyRtcConfigSchema2.optional()
66003
65730
  });
66004
65731
  var WEBSOCKET_FALLBACK_MINT_REASON2 = "websocket-fallback";
@@ -67506,17 +67233,10 @@ function readClarityExportFailureReason(event) {
67506
67233
  }
67507
67234
  __name(readClarityExportFailureReason, "readClarityExportFailureReason");
67508
67235
  __name3(readClarityExportFailureReason, "readClarityExportFailureReason");
67509
- function shouldInjectLanguage(language) {
67510
- return Boolean(language) && language !== "en";
67511
- }
67512
- __name(shouldInjectLanguage, "shouldInjectLanguage");
67513
- __name3(shouldInjectLanguage, "shouldInjectLanguage");
67514
67236
  function buildClarityProcessLanguageBlock(language) {
67515
- if (!shouldInjectLanguage(language)) {
67516
- return "";
67517
- }
67518
- const name = getClarityLanguageDisplayName2(language);
67519
- const swissGermanSpellingNote = language === "de-CH" ? ' Use Swiss Standard German spelling: write "ss" wherever German from Germany would use "\xDF".' : "";
67237
+ const effectiveLanguage = language ?? DEFAULT_CLARITY_LANGUAGE;
67238
+ const name = getClarityLanguageDisplayName2(effectiveLanguage);
67239
+ const swissGermanSpellingNote = effectiveLanguage === "de-CH" ? ' Use Swiss Standard German spelling: write "ss" wherever German from Germany would use "\xDF".' : "";
67520
67240
  return `# OUTPUT LANGUAGE
67521
67241
  Write every natural-language value in the step graph (step titles, descriptions, role and system names, labels, notes, and any narrative text) in ${name}.${swissGermanSpellingNote} Keep source excerpts, evidence quotes, and transcript excerpts verbatim in their original language. Keep the JSON structure, field keys, enum values, step ids, and integration, tool, or system identifiers exactly as defined; do not translate them. Do not translate proper nouns or product names.`;
67522
67242
  }
@@ -80360,6 +80080,12 @@ var casesListResponseSchema2 = z1242.object({
80360
80080
  limit: z1242.int(),
80361
80081
  offset: z1242.int()
80362
80082
  });
80083
+ var CASE_LIST_SELECTABLE_FIELDS2 = caseQueueItemSchema2.keyof().exclude(["outcome_source"]).options;
80084
+ var CASE_LIST_FIELDS_DESCRIPTION2 = "Return only these keys on each case, for a light read such as a dashboard polling for changes. `id` is always returned. Leaving out `data`, `json_data` and `search_match_data_snippet` keeps the case payload out of the response and skips reading it for the returned rows; a search or json_data filter still reads it to match. A key the case does not carry in this read is left out, such as `blocker` without include_blockers or `search_match_data_snippet` without a search match. An unknown key is rejected. Omit to return every key.";
80085
+ var caseQueueItemSparseSchema2 = caseQueueItemSchema2.partial().required({ id: true });
80086
+ var casesListSparseResponseSchema2 = casesListResponseSchema2.extend({
80087
+ cases: z1242.array(caseQueueItemSparseSchema2)
80088
+ });
80363
80089
  var activeCasesResponseSchema2 = z1242.object({
80364
80090
  cases: z1242.array(caseQueueItemSchema2),
80365
80091
  total: z1242.number()
@@ -83785,12 +83511,33 @@ function resolveFeatureFlag(flagKey, rows, subject) {
83785
83511
  }
83786
83512
  __name(resolveFeatureFlag, "resolveFeatureFlag");
83787
83513
  __name3(resolveFeatureFlag, "resolveFeatureFlag");
83514
+ var PRODUCT_NEWS_MEDIA_KINDS = ["video", "image"];
83515
+ var productNewsUpdateSchema = z147.object({
83516
+ id: z147.string(),
83517
+ title: z147.string(),
83518
+ description: z147.string(),
83519
+ /** Null when the update has no video or image: it shows as text alone. */
83520
+ media: z147.object({
83521
+ kind: z147.enum(PRODUCT_NEWS_MEDIA_KINDS),
83522
+ url: z147.string(),
83523
+ /** The still shown before a video plays. Null for an image, or when none. */
83524
+ posterUrl: z147.string().nullable(),
83525
+ alt: z147.string()
83526
+ }).nullable()
83527
+ });
83788
83528
  var productNewsDropListResponseSchema = z147.object({
83789
83529
  drops: z147.array(
83790
83530
  z147.object({
83791
83531
  id: z147.string(),
83792
83532
  updateIds: z147.array(z147.string()),
83793
- releasedAt: z147.iso.datetime().nullable()
83533
+ releasedAt: z147.iso.datetime().nullable(),
83534
+ /** The drop's name from the admin panel. Null or absent when it has none. */
83535
+ name: z147.string().nullable().optional(),
83536
+ /**
83537
+ * The drop's content, written in the admin panel. Absent only for the
83538
+ * legacy release, whose content the frontend holds and `updateIds` names.
83539
+ */
83540
+ updates: z147.array(productNewsUpdateSchema).optional()
83794
83541
  })
83795
83542
  )
83796
83543
  });
@@ -86228,7 +85975,8 @@ var casesListRequestBodySchema2 = z168.object({
86228
85975
  count_only: z168.boolean().optional().describe(
86229
85976
  "Skip Case row selection, enrichment, and transformation. The normal response shape contains an empty cases array and the matching total."
86230
85977
  ),
86231
- include_blockers: z168.boolean().optional().describe(CASE_INCLUDE_BLOCKERS_DESCRIPTION2)
85978
+ include_blockers: z168.boolean().optional().describe(CASE_INCLUDE_BLOCKERS_DESCRIPTION2),
85979
+ fields: z168.array(z168.enum(CASE_LIST_SELECTABLE_FIELDS2)).min(1).optional().describe(CASE_LIST_FIELDS_DESCRIPTION2)
86232
85980
  });
86233
85981
  function toBase642(input) {
86234
85982
  if (typeof btoa === "function") {
@@ -87978,7 +87726,7 @@ __name(isStandaloneBinary, "isStandaloneBinary");
87978
87726
  import { createRequire } from "node:module";
87979
87727
  function getPackageMeta() {
87980
87728
  if (true) {
87981
- return { name: "@duvoai/cli", version: "1.112.1" };
87729
+ return { name: "@duvoai/cli", version: "1.112.2" };
87982
87730
  }
87983
87731
  const require2 = createRequire(import.meta.url);
87984
87732
  const raw = require2("../../package.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvoai/cli",
3
- "version": "1.112.1",
3
+ "version": "1.112.2",
4
4
  "description": "Command-line interface for the Duvo public API",
5
5
  "bin": {
6
6
  "duvo": "./dist/bin/duvo.js"