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

Function getCodeWebBaseUrl

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

Source from the content-addressed store, hash-verified

38 * Get the base URL for Code Web based on environment.
39 */
40export function getCodeWebBaseUrl(
41 sessionId?: string,
42 ingressUrl?: string,
43): string {
44 const noumenaOauthWebBaseUrl = getNoumenaOauthWebBaseUrl()
45 if (noumenaOauthWebBaseUrl) {
46 return noumenaOauthWebBaseUrl
47 }
48 if (isRemoteSessionLocal(sessionId, ingressUrl)) {
49 return CODE_WEB_LOCAL_BASE_URL
50 }
51 return CODE_WEB_BASE_URL
52}
53
54/**
55 * Get the full session URL for a remote session.

Callers 9

AssistantTextMessageFunction · 0.85
_bundleWithFallbackFunction · 0.85
buildBridgeConnectUrlFunction · 0.85
getFallbackMessageFunction · 0.85
runExtraUsageFunction · 0.85
callFunction · 0.85
callFunction · 0.85
getRemoteSessionUrlFunction · 0.85
product.test.tsFile · 0.85

Calls 2

isRemoteSessionLocalFunction · 0.85

Tested by

no test coverage detected