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

Function buildSafeDevConfig

scripts/dev-safe.mjs:634–642  ·  view source on GitHub ↗
(cwd = process.cwd(), env = process.env)

Source from the content-addressed store, hash-verified

632 * @returns {SafeDevConfig} Configuration object
633 */
634export function buildSafeDevConfig(cwd = process.cwd(), env = process.env) {
635 const backendPort = parsePort(
636 env.OH_CANVAS_SAFE_BACKEND_PORT,
637 DEFAULT_BACKEND_PORT,
638 );
639 const vscodePort = parsePort(env.OH_CANVAS_SAFE_VSCODE_PORT, backendPort + 1);
640
641 return buildConfigFromPorts({ backendPort, vscodePort }, cwd, env);
642}
643
644export function getViteSessionApiKey(config, env = process.env) {
645 return (

Callers 9

buildConfigFunction · 0.90
startAgentServerFunction · 0.90
buildExtraBackendConfigFunction · 0.90
startAgentServerFunction · 0.90
dev-safe.test.tsFile · 0.90

Calls 2

buildConfigFromPortsFunction · 0.85
parsePortFunction · 0.70

Tested by

no test coverage detected