kernl API
    Preparing search index...

    Interface Kernel

    The composed shell: the kernel's own members. A host that names its modules gets this with each module's api beside it; Kernl is this with kernl's own (D-062, D-068).

    interface Kernel {
        accounts: AccountManager;
        bridge: ShellBridge;
        eventStore: EventStore;
        firewall: Firewall;
        grants: Grants;
        guard: GuardFacade;
        media: KernlMedia;
        pool: RelayPool;
        relays: RelayTiers;
        secrets: SecretsDescription;
        session: Session | null;
        session$: Observable<Session | null>;
        traffic$: Observable<AppletMessage>;
        applets(): readonly AppletHandle[];
        decodePointer(input: string): AppletPointer;
        destroy(): void;
        handleWindowMessage(event: MessageEvent): void;
        install(summary: AppletSummary): InstalledApplet;
        login(account: IAccount): Promise<Session>;
        logout(): Promise<void>;
        mount(plan: MountPlan, frame: FrameLike): AppletHandle;
        plan(summary: AppletSummary): Promise<MountPlan>;
        resolve(pointer: AppletPointer): Promise<AppletSummary>;
    }
    Index
    accounts: AccountManager
    bridge: ShellBridge
    eventStore: EventStore
    firewall: Firewall

    The rules for what applets may ask for without the person being asked, and the answers in force.

    grants: Grants
    media: KernlMedia

    Media applets play through the shell, and the person's media settings (D-063).

    pool: RelayPool
    relays: RelayTiers

    How the shell's secrets are kept, so a settings screen can say so (D-052).

    session: Session | null
    session$: Observable<Session | null>
    traffic$: Observable<AppletMessage>

    Every message between this shell's applets and itself, both ways, on the window and on the port. Envelopes can hold private messages and signed events: a host keeps them in memory only.

    • Decode an address or event pointer. Throws invalid:pointer.

      Parameters

      • input: string

      Returns AppletPointer

    • Returns void

    • Forward a message event from the window. The host wires this once.

      Parameters

      • event: MessageEvent

      Returns void

    • Parameters

      • account: IAccount

      Returns Promise<Session>

    • Returns Promise<void>