@vm0/cli 9.57.0 → 9.57.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 +23 -14
- 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.57.
|
|
48
|
+
release: "9.57.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.57.
|
|
67
|
+
version: "9.57.1",
|
|
68
68
|
command: process.argv.slice(2).join(" ")
|
|
69
69
|
});
|
|
70
70
|
Sentry.setContext("runtime", {
|
|
@@ -666,7 +666,7 @@ function getConfigPath() {
|
|
|
666
666
|
return join2(homedir2(), ".vm0", "config.json");
|
|
667
667
|
}
|
|
668
668
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
669
|
-
console.log(chalk4.bold(`VM0 CLI v${"9.57.
|
|
669
|
+
console.log(chalk4.bold(`VM0 CLI v${"9.57.1"}`));
|
|
670
670
|
console.log();
|
|
671
671
|
const config = await loadConfig();
|
|
672
672
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1005,6 +1005,7 @@ var agentDefinitionSchema = z4.object({
|
|
|
1005
1005
|
*/
|
|
1006
1006
|
metadata: z4.object({
|
|
1007
1007
|
displayName: z4.string().optional(),
|
|
1008
|
+
description: z4.string().optional(),
|
|
1008
1009
|
sound: z4.string().optional()
|
|
1009
1010
|
}).optional(),
|
|
1010
1011
|
/**
|
|
@@ -1177,6 +1178,7 @@ var composeListItemSchema = z4.object({
|
|
|
1177
1178
|
id: z4.string(),
|
|
1178
1179
|
name: z4.string(),
|
|
1179
1180
|
displayName: z4.string().nullable().optional(),
|
|
1181
|
+
description: z4.string().nullable().optional(),
|
|
1180
1182
|
headVersionId: z4.string().nullable(),
|
|
1181
1183
|
updatedAt: z4.string(),
|
|
1182
1184
|
isOwner: z4.boolean()
|
|
@@ -3509,6 +3511,7 @@ var platformLogsByIdContract = c16.router({
|
|
|
3509
3511
|
getById: {
|
|
3510
3512
|
method: "GET",
|
|
3511
3513
|
path: "/api/platform/logs/:id",
|
|
3514
|
+
headers: authHeadersSchema,
|
|
3512
3515
|
pathParams: z18.object({
|
|
3513
3516
|
id: z18.string().uuid("Invalid log ID")
|
|
3514
3517
|
}),
|
|
@@ -7012,14 +7015,16 @@ var c19 = initContract();
|
|
|
7012
7015
|
var userPreferencesResponseSchema = z21.object({
|
|
7013
7016
|
timezone: z21.string().nullable(),
|
|
7014
7017
|
notifyEmail: z21.boolean(),
|
|
7015
|
-
notifySlack: z21.boolean()
|
|
7018
|
+
notifySlack: z21.boolean(),
|
|
7019
|
+
pinnedAgentIds: z21.array(z21.string())
|
|
7016
7020
|
});
|
|
7017
7021
|
var updateUserPreferencesRequestSchema = z21.object({
|
|
7018
7022
|
timezone: z21.string().min(1).optional(),
|
|
7019
7023
|
notifyEmail: z21.boolean().optional(),
|
|
7020
|
-
notifySlack: z21.boolean().optional()
|
|
7024
|
+
notifySlack: z21.boolean().optional(),
|
|
7025
|
+
pinnedAgentIds: z21.array(z21.string()).max(4).optional()
|
|
7021
7026
|
}).refine(
|
|
7022
|
-
(data) => data.timezone !== void 0 || data.notifyEmail !== void 0 || data.notifySlack !== void 0,
|
|
7027
|
+
(data) => data.timezone !== void 0 || data.notifyEmail !== void 0 || data.notifySlack !== void 0 || data.pinnedAgentIds !== void 0,
|
|
7023
7028
|
{
|
|
7024
7029
|
message: "At least one preference must be provided"
|
|
7025
7030
|
}
|
|
@@ -7199,6 +7204,7 @@ var onboardingStatusResponseSchema = z24.object({
|
|
|
7199
7204
|
defaultAgentComposeId: z24.string().nullable(),
|
|
7200
7205
|
defaultAgentMetadata: z24.object({
|
|
7201
7206
|
displayName: z24.string().optional(),
|
|
7207
|
+
description: z24.string().optional(),
|
|
7202
7208
|
sound: z24.string().optional()
|
|
7203
7209
|
}).nullable()
|
|
7204
7210
|
});
|
|
@@ -7659,6 +7665,9 @@ function buildProfileParagraph(metadata) {
|
|
|
7659
7665
|
if (metadata.displayName) {
|
|
7660
7666
|
parts.push(`Your name is ${metadata.displayName}.`);
|
|
7661
7667
|
}
|
|
7668
|
+
if (metadata.description) {
|
|
7669
|
+
parts.push(metadata.description);
|
|
7670
|
+
}
|
|
7662
7671
|
if (metadata.sound) {
|
|
7663
7672
|
const desc = TONE_DESCRIPTIONS[metadata.sound] ?? metadata.sound;
|
|
7664
7673
|
parts.push(
|
|
@@ -9677,7 +9686,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
9677
9686
|
options.autoUpdate = false;
|
|
9678
9687
|
}
|
|
9679
9688
|
if (options.autoUpdate !== false) {
|
|
9680
|
-
await startSilentUpgrade("9.57.
|
|
9689
|
+
await startSilentUpgrade("9.57.1");
|
|
9681
9690
|
}
|
|
9682
9691
|
try {
|
|
9683
9692
|
let result;
|
|
@@ -10850,7 +10859,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
10850
10859
|
withErrorHandler(
|
|
10851
10860
|
async (identifier, prompt, options) => {
|
|
10852
10861
|
if (options.autoUpdate !== false) {
|
|
10853
|
-
await startSilentUpgrade("9.57.
|
|
10862
|
+
await startSilentUpgrade("9.57.1");
|
|
10854
10863
|
}
|
|
10855
10864
|
const { org, name, version } = parseIdentifier(identifier);
|
|
10856
10865
|
if (org && !options.experimentalSharedAgent) {
|
|
@@ -12537,7 +12546,7 @@ var cookAction = new Command34().name("cook").description("Quick start: prepare,
|
|
|
12537
12546
|
withErrorHandler(
|
|
12538
12547
|
async (prompt, options) => {
|
|
12539
12548
|
if (options.autoUpdate !== false) {
|
|
12540
|
-
const shouldExit = await checkAndUpgrade("9.57.
|
|
12549
|
+
const shouldExit = await checkAndUpgrade("9.57.1", prompt);
|
|
12541
12550
|
if (shouldExit) {
|
|
12542
12551
|
process.exit(0);
|
|
12543
12552
|
}
|
|
@@ -17888,13 +17897,13 @@ var upgradeCommand = new Command90().name("upgrade").description("Upgrade vm0 CL
|
|
|
17888
17897
|
if (latestVersion === null) {
|
|
17889
17898
|
throw new Error("Could not check for updates. Please try again later.");
|
|
17890
17899
|
}
|
|
17891
|
-
if (latestVersion === "9.57.
|
|
17892
|
-
console.log(chalk83.green(`\u2713 Already up to date (${"9.57.
|
|
17900
|
+
if (latestVersion === "9.57.1") {
|
|
17901
|
+
console.log(chalk83.green(`\u2713 Already up to date (${"9.57.1"})`));
|
|
17893
17902
|
return;
|
|
17894
17903
|
}
|
|
17895
17904
|
console.log(
|
|
17896
17905
|
chalk83.yellow(
|
|
17897
|
-
`Current version: ${"9.57.
|
|
17906
|
+
`Current version: ${"9.57.1"} -> Latest version: ${latestVersion}`
|
|
17898
17907
|
)
|
|
17899
17908
|
);
|
|
17900
17909
|
console.log();
|
|
@@ -17921,7 +17930,7 @@ var upgradeCommand = new Command90().name("upgrade").description("Upgrade vm0 CL
|
|
|
17921
17930
|
const success = await performUpgrade(packageManager);
|
|
17922
17931
|
if (success) {
|
|
17923
17932
|
console.log(
|
|
17924
|
-
chalk83.green(`\u2713 Upgraded from ${"9.57.
|
|
17933
|
+
chalk83.green(`\u2713 Upgraded from ${"9.57.1"} to ${latestVersion}`)
|
|
17925
17934
|
);
|
|
17926
17935
|
return;
|
|
17927
17936
|
}
|
|
@@ -17935,7 +17944,7 @@ var upgradeCommand = new Command90().name("upgrade").description("Upgrade vm0 CL
|
|
|
17935
17944
|
|
|
17936
17945
|
// src/index.ts
|
|
17937
17946
|
var program = new Command91();
|
|
17938
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.57.
|
|
17947
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.57.1");
|
|
17939
17948
|
program.addCommand(authCommand);
|
|
17940
17949
|
program.addCommand(infoCommand);
|
|
17941
17950
|
program.addCommand(composeCommand);
|