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

Function parseLeaseExecutionTarget

src/utils/sessionIngressAuth.ts:62–74  ·  view source on GitHub ↗
(
  value: string | undefined,
)

Source from the content-addressed store, hash-verified

60}
61
62function parseLeaseExecutionTarget(
63 value: string | undefined,
64): LeaseExecutionTarget | null {
65 if (
66 !value ||
67 !SESSION_INGRESS_LEASE_EXECUTION_TARGET_VALUES.has(
68 value as LeaseExecutionTarget,
69 )
70 ) {
71 return null
72 }
73 return value as LeaseExecutionTarget
74}
75
76function parseLeaseProviderMode(
77 value: string | undefined,

Callers 1

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected