Repository navigation
feat(dev): pnpm dev hands the developer's Clerk keys to the server - #126
Conversation
The dev runner's server env is closed on purpose, so there was nowhere outside the repo to put the Clerk development keys that pnpm dev would read. The supervisor now loads ~/.config/patchy-cloud/dev.env (one file per developer, every worktree, XDG honoured) under the plan's own values and names the loaded keys in dev.log. clerk env pull --file writes it. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Fable reviewReviewed against Intent matches the resolution: one file per developer at BlockingThe clerk env pull --file ~/.config/patchy-cloud/dev.env#118 decided the worktree is deliberately not Fix: put Non-blocking
|
Sol reviewRequest changes — two merge blockers. Intent
Method / YAGNI
|
…ovider Review on the PR: the runner's server env is closed on purpose, so the file should not become a generic passthrough, and the hand-written dotenv parser duplicated ConfigProvider.fromDotEnvContents. The supervisor now asks the file for CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY only. The docs' refresh command gained the app id (the worktree is deliberately not clerk-linked) and the XDG path the runner actually reads. Co-Authored-By: Claude Fable 5.1 <[email protected]>
AddressedCommit Fixed
Kept as is
Lint, typecheck and the runner's tests pass; CI is running on the new commit. |
The auth build needs the Clerk development keys inside the server that
pnpm devruns, but the runner's server env is closed on purpose, so there was nowhere outside the repo to put them.The supervisor now reads
CLERK_PUBLISHABLE_KEYandCLERK_SECRET_KEYfrom$XDG_CONFIG_HOME/patchy-cloud/dev.env(one file per developer, shared by every worktree) through Effect's dotenvConfigProvider, forwards only those two names to the server, and names the loaded keys indev.log.clerk env pull --app … --filewrites that file. Documented indocs/DEVELOPMENT.mdand thepatchy-dev-loopskill, with one test on the reader.Resolves the Clerk application task on the auth map (#118).
Made by Claude Fable 5.1 in Claude Code.