mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-20 00:02:19 +00:00
fix: fix bun install bug
This commit is contained in:
parent
553f249836
commit
048dcc5693
17 changed files with 354 additions and 22 deletions
22
README.md
22
README.md
|
|
@ -63,10 +63,14 @@ Choose the installation method that works best for your use case.
|
|||
|
||||
Install skill with:
|
||||
|
||||
```
|
||||
```bash
|
||||
npx skills add rivet-dev/skills -s sandbox-agent
|
||||
```
|
||||
|
||||
```bash
|
||||
bunx skills add rivet-dev/skills -s sandbox-agent
|
||||
```
|
||||
|
||||
### TypeScript SDK
|
||||
|
||||
Import the SDK directly into your Node or browser application. Full type safety and streaming support.
|
||||
|
|
@ -77,6 +81,12 @@ Import the SDK directly into your Node or browser application. Full type safety
|
|||
npm install sandbox-agent
|
||||
```
|
||||
|
||||
```bash
|
||||
bun add sandbox-agent
|
||||
# Optional: allow Bun to run postinstall scripts for native binaries (required for SandboxAgent.start()).
|
||||
bun pm trust @sandbox-agent/cli-linux-x64 @sandbox-agent/cli-darwin-arm64 @sandbox-agent/cli-darwin-x64 @sandbox-agent/cli-win32-x64
|
||||
```
|
||||
|
||||
**Setup**
|
||||
|
||||
Local (embedded mode):
|
||||
|
|
@ -154,6 +164,12 @@ Install the CLI wrapper (optional but convenient):
|
|||
npm install -g @sandbox-agent/cli
|
||||
```
|
||||
|
||||
```bash
|
||||
# Allow Bun to run postinstall scripts for native binaries.
|
||||
bun add -g @sandbox-agent/cli
|
||||
bun pm -g trust @sandbox-agent/cli-linux-x64 @sandbox-agent/cli-darwin-arm64 @sandbox-agent/cli-darwin-x64 @sandbox-agent/cli-win32-x64
|
||||
```
|
||||
|
||||
Create a session and send a message:
|
||||
|
||||
```bash
|
||||
|
|
@ -168,6 +184,10 @@ You can also use npx like:
|
|||
npx sandbox-agent --help
|
||||
```
|
||||
|
||||
```bash
|
||||
bunx sandbox-agent --help
|
||||
```
|
||||
|
||||
[CLI documentation](https://sandboxagent.dev/docs/cli)
|
||||
|
||||
### Inspector
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue