@vm0/cli 9.67.0 → 9.68.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/index.js +18 -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.
|
|
48
|
+
release: "9.68.0",
|
|
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.
|
|
67
|
+
version: "9.68.0",
|
|
68
68
|
command: process.argv.slice(2).join(" ")
|
|
69
69
|
});
|
|
70
70
|
Sentry.setContext("runtime", {
|
|
@@ -675,7 +675,7 @@ function getConfigPath() {
|
|
|
675
675
|
return join2(homedir2(), ".vm0", "config.json");
|
|
676
676
|
}
|
|
677
677
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
678
|
-
console.log(chalk4.bold(`VM0 CLI v${"9.
|
|
678
|
+
console.log(chalk4.bold(`VM0 CLI v${"9.68.0"}`));
|
|
679
679
|
console.log();
|
|
680
680
|
const config = await loadConfig();
|
|
681
681
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1321,7 +1321,9 @@ var unifiedRunRequestSchema = z7.object({
|
|
|
1321
1321
|
// Environment validation flag - when true, validates secrets/vars before running
|
|
1322
1322
|
checkEnv: z7.boolean().optional(),
|
|
1323
1323
|
// Required
|
|
1324
|
-
prompt: z7.string().min(1, "Missing prompt")
|
|
1324
|
+
prompt: z7.string().min(1, "Missing prompt"),
|
|
1325
|
+
// Optional system prompt to append to the agent's system prompt
|
|
1326
|
+
appendSystemPrompt: z7.string().optional()
|
|
1325
1327
|
});
|
|
1326
1328
|
var createRunResponseSchema = z7.object({
|
|
1327
1329
|
runId: z7.string(),
|
|
@@ -1337,6 +1339,7 @@ var getRunResponseSchema = z7.object({
|
|
|
1337
1339
|
agentComposeVersionId: z7.string().nullable(),
|
|
1338
1340
|
status: runStatusSchema,
|
|
1339
1341
|
prompt: z7.string(),
|
|
1342
|
+
appendSystemPrompt: z7.string().nullable(),
|
|
1340
1343
|
vars: z7.record(z7.string(), z7.string()).optional(),
|
|
1341
1344
|
sandboxId: z7.string().optional(),
|
|
1342
1345
|
result: z7.object({
|
|
@@ -1383,6 +1386,7 @@ var runListItemSchema = z7.object({
|
|
|
1383
1386
|
agentName: z7.string(),
|
|
1384
1387
|
status: runStatusSchema,
|
|
1385
1388
|
prompt: z7.string(),
|
|
1389
|
+
appendSystemPrompt: z7.string().nullable(),
|
|
1386
1390
|
createdAt: z7.string(),
|
|
1387
1391
|
startedAt: z7.string().nullable()
|
|
1388
1392
|
});
|
|
@@ -3206,6 +3210,7 @@ var runnerGroupSchema = z18.string().regex(
|
|
|
3206
3210
|
var jobSchema = z18.object({
|
|
3207
3211
|
runId: z18.uuid(),
|
|
3208
3212
|
prompt: z18.string(),
|
|
3213
|
+
appendSystemPrompt: z18.string().nullable(),
|
|
3209
3214
|
agentComposeVersionId: z18.string().nullable(),
|
|
3210
3215
|
vars: z18.record(z18.string(), z18.string()).nullable(),
|
|
3211
3216
|
checkpointId: z18.uuid().nullable(),
|
|
@@ -3281,8 +3286,7 @@ var storedExecutionContextSchema = z18.object({
|
|
|
3281
3286
|
var executionContextSchema = z18.object({
|
|
3282
3287
|
runId: z18.uuid(),
|
|
3283
3288
|
prompt: z18.string(),
|
|
3284
|
-
|
|
3285
|
-
appendSystemPrompt: z18.string().optional(),
|
|
3289
|
+
appendSystemPrompt: z18.string().nullable(),
|
|
3286
3290
|
agentComposeVersionId: z18.string().nullable(),
|
|
3287
3291
|
vars: z18.record(z18.string(), z18.string()).nullable(),
|
|
3288
3292
|
checkpointId: z18.uuid().nullable(),
|
|
@@ -9793,7 +9797,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
9793
9797
|
options.autoUpdate = false;
|
|
9794
9798
|
}
|
|
9795
9799
|
if (options.autoUpdate !== false) {
|
|
9796
|
-
await startSilentUpgrade("9.
|
|
9800
|
+
await startSilentUpgrade("9.68.0");
|
|
9797
9801
|
}
|
|
9798
9802
|
try {
|
|
9799
9803
|
let result;
|
|
@@ -10615,7 +10619,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
10615
10619
|
withErrorHandler(
|
|
10616
10620
|
async (identifier, prompt, options) => {
|
|
10617
10621
|
if (options.autoUpdate !== false) {
|
|
10618
|
-
await startSilentUpgrade("9.
|
|
10622
|
+
await startSilentUpgrade("9.68.0");
|
|
10619
10623
|
}
|
|
10620
10624
|
const { org, name, version } = parseIdentifier(identifier);
|
|
10621
10625
|
let composeId;
|
|
@@ -12344,7 +12348,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
12344
12348
|
withErrorHandler(
|
|
12345
12349
|
async (prompt, options) => {
|
|
12346
12350
|
if (options.autoUpdate !== false) {
|
|
12347
|
-
const shouldExit = await checkAndUpgrade("9.
|
|
12351
|
+
const shouldExit = await checkAndUpgrade("9.68.0", prompt);
|
|
12348
12352
|
if (shouldExit) {
|
|
12349
12353
|
process.exit(0);
|
|
12350
12354
|
}
|
|
@@ -17689,13 +17693,13 @@ var upgradeCommand = new Command94().name("upgrade").description("Upgrade vm0 CL
|
|
|
17689
17693
|
if (latestVersion === null) {
|
|
17690
17694
|
throw new Error("Could not check for updates. Please try again later.");
|
|
17691
17695
|
}
|
|
17692
|
-
if (latestVersion === "9.
|
|
17693
|
-
console.log(chalk86.green(`\u2713 Already up to date (${"9.
|
|
17696
|
+
if (latestVersion === "9.68.0") {
|
|
17697
|
+
console.log(chalk86.green(`\u2713 Already up to date (${"9.68.0"})`));
|
|
17694
17698
|
return;
|
|
17695
17699
|
}
|
|
17696
17700
|
console.log(
|
|
17697
17701
|
chalk86.yellow(
|
|
17698
|
-
`Current version: ${"9.
|
|
17702
|
+
`Current version: ${"9.68.0"} -> Latest version: ${latestVersion}`
|
|
17699
17703
|
)
|
|
17700
17704
|
);
|
|
17701
17705
|
console.log();
|
|
@@ -17722,7 +17726,7 @@ var upgradeCommand = new Command94().name("upgrade").description("Upgrade vm0 CL
|
|
|
17722
17726
|
const success = await performUpgrade(packageManager);
|
|
17723
17727
|
if (success) {
|
|
17724
17728
|
console.log(
|
|
17725
|
-
chalk86.green(`\u2713 Upgraded from ${"9.
|
|
17729
|
+
chalk86.green(`\u2713 Upgraded from ${"9.68.0"} to ${latestVersion}`)
|
|
17726
17730
|
);
|
|
17727
17731
|
return;
|
|
17728
17732
|
}
|
|
@@ -17736,7 +17740,7 @@ var upgradeCommand = new Command94().name("upgrade").description("Upgrade vm0 CL
|
|
|
17736
17740
|
|
|
17737
17741
|
// src/index.ts
|
|
17738
17742
|
var program = new Command95();
|
|
17739
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
17743
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.68.0");
|
|
17740
17744
|
program.addCommand(authCommand);
|
|
17741
17745
|
program.addCommand(infoCommand);
|
|
17742
17746
|
program.addCommand(composeCommand);
|