mizchi/pkl/cmd/mpkl does not have a README file

    PackageDownloadError

    type PackageDownloadError derive(Eq)

    PackageCacheParts

    type PackageCacheParts

    Filesystem layout shared by the native/JS package downloader and the cache-only Wasm Marketplace loader.

    PackageUri

    type PackageUri

    PKL-129b1: structural parse of a package:// URI. Apple Pkl's registry URLs land in three logical parts: the authority (host), the registry path (which ends with @<version> — pkl-mbt keeps the path verbatim so the same string round-trips into the metadata URL), and an optional #<fragment> selecting a file inside the package zip. Returns None when the URI doesn't have the package://<host>/<path> shape.

    ZipEntry

    type ZipEntry

    fetch_uri

    async fn fetch_uri(url : String) -> String?

    Fetch the body of url over HTTP / HTTPS. Returns the decoded body on success, None on failure (with the message printed to stdout so the caller's fail path surfaces an unambiguous diagnostic).

    PKL-129b1: follow up to 5 redirects (301 / 302 / 303 / 307 / 308). pkg.pkl-lang.org returns 301 redirects to a CDN host before serving the metadata JSON, so without redirect-following the registry probe always fails. The 5-hop cap matches curl's default and prevents loops.

    fetch_uri_bytes

    async fn fetch_uri_bytes(url : String) -> Bytes?

    package_cache_relative

    fn package_cache_relative(uri : String, rest : String) -> String