mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-17 11:04:58 +00:00
refactor: split examples into separate packages and update Claude plan mode
- Restructure examples into individual packages per provider (daytona, docker, e2b, vercel) with shared utilities in @sandbox-agent/example-shared - Make Claude plan mode prompt-only (no longer requires permissionMode=plan) - Claude now defaults to bypass permission mode - Add agent_file_edit_flow test for file editing capabilities - Fix Daytona file permission setting to use executeCommand
This commit is contained in:
parent
30c4ad6b39
commit
6d6f6d0272
17 changed files with 2773 additions and 165 deletions
|
|
@ -6,7 +6,7 @@ import {
|
|||
logInspectorUrl,
|
||||
runPrompt,
|
||||
waitForHealth,
|
||||
} from "../shared/sandbox-agent-client.ts";
|
||||
} from "@sandbox-agent/example-shared";
|
||||
|
||||
const DEFAULT_PORT = 3000;
|
||||
const BINARY_PATH = resolve(dirname(fileURLToPath(import.meta.url)), "../../target/release/sandbox-agent");
|
||||
|
|
@ -25,9 +25,10 @@ export async function setupDaytonaSandboxAgent(): Promise<{
|
|||
console.log("Creating sandbox...");
|
||||
const sandbox = await daytona.create({ language });
|
||||
|
||||
// Daytona sandboxes can't reach releases.rivet.dev, so upload binary directly
|
||||
console.log("Uploading sandbox-agent...");
|
||||
await sandbox.fs.uploadFile(BINARY_PATH, "/home/daytona/sandbox-agent");
|
||||
await sandbox.fs.setFilePermissions("/home/daytona/sandbox-agent", { mode: "755" });
|
||||
await sandbox.process.executeCommand("chmod +x /home/daytona/sandbox-agent");
|
||||
|
||||
console.log("Starting server...");
|
||||
const tokenFlag = token ? `--token ${token}` : "--no-token";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue