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

Function needsRuntimeInjection

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected