@vm0/cli 9.145.19 → 9.146.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/{chunk-OMYARDQW.js → chunk-XQZSO44E.js} +22984 -21451
- package/{chunk-OMYARDQW.js.map → chunk-XQZSO44E.js.map} +1 -1
- package/index.js +12 -23
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/zero.js +8 -5
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -57,15 +57,17 @@ import {
|
|
|
57
57
|
prepareStorage,
|
|
58
58
|
promptConfirm,
|
|
59
59
|
promptText,
|
|
60
|
+
remoteAgentCommand,
|
|
60
61
|
renderRunCreated,
|
|
61
62
|
require_dist,
|
|
63
|
+
safeSpawn,
|
|
62
64
|
saveConfig,
|
|
63
65
|
searchLogs,
|
|
64
66
|
showNextSteps,
|
|
65
67
|
source_default,
|
|
66
68
|
volumeConfigSchema,
|
|
67
69
|
withErrorHandler
|
|
68
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-XQZSO44E.js";
|
|
69
71
|
import {
|
|
70
72
|
__toESM,
|
|
71
73
|
init_esm_shims
|
|
@@ -254,20 +256,6 @@ import { join } from "path";
|
|
|
254
256
|
|
|
255
257
|
// src/lib/utils/update-checker.ts
|
|
256
258
|
init_esm_shims();
|
|
257
|
-
|
|
258
|
-
// src/lib/utils/spawn.ts
|
|
259
|
-
init_esm_shims();
|
|
260
|
-
import { spawn } from "child_process";
|
|
261
|
-
function safeSpawn(command, args, options) {
|
|
262
|
-
const isWindows = process.platform === "win32";
|
|
263
|
-
const resolvedCommand = isWindows ? `${command}.cmd` : command;
|
|
264
|
-
return spawn(resolvedCommand, args, {
|
|
265
|
-
...options,
|
|
266
|
-
shell: isWindows
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// src/lib/utils/update-checker.ts
|
|
271
259
|
var PACKAGE_NAME = "@vm0/cli";
|
|
272
260
|
var NPM_REGISTRY_URL = `https://registry.npmjs.org/${encodeURIComponent(PACKAGE_NAME)}/latest`;
|
|
273
261
|
var TIMEOUT_MS = 5e3;
|
|
@@ -398,7 +386,7 @@ function getConfigPath() {
|
|
|
398
386
|
return join(os.homedir(), ".vm0", "config.json");
|
|
399
387
|
}
|
|
400
388
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
401
|
-
console.log(source_default.bold(`VM0 CLI v${"9.
|
|
389
|
+
console.log(source_default.bold(`VM0 CLI v${"9.146.0"}`));
|
|
402
390
|
console.log();
|
|
403
391
|
const config = await loadConfig();
|
|
404
392
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -4291,7 +4279,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
4291
4279
|
options.autoUpdate = false;
|
|
4292
4280
|
}
|
|
4293
4281
|
if (options.autoUpdate !== false) {
|
|
4294
|
-
await startSilentUpgrade("9.
|
|
4282
|
+
await startSilentUpgrade("9.146.0");
|
|
4295
4283
|
}
|
|
4296
4284
|
try {
|
|
4297
4285
|
let result;
|
|
@@ -4383,7 +4371,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4383
4371
|
withErrorHandler(
|
|
4384
4372
|
async (identifier, prompt, options) => {
|
|
4385
4373
|
if (options.autoUpdate !== false) {
|
|
4386
|
-
await startSilentUpgrade("9.
|
|
4374
|
+
await startSilentUpgrade("9.146.0");
|
|
4387
4375
|
}
|
|
4388
4376
|
const { name, version } = parseIdentifier(identifier);
|
|
4389
4377
|
let composeId;
|
|
@@ -6170,13 +6158,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6170
6158
|
if (latestVersion === null) {
|
|
6171
6159
|
throw new Error("Could not check for updates. Please try again later.");
|
|
6172
6160
|
}
|
|
6173
|
-
if (latestVersion === "9.
|
|
6174
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.
|
|
6161
|
+
if (latestVersion === "9.146.0") {
|
|
6162
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.146.0"})`));
|
|
6175
6163
|
return;
|
|
6176
6164
|
}
|
|
6177
6165
|
console.log(
|
|
6178
6166
|
source_default.yellow(
|
|
6179
|
-
`Current version: ${"9.
|
|
6167
|
+
`Current version: ${"9.146.0"} -> Latest version: ${latestVersion}`
|
|
6180
6168
|
)
|
|
6181
6169
|
);
|
|
6182
6170
|
console.log();
|
|
@@ -6203,7 +6191,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6203
6191
|
const success = await performUpgrade(packageManager);
|
|
6204
6192
|
if (success) {
|
|
6205
6193
|
console.log(
|
|
6206
|
-
source_default.green(`\u2713 Upgraded from ${"9.
|
|
6194
|
+
source_default.green(`\u2713 Upgraded from ${"9.146.0"} to ${latestVersion}`)
|
|
6207
6195
|
);
|
|
6208
6196
|
return;
|
|
6209
6197
|
}
|
|
@@ -6270,7 +6258,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
6270
6258
|
|
|
6271
6259
|
// src/index.ts
|
|
6272
6260
|
var program = new Command();
|
|
6273
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
6261
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.146.0");
|
|
6274
6262
|
program.addCommand(authCommand);
|
|
6275
6263
|
program.addCommand(infoCommand);
|
|
6276
6264
|
program.addCommand(composeCommand);
|
|
@@ -6281,6 +6269,7 @@ program.addCommand(logsCommand);
|
|
|
6281
6269
|
program.addCommand(initCommand3);
|
|
6282
6270
|
program.addCommand(upgradeCommand);
|
|
6283
6271
|
program.addCommand(whoamiCommand);
|
|
6272
|
+
program.addCommand(remoteAgentCommand);
|
|
6284
6273
|
if (process.argv[1]?.endsWith("index.js") || process.argv[1]?.endsWith("index.ts") || process.argv[1]?.endsWith("vm0")) {
|
|
6285
6274
|
configureGlobalProxyFromEnv();
|
|
6286
6275
|
program.parse();
|