@vm0/runner 2.13.3 → 2.13.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.
Files changed (2) hide show
  1. package/index.js +434 -302
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5638,6 +5638,8 @@ var unifiedRunRequestSchema = z6.object({
5638
5638
  volumeVersions: z6.record(z6.string(), z6.string()).optional(),
5639
5639
  // Debug flag to force real Claude in mock environments (internal use only)
5640
5640
  debugNoMockClaude: z6.boolean().optional(),
5641
+ // Model provider for automatic LLM credential injection
5642
+ modelProvider: z6.string().optional(),
5641
5643
  // Required
5642
5644
  prompt: z6.string().min(1, "Missing prompt")
5643
5645
  });
@@ -6651,10 +6653,12 @@ var credentialNameSchema = z14.string().min(1, "Credential name is required").ma
6651
6653
  /^[A-Z][A-Z0-9_]*$/,
6652
6654
  "Credential name must contain only uppercase letters, numbers, and underscores, and must start with a letter (e.g., MY_API_KEY)"
6653
6655
  );
6656
+ var credentialTypeSchema = z14.enum(["user", "model-provider"]);
6654
6657
  var credentialResponseSchema = z14.object({
6655
6658
  id: z14.string().uuid(),
6656
6659
  name: z14.string(),
6657
6660
  description: z14.string().nullable(),
6661
+ type: credentialTypeSchema,
6658
6662
  createdAt: z14.string(),
6659
6663
  updatedAt: z14.string()
6660
6664
  });
@@ -6738,43 +6742,171 @@ var credentialsByNameContract = c10.router({
6738
6742
  }
6739
6743
  });
6740
6744
 
6741
- // ../../packages/core/src/contracts/sessions.ts
6745
+ // ../../packages/core/src/contracts/model-providers.ts
6742
6746
  import { z as z15 } from "zod";
6743
6747
  var c11 = initContract();
6744
- var sessionResponseSchema = z15.object({
6745
- id: z15.string(),
6746
- agentComposeId: z15.string(),
6747
- agentComposeVersionId: z15.string().nullable(),
6748
- conversationId: z15.string().nullable(),
6749
- artifactName: z15.string().nullable(),
6750
- vars: z15.record(z15.string(), z15.string()).nullable(),
6751
- secretNames: z15.array(z15.string()).nullable(),
6752
- volumeVersions: z15.record(z15.string(), z15.string()).nullable(),
6748
+ var modelProviderTypeSchema = z15.enum([
6749
+ "claude-code-oauth-token",
6750
+ "anthropic-api-key",
6751
+ "openai-api-key"
6752
+ ]);
6753
+ var modelProviderFrameworkSchema = z15.enum(["claude-code", "codex"]);
6754
+ var modelProviderResponseSchema = z15.object({
6755
+ id: z15.string().uuid(),
6756
+ type: modelProviderTypeSchema,
6757
+ framework: modelProviderFrameworkSchema,
6758
+ credentialName: z15.string(),
6759
+ isDefault: z15.boolean(),
6753
6760
  createdAt: z15.string(),
6754
6761
  updatedAt: z15.string()
6755
6762
  });
6756
- var agentComposeSnapshotSchema = z15.object({
6757
- agentComposeVersionId: z15.string(),
6758
- vars: z15.record(z15.string(), z15.string()).optional(),
6759
- secretNames: z15.array(z15.string()).optional()
6763
+ var modelProviderListResponseSchema = z15.object({
6764
+ modelProviders: z15.array(modelProviderResponseSchema)
6765
+ });
6766
+ var upsertModelProviderRequestSchema = z15.object({
6767
+ type: modelProviderTypeSchema,
6768
+ credential: z15.string().min(1, "Credential is required"),
6769
+ convert: z15.boolean().optional()
6760
6770
  });
6761
- var artifactSnapshotSchema2 = z15.object({
6762
- artifactName: z15.string(),
6763
- artifactVersion: z15.string()
6771
+ var upsertModelProviderResponseSchema = z15.object({
6772
+ provider: modelProviderResponseSchema,
6773
+ created: z15.boolean()
6774
+ });
6775
+ var checkCredentialResponseSchema = z15.object({
6776
+ exists: z15.boolean(),
6777
+ credentialName: z15.string(),
6778
+ currentType: z15.enum(["user", "model-provider"]).optional()
6779
+ });
6780
+ var modelProvidersMainContract = c11.router({
6781
+ list: {
6782
+ method: "GET",
6783
+ path: "/api/model-providers",
6784
+ responses: {
6785
+ 200: modelProviderListResponseSchema,
6786
+ 401: apiErrorSchema,
6787
+ 500: apiErrorSchema
6788
+ },
6789
+ summary: "List all model providers"
6790
+ },
6791
+ upsert: {
6792
+ method: "PUT",
6793
+ path: "/api/model-providers",
6794
+ body: upsertModelProviderRequestSchema,
6795
+ responses: {
6796
+ 200: upsertModelProviderResponseSchema,
6797
+ 201: upsertModelProviderResponseSchema,
6798
+ 400: apiErrorSchema,
6799
+ 401: apiErrorSchema,
6800
+ 409: apiErrorSchema,
6801
+ 500: apiErrorSchema
6802
+ },
6803
+ summary: "Create or update a model provider"
6804
+ }
6805
+ });
6806
+ var modelProvidersCheckContract = c11.router({
6807
+ check: {
6808
+ method: "GET",
6809
+ path: "/api/model-providers/check/:type",
6810
+ pathParams: z15.object({
6811
+ type: modelProviderTypeSchema
6812
+ }),
6813
+ responses: {
6814
+ 200: checkCredentialResponseSchema,
6815
+ 401: apiErrorSchema,
6816
+ 500: apiErrorSchema
6817
+ },
6818
+ summary: "Check if credential exists for a model provider type"
6819
+ }
6764
6820
  });
6765
- var volumeVersionsSnapshotSchema2 = z15.object({
6766
- versions: z15.record(z15.string(), z15.string())
6821
+ var modelProvidersByTypeContract = c11.router({
6822
+ delete: {
6823
+ method: "DELETE",
6824
+ path: "/api/model-providers/:type",
6825
+ pathParams: z15.object({
6826
+ type: modelProviderTypeSchema
6827
+ }),
6828
+ responses: {
6829
+ 204: z15.undefined(),
6830
+ 401: apiErrorSchema,
6831
+ 404: apiErrorSchema,
6832
+ 500: apiErrorSchema
6833
+ },
6834
+ summary: "Delete a model provider"
6835
+ }
6767
6836
  });
6768
- var checkpointResponseSchema = z15.object({
6769
- id: z15.string(),
6770
- runId: z15.string(),
6771
- conversationId: z15.string(),
6837
+ var modelProvidersConvertContract = c11.router({
6838
+ convert: {
6839
+ method: "POST",
6840
+ path: "/api/model-providers/:type/convert",
6841
+ pathParams: z15.object({
6842
+ type: modelProviderTypeSchema
6843
+ }),
6844
+ body: z15.undefined(),
6845
+ responses: {
6846
+ 200: modelProviderResponseSchema,
6847
+ 400: apiErrorSchema,
6848
+ 401: apiErrorSchema,
6849
+ 404: apiErrorSchema,
6850
+ 500: apiErrorSchema
6851
+ },
6852
+ summary: "Convert existing user credential to model provider"
6853
+ }
6854
+ });
6855
+ var modelProvidersSetDefaultContract = c11.router({
6856
+ setDefault: {
6857
+ method: "POST",
6858
+ path: "/api/model-providers/:type/set-default",
6859
+ pathParams: z15.object({
6860
+ type: modelProviderTypeSchema
6861
+ }),
6862
+ body: z15.undefined(),
6863
+ responses: {
6864
+ 200: modelProviderResponseSchema,
6865
+ 401: apiErrorSchema,
6866
+ 404: apiErrorSchema,
6867
+ 500: apiErrorSchema
6868
+ },
6869
+ summary: "Set a model provider as default for its framework"
6870
+ }
6871
+ });
6872
+
6873
+ // ../../packages/core/src/contracts/sessions.ts
6874
+ import { z as z16 } from "zod";
6875
+ var c12 = initContract();
6876
+ var sessionResponseSchema = z16.object({
6877
+ id: z16.string(),
6878
+ agentComposeId: z16.string(),
6879
+ agentComposeVersionId: z16.string().nullable(),
6880
+ conversationId: z16.string().nullable(),
6881
+ artifactName: z16.string().nullable(),
6882
+ vars: z16.record(z16.string(), z16.string()).nullable(),
6883
+ secretNames: z16.array(z16.string()).nullable(),
6884
+ volumeVersions: z16.record(z16.string(), z16.string()).nullable(),
6885
+ createdAt: z16.string(),
6886
+ updatedAt: z16.string()
6887
+ });
6888
+ var agentComposeSnapshotSchema = z16.object({
6889
+ agentComposeVersionId: z16.string(),
6890
+ vars: z16.record(z16.string(), z16.string()).optional(),
6891
+ secretNames: z16.array(z16.string()).optional()
6892
+ });
6893
+ var artifactSnapshotSchema2 = z16.object({
6894
+ artifactName: z16.string(),
6895
+ artifactVersion: z16.string()
6896
+ });
6897
+ var volumeVersionsSnapshotSchema2 = z16.object({
6898
+ versions: z16.record(z16.string(), z16.string())
6899
+ });
6900
+ var checkpointResponseSchema = z16.object({
6901
+ id: z16.string(),
6902
+ runId: z16.string(),
6903
+ conversationId: z16.string(),
6772
6904
  agentComposeSnapshot: agentComposeSnapshotSchema,
6773
6905
  artifactSnapshot: artifactSnapshotSchema2.nullable(),
6774
6906
  volumeVersionsSnapshot: volumeVersionsSnapshotSchema2.nullable(),
6775
- createdAt: z15.string()
6907
+ createdAt: z16.string()
6776
6908
  });
6777
- var sessionsByIdContract = c11.router({
6909
+ var sessionsByIdContract = c12.router({
6778
6910
  /**
6779
6911
  * GET /api/agent/sessions/:id
6780
6912
  * Get session by ID
@@ -6782,8 +6914,8 @@ var sessionsByIdContract = c11.router({
6782
6914
  getById: {
6783
6915
  method: "GET",
6784
6916
  path: "/api/agent/sessions/:id",
6785
- pathParams: z15.object({
6786
- id: z15.string().min(1, "Session ID is required")
6917
+ pathParams: z16.object({
6918
+ id: z16.string().min(1, "Session ID is required")
6787
6919
  }),
6788
6920
  responses: {
6789
6921
  200: sessionResponseSchema,
@@ -6794,7 +6926,7 @@ var sessionsByIdContract = c11.router({
6794
6926
  summary: "Get session by ID"
6795
6927
  }
6796
6928
  });
6797
- var checkpointsByIdContract = c11.router({
6929
+ var checkpointsByIdContract = c12.router({
6798
6930
  /**
6799
6931
  * GET /api/agent/checkpoints/:id
6800
6932
  * Get checkpoint by ID
@@ -6802,8 +6934,8 @@ var checkpointsByIdContract = c11.router({
6802
6934
  getById: {
6803
6935
  method: "GET",
6804
6936
  path: "/api/agent/checkpoints/:id",
6805
- pathParams: z15.object({
6806
- id: z15.string().min(1, "Checkpoint ID is required")
6937
+ pathParams: z16.object({
6938
+ id: z16.string().min(1, "Checkpoint ID is required")
6807
6939
  }),
6808
6940
  responses: {
6809
6941
  200: checkpointResponseSchema,
@@ -6816,91 +6948,91 @@ var checkpointsByIdContract = c11.router({
6816
6948
  });
6817
6949
 
6818
6950
  // ../../packages/core/src/contracts/schedules.ts
6819
- import { z as z16 } from "zod";
6820
- var c12 = initContract();
6821
- var scheduleTriggerSchema = z16.object({
6822
- cron: z16.string().optional(),
6823
- at: z16.string().optional(),
6824
- timezone: z16.string().default("UTC")
6951
+ import { z as z17 } from "zod";
6952
+ var c13 = initContract();
6953
+ var scheduleTriggerSchema = z17.object({
6954
+ cron: z17.string().optional(),
6955
+ at: z17.string().optional(),
6956
+ timezone: z17.string().default("UTC")
6825
6957
  }).refine((data) => data.cron && !data.at || !data.cron && data.at, {
6826
6958
  message: "Exactly one of 'cron' or 'at' must be specified"
6827
6959
  });
6828
- var scheduleRunConfigSchema = z16.object({
6829
- agent: z16.string().min(1, "Agent reference required"),
6830
- prompt: z16.string().min(1, "Prompt required"),
6831
- vars: z16.record(z16.string(), z16.string()).optional(),
6832
- secrets: z16.record(z16.string(), z16.string()).optional(),
6833
- artifactName: z16.string().optional(),
6834
- artifactVersion: z16.string().optional(),
6835
- volumeVersions: z16.record(z16.string(), z16.string()).optional()
6960
+ var scheduleRunConfigSchema = z17.object({
6961
+ agent: z17.string().min(1, "Agent reference required"),
6962
+ prompt: z17.string().min(1, "Prompt required"),
6963
+ vars: z17.record(z17.string(), z17.string()).optional(),
6964
+ secrets: z17.record(z17.string(), z17.string()).optional(),
6965
+ artifactName: z17.string().optional(),
6966
+ artifactVersion: z17.string().optional(),
6967
+ volumeVersions: z17.record(z17.string(), z17.string()).optional()
6836
6968
  });
6837
- var scheduleDefinitionSchema = z16.object({
6969
+ var scheduleDefinitionSchema = z17.object({
6838
6970
  on: scheduleTriggerSchema,
6839
6971
  run: scheduleRunConfigSchema
6840
6972
  });
6841
- var scheduleYamlSchema = z16.object({
6842
- version: z16.literal("1.0"),
6843
- schedules: z16.record(z16.string(), scheduleDefinitionSchema)
6844
- });
6845
- var deployScheduleRequestSchema = z16.object({
6846
- name: z16.string().min(1).max(64, "Schedule name max 64 chars"),
6847
- cronExpression: z16.string().optional(),
6848
- atTime: z16.string().optional(),
6849
- timezone: z16.string().default("UTC"),
6850
- prompt: z16.string().min(1, "Prompt required"),
6851
- vars: z16.record(z16.string(), z16.string()).optional(),
6852
- secrets: z16.record(z16.string(), z16.string()).optional(),
6853
- artifactName: z16.string().optional(),
6854
- artifactVersion: z16.string().optional(),
6855
- volumeVersions: z16.record(z16.string(), z16.string()).optional(),
6973
+ var scheduleYamlSchema = z17.object({
6974
+ version: z17.literal("1.0"),
6975
+ schedules: z17.record(z17.string(), scheduleDefinitionSchema)
6976
+ });
6977
+ var deployScheduleRequestSchema = z17.object({
6978
+ name: z17.string().min(1).max(64, "Schedule name max 64 chars"),
6979
+ cronExpression: z17.string().optional(),
6980
+ atTime: z17.string().optional(),
6981
+ timezone: z17.string().default("UTC"),
6982
+ prompt: z17.string().min(1, "Prompt required"),
6983
+ vars: z17.record(z17.string(), z17.string()).optional(),
6984
+ secrets: z17.record(z17.string(), z17.string()).optional(),
6985
+ artifactName: z17.string().optional(),
6986
+ artifactVersion: z17.string().optional(),
6987
+ volumeVersions: z17.record(z17.string(), z17.string()).optional(),
6856
6988
  // Resolved agent compose ID (CLI resolves scope/name:version → composeId)
6857
- composeId: z16.string().uuid("Invalid compose ID")
6989
+ composeId: z17.string().uuid("Invalid compose ID")
6858
6990
  }).refine(
6859
6991
  (data) => data.cronExpression && !data.atTime || !data.cronExpression && data.atTime,
6860
6992
  {
6861
6993
  message: "Exactly one of 'cronExpression' or 'atTime' must be specified"
6862
6994
  }
6863
6995
  );
6864
- var scheduleResponseSchema = z16.object({
6865
- id: z16.string().uuid(),
6866
- composeId: z16.string().uuid(),
6867
- composeName: z16.string(),
6868
- scopeSlug: z16.string(),
6869
- name: z16.string(),
6870
- cronExpression: z16.string().nullable(),
6871
- atTime: z16.string().nullable(),
6872
- timezone: z16.string(),
6873
- prompt: z16.string(),
6874
- vars: z16.record(z16.string(), z16.string()).nullable(),
6996
+ var scheduleResponseSchema = z17.object({
6997
+ id: z17.string().uuid(),
6998
+ composeId: z17.string().uuid(),
6999
+ composeName: z17.string(),
7000
+ scopeSlug: z17.string(),
7001
+ name: z17.string(),
7002
+ cronExpression: z17.string().nullable(),
7003
+ atTime: z17.string().nullable(),
7004
+ timezone: z17.string(),
7005
+ prompt: z17.string(),
7006
+ vars: z17.record(z17.string(), z17.string()).nullable(),
6875
7007
  // Secret names only (values are never returned)
6876
- secretNames: z16.array(z16.string()).nullable(),
6877
- artifactName: z16.string().nullable(),
6878
- artifactVersion: z16.string().nullable(),
6879
- volumeVersions: z16.record(z16.string(), z16.string()).nullable(),
6880
- enabled: z16.boolean(),
6881
- nextRunAt: z16.string().nullable(),
6882
- createdAt: z16.string(),
6883
- updatedAt: z16.string()
6884
- });
6885
- var runSummarySchema = z16.object({
6886
- id: z16.string().uuid(),
6887
- status: z16.enum(["pending", "running", "completed", "failed", "timeout"]),
6888
- createdAt: z16.string(),
6889
- completedAt: z16.string().nullable(),
6890
- error: z16.string().nullable()
6891
- });
6892
- var scheduleRunsResponseSchema = z16.object({
6893
- runs: z16.array(runSummarySchema)
6894
- });
6895
- var scheduleListResponseSchema = z16.object({
6896
- schedules: z16.array(scheduleResponseSchema)
6897
- });
6898
- var deployScheduleResponseSchema = z16.object({
7008
+ secretNames: z17.array(z17.string()).nullable(),
7009
+ artifactName: z17.string().nullable(),
7010
+ artifactVersion: z17.string().nullable(),
7011
+ volumeVersions: z17.record(z17.string(), z17.string()).nullable(),
7012
+ enabled: z17.boolean(),
7013
+ nextRunAt: z17.string().nullable(),
7014
+ createdAt: z17.string(),
7015
+ updatedAt: z17.string()
7016
+ });
7017
+ var runSummarySchema = z17.object({
7018
+ id: z17.string().uuid(),
7019
+ status: z17.enum(["pending", "running", "completed", "failed", "timeout"]),
7020
+ createdAt: z17.string(),
7021
+ completedAt: z17.string().nullable(),
7022
+ error: z17.string().nullable()
7023
+ });
7024
+ var scheduleRunsResponseSchema = z17.object({
7025
+ runs: z17.array(runSummarySchema)
7026
+ });
7027
+ var scheduleListResponseSchema = z17.object({
7028
+ schedules: z17.array(scheduleResponseSchema)
7029
+ });
7030
+ var deployScheduleResponseSchema = z17.object({
6899
7031
  schedule: scheduleResponseSchema,
6900
- created: z16.boolean()
7032
+ created: z17.boolean()
6901
7033
  // true if created, false if updated
6902
7034
  });
6903
- var schedulesMainContract = c12.router({
7035
+ var schedulesMainContract = c13.router({
6904
7036
  /**
6905
7037
  * POST /api/agent/schedules
6906
7038
  * Deploy (create or update) a schedule
@@ -6936,7 +7068,7 @@ var schedulesMainContract = c12.router({
6936
7068
  summary: "List all schedules"
6937
7069
  }
6938
7070
  });
6939
- var schedulesByNameContract = c12.router({
7071
+ var schedulesByNameContract = c13.router({
6940
7072
  /**
6941
7073
  * GET /api/agent/schedules/:name
6942
7074
  * Get schedule by name
@@ -6944,11 +7076,11 @@ var schedulesByNameContract = c12.router({
6944
7076
  getByName: {
6945
7077
  method: "GET",
6946
7078
  path: "/api/agent/schedules/:name",
6947
- pathParams: z16.object({
6948
- name: z16.string().min(1, "Schedule name required")
7079
+ pathParams: z17.object({
7080
+ name: z17.string().min(1, "Schedule name required")
6949
7081
  }),
6950
- query: z16.object({
6951
- composeId: z16.string().uuid("Compose ID required")
7082
+ query: z17.object({
7083
+ composeId: z17.string().uuid("Compose ID required")
6952
7084
  }),
6953
7085
  responses: {
6954
7086
  200: scheduleResponseSchema,
@@ -6964,21 +7096,21 @@ var schedulesByNameContract = c12.router({
6964
7096
  delete: {
6965
7097
  method: "DELETE",
6966
7098
  path: "/api/agent/schedules/:name",
6967
- pathParams: z16.object({
6968
- name: z16.string().min(1, "Schedule name required")
7099
+ pathParams: z17.object({
7100
+ name: z17.string().min(1, "Schedule name required")
6969
7101
  }),
6970
- query: z16.object({
6971
- composeId: z16.string().uuid("Compose ID required")
7102
+ query: z17.object({
7103
+ composeId: z17.string().uuid("Compose ID required")
6972
7104
  }),
6973
7105
  responses: {
6974
- 204: z16.undefined(),
7106
+ 204: z17.undefined(),
6975
7107
  401: apiErrorSchema,
6976
7108
  404: apiErrorSchema
6977
7109
  },
6978
7110
  summary: "Delete schedule"
6979
7111
  }
6980
7112
  });
6981
- var schedulesEnableContract = c12.router({
7113
+ var schedulesEnableContract = c13.router({
6982
7114
  /**
6983
7115
  * POST /api/agent/schedules/:name/enable
6984
7116
  * Enable a disabled schedule
@@ -6986,11 +7118,11 @@ var schedulesEnableContract = c12.router({
6986
7118
  enable: {
6987
7119
  method: "POST",
6988
7120
  path: "/api/agent/schedules/:name/enable",
6989
- pathParams: z16.object({
6990
- name: z16.string().min(1, "Schedule name required")
7121
+ pathParams: z17.object({
7122
+ name: z17.string().min(1, "Schedule name required")
6991
7123
  }),
6992
- body: z16.object({
6993
- composeId: z16.string().uuid("Compose ID required")
7124
+ body: z17.object({
7125
+ composeId: z17.string().uuid("Compose ID required")
6994
7126
  }),
6995
7127
  responses: {
6996
7128
  200: scheduleResponseSchema,
@@ -7006,11 +7138,11 @@ var schedulesEnableContract = c12.router({
7006
7138
  disable: {
7007
7139
  method: "POST",
7008
7140
  path: "/api/agent/schedules/:name/disable",
7009
- pathParams: z16.object({
7010
- name: z16.string().min(1, "Schedule name required")
7141
+ pathParams: z17.object({
7142
+ name: z17.string().min(1, "Schedule name required")
7011
7143
  }),
7012
- body: z16.object({
7013
- composeId: z16.string().uuid("Compose ID required")
7144
+ body: z17.object({
7145
+ composeId: z17.string().uuid("Compose ID required")
7014
7146
  }),
7015
7147
  responses: {
7016
7148
  200: scheduleResponseSchema,
@@ -7020,7 +7152,7 @@ var schedulesEnableContract = c12.router({
7020
7152
  summary: "Disable schedule"
7021
7153
  }
7022
7154
  });
7023
- var scheduleRunsContract = c12.router({
7155
+ var scheduleRunsContract = c13.router({
7024
7156
  /**
7025
7157
  * GET /api/agent/schedules/:name/runs
7026
7158
  * List recent runs for a schedule
@@ -7028,12 +7160,12 @@ var scheduleRunsContract = c12.router({
7028
7160
  listRuns: {
7029
7161
  method: "GET",
7030
7162
  path: "/api/agent/schedules/:name/runs",
7031
- pathParams: z16.object({
7032
- name: z16.string().min(1, "Schedule name required")
7163
+ pathParams: z17.object({
7164
+ name: z17.string().min(1, "Schedule name required")
7033
7165
  }),
7034
- query: z16.object({
7035
- composeId: z16.string().uuid("Compose ID required"),
7036
- limit: z16.coerce.number().min(0).max(100).default(5)
7166
+ query: z17.object({
7167
+ composeId: z17.string().uuid("Compose ID required"),
7168
+ limit: z17.coerce.number().min(0).max(100).default(5)
7037
7169
  }),
7038
7170
  responses: {
7039
7171
  200: scheduleRunsResponseSchema,
@@ -7045,18 +7177,18 @@ var scheduleRunsContract = c12.router({
7045
7177
  });
7046
7178
 
7047
7179
  // ../../packages/core/src/contracts/realtime.ts
7048
- import { z as z17 } from "zod";
7049
- var c13 = initContract();
7050
- var ablyTokenRequestSchema = z17.object({
7051
- keyName: z17.string(),
7052
- ttl: z17.number().optional(),
7053
- timestamp: z17.number(),
7054
- capability: z17.string(),
7055
- clientId: z17.string().optional(),
7056
- nonce: z17.string(),
7057
- mac: z17.string()
7058
- });
7059
- var realtimeTokenContract = c13.router({
7180
+ import { z as z18 } from "zod";
7181
+ var c14 = initContract();
7182
+ var ablyTokenRequestSchema = z18.object({
7183
+ keyName: z18.string(),
7184
+ ttl: z18.number().optional(),
7185
+ timestamp: z18.number(),
7186
+ capability: z18.string(),
7187
+ clientId: z18.string().optional(),
7188
+ nonce: z18.string(),
7189
+ mac: z18.string()
7190
+ });
7191
+ var realtimeTokenContract = c14.router({
7060
7192
  /**
7061
7193
  * POST /api/realtime/token
7062
7194
  * Get an Ably token to subscribe to a run's events channel
@@ -7064,8 +7196,8 @@ var realtimeTokenContract = c13.router({
7064
7196
  create: {
7065
7197
  method: "POST",
7066
7198
  path: "/api/realtime/token",
7067
- body: z17.object({
7068
- runId: z17.string().uuid("runId must be a valid UUID")
7199
+ body: z18.object({
7200
+ runId: z18.string().uuid("runId must be a valid UUID")
7069
7201
  }),
7070
7202
  responses: {
7071
7203
  200: ablyTokenRequestSchema,
@@ -7079,8 +7211,8 @@ var realtimeTokenContract = c13.router({
7079
7211
  });
7080
7212
 
7081
7213
  // ../../packages/core/src/contracts/public/common.ts
7082
- import { z as z18 } from "zod";
7083
- var publicApiErrorTypeSchema = z18.enum([
7214
+ import { z as z19 } from "zod";
7215
+ var publicApiErrorTypeSchema = z19.enum([
7084
7216
  "api_error",
7085
7217
  // Internal server error (5xx)
7086
7218
  "invalid_request_error",
@@ -7092,55 +7224,55 @@ var publicApiErrorTypeSchema = z18.enum([
7092
7224
  "conflict_error"
7093
7225
  // Resource conflict (409)
7094
7226
  ]);
7095
- var publicApiErrorSchema = z18.object({
7096
- error: z18.object({
7227
+ var publicApiErrorSchema = z19.object({
7228
+ error: z19.object({
7097
7229
  type: publicApiErrorTypeSchema,
7098
- code: z18.string(),
7099
- message: z18.string(),
7100
- param: z18.string().optional(),
7101
- doc_url: z18.string().url().optional()
7230
+ code: z19.string(),
7231
+ message: z19.string(),
7232
+ param: z19.string().optional(),
7233
+ doc_url: z19.string().url().optional()
7102
7234
  })
7103
7235
  });
7104
- var paginationSchema = z18.object({
7105
- has_more: z18.boolean(),
7106
- next_cursor: z18.string().nullable()
7236
+ var paginationSchema = z19.object({
7237
+ has_more: z19.boolean(),
7238
+ next_cursor: z19.string().nullable()
7107
7239
  });
7108
7240
  function createPaginatedResponseSchema(dataSchema) {
7109
- return z18.object({
7110
- data: z18.array(dataSchema),
7241
+ return z19.object({
7242
+ data: z19.array(dataSchema),
7111
7243
  pagination: paginationSchema
7112
7244
  });
7113
7245
  }
7114
- var listQuerySchema = z18.object({
7115
- cursor: z18.string().optional(),
7116
- limit: z18.coerce.number().min(1).max(100).default(20)
7246
+ var listQuerySchema = z19.object({
7247
+ cursor: z19.string().optional(),
7248
+ limit: z19.coerce.number().min(1).max(100).default(20)
7117
7249
  });
7118
- var requestIdSchema = z18.string().uuid();
7119
- var timestampSchema = z18.string().datetime();
7250
+ var requestIdSchema = z19.string().uuid();
7251
+ var timestampSchema = z19.string().datetime();
7120
7252
 
7121
7253
  // ../../packages/core/src/contracts/public/agents.ts
7122
- import { z as z19 } from "zod";
7123
- var c14 = initContract();
7124
- var publicAgentSchema = z19.object({
7125
- id: z19.string(),
7126
- name: z19.string(),
7127
- current_version_id: z19.string().nullable(),
7254
+ import { z as z20 } from "zod";
7255
+ var c15 = initContract();
7256
+ var publicAgentSchema = z20.object({
7257
+ id: z20.string(),
7258
+ name: z20.string(),
7259
+ current_version_id: z20.string().nullable(),
7128
7260
  created_at: timestampSchema,
7129
7261
  updated_at: timestampSchema
7130
7262
  });
7131
- var agentVersionSchema = z19.object({
7132
- id: z19.string(),
7133
- agent_id: z19.string(),
7134
- version_number: z19.number(),
7263
+ var agentVersionSchema = z20.object({
7264
+ id: z20.string(),
7265
+ agent_id: z20.string(),
7266
+ version_number: z20.number(),
7135
7267
  created_at: timestampSchema
7136
7268
  });
7137
7269
  var publicAgentDetailSchema = publicAgentSchema;
7138
7270
  var paginatedAgentsSchema = createPaginatedResponseSchema(publicAgentSchema);
7139
7271
  var paginatedAgentVersionsSchema = createPaginatedResponseSchema(agentVersionSchema);
7140
7272
  var agentListQuerySchema = listQuerySchema.extend({
7141
- name: z19.string().optional()
7273
+ name: z20.string().optional()
7142
7274
  });
7143
- var publicAgentsListContract = c14.router({
7275
+ var publicAgentsListContract = c15.router({
7144
7276
  list: {
7145
7277
  method: "GET",
7146
7278
  path: "/v1/agents",
@@ -7154,12 +7286,12 @@ var publicAgentsListContract = c14.router({
7154
7286
  description: "List all agents in the current scope with pagination. Use the `name` query parameter to filter by agent name."
7155
7287
  }
7156
7288
  });
7157
- var publicAgentByIdContract = c14.router({
7289
+ var publicAgentByIdContract = c15.router({
7158
7290
  get: {
7159
7291
  method: "GET",
7160
7292
  path: "/v1/agents/:id",
7161
- pathParams: z19.object({
7162
- id: z19.string().min(1, "Agent ID is required")
7293
+ pathParams: z20.object({
7294
+ id: z20.string().min(1, "Agent ID is required")
7163
7295
  }),
7164
7296
  responses: {
7165
7297
  200: publicAgentDetailSchema,
@@ -7171,12 +7303,12 @@ var publicAgentByIdContract = c14.router({
7171
7303
  description: "Get agent details by ID"
7172
7304
  }
7173
7305
  });
7174
- var publicAgentVersionsContract = c14.router({
7306
+ var publicAgentVersionsContract = c15.router({
7175
7307
  list: {
7176
7308
  method: "GET",
7177
7309
  path: "/v1/agents/:id/versions",
7178
- pathParams: z19.object({
7179
- id: z19.string().min(1, "Agent ID is required")
7310
+ pathParams: z20.object({
7311
+ id: z20.string().min(1, "Agent ID is required")
7180
7312
  }),
7181
7313
  query: listQuerySchema,
7182
7314
  responses: {
@@ -7191,9 +7323,9 @@ var publicAgentVersionsContract = c14.router({
7191
7323
  });
7192
7324
 
7193
7325
  // ../../packages/core/src/contracts/public/runs.ts
7194
- import { z as z20 } from "zod";
7195
- var c15 = initContract();
7196
- var publicRunStatusSchema = z20.enum([
7326
+ import { z as z21 } from "zod";
7327
+ var c16 = initContract();
7328
+ var publicRunStatusSchema = z21.enum([
7197
7329
  "pending",
7198
7330
  "running",
7199
7331
  "completed",
@@ -7201,56 +7333,56 @@ var publicRunStatusSchema = z20.enum([
7201
7333
  "timeout",
7202
7334
  "cancelled"
7203
7335
  ]);
7204
- var publicRunSchema = z20.object({
7205
- id: z20.string(),
7206
- agent_id: z20.string(),
7207
- agent_name: z20.string(),
7336
+ var publicRunSchema = z21.object({
7337
+ id: z21.string(),
7338
+ agent_id: z21.string(),
7339
+ agent_name: z21.string(),
7208
7340
  status: publicRunStatusSchema,
7209
- prompt: z20.string(),
7341
+ prompt: z21.string(),
7210
7342
  created_at: timestampSchema,
7211
7343
  started_at: timestampSchema.nullable(),
7212
7344
  completed_at: timestampSchema.nullable()
7213
7345
  });
7214
7346
  var publicRunDetailSchema = publicRunSchema.extend({
7215
- error: z20.string().nullable(),
7216
- execution_time_ms: z20.number().nullable(),
7217
- checkpoint_id: z20.string().nullable(),
7218
- session_id: z20.string().nullable(),
7219
- artifact_name: z20.string().nullable(),
7220
- artifact_version: z20.string().nullable(),
7221
- volumes: z20.record(z20.string(), z20.string()).optional()
7347
+ error: z21.string().nullable(),
7348
+ execution_time_ms: z21.number().nullable(),
7349
+ checkpoint_id: z21.string().nullable(),
7350
+ session_id: z21.string().nullable(),
7351
+ artifact_name: z21.string().nullable(),
7352
+ artifact_version: z21.string().nullable(),
7353
+ volumes: z21.record(z21.string(), z21.string()).optional()
7222
7354
  });
7223
7355
  var paginatedRunsSchema = createPaginatedResponseSchema(publicRunSchema);
7224
- var createRunRequestSchema = z20.object({
7356
+ var createRunRequestSchema = z21.object({
7225
7357
  // Agent identification (one of: agent, agent_id, session_id, checkpoint_id)
7226
- agent: z20.string().optional(),
7358
+ agent: z21.string().optional(),
7227
7359
  // Agent name
7228
- agent_id: z20.string().optional(),
7360
+ agent_id: z21.string().optional(),
7229
7361
  // Agent ID
7230
- agent_version: z20.string().optional(),
7362
+ agent_version: z21.string().optional(),
7231
7363
  // Version specifier (e.g., "latest", "v1", specific ID)
7232
7364
  // Continue session
7233
- session_id: z20.string().optional(),
7365
+ session_id: z21.string().optional(),
7234
7366
  // Resume from checkpoint
7235
- checkpoint_id: z20.string().optional(),
7367
+ checkpoint_id: z21.string().optional(),
7236
7368
  // Required
7237
- prompt: z20.string().min(1, "Prompt is required"),
7369
+ prompt: z21.string().min(1, "Prompt is required"),
7238
7370
  // Optional configuration
7239
- variables: z20.record(z20.string(), z20.string()).optional(),
7240
- secrets: z20.record(z20.string(), z20.string()).optional(),
7241
- artifact_name: z20.string().optional(),
7371
+ variables: z21.record(z21.string(), z21.string()).optional(),
7372
+ secrets: z21.record(z21.string(), z21.string()).optional(),
7373
+ artifact_name: z21.string().optional(),
7242
7374
  // Artifact name to mount
7243
- artifact_version: z20.string().optional(),
7375
+ artifact_version: z21.string().optional(),
7244
7376
  // Artifact version (defaults to latest)
7245
- volumes: z20.record(z20.string(), z20.string()).optional()
7377
+ volumes: z21.record(z21.string(), z21.string()).optional()
7246
7378
  // volume_name -> version
7247
7379
  });
7248
7380
  var runListQuerySchema = listQuerySchema.extend({
7249
- agent_id: z20.string().optional(),
7381
+ agent_id: z21.string().optional(),
7250
7382
  status: publicRunStatusSchema.optional(),
7251
7383
  since: timestampSchema.optional()
7252
7384
  });
7253
- var publicRunsListContract = c15.router({
7385
+ var publicRunsListContract = c16.router({
7254
7386
  list: {
7255
7387
  method: "GET",
7256
7388
  path: "/v1/runs",
@@ -7279,12 +7411,12 @@ var publicRunsListContract = c15.router({
7279
7411
  description: "Create and execute a new agent run. Returns 202 Accepted as runs execute asynchronously."
7280
7412
  }
7281
7413
  });
7282
- var publicRunByIdContract = c15.router({
7414
+ var publicRunByIdContract = c16.router({
7283
7415
  get: {
7284
7416
  method: "GET",
7285
7417
  path: "/v1/runs/:id",
7286
- pathParams: z20.object({
7287
- id: z20.string().min(1, "Run ID is required")
7418
+ pathParams: z21.object({
7419
+ id: z21.string().min(1, "Run ID is required")
7288
7420
  }),
7289
7421
  responses: {
7290
7422
  200: publicRunDetailSchema,
@@ -7296,14 +7428,14 @@ var publicRunByIdContract = c15.router({
7296
7428
  description: "Get run details by ID"
7297
7429
  }
7298
7430
  });
7299
- var publicRunCancelContract = c15.router({
7431
+ var publicRunCancelContract = c16.router({
7300
7432
  cancel: {
7301
7433
  method: "POST",
7302
7434
  path: "/v1/runs/:id/cancel",
7303
- pathParams: z20.object({
7304
- id: z20.string().min(1, "Run ID is required")
7435
+ pathParams: z21.object({
7436
+ id: z21.string().min(1, "Run ID is required")
7305
7437
  }),
7306
- body: z20.undefined(),
7438
+ body: z21.undefined(),
7307
7439
  responses: {
7308
7440
  200: publicRunDetailSchema,
7309
7441
  400: publicApiErrorSchema,
@@ -7316,26 +7448,26 @@ var publicRunCancelContract = c15.router({
7316
7448
  description: "Cancel a pending or running execution"
7317
7449
  }
7318
7450
  });
7319
- var logEntrySchema = z20.object({
7451
+ var logEntrySchema = z21.object({
7320
7452
  timestamp: timestampSchema,
7321
- type: z20.enum(["agent", "system", "network"]),
7322
- level: z20.enum(["debug", "info", "warn", "error"]),
7323
- message: z20.string(),
7324
- metadata: z20.record(z20.string(), z20.unknown()).optional()
7453
+ type: z21.enum(["agent", "system", "network"]),
7454
+ level: z21.enum(["debug", "info", "warn", "error"]),
7455
+ message: z21.string(),
7456
+ metadata: z21.record(z21.string(), z21.unknown()).optional()
7325
7457
  });
7326
7458
  var paginatedLogsSchema = createPaginatedResponseSchema(logEntrySchema);
7327
7459
  var logsQuerySchema = listQuerySchema.extend({
7328
- type: z20.enum(["agent", "system", "network", "all"]).default("all"),
7460
+ type: z21.enum(["agent", "system", "network", "all"]).default("all"),
7329
7461
  since: timestampSchema.optional(),
7330
7462
  until: timestampSchema.optional(),
7331
- order: z20.enum(["asc", "desc"]).default("asc")
7463
+ order: z21.enum(["asc", "desc"]).default("asc")
7332
7464
  });
7333
- var publicRunLogsContract = c15.router({
7465
+ var publicRunLogsContract = c16.router({
7334
7466
  getLogs: {
7335
7467
  method: "GET",
7336
7468
  path: "/v1/runs/:id/logs",
7337
- pathParams: z20.object({
7338
- id: z20.string().min(1, "Run ID is required")
7469
+ pathParams: z21.object({
7470
+ id: z21.string().min(1, "Run ID is required")
7339
7471
  }),
7340
7472
  query: logsQuerySchema,
7341
7473
  responses: {
@@ -7348,29 +7480,29 @@ var publicRunLogsContract = c15.router({
7348
7480
  description: "Get unified logs for a run. Combines agent, system, and network logs."
7349
7481
  }
7350
7482
  });
7351
- var metricPointSchema = z20.object({
7483
+ var metricPointSchema = z21.object({
7352
7484
  timestamp: timestampSchema,
7353
- cpu_percent: z20.number(),
7354
- memory_used_mb: z20.number(),
7355
- memory_total_mb: z20.number(),
7356
- disk_used_mb: z20.number(),
7357
- disk_total_mb: z20.number()
7358
- });
7359
- var metricsSummarySchema = z20.object({
7360
- avg_cpu_percent: z20.number(),
7361
- max_memory_used_mb: z20.number(),
7362
- total_duration_ms: z20.number().nullable()
7363
- });
7364
- var metricsResponseSchema2 = z20.object({
7365
- data: z20.array(metricPointSchema),
7485
+ cpu_percent: z21.number(),
7486
+ memory_used_mb: z21.number(),
7487
+ memory_total_mb: z21.number(),
7488
+ disk_used_mb: z21.number(),
7489
+ disk_total_mb: z21.number()
7490
+ });
7491
+ var metricsSummarySchema = z21.object({
7492
+ avg_cpu_percent: z21.number(),
7493
+ max_memory_used_mb: z21.number(),
7494
+ total_duration_ms: z21.number().nullable()
7495
+ });
7496
+ var metricsResponseSchema2 = z21.object({
7497
+ data: z21.array(metricPointSchema),
7366
7498
  summary: metricsSummarySchema
7367
7499
  });
7368
- var publicRunMetricsContract = c15.router({
7500
+ var publicRunMetricsContract = c16.router({
7369
7501
  getMetrics: {
7370
7502
  method: "GET",
7371
7503
  path: "/v1/runs/:id/metrics",
7372
- pathParams: z20.object({
7373
- id: z20.string().min(1, "Run ID is required")
7504
+ pathParams: z21.object({
7505
+ id: z21.string().min(1, "Run ID is required")
7374
7506
  }),
7375
7507
  responses: {
7376
7508
  200: metricsResponseSchema2,
@@ -7382,7 +7514,7 @@ var publicRunMetricsContract = c15.router({
7382
7514
  description: "Get CPU, memory, and disk metrics for a run"
7383
7515
  }
7384
7516
  });
7385
- var sseEventTypeSchema = z20.enum([
7517
+ var sseEventTypeSchema = z21.enum([
7386
7518
  "status",
7387
7519
  // Run status change
7388
7520
  "output",
@@ -7394,25 +7526,25 @@ var sseEventTypeSchema = z20.enum([
7394
7526
  "heartbeat"
7395
7527
  // Keep-alive
7396
7528
  ]);
7397
- var sseEventSchema = z20.object({
7529
+ var sseEventSchema = z21.object({
7398
7530
  event: sseEventTypeSchema,
7399
- data: z20.unknown(),
7400
- id: z20.string().optional()
7531
+ data: z21.unknown(),
7532
+ id: z21.string().optional()
7401
7533
  // For Last-Event-ID reconnection
7402
7534
  });
7403
- var publicRunEventsContract = c15.router({
7535
+ var publicRunEventsContract = c16.router({
7404
7536
  streamEvents: {
7405
7537
  method: "GET",
7406
7538
  path: "/v1/runs/:id/events",
7407
- pathParams: z20.object({
7408
- id: z20.string().min(1, "Run ID is required")
7539
+ pathParams: z21.object({
7540
+ id: z21.string().min(1, "Run ID is required")
7409
7541
  }),
7410
- query: z20.object({
7411
- last_event_id: z20.string().optional()
7542
+ query: z21.object({
7543
+ last_event_id: z21.string().optional()
7412
7544
  // For reconnection
7413
7545
  }),
7414
7546
  responses: {
7415
- 200: z20.any(),
7547
+ 200: z21.any(),
7416
7548
  // SSE stream - actual content is text/event-stream
7417
7549
  401: publicApiErrorSchema,
7418
7550
  404: publicApiErrorSchema,
@@ -7424,28 +7556,28 @@ var publicRunEventsContract = c15.router({
7424
7556
  });
7425
7557
 
7426
7558
  // ../../packages/core/src/contracts/public/artifacts.ts
7427
- import { z as z21 } from "zod";
7428
- var c16 = initContract();
7429
- var publicArtifactSchema = z21.object({
7430
- id: z21.string(),
7431
- name: z21.string(),
7432
- current_version_id: z21.string().nullable(),
7433
- size: z21.number(),
7559
+ import { z as z22 } from "zod";
7560
+ var c17 = initContract();
7561
+ var publicArtifactSchema = z22.object({
7562
+ id: z22.string(),
7563
+ name: z22.string(),
7564
+ current_version_id: z22.string().nullable(),
7565
+ size: z22.number(),
7434
7566
  // Total size in bytes
7435
- file_count: z21.number(),
7567
+ file_count: z22.number(),
7436
7568
  created_at: timestampSchema,
7437
7569
  updated_at: timestampSchema
7438
7570
  });
7439
- var artifactVersionSchema = z21.object({
7440
- id: z21.string(),
7571
+ var artifactVersionSchema = z22.object({
7572
+ id: z22.string(),
7441
7573
  // SHA-256 content hash
7442
- artifact_id: z21.string(),
7443
- size: z21.number(),
7574
+ artifact_id: z22.string(),
7575
+ size: z22.number(),
7444
7576
  // Size in bytes
7445
- file_count: z21.number(),
7446
- message: z21.string().nullable(),
7577
+ file_count: z22.number(),
7578
+ message: z22.string().nullable(),
7447
7579
  // Optional commit message
7448
- created_by: z21.string(),
7580
+ created_by: z22.string(),
7449
7581
  created_at: timestampSchema
7450
7582
  });
7451
7583
  var publicArtifactDetailSchema = publicArtifactSchema.extend({
@@ -7455,7 +7587,7 @@ var paginatedArtifactsSchema = createPaginatedResponseSchema(publicArtifactSchem
7455
7587
  var paginatedArtifactVersionsSchema = createPaginatedResponseSchema(
7456
7588
  artifactVersionSchema
7457
7589
  );
7458
- var publicArtifactsListContract = c16.router({
7590
+ var publicArtifactsListContract = c17.router({
7459
7591
  list: {
7460
7592
  method: "GET",
7461
7593
  path: "/v1/artifacts",
@@ -7469,12 +7601,12 @@ var publicArtifactsListContract = c16.router({
7469
7601
  description: "List all artifacts in the current scope with pagination"
7470
7602
  }
7471
7603
  });
7472
- var publicArtifactByIdContract = c16.router({
7604
+ var publicArtifactByIdContract = c17.router({
7473
7605
  get: {
7474
7606
  method: "GET",
7475
7607
  path: "/v1/artifacts/:id",
7476
- pathParams: z21.object({
7477
- id: z21.string().min(1, "Artifact ID is required")
7608
+ pathParams: z22.object({
7609
+ id: z22.string().min(1, "Artifact ID is required")
7478
7610
  }),
7479
7611
  responses: {
7480
7612
  200: publicArtifactDetailSchema,
@@ -7486,12 +7618,12 @@ var publicArtifactByIdContract = c16.router({
7486
7618
  description: "Get artifact details by ID"
7487
7619
  }
7488
7620
  });
7489
- var publicArtifactVersionsContract = c16.router({
7621
+ var publicArtifactVersionsContract = c17.router({
7490
7622
  list: {
7491
7623
  method: "GET",
7492
7624
  path: "/v1/artifacts/:id/versions",
7493
- pathParams: z21.object({
7494
- id: z21.string().min(1, "Artifact ID is required")
7625
+ pathParams: z22.object({
7626
+ id: z22.string().min(1, "Artifact ID is required")
7495
7627
  }),
7496
7628
  query: listQuerySchema,
7497
7629
  responses: {
@@ -7504,19 +7636,19 @@ var publicArtifactVersionsContract = c16.router({
7504
7636
  description: "List all versions of an artifact with pagination"
7505
7637
  }
7506
7638
  });
7507
- var publicArtifactDownloadContract = c16.router({
7639
+ var publicArtifactDownloadContract = c17.router({
7508
7640
  download: {
7509
7641
  method: "GET",
7510
7642
  path: "/v1/artifacts/:id/download",
7511
- pathParams: z21.object({
7512
- id: z21.string().min(1, "Artifact ID is required")
7643
+ pathParams: z22.object({
7644
+ id: z22.string().min(1, "Artifact ID is required")
7513
7645
  }),
7514
- query: z21.object({
7515
- version_id: z21.string().optional()
7646
+ query: z22.object({
7647
+ version_id: z22.string().optional()
7516
7648
  // Defaults to current version
7517
7649
  }),
7518
7650
  responses: {
7519
- 302: z21.undefined(),
7651
+ 302: z22.undefined(),
7520
7652
  // Redirect to presigned URL
7521
7653
  401: publicApiErrorSchema,
7522
7654
  404: publicApiErrorSchema,
@@ -7528,28 +7660,28 @@ var publicArtifactDownloadContract = c16.router({
7528
7660
  });
7529
7661
 
7530
7662
  // ../../packages/core/src/contracts/public/volumes.ts
7531
- import { z as z22 } from "zod";
7532
- var c17 = initContract();
7533
- var publicVolumeSchema = z22.object({
7534
- id: z22.string(),
7535
- name: z22.string(),
7536
- current_version_id: z22.string().nullable(),
7537
- size: z22.number(),
7663
+ import { z as z23 } from "zod";
7664
+ var c18 = initContract();
7665
+ var publicVolumeSchema = z23.object({
7666
+ id: z23.string(),
7667
+ name: z23.string(),
7668
+ current_version_id: z23.string().nullable(),
7669
+ size: z23.number(),
7538
7670
  // Total size in bytes
7539
- file_count: z22.number(),
7671
+ file_count: z23.number(),
7540
7672
  created_at: timestampSchema,
7541
7673
  updated_at: timestampSchema
7542
7674
  });
7543
- var volumeVersionSchema = z22.object({
7544
- id: z22.string(),
7675
+ var volumeVersionSchema = z23.object({
7676
+ id: z23.string(),
7545
7677
  // SHA-256 content hash
7546
- volume_id: z22.string(),
7547
- size: z22.number(),
7678
+ volume_id: z23.string(),
7679
+ size: z23.number(),
7548
7680
  // Size in bytes
7549
- file_count: z22.number(),
7550
- message: z22.string().nullable(),
7681
+ file_count: z23.number(),
7682
+ message: z23.string().nullable(),
7551
7683
  // Optional commit message
7552
- created_by: z22.string(),
7684
+ created_by: z23.string(),
7553
7685
  created_at: timestampSchema
7554
7686
  });
7555
7687
  var publicVolumeDetailSchema = publicVolumeSchema.extend({
@@ -7557,7 +7689,7 @@ var publicVolumeDetailSchema = publicVolumeSchema.extend({
7557
7689
  });
7558
7690
  var paginatedVolumesSchema = createPaginatedResponseSchema(publicVolumeSchema);
7559
7691
  var paginatedVolumeVersionsSchema = createPaginatedResponseSchema(volumeVersionSchema);
7560
- var publicVolumesListContract = c17.router({
7692
+ var publicVolumesListContract = c18.router({
7561
7693
  list: {
7562
7694
  method: "GET",
7563
7695
  path: "/v1/volumes",
@@ -7571,12 +7703,12 @@ var publicVolumesListContract = c17.router({
7571
7703
  description: "List all volumes in the current scope with pagination"
7572
7704
  }
7573
7705
  });
7574
- var publicVolumeByIdContract = c17.router({
7706
+ var publicVolumeByIdContract = c18.router({
7575
7707
  get: {
7576
7708
  method: "GET",
7577
7709
  path: "/v1/volumes/:id",
7578
- pathParams: z22.object({
7579
- id: z22.string().min(1, "Volume ID is required")
7710
+ pathParams: z23.object({
7711
+ id: z23.string().min(1, "Volume ID is required")
7580
7712
  }),
7581
7713
  responses: {
7582
7714
  200: publicVolumeDetailSchema,
@@ -7588,12 +7720,12 @@ var publicVolumeByIdContract = c17.router({
7588
7720
  description: "Get volume details by ID"
7589
7721
  }
7590
7722
  });
7591
- var publicVolumeVersionsContract = c17.router({
7723
+ var publicVolumeVersionsContract = c18.router({
7592
7724
  list: {
7593
7725
  method: "GET",
7594
7726
  path: "/v1/volumes/:id/versions",
7595
- pathParams: z22.object({
7596
- id: z22.string().min(1, "Volume ID is required")
7727
+ pathParams: z23.object({
7728
+ id: z23.string().min(1, "Volume ID is required")
7597
7729
  }),
7598
7730
  query: listQuerySchema,
7599
7731
  responses: {
@@ -7606,19 +7738,19 @@ var publicVolumeVersionsContract = c17.router({
7606
7738
  description: "List all versions of a volume with pagination"
7607
7739
  }
7608
7740
  });
7609
- var publicVolumeDownloadContract = c17.router({
7741
+ var publicVolumeDownloadContract = c18.router({
7610
7742
  download: {
7611
7743
  method: "GET",
7612
7744
  path: "/v1/volumes/:id/download",
7613
- pathParams: z22.object({
7614
- id: z22.string().min(1, "Volume ID is required")
7745
+ pathParams: z23.object({
7746
+ id: z23.string().min(1, "Volume ID is required")
7615
7747
  }),
7616
- query: z22.object({
7617
- version_id: z22.string().optional()
7748
+ query: z23.object({
7749
+ version_id: z23.string().optional()
7618
7750
  // Defaults to current version
7619
7751
  }),
7620
7752
  responses: {
7621
- 302: z22.undefined(),
7753
+ 302: z23.undefined(),
7622
7754
  // Redirect to presigned URL
7623
7755
  401: publicApiErrorSchema,
7624
7756
  404: publicApiErrorSchema,
@@ -9949,7 +10081,7 @@ var benchmarkCommand = new Command4("benchmark").description(
9949
10081
  });
9950
10082
 
9951
10083
  // src/index.ts
9952
- var version = true ? "2.13.3" : "0.1.0";
10084
+ var version = true ? "2.13.5" : "0.1.0";
9953
10085
  program.name("vm0-runner").version(version).description("Self-hosted runner for VM0 agents");
9954
10086
  program.addCommand(startCommand);
9955
10087
  program.addCommand(doctorCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/runner",
3
- "version": "2.13.3",
3
+ "version": "2.13.5",
4
4
  "description": "Self-hosted runner for VM0 agents",
5
5
  "repository": {
6
6
  "type": "git",