import{ObjectWrapper as o}from"../common/common.js";import{TargetDetachedDialog as e}from"../components/components.js";import{userMetrics as n,UserMetrics as t}from"../host/host.js";import{Connections as r,SDKModel as i}from"../sdk/sdk.js";class a extends o.ObjectWrapper{run(){n.actionTaken(t.Action.ConnectToNodeJSDirectly),r.initMainConnection(()=>{i.TargetManager.instance().createTarget("main",ls`Main`,i.Type.Node,null).runtimeAgent().runIfWaitingForDebugger()},e.TargetDetachedDialog.webSocketConnectionLost)}}var c=Object.freeze({__proto__:null,JsMainImpl:a});export{c as JsMain};
