@vm0/cli 4.21.0 → 4.21.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 +18 -13
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -12559,7 +12559,8 @@ var eventsResponseSchema = external_exports.object({
|
|
|
12559
12559
|
events: external_exports.array(runEventSchema),
|
|
12560
12560
|
hasMore: external_exports.boolean(),
|
|
12561
12561
|
nextSequence: external_exports.number(),
|
|
12562
|
-
run: runStateSchema
|
|
12562
|
+
run: runStateSchema,
|
|
12563
|
+
provider: external_exports.string()
|
|
12563
12564
|
});
|
|
12564
12565
|
var runsMainContract = c3.router({
|
|
12565
12566
|
/**
|
|
@@ -12640,7 +12641,8 @@ var metricsResponseSchema = external_exports.object({
|
|
|
12640
12641
|
});
|
|
12641
12642
|
var agentEventsResponseSchema = external_exports.object({
|
|
12642
12643
|
events: external_exports.array(runEventSchema),
|
|
12643
|
-
hasMore: external_exports.boolean()
|
|
12644
|
+
hasMore: external_exports.boolean(),
|
|
12645
|
+
provider: external_exports.string()
|
|
12644
12646
|
});
|
|
12645
12647
|
var networkLogEntrySchema = external_exports.object({
|
|
12646
12648
|
timestamp: external_exports.string(),
|
|
@@ -15438,7 +15440,7 @@ async function pollEvents(runId, options) {
|
|
|
15438
15440
|
});
|
|
15439
15441
|
for (const event of response.events) {
|
|
15440
15442
|
const eventData = event.eventData;
|
|
15441
|
-
if (
|
|
15443
|
+
if (response.provider === "codex") {
|
|
15442
15444
|
CodexEventRenderer.render(eventData);
|
|
15443
15445
|
} else {
|
|
15444
15446
|
const parsed = parseEvent(eventData);
|
|
@@ -16722,7 +16724,7 @@ async function generateEnvPlaceholders(missingVars, envFilePath) {
|
|
|
16722
16724
|
}
|
|
16723
16725
|
}
|
|
16724
16726
|
var cookCommand = new Command13().name("cook").description("One-click agent preparation and execution from vm0.yaml").argument("[prompt]", "Prompt for the agent").action(async (prompt) => {
|
|
16725
|
-
const shouldExit = await checkAndUpgrade("4.21.
|
|
16727
|
+
const shouldExit = await checkAndUpgrade("4.21.1", prompt);
|
|
16726
16728
|
if (shouldExit) {
|
|
16727
16729
|
process.exit(0);
|
|
16728
16730
|
}
|
|
@@ -17384,13 +17386,16 @@ function formatNetworkLog(entry) {
|
|
|
17384
17386
|
}
|
|
17385
17387
|
return `[${entry.timestamp}] ${chalk21.cyan(entry.method.padEnd(6))} ${statusColor(entry.status)} ${latencyColor(entry.latency_ms + "ms")} ${formatBytes7(entry.request_size)}/${formatBytes7(entry.response_size)} ${chalk21.gray(entry.url)}`;
|
|
17386
17388
|
}
|
|
17387
|
-
function renderAgentEvent(event) {
|
|
17388
|
-
const
|
|
17389
|
-
|
|
17390
|
-
|
|
17391
|
-
|
|
17392
|
-
parsed
|
|
17393
|
-
|
|
17389
|
+
function renderAgentEvent(event, provider) {
|
|
17390
|
+
const eventData = event.eventData;
|
|
17391
|
+
if (provider === "codex") {
|
|
17392
|
+
CodexEventRenderer.render(eventData);
|
|
17393
|
+
} else {
|
|
17394
|
+
const parsed = ClaudeEventParser.parse(eventData);
|
|
17395
|
+
if (parsed) {
|
|
17396
|
+
parsed.timestamp = new Date(event.createdAt);
|
|
17397
|
+
EventRenderer.render(parsed, { showTimestamp: true });
|
|
17398
|
+
}
|
|
17394
17399
|
}
|
|
17395
17400
|
}
|
|
17396
17401
|
function getLogType(options) {
|
|
@@ -17459,7 +17464,7 @@ async function showAgentEvents(runId, options) {
|
|
|
17459
17464
|
return;
|
|
17460
17465
|
}
|
|
17461
17466
|
for (const event of response.events) {
|
|
17462
|
-
renderAgentEvent(event);
|
|
17467
|
+
renderAgentEvent(event, response.provider);
|
|
17463
17468
|
}
|
|
17464
17469
|
if (response.hasMore) {
|
|
17465
17470
|
console.log();
|
|
@@ -17657,7 +17662,7 @@ var scopeCommand = new Command22().name("scope").description("Manage your scope
|
|
|
17657
17662
|
|
|
17658
17663
|
// src/index.ts
|
|
17659
17664
|
var program = new Command23();
|
|
17660
|
-
program.name("vm0").description("VM0 CLI - A modern build tool").version("4.21.
|
|
17665
|
+
program.name("vm0").description("VM0 CLI - A modern build tool").version("4.21.1");
|
|
17661
17666
|
program.command("info").description("Display environment information").action(async () => {
|
|
17662
17667
|
console.log(chalk24.cyan("System Information:"));
|
|
17663
17668
|
console.log(`Node Version: ${process.version}`);
|