@vm0/cli 9.62.1 → 9.62.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/index.js +48 -39
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -45,7 +45,7 @@ if (DSN) {
|
|
|
45
45
|
Sentry.init({
|
|
46
46
|
dsn: DSN,
|
|
47
47
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
48
|
-
release: "9.62.
|
|
48
|
+
release: "9.62.3",
|
|
49
49
|
sendDefaultPii: false,
|
|
50
50
|
tracesSampleRate: 0,
|
|
51
51
|
shutdownTimeout: 500,
|
|
@@ -64,7 +64,7 @@ if (DSN) {
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
Sentry.setContext("cli", {
|
|
67
|
-
version: "9.62.
|
|
67
|
+
version: "9.62.3",
|
|
68
68
|
command: process.argv.slice(2).join(" ")
|
|
69
69
|
});
|
|
70
70
|
Sentry.setContext("runtime", {
|
|
@@ -673,7 +673,7 @@ function getConfigPath() {
|
|
|
673
673
|
return join2(homedir2(), ".vm0", "config.json");
|
|
674
674
|
}
|
|
675
675
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
676
|
-
console.log(chalk4.bold(`VM0 CLI v${"9.62.
|
|
676
|
+
console.log(chalk4.bold(`VM0 CLI v${"9.62.3"}`));
|
|
677
677
|
console.log();
|
|
678
678
|
const config = await loadConfig();
|
|
679
679
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1606,10 +1606,9 @@ var logsSearchContract = c3.router({
|
|
|
1606
1606
|
});
|
|
1607
1607
|
var queueEntrySchema = z6.object({
|
|
1608
1608
|
position: z6.number(),
|
|
1609
|
-
agentName: z6.string(),
|
|
1610
|
-
userEmail: z6.string(),
|
|
1609
|
+
agentName: z6.string().nullable(),
|
|
1610
|
+
userEmail: z6.string().nullable(),
|
|
1611
1611
|
createdAt: z6.string(),
|
|
1612
|
-
isOwner: z6.boolean(),
|
|
1613
1612
|
runId: z6.string().nullable()
|
|
1614
1613
|
});
|
|
1615
1614
|
var concurrencyInfoSchema = z6.object({
|
|
@@ -2738,7 +2737,7 @@ var modelProviderTypeSchema = z14.enum([
|
|
|
2738
2737
|
"azure-foundry",
|
|
2739
2738
|
"aws-bedrock"
|
|
2740
2739
|
]);
|
|
2741
|
-
var modelProviderFrameworkSchema = z14.enum(["claude-code"
|
|
2740
|
+
var modelProviderFrameworkSchema = z14.enum(["claude-code"]);
|
|
2742
2741
|
function hasAuthMethods(type2) {
|
|
2743
2742
|
const config = MODEL_PROVIDER_TYPES[type2];
|
|
2744
2743
|
return "authMethods" in config;
|
|
@@ -7124,9 +7123,6 @@ function getLegacySystemTemplateWarning(legacyFormat) {
|
|
|
7124
7123
|
if (legacyFormat === "vm0-claude-code") {
|
|
7125
7124
|
return `Warning: "${legacyFormat}" format is deprecated. Use "vm0/claude-code" instead.`;
|
|
7126
7125
|
}
|
|
7127
|
-
if (legacyFormat === "vm0-codex") {
|
|
7128
|
-
return `Warning: "${legacyFormat}" format is deprecated. Use "vm0/codex" instead.`;
|
|
7129
|
-
}
|
|
7130
7126
|
if (legacyFormat.startsWith("vm0-github-cli")) {
|
|
7131
7127
|
return `Warning: "${legacyFormat}" is deprecated. GitHub CLI is now included in the base image.`;
|
|
7132
7128
|
}
|
|
@@ -7142,7 +7138,7 @@ function getSkillStorageName(fullPath) {
|
|
|
7142
7138
|
}
|
|
7143
7139
|
|
|
7144
7140
|
// ../../packages/core/src/frameworks.ts
|
|
7145
|
-
var SUPPORTED_FRAMEWORKS = ["claude-code"
|
|
7141
|
+
var SUPPORTED_FRAMEWORKS = ["claude-code"];
|
|
7146
7142
|
function isSupportedFramework(framework) {
|
|
7147
7143
|
if (!framework) return false;
|
|
7148
7144
|
return SUPPORTED_FRAMEWORKS.includes(framework);
|
|
@@ -7163,16 +7159,14 @@ function getValidatedFramework(framework) {
|
|
|
7163
7159
|
return framework;
|
|
7164
7160
|
}
|
|
7165
7161
|
var FRAMEWORK_DISPLAY_NAMES = {
|
|
7166
|
-
"claude-code": "Claude Code"
|
|
7167
|
-
codex: "Codex"
|
|
7162
|
+
"claude-code": "Claude Code"
|
|
7168
7163
|
};
|
|
7169
7164
|
function getFrameworkDisplayName(framework) {
|
|
7170
7165
|
assertSupportedFramework(framework);
|
|
7171
7166
|
return FRAMEWORK_DISPLAY_NAMES[framework];
|
|
7172
7167
|
}
|
|
7173
7168
|
var FRAMEWORK_INSTRUCTIONS_FILENAMES = {
|
|
7174
|
-
"claude-code": "CLAUDE.md"
|
|
7175
|
-
codex: "AGENTS.md"
|
|
7169
|
+
"claude-code": "CLAUDE.md"
|
|
7176
7170
|
};
|
|
7177
7171
|
function getInstructionsFilename(framework) {
|
|
7178
7172
|
const validated = getValidatedFramework(framework);
|
|
@@ -7412,27 +7406,29 @@ function parseSkillFrontmatter(content) {
|
|
|
7412
7406
|
}
|
|
7413
7407
|
|
|
7414
7408
|
// ../../packages/core/src/instructions-frontmatter.ts
|
|
7415
|
-
var
|
|
7416
|
-
var
|
|
7417
|
-
|
|
7409
|
+
var LEGACY_PROFILE_START = "<!-- ZERO_PROFILE";
|
|
7410
|
+
var LEGACY_PROFILE_END = "ZERO_PROFILE -->";
|
|
7411
|
+
var PROFILE_START = "[AGENT_PROFILE]";
|
|
7412
|
+
var PROFILE_END = "[/AGENT_PROFILE]";
|
|
7413
|
+
function stripMarkerBlocks(content, startMarker, endMarker) {
|
|
7418
7414
|
let result = "";
|
|
7419
7415
|
let searchFrom = 0;
|
|
7420
7416
|
while (searchFrom < content.length) {
|
|
7421
|
-
const startIdx = content.indexOf(
|
|
7417
|
+
const startIdx = content.indexOf(startMarker + "\n", searchFrom);
|
|
7422
7418
|
if (startIdx === -1) {
|
|
7423
7419
|
result += content.slice(searchFrom);
|
|
7424
7420
|
break;
|
|
7425
7421
|
}
|
|
7426
7422
|
result += content.slice(searchFrom, startIdx);
|
|
7427
7423
|
const endIdx = content.indexOf(
|
|
7428
|
-
|
|
7429
|
-
startIdx +
|
|
7424
|
+
endMarker,
|
|
7425
|
+
startIdx + startMarker.length + 1
|
|
7430
7426
|
);
|
|
7431
7427
|
if (endIdx === -1) {
|
|
7432
7428
|
result += content.slice(startIdx);
|
|
7433
7429
|
break;
|
|
7434
7430
|
}
|
|
7435
|
-
let afterEnd = endIdx +
|
|
7431
|
+
let afterEnd = endIdx + endMarker.length;
|
|
7436
7432
|
if (content[afterEnd] === "\n") {
|
|
7437
7433
|
afterEnd++;
|
|
7438
7434
|
}
|
|
@@ -7440,6 +7436,14 @@ function stripProfileBlocks(content) {
|
|
|
7440
7436
|
}
|
|
7441
7437
|
return result;
|
|
7442
7438
|
}
|
|
7439
|
+
function stripProfileBlocks(content) {
|
|
7440
|
+
const withoutLegacy = stripMarkerBlocks(
|
|
7441
|
+
content,
|
|
7442
|
+
LEGACY_PROFILE_START,
|
|
7443
|
+
LEGACY_PROFILE_END
|
|
7444
|
+
);
|
|
7445
|
+
return stripMarkerBlocks(withoutLegacy, PROFILE_START, PROFILE_END);
|
|
7446
|
+
}
|
|
7443
7447
|
var LEGACY_METADATA_KEYS = /* @__PURE__ */ new Set(["name", "tone"]);
|
|
7444
7448
|
function stripLegacyFrontmatter(content) {
|
|
7445
7449
|
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---(\r?\n|$)/);
|
|
@@ -7497,15 +7501,14 @@ ${paragraph}
|
|
|
7497
7501
|
${PROFILE_END}`;
|
|
7498
7502
|
const stripped = stripProfileBlocks(
|
|
7499
7503
|
stripLegacyFrontmatter(content)
|
|
7500
|
-
).
|
|
7504
|
+
).trimStart();
|
|
7501
7505
|
if (!stripped) {
|
|
7502
7506
|
return `${block}
|
|
7503
7507
|
`;
|
|
7504
7508
|
}
|
|
7505
|
-
return `${
|
|
7509
|
+
return `${block}
|
|
7506
7510
|
|
|
7507
|
-
${
|
|
7508
|
-
`;
|
|
7511
|
+
${stripped}`;
|
|
7509
7512
|
}
|
|
7510
7513
|
|
|
7511
7514
|
// src/lib/api/core/http.ts
|
|
@@ -9507,7 +9510,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
9507
9510
|
options.autoUpdate = false;
|
|
9508
9511
|
}
|
|
9509
9512
|
if (options.autoUpdate !== false) {
|
|
9510
|
-
await startSilentUpgrade("9.62.
|
|
9513
|
+
await startSilentUpgrade("9.62.3");
|
|
9511
9514
|
}
|
|
9512
9515
|
try {
|
|
9513
9516
|
let result;
|
|
@@ -10329,7 +10332,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
10329
10332
|
withErrorHandler(
|
|
10330
10333
|
async (identifier, prompt, options) => {
|
|
10331
10334
|
if (options.autoUpdate !== false) {
|
|
10332
|
-
await startSilentUpgrade("9.62.
|
|
10335
|
+
await startSilentUpgrade("9.62.3");
|
|
10333
10336
|
}
|
|
10334
10337
|
const { org, name, version } = parseIdentifier(identifier);
|
|
10335
10338
|
let composeId;
|
|
@@ -10726,8 +10729,14 @@ var queueCommand = new Command13().name("queue").description("Show org run queue
|
|
|
10726
10729
|
);
|
|
10727
10730
|
console.log();
|
|
10728
10731
|
const posWidth = Math.max(1, String(queue.length).length);
|
|
10729
|
-
const agentWidth = Math.max(
|
|
10730
|
-
|
|
10732
|
+
const agentWidth = Math.max(
|
|
10733
|
+
5,
|
|
10734
|
+
...queue.map((e) => (e.agentName ?? "-").length)
|
|
10735
|
+
);
|
|
10736
|
+
const emailWidth = Math.max(
|
|
10737
|
+
4,
|
|
10738
|
+
...queue.map((e) => (e.userEmail ?? "-").length)
|
|
10739
|
+
);
|
|
10731
10740
|
const header = [
|
|
10732
10741
|
"#".padEnd(posWidth),
|
|
10733
10742
|
"AGENT".padEnd(agentWidth),
|
|
@@ -10736,11 +10745,11 @@ var queueCommand = new Command13().name("queue").description("Show org run queue
|
|
|
10736
10745
|
].join(" ");
|
|
10737
10746
|
console.log(chalk12.dim(header));
|
|
10738
10747
|
for (const entry of queue) {
|
|
10739
|
-
const marker = entry.
|
|
10748
|
+
const marker = entry.runId !== null ? chalk12.cyan(" \u2190 you") : "";
|
|
10740
10749
|
const row = [
|
|
10741
10750
|
String(entry.position).padEnd(posWidth),
|
|
10742
|
-
entry.agentName.padEnd(agentWidth),
|
|
10743
|
-
entry.userEmail.padEnd(emailWidth),
|
|
10751
|
+
(entry.agentName ?? "-").padEnd(agentWidth),
|
|
10752
|
+
(entry.userEmail ?? "-").padEnd(emailWidth),
|
|
10744
10753
|
formatRelativeTime(entry.createdAt)
|
|
10745
10754
|
].join(" ");
|
|
10746
10755
|
console.log(row + marker);
|
|
@@ -12043,7 +12052,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
12043
12052
|
withErrorHandler(
|
|
12044
12053
|
async (prompt, options) => {
|
|
12045
12054
|
if (options.autoUpdate !== false) {
|
|
12046
|
-
const shouldExit = await checkAndUpgrade("9.62.
|
|
12055
|
+
const shouldExit = await checkAndUpgrade("9.62.3", prompt);
|
|
12047
12056
|
if (shouldExit) {
|
|
12048
12057
|
process.exit(0);
|
|
12049
12058
|
}
|
|
@@ -17177,13 +17186,13 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
|
|
|
17177
17186
|
if (latestVersion === null) {
|
|
17178
17187
|
throw new Error("Could not check for updates. Please try again later.");
|
|
17179
17188
|
}
|
|
17180
|
-
if (latestVersion === "9.62.
|
|
17181
|
-
console.log(chalk79.green(`\u2713 Already up to date (${"9.62.
|
|
17189
|
+
if (latestVersion === "9.62.3") {
|
|
17190
|
+
console.log(chalk79.green(`\u2713 Already up to date (${"9.62.3"})`));
|
|
17182
17191
|
return;
|
|
17183
17192
|
}
|
|
17184
17193
|
console.log(
|
|
17185
17194
|
chalk79.yellow(
|
|
17186
|
-
`Current version: ${"9.62.
|
|
17195
|
+
`Current version: ${"9.62.3"} -> Latest version: ${latestVersion}`
|
|
17187
17196
|
)
|
|
17188
17197
|
);
|
|
17189
17198
|
console.log();
|
|
@@ -17210,7 +17219,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
|
|
|
17210
17219
|
const success = await performUpgrade(packageManager);
|
|
17211
17220
|
if (success) {
|
|
17212
17221
|
console.log(
|
|
17213
|
-
chalk79.green(`\u2713 Upgraded from ${"9.62.
|
|
17222
|
+
chalk79.green(`\u2713 Upgraded from ${"9.62.3"} to ${latestVersion}`)
|
|
17214
17223
|
);
|
|
17215
17224
|
return;
|
|
17216
17225
|
}
|
|
@@ -17224,7 +17233,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
|
|
|
17224
17233
|
|
|
17225
17234
|
// src/index.ts
|
|
17226
17235
|
var program = new Command87();
|
|
17227
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.
|
|
17236
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.3");
|
|
17228
17237
|
program.addCommand(authCommand);
|
|
17229
17238
|
program.addCommand(infoCommand);
|
|
17230
17239
|
program.addCommand(composeCommand);
|