@skyramp/testbot-core 0.13.0-v3.358 → 0.13.0-v3.359
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/VERSION.json +1 -1
- package/dist/main.js +465 -464
- package/dist/post.js +3 -3
- package/dist/runner-client.cjs +2 -2
- package/dist/runner-client.d.cts +2 -0
- package/package.json +1 -1
package/dist/post.js
CHANGED
|
@@ -48,7 +48,7 @@ ${c}`,this.dataLineCount++;return}if(em(t,r,Lie)){zie(t,s)&&(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(!s)throw new Error("Response json body do not have ID Token field");return s})}static getIDToken(t){return qL(this,void 0,void 0,function*(){try{let n=e.getIDTokenUrl();if(t){let r=encodeURIComponent(t);n=`${n}&audience=${r}`}WC(`ID token url is ${n}`);let i=yield e.getCall(n);return Bs(i),i}catch(n){throw new Error(`Error message: ${n.message}`)}})}}});var YL,Pp,ZC,Lse,jse,Vse,HL,KC,eSe,XC=Fn(()=>{YL=require("os"),Pp=require("fs"),ZC=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(i.next(d))}catch(f){o(f)}}function c(d){try{u(i.throw(d))}catch(f){o(f)}}function u(d){d.done?s(d.value):r(d.value).then(a,c)}u((i=i.apply(e,t||[])).next())})},{access:Lse,appendFile:jse,writeFile:Vse}=Pp.promises,HL="GITHUB_STEP_SUMMARY",KC=class{constructor(){this._buffer=""}filePath(){return ZC(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[HL];if(!t)throw new Error(`Unable to find environment variable for $${HL}. Check if your runtime environment supports job summaries.`);try{yield Lse(t,Pp.constants.R_OK|Pp.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,i={}){let r=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return n?`<${t}${r}>${n}</${t}>`:`<${t}${r}>`}write(t){return ZC(this,void 0,void 0,function*(){let n=!!t?.overwrite,i=yield this.filePath();return yield(n?Vse:jse)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return ZC(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(YL.EOL)}addCodeBlock(t,n){let i=Object.assign({},n&&{lang:n}),r=this.wrap("pre",this.wrap("code",t),i);return this.addRaw(r).addEOL()}addList(t,n=!1){let i=n?"ol":"ul",r=t.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,r);return this.addRaw(s).addEOL()}addTable(t){let n=t.map(r=>{let s=r.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:d}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",n);return this.addRaw(i).addEOL()}addDetails(t,n){let i=this.wrap("details",this.wrap("summary",t)+n);return this.addRaw(i).addEOL()}addImage(t,n,i){let{width:r,height:s}=i||{},o=Object.assign(Object.assign({},r&&{width:r}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:t,alt:n},o));return this.addRaw(a).addEOL()}addHeading(t,n){let i=`h${n}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(r,t);return this.addRaw(s).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 i=Object.assign({},n&&{cite:n}),r=this.wrap("blockquote",t,i);return this.addRaw(r).addEOL()}addLink(t,n){let i=this.wrap("a",t,{href:n});return this.addRaw(i).addEOL()}},eSe=new KC});var WL=Fn(()=>{});function ek(e){return KL(this,void 0,void 0,function*(){try{yield am(e)}catch(t){if(t.code==="ENOENT")return!1;throw t}return!0})}function um(e){if(e=Kse(e),!e)throw new Error('isRooted() parameter "p" cannot be empty');return Va?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")}function tk(e,t){return KL(this,void 0,void 0,function*(){let n;try{n=yield am(e)}catch(r){r.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}if(n&&n.isFile()){if(Va){let r=Eo.extname(e).toUpperCase();if(t.some(s=>s.toUpperCase()===r))return e}else if(ZL(n))return e}let i=e;for(let r of t){e=i+r,n=void 0;try{n=yield am(e)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${s}`)}if(n&&n.isFile()){if(Va){try{let s=Eo.dirname(e),o=Eo.basename(e).toUpperCase();for(let a of yield XL(s))if(o===a.toUpperCase()){e=Eo.join(s,a);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${s}`)}return e}else if(ZL(n))return e}}return""})}function Kse(e){return e=e||"",Va?(e=e.replace(/\//g,"\\"),e.replace(/\\\\+/g,"\\")):e.replace(/\/\/+/g,"/")}function ZL(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 cm,Eo,KL,Gse,zse,qse,Jse,rSe,XL,Hse,Yse,iSe,am,Wse,Zse,Va,sSe,nk=Fn(()=>{cm=fe(require("fs"),1),Eo=fe(require("path"),1),KL=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(i.next(d))}catch(f){o(f)}}function c(d){try{u(i.throw(d))}catch(f){o(f)}}function u(d){d.done?s(d.value):r(d.value).then(a,c)}u((i=i.apply(e,t||[])).next())})},{chmod:Gse,copyFile:zse,lstat:qse,mkdir:Jse,open:rSe,readdir:XL,rename:Hse,rm:Yse,rmdir:iSe,stat:am,symlink:Wse,unlink:Zse}=cm.promises,Va=process.platform==="win32",sSe=cm.constants.O_RDONLY});function rk(e,t){return t1(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");if(t){let i=yield rk(e,!1);if(!i)throw Va?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 i}let n=yield Xse(e);return n&&n.length>0?n[0]:""})}function Xse(e){return t1(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");let t=[];if(Va&&process.env.PATHEXT)for(let r of process.env.PATHEXT.split(Ji.delimiter))r&&t.push(r);if(um(e)){let r=yield tk(e,t);return r?[r]:[]}if(e.includes(Ji.sep))return[];let n=[];if(process.env.PATH)for(let r of process.env.PATH.split(Ji.delimiter))r&&n.push(r);let i=[];for(let r of n){let s=yield tk(Ji.join(r,e),t);s&&i.push(s)}return i})}var Ji,t1,n1=Fn(()=>{Ji=fe(require("path"),1);nk();t1=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(i.next(d))}catch(f){o(f)}}function c(d){try{u(i.throw(d))}catch(f){o(f)}}function u(d){d.done?s(d.value):r(d.value).then(a,c)}u((i=i.apply(e,t||[])).next())})}});function a1(e){let t=[],n=!1,i=!1,r="";function s(o){i&&o!=='"'&&(r+="\\"),r+=o,i=!1}for(let o=0;o<e.length;o++){let a=e.charAt(o);if(a==='"'){i?s(a):n=!n;continue}if(a==="\\"&&i){s(a);continue}if(a==="\\"&&n){i=!0;continue}if(a===" "&&!n){r.length>0&&(t.push(r),r="");continue}s(a)}return r.length>0&&t.push(r.trim()),t}var Up,sk,i1,s1,o1,r1,lm,dm,ik,c1=Fn(()=>{Up=fe(require("os"),1),sk=fe(require("events"),1),i1=fe(require("child_process"),1),s1=fe(require("path"),1);n1();nk();o1=require("timers"),r1=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(i.next(d))}catch(f){o(f)}}function c(d){try{u(i.throw(d))}catch(f){o(f)}}function u(d){d.done?s(d.value):r(d.value).then(a,c)}u((i=i.apply(e,t||[])).next())})},lm=process.platform==="win32",dm=class extends sk.EventEmitter{constructor(t,n,i){if(super(),!t)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=t,this.args=n||[],this.options=i||{}}_debug(t){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(t)}_getCommandString(t,n){let i=this._getSpawnFileName(),r=this._getSpawnArgs(t),s=n?"":"[command]";if(lm)if(this._isCmdFile()){s+=i;for(let o of r)s+=` ${o}`}else if(t.windowsVerbatimArguments){s+=`"${i}"`;for(let o of r)s+=` ${o}`}else{s+=this._windowsQuoteCmdArg(i);for(let o of r)s+=` ${this._windowsQuoteCmdArg(o)}`}else{s+=i;for(let o of r)s+=` ${o}`}return s}_processLineBuffer(t,n,i){try{let r=n+t.toString(),s=r.indexOf(Up.EOL);for(;s>-1;){let o=r.substring(0,s);i(o),r=r.substring(s+Up.EOL.length),s=r.indexOf(Up.EOL)}return r}catch(r){return this._debug(`error processing line. Failed with error ${r}`),""}}_getSpawnFileName(){return lm&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(t){if(lm&&this._isCmdFile()){let n=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let i of this.args)n+=" ",n+=t.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i);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=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],i=!1;for(let o of t)if(n.some(a=>a===o)){i=!0;break}if(!i)return t;let r='"',s=!0;for(let o=t.length;o>0;o--)r+=t[o-1],s&&t[o-1]==="\\"?r+="\\":t[o-1]==='"'?(s=!0,r+='"'):s=!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='"',i=!0;for(let r=t.length;r>0;r--)n+=t[r-1],i&&t[r-1]==="\\"?n+="\\":t[r-1]==='"'?(i=!0,n+="\\"):i=!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 i={};return i.cwd=t.cwd,i.env=t.env,i.windowsVerbatimArguments=t.windowsVerbatimArguments||this._isCmdFile(),t.windowsVerbatimArguments&&(i.argv0=`"${n}"`),i}exec(){return r1(this,void 0,void 0,function*(){return!um(this.toolPath)&&(this.toolPath.includes("/")||lm&&this.toolPath.includes("\\"))&&(this.toolPath=s1.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield rk(this.toolPath,!0),new Promise((t,n)=>r1(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 i=this._cloneExecOptions(this.options);!i.silent&&i.outStream&&i.outStream.write(this._getCommandString(i)+Up.EOL);let r=new ik(i,this.toolPath);if(r.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield ek(this.options.cwd)))return n(new Error(`The cwd: ${this.options.cwd} does not exist!`));let s=this._getSpawnFileName(),o=i1.spawn(s,this._getSpawnArgs(i),this._getSpawnOptions(this.options,s)),a="";o.stdout&&o.stdout.on("data",u=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(u),!i.silent&&i.outStream&&i.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),!i.silent&&i.errStream&&i.outStream&&(i.failOnStdErr?i.errStream:i.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)}}))})}};ik=class e extends sk.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,o1.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 u1(e,t,n){return noe(this,void 0,void 0,function*(){let i=a1(e);if(i.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let r=i[0];return t=i.slice(1).concat(t||[]),new dm(r,t,n).exec()})}var noe,ok=Fn(()=>{c1();noe=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(i.next(d))}catch(f){o(f)}}function c(d){try{u(i.throw(d))}catch(f){o(f)}}function u(d){d.done?s(d.value):r(d.value).then(a,c)}u((i=i.apply(e,t||[])).next())})}});var ak,uSe,lSe,d1=Fn(()=>{ak=fe(require("os"),1);ok();uSe=ak.default.platform(),lSe=ak.default.arch()});function Bs(e){Aa("add-mask",{},e)}function Pe(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 vo(e,t){let n=["true","True","TRUE"],i=["false","False","FALSE"],r=Pe(e,t);if(n.includes(r))return!0;if(i.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 f1(e){process.exitCode=ck.Failure,A1(e)}function WC(e){Aa("debug",{},e)}function A1(e,t={}){Aa("error",sh(t),e instanceof Error?e.toString():e)}function ht(e,t={}){Aa("warning",sh(t),e instanceof Error?e.toString():e)}function Fp(e,t={}){Aa("notice",sh(t),e instanceof Error?e.toString():e)}function Wr(e){process.stdout.write(e+p1.EOL)}function pm(e){mI("group",e)}function fm(){mI("endgroup")}function Rs(e){return process.env[`STATE_${e}`]||""}function h1(e){return ioe(this,void 0,void 0,function*(){return yield om.getIDToken(e)})}var p1,ioe,ck,kn=Fn(()=>{u_();l_();oh();p1=fe(require("os"),1);JL();XC();XC();WL();d1();ioe=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(i.next(d))}catch(f){o(f)}}function c(d){try{u(i.throw(d))}catch(f){o(f)}}function u(d){d.done?s(d.value):r(d.value).then(a,c)}u((i=i.apply(e,t||[])).next())})};(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(ck||(ck={}))});var xl=F((gQe,XG)=>{"use strict";var dle="2.0.0",ple=Number.MAX_SAFE_INTEGER||9007199254740991,fle=16,Ale=250,hle=["major","premajor","minor","preminor","patch","prepatch","prerelease"];XG.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:fle,MAX_SAFE_BUILD_LENGTH:Ale,MAX_SAFE_INTEGER:ple,RELEASE_TYPES:hle,SEMVER_SPEC_VERSION:dle,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var If=F((mQe,e2)=>{"use strict";var gle=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e2.exports=gle});var Ql=F((is,t2)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:WS,MAX_SAFE_BUILD_LENGTH:mle,MAX_LENGTH:yle}=xl(),Ele=If();is=t2.exports={};var vle=is.re=[],Ile=is.safeRe=[],de=is.src=[],ble=is.safeSrc=[],pe=is.t={},wle=0,ZS="[a-zA-Z0-9-]",Cle=[["\\s",1],["\\d",yle],[ZS,mle]],kle=e=>{for(let[t,n]of Cle)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},Fe=(e,t,n)=>{let i=kle(t),r=wle++;Ele(e,r,t),pe[e]=r,de[r]=t,ble[r]=i,vle[r]=new RegExp(t,n?"g":void 0),Ile[r]=new RegExp(i,n?"g":void 0)};Fe("NUMERICIDENTIFIER","0|[1-9]\\d*");Fe("NUMERICIDENTIFIERLOOSE","\\d+");Fe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ZS}*`);Fe("MAINVERSION",`(${de[pe.NUMERICIDENTIFIER]})\\.(${de[pe.NUMERICIDENTIFIER]})\\.(${de[pe.NUMERICIDENTIFIER]})`);Fe("MAINVERSIONLOOSE",`(${de[pe.NUMERICIDENTIFIERLOOSE]})\\.(${de[pe.NUMERICIDENTIFIERLOOSE]})\\.(${de[pe.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASEIDENTIFIER",`(?:${de[pe.NONNUMERICIDENTIFIER]}|${de[pe.NUMERICIDENTIFIER]})`);Fe("PRERELEASEIDENTIFIERLOOSE",`(?:${de[pe.NONNUMERICIDENTIFIER]}|${de[pe.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASE",`(?:-(${de[pe.PRERELEASEIDENTIFIER]}(?:\\.${de[pe.PRERELEASEIDENTIFIER]})*))`);Fe("PRERELEASELOOSE",`(?:-?(${de[pe.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${de[pe.PRERELEASEIDENTIFIERLOOSE]})*))`);Fe("BUILDIDENTIFIER",`${ZS}+`);Fe("BUILD",`(?:\\+(${de[pe.BUILDIDENTIFIER]}(?:\\.${de[pe.BUILDIDENTIFIER]})*))`);Fe("FULLPLAIN",`v?${de[pe.MAINVERSION]}${de[pe.PRERELEASE]}?${de[pe.BUILD]}?`);Fe("FULL",`^${de[pe.FULLPLAIN]}$`);Fe("LOOSEPLAIN",`[v=\\s]*${de[pe.MAINVERSIONLOOSE]}${de[pe.PRERELEASELOOSE]}?${de[pe.BUILD]}?`);Fe("LOOSE",`^${de[pe.LOOSEPLAIN]}$`);Fe("GTLT","((?:<|>)?=?)");Fe("XRANGEIDENTIFIERLOOSE",`${de[pe.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Fe("XRANGEIDENTIFIER",`${de[pe.NUMERICIDENTIFIER]}|x|X|\\*`);Fe("XRANGEPLAIN",`[v=\\s]*(${de[pe.XRANGEIDENTIFIER]})(?:\\.(${de[pe.XRANGEIDENTIFIER]})(?:\\.(${de[pe.XRANGEIDENTIFIER]})(?:${de[pe.PRERELEASE]})?${de[pe.BUILD]}?)?)?`);Fe("XRANGEPLAINLOOSE",`[v=\\s]*(${de[pe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${de[pe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${de[pe.XRANGEIDENTIFIERLOOSE]})(?:${de[pe.PRERELEASELOOSE]})?${de[pe.BUILD]}?)?)?`);Fe("XRANGE",`^${de[pe.GTLT]}\\s*${de[pe.XRANGEPLAIN]}$`);Fe("XRANGELOOSE",`^${de[pe.GTLT]}\\s*${de[pe.XRANGEPLAINLOOSE]}$`);Fe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${WS}})(?:\\.(\\d{1,${WS}}))?(?:\\.(\\d{1,${WS}}))?`);Fe("COERCE",`${de[pe.COERCEPLAIN]}(?:$|[^\\d])`);Fe("COERCEFULL",de[pe.COERCEPLAIN]+`(?:${de[pe.PRERELEASE]})?(?:${de[pe.BUILD]})?(?:$|[^\\d])`);Fe("COERCERTL",de[pe.COERCE],!0);Fe("COERCERTLFULL",de[pe.COERCEFULL],!0);Fe("LONETILDE","(?:~>?)");Fe("TILDETRIM",`(\\s*)${de[pe.LONETILDE]}\\s+`,!0);is.tildeTrimReplace="$1~";Fe("TILDE",`^${de[pe.LONETILDE]}${de[pe.XRANGEPLAIN]}$`);Fe("TILDELOOSE",`^${de[pe.LONETILDE]}${de[pe.XRANGEPLAINLOOSE]}$`);Fe("LONECARET","(?:\\^)");Fe("CARETTRIM",`(\\s*)${de[pe.LONECARET]}\\s+`,!0);is.caretTrimReplace="$1^";Fe("CARET",`^${de[pe.LONECARET]}${de[pe.XRANGEPLAIN]}$`);Fe("CARETLOOSE",`^${de[pe.LONECARET]}${de[pe.XRANGEPLAINLOOSE]}$`);Fe("COMPARATORLOOSE",`^${de[pe.GTLT]}\\s*(${de[pe.LOOSEPLAIN]})$|^$`);Fe("COMPARATOR",`^${de[pe.GTLT]}\\s*(${de[pe.FULLPLAIN]})$|^$`);Fe("COMPARATORTRIM",`(\\s*)${de[pe.GTLT]}\\s*(${de[pe.LOOSEPLAIN]}|${de[pe.XRANGEPLAIN]})`,!0);is.comparatorTrimReplace="$1$2$3";Fe("HYPHENRANGE",`^\\s*(${de[pe.XRANGEPLAIN]})\\s+-\\s+(${de[pe.XRANGEPLAIN]})\\s*$`);Fe("HYPHENRANGELOOSE",`^\\s*(${de[pe.XRANGEPLAINLOOSE]})\\s+-\\s+(${de[pe.XRANGEPLAINLOOSE]})\\s*$`);Fe("STAR","(<|>)?=?\\s*\\*");Fe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Fe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ly=F((yQe,n2)=>{"use strict";var Sle=Object.freeze({loose:!0}),Ble=Object.freeze({}),Rle=e=>e?typeof e!="object"?Sle:e:Ble;n2.exports=Rle});var KS=F((EQe,s2)=>{"use strict";var r2=/^[0-9]+$/,i2=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=r2.test(e),i=r2.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},xle=(e,t)=>i2(t,e);s2.exports={compareIdentifiers:i2,rcompareIdentifiers:xle}});var hn=F((vQe,a2)=>{"use strict";var dy=If(),{MAX_LENGTH:o2,MAX_SAFE_INTEGER:py}=xl(),{safeRe:fy,t:Ay}=Ql(),Qle=ly(),{compareIdentifiers:XS}=KS(),Tle=(e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let i=0;i<n.length;i++)if(XS(e[i],n[i])!==0)return!1;return!0},eB=class e{constructor(t,n){if(n=Qle(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>o2)throw new TypeError(`version is longer than ${o2} characters`);dy("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=t.trim().match(n.loose?fy[Ay.LOOSE]:fy[Ay.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>py||this.major<0)throw new TypeError("Invalid major version");if(this.minor>py||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>py||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let s=+r;if(s>=0&&s<py)return s}return r}):this.prerelease=[],this.build=i[5]?i[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(dy("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 i=this.prerelease[n],r=t.prerelease[n];if(dy("prerelease compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return XS(i,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let i=this.build[n],r=t.build[n];if(dy("build compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return XS(i,r)}while(++n)}inc(t,n,i){if(t.startsWith("pre")){if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?fy[Ay.PRERELEASELOOSE]:fy[Ay.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,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);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(i)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let s=[n,r];if(i===!1&&(s=[n]),Tle(this.prerelease,n)){let o=this.prerelease[n.split(".").length];isNaN(o)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};a2.exports=eB});var Mo=F((IQe,u2)=>{"use strict";var c2=hn(),$le=(e,t,n=!1)=>{if(e instanceof c2)return e;try{return new c2(e,t)}catch(i){if(!n)return null;throw i}};u2.exports=$le});var d2=F((bQe,l2)=>{"use strict";var _le=Mo(),Nle=(e,t)=>{let n=_le(e,t);return n?n.version:null};l2.exports=Nle});var f2=F((wQe,p2)=>{"use strict";var Dle=Mo(),Ple=(e,t)=>{let n=Dle(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};p2.exports=Ple});var g2=F((CQe,h2)=>{"use strict";var A2=hn(),Ule=(e,t,n,i,r)=>{typeof n=="string"&&(r=i,i=n,n=void 0);try{return new A2(e instanceof A2?e.version:e,n).inc(t,i,r).version}catch{return null}};h2.exports=Ule});var E2=F((kQe,y2)=>{"use strict";var m2=Mo(),Fle=(e,t)=>{let n=m2(e,null,!0),i=m2(t,null,!0),r=n.compare(i);if(r===0)return null;let s=r>0,o=s?n:i,a=s?i: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!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease"};y2.exports=Fle});var I2=F((SQe,v2)=>{"use strict";var Ole=hn(),Mle=(e,t)=>new Ole(e,t).major;v2.exports=Mle});var w2=F((BQe,b2)=>{"use strict";var Lle=hn(),jle=(e,t)=>new Lle(e,t).minor;b2.exports=jle});var k2=F((RQe,C2)=>{"use strict";var Vle=hn(),Gle=(e,t)=>new Vle(e,t).patch;C2.exports=Gle});var B2=F((xQe,S2)=>{"use strict";var zle=Mo(),qle=(e,t)=>{let n=zle(e,t);return n&&n.prerelease.length?n.prerelease:null};S2.exports=qle});var ui=F((QQe,x2)=>{"use strict";var R2=hn(),Jle=(e,t,n)=>new R2(e,n).compare(new R2(t,n));x2.exports=Jle});var T2=F((TQe,Q2)=>{"use strict";var Hle=ui(),Yle=(e,t,n)=>Hle(t,e,n);Q2.exports=Yle});var _2=F(($Qe,$2)=>{"use strict";var Wle=ui(),Zle=(e,t)=>Wle(e,t,!0);$2.exports=Zle});var hy=F((_Qe,D2)=>{"use strict";var N2=hn(),Kle=(e,t,n)=>{let i=new N2(e,n),r=new N2(t,n);return i.compare(r)||i.compareBuild(r)};D2.exports=Kle});var U2=F((NQe,P2)=>{"use strict";var Xle=hy(),ede=(e,t)=>e.sort((n,i)=>Xle(n,i,t));P2.exports=ede});var O2=F((DQe,F2)=>{"use strict";var tde=hy(),nde=(e,t)=>e.sort((n,i)=>tde(i,n,t));F2.exports=nde});var bf=F((PQe,M2)=>{"use strict";var rde=ui(),ide=(e,t,n)=>rde(e,t,n)>0;M2.exports=ide});var gy=F((UQe,L2)=>{"use strict";var sde=ui(),ode=(e,t,n)=>sde(e,t,n)<0;L2.exports=ode});var tB=F((FQe,j2)=>{"use strict";var ade=ui(),cde=(e,t,n)=>ade(e,t,n)===0;j2.exports=cde});var nB=F((OQe,V2)=>{"use strict";var ude=ui(),lde=(e,t,n)=>ude(e,t,n)!==0;V2.exports=lde});var my=F((MQe,G2)=>{"use strict";var dde=ui(),pde=(e,t,n)=>dde(e,t,n)>=0;G2.exports=pde});var yy=F((LQe,z2)=>{"use strict";var fde=ui(),Ade=(e,t,n)=>fde(e,t,n)<=0;z2.exports=Ade});var rB=F((jQe,q2)=>{"use strict";var hde=tB(),gde=nB(),mde=bf(),yde=my(),Ede=gy(),vde=yy(),Ide=(e,t,n,i)=>{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 hde(e,n,i);case"!=":return gde(e,n,i);case">":return mde(e,n,i);case">=":return yde(e,n,i);case"<":return Ede(e,n,i);case"<=":return vde(e,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}};q2.exports=Ide});var H2=F((VQe,J2)=>{"use strict";var bde=hn(),wde=Mo(),{safeRe:Ey,t:vy}=Ql(),Cde=(e,t)=>{if(e instanceof bde)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?Ey[vy.COERCEFULL]:Ey[vy.COERCE]);else{let c=t.includePrerelease?Ey[vy.COERCERTLFULL]:Ey[vy.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 i=n[2],r=n[3]||"0",s=n[4]||"0",o=t.includePrerelease&&n[5]?`-${n[5]}`:"",a=t.includePrerelease&&n[6]?`+${n[6]}`:"";return wde(`${i}.${r}.${s}${o}${a}`,t)};J2.exports=Cde});var W2=F((GQe,Y2)=>{"use strict";var kde=Mo(),Sde=xl(),Bde=hn(),Rde=(e,t,n)=>{if(!Sde.RELEASE_TYPES.includes(t))return null;let i=xde(e,n);return i&&Qde(i,t)},xde=(e,t)=>{let n=e instanceof Bde?e.version:e;return kde(n,t)},Qde=(e,t)=>{if(Tde(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()},Tde=e=>e.startsWith("pre");Y2.exports=Rde});var K2=F((zQe,Z2)=>{"use strict";var iB=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}};Z2.exports=iB});var li=F((qQe,nz)=>{"use strict";var $de=/\s+/g,sB=class e{constructor(t,n){if(n=Nde(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof oB)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($de," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!ez(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&Vde(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 i=0;i<n.length;i++)i>0&&(this.formatted+=" "),this.formatted+=n[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(jde,"");let i=((this.options.includePrerelease&&Mde)|(this.options.loose&&Lde))+":"+t,r=X2.get(i);if(r)return r;let s=this.options.loose,o=s?qn[gn.HYPHENRANGELOOSE]:qn[gn.HYPHENRANGE];t=t.replace(o,epe(this.options.includePrerelease)),xt("hyphen replace",t),t=t.replace(qn[gn.COMPARATORTRIM],Ude),xt("comparator trim",t),t=t.replace(qn[gn.TILDETRIM],Fde),xt("tilde trim",t),t=t.replace(qn[gn.CARETTRIM],Ode),xt("caret trim",t);let a=t.split(" ").map(f=>Gde(f,this.options)).join(" ").split(/\s+/).map(f=>Xde(f,this.options));s&&(a=a.filter(f=>(xt("loose invalid filter",f,this.options),!!f.match(qn[gn.COMPARATORLOOSE])))),xt("range list",a);let c=new Map,u=a.map(f=>new oB(f,this.options));for(let f of u){if(ez(f))return[f];c.set(f.value,f)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return X2.set(i,d),d}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(i=>tz(i,n)&&t.set.some(r=>tz(r,n)&&i.every(s=>r.every(o=>s.intersects(o,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Dde(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(tpe(this.set[n],t,this.options))return!0;return!1}};nz.exports=sB;var _de=K2(),X2=new _de,Nde=ly(),oB=wf(),xt=If(),Dde=hn(),{safeRe:qn,src:Pde,t:gn,comparatorTrimReplace:Ude,tildeTrimReplace:Fde,caretTrimReplace:Ode}=Ql(),{FLAG_INCLUDE_PRERELEASE:Mde,FLAG_LOOSE:Lde}=xl(),jde=new RegExp(Pde[gn.BUILD],"g"),ez=e=>e.value==="<0.0.0-0",Vde=e=>e.value==="",tz=(e,t)=>{let n=!0,i=e.slice(),r=i.pop();for(;n&&i.length;)n=i.every(s=>r.intersects(s,t)),r=i.pop();return n},Gde=(e,t)=>(e=e.replace(qn[gn.BUILD],""),xt("comp",e,t),e=Hde(e,t),xt("caret",e),e=qde(e,t),xt("tildes",e),e=Wde(e,t),xt("xrange",e),e=Kde(e,t),xt("stars",e),e),Zt=e=>!e||e.toLowerCase()==="x"||e==="*",zde=(e,t,n)=>Zt(e)&&!Zt(t)||Zt(t)&&n&&!Zt(n),qde=(e,t)=>e.trim().split(/\s+/).map(n=>Jde(n,t)).join(" "),Jde=(e,t)=>{let n=t.loose?qn[gn.TILDELOOSE]:qn[gn.TILDE],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,o,a,c)=>{xt("tilde",e,r,s,o,a,c);let u;return Zt(s)?u="":Zt(o)?u=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Zt(a)?u=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:c?(xt("replaceTilde pr",c),u=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):u=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,xt("tilde return",u),u})},Hde=(e,t)=>e.trim().split(/\s+/).map(n=>Yde(n,t)).join(" "),Yde=(e,t)=>{xt("caret",e,t);let n=t.loose?qn[gn.CARETLOOSE]:qn[gn.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,o,a,c)=>{xt("caret",e,r,s,o,a,c);let u;return Zt(s)?u="":Zt(o)?u=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Zt(a)?s==="0"?u=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:c?(xt("replaceCaret pr",c),s==="0"?o==="0"?u=`>=${s}.${o}.${a}-${c} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a}-${c} <${+s+1}.0.0-0`):(xt("no pr"),s==="0"?o==="0"?u=`>=${s}.${o}.${a} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),xt("caret return",u),u})},Wde=(e,t)=>(xt("replaceXRanges",e,t),e.split(/\s+/).map(n=>Zde(n,t)).join(" ")),Zde=(e,t)=>{e=e.trim();let n=t.loose?qn[gn.XRANGELOOSE]:qn[gn.XRANGE];return e.replace(n,(i,r,s,o,a,c)=>{if(xt("xRange",e,i,r,s,o,a,c),zde(s,o,a))return e;let u=Zt(s),d=u||Zt(o),f=d||Zt(a),h=f;return r==="="&&h&&(r=""),c=t.includePrerelease?"-0":"",u?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&h?(d&&(o=0),a=0,r===">"?(r=">=",d?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):r==="<="&&(r="<",d?s=+s+1:o=+o+1),r==="<"&&(c="-0"),i=`${r+s}.${o}.${a}${c}`):d?i=`>=${s}.0.0${c} <${+s+1}.0.0-0`:f&&(i=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),xt("xRange return",i),i})},Kde=(e,t)=>(xt("replaceStars",e,t),e.trim().replace(qn[gn.STAR],"")),Xde=(e,t)=>(xt("replaceGTE0",e,t),e.trim().replace(qn[t.includePrerelease?gn.GTE0PRE:gn.GTE0],"")),epe=e=>(t,n,i,r,s,o,a,c,u,d,f,h)=>(Zt(i)?n="":Zt(r)?n=`>=${i}.0.0${e?"-0":""}`:Zt(s)?n=`>=${i}.${r}.0${e?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,Zt(u)?c="":Zt(d)?c=`<${+u+1}.0.0-0`:Zt(f)?c=`<${u}.${+d+1}.0-0`:h?c=`<=${u}.${d}.${f}-${h}`:e?c=`<${u}.${d}.${+f+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),tpe=(e,t,n)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let i=0;i<e.length;i++)if(xt(e[i].semver),e[i].semver!==oB.ANY&&e[i].semver.prerelease.length>0){let r=e[i].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}});var wf=F((JQe,cz)=>{"use strict";var Cf=Symbol("SemVer ANY"),uB=class e{static get ANY(){return Cf}constructor(t,n){if(n=rz(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),cB("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===Cf?this.value="":this.value=this.operator+this.semver.version,cB("comp",this)}parse(t){let n=this.options.loose?iz[sz.COMPARATORLOOSE]:iz[sz.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new oz(i[2],this.options.loose):this.semver=Cf}toString(){return this.value}test(t){if(cB("Comparator.test",t,this.options.loose),this.semver===Cf||t===Cf)return!0;if(typeof t=="string")try{t=new oz(t,this.options)}catch{return!1}return aB(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 az(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new az(this.value,n).test(t.semver):(n=rz(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("=")||aB(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||aB(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};cz.exports=uB;var rz=ly(),{safeRe:iz,t:sz}=Ql(),aB=rB(),cB=If(),oz=hn(),az=li()});var kf=F((HQe,uz)=>{"use strict";var npe=li(),rpe=(e,t,n)=>{try{t=new npe(t,n)}catch{return!1}return t.test(e)};uz.exports=rpe});var dz=F((YQe,lz)=>{"use strict";var ipe=li(),spe=(e,t)=>new ipe(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));lz.exports=spe});var fz=F((WQe,pz)=>{"use strict";var ope=hn(),ape=li(),cpe=(e,t,n)=>{let i=null,r=null,s=null;try{s=new ape(t,n)}catch{return null}return e.forEach(o=>{s.test(o)&&(!i||r.compare(o)===-1)&&(i=o,r=new ope(i,n))}),i};pz.exports=cpe});var hz=F((ZQe,Az)=>{"use strict";var upe=hn(),lpe=li(),dpe=(e,t,n)=>{let i=null,r=null,s=null;try{s=new lpe(t,n)}catch{return null}return e.forEach(o=>{s.test(o)&&(!i||r.compare(o)===1)&&(i=o,r=new upe(i,n))}),i};Az.exports=dpe});var yz=F((KQe,mz)=>{"use strict";var lB=hn(),ppe=li(),gz=bf(),fpe=(e,t)=>{e=new ppe(e,t);let n=new lB("0.0.0");if(e.test(n)||(n=new lB("0.0.0-0"),e.test(n)))return n;n=null;for(let i=0;i<e.set.length;++i){let r=e.set[i],s=null;r.forEach(o=>{let a=new lB(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||gz(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||gz(n,s))&&(n=s)}return n&&e.test(n)?n:null};mz.exports=fpe});var vz=F((XQe,Ez)=>{"use strict";var Ape=li(),hpe=(e,t)=>{try{return new Ape(e,t).range||"*"}catch{return null}};Ez.exports=hpe});var Iy=F((eTe,Cz)=>{"use strict";var gpe=hn(),wz=wf(),{ANY:mpe}=wz,ype=li(),Epe=kf(),Iz=bf(),bz=gy(),vpe=yy(),Ipe=my(),bpe=(e,t,n,i)=>{e=new gpe(e,i),t=new ype(t,i);let r,s,o,a,c;switch(n){case">":r=Iz,s=vpe,o=bz,a=">",c=">=";break;case"<":r=bz,s=Ipe,o=Iz,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Epe(e,t,i))return!1;for(let u=0;u<t.set.length;++u){let d=t.set[u],f=null,h=null;if(d.forEach(g=>{g.semver===mpe&&(g=new wz(">=0.0.0")),f=f||g,h=h||g,r(g.semver,f.semver,i)?f=g:o(g.semver,h.semver,i)&&(h=g)}),f.operator===a||f.operator===c||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};Cz.exports=bpe});var Sz=F((tTe,kz)=>{"use strict";var wpe=Iy(),Cpe=(e,t,n)=>wpe(e,t,">",n);kz.exports=Cpe});var Rz=F((nTe,Bz)=>{"use strict";var kpe=Iy(),Spe=(e,t,n)=>kpe(e,t,"<",n);Bz.exports=Spe});var Tz=F((rTe,Qz)=>{"use strict";var xz=li(),Bpe=(e,t,n)=>(e=new xz(e,n),t=new xz(t,n),e.intersects(t,n));Qz.exports=Bpe});var _z=F((iTe,$z)=>{"use strict";var Rpe=kf(),xpe=ui();$z.exports=(e,t,n)=>{let i=[],r=null,s=null,o=e.sort((d,f)=>xpe(d,f,n));for(let d of o)Rpe(d,t,n)?(s=d,r||(r=d)):(s&&i.push([r,s]),s=null,r=null);r&&i.push([r,null]);let a=[];for(let[d,f]of i)d===f?a.push(d):!f&&d===o[0]?a.push("*"):f?d===o[0]?a.push(`<=${f}`):a.push(`${d} - ${f}`):a.push(`>=${d}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var Oz=F((sTe,Fz)=>{"use strict";var Nz=li(),fB=wf(),{ANY:dB}=fB,pB=kf(),AB=ui(),Qpe=(e,t,n={})=>{if(e===t)return!0;e=new Nz(e,n),t=new Nz(t,n);let i=!1;e:for(let r of e.set){for(let s of t.set){let o=$pe(r,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Tpe=[new fB(">=0.0.0-0")],Dz=[new fB(">=0.0.0")],$pe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===dB){if(t.length===1&&t[0].semver===dB)return!0;n.includePrerelease?e=Tpe:e=Dz}if(t.length===1&&t[0].semver===dB){if(n.includePrerelease)return!0;t=Dz}let i=new Set,r,s;for(let g of e)g.operator===">"||g.operator===">="?r=Pz(r,g,n):g.operator==="<"||g.operator==="<="?s=Uz(s,g,n):i.add(g.semver);if(i.size>1)return null;let o;if(r&&s){if(o=AB(r.semver,s.semver,n),o>0)return null;if(o===0&&(r.operator!==">="||s.operator!=="<="))return null}for(let g of i){if(r&&!pB(g,String(r),n)||s&&!pB(g,String(s),n))return null;for(let m of t)if(!pB(g,String(m),n))return!1;return!0}let a,c,u,d,f=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!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=Pz(r,g,n),a===g&&a!==r)return!1}else if(r.operator===">="&&!g.test(r.semver))return!1}if(s){if(f&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===f.major&&g.semver.minor===f.minor&&g.semver.patch===f.patch&&(f=!1),g.operator==="<"||g.operator==="<="){if(c=Uz(s,g,n),c===g&&c!==s)return!1}else if(s.operator==="<="&&!g.test(s.semver))return!1}if(!g.operator&&(s||r)&&o!==0)return!1}return!(r&&u&&!s&&o!==0||s&&d&&!r&&o!==0||h||f)},Pz=(e,t,n)=>{if(!e)return t;let i=AB(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},Uz=(e,t,n)=>{if(!e)return t;let i=AB(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};Fz.exports=Qpe});var gB=F((oTe,jz)=>{"use strict";var hB=Ql(),Mz=xl(),_pe=hn(),Lz=KS(),Npe=Mo(),Dpe=d2(),Ppe=f2(),Upe=g2(),Fpe=E2(),Ope=I2(),Mpe=w2(),Lpe=k2(),jpe=B2(),Vpe=ui(),Gpe=T2(),zpe=_2(),qpe=hy(),Jpe=U2(),Hpe=O2(),Ype=bf(),Wpe=gy(),Zpe=tB(),Kpe=nB(),Xpe=my(),efe=yy(),tfe=rB(),nfe=H2(),rfe=W2(),ife=wf(),sfe=li(),ofe=kf(),afe=dz(),cfe=fz(),ufe=hz(),lfe=yz(),dfe=vz(),pfe=Iy(),ffe=Sz(),Afe=Rz(),hfe=Tz(),gfe=_z(),mfe=Oz();jz.exports={parse:Npe,valid:Dpe,clean:Ppe,inc:Upe,diff:Fpe,major:Ope,minor:Mpe,patch:Lpe,prerelease:jpe,compare:Vpe,rcompare:Gpe,compareLoose:zpe,compareBuild:qpe,sort:Jpe,rsort:Hpe,gt:Ype,lt:Wpe,eq:Zpe,neq:Kpe,gte:Xpe,lte:efe,cmp:tfe,coerce:nfe,truncate:rfe,Comparator:ife,Range:sfe,satisfies:ofe,toComparators:afe,maxSatisfying:cfe,minSatisfying:ufe,minVersion:lfe,validRange:dfe,outside:pfe,gtr:ffe,ltr:Afe,intersects:hfe,simplifyRange:gfe,subset:mfe,SemVer:_pe,re:hB.re,src:hB.src,tokens:hB.t,SEMVER_SPEC_VERSION:Mz.SEMVER_SPEC_VERSION,RELEASE_TYPES:Mz.RELEASE_TYPES,compareIdentifiers:Lz.compareIdentifiers,rcompareIdentifiers:Lz.rcompareIdentifiers}});var Vwe={};Vr(Vwe,{post:()=>WZ});module.exports=n6(Vwe);kn();var YZ=fe(require("path"));kn();kn();var uk;(function(e){e.Pass="Pass",e.Fail="Fail",e.Error="Error",e.Skipped="Skipped",e.Unknown="Unknown"})(uk||(uk={}));var g1;(function(e){e.High="high",e.Medium="medium",e.Low="low"})(g1||(g1={}));var m1;(function(e){e.Skyramp="skyramp",e.External="external"})(m1||(m1={}));var lk;(function(e){e.Update="UPDATE",e.Regenerate="REGENERATE",e.Delete="DELETE",e.Verify="VERIFY",e.Ignore="IGNORE"})(lk||(lk={}));var y1;(function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"})(y1||(y1={}));var J={};Vr(J,{BRAND:()=>Qoe,DIRTY:()=>Ga,EMPTY_PATH:()=>coe,INVALID:()=>Se,NEVER:()=>Aae,OK:()=>Sn,ParseStatus:()=>pn,Schema:()=>qe,ZodAny:()=>wo,ZodArray:()=>$s,ZodBigInt:()=>qa,ZodBoolean:()=>Ja,ZodBranded:()=>Mp,ZodCatch:()=>ic,ZodDate:()=>Ha,ZodDefault:()=>rc,ZodDiscriminatedUnion:()=>gm,ZodEffects:()=>Xr,ZodEnum:()=>tc,ZodError:()=>ar,ZodFirstPartyTypeKind:()=>Qe,ZodFunction:()=>ym,ZodIntersection:()=>Ka,ZodIssueCode:()=>H,ZodLazy:()=>Xa,ZodLiteral:()=>ec,ZodMap:()=>il,ZodNaN:()=>ol,ZodNativeEnum:()=>nc,ZodNever:()=>Bi,ZodNull:()=>Wa,ZodNullable:()=>Wi,ZodNumber:()=>za,ZodObject:()=>cr,ZodOptional:()=>Zr,ZodParsedType:()=>ce,ZodPipeline:()=>Lp,ZodPromise:()=>Co,ZodReadonly:()=>sc,ZodRecord:()=>mm,ZodSchema:()=>qe,ZodSet:()=>sl,ZodString:()=>bo,ZodSymbol:()=>nl,ZodTransformer:()=>Xr,ZodTuple:()=>Yi,ZodType:()=>qe,ZodUndefined:()=>Ya,ZodUnion:()=>Za,ZodUnknown:()=>Ts,ZodVoid:()=>rl,addIssueToContext:()=>ie,any:()=>Ooe,array:()=>Voe,bigint:()=>Noe,boolean:()=>x1,coerce:()=>fae,custom:()=>S1,date:()=>Doe,datetimeRegex:()=>C1,defaultErrorMap:()=>xs,discriminatedUnion:()=>Joe,effect:()=>sae,enum:()=>nae,function:()=>Xoe,getErrorMap:()=>Xu,getParsedType:()=>Hi,instanceof:()=>$oe,intersection:()=>Hoe,isAborted:()=>Am,isAsync:()=>el,isDirty:()=>hm,isValid:()=>Io,late:()=>Toe,lazy:()=>eae,literal:()=>tae,makeIssue:()=>Op,map:()=>Zoe,nan:()=>_oe,nativeEnum:()=>rae,never:()=>Loe,null:()=>Foe,nullable:()=>aae,number:()=>R1,object:()=>Goe,objectUtil:()=>dk,oboolean:()=>pae,onumber:()=>dae,optional:()=>oae,ostring:()=>lae,pipeline:()=>uae,preprocess:()=>cae,promise:()=>iae,quotelessJson:()=>soe,record:()=>Woe,set:()=>Koe,setErrorMap:()=>aoe,strictObject:()=>zoe,string:()=>B1,symbol:()=>Poe,transformer:()=>sae,tuple:()=>Yoe,undefined:()=>Uoe,union:()=>qoe,unknown:()=>Moe,util:()=>Xe,void:()=>joe});var Xe;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let s={};for(let o of r)s[o]=o;return s},e.getValidEnumValues=r=>{let s=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(let a of s)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(s){return r[s]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let s=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&s.push(o);return s},e.find=(r,s)=>{for(let o of r)if(s(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 i(r,s=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}e.joinValues=i,e.jsonStringifyReplacer=(r,s)=>typeof s=="bigint"?s.toString():s})(Xe||(Xe={}));var dk;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(dk||(dk={}));var ce=Xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Hi=e=>{switch(typeof e){case"undefined":return ce.undefined;case"string":return ce.string;case"number":return Number.isNaN(e)?ce.nan:ce.number;case"boolean":return ce.boolean;case"function":return ce.function;case"bigint":return ce.bigint;case"symbol":return ce.symbol;case"object":return Array.isArray(e)?ce.array:e===null?ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ce.promise:typeof Map<"u"&&e instanceof Map?ce.map:typeof Set<"u"&&e instanceof Set?ce.set:typeof Date<"u"&&e instanceof Date?ce.date:ce.object;default:return ce.unknown}};var H=Xe.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"]),soe=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ar=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};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(s){return s.message},i={_errors:[]},r=s=>{for(let o of s.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)i._errors.push(n(o));else{let a=i,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),i}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,Xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},i=[];for(let r of this.issues)if(r.path.length>0){let s=r.path[0];n[s]=n[s]||[],n[s].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};ar.create=e=>new ar(e);var ooe=(e,t)=>{let n;switch(e.code){case H.invalid_type:e.received===ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case H.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Xe.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:n=`Unrecognized key(s) in object: ${Xe.joinValues(e.keys,", ")}`;break;case H.invalid_union:n="Invalid input";break;case H.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Xe.joinValues(e.options)}`;break;case H.invalid_enum_value:n=`Invalid enum value. Expected ${Xe.joinValues(e.options)}, received '${e.received}'`;break;case H.invalid_arguments:n="Invalid function arguments";break;case H.invalid_return_type:n="Invalid function return type";break;case H.invalid_date:n="Invalid date";break;case H.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}"`:Xe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case H.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 H.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 H.custom:n="Invalid input";break;case H.invalid_intersection_types:n="Intersection results could not be merged";break;case H.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case H.not_finite:n="Number must be finite";break;default:n=t.defaultError,Xe.assertNever(e)}return{message:n}},xs=ooe;var E1=xs;function aoe(e){E1=e}function Xu(){return E1}var Op=e=>{let{data:t,path:n,errorMaps:i,issueData:r}=e,s=[...n,...r.path||[]],o={...r,path:s};if(r.message!==void 0)return{...r,path:s,message:r.message};let a="",c=i.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:t,defaultError:a}).message;return{...r,path:s,message:a}},coe=[];function ie(e,t){let n=Xu(),i=Op({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===xs?void 0:xs].filter(r=>!!r)});e.common.issues.push(i)}var pn=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 i=[];for(let r of n){if(r.status==="aborted")return Se;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){let i=[];for(let r of n){let s=await r.key,o=await r.value;i.push({key:s,value:o})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,n){let i={};for(let r of n){let{key:s,value:o}=r;if(s.status==="aborted"||o.status==="aborted")return Se;s.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(i[s.value]=o.value)}return{status:t.value,value:i}}},Se=Object.freeze({status:"aborted"}),Ga=e=>({status:"dirty",value:e}),Sn=e=>({status:"valid",value:e}),Am=e=>e.status==="aborted",hm=e=>e.status==="dirty",Io=e=>e.status==="valid",el=e=>typeof Promise<"u"&&e instanceof Promise;var ge;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ge||(ge={}));var Kr=class{constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,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}},v1=(e,t)=>{if(Io(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 ar(e.common.issues);return this._error=n,this._error}}};function Me(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))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??i??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:r}}var qe=class{get description(){return this._def.description}_getType(t){return Hi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Hi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new pn,ctx:{common:t.parent.common,data:t.data,parsedType:Hi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(el(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 i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Hi(t)},r=this._parseSync({data:t,path:i.path,parent:i});return v1(i,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Hi(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:n});return Io(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>Io(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){let i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Hi(t)},r=this._parse({data:t,path:i.path,parent:i}),s=await(el(r)?r:Promise.resolve(r));return v1(i,s)}refine(t,n){let i=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,s)=>{let o=t(r),a=()=>s.addIssue({code:H.custom,...i(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((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new Xr({schema:this,typeName:Qe.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 Zr.create(this,this._def)}nullable(){return Wi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $s.create(this)}promise(){return Co.create(this,this._def)}or(t){return Za.create([this,t],this._def)}and(t){return Ka.create(this,t,this._def)}transform(t){return new Xr({...Me(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new rc({...Me(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new Mp({typeName:Qe.ZodBranded,type:this,...Me(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new ic({...Me(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Lp.create(this,t)}readonly(){return sc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},uoe=/^c[^\s-]{8,}$/i,loe=/^[0-9a-z]+$/,doe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,poe=/^[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,foe=/^[a-z0-9_-]{21}$/i,Aoe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,hoe=/^[-+]?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)?)??$/,goe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,moe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",pk,yoe=/^(?:(?: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])$/,Eoe=/^(?:(?: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])$/,voe=/^(([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]))$/,Ioe=/^(([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])$/,boe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,woe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,b1="((\\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])))",Coe=new RegExp(`^${b1}$`);function w1(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 koe(e){return new RegExp(`^${w1(e)}$`)}function C1(e){let t=`${b1}T${w1(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 Soe(e,t){return!!((t==="v4"||!t)&&yoe.test(e)||(t==="v6"||!t)&&voe.test(e))}function Boe(e,t){if(!Aoe.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function Roe(e,t){return!!((t==="v4"||!t)&&Eoe.test(e)||(t==="v6"||!t)&&Ioe.test(e))}var bo=class e extends qe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ce.string){let s=this._getOrReturnCtx(t);return ie(s,{code:H.invalid_type,expected:ce.string,received:s.parsedType}),Se}let i=new pn,r;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")t.data.length>s.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let o=t.data.length>s.value,a=t.data.length<s.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?ie(r,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&ie(r,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")goe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"email",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")pk||(pk=new RegExp(moe,"u")),pk.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"emoji",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")poe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"uuid",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")foe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"nanoid",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")uoe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"cuid",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")loe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"cuid2",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")doe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"ulid",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),ie(r,{validation:"url",code:H.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"regex",code:H.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?C1(s).test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?Coe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?koe(s).test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?hoe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"duration",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?Soe(t.data,s.version)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"ip",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="jwt"?Boe(t.data,s.alg)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"jwt",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="cidr"?Roe(t.data,s.version)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"cidr",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?boe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="base64url"?woe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64url",code:H.invalid_string,message:s.message}),i.dirty()):Xe.assertNever(s);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:H.invalid_string,...ge.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ge.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ge.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ge.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ge.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ge.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ge.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ge.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ge.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ge.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ge.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ge.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ge.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ge.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,...ge.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,...ge.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ge.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ge.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...ge.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ge.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ge.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ge.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ge.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ge.errToObj(n)})}nonempty(t){return this.min(1,ge.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}};bo.create=e=>new bo({checks:[],typeName:Qe.ZodString,coerce:e?.coerce??!1,...Me(e)});function xoe(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,s=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return s%o/10**r}var za=class e extends qe{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)!==ce.number){let s=this._getOrReturnCtx(t);return ie(s,{code:H.invalid_type,expected:ce.number,received:s.parsedType}),Se}let i,r=new pn;for(let s of this._def.checks)s.kind==="int"?Xe.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:H.invalid_type,expected:"integer",received:"float",message:s.message}),r.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="multipleOf"?xoe(t.data,s.value)!==0&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:H.not_finite,message:s.message}),r.dirty()):Xe.assertNever(s);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ge.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ge.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ge.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ge.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ge.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ge.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ge.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"&&Xe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}};za.create=e=>new za({checks:[],typeName:Qe.ZodNumber,coerce:e?.coerce||!1,...Me(e)});var qa=class e extends qe{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)!==ce.bigint)return this._getInvalidInput(t);let i,r=new pn;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):Xe.assertNever(s);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return ie(n,{code:H.invalid_type,expected:ce.bigint,received:n.parsedType}),Se}gte(t,n){return this.setLimit("min",t,!0,ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ge.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ge.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:ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ge.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}};qa.create=e=>new qa({checks:[],typeName:Qe.ZodBigInt,coerce:e?.coerce??!1,...Me(e)});var Ja=class extends qe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ce.boolean){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.boolean,received:i.parsedType}),Se}return Sn(t.data)}};Ja.create=e=>new Ja({typeName:Qe.ZodBoolean,coerce:e?.coerce||!1,...Me(e)});var Ha=class e extends qe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ce.date){let s=this._getOrReturnCtx(t);return ie(s,{code:H.invalid_type,expected:ce.date,received:s.parsedType}),Se}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return ie(s,{code:H.invalid_date}),Se}let i=new pn,r;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Xe.assertNever(s);return{status:i.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:ge.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ge.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}};Ha.create=e=>new Ha({checks:[],coerce:e?.coerce||!1,typeName:Qe.ZodDate,...Me(e)});var nl=class extends qe{_parse(t){if(this._getType(t)!==ce.symbol){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.symbol,received:i.parsedType}),Se}return Sn(t.data)}};nl.create=e=>new nl({typeName:Qe.ZodSymbol,...Me(e)});var Ya=class extends qe{_parse(t){if(this._getType(t)!==ce.undefined){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.undefined,received:i.parsedType}),Se}return Sn(t.data)}};Ya.create=e=>new Ya({typeName:Qe.ZodUndefined,...Me(e)});var Wa=class extends qe{_parse(t){if(this._getType(t)!==ce.null){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.null,received:i.parsedType}),Se}return Sn(t.data)}};Wa.create=e=>new Wa({typeName:Qe.ZodNull,...Me(e)});var wo=class extends qe{constructor(){super(...arguments),this._any=!0}_parse(t){return Sn(t.data)}};wo.create=e=>new wo({typeName:Qe.ZodAny,...Me(e)});var Ts=class extends qe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Sn(t.data)}};Ts.create=e=>new Ts({typeName:Qe.ZodUnknown,...Me(e)});var Bi=class extends qe{_parse(t){let n=this._getOrReturnCtx(t);return ie(n,{code:H.invalid_type,expected:ce.never,received:n.parsedType}),Se}};Bi.create=e=>new Bi({typeName:Qe.ZodNever,...Me(e)});var rl=class extends qe{_parse(t){if(this._getType(t)!==ce.undefined){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.void,received:i.parsedType}),Se}return Sn(t.data)}};rl.create=e=>new rl({typeName:Qe.ZodVoid,...Me(e)});var $s=class e extends qe{_parse(t){let{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==ce.array)return ie(n,{code:H.invalid_type,expected:ce.array,received:n.parsedType}),Se;if(r.exactLength!==null){let o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(ie(n,{code:o?H.too_big:H.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}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(ie(n,{code:H.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(ie(n,{code:H.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new Kr(n,o,n.path,a)))).then(o=>pn.mergeArray(i,o));let s=[...n.data].map((o,a)=>r.type._parseSync(new Kr(n,o,n.path,a)));return pn.mergeArray(i,s)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:ge.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:ge.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:ge.toString(n)}})}nonempty(t){return this.min(1,t)}};$s.create=(e,t)=>new $s({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...Me(t)});function tl(e){if(e instanceof cr){let t={};for(let n in e.shape){let i=e.shape[n];t[n]=Zr.create(tl(i))}return new cr({...e._def,shape:()=>t})}else return e instanceof $s?new $s({...e._def,type:tl(e.element)}):e instanceof Zr?Zr.create(tl(e.unwrap())):e instanceof Wi?Wi.create(tl(e.unwrap())):e instanceof Yi?Yi.create(e.items.map(t=>tl(t))):e}var cr=class e extends qe{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=Xe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ce.object){let u=this._getOrReturnCtx(t);return ie(u,{code:H.invalid_type,expected:ce.object,received:u.parsedType}),Se}let{status:i,ctx:r}=this._processInputParams(t),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Bi&&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=s[u],f=r.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Kr(r,f,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof Bi){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&&(ie(r,{code:H.unrecognized_keys,keys:a}),i.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 f=r.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Kr(r,f,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of c){let f=await d.key,h=await d.value;u.push({key:f,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>pn.mergeObjectSync(i,u)):pn.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(t){return ge.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{let r=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:ge.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:Qe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let i of Xe.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let i of Xe.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new e({...this._def,shape:()=>n})}deepPartial(){return tl(this)}partial(t){let n={};for(let i of Xe.objectKeys(this.shape)){let r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let i of Xe.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Zr;)s=s._def.innerType;n[i]=s}return new e({...this._def,shape:()=>n})}keyof(){return k1(Xe.objectKeys(this.shape))}};cr.create=(e,t)=>new cr({shape:()=>e,unknownKeys:"strip",catchall:Bi.create(),typeName:Qe.ZodObject,...Me(t)});cr.strictCreate=(e,t)=>new cr({shape:()=>e,unknownKeys:"strict",catchall:Bi.create(),typeName:Qe.ZodObject,...Me(t)});cr.lazycreate=(e,t)=>new cr({shape:e,unknownKeys:"strip",catchall:Bi.create(),typeName:Qe.ZodObject,...Me(t)});var Za=class extends qe{_parse(t){let{ctx:n}=this._processInputParams(t),i=this._def.options;function r(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new ar(a.ctx.common.issues));return ie(n,{code:H.invalid_union,unionErrors:o}),Se}if(n.common.async)return Promise.all(i.map(async s=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let s,o=[];for(let c of i){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"&&!s&&(s={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new ar(c));return ie(n,{code:H.invalid_union,unionErrors:a}),Se}}get options(){return this._def.options}};Za.create=(e,t)=>new Za({options:e,typeName:Qe.ZodUnion,...Me(t)});var Qs=e=>e instanceof Xa?Qs(e.schema):e instanceof Xr?Qs(e.innerType()):e instanceof ec?[e.value]:e instanceof tc?e.options:e instanceof nc?Xe.objectValues(e.enum):e instanceof rc?Qs(e._def.innerType):e instanceof Ya?[void 0]:e instanceof Wa?[null]:e instanceof Zr?[void 0,...Qs(e.unwrap())]:e instanceof Wi?[null,...Qs(e.unwrap())]:e instanceof Mp||e instanceof sc?Qs(e.unwrap()):e instanceof ic?Qs(e._def.innerType):[],gm=class e extends qe{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.object)return ie(n,{code:H.invalid_type,expected:ce.object,received:n.parsedType}),Se;let i=this.discriminator,r=n.data[i],s=this.optionsMap.get(r);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(ie(n,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Se)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){let r=new Map;for(let s of n){let o=Qs(s.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,s)}}return new e({typeName:Qe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...Me(i)})}};function fk(e,t){let n=Hi(e),i=Hi(t);if(e===t)return{valid:!0,data:e};if(n===ce.object&&i===ce.object){let r=Xe.objectKeys(t),s=Xe.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(let a of s){let c=fk(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===ce.array&&i===ce.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let s=0;s<e.length;s++){let o=e[s],a=t[s],c=fk(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===ce.date&&i===ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Ka=class extends qe{_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=(s,o)=>{if(Am(s)||Am(o))return Se;let a=fk(s.value,o.value);return a.valid?((hm(s)||hm(o))&&n.dirty(),{status:n.value,value:a.data}):(ie(i,{code:H.invalid_intersection_types}),Se)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,o])=>r(s,o)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Ka.create=(e,t,n)=>new Ka({left:e,right:t,typeName:Qe.ZodIntersection,...Me(n)});var Yi=class e extends qe{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ce.array)return ie(i,{code:H.invalid_type,expected:ce.array,received:i.parsedType}),Se;if(i.data.length<this._def.items.length)return ie(i,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Se;!this._def.rest&&i.data.length>this._def.items.length&&(ie(i,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let s=[...i.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new Kr(i,o,i.path,a)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>pn.mergeArray(n,o)):pn.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Yi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Yi({items:e,typeName:Qe.ZodTuple,rest:null,...Me(t)})};var mm=class e extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ce.object)return ie(i,{code:H.invalid_type,expected:ce.object,received:i.parsedType}),Se;let r=[],s=this._def.keyType,o=this._def.valueType;for(let a in i.data)r.push({key:s._parse(new Kr(i,a,i.path,a)),value:o._parse(new Kr(i,i.data[a],i.path,a)),alwaysSet:a in i.data});return i.common.async?pn.mergeObjectAsync(n,r):pn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof qe?new e({keyType:t,valueType:n,typeName:Qe.ZodRecord,...Me(i)}):new e({keyType:bo.create(),valueType:t,typeName:Qe.ZodRecord,...Me(n)})}},il=class extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ce.map)return ie(i,{code:H.invalid_type,expected:ce.map,received:i.parsedType}),Se;let r=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([a,c],u)=>({key:r._parse(new Kr(i,a,i.path,[u,"key"])),value:s._parse(new Kr(i,c,i.path,[u,"value"]))}));if(i.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 Se;(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 Se;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}};il.create=(e,t,n)=>new il({valueType:t,keyType:e,typeName:Qe.ZodMap,...Me(n)});var sl=class e extends qe{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ce.set)return ie(i,{code:H.invalid_type,expected:ce.set,received:i.parsedType}),Se;let r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(ie(i,{code:H.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(ie(i,{code:H.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let d of c){if(d.status==="aborted")return Se;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}let a=[...i.data.values()].map((c,u)=>s._parse(new Kr(i,c,i.path,u)));return i.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:ge.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:ge.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};sl.create=(e,t)=>new sl({valueType:e,minSize:null,maxSize:null,typeName:Qe.ZodSet,...Me(t)});var ym=class e extends qe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.function)return ie(n,{code:H.invalid_type,expected:ce.function,received:n.parsedType}),Se;function i(a,c){return Op({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xu(),xs].filter(u=>!!u),issueData:{code:H.invalid_arguments,argumentsError:c}})}function r(a,c){return Op({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xu(),xs].filter(u=>!!u),issueData:{code:H.invalid_return_type,returnTypeError:c}})}let s={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Co){let a=this;return Sn(async function(...c){let u=new ar([]),d=await a._def.args.parseAsync(c,s).catch(g=>{throw u.addIssue(i(c,g)),u}),f=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(f,s).catch(g=>{throw u.addIssue(r(f,g)),u})})}else{let a=this;return Sn(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new ar([i(c,u.error)]);let d=Reflect.apply(o,this,u.data),f=a._def.returns.safeParse(d,s);if(!f.success)throw new ar([r(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Yi.create(t).rest(Ts.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,i){return new e({args:t||Yi.create([]).rest(Ts.create()),returns:n||Ts.create(),typeName:Qe.ZodFunction,...Me(i)})}},Xa=class extends qe{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})}};Xa.create=(e,t)=>new Xa({getter:e,typeName:Qe.ZodLazy,...Me(t)});var ec=class extends qe{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:H.invalid_literal,expected:this._def.value}),Se}return{status:"valid",value:t.data}}get value(){return this._def.value}};ec.create=(e,t)=>new ec({value:e,typeName:Qe.ZodLiteral,...Me(t)});function k1(e,t){return new tc({values:e,typeName:Qe.ZodEnum,...Me(t)})}var tc=class e extends qe{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{expected:Xe.joinValues(i),received:n.parsedType,code:H.invalid_type}),Se}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{received:n.data,code:H.invalid_enum_value,options:i}),Se}return Sn(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(i=>!t.includes(i)),{...this._def,...n})}};tc.create=k1;var nc=class extends qe{_parse(t){let n=Xe.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==ce.string&&i.parsedType!==ce.number){let r=Xe.objectValues(n);return ie(i,{expected:Xe.joinValues(r),received:i.parsedType,code:H.invalid_type}),Se}if(this._cache||(this._cache=new Set(Xe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=Xe.objectValues(n);return ie(i,{received:i.data,code:H.invalid_enum_value,options:r}),Se}return Sn(t.data)}get enum(){return this._def.values}};nc.create=(e,t)=>new nc({values:e,typeName:Qe.ZodNativeEnum,...Me(t)});var Co=class extends qe{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.promise&&n.common.async===!1)return ie(n,{code:H.invalid_type,expected:ce.promise,received:n.parsedType}),Se;let i=n.parsedType===ce.promise?n.data:Promise.resolve(n.data);return Sn(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Co.create=(e,t)=>new Co({type:e,typeName:Qe.ZodPromise,...Me(t)});var Xr=class extends qe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,s={addIssue:o=>{ie(i,o),o.fatal?n.abort():n.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),r.type==="preprocess"){let o=r.transform(i.data,s);if(i.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return Se;let c=await this._def.schema._parseAsync({data:a,path:i.path,parent:i});return c.status==="aborted"?Se:c.status==="dirty"?Ga(c.value):n.value==="dirty"?Ga(c.value):c});{if(n.value==="aborted")return Se;let a=this._def.schema._parseSync({data:o,path:i.path,parent:i});return a.status==="aborted"?Se:a.status==="dirty"?Ga(a.value):n.value==="dirty"?Ga(a.value):a}}if(r.type==="refinement"){let o=a=>{let c=r.refinement(a,s);if(i.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(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Se:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>a.status==="aborted"?Se:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Io(o))return Se;let a=r.transform(o.value,s);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:i.data,path:i.path,parent:i}).then(o=>Io(o)?Promise.resolve(r.transform(o.value,s)).then(a=>({status:n.value,value:a})):Se);Xe.assertNever(r)}};Xr.create=(e,t,n)=>new Xr({schema:e,typeName:Qe.ZodEffects,effect:t,...Me(n)});Xr.createWithPreprocess=(e,t,n)=>new Xr({schema:t,effect:{type:"preprocess",transform:e},typeName:Qe.ZodEffects,...Me(n)});var Zr=class extends qe{_parse(t){return this._getType(t)===ce.undefined?Sn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Zr.create=(e,t)=>new Zr({innerType:e,typeName:Qe.ZodOptional,...Me(t)});var Wi=class extends qe{_parse(t){return this._getType(t)===ce.null?Sn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Wi.create=(e,t)=>new Wi({innerType:e,typeName:Qe.ZodNullable,...Me(t)});var rc=class extends qe{_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return n.parsedType===ce.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};rc.create=(e,t)=>new rc({innerType:e,typeName:Qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Me(t)});var ic=class extends qe{_parse(t){let{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return el(r)?r.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ar(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ar(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};ic.create=(e,t)=>new ic({innerType:e,typeName:Qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Me(t)});var ol=class extends qe{_parse(t){if(this._getType(t)!==ce.nan){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.nan,received:i.parsedType}),Se}return{status:"valid",value:t.data}}};ol.create=e=>new ol({typeName:Qe.ZodNaN,...Me(e)});var Qoe=Symbol("zod_brand"),Mp=class extends qe{_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},Lp=class e extends qe{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?Se:s.status==="dirty"?(n.dirty(),Ga(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{let r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?Se:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new e({in:t,out:n,typeName:Qe.ZodPipeline})}},sc=class extends qe{_parse(t){let n=this._def.innerType._parse(t),i=r=>(Io(r)&&(r.value=Object.freeze(r.value)),r);return el(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}};sc.create=(e,t)=>new sc({innerType:e,typeName:Qe.ZodReadonly,...Me(t)});function I1(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function S1(e,t={},n){return e?wo.create().superRefine((i,r)=>{let s=e(i);if(s instanceof Promise)return s.then(o=>{if(!o){let a=I1(t,i),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}});if(!s){let o=I1(t,i),a=o.fatal??n??!0;r.addIssue({code:"custom",...o,fatal:a})}}):wo.create()}var Toe={object:cr.lazycreate},Qe;(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"})(Qe||(Qe={}));var $oe=(e,t={message:`Input not instance of ${e.name}`})=>S1(n=>n instanceof e,t),B1=bo.create,R1=za.create,_oe=ol.create,Noe=qa.create,x1=Ja.create,Doe=Ha.create,Poe=nl.create,Uoe=Ya.create,Foe=Wa.create,Ooe=wo.create,Moe=Ts.create,Loe=Bi.create,joe=rl.create,Voe=$s.create,Goe=cr.create,zoe=cr.strictCreate,qoe=Za.create,Joe=gm.create,Hoe=Ka.create,Yoe=Yi.create,Woe=mm.create,Zoe=il.create,Koe=sl.create,Xoe=ym.create,eae=Xa.create,tae=ec.create,nae=tc.create,rae=nc.create,iae=Co.create,sae=Xr.create,oae=Zr.create,aae=Wi.create,cae=Xr.createWithPreprocess,uae=Lp.create,lae=()=>B1().optional(),dae=()=>R1().optional(),pae=()=>x1().optional(),fae={string:(e=>bo.create({...e,coerce:!0})),number:(e=>za.create({...e,coerce:!0})),boolean:(e=>Ja.create({...e,coerce:!0})),bigint:(e=>qa.create({...e,coerce:!0})),date:(e=>Ha.create({...e,coerce:!0}))};var Aae=Se;var al=["playwright","pytest","robot","junit","vitest","jest","mocha","go","rspec","jasmine"];var Q1="skyramp_session_storage.json";var Ak;(function(e){e.PYTHON="python",e.TYPESCRIPT="typescript",e.JAVASCRIPT="javascript",e.JAVA="java"})(Ak||(Ak={}));var Zi;(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"})(Zi||(Zi={}));var nBe=[Zi.CONTRACT,Zi.INTEGRATION,Zi.E2E,Zi.UI];var T1;(function(e){e.Rest="rest",e.Grpc="grpc",e.Kafka="kafka"})(T1||(T1={}));var Em;(function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e.OPTIONS="OPTIONS"})(Em||(Em={}));var jp;(function(e){e.LOCAL="local",e.DOCKER="docker",e.KUBERNETES="k8s"})(jp||(jp={}));var hae=J.nativeEnum(jp),hk=J.preprocess(e=>e==="kubernetes"?jp.KUBERNETES:e,hae);var gae=J.object({language:J.nativeEnum(Ak).describe("Programming language for the generated test (default: python). Must be one of: python, typescript, javascript, java"),framework:J.string().describe(`Testing framework to use. Supported: ${al.join(", ")} (e.g. pytest for python, playwright/vitest/jest for js/ts, junit for java).`)}),$1=J.object({...gae.shape,deployDashboard:J.boolean().default(!1).describe("Whether to deploy the Skyramp dashboard for test monitoring"),runtime:hk.default(jp.LOCAL).describe("Runtime environment (local, docker, or k8s; accepts kubernetes as an alias)"),dockerNetwork:J.string().default("").describe("Docker network name to use for containerized testing"),dockerWorkerPort:J.number().int().min(0).max(65535).default(0).describe("Port number for the Docker worker service"),k8sNamespace:J.string().default("").describe("Kubernetes namespace for deployment"),k8sConfig:J.string().default("").describe("Path to Kubernetes configuration file"),k8sContext:J.string().default("").describe("Kubernetes context to use"),authHeader:J.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:J.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:J.boolean().default(!1).describe("Whether to allow insecure SSL connections for HTTPS endpoints"),output:J.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:J.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:J.boolean().default(!0).describe("Whether to overwrite existing files in the output directory"),mockPort:J.number().int().min(0).max(65535).default(0).describe("Port number for the mock server"),optionalFields:J.boolean().default(!1).describe("Whether to include optional fields in the generated test/mock"),prompt:J.string().describe("The prompt user provided to generate the test")}),rBe=J.object({playwrightInput:J.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:J.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:J.string().optional().describe(`Path to SAVE Playwright session storage after trace collection. Omit this argument to use the default \u2014 \`${Q1}\` resolved against the active outputDir, which produces an absolute path like '/abs/outputDir/${Q1}'. 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:J.union([J.enum(["","hd","full-hd","2k"]),J.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:J.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:J.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.")}),iBe=J.object({trace:J.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:J.array(J.string()).default([]).describe("List of endpoints or patterns to include in test generation."),exclude:J.array(J.string()).default([]).describe("List of endpoints or patterns to exclude from test generation."),...$1.shape}),sBe={endpointURL:J.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:J.union([J.nativeEnum(Em),J.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:J.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:J.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:J.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:J.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for form data parameters"),requestData:J.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:J.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"),...$1.shape},oBe=J.object({codeReuse:J.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:J.boolean().default(!1).describe("Whether to modularize the code")}),aBe=[Zi.INTEGRATION,Zi.CONTRACT,Zi.UI];var vm;(function(e){e.Bug="bug",e.Lint="lint",e.Type="type",e.Config="config"})(vm||(vm={}));var Im;(function(e){e.NotMapped="not-mapped",e.DemotedByVerify="demoted-by-verify"})(Im||(Im={}));var bm;(function(e){e.Passed="passed",e.Failed="failed",e.SkippedNoPom="skipped-no-pom"})(bm||(bm={}));var gk;(function(e){e.Passed="passed",e.Failed="failed",e.NoUtilsFile="no-utils-file"})(gk||(gk={}));kn();var wm=e=>`${e} POM call${e===1?"":"s"}`,Cm={testRecommendationsImplementedHeader:e=>`\u{1F4A1} Test Recommendations Implemented (${e})`,testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:e=>`${wm(e)} reused and verified`,reusedThenVerified:(e,t)=>`${wm(e)} reused, ${t} of them verified`,reused:e=>`${wm(e)} reused`,verified:e=>`${wm(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",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.",testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",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}`,ciUnconfirmed:e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,ciResultsUnread:e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,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.`,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}.`,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.`,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. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",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. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",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.`},nextSteps:{componentMismatch:(e,t,n,i)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${i}, the commit this run validates.`,componentUnverified:(e,t,n,i)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${i}, 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.`},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}`,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,i)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${i} 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})`,largeReportSummary:(e,t,n,i,r)=>`${e} requirements, ${t} clauses. Test results: ${n} Pass, ${i} Fail, ${r} Skipped.`,largeReportValidation:(e,t,n)=>`Evidence: ${e}. ${t} (${n} gaps; see the full report.)`,largeReportNotice:"This report is too large for a pull request description. The full report includes every requirement and its evidence; review it on the run page before deciding whether the change is validated.",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}`,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}.`,testsNotProposed:e=>`The tests were not proposed in a pull request: ${e}.`}};var _1={testRecommendationsImplementedHeader:e=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08${e}\u4EF6\uFF09`,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",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",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",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}`,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`,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`,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`,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`,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`,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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\u30AC\u30FC\u30C9\u306E\u5BFE\u8C61\u5916\u306E\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u6307\u793A\u306B\u3088\u308B\u8981\u4EF6\u3067\u3042\u308A\u3001Testbot \u306F\u305D\u306E\u5B8C\u4E86\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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`},nextSteps:{componentMismatch:(e,t,n,i)=>`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 ${i} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,componentUnverified:(e,t,n,i)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${i} \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`},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`,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,i)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${i}\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})`,largeReportSummary:(e,t,n,i,r)=>`\u8981\u4EF6 ${e} \u4EF6\u3001\u6761\u9805 ${t} \u4EF6\u3002\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${n} \u4EF6\u3001\u4E0D\u5408\u683C ${i} \u4EF6\u3001\u30B9\u30AD\u30C3\u30D7 ${r} \u4EF6\u3002`,largeReportValidation:(e,t,n)=>`\u8A3C\u62E0: ${e}\u3002${t}\uFF08\u4E0D\u8DB3 ${n} \u4EF6\u3002\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\uFF09`,largeReportNotice:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u8AAC\u660E\u306B\u53CE\u307E\u308A\u307E\u305B\u3093\u3002\u3059\u3079\u3066\u306E\u8981\u4EF6\u3068\u8A3C\u62E0\u3092\u542B\u3080\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8\u3092\u5B9F\u884C\u30DA\u30FC\u30B8\u3067\u78BA\u8A8D\u3057\u3066\u304B\u3089\u3001\u5909\u66F4\u304C\u691C\u8A3C\u3055\u308C\u305F\u304B\u5224\u65AD\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}`,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`,testsNotProposed:e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`}};var Vp=(n=>(n.En="en",n.Ja="ja",n))(Vp||{}),mae={en:Cm,ja:_1},yae="en";function mk(e){let t=e.trim().toLowerCase();if(t==="")return"en";let n=Object.values(Vp);return n.includes(t)?t:(ht(`Invalid language '${e}'. Supported: ${n.join(", ")}. Falling back to 'en'.`),"en")}function oc(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}function le(){return mae[yae]}var km=(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))(km||{});(t=>{function e(n,i){switch(n){case"provider_outage":return{headline:le().providerOutageHeadline(i.provider.name,i.maxRetries),action:le().providerOutageActionStatusPage(i.provider.statusUrl)};case"provider_rate_limit":return{headline:le().providerRateLimitHeadline(i.provider.name),action:le().providerRateLimitAction};case"provider_usage_limit":return{headline:le().providerUsageLimitHeadline(i.provider.name),action:le().providerUsageLimitAction};case"provider_auth_expired":return{headline:le().providerAuthExpiredHeadline(i.provider.name),action:le().providerAuthExpiredAction};case"timeout":return{headline:le().providerTimeoutHeadline(i.timeoutMinutes),action:le().providerTimeoutAction};case"no_report":case"render_failure":return}}t.buildNotice=e})(km||={});var yk=(n=>(n.SameBranch="same-branch",n.SeparateBranch="separate-branch",n))(yk||{});var N1=(n=>(n.Sonnet="sonnet",n.Opus="opus",n))(N1||{}),Eae="opus";function Ek(e){return Object.values(N1).includes(e)}function D1(e){let t=(e??"").trim();if(t==="")return Eae;let n=t.toLowerCase();return Ek(n)?n:t}var Sm=(s=>(s.Low="low",s.Medium="medium",s.High="high",s.XHigh="xhigh",s.Max="max",s))(Sm||{}),Bm="high";function P1(e){return Object.values(Sm).includes(e)}var U1=5;function vae(e){let t=e.split(/\r?\n/).map(n=>n.trim()).filter(Boolean);if(t.length>U1)throw new Error(`relatedRepoPaths supports at most ${U1} entries (got ${t.length}); the cap limits how much cross-repo context is loaded to avoid overflowing Testbot's context window.`);return t}function Iae(e){let t=e.trim().toLowerCase();return t===""?"separate-branch":Object.values(yk).includes(t)?t:(ht(`Invalid generatedTestsMode '${e}'. Falling back to 'separate-branch'.`),"separate-branch")}function bae(e){let t=(e??"").trim();if(t!==""){if(/^(?:[1-9]|10)$/.test(t))return Number(t);ht(`Ignoring perTestMaxFixAttempts="${e}": expected a whole number from 1 to 10; the Skyramp MCP default applies`)}}function wae(e){let t=(e??"").trim().toLowerCase();return t===""?Bm:P1(t)?t:(ht(`Ignoring effort="${e}": expected one of ${Object.values(Sm).join(", ")}; using "${Bm}"`),Bm)}function F1(){let e=D1(Pe("model"));return Ek(e)||ht(`model '${e}' is not a tested alias (sonnet, opus); passing it to the agent verbatim as a raw model id.`),{skyrampLicenseFile:Pe("skyrampLicenseFile"),cursorApiKey:Pe("cursorApiKey"),copilotApiKey:Pe("copilotApiKey"),anthropicApiKey:Pe("anthropicApiKey"),useBedrock:vo("useBedrock"),awsRegion:Pe("awsRegion"),useLocalAuth:Pe("useLocalAuth").toLowerCase()==="true",model:e,effort:wae(Pe("effort")),targetSetupCommand:Pe("targetSetupCommand"),authTokenCommand:Pe("authTokenCommand"),uiCredentials:Pe("uiCredentials"),targetTeardownCommand:Pe("targetTeardownCommand"),skipTargetTeardown:vo("skipTargetTeardown"),skyrampExecutorVersion:Pe("skyrampExecutorVersion"),skyrampMcpVersion:Pe("skyrampMcpVersion"),skyrampMcpSource:Pe("skyrampMcpSource"),skyrampMcpGithubToken:Pe("skyrampMcpGithubToken"),skyrampMcpGithubRef:Pe("skyrampMcpGithubRef"),nodeVersion:Pe("nodeVersion"),skipTargetSetup:vo("skipTargetSetup"),targetReadyCheckCommand:Pe("targetReadyCheckCommand"),targetReadyCheckTimeout:(()=>{let n=parseInt(Pe("targetReadyCheckTimeout"),10)||1800;return n<1?(ht(`targetReadyCheckTimeout must be at least 1 second, got ${n}. Using 1s.`),1):n})(),targetReadyCheckInterval:(()=>{let n=parseInt(Pe("targetReadyCheckInterval"),10),i=isNaN(n)?30:n;return i<1?(ht(`targetReadyCheckInterval must be at least 1 second, got ${i}. Using 1s.`),1):i})(),targetReadyCheckDiagnosticsCommand:(()=>{let n=Pe("targetReadyCheckDiagnosticsCommand");return n.trim().toLowerCase()==="none"?"":n})(),workingDirectory:Pe("workingDirectory"),autoCommit:vo("autoCommit"),commitMessage:Pe("commitMessage"),generatedTestsMode:Iae(Pe("generatedTestsMode")),postPrComment:vo("postPrComment"),testExecutionTimeout:parseInt(Pe("testExecutionTimeout"),10)||300,maxRecommendations:(()=>{let n=parseInt(Pe("maxRecommendations"),10);return isNaN(n)?void 0:Math.max(0,n)})(),maxGenerate:(()=>{let n=parseInt(Pe("maxGenerate"),10);return isNaN(n)?void 0:Math.max(0,n)})(),perTestMaxFixAttempts:bae(Pe("perTestMaxFixAttempts")),testbotMaxRetries:parseInt(Pe("testbotMaxRetries"),10)||3,testbotRetryDelay:parseInt(Pe("testbotRetryDelay"),10)||10,testbotTimeout:parseInt(Pe("testbotTimeout"),10)||60,targetSetupRetries:parseInt(Pe("targetSetupRetries"),10)||3,targetSetupRetryDelay:parseInt(Pe("targetSetupRetryDelay"),10)||10,authTokenRetries:(()=>{let n=parseInt(Pe("authTokenRetries"),10);return Number.isFinite(n)&&n>=1?n:6})(),authTokenRetryDelay:(()=>{let n=parseInt(Pe("authTokenRetryDelay"),10);return Number.isFinite(n)&&n>=0?n:10})(),reportCollapsed:vo("reportCollapsed"),language:mk(Pe("language")),enableDebug:vo("enableDebug"),testRepoPath:Pe("testRepoPath")||void 0,relatedRepoPaths:vae(Pe("relatedRepoPaths")),allowedAuthors:Pe("allowedAuthors").split(/\r?\n/).map(n=>n.trim()).filter(Boolean)}}var Cae={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 O1(e=process.env){for(let[t,n]of Object.entries(Cae)){let i=`INPUT_${t.replace(/ /g,"_").toUpperCase()}`;(e[i]??"").trim()===""&&(e[i]=n)}}kn();var BV=fe(require("path"));var cl=require("fs"),_s=fe(require("path"),1),$j=require("child_process"),_j=require("util");function kae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bn={},Rm={},ko={},M1;function Gp(){if(M1)return ko;M1=1;function e(o){return typeof o>"u"||o===null}function t(o){return typeof o=="object"&&o!==null}function n(o){return Array.isArray(o)?o:e(o)?[]:[o]}function i(o,a){if(a){let c=Object.keys(a);for(let u=0,d=c.length;u<d;u+=1){let f=c[u];o[f]=a[f]}}return o}function r(o,a){let c="";for(let u=0;u<a;u+=1)c+=o;return c}function s(o){return o===0&&Number.NEGATIVE_INFINITY===1/o}return ko.isNothing=e,ko.isObject=t,ko.toArray=n,ko.repeat=r,ko.isNegativeZero=s,ko.extend=i,ko}var vk,L1;function zp(){if(L1)return vk;L1=1;function e(n,i){let r="",s=n.reason||"(unknown reason)";return n.mark?(n.mark.name&&(r+='in "'+n.mark.name+'" '),r+="("+(n.mark.line+1)+":"+(n.mark.column+1)+")",!i&&n.mark.snippet&&(r+=`
|
|
51
|
+
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function f1(e){process.exitCode=ck.Failure,A1(e)}function WC(e){Aa("debug",{},e)}function A1(e,t={}){Aa("error",sh(t),e instanceof Error?e.toString():e)}function ht(e,t={}){Aa("warning",sh(t),e instanceof Error?e.toString():e)}function Fp(e,t={}){Aa("notice",sh(t),e instanceof Error?e.toString():e)}function Wr(e){process.stdout.write(e+p1.EOL)}function pm(e){mI("group",e)}function fm(){mI("endgroup")}function Rs(e){return process.env[`STATE_${e}`]||""}function h1(e){return ioe(this,void 0,void 0,function*(){return yield om.getIDToken(e)})}var p1,ioe,ck,kn=Fn(()=>{u_();l_();oh();p1=fe(require("os"),1);JL();XC();XC();WL();d1();ioe=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(i.next(d))}catch(f){o(f)}}function c(d){try{u(i.throw(d))}catch(f){o(f)}}function u(d){d.done?s(d.value):r(d.value).then(a,c)}u((i=i.apply(e,t||[])).next())})};(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(ck||(ck={}))});var xl=F((gQe,XG)=>{"use strict";var dle="2.0.0",ple=Number.MAX_SAFE_INTEGER||9007199254740991,fle=16,Ale=250,hle=["major","premajor","minor","preminor","patch","prepatch","prerelease"];XG.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:fle,MAX_SAFE_BUILD_LENGTH:Ale,MAX_SAFE_INTEGER:ple,RELEASE_TYPES:hle,SEMVER_SPEC_VERSION:dle,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var If=F((mQe,e2)=>{"use strict";var gle=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e2.exports=gle});var Ql=F((is,t2)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:WS,MAX_SAFE_BUILD_LENGTH:mle,MAX_LENGTH:yle}=xl(),Ele=If();is=t2.exports={};var vle=is.re=[],Ile=is.safeRe=[],de=is.src=[],ble=is.safeSrc=[],pe=is.t={},wle=0,ZS="[a-zA-Z0-9-]",Cle=[["\\s",1],["\\d",yle],[ZS,mle]],kle=e=>{for(let[t,n]of Cle)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},Fe=(e,t,n)=>{let i=kle(t),r=wle++;Ele(e,r,t),pe[e]=r,de[r]=t,ble[r]=i,vle[r]=new RegExp(t,n?"g":void 0),Ile[r]=new RegExp(i,n?"g":void 0)};Fe("NUMERICIDENTIFIER","0|[1-9]\\d*");Fe("NUMERICIDENTIFIERLOOSE","\\d+");Fe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ZS}*`);Fe("MAINVERSION",`(${de[pe.NUMERICIDENTIFIER]})\\.(${de[pe.NUMERICIDENTIFIER]})\\.(${de[pe.NUMERICIDENTIFIER]})`);Fe("MAINVERSIONLOOSE",`(${de[pe.NUMERICIDENTIFIERLOOSE]})\\.(${de[pe.NUMERICIDENTIFIERLOOSE]})\\.(${de[pe.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASEIDENTIFIER",`(?:${de[pe.NONNUMERICIDENTIFIER]}|${de[pe.NUMERICIDENTIFIER]})`);Fe("PRERELEASEIDENTIFIERLOOSE",`(?:${de[pe.NONNUMERICIDENTIFIER]}|${de[pe.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASE",`(?:-(${de[pe.PRERELEASEIDENTIFIER]}(?:\\.${de[pe.PRERELEASEIDENTIFIER]})*))`);Fe("PRERELEASELOOSE",`(?:-?(${de[pe.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${de[pe.PRERELEASEIDENTIFIERLOOSE]})*))`);Fe("BUILDIDENTIFIER",`${ZS}+`);Fe("BUILD",`(?:\\+(${de[pe.BUILDIDENTIFIER]}(?:\\.${de[pe.BUILDIDENTIFIER]})*))`);Fe("FULLPLAIN",`v?${de[pe.MAINVERSION]}${de[pe.PRERELEASE]}?${de[pe.BUILD]}?`);Fe("FULL",`^${de[pe.FULLPLAIN]}$`);Fe("LOOSEPLAIN",`[v=\\s]*${de[pe.MAINVERSIONLOOSE]}${de[pe.PRERELEASELOOSE]}?${de[pe.BUILD]}?`);Fe("LOOSE",`^${de[pe.LOOSEPLAIN]}$`);Fe("GTLT","((?:<|>)?=?)");Fe("XRANGEIDENTIFIERLOOSE",`${de[pe.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Fe("XRANGEIDENTIFIER",`${de[pe.NUMERICIDENTIFIER]}|x|X|\\*`);Fe("XRANGEPLAIN",`[v=\\s]*(${de[pe.XRANGEIDENTIFIER]})(?:\\.(${de[pe.XRANGEIDENTIFIER]})(?:\\.(${de[pe.XRANGEIDENTIFIER]})(?:${de[pe.PRERELEASE]})?${de[pe.BUILD]}?)?)?`);Fe("XRANGEPLAINLOOSE",`[v=\\s]*(${de[pe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${de[pe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${de[pe.XRANGEIDENTIFIERLOOSE]})(?:${de[pe.PRERELEASELOOSE]})?${de[pe.BUILD]}?)?)?`);Fe("XRANGE",`^${de[pe.GTLT]}\\s*${de[pe.XRANGEPLAIN]}$`);Fe("XRANGELOOSE",`^${de[pe.GTLT]}\\s*${de[pe.XRANGEPLAINLOOSE]}$`);Fe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${WS}})(?:\\.(\\d{1,${WS}}))?(?:\\.(\\d{1,${WS}}))?`);Fe("COERCE",`${de[pe.COERCEPLAIN]}(?:$|[^\\d])`);Fe("COERCEFULL",de[pe.COERCEPLAIN]+`(?:${de[pe.PRERELEASE]})?(?:${de[pe.BUILD]})?(?:$|[^\\d])`);Fe("COERCERTL",de[pe.COERCE],!0);Fe("COERCERTLFULL",de[pe.COERCEFULL],!0);Fe("LONETILDE","(?:~>?)");Fe("TILDETRIM",`(\\s*)${de[pe.LONETILDE]}\\s+`,!0);is.tildeTrimReplace="$1~";Fe("TILDE",`^${de[pe.LONETILDE]}${de[pe.XRANGEPLAIN]}$`);Fe("TILDELOOSE",`^${de[pe.LONETILDE]}${de[pe.XRANGEPLAINLOOSE]}$`);Fe("LONECARET","(?:\\^)");Fe("CARETTRIM",`(\\s*)${de[pe.LONECARET]}\\s+`,!0);is.caretTrimReplace="$1^";Fe("CARET",`^${de[pe.LONECARET]}${de[pe.XRANGEPLAIN]}$`);Fe("CARETLOOSE",`^${de[pe.LONECARET]}${de[pe.XRANGEPLAINLOOSE]}$`);Fe("COMPARATORLOOSE",`^${de[pe.GTLT]}\\s*(${de[pe.LOOSEPLAIN]})$|^$`);Fe("COMPARATOR",`^${de[pe.GTLT]}\\s*(${de[pe.FULLPLAIN]})$|^$`);Fe("COMPARATORTRIM",`(\\s*)${de[pe.GTLT]}\\s*(${de[pe.LOOSEPLAIN]}|${de[pe.XRANGEPLAIN]})`,!0);is.comparatorTrimReplace="$1$2$3";Fe("HYPHENRANGE",`^\\s*(${de[pe.XRANGEPLAIN]})\\s+-\\s+(${de[pe.XRANGEPLAIN]})\\s*$`);Fe("HYPHENRANGELOOSE",`^\\s*(${de[pe.XRANGEPLAINLOOSE]})\\s+-\\s+(${de[pe.XRANGEPLAINLOOSE]})\\s*$`);Fe("STAR","(<|>)?=?\\s*\\*");Fe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Fe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ly=F((yQe,n2)=>{"use strict";var Sle=Object.freeze({loose:!0}),Ble=Object.freeze({}),Rle=e=>e?typeof e!="object"?Sle:e:Ble;n2.exports=Rle});var KS=F((EQe,s2)=>{"use strict";var r2=/^[0-9]+$/,i2=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=r2.test(e),i=r2.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},xle=(e,t)=>i2(t,e);s2.exports={compareIdentifiers:i2,rcompareIdentifiers:xle}});var hn=F((vQe,a2)=>{"use strict";var dy=If(),{MAX_LENGTH:o2,MAX_SAFE_INTEGER:py}=xl(),{safeRe:fy,t:Ay}=Ql(),Qle=ly(),{compareIdentifiers:XS}=KS(),Tle=(e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let i=0;i<n.length;i++)if(XS(e[i],n[i])!==0)return!1;return!0},eB=class e{constructor(t,n){if(n=Qle(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>o2)throw new TypeError(`version is longer than ${o2} characters`);dy("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=t.trim().match(n.loose?fy[Ay.LOOSE]:fy[Ay.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>py||this.major<0)throw new TypeError("Invalid major version");if(this.minor>py||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>py||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let s=+r;if(s>=0&&s<py)return s}return r}):this.prerelease=[],this.build=i[5]?i[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(dy("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 i=this.prerelease[n],r=t.prerelease[n];if(dy("prerelease compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return XS(i,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let i=this.build[n],r=t.build[n];if(dy("build compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return XS(i,r)}while(++n)}inc(t,n,i){if(t.startsWith("pre")){if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?fy[Ay.PRERELEASELOOSE]:fy[Ay.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,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);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(i)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let s=[n,r];if(i===!1&&(s=[n]),Tle(this.prerelease,n)){let o=this.prerelease[n.split(".").length];isNaN(o)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};a2.exports=eB});var Mo=F((IQe,u2)=>{"use strict";var c2=hn(),$le=(e,t,n=!1)=>{if(e instanceof c2)return e;try{return new c2(e,t)}catch(i){if(!n)return null;throw i}};u2.exports=$le});var d2=F((bQe,l2)=>{"use strict";var _le=Mo(),Nle=(e,t)=>{let n=_le(e,t);return n?n.version:null};l2.exports=Nle});var f2=F((wQe,p2)=>{"use strict";var Dle=Mo(),Ple=(e,t)=>{let n=Dle(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};p2.exports=Ple});var g2=F((CQe,h2)=>{"use strict";var A2=hn(),Ule=(e,t,n,i,r)=>{typeof n=="string"&&(r=i,i=n,n=void 0);try{return new A2(e instanceof A2?e.version:e,n).inc(t,i,r).version}catch{return null}};h2.exports=Ule});var E2=F((kQe,y2)=>{"use strict";var m2=Mo(),Fle=(e,t)=>{let n=m2(e,null,!0),i=m2(t,null,!0),r=n.compare(i);if(r===0)return null;let s=r>0,o=s?n:i,a=s?i: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!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease"};y2.exports=Fle});var I2=F((SQe,v2)=>{"use strict";var Ole=hn(),Mle=(e,t)=>new Ole(e,t).major;v2.exports=Mle});var w2=F((BQe,b2)=>{"use strict";var Lle=hn(),jle=(e,t)=>new Lle(e,t).minor;b2.exports=jle});var k2=F((RQe,C2)=>{"use strict";var Vle=hn(),Gle=(e,t)=>new Vle(e,t).patch;C2.exports=Gle});var B2=F((xQe,S2)=>{"use strict";var zle=Mo(),qle=(e,t)=>{let n=zle(e,t);return n&&n.prerelease.length?n.prerelease:null};S2.exports=qle});var ui=F((QQe,x2)=>{"use strict";var R2=hn(),Jle=(e,t,n)=>new R2(e,n).compare(new R2(t,n));x2.exports=Jle});var T2=F((TQe,Q2)=>{"use strict";var Hle=ui(),Yle=(e,t,n)=>Hle(t,e,n);Q2.exports=Yle});var _2=F(($Qe,$2)=>{"use strict";var Wle=ui(),Zle=(e,t)=>Wle(e,t,!0);$2.exports=Zle});var hy=F((_Qe,D2)=>{"use strict";var N2=hn(),Kle=(e,t,n)=>{let i=new N2(e,n),r=new N2(t,n);return i.compare(r)||i.compareBuild(r)};D2.exports=Kle});var U2=F((NQe,P2)=>{"use strict";var Xle=hy(),ede=(e,t)=>e.sort((n,i)=>Xle(n,i,t));P2.exports=ede});var O2=F((DQe,F2)=>{"use strict";var tde=hy(),nde=(e,t)=>e.sort((n,i)=>tde(i,n,t));F2.exports=nde});var bf=F((PQe,M2)=>{"use strict";var rde=ui(),ide=(e,t,n)=>rde(e,t,n)>0;M2.exports=ide});var gy=F((UQe,L2)=>{"use strict";var sde=ui(),ode=(e,t,n)=>sde(e,t,n)<0;L2.exports=ode});var tB=F((FQe,j2)=>{"use strict";var ade=ui(),cde=(e,t,n)=>ade(e,t,n)===0;j2.exports=cde});var nB=F((OQe,V2)=>{"use strict";var ude=ui(),lde=(e,t,n)=>ude(e,t,n)!==0;V2.exports=lde});var my=F((MQe,G2)=>{"use strict";var dde=ui(),pde=(e,t,n)=>dde(e,t,n)>=0;G2.exports=pde});var yy=F((LQe,z2)=>{"use strict";var fde=ui(),Ade=(e,t,n)=>fde(e,t,n)<=0;z2.exports=Ade});var rB=F((jQe,q2)=>{"use strict";var hde=tB(),gde=nB(),mde=bf(),yde=my(),Ede=gy(),vde=yy(),Ide=(e,t,n,i)=>{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 hde(e,n,i);case"!=":return gde(e,n,i);case">":return mde(e,n,i);case">=":return yde(e,n,i);case"<":return Ede(e,n,i);case"<=":return vde(e,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}};q2.exports=Ide});var H2=F((VQe,J2)=>{"use strict";var bde=hn(),wde=Mo(),{safeRe:Ey,t:vy}=Ql(),Cde=(e,t)=>{if(e instanceof bde)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?Ey[vy.COERCEFULL]:Ey[vy.COERCE]);else{let c=t.includePrerelease?Ey[vy.COERCERTLFULL]:Ey[vy.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 i=n[2],r=n[3]||"0",s=n[4]||"0",o=t.includePrerelease&&n[5]?`-${n[5]}`:"",a=t.includePrerelease&&n[6]?`+${n[6]}`:"";return wde(`${i}.${r}.${s}${o}${a}`,t)};J2.exports=Cde});var W2=F((GQe,Y2)=>{"use strict";var kde=Mo(),Sde=xl(),Bde=hn(),Rde=(e,t,n)=>{if(!Sde.RELEASE_TYPES.includes(t))return null;let i=xde(e,n);return i&&Qde(i,t)},xde=(e,t)=>{let n=e instanceof Bde?e.version:e;return kde(n,t)},Qde=(e,t)=>{if(Tde(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()},Tde=e=>e.startsWith("pre");Y2.exports=Rde});var K2=F((zQe,Z2)=>{"use strict";var iB=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}};Z2.exports=iB});var li=F((qQe,nz)=>{"use strict";var $de=/\s+/g,sB=class e{constructor(t,n){if(n=Nde(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof oB)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($de," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!ez(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&Vde(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 i=0;i<n.length;i++)i>0&&(this.formatted+=" "),this.formatted+=n[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(jde,"");let i=((this.options.includePrerelease&&Mde)|(this.options.loose&&Lde))+":"+t,r=X2.get(i);if(r)return r;let s=this.options.loose,o=s?qn[gn.HYPHENRANGELOOSE]:qn[gn.HYPHENRANGE];t=t.replace(o,epe(this.options.includePrerelease)),xt("hyphen replace",t),t=t.replace(qn[gn.COMPARATORTRIM],Ude),xt("comparator trim",t),t=t.replace(qn[gn.TILDETRIM],Fde),xt("tilde trim",t),t=t.replace(qn[gn.CARETTRIM],Ode),xt("caret trim",t);let a=t.split(" ").map(f=>Gde(f,this.options)).join(" ").split(/\s+/).map(f=>Xde(f,this.options));s&&(a=a.filter(f=>(xt("loose invalid filter",f,this.options),!!f.match(qn[gn.COMPARATORLOOSE])))),xt("range list",a);let c=new Map,u=a.map(f=>new oB(f,this.options));for(let f of u){if(ez(f))return[f];c.set(f.value,f)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return X2.set(i,d),d}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(i=>tz(i,n)&&t.set.some(r=>tz(r,n)&&i.every(s=>r.every(o=>s.intersects(o,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Dde(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(tpe(this.set[n],t,this.options))return!0;return!1}};nz.exports=sB;var _de=K2(),X2=new _de,Nde=ly(),oB=wf(),xt=If(),Dde=hn(),{safeRe:qn,src:Pde,t:gn,comparatorTrimReplace:Ude,tildeTrimReplace:Fde,caretTrimReplace:Ode}=Ql(),{FLAG_INCLUDE_PRERELEASE:Mde,FLAG_LOOSE:Lde}=xl(),jde=new RegExp(Pde[gn.BUILD],"g"),ez=e=>e.value==="<0.0.0-0",Vde=e=>e.value==="",tz=(e,t)=>{let n=!0,i=e.slice(),r=i.pop();for(;n&&i.length;)n=i.every(s=>r.intersects(s,t)),r=i.pop();return n},Gde=(e,t)=>(e=e.replace(qn[gn.BUILD],""),xt("comp",e,t),e=Hde(e,t),xt("caret",e),e=qde(e,t),xt("tildes",e),e=Wde(e,t),xt("xrange",e),e=Kde(e,t),xt("stars",e),e),Zt=e=>!e||e.toLowerCase()==="x"||e==="*",zde=(e,t,n)=>Zt(e)&&!Zt(t)||Zt(t)&&n&&!Zt(n),qde=(e,t)=>e.trim().split(/\s+/).map(n=>Jde(n,t)).join(" "),Jde=(e,t)=>{let n=t.loose?qn[gn.TILDELOOSE]:qn[gn.TILDE],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,o,a,c)=>{xt("tilde",e,r,s,o,a,c);let u;return Zt(s)?u="":Zt(o)?u=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Zt(a)?u=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:c?(xt("replaceTilde pr",c),u=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):u=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,xt("tilde return",u),u})},Hde=(e,t)=>e.trim().split(/\s+/).map(n=>Yde(n,t)).join(" "),Yde=(e,t)=>{xt("caret",e,t);let n=t.loose?qn[gn.CARETLOOSE]:qn[gn.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,o,a,c)=>{xt("caret",e,r,s,o,a,c);let u;return Zt(s)?u="":Zt(o)?u=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Zt(a)?s==="0"?u=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:c?(xt("replaceCaret pr",c),s==="0"?o==="0"?u=`>=${s}.${o}.${a}-${c} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a}-${c} <${+s+1}.0.0-0`):(xt("no pr"),s==="0"?o==="0"?u=`>=${s}.${o}.${a} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),xt("caret return",u),u})},Wde=(e,t)=>(xt("replaceXRanges",e,t),e.split(/\s+/).map(n=>Zde(n,t)).join(" ")),Zde=(e,t)=>{e=e.trim();let n=t.loose?qn[gn.XRANGELOOSE]:qn[gn.XRANGE];return e.replace(n,(i,r,s,o,a,c)=>{if(xt("xRange",e,i,r,s,o,a,c),zde(s,o,a))return e;let u=Zt(s),d=u||Zt(o),f=d||Zt(a),h=f;return r==="="&&h&&(r=""),c=t.includePrerelease?"-0":"",u?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&h?(d&&(o=0),a=0,r===">"?(r=">=",d?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):r==="<="&&(r="<",d?s=+s+1:o=+o+1),r==="<"&&(c="-0"),i=`${r+s}.${o}.${a}${c}`):d?i=`>=${s}.0.0${c} <${+s+1}.0.0-0`:f&&(i=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),xt("xRange return",i),i})},Kde=(e,t)=>(xt("replaceStars",e,t),e.trim().replace(qn[gn.STAR],"")),Xde=(e,t)=>(xt("replaceGTE0",e,t),e.trim().replace(qn[t.includePrerelease?gn.GTE0PRE:gn.GTE0],"")),epe=e=>(t,n,i,r,s,o,a,c,u,d,f,h)=>(Zt(i)?n="":Zt(r)?n=`>=${i}.0.0${e?"-0":""}`:Zt(s)?n=`>=${i}.${r}.0${e?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,Zt(u)?c="":Zt(d)?c=`<${+u+1}.0.0-0`:Zt(f)?c=`<${u}.${+d+1}.0-0`:h?c=`<=${u}.${d}.${f}-${h}`:e?c=`<${u}.${d}.${+f+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),tpe=(e,t,n)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let i=0;i<e.length;i++)if(xt(e[i].semver),e[i].semver!==oB.ANY&&e[i].semver.prerelease.length>0){let r=e[i].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}});var wf=F((JQe,cz)=>{"use strict";var Cf=Symbol("SemVer ANY"),uB=class e{static get ANY(){return Cf}constructor(t,n){if(n=rz(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),cB("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===Cf?this.value="":this.value=this.operator+this.semver.version,cB("comp",this)}parse(t){let n=this.options.loose?iz[sz.COMPARATORLOOSE]:iz[sz.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new oz(i[2],this.options.loose):this.semver=Cf}toString(){return this.value}test(t){if(cB("Comparator.test",t,this.options.loose),this.semver===Cf||t===Cf)return!0;if(typeof t=="string")try{t=new oz(t,this.options)}catch{return!1}return aB(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 az(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new az(this.value,n).test(t.semver):(n=rz(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("=")||aB(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||aB(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};cz.exports=uB;var rz=ly(),{safeRe:iz,t:sz}=Ql(),aB=rB(),cB=If(),oz=hn(),az=li()});var kf=F((HQe,uz)=>{"use strict";var npe=li(),rpe=(e,t,n)=>{try{t=new npe(t,n)}catch{return!1}return t.test(e)};uz.exports=rpe});var dz=F((YQe,lz)=>{"use strict";var ipe=li(),spe=(e,t)=>new ipe(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));lz.exports=spe});var fz=F((WQe,pz)=>{"use strict";var ope=hn(),ape=li(),cpe=(e,t,n)=>{let i=null,r=null,s=null;try{s=new ape(t,n)}catch{return null}return e.forEach(o=>{s.test(o)&&(!i||r.compare(o)===-1)&&(i=o,r=new ope(i,n))}),i};pz.exports=cpe});var hz=F((ZQe,Az)=>{"use strict";var upe=hn(),lpe=li(),dpe=(e,t,n)=>{let i=null,r=null,s=null;try{s=new lpe(t,n)}catch{return null}return e.forEach(o=>{s.test(o)&&(!i||r.compare(o)===1)&&(i=o,r=new upe(i,n))}),i};Az.exports=dpe});var yz=F((KQe,mz)=>{"use strict";var lB=hn(),ppe=li(),gz=bf(),fpe=(e,t)=>{e=new ppe(e,t);let n=new lB("0.0.0");if(e.test(n)||(n=new lB("0.0.0-0"),e.test(n)))return n;n=null;for(let i=0;i<e.set.length;++i){let r=e.set[i],s=null;r.forEach(o=>{let a=new lB(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||gz(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||gz(n,s))&&(n=s)}return n&&e.test(n)?n:null};mz.exports=fpe});var vz=F((XQe,Ez)=>{"use strict";var Ape=li(),hpe=(e,t)=>{try{return new Ape(e,t).range||"*"}catch{return null}};Ez.exports=hpe});var Iy=F((eTe,Cz)=>{"use strict";var gpe=hn(),wz=wf(),{ANY:mpe}=wz,ype=li(),Epe=kf(),Iz=bf(),bz=gy(),vpe=yy(),Ipe=my(),bpe=(e,t,n,i)=>{e=new gpe(e,i),t=new ype(t,i);let r,s,o,a,c;switch(n){case">":r=Iz,s=vpe,o=bz,a=">",c=">=";break;case"<":r=bz,s=Ipe,o=Iz,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Epe(e,t,i))return!1;for(let u=0;u<t.set.length;++u){let d=t.set[u],f=null,h=null;if(d.forEach(g=>{g.semver===mpe&&(g=new wz(">=0.0.0")),f=f||g,h=h||g,r(g.semver,f.semver,i)?f=g:o(g.semver,h.semver,i)&&(h=g)}),f.operator===a||f.operator===c||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};Cz.exports=bpe});var Sz=F((tTe,kz)=>{"use strict";var wpe=Iy(),Cpe=(e,t,n)=>wpe(e,t,">",n);kz.exports=Cpe});var Rz=F((nTe,Bz)=>{"use strict";var kpe=Iy(),Spe=(e,t,n)=>kpe(e,t,"<",n);Bz.exports=Spe});var Tz=F((rTe,Qz)=>{"use strict";var xz=li(),Bpe=(e,t,n)=>(e=new xz(e,n),t=new xz(t,n),e.intersects(t,n));Qz.exports=Bpe});var _z=F((iTe,$z)=>{"use strict";var Rpe=kf(),xpe=ui();$z.exports=(e,t,n)=>{let i=[],r=null,s=null,o=e.sort((d,f)=>xpe(d,f,n));for(let d of o)Rpe(d,t,n)?(s=d,r||(r=d)):(s&&i.push([r,s]),s=null,r=null);r&&i.push([r,null]);let a=[];for(let[d,f]of i)d===f?a.push(d):!f&&d===o[0]?a.push("*"):f?d===o[0]?a.push(`<=${f}`):a.push(`${d} - ${f}`):a.push(`>=${d}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var Oz=F((sTe,Fz)=>{"use strict";var Nz=li(),fB=wf(),{ANY:dB}=fB,pB=kf(),AB=ui(),Qpe=(e,t,n={})=>{if(e===t)return!0;e=new Nz(e,n),t=new Nz(t,n);let i=!1;e:for(let r of e.set){for(let s of t.set){let o=$pe(r,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Tpe=[new fB(">=0.0.0-0")],Dz=[new fB(">=0.0.0")],$pe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===dB){if(t.length===1&&t[0].semver===dB)return!0;n.includePrerelease?e=Tpe:e=Dz}if(t.length===1&&t[0].semver===dB){if(n.includePrerelease)return!0;t=Dz}let i=new Set,r,s;for(let g of e)g.operator===">"||g.operator===">="?r=Pz(r,g,n):g.operator==="<"||g.operator==="<="?s=Uz(s,g,n):i.add(g.semver);if(i.size>1)return null;let o;if(r&&s){if(o=AB(r.semver,s.semver,n),o>0)return null;if(o===0&&(r.operator!==">="||s.operator!=="<="))return null}for(let g of i){if(r&&!pB(g,String(r),n)||s&&!pB(g,String(s),n))return null;for(let m of t)if(!pB(g,String(m),n))return!1;return!0}let a,c,u,d,f=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!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=Pz(r,g,n),a===g&&a!==r)return!1}else if(r.operator===">="&&!g.test(r.semver))return!1}if(s){if(f&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===f.major&&g.semver.minor===f.minor&&g.semver.patch===f.patch&&(f=!1),g.operator==="<"||g.operator==="<="){if(c=Uz(s,g,n),c===g&&c!==s)return!1}else if(s.operator==="<="&&!g.test(s.semver))return!1}if(!g.operator&&(s||r)&&o!==0)return!1}return!(r&&u&&!s&&o!==0||s&&d&&!r&&o!==0||h||f)},Pz=(e,t,n)=>{if(!e)return t;let i=AB(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},Uz=(e,t,n)=>{if(!e)return t;let i=AB(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};Fz.exports=Qpe});var gB=F((oTe,jz)=>{"use strict";var hB=Ql(),Mz=xl(),_pe=hn(),Lz=KS(),Npe=Mo(),Dpe=d2(),Ppe=f2(),Upe=g2(),Fpe=E2(),Ope=I2(),Mpe=w2(),Lpe=k2(),jpe=B2(),Vpe=ui(),Gpe=T2(),zpe=_2(),qpe=hy(),Jpe=U2(),Hpe=O2(),Ype=bf(),Wpe=gy(),Zpe=tB(),Kpe=nB(),Xpe=my(),efe=yy(),tfe=rB(),nfe=H2(),rfe=W2(),ife=wf(),sfe=li(),ofe=kf(),afe=dz(),cfe=fz(),ufe=hz(),lfe=yz(),dfe=vz(),pfe=Iy(),ffe=Sz(),Afe=Rz(),hfe=Tz(),gfe=_z(),mfe=Oz();jz.exports={parse:Npe,valid:Dpe,clean:Ppe,inc:Upe,diff:Fpe,major:Ope,minor:Mpe,patch:Lpe,prerelease:jpe,compare:Vpe,rcompare:Gpe,compareLoose:zpe,compareBuild:qpe,sort:Jpe,rsort:Hpe,gt:Ype,lt:Wpe,eq:Zpe,neq:Kpe,gte:Xpe,lte:efe,cmp:tfe,coerce:nfe,truncate:rfe,Comparator:ife,Range:sfe,satisfies:ofe,toComparators:afe,maxSatisfying:cfe,minSatisfying:ufe,minVersion:lfe,validRange:dfe,outside:pfe,gtr:ffe,ltr:Afe,intersects:hfe,simplifyRange:gfe,subset:mfe,SemVer:_pe,re:hB.re,src:hB.src,tokens:hB.t,SEMVER_SPEC_VERSION:Mz.SEMVER_SPEC_VERSION,RELEASE_TYPES:Mz.RELEASE_TYPES,compareIdentifiers:Lz.compareIdentifiers,rcompareIdentifiers:Lz.rcompareIdentifiers}});var Vwe={};Vr(Vwe,{post:()=>WZ});module.exports=n6(Vwe);kn();var YZ=fe(require("path"));kn();kn();var uk;(function(e){e.Pass="Pass",e.Fail="Fail",e.Error="Error",e.Skipped="Skipped",e.Unknown="Unknown"})(uk||(uk={}));var g1;(function(e){e.High="high",e.Medium="medium",e.Low="low"})(g1||(g1={}));var m1;(function(e){e.Skyramp="skyramp",e.External="external"})(m1||(m1={}));var lk;(function(e){e.Update="UPDATE",e.Regenerate="REGENERATE",e.Delete="DELETE",e.Verify="VERIFY",e.Ignore="IGNORE"})(lk||(lk={}));var y1;(function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"})(y1||(y1={}));var J={};Vr(J,{BRAND:()=>Qoe,DIRTY:()=>Ga,EMPTY_PATH:()=>coe,INVALID:()=>Se,NEVER:()=>Aae,OK:()=>Sn,ParseStatus:()=>pn,Schema:()=>qe,ZodAny:()=>wo,ZodArray:()=>$s,ZodBigInt:()=>qa,ZodBoolean:()=>Ja,ZodBranded:()=>Mp,ZodCatch:()=>ic,ZodDate:()=>Ha,ZodDefault:()=>rc,ZodDiscriminatedUnion:()=>gm,ZodEffects:()=>Xr,ZodEnum:()=>tc,ZodError:()=>ar,ZodFirstPartyTypeKind:()=>Qe,ZodFunction:()=>ym,ZodIntersection:()=>Ka,ZodIssueCode:()=>H,ZodLazy:()=>Xa,ZodLiteral:()=>ec,ZodMap:()=>il,ZodNaN:()=>ol,ZodNativeEnum:()=>nc,ZodNever:()=>Bi,ZodNull:()=>Wa,ZodNullable:()=>Wi,ZodNumber:()=>za,ZodObject:()=>cr,ZodOptional:()=>Zr,ZodParsedType:()=>ce,ZodPipeline:()=>Lp,ZodPromise:()=>Co,ZodReadonly:()=>sc,ZodRecord:()=>mm,ZodSchema:()=>qe,ZodSet:()=>sl,ZodString:()=>bo,ZodSymbol:()=>nl,ZodTransformer:()=>Xr,ZodTuple:()=>Yi,ZodType:()=>qe,ZodUndefined:()=>Ya,ZodUnion:()=>Za,ZodUnknown:()=>Ts,ZodVoid:()=>rl,addIssueToContext:()=>ie,any:()=>Ooe,array:()=>Voe,bigint:()=>Noe,boolean:()=>x1,coerce:()=>fae,custom:()=>S1,date:()=>Doe,datetimeRegex:()=>C1,defaultErrorMap:()=>xs,discriminatedUnion:()=>Joe,effect:()=>sae,enum:()=>nae,function:()=>Xoe,getErrorMap:()=>Xu,getParsedType:()=>Hi,instanceof:()=>$oe,intersection:()=>Hoe,isAborted:()=>Am,isAsync:()=>el,isDirty:()=>hm,isValid:()=>Io,late:()=>Toe,lazy:()=>eae,literal:()=>tae,makeIssue:()=>Op,map:()=>Zoe,nan:()=>_oe,nativeEnum:()=>rae,never:()=>Loe,null:()=>Foe,nullable:()=>aae,number:()=>R1,object:()=>Goe,objectUtil:()=>dk,oboolean:()=>pae,onumber:()=>dae,optional:()=>oae,ostring:()=>lae,pipeline:()=>uae,preprocess:()=>cae,promise:()=>iae,quotelessJson:()=>soe,record:()=>Woe,set:()=>Koe,setErrorMap:()=>aoe,strictObject:()=>zoe,string:()=>B1,symbol:()=>Poe,transformer:()=>sae,tuple:()=>Yoe,undefined:()=>Uoe,union:()=>qoe,unknown:()=>Moe,util:()=>Xe,void:()=>joe});var Xe;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let s={};for(let o of r)s[o]=o;return s},e.getValidEnumValues=r=>{let s=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(let a of s)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(s){return r[s]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let s=[];for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&s.push(o);return s},e.find=(r,s)=>{for(let o of r)if(s(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 i(r,s=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}e.joinValues=i,e.jsonStringifyReplacer=(r,s)=>typeof s=="bigint"?s.toString():s})(Xe||(Xe={}));var dk;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(dk||(dk={}));var ce=Xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Hi=e=>{switch(typeof e){case"undefined":return ce.undefined;case"string":return ce.string;case"number":return Number.isNaN(e)?ce.nan:ce.number;case"boolean":return ce.boolean;case"function":return ce.function;case"bigint":return ce.bigint;case"symbol":return ce.symbol;case"object":return Array.isArray(e)?ce.array:e===null?ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ce.promise:typeof Map<"u"&&e instanceof Map?ce.map:typeof Set<"u"&&e instanceof Set?ce.set:typeof Date<"u"&&e instanceof Date?ce.date:ce.object;default:return ce.unknown}};var H=Xe.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"]),soe=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ar=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};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(s){return s.message},i={_errors:[]},r=s=>{for(let o of s.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)i._errors.push(n(o));else{let a=i,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),i}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,Xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},i=[];for(let r of this.issues)if(r.path.length>0){let s=r.path[0];n[s]=n[s]||[],n[s].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};ar.create=e=>new ar(e);var ooe=(e,t)=>{let n;switch(e.code){case H.invalid_type:e.received===ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case H.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Xe.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:n=`Unrecognized key(s) in object: ${Xe.joinValues(e.keys,", ")}`;break;case H.invalid_union:n="Invalid input";break;case H.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Xe.joinValues(e.options)}`;break;case H.invalid_enum_value:n=`Invalid enum value. Expected ${Xe.joinValues(e.options)}, received '${e.received}'`;break;case H.invalid_arguments:n="Invalid function arguments";break;case H.invalid_return_type:n="Invalid function return type";break;case H.invalid_date:n="Invalid date";break;case H.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}"`:Xe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case H.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 H.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 H.custom:n="Invalid input";break;case H.invalid_intersection_types:n="Intersection results could not be merged";break;case H.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case H.not_finite:n="Number must be finite";break;default:n=t.defaultError,Xe.assertNever(e)}return{message:n}},xs=ooe;var E1=xs;function aoe(e){E1=e}function Xu(){return E1}var Op=e=>{let{data:t,path:n,errorMaps:i,issueData:r}=e,s=[...n,...r.path||[]],o={...r,path:s};if(r.message!==void 0)return{...r,path:s,message:r.message};let a="",c=i.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:t,defaultError:a}).message;return{...r,path:s,message:a}},coe=[];function ie(e,t){let n=Xu(),i=Op({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===xs?void 0:xs].filter(r=>!!r)});e.common.issues.push(i)}var pn=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 i=[];for(let r of n){if(r.status==="aborted")return Se;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){let i=[];for(let r of n){let s=await r.key,o=await r.value;i.push({key:s,value:o})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,n){let i={};for(let r of n){let{key:s,value:o}=r;if(s.status==="aborted"||o.status==="aborted")return Se;s.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(i[s.value]=o.value)}return{status:t.value,value:i}}},Se=Object.freeze({status:"aborted"}),Ga=e=>({status:"dirty",value:e}),Sn=e=>({status:"valid",value:e}),Am=e=>e.status==="aborted",hm=e=>e.status==="dirty",Io=e=>e.status==="valid",el=e=>typeof Promise<"u"&&e instanceof Promise;var ge;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ge||(ge={}));var Kr=class{constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,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}},v1=(e,t)=>{if(Io(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 ar(e.common.issues);return this._error=n,this._error}}};function Me(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))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??i??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:r}}var qe=class{get description(){return this._def.description}_getType(t){return Hi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Hi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new pn,ctx:{common:t.parent.common,data:t.data,parsedType:Hi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(el(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 i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Hi(t)},r=this._parseSync({data:t,path:i.path,parent:i});return v1(i,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Hi(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:n});return Io(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>Io(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){let i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Hi(t)},r=this._parse({data:t,path:i.path,parent:i}),s=await(el(r)?r:Promise.resolve(r));return v1(i,s)}refine(t,n){let i=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,s)=>{let o=t(r),a=()=>s.addIssue({code:H.custom,...i(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((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new Xr({schema:this,typeName:Qe.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 Zr.create(this,this._def)}nullable(){return Wi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $s.create(this)}promise(){return Co.create(this,this._def)}or(t){return Za.create([this,t],this._def)}and(t){return Ka.create(this,t,this._def)}transform(t){return new Xr({...Me(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new rc({...Me(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new Mp({typeName:Qe.ZodBranded,type:this,...Me(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new ic({...Me(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Lp.create(this,t)}readonly(){return sc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},uoe=/^c[^\s-]{8,}$/i,loe=/^[0-9a-z]+$/,doe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,poe=/^[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,foe=/^[a-z0-9_-]{21}$/i,Aoe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,hoe=/^[-+]?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)?)??$/,goe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,moe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",pk,yoe=/^(?:(?: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])$/,Eoe=/^(?:(?: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])$/,voe=/^(([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]))$/,Ioe=/^(([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])$/,boe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,woe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,b1="((\\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])))",Coe=new RegExp(`^${b1}$`);function w1(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 koe(e){return new RegExp(`^${w1(e)}$`)}function C1(e){let t=`${b1}T${w1(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 Soe(e,t){return!!((t==="v4"||!t)&&yoe.test(e)||(t==="v6"||!t)&&voe.test(e))}function Boe(e,t){if(!Aoe.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function Roe(e,t){return!!((t==="v4"||!t)&&Eoe.test(e)||(t==="v6"||!t)&&Ioe.test(e))}var bo=class e extends qe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ce.string){let s=this._getOrReturnCtx(t);return ie(s,{code:H.invalid_type,expected:ce.string,received:s.parsedType}),Se}let i=new pn,r;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")t.data.length>s.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let o=t.data.length>s.value,a=t.data.length<s.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?ie(r,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&ie(r,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")goe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"email",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")pk||(pk=new RegExp(moe,"u")),pk.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"emoji",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")poe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"uuid",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")foe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"nanoid",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")uoe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"cuid",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")loe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"cuid2",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")doe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"ulid",code:H.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),ie(r,{validation:"url",code:H.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"regex",code:H.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?C1(s).test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?Coe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?koe(s).test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?hoe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"duration",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?Soe(t.data,s.version)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"ip",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="jwt"?Boe(t.data,s.alg)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"jwt",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="cidr"?Roe(t.data,s.version)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"cidr",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?boe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64",code:H.invalid_string,message:s.message}),i.dirty()):s.kind==="base64url"?woe.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64url",code:H.invalid_string,message:s.message}),i.dirty()):Xe.assertNever(s);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:H.invalid_string,...ge.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ge.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ge.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ge.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ge.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ge.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ge.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ge.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ge.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ge.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ge.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ge.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ge.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ge.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,...ge.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,...ge.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ge.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ge.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...ge.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ge.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ge.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ge.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ge.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ge.errToObj(n)})}nonempty(t){return this.min(1,ge.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}};bo.create=e=>new bo({checks:[],typeName:Qe.ZodString,coerce:e?.coerce??!1,...Me(e)});function xoe(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,s=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return s%o/10**r}var za=class e extends qe{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)!==ce.number){let s=this._getOrReturnCtx(t);return ie(s,{code:H.invalid_type,expected:ce.number,received:s.parsedType}),Se}let i,r=new pn;for(let s of this._def.checks)s.kind==="int"?Xe.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:H.invalid_type,expected:"integer",received:"float",message:s.message}),r.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="multipleOf"?xoe(t.data,s.value)!==0&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:H.not_finite,message:s.message}),r.dirty()):Xe.assertNever(s);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ge.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ge.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ge.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ge.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ge.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ge.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ge.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"&&Xe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}};za.create=e=>new za({checks:[],typeName:Qe.ZodNumber,coerce:e?.coerce||!1,...Me(e)});var qa=class e extends qe{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)!==ce.bigint)return this._getInvalidInput(t);let i,r=new pn;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):Xe.assertNever(s);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return ie(n,{code:H.invalid_type,expected:ce.bigint,received:n.parsedType}),Se}gte(t,n){return this.setLimit("min",t,!0,ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ge.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ge.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:ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ge.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}};qa.create=e=>new qa({checks:[],typeName:Qe.ZodBigInt,coerce:e?.coerce??!1,...Me(e)});var Ja=class extends qe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ce.boolean){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.boolean,received:i.parsedType}),Se}return Sn(t.data)}};Ja.create=e=>new Ja({typeName:Qe.ZodBoolean,coerce:e?.coerce||!1,...Me(e)});var Ha=class e extends qe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ce.date){let s=this._getOrReturnCtx(t);return ie(s,{code:H.invalid_type,expected:ce.date,received:s.parsedType}),Se}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return ie(s,{code:H.invalid_date}),Se}let i=new pn,r;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Xe.assertNever(s);return{status:i.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:ge.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ge.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}};Ha.create=e=>new Ha({checks:[],coerce:e?.coerce||!1,typeName:Qe.ZodDate,...Me(e)});var nl=class extends qe{_parse(t){if(this._getType(t)!==ce.symbol){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.symbol,received:i.parsedType}),Se}return Sn(t.data)}};nl.create=e=>new nl({typeName:Qe.ZodSymbol,...Me(e)});var Ya=class extends qe{_parse(t){if(this._getType(t)!==ce.undefined){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.undefined,received:i.parsedType}),Se}return Sn(t.data)}};Ya.create=e=>new Ya({typeName:Qe.ZodUndefined,...Me(e)});var Wa=class extends qe{_parse(t){if(this._getType(t)!==ce.null){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.null,received:i.parsedType}),Se}return Sn(t.data)}};Wa.create=e=>new Wa({typeName:Qe.ZodNull,...Me(e)});var wo=class extends qe{constructor(){super(...arguments),this._any=!0}_parse(t){return Sn(t.data)}};wo.create=e=>new wo({typeName:Qe.ZodAny,...Me(e)});var Ts=class extends qe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Sn(t.data)}};Ts.create=e=>new Ts({typeName:Qe.ZodUnknown,...Me(e)});var Bi=class extends qe{_parse(t){let n=this._getOrReturnCtx(t);return ie(n,{code:H.invalid_type,expected:ce.never,received:n.parsedType}),Se}};Bi.create=e=>new Bi({typeName:Qe.ZodNever,...Me(e)});var rl=class extends qe{_parse(t){if(this._getType(t)!==ce.undefined){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.void,received:i.parsedType}),Se}return Sn(t.data)}};rl.create=e=>new rl({typeName:Qe.ZodVoid,...Me(e)});var $s=class e extends qe{_parse(t){let{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==ce.array)return ie(n,{code:H.invalid_type,expected:ce.array,received:n.parsedType}),Se;if(r.exactLength!==null){let o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(ie(n,{code:o?H.too_big:H.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}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(ie(n,{code:H.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(ie(n,{code:H.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new Kr(n,o,n.path,a)))).then(o=>pn.mergeArray(i,o));let s=[...n.data].map((o,a)=>r.type._parseSync(new Kr(n,o,n.path,a)));return pn.mergeArray(i,s)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:ge.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:ge.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:ge.toString(n)}})}nonempty(t){return this.min(1,t)}};$s.create=(e,t)=>new $s({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...Me(t)});function tl(e){if(e instanceof cr){let t={};for(let n in e.shape){let i=e.shape[n];t[n]=Zr.create(tl(i))}return new cr({...e._def,shape:()=>t})}else return e instanceof $s?new $s({...e._def,type:tl(e.element)}):e instanceof Zr?Zr.create(tl(e.unwrap())):e instanceof Wi?Wi.create(tl(e.unwrap())):e instanceof Yi?Yi.create(e.items.map(t=>tl(t))):e}var cr=class e extends qe{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=Xe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ce.object){let u=this._getOrReturnCtx(t);return ie(u,{code:H.invalid_type,expected:ce.object,received:u.parsedType}),Se}let{status:i,ctx:r}=this._processInputParams(t),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Bi&&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=s[u],f=r.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Kr(r,f,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof Bi){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&&(ie(r,{code:H.unrecognized_keys,keys:a}),i.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 f=r.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Kr(r,f,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of c){let f=await d.key,h=await d.value;u.push({key:f,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>pn.mergeObjectSync(i,u)):pn.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(t){return ge.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{let r=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:ge.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:Qe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let i of Xe.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let i of Xe.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new e({...this._def,shape:()=>n})}deepPartial(){return tl(this)}partial(t){let n={};for(let i of Xe.objectKeys(this.shape)){let r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let i of Xe.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Zr;)s=s._def.innerType;n[i]=s}return new e({...this._def,shape:()=>n})}keyof(){return k1(Xe.objectKeys(this.shape))}};cr.create=(e,t)=>new cr({shape:()=>e,unknownKeys:"strip",catchall:Bi.create(),typeName:Qe.ZodObject,...Me(t)});cr.strictCreate=(e,t)=>new cr({shape:()=>e,unknownKeys:"strict",catchall:Bi.create(),typeName:Qe.ZodObject,...Me(t)});cr.lazycreate=(e,t)=>new cr({shape:e,unknownKeys:"strip",catchall:Bi.create(),typeName:Qe.ZodObject,...Me(t)});var Za=class extends qe{_parse(t){let{ctx:n}=this._processInputParams(t),i=this._def.options;function r(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new ar(a.ctx.common.issues));return ie(n,{code:H.invalid_union,unionErrors:o}),Se}if(n.common.async)return Promise.all(i.map(async s=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let s,o=[];for(let c of i){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"&&!s&&(s={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new ar(c));return ie(n,{code:H.invalid_union,unionErrors:a}),Se}}get options(){return this._def.options}};Za.create=(e,t)=>new Za({options:e,typeName:Qe.ZodUnion,...Me(t)});var Qs=e=>e instanceof Xa?Qs(e.schema):e instanceof Xr?Qs(e.innerType()):e instanceof ec?[e.value]:e instanceof tc?e.options:e instanceof nc?Xe.objectValues(e.enum):e instanceof rc?Qs(e._def.innerType):e instanceof Ya?[void 0]:e instanceof Wa?[null]:e instanceof Zr?[void 0,...Qs(e.unwrap())]:e instanceof Wi?[null,...Qs(e.unwrap())]:e instanceof Mp||e instanceof sc?Qs(e.unwrap()):e instanceof ic?Qs(e._def.innerType):[],gm=class e extends qe{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.object)return ie(n,{code:H.invalid_type,expected:ce.object,received:n.parsedType}),Se;let i=this.discriminator,r=n.data[i],s=this.optionsMap.get(r);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(ie(n,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Se)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){let r=new Map;for(let s of n){let o=Qs(s.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,s)}}return new e({typeName:Qe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...Me(i)})}};function fk(e,t){let n=Hi(e),i=Hi(t);if(e===t)return{valid:!0,data:e};if(n===ce.object&&i===ce.object){let r=Xe.objectKeys(t),s=Xe.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(let a of s){let c=fk(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===ce.array&&i===ce.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let s=0;s<e.length;s++){let o=e[s],a=t[s],c=fk(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===ce.date&&i===ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Ka=class extends qe{_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=(s,o)=>{if(Am(s)||Am(o))return Se;let a=fk(s.value,o.value);return a.valid?((hm(s)||hm(o))&&n.dirty(),{status:n.value,value:a.data}):(ie(i,{code:H.invalid_intersection_types}),Se)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,o])=>r(s,o)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Ka.create=(e,t,n)=>new Ka({left:e,right:t,typeName:Qe.ZodIntersection,...Me(n)});var Yi=class e extends qe{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ce.array)return ie(i,{code:H.invalid_type,expected:ce.array,received:i.parsedType}),Se;if(i.data.length<this._def.items.length)return ie(i,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Se;!this._def.rest&&i.data.length>this._def.items.length&&(ie(i,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let s=[...i.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new Kr(i,o,i.path,a)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>pn.mergeArray(n,o)):pn.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Yi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Yi({items:e,typeName:Qe.ZodTuple,rest:null,...Me(t)})};var mm=class e extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ce.object)return ie(i,{code:H.invalid_type,expected:ce.object,received:i.parsedType}),Se;let r=[],s=this._def.keyType,o=this._def.valueType;for(let a in i.data)r.push({key:s._parse(new Kr(i,a,i.path,a)),value:o._parse(new Kr(i,i.data[a],i.path,a)),alwaysSet:a in i.data});return i.common.async?pn.mergeObjectAsync(n,r):pn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof qe?new e({keyType:t,valueType:n,typeName:Qe.ZodRecord,...Me(i)}):new e({keyType:bo.create(),valueType:t,typeName:Qe.ZodRecord,...Me(n)})}},il=class extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ce.map)return ie(i,{code:H.invalid_type,expected:ce.map,received:i.parsedType}),Se;let r=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([a,c],u)=>({key:r._parse(new Kr(i,a,i.path,[u,"key"])),value:s._parse(new Kr(i,c,i.path,[u,"value"]))}));if(i.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 Se;(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 Se;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}};il.create=(e,t,n)=>new il({valueType:t,keyType:e,typeName:Qe.ZodMap,...Me(n)});var sl=class e extends qe{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ce.set)return ie(i,{code:H.invalid_type,expected:ce.set,received:i.parsedType}),Se;let r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(ie(i,{code:H.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(ie(i,{code:H.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let d of c){if(d.status==="aborted")return Se;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}let a=[...i.data.values()].map((c,u)=>s._parse(new Kr(i,c,i.path,u)));return i.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:ge.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:ge.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};sl.create=(e,t)=>new sl({valueType:e,minSize:null,maxSize:null,typeName:Qe.ZodSet,...Me(t)});var ym=class e extends qe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.function)return ie(n,{code:H.invalid_type,expected:ce.function,received:n.parsedType}),Se;function i(a,c){return Op({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xu(),xs].filter(u=>!!u),issueData:{code:H.invalid_arguments,argumentsError:c}})}function r(a,c){return Op({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xu(),xs].filter(u=>!!u),issueData:{code:H.invalid_return_type,returnTypeError:c}})}let s={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Co){let a=this;return Sn(async function(...c){let u=new ar([]),d=await a._def.args.parseAsync(c,s).catch(g=>{throw u.addIssue(i(c,g)),u}),f=await Reflect.apply(o,this,d);return await a._def.returns._def.type.parseAsync(f,s).catch(g=>{throw u.addIssue(r(f,g)),u})})}else{let a=this;return Sn(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new ar([i(c,u.error)]);let d=Reflect.apply(o,this,u.data),f=a._def.returns.safeParse(d,s);if(!f.success)throw new ar([r(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Yi.create(t).rest(Ts.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,i){return new e({args:t||Yi.create([]).rest(Ts.create()),returns:n||Ts.create(),typeName:Qe.ZodFunction,...Me(i)})}},Xa=class extends qe{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})}};Xa.create=(e,t)=>new Xa({getter:e,typeName:Qe.ZodLazy,...Me(t)});var ec=class extends qe{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:H.invalid_literal,expected:this._def.value}),Se}return{status:"valid",value:t.data}}get value(){return this._def.value}};ec.create=(e,t)=>new ec({value:e,typeName:Qe.ZodLiteral,...Me(t)});function k1(e,t){return new tc({values:e,typeName:Qe.ZodEnum,...Me(t)})}var tc=class e extends qe{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{expected:Xe.joinValues(i),received:n.parsedType,code:H.invalid_type}),Se}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{received:n.data,code:H.invalid_enum_value,options:i}),Se}return Sn(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(i=>!t.includes(i)),{...this._def,...n})}};tc.create=k1;var nc=class extends qe{_parse(t){let n=Xe.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==ce.string&&i.parsedType!==ce.number){let r=Xe.objectValues(n);return ie(i,{expected:Xe.joinValues(r),received:i.parsedType,code:H.invalid_type}),Se}if(this._cache||(this._cache=new Set(Xe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=Xe.objectValues(n);return ie(i,{received:i.data,code:H.invalid_enum_value,options:r}),Se}return Sn(t.data)}get enum(){return this._def.values}};nc.create=(e,t)=>new nc({values:e,typeName:Qe.ZodNativeEnum,...Me(t)});var Co=class extends qe{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.promise&&n.common.async===!1)return ie(n,{code:H.invalid_type,expected:ce.promise,received:n.parsedType}),Se;let i=n.parsedType===ce.promise?n.data:Promise.resolve(n.data);return Sn(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Co.create=(e,t)=>new Co({type:e,typeName:Qe.ZodPromise,...Me(t)});var Xr=class extends qe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,s={addIssue:o=>{ie(i,o),o.fatal?n.abort():n.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),r.type==="preprocess"){let o=r.transform(i.data,s);if(i.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return Se;let c=await this._def.schema._parseAsync({data:a,path:i.path,parent:i});return c.status==="aborted"?Se:c.status==="dirty"?Ga(c.value):n.value==="dirty"?Ga(c.value):c});{if(n.value==="aborted")return Se;let a=this._def.schema._parseSync({data:o,path:i.path,parent:i});return a.status==="aborted"?Se:a.status==="dirty"?Ga(a.value):n.value==="dirty"?Ga(a.value):a}}if(r.type==="refinement"){let o=a=>{let c=r.refinement(a,s);if(i.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(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Se:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>a.status==="aborted"?Se:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Io(o))return Se;let a=r.transform(o.value,s);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:i.data,path:i.path,parent:i}).then(o=>Io(o)?Promise.resolve(r.transform(o.value,s)).then(a=>({status:n.value,value:a})):Se);Xe.assertNever(r)}};Xr.create=(e,t,n)=>new Xr({schema:e,typeName:Qe.ZodEffects,effect:t,...Me(n)});Xr.createWithPreprocess=(e,t,n)=>new Xr({schema:t,effect:{type:"preprocess",transform:e},typeName:Qe.ZodEffects,...Me(n)});var Zr=class extends qe{_parse(t){return this._getType(t)===ce.undefined?Sn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Zr.create=(e,t)=>new Zr({innerType:e,typeName:Qe.ZodOptional,...Me(t)});var Wi=class extends qe{_parse(t){return this._getType(t)===ce.null?Sn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Wi.create=(e,t)=>new Wi({innerType:e,typeName:Qe.ZodNullable,...Me(t)});var rc=class extends qe{_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return n.parsedType===ce.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};rc.create=(e,t)=>new rc({innerType:e,typeName:Qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Me(t)});var ic=class extends qe{_parse(t){let{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return el(r)?r.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ar(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ar(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};ic.create=(e,t)=>new ic({innerType:e,typeName:Qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Me(t)});var ol=class extends qe{_parse(t){if(this._getType(t)!==ce.nan){let i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:ce.nan,received:i.parsedType}),Se}return{status:"valid",value:t.data}}};ol.create=e=>new ol({typeName:Qe.ZodNaN,...Me(e)});var Qoe=Symbol("zod_brand"),Mp=class extends qe{_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},Lp=class e extends qe{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?Se:s.status==="dirty"?(n.dirty(),Ga(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{let r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?Se:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new e({in:t,out:n,typeName:Qe.ZodPipeline})}},sc=class extends qe{_parse(t){let n=this._def.innerType._parse(t),i=r=>(Io(r)&&(r.value=Object.freeze(r.value)),r);return el(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}};sc.create=(e,t)=>new sc({innerType:e,typeName:Qe.ZodReadonly,...Me(t)});function I1(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function S1(e,t={},n){return e?wo.create().superRefine((i,r)=>{let s=e(i);if(s instanceof Promise)return s.then(o=>{if(!o){let a=I1(t,i),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}});if(!s){let o=I1(t,i),a=o.fatal??n??!0;r.addIssue({code:"custom",...o,fatal:a})}}):wo.create()}var Toe={object:cr.lazycreate},Qe;(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"})(Qe||(Qe={}));var $oe=(e,t={message:`Input not instance of ${e.name}`})=>S1(n=>n instanceof e,t),B1=bo.create,R1=za.create,_oe=ol.create,Noe=qa.create,x1=Ja.create,Doe=Ha.create,Poe=nl.create,Uoe=Ya.create,Foe=Wa.create,Ooe=wo.create,Moe=Ts.create,Loe=Bi.create,joe=rl.create,Voe=$s.create,Goe=cr.create,zoe=cr.strictCreate,qoe=Za.create,Joe=gm.create,Hoe=Ka.create,Yoe=Yi.create,Woe=mm.create,Zoe=il.create,Koe=sl.create,Xoe=ym.create,eae=Xa.create,tae=ec.create,nae=tc.create,rae=nc.create,iae=Co.create,sae=Xr.create,oae=Zr.create,aae=Wi.create,cae=Xr.createWithPreprocess,uae=Lp.create,lae=()=>B1().optional(),dae=()=>R1().optional(),pae=()=>x1().optional(),fae={string:(e=>bo.create({...e,coerce:!0})),number:(e=>za.create({...e,coerce:!0})),boolean:(e=>Ja.create({...e,coerce:!0})),bigint:(e=>qa.create({...e,coerce:!0})),date:(e=>Ha.create({...e,coerce:!0}))};var Aae=Se;var al=["playwright","pytest","robot","junit","vitest","jest","mocha","go","rspec","jasmine"];var Q1="skyramp_session_storage.json";var Ak;(function(e){e.PYTHON="python",e.TYPESCRIPT="typescript",e.JAVASCRIPT="javascript",e.JAVA="java"})(Ak||(Ak={}));var Zi;(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"})(Zi||(Zi={}));var nBe=[Zi.CONTRACT,Zi.INTEGRATION,Zi.E2E,Zi.UI];var T1;(function(e){e.Rest="rest",e.Grpc="grpc",e.Kafka="kafka"})(T1||(T1={}));var Em;(function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e.OPTIONS="OPTIONS"})(Em||(Em={}));var jp;(function(e){e.LOCAL="local",e.DOCKER="docker",e.KUBERNETES="k8s"})(jp||(jp={}));var hae=J.nativeEnum(jp),hk=J.preprocess(e=>e==="kubernetes"?jp.KUBERNETES:e,hae);var gae=J.object({language:J.nativeEnum(Ak).describe("Programming language for the generated test (default: python). Must be one of: python, typescript, javascript, java"),framework:J.string().describe(`Testing framework to use. Supported: ${al.join(", ")} (e.g. pytest for python, playwright/vitest/jest for js/ts, junit for java).`)}),$1=J.object({...gae.shape,deployDashboard:J.boolean().default(!1).describe("Whether to deploy the Skyramp dashboard for test monitoring"),runtime:hk.default(jp.LOCAL).describe("Runtime environment (local, docker, or k8s; accepts kubernetes as an alias)"),dockerNetwork:J.string().default("").describe("Docker network name to use for containerized testing"),dockerWorkerPort:J.number().int().min(0).max(65535).default(0).describe("Port number for the Docker worker service"),k8sNamespace:J.string().default("").describe("Kubernetes namespace for deployment"),k8sConfig:J.string().default("").describe("Path to Kubernetes configuration file"),k8sContext:J.string().default("").describe("Kubernetes context to use"),authHeader:J.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:J.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:J.boolean().default(!1).describe("Whether to allow insecure SSL connections for HTTPS endpoints"),output:J.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:J.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:J.boolean().default(!0).describe("Whether to overwrite existing files in the output directory"),mockPort:J.number().int().min(0).max(65535).default(0).describe("Port number for the mock server"),optionalFields:J.boolean().default(!1).describe("Whether to include optional fields in the generated test/mock"),prompt:J.string().describe("The prompt user provided to generate the test")}),rBe=J.object({playwrightInput:J.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:J.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:J.string().optional().describe(`Path to SAVE Playwright session storage after trace collection. Omit this argument to use the default \u2014 \`${Q1}\` resolved against the active outputDir, which produces an absolute path like '/abs/outputDir/${Q1}'. 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:J.union([J.enum(["","hd","full-hd","2k"]),J.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:J.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:J.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.")}),iBe=J.object({trace:J.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:J.array(J.string()).default([]).describe("List of endpoints or patterns to include in test generation."),exclude:J.array(J.string()).default([]).describe("List of endpoints or patterns to exclude from test generation."),...$1.shape}),sBe={endpointURL:J.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:J.union([J.nativeEnum(Em),J.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:J.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:J.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:J.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:J.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for form data parameters"),requestData:J.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:J.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"),...$1.shape},oBe=J.object({codeReuse:J.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:J.boolean().default(!1).describe("Whether to modularize the code")}),aBe=[Zi.INTEGRATION,Zi.CONTRACT,Zi.UI];var vm;(function(e){e.Bug="bug",e.Lint="lint",e.Type="type",e.Config="config"})(vm||(vm={}));var Im;(function(e){e.NotMapped="not-mapped",e.DemotedByVerify="demoted-by-verify"})(Im||(Im={}));var bm;(function(e){e.Passed="passed",e.Failed="failed",e.SkippedNoPom="skipped-no-pom"})(bm||(bm={}));var gk;(function(e){e.Passed="passed",e.Failed="failed",e.NoUtilsFile="no-utils-file"})(gk||(gk={}));kn();var wm=e=>`${e} POM call${e===1?"":"s"}`,Cm={testRecommendationsImplementedHeader:e=>`\u{1F4A1} Test Recommendations Implemented (${e})`,testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:e=>`${wm(e)} reused and verified`,reusedThenVerified:(e,t)=>`${wm(e)} reused, ${t} of them verified`,reused:e=>`${wm(e)} reused`,verified:e=>`${wm(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",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.",testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",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}`,ciUnconfirmed:e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,ciResultsUnread:e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,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.`,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.`,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. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",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. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard. For probes and tests outside the guarded browser, cleanup is required by instruction only. Testbot did not verify their cleanup.",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.`},nextSteps:{componentMismatch:(e,t,n,i)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${i}, the commit this run validates.`,componentUnverified:(e,t,n,i)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${i}, 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.`},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}`,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,i)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${i} 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})`,largeReportSummary:(e,t,n,i,r)=>`${e} requirements, ${t} clauses. Test results: ${n} Pass, ${i} Fail, ${r} Skipped.`,largeReportValidation:(e,t,n)=>`Evidence: ${e}. ${t} (${n} gaps; see the full report.)`,largeReportNotice:"This report is too large for a pull request description. The full report includes every requirement and its evidence; review it on the run page before deciding whether the change is validated.",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}`,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}.`,testsNotProposed:e=>`The tests were not proposed in a pull request: ${e}.`}};var _1={testRecommendationsImplementedHeader:e=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08${e}\u4EF6\uFF09`,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",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",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",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}`,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`,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`,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`,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`,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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\u30AC\u30FC\u30C9\u306E\u5BFE\u8C61\u5916\u306E\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u6307\u793A\u306B\u3088\u308B\u8981\u4EF6\u3067\u3042\u308A\u3001Testbot \u306F\u305D\u306E\u5B8C\u4E86\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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\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\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u691C\u8A3C\u3057\u3066\u3044\u307E\u305B\u3093\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`},nextSteps:{componentMismatch:(e,t,n,i)=>`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 ${i} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,componentUnverified:(e,t,n,i)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${i} \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`},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`,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,i)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${i}\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})`,largeReportSummary:(e,t,n,i,r)=>`\u8981\u4EF6 ${e} \u4EF6\u3001\u6761\u9805 ${t} \u4EF6\u3002\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${n} \u4EF6\u3001\u4E0D\u5408\u683C ${i} \u4EF6\u3001\u30B9\u30AD\u30C3\u30D7 ${r} \u4EF6\u3002`,largeReportValidation:(e,t,n)=>`\u8A3C\u62E0: ${e}\u3002${t}\uFF08\u4E0D\u8DB3 ${n} \u4EF6\u3002\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\uFF09`,largeReportNotice:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u8AAC\u660E\u306B\u53CE\u307E\u308A\u307E\u305B\u3093\u3002\u3059\u3079\u3066\u306E\u8981\u4EF6\u3068\u8A3C\u62E0\u3092\u542B\u3080\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8\u3092\u5B9F\u884C\u30DA\u30FC\u30B8\u3067\u78BA\u8A8D\u3057\u3066\u304B\u3089\u3001\u5909\u66F4\u304C\u691C\u8A3C\u3055\u308C\u305F\u304B\u5224\u65AD\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}`,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`,testsNotProposed:e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`}};var Vp=(n=>(n.En="en",n.Ja="ja",n))(Vp||{}),mae={en:Cm,ja:_1},yae="en";function mk(e){let t=e.trim().toLowerCase();if(t==="")return"en";let n=Object.values(Vp);return n.includes(t)?t:(ht(`Invalid language '${e}'. Supported: ${n.join(", ")}. Falling back to 'en'.`),"en")}function oc(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}function le(){return mae[yae]}var km=(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))(km||{});(t=>{function e(n,i){switch(n){case"provider_outage":return{headline:le().providerOutageHeadline(i.provider.name,i.maxRetries),action:le().providerOutageActionStatusPage(i.provider.statusUrl)};case"provider_rate_limit":return{headline:le().providerRateLimitHeadline(i.provider.name),action:le().providerRateLimitAction};case"provider_usage_limit":return{headline:le().providerUsageLimitHeadline(i.provider.name),action:le().providerUsageLimitAction};case"provider_auth_expired":return{headline:le().providerAuthExpiredHeadline(i.provider.name),action:le().providerAuthExpiredAction};case"timeout":return{headline:le().providerTimeoutHeadline(i.timeoutMinutes),action:le().providerTimeoutAction};case"no_report":case"render_failure":return}}t.buildNotice=e})(km||={});var yk=(n=>(n.SameBranch="same-branch",n.SeparateBranch="separate-branch",n))(yk||{});var N1=(n=>(n.Sonnet="sonnet",n.Opus="opus",n))(N1||{}),Eae="opus";function Ek(e){return Object.values(N1).includes(e)}function D1(e){let t=(e??"").trim();if(t==="")return Eae;let n=t.toLowerCase();return Ek(n)?n:t}var Sm=(s=>(s.Low="low",s.Medium="medium",s.High="high",s.XHigh="xhigh",s.Max="max",s))(Sm||{}),Bm="high";function P1(e){return Object.values(Sm).includes(e)}var U1=5;function vae(e){let t=e.split(/\r?\n/).map(n=>n.trim()).filter(Boolean);if(t.length>U1)throw new Error(`relatedRepoPaths supports at most ${U1} entries (got ${t.length}); the cap limits how much cross-repo context is loaded to avoid overflowing Testbot's context window.`);return t}function Iae(e){let t=e.trim().toLowerCase();return t===""?"separate-branch":Object.values(yk).includes(t)?t:(ht(`Invalid generatedTestsMode '${e}'. Falling back to 'separate-branch'.`),"separate-branch")}function bae(e){let t=(e??"").trim();if(t!==""){if(/^(?:[1-9]|10)$/.test(t))return Number(t);ht(`Ignoring perTestMaxFixAttempts="${e}": expected a whole number from 1 to 10; the Skyramp MCP default applies`)}}function wae(e){let t=(e??"").trim().toLowerCase();return t===""?Bm:P1(t)?t:(ht(`Ignoring effort="${e}": expected one of ${Object.values(Sm).join(", ")}; using "${Bm}"`),Bm)}function F1(){let e=D1(Pe("model"));return Ek(e)||ht(`model '${e}' is not a tested alias (sonnet, opus); passing it to the agent verbatim as a raw model id.`),{skyrampLicenseFile:Pe("skyrampLicenseFile"),cursorApiKey:Pe("cursorApiKey"),copilotApiKey:Pe("copilotApiKey"),anthropicApiKey:Pe("anthropicApiKey"),useBedrock:vo("useBedrock"),awsRegion:Pe("awsRegion"),useLocalAuth:Pe("useLocalAuth").toLowerCase()==="true",model:e,effort:wae(Pe("effort")),targetSetupCommand:Pe("targetSetupCommand"),authTokenCommand:Pe("authTokenCommand"),uiCredentials:Pe("uiCredentials"),targetTeardownCommand:Pe("targetTeardownCommand"),skipTargetTeardown:vo("skipTargetTeardown"),skyrampExecutorVersion:Pe("skyrampExecutorVersion"),skyrampMcpVersion:Pe("skyrampMcpVersion"),skyrampMcpSource:Pe("skyrampMcpSource"),skyrampMcpGithubToken:Pe("skyrampMcpGithubToken"),skyrampMcpGithubRef:Pe("skyrampMcpGithubRef"),nodeVersion:Pe("nodeVersion"),skipTargetSetup:vo("skipTargetSetup"),targetReadyCheckCommand:Pe("targetReadyCheckCommand"),targetReadyCheckTimeout:(()=>{let n=parseInt(Pe("targetReadyCheckTimeout"),10)||1800;return n<1?(ht(`targetReadyCheckTimeout must be at least 1 second, got ${n}. Using 1s.`),1):n})(),targetReadyCheckInterval:(()=>{let n=parseInt(Pe("targetReadyCheckInterval"),10),i=isNaN(n)?30:n;return i<1?(ht(`targetReadyCheckInterval must be at least 1 second, got ${i}. Using 1s.`),1):i})(),targetReadyCheckDiagnosticsCommand:(()=>{let n=Pe("targetReadyCheckDiagnosticsCommand");return n.trim().toLowerCase()==="none"?"":n})(),workingDirectory:Pe("workingDirectory"),autoCommit:vo("autoCommit"),commitMessage:Pe("commitMessage"),generatedTestsMode:Iae(Pe("generatedTestsMode")),postPrComment:vo("postPrComment"),testExecutionTimeout:parseInt(Pe("testExecutionTimeout"),10)||300,maxRecommendations:(()=>{let n=parseInt(Pe("maxRecommendations"),10);return isNaN(n)?void 0:Math.max(0,n)})(),maxGenerate:(()=>{let n=parseInt(Pe("maxGenerate"),10);return isNaN(n)?void 0:Math.max(0,n)})(),perTestMaxFixAttempts:bae(Pe("perTestMaxFixAttempts")),testbotMaxRetries:parseInt(Pe("testbotMaxRetries"),10)||3,testbotRetryDelay:parseInt(Pe("testbotRetryDelay"),10)||10,testbotTimeout:parseInt(Pe("testbotTimeout"),10)||60,targetSetupRetries:parseInt(Pe("targetSetupRetries"),10)||3,targetSetupRetryDelay:parseInt(Pe("targetSetupRetryDelay"),10)||10,authTokenRetries:(()=>{let n=parseInt(Pe("authTokenRetries"),10);return Number.isFinite(n)&&n>=1?n:6})(),authTokenRetryDelay:(()=>{let n=parseInt(Pe("authTokenRetryDelay"),10);return Number.isFinite(n)&&n>=0?n:10})(),reportCollapsed:vo("reportCollapsed"),language:mk(Pe("language")),enableDebug:vo("enableDebug"),testRepoPath:Pe("testRepoPath")||void 0,relatedRepoPaths:vae(Pe("relatedRepoPaths")),allowedAuthors:Pe("allowedAuthors").split(/\r?\n/).map(n=>n.trim()).filter(Boolean)}}var Cae={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 O1(e=process.env){for(let[t,n]of Object.entries(Cae)){let i=`INPUT_${t.replace(/ /g,"_").toUpperCase()}`;(e[i]??"").trim()===""&&(e[i]=n)}}kn();var BV=fe(require("path"));var cl=require("fs"),_s=fe(require("path"),1),$j=require("child_process"),_j=require("util");function kae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bn={},Rm={},ko={},M1;function Gp(){if(M1)return ko;M1=1;function e(o){return typeof o>"u"||o===null}function t(o){return typeof o=="object"&&o!==null}function n(o){return Array.isArray(o)?o:e(o)?[]:[o]}function i(o,a){if(a){let c=Object.keys(a);for(let u=0,d=c.length;u<d;u+=1){let f=c[u];o[f]=a[f]}}return o}function r(o,a){let c="";for(let u=0;u<a;u+=1)c+=o;return c}function s(o){return o===0&&Number.NEGATIVE_INFINITY===1/o}return ko.isNothing=e,ko.isObject=t,ko.toArray=n,ko.repeat=r,ko.isNegativeZero=s,ko.extend=i,ko}var vk,L1;function zp(){if(L1)return vk;L1=1;function e(n,i){let r="",s=n.reason||"(unknown reason)";return n.mark?(n.mark.name&&(r+='in "'+n.mark.name+'" '),r+="("+(n.mark.line+1)+":"+(n.mark.column+1)+")",!i&&n.mark.snippet&&(r+=`
|
|
52
52
|
|
|
53
53
|
`+n.mark.snippet),s+" "+r):s}function t(n,i){Error.call(this),this.name="YAMLException",this.reason=n,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(i){return this.name+": "+e(this,i)},vk=t,vk}var Ik,j1;function Sae(){if(j1)return Ik;j1=1;let e=Gp();function t(r,s,o,a,c){let u="",d="",f=Math.floor(c/2)-1;return a-s>f&&(u=" ... ",s=a-f+u.length),o-a>f&&(d=" ...",o=a+f-d.length),{str:u+r.slice(s,o).replace(/\t/g,"\u2192")+d,pos:a-s+u.length}}function n(r,s){return e.repeat(" ",s-r.length)+r}function i(r,s){if(s=Object.create(s||null),!r.buffer)return null;s.maxLength||(s.maxLength=79),typeof s.indent!="number"&&(s.indent=1),typeof s.linesBefore!="number"&&(s.linesBefore=3),typeof s.linesAfter!="number"&&(s.linesAfter=2);let o=/\r?\n|\r|\0/g,a=[0],c=[],u,d=-1;for(;u=o.exec(r.buffer);)c.push(u.index),a.push(u.index+u[0].length),r.position<=u.index&&d<0&&(d=a.length-2);d<0&&(d=a.length-1);let f="",h=Math.min(r.line+s.linesAfter,c.length).toString().length,g=s.maxLength-(s.indent+h+3);for(let E=1;E<=s.linesBefore&&!(d-E<0);E++){let R=t(r.buffer,a[d-E],c[d-E],r.position-(a[d]-a[d-E]),g);f=e.repeat(" ",s.indent)+n((r.line-E+1).toString(),h)+" | "+R.str+`
|
|
54
54
|
`+f}let m=t(r.buffer,a[d],c[d],r.position,g);f+=e.repeat(" ",s.indent)+n((r.line+1).toString(),h)+" | "+m.str+`
|
|
@@ -193,7 +193,7 @@ health check cancelled`,c(1)},f=setTimeout(u,Math.max(1,t.deadlineMs-Date.now())
|
|
|
193
193
|
%{http_code}`,...sEe(r),i],{deadlineMs:Math.min(e,Date.now()+25e3),signal:t});if(o.exitCode!==0)return{error:(o.stderr||"curl failed").trim()};let a=o.stdout??"",c=a.lastIndexOf(`
|
|
194
194
|
`),u=Number(a.slice(c+1).trim());return{status:Number.isFinite(u)?u:0,body:a.slice(0,c)}},async runCommand(i,r){let{steps:s,reason:o}=xf(i);if(!s)return{exitCode:1,output:`${vW}${o}`};let a="";for(let c of s){if(Date.now()>=e)return{exitCode:1,output:"health check time limit reached"};let u=await yW(c,{cwd:r,deadlineMs:Math.min(e,Date.now()+6e4),env:Rt(),signal:t});if(a+=`${u.stdout??""}${u.stderr??""}`,u.exitCode!==0)return{exitCode:u.exitCode,output:a}}return{exitCode:0,output:a}}}}function sEe(e){return e?Object.entries(e).flatMap(([t,n])=>["-H",`${t}: ${n}`]):[]}function IW(e){return e.trim().replace(/^\.\//,"").replace(/\/+$/,"")}function oEe(e){if(!e.inputs)return[];let t=rs(e),n=r=>{let s=typeof r=="string"?r:r?.path??r?.file;return typeof s=="string"&&s.trim()?IW(s):void 0},i=(r,s)=>r?(s??[]).flatMap(o=>{let a=n(o);return a?[{repository:r,path:a}]:[]}):[];return[...i(Oo(e.inputs).slug,[...t?.changedFiles??[],...t?.newFiles??[]]),...(t?.relatedChanges??[]).flatMap(r=>i(r.repository,r.changedFiles))]}function aEe(e,t){let n=ta.resolve(e.inputs.repositoryPath,t.trim()),i=HS(e.inputs,n),r=i&&ta.relative(i.path,n);return i&&r?{repository:i.slug,path:r.split(ta.sep).join("/")}:void 0}function Mv(e=o0(),t={}){let n=t.budgetMs??Xye,i=t.intervalMs??eEe;return{name:"deploy-health",async verify(r,s){if(r.signal?.aborted)return{name:this.name,passed:!1,details:"health check cancelled"};let{deploy:o,errors:a}=Yc(s,r.inputs?.repositoryPath,r.secretValues);if(!o)return{name:this.name,passed:!1,details:a.slice(0,6).join("; ")};if(o.outcome==="bringup-failed")return{name:this.name,passed:!0};if(o.outcome==="change-broke-bringup"){let k=oEe(r),D=(o.suspectFiles??[]).map(IW),P=D.filter(q=>{let ne=aEe(r,q);return!!ne&&sy(k,ne.repository,ne.path)});return k.length>0&&P.length===0?{name:this.name,passed:!1,details:`change-broke-bringup claimed, but none of suspectFiles [${D.slice(0,4).join(", ")}] is a file this PR changed \u2014 that is not attributable to the PR. Re-run bring-up; if it still fails for a reason outside the diff, record outcome "bringup-failed" (with bringupError) instead.`}:{name:this.name,passed:!0}}let c=o.health;if(!c)return{name:this.name,passed:!1,details:"health is missing although the app is recorded as up"};let u=Object.values(c.headers??{}).some(k=>/<[^>]+>/.test(String(k))),d=(k,D=!1)=>({ok:!1,details:k,transient:D}),f=async()=>{if(!Xz(c.url,r.inputs.repositoryPath))return d(`health url ${c.url} is not the app under test \u2014 this gate probes only loopback or a host declared in .skyramp/workspace.yml, never an arbitrary destination. Record the URL the deployed app actually answers on.`);let k=await e.httpGet(c.url,c.headers);if("error"in k)return d(`health url ${c.url} unreachable: ${k.error}`,!0);let D=Number(c.status??200);if(k.status!==D)return d(`health url returned ${k.status}, expected ${D}`,!0);if(!k.body.trim())return d("health url returned empty body \u2014 must return data",!0);let P=(c.output??"").trim();if(P){let q=gW(P,k.body);if(!q.ok)return d(`health url ${c.url} no longer answers as recorded \u2014 ${q.why}. Either the app is not answering as it did at deploy time, or health.output is not verbatim: record ONLY the response body, with no commentary appended.`)}return{ok:!0}},h=async()=>{let k=await e.runCommand(c.command,r.inputs.repositoryPath),D=k.output.startsWith(vW);if(k.exitCode!==0)return d(`health command exited ${k.exitCode}: ${k.output.slice(0,200)}`,!D);if(!k.output.trim())return d("health command produced no output",!0);let P=(c.output??"").trim();if(P.length<16)return d(`health command output "${P}" is too thin to be a data check \u2014 the check must return real application data, not a status token`);let q=gW(P,k.output);return q.ok?{ok:!0}:d(`health command did not reproduce its recorded check \u2014 ${q.why}. Either the app is not answering as it did at deploy time, or health.output is not verbatim: record ONLY what the command wrote, with no commentary appended.`)},g;if(c.command&&(u||!c.url))g=h;else{if(c.url&&u)return{name:this.name,passed:!1,details:`health.headers contains a documented placeholder (${Object.entries(c.headers??{}).filter(([,k])=>/<[^>]+>/.test(String(k))).map(([k])=>k).join(", ")}), and this gate RE-EXECUTES the probe \u2014 a placeholder cannot authenticate. Record a health.command instead (a script that fetches its own token and hits the URL); do not put a real credential in the artifact.`};c.url?g=f:c.command&&(g=h)}if(!g)return{name:this.name,passed:!1,details:"health has neither url nor command"};let m=Date.now(),E=m+n,R=await g();for(;!R.ok&&R.transient&&!r.signal?.aborted&&Date.now()+i<E&&(await new Promise((k,D)=>{let P,q=ye=>{clearTimeout(P),r.signal?.removeEventListener("abort",ne),ye?D(ye):k()},ne=()=>q();if(r.signal?.addEventListener("abort",ne,{once:!0}),r.signal?.aborted){q();return}t.sleep?t.sleep(i).then(()=>q(),q):P=setTimeout(()=>q(),i)}),!r.signal?.aborted);)R=await g();if(r.signal?.aborted)return{name:this.name,passed:!1,details:"health check cancelled"};if(R.ok)return{name:this.name,passed:!0};let C=Math.round((Date.now()-m)/1e3);return{name:this.name,passed:!1,details:R.transient&&C>0?`${R.details} (still failing after ${C}s)`:R.details}}}}function a0(e){return c0(e)&&_A(e).length===0&&s0(e.inputs?.sharedEnvironment).length===0}function c0(e){let t=cEe(e);if(!t&&e.state.stages.deploy?.status!=="passed")return!1;let n=rt(e,"deploy.json");return n?bW(n):!t}function bW(e){return e?.outcome==="clean"||e?.outcome==="recipe-drift"}function cEe(e){let t=e.state.stages.plan,n=e.state.stages.deploy;return!(e.inputs?.pipeline?e.inputs.pipeline==="two-step":!n)||t?.status!=="passed"?!1:!n||n.updatedAt<=t.updatedAt}async function uEe(e,t,n){let i=new URL(t.url).origin;return(URL.canParse(e.url)?new URL(e.url).origin:e.url)===i?Uv(e.url,n):{error:`${e.url} is not on ${i}, where ${t.name} runs`}}async function lEe(e,t,n){let i=Fv(e.inputs??{}),r=[];for(let s of t){let o=i.find(d=>d.name===s.component);if(!o){r.push(`revisions names "${s.component}", which is not a shared component listed for a revision check`);continue}let a=await uEe(s,o,n);if("error"in a){r.push(`the revision check of ${o.name} could not be re-run: ${Ti(a.error,e.secretValues??[]).slice(0,200)}`);continue}let c=Pv(o.expectedRevision,{body:s.output}),u=Pv(o.expectedRevision,a);c.observedRevision!==u.observedRevision&&r.push(`the revision check of ${o.name} names ${u.observedRevision??"no commit"} when re-run, but its recorded output names ${c.observedRevision??"no commit"} \u2014 record what the check returned, verbatim, or leave the component out`)}return r}function wW(e){return{name:"shared-revisions",async verify(t,n){let{deploy:i}=Yc(n,t.inputs?.repositoryPath,t.secretValues),r=await lEe(t,i?.revisions??[],e);return r.length?{name:this.name,passed:!1,details:r.join("; ")}:{name:this.name,passed:!0}}}}async function CW(e,t,n){let i=e.inputs?.sharedEnvironment;if(!r0(i))return{};let{deploy:r}=Yc(t,e.inputs.repositoryPath,e.secretValues),s=await uW(i,r?.revisions??[],n,e.secretValues??[]);return Tn(e,yd,Ti(s,e.secretValues??[]),[])}function kW(e,t){let{deploy:n,errors:i}=Yc(t,e.inputs?.repositoryPath,e.secretValues),r=n?.health?.headers?{...n,health:{...n.health,headers:Object.fromEntries(Object.keys(n.health.headers).map(o=>[o,"<redacted>"]))}}:n,s=Ti(r,e.secretValues??[]);return Tn(e,"deploy",s,i)}var MDe=10*6e4;var jv=(r=>(r.RestApi="rest-api",r.Frontend="frontend",r.FullStack="full-stack",r.Other="other",r))(jv||{}),Wc=(r=>(r.Critical="critical",r.High="high",r.Medium="medium",r.Low="low",r))(Wc||{}),Zc=(i=>(i.Suspected="suspected",i.Latent="latent",i.Refuted="refuted",i))(Zc||{}),d0=(i=>(i.Skyramp="skyramp",i.External="external",i.Unknown="unknown",i))(d0||{}),p0=(r=>(r.Cascade="cascade",r.Restrict="restrict",r.Orphan="orphan",r.Unknown="unknown",r))(p0||{}),ls=(r=>(r.RequirementReference="requirement-reference",r.Spec="spec",r.PrDescription="pr-description",r.CouldBreak="could-break",r))(ls||{}),mt=p.string().trim().min(1),Ed=mt.describe("file:line"),SW=e=>mt.refine(t=>t.length<=400,t=>({message:`is ${t.length} characters, over the 400 cap \u2014 ${e}`})),NA=mt.optional().describe('multi-repo only: the OTHER checkout this lives in \u2014 its "owner/repo" slug, or the directory name if the run discovered it; omit for the working checkout'),l0=p.object({method:mt,path:mt,service:p.string().optional(),evidence:Ed,repository:NA}),hEe=p.object({id:mt.describe("short-slug, e.g. R9"),statement:mt.max(400,"exceeds 400 characters \u2014 state the requirement, do not paste the spec section").describe("a testable obligation, not a summary"),source:p.nativeEnum(ls).describe("spec outranks pr-description when both state it"),evidence:mt.describe("spec: file:line or a section locator. pr-description: the quoted phrase it comes from.")}),gEe=p.object({id:mt.describe("short-slug"),statement:mt.max(400,"exceeds 400 characters \u2014 state the behaviour, do not paste the code").describe("what the change makes true"),surface:mt.describe("METHOD /path, or a component/page name"),evidence:mt.describe("file:line from the diff that introduces it"),repository:NA,satisfies:p.array(mt).optional().describe("requirement ids (from `requirements`) this behaviour correctly implements \u2014 a requirement met only in part is ALSO named by the finding that shows the rest (conflictsWith)")}),mEe=p.object({id:mt.describe("short-slug"),file:mt,line:p.number().optional(),claim:SW("shorten it to the one sentence that states the defect, and move the supporting detail into `evidence`"),severity:p.nativeEnum(Wc),evidence:SW("cite the file:line and the one line that shows it, rather than reproducing the surrounding code").describe("quoted diff/code line"),status:p.nativeEnum(Zc),repository:NA,conflictsWith:p.array(mt).optional().describe("requirement ids (from `requirements`) this defect contradicts or leaves unimplemented \u2014 a lower-precedence source (the diff, or the PR description) lost")}),yEe=p.object({name:mt,language:p.string().optional(),framework:p.string().optional(),evidence:Ed,repository:NA}),EEe=p.object({dir:mt,framework:p.string().optional(),kind:p.nativeEnum(d0),evidence:Ed,repository:NA}),vEe=p.object({from:mt,to:mt,onDelete:p.nativeEnum(p0),evidence:Ed}),IEe=p.object({entity:mt,field:mt,values:p.array(p.string()),evidence:Ed}),bEe=p.object({entities:p.array(p.object({name:mt,evidence:Ed})),references:p.array(vEe).describe("INBOUND references \u2014 what still points at an entity when it is deleted"),stateFields:p.array(IEe)}),f0=p.object({schemaVersion:p.literal(1),repository:p.object({path:mt.describe("absolute repo path"),currentBranch:mt,baseBranch:mt}),project:p.object({type:p.nativeEnum(jv),primaryLanguage:mt,languages:p.array(p.string()),frameworks:p.array(p.string())}),services:p.array(yEe),infrastructure:p.object({containerized:p.boolean(),hasDockerCompose:p.boolean(),composeFiles:p.array(p.string()),hasCiCd:p.boolean()}),diff:p.object({changedFiles:p.array(p.string()).describe("as git reports them; a file in another checkout may carry that repo's name"),nonApplicationOnly:p.boolean(),summary:mt.describe("\u2264400 chars")}),endpoints:p.object({new:p.array(l0),modified:p.array(l0),removed:p.array(l0)}),existingTests:p.object({locations:p.array(EEe)}),entityMap:bEe,requirements:p.array(hEe).describe("from a spec (attached or linked) and/or the PR description; empty when neither states a testable obligation"),behaviors:p.array(gEe),findings:p.array(mEe),unexamined:p.array(p.string()).describe("files or areas outside this change you did not open"),summary:mt.describe("one paragraph on what this change does and its test-relevant risk")});var SEe=p.object({route:p.string().describe('the page this step happens on, e.g. "/products/:id"'),action:p.string().describe('what the user does there, through the UI, e.g. "clicks Add to cart"'),clauses:p.array(p.string()).optional().describe("the plan clause ids this step exercises"),check:p.string().optional().describe("what the user then sees that shows the step worked; the test asserts it")}),DA=(n=>(n.InProcess="in-process",n.Browser="browser",n))(DA||{}),BW=(i=>(i.Spec="spec",i.PrDescription="pr-description",i.Inferred="inferred",i))(BW||{}),RW=p.object({id:p.string().describe('e.g. "J1"'),name:p.string().describe(`the flow in a user's words, e.g. "buy a product with a coupon"`),entry:p.string().describe("the route the user starts the flow on: the app's normal starting page for it, never a deep link into its middle"),steps:p.array(SEe).describe("every step, in order, from the entry page to the outcome: at least two"),outcome:p.string().describe("what the user sees at the end that shows the flow worked: every part of it"),finishes:p.string().optional().describe('the user action that completes the task, verb first, e.g. "places the order"; the journey walks on to it'),kind:p.nativeEnum(DA).optional().describe("in-process when the repo's in-process tests (components, app routes) can walk the whole flow and check it; else browser"),source:p.nativeEnum(BW).optional().describe("spec or pr-description when one describes this flow (quote it under evidence), else inferred"),evidence:p.string().optional().describe("for spec or pr-description: its words that describe the flow"),testFile:p.string().describe("the browser test file it goes in, beside the repo's existing e2e tests")}),Vv=p.object({journey:p.string().describe("the plan's journey id"),file:p.string().describe("the browser test file that walks it"),brokeAt:p.object({step:p.number().int().describe("the 1-based step whose check failed first"),expected:p.string(),actual:p.string().describe("what the app did instead, from the runner's output"),notReached:p.array(p.number().int()).optional().describe("later steps the test could not get to")}).optional().describe("only when the journey's test failed on a check: where"),test:p.string().describe("the title of the one test in that file that walks it end to end")});var KDe=Object.fromEntries([...["ts","tsx","mts","cts","js","jsx","mjs","cjs"].map(e=>[e,"node"]),...["java","kt","kts","groovy","scala"].map(e=>[e,"jvm"]),["py","python"],["go","go"]]);var XDe=["stale_test","open_question"],ePe=["low","medium","high","critical"];var PA=(n=>(n.Skyramp="skyramp",n.Llm="llm",n))(PA||{}),Ys=p.string().trim().min(1),BEe=p.object({case:Ys.describe("recommend id this assertion enforces"),evidence:Ys.describe("the exact assertion line from the file that checks that case's observable")}),A0=p.object({kind:p.nativeEnum(zm).describe("seed: data the test creates in the app; runtime_mock: a mock on a Skyramp worker, which other tests reach too; env_override: an env value the app runs with. A stub inside the test's own process, such as a browser page's route, is none of these"),target:Ys.describe("the dependency, endpoint or data it affects"),mechanism:p.nativeEnum(qm).describe("test_code: the test applies and undoes it; skyramp_mocker: a mock the test applies on a Skyramp worker; recipe_override: the mocker cannot reach the dependency (its URL is fixed in the build)"),detail:Ys.describe("what it sets up"),worker:Ys.optional().describe("skyramp_mocker: host:port of the worker the test applies the mock to (default localhost:35142)"),cleanup:Ys.optional().describe("seed: a command that removes the data when the test does not, run as written and without a shell: give real values, not a placeholder such as <id>, single-quote an argument that holds shell syntax, or put the logic in a script in the repository and run that")}),REe=p.object({file:Ys.describe("staged path under .skyramp/staged/"),source:p.nativeEnum(PA),language:Ys,covers:p.array(p.string()).min(1,"must be a non-empty array of recommend ids").describe("recommend ids this test covers"),assertions:p.array(BEe).min(1,"must be a non-empty array").describe("one per case covered, citing the real line"),context:p.array(A0).optional().describe("what the test sets up against the running app, in order: data it seeds, Skyramp mocks it applies, env overrides; omit when none")}),h0=p.object({schemaVersion:p.literal(1),tests:p.array(REe),deferredUi:p.array(p.string()).describe("recommend ui ids left for the UI stage (generate) \u2014 [] for generate-ui"),summary:Ys.describe("one paragraph")});var Ws=p.string().trim().min(1),Zs=72,xEe=p.object({repository:Ws.optional().describe("owner/repo of the checkout this lint ran in, when the run has several; omit for the working checkout"),tool:p.string(),command:p.string().describe("the exact command you ran, scoped to the changed files"),clean:p.boolean(),fixed:p.array(p.string()).optional().describe("files you fixed"),uncovered:p.array(p.string()).describe("changed/new files this linter's own config does not match (wrong extension, wrong directory) \u2014 so `clean` never examined them, even though CI may still execute them. Empty array, not omitted, when every changed/new file IS covered.")}),g0=p.object({schemaVersion:p.literal(1),lint:p.array(xEe).min(1).describe("one entry per checkout this run wrote tests in, each run from that checkout"),fileConventions:p.object({ok:p.boolean(),notes:p.string().optional()}),ciReadiness:p.object({covered:p.boolean().describe("will the repo's CI run these tests?"),notes:p.string().optional()}),dependencies:p.object({added:p.array(p.object({package:p.string(),manifest:p.string(),repository:Ws.optional().describe("owner/repo of the manifest's checkout; omit for the working checkout"),reason:Ws.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).describe("every package added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own")}),support:p.array(p.object({file:Ws,repository:Ws.optional().describe("owner/repo of the file's checkout; omit for the working checkout")})).optional().describe("the files the tests need besides themselves (helper modules, page objects, fixtures, snapshots), delivered with them"),commit:p.object({message:Ws.refine(e=>e.split(`
|
|
195
195
|
`)[0].length<=Zs,{message:`subject line must be <= ${Zs} chars`})}),pr:p.object({title:Ws.max(Zs,`must be <= ${Zs} chars`),body:Ws}),ready:p.boolean().describe("a statement of fact: true only if the tests are fit to commit as they stand"),blockers:p.array(p.string()).describe("what blocks the commit \u2014 required non-empty when ready is false"),summary:Ws.describe("one paragraph")});function UA(e){return(e?.blockers??[]).slice(0,3).join("; ")}var ra=fe(require("fs")),bd=fe(require("path")),$W=require("child_process");var Pn="{junit}",Gv=(r=>(r.Junit="junit",r.Trx="trx",r.GoTestJson="go-test-json",r.JestJson="jest-json",r))(Gv||{}),m0=(t=>(t.Minitest="minitest",t))(m0||{}),xW=p.string().trim().min(1),vd=p.object({cwd:xW.describe('repo-relative directory the command starts in ("." for the root)'),argv:p.array(xW).min(1).describe(`the command as separate arguments, run without a shell; for a junit or trx report an argument or env value holds ${Pn}, where the report is written (not for Maven or Gradle, whose build writes its own)`),env:p.record(p.string(),p.string()).optional().describe("plain test or reporter settings beyond the repository's CI test job (RAILS_ENV=test, PLAYWRIGHT_JUNIT_OUTPUT_FILE={junit}); never a credential, PATH, or a tool's install path"),report:p.object({format:p.nativeEnum(Gv).describe(`junit (JUnit XML to ${Pn}), trx (to ${Pn}), jest-json (Jest's --json or Vitest's --reporter=json, --outputFile=${Pn}), or go-test-json (go test -json on the command's output)`),reporter:p.nativeEnum(m0).optional().describe("a reporter Testbot loads for a runner that writes no report: minitest")}).optional().describe("the report the command writes; junit when omitted")});var Id="a framework other than pytest, jest, vitest and node --test (go test, rails test, mvn, dotnet test), or one the repository's test script runs through another command (ng test, nx test)",dPe=`pytest, Jest, Vitest and node --test tests run as the run already knows them, unless the repository's test script runs them through another command (ng test, nx test), which may be the only one that compiles them. A test in any other framework, or one run that way, also gives "run": the repository's own command for only those tests, from the directory the repository runs it in, as separate arguments without a shell. Its "report" says what the runner writes: junit (JUnit XML to ${Pn} in the reporter's argument or env setting), trx (a TRX file to ${Pn}, which every dotnet test writes with its built-in logger), jest-json (Jest's --json --outputFile=${Pn}, or Vitest's --reporter=json --outputFile=${Pn}: built in, no reporter package), or go-test-json (go test -json, read from the command's output). A Maven or Gradle command names no ${Pn}: its build writes JUnit XML to its own report directory, which the run reads. Use a reporter the repository already has, or one of those; a reporter or converter the command fetches is the version the repository pins, or else its latest release (an older one may not build with the repository's toolchain). For minitest, which writes none, give report.reporter "minitest" and the run fills ${Pn} itself. A setting the tests or reporter read goes in "env" (RAILS_ENV=test, or PLAYWRIGHT_JUNIT_OUTPUT_FILE=${Pn} with playwright test --reporter=junit): the run sets it, so never wrap the command in a shell to set one. The run replaces ${Pn} in argv and env with its report path, executes the command, and reads that report.`;var na=(r=>(r.ExistingEvidenceSufficient="existing_evidence_sufficient",r.TargetedUnit="targeted_unit",r.RuntimeRequired="runtime_required",r.BlockedPreflight="blocked_preflight",r))(na||{}),Ks=(s=>(s.ExistingEvidence="existing_evidence",s.Unaffected="unaffected",s.ExistingUnit="existing_unit",s.NewUnit="new_unit",s.Runtime="runtime",s))(Ks||{}),y0=(n=>(n.Repository="repository",n.Testbot="testbot",n))(y0||{}),E0=(i=>(i.Identified="identified",i.Passed="passed",i.Failed="failed",i))(E0||{}),Er=p.string().trim().min(1),QEe=p.string().regex(/^[a-z0-9][a-z0-9-]*$/,"must be a short lowercase slug").describe("short-slug");var TEe=p.object({id:QEe,source:p.nativeEnum(y0),kind:p.nativeEnum(No),outcome:p.nativeEnum(E0),summary:Er.max(400).describe("one line: what it shows"),tests:p.array(Er).optional().describe("source repository: the existing tests, as repo-relative paths, optionally path::test-name"),repository:Er.optional().describe("source repository: owner/repo the tests live in, when the run has several checkouts; omit for the working checkout"),command:Er.optional().describe("source testbot: the exact command you ran, as you ran it"),run:vd.optional().describe(`source repository, for tests in ${Id}: how the run executes the whole of each of these test files, all of them in one command, never narrowed to the named tests and never only listed, with the repository's own runner writing JUnit XML to {junit}. A test is credited to a file only by its name or by a report that names the file`)}),$Ee=p.object({behaviorId:Er.describe("an id from analyze's behaviors"),mechanism:p.nativeEnum(Ks),evidenceIds:p.array(Er).default([]).describe("existing_evidence: the ci-<n> or evidence ids that establish it; existing_unit: the evidence id naming the tests to run"),covers:p.string().trim().optional().describe('new_unit / runtime: the missing evidence this obtains, e.g. "the boundary the change moved"; unaffected: why the change cannot reach it, citing path:line')}),v0=(i=>(i.Browser="browser",i.RunningApp="running-app",i.Outside="outside",i))(v0||{}),_Ee=p.object({behaviorId:p.string().trim().optional().describe("an id from analyze's behaviors, when it is about one"),missing:Er.max(600).describe("the evidence that is required and cannot be obtained in this run"),needs:p.nativeEnum(v0).optional().describe("what that evidence needs: browser (only a real browser shows it), running-app (only the running app or its server shows it: its real requests, sign-in and permissions, what it saves), or outside (something the running app here could not give either: a third-party service it calls, hardware)")}),NEe=p.object({file:Er.describe("the changed file the failure is in"),repository:Er.optional().describe("owner/repo the file is in, when the run has several checkouts; omit for the working checkout"),reason:Er.max(300).describe("what prerequisite the change fails"),evidence:Er.max(400).describe("the error line, quoted")}),DEe=p.object({behaviorId:Er.describe("an id from analyze's behaviors"),reason:Er.max(600).describe("\u2264600 characters: why this change leaves the behavior's result as it was, citing the unchanged line that decides it (path:line)")}),FA=p.object({schemaVersion:p.literal(1),decision:p.nativeEnum(na),evidence:p.array(TEe).describe("evidence this session found or produced; CI results are the ci-<n> items and are not restated here"),plan:p.array($Ee).describe("how each changed behavior's evidence is obtained"),gaps:p.array(_Ee),outOfScope:p.array(DEe).optional().describe("behaviors analyze found that this change neither changes nor states"),blocked:NEe.optional().describe("only for blocked_preflight"),rationale:Er.max(1200).describe("\u22641200 characters: why this evidence is enough, or what it still lacks \u2014 the scope you chose and why")});function OA(e){let t=rt(e,"recommend.json");if(!t||!Array.isArray(t.generate)||!Array.isArray(t.maintenance))return;let n=t;return{...n,maintenance:n.maintenance.map(({repository:i,...r})=>({...r,test:r.test.trim().replace(/^\.\//,""),...i?.trim()?{repository:i.trim()}:{}}))}}function OEe(e){return Nn(h0,e).errors}function MEe(e,t=[]){let{value:n,error:i}=Mt(e,t);if(i)return{errors:[i]};let r=OEe(n);return r.length>0?{errors:r}:{generate:n,errors:[]}}function zv(e,t=[]){return MEe(e.stdout,t)}function LEe(e){return e.generate.filter(t=>t.type!=="ui").map(t=>t.id)}function _W(e){return e.generate.filter(t=>t.type==="ui").map(t=>t.id)}var qv={backend:{stage:"generate",cases:LEe,noRecommendCoverage:"recommend.json missing or malformed \u2014 cannot check coverage",noRecommendIntent:"recommend.json missing or malformed \u2014 cannot check intent",uncovered:e=>`recommend case "${e}" is not covered by any generated test`,unknownCovered:e=>`test covers unknown recommend id "${e}"`,unasserted:e=>`case "${e}" has no verified assertion enforcing its expected_observable`,usedCodegen:KY,codegenHint:"These tests were hand-written. Skyramp codegen (skyramp_contract_test_generation / skyramp_integration_test_generation) was available but not used \u2014 it computes valid sample data and response correlations. Prefer scaffolding with it and then refining, especially for the failures above."},ui:{stage:"generate-ui",cases:_W,noRecommendCoverage:"recommend.json not found \u2014 cannot check UI coverage",noRecommendIntent:"recommend.json not found \u2014 cannot check UI intent",uncovered:e=>`UI case "${e}" is not covered by any generated UI test`,unknownCovered:e=>`test covers "${e}" which is not a recommend UI case`,unasserted:e=>`UI case "${e}" has no verified assertion enforcing its expected_observable`,usedCodegen:XY,codegenHint:"This UI test was hand-authored. Skyramp UI codegen (skyramp_ui_test_generation) was available but not used. Prefer scaffolding with it and then refining, especially for the failures above."}},GPe=pr("generate-schema",(e,t)=>zv(t,e.secretValues));function jEe(e){let t=qv[e];return{name:`${t.stage}-coverage`,verify(n,i){let{generate:r,errors:s}=zv(i,n.secretValues);if(!r)return sn(this.name,s);let o=OA(n);if(!o)return sn(this.name,[t.noRecommendCoverage]);let a=new Set(r.tests.flatMap(f=>f.covers)),c=[],u=t.cases(o);for(let f of u)a.has(f)||c.push(t.uncovered(f));let d=new Set(e==="ui"?u:o.generate.map(f=>f.id));for(let f of a)d.has(f)||c.push(t.unknownCovered(f));if(e==="backend"){let f=new Set(r.deferredUi),h=new Set(_W(o));for(let g of h)!f.has(g)&&!a.has(g)&&c.push(`UI case "${g}" is neither covered nor deferred to the UI stage`);for(let g of f)h.has(g)||c.push(`deferredUi lists "${g}" which is not a UI case`)}return c.length===0?{name:this.name,passed:!0}:sn(this.name,c)}}}function VEe(e){let t=qv[e];return{name:`${t.stage}-intent`,verify(n,i){let{generate:r,errors:s}=zv(i,n.secretValues);if(!r)return sn(this.name,s);let o=OA(n);if(!o)return sn(this.name,[t.noRecommendIntent]);let{asserted:a,errors:c,badFiles:u}=WEe(r,n.inputs.repositoryPath),d=c.length;for(let h of t.cases(o))a.has(h)||c.push(t.unasserted(h));if(c.length===0)return{name:this.name,passed:!0};let f=sn(this.name,c);return d>0&&d===c.length&&u.size>0?{...f,droppable:[...u]}:f}}}function GEe(e){let t=qv[e];return n=>{if(!n.inputs.skyrampMcp?.command||e==="backend"&&!a0(n))return;let i=bd.join(n.outputsDir,`${t.stage}-stream.ndjson`);if(!(!ra.existsSync(i)||t.usedCodegen(i)))return eW(i)?t.codegenHint:"Skyramp codegen tools were configured but the MCP server did not connect this session, so they were not available. Hand-authoring was the only option; this is an environment problem, not yours."}}var zPe=jEe("backend"),qPe=VEe("backend"),JPe=GEe("backend");var QW=e=>e.replace(/\s+/g,"");var I0={python:[/\bassert\s*[({\w"'`]/g,/\bpytest\.raises\s*\(/g,/\bself\.assert\w*\s*\(/g],typescript:[/\bexpect\s*\(/g,/\.should\b/g,/\bassert\s*[.(]/g],go:[/\bt\.(Error|Errorf|Fatal|Fatalf|Fail|FailNow)\s*\(/g,/\b(assert|require)\.\w+\s*\(/g],java:[/\bassert\w*\s*\(/g,/\bassertThat\s*\(/g],ruby:[/\bexpect\s*[({]/g,/\bassert\w*\b/g,/\.should\b/g]};for(let[e,t]of[["javascript","typescript"],["kotlin","java"]])I0[e]=I0[t];function zEe(e,t){if(e.includes(gf(t))||QW(e).includes(QW(t)))return!0;let n=t.split(/\r?\n/).map(i=>i.trim()).filter(i=>i&&!/^(\/\/|#|\*|\/\*)/.test(i));return n.length>0&&n.every(i=>e.includes(gf(i)))?!0:YEe(e,t)}var qEe=/\bassert\w*\b|\bexpect\s*\(|\.should\b|\brequire\s*\(/i,JEe=12,HEe=/,\s*\(\s*#|,\s*f?["'`]|\s+#\s|\s+\/\/|\s*\((?:line|lines|at line)\b|\s*,\s*$/i;function YEe(e,t){let n=t.split(/\s*;\s*|\s*\.\.\.\s*|\r?\n/),i=0;for(let r of n){let s=qEe.exec(r);if(!s)continue;let o=r.slice(s.index),a=HEe.exec(o);if(a&&(o=o.slice(0,a.index)),o=gf(o).replace(/[,\s]+$/,""),o.length<JEe||!e.includes(o))return!1;i++}return i>0}function WEe(e,t){let n=new Set,i=[],r=new Set;for(let s of e.tests){let o=bd.resolve(t,s.file);if(!ra.existsSync(o))continue;let a=gf(ra.readFileSync(o,"utf-8"));for(let c of s.assertions??[]){if(!zEe(a,c.evidence)){i.push(`assertion evidence for "${c.case}" not found in ${s.file} \u2014 cite the real assertion line`),r.add(s.file);continue}s.covers.includes(c.case)?n.add(c.case):(i.push(`assertion cites case "${c.case}" not in that test's covers[]`),r.add(s.file))}}return{asserted:n,errors:i,badFiles:r}}var ZEe=/\.(spec|test)\.[cm]?[jt]sx?$/i;function NW(e){let t;try{t=(0,$W.execFileSync)("git",[...Ki,"status","--porcelain","--untracked-files=all"],{env:Rt(),cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]})}catch{return}let n=r=>/_scaffold/i.test(r)||mf.test(r),i=[];for(let r of t.split(`
|
|
196
|
-
`)){if(!r.trim()||r.length>1&&r[1]==="D")continue;let s=r.slice(3).trim(),o=s.indexOf(" -> ");if(o!==-1&&(s=s.slice(o+4).trim()),s=s.replace(/^"|"$/g,""),!s)continue;let a=s.replace(/^\.\//,"");a.startsWith(".skyramp/")||!n(a)||i.push(a)}return i}function KEe(e){let t=qv[e],n=e==="ui";return{name:`${t.stage}-no-litter`,verify(i){let r=NW(i.inputs.repositoryPath);if(r===void 0)return{name:this.name,passed:!0};let s=r.filter(o=>ZEe.test(o)===n);return s.length===0?{name:this.name,passed:!0}:sn(this.name,[`${t.stage} left files outside .skyramp/ \u2014 move the staged test into .skyramp/staged/ and delete any codegen draft (e.g. *_scaffold.*): ${s.slice(0,6).join(", ")}`])}}}var HPe=KEe("backend");var nve="write-stale-updates",rve={[nve]:"stale test updates"};var MA=fe(require("fs")),Kc=fe(require("path"));function FW(e){return Nn(_S,e).errors}function ove(e,t=[]){let{value:n,error:i}=Mt(e,t);if(i)return{errors:[i]};let r=FW(n);return r.length>0?{errors:r}:{adapt:n,errors:[]}}var ave="adapt-scratch",PW=`${ave}/adapt-result.json`;function OW(e,t){let n=Kc.join(e.outputsDir,PW),i;try{i=MA.readFileSync(n,"utf-8")}catch{i=void 0}if(i!==void 0&&(e.secretValues??[]).some(o=>i.includes(o)))return{errors:[`${PW} contains a secret value (token / credential) \u2014 never write it anywhere`]};let r=ove(t.stdout,e.secretValues);if(r.adapt)return r;let s=i!==void 0?Uo(n):void 0;return s!==void 0&&FW(s).length===0?{adapt:s,errors:[]}:r}var IUe=pr("adapt-schema",OW);var MW=require("child_process");function b0(e){return cve(e)??[]}function cve(e){let t;try{t=(0,MW.execFileSync)("git",[...Ki,"status","--porcelain","-z","--untracked-files=all"],{env:Rt(),cwd:e,encoding:"utf-8",maxBuffer:16*1024*1024})}catch{return}let n=t.split("\0"),i=[];for(let r=0;r<n.length;r++){let s=n[r];if(s.length<4)continue;let o=s.slice(0,2);i.push({code:o,path:s.slice(3)}),(o[0]==="R"||o[0]==="C")&&r++}return i}var QUe=2*1024*1024;var Jv=p.string().trim().min(1),uve=p.object({cwd:Jv.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:p.array(Jv).min(1).describe("the command as separate arguments, run without a shell"),env:p.record(p.string(),p.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),lve=p.object({file:Jv.describe("a file of the test's checkout, relative to its root"),line:Jv.describe("a line of that file, quoted exactly from where its command starts to its end")}),LW=p.object({collected:p.boolean().describe("whether the repo's CI runs this test as it is"),steps:p.array(lve).optional().describe("when collected: the line in a CI file that starts the tests, then each line it runs on the way to the test runner"),runner:p.string().optional().describe("when collected: the test runner the last of those lines starts, by the name that line and the list command both use"),list:uve.optional().describe("when collected: a command that lists the tests that runner collects without running them; Testbot runs it, and its output must name this file"),why:p.string().optional().describe("when not collected: why the repo's CI will not run it")});var Ee=p.string().trim().min(1),gve=e=>{if(!e||typeof e!="object")return e;let t=e;return typeof t.skip=="string"&&t.skip.trim()&&(t.expected===void 0||t.expected===null)?{...t,expected:"(not tested)"}:e},mve=p.preprocess(gve,p.object({id:Ee.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:Ee.describe("one testable part of the requirement"),expected:Ee.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:p.string().optional().describe("only when no test can check this clause here: why"),type:p.nativeEnum(Hs).optional().describe("the test that checks this clause: contract / integration (the API, or code called directly in-process: a function, hook or module) or ui (a page)"),target:p.string().optional().describe('its "METHOD /path", or the page / flow'),steps:p.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:p.string().optional().describe("the finding id, when this clause's test also catches that defect (the defect still gets a case of its own)"),code:p.string().optional().describe("path:line of the code that decides this clause, when there is one; in another repo of the change, that repo's directory name then its path"),stated:p.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:p.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes"),browserOnly:p.boolean().optional().describe("true when its behaviour happens only in a browser: real clicks or keys driving page script, client-side sorting or filtering, script-driven DOM updates, focus, drag-and-drop, navigation, rendering that depends on CSS or JavaScript"),browserHarness:p.string().optional().describe("browserOnly, off the runtime path: the path of the repo's in-process browser suite its test goes in (e.g. a Django StaticLiveServerTestCase test that drives Selenium)"),quote:p.string().optional().describe("the words of the spec, plan, ticket or PR description that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:p.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),VW=p.object({spec:p.string().optional().describe("file:line of a spec in the repository"),prDescription:p.boolean().optional().describe("or true when a pull request description says otherwise"),reference:p.string().optional().describe("or the key of an item the run was given, as listed"),says:Ee.describe("what it says there, in its own words, copied exactly"),criterion:p.number().int().positive().optional().describe("an item's only: leave it out; Testbot numbers it")}).refine(e=>[!!e.prDescription,!!e.spec?.trim(),!!e.reference?.trim()].filter(Boolean).length===1,{message:`names no source, or more than one: give "spec" its file:line or "reference" an item's key, or set "prDescription", one of them; list each source as its own entry`}),yve=p.object({id:Ee.describe('the label its source gives it ("AC-3", "REQ-12"; item 4 of a numbered list is "R4"), else "R1", "R2"\u2026 in order'),statement:Ee,source:p.nativeEnum(ls).describe("requirement-reference (an item the run was given), spec, pr-description (also for what the change is evidently meant to do when nothing is written down), or could-break (what the change could break that no requirement mentions)"),reference:p.string().optional().describe('requirement-reference only: the key of its item as listed, e.g. "PAY-184", or a Confluence page id such as "3021"'),evidence:Ee.describe("where it is stated: for requirement-reference, the item's own words, copied exactly; else file:line, a doc section, or the quoted phrase"),criterion:p.number().int().positive().optional().describe("requirement-reference only: leave it out; Testbot numbers each criterion by the item's own label (AC2, 2.), else after the item's labels"),alsoFrom:p.array(p.object({reference:Ee.regex($o).describe("the key of another uploaded document stating the same obligation"),says:Ee.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:p.number().int().positive().optional().describe("leave out; Testbot grounds and numbers this source separately")})).optional().describe("equivalent uploaded source criteria sharing this requirement's planned cases; retain every source with its own quote. Different conditions or boundaries need distinct requirements"),notInChange:p.string().optional().describe("requirement-reference only: when the change does not touch this criterion at all (e.g. a later step of a staged rollout), why; give it no clauses"),unchanged:p.boolean().optional().describe("true when it asks only that behaviour stay as it was (an update or refactor that must not change how something works), whatever its source"),overrules:p.array(VW).optional().describe("requirement-reference only: each lower-ranked source that says otherwise, a spec in the repository, a PR description or another item; this requirement wins, so test what it says"),clauses:p.array(mve)}),GW=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(GW||{}),Eve=p.object({id:Ee.describe('e.g. "F1"'),file:Ee,line:p.number().optional(),claim:Ee.describe("the defect, in one sentence"),severity:p.nativeEnum(Wc),evidence:Ee.describe("the code line, or the probe request and response, that shows it"),conflictsWith:p.array(Ee).optional().describe("requirement or clause ids it violates"),keeps:p.string().optional().describe("for a defect no requirement or clause states: path:line of the code beside the change that keeps the rule it breaks"),rule:p.nativeEnum(GW).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:p.string().optional().describe("only when the base already does this, in code the change left as it was: where the base does it (its file:line); such a defect gets no case"),needsApp:p.enum(["browser","live-api"]).optional().describe("only when the running app alone can show this defect and the repo has no in-process test that can: browser (page script, what the user sees after a click or a save) or live-api (code the repo tests only against the running app's API)")}),vve=p.object({id:Ee.describe('e.g. "Q1"'),question:Ee.describe("what is unsettled, as a question the PR author can answer"),readings:p.array(Ee).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:p.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:p.array(VW).optional().describe("when sources of the same rank disagree on it: each of them")}),Ive=p.object({id:Ee.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:p.nativeEnum(Hs).describe("contract / integration: checks the API, or calls code directly in-process (a function, hook or module); ui: checks what a user sees or does on a page"),target:Ee.describe('"METHOD /path", or the page / flow'),clause:p.string().optional().describe("the clause id this case checks"),finding:p.string().optional().describe("the finding id this case catches"),steps:Ee.describe("what the test does"),expected:Ee.describe("the expected outcome, from the clause"),mutates:p.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes")}),bve=p.object({test:Ee.describe("existing test file"),action:p.nativeEnum(us),reason:Ee,mutates:p.boolean().optional().describe("true when the maintained test changes state"),clauses:p.array(Ee).optional().describe("the clause ids this test checks")}),jW=p.array(Mm).optional(),wve=p.object({components:p.preprocess(e=>jW.safeParse(e).success?e:void 0,jW).describe("when saving a new or changed recipe: every app and backing service actually brought up, its source repository, and whether it is healthy"),outcome:p.nativeEnum(si).describe("clean | recipe-drift (you had to fix the recipe) | change-broke-bringup (this PR broke start-up) | bringup-failed (the environment, not the PR)"),baseUrls:p.record(p.string()).optional().describe("service \u2192 base URL of the running app"),health:p.object({url:p.string().optional(),command:p.string().optional(),output:p.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:p.string().optional().describe("command that stops the app"),dependencies:p.record(p.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:p.array(p.string()).optional().describe("what you changed in the recipe"),error:p.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:p.array(p.string()).optional().describe("change-broke-bringup: the changed files to blame"),login:p.object({username:Ee,password:p.string()}).optional().describe("the account the tests sign in as, when they sign in: each a literal value the recipe seeds, or $VARIABLE when a secret in the environment holds it"),revisions:bS.optional()}),lFe=p.object({schemaVersion:p.literal(1),requirements:p.array(yve),findings:p.array(Eve),cases:p.array(Ive).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:p.array(vve).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:p.array(bve),journeys:p.array(RW).optional().describe("the user journeys that, together, pass through everything the change alters that a user sees or does; empty when it alters nothing a user sees"),notInJourney:p.array(p.object({clause:Ee,why:Ee})).optional().describe("a clause a user sees or does that no journey walks, and why: none can reach it through the UI, or it is downstream of this change and not walked here"),unplannedComponents:p.array(p.object({components:p.array(Ee).min(1).describe("changed components, as the change lists them"),why:Ee})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:FA.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:wve.optional().describe("omit when no app was needed or none was started"),summary:Ee.describe("one paragraph: what the change does and where the risk is")});var LA=(n=>(n.Backend="backend",n.Ui="ui",n))(LA||{});var ia=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(ia||{}),Cve=p.object({file:Ee.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:p.nativeEnum(LA),change:p.nativeEnum(ia).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:p.array(p.string()).describe("the plan case ids this file tests, each with its own result under result.cases"),defect:p.boolean().optional().describe("true when a case of it fails because the app is wrong and the test is right \u2014 kept failing on purpose"),staleBecause:p.object({requirement:Ee.describe("the requirement or clause id the change deliberately alters"),line:Ee.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated or deleted: why it is out of date"),result:p.object({exit:p.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:p.array(p.object({case:Ee,status:p.nativeEnum(ai),runtimeTargets:uf.optional().describe("HTTP(S) URLs this case actually exercised in its current run, from its request or browser evidence; omit for local in-process/mocked checks, never list the shared app merely because it is configured"),defect:p.boolean().optional().describe("for a failing case: true when the app is wrong and the test is right; false when the test is at fault and you could not fix it"),failure:p.string().optional().describe("for a failing case: the runner's failure for it as printed (the error and the line it was raised at), not a summary"),cause:p.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:p.string().optional().describe("for a case you keep as a defect: the words of the PR description, a requirement or clause of the plan, or the code a finding's keeps names, that state what its failing check expects, quoted exactly")})).describe("one entry per covered case, from the runner's own output"),details:p.string().optional().describe("what failed and why, or why it was not run")}),assertions:p.array(p.object({case:Ee,evidence:Ee})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:p.array(p.object({name:Ee.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:p.array(Ee).describe("the plan case ids it checks")})).optional().describe("for a file you added or updated: each test function in it and the plan case ids it checks"),skyramp:p.object({draft:p.union([p.string(),p.array(p.string())]).optional().describe("the draft path the Skyramp helper returned for this test, or each path when the test was made from several drafts"),handWritten:p.string().optional().describe("why it is written by hand: the helper call you made and what it returned")}).optional().describe("only for a test of a case the Skyramp API block lists: where it came from"),context:p.array(A0).optional().describe("what the test sets up outside its own process that another test could run into: data it creates in the app, a Skyramp mock, an env override; omit when none"),isolatedRun:Ee.optional().describe("for a test with a context: the command, from its checkout's root and without a shell, that runs only this file"),ci:LW.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:vd.optional().describe(`for a file in ${Id}, added, updated or re-run: how the run executes only this file's tests, with the repository's own runner and the report it writes (junit, trx or jest-json to ${Pn}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),kve=e=>{if(!e||typeof e!="object")return e;let{test:t,...n}=e;return typeof t=="string"&&t.trim()&&n.tests===void 0?{...n,tests:[t]}:e},Sve=p.preprocess(kve,p.object({description:Ee.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:p.nativeEnum(Wc).optional(),sourceFile:p.string().optional().describe("the app file at fault"),sourceLine:p.number().optional(),tests:p.array(Ee).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:p.string().optional().describe("the plan's finding id, when it is one"),requirements:p.array(Ee).optional().describe("the plan's requirement or clause ids it violates")})),dFe=p.object({schemaVersion:p.literal(1),tests:p.array(Cve),notWritten:p.array(p.object({case:Ee,reason:Ee,coveredBy:p.object({file:Ee.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:Ee.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)")}).optional().describe("only for an existing test triage independently linked to this exact case: its exact runner name (including class or describe titles). Testbot must finish re-running it with every result passed. If your own test covers the case, include the case in its covers and function cases instead")})).describe("every plan case no test covers, and why"),journeys:p.array(Vv).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:p.object({command:p.string(),clean:p.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repo has one: the exact command, with its file paths (Testbot re-runs it)"),dependenciesAdded:p.array(p.object({package:Ee,manifest:Ee.describe("the manifest file's path relative to its checkout (e.g. package.json, pom.xml or pyproject.toml), and nothing else; name another checkout in repository"),repository:Ee.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:Ee.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).optional().describe("every package you added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own"),supportFiles:p.array(Ee).optional().describe("every file that is not a test you created or changed for your tests, which they need to compile or run (a helper module, page object, fixture, or a snapshot the runner wrote for them), named as you name a test; Testbot delivers only the tests you list and the files under supportFiles"),ciNotes:p.string().optional().describe("for each test whose ci says the repo's CI will not run it: the test, and the exact change the author must make for CI to run it"),commit:p.object({message:Ee.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:Ee.describe("at most 72 characters, following the repository's PR-title checks"),prBody:Ee.describe("what the tests cover and what they found")}),report:p.object({summary:Ee.describe("1-2 sentences for the PR author: does the change do what it says?"),issues:p.array(Sve).describe("every defect the tests found"),nextSteps:p.array(p.string()),noTests:p.array(p.object({repository:Ee,reason:Ee.max(4096)})).max(1e3).optional().describe("each Change Set repository where no test was added or updated: its owner/repo and why, naming the other repository when its tests went there")})});var pFe={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};var qW=(i=>(i.Requirement="requirement",i.PrDescription="pr_description",i.Code="code",i))(qW||{}),En=p.string().trim().min(1),Bve=p.object({expectation:En.max(300).describe("the behavior this assertion pins, in words"),source:p.nativeEnum(qW),expected:En.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),Rve=p.object({file:En.describe("path of the NEW test file you wrote, relative to its repository"),repository:En.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:En.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:vd.optional().describe(`for ${Id}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:p.array(En).length(1).describe("the ONE behavior id, or defect id, from the plan that the tests in names provide evidence for; a file covering several is listed once per id"),names:p.array(En).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:p.array(Bve).min(1)}),jA=(n=>(n.Updated="updated",n.Deleted="deleted",n))(jA||{}),zW=300,xve=p.object({file:En.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:En.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:p.nativeEnum(jA),staleBecause:p.object({requirement:En.describe("the requirement or clause id the change deliberately alters"),line:En.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated: why it is out of date"),reason:p.preprocess(e=>typeof e=="string"?e.trim().slice(0,zW):e,En.max(zW)).describe("what the change deliberately altered that made the test wrong")}),w0=p.object({schemaVersion:p.literal(1),tests:p.array(Rve),maintained:p.array(xve).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:p.array(p.object({id:En,reason:En.max(300)})).optional().describe("defects the plan found that no in-process test can reach, each with why; omit when every defect has a test"),journeys:p.array(Vv).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:p.array(p.object({journey:En,missing:En.transform(e=>e.length>300?`${e.slice(0,299)}\u2026`:e)})).optional().describe("a planned journey no in-process test can walk here, with what it needs that is missing; it is reported as not covered"),lint:p.object({command:p.string(),clean:p.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repository has one you can run; omit otherwise"),commitMessage:En.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var VA="generate-unit.json";function Tve(e){let{value:t,error:n}=Mt(e);if(n)return{errors:[n]};let{value:i,errors:r}=Nn(w0,t);return r.length?{errors:r}:{output:i,errors:[]}}function $ve(e){return Tve(e.stdout)}var XFe=pr("generate-unit-schema",(e,t)=>$ve(t));var Hv=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,eOe=[[/\b(localhost|127\.0\.0\.1|0\.0\.0\.0)\b/,"a local server address"],[/^\s*(import|from)\s+(requests|aiohttp|urllib3|websockets?)\b/m,"an HTTP client"],[/^\s*(?:import|from)\s+(?:urllib\.request|http\.client|http\.server|socket|ssl|ftplib|smtplib|telnetlib)\b|^\s*from\s+urllib\s+import\b[^\n]*\brequest\b|\burlopen\s*\(/m,"a standard-library network client"],[/\bfrom\s+["'](axios|node-fetch|undici|ws)["']|require\(\s*["'](axios|node-fetch|undici|ws)["']\s*\)/,"an HTTP client"],[new RegExp(String.raw`\bfrom\s+["']${Hv}["']|\bimport\s+["']${Hv}["']|require\(\s*["']${Hv}["']\s*\)|\bimport\(\s*["']${Hv}["']\s*\)`),"Node's network modules"],[/\bfetch\s*\(|\bnew\s+(XMLHttpRequest|WebSocket)\b/,"a network call (fetch, XMLHttpRequest, WebSocket)"],[/\bskyramp\b/i,"the Skyramp runtime (a runtime mock or client)"]];var EOe=new Set(["targeted_unit","existing_evidence_sufficient"]);var sa=fe(require("path"));var $Oe={"application/pdf":"PDF","text/csv":"CSV","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"DOCX","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"XLSX"};var k0=e=>new Map((e??[]).flatMap(t=>t.file?[[of(t.key),t.file.name]]:[])),Uve=10*1024*1024,Fve=e=>e?.mediaType==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e?.mediaType==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",XW=(e,t)=>sa.join(sa.dirname(e),`${sa.basename(e,sa.extname(e))}${t}`),Ove=e=>XW(e,".extracted.txt");var Mve=e=>XW(e,".quotes.txt");function e4(e){return Fve(e.file)?Ove(e.path):e.file?.mediaType==="application/pdf"?Mve(e.path):e.path}var Vve="triage.json";var BMe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),RMe={existing_evidence:"existing evidence",unaffected:"showing the change cannot reach it",existing_unit:"running the existing unit tests",new_unit:"a new unit test",runtime:"tests against the running application"};function Gve(e){let{value:t,error:n}=Mt(e);if(n)return{errors:[n]};let{value:i,errors:r}=Nn(FA,t);return r.length?{errors:r}:{triage:i,errors:[]}}function zve(e){return Gve(e.stdout)}var xMe=pr("triage-schema",(e,t)=>zve(t));function qve(e){let t=e.inputs?.pipeline;return t?e.state.stages[t==="two-step"?"plan":"triage"]:e.state.stages.triage??e.state.stages.plan}function S0(e){if(qve(e)?.status==="passed")return Uo(n4.join(e.outputsDir,Vve))}function B0(e){return fW(i0(e.inputs,rt(e,`${yd}.json`),S0(e)?.sutRequired))}var QMe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);kn();kn();function r4(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
|
|
196
|
+
`)){if(!r.trim()||r.length>1&&r[1]==="D")continue;let s=r.slice(3).trim(),o=s.indexOf(" -> ");if(o!==-1&&(s=s.slice(o+4).trim()),s=s.replace(/^"|"$/g,""),!s)continue;let a=s.replace(/^\.\//,"");a.startsWith(".skyramp/")||!n(a)||i.push(a)}return i}function KEe(e){let t=qv[e],n=e==="ui";return{name:`${t.stage}-no-litter`,verify(i){let r=NW(i.inputs.repositoryPath);if(r===void 0)return{name:this.name,passed:!0};let s=r.filter(o=>ZEe.test(o)===n);return s.length===0?{name:this.name,passed:!0}:sn(this.name,[`${t.stage} left files outside .skyramp/ \u2014 move the staged test into .skyramp/staged/ and delete any codegen draft (e.g. *_scaffold.*): ${s.slice(0,6).join(", ")}`])}}}var HPe=KEe("backend");var nve="write-stale-updates",rve={[nve]:"stale test updates"};var MA=fe(require("fs")),Kc=fe(require("path"));function FW(e){return Nn(_S,e).errors}function ove(e,t=[]){let{value:n,error:i}=Mt(e,t);if(i)return{errors:[i]};let r=FW(n);return r.length>0?{errors:r}:{adapt:n,errors:[]}}var ave="adapt-scratch",PW=`${ave}/adapt-result.json`;function OW(e,t){let n=Kc.join(e.outputsDir,PW),i;try{i=MA.readFileSync(n,"utf-8")}catch{i=void 0}if(i!==void 0&&(e.secretValues??[]).some(o=>i.includes(o)))return{errors:[`${PW} contains a secret value (token / credential) \u2014 never write it anywhere`]};let r=ove(t.stdout,e.secretValues);if(r.adapt)return r;let s=i!==void 0?Uo(n):void 0;return s!==void 0&&FW(s).length===0?{adapt:s,errors:[]}:r}var IUe=pr("adapt-schema",OW);var MW=require("child_process");function b0(e){return cve(e)??[]}function cve(e){let t;try{t=(0,MW.execFileSync)("git",[...Ki,"status","--porcelain","-z","--untracked-files=all"],{env:Rt(),cwd:e,encoding:"utf-8",maxBuffer:16*1024*1024})}catch{return}let n=t.split("\0"),i=[];for(let r=0;r<n.length;r++){let s=n[r];if(s.length<4)continue;let o=s.slice(0,2);i.push({code:o,path:s.slice(3)}),(o[0]==="R"||o[0]==="C")&&r++}return i}var QUe=2*1024*1024;var Jv=p.string().trim().min(1),uve=p.object({cwd:Jv.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:p.array(Jv).min(1).describe("the command as separate arguments, run without a shell"),env:p.record(p.string(),p.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),lve=p.object({file:Jv.describe("a file of the test's checkout, relative to its root"),line:Jv.describe("a line of that file, quoted exactly from where its command starts to its end")}),LW=p.object({collected:p.boolean().describe("whether the repo's CI runs this test as it is"),steps:p.array(lve).optional().describe("when collected: the line in a CI file that starts the tests, then each line it runs on the way to the test runner"),runner:p.string().optional().describe("when collected: the test runner the last of those lines starts, by the name that line and the list command both use"),list:uve.optional().describe("when collected: a command that lists the tests that runner collects without running them; Testbot runs it, and its output must name this file"),why:p.string().optional().describe("when not collected: why the repo's CI will not run it")});var Ee=p.string().trim().min(1),gve=e=>{if(!e||typeof e!="object")return e;let t=e;return typeof t.skip=="string"&&t.skip.trim()&&(t.expected===void 0||t.expected===null)?{...t,expected:"(not tested)"}:e},mve=p.preprocess(gve,p.object({id:Ee.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:Ee.describe("one testable part of the requirement"),expected:Ee.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:p.string().optional().describe("only when no test can check this clause here: why"),type:p.nativeEnum(Hs).optional().describe("the test that checks this clause: contract / integration (the API, or code called directly in-process: a function, hook or module) or ui (a page)"),target:p.string().optional().describe('its "METHOD /path", or the page / flow'),steps:p.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:p.string().optional().describe("the finding id, when this clause's test also catches that defect (the defect still gets a case of its own)"),code:p.string().optional().describe("path:line of the code that decides this clause, when there is one; in another repo of the change, that repo's directory name then its path"),stated:p.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:p.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes"),browserOnly:p.boolean().optional().describe("true when its behaviour happens only in a browser: real clicks or keys driving page script, client-side sorting or filtering, script-driven DOM updates, focus, drag-and-drop, navigation, rendering that depends on CSS or JavaScript"),browserHarness:p.string().optional().describe("browserOnly, off the runtime path: the path of the repo's in-process browser suite its test goes in (e.g. a Django StaticLiveServerTestCase test that drives Selenium)"),quote:p.string().optional().describe("the words of the spec, plan, ticket or PR description that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:p.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),VW=p.object({spec:p.string().optional().describe("file:line of a spec in the repository"),prDescription:p.boolean().optional().describe("or true when a pull request description says otherwise"),reference:p.string().optional().describe("or the key of an item the run was given, as listed"),says:Ee.describe("what it says there, in its own words, copied exactly"),criterion:p.number().int().positive().optional().describe("an item's only: leave it out; Testbot numbers it")}).refine(e=>[!!e.prDescription,!!e.spec?.trim(),!!e.reference?.trim()].filter(Boolean).length===1,{message:`names no source, or more than one: give "spec" its file:line or "reference" an item's key, or set "prDescription", one of them; list each source as its own entry`}),yve=p.object({id:Ee.describe('the label its source gives it ("AC-3", "REQ-12"; item 4 of a numbered list is "R4"), else "R1", "R2"\u2026 in order'),statement:Ee,source:p.nativeEnum(ls).describe("requirement-reference (an item the run was given), spec, pr-description (also for what the change is evidently meant to do when nothing is written down), or could-break (what the change could break that no requirement mentions)"),reference:p.string().optional().describe('requirement-reference only: the key of its item as listed, e.g. "PAY-184", or a Confluence page id such as "3021"'),evidence:Ee.describe("where it is stated: for requirement-reference, the item's own words, copied exactly; else file:line, a doc section, or the quoted phrase"),criterion:p.number().int().positive().optional().describe("requirement-reference only: leave it out; Testbot numbers each criterion by the item's own label (AC2, 2.), else after the item's labels"),alsoFrom:p.array(p.object({reference:Ee.regex($o).describe("the key of another uploaded document stating the same obligation"),says:Ee.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:p.number().int().positive().optional().describe("leave out; Testbot grounds and numbers this source separately")})).optional().describe("equivalent uploaded source criteria sharing this requirement's planned cases; retain every source with its own quote. Different conditions or boundaries need distinct requirements"),notInChange:p.string().optional().describe("requirement-reference only: when the change does not touch this criterion at all (e.g. a later step of a staged rollout), why; give it no clauses"),unchanged:p.boolean().optional().describe("true when it asks only that behaviour stay as it was (an update or refactor that must not change how something works), whatever its source"),overrules:p.array(VW).optional().describe("requirement-reference only: each lower-ranked source that says otherwise, a spec in the repository, a PR description or another item; this requirement wins, so test what it says"),clauses:p.array(mve)}),GW=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(GW||{}),Eve=p.object({id:Ee.describe('e.g. "F1"'),file:Ee,line:p.number().optional(),claim:Ee.describe("the defect, in one sentence"),severity:p.nativeEnum(Wc),evidence:Ee.describe("the code line, or the probe request and response, that shows it"),conflictsWith:p.array(Ee).optional().describe("requirement or clause ids it violates"),keeps:p.string().optional().describe("for a defect no requirement or clause states: path:line of the code beside the change that keeps the rule it breaks"),rule:p.nativeEnum(GW).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:p.string().optional().describe("only when the base already does this, in code the change left as it was: where the base does it (its file:line); such a defect gets no case"),needsApp:p.enum(["browser","live-api"]).optional().describe("only when the running app alone can show this defect and the repo has no in-process test that can: browser (page script, what the user sees after a click or a save) or live-api (code the repo tests only against the running app's API)")}),vve=p.object({id:Ee.describe('e.g. "Q1"'),question:Ee.describe("what is unsettled, as a question the PR author can answer"),readings:p.array(Ee).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:p.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:p.array(VW).optional().describe("when sources of the same rank disagree on it: each of them")}),Ive=p.object({id:Ee.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:p.nativeEnum(Hs).describe("contract / integration: checks the API, or calls code directly in-process (a function, hook or module); ui: checks what a user sees or does on a page"),target:Ee.describe('"METHOD /path", or the page / flow'),clause:p.string().optional().describe("the clause id this case checks"),finding:p.string().optional().describe("the finding id this case catches"),steps:Ee.describe("what the test does"),expected:Ee.describe("the expected outcome, from the clause"),mutates:p.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes")}),bve=p.object({test:Ee.describe("existing test file"),action:p.nativeEnum(us),reason:Ee,mutates:p.boolean().optional().describe("true when the maintained test changes state"),clauses:p.array(Ee).optional().describe("the clause ids this test checks")}),jW=p.array(Mm).optional(),wve=p.object({components:p.preprocess(e=>jW.safeParse(e).success?e:void 0,jW).describe("when saving a new or changed recipe: every app and backing service actually brought up, its source repository, and whether it is healthy"),outcome:p.nativeEnum(si).describe("clean | recipe-drift (you had to fix the recipe) | change-broke-bringup (this PR broke start-up) | bringup-failed (the environment, not the PR)"),baseUrls:p.record(p.string()).optional().describe("service \u2192 base URL of the running app"),health:p.object({url:p.string().optional(),command:p.string().optional(),output:p.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:p.string().optional().describe("command that stops the app"),dependencies:p.record(p.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:p.array(p.string()).optional().describe("what you changed in the recipe"),error:p.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:p.array(p.string()).optional().describe("change-broke-bringup: the changed files to blame"),login:p.object({username:Ee,password:p.string()}).optional().describe("the account the tests sign in as, when they sign in: each a literal value the recipe seeds, or $VARIABLE when a secret in the environment holds it"),revisions:bS.optional()}),lFe=p.object({schemaVersion:p.literal(1),requirements:p.array(yve),findings:p.array(Eve),cases:p.array(Ive).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:p.array(vve).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:p.array(bve),journeys:p.array(RW).optional().describe("the user journeys that, together, pass through everything the change alters that a user sees or does; empty when it alters nothing a user sees"),notInJourney:p.array(p.object({clause:Ee,why:Ee})).optional().describe("a clause a user sees or does that no journey walks, and why: none can reach it through the UI, or it is downstream of this change and not walked here"),unplannedComponents:p.array(p.object({components:p.array(Ee).min(1).describe("changed components, as the change lists them"),why:Ee})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:FA.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:wve.optional().describe("omit when no app was needed or none was started"),summary:Ee.describe("one paragraph: what the change does and where the risk is")});var LA=(n=>(n.Backend="backend",n.Ui="ui",n))(LA||{});var ia=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(ia||{}),Cve=p.object({file:Ee.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:p.nativeEnum(LA),change:p.nativeEnum(ia).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:p.array(p.string()).describe("the plan case ids this file tests, each with its own result under result.cases"),defect:p.boolean().optional().describe("true when a case of it fails because the app is wrong and the test is right \u2014 kept failing on purpose"),staleBecause:p.object({requirement:Ee.describe("the requirement or clause id the change deliberately alters"),line:Ee.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated or deleted: why it is out of date"),result:p.object({exit:p.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:p.array(p.object({case:Ee,status:p.nativeEnum(ai),runtimeTargets:uf.optional().describe("HTTP(S) URLs this case actually exercised in its current run, from its request or browser evidence; omit for local in-process/mocked checks, never list the shared app merely because it is configured"),defect:p.boolean().optional().describe("for a failing case: true when the app is wrong and the test is right; false when the test is at fault and you could not fix it"),failure:p.string().optional().describe("for a failing case: the runner's failure for it as printed (the error and the line it was raised at), not a summary"),cause:p.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:p.string().optional().describe("for a case you keep as a defect: the words of the PR description, a requirement or clause of the plan, or the code a finding's keeps names, that state what its failing check expects, quoted exactly")})).describe("one entry per covered case, from the runner's own output"),details:p.string().optional().describe("what failed and why, or why it was not run")}),assertions:p.array(p.object({case:Ee,evidence:Ee})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:p.array(p.object({name:Ee.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:p.array(Ee).describe("the plan case ids it checks")})).optional().describe("for a file you added or updated: each test function in it and the plan case ids it checks"),skyramp:p.object({draft:p.union([p.string(),p.array(p.string())]).optional().describe("the draft path the Skyramp helper returned for this test, or each path when the test was made from several drafts"),handWritten:p.string().optional().describe("why it is written by hand: the helper call you made and what it returned")}).optional().describe("only for a test of a case the Skyramp API block lists: where it came from"),context:p.array(A0).optional().describe("what the test sets up outside its own process that another test could run into: data it creates in the app, a Skyramp mock, an env override; omit when none"),isolatedRun:Ee.optional().describe("for a test with a context: the command, from its checkout's root and without a shell, that runs only this file"),ci:LW.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:vd.optional().describe(`for a file in ${Id}, added, updated or re-run: how the run executes only this file's tests, with the repository's own runner and the report it writes (junit, trx or jest-json to ${Pn}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),kve=e=>{if(!e||typeof e!="object")return e;let{test:t,...n}=e;return typeof t=="string"&&t.trim()&&n.tests===void 0?{...n,tests:[t]}:e},Sve=p.preprocess(kve,p.object({description:Ee.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:p.nativeEnum(Wc).optional(),sourceFile:p.string().optional().describe("the app file at fault"),sourceLine:p.number().optional(),tests:p.array(Ee).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:p.string().optional().describe("the plan's finding id, when it is one"),requirements:p.array(Ee).optional().describe("the plan's requirement or clause ids it violates")})),dFe=p.object({schemaVersion:p.literal(1),tests:p.array(Cve),notWritten:p.array(p.object({case:Ee,reason:Ee,coveredBy:p.object({file:Ee.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:Ee.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)")}).optional().describe("only for an existing test triage independently linked to this exact case: its exact runner name (including class or describe titles). Testbot must finish re-running it with every result passed. If your own test covers the case, include the case in its covers and function cases instead")})).describe("every plan case no test covers, and why"),journeys:p.array(Vv).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:p.object({command:p.string(),clean:p.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repo has one: the exact command, with its file paths (Testbot re-runs it)"),dependenciesAdded:p.array(p.object({package:Ee,manifest:Ee.describe("the manifest file's path relative to its checkout (e.g. package.json, pom.xml or pyproject.toml), and nothing else; name another checkout in repository"),repository:Ee.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:Ee.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).optional().describe("every package you added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own"),supportFiles:p.array(Ee).optional().describe("every file that is not a test you created or changed for your tests, which they need to compile or run (a helper module, page object, fixture, or a snapshot the runner wrote for them), named as you name a test; Testbot delivers only the tests you list and the files under supportFiles"),ciNotes:p.string().optional().describe("for each test whose ci says the repo's CI will not run it: the test, and the exact change the author must make for CI to run it"),commit:p.object({message:Ee.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:Ee.describe("at most 72 characters, following the repository's PR-title checks"),prBody:Ee.describe("what the tests cover and what they found")}),report:p.object({summary:Ee.describe("1-2 sentences for the PR author: does the change do what it says?"),issues:p.array(Sve).describe("every defect the tests found"),nextSteps:p.array(p.string()),noTests:p.array(p.object({repository:Ee,reason:Ee.max(4096)})).max(1e3).optional().describe("each Change Set repository where no test was added or updated: its owner/repo and why, naming the other repository when its tests went there"),notesDeviation:p.string().trim().max(4096).optional().describe("when the Target notes say where tests go and a test you added went elsewhere: where it went, and why; omit otherwise")})});var pFe={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};var qW=(i=>(i.Requirement="requirement",i.PrDescription="pr_description",i.Code="code",i))(qW||{}),En=p.string().trim().min(1),Bve=p.object({expectation:En.max(300).describe("the behavior this assertion pins, in words"),source:p.nativeEnum(qW),expected:En.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),Rve=p.object({file:En.describe("path of the NEW test file you wrote, relative to its repository"),repository:En.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:En.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:vd.optional().describe(`for ${Id}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:p.array(En).length(1).describe("the ONE behavior id, or defect id, from the plan that the tests in names provide evidence for; a file covering several is listed once per id"),names:p.array(En).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:p.array(Bve).min(1)}),jA=(n=>(n.Updated="updated",n.Deleted="deleted",n))(jA||{}),zW=300,xve=p.object({file:En.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:En.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:p.nativeEnum(jA),staleBecause:p.object({requirement:En.describe("the requirement or clause id the change deliberately alters"),line:En.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated: why it is out of date"),reason:p.preprocess(e=>typeof e=="string"?e.trim().slice(0,zW):e,En.max(zW)).describe("what the change deliberately altered that made the test wrong")}),w0=p.object({schemaVersion:p.literal(1),tests:p.array(Rve),maintained:p.array(xve).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:p.array(p.object({id:En,reason:En.max(300)})).optional().describe("defects the plan found that no in-process test can reach, each with why; omit when every defect has a test"),journeys:p.array(Vv).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:p.array(p.object({journey:En,missing:En.transform(e=>e.length>300?`${e.slice(0,299)}\u2026`:e)})).optional().describe("a planned journey no in-process test can walk here, with what it needs that is missing; it is reported as not covered"),lint:p.object({command:p.string(),clean:p.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repository has one you can run; omit otherwise"),commitMessage:En.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var VA="generate-unit.json";function Tve(e){let{value:t,error:n}=Mt(e);if(n)return{errors:[n]};let{value:i,errors:r}=Nn(w0,t);return r.length?{errors:r}:{output:i,errors:[]}}function $ve(e){return Tve(e.stdout)}var XFe=pr("generate-unit-schema",(e,t)=>$ve(t));var Hv=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,eOe=[[/\b(localhost|127\.0\.0\.1|0\.0\.0\.0)\b/,"a local server address"],[/^\s*(import|from)\s+(requests|aiohttp|urllib3|websockets?)\b/m,"an HTTP client"],[/^\s*(?:import|from)\s+(?:urllib\.request|http\.client|http\.server|socket|ssl|ftplib|smtplib|telnetlib)\b|^\s*from\s+urllib\s+import\b[^\n]*\brequest\b|\burlopen\s*\(/m,"a standard-library network client"],[/\bfrom\s+["'](axios|node-fetch|undici|ws)["']|require\(\s*["'](axios|node-fetch|undici|ws)["']\s*\)/,"an HTTP client"],[new RegExp(String.raw`\bfrom\s+["']${Hv}["']|\bimport\s+["']${Hv}["']|require\(\s*["']${Hv}["']\s*\)|\bimport\(\s*["']${Hv}["']\s*\)`),"Node's network modules"],[/\bfetch\s*\(|\bnew\s+(XMLHttpRequest|WebSocket)\b/,"a network call (fetch, XMLHttpRequest, WebSocket)"],[/\bskyramp\b/i,"the Skyramp runtime (a runtime mock or client)"]];var EOe=new Set(["targeted_unit","existing_evidence_sufficient"]);var sa=fe(require("path"));var $Oe={"application/pdf":"PDF","text/csv":"CSV","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"DOCX","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"XLSX"};var k0=e=>new Map((e??[]).flatMap(t=>t.file?[[of(t.key),t.file.name]]:[])),Uve=10*1024*1024,Fve=e=>e?.mediaType==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e?.mediaType==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",XW=(e,t)=>sa.join(sa.dirname(e),`${sa.basename(e,sa.extname(e))}${t}`),Ove=e=>XW(e,".extracted.txt");var Mve=e=>XW(e,".quotes.txt");function e4(e){return Fve(e.file)?Ove(e.path):e.file?.mediaType==="application/pdf"?Mve(e.path):e.path}var Vve="triage.json";var BMe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),RMe={existing_evidence:"existing evidence",unaffected:"showing the change cannot reach it",existing_unit:"running the existing unit tests",new_unit:"a new unit test",runtime:"tests against the running application"};function Gve(e){let{value:t,error:n}=Mt(e);if(n)return{errors:[n]};let{value:i,errors:r}=Nn(FA,t);return r.length?{errors:r}:{triage:i,errors:[]}}function zve(e){return Gve(e.stdout)}var xMe=pr("triage-schema",(e,t)=>zve(t));function qve(e){let t=e.inputs?.pipeline;return t?e.state.stages[t==="two-step"?"plan":"triage"]:e.state.stages.triage??e.state.stages.plan}function S0(e){if(qve(e)?.status==="passed")return Uo(n4.join(e.outputsDir,Vve))}function B0(e){return fW(i0(e.inputs,rt(e,`${yd}.json`),S0(e)?.sutRequired))}var QMe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);kn();kn();function r4(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
|
|
197
197
|
${e}`:e}var s4=600,Yv=300;function i4(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}function Jve(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[i4(t?.stderr),i4(t?.stdout)].filter(Boolean);return i.length?[n.split(`
|
|
198
198
|
`)[0],...i].join(`
|
|
199
199
|
`):n}function o4(e,t,n,i=0){let r=e.join(t);if(r.length<=n)return r;let[s="",...o]=e;if(!o.length)return`${s.slice(0,n-1)}\u2026`;let a=s.length<=i?s:s.slice(0,Math.floor(n/3)),c=n-a.length-t.length-1;return`${a}${t}\u2026${o.join(t).slice(-c)}`}function a4(e,t){return o4(e.trim().split(`
|
|
@@ -250,7 +250,7 @@ STALENESS WARNING: this PR changed recipe/infra files (${t.staleFiles.join(", ")
|
|
|
250
250
|
The recorded recipe may no longer match. If bring-up fails, first decide
|
|
251
251
|
WHY: recipe drift (infra moved, recipe is behind) vs the change itself
|
|
252
252
|
breaking bring-up. Do NOT paper over a PR that broke the app.`:"","",...r?mwe(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".'],...gwe(e),...ywe(e),"","Output: end with one JSON object matching:","",ZG(tf)," // 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(`
|
|
253
|
-
`)}function FZ(e){let t=rh.join(e.outputsDir,"deploy.txt");if(hI.existsSync(t)){let{deploy:i}=Yc({exitCode:0,stdout:hI.readFileSync(t,"utf-8"),stderr:"",timedOut:!1,durationMs:0});if(i?.teardown)return{argv:["sh","-c",i.teardown],label:"deploy.json's teardown"}}let{teardownScript:n}=nu(e.inputs.repositoryPath);if(n)return{argv:["bash",n],label:rh.join(".skyramp","sut","teardown.sh")}}function OZ(e,t){return pI(t,e.inputs.repositoryPath,{env:Rt()})}async function PZ(e){let t=FZ(e);t&&await OZ(e,t)}async function Iwe(e,t){let n=t.passed?void 0:MZ(e);if(!n)return;let i=await OZ(e,n);return i&&`${i} (if nothing was running, a teardown must exit 0)`}function MZ(e){return UZ(e)?void 0:FZ(e)}function bwe(e){if(MZ(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 wwe(e,t){let{deploy:n}=Yc(t,e.inputs.repositoryPath,e.secretValues);if(!n)return;if(n.outcome==="bringup-failed"){let r=_n(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 i=_A(e).map(r=>r.name);if(i.length)return`the shared environment's ${i.join(", ")} does not verifiably run the revision under validation \u2014 no runtime test runs against it`}var LZ=DZ({name:"deploy",model:"opus",timeoutMinutes:25,requires:["preflight"],softRequires:["onboard"],triageBranch:"runtime",validateInput:pwe,prepare:Awe,scaleTimeout:fwe,buildPrompt:vwe,allowedTools:dwe,buildSessionEnv:()=>({...TZ}),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:[Mv(),wW()],onPassed:async(e,t)=>({...kW(e,t),...await CW(e,t)}),passReason:wwe,afterAttempt:Iwe,retryNote:bwe,onAbort:PZ,teardown:PZ});kn();var IHe=20*1024*1024;var VZ=fe(require("path"));var QHe=VZ.join(".skyramp","sut","get-auth-token.sh");var n_="\\$([A-Z][A-Z0-9_]{0,99})",THe=new RegExp(`^${n_}$`),$He=new RegExp(`^${n_}:${n_}$`);var dYe=3*6e4;var pYe=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`;var Rwe={discover:"reading the repositories",start:"starting the components",check:"checking that the components answer"};var IYe={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 bYe=new RegExp(kl.source,"g");var VYe=new RegExp(kl.source,"g");var Twe="https://testbot.skyramp.dev",la={attemptId:"v3AttemptId",deadlineAt:"v3DeadlineAt",reportUploaded:"v3ReportUploaded",recipeUploaded:"v3RecipeUploaded",recipeStatus:"v3RecipeStatus",revisionsUploaded:"v3RevisionsUploaded",cause:"v3Cause",conflict:"v3Conflict"};function $we(e,t,n){return{origin:e,idToken:t,sourceToken:n,mask:i=>Bs(i),log:i=>Wr(i),onTokenRefused:(i,r)=>{Nwe(i)&&GZ.set(r,i)},onTokenGranted:i=>{GZ.delete(i)}}}var GZ=new Map;var
|
|
253
|
+
`)}function FZ(e){let t=rh.join(e.outputsDir,"deploy.txt");if(hI.existsSync(t)){let{deploy:i}=Yc({exitCode:0,stdout:hI.readFileSync(t,"utf-8"),stderr:"",timedOut:!1,durationMs:0});if(i?.teardown)return{argv:["sh","-c",i.teardown],label:"deploy.json's teardown"}}let{teardownScript:n}=nu(e.inputs.repositoryPath);if(n)return{argv:["bash",n],label:rh.join(".skyramp","sut","teardown.sh")}}function OZ(e,t){return pI(t,e.inputs.repositoryPath,{env:Rt()})}async function PZ(e){let t=FZ(e);t&&await OZ(e,t)}async function Iwe(e,t){let n=t.passed?void 0:MZ(e);if(!n)return;let i=await OZ(e,n);return i&&`${i} (if nothing was running, a teardown must exit 0)`}function MZ(e){return UZ(e)?void 0:FZ(e)}function bwe(e){if(MZ(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 wwe(e,t){let{deploy:n}=Yc(t,e.inputs.repositoryPath,e.secretValues);if(!n)return;if(n.outcome==="bringup-failed"){let r=_n(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 i=_A(e).map(r=>r.name);if(i.length)return`the shared environment's ${i.join(", ")} does not verifiably run the revision under validation \u2014 no runtime test runs against it`}var LZ=DZ({name:"deploy",model:"opus",timeoutMinutes:25,requires:["preflight"],softRequires:["onboard"],triageBranch:"runtime",validateInput:pwe,prepare:Awe,scaleTimeout:fwe,buildPrompt:vwe,allowedTools:dwe,buildSessionEnv:()=>({...TZ}),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:[Mv(),wW()],onPassed:async(e,t)=>({...kW(e,t),...await CW(e,t)}),passReason:wwe,afterAttempt:Iwe,retryNote:bwe,onAbort:PZ,teardown:PZ});kn();var IHe=20*1024*1024;var VZ=fe(require("path"));var QHe=VZ.join(".skyramp","sut","get-auth-token.sh");var n_="\\$([A-Z][A-Z0-9_]{0,99})",THe=new RegExp(`^${n_}$`),$He=new RegExp(`^${n_}:${n_}$`);var dYe=3*6e4;var pYe=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`;var Rwe={discover:"reading the repositories",start:"starting the components",check:"checking that the components answer"};var IYe={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 bYe=new RegExp(kl.source,"g");var VYe=new RegExp(kl.source,"g");var Twe="https://testbot.skyramp.dev",la={attemptId:"v3AttemptId",deadlineAt:"v3DeadlineAt",reportUploaded:"v3ReportUploaded",recipeUploaded:"v3RecipeUploaded",recipeStatus:"v3RecipeStatus",revisionsUploaded:"v3RevisionsUploaded",cause:"v3Cause",conflict:"v3Conflict"};function $we(e,t,n){return{origin:e,idToken:t,sourceToken:n,mask:i=>Bs(i),log:i=>Wr(i),onTokenRefused:(i,r)=>{Nwe(i)&&GZ.set(r,i)},onTokenGranted:i=>{GZ.delete(i)}}}var GZ=new Map;var oZe=["setup_failed","checkout_failed","environment_unverified"];function _we(e,t){return t.getTime()>=e.getTime()}function Nwe(e){return e instanceof ps||e instanceof ua&&e.code!=="CREDENTIALS_UNAVAILABLE"}var aZe={cancelled:"Skyramp cancelled this run",expired:"this attempt passed its deadline in Skyramp",ended:"Skyramp already ended this attempt"},cZe={cancelled:"attempt-cancelled",expired:"attempt-closed",ended:"attempt-closed"},uZe={cancelled:"cancelled",expired:"timed_out",ended:"agent_failed"};var lZe={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"},dZe={analyze:"change analysis",recommend:"test recommendations",generate:"test generation",execute:"test execution",deliver:"opening a pull request with the tests"};function Dwe(){return Pe("skyrampAppOrigin").trim()||Twe}var pZe=10*6e4;var fZe={onboard:"onboard",deploy:"deploy"},AZe={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"}},hZe=new Set(["write","native-run"]);function Pwe(){let e=Rs(la.conflict);if(!e)return;let t;try{t=VG.safeParse(JSON.parse(e))}catch(n){ht(`Testbot V3: the saved merge conflict is not JSON (${n instanceof Error?n.message:String(n)})`);return}if(t.success)return t.data;ht(`Testbot V3: the saved merge conflict breaks the contract (${t.error.issues.map(n=>`${n.path.join(".")}: ${n.message}`).join("; ")})`)}async function zZ(){let e=Rs(la.attemptId);if(!e)return;let t=Rs(la.reportUploaded)==="true",n=Rs(la.recipeUploaded)==="true",i=Rs(la.revisionsUploaded)==="true",r=Rs(la.deadlineAt),s=Rs(la.cause)||void 0;!s&&!t&&!n&&!i&&r&&_we(new Date(r),new Date)&&(s="timed_out");let o=th().takeIdToken(),a=Pwe(),c=await bZ({attemptId:e,reportUploaded:t,recipeUploaded:n,revisionsUploaded:i,cause:s,...a?{conflict:a}:{}},$we(Dwe(),o)),u=Rs(la.recipeStatus);n&&u?Wr(`Testbot V3: attempt ended; the setup ended ${u==="ready"?"Ready":"blocked (Needs input)"}.`):Wr(`Testbot V3: attempt ended; the run's outcome in Skyramp is ${c.outcome??"not final yet"}.`)}var qZ=require("child_process"),fs=fe(require("fs")),i_=fe(require("path")),s_=require("string_decoder");var Uwe="skyramp-testbot-state",Fwe=/^\$\([^)]*\)$/;function Owe(e){for(let[t,n]of Object.entries(e))n!==void 0&&Fwe.test(n)&&delete e[t]}function Mwe(e){let t={},n=fs.existsSync(e)?fs.readFileSync(e,"utf-8"):"",i=/^([^\r\n<]+)<<(\S+)\r?\n([\s\S]*?)\r?\n\2\r?$/gm;for(let r=i.exec(n);r;r=i.exec(n))t[r[1]]=r[3];return t}function JZ(e,t={}){let n=t.env??process.env;if(!tu(n))return!1;Owe(n),gZ(n);let i=n.AGENT_TEMPDIRECTORY||n.RUNNER_TEMP;if(i){n.RUNNER_TEMP??=i;let o=i_.join(i,Uwe);if(e==="main")fs.writeFileSync(o,"",{mode:384});else for(let[a,c]of Object.entries(Mwe(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]=i_.join(i,`skyramp-testbot-${c}`),fs.writeFileSync(n[a],"",{mode:384})}let r=t.stdout??n===process.env;r&&Lwe(n,t.write);let s=n.GITHUB_STEP_SUMMARY;if(r&&s){let o=t.write??(a=>q0(a.replace(/\n$/,"")));process.once("exit",()=>{fs.existsSync(s)&&fs.statSync(s).size>0&&o(`${uI("task.uploadsummary",{},s)}
|
|
254
254
|
`)})}return!0}function Lwe(e,t){let n=process.stdout.write.bind(process.stdout),i=o=>e[KA]==="1"?z0(o,e):void n(o.command!==void 0?`${o.command}
|
|
255
255
|
`:o.text??""),r=t??(o=>i({command:o.replace(/\n$/,"")})),s=t??(o=>i({text:o}));process.stdout.write=((o,...a)=>{let c=typeof o=="string"?o:Buffer.from(o).toString("utf-8"),u="";for(let f of c.split(/(?<=\n)/)){let h=f.startsWith("::")?uZ(f):void 0;if(!h){u+=f;continue}u&&s(u),u="";for(let g of h)r(`${g}
|
|
256
256
|
`)}return u&&s(u),a.find(f=>typeof f=="function")?.(),!0})}var jwe=64*1024;function r_(e){let t=new s_.StringDecoder("utf8"),n="",i=r=>e(cI(r));return{push(r){n+=typeof r=="string"?r:t.write(r);let s=n.lastIndexOf(`
|