Commit 440879b
committed
feat(cli): allow user to opt into permissions bypass
When a user starts onboarding by running `npx stash@latest init`, it runs
through a series of detection steps, and finishes by handing off to one of
Claude Code, Codex, an `AGENTS.md` editor agent, or the CipherStash Wizard,
to do the integration of the encryption SDK into their app.
When the user picks Claude Code, the CLI spawns the claude binary with a
single argument — the launch prompt — and inherits stdio so the user can
watch the session.
Claude needs to run a lot of read/edit/exec commands to understand the
project before it can wire up the encryption SDK. Unless the user has
already configured Claude to skip permission prompts, every one of those
commands stops to ask for approval. That forces the user to babysit the
integration the whole way through.
`init` should invoke Claude with `--allow-dangerously-skip-permissions`,
so the user can shift to that mode if they decide to let Claude run with
the integration.1 parent e57b53f commit 440879b
3 files changed
Lines changed: 17 additions & 3 deletions
File tree
- .changeset
- packages/cli/src/commands/init
- lib
- steps
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | | - | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments