@vm0/cli 8.1.1 → 9.0.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.
Files changed (2) hide show
  1. package/index.js +58 -58
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2305,12 +2305,12 @@ var publicApiErrorSchema = z18.object({
2305
2305
  code: z18.string(),
2306
2306
  message: z18.string(),
2307
2307
  param: z18.string().optional(),
2308
- doc_url: z18.string().url().optional()
2308
+ docUrl: z18.string().url().optional()
2309
2309
  })
2310
2310
  });
2311
2311
  var paginationSchema = z18.object({
2312
- has_more: z18.boolean(),
2313
- next_cursor: z18.string().nullable()
2312
+ hasMore: z18.boolean(),
2313
+ nextCursor: z18.string().nullable()
2314
2314
  });
2315
2315
  function createPaginatedResponseSchema(dataSchema) {
2316
2316
  return z18.object({
@@ -2394,15 +2394,15 @@ var c16 = initContract();
2394
2394
  var publicAgentSchema = z20.object({
2395
2395
  id: z20.string(),
2396
2396
  name: z20.string(),
2397
- current_version_id: z20.string().nullable(),
2398
- created_at: timestampSchema,
2399
- updated_at: timestampSchema
2397
+ currentVersionId: z20.string().nullable(),
2398
+ createdAt: timestampSchema,
2399
+ updatedAt: timestampSchema
2400
2400
  });
2401
2401
  var agentVersionSchema = z20.object({
2402
2402
  id: z20.string(),
2403
- agent_id: z20.string(),
2404
- version_number: z20.number(),
2405
- created_at: timestampSchema
2403
+ agentId: z20.string(),
2404
+ versionNumber: z20.number(),
2405
+ createdAt: timestampSchema
2406
2406
  });
2407
2407
  var publicAgentDetailSchema = publicAgentSchema;
2408
2408
  var paginatedAgentsSchema = createPaginatedResponseSchema(publicAgentSchema);
@@ -2476,50 +2476,50 @@ var publicRunStatusSchema = z21.enum([
2476
2476
  ]);
2477
2477
  var publicRunSchema = z21.object({
2478
2478
  id: z21.string(),
2479
- agent_id: z21.string(),
2480
- agent_name: z21.string(),
2479
+ agentId: z21.string(),
2480
+ agentName: z21.string(),
2481
2481
  status: publicRunStatusSchema,
2482
2482
  prompt: z21.string(),
2483
- created_at: timestampSchema,
2484
- started_at: timestampSchema.nullable(),
2485
- completed_at: timestampSchema.nullable()
2483
+ createdAt: timestampSchema,
2484
+ startedAt: timestampSchema.nullable(),
2485
+ completedAt: timestampSchema.nullable()
2486
2486
  });
2487
2487
  var publicRunDetailSchema = publicRunSchema.extend({
2488
2488
  error: z21.string().nullable(),
2489
- execution_time_ms: z21.number().nullable(),
2490
- checkpoint_id: z21.string().nullable(),
2491
- session_id: z21.string().nullable(),
2492
- artifact_name: z21.string().nullable(),
2493
- artifact_version: z21.string().nullable(),
2489
+ executionTimeMs: z21.number().nullable(),
2490
+ checkpointId: z21.string().nullable(),
2491
+ sessionId: z21.string().nullable(),
2492
+ artifactName: z21.string().nullable(),
2493
+ artifactVersion: z21.string().nullable(),
2494
2494
  volumes: z21.record(z21.string(), z21.string()).optional()
2495
2495
  });
2496
2496
  var paginatedRunsSchema = createPaginatedResponseSchema(publicRunSchema);
2497
2497
  var createRunRequestSchema = z21.object({
2498
- // Agent identification (one of: agent, agent_id, session_id, checkpoint_id)
2498
+ // Agent identification (one of: agent, agentId, sessionId, checkpointId)
2499
2499
  agent: z21.string().optional(),
2500
2500
  // Agent name
2501
- agent_id: z21.string().optional(),
2501
+ agentId: z21.string().optional(),
2502
2502
  // Agent ID
2503
- agent_version: z21.string().optional(),
2503
+ agentVersion: z21.string().optional(),
2504
2504
  // Version specifier (e.g., "latest", "v1", specific ID)
2505
2505
  // Continue session
2506
- session_id: z21.string().optional(),
2506
+ sessionId: z21.string().optional(),
2507
2507
  // Resume from checkpoint
2508
- checkpoint_id: z21.string().optional(),
2508
+ checkpointId: z21.string().optional(),
2509
2509
  // Required
2510
2510
  prompt: z21.string().min(1, "Prompt is required"),
2511
2511
  // Optional configuration
2512
2512
  variables: z21.record(z21.string(), z21.string()).optional(),
2513
2513
  secrets: z21.record(z21.string(), z21.string()).optional(),
2514
- artifact_name: z21.string().optional(),
2514
+ artifactName: z21.string().optional(),
2515
2515
  // Artifact name to mount
2516
- artifact_version: z21.string().optional(),
2516
+ artifactVersion: z21.string().optional(),
2517
2517
  // Artifact version (defaults to latest)
2518
2518
  volumes: z21.record(z21.string(), z21.string()).optional()
2519
2519
  // volume_name -> version
2520
2520
  });
2521
2521
  var runListQuerySchema = listQuerySchema.extend({
2522
- agent_id: z21.string().optional(),
2522
+ agentId: z21.string().optional(),
2523
2523
  status: publicRunStatusSchema.optional(),
2524
2524
  since: timestampSchema.optional()
2525
2525
  });
@@ -2628,16 +2628,16 @@ var publicRunLogsContract = c17.router({
2628
2628
  });
2629
2629
  var metricPointSchema = z21.object({
2630
2630
  timestamp: timestampSchema,
2631
- cpu_percent: z21.number(),
2632
- memory_used_mb: z21.number(),
2633
- memory_total_mb: z21.number(),
2634
- disk_used_mb: z21.number(),
2635
- disk_total_mb: z21.number()
2631
+ cpuPercent: z21.number(),
2632
+ memoryUsedMb: z21.number(),
2633
+ memoryTotalMb: z21.number(),
2634
+ diskUsedMb: z21.number(),
2635
+ diskTotalMb: z21.number()
2636
2636
  });
2637
2637
  var metricsSummarySchema = z21.object({
2638
- avg_cpu_percent: z21.number(),
2639
- max_memory_used_mb: z21.number(),
2640
- total_duration_ms: z21.number().nullable()
2638
+ avgCpuPercent: z21.number(),
2639
+ maxMemoryUsedMb: z21.number(),
2640
+ totalDurationMs: z21.number().nullable()
2641
2641
  });
2642
2642
  var metricsResponseSchema2 = z21.object({
2643
2643
  data: z21.array(metricPointSchema),
@@ -2688,7 +2688,7 @@ var publicRunEventsContract = c17.router({
2688
2688
  id: z21.string().min(1, "Run ID is required")
2689
2689
  }),
2690
2690
  query: z21.object({
2691
- last_event_id: z21.string().optional()
2691
+ lastEventId: z21.string().optional()
2692
2692
  // For reconnection
2693
2693
  }),
2694
2694
  responses: {
@@ -2709,27 +2709,27 @@ var c18 = initContract();
2709
2709
  var publicArtifactSchema = z22.object({
2710
2710
  id: z22.string(),
2711
2711
  name: z22.string(),
2712
- current_version_id: z22.string().nullable(),
2712
+ currentVersionId: z22.string().nullable(),
2713
2713
  size: z22.number(),
2714
2714
  // Total size in bytes
2715
- file_count: z22.number(),
2716
- created_at: timestampSchema,
2717
- updated_at: timestampSchema
2715
+ fileCount: z22.number(),
2716
+ createdAt: timestampSchema,
2717
+ updatedAt: timestampSchema
2718
2718
  });
2719
2719
  var artifactVersionSchema = z22.object({
2720
2720
  id: z22.string(),
2721
2721
  // SHA-256 content hash
2722
- artifact_id: z22.string(),
2722
+ artifactId: z22.string(),
2723
2723
  size: z22.number(),
2724
2724
  // Size in bytes
2725
- file_count: z22.number(),
2725
+ fileCount: z22.number(),
2726
2726
  message: z22.string().nullable(),
2727
2727
  // Optional commit message
2728
- created_by: z22.string(),
2729
- created_at: timestampSchema
2728
+ createdBy: z22.string(),
2729
+ createdAt: timestampSchema
2730
2730
  });
2731
2731
  var publicArtifactDetailSchema = publicArtifactSchema.extend({
2732
- current_version: artifactVersionSchema.nullable()
2732
+ currentVersion: artifactVersionSchema.nullable()
2733
2733
  });
2734
2734
  var paginatedArtifactsSchema = createPaginatedResponseSchema(publicArtifactSchema);
2735
2735
  var paginatedArtifactVersionsSchema = createPaginatedResponseSchema(
@@ -2796,7 +2796,7 @@ var publicArtifactDownloadContract = c18.router({
2796
2796
  id: z22.string().min(1, "Artifact ID is required")
2797
2797
  }),
2798
2798
  query: z22.object({
2799
- version_id: z22.string().optional()
2799
+ versionId: z22.string().optional()
2800
2800
  // Defaults to current version
2801
2801
  }),
2802
2802
  responses: {
@@ -2817,27 +2817,27 @@ var c19 = initContract();
2817
2817
  var publicVolumeSchema = z23.object({
2818
2818
  id: z23.string(),
2819
2819
  name: z23.string(),
2820
- current_version_id: z23.string().nullable(),
2820
+ currentVersionId: z23.string().nullable(),
2821
2821
  size: z23.number(),
2822
2822
  // Total size in bytes
2823
- file_count: z23.number(),
2824
- created_at: timestampSchema,
2825
- updated_at: timestampSchema
2823
+ fileCount: z23.number(),
2824
+ createdAt: timestampSchema,
2825
+ updatedAt: timestampSchema
2826
2826
  });
2827
2827
  var volumeVersionSchema = z23.object({
2828
2828
  id: z23.string(),
2829
2829
  // SHA-256 content hash
2830
- volume_id: z23.string(),
2830
+ volumeId: z23.string(),
2831
2831
  size: z23.number(),
2832
2832
  // Size in bytes
2833
- file_count: z23.number(),
2833
+ fileCount: z23.number(),
2834
2834
  message: z23.string().nullable(),
2835
2835
  // Optional commit message
2836
- created_by: z23.string(),
2837
- created_at: timestampSchema
2836
+ createdBy: z23.string(),
2837
+ createdAt: timestampSchema
2838
2838
  });
2839
2839
  var publicVolumeDetailSchema = publicVolumeSchema.extend({
2840
- current_version: volumeVersionSchema.nullable()
2840
+ currentVersion: volumeVersionSchema.nullable()
2841
2841
  });
2842
2842
  var paginatedVolumesSchema = createPaginatedResponseSchema(publicVolumeSchema);
2843
2843
  var paginatedVolumeVersionsSchema = createPaginatedResponseSchema(volumeVersionSchema);
@@ -2902,7 +2902,7 @@ var publicVolumeDownloadContract = c19.router({
2902
2902
  id: z23.string().min(1, "Volume ID is required")
2903
2903
  }),
2904
2904
  query: z23.object({
2905
- version_id: z23.string().optional()
2905
+ versionId: z23.string().optional()
2906
2906
  // Defaults to current version
2907
2907
  }),
2908
2908
  responses: {
@@ -7888,7 +7888,7 @@ cookCmd.argument("[prompt]", "Prompt for the agent").option(
7888
7888
  // eslint-disable-next-line complexity -- TODO: refactor complex function
7889
7889
  async (prompt, options) => {
7890
7890
  if (!options.noAutoUpdate) {
7891
- const shouldExit = await checkAndUpgrade("8.1.1", prompt);
7891
+ const shouldExit = await checkAndUpgrade("9.0.0", prompt);
7892
7892
  if (shouldExit) {
7893
7893
  process.exit(0);
7894
7894
  }
@@ -10557,7 +10557,7 @@ var modelProviderCommand = new Command44().name("model-provider").description("M
10557
10557
 
10558
10558
  // src/index.ts
10559
10559
  var program = new Command45();
10560
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("8.1.1");
10560
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.0.0");
10561
10561
  program.command("info").description("Display environment information").action(async () => {
10562
10562
  console.log(chalk46.bold("System Information:"));
10563
10563
  console.log(`Node Version: ${process.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "8.1.1",
3
+ "version": "9.0.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",