fix(cli): refuse a non-URL install-from-source source up front
Merged
AM
2mo ago+100+100+012345678901234567890123456789-3-3-0123456789
Summary
Split out of #3118. This change affects every provider.
install-from-source treats its positional argument as a URL. Until now, a local path was only rejected later, by the download layer, with no pointer to the right command.
- The CLI now refuses a source that is not an http(s) URL with
INVALID_ARGSbefore doing any work, and points atinstall <app> <path>. - The deprecated SDK
isTrustedInstallSourceUrlnow reports an unparsable source asINVALID_ARGSinstead of throwing a TypeError.
Validation
pnpm check:affected --runpasses.
🤖 Generated with Claude Code