Skip to content

Latest commit

 

History

History
371 lines (232 loc) · 55 KB

File metadata and controls

371 lines (232 loc) · 55 KB

@mastra/blaxel

0.5.0

Minor Changes

Patch Changes

0.5.0-alpha.0

Minor Changes

Patch Changes

0.4.2

Patch Changes

0.4.2-alpha.0

Patch Changes

  • Security remediation for the 2026-06-17 "easy-day-js" supply-chain incident. Patch bump to publish clean versions and move the latest dist-tag forward, superseding the compromised versions that declared the malicious easy-day-js dependency. (#18056)

  • Updated dependencies [77a2351]:

    • @mastra/core@1.43.1-alpha.0

0.4.1

Patch Changes

0.4.1-alpha.1

Patch Changes

0.4.1-alpha.0

Patch Changes

0.4.0

Minor Changes

  • Added region support to Blaxel sandboxes: new BlaxelSandbox({ region: 'eu-west-1' }). When omitted, Mastra falls back to BL_REGION and then auto. (#16555)

Patch Changes

0.4.0-alpha.0

Minor Changes

  • Added region support to Blaxel sandboxes: new BlaxelSandbox({ region: 'eu-west-1' }). When omitted, Mastra falls back to BL_REGION and then auto. (#16555)

Patch Changes

0.3.0

Minor Changes

  • Added S3 prefix (subdirectory) mount support. You can now mount a specific folder within an S3 bucket instead of the entire bucket by setting the prefix option on your S3 filesystem. (#15171)

    Example:

    const fs = new S3Filesystem({
      bucket: 'my-bucket',
      region: 'us-east-1',
      prefix: 'workspace/data',
      accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
      secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
    });

    When mounted in a sandbox, only the contents under workspace/data/ in the bucket will be visible at the mount path. This uses the s3fs bucket:/path syntax under the hood.

    Closes #15147.

Patch Changes

0.3.0-alpha.0

Minor Changes

  • Added S3 prefix (subdirectory) mount support. You can now mount a specific folder within an S3 bucket instead of the entire bucket by setting the prefix option on your S3 filesystem. (#15171)

    Example:

    const fs = new S3Filesystem({
      bucket: 'my-bucket',
      region: 'us-east-1',
      prefix: 'workspace/data',
      accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
      secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
    });

    When mounted in a sandbox, only the contents under workspace/data/ in the bucket will be visible at the mount path. This uses the s3fs bucket:/path syntax under the hood.

    Closes #15147.

Patch Changes

  • Updated dependencies [f112db1, 21d9706]:
    • @mastra/core@1.26.1-alpha.0

0.2.1

Patch Changes

0.2.1-alpha.0

Patch Changes

0.2.0

Minor Changes

  • Added provider-specific blaxel getter to access the underlying Blaxel SandboxInstance directly. Deprecated the generic instance getter in favor of the new blaxel getter for better IDE discoverability and consistency with other sandbox providers. (#14166)

    // Before
    const blaxelSandbox = sandbox.instance;
    
    // After
    const blaxelSandbox = sandbox.blaxel;

Patch Changes

  • Use provider-native string process IDs directly as ProcessHandle.pid, removing the previous parseInt() workaround. (#13591)

    const handle = await sandbox.processes.spawn('node server.js');
    handle.pid; // string — the Blaxel SDK's native process ID
  • dependencies updates: (#13591)

    • Updated peerDependency @mastra/core to >=1.12.0-0 <2.0.0-0
  • Updated dependencies [cddf895, 9cede11, a59f126, ed8fd75, c510833, c4c7dad, 45c3112, 7296fcc, 00c27f9, 5e7c287, 7e17d3f, ee19c9b]:

    • @mastra/core@1.12.0

0.2.0-alpha.0

Minor Changes

  • Added provider-specific blaxel getter to access the underlying Blaxel SandboxInstance directly. Deprecated the generic instance getter in favor of the new blaxel getter for better IDE discoverability and consistency with other sandbox providers. (#14166)

    // Before
    const blaxelSandbox = sandbox.instance;
    
    // After
    const blaxelSandbox = sandbox.blaxel;

Patch Changes

  • Use provider-native string process IDs directly as ProcessHandle.pid, removing the previous parseInt() workaround. (#13591)

    const handle = await sandbox.processes.spawn('node server.js');
    handle.pid; // string — the Blaxel SDK's native process ID
  • dependencies updates: (#13591)

    • Updated peerDependency @mastra/core to >=1.12.0-0 <2.0.0-0
  • Updated dependencies [9cede11, a59f126, c510833, 7296fcc, 00c27f9, ee19c9b]:

    • @mastra/core@1.12.0-alpha.1

0.1.1

Patch Changes

0.1.1-alpha.0

Patch Changes

0.1.0

Minor Changes

  • Abort signal support in sandbox commands (#13597)

    • Sandbox commands can now be cancelled via abortSignal in command options
    • Partial stdout/stderr output is now preserved when a command is aborted or times out
  • Added background process management support for Blaxel sandboxes. Agents can now spawn, monitor, and kill long-running processes using the standard ProcessHandle interface. (79177b1)

    Example usage:

    const sandbox = new BlaxelSandbox({ timeout: '5m' });
    const workspace = new Workspace({ sandbox });
    
    // Process manager is available via sandbox.processes
    const handle = await sandbox.processes.spawn('python server.py');
    
    // Monitor output
    handle.onStdout(data => console.log(data));
    
    // Check status
    const info = await sandbox.processes.list();
    
    // Kill when done
    await handle.kill();

    Note: Process stdin is not supported in Blaxel sandboxes.

    Additional improvements:

    • Fixed detection of expired sandboxes, ensuring operations automatically retry when a sandbox has timed out

Patch Changes

0.1.0-alpha.0

Minor Changes

  • Abort signal support in sandbox commands (#13597)

    • Sandbox commands can now be cancelled via abortSignal in command options
    • Partial stdout/stderr output is now preserved when a command is aborted or times out
  • Added background process management support for Blaxel sandboxes. Agents can now spawn, monitor, and kill long-running processes using the standard ProcessHandle interface. (79177b1)

    Example usage:

    const sandbox = new BlaxelSandbox({ timeout: '5m' });
    const workspace = new Workspace({ sandbox });
    
    // Process manager is available via sandbox.processes
    const handle = await sandbox.processes.spawn('python server.py');
    
    // Monitor output
    handle.onStdout(data => console.log(data));
    
    // Check status
    const info = await sandbox.processes.list();
    
    // Kill when done
    await handle.kill();

    Note: Process stdin is not supported in Blaxel sandboxes.

    Additional improvements:

    • Fixed detection of expired sandboxes, ensuring operations automatically retry when a sandbox has timed out

Patch Changes

0.0.2

Patch Changes

0.0.2-alpha.0

Patch Changes

0.0.1

Patch Changes

  • Added @mastra/blaxel package providing Blaxel cloud sandbox integration for Mastra workspaces. Supports S3 and GCS filesystem mounting via FUSE inside sandboxes.

    import { BlaxelSandbox } from '@mastra/blaxel';
    
    const sandbox = new BlaxelSandbox({ timeout: '5m' });