import io.xpipe.beacon.BeaconInterface;
import io.xpipe.beacon.BeaconJacksonModule;
import io.xpipe.beacon.api.*;
import io.xpipe.core.util.ModuleLayerLoader;

import com.fasterxml.jackson.databind.Module;

open module io.xpipe.beacon {
    exports io.xpipe.beacon;
    exports io.xpipe.beacon.test;
    exports io.xpipe.beacon.api;

    requires com.fasterxml.jackson.core;
    requires com.fasterxml.jackson.annotation;
    requires com.fasterxml.jackson.databind;
    requires transitive io.xpipe.core;
    requires static lombok;
    requires static org.junit.jupiter.api;
    requires jdk.httpserver;
    requires java.net.http;
    requires java.desktop;

    uses io.xpipe.beacon.BeaconInterface;

    provides ModuleLayerLoader with
            BeaconInterface.Loader;
    provides Module with
            BeaconJacksonModule;
    provides BeaconInterface with
            ShellStartExchange,
            ShellStopExchange,
            ShellExecExchange,
            DaemonModeExchange,
            DaemonStatusExchange,
            DaemonFocusExchange,
            DaemonOpenExchange,
            DaemonStopExchange,
            HandshakeExchange,
            ConnectionQueryExchange,
            ConnectionInfoExchange,
            ConnectionRemoveExchange,
            ConnectionAddExchange,
            CategoryAddExchange,
            ConnectionBrowseExchange,
            ConnectionTerminalExchange,
            ConnectionToggleExchange,
            ConnectionRefreshExchange,
            AskpassExchange,
            TerminalWaitExchange,
            TerminalLaunchExchange,
            SshLaunchExchange,
            FsReadExchange,
            FsBlobExchange,
            FsWriteExchange,
            FsScriptExchange,
            DaemonVersionExchange;
}
