Repository navigation
chore(capy): install service CLIs with agent tokens from Infisical - #8375
Conversation
Agents on Capy machines need Vercel, Cloudflare, Supabase, Sentry, PostHog, Linear and Notion from the shell. Install their CLIs into one prefix and wrap each, the existing supabase included, so it runs under infisical run with the tokens in Infisical char dev:/agents, never written to disk or exported to other processes. posthog-cli targets the Anarlog project.
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
infisical run injected every dev:/agents secret into each CLI, so vercel build or wrangler dev passed all of them to the repository's own build commands. Each wrapper now fetches only the keys its CLI reads and execs the binary. Setup also fails when supabase is missing from /usr/local/bin instead of writing a wrapper to nothing.
Summary
Context: Agents on Capy machines for Anarlog had
supabasebut no credentials for it, and no CLI for Vercel, Cloudflare, Sentry, PostHog, Linear or Notion.Intention: Any thread in this project should be able to drive all seven services from the shell without a login step and without tokens leaking into the processes that build and run Anarlog.
Direction:
.capy/tools.shinstallsvercel,wrangler,sentry-cli,posthog-cli,linear(schpet/linear-cli) andntn(Notion's CLI) into~/.local/opt/service-clis. For each of those, and for thesupabasethatscripts/setup-devtools.shalready installs, it writes a wrapper in~/.local/bin. The wrapper fetches only that CLI's own tokens from the char Infisical project'sdev:/agentsfolder, the same folder fastrepl/char#5784 uses, and then execs the real binary, so avercel buildnever hands the other services' tokens to the repo's build commands. Setup fails ifsupabaseis missing from/usr/local/binrather than writing a wrapper that points at nothing. Onlyposthog-cliis overridden: it targets the Anarlog PostHog project (113410) instead of Char's. Repo tasks such astask supabase-startuse the workspacesupabasethroughpnpm exec, so they don't go through the wrapper.Demo
N/A: this changes machine tooling only.
Verification
HOME, using Node 22.23.4's npm 10.9.9 as Setup does. Every CLI installed and reports its version.posthog-cli api call project-getthrough the wrapper returns Anarlog (113410), andvercel whoamiauthenticates./usr/local/bin/supabaseis missing.INFISICAL_TOKENcan read the chardev:/agentsfolder (key names listed, no values).