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

Function getRemoteSessionRuntimeForRuntimeLease

src/utils/teleport.tsx:127–137  ·  view source on GitHub ↗
(
  runtimeLease: ManagedRemoteRuntimeLease,
  kind: RemoteSessionRuntime['kind'] = 'ncode_remote',
)

Source from the content-addressed store, hash-verified

125}
126
127export 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
139export function redactRemoteSessionEnvironmentVariables(
140 env: Record<string, string>,

Callers 2

teleportToRemoteFunction · 0.85
teleport.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected