@vm0/cli 9.62.4 → 9.62.5
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 +37 -37
- 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.5",
|
|
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.5",
|
|
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.5"}`));
|
|
677
677
|
console.log();
|
|
678
678
|
const config = await loadConfig();
|
|
679
679
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1169,11 +1169,11 @@ var orgDefaultAgentContract = c2.router({
|
|
|
1169
1169
|
org: z5.string().optional()
|
|
1170
1170
|
}),
|
|
1171
1171
|
body: z5.object({
|
|
1172
|
-
agentComposeId: z5.
|
|
1172
|
+
agentComposeId: z5.uuid().nullable()
|
|
1173
1173
|
}),
|
|
1174
1174
|
responses: {
|
|
1175
1175
|
200: z5.object({
|
|
1176
|
-
agentComposeId: z5.
|
|
1176
|
+
agentComposeId: z5.uuid().nullable()
|
|
1177
1177
|
}),
|
|
1178
1178
|
400: apiErrorSchema,
|
|
1179
1179
|
401: apiErrorSchema,
|
|
@@ -1723,7 +1723,7 @@ var storageChangesSchema = z7.object({
|
|
|
1723
1723
|
});
|
|
1724
1724
|
var presignedUploadSchema = z7.object({
|
|
1725
1725
|
key: z7.string(),
|
|
1726
|
-
presignedUrl: z7.
|
|
1726
|
+
presignedUrl: z7.url()
|
|
1727
1727
|
});
|
|
1728
1728
|
var storagesPrepareContract = c4.router({
|
|
1729
1729
|
prepare: {
|
|
@@ -1808,7 +1808,7 @@ var storagesDownloadContract = c4.router({
|
|
|
1808
1808
|
// Normal response with presigned URL
|
|
1809
1809
|
200: z7.union([
|
|
1810
1810
|
z7.object({
|
|
1811
|
-
url: z7.
|
|
1811
|
+
url: z7.url(),
|
|
1812
1812
|
versionId: z7.string(),
|
|
1813
1813
|
fileCount: z7.number(),
|
|
1814
1814
|
size: z7.number()
|
|
@@ -2313,7 +2313,7 @@ var secretNameSchema = z12.string().min(1, "Secret name is required").max(255, "
|
|
|
2313
2313
|
);
|
|
2314
2314
|
var secretTypeSchema = z12.enum(["user", "model-provider", "connector"]);
|
|
2315
2315
|
var secretResponseSchema = z12.object({
|
|
2316
|
-
id: z12.
|
|
2316
|
+
id: z12.uuid(),
|
|
2317
2317
|
name: z12.string(),
|
|
2318
2318
|
description: z12.string().nullable(),
|
|
2319
2319
|
type: secretTypeSchema,
|
|
@@ -2412,7 +2412,7 @@ var variableNameSchema = z13.string().min(1, "Variable name is required").max(25
|
|
|
2412
2412
|
"Variable name must contain only uppercase letters, numbers, and underscores, and must start with a letter (e.g., MY_VAR)"
|
|
2413
2413
|
);
|
|
2414
2414
|
var variableResponseSchema = z13.object({
|
|
2415
|
-
id: z13.
|
|
2415
|
+
id: z13.uuid(),
|
|
2416
2416
|
name: z13.string(),
|
|
2417
2417
|
value: z13.string(),
|
|
2418
2418
|
description: z13.string().nullable(),
|
|
@@ -2797,7 +2797,7 @@ function getCustomModelPlaceholder(type2) {
|
|
|
2797
2797
|
return "customModelPlaceholder" in config ? config.customModelPlaceholder : void 0;
|
|
2798
2798
|
}
|
|
2799
2799
|
var modelProviderResponseSchema = z14.object({
|
|
2800
|
-
id: z14.
|
|
2800
|
+
id: z14.uuid(),
|
|
2801
2801
|
type: modelProviderTypeSchema,
|
|
2802
2802
|
framework: modelProviderFrameworkSchema,
|
|
2803
2803
|
secretName: z14.string().nullable(),
|
|
@@ -3099,11 +3099,11 @@ var runnerGroupSchema = z16.string().regex(
|
|
|
3099
3099
|
"Runner group must be in org/name format (e.g., acme/production)"
|
|
3100
3100
|
);
|
|
3101
3101
|
var jobSchema = z16.object({
|
|
3102
|
-
runId: z16.
|
|
3102
|
+
runId: z16.uuid(),
|
|
3103
3103
|
prompt: z16.string(),
|
|
3104
3104
|
agentComposeVersionId: z16.string().nullable(),
|
|
3105
3105
|
vars: z16.record(z16.string(), z16.string()).nullable(),
|
|
3106
|
-
checkpointId: z16.
|
|
3106
|
+
checkpointId: z16.uuid().nullable()
|
|
3107
3107
|
});
|
|
3108
3108
|
var runnersPollContract = c13.router({
|
|
3109
3109
|
poll: {
|
|
@@ -3170,11 +3170,11 @@ var storedExecutionContextSchema = z16.object({
|
|
|
3170
3170
|
experimentalCapabilities: z16.array(z16.enum(VALID_CAPABILITIES)).optional()
|
|
3171
3171
|
});
|
|
3172
3172
|
var executionContextSchema = z16.object({
|
|
3173
|
-
runId: z16.
|
|
3173
|
+
runId: z16.uuid(),
|
|
3174
3174
|
prompt: z16.string(),
|
|
3175
3175
|
agentComposeVersionId: z16.string().nullable(),
|
|
3176
3176
|
vars: z16.record(z16.string(), z16.string()).nullable(),
|
|
3177
|
-
checkpointId: z16.
|
|
3177
|
+
checkpointId: z16.uuid().nullable(),
|
|
3178
3178
|
sandboxToken: z16.string(),
|
|
3179
3179
|
// New fields for E2B parity:
|
|
3180
3180
|
workingDir: z16.string(),
|
|
@@ -3209,7 +3209,7 @@ var runnersJobClaimContract = c13.router({
|
|
|
3209
3209
|
path: "/api/runners/jobs/:id/claim",
|
|
3210
3210
|
headers: authHeadersSchema,
|
|
3211
3211
|
pathParams: z16.object({
|
|
3212
|
-
id: z16.
|
|
3212
|
+
id: z16.uuid()
|
|
3213
3213
|
}),
|
|
3214
3214
|
body: z16.object({}),
|
|
3215
3215
|
responses: {
|
|
@@ -3293,8 +3293,8 @@ var deployScheduleRequestSchema = z17.object({
|
|
|
3293
3293
|
}
|
|
3294
3294
|
);
|
|
3295
3295
|
var scheduleResponseSchema = z17.object({
|
|
3296
|
-
id: z17.
|
|
3297
|
-
composeId: z17.
|
|
3296
|
+
id: z17.uuid(),
|
|
3297
|
+
composeId: z17.uuid(),
|
|
3298
3298
|
composeName: z17.string(),
|
|
3299
3299
|
orgSlug: z17.string(),
|
|
3300
3300
|
userId: z17.string(),
|
|
@@ -3322,7 +3322,7 @@ var scheduleResponseSchema = z17.object({
|
|
|
3322
3322
|
updatedAt: z17.string()
|
|
3323
3323
|
});
|
|
3324
3324
|
var runSummarySchema = z17.object({
|
|
3325
|
-
id: z17.
|
|
3325
|
+
id: z17.uuid(),
|
|
3326
3326
|
status: z17.enum([
|
|
3327
3327
|
"queued",
|
|
3328
3328
|
"pending",
|
|
@@ -3562,7 +3562,7 @@ var platformLogStatusSchema = z19.enum([
|
|
|
3562
3562
|
"cancelled"
|
|
3563
3563
|
]);
|
|
3564
3564
|
var platformLogEntrySchema = z19.object({
|
|
3565
|
-
id: z19.
|
|
3565
|
+
id: z19.uuid(),
|
|
3566
3566
|
sessionId: z19.string().nullable(),
|
|
3567
3567
|
agentName: z19.string(),
|
|
3568
3568
|
orgSlug: z19.string().nullable(),
|
|
@@ -3581,7 +3581,7 @@ var artifactSchema = z19.object({
|
|
|
3581
3581
|
version: z19.string().nullable()
|
|
3582
3582
|
});
|
|
3583
3583
|
var platformLogDetailSchema = z19.object({
|
|
3584
|
-
id: z19.
|
|
3584
|
+
id: z19.uuid(),
|
|
3585
3585
|
sessionId: z19.string().nullable(),
|
|
3586
3586
|
agentName: z19.string(),
|
|
3587
3587
|
framework: z19.string().nullable(),
|
|
@@ -3628,7 +3628,7 @@ var platformLogsByIdContract = c16.router({
|
|
|
3628
3628
|
}
|
|
3629
3629
|
});
|
|
3630
3630
|
var artifactDownloadResponseSchema = z19.object({
|
|
3631
|
-
url: z19.
|
|
3631
|
+
url: z19.url(),
|
|
3632
3632
|
expiresAt: z19.string()
|
|
3633
3633
|
});
|
|
3634
3634
|
var platformArtifactDownloadContract = c16.router({
|
|
@@ -3666,7 +3666,7 @@ var composeJobResultSchema = z20.object({
|
|
|
3666
3666
|
var composeJobSourceSchema = z20.enum(["github", "platform", "slack"]);
|
|
3667
3667
|
var createComposeJobRequestSchema = z20.union([
|
|
3668
3668
|
z20.object({
|
|
3669
|
-
githubUrl: z20.
|
|
3669
|
+
githubUrl: z20.url().check(z20.startsWith("https://github.com/")),
|
|
3670
3670
|
overwrite: z20.boolean().optional().default(false)
|
|
3671
3671
|
}),
|
|
3672
3672
|
z20.object({
|
|
@@ -3715,7 +3715,7 @@ var composeJobsByIdContract = c17.router({
|
|
|
3715
3715
|
path: "/api/compose/jobs/:jobId",
|
|
3716
3716
|
headers: authHeadersSchema,
|
|
3717
3717
|
pathParams: z20.object({
|
|
3718
|
-
jobId: z20.
|
|
3718
|
+
jobId: z20.uuid()
|
|
3719
3719
|
}),
|
|
3720
3720
|
responses: {
|
|
3721
3721
|
200: composeJobResponseSchema,
|
|
@@ -3735,7 +3735,7 @@ var webhookComposeCompleteContract = c17.router({
|
|
|
3735
3735
|
path: "/api/webhooks/compose/complete",
|
|
3736
3736
|
headers: authHeadersSchema,
|
|
3737
3737
|
body: z20.object({
|
|
3738
|
-
jobId: z20.
|
|
3738
|
+
jobId: z20.uuid(),
|
|
3739
3739
|
success: z20.boolean(),
|
|
3740
3740
|
// Result from CLI compose command
|
|
3741
3741
|
result: composeJobResultSchema.optional(),
|
|
@@ -6368,7 +6368,7 @@ function getConnectorDerivedNames(secretName) {
|
|
|
6368
6368
|
return null;
|
|
6369
6369
|
}
|
|
6370
6370
|
var connectorResponseSchema = z21.object({
|
|
6371
|
-
id: z21.
|
|
6371
|
+
id: z21.uuid().nullable(),
|
|
6372
6372
|
type: connectorTypeSchema,
|
|
6373
6373
|
authMethod: z21.string(),
|
|
6374
6374
|
externalId: z21.string().nullable(),
|
|
@@ -6435,7 +6435,7 @@ var connectorSessionStatusSchema = z21.enum([
|
|
|
6435
6435
|
"error"
|
|
6436
6436
|
]);
|
|
6437
6437
|
var connectorSessionResponseSchema = z21.object({
|
|
6438
|
-
id: z21.
|
|
6438
|
+
id: z21.uuid(),
|
|
6439
6439
|
code: z21.string(),
|
|
6440
6440
|
type: connectorTypeSchema,
|
|
6441
6441
|
status: connectorSessionStatusSchema,
|
|
@@ -6481,7 +6481,7 @@ var connectorSessionByIdContract = c18.router({
|
|
|
6481
6481
|
headers: authHeadersSchema,
|
|
6482
6482
|
pathParams: z21.object({
|
|
6483
6483
|
type: connectorTypeSchema,
|
|
6484
|
-
sessionId: z21.
|
|
6484
|
+
sessionId: z21.uuid()
|
|
6485
6485
|
}),
|
|
6486
6486
|
responses: {
|
|
6487
6487
|
200: connectorSessionStatusResponseSchema,
|
|
@@ -6494,7 +6494,7 @@ var connectorSessionByIdContract = c18.router({
|
|
|
6494
6494
|
}
|
|
6495
6495
|
});
|
|
6496
6496
|
var computerConnectorCreateResponseSchema = z21.object({
|
|
6497
|
-
id: z21.
|
|
6497
|
+
id: z21.uuid(),
|
|
6498
6498
|
ngrokToken: z21.string(),
|
|
6499
6499
|
bridgeToken: z21.string(),
|
|
6500
6500
|
endpointPrefix: z21.string(),
|
|
@@ -7116,7 +7116,7 @@ var skillsResolveContract = c23.router({
|
|
|
7116
7116
|
path: "/api/skills/resolve",
|
|
7117
7117
|
headers: authHeadersSchema,
|
|
7118
7118
|
body: z26.object({
|
|
7119
|
-
skills: z26.array(z26.
|
|
7119
|
+
skills: z26.array(z26.url()).min(1).max(100)
|
|
7120
7120
|
}),
|
|
7121
7121
|
responses: {
|
|
7122
7122
|
200: z26.object({
|
|
@@ -9533,7 +9533,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
9533
9533
|
options.autoUpdate = false;
|
|
9534
9534
|
}
|
|
9535
9535
|
if (options.autoUpdate !== false) {
|
|
9536
|
-
await startSilentUpgrade("9.62.
|
|
9536
|
+
await startSilentUpgrade("9.62.5");
|
|
9537
9537
|
}
|
|
9538
9538
|
try {
|
|
9539
9539
|
let result;
|
|
@@ -10355,7 +10355,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
10355
10355
|
withErrorHandler(
|
|
10356
10356
|
async (identifier, prompt, options) => {
|
|
10357
10357
|
if (options.autoUpdate !== false) {
|
|
10358
|
-
await startSilentUpgrade("9.62.
|
|
10358
|
+
await startSilentUpgrade("9.62.5");
|
|
10359
10359
|
}
|
|
10360
10360
|
const { org, name, version } = parseIdentifier(identifier);
|
|
10361
10361
|
let composeId;
|
|
@@ -12075,7 +12075,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
12075
12075
|
withErrorHandler(
|
|
12076
12076
|
async (prompt, options) => {
|
|
12077
12077
|
if (options.autoUpdate !== false) {
|
|
12078
|
-
const shouldExit = await checkAndUpgrade("9.62.
|
|
12078
|
+
const shouldExit = await checkAndUpgrade("9.62.5", prompt);
|
|
12079
12079
|
if (shouldExit) {
|
|
12080
12080
|
process.exit(0);
|
|
12081
12081
|
}
|
|
@@ -17209,13 +17209,13 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
|
|
|
17209
17209
|
if (latestVersion === null) {
|
|
17210
17210
|
throw new Error("Could not check for updates. Please try again later.");
|
|
17211
17211
|
}
|
|
17212
|
-
if (latestVersion === "9.62.
|
|
17213
|
-
console.log(chalk79.green(`\u2713 Already up to date (${"9.62.
|
|
17212
|
+
if (latestVersion === "9.62.5") {
|
|
17213
|
+
console.log(chalk79.green(`\u2713 Already up to date (${"9.62.5"})`));
|
|
17214
17214
|
return;
|
|
17215
17215
|
}
|
|
17216
17216
|
console.log(
|
|
17217
17217
|
chalk79.yellow(
|
|
17218
|
-
`Current version: ${"9.62.
|
|
17218
|
+
`Current version: ${"9.62.5"} -> Latest version: ${latestVersion}`
|
|
17219
17219
|
)
|
|
17220
17220
|
);
|
|
17221
17221
|
console.log();
|
|
@@ -17242,7 +17242,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
|
|
|
17242
17242
|
const success = await performUpgrade(packageManager);
|
|
17243
17243
|
if (success) {
|
|
17244
17244
|
console.log(
|
|
17245
|
-
chalk79.green(`\u2713 Upgraded from ${"9.62.
|
|
17245
|
+
chalk79.green(`\u2713 Upgraded from ${"9.62.5"} to ${latestVersion}`)
|
|
17246
17246
|
);
|
|
17247
17247
|
return;
|
|
17248
17248
|
}
|
|
@@ -17256,7 +17256,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
|
|
|
17256
17256
|
|
|
17257
17257
|
// src/index.ts
|
|
17258
17258
|
var program = new Command87();
|
|
17259
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.
|
|
17259
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.5");
|
|
17260
17260
|
program.addCommand(authCommand);
|
|
17261
17261
|
program.addCommand(infoCommand);
|
|
17262
17262
|
program.addCommand(composeCommand);
|