matchlock-sdk 0.1.26 → 0.1.27

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.
package/README.md CHANGED
@@ -45,6 +45,8 @@ try {
45
45
  }
46
46
  ```
47
47
 
48
+ `client.launch(...)` starts image ENTRYPOINT/CMD in detached mode. Use `client.create(...)` when you want a VM without auto-starting image command.
49
+
48
50
  Callback-based interception:
49
51
 
50
52
  ```ts
@@ -87,6 +87,9 @@ function buildCreateParams(options, wireVFS, wireNetworkInterception) {
87
87
  }
88
88
  params.image_config = imageConfig;
89
89
  }
90
+ if (options.launchEntrypoint) {
91
+ params.launch_entrypoint = true;
92
+ }
90
93
  return params;
91
94
  }
92
95
  function resolveCreateBlockPrivateIPs(opts) {
package/dist/client.js CHANGED
@@ -84,7 +84,9 @@ class Client {
84
84
  await (0, volumes_1.volumeRemove)((args) => this.transport.execCLI(args), name);
85
85
  }
86
86
  async launch(sandbox) {
87
- return this.create(sandbox.options());
87
+ const options = (0, builder_1.cloneCreateOptions)(sandbox.options());
88
+ options.launchEntrypoint = true;
89
+ return this.create(options);
88
90
  }
89
91
  async create(opts = {}) {
90
92
  const options = (0, builder_1.cloneCreateOptions)(opts);
package/dist/types.d.ts CHANGED
@@ -184,6 +184,7 @@ export interface CreateOptions {
184
184
  portForwards?: PortForward[];
185
185
  portForwardAddresses?: string[];
186
186
  imageConfig?: ImageConfig;
187
+ launchEntrypoint?: boolean;
187
188
  }
188
189
  export interface ExecResult {
189
190
  exitCode: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matchlock-sdk",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "TypeScript SDK for Matchlock sandboxes",
5
5
  "license": "MIT",
6
6
  "repository": {