import*as Common from'../common/common.js';import*as Components from'../components/components.js';import*as Host from'../host/host.js';import*as SDK from'../sdk/sdk.js';export class JsMainImpl extends Common.ObjectWrapper.ObjectWrapper{run(){Host.userMetrics.actionTaken(Host.UserMetrics.Action.ConnectToNodeJSDirectly);SDK.Connections.initMainConnection(()=>{const target=self.SDK.targetManager.createTarget('main',ls`Main`,SDK.SDKModel.Type.Node,null);target.runtimeAgent().runIfWaitingForDebugger();},Components.TargetDetachedDialog.TargetDetachedDialog.webSocketConnectionLost);}}