kernl API
    Preparing search index...

    Interface KernlDownloadsDeps

    What the download services need from the composed shell.

    interface KernlDownloadsDeps {
        ask: (ask: Ask<"download.add">) => Promise<boolean>;
        fetchDocument: (
            url: string,
            signal: AbortSignal,
        ) => Promise<Uint8Array<ArrayBufferLike>>;
        host: Pick<KernlHost, "storage" | "now">;
        identityOf: (windowId: string) => AppletIdentity | undefined;
        options: DownloadsOptions | undefined;
        ownerOf: (windowId: string) => string | undefined;
        secrets: SecretsProvider;
    }
    Index
    ask: (ask: Ask<"download.add">) => Promise<boolean>

    Put a download program's question to the person as a download.add ask; resolve true only on yes.

    fetchDocument: (
        url: string,
        signal: AbortSignal,
    ) => Promise<Uint8Array<ArrayBufferLike>>

    Fetches an NZB an applet named by address, under the shell's own fetch policy.

    host: Pick<KernlHost, "storage" | "now">
    identityOf: (windowId: string) => AppletIdentity | undefined

    The verified applet a window runs, or undefined.

    options: DownloadsOptions | undefined
    ownerOf: (windowId: string) => string | undefined

    The catalogue id of the applet a window runs, which what it starts is kept under.

    Where the programs' passwords and keys are kept.