@skyramp/testbot-core 0.13.2-v3.512 → 0.13.2-v3.514

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/post.js CHANGED
@@ -48,7 +48,7 @@ ${c}`,this.dataLineCount++;return}if(ly(t,r,Woe)){Xoe(t,i)&&(this.setEventFieldS
48
48
  Error Code : ${o.statusCode}
49
49
 
50
50
  Error Message: ${o.message}`)})).result)===null||n===void 0?void 0:n.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(t){return V1(this,void 0,void 0,function*(){try{let n=e.getIDTokenUrl();if(t){let r=encodeURIComponent(t);n=`${n}&audience=${r}`}Nk(`ID token url is ${n}`);let s=yield e.getCall(n);return Mi(s),s}catch(n){throw new Error(`Error message: ${n.message}`)}})}}});var H1,ff,Pk,Wae,Yae,Zae,z1,Ok,Wxe,Fk=Gn(()=>{H1=require("os"),ff=require("fs"),Pk=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})},{access:Wae,appendFile:Yae,writeFile:Zae}=ff.promises,z1="GITHUB_STEP_SUMMARY",Ok=class{constructor(){this._buffer=""}filePath(){return Pk(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[z1];if(!t)throw new Error(`Unable to find environment variable for $${z1}. Check if your runtime environment supports job summaries.`);try{yield Wae(t,ff.constants.R_OK|ff.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(t,n,s={}){let r=Object.entries(s).map(([i,o])=>` ${i}="${o}"`).join("");return n?`<${t}${r}>${n}</${t}>`:`<${t}${r}>`}write(t){return Pk(this,void 0,void 0,function*(){let n=!!t?.overwrite,s=yield this.filePath();return yield(n?Zae:Yae)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Pk(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(t,n=!1){return this._buffer+=t,n?this.addEOL():this}addEOL(){return this.addRaw(H1.EOL)}addCodeBlock(t,n){let s=Object.assign({},n&&{lang:n}),r=this.wrap("pre",this.wrap("code",t),s);return this.addRaw(r).addEOL()}addList(t,n=!1){let s=n?"ol":"ul",r=t.map(o=>this.wrap("li",o)).join(""),i=this.wrap(s,r);return this.addRaw(i).addEOL()}addTable(t){let n=t.map(r=>{let i=r.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:d}=o,p=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,c,h)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",n);return this.addRaw(s).addEOL()}addDetails(t,n){let s=this.wrap("details",this.wrap("summary",t)+n);return this.addRaw(s).addEOL()}addImage(t,n,s){let{width:r,height:i}=s||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:t,alt:n},o));return this.addRaw(a).addEOL()}addHeading(t,n){let s=`h${n}`,r=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(r,t);return this.addRaw(i).addEOL()}addSeparator(){let t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){let t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,n){let s=Object.assign({},n&&{cite:n}),r=this.wrap("blockquote",t,s);return this.addRaw(r).addEOL()}addLink(t,n){let s=this.wrap("a",t,{href:n});return this.addRaw(s).addEOL()}},Wxe=new Ok});var q1=Gn(()=>{});function Uk(e){return W1(this,void 0,void 0,function*(){try{yield Ay(e)}catch(t){if(t.code==="ENOENT")return!1;throw t}return!0})}function Ey(e){if(e=oce(e),!e)throw new Error('isRooted() parameter "p" cannot be empty');return lc?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")}function Mk(e,t){return W1(this,void 0,void 0,function*(){let n;try{n=yield Ay(e)}catch(r){r.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}if(n&&n.isFile()){if(lc){let r=Oo.extname(e).toUpperCase();if(t.some(i=>i.toUpperCase()===r))return e}else if(J1(n))return e}let s=e;for(let r of t){e=s+r,n=void 0;try{n=yield Ay(e)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${i}`)}if(n&&n.isFile()){if(lc){try{let i=Oo.dirname(e),o=Oo.basename(e).toUpperCase();for(let a of yield Y1(i))if(o===a.toUpperCase()){e=Oo.join(i,a);break}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${i}`)}return e}else if(J1(n))return e}}return""})}function oce(e){return e=e||"",lc?(e=e.replace(/\//g,"\\"),e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function J1(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var yy,Oo,W1,Kae,Xae,ece,tce,Kxe,Y1,nce,rce,Xxe,Ay,sce,ice,lc,e$e,Lk=Gn(()=>{yy=Y(require("fs"),1),Oo=Y(require("path"),1),W1=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})},{chmod:Kae,copyFile:Xae,lstat:ece,mkdir:tce,open:Kxe,readdir:Y1,rename:nce,rm:rce,rmdir:Xxe,stat:Ay,symlink:sce,unlink:ice}=yy.promises,lc=process.platform==="win32",e$e=yy.constants.O_RDONLY});function jk(e,t){return K1(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");if(t){let s=yield jk(e,!1);if(!s)throw lc?new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return s}let n=yield ace(e);return n&&n.length>0?n[0]:""})}function ace(e){return K1(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");let t=[];if(lc&&process.env.PATHEXT)for(let r of process.env.PATHEXT.split(ei.delimiter))r&&t.push(r);if(Ey(e)){let r=yield Mk(e,t);return r?[r]:[]}if(e.includes(ei.sep))return[];let n=[];if(process.env.PATH)for(let r of process.env.PATH.split(ei.delimiter))r&&n.push(r);let s=[];for(let r of n){let i=yield Mk(ei.join(r,e),t);i&&s.push(i)}return s})}var ei,K1,X1=Gn(()=>{ei=Y(require("path"),1);Lk();K1=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})}});function sV(e){let t=[],n=!1,s=!1,r="";function i(o){s&&o!=='"'&&(r+="\\"),r+=o,s=!1}for(let o=0;o<e.length;o++){let a=e.charAt(o);if(a==='"'){s?i(a):n=!n;continue}if(a==="\\"&&s){i(a);continue}if(a==="\\"&&n){s=!0;continue}if(a===" "&&!n){r.length>0&&(t.push(r),r="");continue}i(a)}return r.length>0&&t.push(r.trim()),t}var hf,Gk,tV,nV,rV,eV,vy,by,Vk,iV=Gn(()=>{hf=Y(require("os"),1),Gk=Y(require("events"),1),tV=Y(require("child_process"),1),nV=Y(require("path"),1);X1();Lk();rV=require("timers"),eV=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})},vy=process.platform==="win32",by=class extends Gk.EventEmitter{constructor(t,n,s){if(super(),!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=t,this.args=n||[],this.options=s||{}}_debug(t){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(t)}_getCommandString(t,n){let s=this._getSpawnFileName(),r=this._getSpawnArgs(t),i=n?"":"[command]";if(vy)if(this._isCmdFile()){i+=s;for(let o of r)i+=` ${o}`}else if(t.windowsVerbatimArguments){i+=`"${s}"`;for(let o of r)i+=` ${o}`}else{i+=this._windowsQuoteCmdArg(s);for(let o of r)i+=` ${this._windowsQuoteCmdArg(o)}`}else{i+=s;for(let o of r)i+=` ${o}`}return i}_processLineBuffer(t,n,s){try{let r=n+t.toString(),i=r.indexOf(hf.EOL);for(;i>-1;){let o=r.substring(0,i);s(o),r=r.substring(i+hf.EOL.length),i=r.indexOf(hf.EOL)}return r}catch(r){return this._debug(`error processing line. Failed with error ${r}`),""}}_getSpawnFileName(){return vy&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(t){if(vy&&this._isCmdFile()){let n=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let s of this.args)n+=" ",n+=t.windowsVerbatimArguments?s:this._windowsQuoteCmdArg(s);return n+='"',[n]}return this.args}_endsWith(t,n){return t.endsWith(n)}_isCmdFile(){let t=this.toolPath.toUpperCase();return this._endsWith(t,".CMD")||this._endsWith(t,".BAT")}_windowsQuoteCmdArg(t){if(!this._isCmdFile())return this._uvQuoteCmdArg(t);if(!t)return'""';let n=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],s=!1;for(let o of t)if(n.some(a=>a===o)){s=!0;break}if(!s)return t;let r='"',i=!0;for(let o=t.length;o>0;o--)r+=t[o-1],i&&t[o-1]==="\\"?r+="\\":t[o-1]==='"'?(i=!0,r+='"'):i=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(t){if(!t)return'""';if(!t.includes(" ")&&!t.includes(" ")&&!t.includes('"'))return t;if(!t.includes('"')&&!t.includes("\\"))return`"${t}"`;let n='"',s=!0;for(let r=t.length;r>0;r--)n+=t[r-1],s&&t[r-1]==="\\"?n+="\\":t[r-1]==='"'?(s=!0,n+="\\"):s=!1;return n+='"',n.split("").reverse().join("")}_cloneExecOptions(t){t=t||{};let n={cwd:t.cwd||process.cwd(),env:t.env||process.env,silent:t.silent||!1,windowsVerbatimArguments:t.windowsVerbatimArguments||!1,failOnStdErr:t.failOnStdErr||!1,ignoreReturnCode:t.ignoreReturnCode||!1,delay:t.delay||1e4};return n.outStream=t.outStream||process.stdout,n.errStream=t.errStream||process.stderr,n}_getSpawnOptions(t,n){t=t||{};let s={};return s.cwd=t.cwd,s.env=t.env,s.windowsVerbatimArguments=t.windowsVerbatimArguments||this._isCmdFile(),t.windowsVerbatimArguments&&(s.argv0=`"${n}"`),s}exec(){return eV(this,void 0,void 0,function*(){return!Ey(this.toolPath)&&(this.toolPath.includes("/")||vy&&this.toolPath.includes("\\"))&&(this.toolPath=nV.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield jk(this.toolPath,!0),new Promise((t,n)=>eV(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let u of this.args)this._debug(` ${u}`);let s=this._cloneExecOptions(this.options);!s.silent&&s.outStream&&s.outStream.write(this._getCommandString(s)+hf.EOL);let r=new Vk(s,this.toolPath);if(r.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield Uk(this.options.cwd)))return n(new Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=tV.spawn(i,this._getSpawnArgs(s),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",u=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(u),!s.silent&&s.outStream&&s.outStream.write(u),a=this._processLineBuffer(u,a,d=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(d)})});let c="";if(o.stderr&&o.stderr.on("data",u=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(u),!s.silent&&s.errStream&&s.outStream&&(s.failOnStdErr?s.errStream:s.outStream).write(u),c=this._processLineBuffer(u,c,d=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(d)})}),o.on("error",u=>{r.processError=u.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()}),o.on("exit",u=>{r.processExitCode=u,r.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),r.CheckComplete()}),o.on("close",u=>{r.processExitCode=u,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete()}),r.on("done",(u,d)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),u?n(u):t(d)}),this.options.input){if(!o.stdin)throw new Error("child process missing stdin");o.stdin.end(this.options.input)}}))})}};Vk=class e extends Gk.EventEmitter{constructor(t,n){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!n)throw new Error("toolPath must not be empty");this.options=t,this.toolPath=n,t.delay&&(this.delay=t.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,rV.setTimeout)(e.HandleTimeout,this.delay,this)))}_debug(t){this.emit("debug",t)}_setResult(){let t;this.processExited&&(this.processError?t=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?t=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(t=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",t,this.processExitCode)}static HandleTimeout(t){if(!t.done){if(!t.processClosed&&t.processExited){let n=`The STDIO streams did not close within ${t.delay/1e3} seconds of the exit event from process '${t.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;t._debug(n)}t._setResult()}}}});function oV(e,t,n){return lce(this,void 0,void 0,function*(){let s=sV(e);if(s.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let r=s[0];return t=s.slice(1).concat(t||[]),new by(r,t,n).exec()})}var lce,zk=Gn(()=>{iV();lce=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})}});var Hk,s$e,i$e,cV=Gn(()=>{Hk=Y(require("os"),1);zk();s$e=Hk.default.platform(),i$e=Hk.default.arch()});function Mi(e){Na("add-mask",{},e)}function Ve(e,t){let n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n)throw new Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function Fo(e,t){let n=["true","True","TRUE"],s=["false","False","FALSE"],r=Ve(e,t);if(n.includes(r))return!0;if(s.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}
51
- Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function lV(e){process.exitCode=qk.Failure,dV(e)}function Nk(e){Na("debug",{},e)}function dV(e,t={}){Na("error",gm(t),e instanceof Error?e.toString():e)}function jt(e,t={}){Na("warning",gm(t),e instanceof Error?e.toString():e)}function Jk(e,t={}){Na("notice",gm(t),e instanceof Error?e.toString():e)}function Bs(e){process.stdout.write(e+uV.EOL)}function wy(e){nI("group",e)}function Iy(){nI("endgroup")}function ti(e){return process.env[`STATE_${e}`]||""}function pV(e){return pce(this,void 0,void 0,function*(){return yield my.getIDToken(e)})}var uV,pce,qk,Dn=Gn(()=>{oN();aN();mm();uV=Y(require("os"),1);G1();Fk();Fk();q1();cV();pce=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})};(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(qk||(qk={}))});var Xl=T((d_e,C2)=>{"use strict";var _pe="2.0.0",Dpe=Number.MAX_SAFE_INTEGER||9007199254740991,Npe=16,Ppe=250,Ope=["major","premajor","minor","preminor","patch","prepatch","prerelease"];C2.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Npe,MAX_SAFE_BUILD_LENGTH:Ppe,MAX_SAFE_INTEGER:Dpe,RELEASE_TYPES:Ope,SEMVER_SPEC_VERSION:_pe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ph=T((p_e,S2)=>{"use strict";var Fpe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};S2.exports=Fpe});var ed=T((gi,k2)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:kB,MAX_SAFE_BUILD_LENGTH:Upe,MAX_LENGTH:Mpe}=Xl(),Lpe=ph();gi=k2.exports={};var jpe=gi.re=[],Vpe=gi.safeRe=[],ae=gi.src=[],Gpe=gi.safeSrc=[],ce=gi.t={},zpe=0,RB="[a-zA-Z0-9-]",Hpe=[["\\s",1],["\\d",Mpe],[RB,Upe]],qpe=e=>{for(let[t,n]of Hpe)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},Ge=(e,t,n)=>{let s=qpe(t),r=zpe++;Lpe(e,r,t),ce[e]=r,ae[r]=t,Gpe[r]=s,jpe[r]=new RegExp(t,n?"g":void 0),Vpe[r]=new RegExp(s,n?"g":void 0)};Ge("NUMERICIDENTIFIER","0|[1-9]\\d*");Ge("NUMERICIDENTIFIERLOOSE","\\d+");Ge("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${RB}*`);Ge("MAINVERSION",`(${ae[ce.NUMERICIDENTIFIER]})\\.(${ae[ce.NUMERICIDENTIFIER]})\\.(${ae[ce.NUMERICIDENTIFIER]})`);Ge("MAINVERSIONLOOSE",`(${ae[ce.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ce.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ce.NUMERICIDENTIFIERLOOSE]})`);Ge("PRERELEASEIDENTIFIER",`(?:${ae[ce.NONNUMERICIDENTIFIER]}|${ae[ce.NUMERICIDENTIFIER]})`);Ge("PRERELEASEIDENTIFIERLOOSE",`(?:${ae[ce.NONNUMERICIDENTIFIER]}|${ae[ce.NUMERICIDENTIFIERLOOSE]})`);Ge("PRERELEASE",`(?:-(${ae[ce.PRERELEASEIDENTIFIER]}(?:\\.${ae[ce.PRERELEASEIDENTIFIER]})*))`);Ge("PRERELEASELOOSE",`(?:-?(${ae[ce.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ae[ce.PRERELEASEIDENTIFIERLOOSE]})*))`);Ge("BUILDIDENTIFIER",`${RB}+`);Ge("BUILD",`(?:\\+(${ae[ce.BUILDIDENTIFIER]}(?:\\.${ae[ce.BUILDIDENTIFIER]})*))`);Ge("FULLPLAIN",`v?${ae[ce.MAINVERSION]}${ae[ce.PRERELEASE]}?${ae[ce.BUILD]}?`);Ge("FULL",`^${ae[ce.FULLPLAIN]}$`);Ge("LOOSEPLAIN",`[v=\\s]*${ae[ce.MAINVERSIONLOOSE]}${ae[ce.PRERELEASELOOSE]}?${ae[ce.BUILD]}?`);Ge("LOOSE",`^${ae[ce.LOOSEPLAIN]}$`);Ge("GTLT","((?:<|>)?=?)");Ge("XRANGEIDENTIFIERLOOSE",`${ae[ce.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ge("XRANGEIDENTIFIER",`${ae[ce.NUMERICIDENTIFIER]}|x|X|\\*`);Ge("XRANGEPLAIN",`[v=\\s]*(${ae[ce.XRANGEIDENTIFIER]})(?:\\.(${ae[ce.XRANGEIDENTIFIER]})(?:\\.(${ae[ce.XRANGEIDENTIFIER]})(?:${ae[ce.PRERELEASE]})?${ae[ce.BUILD]}?)?)?`);Ge("XRANGEPLAINLOOSE",`[v=\\s]*(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:${ae[ce.PRERELEASELOOSE]})?${ae[ce.BUILD]}?)?)?`);Ge("XRANGE",`^${ae[ce.GTLT]}\\s*${ae[ce.XRANGEPLAIN]}$`);Ge("XRANGELOOSE",`^${ae[ce.GTLT]}\\s*${ae[ce.XRANGEPLAINLOOSE]}$`);Ge("COERCEPLAIN",`(^|[^\\d])(\\d{1,${kB}})(?:\\.(\\d{1,${kB}}))?(?:\\.(\\d{1,${kB}}))?`);Ge("COERCE",`${ae[ce.COERCEPLAIN]}(?:$|[^\\d])`);Ge("COERCEFULL",ae[ce.COERCEPLAIN]+`(?:${ae[ce.PRERELEASE]})?(?:${ae[ce.BUILD]})?(?:$|[^\\d])`);Ge("COERCERTL",ae[ce.COERCE],!0);Ge("COERCERTLFULL",ae[ce.COERCEFULL],!0);Ge("LONETILDE","(?:~>?)");Ge("TILDETRIM",`(\\s*)${ae[ce.LONETILDE]}\\s+`,!0);gi.tildeTrimReplace="$1~";Ge("TILDE",`^${ae[ce.LONETILDE]}${ae[ce.XRANGEPLAIN]}$`);Ge("TILDELOOSE",`^${ae[ce.LONETILDE]}${ae[ce.XRANGEPLAINLOOSE]}$`);Ge("LONECARET","(?:\\^)");Ge("CARETTRIM",`(\\s*)${ae[ce.LONECARET]}\\s+`,!0);gi.caretTrimReplace="$1^";Ge("CARET",`^${ae[ce.LONECARET]}${ae[ce.XRANGEPLAIN]}$`);Ge("CARETLOOSE",`^${ae[ce.LONECARET]}${ae[ce.XRANGEPLAINLOOSE]}$`);Ge("COMPARATORLOOSE",`^${ae[ce.GTLT]}\\s*(${ae[ce.LOOSEPLAIN]})$|^$`);Ge("COMPARATOR",`^${ae[ce.GTLT]}\\s*(${ae[ce.FULLPLAIN]})$|^$`);Ge("COMPARATORTRIM",`(\\s*)${ae[ce.GTLT]}\\s*(${ae[ce.LOOSEPLAIN]}|${ae[ce.XRANGEPLAIN]})`,!0);gi.comparatorTrimReplace="$1$2$3";Ge("HYPHENRANGE",`^\\s*(${ae[ce.XRANGEPLAIN]})\\s+-\\s+(${ae[ce.XRANGEPLAIN]})\\s*$`);Ge("HYPHENRANGELOOSE",`^\\s*(${ae[ce.XRANGEPLAINLOOSE]})\\s+-\\s+(${ae[ce.XRANGEPLAINLOOSE]})\\s*$`);Ge("STAR","(<|>)?=?\\s*\\*");Ge("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ge("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var DE=T((f_e,R2)=>{"use strict";var Jpe=Object.freeze({loose:!0}),Wpe=Object.freeze({}),Ype=e=>e?typeof e!="object"?Jpe:e:Wpe;R2.exports=Ype});var BB=T((h_e,$2)=>{"use strict";var B2=/^[0-9]+$/,x2=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=B2.test(e),s=B2.test(t);return n&&s&&(e=+e,t=+t),e===t?0:n&&!s?-1:s&&!n?1:e<t?-1:1},Zpe=(e,t)=>x2(t,e);$2.exports={compareIdentifiers:x2,rcompareIdentifiers:Zpe}});var Cn=T((g_e,Q2)=>{"use strict";var NE=ph(),{MAX_LENGTH:T2,MAX_SAFE_INTEGER:PE}=Xl(),{safeRe:OE,t:FE}=ed(),Kpe=DE(),{compareIdentifiers:xB}=BB(),Xpe=(e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let s=0;s<n.length;s++)if(xB(e[s],n[s])!==0)return!1;return!0},$B=class e{constructor(t,n){if(n=Kpe(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>T2)throw new TypeError(`version is longer than ${T2} characters`);NE("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let s=t.trim().match(n.loose?OE[FE.LOOSE]:OE[FE.FULL]);if(!s)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>PE||this.major<0)throw new TypeError("Invalid major version");if(this.minor>PE||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>PE||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let i=+r;if(i>=0&&i<PE)return i}return r}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(NE("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let s=this.prerelease[n],r=t.prerelease[n];if(NE("prerelease compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return xB(s,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let s=this.build[n],r=t.build[n];if(NE("build compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return xB(s,r)}while(++n)}inc(t,n,s){if(t.startsWith("pre")){if(!n&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?OE[FE.PRERELEASELOOSE]:OE[FE.PRERELEASE]);if(!r||r[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,s),this.inc("pre",n,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,s),this.inc("pre",n,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let i=[n,r];if(s===!1&&(i=[n]),Xpe(this.prerelease,n)){let o=this.prerelease[n.split(".").length];isNaN(o)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Q2.exports=$B});var aa=T((m_e,D2)=>{"use strict";var _2=Cn(),efe=(e,t,n=!1)=>{if(e instanceof _2)return e;try{return new _2(e,t)}catch(s){if(!n)return null;throw s}};D2.exports=efe});var P2=T((A_e,N2)=>{"use strict";var tfe=aa(),nfe=(e,t)=>{let n=tfe(e,t);return n?n.version:null};N2.exports=nfe});var F2=T((y_e,O2)=>{"use strict";var rfe=aa(),sfe=(e,t)=>{let n=rfe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};O2.exports=sfe});var L2=T((E_e,M2)=>{"use strict";var U2=Cn(),ife=(e,t,n,s,r)=>{typeof n=="string"&&(r=s,s=n,n=void 0);try{return new U2(e instanceof U2?e.version:e,n).inc(t,s,r).version}catch{return null}};M2.exports=ife});var G2=T((v_e,V2)=>{"use strict";var j2=aa(),ofe=(e,t)=>{let n=j2(e,null,!0),s=j2(t,null,!0),r=n.compare(s);if(r===0)return null;let i=r>0,o=i?n:s,a=i?s:n,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let d=c?"pre":"";return n.major!==s.major?d+"major":n.minor!==s.minor?d+"minor":n.patch!==s.patch?d+"patch":"prerelease"};V2.exports=ofe});var H2=T((b_e,z2)=>{"use strict";var afe=Cn(),cfe=(e,t)=>new afe(e,t).major;z2.exports=cfe});var J2=T((w_e,q2)=>{"use strict";var ufe=Cn(),lfe=(e,t)=>new ufe(e,t).minor;q2.exports=lfe});var Y2=T((I_e,W2)=>{"use strict";var dfe=Cn(),pfe=(e,t)=>new dfe(e,t).patch;W2.exports=pfe});var K2=T((C_e,Z2)=>{"use strict";var ffe=aa(),hfe=(e,t)=>{let n=ffe(e,t);return n&&n.prerelease.length?n.prerelease:null};Z2.exports=hfe});var ps=T((S_e,eH)=>{"use strict";var X2=Cn(),gfe=(e,t,n)=>new X2(e,n).compare(new X2(t,n));eH.exports=gfe});var nH=T((k_e,tH)=>{"use strict";var mfe=ps(),Afe=(e,t,n)=>mfe(t,e,n);tH.exports=Afe});var sH=T((R_e,rH)=>{"use strict";var yfe=ps(),Efe=(e,t)=>yfe(e,t,!0);rH.exports=Efe});var UE=T((B_e,oH)=>{"use strict";var iH=Cn(),vfe=(e,t,n)=>{let s=new iH(e,n),r=new iH(t,n);return s.compare(r)||s.compareBuild(r)};oH.exports=vfe});var cH=T((x_e,aH)=>{"use strict";var bfe=UE(),wfe=(e,t)=>e.sort((n,s)=>bfe(n,s,t));aH.exports=wfe});var lH=T(($_e,uH)=>{"use strict";var Ife=UE(),Cfe=(e,t)=>e.sort((n,s)=>Ife(s,n,t));uH.exports=Cfe});var fh=T((T_e,dH)=>{"use strict";var Sfe=ps(),kfe=(e,t,n)=>Sfe(e,t,n)>0;dH.exports=kfe});var ME=T((Q_e,pH)=>{"use strict";var Rfe=ps(),Bfe=(e,t,n)=>Rfe(e,t,n)<0;pH.exports=Bfe});var TB=T((__e,fH)=>{"use strict";var xfe=ps(),$fe=(e,t,n)=>xfe(e,t,n)===0;fH.exports=$fe});var QB=T((D_e,hH)=>{"use strict";var Tfe=ps(),Qfe=(e,t,n)=>Tfe(e,t,n)!==0;hH.exports=Qfe});var LE=T((N_e,gH)=>{"use strict";var _fe=ps(),Dfe=(e,t,n)=>_fe(e,t,n)>=0;gH.exports=Dfe});var jE=T((P_e,mH)=>{"use strict";var Nfe=ps(),Pfe=(e,t,n)=>Nfe(e,t,n)<=0;mH.exports=Pfe});var _B=T((O_e,AH)=>{"use strict";var Ofe=TB(),Ffe=QB(),Ufe=fh(),Mfe=LE(),Lfe=ME(),jfe=jE(),Vfe=(e,t,n,s)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return Ofe(e,n,s);case"!=":return Ffe(e,n,s);case">":return Ufe(e,n,s);case">=":return Mfe(e,n,s);case"<":return Lfe(e,n,s);case"<=":return jfe(e,n,s);default:throw new TypeError(`Invalid operator: ${t}`)}};AH.exports=Vfe});var EH=T((F_e,yH)=>{"use strict";var Gfe=Cn(),zfe=aa(),{safeRe:VE,t:GE}=ed(),Hfe=(e,t)=>{if(e instanceof Gfe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?VE[GE.COERCEFULL]:VE[GE.COERCE]);else{let c=t.includePrerelease?VE[GE.COERCERTLFULL]:VE[GE.COERCERTL],u;for(;(u=c.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(n===null)return null;let s=n[2],r=n[3]||"0",i=n[4]||"0",o=t.includePrerelease&&n[5]?`-${n[5]}`:"",a=t.includePrerelease&&n[6]?`+${n[6]}`:"";return zfe(`${s}.${r}.${i}${o}${a}`,t)};yH.exports=Hfe});var bH=T((U_e,vH)=>{"use strict";var qfe=aa(),Jfe=Xl(),Wfe=Cn(),Yfe=(e,t,n)=>{if(!Jfe.RELEASE_TYPES.includes(t))return null;let s=Zfe(e,n);return s&&Kfe(s,t)},Zfe=(e,t)=>{let n=e instanceof Wfe?e.version:e;return qfe(n,t)},Kfe=(e,t)=>{if(Xfe(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},Xfe=e=>e.startsWith("pre");vH.exports=Yfe});var IH=T((M_e,wH)=>{"use strict";var DB=class{constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let r=this.map.keys().next().value;this.delete(r)}this.map.set(t,n)}return this}};wH.exports=DB});var fs=T((L_e,RH)=>{"use strict";var ehe=/\s+/g,NB=class e{constructor(t,n){if(n=nhe(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof PB)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(ehe," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(r=>!SH(r[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&dhe(r[0])){this.set=[r];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let n=this.set[t];for(let s=0;s<n.length;s++)s>0&&(this.formatted+=" "),this.formatted+=n[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(lhe,"");let s=((this.options.includePrerelease&&che)|(this.options.loose&&uhe))+":"+t,r=CH.get(s);if(r)return r;let i=this.options.loose,o=i?er[Sn.HYPHENRANGELOOSE]:er[Sn.HYPHENRANGE];t=t.replace(o,whe(this.options.includePrerelease)),Nt("hyphen replace",t),t=t.replace(er[Sn.COMPARATORTRIM],ihe),Nt("comparator trim",t),t=t.replace(er[Sn.TILDETRIM],ohe),Nt("tilde trim",t),t=t.replace(er[Sn.CARETTRIM],ahe),Nt("caret trim",t);let a=t.split(" ").map(p=>phe(p,this.options)).join(" ").split(/\s+/).map(p=>bhe(p,this.options));i&&(a=a.filter(p=>(Nt("loose invalid filter",p,this.options),!!p.match(er[Sn.COMPARATORLOOSE])))),Nt("range list",a);let c=new Map,u=a.map(p=>new PB(p,this.options));for(let p of u){if(SH(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return CH.set(s,d),d}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(s=>kH(s,n)&&t.set.some(r=>kH(r,n)&&s.every(i=>r.every(o=>i.intersects(o,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new rhe(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Ihe(this.set[n],t,this.options))return!0;return!1}};RH.exports=NB;var the=IH(),CH=new the,nhe=DE(),PB=hh(),Nt=ph(),rhe=Cn(),{safeRe:er,src:she,t:Sn,comparatorTrimReplace:ihe,tildeTrimReplace:ohe,caretTrimReplace:ahe}=ed(),{FLAG_INCLUDE_PRERELEASE:che,FLAG_LOOSE:uhe}=Xl(),lhe=new RegExp(she[Sn.BUILD],"g"),SH=e=>e.value==="<0.0.0-0",dhe=e=>e.value==="",kH=(e,t)=>{let n=!0,s=e.slice(),r=s.pop();for(;n&&s.length;)n=s.every(i=>r.intersects(i,t)),r=s.pop();return n},phe=(e,t)=>(e=e.replace(er[Sn.BUILD],""),Nt("comp",e,t),e=mhe(e,t),Nt("caret",e),e=hhe(e,t),Nt("tildes",e),e=yhe(e,t),Nt("xrange",e),e=vhe(e,t),Nt("stars",e),e),on=e=>!e||e.toLowerCase()==="x"||e==="*",fhe=(e,t,n)=>on(e)&&!on(t)||on(t)&&n&&!on(n),hhe=(e,t)=>e.trim().split(/\s+/).map(n=>ghe(n,t)).join(" "),ghe=(e,t)=>{let n=t.loose?er[Sn.TILDELOOSE]:er[Sn.TILDE],s=t.includePrerelease?"-0":"";return e.replace(n,(r,i,o,a,c)=>{Nt("tilde",e,r,i,o,a,c);let u;return on(i)?u="":on(o)?u=`>=${i}.0.0${s} <${+i+1}.0.0-0`:on(a)?u=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:c?(Nt("replaceTilde pr",c),u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`):u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,Nt("tilde return",u),u})},mhe=(e,t)=>e.trim().split(/\s+/).map(n=>Ahe(n,t)).join(" "),Ahe=(e,t)=>{Nt("caret",e,t);let n=t.loose?er[Sn.CARETLOOSE]:er[Sn.CARET],s=t.includePrerelease?"-0":"";return e.replace(n,(r,i,o,a,c)=>{Nt("caret",e,r,i,o,a,c);let u;return on(i)?u="":on(o)?u=`>=${i}.0.0${s} <${+i+1}.0.0-0`:on(a)?i==="0"?u=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${s} <${+i+1}.0.0-0`:c?(Nt("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(Nt("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),Nt("caret return",u),u})},yhe=(e,t)=>(Nt("replaceXRanges",e,t),e.split(/\s+/).map(n=>Ehe(n,t)).join(" ")),Ehe=(e,t)=>{e=e.trim();let n=t.loose?er[Sn.XRANGELOOSE]:er[Sn.XRANGE];return e.replace(n,(s,r,i,o,a,c)=>{if(Nt("xRange",e,s,r,i,o,a,c),fhe(i,o,a))return e;let u=on(i),d=u||on(o),p=d||on(a),h=p;return r==="="&&h&&(r=""),c=t.includePrerelease?"-0":"",u?r===">"||r==="<"?s="<0.0.0-0":s="*":r&&h?(d&&(o=0),a=0,r===">"?(r=">=",d?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):r==="<="&&(r="<",d?i=+i+1:o=+o+1),r==="<"&&(c="-0"),s=`${r+i}.${o}.${a}${c}`):d?s=`>=${i}.0.0${c} <${+i+1}.0.0-0`:p&&(s=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Nt("xRange return",s),s})},vhe=(e,t)=>(Nt("replaceStars",e,t),e.trim().replace(er[Sn.STAR],"")),bhe=(e,t)=>(Nt("replaceGTE0",e,t),e.trim().replace(er[t.includePrerelease?Sn.GTE0PRE:Sn.GTE0],"")),whe=e=>(t,n,s,r,i,o,a,c,u,d,p,h)=>(on(s)?n="":on(r)?n=`>=${s}.0.0${e?"-0":""}`:on(i)?n=`>=${s}.${r}.0${e?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,on(u)?c="":on(d)?c=`<${+u+1}.0.0-0`:on(p)?c=`<${u}.${+d+1}.0-0`:h?c=`<=${u}.${d}.${p}-${h}`:e?c=`<${u}.${d}.${+p+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),Ihe=(e,t,n)=>{for(let s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let s=0;s<e.length;s++)if(Nt(e[s].semver),e[s].semver!==PB.ANY&&e[s].semver.prerelease.length>0){let r=e[s].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}});var hh=T((j_e,_H)=>{"use strict";var gh=Symbol("SemVer ANY"),UB=class e{static get ANY(){return gh}constructor(t,n){if(n=BH(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),FB("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===gh?this.value="":this.value=this.operator+this.semver.version,FB("comp",this)}parse(t){let n=this.options.loose?xH[$H.COMPARATORLOOSE]:xH[$H.COMPARATOR],s=t.match(n);if(!s)throw new TypeError(`Invalid comparator: ${t}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new TH(s[2],this.options.loose):this.semver=gh}toString(){return this.value}test(t){if(FB("Comparator.test",t,this.options.loose),this.semver===gh||t===gh)return!0;if(typeof t=="string")try{t=new TH(t,this.options)}catch{return!1}return OB(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new QH(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new QH(this.value,n).test(t.semver):(n=BH(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||OB(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||OB(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};_H.exports=UB;var BH=DE(),{safeRe:xH,t:$H}=ed(),OB=_B(),FB=ph(),TH=Cn(),QH=fs()});var mh=T((V_e,DH)=>{"use strict";var Che=fs(),She=(e,t,n)=>{try{t=new Che(t,n)}catch{return!1}return t.test(e)};DH.exports=She});var PH=T((G_e,NH)=>{"use strict";var khe=fs(),Rhe=(e,t)=>new khe(e,t).set.map(n=>n.map(s=>s.value).join(" ").trim().split(" "));NH.exports=Rhe});var FH=T((z_e,OH)=>{"use strict";var Bhe=Cn(),xhe=fs(),$he=(e,t,n)=>{let s=null,r=null,i=null;try{i=new xhe(t,n)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||r.compare(o)===-1)&&(s=o,r=new Bhe(s,n))}),s};OH.exports=$he});var MH=T((H_e,UH)=>{"use strict";var The=Cn(),Qhe=fs(),_he=(e,t,n)=>{let s=null,r=null,i=null;try{i=new Qhe(t,n)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||r.compare(o)===1)&&(s=o,r=new The(s,n))}),s};UH.exports=_he});var VH=T((q_e,jH)=>{"use strict";var MB=Cn(),Dhe=fs(),LH=fh(),Nhe=(e,t)=>{e=new Dhe(e,t);let n=new MB("0.0.0");if(e.test(n)||(n=new MB("0.0.0-0"),e.test(n)))return n;n=null;for(let s=0;s<e.set.length;++s){let r=e.set[s],i=null;r.forEach(o=>{let a=new MB(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||LH(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||LH(n,i))&&(n=i)}return n&&e.test(n)?n:null};jH.exports=Nhe});var zH=T((J_e,GH)=>{"use strict";var Phe=fs(),Ohe=(e,t)=>{try{return new Phe(e,t).range||"*"}catch{return null}};GH.exports=Ohe});var zE=T((W_e,WH)=>{"use strict";var Fhe=Cn(),JH=hh(),{ANY:Uhe}=JH,Mhe=fs(),Lhe=mh(),HH=fh(),qH=ME(),jhe=jE(),Vhe=LE(),Ghe=(e,t,n,s)=>{e=new Fhe(e,s),t=new Mhe(t,s);let r,i,o,a,c;switch(n){case">":r=HH,i=jhe,o=qH,a=">",c=">=";break;case"<":r=qH,i=Vhe,o=HH,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Lhe(e,t,s))return!1;for(let u=0;u<t.set.length;++u){let d=t.set[u],p=null,h=null;if(d.forEach(g=>{g.semver===Uhe&&(g=new JH(">=0.0.0")),p=p||g,h=h||g,r(g.semver,p.semver,s)?p=g:o(g.semver,h.semver,s)&&(h=g)}),p.operator===a||p.operator===c||(!h.operator||h.operator===a)&&i(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};WH.exports=Ghe});var ZH=T((Y_e,YH)=>{"use strict";var zhe=zE(),Hhe=(e,t,n)=>zhe(e,t,">",n);YH.exports=Hhe});var XH=T((Z_e,KH)=>{"use strict";var qhe=zE(),Jhe=(e,t,n)=>qhe(e,t,"<",n);KH.exports=Jhe});var nq=T((K_e,tq)=>{"use strict";var eq=fs(),Whe=(e,t,n)=>(e=new eq(e,n),t=new eq(t,n),e.intersects(t,n));tq.exports=Whe});var sq=T((X_e,rq)=>{"use strict";var Yhe=mh(),Zhe=ps();rq.exports=(e,t,n)=>{let s=[],r=null,i=null,o=e.sort((d,p)=>Zhe(d,p,n));for(let d of o)Yhe(d,t,n)?(i=d,r||(r=d)):(i&&s.push([r,i]),i=null,r=null);r&&s.push([r,null]);let a=[];for(let[d,p]of s)d===p?a.push(d):!p&&d===o[0]?a.push("*"):p?d===o[0]?a.push(`<=${p}`):a.push(`${d} - ${p}`):a.push(`>=${d}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var lq=T((eDe,uq)=>{"use strict";var iq=fs(),VB=hh(),{ANY:LB}=VB,jB=mh(),GB=ps(),Khe=(e,t,n={})=>{if(e===t)return!0;e=new iq(e,n),t=new iq(t,n);let s=!1;e:for(let r of e.set){for(let i of t.set){let o=ege(r,i,n);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},Xhe=[new VB(">=0.0.0-0")],oq=[new VB(">=0.0.0")],ege=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===LB){if(t.length===1&&t[0].semver===LB)return!0;n.includePrerelease?e=Xhe:e=oq}if(t.length===1&&t[0].semver===LB){if(n.includePrerelease)return!0;t=oq}let s=new Set,r,i;for(let g of e)g.operator===">"||g.operator===">="?r=aq(r,g,n):g.operator==="<"||g.operator==="<="?i=cq(i,g,n):s.add(g.semver);if(s.size>1)return null;let o;if(r&&i){if(o=GB(r.semver,i.semver,n),o>0)return null;if(o===0&&(r.operator!==">="||i.operator!=="<="))return null}for(let g of s){if(r&&!jB(g,String(r),n)||i&&!jB(g,String(i),n))return null;for(let m of t)if(!jB(g,String(m),n))return!1;return!0}let a,c,u,d,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,h=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let g of t){if(d=d||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator===">"||g.operator===">="){if(a=aq(r,g,n),a===g&&a!==r)return!1}else if(r.operator===">="&&!g.test(r.semver))return!1}if(i){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator==="<"||g.operator==="<="){if(c=cq(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!g.test(i.semver))return!1}if(!g.operator&&(i||r)&&o!==0)return!1}return!(r&&u&&!i&&o!==0||i&&d&&!r&&o!==0||h||p)},aq=(e,t,n)=>{if(!e)return t;let s=GB(e.semver,t.semver,n);return s>0?e:s<0||t.operator===">"&&e.operator===">="?t:e},cq=(e,t,n)=>{if(!e)return t;let s=GB(e.semver,t.semver,n);return s<0?e:s>0||t.operator==="<"&&e.operator==="<="?t:e};uq.exports=Khe});var HB=T((tDe,fq)=>{"use strict";var zB=ed(),dq=Xl(),tge=Cn(),pq=BB(),nge=aa(),rge=P2(),sge=F2(),ige=L2(),oge=G2(),age=H2(),cge=J2(),uge=Y2(),lge=K2(),dge=ps(),pge=nH(),fge=sH(),hge=UE(),gge=cH(),mge=lH(),Age=fh(),yge=ME(),Ege=TB(),vge=QB(),bge=LE(),wge=jE(),Ige=_B(),Cge=EH(),Sge=bH(),kge=hh(),Rge=fs(),Bge=mh(),xge=PH(),$ge=FH(),Tge=MH(),Qge=VH(),_ge=zH(),Dge=zE(),Nge=ZH(),Pge=XH(),Oge=nq(),Fge=sq(),Uge=lq();fq.exports={parse:nge,valid:rge,clean:sge,inc:ige,diff:oge,major:age,minor:cge,patch:uge,prerelease:lge,compare:dge,rcompare:pge,compareLoose:fge,compareBuild:hge,sort:gge,rsort:mge,gt:Age,lt:yge,eq:Ege,neq:vge,gte:bge,lte:wge,cmp:Ige,coerce:Cge,truncate:Sge,Comparator:kge,Range:Rge,satisfies:Bge,toComparators:xge,maxSatisfying:$ge,minSatisfying:Tge,minVersion:Qge,validRange:_ge,outside:Dge,gtr:Nge,ltr:Pge,intersects:Oge,simplifyRange:Fge,subset:Uge,SemVer:tge,re:zB.re,src:zB.src,tokens:zB.t,SEMVER_SPEC_VERSION:dq.SEMVER_SPEC_VERSION,RELEASE_TYPES:dq.RELEASE_TYPES,compareIdentifiers:pq.compareIdentifiers,rcompareIdentifiers:pq.rcompareIdentifiers}});var FRe={};Zr(FRe,{post:()=>s9});module.exports=l9(FRe);Dn();var r9=Y(require("path"));Dn();Dn();var Wk;(function(e){e.Pass="Pass",e.Fail="Fail",e.Error="Error",e.Skipped="Skipped",e.Unknown="Unknown"})(Wk||(Wk={}));var fV;(function(e){e.High="high",e.Medium="medium",e.Low="low"})(fV||(fV={}));var hV;(function(e){e.Skyramp="skyramp",e.External="external"})(hV||(hV={}));var Yk;(function(e){e.Update="UPDATE",e.Regenerate="REGENERATE",e.Delete="DELETE",e.Verify="VERIFY",e.Ignore="IGNORE"})(Yk||(Yk={}));var gV;(function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"})(gV||(gV={}));var we={};Zr(we,{BRAND:()=>Fce,DIRTY:()=>dc,EMPTY_PATH:()=>mce,INVALID:()=>Re,NEVER:()=>wue,OK:()=>Nn,ParseStatus:()=>bn,Schema:()=>Xe,ZodAny:()=>Lo,ZodArray:()=>Gi,ZodBigInt:()=>fc,ZodBoolean:()=>hc,ZodBranded:()=>mf,ZodCatch:()=>Sc,ZodDate:()=>gc,ZodDefault:()=>Cc,ZodDiscriminatedUnion:()=>ky,ZodEffects:()=>os,ZodEnum:()=>wc,ZodError:()=>fr,ZodFirstPartyTypeKind:()=>_e,ZodFunction:()=>By,ZodIntersection:()=>Ec,ZodIssueCode:()=>j,ZodLazy:()=>vc,ZodLiteral:()=>bc,ZodMap:()=>xl,ZodNaN:()=>Tl,ZodNativeEnum:()=>Ic,ZodNever:()=>xs,ZodNull:()=>Ac,ZodNullable:()=>si,ZodNumber:()=>pc,ZodObject:()=>hr,ZodOptional:()=>ss,ZodParsedType:()=>ie,ZodPipeline:()=>Af,ZodPromise:()=>jo,ZodReadonly:()=>kc,ZodRecord:()=>Ry,ZodSchema:()=>Xe,ZodSet:()=>$l,ZodString:()=>Mo,ZodSymbol:()=>Rl,ZodTransformer:()=>os,ZodTuple:()=>ri,ZodType:()=>Xe,ZodUndefined:()=>mc,ZodUnion:()=>yc,ZodUnknown:()=>Vi,ZodVoid:()=>Bl,addIssueToContext:()=>te,any:()=>qce,array:()=>Zce,bigint:()=>jce,boolean:()=>kV,coerce:()=>bue,custom:()=>IV,date:()=>Vce,datetimeRegex:()=>bV,defaultErrorMap:()=>Li,discriminatedUnion:()=>tue,effect:()=>fue,enum:()=>lue,function:()=>aue,getErrorMap:()=>Cl,getParsedType:()=>ni,instanceof:()=>Mce,intersection:()=>nue,isAborted:()=>Cy,isAsync:()=>Sl,isDirty:()=>Sy,isValid:()=>Uo,late:()=>Uce,lazy:()=>cue,literal:()=>uue,makeIssue:()=>gf,map:()=>iue,nan:()=>Lce,nativeEnum:()=>due,never:()=>Wce,null:()=>Hce,nullable:()=>gue,number:()=>SV,object:()=>Kce,objectUtil:()=>Zk,oboolean:()=>vue,onumber:()=>Eue,optional:()=>hue,ostring:()=>yue,pipeline:()=>Aue,preprocess:()=>mue,promise:()=>pue,quotelessJson:()=>fce,record:()=>sue,set:()=>oue,setErrorMap:()=>gce,strictObject:()=>Xce,string:()=>CV,symbol:()=>Gce,transformer:()=>fue,tuple:()=>rue,undefined:()=>zce,union:()=>eue,unknown:()=>Jce,util:()=>it,void:()=>Yce});var it;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let i={};for(let o of r)i[o]=o;return i},e.getValidEnumValues=r=>{let i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(let a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let i=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(let o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(it||(it={}));var Zk;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Zk||(Zk={}));var ie=it.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ni=e=>{switch(typeof e){case"undefined":return ie.undefined;case"string":return ie.string;case"number":return Number.isNaN(e)?ie.nan:ie.number;case"boolean":return ie.boolean;case"function":return ie.function;case"bigint":return ie.bigint;case"symbol":return ie.symbol;case"object":return Array.isArray(e)?ie.array:e===null?ie.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ie.promise:typeof Map<"u"&&e instanceof Map?ie.map:typeof Set<"u"&&e instanceof Set?ie.set:typeof Date<"u"&&e instanceof Date?ie.date:ie.object;default:return ie.unknown}};var j=it.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),fce=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),fr=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return r(this),s}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,it.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},s=[];for(let r of this.issues)if(r.path.length>0){let i=r.path[0];n[i]=n[i]||[],n[i].push(t(r))}else s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}};fr.create=e=>new fr(e);var hce=(e,t)=>{let n;switch(e.code){case j.invalid_type:e.received===ie.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case j.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,it.jsonStringifyReplacer)}`;break;case j.unrecognized_keys:n=`Unrecognized key(s) in object: ${it.joinValues(e.keys,", ")}`;break;case j.invalid_union:n="Invalid input";break;case j.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${it.joinValues(e.options)}`;break;case j.invalid_enum_value:n=`Invalid enum value. Expected ${it.joinValues(e.options)}, received '${e.received}'`;break;case j.invalid_arguments:n="Invalid function arguments";break;case j.invalid_return_type:n="Invalid function return type";break;case j.invalid_date:n="Invalid date";break;case j.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:it.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case j.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case j.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case j.custom:n="Invalid input";break;case j.invalid_intersection_types:n="Intersection results could not be merged";break;case j.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case j.not_finite:n="Number must be finite";break;default:n=t.defaultError,it.assertNever(e)}return{message:n}},Li=hce;var mV=Li;function gce(e){mV=e}function Cl(){return mV}var gf=e=>{let{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="",c=s.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},mce=[];function te(e,t){let n=Cl(),s=gf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Li?void 0:Li].filter(r=>!!r)});e.common.issues.push(s)}var bn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let s=[];for(let r of n){if(r.status==="aborted")return Re;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){let s=[];for(let r of n){let i=await r.key,o=await r.value;s.push({key:i,value:o})}return e.mergeObjectSync(t,s)}static mergeObjectSync(t,n){let s={};for(let r of n){let{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return Re;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}},Re=Object.freeze({status:"aborted"}),dc=e=>({status:"dirty",value:e}),Nn=e=>({status:"valid",value:e}),Cy=e=>e.status==="aborted",Sy=e=>e.status==="dirty",Uo=e=>e.status==="valid",Sl=e=>typeof Promise<"u"&&e instanceof Promise;var fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(fe||(fe={}));var is=class{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},AV=(e,t)=>{if(Uo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new fr(e.common.issues);return this._error=n,this._error}}};function ze(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??s??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:r}}var Xe=class{get description(){return this._def.description}_getType(t){return ni(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ni(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new bn,ctx:{common:t.parent.common,data:t.data,parsedType:ni(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Sl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){let s={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ni(t)},r=this._parseSync({data:t,path:s.path,parent:s});return AV(s,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ni(t)};if(!this["~standard"].async)try{let s=this._parseSync({data:t,path:[],parent:n});return Uo(s)?{value:s.value}:{issues:n.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>Uo(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){let s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){let s={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ni(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(Sl(r)?r:Promise.resolve(r));return AV(s,i)}refine(t,n){let s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{let o=t(r),a=()=>i.addIssue({code:j.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new os({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ss.create(this,this._def)}nullable(){return si.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Gi.create(this)}promise(){return jo.create(this,this._def)}or(t){return yc.create([this,t],this._def)}and(t){return Ec.create(this,t,this._def)}transform(t){return new os({...ze(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Cc({...ze(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new mf({typeName:_e.ZodBranded,type:this,...ze(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Sc({...ze(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Af.create(this,t)}readonly(){return kc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Ace=/^c[^\s-]{8,}$/i,yce=/^[0-9a-z]+$/,Ece=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vce=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bce=/^[a-z0-9_-]{21}$/i,wce=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Ice=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Cce=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Sce="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Kk,kce=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Rce=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Bce=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,xce=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$ce=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Tce=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,EV="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Qce=new RegExp(`^${EV}$`);function vV(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function _ce(e){return new RegExp(`^${vV(e)}$`)}function bV(e){let t=`${EV}T${vV(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Dce(e,t){return!!((t==="v4"||!t)&&kce.test(e)||(t==="v6"||!t)&&Bce.test(e))}function Nce(e,t){if(!wce.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function Pce(e,t){return!!((t==="v4"||!t)&&Rce.test(e)||(t==="v6"||!t)&&xce.test(e))}var Mo=class e extends Xe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ie.string){let i=this._getOrReturnCtx(t);return te(i,{code:j.invalid_type,expected:ie.string,received:i.parsedType}),Re}let s=new bn,r;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:j.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:j.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){let o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?te(r,{code:j.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&te(r,{code:j.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")Cce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"email",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")Kk||(Kk=new RegExp(Sce,"u")),Kk.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"emoji",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")vce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"uuid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")bce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"nanoid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")Ace.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")yce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid2",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")Ece.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ulid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),te(r,{validation:"url",code:j.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"regex",code:j.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?bV(i).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?Qce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?_ce(i).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?Ice.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"duration",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?Dce(t.data,i.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ip",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?Nce(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"jwt",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?Pce(t.data,i.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cidr",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?$ce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?Tce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64url",code:j.invalid_string,message:i.message}),s.dirty()):it.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(r=>t.test(r),{validation:n,code:j.invalid_string,...fe.errToObj(s)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...fe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...fe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...fe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...fe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...fe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...fe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...fe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...fe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...fe.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...fe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...fe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...fe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...fe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...fe.errToObj(n)})}nonempty(t){return this.min(1,fe.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Mo.create=e=>new Mo({checks:[],typeName:_e.ZodString,coerce:e?.coerce??!1,...ze(e)});function Oce(e,t){let n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return i%o/10**r}var pc=class e extends Xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ie.number){let i=this._getOrReturnCtx(t);return te(i,{code:j.invalid_type,expected:ie.number,received:i.parsedType}),Re}let s,r=new bn;for(let i of this._def.checks)i.kind==="int"?it.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),te(s,{code:j.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?Oce(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),te(s,{code:j.not_finite,message:i.message}),r.dirty()):it.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:fe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:fe.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&it.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}};pc.create=e=>new pc({checks:[],typeName:_e.ZodNumber,coerce:e?.coerce||!1,...ze(e)});var fc=class e extends Xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ie.bigint)return this._getInvalidInput(t);let s,r=new bn;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):it.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return te(n,{code:j.invalid_type,expected:ie.bigint,received:n.parsedType}),Re}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:fe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};fc.create=e=>new fc({checks:[],typeName:_e.ZodBigInt,coerce:e?.coerce??!1,...ze(e)});var hc=class extends Xe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ie.boolean){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.boolean,received:s.parsedType}),Re}return Nn(t.data)}};hc.create=e=>new hc({typeName:_e.ZodBoolean,coerce:e?.coerce||!1,...ze(e)});var gc=class e extends Xe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ie.date){let i=this._getOrReturnCtx(t);return te(i,{code:j.invalid_type,expected:ie.date,received:i.parsedType}),Re}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return te(i,{code:j.invalid_date}),Re}let s=new bn,r;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:j.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:j.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):it.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:fe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:fe.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};gc.create=e=>new gc({checks:[],coerce:e?.coerce||!1,typeName:_e.ZodDate,...ze(e)});var Rl=class extends Xe{_parse(t){if(this._getType(t)!==ie.symbol){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.symbol,received:s.parsedType}),Re}return Nn(t.data)}};Rl.create=e=>new Rl({typeName:_e.ZodSymbol,...ze(e)});var mc=class extends Xe{_parse(t){if(this._getType(t)!==ie.undefined){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.undefined,received:s.parsedType}),Re}return Nn(t.data)}};mc.create=e=>new mc({typeName:_e.ZodUndefined,...ze(e)});var Ac=class extends Xe{_parse(t){if(this._getType(t)!==ie.null){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.null,received:s.parsedType}),Re}return Nn(t.data)}};Ac.create=e=>new Ac({typeName:_e.ZodNull,...ze(e)});var Lo=class extends Xe{constructor(){super(...arguments),this._any=!0}_parse(t){return Nn(t.data)}};Lo.create=e=>new Lo({typeName:_e.ZodAny,...ze(e)});var Vi=class extends Xe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Nn(t.data)}};Vi.create=e=>new Vi({typeName:_e.ZodUnknown,...ze(e)});var xs=class extends Xe{_parse(t){let n=this._getOrReturnCtx(t);return te(n,{code:j.invalid_type,expected:ie.never,received:n.parsedType}),Re}};xs.create=e=>new xs({typeName:_e.ZodNever,...ze(e)});var Bl=class extends Xe{_parse(t){if(this._getType(t)!==ie.undefined){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.void,received:s.parsedType}),Re}return Nn(t.data)}};Bl.create=e=>new Bl({typeName:_e.ZodVoid,...ze(e)});var Gi=class e extends Xe{_parse(t){let{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==ie.array)return te(n,{code:j.invalid_type,expected:ie.array,received:n.parsedType}),Re;if(r.exactLength!==null){let o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(te(n,{code:o?j.too_big:j.too_small,minimum:a?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(te(n,{code:j.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(te(n,{code:j.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new is(n,o,n.path,a)))).then(o=>bn.mergeArray(s,o));let i=[...n.data].map((o,a)=>r.type._parseSync(new is(n,o,n.path,a)));return bn.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:fe.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:fe.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:fe.toString(n)}})}nonempty(t){return this.min(1,t)}};Gi.create=(e,t)=>new Gi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...ze(t)});function kl(e){if(e instanceof hr){let t={};for(let n in e.shape){let s=e.shape[n];t[n]=ss.create(kl(s))}return new hr({...e._def,shape:()=>t})}else return e instanceof Gi?new Gi({...e._def,type:kl(e.element)}):e instanceof ss?ss.create(kl(e.unwrap())):e instanceof si?si.create(kl(e.unwrap())):e instanceof ri?ri.create(e.items.map(t=>kl(t))):e}var hr=class e extends Xe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=it.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ie.object){let u=this._getOrReturnCtx(t);return te(u,{code:j.invalid_type,expected:ie.object,received:u.parsedType}),Re}let{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof xs&&this._def.unknownKeys==="strip"))for(let u in r.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let d=i[u],p=r.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new is(r,p,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof xs){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:r.data[d]}});else if(u==="strict")a.length>0&&(te(r,{code:j.unrecognized_keys,keys:a}),s.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of a){let p=r.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new is(r,p,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of c){let p=await d.key,h=await d.value;u.push({key:p,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>bn.mergeObjectSync(s,u)):bn.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return fe.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{let r=this._def.errorMap?.(n,s).message??s.defaultError;return n.code==="unrecognized_keys"?{message:fe.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let s of it.objectKeys(t))t[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let s of it.objectKeys(this.shape))t[s]||(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}deepPartial(){return kl(this)}partial(t){let n={};for(let s of it.objectKeys(this.shape)){let r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let s of it.objectKeys(this.shape))if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof ss;)i=i._def.innerType;n[s]=i}return new e({...this._def,shape:()=>n})}keyof(){return wV(it.objectKeys(this.shape))}};hr.create=(e,t)=>new hr({shape:()=>e,unknownKeys:"strip",catchall:xs.create(),typeName:_e.ZodObject,...ze(t)});hr.strictCreate=(e,t)=>new hr({shape:()=>e,unknownKeys:"strict",catchall:xs.create(),typeName:_e.ZodObject,...ze(t)});hr.lazycreate=(e,t)=>new hr({shape:e,unknownKeys:"strip",catchall:xs.create(),typeName:_e.ZodObject,...ze(t)});var yc=class extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new fr(a.ctx.common.issues));return te(n,{code:j.invalid_union,unionErrors:o}),Re}if(n.common.async)return Promise.all(s.map(async i=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i,o=[];for(let c of s){let u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new fr(c));return te(n,{code:j.invalid_union,unionErrors:a}),Re}}get options(){return this._def.options}};yc.create=(e,t)=>new yc({options:e,typeName:_e.ZodUnion,...ze(t)});var ji=e=>e instanceof vc?ji(e.schema):e instanceof os?ji(e.innerType()):e instanceof bc?[e.value]:e instanceof wc?e.options:e instanceof Ic?it.objectValues(e.enum):e instanceof Cc?ji(e._def.innerType):e instanceof mc?[void 0]:e instanceof Ac?[null]:e instanceof ss?[void 0,...ji(e.unwrap())]:e instanceof si?[null,...ji(e.unwrap())]:e instanceof mf||e instanceof kc?ji(e.unwrap()):e instanceof Sc?ji(e._def.innerType):[],ky=class e extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.object)return te(n,{code:j.invalid_type,expected:ie.object,received:n.parsedType}),Re;let s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(te(n,{code:j.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){let r=new Map;for(let i of n){let o=ji(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new e({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...ze(s)})}};function Xk(e,t){let n=ni(e),s=ni(t);if(e===t)return{valid:!0,data:e};if(n===ie.object&&s===ie.object){let r=it.objectKeys(t),i=it.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(let a of i){let c=Xk(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===ie.array&&s===ie.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let i=0;i<e.length;i++){let o=e[i],a=t[i],c=Xk(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===ie.date&&s===ie.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Ec=class extends Xe{_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(Cy(i)||Cy(o))return Re;let a=Xk(i.value,o.value);return a.valid?((Sy(i)||Sy(o))&&n.dirty(),{status:n.value,value:a.data}):(te(s,{code:j.invalid_intersection_types}),Re)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};Ec.create=(e,t,n)=>new Ec({left:e,right:t,typeName:_e.ZodIntersection,...ze(n)});var ri=class e extends Xe{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.array)return te(s,{code:j.invalid_type,expected:ie.array,received:s.parsedType}),Re;if(s.data.length<this._def.items.length)return te(s,{code:j.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&s.data.length>this._def.items.length&&(te(s,{code:j.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...s.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new is(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>bn.mergeArray(n,o)):bn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ri.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ri({items:e,typeName:_e.ZodTuple,rest:null,...ze(t)})};var Ry=class e extends Xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.object)return te(s,{code:j.invalid_type,expected:ie.object,received:s.parsedType}),Re;let r=[],i=this._def.keyType,o=this._def.valueType;for(let a in s.data)r.push({key:i._parse(new is(s,a,s.path,a)),value:o._parse(new is(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?bn.mergeObjectAsync(n,r):bn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof Xe?new e({keyType:t,valueType:n,typeName:_e.ZodRecord,...ze(s)}):new e({keyType:Mo.create(),valueType:t,typeName:_e.ZodRecord,...ze(n)})}},xl=class extends Xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.map)return te(s,{code:j.invalid_type,expected:ie.map,received:s.parsedType}),Re;let r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],u)=>({key:r._parse(new is(s,a,s.path,[u,"key"])),value:i._parse(new is(s,c,s.path,[u,"value"]))}));if(s.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return Re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return Re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}};xl.create=(e,t,n)=>new xl({valueType:t,keyType:e,typeName:_e.ZodMap,...ze(n)});var $l=class e extends Xe{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.set)return te(s,{code:j.invalid_type,expected:ie.set,received:s.parsedType}),Re;let r=this._def;r.minSize!==null&&s.data.size<r.minSize.value&&(te(s,{code:j.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&s.data.size>r.maxSize.value&&(te(s,{code:j.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let i=this._def.valueType;function o(c){let u=new Set;for(let d of c){if(d.status==="aborted")return Re;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}let a=[...s.data.values()].map((c,u)=>i._parse(new is(s,c,s.path,u)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:fe.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:fe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};$l.create=(e,t)=>new $l({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...ze(t)});var By=class e extends Xe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.function)return te(n,{code:j.invalid_type,expected:ie.function,received:n.parsedType}),Re;function s(a,c){return gf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Cl(),Li].filter(u=>!!u),issueData:{code:j.invalid_arguments,argumentsError:c}})}function r(a,c){return gf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Cl(),Li].filter(u=>!!u),issueData:{code:j.invalid_return_type,returnTypeError:c}})}let i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof jo){let a=this;return Nn(async function(...c){let u=new fr([]),d=await a._def.args.parseAsync(c,i).catch(g=>{throw u.addIssue(s(c,g)),u}),p=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(p,i).catch(g=>{throw u.addIssue(r(p,g)),u})})}else{let a=this;return Nn(function(...c){let u=a._def.args.safeParse(c,i);if(!u.success)throw new fr([s(c,u.error)]);let d=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(d,i);if(!p.success)throw new fr([r(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ri.create(t).rest(Vi.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new e({args:t||ri.create([]).rest(Vi.create()),returns:n||Vi.create(),typeName:_e.ZodFunction,...ze(s)})}},vc=class extends Xe{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};vc.create=(e,t)=>new vc({getter:e,typeName:_e.ZodLazy,...ze(t)});var bc=class extends Xe{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return te(n,{received:n.data,code:j.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:t.data}}get value(){return this._def.value}};bc.create=(e,t)=>new bc({value:e,typeName:_e.ZodLiteral,...ze(t)});function wV(e,t){return new wc({values:e,typeName:_e.ZodEnum,...ze(t)})}var wc=class e extends Xe{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),s=this._def.values;return te(n,{expected:it.joinValues(s),received:n.parsedType,code:j.invalid_type}),Re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),s=this._def.values;return te(n,{received:n.data,code:j.invalid_enum_value,options:s}),Re}return Nn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}};wc.create=wV;var Ic=class extends Xe{_parse(t){let n=it.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==ie.string&&s.parsedType!==ie.number){let r=it.objectValues(n);return te(s,{expected:it.joinValues(r),received:s.parsedType,code:j.invalid_type}),Re}if(this._cache||(this._cache=new Set(it.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=it.objectValues(n);return te(s,{received:s.data,code:j.invalid_enum_value,options:r}),Re}return Nn(t.data)}get enum(){return this._def.values}};Ic.create=(e,t)=>new Ic({values:e,typeName:_e.ZodNativeEnum,...ze(t)});var jo=class extends Xe{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.promise&&n.common.async===!1)return te(n,{code:j.invalid_type,expected:ie.promise,received:n.parsedType}),Re;let s=n.parsedType===ie.promise?n.data:Promise.resolve(n.data);return Nn(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};jo.create=(e,t)=>new jo({type:e,typeName:_e.ZodPromise,...ze(t)});var os=class extends Xe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{te(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){let o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return Re;let c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?Re:c.status==="dirty"?dc(c.value):n.value==="dirty"?dc(c.value):c});{if(n.value==="aborted")return Re;let a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?Re:a.status==="dirty"?dc(a.value):n.value==="dirty"?dc(a.value):a}}if(r.type==="refinement"){let o=a=>{let c=r.refinement(a,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){let a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Re:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?Re:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){let o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Uo(o))return Re;let a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Uo(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):Re);it.assertNever(r)}};os.create=(e,t,n)=>new os({schema:e,typeName:_e.ZodEffects,effect:t,...ze(n)});os.createWithPreprocess=(e,t,n)=>new os({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...ze(n)});var ss=class extends Xe{_parse(t){return this._getType(t)===ie.undefined?Nn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ss.create=(e,t)=>new ss({innerType:e,typeName:_e.ZodOptional,...ze(t)});var si=class extends Xe{_parse(t){return this._getType(t)===ie.null?Nn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};si.create=(e,t)=>new si({innerType:e,typeName:_e.ZodNullable,...ze(t)});var Cc=class extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return n.parsedType===ie.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Cc.create=(e,t)=>new Cc({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ze(t)});var Sc=class extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Sl(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new fr(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new fr(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};Sc.create=(e,t)=>new Sc({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ze(t)});var Tl=class extends Xe{_parse(t){if(this._getType(t)!==ie.nan){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.nan,received:s.parsedType}),Re}return{status:"valid",value:t.data}}};Tl.create=e=>new Tl({typeName:_e.ZodNaN,...ze(e)});var Fce=Symbol("zod_brand"),mf=class extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}},Af=class e extends Xe{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?Re:i.status==="dirty"?(n.dirty(),dc(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{let r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?Re:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new e({in:t,out:n,typeName:_e.ZodPipeline})}},kc=class extends Xe{_parse(t){let n=this._def.innerType._parse(t),s=r=>(Uo(r)&&(r.value=Object.freeze(r.value)),r);return Sl(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}};kc.create=(e,t)=>new kc({innerType:e,typeName:_e.ZodReadonly,...ze(t)});function yV(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function IV(e,t={},n){return e?Lo.create().superRefine((s,r)=>{let i=e(s);if(i instanceof Promise)return i.then(o=>{if(!o){let a=yV(t,s),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}});if(!i){let o=yV(t,s),a=o.fatal??n??!0;r.addIssue({code:"custom",...o,fatal:a})}}):Lo.create()}var Uce={object:hr.lazycreate},_e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));var Mce=(e,t={message:`Input not instance of ${e.name}`})=>IV(n=>n instanceof e,t),CV=Mo.create,SV=pc.create,Lce=Tl.create,jce=fc.create,kV=hc.create,Vce=gc.create,Gce=Rl.create,zce=mc.create,Hce=Ac.create,qce=Lo.create,Jce=Vi.create,Wce=xs.create,Yce=Bl.create,Zce=Gi.create,Kce=hr.create,Xce=hr.strictCreate,eue=yc.create,tue=ky.create,nue=Ec.create,rue=ri.create,sue=Ry.create,iue=xl.create,oue=$l.create,aue=By.create,cue=vc.create,uue=bc.create,lue=wc.create,due=Ic.create,pue=jo.create,fue=os.create,hue=ss.create,gue=si.create,mue=os.createWithPreprocess,Aue=Af.create,yue=()=>CV().optional(),Eue=()=>SV().optional(),vue=()=>kV().optional(),bue={string:(e=>Mo.create({...e,coerce:!0})),number:(e=>pc.create({...e,coerce:!0})),boolean:(e=>hc.create({...e,coerce:!0})),bigint:(e=>fc.create({...e,coerce:!0})),date:(e=>gc.create({...e,coerce:!0}))};var wue=Re;var RV=["playwright","pytest","robot","junit","vitest","jest","mocha","go","rspec","jasmine"];var BV="skyramp_session_storage.json";var eR;(function(e){e.PYTHON="python",e.TYPESCRIPT="typescript",e.JAVASCRIPT="javascript",e.JAVA="java"})(eR||(eR={}));var ii;(function(e){e.SMOKE="smoke",e.FUZZ="fuzz",e.CONTRACT="contract",e.LOAD="load",e.INTEGRATION="integration",e.E2E="e2e",e.UI="ui",e.UNIT="unit",e.UNKNOWN="unknown"})(ii||(ii={}));var Z$e=[ii.CONTRACT,ii.INTEGRATION,ii.E2E,ii.UI];var xV;(function(e){e.Rest="rest",e.Grpc="grpc",e.Kafka="kafka"})(xV||(xV={}));var xy;(function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e.OPTIONS="OPTIONS"})(xy||(xy={}));var yf;(function(e){e.LOCAL="local",e.DOCKER="docker",e.KUBERNETES="k8s"})(yf||(yf={}));var Iue=we.nativeEnum(yf),Cue=we.preprocess(e=>e==="kubernetes"?yf.KUBERNETES:e,Iue);var Sue=we.object({language:we.nativeEnum(eR).describe("Programming language for the generated test (default: python). Must be one of: python, typescript, javascript, java"),framework:we.string().describe(`Testing framework to use. Supported: ${RV.join(", ")} (e.g. pytest for python, playwright/vitest/jest for js/ts, junit for java).`)}),$V=we.object({...Sue.shape,deployDashboard:we.boolean().default(!1).describe("Whether to deploy the Skyramp dashboard for test monitoring"),runtime:Cue.default(yf.LOCAL).describe("Runtime environment (local, docker, or k8s; accepts kubernetes as an alias)"),dockerNetwork:we.string().default("").describe("Docker network name to use for containerized testing"),dockerWorkerPort:we.number().int().min(0).max(65535).default(0).describe("Port number for the Docker worker service"),k8sNamespace:we.string().default("").describe("Kubernetes namespace for deployment"),k8sConfig:we.string().default("").describe("Path to Kubernetes configuration file"),k8sContext:we.string().default("").describe("Kubernetes context to use"),authHeader:we.string().default("").describe("Name of the HTTP header that carries the auth credential. Common values: 'Authorization' (Bearer/Basic/Token auth), 'X-Api-Key', 'X-Auth-Token', 'Cookie'. Other accepted values: 'X-Access-Token', 'X-OAuth-Token', 'X-Client-ID', 'X-Client-Secret', 'X-Client-Token', 'X-GitHub-Token', 'X-Firebase-AppCheck', 'Proxy-Authorization', 'Fastly-Key', 'Heroku-Bearer'. Pass empty string to document an unauthenticated endpoint in the generated test's assertions. This is the header KEY name (e.g., 'X-Api-Key'), NOT the token value."),authScheme:we.string().default("").describe("Only for Authorization headers. The literal prefix before the token (e.g., 'Bearer' produces 'Authorization: Bearer <token>'). Common values: 'Bearer', 'Basic', 'Token'. If the API sends raw tokens with no prefix (e.g., 'Authorization: eyJ...'), leave empty or omit. Ignored when authHeader is not 'Authorization'."),insecure:we.boolean().default(!1).describe("Whether to allow insecure SSL connections for HTTPS endpoints"),output:we.string().optional().refine(e=>!e||e===""?!0:[".py",".ts",".js",".java"].some(n=>e.endsWith(n)),{message:"Output file must have one of these extensions: .py, .ts, .js, .java"}).describe("Name of the output test file. For Playwright, name the file the way the repository names its tests: read the test files already in outputDir and match their spelling. Use *.test.ts where they use it, *.spec.ts otherwise (e.g. contract_math_add.spec.ts, fuzz_orders.test.ts). For other frameworks (pytest, junit), standard extensions are fine (.py, .java). Optional \u2014 when omitted, Skyramp generates a default name."),outputDir:we.string().describe("MUST be absolute path to the directory where test files will be generated. If not provided, the CURRENT WORKING DIRECTORY will be used WITHOUT ANY SUBDIRECTORIES"),force:we.boolean().default(!0).describe("Whether to overwrite existing files in the output directory"),mockPort:we.number().int().min(0).max(65535).default(0).describe("Port number for the mock server"),optionalFields:we.boolean().default(!1).describe("Whether to include optional fields in the generated test/mock"),prompt:we.string().describe("The prompt user provided to generate the test")}),K$e=we.object({playwrightInput:we.string().describe("MUST be absolute path to the playwright input file like /path/to/playwright-ui-test.zip and MUST be a zip file captured using start_trace_collection tool"),playwrightStoragePath:we.string().optional().describe("Path to LOAD existing playwright session storage for trace collection with playwright enabled. THE PATH MUST BE AN ABSOLUTE PATH LIKE /Users/<path>/<filename>.json"),playwrightSaveStoragePath:we.string().optional().describe(`Path to SAVE Playwright session storage after trace collection. Omit this argument to use the default \u2014 \`${BV}\` resolved against the active outputDir, which produces an absolute path like '/abs/outputDir/${BV}'. SAVES authentication state (cookies, localStorage, sessionStorage) when the browser closes. To LOAD existing auth state, use playwrightStoragePath instead. Can be a bare filename (joined with outputDir), a relative path, or an absolute path.`),playwrightViewportSize:we.union([we.enum(["","hd","full-hd","2k"]),we.string().regex(/^\d+,\d+$/,"Custom viewport must be 'WIDTH,HEIGHT' format (e.g., '1920,1080')")]).default("").describe("Viewport size for playwright browser. THE VALUE MUST BE IN THE FORMAT ['', 'hd', 'full-hd', '2k', 'x,y' e.g. '1920,1080' for 1920x1080 resolution]. DEFAULT VALUE IS ''. If set to '', the browser will use its default viewport size."),browser:we.enum(["chromium","firefox","webkit"]).default("chromium").describe("Browser to use for Playwright trace collection. Supported browsers: 'chromium' (default), 'firefox', 'webkit'. Choose based on your testing requirements and target browser compatibility."),device:we.string().default("").describe("Device to emulate for Playwright trace collection. Supported devices include: 'iPhone 13', 'iPhone 13 Pro', 'Pixel 5', 'Galaxy S9+', 'iPad Pro', etc. Leave empty for no device emulation (desktop). Use specific device names for mobile/tablet testing.")}),X$e=we.object({trace:we.string().describe("Absolute path to the trace file in JSON format (e.g., /path/to/trace.json). Must use .json extension only. Do not use .jsonl files."),include:we.array(we.string()).default([]).describe("List of endpoints or patterns to include in test generation."),exclude:we.array(we.string()).default([]).describe("List of endpoints or patterns to exclude from test generation."),...$V.shape}),eTe={endpointURL:we.string().describe("The full endpoint URL to test including base URL and path (e.g., https://demoshop.skyramp.dev/api/v1/products). MUST include both the base URL and the endpoint path \u2014 never just the base URL alone."),method:we.union([we.nativeEnum(xy),we.literal("")]).default("").describe('HTTP method to use. DEFAULT: Use empty string ("") to test ALL available methods from OpenAPI schema (recommended). Only specify a specific method (GET, POST, PUT, DELETE, etc.) if user explicitly requests testing a single method only.'),apiSchema:we.string().default("").describe("MUST be absolute path(/path/to/openapi.json) to the OpenAPI/Swagger schema file or a URL to the OpenAPI/Swagger schema file(e.g. https://demoshop.skyramp.dev/openapi.json). DO NOT TRY TO ASSUME THE OPENAPI SCHEMA IF NOT PROVIDED. NOTE TO AI ASSISTANTS: You do not need to read the contents of this file - simply pass the file path as the backend will read and process it."),pathParams:we.string().default("").describe("Comma-separated path parameter values in the form 'key=value,key2=value2' (e.g., 'id=1,name=John'). DO NOT populate this field unless the user has explicitly provided path parameter values. For contract tests, parent path parameters are automatically handled via the parent provisioning mechanism (parentRequestData) \u2014 do NOT invent or guess values for those here. Only supply this field if the user explicitly states specific path parameter values to use."),queryParams:we.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for URL query parameters. Workspace-configured api.defaultQueryParams (if set) are merged in automatically, with any api.queryParamOverrides entry whose pathPattern matches this endpoint layered on top \u2014 no need to repeat them here. An explicit value for the same key here overrides both."),formParams:we.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for form data parameters"),requestData:we.string().default("").refine(e=>{if(!e||e===""||e.startsWith("@"))return!0;try{return JSON.parse(e),!0}catch{}let t=e.trim();return!!(t.startsWith("---")||/^\w[\w\s]*:/.test(t)||t.startsWith("-"))},{message:"requestData must be valid JSON, YAML, or an absolute file path prefixed with '@'. Received what appears to be plain text. Provide the actual request body as a JSON object."}).describe("Sample request body data, provided either as an inline JSON/YAML string or as an absolute file path prefixed with '@' (e.g., @/absolute/path/to/file). MUST be valid JSON or YAML \u2014 do NOT pass natural language descriptions."),responseStatusCode:we.string().default("").refine(e=>!e||/^[1-5]\d{2}$/.test(e),{message:"Must be a valid HTTP status code in 100-599 (e.g., '200', '404') or empty string"}).describe("Expected HTTP response status code (e.g., '200', '201', '404'). DO NOT ASSUME STATUS CODE IF NOT PROVIDED"),...$V.shape},tTe=we.object({codeReuse:we.boolean().default(!1).describe("Reuse existing code in the generated test \u2014 consolidates helper functions shared with sibling Skyramp-generated tests into a SkyrampUtils file; for TS/JS Playwright tests with POM reuse enabled it instead refactors the test to use the repo's existing Page Object Model"),modularizeCode:we.boolean().default(!1).describe("Whether to modularize the code")}),nTe=[ii.INTEGRATION,ii.CONTRACT,ii.UI];var $y;(function(e){e.Bug="bug",e.Lint="lint",e.Type="type",e.Config="config"})($y||($y={}));var Ty;(function(e){e.NotMapped="not-mapped",e.DemotedByVerify="demoted-by-verify"})(Ty||(Ty={}));var Qy;(function(e){e.Passed="passed",e.Failed="failed",e.SkippedNoPom="skipped-no-pom"})(Qy||(Qy={}));var tR;(function(e){e.Passed="passed",e.Failed="failed",e.NoUtilsFile="no-utils-file"})(tR||(tR={}));Dn();var _y=e=>`${e} POM call${e===1?"":"s"}`,TV=(e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,Dy={listSeparator:", ",testRecommendationsImplementedHeader:(e,t)=>`\u{1F4A1} Test Recommendations Implemented (${e} test${e===1?"":"s"}${t>e?`, ${t} cases`:""})`,testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:e=>`${_y(e)} reused and verified`,reusedThenVerified:(e,t)=>`${_y(e)} reused, ${t} of them verified`,reused:e=>`${_y(e)} reused`,verified:e=>`${_y(e)} verified`,unresolved:e=>`${e} not resolvable to POM source (informational, not declines)`,candidates:e=>`${e} candidate POM file${e===1?"":"s"} detected`,verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:e=>`kept inline: ${e}`,gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:e=>`\u2705 Test Maintenance (${e})`,maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:e=>`\u{1F9EA} Test Results (${e})`,columnVideo:"Video",videoDownloadLink:e=>`[\u{1F4F9} download](${e})`,videosArtifactFallback:e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F Issues Found (${e})`,configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:e=>e?"passed against the running app":"passed",notRun:e=>e?"not run against a live app this run":"not run this run",failedBug:e=>e?"failed against the running app":"failed",failedTest:e=>`failed \u2014 the test is at fault, not the app (${e})`,executedOf:(e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,noneExecuted:e=>e?"; none were executed against a live app this run.":"; none were executed this run.",staleResult:"From a run before this file's last change, not of the delivered test:"},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",missingSecret:e=>`The app could not be started this run: it needs ${e}, which this run had no value for. Nothing was tested against a live app.`,testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",findingsNotVerified:e=>`No test result confirms or refutes the suspected defects at ${e}.`,failedAlone:e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,missingCaseResults:(e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},recipeDrift:"The recorded way to start the app was out of date and had to be corrected before it would come up.",recipeNotSaved:"The repository had no saved way to start the app, so Testbot worked it out from the repository.",mockedDependency:e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,finalizeNotReady:e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,guardedEntryCi:(e,t)=>`${e} is Testbot's guarded entry for the Test Environment: CI runs it with \`node --test ${e}\` from a package that declares @skyramp/testbot-core ${t}. It makes no request to Testbot, so its CI job needs no \`id-token: write\` permission and no TESTBOT_POLICY_ORIGIN.`,ciUnconfirmed:e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,ciUnconfirmedAbsent:e=>`Testbot could not confirm that the repo's CI leaves out ${e}, which need services it does not start: check that CI does not run them.`,ciNotIntegrated:e=>`Not yet CI-integrated: ${e} need services the repo's CI does not start, so Testbot put them where CI does not run them. The CI notes say what to change to run them in CI.`,ciUnprovisioned:e=>`The repo's CI runs ${e} without starting what they need, so CI will fail on them until it starts those services.`,ciWithheld:e=>`Not in the tests PR: the repo's CI would run ${e} without starting what they need, which would fail CI. The CI notes say what to change to run them.`,ciResultsUnread:e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,browserSuiteReadOnly:(e,t)=>`${e} has a browser suite, but this run could not write there, so its ui tests are in ${t}.`,sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,lintNotRun:e=>`The repo's linter did not check the test files, so they were delivered unlinted: ${e}.`,analysisUnverified:e=>`Part of the change analysis could not be verified (${e} unresolved check${e===1?"":"s"}); the tests were planned treating those claims as unconfirmed.`,unitTestsNotRun:e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,componentsNotTested:e=>`Not tested: changed parts of the code the plan did not test. ${e}`,componentsWithoutReason:e=>`The plan gave no reason for leaving out: ${e}.`,targetNotesDeviation:e=>`Tests were not put where the Target notes say tests go: ${e}`,testSettingsDiffer:e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,stageSalvaged:(e,t)=>t.length===1?`The ${e} step kept what it had produced although its ${t[0]} check still failed after a repair, so treat that output as unconfirmed by it.`:`The ${e} step kept what it had produced although ${t.length} of its checks (${t.join(", ")}) still failed after a repair, so treat that output as unconfirmed by them.`,downstreamNotChecked:e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,browserBuildNotDeclared:(e,t,n)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${n}\` there.`,resultsNotOfDeliveredTests:e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,videoMissing:e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,testsCouldNotRunHere:(e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,modelProviderDenied:(e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,stageInterruptedByProvider:(e,t)=>`${t}, the model provider, interrupted the ${e} step. Testbot kept what that step had produced.`,planInterruptedByProvider:(e,t)=>`${e}, the model provider, interrupted planning. Testbot kept the plan it had and reports the test results it obtained.`+(t?" Please try again later.":""),modelProviderUnavailable:(e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`,dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:e=>`The agent's browser sent sign-in or sign-up requests: ${e}. The data-safety guard lets these through and does not delete what they create, for example a new account.`,dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:(e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,dataSafetyIsolationEnforced:()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.",playwrightNotRouted:(e,t)=>`Testbot sends Playwright's API request client (the request fixture, page.request and request.newContext) through its data-safety guard only for Playwright ${t}. This checkout has Playwright ${e}, so those requests could not reach the shared environment.`,dataSafetyIsolationRefused:"Some checks could not run with the shared-environment protection in place. Testbot did not run them without it.",dataSafetyProxyAuthCreates:e=>`The plan probes or the tests sent sign-in or sign-up requests: ${e}. The data-safety proxy lets these through and does not track what they create, for example a new account.`,dataSafetyGuardedProbes:"plan probes",dataSafetyGuardedTests:"test runs",dataSafetyAnd:" and ",dataSafetyCleanupConfirmed:"Testbot ran each test's declared cleanup, and each succeeded.",dataSafetyLeftRecords:e=>`These tests declare records they cannot delete from the shared environment: ${e}.`,dataSafetyCleanupFailed:e=>`The cleanup of ${e} failed: what they created may still be in the shared environment.`,dataSafetyCleanupUnknown:e=>`The cleanup of ${e} is not known: Testbot did not check their cleanup.`},isolationReport:{rationale:"Testbot could not run this validation inside the shared-environment isolation it requires, so it did not validate the change.",gap:e=>`Shared-environment isolation unavailable: ${e}`,nextStep:"Fix what the gap names, then run the validation again.",nextStepPackageSource:"Run the validation again later, when the Ubuntu package source is available again. Nothing on this host or in the repository needs a change."},nextSteps:{componentMismatch:(e,t,n,s)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${s}, the commit this run validates.`,componentUnverified:(e,t,n,s)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${s}, the commit this run validates: it reports ${n}.`,componentUnread:(e,t,n)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${n}, the commit this run validates: it has no record of which commit that component runs.`,deployCommit:(e,t)=>`Deploy ${t} of ${e} to the Test Environment and run Testbot again: until it runs that commit, tests there do not validate this change.`,addSecret:(e,t)=>`Add ${t?"a secret":"secrets"} named ${e} on the workflow host, as a GitHub Actions secret or, on Azure DevOps, a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library. Then add ${t?"it":"them"} under Credentials on the Target's Setup page, and run Testbot again: a run's workflow passes Testbot only the Target's credentials, each from the workflow host's secret it is mapped to, and the app cannot start without ${t?"it":"them"}. Testbot does not make up a value.`},providerOutageHeadline:(e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,providerOutageActionStatusPage:e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,providerRateLimitHeadline:e=>`Testbot was rate-limited by ${e} (HTTP 429).`,providerRateLimitAction:"Wait for the limit to reset, then re-run this workflow from its run page in the Actions tab. If this repeats, raise the rate limit on the credential this workflow uses or run Testbot on fewer pull requests at once.",providerUsageLimitHeadline:e=>`The account behind ${e} has reached its usage limit.`,providerUsageLimitAction:"Raise the spend or token cap on the account behind this workflow's credential, then re-run this workflow from its run page in the Actions tab.",providerAuthExpiredHeadline:e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,providerAuthExpiredAction:"The credential is issued with a fixed lifetime, so a longer run can outlive it. Re-run this workflow from its run page in the Actions tab. If runs on this repository regularly last longer than that lifetime, issue the credential per job or split the run so each job stays inside it.",providerTimeoutHeadline:e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:e=>`Tests for source pull request ${e}`,validatedTogether:e=>`Pull requests validated together: ${e}`,requestedByPerson:e=>`Requested by ${e}`,requestedByPolicy:e=>`Started by the Validation Policy ${e}`,notTranslated:{"no-time":"> \u26A0\uFE0F This report is in English: no time was left to translate it.",failed:"> \u26A0\uFE0F This report is in English: the translation failed."},noLiveApp:e=>`> \u26A0\uFE0F **No live app (SUT) was available this run** \u2014 the ${e} test(s) below were **not executed** (there was no app to run them against). Run them against a running app to confirm they pass (and that any repro test fails as intended).`,unitTestsInFile:(e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:(e,t,n="")=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config.${n?` This run added it, with ${n}, installed in that package only.`:""} Run it with \`${t}\` while the app is running; to run it on every pull request, add that command to a CI job that has the app running.`,appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:(e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:(e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,testResultsHeader:"\u{1F9EA} Test Results",resultsTableHeader:"| Test ID | Test Type | Endpoint | Status | Details |",unitResultsTableHeader:"| Test ID | Test Type | Code under test | Test | Cases | Status | Details |",casesPassed:(e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:(e,t,n,s)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${s} executed)`,coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:(e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,requirementsTableHeader:"| Requirement | Clause | Tests | Result |",requirementsSummaryTableHeader:"| Requirement | Clauses passing | Not passing |",clauseStatuses:{},regressionGuard:" (regression guard)",caveatsHeader:"### \u26A0\uFE0F What This Run Could Not Prove",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F Run timed out \u2014 the results below are partial.",stopReasons:{},publishFailures:{},commitHook:e=>e?`${e} hook`:"commit hook",commitRefusedByHook:(e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,commitHookCouldNotRun:(e,t)=>`Your repository's ${e} could not run, so no Testbot PR was created: a command it calls is not installed on the runner. Hook error: \`${t}\`.`,maintenanceActions:{},stoppedEarly:(e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,viewInSkyramp:e=>` [View in Skyramp](${e})`,testsPr:{summaryHeader:"### Summary",targets:"The tests target:",moreItems:e=>`and ${e} more`,counts:(e,t)=>`${TV(e,"new")} and ${TV(t,"maintained")}.`,types:e=>`Test types: ${e}.`,statusHeader:"### Validation status",noChange:"\u2139\uFE0F Nothing changed since the baseline.",noTestRan:"No test ran, and no existing evidence was accepted.",noLiveApp:"No live app (SUT) was available, so the tests were not run.",resultCounts:(e,t,n)=>`Test results: ${e} passed, ${t} failed, ${n} not run.`,limitations:"Important failures and limitations:",verdict:e=>`The run's verdict is in [Run details](${e}).`,runningHeader:"### Running the tests",environment:e=>`The tests read these environment variables, which the job that runs them must set: ${e}.`,filesChanged:"Review each test in the **Files changed** tab."},descriptionCut:(e,t,n)=>`_\u2026 The rest is left out${t===void 0?", with more test results":t?`, with ${t} more test result${t===1?"":"s"}`:""}: Azure DevOps takes at most ${e} characters.${n?` [Full report](${n})`:""}_`,testsReplaced:(e,t,n)=>[t?`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}), commit \`${t}\`.`:`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}).`,n?`The tests of [the earlier run](${n}) are superseded.`:"The tests an earlier run wrote here are superseded."].join(" "),setupRunEnds:{finished:"Setup run finished. Skyramp is checking the result.",failed:"Setup run failed.",timedOut:"Setup run ran out of time.",cancelledInSkyramp:"Setup run was cancelled in Skyramp.",stoppedToResume:"Setup run stopped. Resume it in Skyramp."},appUnreachable:e=>`Unable to contact the mothership ${e}. Please try again later.`,couldNotStart:e=>`Skyramp Testbot could not start: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F This report was assembled automatically after the write-up step failed its checks; ${e} check(s) remain unmet \u2014 see the run log for details.`,testbotPrLine:(e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,viewRun:e=>`_[View run](${e})_`,testsPrNotOpened:(e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,testsNotDelivered:e=>`The tests could not be delivered: ${e}`,testsPinnedNotDelivered:(e,t,n)=>`${e}: ${t} ${t===1?"test":"tests"} written, ${n} maintained. The repository is pinned to a commit, so these changes were not delivered.`,testsNotPushed:(e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,testsPrRetargeted:e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:e=>`The tests were committed but no PR was opened: ${e}.`,testsHeldBack:(e,t,n,s)=>`${e?"Delivery partial":"Delivery failed: no tests were delivered"}. These test files need a pull request that is not on ${t} yet, so they were held back: ${n}. Their changes are in the run artifact's ${s}.`,testsNotProposed:e=>`The tests were not proposed in a pull request: ${e}.`}};var QV={testRecommendationsImplementedHeader:(e,t)=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08\u30C6\u30B9\u30C8 ${e}\u4EF6${t>e?`\u3001\u30B1\u30FC\u30B9 ${t}\u4EF6`:""}\uFF09`,listSeparator:"\u3001",testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,reusedThenVerified:(e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,reused:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,verified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,unresolved:e=>`${e} \u4EF6\u306F POM \u30BD\u30FC\u30B9\u307E\u3067\u89E3\u6C7A\u3067\u304D\u305A\uFF08\u53C2\u8003\u60C5\u5831\u3067\u3042\u308A\u3001\u9664\u5916\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09`,candidates:e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,maintenanceTableHeader:"| \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30D5\u30A1\u30A4\u30EB | \u5909\u66F4\u5185\u5BB9 | \u5909\u66F4\u524D | \u5909\u66F4\u5F8C |",testResultsHeader:e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,videosArtifactFallback:e=>`\u{1F4F9} \u9332\u753B\u3055\u308C\u305F UI \u30C6\u30B9\u30C8\u30D3\u30C7\u30AA: [\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u304B\u3089\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,configErrorsHeader:"\u2699\uFE0F \u8A2D\u5B9A\u30A8\u30E9\u30FC",nextStepsHeader:"### \u{1F4A1} \u6B21\u306E\u30B9\u30C6\u30C3\u30D7",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",rows:{passed:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u6210\u529F\u3057\u307E\u3057\u305F":"\u6210\u529F\u3057\u307E\u3057\u305F",notRun:e=>e?"\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F":"\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",failedBug:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5931\u6557\u3057\u307E\u3057\u305F":"\u5931\u6557\u3057\u307E\u3057\u305F",failedTest:e=>`\u5931\u6557\u3057\u307E\u3057\u305F \u2014 \u30A2\u30D7\u30EA\u3067\u306F\u306A\u304F\u30C6\u30B9\u30C8\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059\uFF08${e}\uFF09`,executedOf:(e,t)=>t?`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`:`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`,noneExecuted:e=>e?"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002":"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",staleResult:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u6700\u5F8C\u306E\u5909\u66F4\u3088\u308A\u524D\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093:"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",missingSecret:e=>`\u3053\u306E\u5B9F\u884C\u3067\u306F\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8D77\u52D5\u306B\u306F ${e} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u306B\u306F\u5024\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",findingsNotVerified:e=>`\u6B21\u306E\u7B87\u6240\u306E\u7591\u308F\u3057\u3044\u6B20\u9665\u3092\u78BA\u8A8D\u307E\u305F\u306F\u5426\u5B9A\u3059\u308B\u30C6\u30B9\u30C8\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,failedAlone:e=>`\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306F\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u306F\u6210\u529F\u3057\u307E\u3057\u305F\u304C\u3001Testbot \u304C\u5358\u72EC\u3067\u5B9F\u884C\u3059\u308B\u3068\u5931\u6557\u3057\u305F\u305F\u3081\u3001\u7D50\u679C\u306F\u78BA\u5B9A\u3057\u3066\u3044\u307E\u305B\u3093: ${e}\u3002`,missingCaseResults:(e,t)=>{let n=t?` \u6700\u65B0\u306E\u5B9F\u884C: ${t}`:"";return`\u4F5C\u6210\u3057\u305F\u30B1\u30FC\u30B9\u306E\u6700\u7D42\u7D50\u679C\u304C\u8A18\u9332\u3055\u308C\u3066\u3044\u307E\u305B\u3093: ${e}\u3002${n}`},recipeDrift:"\u8A18\u9332\u3055\u308C\u3066\u3044\u305F\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u53E4\u304F\u306A\u3063\u3066\u304A\u308A\u3001\u8D77\u52D5\u524D\u306B\u4FEE\u6B63\u304C\u5FC5\u8981\u3067\u3057\u305F\u3002",recipeNotSaved:"\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u4FDD\u5B58\u3055\u308C\u3066\u3044\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u8D77\u52D5\u65B9\u6CD5\u3092\u5224\u65AD\u3057\u307E\u3057\u305F\u3002",mockedDependency:e=>`${e} \u306F\u5B9F\u969B\u306B\u30C7\u30D7\u30ED\u30A4\u3055\u308C\u305A\u30E2\u30C3\u30AF\u5316\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u308C\u306B\u5BFE\u3059\u308B\u6210\u529F\u7D50\u679C\u306F\u8A3C\u660E\u306B\u306F\u306A\u308A\u307E\u305B\u3093\u3002`,finalizeNotReady:e=>`\u30C6\u30B9\u30C8\u306F\u73FE\u72B6\u3067\u306F\u30DE\u30FC\u30B8\u53EF\u80FD\u306A\u72B6\u614B\u3067\u306F\u3042\u308A\u307E\u305B\u3093${e?`: ${e}`:"\u3002"}`,ciNotCovered:"\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B CI \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u306A\u3044\u305F\u3081\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3002",ciNotCoveredBecause:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u4E00\u90E8\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093: ${e}`,guardedEntryCi:(e,t)=>`${e} \u306F Test Environment \u5411\u3051\u306E Testbot \u306E\u30AC\u30FC\u30C9\u4ED8\u304D\u30A8\u30F3\u30C8\u30EA\u3067\u3059\u3002CI \u3067\u306F @skyramp/testbot-core ${t} \u3092\u5BA3\u8A00\u3057\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u304B\u3089 \`node --test ${e}\` \u3067\u5B9F\u884C\u3057\u307E\u3059\u3002Testbot \u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u884C\u308F\u306A\u3044\u305F\u3081\u3001\u305D\u306E CI \u30B8\u30E7\u30D6\u306B \`id-token: write\` \u6A29\u9650\u3068 TESTBOT_POLICY_ORIGIN \u306F\u4E0D\u8981\u3067\u3059\u3002`,ciUnconfirmedAbsent:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u5B9F\u884C\u3057\u306A\u3044\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u308C\u3089\u306F CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u306A\u3044\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,ciUnconfirmed:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u53CE\u96C6\u3059\u308B\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u308B\u304B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,ciNotIntegrated:e=>`CI \u672A\u7D71\u5408: ${e} \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u3001Testbot \u306F CI \u304C\u5B9F\u884C\u3057\u306A\u3044\u5834\u6240\u306B\u914D\u7F6E\u3057\u307E\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,ciWithheld:e=>`\u30C6\u30B9\u30C8 PR \u306B\u542B\u3081\u3066\u3044\u307E\u305B\u3093: \u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001CI \u304C\u5931\u6557\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,ciUnprovisioned:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u3059\u308B\u307E\u3067 CI \u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3067\u5931\u6557\u3057\u307E\u3059\u3002`,ciResultsUnread:e=>`Testbot \u306F ${e} \u306E CI \u7D50\u679C\u3092\u8AAD\u307F\u53D6\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u305D\u3053\u3067\u306E CI \u7D50\u679C\u306F\u8A3C\u62E0\u3068\u3057\u3066\u6271\u308F\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,browserSuiteReadOnly:(e,t)=>`${e} \u306B\u306F\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u30B9\u30A4\u30FC\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u3067\u306F\u66F8\u304D\u8FBC\u3081\u306A\u3044\u305F\u3081\u3001UI \u30C6\u30B9\u30C8\u306F ${t} \u306B\u3042\u308A\u307E\u3059\u3002`,sutNotRequired:"\u30A2\u30D7\u30EA\u306F\u8D77\u52D5\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u691C\u8A3C\u30C8\u30EA\u30A2\u30FC\u30B8\u306B\u3088\u308A\u3001\u3053\u306E\u5909\u66F4\u3067\u691C\u8A3C\u304C\u5FC5\u8981\u306A\u30C7\u30D7\u30ED\u30A4\u5F8C\u306E\u632F\u308B\u821E\u3044\u306F\u306A\u3044\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",lintNotCovered:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F ${e} \u3092\u30C1\u30A7\u30C3\u30AF\u3057\u307E\u305B\u3093\u3002\u30B9\u30BF\u30A4\u30EB\u3084\u578B\u306E\u554F\u984C\u304C\u81EA\u52D5\u7684\u306B\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3002`,lintNotRun:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u3092\u30C1\u30A7\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30EA\u30F3\u30BF\u30FC\u3092\u901A\u3055\u305A\u306B\u63D0\u51FA\u3057\u307E\u3057\u305F: ${e}\u3002`,analysisUnverified:e=>`\u5909\u66F4\u306E\u5206\u6790\u306E\u4E00\u90E8\u3092\u691C\u8A3C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u672A\u89E3\u6C7A\u306E\u30C1\u30A7\u30C3\u30AF ${e} \u4EF6\uFF09\u3002\u8A72\u5F53\u3059\u308B\u4E3B\u5F35\u306F\u672A\u78BA\u8A8D\u3068\u3057\u3066\u6271\u3044\u3001\u30C6\u30B9\u30C8\u3092\u8A08\u753B\u3057\u307E\u3057\u305F\u3002`,unitTestsNotRun:e=>`Testbot \u306F\u9078\u629E\u3057\u305F\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u3053\u306B\u3042\u308B\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F Testbot \u81EA\u8EAB\u306E\u518D\u5B9F\u884C\u306B\u3088\u308B\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}`,componentsNotTested:e=>`\u672A\u30C6\u30B9\u30C8: \u8A08\u753B\u304C\u30C6\u30B9\u30C8\u5BFE\u8C61\u306B\u3057\u306A\u304B\u3063\u305F\u3001\u5909\u66F4\u3055\u308C\u305F\u30B3\u30FC\u30C9\u306E\u90E8\u5206\u3067\u3059\u3002${e}`,componentsWithoutReason:e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,targetNotesDeviation:e=>`Target \u306E\u30E1\u30E2\u304C\u6307\u5B9A\u3059\u308B\u5834\u6240\u306B\u30C6\u30B9\u30C8\u3092\u7F6E\u3044\u3066\u3044\u307E\u305B\u3093: ${e}`,testSettingsDiffer:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,stageSalvaged:(e,t)=>t.length===1?`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t[0]} \u306E\u30C1\u30A7\u30C3\u30AF\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`:`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t.length} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\uFF08${t.join("\u3001")}\uFF09\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u308C\u3089\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`,downstreamNotChecked:e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,browserBuildNotDeclared:(e,t,n)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${n}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,resultsNotOfDeliveredTests:e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F\u6700\u5F8C\u306E\u5B9F\u884C\u306E\u5F8C\u306B\u5909\u66F4\u3055\u308C\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306F\u4EE5\u524D\u306E\u7248\u306E\u3082\u306E\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,videoMissing:e=>`\u6B21\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306F\u52D5\u753B\u304C\u8A18\u9332\u3055\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306B\u306F\u78BA\u8A8D\u3067\u304D\u308B\u52D5\u753B\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,testsCouldNotRunHere:(e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,modelProviderDenied:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,stageInterruptedByProvider:(e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${t} \u306B\u3088\u308A ${e} \u306E\u6BB5\u968E\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u305D\u306E\u6BB5\u968E\u3067\u4F5C\u6210\u6E08\u307F\u306E\u5185\u5BB9\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002`,planInterruptedByProvider:(e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u306B\u3088\u308A\u8A08\u753B\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u4F5C\u6210\u6E08\u307F\u306E\u8A08\u753B\u3092\u6B8B\u3057\u3001\u5F97\u3089\u308C\u305F\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u5831\u544A\u3057\u307E\u3059\u3002`+(t?"\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002":""),modelProviderUnavailable:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:e=>`\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u30D6\u30E9\u30A6\u30B6\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u524A\u9664\u3057\u307E\u305B\u3093\u3002`,dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:(e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,dataSafetyIsolationEnforced:()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002",playwrightNotRouted:(e,t)=>`Testbot \u304C Playwright \u306E API \u30EA\u30AF\u30A8\u30B9\u30C8\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\uFF08request \u30D5\u30A3\u30AF\u30B9\u30C1\u30E3\u3001page.request\u3001request.newContext\uFF09\u3092\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u7D4C\u7531\u3067\u9001\u308B\u306E\u306F Playwright ${t} \u306E\u5834\u5408\u3060\u3051\u3067\u3059\u3002\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u30A2\u30A6\u30C8\u306E Playwright \u306F ${e} \u306E\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u306B\u5230\u9054\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,dataSafetyIsolationRefused:"\u4E00\u90E8\u306E\u30C1\u30A7\u30C3\u30AF\u306F\u3001\u5171\u6709\u74B0\u5883\u306E\u4FDD\u8B77\u3092\u6709\u52B9\u306B\u3057\u305F\u307E\u307E\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F\u3001\u4FDD\u8B77\u306A\u3057\u3067\u305D\u308C\u3089\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyProxyAuthCreates:e=>`\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6\u307E\u305F\u306F\u30C6\u30B9\u30C8\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u8FFD\u8DE1\u3057\u307E\u305B\u3093\u3002`,dataSafetyGuardedProbes:"\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6",dataSafetyGuardedTests:"\u30C6\u30B9\u30C8\u306E\u5B9F\u884C",dataSafetyAnd:"\u3068",dataSafetyCleanupConfirmed:"Testbot \u306F\u5404\u30C6\u30B9\u30C8\u304C\u5BA3\u8A00\u3057\u305F\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u5B9F\u884C\u3057\u3001\u3059\u3079\u3066\u6210\u529F\u3057\u307E\u3057\u305F\u3002",dataSafetyLeftRecords:e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u304B\u3089\u524A\u9664\u3067\u304D\u306A\u3044\u30EC\u30B3\u30FC\u30C9\u3092\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059: ${e}\u3002`,dataSafetyCleanupFailed:e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u4F5C\u6210\u3057\u305F\u3082\u306E\u304C\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3063\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`,dataSafetyCleanupUnknown:e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u4E0D\u660E\u3067\u3059\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u305B\u3093\u3002`},isolationReport:{rationale:"Testbot \u306F\u3001\u5FC5\u8981\u306A\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u306E\u4E2D\u3067\u3053\u306E\u691C\u8A3C\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5909\u66F4\u3092\u691C\u8A3C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",gap:e=>`\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093: ${e}`,nextStep:"\u30AE\u30E3\u30C3\u30D7\u306B\u8A18\u8F09\u3055\u308C\u305F\u554F\u984C\u3092\u89E3\u6D88\u3057\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",nextStepPackageSource:"Ubuntu \u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u914D\u5E03\u5143\u304C\u518D\u3073\u5229\u7528\u53EF\u80FD\u306B\u306A\u3063\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30DB\u30B9\u30C8\u3084\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},nextSteps:{componentMismatch:(e,t,n,s)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u306F ${n} \u3092\u5B9F\u884C\u3057\u3066\u304A\u308A\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${s} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,componentUnverified:(e,t,n,s)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${s} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u3055\u308C\u305F\u30B3\u30DF\u30C3\u30C8: ${n}\u3002`,componentUnread:(e,t,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u5B9F\u884C\u3057\u3066\u3044\u308B\u30B3\u30DF\u30C3\u30C8\u306E\u8A18\u9332\u304C\u3042\u308A\u307E\u305B\u3093\u3002`,deployCommit:(e,t)=>`${e} \u306E ${t} \u3092 Test Environment \u306B\u30C7\u30D7\u30ED\u30A4\u3057\u3066\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u305D\u306E\u30B3\u30DF\u30C3\u30C8\u304C\u5B9F\u884C\u3055\u308C\u308B\u307E\u3067\u3001\u305D\u3053\u3067\u306E\u30C6\u30B9\u30C8\u306F\u3053\u306E\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306A\u308A\u307E\u305B\u3093\u3002`,addSecret:(e,t)=>`\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306B ${e} \u3068\u3044\u3046\u540D\u524D\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\uFF08GitHub Actions \u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3001\u307E\u305F\u306F Azure DevOps \u3067\u306F\u30DB\u30B9\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u306E Pipelines \u203A Library \u306B\u3042\u308B skyramp-testbot \u5909\u6570\u30B0\u30EB\u30FC\u30D7\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u5909\u6570\uFF09\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6B21\u306B Target \u306E Setup \u30DA\u30FC\u30B8\u306E Credentials \u306B\u8FFD\u52A0\u3057\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5B9F\u884C\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C Testbot \u306B\u6E21\u3059\u306E\u306F Target \u306E\u8A8D\u8A3C\u60C5\u5831\u3060\u3051\u3067\u3001\u305D\u308C\u305E\u308C\u5BFE\u5FDC\u4ED8\u3051\u3089\u308C\u305F\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u304B\u3089\u6E21\u3055\u308C\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306F\u3053\u308C\u306A\u3057\u3067\u306F\u8D77\u52D5\u3067\u304D\u305A\u3001Testbot \u304C\u5024\u3092\u4F5C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002`},providerOutageHeadline:(e,t)=>`${e} \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F ${t} \u56DE\u8A66\u884C\u3057\u307E\u3057\u305F\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3002`,providerOutageActionStatusPage:e=>`${e} \u3067\u72B6\u6CC1\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B5\u30FC\u30D3\u30B9\u304C\u5FA9\u65E7\u3057\u305F\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,providerRateLimitHeadline:e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,providerRateLimitAction:"\u5236\u9650\u304C\u89E3\u9664\u3055\u308C\u308B\u307E\u3067\u5F85\u3063\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u7E70\u308A\u8FD4\u3059\u5834\u5408\u306F\u3001\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u4F7F\u7528\u3059\u308B\u8A8D\u8A3C\u60C5\u5831\u306E\u30EC\u30FC\u30C8\u5236\u9650\u3092\u5F15\u304D\u4E0A\u3052\u308B\u304B\u3001\u540C\u6642\u306B\u5B9F\u884C\u3059\u308B PR \u306E\u6570\u3092\u6E1B\u3089\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerUsageLimitHeadline:e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,providerUsageLimitAction:"\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u8A8D\u8A3C\u60C5\u5831\u306B\u7D10\u3065\u304F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5229\u7528\u4E0A\u9650\u3092\u5F15\u304D\u4E0A\u3052\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerAuthExpiredHeadline:e=>`\u5B9F\u884C\u4E2D\u306B\u3001Testbot \u304C ${e} \u3078\u63A5\u7D9A\u3059\u308B\u305F\u3081\u306E\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002`,providerAuthExpiredAction:"\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9593\u306F\u56FA\u5B9A\u306E\u305F\u3081\u3001\u5B9F\u884C\u6642\u9593\u304C\u9577\u3044\u3068\u305D\u306E\u671F\u9593\u3092\u8D85\u3048\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u304C\u6709\u52B9\u671F\u9593\u3092\u5E38\u306B\u8D85\u3048\u308B\u5834\u5408\u306F\u3001\u30B8\u30E7\u30D6\u3054\u3068\u306B\u8A8D\u8A3C\u60C5\u5831\u3092\u767A\u884C\u3059\u308B\u304B\u3001\u5404\u30B8\u30E7\u30D6\u304C\u6709\u52B9\u671F\u9593\u5185\u306B\u53CE\u307E\u308B\u3088\u3046\u5B9F\u884C\u3092\u5206\u5272\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerTimeoutHeadline:e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,providerTimeoutAction:"\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u306B\u672C\u5F53\u306B\u6642\u9593\u304C\u5FC5\u8981\u306A\u5834\u5408\u306F\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E `testbotTimeout` \u5165\u529B\u5024\u3092\u5927\u304D\u304F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",staged:{testsSourcePullRequest:e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,validatedTogether:e=>`\u4E00\u7DD2\u306B\u691C\u8A3C\u3057\u305F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8: ${e}`,requestedByPerson:e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,requestedByPolicy:e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,notTranslated:{"no-time":"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u3059\u308B\u6642\u9593\u304C\u6B8B\u3063\u3066\u3044\u307E\u305B\u3093\u3067\u3057\u305F\u3002",failed:"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},noLiveApp:e=>`> \u26A0\uFE0F **\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F** \u2014 \u4EE5\u4E0B\u306E ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u306F**\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093**\uFF08\u5B9F\u884C\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF09\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u3001\u5408\u683C\u3059\u308B\u3053\u3068\uFF08\u304A\u3088\u3073\u518D\u73FE\u30C6\u30B9\u30C8\u304C\u610F\u56F3\u3069\u304A\u308A\u5931\u6557\u3059\u308B\u3053\u3068\uFF09\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,unitTestsInFile:(e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,addedToExistingFile:"\u65E2\u5B58\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306B\u8FFD\u52A0",testPackagesHeader:"### \u{1F4E6} \u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",testPackageLine:(e,t,n="")=>`\`${e}/\` \u306F Skyramp Testbot \u304C\u6240\u6709\u30FB\u4FDD\u5B88\u3059\u308B\u72EC\u7ACB\u3057\u305F\u30C6\u30B9\u30C8\u30D1\u30C3\u30B1\u30FC\u30B8\u3067\u3001\u72EC\u81EA\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3001\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u3001\u30E9\u30F3\u30CA\u30FC\u8A2D\u5B9A\u3092\u6301\u3061\u307E\u3059\u3002${n?`\u3053\u306E\u5B9F\u884C\u3067\u8FFD\u52A0\u3057\u305F\u3082\u306E\u3067\u3001${n} \u3092\u3053\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u5185\u306B\u306E\u307F\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u3066\u3044\u307E\u3059\u3002`:""}\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u4E2D\u306B \`${t}\` \u3067\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002\u3059\u3079\u3066\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u5B9F\u884C\u3059\u308B\u306B\u306F\u3001\u30A2\u30D7\u30EA\u304C\u8D77\u52D5\u3057\u3066\u3044\u308B CI \u30B8\u30E7\u30D6\u306B\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,appManifestsUntouched:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u81EA\u8EAB\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3068\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",dependencyChangesHeader:"### \u{1F4E6} \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u4F9D\u5B58\u95A2\u4FC2\u306E\u5909\u66F4",dependencyChangeLine:(e,t,n)=>`\`${t}\`\uFF08\u304A\u3088\u3073\u305D\u306E\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\uFF09\u306B \`${e}\` \u3092\u8FFD\u52A0${n?`: ${n}`:""}`,testMaintenanceHeader:"\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",keptNot:"\u5909\u66F4\u305B\u305A\u7DAD\u6301 \u2014 \u898B\u9001\u3063\u305F\u64CD\u4F5C: ",declinedPlanned:"(\u4E88\u5B9A\u3057\u3066\u3044\u305F\u64CD\u4F5C\u3092\u898B\u9001\u308A: ",declinedMaintenanceHeader:"\u21A9\uFE0F \u898B\u9001\u3063\u305F\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",existingEvidenceHeader:"\u2705 \u65E2\u5B58\u306E\u30A8\u30D3\u30C7\u30F3\u30B9",trustedCheckPassed:(e,t)=>`\u4FE1\u983C\u6E08\u307F\u306E CI \u30C1\u30A7\u30C3\u30AF ${e} \u304C${t?` ${t} \u3067`:""}\u5408\u683C\u3057\u3001\u6B21\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F:`,testResultsHeader:"\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C",resultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",unitResultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30B3\u30FC\u30C9 | \u30C6\u30B9\u30C8 | \u30B1\u30FC\u30B9\u6570 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",casesPassed:(e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:(e,t,n,s)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${s}\uFF09`,coverageTableHeader:"| \u632F\u308B\u821E\u3044 | \u30BD\u30FC\u30B9 | \u30C6\u30B9\u30C8 | \u30E1\u30F3\u30C6\u30CA\u30F3\u30B9 |",writtenNotRun:"\u4F5C\u6210\u6E08\u307F\u30FB\u672A\u5B9F\u884C",issuesFoundHeader:"\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C",requirementsHeader:(e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,requirementsTableHeader:"| \u8981\u4EF6 | \u6761\u9805 | \u30C6\u30B9\u30C8 | \u7D50\u679C |",requirementsSummaryTableHeader:"| \u8981\u4EF6 | \u5408\u683C\u3057\u305F\u6761\u9805 | \u5408\u683C\u3057\u3066\u3044\u306A\u3044\u6761\u9805 |",clauseStatuses:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C","Not run":"\u672A\u5B9F\u884C","Not tested":"\u672A\u30C6\u30B9\u30C8","Passed, test not kept":"\u5408\u683C\uFF08\u30C6\u30B9\u30C8\u306F\u4FDD\u6301\u305B\u305A\uFF09"},regressionGuard:"\uFF08\u56DE\u5E30\u30AC\u30FC\u30C9\uFF09",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F \u5B9F\u884C\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F \u2014 \u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002",stopReasons:{"pr-closed":"\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30DE\u30FC\u30B8\u3055\u308C\u305A\u306B\u30AF\u30ED\u30FC\u30BA\u3055\u308C\u307E\u3057\u305F",cancelled:"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u305F\u304B\u3001\u30E9\u30F3\u30CA\u30FC\u304C\u505C\u6B62\u3057\u307E\u3057\u305F","attempt-cancelled":"Skyramp \u3067\u3053\u306E\u5B9F\u884C\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F","attempt-closed":"Skyramp \u304C\u3053\u306E\u5B9F\u884C\u3092\u7D42\u4E86\u3057\u307E\u3057\u305F"},maintenanceActions:{update:"\u66F4\u65B0",regenerate:"\u518D\u751F\u6210",delete:"\u524A\u9664",verify:"\u691C\u8A3C",updated:"\u66F4\u65B0",regenerated:"\u518D\u751F\u6210",deleted:"\u524A\u9664",verified:"\u691C\u8A3C"},publishFailures:{push:"\u30D7\u30C3\u30B7\u30E5\u306B\u5931\u6557",auth:"\u8A8D\u8A3C\u30A8\u30E9\u30FC",conflict:"\u7AF6\u5408",hook:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF\u304C\u5931\u6557",unknown:"\u4E0D\u660E\u306A\u30A8\u30E9\u30FC"},commitHook:e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF",commitRefusedByHook:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u304C\u751F\u6210\u3055\u308C\u305F\u30C6\u30B9\u30C8\u306E\u30B3\u30DF\u30C3\u30C8\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,commitHookCouldNotRun:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u304C\u547C\u3073\u51FA\u3059\u30B3\u30DE\u30F3\u30C9\u304C\u30E9\u30F3\u30CA\u30FC\u306B\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,stoppedEarly:(e,t)=>`> \u26A0\uFE0F \u5B9F\u884C\u304C\u9014\u4E2D\u3067\u505C\u6B62\u3057\u307E\u3057\u305F \u2014 ${e}\u3002\u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002${t}`,viewInSkyramp:e=>` [Skyramp \u3067\u8868\u793A](${e})`,testsPr:{summaryHeader:"### \u6982\u8981",targets:"\u30C6\u30B9\u30C8\u306E\u5BFE\u8C61:",moreItems:e=>`\u307B\u304B ${e} \u4EF6`,counts:(e,t)=>`\u65B0\u898F\u30C6\u30B9\u30C8 ${e} \u4EF6\u3001\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u3057\u305F\u30C6\u30B9\u30C8 ${t} \u4EF6\u3002`,types:e=>`\u30C6\u30B9\u30C8\u7A2E\u5225: ${e}\u3002`,statusHeader:"### \u691C\u8A3C\u30B9\u30C6\u30FC\u30BF\u30B9",noChange:"\u2139\uFE0F \u30D9\u30FC\u30B9\u30E9\u30A4\u30F3\u4EE5\u964D\u306B\u5909\u66F4\u306F\u3042\u308A\u307E\u305B\u3093\u3002",noTestRan:"\u5B9F\u884C\u3057\u305F\u30C6\u30B9\u30C8\u306F\u306A\u304F\u3001\u65E2\u5B58\u306E\u8A3C\u62E0\u3082\u63A1\u7528\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",noLiveApp:"\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",resultCounts:(e,t,n)=>`\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${e} \u4EF6\u3001\u4E0D\u5408\u683C ${t} \u4EF6\u3001\u672A\u5B9F\u884C ${n} \u4EF6\u3002`,limitations:"\u91CD\u8981\u306A\u5931\u6557\u3068\u5236\u9650:",verdict:e=>`\u5B9F\u884C\u306E\u5224\u5B9A\u306F[\u5B9F\u884C\u306E\u8A73\u7D30](${e})\u306B\u3042\u308A\u307E\u3059\u3002`,runningHeader:"### \u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",environment:e=>`\u30C6\u30B9\u30C8\u306F\u6B21\u306E\u74B0\u5883\u5909\u6570\u3092\u8AAD\u307F\u53D6\u308A\u307E\u3059\u3002\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B\u30B8\u30E7\u30D6\u3067\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044: ${e}\u3002`,filesChanged:"\u5404\u30C6\u30B9\u30C8\u306F **Files changed** \u30BF\u30D6\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},descriptionCut:(e,t,n)=>`_\u2026 \u6B8B\u308A\u306F\u7701\u7565\u3057\u307E\u3057\u305F${t===void 0?"\uFF08\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u542B\u3080\uFF09":t?`\uFF08\u30C6\u30B9\u30C8\u7D50\u679C ${t} \u4EF6\u3092\u542B\u3080\uFF09`:""}\u3002Azure DevOps \u306E\u8AAC\u660E\u306F ${e} \u6587\u5B57\u307E\u3067\u3067\u3059\u3002${n?` [\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8](${n})`:""}_`,testsReplaced:(e,t,n)=>[t?`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\uFF08\u30B3\u30DF\u30C3\u30C8 \`${t}\`\uFF09\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`:`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`,n?`[\u4EE5\u524D\u306E\u5B9F\u884C](${n})\u306E\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002`:"\u4EE5\u524D\u306E\u5B9F\u884C\u304C\u3053\u3053\u306B\u66F8\u3044\u305F\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002"].join(""),setupRunEnds:{finished:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002Skyramp \u304C\u7D50\u679C\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",failed:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",timedOut:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u6642\u9593\u5207\u308C\u306B\u306A\u308A\u307E\u3057\u305F\u3002",cancelledInSkyramp:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306F Skyramp \u3067\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",stoppedToResume:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002Skyramp \u3067\u518D\u958B\u3067\u304D\u307E\u3059\u3002"},appUnreachable:e=>`Skyramp\uFF08${e}\uFF09\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002`,couldNotStart:e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F \u4F5C\u6210\u30B9\u30C6\u30C3\u30D7\u304C\u30C1\u30A7\u30C3\u30AF\u306B\u5408\u683C\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u81EA\u52D5\u3067\u7D44\u307F\u7ACB\u3066\u3089\u308C\u307E\u3057\u305F\u3002${e} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\u304C\u672A\u9054\u6210\u3067\u3059 \u2014 \u8A73\u7D30\u306F\u5B9F\u884C\u30ED\u30B0\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,testbotPrLine:(e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,viewRun:e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,testsPrNotOpened:(e,t)=>`\u30C6\u30B9\u30C8 PR \u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u30D7\u30C3\u30B7\u30E5\u3055\u308C\u3066\u3044\u307E\u3059\u3002`,testsNotDelivered:e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,testsPinnedNotDelivered:(e,t,n)=>`${e}: ${t} \u4EF6\u306E\u30C6\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u3001${n} \u4EF6\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30B3\u30DF\u30C3\u30C8\u306B\u56FA\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u3053\u308C\u3089\u306E\u5909\u66F4\u306F\u914D\u4FE1\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,testsNotPushed:(e,t)=>`\u30C6\u30B9\u30C8\u3092\u30D7\u30C3\u30B7\u30E5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30ED\u30FC\u30AB\u30EB\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002`,testsPrRetargeted:e=>`\u30C6\u30B9\u30C8\u306E\u751F\u6210\u4E2D\u306B\u958B\u767A PR \u304C\u30DE\u30FC\u30B8\u3055\u308C\u307E\u3057\u305F \u2014 \u30C6\u30B9\u30C8 PR \u306F\u4EE3\u308F\u308A\u306B\u30D9\u30FC\u30B9\u30D6\u30E9\u30F3\u30C1${e?`\uFF08\`${e}\`\uFF09`:""}\u3092\u5BFE\u8C61\u306B\u3057\u3066\u3044\u307E\u3059\u3002`,testsPrUnchanged:"\u3053\u306E\u30D7\u30C3\u30B7\u30E5\u3067\u306F\u65B0\u3057\u3044\u30C6\u30B9\u30C8\u306E\u5909\u66F4\u306F\u4E0D\u8981\u3067\u3057\u305F\u3002\u4EE5\u4E0B\u306E\u30C6\u30B9\u30C8 PR \u306F\u4EE5\u524D\u306E\u5B9F\u884C\u306E\u3082\u306E\u3067\u3001\u305D\u306E\u307E\u307E\u306B\u3057\u3066\u3044\u307E\u3059\u3002",committedNoPr:e=>`\u30C6\u30B9\u30C8\u306F\u30B3\u30DF\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F\u304C\u3001PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,testsHeldBack:(e,t,n,s)=>`${e?"\u4E00\u90E8\u306E\u30C6\u30B9\u30C8\u306E\u307F\u63D0\u51FA\u3057\u307E\u3057\u305F":"\u30C6\u30B9\u30C8\u3092\u63D0\u51FA\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F"}\u3002\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F ${t} \u306B\u307E\u3060\u306A\u3044\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u4FDD\u7559\u3057\u307E\u3057\u305F: ${n}\u3002\u5909\u66F4\u5185\u5BB9\u306F\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u306E ${s} \u306B\u3042\u308A\u307E\u3059\u3002`,testsNotProposed:e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`}};var Ef=(n=>(n.En="en",n.Ja="ja",n))(Ef||{}),kue={en:Dy,ja:QV},Rue="en";function nR(e){let t=e.trim().toLowerCase();if(t==="")return"en";let n=Object.values(Ef);return n.includes(t)?t:(jt(`Invalid language '${e}'. Supported: ${n.join(", ")}. Falling back to 'en'.`),"en")}function Vo(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}function re(){return kue[Rue]}var Ny=(a=>(a.ProviderOutage="provider_outage",a.ProviderRateLimit="provider_rate_limit",a.ProviderUsageLimit="provider_usage_limit",a.ProviderAuthExpired="provider_auth_expired",a.Timeout="timeout",a.NoReport="no_report",a.RenderFailure="render_failure",a))(Ny||{});(t=>{function e(n,s){switch(n){case"provider_outage":return{headline:re().providerOutageHeadline(s.provider.name,s.maxRetries),action:re().providerOutageActionStatusPage(s.provider.statusUrl)};case"provider_rate_limit":return{headline:re().providerRateLimitHeadline(s.provider.name),action:re().providerRateLimitAction};case"provider_usage_limit":return{headline:re().providerUsageLimitHeadline(s.provider.name),action:re().providerUsageLimitAction};case"provider_auth_expired":return{headline:re().providerAuthExpiredHeadline(s.provider.name),action:re().providerAuthExpiredAction};case"timeout":return{headline:re().providerTimeoutHeadline(s.timeoutMinutes),action:re().providerTimeoutAction};case"no_report":case"render_failure":return}}t.buildNotice=e})(Ny||={});var rR=(n=>(n.SameBranch="same-branch",n.SeparateBranch="separate-branch",n))(rR||{});var _V=(n=>(n.Sonnet="sonnet",n.Opus="opus",n))(_V||{}),Bue="opus";function sR(e){return Object.values(_V).includes(e)}function DV(e){let t=(e??"").trim();if(t==="")return Bue;let n=t.toLowerCase();return sR(n)?n:t}var Py=(i=>(i.Low="low",i.Medium="medium",i.High="high",i.XHigh="xhigh",i.Max="max",i))(Py||{}),Oy="high";function NV(e){return Object.values(Py).includes(e)}var PV=5;function xue(e){let t=e.split(/\r?\n/).map(n=>n.trim()).filter(Boolean);if(t.length>PV)throw new Error(`relatedRepoPaths supports at most ${PV} entries (got ${t.length}); the cap limits how much cross-repo context is loaded to avoid overflowing Testbot's context window.`);return t}function $ue(e){let t=e.trim().toLowerCase();return t===""?"separate-branch":Object.values(rR).includes(t)?t:(jt(`Invalid generatedTestsMode '${e}'. Falling back to 'separate-branch'.`),"separate-branch")}function Tue(e){let t=(e??"").trim();if(t!==""){if(/^(?:[1-9]|10)$/.test(t))return Number(t);jt(`Ignoring perTestMaxFixAttempts="${e}": expected a whole number from 1 to 10; the Skyramp MCP default applies`)}}function Que(e){let t=(e??"").trim().toLowerCase();return t===""?Oy:NV(t)?t:(jt(`Ignoring effort="${e}": expected one of ${Object.values(Py).join(", ")}; using "${Oy}"`),Oy)}function OV(){let e=DV(Ve("model"));return sR(e)||jt(`model '${e}' is not a tested alias (sonnet, opus); passing it to the agent verbatim as a raw model id.`),{skyrampLicenseFile:Ve("skyrampLicenseFile"),cursorApiKey:Ve("cursorApiKey"),copilotApiKey:Ve("copilotApiKey"),anthropicApiKey:Ve("anthropicApiKey"),useBedrock:Fo("useBedrock"),awsRegion:Ve("awsRegion"),useLocalAuth:Ve("useLocalAuth").toLowerCase()==="true",model:e,effort:Que(Ve("effort")),targetSetupCommand:Ve("targetSetupCommand"),authTokenCommand:Ve("authTokenCommand"),uiCredentials:Ve("uiCredentials"),targetTeardownCommand:Ve("targetTeardownCommand"),skipTargetTeardown:Fo("skipTargetTeardown"),skyrampMcpVersion:Ve("skyrampMcpVersion"),skyrampMcpSource:Ve("skyrampMcpSource"),skyrampMcpGithubToken:Ve("skyrampMcpGithubToken"),skyrampMcpGithubRef:Ve("skyrampMcpGithubRef"),nodeVersion:Ve("nodeVersion"),skipTargetSetup:Fo("skipTargetSetup"),targetReadyCheckCommand:Ve("targetReadyCheckCommand"),targetReadyCheckTimeout:(()=>{let n=parseInt(Ve("targetReadyCheckTimeout"),10)||1800;return n<1?(jt(`targetReadyCheckTimeout must be at least 1 second, got ${n}. Using 1s.`),1):n})(),targetReadyCheckInterval:(()=>{let n=parseInt(Ve("targetReadyCheckInterval"),10),s=isNaN(n)?30:n;return s<1?(jt(`targetReadyCheckInterval must be at least 1 second, got ${s}. Using 1s.`),1):s})(),targetReadyCheckDiagnosticsCommand:(()=>{let n=Ve("targetReadyCheckDiagnosticsCommand");return n.trim().toLowerCase()==="none"?"":n})(),workingDirectory:Ve("workingDirectory"),autoCommit:Fo("autoCommit"),commitMessage:Ve("commitMessage"),generatedTestsMode:$ue(Ve("generatedTestsMode")),postPrComment:Fo("postPrComment"),testExecutionTimeout:parseInt(Ve("testExecutionTimeout"),10)||300,maxRecommendations:(()=>{let n=parseInt(Ve("maxRecommendations"),10);return isNaN(n)?void 0:Math.max(0,n)})(),maxGenerate:(()=>{let n=parseInt(Ve("maxGenerate"),10);return isNaN(n)?void 0:Math.max(0,n)})(),perTestMaxFixAttempts:Tue(Ve("perTestMaxFixAttempts")),testbotMaxRetries:parseInt(Ve("testbotMaxRetries"),10)||3,testbotRetryDelay:parseInt(Ve("testbotRetryDelay"),10)||10,testbotTimeout:parseInt(Ve("testbotTimeout"),10)||60,targetSetupRetries:parseInt(Ve("targetSetupRetries"),10)||3,targetSetupRetryDelay:parseInt(Ve("targetSetupRetryDelay"),10)||10,authTokenRetries:(()=>{let n=parseInt(Ve("authTokenRetries"),10);return Number.isFinite(n)&&n>=1?n:6})(),authTokenRetryDelay:(()=>{let n=parseInt(Ve("authTokenRetryDelay"),10);return Number.isFinite(n)&&n>=0?n:10})(),reportCollapsed:Fo("reportCollapsed"),language:nR(Ve("language")),enableDebug:Fo("enableDebug"),testRepoPath:Ve("testRepoPath")||void 0,relatedRepoPaths:xue(Ve("relatedRepoPaths")),allowedAuthors:Ve("allowedAuthors").split(/\r?\n/).map(n=>n.trim()).filter(Boolean)}}var _ue={useBedrock:"false",skipTargetTeardown:"false",skyrampMcpSource:"npm",skyrampMcpGithubRef:"main",nodeVersion:"lts/*",skipTargetSetup:"false",targetReadyCheckTimeout:"1800",targetReadyCheckInterval:"30",targetReadyCheckDiagnosticsCommand:`docker ps -a --format 'table {{.Names}} {{.Status}} {{.Ports}}' && docker ps -a --format '{{.Names}}' | while read name; do [ -n "$name" ] && echo "--- logs $name (last 30) ---" && docker logs --tail 30 "$name"; done`,workingDirectory:".",autoCommit:"true",commitMessage:"Skyramp Testbot: test maintenance suggestions",generatedTestsMode:"separate-branch",pipeline:"staged",postPrComment:"true",testbotMaxRetries:"3",testbotRetryDelay:"10",testExecutionTimeout:"300",testbotTimeout:"60",targetSetupRetries:"3",targetSetupRetryDelay:"10",authTokenRetries:"6",authTokenRetryDelay:"10",reportCollapsed:"true",language:"en",enableDebug:"true",sutSetupMode:"none"};function FV(e=process.env){for(let[t,n]of Object.entries(_ue)){let s=`INPUT_${t.replace(/ /g,"_").toUpperCase()}`;(e[s]??"").trim()===""&&(e[s]=n)}}Dn();async function UV(e){let t=e.targetSetupCommand,n=e.skyrampMcpVersion;n||(n="latest"),t||(t="docker compose up -d --build");let s={targetSetupCommand:t,authTokenCommand:e.authTokenCommand,targetTeardownCommand:e.targetTeardownCommand,skipTargetTeardown:e.skipTargetTeardown,skyrampMcpVersion:n,skyrampMcpSource:e.skyrampMcpSource,skyrampMcpGithubRef:e.skyrampMcpGithubRef,nodeVersion:e.nodeVersion,skipTargetSetup:e.skipTargetSetup,targetReadyCheckCommand:e.targetReadyCheckCommand,targetReadyCheckTimeout:e.targetReadyCheckTimeout,targetReadyCheckInterval:e.targetReadyCheckInterval,targetReadyCheckDiagnosticsCommand:e.targetReadyCheckDiagnosticsCommand,autoCommit:e.autoCommit,commitMessage:e.commitMessage,generatedTestsMode:e.generatedTestsMode,postPrComment:e.postPrComment,testExecutionTimeout:e.testExecutionTimeout,maxRecommendations:e.maxRecommendations,maxGenerate:e.maxGenerate,perTestMaxFixAttempts:e.perTestMaxFixAttempts,testbotMaxRetries:e.testbotMaxRetries,testbotRetryDelay:e.testbotRetryDelay,testbotTimeout:e.testbotTimeout,targetSetupRetries:e.targetSetupRetries,targetSetupRetryDelay:e.targetSetupRetryDelay,authTokenRetries:e.authTokenRetries,authTokenRetryDelay:e.authTokenRetryDelay,reportCollapsed:e.reportCollapsed,language:e.language,enableDebug:e.enableDebug,testRepoPath:e.testRepoPath,relatedRepoPaths:e.relatedRepoPaths};wy("Resolved configuration");for(let[r,i]of Object.entries(s))r==="authTokenCommand"?Bs(` ${r}: [REDACTED]`):Bs(` ${r}: ${i}`);return Iy(),s}Dn();Dn();zk();var LV=Y(require("child_process")),iR=class extends Error{constructor(t){super(t),this.name="ExecTimeoutError"}},Fy=class extends Error{constructor(t){super(t),this.name="ExecAbortedError"}};function MV(e,t){if(!(!e||e.destroyed||e.writableEnded))try{e.write(t)}catch(n){jt(`stream write failed: ${n instanceof Error?n.message:String(n)}`)}}async function jV(e,t=[],n={}){let s="",r="",i={cwd:n.cwd,silent:n.silent??!1,ignoreReturnCode:n.ignoreReturnCode??!1,env:n.env?{...process.env,...n.env}:void 0,input:n.input,listeners:{stdout:a=>{s+=a.toString(),MV(n.stdoutStream,a)},stderr:a=>{r+=a.toString()}}};if(n.timeout||n.signal){let a=n.signal;return a?.aborted?Promise.reject(new Fy(`Command aborted before start: ${e}`)):new Promise((c,u)=>{let d=LV.spawn(e,t,{cwd:n.cwd,env:n.env?{...process.env,...n.env}:process.env,stdio:["pipe","pipe","pipe"],shell:!1});d.stdout?.on("data",y=>{s+=y.toString(),n.silent||process.stdout.write(y),MV(n.stdoutStream,y)}),d.stderr?.on("data",y=>{r+=y.toString(),n.silent||process.stderr.write(y)}),n.input&&d.stdin?.end(n.input);let p=()=>{m&&clearTimeout(m),a?.removeEventListener("abort",g)},h=y=>{p();try{d.kill("SIGTERM")}catch{}u(y)},g=()=>h(new Fy(`Command aborted: ${e}`)),m=n.timeout?setTimeout(()=>h(new iR(`Command timed out after ${Math.round(n.timeout/6e4)}m: ${e}`)),n.timeout):void 0;a?.addEventListener("abort",g,{once:!0}),d.on("close",y=>{p();let v=y??1;v!==0&&!n.ignoreReturnCode?u(new Error(`The process '${e}' failed with exit code ${v}`)):c({exitCode:v,stdout:s,stderr:r})}),d.on("error",y=>{p(),u(y)})})}return{exitCode:await oV(e,t,i),stdout:s,stderr:r}}async function VV(e,t){wy(e);try{return await t()}finally{Iy()}}function oR(e){return e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/^_+|_+$/g,"")}async function GV(e,t){await VV("Tearing down services",async()=>{if(e.skipTargetTeardown){Jk("Skipping service teardown (skipTargetTeardown=true)");return}if(!e.targetTeardownCommand){Bs("No targetTeardownCommand configured, skipping teardown");return}Bs(`Running teardown command: ${e.targetTeardownCommand}`);try{await jV("bash",["-c",e.targetTeardownCommand],{cwd:t}),Jk("Services torn down successfully")}catch(n){let s=n instanceof Error?n.message:String(n);jt(`Service teardown command failed (non-fatal): ${s}`)}})}var le=Y(require("fs")),KV=require("crypto"),Ie=Y(require("path")),XV=require("child_process");var Uy=Y(require("fs")),HV=Y(require("path")),Due=/[;|`$<>(){}\n\r]|(?<!&)&(?!&)|\|\|/,Nue=/`|\$[\w{(@*#?!$-]|\\[$`"\\\n]/;function Pue(e){let t="";for(let s=0;s<e.length;){let r=e[s];if(r==="\\"&&(e[s+1]==='"'||e[s+1]==="'"))return{syntax:"a backslash before a quote",quoted:!1};if(r!=='"'&&r!=="'"){t+=r,s++;continue}let i=e.indexOf(r,s+1);if(i<0)return;let o=r==='"'?Nue.exec(e.slice(s+1,i+(e[i-1]==="\\"?1:0))):null;if(o)return{syntax:`${zV(o[0])} inside double quotes`,quoted:!0};t+=" ",s=i+1}let n=Due.exec(t);return n?{syntax:zV(n[0]),quoted:!1}:void 0}var zV=e=>e==="`"?"a backtick":/[\n\r]/.test(e)?"a line break":`\`${e}\``;function Rc(e){let t=(e??"").trim();if(!t)return{kind:"empty",reason:"the command is empty"};let n=Pue(t);if(n)return{kind:"shell-syntax",reason:`it uses shell syntax (${n.syntax}), and this is re-executed WITHOUT a shell so the recorded string cannot be interpreted \u2014 put the logic in a script and record the script invocation instead, or put an argument that holds such characters in ${n.quoted?"single quotes":"quotes"}`};let s=[],r=[],i="",o,a=!1,c=()=>{(i||a)&&r.push(i),i="",a=!1},u=()=>{c(),r.length>0&&s.push(r),r=[]};for(let p=0;p<t.length;p++){let h=t[p];if(o){h===o?o=void 0:i+=h;continue}if(h==='"'||h==="'"){o=h,a=!0;continue}if(h==="&"&&t[p+1]==="&"){u(),p+=1;continue}if(/\s/.test(h)){c();continue}i+=h}if(o)return{kind:"unterminated-quote",reason:"it has an unterminated quote"};if(u(),s.length===0)return{kind:"empty",reason:"the command is empty"};if(s.some(p=>p.length===0))return{kind:"empty-step",reason:"it has an empty step between && operators"};let d=s.find(p=>["cd","export","source","."].includes(p[0]));return d?{kind:"builtin",reason:`it runs the shell builtin "${d[0]}", which cannot be executed as a program \u2014 record a script that does this instead`}:{argv:s[0],steps:s}}function My(e,t,n){let s=(e??"").trim(),{steps:r,kind:i}=Rc(s);if(!r&&!(i!=="shell-syntax"&&i!=="builtin")){try{Uy.mkdirSync(HV.dirname(t),{recursive:!0}),Uy.writeFileSync(t,`#!/usr/bin/env bash
51
+ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function lV(e){process.exitCode=qk.Failure,dV(e)}function Nk(e){Na("debug",{},e)}function dV(e,t={}){Na("error",gm(t),e instanceof Error?e.toString():e)}function jt(e,t={}){Na("warning",gm(t),e instanceof Error?e.toString():e)}function Jk(e,t={}){Na("notice",gm(t),e instanceof Error?e.toString():e)}function Bs(e){process.stdout.write(e+uV.EOL)}function wy(e){nI("group",e)}function Iy(){nI("endgroup")}function ti(e){return process.env[`STATE_${e}`]||""}function pV(e){return pce(this,void 0,void 0,function*(){return yield my.getIDToken(e)})}var uV,pce,qk,Dn=Gn(()=>{oN();aN();mm();uV=Y(require("os"),1);G1();Fk();Fk();q1();cV();pce=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(s.next(d))}catch(p){o(p)}}function c(d){try{u(s.throw(d))}catch(p){o(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((s=s.apply(e,t||[])).next())})};(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(qk||(qk={}))});var Xl=T((d_e,C2)=>{"use strict";var _pe="2.0.0",Dpe=Number.MAX_SAFE_INTEGER||9007199254740991,Npe=16,Ppe=250,Ope=["major","premajor","minor","preminor","patch","prepatch","prerelease"];C2.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Npe,MAX_SAFE_BUILD_LENGTH:Ppe,MAX_SAFE_INTEGER:Dpe,RELEASE_TYPES:Ope,SEMVER_SPEC_VERSION:_pe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ph=T((p_e,S2)=>{"use strict";var Fpe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};S2.exports=Fpe});var ed=T((gi,k2)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:kB,MAX_SAFE_BUILD_LENGTH:Upe,MAX_LENGTH:Mpe}=Xl(),Lpe=ph();gi=k2.exports={};var jpe=gi.re=[],Vpe=gi.safeRe=[],ae=gi.src=[],Gpe=gi.safeSrc=[],ce=gi.t={},zpe=0,RB="[a-zA-Z0-9-]",Hpe=[["\\s",1],["\\d",Mpe],[RB,Upe]],qpe=e=>{for(let[t,n]of Hpe)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},Ge=(e,t,n)=>{let s=qpe(t),r=zpe++;Lpe(e,r,t),ce[e]=r,ae[r]=t,Gpe[r]=s,jpe[r]=new RegExp(t,n?"g":void 0),Vpe[r]=new RegExp(s,n?"g":void 0)};Ge("NUMERICIDENTIFIER","0|[1-9]\\d*");Ge("NUMERICIDENTIFIERLOOSE","\\d+");Ge("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${RB}*`);Ge("MAINVERSION",`(${ae[ce.NUMERICIDENTIFIER]})\\.(${ae[ce.NUMERICIDENTIFIER]})\\.(${ae[ce.NUMERICIDENTIFIER]})`);Ge("MAINVERSIONLOOSE",`(${ae[ce.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ce.NUMERICIDENTIFIERLOOSE]})\\.(${ae[ce.NUMERICIDENTIFIERLOOSE]})`);Ge("PRERELEASEIDENTIFIER",`(?:${ae[ce.NONNUMERICIDENTIFIER]}|${ae[ce.NUMERICIDENTIFIER]})`);Ge("PRERELEASEIDENTIFIERLOOSE",`(?:${ae[ce.NONNUMERICIDENTIFIER]}|${ae[ce.NUMERICIDENTIFIERLOOSE]})`);Ge("PRERELEASE",`(?:-(${ae[ce.PRERELEASEIDENTIFIER]}(?:\\.${ae[ce.PRERELEASEIDENTIFIER]})*))`);Ge("PRERELEASELOOSE",`(?:-?(${ae[ce.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ae[ce.PRERELEASEIDENTIFIERLOOSE]})*))`);Ge("BUILDIDENTIFIER",`${RB}+`);Ge("BUILD",`(?:\\+(${ae[ce.BUILDIDENTIFIER]}(?:\\.${ae[ce.BUILDIDENTIFIER]})*))`);Ge("FULLPLAIN",`v?${ae[ce.MAINVERSION]}${ae[ce.PRERELEASE]}?${ae[ce.BUILD]}?`);Ge("FULL",`^${ae[ce.FULLPLAIN]}$`);Ge("LOOSEPLAIN",`[v=\\s]*${ae[ce.MAINVERSIONLOOSE]}${ae[ce.PRERELEASELOOSE]}?${ae[ce.BUILD]}?`);Ge("LOOSE",`^${ae[ce.LOOSEPLAIN]}$`);Ge("GTLT","((?:<|>)?=?)");Ge("XRANGEIDENTIFIERLOOSE",`${ae[ce.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ge("XRANGEIDENTIFIER",`${ae[ce.NUMERICIDENTIFIER]}|x|X|\\*`);Ge("XRANGEPLAIN",`[v=\\s]*(${ae[ce.XRANGEIDENTIFIER]})(?:\\.(${ae[ce.XRANGEIDENTIFIER]})(?:\\.(${ae[ce.XRANGEIDENTIFIER]})(?:${ae[ce.PRERELEASE]})?${ae[ce.BUILD]}?)?)?`);Ge("XRANGEPLAINLOOSE",`[v=\\s]*(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ae[ce.XRANGEIDENTIFIERLOOSE]})(?:${ae[ce.PRERELEASELOOSE]})?${ae[ce.BUILD]}?)?)?`);Ge("XRANGE",`^${ae[ce.GTLT]}\\s*${ae[ce.XRANGEPLAIN]}$`);Ge("XRANGELOOSE",`^${ae[ce.GTLT]}\\s*${ae[ce.XRANGEPLAINLOOSE]}$`);Ge("COERCEPLAIN",`(^|[^\\d])(\\d{1,${kB}})(?:\\.(\\d{1,${kB}}))?(?:\\.(\\d{1,${kB}}))?`);Ge("COERCE",`${ae[ce.COERCEPLAIN]}(?:$|[^\\d])`);Ge("COERCEFULL",ae[ce.COERCEPLAIN]+`(?:${ae[ce.PRERELEASE]})?(?:${ae[ce.BUILD]})?(?:$|[^\\d])`);Ge("COERCERTL",ae[ce.COERCE],!0);Ge("COERCERTLFULL",ae[ce.COERCEFULL],!0);Ge("LONETILDE","(?:~>?)");Ge("TILDETRIM",`(\\s*)${ae[ce.LONETILDE]}\\s+`,!0);gi.tildeTrimReplace="$1~";Ge("TILDE",`^${ae[ce.LONETILDE]}${ae[ce.XRANGEPLAIN]}$`);Ge("TILDELOOSE",`^${ae[ce.LONETILDE]}${ae[ce.XRANGEPLAINLOOSE]}$`);Ge("LONECARET","(?:\\^)");Ge("CARETTRIM",`(\\s*)${ae[ce.LONECARET]}\\s+`,!0);gi.caretTrimReplace="$1^";Ge("CARET",`^${ae[ce.LONECARET]}${ae[ce.XRANGEPLAIN]}$`);Ge("CARETLOOSE",`^${ae[ce.LONECARET]}${ae[ce.XRANGEPLAINLOOSE]}$`);Ge("COMPARATORLOOSE",`^${ae[ce.GTLT]}\\s*(${ae[ce.LOOSEPLAIN]})$|^$`);Ge("COMPARATOR",`^${ae[ce.GTLT]}\\s*(${ae[ce.FULLPLAIN]})$|^$`);Ge("COMPARATORTRIM",`(\\s*)${ae[ce.GTLT]}\\s*(${ae[ce.LOOSEPLAIN]}|${ae[ce.XRANGEPLAIN]})`,!0);gi.comparatorTrimReplace="$1$2$3";Ge("HYPHENRANGE",`^\\s*(${ae[ce.XRANGEPLAIN]})\\s+-\\s+(${ae[ce.XRANGEPLAIN]})\\s*$`);Ge("HYPHENRANGELOOSE",`^\\s*(${ae[ce.XRANGEPLAINLOOSE]})\\s+-\\s+(${ae[ce.XRANGEPLAINLOOSE]})\\s*$`);Ge("STAR","(<|>)?=?\\s*\\*");Ge("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ge("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var DE=T((f_e,R2)=>{"use strict";var Jpe=Object.freeze({loose:!0}),Wpe=Object.freeze({}),Ype=e=>e?typeof e!="object"?Jpe:e:Wpe;R2.exports=Ype});var BB=T((h_e,$2)=>{"use strict";var B2=/^[0-9]+$/,x2=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=B2.test(e),s=B2.test(t);return n&&s&&(e=+e,t=+t),e===t?0:n&&!s?-1:s&&!n?1:e<t?-1:1},Zpe=(e,t)=>x2(t,e);$2.exports={compareIdentifiers:x2,rcompareIdentifiers:Zpe}});var Cn=T((g_e,Q2)=>{"use strict";var NE=ph(),{MAX_LENGTH:T2,MAX_SAFE_INTEGER:PE}=Xl(),{safeRe:OE,t:FE}=ed(),Kpe=DE(),{compareIdentifiers:xB}=BB(),Xpe=(e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let s=0;s<n.length;s++)if(xB(e[s],n[s])!==0)return!1;return!0},$B=class e{constructor(t,n){if(n=Kpe(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>T2)throw new TypeError(`version is longer than ${T2} characters`);NE("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let s=t.trim().match(n.loose?OE[FE.LOOSE]:OE[FE.FULL]);if(!s)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>PE||this.major<0)throw new TypeError("Invalid major version");if(this.minor>PE||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>PE||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let i=+r;if(i>=0&&i<PE)return i}return r}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(NE("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let s=this.prerelease[n],r=t.prerelease[n];if(NE("prerelease compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return xB(s,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let s=this.build[n],r=t.build[n];if(NE("build compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return xB(s,r)}while(++n)}inc(t,n,s){if(t.startsWith("pre")){if(!n&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?OE[FE.PRERELEASELOOSE]:OE[FE.PRERELEASE]);if(!r||r[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,s),this.inc("pre",n,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,s),this.inc("pre",n,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let i=[n,r];if(s===!1&&(i=[n]),Xpe(this.prerelease,n)){let o=this.prerelease[n.split(".").length];isNaN(o)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Q2.exports=$B});var aa=T((m_e,D2)=>{"use strict";var _2=Cn(),efe=(e,t,n=!1)=>{if(e instanceof _2)return e;try{return new _2(e,t)}catch(s){if(!n)return null;throw s}};D2.exports=efe});var P2=T((A_e,N2)=>{"use strict";var tfe=aa(),nfe=(e,t)=>{let n=tfe(e,t);return n?n.version:null};N2.exports=nfe});var F2=T((y_e,O2)=>{"use strict";var rfe=aa(),sfe=(e,t)=>{let n=rfe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};O2.exports=sfe});var L2=T((E_e,M2)=>{"use strict";var U2=Cn(),ife=(e,t,n,s,r)=>{typeof n=="string"&&(r=s,s=n,n=void 0);try{return new U2(e instanceof U2?e.version:e,n).inc(t,s,r).version}catch{return null}};M2.exports=ife});var G2=T((v_e,V2)=>{"use strict";var j2=aa(),ofe=(e,t)=>{let n=j2(e,null,!0),s=j2(t,null,!0),r=n.compare(s);if(r===0)return null;let i=r>0,o=i?n:s,a=i?s:n,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let d=c?"pre":"";return n.major!==s.major?d+"major":n.minor!==s.minor?d+"minor":n.patch!==s.patch?d+"patch":"prerelease"};V2.exports=ofe});var H2=T((b_e,z2)=>{"use strict";var afe=Cn(),cfe=(e,t)=>new afe(e,t).major;z2.exports=cfe});var J2=T((w_e,q2)=>{"use strict";var ufe=Cn(),lfe=(e,t)=>new ufe(e,t).minor;q2.exports=lfe});var Y2=T((I_e,W2)=>{"use strict";var dfe=Cn(),pfe=(e,t)=>new dfe(e,t).patch;W2.exports=pfe});var K2=T((C_e,Z2)=>{"use strict";var ffe=aa(),hfe=(e,t)=>{let n=ffe(e,t);return n&&n.prerelease.length?n.prerelease:null};Z2.exports=hfe});var ps=T((S_e,eH)=>{"use strict";var X2=Cn(),gfe=(e,t,n)=>new X2(e,n).compare(new X2(t,n));eH.exports=gfe});var nH=T((k_e,tH)=>{"use strict";var mfe=ps(),Afe=(e,t,n)=>mfe(t,e,n);tH.exports=Afe});var sH=T((R_e,rH)=>{"use strict";var yfe=ps(),Efe=(e,t)=>yfe(e,t,!0);rH.exports=Efe});var UE=T((B_e,oH)=>{"use strict";var iH=Cn(),vfe=(e,t,n)=>{let s=new iH(e,n),r=new iH(t,n);return s.compare(r)||s.compareBuild(r)};oH.exports=vfe});var cH=T((x_e,aH)=>{"use strict";var bfe=UE(),wfe=(e,t)=>e.sort((n,s)=>bfe(n,s,t));aH.exports=wfe});var lH=T(($_e,uH)=>{"use strict";var Ife=UE(),Cfe=(e,t)=>e.sort((n,s)=>Ife(s,n,t));uH.exports=Cfe});var fh=T((T_e,dH)=>{"use strict";var Sfe=ps(),kfe=(e,t,n)=>Sfe(e,t,n)>0;dH.exports=kfe});var ME=T((Q_e,pH)=>{"use strict";var Rfe=ps(),Bfe=(e,t,n)=>Rfe(e,t,n)<0;pH.exports=Bfe});var TB=T((__e,fH)=>{"use strict";var xfe=ps(),$fe=(e,t,n)=>xfe(e,t,n)===0;fH.exports=$fe});var QB=T((D_e,hH)=>{"use strict";var Tfe=ps(),Qfe=(e,t,n)=>Tfe(e,t,n)!==0;hH.exports=Qfe});var LE=T((N_e,gH)=>{"use strict";var _fe=ps(),Dfe=(e,t,n)=>_fe(e,t,n)>=0;gH.exports=Dfe});var jE=T((P_e,mH)=>{"use strict";var Nfe=ps(),Pfe=(e,t,n)=>Nfe(e,t,n)<=0;mH.exports=Pfe});var _B=T((O_e,AH)=>{"use strict";var Ofe=TB(),Ffe=QB(),Ufe=fh(),Mfe=LE(),Lfe=ME(),jfe=jE(),Vfe=(e,t,n,s)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return Ofe(e,n,s);case"!=":return Ffe(e,n,s);case">":return Ufe(e,n,s);case">=":return Mfe(e,n,s);case"<":return Lfe(e,n,s);case"<=":return jfe(e,n,s);default:throw new TypeError(`Invalid operator: ${t}`)}};AH.exports=Vfe});var EH=T((F_e,yH)=>{"use strict";var Gfe=Cn(),zfe=aa(),{safeRe:VE,t:GE}=ed(),Hfe=(e,t)=>{if(e instanceof Gfe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?VE[GE.COERCEFULL]:VE[GE.COERCE]);else{let c=t.includePrerelease?VE[GE.COERCERTLFULL]:VE[GE.COERCERTL],u;for(;(u=c.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(n===null)return null;let s=n[2],r=n[3]||"0",i=n[4]||"0",o=t.includePrerelease&&n[5]?`-${n[5]}`:"",a=t.includePrerelease&&n[6]?`+${n[6]}`:"";return zfe(`${s}.${r}.${i}${o}${a}`,t)};yH.exports=Hfe});var bH=T((U_e,vH)=>{"use strict";var qfe=aa(),Jfe=Xl(),Wfe=Cn(),Yfe=(e,t,n)=>{if(!Jfe.RELEASE_TYPES.includes(t))return null;let s=Zfe(e,n);return s&&Kfe(s,t)},Zfe=(e,t)=>{let n=e instanceof Wfe?e.version:e;return qfe(n,t)},Kfe=(e,t)=>{if(Xfe(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},Xfe=e=>e.startsWith("pre");vH.exports=Yfe});var IH=T((M_e,wH)=>{"use strict";var DB=class{constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let r=this.map.keys().next().value;this.delete(r)}this.map.set(t,n)}return this}};wH.exports=DB});var fs=T((L_e,RH)=>{"use strict";var ehe=/\s+/g,NB=class e{constructor(t,n){if(n=nhe(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof PB)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(ehe," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(r=>!SH(r[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&dhe(r[0])){this.set=[r];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let n=this.set[t];for(let s=0;s<n.length;s++)s>0&&(this.formatted+=" "),this.formatted+=n[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(lhe,"");let s=((this.options.includePrerelease&&che)|(this.options.loose&&uhe))+":"+t,r=CH.get(s);if(r)return r;let i=this.options.loose,o=i?er[Sn.HYPHENRANGELOOSE]:er[Sn.HYPHENRANGE];t=t.replace(o,whe(this.options.includePrerelease)),Nt("hyphen replace",t),t=t.replace(er[Sn.COMPARATORTRIM],ihe),Nt("comparator trim",t),t=t.replace(er[Sn.TILDETRIM],ohe),Nt("tilde trim",t),t=t.replace(er[Sn.CARETTRIM],ahe),Nt("caret trim",t);let a=t.split(" ").map(p=>phe(p,this.options)).join(" ").split(/\s+/).map(p=>bhe(p,this.options));i&&(a=a.filter(p=>(Nt("loose invalid filter",p,this.options),!!p.match(er[Sn.COMPARATORLOOSE])))),Nt("range list",a);let c=new Map,u=a.map(p=>new PB(p,this.options));for(let p of u){if(SH(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return CH.set(s,d),d}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(s=>kH(s,n)&&t.set.some(r=>kH(r,n)&&s.every(i=>r.every(o=>i.intersects(o,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new rhe(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Ihe(this.set[n],t,this.options))return!0;return!1}};RH.exports=NB;var the=IH(),CH=new the,nhe=DE(),PB=hh(),Nt=ph(),rhe=Cn(),{safeRe:er,src:she,t:Sn,comparatorTrimReplace:ihe,tildeTrimReplace:ohe,caretTrimReplace:ahe}=ed(),{FLAG_INCLUDE_PRERELEASE:che,FLAG_LOOSE:uhe}=Xl(),lhe=new RegExp(she[Sn.BUILD],"g"),SH=e=>e.value==="<0.0.0-0",dhe=e=>e.value==="",kH=(e,t)=>{let n=!0,s=e.slice(),r=s.pop();for(;n&&s.length;)n=s.every(i=>r.intersects(i,t)),r=s.pop();return n},phe=(e,t)=>(e=e.replace(er[Sn.BUILD],""),Nt("comp",e,t),e=mhe(e,t),Nt("caret",e),e=hhe(e,t),Nt("tildes",e),e=yhe(e,t),Nt("xrange",e),e=vhe(e,t),Nt("stars",e),e),on=e=>!e||e.toLowerCase()==="x"||e==="*",fhe=(e,t,n)=>on(e)&&!on(t)||on(t)&&n&&!on(n),hhe=(e,t)=>e.trim().split(/\s+/).map(n=>ghe(n,t)).join(" "),ghe=(e,t)=>{let n=t.loose?er[Sn.TILDELOOSE]:er[Sn.TILDE],s=t.includePrerelease?"-0":"";return e.replace(n,(r,i,o,a,c)=>{Nt("tilde",e,r,i,o,a,c);let u;return on(i)?u="":on(o)?u=`>=${i}.0.0${s} <${+i+1}.0.0-0`:on(a)?u=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:c?(Nt("replaceTilde pr",c),u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`):u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,Nt("tilde return",u),u})},mhe=(e,t)=>e.trim().split(/\s+/).map(n=>Ahe(n,t)).join(" "),Ahe=(e,t)=>{Nt("caret",e,t);let n=t.loose?er[Sn.CARETLOOSE]:er[Sn.CARET],s=t.includePrerelease?"-0":"";return e.replace(n,(r,i,o,a,c)=>{Nt("caret",e,r,i,o,a,c);let u;return on(i)?u="":on(o)?u=`>=${i}.0.0${s} <${+i+1}.0.0-0`:on(a)?i==="0"?u=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${s} <${+i+1}.0.0-0`:c?(Nt("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(Nt("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),Nt("caret return",u),u})},yhe=(e,t)=>(Nt("replaceXRanges",e,t),e.split(/\s+/).map(n=>Ehe(n,t)).join(" ")),Ehe=(e,t)=>{e=e.trim();let n=t.loose?er[Sn.XRANGELOOSE]:er[Sn.XRANGE];return e.replace(n,(s,r,i,o,a,c)=>{if(Nt("xRange",e,s,r,i,o,a,c),fhe(i,o,a))return e;let u=on(i),d=u||on(o),p=d||on(a),h=p;return r==="="&&h&&(r=""),c=t.includePrerelease?"-0":"",u?r===">"||r==="<"?s="<0.0.0-0":s="*":r&&h?(d&&(o=0),a=0,r===">"?(r=">=",d?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):r==="<="&&(r="<",d?i=+i+1:o=+o+1),r==="<"&&(c="-0"),s=`${r+i}.${o}.${a}${c}`):d?s=`>=${i}.0.0${c} <${+i+1}.0.0-0`:p&&(s=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Nt("xRange return",s),s})},vhe=(e,t)=>(Nt("replaceStars",e,t),e.trim().replace(er[Sn.STAR],"")),bhe=(e,t)=>(Nt("replaceGTE0",e,t),e.trim().replace(er[t.includePrerelease?Sn.GTE0PRE:Sn.GTE0],"")),whe=e=>(t,n,s,r,i,o,a,c,u,d,p,h)=>(on(s)?n="":on(r)?n=`>=${s}.0.0${e?"-0":""}`:on(i)?n=`>=${s}.${r}.0${e?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,on(u)?c="":on(d)?c=`<${+u+1}.0.0-0`:on(p)?c=`<${u}.${+d+1}.0-0`:h?c=`<=${u}.${d}.${p}-${h}`:e?c=`<${u}.${d}.${+p+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),Ihe=(e,t,n)=>{for(let s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let s=0;s<e.length;s++)if(Nt(e[s].semver),e[s].semver!==PB.ANY&&e[s].semver.prerelease.length>0){let r=e[s].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}});var hh=T((j_e,_H)=>{"use strict";var gh=Symbol("SemVer ANY"),UB=class e{static get ANY(){return gh}constructor(t,n){if(n=BH(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),FB("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===gh?this.value="":this.value=this.operator+this.semver.version,FB("comp",this)}parse(t){let n=this.options.loose?xH[$H.COMPARATORLOOSE]:xH[$H.COMPARATOR],s=t.match(n);if(!s)throw new TypeError(`Invalid comparator: ${t}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new TH(s[2],this.options.loose):this.semver=gh}toString(){return this.value}test(t){if(FB("Comparator.test",t,this.options.loose),this.semver===gh||t===gh)return!0;if(typeof t=="string")try{t=new TH(t,this.options)}catch{return!1}return OB(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new QH(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new QH(this.value,n).test(t.semver):(n=BH(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||OB(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||OB(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};_H.exports=UB;var BH=DE(),{safeRe:xH,t:$H}=ed(),OB=_B(),FB=ph(),TH=Cn(),QH=fs()});var mh=T((V_e,DH)=>{"use strict";var Che=fs(),She=(e,t,n)=>{try{t=new Che(t,n)}catch{return!1}return t.test(e)};DH.exports=She});var PH=T((G_e,NH)=>{"use strict";var khe=fs(),Rhe=(e,t)=>new khe(e,t).set.map(n=>n.map(s=>s.value).join(" ").trim().split(" "));NH.exports=Rhe});var FH=T((z_e,OH)=>{"use strict";var Bhe=Cn(),xhe=fs(),$he=(e,t,n)=>{let s=null,r=null,i=null;try{i=new xhe(t,n)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||r.compare(o)===-1)&&(s=o,r=new Bhe(s,n))}),s};OH.exports=$he});var MH=T((H_e,UH)=>{"use strict";var The=Cn(),Qhe=fs(),_he=(e,t,n)=>{let s=null,r=null,i=null;try{i=new Qhe(t,n)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||r.compare(o)===1)&&(s=o,r=new The(s,n))}),s};UH.exports=_he});var VH=T((q_e,jH)=>{"use strict";var MB=Cn(),Dhe=fs(),LH=fh(),Nhe=(e,t)=>{e=new Dhe(e,t);let n=new MB("0.0.0");if(e.test(n)||(n=new MB("0.0.0-0"),e.test(n)))return n;n=null;for(let s=0;s<e.set.length;++s){let r=e.set[s],i=null;r.forEach(o=>{let a=new MB(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||LH(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||LH(n,i))&&(n=i)}return n&&e.test(n)?n:null};jH.exports=Nhe});var zH=T((J_e,GH)=>{"use strict";var Phe=fs(),Ohe=(e,t)=>{try{return new Phe(e,t).range||"*"}catch{return null}};GH.exports=Ohe});var zE=T((W_e,WH)=>{"use strict";var Fhe=Cn(),JH=hh(),{ANY:Uhe}=JH,Mhe=fs(),Lhe=mh(),HH=fh(),qH=ME(),jhe=jE(),Vhe=LE(),Ghe=(e,t,n,s)=>{e=new Fhe(e,s),t=new Mhe(t,s);let r,i,o,a,c;switch(n){case">":r=HH,i=jhe,o=qH,a=">",c=">=";break;case"<":r=qH,i=Vhe,o=HH,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Lhe(e,t,s))return!1;for(let u=0;u<t.set.length;++u){let d=t.set[u],p=null,h=null;if(d.forEach(g=>{g.semver===Uhe&&(g=new JH(">=0.0.0")),p=p||g,h=h||g,r(g.semver,p.semver,s)?p=g:o(g.semver,h.semver,s)&&(h=g)}),p.operator===a||p.operator===c||(!h.operator||h.operator===a)&&i(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};WH.exports=Ghe});var ZH=T((Y_e,YH)=>{"use strict";var zhe=zE(),Hhe=(e,t,n)=>zhe(e,t,">",n);YH.exports=Hhe});var XH=T((Z_e,KH)=>{"use strict";var qhe=zE(),Jhe=(e,t,n)=>qhe(e,t,"<",n);KH.exports=Jhe});var nq=T((K_e,tq)=>{"use strict";var eq=fs(),Whe=(e,t,n)=>(e=new eq(e,n),t=new eq(t,n),e.intersects(t,n));tq.exports=Whe});var sq=T((X_e,rq)=>{"use strict";var Yhe=mh(),Zhe=ps();rq.exports=(e,t,n)=>{let s=[],r=null,i=null,o=e.sort((d,p)=>Zhe(d,p,n));for(let d of o)Yhe(d,t,n)?(i=d,r||(r=d)):(i&&s.push([r,i]),i=null,r=null);r&&s.push([r,null]);let a=[];for(let[d,p]of s)d===p?a.push(d):!p&&d===o[0]?a.push("*"):p?d===o[0]?a.push(`<=${p}`):a.push(`${d} - ${p}`):a.push(`>=${d}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var lq=T((eDe,uq)=>{"use strict";var iq=fs(),VB=hh(),{ANY:LB}=VB,jB=mh(),GB=ps(),Khe=(e,t,n={})=>{if(e===t)return!0;e=new iq(e,n),t=new iq(t,n);let s=!1;e:for(let r of e.set){for(let i of t.set){let o=ege(r,i,n);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},Xhe=[new VB(">=0.0.0-0")],oq=[new VB(">=0.0.0")],ege=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===LB){if(t.length===1&&t[0].semver===LB)return!0;n.includePrerelease?e=Xhe:e=oq}if(t.length===1&&t[0].semver===LB){if(n.includePrerelease)return!0;t=oq}let s=new Set,r,i;for(let g of e)g.operator===">"||g.operator===">="?r=aq(r,g,n):g.operator==="<"||g.operator==="<="?i=cq(i,g,n):s.add(g.semver);if(s.size>1)return null;let o;if(r&&i){if(o=GB(r.semver,i.semver,n),o>0)return null;if(o===0&&(r.operator!==">="||i.operator!=="<="))return null}for(let g of s){if(r&&!jB(g,String(r),n)||i&&!jB(g,String(i),n))return null;for(let m of t)if(!jB(g,String(m),n))return!1;return!0}let a,c,u,d,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,h=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let g of t){if(d=d||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator===">"||g.operator===">="){if(a=aq(r,g,n),a===g&&a!==r)return!1}else if(r.operator===">="&&!g.test(r.semver))return!1}if(i){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator==="<"||g.operator==="<="){if(c=cq(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!g.test(i.semver))return!1}if(!g.operator&&(i||r)&&o!==0)return!1}return!(r&&u&&!i&&o!==0||i&&d&&!r&&o!==0||h||p)},aq=(e,t,n)=>{if(!e)return t;let s=GB(e.semver,t.semver,n);return s>0?e:s<0||t.operator===">"&&e.operator===">="?t:e},cq=(e,t,n)=>{if(!e)return t;let s=GB(e.semver,t.semver,n);return s<0?e:s>0||t.operator==="<"&&e.operator==="<="?t:e};uq.exports=Khe});var HB=T((tDe,fq)=>{"use strict";var zB=ed(),dq=Xl(),tge=Cn(),pq=BB(),nge=aa(),rge=P2(),sge=F2(),ige=L2(),oge=G2(),age=H2(),cge=J2(),uge=Y2(),lge=K2(),dge=ps(),pge=nH(),fge=sH(),hge=UE(),gge=cH(),mge=lH(),Age=fh(),yge=ME(),Ege=TB(),vge=QB(),bge=LE(),wge=jE(),Ige=_B(),Cge=EH(),Sge=bH(),kge=hh(),Rge=fs(),Bge=mh(),xge=PH(),$ge=FH(),Tge=MH(),Qge=VH(),_ge=zH(),Dge=zE(),Nge=ZH(),Pge=XH(),Oge=nq(),Fge=sq(),Uge=lq();fq.exports={parse:nge,valid:rge,clean:sge,inc:ige,diff:oge,major:age,minor:cge,patch:uge,prerelease:lge,compare:dge,rcompare:pge,compareLoose:fge,compareBuild:hge,sort:gge,rsort:mge,gt:Age,lt:yge,eq:Ege,neq:vge,gte:bge,lte:wge,cmp:Ige,coerce:Cge,truncate:Sge,Comparator:kge,Range:Rge,satisfies:Bge,toComparators:xge,maxSatisfying:$ge,minSatisfying:Tge,minVersion:Qge,validRange:_ge,outside:Dge,gtr:Nge,ltr:Pge,intersects:Oge,simplifyRange:Fge,subset:Uge,SemVer:tge,re:zB.re,src:zB.src,tokens:zB.t,SEMVER_SPEC_VERSION:dq.SEMVER_SPEC_VERSION,RELEASE_TYPES:dq.RELEASE_TYPES,compareIdentifiers:pq.compareIdentifiers,rcompareIdentifiers:pq.rcompareIdentifiers}});var FRe={};Zr(FRe,{post:()=>s9});module.exports=l9(FRe);Dn();var r9=Y(require("path"));Dn();Dn();var Wk;(function(e){e.Pass="Pass",e.Fail="Fail",e.Error="Error",e.Skipped="Skipped",e.Unknown="Unknown"})(Wk||(Wk={}));var fV;(function(e){e.High="high",e.Medium="medium",e.Low="low"})(fV||(fV={}));var hV;(function(e){e.Skyramp="skyramp",e.External="external"})(hV||(hV={}));var Yk;(function(e){e.Update="UPDATE",e.Regenerate="REGENERATE",e.Delete="DELETE",e.Verify="VERIFY",e.Ignore="IGNORE"})(Yk||(Yk={}));var gV;(function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"})(gV||(gV={}));var we={};Zr(we,{BRAND:()=>Fce,DIRTY:()=>dc,EMPTY_PATH:()=>mce,INVALID:()=>Re,NEVER:()=>wue,OK:()=>Nn,ParseStatus:()=>bn,Schema:()=>Xe,ZodAny:()=>Lo,ZodArray:()=>Gi,ZodBigInt:()=>fc,ZodBoolean:()=>hc,ZodBranded:()=>mf,ZodCatch:()=>Sc,ZodDate:()=>gc,ZodDefault:()=>Cc,ZodDiscriminatedUnion:()=>ky,ZodEffects:()=>os,ZodEnum:()=>wc,ZodError:()=>fr,ZodFirstPartyTypeKind:()=>_e,ZodFunction:()=>By,ZodIntersection:()=>Ec,ZodIssueCode:()=>j,ZodLazy:()=>vc,ZodLiteral:()=>bc,ZodMap:()=>xl,ZodNaN:()=>Tl,ZodNativeEnum:()=>Ic,ZodNever:()=>xs,ZodNull:()=>Ac,ZodNullable:()=>si,ZodNumber:()=>pc,ZodObject:()=>hr,ZodOptional:()=>ss,ZodParsedType:()=>ie,ZodPipeline:()=>Af,ZodPromise:()=>jo,ZodReadonly:()=>kc,ZodRecord:()=>Ry,ZodSchema:()=>Xe,ZodSet:()=>$l,ZodString:()=>Mo,ZodSymbol:()=>Rl,ZodTransformer:()=>os,ZodTuple:()=>ri,ZodType:()=>Xe,ZodUndefined:()=>mc,ZodUnion:()=>yc,ZodUnknown:()=>Vi,ZodVoid:()=>Bl,addIssueToContext:()=>te,any:()=>qce,array:()=>Zce,bigint:()=>jce,boolean:()=>kV,coerce:()=>bue,custom:()=>IV,date:()=>Vce,datetimeRegex:()=>bV,defaultErrorMap:()=>Li,discriminatedUnion:()=>tue,effect:()=>fue,enum:()=>lue,function:()=>aue,getErrorMap:()=>Cl,getParsedType:()=>ni,instanceof:()=>Mce,intersection:()=>nue,isAborted:()=>Cy,isAsync:()=>Sl,isDirty:()=>Sy,isValid:()=>Uo,late:()=>Uce,lazy:()=>cue,literal:()=>uue,makeIssue:()=>gf,map:()=>iue,nan:()=>Lce,nativeEnum:()=>due,never:()=>Wce,null:()=>Hce,nullable:()=>gue,number:()=>SV,object:()=>Kce,objectUtil:()=>Zk,oboolean:()=>vue,onumber:()=>Eue,optional:()=>hue,ostring:()=>yue,pipeline:()=>Aue,preprocess:()=>mue,promise:()=>pue,quotelessJson:()=>fce,record:()=>sue,set:()=>oue,setErrorMap:()=>gce,strictObject:()=>Xce,string:()=>CV,symbol:()=>Gce,transformer:()=>fue,tuple:()=>rue,undefined:()=>zce,union:()=>eue,unknown:()=>Jce,util:()=>it,void:()=>Yce});var it;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let i={};for(let o of r)i[o]=o;return i},e.getValidEnumValues=r=>{let i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(let a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let i=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(let o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(it||(it={}));var Zk;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Zk||(Zk={}));var ie=it.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ni=e=>{switch(typeof e){case"undefined":return ie.undefined;case"string":return ie.string;case"number":return Number.isNaN(e)?ie.nan:ie.number;case"boolean":return ie.boolean;case"function":return ie.function;case"bigint":return ie.bigint;case"symbol":return ie.symbol;case"object":return Array.isArray(e)?ie.array:e===null?ie.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ie.promise:typeof Map<"u"&&e instanceof Map?ie.map:typeof Set<"u"&&e instanceof Set?ie.set:typeof Date<"u"&&e instanceof Date?ie.date:ie.object;default:return ie.unknown}};var j=it.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),fce=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),fr=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return r(this),s}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,it.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},s=[];for(let r of this.issues)if(r.path.length>0){let i=r.path[0];n[i]=n[i]||[],n[i].push(t(r))}else s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}};fr.create=e=>new fr(e);var hce=(e,t)=>{let n;switch(e.code){case j.invalid_type:e.received===ie.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case j.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,it.jsonStringifyReplacer)}`;break;case j.unrecognized_keys:n=`Unrecognized key(s) in object: ${it.joinValues(e.keys,", ")}`;break;case j.invalid_union:n="Invalid input";break;case j.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${it.joinValues(e.options)}`;break;case j.invalid_enum_value:n=`Invalid enum value. Expected ${it.joinValues(e.options)}, received '${e.received}'`;break;case j.invalid_arguments:n="Invalid function arguments";break;case j.invalid_return_type:n="Invalid function return type";break;case j.invalid_date:n="Invalid date";break;case j.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:it.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case j.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case j.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case j.custom:n="Invalid input";break;case j.invalid_intersection_types:n="Intersection results could not be merged";break;case j.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case j.not_finite:n="Number must be finite";break;default:n=t.defaultError,it.assertNever(e)}return{message:n}},Li=hce;var mV=Li;function gce(e){mV=e}function Cl(){return mV}var gf=e=>{let{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="",c=s.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},mce=[];function te(e,t){let n=Cl(),s=gf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Li?void 0:Li].filter(r=>!!r)});e.common.issues.push(s)}var bn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let s=[];for(let r of n){if(r.status==="aborted")return Re;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){let s=[];for(let r of n){let i=await r.key,o=await r.value;s.push({key:i,value:o})}return e.mergeObjectSync(t,s)}static mergeObjectSync(t,n){let s={};for(let r of n){let{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return Re;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}},Re=Object.freeze({status:"aborted"}),dc=e=>({status:"dirty",value:e}),Nn=e=>({status:"valid",value:e}),Cy=e=>e.status==="aborted",Sy=e=>e.status==="dirty",Uo=e=>e.status==="valid",Sl=e=>typeof Promise<"u"&&e instanceof Promise;var fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(fe||(fe={}));var is=class{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},AV=(e,t)=>{if(Uo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new fr(e.common.issues);return this._error=n,this._error}}};function ze(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??s??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:r}}var Xe=class{get description(){return this._def.description}_getType(t){return ni(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ni(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new bn,ctx:{common:t.parent.common,data:t.data,parsedType:ni(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Sl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){let s={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ni(t)},r=this._parseSync({data:t,path:s.path,parent:s});return AV(s,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ni(t)};if(!this["~standard"].async)try{let s=this._parseSync({data:t,path:[],parent:n});return Uo(s)?{value:s.value}:{issues:n.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>Uo(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){let s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){let s={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ni(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(Sl(r)?r:Promise.resolve(r));return AV(s,i)}refine(t,n){let s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{let o=t(r),a=()=>i.addIssue({code:j.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new os({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ss.create(this,this._def)}nullable(){return si.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Gi.create(this)}promise(){return jo.create(this,this._def)}or(t){return yc.create([this,t],this._def)}and(t){return Ec.create(this,t,this._def)}transform(t){return new os({...ze(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Cc({...ze(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new mf({typeName:_e.ZodBranded,type:this,...ze(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Sc({...ze(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Af.create(this,t)}readonly(){return kc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Ace=/^c[^\s-]{8,}$/i,yce=/^[0-9a-z]+$/,Ece=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vce=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bce=/^[a-z0-9_-]{21}$/i,wce=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Ice=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Cce=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Sce="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Kk,kce=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Rce=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Bce=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,xce=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$ce=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Tce=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,EV="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Qce=new RegExp(`^${EV}$`);function vV(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function _ce(e){return new RegExp(`^${vV(e)}$`)}function bV(e){let t=`${EV}T${vV(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Dce(e,t){return!!((t==="v4"||!t)&&kce.test(e)||(t==="v6"||!t)&&Bce.test(e))}function Nce(e,t){if(!wce.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function Pce(e,t){return!!((t==="v4"||!t)&&Rce.test(e)||(t==="v6"||!t)&&xce.test(e))}var Mo=class e extends Xe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ie.string){let i=this._getOrReturnCtx(t);return te(i,{code:j.invalid_type,expected:ie.string,received:i.parsedType}),Re}let s=new bn,r;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:j.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:j.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){let o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?te(r,{code:j.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&te(r,{code:j.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")Cce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"email",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")Kk||(Kk=new RegExp(Sce,"u")),Kk.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"emoji",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")vce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"uuid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")bce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"nanoid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")Ace.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")yce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid2",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")Ece.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ulid",code:j.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),te(r,{validation:"url",code:j.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"regex",code:j.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?bV(i).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?Qce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?_ce(i).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:j.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?Ice.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"duration",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?Dce(t.data,i.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ip",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?Nce(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"jwt",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?Pce(t.data,i.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cidr",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?$ce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64",code:j.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?Tce.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64url",code:j.invalid_string,message:i.message}),s.dirty()):it.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(r=>t.test(r),{validation:n,code:j.invalid_string,...fe.errToObj(s)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...fe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...fe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...fe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...fe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...fe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...fe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...fe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...fe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...fe.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...fe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...fe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...fe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...fe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...fe.errToObj(n)})}nonempty(t){return this.min(1,fe.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Mo.create=e=>new Mo({checks:[],typeName:_e.ZodString,coerce:e?.coerce??!1,...ze(e)});function Oce(e,t){let n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return i%o/10**r}var pc=class e extends Xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ie.number){let i=this._getOrReturnCtx(t);return te(i,{code:j.invalid_type,expected:ie.number,received:i.parsedType}),Re}let s,r=new bn;for(let i of this._def.checks)i.kind==="int"?it.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),te(s,{code:j.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?Oce(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),te(s,{code:j.not_finite,message:i.message}),r.dirty()):it.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:fe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:fe.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&it.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}};pc.create=e=>new pc({checks:[],typeName:_e.ZodNumber,coerce:e?.coerce||!1,...ze(e)});var fc=class e extends Xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ie.bigint)return this._getInvalidInput(t);let s,r=new bn;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),te(s,{code:j.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):it.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return te(n,{code:j.invalid_type,expected:ie.bigint,received:n.parsedType}),Re}gte(t,n){return this.setLimit("min",t,!0,fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,fe.toString(n))}setLimit(t,n,s,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:fe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:fe.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};fc.create=e=>new fc({checks:[],typeName:_e.ZodBigInt,coerce:e?.coerce??!1,...ze(e)});var hc=class extends Xe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ie.boolean){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.boolean,received:s.parsedType}),Re}return Nn(t.data)}};hc.create=e=>new hc({typeName:_e.ZodBoolean,coerce:e?.coerce||!1,...ze(e)});var gc=class e extends Xe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ie.date){let i=this._getOrReturnCtx(t);return te(i,{code:j.invalid_type,expected:ie.date,received:i.parsedType}),Re}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return te(i,{code:j.invalid_date}),Re}let s=new bn,r;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:j.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:j.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):it.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:fe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:fe.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};gc.create=e=>new gc({checks:[],coerce:e?.coerce||!1,typeName:_e.ZodDate,...ze(e)});var Rl=class extends Xe{_parse(t){if(this._getType(t)!==ie.symbol){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.symbol,received:s.parsedType}),Re}return Nn(t.data)}};Rl.create=e=>new Rl({typeName:_e.ZodSymbol,...ze(e)});var mc=class extends Xe{_parse(t){if(this._getType(t)!==ie.undefined){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.undefined,received:s.parsedType}),Re}return Nn(t.data)}};mc.create=e=>new mc({typeName:_e.ZodUndefined,...ze(e)});var Ac=class extends Xe{_parse(t){if(this._getType(t)!==ie.null){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.null,received:s.parsedType}),Re}return Nn(t.data)}};Ac.create=e=>new Ac({typeName:_e.ZodNull,...ze(e)});var Lo=class extends Xe{constructor(){super(...arguments),this._any=!0}_parse(t){return Nn(t.data)}};Lo.create=e=>new Lo({typeName:_e.ZodAny,...ze(e)});var Vi=class extends Xe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Nn(t.data)}};Vi.create=e=>new Vi({typeName:_e.ZodUnknown,...ze(e)});var xs=class extends Xe{_parse(t){let n=this._getOrReturnCtx(t);return te(n,{code:j.invalid_type,expected:ie.never,received:n.parsedType}),Re}};xs.create=e=>new xs({typeName:_e.ZodNever,...ze(e)});var Bl=class extends Xe{_parse(t){if(this._getType(t)!==ie.undefined){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.void,received:s.parsedType}),Re}return Nn(t.data)}};Bl.create=e=>new Bl({typeName:_e.ZodVoid,...ze(e)});var Gi=class e extends Xe{_parse(t){let{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==ie.array)return te(n,{code:j.invalid_type,expected:ie.array,received:n.parsedType}),Re;if(r.exactLength!==null){let o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(te(n,{code:o?j.too_big:j.too_small,minimum:a?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(te(n,{code:j.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(te(n,{code:j.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new is(n,o,n.path,a)))).then(o=>bn.mergeArray(s,o));let i=[...n.data].map((o,a)=>r.type._parseSync(new is(n,o,n.path,a)));return bn.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:fe.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:fe.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:fe.toString(n)}})}nonempty(t){return this.min(1,t)}};Gi.create=(e,t)=>new Gi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...ze(t)});function kl(e){if(e instanceof hr){let t={};for(let n in e.shape){let s=e.shape[n];t[n]=ss.create(kl(s))}return new hr({...e._def,shape:()=>t})}else return e instanceof Gi?new Gi({...e._def,type:kl(e.element)}):e instanceof ss?ss.create(kl(e.unwrap())):e instanceof si?si.create(kl(e.unwrap())):e instanceof ri?ri.create(e.items.map(t=>kl(t))):e}var hr=class e extends Xe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=it.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ie.object){let u=this._getOrReturnCtx(t);return te(u,{code:j.invalid_type,expected:ie.object,received:u.parsedType}),Re}let{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof xs&&this._def.unknownKeys==="strip"))for(let u in r.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let d=i[u],p=r.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new is(r,p,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof xs){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:r.data[d]}});else if(u==="strict")a.length>0&&(te(r,{code:j.unrecognized_keys,keys:a}),s.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of a){let p=r.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new is(r,p,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of c){let p=await d.key,h=await d.value;u.push({key:p,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>bn.mergeObjectSync(s,u)):bn.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return fe.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{let r=this._def.errorMap?.(n,s).message??s.defaultError;return n.code==="unrecognized_keys"?{message:fe.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let s of it.objectKeys(t))t[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let s of it.objectKeys(this.shape))t[s]||(n[s]=this.shape[s]);return new e({...this._def,shape:()=>n})}deepPartial(){return kl(this)}partial(t){let n={};for(let s of it.objectKeys(this.shape)){let r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let s of it.objectKeys(this.shape))if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof ss;)i=i._def.innerType;n[s]=i}return new e({...this._def,shape:()=>n})}keyof(){return wV(it.objectKeys(this.shape))}};hr.create=(e,t)=>new hr({shape:()=>e,unknownKeys:"strip",catchall:xs.create(),typeName:_e.ZodObject,...ze(t)});hr.strictCreate=(e,t)=>new hr({shape:()=>e,unknownKeys:"strict",catchall:xs.create(),typeName:_e.ZodObject,...ze(t)});hr.lazycreate=(e,t)=>new hr({shape:e,unknownKeys:"strip",catchall:xs.create(),typeName:_e.ZodObject,...ze(t)});var yc=class extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new fr(a.ctx.common.issues));return te(n,{code:j.invalid_union,unionErrors:o}),Re}if(n.common.async)return Promise.all(s.map(async i=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i,o=[];for(let c of s){let u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new fr(c));return te(n,{code:j.invalid_union,unionErrors:a}),Re}}get options(){return this._def.options}};yc.create=(e,t)=>new yc({options:e,typeName:_e.ZodUnion,...ze(t)});var ji=e=>e instanceof vc?ji(e.schema):e instanceof os?ji(e.innerType()):e instanceof bc?[e.value]:e instanceof wc?e.options:e instanceof Ic?it.objectValues(e.enum):e instanceof Cc?ji(e._def.innerType):e instanceof mc?[void 0]:e instanceof Ac?[null]:e instanceof ss?[void 0,...ji(e.unwrap())]:e instanceof si?[null,...ji(e.unwrap())]:e instanceof mf||e instanceof kc?ji(e.unwrap()):e instanceof Sc?ji(e._def.innerType):[],ky=class e extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.object)return te(n,{code:j.invalid_type,expected:ie.object,received:n.parsedType}),Re;let s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(te(n,{code:j.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){let r=new Map;for(let i of n){let o=ji(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new e({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...ze(s)})}};function Xk(e,t){let n=ni(e),s=ni(t);if(e===t)return{valid:!0,data:e};if(n===ie.object&&s===ie.object){let r=it.objectKeys(t),i=it.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(let a of i){let c=Xk(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===ie.array&&s===ie.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let i=0;i<e.length;i++){let o=e[i],a=t[i],c=Xk(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===ie.date&&s===ie.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Ec=class extends Xe{_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(Cy(i)||Cy(o))return Re;let a=Xk(i.value,o.value);return a.valid?((Sy(i)||Sy(o))&&n.dirty(),{status:n.value,value:a.data}):(te(s,{code:j.invalid_intersection_types}),Re)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}};Ec.create=(e,t,n)=>new Ec({left:e,right:t,typeName:_e.ZodIntersection,...ze(n)});var ri=class e extends Xe{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.array)return te(s,{code:j.invalid_type,expected:ie.array,received:s.parsedType}),Re;if(s.data.length<this._def.items.length)return te(s,{code:j.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&s.data.length>this._def.items.length&&(te(s,{code:j.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...s.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new is(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>bn.mergeArray(n,o)):bn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ri.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ri({items:e,typeName:_e.ZodTuple,rest:null,...ze(t)})};var Ry=class e extends Xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.object)return te(s,{code:j.invalid_type,expected:ie.object,received:s.parsedType}),Re;let r=[],i=this._def.keyType,o=this._def.valueType;for(let a in s.data)r.push({key:i._parse(new is(s,a,s.path,a)),value:o._parse(new is(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?bn.mergeObjectAsync(n,r):bn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof Xe?new e({keyType:t,valueType:n,typeName:_e.ZodRecord,...ze(s)}):new e({keyType:Mo.create(),valueType:t,typeName:_e.ZodRecord,...ze(n)})}},xl=class extends Xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.map)return te(s,{code:j.invalid_type,expected:ie.map,received:s.parsedType}),Re;let r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],u)=>({key:r._parse(new is(s,a,s.path,[u,"key"])),value:i._parse(new is(s,c,s.path,[u,"value"]))}));if(s.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return Re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return Re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}};xl.create=(e,t,n)=>new xl({valueType:t,keyType:e,typeName:_e.ZodMap,...ze(n)});var $l=class e extends Xe{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==ie.set)return te(s,{code:j.invalid_type,expected:ie.set,received:s.parsedType}),Re;let r=this._def;r.minSize!==null&&s.data.size<r.minSize.value&&(te(s,{code:j.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&s.data.size>r.maxSize.value&&(te(s,{code:j.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let i=this._def.valueType;function o(c){let u=new Set;for(let d of c){if(d.status==="aborted")return Re;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}let a=[...s.data.values()].map((c,u)=>i._parse(new is(s,c,s.path,u)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:fe.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:fe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};$l.create=(e,t)=>new $l({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...ze(t)});var By=class e extends Xe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.function)return te(n,{code:j.invalid_type,expected:ie.function,received:n.parsedType}),Re;function s(a,c){return gf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Cl(),Li].filter(u=>!!u),issueData:{code:j.invalid_arguments,argumentsError:c}})}function r(a,c){return gf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Cl(),Li].filter(u=>!!u),issueData:{code:j.invalid_return_type,returnTypeError:c}})}let i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof jo){let a=this;return Nn(async function(...c){let u=new fr([]),d=await a._def.args.parseAsync(c,i).catch(g=>{throw u.addIssue(s(c,g)),u}),p=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(p,i).catch(g=>{throw u.addIssue(r(p,g)),u})})}else{let a=this;return Nn(function(...c){let u=a._def.args.safeParse(c,i);if(!u.success)throw new fr([s(c,u.error)]);let d=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(d,i);if(!p.success)throw new fr([r(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ri.create(t).rest(Vi.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new e({args:t||ri.create([]).rest(Vi.create()),returns:n||Vi.create(),typeName:_e.ZodFunction,...ze(s)})}},vc=class extends Xe{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};vc.create=(e,t)=>new vc({getter:e,typeName:_e.ZodLazy,...ze(t)});var bc=class extends Xe{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return te(n,{received:n.data,code:j.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:t.data}}get value(){return this._def.value}};bc.create=(e,t)=>new bc({value:e,typeName:_e.ZodLiteral,...ze(t)});function wV(e,t){return new wc({values:e,typeName:_e.ZodEnum,...ze(t)})}var wc=class e extends Xe{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),s=this._def.values;return te(n,{expected:it.joinValues(s),received:n.parsedType,code:j.invalid_type}),Re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),s=this._def.values;return te(n,{received:n.data,code:j.invalid_enum_value,options:s}),Re}return Nn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}};wc.create=wV;var Ic=class extends Xe{_parse(t){let n=it.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==ie.string&&s.parsedType!==ie.number){let r=it.objectValues(n);return te(s,{expected:it.joinValues(r),received:s.parsedType,code:j.invalid_type}),Re}if(this._cache||(this._cache=new Set(it.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=it.objectValues(n);return te(s,{received:s.data,code:j.invalid_enum_value,options:r}),Re}return Nn(t.data)}get enum(){return this._def.values}};Ic.create=(e,t)=>new Ic({values:e,typeName:_e.ZodNativeEnum,...ze(t)});var jo=class extends Xe{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ie.promise&&n.common.async===!1)return te(n,{code:j.invalid_type,expected:ie.promise,received:n.parsedType}),Re;let s=n.parsedType===ie.promise?n.data:Promise.resolve(n.data);return Nn(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};jo.create=(e,t)=>new jo({type:e,typeName:_e.ZodPromise,...ze(t)});var os=class extends Xe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{te(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){let o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return Re;let c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?Re:c.status==="dirty"?dc(c.value):n.value==="dirty"?dc(c.value):c});{if(n.value==="aborted")return Re;let a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?Re:a.status==="dirty"?dc(a.value):n.value==="dirty"?dc(a.value):a}}if(r.type==="refinement"){let o=a=>{let c=r.refinement(a,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){let a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Re:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?Re:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){let o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Uo(o))return Re;let a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Uo(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):Re);it.assertNever(r)}};os.create=(e,t,n)=>new os({schema:e,typeName:_e.ZodEffects,effect:t,...ze(n)});os.createWithPreprocess=(e,t,n)=>new os({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...ze(n)});var ss=class extends Xe{_parse(t){return this._getType(t)===ie.undefined?Nn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ss.create=(e,t)=>new ss({innerType:e,typeName:_e.ZodOptional,...ze(t)});var si=class extends Xe{_parse(t){return this._getType(t)===ie.null?Nn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};si.create=(e,t)=>new si({innerType:e,typeName:_e.ZodNullable,...ze(t)});var Cc=class extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return n.parsedType===ie.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Cc.create=(e,t)=>new Cc({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ze(t)});var Sc=class extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Sl(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new fr(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new fr(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}};Sc.create=(e,t)=>new Sc({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ze(t)});var Tl=class extends Xe{_parse(t){if(this._getType(t)!==ie.nan){let s=this._getOrReturnCtx(t);return te(s,{code:j.invalid_type,expected:ie.nan,received:s.parsedType}),Re}return{status:"valid",value:t.data}}};Tl.create=e=>new Tl({typeName:_e.ZodNaN,...ze(e)});var Fce=Symbol("zod_brand"),mf=class extends Xe{_parse(t){let{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}},Af=class e extends Xe{_parse(t){let{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?Re:i.status==="dirty"?(n.dirty(),dc(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{let r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?Re:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new e({in:t,out:n,typeName:_e.ZodPipeline})}},kc=class extends Xe{_parse(t){let n=this._def.innerType._parse(t),s=r=>(Uo(r)&&(r.value=Object.freeze(r.value)),r);return Sl(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}};kc.create=(e,t)=>new kc({innerType:e,typeName:_e.ZodReadonly,...ze(t)});function yV(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function IV(e,t={},n){return e?Lo.create().superRefine((s,r)=>{let i=e(s);if(i instanceof Promise)return i.then(o=>{if(!o){let a=yV(t,s),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}});if(!i){let o=yV(t,s),a=o.fatal??n??!0;r.addIssue({code:"custom",...o,fatal:a})}}):Lo.create()}var Uce={object:hr.lazycreate},_e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));var Mce=(e,t={message:`Input not instance of ${e.name}`})=>IV(n=>n instanceof e,t),CV=Mo.create,SV=pc.create,Lce=Tl.create,jce=fc.create,kV=hc.create,Vce=gc.create,Gce=Rl.create,zce=mc.create,Hce=Ac.create,qce=Lo.create,Jce=Vi.create,Wce=xs.create,Yce=Bl.create,Zce=Gi.create,Kce=hr.create,Xce=hr.strictCreate,eue=yc.create,tue=ky.create,nue=Ec.create,rue=ri.create,sue=Ry.create,iue=xl.create,oue=$l.create,aue=By.create,cue=vc.create,uue=bc.create,lue=wc.create,due=Ic.create,pue=jo.create,fue=os.create,hue=ss.create,gue=si.create,mue=os.createWithPreprocess,Aue=Af.create,yue=()=>CV().optional(),Eue=()=>SV().optional(),vue=()=>kV().optional(),bue={string:(e=>Mo.create({...e,coerce:!0})),number:(e=>pc.create({...e,coerce:!0})),boolean:(e=>hc.create({...e,coerce:!0})),bigint:(e=>fc.create({...e,coerce:!0})),date:(e=>gc.create({...e,coerce:!0}))};var wue=Re;var RV=["playwright","pytest","robot","junit","vitest","jest","mocha","go","rspec","jasmine"];var BV="skyramp_session_storage.json";var eR;(function(e){e.PYTHON="python",e.TYPESCRIPT="typescript",e.JAVASCRIPT="javascript",e.JAVA="java"})(eR||(eR={}));var ii;(function(e){e.SMOKE="smoke",e.FUZZ="fuzz",e.CONTRACT="contract",e.LOAD="load",e.INTEGRATION="integration",e.E2E="e2e",e.UI="ui",e.UNIT="unit",e.UNKNOWN="unknown"})(ii||(ii={}));var Z$e=[ii.CONTRACT,ii.INTEGRATION,ii.E2E,ii.UI];var xV;(function(e){e.Rest="rest",e.Grpc="grpc",e.Kafka="kafka"})(xV||(xV={}));var xy;(function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e.OPTIONS="OPTIONS"})(xy||(xy={}));var yf;(function(e){e.LOCAL="local",e.DOCKER="docker",e.KUBERNETES="k8s"})(yf||(yf={}));var Iue=we.nativeEnum(yf),Cue=we.preprocess(e=>e==="kubernetes"?yf.KUBERNETES:e,Iue);var Sue=we.object({language:we.nativeEnum(eR).describe("Programming language for the generated test (default: python). Must be one of: python, typescript, javascript, java"),framework:we.string().describe(`Testing framework to use. Supported: ${RV.join(", ")} (e.g. pytest for python, playwright/vitest/jest for js/ts, junit for java).`)}),$V=we.object({...Sue.shape,deployDashboard:we.boolean().default(!1).describe("Whether to deploy the Skyramp dashboard for test monitoring"),runtime:Cue.default(yf.LOCAL).describe("Runtime environment (local, docker, or k8s; accepts kubernetes as an alias)"),dockerNetwork:we.string().default("").describe("Docker network name to use for containerized testing"),dockerWorkerPort:we.number().int().min(0).max(65535).default(0).describe("Port number for the Docker worker service"),k8sNamespace:we.string().default("").describe("Kubernetes namespace for deployment"),k8sConfig:we.string().default("").describe("Path to Kubernetes configuration file"),k8sContext:we.string().default("").describe("Kubernetes context to use"),authHeader:we.string().default("").describe("Name of the HTTP header that carries the auth credential. Common values: 'Authorization' (Bearer/Basic/Token auth), 'X-Api-Key', 'X-Auth-Token', 'Cookie'. Other accepted values: 'X-Access-Token', 'X-OAuth-Token', 'X-Client-ID', 'X-Client-Secret', 'X-Client-Token', 'X-GitHub-Token', 'X-Firebase-AppCheck', 'Proxy-Authorization', 'Fastly-Key', 'Heroku-Bearer'. Pass empty string to document an unauthenticated endpoint in the generated test's assertions. This is the header KEY name (e.g., 'X-Api-Key'), NOT the token value."),authScheme:we.string().default("").describe("Only for Authorization headers. The literal prefix before the token (e.g., 'Bearer' produces 'Authorization: Bearer <token>'). Common values: 'Bearer', 'Basic', 'Token'. If the API sends raw tokens with no prefix (e.g., 'Authorization: eyJ...'), leave empty or omit. Ignored when authHeader is not 'Authorization'."),insecure:we.boolean().default(!1).describe("Whether to allow insecure SSL connections for HTTPS endpoints"),output:we.string().optional().refine(e=>!e||e===""?!0:[".py",".ts",".js",".java"].some(n=>e.endsWith(n)),{message:"Output file must have one of these extensions: .py, .ts, .js, .java"}).describe("Name of the output test file. For Playwright, name the file the way the repository names its tests: read the test files already in outputDir and match their spelling. Use *.test.ts where they use it, *.spec.ts otherwise (e.g. contract_math_add.spec.ts, fuzz_orders.test.ts). For other frameworks (pytest, junit), standard extensions are fine (.py, .java). Optional \u2014 when omitted, Skyramp generates a default name."),outputDir:we.string().describe("MUST be absolute path to the directory where test files will be generated. If not provided, the CURRENT WORKING DIRECTORY will be used WITHOUT ANY SUBDIRECTORIES"),force:we.boolean().default(!0).describe("Whether to overwrite existing files in the output directory"),mockPort:we.number().int().min(0).max(65535).default(0).describe("Port number for the mock server"),optionalFields:we.boolean().default(!1).describe("Whether to include optional fields in the generated test/mock"),prompt:we.string().describe("The prompt user provided to generate the test")}),K$e=we.object({playwrightInput:we.string().describe("MUST be absolute path to the playwright input file like /path/to/playwright-ui-test.zip and MUST be a zip file captured using start_trace_collection tool"),playwrightStoragePath:we.string().optional().describe("Path to LOAD existing playwright session storage for trace collection with playwright enabled. THE PATH MUST BE AN ABSOLUTE PATH LIKE /Users/<path>/<filename>.json"),playwrightSaveStoragePath:we.string().optional().describe(`Path to SAVE Playwright session storage after trace collection. Omit this argument to use the default \u2014 \`${BV}\` resolved against the active outputDir, which produces an absolute path like '/abs/outputDir/${BV}'. SAVES authentication state (cookies, localStorage, sessionStorage) when the browser closes. To LOAD existing auth state, use playwrightStoragePath instead. Can be a bare filename (joined with outputDir), a relative path, or an absolute path.`),playwrightViewportSize:we.union([we.enum(["","hd","full-hd","2k"]),we.string().regex(/^\d+,\d+$/,"Custom viewport must be 'WIDTH,HEIGHT' format (e.g., '1920,1080')")]).default("").describe("Viewport size for playwright browser. THE VALUE MUST BE IN THE FORMAT ['', 'hd', 'full-hd', '2k', 'x,y' e.g. '1920,1080' for 1920x1080 resolution]. DEFAULT VALUE IS ''. If set to '', the browser will use its default viewport size."),browser:we.enum(["chromium","firefox","webkit"]).default("chromium").describe("Browser to use for Playwright trace collection. Supported browsers: 'chromium' (default), 'firefox', 'webkit'. Choose based on your testing requirements and target browser compatibility."),device:we.string().default("").describe("Device to emulate for Playwright trace collection. Supported devices include: 'iPhone 13', 'iPhone 13 Pro', 'Pixel 5', 'Galaxy S9+', 'iPad Pro', etc. Leave empty for no device emulation (desktop). Use specific device names for mobile/tablet testing.")}),X$e=we.object({trace:we.string().describe("Absolute path to the trace file in JSON format (e.g., /path/to/trace.json). Must use .json extension only. Do not use .jsonl files."),include:we.array(we.string()).default([]).describe("List of endpoints or patterns to include in test generation."),exclude:we.array(we.string()).default([]).describe("List of endpoints or patterns to exclude from test generation."),...$V.shape}),eTe={endpointURL:we.string().describe("The full endpoint URL to test including base URL and path (e.g., https://demoshop.skyramp.dev/api/v1/products). MUST include both the base URL and the endpoint path \u2014 never just the base URL alone."),method:we.union([we.nativeEnum(xy),we.literal("")]).default("").describe('HTTP method to use. DEFAULT: Use empty string ("") to test ALL available methods from OpenAPI schema (recommended). Only specify a specific method (GET, POST, PUT, DELETE, etc.) if user explicitly requests testing a single method only.'),apiSchema:we.string().default("").describe("MUST be absolute path(/path/to/openapi.json) to the OpenAPI/Swagger schema file or a URL to the OpenAPI/Swagger schema file(e.g. https://demoshop.skyramp.dev/openapi.json). DO NOT TRY TO ASSUME THE OPENAPI SCHEMA IF NOT PROVIDED. NOTE TO AI ASSISTANTS: You do not need to read the contents of this file - simply pass the file path as the backend will read and process it."),pathParams:we.string().default("").describe("Comma-separated path parameter values in the form 'key=value,key2=value2' (e.g., 'id=1,name=John'). DO NOT populate this field unless the user has explicitly provided path parameter values. For contract tests, parent path parameters are automatically handled via the parent provisioning mechanism (parentRequestData) \u2014 do NOT invent or guess values for those here. Only supply this field if the user explicitly states specific path parameter values to use."),queryParams:we.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for URL query parameters. Workspace-configured api.defaultQueryParams (if set) are merged in automatically, with any api.queryParamOverrides entry whose pathPattern matches this endpoint layered on top \u2014 no need to repeat them here. An explicit value for the same key here overrides both."),formParams:we.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for form data parameters"),requestData:we.string().default("").refine(e=>{if(!e||e===""||e.startsWith("@"))return!0;try{return JSON.parse(e),!0}catch{}let t=e.trim();return!!(t.startsWith("---")||/^\w[\w\s]*:/.test(t)||t.startsWith("-"))},{message:"requestData must be valid JSON, YAML, or an absolute file path prefixed with '@'. Received what appears to be plain text. Provide the actual request body as a JSON object."}).describe("Sample request body data, provided either as an inline JSON/YAML string or as an absolute file path prefixed with '@' (e.g., @/absolute/path/to/file). MUST be valid JSON or YAML \u2014 do NOT pass natural language descriptions."),responseStatusCode:we.string().default("").refine(e=>!e||/^[1-5]\d{2}$/.test(e),{message:"Must be a valid HTTP status code in 100-599 (e.g., '200', '404') or empty string"}).describe("Expected HTTP response status code (e.g., '200', '201', '404'). DO NOT ASSUME STATUS CODE IF NOT PROVIDED"),...$V.shape},tTe=we.object({codeReuse:we.boolean().default(!1).describe("Reuse existing code in the generated test \u2014 consolidates helper functions shared with sibling Skyramp-generated tests into a SkyrampUtils file; for TS/JS Playwright tests with POM reuse enabled it instead refactors the test to use the repo's existing Page Object Model"),modularizeCode:we.boolean().default(!1).describe("Whether to modularize the code")}),nTe=[ii.INTEGRATION,ii.CONTRACT,ii.UI];var $y;(function(e){e.Bug="bug",e.Lint="lint",e.Type="type",e.Config="config"})($y||($y={}));var Ty;(function(e){e.NotMapped="not-mapped",e.DemotedByVerify="demoted-by-verify"})(Ty||(Ty={}));var Qy;(function(e){e.Passed="passed",e.Failed="failed",e.SkippedNoPom="skipped-no-pom"})(Qy||(Qy={}));var tR;(function(e){e.Passed="passed",e.Failed="failed",e.NoUtilsFile="no-utils-file"})(tR||(tR={}));Dn();var _y=e=>`${e} POM call${e===1?"":"s"}`,TV=(e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,Dy={listSeparator:", ",testRecommendationsImplementedHeader:(e,t)=>`\u{1F4A1} Test Recommendations Implemented (${e} test${e===1?"":"s"}${t>e?`, ${t} cases`:""})`,testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:e=>`${_y(e)} reused and verified`,reusedThenVerified:(e,t)=>`${_y(e)} reused, ${t} of them verified`,reused:e=>`${_y(e)} reused`,verified:e=>`${_y(e)} verified`,unresolved:e=>`${e} not resolvable to POM source (informational, not declines)`,candidates:e=>`${e} candidate POM file${e===1?"":"s"} detected`,verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:e=>`kept inline: ${e}`,gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:e=>`\u2705 Test Maintenance (${e})`,maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:e=>`\u{1F9EA} Test Results (${e})`,columnVideo:"Video",videoDownloadLink:e=>`[\u{1F4F9} download](${e})`,videosArtifactFallback:e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F Issues Found (${e})`,configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:e=>e?"passed against the running app":"passed",notRun:e=>e?"not run against a live app this run":"not run this run",failedBug:e=>e?"failed against the running app":"failed",failedTest:e=>`failed \u2014 the test is at fault, not the app (${e})`,executedOf:(e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,noneExecuted:e=>e?"; none were executed against a live app this run.":"; none were executed this run.",staleResult:"From a run before this file's last change, not of the delivered test:"},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",missingSecret:e=>`The app could not be started this run: it needs ${e}, which this run had no value for. Nothing was tested against a live app.`,testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",findingsNotVerified:e=>`No test result confirms or refutes the suspected defects at ${e}.`,failedAlone:e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,missingCaseResults:(e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},recipeDrift:"The recorded way to start the app was out of date and had to be corrected before it would come up.",recipeNotSaved:"The repository had no saved way to start the app, so Testbot worked it out from the repository.",mockedDependency:e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,finalizeNotReady:e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,guardedEntryCi:(e,t)=>`${e} is Testbot's guarded entry for the Test Environment: CI runs it with \`node --test ${e}\` from a package that declares @skyramp/testbot-core ${t}. It makes no request to Testbot, so its CI job needs no \`id-token: write\` permission and no TESTBOT_POLICY_ORIGIN.`,ciUnconfirmed:e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,ciUnconfirmedAbsent:e=>`Testbot could not confirm that the repo's CI leaves out ${e}, which need services it does not start: check that CI does not run them.`,ciNotIntegrated:e=>`Not yet CI-integrated: ${e} need services the repo's CI does not start, so Testbot put them where CI does not run them. The CI notes say what to change to run them in CI.`,ciUnprovisioned:e=>`The repo's CI runs ${e} without starting what they need, so CI will fail on them until it starts those services.`,ciWithheld:e=>`Not in the tests PR: the repo's CI would run ${e} without starting what they need, which would fail CI. The CI notes say what to change to run them.`,ciResultsUnread:e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,browserSuiteReadOnly:(e,t)=>`${e} has a browser suite, but this run could not write there, so its ui tests are in ${t}.`,sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,lintNotRun:e=>`The repo's linter did not check the test files, so they were delivered unlinted: ${e}.`,analysisUnverified:e=>`Part of the change analysis could not be verified (${e} unresolved check${e===1?"":"s"}); the tests were planned treating those claims as unconfirmed.`,unitTestsNotRun:e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,componentsNotTested:e=>`Not tested: changed parts of the code the plan did not test. ${e}`,componentsWithoutReason:e=>`The plan gave no reason for leaving out: ${e}.`,targetNotesDeviation:e=>`Tests were not put where the Target notes say tests go: ${e}`,testSettingsDiffer:e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,stageSalvaged:(e,t)=>t.length===1?`The ${e} step kept what it had produced although its ${t[0]} check still failed after a repair, so treat that output as unconfirmed by it.`:`The ${e} step kept what it had produced although ${t.length} of its checks (${t.join(", ")}) still failed after a repair, so treat that output as unconfirmed by them.`,downstreamNotChecked:e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,browserBuildNotDeclared:(e,t,n)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${n}\` there.`,resultsNotOfDeliveredTests:e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,videoMissing:e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,testsCouldNotRunHere:(e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,modelProviderDenied:(e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,stageInterruptedByProvider:(e,t)=>`${t}, the model provider, interrupted the ${e} step. Testbot kept what that step had produced.`,planInterruptedByProvider:(e,t)=>`${e}, the model provider, interrupted planning. Testbot kept the plan it had and reports the test results it obtained.`+(t?" Please try again later.":""),modelProviderUnavailable:(e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`,dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:e=>`The agent's browser sent sign-in or sign-up requests: ${e}. The data-safety guard lets these through and does not delete what they create, for example a new account.`,dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:(e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,dataSafetyIsolationEnforced:()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.",playwrightNotRouted:(e,t)=>`Testbot sends Playwright's API request client (the request fixture, page.request and request.newContext) through its data-safety guard only for Playwright ${t}. This checkout has Playwright ${e}, so those requests could not reach the shared environment.`,dataSafetyIsolationRefused:"Some checks could not run with the shared-environment protection in place. Testbot did not run them without it.",dataSafetyProxyAuthCreates:e=>`The plan probes or the tests sent sign-in or sign-up requests: ${e}. The data-safety proxy lets these through and does not track what they create, for example a new account.`,dataSafetyGuardedProbes:"plan probes",dataSafetyGuardedTests:"test runs",dataSafetyAnd:" and ",dataSafetyCleanupConfirmed:"Testbot ran each test's declared cleanup, and each succeeded.",dataSafetyLeftRecords:e=>`These tests declare records they cannot delete from the shared environment: ${e}.`,dataSafetyCleanupFailed:e=>`The cleanup of ${e} failed: what they created may still be in the shared environment.`,dataSafetyCleanupUnknown:e=>`The cleanup of ${e} is not known: Testbot did not check their cleanup.`,dataSafetyKeptRecords:(e,t)=>`The tests kept these records in the shared environment under the permission to keep test data (environment ${e}, policy revision ${t})`},isolationReport:{rationale:"Testbot could not run this validation inside the shared-environment isolation it requires, so it did not validate the change.",gap:e=>`Shared-environment isolation unavailable: ${e}`,nextStep:"Fix what the gap names, then run the validation again.",nextStepPackageSource:"Run the validation again later, when the Ubuntu package source is available again. Nothing on this host or in the repository needs a change."},nextSteps:{componentMismatch:(e,t,n,s)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${s}, the commit this run validates.`,componentUnverified:(e,t,n,s)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${s}, the commit this run validates: it reports ${n}.`,componentUnread:(e,t,n)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${n}, the commit this run validates: it has no record of which commit that component runs.`,deployCommit:(e,t)=>`Deploy ${t} of ${e} to the Test Environment and run Testbot again: until it runs that commit, tests there do not validate this change.`,addSecret:(e,t)=>`Add ${t?"a secret":"secrets"} named ${e} on the workflow host, as a GitHub Actions secret or, on Azure DevOps, a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library. Then add ${t?"it":"them"} under Credentials on the Target's Setup page, and run Testbot again: a run's workflow passes Testbot only the Target's credentials, each from the workflow host's secret it is mapped to, and the app cannot start without ${t?"it":"them"}. Testbot does not make up a value.`},providerOutageHeadline:(e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,providerOutageActionStatusPage:e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,providerRateLimitHeadline:e=>`Testbot was rate-limited by ${e} (HTTP 429).`,providerRateLimitAction:"Wait for the limit to reset, then re-run this workflow from its run page in the Actions tab. If this repeats, raise the rate limit on the credential this workflow uses or run Testbot on fewer pull requests at once.",providerUsageLimitHeadline:e=>`The account behind ${e} has reached its usage limit.`,providerUsageLimitAction:"Raise the spend or token cap on the account behind this workflow's credential, then re-run this workflow from its run page in the Actions tab.",providerAuthExpiredHeadline:e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,providerAuthExpiredAction:"The credential is issued with a fixed lifetime, so a longer run can outlive it. Re-run this workflow from its run page in the Actions tab. If runs on this repository regularly last longer than that lifetime, issue the credential per job or split the run so each job stays inside it.",providerTimeoutHeadline:e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:e=>`Tests for source pull request ${e}`,validatedTogether:e=>`Pull requests validated together: ${e}`,requestedByPerson:e=>`Requested by ${e}`,requestedByPolicy:e=>`Started by the Validation Policy ${e}`,notTranslated:{"no-time":"> \u26A0\uFE0F This report is in English: no time was left to translate it.",failed:"> \u26A0\uFE0F This report is in English: the translation failed."},noLiveApp:e=>`> \u26A0\uFE0F **No live app (SUT) was available this run** \u2014 the ${e} test(s) below were **not executed** (there was no app to run them against). Run them against a running app to confirm they pass (and that any repro test fails as intended).`,unitTestsInFile:(e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:(e,t,n="")=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config.${n?` This run added it, with ${n}, installed in that package only.`:""} Run it with \`${t}\` while the app is running; to run it on every pull request, add that command to a CI job that has the app running.`,appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:(e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:(e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,testResultsHeader:"\u{1F9EA} Test Results",resultsTableHeader:"| Test ID | Test Type | Endpoint | Status | Details |",unitResultsTableHeader:"| Test ID | Test Type | Code under test | Test | Cases | Status | Details |",casesPassed:(e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:(e,t,n,s)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${s} executed)`,coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:(e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,requirementsTableHeader:"| Requirement | Clause | Tests | Result |",requirementsSummaryTableHeader:"| Requirement | Clauses passing | Not passing |",clauseStatuses:{},regressionGuard:" (regression guard)",caveatsHeader:"### \u26A0\uFE0F What This Run Could Not Prove",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F Run timed out \u2014 the results below are partial.",stopReasons:{},publishFailures:{},commitHook:e=>e?`${e} hook`:"commit hook",commitRefusedByHook:(e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,commitHookCouldNotRun:(e,t)=>`Your repository's ${e} could not run, so no Testbot PR was created: a command it calls is not installed on the runner. Hook error: \`${t}\`.`,maintenanceActions:{},stoppedEarly:(e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,viewInSkyramp:e=>` [View in Skyramp](${e})`,testsPr:{summaryHeader:"### Summary",targets:"The tests target:",moreItems:e=>`and ${e} more`,counts:(e,t)=>`${TV(e,"new")} and ${TV(t,"maintained")}.`,types:e=>`Test types: ${e}.`,statusHeader:"### Validation status",noChange:"\u2139\uFE0F Nothing changed since the baseline.",noTestRan:"No test ran, and no existing evidence was accepted.",noLiveApp:"No live app (SUT) was available, so the tests were not run.",resultCounts:(e,t,n)=>`Test results: ${e} passed, ${t} failed, ${n} not run.`,limitations:"Important failures and limitations:",verdict:e=>`The run's verdict is in [Run details](${e}).`,runningHeader:"### Running the tests",environment:e=>`The tests read these environment variables, which the job that runs them must set: ${e}.`,filesChanged:"Review each test in the **Files changed** tab."},descriptionCut:(e,t,n)=>`_\u2026 The rest is left out${t===void 0?", with more test results":t?`, with ${t} more test result${t===1?"":"s"}`:""}: Azure DevOps takes at most ${e} characters.${n?` [Full report](${n})`:""}_`,testsReplaced:(e,t,n)=>[t?`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}), commit \`${t}\`.`:`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}).`,n?`The tests of [the earlier run](${n}) are superseded.`:"The tests an earlier run wrote here are superseded."].join(" "),setupRunEnds:{finished:"Setup run finished. Skyramp is checking the result.",failed:"Setup run failed.",timedOut:"Setup run ran out of time.",cancelledInSkyramp:"Setup run was cancelled in Skyramp.",stoppedToResume:"Setup run stopped. Resume it in Skyramp."},appUnreachable:e=>`Unable to contact the mothership ${e}. Please try again later.`,couldNotStart:e=>`Skyramp Testbot could not start: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F This report was assembled automatically after the write-up step failed its checks; ${e} check(s) remain unmet \u2014 see the run log for details.`,testbotPrLine:(e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,viewRun:e=>`_[View run](${e})_`,testsPrNotOpened:(e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,testsNotDelivered:e=>`The tests could not be delivered: ${e}`,testsPinnedNotDelivered:(e,t,n)=>`${e}: ${t} ${t===1?"test":"tests"} written, ${n} maintained. The repository is pinned to a commit, so these changes were not delivered.`,testsNotPushed:(e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,testsPrRetargeted:e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:e=>`The tests were committed but no PR was opened: ${e}.`,testsHeldBack:(e,t,n,s)=>`${e?"Delivery partial":"Delivery failed: no tests were delivered"}. These test files need a pull request that is not on ${t} yet, so they were held back: ${n}. Their changes are in the run artifact's ${s}.`,testsNotProposed:e=>`The tests were not proposed in a pull request: ${e}.`}};var QV={testRecommendationsImplementedHeader:(e,t)=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08\u30C6\u30B9\u30C8 ${e}\u4EF6${t>e?`\u3001\u30B1\u30FC\u30B9 ${t}\u4EF6`:""}\uFF09`,listSeparator:"\u3001",testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,reusedThenVerified:(e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,reused:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,verified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,unresolved:e=>`${e} \u4EF6\u306F POM \u30BD\u30FC\u30B9\u307E\u3067\u89E3\u6C7A\u3067\u304D\u305A\uFF08\u53C2\u8003\u60C5\u5831\u3067\u3042\u308A\u3001\u9664\u5916\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09`,candidates:e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,maintenanceTableHeader:"| \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30D5\u30A1\u30A4\u30EB | \u5909\u66F4\u5185\u5BB9 | \u5909\u66F4\u524D | \u5909\u66F4\u5F8C |",testResultsHeader:e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,videosArtifactFallback:e=>`\u{1F4F9} \u9332\u753B\u3055\u308C\u305F UI \u30C6\u30B9\u30C8\u30D3\u30C7\u30AA: [\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u304B\u3089\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,configErrorsHeader:"\u2699\uFE0F \u8A2D\u5B9A\u30A8\u30E9\u30FC",nextStepsHeader:"### \u{1F4A1} \u6B21\u306E\u30B9\u30C6\u30C3\u30D7",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",rows:{passed:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u6210\u529F\u3057\u307E\u3057\u305F":"\u6210\u529F\u3057\u307E\u3057\u305F",notRun:e=>e?"\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F":"\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",failedBug:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5931\u6557\u3057\u307E\u3057\u305F":"\u5931\u6557\u3057\u307E\u3057\u305F",failedTest:e=>`\u5931\u6557\u3057\u307E\u3057\u305F \u2014 \u30A2\u30D7\u30EA\u3067\u306F\u306A\u304F\u30C6\u30B9\u30C8\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059\uFF08${e}\uFF09`,executedOf:(e,t)=>t?`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`:`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`,noneExecuted:e=>e?"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002":"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",staleResult:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u6700\u5F8C\u306E\u5909\u66F4\u3088\u308A\u524D\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093:"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",missingSecret:e=>`\u3053\u306E\u5B9F\u884C\u3067\u306F\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8D77\u52D5\u306B\u306F ${e} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u306B\u306F\u5024\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",findingsNotVerified:e=>`\u6B21\u306E\u7B87\u6240\u306E\u7591\u308F\u3057\u3044\u6B20\u9665\u3092\u78BA\u8A8D\u307E\u305F\u306F\u5426\u5B9A\u3059\u308B\u30C6\u30B9\u30C8\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,failedAlone:e=>`\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306F\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u306F\u6210\u529F\u3057\u307E\u3057\u305F\u304C\u3001Testbot \u304C\u5358\u72EC\u3067\u5B9F\u884C\u3059\u308B\u3068\u5931\u6557\u3057\u305F\u305F\u3081\u3001\u7D50\u679C\u306F\u78BA\u5B9A\u3057\u3066\u3044\u307E\u305B\u3093: ${e}\u3002`,missingCaseResults:(e,t)=>{let n=t?` \u6700\u65B0\u306E\u5B9F\u884C: ${t}`:"";return`\u4F5C\u6210\u3057\u305F\u30B1\u30FC\u30B9\u306E\u6700\u7D42\u7D50\u679C\u304C\u8A18\u9332\u3055\u308C\u3066\u3044\u307E\u305B\u3093: ${e}\u3002${n}`},recipeDrift:"\u8A18\u9332\u3055\u308C\u3066\u3044\u305F\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u53E4\u304F\u306A\u3063\u3066\u304A\u308A\u3001\u8D77\u52D5\u524D\u306B\u4FEE\u6B63\u304C\u5FC5\u8981\u3067\u3057\u305F\u3002",recipeNotSaved:"\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u4FDD\u5B58\u3055\u308C\u3066\u3044\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u8D77\u52D5\u65B9\u6CD5\u3092\u5224\u65AD\u3057\u307E\u3057\u305F\u3002",mockedDependency:e=>`${e} \u306F\u5B9F\u969B\u306B\u30C7\u30D7\u30ED\u30A4\u3055\u308C\u305A\u30E2\u30C3\u30AF\u5316\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u308C\u306B\u5BFE\u3059\u308B\u6210\u529F\u7D50\u679C\u306F\u8A3C\u660E\u306B\u306F\u306A\u308A\u307E\u305B\u3093\u3002`,finalizeNotReady:e=>`\u30C6\u30B9\u30C8\u306F\u73FE\u72B6\u3067\u306F\u30DE\u30FC\u30B8\u53EF\u80FD\u306A\u72B6\u614B\u3067\u306F\u3042\u308A\u307E\u305B\u3093${e?`: ${e}`:"\u3002"}`,ciNotCovered:"\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B CI \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u306A\u3044\u305F\u3081\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3002",ciNotCoveredBecause:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u4E00\u90E8\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093: ${e}`,guardedEntryCi:(e,t)=>`${e} \u306F Test Environment \u5411\u3051\u306E Testbot \u306E\u30AC\u30FC\u30C9\u4ED8\u304D\u30A8\u30F3\u30C8\u30EA\u3067\u3059\u3002CI \u3067\u306F @skyramp/testbot-core ${t} \u3092\u5BA3\u8A00\u3057\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u304B\u3089 \`node --test ${e}\` \u3067\u5B9F\u884C\u3057\u307E\u3059\u3002Testbot \u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u884C\u308F\u306A\u3044\u305F\u3081\u3001\u305D\u306E CI \u30B8\u30E7\u30D6\u306B \`id-token: write\` \u6A29\u9650\u3068 TESTBOT_POLICY_ORIGIN \u306F\u4E0D\u8981\u3067\u3059\u3002`,ciUnconfirmedAbsent:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u5B9F\u884C\u3057\u306A\u3044\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u308C\u3089\u306F CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u306A\u3044\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,ciUnconfirmed:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u53CE\u96C6\u3059\u308B\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u308B\u304B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,ciNotIntegrated:e=>`CI \u672A\u7D71\u5408: ${e} \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u3001Testbot \u306F CI \u304C\u5B9F\u884C\u3057\u306A\u3044\u5834\u6240\u306B\u914D\u7F6E\u3057\u307E\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,ciWithheld:e=>`\u30C6\u30B9\u30C8 PR \u306B\u542B\u3081\u3066\u3044\u307E\u305B\u3093: \u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001CI \u304C\u5931\u6557\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,ciUnprovisioned:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u3059\u308B\u307E\u3067 CI \u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3067\u5931\u6557\u3057\u307E\u3059\u3002`,ciResultsUnread:e=>`Testbot \u306F ${e} \u306E CI \u7D50\u679C\u3092\u8AAD\u307F\u53D6\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u305D\u3053\u3067\u306E CI \u7D50\u679C\u306F\u8A3C\u62E0\u3068\u3057\u3066\u6271\u308F\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,browserSuiteReadOnly:(e,t)=>`${e} \u306B\u306F\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u30B9\u30A4\u30FC\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u3067\u306F\u66F8\u304D\u8FBC\u3081\u306A\u3044\u305F\u3081\u3001UI \u30C6\u30B9\u30C8\u306F ${t} \u306B\u3042\u308A\u307E\u3059\u3002`,sutNotRequired:"\u30A2\u30D7\u30EA\u306F\u8D77\u52D5\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u691C\u8A3C\u30C8\u30EA\u30A2\u30FC\u30B8\u306B\u3088\u308A\u3001\u3053\u306E\u5909\u66F4\u3067\u691C\u8A3C\u304C\u5FC5\u8981\u306A\u30C7\u30D7\u30ED\u30A4\u5F8C\u306E\u632F\u308B\u821E\u3044\u306F\u306A\u3044\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",lintNotCovered:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F ${e} \u3092\u30C1\u30A7\u30C3\u30AF\u3057\u307E\u305B\u3093\u3002\u30B9\u30BF\u30A4\u30EB\u3084\u578B\u306E\u554F\u984C\u304C\u81EA\u52D5\u7684\u306B\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3002`,lintNotRun:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u3092\u30C1\u30A7\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30EA\u30F3\u30BF\u30FC\u3092\u901A\u3055\u305A\u306B\u63D0\u51FA\u3057\u307E\u3057\u305F: ${e}\u3002`,analysisUnverified:e=>`\u5909\u66F4\u306E\u5206\u6790\u306E\u4E00\u90E8\u3092\u691C\u8A3C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u672A\u89E3\u6C7A\u306E\u30C1\u30A7\u30C3\u30AF ${e} \u4EF6\uFF09\u3002\u8A72\u5F53\u3059\u308B\u4E3B\u5F35\u306F\u672A\u78BA\u8A8D\u3068\u3057\u3066\u6271\u3044\u3001\u30C6\u30B9\u30C8\u3092\u8A08\u753B\u3057\u307E\u3057\u305F\u3002`,unitTestsNotRun:e=>`Testbot \u306F\u9078\u629E\u3057\u305F\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u3053\u306B\u3042\u308B\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F Testbot \u81EA\u8EAB\u306E\u518D\u5B9F\u884C\u306B\u3088\u308B\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}`,componentsNotTested:e=>`\u672A\u30C6\u30B9\u30C8: \u8A08\u753B\u304C\u30C6\u30B9\u30C8\u5BFE\u8C61\u306B\u3057\u306A\u304B\u3063\u305F\u3001\u5909\u66F4\u3055\u308C\u305F\u30B3\u30FC\u30C9\u306E\u90E8\u5206\u3067\u3059\u3002${e}`,componentsWithoutReason:e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,targetNotesDeviation:e=>`Target \u306E\u30E1\u30E2\u304C\u6307\u5B9A\u3059\u308B\u5834\u6240\u306B\u30C6\u30B9\u30C8\u3092\u7F6E\u3044\u3066\u3044\u307E\u305B\u3093: ${e}`,testSettingsDiffer:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,stageSalvaged:(e,t)=>t.length===1?`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t[0]} \u306E\u30C1\u30A7\u30C3\u30AF\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`:`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t.length} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\uFF08${t.join("\u3001")}\uFF09\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u308C\u3089\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`,downstreamNotChecked:e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,browserBuildNotDeclared:(e,t,n)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${n}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,resultsNotOfDeliveredTests:e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F\u6700\u5F8C\u306E\u5B9F\u884C\u306E\u5F8C\u306B\u5909\u66F4\u3055\u308C\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306F\u4EE5\u524D\u306E\u7248\u306E\u3082\u306E\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,videoMissing:e=>`\u6B21\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306F\u52D5\u753B\u304C\u8A18\u9332\u3055\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306B\u306F\u78BA\u8A8D\u3067\u304D\u308B\u52D5\u753B\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,testsCouldNotRunHere:(e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,modelProviderDenied:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,stageInterruptedByProvider:(e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${t} \u306B\u3088\u308A ${e} \u306E\u6BB5\u968E\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u305D\u306E\u6BB5\u968E\u3067\u4F5C\u6210\u6E08\u307F\u306E\u5185\u5BB9\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002`,planInterruptedByProvider:(e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u306B\u3088\u308A\u8A08\u753B\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u4F5C\u6210\u6E08\u307F\u306E\u8A08\u753B\u3092\u6B8B\u3057\u3001\u5F97\u3089\u308C\u305F\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u5831\u544A\u3057\u307E\u3059\u3002`+(t?"\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002":""),modelProviderUnavailable:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:e=>`\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u30D6\u30E9\u30A6\u30B6\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u524A\u9664\u3057\u307E\u305B\u3093\u3002`,dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:(e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,dataSafetyIsolationEnforced:()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002",playwrightNotRouted:(e,t)=>`Testbot \u304C Playwright \u306E API \u30EA\u30AF\u30A8\u30B9\u30C8\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\uFF08request \u30D5\u30A3\u30AF\u30B9\u30C1\u30E3\u3001page.request\u3001request.newContext\uFF09\u3092\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u7D4C\u7531\u3067\u9001\u308B\u306E\u306F Playwright ${t} \u306E\u5834\u5408\u3060\u3051\u3067\u3059\u3002\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u30A2\u30A6\u30C8\u306E Playwright \u306F ${e} \u306E\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u306B\u5230\u9054\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,dataSafetyIsolationRefused:"\u4E00\u90E8\u306E\u30C1\u30A7\u30C3\u30AF\u306F\u3001\u5171\u6709\u74B0\u5883\u306E\u4FDD\u8B77\u3092\u6709\u52B9\u306B\u3057\u305F\u307E\u307E\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F\u3001\u4FDD\u8B77\u306A\u3057\u3067\u305D\u308C\u3089\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyProxyAuthCreates:e=>`\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6\u307E\u305F\u306F\u30C6\u30B9\u30C8\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u8FFD\u8DE1\u3057\u307E\u305B\u3093\u3002`,dataSafetyGuardedProbes:"\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6",dataSafetyGuardedTests:"\u30C6\u30B9\u30C8\u306E\u5B9F\u884C",dataSafetyAnd:"\u3068",dataSafetyCleanupConfirmed:"Testbot \u306F\u5404\u30C6\u30B9\u30C8\u304C\u5BA3\u8A00\u3057\u305F\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u5B9F\u884C\u3057\u3001\u3059\u3079\u3066\u6210\u529F\u3057\u307E\u3057\u305F\u3002",dataSafetyLeftRecords:e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u304B\u3089\u524A\u9664\u3067\u304D\u306A\u3044\u30EC\u30B3\u30FC\u30C9\u3092\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059: ${e}\u3002`,dataSafetyCleanupFailed:e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u4F5C\u6210\u3057\u305F\u3082\u306E\u304C\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3063\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`,dataSafetyCleanupUnknown:e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u4E0D\u660E\u3067\u3059\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u305B\u3093\u3002`,dataSafetyKeptRecords:(e,t)=>`\u30C6\u30B9\u30C8\u306F\u3001\u30C6\u30B9\u30C8\u30C7\u30FC\u30BF\u3092\u4FDD\u6301\u3059\u308B\u6A29\u9650 (\u74B0\u5883 ${e}\u3001\u30DD\u30EA\u30B7\u30FC\u30EA\u30D3\u30B8\u30E7\u30F3 ${t}) \u306E\u3082\u3068\u3067\u3001\u6B21\u306E\u30EC\u30B3\u30FC\u30C9\u3092\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3057\u307E\u3057\u305F`},isolationReport:{rationale:"Testbot \u306F\u3001\u5FC5\u8981\u306A\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u306E\u4E2D\u3067\u3053\u306E\u691C\u8A3C\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5909\u66F4\u3092\u691C\u8A3C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",gap:e=>`\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093: ${e}`,nextStep:"\u30AE\u30E3\u30C3\u30D7\u306B\u8A18\u8F09\u3055\u308C\u305F\u554F\u984C\u3092\u89E3\u6D88\u3057\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",nextStepPackageSource:"Ubuntu \u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u914D\u5E03\u5143\u304C\u518D\u3073\u5229\u7528\u53EF\u80FD\u306B\u306A\u3063\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30DB\u30B9\u30C8\u3084\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},nextSteps:{componentMismatch:(e,t,n,s)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u306F ${n} \u3092\u5B9F\u884C\u3057\u3066\u304A\u308A\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${s} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,componentUnverified:(e,t,n,s)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${s} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u3055\u308C\u305F\u30B3\u30DF\u30C3\u30C8: ${n}\u3002`,componentUnread:(e,t,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u5B9F\u884C\u3057\u3066\u3044\u308B\u30B3\u30DF\u30C3\u30C8\u306E\u8A18\u9332\u304C\u3042\u308A\u307E\u305B\u3093\u3002`,deployCommit:(e,t)=>`${e} \u306E ${t} \u3092 Test Environment \u306B\u30C7\u30D7\u30ED\u30A4\u3057\u3066\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u305D\u306E\u30B3\u30DF\u30C3\u30C8\u304C\u5B9F\u884C\u3055\u308C\u308B\u307E\u3067\u3001\u305D\u3053\u3067\u306E\u30C6\u30B9\u30C8\u306F\u3053\u306E\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306A\u308A\u307E\u305B\u3093\u3002`,addSecret:(e,t)=>`\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306B ${e} \u3068\u3044\u3046\u540D\u524D\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\uFF08GitHub Actions \u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3001\u307E\u305F\u306F Azure DevOps \u3067\u306F\u30DB\u30B9\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u306E Pipelines \u203A Library \u306B\u3042\u308B skyramp-testbot \u5909\u6570\u30B0\u30EB\u30FC\u30D7\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u5909\u6570\uFF09\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6B21\u306B Target \u306E Setup \u30DA\u30FC\u30B8\u306E Credentials \u306B\u8FFD\u52A0\u3057\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5B9F\u884C\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C Testbot \u306B\u6E21\u3059\u306E\u306F Target \u306E\u8A8D\u8A3C\u60C5\u5831\u3060\u3051\u3067\u3001\u305D\u308C\u305E\u308C\u5BFE\u5FDC\u4ED8\u3051\u3089\u308C\u305F\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u304B\u3089\u6E21\u3055\u308C\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306F\u3053\u308C\u306A\u3057\u3067\u306F\u8D77\u52D5\u3067\u304D\u305A\u3001Testbot \u304C\u5024\u3092\u4F5C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002`},providerOutageHeadline:(e,t)=>`${e} \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F ${t} \u56DE\u8A66\u884C\u3057\u307E\u3057\u305F\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3002`,providerOutageActionStatusPage:e=>`${e} \u3067\u72B6\u6CC1\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B5\u30FC\u30D3\u30B9\u304C\u5FA9\u65E7\u3057\u305F\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,providerRateLimitHeadline:e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,providerRateLimitAction:"\u5236\u9650\u304C\u89E3\u9664\u3055\u308C\u308B\u307E\u3067\u5F85\u3063\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u7E70\u308A\u8FD4\u3059\u5834\u5408\u306F\u3001\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u4F7F\u7528\u3059\u308B\u8A8D\u8A3C\u60C5\u5831\u306E\u30EC\u30FC\u30C8\u5236\u9650\u3092\u5F15\u304D\u4E0A\u3052\u308B\u304B\u3001\u540C\u6642\u306B\u5B9F\u884C\u3059\u308B PR \u306E\u6570\u3092\u6E1B\u3089\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerUsageLimitHeadline:e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,providerUsageLimitAction:"\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u8A8D\u8A3C\u60C5\u5831\u306B\u7D10\u3065\u304F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5229\u7528\u4E0A\u9650\u3092\u5F15\u304D\u4E0A\u3052\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerAuthExpiredHeadline:e=>`\u5B9F\u884C\u4E2D\u306B\u3001Testbot \u304C ${e} \u3078\u63A5\u7D9A\u3059\u308B\u305F\u3081\u306E\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002`,providerAuthExpiredAction:"\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9593\u306F\u56FA\u5B9A\u306E\u305F\u3081\u3001\u5B9F\u884C\u6642\u9593\u304C\u9577\u3044\u3068\u305D\u306E\u671F\u9593\u3092\u8D85\u3048\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u304C\u6709\u52B9\u671F\u9593\u3092\u5E38\u306B\u8D85\u3048\u308B\u5834\u5408\u306F\u3001\u30B8\u30E7\u30D6\u3054\u3068\u306B\u8A8D\u8A3C\u60C5\u5831\u3092\u767A\u884C\u3059\u308B\u304B\u3001\u5404\u30B8\u30E7\u30D6\u304C\u6709\u52B9\u671F\u9593\u5185\u306B\u53CE\u307E\u308B\u3088\u3046\u5B9F\u884C\u3092\u5206\u5272\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerTimeoutHeadline:e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,providerTimeoutAction:"\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u306B\u672C\u5F53\u306B\u6642\u9593\u304C\u5FC5\u8981\u306A\u5834\u5408\u306F\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E `testbotTimeout` \u5165\u529B\u5024\u3092\u5927\u304D\u304F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",staged:{testsSourcePullRequest:e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,validatedTogether:e=>`\u4E00\u7DD2\u306B\u691C\u8A3C\u3057\u305F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8: ${e}`,requestedByPerson:e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,requestedByPolicy:e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,notTranslated:{"no-time":"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u3059\u308B\u6642\u9593\u304C\u6B8B\u3063\u3066\u3044\u307E\u305B\u3093\u3067\u3057\u305F\u3002",failed:"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},noLiveApp:e=>`> \u26A0\uFE0F **\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F** \u2014 \u4EE5\u4E0B\u306E ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u306F**\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093**\uFF08\u5B9F\u884C\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF09\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u3001\u5408\u683C\u3059\u308B\u3053\u3068\uFF08\u304A\u3088\u3073\u518D\u73FE\u30C6\u30B9\u30C8\u304C\u610F\u56F3\u3069\u304A\u308A\u5931\u6557\u3059\u308B\u3053\u3068\uFF09\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,unitTestsInFile:(e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,addedToExistingFile:"\u65E2\u5B58\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306B\u8FFD\u52A0",testPackagesHeader:"### \u{1F4E6} \u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",testPackageLine:(e,t,n="")=>`\`${e}/\` \u306F Skyramp Testbot \u304C\u6240\u6709\u30FB\u4FDD\u5B88\u3059\u308B\u72EC\u7ACB\u3057\u305F\u30C6\u30B9\u30C8\u30D1\u30C3\u30B1\u30FC\u30B8\u3067\u3001\u72EC\u81EA\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3001\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u3001\u30E9\u30F3\u30CA\u30FC\u8A2D\u5B9A\u3092\u6301\u3061\u307E\u3059\u3002${n?`\u3053\u306E\u5B9F\u884C\u3067\u8FFD\u52A0\u3057\u305F\u3082\u306E\u3067\u3001${n} \u3092\u3053\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u5185\u306B\u306E\u307F\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u3066\u3044\u307E\u3059\u3002`:""}\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u4E2D\u306B \`${t}\` \u3067\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002\u3059\u3079\u3066\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u5B9F\u884C\u3059\u308B\u306B\u306F\u3001\u30A2\u30D7\u30EA\u304C\u8D77\u52D5\u3057\u3066\u3044\u308B CI \u30B8\u30E7\u30D6\u306B\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,appManifestsUntouched:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u81EA\u8EAB\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3068\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",dependencyChangesHeader:"### \u{1F4E6} \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u4F9D\u5B58\u95A2\u4FC2\u306E\u5909\u66F4",dependencyChangeLine:(e,t,n)=>`\`${t}\`\uFF08\u304A\u3088\u3073\u305D\u306E\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\uFF09\u306B \`${e}\` \u3092\u8FFD\u52A0${n?`: ${n}`:""}`,testMaintenanceHeader:"\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",keptNot:"\u5909\u66F4\u305B\u305A\u7DAD\u6301 \u2014 \u898B\u9001\u3063\u305F\u64CD\u4F5C: ",declinedPlanned:"(\u4E88\u5B9A\u3057\u3066\u3044\u305F\u64CD\u4F5C\u3092\u898B\u9001\u308A: ",declinedMaintenanceHeader:"\u21A9\uFE0F \u898B\u9001\u3063\u305F\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",existingEvidenceHeader:"\u2705 \u65E2\u5B58\u306E\u30A8\u30D3\u30C7\u30F3\u30B9",trustedCheckPassed:(e,t)=>`\u4FE1\u983C\u6E08\u307F\u306E CI \u30C1\u30A7\u30C3\u30AF ${e} \u304C${t?` ${t} \u3067`:""}\u5408\u683C\u3057\u3001\u6B21\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F:`,testResultsHeader:"\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C",resultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",unitResultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30B3\u30FC\u30C9 | \u30C6\u30B9\u30C8 | \u30B1\u30FC\u30B9\u6570 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",casesPassed:(e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:(e,t,n,s)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${s}\uFF09`,coverageTableHeader:"| \u632F\u308B\u821E\u3044 | \u30BD\u30FC\u30B9 | \u30C6\u30B9\u30C8 | \u30E1\u30F3\u30C6\u30CA\u30F3\u30B9 |",writtenNotRun:"\u4F5C\u6210\u6E08\u307F\u30FB\u672A\u5B9F\u884C",issuesFoundHeader:"\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C",requirementsHeader:(e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,requirementsTableHeader:"| \u8981\u4EF6 | \u6761\u9805 | \u30C6\u30B9\u30C8 | \u7D50\u679C |",requirementsSummaryTableHeader:"| \u8981\u4EF6 | \u5408\u683C\u3057\u305F\u6761\u9805 | \u5408\u683C\u3057\u3066\u3044\u306A\u3044\u6761\u9805 |",clauseStatuses:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C","Not run":"\u672A\u5B9F\u884C","Not tested":"\u672A\u30C6\u30B9\u30C8","Passed, test not kept":"\u5408\u683C\uFF08\u30C6\u30B9\u30C8\u306F\u4FDD\u6301\u305B\u305A\uFF09"},regressionGuard:"\uFF08\u56DE\u5E30\u30AC\u30FC\u30C9\uFF09",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F \u5B9F\u884C\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F \u2014 \u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002",stopReasons:{"pr-closed":"\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30DE\u30FC\u30B8\u3055\u308C\u305A\u306B\u30AF\u30ED\u30FC\u30BA\u3055\u308C\u307E\u3057\u305F",cancelled:"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u305F\u304B\u3001\u30E9\u30F3\u30CA\u30FC\u304C\u505C\u6B62\u3057\u307E\u3057\u305F","attempt-cancelled":"Skyramp \u3067\u3053\u306E\u5B9F\u884C\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F","attempt-closed":"Skyramp \u304C\u3053\u306E\u5B9F\u884C\u3092\u7D42\u4E86\u3057\u307E\u3057\u305F"},maintenanceActions:{update:"\u66F4\u65B0",regenerate:"\u518D\u751F\u6210",delete:"\u524A\u9664",verify:"\u691C\u8A3C",updated:"\u66F4\u65B0",regenerated:"\u518D\u751F\u6210",deleted:"\u524A\u9664",verified:"\u691C\u8A3C"},publishFailures:{push:"\u30D7\u30C3\u30B7\u30E5\u306B\u5931\u6557",auth:"\u8A8D\u8A3C\u30A8\u30E9\u30FC",conflict:"\u7AF6\u5408",hook:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF\u304C\u5931\u6557",unknown:"\u4E0D\u660E\u306A\u30A8\u30E9\u30FC"},commitHook:e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF",commitRefusedByHook:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u304C\u751F\u6210\u3055\u308C\u305F\u30C6\u30B9\u30C8\u306E\u30B3\u30DF\u30C3\u30C8\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,commitHookCouldNotRun:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u304C\u547C\u3073\u51FA\u3059\u30B3\u30DE\u30F3\u30C9\u304C\u30E9\u30F3\u30CA\u30FC\u306B\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,stoppedEarly:(e,t)=>`> \u26A0\uFE0F \u5B9F\u884C\u304C\u9014\u4E2D\u3067\u505C\u6B62\u3057\u307E\u3057\u305F \u2014 ${e}\u3002\u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002${t}`,viewInSkyramp:e=>` [Skyramp \u3067\u8868\u793A](${e})`,testsPr:{summaryHeader:"### \u6982\u8981",targets:"\u30C6\u30B9\u30C8\u306E\u5BFE\u8C61:",moreItems:e=>`\u307B\u304B ${e} \u4EF6`,counts:(e,t)=>`\u65B0\u898F\u30C6\u30B9\u30C8 ${e} \u4EF6\u3001\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u3057\u305F\u30C6\u30B9\u30C8 ${t} \u4EF6\u3002`,types:e=>`\u30C6\u30B9\u30C8\u7A2E\u5225: ${e}\u3002`,statusHeader:"### \u691C\u8A3C\u30B9\u30C6\u30FC\u30BF\u30B9",noChange:"\u2139\uFE0F \u30D9\u30FC\u30B9\u30E9\u30A4\u30F3\u4EE5\u964D\u306B\u5909\u66F4\u306F\u3042\u308A\u307E\u305B\u3093\u3002",noTestRan:"\u5B9F\u884C\u3057\u305F\u30C6\u30B9\u30C8\u306F\u306A\u304F\u3001\u65E2\u5B58\u306E\u8A3C\u62E0\u3082\u63A1\u7528\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",noLiveApp:"\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",resultCounts:(e,t,n)=>`\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${e} \u4EF6\u3001\u4E0D\u5408\u683C ${t} \u4EF6\u3001\u672A\u5B9F\u884C ${n} \u4EF6\u3002`,limitations:"\u91CD\u8981\u306A\u5931\u6557\u3068\u5236\u9650:",verdict:e=>`\u5B9F\u884C\u306E\u5224\u5B9A\u306F[\u5B9F\u884C\u306E\u8A73\u7D30](${e})\u306B\u3042\u308A\u307E\u3059\u3002`,runningHeader:"### \u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",environment:e=>`\u30C6\u30B9\u30C8\u306F\u6B21\u306E\u74B0\u5883\u5909\u6570\u3092\u8AAD\u307F\u53D6\u308A\u307E\u3059\u3002\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B\u30B8\u30E7\u30D6\u3067\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044: ${e}\u3002`,filesChanged:"\u5404\u30C6\u30B9\u30C8\u306F **Files changed** \u30BF\u30D6\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},descriptionCut:(e,t,n)=>`_\u2026 \u6B8B\u308A\u306F\u7701\u7565\u3057\u307E\u3057\u305F${t===void 0?"\uFF08\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u542B\u3080\uFF09":t?`\uFF08\u30C6\u30B9\u30C8\u7D50\u679C ${t} \u4EF6\u3092\u542B\u3080\uFF09`:""}\u3002Azure DevOps \u306E\u8AAC\u660E\u306F ${e} \u6587\u5B57\u307E\u3067\u3067\u3059\u3002${n?` [\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8](${n})`:""}_`,testsReplaced:(e,t,n)=>[t?`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\uFF08\u30B3\u30DF\u30C3\u30C8 \`${t}\`\uFF09\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`:`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`,n?`[\u4EE5\u524D\u306E\u5B9F\u884C](${n})\u306E\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002`:"\u4EE5\u524D\u306E\u5B9F\u884C\u304C\u3053\u3053\u306B\u66F8\u3044\u305F\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002"].join(""),setupRunEnds:{finished:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002Skyramp \u304C\u7D50\u679C\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",failed:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",timedOut:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u6642\u9593\u5207\u308C\u306B\u306A\u308A\u307E\u3057\u305F\u3002",cancelledInSkyramp:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306F Skyramp \u3067\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",stoppedToResume:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002Skyramp \u3067\u518D\u958B\u3067\u304D\u307E\u3059\u3002"},appUnreachable:e=>`Skyramp\uFF08${e}\uFF09\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002`,couldNotStart:e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F \u4F5C\u6210\u30B9\u30C6\u30C3\u30D7\u304C\u30C1\u30A7\u30C3\u30AF\u306B\u5408\u683C\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u81EA\u52D5\u3067\u7D44\u307F\u7ACB\u3066\u3089\u308C\u307E\u3057\u305F\u3002${e} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\u304C\u672A\u9054\u6210\u3067\u3059 \u2014 \u8A73\u7D30\u306F\u5B9F\u884C\u30ED\u30B0\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,testbotPrLine:(e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,viewRun:e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,testsPrNotOpened:(e,t)=>`\u30C6\u30B9\u30C8 PR \u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u30D7\u30C3\u30B7\u30E5\u3055\u308C\u3066\u3044\u307E\u3059\u3002`,testsNotDelivered:e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,testsPinnedNotDelivered:(e,t,n)=>`${e}: ${t} \u4EF6\u306E\u30C6\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u3001${n} \u4EF6\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30B3\u30DF\u30C3\u30C8\u306B\u56FA\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u3053\u308C\u3089\u306E\u5909\u66F4\u306F\u914D\u4FE1\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,testsNotPushed:(e,t)=>`\u30C6\u30B9\u30C8\u3092\u30D7\u30C3\u30B7\u30E5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30ED\u30FC\u30AB\u30EB\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002`,testsPrRetargeted:e=>`\u30C6\u30B9\u30C8\u306E\u751F\u6210\u4E2D\u306B\u958B\u767A PR \u304C\u30DE\u30FC\u30B8\u3055\u308C\u307E\u3057\u305F \u2014 \u30C6\u30B9\u30C8 PR \u306F\u4EE3\u308F\u308A\u306B\u30D9\u30FC\u30B9\u30D6\u30E9\u30F3\u30C1${e?`\uFF08\`${e}\`\uFF09`:""}\u3092\u5BFE\u8C61\u306B\u3057\u3066\u3044\u307E\u3059\u3002`,testsPrUnchanged:"\u3053\u306E\u30D7\u30C3\u30B7\u30E5\u3067\u306F\u65B0\u3057\u3044\u30C6\u30B9\u30C8\u306E\u5909\u66F4\u306F\u4E0D\u8981\u3067\u3057\u305F\u3002\u4EE5\u4E0B\u306E\u30C6\u30B9\u30C8 PR \u306F\u4EE5\u524D\u306E\u5B9F\u884C\u306E\u3082\u306E\u3067\u3001\u305D\u306E\u307E\u307E\u306B\u3057\u3066\u3044\u307E\u3059\u3002",committedNoPr:e=>`\u30C6\u30B9\u30C8\u306F\u30B3\u30DF\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F\u304C\u3001PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,testsHeldBack:(e,t,n,s)=>`${e?"\u4E00\u90E8\u306E\u30C6\u30B9\u30C8\u306E\u307F\u63D0\u51FA\u3057\u307E\u3057\u305F":"\u30C6\u30B9\u30C8\u3092\u63D0\u51FA\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F"}\u3002\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F ${t} \u306B\u307E\u3060\u306A\u3044\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u4FDD\u7559\u3057\u307E\u3057\u305F: ${n}\u3002\u5909\u66F4\u5185\u5BB9\u306F\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u306E ${s} \u306B\u3042\u308A\u307E\u3059\u3002`,testsNotProposed:e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`}};var Ef=(n=>(n.En="en",n.Ja="ja",n))(Ef||{}),kue={en:Dy,ja:QV},Rue="en";function nR(e){let t=e.trim().toLowerCase();if(t==="")return"en";let n=Object.values(Ef);return n.includes(t)?t:(jt(`Invalid language '${e}'. Supported: ${n.join(", ")}. Falling back to 'en'.`),"en")}function Vo(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}function re(){return kue[Rue]}var Ny=(a=>(a.ProviderOutage="provider_outage",a.ProviderRateLimit="provider_rate_limit",a.ProviderUsageLimit="provider_usage_limit",a.ProviderAuthExpired="provider_auth_expired",a.Timeout="timeout",a.NoReport="no_report",a.RenderFailure="render_failure",a))(Ny||{});(t=>{function e(n,s){switch(n){case"provider_outage":return{headline:re().providerOutageHeadline(s.provider.name,s.maxRetries),action:re().providerOutageActionStatusPage(s.provider.statusUrl)};case"provider_rate_limit":return{headline:re().providerRateLimitHeadline(s.provider.name),action:re().providerRateLimitAction};case"provider_usage_limit":return{headline:re().providerUsageLimitHeadline(s.provider.name),action:re().providerUsageLimitAction};case"provider_auth_expired":return{headline:re().providerAuthExpiredHeadline(s.provider.name),action:re().providerAuthExpiredAction};case"timeout":return{headline:re().providerTimeoutHeadline(s.timeoutMinutes),action:re().providerTimeoutAction};case"no_report":case"render_failure":return}}t.buildNotice=e})(Ny||={});var rR=(n=>(n.SameBranch="same-branch",n.SeparateBranch="separate-branch",n))(rR||{});var _V=(n=>(n.Sonnet="sonnet",n.Opus="opus",n))(_V||{}),Bue="opus";function sR(e){return Object.values(_V).includes(e)}function DV(e){let t=(e??"").trim();if(t==="")return Bue;let n=t.toLowerCase();return sR(n)?n:t}var Py=(i=>(i.Low="low",i.Medium="medium",i.High="high",i.XHigh="xhigh",i.Max="max",i))(Py||{}),Oy="high";function NV(e){return Object.values(Py).includes(e)}var PV=5;function xue(e){let t=e.split(/\r?\n/).map(n=>n.trim()).filter(Boolean);if(t.length>PV)throw new Error(`relatedRepoPaths supports at most ${PV} entries (got ${t.length}); the cap limits how much cross-repo context is loaded to avoid overflowing Testbot's context window.`);return t}function $ue(e){let t=e.trim().toLowerCase();return t===""?"separate-branch":Object.values(rR).includes(t)?t:(jt(`Invalid generatedTestsMode '${e}'. Falling back to 'separate-branch'.`),"separate-branch")}function Tue(e){let t=(e??"").trim();if(t!==""){if(/^(?:[1-9]|10)$/.test(t))return Number(t);jt(`Ignoring perTestMaxFixAttempts="${e}": expected a whole number from 1 to 10; the Skyramp MCP default applies`)}}function Que(e){let t=(e??"").trim().toLowerCase();return t===""?Oy:NV(t)?t:(jt(`Ignoring effort="${e}": expected one of ${Object.values(Py).join(", ")}; using "${Oy}"`),Oy)}function OV(){let e=DV(Ve("model"));return sR(e)||jt(`model '${e}' is not a tested alias (sonnet, opus); passing it to the agent verbatim as a raw model id.`),{skyrampLicenseFile:Ve("skyrampLicenseFile"),cursorApiKey:Ve("cursorApiKey"),copilotApiKey:Ve("copilotApiKey"),anthropicApiKey:Ve("anthropicApiKey"),useBedrock:Fo("useBedrock"),awsRegion:Ve("awsRegion"),useLocalAuth:Ve("useLocalAuth").toLowerCase()==="true",model:e,effort:Que(Ve("effort")),targetSetupCommand:Ve("targetSetupCommand"),authTokenCommand:Ve("authTokenCommand"),uiCredentials:Ve("uiCredentials"),targetTeardownCommand:Ve("targetTeardownCommand"),skipTargetTeardown:Fo("skipTargetTeardown"),skyrampMcpVersion:Ve("skyrampMcpVersion"),skyrampMcpSource:Ve("skyrampMcpSource"),skyrampMcpGithubToken:Ve("skyrampMcpGithubToken"),skyrampMcpGithubRef:Ve("skyrampMcpGithubRef"),nodeVersion:Ve("nodeVersion"),skipTargetSetup:Fo("skipTargetSetup"),targetReadyCheckCommand:Ve("targetReadyCheckCommand"),targetReadyCheckTimeout:(()=>{let n=parseInt(Ve("targetReadyCheckTimeout"),10)||1800;return n<1?(jt(`targetReadyCheckTimeout must be at least 1 second, got ${n}. Using 1s.`),1):n})(),targetReadyCheckInterval:(()=>{let n=parseInt(Ve("targetReadyCheckInterval"),10),s=isNaN(n)?30:n;return s<1?(jt(`targetReadyCheckInterval must be at least 1 second, got ${s}. Using 1s.`),1):s})(),targetReadyCheckDiagnosticsCommand:(()=>{let n=Ve("targetReadyCheckDiagnosticsCommand");return n.trim().toLowerCase()==="none"?"":n})(),workingDirectory:Ve("workingDirectory"),autoCommit:Fo("autoCommit"),commitMessage:Ve("commitMessage"),generatedTestsMode:$ue(Ve("generatedTestsMode")),postPrComment:Fo("postPrComment"),testExecutionTimeout:parseInt(Ve("testExecutionTimeout"),10)||300,maxRecommendations:(()=>{let n=parseInt(Ve("maxRecommendations"),10);return isNaN(n)?void 0:Math.max(0,n)})(),maxGenerate:(()=>{let n=parseInt(Ve("maxGenerate"),10);return isNaN(n)?void 0:Math.max(0,n)})(),perTestMaxFixAttempts:Tue(Ve("perTestMaxFixAttempts")),testbotMaxRetries:parseInt(Ve("testbotMaxRetries"),10)||3,testbotRetryDelay:parseInt(Ve("testbotRetryDelay"),10)||10,testbotTimeout:parseInt(Ve("testbotTimeout"),10)||60,targetSetupRetries:parseInt(Ve("targetSetupRetries"),10)||3,targetSetupRetryDelay:parseInt(Ve("targetSetupRetryDelay"),10)||10,authTokenRetries:(()=>{let n=parseInt(Ve("authTokenRetries"),10);return Number.isFinite(n)&&n>=1?n:6})(),authTokenRetryDelay:(()=>{let n=parseInt(Ve("authTokenRetryDelay"),10);return Number.isFinite(n)&&n>=0?n:10})(),reportCollapsed:Fo("reportCollapsed"),language:nR(Ve("language")),enableDebug:Fo("enableDebug"),testRepoPath:Ve("testRepoPath")||void 0,relatedRepoPaths:xue(Ve("relatedRepoPaths")),allowedAuthors:Ve("allowedAuthors").split(/\r?\n/).map(n=>n.trim()).filter(Boolean)}}var _ue={useBedrock:"false",skipTargetTeardown:"false",skyrampMcpSource:"npm",skyrampMcpGithubRef:"main",nodeVersion:"lts/*",skipTargetSetup:"false",targetReadyCheckTimeout:"1800",targetReadyCheckInterval:"30",targetReadyCheckDiagnosticsCommand:`docker ps -a --format 'table {{.Names}} {{.Status}} {{.Ports}}' && docker ps -a --format '{{.Names}}' | while read name; do [ -n "$name" ] && echo "--- logs $name (last 30) ---" && docker logs --tail 30 "$name"; done`,workingDirectory:".",autoCommit:"true",commitMessage:"Skyramp Testbot: test maintenance suggestions",generatedTestsMode:"separate-branch",pipeline:"staged",postPrComment:"true",testbotMaxRetries:"3",testbotRetryDelay:"10",testExecutionTimeout:"300",testbotTimeout:"60",targetSetupRetries:"3",targetSetupRetryDelay:"10",authTokenRetries:"6",authTokenRetryDelay:"10",reportCollapsed:"true",language:"en",enableDebug:"true",sutSetupMode:"none"};function FV(e=process.env){for(let[t,n]of Object.entries(_ue)){let s=`INPUT_${t.replace(/ /g,"_").toUpperCase()}`;(e[s]??"").trim()===""&&(e[s]=n)}}Dn();async function UV(e){let t=e.targetSetupCommand,n=e.skyrampMcpVersion;n||(n="latest"),t||(t="docker compose up -d --build");let s={targetSetupCommand:t,authTokenCommand:e.authTokenCommand,targetTeardownCommand:e.targetTeardownCommand,skipTargetTeardown:e.skipTargetTeardown,skyrampMcpVersion:n,skyrampMcpSource:e.skyrampMcpSource,skyrampMcpGithubRef:e.skyrampMcpGithubRef,nodeVersion:e.nodeVersion,skipTargetSetup:e.skipTargetSetup,targetReadyCheckCommand:e.targetReadyCheckCommand,targetReadyCheckTimeout:e.targetReadyCheckTimeout,targetReadyCheckInterval:e.targetReadyCheckInterval,targetReadyCheckDiagnosticsCommand:e.targetReadyCheckDiagnosticsCommand,autoCommit:e.autoCommit,commitMessage:e.commitMessage,generatedTestsMode:e.generatedTestsMode,postPrComment:e.postPrComment,testExecutionTimeout:e.testExecutionTimeout,maxRecommendations:e.maxRecommendations,maxGenerate:e.maxGenerate,perTestMaxFixAttempts:e.perTestMaxFixAttempts,testbotMaxRetries:e.testbotMaxRetries,testbotRetryDelay:e.testbotRetryDelay,testbotTimeout:e.testbotTimeout,targetSetupRetries:e.targetSetupRetries,targetSetupRetryDelay:e.targetSetupRetryDelay,authTokenRetries:e.authTokenRetries,authTokenRetryDelay:e.authTokenRetryDelay,reportCollapsed:e.reportCollapsed,language:e.language,enableDebug:e.enableDebug,testRepoPath:e.testRepoPath,relatedRepoPaths:e.relatedRepoPaths};wy("Resolved configuration");for(let[r,i]of Object.entries(s))r==="authTokenCommand"?Bs(` ${r}: [REDACTED]`):Bs(` ${r}: ${i}`);return Iy(),s}Dn();Dn();zk();var LV=Y(require("child_process")),iR=class extends Error{constructor(t){super(t),this.name="ExecTimeoutError"}},Fy=class extends Error{constructor(t){super(t),this.name="ExecAbortedError"}};function MV(e,t){if(!(!e||e.destroyed||e.writableEnded))try{e.write(t)}catch(n){jt(`stream write failed: ${n instanceof Error?n.message:String(n)}`)}}async function jV(e,t=[],n={}){let s="",r="",i={cwd:n.cwd,silent:n.silent??!1,ignoreReturnCode:n.ignoreReturnCode??!1,env:n.env?{...process.env,...n.env}:void 0,input:n.input,listeners:{stdout:a=>{s+=a.toString(),MV(n.stdoutStream,a)},stderr:a=>{r+=a.toString()}}};if(n.timeout||n.signal){let a=n.signal;return a?.aborted?Promise.reject(new Fy(`Command aborted before start: ${e}`)):new Promise((c,u)=>{let d=LV.spawn(e,t,{cwd:n.cwd,env:n.env?{...process.env,...n.env}:process.env,stdio:["pipe","pipe","pipe"],shell:!1});d.stdout?.on("data",y=>{s+=y.toString(),n.silent||process.stdout.write(y),MV(n.stdoutStream,y)}),d.stderr?.on("data",y=>{r+=y.toString(),n.silent||process.stderr.write(y)}),n.input&&d.stdin?.end(n.input);let p=()=>{m&&clearTimeout(m),a?.removeEventListener("abort",g)},h=y=>{p();try{d.kill("SIGTERM")}catch{}u(y)},g=()=>h(new Fy(`Command aborted: ${e}`)),m=n.timeout?setTimeout(()=>h(new iR(`Command timed out after ${Math.round(n.timeout/6e4)}m: ${e}`)),n.timeout):void 0;a?.addEventListener("abort",g,{once:!0}),d.on("close",y=>{p();let v=y??1;v!==0&&!n.ignoreReturnCode?u(new Error(`The process '${e}' failed with exit code ${v}`)):c({exitCode:v,stdout:s,stderr:r})}),d.on("error",y=>{p(),u(y)})})}return{exitCode:await oV(e,t,i),stdout:s,stderr:r}}async function VV(e,t){wy(e);try{return await t()}finally{Iy()}}function oR(e){return e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/^_+|_+$/g,"")}async function GV(e,t){await VV("Tearing down services",async()=>{if(e.skipTargetTeardown){Jk("Skipping service teardown (skipTargetTeardown=true)");return}if(!e.targetTeardownCommand){Bs("No targetTeardownCommand configured, skipping teardown");return}Bs(`Running teardown command: ${e.targetTeardownCommand}`);try{await jV("bash",["-c",e.targetTeardownCommand],{cwd:t}),Jk("Services torn down successfully")}catch(n){let s=n instanceof Error?n.message:String(n);jt(`Service teardown command failed (non-fatal): ${s}`)}})}var le=Y(require("fs")),KV=require("crypto"),Ie=Y(require("path")),XV=require("child_process");var Uy=Y(require("fs")),HV=Y(require("path")),Due=/[;|`$<>(){}\n\r]|(?<!&)&(?!&)|\|\|/,Nue=/`|\$[\w{(@*#?!$-]|\\[$`"\\\n]/;function Pue(e){let t="";for(let s=0;s<e.length;){let r=e[s];if(r==="\\"&&(e[s+1]==='"'||e[s+1]==="'"))return{syntax:"a backslash before a quote",quoted:!1};if(r!=='"'&&r!=="'"){t+=r,s++;continue}let i=e.indexOf(r,s+1);if(i<0)return;let o=r==='"'?Nue.exec(e.slice(s+1,i+(e[i-1]==="\\"?1:0))):null;if(o)return{syntax:`${zV(o[0])} inside double quotes`,quoted:!0};t+=" ",s=i+1}let n=Due.exec(t);return n?{syntax:zV(n[0]),quoted:!1}:void 0}var zV=e=>e==="`"?"a backtick":/[\n\r]/.test(e)?"a line break":`\`${e}\``;function Rc(e){let t=(e??"").trim();if(!t)return{kind:"empty",reason:"the command is empty"};let n=Pue(t);if(n)return{kind:"shell-syntax",reason:`it uses shell syntax (${n.syntax}), and this is re-executed WITHOUT a shell so the recorded string cannot be interpreted \u2014 put the logic in a script and record the script invocation instead, or put an argument that holds such characters in ${n.quoted?"single quotes":"quotes"}`};let s=[],r=[],i="",o,a=!1,c=()=>{(i||a)&&r.push(i),i="",a=!1},u=()=>{c(),r.length>0&&s.push(r),r=[]};for(let p=0;p<t.length;p++){let h=t[p];if(o){h===o?o=void 0:i+=h;continue}if(h==='"'||h==="'"){o=h,a=!0;continue}if(h==="&"&&t[p+1]==="&"){u(),p+=1;continue}if(/\s/.test(h)){c();continue}i+=h}if(o)return{kind:"unterminated-quote",reason:"it has an unterminated quote"};if(u(),s.length===0)return{kind:"empty",reason:"the command is empty"};if(s.some(p=>p.length===0))return{kind:"empty-step",reason:"it has an empty step between && operators"};let d=s.find(p=>["cd","export","source","."].includes(p[0]));return d?{kind:"builtin",reason:`it runs the shell builtin "${d[0]}", which cannot be executed as a program \u2014 record a script that does this instead`}:{argv:s[0],steps:s}}function My(e,t,n){let s=(e??"").trim(),{steps:r,kind:i}=Rc(s);if(!r&&!(i!=="shell-syntax"&&i!=="builtin")){try{Uy.mkdirSync(HV.dirname(t),{recursive:!0}),Uy.writeFileSync(t,`#!/usr/bin/env bash
52
52
  # Written by ${n}: the recorded command, which needed a shell to run.
53
53
  set -euo pipefail
54
54
  ${s}
@@ -299,8 +299,8 @@ ${Wd}: ${t}`:s;e(["log","-1","--format=%(trailers:key=Signed-off-by,valueonly)"]
299
299
  `,r)+1||e.length+1)-1,s=0;for(;s<e.length;){let r=e[s],i=e[s+1],o=s+1;if(r==="/"&&i==="*")o=e.indexOf("*/",s+2)<0?e.length:e.indexOf("*/",s+2)+2,t.push({start:s,end:o});else if(r==="/"&&i==="/"&&!/[:\w]/.test(e[s-1]??"")||r==="#"&&/^\s?$/.test(e[s-1]??"")&&!/[!{[]/.test(i??""))o=n(s),t.push({start:s,end:o});else if((r==='"'||r==="'")&&e.startsWith(r.repeat(3),s)){let a=e.indexOf(r.repeat(3),s+3);o=a<0?e.length:a+3,rSe(e,s)&&t.push({start:s,end:o})}else(r==='"'||r==="'"||r==="`")&&(o=nSe(e,s,r));s=o}return t}var iSe=/\b(?:test|it|describe|context|suite|scenario|specify|Run|DisplayName)(?:\.\w+)*(?:\.each\s*(?:\((?:[^()]|\([^()]*\))*\)|`[^`]*`))?\s*\(\s*("(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|`(?:[^`\\]|\\.)*`)/g;function oSe(e,t){return[...e.matchAll(iSe)].flatMap(n=>{if(t.some(r=>n.index>=r.start&&n.index<r.end))return[];let s=n.index+n[0].length;return[{start:s-n[1].length,end:s}]})}function ku(e,t){if(t.length===0)return{content:e,cleaned:!1};let n=sSe(e),s=[];for(let a of n){let c=e.slice(a.start,a.end),u=Zd(c,t);u!==c&&s.push({...a,text:u})}let r=oSe(e,n),i=new Set(r.map(a=>e.slice(a.start+1,a.end-1)));for(let a of r){let c=e[a.start],u=e.slice(a.start+1,a.end-1),d=Zd(u,t);if(d===u)continue;let p=d;for(let h=2;i.has(p);h++)p=`${d} (${h})`;i.add(p),s.push({...a,text:`${c}${p}${c}`})}let o=e;for(let a of s.sort((c,u)=>u.start-c.start))o=`${o.slice(0,a.start)}${a.text}${o.slice(a.end)}`;return{content:o,cleaned:o!==e}}function cSe(e){return!!e.guardedDelivery||!!e.context?.some(t=>t.safety?.route==="persistence")}function Jg(e,t){let n=e.inputs.sharedEnvironment?.environmentAddress;return!!n&&(t.result?.cases??[]).some(s=>s.runtimeTargets?.some(r=>Jc(n,r)))}function _w(e,t,n=Yo().version){if(!jn(e.inputs))return[];let s=e.inputs.sharedEnvironment,r=s?.environmentAddress,i=Ce(e,QR),o=NG.safeParse(i),a=o.success&&o.data.environmentId===s?.environmentId&&o.data.environmentAddress===r?o.data:void 0,c=PG.safeParse(i),u=c.success?Jf(c.data.refusal):o.success?Jf("changed"):Jf("unavailable"),d=MK(e),p=new Map(xw(e,t).map(E=>[E.file,E.verdict])),h=eD(K_(e)),g=Ce(e,"recommend.json"),m=new Map((g?.generate??[]).map(({id:E,target:b})=>[E,b])),y=Ii(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),v=new Map;for(let E of t.tests){if(E.change==="deleted")continue;let b=y(E.file);if(!uo(b)||Zc(b.rel))continue;let I=na(e.inputs,b.repository);if("error"in I)continue;let C=I.source,w=An.resolve(C.path,b.rel),x=LK(E,d)??uSe(h,b),S=cSe(E),W=Jg(e,E),ue;if(!x&&!W&&!S){if(!w.endsWith(".test.cjs"))continue;try{if(!qg(C.path,w))continue;ue=ka(zt.readFileSync(w,"utf8"))}catch{continue}if(!ue||"restriction"in ue)continue}let q=(E.covers??[]).flatMap(pt=>{let Tt=m.get(pt)?.match(/^(GET|HEAD|OPTIONS|POST|PUT|PATCH|DELETE)\s+(\S+)/i);return!Tt||!r?[]:Tt[2].startsWith("/")||Jc(r,Tt[2])?[{method:Tt[1].toUpperCase(),route:Tt[2]}]:[]}),Ee=gSe(e,C.path,b.rel);if(!x&&E.change!=="added"&&(Ee===!1||Ee===void 0&&!e.inputs.deliver))continue;let Fe=pt=>`${E.file}: shared-environment delivery is blocked: ${pt}`,Me={repository:C.slug,file:b.rel,sourceAsset:`${b.rel}.source`},Te;try{if(!qg(C.path,w))throw new Error("invalid path");Te=zt.readFileSync(w)}catch{v.set(w,{record:Me,source:C,original:Buffer.alloc(0),problems:[Fe("test entry must be a regular file without symlinks")]});continue}if(E.change!=="added"&&xa(e,C.path,b.rel)){x&&(Me.reason=x,v.set(w,{record:Me,source:C,original:Te,problems:[]}));continue}if(Ee===!1||E.change!=="added"&&Ee!==!0){v.set(w,{record:Me,source:C,original:Te,problems:[Fe(Ee===!1?"the file changes an existing test; retain the assertions in a new file":"cannot prove whether the shared test already exists; use a host-pinned checkout")]});continue}if(ue??=ka(Te.toString("utf8")),!x&&ue&&"restriction"in ue)continue;let X,G=bw.safeParse(E.guardedDelivery),Ke=a&&s?{environmentId:a.environmentId,environmentAddress:a.environmentAddress,persistenceRevision:a.revision,offLimits:s.offLimits??[],route:{kind:"persistence"}}:void 0,ut=`environment restriction: persistence permission was not confirmed at generation: ${u}`;if(x)X=x;else if(S&&!Ke)X=ut;else if(!G.success||!Ke)X="no guarded HTTP representation preserves the test's assertions";else if(!E.covers?.length||(E.functions?.length??1)!==1)X="guarded HTTP delivery requires one test function";else if(!/\.test\.cjs$/.test(b.rel)||!fSe(E.ci))X="the test has no compatible Node CI entry";else if(!E.ci?.collected&&p.get(E.file)!=="not-collected")X="Testbot could not confirm that the repo's CI leaves it out, and only node --test can run the entry";else if(!hSe(C.path,w,n))X=`the CI package does not declare @skyramp/testbot-core ${n}, the released guarded runtime the entry needs`;else{let{steps:pt}=G.data,Tt=Ke.offLimits.length?b_(e.inputs.skyrampMcp,Ke.offLimits):void 0,dn=new Map,Qt=pt.flatMap(Le=>{if(Le.op==="create"){let We=lSe(Ke.environmentAddress,Le.collection);return We&&dn.set(Le.as,We),[{method:"POST",url:We,child:!1}]}if(Le.op!=="read"&&Le.op!=="update")return[];let ee=dn.get(Le.resource);return ee&&dn.set(Le.as,ee),[{method:Le.op==="read"?"GET":Le.method??"PATCH",url:ee,child:!0}]});Qt.some(({url:Le})=>!Le)?X="the guarded HTTP steps name an unknown resource or a collection outside the Test Environment":Tt&&s&&Qt.some(({url:Le,child:ee})=>!ee&&C4(Le.href,s,Tt))?X="the guarded HTTP steps name an off-limits collection":q.length&&!q.some(({method:Le,route:ee})=>Qt.some(We=>We.url&&We.method===Le&&dSe(Ke.environmentAddress,We.url,We.child,ee)))&&(X="the guarded HTTP steps do not represent the planned HTTP operation")}let Pt;if(X)Me.reason=X;else if(G.success&&Ke){let{bearerTokenEnv:pt,...Tt}=G.data;Pt={...Tt,definition:{...Ke,...pt?{bearerTokenEnv:pt}:{}}},Me.entry=b.rel}let $t=An.resolve(C.path,Me.sourceAsset),sn=QD($t)&&!Tw(C.path,$t,Te)?[Fe("the inert source asset path already contains different bytes")]:[];v.set(w,{record:Me,source:C,original:Te,spec:Pt,problems:sn})}return[...v.values()]}function uSe(e,t){return e.find(n=>X_(n,{file:t.rel,repository:t.repository}))?.environmentRestriction}function lSe(e,t){try{let n=new URL(t,`${e.replace(/\/$/,"")}/`);return!n.search&&!n.hash&&!n.username&&!n.password&&!/[\\]|%(?:2f|5c|2e|25)/i.test(t)&&Jc(e,n.href)?n:void 0}catch{return}}function dSe(e,t,n,s){try{let r=new URL(s,t.origin),i=s.startsWith("/")&&!s.startsWith("//")&&!Jc(e,r.href)?new URL(s.slice(1),`${e.replace(/\/$/,"")}/`):r;if(!Jc(e,i.href))return!1;let o=t.pathname.replace(/\/$/,""),a=i.pathname.replace(/\/$/,"");if(!n)return a===o;if(!a.startsWith(`${o}/`))return!1;let c=decodeURIComponent(a.slice(o.length+1));return/^(:[\w-]+|\{[^/{}]+\}|<[^/<>]+>)$/.test(c)}catch{return!1}}function pSe(e){return!!e&&/^(?:node|node:test|node\s+(?:.*\s)?--test(?:\s.*)?)$/i.test(e.trim())}function fSe(e){return e?.collected===!1||!!e?.collected&&pSe(e.runner)}function qg(e,t){let n=zt.realpathSync(e);return zt.lstatSync(t).isFile()&&zt.realpathSync(t)===An.join(n,An.relative(e,t))}function Tw(e,t,n){try{return qg(e,t)&&zt.readFileSync(t).equals(n)}catch{return!1}}function QD(e){try{return zt.lstatSync(e),!0}catch(t){if(t.code==="ENOENT")return!1;throw t}}function hSe(e,t,n){if(n==="unknown")return!1;for(let s=An.dirname(t);;s=An.dirname(s)){let r=An.join(s,"package.json");if(QD(r))try{if(!qg(e,r))return!1;let i=JSON.parse(zt.readFileSync(r,"utf-8"));return(i.devDependencies?.["@skyramp/testbot-core"]??i.dependencies?.["@skyramp/testbot-core"])===n}catch{return!1}if(s===e)return!1}}function Wg(e){let t=Ce(e,"write.json");return t?_w(e,t):[]}function qK(e,t=Wg(e),n=[],s=[]){return t.flatMap(({record:r,source:i,original:o,spec:a,problems:c})=>{if(c.length)return c;let u=An.join(i.path,r.sourceAsset),d=An.join(i.path,r.file);try{if(!qg(i.path,d)||!zt.readFileSync(d).equals(o))return[`${r.file}: native source changed before guarded delivery`];let p=ku(o.toString("utf-8"),n).content;if(ra(p,e.secretValues??[])!==p)return[`${r.file}: the retained source contains a credential`];let h=Yd(i.path,r.sourceAsset,Buffer.from(p));if(QD(u)){if(!Tw(i.path,u,o)&&!Tw(i.path,u,h))return[`${r.file}: the inert source asset path already contains different bytes`];Tw(i.path,u,h)||(s.push(()=>zt.writeFileSync(u,o)),zt.writeFileSync(u,h))}else zt.writeFileSync(u,h,{flag:"wx"}),s.push(()=>zt.rmSync(u,{force:!0}));if(r.entry&&a){let g=Pg({...a,name:Zd(a.name,n)}),m=Yd(i.path,r.entry,Buffer.from(g));if(!ka(m.toString("utf-8")))return[`${r.file}: the repository's file conventions changed the guarded entry`];if(ra(m.toString("utf-8"),e.secretValues??[])!==m.toString("utf-8"))return[`${r.file}: guarded delivery steps include a credential`];s.push(()=>zt.writeFileSync(d,o)),zt.writeFileSync(d,m)}return[]}catch{return[`${r.file}: could not assemble its guarded delivery files`]}})}function gSe(e,t,n){let s=e.executionSafetySources?.find(r=>An.resolve(r.path)===An.resolve(t));if(s)try{return(0,Qw.execFileSync)("git",["--literal-pathspecs","ls-tree",s.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]})===""}catch{return}}function xa(e,t,n){let s=e.executionSafetySources?.find(r=>An.resolve(r.path)===An.resolve(t));if(!s||!/^[a-f0-9]{40,64}$/.test(s.head))return!1;try{let r=An.join(t,n),i=zt.lstatSync(r);if(!i.isFile()||zt.realpathSync(r)!==r)return!1;let o=(0,Qw.execFileSync)("git",["--literal-pathspecs","ls-tree",s.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]});return!/^100(?:644|755) blob /.test(o)||(i.mode&73)!==0!==o.startsWith("100755")?!1:zt.readFileSync(r).equals((0,Qw.execFileSync)("git",["show",`${s.head}:${n}`],{cwd:t,stdio:["ignore","pipe","ignore"]}))}catch{return!1}}function mSe(e){try{return Dw.lstatSync(e),!0}catch{return!1}}function Nw(e,t=Wg(e)){let n=new Set(t.filter(({record:v})=>!v.entry).map(({source:v,record:E})=>$n.join(v.path,E.file))),s=Ce(e,"adapt.json"),r=Ce(e,"finalize.json"),i=Ce(e,Lg),o=new Map,a=v=>{let E=na(e.inputs,v);if("error"in E)return;let b=o.get(E.source.path)??{source:E.source,paths:new Set};return o.set(E.source.path,b),{repo:b.source.path,paths:b.paths}},c=(v,E)=>$n.relative(v,$n.resolve(v,E.trim())).replace(/\/+$/,""),u=(v,E)=>{let b=E?.trim()&&a(v);if(!b)return;let I=c(b.repo,E);b.paths.add(I);for(let C of["__init__.py","conftest.py"]){let w=$n.join($n.dirname(I),C);Dw.existsSync($n.join(b.repo,w))&&(!n.has($n.join(b.repo,I))||!xa(e,b.repo,w))&&b.paths.add(w)}},d=(v,E)=>{if(typeof E!="string"||!E.trim())return;let b=a(v);if(!b)return;let I=c(b.repo,E);if(kg($n.join(b.repo,I)))return b.paths.add(I),{...b,rel:I}},p=xD(e),h=(s?.items??[]).filter(v=>v.action==="place"&&p.has(v.from??v.file??"")),g=(v,E)=>h.some(b=>b.repository===v&&b.file&&$n.normalize(b.file)===E),m=(s?.items??[]).filter(v=>!h.includes(v));for(let v of[...m,...i?.tests??[],...i?.maintained??[]])u(v.repository,v.file);for(let v of r?.dependencies?.added??[]){let E=d(v.repository,v.manifest);if(E)for(let b of O_(E.repo,sw(E.repo,E.rel)))E.paths.add(b)}for(let v of r?.lint??[])for(let E of v.fixed??[])d(v.repository,E);for(let v of r?.support??[])d(v.repository,v.file);let y=Ce(e,aw)?.packages??[];for(let v of new Set(y.map(E=>E.repository))){let E=a(v),b=y.filter(I=>I.repository===v).map(I=>I.dir);if(E)for(let{path:I}of vw(E.repo)){let C=c(E.repo,I),w=$n.join(E.repo,C);cw(C,b)&&!j_(C)&&!g(v,C)&&(!mSe(w)||kg(w))&&E.paths.add(C)}}for(let{record:v,source:E,problems:b}of t){let I=o.get(E.path)?.paths;I?.has(v.file)&&(I.delete(v.file),!b.length&&(v.entry&&I.add(v.entry),I.add(v.sourceAsset)))}return new Map([...o.values()].map(({source:v,paths:E})=>[v,[...E].filter(b=>b&&b!==".."&&!b.startsWith(`..${$n.sep}`)&&!Zc(b))]))}var KJe=5*6e4,XJe=12*6e4,eWe=2*6e4;var oWe=["class TestbotProjectBrowsers {"," onBegin(config) {",' const projects = config.projects.map((p) => ({ browserName: p.use.browserName ?? p.use.defaultBrowserType ?? "chromium", channel: p.use.channel ?? null }));',' process.stdout.write("TESTBOT_PROJECT_BROWSERS " + JSON.stringify(projects) + "\\n");'," }"," printsToStdio() { return true; }","}","module.exports = TestbotProjectBrowsers;",""].join(`
300
300
  `);var Br=Y(require("fs")),po=Y(require("path"));var $a=Y(require("fs")),Pw=Y(require("path"));var ESe="change-inputs",vSe=(e,t)=>`${t}-${e.replace(/[^\w.-]+/g,n=>n==="/"?"__":"-")}.md`;function bSe(e){return[...(e.pullRequests??[]).map(t=>({label:`${t.repository}#${t.number}`,body:t.body?.trim()??""})),...(e.relatedRepos??[]).map(t=>({label:t.slug,body:t.prDescription?.trim()??""}))].map((t,n)=>({...t,file:vSe(t.label,n)})).filter(t=>t.body.length>xz)}function JK(e,t,n){let s=Pw.join(t,ESe);$a.rmSync(s,{recursive:!0,force:!0}),$a.mkdirSync(s,{recursive:!0}),$a.writeFileSync(Pw.join(s,Yc),n,{mode:292});for(let r of bSe(e))$a.writeFileSync(Pw.join(s,r.file),`${r.body}
301
301
  `,{mode:292})}var wSe=[/^\.github\//,/^\.gitlab(-ci)?/,/^\.circleci\//,/(^|\/)Jenkinsfile$/,/^docs?\//,/\.(md|mdx|rst)$/i,/(^|\/)LICENSE([._-].*)?$/i,/(^|\/)CODEOWNERS$/,/(^|\/)\.gitignore$/,/(^|\/)\.gitattributes$/,/(^|\/)\.editorconfig$/,/(^|\/)\.prettierrc[^/]*$/,/(^|\/)\.eslintrc[^/]*$/,/(^|\/)eslint\.config\.[^/]+$/,/(^|\/)package-lock\.json$/,/(^|\/)yarn\.lock$/,/(^|\/)pnpm-lock\.yaml$/,/(^|\/)poetry\.lock$/,/(^|\/)Pipfile\.lock$/,/(^|\/)Cargo\.lock$/,/(^|\/)go\.sum$/,/(^|\/)composer\.lock$/,/(^|\/)Gemfile\.lock$/,/\.(png|jpe?g|gif|svg|ico|webp)$/i];function WK(e){return wSe.some(t=>t.test(e))}function ISe(e){let t=[],n=e.inputs.repositoryPath;return!n||!Br.existsSync(n)?t.push(`repository path does not exist: ${n}`):kR(n)?zl(n,e.inputs.baseBranch)||t.push(e.inputs.baseBranch?`base branch "${e.inputs.baseBranch}" does not resolve`:"could not auto-detect a base branch (origin/HEAD, main, master)"):t.push(`not a git repository: ${n}`),{ok:t.length===0,reasons:t}}function CSe(e){return(e.inputs.relatedRepos??[]).map(t=>{let n=Br.existsSync(t.path)?oE(t.path,t.base):void 0;return n?{repository:t.slug,changedFiles:n.changedFiles}:{repository:t.slug,changedFiles:[],note:`could not read the change in ${t.path}`}})}function SSe(e){Br.rmSync(po.join(e.runDir,YR),{recursive:!0,force:!0});for(let t of e.inputs.relatedRepos??[]){let n=Br.existsSync(t.path)?RR(t.path,t.base):void 0;if(!n)continue;let s=po.join(e.runDir,ZR(t.slug));Br.mkdirSync(po.dirname(s),{recursive:!0}),Br.writeFileSync(s,n.diffContent)}}function kSe(e){let{repositoryPath:t,baseBranch:n}=e.inputs;Br.rmSync(po.join(t,pD),{recursive:!0,force:!0});let s=oE(t,n);if(!s)throw new Error(`could not compute git facts for ${t}`);let r=RR(t,n);if(!r)throw new Error(`could not compute the PR diff for ${t}`);let i=CSe(e),o=[s.changedFiles,...i.map(p=>p.changedFiles)].flat(),a=o.map(p=>p.path).filter(WK),c=!Kl(e)&&o.length>0&&a.length===o.length,u={schemaVersion:1,repository:{path:t,currentBranch:s.currentBranch,baseBranch:s.baseBranch},changedFiles:s.changedFiles,...i.length?{relatedChanges:i}:{},newFiles:r.newFiles,deletedFiles:r.deletedFiles,diffStat:r.diffStat,diffBytes:r.diffContent.length,nonApplicationFiles:a,nonApplicationOnly:c,sutRequired:!c};Br.writeFileSync(po.join(e.runDir,Yc),r.diffContent),JK(e.inputs,e.runDir,r.diffContent),SSe(e);let d=po.join(e.runDir,WR);return Br.mkdirSync(po.dirname(d),{recursive:!0}),Br.writeFileSync(d,JSON.stringify(u,null,2)+`
302
- `),e.prepared={preflight:u},{preflight:WR,diff:Yc}}var uYe={name:"preflight",timeoutMinutes:1,requires:[],validateInput:ISe,execute:kSe};var Ru=Y(require("path"));var mYe={python:"pytest",typescript:"playwright",javascript:"playwright"},AYe={pytest:"pytest",playwright:"playwright"};var TSe=new Set(["package.json","package-lock.json","npm-shrinkwrap.json","pnpm-lock.yaml","yarn.lock","bun.lock","bun.lockb","pyproject.toml","poetry.lock","uv.lock","pdm.lock","Pipfile","Pipfile.lock","setup.py","setup.cfg","go.mod","go.sum","Gemfile","Gemfile.lock","pom.xml","build.gradle","build.gradle.kts"]);function YK(e){let t=Ru.basename(e);return TSe.has(t)||/^requirements[^/\\]*\.(txt|in)$/.test(t)}var Yg=Y(require("path"));function QSe(e){return Un(iD,e).errors}function _Se(e,t=[]){let{value:n,error:s}=Jt(e,t);if(s)return{errors:[s]};let r=QSe(n);return r.length>0?{errors:r}:{finalize:n,errors:[]}}var DSe="finalize-scratch";function NSe(e,t){let n=_Se(e.stdout,t?.secretValues);if(!n.finalize||!t?.outputsDir)return n;let s=(r,i)=>r.trim()&&My(r.trim(),Yg.join(t.outputsDir,DSe,i),"finalize")||r;return{...n,finalize:{...n.finalize,lint:n.finalize.lint.map((r,i)=>({...r,command:s(r.command??"",`lint-${i+1}.sh`)}))}}}var nZe=Er("finalize-schema",(e,t)=>NSe(t,e));function _D(e){return e.functions?.length?e.functions:[(e.testType==="unit"?e.testId.split("::").slice(1).join("::").replace(/\[.*\]$/,""):"")||e.testId]}function Kd(e){return new Set(e.flatMap(t=>_D(t).map(n=>`${t.repository??""}\0${t.fileName}\0${n}`))).size}function PSe(e){return Un(sD,e).errors}function ZK(e,t=[]){let{value:n,error:s}=Jt(e,t);if(s)return{errors:[s]};let r=PSe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}function OSe(e,t=[]){return ZK(e.stdout,t)}var IZe=Er("analysis-schema",(e,t)=>OSe(t,e.secretValues));var d6e=Dy.rows.notRun(!0);var Zg="kept, not ";var Kg="(declined the planned ";function DD(e){if(!e)return[];let t=[],n=0,s=0;for(let r=0;r<e.length;r++){let i=e[r];i==="("?n++:i===")"?n=Math.max(0,n-1):n===0&&i===";"&&e[r+1]===" "&&e[r-1]===")"&&(t.push(e.slice(s,r)),s=r+2)}return t.push(e.slice(s)),t.map(r=>{let i=r.trim();if(!i.endsWith(")"))return{expectation:i};let o=0;for(let a=i.length-1;a>=0;a--)if(i[a]===")")o++;else if(i[a]==="("&&--o===0){let c=i.slice(0,a).trim(),u=i.slice(a+1,-1).trim();return c&&u?{expectation:c,expected:u}:{expectation:i}}return{expectation:i}})}var ND=new Set(["update","regenerate","delete"]);var p6e={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var KK=l.string().trim().min(1),PD=l.object({schemaVersion:l.literal(1).optional(),businessCaseAnalysis:KK.describe("1-2 sentences: what this change means for a user, and whether the evidence shows it working; no count of tests, which the report gives"),issuesFound:l.array(l.object({description:KK,severity:l.string().optional().describe("critical | high | medium | low"),category:l.string().optional().describe("bug | lint | type | config"),sourceFile:l.string().optional(),sourceLine:l.number().optional(),findingId:l.string().optional(),requirementIds:l.array(l.string()).optional()})).describe("every real problem this run exposed \u2014 cause, file:line, severity"),nextSteps:l.array(l.string()).describe("concrete follow-ups the author can act on; required non-empty when a disclosure is BLOCKING")});function GSe(e){return Un(PD,e).errors}function zSe(e,t=[]){let{value:n,error:s}=Jt(e.stdout,t);if(s)return{errors:[s]};let r=GSe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}var I6e=Er("report-schema",(e,t)=>zSe(t,e.secretValues));var JSe="report.json",WSe="report-display.json",D6e={en:"English",ja:"Japanese"};function e6(e){let t=OD.join(e,WSe);if(Ta.existsSync(t))try{return JSON.parse(Ta.readFileSync(t,"utf-8"))}catch{}let n=OD.join(e,JSe);return Ta.existsSync(n)?JSON.parse(Ta.readFileSync(n,"utf-8")):void 0}var t6="testbot.deliverFrom";var YSe=/^Testbot: merge (?:PR #(\d+)|branch (.+))$/;function n6(e,t,n){return e(["log","--merges","--first-parent","--reverse","--format=%H%x09%s",`${t}..${n}`]).split(`
303
- `).filter(Boolean).flatMap(s=>{let[r,i]=s.split(" "),o=YSe.exec(i??"");if(!o)return[];let a=new Set(e(["diff","--name-only","-z",`${r}^1`,r]).split("\0").filter(Boolean));return[{...o[1]?{pullRequest:o[1]}:{branch:o[2]},files:a}]})}var Q6=require("node:zlib");var L6e=["clean","recipe-drift"];var kt=Y(require("node:fs")),Je=Y(require("node:path")),Fw=require("node:crypto"),UD=require("node:child_process");function ZSe(e,t,n=Yo().version){if(!jn(e.inputs))return[];let s=Ii(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=_w(e,t,n),i=new Map(r.map(o=>[Je.resolve(o.source.path,o.record.file),o.problems]));return t.tests.flatMap(o=>{let a=s(o.file),c=i.get(Je.resolve(a.root,a.rel));if(c)return c;if(o.change!=="added")return[];if(!Jg(e,o))return[];let d=g=>[`${o.file}: shared-environment delivery is blocked: ${g}`];if(!uo(a))return d("test file is outside its checkout");let p;try{let g=Je.join(a.root,a.rel);if(!kt.lstatSync(g).isFile()||kt.realpathSync(g)!==g)return d("test entry must be a regular file without symlinks");p=ka(kt.readFileSync(g,"utf-8"))}catch{return d("test file is unavailable")}if(!p)return d("use the exact supported delivered harness; preserve unsupported assertions in an inactive source asset, never unrestricted executable code");if("restriction"in p){if(!p.sourceAsset.path.endsWith(".source"))return d("restricted source asset must use an inactive .source extension");let g=Je.resolve(Je.dirname(Je.join(a.root,a.rel)),p.sourceAsset.path),m=Je.relative(a.root,g);if(!m||m.startsWith("..")||Je.isAbsolute(m))return d("restricted source asset must remain inside its checkout");try{if(!kt.lstatSync(g).isFile()||kt.realpathSync(g)!==g||(0,Fw.createHash)("sha256").update(kt.readFileSync(g)).digest("hex")!==p.sourceAsset.sha256)return d("restricted source asset is missing, changed or a symlink")}catch{return d("restricted source asset is unavailable")}if(!(t.supportFiles??[]).some(y=>{let v=s(y);return Je.join(v.root,v.rel)===g}))return d("restricted source asset must be delivered in supportFiles")}else{let g=e.inputs.sharedEnvironment;if(p.definition.environmentId!==g?.environmentId||p.definition.environmentAddress!==g?.environmentAddress)return d("harness identity/address differs from the selected Test Environment");if((g.offLimits??[]).some(m=>!p.definition.offLimits.includes(m)))return d("harness omits a configured off-limits route")}if(n==="unknown")return e.inputs.deliver?d("guarded CI delivery is unavailable from an unreleased engine build"):[];let h=Je.dirname(Je.join(a.root,a.rel));for(;h.startsWith(a.root);){let g=Je.join(h,"package.json");if(kt.existsSync(g))try{let m=JSON.parse(kt.readFileSync(g,"utf-8"));return(m.devDependencies?.["@skyramp/testbot-core"]??m.dependencies?.["@skyramp/testbot-core"])===n?[]:d("declare the exact released engine version containing this harness; an unavailable or older runtime cannot protect direct invocation")}catch{return d("test package manifest is unreadable")}if(h===a.root)break;h=Je.dirname(h)}return d("the delivered test has no package manifest declaring its guarded runtime")})}function MD(e){if(!jn(e.inputs))return[];let t=Ce(e,"write.json");if(!t)return["shared-environment delivery requires its generated-test record"];let n=Ii(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),s=_w(e,t),r=new Map(s.map(p=>[Je.resolve(p.source.path,p.record.file),p])),i=t.tests.filter(p=>{let h=n(p.file);return!r.has(Je.resolve(h.root,h.rel))&&p.change!=="updated"&&Jg(e,p)});if(!i.length&&!s.length)return t.tests.flatMap(p=>{if(p.change!=="deleted")return[];let h=n(p.file);return uo(h)&&kt.existsSync(Je.join(h.root,h.rel))?[`${p.file}: a deleted test must actually be absent`]:[]});let o=i.filter(p=>{let h=n(p.file);return p.change!=="deleted"&&!xa(e,h.root,h.rel)}).map(p=>({...p,change:"added"})),a=[...s.flatMap(p=>p.problems),...ZSe(e,{...t,tests:o})],c=Nw(e,s),u=new Set([...c].flatMap(([p,h])=>h.map(g=>Je.resolve(p.path,g)))),d=new Set;for(let p of t.tests){let h=n(p.file),g=Je.resolve(h.root,h.rel),m=r.get(g);if(m){d.add(Je.resolve(h.root,m.record.sourceAsset)),m.record.entry&&d.add(g);continue}if(p.change==="deleted"){XSe(e,h.root,h.rel)?d.add(g):a.push(`${p.file}: a deleted shared-environment test must actually be absent and be a tracked regular file in the host-pinned source`);continue}if(p.change==="updated"||!Jg(e,p)){d.add(g);continue}if(xa(e,h.root,h.rel)){d.add(g);continue}try{let y=ka(kt.readFileSync(g,"utf-8"));if(!y)continue;if(d.add(g),"restriction"in y){let v=Je.resolve(Je.dirname(g),y.sourceAsset.path);d.add(v),!u.has(v)&&!xa(e,h.root,Je.relative(h.root,v))&&a.push(`${p.file}: its restricted source asset is missing from the actual delivery commit`)}}catch{}}for(let[p,h]of c)for(let g of h){let m=Je.resolve(p.path,g);d.has(m)||!s.length&&!e.inputs.deliver&&Yo().version==="unknown"||KSe(e,p.path,g)||a.push(`${g}: shared-environment delivery refuses an unverified executable/support/manifest path`)}return a}function Qa(e){return Array.isArray(e)?`[${e.map(Qa).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([t],[n])=>t.localeCompare(n)).map(([t,n])=>`${JSON.stringify(t)}:${Qa(n)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function KSe(e,t,n){let s=Je.basename(n);if(s!=="package.json"&&s!=="package-lock.json")return!1;let r=Yo().version;if(r==="unknown")return!1;let i,o;try{let a=Je.resolve(t,n);if(!kt.lstatSync(a).isFile()||kt.realpathSync(a)!==a)return!1;i=JSON.parse(kt.readFileSync(a,"utf-8"));let c=e.executionSafetySources?.find(h=>Je.resolve(h.path)===Je.resolve(t));if(c)try{o=JSON.parse((0,UD.execFileSync)("git",["show",`${c.head}:${n}`],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}))}catch{}else if(kt.existsSync(Je.join(t,".git")))return!1;let u=h=>{let g=structuredClone(h);for(let m of["dependencies","devDependencies"])g[m]&&(delete g[m]["@skyramp/testbot-core"],Object.keys(g[m]).length||delete g[m]);return g};if(s==="package.json")return(i.devDependencies?.["@skyramp/testbot-core"]??i.dependencies?.["@skyramp/testbot-core"])!==r?!1:o?Qa(u(i))===Qa(u(o)):Object.keys(i).every(h=>["name","version","private","type","scripts","dependencies","devDependencies"].includes(h))&&(!i.scripts||Qa(i.scripts)===Qa({test:"node --test"}))&&Object.keys(i.dependencies??{}).every(h=>h==="@skyramp/testbot-core")&&Object.keys(i.devDependencies??{}).every(h=>h==="@skyramp/testbot-core");let d=i.packages?.["node_modules/@skyramp/testbot-core"];if(!d||d.version!==r||d.link||d.hasInstallScript||d.resolved!==`https://registry.npmjs.org/@skyramp/testbot-core/-/testbot-core-${r}.tgz`||!/^sha512-[A-Za-z0-9+/=]+$/.test(d.integrity??""))return!1;let p=h=>{let g=structuredClone(h);return g.packages&&(delete g.packages["node_modules/@skyramp/testbot-core"],g.packages[""]&&(g.packages[""]=u(g.packages[""]))),g};return o?Qa(p(i))===Qa(p(o)):Object.keys(i.packages??{}).every(h=>h===""||h==="node_modules/@skyramp/testbot-core")&&!i.packages?.[""]?.scripts}catch{return!1}}function XSe(e,t,n){try{return kt.lstatSync(Je.join(t,n)),!1}catch(r){if(r.code!=="ENOENT")return!1}let s=e.executionSafetySources?.find(r=>Je.resolve(r.path)===Je.resolve(t));if(!s||!/^[a-f0-9]{40,64}$/.test(s.head))return!1;try{return/^100(?:644|755) blob /.test((0,UD.execFileSync)("git",["--literal-pathspecs","ls-tree",s.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}))}catch{return!1}}function r6(e,t,n=[]){if(!jn(e.inputs))return[];let s=[],r=Ii(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let i of t.tests){if(i.change==="deleted")continue;let o=r(i.file),a=Je.join(o.root,o.rel);if(!xa(e,o.root,o.rel))try{if(!uo(o)||!kt.lstatSync(a).isFile()||kt.realpathSync(a)!==a)continue;let c=ka(kt.readFileSync(a,"utf-8"));if(!c)continue;if("restriction"in c){let d=Je.resolve(Je.dirname(a),c.sourceAsset.path),p=Je.relative(o.root,d);if(!p||p.startsWith("..")||Je.isAbsolute(p)||!kt.lstatSync(d).isFile()||kt.realpathSync(d)!==d){s.push(`${i.file}: restricted source asset is not a regular file in its checkout`);continue}let h=kt.readFileSync(d);if((0,Fw.createHash)("sha256").update(h).digest("hex")!==c.sourceAsset.sha256){s.push(`${i.file}: restricted source asset changed before trusted formatting; not refreshing its hash`);continue}let g=ku(h.toString("utf-8"),n).content,m=Yd(o.root,p,Buffer.from(g));kt.writeFileSync(d,m),c.sourceAsset.sha256=(0,Fw.createHash)("sha256").update(m).digest("hex")}let u=ku(Pg(c),n).content;kt.writeFileSync(a,Yd(o.root,o.rel,Buffer.from(u)))}catch{s.push(`${i.file}: could not assemble its guarded entry after trusted formatting`)}}return s}var yn=Y(require("fs")),js=Y(require("path")),I6=Y(require("crypto")),C6=require("child_process");var LD=require("child_process"),Xd=Y(require("fs")),s6=Y(require("os")),Uw=Y(require("path"));var eke={onPath:e=>(0,LD.spawnSync)("sh",["-c",`command -v ${e}`],{stdio:"ignore"}).status===0,run:(e,t)=>(0,LD.spawnSync)(e[0],e.slice(1),{cwd:t,stdio:"ignore",timeout:6e4}).status??1},Xg={cleanup:()=>{}},tke=new Set(["pnpm","yarn"]);function i6(e,t=s6.tmpdir(),n=eke){if(process.platform==="win32")return Xg;try{if(Mr(e))return Xg;let s=D_(e);if(!tke.has(s)||n.onPath(s)||!n.onPath("corepack"))return Xg;Xd.mkdirSync(t,{recursive:!0});let r=Xd.mkdtempSync(Uw.join(t,"testbot-pm-")),i=()=>Xd.rmSync(r,{recursive:!0,force:!0});return n.run(["corepack","enable","--install-directory",r,s],e)!==0?(i(),Xg):{dir:r,cleanup:i}}catch{return Xg}}function o6(e,t=process.env){return e.dir?{...t,PATH:[e.dir,t.PATH].filter(Boolean).join(Uw.delimiter)}:t}var rm=require("crypto");var jD="<!-- skyramp-testbot -->",VD=ND,rke=new Set(["lint","type","config"]),a6={critical:0,high:1,medium:2,low:3},g6=new Set(["Pass","Fail"]);var GD=e=>Vo(re().statusLabels,e),Lw=e=>Vo(re().testTypeCellLabels,e);function dt(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}function c6(e){return e.inferred?" (inferred)":""}function u6(e,t){return!e||!g6.has(e)?"\u2014":t?`${GD(e)} (${dt(m6(t))})`:GD(e)}function m6(e){let t=s=>{let r=s.indexOf(": ");return r<0?s:Vo(re().staged.maintenanceActions,s.slice(0,r))+s.slice(r)};if(e.startsWith(Zg))return re().staged.keptNot+t(e.slice(Zg.length));let n=e.indexOf(Kg);return n<0?e:e.slice(0,n)+re().staged.declinedPlanned+t(e.slice(n+Kg.length))}function l6(e){return e.category!==void 0&&rke.has(e.category.toLowerCase())}function d6(e,t){return(a6[(e.severity??"").toLowerCase()]??4)-(a6[(t.severity??"").toLowerCase()]??4)}var jw=e=>e?.length?` (${e.join(", ")})`:"";function p6(e){return`- ${e.severity?`**[${Vo(re().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}${jw(e.pullRequests)}`}function ske(e){let t=e.resultId?.split("#").slice(1).join("#");if(e.testType!=="unit"||!t)return;let n=t;try{n=decodeURIComponent(t)}catch{}let s=/^(.*?)(\[.*\])$/.exec(n);return s?{fn:s[1],kase:s[2]}:{fn:n}}var A6=(e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,"");function y6(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}function zD(e,t){return y6(e,n=>A6(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}function HD(e,t){return y6(e,n=>A6(n.writtenAs??n.fileName,t))}function ike(e,t,n){return n?zD(e,{fileName:t,repository:n}):HD(e,t)}function oke(e){let t=[],n=new Map;for(let o of e.newTestsCreated)o.testType==="unit"&&n.set(o.fileName,[...n.get(o.fileName)??[],o.testId.split("::").slice(1).join("::")]);let s=new Map,r=(o,a)=>(n.get(o??"")??[]).find(c=>c!==a&&sZ(a,c)),i=new Map;for(let o of e.testResults){let a=ske(o),c=a&&!a.kase?r(o.fileName,a.fn):void 0;if(a&&c&&(a={fn:c,kase:`"${a.fn}"`}),a?.kase&&s.set(o,a.kase),!a){t.push({testId:o.testId,testType:o.testType,endpoint:o.endpoint,status:o.status,details:o.details??"",...o.fileName?{fileName:o.fileName}:{},...o.repository?{repository:o.repository}:{}});continue}let u=`${o.fileName??""}#${a.fn}`,d=i.get(u);d||(d={row:{testId:o.testId,testType:o.testType,endpoint:o.endpoint,status:o.status,details:"",test:a.fn,...o.fileName?{fileName:o.fileName}:{},...o.repository?{repository:o.repository}:{}},cases:[]},i.set(u,d),t.push(d.row)),d.cases.push(o)}for(let{row:o,cases:a}of i.values()){let c=a.filter(h=>h.status==="Fail"),u=a.filter(h=>h.status==="Pass").length,d=a.filter(h=>h.status==="Skipped").length;o.cases=a.length,o.status=c.length?"Fail":d?"Skipped":"Pass";let p=c[0];o.details=a.length===1?a[0].details??"":re().staged.casesPassed(u,a.length,d)+(p?`; ${s.get(p)??""} ${p.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}function ake(e){return DD(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${Yt(t.expected)}`)}function nm(e){return e.newTestsCreated.some(t=>t.testType!=="unit")&&e.testResults.every(t=>t.status==="Skipped")&&e.testResults.some(t=>t.failureCause?.kind==="environment"&&(t.failureCause.family==="app_not_started"||t.failureCause.family==="secret"))}function E6(e){let t=e.pullRequests??[];return t.length<2?[]:[re().staged.validatedTogether(t.map(n=>`${Yt(`${n.repository}#${n.number}`)}${n.title?` ${ys(n.title,120)}`:""}`).join("; "))]}function v6(e,t=1/0){let n=Array.from(e.name.replace(/\s+/g," ").trim()).slice(0,t).join("").replace(/[<>[\]()*_`\\|#]/g,"\\$&").replace(/@/g,"@\u200D");return e.kind==="person"?re().staged.requestedByPerson(n):re().staged.requestedByPolicy(n)}function b6(e,t={}){if(t.audience==="testbot-pr")return gke(e,t);let{audience:n,collapsed:s=!1,existingEvidence:r=[],requestedBy:i,sourcePullRequest:o}=t,a=n!=="comment",c=(e.requirements??[]).filter(w=>/^file-[a-f0-9]{16}-/i.test(w.id)).sort((w,x)=>x.id.length-w.id.length),u=w=>{let x=c.find(S=>w.toLowerCase().startsWith(S.id.toLowerCase()));return x?x.label+w.slice(x.id.length):w},d=[jD];o&&d.push(re().staged.testsSourcePullRequest(Yt(o)),"");for(let w of E6(e))d.push(w,"");i&&d.push(v6(i),""),e.notTranslated&&d.push(Vo(re().staged.notTranslated,e.notTranslated),"");let p=w=>{s?d.push("<details>",`<summary>${w}</summary>`,""):d.push(`### ${w}`)},h=()=>{s&&d.push("","</details>"),d.push("")};for(let w of e.businessCaseAnalysis.trim().split(/\r?\n/))d.push(`> ${w}`);if(d.push(""),nm(e)&&d.push(re().staged.noLiveApp(Kd(e.newTestsCreated)),""),a&&e.newTestsCreated.length){let w=new Map;for(let S of e.newTestsCreated){if(S.testType!=="unit")continue;let W=_D(S)[0],ue=w.get(S.fileName)??{functions:new Set,endpoints:[],descriptions:new Map};S.endpoint&&!ue.endpoints.includes(S.endpoint)&&ue.endpoints.push(S.endpoint);let q=S.description?.trim()??"",Ee=ue.descriptions.get(W)??[];Ee.includes(q)||Ee.push(q),ue.functions.add(W),ue.descriptions.set(W,Ee),w.set(S.fileName,ue)}let x=e.newTestsCreated.filter(S=>S.testType!=="unit");p(re().testRecommendationsImplementedHeader(Kd(e.newTestsCreated),x.length+Kd(e.newTestsCreated.filter(S=>S.testType==="unit"))));for(let[S,{functions:W,endpoints:ue,descriptions:q}]of w){let Ee=W.size;d.push(re().staged.unitTestsInFile(`\`${S}\``,Ee,ue.map(Te=>`\`${Te}\``).join(", ")),"");let Fe=new Map;for(let[Te,X]of q){let G=X.join("\0"),Ke=Fe.get(G)??{fns:[],descriptions:X};Ke.fns.push(Te),Fe.set(G,Ke)}let Me=0;for(let{fns:Te,descriptions:X}of Fe.values()){d.push(`${++Me}. ${Te.map(Ke=>`\`${Ke}\``).join(", ")}`);let G=[...new Set(X.flatMap(Ke=>ake(Ke)))];for(let Ke of G)d.push(` - ${Ke}`)}d.push("")}for(let S of x){let W=S.testId?Yt(u(S.testId)):Lw(S.testType),ue=S.fileName?` (\`${S.fileName}\`)`:"",q=S.endpoint?`
302
+ `),e.prepared={preflight:u},{preflight:WR,diff:Yc}}var uYe={name:"preflight",timeoutMinutes:1,requires:[],validateInput:ISe,execute:kSe};var Ru=Y(require("path"));var mYe={python:"pytest",typescript:"playwright",javascript:"playwright"},AYe={pytest:"pytest",playwright:"playwright"};var TSe=new Set(["package.json","package-lock.json","npm-shrinkwrap.json","pnpm-lock.yaml","yarn.lock","bun.lock","bun.lockb","pyproject.toml","poetry.lock","uv.lock","pdm.lock","Pipfile","Pipfile.lock","setup.py","setup.cfg","go.mod","go.sum","Gemfile","Gemfile.lock","pom.xml","build.gradle","build.gradle.kts"]);function YK(e){let t=Ru.basename(e);return TSe.has(t)||/^requirements[^/\\]*\.(txt|in)$/.test(t)}var Yg=Y(require("path"));function QSe(e){return Un(iD,e).errors}function _Se(e,t=[]){let{value:n,error:s}=Jt(e,t);if(s)return{errors:[s]};let r=QSe(n);return r.length>0?{errors:r}:{finalize:n,errors:[]}}var DSe="finalize-scratch";function NSe(e,t){let n=_Se(e.stdout,t?.secretValues);if(!n.finalize||!t?.outputsDir)return n;let s=(r,i)=>r.trim()&&My(r.trim(),Yg.join(t.outputsDir,DSe,i),"finalize")||r;return{...n,finalize:{...n.finalize,lint:n.finalize.lint.map((r,i)=>({...r,command:s(r.command??"",`lint-${i+1}.sh`)}))}}}var nZe=Er("finalize-schema",(e,t)=>NSe(t,e));function _D(e){return e.functions?.length?e.functions:[(e.testType==="unit"?e.testId.split("::").slice(1).join("::").replace(/\[.*\]$/,""):"")||e.testId]}function Kd(e){return new Set(e.flatMap(t=>_D(t).map(n=>`${t.repository??""}\0${t.fileName}\0${n}`))).size}function PSe(e){return Un(sD,e).errors}function ZK(e,t=[]){let{value:n,error:s}=Jt(e,t);if(s)return{errors:[s]};let r=PSe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}function OSe(e,t=[]){return ZK(e.stdout,t)}var IZe=Er("analysis-schema",(e,t)=>OSe(t,e.secretValues));var f6e=Dy.rows.notRun(!0);var Zg="kept, not ";var Kg="(declined the planned ";function DD(e){if(!e)return[];let t=[],n=0,s=0;for(let r=0;r<e.length;r++){let i=e[r];i==="("?n++:i===")"?n=Math.max(0,n-1):n===0&&i===";"&&e[r+1]===" "&&e[r-1]===")"&&(t.push(e.slice(s,r)),s=r+2)}return t.push(e.slice(s)),t.map(r=>{let i=r.trim();if(!i.endsWith(")"))return{expectation:i};let o=0;for(let a=i.length-1;a>=0;a--)if(i[a]===")")o++;else if(i[a]==="("&&--o===0){let c=i.slice(0,a).trim(),u=i.slice(a+1,-1).trim();return c&&u?{expectation:c,expected:u}:{expectation:i}}return{expectation:i}})}var ND=new Set(["update","regenerate","delete"]);var h6e={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var KK=l.string().trim().min(1),PD=l.object({schemaVersion:l.literal(1).optional(),businessCaseAnalysis:KK.describe("1-2 sentences: what this change means for a user, and whether the evidence shows it working; no count of tests, which the report gives"),issuesFound:l.array(l.object({description:KK,severity:l.string().optional().describe("critical | high | medium | low"),category:l.string().optional().describe("bug | lint | type | config"),sourceFile:l.string().optional(),sourceLine:l.number().optional(),findingId:l.string().optional(),requirementIds:l.array(l.string()).optional()})).describe("every real problem this run exposed \u2014 cause, file:line, severity"),nextSteps:l.array(l.string()).describe("concrete follow-ups the author can act on; required non-empty when a disclosure is BLOCKING")});function GSe(e){return Un(PD,e).errors}function zSe(e,t=[]){let{value:n,error:s}=Jt(e.stdout,t);if(s)return{errors:[s]};let r=GSe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}var S6e=Er("report-schema",(e,t)=>zSe(t,e.secretValues));var JSe="report.json",WSe="report-display.json",P6e={en:"English",ja:"Japanese"};function e6(e){let t=OD.join(e,WSe);if(Ta.existsSync(t))try{return JSON.parse(Ta.readFileSync(t,"utf-8"))}catch{}let n=OD.join(e,JSe);return Ta.existsSync(n)?JSON.parse(Ta.readFileSync(n,"utf-8")):void 0}var t6="testbot.deliverFrom";var YSe=/^Testbot: merge (?:PR #(\d+)|branch (.+))$/;function n6(e,t,n){return e(["log","--merges","--first-parent","--reverse","--format=%H%x09%s",`${t}..${n}`]).split(`
303
+ `).filter(Boolean).flatMap(s=>{let[r,i]=s.split(" "),o=YSe.exec(i??"");if(!o)return[];let a=new Set(e(["diff","--name-only","-z",`${r}^1`,r]).split("\0").filter(Boolean));return[{...o[1]?{pullRequest:o[1]}:{branch:o[2]},files:a}]})}var Q6=require("node:zlib");var V6e=["clean","recipe-drift"];var kt=Y(require("node:fs")),Je=Y(require("node:path")),Fw=require("node:crypto"),UD=require("node:child_process");function ZSe(e,t,n=Yo().version){if(!jn(e.inputs))return[];let s=Ii(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=_w(e,t,n),i=new Map(r.map(o=>[Je.resolve(o.source.path,o.record.file),o.problems]));return t.tests.flatMap(o=>{let a=s(o.file),c=i.get(Je.resolve(a.root,a.rel));if(c)return c;if(o.change!=="added")return[];if(!Jg(e,o))return[];let d=g=>[`${o.file}: shared-environment delivery is blocked: ${g}`];if(!uo(a))return d("test file is outside its checkout");let p;try{let g=Je.join(a.root,a.rel);if(!kt.lstatSync(g).isFile()||kt.realpathSync(g)!==g)return d("test entry must be a regular file without symlinks");p=ka(kt.readFileSync(g,"utf-8"))}catch{return d("test file is unavailable")}if(!p)return d("use the exact supported delivered harness; preserve unsupported assertions in an inactive source asset, never unrestricted executable code");if("restriction"in p){if(!p.sourceAsset.path.endsWith(".source"))return d("restricted source asset must use an inactive .source extension");let g=Je.resolve(Je.dirname(Je.join(a.root,a.rel)),p.sourceAsset.path),m=Je.relative(a.root,g);if(!m||m.startsWith("..")||Je.isAbsolute(m))return d("restricted source asset must remain inside its checkout");try{if(!kt.lstatSync(g).isFile()||kt.realpathSync(g)!==g||(0,Fw.createHash)("sha256").update(kt.readFileSync(g)).digest("hex")!==p.sourceAsset.sha256)return d("restricted source asset is missing, changed or a symlink")}catch{return d("restricted source asset is unavailable")}if(!(t.supportFiles??[]).some(y=>{let v=s(y);return Je.join(v.root,v.rel)===g}))return d("restricted source asset must be delivered in supportFiles")}else{let g=e.inputs.sharedEnvironment;if(p.definition.environmentId!==g?.environmentId||p.definition.environmentAddress!==g?.environmentAddress)return d("harness identity/address differs from the selected Test Environment");if((g.offLimits??[]).some(m=>!p.definition.offLimits.includes(m)))return d("harness omits a configured off-limits route")}if(n==="unknown")return e.inputs.deliver?d("guarded CI delivery is unavailable from an unreleased engine build"):[];let h=Je.dirname(Je.join(a.root,a.rel));for(;h.startsWith(a.root);){let g=Je.join(h,"package.json");if(kt.existsSync(g))try{let m=JSON.parse(kt.readFileSync(g,"utf-8"));return(m.devDependencies?.["@skyramp/testbot-core"]??m.dependencies?.["@skyramp/testbot-core"])===n?[]:d("declare the exact released engine version containing this harness; an unavailable or older runtime cannot protect direct invocation")}catch{return d("test package manifest is unreadable")}if(h===a.root)break;h=Je.dirname(h)}return d("the delivered test has no package manifest declaring its guarded runtime")})}function MD(e){if(!jn(e.inputs))return[];let t=Ce(e,"write.json");if(!t)return["shared-environment delivery requires its generated-test record"];let n=Ii(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),s=_w(e,t),r=new Map(s.map(p=>[Je.resolve(p.source.path,p.record.file),p])),i=t.tests.filter(p=>{let h=n(p.file);return!r.has(Je.resolve(h.root,h.rel))&&p.change!=="updated"&&Jg(e,p)});if(!i.length&&!s.length)return t.tests.flatMap(p=>{if(p.change!=="deleted")return[];let h=n(p.file);return uo(h)&&kt.existsSync(Je.join(h.root,h.rel))?[`${p.file}: a deleted test must actually be absent`]:[]});let o=i.filter(p=>{let h=n(p.file);return p.change!=="deleted"&&!xa(e,h.root,h.rel)}).map(p=>({...p,change:"added"})),a=[...s.flatMap(p=>p.problems),...ZSe(e,{...t,tests:o})],c=Nw(e,s),u=new Set([...c].flatMap(([p,h])=>h.map(g=>Je.resolve(p.path,g)))),d=new Set;for(let p of t.tests){let h=n(p.file),g=Je.resolve(h.root,h.rel),m=r.get(g);if(m){d.add(Je.resolve(h.root,m.record.sourceAsset)),m.record.entry&&d.add(g);continue}if(p.change==="deleted"){XSe(e,h.root,h.rel)?d.add(g):a.push(`${p.file}: a deleted shared-environment test must actually be absent and be a tracked regular file in the host-pinned source`);continue}if(p.change==="updated"||!Jg(e,p)){d.add(g);continue}if(xa(e,h.root,h.rel)){d.add(g);continue}try{let y=ka(kt.readFileSync(g,"utf-8"));if(!y)continue;if(d.add(g),"restriction"in y){let v=Je.resolve(Je.dirname(g),y.sourceAsset.path);d.add(v),!u.has(v)&&!xa(e,h.root,Je.relative(h.root,v))&&a.push(`${p.file}: its restricted source asset is missing from the actual delivery commit`)}}catch{}}for(let[p,h]of c)for(let g of h){let m=Je.resolve(p.path,g);d.has(m)||!s.length&&!e.inputs.deliver&&Yo().version==="unknown"||KSe(e,p.path,g)||a.push(`${g}: shared-environment delivery refuses an unverified executable/support/manifest path`)}return a}function Qa(e){return Array.isArray(e)?`[${e.map(Qa).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([t],[n])=>t.localeCompare(n)).map(([t,n])=>`${JSON.stringify(t)}:${Qa(n)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function KSe(e,t,n){let s=Je.basename(n);if(s!=="package.json"&&s!=="package-lock.json")return!1;let r=Yo().version;if(r==="unknown")return!1;let i,o;try{let a=Je.resolve(t,n);if(!kt.lstatSync(a).isFile()||kt.realpathSync(a)!==a)return!1;i=JSON.parse(kt.readFileSync(a,"utf-8"));let c=e.executionSafetySources?.find(h=>Je.resolve(h.path)===Je.resolve(t));if(c)try{o=JSON.parse((0,UD.execFileSync)("git",["show",`${c.head}:${n}`],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}))}catch{}else if(kt.existsSync(Je.join(t,".git")))return!1;let u=h=>{let g=structuredClone(h);for(let m of["dependencies","devDependencies"])g[m]&&(delete g[m]["@skyramp/testbot-core"],Object.keys(g[m]).length||delete g[m]);return g};if(s==="package.json")return(i.devDependencies?.["@skyramp/testbot-core"]??i.dependencies?.["@skyramp/testbot-core"])!==r?!1:o?Qa(u(i))===Qa(u(o)):Object.keys(i).every(h=>["name","version","private","type","scripts","dependencies","devDependencies"].includes(h))&&(!i.scripts||Qa(i.scripts)===Qa({test:"node --test"}))&&Object.keys(i.dependencies??{}).every(h=>h==="@skyramp/testbot-core")&&Object.keys(i.devDependencies??{}).every(h=>h==="@skyramp/testbot-core");let d=i.packages?.["node_modules/@skyramp/testbot-core"];if(!d||d.version!==r||d.link||d.hasInstallScript||d.resolved!==`https://registry.npmjs.org/@skyramp/testbot-core/-/testbot-core-${r}.tgz`||!/^sha512-[A-Za-z0-9+/=]+$/.test(d.integrity??""))return!1;let p=h=>{let g=structuredClone(h);return g.packages&&(delete g.packages["node_modules/@skyramp/testbot-core"],g.packages[""]&&(g.packages[""]=u(g.packages[""]))),g};return o?Qa(p(i))===Qa(p(o)):Object.keys(i.packages??{}).every(h=>h===""||h==="node_modules/@skyramp/testbot-core")&&!i.packages?.[""]?.scripts}catch{return!1}}function XSe(e,t,n){try{return kt.lstatSync(Je.join(t,n)),!1}catch(r){if(r.code!=="ENOENT")return!1}let s=e.executionSafetySources?.find(r=>Je.resolve(r.path)===Je.resolve(t));if(!s||!/^[a-f0-9]{40,64}$/.test(s.head))return!1;try{return/^100(?:644|755) blob /.test((0,UD.execFileSync)("git",["--literal-pathspecs","ls-tree",s.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}))}catch{return!1}}function r6(e,t,n=[]){if(!jn(e.inputs))return[];let s=[],r=Ii(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let i of t.tests){if(i.change==="deleted")continue;let o=r(i.file),a=Je.join(o.root,o.rel);if(!xa(e,o.root,o.rel))try{if(!uo(o)||!kt.lstatSync(a).isFile()||kt.realpathSync(a)!==a)continue;let c=ka(kt.readFileSync(a,"utf-8"));if(!c)continue;if("restriction"in c){let d=Je.resolve(Je.dirname(a),c.sourceAsset.path),p=Je.relative(o.root,d);if(!p||p.startsWith("..")||Je.isAbsolute(p)||!kt.lstatSync(d).isFile()||kt.realpathSync(d)!==d){s.push(`${i.file}: restricted source asset is not a regular file in its checkout`);continue}let h=kt.readFileSync(d);if((0,Fw.createHash)("sha256").update(h).digest("hex")!==c.sourceAsset.sha256){s.push(`${i.file}: restricted source asset changed before trusted formatting; not refreshing its hash`);continue}let g=ku(h.toString("utf-8"),n).content,m=Yd(o.root,p,Buffer.from(g));kt.writeFileSync(d,m),c.sourceAsset.sha256=(0,Fw.createHash)("sha256").update(m).digest("hex")}let u=ku(Pg(c),n).content;kt.writeFileSync(a,Yd(o.root,o.rel,Buffer.from(u)))}catch{s.push(`${i.file}: could not assemble its guarded entry after trusted formatting`)}}return s}var yn=Y(require("fs")),js=Y(require("path")),I6=Y(require("crypto")),C6=require("child_process");var LD=require("child_process"),Xd=Y(require("fs")),s6=Y(require("os")),Uw=Y(require("path"));var eke={onPath:e=>(0,LD.spawnSync)("sh",["-c",`command -v ${e}`],{stdio:"ignore"}).status===0,run:(e,t)=>(0,LD.spawnSync)(e[0],e.slice(1),{cwd:t,stdio:"ignore",timeout:6e4}).status??1},Xg={cleanup:()=>{}},tke=new Set(["pnpm","yarn"]);function i6(e,t=s6.tmpdir(),n=eke){if(process.platform==="win32")return Xg;try{if(Mr(e))return Xg;let s=D_(e);if(!tke.has(s)||n.onPath(s)||!n.onPath("corepack"))return Xg;Xd.mkdirSync(t,{recursive:!0});let r=Xd.mkdtempSync(Uw.join(t,"testbot-pm-")),i=()=>Xd.rmSync(r,{recursive:!0,force:!0});return n.run(["corepack","enable","--install-directory",r,s],e)!==0?(i(),Xg):{dir:r,cleanup:i}}catch{return Xg}}function o6(e,t=process.env){return e.dir?{...t,PATH:[e.dir,t.PATH].filter(Boolean).join(Uw.delimiter)}:t}var rm=require("crypto");var jD="<!-- skyramp-testbot -->",VD=ND,rke=new Set(["lint","type","config"]),a6={critical:0,high:1,medium:2,low:3},g6=new Set(["Pass","Fail"]);var GD=e=>Vo(re().statusLabels,e),Lw=e=>Vo(re().testTypeCellLabels,e);function dt(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}function c6(e){return e.inferred?" (inferred)":""}function u6(e,t){return!e||!g6.has(e)?"\u2014":t?`${GD(e)} (${dt(m6(t))})`:GD(e)}function m6(e){let t=s=>{let r=s.indexOf(": ");return r<0?s:Vo(re().staged.maintenanceActions,s.slice(0,r))+s.slice(r)};if(e.startsWith(Zg))return re().staged.keptNot+t(e.slice(Zg.length));let n=e.indexOf(Kg);return n<0?e:e.slice(0,n)+re().staged.declinedPlanned+t(e.slice(n+Kg.length))}function l6(e){return e.category!==void 0&&rke.has(e.category.toLowerCase())}function d6(e,t){return(a6[(e.severity??"").toLowerCase()]??4)-(a6[(t.severity??"").toLowerCase()]??4)}var jw=e=>e?.length?` (${e.join(", ")})`:"";function p6(e){return`- ${e.severity?`**[${Vo(re().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}${jw(e.pullRequests)}`}function ske(e){let t=e.resultId?.split("#").slice(1).join("#");if(e.testType!=="unit"||!t)return;let n=t;try{n=decodeURIComponent(t)}catch{}let s=/^(.*?)(\[.*\])$/.exec(n);return s?{fn:s[1],kase:s[2]}:{fn:n}}var A6=(e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,"");function y6(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}function zD(e,t){return y6(e,n=>A6(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}function HD(e,t){return y6(e,n=>A6(n.writtenAs??n.fileName,t))}function ike(e,t,n){return n?zD(e,{fileName:t,repository:n}):HD(e,t)}function oke(e){let t=[],n=new Map;for(let o of e.newTestsCreated)o.testType==="unit"&&n.set(o.fileName,[...n.get(o.fileName)??[],o.testId.split("::").slice(1).join("::")]);let s=new Map,r=(o,a)=>(n.get(o??"")??[]).find(c=>c!==a&&sZ(a,c)),i=new Map;for(let o of e.testResults){let a=ske(o),c=a&&!a.kase?r(o.fileName,a.fn):void 0;if(a&&c&&(a={fn:c,kase:`"${a.fn}"`}),a?.kase&&s.set(o,a.kase),!a){t.push({testId:o.testId,testType:o.testType,endpoint:o.endpoint,status:o.status,details:o.details??"",...o.fileName?{fileName:o.fileName}:{},...o.repository?{repository:o.repository}:{}});continue}let u=`${o.fileName??""}#${a.fn}`,d=i.get(u);d||(d={row:{testId:o.testId,testType:o.testType,endpoint:o.endpoint,status:o.status,details:"",test:a.fn,...o.fileName?{fileName:o.fileName}:{},...o.repository?{repository:o.repository}:{}},cases:[]},i.set(u,d),t.push(d.row)),d.cases.push(o)}for(let{row:o,cases:a}of i.values()){let c=a.filter(h=>h.status==="Fail"),u=a.filter(h=>h.status==="Pass").length,d=a.filter(h=>h.status==="Skipped").length;o.cases=a.length,o.status=c.length?"Fail":d?"Skipped":"Pass";let p=c[0];o.details=a.length===1?a[0].details??"":re().staged.casesPassed(u,a.length,d)+(p?`; ${s.get(p)??""} ${p.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}function ake(e){return DD(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${Yt(t.expected)}`)}function nm(e){return e.newTestsCreated.some(t=>t.testType!=="unit")&&e.testResults.every(t=>t.status==="Skipped")&&e.testResults.some(t=>t.failureCause?.kind==="environment"&&(t.failureCause.family==="app_not_started"||t.failureCause.family==="secret"))}function E6(e){let t=e.pullRequests??[];return t.length<2?[]:[re().staged.validatedTogether(t.map(n=>`${Yt(`${n.repository}#${n.number}`)}${n.title?` ${ys(n.title,120)}`:""}`).join("; "))]}function v6(e,t=1/0){let n=Array.from(e.name.replace(/\s+/g," ").trim()).slice(0,t).join("").replace(/[<>[\]()*_`\\|#]/g,"\\$&").replace(/@/g,"@\u200D");return e.kind==="person"?re().staged.requestedByPerson(n):re().staged.requestedByPolicy(n)}function b6(e,t={}){if(t.audience==="testbot-pr")return gke(e,t);let{audience:n,collapsed:s=!1,existingEvidence:r=[],requestedBy:i,sourcePullRequest:o}=t,a=n!=="comment",c=(e.requirements??[]).filter(w=>/^file-[a-f0-9]{16}-/i.test(w.id)).sort((w,x)=>x.id.length-w.id.length),u=w=>{let x=c.find(S=>w.toLowerCase().startsWith(S.id.toLowerCase()));return x?x.label+w.slice(x.id.length):w},d=[jD];o&&d.push(re().staged.testsSourcePullRequest(Yt(o)),"");for(let w of E6(e))d.push(w,"");i&&d.push(v6(i),""),e.notTranslated&&d.push(Vo(re().staged.notTranslated,e.notTranslated),"");let p=w=>{s?d.push("<details>",`<summary>${w}</summary>`,""):d.push(`### ${w}`)},h=()=>{s&&d.push("","</details>"),d.push("")};for(let w of e.businessCaseAnalysis.trim().split(/\r?\n/))d.push(`> ${w}`);if(d.push(""),nm(e)&&d.push(re().staged.noLiveApp(Kd(e.newTestsCreated)),""),a&&e.newTestsCreated.length){let w=new Map;for(let S of e.newTestsCreated){if(S.testType!=="unit")continue;let W=_D(S)[0],ue=w.get(S.fileName)??{functions:new Set,endpoints:[],descriptions:new Map};S.endpoint&&!ue.endpoints.includes(S.endpoint)&&ue.endpoints.push(S.endpoint);let q=S.description?.trim()??"",Ee=ue.descriptions.get(W)??[];Ee.includes(q)||Ee.push(q),ue.functions.add(W),ue.descriptions.set(W,Ee),w.set(S.fileName,ue)}let x=e.newTestsCreated.filter(S=>S.testType!=="unit");p(re().testRecommendationsImplementedHeader(Kd(e.newTestsCreated),x.length+Kd(e.newTestsCreated.filter(S=>S.testType==="unit"))));for(let[S,{functions:W,endpoints:ue,descriptions:q}]of w){let Ee=W.size;d.push(re().staged.unitTestsInFile(`\`${S}\``,Ee,ue.map(Te=>`\`${Te}\``).join(", ")),"");let Fe=new Map;for(let[Te,X]of q){let G=X.join("\0"),Ke=Fe.get(G)??{fns:[],descriptions:X};Ke.fns.push(Te),Fe.set(G,Ke)}let Me=0;for(let{fns:Te,descriptions:X}of Fe.values()){d.push(`${++Me}. ${Te.map(Ke=>`\`${Ke}\``).join(", ")}`);let G=[...new Set(X.flatMap(Ke=>ake(Ke)))];for(let Ke of G)d.push(` - ${Ke}`)}d.push("")}for(let S of x){let W=S.testId?Yt(u(S.testId)):Lw(S.testType),ue=S.fileName?` (\`${S.fileName}\`)`:"",q=S.endpoint?`
304
304
  \`${S.endpoint}\``:"",Ee=S.description?`
305
305
  ${S.description.trim()}`:"";d.push(`- ${W}${ue}${jw(S.pullRequests)}${q}${Ee}`)}h()}let g=(e.testMaintenance??[]).filter(w=>VD.has(w.action));if(a&&g.length){p(re().staged.testMaintenanceHeader),d.push(re().maintenanceTableHeader),d.push("|-----------|----------|------|--------|--------|-------|");for(let w of g)d.push(`| ${dt(Lw(w.testType))} | ${dt(w.endpoint)} | \`${dt(w.fileName)}\` | ${dt(w.description)} | ${u6(w.beforeStatus,w.beforeDetails)} | ${u6(w.afterStatus,w.afterDetails)} |`);h()}let m=w=>w.startsWith(Zg)||w.includes(Kg),y=(e.testMaintenance??[]).filter(w=>m(w.afterDetails)&&(!VD.has(w.action)||!g6.has(w.afterStatus??"")));if(a&&y.length){p(re().staged.declinedMaintenanceHeader);for(let w of y)d.push(`- \`${dt(w.fileName)}\`: ${dt(m6(w.afterDetails))}`);h()}if(a&&r.length){p(re().staged.existingEvidenceHeader);let w=new Map;for(let x of r){let S=`${x.check}\0${x.url??""}\0${x.revision??""}`;w.set(S,[...w.get(S)??[],x])}for(let[,[x,...S]]of w){let W=x.url?`[${Yt(x.check)}](${x.url})`:Yt(x.check);d.push(re().staged.trustedCheckPassed(W,x.revision?Yt(x.revision.slice(0,7)):""),"");for(let ue of[x,...S])d.push(`- ${Yt(ue.behavior)}`);d.push("")}h()}if(a&&e.testResults.length){p(re().staged.testResultsHeader);let w=oke(e),x=w.some(q=>q.test),S=w.some(q=>zD(e,q)),W=x?re().staged.unitResultsTableHeader:re().staged.resultsTableHeader;d.push(S?`${W} ${re().columnVideo} |`:W),d.push(`${x?"|---------|-----------|----------|------|-------|--------|---------|":"|---------|-----------|----------|--------|---------|"}${S?"-------|":""}`);for(let q of w){let Ee=q.details.replace(/(\S+\.(?:py|ts|js|spec\.\w+))/gi,"`$1`"),Fe=q.testId?Yt(dt(u(q.testId))):"\u2014",Me=x?` ${q.test?`\`${dt(q.test)}\``:""} | ${q.cases??""} |`:"",Te=zD(e,q),X=S?` ${Te?re().videoDownloadLink(Te):"\u2014"} |`:"";d.push(`| ${Fe} | ${dt(Lw(q.testType))} | ${dt(q.endpoint)} |${Me} ${dt(GD(q.status))} | ${dt(Ee)} |${X}`)}let ue=(e.testVideos??[]).find(q=>q.artifactsUrl)?.artifactsUrl;!S&&ue&&d.push("",re().videosArtifactFallback(ue)),h()}if(e.requirements?.length){let w=e.requirements.flatMap(q=>q.clauses),x=q=>q.status==="Pass"||q.status==="Passed, test not kept",S=w.filter(x).length;p(re().staged.requirementsHeader(S,w.length));let W=q=>Vo(re().staged.clauseStatuses,q.status),ue=q=>(q.status==="Not tested"||q.status==="Passed, test not kept")&&q.notTested?`${W(q)}: ${q.notTested}`:q.findings.length?`${W(q)} \u2014 ${q.findings.join(", ")}`:W(q);if(a){d.push(re().staged.requirementsTableHeader),d.push("|-------------|--------|-------|--------|");for(let q of e.requirements)q.clauses.forEach((Ee,Fe)=>{let Me=Fe===0?`**${dt(q.label)}**${q.statement?` ${dt(q.statement)}`:""}${jw(q.pullRequests)}`:"",Te=`${Yt(dt(u(Ee.id)))}${c6(Ee)}${Ee.text?` ${dt(Ee.text)}`:""}`,X=new Map;for(let ut of Ee.tests){let Pt=ut.fileName??u(ut.testId),$t=X.get(Pt)??{fns:new Set};for(let sn of ut.functions)$t.fns.add(sn);$t.video??=ut.fileName?ike(e,ut.fileName,ut.repository):void 0,X.set(Pt,$t)}let G=X.size?[...X].map(([ut,{fns:Pt,video:$t}])=>`${Yt(dt(ut))}${Pt.size?` \u2014 ${[...Pt].map(sn=>`\`${dt(sn)}\``).join(", ")}`:""}${$t?` ${re().videoDownloadLink($t)}`:""}`).join("<br>"):"\u2014",Ke=q.source==="could-break"&&Ee.status==="Pass"?re().staged.regressionGuard:"";d.push(`| ${Me} | ${Te} | ${G} | ${dt(ue(Ee)+Ke)} |`)})}else{d.push(re().staged.requirementsSummaryTableHeader),d.push("|-------------|-----------------|-------------|");for(let q of e.requirements){let Ee=q.clauses.filter(x).length,Fe=q.clauses.filter(Me=>!x(Me)).map(Me=>`${Yt(dt(u(Me.id)))}${c6(Me)} ${dt(ue(Me))}`);d.push(`| **${dt(q.label)}**${q.statement?` ${dt(q.statement)}`:""}${jw(q.pullRequests)} | ${Ee}/${q.clauses.length} | ${Fe.join("<br>")||"\u2014"} |`)}}h()}if(a&&e.changes?.length&&!e.requirements?.length){let w=e.executionCoverage,x=w?re().staged.coverageCaption(w.generated,w.modified,w.verified,w.executed):"";p(`${re().staged.behaviourCoverageHeader}${x}`),d.push(re().staged.coverageTableHeader),d.push("|-----------|--------|-----------|----------------|");for(let S of e.changes){let W=S.testedBy.length?S.testedBy.map(q=>`\`${dt(q)}\``).join(", "):S.writtenBy.length?re().staged.writtenNotRun:"\u2014",ue=S.maintainedBy.length?S.maintainedBy.map(q=>`\`${dt(q)}\``).join(", "):"\u2014";d.push(`| ${dt(S.text)} | \`${dt(S.source)}\` | ${W} | ${ue} |`)}h()}if(e.userJourneys?.length){let w=e.userJourneys.filter(S=>S.status==="Pass"&&!S.problems.length).length;p(`\u{1F9ED} User Journeys Covered (${w}/${e.userJourneys.length} walked end to end)`);let x=e.userJourneys.some(S=>HD(e,S.fileName));d.push(`| Journey | Test | Status | Notes |${x?` ${re().columnVideo} |`:""}`),d.push(`|---------|------|--------|-------|${x?"-------|":""}`);for(let S of e.userJourneys){let W=S.fileName?`\`${dt(S.fileName)}\`${S.test?` \u2014 ${dt(S.test)}`:""}`:"\u2014",ue=S.source&&S.source!=="inferred"?`; described in the ${S.source==="spec"?"spec":"PR description"}`:"; inferred from the app",q=(S.uncovered?`not covered: ${S.uncovered}`:S.problems.length?`does not walk it end to end: ${S.problems.join("; ")}`:`from ${S.entry}, ${S.steps} steps`)+ue,Ee=x?HD(e,S.fileName):void 0;d.push(`| ${dt(S.name)} | ${W} | ${dt(S.status)} | ${dt(q)} |${x?` ${Ee?re().videoDownloadLink(Ee):"\u2014"} |`:""}`)}h()}let v=e.issuesFound.filter(w=>!l6(w)).sort(d6),E=e.issuesFound.filter(l6).sort(d6);if(v.length){p(re().staged.issuesFoundHeader);for(let w of v)d.push(p6(w));h()}if(E.length){d.push(`### ${re().configErrorsHeader}`);for(let w of E)d.push(p6(w));d.push("")}let b=e.testPackages??[],I=e.dependencyChanges??[];if(b.length){d.push(re().staged.testPackagesHeader,"");for(let w of b)d.push(`- ${re().staged.testPackageLine(w.directory,w.entrypoint,Object.entries(w.dependencies??{}).map(([x,S])=>w.runner==="pytest"?`${x}==${S}`:`${x}@${S}`).join(", "))}`);I.length||d.push(`- ${re().staged.appManifestsUntouched}`),d.push("")}if(I.length){d.push(re().staged.dependencyChangesHeader,"");for(let w of I)d.push(`- ${re().staged.dependencyChangeLine(w.package,w.repository?`${w.repository}: ${w.manifest}`:w.manifest,(w.reason??"").replace(/\s+/g," ").trim())}`);d.push("")}let C=(e.caveats??[]).filter(w=>w.kind!=="tests-not-executed"||w.subject==="written-cases"||!nm(e));if(C.length){d.push(re().staged.caveatsHeader,"");for(let w of C)d.push(`- ${w.text}`);d.push("")}if(e.nextSteps.length){d.push(re().nextStepsHeader,"");for(let w of e.nextSteps)d.push(`- ${w.trim()}`);d.push("")}return d.join(`
306
306
  `).replace(/\n{3,}/g,`
@@ -331,13 +331,13 @@ ${n}`}:{prFailure:"unknown",prDetail:t}}async function Qke(e,t,n,s,r,i){let o=s.
331
331
  `}catch{return""}}var B6=e=>e.map(t=>t.dependsOn.length?`${t.file} (needs ${t.dependsOn.join(", ")})`:t.file).join("; ");async function Oke(e,t,n,s,r,i){let o=i6(s.path,e.runDir),a=process.env.PATH;o.dir&&(process.env.PATH=o6(o).PATH);try{return await Fke(e,t,n,s,r,i)}finally{o.dir&&(process.env.PATH=a),o.cleanup()}}async function Fke(e,t,n,s,r,i){let o=s.slug,a,c=!1,u,d=[];try{let p=s.path,h=await Qke(e,t,n,s,r,i),{texts:g,shown:m,title:y,bot:v,remote:E,base:b,owner:I,testsBranch:C,origin:w,mergedBase:x}=h,S=(ee=[])=>ID(mK(Cke(ee,b)+b6(Ike(wke(m,e,s),ee.map(We=>We.file)),{audience:"testbot-pr",runUrl:e.inputs.skyrampRunUrl,requestedBy:e.inputs.requestedBy,sourcePullRequest:w&&`${w.repository.namespace}/${w.repository.name}#${w.number}`}),e.inputs.skyrampRunUrl))+`
332
332
  `,W=i?"pr-body.md":`pr-body-${S6(o)}.md`,ue=js.join(e.outputsDir,W);yn.writeFileSync(ue,S());let q=ft(p,["rev-parse","HEAD"]),Ee=x??q;ft(p,["checkout","-B",C]),a=C,ft(p,["reset"]);let Fe=Ce(e,"write.json"),Me=Wg(e).filter(ee=>ee.source.path===s.path&&r.includes(ee.record.sourceAsset)),Te=MD(e);if(Te.length)throw new Error(Te.join("; "));let X=Fe?r6(e,Fe,g):[];if(X.length)throw new Error(X.join("; "));let G=new Set(Me.flatMap(({record:ee})=>[ee.sourceAsset,...ee.entry?[ee.entry]:[]]));for(let ee of r)G.has(ee)||bke(js.join(p,ee),g);let Ke=qK(e,Me,g,d);if(Ke.length)throw new Error(Ke.join("; "));let ut=new Map([...G].map(ee=>{let We=yn.readFileSync(js.join(p,ee)),Rt=ho=>ft(p,["hash-object","--no-filters","--stdin"],ho),je=new Set([Rt(We)]),Tn=We.toString("latin1");return!We.includes(0)&&Tn.includes(`\r
333
333
  `)&&je.add(Rt(Buffer.from(Tn.replace(/\r\n/g,`
334
- `),"latin1"))),[ee,je]})),Pt=[];for(let ee of r)try{ft(p,["--literal-pathspecs","add","--",ee])}catch{Pt.push(ee)}if(Pt.some(ee=>G.has(ee)))throw new Error("could not stage every guarded delivery file");let $t=new Map([...ut].map(([ee,We])=>{let Rt=ft(p,["--literal-pathspecs","ls-files","--stage","--",ee]),je=/^100(?:644|755) ([a-f0-9]+) 0\t/.exec(Rt)?.[1];if(!je||!We.has(je))throw new Error(`the staged guarded file differs from the generated file: ${ee}`);return[ee,je]}));try{ft(p,["diff","--cached","--quiet"])}catch{try{let ee=_ke(p,h,q,Ee,e.inputs.skyrampRunUrl);ft(p,["-c",`user.name=${v.name}`,"-c",`user.email=${v.email}`,"commit","-m",ee])}catch(ee){throw new Vw(ee)}c=!0}c&&(d.length=0),u=ft(p,["rev-parse","HEAD"]);let sn,pt,Tt,dn=x??i?.headSha;if(c&&dn&&dn!==q){let ee=!1,We=u;try{ft(p,["checkout","-q","-B",a,dn]),ee=!0;try{ft(p,["-c",`user.name=${v.name}`,"-c",`user.email=${v.email}`,"cherry-pick","--keep-redundant-commits",u])}catch(Rt){let je=x?Nke(p,v,We):void 0;if(!je||(pt=je.files.map(Tn=>({file:Tn,dependsOn:Dke(p,o,x,q,Tn)})),Tt={repository:o,base:b,files:pt,patch:Pke(p,q,We,je.files)},!je.delivered))throw Rt}ee=!1,kD(Rt=>ft(p,Rt),dn),u=ft(p,["rev-parse","HEAD"])}catch(Rt){try{ft(p,["cherry-pick","--abort"])}catch{}ft(p,["checkout","-q","-B",a,u]);let je=Gg(Ba(Rt),1/0);if(x&&!ee)throw Rt;if(x)return{thrown:!1,held:Tt,record:{schemaVersion:1,repository:o,branch:a,remote:E,base:b,committed:c,commitSha:u,pushed:!1,prAction:"skipped",prTitle:y,unstaged:Pt,...pt?{heldBack:pt}:{},reason:pt?`every test change needs a merged revision ${b} does not have yet, so no tests PR was opened: ${B6(pt)}`:`the tests do not apply to ${b} at ${x.slice(0,12)} without the merged revisions (${je}), so no tests PR was opened`}};sn=`tests committed on the checkout's merge commit (re-cut onto ${dn.slice(0,12)} failed: ${je})`}}pt&&yn.writeFileSync(ue,S(pt));for(let[ee,We]of $t){if(pt?.some(je=>je.file===ee))continue;let Rt=ft(p,["--literal-pathspecs","ls-tree",u,"--",ee]);if(/^100(?:644|755) blob ([a-f0-9]+)\t/.exec(Rt)?.[1]!==We)throw new Error(`the committed guarded file differs from the generated file: ${ee}`)}for(let{record:ee}of Me){if(ee.entry)continue;let We=ft(p,["--literal-pathspecs","ls-tree",u,"--",ee.file]);if(We&&We!==ft(p,["--literal-pathspecs","ls-tree",q,"--",ee.file]))throw new Error(`the delivery included executable source for a held test: ${ee.file}`)}let Qt=i?{}:{repositoryPath:p,repoSlug:o,devPr:null};if(!c){let ee=await t.markTestsPrUnchanged({branch:a,...Qt});return{thrown:!1,record:{schemaVersion:1,repository:o,branch:a,remote:E,base:b,committed:!1,commitSha:u,pushed:!1,prAction:ee.action==="unchanged"?"unchanged":"skipped",prUrl:ee.url,prTitle:y,unstaged:Pt,reason:ee.action==="unchanged"?"no test changes to commit \u2014 existing tests PR annotated as unchanged":"no test changes to commit \u2014 nothing pushed, no PR opened"}}}let Le=await t.publishTestsPr({repositoryPath:p,...Qt,remote:E,branch:a,base:b,commitSha:u,title:y,bodyFile:ue,mode:e.inputs.deliverMode,deliveryOwner:I,...e.inputs.firstQualification?{firstQualification:!0}:{},runUrl:e.inputs.skyrampRunUrl,signal:e.signal,deadlineMs:e.deadlineMs});return{thrown:!1,held:Tt,record:{schemaVersion:1,repository:o,branch:a,remote:E,base:Le.base,requestedBase:b,committed:c,commitSha:u,pushed:Le.pushed,...Le.pushedCommits?{pushedCommits:Le.pushedCommits}:{},...Le.deliveredCommit?{deliveredCommit:Le.deliveredCommit}:{},prAction:Le.action,...Le.retargetedAs?{retargetedAs:Le.retargetedAs}:{},prUrl:Le.url,prTitle:y,...Le.failure?{prFailure:Le.failure,prDetail:Le.detail}:{},...sn?{cutNote:sn}:{},...Le.action==="skipped"&&Le.detail?{reason:Le.detail}:{},unstaged:Pt,...pt?{heldBack:pt}:{}}}}catch(p){return{thrown:!0,record:{schemaVersion:1,repository:o,branch:a,committed:c,commitSha:u,pushed:!1,prAction:"failed",...Tke(p),unstaged:[]}}}finally{if(d.length){try{ft(s.path,["reset"])}catch{}for(let p of d.reverse())try{p()}catch{}}}}var L9e={name:"deliver",timeoutMinutes:5,execute:Rke,validateInput:e=>{let t=bD(e);return t?{ok:!1,reasons:[t]}:mke(e)},requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var G3e=10*6e4,z3e=4*6e4;var H3e=10*6e4;var Mke=3e4,Lke=3,x6=30,_a=class extends Error{constructor(n,s,r,i){super(n);this.status=s;this.code=r;this.path=i}status;code;path},Ci=class extends Error{},ep=class extends Ci{},Gw=class extends ep{};function jke(e){let t;try{t=new URL(e)}catch{throw new Error(`skyrampAppOrigin "${e}" is not a URL`)}if(t.protocol!=="https:"||t.origin!==e.replace(/\/+$/,""))throw new Error(`skyrampAppOrigin must be an https origin, got "${e}"`);return t.origin}function Vke(e,t){if(!Jl.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}function Gke(e,t,n,s){throw t<500&&t!==429?new _a(e,t,n,s):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new Gw(e):t===503&&n==="RUN_NOT_READY"?new ep(e):new Ci(e)}async function zke(e,t,n,s,r,i=1/0){let o=jke(e.origin),a=`The time limit for ${t} ${n} was reached`,c,u=0;for(let d=1;d<=Lke||c instanceof ep;d+=1){if(c instanceof ep){if(u===x6)throw c;u+=1,d-=1,e.log?.(`${c.message}; trying again (${u} of ${x6}).`),await new Promise(p=>setTimeout(p,Math.max(0,Math.min(e.readyWaitMs??1e4,i-Date.now()))))}else d>1&&await new Promise(p=>setTimeout(p,Math.max(0,Math.min((e.retryDelayMs??2e3)*(d-1),i-Date.now()))));if(Date.now()>=i)throw new Ci(a);try{let p,h=await(Number.isFinite(i)?Promise.race([e.idToken(o),new Promise((m,y)=>{p=setTimeout(()=>y(new Ci(a)),Math.max(1,i-Date.now()))})]).finally(()=>{p&&clearTimeout(p)}):e.idToken(o));if(Date.now()>=i)throw new Ci(a);let g=await(e.fetch??fetch)(new URL(n,o).toString(),{...s(h),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(Mke,i-Date.now())))}).catch(m=>{throw new Ci(m instanceof Error?m.message:String(m),{cause:m})});return await r(g)}catch(p){if(p instanceof _a||Date.now()>=i)throw p;c=p}}throw c}function Hke(e,t,n,s,r){let i=s.headers.get("cf-ray");e.log?.(`Testbot V3: ${t} ${n} answered ${s.status}${i?`, cf-ray ${i}`:""}: ${r.replace(/\s+/g," ").slice(0,200)}`)}var zw=class extends Error{};function qke(e){let t=Buffer.byteLength(e,"utf8");if(t<=VR)return{body:e};if(t>sz)throw new zw("The report exceeds the app's 16 MiB expanded report limit");let n=new Uint8Array((0,Q6.gzipSync)(e));if(n.length>VR)throw new zw("The compressed report exceeds the app's 1 MiB report upload limit");return{body:n,gzip:!0}}function Jke(e,t,n,s,r){let i=t==="GET"?void 0:JSON.stringify(s),o=t==="PUT"&&/^\/api\/v1\/runner\/attempts\/[^/]+\/report$/.test(n)&&i!==void 0?qke(i):{body:i};return Wke(e,t,n,o,r)}function Wke(e,t,n,s,r){return zke(e,t,n,o=>({method:t,headers:{Authorization:`Bearer ${o}`,"Content-Type":"application/json",Accept:"application/json",...s.gzip?{"Content-Encoding":"gzip"}:{}},body:s.body}),async o=>{let a=await o.text().catch(()=>""),c={};try{c=JSON.parse(a)}catch{}if(o.ok)return c.data;Hke(e,t,n,o,a);let u=c.error?.fields,d=typeof u?.path=="string"&&typeof u.reason=="string"?` at ${u.path}: ${u.reason}`:"",p=`The Skyramp app refused ${t} ${n}: ${o.status} ${c.error?.code??"no error code"}${d}`;return Gke(p,o.status,c.error?.code,typeof u?.path=="string"?u.path:void 0)},r)}var q3e=10*6e4;var J3e=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var W3e=l.object({tests:l.object({placements:l.array(l.unknown()).optional()}).passthrough().optional()}).passthrough(),Y3e=l.object({repository:MR,testType:l.string(),directory:l.string()}).passthrough();var Z3e=l.object({report:l.object({language:l.string()}).passthrough()}).passthrough();var K3e=l.object({environment:l.object({components:l.array(l.unknown()).optional(),dependencies:l.array(l.unknown()).optional()}).passthrough()}).passthrough(),X3e=l.object({environment:l.object({offLimits:l.unknown().optional()}).passthrough()}).passthrough();var e8e=l.object({environment:l.object({allowedEgress:l.unknown().optional()}).passthrough()}).passthrough();var t8e=l.object({name:l.string().min(1),provision:l.literal("existing"),url:l.string().min(1),repository:MR.optional(),revisionUrl:l.string().min(1).optional()}).passthrough(),n8e=l.object({name:l.string().min(1),url:l.string().nullable(),versionUrl:l.string().nullable(),notes:l.string().nullable()}).passthrough();var r8e=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);var s8e={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};async function _6(e,t){return Vke(e.attemptId,"attempt id"),Jke(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,Rz({reportUploaded:e.reportUploaded,recipeUploaded:e.recipeUploaded,revisionsUploaded:e.revisionsUploaded,cancelled:e.cause==="cancelled",timedOut:e.cause==="timed_out",setupFailed:e.cause==="setup_failed",checkoutFailed:e.cause==="checkout_failed"||e.cause==="merge_conflict"&&!e.conflict,mergeConflict:e.cause==="merge_conflict"?e.conflict:void 0,environmentUnverified:e.cause==="environment_unverified",runnerProviderNotReady:e.cause==="runner_provider_not_ready",credentialMissing:e.cause==="credential_missing",modelProviderDenied:e.cause==="model_provider_denied",modelProviderUnavailable:e.cause==="model_provider_unavailable",githubWrites:e.githubWrites,environmentUnavailable:e.cause==="environment_unavailable"}))}var sm=Y(require("fs")),Si=Y(require("path")),D6=require("child_process");var tp=Si.join(".skyramp","sut");function Yke(e){return e.startsWith(`${tp}${Si.sep}`)||e.startsWith(".skyramp/sut/")||/(^|\/)(docker-compose|compose)[^/]*\.ya?ml$/.test(e)||/(^|\/)Dockerfile[^/]*$/.test(e)||/^\.github\/workflows\//.test(e)}function WD(e,t,n={}){let s=t.split(/[\\/]+/).filter(Boolean),r=e;for(let[i,o]of s.entries()){r=Si.join(r,o);let a=sm.lstatSync(r,{throwIfNoEntry:!1}),c=i===s.length-1;if(!a||a.isSymbolicLink()||(c?n.directory?!a.isDirectory():!a.isFile():!a.isDirectory()))return}return s.length?r:void 0}function Da(e,t=[]){let n=p=>WD(e,p),s=n(Si.join(tp,"setup.sh")),r=n(Si.join(tp,"teardown.sh")),i=n(Si.join(tp,"get-auth-token.sh")),o,a=n(Si.join(tp,"health.json"));if(a)try{let p=JSON.parse(sm.readFileSync(a,"utf-8"));p&&(p.url||p.command)&&(o=p)}catch{}let c,u=n(Si.join(tp,"deploy-budget.json"));if(u)try{let p=JSON.parse(sm.readFileSync(u,"utf-8"));typeof p?.minutes=="number"&&Number.isFinite(p.minutes)&&p.minutes>0&&(c=p.minutes)}catch{}let d=t.filter(Yke);return{setupScript:s,teardownScript:r,authTokenScript:i,healthHint:o,budgetMinutes:c,present:!!(s||a),staleFiles:d,stale:d.length>0}}var N6=12e4;function Hw(e,t,n){let s=n.timeoutMs??N6;if(n.signal?.aborted)return Promise.resolve(`${e.label} failed (cancelled)`);let r=o=>ch(Mt(o,n.secretValues??[])),i;try{i=$s(e.argv,t,n.env)}catch(o){return Promise.resolve(r(`${e.label} failed (could not start: ${o instanceof Error?o.message:String(o)})`))}return new Promise(o=>{let a="",c=!1,u=!1,d,p;try{p=(0,D6.spawn)(i.argv[0],i.argv.slice(1),{cwd:t,env:i.env,stdio:["ignore","pipe","pipe"],detached:!0})}catch(C){let w=C instanceof Error?C.message:String(C);o(r(`${e.label} failed (could not start: ${w})`));return}let h=C=>{let w=Math.max(0,...(n.secretValues??[]).map(x=>x.length));a=(a+C.toString("utf-8")).slice(-(4096+w))},g=()=>r(nB(a,n.secretValues??[],4096));p.stdout?.on("data",h),p.stderr?.on("data",h);let m=()=>{try{p.pid!==void 0&&process.kill(-p.pid,"SIGKILL")}catch{p.kill("SIGKILL")}},y=C=>{let w=g().trim().split(`
335
- `).pop()?.trim().slice(0,300)??"";return`${e.label} failed (${C})${w?`: ${w}`:""}`},v=C=>{u||(u=!0,clearTimeout(b),clearTimeout(d),n.signal?.removeEventListener("abort",E),C!==void 0&&m(),p.stdout?.destroy(),p.stderr?.destroy(),Go(t,C===void 0?0:1),o(C===void 0?void 0:r(C)))},E=()=>v(y("cancelled")),b=setTimeout(()=>{c=!0,v(y(`timed out after ${s/1e3} s`))},s);n.signal?.addEventListener("abort",E,{once:!0}),n.signal?.aborted&&E();let I=(C,w)=>{if(c)return y(`timed out after ${s/1e3} s`);if(C!==0)return y(C===null?`killed by ${w}`:`exit ${C}`)};p.on("error",C=>v(y(`could not start: ${C.message}`))),p.on("close",(C,w)=>v(I(C,w))),p.on("exit",(C,w)=>{u||(C!==0?v(I(C,w)):d=setTimeout(()=>v(I(C,w)),1e3))})})}var Kke={discover:"reading the repositories",start:"starting the components",check:"checking that the components answer"};var m8e={running:"up",healthy:"up",ready:"up",started:"up",building:"starting",pending:"starting",installing:"starting",skipped:"out_of_scope",excluded:"out_of_scope","out-of-scope":"out_of_scope"};var A8e=new RegExp(Yl.source,"g");function Xke(e){let t=jd(e).serverUrl,n=Number.parseInt(e.GIT_CONFIG_COUNT??"0",10)||0;return{...e,GIT_CONFIG_COUNT:String(n+2),[`GIT_CONFIG_KEY_${n}`]:`http.${t}/.extraheader`,[`GIT_CONFIG_VALUE_${n}`]:"",[`GIT_CONFIG_KEY_${n+1}`]:"http.extraheader",[`GIT_CONFIG_VALUE_${n+1}`]:""}}var eRe=90,tRe={CLAUDE_CODE_DISABLE_BACKGROUND_TASKS:"1",CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS:String(eRe*1e3)},P6=30,O6={BASH_DEFAULT_TIMEOUT_MS:"600000",BASH_MAX_TIMEOUT_MS:String(P6*6e4)},F6=["This session is non-interactive: it ends as soon as you stop, and a background command can",`never notify you. Wait for long builds in the foreground (one Bash call may run up to ${P6}`,"minutes) and keep checking until they finish; never end your turn while setup is running. A server that must keep","running after setup is detached inside the command itself, with the redirect of both stdout and stderr","(`> log 2>&1`) on the whole backgrounded command (`docker compose up -d`, or `{ cmd; } </dev/null > log 2>&1 &`).","Without `2>&1` the server keeps the call's stderr open, and in `a || nohup cmd > log &` or","`(cd dir && nohup cmd > log &)` the redirect covers only `cmd`, and the shell that runs it keeps the call's output","open until the server exits. Run a setup script as a command of its own, never piped or chained:","`bash .skyramp/sut/setup.sh`. The call returns its output and exit status when the script exits, even if a server","it started still holds its output; through a pipe (`| tail`), it waits for that server."];function nRe(e,t){return Xke(gt(e,{...tRe,...t},"session"))}function qw(e){return nRe(process.env,e)}Dn();var U6=".skyramp/sut/health.json",uXe={[U6]:`${U6} (with a url or command)`};function YD(e,t){return!Tf(e.status)||e.environment?[]:[...new Set(e.components.flatMap(n=>n.credentials??[]))].filter(n=>!F_(n,t))}function ZD(e){let t=e.filter(Cf);if(t.length!==0)return`Rename ${t.join(", ")} in the recipe and on the workflow host, for example to APP_${t[0]}`}function Jw(e){if(e.state.stages.onboard?.status==="passed")return Ce(e,"onboard.json")}var Yw=Y(require("fs")),im=Y(require("path"));var j6=["browser_assert","browser_assert_api_request","browser_assert_hidden","browser_assert_table_cell","browser_blueprint","browser_click","browser_drag","browser_evaluate","browser_file_upload","browser_gojs_add_node","browser_gojs_link","browser_hover","browser_mouse_action","browser_navigate","browser_navigate_back","browser_press_key","browser_select_option","browser_snapshot","browser_tabs","browser_take_screenshot","browser_type","browser_visual_snapshot","browser_wait_for"],fXe=[...j6,"skyramp_export_zip","skyramp_actions","skyramp_analyze_changes","skyramp_analyze_test_health","skyramp_batch_mock_generation","skyramp_batch_scenario_test_generation","skyramp_contract_test_generation","skyramp_e2e_test_generation","skyramp_enhance_assertions","skyramp_enrich_test_with_mocks","skyramp_execute_test","skyramp_fix_errors","skyramp_fuzz_test_generation","skyramp_generate_enriched_integration_test","skyramp_init_scan","skyramp_init_workspace","skyramp_integration_test_generation","skyramp_load_test_generation","skyramp_login","skyramp_logout","skyramp_mock_generation","skyramp_modularization","skyramp_one_click_tool","skyramp_preflight_mock_check","skyramp_query_proxy_mocks","skyramp_recommend_tests","skyramp_register_test_plan","skyramp_reuse_code","skyramp_run_existing_tests","skyramp_setup_local_dev_worker","skyramp_smoke_test_generation","skyramp_start_trace_collection","skyramp_stop_trace_collection","skyramp_submit_report","skyramp_ui_test_generation"];var hXe=["skyramp_ui_test_generation","skyramp_mock_generation","skyramp_fix_errors","skyramp_start_trace_collection","skyramp_stop_trace_collection","skyramp_export_zip",...j6];var V6=["Bash(ls:*)","Bash(cat:*)","Bash(head:*)","Bash(tail:*)","Bash(wc:*)","Bash(find:*)","Bash(grep:*)","Bash(rg:*)","Bash(diff:*)","Bash(sort:*)","Bash(env:*)","Bash(echo:*)","Bash(pwd:*)","Bash(which:*)","Bash(cp:*)","Bash(curl:*)","Bash(jq:*)","Bash(true:*)"];var Ww=Y(require("fs"));var aRe={name:"output-produced",verify(e,t,n){let s=e.outputFileFor(n.name);return(Ww.existsSync(s)?Ww.readFileSync(s,"utf-8"):"").trim().length>0?{name:this.name,passed:!0}:{name:this.name,passed:!1,details:`stage produced no output (${s} empty or missing)`}}},cRe=["Re-read the stage instructions above and confirm every task was completed.","If you find a mistake or an incomplete task, fix it now before finishing.","End your response with a one-line summary of what this stage accomplished."];function G6(e){let t=e.requires??[];return{name:e.name,model:e.model??"sonnet",maxAttempts:e.maxAttempts,effort:e.effort,timeoutMinutes:e.timeoutMinutes??15,scaleTimeout:e.scaleTimeout,requires:t,softRequires:e.softRequires,validateInput:e.validateInput??(()=>({ok:!0,reasons:[]})),buildPrompt:e.buildPrompt??(()=>`You are the "${e.name}" stage of the Skyramp Testbot.`),selfVerification:e.selfVerification??cRe,exitGates:e.exitGates??[aRe],prepare:e.prepare,abortIf:e.abortIf,onAbort:e.onAbort,beforeReset:e.beforeReset,teardown:e.teardown,releaseAtRunEnd:e.releaseAtRunEnd,buildMcpServers:e.buildMcpServers,buildReadDirs:e.buildReadDirs,buildPluginDirs:e.buildPluginDirs,buildSettings:e.buildSettings,renderTimeLimit:e.renderTimeLimit,namesSession:e.namesSession,resumeFrom:e.resumeFrom,requiredSkills:e.requiredSkills,buildSessionEnv:e.buildSessionEnv,dataSafetyProxy:e.dataSafetyProxy,startsApp:e.startsApp,allowedTools:e.allowedTools,buildDisallowedTools:e.buildDisallowedTools,captureTrace:e.captureTrace,onPassed:e.onPassed,passReason:e.passReason,adversarialReview:e.adversarialReview,retryHint:e.retryHint,beforeGates:e.beforeGates,afterAttempt:e.afterAttempt,retryNote:e.retryNote,salvage:e.salvage,checkpoint:e.checkpoint,needsSutAuth:e.needsSutAuth,triageBranch:e.triageBranch,branchSkipClears:e.branchSkipClears,branchRequires:e.branchRequires}}var uRe=["Bash(docker:*)","Bash(docker compose:*)","Bash(docker-compose:*)","Bash(bash:*)","Bash(sh:*)","Bash(.skyramp/sut/*)","Bash(./.skyramp/sut/*)","Bash(curl:*)","Bash(sleep:*)",...V6,"Read","Write","Edit"];function lRe(e){let t=e.state.stages.onboard;if(t&&(t.status==="failed"||t.status==="aborted")){let o=t.reason?` \u2014 ${t.reason.length>300?`${t.reason.slice(0,300)}\u2026`:t.reason}`:"";return{ok:!1,reasons:[`onboarding ran and did not pass (${t.status}${o}) \u2014 deploy does not replay its recipe; fix that and onboard again`]}}let n=_s(e),s=Jw(e);if(s?.status==="blocked")return{ok:!1,reasons:[`onboarding reported blocked (${s.blockers.length} blocker(s)) \u2014 see outputs/onboard.json`]};let r=e.inputs.setupEvents&&t?.status==="passed"&&s&&!e.inputs.recheck?YD(s,qw()):[];return r.length>0?{ok:!1,planned:!0,reasons:[[`onboard found the credentials the SUT needs (${r.join(", ")}); Testbot adds the ones on the repository and the next run starts the app with them`,ZD(r)].filter(Boolean).join("; ")]}:n&&!n.sutRequired&&!(s&&Tf(s.status))&&!e.inputs.recheck?{ok:!1,reasons:["preflight determined no SUT is required (non-application change)"]}:Da(e.inputs.repositoryPath,n?.changedFiles.map(o=>o.path)).present?{ok:!0,reasons:[]}:{ok:!1,reasons:["no deploy recipe found (.skyramp/sut/setup.sh or health.json) \u2014 run onboarding first"]}}function dRe(e){let t=e.prepared?.recipe?.budgetMinutes;if(t===void 0)return;let n=Math.min(t+5,90);return n>25?n:void 0}function pRe(e){let t=_s(e);return{recipe:Da(e.inputs.repositoryPath,t?.changedFiles.map(s=>s.path))}}function fRe(e,t){return[t.setupScript,t.teardownScript,t.authTokenScript].filter(n=>!!n).map(n=>im.relative(e,n))}function hRe(e,t="revisions"){let n=dw(e.inputs);return n.length===0?[]:["","Shared components: these run in an existing environment that this run does not deploy.",...n.map(s=>` - ${s.name} at ${s.url}, running ${s.repository}`),"For each, find the URL on its host where the RUNNING component reports its commit (a version,",`build-info or health endpoint) and record it in "${t}": the url, and what it returned,`,"VERBATIM. This gate fetches each url and reads the commit from what it returns. A checkout's","commit is not the deployed one. Cite only the components listed; leave out one you cannot","check \u2014 it is then reported unverifiable, and no runtime test runs against it."]}function KD(e){return Jw(e)?.environment??e.inputs.recheckEnvironment}function gRe(e,t){return[`Tasks: the SUT is the customer's existing deployment at ${e}, already running. Never start, stop, redeploy or`,"change it, and write no setup.sh or teardown.sh: this recipe has none on purpose.","1. Sign in the way the recipe records (.skyramp/sut/get-auth-token.sh), when it has one \u2014 never echo it.","2. Health-check: run the recipe's check (.skyramp/sut/health.json) and confirm it answers with real data. Record the"," exact url/command and what it returned.",...t.healthHint?[` The recorded check: ${JSON.stringify(t.healthHint)}`]:[],'3. Record the outcome: "clean" when the check passes; "bringup-failed", with bringupError, when the deployment does',` not answer or is not ready. baseUrls: each component's address. teardown: "true", since nothing was started.`]}function mRe(e){let t=Jw(e),n=e.inputs.recheck?e.inputs.recheckCredentials??[]:t?wR(t):[];if(n.length===0)return[];let s=e.inputs.sharedEnvironment,r=Sf(s).map(i=>i.name);return["",`Credentials: the recipe reads ${n.join(", ")}, each from the environment variable of its name. Test each one that`,"has a value with a request that changes nothing, such as signing in with it (.skyramp/sut/get-auth-token.sh) or a GET","of an authenticated route: never one that creates, changes or deletes data.",...r.length>0?[`The shared components ${r.join(", ")} stay unchanged: test a credential they take only with a read.`]:[],...ARe(e)?["Record each one that is refused, such as with a 401 or 403 or a sign-in that fails, or that the app rejects at",'startup or bootstrap, such as a password it finds too short, in "credentialsRefused": its name, the component that',"refused it, the HTTP status when there was one, and the request or command with what came back. For one with no",'HTTP status, start that evidence with one short phrase saying why and a colon, such as "password shorter than 8','characters: <command and what came back>". Never write a value, there or anywhere. Leave out one with no value:',"Testbot reports it. A refused credential is not drift: never change the recipe to get around it. Never replace a","credential that has a value with a stand-in or a value written into the recipe, and never stop the recipe reading","it: Testbot refuses a recipe that does. When it stops the app coming up or its check passing, the outcome is",'"bringup-failed", and the credential is named.']:["Record each one that is refused, such as with a 401 or 403 or a sign-in that fails, in",'"credentialsRefused": its name, the component that refused it, the HTTP status, and the request or command with what',"came back. Never write a value, there or anywhere. Leave out one with no value: Testbot reports it. A refused","credential is not drift: never change the recipe to get around it. When it stops the app coming up or its check",'passing, the outcome is "bringup-failed", as for any other failure.']]}var ARe=e=>!!(e.inputs.recheck||e.inputs.setupEvents);function yRe(e){let{recipe:t}=e.prepared,n=e.inputs.repositoryPath,s=fRe(n,t),r=KD(e),i=e.inputs.sharedEnvironment,o=Sf(i).map(a=>a.name);return['You are the "deploy" stage of the Skyramp Testbot.',"",...r?["Purpose: confirm, from a fresh session, that the existing deployment onboard found is reachable and ready, so the","recipe is proven the way every run will use it. The recipe already exists; change nothing."]:["Purpose: bring the system under test (SUT) up from its recorded recipe so","later stages can run tests against it. You do NOT design the deployment \u2014 the","recipe already exists. Execute it, verify it works, and if it has drifted","slightly out of date, correct it and continue (rather than reverting)."],"",`Repository: ${n} \u2014 work inside it.`,`Recipe files present: ${s.join(", ")||"(workspace only)"}`,"",...F6,t.stale?`
334
+ `),"latin1"))),[ee,je]})),Pt=[];for(let ee of r)try{ft(p,["--literal-pathspecs","add","--",ee])}catch{Pt.push(ee)}if(Pt.some(ee=>G.has(ee)))throw new Error("could not stage every guarded delivery file");let $t=new Map([...ut].map(([ee,We])=>{let Rt=ft(p,["--literal-pathspecs","ls-files","--stage","--",ee]),je=/^100(?:644|755) ([a-f0-9]+) 0\t/.exec(Rt)?.[1];if(!je||!We.has(je))throw new Error(`the staged guarded file differs from the generated file: ${ee}`);return[ee,je]}));try{ft(p,["diff","--cached","--quiet"])}catch{try{let ee=_ke(p,h,q,Ee,e.inputs.skyrampRunUrl);ft(p,["-c",`user.name=${v.name}`,"-c",`user.email=${v.email}`,"commit","-m",ee])}catch(ee){throw new Vw(ee)}c=!0}c&&(d.length=0),u=ft(p,["rev-parse","HEAD"]);let sn,pt,Tt,dn=x??i?.headSha;if(c&&dn&&dn!==q){let ee=!1,We=u;try{ft(p,["checkout","-q","-B",a,dn]),ee=!0;try{ft(p,["-c",`user.name=${v.name}`,"-c",`user.email=${v.email}`,"cherry-pick","--keep-redundant-commits",u])}catch(Rt){let je=x?Nke(p,v,We):void 0;if(!je||(pt=je.files.map(Tn=>({file:Tn,dependsOn:Dke(p,o,x,q,Tn)})),Tt={repository:o,base:b,files:pt,patch:Pke(p,q,We,je.files)},!je.delivered))throw Rt}ee=!1,kD(Rt=>ft(p,Rt),dn),u=ft(p,["rev-parse","HEAD"])}catch(Rt){try{ft(p,["cherry-pick","--abort"])}catch{}ft(p,["checkout","-q","-B",a,u]);let je=Gg(Ba(Rt),1/0);if(x&&!ee)throw Rt;if(x)return{thrown:!1,held:Tt,record:{schemaVersion:1,repository:o,branch:a,remote:E,base:b,committed:c,commitSha:u,pushed:!1,prAction:"skipped",prTitle:y,unstaged:Pt,...pt?{heldBack:pt}:{},reason:pt?`every test change needs a merged revision ${b} does not have yet, so no tests PR was opened: ${B6(pt)}`:`the tests do not apply to ${b} at ${x.slice(0,12)} without the merged revisions (${je}), so no tests PR was opened`}};sn=`tests committed on the checkout's merge commit (re-cut onto ${dn.slice(0,12)} failed: ${je})`}}pt&&yn.writeFileSync(ue,S(pt));for(let[ee,We]of $t){if(pt?.some(je=>je.file===ee))continue;let Rt=ft(p,["--literal-pathspecs","ls-tree",u,"--",ee]);if(/^100(?:644|755) blob ([a-f0-9]+)\t/.exec(Rt)?.[1]!==We)throw new Error(`the committed guarded file differs from the generated file: ${ee}`)}for(let{record:ee}of Me){if(ee.entry)continue;let We=ft(p,["--literal-pathspecs","ls-tree",u,"--",ee.file]);if(We&&We!==ft(p,["--literal-pathspecs","ls-tree",q,"--",ee.file]))throw new Error(`the delivery included executable source for a held test: ${ee.file}`)}let Qt=i?{}:{repositoryPath:p,repoSlug:o,devPr:null};if(!c){let ee=await t.markTestsPrUnchanged({branch:a,...Qt});return{thrown:!1,record:{schemaVersion:1,repository:o,branch:a,remote:E,base:b,committed:!1,commitSha:u,pushed:!1,prAction:ee.action==="unchanged"?"unchanged":"skipped",prUrl:ee.url,prTitle:y,unstaged:Pt,reason:ee.action==="unchanged"?"no test changes to commit \u2014 existing tests PR annotated as unchanged":"no test changes to commit \u2014 nothing pushed, no PR opened"}}}let Le=await t.publishTestsPr({repositoryPath:p,...Qt,remote:E,branch:a,base:b,commitSha:u,title:y,bodyFile:ue,mode:e.inputs.deliverMode,deliveryOwner:I,...e.inputs.firstQualification?{firstQualification:!0}:{},runUrl:e.inputs.skyrampRunUrl,signal:e.signal,deadlineMs:e.deadlineMs});return{thrown:!1,held:Tt,record:{schemaVersion:1,repository:o,branch:a,remote:E,base:Le.base,requestedBase:b,committed:c,commitSha:u,pushed:Le.pushed,...Le.pushedCommits?{pushedCommits:Le.pushedCommits}:{},...Le.deliveredCommit?{deliveredCommit:Le.deliveredCommit}:{},prAction:Le.action,...Le.retargetedAs?{retargetedAs:Le.retargetedAs}:{},prUrl:Le.url,prTitle:y,...Le.failure?{prFailure:Le.failure,prDetail:Le.detail}:{},...sn?{cutNote:sn}:{},...Le.action==="skipped"&&Le.detail?{reason:Le.detail}:{},unstaged:Pt,...pt?{heldBack:pt}:{}}}}catch(p){return{thrown:!0,record:{schemaVersion:1,repository:o,branch:a,committed:c,commitSha:u,pushed:!1,prAction:"failed",...Tke(p),unstaged:[]}}}finally{if(d.length){try{ft(s.path,["reset"])}catch{}for(let p of d.reverse())try{p()}catch{}}}}var V9e={name:"deliver",timeoutMinutes:5,execute:Rke,validateInput:e=>{let t=bD(e);return t?{ok:!1,reasons:[t]}:mke(e)},requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var H3e=10*6e4,q3e=4*6e4;var J3e=10*6e4;var Mke=3e4,Lke=3,x6=30,_a=class extends Error{constructor(n,s,r,i){super(n);this.status=s;this.code=r;this.path=i}status;code;path},Ci=class extends Error{},ep=class extends Ci{},Gw=class extends ep{};function jke(e){let t;try{t=new URL(e)}catch{throw new Error(`skyrampAppOrigin "${e}" is not a URL`)}if(t.protocol!=="https:"||t.origin!==e.replace(/\/+$/,""))throw new Error(`skyrampAppOrigin must be an https origin, got "${e}"`);return t.origin}function Vke(e,t){if(!Jl.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}function Gke(e,t,n,s){throw t<500&&t!==429?new _a(e,t,n,s):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new Gw(e):t===503&&n==="RUN_NOT_READY"?new ep(e):new Ci(e)}async function zke(e,t,n,s,r,i=1/0){let o=jke(e.origin),a=`The time limit for ${t} ${n} was reached`,c,u=0;for(let d=1;d<=Lke||c instanceof ep;d+=1){if(c instanceof ep){if(u===x6)throw c;u+=1,d-=1,e.log?.(`${c.message}; trying again (${u} of ${x6}).`),await new Promise(p=>setTimeout(p,Math.max(0,Math.min(e.readyWaitMs??1e4,i-Date.now()))))}else d>1&&await new Promise(p=>setTimeout(p,Math.max(0,Math.min((e.retryDelayMs??2e3)*(d-1),i-Date.now()))));if(Date.now()>=i)throw new Ci(a);try{let p,h=await(Number.isFinite(i)?Promise.race([e.idToken(o),new Promise((m,y)=>{p=setTimeout(()=>y(new Ci(a)),Math.max(1,i-Date.now()))})]).finally(()=>{p&&clearTimeout(p)}):e.idToken(o));if(Date.now()>=i)throw new Ci(a);let g=await(e.fetch??fetch)(new URL(n,o).toString(),{...s(h),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(Mke,i-Date.now())))}).catch(m=>{throw new Ci(m instanceof Error?m.message:String(m),{cause:m})});return await r(g)}catch(p){if(p instanceof _a||Date.now()>=i)throw p;c=p}}throw c}function Hke(e,t,n,s,r){let i=s.headers.get("cf-ray");e.log?.(`Testbot V3: ${t} ${n} answered ${s.status}${i?`, cf-ray ${i}`:""}: ${r.replace(/\s+/g," ").slice(0,200)}`)}var zw=class extends Error{};function qke(e){let t=Buffer.byteLength(e,"utf8");if(t<=VR)return{body:e};if(t>sz)throw new zw("The report exceeds the app's 16 MiB expanded report limit");let n=new Uint8Array((0,Q6.gzipSync)(e));if(n.length>VR)throw new zw("The compressed report exceeds the app's 1 MiB report upload limit");return{body:n,gzip:!0}}function Jke(e,t,n,s,r){let i=t==="GET"?void 0:JSON.stringify(s),o=t==="PUT"&&/^\/api\/v1\/runner\/attempts\/[^/]+\/report$/.test(n)&&i!==void 0?qke(i):{body:i};return Wke(e,t,n,o,r)}function Wke(e,t,n,s,r){return zke(e,t,n,o=>({method:t,headers:{Authorization:`Bearer ${o}`,"Content-Type":"application/json",Accept:"application/json",...s.gzip?{"Content-Encoding":"gzip"}:{}},body:s.body}),async o=>{let a=await o.text().catch(()=>""),c={};try{c=JSON.parse(a)}catch{}if(o.ok)return c.data;Hke(e,t,n,o,a);let u=c.error?.fields,d=typeof u?.path=="string"&&typeof u.reason=="string"?` at ${u.path}: ${u.reason}`:"",p=`The Skyramp app refused ${t} ${n}: ${o.status} ${c.error?.code??"no error code"}${d}`;return Gke(p,o.status,c.error?.code,typeof u?.path=="string"?u.path:void 0)},r)}var W3e=10*6e4;var Y3e=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var Z3e=l.object({tests:l.object({placements:l.array(l.unknown()).optional()}).passthrough().optional()}).passthrough(),K3e=l.object({repository:MR,testType:l.string(),directory:l.string()}).passthrough();var X3e=l.object({report:l.object({language:l.string()}).passthrough()}).passthrough();var e8e=l.object({environment:l.object({components:l.array(l.unknown()).optional(),dependencies:l.array(l.unknown()).optional()}).passthrough()}).passthrough(),t8e=l.object({environment:l.object({offLimits:l.unknown().optional()}).passthrough()}).passthrough();var n8e=l.object({environment:l.object({allowedEgress:l.unknown().optional()}).passthrough()}).passthrough();var r8e=l.object({name:l.string().min(1),provision:l.literal("existing"),url:l.string().min(1),repository:MR.optional(),revisionUrl:l.string().min(1).optional()}).passthrough(),s8e=l.object({name:l.string().min(1),url:l.string().nullable(),versionUrl:l.string().nullable(),notes:l.string().nullable()}).passthrough();var i8e=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);var o8e={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};async function _6(e,t){return Vke(e.attemptId,"attempt id"),Jke(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,Rz({reportUploaded:e.reportUploaded,recipeUploaded:e.recipeUploaded,revisionsUploaded:e.revisionsUploaded,cancelled:e.cause==="cancelled",timedOut:e.cause==="timed_out",setupFailed:e.cause==="setup_failed",checkoutFailed:e.cause==="checkout_failed"||e.cause==="merge_conflict"&&!e.conflict,mergeConflict:e.cause==="merge_conflict"?e.conflict:void 0,environmentUnverified:e.cause==="environment_unverified",runnerProviderNotReady:e.cause==="runner_provider_not_ready",credentialMissing:e.cause==="credential_missing",modelProviderDenied:e.cause==="model_provider_denied",modelProviderUnavailable:e.cause==="model_provider_unavailable",githubWrites:e.githubWrites,environmentUnavailable:e.cause==="environment_unavailable"}))}var sm=Y(require("fs")),Si=Y(require("path")),D6=require("child_process");var tp=Si.join(".skyramp","sut");function Yke(e){return e.startsWith(`${tp}${Si.sep}`)||e.startsWith(".skyramp/sut/")||/(^|\/)(docker-compose|compose)[^/]*\.ya?ml$/.test(e)||/(^|\/)Dockerfile[^/]*$/.test(e)||/^\.github\/workflows\//.test(e)}function WD(e,t,n={}){let s=t.split(/[\\/]+/).filter(Boolean),r=e;for(let[i,o]of s.entries()){r=Si.join(r,o);let a=sm.lstatSync(r,{throwIfNoEntry:!1}),c=i===s.length-1;if(!a||a.isSymbolicLink()||(c?n.directory?!a.isDirectory():!a.isFile():!a.isDirectory()))return}return s.length?r:void 0}function Da(e,t=[]){let n=p=>WD(e,p),s=n(Si.join(tp,"setup.sh")),r=n(Si.join(tp,"teardown.sh")),i=n(Si.join(tp,"get-auth-token.sh")),o,a=n(Si.join(tp,"health.json"));if(a)try{let p=JSON.parse(sm.readFileSync(a,"utf-8"));p&&(p.url||p.command)&&(o=p)}catch{}let c,u=n(Si.join(tp,"deploy-budget.json"));if(u)try{let p=JSON.parse(sm.readFileSync(u,"utf-8"));typeof p?.minutes=="number"&&Number.isFinite(p.minutes)&&p.minutes>0&&(c=p.minutes)}catch{}let d=t.filter(Yke);return{setupScript:s,teardownScript:r,authTokenScript:i,healthHint:o,budgetMinutes:c,present:!!(s||a),staleFiles:d,stale:d.length>0}}var N6=12e4;function Hw(e,t,n){let s=n.timeoutMs??N6;if(n.signal?.aborted)return Promise.resolve(`${e.label} failed (cancelled)`);let r=o=>ch(Mt(o,n.secretValues??[])),i;try{i=$s(e.argv,t,n.env)}catch(o){return Promise.resolve(r(`${e.label} failed (could not start: ${o instanceof Error?o.message:String(o)})`))}return new Promise(o=>{let a="",c=!1,u=!1,d,p;try{p=(0,D6.spawn)(i.argv[0],i.argv.slice(1),{cwd:t,env:i.env,stdio:["ignore","pipe","pipe"],detached:!0})}catch(C){let w=C instanceof Error?C.message:String(C);o(r(`${e.label} failed (could not start: ${w})`));return}let h=C=>{let w=Math.max(0,...(n.secretValues??[]).map(x=>x.length));a=(a+C.toString("utf-8")).slice(-(4096+w))},g=()=>r(nB(a,n.secretValues??[],4096));p.stdout?.on("data",h),p.stderr?.on("data",h);let m=()=>{try{p.pid!==void 0&&process.kill(-p.pid,"SIGKILL")}catch{p.kill("SIGKILL")}},y=C=>{let w=g().trim().split(`
335
+ `).pop()?.trim().slice(0,300)??"";return`${e.label} failed (${C})${w?`: ${w}`:""}`},v=C=>{u||(u=!0,clearTimeout(b),clearTimeout(d),n.signal?.removeEventListener("abort",E),C!==void 0&&m(),p.stdout?.destroy(),p.stderr?.destroy(),Go(t,C===void 0?0:1),o(C===void 0?void 0:r(C)))},E=()=>v(y("cancelled")),b=setTimeout(()=>{c=!0,v(y(`timed out after ${s/1e3} s`))},s);n.signal?.addEventListener("abort",E,{once:!0}),n.signal?.aborted&&E();let I=(C,w)=>{if(c)return y(`timed out after ${s/1e3} s`);if(C!==0)return y(C===null?`killed by ${w}`:`exit ${C}`)};p.on("error",C=>v(y(`could not start: ${C.message}`))),p.on("close",(C,w)=>v(I(C,w))),p.on("exit",(C,w)=>{u||(C!==0?v(I(C,w)):d=setTimeout(()=>v(I(C,w)),1e3))})})}var Kke={discover:"reading the repositories",start:"starting the components",check:"checking that the components answer"};var y8e={running:"up",healthy:"up",ready:"up",started:"up",building:"starting",pending:"starting",installing:"starting",skipped:"out_of_scope",excluded:"out_of_scope","out-of-scope":"out_of_scope"};var E8e=new RegExp(Yl.source,"g");function Xke(e){let t=jd(e).serverUrl,n=Number.parseInt(e.GIT_CONFIG_COUNT??"0",10)||0;return{...e,GIT_CONFIG_COUNT:String(n+2),[`GIT_CONFIG_KEY_${n}`]:`http.${t}/.extraheader`,[`GIT_CONFIG_VALUE_${n}`]:"",[`GIT_CONFIG_KEY_${n+1}`]:"http.extraheader",[`GIT_CONFIG_VALUE_${n+1}`]:""}}var eRe=90,tRe={CLAUDE_CODE_DISABLE_BACKGROUND_TASKS:"1",CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS:String(eRe*1e3)},P6=30,O6={BASH_DEFAULT_TIMEOUT_MS:"600000",BASH_MAX_TIMEOUT_MS:String(P6*6e4)},F6=["This session is non-interactive: it ends as soon as you stop, and a background command can",`never notify you. Wait for long builds in the foreground (one Bash call may run up to ${P6}`,"minutes) and keep checking until they finish; never end your turn while setup is running. A server that must keep","running after setup is detached inside the command itself, with the redirect of both stdout and stderr","(`> log 2>&1`) on the whole backgrounded command (`docker compose up -d`, or `{ cmd; } </dev/null > log 2>&1 &`).","Without `2>&1` the server keeps the call's stderr open, and in `a || nohup cmd > log &` or","`(cd dir && nohup cmd > log &)` the redirect covers only `cmd`, and the shell that runs it keeps the call's output","open until the server exits. Run a setup script as a command of its own, never piped or chained:","`bash .skyramp/sut/setup.sh`. The call returns its output and exit status when the script exits, even if a server","it started still holds its output; through a pipe (`| tail`), it waits for that server."];function nRe(e,t){return Xke(gt(e,{...tRe,...t},"session"))}function qw(e){return nRe(process.env,e)}Dn();var U6=".skyramp/sut/health.json",dXe={[U6]:`${U6} (with a url or command)`};function YD(e,t){return!Tf(e.status)||e.environment?[]:[...new Set(e.components.flatMap(n=>n.credentials??[]))].filter(n=>!F_(n,t))}function ZD(e){let t=e.filter(Cf);if(t.length!==0)return`Rename ${t.join(", ")} in the recipe and on the workflow host, for example to APP_${t[0]}`}function Jw(e){if(e.state.stages.onboard?.status==="passed")return Ce(e,"onboard.json")}var Yw=Y(require("fs")),im=Y(require("path"));var j6=["browser_assert","browser_assert_api_request","browser_assert_hidden","browser_assert_table_cell","browser_blueprint","browser_click","browser_drag","browser_evaluate","browser_file_upload","browser_gojs_add_node","browser_gojs_link","browser_hover","browser_mouse_action","browser_navigate","browser_navigate_back","browser_press_key","browser_select_option","browser_snapshot","browser_tabs","browser_take_screenshot","browser_type","browser_visual_snapshot","browser_wait_for"],gXe=[...j6,"skyramp_export_zip","skyramp_actions","skyramp_analyze_changes","skyramp_analyze_test_health","skyramp_batch_mock_generation","skyramp_batch_scenario_test_generation","skyramp_contract_test_generation","skyramp_e2e_test_generation","skyramp_enhance_assertions","skyramp_enrich_test_with_mocks","skyramp_execute_test","skyramp_fix_errors","skyramp_fuzz_test_generation","skyramp_generate_enriched_integration_test","skyramp_init_scan","skyramp_init_workspace","skyramp_integration_test_generation","skyramp_load_test_generation","skyramp_login","skyramp_logout","skyramp_mock_generation","skyramp_modularization","skyramp_one_click_tool","skyramp_preflight_mock_check","skyramp_query_proxy_mocks","skyramp_recommend_tests","skyramp_register_test_plan","skyramp_reuse_code","skyramp_run_existing_tests","skyramp_setup_local_dev_worker","skyramp_smoke_test_generation","skyramp_start_trace_collection","skyramp_stop_trace_collection","skyramp_submit_report","skyramp_ui_test_generation"];var mXe=["skyramp_ui_test_generation","skyramp_mock_generation","skyramp_fix_errors","skyramp_start_trace_collection","skyramp_stop_trace_collection","skyramp_export_zip",...j6];var V6=["Bash(ls:*)","Bash(cat:*)","Bash(head:*)","Bash(tail:*)","Bash(wc:*)","Bash(find:*)","Bash(grep:*)","Bash(rg:*)","Bash(diff:*)","Bash(sort:*)","Bash(env:*)","Bash(echo:*)","Bash(pwd:*)","Bash(which:*)","Bash(cp:*)","Bash(curl:*)","Bash(jq:*)","Bash(true:*)"];var Ww=Y(require("fs"));var aRe={name:"output-produced",verify(e,t,n){let s=e.outputFileFor(n.name);return(Ww.existsSync(s)?Ww.readFileSync(s,"utf-8"):"").trim().length>0?{name:this.name,passed:!0}:{name:this.name,passed:!1,details:`stage produced no output (${s} empty or missing)`}}},cRe=["Re-read the stage instructions above and confirm every task was completed.","If you find a mistake or an incomplete task, fix it now before finishing.","End your response with a one-line summary of what this stage accomplished."];function G6(e){let t=e.requires??[];return{name:e.name,model:e.model??"sonnet",maxAttempts:e.maxAttempts,effort:e.effort,timeoutMinutes:e.timeoutMinutes??15,scaleTimeout:e.scaleTimeout,requires:t,softRequires:e.softRequires,validateInput:e.validateInput??(()=>({ok:!0,reasons:[]})),buildPrompt:e.buildPrompt??(()=>`You are the "${e.name}" stage of the Skyramp Testbot.`),selfVerification:e.selfVerification??cRe,exitGates:e.exitGates??[aRe],prepare:e.prepare,abortIf:e.abortIf,onAbort:e.onAbort,beforeReset:e.beforeReset,teardown:e.teardown,releaseAtRunEnd:e.releaseAtRunEnd,buildMcpServers:e.buildMcpServers,buildReadDirs:e.buildReadDirs,buildPluginDirs:e.buildPluginDirs,buildSettings:e.buildSettings,renderTimeLimit:e.renderTimeLimit,namesSession:e.namesSession,resumeFrom:e.resumeFrom,requiredSkills:e.requiredSkills,buildSessionEnv:e.buildSessionEnv,dataSafetyProxy:e.dataSafetyProxy,startsApp:e.startsApp,allowedTools:e.allowedTools,buildDisallowedTools:e.buildDisallowedTools,captureTrace:e.captureTrace,onPassed:e.onPassed,passReason:e.passReason,adversarialReview:e.adversarialReview,retryHint:e.retryHint,beforeGates:e.beforeGates,afterAttempt:e.afterAttempt,retryNote:e.retryNote,salvage:e.salvage,checkpoint:e.checkpoint,needsSutAuth:e.needsSutAuth,triageBranch:e.triageBranch,branchSkipClears:e.branchSkipClears,branchRequires:e.branchRequires}}var uRe=["Bash(docker:*)","Bash(docker compose:*)","Bash(docker-compose:*)","Bash(bash:*)","Bash(sh:*)","Bash(.skyramp/sut/*)","Bash(./.skyramp/sut/*)","Bash(curl:*)","Bash(sleep:*)",...V6,"Read","Write","Edit"];function lRe(e){let t=e.state.stages.onboard;if(t&&(t.status==="failed"||t.status==="aborted")){let o=t.reason?` \u2014 ${t.reason.length>300?`${t.reason.slice(0,300)}\u2026`:t.reason}`:"";return{ok:!1,reasons:[`onboarding ran and did not pass (${t.status}${o}) \u2014 deploy does not replay its recipe; fix that and onboard again`]}}let n=_s(e),s=Jw(e);if(s?.status==="blocked")return{ok:!1,reasons:[`onboarding reported blocked (${s.blockers.length} blocker(s)) \u2014 see outputs/onboard.json`]};let r=e.inputs.setupEvents&&t?.status==="passed"&&s&&!e.inputs.recheck?YD(s,qw()):[];return r.length>0?{ok:!1,planned:!0,reasons:[[`onboard found the credentials the SUT needs (${r.join(", ")}); Testbot adds the ones on the repository and the next run starts the app with them`,ZD(r)].filter(Boolean).join("; ")]}:n&&!n.sutRequired&&!(s&&Tf(s.status))&&!e.inputs.recheck?{ok:!1,reasons:["preflight determined no SUT is required (non-application change)"]}:Da(e.inputs.repositoryPath,n?.changedFiles.map(o=>o.path)).present?{ok:!0,reasons:[]}:{ok:!1,reasons:["no deploy recipe found (.skyramp/sut/setup.sh or health.json) \u2014 run onboarding first"]}}function dRe(e){let t=e.prepared?.recipe?.budgetMinutes;if(t===void 0)return;let n=Math.min(t+5,90);return n>25?n:void 0}function pRe(e){let t=_s(e);return{recipe:Da(e.inputs.repositoryPath,t?.changedFiles.map(s=>s.path))}}function fRe(e,t){return[t.setupScript,t.teardownScript,t.authTokenScript].filter(n=>!!n).map(n=>im.relative(e,n))}function hRe(e,t="revisions"){let n=dw(e.inputs);return n.length===0?[]:["","Shared components: these run in an existing environment that this run does not deploy.",...n.map(s=>` - ${s.name} at ${s.url}, running ${s.repository}`),"For each, find the URL on its host where the RUNNING component reports its commit (a version,",`build-info or health endpoint) and record it in "${t}": the url, and what it returned,`,"VERBATIM. This gate fetches each url and reads the commit from what it returns. A checkout's","commit is not the deployed one. Cite only the components listed; leave out one you cannot","check \u2014 it is then reported unverifiable, and no runtime test runs against it."]}function KD(e){return Jw(e)?.environment??e.inputs.recheckEnvironment}function gRe(e,t){return[`Tasks: the SUT is the customer's existing deployment at ${e}, already running. Never start, stop, redeploy or`,"change it, and write no setup.sh or teardown.sh: this recipe has none on purpose.","1. Sign in the way the recipe records (.skyramp/sut/get-auth-token.sh), when it has one \u2014 never echo it.","2. Health-check: run the recipe's check (.skyramp/sut/health.json) and confirm it answers with real data. Record the"," exact url/command and what it returned.",...t.healthHint?[` The recorded check: ${JSON.stringify(t.healthHint)}`]:[],'3. Record the outcome: "clean" when the check passes; "bringup-failed", with bringupError, when the deployment does',` not answer or is not ready. baseUrls: each component's address. teardown: "true", since nothing was started.`]}function mRe(e){let t=Jw(e),n=e.inputs.recheck?e.inputs.recheckCredentials??[]:t?wR(t):[];if(n.length===0)return[];let s=e.inputs.sharedEnvironment,r=Sf(s).map(i=>i.name);return["",`Credentials: the recipe reads ${n.join(", ")}, each from the environment variable of its name. Test each one that`,"has a value with a request that changes nothing, such as signing in with it (.skyramp/sut/get-auth-token.sh) or a GET","of an authenticated route: never one that creates, changes or deletes data.",...r.length>0?[`The shared components ${r.join(", ")} stay unchanged: test a credential they take only with a read.`]:[],...ARe(e)?["Record each one that is refused, such as with a 401 or 403 or a sign-in that fails, or that the app rejects at",'startup or bootstrap, such as a password it finds too short, in "credentialsRefused": its name, the component that',"refused it, the HTTP status when there was one, and the request or command with what came back. For one with no",'HTTP status, start that evidence with one short phrase saying why and a colon, such as "password shorter than 8','characters: <command and what came back>". Never write a value, there or anywhere. Leave out one with no value:',"Testbot reports it. A refused credential is not drift: never change the recipe to get around it. Never replace a","credential that has a value with a stand-in or a value written into the recipe, and never stop the recipe reading","it: Testbot refuses a recipe that does. When it stops the app coming up or its check passing, the outcome is",'"bringup-failed", and the credential is named.']:["Record each one that is refused, such as with a 401 or 403 or a sign-in that fails, in",'"credentialsRefused": its name, the component that refused it, the HTTP status, and the request or command with what',"came back. Never write a value, there or anywhere. Leave out one with no value: Testbot reports it. A refused","credential is not drift: never change the recipe to get around it. When it stops the app coming up or its check",'passing, the outcome is "bringup-failed", as for any other failure.']]}var ARe=e=>!!(e.inputs.recheck||e.inputs.setupEvents);function yRe(e){let{recipe:t}=e.prepared,n=e.inputs.repositoryPath,s=fRe(n,t),r=KD(e),i=e.inputs.sharedEnvironment,o=Sf(i).map(a=>a.name);return['You are the "deploy" stage of the Skyramp Testbot.',"",...r?["Purpose: confirm, from a fresh session, that the existing deployment onboard found is reachable and ready, so the","recipe is proven the way every run will use it. The recipe already exists; change nothing."]:["Purpose: bring the system under test (SUT) up from its recorded recipe so","later stages can run tests against it. You do NOT design the deployment \u2014 the","recipe already exists. Execute it, verify it works, and if it has drifted","slightly out of date, correct it and continue (rather than reverting)."],"",`Repository: ${n} \u2014 work inside it.`,`Recipe files present: ${s.join(", ")||"(workspace only)"}`,"",...F6,t.stale?`
336
336
  STALENESS WARNING: this PR changed recipe/infra files (${t.staleFiles.join(", ")}).
337
337
  The recorded recipe may no longer match. If bring-up fails, first decide
338
338
  WHY: recipe drift (infra moved, recipe is behind) vs the change itself
339
339
  breaking bring-up. Do NOT paper over a PR that broke the app.`:"","",...r?gRe(r.address,t):["Tasks:","1. Replay the recipe: run .skyramp/sut/setup.sh (or the workspace bring-up)"," even when the SUT already answers: never skip it because something is running."," Bring up every dependency you can; mock one only when deploying it here"," is genuinely infeasible. If the recipe has drifted, correct it so it works"," and update the recipe files to what actually worked. teardown.sh exits 0"," when nothing runs.","2. Seed or reset state per the recipe. Acquire the auth token the way the"," recipe records (.skyramp/sut/get-auth-token.sh) \u2014 never echo it.",...o.length?[` Leave the shared components ${o.join(", ")} unchanged: do not seed or reset them.`]:[],"3. Health-check: confirm application logic answers with real data (seeded",' data readable via a real endpoint) \u2014 NOT "port open", NOT "any HTTP',' status". Record the exact url/command and what it returned.',...t.healthHint?[" Recommended health check (recorded by onboarding \u2014 prefer it, and",` record its real output): ${JSON.stringify(t.healthHint)}`]:[],'4. Record the outcome honestly (see the schema): "change-broke-bringup" is',' published to the author as "your change broke the app" and needs evidence'," \u2014 bringupError plus suspectFiles that THIS PR changed; without a changed",' file to point at, it is "bringup-failed".'],...hRe(e),...mRe(e),"","Output: end with one JSON object matching:","",Dz(Nf)," // health.output is evidence, not narration: the exact bytes, with NOTHING"," // appended \u2014 no gloss on what the response proves, no list of the other probes"," // you ran. This gate RE-RUNS the check and matches the fresh output against this"," // field, so a sentence added here describes a run nobody can reproduce. Say what"," // it means in your prose answer instead."," // On a failed bring-up, baseUrls/health may be omitted \u2014 never invent a URL for an app that didn't start."].filter(a=>a!==void 0).join(`
340
- `)}function H6(e){let t=im.join(e.outputsDir,"deploy.txt");if(Yw.existsSync(t)){let{deploy:s}=Eu({exitCode:0,stdout:Yw.readFileSync(t,"utf-8"),stderr:"",timedOut:!1,durationMs:0});if(s?.teardown)return{argv:["sh","-c",s.teardown],label:"deploy.json's teardown"}}let{teardownScript:n}=Da(e.inputs.repositoryPath);if(n)return{argv:["bash",n],label:im.join(".skyramp","sut","teardown.sh")}}function q6(e,t){return Hw(t,e.inputs.repositoryPath,{env:gt(),secretValues:e.secretValues})}async function z6(e){let t=H6(e);if(t){let n=await q6(e,t);if(n&&k4(e))throw new Error(`SUT teardown failed: ${n}`)}}async function ERe(e,t){let n=t.passed?void 0:J6(e);if(!n)return;let s=await q6(e,n);return s&&`${s} (if nothing was running, a teardown must exit 0)`}function J6(e){return KD(e)?void 0:H6(e)}function vRe(e){if(J6(e))return"Testbot tore down the SUT the previous attempt started. Bring it up again from the start: run .skyramp/sut/setup.sh (or the workspace bring-up), even if something still answers. Never reuse what is running."}function bRe(e,t){let{deploy:n}=Eu(t,e.inputs.repositoryPath,e.secretValues);if(!n)return;if(n.outcome==="bringup-failed"){let r=Mt(n.bringupError?.output?.trim()??"",e.secretValues??[]);return`bring-up failed (environment) \u2014 no live app for later stages${r?`: ${r.slice(0,160)}`:""}`}if(n.outcome==="change-broke-bringup")return"this PR broke bring-up \u2014 recorded as a finding, no live app for later stages";let s=xg(e).map(r=>r.name);if(s.length)return`the shared environment's ${s.join(", ")} does not verifiably run the revision under validation \u2014 no runtime test runs against it`}var W6=G6({name:"deploy",model:"opus",timeoutMinutes:25,requires:["preflight"],softRequires:["onboard"],startsApp:e=>!e.inputs.appRunning&&!(e.inputs.testEnvironment&&KD(e)),triageBranch:"runtime",validateInput:lRe,prepare:pRe,scaleTimeout:dRe,buildPrompt:yRe,allowedTools:uRe,buildSessionEnv:()=>({...O6}),selfVerification:["dependencies lists every backing service, true only if really deployed \u2014 a mocked one is false, never omitted.","Your final message is one JSON object matching the schema."],exitGates:[hw(),SZ()],onPassed:async(e,t)=>({...RZ(e,t),...await kZ(e,t)}),passReason:bRe,afterAttempt:ERe,retryNote:vRe,onAbort:z6,teardown:z6});Dn();var WXe=20*1024*1024;var Z6=Y(require("path"));var i5e=Z6.join(".skyramp","sut","get-auth-token.sh");var XD="\\$([A-Z][A-Z0-9_]{0,99})",o5e=new RegExp(`^${XD}$`),a5e=new RegExp(`^${XD}:${XD}$`);var a7e=3*6e4;var c7e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`;var x7e=new RegExp(Yl.source,"g");var SRe="https://testbot.skyramp.dev",fo={attemptId:"v3AttemptId",deadlineAt:"v3DeadlineAt",reportUploaded:"v3ReportUploaded",recipeUploaded:"v3RecipeUploaded",recipeStatus:"v3RecipeStatus",revisionsUploaded:"v3RevisionsUploaded",cause:"v3Cause",conflict:"v3Conflict",githubWrites:"v3GithubWrites"};function kRe(e,t,n){return{origin:e,idToken:t,sourceToken:n,mask:s=>Mi(s),log:s=>Bs(s),onTokenRefused:(s,r)=>{BRe(s)&&K6.set(r,s)},onTokenGranted:s=>{K6.delete(s)}}}var K6=new Map;var unt=["setup_failed","checkout_failed","environment_unverified"];function RRe(e,t){return t.getTime()>=e.getTime()}function BRe(e){return e instanceof Ci||e instanceof _a&&e.code!=="CREDENTIALS_UNAVAILABLE"}var lnt={cancelled:"Skyramp cancelled this run",expired:"this attempt passed its deadline in Skyramp",ended:"Skyramp already ended this attempt"},dnt={cancelled:"attempt-cancelled",expired:"attempt-closed",ended:"attempt-closed"},pnt={cancelled:"cancelled",expired:"timed_out",ended:"agent_failed"};var fnt={analyze:"analyze",triage:"analyze",recommend:"recommend",generate:"generate","generate-ui":"generate","generate-unit":"generate",adapt:"generate",write:"generate",onboard:"execute",deploy:"execute","native-run":"execute",deliver:"deliver"},hnt={analyze:"change analysis",recommend:"test recommendations",generate:"test generation",execute:"test execution",deliver:"opening a pull request with the tests"};function xRe(){return Ve("skyrampAppOrigin").trim()||SRe}var gnt=10*6e4;var mnt={onboard:"onboard",deploy:"deploy"},Ant={plan:{stage:"validation_plan",text:"Working out what to validate, and bringing up what it needs"},write:{stage:"tests",text:"Writing and running the tests"},"generate-unit":{stage:"tests",text:"Writing unit tests"},"native-run":{stage:"tests",text:"Running the unit tests"}},ynt=new Set(["write","native-run"]);function $Re(){let e=ti(fo.conflict);if(!e)return;let t;try{t=kz.safeParse(JSON.parse(e))}catch(n){jt(`Testbot V3: the saved merge conflict is not JSON (${n instanceof Error?n.message:String(n)})`);return}if(t.success)return t.data;jt(`Testbot V3: the saved merge conflict breaks the contract (${t.error.issues.map(n=>`${n.path.join(".")}: ${n.message}`).join("; ")})`)}function TRe(){let e=ti(fo.githubWrites);if(!e)return[];let t;try{t=JSON.parse(e)}catch(n){return jt(`Testbot V3: the saved GitHub writes are not JSON (${n instanceof Error?n.message:String(n)})`),[]}return Array.isArray(t)?t.flatMap(n=>{let s=kE.safeParse(n);return s.success?[s.data]:[]}).slice(0,SE):[]}async function X6(){let e=ti(fo.attemptId);if(!e)return;let t=ti(fo.reportUploaded)==="true",n=ti(fo.recipeUploaded)==="true",s=ti(fo.revisionsUploaded)==="true",r=ti(fo.deadlineAt),i=ti(fo.cause)||void 0;!i&&!t&&!n&&!s&&r&&RRe(new Date(r),new Date)&&(i="timed_out");let o=jd().takeIdToken(),a=$Re(),c=await _6({attemptId:e,reportUploaded:t,recipeUploaded:n,revisionsUploaded:s,cause:i,...a?{conflict:a}:{},githubWrites:TRe()},kRe(xRe(),o)),u=ti(fo.recipeStatus);n&&u?Bs(`Testbot V3: attempt ended; the setup ended ${u==="ready"?"Ready":"blocked (Needs input)"}.`):Bs(`Testbot V3: attempt ended; the run's outcome in Skyramp is ${c.outcome??"not final yet"}.`)}var e9=require("child_process"),ki=Y(require("fs")),tN=Y(require("path")),nN=require("string_decoder");var QRe="skyramp-testbot-state",_Re=/^\$\([^)]*\)$/;function DRe(e){for(let[t,n]of Object.entries(e))n!==void 0&&_Re.test(n)&&delete e[t]}function NRe(e){let t={},n=ki.existsSync(e)?ki.readFileSync(e,"utf-8"):"",s=/^([^\r\n<]+)<<(\S+)\r?\n([\s\S]*?)\r?\n\2\r?$/gm;for(let r=s.exec(n);r;r=s.exec(n))t[r[1]]=r[3];return t}function t9(e,t={}){let n=t.env??process.env;if(!wa(n))return!1;DRe(n),M4(n);let s=n.AGENT_TEMPDIRECTORY||n.RUNNER_TEMP;if(s){n.RUNNER_TEMP??=s;let o=tN.join(s,QRe);if(e==="main")ki.writeFileSync(o,"",{mode:384});else for(let[a,c]of Object.entries(NRe(o)))n[`STATE_${a}`]=c;n.GITHUB_STATE=o;for(let[a,c]of[["GITHUB_OUTPUT","output"],["GITHUB_ENV","env"],["GITHUB_PATH","path"],["GITHUB_STEP_SUMMARY",`summary-${e}.md`]])n[a]=tN.join(s,`skyramp-testbot-${c}`),ki.writeFileSync(n[a],"",{mode:384})}let r=t.stdout??n===process.env;r&&PRe(n,t.write);let i=n.GITHUB_STEP_SUMMARY;if(r&&i){let o=t.write??(a=>S_(a.replace(/\n$/,"")));process.once("exit",()=>{ki.existsSync(i)&&ki.statSync(i).size>0&&o(`${ew("task.uploadsummary",{},i)}
340
+ `)}function H6(e){let t=im.join(e.outputsDir,"deploy.txt");if(Yw.existsSync(t)){let{deploy:s}=Eu({exitCode:0,stdout:Yw.readFileSync(t,"utf-8"),stderr:"",timedOut:!1,durationMs:0});if(s?.teardown)return{argv:["sh","-c",s.teardown],label:"deploy.json's teardown"}}let{teardownScript:n}=Da(e.inputs.repositoryPath);if(n)return{argv:["bash",n],label:im.join(".skyramp","sut","teardown.sh")}}function q6(e,t){return Hw(t,e.inputs.repositoryPath,{env:gt(),secretValues:e.secretValues})}async function z6(e){let t=H6(e);if(t){let n=await q6(e,t);if(n&&k4(e))throw new Error(`SUT teardown failed: ${n}`)}}async function ERe(e,t){let n=t.passed?void 0:J6(e);if(!n)return;let s=await q6(e,n);return s&&`${s} (if nothing was running, a teardown must exit 0)`}function J6(e){return KD(e)?void 0:H6(e)}function vRe(e){if(J6(e))return"Testbot tore down the SUT the previous attempt started. Bring it up again from the start: run .skyramp/sut/setup.sh (or the workspace bring-up), even if something still answers. Never reuse what is running."}function bRe(e,t){let{deploy:n}=Eu(t,e.inputs.repositoryPath,e.secretValues);if(!n)return;if(n.outcome==="bringup-failed"){let r=Mt(n.bringupError?.output?.trim()??"",e.secretValues??[]);return`bring-up failed (environment) \u2014 no live app for later stages${r?`: ${r.slice(0,160)}`:""}`}if(n.outcome==="change-broke-bringup")return"this PR broke bring-up \u2014 recorded as a finding, no live app for later stages";let s=xg(e).map(r=>r.name);if(s.length)return`the shared environment's ${s.join(", ")} does not verifiably run the revision under validation \u2014 no runtime test runs against it`}var W6=G6({name:"deploy",model:"opus",timeoutMinutes:25,requires:["preflight"],softRequires:["onboard"],startsApp:e=>!e.inputs.appRunning&&!(e.inputs.testEnvironment&&KD(e)),triageBranch:"runtime",validateInput:lRe,prepare:pRe,scaleTimeout:dRe,buildPrompt:yRe,allowedTools:uRe,buildSessionEnv:()=>({...O6}),selfVerification:["dependencies lists every backing service, true only if really deployed \u2014 a mocked one is false, never omitted.","Your final message is one JSON object matching the schema."],exitGates:[hw(),SZ()],onPassed:async(e,t)=>({...RZ(e,t),...await kZ(e,t)}),passReason:bRe,afterAttempt:ERe,retryNote:vRe,onAbort:z6,teardown:z6});Dn();var ZXe=20*1024*1024;var Z6=Y(require("path"));var a5e=Z6.join(".skyramp","sut","get-auth-token.sh");var XD="\\$([A-Z][A-Z0-9_]{0,99})",c5e=new RegExp(`^${XD}$`),u5e=new RegExp(`^${XD}:${XD}$`);var u7e=3*6e4;var l7e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`;var T7e=new RegExp(Yl.source,"g");var SRe="https://testbot.skyramp.dev",fo={attemptId:"v3AttemptId",deadlineAt:"v3DeadlineAt",reportUploaded:"v3ReportUploaded",recipeUploaded:"v3RecipeUploaded",recipeStatus:"v3RecipeStatus",revisionsUploaded:"v3RevisionsUploaded",cause:"v3Cause",conflict:"v3Conflict",githubWrites:"v3GithubWrites"};function kRe(e,t,n){return{origin:e,idToken:t,sourceToken:n,mask:s=>Mi(s),log:s=>Bs(s),onTokenRefused:(s,r)=>{BRe(s)&&K6.set(r,s)},onTokenGranted:s=>{K6.delete(s)}}}var K6=new Map;var dnt=["setup_failed","checkout_failed","environment_unverified"];function RRe(e,t){return t.getTime()>=e.getTime()}function BRe(e){return e instanceof Ci||e instanceof _a&&e.code!=="CREDENTIALS_UNAVAILABLE"}var pnt={cancelled:"Skyramp cancelled this run",expired:"this attempt passed its deadline in Skyramp",ended:"Skyramp already ended this attempt"},fnt={cancelled:"attempt-cancelled",expired:"attempt-closed",ended:"attempt-closed"},hnt={cancelled:"cancelled",expired:"timed_out",ended:"agent_failed"};var gnt={analyze:"analyze",triage:"analyze",recommend:"recommend",generate:"generate","generate-ui":"generate","generate-unit":"generate",adapt:"generate",write:"generate",onboard:"execute",deploy:"execute","native-run":"execute",deliver:"deliver"},mnt={analyze:"change analysis",recommend:"test recommendations",generate:"test generation",execute:"test execution",deliver:"opening a pull request with the tests"};function xRe(){return Ve("skyrampAppOrigin").trim()||SRe}var Ant=10*6e4;var ynt={onboard:"onboard",deploy:"deploy"},Ent={plan:{stage:"validation_plan",text:"Working out what to validate, and bringing up what it needs"},write:{stage:"tests",text:"Writing and running the tests"},"generate-unit":{stage:"tests",text:"Writing unit tests"},"native-run":{stage:"tests",text:"Running the unit tests"}},vnt=new Set(["write","native-run"]);function $Re(){let e=ti(fo.conflict);if(!e)return;let t;try{t=kz.safeParse(JSON.parse(e))}catch(n){jt(`Testbot V3: the saved merge conflict is not JSON (${n instanceof Error?n.message:String(n)})`);return}if(t.success)return t.data;jt(`Testbot V3: the saved merge conflict breaks the contract (${t.error.issues.map(n=>`${n.path.join(".")}: ${n.message}`).join("; ")})`)}function TRe(){let e=ti(fo.githubWrites);if(!e)return[];let t;try{t=JSON.parse(e)}catch(n){return jt(`Testbot V3: the saved GitHub writes are not JSON (${n instanceof Error?n.message:String(n)})`),[]}return Array.isArray(t)?t.flatMap(n=>{let s=kE.safeParse(n);return s.success?[s.data]:[]}).slice(0,SE):[]}async function X6(){let e=ti(fo.attemptId);if(!e)return;let t=ti(fo.reportUploaded)==="true",n=ti(fo.recipeUploaded)==="true",s=ti(fo.revisionsUploaded)==="true",r=ti(fo.deadlineAt),i=ti(fo.cause)||void 0;!i&&!t&&!n&&!s&&r&&RRe(new Date(r),new Date)&&(i="timed_out");let o=jd().takeIdToken(),a=$Re(),c=await _6({attemptId:e,reportUploaded:t,recipeUploaded:n,revisionsUploaded:s,cause:i,...a?{conflict:a}:{},githubWrites:TRe()},kRe(xRe(),o)),u=ti(fo.recipeStatus);n&&u?Bs(`Testbot V3: attempt ended; the setup ended ${u==="ready"?"Ready":"blocked (Needs input)"}.`):Bs(`Testbot V3: attempt ended; the run's outcome in Skyramp is ${c.outcome??"not final yet"}.`)}var e9=require("child_process"),ki=Y(require("fs")),tN=Y(require("path")),nN=require("string_decoder");var QRe="skyramp-testbot-state",_Re=/^\$\([^)]*\)$/;function DRe(e){for(let[t,n]of Object.entries(e))n!==void 0&&_Re.test(n)&&delete e[t]}function NRe(e){let t={},n=ki.existsSync(e)?ki.readFileSync(e,"utf-8"):"",s=/^([^\r\n<]+)<<(\S+)\r?\n([\s\S]*?)\r?\n\2\r?$/gm;for(let r=s.exec(n);r;r=s.exec(n))t[r[1]]=r[3];return t}function t9(e,t={}){let n=t.env??process.env;if(!wa(n))return!1;DRe(n),M4(n);let s=n.AGENT_TEMPDIRECTORY||n.RUNNER_TEMP;if(s){n.RUNNER_TEMP??=s;let o=tN.join(s,QRe);if(e==="main")ki.writeFileSync(o,"",{mode:384});else for(let[a,c]of Object.entries(NRe(o)))n[`STATE_${a}`]=c;n.GITHUB_STATE=o;for(let[a,c]of[["GITHUB_OUTPUT","output"],["GITHUB_ENV","env"],["GITHUB_PATH","path"],["GITHUB_STEP_SUMMARY",`summary-${e}.md`]])n[a]=tN.join(s,`skyramp-testbot-${c}`),ki.writeFileSync(n[a],"",{mode:384})}let r=t.stdout??n===process.env;r&&PRe(n,t.write);let i=n.GITHUB_STEP_SUMMARY;if(r&&i){let o=t.write??(a=>S_(a.replace(/\n$/,"")));process.once("exit",()=>{ki.existsSync(i)&&ki.statSync(i).size>0&&o(`${ew("task.uploadsummary",{},i)}
341
341
  `)})}return!0}function PRe(e,t){let n=process.stdout.write.bind(process.stdout),s=o=>e[Eg]==="1"?C_(o,e):void n(o.command!==void 0?`${o.command}
342
342
  `:o.text??""),r=t??(o=>s({command:o.replace(/\n$/,"")})),i=t??(o=>s({text:o}));process.stdout.write=((o,...a)=>{let c=typeof o=="string"?o:Buffer.from(o).toString("utf-8"),u="";for(let p of c.split(/(?<=\n)/)){let h=p.startsWith("::")?_4(p):void 0;if(!h){u+=p;continue}u&&i(u),u="";for(let g of h)r(`${g}
343
343
  `)}return u&&i(u),a.find(p=>typeof p=="function")?.(),!0})}var ORe=64*1024;function eN(e){let t=new nN.StringDecoder("utf8"),n="",s=r=>e(Xb(r));return{push(r){n+=typeof r=="string"?r:t.write(r);let i=n.lastIndexOf(`