MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / needsRuntimeInjection

Function needsRuntimeInjection

scripts/static-server.mjs:401–409  ·  view source on GitHub ↗
(injectionOpts)

Source from the content-addressed store, hash-verified

399}
400
401function needsRuntimeInjection(injectionOpts) {
402 return Boolean(
403 injectionOpts.sessionApiKey ||
404 injectionOpts.authRequired ||
405 injectionOpts.runtimeServicesInfo ||
406 injectionOpts.lockToCloud ||
407 (injectionOpts.basePath && injectionOpts.basePath !== "/"),
408 );
409}
410
411function looksLikeAssetRequest(urlPath) {
412 const last = urlPath.split("/").pop() ?? "";

Callers 1

handleStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected