@supermachine/core 0.7.15 → 0.7.18

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.d.ts +20 -1
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -115,7 +115,26 @@ export interface BuildOptions {
115
115
  * bakes (see `listenerRequired`).
116
116
  */
117
117
  guestPort?: number
118
- /** Override the image's CMD/ENTRYPOINT. */
118
+ /**
119
+ * Replace the image's CMD (not ENTRYPOINT). Mirrors
120
+ * `docker run <image> <cmd…>` and Apple `container run`
121
+ * semantics: the image's `ENTRYPOINT` (if any) is preserved
122
+ * and prepended; this array becomes `$@` to that entrypoint.
123
+ *
124
+ * Examples for an image with
125
+ * `ENTRYPOINT ["/entrypoint.sh"]` + `CMD ["sleep", "infinity"]`:
126
+ *
127
+ * * `cmd: undefined` → runs `[/entrypoint.sh, sleep, infinity]`
128
+ * (image defaults).
129
+ * * `cmd: ["node", "server.js"]` → runs
130
+ * `[/entrypoint.sh, node, server.js]` — entrypoint script
131
+ * still gets to bootstrap (Xvfb, dbus, etc.) before exec'ing
132
+ * your command.
133
+ *
134
+ * To bypass the image's ENTRYPOINT entirely, the bake-time
135
+ * `--entrypoint` CLI flag remains available (not exposed on
136
+ * the napi surface — file a request if needed).
137
+ */
119
138
  cmd?: Array<string>
120
139
  /** Extra environment variables for the workload. */
121
140
  env?: Record<string, string>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supermachine/core",
3
- "version": "0.7.15",
3
+ "version": "0.7.18",
4
4
  "description": "Run any OCI/Docker image as a hardware-isolated microVM. Node/Bun/Deno binding for the supermachine Rust crate.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "index.js",
@@ -22,7 +22,7 @@
22
22
  "arm64"
23
23
  ],
24
24
  "optionalDependencies": {
25
- "@supermachine/core-darwin-arm64": "0.7.15"
25
+ "@supermachine/core-darwin-arm64": "0.7.18"
26
26
  },
27
27
  "scripts": {
28
28
  "build:rust": "TYPE_DEF_TMP_PATH=$(pwd)/scripts/.napi_type_defs.tmp cargo build --release -p supermachine-napi && cargo build --release --bin supermachine-worker -p supermachine",