| 1 | // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. |
| 2 | |
| 3 | /** |
| 4 | * Permission-gating mode passed to `claude --permission-mode <mode>`. |
| 5 | * The CLI accepts more values (`default`, `dontAsk`) but we only |
| 6 | * expose the four that make sense for a GUI chat flow. `Auto` is |
| 7 | * the default: non-dangerous tools run without prompting, dangerous |
| 8 | * tools (Bash/Edit/Write) block and fail the turn. |
| 9 | */ |
| 10 | export type PermissionMode = "auto" | "acceptEdits" | "bypassPermissions" | "plan"; |