@aerol-ai/aerolvm-sdk 0.5.2 → 0.5.3
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/dist/internal/client.js +4 -0
- package/dist/types.d.ts +26 -0
- package/package.json +2 -2
package/dist/internal/client.js
CHANGED
|
@@ -610,6 +610,10 @@ function toApiCreateOptions(options) {
|
|
|
610
610
|
env: options.env,
|
|
611
611
|
os_user: options.osUser,
|
|
612
612
|
network_block_all: options.networkBlockAll,
|
|
613
|
+
network_allow_out: options.networkAllowOut,
|
|
614
|
+
network_deny_out: options.networkDenyOut,
|
|
615
|
+
allow_public_traffic: options.allowPublicTraffic,
|
|
616
|
+
mask_request_host: options.maskRequestHost,
|
|
613
617
|
network_bytes_in_limit: options.networkBytesInLimit,
|
|
614
618
|
network_bytes_out_limit: options.networkBytesOutLimit,
|
|
615
619
|
registry: options.registry,
|
package/dist/types.d.ts
CHANGED
|
@@ -137,6 +137,32 @@ export interface CreateOptions {
|
|
|
137
137
|
env?: Record<string, string>;
|
|
138
138
|
osUser?: string;
|
|
139
139
|
networkBlockAll?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Egress allowlist of CIDRs. When set, the sandbox may reach only these
|
|
142
|
+
* destinations; all other outbound traffic is dropped by the host firewall.
|
|
143
|
+
* Mutually exclusive with `networkDenyOut`. For a full block use
|
|
144
|
+
* `networkBlockAll` instead.
|
|
145
|
+
*/
|
|
146
|
+
networkAllowOut?: string[];
|
|
147
|
+
/**
|
|
148
|
+
* Egress blocklist of CIDRs. When set, the sandbox may reach anything except
|
|
149
|
+
* these destinations. Mutually exclusive with `networkAllowOut`.
|
|
150
|
+
*/
|
|
151
|
+
networkDenyOut?: string[];
|
|
152
|
+
/**
|
|
153
|
+
* Whether the sandbox may be exposed to the public internet. Defaults to
|
|
154
|
+
* true; set `false` to make `exposePort` fail — the sandbox stays reachable
|
|
155
|
+
* only via the toolbox proxy and SSH gateway, not a public URL.
|
|
156
|
+
*/
|
|
157
|
+
allowPublicTraffic?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Rewrite the upstream `Host` header on ingress to exposed HTTP ports to this
|
|
160
|
+
* value. Frameworks that validate the Host (Vite `allowedHosts`,
|
|
161
|
+
* webpack-dev-server, Django `ALLOWED_HOSTS`) reject the per-sandbox public
|
|
162
|
+
* hostname; set this to a value they accept (e.g. `"localhost"`). Empty/unset
|
|
163
|
+
* passes the host through unchanged. HTTP-only; TCP/TLS exposures ignore it.
|
|
164
|
+
*/
|
|
165
|
+
maskRequestHost?: string;
|
|
140
166
|
/**
|
|
141
167
|
* Cap on bytes the sandbox may receive from outside the container before its
|
|
142
168
|
* ingress is dropped via per-IP iptables rule. `0` (default) is unlimited.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aerol-ai/aerolvm-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test": "tsc -p tsconfig.test.json --outDir dist-test && node --test dist-test/*.test.js dist-test/internal/*.test.js"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^25.9.
|
|
24
|
+
"@types/node": "^25.9.3",
|
|
25
25
|
"typescript": "^6.0.3",
|
|
26
26
|
"tsx": "^4.22.4"
|
|
27
27
|
}
|