@vm0/runner 3.10.2 → 3.11.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 +198 -149
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7665,14 +7665,20 @@ var modelProviderTypeSchema = z18.enum([
7665
7665
  "anthropic-api-key",
7666
7666
  "openrouter-api-key",
7667
7667
  "moonshot-api-key",
7668
- "minimax-api-key"
7668
+ "minimax-api-key",
7669
+ "aws-bedrock"
7669
7670
  ]);
7670
7671
  var modelProviderFrameworkSchema = z18.enum(["claude-code", "codex"]);
7671
7672
  var modelProviderResponseSchema = z18.object({
7672
7673
  id: z18.string().uuid(),
7673
7674
  type: modelProviderTypeSchema,
7674
7675
  framework: modelProviderFrameworkSchema,
7675
- credentialName: z18.string(),
7676
+ credentialName: z18.string().nullable(),
7677
+ // Legacy single-credential (deprecated for multi-auth)
7678
+ authMethod: z18.string().nullable(),
7679
+ // For multi-auth providers
7680
+ credentialNames: z18.array(z18.string()).nullable(),
7681
+ // For multi-auth providers
7676
7682
  isDefault: z18.boolean(),
7677
7683
  selectedModel: z18.string().nullable(),
7678
7684
  createdAt: z18.string(),
@@ -7683,7 +7689,12 @@ var modelProviderListResponseSchema = z18.object({
7683
7689
  });
7684
7690
  var upsertModelProviderRequestSchema = z18.object({
7685
7691
  type: modelProviderTypeSchema,
7686
- credential: z18.string().min(1, "Credential is required"),
7692
+ credential: z18.string().min(1).optional(),
7693
+ // Legacy single credential
7694
+ authMethod: z18.string().optional(),
7695
+ // For multi-auth providers
7696
+ credentials: z18.record(z18.string(), z18.string()).optional(),
7697
+ // For multi-auth providers
7687
7698
  convert: z18.boolean().optional(),
7688
7699
  selectedModel: z18.string().optional()
7689
7700
  });
@@ -8328,29 +8339,67 @@ var platformArtifactDownloadContract = c15.router({
8328
8339
  }
8329
8340
  });
8330
8341
 
8331
- // ../../packages/core/src/contracts/public/agents.ts
8342
+ // ../../packages/core/src/contracts/llm.ts
8332
8343
  import { z as z24 } from "zod";
8333
8344
  var c16 = initContract();
8334
- var publicAgentSchema = z24.object({
8335
- id: z24.string(),
8336
- name: z24.string(),
8337
- currentVersionId: z24.string().nullable(),
8345
+ var messageRoleSchema = z24.enum(["user", "assistant", "system"]);
8346
+ var chatMessageSchema = z24.object({
8347
+ role: messageRoleSchema,
8348
+ content: z24.string()
8349
+ });
8350
+ var tokenUsageSchema = z24.object({
8351
+ promptTokens: z24.number(),
8352
+ completionTokens: z24.number(),
8353
+ totalTokens: z24.number()
8354
+ });
8355
+ var llmChatRequestSchema = z24.object({
8356
+ model: z24.string().min(1).optional(),
8357
+ messages: z24.array(chatMessageSchema).min(1, "At least one message is required"),
8358
+ stream: z24.boolean().optional().default(false)
8359
+ });
8360
+ var llmChatResponseSchema = z24.object({
8361
+ content: z24.string(),
8362
+ model: z24.string(),
8363
+ usage: tokenUsageSchema
8364
+ });
8365
+ var llmChatContract = c16.router({
8366
+ chat: {
8367
+ method: "POST",
8368
+ path: "/api/llm/chat",
8369
+ body: llmChatRequestSchema,
8370
+ responses: {
8371
+ 200: llmChatResponseSchema,
8372
+ 400: apiErrorSchema,
8373
+ 500: apiErrorSchema,
8374
+ 503: apiErrorSchema
8375
+ },
8376
+ summary: "Send a chat completion request to OpenRouter"
8377
+ }
8378
+ });
8379
+
8380
+ // ../../packages/core/src/contracts/public/agents.ts
8381
+ import { z as z25 } from "zod";
8382
+ var c17 = initContract();
8383
+ var publicAgentSchema = z25.object({
8384
+ id: z25.string(),
8385
+ name: z25.string(),
8386
+ currentVersionId: z25.string().nullable(),
8338
8387
  createdAt: timestampSchema,
8339
8388
  updatedAt: timestampSchema
8340
8389
  });
8341
- var agentVersionSchema = z24.object({
8342
- id: z24.string(),
8343
- agentId: z24.string(),
8344
- versionNumber: z24.number(),
8390
+ var agentVersionSchema = z25.object({
8391
+ id: z25.string(),
8392
+ agentId: z25.string(),
8393
+ versionNumber: z25.number(),
8345
8394
  createdAt: timestampSchema
8346
8395
  });
8347
8396
  var publicAgentDetailSchema = publicAgentSchema;
8348
8397
  var paginatedAgentsSchema = createPaginatedResponseSchema(publicAgentSchema);
8349
8398
  var paginatedAgentVersionsSchema = createPaginatedResponseSchema(agentVersionSchema);
8350
8399
  var agentListQuerySchema = listQuerySchema.extend({
8351
- name: z24.string().optional()
8400
+ name: z25.string().optional()
8352
8401
  });
8353
- var publicAgentsListContract = c16.router({
8402
+ var publicAgentsListContract = c17.router({
8354
8403
  list: {
8355
8404
  method: "GET",
8356
8405
  path: "/v1/agents",
@@ -8365,13 +8414,13 @@ var publicAgentsListContract = c16.router({
8365
8414
  description: "List all agents in the current scope with pagination. Use the `name` query parameter to filter by agent name."
8366
8415
  }
8367
8416
  });
8368
- var publicAgentByIdContract = c16.router({
8417
+ var publicAgentByIdContract = c17.router({
8369
8418
  get: {
8370
8419
  method: "GET",
8371
8420
  path: "/v1/agents/:id",
8372
8421
  headers: authHeadersSchema,
8373
- pathParams: z24.object({
8374
- id: z24.string().min(1, "Agent ID is required")
8422
+ pathParams: z25.object({
8423
+ id: z25.string().min(1, "Agent ID is required")
8375
8424
  }),
8376
8425
  responses: {
8377
8426
  200: publicAgentDetailSchema,
@@ -8383,13 +8432,13 @@ var publicAgentByIdContract = c16.router({
8383
8432
  description: "Get agent details by ID"
8384
8433
  }
8385
8434
  });
8386
- var publicAgentVersionsContract = c16.router({
8435
+ var publicAgentVersionsContract = c17.router({
8387
8436
  list: {
8388
8437
  method: "GET",
8389
8438
  path: "/v1/agents/:id/versions",
8390
8439
  headers: authHeadersSchema,
8391
- pathParams: z24.object({
8392
- id: z24.string().min(1, "Agent ID is required")
8440
+ pathParams: z25.object({
8441
+ id: z25.string().min(1, "Agent ID is required")
8393
8442
  }),
8394
8443
  query: listQuerySchema,
8395
8444
  responses: {
@@ -8404,9 +8453,9 @@ var publicAgentVersionsContract = c16.router({
8404
8453
  });
8405
8454
 
8406
8455
  // ../../packages/core/src/contracts/public/runs.ts
8407
- import { z as z25 } from "zod";
8408
- var c17 = initContract();
8409
- var publicRunStatusSchema = z25.enum([
8456
+ import { z as z26 } from "zod";
8457
+ var c18 = initContract();
8458
+ var publicRunStatusSchema = z26.enum([
8410
8459
  "pending",
8411
8460
  "running",
8412
8461
  "completed",
@@ -8414,54 +8463,54 @@ var publicRunStatusSchema = z25.enum([
8414
8463
  "timeout",
8415
8464
  "cancelled"
8416
8465
  ]);
8417
- var publicRunSchema = z25.object({
8418
- id: z25.string(),
8419
- agentId: z25.string(),
8420
- agentName: z25.string(),
8466
+ var publicRunSchema = z26.object({
8467
+ id: z26.string(),
8468
+ agentId: z26.string(),
8469
+ agentName: z26.string(),
8421
8470
  status: publicRunStatusSchema,
8422
- prompt: z25.string(),
8471
+ prompt: z26.string(),
8423
8472
  createdAt: timestampSchema,
8424
8473
  startedAt: timestampSchema.nullable(),
8425
8474
  completedAt: timestampSchema.nullable()
8426
8475
  });
8427
8476
  var publicRunDetailSchema = publicRunSchema.extend({
8428
- error: z25.string().nullable(),
8429
- executionTimeMs: z25.number().nullable(),
8430
- checkpointId: z25.string().nullable(),
8431
- sessionId: z25.string().nullable(),
8432
- artifactName: z25.string().nullable(),
8433
- artifactVersion: z25.string().nullable(),
8434
- volumes: z25.record(z25.string(), z25.string()).optional()
8477
+ error: z26.string().nullable(),
8478
+ executionTimeMs: z26.number().nullable(),
8479
+ checkpointId: z26.string().nullable(),
8480
+ sessionId: z26.string().nullable(),
8481
+ artifactName: z26.string().nullable(),
8482
+ artifactVersion: z26.string().nullable(),
8483
+ volumes: z26.record(z26.string(), z26.string()).optional()
8435
8484
  });
8436
8485
  var paginatedRunsSchema = createPaginatedResponseSchema(publicRunSchema);
8437
- var createRunRequestSchema = z25.object({
8486
+ var createRunRequestSchema = z26.object({
8438
8487
  // Agent identification (one of: agent, agentId, sessionId, checkpointId)
8439
- agent: z25.string().optional(),
8488
+ agent: z26.string().optional(),
8440
8489
  // Agent name
8441
- agentId: z25.string().optional(),
8490
+ agentId: z26.string().optional(),
8442
8491
  // Agent ID
8443
- agentVersion: z25.string().optional(),
8492
+ agentVersion: z26.string().optional(),
8444
8493
  // Version specifier (e.g., "latest", "v1", specific ID)
8445
8494
  // Continue session
8446
- sessionId: z25.string().optional(),
8495
+ sessionId: z26.string().optional(),
8447
8496
  // Resume from checkpoint
8448
- checkpointId: z25.string().optional(),
8497
+ checkpointId: z26.string().optional(),
8449
8498
  // Required
8450
- prompt: z25.string().min(1, "Prompt is required"),
8499
+ prompt: z26.string().min(1, "Prompt is required"),
8451
8500
  // Optional configuration
8452
- variables: z25.record(z25.string(), z25.string()).optional(),
8453
- secrets: z25.record(z25.string(), z25.string()).optional(),
8454
- artifactName: z25.string().optional(),
8501
+ variables: z26.record(z26.string(), z26.string()).optional(),
8502
+ secrets: z26.record(z26.string(), z26.string()).optional(),
8503
+ artifactName: z26.string().optional(),
8455
8504
  // Artifact name to mount
8456
- artifactVersion: z25.string().optional(),
8505
+ artifactVersion: z26.string().optional(),
8457
8506
  // Artifact version (defaults to latest)
8458
- volumes: z25.record(z25.string(), z25.string()).optional()
8507
+ volumes: z26.record(z26.string(), z26.string()).optional()
8459
8508
  // volume_name -> version
8460
8509
  });
8461
8510
  var runListQuerySchema = listQuerySchema.extend({
8462
8511
  status: publicRunStatusSchema.optional()
8463
8512
  });
8464
- var publicRunsListContract = c17.router({
8513
+ var publicRunsListContract = c18.router({
8465
8514
  list: {
8466
8515
  method: "GET",
8467
8516
  path: "/v1/runs",
@@ -8493,13 +8542,13 @@ var publicRunsListContract = c17.router({
8493
8542
  description: "Create and execute a new agent run. Returns 202 Accepted as runs execute asynchronously."
8494
8543
  }
8495
8544
  });
8496
- var publicRunByIdContract = c17.router({
8545
+ var publicRunByIdContract = c18.router({
8497
8546
  get: {
8498
8547
  method: "GET",
8499
8548
  path: "/v1/runs/:id",
8500
8549
  headers: authHeadersSchema,
8501
- pathParams: z25.object({
8502
- id: z25.string().min(1, "Run ID is required")
8550
+ pathParams: z26.object({
8551
+ id: z26.string().min(1, "Run ID is required")
8503
8552
  }),
8504
8553
  responses: {
8505
8554
  200: publicRunDetailSchema,
@@ -8511,15 +8560,15 @@ var publicRunByIdContract = c17.router({
8511
8560
  description: "Get run details by ID"
8512
8561
  }
8513
8562
  });
8514
- var publicRunCancelContract = c17.router({
8563
+ var publicRunCancelContract = c18.router({
8515
8564
  cancel: {
8516
8565
  method: "POST",
8517
8566
  path: "/v1/runs/:id/cancel",
8518
8567
  headers: authHeadersSchema,
8519
- pathParams: z25.object({
8520
- id: z25.string().min(1, "Run ID is required")
8568
+ pathParams: z26.object({
8569
+ id: z26.string().min(1, "Run ID is required")
8521
8570
  }),
8522
- body: z25.undefined(),
8571
+ body: z26.undefined(),
8523
8572
  responses: {
8524
8573
  200: publicRunDetailSchema,
8525
8574
  400: publicApiErrorSchema,
@@ -8532,27 +8581,27 @@ var publicRunCancelContract = c17.router({
8532
8581
  description: "Cancel a pending or running execution"
8533
8582
  }
8534
8583
  });
8535
- var logEntrySchema = z25.object({
8584
+ var logEntrySchema = z26.object({
8536
8585
  timestamp: timestampSchema,
8537
- type: z25.enum(["agent", "system", "network"]),
8538
- level: z25.enum(["debug", "info", "warn", "error"]),
8539
- message: z25.string(),
8540
- metadata: z25.record(z25.string(), z25.unknown()).optional()
8586
+ type: z26.enum(["agent", "system", "network"]),
8587
+ level: z26.enum(["debug", "info", "warn", "error"]),
8588
+ message: z26.string(),
8589
+ metadata: z26.record(z26.string(), z26.unknown()).optional()
8541
8590
  });
8542
8591
  var paginatedLogsSchema = createPaginatedResponseSchema(logEntrySchema);
8543
8592
  var logsQuerySchema = listQuerySchema.extend({
8544
- type: z25.enum(["agent", "system", "network", "all"]).default("all"),
8593
+ type: z26.enum(["agent", "system", "network", "all"]).default("all"),
8545
8594
  since: timestampSchema.optional(),
8546
8595
  until: timestampSchema.optional(),
8547
- order: z25.enum(["asc", "desc"]).default("asc")
8596
+ order: z26.enum(["asc", "desc"]).default("asc")
8548
8597
  });
8549
- var publicRunLogsContract = c17.router({
8598
+ var publicRunLogsContract = c18.router({
8550
8599
  getLogs: {
8551
8600
  method: "GET",
8552
8601
  path: "/v1/runs/:id/logs",
8553
8602
  headers: authHeadersSchema,
8554
- pathParams: z25.object({
8555
- id: z25.string().min(1, "Run ID is required")
8603
+ pathParams: z26.object({
8604
+ id: z26.string().min(1, "Run ID is required")
8556
8605
  }),
8557
8606
  query: logsQuerySchema,
8558
8607
  responses: {
@@ -8565,30 +8614,30 @@ var publicRunLogsContract = c17.router({
8565
8614
  description: "Get unified logs for a run. Combines agent, system, and network logs."
8566
8615
  }
8567
8616
  });
8568
- var metricPointSchema = z25.object({
8617
+ var metricPointSchema = z26.object({
8569
8618
  timestamp: timestampSchema,
8570
- cpuPercent: z25.number(),
8571
- memoryUsedMb: z25.number(),
8572
- memoryTotalMb: z25.number(),
8573
- diskUsedMb: z25.number(),
8574
- diskTotalMb: z25.number()
8575
- });
8576
- var metricsSummarySchema = z25.object({
8577
- avgCpuPercent: z25.number(),
8578
- maxMemoryUsedMb: z25.number(),
8579
- totalDurationMs: z25.number().nullable()
8580
- });
8581
- var metricsResponseSchema2 = z25.object({
8582
- data: z25.array(metricPointSchema),
8619
+ cpuPercent: z26.number(),
8620
+ memoryUsedMb: z26.number(),
8621
+ memoryTotalMb: z26.number(),
8622
+ diskUsedMb: z26.number(),
8623
+ diskTotalMb: z26.number()
8624
+ });
8625
+ var metricsSummarySchema = z26.object({
8626
+ avgCpuPercent: z26.number(),
8627
+ maxMemoryUsedMb: z26.number(),
8628
+ totalDurationMs: z26.number().nullable()
8629
+ });
8630
+ var metricsResponseSchema2 = z26.object({
8631
+ data: z26.array(metricPointSchema),
8583
8632
  summary: metricsSummarySchema
8584
8633
  });
8585
- var publicRunMetricsContract = c17.router({
8634
+ var publicRunMetricsContract = c18.router({
8586
8635
  getMetrics: {
8587
8636
  method: "GET",
8588
8637
  path: "/v1/runs/:id/metrics",
8589
8638
  headers: authHeadersSchema,
8590
- pathParams: z25.object({
8591
- id: z25.string().min(1, "Run ID is required")
8639
+ pathParams: z26.object({
8640
+ id: z26.string().min(1, "Run ID is required")
8592
8641
  }),
8593
8642
  responses: {
8594
8643
  200: metricsResponseSchema2,
@@ -8600,7 +8649,7 @@ var publicRunMetricsContract = c17.router({
8600
8649
  description: "Get CPU, memory, and disk metrics for a run"
8601
8650
  }
8602
8651
  });
8603
- var sseEventTypeSchema = z25.enum([
8652
+ var sseEventTypeSchema = z26.enum([
8604
8653
  "status",
8605
8654
  // Run status change
8606
8655
  "output",
@@ -8612,26 +8661,26 @@ var sseEventTypeSchema = z25.enum([
8612
8661
  "heartbeat"
8613
8662
  // Keep-alive
8614
8663
  ]);
8615
- var sseEventSchema = z25.object({
8664
+ var sseEventSchema = z26.object({
8616
8665
  event: sseEventTypeSchema,
8617
- data: z25.unknown(),
8618
- id: z25.string().optional()
8666
+ data: z26.unknown(),
8667
+ id: z26.string().optional()
8619
8668
  // For Last-Event-ID reconnection
8620
8669
  });
8621
- var publicRunEventsContract = c17.router({
8670
+ var publicRunEventsContract = c18.router({
8622
8671
  streamEvents: {
8623
8672
  method: "GET",
8624
8673
  path: "/v1/runs/:id/events",
8625
8674
  headers: authHeadersSchema,
8626
- pathParams: z25.object({
8627
- id: z25.string().min(1, "Run ID is required")
8675
+ pathParams: z26.object({
8676
+ id: z26.string().min(1, "Run ID is required")
8628
8677
  }),
8629
- query: z25.object({
8630
- lastEventId: z25.string().optional()
8678
+ query: z26.object({
8679
+ lastEventId: z26.string().optional()
8631
8680
  // For reconnection
8632
8681
  }),
8633
8682
  responses: {
8634
- 200: z25.any(),
8683
+ 200: z26.any(),
8635
8684
  // SSE stream - actual content is text/event-stream
8636
8685
  401: publicApiErrorSchema,
8637
8686
  404: publicApiErrorSchema,
@@ -8643,28 +8692,28 @@ var publicRunEventsContract = c17.router({
8643
8692
  });
8644
8693
 
8645
8694
  // ../../packages/core/src/contracts/public/artifacts.ts
8646
- import { z as z26 } from "zod";
8647
- var c18 = initContract();
8648
- var publicArtifactSchema = z26.object({
8649
- id: z26.string(),
8650
- name: z26.string(),
8651
- currentVersionId: z26.string().nullable(),
8652
- size: z26.number(),
8695
+ import { z as z27 } from "zod";
8696
+ var c19 = initContract();
8697
+ var publicArtifactSchema = z27.object({
8698
+ id: z27.string(),
8699
+ name: z27.string(),
8700
+ currentVersionId: z27.string().nullable(),
8701
+ size: z27.number(),
8653
8702
  // Total size in bytes
8654
- fileCount: z26.number(),
8703
+ fileCount: z27.number(),
8655
8704
  createdAt: timestampSchema,
8656
8705
  updatedAt: timestampSchema
8657
8706
  });
8658
- var artifactVersionSchema = z26.object({
8659
- id: z26.string(),
8707
+ var artifactVersionSchema = z27.object({
8708
+ id: z27.string(),
8660
8709
  // SHA-256 content hash
8661
- artifactId: z26.string(),
8662
- size: z26.number(),
8710
+ artifactId: z27.string(),
8711
+ size: z27.number(),
8663
8712
  // Size in bytes
8664
- fileCount: z26.number(),
8665
- message: z26.string().nullable(),
8713
+ fileCount: z27.number(),
8714
+ message: z27.string().nullable(),
8666
8715
  // Optional commit message
8667
- createdBy: z26.string(),
8716
+ createdBy: z27.string(),
8668
8717
  createdAt: timestampSchema
8669
8718
  });
8670
8719
  var publicArtifactDetailSchema = publicArtifactSchema.extend({
@@ -8674,7 +8723,7 @@ var paginatedArtifactsSchema = createPaginatedResponseSchema(publicArtifactSchem
8674
8723
  var paginatedArtifactVersionsSchema = createPaginatedResponseSchema(
8675
8724
  artifactVersionSchema
8676
8725
  );
8677
- var publicArtifactsListContract = c18.router({
8726
+ var publicArtifactsListContract = c19.router({
8678
8727
  list: {
8679
8728
  method: "GET",
8680
8729
  path: "/v1/artifacts",
@@ -8689,13 +8738,13 @@ var publicArtifactsListContract = c18.router({
8689
8738
  description: "List all artifacts in the current scope with pagination"
8690
8739
  }
8691
8740
  });
8692
- var publicArtifactByIdContract = c18.router({
8741
+ var publicArtifactByIdContract = c19.router({
8693
8742
  get: {
8694
8743
  method: "GET",
8695
8744
  path: "/v1/artifacts/:id",
8696
8745
  headers: authHeadersSchema,
8697
- pathParams: z26.object({
8698
- id: z26.string().min(1, "Artifact ID is required")
8746
+ pathParams: z27.object({
8747
+ id: z27.string().min(1, "Artifact ID is required")
8699
8748
  }),
8700
8749
  responses: {
8701
8750
  200: publicArtifactDetailSchema,
@@ -8707,13 +8756,13 @@ var publicArtifactByIdContract = c18.router({
8707
8756
  description: "Get artifact details by ID"
8708
8757
  }
8709
8758
  });
8710
- var publicArtifactVersionsContract = c18.router({
8759
+ var publicArtifactVersionsContract = c19.router({
8711
8760
  list: {
8712
8761
  method: "GET",
8713
8762
  path: "/v1/artifacts/:id/versions",
8714
8763
  headers: authHeadersSchema,
8715
- pathParams: z26.object({
8716
- id: z26.string().min(1, "Artifact ID is required")
8764
+ pathParams: z27.object({
8765
+ id: z27.string().min(1, "Artifact ID is required")
8717
8766
  }),
8718
8767
  query: listQuerySchema,
8719
8768
  responses: {
@@ -8726,20 +8775,20 @@ var publicArtifactVersionsContract = c18.router({
8726
8775
  description: "List all versions of an artifact with pagination"
8727
8776
  }
8728
8777
  });
8729
- var publicArtifactDownloadContract = c18.router({
8778
+ var publicArtifactDownloadContract = c19.router({
8730
8779
  download: {
8731
8780
  method: "GET",
8732
8781
  path: "/v1/artifacts/:id/download",
8733
8782
  headers: authHeadersSchema,
8734
- pathParams: z26.object({
8735
- id: z26.string().min(1, "Artifact ID is required")
8783
+ pathParams: z27.object({
8784
+ id: z27.string().min(1, "Artifact ID is required")
8736
8785
  }),
8737
- query: z26.object({
8738
- versionId: z26.string().optional()
8786
+ query: z27.object({
8787
+ versionId: z27.string().optional()
8739
8788
  // Defaults to current version
8740
8789
  }),
8741
8790
  responses: {
8742
- 302: z26.undefined(),
8791
+ 302: z27.undefined(),
8743
8792
  // Redirect to presigned URL
8744
8793
  401: publicApiErrorSchema,
8745
8794
  404: publicApiErrorSchema,
@@ -8751,28 +8800,28 @@ var publicArtifactDownloadContract = c18.router({
8751
8800
  });
8752
8801
 
8753
8802
  // ../../packages/core/src/contracts/public/volumes.ts
8754
- import { z as z27 } from "zod";
8755
- var c19 = initContract();
8756
- var publicVolumeSchema = z27.object({
8757
- id: z27.string(),
8758
- name: z27.string(),
8759
- currentVersionId: z27.string().nullable(),
8760
- size: z27.number(),
8803
+ import { z as z28 } from "zod";
8804
+ var c20 = initContract();
8805
+ var publicVolumeSchema = z28.object({
8806
+ id: z28.string(),
8807
+ name: z28.string(),
8808
+ currentVersionId: z28.string().nullable(),
8809
+ size: z28.number(),
8761
8810
  // Total size in bytes
8762
- fileCount: z27.number(),
8811
+ fileCount: z28.number(),
8763
8812
  createdAt: timestampSchema,
8764
8813
  updatedAt: timestampSchema
8765
8814
  });
8766
- var volumeVersionSchema = z27.object({
8767
- id: z27.string(),
8815
+ var volumeVersionSchema = z28.object({
8816
+ id: z28.string(),
8768
8817
  // SHA-256 content hash
8769
- volumeId: z27.string(),
8770
- size: z27.number(),
8818
+ volumeId: z28.string(),
8819
+ size: z28.number(),
8771
8820
  // Size in bytes
8772
- fileCount: z27.number(),
8773
- message: z27.string().nullable(),
8821
+ fileCount: z28.number(),
8822
+ message: z28.string().nullable(),
8774
8823
  // Optional commit message
8775
- createdBy: z27.string(),
8824
+ createdBy: z28.string(),
8776
8825
  createdAt: timestampSchema
8777
8826
  });
8778
8827
  var publicVolumeDetailSchema = publicVolumeSchema.extend({
@@ -8780,7 +8829,7 @@ var publicVolumeDetailSchema = publicVolumeSchema.extend({
8780
8829
  });
8781
8830
  var paginatedVolumesSchema = createPaginatedResponseSchema(publicVolumeSchema);
8782
8831
  var paginatedVolumeVersionsSchema = createPaginatedResponseSchema(volumeVersionSchema);
8783
- var publicVolumesListContract = c19.router({
8832
+ var publicVolumesListContract = c20.router({
8784
8833
  list: {
8785
8834
  method: "GET",
8786
8835
  path: "/v1/volumes",
@@ -8795,13 +8844,13 @@ var publicVolumesListContract = c19.router({
8795
8844
  description: "List all volumes in the current scope with pagination"
8796
8845
  }
8797
8846
  });
8798
- var publicVolumeByIdContract = c19.router({
8847
+ var publicVolumeByIdContract = c20.router({
8799
8848
  get: {
8800
8849
  method: "GET",
8801
8850
  path: "/v1/volumes/:id",
8802
8851
  headers: authHeadersSchema,
8803
- pathParams: z27.object({
8804
- id: z27.string().min(1, "Volume ID is required")
8852
+ pathParams: z28.object({
8853
+ id: z28.string().min(1, "Volume ID is required")
8805
8854
  }),
8806
8855
  responses: {
8807
8856
  200: publicVolumeDetailSchema,
@@ -8813,13 +8862,13 @@ var publicVolumeByIdContract = c19.router({
8813
8862
  description: "Get volume details by ID"
8814
8863
  }
8815
8864
  });
8816
- var publicVolumeVersionsContract = c19.router({
8865
+ var publicVolumeVersionsContract = c20.router({
8817
8866
  list: {
8818
8867
  method: "GET",
8819
8868
  path: "/v1/volumes/:id/versions",
8820
8869
  headers: authHeadersSchema,
8821
- pathParams: z27.object({
8822
- id: z27.string().min(1, "Volume ID is required")
8870
+ pathParams: z28.object({
8871
+ id: z28.string().min(1, "Volume ID is required")
8823
8872
  }),
8824
8873
  query: listQuerySchema,
8825
8874
  responses: {
@@ -8832,20 +8881,20 @@ var publicVolumeVersionsContract = c19.router({
8832
8881
  description: "List all versions of a volume with pagination"
8833
8882
  }
8834
8883
  });
8835
- var publicVolumeDownloadContract = c19.router({
8884
+ var publicVolumeDownloadContract = c20.router({
8836
8885
  download: {
8837
8886
  method: "GET",
8838
8887
  path: "/v1/volumes/:id/download",
8839
8888
  headers: authHeadersSchema,
8840
- pathParams: z27.object({
8841
- id: z27.string().min(1, "Volume ID is required")
8889
+ pathParams: z28.object({
8890
+ id: z28.string().min(1, "Volume ID is required")
8842
8891
  }),
8843
- query: z27.object({
8844
- versionId: z27.string().optional()
8892
+ query: z28.object({
8893
+ versionId: z28.string().optional()
8845
8894
  // Defaults to current version
8846
8895
  }),
8847
8896
  responses: {
8848
- 302: z27.undefined(),
8897
+ 302: z28.undefined(),
8849
8898
  // Redirect to presigned URL
8850
8899
  401: publicApiErrorSchema,
8851
8900
  404: publicApiErrorSchema,
@@ -11156,7 +11205,7 @@ var benchmarkCommand = new Command4("benchmark").description(
11156
11205
  });
11157
11206
 
11158
11207
  // src/index.ts
11159
- var version = true ? "3.10.2" : "0.1.0";
11208
+ var version = true ? "3.11.0" : "0.1.0";
11160
11209
  program.name("vm0-runner").version(version).description("Self-hosted runner for VM0 agents");
11161
11210
  program.addCommand(startCommand);
11162
11211
  program.addCommand(doctorCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/runner",
3
- "version": "3.10.2",
3
+ "version": "3.11.0",
4
4
  "description": "Self-hosted runner for VM0 agents",
5
5
  "repository": {
6
6
  "type": "git",