@vm0/cli 9.62.4 → 9.62.6

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.
Files changed (2) hide show
  1. package/index.js +44 -43
  2. 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.4",
48
+ release: "9.62.6",
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.4",
67
+ version: "9.62.6",
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.4"}`));
676
+ console.log(chalk4.bold(`VM0 CLI v${"9.62.6"}`));
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.string().uuid().nullable()
1172
+ agentComposeId: z5.uuid().nullable()
1173
1173
  }),
1174
1174
  responses: {
1175
1175
  200: z5.object({
1176
- agentComposeId: z5.string().uuid().nullable()
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.string().url()
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.string().url(),
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.string().uuid(),
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.string().uuid(),
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.string().uuid(),
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.string().uuid(),
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.string().uuid().nullable()
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.string().uuid(),
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.string().uuid().nullable(),
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.string().uuid()
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.string().uuid(),
3297
- composeId: z17.string().uuid(),
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.string().uuid(),
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.string().uuid(),
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.string().uuid(),
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.string().url(),
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.string().url().startsWith("https://github.com/"),
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.string().uuid()
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.string().uuid(),
3738
+ jobId: z20.uuid(),
3739
3739
  success: z20.boolean(),
3740
3740
  // Result from CLI compose command
3741
3741
  result: composeJobResultSchema.optional(),
@@ -4370,7 +4370,13 @@ var CONNECTOR_TYPES_DEF = {
4370
4370
  oauth: {
4371
4371
  authorizationUrl: "https://linear.app/oauth/authorize",
4372
4372
  tokenUrl: "https://api.linear.app/oauth/token",
4373
- scopes: ["read", "write"],
4373
+ scopes: [
4374
+ "read",
4375
+ "write",
4376
+ "issues:create",
4377
+ "comments:create",
4378
+ "timeSchedule:write"
4379
+ ],
4374
4380
  environmentMapping: {
4375
4381
  LINEAR_TOKEN: "$secrets.LINEAR_ACCESS_TOKEN"
4376
4382
  }
@@ -6368,7 +6374,7 @@ function getConnectorDerivedNames(secretName) {
6368
6374
  return null;
6369
6375
  }
6370
6376
  var connectorResponseSchema = z21.object({
6371
- id: z21.string().uuid().nullable(),
6377
+ id: z21.uuid().nullable(),
6372
6378
  type: connectorTypeSchema,
6373
6379
  authMethod: z21.string(),
6374
6380
  externalId: z21.string().nullable(),
@@ -6435,7 +6441,7 @@ var connectorSessionStatusSchema = z21.enum([
6435
6441
  "error"
6436
6442
  ]);
6437
6443
  var connectorSessionResponseSchema = z21.object({
6438
- id: z21.string().uuid(),
6444
+ id: z21.uuid(),
6439
6445
  code: z21.string(),
6440
6446
  type: connectorTypeSchema,
6441
6447
  status: connectorSessionStatusSchema,
@@ -6481,7 +6487,7 @@ var connectorSessionByIdContract = c18.router({
6481
6487
  headers: authHeadersSchema,
6482
6488
  pathParams: z21.object({
6483
6489
  type: connectorTypeSchema,
6484
- sessionId: z21.string().uuid()
6490
+ sessionId: z21.uuid()
6485
6491
  }),
6486
6492
  responses: {
6487
6493
  200: connectorSessionStatusResponseSchema,
@@ -6494,7 +6500,7 @@ var connectorSessionByIdContract = c18.router({
6494
6500
  }
6495
6501
  });
6496
6502
  var computerConnectorCreateResponseSchema = z21.object({
6497
- id: z21.string().uuid(),
6503
+ id: z21.uuid(),
6498
6504
  ngrokToken: z21.string(),
6499
6505
  bridgeToken: z21.string(),
6500
6506
  endpointPrefix: z21.string(),
@@ -7116,7 +7122,7 @@ var skillsResolveContract = c23.router({
7116
7122
  path: "/api/skills/resolve",
7117
7123
  headers: authHeadersSchema,
7118
7124
  body: z26.object({
7119
- skills: z26.array(z26.string().url()).min(1).max(100)
7125
+ skills: z26.array(z26.url()).min(1).max(100)
7120
7126
  }),
7121
7127
  responses: {
7122
7128
  200: z26.object({
@@ -7385,11 +7391,6 @@ var FEATURE_SWITCHES = {
7385
7391
  maintainer: "ethan@vm0.ai",
7386
7392
  enabled: false,
7387
7393
  enabledUserHashes: STAFF_USER_HASHES
7388
- },
7389
- ["zero" /* Zero */]: {
7390
- maintainer: "ethan@vm0.ai",
7391
- enabled: false,
7392
- enabledUserHashes: STAFF_USER_HASHES
7393
7394
  }
7394
7395
  };
7395
7396
  async function isFeatureEnabled(key, userId) {
@@ -9533,7 +9534,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
9533
9534
  options.autoUpdate = false;
9534
9535
  }
9535
9536
  if (options.autoUpdate !== false) {
9536
- await startSilentUpgrade("9.62.4");
9537
+ await startSilentUpgrade("9.62.6");
9537
9538
  }
9538
9539
  try {
9539
9540
  let result;
@@ -10355,7 +10356,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
10355
10356
  withErrorHandler(
10356
10357
  async (identifier, prompt, options) => {
10357
10358
  if (options.autoUpdate !== false) {
10358
- await startSilentUpgrade("9.62.4");
10359
+ await startSilentUpgrade("9.62.6");
10359
10360
  }
10360
10361
  const { org, name, version } = parseIdentifier(identifier);
10361
10362
  let composeId;
@@ -12075,7 +12076,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
12075
12076
  withErrorHandler(
12076
12077
  async (prompt, options) => {
12077
12078
  if (options.autoUpdate !== false) {
12078
- const shouldExit = await checkAndUpgrade("9.62.4", prompt);
12079
+ const shouldExit = await checkAndUpgrade("9.62.6", prompt);
12079
12080
  if (shouldExit) {
12080
12081
  process.exit(0);
12081
12082
  }
@@ -17209,13 +17210,13 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
17209
17210
  if (latestVersion === null) {
17210
17211
  throw new Error("Could not check for updates. Please try again later.");
17211
17212
  }
17212
- if (latestVersion === "9.62.4") {
17213
- console.log(chalk79.green(`\u2713 Already up to date (${"9.62.4"})`));
17213
+ if (latestVersion === "9.62.6") {
17214
+ console.log(chalk79.green(`\u2713 Already up to date (${"9.62.6"})`));
17214
17215
  return;
17215
17216
  }
17216
17217
  console.log(
17217
17218
  chalk79.yellow(
17218
- `Current version: ${"9.62.4"} -> Latest version: ${latestVersion}`
17219
+ `Current version: ${"9.62.6"} -> Latest version: ${latestVersion}`
17219
17220
  )
17220
17221
  );
17221
17222
  console.log();
@@ -17242,7 +17243,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
17242
17243
  const success = await performUpgrade(packageManager);
17243
17244
  if (success) {
17244
17245
  console.log(
17245
- chalk79.green(`\u2713 Upgraded from ${"9.62.4"} to ${latestVersion}`)
17246
+ chalk79.green(`\u2713 Upgraded from ${"9.62.6"} to ${latestVersion}`)
17246
17247
  );
17247
17248
  return;
17248
17249
  }
@@ -17256,7 +17257,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
17256
17257
 
17257
17258
  // src/index.ts
17258
17259
  var program = new Command87();
17259
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.4");
17260
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.6");
17260
17261
  program.addCommand(authCommand);
17261
17262
  program.addCommand(infoCommand);
17262
17263
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.62.4",
3
+ "version": "9.62.6",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",