@mutagent/cli 0.2.322 → 0.2.323

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.
@@ -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="/mtg/runner/mtg-fedf265092/_work/mutagent-monorepo/mutagent-monorepo/node_modules/typescript/lib",__filename="/mtg/runner/mtg-fedf265092/_work/mutagent-monorepo/mutagent-monorepo/node_modules/typescript/lib/typescript.js";/*! *****************************************************************************
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="/mtg/runner/mtg-ed7e954e87/_work/mutagent-monorepo/mutagent-monorepo/node_modules/typescript/lib",__filename="/mtg/runner/mtg-ed7e954e87/_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
@@ -44746,7 +44746,6 @@ var artifactsApi = {
44746
44746
 
44747
44747
  // src/lib/artifacts-human.ts
44748
44748
  var HUMAN_KEYS = {
44749
- title: 200,
44750
44749
  artifactTitle: 200,
44751
44750
  name: 120,
44752
44751
  displayName: 120,
@@ -44758,6 +44757,11 @@ var HUMAN_KEYS = {
44758
44757
  cssPath: 1000
44759
44758
  };
44760
44759
  var SESSION_KEYS = new Set(["harnessSessionId", "sessionRef"]);
44760
+ var TITLE_MAX = 200;
44761
+ function plainTitle(value) {
44762
+ const line = scrubViewerText(value, Number.MAX_SAFE_INTEGER).replace(/\s+/g, " ").trim();
44763
+ return Array.from(line).slice(0, TITLE_MAX).join("").trim();
44764
+ }
44761
44765
  function isHuman(key) {
44762
44766
  return Object.hasOwn(HUMAN_KEYS, key);
44763
44767
  }
@@ -44774,6 +44778,10 @@ function strip(value, path, fields) {
44774
44778
  out[key] = null;
44775
44779
  continue;
44776
44780
  }
44781
+ if (key === "title" && typeof child === "string") {
44782
+ out[key] = plainTitle(child);
44783
+ continue;
44784
+ }
44777
44785
  if (isHuman(key) && typeof child === "string") {
44778
44786
  const max = HUMAN_KEYS[key];
44779
44787
  fields.push({ label: at, value: child, ...max === undefined ? {} : { max } });
@@ -45450,7 +45458,7 @@ import { basename as basename7, extname as extname2, join as join30, relative as
45450
45458
  var MIB = 1024 * 1024;
45451
45459
  var ARTIFACT_LIMITS = { fileBytes: 16 * MIB, versionBytes: 64 * MIB, files: 255 };
45452
45460
  var HELP2 = "Run: mutagent artifacts publish --help";
45453
- var TITLE_MAX = 200;
45461
+ var TITLE_MAX2 = 200;
45454
45462
  var TYPES = {
45455
45463
  ".html": "text/html; charset=utf-8",
45456
45464
  ".htm": "text/html; charset=utf-8",
@@ -45554,12 +45562,17 @@ function markdownTitle(text) {
45554
45562
  }
45555
45563
  return;
45556
45564
  }
45557
- function pageTitle(file) {
45558
- const head = new TextDecoder().decode(file.data.subarray(0, 64 * 1024));
45559
- const raw = isMarkdown(file.path) ? markdownTitle(head) : /<title[^>]*>([\s\S]*?)<\/title>/i.exec(head)?.[1];
45565
+ function collapsed(raw) {
45560
45566
  const text = raw?.replace(/\s+/g, " ").trim();
45561
45567
  return text === undefined || text === "" ? undefined : text;
45562
45568
  }
45569
+ function htmlTitle(head) {
45570
+ return collapsed(/<title[^>]*>([\s\S]*?)<\/title>/i.exec(head)?.[1]) ?? collapsed(/<h1\b[^>]*>([\s\S]*?)<\/h1>/i.exec(head)?.[1]?.replace(/<[^>]*>/g, ""));
45571
+ }
45572
+ function pageTitle(file) {
45573
+ const head = new TextDecoder().decode(file.data.subarray(0, 64 * 1024));
45574
+ return isMarkdown(file.path) ? collapsed(markdownTitle(head)) : htmlTitle(head);
45575
+ }
45563
45576
  function readBundle(target, opts = {}) {
45564
45577
  if (!existsSync21(target))
45565
45578
  throw invalid7(`No file or directory at ${target}.`);
@@ -45589,7 +45602,7 @@ function readBundle(target, opts = {}) {
45589
45602
  }
45590
45603
  const given = opts.title?.trim();
45591
45604
  const fromPage = files[0] === undefined ? undefined : pageTitle(files[0]);
45592
- const title = (given === undefined || given === "" ? fromPage ?? basename7(entry, extname2(entry)) : given).slice(0, TITLE_MAX);
45605
+ const title = (given === undefined || given === "" ? fromPage ?? basename7(entry, extname2(entry)) : given).slice(0, TITLE_MAX2);
45593
45606
  return { entry, title, files, totalBytes };
45594
45607
  }
45595
45608
 
@@ -45661,7 +45674,7 @@ async function send(conn, target, bundle, options) {
45661
45674
  }
45662
45675
  }
45663
45676
  function registerPublishCommand(artifacts) {
45664
- artifacts.command("publish").description("Publish an HTML or Markdown page (or a directory with index.html or index.md) as a new artifact or a new version").argument("<file-or-dir>", "An .html or .md file, or a directory whose index.html (else index.md) is the page").option("--id <id>", "Publish a new version of this artifact (with --base)").option("--base <n>", "The version your change is based on; a stale base is refused with ARTIFACT_VERSION_CONFLICT").option("--title <title>", "The artifact's title (default: the page's <title>, else the file name)").addHelpText("after", `
45677
+ artifacts.command("publish").description("Publish an HTML or Markdown page (or a directory with index.html or index.md) as a new artifact or a new version").argument("<file-or-dir>", "An .html or .md file, or a directory whose index.html (else index.md) is the page").option("--id <id>", "Publish a new version of this artifact (with --base)").option("--base <n>", "The version your change is based on; a stale base is refused with ARTIFACT_VERSION_CONFLICT").option("--title <title>", "The artifact's title (default: the page's <title>, else its first <h1>, else the file name); a republish renames it").addHelpText("after", `
45665
45678
  A directory publishes every file below it (CSS, JS, JSON, images, extra pages) with
45666
45679
  index.html as the page, else index.md; dotfiles, node_modules and symlinks are left out.
45667
45680
  Limits: 16 MiB per file, 64 MiB per version, 255 files. A new artifact is private: share
@@ -45813,11 +45826,149 @@ AI Agent Directive:
45813
45826
  }
45814
45827
 
45815
45828
  // src/commands/artifacts/read.ts
45816
- import chalk79 from "chalk";
45829
+ import chalk80 from "chalk";
45817
45830
  import { lstatSync as lstatSync3, mkdirSync as mkdirSync9, writeFileSync as writeFileSync10 } from "fs";
45818
45831
  import { dirname as dirname15, isAbsolute as isAbsolute8, join as join31, relative as relative6, resolve as resolve16, sep as sep8 } from "path";
45819
45832
  init_errors();
45833
+
45834
+ // src/commands/artifacts/list.ts
45835
+ import chalk79 from "chalk";
45836
+ init_errors();
45820
45837
  var GROUPS = ["session"];
45838
+ var ALL_PAGE_SIZE = 200;
45839
+ var ALL_MAX_PAGES = 100;
45840
+ var TITLE_COLUMN_MAX = 60;
45841
+ var SEARCH_MAX = 200;
45842
+ function rows(items) {
45843
+ return Array.isArray(items) ? items : [];
45844
+ }
45845
+ function shortTime(at) {
45846
+ return typeof at === "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(at) ? `${at.slice(0, 10)} ${at.slice(11, 16)}` : "—";
45847
+ }
45848
+ function cut(text, max) {
45849
+ const points = Array.from(text);
45850
+ return points.length <= max ? text : `${points.slice(0, max - 1).join("")}…`;
45851
+ }
45852
+ function printTable(items) {
45853
+ const header = ["TITLE", "OWNER", "UPDATED", "VERSION", "THREADS", "ID"];
45854
+ const body = items.map((a) => [
45855
+ cut(plainTitle(a.title ?? "") || "—", TITLE_COLUMN_MAX),
45856
+ cut(plainTitle(a.ownerName ?? "") || "—", 40),
45857
+ shortTime(a.updatedAt),
45858
+ `v${String(a.currentVersion ?? "—")}`,
45859
+ String(a.openThreads ?? 0),
45860
+ a.id ?? "?"
45861
+ ]);
45862
+ const widths = header.map((h, i) => Math.max(h.length, ...body.map((r) => Array.from(r[i] ?? "").length)));
45863
+ const line = (cells) => cells.map((c, i) => c + " ".repeat(Math.max(0, (widths[i] ?? 0) - Array.from(c).length))).join(" ").trimEnd();
45864
+ console.log(chalk79.bold(line(header)));
45865
+ for (const r of body)
45866
+ console.log(line(r));
45867
+ }
45868
+ var EMPTY = "No artifacts. Publish one with: mutagent artifacts publish <file.html>";
45869
+ function validate(options) {
45870
+ if (options.all === true && options.cursor !== undefined) {
45871
+ throw new MutagentError("VALIDATION_ERROR", "--all reads every page from the start; it does not take --cursor.", `Run: ${helpOf("list")}`);
45872
+ }
45873
+ if (options.all === true && options.group !== undefined) {
45874
+ throw new MutagentError("VALIDATION_ERROR", "--all does not combine with --group: a session can span pages. Page with --cursor instead.", `Run: ${helpOf("list")}`);
45875
+ }
45876
+ const search = options.search?.trim();
45877
+ if (search !== undefined && Array.from(search).length > SEARCH_MAX) {
45878
+ throw new MutagentError("VALIDATION_ERROR", `--search takes at most ${String(SEARCH_MAX)} characters.`, `Run: ${helpOf("list")}`);
45879
+ }
45880
+ const owner = options.owner?.trim();
45881
+ if (owner !== undefined && owner === "") {
45882
+ throw new MutagentError("VALIDATION_ERROR", "--owner needs a value: me, or the owner's user id (ownerUserId in --json).", `Run: ${helpOf("list")}`);
45883
+ }
45884
+ return { ...search === undefined || search === "" ? {} : { search }, ...owner === undefined ? {} : { owner } };
45885
+ }
45886
+ function registerList13(artifacts) {
45887
+ artifacts.command("list").alias("ls").description("Artifacts you can open, newest update first; --search finds them by title").option("--scope <scope>", `Which: ${ARTIFACT_SCOPES.join(", ")} (default: mine)`).option("--group <by>", "Group by: session (the agent session that published each)").option("--search <text>", "Only artifacts whose title contains this text (case-insensitive)").option("--owner <owner>", "Only one owner's artifacts: me, or the owner's user id").option("--all", "Read every page, not just the first").option("--limit <n>", "Page size (server default; 200 with --all)").option("--cursor <c>", "The nextCursor of the previous page").addHelpText("after", `
45888
+ Examples:
45889
+ ${chalk79.dim("$")} mutagent artifacts list
45890
+ ${chalk79.dim("$")} mutagent artifacts list --search "q3 plan" --json
45891
+ ${chalk79.dim("$")} mutagent artifacts list --scope workspace --owner me --all --json
45892
+ ${chalk79.dim("$")} mutagent artifacts list --scope workspace --group session --json
45893
+
45894
+ AI Agent Directive:
45895
+ A read: run it freely. To find an artifact by name, pass --search <words from its title>
45896
+ (matched on the server across every page). --json returns { success, ok, data: { items | groups,
45897
+ nextCursor } } with each item's title, ownerName, updatedAt, currentVersion, openThreads and id,
45898
+ and 'next' with the command for the following page; --all returns every match in one list.
45899
+ `).action(async (options, command) => {
45900
+ await runAction2(command, async (isJson) => {
45901
+ const scope = oneOf("--scope", options.scope, ARTIFACT_SCOPES, "list");
45902
+ const groupBy = oneOf("--group", options.group, GROUPS, "list");
45903
+ const limit = positiveInt("--limit", options.limit, "list");
45904
+ const { search, owner } = validate(options);
45905
+ const filters = {
45906
+ ...scope === undefined ? {} : { scope },
45907
+ ...groupBy === undefined ? {} : { groupBy },
45908
+ ...search === undefined ? {} : { search },
45909
+ ...owner === undefined ? {} : { owner }
45910
+ };
45911
+ const conn = await connect();
45912
+ let page;
45913
+ if (options.all === true) {
45914
+ const items = [];
45915
+ let cursor;
45916
+ let pages = 0;
45917
+ do {
45918
+ const next = await artifactsApi.list(conn, { ...filters, limit: limit ?? ALL_PAGE_SIZE, ...cursor === undefined ? {} : { cursor } }, helpOf("list"));
45919
+ items.push(...rows(next.items));
45920
+ cursor = typeof next.nextCursor === "string" ? next.nextCursor : undefined;
45921
+ pages += 1;
45922
+ } while (cursor !== undefined && pages < ALL_MAX_PAGES);
45923
+ page = { items, nextCursor: cursor ?? null };
45924
+ } else {
45925
+ page = await artifactsApi.list(conn, { ...filters, ...limit === undefined ? {} : { limit }, ...options.cursor === undefined ? {} : { cursor: options.cursor } }, helpOf("list"));
45926
+ }
45927
+ const cursor = typeof page.nextCursor === "string" ? page.nextCursor : undefined;
45928
+ const again = [
45929
+ "mutagent artifacts list",
45930
+ ...scope === undefined ? [] : ["--scope", scope],
45931
+ ...groupBy === undefined ? [] : ["--group", groupBy],
45932
+ ...search === undefined ? [] : ["--search", arg2(search)],
45933
+ ...owner === undefined ? [] : ["--owner", arg2(owner)],
45934
+ ...limit === undefined || options.all === true ? [] : ["--limit", String(limit)]
45935
+ ];
45936
+ const fenced = fenceHuman(page, "[artifacts list]");
45937
+ printOk(isJson, {
45938
+ data: { ...fenced.data, ...fenced.text === undefined ? {} : { text: fenced.text } },
45939
+ ...cursor === undefined ? {} : { next: [[...again, "--cursor", arg2(cursor), "--json"].join(" ")] },
45940
+ human: () => {
45941
+ const safe = fenced.data;
45942
+ const groups = Array.isArray(safe.groups) ? safe.groups : undefined;
45943
+ const raw = Array.isArray(page.groups) ? page.groups : [];
45944
+ if (groups !== undefined) {
45945
+ if (groups.length === 0)
45946
+ console.log(chalk79.gray(EMPTY));
45947
+ groups.forEach((g, i) => {
45948
+ const label = g.sessionRef ?? g.harnessSessionId;
45949
+ const hidden = label === null || label === undefined ? typeof raw[i]?.sessionRef === "string" || typeof raw[i]?.harnessSessionId === "string" : false;
45950
+ console.log(chalk79.bold(`Session ${label ?? (hidden ? "(see the fenced text)" : "(none)")}`));
45951
+ printTable(rows(g.items));
45952
+ });
45953
+ if (fenced.text !== undefined)
45954
+ console.log(fenced.text);
45955
+ return;
45956
+ }
45957
+ const items = rows(page.items);
45958
+ if (items.length === 0) {
45959
+ console.log(chalk79.gray(search === undefined ? EMPTY : `No artifacts with "${plainTitle(search)}" in the title.`));
45960
+ } else {
45961
+ printTable(items);
45962
+ }
45963
+ if (fenced.text !== undefined)
45964
+ console.log(fenced.text);
45965
+ }
45966
+ });
45967
+ });
45968
+ });
45969
+ }
45970
+
45971
+ // src/commands/artifacts/read.ts
45821
45972
  function inside(out, path) {
45822
45973
  const target = resolve16(out, path);
45823
45974
  const rel = relative6(out, target);
@@ -45858,8 +46009,8 @@ async function download(conn, artifact, version, out) {
45858
46009
  function registerGet3(artifacts) {
45859
46010
  artifacts.command("get").description("One artifact: title, versions, access, members and the version's files; --out downloads them").argument("<id>", "The artifact id").option("--version <n>", "A specific version (default: the current one)").option("--out <dir>", "Write the version's files into this directory").addHelpText("after", `
45860
46011
  Examples:
45861
- ${chalk79.dim("$")} mutagent artifacts get <artifact-id> --json
45862
- ${chalk79.dim("$")} mutagent artifacts get <artifact-id> --version 4 --out ./merge --json
46012
+ ${chalk80.dim("$")} mutagent artifacts get <artifact-id> --json
46013
+ ${chalk80.dim("$")} mutagent artifacts get <artifact-id> --version 4 --out ./merge --json
45863
46014
 
45864
46015
  Errors (code: recovery):
45865
46016
  ARTIFACT_NOT_FOUND mutagent artifacts list --json
@@ -45884,77 +46035,17 @@ AI Agent Directive:
45884
46035
  data: { ...fenced.data, ...fenced.text === undefined ? {} : { text: fenced.text }, ...written === undefined ? {} : { out: resolve16(options.out ?? "."), written }, _links: presentLinks(links) },
45885
46036
  next,
45886
46037
  human: () => {
45887
- console.log(chalk79.bold(id));
46038
+ const title = plainTitle(artifact.title ?? "");
46039
+ console.log(chalk80.bold(title === "" ? id : title));
46040
+ if (title !== "")
46041
+ console.log(` ${id}`);
45888
46042
  console.log(` Version: ${String(artifact.version?.number ?? artifact.currentVersion ?? "—")} Access: ${artifact.access ?? "—"}`);
45889
46043
  if (page !== undefined)
45890
46044
  console.log(` ${page}`);
45891
46045
  if (fenced.text !== undefined)
45892
46046
  console.log(fenced.text);
45893
46047
  for (const w of written ?? [])
45894
- console.log(chalk79.dim(` wrote ${w.file} (${String(w.bytes)} bytes)`));
45895
- }
45896
- });
45897
- });
45898
- });
45899
- }
45900
- function rows(items) {
45901
- return Array.isArray(items) ? items : [];
45902
- }
45903
- function printRows(items) {
45904
- for (const a of items) {
45905
- console.log(` ${a.id ?? "?"} v${String(a.currentVersion ?? "—")} ${chalk79.dim(`${a.access ?? ""} ${a.updatedAt ?? ""}`)}`);
45906
- }
45907
- }
45908
- function registerList13(artifacts) {
45909
- artifacts.command("list").alias("ls").description("Artifacts you can open, newest first").option("--scope <scope>", `Which: ${ARTIFACT_SCOPES.join(", ")} (default: mine)`).option("--group <by>", "Group by: session (the agent session that published each)").option("--limit <n>", "Page size (server default)").option("--cursor <c>", "The nextCursor of the previous page").addHelpText("after", `
45910
- Examples:
45911
- ${chalk79.dim("$")} mutagent artifacts list --json
45912
- ${chalk79.dim("$")} mutagent artifacts list --scope workspace --group session --json
45913
-
45914
- AI Agent Directive:
45915
- A read: run it freely. --json returns { success, ok, data: { items | groups, nextCursor } }
45916
- and 'next' with the command for the following page.
45917
- `).action(async (options, command) => {
45918
- await runAction2(command, async (isJson) => {
45919
- const scope = oneOf("--scope", options.scope, ARTIFACT_SCOPES, "list");
45920
- const groupBy = oneOf("--group", options.group, GROUPS, "list");
45921
- const limit = positiveInt("--limit", options.limit, "list");
45922
- const conn = await connect();
45923
- const page = await artifactsApi.list(conn, {
45924
- ...scope === undefined ? {} : { scope },
45925
- ...groupBy === undefined ? {} : { groupBy },
45926
- ...limit === undefined ? {} : { limit },
45927
- ...options.cursor === undefined ? {} : { cursor: options.cursor }
45928
- }, helpOf("list"));
45929
- const cursor = typeof page.nextCursor === "string" ? page.nextCursor : undefined;
45930
- const again = ["mutagent artifacts list", ...scope === undefined ? [] : ["--scope", scope], ...groupBy === undefined ? [] : ["--group", groupBy], ...limit === undefined ? [] : ["--limit", String(limit)]];
45931
- const fenced = fenceHuman(page, "[artifacts list]");
45932
- printOk(isJson, {
45933
- data: { ...fenced.data, ...fenced.text === undefined ? {} : { text: fenced.text } },
45934
- ...cursor === undefined ? {} : { next: [[...again, "--cursor", arg2(cursor), "--json"].join(" ")] },
45935
- human: () => {
45936
- const safe = fenced.data;
45937
- const groups = Array.isArray(safe.groups) ? safe.groups : undefined;
45938
- const raw = Array.isArray(page.groups) ? page.groups : [];
45939
- if (groups !== undefined) {
45940
- if (groups.length === 0)
45941
- console.log(chalk79.gray("No artifacts. Publish one with: mutagent artifacts publish <file.html>"));
45942
- groups.forEach((g, i) => {
45943
- const label = g.sessionRef ?? g.harnessSessionId;
45944
- const hidden = label === null || label === undefined ? typeof raw[i]?.sessionRef === "string" || typeof raw[i]?.harnessSessionId === "string" : false;
45945
- console.log(chalk79.bold(`Session ${label ?? (hidden ? "(see the fenced text)" : "(none)")}`));
45946
- printRows(rows(g.items));
45947
- });
45948
- if (fenced.text !== undefined)
45949
- console.log(fenced.text);
45950
- return;
45951
- }
45952
- const items = rows(page.items);
45953
- if (items.length === 0)
45954
- console.log(chalk79.gray("No artifacts. Publish one with: mutagent artifacts publish <file.html>"));
45955
- printRows(items);
45956
- if (fenced.text !== undefined)
45957
- console.log(fenced.text);
46048
+ console.log(chalk80.dim(` wrote ${w.file} (${String(w.bytes)} bytes)`));
45958
46049
  }
45959
46050
  });
45960
46051
  });
@@ -45963,7 +46054,7 @@ AI Agent Directive:
45963
46054
  function registerVersions2(artifacts) {
45964
46055
  artifacts.command("versions").description("An artifact's version history, newest first").argument("<id>", "The artifact id").addHelpText("after", `
45965
46056
  Examples:
45966
- ${chalk79.dim("$")} mutagent artifacts versions <artifact-id> --json
46057
+ ${chalk80.dim("$")} mutagent artifacts versions <artifact-id> --json
45967
46058
 
45968
46059
  Errors (code: recovery):
45969
46060
  ARTIFACT_NOT_FOUND mutagent artifacts list --json
@@ -45983,9 +46074,9 @@ AI Agent Directive:
45983
46074
  human: () => {
45984
46075
  const items = Array.isArray(history.items) ? history.items : [];
45985
46076
  if (items.length === 0)
45986
- console.log(chalk79.gray("No versions."));
46077
+ console.log(chalk80.gray("No versions."));
45987
46078
  for (const v of items) {
45988
- console.log(` v${String(v.version ?? "?")} ${chalk79.dim(v.publishedAt ?? "")}${v.rolledBackFrom ? chalk79.dim(` (rollback of v${String(v.rolledBackFrom)})`) : ""}`);
46079
+ console.log(` v${String(v.version ?? "?")} ${chalk80.dim(v.publishedAt ?? "")}${v.rolledBackFrom ? chalk80.dim(` (rollback of v${String(v.rolledBackFrom)})`) : ""}`);
45989
46080
  }
45990
46081
  }
45991
46082
  });
@@ -46000,7 +46091,7 @@ function registerReadCommands(artifacts) {
46000
46091
 
46001
46092
  // src/commands/artifacts/watch.ts
46002
46093
  import { randomUUID as randomUUID7 } from "node:crypto";
46003
- import chalk80 from "chalk";
46094
+ import chalk81 from "chalk";
46004
46095
  init_errors();
46005
46096
  init_known_secrets();
46006
46097
  init_output();
@@ -46048,9 +46139,9 @@ occurredAt?, actor: { kind }, url?, text, next }. 'text' holds everything a view
46048
46139
  wrote, scrubbed and inside a fenced block labelled untrusted viewer data.
46049
46140
 
46050
46141
  Examples:
46051
- ${chalk80.dim("$")} mutagent artifacts watch <artifact-id> --json
46052
- ${chalk80.dim("$")} mutagent artifacts watch --mine --json
46053
- ${chalk80.dim("$")} mutagent artifacts watch <artifact-id> --since <cursor> --json
46142
+ ${chalk81.dim("$")} mutagent artifacts watch <artifact-id> --json
46143
+ ${chalk81.dim("$")} mutagent artifacts watch --mine --json
46144
+ ${chalk81.dim("$")} mutagent artifacts watch <artifact-id> --since <cursor> --json
46054
46145
 
46055
46146
  Errors (code: recovery):
46056
46147
  VALIDATION_ERROR Name up to 50 artifacts, or pass --mine (not both; nothing was opened)
@@ -46089,10 +46180,10 @@ AI Agent Directive:
46089
46180
  process.once("SIGINT", stop);
46090
46181
  process.once("SIGTERM", stop);
46091
46182
  const notice = (text) => {
46092
- console.error(chalk80.yellow(text));
46183
+ console.error(chalk81.yellow(text));
46093
46184
  };
46094
46185
  if (!isJson)
46095
- console.error(chalk80.dim(`Watching ${ids.length === 0 ? "your artifacts" : ids.join(", ")} (Ctrl-C to stop)…`));
46186
+ console.error(chalk81.dim(`Watching ${ids.length === 0 ? "your artifacts" : ids.join(", ")} (Ctrl-C to stop)…`));
46096
46187
  try {
46097
46188
  const events = watchEvents({ allComments: flags.allComments === true, ...flags.since === undefined ? {} : { since: flags.since }, ...selfSession === undefined ? {} : { selfSession } }, { open: opener(conn, ids, flags, randomUUID7()), sleep: sleep3, now: () => Date.now(), notice }, controller.signal);
46098
46189
  for await (const { event, cursor } of events) {
@@ -46103,7 +46194,7 @@ AI Agent Directive:
46103
46194
  }
46104
46195
  console.log(String(line.text));
46105
46196
  for (const step of line.next)
46106
- console.log(chalk80.dim(` next: ${step}`));
46197
+ console.log(chalk81.dim(` next: ${step}`));
46107
46198
  console.log("");
46108
46199
  }
46109
46200
  } finally {
@@ -46111,7 +46202,7 @@ AI Agent Directive:
46111
46202
  process.removeListener("SIGTERM", stop);
46112
46203
  }
46113
46204
  if (!isJson)
46114
- console.error(chalk80.dim("Stopped."));
46205
+ console.error(chalk81.dim("Stopped."));
46115
46206
  });
46116
46207
  });
46117
46208
  }
@@ -46353,7 +46444,7 @@ init_key_check();
46353
46444
  init_config();
46354
46445
  init_organization_scope();
46355
46446
  init_output();
46356
- import chalk81 from "chalk";
46447
+ import chalk82 from "chalk";
46357
46448
 
46358
46449
  // src/lib/brand.ts
46359
46450
  var BRAND = {
@@ -46950,44 +47041,44 @@ A managed agent is an agent.md folder deployed with mutagent agent deploy.
46950
47041
  });
46951
47042
  program.addHelpText("beforeAll", () => renderBanner());
46952
47043
  program.addHelpText("after", `
46953
- ${chalk81.yellow("Get started:")}
47044
+ ${chalk82.yellow("Get started:")}
46954
47045
  1. mutagent login
46955
- ${chalk81.dim("Sign in: in the browser, or with MUTAGENT_API_KEY set")}
47046
+ ${chalk82.dim("Sign in: in the browser, or with MUTAGENT_API_KEY set")}
46956
47047
  2. mutagent providers add --provider openai --name "My OpenAI" --api-key-stdin < key.txt
46957
- ${chalk81.dim("Add your LLM provider key, read from stdin (mutagent providers mirror copies your local Helix logins instead)")}
47048
+ ${chalk82.dim("Add your LLM provider key, read from stdin (mutagent providers mirror copies your local Helix logins instead)")}
46958
47049
  3. mutagent env set staging GREETING=hello --secrets-from-file .env.secrets
46959
- ${chalk81.dim("Create an Environment: the variables and secrets a sandbox gets")}
47050
+ ${chalk82.dim("Create an Environment: the variables and secrets a sandbox gets")}
46960
47051
  4. mutagent helix --env staging -p "<task>"
46961
- ${chalk81.dim("Run Helix on the task in a cloud sandbox and print its answer")}
46962
- ${chalk81.dim("To run Helix on this machine instead: mutagent install helix installs the Helix binary")}
46963
-
46964
- ${chalk81.yellow("Managed agents:")}
46965
- mutagent agent deploy <agent.md> ${chalk81.dim("Check, upload and activate an agent.md folder (--env names the Environment whose slot is used)")}
46966
- mutagent helix agent @<slug> -p "<task>" ${chalk81.dim("Run a managed agent in the cloud")}
46967
- mutagent agent --help ${chalk81.dim("check, pack, run, deploy, activate, list, inspect, retire")}
46968
-
46969
- ${chalk81.yellow("Workspace:")}
46970
- mutagent workspaces use <name> ${chalk81.dim("Choose the workspace every later command works in")}
46971
- mutagent workspaces current ${chalk81.dim("The key's scope, organization and the verified workspace")}
46972
- mutagent workspaces list ${chalk81.dim("Your workspaces in the key's organization")}
46973
- --workspace <name|id> ${chalk81.dim("One command in another workspace (then MUTAGENT_WORKSPACE_ID, then the selection)")}
46974
- mutagent login --org <slug> ${chalk81.dim("Sign in for another organization")}
46975
- mutagent providers list ${chalk81.dim("LLM providers in the workspace")}
46976
- mutagent helix models ${chalk81.dim("Models Helix can use in the cloud, and the workspace default model")}
46977
- mutagent env list ${chalk81.dim("Environments: variables and secrets for tools")}
46978
- mutagent usage ${chalk81.dim("Count the workspace's LLM providers and your workspaces")}
46979
-
46980
- ${chalk81.yellow("Automation:")}
46981
- MUTAGENT_API_KEY=mg_live_... ${chalk81.dim("Sign in without a browser (or --api-key <key>)")}
46982
- --json ${chalk81.dim("Structured output")}
46983
- --non-interactive ${chalk81.dim("No sign-in method or consent prompts (also when CI=true or stdin is not a terminal); a first sign-in in a terminal ends with a menu unless --json")}
46984
- -v, --version ${chalk81.dim("CLI version (only before a subcommand)")}
46985
-
46986
- ${chalk81.yellow("Report a problem:")}
47052
+ ${chalk82.dim("Run Helix on the task in a cloud sandbox and print its answer")}
47053
+ ${chalk82.dim("To run Helix on this machine instead: mutagent install helix installs the Helix binary")}
47054
+
47055
+ ${chalk82.yellow("Managed agents:")}
47056
+ mutagent agent deploy <agent.md> ${chalk82.dim("Check, upload and activate an agent.md folder (--env names the Environment whose slot is used)")}
47057
+ mutagent helix agent @<slug> -p "<task>" ${chalk82.dim("Run a managed agent in the cloud")}
47058
+ mutagent agent --help ${chalk82.dim("check, pack, run, deploy, activate, list, inspect, retire")}
47059
+
47060
+ ${chalk82.yellow("Workspace:")}
47061
+ mutagent workspaces use <name> ${chalk82.dim("Choose the workspace every later command works in")}
47062
+ mutagent workspaces current ${chalk82.dim("The key's scope, organization and the verified workspace")}
47063
+ mutagent workspaces list ${chalk82.dim("Your workspaces in the key's organization")}
47064
+ --workspace <name|id> ${chalk82.dim("One command in another workspace (then MUTAGENT_WORKSPACE_ID, then the selection)")}
47065
+ mutagent login --org <slug> ${chalk82.dim("Sign in for another organization")}
47066
+ mutagent providers list ${chalk82.dim("LLM providers in the workspace")}
47067
+ mutagent helix models ${chalk82.dim("Models Helix can use in the cloud, and the workspace default model")}
47068
+ mutagent env list ${chalk82.dim("Environments: variables and secrets for tools")}
47069
+ mutagent usage ${chalk82.dim("Count the workspace's LLM providers and your workspaces")}
47070
+
47071
+ ${chalk82.yellow("Automation:")}
47072
+ MUTAGENT_API_KEY=mg_live_... ${chalk82.dim("Sign in without a browser (or --api-key <key>)")}
47073
+ --json ${chalk82.dim("Structured output")}
47074
+ --non-interactive ${chalk82.dim("No sign-in method or consent prompts (also when CI=true or stdin is not a terminal); a first sign-in in a terminal ends with a menu unless --json")}
47075
+ -v, --version ${chalk82.dim("CLI version (only before a subcommand)")}
47076
+
47077
+ ${chalk82.yellow("Report a problem:")}
46987
47078
  mutagent feedback send "<what happened>" --category cli
46988
- ${chalk81.dim("--category accepts: cli | helix | stage:<spec|build|evaluate|diagnose|optimize>")}
47079
+ ${chalk82.dim("--category accepts: cli | helix | stage:<spec|build|evaluate|diagnose|optimize>")}
46989
47080
 
46990
- ${chalk81.yellow("AI Agent Directive:")}
47081
+ ${chalk82.yellow("AI Agent Directive:")}
46991
47082
  Install the skill first: mutagent skills install (.claude/skills/mutagent-cli/SKILL.md).
46992
47083
  It holds the full workflows. These rules apply to every command:
46993
47084
  1. Sign in: with MUTAGENT_API_KEY set, run mutagent login --json. To help a user sign in,
@@ -47003,7 +47094,7 @@ ${chalk81.yellow("AI Agent Directive:")}
47003
47094
  6. Ask the user through your own question tool. With --json only mutagent login can prompt, in a terminal; pass --browser or set MUTAGENT_API_KEY.
47004
47095
  7. Keep secrets off the command line: --api-key-stdin for an LLM provider key, --secrets-from-file for Environment secrets.
47005
47096
  ${!hasCredentials() ? `
47006
- ` + chalk81.yellow(" Not signed in: start with step 1, mutagent login.") + `
47097
+ ` + chalk82.yellow(" Not signed in: start with step 1, mutagent login.") + `
47007
47098
  ` : ""}`);
47008
47099
  const rawArgs = rescopeProviderApiKeyFlag(argv);
47009
47100
  if (isGlobalVersionFlag(rawArgs)) {
@@ -47080,4 +47171,4 @@ if (process.env.CLI_VERSION) {
47080
47171
  }
47081
47172
  runCli(process.argv.slice(2), cliVersion);
47082
47173
 
47083
- //# debugId=FF5288236E135AC364756E2164756E21
47174
+ //# debugId=71A4E1266AB27BD564756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutagent/cli",
3
- "version": "0.2.322",
3
+ "version": "0.2.323",
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": {
@@ -102,5 +102,5 @@
102
102
  "bugs": {
103
103
  "url": "https://docs.mutagent.io/support"
104
104
  },
105
- "gitHead": "a2e4e97050445c4521a598990cfd1e53b37b1be7"
105
+ "gitHead": "986fe7f9d8da8b87c1f94186907fd9732fbc31a7"
106
106
  }