Commit 7e2c8a9
[luv-12] Default to bypassPermissions in ~/.claude/settings.json (#11)
Add ensure_default_permission_mode() that merges
permissions.defaultMode = bypassPermissions into the user's global
Claude Code settings on each luv run, so new sessions start in bypass
mode instead of the default. Atomic-write, idempotent, no-op on
unreadable/non-dict JSON. Bump version to 0.0.5.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent add795f commit 7e2c8a9
2 files changed
Lines changed: 43 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
149 | 189 | | |
150 | 190 | | |
151 | 191 | | |
| |||
657 | 697 | | |
658 | 698 | | |
659 | 699 | | |
660 | | - | |
| 700 | + | |
661 | 701 | | |
| 702 | + | |
662 | 703 | | |
663 | 704 | | |
664 | 705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments