@vm0/cli 9.142.1 → 9.144.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-MB6EHK2G.js → chunk-75VR4R5J.js} +157 -32
- package/{chunk-MB6EHK2G.js.map → chunk-75VR4R5J.js.map} +1 -1
- package/index.js +11 -11
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +219 -69
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
source_default,
|
|
66
66
|
volumeConfigSchema,
|
|
67
67
|
withErrorHandler
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-75VR4R5J.js";
|
|
69
69
|
import {
|
|
70
70
|
__toESM,
|
|
71
71
|
init_esm_shims
|
|
@@ -398,7 +398,7 @@ function getConfigPath() {
|
|
|
398
398
|
return join(homedir(), ".vm0", "config.json");
|
|
399
399
|
}
|
|
400
400
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
401
|
-
console.log(source_default.bold(`VM0 CLI v${"9.
|
|
401
|
+
console.log(source_default.bold(`VM0 CLI v${"9.144.0"}`));
|
|
402
402
|
console.log();
|
|
403
403
|
const config = await loadConfig();
|
|
404
404
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -4291,7 +4291,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
4291
4291
|
options.autoUpdate = false;
|
|
4292
4292
|
}
|
|
4293
4293
|
if (options.autoUpdate !== false) {
|
|
4294
|
-
await startSilentUpgrade("9.
|
|
4294
|
+
await startSilentUpgrade("9.144.0");
|
|
4295
4295
|
}
|
|
4296
4296
|
try {
|
|
4297
4297
|
let result;
|
|
@@ -4383,7 +4383,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4383
4383
|
withErrorHandler(
|
|
4384
4384
|
async (identifier, prompt, options) => {
|
|
4385
4385
|
if (options.autoUpdate !== false) {
|
|
4386
|
-
await startSilentUpgrade("9.
|
|
4386
|
+
await startSilentUpgrade("9.144.0");
|
|
4387
4387
|
}
|
|
4388
4388
|
const { name, version } = parseIdentifier(identifier);
|
|
4389
4389
|
let composeId;
|
|
@@ -5670,14 +5670,14 @@ function renderResults(response) {
|
|
|
5670
5670
|
);
|
|
5671
5671
|
}
|
|
5672
5672
|
}
|
|
5673
|
-
var searchCommand = new Command().name("search").description("Search agent events across runs").argument("<keyword>", "Search keyword").option("-A, --after-context <n>", "Show n events after each match").option("-B, --before-context <n>", "Show n events before each match").option("-C, --context <n>", "Show n events before and after each match").option("--agent <
|
|
5673
|
+
var searchCommand = new Command().name("search").description("Search agent events across runs").argument("<keyword>", "Search keyword").option("-A, --after-context <n>", "Show n events after each match").option("-B, --before-context <n>", "Show n events before each match").option("-C, --context <n>", "Show n events before and after each match").option("--agent <id>", "Filter by agent ID").option("--run <id>", "Filter by specific run ID").option("--since <time>", "Search logs since (default: 7d)").option("--limit <n>", "Maximum number of matches (default: 20)").action(
|
|
5674
5674
|
withErrorHandler(async (keyword, options) => {
|
|
5675
5675
|
const { before, after } = parseContextOptions(options);
|
|
5676
5676
|
const since = options.since ? parseTime(options.since) : Date.now() - SEVEN_DAYS_MS;
|
|
5677
5677
|
const limit = parseLimit2(options.limit);
|
|
5678
5678
|
const response = await searchLogs({
|
|
5679
5679
|
keyword,
|
|
5680
|
-
|
|
5680
|
+
agentId: options.agent,
|
|
5681
5681
|
runId: options.run,
|
|
5682
5682
|
since,
|
|
5683
5683
|
limit,
|
|
@@ -6170,13 +6170,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6170
6170
|
if (latestVersion === null) {
|
|
6171
6171
|
throw new Error("Could not check for updates. Please try again later.");
|
|
6172
6172
|
}
|
|
6173
|
-
if (latestVersion === "9.
|
|
6174
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.
|
|
6173
|
+
if (latestVersion === "9.144.0") {
|
|
6174
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.144.0"})`));
|
|
6175
6175
|
return;
|
|
6176
6176
|
}
|
|
6177
6177
|
console.log(
|
|
6178
6178
|
source_default.yellow(
|
|
6179
|
-
`Current version: ${"9.
|
|
6179
|
+
`Current version: ${"9.144.0"} -> Latest version: ${latestVersion}`
|
|
6180
6180
|
)
|
|
6181
6181
|
);
|
|
6182
6182
|
console.log();
|
|
@@ -6203,7 +6203,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6203
6203
|
const success = await performUpgrade(packageManager);
|
|
6204
6204
|
if (success) {
|
|
6205
6205
|
console.log(
|
|
6206
|
-
source_default.green(`\u2713 Upgraded from ${"9.
|
|
6206
|
+
source_default.green(`\u2713 Upgraded from ${"9.144.0"} to ${latestVersion}`)
|
|
6207
6207
|
);
|
|
6208
6208
|
return;
|
|
6209
6209
|
}
|
|
@@ -6270,7 +6270,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
6270
6270
|
|
|
6271
6271
|
// src/index.ts
|
|
6272
6272
|
var program = new Command();
|
|
6273
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
6273
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.144.0");
|
|
6274
6274
|
program.addCommand(authCommand);
|
|
6275
6275
|
program.addCommand(infoCommand);
|
|
6276
6276
|
program.addCommand(composeCommand);
|