( sessionId?: string, ingressUrl?: string, )
| 37 | * Get the base URL for Claude AI based on environment. |
| 38 | */ |
| 39 | export function getClaudeAiBaseUrl( |
| 40 | sessionId?: string, |
| 41 | ingressUrl?: string, |
| 42 | ): string { |
| 43 | if (isRemoteSessionLocal(sessionId, ingressUrl)) { |
| 44 | return CLAUDE_AI_LOCAL_BASE_URL |
| 45 | } |
| 46 | if (isRemoteSessionStaging(sessionId, ingressUrl)) { |
| 47 | return CLAUDE_AI_STAGING_BASE_URL |
| 48 | } |
| 49 | return CLAUDE_AI_BASE_URL |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Get the full session URL for a remote session. |
no test coverage detected