Files
openclaw/test/helpers/gateway/android-node-capabilities-policy-source.ts
2026-06-04 20:42:26 -04:00

10 lines
482 B
TypeScript

// Android node capability policy source fixture describes gateway connection inputs.
import type { GatewayConnectionDetails } from "../../../src/gateway/call.js";
// Test helper for deciding when Android node policy config should be fetched remotely.
/** Return true when gateway details represent a remote node, not local loopback. */
export function shouldFetchRemotePolicyConfig(details: GatewayConnectionDetails): boolean {
return details.urlSource !== "local loopback";
}