kernl API
    Preparing search index...

    Interface KernelContextParts

    What the kernel builds a module's context from.

    interface KernelContextParts {
        accounts: AccountManager;
        appletOf: (windowId: string) => AppletSummary | undefined;
        applets: () => ReadonlyMap<
            string,
            { summary: AppletSummary; windowId: string },
        >;
        asks: AskChannel;
        consent: SigningConsent;
        eventStore: EventStore;
        holds: (windowId: string, domain: string) => boolean;
        host: Pick<
            KernlHost,
            "storage"
            | "openApplet"
            | "focusApplet"
            | "notify"
            | "now"
            | "openLink",
        >;
        isFocused: (windowId: string) => boolean;
        pool: RelayPool;
        replaceableLoader: AddressPointerLoader;
        secrets: SecretsProvider;
        storage: StorageLike;
        tiers: RelayTiers;
    }
    Index
    accounts: AccountManager
    appletOf: (windowId: string) => AppletSummary | undefined
    applets: () => ReadonlyMap<string, { summary: AppletSummary; windowId: string }>

    The applets running now, by window id.

    Type Declaration

      • (): ReadonlyMap<string, { summary: AppletSummary; windowId: string }>
      • The applets running now, by window id.

        Returns ReadonlyMap<string, { summary: AppletSummary; windowId: string }>

    The kernel's ask channel, over the host's renderers.

    eventStore: EventStore
    holds: (windowId: string, domain: string) => boolean

    Type Declaration

      • (windowId: string, domain: string): boolean
      • Whether a window's applet holds a domain the person granted, and is not blocked. Read-only: only the person grants.

        Parameters

        • windowId: string
        • domain: string

        Returns boolean

    host: Pick<
        KernlHost,
        "storage"
        | "openApplet"
        | "focusApplet"
        | "notify"
        | "now"
        | "openLink",
    >

    The host's effects a module may use.

    isFocused: (windowId: string) => boolean

    Whether a window is the focused one, as the guard sees it.

    pool: RelayPool
    replaceableLoader: AddressPointerLoader
    storage: StorageLike
    tiers: RelayTiers