@vm0/cli 9.83.3 → 9.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -51,7 +51,7 @@ import {
51
51
  searchLogs,
52
52
  volumeConfigSchema,
53
53
  withErrorHandler
54
- } from "./chunk-IFUYTPFH.js";
54
+ } from "./chunk-T4MRFLKK.js";
55
55
 
56
56
  // src/index.ts
57
57
  import { Command as Command44 } from "commander";
@@ -436,7 +436,7 @@ function getConfigPath() {
436
436
  return join(homedir(), ".vm0", "config.json");
437
437
  }
438
438
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
439
- console.log(chalk3.bold(`VM0 CLI v${"9.83.3"}`));
439
+ console.log(chalk3.bold(`VM0 CLI v${"9.84.0"}`));
440
440
  console.log();
441
441
  const config = await loadConfig();
442
442
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -1662,7 +1662,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
1662
1662
  options.autoUpdate = false;
1663
1663
  }
1664
1664
  if (options.autoUpdate !== false) {
1665
- await startSilentUpgrade("9.83.3");
1665
+ await startSilentUpgrade("9.84.0");
1666
1666
  }
1667
1667
  try {
1668
1668
  let result;
@@ -2497,7 +2497,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
2497
2497
  withErrorHandler(
2498
2498
  async (identifier, prompt, options) => {
2499
2499
  if (options.autoUpdate !== false) {
2500
- await startSilentUpgrade("9.83.3");
2500
+ await startSilentUpgrade("9.84.0");
2501
2501
  }
2502
2502
  const { org, name, version } = parseIdentifier(identifier);
2503
2503
  let composeId;
@@ -4253,7 +4253,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
4253
4253
  withErrorHandler(
4254
4254
  async (prompt, options) => {
4255
4255
  if (options.autoUpdate !== false) {
4256
- const shouldExit = await checkAndUpgrade("9.83.3", prompt);
4256
+ const shouldExit = await checkAndUpgrade("9.84.0", prompt);
4257
4257
  if (shouldExit) {
4258
4258
  process.exit(0);
4259
4259
  }
@@ -4993,13 +4993,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4993
4993
  if (latestVersion === null) {
4994
4994
  throw new Error("Could not check for updates. Please try again later.");
4995
4995
  }
4996
- if (latestVersion === "9.83.3") {
4997
- console.log(chalk36.green(`\u2713 Already up to date (${"9.83.3"})`));
4996
+ if (latestVersion === "9.84.0") {
4997
+ console.log(chalk36.green(`\u2713 Already up to date (${"9.84.0"})`));
4998
4998
  return;
4999
4999
  }
5000
5000
  console.log(
5001
5001
  chalk36.yellow(
5002
- `Current version: ${"9.83.3"} -> Latest version: ${latestVersion}`
5002
+ `Current version: ${"9.84.0"} -> Latest version: ${latestVersion}`
5003
5003
  )
5004
5004
  );
5005
5005
  console.log();
@@ -5026,7 +5026,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
5026
5026
  const success = await performUpgrade(packageManager);
5027
5027
  if (success) {
5028
5028
  console.log(
5029
- chalk36.green(`\u2713 Upgraded from ${"9.83.3"} to ${latestVersion}`)
5029
+ chalk36.green(`\u2713 Upgraded from ${"9.84.0"} to ${latestVersion}`)
5030
5030
  );
5031
5031
  return;
5032
5032
  }
@@ -5094,7 +5094,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
5094
5094
 
5095
5095
  // src/index.ts
5096
5096
  var program = new Command44();
5097
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.83.3");
5097
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.84.0");
5098
5098
  program.addCommand(authCommand);
5099
5099
  program.addCommand(infoCommand);
5100
5100
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.83.3",
3
+ "version": "9.84.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -29,6 +29,7 @@ import {
29
29
  getBaseUrl,
30
30
  getComposeByName,
31
31
  getConnectorDerivedNames,
32
+ getConnectorTypeForSecretName,
32
33
  getCustomModelPlaceholder,
33
34
  getDefaultAuthMethod,
34
35
  getDefaultModel,
@@ -81,10 +82,10 @@ import {
81
82
  updateZeroUserPreferences,
82
83
  upsertZeroOrgModelProvider,
83
84
  withErrorHandler
84
- } from "./chunk-IFUYTPFH.js";
85
+ } from "./chunk-T4MRFLKK.js";
85
86
 
86
87
  // src/zero.ts
87
- import { Command as Command55 } from "commander";
88
+ import { Command as Command57 } from "commander";
88
89
 
89
90
  // src/commands/zero/org/index.ts
90
91
  import { Command as Command23 } from "commander";
@@ -1813,8 +1814,36 @@ var disconnectCommand = new Command33().name("disconnect").description("Disconne
1813
1814
  // src/commands/zero/connector/index.ts
1814
1815
  var zeroConnectorCommand = new Command34().name("connector").description("Manage third-party service connections").addCommand(listCommand6).addCommand(statusCommand2).addCommand(connectCommand).addCommand(disconnectCommand);
1815
1816
 
1816
- // src/commands/zero/preference/index.ts
1817
+ // src/commands/zero/doctor/index.ts
1818
+ import { Command as Command36 } from "commander";
1819
+
1820
+ // src/commands/zero/doctor/missing-token.ts
1817
1821
  import { Command as Command35 } from "commander";
1822
+ var missingTokenCommand = new Command35().name("missing-token").description(
1823
+ "Diagnose a missing token and find the connector that provides it"
1824
+ ).argument("<token-name>", "The environment variable / token name to look up").action(
1825
+ withErrorHandler(async (tokenName) => {
1826
+ const connectorType = getConnectorTypeForSecretName(tokenName);
1827
+ if (!connectorType) {
1828
+ throw new Error(
1829
+ `Unknown token: ${tokenName} \u2014 not managed by any connector`
1830
+ );
1831
+ }
1832
+ const { label } = CONNECTOR_TYPES[connectorType];
1833
+ const baseUrl = await getApiUrl();
1834
+ const agentId = process.env.ZERO_AGENT_ID;
1835
+ const path = agentId ? `/team/${agentId}` : "/team";
1836
+ const url = `${baseUrl}${path}?tab=connectors`;
1837
+ console.log(`${tokenName} is provided by the ${label} connector.`);
1838
+ console.log(`Ask the user to connect it at: ${url}`);
1839
+ })
1840
+ );
1841
+
1842
+ // src/commands/zero/doctor/index.ts
1843
+ var zeroDoctorCommand = new Command36().name("doctor").description("Diagnostic tools for troubleshooting agent issues").addCommand(missingTokenCommand);
1844
+
1845
+ // src/commands/zero/preference/index.ts
1846
+ import { Command as Command37 } from "commander";
1818
1847
  import chalk31 from "chalk";
1819
1848
  function detectTimezone2() {
1820
1849
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -1871,7 +1900,7 @@ System timezone detected: ${detectedTz}`));
1871
1900
  }
1872
1901
  }
1873
1902
  }
1874
- var zeroPreferenceCommand = new Command35().name("preference").description("View or update your preferences").option("--timezone <timezone>", "IANA timezone (e.g., America/New_York)").action(
1903
+ var zeroPreferenceCommand = new Command37().name("preference").description("View or update your preferences").option("--timezone <timezone>", "IANA timezone (e.g., America/New_York)").action(
1875
1904
  withErrorHandler(async (opts) => {
1876
1905
  const updates = buildUpdates(opts);
1877
1906
  if (updates) {
@@ -1896,10 +1925,10 @@ var zeroPreferenceCommand = new Command35().name("preference").description("View
1896
1925
  );
1897
1926
 
1898
1927
  // src/commands/zero/schedule/index.ts
1899
- import { Command as Command42 } from "commander";
1928
+ import { Command as Command44 } from "commander";
1900
1929
 
1901
1930
  // src/commands/zero/schedule/setup.ts
1902
- import { Command as Command36 } from "commander";
1931
+ import { Command as Command38 } from "commander";
1903
1932
  import chalk32 from "chalk";
1904
1933
  var FREQUENCY_CHOICES = [
1905
1934
  { title: "Daily", value: "daily", description: "Run every day" },
@@ -2330,7 +2359,7 @@ async function handleScheduleEnabling(params) {
2330
2359
  showEnableHint(agentName);
2331
2360
  }
2332
2361
  }
2333
- var setupCommand2 = new Command36().name("setup").description("Create or edit a schedule for a zero agent").argument("<agent-name>", "Agent name to configure schedule for").option("-n, --name <schedule-name>", 'Schedule name (default: "default")').option("-f, --frequency <type>", "Frequency: daily|weekly|monthly|once|loop").option("-t, --time <HH:MM>", "Time to run (24-hour format)").option("-d, --day <day>", "Day of week (mon-sun) or day of month (1-31)").option("-i, --interval <seconds>", "Interval in seconds for loop mode").option("-z, --timezone <tz>", "IANA timezone").option("-p, --prompt <text>", "Prompt to run").option("--artifact-name <name>", "Artifact name", "artifact").option("-e, --enable", "Enable schedule immediately after creation").option("--notify-email", "Enable email notifications (default: true)").option("--no-notify-email", "Disable email notifications").option("--notify-slack", "Enable Slack notifications (default: true)").option("--no-notify-slack", "Disable Slack notifications").action(
2362
+ var setupCommand2 = new Command38().name("setup").description("Create or edit a schedule for a zero agent").argument("<agent-name>", "Agent name to configure schedule for").option("-n, --name <schedule-name>", 'Schedule name (default: "default")').option("-f, --frequency <type>", "Frequency: daily|weekly|monthly|once|loop").option("-t, --time <HH:MM>", "Time to run (24-hour format)").option("-d, --day <day>", "Day of week (mon-sun) or day of month (1-31)").option("-i, --interval <seconds>", "Interval in seconds for loop mode").option("-z, --timezone <tz>", "IANA timezone").option("-p, --prompt <text>", "Prompt to run").option("--artifact-name <name>", "Artifact name", "artifact").option("-e, --enable", "Enable schedule immediately after creation").option("--notify-email", "Enable email notifications (default: true)").option("--no-notify-email", "Disable email notifications").option("--notify-slack", "Enable Slack notifications (default: true)").option("--no-notify-slack", "Disable Slack notifications").action(
2334
2363
  withErrorHandler(async (agentName, options) => {
2335
2364
  const compose = await getComposeByName(agentName);
2336
2365
  if (!compose) {
@@ -2411,9 +2440,9 @@ var setupCommand2 = new Command36().name("setup").description("Create or edit a
2411
2440
  );
2412
2441
 
2413
2442
  // src/commands/zero/schedule/list.ts
2414
- import { Command as Command37 } from "commander";
2443
+ import { Command as Command39 } from "commander";
2415
2444
  import chalk33 from "chalk";
2416
- var listCommand7 = new Command37().name("list").alias("ls").description("List all zero schedules").action(
2445
+ var listCommand7 = new Command39().name("list").alias("ls").description("List all zero schedules").action(
2417
2446
  withErrorHandler(async () => {
2418
2447
  const result = await listZeroSchedules();
2419
2448
  if (result.schedules.length === 0) {
@@ -2462,7 +2491,7 @@ var listCommand7 = new Command37().name("list").alias("ls").description("List al
2462
2491
  );
2463
2492
 
2464
2493
  // src/commands/zero/schedule/status.ts
2465
- import { Command as Command38 } from "commander";
2494
+ import { Command as Command40 } from "commander";
2466
2495
  import chalk34 from "chalk";
2467
2496
  function formatDateTimeStyled(dateStr) {
2468
2497
  if (!dateStr) return chalk34.dim("-");
@@ -2521,7 +2550,7 @@ function printTimeSchedule(schedule) {
2521
2550
  console.log(`${"Failures:".padEnd(16)}${failureText}`);
2522
2551
  }
2523
2552
  }
2524
- var statusCommand3 = new Command38().name("status").description("Show detailed status of a zero schedule").argument("<agent-name>", "Agent name").option(
2553
+ var statusCommand3 = new Command40().name("status").description("Show detailed status of a zero schedule").argument("<agent-name>", "Agent name").option(
2525
2554
  "-n, --name <schedule-name>",
2526
2555
  "Schedule name (required when agent has multiple schedules)"
2527
2556
  ).action(
@@ -2540,9 +2569,9 @@ var statusCommand3 = new Command38().name("status").description("Show detailed s
2540
2569
  );
2541
2570
 
2542
2571
  // src/commands/zero/schedule/delete.ts
2543
- import { Command as Command39 } from "commander";
2572
+ import { Command as Command41 } from "commander";
2544
2573
  import chalk35 from "chalk";
2545
- var deleteCommand3 = new Command39().name("delete").alias("rm").description("Delete a zero schedule").argument("<agent-name>", "Agent name").option(
2574
+ var deleteCommand3 = new Command41().name("delete").alias("rm").description("Delete a zero schedule").argument("<agent-name>", "Agent name").option(
2546
2575
  "-n, --name <schedule-name>",
2547
2576
  "Schedule name (required when agent has multiple schedules)"
2548
2577
  ).option("-y, --yes", "Skip confirmation prompt").action(
@@ -2575,9 +2604,9 @@ var deleteCommand3 = new Command39().name("delete").alias("rm").description("Del
2575
2604
  );
2576
2605
 
2577
2606
  // src/commands/zero/schedule/enable.ts
2578
- import { Command as Command40 } from "commander";
2607
+ import { Command as Command42 } from "commander";
2579
2608
  import chalk36 from "chalk";
2580
- var enableCommand = new Command40().name("enable").description("Enable a zero schedule").argument("<agent-name>", "Agent name").option(
2609
+ var enableCommand = new Command42().name("enable").description("Enable a zero schedule").argument("<agent-name>", "Agent name").option(
2581
2610
  "-n, --name <schedule-name>",
2582
2611
  "Schedule name (required when agent has multiple schedules)"
2583
2612
  ).action(
@@ -2595,9 +2624,9 @@ var enableCommand = new Command40().name("enable").description("Enable a zero sc
2595
2624
  );
2596
2625
 
2597
2626
  // src/commands/zero/schedule/disable.ts
2598
- import { Command as Command41 } from "commander";
2627
+ import { Command as Command43 } from "commander";
2599
2628
  import chalk37 from "chalk";
2600
- var disableCommand = new Command41().name("disable").description("Disable a zero schedule").argument("<agent-name>", "Agent name").option(
2629
+ var disableCommand = new Command43().name("disable").description("Disable a zero schedule").argument("<agent-name>", "Agent name").option(
2601
2630
  "-n, --name <schedule-name>",
2602
2631
  "Schedule name (required when agent has multiple schedules)"
2603
2632
  ).action(
@@ -2615,15 +2644,15 @@ var disableCommand = new Command41().name("disable").description("Disable a zero
2615
2644
  );
2616
2645
 
2617
2646
  // src/commands/zero/schedule/index.ts
2618
- var zeroScheduleCommand = new Command42().name("schedule").description("Manage zero agent schedules").addCommand(setupCommand2).addCommand(listCommand7).addCommand(statusCommand3).addCommand(deleteCommand3).addCommand(enableCommand).addCommand(disableCommand);
2647
+ var zeroScheduleCommand = new Command44().name("schedule").description("Manage zero agent schedules").addCommand(setupCommand2).addCommand(listCommand7).addCommand(statusCommand3).addCommand(deleteCommand3).addCommand(enableCommand).addCommand(disableCommand);
2619
2648
 
2620
2649
  // src/commands/zero/secret/index.ts
2621
- import { Command as Command46 } from "commander";
2650
+ import { Command as Command48 } from "commander";
2622
2651
 
2623
2652
  // src/commands/zero/secret/list.ts
2624
- import { Command as Command43 } from "commander";
2653
+ import { Command as Command45 } from "commander";
2625
2654
  import chalk38 from "chalk";
2626
- var listCommand8 = new Command43().name("list").alias("ls").description("List all secrets").action(
2655
+ var listCommand8 = new Command45().name("list").alias("ls").description("List all secrets").action(
2627
2656
  withErrorHandler(async () => {
2628
2657
  const result = await listZeroSecrets();
2629
2658
  if (result.secrets.length === 0) {
@@ -2676,9 +2705,9 @@ var listCommand8 = new Command43().name("list").alias("ls").description("List al
2676
2705
  );
2677
2706
 
2678
2707
  // src/commands/zero/secret/set.ts
2679
- import { Command as Command44 } from "commander";
2708
+ import { Command as Command46 } from "commander";
2680
2709
  import chalk39 from "chalk";
2681
- var setCommand4 = new Command44().name("set").description("Create or update a secret").argument("<name>", "Secret name (uppercase, e.g., MY_API_KEY)").option(
2710
+ var setCommand4 = new Command46().name("set").description("Create or update a secret").argument("<name>", "Secret name (uppercase, e.g., MY_API_KEY)").option(
2682
2711
  "-b, --body <value>",
2683
2712
  "Secret value (required in non-interactive mode)"
2684
2713
  ).option("-d, --description <description>", "Optional description").action(
@@ -2724,9 +2753,9 @@ var setCommand4 = new Command44().name("set").description("Create or update a se
2724
2753
  );
2725
2754
 
2726
2755
  // src/commands/zero/secret/delete.ts
2727
- import { Command as Command45 } from "commander";
2756
+ import { Command as Command47 } from "commander";
2728
2757
  import chalk40 from "chalk";
2729
- var deleteCommand4 = new Command45().name("delete").description("Delete a secret").argument("<name>", "Secret name to delete").option("-y, --yes", "Skip confirmation prompt").action(
2758
+ var deleteCommand4 = new Command47().name("delete").description("Delete a secret").argument("<name>", "Secret name to delete").option("-y, --yes", "Skip confirmation prompt").action(
2730
2759
  withErrorHandler(async (name, options) => {
2731
2760
  if (!options.yes) {
2732
2761
  if (!isInteractive()) {
@@ -2747,19 +2776,19 @@ var deleteCommand4 = new Command45().name("delete").description("Delete a secret
2747
2776
  );
2748
2777
 
2749
2778
  // src/commands/zero/secret/index.ts
2750
- var zeroSecretCommand = new Command46().name("secret").description("Manage secrets").addCommand(listCommand8).addCommand(setCommand4).addCommand(deleteCommand4);
2779
+ var zeroSecretCommand = new Command48().name("secret").description("Manage secrets").addCommand(listCommand8).addCommand(setCommand4).addCommand(deleteCommand4);
2751
2780
 
2752
2781
  // src/commands/zero/slack/index.ts
2753
- import { Command as Command49 } from "commander";
2782
+ import { Command as Command51 } from "commander";
2754
2783
 
2755
2784
  // src/commands/zero/slack/message/index.ts
2756
- import { Command as Command48 } from "commander";
2785
+ import { Command as Command50 } from "commander";
2757
2786
 
2758
2787
  // src/commands/zero/slack/message/send.ts
2759
2788
  import { readFileSync as readFileSync3 } from "fs";
2760
- import { Command as Command47 } from "commander";
2789
+ import { Command as Command49 } from "commander";
2761
2790
  import chalk41 from "chalk";
2762
- var sendCommand = new Command47().name("send").description("Send a message to a Slack channel").requiredOption("-c, --channel <id>", "Channel ID").option("-t, --text <message>", "Message text").option("--thread <ts>", "Thread timestamp for replies").option("--blocks <json>", "Block Kit JSON string").action(
2791
+ var sendCommand = new Command49().name("send").description("Send a message to a Slack channel").requiredOption("-c, --channel <id>", "Channel ID").option("-t, --text <message>", "Message text").option("--thread <ts>", "Thread timestamp for replies").option("--blocks <json>", "Block Kit JSON string").action(
2763
2792
  withErrorHandler(
2764
2793
  async (options) => {
2765
2794
  let text = options.text;
@@ -2799,16 +2828,16 @@ var sendCommand = new Command47().name("send").description("Send a message to a
2799
2828
  );
2800
2829
 
2801
2830
  // src/commands/zero/slack/message/index.ts
2802
- var zeroSlackMessageCommand = new Command48().name("message").description("Manage Slack messages").addCommand(sendCommand);
2831
+ var zeroSlackMessageCommand = new Command50().name("message").description("Manage Slack messages").addCommand(sendCommand);
2803
2832
 
2804
2833
  // src/commands/zero/slack/index.ts
2805
- var zeroSlackCommand = new Command49().name("slack").description("Manage Slack integrations").addCommand(zeroSlackMessageCommand);
2834
+ var zeroSlackCommand = new Command51().name("slack").description("Manage Slack integrations").addCommand(zeroSlackMessageCommand);
2806
2835
 
2807
2836
  // src/commands/zero/variable/index.ts
2808
- import { Command as Command53 } from "commander";
2837
+ import { Command as Command55 } from "commander";
2809
2838
 
2810
2839
  // src/commands/zero/variable/list.ts
2811
- import { Command as Command50 } from "commander";
2840
+ import { Command as Command52 } from "commander";
2812
2841
  import chalk42 from "chalk";
2813
2842
  function truncateValue2(value, maxLength = 60) {
2814
2843
  if (value.length <= maxLength) {
@@ -2816,7 +2845,7 @@ function truncateValue2(value, maxLength = 60) {
2816
2845
  }
2817
2846
  return value.slice(0, maxLength - 15) + "... [truncated]";
2818
2847
  }
2819
- var listCommand9 = new Command50().name("list").alias("ls").description("List all variables").action(
2848
+ var listCommand9 = new Command52().name("list").alias("ls").description("List all variables").action(
2820
2849
  withErrorHandler(async () => {
2821
2850
  const result = await listZeroVariables();
2822
2851
  if (result.variables.length === 0) {
@@ -2844,9 +2873,9 @@ var listCommand9 = new Command50().name("list").alias("ls").description("List al
2844
2873
  );
2845
2874
 
2846
2875
  // src/commands/zero/variable/set.ts
2847
- import { Command as Command51 } from "commander";
2876
+ import { Command as Command53 } from "commander";
2848
2877
  import chalk43 from "chalk";
2849
- var setCommand5 = new Command51().name("set").description("Create or update a variable").argument("<name>", "Variable name (uppercase, e.g., MY_VAR)").argument("<value>", "Variable value").option("-d, --description <description>", "Optional description").action(
2878
+ var setCommand5 = new Command53().name("set").description("Create or update a variable").argument("<name>", "Variable name (uppercase, e.g., MY_VAR)").argument("<value>", "Variable value").option("-d, --description <description>", "Optional description").action(
2850
2879
  withErrorHandler(
2851
2880
  async (name, value, options) => {
2852
2881
  let variable;
@@ -2872,9 +2901,9 @@ var setCommand5 = new Command51().name("set").description("Create or update a va
2872
2901
  );
2873
2902
 
2874
2903
  // src/commands/zero/variable/delete.ts
2875
- import { Command as Command52 } from "commander";
2904
+ import { Command as Command54 } from "commander";
2876
2905
  import chalk44 from "chalk";
2877
- var deleteCommand5 = new Command52().name("delete").description("Delete a variable").argument("<name>", "Variable name to delete").option("-y, --yes", "Skip confirmation prompt").action(
2906
+ var deleteCommand5 = new Command54().name("delete").description("Delete a variable").argument("<name>", "Variable name to delete").option("-y, --yes", "Skip confirmation prompt").action(
2878
2907
  withErrorHandler(async (name, options) => {
2879
2908
  if (!options.yes) {
2880
2909
  if (!isInteractive()) {
@@ -2895,10 +2924,10 @@ var deleteCommand5 = new Command52().name("delete").description("Delete a variab
2895
2924
  );
2896
2925
 
2897
2926
  // src/commands/zero/variable/index.ts
2898
- var zeroVariableCommand = new Command53().name("variable").description("Manage variables").addCommand(listCommand9).addCommand(setCommand5).addCommand(deleteCommand5);
2927
+ var zeroVariableCommand = new Command55().name("variable").description("Manage variables").addCommand(listCommand9).addCommand(setCommand5).addCommand(deleteCommand5);
2899
2928
 
2900
2929
  // src/commands/zero/whoami.ts
2901
- import { Command as Command54 } from "commander";
2930
+ import { Command as Command56 } from "commander";
2902
2931
  import chalk45 from "chalk";
2903
2932
  function isInsideSandbox() {
2904
2933
  return !!process.env.ZERO_AGENT_ID;
@@ -2935,7 +2964,7 @@ async function showLocalInfo() {
2935
2964
  console.log(` Active: ${activeOrg}`);
2936
2965
  }
2937
2966
  }
2938
- var zeroWhoamiCommand = new Command54().name("whoami").description("Show current identity and environment information").action(
2967
+ var zeroWhoamiCommand = new Command56().name("whoami").description("Show current identity and environment information").action(
2939
2968
  withErrorHandler(async () => {
2940
2969
  if (isInsideSandbox()) {
2941
2970
  await showSandboxInfo();
@@ -2949,6 +2978,7 @@ var zeroWhoamiCommand = new Command54().name("whoami").description("Show current
2949
2978
  var COMMAND_CAPABILITY_MAP = {
2950
2979
  agent: "agent:read",
2951
2980
  schedule: "schedule:read",
2981
+ doctor: null,
2952
2982
  slack: "slack:write",
2953
2983
  whoami: null
2954
2984
  };
@@ -2956,6 +2986,7 @@ var DEFAULT_COMMANDS = [
2956
2986
  zeroOrgCommand,
2957
2987
  zeroAgentCommand,
2958
2988
  zeroConnectorCommand,
2989
+ zeroDoctorCommand,
2959
2990
  zeroPreferenceCommand,
2960
2991
  zeroScheduleCommand,
2961
2992
  zeroSecretCommand,
@@ -2977,8 +3008,8 @@ function registerZeroCommands(prog, commands) {
2977
3008
  prog.addCommand(cmd, hidden ? { hidden: true } : {});
2978
3009
  }
2979
3010
  }
2980
- var program = new Command55();
2981
- program.name("zero").description("Zero CLI - Manage your zero platform").version("9.83.3");
3011
+ var program = new Command57();
3012
+ program.name("zero").description("Zero CLI - Manage your zero platform").version("9.84.0");
2982
3013
  if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
2983
3014
  configureGlobalProxyFromEnv();
2984
3015
  registerZeroCommands(program);