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:
Nathan Flurry 2026-01-29 07:19:20 -08:00 committed by GitHub
parent 0ee60920c8
commit bd8f6b9c97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 206 additions and 141 deletions

View file

@ -60,6 +60,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();
}