@vm0/cli 5.0.0 → 5.0.1

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 +3 -73
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -13726,14 +13726,6 @@ var publicAgentDetailSchema = publicAgentSchema.extend({
13726
13726
  });
13727
13727
  var paginatedAgentsSchema = createPaginatedResponseSchema(publicAgentSchema);
13728
13728
  var paginatedAgentVersionsSchema = createPaginatedResponseSchema(agentVersionSchema);
13729
- var createAgentRequestSchema = external_exports.object({
13730
- name: external_exports.string().min(1).max(100).regex(
13731
- /^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/,
13732
- "Name must be lowercase alphanumeric with hyphens, not starting or ending with hyphen"
13733
- ),
13734
- config: external_exports.unknown()
13735
- // Agent YAML configuration
13736
- });
13737
13729
  var updateAgentRequestSchema = external_exports.object({
13738
13730
  config: external_exports.unknown()
13739
13731
  // New agent configuration (creates new version)
@@ -13753,20 +13745,6 @@ var publicAgentsListContract = c11.router({
13753
13745
  },
13754
13746
  summary: "List agents",
13755
13747
  description: "List all agents in the current scope with pagination. Use the `name` query parameter to filter by agent name."
13756
- },
13757
- create: {
13758
- method: "POST",
13759
- path: "/v1/agents",
13760
- body: createAgentRequestSchema,
13761
- responses: {
13762
- 201: publicAgentDetailSchema,
13763
- 400: publicApiErrorSchema,
13764
- 401: publicApiErrorSchema,
13765
- 409: publicApiErrorSchema,
13766
- 500: publicApiErrorSchema
13767
- },
13768
- summary: "Create agent",
13769
- description: "Create a new agent with the given configuration"
13770
13748
  }
13771
13749
  });
13772
13750
  var publicAgentByIdContract = c11.router({
@@ -13801,22 +13779,6 @@ var publicAgentByIdContract = c11.router({
13801
13779
  },
13802
13780
  summary: "Update agent",
13803
13781
  description: "Update agent configuration. Creates a new version if config changes."
13804
- },
13805
- delete: {
13806
- method: "DELETE",
13807
- path: "/v1/agents/:id",
13808
- pathParams: external_exports.object({
13809
- id: external_exports.string().min(1, "Agent ID is required")
13810
- }),
13811
- body: external_exports.undefined(),
13812
- responses: {
13813
- 204: external_exports.undefined(),
13814
- 401: publicApiErrorSchema,
13815
- 404: publicApiErrorSchema,
13816
- 500: publicApiErrorSchema
13817
- },
13818
- summary: "Delete agent",
13819
- description: "Archive an agent (soft delete)"
13820
13782
  }
13821
13783
  });
13822
13784
  var publicAgentVersionsContract = c11.router({
@@ -14187,22 +14149,6 @@ var publicArtifactByIdContract = c13.router({
14187
14149
  },
14188
14150
  summary: "Get artifact",
14189
14151
  description: "Get artifact details by ID"
14190
- },
14191
- delete: {
14192
- method: "DELETE",
14193
- path: "/v1/artifacts/:id",
14194
- pathParams: external_exports.object({
14195
- id: external_exports.string().min(1, "Artifact ID is required")
14196
- }),
14197
- body: external_exports.undefined(),
14198
- responses: {
14199
- 204: external_exports.undefined(),
14200
- 401: publicApiErrorSchema,
14201
- 404: publicApiErrorSchema,
14202
- 500: publicApiErrorSchema
14203
- },
14204
- summary: "Delete artifact",
14205
- description: "Delete an artifact and all its versions"
14206
14152
  }
14207
14153
  });
14208
14154
  var publicArtifactVersionsContract = c13.router({
@@ -14400,22 +14346,6 @@ var publicVolumeByIdContract = c14.router({
14400
14346
  },
14401
14347
  summary: "Get volume",
14402
14348
  description: "Get volume details by ID"
14403
- },
14404
- delete: {
14405
- method: "DELETE",
14406
- path: "/v1/volumes/:id",
14407
- pathParams: external_exports.object({
14408
- id: external_exports.string().min(1, "Volume ID is required")
14409
- }),
14410
- body: external_exports.undefined(),
14411
- responses: {
14412
- 204: external_exports.undefined(),
14413
- 401: publicApiErrorSchema,
14414
- 404: publicApiErrorSchema,
14415
- 500: publicApiErrorSchema
14416
- },
14417
- summary: "Delete volume",
14418
- description: "Delete a volume and all its versions"
14419
14349
  }
14420
14350
  });
14421
14351
  var publicVolumeVersionsContract = c14.router({
@@ -18644,7 +18574,7 @@ async function autoPullArtifact(runOutput, artifactDir) {
18644
18574
  }
18645
18575
  var cookCmd = new Command17().name("cook").description("One-click agent preparation and execution from vm0.yaml");
18646
18576
  cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip confirmation prompts").action(async (prompt, options) => {
18647
- const shouldExit = await checkAndUpgrade("5.0.0", prompt);
18577
+ const shouldExit = await checkAndUpgrade("5.0.1", prompt);
18648
18578
  if (shouldExit) {
18649
18579
  process.exit(0);
18650
18580
  }
@@ -19142,7 +19072,7 @@ async function showNetworkLogs(runId, options) {
19142
19072
  if (response.networkLogs.length === 0) {
19143
19073
  console.log(
19144
19074
  chalk22.yellow(
19145
- "No network logs found for this run. Network logs are only captured when experimental_firewall is enabled on a self-hosted runner."
19075
+ "No network logs found for this run. Network logs are only captured when experimental_firewall is enabled on an experimental_runner."
19146
19076
  )
19147
19077
  );
19148
19078
  return;
@@ -20195,7 +20125,7 @@ var setupGithubCommand = new Command26().name("setup-github").description("Initi
20195
20125
 
20196
20126
  // src/index.ts
20197
20127
  var program = new Command27();
20198
- program.name("vm0").description("VM0 CLI - A modern build tool").version("5.0.0");
20128
+ program.name("vm0").description("VM0 CLI - A modern build tool").version("5.0.1");
20199
20129
  program.command("info").description("Display environment information").action(async () => {
20200
20130
  console.log(chalk29.bold("System Information:"));
20201
20131
  console.log(`Node Version: ${process.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",