@blaxel/core 0.2.59 → 0.2.60-preview.46

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.
@@ -9,8 +9,8 @@ const index_js_1 = require("../authentication/index.js");
9
9
  const env_js_1 = require("../common/env.js");
10
10
  const node_js_1 = require("../common/node.js");
11
11
  // Build info - these placeholders are replaced at build time by build:replace-imports
12
- const BUILD_VERSION = "0.2.59";
13
- const BUILD_COMMIT = "b0ebd759d4036536a387b2f2150e1b348f17ef2f";
12
+ const BUILD_VERSION = "0.2.60-preview.46";
13
+ const BUILD_COMMIT = "5b28eba4f1e1f55cb9ec40c4ed8a7b2225788441";
14
14
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
15
15
  // Cache for config.yaml tracking value
16
16
  let configTrackingValue = null;
@@ -29,7 +29,7 @@ class CodeInterpreter extends sandbox_js_1.SandboxInstance {
29
29
  };
30
30
  return new CodeInterpreter(config);
31
31
  }
32
- static async create(sandbox, { safe = true } = {}) {
32
+ static async create(sandbox, { safe = false } = {}) {
33
33
  const payload = {
34
34
  image: CodeInterpreter.DEFAULT_IMAGE,
35
35
  ports: CodeInterpreter.DEFAULT_PORTS,
@@ -4,11 +4,11 @@ exports.SandboxInstance = void 0;
4
4
  const uuid_1 = require("uuid");
5
5
  const index_js_1 = require("../client/index.js");
6
6
  const logger_js_1 = require("../common/logger.js");
7
- const index_js_2 = require("./filesystem/index.js");
8
- const index_js_3 = require("./network/index.js");
7
+ const index_js_2 = require("./codegen/index.js");
8
+ const index_js_3 = require("./filesystem/index.js");
9
+ const index_js_4 = require("./network/index.js");
9
10
  const preview_js_1 = require("./preview.js");
10
- const index_js_4 = require("./process/index.js");
11
- const index_js_5 = require("./codegen/index.js");
11
+ const index_js_5 = require("./process/index.js");
12
12
  const session_js_1 = require("./session.js");
13
13
  const types_js_1 = require("./types.js");
14
14
  class SandboxInstance {
@@ -21,12 +21,12 @@ class SandboxInstance {
21
21
  codegen;
22
22
  constructor(sandbox) {
23
23
  this.sandbox = sandbox;
24
- this.process = new index_js_4.SandboxProcess(sandbox);
25
- this.fs = new index_js_2.SandboxFileSystem(sandbox, this.process);
26
- this.network = new index_js_3.SandboxNetwork(sandbox);
24
+ this.process = new index_js_5.SandboxProcess(sandbox);
25
+ this.fs = new index_js_3.SandboxFileSystem(sandbox, this.process);
26
+ this.network = new index_js_4.SandboxNetwork(sandbox);
27
27
  this.previews = new preview_js_1.SandboxPreviews(sandbox);
28
28
  this.sessions = new session_js_1.SandboxSessions(sandbox);
29
- this.codegen = new index_js_5.SandboxCodegen(sandbox);
29
+ this.codegen = new index_js_2.SandboxCodegen(sandbox);
30
30
  }
31
31
  get metadata() {
32
32
  return this.sandbox.metadata;
@@ -45,7 +45,7 @@ class SandboxInstance {
45
45
  logger_js_1.logger.warn("⚠️ Warning: sandbox.wait() is deprecated. You don't need to wait for the sandbox to be deployed anymore.");
46
46
  return this;
47
47
  }
48
- static async create(sandbox, { safe = true } = {}) {
48
+ static async create(sandbox, { safe = false } = {}) {
49
49
  const defaultName = `sandbox-${(0, uuid_1.v4)().replace(/-/g, '').substring(0, 8)}`;
50
50
  const defaultImage = `blaxel/base-image:latest`;
51
51
  const defaultMemory = 4096;
@@ -1,4 +1,4 @@
1
- import { Sandbox, SandboxLifecycle, Port } from "../client/types.gen.js";
1
+ import { Port, Sandbox, SandboxLifecycle } from "../client/types.gen.js";
2
2
  import { SandboxInstance } from "./sandbox.js";
3
3
  import { SandboxConfiguration, SandboxCreateConfiguration } from "./types.js";
4
4
  export declare class CodeInterpreter extends SandboxInstance {
@@ -1,9 +1,9 @@
1
1
  import { Sandbox as SandboxModel } from "../client/index.js";
2
+ import { SandboxCodegen } from "./codegen/index.js";
2
3
  import { SandboxFileSystem } from "./filesystem/index.js";
3
4
  import { SandboxNetwork } from "./network/index.js";
4
5
  import { SandboxPreviews } from "./preview.js";
5
6
  import { SandboxProcess } from "./process/index.js";
6
- import { SandboxCodegen } from "./codegen/index.js";
7
7
  import { SandboxSessions } from "./session.js";
8
8
  import { SandboxConfiguration, SandboxCreateConfiguration, SandboxUpdateMetadata, SessionWithToken } from "./types.js";
9
9
  export declare class SandboxInstance {