sandbox 3.2.2 → 3.3.0
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.
|
@@ -3006,9 +3006,7 @@ const runtimeType = {
|
|
|
3006
3006
|
};
|
|
3007
3007
|
const runtime = import_cjs$30.option({
|
|
3008
3008
|
long: "runtime",
|
|
3009
|
-
type: runtimeType
|
|
3010
|
-
defaultValue: () => "node24",
|
|
3011
|
-
defaultValueIsSerializable: true
|
|
3009
|
+
type: import_cjs$30.optional(runtimeType)
|
|
3012
3010
|
});
|
|
3013
3011
|
|
|
3014
3012
|
//#endregion
|
|
@@ -7288,7 +7286,7 @@ const scope = {
|
|
|
7288
7286
|
|
|
7289
7287
|
//#endregion
|
|
7290
7288
|
//#region package.json
|
|
7291
|
-
var version = "3.
|
|
7289
|
+
var version = "3.3.0";
|
|
7292
7290
|
|
|
7293
7291
|
//#endregion
|
|
7294
7292
|
//#region src/error.ts
|
|
@@ -7964,6 +7962,11 @@ const args$3 = {
|
|
|
7964
7962
|
description: "Disable automatic restore of the filesystem between sessions."
|
|
7965
7963
|
}),
|
|
7966
7964
|
runtime,
|
|
7965
|
+
image: import_cjs$15.option({
|
|
7966
|
+
long: "image",
|
|
7967
|
+
description: "A Vercel Container Registry (VCR) image name and optional tag or sha to start the sandbox from (e.g. my-repo, my-repo:v1).",
|
|
7968
|
+
type: import_cjs$15.optional(import_cjs$15.string)
|
|
7969
|
+
}),
|
|
7967
7970
|
timeout,
|
|
7968
7971
|
vcpus,
|
|
7969
7972
|
ports: publishPorts,
|
|
@@ -8005,7 +8008,8 @@ const create = import_cjs$15.command({
|
|
|
8005
8008
|
description: "Create and connect to a sandbox without a network access",
|
|
8006
8009
|
command: `sandbox run --network-policy=none --connect`
|
|
8007
8010
|
}],
|
|
8008
|
-
async handler({ name, nonPersistent, ports, scope: scope$1, runtime: runtime$1, timeout: timeout$1, vcpus: vcpus$1, silent, snapshot: snapshot$1, connect: connect$1, envVars, tags, snapshotExpiration: snapshotExpiration$1, keepLastSnapshots: keepLastSnapshots$1, keepLastSnapshotsFor: keepLastSnapshotsFor$1, deleteEvictedSnapshots: deleteEvictedSnapshots$1, networkPolicy: networkPolicyMode$1, allowedDomains: allowedDomains$1, allowedCIDRs: allowedCIDRs$1, deniedCIDRs: deniedCIDRs$1 }) {
|
|
8011
|
+
async handler({ name, nonPersistent, ports, scope: scope$1, runtime: runtime$1, image, timeout: timeout$1, vcpus: vcpus$1, silent, snapshot: snapshot$1, connect: connect$1, envVars, tags, snapshotExpiration: snapshotExpiration$1, keepLastSnapshots: keepLastSnapshots$1, keepLastSnapshotsFor: keepLastSnapshotsFor$1, deleteEvictedSnapshots: deleteEvictedSnapshots$1, networkPolicy: networkPolicyMode$1, allowedDomains: allowedDomains$1, allowedCIDRs: allowedCIDRs$1, deniedCIDRs: deniedCIDRs$1 }) {
|
|
8012
|
+
if (image && runtime$1) throw new Error("--image and --runtime cannot be used together.");
|
|
8009
8013
|
const networkPolicy$1 = buildNetworkPolicy({
|
|
8010
8014
|
networkPolicy: networkPolicyMode$1,
|
|
8011
8015
|
allowedDomains: allowedDomains$1,
|
|
@@ -8046,7 +8050,7 @@ const create = import_cjs$15.command({
|
|
|
8046
8050
|
projectId: scope$1.project,
|
|
8047
8051
|
token: scope$1.token,
|
|
8048
8052
|
ports,
|
|
8049
|
-
runtime: runtime$1,
|
|
8053
|
+
...image ? { image } : { runtime: runtime$1 ?? "node24" },
|
|
8050
8054
|
timeout: (0, import_ms$3.default)(timeout$1),
|
|
8051
8055
|
resources,
|
|
8052
8056
|
networkPolicy: networkPolicy$1,
|
|
@@ -12052,4 +12056,4 @@ const app = (opts) => (0, import_cjs.subcommands)({
|
|
|
12052
12056
|
|
|
12053
12057
|
//#endregion
|
|
12054
12058
|
export { source_exports as a, init_source as i, printTopLevelError as n, require_cjs as r, app as t };
|
|
12055
|
-
//# sourceMappingURL=app-
|
|
12059
|
+
//# sourceMappingURL=app-BBJJ-3sX.mjs.map
|