@skyramp/testbot-core 0.13.0-v3.440 → 0.13.0-v3.441

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.
@@ -51,7 +51,7 @@ ${u}`,this.dataLineCount++;return}if(Ug(t,r,Tee)){Pee(t,s)&&(this.setEventFieldS
51
51
  # Written by ${n}: the recorded command, which needed a shell to run.
52
52
  set -euo pipefail
53
53
  ${i}
54
- `,{mode:493})}catch{return}return`bash ${Ff(t)}`}}o(mE,"scriptedCommand");function Ff(e){return`'${e.split("'").join("'\\''")}'`}o(Ff,"shQuote");var EE="data-safety-isolation.json";var Lf=new Map;function yE(e){let t=de.openSync(e,"r"),n=Buffer.alloc(4);try{if(de.readSync(t,n,0,4,0)!==4)return!1}finally{de.closeSync(t)}let i=n.readUInt32BE(0);return i===2135247942||[4277009102,4277009103,3405691582,3405691583,3472551422,3489328638,3199925962,3216703178].includes(i)}o(yE,"isNativeExecutable");function MH(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}o(MH,"retainPath");var P0=/^(NODE_OPTIONS|NODE_PATH|BASH_ENV|BASHOPTS|SHELLOPTS|PS4|PROMPT_COMMAND|BASH_XTRACEFD|BASH_LOADABLES_PATH|ENV|ZDOTDIR|PYTHONPATH|PYTHONHOME|RUBYOPT|PERL5OPT|PERL5LIB|GCONV_PATH|OPENSSL_CONF|OPENSSL_ENGINES|LD_.*|DYLD_.*|BASH_FUNC_.*)$/,jH=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function nl(e,t){let n={...t};n.PATH=e.bootstrapPath??U0(e.roots,process.env.PATH??"/usr/bin:/bin").map(i=>(MH(e,i),i)).join(Pe.delimiter),e.bootstrapPath=n.PATH,n.HOME=process.env.HOME,n.SHELL="/bin/bash";for(let i of["TMPDIR","TMP","TEMP"])process.env[i]?n[i]=process.env[i]:delete n[i];for(let i of Object.keys(n))P0.test(i)&&delete n[i];return n}o(nl,"bootstrapEnv");function U0(e,t){return t.split(Pe.delimiter).flatMap(n=>{if(!Pe.isAbsolute(n))return[];try{let i=de.realpathSync(n);if(ao(e,i)||e.some(r=>Na(i,r)))return[];for(let r of de.readdirSync(i)){let s=Pe.join(i,r);try{de.accessSync(s,de.constants.X_OK)}catch{continue}if(de.statSync(s).isFile()&&ao(e,de.realpathSync(s)))return[]}return[i]}catch{return[]}})}o(U0,"trustedPathEntries");var Na=o((e,t)=>t===e||t.startsWith(e+Pe.sep),"inside");function ao(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(i=>{try{return de.realpathSync(i)}catch{return i}});return[...e,...n].some(i=>Na(i,t))}o(ao,"unsafeToolPath");function Of(e,t,n,i=r=>Et(e,r)){let r=t.includes(Pe.sep)?[Pe.resolve(n,t)]:(nl(e,{PATH:process.env.PATH}).PATH??"").split(Pe.delimiter).map(s=>Pe.join(s,t));for(let s of r)try{if(de.accessSync(s,de.constants.X_OK),de.statSync(s).isFile())return de.realpathSync(s)}catch{}throw i(`a trusted executable could not be resolved (${t})`)}o(Of,"executableAt");function F0(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let i=Of(e,t,e.roots[0]);return bE(e.roots[0],[{command:i}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,i),i}o(F0,"bootstrapExecutable");function IE(e,t){let n=rl(e);return n?{executable:F0(n,t),env:nl(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}o(IE,"bootstrapTool");function rl(e){let t=Pe.resolve(e);try{t=de.realpathSync(e)}catch{}let n=[...Lf.values()],i=n.find(r=>r.roots.some(s=>Na(s,t)));if(i)return i;if(n.length===1)return n[0];if(n.length>1)throw Et(n[0],"a command outside the run roots has no unambiguous safety boundary")}o(rl,"forCwd");function Et(e,t){return e.failure=t,O0(e.ctx,t),new Error(`Shared-environment isolation unavailable: ${t}`)}o(Et,"refusal");function O0(e,t){let n=Lf.get(e.outputsDir);n&&(n.incident=t),de.mkdirSync(e.outputsDir,{recursive:!0});let i=Pe.join(e.outputsDir,EE),r=`${i}.${(0,N0.randomUUID)()}.tmp`;de.writeFileSync(r,JSON.stringify({reason:"isolation_unavailable",detail:t,actionRequired:!0},null,2),{mode:384,flag:"wx"}),de.renameSync(r,i)}o(O0,"recordIsolationFailure");function bE(e,t,n=[],i=[],r=!1){let s=rl(e);if(!s)return t.map(h=>({command:h.command,args:[...h.args??[]]}));let a=o(h=>{s.protectedPaths?.includes(h)||(s.protectedPaths??=[]).push(h)},"retain"),c=new Set,u=new Set,l=o(h=>{try{return de.realpathSync(h)}catch{throw Et(s,`unresolved tool asset: ${h}`)}},"realAsset"),p=o(h=>{let m=l(h);if(ao(s.roots,m)||s.roots.some(I=>Na(m,I)))throw Et(s,"a configured tool package or dependency is installed in a sandbox-writable location");a(m);let E=o(I=>{if(!c.has(I)){c.add(I);for(let b of de.readdirSync(I,{withFileTypes:!0})){let v=Pe.join(I,b.name);if(b.isSymbolicLink()){let R=l(v);if(ao(s.roots,R))throw Et(s,"a configured tool dependency is installed in a sandbox-writable location");de.statSync(R).isDirectory()?p(R):f(R)}else b.isDirectory()&&E(v)}}},"visit");E(m)},"protectDirectory"),f=o((h,m=!1,E=!1)=>{let I=l(h);if(ao(s.roots,I))throw Et(s,"a configured tool executable or package is installed in a sandbox-writable location");if(a(I),!m&&u.has(I))return;u.add(I);let b,v=de.openSync(I,"r"),R=Buffer.alloc(256);try{de.readSync(v,R,0,R.length,0)}finally{de.closeSync(v)}if(m){let $=R.toString().split(/\r?\n/,1)[0];if($.startsWith("#!")){let C=$.slice(2).trim().split(/\s+/),D=C[0];if(Pe.basename(D)==="env"){let ae=Of(s,D,e);if(ao(s.roots,ae)||!yE(ae))throw Et(s,`unsafe shebang launcher: ${D}`);a(ae),C.shift(),C[0]==="-S"&&C.shift()}let B=de.statSync(I),K=r&&(Na("/usr/bin",I)||Na("/bin",I))&&B.uid===0&&(B.mode&18)===0&&/^(?:sh|bash)$/.test(Pe.basename(C[0]));if(C.length!==1||!/^(?:node|nodejs|bun)$/.test(Pe.basename(C[0]))&&!K)throw Et(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(b=Of(s,C[0],e),ao(s.roots,b)||!yE(b))throw Et(s,`unsafe shebang interpreter: ${C[0]}`);a(b)}else if(!yE(I))throw Et(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(E||/\.[cm]?[jt]s$/.test(I)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(R.toString())){let $=Pe.dirname(I);for(let C=$;;C=Pe.dirname(C)){if(de.existsSync(Pe.join(C,"package.json"))){$=C;break}if(Pe.dirname(C)===C)break}p($);for(let C=$;;C=Pe.dirname(C)){let D=Pe.join(C,"node_modules");if(de.existsSync(D)&&de.statSync(D).isDirectory()&&p(D),Pe.basename(C)==="node_modules"&&p(C),Pe.dirname(C)===C)break}}return b},"check"),g=[];for(let h of t){let m=Of(s,h.command,e),E=f(m,!0),I=Pe.basename(de.realpathSync(m));if(!r&&/^(?:sh|bash|dash|zsh|ksh|fish|csh|tcsh|python[\d.]*|pypy[\d.]*|perl[\d.]*|ruby[\d.]*|php[\d.]*|lua[\d.]*|java|deno|uv|uvx|pipx|poetry|pdm|Rscript|pwsh|powershell|env|xargs|nohup|nice|stdbuf|timeout)$/.test(I))throw Et(s,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(I)&&h.args?.length)throw Et(s,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let b;if(!r&&/^(?:node|nodejs|bun)$/.test(I)){let v=h.args??[],R=v[0]==="--"||I==="bun"&&v[0]==="run"?v[1]:v[0];if(!R||R.startsWith("-")||!de.existsSync(Pe.resolve(e,R))||!de.statSync(Pe.resolve(e,R)).isFile())throw Et(s,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");b=Pe.resolve(e,R)}g.push(E&&!r?{command:E,args:[m,...h.args??[]]}:{command:m,args:[...h.args??[]]});for(let v of h.args??[]){let R=Pe.resolve(e,v);!v.startsWith("-")&&de.existsSync(R)&&de.statSync(R).isFile()&&f(R,!1,R===b)}}for(let h of n)f(h);for(let h of i){let m=l(h);p(m);let E=o(R=>{f(R);try{return JSON.parse(de.readFileSync(R,"utf8"))}catch{throw Et(s,`the plugin configuration could not be read: ${R}`)}},"readJson"),I=o(R=>{if(!R||typeof R!="object")return;if(Array.isArray(R)){R.forEach(I);return}let $=R;if($.type==="command"){if(typeof $.command!="string")throw Et(s,"the plugin command hook has no literal command");let C=_a($.command.replace(/\$\{CLAUDE_PLUGIN_ROOT\}/g,m));if(!C.steps)throw Et(s,"the plugin command hook needs a literal native/Node command whose assets can be retained");for(let D of C.steps)bE(e,[{command:D[0],args:D.slice(1)}])}Object.values($).forEach(I)},"hooks"),b=Pe.join(m,".claude-plugin/plugin.json");if(de.existsSync(b)){let R=E(b);if(!R||typeof R!="object"||Array.isArray(R))throw Et(s,"the plugin manifest is not an object");let $=R;if($.mcpServers)throw Et(s,"declare plugin MCP servers through the run's validated MCP configuration");let C=o(D=>{typeof D=="string"?I(E(Pe.resolve(m,D))):Array.isArray(D)?D.forEach(C):I(D)},"hookDocuments");C($.hooks)}let v=Pe.join(m,"hooks/hooks.json");if(de.existsSync(v)&&I(E(v)),de.existsSync(Pe.join(m,".mcp.json")))throw Et(s,"declare plugin MCP servers through the run's validated MCP configuration")}return g}o(bE,"assertToolAssetsSafe");function as(e,t,n,i="data-safety-proxy"){let r=rl(t);if(!r)return{argv:[...e],env:n};let s=i==="open"?r.openSettings:r.settings;if(r.failure||!r.cli||!r.node||!s||!r.env)throw Et(r,r.failure??"the run boundary has not finished initialization");if(!de.existsSync(r.cli)||!de.existsSync(s)||!de.existsSync(r.node))throw Et(r,"the pinned sandbox runtime or its configuration is unavailable");try{if(JSON.parse(de.readFileSync(r.statusFile,"utf8")).notRun)throw new Error("the guarded proxy is unavailable")}catch{throw Et(r,"the guarded proxy is unavailable")}let a=i==="open",c=a?{...n,PATH:U0(r.roots,n.PATH??"").join(Pe.delimiter)}:n,u=nl(r,a?{...c}:{...c,...r.env}),l=Object.keys(c).filter(p=>(["PATH","HOME","SHELL"].includes(p)||P0.test(p)&&!jH.test(p))&&c[p]!==void 0).map(p=>`${p}=${c[p]}`);return{argv:[r.node,r.cli,"--settings",s,"--","/usr/bin/env",...l,...GH(r),...a?["NODE_USE_ENV_PROXY=1",...r.openTrust?["SSL_CERT_FILE","REQUESTS_CA_BUNDLE","CURL_CA_BUNDLE"].map(p=>`${p}=${r.openTrust}`):[]]:[],...e],env:u}}o(as,"protectedCommand");function GH(e){let t=e.noProxy??"";return[`NO_PROXY=${t}`,`no_proxy=${t}`,...e.tmp?["TMPDIR","TMP","TEMP"].map(n=>`${n}=${e.tmp}`):[]]}o(GH,"sandboxCommandEnv");function Pa(e){return!!rl(e)}o(Pa,"hasNetworkBoundary");function Mf(e,t=process.env){let n=rl(e);return n?nl(n,{...t,...n.env}):t}o(Mf,"networkBoundaryEnv");var L0=["--no-pager","-c","core.hooksPath=/dev/null","-c","core.fsmonitor=false","-c","commit.gpgsign=false","-c","tag.gpgsign=false","-c","core.sshCommand=/usr/bin/false","-c","credential.helper=","-c","core.askPass=/usr/bin/false","-c","core.alternateRefsCommand=","-c","diff.external=","-c","protocol.allow=never","-c","protocol.https.allow=always"],zH="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function qH(e){let t={...e,GIT_ALLOW_PROTOCOL:"https",GIT_TERMINAL_PROMPT:"0",GIT_ASKPASS:"/usr/bin/false",GIT_EDITOR:"/usr/bin/true",GIT_SEQUENCE_EDITOR:"/usr/bin/true"};for(let n of["GIT_CONFIG","GIT_CONFIG_PARAMETERS","GIT_EXEC_PATH","GIT_EXTERNAL_DIFF","GIT_SSH","GIT_SSH_COMMAND","GIT_SSH_VARIANT","GIT_PROXY_COMMAND","GIT_PAGER"])delete t[n];for(let n of tl)delete t[n];return t}o(qH,"gitEnv");function JH(e,t){let n=IE(e,"git"),i=n.executable,r=Mf(e,{...qH(t),PATH:n.env.PATH}),s=as([i,...L0,"config","--null","--name-only","--get-regexp",zH],e,r),a=[];try{a=(0,il.execFileSync)(s.argv[0],s.argv.slice(1),{cwd:e,env:s.env,encoding:"utf8",stdio:["ignore","pipe","pipe"],timeout:3e4}).split("\0").filter(Boolean)}catch(u){if(u.status!==1)throw u}if(a.some(u=>u.includes("=")))throw new Error("protected Git cannot safely disable an executable Git configuration key containing '='");let c=a.flatMap(u=>["-c",`${u}=${u.startsWith("merge.")?"false":""}`]);return{binary:i,env:r,config:[...L0,...c]}}o(JH,"gitPolicy");function jf(e,t,n=process.env){if(!Pa(t))return{argv:["git",...e],env:n};let i=JH(t,n),r=[...e],s=new Set(["-c","-C","--config-env","--git-dir","--work-tree","--namespace","--super-prefix","--exec-path"]);for(let a=0;a<r.length;a++){if(s.has(r[a])){a++;continue}if(!r[a].startsWith("-")){r[a]==="diff"&&r.splice(a+1,0,"--no-ext-diff","--no-textconv");break}}return as([i.binary,...i.config,...r],t,i.env)}o(jf,"protectedGitCommand");function Ct(e,t){let n=jf(e,t.cwd,t.env??process.env);return(0,il.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(Ct,"execGitSync");function vE(e,t){let n=jf(e,t.cwd,t.env??process.env);return(0,il.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(vE,"spawnGitSync");var IH=require("node:zlib");Dc();var qg=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),OL=o((e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,"tests"),Jg={listSeparator:", ",testRecommendationsImplementedHeader:o((e,t)=>`\u{1F4A1} Test Recommendations Implemented (${e} test${e===1?"":"s"}${t>e?`, ${t} cases`:""})`,"testRecommendationsImplementedHeader"),testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:o(e=>`${qg(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${qg(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${qg(e)} reused`,"reused"),verified:o(e=>`${qg(e)} verified`,"verified"),unresolved:o(e=>`${e} not resolvable to POM source (informational, not declines)`,"unresolved"),candidates:o(e=>`${e} candidate POM file${e===1?"":"s"} detected`,"candidates"),verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:o(e=>`kept inline: ${e}`,"keptInline"),gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:o(e=>`\u2705 Test Maintenance (${e})`,"testMaintenanceHeader"),maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:o(e=>`\u{1F9EA} Test Results (${e})`,"testResultsHeader"),columnVideo:"Video",videoDownloadLink:o(e=>`[\u{1F4F9} download](${e})`,"videoDownloadLink"),videosArtifactFallback:o(e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F Issues Found (${e})`,"issuesFoundHeader"),configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:o(e=>e?"passed against the running app":"passed","passed"),notRun:o(e=>e?"not run against a live app this run":"not run this run","notRun"),failedBug:o(e=>e?"failed against the running app":"failed","failedBug"),failedTest:o(e=>`failed \u2014 the test is at fault, not the app (${e})`,"failedTest"),executedOf:o((e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,"executedOf"),noneExecuted:o(e=>e?"; none were executed against a live app this run.":"; none were executed this run.","noneExecuted"),staleResult:"From a run before this file's last change, not of the delivered test:"},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",missingSecret:o(e=>`The app could not be started this run: it needs ${e}, which this run had no value for. Nothing was tested against a live app.`,"missingSecret"),testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",findingsNotVerified:o(e=>`No test result confirms or refutes the suspected defects at ${e}.`,"findingsNotVerified"),failedAlone:o(e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,"failedAlone"),missingCaseResults:o((e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},"missingCaseResults"),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:o(e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,"mockedDependency"),finalizeNotReady:o(e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,"finalizeNotReady"),ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:o(e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,"ciNotCoveredBecause"),ciUnconfirmed:o(e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,"ciUnconfirmed"),ciUnconfirmedAbsent:o(e=>`Testbot could not confirm that the repo's CI leaves out ${e}, which need services it does not start: check that CI does not run them.`,"ciUnconfirmedAbsent"),ciNotIntegrated:o(e=>`Not yet CI-integrated: ${e} need services the repo's CI does not start, so Testbot put them where CI does not run them. The CI notes say what to change to run them in CI.`,"ciNotIntegrated"),ciUnprovisioned:o(e=>`The repo's CI runs ${e} without starting what they need, so CI will fail on them until it starts those services.`,"ciUnprovisioned"),ciWithheld:o(e=>`Not in the tests PR: the repo's CI would run ${e} without starting what they need, which would fail CI. The CI notes say what to change to run them.`,"ciWithheld"),ciResultsUnread:o(e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,"ciResultsUnread"),browserSuiteReadOnly:o((e,t)=>`${e} has a browser suite, but this run could not write there, so its ui tests are in ${t}.`,"browserSuiteReadOnly"),sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:o(e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,"lintNotCovered"),analysisUnverified:o(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.`,"analysisUnverified"),unitTestsNotRun:o(e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,"unitTestsNotRun"),componentsNotTested:o(e=>`Not tested: changed parts of the code the plan did not test. ${e}`,"componentsNotTested"),componentsWithoutReason:o(e=>`The plan gave no reason for leaving out: ${e}.`,"componentsWithoutReason"),targetNotesDeviation:o(e=>`Tests were not put where the Target notes say tests go: ${e}`,"targetNotesDeviation"),testSettingsDiffer:o(e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,"testSettingsDiffer"),stageSalvaged:o((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.`,"stageSalvaged"),downstreamNotChecked:o(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}`,"downstreamNotChecked"),browserBuildNotDeclared:o((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.`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,"videoMissing"),testsCouldNotRunHere:o((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}`,"testsCouldNotRunHere"),modelProviderDenied:o((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.`,"modelProviderDenied"),modelProviderUnavailable:o((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.`,"modelProviderUnavailable"),dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:o(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.`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:o((e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.","dataSafetyIsolationEnforced"),dataSafetyIsolationRefused:"Some checks could not run with the shared-environment protection in place. Testbot did not run them without it.",dataSafetyProxyAuthCreates:o(e=>`The plan probes or the tests sent sign-in or sign-up requests: ${e}. The data-safety proxy lets these through and does not track what they create, for example a new account.`,"dataSafetyProxyAuthCreates"),dataSafetyGuardedProbes:"plan probes",dataSafetyGuardedTests:"test runs",dataSafetyAnd:" and ",dataSafetyCleanupConfirmed:"Testbot ran each test's declared cleanup, and each succeeded.",dataSafetyLeftRecords:o(e=>`These tests declare records they cannot delete from the shared environment: ${e}.`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`The cleanup of ${e} failed: what they created may still be in the shared environment.`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`The cleanup of ${e} is not known: Testbot did not check their cleanup.`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot could not run this validation inside the shared-environment isolation it requires, so it did not validate the change.",gap:o(e=>`Shared-environment isolation unavailable: ${e}`,"gap"),nextStep:"Fix what the gap names, then run the validation again."},nextSteps:{componentMismatch:o((e,t,n,i)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${i}, the commit this run validates.`,"componentMismatch"),componentUnverified:o((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}.`,"componentUnverified"),componentUnread:o((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.`,"componentUnread"),deployCommit:o((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.`,"deployCommit"),addSecret:o((e,t)=>`Add ${t?"a secret":"secrets"} named ${e} on the workflow host, as a GitHub Actions secret or, on Azure DevOps, a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library. Then add ${t?"it":"them"} under Credentials on the Target's Setup page, and run Testbot again: a run's workflow passes Testbot only the Target's credentials, each from the workflow host's secret it is mapped to, and the app cannot start without ${t?"it":"them"}. Testbot does not make up a value.`,"addSecret")},providerOutageHeadline:o((e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,"providerOutageHeadline"),providerOutageActionStatusPage:o(e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`Testbot was rate-limited by ${e} (HTTP 429).`,"providerRateLimitHeadline"),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:o(e=>`The account behind ${e} has reached its usage limit.`,"providerUsageLimitHeadline"),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:o(e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,"providerAuthExpiredHeadline"),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:o(e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,"providerTimeoutHeadline"),providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:o(e=>`Tests for source pull request ${e}`,"testsSourcePullRequest"),validatedTogether:o(e=>`Pull requests validated together: ${e}`,"validatedTogether"),requestedByPerson:o(e=>`Requested by ${e}`,"requestedByPerson"),requestedByPolicy:o(e=>`Started by the Validation Policy ${e}`,"requestedByPolicy"),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:o(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).`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,"unitTestsInFile"),addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:o((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.`,"testPackageLine"),appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:o((e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,"dependencyChangeLine"),testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:o((e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,"trustedCheckPassed"),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:o((e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:o((e,t,n,i)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${i} executed)`,"coverageCaption"),coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:o((e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,"requirementsHeader"),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:o(e=>e?`${e} hook`:"commit hook","commitHook"),commitRefusedByHook:o((e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,"commitRefusedByHook"),commitHookCouldNotRun:o((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}\`.`,"commitHookCouldNotRun"),maintenanceActions:{},stoppedEarly:o((e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,"stoppedEarly"),viewInSkyramp:o(e=>` [View in Skyramp](${e})`,"viewInSkyramp"),testsPr:{summaryHeader:"### Summary",targets:"The tests target:",moreItems:o(e=>`and ${e} more`,"moreItems"),counts:o((e,t)=>`${OL(e,"new")} and ${OL(t,"maintained")}.`,"counts"),types:o(e=>`Test types: ${e}.`,"types"),statusHeader:"### Validation status",noChange:"\u2139\uFE0F Nothing changed since the baseline.",noTestRan:"No test ran, and no existing evidence was accepted.",noLiveApp:"No live app (SUT) was available, so the tests were not run.",resultCounts:o((e,t,n)=>`Test results: ${e} passed, ${t} failed, ${n} not run.`,"resultCounts"),limitations:"Important failures and limitations:",verdict:o(e=>`The run's verdict is in [Run details](${e}).`,"verdict"),runningHeader:"### Running the tests",environment:o(e=>`The tests read these environment variables, which the job that runs them must set: ${e}.`,"environment"),filesChanged:"Review each test in the **Files changed** tab."},descriptionCut:o((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})`:""}_`,"descriptionCut"),testsReplaced:o((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(" "),"testsReplaced"),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:o(e=>`Unable to contact the mothership ${e}. Please try again later.`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot could not start: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(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.`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[View run](${e})_`,"viewRun"),testsPrNotOpened:o((e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,"testsPrNotOpened"),testsNotDelivered:o(e=>`The tests could not be delivered: ${e}`,"testsNotDelivered"),testsNotPushed:o((e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,"testsNotPushed"),testsPrRetargeted:o(e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,"testsPrRetargeted"),testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:o(e=>`The tests were committed but no PR was opened: ${e}.`,"committedNoPr"),testsNotProposed:o(e=>`The tests were not proposed in a pull request: ${e}.`,"testsNotProposed")}};var LL={testRecommendationsImplementedHeader:o((e,t)=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08\u30C6\u30B9\u30C8 ${e}\u4EF6${t>e?`\u3001\u30B1\u30FC\u30B9 ${t}\u4EF6`:""}\uFF09`,"testRecommendationsImplementedHeader"),listSeparator:"\u3001",testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,"reusedThenVerified"),reused:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,"reused"),verified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,"verified"),unresolved:o(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`,"unresolved"),candidates:o(e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,"candidates"),verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:o(e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,"keptInline"),gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:o(e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,"testMaintenanceHeader"),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:o(e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,"testResultsHeader"),columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:o(e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,"videoDownloadLink"),videosArtifactFallback:o(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})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,"issuesFoundHeader"),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:o(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","passed"),notRun:o(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","notRun"),failedBug:o(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","failedBug"),failedTest:o(e=>`\u5931\u6557\u3057\u307E\u3057\u305F \u2014 \u30A2\u30D7\u30EA\u3067\u306F\u306A\u304F\u30C6\u30B9\u30C8\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059\uFF08${e}\uFF09`,"failedTest"),executedOf:o((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`,"executedOf"),noneExecuted:o(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","noneExecuted"),staleResult:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u6700\u5F8C\u306E\u5909\u66F4\u3088\u308A\u524D\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093:"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",missingSecret:o(e=>`\u3053\u306E\u5B9F\u884C\u3067\u306F\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8D77\u52D5\u306B\u306F ${e} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u306B\u306F\u5024\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,"missingSecret"),testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",findingsNotVerified:o(e=>`\u6B21\u306E\u7B87\u6240\u306E\u7591\u308F\u3057\u3044\u6B20\u9665\u3092\u78BA\u8A8D\u307E\u305F\u306F\u5426\u5B9A\u3059\u308B\u30C6\u30B9\u30C8\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"findingsNotVerified"),failedAlone:o(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`,"failedAlone"),missingCaseResults:o((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}`},"missingCaseResults"),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:o(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`,"mockedDependency"),finalizeNotReady:o(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"}`,"finalizeNotReady"),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:o(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}`,"ciNotCoveredBecause"),ciUnconfirmedAbsent:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u5B9F\u884C\u3057\u306A\u3044\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u308C\u3089\u306F CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u306A\u3044\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"ciUnconfirmedAbsent"),ciUnconfirmed:o(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`,"ciUnconfirmed"),ciNotIntegrated:o(e=>`CI \u672A\u7D71\u5408: ${e} \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u3001Testbot \u306F CI \u304C\u5B9F\u884C\u3057\u306A\u3044\u5834\u6240\u306B\u914D\u7F6E\u3057\u307E\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,"ciNotIntegrated"),ciWithheld:o(e=>`\u30C6\u30B9\u30C8 PR \u306B\u542B\u3081\u3066\u3044\u307E\u305B\u3093: \u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001CI \u304C\u5931\u6557\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,"ciWithheld"),ciUnprovisioned:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u3059\u308B\u307E\u3067 CI \u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3067\u5931\u6557\u3057\u307E\u3059\u3002`,"ciUnprovisioned"),ciResultsUnread:o(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`,"ciResultsUnread"),browserSuiteReadOnly:o((e,t)=>`${e} \u306B\u306F\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u30B9\u30A4\u30FC\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u3067\u306F\u66F8\u304D\u8FBC\u3081\u306A\u3044\u305F\u3081\u3001UI \u30C6\u30B9\u30C8\u306F ${t} \u306B\u3042\u308A\u307E\u3059\u3002`,"browserSuiteReadOnly"),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:o(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`,"lintNotCovered"),analysisUnverified:o(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`,"analysisUnverified"),unitTestsNotRun:o(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}`,"unitTestsNotRun"),componentsNotTested:o(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}`,"componentsNotTested"),componentsWithoutReason:o(e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,"componentsWithoutReason"),targetNotesDeviation:o(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}`,"targetNotesDeviation"),testSettingsDiffer:o(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`,"testSettingsDiffer"),stageSalvaged:o((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`,"stageSalvaged"),downstreamNotChecked:o(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}`,"downstreamNotChecked"),browserBuildNotDeclared:o((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`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(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`,"resultsNotOfDeliveredTests"),videoMissing:o(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`,"videoMissing"),testsCouldNotRunHere:o((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}`,"testsCouldNotRunHere"),modelProviderDenied:o((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`,"modelProviderDenied"),modelProviderUnavailable:o((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`,"modelProviderUnavailable"),dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:o(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`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:o((e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002","dataSafetyIsolationEnforced"),dataSafetyIsolationRefused:"\u4E00\u90E8\u306E\u30C1\u30A7\u30C3\u30AF\u306F\u3001\u5171\u6709\u74B0\u5883\u306E\u4FDD\u8B77\u3092\u6709\u52B9\u306B\u3057\u305F\u307E\u307E\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F\u3001\u4FDD\u8B77\u306A\u3057\u3067\u305D\u308C\u3089\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyProxyAuthCreates:o(e=>`\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6\u307E\u305F\u306F\u30C6\u30B9\u30C8\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u8FFD\u8DE1\u3057\u307E\u305B\u3093\u3002`,"dataSafetyProxyAuthCreates"),dataSafetyGuardedProbes:"\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6",dataSafetyGuardedTests:"\u30C6\u30B9\u30C8\u306E\u5B9F\u884C",dataSafetyAnd:"\u3068",dataSafetyCleanupConfirmed:"Testbot \u306F\u5404\u30C6\u30B9\u30C8\u304C\u5BA3\u8A00\u3057\u305F\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u5B9F\u884C\u3057\u3001\u3059\u3079\u3066\u6210\u529F\u3057\u307E\u3057\u305F\u3002",dataSafetyLeftRecords:o(e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u304B\u3089\u524A\u9664\u3067\u304D\u306A\u3044\u30EC\u30B3\u30FC\u30C9\u3092\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059: ${e}\u3002`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u4F5C\u6210\u3057\u305F\u3082\u306E\u304C\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3063\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u4E0D\u660E\u3067\u3059\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u305B\u3093\u3002`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot \u306F\u3001\u5FC5\u8981\u306A\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u306E\u4E2D\u3067\u3053\u306E\u691C\u8A3C\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5909\u66F4\u3092\u691C\u8A3C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",gap:o(e=>`\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093: ${e}`,"gap"),nextStep:"\u30AE\u30E3\u30C3\u30D7\u306B\u8A18\u8F09\u3055\u308C\u305F\u554F\u984C\u3092\u89E3\u6D88\u3057\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},nextSteps:{componentMismatch:o((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`,"componentMismatch"),componentUnverified:o((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`,"componentUnverified"),componentUnread:o((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`,"componentUnread"),deployCommit:o((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`,"deployCommit"),addSecret:o((e,t)=>`\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306B ${e} \u3068\u3044\u3046\u540D\u524D\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\uFF08GitHub Actions \u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3001\u307E\u305F\u306F Azure DevOps \u3067\u306F\u30DB\u30B9\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u306E Pipelines \u203A Library \u306B\u3042\u308B skyramp-testbot \u5909\u6570\u30B0\u30EB\u30FC\u30D7\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u5909\u6570\uFF09\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6B21\u306B Target \u306E Setup \u30DA\u30FC\u30B8\u306E Credentials \u306B\u8FFD\u52A0\u3057\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5B9F\u884C\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C Testbot \u306B\u6E21\u3059\u306E\u306F Target \u306E\u8A8D\u8A3C\u60C5\u5831\u3060\u3051\u3067\u3001\u305D\u308C\u305E\u308C\u5BFE\u5FDC\u4ED8\u3051\u3089\u308C\u305F\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u304B\u3089\u6E21\u3055\u308C\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306F\u3053\u308C\u306A\u3057\u3067\u306F\u8D77\u52D5\u3067\u304D\u305A\u3001Testbot \u304C\u5024\u3092\u4F5C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,"addSecret")},providerOutageHeadline:o((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`,"providerOutageHeadline"),providerOutageActionStatusPage:o(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`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,"providerRateLimitHeadline"),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:o(e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,"providerUsageLimitHeadline"),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:o(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`,"providerAuthExpiredHeadline"),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:o(e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,"providerTimeoutHeadline"),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:o(e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,"testsSourcePullRequest"),validatedTogether:o(e=>`\u4E00\u7DD2\u306B\u691C\u8A3C\u3057\u305F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8: ${e}`,"validatedTogether"),requestedByPerson:o(e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,"requestedByPerson"),requestedByPolicy:o(e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,"requestedByPolicy"),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:o(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`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,"unitTestsInFile"),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:o((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`,"testPackageLine"),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:o((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}`:""}`,"dependencyChangeLine"),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:o((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:`,"trustedCheckPassed"),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:o((e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:o((e,t,n,i)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${i}\uFF09`,"coverageCaption"),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:o((e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,"requirementsHeader"),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:o(e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF","commitHook"),commitRefusedByHook:o((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`,"commitRefusedByHook"),commitHookCouldNotRun:o((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`,"commitHookCouldNotRun"),stoppedEarly:o((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}`,"stoppedEarly"),viewInSkyramp:o(e=>` [Skyramp \u3067\u8868\u793A](${e})`,"viewInSkyramp"),testsPr:{summaryHeader:"### \u6982\u8981",targets:"\u30C6\u30B9\u30C8\u306E\u5BFE\u8C61:",moreItems:o(e=>`\u307B\u304B ${e} \u4EF6`,"moreItems"),counts:o((e,t)=>`\u65B0\u898F\u30C6\u30B9\u30C8 ${e} \u4EF6\u3001\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u3057\u305F\u30C6\u30B9\u30C8 ${t} \u4EF6\u3002`,"counts"),types:o(e=>`\u30C6\u30B9\u30C8\u7A2E\u5225: ${e}\u3002`,"types"),statusHeader:"### \u691C\u8A3C\u30B9\u30C6\u30FC\u30BF\u30B9",noChange:"\u2139\uFE0F \u30D9\u30FC\u30B9\u30E9\u30A4\u30F3\u4EE5\u964D\u306B\u5909\u66F4\u306F\u3042\u308A\u307E\u305B\u3093\u3002",noTestRan:"\u5B9F\u884C\u3057\u305F\u30C6\u30B9\u30C8\u306F\u306A\u304F\u3001\u65E2\u5B58\u306E\u8A3C\u62E0\u3082\u63A1\u7528\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",noLiveApp:"\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",resultCounts:o((e,t,n)=>`\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${e} \u4EF6\u3001\u4E0D\u5408\u683C ${t} \u4EF6\u3001\u672A\u5B9F\u884C ${n} \u4EF6\u3002`,"resultCounts"),limitations:"\u91CD\u8981\u306A\u5931\u6557\u3068\u5236\u9650:",verdict:o(e=>`\u5B9F\u884C\u306E\u5224\u5B9A\u306F[\u5B9F\u884C\u306E\u8A73\u7D30](${e})\u306B\u3042\u308A\u307E\u3059\u3002`,"verdict"),runningHeader:"### \u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",environment:o(e=>`\u30C6\u30B9\u30C8\u306F\u6B21\u306E\u74B0\u5883\u5909\u6570\u3092\u8AAD\u307F\u53D6\u308A\u307E\u3059\u3002\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B\u30B8\u30E7\u30D6\u3067\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044: ${e}\u3002`,"environment"),filesChanged:"\u5404\u30C6\u30B9\u30C8\u306F **Files changed** \u30BF\u30D6\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},descriptionCut:o((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})`:""}_`,"descriptionCut"),testsReplaced:o((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(""),"testsReplaced"),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:o(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`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(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`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,"viewRun"),testsPrNotOpened:o((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`,"testsPrNotOpened"),testsNotDelivered:o(e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"testsNotDelivered"),testsNotPushed:o((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`,"testsNotPushed"),testsPrRetargeted:o(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`,"testsPrRetargeted"),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:o(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`,"committedNoPr"),testsNotProposed:o(e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,"testsNotProposed")}};var Kte={en:Jg,ja:LL},Xte="en";function Bs(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(Bs,"labelOf");function se(){return Kte[Xte]}o(se,"t");var ene=4,jL="\xABredacted\xBB";function GL(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=ene&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(GL,"redactionsFrom");function tne(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(tne,"redactGitCredentials");function Lr(e,t){if(!e||t.length===0)return e;let n=e;for(let i of t)!i||!n.includes(i)||(n=n.split(i).join(jL));return n}o(Lr,"redactSecrets");function fd(e,t){return Lr(tne(e),t)}o(fd,"redactCredentials");function nne(e,t){let n=o(i=>typeof i=="string"?t(i):Array.isArray(i)?i.map(n):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([r,s])=>[r,n(s)])):i,"walk");return n(e)}o(nne,"mapStrings");function _c(e,t){return t.length===0?e:nne(e,n=>Lr(n,t))}o(_c,"redactDeep");var uCe=new TextDecoder("utf-8",{fatal:!0});var zL=600,Hg=300;function VL(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(VL,"streamText");function rne(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[VL(t?.stderr),VL(t?.stdout)].filter(Boolean);return i.length?[n.split(`
54
+ `,{mode:493})}catch{return}return`bash ${Ff(t)}`}}o(mE,"scriptedCommand");function Ff(e){return`'${e.split("'").join("'\\''")}'`}o(Ff,"shQuote");var EE="data-safety-isolation.json";var Lf=new Map;function yE(e){let t=de.openSync(e,"r"),n=Buffer.alloc(4);try{if(de.readSync(t,n,0,4,0)!==4)return!1}finally{de.closeSync(t)}let i=n.readUInt32BE(0);return i===2135247942||[4277009102,4277009103,3405691582,3405691583,3472551422,3489328638,3199925962,3216703178].includes(i)}o(yE,"isNativeExecutable");function MH(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}o(MH,"retainPath");var P0=/^(NODE_OPTIONS|NODE_PATH|BASH_ENV|BASHOPTS|SHELLOPTS|PS4|PROMPT_COMMAND|BASH_XTRACEFD|BASH_LOADABLES_PATH|ENV|ZDOTDIR|PYTHONPATH|PYTHONHOME|RUBYOPT|PERL5OPT|PERL5LIB|GCONV_PATH|OPENSSL_CONF|OPENSSL_ENGINES|LD_.*|DYLD_.*|BASH_FUNC_.*)$/,jH=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function nl(e,t){let n={...t};n.PATH=e.bootstrapPath??U0(e.roots,process.env.PATH??"/usr/bin:/bin").map(i=>(MH(e,i),i)).join(Pe.delimiter),e.bootstrapPath=n.PATH,n.HOME=process.env.HOME,n.SHELL="/bin/bash";for(let i of["TMPDIR","TMP","TEMP"])process.env[i]?n[i]=process.env[i]:delete n[i];for(let i of Object.keys(n))P0.test(i)&&delete n[i];return n}o(nl,"bootstrapEnv");function U0(e,t){return t.split(Pe.delimiter).flatMap(n=>{if(!Pe.isAbsolute(n))return[];try{let i=de.realpathSync(n);if(ao(e,i)||e.some(r=>Na(i,r)))return[];for(let r of de.readdirSync(i)){let s=Pe.join(i,r);try{de.accessSync(s,de.constants.X_OK)}catch{continue}if(de.statSync(s).isFile()&&ao(e,de.realpathSync(s)))return[]}return[i]}catch{return[]}})}o(U0,"trustedPathEntries");var Na=o((e,t)=>t===e||t.startsWith(e+Pe.sep),"inside");function ao(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(i=>{try{return de.realpathSync(i)}catch{return i}});return[...e,...n].some(i=>Na(i,t))}o(ao,"unsafeToolPath");function Of(e,t,n,i=r=>Et(e,r)){let r=t.includes(Pe.sep)?[Pe.resolve(n,t)]:(nl(e,{PATH:process.env.PATH}).PATH??"").split(Pe.delimiter).map(s=>Pe.join(s,t));for(let s of r)try{if(de.accessSync(s,de.constants.X_OK),de.statSync(s).isFile())return de.realpathSync(s)}catch{}throw i(`a trusted executable could not be resolved (${t})`)}o(Of,"executableAt");function F0(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let i=Of(e,t,e.roots[0]);return bE(e.roots[0],[{command:i}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,i),i}o(F0,"bootstrapExecutable");function IE(e,t){let n=rl(e);return n?{executable:F0(n,t),env:nl(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}o(IE,"bootstrapTool");function rl(e){let t=Pe.resolve(e);try{t=de.realpathSync(e)}catch{}let n=[...Lf.values()],i=n.find(r=>r.roots.some(s=>Na(s,t)));if(i)return i;if(n.length===1)return n[0];if(n.length>1)throw Et(n[0],"a command outside the run roots has no unambiguous safety boundary")}o(rl,"forCwd");function Et(e,t){return e.failure=t,O0(e.ctx,t),new Error(`Shared-environment isolation unavailable: ${t}`)}o(Et,"refusal");function O0(e,t){let n=Lf.get(e.outputsDir);n&&(n.incident=t),de.mkdirSync(e.outputsDir,{recursive:!0});let i=Pe.join(e.outputsDir,EE),r=`${i}.${(0,N0.randomUUID)()}.tmp`;de.writeFileSync(r,JSON.stringify({reason:"isolation_unavailable",detail:t,actionRequired:!0},null,2),{mode:384,flag:"wx"}),de.renameSync(r,i)}o(O0,"recordIsolationFailure");function bE(e,t,n=[],i=[],r=!1){let s=rl(e);if(!s)return t.map(h=>({command:h.command,args:[...h.args??[]]}));let a=o(h=>{s.protectedPaths?.includes(h)||(s.protectedPaths??=[]).push(h)},"retain"),c=new Set,u=new Set,l=o(h=>{try{return de.realpathSync(h)}catch{throw Et(s,`unresolved tool asset: ${h}`)}},"realAsset"),p=o(h=>{let m=l(h);if(ao(s.roots,m)||s.roots.some(I=>Na(m,I)))throw Et(s,"a configured tool package or dependency is installed in a sandbox-writable location");a(m);let E=o(I=>{if(!c.has(I)){c.add(I);for(let b of de.readdirSync(I,{withFileTypes:!0})){let v=Pe.join(I,b.name);if(b.isSymbolicLink()){let R=l(v);if(ao(s.roots,R))throw Et(s,"a configured tool dependency is installed in a sandbox-writable location");de.statSync(R).isDirectory()?p(R):f(R)}else b.isDirectory()&&E(v)}}},"visit");E(m)},"protectDirectory"),f=o((h,m=!1,E=!1)=>{let I=l(h);if(ao(s.roots,I))throw Et(s,"a configured tool executable or package is installed in a sandbox-writable location");if(a(I),!m&&u.has(I))return;u.add(I);let b,v=de.openSync(I,"r"),R=Buffer.alloc(256);try{de.readSync(v,R,0,R.length,0)}finally{de.closeSync(v)}if(m){let $=R.toString().split(/\r?\n/,1)[0];if($.startsWith("#!")){let C=$.slice(2).trim().split(/\s+/),D=C[0];if(Pe.basename(D)==="env"){let ae=Of(s,D,e);if(ao(s.roots,ae)||!yE(ae))throw Et(s,`unsafe shebang launcher: ${D}`);a(ae),C.shift(),C[0]==="-S"&&C.shift()}let B=de.statSync(I),K=r&&(Na("/usr/bin",I)||Na("/bin",I))&&B.uid===0&&(B.mode&18)===0&&/^(?:sh|bash)$/.test(Pe.basename(C[0]));if(C.length!==1||!/^(?:node|nodejs|bun)$/.test(Pe.basename(C[0]))&&!K)throw Et(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(b=Of(s,C[0],e),ao(s.roots,b)||!yE(b))throw Et(s,`unsafe shebang interpreter: ${C[0]}`);a(b)}else if(!yE(I))throw Et(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(E||/\.[cm]?[jt]s$/.test(I)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(R.toString())){let $=Pe.dirname(I);for(let C=$;;C=Pe.dirname(C)){if(de.existsSync(Pe.join(C,"package.json"))){$=C;break}if(Pe.dirname(C)===C)break}p($);for(let C=$;;C=Pe.dirname(C)){let D=Pe.join(C,"node_modules");if(de.existsSync(D)&&de.statSync(D).isDirectory()&&p(D),Pe.basename(C)==="node_modules"&&p(C),Pe.dirname(C)===C)break}}return b},"check"),g=[];for(let h of t){let m=Of(s,h.command,e),E=f(m,!0),I=Pe.basename(de.realpathSync(m));if(!r&&/^(?:sh|bash|dash|zsh|ksh|fish|csh|tcsh|python[\d.]*|pypy[\d.]*|perl[\d.]*|ruby[\d.]*|php[\d.]*|lua[\d.]*|java|deno|uv|uvx|pipx|poetry|pdm|Rscript|pwsh|powershell|env|xargs|nohup|nice|stdbuf|timeout)$/.test(I))throw Et(s,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(I)&&h.args?.length)throw Et(s,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let b;if(!r&&/^(?:node|nodejs|bun)$/.test(I)){let v=h.args??[],R=v[0]==="--"||I==="bun"&&v[0]==="run"?v[1]:v[0];if(!R||R.startsWith("-")||!de.existsSync(Pe.resolve(e,R))||!de.statSync(Pe.resolve(e,R)).isFile())throw Et(s,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");b=Pe.resolve(e,R)}g.push(E&&!r?{command:E,args:[m,...h.args??[]]}:{command:m,args:[...h.args??[]]});for(let v of h.args??[]){let R=Pe.resolve(e,v);!v.startsWith("-")&&de.existsSync(R)&&de.statSync(R).isFile()&&f(R,!1,R===b)}}for(let h of n)f(h);for(let h of i){let m=l(h);p(m);let E=o(R=>{f(R);try{return JSON.parse(de.readFileSync(R,"utf8"))}catch{throw Et(s,`the plugin configuration could not be read: ${R}`)}},"readJson"),I=o(R=>{if(!R||typeof R!="object")return;if(Array.isArray(R)){R.forEach(I);return}let $=R;if($.type==="command"){if(typeof $.command!="string")throw Et(s,"the plugin command hook has no literal command");let C=_a($.command.replace(/\$\{CLAUDE_PLUGIN_ROOT\}/g,m));if(!C.steps)throw Et(s,"the plugin command hook needs a literal native/Node command whose assets can be retained");for(let D of C.steps)bE(e,[{command:D[0],args:D.slice(1)}])}Object.values($).forEach(I)},"hooks"),b=Pe.join(m,".claude-plugin/plugin.json");if(de.existsSync(b)){let R=E(b);if(!R||typeof R!="object"||Array.isArray(R))throw Et(s,"the plugin manifest is not an object");let $=R;if($.mcpServers)throw Et(s,"declare plugin MCP servers through the run's validated MCP configuration");let C=o(D=>{typeof D=="string"?I(E(Pe.resolve(m,D))):Array.isArray(D)?D.forEach(C):I(D)},"hookDocuments");C($.hooks)}let v=Pe.join(m,"hooks/hooks.json");if(de.existsSync(v)&&I(E(v)),de.existsSync(Pe.join(m,".mcp.json")))throw Et(s,"declare plugin MCP servers through the run's validated MCP configuration")}return g}o(bE,"assertToolAssetsSafe");function as(e,t,n,i="data-safety-proxy"){let r=rl(t);if(!r)return{argv:[...e],env:n};let s=i==="open"?r.openSettings:r.settings;if(r.failure||!r.cli||!r.node||!s||!r.env)throw Et(r,r.failure??"the run boundary has not finished initialization");if(!de.existsSync(r.cli)||!de.existsSync(s)||!de.existsSync(r.node))throw Et(r,"the pinned sandbox runtime or its configuration is unavailable");try{if(JSON.parse(de.readFileSync(r.statusFile,"utf8")).notRun)throw new Error("the guarded proxy is unavailable")}catch{throw Et(r,"the guarded proxy is unavailable")}let a=i==="open",c=a?{...n,PATH:U0(r.roots,n.PATH??"").join(Pe.delimiter)}:n,u=nl(r,a?{...c}:{...c,...r.env}),l=Object.keys(c).filter(p=>(["PATH","HOME","SHELL"].includes(p)||P0.test(p)&&!jH.test(p))&&c[p]!==void 0).map(p=>`${p}=${c[p]}`);return{argv:[r.node,r.cli,"--settings",s,"--","/usr/bin/env",...l,...GH(r),...a?["NODE_USE_ENV_PROXY=1",...r.openTrust?["SSL_CERT_FILE","REQUESTS_CA_BUNDLE","CURL_CA_BUNDLE"].map(p=>`${p}=${r.openTrust}`):[]]:[],...e],env:u}}o(as,"protectedCommand");function GH(e){let t=e.noProxy??"";return[`NO_PROXY=${t}`,`no_proxy=${t}`,...e.tmp?["TMPDIR","TMP","TEMP"].map(n=>`${n}=${e.tmp}`):[]]}o(GH,"sandboxCommandEnv");function Pa(e){return!!rl(e)}o(Pa,"hasNetworkBoundary");function Mf(e,t=process.env){let n=rl(e);return n?nl(n,{...t,...n.env}):t}o(Mf,"networkBoundaryEnv");var L0=["--no-pager","-c","core.hooksPath=/dev/null","-c","core.fsmonitor=false","-c","commit.gpgsign=false","-c","tag.gpgsign=false","-c","core.sshCommand=/usr/bin/false","-c","credential.helper=","-c","core.askPass=/usr/bin/false","-c","core.alternateRefsCommand=","-c","diff.external=","-c","protocol.allow=never","-c","protocol.https.allow=always"],zH="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function qH(e){let t={...e,GIT_ALLOW_PROTOCOL:"https",GIT_TERMINAL_PROMPT:"0",GIT_ASKPASS:"/usr/bin/false",GIT_EDITOR:"/usr/bin/true",GIT_SEQUENCE_EDITOR:"/usr/bin/true"};for(let n of["GIT_CONFIG","GIT_CONFIG_PARAMETERS","GIT_EXEC_PATH","GIT_EXTERNAL_DIFF","GIT_SSH","GIT_SSH_COMMAND","GIT_SSH_VARIANT","GIT_PROXY_COMMAND","GIT_PAGER"])delete t[n];for(let n of tl)delete t[n];return t}o(qH,"gitEnv");function JH(e,t){let n=IE(e,"git"),i=n.executable,r=Mf(e,{...qH(t),PATH:n.env.PATH}),s=as([i,...L0,"config","--null","--name-only","--get-regexp",zH],e,r),a=[];try{a=(0,il.execFileSync)(s.argv[0],s.argv.slice(1),{cwd:e,env:s.env,encoding:"utf8",stdio:["ignore","pipe","pipe"],timeout:3e4}).split("\0").filter(Boolean)}catch(u){if(u.status!==1)throw u}if(a.some(u=>u.includes("=")))throw new Error("protected Git cannot safely disable an executable Git configuration key containing '='");let c=a.flatMap(u=>["-c",`${u}=${u.startsWith("merge.")?"false":""}`]);return{binary:i,env:r,config:[...L0,...c]}}o(JH,"gitPolicy");function jf(e,t,n=process.env){if(!Pa(t))return{argv:["git",...e],env:n};let i=JH(t,n),r=[...e],s=new Set(["-c","-C","--config-env","--git-dir","--work-tree","--namespace","--super-prefix","--exec-path"]);for(let a=0;a<r.length;a++){if(s.has(r[a])){a++;continue}if(!r[a].startsWith("-")){r[a]==="diff"&&r.splice(a+1,0,"--no-ext-diff","--no-textconv");break}}return as([i.binary,...i.config,...r],t,i.env)}o(jf,"protectedGitCommand");function Ct(e,t){let n=jf(e,t.cwd,t.env??process.env);return(0,il.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(Ct,"execGitSync");function vE(e,t){let n=jf(e,t.cwd,t.env??process.env);return(0,il.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(vE,"spawnGitSync");var IH=require("node:zlib");Dc();var qg=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),OL=o((e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,"tests"),Jg={listSeparator:", ",testRecommendationsImplementedHeader:o((e,t)=>`\u{1F4A1} Test Recommendations Implemented (${e} test${e===1?"":"s"}${t>e?`, ${t} cases`:""})`,"testRecommendationsImplementedHeader"),testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:o(e=>`${qg(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${qg(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${qg(e)} reused`,"reused"),verified:o(e=>`${qg(e)} verified`,"verified"),unresolved:o(e=>`${e} not resolvable to POM source (informational, not declines)`,"unresolved"),candidates:o(e=>`${e} candidate POM file${e===1?"":"s"} detected`,"candidates"),verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:o(e=>`kept inline: ${e}`,"keptInline"),gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:o(e=>`\u2705 Test Maintenance (${e})`,"testMaintenanceHeader"),maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:o(e=>`\u{1F9EA} Test Results (${e})`,"testResultsHeader"),columnVideo:"Video",videoDownloadLink:o(e=>`[\u{1F4F9} download](${e})`,"videoDownloadLink"),videosArtifactFallback:o(e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F Issues Found (${e})`,"issuesFoundHeader"),configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:o(e=>e?"passed against the running app":"passed","passed"),notRun:o(e=>e?"not run against a live app this run":"not run this run","notRun"),failedBug:o(e=>e?"failed against the running app":"failed","failedBug"),failedTest:o(e=>`failed \u2014 the test is at fault, not the app (${e})`,"failedTest"),executedOf:o((e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,"executedOf"),noneExecuted:o(e=>e?"; none were executed against a live app this run.":"; none were executed this run.","noneExecuted"),staleResult:"From a run before this file's last change, not of the delivered test:"},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",missingSecret:o(e=>`The app could not be started this run: it needs ${e}, which this run had no value for. Nothing was tested against a live app.`,"missingSecret"),testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",findingsNotVerified:o(e=>`No test result confirms or refutes the suspected defects at ${e}.`,"findingsNotVerified"),failedAlone:o(e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,"failedAlone"),missingCaseResults:o((e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},"missingCaseResults"),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:o(e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,"mockedDependency"),finalizeNotReady:o(e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,"finalizeNotReady"),ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:o(e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,"ciNotCoveredBecause"),ciUnconfirmed:o(e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,"ciUnconfirmed"),ciUnconfirmedAbsent:o(e=>`Testbot could not confirm that the repo's CI leaves out ${e}, which need services it does not start: check that CI does not run them.`,"ciUnconfirmedAbsent"),ciNotIntegrated:o(e=>`Not yet CI-integrated: ${e} need services the repo's CI does not start, so Testbot put them where CI does not run them. The CI notes say what to change to run them in CI.`,"ciNotIntegrated"),ciUnprovisioned:o(e=>`The repo's CI runs ${e} without starting what they need, so CI will fail on them until it starts those services.`,"ciUnprovisioned"),ciWithheld:o(e=>`Not in the tests PR: the repo's CI would run ${e} without starting what they need, which would fail CI. The CI notes say what to change to run them.`,"ciWithheld"),ciResultsUnread:o(e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,"ciResultsUnread"),browserSuiteReadOnly:o((e,t)=>`${e} has a browser suite, but this run could not write there, so its ui tests are in ${t}.`,"browserSuiteReadOnly"),sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:o(e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,"lintNotCovered"),analysisUnverified:o(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.`,"analysisUnverified"),unitTestsNotRun:o(e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,"unitTestsNotRun"),componentsNotTested:o(e=>`Not tested: changed parts of the code the plan did not test. ${e}`,"componentsNotTested"),componentsWithoutReason:o(e=>`The plan gave no reason for leaving out: ${e}.`,"componentsWithoutReason"),targetNotesDeviation:o(e=>`Tests were not put where the Target notes say tests go: ${e}`,"targetNotesDeviation"),testSettingsDiffer:o(e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,"testSettingsDiffer"),stageSalvaged:o((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.`,"stageSalvaged"),downstreamNotChecked:o(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}`,"downstreamNotChecked"),browserBuildNotDeclared:o((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.`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,"videoMissing"),testsCouldNotRunHere:o((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}`,"testsCouldNotRunHere"),modelProviderDenied:o((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.`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`${t}, the model provider, interrupted the ${e} step. Testbot kept what that step had produced.`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`${e}, the model provider, interrupted planning. Testbot kept the plan it had and reports the test results it obtained.`+(t?" Please try again later.":""),"planInterruptedByProvider"),modelProviderUnavailable:o((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.`,"modelProviderUnavailable"),dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:o(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.`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:o((e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.","dataSafetyIsolationEnforced"),dataSafetyIsolationRefused:"Some checks could not run with the shared-environment protection in place. Testbot did not run them without it.",dataSafetyProxyAuthCreates:o(e=>`The plan probes or the tests sent sign-in or sign-up requests: ${e}. The data-safety proxy lets these through and does not track what they create, for example a new account.`,"dataSafetyProxyAuthCreates"),dataSafetyGuardedProbes:"plan probes",dataSafetyGuardedTests:"test runs",dataSafetyAnd:" and ",dataSafetyCleanupConfirmed:"Testbot ran each test's declared cleanup, and each succeeded.",dataSafetyLeftRecords:o(e=>`These tests declare records they cannot delete from the shared environment: ${e}.`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`The cleanup of ${e} failed: what they created may still be in the shared environment.`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`The cleanup of ${e} is not known: Testbot did not check their cleanup.`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot could not run this validation inside the shared-environment isolation it requires, so it did not validate the change.",gap:o(e=>`Shared-environment isolation unavailable: ${e}`,"gap"),nextStep:"Fix what the gap names, then run the validation again."},nextSteps:{componentMismatch:o((e,t,n,i)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${i}, the commit this run validates.`,"componentMismatch"),componentUnverified:o((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}.`,"componentUnverified"),componentUnread:o((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.`,"componentUnread"),deployCommit:o((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.`,"deployCommit"),addSecret:o((e,t)=>`Add ${t?"a secret":"secrets"} named ${e} on the workflow host, as a GitHub Actions secret or, on Azure DevOps, a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library. Then add ${t?"it":"them"} under Credentials on the Target's Setup page, and run Testbot again: a run's workflow passes Testbot only the Target's credentials, each from the workflow host's secret it is mapped to, and the app cannot start without ${t?"it":"them"}. Testbot does not make up a value.`,"addSecret")},providerOutageHeadline:o((e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,"providerOutageHeadline"),providerOutageActionStatusPage:o(e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`Testbot was rate-limited by ${e} (HTTP 429).`,"providerRateLimitHeadline"),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:o(e=>`The account behind ${e} has reached its usage limit.`,"providerUsageLimitHeadline"),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:o(e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,"providerAuthExpiredHeadline"),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:o(e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,"providerTimeoutHeadline"),providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:o(e=>`Tests for source pull request ${e}`,"testsSourcePullRequest"),validatedTogether:o(e=>`Pull requests validated together: ${e}`,"validatedTogether"),requestedByPerson:o(e=>`Requested by ${e}`,"requestedByPerson"),requestedByPolicy:o(e=>`Started by the Validation Policy ${e}`,"requestedByPolicy"),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:o(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).`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,"unitTestsInFile"),addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:o((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.`,"testPackageLine"),appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:o((e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,"dependencyChangeLine"),testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:o((e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,"trustedCheckPassed"),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:o((e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:o((e,t,n,i)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${i} executed)`,"coverageCaption"),coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:o((e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,"requirementsHeader"),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:o(e=>e?`${e} hook`:"commit hook","commitHook"),commitRefusedByHook:o((e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,"commitRefusedByHook"),commitHookCouldNotRun:o((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}\`.`,"commitHookCouldNotRun"),maintenanceActions:{},stoppedEarly:o((e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,"stoppedEarly"),viewInSkyramp:o(e=>` [View in Skyramp](${e})`,"viewInSkyramp"),testsPr:{summaryHeader:"### Summary",targets:"The tests target:",moreItems:o(e=>`and ${e} more`,"moreItems"),counts:o((e,t)=>`${OL(e,"new")} and ${OL(t,"maintained")}.`,"counts"),types:o(e=>`Test types: ${e}.`,"types"),statusHeader:"### Validation status",noChange:"\u2139\uFE0F Nothing changed since the baseline.",noTestRan:"No test ran, and no existing evidence was accepted.",noLiveApp:"No live app (SUT) was available, so the tests were not run.",resultCounts:o((e,t,n)=>`Test results: ${e} passed, ${t} failed, ${n} not run.`,"resultCounts"),limitations:"Important failures and limitations:",verdict:o(e=>`The run's verdict is in [Run details](${e}).`,"verdict"),runningHeader:"### Running the tests",environment:o(e=>`The tests read these environment variables, which the job that runs them must set: ${e}.`,"environment"),filesChanged:"Review each test in the **Files changed** tab."},descriptionCut:o((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})`:""}_`,"descriptionCut"),testsReplaced:o((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(" "),"testsReplaced"),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:o(e=>`Unable to contact the mothership ${e}. Please try again later.`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot could not start: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(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.`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[View run](${e})_`,"viewRun"),testsPrNotOpened:o((e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,"testsPrNotOpened"),testsNotDelivered:o(e=>`The tests could not be delivered: ${e}`,"testsNotDelivered"),testsNotPushed:o((e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,"testsNotPushed"),testsPrRetargeted:o(e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,"testsPrRetargeted"),testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:o(e=>`The tests were committed but no PR was opened: ${e}.`,"committedNoPr"),testsNotProposed:o(e=>`The tests were not proposed in a pull request: ${e}.`,"testsNotProposed")}};var LL={testRecommendationsImplementedHeader:o((e,t)=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08\u30C6\u30B9\u30C8 ${e}\u4EF6${t>e?`\u3001\u30B1\u30FC\u30B9 ${t}\u4EF6`:""}\uFF09`,"testRecommendationsImplementedHeader"),listSeparator:"\u3001",testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,"reusedThenVerified"),reused:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,"reused"),verified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,"verified"),unresolved:o(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`,"unresolved"),candidates:o(e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,"candidates"),verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:o(e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,"keptInline"),gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:o(e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,"testMaintenanceHeader"),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:o(e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,"testResultsHeader"),columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:o(e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,"videoDownloadLink"),videosArtifactFallback:o(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})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,"issuesFoundHeader"),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:o(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","passed"),notRun:o(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","notRun"),failedBug:o(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","failedBug"),failedTest:o(e=>`\u5931\u6557\u3057\u307E\u3057\u305F \u2014 \u30A2\u30D7\u30EA\u3067\u306F\u306A\u304F\u30C6\u30B9\u30C8\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059\uFF08${e}\uFF09`,"failedTest"),executedOf:o((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`,"executedOf"),noneExecuted:o(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","noneExecuted"),staleResult:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u6700\u5F8C\u306E\u5909\u66F4\u3088\u308A\u524D\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093:"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",missingSecret:o(e=>`\u3053\u306E\u5B9F\u884C\u3067\u306F\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8D77\u52D5\u306B\u306F ${e} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u306B\u306F\u5024\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,"missingSecret"),testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",findingsNotVerified:o(e=>`\u6B21\u306E\u7B87\u6240\u306E\u7591\u308F\u3057\u3044\u6B20\u9665\u3092\u78BA\u8A8D\u307E\u305F\u306F\u5426\u5B9A\u3059\u308B\u30C6\u30B9\u30C8\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"findingsNotVerified"),failedAlone:o(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`,"failedAlone"),missingCaseResults:o((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}`},"missingCaseResults"),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:o(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`,"mockedDependency"),finalizeNotReady:o(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"}`,"finalizeNotReady"),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:o(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}`,"ciNotCoveredBecause"),ciUnconfirmedAbsent:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u5B9F\u884C\u3057\u306A\u3044\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u308C\u3089\u306F CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u306A\u3044\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"ciUnconfirmedAbsent"),ciUnconfirmed:o(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`,"ciUnconfirmed"),ciNotIntegrated:o(e=>`CI \u672A\u7D71\u5408: ${e} \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u3001Testbot \u306F CI \u304C\u5B9F\u884C\u3057\u306A\u3044\u5834\u6240\u306B\u914D\u7F6E\u3057\u307E\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,"ciNotIntegrated"),ciWithheld:o(e=>`\u30C6\u30B9\u30C8 PR \u306B\u542B\u3081\u3066\u3044\u307E\u305B\u3093: \u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001CI \u304C\u5931\u6557\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,"ciWithheld"),ciUnprovisioned:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u3059\u308B\u307E\u3067 CI \u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3067\u5931\u6557\u3057\u307E\u3059\u3002`,"ciUnprovisioned"),ciResultsUnread:o(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`,"ciResultsUnread"),browserSuiteReadOnly:o((e,t)=>`${e} \u306B\u306F\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u30B9\u30A4\u30FC\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u3067\u306F\u66F8\u304D\u8FBC\u3081\u306A\u3044\u305F\u3081\u3001UI \u30C6\u30B9\u30C8\u306F ${t} \u306B\u3042\u308A\u307E\u3059\u3002`,"browserSuiteReadOnly"),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:o(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`,"lintNotCovered"),analysisUnverified:o(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`,"analysisUnverified"),unitTestsNotRun:o(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}`,"unitTestsNotRun"),componentsNotTested:o(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}`,"componentsNotTested"),componentsWithoutReason:o(e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,"componentsWithoutReason"),targetNotesDeviation:o(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}`,"targetNotesDeviation"),testSettingsDiffer:o(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`,"testSettingsDiffer"),stageSalvaged:o((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`,"stageSalvaged"),downstreamNotChecked:o(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}`,"downstreamNotChecked"),browserBuildNotDeclared:o((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`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(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`,"resultsNotOfDeliveredTests"),videoMissing:o(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`,"videoMissing"),testsCouldNotRunHere:o((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}`,"testsCouldNotRunHere"),modelProviderDenied:o((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`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${t} \u306B\u3088\u308A ${e} \u306E\u6BB5\u968E\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u305D\u306E\u6BB5\u968E\u3067\u4F5C\u6210\u6E08\u307F\u306E\u5185\u5BB9\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u306B\u3088\u308A\u8A08\u753B\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u4F5C\u6210\u6E08\u307F\u306E\u8A08\u753B\u3092\u6B8B\u3057\u3001\u5F97\u3089\u308C\u305F\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u5831\u544A\u3057\u307E\u3059\u3002`+(t?"\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002":""),"planInterruptedByProvider"),modelProviderUnavailable:o((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`,"modelProviderUnavailable"),dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:o(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`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:o((e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002","dataSafetyIsolationEnforced"),dataSafetyIsolationRefused:"\u4E00\u90E8\u306E\u30C1\u30A7\u30C3\u30AF\u306F\u3001\u5171\u6709\u74B0\u5883\u306E\u4FDD\u8B77\u3092\u6709\u52B9\u306B\u3057\u305F\u307E\u307E\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F\u3001\u4FDD\u8B77\u306A\u3057\u3067\u305D\u308C\u3089\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyProxyAuthCreates:o(e=>`\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6\u307E\u305F\u306F\u30C6\u30B9\u30C8\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u8FFD\u8DE1\u3057\u307E\u305B\u3093\u3002`,"dataSafetyProxyAuthCreates"),dataSafetyGuardedProbes:"\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6",dataSafetyGuardedTests:"\u30C6\u30B9\u30C8\u306E\u5B9F\u884C",dataSafetyAnd:"\u3068",dataSafetyCleanupConfirmed:"Testbot \u306F\u5404\u30C6\u30B9\u30C8\u304C\u5BA3\u8A00\u3057\u305F\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u5B9F\u884C\u3057\u3001\u3059\u3079\u3066\u6210\u529F\u3057\u307E\u3057\u305F\u3002",dataSafetyLeftRecords:o(e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u304B\u3089\u524A\u9664\u3067\u304D\u306A\u3044\u30EC\u30B3\u30FC\u30C9\u3092\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059: ${e}\u3002`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u4F5C\u6210\u3057\u305F\u3082\u306E\u304C\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3063\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u4E0D\u660E\u3067\u3059\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u305B\u3093\u3002`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot \u306F\u3001\u5FC5\u8981\u306A\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u306E\u4E2D\u3067\u3053\u306E\u691C\u8A3C\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5909\u66F4\u3092\u691C\u8A3C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",gap:o(e=>`\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093: ${e}`,"gap"),nextStep:"\u30AE\u30E3\u30C3\u30D7\u306B\u8A18\u8F09\u3055\u308C\u305F\u554F\u984C\u3092\u89E3\u6D88\u3057\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},nextSteps:{componentMismatch:o((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`,"componentMismatch"),componentUnverified:o((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`,"componentUnverified"),componentUnread:o((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`,"componentUnread"),deployCommit:o((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`,"deployCommit"),addSecret:o((e,t)=>`\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306B ${e} \u3068\u3044\u3046\u540D\u524D\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\uFF08GitHub Actions \u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3001\u307E\u305F\u306F Azure DevOps \u3067\u306F\u30DB\u30B9\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u306E Pipelines \u203A Library \u306B\u3042\u308B skyramp-testbot \u5909\u6570\u30B0\u30EB\u30FC\u30D7\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u5909\u6570\uFF09\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6B21\u306B Target \u306E Setup \u30DA\u30FC\u30B8\u306E Credentials \u306B\u8FFD\u52A0\u3057\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5B9F\u884C\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C Testbot \u306B\u6E21\u3059\u306E\u306F Target \u306E\u8A8D\u8A3C\u60C5\u5831\u3060\u3051\u3067\u3001\u305D\u308C\u305E\u308C\u5BFE\u5FDC\u4ED8\u3051\u3089\u308C\u305F\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u304B\u3089\u6E21\u3055\u308C\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306F\u3053\u308C\u306A\u3057\u3067\u306F\u8D77\u52D5\u3067\u304D\u305A\u3001Testbot \u304C\u5024\u3092\u4F5C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,"addSecret")},providerOutageHeadline:o((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`,"providerOutageHeadline"),providerOutageActionStatusPage:o(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`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,"providerRateLimitHeadline"),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:o(e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,"providerUsageLimitHeadline"),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:o(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`,"providerAuthExpiredHeadline"),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:o(e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,"providerTimeoutHeadline"),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:o(e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,"testsSourcePullRequest"),validatedTogether:o(e=>`\u4E00\u7DD2\u306B\u691C\u8A3C\u3057\u305F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8: ${e}`,"validatedTogether"),requestedByPerson:o(e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,"requestedByPerson"),requestedByPolicy:o(e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,"requestedByPolicy"),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:o(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`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,"unitTestsInFile"),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:o((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`,"testPackageLine"),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:o((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}`:""}`,"dependencyChangeLine"),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:o((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:`,"trustedCheckPassed"),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:o((e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:o((e,t,n,i)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${i}\uFF09`,"coverageCaption"),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:o((e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,"requirementsHeader"),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:o(e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF","commitHook"),commitRefusedByHook:o((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`,"commitRefusedByHook"),commitHookCouldNotRun:o((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`,"commitHookCouldNotRun"),stoppedEarly:o((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}`,"stoppedEarly"),viewInSkyramp:o(e=>` [Skyramp \u3067\u8868\u793A](${e})`,"viewInSkyramp"),testsPr:{summaryHeader:"### \u6982\u8981",targets:"\u30C6\u30B9\u30C8\u306E\u5BFE\u8C61:",moreItems:o(e=>`\u307B\u304B ${e} \u4EF6`,"moreItems"),counts:o((e,t)=>`\u65B0\u898F\u30C6\u30B9\u30C8 ${e} \u4EF6\u3001\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u3057\u305F\u30C6\u30B9\u30C8 ${t} \u4EF6\u3002`,"counts"),types:o(e=>`\u30C6\u30B9\u30C8\u7A2E\u5225: ${e}\u3002`,"types"),statusHeader:"### \u691C\u8A3C\u30B9\u30C6\u30FC\u30BF\u30B9",noChange:"\u2139\uFE0F \u30D9\u30FC\u30B9\u30E9\u30A4\u30F3\u4EE5\u964D\u306B\u5909\u66F4\u306F\u3042\u308A\u307E\u305B\u3093\u3002",noTestRan:"\u5B9F\u884C\u3057\u305F\u30C6\u30B9\u30C8\u306F\u306A\u304F\u3001\u65E2\u5B58\u306E\u8A3C\u62E0\u3082\u63A1\u7528\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",noLiveApp:"\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",resultCounts:o((e,t,n)=>`\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${e} \u4EF6\u3001\u4E0D\u5408\u683C ${t} \u4EF6\u3001\u672A\u5B9F\u884C ${n} \u4EF6\u3002`,"resultCounts"),limitations:"\u91CD\u8981\u306A\u5931\u6557\u3068\u5236\u9650:",verdict:o(e=>`\u5B9F\u884C\u306E\u5224\u5B9A\u306F[\u5B9F\u884C\u306E\u8A73\u7D30](${e})\u306B\u3042\u308A\u307E\u3059\u3002`,"verdict"),runningHeader:"### \u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",environment:o(e=>`\u30C6\u30B9\u30C8\u306F\u6B21\u306E\u74B0\u5883\u5909\u6570\u3092\u8AAD\u307F\u53D6\u308A\u307E\u3059\u3002\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B\u30B8\u30E7\u30D6\u3067\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044: ${e}\u3002`,"environment"),filesChanged:"\u5404\u30C6\u30B9\u30C8\u306F **Files changed** \u30BF\u30D6\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},descriptionCut:o((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})`:""}_`,"descriptionCut"),testsReplaced:o((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(""),"testsReplaced"),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:o(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`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(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`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,"viewRun"),testsPrNotOpened:o((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`,"testsPrNotOpened"),testsNotDelivered:o(e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"testsNotDelivered"),testsNotPushed:o((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`,"testsNotPushed"),testsPrRetargeted:o(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`,"testsPrRetargeted"),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:o(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`,"committedNoPr"),testsNotProposed:o(e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,"testsNotProposed")}};var Kte={en:Jg,ja:LL},Xte="en";function Bs(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(Bs,"labelOf");function se(){return Kte[Xte]}o(se,"t");var ene=4,jL="\xABredacted\xBB";function GL(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=ene&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(GL,"redactionsFrom");function tne(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(tne,"redactGitCredentials");function Lr(e,t){if(!e||t.length===0)return e;let n=e;for(let i of t)!i||!n.includes(i)||(n=n.split(i).join(jL));return n}o(Lr,"redactSecrets");function fd(e,t){return Lr(tne(e),t)}o(fd,"redactCredentials");function nne(e,t){let n=o(i=>typeof i=="string"?t(i):Array.isArray(i)?i.map(n):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([r,s])=>[r,n(s)])):i,"walk");return n(e)}o(nne,"mapStrings");function _c(e,t){return t.length===0?e:nne(e,n=>Lr(n,t))}o(_c,"redactDeep");var uCe=new TextDecoder("utf-8",{fatal:!0});var zL=600,Hg=300;function VL(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(VL,"streamText");function rne(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[VL(t?.stderr),VL(t?.stdout)].filter(Boolean);return i.length?[n.split(`
55
55
  `)[0],...i].join(`
56
56
  `):n}o(rne,"thrownText");function qL(e,t,n,i=0){let r=e.join(t);if(r.length<=n)return r;let[s="",...a]=e;if(!a.length)return`${s.slice(0,n-1)}\u2026`;let c=s.length<=i?s:s.slice(0,Math.floor(n/3)),u=n-c.length-t.length-1;return`${c}${t}\u2026${a.join(t).slice(-u)}`}o(qL,"headAndTail");function JL(e,t){return qL(e.trim().split(`
57
57
  `),`
@@ -121,7 +121,7 @@ ${u}
121
121
 
122
122
  Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let c=a[1];if(t===a[0]){s(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){s(a);continue}}if(e.metadataRegistry.get(a[0])?.id){s(a);continue}if(c.cycle){s(a);continue}c.count>1&&e.reused==="ref"&&s(a)}e.external&&(e.sharedDefsExtractedFor=e.external)}o(Vs,"extractDefs");function S1(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let i of t){if(!i||typeof i!="object")return;S1(i);let r=Object.keys(i);if(r.length!==1||r[0]!=="type")return;let s=i.type;for(let a of Array.isArray(s)?s:[s]){if(typeof a!="string")return;n.includes(a)||n.push(a)}}delete e.anyOf,e.type=n.length===1?n[0]:n}o(S1,"compactTypeUnion");var k1=new Set(["type","properties","required","additionalProperties"]),C1=["oneOf","anyOf"];function w1(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}o(w1,"undeclaredConstraint");function bR(e){let t=[];for(let s of e){if(typeof s!="object"||s.type!=="object")return null;for(let a in s)if(!k1.has(a))return null;t.push(s)}let n={},i=new Set;for(let s of t){for(let a in s.properties){if(Object.prototype.hasOwnProperty.call(n,a))continue;let c=[];for(let l of t){let p=l.properties?.[a]??w1(l);p!=null&&(c.some(f=>JSON.stringify(f)===JSON.stringify(p))||c.push(p))}let u=c.length===1?c[0]:bR(c)??{allOf:c};qt(n,a,u)}for(let a of s.required??[])i.add(a)}let r={type:"object",properties:n};if(i.size&&(r.required=[...i]),t.every(s=>s.additionalProperties===!1))r.additionalProperties=!1;else{let s=[];for(let a of t){let c=w1(a);c&&!s.some(u=>JSON.stringify(u)===JSON.stringify(c))&&s.push(c)}s.length===1?r.additionalProperties=s[0]:s.length>1&&(r.additionalProperties={allOf:s})}return r}o(bR,"foldObjects");function eue(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let r of k1)if(r in e)return;let n=t.filter(r=>C1.some(s=>Array.isArray(r[s]))),i=null;if(!n.length)i=bR(t);else{let r=n[0],s=C1.find(u=>Array.isArray(r[u]));if(Object.keys(r).length!==1)return;let a=t.filter(u=>u!==r),c=r[s].map(u=>bR([...a,u]));if(c.some(u=>!u))return;i={[s]:c}}i&&(delete e.allOf,Rp(e,i))}o(eue,"foldIntersection");function zs(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=o(c=>{let u=e.seen.get(c);if(u.ref===null)return;let l=u.def??u.schema,p={...l},f=u.ref;if(u.ref=null,f){i(f);let h=e.seen.get(f),m=h.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(m)):Rp(l,m),Rp(l,p),c._zod.parent===f)for(let I in l)I==="$ref"||I==="allOf"||I in p||delete l[I];if(m.$ref&&h.def)for(let I in l)I==="$ref"||I==="allOf"||I in h.def&&JSON.stringify(l[I])===JSON.stringify(h.def[I])&&delete l[I]}let g=c._zod.parent;if(g&&g!==f){i(g);let h=e.seen.get(g);if(h?.schema.$ref&&(l.$ref=h.schema.$ref,h.def))for(let m in l)m==="$ref"||m==="allOf"||m in h.def&&JSON.stringify(l[m])===JSON.stringify(h.def[m])&&delete l[m]}e.override({zodSchema:c,jsonSchema:l,path:u.path??[]})},"flattenRef");if(!e.external||e.sharedEmitDoneFor!==e.external){for(let c of[...e.seen.entries()].reverse())i(c[0]);if(e.target!=="openapi-3.0")for(let c of e.seen.entries())S1(c[1].def??c[1].schema);for(let c of e.deferred)c();if(e.intersections.length){let c=new Map;for(let u of e.seen.values())for(let l of[u.schema,u.def]){let p=l?.allOf;if(!Array.isArray(p))continue;let f=c.get(p);f?f.push(l):c.set(p,[l])}for(let u of e.intersections)for(let l of c.get(u)??[])eue(l)}}let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(c)}Rp(r,n.defId?n.schema:n.def??n.schema);let s=e.metadataRegistry.get(t)?.id;s!==void 0&&r.id===s&&delete r.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let c of e.seen.entries()){let u=c[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,qt(a,u.defId,u.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let c=JSON.parse(JSON.stringify(r));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:Su(t,"input",e.processors),output:Su(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}o(zs,"finalize");function yn(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return yn(i.element,n);if(i.type==="set")return yn(i.valueType,n);if(i.type==="lazy")return yn(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault"||i.type==="catch")return yn(i.innerType,n);if(i.type==="intersection")return yn(i.left,n)||yn(i.right,n);if(i.type==="record"||i.type==="map")return yn(i.keyType,n)||yn(i.valueType,n);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:yn(i.in,n)||yn(i.out,n);if(i.type==="object"){for(let r in i.shape)if(yn(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(yn(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(yn(r,n))return!0;return!!(i.rest&&yn(i.rest,n))}return!1}o(yn,"isTransforming");var vR=o((e,t={})=>n=>{let i=Gs({...n,processors:t});return tt(e,i),Vs(i,e),zs(i,e)},"createToJSONSchemaMethod"),Su=o((e,t,n={})=>i=>{let{libraryOptions:r,target:s}=i??{},a=Gs({...r??{},target:s,io:t,processors:n});return tt(e,a),Vs(a,e),zs(a,e)},"createStandardJSONSchemaMethod");var ku=o((e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},"narrowMin"),Bu=o((e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},"narrowMax"),B1=o((e,t)=>{ku(e,"minimum",t),Bu(e,"maximum",t)},"narrowBoth"),$1=o((e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},"addDivisor"),T1=o((e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},"addPattern"),D1=o((e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},"intersectMime"),_1=o((e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},"setFormat"),R1=o((e,t)=>ku(e,"minimum",t.minimum),"minContributor"),Q1=o((e,t)=>Bu(e,"maximum",t.maximum),"maxContributor"),x1=o(e=>(t,n)=>{_1(t,n.format);let[i,r]=e[n.format];ku(t,"minimum",i),Bu(t,"maximum",r)},"formatContributor"),tue={greater_than:o((e,t)=>ku(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),"greater_than"),less_than:o((e,t)=>Bu(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),"less_than"),multiple_of:o((e,t)=>$1(e,t.value),"multiple_of"),number_format:x1(qd),bigint_format:x1(Jd),min_length:R1,max_length:Q1,length_equals:o((e,t)=>B1(e,t.length),"length_equals"),min_size:R1,max_size:Q1,size_equals:o((e,t)=>B1(e,t.size),"size_equals"),string_format:o((e,t)=>{_1(e,t.format),t.pattern&&T1(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},"string_format"),mime_type:o((e,t)=>D1(e,t.mime),"mime_type")};function _t(e){let t={},n=e._zod.def,i=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let s of i)tue[s._zod.def.check]?.(t,s._zod.def);let r=e._zod.bag;r.minimum!==void 0&&ku(t,"minimum",r.minimum),r.exclusiveMinimum!==void 0&&ku(t,"exclusiveMinimum",r.exclusiveMinimum),r.maximum!==void 0&&Bu(t,"maximum",r.maximum),r.exclusiveMaximum!==void 0&&Bu(t,"exclusiveMaximum",r.exclusiveMaximum),r.multipleOf!==void 0&&$1(t,r.multipleOf),r.format!==void 0&&(t.format??(t.format=r.format),r.format.includes("int")&&(t.isInt=!0)),r.mime&&D1(t,r.mime);for(let s of r.patterns??[])T1(t,s);return t}o(_t,"aggregateChecks");var nue={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},rue=new Map([[Zh,vw],[lp,Cw]]),N1=o(e=>rue.get(e)??e,"exactPattern"),SR=o((e,t,n,i)=>{let r=n;r.type="string";let{minimum:s,maximum:a,format:c,patterns:u,contentEncoding:l,laxFormat:p}=_t(e);if(typeof s=="number"&&(r.minLength=s),typeof a=="number"&&(r.maxLength=a),c&&(r.format=nue[c]??c,r.format===""&&delete r.format,(c==="time"||p)&&delete r.format),l&&(r.contentEncoding=l),u&&u.size>0){let f=[...u].map(N1);f.length===1?r.pattern=f[0].source:f.length>1&&(r.allOf=[...f.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},"stringProcessor"),kR=o((e,t,n,i)=>{let r=n,{minimum:s,maximum:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l,isInt:p}=_t(e);r.type=p?"integer":"number";let f=typeof l=="number"&&l>=(s??Number.NEGATIVE_INFINITY),g=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";if(f?h?(r.minimum=l,r.exclusiveMinimum=!0):r.exclusiveMinimum=l:typeof s=="number"&&(r.minimum=s),g?h?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u:typeof a=="number"&&(r.maximum=a),c){let m=new Set;for(let b of c)Number.isFinite(b)&&b!==0?m.add(Math.abs(b)):Dt(e,t,r,i,`A multipleOf divisor of ${b} cannot be represented in JSON Schema`);let[E,...I]=m;E!==void 0&&(r.multipleOf=E),I.length&&(r.allOf=[...r.allOf??[],...I.map(b=>({multipleOf:b}))])}},"numberProcessor"),BR=o((e,t,n,i)=>{n.type="boolean"},"booleanProcessor"),RR=o((e,t,n,i)=>{Dt(e,t,n,i,"BigInt cannot be represented in JSON Schema")},"bigintProcessor"),QR=o((e,t,n,i)=>{Dt(e,t,n,i,"Symbols cannot be represented in JSON Schema")},"symbolProcessor"),xR=o((e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),$R=o((e,t,n,i)=>{Dt(e,t,n,i,"Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),TR=o((e,t,n,i)=>{Dt(e,t,n,i,"Void cannot be represented in JSON Schema")},"voidProcessor"),DR=o((e,t,n,i)=>{n.not={}},"neverProcessor"),_R=o((e,t,n,i)=>{},"anyProcessor"),NR=o((e,t,n,i)=>{},"unknownProcessor"),PR=o((e,t,n,i)=>{Dt(e,t,n,i,"Date cannot be represented in JSON Schema")},"dateProcessor"),UR=o((e,t,n,i)=>{let r=e._zod.def,s=Zc(r.entries);if(s.length===0){n.not={};return}s.every(a=>typeof a=="number")&&(n.type="number"),s.every(a=>typeof a=="string")&&(n.type="string"),n.enum=s},"enumProcessor"),FR=o((e,t,n,i)=>{let r=e._zod.def;if(r.values.length===0){n.not={};return}let s=[];for(let a of r.values)if(a===void 0){if(Dt(e,t,n,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(Dt(e,t,n,i,"BigInt literals cannot be represented in JSON Schema"))return;s.push(Number(a))}else s.push(a);if(s.length!==0)if(s.length===1){let a=s[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else s.every(a=>typeof a=="number")&&(n.type="number"),s.every(a=>typeof a=="string")&&(n.type="string"),s.every(a=>typeof a=="boolean")&&(n.type="boolean"),s.every(a=>a===null)&&(n.type="null"),n.enum=s},"literalProcessor"),OR=o((e,t,n,i)=>{Dt(e,t,n,i,"NaN cannot be represented in JSON Schema")},"nanProcessor"),LR=o((e,t,n,i)=>{let r=n,s=e._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=s.source},"templateLiteralProcessor"),MR=o((e,t,n,i)=>{let r=n;r.type="string",r.format="binary",r.contentEncoding="binary";let{minimum:s,maximum:a,mime:c}=_t(e);s!==void 0&&(r.minLength=s),a!==void 0&&(r.maxLength=a),c&&(c.length===0?r.not={}:c.length===1?r.contentMediaType=c[0]:r.anyOf=c.map(u=>({contentMediaType:u})))},"fileProcessor"),jR=o((e,t,n,i)=>{n.type="boolean"},"successProcessor"),GR=o((e,t,n,i)=>{Dt(e,t,n,i,"Custom types cannot be represented in JSON Schema")},"customProcessor"),VR=o((e,t,n,i)=>{Dt(e,t,n,i,"Function types cannot be represented in JSON Schema")},"functionProcessor"),zR=o((e,t,n,i)=>{Dt(e,t,n,i,"Transforms cannot be represented in JSON Schema")},"transformProcessor"),qR=o((e,t,n,i)=>{Dt(e,t,n,i,"Map cannot be represented in JSON Schema")},"mapProcessor"),JR=o((e,t,n,i)=>{Dt(e,t,n,i,"Set cannot be represented in JSON Schema")},"setProcessor"),HR=o((e,t,n,i)=>{let r=n,s=e._zod.def,{minimum:a,maximum:c}=_t(e);typeof a=="number"&&(r.minItems=a),typeof c=="number"&&(r.maxItems=c),r.type="array",r.items=tt(s.element,t,{...i,path:[...i.path,"items"]})},"arrayProcessor");function Qp(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Qp(t.out):t.type==="catch"?Qp(t.innerType):e._zod.optin}o(Qp,"inputOptin");var YR=o((e,t,n,i)=>{let r=n,s=e._zod.def,a=s.shape;if(Object.getOwnPropertySymbols(a).length&&Dt(e,t,r,i,"Symbol keys cannot be represented in JSON Schema"))return;r.type="object",r.properties={};for(let l in a)qt(r.properties,l,tt(a[l],t,{...i,path:[...i.path,"properties",l]}));let u=[];for(let l of Object.keys(a)){let p=s.shape[l];(t.io==="input"?Qp(p)===void 0:p._zod.optout===void 0)&&u.push(l)}u.length>0&&(r.required=u),s.catchall?._zod.def.type==="never"?r.additionalProperties=!1:s.catchall?s.catchall&&(r.additionalProperties=tt(s.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),zm=o((e,t,n,i)=>{let r=e._zod.def,s=r.inclusive===!1,a=r.options.map((c,u)=>tt(c,t,{...i,path:[...i.path,s?"oneOf":"anyOf",u]}));s?n.oneOf=a:n.anyOf=a},"unionProcessor"),WR=o((e,t,n,i)=>{let r=e._zod.def,s=tt(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=tt(r.right,t,{...i,path:[...i.path,"allOf",1]}),c=o(l=>"allOf"in l&&Object.keys(l).length===1,"isSimpleIntersection"),u=[...c(s)?s.allOf:[s],...c(a)?a.allOf:[a]];n.allOf=u,t.intersections.push(u)},"intersectionProcessor"),ZR=o((e,t,n,i)=>{let r=n,s=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",c=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=s.items.map((E,I)=>tt(E,t,{...i,path:[...i.path,a,I]})),l=s.rest?tt(s.rest,t,{...i,path:[...i.path,c,...t.target==="openapi-3.0"?[s.items.length]:[]]}):null,p=s.items.length;for(;p>0;){let E=s.items[p-1];if(!(t.io==="input"?Qp(E)!==void 0:E._zod.optout==="optional"))break;p--}let f=s.items.length,g=!s.rest;t.target==="draft-2020-12"?(r.prefixItems=u,g?r.items=!1:l&&(r.items=l),p>0&&(r.minItems=p),g&&(r.maxItems=f)):t.target==="openapi-3.0"?(r.items={anyOf:u},l&&r.items.anyOf.push(l),p>0&&(r.minItems=p),g&&(r.maxItems=f)):(r.items=u,g?r.additionalItems=!1:l&&(r.additionalItems=l),p>0&&(r.minItems=p),g&&(r.maxItems=f));let{minimum:h,maximum:m}=_t(e);typeof h=="number"&&(r.minItems=h),typeof m=="number"&&(r.maxItems=m)},"tupleProcessor");function CR(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let m=e.get(t)?.def;if(!m)return t;let E=CR(e,m,n);return E===m?t:E}for(let m of["anyOf","oneOf"]){let E=t[m];if(!Array.isArray(E))continue;let I=E.map(b=>CR(e,b,n));I.some((b,v)=>b!==E[v])&&(t={...t,[m]:I})}let i=Array.isArray(t.type)?t.type:[t.type],r=!i.includes("string")&&i.some(m=>m==="number"||m==="integer"),s=t.enum??(t.const!==void 0?[t.const]:void 0);if(!r&&!s?.some(m=>typeof m=="number"))return t;let{minimum:a,maximum:c,exclusiveMinimum:u,exclusiveMaximum:l,multipleOf:p,format:f,id:g,...h}=t;return h.enum?h.enum=h.enum.map(m=>typeof m=="number"?String(m):m):typeof h.const=="number"&&(h.const=String(h.const)),r&&(h.type="string",s||(h.pattern=(i.includes("number")?Yi:rp).source)),h}o(CR,"stringifyKeyNames");var wR=new WeakMap;function iue(e){let t=new Map;for(let i of e.seen.values())i.def&&!t.has(i.schema)&&t.set(i.schema,i);let n=new Map;for(let i of wR.get(e)??[]){let r=e.seen.get(i),s=(r?.def??r?.schema)?.propertyNames;if(!s||s===!0||n.has(s))continue;let a=CR(t,s,new Set);a!==s&&n.set(s,a)}if(n.size)for(let i of e.seen.values())for(let r of[i.schema,i.def]){let s=r&&n.get(r.propertyNames);s&&(r.propertyNames=s)}}o(iue,"rewriteKeyNames");var KR=o((e,t,n,i)=>{let r=n,s=e._zod.def;r.type="object";let a=s.keyType,c=_t(a).patterns;if(s.mode==="loose"&&c&&c.size>0){let p=tt(s.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let f of c)qt(r.patternProperties,N1(f).source,p)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){r.propertyNames=tt(s.keyType,t,{...i,path:[...i.path,"propertyNames"]});let p=wR.get(t);p||(p=[],wR.set(t,p),t.deferred.push(()=>iue(t))),p.push(e)}r.additionalProperties=tt(s.valueType,t,{...i,path:[...i.path,"additionalProperties"]})}let u=a._zod.values,l=t.io==="input"&&Qp(s.valueType)!==void 0;if(u&&!s.partial&&!l){let p=[...u].filter(f=>typeof f=="string"||typeof f=="number");p.length>0&&(r.required=p.map(String))}},"recordProcessor"),XR=o((e,t,n,i)=>{let r=e._zod.def,s=tt(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},"nullableProcessor"),eQ=o((e,t,n,i)=>{let r=e._zod.def;tt(r.innerType,t,i);let s=t.seen.get(e);s.ref=r.innerType},"nonoptionalProcessor"),tQ=Symbol();function P1(e,t,n,i,r){let s=!1,a=JSON.stringify(e,(c,u)=>typeof u!="bigint"?u:(s=!0,null));return s?(Dt(t,n,i,r,"BigInt defaults cannot be represented in JSON Schema"),tQ):JSON.parse(a)}o(P1,"serializeDefaultValue");var nQ=o((e,t,n,i)=>{let r=e._zod.def;tt(r.innerType,t,i);let s=t.seen.get(e);s.ref=r.innerType;let a=P1(r.defaultValue,e,t,n,i);a!==tQ&&(n.default=a)},"defaultProcessor"),rQ=o((e,t,n,i)=>{let r=e._zod.def;tt(r.innerType,t,i);let s=t.seen.get(e);if(s.ref=r.innerType,t.io!=="input")return;let a=P1(r.defaultValue,e,t,n,i);a!==tQ&&(n._prefault=a)},"prefaultProcessor"),iQ=o((e,t,n,i)=>{let r=e._zod.def;tt(r.innerType,t,i);let s=t.seen.get(e);s.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{Dt(e,t,n,i,"Dynamic catch values are not supported in JSON Schema");return}n.default=a},"catchProcessor"),sQ=o((e,t,n,i)=>{let r=e._zod.def,s=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?s?r.out:r.in:r.out;tt(a,t,i);let c=t.seen.get(e);c.ref=a},"pipeProcessor"),oQ=o((e,t,n,i)=>{let r=e._zod.def;tt(r.innerType,t,i);let s=t.seen.get(e);s.ref=r.innerType,n.readOnly=!0},"readonlyProcessor"),aQ=o((e,t,n,i)=>{let r=e._zod.def;tt(r.innerType,t,i);let s=t.seen.get(e);s.ref=r.innerType},"promiseProcessor"),qm=o((e,t,n,i)=>{let r=e._zod.def;tt(r.innerType,t,i);let s=t.seen.get(e);s.ref=r.innerType},"optionalProcessor"),cQ=o((e,t,n,i)=>{let r=e._zod.innerType;tt(r,t,i);let s=t.seen.get(e);s.ref=r},"lazyProcessor"),Vm={string:SR,number:kR,boolean:BR,bigint:RR,symbol:QR,null:xR,undefined:$R,void:TR,never:DR,any:_R,unknown:NR,date:PR,enum:UR,literal:FR,nan:OR,template_literal:LR,file:MR,success:jR,custom:GR,function:VR,transform:zR,map:qR,set:JR,array:HR,object:YR,union:zm,intersection:WR,tuple:ZR,record:KR,nullable:XR,nonoptional:eQ,default:nQ,prefault:rQ,catch:iQ,pipe:sQ,readonly:oQ,promise:aQ,optional:qm,lazy:cQ};function Jm(e,t){if("_idmap"in e){let i=e,r=Gs({...t,processors:Vm}),s={};for(let u of i._idmap.entries()){let[l,p]=u;tt(p,r)}let a={},c={registry:i,uri:t?.uri,defs:s};r.external=c;for(let u of i._idmap.entries()){let[l,p]=u;Vs(r,p),qt(a,l,zs(r,p))}if(Object.keys(s).length>0){let u=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:s}}return{schemas:a}}let n=Gs({...t,processors:Vm});return tt(e,n),Vs(n,e),zs(n,e)}o(Jm,"toJSONSchema");var Hm=class{static{o(this,"JSONSchemaGenerator")}get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Gs({processors:Vm,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return tt(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Vs(this.ctx,t);let i=zs(this.ctx,t),{"~standard":r,...s}=i;return s}};var U1={};var Nu={};xr(Nu,{ZodAny:()=>xQ,ZodArray:()=>_Q,ZodBase64:()=>fy,ZodBase64URL:()=>Ay,ZodBigInt:()=>Du,ZodBigIntFormat:()=>my,ZodBoolean:()=>Tu,ZodCIDRv4:()=>dy,ZodCIDRv6:()=>py,ZodCUID:()=>iy,ZodCUID2:()=>sy,ZodCatch:()=>tx,ZodCodec:()=>Op,ZodCreditCard:()=>vQ,ZodCustom:()=>Lp,ZodCustomStringFormat:()=>ba,ZodDate:()=>Dp,ZodDefault:()=>YQ,ZodDiscriminatedUnion:()=>PQ,ZodE164:()=>gy,ZodEmail:()=>ey,ZodEmoji:()=>ny,ZodEnum:()=>Qu,ZodExactOptional:()=>by,ZodFile:()=>zQ,ZodFunction:()=>dx,ZodGUID:()=>ty,ZodIBAN:()=>CQ,ZodIPv4:()=>uy,ZodIPv6:()=>ly,ZodISODate:()=>Js,ZodISODateTime:()=>qs,ZodISODuration:()=>Ys,ZodISOTime:()=>Hs,ZodInstanceOf:()=>Ax,ZodIntersection:()=>UQ,ZodJWT:()=>hy,ZodKSUID:()=>cy,ZodLazy:()=>cx,ZodLiteral:()=>VQ,ZodMAC:()=>bQ,ZodMap:()=>jQ,ZodNaN:()=>rx,ZodNanoID:()=>ry,ZodNever:()=>TQ,ZodNonOptional:()=>vy,ZodNull:()=>RQ,ZodNullable:()=>HQ,ZodNumber:()=>$u,ZodNumberFormat:()=>va,ZodObject:()=>Np,ZodOptional:()=>Up,ZodPipe:()=>Fp,ZodPrefault:()=>ZQ,ZodPreprocess:()=>ix,ZodPromise:()=>lx,ZodReadonly:()=>sx,ZodRecord:()=>Ru,ZodSet:()=>GQ,ZodString:()=>xu,ZodStringFormat:()=>rt,ZodSuccess:()=>ex,ZodSymbol:()=>kQ,ZodTemplateLiteral:()=>ax,ZodTransform:()=>qQ,ZodTuple:()=>OQ,ZodType:()=>Te,ZodULID:()=>oy,ZodURL:()=>Tp,ZodUUID:()=>bi,ZodUndefined:()=>BQ,ZodUnion:()=>Pp,ZodUnknown:()=>$Q,ZodVoid:()=>DQ,ZodXID:()=>ay,ZodXor:()=>NQ,_ZodString:()=>Xm,_default:()=>WQ,_function:()=>YG,any:()=>kG,array:()=>_p,base64:()=>oG,base64url:()=>aG,bigint:()=>bG,boolean:()=>SQ,catch:()=>nx,check:()=>WG,cidrv4:()=>iG,cidrv6:()=>sG,codec:()=>zG,creditCard:()=>uG,cuid:()=>W1,cuid2:()=>Z1,currencyCode:()=>gG,custom:()=>ZG,date:()=>RG,describe:()=>KG,discriminatedUnion:()=>_G,e164:()=>cG,email:()=>L1,emoji:()=>H1,enum:()=>Ey,exactOptional:()=>JQ,file:()=>MG,float32:()=>mG,float64:()=>yG,function:()=>YG,guid:()=>M1,hash:()=>hG,hex:()=>AG,hostname:()=>fG,httpUrl:()=>J1,iban:()=>lG,instanceof:()=>eV,int:()=>Zm,int32:()=>EG,int64:()=>vG,intersection:()=>FQ,invertCodec:()=>qG,ipv4:()=>tG,ipv6:()=>rG,json:()=>nV,jwt:()=>dG,keyof:()=>QG,ksuid:()=>eG,lazy:()=>ux,literal:()=>LG,looseObject:()=>TG,looseRecord:()=>PG,mac:()=>nG,map:()=>UG,meta:()=>XG,nan:()=>VG,nanoid:()=>Y1,nativeEnum:()=>OG,never:()=>yy,nonoptional:()=>XQ,null:()=>QQ,nullable:()=>$p,nullish:()=>jG,number:()=>wQ,object:()=>xG,optional:()=>Ea,partialRecord:()=>NG,pipe:()=>Km,prefault:()=>KQ,preprocess:()=>rV,promise:()=>HG,readonly:()=>ox,record:()=>MQ,refine:()=>px,set:()=>FG,strictObject:()=>$G,string:()=>xp,stringFormat:()=>pG,stringbool:()=>tV,success:()=>GG,superRefine:()=>fx,symbol:()=>wG,templateLiteral:()=>JG,transform:()=>Iy,tuple:()=>LQ,uint32:()=>IG,uint64:()=>CG,ulid:()=>K1,undefined:()=>SG,union:()=>_u,unknown:()=>ya,url:()=>q1,uuid:()=>j1,uuidv4:()=>G1,uuidv6:()=>V1,uuidv7:()=>z1,void:()=>BG,xid:()=>X1,xor:()=>DG});var Ym={};xr(Ym,{endsWith:()=>mu,gt:()=>Ei,gte:()=>or,includes:()=>gu,length:()=>ha,lowercase:()=>fu,lt:()=>yi,lte:()=>sr,maxLength:()=>ga,maxSize:()=>js,mime:()=>Eu,minLength:()=>Wi,minSize:()=>Ii,multipleOf:()=>Ms,negative:()=>Lm,nonnegative:()=>jm,nonpositive:()=>Mm,normalize:()=>Iu,overwrite:()=>zr,positive:()=>Om,properties:()=>yu,property:()=>Gm,regex:()=>pu,size:()=>Aa,slugify:()=>wu,startsWith:()=>hu,toLowerCase:()=>vu,toUpperCase:()=>Cu,trim:()=>bu,uppercase:()=>Au});var F1=new WeakSet([Object.prototype,Error.prototype]);function Wm(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let i=n(this);return Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0})}})}o(Wm,"_lazyMethod");var O1=o((e,t)=>{nw.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);F1.has(n)||(F1.add(n),Wm(n,"format",i=>r=>Xd(i,r)),Wm(n,"flatten",i=>r=>Kd(i,r)),Wm(n,"addIssue",i=>r=>{i.issues.push(r),i.message=JSON.stringify(i.issues,Kc,2)}),Wm(n,"addIssues",i=>r=>{i.issues.push(...r),i.message=JSON.stringify(i.issues,Kc,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},"initializer"),oue=w("ZodError",O1),Fn=w("ZodError",O1,void 0,{Parent:Error});var uQ=ru(Fn),lQ=iu(Fn),dQ=su(Fn),pQ=ou(Fn),fQ=Rh(Fn),AQ=Qh(Fn),gQ=xh(Fn),hQ=$h(Fn),mQ=Th(Fn),yQ=Dh(Fn),EQ=_h(Fn),IQ=Nh(Fn);function cue(){Lt.localeError||vt(yp())}o(cue,"_ensureDefaultLocale");function Ia(){Lt.memoizer||vt({memoizer:mp()})}o(Ia,"_ensureDefaultMemoizer");var Te=w("ZodType",(e,t)=>(cue(),ke.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(N.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Xe(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(px(e,t))},superRefine(e,t){return this.check(fx(e,t))},overwrite(e){return this.check(zr(e))},optional(){return Ea(this)},exactOptional(){return JQ(this)},nullable(){return $p(this)},nullish(){return Ea($p(this))},nonoptional(e){return XQ(this,e)},array(){return _p(this)},or(e){return _u([this,e])},and(e){return FQ(this,e)},transform(e){return Km(this,Iy(e))},default(e){return WQ(this,e)},prefault(e){return KQ(this,e)},catch(e){return nx(this,e)},pipe(e){return Km(this,e)},readonly(){return ox(this)},describe(e){let t=this.clone();return Jt.add(t,{description:e}),t},meta(...e){if(e.length===0)return Jt.get(this);let t=this.clone();return Jt.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return N.hide(this,"~standard",{...qh(this),jsonSchema:{input:Su(this,"input"),output:Su(this,"output")}})},set"~standard"(e){N.own(this,"~standard",e)},parse:o(function e(t,n){return uQ(this,t,n,{callee:e})},"_parse"),parseAsync:o(async function e(t,n){return await lQ(this,t,n,{callee:e})},"_parseAsync"),safeParse(e,t){return dQ(this,e,t)},async safeParseAsync(e,t){return pQ(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){N.own(this,"spa",e)},validate(e,t){return ep(this,e,t)},validateAsync(e,t){return tp(this,e,t)},encode:o(function e(t,n){return fQ(this,t,n,{callee:e})},"_encode"),decode:o(function e(t,n){return AQ(this,t,n,{callee:e})},"_decode"),encodeAsync:o(async function e(t,n){return await gQ(this,t,n,{callee:e})},"_encodeAsync"),decodeAsync:o(async function e(t,n){return await hQ(this,t,n,{callee:e})},"_decodeAsync"),safeEncode(e,t){return mQ(this,e,t)},safeDecode(e,t){return yQ(this,e,t)},async safeEncodeAsync(e,t){return EQ(this,e,t)},async safeDecodeAsync(e,t){return IQ(this,e,t)},toJSONSchema(e){return vR(this,{})(e)},get description(){return Jt.get(this)?.description},get _def(){return this._zod.def}}),Xm=w("_ZodString",(e,t)=>{la.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>SR(e,n,i,r)},N.derived({format:o(e=>_t(e).format??null,"format"),minLength:o(e=>_t(e).minimum??null,"minLength"),maxLength:o(e=>_t(e).maximum??null,"maxLength")},{regex(...e){return this.check(pu(...e))},includes(...e){return this.check(gu(...e))},startsWith(...e){return this.check(hu(...e))},endsWith(...e){return this.check(mu(...e))},min(...e){return this.check(Wi(...e))},max(...e){return this.check(ga(...e))},length(...e){return this.check(ha(...e))},nonempty(...e){return this.check(Wi(1,...e))},lowercase(e){return this.check(fu(e))},uppercase(e){return this.check(Au(e))},trim(){return this.check(bu())},normalize(...e){return this.check(Iu(...e))},toLowerCase(){return this.check(vu())},toUpperCase(){return this.check(Cu())},slugify(){return this.check(wu())}})),xu=w("ZodString",(e,t)=>{la.init(e,t),Xm.init(e,t)},{email(e){return this.check(ym(ey,e))},url(e){return this.check(Cp(Tp,e))},jwt(e){return this.check(Fm(hy,e))},emoji(e){return this.check(wm(ny,e))},guid(e){return this.check(Em(ty,e))},uuid(e){return this.check(Im(bi,e))},uuidv4(e){return this.check(bm(bi,e))},uuidv6(e){return this.check(vm(bi,e))},uuidv7(e){return this.check(Cm(bi,e))},nanoid(e){return this.check(Sm(ry,e))},cuid(e){return this.check(km(iy,e))},cuid2(e){return this.check(Bm(sy,e))},ulid(e){return this.check(Rm(oy,e))},base64(e){return this.check(Nm(fy,e))},base64url(e){return this.check(Pm(Ay,e))},xid(e){return this.check(Qm(ay,e))},ksuid(e){return this.check(xm(cy,e))},ipv4(e){return this.check($m(uy,e))},ipv6(e){return this.check(Tm(ly,e))},cidrv4(e){return this.check(Dm(dy,e))},cidrv6(e){return this.check(_m(py,e))},e164(e){return this.check(Um(gy,e))},datetime(e){return this.check(wp(qs,e))},date(e){return this.check(Sp(Js,e))},time(e){return this.check(kp(Hs,e))},duration(e){return this.check(Bp(Ys,e))}});function xp(e){return FB(xu,e)}o(xp,"string");var rt=w("ZodStringFormat",(e,t)=>{et.init(e,t),Xm.init(e,t)}),qs=w("ZodISODateTime",(e,t)=>{vS.init(e,t),rt.init(e,t)}),Js=w("ZodISODate",(e,t)=>{CS.init(e,t),rt.init(e,t)}),Hs=w("ZodISOTime",(e,t)=>{wS.init(e,t),rt.init(e,t)}),Ys=w("ZodISODuration",(e,t)=>{SS.init(e,t),rt.init(e,t)}),ey=w("ZodEmail",(e,t)=>{dS.init(e,t),rt.init(e,t)});function L1(e){return ym(ey,e)}o(L1,"email");var ty=w("ZodGUID",(e,t)=>{uS.init(e,t),rt.init(e,t)});function M1(e){return Em(ty,e)}o(M1,"guid");var bi=w("ZodUUID",(e,t)=>{lS.init(e,t),rt.init(e,t)});function j1(e){return Im(bi,e)}o(j1,"uuid");function G1(e){return bm(bi,e)}o(G1,"uuidv4");function V1(e){return vm(bi,e)}o(V1,"uuidv6");function z1(e){return Cm(bi,e)}o(z1,"uuidv7");var Tp=w("ZodURL",(e,t)=>{AS.init(e,t),rt.init(e,t)});function q1(e){return Cp(Tp,e)}o(q1,"url");function J1(e){return Cp(Tp,{protocol:np,hostname:Sw,...N.normalizeParams(e)})}o(J1,"httpUrl");var ny=w("ZodEmoji",(e,t)=>{gS.init(e,t),rt.init(e,t)});function H1(e){return wm(ny,e)}o(H1,"emoji");var ry=w("ZodNanoID",(e,t)=>{hS.init(e,t),rt.init(e,t)});function Y1(e){return Sm(ry,e)}o(Y1,"nanoid");var iy=w("ZodCUID",(e,t)=>{mS.init(e,t),rt.init(e,t)});function W1(e){return km(iy,e)}o(W1,"cuid");var sy=w("ZodCUID2",(e,t)=>{yS.init(e,t),rt.init(e,t)});function Z1(e){return Bm(sy,e)}o(Z1,"cuid2");var oy=w("ZodULID",(e,t)=>{ES.init(e,t),rt.init(e,t)});function K1(e){return Rm(oy,e)}o(K1,"ulid");var ay=w("ZodXID",(e,t)=>{IS.init(e,t),rt.init(e,t)});function X1(e){return Qm(ay,e)}o(X1,"xid");var cy=w("ZodKSUID",(e,t)=>{bS.init(e,t),rt.init(e,t)});function eG(e){return xm(cy,e)}o(eG,"ksuid");var uy=w("ZodIPv4",(e,t)=>{kS.init(e,t),rt.init(e,t)});function tG(e){return $m(uy,e)}o(tG,"ipv4");var bQ=w("ZodMAC",(e,t)=>{RS.init(e,t),rt.init(e,t)});function nG(e){return LB(bQ,e)}o(nG,"mac");var ly=w("ZodIPv6",(e,t)=>{BS.init(e,t),rt.init(e,t)});function rG(e){return Tm(ly,e)}o(rG,"ipv6");var dy=w("ZodCIDRv4",(e,t)=>{QS.init(e,t),rt.init(e,t)});function iG(e){return Dm(dy,e)}o(iG,"cidrv4");var py=w("ZodCIDRv6",(e,t)=>{xS.init(e,t),rt.init(e,t)});function sG(e){return _m(py,e)}o(sG,"cidrv6");var fy=w("ZodBase64",(e,t)=>{$S.init(e,t),rt.init(e,t)});function oG(e){return Nm(fy,e)}o(oG,"base64");var Ay=w("ZodBase64URL",(e,t)=>{TS.init(e,t),rt.init(e,t)});function aG(e){return Pm(Ay,e)}o(aG,"base64url");var gy=w("ZodE164",(e,t)=>{DS.init(e,t),rt.init(e,t)});function cG(e){return Um(gy,e)}o(cG,"e164");var vQ=w("ZodCreditCard",(e,t)=>{_S.init(e,t),rt.init(e,t)});function uG(e){return MB(vQ,e)}o(uG,"creditCard");var CQ=w("ZodIBAN",(e,t)=>{NS.init(e,t),rt.init(e,t)});function lG(e){return jB(CQ,e)}o(lG,"iban");var hy=w("ZodJWT",(e,t)=>{PS.init(e,t),rt.init(e,t)});function dG(e){return Fm(hy,e)}o(dG,"jwt");var ba=w("ZodCustomStringFormat",(e,t)=>{US.init(e,t),rt.init(e,t)});function pG(e,t,n={}){return ma(ba,e,t,n)}o(pG,"stringFormat");function fG(e){return ma(ba,"hostname",ww,e)}o(fG,"hostname");function AG(e){return ma(ba,"hex",Ow,e)}o(AG,"hex");function gG(e){return ma(ba,"currency_code",Bw,e)}o(gG,"currencyCode");function hG(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=Cr[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return ma(ba,i,r,t)}o(hG,"hash");var $u=w("ZodNumber",(e,t)=>{nm.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kR(e,n,i,r),e.isFinite=!0},N.derived({minValue:o(e=>{let{minimum:t,exclusiveMinimum:n}=_t(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},"minValue"),maxValue:o(e=>{let{maximum:t,exclusiveMaximum:n}=_t(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},"maxValue"),isInt:o(e=>{let{isInt:t,multipleOf:n}=_t(e);return!!t||!!n?.some(Number.isSafeInteger)},"isInt"),format:o(e=>_t(e).format??null,"format")},{gt(e,t){return this.check(Ei(e,t))},gte(e,t){return this.check(or(e,t))},min(e,t){return this.check(or(e,t))},lt(e,t){return this.check(yi(e,t))},lte(e,t){return this.check(sr(e,t))},max(e,t){return this.check(sr(e,t))},int(e){return this.check(Zm(e))},safe(e){return this.check(Zm(e))},positive(e){return this.check(Ei(0,e))},nonnegative(e){return this.check(or(0,e))},negative(e){return this.check(yi(0,e))},nonpositive(e){return this.check(sr(0,e))},multipleOf(e,t){return this.check(Ms(e,t))},step(e,t){return this.check(Ms(e,t))},finite(){return this}}));function wQ(e){return VB($u,e)}o(wQ,"number");var va=w("ZodNumberFormat",(e,t)=>{FS.init(e,t),$u.init(e,t)});function Zm(e){return qB(va,e)}o(Zm,"int");function mG(e){return JB(va,e)}o(mG,"float32");function yG(e){return HB(va,e)}o(yG,"float64");function EG(e){return YB(va,e)}o(EG,"int32");function IG(e){return WB(va,e)}o(IG,"uint32");var Tu=w("ZodBoolean",(e,t)=>{dp.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>BR(e,n,i,r)});function SQ(e){return ZB(Tu,e)}o(SQ,"boolean");var Du=w("ZodBigInt",(e,t)=>{rm.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>RR(e,n,i,r)},N.derived({minValue:o(e=>_t(e).minimum??null,"minValue"),maxValue:o(e=>_t(e).maximum??null,"maxValue"),format:o(e=>_t(e).format??null,"format")},{gte(e,t){return this.check(or(e,t))},min(e,t){return this.check(or(e,t))},gt(e,t){return this.check(Ei(e,t))},lt(e,t){return this.check(yi(e,t))},lte(e,t){return this.check(sr(e,t))},max(e,t){return this.check(sr(e,t))},positive(e){return this.check(Ei(BigInt(0),e))},negative(e){return this.check(yi(BigInt(0),e))},nonpositive(e){return this.check(sr(BigInt(0),e))},nonnegative(e){return this.check(or(BigInt(0),e))},multipleOf(e,t){return this.check(Ms(e,t))}}));function bG(e){return XB(Du,e)}o(bG,"bigint");var my=w("ZodBigIntFormat",(e,t)=>{OS.init(e,t),Du.init(e,t)});function vG(e){return tR(my,e)}o(vG,"int64");function CG(e){return nR(my,e)}o(CG,"uint64");var kQ=w("ZodSymbol",(e,t)=>{LS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>QR(e,n,i,r)});function wG(e){return rR(kQ,e)}o(wG,"symbol");var BQ=w("ZodUndefined",(e,t)=>{MS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$R(e,n,i,r)});function SG(e){return iR(BQ,e)}o(SG,"_undefined");var RQ=w("ZodNull",(e,t)=>{jS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xR(e,n,i,r)});function QQ(e){return sR(RQ,e)}o(QQ,"_null");var xQ=w("ZodAny",(e,t)=>{GS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_R(e,n,i,r)});function kG(){return oR(xQ)}o(kG,"any");var $Q=w("ZodUnknown",(e,t)=>{VS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>NR(e,n,i,r)});function ya(){return aR($Q)}o(ya,"unknown");var TQ=w("ZodNever",(e,t)=>{zS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>DR(e,n,i,r)});function yy(e){return cR(TQ,e)}o(yy,"never");var DQ=w("ZodVoid",(e,t)=>{qS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>TR(e,n,i,r)});function BG(e){return uR(DQ,e)}o(BG,"_void");var Dp=w("ZodDate",(e,t)=>{JS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>PR(e,n,i,r),e.min=(n,i)=>e.check(or(n,i)),e.max=(n,i)=>e.check(sr(n,i))},N.derived({minDate:o(e=>{let{minimum:t}=_t(e);return t?new Date(t):null},"minDate"),maxDate:o(e=>{let{maximum:t}=_t(e);return t?new Date(t):null},"maxDate")},{}));function RG(e){return lR(Dp,e)}o(RG,"date");var _Q=w("ZodArray",(e,t)=>{Ia(),YS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>HR(e,n,i,r),e.element=t.element},{min(e,t){return this.check(Wi(e,t))},nonempty(e){return this.check(Wi(1,e))},max(e,t){return this.check(ga(e,t))},length(e,t){return this.check(ha(e,t))},unwrap(){return this.element}});function _p(e,t){return fR(_Q,e,t)}o(_p,"array");function QG(e){let t=e._zod.def.shape;return Ey(Object.keys(t))}o(QG,"keyof");var Np=w("ZodObject",(e,t)=>{Ia(),WS.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>YR(e,n,i,r),N.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Ey(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(N.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(N.mergeDefs(this._zod.def,{catchall:ya()}))},loose(){return this.clone(N.mergeDefs(this._zod.def,{catchall:ya()}))},strict(){return this.clone(N.mergeDefs(this._zod.def,{catchall:yy()}))},strip(){return this.clone(N.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return N.extend(this,e)},safeExtend(e){return N.safeExtend(this,e)},merge(e){return N.merge(this,e)},pick(e){return N.pick(this,e)},omit(e){return N.omit(this,e)},partial(...e){return N.partial(Up,this,e[0])},exactPartial(...e){return N.partial(by,this,e[0],"exactPartial")},required(...e){return N.required(vy,this,e[0])}});function xG(e,t){let n={type:"object",shape:e??{},...N.normalizeParams(t)};return new Np(n)}o(xG,"object");function $G(e,t){return new Np({type:"object",shape:e,catchall:yy(),...N.normalizeParams(t)})}o($G,"strictObject");function TG(e,t){return new Np({type:"object",shape:e,catchall:ya(),...N.normalizeParams(t)})}o(TG,"looseObject");var Pp=w("ZodUnion",(e,t)=>{pp.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zm(e,n,i,r),e.options=t.options});function _u(e,t){return new Pp({type:"union",options:e,...N.normalizeParams(t)})}o(_u,"union");var NQ=w("ZodXor",(e,t)=>{Pp.init(e,t),ZS.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zm(e,n,i,r),e.options=t.options});function DG(e,t){return new NQ({type:"union",options:e,inclusive:!1,...N.normalizeParams(t)})}o(DG,"xor");var PQ=w("ZodDiscriminatedUnion",(e,t)=>{Pp.init(e,t),XS.init(e,t)});function _G(e,t,n){return new PQ({type:"union",options:t,discriminator:e,...N.normalizeParams(n)})}o(_G,"discriminatedUnion");var UQ=w("ZodIntersection",(e,t)=>{ek.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>WR(e,n,i,r)});function FQ(e,t){return new UQ({type:"intersection",left:e,right:t})}o(FQ,"intersection");var OQ=w("ZodTuple",(e,t)=>{Ia(),im.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ZR(e,n,i,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Up({type:"optional",innerType:t}))})}});function LQ(e,t,n){let i=t instanceof ke,r=i?n:t,s=i?t:null;return new OQ({type:"tuple",items:e,rest:s,...N.normalizeParams(r)})}o(LQ,"tuple");var Ru=w("ZodRecord",(e,t)=>{Ia(),tk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>KR(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function MQ(e,t,n){return!t||!t._zod?new Ru({type:"record",keyType:xp(),valueType:e,...N.normalizeParams(t)}):new Ru({type:"record",keyType:e,valueType:t,...N.normalizeParams(n)})}o(MQ,"record");function NG(e,t,n){return new Ru({type:"record",keyType:e,valueType:t,...N.normalizeParams(n),partial:!0})}o(NG,"partialRecord");function PG(e,t,n){return new Ru({type:"record",keyType:e,valueType:t,mode:"loose",...N.normalizeParams(n)})}o(PG,"looseRecord");var jQ=w("ZodMap",(e,t)=>{Ia(),nk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qR(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Ii(...n)),e.nonempty=n=>e.check(Ii(1,n)),e.max=(...n)=>e.check(js(...n)),e.size=(...n)=>e.check(Aa(...n))});function UG(e,t,n){return new jQ({type:"map",keyType:e,valueType:t,...N.normalizeParams(n)})}o(UG,"map");var GQ=w("ZodSet",(e,t)=>{Ia(),rk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>JR(e,n,i,r),e.min=(...n)=>e.check(Ii(...n)),e.nonempty=n=>e.check(Ii(1,n)),e.max=(...n)=>e.check(js(...n)),e.size=(...n)=>e.check(Aa(...n))});function FG(e,t){return new GQ({type:"set",valueType:e,...N.normalizeParams(t)})}o(FG,"set");var Qu=w("ZodEnum",(e,t)=>{ik.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(i,r,s)=>UR(e,i,r,s),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let s={};for(let a of i)if(n.has(a))s[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Qu({...t,checks:[],...N.normalizeParams(r),entries:s})},e.exclude=(i,r)=>{let s={...t.entries};for(let a of i)if(n.has(a))delete s[a];else throw new Error(`Key ${a} not found in enum`);return new Qu({...t,checks:[],...N.normalizeParams(r),entries:s})}});function Ey(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Qu({type:"enum",entries:n,...N.normalizeParams(t)})}o(Ey,"_enum");function OG(e,t){return new Qu({type:"enum",entries:e,...N.normalizeParams(t)})}o(OG,"nativeEnum");var VQ=w("ZodLiteral",(e,t)=>{sk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>FR(e,n,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function LG(e,t){return new VQ({type:"literal",values:Array.isArray(e)?e:[e],...N.normalizeParams(t)})}o(LG,"literal");var zQ=w("ZodFile",(e,t)=>{ok.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>MR(e,n,i,r),e.min=(n,i)=>e.check(Ii(n,i)),e.max=(n,i)=>e.check(js(n,i)),e.mime=(n,i)=>e.check(Eu(Array.isArray(n)?n:[n],i))});function MG(e){return AR(zQ,e)}o(MG,"file");var qQ=w("ZodTransform",(e,t)=>{Ia(),ak.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zR(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Os(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(N.issue(s,n.value,t));else{let a=s;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=n.value),a.inst??(a.inst=e),n.issues.push(N.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(s=>(n.value=s,n)):(n.value=r,n)}});function Iy(e){return new qQ({type:"transform",transform:e})}o(Iy,"transform");var Up=w("ZodOptional",(e,t)=>{sm.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qm(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Ea(e){return new Up({type:"optional",innerType:e})}o(Ea,"optional");var by=w("ZodExactOptional",(e,t)=>{ck.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qm(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function JQ(e){return new by({type:"optional",innerType:e})}o(JQ,"exactOptional");var HQ=w("ZodNullable",(e,t)=>{uk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>XR(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function $p(e){return new HQ({type:"nullable",innerType:e})}o($p,"nullable");function jG(e){return Ea($p(e))}o(jG,"nullish");var YQ=w("ZodDefault",(e,t)=>{lk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>nQ(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function WQ(e,t){return new YQ({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():N.shallowClone(t)}})}o(WQ,"_default");var ZQ=w("ZodPrefault",(e,t)=>{dk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rQ(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function KQ(e,t){return new ZQ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():N.shallowClone(t)}})}o(KQ,"prefault");var vy=w("ZodNonOptional",(e,t)=>{pk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>eQ(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function XQ(e,t){return new vy({type:"nonoptional",innerType:e,...N.normalizeParams(t)})}o(XQ,"nonoptional");var ex=w("ZodSuccess",(e,t)=>{fk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jR(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function GG(e){return new ex({type:"success",innerType:e})}o(GG,"success");var tx=w("ZodCatch",(e,t)=>{Ak.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>iQ(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function nx(e,t){return new tx({type:"catch",innerType:e,catchValue:typeof t=="function"?t:N.constantCatch(t)})}o(nx,"_catch");var rx=w("ZodNaN",(e,t)=>{gk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>OR(e,n,i,r)});function VG(e){return pR(rx,e)}o(VG,"nan");var Fp=w("ZodPipe",(e,t)=>{om.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sQ(e,n,i,r),e.in=t.in,e.out=t.out});function Km(e,t){return new Fp({type:"pipe",in:e,out:t})}o(Km,"pipe");var Op=w("ZodCodec",(e,t)=>{Fp.init(e,t),fp.init(e,t)});function zG(e,t,n){return new Op({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}o(zG,"codec");function qG(e){let t=e._zod.def;return new Op({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}o(qG,"invertCodec");var ix=w("ZodPreprocess",(e,t)=>{Fp.init(e,t),hk.init(e,t)}),sx=w("ZodReadonly",(e,t)=>{mk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>oQ(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function ox(e){return new sx({type:"readonly",innerType:e})}o(ox,"readonly");var ax=w("ZodTemplateLiteral",(e,t)=>{yk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>LR(e,n,i,r)});function JG(e,t){return new ax({type:"template_literal",parts:e,...N.normalizeParams(t)})}o(JG,"templateLiteral");var cx=w("ZodLazy",(e,t)=>{Ap.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cQ(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function ux(e){return new cx({type:"lazy",getter:e})}o(ux,"lazy");var lx=w("ZodPromise",(e,t)=>{Ik.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>aQ(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function HG(e){return new lx({type:"promise",innerType:e})}o(HG,"promise");var dx=w("ZodFunction",(e,t)=>{Ek.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>VR(e,n,i,r)});function YG(e){return new dx({type:"function",input:Array.isArray(e?.input)?LQ(e?.input):e?.input??_p(ya()),output:e?.output??ya()})}o(YG,"_function");var Lp=w("ZodCustom",(e,t)=>{bk.init(e,t),Te.init(e,t),e._zod.processJSONSchema=(n,i,r)=>GR(e,n,i,r)});function WG(e){let t=new at({check:"custom"});return t._zod.check=e,t}o(WG,"check");function ZG(e,t){return gR(Lp,e??(()=>!0),t)}o(ZG,"custom");function px(e,t={}){return hR(Lp,e,t)}o(px,"refine");function fx(e,t){return mR(e,t)}o(fx,"superRefine");var KG=yR,XG=ER,Ax=w("ZodInstanceOf",(e,t)=>{Lp.init(e,t)},{properties(e,t){return this.check(yu(e,t))}});function eV(e,t={}){let n=new Ax({type:"custom",check:"custom",fn:o(i=>i instanceof e,"fn"),abort:!0,...N.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}o(eV,"_instanceof");var tV=o((...e)=>IR({Codec:Op,Boolean:Tu,String:xu},...e),"stringbool");function nV(e){let t=ux(()=>_u([xp(e),wQ(),SQ(),QQ(),_p(t),MQ(xp(),t)]));return t}o(nV,"json");function rV(e,t){return new ix({type:"pipe",in:Iy(e),out:t})}o(rV,"preprocess");var uue={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function lue(e){vt({customError:e})}o(lue,"setErrorMap");function due(){return vt().customError}o(due,"getErrorMap");var gx;gx||(gx={});var Mp={};xr(Mp,{ZodISODate:()=>Js,ZodISODateTime:()=>qs,ZodISODuration:()=>Ys,ZodISOTime:()=>Hs,date:()=>fue,datetime:()=>pue,duration:()=>gue,time:()=>Aue});function pue(e){return wp(qs,e)}o(pue,"datetime");function fue(e){return Sp(Js,e)}o(fue,"date");function Aue(e){return kp(Hs,e)}o(Aue,"time");function gue(e){return Bp(Ys,e)}o(gue,"duration");var ee={...Nu,...Ym,iso:Mp},hue=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function mue(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}o(mue,"detectVersion");function iV(e,t){return e.map((n,i)=>i<t?n:n.optional())}o(iV,"applyMinItems");function yue(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(yue,"decodeJSONPointerSegment");function Eue(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1]===void 0?void 0:yue(n[1]);if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}o(Eue,"resolveRef");function Iue(e,t){return ee.transform(i=>i).check(i=>{let r=i.value;if(typeof r!="object"||r===null||Array.isArray(r))return;let s=Object.getOwnPropertyNames(r);if(t.minProperties!==void 0&&s.length<t.minProperties&&i.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:r,inst:e,continue:!0}),t.maxProperties!==void 0&&s.length>t.maxProperties&&i.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:r,inst:e,continue:!0}),t.keySchema)for(let a of s){let c=t.keySchema.safeParse(a);c.success||i.issues.push({code:"invalid_key",origin:"record",issues:c.error.issues,input:a,path:[a],continue:!0})}}).pipe(e)}o(Iue,"checkObjectGuards");function hx(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let i=String(e);return`${n[0]}${i.length}:${i}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let s=[];for(let a of e){let c=hx(a,t);if(c===null)return null;s.push(c)}return`a${s.length}:[${s.join(",")}]`}let i=Object.keys(e).sort(),r=[];for(let s of i){let a=hx(e[s],t);if(a===null)return null;r.push(`${s.length}:${s}=${a}`)}return`o${r.length}:{${r.join(",")}}`}finally{t.delete(e)}}o(hx,"canonicalKey");var bue=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),vue=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function jp(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(jp):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>bue.has(t)?jp(n):!vue.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(jp))}o(jp,"containsRef");function sV(e){return e===1?"element":"elements"}o(sV,"plural");function Cue(e,t){return ee.transform(i=>i).check(i=>{let r=i.value;if(Array.isArray(r)){if(t.uniqueItems===!0){let s=new Map;for(let a=0;a<r.length;a++){let c=hx(r[a],new Set);if(c===null)continue;let u=s.get(c);if(u===void 0){s.set(c,a);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${a} duplicates the one at index ${u}`,input:r,path:[a],continue:!0})}}if(t.containsSchema){let s=t.minContains??1,a=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,c=0;for(let u of r)if(t.containsSchema.safeParse(u).success&&++c>=a)break;c<s&&i.issues.push({code:"custom",message:`Array must contain at least ${s} matching ${sV(s)}; found ${c}`,input:r,continue:!0}),t.maxContains!==void 0&&c>t.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${sV(t.maxContains)}`,input:r,continue:!0})}}}).pipe(e)}o(Cue,"checkArrayGuards");function oV(e,t){if(e!==!1)return e===void 0||e===!0?ee.any():En(e,t)}o(oV,"getTupleRest");var wue=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function aV(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ee.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return ee.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let s=Eue(r,t),a=En(s,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return ee.null();if(r.length===0)return ee.never();if(r.length===1)return ee.literal(r[0]);if(r.every(a=>typeof a=="string"))return ee.enum(r);let s=r.map(a=>ee.literal(a));return s.length<2?s[0]:ee.union([s[0],s[1],...s.slice(2)])}if(e.const!==void 0)return ee.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(s=>{let a={...e,type:s};return aV(a,t)});return r.length===0?ee.never():r.length===1?r[0]:ee.union(r)}if(!n)return ee.any();let i;switch(n){case"string":{let r=ee.string();if(e.format){let s=e.format;s==="email"?r=r.check(ee.email()):s==="uri"||s==="uri-reference"?r=r.check(ee.url()):s==="uuid"||s==="guid"?r=r.check(ee.uuid()):s==="date-time"?r=r.check(ee.iso.datetime({offset:!0})):s==="date"?r=r.check(ee.iso.date()):s==="time"?r=r.check(ee.regex(wue)):s==="duration"?r=r.check(ee.iso.duration()):s==="hostname"?r=r.check(ee.hostname()):s==="ipv4"?r=r.check(ee.ipv4()):s==="ipv6"?r=r.check(ee.ipv6()):s==="mac"?r=r.check(ee.mac()):s==="cidr"?r=r.check(ee.cidrv4()):s==="cidr-v6"?r=r.check(ee.cidrv6()):s==="base64"?r=r.check(ee.base64()):s==="base64url"?r=r.check(ee.base64url()):s==="e164"?r=r.check(ee.e164()):s==="credit_card"?r=r.check(ee.creditCard()):s==="iban"?r=r.check(ee.iban()):s==="jwt"?r=r.check(ee.jwt()):s==="emoji"?r=r.check(ee.emoji()):s==="nanoid"?r=r.check(ee.nanoid()):s==="cuid"?r=r.check(ee.cuid()):s==="cuid2"?r=r.check(ee.cuid2()):s==="ulid"?r=r.check(ee.ulid()):s==="xid"?r=r.check(ee.xid()):s==="ksuid"&&(r=r.check(ee.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?ee.number().int():ee.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=ee.boolean();break}case"null":{i=ee.null();break}case"object":{let r={},s=e.properties||{},a=new Set(e.required||[]),c=typeof e.additionalProperties=="object"?En(e.additionalProperties,t):void 0;for(let[f,g]of Object.entries(s)){let h=En(g,t);qt(r,f,a.has(f)?h:h.optional())}if(e.patternProperties){let f=e.patternProperties,g=Object.keys(f),h=[];for(let E of g){let I=En(f[E],t),b=ee.string().regex(new RegExp(E));h.push(ee.looseRecord(b,I))}let m=[];if(Object.keys(r).length>0&&m.push(ee.object(r).passthrough()),m.push(...h),m.length===0)i=ee.object({}).passthrough();else if(m.length===1)i=m[0];else{let E=ee.intersection(m[0],m[1]);for(let I=2;I<m.length;I++)E=ee.intersection(E,m[I]);i=E}if(e.additionalProperties===!1){let E=Object.keys(r),I=g.map(v=>new RegExp(v)),b=i;i=i.check(v=>{if(!br(v.value))return;let R=[];for(let $ of Object.keys(v.value))E.includes($)||I.some(C=>C.test($))||R.push($);R.length&&v.issues.push({code:"unrecognized_keys",keys:R,input:v.value,inst:b})})}}else{let f=ee.object(r);e.additionalProperties===!1?i=f.strict():c?i=f.catchall(c):i=f.passthrough()}let u=e.propertyNames!==void 0&&e.propertyNames!==!0,l=typeof e.minProperties=="number"?e.minProperties:void 0,p=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(u||l!==void 0||p!==void 0){let f;if(u){let g=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;f=En(g,t)}i=Iue(i,{keySchema:f,minProperties:l,maxProperties:p})}break}case"array":{let r=e.prefixItems,s=e.items;if(r&&Array.isArray(r)){let a=typeof e.minItems=="number"?e.minItems:0,c=r.map(f=>En(f,t)),u=iV(c,a),l=Array.isArray(s)?void 0:oV(s,t),p=ee.tuple(u);i=l?p.rest(l):p,typeof e.minItems=="number"&&(i=i.check(ee.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(ee.maxLength(e.maxItems)))}else if(Array.isArray(s)){let a=typeof e.minItems=="number"?e.minItems:0,c=s.map(f=>En(f,t)),u=iV(c,a),l=oV(e.additionalItems,t),p=ee.tuple(u);i=l?p.rest(l):p,typeof e.minItems=="number"&&(i=i.check(ee.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(ee.maxLength(e.maxItems)))}else if(s!==void 0){let a=En(s,t),c=ee.array(a);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),i=c}else i=ee.array(ee.any());(e.uniqueItems===!0||e.contains!==void 0)&&(i=Cue(i,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?En(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return i}o(aV,"convertBaseSchema");function En(e,t){if(typeof e=="boolean")return e?ee.any():ee.never();let n=aV(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let c=e.anyOf.map(l=>En(l,t)),u=ee.union(c);n=i?ee.intersection(n,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let c=e.oneOf.map(l=>En(l,t)),u=ee.xor(c);n=i?ee.intersection(n,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:ee.any();else{let c=i?n:En(e.allOf[0],t),u=i?0:1;for(let l=u;l<e.allOf.length;l++)c=ee.intersection(c,En(e.allOf[l],t));n=c}e.nullable===!0&&t.version==="openapi-3.0"&&(n=ee.nullable(n)),e.readOnly===!0&&(n=ee.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let r={},s=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of s)c in e&&(r[c]=e[c]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let c of a)c in e&&(r[c]=e[c]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!jp(e.propertyNames)&&(r.propertyNames=e.propertyNames);for(let c of["minProperties","maxProperties"])e[c]!==void 0&&(r[c]=e[c])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!jp(e.contains)&&(r.contains=e.contains);for(let c of["uniqueItems","minContains","maxContains"])e[c]!==void 0&&(r[c]=e[c])}for(let c of Object.keys(e))hue.has(c)||qt(r,c,e[c]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}o(En,"convertSchema");function cV(e,t){if(typeof e=="boolean")return e?ee.any():ee.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=mue(n,t?.defaultTarget),r=n.$defs||n.definitions||{},s={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Jt};return En(n,s)}o(cV,"fromJSONSchema");var uV=Symbol("z.visit/resolving");function Gp(e,t){let n=typeof t=="function"?t:(a,c)=>{let u=t[a._zod.def.type];return u?u(a,c):a},i=new Map;function r(a){let c=i.get(a);if(c===uV)return new Ap({type:"lazy",getter:o(()=>i.get(a),"getter")});if(c!==void 0)return c;i.set(a,uV);let u=s(a),l=n(u,u!==a);return i.set(a,l),l}o(r,"run");function s(a){let c=a._zod.def,u=c.type;switch(u){case"object":{let l=c.shape,p=Object.keys(l),f=!1,g={};for(let m of p){let E=r(l[m]);E!==l[m]&&(f=!0),g[m]=E}let h=c.catchall;return c.catchall&&(h=r(c.catchall),h!==c.catchall&&(f=!0)),f?Xe(a,{...c,shape:g,catchall:h}):a}case"array":{let l=r(c.element);return l===c.element?a:Xe(a,{...c,element:l})}case"tuple":{let l=c.items,p=!1,f=[];for(let h of l){let m=r(h);m!==h&&(p=!0),f.push(m)}let g=c.rest;return c.rest&&(g=r(c.rest),g!==c.rest&&(p=!0)),p?Xe(a,{...c,items:f,rest:g}):a}case"record":case"map":{let l=r(c.keyType),p=r(c.valueType);return l===c.keyType&&p===c.valueType?a:Xe(a,{...c,keyType:l,valueType:p})}case"set":{let l=r(c.valueType);return l===c.valueType?a:Xe(a,{...c,valueType:l})}case"union":{let l=c.options,p=!1,f=[];for(let g of l){let h=r(g);h!==g&&(p=!0),f.push(h)}return p?Xe(a,{...c,options:f}):a}case"intersection":{let l=r(c.left),p=r(c.right);return l===c.left&&p===c.right?a:Xe(a,{...c,left:l,right:p})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let l=r(c.innerType);return l===c.innerType?a:Xe(a,{...c,innerType:l})}case"pipe":{let l=r(c.in),p=r(c.out);return l===c.in&&p===c.out?a:Xe(a,{...c,in:l,out:p})}case"function":{let l=r(c.input),p=r(c.output);return l===c.input&&p===c.output?a:Xe(a,{...c,input:l,output:p})}case"lazy":{let l=c.getter,{_cachedInner:p,...f}=c;return Xe(a,{...f,getter:o(()=>r(l()),"getter")})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return o(s,"mapInner"),r(e)}o(Gp,"visit");function lV(e){return Gp(e,{object:o(t=>t.partial(),"object"),union:o(t=>{let n=t._zod.def;return n.discriminator===void 0?t:_u(n.options)},"union")})}o(lV,"deepPartial");function Sue(e,t){if(!t?.length)return e;let n=e._zod.def;return Xe(e,Gr(n,{checks:[...n.checks??[],...t]}),{parent:!0})}o(Sue,"withChecks");function dV(e){return Sue(e.out,e.checks)}o(dV,"outSide");function kue(e){return e.in._zod.traits.has("$ZodTransform")?dV(e):e.in}o(kue,"inSide");function pV(e){return Gp(e,{pipe:o(t=>kue(t._zod.def),"pipe"),default:o((t,n)=>n?Ea(t._zod.def.innerType):t,"default"),catch:o((t,n)=>n?t._zod.def.innerType:t,"catch")})}o(pV,"input");function fV(e){return Gp(e,{pipe:o(t=>dV(t._zod.def),"pipe"),prefault:o((t,n)=>n?t._zod.def.innerType:t,"prefault")})}o(fV,"output");var mx={};xr(mx,{bigint:()=>xue,boolean:()=>Que,date:()=>$ue,number:()=>Rue,string:()=>Bue});function Bue(e){return OB(xu,e)}o(Bue,"string");function Rue(e){return zB($u,e)}o(Rue,"number");function Que(e){return KB(Tu,e)}o(Que,"boolean");function xue(e){return eR(Du,e)}o(xue,"bigint");function $ue(e){return dR(Dp,e)}o($ue,"date");var Ca=me(require("fs"));function yx(e){let t=[];for(let n of Due(e)){let i=n;i?.type==="tool_use"&&typeof i.name=="string"&&t.push(i.name)}return t}o(yx,"toolUsesFromTrace");function AV(e){return yx(e).some(t=>/^mcp__skyramp__skyramp_(contract|integration)_test_generation$/.test(t))}o(AV,"usedSkyrampCodegen");function gV(e){return yx(e).some(t=>t==="mcp__skyramp__skyramp_ui_test_generation")}o(gV,"usedSkyrampUiCodegen");function Tue(e){if(!Ca.existsSync(e))return{};for(let t of Ca.readFileSync(e,"utf-8").split(`
123
123
  `)){let n=t.trim();if(n)try{let i=JSON.parse(n);if(i.type==="system"&&i.subtype==="init"&&Array.isArray(i.mcp_servers))return Object.fromEntries(i.mcp_servers.filter(r=>typeof r.name=="string").map(r=>[r.name,typeof r.status=="string"?r.status:"unknown"]))}catch{}}return{}}o(Tue,"mcpServerStatuses");function hV(e){let t=Tue(e).skyramp;return t===void 0||t==="connected"}o(hV,"skyrampConnected");function Due(e){if(!Ca.existsSync(e))return[];let t=[];for(let n of Ca.readFileSync(e,"utf-8").split(`
124
- `)){let i=n.trim();if(!i)continue;let r;try{r=JSON.parse(i)}catch{continue}let s=r.message?.content;Array.isArray(s)&&t.push(...s)}return t}o(Due,"contentBlocks");var Vp=(n=>(n.Full="full",n.Static="static",n))(Vp||{}),vi=(i=>(i.Contract="contract",i.Integration="integration",i.Ui="ui",i))(vi||{}),zp=(s=>(s.OwnSurface="own_surface",s.StateReadBack="state_read_back",s.Referential="referential",s.Lifecycle="lifecycle",s.Boundaries="boundaries",s))(zp||{}),Ci=(r=>(r.Update="update",r.Regenerate="regenerate",r.Delete="delete",r.Verify="verify",r))(Ci||{}),Cy=(l=>(l.Equals="equals",l.NotEquals="not_equals",l.GreaterThan="greater_than",l.LessThan="less_than",l.Contains="contains",l.NotContains="not_contains",l.Matches="matches",l.Absent="absent",l.Present="present",l))(Cy||{});var ar=d.string().trim().min(1),_ue=d.object({subject:ar.describe('what the test READS: a response field path, the literal "status", or the on-screen text for a ui case \u2014 the FINAL read in a multi-step case'),comparator:d.nativeEnum(Cy),value:d.union([d.string(),d.number(),d.boolean(),d.null()]).optional().describe("the ONE value a broken build would not produce; OMIT for absent/present")}),Nue=d.object({test:ar.describe("existing test path, relative to its repository"),repository:ar.optional().describe("owner/repo the test lives in, when the run has several checkouts; omit for the working checkout"),action:d.nativeEnum(Ci),evidence:ar.describe("why \u2014 drift vs the diff, or a finding"),covers_behaviors:d.array(d.string()).optional().describe("analyze behavior ids this maintenance covers"),staleOnBase:d.boolean().optional().describe("[derived] the plan found the test already wrong on the base branch: it is left as it is and re-run")});var Pue=d.object({surface:ar.describe("a surface from the list, copied verbatim"),axis:d.nativeEnum(zp)}),Uue=d.object({id:ar.describe("short-slug, unique across generate[]"),type:d.nativeEnum(vi),target:ar.describe('"METHOD /path", or a business-flow name'),from_finding:d.string().optional().describe("analyze finding id this case catches"),from_behavior:d.string().optional().describe("analyze behavior id this case pins"),derived_from:Pue.optional().describe("the surface \xD7 axis this case pins when no analyze behavior or finding names it \u2014 one of the three is required"),rationale:ar.describe("why this test matters"),expected_observable:ar.describe("one sentence for a human: what a catching test asserts, and what a broken build does instead"),expected:_ue.describe("the same intent AS DATA \u2014 see the rules below"),seededPrecondition:ar.optional().describe("seeded non-initial state + how to reach it; only when a seeded-state transition applies"),verifiable:d.boolean().describe("true only when a live SUT could confirm this test (full mode)")}),Fue=d.object({covered:d.array(d.string()).optional(),abstain:d.string().optional()}).superRefine((e,t)=>{let n=Array.isArray(e.covered),i=typeof e.abstain=="string";if(n===i)return void t.addIssue({code:d.ZodIssueCode.custom,message:"must have exactly one of covered[] or abstain"});n&&e.covered.length===0&&t.addIssue({code:d.ZodIssueCode.custom,path:["covered"],message:"must list at least one id (else abstain)"}),i&&!e.abstain.trim()&&t.addIssue({code:d.ZodIssueCode.custom,path:["abstain"],message:"must give a reason"})}).describe('{ "covered": [ids] } OR { "abstain": "reason" } \u2014 exactly one'),Oue=d.object({surface:ar.describe("a surface from the list, copied verbatim"),axes:d.object(Object.fromEntries(Object.values(zp).map(e=>[e,Fue])))}),mV=d.object({schemaVersion:d.literal(1),mode:d.nativeEnum(Vp),maintenance:d.array(Nue),generate:d.array(Uue),surfaces:d.array(Oue).describe("one entry per changed surface in the list \u2014 none missing, none invented"),budget:d.object({total:d.number().describe("case count"),rationale:ar}),summary:ar.describe("one paragraph")});var l$e=Be.object({mode:Be.string().optional(),entries:Be.array(Be.object({entityUrl:Be.string().optional(),tornDown:Be.boolean().optional()})).optional(),blocks:Be.array(Be.object({method:Be.string().optional(),url:Be.string().optional(),rule:Be.string().optional(),count:Be.number().nonnegative().optional()})).optional(),unparsedCreates:Be.array(Be.object({url:Be.string().optional(),rule:Be.string().optional()})).optional()});var d$e=Be.object({id:Be.string().regex(/^(legacy|unknown|session-[0-9a-f-]{36})$/),stage:Be.string(),browserUsed:Be.boolean()});var yV=3800,Ix=200;function qp(e){let t=e.map(n=>n.length>yV?`${n.slice(0,yV-1)}\u2026`:n);return t.length<=Ix?t:[...t.slice(0,Ix-1),`and ${t.length-(Ix-1)} more gaps`]}o(qp,"boundReportGaps");var p$e=Be.object({environmentId:Be.string().uuid().optional(),environmentAddress:Be.string().url().optional(),persistentDataPolicy:Be.custom(e=>$d.safeParse(e).success,"invalid persistent-data policy").optional(),components:Be.array(Be.object({name:Be.string().min(1),url:Be.string().min(1),repository:Be.string().min(1).optional(),expectedRevision:Be.string().min(1).optional(),revisionUrl:Be.string().url().optional()}).strict()).min(1),dependencies:Be.array(Be.object({name:Be.string().min(1),url:Be.string().nullable(),versionUrl:Be.string().nullable(),notes:Be.string().nullable()}).strict()).default([]),allowMutation:Be.boolean().optional(),offLimits:Be.array(Be.string().min(1)).optional(),allowedEgress:Be.array(Be.string().min(1)).optional()}).strict();var Mue=".skyramp/sut/deployed-revisions.sh",bx=(n=>(n.Running="running",n.Requested="requested",n))(bx||{});var v$e=new Set(Object.values(bx));var C$e=`Fix ${Mue} so it prints the full commit each component runs, then set it up again.`;var Jp="shared-environment";var M$e=64*1024;var j$e=new Set(["version_endpoint","api"]);function wy(e){return(e?.components??[]).filter(t=>!!t.repository&&!!t.expectedRevision)}o(wy,"verifiableComponents");var bV=o((e,t)=>!!e&&!!t&&e.toLowerCase()===t.toLowerCase(),"sameRepository"),Vue=o((e,t)=>e.name===t.name&&bV(e.repository,t.repository),"sameComponent");function vV(e){return wy(e).length>0||(e?.dependencies.length??0)>0}o(vV,"hasSharedSystem");function CV(e){let t=e.inputs?.sharedEnvironment;if(!vV(t))return;let n=Le(e,`${Jp}.json`);if(n)return{components:SV(t,n.components),dependencies:n.dependencies};let i="Not checked: the run ended before it checked the shared environment.";return{components:wy(t).map(r=>wV(r,i)),dependencies:t.dependencies.map(r=>({name:r.name,url:r.url,version:null,evidence:i}))}}o(CV,"sharedSystem");var wV=o((e,t)=>({name:e.name,repository:e.repository,url:e.url,expectedRevision:e.expectedRevision,observedRevision:null,status:"unverifiable",source:e.revisionUrl||e.revisionScript?"probe":"agent",evidence:t}),"unrecordedRow");function SV(e,t){let n=new Set(t.map(r=>r.name.toLowerCase())),i=wy(e).filter(r=>!n.has(r.name.toLowerCase()));return[...t,...i.map(r=>wV(r,"Not checked: the run recorded no read of it."))]}o(SV,"withUnrecorded");function vx(e){return(CV(e)?.components??[]).filter(t=>t.status!=="verified")}o(vx,"unverifiedComponents");function Cx(e,t,n){if(!e.appRunning||n===!1)return[];let i=wy(e.sharedEnvironment);return SV(e.sharedEnvironment,t?.components??[]).filter(r=>r.status!=="verified"&&i.some(s=>Vue(s,r)))}o(Cx,"blockingComponents");function kV(e){let t=o(n=>{let i=`${n.name} (${n.repository}) must run ${Hc(n.expectedRevision)}`;if(n.observedRevision&&n.expectedRevision&&(n.observedRevision.startsWith(n.expectedRevision)||n.expectedRevision.startsWith(n.observedRevision)))return`${i}: ${n.evidence}`;let r=n.observedRevision?`runs ${Hc(n.observedRevision)}`:"no revision could be read";return`${i}, but ${r}: ${n.evidence}`},"text");return e.length?`the Test Environment does not verifiably run each component's expected revision: ${e.map(t).join("; ")}`:void 0}o(kV,"blockReason");function wx(e){return(e?.components??[]).filter(t=>!!t.repository&&!t.expectedRevision)}o(wx,"unfrozenComponents");var BV=me(require("path"));var Sx="outputs/preflight.json",wa="pr-diff.txt",kx="related-diffs";function Bx(e){return BV.join(kx,`${e.toLowerCase().replace(/\//g,"__").replace(/[^a-z0-9._-]/g,"_")}.diff`)}o(Bx,"relatedDiffArtifact");var X$e={focused:"Focused",impacted_critical:"Impacted and critical",broad:"Broad"};var Uu=o(e=>!!e.inputs?.scheduledValidation?.comparisonBaselineId,"retestsKnownFailures");var gJ=me(require("path"));function Nt(e,t=[]){let n=e.trim();if(!n)return{error:"session produced no output"};let i=o(u=>{try{let l=JSON.parse(u);return typeof l=="object"&&l!==null&&!Array.isArray(l)?l:void 0}catch{return}},"tryParse"),r=i(n);if(r!==void 0)return{value:r};let s;if(n.startsWith("{")&&n.endsWith("}"))try{JSON.parse(n)}catch(u){s=u instanceof Error?u.message:String(u)}let a=[...n.matchAll(/```(?:json)?\s*\n([\s\S]*?)```/g)];for(let u=a.length-1;u>=0;u--){let l=i(a[u][1].trim());if(l!==void 0)return{value:l}}let c;for(let u=n.indexOf("{");u!==-1;u=n.indexOf("{",u+1)){let l=0,p=!1,f=!1;for(let g=u;g<n.length;g++){let h=n[g];if(f){f=!1;continue}if(h==="\\"){f=p;continue}if(h==='"'){p=!p;continue}if(!p){if(h==="{")l++;else if(h==="}"&&(l--,l===0)){let m=i(n.slice(u,g+1));m!==void 0&&Object.keys(m).length>0&&(c=m,u=g);break}}}}return s&&(c===void 0||Object.keys(c).length<3)?{error:`final message is not valid JSON \u2014 ${s}. Most often an unescaped double quote inside a string (e.g. in "summary" or "evidence"): escape it as \\" or use single quotes in prose`}:c!==void 0?{value:c}:s?{error:`final message is not valid JSON \u2014 ${s}. Most often an unescaped double quote inside a string (e.g. in "summary" or "evidence"): escape it as \\" or use single quotes in prose`}:{error:`no parseable JSON object found in session output \u2014 the final message was: "${que(Lr(n,t))}"`}}o(Nt,"extractJsonObject");var RV=240;function que(e){let t=e.replace(/\s+/g," ").trim();return t.length<=RV?t:`\u2026${t.slice(-RV)}`}o(que,"snippetOf");function Jue(e){return e.issues.map(t=>{let n=t.path.map(r=>typeof r=="number"?`[${r}]`:`.${r}`).join("").replace(/^\./,""),i=n||"output";if(!/^(Expected |Required$|Invalid |String must|Array must|Number must)/.test(t.message))return`${i} ${t.message}`;switch(t.code){case"invalid_type":return n?t.expected==="object"?`${i} must be an object`:t.received==="undefined"?`${i} is required`:`${i} must be ${t.expected}, got ${t.received}`:"output is not a JSON object";case"invalid_enum_value":{let r=JSON.stringify(t.received),s=t.options.find(c=>typeof c=="string"&&typeof t.received=="string"&&t.received.startsWith(c)),a=s?` \u2014 you sent ${r}; the value must be exactly ${JSON.stringify(s)}, with any qualifier moved to a field that takes free text`:` \u2014 you sent ${r}`;return`${i} must be one of: ${t.options.join(", ")}${a}`}case"invalid_literal":return`${i} must be ${JSON.stringify(t.expected)}`;case"too_small":return t.type==="string"?`${i} must be a non-empty string`:`${i} must have at least ${t.minimum} item(s)`;case"unrecognized_keys":return`${i} has unknown key(s): ${t.keys.join(", ")}`;default:return`${i}: ${t.message}`}})}o(Jue,"issuesToMessages");function In(e,t){let n=e.safeParse(t);if(n.success)return{value:n.data,errors:[]};let i=o((s,a)=>a.reduce((c,u)=>c&&typeof c=="object"?c[u]:void 0,s),"at"),r=n.error.issues.filter(s=>s.path.length&&i(t,s.path)===null);if(r.length===n.error.issues.length)try{let s=e.safeParse(r.reduce((a,{path:c})=>QV(a,c),t));if(s.success)return{value:s.data,errors:[]}}catch{}return{errors:Jue(n.error)}}o(In,"validateWith");function QV(e,t){if(!t.length||!e||typeof e!="object")return e;let[n,...i]=t,r=Array.isArray(e)?e.slice():{...e};return i.length?r[n]=QV(r[n],i):delete r[n],r}o(QV,"withoutAt");function Hp(e){let t=e.split(/[\\/]/)[0];return t===".skyramp"||t===".testbot"}o(Hp,"inUnshippedFolder");var Ki=me(require("path"));var Qx=".skyramp/workspace.yml";var m0e=["/.skyramp/sut/",`/${Qx}`],xx=[".skyramp/sut",Qx];var xV=256*1024*1024,Hue=3e4,Sy=12e4;function On(e,t,n=Hue){let i=vE([...ur,...t],{env:Qt(),cwd:e,encoding:"utf-8",timeout:n,maxBuffer:xV});return i.status===0?i.stdout.trimEnd():void 0}o(On,"git");var $x=["--",":/",...xx.map(e=>`:(exclude)${e}`)],$V="--literal-pathspecs";function Tx(e,t){return!!On(e,[$V,"status","--porcelain","--",t])}o(Tx,"pathChanged");function ky(e,t){return/ blob /.test(On(e,[$V,"ls-tree","HEAD","--",t])??"")}o(ky,"fileAtHead");function Dx(e){return On(e,["rev-parse","--git-dir"])!==void 0}o(Dx,"isGitRepo");function Yp(e,t){let n=[];if(t)n.push(t),!t.startsWith("origin/")&&!/[~^:@]/.test(t)&&n.push(`origin/${t}`);else{let i=On(e,["symbolic-ref","--short","refs/remotes/origin/HEAD"]);i&&n.push(i),n.push("main","master","origin/main","origin/master")}for(let i of n)if(On(e,["rev-parse","--verify",`${i}^{commit}`])!==void 0)return i}o(Yp,"resolveBaseBranch");function TV(e){if(!e.startsWith('"')||!e.endsWith('"'))return e;let t={a:"\x07",b:"\b",t:" ",n:`
124
+ `)){let i=n.trim();if(!i)continue;let r;try{r=JSON.parse(i)}catch{continue}let s=r.message?.content;Array.isArray(s)&&t.push(...s)}return t}o(Due,"contentBlocks");var Vp=(n=>(n.Full="full",n.Static="static",n))(Vp||{}),vi=(i=>(i.Contract="contract",i.Integration="integration",i.Ui="ui",i))(vi||{}),zp=(s=>(s.OwnSurface="own_surface",s.StateReadBack="state_read_back",s.Referential="referential",s.Lifecycle="lifecycle",s.Boundaries="boundaries",s))(zp||{}),Ci=(r=>(r.Update="update",r.Regenerate="regenerate",r.Delete="delete",r.Verify="verify",r))(Ci||{}),Cy=(l=>(l.Equals="equals",l.NotEquals="not_equals",l.GreaterThan="greater_than",l.LessThan="less_than",l.Contains="contains",l.NotContains="not_contains",l.Matches="matches",l.Absent="absent",l.Present="present",l))(Cy||{});var ar=d.string().trim().min(1),_ue=d.object({subject:ar.describe('what the test READS: a response field path, the literal "status", or the on-screen text for a ui case \u2014 the FINAL read in a multi-step case'),comparator:d.nativeEnum(Cy),value:d.union([d.string(),d.number(),d.boolean(),d.null()]).optional().describe("the ONE value a broken build would not produce; OMIT for absent/present")}),Nue=d.object({test:ar.describe("existing test path, relative to its repository"),repository:ar.optional().describe("owner/repo the test lives in, when the run has several checkouts; omit for the working checkout"),action:d.nativeEnum(Ci),evidence:ar.describe("why \u2014 drift vs the diff, or a finding"),covers_behaviors:d.array(d.string()).optional().describe("analyze behavior ids this maintenance covers"),staleOnBase:d.boolean().optional().describe("[derived] the plan found the test already wrong on the base branch: it is left as it is and re-run")});var Pue=d.object({surface:ar.describe("a surface from the list, copied verbatim"),axis:d.nativeEnum(zp)}),Uue=d.object({id:ar.describe("short-slug, unique across generate[]"),type:d.nativeEnum(vi),target:ar.describe('"METHOD /path", or a business-flow name'),from_finding:d.string().optional().describe("analyze finding id this case catches"),from_behavior:d.string().optional().describe("analyze behavior id this case pins"),derived_from:Pue.optional().describe("the surface \xD7 axis this case pins when no analyze behavior or finding names it \u2014 one of the three is required"),rationale:ar.describe("why this test matters"),expected_observable:ar.describe("one sentence for a human: what a catching test asserts, and what a broken build does instead"),expected:_ue.describe("the same intent AS DATA \u2014 see the rules below"),seededPrecondition:ar.optional().describe("seeded non-initial state + how to reach it; only when a seeded-state transition applies"),verifiable:d.boolean().describe("true only when a live SUT could confirm this test (full mode)")}),Fue=d.object({covered:d.array(d.string()).optional(),abstain:d.string().optional()}).superRefine((e,t)=>{let n=Array.isArray(e.covered),i=typeof e.abstain=="string";if(n===i)return void t.addIssue({code:d.ZodIssueCode.custom,message:"must have exactly one of covered[] or abstain"});n&&e.covered.length===0&&t.addIssue({code:d.ZodIssueCode.custom,path:["covered"],message:"must list at least one id (else abstain)"}),i&&!e.abstain.trim()&&t.addIssue({code:d.ZodIssueCode.custom,path:["abstain"],message:"must give a reason"})}).describe('{ "covered": [ids] } OR { "abstain": "reason" } \u2014 exactly one'),Oue=d.object({surface:ar.describe("a surface from the list, copied verbatim"),axes:d.object(Object.fromEntries(Object.values(zp).map(e=>[e,Fue])))}),mV=d.object({schemaVersion:d.literal(1),mode:d.nativeEnum(Vp),maintenance:d.array(Nue),generate:d.array(Uue),surfaces:d.array(Oue).describe("one entry per changed surface in the list \u2014 none missing, none invented"),budget:d.object({total:d.number().describe("case count"),rationale:ar}),summary:ar.describe("one paragraph")});var l$e=Be.object({mode:Be.string().optional(),entries:Be.array(Be.object({entityUrl:Be.string().optional(),tornDown:Be.boolean().optional()})).optional(),blocks:Be.array(Be.object({method:Be.string().optional(),url:Be.string().optional(),rule:Be.string().optional(),count:Be.number().nonnegative().optional()})).optional(),unparsedCreates:Be.array(Be.object({url:Be.string().optional(),rule:Be.string().optional()})).optional()});var d$e=Be.object({id:Be.string().regex(/^(legacy|unknown|session-[0-9a-f-]{36})$/),stage:Be.string(),browserUsed:Be.boolean()});var yV=3800,Ix=200;function qp(e){let t=e.map(n=>n.length>yV?`${n.slice(0,yV-1)}\u2026`:n);return t.length<=Ix?t:[...t.slice(0,Ix-1),`and ${t.length-(Ix-1)} more gaps`]}o(qp,"boundReportGaps");var p$e=Be.object({environmentId:Be.string().uuid().optional(),environmentAddress:Be.string().url().optional(),persistentDataPolicy:Be.custom(e=>$d.safeParse(e).success,"invalid persistent-data policy").optional(),components:Be.array(Be.object({name:Be.string().min(1),url:Be.string().min(1),repository:Be.string().min(1).optional(),expectedRevision:Be.string().min(1).optional(),revisionUrl:Be.string().url().optional()}).strict()).min(1),dependencies:Be.array(Be.object({name:Be.string().min(1),url:Be.string().nullable(),versionUrl:Be.string().nullable(),notes:Be.string().nullable()}).strict()).default([]),allowMutation:Be.boolean().optional(),offLimits:Be.array(Be.string().min(1)).optional(),allowedEgress:Be.array(Be.string().min(1)).optional()}).strict();var Mue=".skyramp/sut/deployed-revisions.sh",bx=(n=>(n.Running="running",n.Requested="requested",n))(bx||{});var v$e=new Set(Object.values(bx));var C$e=`Fix ${Mue} so it prints the full commit each component runs, then set it up again.`;var Jp="shared-environment";var M$e=64*1024;var j$e=new Set(["version_endpoint","api"]);function wy(e){return(e?.components??[]).filter(t=>!!t.repository&&!!t.expectedRevision)}o(wy,"verifiableComponents");var bV=o((e,t)=>!!e&&!!t&&e.toLowerCase()===t.toLowerCase(),"sameRepository"),Vue=o((e,t)=>e.name===t.name&&bV(e.repository,t.repository),"sameComponent");function vV(e){return wy(e).length>0||(e?.dependencies.length??0)>0}o(vV,"hasSharedSystem");function CV(e){let t=e.inputs?.sharedEnvironment;if(!vV(t))return;let n=Le(e,`${Jp}.json`);if(n)return{components:SV(t,n.components),dependencies:n.dependencies};let i="Not checked: the run ended before it checked the shared environment.";return{components:wy(t).map(r=>wV(r,i)),dependencies:t.dependencies.map(r=>({name:r.name,url:r.url,version:null,evidence:i}))}}o(CV,"sharedSystem");var wV=o((e,t)=>({name:e.name,repository:e.repository,url:e.url,expectedRevision:e.expectedRevision,observedRevision:null,status:"unverifiable",source:e.revisionUrl||e.revisionScript?"probe":"agent",evidence:t}),"unrecordedRow");function SV(e,t){let n=new Set(t.map(r=>r.name.toLowerCase())),i=wy(e).filter(r=>!n.has(r.name.toLowerCase()));return[...t,...i.map(r=>wV(r,"Not checked: the run recorded no read of it."))]}o(SV,"withUnrecorded");function vx(e){return(CV(e)?.components??[]).filter(t=>t.status!=="verified")}o(vx,"unverifiedComponents");function Cx(e,t,n){if(!e.appRunning||n===!1)return[];let i=wy(e.sharedEnvironment);return SV(e.sharedEnvironment,t?.components??[]).filter(r=>r.status!=="verified"&&i.some(s=>Vue(s,r)))}o(Cx,"blockingComponents");function kV(e){let t=o(n=>{let i=`${n.name} (${n.repository}) must run ${Hc(n.expectedRevision)}`;if(n.observedRevision&&n.expectedRevision&&(n.observedRevision.startsWith(n.expectedRevision)||n.expectedRevision.startsWith(n.observedRevision)))return`${i}: ${n.evidence}`;let r=n.observedRevision?`runs ${Hc(n.observedRevision)}`:"no revision could be read";return`${i}, but ${r}: ${n.evidence}`},"text");return e.length?`the Test Environment does not verifiably run each component's expected revision: ${e.map(t).join("; ")}`:void 0}o(kV,"blockReason");function wx(e){return(e?.components??[]).filter(t=>!!t.repository&&!t.expectedRevision)}o(wx,"unfrozenComponents");var BV=me(require("path"));var Sx="outputs/preflight.json",wa="pr-diff.txt",kx="related-diffs";function Bx(e){return BV.join(kx,`${e.toLowerCase().replace(/\//g,"__").replace(/[^a-z0-9._-]/g,"_")}.diff`)}o(Bx,"relatedDiffArtifact");var X$e={focused:"Focused",impacted_critical:"Impacted and critical",broad:"Broad"};var Uu=o(e=>!!e.inputs?.scheduledValidation?.comparisonBaselineId,"retestsKnownFailures");var hJ=me(require("path"));function Nt(e,t=[]){let n=e.trim();if(!n)return{error:"session produced no output"};let i=o(u=>{try{let l=JSON.parse(u);return typeof l=="object"&&l!==null&&!Array.isArray(l)?l:void 0}catch{return}},"tryParse"),r=i(n);if(r!==void 0)return{value:r};let s;if(n.startsWith("{")&&n.endsWith("}"))try{JSON.parse(n)}catch(u){s=u instanceof Error?u.message:String(u)}let a=[...n.matchAll(/```(?:json)?\s*\n([\s\S]*?)```/g)];for(let u=a.length-1;u>=0;u--){let l=i(a[u][1].trim());if(l!==void 0)return{value:l}}let c;for(let u=n.indexOf("{");u!==-1;u=n.indexOf("{",u+1)){let l=0,p=!1,f=!1;for(let g=u;g<n.length;g++){let h=n[g];if(f){f=!1;continue}if(h==="\\"){f=p;continue}if(h==='"'){p=!p;continue}if(!p){if(h==="{")l++;else if(h==="}"&&(l--,l===0)){let m=i(n.slice(u,g+1));m!==void 0&&Object.keys(m).length>0&&(c=m,u=g);break}}}}return s&&(c===void 0||Object.keys(c).length<3)?{error:`final message is not valid JSON \u2014 ${s}. Most often an unescaped double quote inside a string (e.g. in "summary" or "evidence"): escape it as \\" or use single quotes in prose`}:c!==void 0?{value:c}:s?{error:`final message is not valid JSON \u2014 ${s}. Most often an unescaped double quote inside a string (e.g. in "summary" or "evidence"): escape it as \\" or use single quotes in prose`}:{error:`no parseable JSON object found in session output \u2014 the final message was: "${que(Lr(n,t))}"`}}o(Nt,"extractJsonObject");var RV=240;function que(e){let t=e.replace(/\s+/g," ").trim();return t.length<=RV?t:`\u2026${t.slice(-RV)}`}o(que,"snippetOf");function Jue(e){return e.issues.map(t=>{let n=t.path.map(r=>typeof r=="number"?`[${r}]`:`.${r}`).join("").replace(/^\./,""),i=n||"output";if(!/^(Expected |Required$|Invalid |String must|Array must|Number must)/.test(t.message))return`${i} ${t.message}`;switch(t.code){case"invalid_type":return n?t.expected==="object"?`${i} must be an object`:t.received==="undefined"?`${i} is required`:`${i} must be ${t.expected}, got ${t.received}`:"output is not a JSON object";case"invalid_enum_value":{let r=JSON.stringify(t.received),s=t.options.find(c=>typeof c=="string"&&typeof t.received=="string"&&t.received.startsWith(c)),a=s?` \u2014 you sent ${r}; the value must be exactly ${JSON.stringify(s)}, with any qualifier moved to a field that takes free text`:` \u2014 you sent ${r}`;return`${i} must be one of: ${t.options.join(", ")}${a}`}case"invalid_literal":return`${i} must be ${JSON.stringify(t.expected)}`;case"too_small":return t.type==="string"?`${i} must be a non-empty string`:`${i} must have at least ${t.minimum} item(s)`;case"unrecognized_keys":return`${i} has unknown key(s): ${t.keys.join(", ")}`;default:return`${i}: ${t.message}`}})}o(Jue,"issuesToMessages");function In(e,t){let n=e.safeParse(t);if(n.success)return{value:n.data,errors:[]};let i=o((s,a)=>a.reduce((c,u)=>c&&typeof c=="object"?c[u]:void 0,s),"at"),r=n.error.issues.filter(s=>s.path.length&&i(t,s.path)===null);if(r.length===n.error.issues.length)try{let s=e.safeParse(r.reduce((a,{path:c})=>QV(a,c),t));if(s.success)return{value:s.data,errors:[]}}catch{}return{errors:Jue(n.error)}}o(In,"validateWith");function QV(e,t){if(!t.length||!e||typeof e!="object")return e;let[n,...i]=t,r=Array.isArray(e)?e.slice():{...e};return i.length?r[n]=QV(r[n],i):delete r[n],r}o(QV,"withoutAt");function Hp(e){let t=e.split(/[\\/]/)[0];return t===".skyramp"||t===".testbot"}o(Hp,"inUnshippedFolder");var Ki=me(require("path"));var Qx=".skyramp/workspace.yml";var m0e=["/.skyramp/sut/",`/${Qx}`],xx=[".skyramp/sut",Qx];var xV=256*1024*1024,Hue=3e4,Sy=12e4;function On(e,t,n=Hue){let i=vE([...ur,...t],{env:Qt(),cwd:e,encoding:"utf-8",timeout:n,maxBuffer:xV});return i.status===0?i.stdout.trimEnd():void 0}o(On,"git");var $x=["--",":/",...xx.map(e=>`:(exclude)${e}`)],$V="--literal-pathspecs";function Tx(e,t){return!!On(e,[$V,"status","--porcelain","--",t])}o(Tx,"pathChanged");function ky(e,t){return/ blob /.test(On(e,[$V,"ls-tree","HEAD","--",t])??"")}o(ky,"fileAtHead");function Dx(e){return On(e,["rev-parse","--git-dir"])!==void 0}o(Dx,"isGitRepo");function Yp(e,t){let n=[];if(t)n.push(t),!t.startsWith("origin/")&&!/[~^:@]/.test(t)&&n.push(`origin/${t}`);else{let i=On(e,["symbolic-ref","--short","refs/remotes/origin/HEAD"]);i&&n.push(i),n.push("main","master","origin/main","origin/master")}for(let i of n)if(On(e,["rev-parse","--verify",`${i}^{commit}`])!==void 0)return i}o(Yp,"resolveBaseBranch");function TV(e){if(!e.startsWith('"')||!e.endsWith('"'))return e;let t={a:"\x07",b:"\b",t:" ",n:`
125
125
  `,v:"\v",f:"\f",r:"\r",'"':'"',"\\":"\\"};return e.slice(1,-1).replace(/(?:\\[0-7]{3})+|\\([abtnvfr"\\])/g,(n,i)=>i!==void 0?t[i]:Buffer.from(n.slice(1).split("\\").map(r=>parseInt(r,8))).toString("utf8"))}o(TV,"decodeGitPath");function DV(e){let t=/^diff --git (?:"a\/(?:[^"\\]|\\.)+"|a\/.+) ("b\/(?:[^"\\]|\\.)+"|b\/.+)$/.exec(e)?.[1];return t&&TV(t).slice(2)}o(DV,"diffHeaderPath");function Yue(e){let t=[],n=[],i;for(let r of e.split(`
126
126
  `)){if(r.startsWith("diff --git ")){i=DV(r);continue}r==="--- /dev/null"&&i?t.push(i):r==="+++ /dev/null"&&i&&n.push(i)}return{newFiles:t,deletedFiles:n}}o(Yue,"parseNewAndDeletedFiles");function _x(e,t){let n=Yp(e,t);if(!n)return;let i=On(e,["merge-base",n,"HEAD"])??n,r=On(e,["diff","--no-relative",i,...$x],Sy);if(r===void 0)return;let s=["--",...xx],a=[r,On(e,["diff","--no-relative",i,"HEAD",...s],Sy)].filter(Boolean).join(`
127
127
  `),c=[On(e,["diff","--stat",i,...$x],Sy),On(e,["diff","--stat",i,"HEAD",...s],Sy)].filter(Boolean).join(`
@@ -160,11 +160,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
160
160
  `):process.stdout.write(e.command!==void 0?`${e.command}
161
161
  `:e.text??"")}o(ffe,"writeFrame");function Afe(e){ffe({command:e})}o(Afe,"writeAzureCommand");function fq(e){return e.replace(/%/g,"%AZP25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(fq,"escapeData");function gfe(e){return fq(e).replace(/;/g,"%3B").replace(/]/g,"%5D")}o(gfe,"escapeProperty");function hfe(e,t,n){let i=Object.entries(t).map(([r,s])=>`${r}=${gfe(s)}`).join(";");return`##vso[${e}${i?` ${i}`:""}]${fq(n)}`}o(hfe,"vsoCommand");function mfe(e){if(!e)return[];let t=e.split(/\r?\n/).filter(n=>n.trim()&&n!==e);return[e,...t].map(n=>hfe("task.setsecret",{},n))}o(mfe,"setSecretLines");function Aq(e,t=Afe){for(let n of mfe(e))t(n)}o(Aq,"azureSetSecret");function sf(e){return e.replace(/\/+$/,"")}o(sf,"withoutTrailingSlash");function S$(e){let t=new URL(e),n=t.pathname.split("/").filter(Boolean);if(n.length)return decodeURIComponent(n[n.length-1]);if(t.hostname.endsWith(".visualstudio.com"))return t.hostname.split(".")[0];throw new Error(`SYSTEM_COLLECTIONURI "${e}" names no organization`)}o(S$,"azureOrganization");var yfe=/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,48}[A-Za-z0-9])?$/,Efe=/[\\/:*?"<>|;#${},+=[\]%\p{Cc}\p{Cf}]/u;function gq(e){return e.length>0&&e.length<=64&&e===e.trim()&&!Efe.test(e)&&!/[^\S ]/u.test(e)&&!/^[._]/.test(e)&&!e.endsWith(".")}o(gq,"isName");function jy(e){return k$(`${e.namespace}/${e.name}`)}o(jy,"azureRepositoryOfSource");function k$(e){let t=e.indexOf("/"),n=e.lastIndexOf("/"),i=e.slice(0,t),r=e.slice(t+1,n),s=e.slice(n+1);if(t<0||t===n||!yfe.test(i)||!gq(r)||!gq(s))throw new Error(`"${e}" is not an Azure DevOps organization/project/repository`);return{organization:i,project:r,name:s}}o(k$,"azureRepositoryOf");function hq(e,t){let n=S$(e);if(n.toLowerCase()!==t.organization.toLowerCase())throw new Error(`${t.organization}/${t.project}/${t.name} is not in ${n}, the Azure DevOps organization this job runs in`)}o(hq,"inOrganization");function mq(e,t){return hq(e,t),`${sf(e)}/${encodeURIComponent(t.project)}/_git/${encodeURIComponent(t.name)}`}o(mq,"azureCloneUrl");function B$(e,t){return hq(e,t),`${sf(e)}/${encodeURIComponent(t.project)}/_apis/git/repositories/${encodeURIComponent(t.name)}`}o(B$,"azureRepositoryApi");var Ife="7.1",rf=class extends Error{constructor(n,i){super(n);this.status=i}status;static{o(this,"AzureRestError")}};async function R$(e){let t=e.accept??"application/json",n=new URL(e.url);n.searchParams.has("api-version")||n.searchParams.set("api-version",Ife);let i=await(e.fetch??fetch)(n.toString(),{method:e.method??"GET",headers:{Authorization:`Bearer ${e.token}`,Accept:t,...e.body!==void 0?{"Content-Type":"application/json"}:{}},...e.body!==void 0?{body:JSON.stringify(e.body)}:{},redirect:"error",signal:AbortSignal.timeout(3e4)});if(!i.ok){let r=(await i.json().catch(()=>({}))).message;throw new rf(`Azure DevOps answered ${i.status}${typeof r=="string"?`: ${r}`:""}`,i.status)}return t!=="application/json"?Buffer.from(await i.arrayBuffer()):i.status===204?{}:await i.json()}o(R$,"azureRest");function bfe(e){return`AUTHORIZATION: bearer ${e}`}o(bfe,"azureGitAuthorization");function yq(e,t){return{GIT_CONFIG_COUNT:"1",GIT_CONFIG_KEY_0:`http.${sf(e)}/.extraheader`,GIT_CONFIG_VALUE_0:bfe(t)}}o(yq,"azureGitAuthEnv");var vfe="7.1-preview.1",Cfe=".azure-pipelines/skyramp-testbot-v3.yml";function Q$(e){return e.GITHUB_ACTIONS!=="true"&&/^true$/i.test(e.TF_BUILD??"")}o(Q$,"isAzurePipelines");function bq(e,t={}){let n=o(f=>{let g=e[f];if(!g)throw new Error(`${f} is not set; the V3 runner handshake needs it`);return g},"read"),i=sf(e.SYSTEM_COLLECTIONURI??""),r=o(()=>S$(n("SYSTEM_COLLECTIONURI")),"organization"),s=e.SYSTEM_TEAMPROJECT,a=e.BUILD_REPOSITORY_NAME,c=e.BUILD_REPOSITORY_ID?.toLowerCase(),u=e.SYSTEM_ACCESSTOKEN,l=t.mask??(f=>Aq(f)),p=o(f=>async()=>{if(!f)throw new Error("The job cannot request an OIDC token: the Testbot step's env must set SYSTEM_OIDCREQUESTURI to $(System.OidcRequestUri).");if(!u)throw new Error("The job cannot request an OIDC token: the Testbot step's env must set SYSTEM_ACCESSTOKEN to $(System.AccessToken).");let g=new URL(f);if(g.protocol!=="https:")throw new Error("SYSTEM_OIDCREQUESTURI is not an https URL");g.searchParams.set("api-version",vfe);let h=await(t.fetch??fetch)(g.toString(),{method:"POST",headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json",Accept:"application/json"},body:"{}",redirect:"error",signal:AbortSignal.timeout(3e4)});if(!h.ok)throw new Error(`Azure DevOps refused the OIDC token request: ${h.status}`);let m=(await h.json().catch(()=>({}))).oidcToken;if(typeof m!="string"||!m)throw new Error("Azure DevOps's OIDC token response carried no token");return l(m),m},"mint");return{runnerPlatform:Q$(e)?"azure":void 0,workspace:e.BUILD_SOURCESDIRECTORY||void 0,serverUrl:i,apiUrl:i,repository:c&&s&&a&&i?{id:c,slug:`${r()}/${s}/${a}`}:void 0,runId:e.BUILD_BUILDID||void 0,runAttempt:e.SYSTEM_STAGEATTEMPT||void 0,job:e.SYSTEM_JOBNAME||void 0,execution(){let f=n("SYSTEM_STAGEATTEMPT");if(!/^[1-9][0-9]*$/.test(f))throw new Error(`SYSTEM_STAGEATTEMPT is "${f}", not a positive whole number`);let g=n("SYSTEM_COLLECTIONID").toLowerCase();if(!Jc.test(g))throw new Error(`SYSTEM_COLLECTIONID is "${g}", not a GUID`);let h=n("BUILD_REPOSITORY_ID").toLowerCase();if(!Jc.test(h))throw new Error(`BUILD_REPOSITORY_ID is "${h}", not a GUID`);let m=[r(),n("SYSTEM_TEAMPROJECT"),n("SYSTEM_DEFINITIONID"),n("BUILD_BUILDID")].map(encodeURIComponent).join("/");return{provider:"azure-devops",repository:{provider:"azure-devops",providerAccountId:g,providerRepositoryId:h},providerRunId:m,providerRunAttempt:Number(f),workflowRef:`${Cfe}@${n("BUILD_SOURCEBRANCH")}`}},takeIdToken(){let f=e.SYSTEM_OIDCREQUESTURI;delete e.SYSTEM_OIDCREQUESTURI;let g=p(f);return()=>g()},takeSourceToken(){return delete e.SYSTEM_ACCESSTOKEN,u||void 0},webIdentity(){if(!e.SYSTEM_OIDCREQUESTURI?.trim()||!u)return;let f=p(e.SYSTEM_OIDCREQUESTURI);return{token:o(()=>f(),"token"),runId:e.BUILD_BUILDID}},v3RunsOnly:!0,assumesBedrockRole:!0,namesSourceToMcp:!0,runSettingsFromApp:!0,checkSourceName(f){jy(f)},cloneUrl(f){return mq(i,jy(f))},gitAuthEnv(f){return yq(i,f)},async pullRequest(f,g,h){let m=await R$({token:await h.token(),url:`${B$(i,jy(f))}/pullrequests/${g}`,fetch:h.fetch}),E=m.status==="completed";return{...typeof m.title=="string"?{title:m.title}:{},...typeof m.description=="string"?{body:m.description}:{},...typeof m.status=="string"?{merged:E}:{},...E&&typeof m.lastMergeCommit?.commitId=="string"?{mergeCommit:m.lastMergeCommit.commitId}:{},...E&&typeof m.lastMergeSourceCommit?.commitId=="string"?{mergedHead:m.lastMergeSourceCommit.commitId}:{}}},async commit(f,g,h){let m;try{m=B$(i,k$(f))}catch{return{lookup:"unknown"}}try{let E=await R$({token:await h.token(),url:`${m}/commits/${encodeURIComponent(g)}`,fetch:h.fetch});return typeof E.commitId=="string"?{sha:E.commitId}:{lookup:"missing"}}catch(E){return{lookup:E instanceof rf&&(E.status===404||E.status===400)?"missing":"unknown"}}}}}o(bq,"azureRunnerHost");Dc();var wfe=5e3,x$=/^(?!\.\.?$)[A-Za-z0-9._-]{1,100}$/;function Sfe(e){let t=Buffer.from(`x-access-token:${e}`).toString("base64");return dd(t),`AUTHORIZATION: basic ${t}`}o(Sfe,"githubGitAuthorization");function vq(e,t={}){let n=o(u=>{let l=e[u];if(!l)throw new Error(`${u} is not set; the V3 runner handshake needs it`);return l},"read"),i=e.GITHUB_REPOSITORY_ID,r=e.GITHUB_REPOSITORY,s=(e.GITHUB_SERVER_URL||"https://github.com").replace(/\/+$/,""),a=(e.GITHUB_API_URL||"https://api.github.com").replace(/\/+$/,""),c=o(async(u,l)=>l.fetch(u,{headers:{Authorization:`Bearer ${await l.token()}`,Accept:"application/vnd.github+json"},redirect:"error",signal:AbortSignal.timeout(3e4)}),"get");return{runnerPlatform:e.GITHUB_ACTIONS==="true"?"github":void 0,workspace:e.GITHUB_WORKSPACE||void 0,serverUrl:s,apiUrl:a,repository:i&&r?{id:i,slug:r}:void 0,runId:e.GITHUB_RUN_ID||void 0,runAttempt:e.GITHUB_RUN_ATTEMPT||void 0,job:e.GITHUB_JOB||void 0,execution(){let u=n("GITHUB_RUN_ATTEMPT");if(!/^[1-9][0-9]*$/.test(u))throw new Error(`GITHUB_RUN_ATTEMPT is "${u}", not a positive whole number`);return{provider:"github",repository:{provider:"github",providerAccountId:n("GITHUB_REPOSITORY_OWNER_ID"),providerRepositoryId:n("GITHUB_REPOSITORY_ID")},providerRunId:n("GITHUB_RUN_ID"),providerRunAttempt:Number(u),workflowRef:n("GITHUB_WORKFLOW_REF")}},takeIdToken(){let u=e.ACTIONS_ID_TOKEN_REQUEST_URL,l=e.ACTIONS_ID_TOKEN_REQUEST_TOKEN;return delete e.ACTIONS_ID_TOKEN_REQUEST_URL,delete e.ACTIONS_ID_TOKEN_REQUEST_TOKEN,async p=>{if(!u||!l)throw new Error("The job cannot request an OIDC token. Give it the `id-token: write` permission.");let f=new URL(u);f.searchParams.set("audience",p);let g=await fetch(f,{headers:{Authorization:`Bearer ${l}`,Accept:"application/json"},redirect:"error",signal:AbortSignal.timeout(3e4)});if(!g.ok)throw new Error(`GitHub refused the OIDC token request: ${g.status}`);let h=(await g.json().catch(()=>({}))).value;if(typeof h!="string"||!h)throw new Error("GitHub's OIDC token response carried no token");return dd(h),h}},webIdentity(){return!e.ACTIONS_ID_TOKEN_REQUEST_TOKEN?.trim()||!e.ACTIONS_ID_TOKEN_REQUEST_URL?.trim()?void 0:{token:t.getIDToken??(l=>FL(l)),runId:e.GITHUB_RUN_ID}},v3RunsOnly:!1,assumesBedrockRole:!1,namesSourceToMcp:!1,runSettingsFromApp:!1,checkSourceName(u){for(let l of[u.namespace,u.name])if(!x$.test(l))throw new Error(`"${l}" is not a repository name`)},cloneUrl(u){return`${s}/${u.namespace}/${u.name}.git`},gitAuthEnv(u){return u?{GIT_CONFIG_COUNT:"1",GIT_CONFIG_KEY_0:`http.${s}/.extraheader`,GIT_CONFIG_VALUE_0:Sfe(u)}:{}},async pullRequest({namespace:u,name:l},p,f){if(![u,l].every(m=>x$.test(m)))throw new Error("the repository name is not valid");let g=await c(`${a}/repos/${u}/${l}/pulls/${p}`,f);if(!g.ok)throw new Error(`GitHub answered ${g.status}`);let h=await g.json();return{...typeof h.title=="string"?{title:h.title}:{},...typeof h.body=="string"?{body:h.body}:{},...typeof h.merged=="boolean"?{merged:h.merged}:{},...h.merged===!0&&typeof h.merge_commit_sha=="string"?{mergeCommit:h.merge_commit_sha}:{},...h.merged===!0&&typeof h.head?.sha=="string"?{mergedHead:h.head.sha}:{}}},async commit(u,l,p){let[f,g,...h]=u.split("/");if(h.length||![f,g].every(m=>m!==void 0&&x$.test(m)))return{lookup:"unknown"};try{let m=await c(`${a}/repos/${f}/${g}/commits/${encodeURIComponent(l)}`,p);if(m.status===404||m.status===422)return{lookup:"missing"};if(!m.ok)return{lookup:"unknown"};let E=await m.json();return typeof E.sha=="string"?{sha:E.sha}:{lookup:"missing"}}catch{return{lookup:"unknown"}}},async revokeToken(u,l){let p=await l(`${a}/installation/token`,{method:"DELETE",headers:{Authorization:`Bearer ${u}`,Accept:"application/vnd.github+json"},redirect:"error",signal:AbortSignal.timeout(wfe)});if(!p.ok&&p.status!==401)throw new Error(`GitHub answered ${p.status}`)}}}o(vq,"githubRunnerHost");function $$(e=process.env){return Q$(e)?bq(e):vq(e)}o($$,"runnerHost");var of=me(require("net"));var wq=new of.BlockList;for(let[e,t]of[["0.0.0.0",8],["10.0.0.0",8],["100.64.0.0",10],["127.0.0.0",8],["169.254.0.0",16],["172.16.0.0",12],["192.168.0.0",16],["198.18.0.0",15],["224.0.0.0",4],["240.0.0.0",4]])wq.addSubnet(e,t,"ipv4");for(let[e,t]of[["::",128],["::1",128],["fc00::",7],["fe80::",10],["ff00::",8]])wq.addSubnet(e,t,"ipv6");var n_e=64*1024*1024;var af=me(require("net"));var Mu=new af.BlockList;Mu.addSubnet("127.0.0.0",8,"ipv4");Mu.addSubnet("0.0.0.0",8,"ipv4");Mu.addAddress("::1","ipv6");Mu.addAddress("::","ipv6");Mu.addSubnet("::ffff:127.0.0.0",104,"ipv6");Mu.addSubnet("::ffff:0.0.0.0",104,"ipv6");var Gy=me(require("fs")),ka=me(require("path"));var xfe={py:"python",go:"go",java:"java",kt:"kotlin",rb:"ruby",cs:"csharp",ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",kts:"kotlin",rs:"rust",php:"php",scala:"scala",swift:"swift",ex:"elixir",exs:"elixir",dart:"dart",c:"c",h:"c",cpp:"cpp",cc:"cpp",cxx:"cpp",hpp:"cpp",hh:"cpp",groovy:"groovy"};var N_e=new Set(Object.values(xfe));var G_e=5*6e4;function P$(e){try{let i=JSON.parse(Gy.readFileSync(ka.join(e,"package.json"),"utf-8")).packageManager,r=typeof i=="string"?i.match(/^(pnpm|yarn|bun|npm)\b/):null;if(r)return r[1]}catch{}let t=[["pnpm-lock.yaml","pnpm"],["yarn.lock","yarn"],["bun.lockb","bun"],["bun.lock","bun"],["package-lock.json","npm"]],n=ka.resolve(e);for(let i=0;i<6;i++){for(let[s,a]of t)if(Gy.existsSync(ka.join(n,s)))return a;let r=ka.dirname(n);if(r===n)break;n=r}return"npm"}o(P$,"packageManagerOf");var Rq=["package-lock.json","npm-shrinkwrap.json","pnpm-lock.yaml","yarn.lock","bun.lock","bun.lockb"],Tfe={"package.json":Rq,"pyproject.toml":["poetry.lock","uv.lock","pdm.lock"],Pipfile:["Pipfile.lock"]};function Vy(e,t){let n=lt.basename(t),i=Tfe[n];if(!i)return[];let r=lt.resolve(e),s=lt.dirname(lt.resolve(r,t)),a=lt.relative(r,s);if(a===".."||a.startsWith(`..${lt.sep}`)||lt.isAbsolute(a))return[];let c=o((l,p)=>p.map(f=>lt.join(lt.relative(r,l),f)).filter(f=>ky(r,f)),"trackedIn"),u=c(s,i);if(u.length)return u;for(let l=s;l!==r;){l=lt.dirname(l);let p=Dfe(l,lt.relative(l,s).split(lt.sep).join("/"),n);if(p)return c(l,p)}return[]}o(Vy,"trackedLockfiles");function O$(e,t){return t.filter(n=>Tx(e,n)&&lf(lt.join(e,n)))}o(O$,"updatedLockfiles");function Dfe(e,t,n){if(n==="package.json"){let i=Ffe(lt.join(e,"pnpm-workspace.yaml"));if(U$(i?.packages,t))return["pnpm-lock.yaml"];let s=Nfe(lt.join(e,"package.json"))?.workspaces,a=Array.isArray(s)?s:s?.packages;return U$(a,t)?Rq.filter(c=>c!=="pnpm-lock.yaml"):void 0}if(n==="pyproject.toml"){let i=_fe(lt.join(e,"pyproject.toml"));if(i&&U$([...i.members,...i.exclude.map(r=>`!${r}`)],t))return["uv.lock"]}}o(Dfe,"workspaceLockfiles");function U$(e,t){if(!Array.isArray(e))return!1;let n=o(a=>a.trim().replace(/^\.\//,"").replace(/\/+$/,""),"norm"),i=e.filter(a=>typeof a=="string"),r=i.filter(a=>!a.startsWith("!")).map(n),s=i.filter(a=>a.startsWith("!")).map(a=>n(a.slice(1)));return r.some(a=>lt.matchesGlob(t,a))&&!s.some(a=>lt.matchesGlob(t,a))}o(U$,"lists");function _fe(e){let t;try{t=uf.readFileSync(e,"utf-8")}catch{return}let n=t.split(`
162
162
  `),i=n.findIndex(c=>c.trim()==="[tool.uv.workspace]");if(i<0)return;let r=n.findIndex((c,u)=>u>i&&c.trim().startsWith("[")),s=n.slice(i+1,r<0?void 0:r).join(`
163
- `),a=o(c=>{let u=s.match(new RegExp(`^\\s*${c}\\s*=\\s*\\[([^\\]]*)\\]`,"m"));return u?[...u[1].matchAll(/["']([^"']+)["']/g)].map(l=>l[1]):[]},"array");return{members:a("members"),exclude:a("exclude")}}o(_fe,"uvWorkspace");function Nfe(e){return Pfe(Qq(e))}o(Nfe,"readJson");function Pfe(e){try{return JSON.parse(e)}catch{return}}o(Pfe,"parseJson");function Ufe(e){try{return Ks(e)}catch{return}}o(Ufe,"parseYaml");function Ffe(e){return Ufe(Qq(e))}o(Ffe,"readYaml");function Qq(e){try{return uf.readFileSync(e,"utf-8")}catch{return""}}o(Qq,"readText");function lf(e){try{return uf.lstatSync(e).isFile()}catch{return!1}}o(lf,"isFile");var Ofe=50,Lfe=50,Mfe=4096,jfe=8e3,Gfe=2048,Vfe=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f]/,zfe=/^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))[A-Za-z0-9._/ -]{1,255}$/,qfe=/^\.github\/workflows\/[A-Za-z0-9._-]+\.ya?ml$/,Jfe=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,$q=(s=>(s.Command="command",s.ComposeFile="compose_file",s.DeploymentWorkflow="deployment_workflow",s.Url="url",s.Guidance="guidance",s))($q||{}),Hfe={command:"optional",compose_file:"required",deployment_workflow:"required",url:"none",guidance:"none"},xq=o(e=>d.string().max(e).refine(t=>t.trim().length>0&&!Vfe.test(t),"must be non-blank text with no control characters other than tab, LF and CR"),"freeText");function Yfe(e){let t;try{t=new URL(e)}catch{return"invalid URL"}if(t.protocol!=="https:"&&t.protocol!=="http:")return"only http and https URLs";if(t.username||t.password)return"a URL cannot carry a login"}o(Yfe,"urlProblem");var Wfe={command:xq(Mfe),compose_file:d.string().regex(zfe,"must be a relative path inside the repository"),deployment_workflow:d.string().regex(qfe,"must be a .github/workflows/*.yml path"),url:d.string().max(Gfe).superRefine((e,t)=>{let n=Yfe(e);n&&t.addIssue({code:d.ZodIssueCode.custom,message:n})}),guidance:xq(jfe)},Zfe=d.object({kind:d.nativeEnum($q),value:d.string(),repository:rr.nullable()}).strict().superRefine((e,t)=>{let n=Hfe[e.kind];n==="required"&&!e.repository&&t.addIssue({code:d.ZodIssueCode.custom,path:["repository"],message:"a file belongs to a repository"}),n==="none"&&e.repository&&t.addIssue({code:d.ZodIssueCode.custom,path:["repository"],message:`a ${e.kind} names no repository`});let i=Wfe[e.kind].safeParse(e.value);if(!i.success)for(let r of i.error.issues)t.addIssue({code:d.ZodIssueCode.custom,path:["value"],message:r.message})}),Kfe=d.object({name:d.string().regex(Jfe,"must be a GitHub Actions secret name (A-Z, 0-9, _; not GITHUB_ or SKYRAMP_RUNNER_)"),purpose:d.nativeEnum(Ed),required:d.boolean()}).strict(),Tq=d.object({knowledge:d.array(Zfe).max(Ofe),credentials:d.array(Kfe).max(Lfe)}).strict(),X_e=Tq.superRefine((e,t)=>{let n=new Set;e.credentials.forEach((i,r)=>{n.has(i.name)&&t.addIssue({code:d.ZodIssueCode.custom,path:["credentials",r,"name"],message:"named twice"}),n.add(i.name)})});var Xfe=new Set(["components","dependencies","offLimits","allowedEgress","runner","agentPool","uiLogins","testEnvironments"]),Dq=Object.freeze([...Tq.keyof().options,...Xfe]);var eNe={model_provider:"model provider",sut_access:"SUT access",skyramp:"Skyramp",other:"other"};var eAe="SKYRAMP_TEST_SERVICE_URL_";var tAe=`${eAe}UI`;var zy="test-package.json";var nAe=["node_modules",".venv","test-results","playwright-report","blob-report","__pycache__",".pytest_cache"];var Nq=o(e=>e.split(Ki.sep).join("/"),"posix");function qy(e,t){let n=Nq(e);return t.some(i=>n===i||n.startsWith(`${i}/`))}o(qy,"insidePackage");function L$(e){return Nq(e).split("/").some(t=>nAe.includes(t))}o(L$,"producedByPackage");var TNe=new RegExp([String.raw`\bECONNREFUSED\b`,String.raw`\bconnect ETIMEDOUT\b`,String.raw`\bconnection refused\b`,String.raw`\b(?:net::ERR|NS_ERROR)_CONNECTION_REFUSED\b`,String.raw`\bconnection to \S+ refused\b`,String.raw`\bactively refused\b`,String.raw`\bcould not connect to\b`,String.raw`\bunable to (?:create|establish|open|obtain) (?:a |an |the )?(?:\w+ )?connection\b`,String.raw`\bcan't connect to (?:local )?(?:MySQL|MariaDB) server\b`,String.raw`\bconnection to server (?:at|on) .+ failed\b`,String.raw`\bCommunications link failure\b`,String.raw`\berror \d+ connecting to \S+`,String.raw`\b(?:timed out|timeout) (?:while |when )?(?:trying to )?connect(?:ing)? to\b`,String.raw`\bconnect(?:ion)? (?:attempt )?timed out\b`,String.raw`\bdial tcp \S+: (?:connect: )?i/o timeout\b`].join("|"),"i"),DNe=new RegExp([String.raw`\bAssertion(?:Failed)?Error\b|\bComparisonFailure\b|Error Trace:|\bNot equal:`,String.raw`\bexpect\(|\b[Ee]xpected\b|\bbut was\b|\bassert(?:_\w+|[A-Z]\w*)?\b|\.to(?:Be|Equal|Match|Throw|Contain|Have)\w*\b`].join("|"));var _Ne=String.raw`localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1?\]|::1`;var oAe=o(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"escapeRegex"),Uq=/%[psdifjo#]|\$[A-Za-z_][\w.]*/g;var aAe=/ (?:>|›) /;function cAe(e){return e.split(Uq).map(t=>t.split(aAe).map(oAe).join("(?: > | \u203A | )")).join(".+?")}o(cAe,"testNamePattern");function Fq(e,t){return new RegExp(Uq.source).test(t)?new RegExp(`^(?:.* )?${cAe(t)}$`).test(e):!1}o(Fq,"isEachCaseOf");function j$(e){return G$(e)&&vx(e).length===0&&wx(e.inputs?.sharedEnvironment).length===0}o(j$,"sutIsHealthy");function G$(e){let t=gAe(e);if(!t&&e.state.stages.deploy?.status!=="passed")return!1;let n=Le(e,"deploy.json");return n?AAe(n):!t}o(G$,"sutCameUp");function AAe(e){return e?.outcome==="clean"||e?.outcome==="recipe-drift"}o(AAe,"deployCameUp");function gAe(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}o(gAe,"broughtUpByPlan");var DPe=10*6e4;var Hy=(r=>(r.RestApi="rest-api",r.Frontend="frontend",r.FullStack="full-stack",r.Other="other",r))(Hy||{}),Ba=(r=>(r.Critical="critical",r.High="high",r.Medium="medium",r.Low="low",r))(Ba||{}),Ra=(i=>(i.Suspected="suspected",i.Latent="latent",i.Refuted="refuted",i))(Ra||{}),q$=(i=>(i.Skyramp="skyramp",i.External="external",i.Unknown="unknown",i))(q$||{}),J$=(r=>(r.Cascade="cascade",r.Restrict="restrict",r.Orphan="orphan",r.Unknown="unknown",r))(J$||{}),Si=(r=>(r.RequirementReference="requirement-reference",r.Spec="spec",r.PrDescription="pr-description",r.CouldBreak="could-break",r))(Si||{}),it=d.string().trim().min(1),ju=it.describe("file:line"),Mq=o(e=>it.refine(t=>t.length<=400,t=>({message:`is ${t.length} characters, over the 400 cap \u2014 ${e}`})),"cap400"),df=it.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'),z$=d.object({method:it,path:it,service:d.string().optional(),evidence:ju,repository:df}),bAe=d.object({id:it.describe("short-slug, e.g. R9"),statement:it.max(400,"exceeds 400 characters \u2014 state the requirement, do not paste the spec section").describe("a testable obligation, not a summary"),source:d.nativeEnum(Si).describe("spec outranks pr-description when both state it"),evidence:it.describe("spec: file:line or a section locator. pr-description: the quoted phrase it comes from.")}),vAe=d.object({id:it.describe("short-slug"),statement:it.max(400,"exceeds 400 characters \u2014 state the behaviour, do not paste the code").describe("what the change makes true"),surface:it.describe("METHOD /path, or a component/page name"),evidence:it.describe("file:line from the diff that introduces it"),repository:df,satisfies:d.array(it).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)")}),CAe=d.object({id:it.describe("short-slug"),file:it,line:d.number().optional(),claim:Mq("shorten it to the one sentence that states the defect, and move the supporting detail into `evidence`"),severity:d.nativeEnum(Ba),evidence:Mq("cite the file:line and the one line that shows it, rather than reproducing the surrounding code").describe("quoted diff/code line"),status:d.nativeEnum(Ra),repository:df,conflictsWith:d.array(it).optional().describe("requirement ids (from `requirements`) this defect contradicts or leaves unimplemented \u2014 a lower-precedence source (the diff, or the PR description) lost")}),wAe=d.object({name:it,language:d.string().optional(),framework:d.string().optional(),evidence:ju,repository:df}),SAe=d.object({dir:it,framework:d.string().optional(),kind:d.nativeEnum(q$),evidence:ju,repository:df}),kAe=d.object({from:it,to:it,onDelete:d.nativeEnum(J$),evidence:ju}),BAe=d.object({entity:it,field:it,values:d.array(d.string()),evidence:ju}),RAe=d.object({entities:d.array(d.object({name:it,evidence:ju})),references:d.array(kAe).describe("INBOUND references \u2014 what still points at an entity when it is deleted"),stateFields:d.array(BAe)}),H$=d.object({schemaVersion:d.literal(1),repository:d.object({path:it.describe("absolute repo path"),currentBranch:it,baseBranch:it}),project:d.object({type:d.nativeEnum(Hy),primaryLanguage:it,languages:d.array(d.string()),frameworks:d.array(d.string())}),services:d.array(wAe),infrastructure:d.object({containerized:d.boolean(),hasDockerCompose:d.boolean(),composeFiles:d.array(d.string()),hasCiCd:d.boolean()}),diff:d.object({changedFiles:d.array(d.string()).describe("as git reports them; a file in another checkout may carry that repo's name"),nonApplicationOnly:d.boolean(),summary:it.describe("\u2264400 chars")}),endpoints:d.object({new:d.array(z$),modified:d.array(z$),removed:d.array(z$)}),existingTests:d.object({locations:d.array(SAe)}),entityMap:RAe,requirements:d.array(bAe).describe("from a spec (attached or linked) and/or the PR description; empty when neither states a testable obligation"),behaviors:d.array(vAe),findings:d.array(CAe),unexamined:d.array(d.string()).describe("files or areas outside this change you did not open"),summary:it.describe("one paragraph on what this change does and its test-relevant risk")});var $Ae=d.object({route:d.string().describe('the page this step happens on, e.g. "/products/:id"'),action:d.string().describe('what the user does there, through the UI, e.g. "clicks Add to cart"'),clauses:d.array(d.string()).optional().describe("the plan clause ids this step exercises"),check:d.string().optional().describe("what the user then sees that shows the step worked; the test asserts it")}),pf=(n=>(n.InProcess="in-process",n.Browser="browser",n))(pf||{}),Gq=(i=>(i.Spec="spec",i.PrDescription="pr-description",i.Inferred="inferred",i))(Gq||{}),Vq=d.object({id:d.string().describe('e.g. "J1"'),name:d.string().describe(`the flow in a user's words, e.g. "buy a product with a coupon"`),entry:d.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:d.array($Ae).describe("every step, in order, from the entry page to the outcome: at least two"),outcome:d.string().describe("what the user sees at the end that shows the flow worked: every part of it"),finishes:d.string().optional().describe('the user action that completes the task, verb first, e.g. "places the order"; the journey walks on to it'),kind:d.nativeEnum(pf).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:d.nativeEnum(Gq).optional().describe("spec or pr-description when one describes this flow (quote it under evidence), else inferred"),evidence:d.string().optional().describe("for spec or pr-description: its words that describe the flow"),testFile:d.string().describe("the browser test file it goes in, beside the repo's existing e2e tests")}),Yy=d.object({journey:d.string().describe("the plan's journey id"),file:d.string().describe("the browser test file that walks it"),brokeAt:d.object({step:d.number().int().describe("the 1-based step whose check failed first"),expected:d.string(),actual:d.string().describe("what the app did instead, from the runner's output"),notReached:d.array(d.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:d.string().describe("the title of the one test in that file that walks it end to end")});var HPe=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 YPe=["stale_test","open_question"],WPe=["low","medium","high","critical"];var zq=String.raw`(?:\[[^\]]*\]|\([^)]*\))`,TAe=String.raw`(?:["'\u201c\u2018\x60]|\*{1,2})?[^\s:"'\u201c\u201d\u2018\u2019\x60*()[\],]+(?:["'\u201d\u2019\x60]|\*{1,2})?`,qq=String.raw`(?:${zq}|${TAe}(?:\s*${zq})?)`,Jq=String.raw`(?:\s*:|\s+[\u2014\u2013-])`,eUe=new RegExp(String.raw`^\s*(?:${qq}(?:,\s*${qq})*(?::L?\d+(?:[-\u2013]\d+)?${Jq}?|${Jq})|\[[^\]\s]+\]|\([^)\s]+\))\s+`);var no=me(require("fs")),Vu=me(require("path"));var an="{junit}",Wy=(s=>(s.Junit="junit",s.Trx="trx",s.GoTestJson="go-test-json",s.JestJson="jest-json",s.PlaywrightList="playwright-list",s))(Wy||{}),Y$=(t=>(t.Minitest="minitest",t))(Y$||{}),Hq=d.string().trim().min(1),Qa=d.object({cwd:Hq.describe('repo-relative directory the command starts in ("." for the root)'),argv:d.array(Hq).min(1).describe(`the command as separate arguments, run without a shell; for a junit or trx report an argument or env value holds ${an}, where the report is written (not for Maven or Gradle, whose build writes its own)`),env:d.record(d.string(),d.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:d.object({format:d.nativeEnum(Wy).describe(`junit (JUnit XML to ${an}), trx (to ${an}), jest-json (Jest's --json or Vitest's --reporter=json, --outputFile=${an}), or go-test-json (go test -json on the command's output)`),reporter:d.nativeEnum(Y$).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 Gu="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)";var sUe=`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 ${an} in the reporter's argument or env setting), trx (a TRX file to ${an}, which every dotnet test writes with its built-in logger), jest-json (Jest's --json --outputFile=${an}, or Vitest's --reporter=json --outputFile=${an}: 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 ${an}: 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 ${an} itself. A setting the tests or reporter read goes in "env" (RAILS_ENV=test, or PLAYWRIGHT_JUNIT_OUTPUT_FILE=${an} with playwright test --reporter=junit): the run sets it, so never wrap the command in a shell to set one. The run replaces ${an} in argv and env with its report path, executes the command, and reads that report.`;var Xi=(r=>(r.ExistingEvidenceSufficient="existing_evidence_sufficient",r.TargetedUnit="targeted_unit",r.RuntimeRequired="runtime_required",r.BlockedPreflight="blocked_preflight",r))(Xi||{}),es=(s=>(s.ExistingEvidence="existing_evidence",s.Unaffected="unaffected",s.ExistingUnit="existing_unit",s.NewUnit="new_unit",s.Runtime="runtime",s))(es||{}),W$=(n=>(n.Repository="repository",n.Testbot="testbot",n))(W$||{}),Z$=(i=>(i.Identified="identified",i.Passed="passed",i.Failed="failed",i))(Z$||{}),Ln=d.string().trim().min(1),DAe=d.string().regex(/^[a-z0-9][a-z0-9-]*$/,"must be a short lowercase slug").describe("short-slug");var _Ae=d.object({id:DAe,source:d.nativeEnum(W$),kind:d.nativeEnum(Ds),outcome:d.nativeEnum(Z$),summary:Ln.max(400).describe("one line: what it shows"),tests:d.array(Ln).optional().describe("source repository: the existing tests, as repo-relative paths, optionally path::test-name"),repository:Ln.optional().describe("source repository: owner/repo the tests live in, when the run has several checkouts; omit for the working checkout"),command:Ln.optional().describe("source testbot: the exact command you ran, as you ran it"),run:Qa.optional().describe(`source repository, for tests in ${Gu}: 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`)}),NAe=d.object({behaviorId:Ln.describe("an id from analyze's behaviors"),mechanism:d.nativeEnum(es),evidenceIds:d.array(Ln).default([]).describe("existing_evidence: the ci-<n> or evidence ids that establish it; existing_unit: the evidence id naming the tests to run"),covers:d.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')}),K$=(i=>(i.Browser="browser",i.RunningApp="running-app",i.Outside="outside",i))(K$||{}),PAe=d.object({behaviorId:d.string().trim().optional().describe("an id from analyze's behaviors, when it is about one"),missing:Ln.max(600).describe("the evidence that is required and cannot be obtained in this run"),needs:d.nativeEnum(K$).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)")}),UAe=d.object({file:Ln.describe("the changed file the failure is in"),repository:Ln.optional().describe("owner/repo the file is in, when the run has several checkouts; omit for the working checkout"),reason:Ln.max(300).describe("what prerequisite the change fails"),evidence:Ln.max(400).describe("the error line, quoted")}),FAe=d.object({behaviorId:Ln.describe("an id from analyze's behaviors"),reason:Ln.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)")}),ff=d.object({schemaVersion:d.literal(1),decision:d.nativeEnum(Xi),evidence:d.array(_Ae).describe("evidence this session found or produced; CI results are the ci-<n> items and are not restated here"),plan:d.array(NAe).describe("how each changed behavior's evidence is obtained"),gaps:d.array(PAe),outOfScope:d.array(FAe).optional().describe("behaviors analyze found that this change neither changes nor states"),blocked:UAe.optional().describe("only for blocked_preflight"),rationale:Ln.max(1200).describe("\u22641200 characters: why this evidence is enough, or what it still lacks \u2014 the scope you chose and why")});function to(e){let t=Le(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()}:{}}))}}o(to,"readRecommend");var t0=".skyramp/staged";function jAe(e){return In(EC,e).errors}o(jAe,"validateGenerateOutput");function GAe(e,t=[]){let{value:n,error:i}=Nt(e,t);if(i)return{errors:[i]};let r=jAe(n);return r.length>0?{errors:r}:{generate:n,errors:[]}}o(GAe,"parseGenerateText");function Zy(e,t=[]){return GAe(e.stdout,t)}o(Zy,"parseGenerateFromSession");function VAe(e){return e.generate.filter(t=>t.type!=="ui").map(t=>t.id)}o(VAe,"backendCases");function n0(e){return e.generate.filter(t=>t.type==="ui").map(t=>t.id)}o(n0,"uiCases");var Ky={backend:{stage:"generate",cases:VAe,noRecommendCoverage:"recommend.json missing or malformed \u2014 cannot check coverage",noRecommendIntent:"recommend.json missing or malformed \u2014 cannot check intent",uncovered:o(e=>`recommend case "${e}" is not covered by any generated test`,"uncovered"),unknownCovered:o(e=>`test covers unknown recommend id "${e}"`,"unknownCovered"),unasserted:o(e=>`case "${e}" has no verified assertion enforcing its expected_observable`,"unasserted"),usedCodegen:AV,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:n0,noRecommendCoverage:"recommend.json not found \u2014 cannot check UI coverage",noRecommendIntent:"recommend.json not found \u2014 cannot check UI intent",uncovered:o(e=>`UI case "${e}" is not covered by any generated UI test`,"uncovered"),unknownCovered:o(e=>`test covers "${e}" which is not a recommend UI case`,"unknownCovered"),unasserted:o(e=>`UI case "${e}" has no verified assertion enforcing its expected_observable`,"unasserted"),usedCodegen:gV,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."}},LUe=Dn("generate-schema",(e,t)=>Zy(t,e.secretValues));function zAe(e){let t=Ky[e];return{name:`${t.stage}-coverage`,verify(n,i){let{generate:r,errors:s}=Zy(i,n.secretValues);if(!r)return zt(this.name,s);let a=to(n);if(!a)return zt(this.name,[t.noRecommendCoverage]);let c=new Set(r.tests.flatMap(f=>f.covers)),u=[],l=t.cases(a);for(let f of l)c.has(f)||u.push(t.uncovered(f));let p=new Set(e==="ui"?l:a.generate.map(f=>f.id));for(let f of c)p.has(f)||u.push(t.unknownCovered(f));if(e==="backend"){let f=new Set(r.deferredUi),g=new Set(n0(a));for(let h of g)!f.has(h)&&!c.has(h)&&u.push(`UI case "${h}" is neither covered nor deferred to the UI stage`);for(let h of f)g.has(h)||u.push(`deferredUi lists "${h}" which is not a UI case`)}return u.length===0?{name:this.name,passed:!0}:zt(this.name,u)}}}o(zAe,"generateCoverageGateFor");function qAe(e){let t=Ky[e];return{name:`${t.stage}-intent`,verify(n,i){let{generate:r,errors:s}=Zy(i,n.secretValues);if(!r)return zt(this.name,s);let a=to(n);if(!a)return zt(this.name,[t.noRecommendIntent]);let{asserted:c,errors:u,badFiles:l}=XAe(r,n.inputs.repositoryPath),p=u.length;for(let g of t.cases(a))c.has(g)||u.push(t.unasserted(g));if(u.length===0)return{name:this.name,passed:!0};let f=zt(this.name,u);return p>0&&p===u.length&&l.size>0?{...f,droppable:[...l]}:f}}}o(qAe,"generateIntentGateFor");function JAe(e){let t=Ky[e];return n=>{if(!n.inputs.skyrampMcp?.command||e==="backend"&&!j$(n))return;let i=Vu.join(n.outputsDir,`${t.stage}-stream.ndjson`);if(!(!no.existsSync(i)||t.usedCodegen(i)))return hV(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."}}o(JAe,"codegenRetryHintFor");var MUe=zAe("backend"),jUe=qAe("backend"),GUe=JAe("backend");var Yq=o(e=>e.replace(/\s+/g,""),"squeeze");var X$={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"]])X$[e]=X$[t];function HAe(e,t){if(e.includes(Ld(t))||Yq(e).includes(Yq(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(Ld(i)))?!0:KAe(e,t)}o(HAe,"evidenceFound");var YAe=/\bassert\w*\b|\bexpect\s*\(|\.should\b|\brequire\s*\(/i,WAe=12,ZAe=/,\s*\(\s*#|,\s*f?["'`]|\s+#\s|\s+\/\/|\s*\((?:line|lines|at line)\b|\s*,\s*$/i;function KAe(e,t){let n=t.split(/\s*;\s*|\s*\.\.\.\s*|\r?\n/),i=0;for(let r of n){let s=YAe.exec(r);if(!s)continue;let a=r.slice(s.index),c=ZAe.exec(a);if(c&&(a=a.slice(0,c.index)),a=Ld(a).replace(/[,\s]+$/,""),a.length<WAe||!e.includes(a))return!1;i++}return i>0}o(KAe,"annotatedAssertionFound");function XAe(e,t){let n=new Set,i=[],r=new Set;for(let s of e.tests){let a=Vu.resolve(t,s.file);if(!no.existsSync(a))continue;let c=Ld(no.readFileSync(a,"utf-8"));for(let u of s.assertions??[]){if(!HAe(c,u.evidence)){i.push(`assertion evidence for "${u.case}" not found in ${s.file} \u2014 cite the real assertion line`),r.add(s.file);continue}s.covers.includes(u.case)?n.add(u.case):(i.push(`assertion cites case "${u.case}" not in that test's covers[]`),r.add(s.file))}}return{asserted:n,errors:i,badFiles:r}}o(XAe,"verifiedAssertions");var ege=/\.(spec|test)\.[cm]?[jt]sx?$/i;function Wq(e){let t;try{t=Ct([...ur,"status","--porcelain","--untracked-files=all"],{env:Qt(),cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]})}catch{return}let n=o(r=>/_scaffold/i.test(r)||Md.test(r),"isTestLitter"),i=[];for(let r of t.split(`
164
- `)){if(!r.trim()||r.length>1&&r[1]==="D")continue;let s=r.slice(3).trim(),a=s.indexOf(" -> ");if(a!==-1&&(s=s.slice(a+4).trim()),s=s.replace(/^"|"$/g,""),!s)continue;let c=s.replace(/^\.\//,"");c.startsWith(".skyramp/")||!n(c)||i.push(c)}return i}o(Wq,"testLitter");function tge(e){let t=Ky[e],n=e==="ui";return{name:`${t.stage}-no-litter`,verify(i){let r=Wq(i.inputs.repositoryPath);if(r===void 0)return{name:this.name,passed:!0};let s=r.filter(a=>ege.test(a)===n);return s.length===0?{name:this.name,passed:!0}:zt(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(", ")}`])}}}o(tge,"noLitterGateFor");var VUe=tge("backend");var ige="write-stale-updates",sge={[ige]:"stale test updates"};var Af=me(require("fs")),xa=me(require("path"));function eJ(e){return In(IC,e).errors}o(eJ,"validateAdaptOutput");function cge(e,t=[]){let{value:n,error:i}=Nt(e,t);if(i)return{errors:[i]};let r=eJ(n);return r.length>0?{errors:r}:{adapt:n,errors:[]}}o(cge,"parseAdaptText");var uge="adapt-scratch",Kq=`${uge}/adapt-result.json`;function tJ(e,t){let n=xa.join(e.outputsDir,Kq),i;try{i=Af.readFileSync(n,"utf-8")}catch{i=void 0}if(i!==void 0&&(e.secretValues??[]).some(a=>i.includes(a)))return{errors:[`${Kq} contains a secret value (token / credential) \u2014 never write it anywhere`]};let r=cge(t.stdout,e.secretValues);if(r.adapt)return r;let s=i!==void 0?Ps(n):void 0;return s!==void 0&&eJ(s).length===0?{adapt:s,errors:[]}:r}o(tJ,"parseAdaptFromSession");var EFe=Dn("adapt-schema",tJ);function r0(e){return nJ(e)??[]}o(r0,"statusEntries");function nJ(e){let t;try{t=Ct([...ur,"status","--porcelain","-z","--untracked-files=all"],{env:Qt(),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 a=s.slice(0,2);i.push({code:a,path:s.slice(3)}),(a[0]==="R"||a[0]==="C")&&r++}return i}o(nJ,"readStatusEntries");var xFe=2*1024*1024;var gf=d.string().trim().min(1),lge=d.object({cwd:gf.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:d.array(gf).min(1).describe("the command as separate arguments, run without a shell"),env:d.record(d.string(),d.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),rJ=d.object({file:gf.describe("a file of the test's checkout, relative to its root"),line:gf.describe("a line of that file, quoted exactly from where its command starts to its end")}),iJ=d.object({collected:d.boolean().describe("whether the repo's CI runs this test as it is"),steps:d.array(rJ).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:d.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:lge.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:d.string().optional().describe("when not collected: why the repo's CI will not run it"),needs:d.array(gf).optional().describe("what the test needs running outside its own process (the app, a database, another service), one entry each; omit when it needs none"),starts:d.array(rJ).optional().describe("when collected and it needs any: the line that starts each of those in the CI job that runs it, in a file of ci.steps")});var ce=d.string().trim().min(1),mge=o(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},"skippedNeedsNoExpected"),yge=d.preprocess(mge,d.object({id:ce.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:ce.describe("one testable part of the requirement"),expected:ce.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:d.string().optional().describe("only when no test can check this clause here: why"),type:d.nativeEnum(vi).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:d.string().optional().describe('its "METHOD /path", or the page / flow'),steps:d.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:d.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:d.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:d.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:d.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:d.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:d.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:d.string().optional().describe("the words of the spec, plan, ticket, PR description or a test the change adds or edits that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:d.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),oJ=d.object({spec:d.string().optional().describe("file:line of a spec in the repository"),prDescription:d.boolean().optional().describe("or true when a pull request description says otherwise"),reference:d.string().optional().describe("or the key of an item the run was given, as listed"),says:ce.describe("what it says there, in its own words, copied exactly"),criterion:d.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`}),Ege=d.object({id:ce.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:ce,source:d.nativeEnum(Si).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:d.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:ce.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:d.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:d.array(d.object({reference:ce.regex(Ts).describe("the key of another uploaded document stating the same obligation"),says:ce.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:d.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:d.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:d.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:d.array(oJ).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:d.array(yge)}),aJ=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(aJ||{}),Ige=d.object({id:ce.describe('e.g. "F1"'),file:ce,line:d.number().optional(),claim:ce.describe("the defect, in one sentence"),severity:d.nativeEnum(Ba),evidence:ce.describe("the code line, or the probe request and response, that shows it"),conflictsWith:d.array(ce).optional().describe("requirement or clause ids it violates"),keeps:d.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:d.nativeEnum(aJ).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:d.string().optional().describe("only when the base already does this, in code the change left as it was, and the change does not say it fixes it: where the base does it (its file:line); such a defect gets no case"),needsApp:d.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)")}),bge=d.object({id:ce.describe('e.g. "Q1"'),question:ce.describe("what is unsettled, as a question the PR author can answer"),readings:d.array(ce).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:d.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:d.array(oJ).optional().describe("when sources of the same rank disagree on it: each of them")}),vge=d.object({id:ce.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:d.nativeEnum(vi).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:ce.describe('"METHOD /path", or the page / flow'),clause:d.string().optional().describe("the clause id this case checks"),finding:d.string().optional().describe("the finding id this case catches"),steps:ce.describe("what the test does"),expected:ce.describe("the expected outcome, from the clause"),mutates:d.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")}),Cge=d.object({test:ce.describe("existing test file"),action:d.nativeEnum(Ci),reason:ce,mutates:d.boolean().optional().describe("true when the maintained test changes state"),clauses:d.array(ce).optional().describe("the clause ids this test checks"),staleOnBase:d.boolean().optional().describe("true when the test's own expectation was already wrong before this change: it fails the same way on the base branch, where the app does what it should. Not one the base app's own bug fails (that is an existing defect). It is verify, never update: re-run as it is, its failure the test's own. A delete the change justifies stays a delete")}),sJ=d.array(AC).optional(),wge=d.object({components:d.preprocess(e=>sJ.safeParse(e).success?e:void 0,sJ).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:d.nativeEnum(fi).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:d.record(d.string()).optional().describe("service \u2192 base URL of the running app"),health:d.object({url:d.string().optional(),command:d.string().optional(),output:d.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:d.string().optional().describe("command that stops the app"),dependencies:d.record(d.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:d.array(d.string()).optional().describe("what you changed in the recipe"),error:d.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:d.array(d.string()).optional().describe("change-broke-bringup: the changed files to blame"),missingSecrets:d.array(d.string().regex(Id)).optional().describe("bringup-failed only: each secret, key, token or password the app cannot start without that this run has no value for, by its environment variable name; never a value"),login:d.object({username:ce,password:d.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:mC.optional()}),fOe=d.object({schemaVersion:d.literal(1),requirements:d.array(Ege),findings:d.array(Ige),cases:d.array(vge).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:d.array(bge).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:d.array(Cge),journeys:d.array(Vq).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:d.array(d.object({clause:ce,why:ce})).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:d.array(d.object({components:d.array(ce).min(1).describe("changed components, as the change lists them"),why:ce})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:ff.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:wge.optional().describe("omit when no app was needed or none was started"),summary:ce.describe("one paragraph: what the change does and where the risk is")});var hf=(n=>(n.Backend="backend",n.Ui="ui",n))(hf||{});var ts=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(ts||{}),Sge=d.object({file:ce.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:d.nativeEnum(hf),change:d.nativeEnum(ts).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:d.array(d.string()).describe("the plan case or maintenance clause ids this file tests, each with its own result under result.cases"),defect:d.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:d.object({requirement:ce.describe("the requirement or clause id the change deliberately alters"),line:ce.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"),staleOnBase:d.boolean().optional().describe("for an existing test that fails: true when it fails the same way on the base branch because its own expectation is wrong (the app there does what it should), so this change did not make it wrong. Not when the base app's own bug fails it: that is an existing defect. Leave it as it is (unchanged): its failure is the test's own"),result:d.object({started:d.boolean().optional().describe("with exit null: true if this file's test command started (it was interrupted or timed out), false if it never started. Left out, Testbot counts it as possibly started, with its cleanup unknown"),exit:d.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:d.array(d.object({case:ce,status:d.nativeEnum(tr),runtimeTargets:Qd.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:d.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"),testProblem:ih.optional().describe("for a failing case marked defect: false: what in the test is at fault"),failure:d.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:d.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:d.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:d.string().optional().describe("what failed and why, or why it was not run"),noCases:d.string().optional().describe("for a failed run whose runner reported none of this file's tests (it failed to compile, import or collect): why")}),assertions:d.array(d.object({case:ce,evidence:ce})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:d.array(d.object({name:ce.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:d.array(ce).describe("the plan case or maintenance clause ids it checks"),testProblem:ih.optional().describe("for a function that fails because of the test itself, while another function keeps a case it checks as a defect: what in it is at fault")})).optional().describe("for a file you added or updated, or an existing test to maintain that lists clauses: each test function in it and the plan case or maintenance clause ids it checks"),skyramp:d.object({draft:d.union([d.string(),d.array(d.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:d.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:d.array(Rd).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:ce.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:iJ.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:Qa.optional().describe(`for a file in ${Gu}, 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 ${an}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),kge=o(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},"oneTestIsTests"),Bge=d.preprocess(kge,d.object({description:ce.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:d.nativeEnum(Ba).optional(),sourceFile:d.string().optional().describe("the app file at fault"),sourceLine:d.number().optional(),tests:d.array(ce).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:d.string().optional().describe("the plan's finding id, when it is one"),requirements:d.array(ce).optional().describe("the plan's requirement or clause ids it violates")})),AOe=d.object({schemaVersion:d.literal(1),tests:d.array(Sge),notWritten:d.array(d.object({case:ce,reason:ce,coveredBy:d.object({file:ce.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:ce.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; also a maintenance clause that no function of its existing test asserts (it stays unproven)"),journeys:d.array(Yy).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:d.object({command:d.string(),clean:d.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:d.array(d.object({package:ce,manifest:ce.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:ce.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:ce.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:d.array(ce).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:d.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"),importerRun:Qa.optional().describe("when you changed a module other test files import: the repository's own command for running its test files (its runner, its config, its folder); Testbot loads the files that reach your change with it and reports each; omit when you changed none"),commit:d.object({message:ce.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:ce.describe("at most 72 characters, following the repository's PR-title checks"),prBody:ce.describe("what the tests cover and what they found")}),report:d.object({summary:ce.describe("1-2 sentences for the PR author: does the change do what it says? No count of tests: the report gives it"),issues:d.array(Bge).describe("every defect the tests found"),nextSteps:d.array(d.string()),noTests:d.array(d.object({repository:ce,reason:ce.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:d.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 gOe={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};var uJ=(i=>(i.Requirement="requirement",i.PrDescription="pr_description",i.Code="code",i))(uJ||{}),Wt=d.string().trim().min(1),Qge=d.object({expectation:Wt.max(300).describe("the behavior this assertion pins, in words"),source:d.nativeEnum(uJ),expected:Wt.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),xge=d.object({file:Wt.describe("path of the NEW test file you wrote, relative to its repository"),repository:Wt.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:Wt.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:Qa.optional().describe(`for ${Gu}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:d.array(Wt).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:d.array(Wt).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:d.array(Qge).min(1)}),mf=(n=>(n.Updated="updated",n.Deleted="deleted",n))(mf||{}),cJ=300,$ge=d.object({file:Wt.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:Wt.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:d.nativeEnum(mf),staleBecause:d.object({requirement:Wt.describe("the requirement or clause id the change deliberately alters"),line:Wt.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:d.preprocess(e=>typeof e=="string"?e.trim().slice(0,cJ):e,Wt.max(cJ)).describe("what the change deliberately altered that made the test wrong")}),i0=d.object({schemaVersion:d.literal(1),tests:d.array(xge),maintained:d.array($ge).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:d.array(d.object({id:Wt,reason:Wt.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:d.array(Yy).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:d.array(d.object({journey:Wt,missing:Wt.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:d.object({command:d.string(),clean:d.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repository has one you can run; omit otherwise"),commitMessage:Wt.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var yf="generate-unit.json";function Dge(e){let{value:t,error:n}=Nt(e);if(n)return{errors:[n]};let{value:i,errors:r}=In(i0,t);return r.length?{errors:r}:{output:i,errors:[]}}o(Dge,"parseGenerateUnitText");function _ge(e){return Dge(e.stdout)}o(_ge,"parseGenerateUnitFromSession");var lLe=Dn("generate-unit-schema",(e,t)=>_ge(t));var Xy=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,dLe=[[/\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+["']${Xy}["']|\bimport\s+["']${Xy}["']|require\(\s*["']${Xy}["']\s*\)|\bimport\(\s*["']${Xy}["']\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 _Le=new Set(["targeted_unit","existing_evidence_sufficient"]);var jge="triage.json";var HMe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),YMe={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 Gge(e){let{value:t,error:n}=Nt(e);if(n)return{errors:[n]};let{value:i,errors:r}=In(ff,t);return r.length?{errors:r}:{triage:i,errors:[]}}o(Gge,"parseTriageText");function Vge(e){return Gge(e.stdout)}o(Vge,"parseTriageFromSession");var WMe=Dn("triage-schema",(e,t)=>Vge(t));function zge(e){let t=e.inputs?.pipeline;return t?e.state.stages[t==="two-step"?"plan":"triage"]:e.state.stages.triage??e.state.stages.plan}o(zge,"triageDecider");function o0(e){if(zge(e)?.status==="passed")return Ps(gJ.join(e.outputsDir,jge))}o(o0,"readTriage");function a0(e){return kV(Cx(e.inputs,Le(e,`${Jp}.json`),o0(e)?.sutRequired))}o(a0,"revisionBlockReason");var ZMe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);var qr=me(require("fs")),oo=me(require("path")),fH=me(require("crypto")),AH=require("child_process");var c0=require("child_process"),zu=me(require("fs")),hJ=me(require("os")),tE=me(require("path"));var qge={onPath:o(e=>(0,c0.spawnSync)("sh",["-c",`command -v ${e}`],{stdio:"ignore"}).status===0,"onPath"),run:o((e,t)=>(0,c0.spawnSync)(e[0],e.slice(1),{cwd:t,stdio:"ignore",timeout:6e4}).status??1,"run")},Ef={cleanup:o(()=>{},"cleanup")},Jge=new Set(["pnpm","yarn"]);function mJ(e,t=hJ.tmpdir(),n=qge){if(process.platform==="win32")return Ef;try{if(Pa(e))return Ef;let i=P$(e);if(!Jge.has(i)||n.onPath(i)||!n.onPath("corepack"))return Ef;zu.mkdirSync(t,{recursive:!0});let r=zu.mkdtempSync(tE.join(t,"testbot-pm-")),s=o(()=>zu.rmSync(r,{recursive:!0,force:!0}),"cleanup");return n.run(["corepack","enable","--install-directory",r,i],e)!==0?(s(),Ef):{dir:r,cleanup:s}}catch{return Ef}}o(mJ,"packageManagerShims");function yJ(e,t=process.env){return e.dir?{...t,PATH:[e.dir,t.PATH].filter(Boolean).join(tE.delimiter)}:t}o(yJ,"withShims");var Bf=require("crypto");function Bt(e){let t=Math.max(0,...(e.match(/`+/g)??[]).map(r=>r.length)),n="`".repeat(t+1),i=e.startsWith("`")||e.endsWith("`")?" ":"";return`${n}${i}${e}${i}${n}`}o(Bt,"codeSpan");function u0(e){return e.functions?.length?e.functions:[(e.testType==="unit"?e.testId.split("::").slice(1).join("::").replace(/\[.*\]$/,""):"")||e.testId]}o(u0,"rowFunctions");function qu(e){return new Set(e.flatMap(t=>u0(t).map(n=>`${t.repository??""}\0${t.fileName}\0${n}`))).size}o(qu,"testCount");Dc();var Sje=5*6e4,kje=12*6e4,Bje=2*6e4;var _je=["class TestbotProjectBrowsers {"," onBegin(config) {",' const projects = config.projects.map((p) => ({ browserName: p.use.browserName ?? p.use.defaultBrowserType ?? "chromium", channel: p.use.channel ?? null }));',' process.stdout.write("TESTBOT_PROJECT_BROWSERS " + JSON.stringify(projects) + "\\n");'," }"," printsToStdio() { return true; }","}","module.exports = TestbotProjectBrowsers;",""].join(`
165
- `);var qje=[...tl,"AWS_REGION","AWS_DEFAULT_REGION","AWS_ENDPOINT_URL","AWS_ENDPOINT_URL_BEDROCK_RUNTIME","AWS_ENDPOINT_URL_STS","AWS_SHARED_CREDENTIALS_FILE","AWS_CONFIG_FILE","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL"].filter((e,t,n)=>n.indexOf(e)===t);var ro=me(w$());var b1e={jest:"jest",vitest:"vitest"};var Zge=[["target","surefire-reports"],["target","failsafe-reports"],["build","test-results"]],$Ge=new Set(Zge.map(([e])=>e));var TGe=new Set(["jest","vitest","npm-test","playwright"]);var ehe="ci-collect";var qGe=5*6e4;function IJ(e,t){let n=new Set(t.tests.map(i=>i.file));return(Le(e,`${ehe}.json`)?.checks??[]).filter(i=>n.has(i.file))}o(IJ,"currentCiChecks");function d0(e){let t=Le(e,"write.json");if(!Array.isArray(t?.tests))return new Set;let n=new Set(t.tests.filter(i=>i.change==="added").map(i=>i.file));return new Set(IJ(e,t).filter(i=>i.verdict==="unprovisioned"&&n.has(i.file)).map(i=>i.file))}o(d0,"withheldTests");var Mn=me(require("fs")),ns=me(require("path"));var io=me(require("fs")),nE=me(require("path"));var the="change-inputs",nhe=o((e,t)=>`${t}-${e.replace(/[^\w.-]+/g,n=>n==="/"?"__":"-")}.md`,"fileName");function rhe(e){return[...(e.pullRequests??[]).map(t=>({label:`${t.repository}#${t.number}`,body:t.body?.trim()??""})),...(e.relatedRepos??[]).map(t=>({label:t.slug,body:t.prDescription?.trim()??""}))].map((t,n)=>({...t,file:nhe(t.label,n)})).filter(t=>t.body.length>bj)}o(rhe,"longDescriptions");function bJ(e,t,n){let i=nE.join(t,the);io.rmSync(i,{recursive:!0,force:!0}),io.mkdirSync(i,{recursive:!0}),io.writeFileSync(nE.join(i,wa),n,{mode:292});for(let r of rhe(e))io.writeFileSync(nE.join(i,r.file),`${r.body}
166
- `,{mode:292})}o(bJ,"writeChangeInputs");var ihe=[/^\.github\//,/^\.gitlab(-ci)?/,/^\.circleci\//,/(^|\/)Jenkinsfile$/,/^docs?\//,/\.(md|mdx|rst)$/i,/(^|\/)LICENSE([._-].*)?$/i,/(^|\/)CODEOWNERS$/,/(^|\/)\.gitignore$/,/(^|\/)\.gitattributes$/,/(^|\/)\.editorconfig$/,/(^|\/)\.prettierrc[^/]*$/,/(^|\/)\.eslintrc[^/]*$/,/(^|\/)eslint\.config\.[^/]+$/,/(^|\/)package-lock\.json$/,/(^|\/)yarn\.lock$/,/(^|\/)pnpm-lock\.yaml$/,/(^|\/)poetry\.lock$/,/(^|\/)Pipfile\.lock$/,/(^|\/)Cargo\.lock$/,/(^|\/)go\.sum$/,/(^|\/)composer\.lock$/,/(^|\/)Gemfile\.lock$/,/\.(png|jpe?g|gif|svg|ico|webp)$/i];function vJ(e){return ihe.some(t=>t.test(e))}o(vJ,"isNonApplicationFile");function she(e){let t=[],n=e.inputs.repositoryPath;return!n||!Mn.existsSync(n)?t.push(`repository path does not exist: ${n}`):Dx(n)?Yp(n,e.inputs.baseBranch)||t.push(e.inputs.baseBranch?`base branch "${e.inputs.baseBranch}" does not resolve`:"could not auto-detect a base branch (origin/HEAD, main, master)"):t.push(`not a git repository: ${n}`),{ok:t.length===0,reasons:t}}o(she,"validatePreflightInput");function ohe(e){return(e.inputs.relatedRepos??[]).map(t=>{let n=Mn.existsSync(t.path)?By(t.path,t.base):void 0;return n?{repository:t.slug,changedFiles:n.changedFiles}:{repository:t.slug,changedFiles:[],note:`could not read the change in ${t.path}`}})}o(ohe,"collectRelatedChanges");function ahe(e){Mn.rmSync(ns.join(e.runDir,kx),{recursive:!0,force:!0});for(let t of e.inputs.relatedRepos??[]){let n=Mn.existsSync(t.path)?_x(t.path,t.base):void 0;if(!n)continue;let i=ns.join(e.runDir,Bx(t.slug));Mn.mkdirSync(ns.dirname(i),{recursive:!0}),Mn.writeFileSync(i,n.diffContent)}}o(ahe,"writeRelatedDiffs");function che(e){let{repositoryPath:t,baseBranch:n}=e.inputs;Mn.rmSync(ns.join(t,t0),{recursive:!0,force:!0});let i=By(t,n);if(!i)throw new Error(`could not compute git facts for ${t}`);let r=_x(t,n);if(!r)throw new Error(`could not compute the PR diff for ${t}`);let s=ohe(e),a=[i.changedFiles,...s.map(f=>f.changedFiles)].flat(),c=a.map(f=>f.path).filter(vJ),u=!Uu(e)&&a.length>0&&c.length===a.length,l={schemaVersion:1,repository:{path:t,currentBranch:i.currentBranch,baseBranch:i.baseBranch},changedFiles:i.changedFiles,...s.length?{relatedChanges:s}:{},newFiles:r.newFiles,deletedFiles:r.deletedFiles,diffStat:r.diffStat,diffBytes:r.diffContent.length,nonApplicationFiles:c,nonApplicationOnly:u,sutRequired:!u};Mn.writeFileSync(ns.join(e.runDir,wa),r.diffContent),bJ(e.inputs,e.runDir,r.diffContent),ahe(e);let p=ns.join(e.runDir,Sx);return Mn.mkdirSync(ns.dirname(p),{recursive:!0}),Mn.writeFileSync(p,JSON.stringify(l,null,2)+`
167
- `),e.prepared={preflight:l},{preflight:Sx,diff:wa}}o(che,"executePreflight");var KVe={name:"preflight",timeoutMinutes:1,requires:[],validateInput:she,execute:che};var oze={python:"pytest",typescript:"playwright",javascript:"playwright"},aze={pytest:"pytest",playwright:"playwright"};var If=me(require("path"));function fhe(e){return In(FC,e).errors}o(fhe,"validateFinalizeOutput");function Ahe(e,t=[]){let{value:n,error:i}=Nt(e,t);if(i)return{errors:[i]};let r=fhe(n);return r.length>0?{errors:r}:{finalize:n,errors:[]}}o(Ahe,"parseFinalizeText");var ghe="finalize-scratch";function hhe(e,t){let n=Ahe(e.stdout,t?.secretValues);if(!n.finalize||!t?.outputsDir)return n;let i=o((r,s)=>r.trim()&&mE(r.trim(),If.join(t.outputsDir,ghe,s),"finalize")||r,"script");return{...n,finalize:{...n.finalize,lint:n.finalize.lint.map((r,s)=>({...r,command:i(r.command??"",`lint-${s+1}.sh`)}))}}}o(hhe,"parseFinalizeFromSession");var W2e=Dn("finalize-schema",(e,t)=>hhe(t,e));function mhe(e){return In(H$,e).errors}o(mhe,"validateAnalysisOutput");function wJ(e,t=[]){let{value:n,error:i}=Nt(e,t);if(i)return{errors:[i]};let r=mhe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}o(wJ,"parseAnalysisText");function yhe(e,t=[]){return wJ(e.stdout,t)}o(yhe,"parseAnalysisFromSession");var yqe=Dn("analysis-schema",(e,t)=>yhe(t,e.secretValues));var oHe=Jg.rows.notRun(!0);var bf="kept, not ";var vf="(declined the planned ";function p0(e){if(!e)return[];let t=[],n=0,i=0;for(let r=0;r<e.length;r++){let s=e[r];s==="("?n++:s===")"?n=Math.max(0,n-1):n===0&&s===";"&&e[r+1]===" "&&e[r-1]===")"&&(t.push(e.slice(i,r)),i=r+2)}return t.push(e.slice(i)),t.map(r=>{let s=r.trim();if(!s.endsWith(")"))return{expectation:s};let a=0;for(let c=s.length-1;c>=0;c--)if(s[c]===")")a++;else if(s[c]==="("&&--a===0){let u=s.slice(0,c).trim(),l=s.slice(c+1,-1).trim();return u&&l?{expectation:u,expected:l}:{expectation:s}}return{expectation:s}})}o(p0,"assertionParts");var SJ=new Set(["update","regenerate","delete"]);var aHe={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var kJ=d.string().trim().min(1),f0=d.object({schemaVersion:d.literal(1).optional(),businessCaseAnalysis:kJ.describe("1-2 sentences: what this change means for a user, and whether the evidence shows it working; no count of tests, which the report gives"),issuesFound:d.array(d.object({description:kJ,severity:d.string().optional().describe("critical | high | medium | low"),category:d.string().optional().describe("bug | lint | type | config"),sourceFile:d.string().optional(),sourceLine:d.number().optional(),findingId:d.string().optional(),requirementIds:d.array(d.string()).optional()})).describe("every real problem this run exposed \u2014 cause, file:line, severity"),nextSteps:d.array(d.string()).describe("concrete follow-ups the author can act on; required non-empty when a disclosure is BLOCKING")});function vhe(e){return In(f0,e).errors}o(vhe,"validateProseOutput");function Che(e,t=[]){let{value:n,error:i}=Nt(e.stdout,t);if(i)return{errors:[i]};let r=vhe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}o(Che,"parseProseFromSession");var bHe=Dn("report-schema",(e,t)=>Che(t,e.secretValues));var A0="<!-- skyramp-testbot -->",g0=SJ,She=new Set(["lint","type","config"]),BJ={critical:0,high:1,medium:2,low:3},NJ=new Set(["Pass","Fail"]);var h0=o(e=>Bs(se().statusLabels,e),"statusLabel"),iE=o(e=>Bs(se().testTypeCellLabels,e),"testTypeLabel");function Ye(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}o(Ye,"escCell");function RJ(e){return e.inferred?" (inferred)":""}o(RJ,"inferredMark");function QJ(e,t){return!e||!NJ.has(e)?"\u2014":t?`${h0(e)} (${Ye(PJ(t))})`:h0(e)}o(QJ,"maintStatus");function PJ(e){let t=o(i=>{let r=i.indexOf(": ");return r<0?i:Bs(se().staged.maintenanceActions,i.slice(0,r))+i.slice(r)},"action");if(e.startsWith(bf))return se().staged.keptNot+t(e.slice(bf.length));let n=e.indexOf(vf);return n<0?e:e.slice(0,n)+se().staged.declinedPlanned+t(e.slice(n+vf.length))}o(PJ,"declineNote");function xJ(e){return e.category!==void 0&&She.has(e.category.toLowerCase())}o(xJ,"isTooling");function $J(e,t){return(BJ[(e.severity??"").toLowerCase()]??4)-(BJ[(t.severity??"").toLowerCase()]??4)}o($J,"bySeverity");function TJ(e){return`- ${e.severity?`**[${Bs(se().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}`}o(TJ,"issueLine");function khe(e){let t=e.resultId?.split("#").slice(1).join("#");if(e.testType!=="unit"||!t)return;let n=t;try{n=decodeURIComponent(t)}catch{}let i=/^(.*?)(\[.*\])$/.exec(n);return i?{fn:i[1],kase:i[2]}:{fn:n}}o(khe,"unitTestOf");var UJ=o((e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,""),"samePath");function FJ(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}o(FJ,"videoLink");function m0(e,t){return FJ(e,n=>UJ(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}o(m0,"resultVideoLink");function y0(e,t){return FJ(e,n=>UJ(n.writtenAs??n.fileName,t))}o(y0,"journeyVideoLink");function Bhe(e,t,n){return n?m0(e,{fileName:t,repository:n}):y0(e,t)}o(Bhe,"requirementVideoLink");function Rhe(e){let t=[],n=new Map;for(let a of e.newTestsCreated)a.testType==="unit"&&n.set(a.fileName,[...n.get(a.fileName)??[],a.testId.split("::").slice(1).join("::")]);let i=new Map,r=o((a,c)=>(n.get(a??"")??[]).find(u=>u!==c&&Fq(c,u)),"parentOf"),s=new Map;for(let a of e.testResults){let c=khe(a),u=c&&!c.kase?r(a.fileName,c.fn):void 0;if(c&&u&&(c={fn:u,kase:`"${c.fn}"`}),c?.kase&&i.set(a,c.kase),!c){t.push({testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:a.details??"",...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}});continue}let l=`${a.fileName??""}#${c.fn}`,p=s.get(l);p||(p={row:{testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:"",test:c.fn,...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}},cases:[]},s.set(l,p),t.push(p.row)),p.cases.push(a)}for(let{row:a,cases:c}of s.values()){let u=c.filter(g=>g.status==="Fail"),l=c.filter(g=>g.status==="Pass").length,p=c.filter(g=>g.status==="Skipped").length;a.cases=c.length,a.status=u.length?"Fail":p?"Skipped":"Pass";let f=u[0];a.details=c.length===1?c[0].details??"":se().staged.casesPassed(l,c.length,p)+(f?`; ${i.get(f)??""} ${f.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}o(Rhe,"resultRows");function Qhe(e){return p0(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${Bt(t.expected)}`)}o(Qhe,"unitAssertions");function Sf(e){return e.newTestsCreated.some(t=>t.testType!=="unit")&&e.testResults.every(t=>t.status==="Skipped")&&e.testResults.some(t=>t.failureCause?.kind==="environment"&&(t.failureCause.family==="app_not_started"||t.failureCause.family==="secret"))}o(Sf,"nothingExecuted");function OJ(e){let t=e.pullRequests??[];return t.length<2?[]:[se().staged.validatedTogether(t.map(n=>`${Bt(`${n.repository}#${n.number}`)}${n.title?` ${Rr(n.title,120)}`:""}`).join("; "))]}o(OJ,"pullRequestsLine");function LJ(e,t=1/0){let n=Array.from(e.name.replace(/\s+/g," ").trim()).slice(0,t).join("").replace(/[<>[\]()*_`\\|#]/g,"\\$&").replace(/@/g,"@\u200D");return e.kind==="person"?se().staged.requestedByPerson(n):se().staged.requestedByPolicy(n)}o(LJ,"requesterLine");function MJ(e,t={}){if(t.audience==="testbot-pr")return Uhe(e,t);let{audience:n,collapsed:i=!1,existingEvidence:r=[],requestedBy:s,sourcePullRequest:a}=t,c=n!=="comment",u=(e.requirements??[]).filter(C=>/^file-[a-f0-9]{16}-/i.test(C.id)).sort((C,D)=>D.id.length-C.id.length),l=o(C=>{let D=u.find(B=>C.toLowerCase().startsWith(B.id.toLowerCase()));return D?D.label+C.slice(D.id.length):C},"displayId"),p=[A0];a&&p.push(se().staged.testsSourcePullRequest(Bt(a)),"");for(let C of OJ(e))p.push(C,"");s&&p.push(LJ(s),""),e.notTranslated&&p.push(Bs(se().staged.notTranslated,e.notTranslated),"");let f=o(C=>{i?p.push("<details>",`<summary>${C}</summary>`,""):p.push(`### ${C}`)},"sectionStart"),g=o(()=>{i&&p.push("","</details>"),p.push("")},"sectionEnd");for(let C of e.businessCaseAnalysis.trim().split(/\r?\n/))p.push(`> ${C}`);if(p.push(""),Sf(e)&&p.push(se().staged.noLiveApp(qu(e.newTestsCreated)),""),c&&e.newTestsCreated.length){let C=new Map;for(let B of e.newTestsCreated){if(B.testType!=="unit")continue;let K=u0(B)[0],ae=C.get(B.fileName)??{functions:new Set,endpoints:[],descriptions:new Map};B.endpoint&&!ae.endpoints.includes(B.endpoint)&&ae.endpoints.push(B.endpoint);let Z=B.description?.trim()??"",Ee=ae.descriptions.get(K)??[];Ee.includes(Z)||Ee.push(Z),ae.functions.add(K),ae.descriptions.set(K,Ee),C.set(B.fileName,ae)}let D=e.newTestsCreated.filter(B=>B.testType!=="unit");f(se().testRecommendationsImplementedHeader(qu(e.newTestsCreated),D.length+qu(e.newTestsCreated.filter(B=>B.testType==="unit"))));for(let[B,{functions:K,endpoints:ae,descriptions:Z}]of C){let Ee=K.size;p.push(se().staged.unitTestsInFile(`\`${B}\``,Ee,ae.map(xe=>`\`${xe}\``).join(", ")),"");let De=new Map;for(let[xe,W]of Z){let M=W.join("\0"),Je=De.get(M)??{fns:[],descriptions:W};Je.fns.push(xe),De.set(M,Je)}let Ve=0;for(let{fns:xe,descriptions:W}of De.values()){p.push(`${++Ve}. ${xe.map(Je=>`\`${Je}\``).join(", ")}`);let M=[...new Set(W.flatMap(Je=>Qhe(Je)))];for(let Je of M)p.push(` - ${Je}`)}p.push("")}for(let B of D){let K=B.testId?Bt(l(B.testId)):iE(B.testType),ae=B.fileName?` (\`${B.fileName}\`)`:"",Z=B.endpoint?`
163
+ `),a=o(c=>{let u=s.match(new RegExp(`^\\s*${c}\\s*=\\s*\\[([^\\]]*)\\]`,"m"));return u?[...u[1].matchAll(/["']([^"']+)["']/g)].map(l=>l[1]):[]},"array");return{members:a("members"),exclude:a("exclude")}}o(_fe,"uvWorkspace");function Nfe(e){return Pfe(Qq(e))}o(Nfe,"readJson");function Pfe(e){try{return JSON.parse(e)}catch{return}}o(Pfe,"parseJson");function Ufe(e){try{return Ks(e)}catch{return}}o(Ufe,"parseYaml");function Ffe(e){return Ufe(Qq(e))}o(Ffe,"readYaml");function Qq(e){try{return uf.readFileSync(e,"utf-8")}catch{return""}}o(Qq,"readText");function lf(e){try{return uf.lstatSync(e).isFile()}catch{return!1}}o(lf,"isFile");var Ofe=50,Lfe=50,Mfe=4096,jfe=8e3,Gfe=2048,Vfe=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f]/,zfe=/^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))[A-Za-z0-9._/ -]{1,255}$/,qfe=/^\.github\/workflows\/[A-Za-z0-9._-]+\.ya?ml$/,Jfe=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,$q=(s=>(s.Command="command",s.ComposeFile="compose_file",s.DeploymentWorkflow="deployment_workflow",s.Url="url",s.Guidance="guidance",s))($q||{}),Hfe={command:"optional",compose_file:"required",deployment_workflow:"required",url:"none",guidance:"none"},xq=o(e=>d.string().max(e).refine(t=>t.trim().length>0&&!Vfe.test(t),"must be non-blank text with no control characters other than tab, LF and CR"),"freeText");function Yfe(e){let t;try{t=new URL(e)}catch{return"invalid URL"}if(t.protocol!=="https:"&&t.protocol!=="http:")return"only http and https URLs";if(t.username||t.password)return"a URL cannot carry a login"}o(Yfe,"urlProblem");var Wfe={command:xq(Mfe),compose_file:d.string().regex(zfe,"must be a relative path inside the repository"),deployment_workflow:d.string().regex(qfe,"must be a .github/workflows/*.yml path"),url:d.string().max(Gfe).superRefine((e,t)=>{let n=Yfe(e);n&&t.addIssue({code:d.ZodIssueCode.custom,message:n})}),guidance:xq(jfe)},Zfe=d.object({kind:d.nativeEnum($q),value:d.string(),repository:rr.nullable()}).strict().superRefine((e,t)=>{let n=Hfe[e.kind];n==="required"&&!e.repository&&t.addIssue({code:d.ZodIssueCode.custom,path:["repository"],message:"a file belongs to a repository"}),n==="none"&&e.repository&&t.addIssue({code:d.ZodIssueCode.custom,path:["repository"],message:`a ${e.kind} names no repository`});let i=Wfe[e.kind].safeParse(e.value);if(!i.success)for(let r of i.error.issues)t.addIssue({code:d.ZodIssueCode.custom,path:["value"],message:r.message})}),Kfe=d.object({name:d.string().regex(Jfe,"must be a GitHub Actions secret name (A-Z, 0-9, _; not GITHUB_ or SKYRAMP_RUNNER_)"),purpose:d.nativeEnum(Ed),required:d.boolean()}).strict(),Tq=d.object({knowledge:d.array(Zfe).max(Ofe),credentials:d.array(Kfe).max(Lfe)}).strict(),X_e=Tq.superRefine((e,t)=>{let n=new Set;e.credentials.forEach((i,r)=>{n.has(i.name)&&t.addIssue({code:d.ZodIssueCode.custom,path:["credentials",r,"name"],message:"named twice"}),n.add(i.name)})});var Xfe=new Set(["components","dependencies","offLimits","allowedEgress","runner","agentPool","uiLogins","testEnvironments"]),Dq=Object.freeze([...Tq.keyof().options,...Xfe]);var eNe={model_provider:"model provider",sut_access:"SUT access",skyramp:"Skyramp",other:"other"};var eAe="SKYRAMP_TEST_SERVICE_URL_";var tAe=`${eAe}UI`;var zy="test-package.json";var nAe=["node_modules",".venv","test-results","playwright-report","blob-report","__pycache__",".pytest_cache"];var Nq=o(e=>e.split(Ki.sep).join("/"),"posix");function qy(e,t){let n=Nq(e);return t.some(i=>n===i||n.startsWith(`${i}/`))}o(qy,"insidePackage");function L$(e){return Nq(e).split("/").some(t=>nAe.includes(t))}o(L$,"producedByPackage");var TNe=new RegExp([String.raw`\bECONNREFUSED\b`,String.raw`\bconnect ETIMEDOUT\b`,String.raw`\bconnection refused\b`,String.raw`\b(?:net::ERR|NS_ERROR)_CONNECTION_REFUSED\b`,String.raw`\bconnection to \S+ refused\b`,String.raw`\bactively refused\b`,String.raw`\bcould not connect to\b`,String.raw`\bunable to (?:create|establish|open|obtain) (?:a |an |the )?(?:\w+ )?connection\b`,String.raw`\bcan't connect to (?:local )?(?:MySQL|MariaDB) server\b`,String.raw`\bconnection to server (?:at|on) .+ failed\b`,String.raw`\bCommunications link failure\b`,String.raw`\berror \d+ connecting to \S+`,String.raw`\b(?:timed out|timeout) (?:while |when )?(?:trying to )?connect(?:ing)? to\b`,String.raw`\bconnect(?:ion)? (?:attempt )?timed out\b`,String.raw`\bdial tcp \S+: (?:connect: )?i/o timeout\b`].join("|"),"i"),DNe=new RegExp([String.raw`\bAssertion(?:Failed)?Error\b|\bComparisonFailure\b|Error Trace:|\bNot equal:`,String.raw`\bexpect\(|\b[Ee]xpected\b|\bbut was\b|\bassert(?:_\w+|[A-Z]\w*)?\b|\.to(?:Be|Equal|Match|Throw|Contain|Have)\w*\b`].join("|"));var _Ne=String.raw`localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1?\]|::1`;var oAe=o(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"escapeRegex"),Uq=/%[psdifjo#]|\$[A-Za-z_][\w.]*/g;var aAe=/ (?:>|›) /;function cAe(e){return e.split(Uq).map(t=>t.split(aAe).map(oAe).join("(?: > | \u203A | )")).join(".+?")}o(cAe,"testNamePattern");function Fq(e,t){return new RegExp(Uq.source).test(t)?new RegExp(`^(?:.* )?${cAe(t)}$`).test(e):!1}o(Fq,"isEachCaseOf");function j$(e){return Lq(e)&&vx(e).length===0&&wx(e.inputs?.sharedEnvironment).length===0}o(j$,"sutIsHealthy");function Lq(e){let t=gAe(e);if(!t&&e.state.stages.deploy?.status!=="passed")return!1;let n=Le(e,"deploy.json");return n?AAe(n):!t}o(Lq,"sutCameUp");function AAe(e){return e?.outcome==="clean"||e?.outcome==="recipe-drift"}o(AAe,"deployCameUp");function gAe(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}o(gAe,"broughtUpByPlan");var DPe=10*6e4;var Hy=(r=>(r.RestApi="rest-api",r.Frontend="frontend",r.FullStack="full-stack",r.Other="other",r))(Hy||{}),Ba=(r=>(r.Critical="critical",r.High="high",r.Medium="medium",r.Low="low",r))(Ba||{}),Ra=(i=>(i.Suspected="suspected",i.Latent="latent",i.Refuted="refuted",i))(Ra||{}),z$=(i=>(i.Skyramp="skyramp",i.External="external",i.Unknown="unknown",i))(z$||{}),q$=(r=>(r.Cascade="cascade",r.Restrict="restrict",r.Orphan="orphan",r.Unknown="unknown",r))(q$||{}),Si=(r=>(r.RequirementReference="requirement-reference",r.Spec="spec",r.PrDescription="pr-description",r.CouldBreak="could-break",r))(Si||{}),it=d.string().trim().min(1),ju=it.describe("file:line"),jq=o(e=>it.refine(t=>t.length<=400,t=>({message:`is ${t.length} characters, over the 400 cap \u2014 ${e}`})),"cap400"),df=it.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'),V$=d.object({method:it,path:it,service:d.string().optional(),evidence:ju,repository:df}),bAe=d.object({id:it.describe("short-slug, e.g. R9"),statement:it.max(400,"exceeds 400 characters \u2014 state the requirement, do not paste the spec section").describe("a testable obligation, not a summary"),source:d.nativeEnum(Si).describe("spec outranks pr-description when both state it"),evidence:it.describe("spec: file:line or a section locator. pr-description: the quoted phrase it comes from.")}),vAe=d.object({id:it.describe("short-slug"),statement:it.max(400,"exceeds 400 characters \u2014 state the behaviour, do not paste the code").describe("what the change makes true"),surface:it.describe("METHOD /path, or a component/page name"),evidence:it.describe("file:line from the diff that introduces it"),repository:df,satisfies:d.array(it).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)")}),CAe=d.object({id:it.describe("short-slug"),file:it,line:d.number().optional(),claim:jq("shorten it to the one sentence that states the defect, and move the supporting detail into `evidence`"),severity:d.nativeEnum(Ba),evidence:jq("cite the file:line and the one line that shows it, rather than reproducing the surrounding code").describe("quoted diff/code line"),status:d.nativeEnum(Ra),repository:df,conflictsWith:d.array(it).optional().describe("requirement ids (from `requirements`) this defect contradicts or leaves unimplemented \u2014 a lower-precedence source (the diff, or the PR description) lost")}),wAe=d.object({name:it,language:d.string().optional(),framework:d.string().optional(),evidence:ju,repository:df}),SAe=d.object({dir:it,framework:d.string().optional(),kind:d.nativeEnum(z$),evidence:ju,repository:df}),kAe=d.object({from:it,to:it,onDelete:d.nativeEnum(q$),evidence:ju}),BAe=d.object({entity:it,field:it,values:d.array(d.string()),evidence:ju}),RAe=d.object({entities:d.array(d.object({name:it,evidence:ju})),references:d.array(kAe).describe("INBOUND references \u2014 what still points at an entity when it is deleted"),stateFields:d.array(BAe)}),J$=d.object({schemaVersion:d.literal(1),repository:d.object({path:it.describe("absolute repo path"),currentBranch:it,baseBranch:it}),project:d.object({type:d.nativeEnum(Hy),primaryLanguage:it,languages:d.array(d.string()),frameworks:d.array(d.string())}),services:d.array(wAe),infrastructure:d.object({containerized:d.boolean(),hasDockerCompose:d.boolean(),composeFiles:d.array(d.string()),hasCiCd:d.boolean()}),diff:d.object({changedFiles:d.array(d.string()).describe("as git reports them; a file in another checkout may carry that repo's name"),nonApplicationOnly:d.boolean(),summary:it.describe("\u2264400 chars")}),endpoints:d.object({new:d.array(V$),modified:d.array(V$),removed:d.array(V$)}),existingTests:d.object({locations:d.array(SAe)}),entityMap:RAe,requirements:d.array(bAe).describe("from a spec (attached or linked) and/or the PR description; empty when neither states a testable obligation"),behaviors:d.array(vAe),findings:d.array(CAe),unexamined:d.array(d.string()).describe("files or areas outside this change you did not open"),summary:it.describe("one paragraph on what this change does and its test-relevant risk")});var $Ae=d.object({route:d.string().describe('the page this step happens on, e.g. "/products/:id"'),action:d.string().describe('what the user does there, through the UI, e.g. "clicks Add to cart"'),clauses:d.array(d.string()).optional().describe("the plan clause ids this step exercises"),check:d.string().optional().describe("what the user then sees that shows the step worked; the test asserts it")}),pf=(n=>(n.InProcess="in-process",n.Browser="browser",n))(pf||{}),Vq=(i=>(i.Spec="spec",i.PrDescription="pr-description",i.Inferred="inferred",i))(Vq||{}),zq=d.object({id:d.string().describe('e.g. "J1"'),name:d.string().describe(`the flow in a user's words, e.g. "buy a product with a coupon"`),entry:d.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:d.array($Ae).describe("every step, in order, from the entry page to the outcome: at least two"),outcome:d.string().describe("what the user sees at the end that shows the flow worked: every part of it"),finishes:d.string().optional().describe('the user action that completes the task, verb first, e.g. "places the order"; the journey walks on to it'),kind:d.nativeEnum(pf).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:d.nativeEnum(Vq).optional().describe("spec or pr-description when one describes this flow (quote it under evidence), else inferred"),evidence:d.string().optional().describe("for spec or pr-description: its words that describe the flow"),testFile:d.string().describe("the browser test file it goes in, beside the repo's existing e2e tests")}),Yy=d.object({journey:d.string().describe("the plan's journey id"),file:d.string().describe("the browser test file that walks it"),brokeAt:d.object({step:d.number().int().describe("the 1-based step whose check failed first"),expected:d.string(),actual:d.string().describe("what the app did instead, from the runner's output"),notReached:d.array(d.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:d.string().describe("the title of the one test in that file that walks it end to end")});var HPe=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 YPe=["stale_test","open_question"],WPe=["low","medium","high","critical"];var qq=String.raw`(?:\[[^\]]*\]|\([^)]*\))`,TAe=String.raw`(?:["'\u201c\u2018\x60]|\*{1,2})?[^\s:"'\u201c\u201d\u2018\u2019\x60*()[\],]+(?:["'\u201d\u2019\x60]|\*{1,2})?`,Jq=String.raw`(?:${qq}|${TAe}(?:\s*${qq})?)`,Hq=String.raw`(?:\s*:|\s+[\u2014\u2013-])`,eUe=new RegExp(String.raw`^\s*(?:${Jq}(?:,\s*${Jq})*(?::L?\d+(?:[-\u2013]\d+)?${Hq}?|${Hq})|\[[^\]\s]+\]|\([^)\s]+\))\s+`);var no=me(require("fs")),Vu=me(require("path"));var an="{junit}",Wy=(s=>(s.Junit="junit",s.Trx="trx",s.GoTestJson="go-test-json",s.JestJson="jest-json",s.PlaywrightList="playwright-list",s))(Wy||{}),H$=(t=>(t.Minitest="minitest",t))(H$||{}),Yq=d.string().trim().min(1),Qa=d.object({cwd:Yq.describe('repo-relative directory the command starts in ("." for the root)'),argv:d.array(Yq).min(1).describe(`the command as separate arguments, run without a shell; for a junit or trx report an argument or env value holds ${an}, where the report is written (not for Maven or Gradle, whose build writes its own)`),env:d.record(d.string(),d.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:d.object({format:d.nativeEnum(Wy).describe(`junit (JUnit XML to ${an}), trx (to ${an}), jest-json (Jest's --json or Vitest's --reporter=json, --outputFile=${an}), or go-test-json (go test -json on the command's output)`),reporter:d.nativeEnum(H$).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 Gu="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)";var sUe=`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 ${an} in the reporter's argument or env setting), trx (a TRX file to ${an}, which every dotnet test writes with its built-in logger), jest-json (Jest's --json --outputFile=${an}, or Vitest's --reporter=json --outputFile=${an}: 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 ${an}: 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 ${an} itself. A setting the tests or reporter read goes in "env" (RAILS_ENV=test, or PLAYWRIGHT_JUNIT_OUTPUT_FILE=${an} with playwright test --reporter=junit): the run sets it, so never wrap the command in a shell to set one. The run replaces ${an} in argv and env with its report path, executes the command, and reads that report.`;var Xi=(r=>(r.ExistingEvidenceSufficient="existing_evidence_sufficient",r.TargetedUnit="targeted_unit",r.RuntimeRequired="runtime_required",r.BlockedPreflight="blocked_preflight",r))(Xi||{}),es=(s=>(s.ExistingEvidence="existing_evidence",s.Unaffected="unaffected",s.ExistingUnit="existing_unit",s.NewUnit="new_unit",s.Runtime="runtime",s))(es||{}),Y$=(n=>(n.Repository="repository",n.Testbot="testbot",n))(Y$||{}),W$=(i=>(i.Identified="identified",i.Passed="passed",i.Failed="failed",i))(W$||{}),Ln=d.string().trim().min(1),DAe=d.string().regex(/^[a-z0-9][a-z0-9-]*$/,"must be a short lowercase slug").describe("short-slug");var _Ae=d.object({id:DAe,source:d.nativeEnum(Y$),kind:d.nativeEnum(Ds),outcome:d.nativeEnum(W$),summary:Ln.max(400).describe("one line: what it shows"),tests:d.array(Ln).optional().describe("source repository: the existing tests, as repo-relative paths, optionally path::test-name"),repository:Ln.optional().describe("source repository: owner/repo the tests live in, when the run has several checkouts; omit for the working checkout"),command:Ln.optional().describe("source testbot: the exact command you ran, as you ran it"),run:Qa.optional().describe(`source repository, for tests in ${Gu}: 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`)}),NAe=d.object({behaviorId:Ln.describe("an id from analyze's behaviors"),mechanism:d.nativeEnum(es),evidenceIds:d.array(Ln).default([]).describe("existing_evidence: the ci-<n> or evidence ids that establish it; existing_unit: the evidence id naming the tests to run"),covers:d.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')}),Z$=(i=>(i.Browser="browser",i.RunningApp="running-app",i.Outside="outside",i))(Z$||{}),PAe=d.object({behaviorId:d.string().trim().optional().describe("an id from analyze's behaviors, when it is about one"),missing:Ln.max(600).describe("the evidence that is required and cannot be obtained in this run"),needs:d.nativeEnum(Z$).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)")}),UAe=d.object({file:Ln.describe("the changed file the failure is in"),repository:Ln.optional().describe("owner/repo the file is in, when the run has several checkouts; omit for the working checkout"),reason:Ln.max(300).describe("what prerequisite the change fails"),evidence:Ln.max(400).describe("the error line, quoted")}),FAe=d.object({behaviorId:Ln.describe("an id from analyze's behaviors"),reason:Ln.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)")}),ff=d.object({schemaVersion:d.literal(1),decision:d.nativeEnum(Xi),evidence:d.array(_Ae).describe("evidence this session found or produced; CI results are the ci-<n> items and are not restated here"),plan:d.array(NAe).describe("how each changed behavior's evidence is obtained"),gaps:d.array(PAe),outOfScope:d.array(FAe).optional().describe("behaviors analyze found that this change neither changes nor states"),blocked:UAe.optional().describe("only for blocked_preflight"),rationale:Ln.max(1200).describe("\u22641200 characters: why this evidence is enough, or what it still lacks \u2014 the scope you chose and why")});function to(e){let t=Le(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()}:{}}))}}o(to,"readRecommend");var e0=".skyramp/staged";function jAe(e){return In(EC,e).errors}o(jAe,"validateGenerateOutput");function GAe(e,t=[]){let{value:n,error:i}=Nt(e,t);if(i)return{errors:[i]};let r=jAe(n);return r.length>0?{errors:r}:{generate:n,errors:[]}}o(GAe,"parseGenerateText");function Zy(e,t=[]){return GAe(e.stdout,t)}o(Zy,"parseGenerateFromSession");function VAe(e){return e.generate.filter(t=>t.type!=="ui").map(t=>t.id)}o(VAe,"backendCases");function t0(e){return e.generate.filter(t=>t.type==="ui").map(t=>t.id)}o(t0,"uiCases");var Ky={backend:{stage:"generate",cases:VAe,noRecommendCoverage:"recommend.json missing or malformed \u2014 cannot check coverage",noRecommendIntent:"recommend.json missing or malformed \u2014 cannot check intent",uncovered:o(e=>`recommend case "${e}" is not covered by any generated test`,"uncovered"),unknownCovered:o(e=>`test covers unknown recommend id "${e}"`,"unknownCovered"),unasserted:o(e=>`case "${e}" has no verified assertion enforcing its expected_observable`,"unasserted"),usedCodegen:AV,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:t0,noRecommendCoverage:"recommend.json not found \u2014 cannot check UI coverage",noRecommendIntent:"recommend.json not found \u2014 cannot check UI intent",uncovered:o(e=>`UI case "${e}" is not covered by any generated UI test`,"uncovered"),unknownCovered:o(e=>`test covers "${e}" which is not a recommend UI case`,"unknownCovered"),unasserted:o(e=>`UI case "${e}" has no verified assertion enforcing its expected_observable`,"unasserted"),usedCodegen:gV,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."}},LUe=Dn("generate-schema",(e,t)=>Zy(t,e.secretValues));function zAe(e){let t=Ky[e];return{name:`${t.stage}-coverage`,verify(n,i){let{generate:r,errors:s}=Zy(i,n.secretValues);if(!r)return zt(this.name,s);let a=to(n);if(!a)return zt(this.name,[t.noRecommendCoverage]);let c=new Set(r.tests.flatMap(f=>f.covers)),u=[],l=t.cases(a);for(let f of l)c.has(f)||u.push(t.uncovered(f));let p=new Set(e==="ui"?l:a.generate.map(f=>f.id));for(let f of c)p.has(f)||u.push(t.unknownCovered(f));if(e==="backend"){let f=new Set(r.deferredUi),g=new Set(t0(a));for(let h of g)!f.has(h)&&!c.has(h)&&u.push(`UI case "${h}" is neither covered nor deferred to the UI stage`);for(let h of f)g.has(h)||u.push(`deferredUi lists "${h}" which is not a UI case`)}return u.length===0?{name:this.name,passed:!0}:zt(this.name,u)}}}o(zAe,"generateCoverageGateFor");function qAe(e){let t=Ky[e];return{name:`${t.stage}-intent`,verify(n,i){let{generate:r,errors:s}=Zy(i,n.secretValues);if(!r)return zt(this.name,s);let a=to(n);if(!a)return zt(this.name,[t.noRecommendIntent]);let{asserted:c,errors:u,badFiles:l}=XAe(r,n.inputs.repositoryPath),p=u.length;for(let g of t.cases(a))c.has(g)||u.push(t.unasserted(g));if(u.length===0)return{name:this.name,passed:!0};let f=zt(this.name,u);return p>0&&p===u.length&&l.size>0?{...f,droppable:[...l]}:f}}}o(qAe,"generateIntentGateFor");function JAe(e){let t=Ky[e];return n=>{if(!n.inputs.skyrampMcp?.command||e==="backend"&&!j$(n))return;let i=Vu.join(n.outputsDir,`${t.stage}-stream.ndjson`);if(!(!no.existsSync(i)||t.usedCodegen(i)))return hV(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."}}o(JAe,"codegenRetryHintFor");var MUe=zAe("backend"),jUe=qAe("backend"),GUe=JAe("backend");var Wq=o(e=>e.replace(/\s+/g,""),"squeeze");var K$={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"]])K$[e]=K$[t];function HAe(e,t){if(e.includes(Ld(t))||Wq(e).includes(Wq(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(Ld(i)))?!0:KAe(e,t)}o(HAe,"evidenceFound");var YAe=/\bassert\w*\b|\bexpect\s*\(|\.should\b|\brequire\s*\(/i,WAe=12,ZAe=/,\s*\(\s*#|,\s*f?["'`]|\s+#\s|\s+\/\/|\s*\((?:line|lines|at line)\b|\s*,\s*$/i;function KAe(e,t){let n=t.split(/\s*;\s*|\s*\.\.\.\s*|\r?\n/),i=0;for(let r of n){let s=YAe.exec(r);if(!s)continue;let a=r.slice(s.index),c=ZAe.exec(a);if(c&&(a=a.slice(0,c.index)),a=Ld(a).replace(/[,\s]+$/,""),a.length<WAe||!e.includes(a))return!1;i++}return i>0}o(KAe,"annotatedAssertionFound");function XAe(e,t){let n=new Set,i=[],r=new Set;for(let s of e.tests){let a=Vu.resolve(t,s.file);if(!no.existsSync(a))continue;let c=Ld(no.readFileSync(a,"utf-8"));for(let u of s.assertions??[]){if(!HAe(c,u.evidence)){i.push(`assertion evidence for "${u.case}" not found in ${s.file} \u2014 cite the real assertion line`),r.add(s.file);continue}s.covers.includes(u.case)?n.add(u.case):(i.push(`assertion cites case "${u.case}" not in that test's covers[]`),r.add(s.file))}}return{asserted:n,errors:i,badFiles:r}}o(XAe,"verifiedAssertions");var ege=/\.(spec|test)\.[cm]?[jt]sx?$/i;function Zq(e){let t;try{t=Ct([...ur,"status","--porcelain","--untracked-files=all"],{env:Qt(),cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]})}catch{return}let n=o(r=>/_scaffold/i.test(r)||Md.test(r),"isTestLitter"),i=[];for(let r of t.split(`
164
+ `)){if(!r.trim()||r.length>1&&r[1]==="D")continue;let s=r.slice(3).trim(),a=s.indexOf(" -> ");if(a!==-1&&(s=s.slice(a+4).trim()),s=s.replace(/^"|"$/g,""),!s)continue;let c=s.replace(/^\.\//,"");c.startsWith(".skyramp/")||!n(c)||i.push(c)}return i}o(Zq,"testLitter");function tge(e){let t=Ky[e],n=e==="ui";return{name:`${t.stage}-no-litter`,verify(i){let r=Zq(i.inputs.repositoryPath);if(r===void 0)return{name:this.name,passed:!0};let s=r.filter(a=>ege.test(a)===n);return s.length===0?{name:this.name,passed:!0}:zt(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(", ")}`])}}}o(tge,"noLitterGateFor");var VUe=tge("backend");var ige="write-stale-updates",sge={[ige]:"stale test updates"};var Af=me(require("fs")),xa=me(require("path"));function tJ(e){return In(IC,e).errors}o(tJ,"validateAdaptOutput");function cge(e,t=[]){let{value:n,error:i}=Nt(e,t);if(i)return{errors:[i]};let r=tJ(n);return r.length>0?{errors:r}:{adapt:n,errors:[]}}o(cge,"parseAdaptText");var uge="adapt-scratch",Xq=`${uge}/adapt-result.json`;function nJ(e,t){let n=xa.join(e.outputsDir,Xq),i;try{i=Af.readFileSync(n,"utf-8")}catch{i=void 0}if(i!==void 0&&(e.secretValues??[]).some(a=>i.includes(a)))return{errors:[`${Xq} contains a secret value (token / credential) \u2014 never write it anywhere`]};let r=cge(t.stdout,e.secretValues);if(r.adapt)return r;let s=i!==void 0?Ps(n):void 0;return s!==void 0&&tJ(s).length===0?{adapt:s,errors:[]}:r}o(nJ,"parseAdaptFromSession");var EFe=Dn("adapt-schema",nJ);function n0(e){return rJ(e)??[]}o(n0,"statusEntries");function rJ(e){let t;try{t=Ct([...ur,"status","--porcelain","-z","--untracked-files=all"],{env:Qt(),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 a=s.slice(0,2);i.push({code:a,path:s.slice(3)}),(a[0]==="R"||a[0]==="C")&&r++}return i}o(rJ,"readStatusEntries");var xFe=2*1024*1024;var gf=d.string().trim().min(1),lge=d.object({cwd:gf.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:d.array(gf).min(1).describe("the command as separate arguments, run without a shell"),env:d.record(d.string(),d.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),iJ=d.object({file:gf.describe("a file of the test's checkout, relative to its root"),line:gf.describe("a line of that file, quoted exactly from where its command starts to its end")}),sJ=d.object({collected:d.boolean().describe("whether the repo's CI runs this test as it is"),steps:d.array(iJ).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:d.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:lge.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:d.string().optional().describe("when not collected: why the repo's CI will not run it"),needs:d.array(gf).optional().describe("what the test needs running outside its own process (the app, a database, another service), one entry each; omit when it needs none"),starts:d.array(iJ).optional().describe("when collected and it needs any: the line that starts each of those in the CI job that runs it, in a file of ci.steps")});var ce=d.string().trim().min(1),mge=o(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},"skippedNeedsNoExpected"),yge=d.preprocess(mge,d.object({id:ce.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:ce.describe("one testable part of the requirement"),expected:ce.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:d.string().optional().describe("only when no test can check this clause here: why"),type:d.nativeEnum(vi).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:d.string().optional().describe('its "METHOD /path", or the page / flow'),steps:d.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:d.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:d.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:d.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:d.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:d.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:d.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:d.string().optional().describe("the words of the spec, plan, ticket, PR description or a test the change adds or edits that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:d.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),aJ=d.object({spec:d.string().optional().describe("file:line of a spec in the repository"),prDescription:d.boolean().optional().describe("or true when a pull request description says otherwise"),reference:d.string().optional().describe("or the key of an item the run was given, as listed"),says:ce.describe("what it says there, in its own words, copied exactly"),criterion:d.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`}),Ege=d.object({id:ce.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:ce,source:d.nativeEnum(Si).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:d.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:ce.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:d.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:d.array(d.object({reference:ce.regex(Ts).describe("the key of another uploaded document stating the same obligation"),says:ce.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:d.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:d.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:d.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:d.array(aJ).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:d.array(yge)}),cJ=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(cJ||{}),Ige=d.object({id:ce.describe('e.g. "F1"'),file:ce,line:d.number().optional(),claim:ce.describe("the defect, in one sentence"),severity:d.nativeEnum(Ba),evidence:ce.describe("the code line, or the probe request and response, that shows it"),conflictsWith:d.array(ce).optional().describe("requirement or clause ids it violates"),keeps:d.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:d.nativeEnum(cJ).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:d.string().optional().describe("only when the base already does this, in code the change left as it was, and the change does not say it fixes it: where the base does it (its file:line); such a defect gets no case"),needsApp:d.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)")}),bge=d.object({id:ce.describe('e.g. "Q1"'),question:ce.describe("what is unsettled, as a question the PR author can answer"),readings:d.array(ce).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:d.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:d.array(aJ).optional().describe("when sources of the same rank disagree on it: each of them")}),vge=d.object({id:ce.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:d.nativeEnum(vi).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:ce.describe('"METHOD /path", or the page / flow'),clause:d.string().optional().describe("the clause id this case checks"),finding:d.string().optional().describe("the finding id this case catches"),steps:ce.describe("what the test does"),expected:ce.describe("the expected outcome, from the clause"),mutates:d.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")}),Cge=d.object({test:ce.describe("existing test file"),action:d.nativeEnum(Ci),reason:ce,mutates:d.boolean().optional().describe("true when the maintained test changes state"),clauses:d.array(ce).optional().describe("the clause ids this test checks"),staleOnBase:d.boolean().optional().describe("true when the test's own expectation was already wrong before this change: it fails the same way on the base branch, where the app does what it should. Not one the base app's own bug fails (that is an existing defect). It is verify, never update: re-run as it is, its failure the test's own. A delete the change justifies stays a delete")}),oJ=d.array(AC).optional(),wge=d.object({components:d.preprocess(e=>oJ.safeParse(e).success?e:void 0,oJ).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:d.nativeEnum(fi).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:d.record(d.string()).optional().describe("service \u2192 base URL of the running app"),health:d.object({url:d.string().optional(),command:d.string().optional(),output:d.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:d.string().optional().describe("command that stops the app"),dependencies:d.record(d.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:d.array(d.string()).optional().describe("what you changed in the recipe"),error:d.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:d.array(d.string()).optional().describe("change-broke-bringup: the changed files to blame"),missingSecrets:d.array(d.string().regex(Id)).optional().describe("bringup-failed only: each secret, key, token or password the app cannot start without that this run has no value for, by its environment variable name; never a value"),login:d.object({username:ce,password:d.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:mC.optional()}),fOe=d.object({schemaVersion:d.literal(1),requirements:d.array(Ege),findings:d.array(Ige),cases:d.array(vge).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:d.array(bge).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:d.array(Cge),journeys:d.array(zq).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:d.array(d.object({clause:ce,why:ce})).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:d.array(d.object({components:d.array(ce).min(1).describe("changed components, as the change lists them"),why:ce})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:ff.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:wge.optional().describe("omit when no app was needed or none was started"),summary:ce.describe("one paragraph: what the change does and where the risk is")});var hf=(n=>(n.Backend="backend",n.Ui="ui",n))(hf||{});var ts=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(ts||{}),Sge=d.object({file:ce.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:d.nativeEnum(hf),change:d.nativeEnum(ts).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:d.array(d.string()).describe("the plan case or maintenance clause ids this file tests, each with its own result under result.cases"),defect:d.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:d.object({requirement:ce.describe("the requirement or clause id the change deliberately alters"),line:ce.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"),staleOnBase:d.boolean().optional().describe("for an existing test that fails: true when it fails the same way on the base branch because its own expectation is wrong (the app there does what it should), so this change did not make it wrong. Not when the base app's own bug fails it: that is an existing defect. Leave it as it is (unchanged): its failure is the test's own"),result:d.object({started:d.boolean().optional().describe("with exit null: true if this file's test command started (it was interrupted or timed out), false if it never started. Left out, Testbot counts it as possibly started, with its cleanup unknown"),exit:d.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:d.array(d.object({case:ce,status:d.nativeEnum(tr),runtimeTargets:Qd.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:d.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"),testProblem:ih.optional().describe("for a failing case marked defect: false: what in the test is at fault"),failure:d.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:d.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:d.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:d.string().optional().describe("what failed and why, or why it was not run"),noCases:d.string().optional().describe("for a failed run whose runner reported none of this file's tests (it failed to compile, import or collect): why")}),assertions:d.array(d.object({case:ce,evidence:ce})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:d.array(d.object({name:ce.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:d.array(ce).describe("the plan case or maintenance clause ids it checks"),testProblem:ih.optional().describe("for a function that fails because of the test itself, while another function keeps a case it checks as a defect: what in it is at fault")})).optional().describe("for a file you added or updated, or an existing test to maintain that lists clauses: each test function in it and the plan case or maintenance clause ids it checks"),skyramp:d.object({draft:d.union([d.string(),d.array(d.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:d.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:d.array(Rd).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:ce.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:sJ.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:Qa.optional().describe(`for a file in ${Gu}, 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 ${an}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),kge=o(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},"oneTestIsTests"),Bge=d.preprocess(kge,d.object({description:ce.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:d.nativeEnum(Ba).optional(),sourceFile:d.string().optional().describe("the app file at fault"),sourceLine:d.number().optional(),tests:d.array(ce).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:d.string().optional().describe("the plan's finding id, when it is one"),requirements:d.array(ce).optional().describe("the plan's requirement or clause ids it violates")})),AOe=d.object({schemaVersion:d.literal(1),tests:d.array(Sge),notWritten:d.array(d.object({case:ce,reason:ce,coveredBy:d.object({file:ce.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:ce.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; also a maintenance clause that no function of its existing test asserts (it stays unproven)"),journeys:d.array(Yy).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:d.object({command:d.string(),clean:d.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:d.array(d.object({package:ce,manifest:ce.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:ce.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:ce.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:d.array(ce).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:d.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"),importerRun:Qa.optional().describe("when you changed a module other test files import: the repository's own command for running its test files (its runner, its config, its folder); Testbot loads the files that reach your change with it and reports each; omit when you changed none"),commit:d.object({message:ce.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:ce.describe("at most 72 characters, following the repository's PR-title checks"),prBody:ce.describe("what the tests cover and what they found")}),report:d.object({summary:ce.describe("1-2 sentences for the PR author: does the change do what it says? No count of tests: the report gives it"),issues:d.array(Bge).describe("every defect the tests found"),nextSteps:d.array(d.string()),noTests:d.array(d.object({repository:ce,reason:ce.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:d.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 gOe={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};var lJ=(i=>(i.Requirement="requirement",i.PrDescription="pr_description",i.Code="code",i))(lJ||{}),Wt=d.string().trim().min(1),Qge=d.object({expectation:Wt.max(300).describe("the behavior this assertion pins, in words"),source:d.nativeEnum(lJ),expected:Wt.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),xge=d.object({file:Wt.describe("path of the NEW test file you wrote, relative to its repository"),repository:Wt.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:Wt.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:Qa.optional().describe(`for ${Gu}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:d.array(Wt).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:d.array(Wt).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:d.array(Qge).min(1)}),mf=(n=>(n.Updated="updated",n.Deleted="deleted",n))(mf||{}),uJ=300,$ge=d.object({file:Wt.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:Wt.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:d.nativeEnum(mf),staleBecause:d.object({requirement:Wt.describe("the requirement or clause id the change deliberately alters"),line:Wt.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:d.preprocess(e=>typeof e=="string"?e.trim().slice(0,uJ):e,Wt.max(uJ)).describe("what the change deliberately altered that made the test wrong")}),r0=d.object({schemaVersion:d.literal(1),tests:d.array(xge),maintained:d.array($ge).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:d.array(d.object({id:Wt,reason:Wt.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:d.array(Yy).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:d.array(d.object({journey:Wt,missing:Wt.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:d.object({command:d.string(),clean:d.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repository has one you can run; omit otherwise"),commitMessage:Wt.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var yf="generate-unit.json";function Dge(e){let{value:t,error:n}=Nt(e);if(n)return{errors:[n]};let{value:i,errors:r}=In(r0,t);return r.length?{errors:r}:{output:i,errors:[]}}o(Dge,"parseGenerateUnitText");function _ge(e){return Dge(e.stdout)}o(_ge,"parseGenerateUnitFromSession");var lLe=Dn("generate-unit-schema",(e,t)=>_ge(t));var Xy=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,dLe=[[/\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+["']${Xy}["']|\bimport\s+["']${Xy}["']|require\(\s*["']${Xy}["']\s*\)|\bimport\(\s*["']${Xy}["']\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 _Le=new Set(["targeted_unit","existing_evidence_sufficient"]);var jge="triage.json";var HMe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),YMe={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 Gge(e){let{value:t,error:n}=Nt(e);if(n)return{errors:[n]};let{value:i,errors:r}=In(ff,t);return r.length?{errors:r}:{triage:i,errors:[]}}o(Gge,"parseTriageText");function Vge(e){return Gge(e.stdout)}o(Vge,"parseTriageFromSession");var WMe=Dn("triage-schema",(e,t)=>Vge(t));function zge(e){let t=e.inputs?.pipeline;return t?e.state.stages[t==="two-step"?"plan":"triage"]:e.state.stages.triage??e.state.stages.plan}o(zge,"triageDecider");function o0(e){if(zge(e)?.status==="passed")return Ps(hJ.join(e.outputsDir,jge))}o(o0,"readTriage");function a0(e){return kV(Cx(e.inputs,Le(e,`${Jp}.json`),o0(e)?.sutRequired))}o(a0,"revisionBlockReason");var ZMe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);var qr=me(require("fs")),oo=me(require("path")),fH=me(require("crypto")),AH=require("child_process");var c0=require("child_process"),zu=me(require("fs")),mJ=me(require("os")),tE=me(require("path"));var qge={onPath:o(e=>(0,c0.spawnSync)("sh",["-c",`command -v ${e}`],{stdio:"ignore"}).status===0,"onPath"),run:o((e,t)=>(0,c0.spawnSync)(e[0],e.slice(1),{cwd:t,stdio:"ignore",timeout:6e4}).status??1,"run")},Ef={cleanup:o(()=>{},"cleanup")},Jge=new Set(["pnpm","yarn"]);function yJ(e,t=mJ.tmpdir(),n=qge){if(process.platform==="win32")return Ef;try{if(Pa(e))return Ef;let i=P$(e);if(!Jge.has(i)||n.onPath(i)||!n.onPath("corepack"))return Ef;zu.mkdirSync(t,{recursive:!0});let r=zu.mkdtempSync(tE.join(t,"testbot-pm-")),s=o(()=>zu.rmSync(r,{recursive:!0,force:!0}),"cleanup");return n.run(["corepack","enable","--install-directory",r,i],e)!==0?(s(),Ef):{dir:r,cleanup:s}}catch{return Ef}}o(yJ,"packageManagerShims");function EJ(e,t=process.env){return e.dir?{...t,PATH:[e.dir,t.PATH].filter(Boolean).join(tE.delimiter)}:t}o(EJ,"withShims");var Bf=require("crypto");function Bt(e){let t=Math.max(0,...(e.match(/`+/g)??[]).map(r=>r.length)),n="`".repeat(t+1),i=e.startsWith("`")||e.endsWith("`")?" ":"";return`${n}${i}${e}${i}${n}`}o(Bt,"codeSpan");function u0(e){return e.functions?.length?e.functions:[(e.testType==="unit"?e.testId.split("::").slice(1).join("::").replace(/\[.*\]$/,""):"")||e.testId]}o(u0,"rowFunctions");function qu(e){return new Set(e.flatMap(t=>u0(t).map(n=>`${t.repository??""}\0${t.fileName}\0${n}`))).size}o(qu,"testCount");Dc();var Sje=5*6e4,kje=12*6e4,Bje=2*6e4;var _je=["class TestbotProjectBrowsers {"," onBegin(config) {",' const projects = config.projects.map((p) => ({ browserName: p.use.browserName ?? p.use.defaultBrowserType ?? "chromium", channel: p.use.channel ?? null }));',' process.stdout.write("TESTBOT_PROJECT_BROWSERS " + JSON.stringify(projects) + "\\n");'," }"," printsToStdio() { return true; }","}","module.exports = TestbotProjectBrowsers;",""].join(`
165
+ `);var qje=[...tl,"AWS_REGION","AWS_DEFAULT_REGION","AWS_ENDPOINT_URL","AWS_ENDPOINT_URL_BEDROCK_RUNTIME","AWS_ENDPOINT_URL_STS","AWS_SHARED_CREDENTIALS_FILE","AWS_CONFIG_FILE","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL"].filter((e,t,n)=>n.indexOf(e)===t);var ro=me(w$());var b1e={jest:"jest",vitest:"vitest"};var Zge=[["target","surefire-reports"],["target","failsafe-reports"],["build","test-results"]],$Ge=new Set(Zge.map(([e])=>e));var TGe=new Set(["jest","vitest","npm-test","playwright"]);var ehe="ci-collect";var qGe=5*6e4;function bJ(e,t){let n=new Set(t.tests.map(i=>i.file));return(Le(e,`${ehe}.json`)?.checks??[]).filter(i=>n.has(i.file))}o(bJ,"currentCiChecks");function d0(e){let t=Le(e,"write.json");if(!Array.isArray(t?.tests))return new Set;let n=new Set(t.tests.filter(i=>i.change==="added").map(i=>i.file));return new Set(bJ(e,t).filter(i=>i.verdict==="unprovisioned"&&n.has(i.file)).map(i=>i.file))}o(d0,"withheldTests");var Mn=me(require("fs")),ns=me(require("path"));var io=me(require("fs")),nE=me(require("path"));var the="change-inputs",nhe=o((e,t)=>`${t}-${e.replace(/[^\w.-]+/g,n=>n==="/"?"__":"-")}.md`,"fileName");function rhe(e){return[...(e.pullRequests??[]).map(t=>({label:`${t.repository}#${t.number}`,body:t.body?.trim()??""})),...(e.relatedRepos??[]).map(t=>({label:t.slug,body:t.prDescription?.trim()??""}))].map((t,n)=>({...t,file:nhe(t.label,n)})).filter(t=>t.body.length>bj)}o(rhe,"longDescriptions");function vJ(e,t,n){let i=nE.join(t,the);io.rmSync(i,{recursive:!0,force:!0}),io.mkdirSync(i,{recursive:!0}),io.writeFileSync(nE.join(i,wa),n,{mode:292});for(let r of rhe(e))io.writeFileSync(nE.join(i,r.file),`${r.body}
166
+ `,{mode:292})}o(vJ,"writeChangeInputs");var ihe=[/^\.github\//,/^\.gitlab(-ci)?/,/^\.circleci\//,/(^|\/)Jenkinsfile$/,/^docs?\//,/\.(md|mdx|rst)$/i,/(^|\/)LICENSE([._-].*)?$/i,/(^|\/)CODEOWNERS$/,/(^|\/)\.gitignore$/,/(^|\/)\.gitattributes$/,/(^|\/)\.editorconfig$/,/(^|\/)\.prettierrc[^/]*$/,/(^|\/)\.eslintrc[^/]*$/,/(^|\/)eslint\.config\.[^/]+$/,/(^|\/)package-lock\.json$/,/(^|\/)yarn\.lock$/,/(^|\/)pnpm-lock\.yaml$/,/(^|\/)poetry\.lock$/,/(^|\/)Pipfile\.lock$/,/(^|\/)Cargo\.lock$/,/(^|\/)go\.sum$/,/(^|\/)composer\.lock$/,/(^|\/)Gemfile\.lock$/,/\.(png|jpe?g|gif|svg|ico|webp)$/i];function CJ(e){return ihe.some(t=>t.test(e))}o(CJ,"isNonApplicationFile");function she(e){let t=[],n=e.inputs.repositoryPath;return!n||!Mn.existsSync(n)?t.push(`repository path does not exist: ${n}`):Dx(n)?Yp(n,e.inputs.baseBranch)||t.push(e.inputs.baseBranch?`base branch "${e.inputs.baseBranch}" does not resolve`:"could not auto-detect a base branch (origin/HEAD, main, master)"):t.push(`not a git repository: ${n}`),{ok:t.length===0,reasons:t}}o(she,"validatePreflightInput");function ohe(e){return(e.inputs.relatedRepos??[]).map(t=>{let n=Mn.existsSync(t.path)?By(t.path,t.base):void 0;return n?{repository:t.slug,changedFiles:n.changedFiles}:{repository:t.slug,changedFiles:[],note:`could not read the change in ${t.path}`}})}o(ohe,"collectRelatedChanges");function ahe(e){Mn.rmSync(ns.join(e.runDir,kx),{recursive:!0,force:!0});for(let t of e.inputs.relatedRepos??[]){let n=Mn.existsSync(t.path)?_x(t.path,t.base):void 0;if(!n)continue;let i=ns.join(e.runDir,Bx(t.slug));Mn.mkdirSync(ns.dirname(i),{recursive:!0}),Mn.writeFileSync(i,n.diffContent)}}o(ahe,"writeRelatedDiffs");function che(e){let{repositoryPath:t,baseBranch:n}=e.inputs;Mn.rmSync(ns.join(t,e0),{recursive:!0,force:!0});let i=By(t,n);if(!i)throw new Error(`could not compute git facts for ${t}`);let r=_x(t,n);if(!r)throw new Error(`could not compute the PR diff for ${t}`);let s=ohe(e),a=[i.changedFiles,...s.map(f=>f.changedFiles)].flat(),c=a.map(f=>f.path).filter(CJ),u=!Uu(e)&&a.length>0&&c.length===a.length,l={schemaVersion:1,repository:{path:t,currentBranch:i.currentBranch,baseBranch:i.baseBranch},changedFiles:i.changedFiles,...s.length?{relatedChanges:s}:{},newFiles:r.newFiles,deletedFiles:r.deletedFiles,diffStat:r.diffStat,diffBytes:r.diffContent.length,nonApplicationFiles:c,nonApplicationOnly:u,sutRequired:!u};Mn.writeFileSync(ns.join(e.runDir,wa),r.diffContent),vJ(e.inputs,e.runDir,r.diffContent),ahe(e);let p=ns.join(e.runDir,Sx);return Mn.mkdirSync(ns.dirname(p),{recursive:!0}),Mn.writeFileSync(p,JSON.stringify(l,null,2)+`
167
+ `),e.prepared={preflight:l},{preflight:Sx,diff:wa}}o(che,"executePreflight");var KVe={name:"preflight",timeoutMinutes:1,requires:[],validateInput:she,execute:che};var oze={python:"pytest",typescript:"playwright",javascript:"playwright"},aze={pytest:"pytest",playwright:"playwright"};var If=me(require("path"));function fhe(e){return In(FC,e).errors}o(fhe,"validateFinalizeOutput");function Ahe(e,t=[]){let{value:n,error:i}=Nt(e,t);if(i)return{errors:[i]};let r=fhe(n);return r.length>0?{errors:r}:{finalize:n,errors:[]}}o(Ahe,"parseFinalizeText");var ghe="finalize-scratch";function hhe(e,t){let n=Ahe(e.stdout,t?.secretValues);if(!n.finalize||!t?.outputsDir)return n;let i=o((r,s)=>r.trim()&&mE(r.trim(),If.join(t.outputsDir,ghe,s),"finalize")||r,"script");return{...n,finalize:{...n.finalize,lint:n.finalize.lint.map((r,s)=>({...r,command:i(r.command??"",`lint-${s+1}.sh`)}))}}}o(hhe,"parseFinalizeFromSession");var W2e=Dn("finalize-schema",(e,t)=>hhe(t,e));function mhe(e){return In(J$,e).errors}o(mhe,"validateAnalysisOutput");function wJ(e,t=[]){let{value:n,error:i}=Nt(e,t);if(i)return{errors:[i]};let r=mhe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}o(wJ,"parseAnalysisText");function yhe(e,t=[]){return wJ(e.stdout,t)}o(yhe,"parseAnalysisFromSession");var yqe=Dn("analysis-schema",(e,t)=>yhe(t,e.secretValues));var cHe=Jg.rows.notRun(!0);var bf="kept, not ";var vf="(declined the planned ";function p0(e){if(!e)return[];let t=[],n=0,i=0;for(let r=0;r<e.length;r++){let s=e[r];s==="("?n++:s===")"?n=Math.max(0,n-1):n===0&&s===";"&&e[r+1]===" "&&e[r-1]===")"&&(t.push(e.slice(i,r)),i=r+2)}return t.push(e.slice(i)),t.map(r=>{let s=r.trim();if(!s.endsWith(")"))return{expectation:s};let a=0;for(let c=s.length-1;c>=0;c--)if(s[c]===")")a++;else if(s[c]==="("&&--a===0){let u=s.slice(0,c).trim(),l=s.slice(c+1,-1).trim();return u&&l?{expectation:u,expected:l}:{expectation:s}}return{expectation:s}})}o(p0,"assertionParts");var SJ=new Set(["update","regenerate","delete"]);var uHe={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var kJ=d.string().trim().min(1),f0=d.object({schemaVersion:d.literal(1).optional(),businessCaseAnalysis:kJ.describe("1-2 sentences: what this change means for a user, and whether the evidence shows it working; no count of tests, which the report gives"),issuesFound:d.array(d.object({description:kJ,severity:d.string().optional().describe("critical | high | medium | low"),category:d.string().optional().describe("bug | lint | type | config"),sourceFile:d.string().optional(),sourceLine:d.number().optional(),findingId:d.string().optional(),requirementIds:d.array(d.string()).optional()})).describe("every real problem this run exposed \u2014 cause, file:line, severity"),nextSteps:d.array(d.string()).describe("concrete follow-ups the author can act on; required non-empty when a disclosure is BLOCKING")});function vhe(e){return In(f0,e).errors}o(vhe,"validateProseOutput");function Che(e,t=[]){let{value:n,error:i}=Nt(e.stdout,t);if(i)return{errors:[i]};let r=vhe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}o(Che,"parseProseFromSession");var CHe=Dn("report-schema",(e,t)=>Che(t,e.secretValues));var A0="<!-- skyramp-testbot -->",g0=SJ,She=new Set(["lint","type","config"]),BJ={critical:0,high:1,medium:2,low:3},NJ=new Set(["Pass","Fail"]);var h0=o(e=>Bs(se().statusLabels,e),"statusLabel"),iE=o(e=>Bs(se().testTypeCellLabels,e),"testTypeLabel");function Ye(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}o(Ye,"escCell");function RJ(e){return e.inferred?" (inferred)":""}o(RJ,"inferredMark");function QJ(e,t){return!e||!NJ.has(e)?"\u2014":t?`${h0(e)} (${Ye(PJ(t))})`:h0(e)}o(QJ,"maintStatus");function PJ(e){let t=o(i=>{let r=i.indexOf(": ");return r<0?i:Bs(se().staged.maintenanceActions,i.slice(0,r))+i.slice(r)},"action");if(e.startsWith(bf))return se().staged.keptNot+t(e.slice(bf.length));let n=e.indexOf(vf);return n<0?e:e.slice(0,n)+se().staged.declinedPlanned+t(e.slice(n+vf.length))}o(PJ,"declineNote");function xJ(e){return e.category!==void 0&&She.has(e.category.toLowerCase())}o(xJ,"isTooling");function $J(e,t){return(BJ[(e.severity??"").toLowerCase()]??4)-(BJ[(t.severity??"").toLowerCase()]??4)}o($J,"bySeverity");function TJ(e){return`- ${e.severity?`**[${Bs(se().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}`}o(TJ,"issueLine");function khe(e){let t=e.resultId?.split("#").slice(1).join("#");if(e.testType!=="unit"||!t)return;let n=t;try{n=decodeURIComponent(t)}catch{}let i=/^(.*?)(\[.*\])$/.exec(n);return i?{fn:i[1],kase:i[2]}:{fn:n}}o(khe,"unitTestOf");var UJ=o((e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,""),"samePath");function FJ(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}o(FJ,"videoLink");function m0(e,t){return FJ(e,n=>UJ(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}o(m0,"resultVideoLink");function y0(e,t){return FJ(e,n=>UJ(n.writtenAs??n.fileName,t))}o(y0,"journeyVideoLink");function Bhe(e,t,n){return n?m0(e,{fileName:t,repository:n}):y0(e,t)}o(Bhe,"requirementVideoLink");function Rhe(e){let t=[],n=new Map;for(let a of e.newTestsCreated)a.testType==="unit"&&n.set(a.fileName,[...n.get(a.fileName)??[],a.testId.split("::").slice(1).join("::")]);let i=new Map,r=o((a,c)=>(n.get(a??"")??[]).find(u=>u!==c&&Fq(c,u)),"parentOf"),s=new Map;for(let a of e.testResults){let c=khe(a),u=c&&!c.kase?r(a.fileName,c.fn):void 0;if(c&&u&&(c={fn:u,kase:`"${c.fn}"`}),c?.kase&&i.set(a,c.kase),!c){t.push({testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:a.details??"",...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}});continue}let l=`${a.fileName??""}#${c.fn}`,p=s.get(l);p||(p={row:{testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:"",test:c.fn,...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}},cases:[]},s.set(l,p),t.push(p.row)),p.cases.push(a)}for(let{row:a,cases:c}of s.values()){let u=c.filter(g=>g.status==="Fail"),l=c.filter(g=>g.status==="Pass").length,p=c.filter(g=>g.status==="Skipped").length;a.cases=c.length,a.status=u.length?"Fail":p?"Skipped":"Pass";let f=u[0];a.details=c.length===1?c[0].details??"":se().staged.casesPassed(l,c.length,p)+(f?`; ${i.get(f)??""} ${f.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}o(Rhe,"resultRows");function Qhe(e){return p0(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${Bt(t.expected)}`)}o(Qhe,"unitAssertions");function Sf(e){return e.newTestsCreated.some(t=>t.testType!=="unit")&&e.testResults.every(t=>t.status==="Skipped")&&e.testResults.some(t=>t.failureCause?.kind==="environment"&&(t.failureCause.family==="app_not_started"||t.failureCause.family==="secret"))}o(Sf,"nothingExecuted");function OJ(e){let t=e.pullRequests??[];return t.length<2?[]:[se().staged.validatedTogether(t.map(n=>`${Bt(`${n.repository}#${n.number}`)}${n.title?` ${Rr(n.title,120)}`:""}`).join("; "))]}o(OJ,"pullRequestsLine");function LJ(e,t=1/0){let n=Array.from(e.name.replace(/\s+/g," ").trim()).slice(0,t).join("").replace(/[<>[\]()*_`\\|#]/g,"\\$&").replace(/@/g,"@\u200D");return e.kind==="person"?se().staged.requestedByPerson(n):se().staged.requestedByPolicy(n)}o(LJ,"requesterLine");function MJ(e,t={}){if(t.audience==="testbot-pr")return Uhe(e,t);let{audience:n,collapsed:i=!1,existingEvidence:r=[],requestedBy:s,sourcePullRequest:a}=t,c=n!=="comment",u=(e.requirements??[]).filter(C=>/^file-[a-f0-9]{16}-/i.test(C.id)).sort((C,D)=>D.id.length-C.id.length),l=o(C=>{let D=u.find(B=>C.toLowerCase().startsWith(B.id.toLowerCase()));return D?D.label+C.slice(D.id.length):C},"displayId"),p=[A0];a&&p.push(se().staged.testsSourcePullRequest(Bt(a)),"");for(let C of OJ(e))p.push(C,"");s&&p.push(LJ(s),""),e.notTranslated&&p.push(Bs(se().staged.notTranslated,e.notTranslated),"");let f=o(C=>{i?p.push("<details>",`<summary>${C}</summary>`,""):p.push(`### ${C}`)},"sectionStart"),g=o(()=>{i&&p.push("","</details>"),p.push("")},"sectionEnd");for(let C of e.businessCaseAnalysis.trim().split(/\r?\n/))p.push(`> ${C}`);if(p.push(""),Sf(e)&&p.push(se().staged.noLiveApp(qu(e.newTestsCreated)),""),c&&e.newTestsCreated.length){let C=new Map;for(let B of e.newTestsCreated){if(B.testType!=="unit")continue;let K=u0(B)[0],ae=C.get(B.fileName)??{functions:new Set,endpoints:[],descriptions:new Map};B.endpoint&&!ae.endpoints.includes(B.endpoint)&&ae.endpoints.push(B.endpoint);let Z=B.description?.trim()??"",Ee=ae.descriptions.get(K)??[];Ee.includes(Z)||Ee.push(Z),ae.functions.add(K),ae.descriptions.set(K,Ee),C.set(B.fileName,ae)}let D=e.newTestsCreated.filter(B=>B.testType!=="unit");f(se().testRecommendationsImplementedHeader(qu(e.newTestsCreated),D.length+qu(e.newTestsCreated.filter(B=>B.testType==="unit"))));for(let[B,{functions:K,endpoints:ae,descriptions:Z}]of C){let Ee=K.size;p.push(se().staged.unitTestsInFile(`\`${B}\``,Ee,ae.map(xe=>`\`${xe}\``).join(", ")),"");let De=new Map;for(let[xe,W]of Z){let M=W.join("\0"),Je=De.get(M)??{fns:[],descriptions:W};Je.fns.push(xe),De.set(M,Je)}let Ve=0;for(let{fns:xe,descriptions:W}of De.values()){p.push(`${++Ve}. ${xe.map(Je=>`\`${Je}\``).join(", ")}`);let M=[...new Set(W.flatMap(Je=>Qhe(Je)))];for(let Je of M)p.push(` - ${Je}`)}p.push("")}for(let B of D){let K=B.testId?Bt(l(B.testId)):iE(B.testType),ae=B.fileName?` (\`${B.fileName}\`)`:"",Z=B.endpoint?`
168
168
  \`${B.endpoint}\``:"",Ee=B.description?`
169
169
  ${B.description.trim()}`:"";p.push(`- ${K}${ae}${Z}${Ee}`)}g()}let h=(e.testMaintenance??[]).filter(C=>g0.has(C.action));if(c&&h.length){f(se().staged.testMaintenanceHeader),p.push(se().maintenanceTableHeader),p.push("|-----------|----------|------|--------|--------|-------|");for(let C of h)p.push(`| ${Ye(iE(C.testType))} | ${Ye(C.endpoint)} | \`${Ye(C.fileName)}\` | ${Ye(C.description)} | ${QJ(C.beforeStatus,C.beforeDetails)} | ${QJ(C.afterStatus,C.afterDetails)} |`);g()}let m=o(C=>C.startsWith(bf)||C.includes(vf),"hasDeclineNote"),E=(e.testMaintenance??[]).filter(C=>m(C.afterDetails)&&(!g0.has(C.action)||!NJ.has(C.afterStatus??"")));if(c&&E.length){f(se().staged.declinedMaintenanceHeader);for(let C of E)p.push(`- \`${Ye(C.fileName)}\`: ${Ye(PJ(C.afterDetails))}`);g()}if(c&&r.length){f(se().staged.existingEvidenceHeader);let C=new Map;for(let D of r){let B=`${D.check}\0${D.url??""}\0${D.revision??""}`;C.set(B,[...C.get(B)??[],D])}for(let[,[D,...B]]of C){let K=D.url?`[${Bt(D.check)}](${D.url})`:Bt(D.check);p.push(se().staged.trustedCheckPassed(K,D.revision?Bt(D.revision.slice(0,7)):""),"");for(let ae of[D,...B])p.push(`- ${Bt(ae.behavior)}`);p.push("")}g()}if(c&&e.testResults.length){f(se().staged.testResultsHeader);let C=Rhe(e),D=C.some(Z=>Z.test),B=C.some(Z=>m0(e,Z)),K=D?se().staged.unitResultsTableHeader:se().staged.resultsTableHeader;p.push(B?`${K} ${se().columnVideo} |`:K),p.push(`${D?"|---------|-----------|----------|------|-------|--------|---------|":"|---------|-----------|----------|--------|---------|"}${B?"-------|":""}`);for(let Z of C){let Ee=Z.details.replace(/(\S+\.(?:py|ts|js|spec\.\w+))/gi,"`$1`"),De=Z.testId?Bt(Ye(l(Z.testId))):"\u2014",Ve=D?` ${Z.test?`\`${Ye(Z.test)}\``:""} | ${Z.cases??""} |`:"",xe=m0(e,Z),W=B?` ${xe?se().videoDownloadLink(xe):"\u2014"} |`:"";p.push(`| ${De} | ${Ye(iE(Z.testType))} | ${Ye(Z.endpoint)} |${Ve} ${Ye(h0(Z.status))} | ${Ye(Ee)} |${W}`)}let ae=(e.testVideos??[]).find(Z=>Z.artifactsUrl)?.artifactsUrl;!B&&ae&&p.push("",se().videosArtifactFallback(ae)),g()}if(e.requirements?.length){let C=e.requirements.flatMap(Z=>Z.clauses),D=o(Z=>Z.status==="Pass"||Z.status==="Passed, test not kept","passes"),B=C.filter(D).length;f(se().staged.requirementsHeader(B,C.length));let K=o(Z=>Bs(se().staged.clauseStatuses,Z.status),"status"),ae=o(Z=>(Z.status==="Not tested"||Z.status==="Passed, test not kept")&&Z.notTested?`${K(Z)}: ${Z.notTested}`:Z.findings.length?`${K(Z)} \u2014 ${Z.findings.join(", ")}`:K(Z),"result");if(c){p.push(se().staged.requirementsTableHeader),p.push("|-------------|--------|-------|--------|");for(let Z of e.requirements)Z.clauses.forEach((Ee,De)=>{let Ve=De===0?`**${Ye(Z.label)}**${Z.statement?` ${Ye(Z.statement)}`:""}`:"",xe=`${Bt(Ye(l(Ee.id)))}${RJ(Ee)}${Ee.text?` ${Ye(Ee.text)}`:""}`,W=new Map;for(let We of Ee.tests){let cn=We.fileName??l(We.testId),Rt=W.get(cn)??{fns:new Set};for(let Gn of We.functions)Rt.fns.add(Gn);Rt.video??=We.fileName?Bhe(e,We.fileName,We.repository):void 0,W.set(cn,Rt)}let M=W.size?[...W].map(([We,{fns:cn,video:Rt}])=>`${Bt(Ye(We))}${cn.size?` \u2014 ${[...cn].map(Gn=>`\`${Ye(Gn)}\``).join(", ")}`:""}${Rt?` ${se().videoDownloadLink(Rt)}`:""}`).join("<br>"):"\u2014",Je=Z.source==="could-break"&&Ee.status==="Pass"?se().staged.regressionGuard:"";p.push(`| ${Ve} | ${xe} | ${M} | ${Ye(ae(Ee)+Je)} |`)})}else{p.push(se().staged.requirementsSummaryTableHeader),p.push("|-------------|-----------------|-------------|");for(let Z of e.requirements){let Ee=Z.clauses.filter(D).length,De=Z.clauses.filter(Ve=>!D(Ve)).map(Ve=>`${Bt(Ye(l(Ve.id)))}${RJ(Ve)} ${Ye(ae(Ve))}`);p.push(`| **${Ye(Z.label)}**${Z.statement?` ${Ye(Z.statement)}`:""} | ${Ee}/${Z.clauses.length} | ${De.join("<br>")||"\u2014"} |`)}}g()}if(c&&e.changes?.length&&!e.requirements?.length){let C=e.executionCoverage,D=C?se().staged.coverageCaption(C.generated,C.modified,C.verified,C.executed):"";f(`${se().staged.behaviourCoverageHeader}${D}`),p.push(se().staged.coverageTableHeader),p.push("|-----------|--------|-----------|----------------|");for(let B of e.changes){let K=B.testedBy.length?B.testedBy.map(Z=>`\`${Ye(Z)}\``).join(", "):B.writtenBy.length?se().staged.writtenNotRun:"\u2014",ae=B.maintainedBy.length?B.maintainedBy.map(Z=>`\`${Ye(Z)}\``).join(", "):"\u2014";p.push(`| ${Ye(B.text)} | \`${Ye(B.source)}\` | ${K} | ${ae} |`)}g()}if(e.userJourneys?.length){let C=e.userJourneys.filter(B=>B.status==="Pass"&&!B.problems.length).length;f(`\u{1F9ED} User Journeys Covered (${C}/${e.userJourneys.length} walked end to end)`);let D=e.userJourneys.some(B=>y0(e,B.fileName));p.push(`| Journey | Test | Status | Notes |${D?` ${se().columnVideo} |`:""}`),p.push(`|---------|------|--------|-------|${D?"-------|":""}`);for(let B of e.userJourneys){let K=B.fileName?`\`${Ye(B.fileName)}\`${B.test?` \u2014 ${Ye(B.test)}`:""}`:"\u2014",ae=B.source&&B.source!=="inferred"?`; described in the ${B.source==="spec"?"spec":"PR description"}`:"; inferred from the app",Z=(B.uncovered?`not covered: ${B.uncovered}`:B.problems.length?`does not walk it end to end: ${B.problems.join("; ")}`:`from ${B.entry}, ${B.steps} steps`)+ae,Ee=D?y0(e,B.fileName):void 0;p.push(`| ${Ye(B.name)} | ${K} | ${Ye(B.status)} | ${Ye(Z)} |${D?` ${Ee?se().videoDownloadLink(Ee):"\u2014"} |`:""}`)}g()}let I=e.issuesFound.filter(C=>!xJ(C)).sort($J),b=e.issuesFound.filter(xJ).sort($J);if(I.length){f(se().staged.issuesFoundHeader);for(let C of I)p.push(TJ(C));g()}if(b.length){p.push(`### ${se().configErrorsHeader}`);for(let C of b)p.push(TJ(C));p.push("")}let v=e.testPackages??[],R=e.dependencyChanges??[];if(v.length){p.push(se().staged.testPackagesHeader,"");for(let C of v)p.push(`- ${se().staged.testPackageLine(C.directory,C.entrypoint,Object.entries(C.dependencies??{}).map(([D,B])=>C.runner==="pytest"?`${D}==${B}`:`${D}@${B}`).join(", "))}`);R.length||p.push(`- ${se().staged.appManifestsUntouched}`),p.push("")}if(R.length){p.push(se().staged.dependencyChangesHeader,"");for(let C of R)p.push(`- ${se().staged.dependencyChangeLine(C.package,C.repository?`${C.repository}: ${C.manifest}`:C.manifest,(C.reason??"").replace(/\s+/g," ").trim())}`);p.push("")}let $=(e.caveats??[]).filter(C=>C.kind!=="tests-not-executed"||C.subject==="written-cases"||!Sf(e));if($.length){p.push(se().staged.caveatsHeader,"");for(let C of $)p.push(`- ${C.text}`);p.push("")}if(e.nextSteps.length){p.push(se().nextStepsHeader,"");for(let C of e.nextSteps)p.push(`- ${C.trim()}`);p.push("")}return p.join(`
170
170
  `).replace(/\n{3,}/g,`
@@ -180,7 +180,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
180
180
  `;return D.length<=i?D:[A0,...l,...c,n.filesChanged].join(`
181
181
 
182
182
  `)+`
183
- `}o(Uhe,"renderTestsPrBody");var so=me(require("fs")),E0=me(require("path"));var Ohe="report.json",Lhe="report-display.json",ZHe={en:"English",ja:"Japanese"};function jJ(e){let t=E0.join(e,Lhe);if(so.existsSync(t))try{return JSON.parse(so.readFileSync(t,"utf-8"))}catch{}let n=E0.join(e,Ohe);return so.existsSync(n)?JSON.parse(so.readFileSync(n,"utf-8")):void 0}o(jJ,"readDisplayReport");function GJ(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
183
+ `}o(Uhe,"renderTestsPrBody");var so=me(require("fs")),E0=me(require("path"));var Ohe="report.json",Lhe="report-display.json",XHe={en:"English",ja:"Japanese"};function jJ(e){let t=E0.join(e,Lhe);if(so.existsSync(t))try{return JSON.parse(so.readFileSync(t,"utf-8"))}catch{}let n=E0.join(e,Ohe);return so.existsSync(n)?JSON.parse(so.readFileSync(n,"utf-8")):void 0}o(jJ,"readDisplayReport");function GJ(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
184
184
  ${e}`:e}o(GJ,"withRunMarker");var Ta=me(require("fs")),$a=me(require("path"));var sE=["build","chore","ci","docs","feat","fix","perf","refactor","revert","style","test"],jhe=["build","ci","docs","feat","fix","perf","refactor","revert","style","test"],Ghe="amannn/action-semantic-pull-request",jn=o(e=>typeof e=="object"&&e!==null&&!Array.isArray(e),"isObj");function VJ(e){return typeof e!="string"?!1:e.split("@")[0].split("/").some(n=>n.toLowerCase().split(/[-_.]/).includes("dco"))}o(VJ,"usesDco");function zJ(e){return typeof e=="string"&&(/\bdco-check\b/.test(e)||/signed-off-by/i.test(e))}o(zJ,"scriptChecksDco");function Vhe(e){if(!jn(e)||!jn(e.jobs))return!1;for(let t of Object.values(e.jobs))if(jn(t)){if(VJ(t.uses))return!0;if(Array.isArray(t.steps)){for(let n of t.steps)if(jn(n)&&(VJ(n.uses)||zJ(n.run)||jn(n.with)&&Object.values(n.with).some(zJ)))return!0}}return!1}o(Vhe,"workflowChecksDco");function YJ(e){let t=$a.join(e,".github","workflows"),n;try{n=Ta.readdirSync(t).filter(i=>/\.ya?ml$/i.test(i)).sort()}catch{return[]}return n.flatMap(i=>{try{return[{file:$a.join(".github","workflows",i),doc:Ks(Ta.readFileSync($a.join(t,i),"utf-8"))}]}catch{return[]}})}o(YJ,"workflows");function zhe(e){return!jn(e)||!jn(e.jobs)?[]:Object.values(e.jobs).flatMap(t=>jn(t)&&Array.isArray(t.steps)?t.steps.filter(jn):[])}o(zhe,"steps");function qhe(e){let t=$a.join(".github","dco.yml");if(Ta.existsSync($a.join(e,t)))return{file:t};let n=YJ(e).find(i=>Vhe(i.doc));return n&&{file:n.file}}o(qhe,"signOffRule");var qJ=o(e=>typeof e=="string"?e.split(/\r?\n/).map(t=>t.trim()).filter(Boolean):void 0,"inputList");function Jhe(e){for(let t of YJ(e)){let n=zhe(t.doc).find(s=>typeof s.uses=="string"&&s.uses.split("@")[0].trim().toLowerCase()===Ghe);if(!n)continue;let i=jn(n.with)?n.with:{},r=qJ(i.scopes);return{file:t.file,types:qJ(i.types)??sE,...r?.length?{scopes:r}:{},scopeRequired:i.requireScope===!0||String(i.requireScope).trim()==="true"}}}o(Jhe,"semanticPrTitleRule");var Hhe=["package.json",".commitlintrc",".commitlintrc.json",".commitlintrc.yaml",".commitlintrc.yml",".commitlintrc.js",".commitlintrc.cjs",".commitlintrc.mjs",".commitlintrc.ts",".commitlintrc.cts","commitlint.config.js","commitlint.config.cjs","commitlint.config.mjs","commitlint.config.ts","commitlint.config.cts","commitlint.config.mts"],Yhe=["type-enum","scope-enum","scope-empty","subject-case","header-max-length","body-max-line-length"];function WJ(e){let t=[];for(let n of e)n==="@commitlint/config-conventional"||n==="@commitlint/config-angular"?t.push(n):t.length=0;return t}o(WJ,"knownPresets");var Whe={Disabled:"0",Warning:"1",Error:"2"};function Zhe(e){return e.replace(/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g,t=>t.startsWith("/")?t.replace(/[^\r\n]/g," "):t)}o(Zhe,"withoutComments");function JJ(e,t){let n=new RegExp(`["']?${t}["']?\\s*:\\s*`).exec(e);if(!n)return;let i=n.index+n[0].length;if(e[i]!=="[")return null;let r=0;for(let s=i;s<e.length;s++)if(e[s]==="[")r++;else if(e[s]==="]"&&--r===0){if(!/^\s*(?:as\s+const\s*)?(?:[,}]|$)/.test(e.slice(s+1)))return null;let a=e.slice(i,s+1).replace(/\bRuleConfigSeverity\.(\w+)/g,(u,l)=>Whe[l]??u).replace(/,(\s*\])/g,"$1"),c=a.replace(/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'/g,'""');try{return JSON.parse(c),Ks(a)}catch{return null}}}o(JJ,"ruleFromSource");var ZJ=o(e=>Object.fromEntries(Yhe.map(t=>[t,e(t)])),"pickRules");function HJ(e,t){if(!jn(t))return;let n=[].concat(t.extends??[]),i=jn(t.rules)?t.rules:{};return{file:e,presets:WJ(n),rules:ZJ(r=>i[r])}}o(HJ,"configFromObject");function Khe(e){for(let t of Hhe){let n;try{n=Ta.readFileSync($a.join(e,t),"utf-8")}catch{continue}if(/\.[cm]?[jt]s$/.test(t)){let r=Zhe(n),s=/(?:^|[,{])\s*["']?extends["']?\s*:\s*/.exec(r),a=s?JJ(r.slice(s.index),"extends"):void 0,c=s?/^(["'])([^"']+)\1\s*(?:[,}]|$)/.exec(r.slice(s.index+s[0].length))?.[2]:void 0,u=Array.isArray(a)?a:c?[c]:[];return{file:t,presets:WJ(u),rules:ZJ(l=>JJ(r,l))}}let i;try{i=Ks(n)}catch{return}if(t!=="package.json")return HJ(t,i);if(jn(i)&&jn(i.commitlint))return HJ(t,i.commitlint)}}o(Khe,"commitlintConfig");function Ju(e){if(!Array.isArray(e))return;let t=Number(e[0]);if(t===1||t===2)return[String(e[1]??"always"),e[2]]}o(Ju,"ruleWhenOn");var I0=o(e=>Array.isArray(e)&&e.every(t=>typeof t=="string")?e:void 0,"stringList");function Xhe(e,t){if(!e)return t?"not-capitalized":void 0;let[n,i]=e,r=typeof i=="string"?[i]:I0(i)??[];if(n==="always"&&r.length===1&&r[0]==="lower-case")return"lower-case";if(n==="always"&&r.length===1&&r[0]==="sentence-case")return"sentence-case";if(n==="never"&&r.some(s=>["sentence-case","start-case","pascal-case","upper-case"].includes(s)))return"not-capitalized"}o(Xhe,"subjectCaseOf");function eme(e){let t=Khe(e);if(!t)return;let{file:n,rules:i}=t,r=t.presets.at(-1)==="@commitlint/config-angular",s=o(I=>t.presets.length>0&&i[I]===void 0,"preset"),a=Ju(i["type-enum"]),c=a?.[0]==="always"?I0(a[1]):s("type-enum")?r?jhe:sE:void 0,u=c===void 0,l=c??sE;u&&console.warn(`[commit-rules] ${n}: allowed commit types could not be read; using a conventional header fallback. Additional preset rules may still reject it.`);let p=Ju(i["scope-enum"]),f=p?.[0]==="always"?I0(p[1]):void 0,g=o((I,b)=>{let v=Ju(i[I]);return v?typeof v[1]=="number"?v[1]:void 0:s(I)?b:void 0},"limit"),h=Xhe(Ju(i["subject-case"]),s("subject-case")),m=g("header-max-length",r?72:100)??(u&&i["header-max-length"]===void 0?qi:void 0),E=g("body-max-line-length",t.presets.includes("@commitlint/config-conventional")?100:void 0);return{file:n,types:l,...u?{typesFromFallback:!0}:{},...u&&!h&&i["subject-case"]===void 0?{fallbackSubjectCase:"not-capitalized"}:{},...f?.length?{scopes:f}:{},scopeRequired:Ju(i["scope-empty"])?.[0]==="never",...Ju(i["scope-empty"])?.[0]==="always"?{scopeForbidden:!0}:{},...h?{subjectCase:h}:{},...m?{headerMaxLength:m}:{},...E?{bodyMaxLineLength:E}:{}}}o(eme,"commitlintRule");function KJ(e){let t=qhe(e),n=eme(e),i=Jhe(e);return{...t?{signOff:t}:{},...n?{commitlint:n}:{},...i?{prTitle:i}:{}}}o(KJ,"readCommitRules");function tme(e){let t=[e.commitlint,e.prTitle].filter(a=>!!a);if(!t.length)return;let n=t.map(a=>a.types).reduce((a,c)=>a.filter(u=>c.includes(u)));n.length||console.warn(`[commit-rules] ${t.map(a=>a.file).join(", ")}: no common commit type; using ${t[0].types.join(", ")} from ${t[0].file}. This may fail another rule.`);let i=t.map(a=>a.subjectCase),r=i.includes("lower-case")?"lower-case":i.find(a=>a!==void 0)??t.find(a=>a.fallbackSubjectCase)?.fallbackSubjectCase,s=Math.min(...t.map(a=>a.bodyMaxLineLength??1/0));return{rules:t,types:n.length?n:t[0].types,scopeRequired:t.some(a=>a.scopeRequired),...r?{subjectCase:r}:{},headerMaxLength:Math.min(qi,...t.map(a=>a.headerMaxLength??1/0)),...Number.isFinite(s)?{bodyMaxLineLength:s}:{}}}o(tme,"mergedHeaderRules");function oE(e,t){return e.scopeForbidden?!1:e.scopes?e.scopes.some(n=>{if(n===t)return!0;try{return new RegExp(`^(?:${n})$`).test(t)}catch{return!1}}):!0}o(oE,"allowsScope");function nme(e,t){let n=e.find(s=>s.scopes)?.scopes??[],i=n.filter(s=>/^[\w./-]+$/.test(s)&&e.every(a=>oE(a,s)));if(!i.length)return e.every(s=>oE(s,"tests"))||console.warn(`[commit-rules] ${e.map(s=>s.file).join(", ")}: no usable required scope; using tests, which may fail the declared scope rules (${n.join(", ")}).`),"tests";let r=o(s=>t.some(a=>a.startsWith(`${s}/`)||a.split("/").slice(0,-1).includes(s)),"under");return[...i].filter(r).sort((s,a)=>a.length-s.length)[0]??i[0]}o(nme,"pickScope");var XJ=/^([A-Za-z][\w-]*)(?:\(([^)]*)\))?!?:\s*(.*)$/,rme=o(e=>e.split(/(`.*?`|".*?"|'.*?')/).map((t,n)=>n%2?t:t.toLowerCase()).join(""),"lowerOutsideQuotes");function eH(e,t){return t==="lower-case"?rme(e):t==="sentence-case"?e.charAt(0).toUpperCase()+e.slice(1):t==="not-capitalized"&&/^[A-Z]/.test(e)?e.replace(/^\S+/,n=>n.toLowerCase()):e}o(eH,"withSubjectCase");function ime(e,t){return eH(e.trim().replace(/\.+$/,"").trim()||"add tests",t)}o(ime,"conformSubject");function tH(e,t){let[n,...i]=e.replace(/\s+$/,"").split(`
185
185
  `),r=XJ.exec(n);return[t.commitlint,t.prTitle].every(s=>{if(!s)return!0;if(!s.typesFromFallback&&(!r||!s.types.includes(r[1]))||s.headerMaxLength&&n.length>s.headerMaxLength)return!1;let a=s.bodyMaxLineLength;if(a&&i.some(u=>u.length>a&&!/\bhttps?:\/\/\S+/.test(u)))return!1;let c=r?.[2];if(s.scopeRequired&&!c||c&&!oE(s,c)||r&&!r[3].trim())return!1;if(s.subjectCase){if(!r)return!1;let u=r[3],l=u.replace(/`.*?`|".*?"|'.*?'/g,"").trim();if(/^[\p{Ll}\p{Lu}\p{Lt}]/u.test(u)&&!/^\d/.test(l)&&eH(l,s.subjectCase)!==l)return!1}return!0})}o(tH,"matchesCommitRules");function sme(e,t){if(e.length<=t)return e;let n=e.slice(0,t-1),i=n.lastIndexOf(" ");return`${(i>0?n.slice(0,i):n).replace(/[\s.,;:]+$/,"")}\u2026`}o(sme,"fitSubject");function ome(e,t){if(e.length<=t)return[e];let n=/^\s*/.exec(e)?.[0]??"",i=[],r="";for(let s of e.trim().split(/\s+/))r&&r.length+1+s.length>t?(i.push(r),r=n+s):r?r=`${r} ${s}`:r=n+s;return r&&i.push(r),i}o(ome,"wrap");function nH(e,t,n){let i=tme(t);if(!i)return e;let[r,...s]=e.replace(/\s+$/,"").split(`
186
186
  `),a=XJ.exec(r.trim()),c=a&&[...sE,...i.types].some(v=>v.toLowerCase()===a[1].toLowerCase())?a:null,u=c?.[1].toLowerCase(),l=c?c[3]:r.replace(/^\s*Skyramp Testbot:\s*/i,""),p=c?.[2]?.trim()||void 0;p&&t.commitlint&&!t.commitlint.scopes&&(p=p.toLowerCase());let f=[u,"test","chore"].find(v=>!!v&&i.types.includes(v))??i.types[0],g=p&&i.rules.every(v=>oE(v,p))?p:void 0;!g&&i.scopeRequired&&(g=nme(i.rules,n));let h=g?`${f}(${g}): `:`${f}: `,m=h+sme(ime(l,i.subjectCase),i.headerMaxLength-h.length),E=s.join(`
@@ -196,12 +196,12 @@ ${n}`}o(aE,"withSignOff");function rH(e){let t=[],n=!1;for(let i of e.split(`
196
196
  `))/^\s*signed-off-by:/i.test(i)?n=!0:n&&i.trim()===""&&t.at(-1)?.trim()===""||(t.push(i),n=!1);return t.join(`
197
197
  `).replace(/\s+$/,"")}o(rH,"withoutSignOff");function b0(e){let t=/\b(claude|anthropic)\b/i;return e.split(`
198
198
  `).filter(i=>{let r=i.trim();return!(/^co-authored-by:/i.test(r)&&t.test(r))&&!(/^[^\w\s]*\s*generated (?:with|by) /i.test(r)&&t.test(r))}).join(`
199
- `).replace(/\s+$/,"")}o(b0,"stripAgentAttribution");var cE="Skyramp-Pull-Request",Hu="Skyramp-Delivery-Base",v0="Skyramp-Tested-Revision",C0="Skyramp-Delivery-Run";var gYe=["%H","%P","%an","%ae","%ce",`%(trailers:key=${cE},valueonly,separator=%x2C)`,"%s",`%(trailers:key=${Hu},valueonly,separator=%x2C)`,`%(trailers:key=${v0},valueonly,separator=%x2C)`,`%(trailers:key=${C0},valueonly,separator=%x2C)`];function iH(e,t){let n=e(["log","-1","--format=%B"]);if(!n.includes(`${cE}:`)&&!n.includes(`${Hu}:`))return;let i=n.split(`
199
+ `).replace(/\s+$/,"")}o(b0,"stripAgentAttribution");var cE="Skyramp-Pull-Request",Hu="Skyramp-Delivery-Base",v0="Skyramp-Tested-Revision",C0="Skyramp-Delivery-Run";var mYe=["%H","%P","%an","%ae","%ce",`%(trailers:key=${cE},valueonly,separator=%x2C)`,"%s",`%(trailers:key=${Hu},valueonly,separator=%x2C)`,`%(trailers:key=${v0},valueonly,separator=%x2C)`,`%(trailers:key=${C0},valueonly,separator=%x2C)`];function iH(e,t){let n=e(["log","-1","--format=%B"]);if(!n.includes(`${cE}:`)&&!n.includes(`${Hu}:`))return;let i=n.split(`
200
200
  `).filter(a=>!a.startsWith(`${Hu}:`)).join(`
201
201
  `).trimEnd(),r=t?`${i}
202
202
  ${Hu}: ${t}`:i;e(["log","-1","--format=%(trailers:key=Signed-off-by,valueonly)"]).split(`
203
- `).some(a=>a.trim().toLowerCase()===`${Ns} <${ra}>`.toLowerCase())&&(r=aE(r,{name:Ns,email:ra})),e(["-c",`user.name=${Ns}`,"-c",`user.email=${ra}`,"commit","--amend","--allow-empty","-m",r])}o(iH,"amendDeliveryBase");var uE=me(require("fs")),Cn=me(require("path"));var yYe=5*1024*1024;function cme(e){try{return uE.lstatSync(e),!0}catch{return!1}}o(cme,"lexists");function sH(e){let t=Le(e,"adapt.json"),n=Le(e,"finalize.json"),i=Le(e,yf),r=new Map,s=o(m=>{let E=Yc(e.inputs,m);if("error"in E)return;let I=r.get(E.source.path)??{source:E.source,paths:new Set};return r.set(E.source.path,I),{repo:I.source.path,paths:I.paths}},"pathsOf"),a=o((m,E)=>Cn.relative(m,Cn.resolve(m,E.trim())).replace(/\/+$/,""),"norm"),c=o((m,E)=>{let I=E?.trim()&&s(m);if(!I)return;let b=a(I.repo,E);I.paths.add(b);for(let v of["__init__.py","conftest.py"]){let R=Cn.join(Cn.dirname(b),v);uE.existsSync(Cn.join(I.repo,R))&&I.paths.add(R)}},"addTest"),u=o((m,E)=>{if(typeof E!="string"||!E.trim())return;let I=s(m);if(!I)return;let b=a(I.repo,E);if(lf(Cn.join(I.repo,b)))return I.paths.add(b),{...I,rel:b}},"addEdited"),l=d0(e),p=(t?.items??[]).filter(m=>m.action==="place"&&l.has(m.from??m.file??"")),f=o((m,E)=>p.some(I=>I.repository===m&&I.file&&Cn.normalize(I.file)===E),"heldIn"),g=(t?.items??[]).filter(m=>!p.includes(m));for(let m of[...g,...i?.tests??[],...i?.maintained??[]])c(m.repository,m.file);for(let m of n?.dependencies?.added??[]){let E=u(m.repository,m.manifest);if(E)for(let I of O$(E.repo,Vy(E.repo,E.rel)))E.paths.add(I)}for(let m of n?.lint??[])for(let E of m.fixed??[])u(m.repository,E);for(let m of n?.support??[])u(m.repository,m.file);let h=Le(e,zy)?.packages??[];for(let m of new Set(h.map(E=>E.repository))){let E=s(m),I=h.filter(b=>b.repository===m).map(b=>b.dir);if(E)for(let{path:b}of r0(E.repo)){let v=a(E.repo,b),R=Cn.join(E.repo,v);qy(v,I)&&!L$(v)&&!f(m,v)&&(!cme(R)||lf(R))&&E.paths.add(v)}}return new Map([...r.values()].map(({source:m,paths:E})=>[m,[...E].filter(I=>I&&I!==".."&&!I.startsWith(`..${Cn.sep}`)&&!Hp(I))]))}o(sH,"deliverAllowlist");var aH=me(require("fs"));var cH=2*1024*1024;function ume(e){let t=[];for(let n of e??[])if(n.state==="read")try{t.push({item:n,text:aH.readFileSync(Ej(n),"utf-8")})}catch{}return t}o(ume,"readItemTexts");var kf=6,lme=/[\p{L}\p{N}]+/gu,dme=new RegExp("(?<=\\p{Ll})(?=\\p{Lu})|(?<=\\p{Lu})(?=\\p{Lu}\\p{Ll})","u");function w0(e){let t=[];for(let n of e.matchAll(lme)){let i=n.index;for(let r of n[0].split(dme))t.push({word:r.toLowerCase(),start:i,end:i+r.length}),i+=r.length}return t}o(w0,"wordsOf");var uH=o((e,t)=>e.slice(t,t+kf).map(n=>n.word).join(" "),"runAt");function oH(e){let t=w0(e),n=new Set;for(let i=0;i+kf<=t.length;i++)n.add(uH(t,i));return n}o(oH,"runsOf");function lH(e,t=[]){let n=new Set(t.flatMap(i=>[...oH(i)]));return ume(e).map(({item:i,text:r})=>{let s=i.source==="other"?r:r.slice(r.indexOf(`
204
- `)+1||r.length),a=oH(s);for(let c of n)a.delete(c);return{name:cM(i.key,UC([i])),key:i.key,runs:a,words:w0(s).map(c=>c.word)}})}o(lH,"requirementTexts");var PYe=kf/2;var pme=o(e=>e.criteria.size?`${e.text.name} ${[...e.criteria].sort((t,n)=>t-n).map(t=>`AC${t}`).join(", ")}`:e.text.name,"copyName");function fme(e,t){if(t.length===0)return[];let n=w0(e),i=[];for(let r=0;r+kf<=n.length;r++){let s=uH(n,r),a=t.find(f=>f.runs.has(s));if(!a)continue;let c=n[r].start,u=n[r+kf-1].end,l=a.criteria?.get(s)??[],p=i.at(-1);if(p&&c<=p.end){if(p.end=Math.max(p.end,u),p.text===a)for(let f of l)p.criteria.add(f)}else i.push({start:c,end:u,text:a,criteria:new Set(l)})}return i.map(r=>({start:r.start,end:r.end,name:pme(r)}))}o(fme,"copies");function lE(e,t){let n=e;for(let i of fme(e,t).reverse())n=`${n.slice(0,i.start)}(see ${i.name})${n.slice(i.end)}`;return n}o(lE,"withoutRequirementText");function Ame(e,t,n){for(let i=t+1;i<e.length;i++){let r=e[i];if(r==="\\")i++;else{if(r===n)return i+1;if(r===`
203
+ `).some(a=>a.trim().toLowerCase()===`${Ns} <${ra}>`.toLowerCase())&&(r=aE(r,{name:Ns,email:ra})),e(["-c",`user.name=${Ns}`,"-c",`user.email=${ra}`,"commit","--amend","--allow-empty","-m",r])}o(iH,"amendDeliveryBase");var uE=me(require("fs")),Cn=me(require("path"));var IYe=5*1024*1024;function cme(e){try{return uE.lstatSync(e),!0}catch{return!1}}o(cme,"lexists");function sH(e){let t=Le(e,"adapt.json"),n=Le(e,"finalize.json"),i=Le(e,yf),r=new Map,s=o(m=>{let E=Yc(e.inputs,m);if("error"in E)return;let I=r.get(E.source.path)??{source:E.source,paths:new Set};return r.set(E.source.path,I),{repo:I.source.path,paths:I.paths}},"pathsOf"),a=o((m,E)=>Cn.relative(m,Cn.resolve(m,E.trim())).replace(/\/+$/,""),"norm"),c=o((m,E)=>{let I=E?.trim()&&s(m);if(!I)return;let b=a(I.repo,E);I.paths.add(b);for(let v of["__init__.py","conftest.py"]){let R=Cn.join(Cn.dirname(b),v);uE.existsSync(Cn.join(I.repo,R))&&I.paths.add(R)}},"addTest"),u=o((m,E)=>{if(typeof E!="string"||!E.trim())return;let I=s(m);if(!I)return;let b=a(I.repo,E);if(lf(Cn.join(I.repo,b)))return I.paths.add(b),{...I,rel:b}},"addEdited"),l=d0(e),p=(t?.items??[]).filter(m=>m.action==="place"&&l.has(m.from??m.file??"")),f=o((m,E)=>p.some(I=>I.repository===m&&I.file&&Cn.normalize(I.file)===E),"heldIn"),g=(t?.items??[]).filter(m=>!p.includes(m));for(let m of[...g,...i?.tests??[],...i?.maintained??[]])c(m.repository,m.file);for(let m of n?.dependencies?.added??[]){let E=u(m.repository,m.manifest);if(E)for(let I of O$(E.repo,Vy(E.repo,E.rel)))E.paths.add(I)}for(let m of n?.lint??[])for(let E of m.fixed??[])u(m.repository,E);for(let m of n?.support??[])u(m.repository,m.file);let h=Le(e,zy)?.packages??[];for(let m of new Set(h.map(E=>E.repository))){let E=s(m),I=h.filter(b=>b.repository===m).map(b=>b.dir);if(E)for(let{path:b}of n0(E.repo)){let v=a(E.repo,b),R=Cn.join(E.repo,v);qy(v,I)&&!L$(v)&&!f(m,v)&&(!cme(R)||lf(R))&&E.paths.add(v)}}return new Map([...r.values()].map(({source:m,paths:E})=>[m,[...E].filter(I=>I&&I!==".."&&!I.startsWith(`..${Cn.sep}`)&&!Hp(I))]))}o(sH,"deliverAllowlist");var aH=me(require("fs"));var cH=2*1024*1024;function ume(e){let t=[];for(let n of e??[])if(n.state==="read")try{t.push({item:n,text:aH.readFileSync(Ej(n),"utf-8")})}catch{}return t}o(ume,"readItemTexts");var kf=6,lme=/[\p{L}\p{N}]+/gu,dme=new RegExp("(?<=\\p{Ll})(?=\\p{Lu})|(?<=\\p{Lu})(?=\\p{Lu}\\p{Ll})","u");function w0(e){let t=[];for(let n of e.matchAll(lme)){let i=n.index;for(let r of n[0].split(dme))t.push({word:r.toLowerCase(),start:i,end:i+r.length}),i+=r.length}return t}o(w0,"wordsOf");var uH=o((e,t)=>e.slice(t,t+kf).map(n=>n.word).join(" "),"runAt");function oH(e){let t=w0(e),n=new Set;for(let i=0;i+kf<=t.length;i++)n.add(uH(t,i));return n}o(oH,"runsOf");function lH(e,t=[]){let n=new Set(t.flatMap(i=>[...oH(i)]));return ume(e).map(({item:i,text:r})=>{let s=i.source==="other"?r:r.slice(r.indexOf(`
204
+ `)+1||r.length),a=oH(s);for(let c of n)a.delete(c);return{name:cM(i.key,UC([i])),key:i.key,runs:a,words:w0(s).map(c=>c.word)}})}o(lH,"requirementTexts");var FYe=kf/2;var pme=o(e=>e.criteria.size?`${e.text.name} ${[...e.criteria].sort((t,n)=>t-n).map(t=>`AC${t}`).join(", ")}`:e.text.name,"copyName");function fme(e,t){if(t.length===0)return[];let n=w0(e),i=[];for(let r=0;r+kf<=n.length;r++){let s=uH(n,r),a=t.find(f=>f.runs.has(s));if(!a)continue;let c=n[r].start,u=n[r+kf-1].end,l=a.criteria?.get(s)??[],p=i.at(-1);if(p&&c<=p.end){if(p.end=Math.max(p.end,u),p.text===a)for(let f of l)p.criteria.add(f)}else i.push({start:c,end:u,text:a,criteria:new Set(l)})}return i.map(r=>({start:r.start,end:r.end,name:pme(r)}))}o(fme,"copies");function lE(e,t){let n=e;for(let i of fme(e,t).reverse())n=`${n.slice(0,i.start)}(see ${i.name})${n.slice(i.end)}`;return n}o(lE,"withoutRequirementText");function Ame(e,t,n){for(let i=t+1;i<e.length;i++){let r=e[i];if(r==="\\")i++;else{if(r===n)return i+1;if(r===`
205
205
  `&&n!=="`")return i}}return e.length}o(Ame,"stringEnd");function gme(e,t){let n=e.lastIndexOf(`
206
206
  `,t-1)+1;if(e.slice(n,t).trim()!=="")return!1;let i=e.slice(0,n).trimEnd();return i===""||i.endsWith(":")}o(gme,"isDocstring");function hme(e){let t=[],n=o(r=>(e.indexOf(`
207
207
  `,r)+1||e.length+1)-1,"lineEnd"),i=0;for(;i<e.length;){let r=e[i],s=e[i+1],a=i+1;if(r==="/"&&s==="*")a=e.indexOf("*/",i+2)<0?e.length:e.indexOf("*/",i+2)+2,t.push({start:i,end:a});else if(r==="/"&&s==="/"&&!/[:\w]/.test(e[i-1]??"")||r==="#"&&/^\s?$/.test(e[i-1]??"")&&!/[!{[]/.test(s??""))a=n(i),t.push({start:i,end:a});else if((r==='"'||r==="'")&&e.startsWith(r.repeat(3),i)){let c=e.indexOf(r.repeat(3),i+3);a=c<0?e.length:c+3,gme(e,i)&&t.push({start:i,end:a})}else(r==='"'||r==="'"||r==="`")&&(a=Ame(e,i,r));i=a}return t}o(hme,"commentRanges");var mme=/\b(?:test|it|describe|context|suite|scenario|specify|Run|DisplayName)(?:\.\w+)*(?:\.each\s*(?:\((?:[^()]|\([^()]*\))*\)|`[^`]*`))?\s*\(\s*("(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|`(?:[^`\\]|\\.)*`)/g;function yme(e,t){return[...e.matchAll(mme)].flatMap(n=>{if(t.some(r=>n.index>=r.start&&n.index<r.end))return[];let i=n.index+n[0].length;return[{start:i-n[1].length,end:i}]})}o(yme,"titleRanges");function dH(e,t){if(t.length===0)return{content:e,cleaned:!1};let n=hme(e),i=[];for(let c of n){let u=e.slice(c.start,c.end),l=lE(u,t);l!==u&&i.push({...c,text:l})}let r=yme(e,n),s=new Set(r.map(c=>e.slice(c.start+1,c.end-1)));for(let c of r){let u=e[c.start],l=e.slice(c.start+1,c.end-1),p=lE(l,t);if(p===l)continue;let f=p;for(let g=2;s.has(f);g++)f=`${p} (${g})`;s.add(f),i.push({...c,text:`${u}${f}${u}`})}let a=e;for(let c of i.sort((u,l)=>l.start-u.start))a=`${a.slice(0,c.start)}${c.text}${a.slice(c.end)}`;return{content:a,cleaned:a!==e}}o(dH,"withoutRequirementTextInTestFile");function Ime(e){if(!e.inputs.deliver)return{ok:!1,reasons:["deliver not requested (pass --deliver to push)"]};if(!e.platform?.supportsRemote)return{ok:!1,reasons:["deliver needs a remote platform driver (pass --runner-platform github)"]};let t=Le(e,"finalize.json");return t?t.ready!==!0?{ok:!1,reasons:[`finalize reported ready:false \u2014 not pushing (blockers: ${Pd(t)||"unspecified"})`]}:{ok:!0,reasons:[]}:{ok:!1,reasons:["finalize.json not found \u2014 refusing to push unverified tests"]}}o(Ime,"validateDeliverInput");function gH(e){return e.replace(/[^A-Za-z0-9._-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60)||"tests"}o(gH,"slug");var bme="skyramp-testbot/";function vme(e,t){return t||`${bme}${gH(e)}-tests`}o(vme,"testsBranchName");function Cme(e,t,n,i){let r=(e??[]).filter(a=>a.repository.toLowerCase()===t.toLowerCase());if(!r.length&&i){let a=i.repository,c=[i.targetId,a.provider,a.providerAccountId,a.providerRepositoryId,i.number,t.toLowerCase(),n];return(0,Bf.createHash)("sha256").update(JSON.stringify(c)).digest("hex").slice(0,32)}let s=r.length?[...new Set(r.map(a=>`${a.repository.toLowerCase()}#${a.number}`))].sort():[`branch ${n}`];return(0,Bf.createHash)("sha256").update(s.join(`
@@ -212,8 +212,8 @@ ${Hu}: ${t}`:i;e(["log","-1","--format=%(trailers:key=Signed-off-by,valueonly)"]
212
212
  `).trim(),i=HL(n);return i?{prFailure:"hook",prDetail:`${i}
213
213
  ${n}`}:{prFailure:"unknown",prDetail:t}}o(Dme,"thrownFailure");async function _me(e,t,n,i,r,s){let a=i.slug,c=i.path,u=Le(e,"finalize.json"),l=lH(e.inputs.requirementItems),p=KJ(c),f=Le(e,"write.json"),g=f?.commit?.message||Le(e,"generate-unit.json")?.commitMessage,h=i.working,m=o(yt=>yt.split(`
214
214
  `)[0],"subjectOf"),E=o(yt=>lE(rH(b0(yt)),l),"publicText"),I=o((yt,Kt)=>h&&!!Kt&&E(yt).trim()===E(Kt).trim(),"authored"),b=o((yt,Kt,cr)=>{let ct=E(yt);return cr&&tH(ct,Kt)?ct:nH(ct,Kt,r)},"conform"),v=[u?.commit?.message,n.commitMessage].find(yt=>yt&&E(yt).trim())||"Skyramp Testbot: add tests",R=b(v,{commitlint:p.commitlint},I(v,g)),$=jJ(e.outputsDir)??n,C=h?u?.pr?.title||n.prTitle||f?.commit?.prTitle:void 0,D=C||v,B=h?$.prTitle:void 0,K=m(E(D))===m(E(v)),ae=(!h||!n.prTitle)&&K?$.commitMessage:void 0,Z=B||ae||D,Ee=f?.commit?.prTitle||(g?m(g):void 0),De=I(D,Ee),Ve=p.prTitle?{prTitle:p.prTitle}:De&&C&&!K?{}:{commitlint:p.commitlint},xe=m(b(Z,Ve,De)),W={name:Ns,email:ra},M=!!p.signOff;if(!M&&t?.listCommitChecks){let yt=s?.headSha??Zt(c,["rev-parse","HEAD"]);try{M=(await t.listCommitChecks({repository:a,revision:yt}))?.records.some(cr=>cr.name.trim().toLowerCase()==="dco"&&cr.headSha===yt&&(!cr.repository||cr.repository.toLowerCase()===a.toLowerCase()))??!1}catch{console.warn(`[deliver] could not read commit checks for ${a}`)}}let Je=e.inputs.deliverRemote||"origin",We=pH(c,hH),cn=pH(c,mH);if(We&&!cn)throw new Error(`${a}: the checkout records a merged base but not what it merged`);let Rt=We?S0(void 0,void 0,c):s?s.headBranch||S0(e.inputs.headBranch,e.inputs.baseBranch,c):S0(void 0,void 0,c),Gn=e.inputs.pullRequests;s?.prNumber!=null&&!Gn?.some(yt=>yt.repository.toLowerCase()===a.toLowerCase())&&(Gn=[...Gn??[],{repository:a,number:String(s.prNumber)}]);let Qr=Gn?.some(yt=>yt.repository.toLowerCase()===a.toLowerCase())?void 0:e.inputs.deliveryOrigin,Hr=We||!Qr?cn:void 0,rs=e.inputs.scheduledDelivery,Ut=rs?(0,Bf.createHash)("sha256").update(JSON.stringify([rs,a.toLowerCase(),Rt])).digest("hex"):Hr?wme(a,Rt,Hr):Cme(Gn,a,Rt,Qr),Yr=vme(Rt,e.inputs.deliverBranch)+(rs?`-scheduled-${Ut}`:Hr?`-merge-${Ut}`:Qr?`-source-${Qr.number}-${Ut}`:"");return{texts:l,shown:$,title:xe,unsigned:R,bot:W,signOff:M,remote:Je,base:Rt,owner:Ut,testsBranch:Yr,origin:Qr,mergedBase:We}}o(_me,"planCommit");function Nme(e,t,n,i,r){let s=Zt(e,["interpret-trailers","--trailer",`${cE}: ${t.owner}`,"--trailer",`${Hu}: ${n}`,"--trailer",`${v0}: ${i}`,...r?["--trailer",`${C0}: ${r}`]:[]],`${t.unsigned}
215
- `);return t.signOff?aE(s,t.bot):s}o(Nme,"trailedMessage");async function Pme(e,t,n,i,r,s){let a=mJ(i.path,e.runDir),c=process.env.PATH;a.dir&&(process.env.PATH=yJ(a).PATH);try{return await Ume(e,t,n,i,r,s)}finally{a.dir&&(process.env.PATH=c),a.cleanup()}}o(Pme,"deliverOne");async function Ume(e,t,n,i,r,s){let a=i.slug,c,u=!1,l;try{let p=i.path,f=await _me(e,t,n,i,r,s),{texts:g,shown:h,title:m,bot:E,remote:I,base:b,owner:v,testsBranch:R,origin:$,mergedBase:C}=f,D=b0(GJ(MJ(kme(h,e,i),{audience:"testbot-pr",runUrl:e.inputs.skyrampRunUrl,requestedBy:e.inputs.requestedBy,sourcePullRequest:$&&`${$.repository.namespace}/${$.repository.name}#${$.number}`}),e.inputs.skyrampRunUrl))+`
216
- `,B=s?"pr-body.md":`pr-body-${gH(a)}.md`,K=oo.join(e.outputsDir,B);qr.writeFileSync(K,D);let ae=Zt(p,["rev-parse","HEAD"]),Z=C??ae;Zt(p,["checkout","-B",R]),c=R,Zt(p,["reset"]);for(let M of r)Sme(oo.join(p,M),g);let Ee=[];for(let M of r)try{Zt(p,["--literal-pathspecs","add","--",M])}catch{Ee.push(M)}try{Zt(p,["diff","--cached","--quiet"])}catch{try{let M=Nme(p,f,ae,Z,e.inputs.skyrampRunUrl);Zt(p,["-c",`user.name=${E.name}`,"-c",`user.email=${E.email}`,"commit","-m",M])}catch(M){throw new dE(M)}u=!0}l=Zt(p,["rev-parse","HEAD"]);let De,Ve=C??s?.headSha;if(u&&Ve&&Ve!==ae){let M=!1;try{Zt(p,["checkout","-q","-B",c,Ve]),M=!0,Zt(p,["-c",`user.name=${E.name}`,"-c",`user.email=${E.email}`,"cherry-pick","--keep-redundant-commits",l]),M=!1,iH(Je=>Zt(p,Je),Ve),l=Zt(p,["rev-parse","HEAD"])}catch(Je){try{Zt(p,["cherry-pick","--abort"])}catch{}Zt(p,["checkout","-q","-B",c,l]);let We=Ad(Uo(Je),1/0);if(C&&!M)throw Je;if(C)return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:I,base:b,committed:u,commitSha:l,pushed:!1,prAction:"skipped",prTitle:m,unstaged:Ee,reason:`the tests do not apply to ${b} at ${C.slice(0,12)} without the merged revisions (${We}), so no tests PR was opened`}};De=`tests committed on the checkout's merge commit (re-cut onto ${Ve.slice(0,12)} failed: ${We})`}}let xe=s?{}:{repositoryPath:p,repoSlug:a,devPr:null};if(!u){let M=await t.markTestsPrUnchanged({branch:c,...xe});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:I,base:b,committed:!1,commitSha:l,pushed:!1,prAction:M.action==="unchanged"?"unchanged":"skipped",prUrl:M.url,prTitle:m,unstaged:Ee,reason:M.action==="unchanged"?"no test changes to commit \u2014 existing tests PR annotated as unchanged":"no test changes to commit \u2014 nothing pushed, no PR opened"}}}let W=await t.publishTestsPr({repositoryPath:p,...xe,remote:I,branch:c,base:b,commitSha:l,title:m,bodyFile:K,mode:e.inputs.deliverMode,deliveryOwner:v,...e.inputs.firstQualification?{firstQualification:!0}:{},runUrl:e.inputs.skyrampRunUrl,signal:e.signal,deadlineMs:e.deadlineMs});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:I,base:W.base,requestedBase:b,committed:u,commitSha:l,pushed:W.pushed,...W.pushedCommits?{pushedCommits:W.pushedCommits}:{},...W.deliveredCommit?{deliveredCommit:W.deliveredCommit}:{},prAction:W.action,...W.retargetedAs?{retargetedAs:W.retargetedAs}:{},prUrl:W.url,prTitle:m,...W.failure?{prFailure:W.failure,prDetail:W.detail}:{},...De?{cutNote:De}:{},...W.action==="skipped"&&W.detail?{reason:W.detail}:{},unstaged:Ee}}}catch(p){return{thrown:!0,record:{schemaVersion:1,repository:a,branch:c,committed:u,commitSha:l,pushed:!1,prAction:"failed",...Dme(p),unstaged:[]}}}}o(Ume,"deliverRepository");var sWe={name:"deliver",timeoutMinutes:5,execute:Qme,validateInput:o(e=>{let t=a0(e);return t?{ok:!1,reasons:[t]}:Ime(e)},"validateInput"),requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var Fme=10*6e4;function Ome(e,t){return e.getTime()-t.getTime()-Fme}o(Ome,"remainingBudgetMs");var yH="This attempt revoked its scoped GitHub credentials; it mints no more.";var Lme=10*6e4;var Mme=o(e=>!!e&&Object.keys(e).length===1&&e.contents==="read","onlyReads"),jme=3e4,Gme=3,EH=30,Jr=class extends Error{constructor(n,i,r,s){super(n);this.status=i;this.code=r;this.path=s}status;code;path;static{o(this,"AppRefusal")}},ki=class extends Error{static{o(this,"AppUnreachable")}},Yu=class extends ki{static{o(this,"AppNotReady")}},k0=class extends Yu{static{o(this,"RunnerProviderNotReady")}};function B0(e){let t;try{t=new URL(e)}catch{throw new Error(`skyrampAppOrigin "${e}" is not a URL`)}if(t.protocol!=="https:"||t.origin!==e.replace(/\/+$/,""))throw new Error(`skyrampAppOrigin must be an https origin, got "${e}"`);return t.origin}o(B0,"appOrigin");function bH(e,t){if(!Jc.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}o(bH,"routeId");function vH(e,t,n,i){throw t<500&&t!==429?new Jr(e,t,n,i):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new k0(e):t===503&&n==="RUN_NOT_READY"?new Yu(e):new ki(e)}o(vH,"refusedOrUnreachable");async function CH(e,t,n,i,r,s=1/0){let a=B0(e.origin),c=`The time limit for ${t} ${n} was reached`,u,l=0;for(let p=1;p<=Gme||u instanceof Yu;p+=1){if(u instanceof Yu){if(l===EH)throw u;l+=1,p-=1,e.log?.(`${u.message}; trying again (${l} of ${EH}).`),await new Promise(f=>setTimeout(f,Math.max(0,Math.min(e.readyWaitMs??1e4,s-Date.now()))))}else p>1&&await new Promise(f=>setTimeout(f,Math.max(0,Math.min((e.retryDelayMs??2e3)*(p-1),s-Date.now()))));if(Date.now()>=s)throw new ki(c);try{let f,g=await(Number.isFinite(s)?Promise.race([e.idToken(a),new Promise((m,E)=>{f=setTimeout(()=>E(new ki(c)),Math.max(1,s-Date.now()))})]).finally(()=>{f&&clearTimeout(f)}):e.idToken(a));if(Date.now()>=s)throw new ki(c);let h=await(e.fetch??fetch)(new URL(n,a).toString(),{...i(g),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(jme,s-Date.now())))}).catch(m=>{throw new ki(m instanceof Error?m.message:String(m),{cause:m})});return await r(h)}catch(f){if(f instanceof Jr||Date.now()>=s)throw f;u=f}}throw u}o(CH,"callWithRetries");function wH(e,t,n,i,r){let s=i.headers.get("cf-ray");e.log?.(`Testbot V3: ${t} ${n} answered ${i.status}${s?`, cf-ray ${s}`:""}: ${r.replace(/\s+/g," ").slice(0,200)}`)}o(wH,"logRefusal");function pE(e,t,n,i,r){let s=t==="GET"?void 0:JSON.stringify(i),a=t==="PUT"&&/^\/api\/v1\/runner\/attempts\/[^/]+\/report$/.test(n)&&s!==void 0&&Buffer.byteLength(s,"utf8")>hh;if(a&&Buffer.byteLength(s,"utf8")>JM)throw new Error("The report exceeds the app's 16 MiB expanded report limit");let c=a?new Uint8Array((0,IH.gzipSync)(s)):s;if(a&&c.length>hh)throw new Error("The compressed report exceeds the app's 1 MiB report upload limit");return CH(e,t,n,o(l=>({method:t,headers:{Authorization:`Bearer ${l}`,"Content-Type":"application/json",Accept:"application/json",...a?{"Content-Encoding":"gzip"}:{}},body:c}),"request"),async l=>{let p=await l.text().catch(()=>""),f={};try{f=JSON.parse(p)}catch{}if(l.ok)return f.data;wH(e,t,n,l,p);let g=f.error?.fields,h=typeof g?.path=="string"&&typeof g.reason=="string"?` at ${g.path}: ${g.reason}`:"",m=`The Skyramp app refused ${t} ${n}: ${l.status} ${f.error?.code??"no error code"}${h}`;return vH(m,l.status,f.error?.code,typeof g?.path=="string"?g.path:void 0)},r)}o(pE,"callApp");function Vme(e,t,n){return CH(e,"GET",t,o(r=>({method:"GET",headers:{Authorization:`Bearer ${r}`,Accept:"application/octet-stream"}}),"request"),async r=>{if(!r.ok)return wH(e,"GET",t,r,await r.text().catch(()=>"")),vH(`The Skyramp app refused GET ${t}: ${r.status}`,r.status);let s=Buffer.from(await r.arrayBuffer());if(s.length>n)throw new Jr(`The Skyramp app answered GET ${t} with more than ${n} bytes`,r.status);return s})}o(Vme,"callAppBytes");var Rf=class{constructor(t,n,i,r,s,a,c,u,l,p=[],f=[],g){this.attemptId=t;this.attemptNumber=n;this.deadlineAt=i;this.manifest=r;this.deps=s;this.license=a;this.requestedBy=c;this.writeAllowed=u;this.claudeCodeVersion=l;this.deployedPins=p;this.statedPins=f;this.runSettings=g}attemptId;attemptNumber;deadlineAt;manifest;deps;license;requestedBy;writeAllowed;claudeCodeVersion;deployedPins;statedPins;runSettings;static{o(this,"V3Attempt")}budgetMs(t){return Ome(this.deadlineAt,t)}get skyrampRunUrl(){return jM(B0(this.deps.origin),this.manifest.runId)}log(t){this.deps.log?.(t)}send(t,n,i,r){return pE(this.deps,t,n,i,r)}readBytes(t,n){return Vme(this.deps,t,n)}issuedTokens=[];closure;modelKey;modelCredentials=[];credentials={};revocation;token(){return this.cachedToken("run")}readOnlyToken(){return this.cachedToken("read")}async cachedToken(t){if(this.revocation)throw new Error(yH);let n=(this.deps.now??(()=>new Date))().getTime(),i=this.credentials[t],r=i&&await i.catch(()=>{});if(this.credentials[t]!==i)return(await this.credentials[t]).token;if(r&&r.expiresAt-n>=Lme)return r.token;if(this.revocation)throw new Error(yH);let s=t==="read",a=s?{schemaVersion:1,access:t}:{schemaVersion:1},c=s?"read-only":"scoped",u=this.send("POST",`/api/v1/runner/attempts/${this.attemptId}/credentials`,a).then(l=>{let p={...l,token:l.token??this.jobToken()};if(this.issuedTokens.push(p.token),this.deps.mask?.(p.token),p.anthropicApiKey&&this.deps.mask?.(p.anthropicApiKey),s&&l.token&&!Mme(p.permissions))throw new Error(`The Skyramp app was asked for a read-only GitHub token, but its token grants ${JSON.stringify(p.permissions??null)}`);!s&&!r&&p.anthropicApiKey&&(this.modelKey=p.anthropicApiKey),this.deps.onTokenGranted?.(t);let f=r?"Renewed":"Received";return l.token&&this.deps.log?.(`${f} ${c} GitHub credentials; they expire at ${p.expiresAt}.`),{token:p.token,expiresAt:l.token?new Date(p.expiresAt).getTime():Number.POSITIVE_INFINITY}},l=>{if(this.deps.onTokenRefused?.(l,t),!(l instanceof Jr)||l.code!=="CREDENTIALS_UNAVAILABLE")throw l;let p=o(h=>[...new Set(h.map(m=>m.namespace))].join(", "),"unique"),f=this.manifest.sources.map(h=>h.repository);if(new Set(f.map(h=>h.providerAccountId)).size>1)throw new Jr(`${l.message}. The run's repositories are on more than one GitHub account (${p(f)}), which Skyramp does not support yet.`,l.status,l.code);let g=p([...f,this.manifest.execution.repository]);throw new Jr(`${l.message}. Check the Skyramp GitHub App installation on ${g}: it must be installed and not suspended, have access to these repositories, and have accepted the App's current permissions. Each account must also be connected to your Skyramp organization.`,l.status,l.code)});return this.credentials[t]=u,(await u).token}jobToken(){if(this.deps.sourceToken)return this.deps.sourceToken;throw new Error("The app answered the credentials request without a token, and the job gave Testbot none of its own: on Azure Pipelines, set SYSTEM_ACCESSTOKEN to $(System.AccessToken) in the Testbot step's env.")}sourceFetch(t){return t.fetch??this.deps.fetch??fetch}revokeTokens(t={}){let n=t.host??$$();return this.revocation??=n.revokeToken?this.revokeIssued(i=>n.revokeToken(i,this.sourceFetch(t))):Promise.resolve([]),this.revocation}async revokeIssued(t){let n=[...this.issuedTokens],i=Promise.all(n.map(a=>this.revokeOne(a,t)));await Promise.all(Object.values(this.credentials).map(a=>a.catch(()=>{})));let r=this.issuedTokens.filter(a=>!n.includes(a));return[...await i,...await Promise.all(r.map(a=>this.revokeOne(a,t)))].filter(a=>a!==void 0)}async revokeOne(t,n){try{await n(t);return}catch(i){return`token ${this.issuedTokens.indexOf(t)+1} of ${this.issuedTokens.length}: ${i instanceof Error?i.message:String(i)}`}}};async function SH(e,t,n){bH(e,"run id"),B0(n.origin);let i=PC(e,t),r=`/api/v1/runner/runs/${e}/attempts`,s;try{s=await pE(n,"POST",r,i)}catch(l){if(!(l instanceof Jr&&l.status===400&&l.path==="$.statedPins"))throw l;i=PC(e,t,{statedPins:!1}),s=await pE(n,"POST",r,i)}let a=Aj(s);if(a.manifest.runId!==e)throw new Error(`The app answered the handshake of run ${e} with the manifest of another run (${a.manifest.runId})`);let c=a.manifest.sources.find(l=>l.repository.provider!==i.execution.provider);if(c)throw new Error(`The manifest of run ${e} names ${c.repository.namespace}/${c.repository.name} on ${c.repository.provider}, but this job runs on ${i.execution.provider}`);zme(a.manifest,[...a.deployedRevisions??[],...a.statedRevisions??[]]),a.runToken&&n.mask?.(a.runToken);let u=a.runToken?{entitlements:a.entitlements??[],runToken:a.runToken}:void 0;return new Rf(a.attempt.id,a.attempt.number,new Date(a.attempt.deadlineAt),a.manifest,n,u,a.requestedBy??void 0,a.writeAllowed,a.claudeCodeVersion??void 0,a.deployedRevisions??[],a.statedRevisions??[],a.runSettings)}o(SH,"startV3Attempt");function zme(e,t){if(t.length===0)return;if(!ej(e))throw new Error(`The app pinned an attempt of a ${e.trigger.kind} run; only a scheduled run or unchosen manual run's retry is pinned to an earlier attempt's read`);let n=new Set(e.sources.map(r=>mi(r.repository))),i=new Set;for(let r of t){let s=mi(r.repository);if(!n.has(s))throw new Error(`The app pinned the attempt to repository ${r.repository.providerRepositoryId}, which is not a source of the run`);if(i.has(s))throw new Error(`The app pinned repository ${r.repository.providerRepositoryId} twice`);i.add(s)}}o(zme,"checkAttemptPins");async function R0(e,t){return lj.parse(await e.send("POST",`/api/v1/runner/attempts/${e.attemptId}/heartbeat`,{schemaVersion:1},t))}o(R0,"heartbeatV3Attempt");async function kH(e,t=()=>new Date,n){if(e.closure)return e.closure;let i=await R0(e,n).then(r=>dj(r,t())).catch(()=>null);return i&&(e.closure=i),i}o(kH,"closedV3Attempt");var KWe=10*6e4;var XWe=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var e4e=d.object({tests:d.object({placements:d.array(d.unknown()).optional()}).passthrough().optional()}).passthrough(),t4e=d.object({repository:$C,testType:d.string(),directory:d.string()}).passthrough();var n4e=d.object({report:d.object({language:d.string()}).passthrough()}).passthrough();var r4e=d.object({environment:d.object({components:d.array(d.unknown()).optional(),dependencies:d.array(d.unknown()).optional()}).passthrough()}).passthrough(),i4e=d.object({environment:d.object({offLimits:d.unknown().optional()}).passthrough()}).passthrough();var s4e=d.object({environment:d.object({allowedEgress:d.unknown().optional()}).passthrough()}).passthrough();var o4e=d.object({name:d.string().min(1),provision:d.literal("existing"),url:d.string().min(1),repository:$C.optional(),revisionUrl:d.string().min(1).optional()}).passthrough(),a4e=d.object({name:d.string().min(1),url:d.string().nullable(),versionUrl:d.string().nullable(),notes:d.string().nullable()}).passthrough();var c4e=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);function BH(e){let t=o(n=>e.testResults.filter(i=>i.status===n).length,"count");return{passed:t("Pass"),failed:t("Fail"),skipped:t("Skipped")}}o(BH,"statusCounts");function qme(e){let{passed:t,failed:n,skipped:i}=BH(e);return t+n===0?{sufficiency:"insufficient",rationale:i>0?`Every test was skipped (${i}), so nothing was validated.`:"No test ran, so nothing was validated.",gaps:["No test ran against the frozen sources."],acceptedEvidence:[],actionRequired:[]}:{sufficiency:"sufficient",rationale:`${t+n} tests ran against the frozen sources: ${t} passed, ${n} failed${i?`, ${i} skipped`:""}.`,gaps:[],acceptedEvidence:[],actionRequired:[]}}o(qme,"executedTestsValidation");function Jme(e,t){let n=e.map(c=>({result:c,repository:c.repository??t,path:c.fileName||c.testType})),i=new Map;for(let c of n){let u=`${c.repository}:${c.result.testType}:${c.path}`;i.set(u,(i.get(u)??0)+1)}let r=n.map(({result:c,repository:u,path:l})=>{let p=(i.get(`${u}:${c.testType}:${l}`)??0)>1;return c.resultId??DC(u,c.testType,l,p&&c.endpoint||void 0)}),s=new Map;for(let c of r)s.set(c,(s.get(c)??0)+1);let a=new Set(r.filter(c=>s.get(c)===1));return n.map(({result:c,repository:u},l)=>{let p=r[l],f=p;if(s.get(p)>1&&a.has(p))for(let g=2;a.has(f)||f===p;g+=1)f=p.includes("#")?`${p}.${g}`:`${p}#${g}`;return a.add(f),{...c,repository:u,resultId:f}})}o(Jme,"withResultIds");function Hme({notTranslated:e,...t},n){let i=Jme(t.testResults,n);return{...t,testResults:i,...Yme(t,i,n),validation:Kme(Xme(t,Wme(t,t.validation??qme(t)))),traceVersion:1}}o(Hme,"v3Report");function Yme(e,t,n){if(!e.testExecutionContexts)return{};let i=new Set,r=o(c=>{let u=c;for(let l=2;i.has(u);l+=1)u=`${c}#${l}`;return i.add(u),u},"unique"),s=[],a=new Map;for(let{repository:c,...u}of e.testExecutionContexts){let l=u.status==="not_run"?[]:t.filter(p=>p.fileName===u.test&&p.repository===(c?.trim()||n));l.length||s.push(u);for(let{resultId:p}of l){let f=a.get(p),g=f!==void 0&&s[f].cleanup.status==="failed"?s[f].cleanup:u.cleanup,h={...u,cleanup:g,test:p,resultId:p};f===void 0?a.set(p,s.push(h)-1):s[f]=h}}for(let c of s)c.resultId&&i.add(c.resultId);return{testExecutionContexts:s.map(c=>c.resultId?c:{...c,test:r(c.test.slice(0,512))}).slice(0,5e3)}}o(Yme,"linkedContexts");function Wme(e,t){let{passed:n,failed:i}=BH(e);return t.sufficiency!=="sufficient"||n+i>0||t.acceptedEvidence.length>0?t:{...t,sufficiency:"insufficient",gaps:["No test ran and no existing evidence was accepted, so nothing was validated."]}}o(Wme,"withEvidence");var Zme={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};function Kme(e){return{...e,gaps:qp(e.gaps)}}o(Kme,"boundedGaps");function Xme(e,t){if(t.sufficiency==="sufficient")return t;let n=(e.caveats??[]).map(r=>Zme[r.kind]).filter(r=>r!==void 0),i=[...new Set(n)].filter(r=>!t.actionRequired.includes(r));return i.length?{...t,actionRequired:[...i,...t.actionRequired]}:t}o(Xme,"withModelProviderFailure");function eye(e,t,n){let{language:i,report:r}=t;if(i==="en")return;let s={language:i,businessCaseAnalysis:r.businessCaseAnalysis},a=o((m,E,I)=>Array.isArray(m)&&Array.isArray(E)&&m.length===E.length?m.map(b=>({[I]:b[I]})):void 0,"rows"),c=e.validation;r.validation&&c&&c.rationale===n.validation.rationale&&JSON.stringify(qp(c.gaps))===JSON.stringify(n.validation.gaps)&&qp(r.validation.gaps).length===n.validation.gaps.length&&(s.validation={rationale:r.validation.rationale,gaps:qp(r.validation.gaps)});let u=new Set((n.changes??[]).map(m=>m.id)),l=(r.changes??[]).filter(m=>u.has(m.id)).map(({id:m,text:E})=>({id:m,text:E}));l.length&&(s.changes=l);let p=a(r.issuesFound,n.issuesFound,"description");p&&(s.issuesFound=p);let f=a(r.newTestsCreated,n.newTestsCreated,"description");f&&(s.newTestsCreated=f);let g=a(r.testResults,n.testResults,"details");g&&(s.testResults=g);let h=a(r.caveats,n.caveats,"text");return h&&(s.caveats=h),s}o(eye,"v3Display");async function RH(e,t){let n=GL([...e.issuedTokens,...t.secrets??[]]),i={...Hme(t.report,t.workingSlug),...t.notTranslated?{notTranslated:t.notTranslated}:{}},r=t.translated&&eye(t.report,t.translated,i),s=o(c=>gj({manifest:e.manifest,attemptNumber:e.attemptNumber,checkedOut:t.sources.map(u=>({repository:u.repository,revision:u.revision})),firstQualification:t.firstQualification,generatedTests:_c(t.delivery,n),producer:t.producer,report:_c(c&&r?{...i,display:r}:i,n),githubWrites:t.githubWrites}),"build"),a=s(!0);r&&Buffer.byteLength(JSON.stringify(a),"utf8")>hh&&(a=s(!1)),await e.send("PUT",`/api/v1/runner/attempts/${e.attemptId}/report`,a)}o(RH,"uploadV3Report");async function Q0(e,t,n){if(!d.string().uuid().safeParse(t).success)return{refusal:"no_environment"};let i;try{i=uj.parse(await e.send("GET",PM.persistentDataPolicy.replace(":attemptId",e.attemptId),void 0))}catch{return{refusal:"unavailable"}}try{if(!i.environmentAddress||new URL(i.environmentAddress).href!==new URL(n).href)return{refusal:"changed"}}catch{return{refusal:"changed"}}if(i.environmentId!==t)return{refusal:"changed"};let r=i.persistentDataPolicy;return r?r.environmentId===t?{policy:r}:{refusal:"changed"}:{refusal:"denied"}}o(Q0,"fetchV3PersistentDataPolicy");async function QH(e,t,n){let{environmentId:i,environmentAddress:r}=t;if(!i||!r)return{allowed:!1,refusal:"no_environment"};let s=t.persistentDataPolicy;if(!s?.allowed||s.environmentId!==i)return{allowed:!1,refusal:"no_recorded_grant"};let a=await Q0(e,i,r);return"refusal"in a?{allowed:!1,refusal:a.refusal}:a.policy.allowed?a.policy.revision!==s.revision?{allowed:!1,refusal:"changed"}:yM(t,a.policy,n)?{allowed:!0}:{allowed:!1,refusal:"out_of_scope"}:{allowed:!1,refusal:"denied"}}o(QH,"currentV3PersistenceDecision");async function xH(e,t){return bH(e.attemptId,"attempt id"),pE(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,hj({reportUploaded:e.reportUploaded,recipeUploaded:e.recipeUploaded,revisionsUploaded:e.revisionsUploaded,cancelled:e.cause==="cancelled",timedOut:e.cause==="timed_out",setupFailed:e.cause==="setup_failed",checkoutFailed:e.cause==="checkout_failed"||e.cause==="merge_conflict"&&!e.conflict,mergeConflict:e.cause==="merge_conflict"?e.conflict:void 0,environmentUnverified:e.cause==="environment_unverified",runnerProviderNotReady:e.cause==="runner_provider_not_ready",credentialMissing:e.cause==="credential_missing",modelProviderDenied:e.cause==="model_provider_denied",modelProviderUnavailable:e.cause==="model_provider_unavailable"}))}o(xH,"endV3Attempt");0&&(module.exports={AppRefusal,AppUnreachable,AttemptEndReason,DeliveryStatus,GitHubWriteKind,NoReportCause,SourceProvider,TARGET_ENVIRONMENT_KEYS,V3Attempt,ValidationSufficiency,closedV3Attempt,currentV3PersistenceDecision,endV3Attempt,fetchV3PersistentDataPolicy,heartbeatV3Attempt,startV3Attempt,uploadV3Report});
215
+ `);return t.signOff?aE(s,t.bot):s}o(Nme,"trailedMessage");async function Pme(e,t,n,i,r,s){let a=yJ(i.path,e.runDir),c=process.env.PATH;a.dir&&(process.env.PATH=EJ(a).PATH);try{return await Ume(e,t,n,i,r,s)}finally{a.dir&&(process.env.PATH=c),a.cleanup()}}o(Pme,"deliverOne");async function Ume(e,t,n,i,r,s){let a=i.slug,c,u=!1,l;try{let p=i.path,f=await _me(e,t,n,i,r,s),{texts:g,shown:h,title:m,bot:E,remote:I,base:b,owner:v,testsBranch:R,origin:$,mergedBase:C}=f,D=b0(GJ(MJ(kme(h,e,i),{audience:"testbot-pr",runUrl:e.inputs.skyrampRunUrl,requestedBy:e.inputs.requestedBy,sourcePullRequest:$&&`${$.repository.namespace}/${$.repository.name}#${$.number}`}),e.inputs.skyrampRunUrl))+`
216
+ `,B=s?"pr-body.md":`pr-body-${gH(a)}.md`,K=oo.join(e.outputsDir,B);qr.writeFileSync(K,D);let ae=Zt(p,["rev-parse","HEAD"]),Z=C??ae;Zt(p,["checkout","-B",R]),c=R,Zt(p,["reset"]);for(let M of r)Sme(oo.join(p,M),g);let Ee=[];for(let M of r)try{Zt(p,["--literal-pathspecs","add","--",M])}catch{Ee.push(M)}try{Zt(p,["diff","--cached","--quiet"])}catch{try{let M=Nme(p,f,ae,Z,e.inputs.skyrampRunUrl);Zt(p,["-c",`user.name=${E.name}`,"-c",`user.email=${E.email}`,"commit","-m",M])}catch(M){throw new dE(M)}u=!0}l=Zt(p,["rev-parse","HEAD"]);let De,Ve=C??s?.headSha;if(u&&Ve&&Ve!==ae){let M=!1;try{Zt(p,["checkout","-q","-B",c,Ve]),M=!0,Zt(p,["-c",`user.name=${E.name}`,"-c",`user.email=${E.email}`,"cherry-pick","--keep-redundant-commits",l]),M=!1,iH(Je=>Zt(p,Je),Ve),l=Zt(p,["rev-parse","HEAD"])}catch(Je){try{Zt(p,["cherry-pick","--abort"])}catch{}Zt(p,["checkout","-q","-B",c,l]);let We=Ad(Uo(Je),1/0);if(C&&!M)throw Je;if(C)return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:I,base:b,committed:u,commitSha:l,pushed:!1,prAction:"skipped",prTitle:m,unstaged:Ee,reason:`the tests do not apply to ${b} at ${C.slice(0,12)} without the merged revisions (${We}), so no tests PR was opened`}};De=`tests committed on the checkout's merge commit (re-cut onto ${Ve.slice(0,12)} failed: ${We})`}}let xe=s?{}:{repositoryPath:p,repoSlug:a,devPr:null};if(!u){let M=await t.markTestsPrUnchanged({branch:c,...xe});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:I,base:b,committed:!1,commitSha:l,pushed:!1,prAction:M.action==="unchanged"?"unchanged":"skipped",prUrl:M.url,prTitle:m,unstaged:Ee,reason:M.action==="unchanged"?"no test changes to commit \u2014 existing tests PR annotated as unchanged":"no test changes to commit \u2014 nothing pushed, no PR opened"}}}let W=await t.publishTestsPr({repositoryPath:p,...xe,remote:I,branch:c,base:b,commitSha:l,title:m,bodyFile:K,mode:e.inputs.deliverMode,deliveryOwner:v,...e.inputs.firstQualification?{firstQualification:!0}:{},runUrl:e.inputs.skyrampRunUrl,signal:e.signal,deadlineMs:e.deadlineMs});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:I,base:W.base,requestedBase:b,committed:u,commitSha:l,pushed:W.pushed,...W.pushedCommits?{pushedCommits:W.pushedCommits}:{},...W.deliveredCommit?{deliveredCommit:W.deliveredCommit}:{},prAction:W.action,...W.retargetedAs?{retargetedAs:W.retargetedAs}:{},prUrl:W.url,prTitle:m,...W.failure?{prFailure:W.failure,prDetail:W.detail}:{},...De?{cutNote:De}:{},...W.action==="skipped"&&W.detail?{reason:W.detail}:{},unstaged:Ee}}}catch(p){return{thrown:!0,record:{schemaVersion:1,repository:a,branch:c,committed:u,commitSha:l,pushed:!1,prAction:"failed",...Dme(p),unstaged:[]}}}}o(Ume,"deliverRepository");var aWe={name:"deliver",timeoutMinutes:5,execute:Qme,validateInput:o(e=>{let t=a0(e);return t?{ok:!1,reasons:[t]}:Ime(e)},"validateInput"),requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var Fme=10*6e4;function Ome(e,t){return e.getTime()-t.getTime()-Fme}o(Ome,"remainingBudgetMs");var yH="This attempt revoked its scoped GitHub credentials; it mints no more.";var Lme=10*6e4;var Mme=o(e=>!!e&&Object.keys(e).length===1&&e.contents==="read","onlyReads"),jme=3e4,Gme=3,EH=30,Jr=class extends Error{constructor(n,i,r,s){super(n);this.status=i;this.code=r;this.path=s}status;code;path;static{o(this,"AppRefusal")}},ki=class extends Error{static{o(this,"AppUnreachable")}},Yu=class extends ki{static{o(this,"AppNotReady")}},k0=class extends Yu{static{o(this,"RunnerProviderNotReady")}};function B0(e){let t;try{t=new URL(e)}catch{throw new Error(`skyrampAppOrigin "${e}" is not a URL`)}if(t.protocol!=="https:"||t.origin!==e.replace(/\/+$/,""))throw new Error(`skyrampAppOrigin must be an https origin, got "${e}"`);return t.origin}o(B0,"appOrigin");function bH(e,t){if(!Jc.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}o(bH,"routeId");function vH(e,t,n,i){throw t<500&&t!==429?new Jr(e,t,n,i):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new k0(e):t===503&&n==="RUN_NOT_READY"?new Yu(e):new ki(e)}o(vH,"refusedOrUnreachable");async function CH(e,t,n,i,r,s=1/0){let a=B0(e.origin),c=`The time limit for ${t} ${n} was reached`,u,l=0;for(let p=1;p<=Gme||u instanceof Yu;p+=1){if(u instanceof Yu){if(l===EH)throw u;l+=1,p-=1,e.log?.(`${u.message}; trying again (${l} of ${EH}).`),await new Promise(f=>setTimeout(f,Math.max(0,Math.min(e.readyWaitMs??1e4,s-Date.now()))))}else p>1&&await new Promise(f=>setTimeout(f,Math.max(0,Math.min((e.retryDelayMs??2e3)*(p-1),s-Date.now()))));if(Date.now()>=s)throw new ki(c);try{let f,g=await(Number.isFinite(s)?Promise.race([e.idToken(a),new Promise((m,E)=>{f=setTimeout(()=>E(new ki(c)),Math.max(1,s-Date.now()))})]).finally(()=>{f&&clearTimeout(f)}):e.idToken(a));if(Date.now()>=s)throw new ki(c);let h=await(e.fetch??fetch)(new URL(n,a).toString(),{...i(g),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(jme,s-Date.now())))}).catch(m=>{throw new ki(m instanceof Error?m.message:String(m),{cause:m})});return await r(h)}catch(f){if(f instanceof Jr||Date.now()>=s)throw f;u=f}}throw u}o(CH,"callWithRetries");function wH(e,t,n,i,r){let s=i.headers.get("cf-ray");e.log?.(`Testbot V3: ${t} ${n} answered ${i.status}${s?`, cf-ray ${s}`:""}: ${r.replace(/\s+/g," ").slice(0,200)}`)}o(wH,"logRefusal");function pE(e,t,n,i,r){let s=t==="GET"?void 0:JSON.stringify(i),a=t==="PUT"&&/^\/api\/v1\/runner\/attempts\/[^/]+\/report$/.test(n)&&s!==void 0&&Buffer.byteLength(s,"utf8")>hh;if(a&&Buffer.byteLength(s,"utf8")>JM)throw new Error("The report exceeds the app's 16 MiB expanded report limit");let c=a?new Uint8Array((0,IH.gzipSync)(s)):s;if(a&&c.length>hh)throw new Error("The compressed report exceeds the app's 1 MiB report upload limit");return CH(e,t,n,o(l=>({method:t,headers:{Authorization:`Bearer ${l}`,"Content-Type":"application/json",Accept:"application/json",...a?{"Content-Encoding":"gzip"}:{}},body:c}),"request"),async l=>{let p=await l.text().catch(()=>""),f={};try{f=JSON.parse(p)}catch{}if(l.ok)return f.data;wH(e,t,n,l,p);let g=f.error?.fields,h=typeof g?.path=="string"&&typeof g.reason=="string"?` at ${g.path}: ${g.reason}`:"",m=`The Skyramp app refused ${t} ${n}: ${l.status} ${f.error?.code??"no error code"}${h}`;return vH(m,l.status,f.error?.code,typeof g?.path=="string"?g.path:void 0)},r)}o(pE,"callApp");function Vme(e,t,n){return CH(e,"GET",t,o(r=>({method:"GET",headers:{Authorization:`Bearer ${r}`,Accept:"application/octet-stream"}}),"request"),async r=>{if(!r.ok)return wH(e,"GET",t,r,await r.text().catch(()=>"")),vH(`The Skyramp app refused GET ${t}: ${r.status}`,r.status);let s=Buffer.from(await r.arrayBuffer());if(s.length>n)throw new Jr(`The Skyramp app answered GET ${t} with more than ${n} bytes`,r.status);return s})}o(Vme,"callAppBytes");var Rf=class{constructor(t,n,i,r,s,a,c,u,l,p=[],f=[],g){this.attemptId=t;this.attemptNumber=n;this.deadlineAt=i;this.manifest=r;this.deps=s;this.license=a;this.requestedBy=c;this.writeAllowed=u;this.claudeCodeVersion=l;this.deployedPins=p;this.statedPins=f;this.runSettings=g}attemptId;attemptNumber;deadlineAt;manifest;deps;license;requestedBy;writeAllowed;claudeCodeVersion;deployedPins;statedPins;runSettings;static{o(this,"V3Attempt")}budgetMs(t){return Ome(this.deadlineAt,t)}get skyrampRunUrl(){return jM(B0(this.deps.origin),this.manifest.runId)}log(t){this.deps.log?.(t)}send(t,n,i,r){return pE(this.deps,t,n,i,r)}readBytes(t,n){return Vme(this.deps,t,n)}issuedTokens=[];closure;modelKey;modelCredentials=[];credentials={};revocation;token(){return this.cachedToken("run")}readOnlyToken(){return this.cachedToken("read")}async cachedToken(t){if(this.revocation)throw new Error(yH);let n=(this.deps.now??(()=>new Date))().getTime(),i=this.credentials[t],r=i&&await i.catch(()=>{});if(this.credentials[t]!==i)return(await this.credentials[t]).token;if(r&&r.expiresAt-n>=Lme)return r.token;if(this.revocation)throw new Error(yH);let s=t==="read",a=s?{schemaVersion:1,access:t}:{schemaVersion:1},c=s?"read-only":"scoped",u=this.send("POST",`/api/v1/runner/attempts/${this.attemptId}/credentials`,a).then(l=>{let p={...l,token:l.token??this.jobToken()};if(this.issuedTokens.push(p.token),this.deps.mask?.(p.token),p.anthropicApiKey&&this.deps.mask?.(p.anthropicApiKey),s&&l.token&&!Mme(p.permissions))throw new Error(`The Skyramp app was asked for a read-only GitHub token, but its token grants ${JSON.stringify(p.permissions??null)}`);!s&&!r&&p.anthropicApiKey&&(this.modelKey=p.anthropicApiKey),this.deps.onTokenGranted?.(t);let f=r?"Renewed":"Received";return l.token&&this.deps.log?.(`${f} ${c} GitHub credentials; they expire at ${p.expiresAt}.`),{token:p.token,expiresAt:l.token?new Date(p.expiresAt).getTime():Number.POSITIVE_INFINITY}},l=>{if(this.deps.onTokenRefused?.(l,t),!(l instanceof Jr)||l.code!=="CREDENTIALS_UNAVAILABLE")throw l;let p=o(h=>[...new Set(h.map(m=>m.namespace))].join(", "),"unique"),f=this.manifest.sources.map(h=>h.repository);if(new Set(f.map(h=>h.providerAccountId)).size>1)throw new Jr(`${l.message}. The run's repositories are on more than one GitHub account (${p(f)}), which Skyramp does not support yet.`,l.status,l.code);let g=p([...f,this.manifest.execution.repository]);throw new Jr(`${l.message}. Check the Skyramp GitHub App installation on ${g}: it must be installed and not suspended, have access to these repositories, and have accepted the App's current permissions. Each account must also be connected to your Skyramp organization.`,l.status,l.code)});return this.credentials[t]=u,(await u).token}jobToken(){if(this.deps.sourceToken)return this.deps.sourceToken;throw new Error("The app answered the credentials request without a token, and the job gave Testbot none of its own: on Azure Pipelines, set SYSTEM_ACCESSTOKEN to $(System.AccessToken) in the Testbot step's env.")}sourceFetch(t){return t.fetch??this.deps.fetch??fetch}revokeTokens(t={}){let n=t.host??$$();return this.revocation??=n.revokeToken?this.revokeIssued(i=>n.revokeToken(i,this.sourceFetch(t))):Promise.resolve([]),this.revocation}async revokeIssued(t){let n=[...this.issuedTokens],i=Promise.all(n.map(a=>this.revokeOne(a,t)));await Promise.all(Object.values(this.credentials).map(a=>a.catch(()=>{})));let r=this.issuedTokens.filter(a=>!n.includes(a));return[...await i,...await Promise.all(r.map(a=>this.revokeOne(a,t)))].filter(a=>a!==void 0)}async revokeOne(t,n){try{await n(t);return}catch(i){return`token ${this.issuedTokens.indexOf(t)+1} of ${this.issuedTokens.length}: ${i instanceof Error?i.message:String(i)}`}}};async function SH(e,t,n){bH(e,"run id"),B0(n.origin);let i=PC(e,t),r=`/api/v1/runner/runs/${e}/attempts`,s;try{s=await pE(n,"POST",r,i)}catch(l){if(!(l instanceof Jr&&l.status===400&&l.path==="$.statedPins"))throw l;i=PC(e,t,{statedPins:!1}),s=await pE(n,"POST",r,i)}let a=Aj(s);if(a.manifest.runId!==e)throw new Error(`The app answered the handshake of run ${e} with the manifest of another run (${a.manifest.runId})`);let c=a.manifest.sources.find(l=>l.repository.provider!==i.execution.provider);if(c)throw new Error(`The manifest of run ${e} names ${c.repository.namespace}/${c.repository.name} on ${c.repository.provider}, but this job runs on ${i.execution.provider}`);zme(a.manifest,[...a.deployedRevisions??[],...a.statedRevisions??[]]),a.runToken&&n.mask?.(a.runToken);let u=a.runToken?{entitlements:a.entitlements??[],runToken:a.runToken}:void 0;return new Rf(a.attempt.id,a.attempt.number,new Date(a.attempt.deadlineAt),a.manifest,n,u,a.requestedBy??void 0,a.writeAllowed,a.claudeCodeVersion??void 0,a.deployedRevisions??[],a.statedRevisions??[],a.runSettings)}o(SH,"startV3Attempt");function zme(e,t){if(t.length===0)return;if(!ej(e))throw new Error(`The app pinned an attempt of a ${e.trigger.kind} run; only a scheduled run or unchosen manual run's retry is pinned to an earlier attempt's read`);let n=new Set(e.sources.map(r=>mi(r.repository))),i=new Set;for(let r of t){let s=mi(r.repository);if(!n.has(s))throw new Error(`The app pinned the attempt to repository ${r.repository.providerRepositoryId}, which is not a source of the run`);if(i.has(s))throw new Error(`The app pinned repository ${r.repository.providerRepositoryId} twice`);i.add(s)}}o(zme,"checkAttemptPins");async function R0(e,t){return lj.parse(await e.send("POST",`/api/v1/runner/attempts/${e.attemptId}/heartbeat`,{schemaVersion:1},t))}o(R0,"heartbeatV3Attempt");async function kH(e,t=()=>new Date,n){if(e.closure)return e.closure;let i=await R0(e,n).then(r=>dj(r,t())).catch(()=>null);return i&&(e.closure=i),i}o(kH,"closedV3Attempt");var e4e=10*6e4;var t4e=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var n4e=d.object({tests:d.object({placements:d.array(d.unknown()).optional()}).passthrough().optional()}).passthrough(),r4e=d.object({repository:$C,testType:d.string(),directory:d.string()}).passthrough();var i4e=d.object({report:d.object({language:d.string()}).passthrough()}).passthrough();var s4e=d.object({environment:d.object({components:d.array(d.unknown()).optional(),dependencies:d.array(d.unknown()).optional()}).passthrough()}).passthrough(),o4e=d.object({environment:d.object({offLimits:d.unknown().optional()}).passthrough()}).passthrough();var a4e=d.object({environment:d.object({allowedEgress:d.unknown().optional()}).passthrough()}).passthrough();var c4e=d.object({name:d.string().min(1),provision:d.literal("existing"),url:d.string().min(1),repository:$C.optional(),revisionUrl:d.string().min(1).optional()}).passthrough(),u4e=d.object({name:d.string().min(1),url:d.string().nullable(),versionUrl:d.string().nullable(),notes:d.string().nullable()}).passthrough();var l4e=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);function BH(e){let t=o(n=>e.testResults.filter(i=>i.status===n).length,"count");return{passed:t("Pass"),failed:t("Fail"),skipped:t("Skipped")}}o(BH,"statusCounts");function qme(e){let{passed:t,failed:n,skipped:i}=BH(e);return t+n===0?{sufficiency:"insufficient",rationale:i>0?`Every test was skipped (${i}), so nothing was validated.`:"No test ran, so nothing was validated.",gaps:["No test ran against the frozen sources."],acceptedEvidence:[],actionRequired:[]}:{sufficiency:"sufficient",rationale:`${t+n} tests ran against the frozen sources: ${t} passed, ${n} failed${i?`, ${i} skipped`:""}.`,gaps:[],acceptedEvidence:[],actionRequired:[]}}o(qme,"executedTestsValidation");function Jme(e,t){let n=e.map(c=>({result:c,repository:c.repository??t,path:c.fileName||c.testType})),i=new Map;for(let c of n){let u=`${c.repository}:${c.result.testType}:${c.path}`;i.set(u,(i.get(u)??0)+1)}let r=n.map(({result:c,repository:u,path:l})=>{let p=(i.get(`${u}:${c.testType}:${l}`)??0)>1;return c.resultId??DC(u,c.testType,l,p&&c.endpoint||void 0)}),s=new Map;for(let c of r)s.set(c,(s.get(c)??0)+1);let a=new Set(r.filter(c=>s.get(c)===1));return n.map(({result:c,repository:u},l)=>{let p=r[l],f=p;if(s.get(p)>1&&a.has(p))for(let g=2;a.has(f)||f===p;g+=1)f=p.includes("#")?`${p}.${g}`:`${p}#${g}`;return a.add(f),{...c,repository:u,resultId:f}})}o(Jme,"withResultIds");function Hme({notTranslated:e,...t},n){let i=Jme(t.testResults,n);return{...t,testResults:i,...Yme(t,i,n),validation:Kme(Xme(t,Wme(t,t.validation??qme(t)))),traceVersion:1}}o(Hme,"v3Report");function Yme(e,t,n){if(!e.testExecutionContexts)return{};let i=new Set,r=o(c=>{let u=c;for(let l=2;i.has(u);l+=1)u=`${c}#${l}`;return i.add(u),u},"unique"),s=[],a=new Map;for(let{repository:c,...u}of e.testExecutionContexts){let l=u.status==="not_run"?[]:t.filter(p=>p.fileName===u.test&&p.repository===(c?.trim()||n));l.length||s.push(u);for(let{resultId:p}of l){let f=a.get(p),g=f!==void 0&&s[f].cleanup.status==="failed"?s[f].cleanup:u.cleanup,h={...u,cleanup:g,test:p,resultId:p};f===void 0?a.set(p,s.push(h)-1):s[f]=h}}for(let c of s)c.resultId&&i.add(c.resultId);return{testExecutionContexts:s.map(c=>c.resultId?c:{...c,test:r(c.test.slice(0,512))}).slice(0,5e3)}}o(Yme,"linkedContexts");function Wme(e,t){let{passed:n,failed:i}=BH(e);return t.sufficiency!=="sufficient"||n+i>0||t.acceptedEvidence.length>0?t:{...t,sufficiency:"insufficient",gaps:["No test ran and no existing evidence was accepted, so nothing was validated."]}}o(Wme,"withEvidence");var Zme={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};function Kme(e){return{...e,gaps:qp(e.gaps)}}o(Kme,"boundedGaps");function Xme(e,t){if(t.sufficiency==="sufficient")return t;let n=(e.caveats??[]).map(r=>Zme[r.kind]).filter(r=>r!==void 0),i=[...new Set(n)].filter(r=>!t.actionRequired.includes(r));return i.length?{...t,actionRequired:[...i,...t.actionRequired]}:t}o(Xme,"withModelProviderFailure");function eye(e,t,n){let{language:i,report:r}=t;if(i==="en")return;let s={language:i,businessCaseAnalysis:r.businessCaseAnalysis},a=o((m,E,I)=>Array.isArray(m)&&Array.isArray(E)&&m.length===E.length?m.map(b=>({[I]:b[I]})):void 0,"rows"),c=e.validation;r.validation&&c&&c.rationale===n.validation.rationale&&JSON.stringify(qp(c.gaps))===JSON.stringify(n.validation.gaps)&&qp(r.validation.gaps).length===n.validation.gaps.length&&(s.validation={rationale:r.validation.rationale,gaps:qp(r.validation.gaps)});let u=new Set((n.changes??[]).map(m=>m.id)),l=(r.changes??[]).filter(m=>u.has(m.id)).map(({id:m,text:E})=>({id:m,text:E}));l.length&&(s.changes=l);let p=a(r.issuesFound,n.issuesFound,"description");p&&(s.issuesFound=p);let f=a(r.newTestsCreated,n.newTestsCreated,"description");f&&(s.newTestsCreated=f);let g=a(r.testResults,n.testResults,"details");g&&(s.testResults=g);let h=a(r.caveats,n.caveats,"text");return h&&(s.caveats=h),s}o(eye,"v3Display");async function RH(e,t){let n=GL([...e.issuedTokens,...t.secrets??[]]),i={...Hme(t.report,t.workingSlug),...t.notTranslated?{notTranslated:t.notTranslated}:{}},r=t.translated&&eye(t.report,t.translated,i),s=o(c=>gj({manifest:e.manifest,attemptNumber:e.attemptNumber,checkedOut:t.sources.map(u=>({repository:u.repository,revision:u.revision})),firstQualification:t.firstQualification,generatedTests:_c(t.delivery,n),producer:t.producer,report:_c(c&&r?{...i,display:r}:i,n),githubWrites:t.githubWrites}),"build"),a=s(!0);r&&Buffer.byteLength(JSON.stringify(a),"utf8")>hh&&(a=s(!1)),await e.send("PUT",`/api/v1/runner/attempts/${e.attemptId}/report`,a)}o(RH,"uploadV3Report");async function Q0(e,t,n){if(!d.string().uuid().safeParse(t).success)return{refusal:"no_environment"};let i;try{i=uj.parse(await e.send("GET",PM.persistentDataPolicy.replace(":attemptId",e.attemptId),void 0))}catch{return{refusal:"unavailable"}}try{if(!i.environmentAddress||new URL(i.environmentAddress).href!==new URL(n).href)return{refusal:"changed"}}catch{return{refusal:"changed"}}if(i.environmentId!==t)return{refusal:"changed"};let r=i.persistentDataPolicy;return r?r.environmentId===t?{policy:r}:{refusal:"changed"}:{refusal:"denied"}}o(Q0,"fetchV3PersistentDataPolicy");async function QH(e,t,n){let{environmentId:i,environmentAddress:r}=t;if(!i||!r)return{allowed:!1,refusal:"no_environment"};let s=t.persistentDataPolicy;if(!s?.allowed||s.environmentId!==i)return{allowed:!1,refusal:"no_recorded_grant"};let a=await Q0(e,i,r);return"refusal"in a?{allowed:!1,refusal:a.refusal}:a.policy.allowed?a.policy.revision!==s.revision?{allowed:!1,refusal:"changed"}:yM(t,a.policy,n)?{allowed:!0}:{allowed:!1,refusal:"out_of_scope"}:{allowed:!1,refusal:"denied"}}o(QH,"currentV3PersistenceDecision");async function xH(e,t){return bH(e.attemptId,"attempt id"),pE(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,hj({reportUploaded:e.reportUploaded,recipeUploaded:e.recipeUploaded,revisionsUploaded:e.revisionsUploaded,cancelled:e.cause==="cancelled",timedOut:e.cause==="timed_out",setupFailed:e.cause==="setup_failed",checkoutFailed:e.cause==="checkout_failed"||e.cause==="merge_conflict"&&!e.conflict,mergeConflict:e.cause==="merge_conflict"?e.conflict:void 0,environmentUnverified:e.cause==="environment_unverified",runnerProviderNotReady:e.cause==="runner_provider_not_ready",credentialMissing:e.cause==="credential_missing",modelProviderDenied:e.cause==="model_provider_denied",modelProviderUnavailable:e.cause==="model_provider_unavailable"}))}o(xH,"endV3Attempt");0&&(module.exports={AppRefusal,AppUnreachable,AttemptEndReason,DeliveryStatus,GitHubWriteKind,NoReportCause,SourceProvider,TARGET_ENVIRONMENT_KEYS,V3Attempt,ValidationSufficiency,closedV3Attempt,currentV3PersistenceDecision,endV3Attempt,fetchV3PersistentDataPolicy,heartbeatV3Attempt,startV3Attempt,uploadV3Report});
217
217
  /*! Bundled license information:
218
218
 
219
219
  undici/lib/web/fetch/body.js: