Files
PaperClipAI/packages/adapter-utils
Devin Foley 4c72f02a06 Address Greptile review on sandbox install fixes
Two findings from the Greptile pass on PAPA-316:

1. sandbox-install-command: the export PATH and PAPERCLIP_NPM_BOOTSTRAPPED=1
   were separated from the curl && tar && rm chain by ; so the bootstrap
   marker would be set even if the tarball download or extraction failed,
   leading to a misleading "npm: command not found" error on the install
   step instead of surfacing the original curl/tar failure. Switch those
   delimiters to && so the marker is only set after a successful bootstrap.

2. opencode-local: $HOME/.local/bin is on the default PATH on the exe.dev
   image but not universally on bare Debian/Ubuntu non-login sh -c shells.
   Prefer /usr/local/bin (always on the default PATH on Linux) when running
   as root or with passwordless sudo, and only fall back to $HOME/.local/bin
   when neither is available. Mirrors the sudo-aware pattern that
   buildSandboxNpmInstallCommand already uses.
2026-05-11 14:17:07 -07:00
..
2026-03-12 13:09:22 -05:00