( runtimeLease: ManagedRemoteRuntimeLease, kind: RemoteSessionRuntime['kind'] = 'ncode_remote', )
| 125 | } |
| 126 | |
| 127 | export function getRemoteSessionRuntimeForRuntimeLease( |
| 128 | runtimeLease: ManagedRemoteRuntimeLease, |
| 129 | kind: RemoteSessionRuntime['kind'] = 'ncode_remote', |
| 130 | ): RemoteSessionRuntime { |
| 131 | return { |
| 132 | kind, |
| 133 | provider_mode: runtimeLease.lease.providerMode, |
| 134 | token_transport: |
| 135 | runtimeLease.lease.metadata.tokenTransport ?? 'legacy_oauth_env', |
| 136 | }; |
| 137 | } |
| 138 | |
| 139 | export function redactRemoteSessionEnvironmentVariables( |
| 140 | env: Record<string, string>, |
no outgoing calls
no test coverage detected