@vm0/cli 4.38.2 → 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 -83
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -12430,13 +12430,6 @@ var agentDefinitionSchema = external_exports.object({
12430
12430
  working_dir: external_exports.string().optional(),
12431
12431
  // Optional when provider supports auto-config
12432
12432
  environment: external_exports.record(external_exports.string(), external_exports.string()).optional(),
12433
- /**
12434
- * Enable network security mode for secrets.
12435
- * When true, secrets are encrypted into proxy tokens and all traffic
12436
- * is routed through mitmproxy -> VM0 Proxy for decryption.
12437
- * Default: false (plaintext secrets in env vars)
12438
- */
12439
- experimental_network_security: external_exports.boolean().optional().default(false),
12440
12433
  /**
12441
12434
  * Path to instructions file (e.g., AGENTS.md).
12442
12435
  * Auto-uploaded as volume and mounted at /home/user/.claude/CLAUDE.md
@@ -13733,14 +13726,6 @@ var publicAgentDetailSchema = publicAgentSchema.extend({
13733
13726
  });
13734
13727
  var paginatedAgentsSchema = createPaginatedResponseSchema(publicAgentSchema);
13735
13728
  var paginatedAgentVersionsSchema = createPaginatedResponseSchema(agentVersionSchema);
13736
- var createAgentRequestSchema = external_exports.object({
13737
- name: external_exports.string().min(1).max(100).regex(
13738
- /^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/,
13739
- "Name must be lowercase alphanumeric with hyphens, not starting or ending with hyphen"
13740
- ),
13741
- config: external_exports.unknown()
13742
- // Agent YAML configuration
13743
- });
13744
13729
  var updateAgentRequestSchema = external_exports.object({
13745
13730
  config: external_exports.unknown()
13746
13731
  // New agent configuration (creates new version)
@@ -13760,20 +13745,6 @@ var publicAgentsListContract = c11.router({
13760
13745
  },
13761
13746
  summary: "List agents",
13762
13747
  description: "List all agents in the current scope with pagination. Use the `name` query parameter to filter by agent name."
13763
- },
13764
- create: {
13765
- method: "POST",
13766
- path: "/v1/agents",
13767
- body: createAgentRequestSchema,
13768
- responses: {
13769
- 201: publicAgentDetailSchema,
13770
- 400: publicApiErrorSchema,
13771
- 401: publicApiErrorSchema,
13772
- 409: publicApiErrorSchema,
13773
- 500: publicApiErrorSchema
13774
- },
13775
- summary: "Create agent",
13776
- description: "Create a new agent with the given configuration"
13777
13748
  }
13778
13749
  });
13779
13750
  var publicAgentByIdContract = c11.router({
@@ -13808,22 +13779,6 @@ var publicAgentByIdContract = c11.router({
13808
13779
  },
13809
13780
  summary: "Update agent",
13810
13781
  description: "Update agent configuration. Creates a new version if config changes."
13811
- },
13812
- delete: {
13813
- method: "DELETE",
13814
- path: "/v1/agents/:id",
13815
- pathParams: external_exports.object({
13816
- id: external_exports.string().min(1, "Agent ID is required")
13817
- }),
13818
- body: external_exports.undefined(),
13819
- responses: {
13820
- 204: external_exports.undefined(),
13821
- 401: publicApiErrorSchema,
13822
- 404: publicApiErrorSchema,
13823
- 500: publicApiErrorSchema
13824
- },
13825
- summary: "Delete agent",
13826
- description: "Archive an agent (soft delete)"
13827
13782
  }
13828
13783
  });
13829
13784
  var publicAgentVersionsContract = c11.router({
@@ -14194,22 +14149,6 @@ var publicArtifactByIdContract = c13.router({
14194
14149
  },
14195
14150
  summary: "Get artifact",
14196
14151
  description: "Get artifact details by ID"
14197
- },
14198
- delete: {
14199
- method: "DELETE",
14200
- path: "/v1/artifacts/:id",
14201
- pathParams: external_exports.object({
14202
- id: external_exports.string().min(1, "Artifact ID is required")
14203
- }),
14204
- body: external_exports.undefined(),
14205
- responses: {
14206
- 204: external_exports.undefined(),
14207
- 401: publicApiErrorSchema,
14208
- 404: publicApiErrorSchema,
14209
- 500: publicApiErrorSchema
14210
- },
14211
- summary: "Delete artifact",
14212
- description: "Delete an artifact and all its versions"
14213
14152
  }
14214
14153
  });
14215
14154
  var publicArtifactVersionsContract = c13.router({
@@ -14407,22 +14346,6 @@ var publicVolumeByIdContract = c14.router({
14407
14346
  },
14408
14347
  summary: "Get volume",
14409
14348
  description: "Get volume details by ID"
14410
- },
14411
- delete: {
14412
- method: "DELETE",
14413
- path: "/v1/volumes/:id",
14414
- pathParams: external_exports.object({
14415
- id: external_exports.string().min(1, "Volume ID is required")
14416
- }),
14417
- body: external_exports.undefined(),
14418
- responses: {
14419
- 204: external_exports.undefined(),
14420
- 401: publicApiErrorSchema,
14421
- 404: publicApiErrorSchema,
14422
- 500: publicApiErrorSchema
14423
- },
14424
- summary: "Delete volume",
14425
- description: "Delete a volume and all its versions"
14426
14349
  }
14427
14350
  });
14428
14351
  var publicVolumeVersionsContract = c14.router({
@@ -18651,7 +18574,7 @@ async function autoPullArtifact(runOutput, artifactDir) {
18651
18574
  }
18652
18575
  var cookCmd = new Command17().name("cook").description("One-click agent preparation and execution from vm0.yaml");
18653
18576
  cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip confirmation prompts").action(async (prompt, options) => {
18654
- const shouldExit = await checkAndUpgrade("4.38.2", prompt);
18577
+ const shouldExit = await checkAndUpgrade("5.0.1", prompt);
18655
18578
  if (shouldExit) {
18656
18579
  process.exit(0);
18657
18580
  }
@@ -19149,7 +19072,7 @@ async function showNetworkLogs(runId, options) {
19149
19072
  if (response.networkLogs.length === 0) {
19150
19073
  console.log(
19151
19074
  chalk22.yellow(
19152
- "No network logs found for this run. Network logs are only captured when experimental_network_security is enabled on an experimental_runner."
19075
+ "No network logs found for this run. Network logs are only captured when experimental_firewall is enabled on an experimental_runner."
19153
19076
  )
19154
19077
  );
19155
19078
  return;
@@ -19518,9 +19441,6 @@ function formatComposeOutput(name, versionId, content, variableSources) {
19518
19441
  if (agent.experimental_runner) {
19519
19442
  console.log(` Runner: ${agent.experimental_runner.group}`);
19520
19443
  }
19521
- if (agent.experimental_network_security) {
19522
- console.log(` Network Security: enabled`);
19523
- }
19524
19444
  }
19525
19445
  }
19526
19446
  var inspectCommand = new Command23().name("inspect").description("Inspect an agent compose").argument(
@@ -20205,7 +20125,7 @@ var setupGithubCommand = new Command26().name("setup-github").description("Initi
20205
20125
 
20206
20126
  // src/index.ts
20207
20127
  var program = new Command27();
20208
- program.name("vm0").description("VM0 CLI - A modern build tool").version("4.38.2");
20128
+ program.name("vm0").description("VM0 CLI - A modern build tool").version("5.0.1");
20209
20129
  program.command("info").description("Display environment information").action(async () => {
20210
20130
  console.log(chalk29.bold("System Information:"));
20211
20131
  console.log(`Node Version: ${process.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "4.38.2",
3
+ "version": "5.0.1",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",