import{ObjectWrapper}from'../common/common.js';import{TargetDetachedDialog}from'../components/components.js';import{userMetrics,UserMetrics}from'../host/host.js';import{Connections,SDKModel}from'../sdk/sdk.js';class JsMainImpl extends ObjectWrapper.ObjectWrapper{run(){userMetrics.actionTaken(UserMetrics.Action.ConnectToNodeJSDirectly);Connections.initMainConnection(()=>{const target=SDKModel.TargetManager.instance().createTarget('main',ls`Main`,SDKModel.Type.Node,null);target.runtimeAgent().runIfWaitingForDebugger();},TargetDetachedDialog.TargetDetachedDialog.webSocketConnectionLost);}}
var JsMain=Object.freeze({__proto__:null,JsMainImpl:JsMainImpl});export{JsMain};