@vm0/cli 6.3.1 → 6.4.1

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/index.js +52 -26
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -641,7 +641,7 @@ var unifiedRunRequestSchema = z4.object({
641
641
  volumeVersions: z4.record(z4.string(), z4.string()).optional(),
642
642
  // Debug flag to force real Claude in mock environments (internal use only)
643
643
  debugNoMockClaude: z4.boolean().optional(),
644
- // Model provider for automatic LLM credential injection
644
+ // Model provider for automatic credential injection
645
645
  modelProvider: z4.string().optional(),
646
646
  // Required
647
647
  prompt: z4.string().min(1, "Missing prompt")
@@ -1753,19 +1753,22 @@ var MODEL_PROVIDER_TYPES = {
1753
1753
  framework: "claude-code",
1754
1754
  credentialName: "CLAUDE_CODE_OAUTH_TOKEN",
1755
1755
  label: "Claude Code (OAuth Token)",
1756
- credentialLabel: "OAuth token"
1756
+ credentialLabel: "OAuth token",
1757
+ helpText: "To get your OAuth token, run: claude setup-token\n(Requires Claude Pro or Max subscription)"
1757
1758
  },
1758
1759
  "anthropic-api-key": {
1759
1760
  framework: "claude-code",
1760
1761
  credentialName: "ANTHROPIC_API_KEY",
1761
1762
  label: "Anthropic API Key",
1762
- credentialLabel: "API key"
1763
+ credentialLabel: "API key",
1764
+ helpText: "Get your API key at: https://console.anthropic.com/settings/keys"
1763
1765
  },
1764
1766
  "openai-api-key": {
1765
1767
  framework: "codex",
1766
1768
  credentialName: "OPENAI_API_KEY",
1767
1769
  label: "OpenAI API Key",
1768
- credentialLabel: "API key"
1770
+ credentialLabel: "API key",
1771
+ helpText: "Get your API key at: https://platform.openai.com/api-keys"
1769
1772
  }
1770
1773
  };
1771
1774
  var modelProviderTypeSchema = z13.enum([
@@ -2874,13 +2877,39 @@ function getFrameworkDisplayName(framework) {
2874
2877
  }
2875
2878
 
2876
2879
  // ../../packages/core/src/feature-switch.ts
2877
- var PricingSwitch = {
2878
- key: "pricing" /* Pricing */,
2879
- maintainer: "ethan@vm0.ai",
2880
- enabled: false
2881
- };
2882
2880
  var FEATURE_SWITCHES = {
2883
- ["pricing" /* Pricing */]: PricingSwitch
2881
+ ["pricing" /* Pricing */]: {
2882
+ maintainer: "ethan@vm0.ai",
2883
+ enabled: false
2884
+ },
2885
+ ["dummy" /* Dummy */]: {
2886
+ maintainer: "ethan@vm0.ai",
2887
+ enabled: true
2888
+ },
2889
+ ["platformOnboarding" /* PlatformOnboarding */]: {
2890
+ maintainer: "ethan@vm0.ai",
2891
+ enabled: false
2892
+ },
2893
+ ["platformAgents" /* PlatformAgents */]: {
2894
+ maintainer: "ethan@vm0.ai",
2895
+ enabled: false
2896
+ },
2897
+ ["platformSecrets" /* PlatformSecrets */]: {
2898
+ maintainer: "ethan@vm0.ai",
2899
+ enabled: false
2900
+ },
2901
+ ["platformArtifacts" /* PlatformArtifacts */]: {
2902
+ maintainer: "ethan@vm0.ai",
2903
+ enabled: false
2904
+ },
2905
+ ["platformApiKeys" /* PlatformApiKeys */]: {
2906
+ maintainer: "ethan@vm0.ai",
2907
+ enabled: false
2908
+ },
2909
+ ["platformLogs" /* PlatformLogs */]: {
2910
+ maintainer: "ethan@vm0.ai",
2911
+ enabled: false
2912
+ }
2884
2913
  };
2885
2914
 
2886
2915
  // src/lib/api/core/client-factory.ts
@@ -6137,7 +6166,7 @@ var mainRunCommand = new Command2().name("run").description("Execute an agent").
6137
6166
  "Use realtime event streaming instead of polling (experimental)"
6138
6167
  ).option(
6139
6168
  "--model-provider <type>",
6140
- "Override model provider for LLM credentials (e.g., anthropic-api-key)"
6169
+ "Override model provider (e.g., anthropic-api-key)"
6141
6170
  ).addOption(new Option("--debug-no-mock-claude").hideHelp()).action(
6142
6171
  // eslint-disable-next-line complexity -- TODO: refactor complex function
6143
6172
  async (identifier, prompt, options) => {
@@ -6322,7 +6351,7 @@ var resumeCommand = new Command3().name("resume").description("Resume an agent r
6322
6351
  "Use realtime event streaming instead of polling (experimental)"
6323
6352
  ).option(
6324
6353
  "--model-provider <type>",
6325
- "Override model provider for LLM credentials (e.g., anthropic-api-key)"
6354
+ "Override model provider (e.g., anthropic-api-key)"
6326
6355
  ).addOption(new Option2("--debug-no-mock-claude").hideHelp()).action(
6327
6356
  // eslint-disable-next-line complexity -- TODO: refactor complex function
6328
6357
  async (checkpointId, prompt, options, command) => {
@@ -6443,7 +6472,7 @@ var continueCommand = new Command4().name("continue").description(
6443
6472
  "Use realtime event streaming instead of polling (experimental)"
6444
6473
  ).option(
6445
6474
  "--model-provider <type>",
6446
- "Override model provider for LLM credentials (e.g., anthropic-api-key)"
6475
+ "Override model provider (e.g., anthropic-api-key)"
6447
6476
  ).addOption(new Option3("--debug-no-mock-claude").hideHelp()).action(
6448
6477
  // eslint-disable-next-line complexity -- TODO: refactor complex function
6449
6478
  async (agentSessionId, prompt, options, command) => {
@@ -7860,7 +7889,7 @@ cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip c
7860
7889
  // eslint-disable-next-line complexity -- TODO: refactor complex function
7861
7890
  async (prompt, options) => {
7862
7891
  if (!options.noAutoUpdate) {
7863
- const shouldExit = await checkAndUpgrade("6.3.1", prompt);
7892
+ const shouldExit = await checkAndUpgrade("6.4.1", prompt);
7864
7893
  if (shouldExit) {
7865
7894
  process.exit(0);
7866
7895
  }
@@ -8867,9 +8896,6 @@ agents:
8867
8896
  # Agent skills - see https://github.com/vm0-ai/vm0-skills for available skills
8868
8897
  # skills:
8869
8898
  # - https://github.com/vm0-ai/vm0-skills/tree/main/github
8870
- environment:
8871
- # Get token using: claude setup-token, then add to .env file
8872
- CLAUDE_CODE_OAUTH_TOKEN: \${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
8873
8899
  `;
8874
8900
  }
8875
8901
  function generateAgentsMd() {
@@ -8946,10 +8972,11 @@ var initCommand3 = new Command27().name("init").description("Initialize a new VM
8946
8972
  console.log();
8947
8973
  console.log("Next steps:");
8948
8974
  console.log(
8949
- ` 1. Get your Claude Code token: ${chalk30.cyan("claude setup-token")}`
8975
+ ` 1. Set model provider (one-time): ${chalk30.cyan("vm0 model-provider setup")}`
8976
+ );
8977
+ console.log(
8978
+ ` 2. Edit ${chalk30.cyan("AGENTS.md")} to customize your agent's workflow`
8950
8979
  );
8951
- console.log(` 2. Set the environment variable (or add to .env file):`);
8952
- console.log(chalk30.dim(` export CLAUDE_CODE_OAUTH_TOKEN=<your-token>`));
8953
8980
  console.log(
8954
8981
  ` 3. Run your agent: ${chalk30.cyan(`vm0 cook "let's start working."`)}`
8955
8982
  );
@@ -10666,13 +10693,9 @@ import { Command as Command41 } from "commander";
10666
10693
  // src/commands/credential/list.ts
10667
10694
  import { Command as Command38 } from "commander";
10668
10695
  import chalk40 from "chalk";
10669
- var listCommand5 = new Command38().name("list").description("List all credentials").option("--json", "Output in JSON format").action(async (options) => {
10696
+ var listCommand5 = new Command38().name("list").alias("ls").description("List all credentials").action(async () => {
10670
10697
  try {
10671
10698
  const result = await listCredentials();
10672
- if (options.json) {
10673
- console.log(JSON.stringify(result.credentials, null, 2));
10674
- return;
10675
- }
10676
10699
  if (result.credentials.length === 0) {
10677
10700
  console.log(chalk40.dim("No credentials found."));
10678
10701
  console.log();
@@ -10947,6 +10970,9 @@ var setupCommand = new Command43().name("setup").description("Configure a model
10947
10970
  }
10948
10971
  }
10949
10972
  const config = MODEL_PROVIDER_TYPES[type];
10973
+ console.log();
10974
+ console.log(chalk44.dim(config.helpText));
10975
+ console.log();
10950
10976
  const credentialResponse = await prompts3(
10951
10977
  {
10952
10978
  type: "password",
@@ -11063,7 +11089,7 @@ var modelProviderCommand = new Command46().name("model-provider").description("M
11063
11089
 
11064
11090
  // src/index.ts
11065
11091
  var program = new Command47();
11066
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("6.3.1");
11092
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("6.4.1");
11067
11093
  program.command("info").description("Display environment information").action(async () => {
11068
11094
  console.log(chalk47.bold("System Information:"));
11069
11095
  console.log(`Node Version: ${process.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "6.3.1",
3
+ "version": "6.4.1",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",