Documentation
    Preparing search index...

    Function getShellDomainState

    • Report the host-facing advertisement state of one bare NAP domain.

      Advertisement itself stays binary on the wire (NIP-5D domain presence), but a host UI needs the third state: the domain is advertised while the user has not configured its backend yet. Only hooks that expose isConfigured() (today llm) can report unconfigured; every other advertised domain is supported, and anything not advertised is disabled.

      Parameters

      • hooks: ShellAdapter

        The ShellAdapter provided by the host app.

      • domain: string

        Bare NAP domain name such as llm.

      Returns ShellDomainState

      supported, unconfigured or disabled.

      getShellDomainState(hooks, 'llm'); // 'unconfigured' until a connection is saved