Commit cf5243b
chore(dev): Support Claude Code cloud (remote) sessions (#22573)
Enables this repo to run in Claude Code cloud (remote) sessions by
committing the bootstrap needed to install and build the monorepo on
session start.
- `scripts/claude-cloud-setup.sh` — runs `yarn install --ignore-engines
--frozen-lockfile` (matching CI) then `yarn build:dev`, with
`VOLTA_FEATURE_PNPM=1` exported.
- `.claude/settings.json` — a `SessionStart` hook runs that script,
gated to cloud sessions via `CLAUDE_CODE_REMOTE=true` so local sessions
are untouched.
- `.claude/CLOUD.md` — documents the one-time per-environment settings
that can't be committed (setup script, network access, env vars).
The hook runs install + build on **every** cloud session rather than
depending on the cached environment-creation setup script, because the
working branch changes constantly and a cached build would be stale.
Repeated runs stay cheap: a frozen-lockfile install is a no-op when
`node_modules` is warm, and Nx only rebuilds packages whose inputs
changed.
`build:dev` (transpile + types) is used instead of the full production
`yarn build` — enough for editing and unit tests, and faster on each
session.
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8aa02a3 commit cf5243b
3 files changed
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
3 | 16 | | |
4 | 17 | | |
5 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments