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

Function resolveExtensionsDir

scripts/dev-safe.mjs:715–725  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

713 * @returns {string | null}
714 */
715export function resolveExtensionsDir() {
716 try {
717 return path.dirname(
718 createRequire(import.meta.url).resolve(
719 "@openhands/extensions/package.json",
720 ),
721 );
722 } catch {
723 return null;
724 }
725}
726
727/**
728 * Internal helper to build config from already-resolved ports.

Callers 2

dev-safe.test.tsFile · 0.90
buildConfigFromPortsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected