import { i as isLoopbackHost } from "../net-CopWDgR1.js";
import { n as resolveGatewayAuth } from "../auth-resolve-VKsM_uqo.js";
import "../auth-D8Jz_UDB.js";
import { Gi as errorShape, Wi as ErrorCodes } from "../src-Be_xtoAf.js";
import { n as GatewayClient } from "../client-jMpex_6c.js";
import { t as startGatewayClientWhenEventLoopReady } from "../client-start-readiness-DfjXLEFy.js";
import { n as resolveNodeIdFromNodeList, t as resolveNodeFromNodeList } from "../node-resolve-DuNRx8VI.js";
import { t as rawDataToString } from "../ws-C3qhmaFC.js";
import { n as withOperatorApprovalsGatewayClient, t as createOperatorApprovalsGatewayClient } from "../operator-approvals-client-B_T6AX4u.js";
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "../gateway-rpc-Cy6tfEpn.js";
import { t as resolveHostedPluginSurfaceUrl } from "../hosted-plugin-surface-url-Bkk16mE3.js";
import { n as PLUGIN_NODE_CAPABILITY_PATH_PREFIX, o as mintPluginNodeCapabilityToken, r as buildPluginNodeCapabilityScopedHostUrl, s as normalizePluginNodeCapabilityScopedUrl, t as DEFAULT_PLUGIN_NODE_CAPABILITY_TTL_MS } from "../plugin-node-capability-DDRDfndK.js";
import { o as resolveNodeCommandAllowlist, r as isNodeCommandAllowed } from "../node-command-policy-DAnu-jne.js";
import { i as safeParseJson, n as respondUnavailableOnNodeInvokeError } from "../nodes.helpers-CVAgQ5jS.js";
import { t as ensureGatewayStartupAuth } from "../startup-auth-D9sD_Cee.js";
//#region src/gateway/channel-status-patches.ts
function createConnectedChannelStatusPatch(at = Date.now()) {
	return {
		connected: true,
		lastConnectedAt: at,
		lastEventAt: at
	};
}
function createTransportActivityStatusPatch(at = Date.now()) {
	return { lastTransportActivityAt: at };
}
//#endregion
export { DEFAULT_PLUGIN_NODE_CAPABILITY_TTL_MS, ErrorCodes, GatewayClient, PLUGIN_NODE_CAPABILITY_PATH_PREFIX, addGatewayClientOptions, buildPluginNodeCapabilityScopedHostUrl, callGatewayFromCli, createConnectedChannelStatusPatch, createOperatorApprovalsGatewayClient, createTransportActivityStatusPatch, ensureGatewayStartupAuth, errorShape, isLoopbackHost, isNodeCommandAllowed, mintPluginNodeCapabilityToken, normalizePluginNodeCapabilityScopedUrl, rawDataToString, resolveGatewayAuth, resolveHostedPluginSurfaceUrl, resolveNodeCommandAllowlist, resolveNodeFromNodeList, resolveNodeIdFromNodeList, respondUnavailableOnNodeInvokeError, safeParseJson, startGatewayClientWhenEventLoopReady, withOperatorApprovalsGatewayClient };
