@skyramp/testbot-core 0.13.2-v3.539 → 0.13.2-v3.542

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.
@@ -133,7 +133,7 @@ ${i}
133
133
  };
134
134
  } catch { /* never break the command */ }
135
135
  })();
136
- `;function CD(e,t){let n=`--require=${/\s/.test(e)?JSON.stringify(e):e}`;return t?.trim()?`${n} ${t.trim()}`:n}o(CD,"nodeOptionsWithPreload");var E4=`${ID} up to, not including, ${wD}`;var _b="data-safety-isolation.json";var mc=new Map,SD=new Map;function Hl(e){let t=ae.openSync(e,"r"),n=Buffer.alloc(4);try{if(ae.readSync(t,n,0,4,0)!==4)return!1}finally{ae.closeSync(t)}let i=n.readUInt32BE(0);return i===2135247942||[4277009102,4277009103,3405691582,3405691583,3472551422,3489328638,3199925962,3216703178].includes(i)}o(Hl,"isNativeExecutable");function Nb(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}o(Nb,"retainPath");function Ug(e){let t=e.map(i=>{try{return ae.realpathSync(i)}catch{return ye.resolve(i)}}),n=process.versions.bun?(process.env.PATH??"/usr/bin:/bin").split(ye.delimiter).filter(ye.isAbsolute).map(i=>ye.join(i,"node")):[process.execPath];for(let i of n)try{let r=ae.realpathSync(i);if(ae.accessSync(r,ae.constants.X_OK),Ii(t,r)||!ae.statSync(r).isFile()||!Hl(r))continue;let s=Ec(e[0]);return s&&Nb(s,r),r}catch{}throw new Error("an absolute native Node executable outside sandbox-writable locations is required for isolation")}o(Ug,"trustedNodeBinary");var Pb=/^(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_.*)$/,b4=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function yc(e,t){let n={...t};n.PATH=e.bootstrapPath??BD(e.roots,process.env.PATH??"/usr/bin:/bin").map(i=>(Nb(e,i),i)).join(ye.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))Pb.test(i)&&delete n[i];return n}o(yc,"bootstrapEnv");function BD(e,t){return t.split(ye.delimiter).flatMap(n=>{if(!ye.isAbsolute(n))return[];try{let i=ae.realpathSync(n);if(Ii(e,i)||e.some(r=>hc(i,r)))return[];for(let r of ae.readdirSync(i)){let s=ye.join(i,r);try{ae.accessSync(s,ae.constants.X_OK)}catch{continue}if(ae.statSync(s).isFile()&&Ii(e,ae.realpathSync(s)))return[]}return[i]}catch{return[]}})}o(BD,"trustedPathEntries");var hc=o((e,t)=>t===e||t.startsWith(e+ye.sep),"inside");function Ii(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(i=>{try{return ae.realpathSync(i)}catch{return i}});return[...e,...n].some(i=>hc(i,t))}o(Ii,"unsafeToolPath");var v4="Testbot could not install it because the Ubuntu package source was unavailable. Run the validation again later",I4=new Set;function Jl(e,t,n,i=r=>Qt(e,r)){let r=t.includes(ye.sep)?[ye.resolve(n,t)]:(yc(e,{PATH:process.env.PATH}).PATH??"").split(ye.delimiter).map(s=>ye.join(s,t));for(let s of r)try{if(ae.accessSync(s,ae.constants.X_OK),ae.statSync(s).isFile())return ae.realpathSync(s)}catch{}throw i(`a trusted executable could not be resolved (${t})${I4.has(t)?`: ${v4}`:""}`)}o(Jl,"executableAt");function Ub(e,t,n,i=[],r=[]){let s=o(h=>{try{return ae.realpathSync(h)}catch{return ye.resolve(h)}},"canonical"),a=s(t),c=[...new Set([a,...r,...[...mc.values()].flatMap(h=>h.roots)].map(s))],u={roots:c,ctx:{outputsDir:a},statusFile:""},l=yc(u,n),p=Jl(u,e,a,h=>new Error(`Host transport unavailable: ${h}`));if(Ii(c,p)||!Hl(p))throw new Error(`Host transport requires a native host executable outside writable run roots (${e})`);let f=[p,...u.protectedPaths??[]];for(let h of i){let m;try{m=ae.realpathSync(h)}catch{throw new Error(`Host transport asset is unavailable (${h})`)}if(Ii(c,m)||!ae.statSync(m).isFile())throw new Error(`Host transport asset must be a file outside writable run roots (${h})`);f.push(m)}let A=SD.get(a)??new Set;f.forEach(h=>A.add(h)),SD.set(a,A);for(let h of mc.values())f.forEach(m=>Nb(h,m));return{executable:p,env:l}}o(Ub,"nativeHostTool");function RD(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let i=Jl(e,t,e.roots[0]);return Ob(e.roots[0],[{command:i}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,i),i}o(RD,"bootstrapExecutable");function Fb(e,t){let n=Ec(e);return n?{executable:RD(n,t),env:yc(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}o(Fb,"bootstrapTool");function Ec(e){let t=ye.resolve(e);try{t=ae.realpathSync(e)}catch{}let n=[...mc.values()],i=n.find(r=>r.roots.some(s=>hc(s,t)));if(i)return i;if(n.length===1)return n[0];if(n.length>1)throw Qt(n[0],"a command outside the run roots has no unambiguous safety boundary")}o(Ec,"forCwd");function xD(e){return`Shared-environment isolation unavailable: ${e}`}o(xD,"isolationUnavailableText");var Pg=class extends Error{constructor(n){super(xD(n));this.detail=n;this.name="IsolationUnavailableError"}detail;static{o(this,"IsolationUnavailableError")}};function Qt(e,t){return e.failure=t,QD(e.ctx,t),new Pg(t)}o(Qt,"refusal");function QD(e,t){let n=mc.get(e.outputsDir);n&&(n.incident=t),ae.mkdirSync(e.outputsDir,{recursive:!0});let i=ye.join(e.outputsDir,_b),r=`${i}.${(0,kD.randomUUID)()}.tmp`;ae.writeFileSync(r,JSON.stringify({reason:"isolation_unavailable",detail:t,actionRequired:!0},null,2),{mode:384,flag:"wx"}),ae.renameSync(r,i)}o(QD,"recordIsolationFailure");function Ob(e,t,n=[],i=[],r=!1){let s=Ec(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 ae.realpathSync(h)}catch{throw Qt(s,`unresolved tool asset: ${h}`)}},"realAsset"),p=o(h=>{let m=l(h);if(Ii(s.roots,m)||s.roots.some(v=>hc(m,v)))throw Qt(s,"a configured tool package or dependency is installed in a sandbox-writable location");a(m);let E=o(v=>{if(!c.has(v)){c.add(v);for(let b of ae.readdirSync(v,{withFileTypes:!0})){let I=ye.join(v,b.name);if(b.isSymbolicLink()){let C=l(I);if(Ii(s.roots,C))throw Qt(s,"a configured tool dependency is installed in a sandbox-writable location");ae.statSync(C).isDirectory()?p(C):f(C)}else b.isDirectory()&&E(I)}}},"visit");E(m)},"protectDirectory"),f=o((h,m=!1,E=!1)=>{let v=l(h);if(Ii(s.roots,v))throw Qt(s,"a configured tool executable or package is installed in a sandbox-writable location");if(a(v),!m&&u.has(v))return;u.add(v);let b,I=ae.openSync(v,"r"),C=Buffer.alloc(256);try{ae.readSync(I,C,0,C.length,0)}finally{ae.closeSync(I)}if(m){let x=C.toString().split(/\r?\n/,1)[0];if(x.startsWith("#!")){let w=x.slice(2).trim().split(/\s+/),$=w[0];if(ye.basename($)==="env"){let oe=Jl(s,$,e);if(Ii(s.roots,oe)||!Hl(oe))throw Qt(s,`unsafe shebang launcher: ${$}`);a(oe),w.shift(),w[0]==="-S"&&w.shift()}let B=ae.statSync(v),Z=r&&(hc("/usr/bin",v)||hc("/bin",v))&&B.uid===0&&(B.mode&18)===0&&/^(?:sh|bash)$/.test(ye.basename(w[0]));if(w.length!==1||!/^(?:node|nodejs|bun)$/.test(ye.basename(w[0]))&&!Z)throw Qt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(b=Jl(s,w[0],e),Ii(s.roots,b)||!Hl(b))throw Qt(s,`unsafe shebang interpreter: ${w[0]}`);a(b)}else if(!Hl(v))throw Qt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(E||/\.[cm]?[jt]s$/.test(v)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(C.toString())){let x=ye.dirname(v);for(let w=x;;w=ye.dirname(w)){if(ae.existsSync(ye.join(w,"package.json"))){x=w;break}if(ye.dirname(w)===w)break}p(x);for(let w=x;;w=ye.dirname(w)){let $=ye.join(w,"node_modules");if(ae.existsSync($)&&ae.statSync($).isDirectory()&&p($),ye.basename(w)==="node_modules"&&p(w),ye.dirname(w)===w)break}}return b},"check"),A=[];for(let h of t){let m=Jl(s,h.command,e),E=f(m,!0),v=ye.basename(ae.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(v))throw Qt(s,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(v)&&h.args?.length)throw Qt(s,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let b;if(!r&&/^(?:node|nodejs|bun)$/.test(v)){let I=h.args??[],C=I[0]==="--"||v==="bun"&&I[0]==="run"?I[1]:I[0];if(!C||C.startsWith("-")||!ae.existsSync(ye.resolve(e,C))||!ae.statSync(ye.resolve(e,C)).isFile())throw Qt(s,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");b=ye.resolve(e,C)}A.push(E&&!r?{command:E,args:[m,...h.args??[]]}:{command:m,args:[...h.args??[]]});for(let I of h.args??[]){let C=ye.resolve(e,I);!I.startsWith("-")&&ae.existsSync(C)&&ae.statSync(C).isFile()&&f(C,!1,C===b)}}for(let h of n)f(h);for(let h of i){let m=l(h);p(m);let E=o(C=>{f(C);try{return JSON.parse(ae.readFileSync(C,"utf8"))}catch{throw Qt(s,`the plugin configuration could not be read: ${C}`)}},"readJson"),v=o(C=>{if(!C||typeof C!="object")return;if(Array.isArray(C)){C.forEach(v);return}let x=C;if(x.type==="command"){if(typeof x.command!="string")throw Qt(s,"the plugin command hook has no literal command");let w=Ac(x.command.replace(/\$\{CLAUDE_PLUGIN_ROOT\}/g,m));if(!w.steps)throw Qt(s,"the plugin command hook needs a literal native/Node command whose assets can be retained");for(let $ of w.steps)Ob(e,[{command:$[0],args:$.slice(1)}])}Object.values(x).forEach(v)},"hooks"),b=ye.join(m,".claude-plugin/plugin.json");if(ae.existsSync(b)){let C=E(b);if(!C||typeof C!="object"||Array.isArray(C))throw Qt(s,"the plugin manifest is not an object");let x=C;if(x.mcpServers)throw Qt(s,"declare plugin MCP servers through the run's validated MCP configuration");let w=o($=>{typeof $=="string"?v(E(ye.resolve(m,$))):Array.isArray($)?$.forEach(w):v($)},"hookDocuments");w(x.hooks)}let I=ye.join(m,"hooks/hooks.json");if(ae.existsSync(I)&&v(E(I)),ae.existsSync(ye.join(m,".mcp.json")))throw Qt(s,"declare plugin MCP servers through the run's validated MCP configuration")}return A}o(Ob,"assertToolAssetsSafe");function Ki(e,t,n,i="data-safety-proxy"){let r=Ec(t);if(!r)return{argv:[...e],env:n};let s=i==="open"?r.openSettings:r.attributedSettings??r.settings;if(r.failure||!r.cli||!r.node||!s||!r.env)throw Qt(r,r.failure??"the run boundary has not finished initialization");if(!ae.existsSync(r.cli)||!ae.existsSync(s)||!ae.existsSync(r.node))throw Qt(r,"the pinned sandbox runtime or its configuration is unavailable");try{if(JSON.parse(ae.readFileSync(r.statusFile,"utf8")).notRun)throw new Error("the guarded proxy is unavailable")}catch{throw Qt(r,"the guarded proxy is unavailable")}let a=i==="open",c=a?{...n,PATH:BD(r.roots,n.PATH??"").join(ye.delimiter)}:n,u=yc(r,a?{...c}:{...c,...r.env}),l=Object.keys(c).filter(p=>(["PATH","HOME","SHELL"].includes(p)||Pb.test(p)&&!b4.test(p))&&c[p]!==void 0).map(p=>`${p}=${c[p]}`);return{argv:[r.node,r.cli,"--settings",s,"--","/usr/bin/env",...l,...w4(r,i,c.NODE_OPTIONS),...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(Ki,"protectedCommand");function w4(e,t,n){let i=e.noProxy??"",r=t==="data-safety-proxy"&&e.playwrightPreload&&ae.existsSync(e.playwrightPreload)?[`NODE_OPTIONS=${CD(e.playwrightPreload,n)}`]:[];return[`NO_PROXY=${i}`,`no_proxy=${i}`,...e.tmp?[...["TMPDIR","TMP","TEMP"].map(s=>`${s}=${e.tmp}`),...C4(e.tmp)]:[],...r]}o(w4,"sandboxCommandEnv");function C4(e){let t=ye.join(e,"npm-cache"),n=ye.join(e,"pnpm");return[`npm_config_cache=${t}`,`NPM_CONFIG_CACHE=${t}`,`COREPACK_HOME=${ye.join(e,"corepack")}`,`PNPM_HOME=${n}`,`pnpm_config_store_dir=${ye.join(n,"store")}`,`pnpm_config_cache_dir=${ye.join(n,"cache")}`,`pnpm_config_state_dir=${ye.join(n,"state")}`,`YARN_GLOBAL_FOLDER=${ye.join(e,"yarn")}`]}o(C4,"packageManagerDirs");function Xi(e){return!!Ec(e)}o(Xi,"hasNetworkBoundary");function Fg(e,t=process.env){let n=Ec(e);return n?yc(n,{...t,...n.env}):t}o(Fg,"networkBoundaryEnv");var Qr=["-c","core.fsmonitor=false"],S4=new Set(["GH_TOKEN","GITHUB_TOKEN","GH_ENTERPRISE_TOKEN","GITHUB_ENTERPRISE_TOKEN","ACTIONS_RUNTIME_TOKEN","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","SYSTEM_ACCESSTOKEN","SYSTEM_OIDCREQUESTURI","SKYRAMP_MCP_GITHUB_TOKEN","SSH_AUTH_SOCK","GIT_SSH","GIT_SSH_COMMAND","GITHUB_STEP_SUMMARY","SKYRAMP_REPOSITORY_SECRETS","SKYRAMP_REPOSITORY_SECRET_NAMES","SKYRAMP_REPOSITORY_VARIABLES","SKYRAMP_REPOSITORY_VARIABLE_NAMES"]),Yl=new Set(["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","AWS_PROFILE","AWS_WEB_IDENTITY_TOKEN_FILE","AWS_ROLE_ARN","AWS_ROLE_SESSION_NAME","AWS_CONTAINER_CREDENTIALS_FULL_URI","AWS_CONTAINER_CREDENTIALS_RELATIVE_URI","AWS_CONTAINER_AUTHORIZATION_TOKEN","AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"]);function Gt(e=process.env,t,n="repo-command"){let i={};for(let[r,s]of Object.entries(e))n==="repo-command"&&Yl.has(r)||(i[r]=s);Object.assign(i,t??{});for(let r of Object.keys(i))(S4.has(r)||r.startsWith("INPUT_"))&&delete i[r];return i}o(Gt,"untrustedChildEnv");var TD=require("async_hooks");function $D(e){return(e?.components??[]).filter(t=>!!t.repository)}o($D,"sharedSutComponents");function Og(e){let t=e.sharedEnvironment;return t?.environmentId&&t.environmentAddress?!0:$D(t).length>0}o(Og,"requiresSharedEnvironmentGuard");var fIe=new TD.AsyncLocalStorage;var DD=["--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"],k4="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function B4(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 Yl)delete t[n];return t}o(B4,"gitEnv");function R4(e,t){let n=Fb(e,"git"),i=n.executable,r=Fg(e,{...B4(t),PATH:n.env.PATH}),s=Ki([i,...DD,"config","--null","--name-only","--get-regexp",k4],e,r),a=[];try{a=(0,Wl.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:[...DD,...c]}}o(R4,"gitPolicy");function Mg(e,t,n=process.env){if(!Xi(t))return{argv:["git",...e],env:n};let i=R4(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 Ki([i.binary,...i.config,...r],t,i.env)}o(Mg,"protectedGitCommand");function Vt(e,t){let n=Mg(e,t.cwd,t.env??process.env);return(0,Wl.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(Vt,"execGitSync");function Mb(e,t){let n=Mg(e,t.cwd,t.env??process.env);return(0,Wl.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(Mb,"spawnGitSync");var WW=require("node:zlib");hu();var Vh=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),Tj=o((e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,"tests"),zh={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=>`${Vh(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${Vh(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${Vh(e)} reused`,"reused"),verified:o(e=>`${Vh(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"),guardedEntryCi:o((e,t)=>`${e} is Testbot's guarded entry for the Test Environment: CI runs it with \`node --test ${e}\` from a package that declares @skyramp/testbot-core ${t}. It makes no request to Testbot, so its CI job needs no \`id-token: write\` permission and no TESTBOT_POLICY_ORIGIN.`,"guardedEntryCi"),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"),lintNotRun:o(e=>`The repo's linter did not check the test files, so they were delivered unlinted: ${e}.`,"lintNotRun"),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"),appRestarted:o(e=>`The app stopped answering during the run, and Testbot started it again with its recorded setup before running tests alone: ${e}`,"appRestarted"),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.",dataSafetyGuardUnavailable:"No data-safety guard could be loaded, so Testbot's proxy refused every request to the shared environment from probes, tests and other commands, and Testbot ran no test against it.",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"),playwrightNotRouted:o((e,t)=>`Testbot sends Playwright's API request client (the request fixture, page.request and request.newContext) through its data-safety guard only for Playwright ${t}. This checkout has Playwright ${e}, so those requests could not reach the shared environment.`,"playwrightNotRouted"),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"),dataSafetyNoClientCertificate:o((e,t)=>`${e} refused a request through Testbot's data-safety proxy with a Cloudflare challenge or at the TLS handshake. The proxy may be the cause, not the certificate: it ends TLS itself, it sent no client certificate to that host, and it sends one only when ${t} names the host.`,"dataSafetyNoClientCertificate"),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"),dataSafetyKeptRecords:o((e,t)=>`The tests kept these records in the shared environment under the permission to keep test data (environment ${e}, policy revision ${t})`,"dataSafetyKeptRecords")},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.",nextStepPackageSource:"Run the validation again later, when the Ubuntu package source is available again. Nothing on this host or in the repository needs a change."},nextSteps:{componentMismatch: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)=>`${Tj(e,"new")} and ${Tj(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"),testsPinnedNotDelivered:o((e,t,n)=>`${e}: ${t} ${t===1?"test":"tests"} written, ${n} maintained. The repository is pinned to a commit, so these changes were not delivered.`,"testsPinnedNotDelivered"),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"),testsHeldBack:o((e,t,n,i)=>`${e?"Delivery partial":"Delivery failed: no tests were delivered"}. These test files need a pull request that is not on ${t} yet, so they were held back: ${n}. Their changes are in the run artifact's ${i}.`,"testsHeldBack"),testsNotProposed:o(e=>`The tests were not proposed in a pull request: ${e}.`,"testsNotProposed")}};var Dj={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"),guardedEntryCi:o((e,t)=>`${e} \u306F Test Environment \u5411\u3051\u306E Testbot \u306E\u30AC\u30FC\u30C9\u4ED8\u304D\u30A8\u30F3\u30C8\u30EA\u3067\u3059\u3002CI \u3067\u306F @skyramp/testbot-core ${t} \u3092\u5BA3\u8A00\u3057\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u304B\u3089 \`node --test ${e}\` \u3067\u5B9F\u884C\u3057\u307E\u3059\u3002Testbot \u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u884C\u308F\u306A\u3044\u305F\u3081\u3001\u305D\u306E CI \u30B8\u30E7\u30D6\u306B \`id-token: write\` \u6A29\u9650\u3068 TESTBOT_POLICY_ORIGIN \u306F\u4E0D\u8981\u3067\u3059\u3002`,"guardedEntryCi"),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"),lintNotRun:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u3092\u30C1\u30A7\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30EA\u30F3\u30BF\u30FC\u3092\u901A\u3055\u305A\u306B\u63D0\u51FA\u3057\u307E\u3057\u305F: ${e}\u3002`,"lintNotRun"),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"),appRestarted:o(e=>`\u5B9F\u884C\u4E2D\u306B\u30A2\u30D7\u30EA\u304C\u5FDC\u7B54\u3057\u306A\u304F\u306A\u3063\u305F\u305F\u3081\u3001Testbot \u306F\u30C6\u30B9\u30C8\u3092\u5358\u72EC\u3067\u5B9F\u884C\u3059\u308B\u524D\u306B\u3001\u8A18\u9332\u3055\u308C\u305F\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u3067\u30A2\u30D7\u30EA\u3092\u518D\u8D77\u52D5\u3057\u307E\u3057\u305F: ${e}`,"appRestarted"),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",dataSafetyGuardUnavailable:"\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u8AAD\u307F\u8FBC\u3081\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u306E\u30D7\u30ED\u30AD\u30B7\u306F\u30D7\u30ED\u30FC\u30D6\u3001\u30C6\u30B9\u30C8\u3001\u305D\u306E\u4ED6\u306E\u30B3\u30DE\u30F3\u30C9\u304B\u3089\u5171\u6709\u74B0\u5883\u3078\u306E\u3059\u3079\u3066\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u62D2\u5426\u3057\u3001Testbot \u306F\u5171\u6709\u74B0\u5883\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\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"),playwrightNotRouted:o((e,t)=>`Testbot \u304C Playwright \u306E API \u30EA\u30AF\u30A8\u30B9\u30C8\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\uFF08request \u30D5\u30A3\u30AF\u30B9\u30C1\u30E3\u3001page.request\u3001request.newContext\uFF09\u3092\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u7D4C\u7531\u3067\u9001\u308B\u306E\u306F Playwright ${t} \u306E\u5834\u5408\u3060\u3051\u3067\u3059\u3002\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u30A2\u30A6\u30C8\u306E Playwright \u306F ${e} \u306E\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u306B\u5230\u9054\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,"playwrightNotRouted"),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"),dataSafetyNoClientCertificate:o((e,t)=>`${e} \u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u7D4C\u7531\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092 Cloudflare \u306E\u30C1\u30E3\u30EC\u30F3\u30B8\u307E\u305F\u306F TLS \u30CF\u30F3\u30C9\u30B7\u30A7\u30A4\u30AF\u3067\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u539F\u56E0\u306F\u8A3C\u660E\u66F8\u3067\u306F\u306A\u304F\u30D7\u30ED\u30AD\u30B7\u306E\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002\u30D7\u30ED\u30AD\u30B7\u306F TLS \u3092\u81EA\u8EAB\u3067\u7D42\u7AEF\u3057\u3001\u3053\u306E\u30DB\u30B9\u30C8\u306B\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u8A3C\u660E\u66F8\u3092\u9001\u4FE1\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u8A3C\u660E\u66F8\u3092\u9001\u4FE1\u3059\u308B\u306E\u306F ${t} \u304C\u305D\u306E\u30DB\u30B9\u30C8\u3092\u6307\u5B9A\u3057\u3066\u3044\u308B\u5834\u5408\u3060\u3051\u3067\u3059\u3002`,"dataSafetyNoClientCertificate"),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"),dataSafetyKeptRecords:o((e,t)=>`\u30C6\u30B9\u30C8\u306F\u3001\u30C6\u30B9\u30C8\u30C7\u30FC\u30BF\u3092\u4FDD\u6301\u3059\u308B\u6A29\u9650 (\u74B0\u5883 ${e}\u3001\u30DD\u30EA\u30B7\u30FC\u30EA\u30D3\u30B8\u30E7\u30F3 ${t}) \u306E\u3082\u3068\u3067\u3001\u6B21\u306E\u30EC\u30B3\u30FC\u30C9\u3092\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3057\u307E\u3057\u305F`,"dataSafetyKeptRecords")},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",nextStepPackageSource:"Ubuntu \u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u914D\u5E03\u5143\u304C\u518D\u3073\u5229\u7528\u53EF\u80FD\u306B\u306A\u3063\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30DB\u30B9\u30C8\u3084\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},nextSteps:{componentMismatch: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"),testsPinnedNotDelivered:o((e,t,n)=>`${e}: ${t} \u4EF6\u306E\u30C6\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u3001${n} \u4EF6\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30B3\u30DF\u30C3\u30C8\u306B\u56FA\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u3053\u308C\u3089\u306E\u5909\u66F4\u306F\u914D\u4FE1\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,"testsPinnedNotDelivered"),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"),testsHeldBack:o((e,t,n,i)=>`${e?"\u4E00\u90E8\u306E\u30C6\u30B9\u30C8\u306E\u307F\u63D0\u51FA\u3057\u307E\u3057\u305F":"\u30C6\u30B9\u30C8\u3092\u63D0\u51FA\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F"}\u3002\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F ${t} \u306B\u307E\u3060\u306A\u3044\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u4FDD\u7559\u3057\u307E\u3057\u305F: ${n}\u3002\u5909\u66F4\u5185\u5BB9\u306F\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u306E ${i} \u306B\u3042\u308A\u307E\u3059\u3002`,"testsHeldBack"),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 Die={en:zh,ja:Dj},_ie="en";function no(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(no,"labelOf");function ue(){return Die[_ie]}o(ue,"t");var Nie=4;var Nj="\xABredacted\xBB";function Pj(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=Nie&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(Pj,"redactionsFrom");function Pie(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(Pie,"redactGitCredentials");var Uie=/\.skyramp(?:\/sut(?:\/(?:setup\.sh|teardown\.sh|health\.json|health-check\.sh|deployed-revisions\.sh|get-auth-token\.sh))?)?|\bSKYRAMP(?=_)|@skyramp\/(?:mcp|skyramp|testbot)\b|\bskyramp(?=[A-Z])|outputs\/onboard-hooks(?:\/(?:setup-event|setup-hooks)\.mjs)?/g;function Fie(e){return[...e.matchAll(Uie)].map(t=>[t.index,t.index+t[0].length])}o(Fie,"ownNames");function Oie(e,t){let n=Fie(e),i=[];for(let r=e.indexOf(t);r!==-1;r=e.indexOf(t,r+t.length))n.some(([s,a])=>s<=r&&r+t.length<=a)||i.push(r);return i}o(Oie,"outsideOwnNames");function Yn(e,t){if(!e||t.length===0)return e;let n=e;for(let i of t){if(!i||!n.includes(i))continue;let r=Oie(n,i);for(let s=r.length-1;s>=0;s-=1)n=n.slice(0,r[s])+Nj+n.slice(r[s]+i.length)}return n}o(Yn,"redactSecrets");function ro(e,t){return Yn(Pie(e),t)}o(ro,"redactCredentials");function Mie(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(Mie,"mapStrings");function ga(e,t){return t.length===0?e:Mie(e,n=>Yn(n,t))}o(ga,"redactDeep");var uBe=new TextDecoder("utf-8",{fatal:!0});var Fj=600,qh=300;function Uj(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(Uj,"streamText");function Lie(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[Uj(t?.stderr),Uj(t?.stdout)].filter(Boolean);return i.length?[n.split(`
136
+ `;function CD(e,t){let n=`--require=${/\s/.test(e)?JSON.stringify(e):e}`;return t?.trim()?`${n} ${t.trim()}`:n}o(CD,"nodeOptionsWithPreload");var E4=`${ID} up to, not including, ${wD}`;var _b="data-safety-isolation.json";var mc=new Map,SD=new Map;function Hl(e){let t=ae.openSync(e,"r"),n=Buffer.alloc(4);try{if(ae.readSync(t,n,0,4,0)!==4)return!1}finally{ae.closeSync(t)}let i=n.readUInt32BE(0);return i===2135247942||[4277009102,4277009103,3405691582,3405691583,3472551422,3489328638,3199925962,3216703178].includes(i)}o(Hl,"isNativeExecutable");function Nb(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}o(Nb,"retainPath");function Ug(e){let t=e.map(i=>{try{return ae.realpathSync(i)}catch{return ye.resolve(i)}}),n=process.versions.bun?(process.env.PATH??"/usr/bin:/bin").split(ye.delimiter).filter(ye.isAbsolute).map(i=>ye.join(i,"node")):[process.execPath];for(let i of n)try{let r=ae.realpathSync(i);if(ae.accessSync(r,ae.constants.X_OK),Ii(t,r)||!ae.statSync(r).isFile()||!Hl(r))continue;let s=Ec(e[0]);return s&&Nb(s,r),r}catch{}throw new Error("an absolute native Node executable outside sandbox-writable locations is required for isolation")}o(Ug,"trustedNodeBinary");var Pb=/^(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_.*)$/,b4=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function yc(e,t){let n={...t};n.PATH=e.bootstrapPath??BD(e.roots,process.env.PATH??"/usr/bin:/bin").map(i=>(Nb(e,i),i)).join(ye.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))Pb.test(i)&&delete n[i];return n}o(yc,"bootstrapEnv");function BD(e,t){return t.split(ye.delimiter).flatMap(n=>{if(!ye.isAbsolute(n))return[];try{let i=ae.realpathSync(n);if(Ii(e,i)||e.some(r=>hc(i,r)))return[];for(let r of ae.readdirSync(i)){let s=ye.join(i,r);try{ae.accessSync(s,ae.constants.X_OK)}catch{continue}if(ae.statSync(s).isFile()&&Ii(e,ae.realpathSync(s)))return[]}return[i]}catch{return[]}})}o(BD,"trustedPathEntries");var hc=o((e,t)=>t===e||t.startsWith(e+ye.sep),"inside");function Ii(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(i=>{try{return ae.realpathSync(i)}catch{return i}});return[...e,...n].some(i=>hc(i,t))}o(Ii,"unsafeToolPath");var v4="Testbot could not install it because the Ubuntu package source was unavailable. Run the validation again later",I4=new Set;function Jl(e,t,n,i=r=>Qt(e,r)){let r=t.includes(ye.sep)?[ye.resolve(n,t)]:(yc(e,{PATH:process.env.PATH}).PATH??"").split(ye.delimiter).map(s=>ye.join(s,t));for(let s of r)try{if(ae.accessSync(s,ae.constants.X_OK),ae.statSync(s).isFile())return ae.realpathSync(s)}catch{}throw i(`a trusted executable could not be resolved (${t})${I4.has(t)?`: ${v4}`:""}`)}o(Jl,"executableAt");function Ub(e,t,n,i=[],r=[]){let s=o(h=>{try{return ae.realpathSync(h)}catch{return ye.resolve(h)}},"canonical"),a=s(t),c=[...new Set([a,...r,...[...mc.values()].flatMap(h=>h.roots)].map(s))],u={roots:c,ctx:{outputsDir:a},statusFile:""},l=yc(u,n),p=Jl(u,e,a,h=>new Error(`Host transport unavailable: ${h}`));if(Ii(c,p)||!Hl(p))throw new Error(`Host transport requires a native host executable outside writable run roots (${e})`);let f=[p,...u.protectedPaths??[]];for(let h of i){let m;try{m=ae.realpathSync(h)}catch{throw new Error(`Host transport asset is unavailable (${h})`)}if(Ii(c,m)||!ae.statSync(m).isFile())throw new Error(`Host transport asset must be a file outside writable run roots (${h})`);f.push(m)}let A=SD.get(a)??new Set;f.forEach(h=>A.add(h)),SD.set(a,A);for(let h of mc.values())f.forEach(m=>Nb(h,m));return{executable:p,env:l}}o(Ub,"nativeHostTool");function RD(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let i=Jl(e,t,e.roots[0]);return Ob(e.roots[0],[{command:i}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,i),i}o(RD,"bootstrapExecutable");function Fb(e,t){let n=Ec(e);return n?{executable:RD(n,t),env:yc(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}o(Fb,"bootstrapTool");function Ec(e){let t=ye.resolve(e);try{t=ae.realpathSync(e)}catch{}let n=[...mc.values()],i=n.find(r=>r.roots.some(s=>hc(s,t)));if(i)return i;if(n.length===1)return n[0];if(n.length>1)throw Qt(n[0],"a command outside the run roots has no unambiguous safety boundary")}o(Ec,"forCwd");function xD(e){return`Shared-environment isolation unavailable: ${e}`}o(xD,"isolationUnavailableText");var Pg=class extends Error{constructor(n){super(xD(n));this.detail=n;this.name="IsolationUnavailableError"}detail;static{o(this,"IsolationUnavailableError")}};function Qt(e,t){return e.failure=t,QD(e.ctx,t),new Pg(t)}o(Qt,"refusal");function QD(e,t){let n=mc.get(e.outputsDir);n&&(n.incident=t),ae.mkdirSync(e.outputsDir,{recursive:!0});let i=ye.join(e.outputsDir,_b),r=`${i}.${(0,kD.randomUUID)()}.tmp`;ae.writeFileSync(r,JSON.stringify({reason:"isolation_unavailable",detail:t,actionRequired:!0},null,2),{mode:384,flag:"wx"}),ae.renameSync(r,i)}o(QD,"recordIsolationFailure");function Ob(e,t,n=[],i=[],r=!1){let s=Ec(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 ae.realpathSync(h)}catch{throw Qt(s,`unresolved tool asset: ${h}`)}},"realAsset"),p=o(h=>{let m=l(h);if(Ii(s.roots,m)||s.roots.some(v=>hc(m,v)))throw Qt(s,"a configured tool package or dependency is installed in a sandbox-writable location");a(m);let E=o(v=>{if(!c.has(v)){c.add(v);for(let b of ae.readdirSync(v,{withFileTypes:!0})){let I=ye.join(v,b.name);if(b.isSymbolicLink()){let C=l(I);if(Ii(s.roots,C))throw Qt(s,"a configured tool dependency is installed in a sandbox-writable location");ae.statSync(C).isDirectory()?p(C):f(C)}else b.isDirectory()&&E(I)}}},"visit");E(m)},"protectDirectory"),f=o((h,m=!1,E=!1)=>{let v=l(h);if(Ii(s.roots,v))throw Qt(s,"a configured tool executable or package is installed in a sandbox-writable location");if(a(v),!m&&u.has(v))return;u.add(v);let b,I=ae.openSync(v,"r"),C=Buffer.alloc(256);try{ae.readSync(I,C,0,C.length,0)}finally{ae.closeSync(I)}if(m){let x=C.toString().split(/\r?\n/,1)[0];if(x.startsWith("#!")){let w=x.slice(2).trim().split(/\s+/),$=w[0];if(ye.basename($)==="env"){let oe=Jl(s,$,e);if(Ii(s.roots,oe)||!Hl(oe))throw Qt(s,`unsafe shebang launcher: ${$}`);a(oe),w.shift(),w[0]==="-S"&&w.shift()}let B=ae.statSync(v),Z=r&&(hc("/usr/bin",v)||hc("/bin",v))&&B.uid===0&&(B.mode&18)===0&&/^(?:sh|bash)$/.test(ye.basename(w[0]));if(w.length!==1||!/^(?:node|nodejs|bun)$/.test(ye.basename(w[0]))&&!Z)throw Qt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(b=Jl(s,w[0],e),Ii(s.roots,b)||!Hl(b))throw Qt(s,`unsafe shebang interpreter: ${w[0]}`);a(b)}else if(!Hl(v))throw Qt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(E||/\.[cm]?[jt]s$/.test(v)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(C.toString())){let x=ye.dirname(v);for(let w=x;;w=ye.dirname(w)){if(ae.existsSync(ye.join(w,"package.json"))){x=w;break}if(ye.dirname(w)===w)break}p(x);for(let w=x;;w=ye.dirname(w)){let $=ye.join(w,"node_modules");if(ae.existsSync($)&&ae.statSync($).isDirectory()&&p($),ye.basename(w)==="node_modules"&&p(w),ye.dirname(w)===w)break}}return b},"check"),A=[];for(let h of t){let m=Jl(s,h.command,e),E=f(m,!0),v=ye.basename(ae.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(v))throw Qt(s,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(v)&&h.args?.length)throw Qt(s,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let b;if(!r&&/^(?:node|nodejs|bun)$/.test(v)){let I=h.args??[],C=I[0]==="--"||v==="bun"&&I[0]==="run"?I[1]:I[0];if(!C||C.startsWith("-")||!ae.existsSync(ye.resolve(e,C))||!ae.statSync(ye.resolve(e,C)).isFile())throw Qt(s,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");b=ye.resolve(e,C)}A.push(E&&!r?{command:E,args:[m,...h.args??[]]}:{command:m,args:[...h.args??[]]});for(let I of h.args??[]){let C=ye.resolve(e,I);!I.startsWith("-")&&ae.existsSync(C)&&ae.statSync(C).isFile()&&f(C,!1,C===b)}}for(let h of n)f(h);for(let h of i){let m=l(h);p(m);let E=o(C=>{f(C);try{return JSON.parse(ae.readFileSync(C,"utf8"))}catch{throw Qt(s,`the plugin configuration could not be read: ${C}`)}},"readJson"),v=o(C=>{if(!C||typeof C!="object")return;if(Array.isArray(C)){C.forEach(v);return}let x=C;if(x.type==="command"){if(typeof x.command!="string")throw Qt(s,"the plugin command hook has no literal command");let w=Ac(x.command.replace(/\$\{CLAUDE_PLUGIN_ROOT\}/g,m));if(!w.steps)throw Qt(s,"the plugin command hook needs a literal native/Node command whose assets can be retained");for(let $ of w.steps)Ob(e,[{command:$[0],args:$.slice(1)}])}Object.values(x).forEach(v)},"hooks"),b=ye.join(m,".claude-plugin/plugin.json");if(ae.existsSync(b)){let C=E(b);if(!C||typeof C!="object"||Array.isArray(C))throw Qt(s,"the plugin manifest is not an object");let x=C;if(x.mcpServers)throw Qt(s,"declare plugin MCP servers through the run's validated MCP configuration");let w=o($=>{typeof $=="string"?v(E(ye.resolve(m,$))):Array.isArray($)?$.forEach(w):v($)},"hookDocuments");w(x.hooks)}let I=ye.join(m,"hooks/hooks.json");if(ae.existsSync(I)&&v(E(I)),ae.existsSync(ye.join(m,".mcp.json")))throw Qt(s,"declare plugin MCP servers through the run's validated MCP configuration")}return A}o(Ob,"assertToolAssetsSafe");function Ki(e,t,n,i="data-safety-proxy"){let r=Ec(t);if(!r)return{argv:[...e],env:n};let s=i==="open"?r.openSettings:r.attributedSettings??r.settings;if(r.failure||!r.cli||!r.node||!s||!r.env)throw Qt(r,r.failure??"the run boundary has not finished initialization");if(!ae.existsSync(r.cli)||!ae.existsSync(s)||!ae.existsSync(r.node))throw Qt(r,"the pinned sandbox runtime or its configuration is unavailable");try{if(JSON.parse(ae.readFileSync(r.statusFile,"utf8")).notRun)throw new Error("the guarded proxy is unavailable")}catch{throw Qt(r,"the guarded proxy is unavailable")}let a=i==="open",c=a?{...n,PATH:BD(r.roots,n.PATH??"").join(ye.delimiter)}:n,u=yc(r,a?{...c}:{...c,...r.env}),l=Object.keys(c).filter(p=>(["PATH","HOME","SHELL"].includes(p)||Pb.test(p)&&!b4.test(p))&&c[p]!==void 0).map(p=>`${p}=${c[p]}`);return{argv:[r.node,r.cli,"--settings",s,"--","/usr/bin/env",...l,...w4(r,i,c.NODE_OPTIONS),...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(Ki,"protectedCommand");function w4(e,t,n){let i=e.noProxy??"",r=t==="data-safety-proxy"&&e.playwrightPreload&&ae.existsSync(e.playwrightPreload)?[`NODE_OPTIONS=${CD(e.playwrightPreload,n)}`]:[];return[`NO_PROXY=${i}`,`no_proxy=${i}`,...e.tmp?[...["TMPDIR","TMP","TEMP"].map(s=>`${s}=${e.tmp}`),...C4(e.tmp)]:[],...r]}o(w4,"sandboxCommandEnv");function C4(e){let t=ye.join(e,"npm-cache"),n=ye.join(e,"pnpm");return[`npm_config_cache=${t}`,`NPM_CONFIG_CACHE=${t}`,`COREPACK_HOME=${ye.join(e,"corepack")}`,`PNPM_HOME=${n}`,`pnpm_config_store_dir=${ye.join(n,"store")}`,`pnpm_config_cache_dir=${ye.join(n,"cache")}`,`pnpm_config_state_dir=${ye.join(n,"state")}`,`YARN_GLOBAL_FOLDER=${ye.join(e,"yarn")}`]}o(C4,"packageManagerDirs");function Xi(e){return!!Ec(e)}o(Xi,"hasNetworkBoundary");function Fg(e,t=process.env){let n=Ec(e);return n?yc(n,{...t,...n.env}):t}o(Fg,"networkBoundaryEnv");var Qr=["-c","core.fsmonitor=false"],S4=new Set(["GH_TOKEN","GITHUB_TOKEN","GH_ENTERPRISE_TOKEN","GITHUB_ENTERPRISE_TOKEN","ACTIONS_RUNTIME_TOKEN","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","SYSTEM_ACCESSTOKEN","SYSTEM_OIDCREQUESTURI","SKYRAMP_MCP_GITHUB_TOKEN","SSH_AUTH_SOCK","GIT_SSH","GIT_SSH_COMMAND","GITHUB_STEP_SUMMARY","SKYRAMP_REPOSITORY_SECRETS","SKYRAMP_REPOSITORY_SECRET_NAMES","SKYRAMP_REPOSITORY_VARIABLES","SKYRAMP_REPOSITORY_VARIABLE_NAMES"]),Yl=new Set(["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","AWS_PROFILE","AWS_WEB_IDENTITY_TOKEN_FILE","AWS_ROLE_ARN","AWS_ROLE_SESSION_NAME","AWS_CONTAINER_CREDENTIALS_FULL_URI","AWS_CONTAINER_CREDENTIALS_RELATIVE_URI","AWS_CONTAINER_AUTHORIZATION_TOKEN","AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"]);function Gt(e=process.env,t,n="repo-command"){let i={};for(let[r,s]of Object.entries(e))n==="repo-command"&&Yl.has(r)||(i[r]=s);Object.assign(i,t??{});for(let r of Object.keys(i))(S4.has(r)||r.startsWith("INPUT_"))&&delete i[r];return i}o(Gt,"untrustedChildEnv");var TD=require("async_hooks");function $D(e){return(e?.components??[]).filter(t=>!!t.repository)}o($D,"sharedSutComponents");function Og(e){let t=e.sharedEnvironment;return t?.environmentId&&t.environmentAddress?!0:$D(t).length>0}o(Og,"requiresSharedEnvironmentGuard");var fIe=new TD.AsyncLocalStorage;var DD=["--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"],k4="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function B4(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 Yl)delete t[n];return t}o(B4,"gitEnv");function R4(e,t){let n=Fb(e,"git"),i=n.executable,r=Fg(e,{...B4(t),PATH:n.env.PATH}),s=Ki([i,...DD,"config","--null","--name-only","--get-regexp",k4],e,r),a=[];try{a=(0,Wl.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:[...DD,...c]}}o(R4,"gitPolicy");function Mg(e,t,n=process.env){if(!Xi(t))return{argv:["git",...e],env:n};let i=R4(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 Ki([i.binary,...i.config,...r],t,i.env)}o(Mg,"protectedGitCommand");function Vt(e,t){let n=Mg(e,t.cwd,t.env??process.env);return(0,Wl.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(Vt,"execGitSync");function Mb(e,t){let n=Mg(e,t.cwd,t.env??process.env);return(0,Wl.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(Mb,"spawnGitSync");var WW=require("node:zlib");hu();var Vh=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),Tj=o((e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,"tests"),zh={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=>`${Vh(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${Vh(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${Vh(e)} reused`,"reused"),verified:o(e=>`${Vh(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"),guardedEntryCi:o((e,t)=>`${e} is Testbot's guarded entry for the Test Environment: CI runs it with \`node --test ${e}\` from a package that declares @skyramp/testbot-core ${t}. It makes no request to Testbot, so its CI job needs no \`id-token: write\` permission and no TESTBOT_POLICY_ORIGIN.`,"guardedEntryCi"),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"),lintNotRun:o(e=>`The repo's linter did not check the test files, so they were delivered unlinted: ${e}.`,"lintNotRun"),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"),appRestarted:o(e=>`Testbot's health check for the application under test failed during the run. Testbot restarted it with its recorded setup before running tests alone: ${e}`,"appRestarted"),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.",dataSafetyGuardUnavailable:"No data-safety guard could be loaded, so Testbot's proxy refused every request to the shared environment from probes, tests and other commands, and Testbot ran no test against it.",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"),playwrightNotRouted:o((e,t)=>`Testbot sends Playwright's API request client (the request fixture, page.request and request.newContext) through its data-safety guard only for Playwright ${t}. This checkout has Playwright ${e}, so those requests could not reach the shared environment.`,"playwrightNotRouted"),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"),dataSafetyNoClientCertificate:o((e,t)=>`${e} refused a request through Testbot's data-safety proxy with a Cloudflare challenge or at the TLS handshake. The proxy may be the cause, not the certificate: it ends TLS itself, it sent no client certificate to that host, and it sends one only when ${t} names the host.`,"dataSafetyNoClientCertificate"),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"),dataSafetyKeptRecords:o((e,t)=>`The tests kept these records in the shared environment under the permission to keep test data (environment ${e}, policy revision ${t})`,"dataSafetyKeptRecords")},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.",nextStepPackageSource:"Run the validation again later, when the Ubuntu package source is available again. Nothing on this host or in the repository needs a change."},nextSteps:{componentMismatch: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)=>`${Tj(e,"new")} and ${Tj(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 Skyramp web app at ${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"),testsPinnedNotDelivered:o((e,t,n)=>`${e}: ${t} ${t===1?"test":"tests"} written, ${n} maintained. The repository is pinned to a commit, so these changes were not delivered.`,"testsPinnedNotDelivered"),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"),testsHeldBack:o((e,t,n,i)=>`${e?"Delivery partial":"Delivery failed: no tests were delivered"}. These test files need a pull request that is not on ${t} yet, so they were held back: ${n}. Their changes are in the run artifact's ${i}.`,"testsHeldBack"),testsNotProposed:o(e=>`The tests were not proposed in a pull request: ${e}.`,"testsNotProposed")}};var Dj={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"),guardedEntryCi:o((e,t)=>`${e} \u306F Test Environment \u5411\u3051\u306E Testbot \u306E\u30AC\u30FC\u30C9\u4ED8\u304D\u30A8\u30F3\u30C8\u30EA\u3067\u3059\u3002CI \u3067\u306F @skyramp/testbot-core ${t} \u3092\u5BA3\u8A00\u3057\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u304B\u3089 \`node --test ${e}\` \u3067\u5B9F\u884C\u3057\u307E\u3059\u3002Testbot \u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u884C\u308F\u306A\u3044\u305F\u3081\u3001\u305D\u306E CI \u30B8\u30E7\u30D6\u306B \`id-token: write\` \u6A29\u9650\u3068 TESTBOT_POLICY_ORIGIN \u306F\u4E0D\u8981\u3067\u3059\u3002`,"guardedEntryCi"),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"),lintNotRun:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u3092\u30C1\u30A7\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30EA\u30F3\u30BF\u30FC\u3092\u901A\u3055\u305A\u306B\u63D0\u51FA\u3057\u307E\u3057\u305F: ${e}\u3002`,"lintNotRun"),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"),appRestarted:o(e=>`\u5B9F\u884C\u4E2D\u306B\u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u30D8\u30EB\u30B9\u30C1\u30A7\u30C3\u30AF\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u3001Testbot \u306F\u30C6\u30B9\u30C8\u3092\u5358\u72EC\u3067\u5B9F\u884C\u3059\u308B\u524D\u306B\u3001\u8A18\u9332\u3055\u308C\u305F\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u3067\u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u518D\u8D77\u52D5\u3057\u307E\u3057\u305F: ${e}`,"appRestarted"),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",dataSafetyGuardUnavailable:"\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u8AAD\u307F\u8FBC\u3081\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u306E\u30D7\u30ED\u30AD\u30B7\u306F\u30D7\u30ED\u30FC\u30D6\u3001\u30C6\u30B9\u30C8\u3001\u305D\u306E\u4ED6\u306E\u30B3\u30DE\u30F3\u30C9\u304B\u3089\u5171\u6709\u74B0\u5883\u3078\u306E\u3059\u3079\u3066\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u62D2\u5426\u3057\u3001Testbot \u306F\u5171\u6709\u74B0\u5883\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\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"),playwrightNotRouted:o((e,t)=>`Testbot \u304C Playwright \u306E API \u30EA\u30AF\u30A8\u30B9\u30C8\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\uFF08request \u30D5\u30A3\u30AF\u30B9\u30C1\u30E3\u3001page.request\u3001request.newContext\uFF09\u3092\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u7D4C\u7531\u3067\u9001\u308B\u306E\u306F Playwright ${t} \u306E\u5834\u5408\u3060\u3051\u3067\u3059\u3002\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u30A2\u30A6\u30C8\u306E Playwright \u306F ${e} \u306E\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u306B\u5230\u9054\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,"playwrightNotRouted"),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"),dataSafetyNoClientCertificate:o((e,t)=>`${e} \u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u7D4C\u7531\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092 Cloudflare \u306E\u30C1\u30E3\u30EC\u30F3\u30B8\u307E\u305F\u306F TLS \u30CF\u30F3\u30C9\u30B7\u30A7\u30A4\u30AF\u3067\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u539F\u56E0\u306F\u8A3C\u660E\u66F8\u3067\u306F\u306A\u304F\u30D7\u30ED\u30AD\u30B7\u306E\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002\u30D7\u30ED\u30AD\u30B7\u306F TLS \u3092\u81EA\u8EAB\u3067\u7D42\u7AEF\u3057\u3001\u3053\u306E\u30DB\u30B9\u30C8\u306B\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u8A3C\u660E\u66F8\u3092\u9001\u4FE1\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u8A3C\u660E\u66F8\u3092\u9001\u4FE1\u3059\u308B\u306E\u306F ${t} \u304C\u305D\u306E\u30DB\u30B9\u30C8\u3092\u6307\u5B9A\u3057\u3066\u3044\u308B\u5834\u5408\u3060\u3051\u3067\u3059\u3002`,"dataSafetyNoClientCertificate"),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"),dataSafetyKeptRecords:o((e,t)=>`\u30C6\u30B9\u30C8\u306F\u3001\u30C6\u30B9\u30C8\u30C7\u30FC\u30BF\u3092\u4FDD\u6301\u3059\u308B\u6A29\u9650 (\u74B0\u5883 ${e}\u3001\u30DD\u30EA\u30B7\u30FC\u30EA\u30D3\u30B8\u30E7\u30F3 ${t}) \u306E\u3082\u3068\u3067\u3001\u6B21\u306E\u30EC\u30B3\u30FC\u30C9\u3092\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3057\u307E\u3057\u305F`,"dataSafetyKeptRecords")},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",nextStepPackageSource:"Ubuntu \u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u914D\u5E03\u5143\u304C\u518D\u3073\u5229\u7528\u53EF\u80FD\u306B\u306A\u3063\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30DB\u30B9\u30C8\u3084\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},nextSteps:{componentMismatch: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 \u306E Web \u30A2\u30D7\u30EA\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"),testsPinnedNotDelivered:o((e,t,n)=>`${e}: ${t} \u4EF6\u306E\u30C6\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u3001${n} \u4EF6\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30B3\u30DF\u30C3\u30C8\u306B\u56FA\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u3053\u308C\u3089\u306E\u5909\u66F4\u306F\u914D\u4FE1\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,"testsPinnedNotDelivered"),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"),testsHeldBack:o((e,t,n,i)=>`${e?"\u4E00\u90E8\u306E\u30C6\u30B9\u30C8\u306E\u307F\u63D0\u51FA\u3057\u307E\u3057\u305F":"\u30C6\u30B9\u30C8\u3092\u63D0\u51FA\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F"}\u3002\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F ${t} \u306B\u307E\u3060\u306A\u3044\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u4FDD\u7559\u3057\u307E\u3057\u305F: ${n}\u3002\u5909\u66F4\u5185\u5BB9\u306F\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u306E ${i} \u306B\u3042\u308A\u307E\u3059\u3002`,"testsHeldBack"),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 Die={en:zh,ja:Dj},_ie="en";function no(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(no,"labelOf");function ue(){return Die[_ie]}o(ue,"t");var Nie=4;var Nj="\xABredacted\xBB";function Pj(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=Nie&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(Pj,"redactionsFrom");function Pie(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(Pie,"redactGitCredentials");var Uie=/\.skyramp(?:\/sut(?:\/(?:setup\.sh|teardown\.sh|health\.json|health-check\.sh|deployed-revisions\.sh|get-auth-token\.sh))?)?|\bSKYRAMP(?=_)|@skyramp\/(?:mcp|skyramp|testbot)\b|\bskyramp(?=[A-Z])|outputs\/onboard-hooks(?:\/(?:setup-event|setup-hooks)\.mjs)?/g;function Fie(e){return[...e.matchAll(Uie)].map(t=>[t.index,t.index+t[0].length])}o(Fie,"ownNames");function Oie(e,t){let n=Fie(e),i=[];for(let r=e.indexOf(t);r!==-1;r=e.indexOf(t,r+t.length))n.some(([s,a])=>s<=r&&r+t.length<=a)||i.push(r);return i}o(Oie,"outsideOwnNames");function Yn(e,t){if(!e||t.length===0)return e;let n=e;for(let i of t){if(!i||!n.includes(i))continue;let r=Oie(n,i);for(let s=r.length-1;s>=0;s-=1)n=n.slice(0,r[s])+Nj+n.slice(r[s]+i.length)}return n}o(Yn,"redactSecrets");function ro(e,t){return Yn(Pie(e),t)}o(ro,"redactCredentials");function Mie(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(Mie,"mapStrings");function ga(e,t){return t.length===0?e:Mie(e,n=>Yn(n,t))}o(ga,"redactDeep");var uBe=new TextDecoder("utf-8",{fatal:!0});var Fj=600,qh=300;function Uj(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(Uj,"streamText");function Lie(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[Uj(t?.stderr),Uj(t?.stdout)].filter(Boolean);return i.length?[n.split(`
137
137
  `)[0],...i].join(`
138
138
  `):n}o(Lie,"thrownText");function Oj(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(Oj,"headAndTail");function Mj(e,t){return Oj(e.trim().split(`
139
139
  `),`
@@ -246,7 +246,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
246
246
  `:e.text??"")}o(ehe,"writeFrame");function the(e){ehe({command:e})}o(the,"writeAzureCommand");function AJ(e){return e.replace(/%/g,"%AZP25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(AJ,"escapeData");function nhe(e){return AJ(e).replace(/;/g,"%3B").replace(/]/g,"%5D")}o(nhe,"escapeProperty");function rhe(e,t,n){let i=Object.entries(t).map(([r,s])=>`${r}=${nhe(s)}`).join(";");return`##vso[${e}${i?` ${i}`:""}]${AJ(n)}`}o(rhe,"vsoCommand");function ihe(e){if(!e)return[];let t=e.split(/\r?\n/).filter(n=>n.trim()&&n!==e);return[e,...t].map(n=>rhe("task.setsecret",{},n))}o(ihe,"setSecretLines");function hJ(e,t=the){for(let n of ihe(e))t(n)}o(hJ,"azureSetSecret");function Wf(e){return e.replace(/\/+$/,"")}o(Wf,"withoutTrailingSlash");function ZT(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(ZT,"azureOrganization");var she=/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,48}[A-Za-z0-9])?$/,ohe=/[\\/:*?"<>|;#${},+=[\]%\p{Cc}\p{Cf}]/u;function mJ(e){return e.length>0&&e.length<=64&&e===e.trim()&&!ohe.test(e)&&!/[^\S ]/u.test(e)&&!/^[._]/.test(e)&&!e.endsWith(".")}o(mJ,"isName");function qE(e){return KT(`${e.namespace}/${e.name}`)}o(qE,"azureRepositoryOfSource");function KT(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||!she.test(i)||!mJ(r)||!mJ(s))throw new Error(`"${e}" is not an Azure DevOps organization/project/repository`);return{organization:i,project:r,name:s}}o(KT,"azureRepositoryOf");function yJ(e,t){let n=ZT(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(yJ,"inOrganization");function EJ(e,t){return yJ(e,t),`${Wf(e)}/${encodeURIComponent(t.project)}/_git/${encodeURIComponent(t.name)}`}o(EJ,"azureCloneUrl");function XT(e,t){return yJ(e,t),`${Wf(e)}/${encodeURIComponent(t.project)}/_apis/git/repositories/${encodeURIComponent(t.name)}`}o(XT,"azureRepositoryApi");var ahe="7.1",Yf=class extends Error{constructor(n,i){super(n);this.status=i}status;static{o(this,"AzureRestError")}};async function e0(e){let t=e.accept??"application/json",n=new URL(e.url);n.searchParams.has("api-version")||n.searchParams.set("api-version",ahe);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 Yf(`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(e0,"azureRest");function che(e){return`AUTHORIZATION: bearer ${e}`}o(che,"azureGitAuthorization");function bJ(e,t){return{GIT_CONFIG_COUNT:"1",GIT_CONFIG_KEY_0:`http.${Wf(e)}/.extraheader`,GIT_CONFIG_VALUE_0:che(t)}}o(bJ,"azureGitAuthEnv");var uhe="7.1-preview.1",lhe=".azure-pipelines/skyramp-testbot-v3.yml";function t0(e){return e.GITHUB_ACTIONS!=="true"&&/^true$/i.test(e.TF_BUILD??"")}o(t0,"isAzurePipelines");function wJ(e,t={}){let n=o(f=>{let A=e[f];if(!A)throw new Error(`${f} is not set; the V3 runner handshake needs it`);return A},"read"),i=Wf(e.SYSTEM_COLLECTIONURI??""),r=o(()=>ZT(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=>hJ(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 A=new URL(f);if(A.protocol!=="https:")throw new Error("SYSTEM_OIDCREQUESTURI is not an https URL");A.searchParams.set("api-version",uhe);let h=await(t.fetch??fetch)(A.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:t0(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 A=n("SYSTEM_COLLECTIONID").toLowerCase();if(!Tu.test(A))throw new Error(`SYSTEM_COLLECTIONID is "${A}", not a GUID`);let h=n("BUILD_REPOSITORY_ID").toLowerCase();if(!Tu.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:A,providerRepositoryId:h},providerRunId:m,providerRunAttempt:Number(f),workflowRef:`${lhe}@${n("BUILD_SOURCEBRANCH")}`}},takeIdToken(){let f=e.SYSTEM_OIDCREQUESTURI;delete e.SYSTEM_OIDCREQUESTURI;let A=p(f);return()=>A()},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){qE(f)},cloneUrl(f){return EJ(i,qE(f))},gitAuthEnv(f){return bJ(i,f)},async pullRequest(f,A,h){let m=await e0({token:await h.token(),url:`${XT(i,qE(f))}/pullrequests/${A}`,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,A,h){let m;try{m=XT(i,KT(f))}catch{return{lookup:"unknown"}}try{let E=await e0({token:await h.token(),url:`${m}/commits/${encodeURIComponent(A)}`,fetch:h.fetch});return typeof E.commitId=="string"?{sha:E.commitId}:{lookup:"missing"}}catch(E){return{lookup:E instanceof Yf&&(E.status===404||E.status===400)?"missing":"unknown"}}}}}o(wJ,"azureRunnerHost");hu();var dhe=5e3,n0=/^(?!\.\.?$)[A-Za-z0-9._-]{1,100}$/;function phe(e){let t=Buffer.from(`x-access-token:${e}`).toString("base64");return rp(t),`AUTHORIZATION: basic ${t}`}o(phe,"githubGitAuthorization");function CJ(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 A=await fetch(f,{headers:{Authorization:`Bearer ${l}`,Accept:"application/json"},redirect:"error",signal:AbortSignal.timeout(3e4)});if(!A.ok)throw new Error(`GitHub refused the OIDC token request: ${A.status}`);let h=(await A.json().catch(()=>({}))).value;if(typeof h!="string"||!h)throw new Error("GitHub's OIDC token response carried no token");return rp(h),h}},webIdentity(){return!e.ACTIONS_ID_TOKEN_REQUEST_TOKEN?.trim()||!e.ACTIONS_ID_TOKEN_REQUEST_URL?.trim()?void 0:{token:t.getIDToken??(l=>$j(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(!n0.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:phe(u)}:{}},async pullRequest({namespace:u,name:l},p,f){if(![u,l].every(m=>n0.test(m)))throw new Error("the repository name is not valid");let A=await c(`${a}/repos/${u}/${l}/pulls/${p}`,f);if(!A.ok)throw new Error(`GitHub answered ${A.status}`);let h=await A.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,A,...h]=u.split("/");if(h.length||![f,A].every(m=>m!==void 0&&n0.test(m)))return{lookup:"unknown"};try{let m=await c(`${a}/repos/${f}/${A}/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(dhe)});if(!p.ok&&p.status!==401)throw new Error(`GitHub answered ${p.status}`)}}}o(CJ,"githubRunnerHost");function r0(e=process.env){return t0(e)?wJ(e):CJ(e)}o(r0,"runnerHost");var Zf=ee(require("net"));var fhe="storage.googleapis.com",CFe=`${fhe}:443`;var BJ=new Zf.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]])BJ.addSubnet(e,t,"ipv4");for(let[e,t]of[["::",128],["::1",128],["fc00::",7],["fe80::",10],["ff00::",8]])BJ.addSubnet(e,t,"ipv6");var SFe=64*1024*1024,SJ=3e3;var ghe=1e4,kFe=SJ+ghe+SJ;var BFe=`the data-safety proxy may be the cause: it ends TLS itself and sent no client certificate to this host, and it sends one only when ${YT} names it`;var Kf=ee(require("net"));var Rl=new Kf.BlockList;Rl.addSubnet("127.0.0.0",8,"ipv4");Rl.addSubnet("0.0.0.0",8,"ipv4");Rl.addAddress("::1","ipv6");Rl.addAddress("::","ipv6");Rl.addSubnet("::ffff:127.0.0.0",104,"ipv6");Rl.addSubnet("::ffff:0.0.0.0",104,"ipv6");var HE=ee(require("fs")),sc=ee(require("path"));var mhe={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 aOe=new Set(Object.values(mhe));var AOe=5*6e4;function a0(e){try{let i=JSON.parse(HE.readFileSync(sc.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=sc.resolve(e);for(let i=0;i<6;i++){for(let[s,a]of t)if(HE.existsSync(sc.join(n,s)))return a;let r=sc.dirname(n);if(r===n)break;n=r}return"npm"}o(a0,"packageManagerOf");var QJ=["package-lock.json","npm-shrinkwrap.json","pnpm-lock.yaml","yarn.lock","bun.lock","bun.lockb"],Ehe={"package.json":QJ,"pyproject.toml":["poetry.lock","uv.lock","pdm.lock"],Pipfile:["Pipfile.lock"]};function JE(e,t){let n=bt.basename(t),i=Ehe[n];if(!i)return[];let r=bt.resolve(e),s=bt.dirname(bt.resolve(r,t)),a=bt.relative(r,s);if(a===".."||a.startsWith(`..${bt.sep}`)||bt.isAbsolute(a))return[];let c=o((l,p)=>p.map(f=>bt.join(bt.relative(r,l),f)).filter(f=>Hf(r,f)),"trackedIn"),u=c(s,i);if(u.length)return u;for(let l=s;l!==r;){l=bt.dirname(l);let p=bhe(l,bt.relative(l,s).split(bt.sep).join("/"),n);if(p)return c(l,p)}return[]}o(JE,"trackedLockfiles");function l0(e,t){return t.filter(n=>qT(e,n)&&eg(bt.join(e,n)))}o(l0,"updatedLockfiles");function bhe(e,t,n){if(n==="package.json"){let i=She(bt.join(e,"pnpm-workspace.yaml"));if(c0(i?.packages,t))return["pnpm-lock.yaml"];let s=Ihe(bt.join(e,"package.json"))?.workspaces,a=Array.isArray(s)?s:s?.packages;return c0(a,t)?QJ.filter(c=>c!=="pnpm-lock.yaml"):void 0}if(n==="pyproject.toml"){let i=vhe(bt.join(e,"pyproject.toml"));if(i&&c0([...i.members,...i.exclude.map(r=>`!${r}`)],t))return["uv.lock"]}}o(bhe,"workspaceLockfiles");function c0(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=>bt.matchesGlob(t,a))&&!s.some(a=>bt.matchesGlob(t,a))}o(c0,"lists");function vhe(e){let t;try{t=Xf.readFileSync(e,"utf-8")}catch{return}let n=t.split(`
247
247
  `),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(`
248
248
  `),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(vhe,"uvWorkspace");function Ihe(e){return whe($J(e))}o(Ihe,"readJson");function whe(e){try{return JSON.parse(e)}catch{return}}o(whe,"parseJson");function Che(e){try{return Ro(e)}catch{return}}o(Che,"parseYaml");function She(e){return Che($J(e))}o(She,"readYaml");function $J(e){try{return Xf.readFileSync(e,"utf-8")}catch{return""}}o($J,"readText");function eg(e){try{return Xf.lstatSync(e).isFile()}catch{return!1}}o(eg,"isFile");var khe=50,Bhe=50,Rhe=4096,xhe=8e3,Qhe=2048,$he=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f]/,The=/^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))[A-Za-z0-9._/ -]{1,255}$/,Dhe=/^\.github\/workflows\/[A-Za-z0-9._-]+\.ya?ml$/,_he=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,DJ=(s=>(s.Command="command",s.ComposeFile="compose_file",s.DeploymentWorkflow="deployment_workflow",s.Url="url",s.Guidance="guidance",s))(DJ||{}),Nhe={command:"optional",compose_file:"required",deployment_workflow:"required",url:"none",guidance:"none"},TJ=o(e=>d.string().max(e).refine(t=>t.trim().length>0&&!$he.test(t),"must be non-blank text with no control characters other than tab, LF and CR"),"freeText");function Phe(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(Phe,"urlProblem");var Uhe={command:TJ(Rhe),compose_file:d.string().regex(The,"must be a relative path inside the repository"),deployment_workflow:d.string().regex(Dhe,"must be a .github/workflows/*.yml path"),url:d.string().max(Qhe).superRefine((e,t)=>{let n=Phe(e);n&&t.addIssue({code:d.ZodIssueCode.custom,message:n})}),guidance:TJ(xhe)},Fhe=d.object({kind:d.nativeEnum(DJ),value:d.string(),repository:vr.nullable()}).strict().superRefine((e,t)=>{let n=Nhe[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=Uhe[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})}),Ohe=d.object({name:d.string().regex(_he,"must be a GitHub Actions secret name (A-Z, 0-9, _; not GITHUB_ or SKYRAMP_RUNNER_)"),purpose:d.nativeEnum(up),required:d.boolean()}).strict(),_J=d.object({knowledge:d.array(Fhe).max(khe),credentials:d.array(Ohe).max(Bhe)}).strict(),SOe=_J.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 Mhe=new Set(["components","dependencies","offLimits","allowedEgress","runner","agentPool","uiLogins","testEnvironments"]),NJ=Object.freeze([..._J.keyof().options,...Mhe]);var kOe={model_provider:"model provider",sut_access:"SUT access",skyramp:"Skyramp",other:"other"};var Lhe="SKYRAMP_TEST_SERVICE_URL_";var jhe=`${Lhe}UI`;var YE="test-package.json";var Ghe=["node_modules",".venv","test-results","playwright-report","blob-report","__pycache__",".pytest_cache"];var UJ=o(e=>e.split(ks.sep).join("/"),"posix");function WE(e,t){let n=UJ(e);return t.some(i=>n===i||n.startsWith(`${i}/`))}o(WE,"insidePackage");function d0(e){return UJ(e).split("/").some(t=>Ghe.includes(t))}o(d0,"producedByPackage");var iMe=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"),sMe=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 oMe=String.raw`localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1?\]|::1`;var Hhe=o(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"escapeRegex"),FJ=/%[psdifjo#]|\$[A-Za-z_][\w.]*/g;var Jhe=/ (?:>|›) /;function Yhe(e){return e.split(FJ).map(t=>t.split(Jhe).map(Hhe).join("(?: > | \u203A | )")).join(".+?")}o(Yhe,"testNamePattern");function OJ(e,t){return new RegExp(FJ.source).test(t)?new RegExp(`^(?:.* )?${Yhe(t)}$`).test(e):!1}o(OJ,"isEachCaseOf");var f0=require("child_process"),xl=ee(require("fs")),MJ=ee(require("os")),ZE=ee(require("path"));var Whe={onPath:o(e=>(0,f0.spawnSync)("sh",["-c",`command -v ${e}`],{stdio:"ignore"}).status===0,"onPath"),run:o((e,t)=>(0,f0.spawnSync)(e[0],e.slice(1),{cwd:t,stdio:"ignore",timeout:6e4}).status??1,"run")},tg={cleanup:o(()=>{},"cleanup")},Zhe=new Set(["pnpm","yarn"]);function g0(e,t=MJ.tmpdir(),n=Whe,i=a0(e)){if(process.platform==="win32")return tg;try{if(Xi(e)||!Zhe.has(i)||n.onPath(i)||!n.onPath("corepack"))return tg;xl.mkdirSync(t,{recursive:!0});let r=xl.mkdtempSync(ZE.join(t,"testbot-pm-")),s=o(()=>xl.rmSync(r,{recursive:!0,force:!0}),"cleanup");return n.run(["corepack","enable","--install-directory",r,i],e)!==0?(s(),tg):{dir:r,cleanup:s}}catch{return tg}}o(g0,"packageManagerShims");function LJ(e,t=process.env){return e.dir?{...t,PATH:[e.dir,t.PATH].filter(Boolean).join(ZE.delimiter)}:t}o(LJ,"withShims");var RMe={jest:"jest",vitest:"vitest"};var _o=ee(require("fs")),Ql=ee(require("path"));function Kt(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 A=u;A<n.length;A++){let h=n[A];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,A+1));m!==void 0&&Object.keys(m).length>0&&(c=m,u=A);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: "${tme(Yn(n,t))}"`}}o(Kt,"extractJsonObject");var GJ=240;function tme(e){let t=e.replace(/\s+/g," ").trim();return t.length<=GJ?t:`\u2026${t.slice(-GJ)}`}o(tme,"snippetOf");var Rs=(r=>(r.ExistingEvidenceSufficient="existing_evidence_sufficient",r.TargetedUnit="targeted_unit",r.RuntimeRequired="runtime_required",r.BlockedPreflight="blocked_preflight",r))(Rs||{}),xs=(s=>(s.ExistingEvidence="existing_evidence",s.Unaffected="unaffected",s.ExistingUnit="existing_unit",s.NewUnit="new_unit",s.Runtime="runtime",s))(xs||{}),A0=(n=>(n.Repository="repository",n.Testbot="testbot",n))(A0||{}),h0=(i=>(i.Identified="identified",i.Passed="passed",i.Failed="failed",i))(h0||{}),or=d.string().trim().min(1),nme=d.string().regex(/^[a-z0-9][a-z0-9-]*$/,"must be a short lowercase slug").describe("short-slug");var rme=d.object({id:nme,source:d.nativeEnum(A0),kind:d.nativeEnum(co),outcome:d.nativeEnum(h0),summary:or.max(400).describe("one line: what it shows"),tests:d.array(or).optional().describe("source repository: the existing tests, as repo-relative paths, optionally path::test-name"),repository:or.optional().describe("source repository: owner/repo the tests live in, when the run has several checkouts; omit for the working checkout"),command:or.optional().describe("source testbot: the exact command you ran, as you ran it"),run:ic.optional().describe(`source repository, for tests in ${Cl}: 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`)}),ime=d.object({behaviorId:or.describe("an id from analyze's behaviors"),mechanism:d.nativeEnum(xs),evidenceIds:d.array(or).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')}),m0=(i=>(i.Browser="browser",i.RunningApp="running-app",i.Outside="outside",i))(m0||{}),sme=d.object({behaviorId:d.string().trim().optional().describe("an id from analyze's behaviors, when it is about one"),missing:or.max(600).describe("the evidence that is required and cannot be obtained in this run"),needs:d.nativeEnum(m0).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)")}),ome=d.object({file:or.describe("the changed file the failure is in"),repository:or.optional().describe("owner/repo the file is in, when the run has several checkouts; omit for the working checkout"),reason:or.max(300).describe("what prerequisite the change fails"),evidence:or.max(400).describe("the error line, quoted")}),ame=d.object({behaviorId:or.describe("an id from analyze's behaviors"),reason:or.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)")}),ng=d.object({schemaVersion:d.literal(1),decision:d.nativeEnum(Rs),evidence:d.array(rme).describe("evidence this session found or produced; CI results are the ci-<n> items and are not restated here"),plan:d.array(ime).describe("how each changed behavior's evidence is obtained"),gaps:d.array(sme),outOfScope:d.array(ame).optional().describe("behaviors analyze found that this change neither changes nor states"),blocked:ome.optional().describe("only for blocked_preflight"),rationale:or.max(1200).describe("\u22641200 characters: why this evidence is enough, or what it still lacks \u2014 the scope you chose and why")});function cme(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(cme,"issuesToMessages");function jn(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})=>VJ(a,c),t));if(s.success)return{value:s.data,errors:[]}}catch{}return{errors:cme(n.error)}}o(jn,"validateWith");function VJ(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]=VJ(r[n],i):delete r[n],r}o(VJ,"withoutAt");var rg="shared-environment";var eLe=64*1024;var tLe=new Set(["version_endpoint","api"]);function KE(e){return(e?.components??[]).filter(t=>!!t.repository&&!!t.expectedRevision)}o(KE,"verifiableComponents");var zJ=o((e,t)=>!!e&&!!t&&e.toLowerCase()===t.toLowerCase(),"sameRepository"),dme=o((e,t)=>e.name===t.name&&zJ(e.repository,t.repository),"sameComponent");function qJ(e){return KE(e).length>0||(e?.dependencies.length??0)>0}o(qJ,"hasSharedSystem");function HJ(e){let t=e.inputs?.sharedEnvironment;if(!qJ(t))return;let n=ve(e,`${rg}.json`);if(n)return{components:YJ(t,n.components),dependencies:n.dependencies};let i="Not checked: the run ended before it checked the shared environment.";return{components:KE(t).map(r=>JJ(r,i)),dependencies:t.dependencies.map(r=>({name:r.name,url:r.url,version:null,evidence:i}))}}o(HJ,"sharedSystem");var JJ=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 YJ(e,t){let n=new Set(t.map(r=>r.name.toLowerCase())),i=KE(e).filter(r=>!n.has(r.name.toLowerCase()));return[...t,...i.map(r=>JJ(r,"Not checked: the run recorded no read of it."))]}o(YJ,"withUnrecorded");function y0(e){return(HJ(e)?.components??[]).filter(t=>t.status!=="verified")}o(y0,"unverifiedComponents");function E0(e,t,n){if(!e.appRunning||n===!1)return[];let i=KE(e.sharedEnvironment);return YJ(e.sharedEnvironment,t?.components??[]).filter(r=>r.status!=="verified"&&i.some(s=>dme(s,r)))}o(E0,"blockingComponents");function WJ(e){let t=o(n=>{let i=`${n.name} (${n.repository}) must run ${Du(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 ${Du(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(WJ,"blockReason");function b0(e){return(e?.components??[]).filter(t=>!!t.repository&&!t.expectedRevision)}o(b0,"unfrozenComponents");function Do(e){let t=ve(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(Do,"readRecommend");function v0(e){return XJ(e)&&y0(e).length===0&&b0(e.inputs?.sharedEnvironment).length===0}o(v0,"sutIsHealthy");function XJ(e){let t=bme(e);if(!t&&e.state.stages.deploy?.status!=="passed")return!1;let n=ve(e,"deploy.json");return n?Eme(n):!t}o(XJ,"sutCameUp");function Eme(e){return e?.outcome==="clean"||e?.outcome==="recipe-drift"}o(Eme,"deployCameUp");function bme(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(bme,"broughtUpByPlan");var C0=".skyramp/staged";function Ime(e){return jn(UC,e).errors}o(Ime,"validateGenerateOutput");function wme(e,t=[]){let{value:n,error:i}=Kt(e,t);if(i)return{errors:[i]};let r=Ime(n);return r.length>0?{errors:r}:{generate:n,errors:[]}}o(wme,"parseGenerateText");function XE(e,t=[]){return wme(e.stdout,t)}o(XE,"parseGenerateFromSession");function Cme(e){return e.generate.filter(t=>t.type!=="ui").map(t=>t.id)}o(Cme,"backendCases");function S0(e){return e.generate.filter(t=>t.type==="ui").map(t=>t.id)}o(S0,"uiCases");var eb={backend:{stage:"generate",cases:Cme,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:Aq,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:S0,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:hq,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."}},tje=Kn("generate-schema",(e,t)=>XE(t,e.secretValues));function Sme(e){let t=eb[e];return{name:`${t.stage}-coverage`,verify(n,i){let{generate:r,errors:s}=XE(i,n.secretValues);if(!r)return ln(this.name,s);let a=Do(n);if(!a)return ln(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),A=new Set(S0(a));for(let h of A)!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)A.has(h)||u.push(`deferredUi lists "${h}" which is not a UI case`)}return u.length===0?{name:this.name,passed:!0}:ln(this.name,u)}}}o(Sme,"generateCoverageGateFor");function kme(e){let t=eb[e];return{name:`${t.stage}-intent`,verify(n,i){let{generate:r,errors:s}=XE(i,n.secretValues);if(!r)return ln(this.name,s);let a=Do(n);if(!a)return ln(this.name,[t.noRecommendIntent]);let{asserted:c,errors:u,badFiles:l}=Dme(r,n.inputs.repositoryPath),p=u.length;for(let A of t.cases(a))c.has(A)||u.push(t.unasserted(A));if(u.length===0)return{name:this.name,passed:!0};let f=ln(this.name,u);return p>0&&p===u.length&&l.size>0?{...f,droppable:[...l]}:f}}}o(kme,"generateIntentGateFor");function Bme(e){let t=eb[e];return n=>{if(!n.inputs.skyrampMcp?.command||e==="backend"&&!v0(n))return;let i=Ql.join(n.outputsDir,`${t.stage}-stream.ndjson`);if(!(!_o.existsSync(i)||t.usedCodegen(i)))return mq(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(Bme,"codegenRetryHintFor");var nje=Sme("backend"),rje=kme("backend"),ije=Bme("backend");var eY=o(e=>e.replace(/\s+/g,""),"squeeze");var I0={python:[/\bassert\s*[({\w"'`]/g,/\bpytest\.raises\s*\(/g,/\bself\.assert\w*\s*\(/g],typescript:[/\bexpect\s*\(/g,/\.should\b/g,/\bassert\s*[.(]/g],go:[/\bt\.(Error|Errorf|Fatal|Fatalf|Fail|FailNow)\s*\(/g,/\b(assert|require)\.\w+\s*\(/g],java:[/\bassert\w*\s*\(/g,/\bassertThat\s*\(/g],ruby:[/\bexpect\s*[({]/g,/\bassert\w*\b/g,/\.should\b/g]};for(let[e,t]of[["javascript","typescript"],["kotlin","java"]])I0[e]=I0[t];function Rme(e,t){if(e.includes(Qp(t))||eY(e).includes(eY(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(Qp(i)))?!0:Tme(e,t)}o(Rme,"evidenceFound");var xme=/\bassert\w*\b|\bexpect\s*\(|\.should\b|\brequire\s*\(/i,Qme=12,$me=/,\s*\(\s*#|,\s*f?["'`]|\s+#\s|\s+\/\/|\s*\((?:line|lines|at line)\b|\s*,\s*$/i;function Tme(e,t){let n=t.split(/\s*;\s*|\s*\.\.\.\s*|\r?\n/),i=0;for(let r of n){let s=xme.exec(r);if(!s)continue;let a=r.slice(s.index),c=$me.exec(a);if(c&&(a=a.slice(0,c.index)),a=Qp(a).replace(/[,\s]+$/,""),a.length<Qme||!e.includes(a))return!1;i++}return i>0}o(Tme,"annotatedAssertionFound");function Dme(e,t){let n=new Set,i=[],r=new Set;for(let s of e.tests){let a=Ql.resolve(t,s.file);if(!_o.existsSync(a))continue;let c=Qp(_o.readFileSync(a,"utf-8"));for(let u of s.assertions??[]){if(!Rme(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(Dme,"verifiedAssertions");var _me=/\.(spec|test)\.[cm]?[jt]sx?$/i;function tY(e){let t;try{t=Vt([...Qr,"status","--porcelain","--untracked-files=all"],{env:Gt(),cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]})}catch{return}let n=o(r=>/_scaffold/i.test(r)||$p.test(r),"isTestLitter"),i=[];for(let r of t.split(`
249
- `)){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(tY,"testLitter");function Nme(e){let t=eb[e],n=e==="ui";return{name:`${t.stage}-no-litter`,verify(i){let r=tY(i.inputs.repositoryPath);if(r===void 0)return{name:this.name,passed:!0};let s=r.filter(a=>_me.test(a)===n);return s.length===0?{name:this.name,passed:!0}:ln(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(Nme,"noLitterGateFor");var sje=Nme("backend");var ig=ee(require("fs")),oc=ee(require("path"));var rY=ee(require("path"));var Lme="test-execution-contexts.json";var Vje=10*6e4;function B0(e){let t=Gi(rY.join(e.outputsDir,Lme));return Array.isArray(t)?t:[]}o(B0,"readContexts");var R0=o((e,t)=>e.file===t.file&&(e.repository??"")===(t.repository??""),"sameTest");function x0(e){return e.filter((t,n)=>!e.slice(n+1).some(i=>R0(t,i)))}o(x0,"latestContexts");function oY(e){return jn(OC,e).errors}o(oY,"validateAdaptOutput");function Vme(e,t=[]){let{value:n,error:i}=Kt(e,t);if(i)return{errors:[i]};let r=oY(n);return r.length>0?{errors:r}:{adapt:n,errors:[]}}o(Vme,"parseAdaptText");var zme="adapt-scratch",iY=`${zme}/adapt-result.json`;function aY(e,t){let n=oc.join(e.outputsDir,iY),i;try{i=ig.readFileSync(n,"utf-8")}catch{i=void 0}if(i!==void 0&&(e.secretValues??[]).some(a=>i.includes(a)))return{errors:[`${iY} contains a secret value (token / credential) \u2014 never write it anywhere`]};let r=Vme(t.stdout,e.secretValues);if(r.adapt)return r;let s=i!==void 0?Gi(n):void 0;return s!==void 0&&oY(s).length===0?{adapt:s,errors:[]}:r}o(aY,"parseAdaptFromSession");var u1e=Kn("adapt-schema",aY);function cY(e){return tb(e).map(t=>t.path)}o(cY,"touchedFiles");function tb(e){return uY(e)??[]}o(tb,"statusEntries");function uY(e){let t;try{t=Vt([...Qr,"status","--porcelain","-z","--untracked-files=all"],{env:Gt(),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(uY,"readStatusEntries");var b1e=2*1024*1024;var qme=[["target","surefire-reports"],["target","failsafe-reports"],["build","test-results"]],DGe=new Set(qme.map(([e])=>e));var _Ge=["jest","vitest","npm-test","playwright"];var Tl=ee(require("fs")),Mt=ee(require("path"));var dY=String.raw`(?:\[[^\]]*\]|\([^)]*\))`,Hme=String.raw`(?:["'\u201c\u2018\x60]|\*{1,2})?[^\s:"'\u201c\u201d\u2018\u2019\x60*()[\],]+(?:["'\u201d\u2019\x60]|\*{1,2})?`,pY=String.raw`(?:${dY}|${Hme}(?:\s*${dY})?)`,fY=String.raw`(?:\s*:|\s+[\u2014\u2013-])`,FGe=new RegExp(String.raw`^\s*(?:${pY}(?:,\s*${pY})*(?::L?\d+(?:[-\u2013]\d+)?${fY}?|${fY})|\[[^\]\s]+\]|\([^)\s]+\))\s+`);var nb=(r=>(r.RestApi="rest-api",r.Frontend="frontend",r.FullStack="full-stack",r.Other="other",r))(nb||{}),No=(r=>(r.Critical="critical",r.High="high",r.Medium="medium",r.Low="low",r))(No||{}),ac=(i=>(i.Suspected="suspected",i.Latent="latent",i.Refuted="refuted",i))(ac||{}),$0=(i=>(i.Skyramp="skyramp",i.External="external",i.Unknown="unknown",i))($0||{}),T0=(r=>(r.Cascade="cascade",r.Restrict="restrict",r.Orphan="orphan",r.Unknown="unknown",r))(T0||{}),Jr=(r=>(r.RequirementReference="requirement-reference",r.Spec="spec",r.PrDescription="pr-description",r.CouldBreak="could-break",r))(Jr||{}),pt=d.string().trim().min(1),$l=pt.describe("file:line"),gY=o(e=>pt.refine(t=>t.length<=400,t=>({message:`is ${t.length} characters, over the 400 cap \u2014 ${e}`})),"cap400"),sg=pt.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'),Q0=d.object({method:pt,path:pt,service:d.string().optional(),evidence:$l,repository:sg}),Jme=d.object({id:pt.describe("short-slug, e.g. R9"),statement:pt.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(Jr).describe("spec outranks pr-description when both state it"),evidence:pt.describe("spec: file:line or a section locator. pr-description: the quoted phrase it comes from.")}),Yme=d.object({id:pt.describe("short-slug"),statement:pt.max(400,"exceeds 400 characters \u2014 state the behaviour, do not paste the code").describe("what the change makes true"),surface:pt.describe("METHOD /path, or a component/page name"),evidence:pt.describe("file:line from the diff that introduces it"),repository:sg,satisfies:d.array(pt).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)")}),Wme=d.object({id:pt.describe("short-slug"),file:pt,line:d.number().optional(),claim:gY("shorten it to the one sentence that states the defect, and move the supporting detail into `evidence`"),severity:d.nativeEnum(No),evidence:gY("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(ac),repository:sg,conflictsWith:d.array(pt).optional().describe("requirement ids (from `requirements`) this defect contradicts or leaves unimplemented \u2014 a lower-precedence source (the diff, or the PR description) lost")}),Zme=d.object({name:pt,language:d.string().optional(),framework:d.string().optional(),evidence:$l,repository:sg}),Kme=d.object({dir:pt,framework:d.string().optional(),kind:d.nativeEnum($0),evidence:$l,repository:sg}),Xme=d.object({from:pt,to:pt,onDelete:d.nativeEnum(T0),evidence:$l}),eye=d.object({entity:pt,field:pt,values:d.array(d.string()),evidence:$l}),tye=d.object({entities:d.array(d.object({name:pt,evidence:$l})),references:d.array(Xme).describe("INBOUND references \u2014 what still points at an entity when it is deleted"),stateFields:d.array(eye)}),D0=d.object({schemaVersion:d.literal(1),repository:d.object({path:pt.describe("absolute repo path"),currentBranch:pt,baseBranch:pt}),project:d.object({type:d.nativeEnum(nb),primaryLanguage:pt,languages:d.array(d.string()),frameworks:d.array(d.string())}),services:d.array(Zme),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:pt.describe("\u2264400 chars")}),endpoints:d.object({new:d.array(Q0),modified:d.array(Q0),removed:d.array(Q0)}),existingTests:d.object({locations:d.array(Kme)}),entityMap:tye,requirements:d.array(Jme).describe("from a spec (attached or linked) and/or the PR description; empty when neither states a testable obligation"),behaviors:d.array(Yme),findings:d.array(Wme),unexamined:d.array(d.string()).describe("files or areas outside this change you did not open"),summary:pt.describe("one paragraph on what this change does and its test-relevant risk")});var Qs=d.string().trim().min(1),$s=72,nye=d.object({repository:Qs.optional().describe("owner/repo of the checkout this lint ran in, when the run has several; omit for the working checkout"),tool:d.string(),command:d.string().describe("the exact command you ran, scoped to the changed files"),clean:d.boolean(),notRun:d.string().optional().describe("why no linter checked the files, when none could (SKYR-5827): then `clean` is false and does not hold the tests back"),fixed:d.array(d.string()).optional().describe("files you fixed"),uncovered:d.array(d.string()).describe("changed/new files this linter's own config does not match (wrong extension, wrong directory) \u2014 so `clean` never examined them, even though CI may still execute them. Empty array, not omitted, when every changed/new file IS covered.")});var _0=d.object({schemaVersion:d.literal(1),lint:d.array(nye).min(1).describe("one entry per checkout this run wrote tests in, each run from that checkout"),fileConventions:d.object({ok:d.boolean(),notes:d.string().optional()}),ciReadiness:d.object({covered:d.boolean().describe("will the repo's CI run these tests?"),notes:d.string().optional(),unrecorded:d.array(d.string()).optional().describe("tests with no record of whether CI runs them: not covered, and not known to be left out")}),dependencies:d.object({added:d.array(d.object({package:d.string(),manifest:d.string(),repository:Qs.optional().describe("owner/repo of the manifest's checkout; omit for the working checkout"),reason:Qs.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).describe("every package added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own")}),support:d.array(d.object({file:Qs,repository:Qs.optional().describe("owner/repo of the file's checkout; omit for the working checkout")})).optional().describe("the files the tests need besides themselves (helper modules, page objects, fixtures, snapshots), delivered with them"),commit:d.object({message:Qs.refine(e=>e.split(`
249
+ `)){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(tY,"testLitter");function Nme(e){let t=eb[e],n=e==="ui";return{name:`${t.stage}-no-litter`,verify(i){let r=tY(i.inputs.repositoryPath);if(r===void 0)return{name:this.name,passed:!0};let s=r.filter(a=>_me.test(a)===n);return s.length===0?{name:this.name,passed:!0}:ln(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(Nme,"noLitterGateFor");var sje=Nme("backend");var ig=ee(require("fs")),oc=ee(require("path"));var rY=ee(require("path"));var Lme="test-execution-contexts.json";var zje=10*6e4;function B0(e){let t=Gi(rY.join(e.outputsDir,Lme));return Array.isArray(t)?t:[]}o(B0,"readContexts");var R0=o((e,t)=>e.file===t.file&&(e.repository??"")===(t.repository??""),"sameTest");function x0(e){return e.filter((t,n)=>!e.slice(n+1).some(i=>R0(t,i)))}o(x0,"latestContexts");function oY(e){return jn(OC,e).errors}o(oY,"validateAdaptOutput");function Vme(e,t=[]){let{value:n,error:i}=Kt(e,t);if(i)return{errors:[i]};let r=oY(n);return r.length>0?{errors:r}:{adapt:n,errors:[]}}o(Vme,"parseAdaptText");var zme="adapt-scratch",iY=`${zme}/adapt-result.json`;function aY(e,t){let n=oc.join(e.outputsDir,iY),i;try{i=ig.readFileSync(n,"utf-8")}catch{i=void 0}if(i!==void 0&&(e.secretValues??[]).some(a=>i.includes(a)))return{errors:[`${iY} contains a secret value (token / credential) \u2014 never write it anywhere`]};let r=Vme(t.stdout,e.secretValues);if(r.adapt)return r;let s=i!==void 0?Gi(n):void 0;return s!==void 0&&oY(s).length===0?{adapt:s,errors:[]}:r}o(aY,"parseAdaptFromSession");var l1e=Kn("adapt-schema",aY);function cY(e){return tb(e).map(t=>t.path)}o(cY,"touchedFiles");function tb(e){return uY(e)??[]}o(tb,"statusEntries");function uY(e){let t;try{t=Vt([...Qr,"status","--porcelain","-z","--untracked-files=all"],{env:Gt(),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(uY,"readStatusEntries");var v1e=2*1024*1024;var qme=[["target","surefire-reports"],["target","failsafe-reports"],["build","test-results"]],_Ge=new Set(qme.map(([e])=>e));var NGe=["jest","vitest","npm-test","playwright"];var Tl=ee(require("fs")),Mt=ee(require("path"));var dY=String.raw`(?:\[[^\]]*\]|\([^)]*\))`,Hme=String.raw`(?:["'\u201c\u2018\x60]|\*{1,2})?[^\s:"'\u201c\u201d\u2018\u2019\x60*()[\],]+(?:["'\u201d\u2019\x60]|\*{1,2})?`,pY=String.raw`(?:${dY}|${Hme}(?:\s*${dY})?)`,fY=String.raw`(?:\s*:|\s+[\u2014\u2013-])`,OGe=new RegExp(String.raw`^\s*(?:${pY}(?:,\s*${pY})*(?::L?\d+(?:[-\u2013]\d+)?${fY}?|${fY})|\[[^\]\s]+\]|\([^)\s]+\))\s+`);var nb=(r=>(r.RestApi="rest-api",r.Frontend="frontend",r.FullStack="full-stack",r.Other="other",r))(nb||{}),No=(r=>(r.Critical="critical",r.High="high",r.Medium="medium",r.Low="low",r))(No||{}),ac=(i=>(i.Suspected="suspected",i.Latent="latent",i.Refuted="refuted",i))(ac||{}),$0=(i=>(i.Skyramp="skyramp",i.External="external",i.Unknown="unknown",i))($0||{}),T0=(r=>(r.Cascade="cascade",r.Restrict="restrict",r.Orphan="orphan",r.Unknown="unknown",r))(T0||{}),Jr=(r=>(r.RequirementReference="requirement-reference",r.Spec="spec",r.PrDescription="pr-description",r.CouldBreak="could-break",r))(Jr||{}),pt=d.string().trim().min(1),$l=pt.describe("file:line"),gY=o(e=>pt.refine(t=>t.length<=400,t=>({message:`is ${t.length} characters, over the 400 cap \u2014 ${e}`})),"cap400"),sg=pt.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'),Q0=d.object({method:pt,path:pt,service:d.string().optional(),evidence:$l,repository:sg}),Jme=d.object({id:pt.describe("short-slug, e.g. R9"),statement:pt.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(Jr).describe("spec outranks pr-description when both state it"),evidence:pt.describe("spec: file:line or a section locator. pr-description: the quoted phrase it comes from.")}),Yme=d.object({id:pt.describe("short-slug"),statement:pt.max(400,"exceeds 400 characters \u2014 state the behaviour, do not paste the code").describe("what the change makes true"),surface:pt.describe("METHOD /path, or a component/page name"),evidence:pt.describe("file:line from the diff that introduces it"),repository:sg,satisfies:d.array(pt).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)")}),Wme=d.object({id:pt.describe("short-slug"),file:pt,line:d.number().optional(),claim:gY("shorten it to the one sentence that states the defect, and move the supporting detail into `evidence`"),severity:d.nativeEnum(No),evidence:gY("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(ac),repository:sg,conflictsWith:d.array(pt).optional().describe("requirement ids (from `requirements`) this defect contradicts or leaves unimplemented \u2014 a lower-precedence source (the diff, or the PR description) lost")}),Zme=d.object({name:pt,language:d.string().optional(),framework:d.string().optional(),evidence:$l,repository:sg}),Kme=d.object({dir:pt,framework:d.string().optional(),kind:d.nativeEnum($0),evidence:$l,repository:sg}),Xme=d.object({from:pt,to:pt,onDelete:d.nativeEnum(T0),evidence:$l}),eye=d.object({entity:pt,field:pt,values:d.array(d.string()),evidence:$l}),tye=d.object({entities:d.array(d.object({name:pt,evidence:$l})),references:d.array(Xme).describe("INBOUND references \u2014 what still points at an entity when it is deleted"),stateFields:d.array(eye)}),D0=d.object({schemaVersion:d.literal(1),repository:d.object({path:pt.describe("absolute repo path"),currentBranch:pt,baseBranch:pt}),project:d.object({type:d.nativeEnum(nb),primaryLanguage:pt,languages:d.array(d.string()),frameworks:d.array(d.string())}),services:d.array(Zme),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:pt.describe("\u2264400 chars")}),endpoints:d.object({new:d.array(Q0),modified:d.array(Q0),removed:d.array(Q0)}),existingTests:d.object({locations:d.array(Kme)}),entityMap:tye,requirements:d.array(Jme).describe("from a spec (attached or linked) and/or the PR description; empty when neither states a testable obligation"),behaviors:d.array(Yme),findings:d.array(Wme),unexamined:d.array(d.string()).describe("files or areas outside this change you did not open"),summary:pt.describe("one paragraph on what this change does and its test-relevant risk")});var Qs=d.string().trim().min(1),$s=72,nye=d.object({repository:Qs.optional().describe("owner/repo of the checkout this lint ran in, when the run has several; omit for the working checkout"),tool:d.string(),command:d.string().describe("the exact command you ran, scoped to the changed files"),clean:d.boolean(),notRun:d.string().optional().describe("why no linter checked the files, when none could (SKYR-5827): then `clean` is false and does not hold the tests back"),fixed:d.array(d.string()).optional().describe("files you fixed"),uncovered:d.array(d.string()).describe("changed/new files this linter's own config does not match (wrong extension, wrong directory) \u2014 so `clean` never examined them, even though CI may still execute them. Empty array, not omitted, when every changed/new file IS covered.")});var _0=d.object({schemaVersion:d.literal(1),lint:d.array(nye).min(1).describe("one entry per checkout this run wrote tests in, each run from that checkout"),fileConventions:d.object({ok:d.boolean(),notes:d.string().optional()}),ciReadiness:d.object({covered:d.boolean().describe("will the repo's CI run these tests?"),notes:d.string().optional(),unrecorded:d.array(d.string()).optional().describe("tests with no record of whether CI runs them: not covered, and not known to be left out")}),dependencies:d.object({added:d.array(d.object({package:d.string(),manifest:d.string(),repository:Qs.optional().describe("owner/repo of the manifest's checkout; omit for the working checkout"),reason:Qs.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).describe("every package added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own")}),support:d.array(d.object({file:Qs,repository:Qs.optional().describe("owner/repo of the file's checkout; omit for the working checkout")})).optional().describe("the files the tests need besides themselves (helper modules, page objects, fixtures, snapshots), delivered with them"),commit:d.object({message:Qs.refine(e=>e.split(`
250
250
  `)[0].length<=$s,{message:`subject line must be <= ${$s} chars`})}),pr:d.object({title:Qs.max($s,`must be <= ${$s} chars`),body:Qs}),ready:d.boolean().describe("a statement of fact: true only if the tests are fit to commit as they stand"),blockers:d.array(d.string()).describe("what blocks the commit \u2014 required non-empty when ready is false"),summary:Qs.describe("one paragraph")});function og(e){return(e?.blockers??[]).slice(0,3).join("; ")}o(og,"leadBlockers");var sye="write-stale-updates",oye={[sye]:"stale test updates"};var N0=(n=>(n.Patch="PATCH",n.Put="PUT",n))(N0||{});var ag=d.lazy(()=>d.union([d.string(),d.number().finite(),d.boolean(),d.null(),d.array(ag),d.record(ag)])),Xt=d.string().trim().min(1),hY=d.string().regex(/^[A-Za-z_]\w*$/).optional(),P0=d.number().int().refine(e=>e>=200&&e<300||e>=400&&e<500,"Expected an explicit success or client rejection status").optional(),AY=d.array(Xt).min(1).max(20).optional(),aye=d.object({environmentId:d.string().uuid(),environmentAddress:d.string().url(),targetId:Xt.optional(),appOrigin:d.string().url().optional(),persistenceRevision:bp.optional(),offLimits:d.array(Xt),bearerTokenEnv:hY,route:d.object({kind:d.literal("persistence")}).strict()}).strict().refine(e=>!e.persistenceRevision||!e.targetId&&!e.appOrigin,"A generated persistence decision cannot include legacy policy lookup fields"),mY=d.array(d.discriminatedUnion("op",[d.object({op:d.literal("create"),collection:Xt,body:d.record(ag),uniqueField:Xt,expectedStatus:P0,responseIdPath:AY,responseUniqueFieldPath:AY,as:Xt}).strict(),d.object({op:d.literal("read"),resource:Xt,as:Xt,expectedStatus:P0,query:d.record(d.string()).optional()}).strict(),d.object({op:d.literal("update"),resource:Xt,method:d.nativeEnum(N0).optional(),expectedStatus:P0,body:d.record(ag),as:Xt}).strict(),d.object({op:d.literal("assert"),resource:Xt,path:d.array(Xt),equals:ag}).strict(),d.object({op:d.literal("assertStatus"),resource:Xt,equals:d.number().int().min(200).max(499)}).strict(),d.object({op:d.literal("assertHeader"),resource:Xt,name:d.string().regex(/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/),equals:d.string().nullable()}).strict()])).min(1).refine(e=>e.some(t=>t.op==="assert"||t.op==="assertStatus"||t.op==="assertHeader"),"A runnable test must retain a planned assertion"),rb=d.object({name:Xt,bearerTokenEnv:hY,steps:mY.describe("ordered objects with op: create (collection, body, uniqueField, as; optional expectedStatus, responseIdPath, responseUniqueFieldPath), read (resource, as; optional expectedStatus, query), update (resource, body, as; optional expectedStatus, method PUT or PATCH), assert (resource, path, equals), assertStatus (resource, equals), or assertHeader (resource, name, equals). Resource names an earlier request alias and paths are arrays of JSON keys")}).strict(),yY=d.union([d.object({name:Xt,definition:aye,steps:mY}).strict(),d.object({name:Xt,restriction:Xt,sourceAsset:d.object({path:Xt.regex(/^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))[^\\]+\.source$/),sha256:d.string().regex(/^[a-f0-9]{64}$/)}).strict()}).strict()]),U0=`"use strict";
251
251
  const spec = `,F0=`;
252
252
  let runtime;
@@ -254,18 +254,18 @@ try { runtime = require("@skyramp/testbot-core/dist/shared-environment-test.cjs"
254
254
  if (runtime && typeof runtime.sharedEnvironmentTest === "function") runtime.sharedEnvironmentTest(spec, __filename);
255
255
  else require("node:test").test(spec.name, () => { throw new Error("required shared-environment guard runtime is unavailable"); });
256
256
  `;function cg(e){return U0+JSON.stringify(yY.parse(e),null,2)+F0}o(cg,"renderDeliveredSharedTest");function Ts(e){if(e.includes("\r")){if(/(?:^|[^\r])\n|\r(?!\n)/.test(e))return;e=e.replace(/\r\n/g,`
257
- `)}if(!(!e.startsWith(U0)||!e.endsWith(F0)))try{let t=yY.safeParse(JSON.parse(e.slice(U0.length,-F0.length)));return t.success&&cg(t.data)===e?t.data:void 0}catch{return}}o(Ts,"parseDeliveredSharedTest");var ug=d.string().trim().min(1),cye=d.object({cwd:ug.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:d.array(ug).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")}),EY=d.object({file:ug.describe("a file of the test's checkout, relative to its root"),line:ug.describe("a line of that file, quoted exactly from where its command starts to its end")}),bY=d.object({collected:d.boolean().describe("whether the repo's CI runs this test as it is"),steps:d.array(EY).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:cye.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(ug).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(EY).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 dye=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")}),lg=(n=>(n.InProcess="in-process",n.Browser="browser",n))(lg||{}),IY=(i=>(i.Spec="spec",i.PrDescription="pr-description",i.Inferred="inferred",i))(IY||{}),wY=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(dye).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(lg).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(IY).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")}),ib=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 bVe=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 vVe=["stale_test","open_question"],IVe=["low","medium","high","critical"];var le=d.string().trim().min(1),bye=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"),vye=d.preprocess(bye,d.object({id:le.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:le.describe("one testable part of the requirement"),expected:le.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(mi).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)")})),SY=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:le.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`}),Iye=d.object({id:le.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:le,source:d.nativeEnum(Jr).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:le.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:le.regex(ms).describe("the key of another uploaded document stating the same obligation"),says:le.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 PR description or the item defers this criterion to a later change, the words that defer it, copied exactly; give it no clauses. Never for words that only say what this change covers, or only because no changed file holds its code"),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(SY).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(vye)}),kY=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(kY||{}),wye=d.object({id:le.describe('e.g. "F1"'),file:le,line:d.number().optional(),claim:le.describe("the defect, in one sentence"),severity:d.nativeEnum(No),evidence:le.describe("the code line, or the probe request and response, that shows it"),conflictsWith:d.array(le).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(kY).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)")}),Cye=d.object({id:le.describe('e.g. "Q1"'),question:le.describe("what is unsettled, as a question the PR author can answer"),readings:d.array(le).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(SY).optional().describe("when sources of the same rank disagree on it: each of them")}),Sye=d.object({id:le.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:d.nativeEnum(mi).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:le.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:le.describe("what the test does"),expected:le.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")}),kye=d.object({test:le.describe("existing test file"),action:d.nativeEnum(Yi),reason:le,mutates:d.boolean().optional().describe("true when the maintained test changes state"),clauses:d.array(le).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")}),CY=d.array(TC).optional(),Bye=d.object({components:d.preprocess(e=>CY.safeParse(e).success?e:void 0,CY).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(lp)).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:le,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:NC.optional()}),eze=d.object({schemaVersion:d.literal(1),requirements:d.array(Iye),findings:d.array(wye),cases:d.array(Sye).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:d.array(Cye).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:d.array(kye),journeys:d.array(wY).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:le,why:le})).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"),browserSuites:d.array(d.object({repository:le.optional().describe("owner/repo, for a checkout other than the working one"),path:le.describe("the folder its browser tests are in, relative to that checkout"),framework:le.describe("what runs them")})).default([]).describe("the repository's own browser test suites; empty when it has none"),unplannedComponents:d.array(d.object({components:d.array(le).min(1).describe("changed components, as the change lists them"),why:le})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:ng.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:Bye.optional().describe("omit when no app was needed or none was started"),summary:le.describe("one paragraph: what the change does and where the risk is")});var dg=(n=>(n.Backend="backend",n.Ui="ui",n))(dg||{});var Yr=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(Yr||{}),Rye=d.object({file:le.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:d.nativeEnum(dg),change:d.nativeEnum(Yr).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"),guardedDelivery:rb.optional().describe("for a new test that calls the shared app: supply equivalent ordered HTTP requests and assertions for its one test function (which can check several planned cases) in a .test.cjs file that node --test runs. The destination package must declare the exact released version of @skyramp/testbot-core used by this run. Use only CI variable names for credentials. Omit when the setup or steps cannot preserve the test; Testbot retains the source without a CI entry. The entry reaches only the deployed Test Environment and makes no request to Testbot: name nothing under ci.needs for it. Where CI does not collect it yet, still give ci.steps, ci.runner and a ci.list whose output does not name it"),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:le.describe("a stated requirement or clause id"),line:le.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"),failsOnBase:d.array(d.object({test:le.describe("its name, as its framework reports it"),failure:le.describe("the failure message it gave on the base branch")})).optional().describe("for a file that was there before this run, which you left as it was or only added tests to: the tests already in it that fail here and fail the same way on the base branch, so this change did not make them fail. Never a test you wrote or changed"),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:le,status:d.nativeEnum(Tn),environmentRestriction:le.optional().describe("for a skipped case whose test you wrote and could not run here: what this run lacks to run it (a build, a service, a database, a browser, an app). The test is still written; Testbot reports the case as not run. Never set it on a case that ran or for a time limit."),runtimeTargets:yp.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:rm.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")}).refine(e=>!e.environmentRestriction||e.status==="skip"&&!e.runtimeTargets?.length,{message:"an environment-restricted case must be skipped and have no runtimeTargets"})).describe("one entry per covered case, from the runner's own output; a case you could not run here has none: record it as skipped with its environmentRestriction"),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:le,evidence:le})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:d.array(d.object({name:le.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(le).describe("the plan case or maintenance clause ids it checks"),testProblem:rm.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(mp).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:le.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:bY.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:ic.optional().describe(`for a file in ${Cl}, 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 ${Sn}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),xye=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"),Qye=d.preprocess(xye,d.object({description:le.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:d.nativeEnum(No).optional(),sourceFile:d.string().optional().describe("the app file at fault"),sourceLine:d.number().optional(),tests:d.array(le).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(le).optional().describe("the plan's requirement or clause ids it violates")})),tze=d.object({schemaVersion:d.literal(1),tests:d.array(Rye),notWritten:d.array(d.object({case:le,reason:le,coveredBy:d.object({file:le.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:le.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(ib).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),checks:d.array(d.object({command:d.string().describe("the exact command you ran on your files, with their paths, as run from the repository root: cd <folder> && first when you ran it in a folder"),source:d.string().describe("where the repository runs or configures this check: path:line, then its words copied exactly"),clean:d.boolean().describe("false when it still reports something in your files, or stopped before checking any")})).optional().describe("each lint, format or type check the repository runs or keeps a config for on files like yours; Testbot runs each again"),dependenciesAdded:d.array(d.object({package:le,manifest:le.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:le.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:le.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(le).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:ic.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:le.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:le.describe("at most 72 characters, following the repository's PR-title checks"),prBody:le.describe("what the tests cover and what they found")}),report:d.object({summary:le.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(Qye).describe("every defect the tests found"),nextSteps:d.array(d.string()),noTests:d.array(d.object({repository:le,reason:le.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 nze={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};function Wr(e){return e.rel!==""&&!e.rel.startsWith("..")&&!Mt.isAbsolute(e.rel)}o(Wr,"insideCheckout");function An(e,t,n=cY){let i=t.map(p=>({name:lS(p),root:Mt.resolve(p.path),slug:p.slug})),r=new Map([...i].reverse().map(p=>[p.name,p])),s=t.length?[{real:RE(Mt.resolve(e))},...i.map(p=>({...p,real:RE(p.root)}))].sort((p,f)=>f.real.length-p.real.length):[],a=new Map,c=o(p=>a.get(p)??a.set(p,new Set(n(p))).get(p),"touched"),u=o(p=>{let f=Mt.resolve(e,p),A=Tl.existsSync(f),h=o(x=>({root:e,rel:Vi(e,p),ambiguous:x,exists:A}),"working");if(!t.length)return h(!1);let m=!1,E=p.replace(/^\.\//,""),v=E.split("/")[0],b=r.get(v);if(b){let x=E.slice(v.length+1),w=Tl.existsSync(Mt.join(b.root,x)),$=!Tl.existsSync(Mt.join(e,v))||!A&&w;if(w&&A&&Mt.join(b.root,x)!==f){let B=c(b.root).has(Vi(b.root,x)),Z=c(e).has(Vi(e,p));B&&!Z?$=!0:B===Z&&(m=!0)}if($)return{root:b.root,rel:Vi(b.root,x),repository:b.slug,dir:b.name,ambiguous:m,exists:w}}if(!A&&!Mt.isAbsolute(E)){let x=i.filter(w=>Tl.existsSync(Mt.join(w.root,E)));if(x.length===1){let[w]=x;return{root:w.root,rel:Vi(w.root,E),repository:w.slug,dir:w.name,ambiguous:m,exists:!0}}}let I=Mt.join(RE(Mt.dirname(f)),Mt.basename(f)),C=s.find(x=>Wr({rel:Mt.relative(x.real,I)}));return C?"slug"in C?{root:C.root,rel:Mt.relative(C.real,I),repository:C.slug,dir:C.name,ambiguous:m,exists:A}:{...h(m),rel:Mt.relative(C.real,I)}:h(m)},"place"),l=new Map;return p=>l.get(p)??l.set(p,u(p)).get(p)}o(An,"checkoutPlacer");var Dye="ci-collect";var mze=5*6e4;function sb(e,t){let n=new Set(t.tests.map(i=>i.file));return(ve(e,`${Dye}.json`)?.checks??[]).filter(i=>n.has(i.file))}o(sb,"currentCiChecks");function O0(e){let t=ve(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(sb(e,t).filter(i=>i.verdict==="unprovisioned"&&n.has(i.file)).map(i=>i.file))}o(O0,"withheldTests");var $Y=(i=>(i.Requirement="requirement",i.PrDescription="pr_description",i.Code="code",i))($Y||{}),hn=d.string().trim().min(1),Pye=d.object({expectation:hn.max(300).describe("the behavior this assertion pins, in words"),source:d.nativeEnum($Y),expected:hn.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),Uye=d.object({file:hn.describe("path of the NEW test file you wrote, relative to its repository"),repository:hn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:hn.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:ic.optional().describe(`for ${Cl}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:d.array(hn).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(hn).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:d.array(Pye).min(1)}),pg=(n=>(n.Updated="updated",n.Deleted="deleted",n))(pg||{}),QY=300,Fye=d.object({file:hn.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:hn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:d.nativeEnum(pg),staleBecause:d.object({requirement:hn.describe("a stated requirement or clause id"),line:hn.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"),reason:d.preprocess(e=>typeof e=="string"?e.trim().slice(0,QY):e,hn.max(QY)).describe("what the change deliberately altered that made the test wrong")}),M0=d.object({schemaVersion:d.literal(1),tests:d.array(Uye),maintained:d.array(Fye).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:d.array(d.object({id:hn,reason:hn.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(ib).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:d.array(d.object({journey:hn,missing:hn.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:hn.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var DY=ee(require("fs"));var _Y=2*1024*1024;function NY(e){let t=[];for(let n of e??[])if(n.state==="read")try{t.push({item:n,text:DY.readFileSync(mG(n),"utf-8")})}catch{}return t}o(NY,"readItemTexts");var fg=6,Oye=/[\p{L}\p{N}]+/gu,Mye=new RegExp("(?<=\\p{Ll})(?=\\p{Lu})|(?<=\\p{Lu})(?=\\p{Lu}\\p{Ll})","u");function L0(e){let t=[];for(let n of e.matchAll(Oye)){let i=n.index;for(let r of n[0].split(Mye))t.push({word:r.toLowerCase(),start:i,end:i+r.length}),i+=r.length}return t}o(L0,"wordsOf");var PY=o((e,t)=>e.slice(t,t+fg).map(n=>n.word).join(" "),"runAt");function TY(e){let t=L0(e),n=new Set;for(let i=0;i+fg<=t.length;i++)n.add(PY(t,i));return n}o(TY,"runsOf");function UY(e,t=[]){let n=new Set(t.flatMap(i=>[...TY(i)]));return NY(e).map(({item:i,text:r})=>{let s=i.source==="other"?r:r.slice(r.indexOf(`
258
- `)+1||r.length),a=TY(s);for(let c of n)a.delete(c);return{name:t1(i.key,sS([i])),key:i.key,runs:a,words:L0(s).map(c=>c.word)}})}o(UY,"requirementTexts");var Mze=fg/2;var Lye=o(e=>e.criteria.size?`${e.text.name} ${[...e.criteria].sort((t,n)=>t-n).map(t=>`AC${t}`).join(", ")}`:e.text.name,"copyName"),jye=new RegExp("(?<![\\p{L}\\p{N}])\\p{L}[\\p{L}\\p{N}+.-]*:\\/\\/(?:[^\\s\"'`<>|\\u2018\\u2019\\u201C\\u201D\\u3000-\\u303F\\uFF01-\\uFF0F\\uFF1A-\\uFF20]|<[\\p{L}\\p{N}_-]+>)*(?:[^\\s\"'`<>|\\u2018\\u2019\\u201C\\u201D\\u3000-\\u303F\\uFF01-\\uFF0F\\uFF1A-\\uFF20.,;:!?)\\]]|<[\\p{L}\\p{N}_-]+>)","gu");function Gye(e){let t=[...e.matchAll(jye)].map(i=>({start:i.index,end:i.index+i[0].length})),n=[[]];for(let i of L0(e))t.some(r=>i.start>=r.start&&i.start<r.end)?n.at(-1).length&&n.push([]):n.at(-1).push(i);return n}o(Gye,"proseStretches");function Vye(e,t){if(t.length===0)return[];let n=[];for(let i of Gye(e))for(let r=0;r+fg<=i.length;r++){let s=PY(i,r),a=t.find(f=>f.runs.has(s));if(!a)continue;let c=i[r].start,u=i[r+fg-1].end,l=a.criteria?.get(s)??[],p=n.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 n.push({start:c,end:u,text:a,criteria:new Set(l)})}return n.map(i=>({start:i.start,end:i.end,name:Lye(i)}))}o(Vye,"copies");function Dl(e,t,n=!1){let i=e;for(let r of Vye(e,t).reverse()){let s=i.slice(0,r.start).trimEnd(),a=s===""||/[.!?\n]$/.test(i.slice(0,r.start).replace(/[ \t]+$/,"")),u=n&&(a||/[:;—–-]$/.test(s))&&/^\s+[\p{L}\d]/u.test(i.slice(r.end))?`${a?"The":"the"} case (see ${r.name})`:`(see ${r.name})`;i=`${i.slice(0,r.start)}${u}${i.slice(r.end)}`}return i}o(Dl,"withoutRequirementText");function zye(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===`
257
+ `)}if(!(!e.startsWith(U0)||!e.endsWith(F0)))try{let t=yY.safeParse(JSON.parse(e.slice(U0.length,-F0.length)));return t.success&&cg(t.data)===e?t.data:void 0}catch{return}}o(Ts,"parseDeliveredSharedTest");var ug=d.string().trim().min(1),cye=d.object({cwd:ug.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:d.array(ug).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")}),EY=d.object({file:ug.describe("a file of the test's checkout, relative to its root"),line:ug.describe("a line of that file, quoted exactly from where its command starts to its end")}),bY=d.object({collected:d.boolean().describe("whether the repo's CI runs this test as it is"),steps:d.array(EY).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:cye.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(ug).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(EY).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 dye=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")}),lg=(n=>(n.InProcess="in-process",n.Browser="browser",n))(lg||{}),IY=(i=>(i.Spec="spec",i.PrDescription="pr-description",i.Inferred="inferred",i))(IY||{}),wY=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(dye).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(lg).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(IY).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")}),ib=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 vVe=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 IVe=["stale_test","open_question"],wVe=["low","medium","high","critical"];var le=d.string().trim().min(1),bye=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"),vye=d.preprocess(bye,d.object({id:le.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:le.describe("one testable part of the requirement"),expected:le.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(mi).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)")})),SY=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:le.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`}),Iye=d.object({id:le.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:le,source:d.nativeEnum(Jr).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:le.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:le.regex(ms).describe("the key of another uploaded document stating the same obligation"),says:le.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 PR description or the item defers this criterion to a later change, the words that defer it, copied exactly; give it no clauses. Never for words that only say what this change covers, or only because no changed file holds its code"),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(SY).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(vye)}),kY=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(kY||{}),wye=d.object({id:le.describe('e.g. "F1"'),file:le,line:d.number().optional(),claim:le.describe("the defect, in one sentence"),severity:d.nativeEnum(No),evidence:le.describe("the code line, or the probe request and response, that shows it"),conflictsWith:d.array(le).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(kY).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)")}),Cye=d.object({id:le.describe('e.g. "Q1"'),question:le.describe("what is unsettled, as a question the PR author can answer"),readings:d.array(le).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(SY).optional().describe("when sources of the same rank disagree on it: each of them")}),Sye=d.object({id:le.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:d.nativeEnum(mi).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:le.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:le.describe("what the test does"),expected:le.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")}),kye=d.object({test:le.describe("existing test file"),action:d.nativeEnum(Yi),reason:le,mutates:d.boolean().optional().describe("true when the maintained test changes state"),clauses:d.array(le).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")}),CY=d.array(TC).optional(),Bye=d.object({components:d.preprocess(e=>CY.safeParse(e).success?e:void 0,CY).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(lp)).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:le,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:NC.optional()}),tze=d.object({schemaVersion:d.literal(1),requirements:d.array(Iye),findings:d.array(wye),cases:d.array(Sye).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:d.array(Cye).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:d.array(kye),journeys:d.array(wY).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:le,why:le})).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"),browserSuites:d.array(d.object({repository:le.optional().describe("owner/repo, for a checkout other than the working one"),path:le.describe("the folder its browser tests are in, relative to that checkout"),framework:le.describe("what runs them")})).default([]).describe("the repository's own browser test suites; empty when it has none"),unplannedComponents:d.array(d.object({components:d.array(le).min(1).describe("changed components, as the change lists them"),why:le})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:ng.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:Bye.optional().describe("omit when no app was needed or none was started"),summary:le.describe("one paragraph: what the change does and where the risk is")});var dg=(n=>(n.Backend="backend",n.Ui="ui",n))(dg||{});var Yr=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(Yr||{}),Rye=d.object({file:le.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:d.nativeEnum(dg),change:d.nativeEnum(Yr).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"),guardedDelivery:rb.optional().describe("for a new test that calls the shared app: supply equivalent ordered HTTP requests and assertions for its one test function (which can check several planned cases) in a .test.cjs file that node --test runs. The destination package must declare the exact released version of @skyramp/testbot-core used by this run. Use only CI variable names for credentials. Omit when the setup or steps cannot preserve the test; Testbot retains the source without a CI entry. The entry reaches only the deployed Test Environment and makes no request to Testbot: name nothing under ci.needs for it. Where CI does not collect it yet, still give ci.steps, ci.runner and a ci.list whose output does not name it"),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:le.describe("a stated requirement or clause id"),line:le.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"),failsOnBase:d.array(d.object({test:le.describe("its name, as its framework reports it"),failure:le.describe("the failure message it gave on the base branch")})).optional().describe("for a file that was there before this run, which you left as it was or only added tests to: the tests already in it that fail here and fail the same way on the base branch, so this change did not make them fail. Never a test you wrote or changed"),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:le,status:d.nativeEnum(Tn),environmentRestriction:le.optional().describe("for a skipped case whose test you wrote and could not run here: what this run lacks to run it (a build, a service, a database, a browser, an app). The test is still written; Testbot reports the case as not run. Never set it on a case that ran or for a time limit."),runtimeTargets:yp.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:rm.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")}).refine(e=>!e.environmentRestriction||e.status==="skip"&&!e.runtimeTargets?.length,{message:"an environment-restricted case must be skipped and have no runtimeTargets"})).describe("one entry per covered case, from the runner's own output; a case you could not run here has none: record it as skipped with its environmentRestriction"),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:le,evidence:le})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:d.array(d.object({name:le.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(le).describe("the plan case or maintenance clause ids it checks"),testProblem:rm.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(mp).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:le.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:bY.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:ic.optional().describe(`for a file in ${Cl}, 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 ${Sn}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),xye=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"),Qye=d.preprocess(xye,d.object({description:le.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:d.nativeEnum(No).optional(),sourceFile:d.string().optional().describe("the app file at fault"),sourceLine:d.number().optional(),tests:d.array(le).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(le).optional().describe("the plan's requirement or clause ids it violates")})),nze=d.object({schemaVersion:d.literal(1),tests:d.array(Rye),notWritten:d.array(d.object({case:le,reason:le,coveredBy:d.object({file:le.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:le.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(ib).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),checks:d.array(d.object({command:d.string().describe("the exact command you ran on your files, with their paths, as run from the repository root: cd <folder> && first when you ran it in a folder"),source:d.string().describe("where the repository runs or configures this check: path:line, then its words copied exactly"),clean:d.boolean().describe("false when it still reports something in your files, or stopped before checking any")})).optional().describe("each lint, format or type check the repository runs or keeps a config for on files like yours; Testbot runs each again"),dependenciesAdded:d.array(d.object({package:le,manifest:le.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:le.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:le.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(le).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:ic.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:le.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:le.describe("at most 72 characters, following the repository's PR-title checks"),prBody:le.describe("what the tests cover and what they found")}),report:d.object({summary:le.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(Qye).describe("every defect the tests found"),nextSteps:d.array(d.string()),noTests:d.array(d.object({repository:le,reason:le.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 rze={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};function Wr(e){return e.rel!==""&&!e.rel.startsWith("..")&&!Mt.isAbsolute(e.rel)}o(Wr,"insideCheckout");function An(e,t,n=cY){let i=t.map(p=>({name:lS(p),root:Mt.resolve(p.path),slug:p.slug})),r=new Map([...i].reverse().map(p=>[p.name,p])),s=t.length?[{real:RE(Mt.resolve(e))},...i.map(p=>({...p,real:RE(p.root)}))].sort((p,f)=>f.real.length-p.real.length):[],a=new Map,c=o(p=>a.get(p)??a.set(p,new Set(n(p))).get(p),"touched"),u=o(p=>{let f=Mt.resolve(e,p),A=Tl.existsSync(f),h=o(x=>({root:e,rel:Vi(e,p),ambiguous:x,exists:A}),"working");if(!t.length)return h(!1);let m=!1,E=p.replace(/^\.\//,""),v=E.split("/")[0],b=r.get(v);if(b){let x=E.slice(v.length+1),w=Tl.existsSync(Mt.join(b.root,x)),$=!Tl.existsSync(Mt.join(e,v))||!A&&w;if(w&&A&&Mt.join(b.root,x)!==f){let B=c(b.root).has(Vi(b.root,x)),Z=c(e).has(Vi(e,p));B&&!Z?$=!0:B===Z&&(m=!0)}if($)return{root:b.root,rel:Vi(b.root,x),repository:b.slug,dir:b.name,ambiguous:m,exists:w}}if(!A&&!Mt.isAbsolute(E)){let x=i.filter(w=>Tl.existsSync(Mt.join(w.root,E)));if(x.length===1){let[w]=x;return{root:w.root,rel:Vi(w.root,E),repository:w.slug,dir:w.name,ambiguous:m,exists:!0}}}let I=Mt.join(RE(Mt.dirname(f)),Mt.basename(f)),C=s.find(x=>Wr({rel:Mt.relative(x.real,I)}));return C?"slug"in C?{root:C.root,rel:Mt.relative(C.real,I),repository:C.slug,dir:C.name,ambiguous:m,exists:A}:{...h(m),rel:Mt.relative(C.real,I)}:h(m)},"place"),l=new Map;return p=>l.get(p)??l.set(p,u(p)).get(p)}o(An,"checkoutPlacer");var Dye="ci-collect";var yze=5*6e4;function sb(e,t){let n=new Set(t.tests.map(i=>i.file));return(ve(e,`${Dye}.json`)?.checks??[]).filter(i=>n.has(i.file))}o(sb,"currentCiChecks");function O0(e){let t=ve(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(sb(e,t).filter(i=>i.verdict==="unprovisioned"&&n.has(i.file)).map(i=>i.file))}o(O0,"withheldTests");var $Y=(i=>(i.Requirement="requirement",i.PrDescription="pr_description",i.Code="code",i))($Y||{}),hn=d.string().trim().min(1),Pye=d.object({expectation:hn.max(300).describe("the behavior this assertion pins, in words"),source:d.nativeEnum($Y),expected:hn.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),Uye=d.object({file:hn.describe("path of the NEW test file you wrote, relative to its repository"),repository:hn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:hn.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:ic.optional().describe(`for ${Cl}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:d.array(hn).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(hn).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:d.array(Pye).min(1)}),pg=(n=>(n.Updated="updated",n.Deleted="deleted",n))(pg||{}),QY=300,Fye=d.object({file:hn.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:hn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:d.nativeEnum(pg),staleBecause:d.object({requirement:hn.describe("a stated requirement or clause id"),line:hn.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"),reason:d.preprocess(e=>typeof e=="string"?e.trim().slice(0,QY):e,hn.max(QY)).describe("what the change deliberately altered that made the test wrong")}),M0=d.object({schemaVersion:d.literal(1),tests:d.array(Uye),maintained:d.array(Fye).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:d.array(d.object({id:hn,reason:hn.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(ib).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:d.array(d.object({journey:hn,missing:hn.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:hn.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var DY=ee(require("fs"));var _Y=2*1024*1024;function NY(e){let t=[];for(let n of e??[])if(n.state==="read")try{t.push({item:n,text:DY.readFileSync(mG(n),"utf-8")})}catch{}return t}o(NY,"readItemTexts");var fg=6,Oye=/[\p{L}\p{N}]+/gu,Mye=new RegExp("(?<=\\p{Ll})(?=\\p{Lu})|(?<=\\p{Lu})(?=\\p{Lu}\\p{Ll})","u");function L0(e){let t=[];for(let n of e.matchAll(Oye)){let i=n.index;for(let r of n[0].split(Mye))t.push({word:r.toLowerCase(),start:i,end:i+r.length}),i+=r.length}return t}o(L0,"wordsOf");var PY=o((e,t)=>e.slice(t,t+fg).map(n=>n.word).join(" "),"runAt");function TY(e){let t=L0(e),n=new Set;for(let i=0;i+fg<=t.length;i++)n.add(PY(t,i));return n}o(TY,"runsOf");function UY(e,t=[]){let n=new Set(t.flatMap(i=>[...TY(i)]));return NY(e).map(({item:i,text:r})=>{let s=i.source==="other"?r:r.slice(r.indexOf(`
258
+ `)+1||r.length),a=TY(s);for(let c of n)a.delete(c);return{name:t1(i.key,sS([i])),key:i.key,runs:a,words:L0(s).map(c=>c.word)}})}o(UY,"requirementTexts");var Lze=fg/2;var Lye=o(e=>e.criteria.size?`${e.text.name} ${[...e.criteria].sort((t,n)=>t-n).map(t=>`AC${t}`).join(", ")}`:e.text.name,"copyName"),jye=new RegExp("(?<![\\p{L}\\p{N}])\\p{L}[\\p{L}\\p{N}+.-]*:\\/\\/(?:[^\\s\"'`<>|\\u2018\\u2019\\u201C\\u201D\\u3000-\\u303F\\uFF01-\\uFF0F\\uFF1A-\\uFF20]|<[\\p{L}\\p{N}_-]+>)*(?:[^\\s\"'`<>|\\u2018\\u2019\\u201C\\u201D\\u3000-\\u303F\\uFF01-\\uFF0F\\uFF1A-\\uFF20.,;:!?)\\]]|<[\\p{L}\\p{N}_-]+>)","gu");function Gye(e){let t=[...e.matchAll(jye)].map(i=>({start:i.index,end:i.index+i[0].length})),n=[[]];for(let i of L0(e))t.some(r=>i.start>=r.start&&i.start<r.end)?n.at(-1).length&&n.push([]):n.at(-1).push(i);return n}o(Gye,"proseStretches");function Vye(e,t){if(t.length===0)return[];let n=[];for(let i of Gye(e))for(let r=0;r+fg<=i.length;r++){let s=PY(i,r),a=t.find(f=>f.runs.has(s));if(!a)continue;let c=i[r].start,u=i[r+fg-1].end,l=a.criteria?.get(s)??[],p=n.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 n.push({start:c,end:u,text:a,criteria:new Set(l)})}return n.map(i=>({start:i.start,end:i.end,name:Lye(i)}))}o(Vye,"copies");function Dl(e,t,n=!1){let i=e;for(let r of Vye(e,t).reverse()){let s=i.slice(0,r.start).trimEnd(),a=s===""||/[.!?\n]$/.test(i.slice(0,r.start).replace(/[ \t]+$/,"")),u=n&&(a||/[:;—–-]$/.test(s))&&/^\s+[\p{L}\d]/u.test(i.slice(r.end))?`${a?"The":"the"} case (see ${r.name})`:`(see ${r.name})`;i=`${i.slice(0,r.start)}${u}${i.slice(r.end)}`}return i}o(Dl,"withoutRequirementText");function zye(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===`
259
259
  `&&n!=="`")return i}}return e.length}o(zye,"stringEnd");function qye(e,t){let n=e.lastIndexOf(`
260
260
  `,t-1)+1;if(e.slice(n,t).trim()!=="")return!1;let i=e.slice(0,n).trimEnd();return i===""||i.endsWith(":")}o(qye,"isDocstring");function Hye(e){let t=[],n=o(r=>(e.indexOf(`
261
- `,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,qye(e,i)&&t.push({start:i,end:a})}else(r==='"'||r==="'"||r==="`")&&(a=zye(e,i,r));i=a}return t}o(Hye,"commentRanges");var Jye=/\b(?:test|it|describe|context|suite|scenario|specify|Run|DisplayName)(?:\.\w+)*(?:\.each\s*(?:\((?:[^()]|\([^()]*\))*\)|`[^`]*`))?\s*\(\s*("(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|`(?:[^`\\]|\\.)*`)/g;function Yye(e,t){return[...e.matchAll(Jye)].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(Yye,"titleRanges");function cc(e,t){if(t.length===0)return{content:e,cleaned:!1};let n=Hye(e),i=[];for(let c of n){let u=e.slice(c.start,c.end),l=Dl(u,t);l!==u&&i.push({...c,text:l})}let r=Yye(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=Dl(l,t);if(p===l)continue;let f=p;for(let A=2;s.has(f);A++)f=`${p} (${A})`;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(cc,"withoutRequirementTextInTestFile");var uqe=new Set(["requirement-reference","spec","pr-description"]);var gg="generate-unit.json";function tEe(e){let{value:t,error:n}=Kt(e);if(n)return{errors:[n]};let{value:i,errors:r}=jn(M0,t);return r.length?{errors:r}:{output:i,errors:[]}}o(tEe,"parseGenerateUnitText");function nEe(e){return tEe(e.stdout)}o(nEe,"parseGenerateUnitFromSession");var zqe=Kn("generate-unit-schema",(e,t)=>nEe(t));var ob=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,qqe=[[/\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+["']${ob}["']|\bimport\s+["']${ob}["']|require\(\s*["']${ob}["']\s*\)|\bimport\(\s*["']${ob}["']\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 Lt=ee(require("node:fs")),Pt=ee(require("node:path")),ub=require("node:child_process");var ab=ee(require("fs")),Rr=ee(require("path"));var rEe={lf:`
261
+ `,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,qye(e,i)&&t.push({start:i,end:a})}else(r==='"'||r==="'"||r==="`")&&(a=zye(e,i,r));i=a}return t}o(Hye,"commentRanges");var Jye=/\b(?:test|it|describe|context|suite|scenario|specify|Run|DisplayName)(?:\.\w+)*(?:\.each\s*(?:\((?:[^()]|\([^()]*\))*\)|`[^`]*`))?\s*\(\s*("(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|`(?:[^`\\]|\\.)*`)/g;function Yye(e,t){return[...e.matchAll(Jye)].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(Yye,"titleRanges");function cc(e,t){if(t.length===0)return{content:e,cleaned:!1};let n=Hye(e),i=[];for(let c of n){let u=e.slice(c.start,c.end),l=Dl(u,t);l!==u&&i.push({...c,text:l})}let r=Yye(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=Dl(l,t);if(p===l)continue;let f=p;for(let A=2;s.has(f);A++)f=`${p} (${A})`;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(cc,"withoutRequirementTextInTestFile");var lqe=new Set(["requirement-reference","spec","pr-description"]);var gg="generate-unit.json";function tEe(e){let{value:t,error:n}=Kt(e);if(n)return{errors:[n]};let{value:i,errors:r}=jn(M0,t);return r.length?{errors:r}:{output:i,errors:[]}}o(tEe,"parseGenerateUnitText");function nEe(e){return tEe(e.stdout)}o(nEe,"parseGenerateUnitFromSession");var qqe=Kn("generate-unit-schema",(e,t)=>nEe(t));var ob=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,Hqe=[[/\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+["']${ob}["']|\bimport\s+["']${ob}["']|require\(\s*["']${ob}["']\s*\)|\bimport\(\s*["']${ob}["']\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 Lt=ee(require("node:fs")),Pt=ee(require("node:path")),ub=require("node:child_process");var ab=ee(require("fs")),Rr=ee(require("path"));var rEe={lf:`
262
262
  `,crlf:`\r
263
263
  `,cr:"\r"},iEe=5*1024*1024,MY=o(e=>e.replace(/[.+^$()|\\/{}[\]*?]/g,"\\$&"),"escaped");function sEe(e,t){let n=0;for(let i=t;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]==="{")n++;else if(e[i]==="}"&&--n===0)return i;return-1}o(sEe,"closingBrace");function oEe(e){let t=[],n=0,i="";for(let r=0;r<e.length;r++){let s=e[r];if(s==="\\"){i+=s+(e[++r]??"");continue}s==="{"&&n++,s==="}"&&n--,s===","&&!n?(t.push(i),i=""):i+=s}return[...t,i]}o(oEe,"braceParts");function j0(e){let t="";for(let n=0;n<e.length;n++){let i=e[n];if(i==="\\")t+=MY(e[++n]??"\\");else if(i==="*"&&e[n+1]==="*"){let r=(n===0||e[n-1]==="/")&&e[n+2]==="/";t+=r?"(?:.*/)?":".*",n+=r?2:1}else if(i==="*")t+="[^/]*";else if(i==="?")t+="[^/]";else if(i==="["){let r=e.indexOf("]",n+2);if(r<0||e.slice(n,r).includes("/"))t+="\\[";else{let s=e.slice(n+1,r);t+=`[${s.replace(/^!/,"^").replace(/\\(?!\])/g,"\\\\")}]`,n=r}}else if(i==="{"){let r=sEe(e,n),s=r<0?"":e.slice(n+1,r),a=/^(-?\d+)\.\.(-?\d+)$/.exec(s),c=oEe(s);if(a){let[u,l]=[Number(a[1]),Number(a[2])].sort((p,f)=>p-f);t+=`(?:${Array.from({length:Math.min(l-u+1,1e4)},(p,f)=>String(u+f)).join("|")})`,n=r}else c.length>1?(t+=`(?:${c.map(j0).join("|")})`,n=r):t+="\\{"}else t+=MY(i)}return t}o(j0,"globSource");function aEe(e){return e.includes("/")?new RegExp(`^${j0(e.replace(/^\//,""))}$`):new RegExp(`^(?:.*/)?${j0(e)}$`)}o(aEe,"sectionMatcher");function cEe(e){let t={root:!1,sections:[]},n;for(let i of e.split(/\r\n|\r|\n/)){let r=i.trim();if(!r||r.startsWith("#")||r.startsWith(";"))continue;let s=/^\[(.+)\]$/.exec(r);if(s){n={matches:aEe(s[1]),props:{}},t.sections.push(n);continue}let a=r.indexOf("=");if(a<0)continue;let c=r.slice(0,a).trim().toLowerCase(),u=r.slice(a+1).trim().toLowerCase();n?n.props[c]=u:c==="root"&&(t.root=u==="true")}return t}o(cEe,"parseEditorConfig");function uEe(e,t,n){let i=[];for(let s=Rr.dirname(t);;s=Rr.dirname(s)){let a=n(s);if(a&&i.unshift({dir:s,config:a}),a?.root||s===e||s===Rr.dirname(s))break}let r={};for(let{dir:s,config:a}of i){let c=Rr.relative(s,t).split(Rr.sep).join("/");for(let u of a.sections)u.matches.test(c)&&Object.assign(r,u.props)}return Object.fromEntries(Object.entries(r).filter(([,s])=>s!=="unset"))}o(uEe,"conventionsFor");function lEe(e,t){let n=e.startsWith("#!"),i=t.end_of_line?rEe[t.end_of_line]:void 0,r=i&&!(n&&i!==`
264
264
  `)?i:void 0,s=r?e.replace(/\r\n|\r|\n/g,r):e;return t.insert_final_newline==="true"&&s.length&&!/[\r\n]$/.test(s)&&(s+=r??/\r\n|\r|\n/.exec(s)?.[0]??`
265
- `),s}o(lEe,"conformed");function _l(e,t,n){if(n.length>iEe||n.includes(0))return n;let i=Rr.resolve(e),r=uEe(i,Rr.resolve(i,t),s=>{try{return cEe(ab.readFileSync(Rr.join(s,".editorconfig"),"utf-8"))}catch{return}});return Buffer.from(lEe(n.toString("latin1"),r),"latin1")}o(_l,"conformDeliveredBytes");var LY=ee(require("fs")),jY=ee(require("path"));function Po(e=__dirname){try{let t=LY.readFileSync(jY.join(e,"VERSION.json"),"utf-8"),n=JSON.parse(t);if(typeof n.version=="string"&&typeof n.commit=="string")return{version:n.version,commit:n.commit}}catch{}return{version:"unknown",commit:"unknown"}}o(Po,"getTestbotVersion");var uc=ee(require("node:fs")),lc=ee(require("node:path"));function G0(e,t){let n=lc.relative(e,t);try{let i=uc.lstatSync(t);if(i.isSymbolicLink())return"test entry is a symlink";if(!i.isFile())return"test entry is not a regular file";let r=uc.realpathSync(e),s=uc.realpathSync(t),a=lc.relative(r,s);return!a||a.startsWith("..")||lc.isAbsolute(a)?`test entry's real path is outside the checkout (${a})`:a!==n?`test entry's real path is ${a}, not ${n}, after canonicalisation`:void 0}catch(i){return i.code==="ENOENT"?`test entry is missing: no file is at ${n} in the checkout`:`test entry cannot be read: ${Pl(i,e)}`}}o(G0,"guardedEntryProblem");function Nl(e,t){let n=G0(e,t);if(n)return n;try{return uc.readFileSync(t)}catch(i){return`test entry cannot be read: ${Pl(i,e)}`}}o(Nl,"readGuardedEntry");function Pl(e,t){return(e instanceof Error?e.message:String(e)).split(t+lc.sep).join("")}o(Pl,"errorWithoutCheckout");function dEe(e){return ve(e,`${W$}.json`)?.guardUnavailable===!0}o(dEe,"writeGuardUnavailable");function GY(e){let t=ve(e,"recommend.json"),n=ve(e,`${W$}.json`),i=new Map(dEe(e)?(t?.generate??[]).map(({id:r})=>[r,wE]):[]);for(let{id:r,reason:s}of t?.withheld??[])i.has(r)||i.set(r,`off-limits execution (${s??"environment policy"})`);if(n?.browserWithheld)for(let r of t?.generate??[])r.type==="ui"&&!i.has(r.id)&&i.set(r.id,"the shared-environment browser guard is unavailable");return i}o(GY,"writeExecutionRestrictions");function VY(e,t){let n=new Set((e.covers??[]).flatMap(i=>{let r=t.get(i);return r?[r]:[]}));return n.size?`environment restriction: ${[...n].join("; ")}`:void 0}o(VY,"writtenRestriction");function fEe(e){return!!e.guardedDelivery||!!e.context?.some(t=>t.safety?.route==="persistence")}o(fEe,"keepsSharedData");function Ul(e,t){let n=e.inputs.sharedEnvironment?.environmentAddress;return!!n&&(t.result?.cases??[]).some(i=>i.runtimeTargets?.some(r=>uo(n,r)))}o(Ul,"usesSharedRuntime");function hg(e,t,n=Po().version){if(!On(e.inputs))return[];let i=e.inputs.sharedEnvironment,r=i?.environmentAddress,s=ve(e,jC),a=l1.safeParse(s),c=a.success&&a.data.environmentId===i?.environmentId&&a.data.environmentAddress===r?a.data:void 0,u=d1.safeParse(s),l=u.success?wp(u.data.refusal):a.success?wp("changed"):wp("unavailable"),p=GY(e),f=new Map(sb(e,t).map(b=>[b.file,b.verdict])),A=x0(B0(e)),h=ve(e,"recommend.json"),m=new Map((h?.generate??[]).map(({id:b,target:I})=>[b,I])),E=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),v=new Map;for(let b of t.tests){if(b.change==="deleted")continue;let I=E(b.file);if(!Wr(I)||Qo(I.rel))continue;let C=bs(e.inputs,I.repository);if("error"in C)continue;let x=C.source,w=Pt.resolve(x.path,I.rel),$=VY(b,p)??gEe(A,I),B=fEe(b),Z=Ul(e,b),oe;if(!$&&!Z&&!B){if(!w.endsWith(".test.cjs"))continue;try{if(!V0(x.path,w))continue;oe=Ts(Lt.readFileSync(w,"utf8"))}catch{continue}if(!oe||"restriction"in oe)continue}let H=(b.covers??[]).flatMap(St=>{let Xe=m.get(St)?.match(/^(GET|HEAD|OPTIONS|POST|PUT|PATCH|DELETE)\s+(\S+?)[,;]?(?:\s|$)/i);return!Xe||!r?[]:Xe[2].startsWith("/")||uo(r,Xe[2])?[{method:Xe[1].toUpperCase(),route:Xe[2]}]:[]}),me=vEe(e,x.path,I.rel);if(!$&&b.change!=="added"&&(me===!1||me===void 0&&!e.inputs.deliver))continue;let _e=o(St=>`${b.file}: shared-environment delivery is blocked: ${St}`,"problem"),Ue={repository:x.slug,file:I.rel,sourceAsset:`${I.rel}.source`},Ie=Nl(x.path,w);if(typeof Ie=="string"){v.set(w,{record:Ue,source:x,original:Buffer.alloc(0),problems:[_e(`${Ie} (planGuardedDelivery)`)]});continue}if(b.change!=="added"&&Ei(e,x.path,I.rel)){$&&(Ue.reason=$,v.set(w,{record:Ue,source:x,original:Ie,problems:[]}));continue}if(me===!1||b.change!=="added"&&me!==!0){v.set(w,{record:Ue,source:x,original:Ie,problems:[_e(me===!1?"the file changes an existing test; retain the assertions in a new file":"cannot prove whether the shared test already exists; use a host-pinned checkout")]});continue}if(oe??=Ts(Ie.toString("utf8")),!$&&oe&&"restriction"in oe)continue;let K,V=rb.safeParse(b.guardedDelivery),Me=c&&i?{environmentId:c.environmentId,environmentAddress:c.environmentAddress,persistenceRevision:c.revision,offLimits:i.offLimits??[],route:{kind:"persistence"}}:void 0,Ze=`environment restriction: persistence permission was not confirmed at generation: ${l}`;if($)K=$;else if(B&&!Me)K=Ze;else if(!V.success||!Me)K="no guarded HTTP representation preserves the test's assertions";else if(!b.covers?.length||(b.functions?.length??1)!==1)K="guarded HTTP delivery requires one test function";else if(!/\.test\.cjs$/.test(I.rel)||!yEe(b.ci))K="the test has no compatible Node CI entry";else if(!b.ci?.collected&&f.get(b.file)!=="not-collected")K="Testbot could not confirm that the repo's CI leaves it out, and only node --test can run the entry";else if(!EEe(x.path,w,n))K=`the CI package does not declare @skyramp/testbot-core ${n}, the released guarded runtime the entry needs`;else{let{steps:St}=V.data,Xe=Me.offLimits.length?J$(e.inputs.skyrampMcp,Me.offLimits):void 0,yn=new Map,ft=St.flatMap(ut=>{if(ut.op==="create"){let ne=AEe(Me.environmentAddress,ut.collection);return ne&&yn.set(ut.as,ne),[{method:"POST",url:ne,child:!1}]}if(ut.op!=="read"&&ut.op!=="update")return[];let $e=yn.get(ut.resource);return $e&&yn.set(ut.as,$e),[{method:ut.op==="read"?"GET":ut.method??"PATCH",url:$e,child:!0}]});ft.some(({url:ut})=>!ut)?K="the guarded HTTP steps name an unknown resource or a collection outside the Test Environment":Xe&&i&&ft.some(({url:ut,child:$e})=>!$e&&Bq(ut.href,i,Xe))?K="the guarded HTTP steps name an off-limits collection":H.length&&!H.some(({method:ut,route:$e})=>ft.some(ne=>ne.url&&ne.method===ut&&hEe(Me.environmentAddress,ne.url,ne.child,$e)))&&(K="the guarded HTTP steps do not represent the planned HTTP operation")}let jt;if(K)Ue.reason=K;else if(V.success&&Me){let{bearerTokenEnv:St,...Xe}=V.data;jt={...Xe,definition:{...Me,...St?{bearerTokenEnv:St}:{}}},Ue.entry=I.rel}let ct=Pt.resolve(x.path,Ue.sourceAsset),sn=lb(ct)&&!Ag(x.path,ct,Ie)?[_e("the inert source asset path already contains different bytes")]:[];v.set(w,{record:Ue,source:x,original:Ie,spec:jt,problems:sn})}return[...v.values()]}o(hg,"planGuardedDelivery");function gEe(e,t){return e.find(n=>R0(n,{file:t.rel,repository:t.repository}))?.environmentRestriction}o(gEe,"restrictionRecordedAtRun");function AEe(e,t){try{let n=new URL(t,`${e.replace(/\/$/,"")}/`);return!n.search&&!n.hash&&!n.username&&!n.password&&!/[\\]|%(?:2f|5c|2e|25)/i.test(t)&&uo(e,n.href)?n:void 0}catch{return}}o(AEe,"guardedCollection");function hEe(e,t,n,i){try{let r=new URL(i,t.origin),s=i.startsWith("/")&&!i.startsWith("//")&&!uo(e,r.href)?new URL(i.slice(1),`${e.replace(/\/$/,"")}/`):r;if(!uo(e,s.href))return!1;let a=t.pathname.replace(/\/$/,""),c=s.pathname.replace(/\/$/,"");if(!n)return c===a;if(!c.startsWith(`${a}/`))return!1;let u=decodeURIComponent(c.slice(a.length+1));return/^(:[\w-]+|\{[^/{}]+\}|<[^/<>]+>)$/.test(u)}catch{return!1}}o(hEe,"representsRoute");function mEe(e){return!!e&&/^(?:node|node:test|node\s+(?:.*\s)?--test(?:\s.*)?)$/i.test(e.trim())}o(mEe,"nodeTestRunner");function yEe(e){return e?.collected===!1||!!e?.collected&&mEe(e.runner)}o(yEe,"nodeTestEntry");function V0(e,t){let n=Lt.realpathSync(e);return Lt.lstatSync(t).isFile()&&Lt.realpathSync(t)===Pt.join(n,Pt.relative(e,t))}o(V0,"regularFileIn");function Ag(e,t,n){try{return V0(e,t)&&Lt.readFileSync(t).equals(n)}catch{return!1}}o(Ag,"sameRegularBytes");function lb(e){try{return Lt.lstatSync(e),!0}catch(t){if(t.code==="ENOENT")return!1;throw t}}o(lb,"pathExists");function EEe(e,t,n){if(n==="unknown")return!1;for(let i=Pt.dirname(t);;i=Pt.dirname(i)){let r=Pt.join(i,"package.json");if(lb(r))try{if(!V0(e,r))return!1;let s=JSON.parse(Lt.readFileSync(r,"utf-8"));return(s.devDependencies?.["@skyramp/testbot-core"]??s.dependencies?.["@skyramp/testbot-core"])===n}catch{return!1}if(i===e)return!1}}o(EEe,"hasGuardRuntime");function bEe(e){let t=ve(e,"write.json");return t?hg(e,t):[]}o(bEe,"guardedDeliveryPlan");function zY(e,t=bEe(e),n=[],i=[]){return t.flatMap(({record:r,source:s,original:a,spec:c,problems:u})=>{if(u.length)return u;let l=Pt.join(s.path,r.sourceAsset),p=Pt.join(s.path,r.file),f=`reading ${r.file}`;try{let A=Nl(s.path,p);if(typeof A=="string")return[`${r.file}: ${A} (writeGuardedDeliveryFiles)`];if(!A.equals(a))return[`${r.file}: native source changed before guarded delivery`];f=`preparing ${r.sourceAsset}`;let h=cc(a.toString("utf-8"),n).content;if(ro(h,e.secretValues??[])!==h)return[`${r.file}: the retained source contains a credential`];let m=_l(s.path,r.sourceAsset,Buffer.from(h));if(f=`writing ${r.sourceAsset}`,lb(l)){if(!Ag(s.path,l,a)&&!Ag(s.path,l,m))return[`${r.file}: the inert source asset path already contains different bytes`];Ag(s.path,l,m)||(i.push(()=>Lt.writeFileSync(l,a)),Lt.writeFileSync(l,m))}else Lt.writeFileSync(l,m,{flag:"wx"}),i.push(()=>Lt.rmSync(l,{force:!0}));if(r.entry&&c){let E=cg({...c,name:Dl(c.name,n)}),v=_l(s.path,r.entry,Buffer.from(E));if(!Ts(v.toString("utf-8")))return[`${r.file}: the repository's file conventions changed the guarded entry`];if(ro(v.toString("utf-8"),e.secretValues??[])!==v.toString("utf-8"))return[`${r.file}: guarded delivery steps include a credential`];f=`writing ${r.entry}`,i.push(()=>Lt.writeFileSync(p,a)),Lt.writeFileSync(p,v)}return[]}catch(A){return[`${r.file}: could not assemble its guarded delivery files (writeGuardedDeliveryFiles): ${f} failed: ${Pl(A,s.path)}`]}})}o(zY,"writeGuardedDeliveryFiles");function vEe(e,t,n){let i=e.executionSafetySources?.find(r=>Pt.resolve(r.path)===Pt.resolve(t));if(i)try{return(0,ub.execFileSync)("git",["--literal-pathspecs","ls-tree",i.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]})===""}catch{return}}o(vEe,"newAtSourcePin");function Ei(e,t,n){let i=e.executionSafetySources?.find(r=>Pt.resolve(r.path)===Pt.resolve(t));if(!i||!/^[a-f0-9]{40,64}$/.test(i.head))return!1;try{let r=Pt.join(t,n),s=Lt.lstatSync(r);if(!s.isFile()||Lt.realpathSync(r)!==r)return!1;let a=db(t,i.head,n);return!a||(s.mode&73)!==0!==a.executable?!1:Lt.readFileSync(r).equals(a.bytes)}catch{return!1}}o(Ei,"unchangedSource");var cb=new Map;function db(e,t,n){let i=`${Pt.resolve(e)}\0${t}\0${n}`,r=cb.get(i);if(r!==void 0)return r;let s=null;try{let a=(0,ub.execFileSync)("git",["--literal-pathspecs","ls-tree",t,"--",n],{cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]});/^100(?:644|755) blob /.test(a)&&(s={executable:a.startsWith("100755"),bytes:(0,ub.execFileSync)("git",["show",`${t}:${n}`],{cwd:e,stdio:["ignore","pipe","ignore"]})})}catch{s=null}return cb.size>=1e4&&cb.clear(),cb.set(i,s),s}o(db,"pinnedBlob");function qY(e,t,n,i){if(!i.size)return[...n];let r=new Map(n.map(a=>[Pt.resolve(a.source.path,a.record.file),a])),s=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let a of t.tests){if(a.change==="deleted")continue;let c=s(a.file);if(!Wr(c)||Qo(c.rel))continue;let u=bs(e.inputs,c.repository);if("error"in u)continue;let l=u.source,p=Pt.resolve(l.path,c.rel),f=i.get(p);if(!f)continue;let A=r.get(p);if(A){if(A.record.reason)continue;let I={...A.record,reason:f};delete I.entry,r.set(p,{...A,record:I,spec:void 0});continue}let h={repository:l.slug,file:c.rel,sourceAsset:`${c.rel}.source`,reason:f},m=o(I=>[`${a.file}: shared-environment delivery is blocked: ${I}`],"problem"),E=Nl(l.path,p);if(typeof E=="string"){r.set(p,{record:h,source:l,original:Buffer.alloc(0),problems:m(`${E} (holdDependents)`)});continue}let v=Pt.resolve(l.path,h.sourceAsset),b=lb(v)&&!Ag(l.path,v,E)?m("the inert source asset path already contains different bytes"):[];r.set(p,{record:h,source:l,original:E,problems:b})}return[...r.values()]}o(qY,"holdDependents");var Zr=ee(require("node:fs")),Se=ee(require("node:path"));var dc=ee(require("path"));var T2e={python:"pytest",typescript:"playwright",javascript:"playwright"},D2e={pytest:"pytest",playwright:"playwright"};var kEe=new Set(["package.json","package-lock.json","npm-shrinkwrap.json","pnpm-lock.yaml","yarn.lock","bun.lock","bun.lockb","pyproject.toml","poetry.lock","uv.lock","pdm.lock","Pipfile","Pipfile.lock","setup.py","setup.cfg","go.mod","go.sum","Gemfile","Gemfile.lock","pom.xml","build.gradle","build.gradle.kts"]);function pb(e){let t=dc.basename(e);return kEe.has(t)||/^requirements[^/\\]*\.(txt|in)$/.test(t)}o(pb,"isDependencyFile");var YY="shared-environment delivery cannot verify it for guarded execution",WY=o((e,t)=>`${fi(e.inputs,t.source.slug)}${t.file}`,"omittedLabel");function fb(e,t,n){let i=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=new Set(n.map(s=>Se.resolve(s.source.path,s.record.file)));return t.tests.filter(s=>{let a=i(s.file);return!r.has(Se.resolve(a.root,a.rel))&&s.change!=="updated"&&Ul(e,s)})}o(fb,"unplannedSharedTests");function gb(e,t,n,i){let r=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),s=new Map(n.map(u=>[Se.resolve(u.source.path,u.record.file),u])),a=new Set,c=[];for(let u of t.tests){let l=r(u.file),p=Se.resolve(l.root,l.rel),f=s.get(p);if(f){a.add(Se.resolve(l.root,f.record.sourceAsset)),f.record.entry&&a.add(p);continue}if(u.change==="deleted"){MEe(e,l.root,l.rel)?a.add(p):c.push(`${u.file}: a deleted shared-environment test must actually be absent and be a tracked regular file in the host-pinned source`);continue}if(u.change==="updated"||!Ul(e,u)){a.add(p);continue}if(Ei(e,l.root,l.rel)){a.add(p);continue}try{let A=Ts(Zr.readFileSync(p,"utf-8"));if(!A)continue;if(a.add(p),"restriction"in A){let h=Se.resolve(Se.dirname(p),A.sourceAsset.path);a.add(h),!i.has(h)&&!Ei(e,l.root,Se.relative(l.root,h))&&c.push(`${u.file}: its restricted source asset is missing from the actual delivery commit`)}}catch{}}return{allowed:a,problems:c}}o(gb,"verifiedDeliveryPaths");function Ab(e,t,n,i){let r=[];for(let[s,a]of t)for(let c of a)n.has(Se.resolve(s.path,c))||!i.length&&!e.inputs.deliver&&Po().version==="unknown"||OEe(e,s.path,c)||Ei(e,s.path,c)||r.push({source:s,file:c});return r}o(Ab,"unverifiedDeliveryPaths");var ZY=[".ts",".tsx",".mts",".cts",".js",".jsx",".mjs",".cjs",".json"],KY=/(?:\bfrom\s*|\bimport(?:\s*\()?\s*|\brequire\s*\(\s*)["'`]([^"'`\n]+)["'`]/g,BEe=/^[ \t]*from[ \t]+([.\w]+)[ \t]+import[ \t]+\(?([\w\t ,*]+)/gm,REe=/^[ \t]*import[ \t]+([\w.]+)/gm;function xEe(e,t){if(!/^\.\.?(?:\/|$)/.test(t))return[];let n=Se.resolve(e,t),i=/\.[cm]?jsx?$/.test(n)?[n.replace(/\.([cm]?)js(x?)$/,".$1ts$2")]:[];return[n,...i,...ZY.flatMap(r=>[n+r,Se.join(n,`index${r}`)])]}o(xEe,"jsCandidates");function HY(e,t,n,i){let r=/^\.*/.exec(n)[0].length,s=n.slice(r).split(".").filter(Boolean);return(r?[Se.resolve(t,...Array(r-1).fill(".."))]:[e,t]).flatMap(c=>{let u=Se.join(c,...s);return[`${u}.py`,Se.join(u,"__init__.py"),...i.map(l=>Se.join(u,`${l}.py`))]})}o(HY,"pyCandidates");function QEe(e,t,n){let i=Se.dirname(t),r=new Set;if(t.endsWith(".py")){for(let[,s,a]of n.matchAll(BEe))for(let c of HY(e,i,s,a.split(/[\s,]+/).filter(u=>/^\w+$/.test(u))))r.add(c);for(let[,s]of n.matchAll(REe))for(let a of HY(e,i,s,[]))r.add(a)}else for(let[,s]of n.matchAll(KY))for(let a of xEe(i,s))r.add(a);return r}o(QEe,"importedFiles");function $Ee(e,t){let n=new Set;if(e.endsWith(".py")||e.endsWith(".go"))return n;for(let[,i]of t.matchAll(KY)){if(/^\.\.?(?:\/|$)/.test(i)||/^[a-z][\w+.-]*:/i.test(i))continue;let r=i.split("/").pop()??"";r&&n.add(r.replace(/\.[cm]?[jt]sx?$/,""))}return n}o($Ee,"aliasedStems");function TEe(e,t){let n=Se.extname(t);if(!ZY.includes(n))return!1;let i=Se.basename(t,n);return e.has(i)||i==="index"&&e.has(Se.basename(Se.dirname(t)))}o(TEe,"aliasNeeds");function DEe(e,t){let n=Se.basename(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`(?<![\\w.-])${n}(?![\\w.-])`).test(e)}o(DEe,"mentions");function JY(e,t){for(let n=Se.dirname(t);;n=Se.dirname(n)){if(Zr.existsSync(Se.join(n,"go.mod")))return n;if(n===e||Se.dirname(n)===n)return e}}o(JY,"goModule");function _Ee(e,t){let n=[];t.isolatedRun&&n.push({cwd:".",text:t.isolatedRun}),t.run&&n.push({cwd:t.run.cwd,text:t.run.argv.join(" ")}),t.ci?.list&&n.push({cwd:t.ci.list.cwd,text:t.ci.list.argv.join(" ")});for(let r of t.ci?.steps??[])n.push({cwd:".",text:r.line});for(let r of t.context??[])r.cleanup&&n.push({cwd:".",text:r.cleanup});let i=new Set;for(let{cwd:r,text:s}of n)for(let a of s.split(/[\s"'`;&|()<>=,]+/))a&&!/^[a-z][\w+.-]*:/i.test(a)&&i.add(Se.resolve(e,r,a));return i}o(_Ee,"commandFiles");var NEe={".py":"python",".js":"node",".cjs":"node",".mjs":"node",".jsx":"node",".ts":"node",".cts":"node",".mts":"node",".tsx":"node",".go":"go",".rb":"ruby",".java":"jvm",".kt":"jvm",".kts":"jvm",".scala":"jvm",".groovy":"jvm"},PEe=[[/^(?:playwright|vitest|jest)\.config\.(?:[cm]?[jt]s|json)$/,"node"],[/^tsconfig\.json$/,"node"],[/^(?:pytest|tox)\.ini$/,"python"]];function UEe(e){let t=Se.basename(e);if(["conftest.py","__init__.py"].includes(t))return"python";let n=PEe.find(([i])=>i.test(t));if(n)return n[1];if(pb(e))return/^(?:package\.json|package-lock\.json|npm-shrinkwrap\.json|yarn\.lock|pnpm-lock\.yaml|bun\.lockb?)$/.test(t)?"node":/^go\.(?:mod|sum)$/.test(t)?"go":/^Gemfile(?:\.lock)?$/.test(t)?"ruby":/^(?:pom\.xml|build\.gradle(?:\.kts)?)$/.test(t)?"jvm":"python"}o(UEe,"implicitEcosystem");function FEe(e,t,n){let i=NEe[Se.extname(t)];if(i==="go"&&Se.extname(n)===".go"&&JY(e,n)===JY(e,t))return!0;let r=UEe(n);if(!r||i&&i!==r)return!1;let s=Se.relative(Se.dirname(n),t);return!s.startsWith("..")&&!Se.isAbsolute(s)}o(FEe,"implicitlyNeeds");function XY(e,t,n){let i=new Map;if(!n.length)return i;let r=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let s of t.tests){if(s.change==="deleted")continue;let a=r(s.file);if(!Wr(a)||Ei(e,a.root,a.rel))continue;let c=Se.resolve(a.root),u=Se.resolve(c,a.rel),l=n.filter(E=>Se.resolve(E.source.path)===c);if(!l.length)continue;let p="";try{p=Zr.readFileSync(u,"utf-8")}catch{}let f=QEe(c,u,p),A=$Ee(u,p),h=_Ee(c,s),m=l.filter(E=>{let v=Se.resolve(c,E.file);return f.has(v)||h.has(v)||TEe(A,v)||DEe(p,v)||FEe(c,u,v)});m.length&&i.set(u,`needs ${m.map(E=>WY(e,E)).join(", ")}, which is not in the tests PR: ${YY}`)}return i}o(XY,"supportDependents");function Uo(e){return Array.isArray(e)?`[${e.map(Uo).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([t],[n])=>t.localeCompare(n)).map(([t,n])=>`${JSON.stringify(t)}:${Uo(n)}`).join(",")}}`:JSON.stringify(e)??"undefined"}o(Uo,"stable");function OEe(e,t,n){let i=Se.basename(n);if(i!=="package.json"&&i!=="package-lock.json")return!1;let r=Po().version;if(r==="unknown")return!1;let s,a;try{let c=Se.resolve(t,n);if(!Zr.lstatSync(c).isFile()||Zr.realpathSync(c)!==c)return!1;s=JSON.parse(Zr.readFileSync(c,"utf-8"));let u=e.executionSafetySources?.find(A=>Se.resolve(A.path)===Se.resolve(t));if(u){let A=db(t,u.head,n);A&&(a=JSON.parse(A.bytes.toString("utf-8")))}else if(Zr.existsSync(Se.join(t,".git")))return!1;let l=o(A=>{let h=structuredClone(A);for(let m of["dependencies","devDependencies"])h[m]&&(delete h[m]["@skyramp/testbot-core"],Object.keys(h[m]).length||delete h[m]);return h},"withoutCore");if(i==="package.json")return(s.devDependencies?.["@skyramp/testbot-core"]??s.dependencies?.["@skyramp/testbot-core"])!==r?!1:a?Uo(l(s))===Uo(l(a)):Object.keys(s).every(A=>["name","version","private","type","scripts","dependencies","devDependencies"].includes(A))&&(!s.scripts||Uo(s.scripts)===Uo({test:"node --test"}))&&Object.keys(s.dependencies??{}).every(A=>A==="@skyramp/testbot-core")&&Object.keys(s.devDependencies??{}).every(A=>A==="@skyramp/testbot-core");let p=s.packages?.["node_modules/@skyramp/testbot-core"];if(!p||p.version!==r||p.link||p.hasInstallScript||p.resolved!==`https://registry.npmjs.org/@skyramp/testbot-core/-/testbot-core-${r}.tgz`||!/^sha512-[A-Za-z0-9+/=]+$/.test(p.integrity??""))return!1;let f=o(A=>{let h=structuredClone(A);return h.packages&&(delete h.packages["node_modules/@skyramp/testbot-core"],h.packages[""]&&(h.packages[""]=l(h.packages[""]))),h},"stripped");return a?Uo(f(s))===Uo(f(a)):Object.keys(s.packages??{}).every(A=>A===""||A==="node_modules/@skyramp/testbot-core")&&!s.packages?.[""]?.scripts}catch{return!1}}o(OEe,"safeRuntimeManifest");function MEe(e,t,n){try{return Zr.lstatSync(Se.join(t,n)),!1}catch(r){if(r.code!=="ENOENT")return!1}let i=e.executionSafetySources?.find(r=>Se.resolve(r.path)===Se.resolve(t));return!i||!/^[a-f0-9]{40,64}$/.test(i.head)?!1:db(t,i.head,n)!==null}o(MEe,"trackedDeletion");function LEe(e){try{return hb.lstatSync(e),!0}catch{return!1}}o(LEe,"lexists");function mb(e,t=mg(e)){let n=new Set(t.omitted.map(({source:i,file:r})=>Tt.resolve(i.path,r)));return new Map([...eW(e,t.assemblies)].map(([i,r])=>[i,r.filter(s=>!n.has(Tt.resolve(i.path,s)))]))}o(mb,"deliverAllowlist");function mg(e,t=ve(e,"write.json")){if(!t||!On(e.inputs))return{assemblies:[],omitted:[],hasSharedTests:!1};let n=hg(e,t),i=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=new Set(t.tests.map(c=>{let u=i(c.file);return Tt.resolve(u.root,u.rel)})),s=[],a=n;for(;;){let c=a.length>0||fb(e,t,a).length>0;if(!c)return{assemblies:a,omitted:s,hasSharedTests:c};let u=eW(e,a),l=new Set([...u].flatMap(([h,m])=>m.map(E=>Tt.resolve(h.path,E)))),{allowed:p}=gb(e,t,a,l),f=new Set(s.map(({source:h,file:m})=>Tt.resolve(h.path,m))),A=Ab(e,u,p,a).filter(({source:h,file:m})=>{let E=Tt.resolve(h.path,m);return!f.has(E)&&!r.has(E)});if(!A.length)return{assemblies:a,omitted:s,hasSharedTests:c};s.push(...A),a=qY(e,t,n,XY(e,t,s))}}o(mg,"sharedDeliveryPlan");function eW(e,t){let n=new Set(t.filter(({record:v})=>!v.entry).map(({source:v,record:b})=>Tt.join(v.path,b.file))),i=ve(e,"adapt.json"),r=ve(e,"finalize.json"),s=ve(e,gg),a=new Map,c=o(v=>{let b=bs(e.inputs,v);if("error"in b)return;let I=a.get(b.source.path)??{source:b.source,paths:new Set};return a.set(b.source.path,I),{repo:I.source.path,paths:I.paths}},"pathsOf"),u=o((v,b)=>Tt.relative(v,Tt.resolve(v,b.trim())).replace(/\/+$/,""),"norm"),l=o((v,b)=>{let I=b?.trim()&&c(v);if(!I)return;let C=u(I.repo,b);I.paths.add(C);for(let x of["__init__.py","conftest.py"]){let w=Tt.join(Tt.dirname(C),x);hb.existsSync(Tt.join(I.repo,w))&&(!n.has(Tt.join(I.repo,C))||!Ei(e,I.repo,w))&&I.paths.add(w)}},"addTest"),p=o((v,b)=>{if(typeof b!="string"||!b.trim())return;let I=c(v);if(!I)return;let C=u(I.repo,b);if(eg(Tt.join(I.repo,C)))return I.paths.add(C),{...I,rel:C}},"addEdited"),f=O0(e),A=(i?.items??[]).filter(v=>v.action==="place"&&f.has(v.from??v.file??"")),h=o((v,b)=>A.some(I=>I.repository===v&&I.file&&Tt.normalize(I.file)===b),"heldIn"),m=(i?.items??[]).filter(v=>!A.includes(v));for(let v of[...m,...s?.tests??[],...s?.maintained??[]])l(v.repository,v.file);for(let v of r?.dependencies?.added??[]){let b=p(v.repository,v.manifest);if(b)for(let I of l0(b.repo,JE(b.repo,b.rel)))b.paths.add(I)}for(let v of r?.lint??[])for(let b of v.fixed??[])p(v.repository,b);for(let v of r?.support??[])p(v.repository,v.file);let E=ve(e,YE)?.packages??[];for(let v of new Set(E.map(b=>b.repository))){let b=c(v),I=E.filter(C=>C.repository===v).map(C=>C.dir);if(b)for(let{path:C}of tb(b.repo)){let x=u(b.repo,C),w=Tt.join(b.repo,x);WE(x,I)&&!d0(x)&&!h(v,x)&&(!LEe(w)||eg(w))&&b.paths.add(x)}}for(let{record:v,source:b,problems:I}of t){let C=a.get(b.path)?.paths;C?.has(v.file)&&(C.delete(v.file),!I.length&&(v.entry&&C.add(v.entry),C.add(v.sourceAsset)))}return new Map([...a.values()].map(({source:v,paths:b})=>[v,[...b].filter(I=>I&&I!==".."&&!I.startsWith(`..${Tt.sep}`)&&!Qo(I))]))}o(eW,"candidateAllowlist");hu();var YHe=5*6e4,WHe=12*6e4,ZHe=2*6e4;var iJe=["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(`
265
+ `),s}o(lEe,"conformed");function _l(e,t,n){if(n.length>iEe||n.includes(0))return n;let i=Rr.resolve(e),r=uEe(i,Rr.resolve(i,t),s=>{try{return cEe(ab.readFileSync(Rr.join(s,".editorconfig"),"utf-8"))}catch{return}});return Buffer.from(lEe(n.toString("latin1"),r),"latin1")}o(_l,"conformDeliveredBytes");var LY=ee(require("fs")),jY=ee(require("path"));function Po(e=__dirname){try{let t=LY.readFileSync(jY.join(e,"VERSION.json"),"utf-8"),n=JSON.parse(t);if(typeof n.version=="string"&&typeof n.commit=="string")return{version:n.version,commit:n.commit}}catch{}return{version:"unknown",commit:"unknown"}}o(Po,"getTestbotVersion");var uc=ee(require("node:fs")),lc=ee(require("node:path"));function G0(e,t){let n=lc.relative(e,t);try{let i=uc.lstatSync(t);if(i.isSymbolicLink())return"test entry is a symlink";if(!i.isFile())return"test entry is not a regular file";let r=uc.realpathSync(e),s=uc.realpathSync(t),a=lc.relative(r,s);return!a||a.startsWith("..")||lc.isAbsolute(a)?`test entry's real path is outside the checkout (${a})`:a!==n?`test entry's real path is ${a}, not ${n}, after canonicalisation`:void 0}catch(i){return i.code==="ENOENT"?`test entry is missing: no file is at ${n} in the checkout`:`test entry cannot be read: ${Pl(i,e)}`}}o(G0,"guardedEntryProblem");function Nl(e,t){let n=G0(e,t);if(n)return n;try{return uc.readFileSync(t)}catch(i){return`test entry cannot be read: ${Pl(i,e)}`}}o(Nl,"readGuardedEntry");function Pl(e,t){return(e instanceof Error?e.message:String(e)).split(t+lc.sep).join("")}o(Pl,"errorWithoutCheckout");function dEe(e){return ve(e,`${W$}.json`)?.guardUnavailable===!0}o(dEe,"writeGuardUnavailable");function GY(e){let t=ve(e,"recommend.json"),n=ve(e,`${W$}.json`),i=new Map(dEe(e)?(t?.generate??[]).map(({id:r})=>[r,wE]):[]);for(let{id:r,reason:s}of t?.withheld??[])i.has(r)||i.set(r,`off-limits execution (${s??"environment policy"})`);if(n?.browserWithheld)for(let r of t?.generate??[])r.type==="ui"&&!i.has(r.id)&&i.set(r.id,"the shared-environment browser guard is unavailable");return i}o(GY,"writeExecutionRestrictions");function VY(e,t){let n=new Set((e.covers??[]).flatMap(i=>{let r=t.get(i);return r?[r]:[]}));return n.size?`environment restriction: ${[...n].join("; ")}`:void 0}o(VY,"writtenRestriction");function fEe(e){return!!e.guardedDelivery||!!e.context?.some(t=>t.safety?.route==="persistence")}o(fEe,"keepsSharedData");function Ul(e,t){let n=e.inputs.sharedEnvironment?.environmentAddress;return!!n&&(t.result?.cases??[]).some(i=>i.runtimeTargets?.some(r=>uo(n,r)))}o(Ul,"usesSharedRuntime");function hg(e,t,n=Po().version){if(!On(e.inputs))return[];let i=e.inputs.sharedEnvironment,r=i?.environmentAddress,s=ve(e,jC),a=l1.safeParse(s),c=a.success&&a.data.environmentId===i?.environmentId&&a.data.environmentAddress===r?a.data:void 0,u=d1.safeParse(s),l=u.success?wp(u.data.refusal):a.success?wp("changed"):wp("unavailable"),p=GY(e),f=new Map(sb(e,t).map(b=>[b.file,b.verdict])),A=x0(B0(e)),h=ve(e,"recommend.json"),m=new Map((h?.generate??[]).map(({id:b,target:I})=>[b,I])),E=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),v=new Map;for(let b of t.tests){if(b.change==="deleted")continue;let I=E(b.file);if(!Wr(I)||Qo(I.rel))continue;let C=bs(e.inputs,I.repository);if("error"in C)continue;let x=C.source,w=Pt.resolve(x.path,I.rel),$=VY(b,p)??gEe(A,I),B=fEe(b),Z=Ul(e,b),oe;if(!$&&!Z&&!B){if(!w.endsWith(".test.cjs"))continue;try{if(!V0(x.path,w))continue;oe=Ts(Lt.readFileSync(w,"utf8"))}catch{continue}if(!oe||"restriction"in oe)continue}let H=(b.covers??[]).flatMap(St=>{let Xe=m.get(St)?.match(/^(GET|HEAD|OPTIONS|POST|PUT|PATCH|DELETE)\s+(\S+?)[,;]?(?:\s|$)/i);return!Xe||!r?[]:Xe[2].startsWith("/")||uo(r,Xe[2])?[{method:Xe[1].toUpperCase(),route:Xe[2]}]:[]}),me=vEe(e,x.path,I.rel);if(!$&&b.change!=="added"&&(me===!1||me===void 0&&!e.inputs.deliver))continue;let _e=o(St=>`${b.file}: shared-environment delivery is blocked: ${St}`,"problem"),Ue={repository:x.slug,file:I.rel,sourceAsset:`${I.rel}.source`},Ie=Nl(x.path,w);if(typeof Ie=="string"){v.set(w,{record:Ue,source:x,original:Buffer.alloc(0),problems:[_e(`${Ie} (planGuardedDelivery)`)]});continue}if(b.change!=="added"&&Ei(e,x.path,I.rel)){$&&(Ue.reason=$,v.set(w,{record:Ue,source:x,original:Ie,problems:[]}));continue}if(me===!1||b.change!=="added"&&me!==!0){v.set(w,{record:Ue,source:x,original:Ie,problems:[_e(me===!1?"the file changes an existing test; retain the assertions in a new file":"cannot prove whether the shared test already exists; use a host-pinned checkout")]});continue}if(oe??=Ts(Ie.toString("utf8")),!$&&oe&&"restriction"in oe)continue;let K,V=rb.safeParse(b.guardedDelivery),Me=c&&i?{environmentId:c.environmentId,environmentAddress:c.environmentAddress,persistenceRevision:c.revision,offLimits:i.offLimits??[],route:{kind:"persistence"}}:void 0,Ze=`environment restriction: persistence permission was not confirmed at generation: ${l}`;if($)K=$;else if(B&&!Me)K=Ze;else if(!V.success||!Me)K="no guarded HTTP representation preserves the test's assertions";else if(!b.covers?.length||(b.functions?.length??1)!==1)K="guarded HTTP delivery requires one test function";else if(!/\.test\.cjs$/.test(I.rel)||!yEe(b.ci))K="the test has no compatible Node CI entry";else if(!b.ci?.collected&&f.get(b.file)!=="not-collected")K="Testbot could not confirm that the repo's CI leaves it out, and only node --test can run the entry";else if(!EEe(x.path,w,n))K=`the CI package does not declare @skyramp/testbot-core ${n}, the released guarded runtime the entry needs`;else{let{steps:St}=V.data,Xe=Me.offLimits.length?J$(e.inputs.skyrampMcp,Me.offLimits):void 0,yn=new Map,ft=St.flatMap(ut=>{if(ut.op==="create"){let ne=AEe(Me.environmentAddress,ut.collection);return ne&&yn.set(ut.as,ne),[{method:"POST",url:ne,child:!1}]}if(ut.op!=="read"&&ut.op!=="update")return[];let $e=yn.get(ut.resource);return $e&&yn.set(ut.as,$e),[{method:ut.op==="read"?"GET":ut.method??"PATCH",url:$e,child:!0}]});ft.some(({url:ut})=>!ut)?K="the guarded HTTP steps name an unknown resource or a collection outside the Test Environment":Xe&&i&&ft.some(({url:ut,child:$e})=>!$e&&Bq(ut.href,i,Xe))?K="the guarded HTTP steps name an off-limits collection":H.length&&!H.some(({method:ut,route:$e})=>ft.some(ne=>ne.url&&ne.method===ut&&hEe(Me.environmentAddress,ne.url,ne.child,$e)))&&(K="the guarded HTTP steps do not represent the planned HTTP operation")}let jt;if(K)Ue.reason=K;else if(V.success&&Me){let{bearerTokenEnv:St,...Xe}=V.data;jt={...Xe,definition:{...Me,...St?{bearerTokenEnv:St}:{}}},Ue.entry=I.rel}let ct=Pt.resolve(x.path,Ue.sourceAsset),sn=lb(ct)&&!Ag(x.path,ct,Ie)?[_e("the inert source asset path already contains different bytes")]:[];v.set(w,{record:Ue,source:x,original:Ie,spec:jt,problems:sn})}return[...v.values()]}o(hg,"planGuardedDelivery");function gEe(e,t){return e.find(n=>R0(n,{file:t.rel,repository:t.repository}))?.environmentRestriction}o(gEe,"restrictionRecordedAtRun");function AEe(e,t){try{let n=new URL(t,`${e.replace(/\/$/,"")}/`);return!n.search&&!n.hash&&!n.username&&!n.password&&!/[\\]|%(?:2f|5c|2e|25)/i.test(t)&&uo(e,n.href)?n:void 0}catch{return}}o(AEe,"guardedCollection");function hEe(e,t,n,i){try{let r=new URL(i,t.origin),s=i.startsWith("/")&&!i.startsWith("//")&&!uo(e,r.href)?new URL(i.slice(1),`${e.replace(/\/$/,"")}/`):r;if(!uo(e,s.href))return!1;let a=t.pathname.replace(/\/$/,""),c=s.pathname.replace(/\/$/,"");if(!n)return c===a;if(!c.startsWith(`${a}/`))return!1;let u=decodeURIComponent(c.slice(a.length+1));return/^(:[\w-]+|\{[^/{}]+\}|<[^/<>]+>)$/.test(u)}catch{return!1}}o(hEe,"representsRoute");function mEe(e){return!!e&&/^(?:node|node:test|node\s+(?:.*\s)?--test(?:\s.*)?)$/i.test(e.trim())}o(mEe,"nodeTestRunner");function yEe(e){return e?.collected===!1||!!e?.collected&&mEe(e.runner)}o(yEe,"nodeTestEntry");function V0(e,t){let n=Lt.realpathSync(e);return Lt.lstatSync(t).isFile()&&Lt.realpathSync(t)===Pt.join(n,Pt.relative(e,t))}o(V0,"regularFileIn");function Ag(e,t,n){try{return V0(e,t)&&Lt.readFileSync(t).equals(n)}catch{return!1}}o(Ag,"sameRegularBytes");function lb(e){try{return Lt.lstatSync(e),!0}catch(t){if(t.code==="ENOENT")return!1;throw t}}o(lb,"pathExists");function EEe(e,t,n){if(n==="unknown")return!1;for(let i=Pt.dirname(t);;i=Pt.dirname(i)){let r=Pt.join(i,"package.json");if(lb(r))try{if(!V0(e,r))return!1;let s=JSON.parse(Lt.readFileSync(r,"utf-8"));return(s.devDependencies?.["@skyramp/testbot-core"]??s.dependencies?.["@skyramp/testbot-core"])===n}catch{return!1}if(i===e)return!1}}o(EEe,"hasGuardRuntime");function bEe(e){let t=ve(e,"write.json");return t?hg(e,t):[]}o(bEe,"guardedDeliveryPlan");function zY(e,t=bEe(e),n=[],i=[]){return t.flatMap(({record:r,source:s,original:a,spec:c,problems:u})=>{if(u.length)return u;let l=Pt.join(s.path,r.sourceAsset),p=Pt.join(s.path,r.file),f=`reading ${r.file}`;try{let A=Nl(s.path,p);if(typeof A=="string")return[`${r.file}: ${A} (writeGuardedDeliveryFiles)`];if(!A.equals(a))return[`${r.file}: native source changed before guarded delivery`];f=`preparing ${r.sourceAsset}`;let h=cc(a.toString("utf-8"),n).content;if(ro(h,e.secretValues??[])!==h)return[`${r.file}: the retained source contains a credential`];let m=_l(s.path,r.sourceAsset,Buffer.from(h));if(f=`writing ${r.sourceAsset}`,lb(l)){if(!Ag(s.path,l,a)&&!Ag(s.path,l,m))return[`${r.file}: the inert source asset path already contains different bytes`];Ag(s.path,l,m)||(i.push(()=>Lt.writeFileSync(l,a)),Lt.writeFileSync(l,m))}else Lt.writeFileSync(l,m,{flag:"wx"}),i.push(()=>Lt.rmSync(l,{force:!0}));if(r.entry&&c){let E=cg({...c,name:Dl(c.name,n)}),v=_l(s.path,r.entry,Buffer.from(E));if(!Ts(v.toString("utf-8")))return[`${r.file}: the repository's file conventions changed the guarded entry`];if(ro(v.toString("utf-8"),e.secretValues??[])!==v.toString("utf-8"))return[`${r.file}: guarded delivery steps include a credential`];f=`writing ${r.entry}`,i.push(()=>Lt.writeFileSync(p,a)),Lt.writeFileSync(p,v)}return[]}catch(A){return[`${r.file}: could not assemble its guarded delivery files (writeGuardedDeliveryFiles): ${f} failed: ${Pl(A,s.path)}`]}})}o(zY,"writeGuardedDeliveryFiles");function vEe(e,t,n){let i=e.executionSafetySources?.find(r=>Pt.resolve(r.path)===Pt.resolve(t));if(i)try{return(0,ub.execFileSync)("git",["--literal-pathspecs","ls-tree",i.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]})===""}catch{return}}o(vEe,"newAtSourcePin");function Ei(e,t,n){let i=e.executionSafetySources?.find(r=>Pt.resolve(r.path)===Pt.resolve(t));if(!i||!/^[a-f0-9]{40,64}$/.test(i.head))return!1;try{let r=Pt.join(t,n),s=Lt.lstatSync(r);if(!s.isFile()||Lt.realpathSync(r)!==r)return!1;let a=db(t,i.head,n);return!a||(s.mode&73)!==0!==a.executable?!1:Lt.readFileSync(r).equals(a.bytes)}catch{return!1}}o(Ei,"unchangedSource");var cb=new Map;function db(e,t,n){let i=`${Pt.resolve(e)}\0${t}\0${n}`,r=cb.get(i);if(r!==void 0)return r;let s=null;try{let a=(0,ub.execFileSync)("git",["--literal-pathspecs","ls-tree",t,"--",n],{cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]});/^100(?:644|755) blob /.test(a)&&(s={executable:a.startsWith("100755"),bytes:(0,ub.execFileSync)("git",["show",`${t}:${n}`],{cwd:e,stdio:["ignore","pipe","ignore"]})})}catch{s=null}return cb.size>=1e4&&cb.clear(),cb.set(i,s),s}o(db,"pinnedBlob");function qY(e,t,n,i){if(!i.size)return[...n];let r=new Map(n.map(a=>[Pt.resolve(a.source.path,a.record.file),a])),s=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let a of t.tests){if(a.change==="deleted")continue;let c=s(a.file);if(!Wr(c)||Qo(c.rel))continue;let u=bs(e.inputs,c.repository);if("error"in u)continue;let l=u.source,p=Pt.resolve(l.path,c.rel),f=i.get(p);if(!f)continue;let A=r.get(p);if(A){if(A.record.reason)continue;let I={...A.record,reason:f};delete I.entry,r.set(p,{...A,record:I,spec:void 0});continue}let h={repository:l.slug,file:c.rel,sourceAsset:`${c.rel}.source`,reason:f},m=o(I=>[`${a.file}: shared-environment delivery is blocked: ${I}`],"problem"),E=Nl(l.path,p);if(typeof E=="string"){r.set(p,{record:h,source:l,original:Buffer.alloc(0),problems:m(`${E} (holdDependents)`)});continue}let v=Pt.resolve(l.path,h.sourceAsset),b=lb(v)&&!Ag(l.path,v,E)?m("the inert source asset path already contains different bytes"):[];r.set(p,{record:h,source:l,original:E,problems:b})}return[...r.values()]}o(qY,"holdDependents");var Zr=ee(require("node:fs")),Se=ee(require("node:path"));var dc=ee(require("path"));var D2e={python:"pytest",typescript:"playwright",javascript:"playwright"},_2e={pytest:"pytest",playwright:"playwright"};var kEe=new Set(["package.json","package-lock.json","npm-shrinkwrap.json","pnpm-lock.yaml","yarn.lock","bun.lock","bun.lockb","pyproject.toml","poetry.lock","uv.lock","pdm.lock","Pipfile","Pipfile.lock","setup.py","setup.cfg","go.mod","go.sum","Gemfile","Gemfile.lock","pom.xml","build.gradle","build.gradle.kts"]);function pb(e){let t=dc.basename(e);return kEe.has(t)||/^requirements[^/\\]*\.(txt|in)$/.test(t)}o(pb,"isDependencyFile");var YY="shared-environment delivery cannot verify it for guarded execution",WY=o((e,t)=>`${fi(e.inputs,t.source.slug)}${t.file}`,"omittedLabel");function fb(e,t,n){let i=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=new Set(n.map(s=>Se.resolve(s.source.path,s.record.file)));return t.tests.filter(s=>{let a=i(s.file);return!r.has(Se.resolve(a.root,a.rel))&&s.change!=="updated"&&Ul(e,s)})}o(fb,"unplannedSharedTests");function gb(e,t,n,i){let r=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),s=new Map(n.map(u=>[Se.resolve(u.source.path,u.record.file),u])),a=new Set,c=[];for(let u of t.tests){let l=r(u.file),p=Se.resolve(l.root,l.rel),f=s.get(p);if(f){a.add(Se.resolve(l.root,f.record.sourceAsset)),f.record.entry&&a.add(p);continue}if(u.change==="deleted"){MEe(e,l.root,l.rel)?a.add(p):c.push(`${u.file}: a deleted shared-environment test must actually be absent and be a tracked regular file in the host-pinned source`);continue}if(u.change==="updated"||!Ul(e,u)){a.add(p);continue}if(Ei(e,l.root,l.rel)){a.add(p);continue}try{let A=Ts(Zr.readFileSync(p,"utf-8"));if(!A)continue;if(a.add(p),"restriction"in A){let h=Se.resolve(Se.dirname(p),A.sourceAsset.path);a.add(h),!i.has(h)&&!Ei(e,l.root,Se.relative(l.root,h))&&c.push(`${u.file}: its restricted source asset is missing from the actual delivery commit`)}}catch{}}return{allowed:a,problems:c}}o(gb,"verifiedDeliveryPaths");function Ab(e,t,n,i){let r=[];for(let[s,a]of t)for(let c of a)n.has(Se.resolve(s.path,c))||!i.length&&!e.inputs.deliver&&Po().version==="unknown"||OEe(e,s.path,c)||Ei(e,s.path,c)||r.push({source:s,file:c});return r}o(Ab,"unverifiedDeliveryPaths");var ZY=[".ts",".tsx",".mts",".cts",".js",".jsx",".mjs",".cjs",".json"],KY=/(?:\bfrom\s*|\bimport(?:\s*\()?\s*|\brequire\s*\(\s*)["'`]([^"'`\n]+)["'`]/g,BEe=/^[ \t]*from[ \t]+([.\w]+)[ \t]+import[ \t]+\(?([\w\t ,*]+)/gm,REe=/^[ \t]*import[ \t]+([\w.]+)/gm;function xEe(e,t){if(!/^\.\.?(?:\/|$)/.test(t))return[];let n=Se.resolve(e,t),i=/\.[cm]?jsx?$/.test(n)?[n.replace(/\.([cm]?)js(x?)$/,".$1ts$2")]:[];return[n,...i,...ZY.flatMap(r=>[n+r,Se.join(n,`index${r}`)])]}o(xEe,"jsCandidates");function HY(e,t,n,i){let r=/^\.*/.exec(n)[0].length,s=n.slice(r).split(".").filter(Boolean);return(r?[Se.resolve(t,...Array(r-1).fill(".."))]:[e,t]).flatMap(c=>{let u=Se.join(c,...s);return[`${u}.py`,Se.join(u,"__init__.py"),...i.map(l=>Se.join(u,`${l}.py`))]})}o(HY,"pyCandidates");function QEe(e,t,n){let i=Se.dirname(t),r=new Set;if(t.endsWith(".py")){for(let[,s,a]of n.matchAll(BEe))for(let c of HY(e,i,s,a.split(/[\s,]+/).filter(u=>/^\w+$/.test(u))))r.add(c);for(let[,s]of n.matchAll(REe))for(let a of HY(e,i,s,[]))r.add(a)}else for(let[,s]of n.matchAll(KY))for(let a of xEe(i,s))r.add(a);return r}o(QEe,"importedFiles");function $Ee(e,t){let n=new Set;if(e.endsWith(".py")||e.endsWith(".go"))return n;for(let[,i]of t.matchAll(KY)){if(/^\.\.?(?:\/|$)/.test(i)||/^[a-z][\w+.-]*:/i.test(i))continue;let r=i.split("/").pop()??"";r&&n.add(r.replace(/\.[cm]?[jt]sx?$/,""))}return n}o($Ee,"aliasedStems");function TEe(e,t){let n=Se.extname(t);if(!ZY.includes(n))return!1;let i=Se.basename(t,n);return e.has(i)||i==="index"&&e.has(Se.basename(Se.dirname(t)))}o(TEe,"aliasNeeds");function DEe(e,t){let n=Se.basename(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`(?<![\\w.-])${n}(?![\\w.-])`).test(e)}o(DEe,"mentions");function JY(e,t){for(let n=Se.dirname(t);;n=Se.dirname(n)){if(Zr.existsSync(Se.join(n,"go.mod")))return n;if(n===e||Se.dirname(n)===n)return e}}o(JY,"goModule");function _Ee(e,t){let n=[];t.isolatedRun&&n.push({cwd:".",text:t.isolatedRun}),t.run&&n.push({cwd:t.run.cwd,text:t.run.argv.join(" ")}),t.ci?.list&&n.push({cwd:t.ci.list.cwd,text:t.ci.list.argv.join(" ")});for(let r of t.ci?.steps??[])n.push({cwd:".",text:r.line});for(let r of t.context??[])r.cleanup&&n.push({cwd:".",text:r.cleanup});let i=new Set;for(let{cwd:r,text:s}of n)for(let a of s.split(/[\s"'`;&|()<>=,]+/))a&&!/^[a-z][\w+.-]*:/i.test(a)&&i.add(Se.resolve(e,r,a));return i}o(_Ee,"commandFiles");var NEe={".py":"python",".js":"node",".cjs":"node",".mjs":"node",".jsx":"node",".ts":"node",".cts":"node",".mts":"node",".tsx":"node",".go":"go",".rb":"ruby",".java":"jvm",".kt":"jvm",".kts":"jvm",".scala":"jvm",".groovy":"jvm"},PEe=[[/^(?:playwright|vitest|jest)\.config\.(?:[cm]?[jt]s|json)$/,"node"],[/^tsconfig\.json$/,"node"],[/^(?:pytest|tox)\.ini$/,"python"]];function UEe(e){let t=Se.basename(e);if(["conftest.py","__init__.py"].includes(t))return"python";let n=PEe.find(([i])=>i.test(t));if(n)return n[1];if(pb(e))return/^(?:package\.json|package-lock\.json|npm-shrinkwrap\.json|yarn\.lock|pnpm-lock\.yaml|bun\.lockb?)$/.test(t)?"node":/^go\.(?:mod|sum)$/.test(t)?"go":/^Gemfile(?:\.lock)?$/.test(t)?"ruby":/^(?:pom\.xml|build\.gradle(?:\.kts)?)$/.test(t)?"jvm":"python"}o(UEe,"implicitEcosystem");function FEe(e,t,n){let i=NEe[Se.extname(t)];if(i==="go"&&Se.extname(n)===".go"&&JY(e,n)===JY(e,t))return!0;let r=UEe(n);if(!r||i&&i!==r)return!1;let s=Se.relative(Se.dirname(n),t);return!s.startsWith("..")&&!Se.isAbsolute(s)}o(FEe,"implicitlyNeeds");function XY(e,t,n){let i=new Map;if(!n.length)return i;let r=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let s of t.tests){if(s.change==="deleted")continue;let a=r(s.file);if(!Wr(a)||Ei(e,a.root,a.rel))continue;let c=Se.resolve(a.root),u=Se.resolve(c,a.rel),l=n.filter(E=>Se.resolve(E.source.path)===c);if(!l.length)continue;let p="";try{p=Zr.readFileSync(u,"utf-8")}catch{}let f=QEe(c,u,p),A=$Ee(u,p),h=_Ee(c,s),m=l.filter(E=>{let v=Se.resolve(c,E.file);return f.has(v)||h.has(v)||TEe(A,v)||DEe(p,v)||FEe(c,u,v)});m.length&&i.set(u,`needs ${m.map(E=>WY(e,E)).join(", ")}, which is not in the tests PR: ${YY}`)}return i}o(XY,"supportDependents");function Uo(e){return Array.isArray(e)?`[${e.map(Uo).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([t],[n])=>t.localeCompare(n)).map(([t,n])=>`${JSON.stringify(t)}:${Uo(n)}`).join(",")}}`:JSON.stringify(e)??"undefined"}o(Uo,"stable");function OEe(e,t,n){let i=Se.basename(n);if(i!=="package.json"&&i!=="package-lock.json")return!1;let r=Po().version;if(r==="unknown")return!1;let s,a;try{let c=Se.resolve(t,n);if(!Zr.lstatSync(c).isFile()||Zr.realpathSync(c)!==c)return!1;s=JSON.parse(Zr.readFileSync(c,"utf-8"));let u=e.executionSafetySources?.find(A=>Se.resolve(A.path)===Se.resolve(t));if(u){let A=db(t,u.head,n);A&&(a=JSON.parse(A.bytes.toString("utf-8")))}else if(Zr.existsSync(Se.join(t,".git")))return!1;let l=o(A=>{let h=structuredClone(A);for(let m of["dependencies","devDependencies"])h[m]&&(delete h[m]["@skyramp/testbot-core"],Object.keys(h[m]).length||delete h[m]);return h},"withoutCore");if(i==="package.json")return(s.devDependencies?.["@skyramp/testbot-core"]??s.dependencies?.["@skyramp/testbot-core"])!==r?!1:a?Uo(l(s))===Uo(l(a)):Object.keys(s).every(A=>["name","version","private","type","scripts","dependencies","devDependencies"].includes(A))&&(!s.scripts||Uo(s.scripts)===Uo({test:"node --test"}))&&Object.keys(s.dependencies??{}).every(A=>A==="@skyramp/testbot-core")&&Object.keys(s.devDependencies??{}).every(A=>A==="@skyramp/testbot-core");let p=s.packages?.["node_modules/@skyramp/testbot-core"];if(!p||p.version!==r||p.link||p.hasInstallScript||p.resolved!==`https://registry.npmjs.org/@skyramp/testbot-core/-/testbot-core-${r}.tgz`||!/^sha512-[A-Za-z0-9+/=]+$/.test(p.integrity??""))return!1;let f=o(A=>{let h=structuredClone(A);return h.packages&&(delete h.packages["node_modules/@skyramp/testbot-core"],h.packages[""]&&(h.packages[""]=l(h.packages[""]))),h},"stripped");return a?Uo(f(s))===Uo(f(a)):Object.keys(s.packages??{}).every(A=>A===""||A==="node_modules/@skyramp/testbot-core")&&!s.packages?.[""]?.scripts}catch{return!1}}o(OEe,"safeRuntimeManifest");function MEe(e,t,n){try{return Zr.lstatSync(Se.join(t,n)),!1}catch(r){if(r.code!=="ENOENT")return!1}let i=e.executionSafetySources?.find(r=>Se.resolve(r.path)===Se.resolve(t));return!i||!/^[a-f0-9]{40,64}$/.test(i.head)?!1:db(t,i.head,n)!==null}o(MEe,"trackedDeletion");function LEe(e){try{return hb.lstatSync(e),!0}catch{return!1}}o(LEe,"lexists");function mb(e,t=mg(e)){let n=new Set(t.omitted.map(({source:i,file:r})=>Tt.resolve(i.path,r)));return new Map([...eW(e,t.assemblies)].map(([i,r])=>[i,r.filter(s=>!n.has(Tt.resolve(i.path,s)))]))}o(mb,"deliverAllowlist");function mg(e,t=ve(e,"write.json")){if(!t||!On(e.inputs))return{assemblies:[],omitted:[],hasSharedTests:!1};let n=hg(e,t),i=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=new Set(t.tests.map(c=>{let u=i(c.file);return Tt.resolve(u.root,u.rel)})),s=[],a=n;for(;;){let c=a.length>0||fb(e,t,a).length>0;if(!c)return{assemblies:a,omitted:s,hasSharedTests:c};let u=eW(e,a),l=new Set([...u].flatMap(([h,m])=>m.map(E=>Tt.resolve(h.path,E)))),{allowed:p}=gb(e,t,a,l),f=new Set(s.map(({source:h,file:m})=>Tt.resolve(h.path,m))),A=Ab(e,u,p,a).filter(({source:h,file:m})=>{let E=Tt.resolve(h.path,m);return!f.has(E)&&!r.has(E)});if(!A.length)return{assemblies:a,omitted:s,hasSharedTests:c};s.push(...A),a=qY(e,t,n,XY(e,t,s))}}o(mg,"sharedDeliveryPlan");function eW(e,t){let n=new Set(t.filter(({record:v})=>!v.entry).map(({source:v,record:b})=>Tt.join(v.path,b.file))),i=ve(e,"adapt.json"),r=ve(e,"finalize.json"),s=ve(e,gg),a=new Map,c=o(v=>{let b=bs(e.inputs,v);if("error"in b)return;let I=a.get(b.source.path)??{source:b.source,paths:new Set};return a.set(b.source.path,I),{repo:I.source.path,paths:I.paths}},"pathsOf"),u=o((v,b)=>Tt.relative(v,Tt.resolve(v,b.trim())).replace(/\/+$/,""),"norm"),l=o((v,b)=>{let I=b?.trim()&&c(v);if(!I)return;let C=u(I.repo,b);I.paths.add(C);for(let x of["__init__.py","conftest.py"]){let w=Tt.join(Tt.dirname(C),x);hb.existsSync(Tt.join(I.repo,w))&&(!n.has(Tt.join(I.repo,C))||!Ei(e,I.repo,w))&&I.paths.add(w)}},"addTest"),p=o((v,b)=>{if(typeof b!="string"||!b.trim())return;let I=c(v);if(!I)return;let C=u(I.repo,b);if(eg(Tt.join(I.repo,C)))return I.paths.add(C),{...I,rel:C}},"addEdited"),f=O0(e),A=(i?.items??[]).filter(v=>v.action==="place"&&f.has(v.from??v.file??"")),h=o((v,b)=>A.some(I=>I.repository===v&&I.file&&Tt.normalize(I.file)===b),"heldIn"),m=(i?.items??[]).filter(v=>!A.includes(v));for(let v of[...m,...s?.tests??[],...s?.maintained??[]])l(v.repository,v.file);for(let v of r?.dependencies?.added??[]){let b=p(v.repository,v.manifest);if(b)for(let I of l0(b.repo,JE(b.repo,b.rel)))b.paths.add(I)}for(let v of r?.lint??[])for(let b of v.fixed??[])p(v.repository,b);for(let v of r?.support??[])p(v.repository,v.file);let E=ve(e,YE)?.packages??[];for(let v of new Set(E.map(b=>b.repository))){let b=c(v),I=E.filter(C=>C.repository===v).map(C=>C.dir);if(b)for(let{path:C}of tb(b.repo)){let x=u(b.repo,C),w=Tt.join(b.repo,x);WE(x,I)&&!d0(x)&&!h(v,x)&&(!LEe(w)||eg(w))&&b.paths.add(x)}}for(let{record:v,source:b,problems:I}of t){let C=a.get(b.path)?.paths;C?.has(v.file)&&(C.delete(v.file),!I.length&&(v.entry&&C.add(v.entry),C.add(v.sourceAsset)))}return new Map([...a.values()].map(({source:v,paths:b})=>[v,[...b].filter(I=>I&&I!==".."&&!I.startsWith(`..${Tt.sep}`)&&!Qo(I))]))}o(eW,"candidateAllowlist");hu();var WHe=5*6e4,ZHe=12*6e4,KHe=2*6e4;var sJe=["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(`
266
266
  `);var ar=ee(require("fs")),Ds=ee(require("path"));var Fo=ee(require("fs")),yb=ee(require("path"));var VEe="change-inputs",zEe=o((e,t)=>`${t}-${e.replace(/[^\w.-]+/g,n=>n==="/"?"__":"-")}.md`,"fileName");function qEe(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:zEe(t.label,n)})).filter(t=>t.body.length>bG)}o(qEe,"longDescriptions");function tW(e,t,n){let i=yb.join(t,VEe);Fo.rmSync(i,{recursive:!0,force:!0}),Fo.mkdirSync(i,{recursive:!0}),Fo.writeFileSync(yb.join(i,Ua),n,{mode:292});for(let r of qEe(e))Fo.writeFileSync(yb.join(i,r.file),`${r.body}
267
267
  `,{mode:292})}o(tW,"writeChangeInputs");var HEe=[/^\.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 nW(e){return HEe.some(t=>t.test(e))}o(nW,"isNonApplicationFile");function JEe(e){let t=[],n=e.inputs.repositoryPath;return!n||!ar.existsSync(n)?t.push(`repository path does not exist: ${n}`):HT(n)?Jf(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(JEe,"validatePreflightInput");function YEe(e){return(e.inputs.relatedRepos??[]).map(t=>{let n=ar.existsSync(t.path)?GE(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(YEe,"collectRelatedChanges");function WEe(e){ar.rmSync(Ds.join(e.runDir,aS),{recursive:!0,force:!0});for(let t of e.inputs.relatedRepos??[]){let n=ar.existsSync(t.path)?JT(t.path,t.base):void 0;if(!n)continue;let i=Ds.join(e.runDir,cS(t.slug));ar.mkdirSync(Ds.dirname(i),{recursive:!0}),ar.writeFileSync(i,n.diffContent)}}o(WEe,"writeRelatedDiffs");function ZEe(e){let{repositoryPath:t,baseBranch:n}=e.inputs;ar.rmSync(Ds.join(t,C0),{recursive:!0,force:!0});let i=GE(t,n);if(!i)throw new Error(`could not compute git facts for ${t}`);let r=JT(t,n);if(!r)throw new Error(`could not compute the PR diff for ${t}`);let s=YEe(e),a=[i.changedFiles,...s.map(f=>f.changedFiles)].flat(),c=a.map(f=>f.path).filter(nW),u=!Pu(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};ar.writeFileSync(Ds.join(e.runDir,Ua),r.diffContent),tW(e.inputs,e.runDir,r.diffContent),WEe(e);let p=Ds.join(e.runDir,oS);return ar.mkdirSync(Ds.dirname(p),{recursive:!0}),ar.writeFileSync(p,JSON.stringify(l,null,2)+`
268
- `),e.prepared={preflight:l},{preflight:oS,diff:Ua}}o(ZEe,"executePreflight");var hYe={name:"preflight",timeoutMinutes:1,requires:[],validateInput:JEe,execute:ZEe};var yg=ee(require("path"));function KEe(e){return jn(_0,e).errors}o(KEe,"validateFinalizeOutput");function XEe(e,t=[]){let{value:n,error:i}=Kt(e,t);if(i)return{errors:[i]};let r=KEe(n);return r.length>0?{errors:r}:{finalize:n,errors:[]}}o(XEe,"parseFinalizeText");var ebe="finalize-scratch";function tbe(e,t){let n=XEe(e.stdout,t?.secretValues);if(!n.finalize||!t?.outputsDir)return n;let i=o((r,s)=>r.trim()&&Db(r.trim(),yg.join(t.outputsDir,ebe,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(tbe,"parseFinalizeFromSession");var UWe=Kn("finalize-schema",(e,t)=>tbe(t,e));var iW=ee(require("path"));var A4e=new Set(["targeted_unit","existing_evidence_sufficient"]);var abe="triage.json";var _Ze=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),NZe={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 cbe(e){let{value:t,error:n}=Kt(e);if(n)return{errors:[n]};let{value:i,errors:r}=jn(ng,t);return r.length?{errors:r}:{triage:i,errors:[]}}o(cbe,"parseTriageText");function ube(e){return cbe(e.stdout)}o(ube,"parseTriageFromSession");var PZe=Kn("triage-schema",(e,t)=>ube(t));function lbe(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(lbe,"triageDecider");function q0(e){if(lbe(e)?.status==="passed")return Gi(iW.join(e.outputsDir,abe))}o(q0,"readTriage");function H0(e){if(!SE(e))return WJ(E0(e.inputs,ve(e,`${rg}.json`),q0(e)?.sutRequired))}o(H0,"revisionBlockReason");var UZe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);function J0(e){return e.functions?.length?e.functions:[(e.testType==="unit"?e.testId.split("::").slice(1).join("::").replace(/\[.*\]$/,""):"")||e.testId]}o(J0,"rowFunctions");function Fl(e){return new Set(e.flatMap(t=>J0(t).map(n=>`${t.repository??""}\0${t.fileName}\0${n}`))).size}o(Fl,"testCount");function dbe(e){return jn(D0,e).errors}o(dbe,"validateAnalysisOutput");function sW(e,t=[]){let{value:n,error:i}=Kt(e,t);if(i)return{errors:[i]};let r=dbe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}o(sW,"parseAnalysisText");function pbe(e,t=[]){return sW(e.stdout,t)}o(pbe,"parseAnalysisFromSession");var i6e=Kn("analysis-schema",(e,t)=>pbe(t,e.secretValues));var i9e=zh.rows.notRun(!0);var Eg="kept, not ";var bg="(declined the planned ";function Y0(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(Y0,"assertionParts");var W0=new Set(["update","regenerate","delete"]);var s9e={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var mn=ee(require("node:fs")),Ct=ee(require("node:path")),bb=require("node:crypto");function Abe(e,t,n=Po().version){if(!On(e.inputs))return[];let i=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=hg(e,t,n),s=new Map(r.map(a=>[Ct.resolve(a.source.path,a.record.file),a.problems]));return t.tests.flatMap(a=>{let c=i(a.file),u=s.get(Ct.resolve(c.root,c.rel));if(u)return u;if(a.change!=="added")return[];if(!Ul(e,a))return[];let p=o(m=>[`${a.file}: shared-environment delivery is blocked: ${m}`],"problem");if(!Wr(c))return p("test file is outside its checkout");let f=Nl(c.root,Ct.join(c.root,c.rel));if(typeof f=="string")return p(`${f} (restrictedDeliveryProblems)`);let A=Ts(f.toString("utf-8"));if(!A)return p("use the exact supported delivered harness; preserve unsupported assertions in an inactive source asset, never unrestricted executable code");if("restriction"in A){if(!A.sourceAsset.path.endsWith(".source"))return p("restricted source asset must use an inactive .source extension");let m=Ct.resolve(Ct.dirname(Ct.join(c.root,c.rel)),A.sourceAsset.path),E=Ct.relative(c.root,m);if(!E||E.startsWith("..")||Ct.isAbsolute(E))return p("restricted source asset must remain inside its checkout");try{if(!mn.lstatSync(m).isFile()||mn.realpathSync(m)!==m||(0,bb.createHash)("sha256").update(mn.readFileSync(m)).digest("hex")!==A.sourceAsset.sha256)return p("restricted source asset is missing, changed or a symlink")}catch{return p("restricted source asset is unavailable")}if(!(t.supportFiles??[]).some(v=>{let b=i(v);return Ct.join(b.root,b.rel)===m}))return p("restricted source asset must be delivered in supportFiles")}else{let m=e.inputs.sharedEnvironment;if(A.definition.environmentId!==m?.environmentId||A.definition.environmentAddress!==m?.environmentAddress)return p("harness identity/address differs from the selected Test Environment");if((m.offLimits??[]).some(E=>!A.definition.offLimits.includes(E)))return p("harness omits a configured off-limits route")}if(n==="unknown")return e.inputs.deliver?p("guarded CI delivery is unavailable from an unreleased engine build"):[];let h=Ct.dirname(Ct.join(c.root,c.rel));for(;h.startsWith(c.root);){let m=Ct.join(h,"package.json");if(mn.existsSync(m))try{let E=JSON.parse(mn.readFileSync(m,"utf-8"));return(E.devDependencies?.["@skyramp/testbot-core"]??E.dependencies?.["@skyramp/testbot-core"])===n?[]:p("declare the exact released engine version containing this harness; an unavailable or older runtime cannot protect direct invocation")}catch{return p("test package manifest is unreadable")}if(h===c.root)break;h=Ct.dirname(h)}return p("the delivered test has no package manifest declaring its guarded runtime")})}o(Abe,"restrictedDeliveryProblems");function Z0(e,t){if(!On(e.inputs))return[];let n=ve(e,"write.json");if(!n)return["shared-environment delivery requires its generated-test record"];let i=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=t??mg(e,n),{assemblies:s}=r;if(!r.hasSharedTests)return n.tests.flatMap(p=>{if(p.change!=="deleted")return[];let f=i(p.file);return Wr(f)&&mn.existsSync(Ct.join(f.root,f.rel))?[`${p.file}: a deleted test must actually be absent`]:[]});let a=fb(e,n,s).filter(p=>{let f=i(p.file);return p.change!=="deleted"&&!Ei(e,f.root,f.rel)}).map(p=>({...p,change:"added"})),c=mb(e,r),u=new Set([...c].flatMap(([p,f])=>f.map(A=>Ct.resolve(p.path,A)))),l=gb(e,n,s,u);return[...s.flatMap(p=>p.problems),...Abe(e,{...n,tests:a}),...l.problems,...Ab(e,c,l.allowed,s).map(({file:p})=>`${p}: shared-environment delivery refuses an unverified executable/support/manifest path`)]}o(Z0,"sharedDeliveryAllowlistProblems");function oW(e,t,n=[]){if(!On(e.inputs))return[];let i=[],r=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let s of t.tests){if(s.change==="deleted")continue;let a=r(s.file),c=Ct.join(a.root,a.rel);if(Ei(e,a.root,a.rel)||!Wr(a)||G0(a.root,c))continue;let u=`reading ${a.rel}`;try{let l=Ts(mn.readFileSync(c,"utf-8"));if(!l)continue;if("restriction"in l){let f=Ct.resolve(Ct.dirname(c),l.sourceAsset.path),A=Ct.relative(a.root,f);if(u=`reading ${A}`,!A||A.startsWith("..")||Ct.isAbsolute(A)||!mn.lstatSync(f).isFile()||mn.realpathSync(f)!==f){i.push(`${s.file}: restricted source asset is not a regular file in its checkout`);continue}let h=mn.readFileSync(f);if((0,bb.createHash)("sha256").update(h).digest("hex")!==l.sourceAsset.sha256){i.push(`${s.file}: restricted source asset changed before trusted formatting; not refreshing its hash`);continue}let m=cc(h.toString("utf-8"),n).content,E=_l(a.root,A,Buffer.from(m));u=`writing ${A}`,mn.writeFileSync(f,E),l.sourceAsset.sha256=(0,bb.createHash)("sha256").update(E).digest("hex")}let p=cc(cg(l),n).content;u=`writing ${a.rel}`,mn.writeFileSync(c,_l(a.root,a.rel,Buffer.from(p)))}catch(l){i.push(`${s.file}: could not assemble its guarded entry after trusted formatting (prepareSharedDeliveryFiles): ${u} failed: ${Pl(l,a.root)}`)}}return i}o(oW,"prepareSharedDeliveryFiles");var rn=ee(require("fs")),bi=ee(require("path")),LW=ee(require("crypto")),jW=require("child_process");var Cg=require("crypto");var aW=d.string().trim().min(1),K0=d.object({schemaVersion:d.literal(1).optional(),businessCaseAnalysis:aW.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:aW,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 mbe(e){return jn(K0,e).errors}o(mbe,"validateProseOutput");function ybe(e,t=[]){let{value:n,error:i}=Kt(e.stdout,t);if(i)return{errors:[i]};let r=mbe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}o(ybe,"parseProseFromSession");var _9e=Kn("report-schema",(e,t)=>ybe(t,e.secretValues));var X0="<!-- skyramp-testbot -->",eD=W0,bbe=new Set(["lint","type","config"]),cW={critical:0,high:1,medium:2,low:3},hW=new Set(["Pass","Fail"]);var tD=o(e=>no(ue().statusLabels,e),"statusLabel"),Ib=o(e=>no(ue().testTypeCellLabels,e),"testTypeLabel");function tt(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}o(tt,"escCell");function uW(e){return e.inferred?" (inferred)":""}o(uW,"inferredMark");function lW(e,t){return!e||!hW.has(e)?"\u2014":t?`${tD(e)} (${tt(mW(t))})`:tD(e)}o(lW,"maintStatus");function mW(e){let t=o(i=>{let r=i.indexOf(": ");return r<0?i:no(ue().staged.maintenanceActions,i.slice(0,r))+i.slice(r)},"action");if(e.startsWith(Eg))return ue().staged.keptNot+t(e.slice(Eg.length));let n=e.indexOf(bg);return n<0?e:e.slice(0,n)+ue().staged.declinedPlanned+t(e.slice(n+bg.length))}o(mW,"declineNote");function dW(e){return e.category!==void 0&&bbe.has(e.category.toLowerCase())}o(dW,"isTooling");function pW(e,t){return(cW[(e.severity??"").toLowerCase()]??4)-(cW[(t.severity??"").toLowerCase()]??4)}o(pW,"bySeverity");var wb=o(e=>e?.length?` (${e.join(", ")})`:"","forPullRequests");function fW(e){return`- ${e.severity?`**[${no(ue().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}${wb(e.pullRequests)}`}o(fW,"issueLine");function vbe(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(vbe,"unitTestOf");var yW=o((e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,""),"samePath");function EW(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}o(EW,"videoLink");function nD(e,t){return EW(e,n=>yW(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}o(nD,"resultVideoLink");function rD(e,t){return EW(e,n=>yW(n.writtenAs??n.fileName,t))}o(rD,"journeyVideoLink");function Ibe(e,t,n){return n?nD(e,{fileName:t,repository:n}):rD(e,t)}o(Ibe,"requirementVideoLink");function wbe(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&&OJ(c,u)),"parentOf"),s=new Map;for(let a of e.testResults){let c=vbe(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(A=>A.status==="Fail"),l=c.filter(A=>A.status==="Pass").length,p=c.filter(A=>A.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??"":ue().staged.casesPassed(l,c.length,p)+(f?`; ${i.get(f)??""} ${f.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}o(wbe,"resultRows");function Cbe(e){return Y0(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${_t(t.expected)}`)}o(Cbe,"unitAssertions");function wg(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(wg,"nothingExecuted");function bW(e){let t=e.pullRequests??[];return t.length<2?[]:[ue().staged.validatedTogether(t.map(n=>`${_t(`${n.repository}#${n.number}`)}${n.title?` ${Kr(n.title,120)}`:""}`).join("; "))]}o(bW,"pullRequestsLine");function vW(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"?ue().staged.requestedByPerson(n):ue().staged.requestedByPolicy(n)}o(vW,"requesterLine");function IW(e,t={}){if(t.audience==="testbot-pr")return Tbe(e,t);let{audience:n,collapsed:i=!1,existingEvidence:r=[],requestedBy:s,sourcePullRequest:a}=t,c=n!=="comment",u=(e.requirements??[]).filter(w=>/^file-[a-f0-9]{16}-/i.test(w.id)).sort((w,$)=>$.id.length-w.id.length),l=o(w=>{let $=u.find(B=>w.toLowerCase().startsWith(B.id.toLowerCase()));return $?$.label+w.slice($.id.length):w},"displayId"),p=[X0];a&&p.push(ue().staged.testsSourcePullRequest(_t(a)),"");for(let w of bW(e))p.push(w,"");s&&p.push(vW(s),""),e.notTranslated&&p.push(no(ue().staged.notTranslated,e.notTranslated),"");let f=o(w=>{i?p.push("<details>",`<summary>${w}</summary>`,""):p.push(`### ${w}`)},"sectionStart"),A=o(()=>{i&&p.push("","</details>"),p.push("")},"sectionEnd");for(let w of e.businessCaseAnalysis.trim().split(/\r?\n/))p.push(`> ${w}`);if(p.push(""),wg(e)&&p.push(ue().staged.noLiveApp(Fl(e.newTestsCreated)),""),c&&e.newTestsCreated.length){let w=new Map;for(let B of e.newTestsCreated){if(B.testType!=="unit")continue;let Z=J0(B)[0],oe=w.get(B.fileName)??{functions:new Set,endpoints:[],descriptions:new Map};B.endpoint&&!oe.endpoints.includes(B.endpoint)&&oe.endpoints.push(B.endpoint);let H=B.description?.trim()??"",me=oe.descriptions.get(Z)??[];me.includes(H)||me.push(H),oe.functions.add(Z),oe.descriptions.set(Z,me),w.set(B.fileName,oe)}let $=e.newTestsCreated.filter(B=>B.testType!=="unit");f(ue().testRecommendationsImplementedHeader(Fl(e.newTestsCreated),$.length+Fl(e.newTestsCreated.filter(B=>B.testType==="unit"))));for(let[B,{functions:Z,endpoints:oe,descriptions:H}]of w){let me=Z.size;p.push(ue().staged.unitTestsInFile(`\`${B}\``,me,oe.map(Ie=>`\`${Ie}\``).join(", ")),"");let _e=new Map;for(let[Ie,K]of H){let V=K.join("\0"),Me=_e.get(V)??{fns:[],descriptions:K};Me.fns.push(Ie),_e.set(V,Me)}let Ue=0;for(let{fns:Ie,descriptions:K}of _e.values()){p.push(`${++Ue}. ${Ie.map(Me=>`\`${Me}\``).join(", ")}`);let V=[...new Set(K.flatMap(Me=>Cbe(Me)))];for(let Me of V)p.push(` - ${Me}`)}p.push("")}for(let B of $){let Z=B.testId?_t(l(B.testId)):Ib(B.testType),oe=B.fileName?` (\`${B.fileName}\`)`:"",H=B.endpoint?`
268
+ `),e.prepared={preflight:l},{preflight:oS,diff:Ua}}o(ZEe,"executePreflight");var mYe={name:"preflight",timeoutMinutes:1,requires:[],validateInput:JEe,execute:ZEe};var yg=ee(require("path"));function KEe(e){return jn(_0,e).errors}o(KEe,"validateFinalizeOutput");function XEe(e,t=[]){let{value:n,error:i}=Kt(e,t);if(i)return{errors:[i]};let r=KEe(n);return r.length>0?{errors:r}:{finalize:n,errors:[]}}o(XEe,"parseFinalizeText");var ebe="finalize-scratch";function tbe(e,t){let n=XEe(e.stdout,t?.secretValues);if(!n.finalize||!t?.outputsDir)return n;let i=o((r,s)=>r.trim()&&Db(r.trim(),yg.join(t.outputsDir,ebe,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(tbe,"parseFinalizeFromSession");var FWe=Kn("finalize-schema",(e,t)=>tbe(t,e));var iW=ee(require("path"));var h4e=new Set(["targeted_unit","existing_evidence_sufficient"]);var abe="triage.json";var NZe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),PZe={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 cbe(e){let{value:t,error:n}=Kt(e);if(n)return{errors:[n]};let{value:i,errors:r}=jn(ng,t);return r.length?{errors:r}:{triage:i,errors:[]}}o(cbe,"parseTriageText");function ube(e){return cbe(e.stdout)}o(ube,"parseTriageFromSession");var UZe=Kn("triage-schema",(e,t)=>ube(t));function lbe(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(lbe,"triageDecider");function q0(e){if(lbe(e)?.status==="passed")return Gi(iW.join(e.outputsDir,abe))}o(q0,"readTriage");function H0(e){if(!SE(e))return WJ(E0(e.inputs,ve(e,`${rg}.json`),q0(e)?.sutRequired))}o(H0,"revisionBlockReason");var FZe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);function J0(e){return e.functions?.length?e.functions:[(e.testType==="unit"?e.testId.split("::").slice(1).join("::").replace(/\[.*\]$/,""):"")||e.testId]}o(J0,"rowFunctions");function Fl(e){return new Set(e.flatMap(t=>J0(t).map(n=>`${t.repository??""}\0${t.fileName}\0${n}`))).size}o(Fl,"testCount");function dbe(e){return jn(D0,e).errors}o(dbe,"validateAnalysisOutput");function sW(e,t=[]){let{value:n,error:i}=Kt(e,t);if(i)return{errors:[i]};let r=dbe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}o(sW,"parseAnalysisText");function pbe(e,t=[]){return sW(e.stdout,t)}o(pbe,"parseAnalysisFromSession");var s6e=Kn("analysis-schema",(e,t)=>pbe(t,e.secretValues));var s9e=zh.rows.notRun(!0);var Eg="kept, not ";var bg="(declined the planned ";function Y0(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(Y0,"assertionParts");var W0=new Set(["update","regenerate","delete"]);var o9e={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var mn=ee(require("node:fs")),Ct=ee(require("node:path")),bb=require("node:crypto");function Abe(e,t,n=Po().version){if(!On(e.inputs))return[];let i=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=hg(e,t,n),s=new Map(r.map(a=>[Ct.resolve(a.source.path,a.record.file),a.problems]));return t.tests.flatMap(a=>{let c=i(a.file),u=s.get(Ct.resolve(c.root,c.rel));if(u)return u;if(a.change!=="added")return[];if(!Ul(e,a))return[];let p=o(m=>[`${a.file}: shared-environment delivery is blocked: ${m}`],"problem");if(!Wr(c))return p("test file is outside its checkout");let f=Nl(c.root,Ct.join(c.root,c.rel));if(typeof f=="string")return p(`${f} (restrictedDeliveryProblems)`);let A=Ts(f.toString("utf-8"));if(!A)return p("use the exact supported delivered harness; preserve unsupported assertions in an inactive source asset, never unrestricted executable code");if("restriction"in A){if(!A.sourceAsset.path.endsWith(".source"))return p("restricted source asset must use an inactive .source extension");let m=Ct.resolve(Ct.dirname(Ct.join(c.root,c.rel)),A.sourceAsset.path),E=Ct.relative(c.root,m);if(!E||E.startsWith("..")||Ct.isAbsolute(E))return p("restricted source asset must remain inside its checkout");try{if(!mn.lstatSync(m).isFile()||mn.realpathSync(m)!==m||(0,bb.createHash)("sha256").update(mn.readFileSync(m)).digest("hex")!==A.sourceAsset.sha256)return p("restricted source asset is missing, changed or a symlink")}catch{return p("restricted source asset is unavailable")}if(!(t.supportFiles??[]).some(v=>{let b=i(v);return Ct.join(b.root,b.rel)===m}))return p("restricted source asset must be delivered in supportFiles")}else{let m=e.inputs.sharedEnvironment;if(A.definition.environmentId!==m?.environmentId||A.definition.environmentAddress!==m?.environmentAddress)return p("harness identity/address differs from the selected Test Environment");if((m.offLimits??[]).some(E=>!A.definition.offLimits.includes(E)))return p("harness omits a configured off-limits route")}if(n==="unknown")return e.inputs.deliver?p("guarded CI delivery is unavailable from an unreleased engine build"):[];let h=Ct.dirname(Ct.join(c.root,c.rel));for(;h.startsWith(c.root);){let m=Ct.join(h,"package.json");if(mn.existsSync(m))try{let E=JSON.parse(mn.readFileSync(m,"utf-8"));return(E.devDependencies?.["@skyramp/testbot-core"]??E.dependencies?.["@skyramp/testbot-core"])===n?[]:p("declare the exact released engine version containing this harness; an unavailable or older runtime cannot protect direct invocation")}catch{return p("test package manifest is unreadable")}if(h===c.root)break;h=Ct.dirname(h)}return p("the delivered test has no package manifest declaring its guarded runtime")})}o(Abe,"restrictedDeliveryProblems");function Z0(e,t){if(!On(e.inputs))return[];let n=ve(e,"write.json");if(!n)return["shared-environment delivery requires its generated-test record"];let i=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=t??mg(e,n),{assemblies:s}=r;if(!r.hasSharedTests)return n.tests.flatMap(p=>{if(p.change!=="deleted")return[];let f=i(p.file);return Wr(f)&&mn.existsSync(Ct.join(f.root,f.rel))?[`${p.file}: a deleted test must actually be absent`]:[]});let a=fb(e,n,s).filter(p=>{let f=i(p.file);return p.change!=="deleted"&&!Ei(e,f.root,f.rel)}).map(p=>({...p,change:"added"})),c=mb(e,r),u=new Set([...c].flatMap(([p,f])=>f.map(A=>Ct.resolve(p.path,A)))),l=gb(e,n,s,u);return[...s.flatMap(p=>p.problems),...Abe(e,{...n,tests:a}),...l.problems,...Ab(e,c,l.allowed,s).map(({file:p})=>`${p}: shared-environment delivery refuses an unverified executable/support/manifest path`)]}o(Z0,"sharedDeliveryAllowlistProblems");function oW(e,t,n=[]){if(!On(e.inputs))return[];let i=[],r=An(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let s of t.tests){if(s.change==="deleted")continue;let a=r(s.file),c=Ct.join(a.root,a.rel);if(Ei(e,a.root,a.rel)||!Wr(a)||G0(a.root,c))continue;let u=`reading ${a.rel}`;try{let l=Ts(mn.readFileSync(c,"utf-8"));if(!l)continue;if("restriction"in l){let f=Ct.resolve(Ct.dirname(c),l.sourceAsset.path),A=Ct.relative(a.root,f);if(u=`reading ${A}`,!A||A.startsWith("..")||Ct.isAbsolute(A)||!mn.lstatSync(f).isFile()||mn.realpathSync(f)!==f){i.push(`${s.file}: restricted source asset is not a regular file in its checkout`);continue}let h=mn.readFileSync(f);if((0,bb.createHash)("sha256").update(h).digest("hex")!==l.sourceAsset.sha256){i.push(`${s.file}: restricted source asset changed before trusted formatting; not refreshing its hash`);continue}let m=cc(h.toString("utf-8"),n).content,E=_l(a.root,A,Buffer.from(m));u=`writing ${A}`,mn.writeFileSync(f,E),l.sourceAsset.sha256=(0,bb.createHash)("sha256").update(E).digest("hex")}let p=cc(cg(l),n).content;u=`writing ${a.rel}`,mn.writeFileSync(c,_l(a.root,a.rel,Buffer.from(p)))}catch(l){i.push(`${s.file}: could not assemble its guarded entry after trusted formatting (prepareSharedDeliveryFiles): ${u} failed: ${Pl(l,a.root)}`)}}return i}o(oW,"prepareSharedDeliveryFiles");var rn=ee(require("fs")),bi=ee(require("path")),LW=ee(require("crypto")),jW=require("child_process");var Cg=require("crypto");var aW=d.string().trim().min(1),K0=d.object({schemaVersion:d.literal(1).optional(),businessCaseAnalysis:aW.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:aW,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 mbe(e){return jn(K0,e).errors}o(mbe,"validateProseOutput");function ybe(e,t=[]){let{value:n,error:i}=Kt(e.stdout,t);if(i)return{errors:[i]};let r=mbe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}o(ybe,"parseProseFromSession");var N9e=Kn("report-schema",(e,t)=>ybe(t,e.secretValues));var X0="<!-- skyramp-testbot -->",eD=W0,bbe=new Set(["lint","type","config"]),cW={critical:0,high:1,medium:2,low:3},hW=new Set(["Pass","Fail"]);var tD=o(e=>no(ue().statusLabels,e),"statusLabel"),Ib=o(e=>no(ue().testTypeCellLabels,e),"testTypeLabel");function tt(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}o(tt,"escCell");function uW(e){return e.inferred?" (inferred)":""}o(uW,"inferredMark");function lW(e,t){return!e||!hW.has(e)?"\u2014":t?`${tD(e)} (${tt(mW(t))})`:tD(e)}o(lW,"maintStatus");function mW(e){let t=o(i=>{let r=i.indexOf(": ");return r<0?i:no(ue().staged.maintenanceActions,i.slice(0,r))+i.slice(r)},"action");if(e.startsWith(Eg))return ue().staged.keptNot+t(e.slice(Eg.length));let n=e.indexOf(bg);return n<0?e:e.slice(0,n)+ue().staged.declinedPlanned+t(e.slice(n+bg.length))}o(mW,"declineNote");function dW(e){return e.category!==void 0&&bbe.has(e.category.toLowerCase())}o(dW,"isTooling");function pW(e,t){return(cW[(e.severity??"").toLowerCase()]??4)-(cW[(t.severity??"").toLowerCase()]??4)}o(pW,"bySeverity");var wb=o(e=>e?.length?` (${e.join(", ")})`:"","forPullRequests");function fW(e){return`- ${e.severity?`**[${no(ue().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}${wb(e.pullRequests)}`}o(fW,"issueLine");function vbe(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(vbe,"unitTestOf");var yW=o((e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,""),"samePath");function EW(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}o(EW,"videoLink");function nD(e,t){return EW(e,n=>yW(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}o(nD,"resultVideoLink");function rD(e,t){return EW(e,n=>yW(n.writtenAs??n.fileName,t))}o(rD,"journeyVideoLink");function Ibe(e,t,n){return n?nD(e,{fileName:t,repository:n}):rD(e,t)}o(Ibe,"requirementVideoLink");function wbe(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&&OJ(c,u)),"parentOf"),s=new Map;for(let a of e.testResults){let c=vbe(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(A=>A.status==="Fail"),l=c.filter(A=>A.status==="Pass").length,p=c.filter(A=>A.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??"":ue().staged.casesPassed(l,c.length,p)+(f?`; ${i.get(f)??""} ${f.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}o(wbe,"resultRows");function Cbe(e){return Y0(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${_t(t.expected)}`)}o(Cbe,"unitAssertions");function wg(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(wg,"nothingExecuted");function bW(e){let t=e.pullRequests??[];return t.length<2?[]:[ue().staged.validatedTogether(t.map(n=>`${_t(`${n.repository}#${n.number}`)}${n.title?` ${Kr(n.title,120)}`:""}`).join("; "))]}o(bW,"pullRequestsLine");function vW(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"?ue().staged.requestedByPerson(n):ue().staged.requestedByPolicy(n)}o(vW,"requesterLine");function IW(e,t={}){if(t.audience==="testbot-pr")return Tbe(e,t);let{audience:n,collapsed:i=!1,existingEvidence:r=[],requestedBy:s,sourcePullRequest:a}=t,c=n!=="comment",u=(e.requirements??[]).filter(w=>/^file-[a-f0-9]{16}-/i.test(w.id)).sort((w,$)=>$.id.length-w.id.length),l=o(w=>{let $=u.find(B=>w.toLowerCase().startsWith(B.id.toLowerCase()));return $?$.label+w.slice($.id.length):w},"displayId"),p=[X0];a&&p.push(ue().staged.testsSourcePullRequest(_t(a)),"");for(let w of bW(e))p.push(w,"");s&&p.push(vW(s),""),e.notTranslated&&p.push(no(ue().staged.notTranslated,e.notTranslated),"");let f=o(w=>{i?p.push("<details>",`<summary>${w}</summary>`,""):p.push(`### ${w}`)},"sectionStart"),A=o(()=>{i&&p.push("","</details>"),p.push("")},"sectionEnd");for(let w of e.businessCaseAnalysis.trim().split(/\r?\n/))p.push(`> ${w}`);if(p.push(""),wg(e)&&p.push(ue().staged.noLiveApp(Fl(e.newTestsCreated)),""),c&&e.newTestsCreated.length){let w=new Map;for(let B of e.newTestsCreated){if(B.testType!=="unit")continue;let Z=J0(B)[0],oe=w.get(B.fileName)??{functions:new Set,endpoints:[],descriptions:new Map};B.endpoint&&!oe.endpoints.includes(B.endpoint)&&oe.endpoints.push(B.endpoint);let H=B.description?.trim()??"",me=oe.descriptions.get(Z)??[];me.includes(H)||me.push(H),oe.functions.add(Z),oe.descriptions.set(Z,me),w.set(B.fileName,oe)}let $=e.newTestsCreated.filter(B=>B.testType!=="unit");f(ue().testRecommendationsImplementedHeader(Fl(e.newTestsCreated),$.length+Fl(e.newTestsCreated.filter(B=>B.testType==="unit"))));for(let[B,{functions:Z,endpoints:oe,descriptions:H}]of w){let me=Z.size;p.push(ue().staged.unitTestsInFile(`\`${B}\``,me,oe.map(Ie=>`\`${Ie}\``).join(", ")),"");let _e=new Map;for(let[Ie,K]of H){let V=K.join("\0"),Me=_e.get(V)??{fns:[],descriptions:K};Me.fns.push(Ie),_e.set(V,Me)}let Ue=0;for(let{fns:Ie,descriptions:K}of _e.values()){p.push(`${++Ue}. ${Ie.map(Me=>`\`${Me}\``).join(", ")}`);let V=[...new Set(K.flatMap(Me=>Cbe(Me)))];for(let Me of V)p.push(` - ${Me}`)}p.push("")}for(let B of $){let Z=B.testId?_t(l(B.testId)):Ib(B.testType),oe=B.fileName?` (\`${B.fileName}\`)`:"",H=B.endpoint?`
269
269
  \`${B.endpoint}\``:"",me=B.description?`
270
270
  ${B.description.trim()}`:"";p.push(`- ${Z}${oe}${wb(B.pullRequests)}${H}${me}`)}A()}let h=(e.testMaintenance??[]).filter(w=>eD.has(w.action));if(c&&h.length){f(ue().staged.testMaintenanceHeader),p.push(ue().maintenanceTableHeader),p.push("|-----------|----------|------|--------|--------|-------|");for(let w of h)p.push(`| ${tt(Ib(w.testType))} | ${tt(w.endpoint)} | \`${tt(w.fileName)}\` | ${tt(w.description)} | ${lW(w.beforeStatus,w.beforeDetails)} | ${lW(w.afterStatus,w.afterDetails)} |`);A()}let m=o(w=>w.startsWith(Eg)||w.includes(bg),"hasDeclineNote"),E=(e.testMaintenance??[]).filter(w=>m(w.afterDetails)&&(!eD.has(w.action)||!hW.has(w.afterStatus??"")));if(c&&E.length){f(ue().staged.declinedMaintenanceHeader);for(let w of E)p.push(`- \`${tt(w.fileName)}\`: ${tt(mW(w.afterDetails))}`);A()}if(c&&r.length){f(ue().staged.existingEvidenceHeader);let w=new Map;for(let $ of r){let B=`${$.check}\0${$.url??""}\0${$.revision??""}`;w.set(B,[...w.get(B)??[],$])}for(let[,[$,...B]]of w){let Z=$.url?`[${_t($.check)}](${$.url})`:_t($.check);p.push(ue().staged.trustedCheckPassed(Z,$.revision?_t($.revision.slice(0,7)):""),"");for(let oe of[$,...B])p.push(`- ${_t(oe.behavior)}`);p.push("")}A()}if(c&&e.testResults.length){f(ue().staged.testResultsHeader);let w=wbe(e),$=w.some(H=>H.test),B=w.some(H=>nD(e,H)),Z=$?ue().staged.unitResultsTableHeader:ue().staged.resultsTableHeader;p.push(B?`${Z} ${ue().columnVideo} |`:Z),p.push(`${$?"|---------|-----------|----------|------|-------|--------|---------|":"|---------|-----------|----------|--------|---------|"}${B?"-------|":""}`);for(let H of w){let me=H.details.replace(/(\S+\.(?:py|ts|js|spec\.\w+))/gi,"`$1`"),_e=H.testId?_t(tt(l(H.testId))):"\u2014",Ue=$?` ${H.test?`\`${tt(H.test)}\``:""} | ${H.cases??""} |`:"",Ie=nD(e,H),K=B?` ${Ie?ue().videoDownloadLink(Ie):"\u2014"} |`:"";p.push(`| ${_e} | ${tt(Ib(H.testType))} | ${tt(H.endpoint)} |${Ue} ${tt(tD(H.status))} | ${tt(me)} |${K}`)}let oe=(e.testVideos??[]).find(H=>H.artifactsUrl)?.artifactsUrl;!B&&oe&&p.push("",ue().videosArtifactFallback(oe)),A()}if(e.requirements?.length){let w=e.requirements.flatMap(H=>H.clauses),$=o(H=>H.status==="Pass"||H.status==="Passed, test not kept","passes"),B=w.filter($).length;f(ue().staged.requirementsHeader(B,w.length));let Z=o(H=>no(ue().staged.clauseStatuses,H.status),"status"),oe=o(H=>(H.status==="Not tested"||H.status==="Passed, test not kept")&&H.notTested?`${Z(H)}: ${H.notTested}`:H.findings.length?`${Z(H)} \u2014 ${H.findings.join(", ")}`:Z(H),"result");if(c){p.push(ue().staged.requirementsTableHeader),p.push("|-------------|--------|-------|--------|");for(let H of e.requirements)H.clauses.forEach((me,_e)=>{let Ue=_e===0?`**${tt(H.label)}**${H.statement?` ${tt(H.statement)}`:""}${wb(H.pullRequests)}`:"",Ie=`${_t(tt(l(me.id)))}${uW(me)}${me.text?` ${tt(me.text)}`:""}`,K=new Map;for(let Ze of me.tests){let jt=Ze.fileName??l(Ze.testId),ct=K.get(jt)??{fns:new Set};for(let sn of Ze.functions)ct.fns.add(sn);ct.video??=Ze.fileName?Ibe(e,Ze.fileName,Ze.repository):void 0,K.set(jt,ct)}let V=K.size?[...K].map(([Ze,{fns:jt,video:ct}])=>`${_t(tt(Ze))}${jt.size?` \u2014 ${[...jt].map(sn=>`\`${tt(sn)}\``).join(", ")}`:""}${ct?` ${ue().videoDownloadLink(ct)}`:""}`).join("<br>"):"\u2014",Me=H.source==="could-break"&&me.status==="Pass"?ue().staged.regressionGuard:"";p.push(`| ${Ue} | ${Ie} | ${V} | ${tt(oe(me)+Me)} |`)})}else{p.push(ue().staged.requirementsSummaryTableHeader),p.push("|-------------|-----------------|-------------|");for(let H of e.requirements){let me=H.clauses.filter($).length,_e=H.clauses.filter(Ue=>!$(Ue)).map(Ue=>`${_t(tt(l(Ue.id)))}${uW(Ue)} ${tt(oe(Ue))}`);p.push(`| **${tt(H.label)}**${H.statement?` ${tt(H.statement)}`:""}${wb(H.pullRequests)} | ${me}/${H.clauses.length} | ${_e.join("<br>")||"\u2014"} |`)}}A()}if(c&&e.changes?.length&&!e.requirements?.length){let w=e.executionCoverage,$=w?ue().staged.coverageCaption(w.generated,w.modified,w.verified,w.executed):"";f(`${ue().staged.behaviourCoverageHeader}${$}`),p.push(ue().staged.coverageTableHeader),p.push("|-----------|--------|-----------|----------------|");for(let B of e.changes){let Z=B.testedBy.length?B.testedBy.map(H=>`\`${tt(H)}\``).join(", "):B.writtenBy.length?ue().staged.writtenNotRun:"\u2014",oe=B.maintainedBy.length?B.maintainedBy.map(H=>`\`${tt(H)}\``).join(", "):"\u2014";p.push(`| ${tt(B.text)} | \`${tt(B.source)}\` | ${Z} | ${oe} |`)}A()}if(e.userJourneys?.length){let w=e.userJourneys.filter(B=>B.status==="Pass"&&!B.problems.length).length;f(`\u{1F9ED} User Journeys Covered (${w}/${e.userJourneys.length} walked end to end)`);let $=e.userJourneys.some(B=>rD(e,B.fileName));p.push(`| Journey | Test | Status | Notes |${$?` ${ue().columnVideo} |`:""}`),p.push(`|---------|------|--------|-------|${$?"-------|":""}`);for(let B of e.userJourneys){let Z=B.fileName?`\`${tt(B.fileName)}\`${B.test?` \u2014 ${tt(B.test)}`:""}`:"\u2014",oe=B.source&&B.source!=="inferred"?`; described in the ${B.source==="spec"?"spec":"PR description"}`:"; inferred from the app",H=(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`)+oe,me=$?rD(e,B.fileName):void 0;p.push(`| ${tt(B.name)} | ${Z} | ${tt(B.status)} | ${tt(H)} |${$?` ${me?ue().videoDownloadLink(me):"\u2014"} |`:""}`)}A()}let v=e.issuesFound.filter(w=>!dW(w)).sort(pW),b=e.issuesFound.filter(dW).sort(pW);if(v.length){f(ue().staged.issuesFoundHeader);for(let w of v)p.push(fW(w));A()}if(b.length){p.push(`### ${ue().configErrorsHeader}`);for(let w of b)p.push(fW(w));p.push("")}let I=e.testPackages??[],C=e.dependencyChanges??[];if(I.length){p.push(ue().staged.testPackagesHeader,"");for(let w of I)p.push(`- ${ue().staged.testPackageLine(w.directory,w.entrypoint,Object.entries(w.dependencies??{}).map(([$,B])=>w.runner==="pytest"?`${$}==${B}`:`${$}@${B}`).join(", "))}`);C.length||p.push(`- ${ue().staged.appManifestsUntouched}`),p.push("")}if(C.length){p.push(ue().staged.dependencyChangesHeader,"");for(let w of C)p.push(`- ${ue().staged.dependencyChangeLine(w.package,w.repository?`${w.repository}: ${w.manifest}`:w.manifest,(w.reason??"").replace(/\s+/g," ").trim())}`);p.push("")}let x=(e.caveats??[]).filter(w=>w.kind!=="tests-not-executed"||w.subject==="written-cases"||!wg(e));if(x.length){p.push(ue().staged.caveatsHeader,"");for(let w of x)p.push(`- ${w.text}`);p.push("")}if(e.nextSteps.length){p.push(ue().nextStepsHeader,"");for(let w of e.nextSteps)p.push(`- ${w.trim()}`);p.push("")}return p.join(`
271
271
  `).replace(/\n{3,}/g,`
@@ -281,7 +281,7 @@ else require("node:test").test(spec.name, () => { throw new Error("required shar
281
281
  `;return $.length<=i?$:[X0,...l,...c,n.filesChanged].join(`
282
282
 
283
283
  `)+`
284
- `}o(Tbe,"renderTestsPrBody");var Oo=ee(require("fs")),iD=ee(require("path"));var _be="report.json",Nbe="report-display.json",l8e={en:"English",ja:"Japanese"};function wW(e){let t=iD.join(e,Nbe);if(Oo.existsSync(t))try{return JSON.parse(Oo.readFileSync(t,"utf-8"))}catch{}let n=iD.join(e,_be);return Oo.existsSync(n)?JSON.parse(Oo.readFileSync(n,"utf-8")):void 0}o(wW,"readDisplayReport");function CW(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
284
+ `}o(Tbe,"renderTestsPrBody");var Oo=ee(require("fs")),iD=ee(require("path"));var _be="report.json",Nbe="report-display.json",d8e={en:"English",ja:"Japanese"};function wW(e){let t=iD.join(e,Nbe);if(Oo.existsSync(t))try{return JSON.parse(Oo.readFileSync(t,"utf-8"))}catch{}let n=iD.join(e,_be);return Oo.existsSync(n)?JSON.parse(Oo.readFileSync(n,"utf-8")):void 0}o(wW,"readDisplayReport");function CW(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
285
285
  ${e}`:e}o(CW,"withRunMarker");var fc=ee(require("fs")),pc=ee(require("path"));var Cb=["build","chore","ci","docs","feat","fix","perf","refactor","revert","style","test"],Ube=["build","ci","docs","feat","fix","perf","refactor","revert","style","test"],Fbe="amannn/action-semantic-pull-request",cr=o(e=>typeof e=="object"&&e!==null&&!Array.isArray(e),"isObj");function SW(e){return typeof e!="string"?!1:e.split("@")[0].split("/").some(n=>n.toLowerCase().split(/[-_.]/).includes("dco"))}o(SW,"usesDco");function kW(e){return typeof e=="string"&&(/\bdco-check\b/.test(e)||/signed-off-by/i.test(e))}o(kW,"scriptChecksDco");function Obe(e){if(!cr(e)||!cr(e.jobs))return!1;for(let t of Object.values(e.jobs))if(cr(t)){if(SW(t.uses))return!0;if(Array.isArray(t.steps)){for(let n of t.steps)if(cr(n)&&(SW(n.uses)||kW(n.run)||cr(n.with)&&Object.values(n.with).some(kW)))return!0}}return!1}o(Obe,"workflowChecksDco");function QW(e){let t=pc.join(e,".github","workflows"),n;try{n=fc.readdirSync(t).filter(i=>/\.ya?ml$/i.test(i)).sort()}catch{return[]}return n.flatMap(i=>{try{return[{file:pc.join(".github","workflows",i),doc:Ro(fc.readFileSync(pc.join(t,i),"utf-8"))}]}catch{return[]}})}o(QW,"workflows");function Mbe(e){return!cr(e)||!cr(e.jobs)?[]:Object.values(e.jobs).flatMap(t=>cr(t)&&Array.isArray(t.steps)?t.steps.filter(cr):[])}o(Mbe,"steps");function Lbe(e){let t=pc.join(".github","dco.yml");if(fc.existsSync(pc.join(e,t)))return{file:t};let n=QW(e).find(i=>Obe(i.doc));return n&&{file:n.file}}o(Lbe,"signOffRule");var BW=o(e=>typeof e=="string"?e.split(/\r?\n/).map(t=>t.trim()).filter(Boolean):void 0,"inputList");function jbe(e){for(let t of QW(e)){let n=Mbe(t.doc).find(s=>typeof s.uses=="string"&&s.uses.split("@")[0].trim().toLowerCase()===Fbe);if(!n)continue;let i=cr(n.with)?n.with:{},r=BW(i.scopes);return{file:t.file,types:BW(i.types)??Cb,...r?.length?{scopes:r}:{},scopeRequired:i.requireScope===!0||String(i.requireScope).trim()==="true"}}}o(jbe,"semanticPrTitleRule");var Gbe=["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"],Vbe=["type-enum","scope-enum","scope-empty","subject-case","header-max-length","body-max-line-length"];function $W(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($W,"knownPresets");var zbe={Disabled:"0",Warning:"1",Error:"2"};function qbe(e){return e.replace(/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g,t=>t.startsWith("/")?t.replace(/[^\r\n]/g," "):t)}o(qbe,"withoutComments");function RW(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)=>zbe[l]??u).replace(/,(\s*\])/g,"$1"),c=a.replace(/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'/g,'""');try{return JSON.parse(c),Ro(a)}catch{return null}}}o(RW,"ruleFromSource");var TW=o(e=>Object.fromEntries(Vbe.map(t=>[t,e(t)])),"pickRules");function xW(e,t){if(!cr(t))return;let n=[].concat(t.extends??[]),i=cr(t.rules)?t.rules:{};return{file:e,presets:$W(n),rules:TW(r=>i[r])}}o(xW,"configFromObject");function Hbe(e){for(let t of Gbe){let n;try{n=fc.readFileSync(pc.join(e,t),"utf-8")}catch{continue}if(/\.[cm]?[jt]s$/.test(t)){let r=qbe(n),s=/(?:^|[,{])\s*["']?extends["']?\s*:\s*/.exec(r),a=s?RW(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:$W(u),rules:TW(l=>RW(r,l))}}let i;try{i=Ro(n)}catch{return}if(t!=="package.json")return xW(t,i);if(cr(i)&&cr(i.commitlint))return xW(t,i.commitlint)}}o(Hbe,"commitlintConfig");function Ol(e){if(!Array.isArray(e))return;let t=Number(e[0]);if(t===1||t===2)return[String(e[1]??"always"),e[2]]}o(Ol,"ruleWhenOn");var sD=o(e=>Array.isArray(e)&&e.every(t=>typeof t=="string")?e:void 0,"stringList");function Jbe(e,t){if(!e)return t?"not-capitalized":void 0;let[n,i]=e,r=typeof i=="string"?[i]:sD(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(Jbe,"subjectCaseOf");function Ybe(e){let t=Hbe(e);if(!t)return;let{file:n,rules:i}=t,r=t.presets.at(-1)==="@commitlint/config-angular",s=o(v=>t.presets.length>0&&i[v]===void 0,"preset"),a=Ol(i["type-enum"]),c=a?.[0]==="always"?sD(a[1]):s("type-enum")?r?Ube:Cb:void 0,u=c===void 0,l=c??Cb;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=Ol(i["scope-enum"]),f=p?.[0]==="always"?sD(p[1]):void 0,A=o((v,b)=>{let I=Ol(i[v]);return I?typeof I[1]=="number"?I[1]:void 0:s(v)?b:void 0},"limit"),h=Jbe(Ol(i["subject-case"]),s("subject-case")),m=A("header-max-length",r?72:100)??(u&&i["header-max-length"]===void 0?$s:void 0),E=A("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:Ol(i["scope-empty"])?.[0]==="never",...Ol(i["scope-empty"])?.[0]==="always"?{scopeForbidden:!0}:{},...h?{subjectCase:h}:{},...m?{headerMaxLength:m}:{},...E?{bodyMaxLineLength:E}:{}}}o(Ybe,"commitlintRule");function DW(e){let t=Lbe(e),n=Ybe(e),i=jbe(e);return{...t?{signOff:t}:{},...n?{commitlint:n}:{},...i?{prTitle:i}:{}}}o(DW,"readCommitRules");function Wbe(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($s,...t.map(a=>a.headerMaxLength??1/0)),...Number.isFinite(s)?{bodyMaxLineLength:s}:{}}}o(Wbe,"mergedHeaderRules");function Sb(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(Sb,"allowsScope");function Zbe(e,t){let n=e.find(s=>s.scopes)?.scopes??[],i=n.filter(s=>/^[\w./-]+$/.test(s)&&e.every(a=>Sb(a,s)));if(!i.length)return e.every(s=>Sb(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(Zbe,"pickScope");var _W=/^([A-Za-z][\w-]*)(?:\(([^)]*)\))?!?:\s*(.*)$/,Kbe=o(e=>e.split(/(`.*?`|".*?"|'.*?')/).map((t,n)=>n%2?t:t.toLowerCase()).join(""),"lowerOutsideQuotes");function NW(e,t){return t==="lower-case"?Kbe(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(NW,"withSubjectCase");function Xbe(e,t){return NW(e.trim().replace(/\.+$/,"").trim()||"add tests",t)}o(Xbe,"conformSubject");function PW(e,t){let[n,...i]=e.replace(/\s+$/,"").split(`
286
286
  `),r=_W.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&&!Sb(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)&&NW(l,s.subjectCase)!==l)return!1}return!0})}o(PW,"matchesCommitRules");function eve(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(eve,"fitSubject");function tve(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(tve,"wrap");function UW(e,t,n){let i=Wbe(t);if(!i)return e;let[r,...s]=e.replace(/\s+$/,"").split(`
287
287
  `),a=_W.exec(r.trim()),c=a&&[...Cb,...i.types].some(I=>I.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(I=>!!I&&i.types.includes(I))??i.types[0],A=p&&i.rules.every(I=>Sb(I,p))?p:void 0;!A&&i.scopeRequired&&(A=Zbe(i.rules,n));let h=A?`${f}(${A}): `:`${f}: `,m=h+eve(Xbe(l,i.subjectCase),i.headerMaxLength-h.length),E=s.join(`
@@ -297,7 +297,7 @@ ${n}`}o(kb,"withSignOff");function FW(e){let t=[],n=!1;for(let i of e.split(`
297
297
  `))/^\s*signed-off-by:/i.test(i)?n=!0:n&&i.trim()===""&&t.at(-1)?.trim()===""||(t.push(i),n=!1);return t.join(`
298
298
  `).replace(/\s+$/,"")}o(FW,"withoutSignOff");function oD(e){let t=/\b(claude|anthropic)\b/i;return e.split(`
299
299
  `).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(`
300
- `).replace(/\s+$/,"")}o(oD,"stripAgentAttribution");var Bb="Skyramp-Pull-Request",Ml="Skyramp-Delivery-Base",aD="Skyramp-Tested-Revision",cD="Skyramp-Delivery-Run";var R8e=["%H","%P","%an","%ae","%ce",`%(trailers:key=${Bb},valueonly,separator=%x2C)`,"%s",`%(trailers:key=${Ml},valueonly,separator=%x2C)`,`%(trailers:key=${aD},valueonly,separator=%x2C)`,`%(trailers:key=${cD},valueonly,separator=%x2C)`];function OW(e,t){let n=e(["log","-1","--format=%B"]);if(!n.includes(`${Bb}:`)&&!n.includes(`${Ml}:`))return;let i=n.split(`
300
+ `).replace(/\s+$/,"")}o(oD,"stripAgentAttribution");var Bb="Skyramp-Pull-Request",Ml="Skyramp-Delivery-Base",aD="Skyramp-Tested-Revision",cD="Skyramp-Delivery-Run";var x8e=["%H","%P","%an","%ae","%ce",`%(trailers:key=${Bb},valueonly,separator=%x2C)`,"%s",`%(trailers:key=${Ml},valueonly,separator=%x2C)`,`%(trailers:key=${aD},valueonly,separator=%x2C)`,`%(trailers:key=${cD},valueonly,separator=%x2C)`];function OW(e,t){let n=e(["log","-1","--format=%B"]);if(!n.includes(`${Bb}:`)&&!n.includes(`${Ml}:`))return;let i=n.split(`
301
301
  `).filter(a=>!a.startsWith(`${Ml}:`)).join(`
302
302
  `).trimEnd(),r=t?`${i}
303
303
  ${Ml}: ${t}`:i;e(["log","-1","--format=%(trailers:key=Signed-off-by,valueonly)"]).split(`
@@ -316,7 +316,7 @@ ${n}`}:{prFailure:"unknown",prDetail:t}}o(Eve,"thrownFailure");async function bv
316
316
  `}catch{return""}}o(Cve,"heldBackPatch");var qW=o(e=>e.map(t=>t.dependsOn.length?`${t.file} (needs ${t.dependsOn.join(", ")})`:t.file).join("; "),"heldBackText");async function Sve(e,t,n,i,r,s){let a=g0(i.path,e.runDir),c=process.env.PATH;a.dir&&(process.env.PATH=LJ(a).PATH);try{return await kve(e,t,n,i,r,s)}finally{a.dir&&(process.env.PATH=c),a.cleanup()}}o(Sve,"deliverOne");async function kve(e,t,n,i,r,s){let a=i.slug,c,u=!1,l,p=[];try{let f=i.path,A=await bve(e,t,n,i,r,s),{texts:h,shown:m,title:E,bot:v,remote:b,base:I,owner:C,testsBranch:x,origin:w,mergedBase:$}=A,B=o((ne=[])=>oD(CW(pve(ne,I)+IW(dve(lve(m,e,i),ne.map(gt=>gt.file)),{audience:"testbot-pr",runUrl:e.inputs.skyrampRunUrl,requestedBy:e.inputs.requestedBy,sourcePullRequest:w&&`${w.repository.namespace}/${w.repository.name}#${w.number}`}),e.inputs.skyrampRunUrl))+`
317
317
  `,"bodyOf"),Z=s?"pr-body.md":`pr-body-${GW(a)}.md`,oe=bi.join(e.outputsDir,Z);rn.writeFileSync(oe,B());let H=nt(f,["rev-parse","HEAD"]),me=$??H;nt(f,["checkout","-B",x]),c=x,nt(f,["reset"]);let _e=ve(e,"write.json"),Ue=mg(e,_e),Ie=Ue.assemblies.filter(ne=>ne.source.path===i.path&&r.includes(ne.record.sourceAsset)),K=Z0(e,Ue);if(K.length)throw new Error(K.join("; "));let V=_e?oW(e,_e,h):[];if(V.length)throw new Error(V.join("; "));let Me=new Set(Ie.flatMap(({record:ne})=>[ne.sourceAsset,...ne.entry?[ne.entry]:[]]));for(let ne of r)Me.has(ne)||uve(bi.join(f,ne),h);let Ze=zY(e,Ie,h,p);if(Ze.length)throw new Error(Ze.join("; "));let jt=new Map([...Me].map(ne=>{let gt=rn.readFileSync(bi.join(f,ne)),Le=o(gc=>nt(f,["hash-object","--no-filters","--stdin"],gc),"blobHash"),yt=new Set([Le(gt)]),xr=gt.toString("latin1");return!gt.includes(0)&&xr.includes(`\r
318
318
  `)&&yt.add(Le(Buffer.from(xr.replace(/\r\n/g,`
319
- `),"latin1"))),[ne,yt]})),ct=[];for(let ne of r)try{nt(f,["--literal-pathspecs","add","--",ne])}catch{ct.push(ne)}if(ct.some(ne=>Me.has(ne)))throw new Error("could not stage every guarded delivery file");let sn=new Map([...jt].map(([ne,gt])=>{let Le=nt(f,["--literal-pathspecs","ls-files","--stage","--",ne]),yt=/^100(?:644|755) ([a-f0-9]+) 0\t/.exec(Le)?.[1];if(!yt||!gt.has(yt))throw new Error(`the staged guarded file differs from the generated file: ${ne}`);return[ne,yt]}));try{nt(f,["diff","--cached","--quiet"])}catch{try{let ne=vve(f,A,H,me,e.inputs.skyrampRunUrl);nt(f,["-c",`user.name=${v.name}`,"-c",`user.email=${v.email}`,"commit","-m",ne])}catch(ne){throw new Rb(ne)}u=!0}u&&(p.length=0),l=nt(f,["rev-parse","HEAD"]);let St,Xe,yn,ft=$??s?.headSha;if(u&&ft&&ft!==H){let ne=!1,gt=l;try{nt(f,["checkout","-q","-B",c,ft]),ne=!0;try{nt(f,["-c",`user.name=${v.name}`,"-c",`user.email=${v.email}`,"cherry-pick","--keep-redundant-commits",l])}catch(Le){let yt=$?wve(f,v,gt):void 0;if(!yt||(Xe=yt.files.map(xr=>({file:xr,dependsOn:Ive(f,a,$,H,xr)})),yn={repository:a,base:I,files:Xe,patch:Cve(f,H,gt,yt.files)},!yt.delivered))throw Le}ne=!1,OW(Le=>nt(f,Le),ft),l=nt(f,["rev-parse","HEAD"])}catch(Le){try{nt(f,["cherry-pick","--abort"])}catch{}nt(f,["checkout","-q","-B",c,l]);let yt=sp(Aa(Le),1/0);if($&&!ne)throw Le;if($)return{thrown:!1,held:yn,record:{schemaVersion:1,repository:a,branch:c,remote:b,base:I,committed:u,commitSha:l,pushed:!1,prAction:"skipped",prTitle:E,unstaged:ct,...Xe?{heldBack:Xe}:{},reason:Xe?`every test change needs a merged revision ${I} does not have yet, so no tests PR was opened: ${qW(Xe)}`:`the tests do not apply to ${I} at ${$.slice(0,12)} without the merged revisions (${yt}), so no tests PR was opened`}};St=`tests committed on the checkout's merge commit (re-cut onto ${ft.slice(0,12)} failed: ${yt})`}}Xe&&rn.writeFileSync(oe,B(Xe));for(let[ne,gt]of sn){if(Xe?.some(yt=>yt.file===ne))continue;let Le=nt(f,["--literal-pathspecs","ls-tree",l,"--",ne]);if(/^100(?:644|755) blob ([a-f0-9]+)\t/.exec(Le)?.[1]!==gt)throw new Error(`the committed guarded file differs from the generated file: ${ne}`)}for(let{record:ne}of Ie){if(ne.entry)continue;let gt=nt(f,["--literal-pathspecs","ls-tree",l,"--",ne.file]);if(gt&&gt!==nt(f,["--literal-pathspecs","ls-tree",H,"--",ne.file]))throw new Error(`the delivery included executable source for a held test: ${ne.file}`)}let ut=s?{}:{repositoryPath:f,repoSlug:a,devPr:null};if(!u){let ne=await t.markTestsPrUnchanged({branch:c,...ut});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:b,base:I,committed:!1,commitSha:l,pushed:!1,prAction:ne.action==="unchanged"?"unchanged":"skipped",prUrl:ne.url,prTitle:E,unstaged:ct,reason:ne.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 $e=await t.publishTestsPr({repositoryPath:f,...ut,remote:b,branch:c,base:I,commitSha:l,title:E,bodyFile:oe,mode:e.inputs.deliverMode,deliveryOwner:C,...e.inputs.firstQualification?{firstQualification:!0}:{},runUrl:e.inputs.skyrampRunUrl,signal:e.signal,deadlineMs:e.deadlineMs});return{thrown:!1,held:yn,record:{schemaVersion:1,repository:a,branch:c,remote:b,base:$e.base,requestedBase:I,committed:u,commitSha:l,pushed:$e.pushed,...$e.pushedCommits?{pushedCommits:$e.pushedCommits}:{},...$e.deliveredCommit?{deliveredCommit:$e.deliveredCommit}:{},prAction:$e.action,...$e.retargetedAs?{retargetedAs:$e.retargetedAs}:{},prUrl:$e.url,prTitle:E,...$e.failure?{prFailure:$e.failure,prDetail:$e.detail}:{},...St?{cutNote:St}:{},...$e.action==="skipped"&&$e.detail?{reason:$e.detail}:{},unstaged:ct,...Xe?{heldBack:Xe}:{}}}}catch(f){return{thrown:!0,record:{schemaVersion:1,repository:a,branch:c,committed:u,commitSha:l,pushed:!1,prAction:"failed",...Eve(f),unstaged:[]}}}finally{if(p.length){try{nt(i.path,["reset"])}catch{}for(let f of p.reverse())try{f()}catch{}}}}o(kve,"deliverRepository");var n3e={name:"deliver",timeoutMinutes:5,execute:Ave,validateInput:o(e=>{let t=H0(e);return t?{ok:!1,reasons:[t]}:ive(e)},"validateInput"),requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var Bve=10*6e4,Rve=4*6e4,xve=6e4;function Qve(e,t){return e.getTime()-t.getTime()-Bve}o(Qve,"remainingBudgetMs");var HW="This attempt revoked its scoped GitHub credentials; it mints no more.";var $ve=10*6e4;var Tve=o(e=>!!e&&Object.keys(e).length===1&&e.contents==="read","onlyReads"),Dve=3e4,_ve=3,JW=30,vi=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")}},Zi=class extends Error{static{o(this,"AppUnreachable")}},Ll=class extends Zi{static{o(this,"AppNotReady")}},dD=class extends Ll{static{o(this,"RunnerProviderNotReady")}};function pD(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(pD,"appOrigin");function ZW(e,t){if(!Tu.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}o(ZW,"routeId");function KW(e,t,n,i){throw t<500&&t!==429?new vi(e,t,n,i):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new dD(e):t===503&&n==="RUN_NOT_READY"?new Ll(e):new Zi(e)}o(KW,"refusedOrUnreachable");async function XW(e,t,n,i,r,s=1/0){let a=pD(e.origin),c=`The time limit for ${t} ${n} was reached`,u,l=0;for(let p=1;p<=_ve||u instanceof Ll;p+=1){if(u instanceof Ll){if(l===JW)throw u;l+=1,p-=1,e.log?.(`${u.message}; trying again (${l} of ${JW}).`),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 Zi(c);try{let f,A=await(Number.isFinite(s)?Promise.race([e.idToken(a),new Promise((m,E)=>{f=setTimeout(()=>E(new Zi(c)),Math.max(1,s-Date.now()))})]).finally(()=>{f&&clearTimeout(f)}):e.idToken(a));if(Date.now()>=s)throw new Zi(c);let h=await(e.fetch??fetch)(new URL(n,a).toString(),{...i(A),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(Dve,s-Date.now())))}).catch(m=>{throw new Zi(m instanceof Error?m.message:String(m),{cause:m})});return await r(h)}catch(f){if(f instanceof vi||Date.now()>=s)throw f;u=f}}throw u}o(XW,"callWithRetries");function e4(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(e4,"logRefusal");var Sg=class extends Error{static{o(this,"ReportUploadSizeError")}};function t4(e){let t=Buffer.byteLength(e,"utf8");if(t<=XC)return{body:e};if(t>G1)throw new Sg("The report exceeds the app's 16 MiB expanded report limit");let n=new Uint8Array((0,WW.gzipSync)(e));if(n.length>XC)throw new Sg("The compressed report exceeds the app's 1 MiB report upload limit");return{body:n,gzip:!0}}o(t4,"encodeReportUpload");function fD(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?t4(s):{body:s};return n4(e,t,n,a,r)}o(fD,"callApp");function n4(e,t,n,i,r){return XW(e,t,n,o(a=>({method:t,headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json",Accept:"application/json",...i.gzip?{"Content-Encoding":"gzip"}:{}},body:i.body}),"request"),async a=>{let c=await a.text().catch(()=>""),u={};try{u=JSON.parse(c)}catch{}if(a.ok)return u.data;e4(e,t,n,a,c);let l=u.error?.fields,p=typeof l?.path=="string"&&typeof l.reason=="string"?` at ${l.path}: ${l.reason}`:"",f=`The Skyramp app refused ${t} ${n}: ${a.status} ${u.error?.code??"no error code"}${p}`;return KW(f,a.status,u.error?.code,typeof l?.path=="string"?l.path:void 0)},r)}o(n4,"callEncodedApp");function Nve(e,t,n){return XW(e,"GET",t,o(r=>({method:"GET",headers:{Authorization:`Bearer ${r}`,Accept:"application/octet-stream"}}),"request"),async r=>{if(!r.ok)return e4(e,"GET",t,r,await r.text().catch(()=>"")),KW(`The Skyramp app refused GET ${t}: ${r.status}`,r.status);let s=Buffer.from(await r.arrayBuffer());if(s.length>n)throw new vi(`The Skyramp app answered GET ${t} with more than ${n} bytes`,r.status);return s})}o(Nve,"callAppBytes");var kg=class{constructor(t,n,i,r,s,a,c,u,l,p=[],f=[],A,h=!1){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=A;this.credentialKinds=h}attemptId;attemptNumber;deadlineAt;manifest;deps;license;requestedBy;writeAllowed;claudeCodeVersion;deployedPins;statedPins;runSettings;credentialKinds;static{o(this,"V3Attempt")}budgetMs(t,n){let i=n===void 0?void 0:Date.parse(this.manifest.trigger.requestedAt)+n*6e4;if(this.deadlineAt.getTime()!==i)return Qve(this.deadlineAt,t);let r=this.deadlineAt.getTime()-t.getTime(),s=Math.max(xve,Math.min(Rve,r/2));return r-s}get skyrampRunUrl(){return U1(pD(this.deps.origin),this.manifest.runId)}log(t){this.deps.log?.(t)}send(t,n,i,r){return fD(this.deps,t,n,i,r)}async sendReport(t){await n4(this.deps,"PUT",`/api/v1/runner/attempts/${this.attemptId}/report`,t)}readBytes(t,n){return Nve(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(HW);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>=$ve)return r.token;if(this.revocation)throw new Error(HW);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&&!Tve(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 vi)||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 vi(`${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 A=p([...f,this.manifest.execution.repository]);throw new vi(`${l.message}. Check the Skyramp GitHub App installation on ${A}: 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??r0();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 r4(e,t,n){ZW(e,"run id"),pD(n.origin);let i={statedPins:!0,credentialKinds:!0},r=iS(e,t,i),s=`/api/v1/runner/runs/${e}/attempts`,a;for(;;)try{a=await fD(n,"POST",s,r);break}catch(p){let f=p instanceof vi&&p.status===400?Pve(p,i):void 0;if(!f)throw p;i[f]=!1,r=iS(e,t,i)}let c=lG(a);if(c.manifest.runId!==e)throw new Error(`The app answered the handshake of run ${e} with the manifest of another run (${c.manifest.runId})`);let u=c.manifest.sources.find(p=>p.repository.provider!==r.execution.provider);if(u)throw new Error(`The manifest of run ${e} names ${u.repository.namespace}/${u.repository.name} on ${u.repository.provider}, but this job runs on ${r.execution.provider}`);Uve(c.manifest,[...c.deployedRevisions??[],...c.statedRevisions??[]]),c.runToken&&n.mask?.(c.runToken);let l=c.runToken?{entitlements:c.entitlements??[],runToken:c.runToken}:void 0;return new kg(c.attempt.id,c.attempt.number,new Date(c.attempt.deadlineAt),c.manifest,n,l,c.requestedBy??void 0,c.writeAllowed,c.claudeCodeVersion??void 0,c.deployedRevisions??[],c.statedRevisions??[],c.runSettings,r.credentialKinds===!0)}o(r4,"startV3Attempt");function Pve(e,t){let n=["credentialKinds","statedPins"];return e.path===void 0?e.code==="INVALID_REQUEST"?n.find(i=>t[i]):void 0:n.find(i=>t[i]&&e.path===`$.${i}`)}o(Pve,"handshakeFieldRefused");function Uve(e,t){if(t.length===0)return;if(!W1(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=>ji(r.repository))),i=new Set;for(let r of t){let s=ji(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(Uve,"checkAttemptPins");async function gD(e,t){return oG.parse(await e.send("POST",`/api/v1/runner/attempts/${e.attemptId}/heartbeat`,{schemaVersion:1},t))}o(gD,"heartbeatV3Attempt");async function i4(e,t=()=>new Date,n){if(e.closure)return e.closure;let i=await gD(e,n).then(r=>aG(r,t())).catch(()=>null);return i&&(e.closure=i),i}o(i4,"closedV3Attempt");var eXe=10*6e4;var tXe=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var nXe=d.object({tests:d.object({placements:d.array(d.unknown()).optional()}).passthrough().optional()}).passthrough(),rXe=d.object({repository:ZC,testType:d.string(),directory:d.string()}).passthrough();var iXe=d.object({report:d.object({language:d.string()}).passthrough()}).passthrough();var sXe=d.object({environment:d.object({components:d.array(d.unknown()).optional(),dependencies:d.array(d.unknown()).optional()}).passthrough()}).passthrough(),oXe=d.object({environment:d.object({offLimits:d.unknown().optional()}).passthrough()}).passthrough();var aXe=d.object({environment:d.object({allowedEgress:d.unknown().optional()}).passthrough()}).passthrough();var cXe=d.object({name:d.string().min(1),provision:d.literal("existing"),url:d.string().min(1),repository:ZC.optional(),revisionUrl:d.string().min(1).optional()}).passthrough(),uXe=d.object({name:d.string().min(1),url:d.string().nullable(),versionUrl:d.string().nullable(),notes:d.string().nullable()}).passthrough();var lXe=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);function s4(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(s4,"statusCounts");function Fve(e){let{passed:t,failed:n,skipped:i}=s4(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(Fve,"executedTestsValidation");function Ove(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??tS(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 A=2;a.has(f)||f===p;A+=1)f=p.includes("#")?`${p}.${A}`:`${p}#${A}`;return a.add(f),{...c,repository:u,resultId:f}})}o(Ove,"withResultIds");function Mve({notTranslated:e,...t},n){let i=Ove(t.testResults,n);return{...t,testResults:i,...Lve(t,i,n),validation:Vve(zve(t,jve(t,t.validation??Fve(t)))),traceVersion:1}}o(Mve,"v3Report");function Lve(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),A=f!==void 0&&nm(s[f].cleanup.status)>=Math.max(1,nm(u.cleanup.status))?s[f].cleanup:u.cleanup,h={...u,cleanup:A,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(Lve,"linkedContexts");function jve(e,t){let{passed:n,failed:i}=s4(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(jve,"withEvidence");var Gve={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};function Vve(e){return{...e,gaps:Of(e.gaps)}}o(Vve,"boundedGaps");function zve(e,t){if(t.sufficiency==="sufficient")return t;let n=(e.caveats??[]).map(r=>Gve[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(zve,"withModelProviderFailure");function qve(e,t,n){let{language:i,report:r}=t;if(i==="en")return;let s={language:i,businessCaseAnalysis:r.businessCaseAnalysis},a=o((v,b,I)=>Array.isArray(v)&&Array.isArray(b)&&v.length===b.length?v.map(C=>({[I]:C[I]})):void 0,"rows"),c=e.validation;r.validation&&c&&c.rationale===n.validation.rationale&&JSON.stringify(Of(c.gaps))===JSON.stringify(n.validation.gaps)&&Of(r.validation.gaps).length===n.validation.gaps.length&&(s.validation={rationale:r.validation.rationale,gaps:Of(r.validation.gaps)});let u=new Set((n.changes??[]).map(v=>v.id)),l=(r.changes??[]).filter(v=>u.has(v.id)).map(({id:v,text:b})=>({id:v,text:b}));l.length&&(s.changes=l);let p=new Set((n.requirements??[]).filter(v=>v.statement!==void 0).map(v=>v.id)),f=(r.requirements??[]).flatMap(({id:v,statement:b})=>p.has(v)&&v.length>0&&v.length<=Rp.id&&b?.trim()?[{id:v,statement:b.slice(0,Rp.statement)}]:[]);f.length&&(s.requirements=f.slice(0,Rp.rows));let A=a(r.issuesFound,n.issuesFound,"description");A&&(s.issuesFound=A);let h=a(r.newTestsCreated,n.newTestsCreated,"description");h&&(s.newTestsCreated=h);let m=a(r.testResults,n.testResults,"details");m&&(s.testResults=m);let E=a(r.caveats,n.caveats,"text");return E&&(s.caveats=E),s}o(qve,"v3Display");async function o4(e,t){let n=Pj([...e.issuedTokens,...t.secrets??[]]),i={...Mve(t.report,t.workingSlug),...t.notTranslated?{notTranslated:t.notTranslated}:{}},r=t.translated&&qve(t.report,t.translated,i),s=Hve(ga(t.delivery,n)),a=t.sources.map(({repository:m,revision:E})=>({repository:m,revision:E})),c=ga(i,n),u=r&&eS.safeParse(ga(r,n)),l=u?.success?u.data:void 0;if(u&&!u.success){let m=u.error.issues[0]?.path.join(".");e.log(`Testbot V3: omitted the translated display because ${m?`display.${m}`:"it"} did not meet the report field limits.`)}let p=o((m,E)=>dG({manifest:e.manifest,attemptNumber:e.attemptNumber,checkedOut:a,firstQualification:t.firstQualification,generatedTests:m,producer:t.producer,report:E&&l?{...c,display:l}:c,githubWrites:t.githubWrites}),"build"),f=o((m,E)=>t4(JSON.stringify(p(m,E))),"encode"),A=(s.status==="partial"||s.status==="failed")&&s.failures?.some(m=>m.heldBack)?{...s,failures:s.failures.map(({heldBack:m,...E})=>E)}:void 0,h=[{delivery:s,display:!!l}];A&&h.push({delivery:A,display:!!l}),l&&(h.push({delivery:s,display:!1}),A&&h.push({delivery:A,display:!1}));for(let[m,E]of h.entries()){let v;try{v=f(E.delivery,E.display)}catch(b){if(!(b instanceof Sg)||m===h.length-1)throw b;continue}l&&!E.display&&e.log("Testbot V3: omitted the translated display to fit the report upload."),E.delivery===A&&e.log("Testbot V3: omitted structured held-back files to fit the report upload. See held-back.json for the complete list."),await e.sendReport(v);return}}o(o4,"uploadV3Report");async function AD(e,t,n){if(!d.string().uuid().safeParse(t).success)return{refusal:"no_environment"};let i;try{i=sG.parse(await e.send("GET",$1.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(AD,"fetchV3PersistentDataPolicy");async function a4(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 AD(e,i,r);return"refusal"in a?{allowed:!1,refusal:a.refusal}:a.policy.allowed?a.policy.revision!==s.revision?{allowed:!1,refusal:"changed"}:sm(t,a.policy,n)?{allowed:!0,policy:a.policy}:{allowed:!1,refusal:"out_of_scope"}:{allowed:!1,refusal:"denied"}}o(a4,"currentV3PersistenceDecision");var YW=o((e,t=hm)=>e.length>t?`${e.slice(0,t-1)}\u2026`:e,"boundDeliveryMessage");function Hve(e){let t=o(n=>n.map(i=>({...i,message:YW(i.message)})),"bound");return e.status==="partial"?{...e,failures:t(e.failures)}:e.status==="failed"?{...e,message:YW(e.message),...e.failures&&{failures:t(e.failures)}}:e}o(Hve,"boundDeliveryMessages");async function c4(e,t){return ZW(e.attemptId,"attempt id"),fD(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,pG({reportUploaded:e.reportUploaded,recipeUploaded:e.recipeUploaded,revisionsUploaded:e.revisionsUploaded,cancelled:e.cause==="cancelled",timedOut:e.cause==="timed_out",setupFailed:e.cause==="setup_failed",checkoutFailed:e.cause==="checkout_failed"||e.cause==="merge_conflict"&&!e.conflict,mergeConflict:e.cause==="merge_conflict"?e.conflict:void 0,environmentUnverified:e.cause==="environment_unverified",runnerProviderNotReady:e.cause==="runner_provider_not_ready",credentialMissing:e.cause==="credential_missing",modelProviderDenied:e.cause==="model_provider_denied",modelProviderUnavailable:e.cause==="model_provider_unavailable",githubWrites:e.githubWrites,environmentUnavailable:e.cause==="environment_unavailable",sharedEnvironmentRecords:e.sharedEnvironmentRecords}))}o(c4,"endV3Attempt");0&&(module.exports={AppRefusal,AppUnreachable,AttemptEndReason,DeliveryStatus,GitHubWriteKind,NoReportCause,SourceProvider,TARGET_ENVIRONMENT_KEYS,V3Attempt,ValidationSufficiency,closedV3Attempt,currentV3PersistenceDecision,endV3Attempt,fetchV3PersistentDataPolicy,heartbeatV3Attempt,startV3Attempt,uploadV3Report});
319
+ `),"latin1"))),[ne,yt]})),ct=[];for(let ne of r)try{nt(f,["--literal-pathspecs","add","--",ne])}catch{ct.push(ne)}if(ct.some(ne=>Me.has(ne)))throw new Error("could not stage every guarded delivery file");let sn=new Map([...jt].map(([ne,gt])=>{let Le=nt(f,["--literal-pathspecs","ls-files","--stage","--",ne]),yt=/^100(?:644|755) ([a-f0-9]+) 0\t/.exec(Le)?.[1];if(!yt||!gt.has(yt))throw new Error(`the staged guarded file differs from the generated file: ${ne}`);return[ne,yt]}));try{nt(f,["diff","--cached","--quiet"])}catch{try{let ne=vve(f,A,H,me,e.inputs.skyrampRunUrl);nt(f,["-c",`user.name=${v.name}`,"-c",`user.email=${v.email}`,"commit","-m",ne])}catch(ne){throw new Rb(ne)}u=!0}u&&(p.length=0),l=nt(f,["rev-parse","HEAD"]);let St,Xe,yn,ft=$??s?.headSha;if(u&&ft&&ft!==H){let ne=!1,gt=l;try{nt(f,["checkout","-q","-B",c,ft]),ne=!0;try{nt(f,["-c",`user.name=${v.name}`,"-c",`user.email=${v.email}`,"cherry-pick","--keep-redundant-commits",l])}catch(Le){let yt=$?wve(f,v,gt):void 0;if(!yt||(Xe=yt.files.map(xr=>({file:xr,dependsOn:Ive(f,a,$,H,xr)})),yn={repository:a,base:I,files:Xe,patch:Cve(f,H,gt,yt.files)},!yt.delivered))throw Le}ne=!1,OW(Le=>nt(f,Le),ft),l=nt(f,["rev-parse","HEAD"])}catch(Le){try{nt(f,["cherry-pick","--abort"])}catch{}nt(f,["checkout","-q","-B",c,l]);let yt=sp(Aa(Le),1/0);if($&&!ne)throw Le;if($)return{thrown:!1,held:yn,record:{schemaVersion:1,repository:a,branch:c,remote:b,base:I,committed:u,commitSha:l,pushed:!1,prAction:"skipped",prTitle:E,unstaged:ct,...Xe?{heldBack:Xe}:{},reason:Xe?`every test change needs a merged revision ${I} does not have yet, so no tests PR was opened: ${qW(Xe)}`:`the tests do not apply to ${I} at ${$.slice(0,12)} without the merged revisions (${yt}), so no tests PR was opened`}};St=`tests committed on the checkout's merge commit (re-cut onto ${ft.slice(0,12)} failed: ${yt})`}}Xe&&rn.writeFileSync(oe,B(Xe));for(let[ne,gt]of sn){if(Xe?.some(yt=>yt.file===ne))continue;let Le=nt(f,["--literal-pathspecs","ls-tree",l,"--",ne]);if(/^100(?:644|755) blob ([a-f0-9]+)\t/.exec(Le)?.[1]!==gt)throw new Error(`the committed guarded file differs from the generated file: ${ne}`)}for(let{record:ne}of Ie){if(ne.entry)continue;let gt=nt(f,["--literal-pathspecs","ls-tree",l,"--",ne.file]);if(gt&&gt!==nt(f,["--literal-pathspecs","ls-tree",H,"--",ne.file]))throw new Error(`the delivery included executable source for a held test: ${ne.file}`)}let ut=s?{}:{repositoryPath:f,repoSlug:a,devPr:null};if(!u){let ne=await t.markTestsPrUnchanged({branch:c,...ut});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:b,base:I,committed:!1,commitSha:l,pushed:!1,prAction:ne.action==="unchanged"?"unchanged":"skipped",prUrl:ne.url,prTitle:E,unstaged:ct,reason:ne.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 $e=await t.publishTestsPr({repositoryPath:f,...ut,remote:b,branch:c,base:I,commitSha:l,title:E,bodyFile:oe,mode:e.inputs.deliverMode,deliveryOwner:C,...e.inputs.firstQualification?{firstQualification:!0}:{},runUrl:e.inputs.skyrampRunUrl,signal:e.signal,deadlineMs:e.deadlineMs});return{thrown:!1,held:yn,record:{schemaVersion:1,repository:a,branch:c,remote:b,base:$e.base,requestedBase:I,committed:u,commitSha:l,pushed:$e.pushed,...$e.pushedCommits?{pushedCommits:$e.pushedCommits}:{},...$e.deliveredCommit?{deliveredCommit:$e.deliveredCommit}:{},prAction:$e.action,...$e.retargetedAs?{retargetedAs:$e.retargetedAs}:{},prUrl:$e.url,prTitle:E,...$e.failure?{prFailure:$e.failure,prDetail:$e.detail}:{},...St?{cutNote:St}:{},...$e.action==="skipped"&&$e.detail?{reason:$e.detail}:{},unstaged:ct,...Xe?{heldBack:Xe}:{}}}}catch(f){return{thrown:!0,record:{schemaVersion:1,repository:a,branch:c,committed:u,commitSha:l,pushed:!1,prAction:"failed",...Eve(f),unstaged:[]}}}finally{if(p.length){try{nt(i.path,["reset"])}catch{}for(let f of p.reverse())try{f()}catch{}}}}o(kve,"deliverRepository");var r3e={name:"deliver",timeoutMinutes:5,execute:Ave,validateInput:o(e=>{let t=H0(e);return t?{ok:!1,reasons:[t]}:ive(e)},"validateInput"),requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var Bve=10*6e4,Rve=4*6e4,xve=6e4;function Qve(e,t){return e.getTime()-t.getTime()-Bve}o(Qve,"remainingBudgetMs");var HW="This attempt revoked its scoped GitHub credentials; it mints no more.";var $ve=10*6e4;var Tve=o(e=>!!e&&Object.keys(e).length===1&&e.contents==="read","onlyReads"),Dve=3e4,_ve=3,JW=30,vi=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")}},Zi=class extends Error{static{o(this,"AppUnreachable")}},Ll=class extends Zi{static{o(this,"AppNotReady")}},dD=class extends Ll{static{o(this,"RunnerProviderNotReady")}};function pD(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(pD,"appOrigin");function ZW(e,t){if(!Tu.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}o(ZW,"routeId");function KW(e,t,n,i){throw t<500&&t!==429?new vi(e,t,n,i):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new dD(e):t===503&&n==="RUN_NOT_READY"?new Ll(e):new Zi(e)}o(KW,"refusedOrUnreachable");async function XW(e,t,n,i,r,s=1/0){let a=pD(e.origin),c=`The time limit for ${t} ${n} to the Skyramp web app was reached`,u,l=0;for(let p=1;p<=_ve||u instanceof Ll;p+=1){if(u instanceof Ll){if(l===JW)throw u;l+=1,p-=1,e.log?.(`${u.message}; trying again (${l} of ${JW}).`),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 Zi(c);try{let f,A=await(Number.isFinite(s)?Promise.race([e.idToken(a),new Promise((m,E)=>{f=setTimeout(()=>E(new Zi(c)),Math.max(1,s-Date.now()))})]).finally(()=>{f&&clearTimeout(f)}):e.idToken(a));if(Date.now()>=s)throw new Zi(c);let h=await(e.fetch??fetch)(new URL(n,a).toString(),{...i(A),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(Dve,s-Date.now())))}).catch(m=>{let E=m instanceof Error?m.message:String(m);throw new Zi(`The Skyramp web app did not answer ${t} ${n}: ${E}`,{cause:m})});return await r(h)}catch(f){if(f instanceof vi||Date.now()>=s)throw f;u=f}}throw u}o(XW,"callWithRetries");function e4(e,t,n,i,r){let s=i.headers.get("cf-ray");e.log?.(`Testbot V3: the Skyramp web app answered ${t} ${n} with ${i.status}${s?`, cf-ray ${s}`:""}: ${r.replace(/\s+/g," ").slice(0,200)}`)}o(e4,"logRefusal");var Sg=class extends Error{static{o(this,"ReportUploadSizeError")}};function t4(e){let t=Buffer.byteLength(e,"utf8");if(t<=XC)return{body:e};if(t>G1)throw new Sg("The report exceeds the Skyramp web app's 16 MiB expanded report limit");let n=new Uint8Array((0,WW.gzipSync)(e));if(n.length>XC)throw new Sg("The compressed report exceeds the Skyramp web app's 1 MiB report upload limit");return{body:n,gzip:!0}}o(t4,"encodeReportUpload");function fD(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?t4(s):{body:s};return n4(e,t,n,a,r)}o(fD,"callApp");function n4(e,t,n,i,r){return XW(e,t,n,o(a=>({method:t,headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json",Accept:"application/json",...i.gzip?{"Content-Encoding":"gzip"}:{}},body:i.body}),"request"),async a=>{let c=await a.text().catch(()=>""),u={};try{u=JSON.parse(c)}catch{}if(a.ok)return u.data;e4(e,t,n,a,c);let l=u.error?.fields,p=typeof l?.path=="string"&&typeof l.reason=="string"?` at ${l.path}: ${l.reason}`:"",f=`The Skyramp web app refused ${t} ${n}: ${a.status} ${u.error?.code??"no error code"}${p}`;return KW(f,a.status,u.error?.code,typeof l?.path=="string"?l.path:void 0)},r)}o(n4,"callEncodedApp");function Nve(e,t,n){return XW(e,"GET",t,o(r=>({method:"GET",headers:{Authorization:`Bearer ${r}`,Accept:"application/octet-stream"}}),"request"),async r=>{if(!r.ok)return e4(e,"GET",t,r,await r.text().catch(()=>"")),KW(`The Skyramp web app refused GET ${t}: ${r.status}`,r.status);let s=Buffer.from(await r.arrayBuffer());if(s.length>n)throw new vi(`The Skyramp web app answered GET ${t} with more than ${n} bytes`,r.status);return s})}o(Nve,"callAppBytes");var kg=class{constructor(t,n,i,r,s,a,c,u,l,p=[],f=[],A,h=!1){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=A;this.credentialKinds=h}attemptId;attemptNumber;deadlineAt;manifest;deps;license;requestedBy;writeAllowed;claudeCodeVersion;deployedPins;statedPins;runSettings;credentialKinds;static{o(this,"V3Attempt")}budgetMs(t,n){let i=n===void 0?void 0:Date.parse(this.manifest.trigger.requestedAt)+n*6e4;if(this.deadlineAt.getTime()!==i)return Qve(this.deadlineAt,t);let r=this.deadlineAt.getTime()-t.getTime(),s=Math.max(xve,Math.min(Rve,r/2));return r-s}get skyrampRunUrl(){return U1(pD(this.deps.origin),this.manifest.runId)}log(t){this.deps.log?.(t)}send(t,n,i,r){return fD(this.deps,t,n,i,r)}async sendReport(t){await n4(this.deps,"PUT",`/api/v1/runner/attempts/${this.attemptId}/report`,t)}readBytes(t,n){return Nve(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(HW);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>=$ve)return r.token;if(this.revocation)throw new Error(HW);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&&!Tve(p.permissions))throw new Error(`The Skyramp web 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 vi)||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 vi(`${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 A=p([...f,this.manifest.execution.repository]);throw new vi(`${l.message}. Check the Skyramp GitHub App installation on ${A}: 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 Skyramp web 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??r0();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 r4(e,t,n){ZW(e,"run id"),pD(n.origin);let i={statedPins:!0,credentialKinds:!0},r=iS(e,t,i),s=`/api/v1/runner/runs/${e}/attempts`,a;for(;;)try{a=await fD(n,"POST",s,r);break}catch(p){let f=p instanceof vi&&p.status===400?Pve(p,i):void 0;if(!f)throw p;i[f]=!1,r=iS(e,t,i)}let c=lG(a);if(c.manifest.runId!==e)throw new Error(`The Skyramp web app answered the handshake of run ${e} with the manifest of another run (${c.manifest.runId})`);let u=c.manifest.sources.find(p=>p.repository.provider!==r.execution.provider);if(u)throw new Error(`The manifest of run ${e} names ${u.repository.namespace}/${u.repository.name} on ${u.repository.provider}, but this job runs on ${r.execution.provider}`);Uve(c.manifest,[...c.deployedRevisions??[],...c.statedRevisions??[]]),c.runToken&&n.mask?.(c.runToken);let l=c.runToken?{entitlements:c.entitlements??[],runToken:c.runToken}:void 0;return new kg(c.attempt.id,c.attempt.number,new Date(c.attempt.deadlineAt),c.manifest,n,l,c.requestedBy??void 0,c.writeAllowed,c.claudeCodeVersion??void 0,c.deployedRevisions??[],c.statedRevisions??[],c.runSettings,r.credentialKinds===!0)}o(r4,"startV3Attempt");function Pve(e,t){let n=["credentialKinds","statedPins"];return e.path===void 0?e.code==="INVALID_REQUEST"?n.find(i=>t[i]):void 0:n.find(i=>t[i]&&e.path===`$.${i}`)}o(Pve,"handshakeFieldRefused");function Uve(e,t){if(t.length===0)return;if(!W1(e))throw new Error(`The Skyramp web 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=>ji(r.repository))),i=new Set;for(let r of t){let s=ji(r.repository);if(!n.has(s))throw new Error(`The Skyramp web 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 Skyramp web app pinned repository ${r.repository.providerRepositoryId} twice`);i.add(s)}}o(Uve,"checkAttemptPins");async function gD(e,t){return oG.parse(await e.send("POST",`/api/v1/runner/attempts/${e.attemptId}/heartbeat`,{schemaVersion:1},t))}o(gD,"heartbeatV3Attempt");async function i4(e,t=()=>new Date,n){if(e.closure)return e.closure;let i=await gD(e,n).then(r=>aG(r,t())).catch(()=>null);return i&&(e.closure=i),i}o(i4,"closedV3Attempt");var tXe=10*6e4;var nXe=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var rXe=d.object({tests:d.object({placements:d.array(d.unknown()).optional()}).passthrough().optional()}).passthrough(),iXe=d.object({repository:ZC,testType:d.string(),directory:d.string()}).passthrough();var sXe=d.object({report:d.object({language:d.string()}).passthrough()}).passthrough();var oXe=d.object({environment:d.object({components:d.array(d.unknown()).optional(),dependencies:d.array(d.unknown()).optional()}).passthrough()}).passthrough(),aXe=d.object({environment:d.object({offLimits:d.unknown().optional()}).passthrough()}).passthrough();var cXe=d.object({environment:d.object({allowedEgress:d.unknown().optional()}).passthrough()}).passthrough();var uXe=d.object({name:d.string().min(1),provision:d.literal("existing"),url:d.string().min(1),repository:ZC.optional(),revisionUrl:d.string().min(1).optional()}).passthrough(),lXe=d.object({name:d.string().min(1),url:d.string().nullable(),versionUrl:d.string().nullable(),notes:d.string().nullable()}).passthrough();var dXe=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);function s4(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(s4,"statusCounts");function Fve(e){let{passed:t,failed:n,skipped:i}=s4(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(Fve,"executedTestsValidation");function Ove(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??tS(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 A=2;a.has(f)||f===p;A+=1)f=p.includes("#")?`${p}.${A}`:`${p}#${A}`;return a.add(f),{...c,repository:u,resultId:f}})}o(Ove,"withResultIds");function Mve({notTranslated:e,...t},n){let i=Ove(t.testResults,n);return{...t,testResults:i,...Lve(t,i,n),validation:Vve(zve(t,jve(t,t.validation??Fve(t)))),traceVersion:1}}o(Mve,"v3Report");function Lve(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),A=f!==void 0&&nm(s[f].cleanup.status)>=Math.max(1,nm(u.cleanup.status))?s[f].cleanup:u.cleanup,h={...u,cleanup:A,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(Lve,"linkedContexts");function jve(e,t){let{passed:n,failed:i}=s4(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(jve,"withEvidence");var Gve={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};function Vve(e){return{...e,gaps:Of(e.gaps)}}o(Vve,"boundedGaps");function zve(e,t){if(t.sufficiency==="sufficient")return t;let n=(e.caveats??[]).map(r=>Gve[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(zve,"withModelProviderFailure");function qve(e,t,n){let{language:i,report:r}=t;if(i==="en")return;let s={language:i,businessCaseAnalysis:r.businessCaseAnalysis},a=o((v,b,I)=>Array.isArray(v)&&Array.isArray(b)&&v.length===b.length?v.map(C=>({[I]:C[I]})):void 0,"rows"),c=e.validation;r.validation&&c&&c.rationale===n.validation.rationale&&JSON.stringify(Of(c.gaps))===JSON.stringify(n.validation.gaps)&&Of(r.validation.gaps).length===n.validation.gaps.length&&(s.validation={rationale:r.validation.rationale,gaps:Of(r.validation.gaps)});let u=new Set((n.changes??[]).map(v=>v.id)),l=(r.changes??[]).filter(v=>u.has(v.id)).map(({id:v,text:b})=>({id:v,text:b}));l.length&&(s.changes=l);let p=new Set((n.requirements??[]).filter(v=>v.statement!==void 0).map(v=>v.id)),f=(r.requirements??[]).flatMap(({id:v,statement:b})=>p.has(v)&&v.length>0&&v.length<=Rp.id&&b?.trim()?[{id:v,statement:b.slice(0,Rp.statement)}]:[]);f.length&&(s.requirements=f.slice(0,Rp.rows));let A=a(r.issuesFound,n.issuesFound,"description");A&&(s.issuesFound=A);let h=a(r.newTestsCreated,n.newTestsCreated,"description");h&&(s.newTestsCreated=h);let m=a(r.testResults,n.testResults,"details");m&&(s.testResults=m);let E=a(r.caveats,n.caveats,"text");return E&&(s.caveats=E),s}o(qve,"v3Display");async function o4(e,t){let n=Pj([...e.issuedTokens,...t.secrets??[]]),i={...Mve(t.report,t.workingSlug),...t.notTranslated?{notTranslated:t.notTranslated}:{}},r=t.translated&&qve(t.report,t.translated,i),s=Hve(ga(t.delivery,n)),a=t.sources.map(({repository:m,revision:E})=>({repository:m,revision:E})),c=ga(i,n),u=r&&eS.safeParse(ga(r,n)),l=u?.success?u.data:void 0;if(u&&!u.success){let m=u.error.issues[0]?.path.join(".");e.log(`Testbot V3: omitted the translated display because ${m?`display.${m}`:"it"} did not meet the report field limits.`)}let p=o((m,E)=>dG({manifest:e.manifest,attemptNumber:e.attemptNumber,checkedOut:a,firstQualification:t.firstQualification,generatedTests:m,producer:t.producer,report:E&&l?{...c,display:l}:c,githubWrites:t.githubWrites}),"build"),f=o((m,E)=>t4(JSON.stringify(p(m,E))),"encode"),A=(s.status==="partial"||s.status==="failed")&&s.failures?.some(m=>m.heldBack)?{...s,failures:s.failures.map(({heldBack:m,...E})=>E)}:void 0,h=[{delivery:s,display:!!l}];A&&h.push({delivery:A,display:!!l}),l&&(h.push({delivery:s,display:!1}),A&&h.push({delivery:A,display:!1}));for(let[m,E]of h.entries()){let v;try{v=f(E.delivery,E.display)}catch(b){if(!(b instanceof Sg)||m===h.length-1)throw b;continue}l&&!E.display&&e.log("Testbot V3: omitted the translated display to fit the report upload."),E.delivery===A&&e.log("Testbot V3: omitted structured held-back files to fit the report upload. See held-back.json for the complete list."),await e.sendReport(v);return}}o(o4,"uploadV3Report");async function AD(e,t,n){if(!d.string().uuid().safeParse(t).success)return{refusal:"no_environment"};let i;try{i=sG.parse(await e.send("GET",$1.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(AD,"fetchV3PersistentDataPolicy");async function a4(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 AD(e,i,r);return"refusal"in a?{allowed:!1,refusal:a.refusal}:a.policy.allowed?a.policy.revision!==s.revision?{allowed:!1,refusal:"changed"}:sm(t,a.policy,n)?{allowed:!0,policy:a.policy}:{allowed:!1,refusal:"out_of_scope"}:{allowed:!1,refusal:"denied"}}o(a4,"currentV3PersistenceDecision");var YW=o((e,t=hm)=>e.length>t?`${e.slice(0,t-1)}\u2026`:e,"boundDeliveryMessage");function Hve(e){let t=o(n=>n.map(i=>({...i,message:YW(i.message)})),"bound");return e.status==="partial"?{...e,failures:t(e.failures)}:e.status==="failed"?{...e,message:YW(e.message),...e.failures&&{failures:t(e.failures)}}:e}o(Hve,"boundDeliveryMessages");async function c4(e,t){return ZW(e.attemptId,"attempt id"),fD(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,pG({reportUploaded:e.reportUploaded,recipeUploaded:e.recipeUploaded,revisionsUploaded:e.revisionsUploaded,cancelled:e.cause==="cancelled",timedOut:e.cause==="timed_out",setupFailed:e.cause==="setup_failed",checkoutFailed:e.cause==="checkout_failed"||e.cause==="merge_conflict"&&!e.conflict,mergeConflict:e.cause==="merge_conflict"?e.conflict:void 0,environmentUnverified:e.cause==="environment_unverified",runnerProviderNotReady:e.cause==="runner_provider_not_ready",credentialMissing:e.cause==="credential_missing",modelProviderDenied:e.cause==="model_provider_denied",modelProviderUnavailable:e.cause==="model_provider_unavailable",githubWrites:e.githubWrites,environmentUnavailable:e.cause==="environment_unavailable",sharedEnvironmentRecords:e.sharedEnvironmentRecords}))}o(c4,"endV3Attempt");0&&(module.exports={AppRefusal,AppUnreachable,AttemptEndReason,DeliveryStatus,GitHubWriteKind,NoReportCause,SourceProvider,TARGET_ENVIRONMENT_KEYS,V3Attempt,ValidationSufficiency,closedV3Attempt,currentV3PersistenceDecision,endV3Attempt,fetchV3PersistentDataPolicy,heartbeatV3Attempt,startV3Attempt,uploadV3Report});
320
320
  /*! Bundled license information:
321
321
 
322
322
  undici/lib/web/fetch/body.js: