@duvoai/cli 1.112.3 → 1.112.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -401,7 +401,6 @@ Default output is summary-first and compact. JSON output also includes a compact
401
401
  | `duvo skills assignments <skill-id>` | List agents whose live build references a skill |
402
402
  | `duvo skills ask-duvo <id> --enable\|--disable` | Make a skill available in Ask Duvo, or take it back off (new chats only) |
403
403
  | `duvo skills download <id>` | Download a custom skill as a ZIP |
404
- | `duvo skills generate --prompt <text>` | Generate a SKILL.md from a prompt |
405
404
  | `duvo team current` | Get the team scoped to your credentials |
406
405
  | `duvo team get [--team <id>]` | Get a team by ID (defaults to the team scoped to your credentials) |
407
406
  | `duvo team members [--team <id>]` | List members of a team (defaults to the team scoped to your credentials) |
package/dist/bin/duvo.js CHANGED
@@ -12624,6 +12624,11 @@ var AGENT_RUN_STATUSES = [
12624
12624
  "expired"
12625
12625
  // Waited for a human longer than the organization's data retention window
12626
12626
  ];
12627
+ var HUMAN_REQUEST_RESUME_IN_FLIGHT_STATES = [
12628
+ "resuming",
12629
+ "uncertain"
12630
+ ];
12631
+ var runResumePhaseSchema = z47.enum(HUMAN_REQUEST_RESUME_IN_FLIGHT_STATES).nullable();
12627
12632
  var agentRunStatusSchema = z47.enum(AGENT_RUN_STATUSES);
12628
12633
  var AGENT_RUN_SOURCES = [
12629
12634
  "app",
@@ -12725,6 +12730,12 @@ var agentRunSchema = z47.object({
12725
12730
  * files remain. Set by the list endpoint; the Run keeps its status.
12726
12731
  */
12727
12732
  sandbox_expired_at: z47.coerce.date().nullable().optional(),
12733
+ /**
12734
+ * While the run is `running` on an answer that has not reached the Agent
12735
+ * yet: `resuming` while it is being sent, `uncertain` while we check that
12736
+ * it arrived. Null otherwise. Absent from a backend that predates it.
12737
+ */
12738
+ resume_phase: runResumePhaseSchema.optional(),
12728
12739
  ...runScopeFields
12729
12740
  });
12730
12741
  var agentRunsListResponseSchema = z47.object({
@@ -12830,6 +12841,14 @@ var agentRunDetailSchemaData = z47.object({
12830
12841
  * (ENT-422). Their cards must not read as answered.
12831
12842
  */
12832
12843
  expired_approval_request_ids: z47.array(z47.guid()).optional(),
12844
+ /** As on {@link agentRunSchema}. */
12845
+ resume_phase: runResumePhaseSchema.optional(),
12846
+ /**
12847
+ * The run's `request_approval` requests closed with `pause_ended`: the
12848
+ * sandbox stopped waiting on them before an answer reached the Agent. Their
12849
+ * cards show as closed without an answer.
12850
+ */
12851
+ pause_ended_approval_request_ids: z47.array(z47.guid()).optional(),
12833
12852
  ...runScopeFields
12834
12853
  });
12835
12854
  var agentRunDetailSchema = z47.object({
@@ -16096,7 +16115,13 @@ var jobListItemSchema = z66.object({
16096
16115
  * files remain. Optional because duvo-cli parses this response against any
16097
16116
  * backend.
16098
16117
  */
16099
- sandbox_expired_at: z66.coerce.date().nullable().optional()
16118
+ sandbox_expired_at: z66.coerce.date().nullable().optional(),
16119
+ resuming: z66.boolean().optional().describe(
16120
+ "True while the run is `running` on an answer to its question that has not been confirmed to reach the Agent yet. `status` stays `running` throughout. Absent from older servers; read a missing value as false."
16121
+ ),
16122
+ resume_phase: runResumePhaseSchema.optional().describe(
16123
+ "While `resuming` is true: `resuming` while the answer is being sent to the Agent, `uncertain` while Duvo checks that it arrived. Null otherwise. Absent from older servers."
16124
+ )
16100
16125
  });
16101
16126
  var jobListResponseSchema = z66.object({
16102
16127
  data: z66.array(jobListItemSchema),
@@ -16777,13 +16802,6 @@ var deleteSkillResponseSchema = z76.object({
16777
16802
  success: z76.boolean(),
16778
16803
  message: z76.string()
16779
16804
  });
16780
- var generateSkillBodySchema = z76.object({
16781
- prompt: z76.string().min(1).max(2e3),
16782
- existingContent: z76.string().max(2e4).optional()
16783
- });
16784
- var generateSkillResponseSchema = z76.object({
16785
- content: z76.string()
16786
- });
16787
16805
  var skillAssignmentSchema = z76.object({
16788
16806
  id: z76.string(),
16789
16807
  name: z76.string()
@@ -32669,19 +32687,6 @@ var CLARITY_WRITE_TOOLS = [
32669
32687
  ],
32670
32688
  description: "Generate operating-model portfolio intelligence for a team."
32671
32689
  },
32672
- {
32673
- name: "upgradeClarityProcess",
32674
- scope: "v1+v2",
32675
- read_only: false,
32676
- commands: ["duvo clarity upgrade"],
32677
- endpoints: [
32678
- {
32679
- method: "POST",
32680
- path: "/v2/clarity-v2/processes/:processId/upgrade"
32681
- }
32682
- ],
32683
- description: "Upgrade an eligible legacy Clarity process to v2."
32684
- },
32685
32690
  {
32686
32691
  name: "inviteClarityOrganizationNotetaker",
32687
32692
  scope: "v1+v2",
@@ -32976,7 +32981,7 @@ var CLARITY_WRITE_TOOLS = [
32976
32981
  endpoints: [
32977
32982
  { method: "POST", path: "/v2/teams/:teamId/clarity/processes" }
32978
32983
  ],
32979
- description: "Create a new Clarity v2 process for the current team (Builder+)."
32984
+ description: "Create a new Clarity v2 process for the current team (Builder and above by default)."
32980
32985
  },
32981
32986
  {
32982
32987
  name: "updateClarityProcess",
@@ -35098,7 +35103,6 @@ var exportResponseSchema = z102.object({
35098
35103
  var portfolioGenerationResponseSchema = z102.object({
35099
35104
  status: z102.literal("generating")
35100
35105
  });
35101
- var upgradeResponseSchema = z102.object({ id: z102.guid() });
35102
35106
  var EXPORT_COLUMNS = [
35103
35107
  {
35104
35108
  header: "EXPORT",
@@ -35119,7 +35123,6 @@ function registerClarityLibraryWorkflows(clarity) {
35119
35123
  registerInviteLinks(clarity);
35120
35124
  registerExports(clarity);
35121
35125
  registerPortfolio(clarity);
35122
- clarity.command("upgrade <process-id>").description("Upgrade a legacy Clarity process to v2").option("--json", "output raw JSON from the API").action(upgradeProcess);
35123
35126
  }
35124
35127
  __name(registerClarityLibraryWorkflows, "registerClarityLibraryWorkflows");
35125
35128
  function registerInviteLinks(clarity) {
@@ -35350,18 +35353,6 @@ async function generatePortfolio(options) {
35350
35353
  renderMutationResult(response, "Portfolio generation started.", options);
35351
35354
  }
35352
35355
  __name(generatePortfolio, "generatePortfolio");
35353
- async function upgradeProcess(rawProcessId, options) {
35354
- const processId = trimRequired(rawProcessId, "<process-id>");
35355
- const response = await requestAndParse(
35356
- this,
35357
- "POST",
35358
- `/v2/clarity-v2/processes/${encodeURIComponent(processId)}/upgrade`,
35359
- upgradeResponseSchema,
35360
- {}
35361
- );
35362
- renderMutationResult(response, `Upgraded process: ${response.id}`, options);
35363
- }
35364
- __name(upgradeProcess, "upgradeProcess");
35365
35356
  async function resolveTeamRequest(command, suffix) {
35366
35357
  const config = await requireAuthenticatedConfig(command);
35367
35358
  const teamId = await resolveRequiredTeamId(config, {
@@ -47237,7 +47228,9 @@ var publicRunSchema = z119.object({
47237
47228
  human_in_the_loop_enabled: z119.boolean().nullish(),
47238
47229
  // Absent from servers that predate Team automations; read as `personal`.
47239
47230
  scope: z119.string().nullish(),
47240
- created_by: z119.string().nullish()
47231
+ created_by: z119.string().nullish(),
47232
+ // Absent from servers that predate it; read as false.
47233
+ resuming: z119.boolean().nullish()
47241
47234
  });
47242
47235
  var startRunResponseSchema = z119.object({
47243
47236
  run: publicRunSchema
@@ -47419,6 +47412,12 @@ function registerRunsEvaluation(runs) {
47419
47412
  }
47420
47413
  __name(registerRunsEvaluation, "registerRunsEvaluation");
47421
47414
 
47415
+ // src/commands/runs/format-run-status.ts
47416
+ function formatRunStatus(run) {
47417
+ return run.resuming === true ? `${run.status} (resuming)` : run.status;
47418
+ }
47419
+ __name(formatRunStatus, "formatRunStatus");
47420
+
47422
47421
  // src/commands/runs/get.ts
47423
47422
  function registerRunsGet(runs) {
47424
47423
  runs.command("get <id>").description("Get an agent run by ID").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function getAction(id, options) {
@@ -47448,7 +47447,7 @@ function registerRunsGet(runs) {
47448
47447
  { label: "ID", value: run.id },
47449
47448
  { label: "Agent", value: run.agent_id },
47450
47449
  { label: "Build", value: run.build_id },
47451
- { label: "Status", value: run.status },
47450
+ { label: "Status", value: formatRunStatus(run) },
47452
47451
  { label: "Scope", value: run.scope ?? "personal" },
47453
47452
  { label: "Started by", value: run.created_by ?? "" },
47454
47453
  { label: "Source", value: run.source ?? "" },
@@ -47497,7 +47496,7 @@ var TITLE_PREVIEW_WIDTH = 50;
47497
47496
  var TABLE_COLUMNS49 = [
47498
47497
  { header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell") },
47499
47498
  { header: "RUN#", cell: /* @__PURE__ */ __name((row) => String(row.run_number), "cell") },
47500
- { header: "STATUS", cell: /* @__PURE__ */ __name((row) => row.status, "cell") },
47499
+ { header: "STATUS", cell: /* @__PURE__ */ __name((row) => formatRunStatus(row), "cell") },
47501
47500
  { header: "SCOPE", cell: /* @__PURE__ */ __name((row) => row.scope ?? "personal", "cell") },
47502
47501
  { header: "AGENT", cell: /* @__PURE__ */ __name((row) => row.agent_name, "cell") },
47503
47502
  {
@@ -49091,56 +49090,6 @@ function registerSkillsFiles(skills) {
49091
49090
  }
49092
49091
  __name(registerSkillsFiles, "registerSkillsFiles");
49093
49092
 
49094
- // src/commands/skills/generate.ts
49095
- import { readFileSync as readFileSync8 } from "node:fs";
49096
- function registerSkillsGenerate(skills) {
49097
- skills.command("generate").description(
49098
- "Generate a SKILL.md file from a natural-language description (does not persist)"
49099
- ).requiredOption(
49100
- "--prompt <text>",
49101
- "natural-language description of the skill (1-2000 chars)"
49102
- ).option(
49103
- "--existing-content-file <path>",
49104
- 'path to a file with existing SKILL.md content to refine, or "-" for stdin'
49105
- ).option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function generateAction(options) {
49106
- const body = { prompt: options.prompt };
49107
- if (options.existingContentFile !== void 0) {
49108
- body.existingContent = readExistingContent(options.existingContentFile);
49109
- }
49110
- const { apiKey, apiBaseUrl } = await requireAuthenticatedConfig(this);
49111
- const raw = await httpRequest({
49112
- method: "POST",
49113
- path: "/v2/skills/generate",
49114
- apiKey,
49115
- apiBaseUrl,
49116
- body,
49117
- timeoutMs: 12e4
49118
- });
49119
- if (options.json) {
49120
- printJson(raw);
49121
- return;
49122
- }
49123
- const parsed = generateSkillResponseSchema.safeParse(raw);
49124
- if (!parsed.success) {
49125
- throw new CliError(
49126
- `Unexpected response from the API: ${parsed.error.message}`
49127
- );
49128
- }
49129
- process.stdout.write(parsed.data.content);
49130
- }, "generateAction"));
49131
- }
49132
- __name(registerSkillsGenerate, "registerSkillsGenerate");
49133
- function readExistingContent(source) {
49134
- const target = source === "-" ? 0 : source;
49135
- const label = source === "-" ? "stdin" : `--existing-content-file ${source}`;
49136
- try {
49137
- return readFileSync8(target, "utf8");
49138
- } catch (error) {
49139
- throw new CliError(`Cannot read ${label}: ${error.message}`);
49140
- }
49141
- }
49142
- __name(readExistingContent, "readExistingContent");
49143
-
49144
49093
  // src/commands/skills/install.ts
49145
49094
  import { z as z122 } from "zod";
49146
49095
  var installSkillResponseSchema = z122.object({
@@ -49933,7 +49882,6 @@ function registerSkills(program) {
49933
49882
  registerSkillsFileUpdate(skills);
49934
49883
  registerSkillsRevisions(skills);
49935
49884
  registerSkillsDownload(skills);
49936
- registerSkillsGenerate(skills);
49937
49885
  }
49938
49886
  __name(registerSkills, "registerSkills");
49939
49887
 
@@ -55568,26 +55516,26 @@ var FEATURE_FLAG_CATALOGUE = {
55568
55516
  AUTOMATIONS: {
55569
55517
  key: "automations",
55570
55518
  defaultValue: false,
55571
- stage: "alpha",
55572
- 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."
55519
+ stage: "public_beta",
55520
+ 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; in public beta. AUTOMATION_MIGRATION is temporary and no stage enrollment reaches it, so a public beta enrollment alone does not expose the migration entry point."
55573
55521
  },
55574
55522
  CRON_FREE_PRO_AUTOMATIONS: {
55575
55523
  key: "cron_free_pro_automations",
55576
55524
  defaultValue: false,
55577
55525
  stage: "temporary",
55578
- 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."
55526
+ description: "Kill switch for the background conversion of Free, Pro and Business teams, including those whose subscription on one of those plans ended, to the lite Automations workspace. The key keeps its original Free/Pro name. 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 that are not yet on the workspace and either have a live subscription on the Free, Pro or Business plan, in any status, or have no live subscription and whose last one was on one of those plans (teams on Enterprise or Clarity, live or last, and teams that never had a subscription are left alone; 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."
55579
55527
  },
55580
55528
  AUTOMATION_HISTORY_BACKFILL_WORKER: {
55581
55529
  key: "automation_history_backfill_worker",
55582
55530
  defaultValue: false,
55583
55531
  stage: "temporary",
55584
- description: "Moves the stamping of a converting team's history out of the conversion's transaction. Converting a team to the Automations workspace (POST /automations/migrate, and the Free and Pro auto-migration cron) stamps every pre-conversion run and case with its automation. When off (the default), that UPDATE runs inside the conversion's transaction, which holds every agent of the team locked until it commits, so on a team with a long history run starts fail for minutes. When on, the conversion stamps nothing and sets team.automation_history_pending_since in the same commit; the conversion queues the history backfill on the `automation-history-backfill` Cloud Tasks queue, whose slices stamp the history in short pages that skip locked rows, assign its automation runs, and clear the mark; the `cron-history-backfill-sweep` job restarts any team left with no slice queued. Work the team starts meanwhile, such as a handover from an old in-flight run or a case it creates, is stamped by its writer with what the backfill will write. Until the backfill finishes, Past Runs, case history and the Requests tab on the new automations show less for the old runs; who can see a run does not change; and moving an agent to another automation is refused with 409 automation_history_pending. Turn it on only where the queue exists and AUTOMATION_HISTORY_BACKFILL_QUEUE_PATH is set on backend-node; without it a deployed service runs the slices in-process, and reports that. Turning it off later leaves already-marked teams to the backfill. Resolved globally only: the cron has no user, team or organization to resolve against, and both entry points must agree."
55532
+ description: "Moves the stamping of a converting team's history out of the conversion's transaction. Converting a team to the Automations workspace (POST /automations/migrate, and the auto-migration cron) stamps every pre-conversion run and case with its automation. When off (the default), that UPDATE runs inside the conversion's transaction, which holds every agent of the team locked until it commits, so on a team with a long history run starts fail for minutes. When on, the conversion stamps nothing and sets team.automation_history_pending_since in the same commit; the conversion queues the history backfill on the `automation-history-backfill` Cloud Tasks queue, whose slices stamp the history in short pages that skip locked rows, assign its automation runs, and clear the mark; the `cron-history-backfill-sweep` job restarts any team left with no slice queued. Work the team starts meanwhile, such as a handover from an old in-flight run or a case it creates, is stamped by its writer with what the backfill will write. Until the backfill finishes, Past Runs, case history and the Requests tab on the new automations show less for the old runs; who can see a run does not change; and moving an agent to another automation is refused with 409 automation_history_pending. Turn it on only where the queue exists and AUTOMATION_HISTORY_BACKFILL_QUEUE_PATH is set on backend-node; without it a deployed service runs the slices in-process, and reports that. Turning it off later leaves already-marked teams to the backfill. Resolved globally only: the cron has no user, team or organization to resolve against, and both entry points must agree."
55585
55533
  },
55586
55534
  AUTOMATION_MIGRATION: {
55587
55535
  key: "automation_migration",
55588
55536
  defaultValue: false,
55589
- stage: "alpha",
55590
- description: "Grants access to the 'Migrate to automations' procedure: the button and its preview dialog on the Agents page, GET /automations/migrate/preview and POST /automations/migrate. Every one of them also requires AUTOMATIONS, and this flag deliberately implies nothing \u2014 turning it on alone exposes nothing, and turning it off (while no enabled flag implies it) hides the entry point and refuses both routes with 403 while leaving AUTOMATIONS and every other surface it gates untouched. The button shows only to team Administrators and Owners, and the routes refuse any lower role. Does not affect a team already on the workspace: the migration is a no-op there and the button hides itself on `automations_migrated_at`. Resolved for the caller, user-level overrides included, on both the button and the routes, so the two always agree. Implied by MODULES, so a standalone team on Modules can reach the workspace that surface requires; while MODULES is on, an override setting this flag off has no effect. Off by default for staged rollout."
55537
+ stage: "temporary",
55538
+ description: "Grants access to the 'Migrate to automations' procedure: the button and its preview dialog on the Agents page, GET /automations/migrate/preview and POST /automations/migrate. Every one of them also requires AUTOMATIONS, and this flag deliberately implies nothing \u2014 turning it on alone exposes nothing, and turning it off (while no enabled flag implies it) hides the entry point and refuses both routes with 403 while leaving AUTOMATIONS and every other surface it gates untouched. The button shows only to team Administrators and Owners, and the routes refuse any lower role. Does not affect a team already on the workspace: the migration is a no-op there and the button hides itself on `automations_migrated_at`. Resolved for the caller, user-level overrides included, on both the button and the routes, so the two always agree. Implied by MODULES, so a standalone team on Modules can reach the workspace that surface requires; while MODULES is on, an override setting this flag off has no effect. Temporary, not a customer-facing feature: off by default while every team is moved onto the workspace. No stage enrollment reaches it, so it is on only where an explicit override sets it, which is meant for internal users, or where MODULES implies it. Delete it once every team has migrated."
55591
55539
  },
55592
55540
  AUTOMATIONS_ON_NEW_TEAMS: {
55593
55541
  key: "automations_on_new_teams",
@@ -55601,14 +55549,7 @@ var FEATURE_FLAG_CATALOGUE = {
55601
55549
  defaultValue: false,
55602
55550
  stage: "dev",
55603
55551
  implies: ["automations"],
55604
- description: "Makes the Automations migration convert straight to revision semantics instead of the lite workspace. When off (the default), POST /automations/migrate writes automation containers only and stamps team.automations_migrated_at; when on, it also snapshots each automation's current live builds and queue routing as revision 1 and stamps team.automation_revisions_migrated_at. Trigger configs and recurring builder schedules are always folded into that snapshot as versioned declarations, so a team on versions never keeps them as live, unversioned legacy rows; one-time schedules, ones an agent set itself, timings versions cannot express and trigger types whose dispatch does not read the revision stay legacy rows. Only applies to a team that is still standalone \u2014 it is not the lite-to-versioned cutover, which resolves its groups from existing automation membership rather than by closure discovery. Resolved for the caller, user-level overrides included, as the button resolves it, and only consulted for a team that also has AUTOMATIONS on."
55605
- },
55606
- AUTOMATION_VERSIONED_TRIGGERS_SCHEDULES: {
55607
- key: "automation_versioned_triggers_schedules",
55608
- defaultValue: false,
55609
- stage: "dev",
55610
- implies: ["automation_versioning"],
55611
- description: "No longer read by the backend: every move onto versions (the versioned Automations migration and the 'Turn on versions' cutover) now folds the team's external triggers and recurring builder schedules into versioned declarations, whatever this flag says. Still declared only because the Turn on versions and Migrate to automations dialogs read it for their copy until they are updated; it is removed after that. Teams already folded stay folded either way."
55552
+ description: "Makes the Automations migration convert straight to revision semantics instead of the lite workspace. When off (the default), POST /automations/migrate writes automation containers only and stamps team.automations_migrated_at; when on, it also snapshots each automation's current live builds and queue routing as revision 1 and stamps team.automation_revisions_migrated_at. Trigger configs and recurring builder schedules are always folded into that snapshot as versioned declarations, so a team on versions never keeps them as live, unversioned legacy rows; one-time schedules, ones an agent set itself, timings versions cannot express and trigger types whose dispatch does not read the revision stay legacy rows. Turning versions off ('Turn off revisions') unfolds them again. This replaces AUTOMATION_VERSIONED_TRIGGERS_SCHEDULES (`automation_versioned_triggers_schedules`), which is no longer declared. It implied AUTOMATION_VERSIONING, so a subject that had only it on is given `automation_versioning` by hand in the admin before this release ships. Its own rows are left in the database and resolve nowhere in this code, so the admin lists it under db-only flags, where it should be cleared from. Only applies to a team that is still standalone \u2014 it is not the lite-to-versioned cutover, which resolves its groups from existing automation membership rather than by closure discovery. Resolved for the caller, user-level overrides included, as the button resolves it, and only consulted for a team that also has AUTOMATIONS on."
55612
55553
  },
55613
55554
  AGENT_QUEUE_DETAIL_REDESIGN: {
55614
55555
  key: "agent_queue_detail_redesign",
@@ -55960,14 +55901,7 @@ var FEATURE_FLAG_CATALOGUE = {
55960
55901
  key: "product_news",
55961
55902
  defaultValue: false,
55962
55903
  stage: "private_beta",
55963
- description: "In-app What's new (product news) and the sidebar Help menu: the card delivered by the truck after login, the What's new dialog, the Help menu (Documentation, Get support, the What's new timeline with its New pills, Full changelog) with its notification dot, and the What's new command in Ctrl+K search. When off, none of these render and the dismissals list is not fetched for them; the sidebar keeps the original Need help? button that opens Intercom chat directly. Seen state is per user via user dismissals: `product-news:<drop-id>` once What's new is opened (clears the card, Help dot and New pills) and `product-news-card:<drop-id>` once the card is closed with \u2715 (hides only the card). Off by default; turn on per organization or team for the canary rollout."
55964
- },
55965
- PRODUCT_NEWS_FEATURE_DROPS: {
55966
- key: "product_news_feature_drops",
55967
- defaultValue: false,
55968
- stage: "private_beta",
55969
- description: "Temporary transition flag that switches What's new from the legacy Drop 1 release to Feature Drops rings (ENT-700). Requires product_news; will be removed after Feature Drops ships.",
55970
- stageEnrollmentExclusion: "Enabled explicitly for the Feature Drops transition, not feature flag stage enrollment."
55904
+ description: "In-app What's new announcements from released Feature Drops: the card delivered by the truck after login, the What's new dialog, the Help menu's announcement timeline with its New pills and news indicator, and the What's new command in Ctrl+K. When off, announcements are hidden and their content and dismissals are not fetched; Help, Documentation, Get support, unread message indicators and Full changelog remain available. Seen state is per user via user dismissals: `product-news:<drop-id>` once What's new is opened and `product-news-card:<drop-id>` once the card is closed. Off by default; turn on per organization or team for the rollout."
55971
55905
  },
55972
55906
  SAP_MIGRATION: {
55973
55907
  key: "sap_migration",
@@ -57996,6 +57930,11 @@ var TERMINAL_AGENT_RUN_STATUSES = [
57996
57930
  "interrupted",
57997
57931
  "expired"
57998
57932
  ];
57933
+ var HUMAN_REQUEST_RESUME_IN_FLIGHT_STATES2 = [
57934
+ "resuming",
57935
+ "uncertain"
57936
+ ];
57937
+ var runResumePhaseSchema2 = z182.enum(HUMAN_REQUEST_RESUME_IN_FLIGHT_STATES2).nullable();
57999
57938
  function isTerminalAgentRunStatus(status) {
58000
57939
  return TERMINAL_AGENT_RUN_STATUSES.includes(status);
58001
57940
  }
@@ -58136,6 +58075,12 @@ var agentRunSchema2 = z182.object({
58136
58075
  * files remain. Set by the list endpoint; the Run keeps its status.
58137
58076
  */
58138
58077
  sandbox_expired_at: z182.coerce.date().nullable().optional(),
58078
+ /**
58079
+ * While the run is `running` on an answer that has not reached the Agent
58080
+ * yet: `resuming` while it is being sent, `uncertain` while we check that
58081
+ * it arrived. Null otherwise. Absent from a backend that predates it.
58082
+ */
58083
+ resume_phase: runResumePhaseSchema2.optional(),
58139
58084
  ...runScopeFields2
58140
58085
  });
58141
58086
  var agentRunsListResponseSchema2 = z182.object({
@@ -58241,6 +58186,14 @@ var agentRunDetailSchemaData2 = z182.object({
58241
58186
  * (ENT-422). Their cards must not read as answered.
58242
58187
  */
58243
58188
  expired_approval_request_ids: z182.array(z182.guid()).optional(),
58189
+ /** As on {@link agentRunSchema}. */
58190
+ resume_phase: runResumePhaseSchema2.optional(),
58191
+ /**
58192
+ * The run's `request_approval` requests closed with `pause_ended`: the
58193
+ * sandbox stopped waiting on them before an answer reached the Agent. Their
58194
+ * cards show as closed without an answer.
58195
+ */
58196
+ pause_ended_approval_request_ids: z182.array(z182.guid()).optional(),
58244
58197
  ...runScopeFields2
58245
58198
  });
58246
58199
  var agentRunDetailSchema2 = z182.object({
@@ -75799,10 +75752,22 @@ var adminMigrationHistoryPointSchema = z902.object({
75799
75752
  /** Counted teams that existed by the end of the day. */
75800
75753
  total: countSchema
75801
75754
  });
75755
+ var planVersionIdSchema3 = z902.string().nullable();
75756
+ var adminMigrationPlanTeamsSchema = z902.object({
75757
+ planVersionId: planVersionIdSchema3,
75758
+ teams: countSchema
75759
+ });
75760
+ var planTeamsListSchema = z902.array(adminMigrationPlanTeamsSchema);
75802
75761
  var adminMigrationOrganizationSchema = z902.object({
75803
75762
  organizationId: z902.string(),
75804
75763
  name: z902.string(),
75805
75764
  migrated: countSchema,
75765
+ total: countSchema,
75766
+ plans: planTeamsListSchema
75767
+ });
75768
+ var adminMigrationPlanSchema = z902.object({
75769
+ planVersionId: planVersionIdSchema3,
75770
+ migrated: countSchema,
75806
75771
  total: countSchema
75807
75772
  });
75808
75773
  var adminMigrationProgressSchema = z902.object({
@@ -75810,6 +75775,13 @@ var adminMigrationProgressSchema = z902.object({
75810
75775
  total: countSchema,
75811
75776
  /** Oldest day first; the last point is today, so it matches the counts. */
75812
75777
  history: z902.array(adminMigrationHistoryPointSchema),
75778
+ /**
75779
+ * Today's counts by the plan each team is on now, in plan order with no plan
75780
+ * last. Only plans with a counted team are listed, and their totals add up
75781
+ * to `total`. Plans are read as they stand today, so there is no history per
75782
+ * plan.
75783
+ */
75784
+ plans: z902.array(adminMigrationPlanSchema),
75813
75785
  /**
75814
75786
  * Organizations with at least one counted team, migrated or not, biggest
75815
75787
  * first. Capped, so it can be shorter than `organizationCount`.
@@ -75823,7 +75795,8 @@ var adminMigrationProgressSchema = z902.object({
75823
75795
  */
75824
75796
  withoutOrganization: z902.object({
75825
75797
  migrated: countSchema,
75826
- total: countSchema
75798
+ total: countSchema,
75799
+ plans: planTeamsListSchema
75827
75800
  })
75828
75801
  });
75829
75802
  var adminAutomationMigrationsResponseSchema = z902.object({
@@ -78227,13 +78200,6 @@ var deleteSkillResponseSchema2 = z1132.object({
78227
78200
  success: z1132.boolean(),
78228
78201
  message: z1132.string()
78229
78202
  });
78230
- var generateSkillBodySchema2 = z1132.object({
78231
- prompt: z1132.string().min(1).max(2e3),
78232
- existingContent: z1132.string().max(2e4).optional()
78233
- });
78234
- var generateSkillResponseSchema2 = z1132.object({
78235
- content: z1132.string()
78236
- });
78237
78203
  var skillAssignmentSchema2 = z1132.object({
78238
78204
  id: z1132.string(),
78239
78205
  name: z1132.string()
@@ -83357,10 +83323,7 @@ var productNewsDropListResponseSchema = z148.object({
83357
83323
  releasedAt: z148.iso.datetime().nullable(),
83358
83324
  /** The drop's name from the admin panel. Null or absent when it has none. */
83359
83325
  name: z148.string().nullable().optional(),
83360
- /**
83361
- * The drop's content, written in the admin panel. Absent only for the
83362
- * legacy release, whose content the frontend holds and `updateIds` names.
83363
- */
83326
+ /** Announcements supplied by the backend; absent content is not displayed. */
83364
83327
  updates: z148.array(productNewsUpdateSchema).optional()
83365
83328
  })
83366
83329
  )
@@ -83634,7 +83597,13 @@ var jobListItemSchema2 = z1522.object({
83634
83597
  * files remain. Optional because duvo-cli parses this response against any
83635
83598
  * backend.
83636
83599
  */
83637
- sandbox_expired_at: z1522.coerce.date().nullable().optional()
83600
+ sandbox_expired_at: z1522.coerce.date().nullable().optional(),
83601
+ resuming: z1522.boolean().optional().describe(
83602
+ "True while the run is `running` on an answer to its question that has not been confirmed to reach the Agent yet. `status` stays `running` throughout. Absent from older servers; read a missing value as false."
83603
+ ),
83604
+ resume_phase: runResumePhaseSchema2.optional().describe(
83605
+ "While `resuming` is true: `resuming` while the answer is being sent to the Agent, `uncertain` while Duvo checks that it arrived. Null otherwise. Absent from older servers."
83606
+ )
83638
83607
  });
83639
83608
  var jobListResponseSchema2 = z1522.object({
83640
83609
  data: z1522.array(jobListItemSchema2),
@@ -87590,7 +87559,7 @@ __name(isStandaloneBinary, "isStandaloneBinary");
87590
87559
  import { createRequire } from "node:module";
87591
87560
  function getPackageMeta() {
87592
87561
  if (true) {
87593
- return { name: "@duvoai/cli", version: "1.112.3" };
87562
+ return { name: "@duvoai/cli", version: "1.112.5" };
87594
87563
  }
87595
87564
  const require2 = createRequire(import.meta.url);
87596
87565
  const raw = require2("../../package.json");
@@ -87877,7 +87846,7 @@ async function resolveActiveTeamId(config, override) {
87877
87846
  __name(resolveActiveTeamId, "resolveActiveTeamId");
87878
87847
 
87879
87848
  // src/update-check.ts
87880
- import { readFileSync as readFileSync9 } from "node:fs";
87849
+ import { readFileSync as readFileSync8 } from "node:fs";
87881
87850
  import { mkdir as mkdir2, readFile as readFile17, writeFile as writeFile6 } from "node:fs/promises";
87882
87851
  import { dirname as dirname5 } from "node:path";
87883
87852
 
@@ -87992,7 +87961,7 @@ async function readCache() {
87992
87961
  __name(readCache, "readCache");
87993
87962
  function readCacheSync() {
87994
87963
  try {
87995
- return parseCache(readFileSync9(getUpdateCheckCachePath(), "utf8"));
87964
+ return parseCache(readFileSync8(getUpdateCheckCachePath(), "utf8"));
87996
87965
  } catch {
87997
87966
  return null;
87998
87967
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvoai/cli",
3
- "version": "1.112.3",
3
+ "version": "1.112.5",
4
4
  "description": "Command-line interface for the Duvo public API",
5
5
  "bin": {
6
6
  "duvo": "./dist/bin/duvo.js"