import{b as f,c as o,d as h}from"./chunk-TDSR2X7X.js";import{a as l}from"./chunk-6ZRHK4ON.js";import{a as c}from"./chunk-7XQDZF73.js";import{Fa as m}from"./chunk-UZ7U322K.js";import{b as d}from"./chunk-Q6LCSRIW.js";import{Mb as e}from"./chunk-EYDNSYYE.js";import{u as r}from"./chunk-A4SBXDZB.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var t=class g extends l{async run(){let{flags:a}=await this.parse(g),{app:s}=await m({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config}),i=new h(s);return await i.start(),e(`Watching for changes in ${s.name}...`),i.onEvent(async({app:y,extensionEvents:u,startTime:w,path:x})=>{e(`\u{1F195} Event [${f(w)}ms]`),e(`  \u{1F4C2} ${x}`),u.forEach(n=>{switch(n.type){case o.Created:e(`  \u2705 Extension created - ${r.green(n.extension.handle)}`);break;case o.Deleted:e(`  \u274C Extension deleted: ${r.red(n.extension.handle)}`);break;case o.Updated:e(`  \u{1F504} Updated: ${r.yellow(n.extension.handle)}`);break}})}),setInterval(()=>{},1<<30),{app:s}}};t.summary="Watch and prints out changes to an app.";t.hidden=!0;t.flags={...d,...c};var F=t;export{F as a};
