mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 21:03:26 +00:00
refactor: generalize permissions example
This commit is contained in:
parent
6e6d94be38
commit
5127b2c4ed
5 changed files with 17 additions and 14 deletions
|
|
@ -157,7 +157,7 @@ await claude.prompt([
|
|||
]);
|
||||
```
|
||||
|
||||
See `examples/claude-permissions/src/index.ts` for a complete Claude example with interactive approve/reject handling.
|
||||
See `examples/permissions/src/index.ts` for a complete permissions example that works with Claude and Codex.
|
||||
|
||||
## Destroy a session
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ const options = await session.getConfigOptions();
|
|||
const modes = await session.getModes();
|
||||
```
|
||||
|
||||
Claude permission modes use the same surface:
|
||||
Permission modes use the same surface:
|
||||
|
||||
```ts
|
||||
const claude = await sdk.createSession({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue