MCPcopy Create free account
hub / github.com/Noumena-Network/code / isRemoteSessionLocal

Function isRemoteSessionLocal

src/constants/product.ts:27–35  ·  view source on GitHub ↗
(
  sessionId?: string,
  ingressUrl?: string,
)

Source from the content-addressed store, hash-verified

25 * Checks session ID format (e.g. `session_local_...`) and ingress URL.
26 */
27export function isRemoteSessionLocal(
28 sessionId?: string,
29 ingressUrl?: string,
30): boolean {
31 return (
32 sessionId?.includes('_local_') === true ||
33 ingressUrl?.includes('localhost') === true
34 )
35}
36
37/**
38 * Get the base URL for Code Web based on environment.

Callers 3

getAttributionTextsFunction · 0.85
getEnhancedPRAttributionFunction · 0.85
getCodeWebBaseUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected