mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 13:03:46 +00:00
refactor: consolidate example client code into shared package (#31)
Move common sandbox agent client code into examples/shared to reduce duplication across example projects (daytona, docker, e2b).
This commit is contained in:
parent
0ee60920c8
commit
bd8f6b9c97
6 changed files with 206 additions and 141 deletions
|
|
@ -79,6 +79,12 @@ if (isMainModule) {
|
|||
process.exit(0);
|
||||
});
|
||||
|
||||
await runPrompt({ baseUrl });
|
||||
// When running as root in a container, Claude requires interactive permission prompts
|
||||
// (bypass mode is not supported). Set autoApprovePermissions: true to auto-approve,
|
||||
// or leave false for interactive prompts.
|
||||
await runPrompt({
|
||||
baseUrl,
|
||||
autoApprovePermissions: process.env.AUTO_APPROVE_PERMISSIONS === "true",
|
||||
});
|
||||
await cleanup();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue