Licence
MIT
Version
0.1.7
Deps
1
Size
11 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
@miosa/sandbox
Deprecated compatibility wrapper for @miosa/sdk.
Do not use this package for new applications. It exists only so older
JavaScript integrations that imported @miosa/sandbox can keep installing while
they migrate to the canonical SDK.
Use This Instead
npm install @miosa/sdk
import { Miosa } from "@miosa/sdk";
const client = new Miosa({ apiKey: process.env.MIOSA_API_KEY! });
const sandbox = await client.sandboxes.create({
templateId: "miosa-sandbox",
size: "small",
});
const result = await sandbox.exec.run("python3 -c 'print(1 + 1)'");
console.log(result.stdout);
await sandbox.destroy();
Compatibility Import
Existing applications may still import from @miosa/sandbox:
import { MIOSA } from "@miosa/sandbox";
const client = new MIOSA({ apiKey: process.env.MIOSA_API_KEY! });
That MIOSA export is an alias for Miosa from @miosa/sdk.
Canonical Product Names
Use these names in new code:
| Product | Canonical SDK resource | Template/profile |
|---|---|---|
| Sandbox | client.sandboxes |
miosa-sandbox |
| Computer | client.computers |
miosa-desktop |
| App Engine appliance | client.dockerDeploy |
App Engine runtime |
computer is the user-facing product name. miosa-desktop is the underlying
template/profile used to boot that computer.
Migration Notes
The old standalone implementation in this package has been removed. The package
now re-exports @miosa/sdk, plus a few compatibility aliases:
| Old import | Canonical replacement |
|---|---|
MIOSA |
Miosa |
SandboxClient |
Sandboxes |
ComputerClient |
Computers |
CreateSandboxOptions |
SandboxCreateParams |
CreateComputerOptions |
ComputerCreateParams |
For docs, use:
- TypeScript SDK: https://miosa.ai/docs/sdks/typescript
- Sandboxes API: https://miosa.ai/docs/api-reference/sandboxes
- Computers API: https://miosa.ai/docs/api-reference/computers