@mutagent/cli 0.2.154 → 0.2.157
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/agent-build-worker.js +1 -1
- package/dist/bin/cli.js +48 -35
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var tkt=Object.create;var{getPrototypeOf:rkt,defineProperty:Ube,getOwnPropertyNames:nkt}=Object;var kJe=Object.prototype.hasOwnProperty;function ikt(u){return this[u]}var skt,akt,okt=(u,d,S)=>{var A=u!=null&&typeof u==="object";if(A){var W=d?skt??=new WeakMap:akt??=new WeakMap,ae=W.get(u);if(ae)return ae}S=u!=null?tkt(rkt(u)):{};let we=d||!u||!u.__esModule||!kJe.call(u,"default")?Ube(S,"default",{value:u,enumerable:!0}):S;if(u&&typeof u==="object"||typeof u==="function"){for(let nt of nkt(u))if(!kJe.call(we,nt))Ube(we,nt,{get:ikt.bind(u,nt),enumerable:!0})}if(A)W.set(u,we);return we};var Vs=(u,d)=>()=>(d||u((d={exports:{}}).exports,d),d.exports);var ckt=(u)=>u;function lkt(u,d){this[u]=ckt.bind(null,d)}var ukt=(u,d)=>{for(var S in d)Ube(u,S,{get:d[S],enumerable:!0,configurable:!0,set:lkt.bind(d,S)})};var w0=import.meta.require;var NJe=Vs(function(hkt){var AJe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");hkt.encode=function(u){if(0<=u&&u<AJe.length)return AJe[u];throw TypeError("Must be between 0 and 63: "+u)};hkt.decode=function(u){var d=65,S=90,A=97,W=122,ae=48,we=57,nt=43,Tt=47,Jt=26,Ir=52;if(d<=u&&u<=S)return u-d;if(A<=u&&u<=W)return u-A+Jt;if(ae<=u&&u<=we)return u-ae+Ir;if(u==nt)return 62;if(u==Tt)return 63;return-1}});var Vbe=Vs(function(Tkt){var OJe=NJe(),qbe=5,FJe=1<<qbe,LJe=FJe-1,MJe=FJe;function bkt(u){return u<0?(-u<<1)+1:(u<<1)+0}function Skt(u){var d=(u&1)===1,S=u>>1;return d?-S:S}Tkt.encode=function(d){var S="",A,W=bkt(d);do{if(A=W&LJe,W>>>=qbe,W>0)A|=MJe;S+=OJe.encode(A)}while(W>0);return S};Tkt.decode=function(d,S,A){var W=d.length,ae=0,we=0,nt,Tt;do{if(S>=W)throw Error("Expected more digits in base 64 VLQ value.");if(Tt=OJe.decode(d.charCodeAt(S++)),Tt===-1)throw Error("Invalid base64 digit: "+d.charAt(S-1));nt=!!(Tt&MJe),Tt&=LJe,ae=ae+(Tt<<we),we+=qbe}while(nt);A.value=Skt(ae),A.rest=S}});var g5=Vs(function(zJe){function Ckt(u,d,S){if(d in u)return u[d];else if(arguments.length===3)return S;else throw Error('"'+d+'" is a required argument.')}zJe.getArg=Ckt;var RJe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Ekt=/^data:.+\,.+$/;function MU(u){var d=u.match(RJe);if(!d)return null;return{scheme:d[1],auth:d[2],host:d[3],port:d[4],path:d[5]}}zJe.urlParse=MU;function d5(u){var d="";if(u.scheme)d+=u.scheme+":";if(d+="//",u.auth)d+=u.auth+"@";if(u.host)d+=u.host;if(u.port)d+=":"+u.port;if(u.path)d+=u.path;return d}zJe.urlGenerate=d5;function Gbe(u){var d=u,S=MU(u);if(S){if(!S.path)return u;d=S.path}var A=zJe.isAbsolute(d),W=d.split(/\/+/);for(var ae,we=0,nt=W.length-1;nt>=0;nt--)if(ae=W[nt],ae===".")W.splice(nt,1);else if(ae==="..")we++;else if(we>0)if(ae==="")W.splice(nt+1,we),we=0;else W.splice(nt,2),we--;if(d=W.join("/"),d==="")d=A?"/":".";if(S)return S.path=d,d5(S);return d}zJe.normalize=Gbe;function jJe(u,d){if(u==="")u=".";if(d==="")d=".";var S=MU(d),A=MU(u);if(A)u=A.path||"/";if(S&&!S.scheme){if(A)S.scheme=A.scheme;return d5(S)}if(S||d.match(Ekt))return d;if(A&&!A.host&&!A.path)return A.host=d,d5(A);var W=d.charAt(0)==="/"?d:Gbe(u.replace(/\/+$/,"")+"/"+d);if(A)return A.path=W,d5(A);return W}zJe.join=jJe;zJe.isAbsolute=function(u){return u.charAt(0)==="/"||RJe.test(u)};function wkt(u,d){if(u==="")u=".";u=u.replace(/\/$/,"");var S=0;while(d.indexOf(u+"/")!==0){var A=u.lastIndexOf("/");if(A<0)return d;if(u=u.slice(0,A),u.match(/^([^\/]+:\/)?\/*$/))return d;++S}return Array(S+1).join("../")+d.substr(u.length+1)}zJe.relative=wkt;var BJe=function(){var u=Object.create(null);return!("__proto__"in u)}();function JJe(u){return u}function Pkt(u){if(UJe(u))return"$"+u;return u}zJe.toSetString=BJe?JJe:Pkt;function Dkt(u){if(UJe(u))return u.slice(1);return u}zJe.fromSetString=BJe?JJe:Dkt;function UJe(u){if(!u)return!1;var d=u.length;if(d<9)return!1;if(u.charCodeAt(d-1)!==95||u.charCodeAt(d-2)!==95||u.charCodeAt(d-3)!==111||u.charCodeAt(d-4)!==116||u.charCodeAt(d-5)!==111||u.charCodeAt(d-6)!==114||u.charCodeAt(d-7)!==112||u.charCodeAt(d-8)!==95||u.charCodeAt(d-9)!==95)return!1;for(var S=d-10;S>=0;S--)if(u.charCodeAt(S)!==36)return!1;return!0}function Ikt(u,d,S){var A=m5(u.source,d.source);if(A!==0)return A;if(A=u.originalLine-d.originalLine,A!==0)return A;if(A=u.originalColumn-d.originalColumn,A!==0||S)return A;if(A=u.generatedColumn-d.generatedColumn,A!==0)return A;if(A=u.generatedLine-d.generatedLine,A!==0)return A;return m5(u.name,d.name)}zJe.compareByOriginalPositions=Ikt;function Akt(u,d,S){var A=u.generatedLine-d.generatedLine;if(A!==0)return A;if(A=u.generatedColumn-d.generatedColumn,A!==0||S)return A;if(A=m5(u.source,d.source),A!==0)return A;if(A=u.originalLine-d.originalLine,A!==0)return A;if(A=u.originalColumn-d.originalColumn,A!==0)return A;return m5(u.name,d.name)}zJe.compareByGeneratedPositionsDeflated=Akt;function m5(u,d){if(u===d)return 0;if(u===null)return 1;if(d===null)return-1;if(u>d)return 1;return-1}function Nkt(u,d){var S=u.generatedLine-d.generatedLine;if(S!==0)return S;if(S=u.generatedColumn-d.generatedColumn,S!==0)return S;if(S=m5(u.source,d.source),S!==0)return S;if(S=u.originalLine-d.originalLine,S!==0)return S;if(S=u.originalColumn-d.originalColumn,S!==0)return S;return m5(u.name,d.name)}zJe.compareByGeneratedPositionsInflated=Nkt;function Okt(u){return JSON.parse(u.replace(/^\)]}'[^\n]*\n/,""))}zJe.parseSourceMapInput=Okt;function Fkt(u,d,S){if(d=d||"",u){if(u[u.length-1]!=="/"&&d[0]!=="/")u+="/";d=u+d}if(S){var A=MU(S);if(!A)throw Error("sourceMapURL could not be parsed");if(A.path){var W=A.path.lastIndexOf("/");if(W>=0)A.path=A.path.substring(0,W+1)}d=jJe(d5(A),d)}return Gbe(d)}zJe.computeSourceURL=Fkt});var Kbe=Vs(function(Kkt){var $be=g5(),Hbe=Object.prototype.hasOwnProperty,N4=typeof Map<"u";function Dw(){this._array=[],this._set=N4?new Map:Object.create(null)}Dw.fromArray=function(d,S){var A=new Dw;for(var W=0,ae=d.length;W<ae;W++)A.add(d[W],S);return A};Dw.prototype.size=function(){return N4?this._set.size:Object.getOwnPropertyNames(this._set).length};Dw.prototype.add=function(d,S){var A=N4?d:$be.toSetString(d),W=N4?this.has(d):Hbe.call(this._set,A),ae=this._array.length;if(!W||S)this._array.push(d);if(!W)if(N4)this._set.set(d,ae);else this._set[A]=ae};Dw.prototype.has=function(d){if(N4)return this._set.has(d);else{var S=$be.toSetString(d);return Hbe.call(this._set,S)}};Dw.prototype.indexOf=function(d){if(N4){var S=this._set.get(d);if(S>=0)return S}else{var A=$be.toSetString(d);if(Hbe.call(this._set,A))return this._set[A]}throw Error('"'+d+'" is not in the set.')};Dw.prototype.at=function(d){if(d>=0&&d<this._array.length)return this._array[d];throw Error("No element indexed by "+d)};Dw.prototype.toArray=function(){return this._array.slice()};Kkt.ArraySet=Dw});var qJe=Vs(function(Ykt){var WJe=g5();function Xkt(u,d){var S=u.generatedLine,A=d.generatedLine,W=u.generatedColumn,ae=d.generatedColumn;return A>S||A==S&&ae>=W||WJe.compareByGeneratedPositionsInflated(u,d)<=0}function ete(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}ete.prototype.unsortedForEach=function(d,S){this._array.forEach(d,S)};ete.prototype.add=function(d){if(Xkt(this._last,d))this._last=d,this._array.push(d);else this._sorted=!1,this._array.push(d)};ete.prototype.toArray=function(){if(!this._sorted)this._array.sort(WJe.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};Ykt.MappingList=ete});var Qbe=Vs(function(tCt){var RU=Vbe(),Sm=g5(),tte=Kbe().ArraySet,eCt=qJe().MappingList;function XS(u){if(!u)u={};this._file=Sm.getArg(u,"file",null),this._sourceRoot=Sm.getArg(u,"sourceRoot",null),this._skipValidation=Sm.getArg(u,"skipValidation",!1),this._sources=new tte,this._names=new tte,this._mappings=new eCt,this._sourcesContents=null}XS.prototype._version=3;XS.fromSourceMap=function(d){var S=d.sourceRoot,A=new XS({file:d.file,sourceRoot:S});return d.eachMapping(function(W){var ae={generated:{line:W.generatedLine,column:W.generatedColumn}};if(W.source!=null){if(ae.source=W.source,S!=null)ae.source=Sm.relative(S,ae.source);if(ae.original={line:W.originalLine,column:W.originalColumn},W.name!=null)ae.name=W.name}A.addMapping(ae)}),d.sources.forEach(function(W){var ae=W;if(S!==null)ae=Sm.relative(S,W);if(!A._sources.has(ae))A._sources.add(ae);var we=d.sourceContentFor(W);if(we!=null)A.setSourceContent(W,we)}),A};XS.prototype.addMapping=function(d){var S=Sm.getArg(d,"generated"),A=Sm.getArg(d,"original",null),W=Sm.getArg(d,"source",null),ae=Sm.getArg(d,"name",null);if(!this._skipValidation)this._validateMapping(S,A,W,ae);if(W!=null){if(W=String(W),!this._sources.has(W))this._sources.add(W)}if(ae!=null){if(ae=String(ae),!this._names.has(ae))this._names.add(ae)}this._mappings.add({generatedLine:S.line,generatedColumn:S.column,originalLine:A!=null&&A.line,originalColumn:A!=null&&A.column,source:W,name:ae})};XS.prototype.setSourceContent=function(d,S){var A=d;if(this._sourceRoot!=null)A=Sm.relative(this._sourceRoot,A);if(S!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[Sm.toSetString(A)]=S}else if(this._sourcesContents){if(delete this._sourcesContents[Sm.toSetString(A)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};XS.prototype.applySourceMap=function(d,S,A){var W=S;if(S==null){if(d.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);W=d.file}var ae=this._sourceRoot;if(ae!=null)W=Sm.relative(ae,W);var we=new tte,nt=new tte;this._mappings.unsortedForEach(function(Tt){if(Tt.source===W&&Tt.originalLine!=null){var Jt=d.originalPositionFor({line:Tt.originalLine,column:Tt.originalColumn});if(Jt.source!=null){if(Tt.source=Jt.source,A!=null)Tt.source=Sm.join(A,Tt.source);if(ae!=null)Tt.source=Sm.relative(ae,Tt.source);if(Tt.originalLine=Jt.line,Tt.originalColumn=Jt.column,Jt.name!=null)Tt.name=Jt.name}}var Ir=Tt.source;if(Ir!=null&&!we.has(Ir))we.add(Ir);var Ar=Tt.name;if(Ar!=null&&!nt.has(Ar))nt.add(Ar)},this),this._sources=we,this._names=nt,d.sources.forEach(function(Tt){var Jt=d.sourceContentFor(Tt);if(Jt!=null){if(A!=null)Tt=Sm.join(A,Tt);if(ae!=null)Tt=Sm.relative(ae,Tt);this.setSourceContent(Tt,Jt)}},this)};XS.prototype._validateMapping=function(d,S,A,W){if(S&&typeof S.line!=="number"&&typeof S.column!=="number")throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(d&&"line"in d&&"column"in d&&d.line>0&&d.column>=0&&!S&&!A&&!W)return;else if(d&&"line"in d&&"column"in d&&S&&"line"in S&&"column"in S&&d.line>0&&d.column>=0&&S.line>0&&S.column>=0&&A)return;else throw Error("Invalid mapping: "+JSON.stringify({generated:d,source:A,original:S,name:W}))};XS.prototype._serializeMappings=function(){var d=0,S=1,A=0,W=0,ae=0,we=0,nt="",Tt,Jt,Ir,Ar,Ee=this._mappings.toArray();for(var Yn=0,Ut=Ee.length;Yn<Ut;Yn++){if(Jt=Ee[Yn],Tt="",Jt.generatedLine!==S){d=0;while(Jt.generatedLine!==S)Tt+=";",S++}else if(Yn>0){if(!Sm.compareByGeneratedPositionsInflated(Jt,Ee[Yn-1]))continue;Tt+=","}if(Tt+=RU.encode(Jt.generatedColumn-d),d=Jt.generatedColumn,Jt.source!=null){if(Ar=this._sources.indexOf(Jt.source),Tt+=RU.encode(Ar-we),we=Ar,Tt+=RU.encode(Jt.originalLine-1-W),W=Jt.originalLine-1,Tt+=RU.encode(Jt.originalColumn-A),A=Jt.originalColumn,Jt.name!=null)Ir=this._names.indexOf(Jt.name),Tt+=RU.encode(Ir-ae),ae=Ir}nt+=Tt}return nt};XS.prototype._generateSourcesContent=function(d,S){return d.map(function(A){if(!this._sourcesContents)return null;if(S!=null)A=Sm.relative(S,A);var W=Sm.toSetString(A);return Object.prototype.hasOwnProperty.call(this._sourcesContents,W)?this._sourcesContents[W]:null},this)};XS.prototype.toJSON=function(){var d={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)d.file=this._file;if(this._sourceRoot!=null)d.sourceRoot=this._sourceRoot;if(this._sourcesContents)d.sourcesContent=this._generateSourcesContent(d.sources,d.sourceRoot);return d};XS.prototype.toString=function(){return JSON.stringify(this.toJSON())};tCt.SourceMapGenerator=XS});var GJe=Vs(function(nCt){nCt.GREATEST_LOWER_BOUND=1;nCt.LEAST_UPPER_BOUND=2;function Xbe(u,d,S,A,W,ae){var we=Math.floor((d-u)/2)+u,nt=W(S,A[we],!0);if(nt===0)return we;else if(nt>0){if(d-we>1)return Xbe(we,d,S,A,W,ae);if(ae==nCt.LEAST_UPPER_BOUND)return d<A.length?d:-1;else return we}else{if(we-u>1)return Xbe(u,we,S,A,W,ae);if(ae==nCt.LEAST_UPPER_BOUND)return we;else return u<0?-1:u}}nCt.search=function(d,S,A,W){if(S.length===0)return-1;var ae=Xbe(-1,S.length,d,S,A,W||nCt.GREATEST_LOWER_BOUND);if(ae<0)return-1;while(ae-1>=0){if(A(S[ae],S[ae-1],!0)!==0)break;--ae}return ae}});var $Je=Vs(function(aCt){function Zbe(u,d,S){var A=u[d];u[d]=u[S],u[S]=A}function sCt(u,d){return Math.round(u+Math.random()*(d-u))}function eSe(u,d,S,A){if(S<A){var W=sCt(S,A),ae=S-1;Zbe(u,W,A);var we=u[A];for(var nt=S;nt<A;nt++)if(d(u[nt],we)<=0)ae+=1,Zbe(u,ae,nt);Zbe(u,ae+1,nt);var Tt=ae+1;eSe(u,d,S,Tt-1),eSe(u,d,Tt+1,A)}}aCt.quickSort=function(u,d){eSe(u,d,0,u.length-1)}});var KJe=Vs(function(lCt){var oo=g5(),tSe=GJe(),h5=Kbe().ArraySet,cCt=Vbe(),jU=$Je().quickSort;function up(u,d){var S=u;if(typeof u==="string")S=oo.parseSourceMapInput(u);return S.sections!=null?new FT(S,d):new Ah(S,d)}up.fromSourceMap=function(u,d){return Ah.fromSourceMap(u,d)};up.prototype._version=3;up.prototype.__generatedMappings=null;Object.defineProperty(up.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});up.prototype.__originalMappings=null;Object.defineProperty(up.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});up.prototype._charIsMappingSeparator=function(d,S){var A=d.charAt(S);return A===";"||A===","};up.prototype._parseMappings=function(d,S){throw Error("Subclasses must implement _parseMappings")};up.GENERATED_ORDER=1;up.ORIGINAL_ORDER=2;up.GREATEST_LOWER_BOUND=1;up.LEAST_UPPER_BOUND=2;up.prototype.eachMapping=function(d,S,A){var W=S||null,ae=A||up.GENERATED_ORDER,we;switch(ae){case up.GENERATED_ORDER:we=this._generatedMappings;break;case up.ORIGINAL_ORDER:we=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var nt=this.sourceRoot;we.map(function(Tt){var Jt=Tt.source===null?null:this._sources.at(Tt.source);return Jt=oo.computeSourceURL(nt,Jt,this._sourceMapURL),{source:Jt,generatedLine:Tt.generatedLine,generatedColumn:Tt.generatedColumn,originalLine:Tt.originalLine,originalColumn:Tt.originalColumn,name:Tt.name===null?null:this._names.at(Tt.name)}},this).forEach(d,W)};up.prototype.allGeneratedPositionsFor=function(d){var S=oo.getArg(d,"line"),A={source:oo.getArg(d,"source"),originalLine:S,originalColumn:oo.getArg(d,"column",0)};if(A.source=this._findSourceIndex(A.source),A.source<0)return[];var W=[],ae=this._findMapping(A,this._originalMappings,"originalLine","originalColumn",oo.compareByOriginalPositions,tSe.LEAST_UPPER_BOUND);if(ae>=0){var we=this._originalMappings[ae];if(d.column===void 0){var nt=we.originalLine;while(we&&we.originalLine===nt)W.push({line:oo.getArg(we,"generatedLine",null),column:oo.getArg(we,"generatedColumn",null),lastColumn:oo.getArg(we,"lastGeneratedColumn",null)}),we=this._originalMappings[++ae]}else{var Tt=we.originalColumn;while(we&&we.originalLine===S&&we.originalColumn==Tt)W.push({line:oo.getArg(we,"generatedLine",null),column:oo.getArg(we,"generatedColumn",null),lastColumn:oo.getArg(we,"lastGeneratedColumn",null)}),we=this._originalMappings[++ae]}}return W};lCt.SourceMapConsumer=up;function Ah(u,d){var S=u;if(typeof u==="string")S=oo.parseSourceMapInput(u);var A=oo.getArg(S,"version"),W=oo.getArg(S,"sources"),ae=oo.getArg(S,"names",[]),we=oo.getArg(S,"sourceRoot",null),nt=oo.getArg(S,"sourcesContent",null),Tt=oo.getArg(S,"mappings"),Jt=oo.getArg(S,"file",null);if(A!=this._version)throw Error("Unsupported version: "+A);if(we)we=oo.normalize(we);W=W.map(String).map(oo.normalize).map(function(Ir){return we&&oo.isAbsolute(we)&&oo.isAbsolute(Ir)?oo.relative(we,Ir):Ir}),this._names=h5.fromArray(ae.map(String),!0),this._sources=h5.fromArray(W,!0),this._absoluteSources=this._sources.toArray().map(function(Ir){return oo.computeSourceURL(we,Ir,d)}),this.sourceRoot=we,this.sourcesContent=nt,this._mappings=Tt,this._sourceMapURL=d,this.file=Jt}Ah.prototype=Object.create(up.prototype);Ah.prototype.consumer=up;Ah.prototype._findSourceIndex=function(u){var d=u;if(this.sourceRoot!=null)d=oo.relative(this.sourceRoot,d);if(this._sources.has(d))return this._sources.indexOf(d);var S;for(S=0;S<this._absoluteSources.length;++S)if(this._absoluteSources[S]==u)return S;return-1};Ah.fromSourceMap=function(d,S){var A=Object.create(Ah.prototype),W=A._names=h5.fromArray(d._names.toArray(),!0),ae=A._sources=h5.fromArray(d._sources.toArray(),!0);A.sourceRoot=d._sourceRoot,A.sourcesContent=d._generateSourcesContent(A._sources.toArray(),A.sourceRoot),A.file=d._file,A._sourceMapURL=S,A._absoluteSources=A._sources.toArray().map(function(Yn){return oo.computeSourceURL(A.sourceRoot,Yn,S)});var we=d._mappings.toArray().slice(),nt=A.__generatedMappings=[],Tt=A.__originalMappings=[];for(var Jt=0,Ir=we.length;Jt<Ir;Jt++){var Ar=we[Jt],Ee=new HJe;if(Ee.generatedLine=Ar.generatedLine,Ee.generatedColumn=Ar.generatedColumn,Ar.source){if(Ee.source=ae.indexOf(Ar.source),Ee.originalLine=Ar.originalLine,Ee.originalColumn=Ar.originalColumn,Ar.name)Ee.name=W.indexOf(Ar.name);Tt.push(Ee)}nt.push(Ee)}return jU(A.__originalMappings,oo.compareByOriginalPositions),A};Ah.prototype._version=3;Object.defineProperty(Ah.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function HJe(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Ah.prototype._parseMappings=function(d,S){var A=1,W=0,ae=0,we=0,nt=0,Tt=0,Jt=d.length,Ir=0,Ar={},Ee={},Yn=[],Ut=[],ct,ji,Ii,Va,Co;while(Ir<Jt)if(d.charAt(Ir)===";")A++,Ir++,W=0;else if(d.charAt(Ir)===",")Ir++;else{ct=new HJe,ct.generatedLine=A;for(Va=Ir;Va<Jt;Va++)if(this._charIsMappingSeparator(d,Va))break;if(ji=d.slice(Ir,Va),Ii=Ar[ji],Ii)Ir+=ji.length;else{Ii=[];while(Ir<Va)cCt.decode(d,Ir,Ee),Co=Ee.value,Ir=Ee.rest,Ii.push(Co);if(Ii.length===2)throw Error("Found a source, but no line and column");if(Ii.length===3)throw Error("Found a source and line, but no column");Ar[ji]=Ii}if(ct.generatedColumn=W+Ii[0],W=ct.generatedColumn,Ii.length>1){if(ct.source=nt+Ii[1],nt+=Ii[1],ct.originalLine=ae+Ii[2],ae=ct.originalLine,ct.originalLine+=1,ct.originalColumn=we+Ii[3],we=ct.originalColumn,Ii.length>4)ct.name=Tt+Ii[4],Tt+=Ii[4]}if(Ut.push(ct),typeof ct.originalLine==="number")Yn.push(ct)}jU(Ut,oo.compareByGeneratedPositionsDeflated),this.__generatedMappings=Ut,jU(Yn,oo.compareByOriginalPositions),this.__originalMappings=Yn};Ah.prototype._findMapping=function(d,S,A,W,ae,we){if(d[A]<=0)throw TypeError("Line must be greater than or equal to 1, got "+d[A]);if(d[W]<0)throw TypeError("Column must be greater than or equal to 0, got "+d[W]);return tSe.search(d,S,ae,we)};Ah.prototype.computeColumnSpans=function(){for(var d=0;d<this._generatedMappings.length;++d){var S=this._generatedMappings[d];if(d+1<this._generatedMappings.length){var A=this._generatedMappings[d+1];if(S.generatedLine===A.generatedLine){S.lastGeneratedColumn=A.generatedColumn-1;continue}}S.lastGeneratedColumn=1/0}};Ah.prototype.originalPositionFor=function(d){var S={generatedLine:oo.getArg(d,"line"),generatedColumn:oo.getArg(d,"column")},A=this._findMapping(S,this._generatedMappings,"generatedLine","generatedColumn",oo.compareByGeneratedPositionsDeflated,oo.getArg(d,"bias",up.GREATEST_LOWER_BOUND));if(A>=0){var W=this._generatedMappings[A];if(W.generatedLine===S.generatedLine){var ae=oo.getArg(W,"source",null);if(ae!==null)ae=this._sources.at(ae),ae=oo.computeSourceURL(this.sourceRoot,ae,this._sourceMapURL);var we=oo.getArg(W,"name",null);if(we!==null)we=this._names.at(we);return{source:ae,line:oo.getArg(W,"originalLine",null),column:oo.getArg(W,"originalColumn",null),name:we}}}return{source:null,line:null,column:null,name:null}};Ah.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(d){return d==null})};Ah.prototype.sourceContentFor=function(d,S){if(!this.sourcesContent)return null;var A=this._findSourceIndex(d);if(A>=0)return this.sourcesContent[A];var W=d;if(this.sourceRoot!=null)W=oo.relative(this.sourceRoot,W);var ae;if(this.sourceRoot!=null&&(ae=oo.urlParse(this.sourceRoot))){var we=W.replace(/^file:\/\//,"");if(ae.scheme=="file"&&this._sources.has(we))return this.sourcesContent[this._sources.indexOf(we)];if((!ae.path||ae.path=="/")&&this._sources.has("/"+W))return this.sourcesContent[this._sources.indexOf("/"+W)]}if(S)return null;else throw Error('"'+W+'" is not in the SourceMap.')};Ah.prototype.generatedPositionFor=function(d){var S=oo.getArg(d,"source");if(S=this._findSourceIndex(S),S<0)return{line:null,column:null,lastColumn:null};var A={source:S,originalLine:oo.getArg(d,"line"),originalColumn:oo.getArg(d,"column")},W=this._findMapping(A,this._originalMappings,"originalLine","originalColumn",oo.compareByOriginalPositions,oo.getArg(d,"bias",up.GREATEST_LOWER_BOUND));if(W>=0){var ae=this._originalMappings[W];if(ae.source===A.source)return{line:oo.getArg(ae,"generatedLine",null),column:oo.getArg(ae,"generatedColumn",null),lastColumn:oo.getArg(ae,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};lCt.BasicSourceMapConsumer=Ah;function FT(u,d){var S=u;if(typeof u==="string")S=oo.parseSourceMapInput(u);var A=oo.getArg(S,"version"),W=oo.getArg(S,"sections");if(A!=this._version)throw Error("Unsupported version: "+A);this._sources=new h5,this._names=new h5;var ae={line:-1,column:0};this._sections=W.map(function(we){if(we.url)throw Error("Support for url field in sections not implemented.");var nt=oo.getArg(we,"offset"),Tt=oo.getArg(nt,"line"),Jt=oo.getArg(nt,"column");if(Tt<ae.line||Tt===ae.line&&Jt<ae.column)throw Error("Section offsets must be ordered and non-overlapping.");return ae=nt,{generatedOffset:{generatedLine:Tt+1,generatedColumn:Jt+1},consumer:new up(oo.getArg(we,"map"),d)}})}FT.prototype=Object.create(up.prototype);FT.prototype.constructor=up;FT.prototype._version=3;Object.defineProperty(FT.prototype,"sources",{get:function(){var u=[];for(var d=0;d<this._sections.length;d++)for(var S=0;S<this._sections[d].consumer.sources.length;S++)u.push(this._sections[d].consumer.sources[S]);return u}});FT.prototype.originalPositionFor=function(d){var S={generatedLine:oo.getArg(d,"line"),generatedColumn:oo.getArg(d,"column")},A=tSe.search(S,this._sections,function(ae,we){var nt=ae.generatedLine-we.generatedOffset.generatedLine;if(nt)return nt;return ae.generatedColumn-we.generatedOffset.generatedColumn}),W=this._sections[A];if(!W)return{source:null,line:null,column:null,name:null};return W.consumer.originalPositionFor({line:S.generatedLine-(W.generatedOffset.generatedLine-1),column:S.generatedColumn-(W.generatedOffset.generatedLine===S.generatedLine?W.generatedOffset.generatedColumn-1:0),bias:d.bias})};FT.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(d){return d.consumer.hasContentsOfAllSources()})};FT.prototype.sourceContentFor=function(d,S){for(var A=0;A<this._sections.length;A++){var W=this._sections[A],ae=W.consumer.sourceContentFor(d,!0);if(ae)return ae}if(S)return null;else throw Error('"'+d+'" is not in the SourceMap.')};FT.prototype.generatedPositionFor=function(d){for(var S=0;S<this._sections.length;S++){var A=this._sections[S];if(A.consumer._findSourceIndex(oo.getArg(d,"source"))===-1)continue;var W=A.consumer.generatedPositionFor(d);if(W){var ae={line:W.line+(A.generatedOffset.generatedLine-1),column:W.column+(A.generatedOffset.generatedLine===W.line?A.generatedOffset.generatedColumn-1:0)};return ae}}return{line:null,column:null}};FT.prototype._parseMappings=function(d,S){this.__generatedMappings=[],this.__originalMappings=[];for(var A=0;A<this._sections.length;A++){var W=this._sections[A],ae=W.consumer._generatedMappings;for(var we=0;we<ae.length;we++){var nt=ae[we],Tt=W.consumer._sources.at(nt.source);Tt=oo.computeSourceURL(W.consumer.sourceRoot,Tt,this._sourceMapURL),this._sources.add(Tt),Tt=this._sources.indexOf(Tt);var Jt=null;if(nt.name)Jt=W.consumer._names.at(nt.name),this._names.add(Jt),Jt=this._names.indexOf(Jt);var Ir={source:Tt,generatedLine:nt.generatedLine+(W.generatedOffset.generatedLine-1),generatedColumn:nt.generatedColumn+(W.generatedOffset.generatedLine===nt.generatedLine?W.generatedOffset.generatedColumn-1:0),originalLine:nt.originalLine,originalColumn:nt.originalColumn,name:Jt};if(this.__generatedMappings.push(Ir),typeof Ir.originalLine==="number")this.__originalMappings.push(Ir)}}jU(this.__generatedMappings,oo.compareByGeneratedPositionsDeflated),jU(this.__originalMappings,oo.compareByOriginalPositions)};lCt.IndexedSourceMapConsumer=FT});var QJe=Vs(function(gCt){var pCt=Qbe().SourceMapGenerator,rte=g5(),dCt=/(\r?\n)/,mCt=10,y5="$$$isSourceNode$$$";function lb(u,d,S,A,W){if(this.children=[],this.sourceContents={},this.line=u==null?null:u,this.column=d==null?null:d,this.source=S==null?null:S,this.name=W==null?null:W,this[y5]=!0,A!=null)this.add(A)}lb.fromStringWithSourceMap=function(d,S,A){var W=new lb,ae=d.split(dCt),we=0,nt=function(){var Ee=Ut(),Yn=Ut()||"";return Ee+Yn;function Ut(){return we<ae.length?ae[we++]:void 0}},Tt=1,Jt=0,Ir=null;if(S.eachMapping(function(Ee){if(Ir!==null)if(Tt<Ee.generatedLine)Ar(Ir,nt()),Tt++,Jt=0;else{var Yn=ae[we]||"",Ut=Yn.substr(0,Ee.generatedColumn-Jt);ae[we]=Yn.substr(Ee.generatedColumn-Jt),Jt=Ee.generatedColumn,Ar(Ir,Ut),Ir=Ee;return}while(Tt<Ee.generatedLine)W.add(nt()),Tt++;if(Jt<Ee.generatedColumn){var Yn=ae[we]||"";W.add(Yn.substr(0,Ee.generatedColumn)),ae[we]=Yn.substr(Ee.generatedColumn),Jt=Ee.generatedColumn}Ir=Ee},this),we<ae.length){if(Ir)Ar(Ir,nt());W.add(ae.splice(we).join(""))}return S.sources.forEach(function(Ee){var Yn=S.sourceContentFor(Ee);if(Yn!=null){if(A!=null)Ee=rte.join(A,Ee);W.setSourceContent(Ee,Yn)}}),W;function Ar(Ee,Yn){if(Ee===null||Ee.source===void 0)W.add(Yn);else{var Ut=A?rte.join(A,Ee.source):Ee.source;W.add(new lb(Ee.originalLine,Ee.originalColumn,Ut,Yn,Ee.name))}}};lb.prototype.add=function(d){if(Array.isArray(d))d.forEach(function(S){this.add(S)},this);else if(d[y5]||typeof d==="string"){if(d)this.children.push(d)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};lb.prototype.prepend=function(d){if(Array.isArray(d))for(var S=d.length-1;S>=0;S--)this.prepend(d[S]);else if(d[y5]||typeof d==="string")this.children.unshift(d);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};lb.prototype.walk=function(d){var S;for(var A=0,W=this.children.length;A<W;A++)if(S=this.children[A],S[y5])S.walk(d);else if(S!=="")d(S,{source:this.source,line:this.line,column:this.column,name:this.name})};lb.prototype.join=function(d){var S,A,W=this.children.length;if(W>0){S=[];for(A=0;A<W-1;A++)S.push(this.children[A]),S.push(d);S.push(this.children[A]),this.children=S}return this};lb.prototype.replaceRight=function(d,S){var A=this.children[this.children.length-1];if(A[y5])A.replaceRight(d,S);else if(typeof A==="string")this.children[this.children.length-1]=A.replace(d,S);else this.children.push("".replace(d,S));return this};lb.prototype.setSourceContent=function(d,S){this.sourceContents[rte.toSetString(d)]=S};lb.prototype.walkSourceContents=function(d){for(var S=0,A=this.children.length;S<A;S++)if(this.children[S][y5])this.children[S].walkSourceContents(d);var W=Object.keys(this.sourceContents);for(var S=0,A=W.length;S<A;S++)d(rte.fromSetString(W[S]),this.sourceContents[W[S]])};lb.prototype.toString=function(){var d="";return this.walk(function(S){d+=S}),d};lb.prototype.toStringWithSourceMap=function(d){var S={code:"",line:1,column:0},A=new pCt(d),W=!1,ae=null,we=null,nt=null,Tt=null;return this.walk(function(Jt,Ir){if(S.code+=Jt,Ir.source!==null&&Ir.line!==null&&Ir.column!==null){if(ae!==Ir.source||we!==Ir.line||nt!==Ir.column||Tt!==Ir.name)A.addMapping({source:Ir.source,original:{line:Ir.line,column:Ir.column},generated:{line:S.line,column:S.column},name:Ir.name});ae=Ir.source,we=Ir.line,nt=Ir.column,Tt=Ir.name,W=!0}else if(W)A.addMapping({generated:{line:S.line,column:S.column}}),ae=null,W=!1;for(var Ar=0,Ee=Jt.length;Ar<Ee;Ar++)if(Jt.charCodeAt(Ar)===mCt){if(S.line++,S.column=0,Ar+1===Ee)ae=null,W=!1;else if(W)A.addMapping({source:Ir.source,original:{line:Ir.line,column:Ir.column},generated:{line:S.line,column:S.column},name:Ir.name})}else S.column++}),this.walkSourceContents(function(Jt,Ir){A.setSourceContent(Jt,Ir)}),{code:S.code,map:A}};gCt.SourceNode=lb});var XJe=Vs(function(yCt){yCt.SourceMapGenerator=Qbe().SourceMapGenerator;yCt.SourceMapConsumer=KJe().SourceMapConsumer;yCt.SourceNode=QJe().SourceNode});var ZJe=Vs(function(fLt,YJe){var TCt=Object.prototype.toString,rSe=typeof Buffer<"u"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function xCt(u){return TCt.call(u).slice(8,-1)==="ArrayBuffer"}function kCt(u,d,S){d>>>=0;var A=u.byteLength-d;if(A<0)throw RangeError("'offset' is out of bounds");if(S===void 0)S=A;else if(S>>>=0,S>A)throw RangeError("'length' is out of bounds");return rSe?Buffer.from(u.slice(d,d+S)):new Buffer(new Uint8Array(u.slice(d,d+S)))}function CCt(u,d){if(typeof d!=="string"||d==="")d="utf8";if(!Buffer.isEncoding(d))throw TypeError('"encoding" must be a valid string encoding');return rSe?Buffer.from(u,d):new Buffer(u,d)}function ECt(u,d,S){if(typeof u==="number")throw TypeError('"value" argument must not be a number');if(xCt(u))return kCt(u,d,S);if(typeof u==="string")return CCt(u,d);return rSe?Buffer.from(u):new Buffer(u)}YJe.exports=ECt});var oUe=Vs(function(pLt,aSe){var wCt=XJe().SourceMapConsumer,nSe=w0("path"),Qk;try{if(Qk=w0("fs"),!Qk.existsSync||!Qk.readFileSync)Qk=null}catch(u){}var PCt=ZJe();function eUe(u,d){return u.require(d)}var tUe=!1,rUe=!1,iSe=!1,BU="auto",O4={},JU={},DCt=/^data:application\/json[^,]+base64,/,vI=[],bI=[];function oSe(){if(BU==="browser")return!0;if(BU==="node")return!1;return typeof window<"u"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function ICt(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function ACt(){if(typeof process==="object"&&process!==null)return process.version;else return""}function NCt(){if(typeof process==="object"&&process!==null)return process.stderr}function OCt(u){if(typeof process==="object"&&process!==null&&typeof process.exit==="function")return process.exit(u)}function nte(u){return function(d){for(var S=0;S<u.length;S++){var A=u[S](d);if(A)return A}return null}}var cSe=nte(vI);vI.push(function(u){if(u=u.trim(),/^file:/.test(u))u=u.replace(/file:\/\/\/(\w:)?/,function(A,W){return W?"":"/"});if(u in O4)return O4[u];var d="";try{if(!Qk){var S=new XMLHttpRequest;if(S.open("GET",u,!1),S.send(null),S.readyState===4&&S.status===200)d=S.responseText}else if(Qk.existsSync(u))d=Qk.readFileSync(u,"utf8")}catch(A){}return O4[u]=d});function sSe(u,d){if(!u)return d;var S=nSe.dirname(u),A=/^\w+:\/\/[^\/]*/.exec(S),W=A?A[0]:"",ae=S.slice(W.length);if(W&&/^\/\w\:/.test(ae))return W+="/",W+nSe.resolve(S.slice(W.length),d).replace(/\\/g,"/");return W+nSe.resolve(S.slice(W.length),d)}function FCt(u){var d;if(oSe())try{var S=new XMLHttpRequest;S.open("GET",u,!1),S.send(null),d=S.readyState===4?S.responseText:null;var A=S.getResponseHeader("SourceMap")||S.getResponseHeader("X-SourceMap");if(A)return A}catch(nt){}d=cSe(u);var W=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,ae,we;while(we=W.exec(d))ae=we;if(!ae)return null;return ae[1]}var lSe=nte(bI);bI.push(function(u){var d=FCt(u);if(!d)return null;var S;if(DCt.test(d)){var A=d.slice(d.indexOf(",")+1);S=PCt(A,"base64").toString(),d=u}else d=sSe(u,d),S=cSe(d);if(!S)return null;return{url:d,map:S}});function uSe(u){var d=JU[u.source];if(!d){var S=lSe(u.source);if(S){if(d=JU[u.source]={url:S.url,map:new wCt(S.map)},d.map.sourcesContent)d.map.sources.forEach(function(W,ae){var we=d.map.sourcesContent[ae];if(we){var nt=sSe(d.url,W);O4[nt]=we}})}else d=JU[u.source]={url:null,map:null}}if(d&&d.map&&typeof d.map.originalPositionFor==="function"){var A=d.map.originalPositionFor(u);if(A.source!==null)return A.source=sSe(d.url,A.source),A}return u}function iUe(u){var d=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(u);if(d){var S=uSe({source:d[2],line:+d[3],column:d[4]-1});return"eval at "+d[1]+" ("+S.source+":"+S.line+":"+(S.column+1)+")"}if(d=/^eval at ([^(]+) \((.+)\)$/.exec(u),d)return"eval at "+d[1]+" ("+iUe(d[2])+")";return u}function LCt(){var u,d="";if(this.isNative())d="native";else{if(u=this.getScriptNameOrSourceURL(),!u&&this.isEval())d=this.getEvalOrigin(),d+=", ";if(u)d+=u;else d+="<anonymous>";var S=this.getLineNumber();if(S!=null){d+=":"+S;var A=this.getColumnNumber();if(A)d+=":"+A}}var W="",ae=this.getFunctionName(),we=!0,nt=this.isConstructor(),Tt=!(this.isToplevel()||nt);if(Tt){var Jt=this.getTypeName();if(Jt==="[object Object]")Jt="null";var Ir=this.getMethodName();if(ae){if(Jt&&ae.indexOf(Jt)!=0)W+=Jt+".";if(W+=ae,Ir&&ae.indexOf("."+Ir)!=ae.length-Ir.length-1)W+=" [as "+Ir+"]"}else W+=Jt+"."+(Ir||"<anonymous>")}else if(nt)W+="new "+(ae||"<anonymous>");else if(ae)W+=ae;else W+=d,we=!1;if(we)W+=" ("+d+")";return W}function nUe(u){var d={};return Object.getOwnPropertyNames(Object.getPrototypeOf(u)).forEach(function(S){d[S]=/^(?:is|get)/.test(S)?function(){return u[S].call(u)}:u[S]}),d.toString=LCt,d}function sUe(u,d){if(d===void 0)d={nextPosition:null,curPosition:null};if(u.isNative())return d.curPosition=null,u;var S=u.getFileName()||u.getScriptNameOrSourceURL();if(S){var A=u.getLineNumber(),W=u.getColumnNumber()-1,ae=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,we=ae.test(ACt())?0:62;if(A===1&&W>we&&!oSe()&&!u.isEval())W-=we;var nt=uSe({source:S,line:A,column:W});d.curPosition=nt,u=nUe(u);var Tt=u.getFunctionName;return u.getFunctionName=function(){if(d.nextPosition==null)return Tt();return d.nextPosition.name||Tt()},u.getFileName=function(){return nt.source},u.getLineNumber=function(){return nt.line},u.getColumnNumber=function(){return nt.column+1},u.getScriptNameOrSourceURL=function(){return nt.source},u}var Jt=u.isEval()&&u.getEvalOrigin();if(Jt)return Jt=iUe(Jt),u=nUe(u),u.getEvalOrigin=function(){return Jt},u;return u}function MCt(u,d){if(iSe)O4={},JU={};var S=u.name||"Error",A=u.message||"",W=S+": "+A,ae={nextPosition:null,curPosition:null},we=[];for(var nt=d.length-1;nt>=0;nt--)we.push(`
|
|
3
3
|
at `+sUe(d[nt],ae)),ae.nextPosition=ae.curPosition;return ae.curPosition=ae.nextPosition=null,W+we.reverse().join("")}function aUe(u){var d=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(u.stack);if(d){var S=d[1],A=+d[2],W=+d[3],ae=O4[S];if(!ae&&Qk&&Qk.existsSync(S))try{ae=Qk.readFileSync(S,"utf8")}catch(nt){ae=""}if(ae){var we=ae.split(/(?:\r\n|\r|\n)/)[A-1];if(we)return S+":"+A+`
|
|
4
4
|
`+we+`
|
|
5
|
-
`+Array(W).join(" ")+"^"}}return null}function RCt(u){var d=aUe(u),S=NCt();if(S&&S._handle&&S._handle.setBlocking)S._handle.setBlocking(!0);if(d)console.error(),console.error(d);console.error(u.stack),OCt(1)}function jCt(){var u=process.emit;process.emit=function(d){if(d==="uncaughtException"){var S=arguments[1]&&arguments[1].stack,A=this.listeners(d).length>0;if(S&&!A)return RCt(arguments[1])}return u.apply(this,arguments)}}var BCt=vI.slice(0),JCt=bI.slice(0);pLt.wrapCallSite=sUe;pLt.getErrorSource=aUe;pLt.mapSourcePosition=uSe;pLt.retrieveSourceMap=lSe;pLt.install=function(u){if(u=u||{},u.environment){if(BU=u.environment,["node","browser","auto"].indexOf(BU)===-1)throw Error("environment "+BU+" was unknown. Available options are {auto, browser, node}")}if(u.retrieveFile){if(u.overrideRetrieveFile)vI.length=0;vI.unshift(u.retrieveFile)}if(u.retrieveSourceMap){if(u.overrideRetrieveSourceMap)bI.length=0;bI.unshift(u.retrieveSourceMap)}if(u.hookRequire&&!oSe()){var d=eUe(aSe,"module"),S=d.prototype._compile;if(!S.__sourceMapSupport)d.prototype._compile=function(ae,we){return O4[we]=ae,JU[we]=void 0,S.call(this,ae,we)},d.prototype._compile.__sourceMapSupport=!0}if(!iSe)iSe="emptyCacheBetweenOperations"in u?u.emptyCacheBetweenOperations:!1;if(!tUe)tUe=!0,Error.prepareStackTrace=MCt;if(!rUe){var A="handleUncaughtExceptions"in u?u.handleUncaughtExceptions:!0;try{var W=eUe(aSe,"worker_threads");if(W.isMainThread===!1)A=!1}catch(ae){}if(A&&ICt())rUe=!0,jCt()}};pLt.resetRetrieveHandlers=function(){vI.length=0,bI.length=0,vI=BCt.slice(0),bI=JCt.slice(0),lSe=nte(bI),cSe=nte(vI)}});var lUe=Vs(function(dLt,ite){var __dirname="/home/runner/
|
|
5
|
+
`+Array(W).join(" ")+"^"}}return null}function RCt(u){var d=aUe(u),S=NCt();if(S&&S._handle&&S._handle.setBlocking)S._handle.setBlocking(!0);if(d)console.error(),console.error(d);console.error(u.stack),OCt(1)}function jCt(){var u=process.emit;process.emit=function(d){if(d==="uncaughtException"){var S=arguments[1]&&arguments[1].stack,A=this.listeners(d).length>0;if(S&&!A)return RCt(arguments[1])}return u.apply(this,arguments)}}var BCt=vI.slice(0),JCt=bI.slice(0);pLt.wrapCallSite=sUe;pLt.getErrorSource=aUe;pLt.mapSourcePosition=uSe;pLt.retrieveSourceMap=lSe;pLt.install=function(u){if(u=u||{},u.environment){if(BU=u.environment,["node","browser","auto"].indexOf(BU)===-1)throw Error("environment "+BU+" was unknown. Available options are {auto, browser, node}")}if(u.retrieveFile){if(u.overrideRetrieveFile)vI.length=0;vI.unshift(u.retrieveFile)}if(u.retrieveSourceMap){if(u.overrideRetrieveSourceMap)bI.length=0;bI.unshift(u.retrieveSourceMap)}if(u.hookRequire&&!oSe()){var d=eUe(aSe,"module"),S=d.prototype._compile;if(!S.__sourceMapSupport)d.prototype._compile=function(ae,we){return O4[we]=ae,JU[we]=void 0,S.call(this,ae,we)},d.prototype._compile.__sourceMapSupport=!0}if(!iSe)iSe="emptyCacheBetweenOperations"in u?u.emptyCacheBetweenOperations:!1;if(!tUe)tUe=!0,Error.prepareStackTrace=MCt;if(!rUe){var A="handleUncaughtExceptions"in u?u.handleUncaughtExceptions:!0;try{var W=eUe(aSe,"worker_threads");if(W.isMainThread===!1)A=!1}catch(ae){}if(A&&ICt())rUe=!0,jCt()}};pLt.resetRetrieveHandlers=function(){vI.length=0,bI.length=0,vI=BCt.slice(0),bI=JCt.slice(0),lSe=nte(bI),cSe=nte(vI)}});var lUe=Vs(function(dLt,ite){var __dirname="/home/ghr-mono-1/runner/_work/mutagent-monorepo/mutagent-monorepo/node_modules/typescript/lib",__filename="/home/ghr-mono-1/runner/_work/mutagent-monorepo/mutagent-monorepo/node_modules/typescript/lib/typescript.js";/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
8
8
|
this file except in compliance with the License. You may obtain a copy of the
|
package/dist/bin/cli.js
CHANGED
|
@@ -16406,7 +16406,10 @@ var init_local = __esm(() => {
|
|
|
16406
16406
|
});
|
|
16407
16407
|
|
|
16408
16408
|
// src/lib/agent/operations.ts
|
|
16409
|
-
function
|
|
16409
|
+
function operationPath(operationId) {
|
|
16410
|
+
return `/api/helix-agent/operations/${encodeURIComponent(operationId)}`;
|
|
16411
|
+
}
|
|
16412
|
+
function operationResult(operation) {
|
|
16410
16413
|
const failed = operation.stage === "failed";
|
|
16411
16414
|
return {
|
|
16412
16415
|
success: !failed,
|
|
@@ -16418,7 +16421,7 @@ function operationResult(operation, endpoint) {
|
|
|
16418
16421
|
activated: operation.stage === "active",
|
|
16419
16422
|
operation,
|
|
16420
16423
|
...failed ? { error: operation.error, exitCode: 1 } : {},
|
|
16421
|
-
_links: { operation:
|
|
16424
|
+
_links: { operation: operationPath(operation.id) }
|
|
16422
16425
|
};
|
|
16423
16426
|
}
|
|
16424
16427
|
|
|
@@ -16433,9 +16436,6 @@ function parseRevisionNumber(value) {
|
|
|
16433
16436
|
function slotLabel(environment) {
|
|
16434
16437
|
return environment ? `Environment "${environment}"` : "the default slot";
|
|
16435
16438
|
}
|
|
16436
|
-
function operationLink(api, operationId) {
|
|
16437
|
-
return `${api.endpoint.replace(/\/$/, "")}/api/helix-agent/operations/${operationId}`;
|
|
16438
|
-
}
|
|
16439
16439
|
function slotFields(slot) {
|
|
16440
16440
|
return {
|
|
16441
16441
|
environment: slot.environment,
|
|
@@ -16481,7 +16481,7 @@ async function deployFrozenAgent(api, source, built, options) {
|
|
|
16481
16481
|
operationId: outcome.operation.id,
|
|
16482
16482
|
idempotencyKey: key,
|
|
16483
16483
|
text: activated ? `Managed agent ${outcome.agent.slug} v${String(outcome.revision.revision)} is active in ${slotLabel(outcome.deployment.environment)}.` : `Managed agent ${outcome.agent.slug} v${String(outcome.revision.revision)} is stored; ${slotLabel(outcome.deployment.environment)} still runs ${outcome.deployment.activeRevision === null ? "no revision" : `v${String(outcome.deployment.activeRevision)}`}.`,
|
|
16484
|
-
_links: { operation:
|
|
16484
|
+
_links: { operation: operationPath(outcome.operation.id) },
|
|
16485
16485
|
...warnings.length === 0 ? {} : { warnings }
|
|
16486
16486
|
};
|
|
16487
16487
|
}, recovery);
|
|
@@ -16514,7 +16514,7 @@ async function listRemoteAgents(api, options) {
|
|
|
16514
16514
|
}
|
|
16515
16515
|
async function inspectRemoteAgent(api, slug, options) {
|
|
16516
16516
|
if (options.operation)
|
|
16517
|
-
return operationResult(await api.getOperation(options.operation)
|
|
16517
|
+
return operationResult(await api.getOperation(options.operation));
|
|
16518
16518
|
const detail = await api.getAgent(slug ?? "", { revisionLimit: Number(options.limit ?? 20), ...options.cursor === undefined ? {} : { revisionCursor: options.cursor } });
|
|
16519
16519
|
if (options.env === undefined)
|
|
16520
16520
|
return { ...detail };
|
|
@@ -16539,7 +16539,7 @@ async function activateRemoteAgent(api, slug, options) {
|
|
|
16539
16539
|
operationId: outcome.operation.id,
|
|
16540
16540
|
idempotencyKey: key,
|
|
16541
16541
|
text: `Managed agent ${slug} v${String(revision)} is active in ${slotLabel(outcome.deployment.environment)}.`,
|
|
16542
|
-
_links: { operation:
|
|
16542
|
+
_links: { operation: operationPath(outcome.operation.id) }
|
|
16543
16543
|
};
|
|
16544
16544
|
}, recovery);
|
|
16545
16545
|
}
|
|
@@ -18078,7 +18078,7 @@ function getAppBaseUrl() {
|
|
|
18078
18078
|
return process.env.MUTAGENT_APP_URL ?? "https://app.mutagent.io";
|
|
18079
18079
|
}
|
|
18080
18080
|
function providerSettingsLink() {
|
|
18081
|
-
return `${getAppBaseUrl()}/
|
|
18081
|
+
return `${getAppBaseUrl()}/configuration/llm-providers`;
|
|
18082
18082
|
}
|
|
18083
18083
|
function workspaceLink(_id) {
|
|
18084
18084
|
return `${getAppBaseUrl()}/settings/workspace/general`;
|
|
@@ -26852,6 +26852,7 @@ async function runStreamSession(options) {
|
|
|
26852
26852
|
let result;
|
|
26853
26853
|
let session;
|
|
26854
26854
|
let live;
|
|
26855
|
+
let finalState;
|
|
26855
26856
|
const outcome = (end) => ({
|
|
26856
26857
|
end,
|
|
26857
26858
|
lastSeq,
|
|
@@ -26868,10 +26869,11 @@ async function runStreamSession(options) {
|
|
|
26868
26869
|
const withinTotalBudget = () => errorReconnects < MAX_TOTAL_RECONNECTS;
|
|
26869
26870
|
const retryAfterError = async (error) => {
|
|
26870
26871
|
attempt += 1;
|
|
26871
|
-
if (attempt > retry.attempts)
|
|
26872
|
-
|
|
26873
|
-
|
|
26872
|
+
if (attempt > retry.attempts || !withinTotalBudget()) {
|
|
26873
|
+
if (live !== undefined && !live.live)
|
|
26874
|
+
sink.notice(unfollowableNotice(live.reason));
|
|
26874
26875
|
throw exhausted(lastSeq, error, onDisconnect);
|
|
26876
|
+
}
|
|
26875
26877
|
reconnects += 1;
|
|
26876
26878
|
errorReconnects += 1;
|
|
26877
26879
|
if (attempt > 1)
|
|
@@ -26990,8 +26992,6 @@ async function runStreamSession(options) {
|
|
|
26990
26992
|
continue;
|
|
26991
26993
|
}
|
|
26992
26994
|
live = payload;
|
|
26993
|
-
if (!payload.live)
|
|
26994
|
-
sink.notice(unfollowableNotice(payload.reason));
|
|
26995
26995
|
continue;
|
|
26996
26996
|
}
|
|
26997
26997
|
if (event.event === "status") {
|
|
@@ -27001,6 +27001,8 @@ async function runStreamSession(options) {
|
|
|
27001
27001
|
exited = true;
|
|
27002
27002
|
break;
|
|
27003
27003
|
}
|
|
27004
|
+
if (payload)
|
|
27005
|
+
finalState = payload.state;
|
|
27004
27006
|
continue;
|
|
27005
27007
|
}
|
|
27006
27008
|
if (event.event === "error") {
|
|
@@ -27038,8 +27040,12 @@ async function runStreamSession(options) {
|
|
|
27038
27040
|
return outcome("exited");
|
|
27039
27041
|
if (isAborted())
|
|
27040
27042
|
return detached();
|
|
27041
|
-
if (live !== undefined && !live.live)
|
|
27043
|
+
if (live !== undefined && !live.live) {
|
|
27044
|
+
if (finalState === "stopped-for-idling")
|
|
27045
|
+
return outcome("asleep");
|
|
27046
|
+
sink.notice(unfollowableNotice(live.reason));
|
|
27042
27047
|
return outcome("unfollowable");
|
|
27048
|
+
}
|
|
27043
27049
|
reconnects += 1;
|
|
27044
27050
|
const wait = pacer.next(now() - openedAt, lastSeq > seqAtOpen);
|
|
27045
27051
|
if (wait > 0)
|
|
@@ -27271,7 +27277,9 @@ async function runNativeSession(options) {
|
|
|
27271
27277
|
process.exitCode = 1;
|
|
27272
27278
|
if (interruption.requested && result.end !== "exited")
|
|
27273
27279
|
process.exitCode = 1;
|
|
27274
|
-
if (result.end
|
|
27280
|
+
if (result.end === "asleep") {
|
|
27281
|
+
notice("Session " + options.reference + " is asleep: it stopped for idling. Everything it recorded is above. " + "Wake it with: mutagent helix session send " + options.reference + ' "<message>"');
|
|
27282
|
+
} else if (result.end !== "exited") {
|
|
27275
27283
|
notice("Reattach with: mutagent helix session attach " + options.reference + " --since " + String(result.lastSeq));
|
|
27276
27284
|
}
|
|
27277
27285
|
return result;
|
|
@@ -28595,6 +28603,11 @@ function reportOutcome(id, result, sink, onDisconnect) {
|
|
|
28595
28603
|
sink.notice(`Try again with: ${reattachHint(sandboxId, result.lastSeq)}`);
|
|
28596
28604
|
return;
|
|
28597
28605
|
}
|
|
28606
|
+
if (result.end === "asleep") {
|
|
28607
|
+
sink.notice(`Sandbox ${sandboxId} is asleep: it stopped for idling. Everything it recorded is above.`);
|
|
28608
|
+
sink.notice("Send its Helix session a message with mutagent helix session send to wake it.");
|
|
28609
|
+
return;
|
|
28610
|
+
}
|
|
28598
28611
|
if (result.end === "detached") {
|
|
28599
28612
|
if (onDisconnect === "released") {
|
|
28600
28613
|
sink.notice(sandboxId === "" ? "Stopped. The turn was cancelled and the sandbox released — nothing is left running." : `Stopped. The turn was cancelled and sandbox ${sandboxId} released — nothing is left running.`);
|
|
@@ -34256,9 +34269,12 @@ init_errors();
|
|
|
34256
34269
|
function isJsonMode(command) {
|
|
34257
34270
|
return Boolean(command.optsWithGlobals().json);
|
|
34258
34271
|
}
|
|
34259
|
-
function
|
|
34272
|
+
function reportPageLink(id) {
|
|
34273
|
+
return `${getAppBaseUrl()}/review/reports/${encodeURIComponent(id)}`;
|
|
34274
|
+
}
|
|
34275
|
+
function reportLinks(id) {
|
|
34260
34276
|
const encoded = encodeURIComponent(id);
|
|
34261
|
-
return { api: `/api/reports/${encoded}`, html:
|
|
34277
|
+
return { api: `/api/reports/${encoded}`, html: `/api/reports/${encoded}/html`, ui: reportPageLink(id) };
|
|
34262
34278
|
}
|
|
34263
34279
|
function reportDirective(opts) {
|
|
34264
34280
|
const { report } = opts;
|
|
@@ -34373,14 +34389,14 @@ AI Agent Directive:
|
|
|
34373
34389
|
}
|
|
34374
34390
|
htmlFile = options.html;
|
|
34375
34391
|
}
|
|
34376
|
-
const links = reportLinks(
|
|
34392
|
+
const links = reportLinks(detail.report.id);
|
|
34377
34393
|
if (isJson) {
|
|
34378
34394
|
new OutputFormatter("json").output({ ...detail, ...htmlFile === undefined ? {} : { htmlFile }, _links: links });
|
|
34379
34395
|
return;
|
|
34380
34396
|
}
|
|
34381
34397
|
const r = detail.report;
|
|
34382
34398
|
console.log(chalk53.bold(r.title));
|
|
34383
|
-
for (const [label, value] of Object.entries({ ...row(r), session: detail.sessionRef ?? "", "helix id": detail.harnessSessionId ?? "",
|
|
34399
|
+
for (const [label, value] of Object.entries({ ...row(r), session: detail.sessionRef ?? "", "helix id": detail.harnessSessionId ?? "", view: links.ui })) {
|
|
34384
34400
|
if (label !== "title" && value !== "")
|
|
34385
34401
|
console.log(` ${label.padEnd(9)}${value}`);
|
|
34386
34402
|
}
|
|
@@ -34403,7 +34419,7 @@ AI Agent Directive:
|
|
|
34403
34419
|
const reviewed = options.undo !== true;
|
|
34404
34420
|
const conn = await connectReports({ sandboxBearer: false });
|
|
34405
34421
|
const report = await conn.call((r) => r.setReportReviewed({ id, body: { reviewed } }));
|
|
34406
|
-
const links = reportLinks(
|
|
34422
|
+
const links = reportLinks(report.id);
|
|
34407
34423
|
if (isJson) {
|
|
34408
34424
|
const directive = reportDirective({
|
|
34409
34425
|
template: reviewed ? "report_reviewed" : "report_unreviewed",
|
|
@@ -34439,7 +34455,7 @@ AI Agent Directive:
|
|
|
34439
34455
|
requireForce(options, { what: `Retracting report ${id}`, verb: "mutagent reports retract", command: `mutagent reports retract ${id}` });
|
|
34440
34456
|
const conn = await connectReports({ sandboxBearer: false });
|
|
34441
34457
|
await conn.call((r) => r.deleteReport({ id }));
|
|
34442
|
-
const links = {
|
|
34458
|
+
const links = {};
|
|
34443
34459
|
if (isJson) {
|
|
34444
34460
|
const directive = reportDirective({
|
|
34445
34461
|
template: "report_retracted",
|
|
@@ -34821,7 +34837,7 @@ AI Agent Directive:
|
|
|
34821
34837
|
});
|
|
34822
34838
|
const { report, created, replaced } = result;
|
|
34823
34839
|
const stageRunId = typeof report.stageRunId === "string" && report.stageRunId !== "" ? report.stageRunId : undefined;
|
|
34824
|
-
const reportUrls = reportLinks(
|
|
34840
|
+
const reportUrls = reportLinks(report.id);
|
|
34825
34841
|
const outcome = created ? "Stored" : replaced ? "Replaced" : "Already stored";
|
|
34826
34842
|
if (isJson) {
|
|
34827
34843
|
const directive = reportDirective({
|
|
@@ -34846,7 +34862,7 @@ AI Agent Directive:
|
|
|
34846
34862
|
}
|
|
34847
34863
|
if (stageRunId !== undefined)
|
|
34848
34864
|
console.log(` Stage: linked to run ${stageRunId}`);
|
|
34849
|
-
console.log(`
|
|
34865
|
+
console.log(` View: ${reportUrls.ui}`);
|
|
34850
34866
|
console.log(` Next: mutagent reports show ${report.id}`);
|
|
34851
34867
|
});
|
|
34852
34868
|
});
|
|
@@ -34901,7 +34917,7 @@ AI Agent Directive:
|
|
|
34901
34917
|
const conn = await connectReportWrites();
|
|
34902
34918
|
const report = await updateReport(conn, id, body);
|
|
34903
34919
|
const changed = Object.keys(body);
|
|
34904
|
-
const links = reportLinks(
|
|
34920
|
+
const links = reportLinks(report.id);
|
|
34905
34921
|
if (isJson) {
|
|
34906
34922
|
const directive = reportDirective({
|
|
34907
34923
|
template: "report_updated",
|
|
@@ -34919,7 +34935,7 @@ AI Agent Directive:
|
|
|
34919
34935
|
console.log(` Verdict: ${report.verdict}`);
|
|
34920
34936
|
if (report.stageRunId !== null)
|
|
34921
34937
|
console.log(` Stage run: ${report.stageRunId}`);
|
|
34922
|
-
console.log(`
|
|
34938
|
+
console.log(` View: ${links.ui}`);
|
|
34923
34939
|
});
|
|
34924
34940
|
});
|
|
34925
34941
|
}
|
|
@@ -35031,11 +35047,8 @@ function row2(f) {
|
|
|
35031
35047
|
};
|
|
35032
35048
|
}
|
|
35033
35049
|
var SDK_STATUS = { open: FindingStatus.Open, resolved: FindingStatus.Resolved };
|
|
35034
|
-
function findingLinks(
|
|
35035
|
-
return {
|
|
35036
|
-
api: `/api/findings/${encodeURIComponent(f.id)}`,
|
|
35037
|
-
report: `${endpoint}/api/reports/${encodeURIComponent(f.reportId)}/html`
|
|
35038
|
-
};
|
|
35050
|
+
function findingLinks(f) {
|
|
35051
|
+
return { api: `/api/findings/${encodeURIComponent(f.id)}`, report: reportPageLink(f.reportId) };
|
|
35039
35052
|
}
|
|
35040
35053
|
function statusDirective(f, links) {
|
|
35041
35054
|
const title = `Finding ${f.status === "resolved" ? "Resolved" : f.status === "open" ? "Reopened" : "Updated"} — ${f.criterion}`;
|
|
@@ -35121,7 +35134,7 @@ AI Agent Directive:
|
|
|
35121
35134
|
} catch (error) {
|
|
35122
35135
|
throw error instanceof MutagentError ? findingsStatusError(error, id) : error;
|
|
35123
35136
|
}
|
|
35124
|
-
const links = findingLinks(
|
|
35137
|
+
const links = findingLinks(finding);
|
|
35125
35138
|
if (isJson) {
|
|
35126
35139
|
const directive = statusDirective(finding, links);
|
|
35127
35140
|
new OutputFormatter("json").output({ success: true, finding, _links: links, _directive: directive });
|
|
@@ -36730,7 +36743,7 @@ AI Agent Directive:
|
|
|
36730
36743
|
const conn = await connectIntegrations();
|
|
36731
36744
|
await findWritableSource(conn, id);
|
|
36732
36745
|
await conn.call((i) => i.deleteIntegrationSource({ id }), { id });
|
|
36733
|
-
const links = {
|
|
36746
|
+
const links = {};
|
|
36734
36747
|
if (isJson) {
|
|
36735
36748
|
const directive = sourceDirective({
|
|
36736
36749
|
template: "integration_source_removed",
|
|
@@ -40190,7 +40203,7 @@ function rescopeProviderApiKeyFlag(rawArgs) {
|
|
|
40190
40203
|
}
|
|
40191
40204
|
// src/commands/helix/helix-surface.json
|
|
40192
40205
|
var helix_surface_default = {
|
|
40193
|
-
helixVersion: "0.4.
|
|
40206
|
+
helixVersion: "0.4.7",
|
|
40194
40207
|
harnessVersion: "1.0.0",
|
|
40195
40208
|
launcher: {
|
|
40196
40209
|
commands: [
|
|
@@ -40704,4 +40717,4 @@ if (process.env.CLI_VERSION) {
|
|
|
40704
40717
|
}
|
|
40705
40718
|
runCli(process.argv.slice(2), cliVersion);
|
|
40706
40719
|
|
|
40707
|
-
//# debugId=
|
|
40720
|
+
//# debugId=18343E460287FA2664756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mutagent/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.157",
|
|
4
4
|
"description": "Bun-native CLI for the MutagenT AI platform - auth, provider config, and lifecycle-tool installer for AI-native workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"bugs": {
|
|
95
95
|
"url": "https://docs.mutagent.io/support"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "38e1a2064b898c62a40b3f62524809472d21cf4a"
|
|
98
98
|
}
|