@capgo/cli 8.23.4 → 8.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +681 -663
- package/dist/package.json +12 -3
- package/dist/src/build/onboarding/appflow/api.d.ts +59 -0
- package/dist/src/build/onboarding/appflow/auth.d.ts +19 -0
- package/dist/src/build/onboarding/appflow/deps.d.ts +43 -0
- package/dist/src/build/onboarding/appflow/flow.d.ts +94 -0
- package/dist/src/build/onboarding/appflow/tail.d.ts +44 -0
- package/dist/src/build/onboarding/appflow/types.d.ts +50 -0
- package/dist/src/build/onboarding/flow/appflow-flow.d.ts +2 -0
- package/dist/src/build/onboarding/ios/validate-app-password.d.ts +8 -0
- package/dist/src/build/onboarding/mcp/engine.d.ts +14 -0
- package/dist/src/build/onboarding/mcp/session-state.d.ts +28 -0
- package/dist/src/build/onboarding/types.d.ts +1 -1
- package/dist/src/build/onboarding/ui/appflow-app.d.ts +17 -0
- package/dist/src/build/onboarding/ui/platform-picker.d.ts +49 -2
- package/dist/src/build/onboarding/ui/update-prompt.d.ts +3 -1
- package/dist/src/sdk.js +1 -1
- package/package.json +12 -3
package/dist/src/sdk.js
CHANGED
|
@@ -123,7 +123,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
123
123
|
`)}),D.__defineSetter__("stack",function(X){return[X].concat(D.stack).join(`
|
|
124
124
|
|
|
125
125
|
`)}),D}});var fg=A((SH$,ug)=>{var O9=a("constants"),Kj0=process.cwd,Gq=null,Nj0=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!Gq)Gq=Kj0.call(process);return Gq};try{process.cwd()}catch($){}if(typeof process.chdir==="function"){if(qq=process.chdir,process.chdir=function($){Gq=null,qq.call(process,$)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,qq)}var qq;ug.exports=Mj0;function Mj0($){if(O9.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))D($);if(!$.lutimes)X($);if($.chown=Y($.chown),$.fchown=Y($.fchown),$.lchown=Y($.lchown),$.chmod=J($.chmod),$.fchmod=J($.fchmod),$.lchmod=J($.lchmod),$.chownSync=Z($.chownSync),$.fchownSync=Z($.fchownSync),$.lchownSync=Z($.lchownSync),$.chmodSync=Q($.chmodSync),$.fchmodSync=Q($.fchmodSync),$.lchmodSync=Q($.lchmodSync),$.stat=F($.stat),$.fstat=F($.fstat),$.lstat=F($.lstat),$.statSync=U($.statSync),$.fstatSync=U($.fstatSync),$.lstatSync=U($.lstatSync),$.chmod&&!$.lchmod)$.lchmod=function(q,W,H){if(H)process.nextTick(H)},$.lchmodSync=function(){};if($.chown&&!$.lchown)$.lchown=function(q,W,H,z){if(z)process.nextTick(z)},$.lchownSync=function(){};if(Nj0==="win32")$.rename=typeof $.rename!=="function"?$.rename:function(q){function W(H,z,O){var V=Date.now(),N=0;q(H,z,function L(E){if(E&&(E.code==="EACCES"||E.code==="EPERM"||E.code==="EBUSY")&&Date.now()-V<60000){if(setTimeout(function(){$.stat(z,function(K,M){if(K&&K.code==="ENOENT")q(H,z,L);else O(E)})},N),N<100)N+=10;return}if(O)O(E)})}if(Object.setPrototypeOf)Object.setPrototypeOf(W,q);return W}($.rename);$.read=typeof $.read!=="function"?$.read:function(q){function W(H,z,O,V,N,L){var E;if(L&&typeof L==="function"){var K=0;E=function(M,w,R){if(M&&M.code==="EAGAIN"&&K<10)return K++,q.call($,H,z,O,V,N,E);L.apply(this,arguments)}}return q.call($,H,z,O,V,N,E)}if(Object.setPrototypeOf)Object.setPrototypeOf(W,q);return W}($.read),$.readSync=typeof $.readSync!=="function"?$.readSync:function(q){return function(W,H,z,O,V){var N=0;while(!0)try{return q.call($,W,H,z,O,V)}catch(L){if(L.code==="EAGAIN"&&N<10){N++;continue}throw L}}}($.readSync);function D(q){q.lchmod=function(W,H,z){q.open(W,O9.O_WRONLY|O9.O_SYMLINK,H,function(O,V){if(O){if(z)z(O);return}q.fchmod(V,H,function(N){q.close(V,function(L){if(z)z(N||L)})})})},q.lchmodSync=function(W,H){var z=q.openSync(W,O9.O_WRONLY|O9.O_SYMLINK,H),O=!0,V;try{V=q.fchmodSync(z,H),O=!1}finally{if(O)try{q.closeSync(z)}catch(N){}else q.closeSync(z)}return V}}function X(q){if(O9.hasOwnProperty("O_SYMLINK")&&q.futimes)q.lutimes=function(W,H,z,O){q.open(W,O9.O_SYMLINK,function(V,N){if(V){if(O)O(V);return}q.futimes(N,H,z,function(L){q.close(N,function(E){if(O)O(L||E)})})})},q.lutimesSync=function(W,H,z){var O=q.openSync(W,O9.O_SYMLINK),V,N=!0;try{V=q.futimesSync(O,H,z),N=!1}finally{if(N)try{q.closeSync(O)}catch(L){}else q.closeSync(O)}return V};else if(q.futimes)q.lutimes=function(W,H,z,O){if(O)process.nextTick(O)},q.lutimesSync=function(){}}function J(q){if(!q)return q;return function(W,H,z){return q.call($,W,H,function(O){if(G(O))O=null;if(z)z.apply(this,arguments)})}}function Q(q){if(!q)return q;return function(W,H){try{return q.call($,W,H)}catch(z){if(!G(z))throw z}}}function Y(q){if(!q)return q;return function(W,H,z,O){return q.call($,W,H,z,function(V){if(G(V))V=null;if(O)O.apply(this,arguments)})}}function Z(q){if(!q)return q;return function(W,H,z){try{return q.call($,W,H,z)}catch(O){if(!G(O))throw O}}}function F(q){if(!q)return q;return function(W,H,z){if(typeof H==="function")z=H,H=null;function O(V,N){if(N){if(N.uid<0)N.uid+=4294967296;if(N.gid<0)N.gid+=4294967296}if(z)z.apply(this,arguments)}return H?q.call($,W,H,O):q.call($,W,O)}}function U(q){if(!q)return q;return function(W,H){var z=H?q.call($,W,H):q.call($,W);if(z){if(z.uid<0)z.uid+=4294967296;if(z.gid<0)z.gid+=4294967296}return z}}function G(q){if(!q)return!0;if(q.code==="ENOSYS")return!0;var W=!process.getuid||process.getuid()!==0;if(W){if(q.code==="EINVAL"||q.code==="EPERM")return!0}return!1}}});var bg=A((xH$,hg)=>{var yg=a("stream").Stream;hg.exports=wj0;function wj0($){return{ReadStream:D,WriteStream:X};function D(J,Q){if(!(this instanceof D))return new D(J,Q);yg.call(this);var Y=this;this.path=J,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,Q=Q||{};var Z=Object.keys(Q);for(var F=0,U=Z.length;F<U;F++){var G=Z[F];this[G]=Q[G]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){Y._read()});return}$.open(this.path,this.flags,this.mode,function(q,W){if(q){Y.emit("error",q),Y.readable=!1;return}Y.fd=W,Y.emit("open",W),Y._read()})}function X(J,Q){if(!(this instanceof X))return new X(J,Q);yg.call(this),this.path=J,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,Q=Q||{};var Y=Object.keys(Q);for(var Z=0,F=Y.length;Z<F;Z++){var U=Y[Z];this[U]=Q[U]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=$.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var mg=A((vH$,gg)=>{gg.exports=Bj0;var Lj0=Object.getPrototypeOf||function($){return $.__proto__};function Bj0($){if($===null||typeof $!=="object")return $;if($ instanceof Object)var D={__proto__:Lj0($)};else var D=Object.create(null);return Object.getOwnPropertyNames($).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor($,X))}),D}});var C1=A((_H$,Zw)=>{var L1=a("fs"),Ej0=fg(),Rj0=bg(),Aj0=mg(),Wq=a("util"),QD,zq;if(typeof Symbol==="function"&&typeof Symbol.for==="function")QD=Symbol.for("graceful-fs.queue"),zq=Symbol.for("graceful-fs.previous");else QD="___graceful-fs.queue",zq="___graceful-fs.previous";function Ij0(){}function cg($,D){Object.defineProperty($,QD,{get:function(){return D}})}var iX=Ij0;if(Wq.debuglog)iX=Wq.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))iX=function(){var $=Wq.format.apply(Wq,arguments);$="GFS4: "+$.split(/\n/).join(`
|
|
126
|
-
GFS4: `),console.error($)};if(!L1[QD]){if(Jw=global[QD]||[],cg(L1,Jw),L1.close=function($){function D(X,J){return $.call(L1,X,function(Q){if(!Q)dg();if(typeof J==="function")J.apply(this,arguments)})}return Object.defineProperty(D,zq,{value:$}),D}(L1.close),L1.closeSync=function($){function D(X){$.apply(L1,arguments),dg()}return Object.defineProperty(D,zq,{value:$}),D}(L1.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){iX(L1[QD]),a("assert").equal(L1[QD].length,0)})}var Jw;if(!global[QD])cg(global,L1[QD]);Zw.exports=Qw(Aj0(L1));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!L1.__patched)Zw.exports=Qw(L1),L1.__patched=!0;function Qw($){Ej0($),$.gracefulify=Qw,$.createReadStream=w,$.createWriteStream=R;var D=$.readFile;$.readFile=X;function X(I,f,S){if(typeof f==="function")S=f,f=null;return n(I,f,S);function n(m,e,h,j){return D(m,e,function(C){if(C&&(C.code==="EMFILE"||C.code==="ENFILE"))tJ([n,[m,e,h],C,j||Date.now(),Date.now()]);else if(typeof h==="function")h.apply(this,arguments)})}}var J=$.writeFile;$.writeFile=Q;function Q(I,f,S,n){if(typeof S==="function")n=S,S=null;return m(I,f,S,n);function m(e,h,j,C,v){return J(e,h,j,function(c){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))tJ([m,[e,h,j,C],c,v||Date.now(),Date.now()]);else if(typeof C==="function")C.apply(this,arguments)})}}var Y=$.appendFile;if(Y)$.appendFile=Z;function Z(I,f,S,n){if(typeof S==="function")n=S,S=null;return m(I,f,S,n);function m(e,h,j,C,v){return Y(e,h,j,function(c){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))tJ([m,[e,h,j,C],c,v||Date.now(),Date.now()]);else if(typeof C==="function")C.apply(this,arguments)})}}var F=$.copyFile;if(F)$.copyFile=U;function U(I,f,S,n){if(typeof S==="function")n=S,S=0;return m(I,f,S,n);function m(e,h,j,C,v){return F(e,h,j,function(c){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))tJ([m,[e,h,j,C],c,v||Date.now(),Date.now()]);else if(typeof C==="function")C.apply(this,arguments)})}}var G=$.readdir;$.readdir=W;var q=/^v[0-5]\./;function W(I,f,S){if(typeof f==="function")S=f,f=null;var n=q.test(process.version)?function(h,j,C,v){return G(h,m(h,j,C,v))}:function(h,j,C,v){return G(h,j,m(h,j,C,v))};return n(I,f,S);function m(e,h,j,C){return function(v,c){if(v&&(v.code==="EMFILE"||v.code==="ENFILE"))tJ([n,[e,h,j],v,C||Date.now(),Date.now()]);else{if(c&&c.sort)c.sort();if(typeof j==="function")j.call(this,v,c)}}}}if(process.version.substr(0,4)==="v0.8"){var H=Rj0($);L=H.ReadStream,K=H.WriteStream}var z=$.ReadStream;if(z)L.prototype=Object.create(z.prototype),L.prototype.open=E;var O=$.WriteStream;if(O)K.prototype=Object.create(O.prototype),K.prototype.open=M;Object.defineProperty($,"ReadStream",{get:function(){return L},set:function(I){L=I},enumerable:!0,configurable:!0}),Object.defineProperty($,"WriteStream",{get:function(){return K},set:function(I){K=I},enumerable:!0,configurable:!0});var V=L;Object.defineProperty($,"FileReadStream",{get:function(){return V},set:function(I){V=I},enumerable:!0,configurable:!0});var N=K;Object.defineProperty($,"FileWriteStream",{get:function(){return N},set:function(I){N=I},enumerable:!0,configurable:!0});function L(I,f){if(this instanceof L)return z.apply(this,arguments),this;else return L.apply(Object.create(L.prototype),arguments)}function E(){var I=this;k(I.path,I.flags,I.mode,function(f,S){if(f){if(I.autoClose)I.destroy();I.emit("error",f)}else I.fd=S,I.emit("open",S),I.read()})}function K(I,f){if(this instanceof K)return O.apply(this,arguments),this;else return K.apply(Object.create(K.prototype),arguments)}function M(){var I=this;k(I.path,I.flags,I.mode,function(f,S){if(f)I.destroy(),I.emit("error",f);else I.fd=S,I.emit("open",S)})}function w(I,f){return new $.ReadStream(I,f)}function R(I,f){return new $.WriteStream(I,f)}var x=$.open;$.open=k;function k(I,f,S,n){if(typeof S==="function")n=S,S=null;return m(I,f,S,n);function m(e,h,j,C,v){return x(e,h,j,function(c,i){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))tJ([m,[e,h,j,C],c,v||Date.now(),Date.now()]);else if(typeof C==="function")C.apply(this,arguments)})}}return $}function tJ($){iX("ENQUEUE",$[0].name,$[1]),L1[QD].push($),Yw()}var Hq;function dg(){var $=Date.now();for(var D=0;D<L1[QD].length;++D)if(L1[QD][D].length>2)L1[QD][D][3]=$,L1[QD][D][4]=$;Yw()}function Yw(){if(clearTimeout(Hq),Hq=void 0,L1[QD].length===0)return;var $=L1[QD].shift(),D=$[0],X=$[1],J=$[2],Q=$[3],Y=$[4];if(Q===void 0)iX("RETRY",D.name,X),D.apply(null,X);else if(Date.now()-Q>=60000){iX("TIMEOUT",D.name,X);var Z=X.pop();if(typeof Z==="function")Z.call(null,J)}else{var F=Date.now()-Y,U=Math.max(Y-Q,1),G=Math.min(U*1.2,100);if(F>=G)iX("RETRY",D.name,X),D.apply(null,X.concat([Q]));else L1[QD].push($)}if(Hq===void 0)Hq=setTimeout(Yw,0)}});var ng=A((kH$,lg)=>{function v6($,D){if(typeof D==="boolean")D={forever:D};if(this._originalTimeouts=JSON.parse(JSON.stringify($)),this._timeouts=$,this._options=D||{},this._maxRetryTime=D&&D.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}lg.exports=v6;v6.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};v6.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};v6.prototype.retry=function($){if(this._timeout)clearTimeout(this._timeout);if(!$)return!1;var D=new Date().getTime();if($&&D-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push($);var X=this._timeouts.shift();if(X===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),X=this._timeouts.shift();else return!1;var J=this,Q=setTimeout(function(){if(J._attempts++,J._operationTimeoutCb){if(J._timeout=setTimeout(function(){J._operationTimeoutCb(J._attempts)},J._operationTimeout),J._options.unref)J._timeout.unref()}J._fn(J._attempts)},X);if(this._options.unref)Q.unref();return!0};v6.prototype.attempt=function($,D){if(this._fn=$,D){if(D.timeout)this._operationTimeout=D.timeout;if(D.cb)this._operationTimeoutCb=D.cb}var X=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){X._operationTimeoutCb()},X._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};v6.prototype.try=function($){console.log("Using RetryOperation.try() is deprecated"),this.attempt($)};v6.prototype.start=function($){console.log("Using RetryOperation.start() is deprecated"),this.attempt($)};v6.prototype.start=v6.prototype.try;v6.prototype.errors=function(){return this._errors};v6.prototype.attempts=function(){return this._attempts};v6.prototype.mainError=function(){if(this._errors.length===0)return null;var $={},D=null,X=0;for(var J=0;J<this._errors.length;J++){var Q=this._errors[J],Y=Q.message,Z=($[Y]||0)+1;if($[Y]=Z,Z>=X)D=Q,X=Z}return D}});var pg=A((Cj0)=>{var jj0=ng();Cj0.operation=function($){var D=Cj0.timeouts($);return new jj0(D,{forever:$&&$.forever,unref:$&&$.unref,maxRetryTime:$&&$.maxRetryTime})};Cj0.timeouts=function($){if($ instanceof Array)return[].concat($);var D={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var X in $)D[X]=$[X];if(D.minTimeout>D.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var J=[];for(var Q=0;Q<D.retries;Q++)J.push(this.createTimeout(Q,D));if($&&$.forever&&!J.length)J.push(this.createTimeout(Q,D));return J.sort(function(Y,Z){return Y-Z}),J};Cj0.createTimeout=function($,D){var X=D.randomize?Math.random()+1:1,J=Math.round(X*D.minTimeout*Math.pow(D.factor,$));return J=Math.min(J,D.maxTimeout),J};Cj0.wrap=function($,D,X){if(D instanceof Array)X=D,D=null;if(!X){X=[];for(var J in $)if(typeof $[J]==="function")X.push(J)}for(var Q=0;Q<X.length;Q++){var Y=X[Q],Z=$[Y];$[Y]=function(U){var G=Cj0.operation(D),q=Array.prototype.slice.call(arguments,1),W=q.pop();q.push(function(H){if(G.retry(H))return;if(H)arguments[0]=G.mainError();W.apply(this,arguments)}),G.attempt(function(){U.apply($,q)})}.bind($,Z),$[Y].options=D}}});var rg=A((fH$,Oq)=>{Oq.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")Oq.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")Oq.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Nq=A((yH$,sJ)=>{var O1=global.process,pX=function($){return $&&typeof $==="object"&&typeof $.removeListener==="function"&&typeof $.emit==="function"&&typeof $.reallyExit==="function"&&typeof $.listeners==="function"&&typeof $.kill==="function"&&typeof $.pid==="number"&&typeof $.on==="function"};if(!pX(O1))sJ.exports=function(){return function(){}};else{if(Fw=a("assert"),rX=rg(),Uw=/^win/i.test(O1.platform),aJ=a("events"),typeof aJ!=="function")aJ=aJ.EventEmitter;if(O1.__signal_exit_emitter__)l1=O1.__signal_exit_emitter__;else l1=O1.__signal_exit_emitter__=new aJ,l1.count=0,l1.emitted={};if(!l1.infinite)l1.setMaxListeners(1/0),l1.infinite=!0;sJ.exports=function($,D){if(!pX(global.process))return function(){};if(Fw.equal(typeof $,"function","a callback must be provided for exit handler"),oX===!1)Vq();var X="exit";if(D&&D.alwaysLast)X="afterexit";var J=function(){if(l1.removeListener(X,$),l1.listeners("exit").length===0&&l1.listeners("afterexit").length===0)RZ()};return l1.on(X,$),J},RZ=function(){if(!oX||!pX(global.process))return;oX=!1,rX.forEach(function(D){try{O1.removeListener(D,AZ[D])}catch(X){}}),O1.emit=IZ,O1.reallyExit=Kq,l1.count-=1},sJ.exports.unload=RZ,V9=function(D,X,J){if(l1.emitted[D])return;l1.emitted[D]=!0,l1.emit(D,X,J)},AZ={},rX.forEach(function($){AZ[$]=function(){if(!pX(global.process))return;var X=O1.listeners($);if(X.length===l1.count){if(RZ(),V9("exit",null,$),V9("afterexit",null,$),Uw&&$==="SIGHUP")$="SIGINT";O1.kill(O1.pid,$)}}}),sJ.exports.signals=function(){return rX},oX=!1,Vq=function(){if(oX||!pX(global.process))return;oX=!0,l1.count+=1,rX=rX.filter(function(D){try{return O1.on(D,AZ[D]),!0}catch(X){return!1}}),O1.emit=qw,O1.reallyExit=Gw},sJ.exports.load=Vq,Kq=O1.reallyExit,Gw=function(D){if(!pX(global.process))return;O1.exitCode=D||0,V9("exit",O1.exitCode,null),V9("afterexit",O1.exitCode,null),Kq.call(O1,O1.exitCode)},IZ=O1.emit,qw=function(D,X){if(D==="exit"&&pX(global.process)){if(X!==void 0)O1.exitCode=X;var J=IZ.apply(this,arguments);return V9("exit",O1.exitCode,null),V9("afterexit",O1.exitCode,null),J}else return IZ.apply(this,arguments)}}var Fw,rX,Uw,aJ,l1,RZ,V9,AZ,oX,Vq,Kq,Gw,IZ,qw});var tg=A((_j0,Ww)=>{var og=Symbol();function xj0($,D,X){let J=D[og];if(J)return D.stat($,(Y,Z)=>{if(Y)return X(Y);X(null,Z.mtime,J)});let Q=new Date(Math.ceil(Date.now()/1000)*1000+5);D.utimes($,Q,Q,(Y)=>{if(Y)return X(Y);D.stat($,(Z,F)=>{if(Z)return X(Z);let U=F.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty(D,og,{value:U}),X(null,F.mtime,U)})})}function vj0($){let D=Date.now();if($==="s")D=Math.ceil(D/1000)*1000;return new Date(D)}_j0.probe=xj0;_j0.getMtime=vj0});var Dm=A((dj0,CZ)=>{var fj0=a("path"),Ow=C1(),yj0=pg(),hj0=Nq(),ag=tg(),P8={};function jZ($,D){return D.lockfilePath||`${$}.lock`}function Vw($,D,X){if(!D.realpath)return X(null,fj0.resolve($));D.fs.realpath($,X)}function zw($,D,X){let J=jZ($,D);D.fs.mkdir(J,(Q)=>{if(!Q)return ag.probe(J,D.fs,(Y,Z,F)=>{if(Y)return D.fs.rmdir(J,()=>{}),X(Y);X(null,Z,F)});if(Q.code!=="EEXIST")return X(Q);if(D.stale<=0)return X(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:$}));D.fs.stat(J,(Y,Z)=>{if(Y){if(Y.code==="ENOENT")return zw($,{...D,stale:0},X);return X(Y)}if(!sg(Z,D))return X(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:$}));eg($,D,(F)=>{if(F)return X(F);zw($,{...D,stale:0},X)})})})}function sg($,D){return $.mtime.getTime()<Date.now()-D.stale}function eg($,D,X){D.fs.rmdir(jZ($,D),(J)=>{if(J&&J.code!=="ENOENT")return X(J);X()})}function Mq($,D){let X=P8[$];if(X.updateTimeout)return;if(X.updateDelay=X.updateDelay||D.update,X.updateTimeout=setTimeout(()=>{X.updateTimeout=null,D.fs.stat(X.lockfilePath,(J,Q)=>{let Y=X.lastUpdate+D.stale<Date.now();if(J){if(J.code==="ENOENT"||Y)return Hw($,X,Object.assign(J,{code:"ECOMPROMISED"}));return X.updateDelay=1000,Mq($,D)}if(X.mtime.getTime()!==Q.mtime.getTime())return Hw($,X,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let F=ag.getMtime(X.mtimePrecision);D.fs.utimes(X.lockfilePath,F,F,(U)=>{let G=X.lastUpdate+D.stale<Date.now();if(X.released)return;if(U){if(U.code==="ENOENT"||G)return Hw($,X,Object.assign(U,{code:"ECOMPROMISED"}));return X.updateDelay=1000,Mq($,D)}X.mtime=F,X.lastUpdate=Date.now(),X.updateDelay=null,Mq($,D)})})},X.updateDelay),X.updateTimeout.unref)X.updateTimeout.unref()}function Hw($,D,X){if(D.released=!0,D.updateTimeout)clearTimeout(D.updateTimeout);if(P8[$]===D)delete P8[$];D.options.onCompromised(X)}function bj0($,D,X){D={stale:1e4,update:null,realpath:!0,retries:0,fs:Ow,onCompromised:(J)=>{throw J},...D},D.retries=D.retries||0,D.retries=typeof D.retries==="number"?{retries:D.retries}:D.retries,D.stale=Math.max(D.stale||0,2000),D.update=D.update==null?D.stale/2:D.update||0,D.update=Math.max(Math.min(D.update,D.stale/2),1000),Vw($,D,(J,Q)=>{if(J)return X(J);let Y=yj0.operation(D.retries);Y.attempt(()=>{zw(Q,D,(Z,F,U)=>{if(Y.retry(Z))return;if(Z)return X(Y.mainError());let G=P8[Q]={lockfilePath:jZ(Q,D),mtime:F,mtimePrecision:U,options:D,lastUpdate:Date.now()};Mq(Q,D),X(null,(q)=>{if(G.released)return q&&q(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));$m(Q,{...D,realpath:!1},q)})})})})}function $m($,D,X){D={fs:Ow,realpath:!0,...D},Vw($,D,(J,Q)=>{if(J)return X(J);let Y=P8[Q];if(!Y)return X(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));Y.updateTimeout&&clearTimeout(Y.updateTimeout),Y.released=!0,delete P8[Q],eg(Q,D,X)})}function gj0($,D,X){D={stale:1e4,realpath:!0,fs:Ow,...D},D.stale=Math.max(D.stale||0,2000),Vw($,D,(J,Q)=>{if(J)return X(J);D.fs.stat(jZ(Q,D),(Y,Z)=>{if(Y)return Y.code==="ENOENT"?X(null,!1):X(Y);return X(null,!sg(Z,D))})})}function mj0(){return P8}hj0(()=>{for(let $ in P8){let D=P8[$].options;try{D.fs.rmdirSync(jZ($,D))}catch(X){}}});dj0.lock=bj0;dj0.unlock=$m;dj0.check=gj0;dj0.getLocks=mj0});var Jm=A((hH$,Xm)=>{var pj0=C1();function rj0($){let D=["mkdir","realpath","stat","rmdir","utimes"],X={...$};return D.forEach((J)=>{X[J]=(...Q)=>{let Y=Q.pop(),Z;try{Z=$[`${J}Sync`](...Q)}catch(F){return Y(F)}Y(null,Z)}}),X}function oj0($){return(...D)=>new Promise((X,J)=>{D.push((Q,Y)=>{if(Q)J(Q);else X(Y)}),$(...D)})}function tj0($){return(...D)=>{let X,J;if(D.push((Q,Y)=>{X=Q,J=Y}),$(...D),X)throw X;return J}}function aj0($){if($={...$},$.fs=rj0($.fs||pj0),typeof $.retries==="number"&&$.retries>0||$.retries&&typeof $.retries.retries==="number"&&$.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return $}Xm.exports={toPromise:oj0,toSync:tj0,toSyncOptions:aj0}});var Ym=A((bH$,K9)=>{var eJ=Dm(),{toPromise:wq,toSync:Lq,toSyncOptions:Kw}=Jm();async function Qm($,D){let X=await wq(eJ.lock)($,D);return wq(X)}function sj0($,D){let X=Lq(eJ.lock)($,Kw(D));return Lq(X)}function ej0($,D){return wq(eJ.unlock)($,D)}function $C0($,D){return Lq(eJ.unlock)($,Kw(D))}function DC0($,D){return wq(eJ.check)($,D)}function XC0($,D){return Lq(eJ.check)($,Kw(D))}K9.exports=Qm;K9.exports.lock=Qm;K9.exports.unlock=ej0;K9.exports.lockSync=sj0;K9.exports.unlockSync=$C0;K9.exports.check=DC0;K9.exports.checkSync=XC0});var Hm=A((qm)=>{Object.defineProperty(qm,"__esModule",{value:!0});qm.canStoreURLs=qm.FileUrlStorage=void 0;var Zm=a("fs"),JC0=YC0(kg()),Fm=QC0(Ym());function Gm($){if(typeof WeakMap!="function")return null;var D=new WeakMap,X=new WeakMap;return(Gm=function(J){return J?X:D})($)}function QC0($,D){if(!D&&$&&$.__esModule)return $;if($===null||typeof $!="object"&&typeof $!="function")return{default:$};var X=Gm(D);if(X&&X.has($))return X.get($);var J={__proto__:null},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in $)if(Y!=="default"&&{}.hasOwnProperty.call($,Y)){var Z=Q?Object.getOwnPropertyDescriptor($,Y):null;Z&&(Z.get||Z.set)?Object.defineProperty(J,Y,Z):J[Y]=$[Y]}return J.default=$,X&&X.set($,J),J}function YC0($){return $&&$.__esModule?$:{default:$}}function TZ($){return TZ=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},TZ($)}function ZC0($,D){if(!($ instanceof D))throw TypeError("Cannot call a class as a function")}function Um($,D){for(var X=0;X<D.length;X++){var J=D[X];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty($,UC0(J.key),J)}}function FC0($,D,X){if(D)Um($.prototype,D);if(X)Um($,X);return Object.defineProperty($,"prototype",{writable:!1}),$}function UC0($){var D=GC0($,"string");return TZ(D)=="symbol"?D:D+""}function GC0($,D){if(TZ($)!="object"||!$)return $;var X=$[Symbol.toPrimitive];if(X!==void 0){var J=X.call($,D||"default");if(TZ(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)($)}var gH$=qm.canStoreURLs=!0,mH$=qm.FileUrlStorage=function(){function $(D){ZC0(this,$),this.path=D}return FC0($,[{key:"findAllUploads",value:function(){var X=this;return new Promise(function(J,Q){X._getItems("tus::",function(Y,Z){if(Y)Q(Y);else J(Z)})})}},{key:"findUploadsByFingerprint",value:function(X){var J=this;return new Promise(function(Q,Y){J._getItems("tus::".concat(X),function(Z,F){if(Z)Y(Z);else Q(F)})})}},{key:"removeUpload",value:function(X){var J=this;return new Promise(function(Q,Y){J._removeItem(X,function(Z){if(Z)Y(Z);else Q()})})}},{key:"addUpload",value:function(X,J){var Q=this,Y=Math.round(Math.random()*1000000000000),Z="tus::".concat(X,"::").concat(Y);return new Promise(function(F,U){Q._setItem(Z,J,function(G){if(G)U(G);else F(Z)})})}},{key:"_setItem",value:function(X,J,Q){var Y=this;Fm.lock(this.path,this._lockfileOptions()).then(function(Z){Q=Y._releaseAndCb(Z,Q),Y._getData(function(F,U){if(F){Q(F);return}U[X]=J,Y._writeData(U,function(G){return Q(G)})})}).catch(Q)}},{key:"_getItems",value:function(X,J){this._getData(function(Q,Y){if(Q){J(Q);return}var Z=Object.keys(Y).filter(function(F){return F.startsWith(X)}).map(function(F){var U=Y[F];return U.urlStorageKey=F,U});J(null,Z)})}},{key:"_removeItem",value:function(X,J){var Q=this;Fm.lock(this.path,this._lockfileOptions()).then(function(Y){J=Q._releaseAndCb(Y,J),Q._getData(function(Z,F){if(Z){J(Z);return}delete F[X],Q._writeData(F,function(U){return J(U)})})}).catch(J)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(X,J){return function(Q){if(Q){X().then(function(){return J(Q)}).catch(function(Y){return J((0,JC0.default)([Q,Y]))});return}X().then(J).catch(J)}}},{key:"_writeData",value:function(X,J){var Q={encoding:"utf8",mode:432,flag:"w"};(0,Zm.writeFile)(this.path,JSON.stringify(X),Q,function(Y){return J(Y)})}},{key:"_getData",value:function(X){(0,Zm.readFile)(this.path,"utf8",function(J,Q){if(J){if(J.code==="ENOENT")X(null,{});else X(J);return}try{Q=!Q.trim().length?{}:JSON.parse(Q)}catch(Y){X(Y);return}X(null,Q)})}}])}()});var Eq=A((N9)=>{Object.defineProperty(N9,"__esModule",{value:!0});Object.defineProperty(N9,"DefaultHttpStack",{enumerable:!0,get:function(){return Km.default}});Object.defineProperty(N9,"DetailedError",{enumerable:!0,get:function(){return WC0.default}});Object.defineProperty(N9,"FileUrlStorage",{enumerable:!0,get:function(){return Nm.FileUrlStorage}});Object.defineProperty(N9,"StreamSource",{enumerable:!0,get:function(){return KC0.default}});N9.Upload=void 0;Object.defineProperty(N9,"canStoreURLs",{enumerable:!0,get:function(){return Nm.canStoreURLs}});N9.defaultOptions=void 0;Object.defineProperty(N9,"enableDebugLog",{enumerable:!0,get:function(){return HC0.enableDebugLog}});N9.isSupported=void 0;var WC0=tX(KM()),HC0=NM(),zC0=tX(Yh()),Nw=tX(hh()),OC0=tX(Qb()),VC0=tX(Gb()),Km=tX(Ib()),KC0=tX(TM()),Nm=Hm();function tX($){return $&&$.__esModule?$:{default:$}}function D5($){return D5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},D5($)}function NC0($,D){if(!($ instanceof D))throw TypeError("Cannot call a class as a function")}function zm($,D){for(var X=0;X<D.length;X++){var J=D[X];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty($,wm(J.key),J)}}function MC0($,D,X){if(D)zm($.prototype,D);if(X)zm($,X);return Object.defineProperty($,"prototype",{writable:!1}),$}function wC0($,D,X){return D=Bq(D),LC0($,Mm()?Reflect.construct(D,X||[],Bq($).constructor):D.apply($,X))}function LC0($,D){if(D&&(D5(D)==="object"||typeof D==="function"))return D;else if(D!==void 0)throw TypeError("Derived constructors may only return object or undefined");return BC0($)}function BC0($){if($===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function Mm(){try{var $=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(D){}return(Mm=function(){return!!$})()}function Bq($){return Bq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},Bq($)}function EC0($,D){if(typeof D!=="function"&&D!==null)throw TypeError("Super expression must either be null or a function");if($.prototype=Object.create(D&&D.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),D)Mw($,D)}function Mw($,D){return Mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(J,Q){return J.__proto__=Q,J},Mw($,D)}function Om($,D){var X=Object.keys($);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols($);D&&(J=J.filter(function(Q){return Object.getOwnPropertyDescriptor($,Q).enumerable})),X.push.apply(X,J)}return X}function $5($){for(var D=1;D<arguments.length;D++){var X=arguments[D]!=null?arguments[D]:{};D%2?Om(Object(X),!0).forEach(function(J){RC0($,J,X[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(X)):Om(Object(X)).forEach(function(J){Object.defineProperty($,J,Object.getOwnPropertyDescriptor(X,J))})}return $}function RC0($,D,X){if(D=wm(D),D in $)Object.defineProperty($,D,{value:X,enumerable:!0,configurable:!0,writable:!0});else $[D]=X;return $}function wm($){var D=AC0($,"string");return D5(D)=="symbol"?D:D+""}function AC0($,D){if(D5($)!="object"||!$)return $;var X=$[Symbol.toPrimitive];if(X!==void 0){var J=X.call($,D||"default");if(D5(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)($)}var Vm=N9.defaultOptions=$5($5({},Nw.default.defaultOptions),{},{httpStack:new Km.default,fileReader:new OC0.default,urlStorage:new zC0.default,fingerprint:VC0.default}),cH$=N9.Upload=function($){function D(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return NC0(this,D),J=$5($5({},Vm),J),wC0(this,D,[X,J])}return EC0(D,$),MC0(D,null,[{key:"terminate",value:function(J){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q=$5($5({},Vm),Q),Nw.default.terminate(J,Q)}}])}(Nw.default),lH$=N9.isSupported=!0});var YD;var S8=s(()=>{YD={name:"@capgo/cli",type:"module",version:"8.23.4",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/capgo.git",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",typecheck:"tsgo --project tsconfig.tsgo.json --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:bundle":"bun test/test-bundle.mjs","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs","test:credentials":"bun test/test-credentials.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:supabase-perf":"bun test/test-supabase-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:mcp-analytics":"bun test/test-mcp-analytics.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs","test:mcp":"node test/test-mcp.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:manifest-path-encoding":"bun test/test-manifest-path-encoding.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:frame-fit-ios-shared":"bun test/test-frame-fit-ios-shared.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-flow-contract":"bun test/test-ios-flow-contract.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:init-replay && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-app-verification && bun run test:android-rename","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-analyze-stream":"bun test/test-ai-analyze-stream.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support-mailto":"bun test/test-support-mailto.mjs","test:support-redact":"bun test/test-support-redact.mjs","test:support-internal-log":"bun test/test-support-internal-log.mjs","test:support-help-menu":"bun test/test-support-help-menu.mjs","test:support-contact":"bun test/test-support-contact.mjs","test:support-upload-prompt":"bun test/test-support-upload-prompt.mjs","test:support-bundle-files":"bun test/test-support-bundle-files.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:app-set-options":"bun test/test-app-set-options.mjs"},dependencies:{"@inkjs/ui":"^2.0.0","@rrweb/types":"^2.0.1","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","happy-dom":"^20.10.4",ink:"^7.0.4","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.6","rrweb-snapshot":"^2.0.1","string-width":"^8.2.1"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.0.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.3.4","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.4.0","@modelcontextprotocol/sdk":"^1.29.0","@sauber/table":"npm:@jsr/sauber__table","@std/semver":"npm:@jsr/std__semver@1.0.8","@supabase/supabase-js":"^2.106.2","@tanstack/intent":"^0.0.41","@types/adm-zip":"^0.5.8","@types/jsonwebtoken":"^9.0.10","@types/node":"^25.9.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.15","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native-preview":"7.0.0-dev.20260526.1","@vercel/ncc":"^0.38.4","@xterm/headless":"^6.0.0","adm-zip":"^0.5.17","ci-info":"^4.4.0",commander:"^14.0.3",eslint:"^10.4.0","git-format-staged":"4.0.1",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.67.0",partysocket:"^1.1.19",prettyjson:"^1.2.5",tmp:"^0.2.6","tus-js-client":"^4.3.1",typescript:"^6.0.3",ws:"^8.21.0",zod:"^4.4.3"}}});import{platform as jC0,release as CC0}from"node:os";import{arch as TC0,version as PC0}from"node:process";function ww(){return Rm}function Lw(){let $={cli_version:YD.version,node_version:PC0,os_platform:jC0(),os_arch:TC0,os_release:CC0(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"undefined",is_ci:PZ.isCI,is_tty:Boolean(process.stdout.isTTY),invocation_source:Rm};if(PZ.name)$.ci_provider=PZ.name;return $}var PZ,Rm="cli";var Bw=s(()=>{S8();PZ=M$(GM(),1)});import{AsyncLocalStorage as SC0}from"node:async_hooks";function SZ($,D){return Im.run($,()=>Promise.resolve(D()))}function xC0(){return Im.getStore()}function jm(){return vC0}function Tm($){Cm=$}function Am($){try{Cm?.($)}catch{}}function Sm($,D){let X;try{X=new URL($).pathname}catch{X=$.split("?")[0]}let J="/functions/v1/",Q=X.indexOf(J);if(Q>=0){let G=X.slice(Q+J.length).replace(/^\/+|\/+$/g,"");return G?`${D} functions:${G}`:`${D} functions`}let Y="/rest/v1/",Z=X.indexOf(Y),F=Z>=0?X.slice(Z+Y.length):X.replace(/^\//,"");if(F.startsWith("rpc/"))return`rpc:${F.slice(4).split("/")[0]}`;let U=F.split("/")[0]||X;return`${D} ${U}`}function _C0($){let D=$?.headers;if(!D)return;let X=D.get;if(typeof X==="function")return X.call(D,"capgkey")??void 0;if(Array.isArray(D))return D.find(([J])=>J.toLowerCase()==="capgkey")?.[1];return D.capgkey}function xm(){return async(D,X)=>{let J=(X?.method??"GET").toUpperCase(),Q=typeof D==="string"?D:D instanceof URL?D.href:D.url,Y=xC0(),Z=_C0(X),F=Date.now();try{let U=await globalThis.fetch(D,X);return Am({url:Q,method:J,status:U.status,ok:U.ok,durationMs:Date.now()-F,source:Y,apikey:Z}),U}catch(U){throw Am({url:Q,method:J,status:0,ok:!1,durationMs:Date.now()-F,source:Y,apikey:Z,error:U}),U}}}var Im,vC0=!1,Cm,Pm=5000;var Rq=s(()=>{Im=new SC0});function vm($,D){let J=["normal","bold","dim","italic","underline","strikethrough"].indexOf($),Q="\x1B[";return"\x1B["+J+"m"+D+"\x1B[0m"}var K6;var _m=s(()=>{K6=class K6{title=null;headers=[];rows=[];static narrowTheme={top:["╔","═","╤","╗"],row:["║"," ","│","║"],div:["╟","─","┼","╢"],bot:["╚","═","╧","╝"]};static wideTheme={top:["╔═","═","═╤═","═╗"],row:["║ "," "," │ "," ║"],div:["╟─","─","─┼─","─╢"],bot:["╚═","═","═╧═","═╝"]};static roundTheme={top:["╭─","─","─┬─","─╮"],row:["│ "," "," │ "," │"],div:["├─","─","─┼─","─┤"],bot:["╰─","─","─┴─","─╯"]};theme=K6.wideTheme;columnWidth(){let $=[this.headers,...this.rows].filter((X)=>X.length>0),D=$[0].map((X)=>this.cast(X).length);for(let X of $.slice(1))for(let J=0;J<D.length;J++){let Q=this.cast(X[J]).length;if(Q>D[J])D[J]=Q}return D}cast($){if(typeof $==="object")return"obj";if($!==void 0&&typeof $.toString==="function")return $.toString();else return""}renderTitle(){return"[ "+this.title+" ]"}renderLine($){let D=this.columnWidth();return $[0]+D.map((X)=>$[1].repeat(X)).join($[2])+$[3]}renderCell($,D,X=!1){let J=this.cast($),Q=X?vm("bold",J):J,Y=D-J.length,Z=this.theme.row[1];switch(typeof $){case"number":return Z.repeat(Y)+Q;case"string":return Q+Z.repeat(Y);case"boolean":case"object":return Z.repeat(Math.ceil(Y/2))+vm("italic",J)+Z.repeat(Math.floor(Y/2));default:return Z.repeat(Y)}}renderRow($,D=!1){let X=this.theme.row,J=this.columnWidth();return X[0]+$.map((Q,Y)=>this.renderCell(Q,J[Y],D)).join(X[2])+X[3]}toString(){let $=this.theme,D=this.headers.length>0,X=this.rows.length>0;return[this.title?this.renderTitle():"",D||X?this.renderLine($.top):"",D?this.renderRow(this.headers,!0):"",D&&X?this.renderLine($.div):"",...this.rows.map((J)=>this.renderRow(J)),D||X?this.renderLine($.bot):""].filter((J)=>J.length>0).join(`
|
|
126
|
+
GFS4: `),console.error($)};if(!L1[QD]){if(Jw=global[QD]||[],cg(L1,Jw),L1.close=function($){function D(X,J){return $.call(L1,X,function(Q){if(!Q)dg();if(typeof J==="function")J.apply(this,arguments)})}return Object.defineProperty(D,zq,{value:$}),D}(L1.close),L1.closeSync=function($){function D(X){$.apply(L1,arguments),dg()}return Object.defineProperty(D,zq,{value:$}),D}(L1.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){iX(L1[QD]),a("assert").equal(L1[QD].length,0)})}var Jw;if(!global[QD])cg(global,L1[QD]);Zw.exports=Qw(Aj0(L1));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!L1.__patched)Zw.exports=Qw(L1),L1.__patched=!0;function Qw($){Ej0($),$.gracefulify=Qw,$.createReadStream=w,$.createWriteStream=R;var D=$.readFile;$.readFile=X;function X(I,f,S){if(typeof f==="function")S=f,f=null;return n(I,f,S);function n(m,e,h,j){return D(m,e,function(C){if(C&&(C.code==="EMFILE"||C.code==="ENFILE"))tJ([n,[m,e,h],C,j||Date.now(),Date.now()]);else if(typeof h==="function")h.apply(this,arguments)})}}var J=$.writeFile;$.writeFile=Q;function Q(I,f,S,n){if(typeof S==="function")n=S,S=null;return m(I,f,S,n);function m(e,h,j,C,v){return J(e,h,j,function(c){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))tJ([m,[e,h,j,C],c,v||Date.now(),Date.now()]);else if(typeof C==="function")C.apply(this,arguments)})}}var Y=$.appendFile;if(Y)$.appendFile=Z;function Z(I,f,S,n){if(typeof S==="function")n=S,S=null;return m(I,f,S,n);function m(e,h,j,C,v){return Y(e,h,j,function(c){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))tJ([m,[e,h,j,C],c,v||Date.now(),Date.now()]);else if(typeof C==="function")C.apply(this,arguments)})}}var F=$.copyFile;if(F)$.copyFile=U;function U(I,f,S,n){if(typeof S==="function")n=S,S=0;return m(I,f,S,n);function m(e,h,j,C,v){return F(e,h,j,function(c){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))tJ([m,[e,h,j,C],c,v||Date.now(),Date.now()]);else if(typeof C==="function")C.apply(this,arguments)})}}var G=$.readdir;$.readdir=W;var q=/^v[0-5]\./;function W(I,f,S){if(typeof f==="function")S=f,f=null;var n=q.test(process.version)?function(h,j,C,v){return G(h,m(h,j,C,v))}:function(h,j,C,v){return G(h,j,m(h,j,C,v))};return n(I,f,S);function m(e,h,j,C){return function(v,c){if(v&&(v.code==="EMFILE"||v.code==="ENFILE"))tJ([n,[e,h,j],v,C||Date.now(),Date.now()]);else{if(c&&c.sort)c.sort();if(typeof j==="function")j.call(this,v,c)}}}}if(process.version.substr(0,4)==="v0.8"){var H=Rj0($);L=H.ReadStream,K=H.WriteStream}var z=$.ReadStream;if(z)L.prototype=Object.create(z.prototype),L.prototype.open=E;var O=$.WriteStream;if(O)K.prototype=Object.create(O.prototype),K.prototype.open=M;Object.defineProperty($,"ReadStream",{get:function(){return L},set:function(I){L=I},enumerable:!0,configurable:!0}),Object.defineProperty($,"WriteStream",{get:function(){return K},set:function(I){K=I},enumerable:!0,configurable:!0});var V=L;Object.defineProperty($,"FileReadStream",{get:function(){return V},set:function(I){V=I},enumerable:!0,configurable:!0});var N=K;Object.defineProperty($,"FileWriteStream",{get:function(){return N},set:function(I){N=I},enumerable:!0,configurable:!0});function L(I,f){if(this instanceof L)return z.apply(this,arguments),this;else return L.apply(Object.create(L.prototype),arguments)}function E(){var I=this;k(I.path,I.flags,I.mode,function(f,S){if(f){if(I.autoClose)I.destroy();I.emit("error",f)}else I.fd=S,I.emit("open",S),I.read()})}function K(I,f){if(this instanceof K)return O.apply(this,arguments),this;else return K.apply(Object.create(K.prototype),arguments)}function M(){var I=this;k(I.path,I.flags,I.mode,function(f,S){if(f)I.destroy(),I.emit("error",f);else I.fd=S,I.emit("open",S)})}function w(I,f){return new $.ReadStream(I,f)}function R(I,f){return new $.WriteStream(I,f)}var x=$.open;$.open=k;function k(I,f,S,n){if(typeof S==="function")n=S,S=null;return m(I,f,S,n);function m(e,h,j,C,v){return x(e,h,j,function(c,i){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))tJ([m,[e,h,j,C],c,v||Date.now(),Date.now()]);else if(typeof C==="function")C.apply(this,arguments)})}}return $}function tJ($){iX("ENQUEUE",$[0].name,$[1]),L1[QD].push($),Yw()}var Hq;function dg(){var $=Date.now();for(var D=0;D<L1[QD].length;++D)if(L1[QD][D].length>2)L1[QD][D][3]=$,L1[QD][D][4]=$;Yw()}function Yw(){if(clearTimeout(Hq),Hq=void 0,L1[QD].length===0)return;var $=L1[QD].shift(),D=$[0],X=$[1],J=$[2],Q=$[3],Y=$[4];if(Q===void 0)iX("RETRY",D.name,X),D.apply(null,X);else if(Date.now()-Q>=60000){iX("TIMEOUT",D.name,X);var Z=X.pop();if(typeof Z==="function")Z.call(null,J)}else{var F=Date.now()-Y,U=Math.max(Y-Q,1),G=Math.min(U*1.2,100);if(F>=G)iX("RETRY",D.name,X),D.apply(null,X.concat([Q]));else L1[QD].push($)}if(Hq===void 0)Hq=setTimeout(Yw,0)}});var ng=A((kH$,lg)=>{function v6($,D){if(typeof D==="boolean")D={forever:D};if(this._originalTimeouts=JSON.parse(JSON.stringify($)),this._timeouts=$,this._options=D||{},this._maxRetryTime=D&&D.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}lg.exports=v6;v6.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};v6.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};v6.prototype.retry=function($){if(this._timeout)clearTimeout(this._timeout);if(!$)return!1;var D=new Date().getTime();if($&&D-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push($);var X=this._timeouts.shift();if(X===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),X=this._timeouts.shift();else return!1;var J=this,Q=setTimeout(function(){if(J._attempts++,J._operationTimeoutCb){if(J._timeout=setTimeout(function(){J._operationTimeoutCb(J._attempts)},J._operationTimeout),J._options.unref)J._timeout.unref()}J._fn(J._attempts)},X);if(this._options.unref)Q.unref();return!0};v6.prototype.attempt=function($,D){if(this._fn=$,D){if(D.timeout)this._operationTimeout=D.timeout;if(D.cb)this._operationTimeoutCb=D.cb}var X=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){X._operationTimeoutCb()},X._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};v6.prototype.try=function($){console.log("Using RetryOperation.try() is deprecated"),this.attempt($)};v6.prototype.start=function($){console.log("Using RetryOperation.start() is deprecated"),this.attempt($)};v6.prototype.start=v6.prototype.try;v6.prototype.errors=function(){return this._errors};v6.prototype.attempts=function(){return this._attempts};v6.prototype.mainError=function(){if(this._errors.length===0)return null;var $={},D=null,X=0;for(var J=0;J<this._errors.length;J++){var Q=this._errors[J],Y=Q.message,Z=($[Y]||0)+1;if($[Y]=Z,Z>=X)D=Q,X=Z}return D}});var pg=A((Cj0)=>{var jj0=ng();Cj0.operation=function($){var D=Cj0.timeouts($);return new jj0(D,{forever:$&&$.forever,unref:$&&$.unref,maxRetryTime:$&&$.maxRetryTime})};Cj0.timeouts=function($){if($ instanceof Array)return[].concat($);var D={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var X in $)D[X]=$[X];if(D.minTimeout>D.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var J=[];for(var Q=0;Q<D.retries;Q++)J.push(this.createTimeout(Q,D));if($&&$.forever&&!J.length)J.push(this.createTimeout(Q,D));return J.sort(function(Y,Z){return Y-Z}),J};Cj0.createTimeout=function($,D){var X=D.randomize?Math.random()+1:1,J=Math.round(X*D.minTimeout*Math.pow(D.factor,$));return J=Math.min(J,D.maxTimeout),J};Cj0.wrap=function($,D,X){if(D instanceof Array)X=D,D=null;if(!X){X=[];for(var J in $)if(typeof $[J]==="function")X.push(J)}for(var Q=0;Q<X.length;Q++){var Y=X[Q],Z=$[Y];$[Y]=function(U){var G=Cj0.operation(D),q=Array.prototype.slice.call(arguments,1),W=q.pop();q.push(function(H){if(G.retry(H))return;if(H)arguments[0]=G.mainError();W.apply(this,arguments)}),G.attempt(function(){U.apply($,q)})}.bind($,Z),$[Y].options=D}}});var rg=A((fH$,Oq)=>{Oq.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")Oq.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")Oq.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Nq=A((yH$,sJ)=>{var O1=global.process,pX=function($){return $&&typeof $==="object"&&typeof $.removeListener==="function"&&typeof $.emit==="function"&&typeof $.reallyExit==="function"&&typeof $.listeners==="function"&&typeof $.kill==="function"&&typeof $.pid==="number"&&typeof $.on==="function"};if(!pX(O1))sJ.exports=function(){return function(){}};else{if(Fw=a("assert"),rX=rg(),Uw=/^win/i.test(O1.platform),aJ=a("events"),typeof aJ!=="function")aJ=aJ.EventEmitter;if(O1.__signal_exit_emitter__)l1=O1.__signal_exit_emitter__;else l1=O1.__signal_exit_emitter__=new aJ,l1.count=0,l1.emitted={};if(!l1.infinite)l1.setMaxListeners(1/0),l1.infinite=!0;sJ.exports=function($,D){if(!pX(global.process))return function(){};if(Fw.equal(typeof $,"function","a callback must be provided for exit handler"),oX===!1)Vq();var X="exit";if(D&&D.alwaysLast)X="afterexit";var J=function(){if(l1.removeListener(X,$),l1.listeners("exit").length===0&&l1.listeners("afterexit").length===0)RZ()};return l1.on(X,$),J},RZ=function(){if(!oX||!pX(global.process))return;oX=!1,rX.forEach(function(D){try{O1.removeListener(D,AZ[D])}catch(X){}}),O1.emit=IZ,O1.reallyExit=Kq,l1.count-=1},sJ.exports.unload=RZ,V9=function(D,X,J){if(l1.emitted[D])return;l1.emitted[D]=!0,l1.emit(D,X,J)},AZ={},rX.forEach(function($){AZ[$]=function(){if(!pX(global.process))return;var X=O1.listeners($);if(X.length===l1.count){if(RZ(),V9("exit",null,$),V9("afterexit",null,$),Uw&&$==="SIGHUP")$="SIGINT";O1.kill(O1.pid,$)}}}),sJ.exports.signals=function(){return rX},oX=!1,Vq=function(){if(oX||!pX(global.process))return;oX=!0,l1.count+=1,rX=rX.filter(function(D){try{return O1.on(D,AZ[D]),!0}catch(X){return!1}}),O1.emit=qw,O1.reallyExit=Gw},sJ.exports.load=Vq,Kq=O1.reallyExit,Gw=function(D){if(!pX(global.process))return;O1.exitCode=D||0,V9("exit",O1.exitCode,null),V9("afterexit",O1.exitCode,null),Kq.call(O1,O1.exitCode)},IZ=O1.emit,qw=function(D,X){if(D==="exit"&&pX(global.process)){if(X!==void 0)O1.exitCode=X;var J=IZ.apply(this,arguments);return V9("exit",O1.exitCode,null),V9("afterexit",O1.exitCode,null),J}else return IZ.apply(this,arguments)}}var Fw,rX,Uw,aJ,l1,RZ,V9,AZ,oX,Vq,Kq,Gw,IZ,qw});var tg=A((_j0,Ww)=>{var og=Symbol();function xj0($,D,X){let J=D[og];if(J)return D.stat($,(Y,Z)=>{if(Y)return X(Y);X(null,Z.mtime,J)});let Q=new Date(Math.ceil(Date.now()/1000)*1000+5);D.utimes($,Q,Q,(Y)=>{if(Y)return X(Y);D.stat($,(Z,F)=>{if(Z)return X(Z);let U=F.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty(D,og,{value:U}),X(null,F.mtime,U)})})}function vj0($){let D=Date.now();if($==="s")D=Math.ceil(D/1000)*1000;return new Date(D)}_j0.probe=xj0;_j0.getMtime=vj0});var Dm=A((dj0,CZ)=>{var fj0=a("path"),Ow=C1(),yj0=pg(),hj0=Nq(),ag=tg(),P8={};function jZ($,D){return D.lockfilePath||`${$}.lock`}function Vw($,D,X){if(!D.realpath)return X(null,fj0.resolve($));D.fs.realpath($,X)}function zw($,D,X){let J=jZ($,D);D.fs.mkdir(J,(Q)=>{if(!Q)return ag.probe(J,D.fs,(Y,Z,F)=>{if(Y)return D.fs.rmdir(J,()=>{}),X(Y);X(null,Z,F)});if(Q.code!=="EEXIST")return X(Q);if(D.stale<=0)return X(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:$}));D.fs.stat(J,(Y,Z)=>{if(Y){if(Y.code==="ENOENT")return zw($,{...D,stale:0},X);return X(Y)}if(!sg(Z,D))return X(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:$}));eg($,D,(F)=>{if(F)return X(F);zw($,{...D,stale:0},X)})})})}function sg($,D){return $.mtime.getTime()<Date.now()-D.stale}function eg($,D,X){D.fs.rmdir(jZ($,D),(J)=>{if(J&&J.code!=="ENOENT")return X(J);X()})}function Mq($,D){let X=P8[$];if(X.updateTimeout)return;if(X.updateDelay=X.updateDelay||D.update,X.updateTimeout=setTimeout(()=>{X.updateTimeout=null,D.fs.stat(X.lockfilePath,(J,Q)=>{let Y=X.lastUpdate+D.stale<Date.now();if(J){if(J.code==="ENOENT"||Y)return Hw($,X,Object.assign(J,{code:"ECOMPROMISED"}));return X.updateDelay=1000,Mq($,D)}if(X.mtime.getTime()!==Q.mtime.getTime())return Hw($,X,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let F=ag.getMtime(X.mtimePrecision);D.fs.utimes(X.lockfilePath,F,F,(U)=>{let G=X.lastUpdate+D.stale<Date.now();if(X.released)return;if(U){if(U.code==="ENOENT"||G)return Hw($,X,Object.assign(U,{code:"ECOMPROMISED"}));return X.updateDelay=1000,Mq($,D)}X.mtime=F,X.lastUpdate=Date.now(),X.updateDelay=null,Mq($,D)})})},X.updateDelay),X.updateTimeout.unref)X.updateTimeout.unref()}function Hw($,D,X){if(D.released=!0,D.updateTimeout)clearTimeout(D.updateTimeout);if(P8[$]===D)delete P8[$];D.options.onCompromised(X)}function bj0($,D,X){D={stale:1e4,update:null,realpath:!0,retries:0,fs:Ow,onCompromised:(J)=>{throw J},...D},D.retries=D.retries||0,D.retries=typeof D.retries==="number"?{retries:D.retries}:D.retries,D.stale=Math.max(D.stale||0,2000),D.update=D.update==null?D.stale/2:D.update||0,D.update=Math.max(Math.min(D.update,D.stale/2),1000),Vw($,D,(J,Q)=>{if(J)return X(J);let Y=yj0.operation(D.retries);Y.attempt(()=>{zw(Q,D,(Z,F,U)=>{if(Y.retry(Z))return;if(Z)return X(Y.mainError());let G=P8[Q]={lockfilePath:jZ(Q,D),mtime:F,mtimePrecision:U,options:D,lastUpdate:Date.now()};Mq(Q,D),X(null,(q)=>{if(G.released)return q&&q(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));$m(Q,{...D,realpath:!1},q)})})})})}function $m($,D,X){D={fs:Ow,realpath:!0,...D},Vw($,D,(J,Q)=>{if(J)return X(J);let Y=P8[Q];if(!Y)return X(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));Y.updateTimeout&&clearTimeout(Y.updateTimeout),Y.released=!0,delete P8[Q],eg(Q,D,X)})}function gj0($,D,X){D={stale:1e4,realpath:!0,fs:Ow,...D},D.stale=Math.max(D.stale||0,2000),Vw($,D,(J,Q)=>{if(J)return X(J);D.fs.stat(jZ(Q,D),(Y,Z)=>{if(Y)return Y.code==="ENOENT"?X(null,!1):X(Y);return X(null,!sg(Z,D))})})}function mj0(){return P8}hj0(()=>{for(let $ in P8){let D=P8[$].options;try{D.fs.rmdirSync(jZ($,D))}catch(X){}}});dj0.lock=bj0;dj0.unlock=$m;dj0.check=gj0;dj0.getLocks=mj0});var Jm=A((hH$,Xm)=>{var pj0=C1();function rj0($){let D=["mkdir","realpath","stat","rmdir","utimes"],X={...$};return D.forEach((J)=>{X[J]=(...Q)=>{let Y=Q.pop(),Z;try{Z=$[`${J}Sync`](...Q)}catch(F){return Y(F)}Y(null,Z)}}),X}function oj0($){return(...D)=>new Promise((X,J)=>{D.push((Q,Y)=>{if(Q)J(Q);else X(Y)}),$(...D)})}function tj0($){return(...D)=>{let X,J;if(D.push((Q,Y)=>{X=Q,J=Y}),$(...D),X)throw X;return J}}function aj0($){if($={...$},$.fs=rj0($.fs||pj0),typeof $.retries==="number"&&$.retries>0||$.retries&&typeof $.retries.retries==="number"&&$.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return $}Xm.exports={toPromise:oj0,toSync:tj0,toSyncOptions:aj0}});var Ym=A((bH$,K9)=>{var eJ=Dm(),{toPromise:wq,toSync:Lq,toSyncOptions:Kw}=Jm();async function Qm($,D){let X=await wq(eJ.lock)($,D);return wq(X)}function sj0($,D){let X=Lq(eJ.lock)($,Kw(D));return Lq(X)}function ej0($,D){return wq(eJ.unlock)($,D)}function $C0($,D){return Lq(eJ.unlock)($,Kw(D))}function DC0($,D){return wq(eJ.check)($,D)}function XC0($,D){return Lq(eJ.check)($,Kw(D))}K9.exports=Qm;K9.exports.lock=Qm;K9.exports.unlock=ej0;K9.exports.lockSync=sj0;K9.exports.unlockSync=$C0;K9.exports.check=DC0;K9.exports.checkSync=XC0});var Hm=A((qm)=>{Object.defineProperty(qm,"__esModule",{value:!0});qm.canStoreURLs=qm.FileUrlStorage=void 0;var Zm=a("fs"),JC0=YC0(kg()),Fm=QC0(Ym());function Gm($){if(typeof WeakMap!="function")return null;var D=new WeakMap,X=new WeakMap;return(Gm=function(J){return J?X:D})($)}function QC0($,D){if(!D&&$&&$.__esModule)return $;if($===null||typeof $!="object"&&typeof $!="function")return{default:$};var X=Gm(D);if(X&&X.has($))return X.get($);var J={__proto__:null},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in $)if(Y!=="default"&&{}.hasOwnProperty.call($,Y)){var Z=Q?Object.getOwnPropertyDescriptor($,Y):null;Z&&(Z.get||Z.set)?Object.defineProperty(J,Y,Z):J[Y]=$[Y]}return J.default=$,X&&X.set($,J),J}function YC0($){return $&&$.__esModule?$:{default:$}}function TZ($){return TZ=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},TZ($)}function ZC0($,D){if(!($ instanceof D))throw TypeError("Cannot call a class as a function")}function Um($,D){for(var X=0;X<D.length;X++){var J=D[X];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty($,UC0(J.key),J)}}function FC0($,D,X){if(D)Um($.prototype,D);if(X)Um($,X);return Object.defineProperty($,"prototype",{writable:!1}),$}function UC0($){var D=GC0($,"string");return TZ(D)=="symbol"?D:D+""}function GC0($,D){if(TZ($)!="object"||!$)return $;var X=$[Symbol.toPrimitive];if(X!==void 0){var J=X.call($,D||"default");if(TZ(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)($)}var gH$=qm.canStoreURLs=!0,mH$=qm.FileUrlStorage=function(){function $(D){ZC0(this,$),this.path=D}return FC0($,[{key:"findAllUploads",value:function(){var X=this;return new Promise(function(J,Q){X._getItems("tus::",function(Y,Z){if(Y)Q(Y);else J(Z)})})}},{key:"findUploadsByFingerprint",value:function(X){var J=this;return new Promise(function(Q,Y){J._getItems("tus::".concat(X),function(Z,F){if(Z)Y(Z);else Q(F)})})}},{key:"removeUpload",value:function(X){var J=this;return new Promise(function(Q,Y){J._removeItem(X,function(Z){if(Z)Y(Z);else Q()})})}},{key:"addUpload",value:function(X,J){var Q=this,Y=Math.round(Math.random()*1000000000000),Z="tus::".concat(X,"::").concat(Y);return new Promise(function(F,U){Q._setItem(Z,J,function(G){if(G)U(G);else F(Z)})})}},{key:"_setItem",value:function(X,J,Q){var Y=this;Fm.lock(this.path,this._lockfileOptions()).then(function(Z){Q=Y._releaseAndCb(Z,Q),Y._getData(function(F,U){if(F){Q(F);return}U[X]=J,Y._writeData(U,function(G){return Q(G)})})}).catch(Q)}},{key:"_getItems",value:function(X,J){this._getData(function(Q,Y){if(Q){J(Q);return}var Z=Object.keys(Y).filter(function(F){return F.startsWith(X)}).map(function(F){var U=Y[F];return U.urlStorageKey=F,U});J(null,Z)})}},{key:"_removeItem",value:function(X,J){var Q=this;Fm.lock(this.path,this._lockfileOptions()).then(function(Y){J=Q._releaseAndCb(Y,J),Q._getData(function(Z,F){if(Z){J(Z);return}delete F[X],Q._writeData(F,function(U){return J(U)})})}).catch(J)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(X,J){return function(Q){if(Q){X().then(function(){return J(Q)}).catch(function(Y){return J((0,JC0.default)([Q,Y]))});return}X().then(J).catch(J)}}},{key:"_writeData",value:function(X,J){var Q={encoding:"utf8",mode:432,flag:"w"};(0,Zm.writeFile)(this.path,JSON.stringify(X),Q,function(Y){return J(Y)})}},{key:"_getData",value:function(X){(0,Zm.readFile)(this.path,"utf8",function(J,Q){if(J){if(J.code==="ENOENT")X(null,{});else X(J);return}try{Q=!Q.trim().length?{}:JSON.parse(Q)}catch(Y){X(Y);return}X(null,Q)})}}])}()});var Eq=A((N9)=>{Object.defineProperty(N9,"__esModule",{value:!0});Object.defineProperty(N9,"DefaultHttpStack",{enumerable:!0,get:function(){return Km.default}});Object.defineProperty(N9,"DetailedError",{enumerable:!0,get:function(){return WC0.default}});Object.defineProperty(N9,"FileUrlStorage",{enumerable:!0,get:function(){return Nm.FileUrlStorage}});Object.defineProperty(N9,"StreamSource",{enumerable:!0,get:function(){return KC0.default}});N9.Upload=void 0;Object.defineProperty(N9,"canStoreURLs",{enumerable:!0,get:function(){return Nm.canStoreURLs}});N9.defaultOptions=void 0;Object.defineProperty(N9,"enableDebugLog",{enumerable:!0,get:function(){return HC0.enableDebugLog}});N9.isSupported=void 0;var WC0=tX(KM()),HC0=NM(),zC0=tX(Yh()),Nw=tX(hh()),OC0=tX(Qb()),VC0=tX(Gb()),Km=tX(Ib()),KC0=tX(TM()),Nm=Hm();function tX($){return $&&$.__esModule?$:{default:$}}function D5($){return D5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},D5($)}function NC0($,D){if(!($ instanceof D))throw TypeError("Cannot call a class as a function")}function zm($,D){for(var X=0;X<D.length;X++){var J=D[X];if(J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J)J.writable=!0;Object.defineProperty($,wm(J.key),J)}}function MC0($,D,X){if(D)zm($.prototype,D);if(X)zm($,X);return Object.defineProperty($,"prototype",{writable:!1}),$}function wC0($,D,X){return D=Bq(D),LC0($,Mm()?Reflect.construct(D,X||[],Bq($).constructor):D.apply($,X))}function LC0($,D){if(D&&(D5(D)==="object"||typeof D==="function"))return D;else if(D!==void 0)throw TypeError("Derived constructors may only return object or undefined");return BC0($)}function BC0($){if($===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function Mm(){try{var $=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(D){}return(Mm=function(){return!!$})()}function Bq($){return Bq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},Bq($)}function EC0($,D){if(typeof D!=="function"&&D!==null)throw TypeError("Super expression must either be null or a function");if($.prototype=Object.create(D&&D.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),D)Mw($,D)}function Mw($,D){return Mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(J,Q){return J.__proto__=Q,J},Mw($,D)}function Om($,D){var X=Object.keys($);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols($);D&&(J=J.filter(function(Q){return Object.getOwnPropertyDescriptor($,Q).enumerable})),X.push.apply(X,J)}return X}function $5($){for(var D=1;D<arguments.length;D++){var X=arguments[D]!=null?arguments[D]:{};D%2?Om(Object(X),!0).forEach(function(J){RC0($,J,X[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(X)):Om(Object(X)).forEach(function(J){Object.defineProperty($,J,Object.getOwnPropertyDescriptor(X,J))})}return $}function RC0($,D,X){if(D=wm(D),D in $)Object.defineProperty($,D,{value:X,enumerable:!0,configurable:!0,writable:!0});else $[D]=X;return $}function wm($){var D=AC0($,"string");return D5(D)=="symbol"?D:D+""}function AC0($,D){if(D5($)!="object"||!$)return $;var X=$[Symbol.toPrimitive];if(X!==void 0){var J=X.call($,D||"default");if(D5(J)!="object")return J;throw TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)($)}var Vm=N9.defaultOptions=$5($5({},Nw.default.defaultOptions),{},{httpStack:new Km.default,fileReader:new OC0.default,urlStorage:new zC0.default,fingerprint:VC0.default}),cH$=N9.Upload=function($){function D(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return NC0(this,D),J=$5($5({},Vm),J),wC0(this,D,[X,J])}return EC0(D,$),MC0(D,null,[{key:"terminate",value:function(J){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q=$5($5({},Vm),Q),Nw.default.terminate(J,Q)}}])}(Nw.default),lH$=N9.isSupported=!0});var YD;var S8=s(()=>{YD={name:"@capgo/cli",type:"module",version:"8.24.1",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/capgo.git",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",typecheck:"tsgo --project tsconfig.tsgo.json --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:bundle":"bun test/test-bundle.mjs","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs","test:credentials":"bun test/test-credentials.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:supabase-perf":"bun test/test-supabase-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:mcp-analytics":"bun test/test-mcp-analytics.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs","test:mcp":"node test/test-mcp.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:manifest-path-encoding":"bun test/test-manifest-path-encoding.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:frame-fit-ios-shared":"bun test/test-frame-fit-ios-shared.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-flow-contract":"bun test/test-ios-flow-contract.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:init-replay && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-analyze-stream":"bun test/test-ai-analyze-stream.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support-mailto":"bun test/test-support-mailto.mjs","test:support-redact":"bun test/test-support-redact.mjs","test:support-internal-log":"bun test/test-support-internal-log.mjs","test:support-help-menu":"bun test/test-support-help-menu.mjs","test:support-contact":"bun test/test-support-contact.mjs","test:support-upload-prompt":"bun test/test-support-upload-prompt.mjs","test:support-bundle-files":"bun test/test-support-bundle-files.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs"},dependencies:{"@inkjs/ui":"^2.0.0","@rrweb/types":"^2.0.1","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","happy-dom":"^20.10.4",ink:"^7.0.4","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.6","rrweb-snapshot":"^2.0.1","string-width":"^8.2.1"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.0.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.3.4","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.4.0","@modelcontextprotocol/sdk":"^1.29.0","@sauber/table":"npm:@jsr/sauber__table","@std/semver":"npm:@jsr/std__semver@1.0.8","@supabase/supabase-js":"^2.106.2","@tanstack/intent":"^0.0.41","@types/adm-zip":"^0.5.8","@types/jsonwebtoken":"^9.0.10","@types/node":"^25.9.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.15","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native-preview":"7.0.0-dev.20260526.1","@vercel/ncc":"^0.38.4","@xterm/headless":"^6.0.0","adm-zip":"^0.5.17","ci-info":"^4.4.0",commander:"^14.0.3",eslint:"^10.4.0","git-format-staged":"4.0.1",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.67.0",partysocket:"^1.1.19",prettyjson:"^1.2.5",tmp:"^0.2.6","tus-js-client":"^4.3.1",typescript:"^6.0.3",ws:"^8.21.0",zod:"^4.4.3"}}});import{platform as jC0,release as CC0}from"node:os";import{arch as TC0,version as PC0}from"node:process";function ww(){return Rm}function Lw(){let $={cli_version:YD.version,node_version:PC0,os_platform:jC0(),os_arch:TC0,os_release:CC0(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"undefined",is_ci:PZ.isCI,is_tty:Boolean(process.stdout.isTTY),invocation_source:Rm};if(PZ.name)$.ci_provider=PZ.name;return $}var PZ,Rm="cli";var Bw=s(()=>{S8();PZ=M$(GM(),1)});import{AsyncLocalStorage as SC0}from"node:async_hooks";function SZ($,D){return Im.run($,()=>Promise.resolve(D()))}function xC0(){return Im.getStore()}function jm(){return vC0}function Tm($){Cm=$}function Am($){try{Cm?.($)}catch{}}function Sm($,D){let X;try{X=new URL($).pathname}catch{X=$.split("?")[0]}let J="/functions/v1/",Q=X.indexOf(J);if(Q>=0){let G=X.slice(Q+J.length).replace(/^\/+|\/+$/g,"");return G?`${D} functions:${G}`:`${D} functions`}let Y="/rest/v1/",Z=X.indexOf(Y),F=Z>=0?X.slice(Z+Y.length):X.replace(/^\//,"");if(F.startsWith("rpc/"))return`rpc:${F.slice(4).split("/")[0]}`;let U=F.split("/")[0]||X;return`${D} ${U}`}function _C0($){let D=$?.headers;if(!D)return;let X=D.get;if(typeof X==="function")return X.call(D,"capgkey")??void 0;if(Array.isArray(D))return D.find(([J])=>J.toLowerCase()==="capgkey")?.[1];return D.capgkey}function xm(){return async(D,X)=>{let J=(X?.method??"GET").toUpperCase(),Q=typeof D==="string"?D:D instanceof URL?D.href:D.url,Y=xC0(),Z=_C0(X),F=Date.now();try{let U=await globalThis.fetch(D,X);return Am({url:Q,method:J,status:U.status,ok:U.ok,durationMs:Date.now()-F,source:Y,apikey:Z}),U}catch(U){throw Am({url:Q,method:J,status:0,ok:!1,durationMs:Date.now()-F,source:Y,apikey:Z,error:U}),U}}}var Im,vC0=!1,Cm,Pm=5000;var Rq=s(()=>{Im=new SC0});function vm($,D){let J=["normal","bold","dim","italic","underline","strikethrough"].indexOf($),Q="\x1B[";return"\x1B["+J+"m"+D+"\x1B[0m"}var K6;var _m=s(()=>{K6=class K6{title=null;headers=[];rows=[];static narrowTheme={top:["╔","═","╤","╗"],row:["║"," ","│","║"],div:["╟","─","┼","╢"],bot:["╚","═","╧","╝"]};static wideTheme={top:["╔═","═","═╤═","═╗"],row:["║ "," "," │ "," ║"],div:["╟─","─","─┼─","─╢"],bot:["╚═","═","═╧═","═╝"]};static roundTheme={top:["╭─","─","─┬─","─╮"],row:["│ "," "," │ "," │"],div:["├─","─","─┼─","─┤"],bot:["╰─","─","─┴─","─╯"]};theme=K6.wideTheme;columnWidth(){let $=[this.headers,...this.rows].filter((X)=>X.length>0),D=$[0].map((X)=>this.cast(X).length);for(let X of $.slice(1))for(let J=0;J<D.length;J++){let Q=this.cast(X[J]).length;if(Q>D[J])D[J]=Q}return D}cast($){if(typeof $==="object")return"obj";if($!==void 0&&typeof $.toString==="function")return $.toString();else return""}renderTitle(){return"[ "+this.title+" ]"}renderLine($){let D=this.columnWidth();return $[0]+D.map((X)=>$[1].repeat(X)).join($[2])+$[3]}renderCell($,D,X=!1){let J=this.cast($),Q=X?vm("bold",J):J,Y=D-J.length,Z=this.theme.row[1];switch(typeof $){case"number":return Z.repeat(Y)+Q;case"string":return Q+Z.repeat(Y);case"boolean":case"object":return Z.repeat(Math.ceil(Y/2))+vm("italic",J)+Z.repeat(Math.floor(Y/2));default:return Z.repeat(Y)}}renderRow($,D=!1){let X=this.theme.row,J=this.columnWidth();return X[0]+$.map((Q,Y)=>this.renderCell(Q,J[Y],D)).join(X[2])+X[3]}toString(){let $=this.theme,D=this.headers.length>0,X=this.rows.length>0;return[this.title?this.renderTitle():"",D||X?this.renderLine($.top):"",D?this.renderRow(this.headers,!0):"",D&&X?this.renderLine($.div):"",...this.rows.map((J)=>this.renderRow(J)),D||X?this.renderLine($.bot):""].filter((J)=>J.length>0).join(`
|
|
127
127
|
`)}}});var X5=s(()=>{_m()});async function Aq($){try{let X=`https://registry.npmjs.org/${encodeURIComponent($.toLowerCase())}`,J=await fetch(X,{headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"}});if(!J.ok)return null;return(await J.json())["dist-tags"]?.latest||null}catch{return null}}async function kC0(){let $=await Aq("@capgo/cli")??"",D=$?.split(".")[0]??"";return{currentVersion:YD.version,latestVersion:$,isOutdated:!!$&&$!==YD.version,majorVersion:D}}async function s$(){let{isOutdated:$,currentVersion:D,latestVersion:X,majorVersion:J}=await kC0();if($)B.warning(`\uD83D\uDEA8 You are using @capgo/cli@${D} it's not the latest version.
|
|
128
128
|
Please use @capgo/cli@${X}" or @capgo/cli@${J} to keep up to date with the latest features and bug fixes.`)}var TD=s(()=>{$$();S8()});async function km($,D,X,J,Q,Y="✅",Z){await m0(X,{channel:$,event:J,icon:Y,org_id:D,tracking_version:2,...Q||Z?{tags:{...Q?{"app-id":Q}:{},...Z}}:{},notify:!1})}var um=s(()=>{$$();X5();TD();a0()});var Ew=A((Hz$,fm)=>{var J5=1000,Q5=J5*60,Y5=Q5*60,aX=Y5*24,uC0=aX*7,fC0=aX*365.25;fm.exports=function($,D){D=D||{};var X=typeof $;if(X==="string"&&$.length>0)return yC0($);else if(X==="number"&&isFinite($))return D.long?bC0($):hC0($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function yC0($){if($=String($),$.length>100)return;var D=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!D)return;var X=parseFloat(D[1]),J=(D[2]||"ms").toLowerCase();switch(J){case"years":case"year":case"yrs":case"yr":case"y":return X*fC0;case"weeks":case"week":case"w":return X*uC0;case"days":case"day":case"d":return X*aX;case"hours":case"hour":case"hrs":case"hr":case"h":return X*Y5;case"minutes":case"minute":case"mins":case"min":case"m":return X*Q5;case"seconds":case"second":case"secs":case"sec":case"s":return X*J5;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return X;default:return}}function hC0($){var D=Math.abs($);if(D>=aX)return Math.round($/aX)+"d";if(D>=Y5)return Math.round($/Y5)+"h";if(D>=Q5)return Math.round($/Q5)+"m";if(D>=J5)return Math.round($/J5)+"s";return $+"ms"}function bC0($){var D=Math.abs($);if(D>=aX)return Iq($,D,aX,"day");if(D>=Y5)return Iq($,D,Y5,"hour");if(D>=Q5)return Iq($,D,Q5,"minute");if(D>=J5)return Iq($,D,J5,"second");return $+" ms"}function Iq($,D,X,J){var Q=D>=X*1.5;return Math.round($/X)+" "+J+(Q?"s":"")}});var Rw=A((zz$,ym)=>{function gC0($){X.debug=X,X.default=X,X.coerce=U,X.disable=Z,X.enable=Q,X.enabled=F,X.humanize=Ew(),X.destroy=G,Object.keys($).forEach((q)=>{X[q]=$[q]}),X.names=[],X.skips=[],X.formatters={};function D(q){let W=0;for(let H=0;H<q.length;H++)W=(W<<5)-W+q.charCodeAt(H),W|=0;return X.colors[Math.abs(W)%X.colors.length]}X.selectColor=D;function X(q){let W,H=null,z,O;function V(...N){if(!V.enabled)return;let L=V,E=Number(new Date),K=E-(W||E);if(L.diff=K,L.prev=W,L.curr=E,W=E,N[0]=X.coerce(N[0]),typeof N[0]!=="string")N.unshift("%O");let M=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(R,x)=>{if(R==="%%")return"%";M++;let k=X.formatters[x];if(typeof k==="function"){let I=N[M];R=k.call(L,I),N.splice(M,1),M--}return R}),X.formatArgs.call(L,N),(L.log||X.log).apply(L,N)}if(V.namespace=q,V.useColors=X.useColors(),V.color=X.selectColor(q),V.extend=J,V.destroy=X.destroy,Object.defineProperty(V,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(H!==null)return H;if(z!==X.namespaces)z=X.namespaces,O=X.enabled(q);return O},set:(N)=>{H=N}}),typeof X.init==="function")X.init(V);return V}function J(q,W){let H=X(this.namespace+(typeof W>"u"?":":W)+q);return H.log=this.log,H}function Q(q){X.save(q),X.namespaces=q,X.names=[],X.skips=[];let W=(typeof q==="string"?q:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let H of W)if(H[0]==="-")X.skips.push(H.slice(1));else X.names.push(H)}function Y(q,W){let H=0,z=0,O=-1,V=0;while(H<q.length)if(z<W.length&&(W[z]===q[H]||W[z]==="*"))if(W[z]==="*")O=z,V=H,z++;else H++,z++;else if(O!==-1)z=O+1,V++,H=V;else return!1;while(z<W.length&&W[z]==="*")z++;return z===W.length}function Z(){let q=[...X.names,...X.skips.map((W)=>"-"+W)].join(",");return X.enable(""),q}function F(q){for(let W of X.skips)if(Y(q,W))return!1;for(let W of X.names)if(Y(q,W))return!0;return!1}function U(q){if(q instanceof Error)return q.stack||q.message;return q}function G(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return X.enable(X.load()),X}ym.exports=gC0});var bm=A((hm,jq)=>{hm.formatArgs=dC0;hm.save=cC0;hm.load=lC0;hm.useColors=mC0;hm.storage=nC0();hm.destroy=(()=>{let $=!1;return()=>{if(!$)$=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();hm.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function mC0(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let $;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&($=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt($[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function dC0($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+jq.exports.humanize(this.diff),!this.useColors)return;let D="color: "+this.color;$.splice(1,0,D,"color: inherit");let X=0,J=0;$[0].replace(/%[a-zA-Z%]/g,(Q)=>{if(Q==="%%")return;if(X++,Q==="%c")J=X}),$.splice(J,0,D)}hm.log=console.debug||console.log||(()=>{});function cC0($){try{if($)hm.storage.setItem("debug",$);else hm.storage.removeItem("debug")}catch(D){}}function lC0(){let $;try{$=hm.storage.getItem("debug")||hm.storage.getItem("DEBUG")}catch(D){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function nC0(){try{return localStorage}catch($){}}jq.exports=Rw()(hm);var{formatters:iC0}=jq.exports;iC0.j=function($){try{return JSON.stringify($)}catch(D){return"[UnexpectedJSONParseError]: "+D.message}}});var mm=A((Vz$,gm)=>{gm.exports=($,D=process.argv)=>{let X=$.startsWith("-")?"":$.length===1?"-":"--",J=D.indexOf(X+$),Q=D.indexOf("--");return J!==-1&&(Q===-1||J<Q)}});var lm=A((Kz$,cm)=>{var $T0=a("os"),dm=a("tty"),_6=mm(),{env:r1}=process,M9;if(_6("no-color")||_6("no-colors")||_6("color=false")||_6("color=never"))M9=0;else if(_6("color")||_6("colors")||_6("color=true")||_6("color=always"))M9=1;if("FORCE_COLOR"in r1)if(r1.FORCE_COLOR==="true")M9=1;else if(r1.FORCE_COLOR==="false")M9=0;else M9=r1.FORCE_COLOR.length===0?1:Math.min(parseInt(r1.FORCE_COLOR,10),3);function Aw($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function Iw($,D){if(M9===0)return 0;if(_6("color=16m")||_6("color=full")||_6("color=truecolor"))return 3;if(_6("color=256"))return 2;if($&&!D&&M9===void 0)return 0;let X=M9||0;if(r1.TERM==="dumb")return X;if(process.platform==="win32"){let J=$T0.release().split(".");if(Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in r1){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((J)=>(J in r1))||r1.CI_NAME==="codeship")return 1;return X}if("TEAMCITY_VERSION"in r1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r1.TEAMCITY_VERSION)?1:0;if(r1.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in r1){let J=parseInt((r1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r1.TERM_PROGRAM){case"iTerm.app":return J>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(r1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r1.TERM))return 1;if("COLORTERM"in r1)return 1;return X}function DT0($){let D=Iw($,$&&$.isTTY);return Aw(D)}cm.exports={supportsColor:DT0,stdout:Aw(Iw(!0,dm.isatty(1))),stderr:Aw(Iw(!0,dm.isatty(2)))}});var rm=A((im,Tq)=>{var XT0=a("tty"),Cq=a("util");im.init=GT0;im.log=ZT0;im.formatArgs=QT0;im.save=FT0;im.load=UT0;im.useColors=JT0;im.destroy=Cq.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");im.colors=[6,2,3,4,5,1];try{let $=lm();if($&&($.stderr||$).level>=2)im.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch($){}im.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,D)=>{let X=D.substring(6).toLowerCase().replace(/_([a-z])/g,(Q,Y)=>{return Y.toUpperCase()}),J=process.env[D];if(/^(yes|on|true|enabled)$/i.test(J))J=!0;else if(/^(no|off|false|disabled)$/i.test(J))J=!1;else if(J==="null")J=null;else J=Number(J);return $[X]=J,$},{});function JT0(){return"colors"in im.inspectOpts?Boolean(im.inspectOpts.colors):XT0.isatty(process.stderr.fd)}function QT0($){let{namespace:D,useColors:X}=this;if(X){let J=this.color,Q="\x1B[3"+(J<8?J:"8;5;"+J),Y=` ${Q};1m${D} \x1B[0m`;$[0]=Y+$[0].split(`
|
|
129
129
|
`).join(`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.24.1",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"test:ios-verify-app": "bun test/test-ios-verify-app.mjs",
|
|
158
158
|
"test:platform-flow-contract": "bun test/test-platform-flow-contract.mjs",
|
|
159
159
|
"test:tail-engine-shared": "bun test/test-tail-engine-shared.mjs",
|
|
160
|
-
"test": "bun run build && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:init-replay && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-app-verification && bun run test:android-rename",
|
|
160
|
+
"test": "bun run build && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:init-replay && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode",
|
|
161
161
|
"test:build-platform-selection": "bun test/test-build-platform-selection.mjs",
|
|
162
162
|
"test:ai-log-capture": "bun test/test-ai-log-capture.mjs",
|
|
163
163
|
"test:ai-analyze-flow": "bun test/test-ai-analyze-flow.mjs",
|
|
@@ -185,10 +185,19 @@
|
|
|
185
185
|
"test:support-upload-prompt": "bun test/test-support-upload-prompt.mjs",
|
|
186
186
|
"test:support-bundle-files": "bun test/test-support-bundle-files.mjs",
|
|
187
187
|
"test:mcp-live-update-onboarding": "bun test/test-mcp-live-update-onboarding.mjs",
|
|
188
|
+
"test:app-set-options": "bun test/test-app-set-options.mjs",
|
|
188
189
|
"test:android-reporting-api": "bun test/test-android-reporting-api.mjs",
|
|
189
190
|
"test:android-app-verification": "bun test/test-android-app-verification.mjs",
|
|
190
191
|
"test:android-rename": "bun test/test-android-rename.mjs",
|
|
191
|
-
"test:
|
|
192
|
+
"test:appflow-auth": "bun test/test-appflow-auth.mjs",
|
|
193
|
+
"test:appflow-api-map": "bun test/test-appflow-api-map.mjs",
|
|
194
|
+
"test:appflow-validate": "bun test/test-appflow-validate.mjs",
|
|
195
|
+
"test:appflow-flow": "bun test/test-appflow-flow.mjs",
|
|
196
|
+
"test:appflow-gapfill": "bun test/test-appflow-gapfill.mjs",
|
|
197
|
+
"test:appflow-engine": "bun test/test-appflow-engine.mjs",
|
|
198
|
+
"test:appflow-tail": "bun test/test-appflow-tail.mjs",
|
|
199
|
+
"test:appflow-fetch": "bun test/test-appflow-fetch.mjs",
|
|
200
|
+
"test:appflow-sa-decode": "bun test/test-appflow-sa-decode.mjs"
|
|
192
201
|
},
|
|
193
202
|
"dependencies": {
|
|
194
203
|
"@inkjs/ui": "^2.0.0",
|