@vm0/cli 9.83.2 → 9.83.3
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/{chunk-37AJL4NM.js → chunk-IFUYTPFH.js} +15 -37
- package/chunk-IFUYTPFH.js.map +1 -0
- package/index.js +12 -13
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +15 -34
- package/zero.js.map +1 -1
- package/chunk-37AJL4NM.js.map +0 -1
package/index.js
CHANGED
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
searchLogs,
|
|
52
52
|
volumeConfigSchema,
|
|
53
53
|
withErrorHandler
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-IFUYTPFH.js";
|
|
55
55
|
|
|
56
56
|
// src/index.ts
|
|
57
57
|
import { Command as Command44 } from "commander";
|
|
@@ -129,8 +129,7 @@ The code expires in ${Math.floor(deviceAuth.expires_in / 60)} minutes.`
|
|
|
129
129
|
if (tokenResult.access_token) {
|
|
130
130
|
await saveConfig({
|
|
131
131
|
token: tokenResult.access_token,
|
|
132
|
-
apiUrl: targetApiUrl
|
|
133
|
-
...tokenResult.org_slug && { activeOrg: tokenResult.org_slug }
|
|
132
|
+
apiUrl: targetApiUrl
|
|
134
133
|
});
|
|
135
134
|
console.log(chalk.green("\nAuthentication successful!"));
|
|
136
135
|
console.log("Your credentials have been saved");
|
|
@@ -437,7 +436,7 @@ function getConfigPath() {
|
|
|
437
436
|
return join(homedir(), ".vm0", "config.json");
|
|
438
437
|
}
|
|
439
438
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
440
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.83.
|
|
439
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.83.3"}`));
|
|
441
440
|
console.log();
|
|
442
441
|
const config = await loadConfig();
|
|
443
442
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1663,7 +1662,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1663
1662
|
options.autoUpdate = false;
|
|
1664
1663
|
}
|
|
1665
1664
|
if (options.autoUpdate !== false) {
|
|
1666
|
-
await startSilentUpgrade("9.83.
|
|
1665
|
+
await startSilentUpgrade("9.83.3");
|
|
1667
1666
|
}
|
|
1668
1667
|
try {
|
|
1669
1668
|
let result;
|
|
@@ -2498,7 +2497,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
2498
2497
|
withErrorHandler(
|
|
2499
2498
|
async (identifier, prompt, options) => {
|
|
2500
2499
|
if (options.autoUpdate !== false) {
|
|
2501
|
-
await startSilentUpgrade("9.83.
|
|
2500
|
+
await startSilentUpgrade("9.83.3");
|
|
2502
2501
|
}
|
|
2503
2502
|
const { org, name, version } = parseIdentifier(identifier);
|
|
2504
2503
|
let composeId;
|
|
@@ -4254,7 +4253,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
4254
4253
|
withErrorHandler(
|
|
4255
4254
|
async (prompt, options) => {
|
|
4256
4255
|
if (options.autoUpdate !== false) {
|
|
4257
|
-
const shouldExit = await checkAndUpgrade("9.83.
|
|
4256
|
+
const shouldExit = await checkAndUpgrade("9.83.3", prompt);
|
|
4258
4257
|
if (shouldExit) {
|
|
4259
4258
|
process.exit(0);
|
|
4260
4259
|
}
|
|
@@ -4994,13 +4993,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4994
4993
|
if (latestVersion === null) {
|
|
4995
4994
|
throw new Error("Could not check for updates. Please try again later.");
|
|
4996
4995
|
}
|
|
4997
|
-
if (latestVersion === "9.83.
|
|
4998
|
-
console.log(chalk36.green(`\u2713 Already up to date (${"9.83.
|
|
4996
|
+
if (latestVersion === "9.83.3") {
|
|
4997
|
+
console.log(chalk36.green(`\u2713 Already up to date (${"9.83.3"})`));
|
|
4999
4998
|
return;
|
|
5000
4999
|
}
|
|
5001
5000
|
console.log(
|
|
5002
5001
|
chalk36.yellow(
|
|
5003
|
-
`Current version: ${"9.83.
|
|
5002
|
+
`Current version: ${"9.83.3"} -> Latest version: ${latestVersion}`
|
|
5004
5003
|
)
|
|
5005
5004
|
);
|
|
5006
5005
|
console.log();
|
|
@@ -5027,7 +5026,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
5027
5026
|
const success = await performUpgrade(packageManager);
|
|
5028
5027
|
if (success) {
|
|
5029
5028
|
console.log(
|
|
5030
|
-
chalk36.green(`\u2713 Upgraded from ${"9.83.
|
|
5029
|
+
chalk36.green(`\u2713 Upgraded from ${"9.83.3"} to ${latestVersion}`)
|
|
5031
5030
|
);
|
|
5032
5031
|
return;
|
|
5033
5032
|
}
|
|
@@ -5049,7 +5048,7 @@ async function showSandboxInfo() {
|
|
|
5049
5048
|
const agentId = process.env.ZERO_AGENT_ID;
|
|
5050
5049
|
const cliAgentType = process.env.CLI_AGENT_TYPE;
|
|
5051
5050
|
const runId = process.env.VM0_RUN_ID;
|
|
5052
|
-
const activeOrg =
|
|
5051
|
+
const activeOrg = await getActiveOrg();
|
|
5053
5052
|
const apiUrl = process.env.VM0_API_URL;
|
|
5054
5053
|
const hasAgentInfo = agentId || cliAgentType;
|
|
5055
5054
|
if (hasAgentInfo) {
|
|
@@ -5095,7 +5094,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
|
|
|
5095
5094
|
|
|
5096
5095
|
// src/index.ts
|
|
5097
5096
|
var program = new Command44();
|
|
5098
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.83.
|
|
5097
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.83.3");
|
|
5099
5098
|
program.addCommand(authCommand);
|
|
5100
5099
|
program.addCommand(infoCommand);
|
|
5101
5100
|
program.addCommand(composeCommand);
|