@vm0/cli 9.63.0 → 9.63.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 +47 -41
- 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.63.
|
|
48
|
+
release: "9.63.1",
|
|
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.63.
|
|
67
|
+
version: "9.63.1",
|
|
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.63.
|
|
676
|
+
console.log(chalk4.bold(`VM0 CLI v${"9.63.1"}`));
|
|
677
677
|
console.log();
|
|
678
678
|
const config = await loadConfig();
|
|
679
679
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -3115,14 +3115,19 @@ var storedChatMessageSchema2 = z16.object({
|
|
|
3115
3115
|
runId: z16.string().optional(),
|
|
3116
3116
|
createdAt: z16.string()
|
|
3117
3117
|
});
|
|
3118
|
+
var unsavedRunSchema = z16.object({
|
|
3119
|
+
runId: z16.string(),
|
|
3120
|
+
status: z16.string(),
|
|
3121
|
+
prompt: z16.string(),
|
|
3122
|
+
error: z16.string().nullable()
|
|
3123
|
+
});
|
|
3118
3124
|
var chatThreadDetailSchema = z16.object({
|
|
3119
3125
|
id: z16.string(),
|
|
3120
3126
|
title: z16.string().nullable(),
|
|
3121
3127
|
agentComposeId: z16.string(),
|
|
3122
3128
|
chatMessages: z16.array(storedChatMessageSchema2),
|
|
3123
3129
|
latestSessionId: z16.string().nullable(),
|
|
3124
|
-
|
|
3125
|
-
activeRunPrompt: z16.string().nullable(),
|
|
3130
|
+
unsavedRuns: z16.array(unsavedRunSchema),
|
|
3126
3131
|
createdAt: z16.string(),
|
|
3127
3132
|
updatedAt: z16.string()
|
|
3128
3133
|
});
|
|
@@ -3667,6 +3672,7 @@ var platformLogEntrySchema = z20.object({
|
|
|
3667
3672
|
id: z20.uuid(),
|
|
3668
3673
|
sessionId: z20.string().nullable(),
|
|
3669
3674
|
agentName: z20.string(),
|
|
3675
|
+
displayName: z20.string().nullable(),
|
|
3670
3676
|
orgSlug: z20.string().nullable(),
|
|
3671
3677
|
framework: z20.string().nullable(),
|
|
3672
3678
|
status: platformLogStatusSchema,
|
|
@@ -3686,6 +3692,7 @@ var platformLogDetailSchema = z20.object({
|
|
|
3686
3692
|
id: z20.uuid(),
|
|
3687
3693
|
sessionId: z20.string().nullable(),
|
|
3688
3694
|
agentName: z20.string(),
|
|
3695
|
+
displayName: z20.string().nullable(),
|
|
3689
3696
|
framework: z20.string().nullable(),
|
|
3690
3697
|
status: platformLogStatusSchema,
|
|
3691
3698
|
prompt: z20.string(),
|
|
@@ -7495,6 +7502,11 @@ var FEATURE_SWITCHES = {
|
|
|
7495
7502
|
maintainer: "ethan@vm0.ai",
|
|
7496
7503
|
enabled: false,
|
|
7497
7504
|
enabledUserHashes: STAFF_USER_HASHES
|
|
7505
|
+
},
|
|
7506
|
+
["dataExport" /* DataExport */]: {
|
|
7507
|
+
maintainer: "ethan@vm0.ai",
|
|
7508
|
+
enabled: false,
|
|
7509
|
+
enabledUserHashes: STAFF_USER_HASHES
|
|
7498
7510
|
}
|
|
7499
7511
|
};
|
|
7500
7512
|
async function isFeatureEnabled(key, userId) {
|
|
@@ -9638,7 +9650,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
9638
9650
|
options.autoUpdate = false;
|
|
9639
9651
|
}
|
|
9640
9652
|
if (options.autoUpdate !== false) {
|
|
9641
|
-
await startSilentUpgrade("9.63.
|
|
9653
|
+
await startSilentUpgrade("9.63.1");
|
|
9642
9654
|
}
|
|
9643
9655
|
try {
|
|
9644
9656
|
let result;
|
|
@@ -10460,7 +10472,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
10460
10472
|
withErrorHandler(
|
|
10461
10473
|
async (identifier, prompt, options) => {
|
|
10462
10474
|
if (options.autoUpdate !== false) {
|
|
10463
|
-
await startSilentUpgrade("9.63.
|
|
10475
|
+
await startSilentUpgrade("9.63.1");
|
|
10464
10476
|
}
|
|
10465
10477
|
const { org, name, version } = parseIdentifier(identifier);
|
|
10466
10478
|
let composeId;
|
|
@@ -12180,7 +12192,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
12180
12192
|
withErrorHandler(
|
|
12181
12193
|
async (prompt, options) => {
|
|
12182
12194
|
if (options.autoUpdate !== false) {
|
|
12183
|
-
const shouldExit = await checkAndUpgrade("9.63.
|
|
12195
|
+
const shouldExit = await checkAndUpgrade("9.63.1", prompt);
|
|
12184
12196
|
if (shouldExit) {
|
|
12185
12197
|
process.exit(0);
|
|
12186
12198
|
}
|
|
@@ -13529,30 +13541,16 @@ var listCommand5 = new Command43().name("list").description("List all accessible
|
|
|
13529
13541
|
// src/commands/org/use.ts
|
|
13530
13542
|
import { Command as Command44 } from "commander";
|
|
13531
13543
|
import chalk40 from "chalk";
|
|
13532
|
-
var useCommand = new Command44().name("use").description("Switch to a different organization").argument("
|
|
13533
|
-
withErrorHandler(
|
|
13534
|
-
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
"Organization slug is required. Use --personal to switch to personal org."
|
|
13543
|
-
);
|
|
13544
|
-
}
|
|
13545
|
-
const orgList = await listOrgs();
|
|
13546
|
-
const target = orgList.orgs.find((s) => s.slug === slug);
|
|
13547
|
-
if (!target) {
|
|
13548
|
-
throw new Error(
|
|
13549
|
-
`Organization '${slug}' not found or not accessible.`
|
|
13550
|
-
);
|
|
13551
|
-
}
|
|
13552
|
-
await saveConfig({ activeOrg: slug });
|
|
13553
|
-
console.log(chalk40.green(`\u2713 Switched to organization: ${slug}`));
|
|
13554
|
-
}
|
|
13555
|
-
)
|
|
13544
|
+
var useCommand = new Command44().name("use").description("Switch to a different organization").argument("<slug>", "Organization slug to switch to").action(
|
|
13545
|
+
withErrorHandler(async (slug) => {
|
|
13546
|
+
const orgList = await listOrgs();
|
|
13547
|
+
const target = orgList.orgs.find((s) => s.slug === slug);
|
|
13548
|
+
if (!target) {
|
|
13549
|
+
throw new Error(`Organization '${slug}' not found or not accessible.`);
|
|
13550
|
+
}
|
|
13551
|
+
await saveConfig({ activeOrg: slug });
|
|
13552
|
+
console.log(chalk40.green(`\u2713 Switched to organization: ${slug}`));
|
|
13553
|
+
})
|
|
13556
13554
|
);
|
|
13557
13555
|
|
|
13558
13556
|
// src/commands/org/members.ts
|
|
@@ -13610,10 +13608,18 @@ import chalk44 from "chalk";
|
|
|
13610
13608
|
var leaveCommand = new Command48().name("leave").description("Leave the current organization").action(
|
|
13611
13609
|
withErrorHandler(async () => {
|
|
13612
13610
|
await leaveOrg();
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13611
|
+
const { orgs } = await listOrgs();
|
|
13612
|
+
if (orgs.length === 0) {
|
|
13613
|
+
await saveConfig({ activeOrg: void 0 });
|
|
13614
|
+
console.log(chalk44.green("\u2713 Left organization."));
|
|
13615
|
+
console.log(
|
|
13616
|
+
chalk44.yellow("No remaining organizations. Run: vm0 auth login")
|
|
13617
|
+
);
|
|
13618
|
+
return;
|
|
13619
|
+
}
|
|
13620
|
+
const nextOrg = orgs[0].slug;
|
|
13621
|
+
await saveConfig({ activeOrg: nextOrg });
|
|
13622
|
+
console.log(chalk44.green(`\u2713 Left organization. Switched to: ${nextOrg}`));
|
|
13617
13623
|
})
|
|
13618
13624
|
);
|
|
13619
13625
|
|
|
@@ -17314,13 +17320,13 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
|
|
|
17314
17320
|
if (latestVersion === null) {
|
|
17315
17321
|
throw new Error("Could not check for updates. Please try again later.");
|
|
17316
17322
|
}
|
|
17317
|
-
if (latestVersion === "9.63.
|
|
17318
|
-
console.log(chalk79.green(`\u2713 Already up to date (${"9.63.
|
|
17323
|
+
if (latestVersion === "9.63.1") {
|
|
17324
|
+
console.log(chalk79.green(`\u2713 Already up to date (${"9.63.1"})`));
|
|
17319
17325
|
return;
|
|
17320
17326
|
}
|
|
17321
17327
|
console.log(
|
|
17322
17328
|
chalk79.yellow(
|
|
17323
|
-
`Current version: ${"9.63.
|
|
17329
|
+
`Current version: ${"9.63.1"} -> Latest version: ${latestVersion}`
|
|
17324
17330
|
)
|
|
17325
17331
|
);
|
|
17326
17332
|
console.log();
|
|
@@ -17347,7 +17353,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
|
|
|
17347
17353
|
const success = await performUpgrade(packageManager);
|
|
17348
17354
|
if (success) {
|
|
17349
17355
|
console.log(
|
|
17350
|
-
chalk79.green(`\u2713 Upgraded from ${"9.63.
|
|
17356
|
+
chalk79.green(`\u2713 Upgraded from ${"9.63.1"} to ${latestVersion}`)
|
|
17351
17357
|
);
|
|
17352
17358
|
return;
|
|
17353
17359
|
}
|
|
@@ -17361,7 +17367,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
|
|
|
17361
17367
|
|
|
17362
17368
|
// src/index.ts
|
|
17363
17369
|
var program = new Command87();
|
|
17364
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.63.
|
|
17370
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.63.1");
|
|
17365
17371
|
program.addCommand(authCommand);
|
|
17366
17372
|
program.addCommand(infoCommand);
|
|
17367
17373
|
program.addCommand(composeCommand);
|