fix(cli): refuse a non-URL install-from-source source up front

Merged
AM
2mo ago
+100-3

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_ARGS before doing any work, and points at install <app> <path>.
  • The deprecated SDK isTrustedInstallSourceUrl now reports an unparsable source as INVALID_ARGS instead of throwing a TypeError.

Validation

  • pnpm check:affected --run passes.

🤖 Generated with Claude Code