kernl API
    Preparing search index...

    Interface KernlHost

    Host hooks the core calls. Applets never reach these.

    interface KernlHost {
        storage: StorageLike;
        fetchBlob?(
            sha256: string,
            servers: readonly string[],
        ): Promise<Uint8Array<ArrayBufferLike>>;
        getVisibility(windowId: string): WindowVisibility;
        notify(
            notice: {
                body?: string;
                title: string;
                tone: "info" | "warning";
                windowId?: string;
            },
        ): void;
        now?(): number;
        onRevoked(windowId: string, reason: string): void;
        openLink(url: string): void;
        presentConsent(prompt: ConsentPrompt): void;
    }
    Index
    storage: StorageLike
    • Verify an artifact blob. Defaults to fetch over the manifest's servers.

      Parameters

      • sha256: string
      • servers: readonly string[]

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Current visibility for a window, when the core needs it synchronously.

      Parameters

      • windowId: string

      Returns WindowVisibility

    • Show something the applet or the guard wants the user to know.

      Parameters

      • notice: { body?: string; title: string; tone: "info" | "warning"; windowId?: string }

      Returns void

    • Returns number

    • Called after the core removed a frame because its binding was revoked.

      Parameters

      • windowId: string
      • reason: string

      Returns void

    • Open a link outside the shell after the link policy allowed it.

      Parameters

      • url: string

      Returns void

    • Ask the user. Resolve false on dismiss. The core never times this out.

      Parameters

      Returns void