@vm0/cli 9.29.0 → 9.29.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.
- package/index.js +20 -14
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -62,7 +62,7 @@ if (DSN) {
|
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
Sentry.setContext("cli", {
|
|
65
|
-
version: "9.29.
|
|
65
|
+
version: "9.29.1",
|
|
66
66
|
command: process.argv.slice(2).join(" ")
|
|
67
67
|
});
|
|
68
68
|
Sentry.setContext("runtime", {
|
|
@@ -268,6 +268,9 @@ var loginCommand = new Command().name("login").description("Log in to VM0 (use V
|
|
|
268
268
|
if (error instanceof Error) {
|
|
269
269
|
console.error(chalk2.red(`\u2717 Login failed`));
|
|
270
270
|
console.error(chalk2.dim(` ${error.message}`));
|
|
271
|
+
if (error.cause instanceof Error) {
|
|
272
|
+
console.error(chalk2.dim(` Cause: ${error.cause.message}`));
|
|
273
|
+
}
|
|
271
274
|
} else {
|
|
272
275
|
console.error(chalk2.red("\u2717 An unexpected error occurred"));
|
|
273
276
|
}
|
|
@@ -499,7 +502,7 @@ async function waitForSilentUpgrade(timeout = TIMEOUT_MS) {
|
|
|
499
502
|
// src/commands/info/index.ts
|
|
500
503
|
var CONFIG_PATH = join2(homedir2(), ".vm0", "config.json");
|
|
501
504
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
502
|
-
console.log(chalk4.bold(`VM0 CLI v${"9.29.
|
|
505
|
+
console.log(chalk4.bold(`VM0 CLI v${"9.29.1"}`));
|
|
503
506
|
console.log();
|
|
504
507
|
const config = await loadConfig();
|
|
505
508
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -6114,7 +6117,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
6114
6117
|
options.autoUpdate = false;
|
|
6115
6118
|
}
|
|
6116
6119
|
if (options.autoUpdate !== false) {
|
|
6117
|
-
await startSilentUpgrade("9.29.
|
|
6120
|
+
await startSilentUpgrade("9.29.1");
|
|
6118
6121
|
}
|
|
6119
6122
|
try {
|
|
6120
6123
|
let result;
|
|
@@ -8336,7 +8339,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
8336
8339
|
async (identifier, prompt, options) => {
|
|
8337
8340
|
try {
|
|
8338
8341
|
if (options.autoUpdate !== false) {
|
|
8339
|
-
await startSilentUpgrade("9.29.
|
|
8342
|
+
await startSilentUpgrade("9.29.1");
|
|
8340
8343
|
}
|
|
8341
8344
|
const { scope, name, version } = parseIdentifier(identifier);
|
|
8342
8345
|
if (scope && !options.experimentalSharedAgent) {
|
|
@@ -10003,7 +10006,7 @@ var cookAction = new Command27().name("cook").description("Quick start: prepare,
|
|
|
10003
10006
|
).option("-y, --yes", "Skip confirmation prompts").option("-v, --verbose", "Show full tool inputs and outputs").addOption(new Option5("--debug-no-mock-claude").hideHelp()).addOption(new Option5("--no-auto-update").hideHelp()).action(
|
|
10004
10007
|
async (prompt, options) => {
|
|
10005
10008
|
if (options.autoUpdate !== false) {
|
|
10006
|
-
const shouldExit = await checkAndUpgrade("9.29.
|
|
10009
|
+
const shouldExit = await checkAndUpgrade("9.29.1", prompt);
|
|
10007
10010
|
if (shouldExit) {
|
|
10008
10011
|
process.exit(0);
|
|
10009
10012
|
}
|
|
@@ -13742,15 +13745,15 @@ async function pollForToken(apiUrl, deviceAuth, callbacks) {
|
|
|
13742
13745
|
async function runAuthFlow(callbacks, apiUrl) {
|
|
13743
13746
|
const targetApiUrl = apiUrl ?? await getApiUrl();
|
|
13744
13747
|
callbacks?.onInitiating?.();
|
|
13745
|
-
const deviceAuth = await requestDeviceCode2(targetApiUrl);
|
|
13746
|
-
const verificationUrl = `${targetApiUrl}${deviceAuth.verification_path}`;
|
|
13747
|
-
const expiresInMinutes = Math.floor(deviceAuth.expires_in / 60);
|
|
13748
|
-
callbacks?.onDeviceCodeReady?.(
|
|
13749
|
-
verificationUrl,
|
|
13750
|
-
deviceAuth.user_code,
|
|
13751
|
-
expiresInMinutes
|
|
13752
|
-
);
|
|
13753
13748
|
try {
|
|
13749
|
+
const deviceAuth = await requestDeviceCode2(targetApiUrl);
|
|
13750
|
+
const verificationUrl = `${targetApiUrl}${deviceAuth.verification_path}`;
|
|
13751
|
+
const expiresInMinutes = Math.floor(deviceAuth.expires_in / 60);
|
|
13752
|
+
callbacks?.onDeviceCodeReady?.(
|
|
13753
|
+
verificationUrl,
|
|
13754
|
+
deviceAuth.user_code,
|
|
13755
|
+
expiresInMinutes
|
|
13756
|
+
);
|
|
13754
13757
|
const accessToken = await pollForToken(targetApiUrl, deviceAuth, callbacks);
|
|
13755
13758
|
await saveConfig({
|
|
13756
13759
|
token: accessToken,
|
|
@@ -13950,6 +13953,9 @@ async function handleAuthentication(ctx) {
|
|
|
13950
13953
|
onError: (error) => {
|
|
13951
13954
|
console.error(chalk70.red(`
|
|
13952
13955
|
\u2717 ${error.message}`));
|
|
13956
|
+
if (error.cause instanceof Error) {
|
|
13957
|
+
console.error(chalk70.dim(` Cause: ${error.cause.message}`));
|
|
13958
|
+
}
|
|
13953
13959
|
process.exit(1);
|
|
13954
13960
|
}
|
|
13955
13961
|
});
|
|
@@ -14355,7 +14361,7 @@ var devToolCommand = new Command75().name("dev-tool").description("Developer too
|
|
|
14355
14361
|
|
|
14356
14362
|
// src/index.ts
|
|
14357
14363
|
var program = new Command76();
|
|
14358
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.29.
|
|
14364
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.29.1");
|
|
14359
14365
|
program.addCommand(authCommand);
|
|
14360
14366
|
program.addCommand(infoCommand);
|
|
14361
14367
|
program.addCommand(composeCommand);
|