sandbox 2.5.3 → 2.5.4
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.
|
@@ -7425,7 +7425,7 @@ const scope = {
|
|
|
7425
7425
|
|
|
7426
7426
|
//#endregion
|
|
7427
7427
|
//#region package.json
|
|
7428
|
-
var version = "2.5.
|
|
7428
|
+
var version = "2.5.4";
|
|
7429
7429
|
|
|
7430
7430
|
//#endregion
|
|
7431
7431
|
//#region src/error.ts
|
|
@@ -11759,6 +11759,12 @@ const args$2 = {
|
|
|
11759
11759
|
long: "connect",
|
|
11760
11760
|
description: "Start an interactive shell session after creating the sandbox"
|
|
11761
11761
|
}),
|
|
11762
|
+
envVars: import_cjs$11.multioption({
|
|
11763
|
+
long: "env",
|
|
11764
|
+
short: "e",
|
|
11765
|
+
type: ObjectFromKeyValue,
|
|
11766
|
+
description: "Default environment variables for sandbox commands"
|
|
11767
|
+
}),
|
|
11762
11768
|
...networkPolicyArgs,
|
|
11763
11769
|
scope
|
|
11764
11770
|
};
|
|
@@ -11770,7 +11776,7 @@ const create = import_cjs$11.command({
|
|
|
11770
11776
|
description: "Create and connect to a sandbox without a network access",
|
|
11771
11777
|
command: `sandbox run --network-policy=none --connect`
|
|
11772
11778
|
}],
|
|
11773
|
-
async handler({ ports, scope: scope$1, runtime: runtime$1, timeout: timeout$1, vcpus: vcpus$1, silent, snapshot: snapshot$1, connect: connect$2, networkPolicy: networkPolicyMode$1, allowedDomains: allowedDomains$1, allowedCIDRs: allowedCIDRs$1, deniedCIDRs: deniedCIDRs$1 }) {
|
|
11779
|
+
async handler({ ports, scope: scope$1, runtime: runtime$1, timeout: timeout$1, vcpus: vcpus$1, silent, snapshot: snapshot$1, connect: connect$2, envVars, networkPolicy: networkPolicyMode$1, allowedDomains: allowedDomains$1, allowedCIDRs: allowedCIDRs$1, deniedCIDRs: deniedCIDRs$1 }) {
|
|
11774
11780
|
const networkPolicy$1 = buildNetworkPolicy({
|
|
11775
11781
|
networkPolicy: networkPolicyMode$1,
|
|
11776
11782
|
allowedDomains: allowedDomains$1,
|
|
@@ -11791,6 +11797,7 @@ const create = import_cjs$11.command({
|
|
|
11791
11797
|
timeout: (0, import_ms$1.default)(timeout$1),
|
|
11792
11798
|
resources,
|
|
11793
11799
|
networkPolicy: networkPolicy$1,
|
|
11800
|
+
env: envVars,
|
|
11794
11801
|
__interactive: true
|
|
11795
11802
|
}) : await sandboxClient.create({
|
|
11796
11803
|
teamId: scope$1.team,
|
|
@@ -11801,6 +11808,7 @@ const create = import_cjs$11.command({
|
|
|
11801
11808
|
timeout: (0, import_ms$1.default)(timeout$1),
|
|
11802
11809
|
resources,
|
|
11803
11810
|
networkPolicy: networkPolicy$1,
|
|
11811
|
+
env: envVars,
|
|
11804
11812
|
__interactive: true
|
|
11805
11813
|
});
|
|
11806
11814
|
spinner?.stop();
|
|
@@ -14684,4 +14692,4 @@ const app = (opts) => (0, import_cjs.subcommands)({
|
|
|
14684
14692
|
|
|
14685
14693
|
//#endregion
|
|
14686
14694
|
export { source_exports as a, init_source as i, StyledError as n, require_cjs as r, app as t };
|
|
14687
|
-
//# sourceMappingURL=app-
|
|
14695
|
+
//# sourceMappingURL=app-6okY2haN.mjs.map
|