@vm0/cli 6.3.1 → 6.4.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 +48 -22
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -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 */]:
|
|
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
|
|
@@ -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.
|
|
7892
|
+
const shouldExit = await checkAndUpgrade("6.4.0", 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.
|
|
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").
|
|
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.
|
|
11092
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("6.4.0");
|
|
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}`);
|