@skyramp/testbot-core 0.13.2-v3.512 → 0.13.2-v3.514
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION.json +1 -1
- package/dist/main.js +486 -486
- package/dist/post.js +6 -6
- package/dist/runner-client.cjs +5 -5
- package/package.json +1 -1
package/dist/runner-client.cjs
CHANGED
|
@@ -133,7 +133,7 @@ ${i}
|
|
|
133
133
|
};
|
|
134
134
|
} catch { /* never break the command */ }
|
|
135
135
|
})();
|
|
136
|
-
`;function rD(e,t){let n=`--require=${/\s/.test(e)?JSON.stringify(e):e}`;return t?.trim()?`${n} ${t.trim()}`:n}o(rD,"nodeOptionsWithPreload");var LW=`${tD} up to, not including, ${nD}`;var hb="data-safety-isolation.json";var dc=new Map,iD=new Map;function Dl(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(Dl,"isNativeExecutable");function mb(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}o(mb,"retainPath");function RA(e){let t=e.map(i=>{try{return ae.realpathSync(i)}catch{return me.resolve(i)}}),n=process.versions.bun?(process.env.PATH??"/usr/bin:/bin").split(me.delimiter).filter(me.isAbsolute).map(i=>me.join(i,"node")):[process.execPath];for(let i of n)try{let r=ae.realpathSync(i);if(ae.accessSync(r,ae.constants.X_OK),fi(t,r)||!ae.statSync(r).isFile()||!Dl(r))continue;let s=fc(e[0]);return s&&mb(s,r),r}catch{}throw new Error("an absolute native Node executable outside sandbox-writable locations is required for isolation")}o(RA,"trustedNodeBinary");var yb=/^(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_.*)$/,jW=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function pc(e,t){let n={...t};n.PATH=e.bootstrapPath??oD(e.roots,process.env.PATH??"/usr/bin:/bin").map(i=>(mb(e,i),i)).join(me.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))yb.test(i)&&delete n[i];return n}o(pc,"bootstrapEnv");function oD(e,t){return t.split(me.delimiter).flatMap(n=>{if(!me.isAbsolute(n))return[];try{let i=ae.realpathSync(n);if(fi(e,i)||e.some(r=>lc(i,r)))return[];for(let r of ae.readdirSync(i)){let s=me.join(i,r);try{ae.accessSync(s,ae.constants.X_OK)}catch{continue}if(ae.statSync(s).isFile()&&fi(e,ae.realpathSync(s)))return[]}return[i]}catch{return[]}})}o(oD,"trustedPathEntries");var lc=o((e,t)=>t===e||t.startsWith(e+me.sep),"inside");function fi(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(i=>{try{return ae.realpathSync(i)}catch{return i}});return[...e,...n].some(i=>lc(i,t))}o(fi,"unsafeToolPath");var GW="Testbot could not install it because the Ubuntu package source was unavailable. Run the validation again later",VW=new Set;function _l(e,t,n,i=r=>Qt(e,r)){let r=t.includes(me.sep)?[me.resolve(n,t)]:(pc(e,{PATH:process.env.PATH}).PATH??"").split(me.delimiter).map(s=>me.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})${VW.has(t)?`: ${GW}`:""}`)}o(_l,"executableAt");function Eb(e,t,n,i=[],r=[]){let s=o(h=>{try{return ae.realpathSync(h)}catch{return me.resolve(h)}},"canonical"),a=s(t),c=[...new Set([a,...r,...[...dc.values()].flatMap(h=>h.roots)].map(s))],u={roots:c,ctx:{outputsDir:a},statusFile:""},l=pc(u,n),p=_l(u,e,a,h=>new Error(`Host transport unavailable: ${h}`));if(fi(c,p)||!Dl(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(fi(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 g=iD.get(a)??new Set;f.forEach(h=>g.add(h)),iD.set(a,g);for(let h of dc.values())f.forEach(m=>mb(h,m));return{executable:p,env:l}}o(Eb,"nativeHostTool");function aD(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let i=_l(e,t,e.roots[0]);return Ib(e.roots[0],[{command:i}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,i),i}o(aD,"bootstrapExecutable");function bb(e,t){let n=fc(e);return n?{executable:aD(n,t),env:pc(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}o(bb,"bootstrapTool");function fc(e){let t=me.resolve(e);try{t=ae.realpathSync(e)}catch{}let n=[...dc.values()],i=n.find(r=>r.roots.some(s=>lc(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(fc,"forCwd");function cD(e){return`Shared-environment isolation unavailable: ${e}`}o(cD,"isolationUnavailableText");var BA=class extends Error{constructor(n){super(cD(n));this.detail=n;this.name="IsolationUnavailableError"}detail;static{o(this,"IsolationUnavailableError")}};function Qt(e,t){return e.failure=t,uD(e.ctx,t),new BA(t)}o(Qt,"refusal");function uD(e,t){let n=dc.get(e.outputsDir);n&&(n.incident=t),ae.mkdirSync(e.outputsDir,{recursive:!0});let i=me.join(e.outputsDir,hb),r=`${i}.${(0,sD.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(uD,"recordIsolationFailure");function Ib(e,t,n=[],i=[],r=!1){let s=fc(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(fi(s.roots,m)||s.roots.some(I=>lc(m,I)))throw Qt(s,"a configured tool package or dependency is installed in a sandbox-writable location");a(m);let b=o(I=>{if(!c.has(I)){c.add(I);for(let E of ae.readdirSync(I,{withFileTypes:!0})){let v=me.join(I,E.name);if(E.isSymbolicLink()){let C=l(v);if(fi(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 E.isDirectory()&&b(v)}}},"visit");b(m)},"protectDirectory"),f=o((h,m=!1,b=!1)=>{let I=l(h);if(fi(s.roots,I))throw Qt(s,"a configured tool executable or package is installed in a sandbox-writable location");if(a(I),!m&&u.has(I))return;u.add(I);let E,v=ae.openSync(I,"r"),C=Buffer.alloc(256);try{ae.readSync(v,C,0,C.length,0)}finally{ae.closeSync(v)}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(me.basename($)==="env"){let oe=_l(s,$,e);if(fi(s.roots,oe)||!Dl(oe))throw Qt(s,`unsafe shebang launcher: ${$}`);a(oe),w.shift(),w[0]==="-S"&&w.shift()}let B=ae.statSync(I),Z=r&&(lc("/usr/bin",I)||lc("/bin",I))&&B.uid===0&&(B.mode&18)===0&&/^(?:sh|bash)$/.test(me.basename(w[0]));if(w.length!==1||!/^(?:node|nodejs|bun)$/.test(me.basename(w[0]))&&!Z)throw Qt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(E=_l(s,w[0],e),fi(s.roots,E)||!Dl(E))throw Qt(s,`unsafe shebang interpreter: ${w[0]}`);a(E)}else if(!Dl(I))throw Qt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(b||/\.[cm]?[jt]s$/.test(I)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(C.toString())){let x=me.dirname(I);for(let w=x;;w=me.dirname(w)){if(ae.existsSync(me.join(w,"package.json"))){x=w;break}if(me.dirname(w)===w)break}p(x);for(let w=x;;w=me.dirname(w)){let $=me.join(w,"node_modules");if(ae.existsSync($)&&ae.statSync($).isDirectory()&&p($),me.basename(w)==="node_modules"&&p(w),me.dirname(w)===w)break}}return E},"check"),g=[];for(let h of t){let m=_l(s,h.command,e),b=f(m,!0),I=me.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(I))throw Qt(s,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(I)&&h.args?.length)throw Qt(s,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let E;if(!r&&/^(?:node|nodejs|bun)$/.test(I)){let v=h.args??[],C=v[0]==="--"||I==="bun"&&v[0]==="run"?v[1]:v[0];if(!C||C.startsWith("-")||!ae.existsSync(me.resolve(e,C))||!ae.statSync(me.resolve(e,C)).isFile())throw Qt(s,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");E=me.resolve(e,C)}g.push(b&&!r?{command:b,args:[m,...h.args??[]]}:{command:m,args:[...h.args??[]]});for(let v of h.args??[]){let C=me.resolve(e,v);!v.startsWith("-")&&ae.existsSync(C)&&ae.statSync(C).isFile()&&f(C,!1,C===E)}}for(let h of n)f(h);for(let h of i){let m=l(h);p(m);let b=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"),I=o(C=>{if(!C||typeof C!="object")return;if(Array.isArray(C)){C.forEach(I);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=uc(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)Ib(e,[{command:$[0],args:$.slice(1)}])}Object.values(x).forEach(I)},"hooks"),E=me.join(m,".claude-plugin/plugin.json");if(ae.existsSync(E)){let C=b(E);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"?I(b(me.resolve(m,$))):Array.isArray($)?$.forEach(w):I($)},"hookDocuments");w(x.hooks)}let v=me.join(m,"hooks/hooks.json");if(ae.existsSync(v)&&I(b(v)),ae.existsSync(me.join(m,".mcp.json")))throw Qt(s,"declare plugin MCP servers through the run's validated MCP configuration")}return g}o(Ib,"assertToolAssetsSafe");function xs(e,t,n,i="data-safety-proxy"){let r=fc(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:oD(r.roots,n.PATH??"").join(me.delimiter)}:n,u=pc(r,a?{...c}:{...c,...r.env}),l=Object.keys(c).filter(p=>(["PATH","HOME","SHELL"].includes(p)||yb.test(p)&&!jW.test(p))&&c[p]!==void 0).map(p=>`${p}=${c[p]}`);return{argv:[r.node,r.cli,"--settings",s,"--","/usr/bin/env",...l,...zW(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(xs,"protectedCommand");function zW(e,t,n){let i=e.noProxy??"",r=t==="data-safety-proxy"&&e.playwrightPreload&&ae.existsSync(e.playwrightPreload)?[`NODE_OPTIONS=${rD(e.playwrightPreload,n)}`]:[];return[`NO_PROXY=${i}`,`no_proxy=${i}`,...e.tmp?[...["TMPDIR","TMP","TEMP"].map(s=>`${s}=${e.tmp}`),...qW(e.tmp)]:[],...r]}o(zW,"sandboxCommandEnv");function qW(e){let t=me.join(e,"npm-cache"),n=me.join(e,"pnpm");return[`npm_config_cache=${t}`,`NPM_CONFIG_CACHE=${t}`,`COREPACK_HOME=${me.join(e,"corepack")}`,`PNPM_HOME=${n}`,`pnpm_config_store_dir=${me.join(n,"store")}`,`pnpm_config_cache_dir=${me.join(n,"cache")}`,`pnpm_config_state_dir=${me.join(n,"state")}`,`YARN_GLOBAL_FOLDER=${me.join(e,"yarn")}`]}o(qW,"packageManagerDirs");function Vi(e){return!!fc(e)}o(Vi,"hasNetworkBoundary");function xA(e,t=process.env){let n=fc(e);return n?pc(n,{...t,...n.env}):t}o(xA,"networkBoundaryEnv");var kr=["-c","core.fsmonitor=false"],JW=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"]),Nl=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 Ot(e=process.env,t,n="repo-command"){let i={};for(let[r,s]of Object.entries(e))n==="repo-command"&&Nl.has(r)||(i[r]=s);Object.assign(i,t??{});for(let r of Object.keys(i))(JW.has(r)||r.startsWith("INPUT_"))&&delete i[r];return i}o(Ot,"untrustedChildEnv");var dD=require("async_hooks");function lD(e){return(e?.components??[]).filter(t=>!!t.repository)}o(lD,"sharedSutComponents");function QA(e){let t=e.sharedEnvironment;return t?.environmentId&&t.environmentAddress?!0:lD(t).length>0}o(QA,"requiresSharedEnvironmentGuard");var mIe=new dD.AsyncLocalStorage;var pD=["--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"],HW="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function YW(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 Nl)delete t[n];return t}o(YW,"gitEnv");function WW(e,t){let n=bb(e,"git"),i=n.executable,r=xA(e,{...YW(t),PATH:n.env.PATH}),s=xs([i,...pD,"config","--null","--name-only","--get-regexp",HW],e,r),a=[];try{a=(0,Pl.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:[...pD,...c]}}o(WW,"gitPolicy");function $A(e,t,n=process.env){if(!Vi(t))return{argv:["git",...e],env:n};let i=WW(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 xs([i.binary,...i.config,...r],t,i.env)}o($A,"protectedGitCommand");function Mt(e,t){let n=$A(e,t.cwd,t.env??process.env);return(0,Pl.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(Mt,"execGitSync");function vb(e,t){let n=$A(e,t.cwd,t.env??process.env);return(0,Pl.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(vb,"spawnGitSync");var yW=require("node:zlib");lu();var Nh=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),dj=o((e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,"tests"),Ph={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=>`${Nh(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${Nh(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${Nh(e)} reused`,"reused"),verified:o(e=>`${Nh(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"),testSettingsDiffer:o(e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,"testSettingsDiffer"),stageSalvaged:o((e,t)=>t.length===1?`The ${e} step kept what it had produced although its ${t[0]} check still failed after a repair, so treat that output as unconfirmed by it.`:`The ${e} step kept what it had produced although ${t.length} of its checks (${t.join(", ")}) still failed after a repair, so treat that output as unconfirmed by them.`,"stageSalvaged"),downstreamNotChecked:o(e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,"downstreamNotChecked"),browserBuildNotDeclared:o((e,t,n)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${n}\` there.`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,"videoMissing"),testsCouldNotRunHere:o((e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,"testsCouldNotRunHere"),modelProviderDenied:o((e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`${t}, the model provider, interrupted the ${e} step. Testbot kept what that step had produced.`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`${e}, the model provider, interrupted planning. Testbot kept the plan it had and reports the test results it obtained.`+(t?" Please try again later.":""),"planInterruptedByProvider"),modelProviderUnavailable:o((e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`,"modelProviderUnavailable"),dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:o(e=>`The agent's browser sent sign-in or sign-up requests: ${e}. The data-safety guard lets these through and does not delete what they create, for example a new account.`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:o((e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.","dataSafetyIsolationEnforced"),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"),dataSafetyGuardedProbes:"plan probes",dataSafetyGuardedTests:"test runs",dataSafetyAnd:" and ",dataSafetyCleanupConfirmed:"Testbot ran each test's declared cleanup, and each succeeded.",dataSafetyLeftRecords:o(e=>`These tests declare records they cannot delete from the shared environment: ${e}.`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`The cleanup of ${e} failed: what they created may still be in the shared environment.`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`The cleanup of ${e} is not known: Testbot did not check their cleanup.`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot could not run this validation inside the shared-environment isolation it requires, so it did not validate the change.",gap:o(e=>`Shared-environment isolation unavailable: ${e}`,"gap"),nextStep:"Fix what the gap names, then run the validation again.",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)=>`${dj(e,"new")} and ${dj(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 pj={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"),testSettingsDiffer:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,"testSettingsDiffer"),stageSalvaged:o((e,t)=>t.length===1?`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t[0]} \u306E\u30C1\u30A7\u30C3\u30AF\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`:`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t.length} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\uFF08${t.join("\u3001")}\uFF09\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u308C\u3089\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`,"stageSalvaged"),downstreamNotChecked:o(e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,"downstreamNotChecked"),browserBuildNotDeclared:o((e,t,n)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${n}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F\u6700\u5F8C\u306E\u5B9F\u884C\u306E\u5F8C\u306B\u5909\u66F4\u3055\u308C\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306F\u4EE5\u524D\u306E\u7248\u306E\u3082\u306E\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`\u6B21\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306F\u52D5\u753B\u304C\u8A18\u9332\u3055\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306B\u306F\u78BA\u8A8D\u3067\u304D\u308B\u52D5\u753B\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"videoMissing"),testsCouldNotRunHere:o((e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,"testsCouldNotRunHere"),modelProviderDenied:o((e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${t} \u306B\u3088\u308A ${e} \u306E\u6BB5\u968E\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u305D\u306E\u6BB5\u968E\u3067\u4F5C\u6210\u6E08\u307F\u306E\u5185\u5BB9\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u306B\u3088\u308A\u8A08\u753B\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u4F5C\u6210\u6E08\u307F\u306E\u8A08\u753B\u3092\u6B8B\u3057\u3001\u5F97\u3089\u308C\u305F\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u5831\u544A\u3057\u307E\u3059\u3002`+(t?"\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002":""),"planInterruptedByProvider"),modelProviderUnavailable:o((e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"modelProviderUnavailable"),dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:o(e=>`\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u30D6\u30E9\u30A6\u30B6\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u524A\u9664\u3057\u307E\u305B\u3093\u3002`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:o((e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002","dataSafetyIsolationEnforced"),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"),dataSafetyGuardedProbes:"\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6",dataSafetyGuardedTests:"\u30C6\u30B9\u30C8\u306E\u5B9F\u884C",dataSafetyAnd:"\u3068",dataSafetyCleanupConfirmed:"Testbot \u306F\u5404\u30C6\u30B9\u30C8\u304C\u5BA3\u8A00\u3057\u305F\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u5B9F\u884C\u3057\u3001\u3059\u3079\u3066\u6210\u529F\u3057\u307E\u3057\u305F\u3002",dataSafetyLeftRecords:o(e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u304B\u3089\u524A\u9664\u3067\u304D\u306A\u3044\u30EC\u30B3\u30FC\u30C9\u3092\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059: ${e}\u3002`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u4F5C\u6210\u3057\u305F\u3082\u306E\u304C\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3063\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u4E0D\u660E\u3067\u3059\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u305B\u3093\u3002`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot \u306F\u3001\u5FC5\u8981\u306A\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u306E\u4E2D\u3067\u3053\u306E\u691C\u8A3C\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5909\u66F4\u3092\u691C\u8A3C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",gap:o(e=>`\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093: ${e}`,"gap"),nextStep:"\u30AE\u30E3\u30C3\u30D7\u306B\u8A18\u8F09\u3055\u308C\u305F\u554F\u984C\u3092\u89E3\u6D88\u3057\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",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 tie={en:Ph,ja:pj},nie="en";function Ys(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(Ys,"labelOf");function ue(){return tie[nie]}o(ue,"t");var rie=4;var Aj="\xABredacted\xBB";function gj(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=rie&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(gj,"redactionsFrom");function iie(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(iie,"redactGitCredentials");var sie=/\.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 oie(e){return[...e.matchAll(sie)].map(t=>[t.index,t.index+t[0].length])}o(oie,"ownNames");function aie(e,t){let n=oie(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(aie,"outsideOwnNames");function gr(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=aie(n,i);for(let s=r.length-1;s>=0;s-=1)n=n.slice(0,r[s])+Aj+n.slice(r[s]+i.length)}return n}o(gr,"redactSecrets");function Ws(e,t){return gr(iie(e),t)}o(Ws,"redactCredentials");function cie(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(cie,"mapStrings");function ua(e,t){return t.length===0?e:cie(e,n=>gr(n,t))}o(ua,"redactDeep");var fke=new TextDecoder("utf-8",{fatal:!0});var mj=600,Fh=300;function hj(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(hj,"streamText");function uie(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[hj(t?.stderr),hj(t?.stdout)].filter(Boolean);return i.length?[n.split(`
|
|
136
|
+
`;function rD(e,t){let n=`--require=${/\s/.test(e)?JSON.stringify(e):e}`;return t?.trim()?`${n} ${t.trim()}`:n}o(rD,"nodeOptionsWithPreload");var LW=`${tD} up to, not including, ${nD}`;var hb="data-safety-isolation.json";var dc=new Map,iD=new Map;function Dl(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(Dl,"isNativeExecutable");function mb(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}o(mb,"retainPath");function RA(e){let t=e.map(i=>{try{return ae.realpathSync(i)}catch{return me.resolve(i)}}),n=process.versions.bun?(process.env.PATH??"/usr/bin:/bin").split(me.delimiter).filter(me.isAbsolute).map(i=>me.join(i,"node")):[process.execPath];for(let i of n)try{let r=ae.realpathSync(i);if(ae.accessSync(r,ae.constants.X_OK),fi(t,r)||!ae.statSync(r).isFile()||!Dl(r))continue;let s=fc(e[0]);return s&&mb(s,r),r}catch{}throw new Error("an absolute native Node executable outside sandbox-writable locations is required for isolation")}o(RA,"trustedNodeBinary");var yb=/^(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_.*)$/,jW=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function pc(e,t){let n={...t};n.PATH=e.bootstrapPath??oD(e.roots,process.env.PATH??"/usr/bin:/bin").map(i=>(mb(e,i),i)).join(me.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))yb.test(i)&&delete n[i];return n}o(pc,"bootstrapEnv");function oD(e,t){return t.split(me.delimiter).flatMap(n=>{if(!me.isAbsolute(n))return[];try{let i=ae.realpathSync(n);if(fi(e,i)||e.some(r=>lc(i,r)))return[];for(let r of ae.readdirSync(i)){let s=me.join(i,r);try{ae.accessSync(s,ae.constants.X_OK)}catch{continue}if(ae.statSync(s).isFile()&&fi(e,ae.realpathSync(s)))return[]}return[i]}catch{return[]}})}o(oD,"trustedPathEntries");var lc=o((e,t)=>t===e||t.startsWith(e+me.sep),"inside");function fi(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(i=>{try{return ae.realpathSync(i)}catch{return i}});return[...e,...n].some(i=>lc(i,t))}o(fi,"unsafeToolPath");var GW="Testbot could not install it because the Ubuntu package source was unavailable. Run the validation again later",VW=new Set;function _l(e,t,n,i=r=>Qt(e,r)){let r=t.includes(me.sep)?[me.resolve(n,t)]:(pc(e,{PATH:process.env.PATH}).PATH??"").split(me.delimiter).map(s=>me.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})${VW.has(t)?`: ${GW}`:""}`)}o(_l,"executableAt");function Eb(e,t,n,i=[],r=[]){let s=o(h=>{try{return ae.realpathSync(h)}catch{return me.resolve(h)}},"canonical"),a=s(t),c=[...new Set([a,...r,...[...dc.values()].flatMap(h=>h.roots)].map(s))],u={roots:c,ctx:{outputsDir:a},statusFile:""},l=pc(u,n),p=_l(u,e,a,h=>new Error(`Host transport unavailable: ${h}`));if(fi(c,p)||!Dl(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(fi(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 g=iD.get(a)??new Set;f.forEach(h=>g.add(h)),iD.set(a,g);for(let h of dc.values())f.forEach(m=>mb(h,m));return{executable:p,env:l}}o(Eb,"nativeHostTool");function aD(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let i=_l(e,t,e.roots[0]);return Ib(e.roots[0],[{command:i}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,i),i}o(aD,"bootstrapExecutable");function bb(e,t){let n=fc(e);return n?{executable:aD(n,t),env:pc(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}o(bb,"bootstrapTool");function fc(e){let t=me.resolve(e);try{t=ae.realpathSync(e)}catch{}let n=[...dc.values()],i=n.find(r=>r.roots.some(s=>lc(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(fc,"forCwd");function cD(e){return`Shared-environment isolation unavailable: ${e}`}o(cD,"isolationUnavailableText");var BA=class extends Error{constructor(n){super(cD(n));this.detail=n;this.name="IsolationUnavailableError"}detail;static{o(this,"IsolationUnavailableError")}};function Qt(e,t){return e.failure=t,uD(e.ctx,t),new BA(t)}o(Qt,"refusal");function uD(e,t){let n=dc.get(e.outputsDir);n&&(n.incident=t),ae.mkdirSync(e.outputsDir,{recursive:!0});let i=me.join(e.outputsDir,hb),r=`${i}.${(0,sD.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(uD,"recordIsolationFailure");function Ib(e,t,n=[],i=[],r=!1){let s=fc(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(fi(s.roots,m)||s.roots.some(I=>lc(m,I)))throw Qt(s,"a configured tool package or dependency is installed in a sandbox-writable location");a(m);let b=o(I=>{if(!c.has(I)){c.add(I);for(let E of ae.readdirSync(I,{withFileTypes:!0})){let v=me.join(I,E.name);if(E.isSymbolicLink()){let C=l(v);if(fi(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 E.isDirectory()&&b(v)}}},"visit");b(m)},"protectDirectory"),f=o((h,m=!1,b=!1)=>{let I=l(h);if(fi(s.roots,I))throw Qt(s,"a configured tool executable or package is installed in a sandbox-writable location");if(a(I),!m&&u.has(I))return;u.add(I);let E,v=ae.openSync(I,"r"),C=Buffer.alloc(256);try{ae.readSync(v,C,0,C.length,0)}finally{ae.closeSync(v)}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(me.basename($)==="env"){let oe=_l(s,$,e);if(fi(s.roots,oe)||!Dl(oe))throw Qt(s,`unsafe shebang launcher: ${$}`);a(oe),w.shift(),w[0]==="-S"&&w.shift()}let B=ae.statSync(I),Z=r&&(lc("/usr/bin",I)||lc("/bin",I))&&B.uid===0&&(B.mode&18)===0&&/^(?:sh|bash)$/.test(me.basename(w[0]));if(w.length!==1||!/^(?:node|nodejs|bun)$/.test(me.basename(w[0]))&&!Z)throw Qt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(E=_l(s,w[0],e),fi(s.roots,E)||!Dl(E))throw Qt(s,`unsafe shebang interpreter: ${w[0]}`);a(E)}else if(!Dl(I))throw Qt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(b||/\.[cm]?[jt]s$/.test(I)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(C.toString())){let x=me.dirname(I);for(let w=x;;w=me.dirname(w)){if(ae.existsSync(me.join(w,"package.json"))){x=w;break}if(me.dirname(w)===w)break}p(x);for(let w=x;;w=me.dirname(w)){let $=me.join(w,"node_modules");if(ae.existsSync($)&&ae.statSync($).isDirectory()&&p($),me.basename(w)==="node_modules"&&p(w),me.dirname(w)===w)break}}return E},"check"),g=[];for(let h of t){let m=_l(s,h.command,e),b=f(m,!0),I=me.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(I))throw Qt(s,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(I)&&h.args?.length)throw Qt(s,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let E;if(!r&&/^(?:node|nodejs|bun)$/.test(I)){let v=h.args??[],C=v[0]==="--"||I==="bun"&&v[0]==="run"?v[1]:v[0];if(!C||C.startsWith("-")||!ae.existsSync(me.resolve(e,C))||!ae.statSync(me.resolve(e,C)).isFile())throw Qt(s,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");E=me.resolve(e,C)}g.push(b&&!r?{command:b,args:[m,...h.args??[]]}:{command:m,args:[...h.args??[]]});for(let v of h.args??[]){let C=me.resolve(e,v);!v.startsWith("-")&&ae.existsSync(C)&&ae.statSync(C).isFile()&&f(C,!1,C===E)}}for(let h of n)f(h);for(let h of i){let m=l(h);p(m);let b=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"),I=o(C=>{if(!C||typeof C!="object")return;if(Array.isArray(C)){C.forEach(I);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=uc(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)Ib(e,[{command:$[0],args:$.slice(1)}])}Object.values(x).forEach(I)},"hooks"),E=me.join(m,".claude-plugin/plugin.json");if(ae.existsSync(E)){let C=b(E);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"?I(b(me.resolve(m,$))):Array.isArray($)?$.forEach(w):I($)},"hookDocuments");w(x.hooks)}let v=me.join(m,"hooks/hooks.json");if(ae.existsSync(v)&&I(b(v)),ae.existsSync(me.join(m,".mcp.json")))throw Qt(s,"declare plugin MCP servers through the run's validated MCP configuration")}return g}o(Ib,"assertToolAssetsSafe");function xs(e,t,n,i="data-safety-proxy"){let r=fc(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:oD(r.roots,n.PATH??"").join(me.delimiter)}:n,u=pc(r,a?{...c}:{...c,...r.env}),l=Object.keys(c).filter(p=>(["PATH","HOME","SHELL"].includes(p)||yb.test(p)&&!jW.test(p))&&c[p]!==void 0).map(p=>`${p}=${c[p]}`);return{argv:[r.node,r.cli,"--settings",s,"--","/usr/bin/env",...l,...zW(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(xs,"protectedCommand");function zW(e,t,n){let i=e.noProxy??"",r=t==="data-safety-proxy"&&e.playwrightPreload&&ae.existsSync(e.playwrightPreload)?[`NODE_OPTIONS=${rD(e.playwrightPreload,n)}`]:[];return[`NO_PROXY=${i}`,`no_proxy=${i}`,...e.tmp?[...["TMPDIR","TMP","TEMP"].map(s=>`${s}=${e.tmp}`),...qW(e.tmp)]:[],...r]}o(zW,"sandboxCommandEnv");function qW(e){let t=me.join(e,"npm-cache"),n=me.join(e,"pnpm");return[`npm_config_cache=${t}`,`NPM_CONFIG_CACHE=${t}`,`COREPACK_HOME=${me.join(e,"corepack")}`,`PNPM_HOME=${n}`,`pnpm_config_store_dir=${me.join(n,"store")}`,`pnpm_config_cache_dir=${me.join(n,"cache")}`,`pnpm_config_state_dir=${me.join(n,"state")}`,`YARN_GLOBAL_FOLDER=${me.join(e,"yarn")}`]}o(qW,"packageManagerDirs");function Vi(e){return!!fc(e)}o(Vi,"hasNetworkBoundary");function xA(e,t=process.env){let n=fc(e);return n?pc(n,{...t,...n.env}):t}o(xA,"networkBoundaryEnv");var kr=["-c","core.fsmonitor=false"],JW=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"]),Nl=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 Ot(e=process.env,t,n="repo-command"){let i={};for(let[r,s]of Object.entries(e))n==="repo-command"&&Nl.has(r)||(i[r]=s);Object.assign(i,t??{});for(let r of Object.keys(i))(JW.has(r)||r.startsWith("INPUT_"))&&delete i[r];return i}o(Ot,"untrustedChildEnv");var dD=require("async_hooks");function lD(e){return(e?.components??[]).filter(t=>!!t.repository)}o(lD,"sharedSutComponents");function QA(e){let t=e.sharedEnvironment;return t?.environmentId&&t.environmentAddress?!0:lD(t).length>0}o(QA,"requiresSharedEnvironmentGuard");var mIe=new dD.AsyncLocalStorage;var pD=["--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"],HW="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function YW(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 Nl)delete t[n];return t}o(YW,"gitEnv");function WW(e,t){let n=bb(e,"git"),i=n.executable,r=xA(e,{...YW(t),PATH:n.env.PATH}),s=xs([i,...pD,"config","--null","--name-only","--get-regexp",HW],e,r),a=[];try{a=(0,Pl.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:[...pD,...c]}}o(WW,"gitPolicy");function $A(e,t,n=process.env){if(!Vi(t))return{argv:["git",...e],env:n};let i=WW(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 xs([i.binary,...i.config,...r],t,i.env)}o($A,"protectedGitCommand");function Mt(e,t){let n=$A(e,t.cwd,t.env??process.env);return(0,Pl.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(Mt,"execGitSync");function vb(e,t){let n=$A(e,t.cwd,t.env??process.env);return(0,Pl.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(vb,"spawnGitSync");var yW=require("node:zlib");lu();var Nh=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),dj=o((e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,"tests"),Ph={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=>`${Nh(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${Nh(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${Nh(e)} reused`,"reused"),verified:o(e=>`${Nh(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"),testSettingsDiffer:o(e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,"testSettingsDiffer"),stageSalvaged:o((e,t)=>t.length===1?`The ${e} step kept what it had produced although its ${t[0]} check still failed after a repair, so treat that output as unconfirmed by it.`:`The ${e} step kept what it had produced although ${t.length} of its checks (${t.join(", ")}) still failed after a repair, so treat that output as unconfirmed by them.`,"stageSalvaged"),downstreamNotChecked:o(e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,"downstreamNotChecked"),browserBuildNotDeclared:o((e,t,n)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${n}\` there.`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,"videoMissing"),testsCouldNotRunHere:o((e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,"testsCouldNotRunHere"),modelProviderDenied:o((e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`${t}, the model provider, interrupted the ${e} step. Testbot kept what that step had produced.`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`${e}, the model provider, interrupted planning. Testbot kept the plan it had and reports the test results it obtained.`+(t?" Please try again later.":""),"planInterruptedByProvider"),modelProviderUnavailable:o((e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`,"modelProviderUnavailable"),dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:o(e=>`The agent's browser sent sign-in or sign-up requests: ${e}. The data-safety guard lets these through and does not delete what they create, for example a new account.`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:o((e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.","dataSafetyIsolationEnforced"),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"),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)=>`${dj(e,"new")} and ${dj(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 pj={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"),testSettingsDiffer:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,"testSettingsDiffer"),stageSalvaged:o((e,t)=>t.length===1?`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t[0]} \u306E\u30C1\u30A7\u30C3\u30AF\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`:`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t.length} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\uFF08${t.join("\u3001")}\uFF09\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u308C\u3089\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`,"stageSalvaged"),downstreamNotChecked:o(e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,"downstreamNotChecked"),browserBuildNotDeclared:o((e,t,n)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${n}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F\u6700\u5F8C\u306E\u5B9F\u884C\u306E\u5F8C\u306B\u5909\u66F4\u3055\u308C\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306F\u4EE5\u524D\u306E\u7248\u306E\u3082\u306E\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`\u6B21\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306F\u52D5\u753B\u304C\u8A18\u9332\u3055\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306B\u306F\u78BA\u8A8D\u3067\u304D\u308B\u52D5\u753B\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"videoMissing"),testsCouldNotRunHere:o((e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,"testsCouldNotRunHere"),modelProviderDenied:o((e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${t} \u306B\u3088\u308A ${e} \u306E\u6BB5\u968E\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u305D\u306E\u6BB5\u968E\u3067\u4F5C\u6210\u6E08\u307F\u306E\u5185\u5BB9\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u306B\u3088\u308A\u8A08\u753B\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u4F5C\u6210\u6E08\u307F\u306E\u8A08\u753B\u3092\u6B8B\u3057\u3001\u5F97\u3089\u308C\u305F\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u5831\u544A\u3057\u307E\u3059\u3002`+(t?"\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002":""),"planInterruptedByProvider"),modelProviderUnavailable:o((e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"modelProviderUnavailable"),dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:o(e=>`\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u30D6\u30E9\u30A6\u30B6\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u524A\u9664\u3057\u307E\u305B\u3093\u3002`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:o((e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002","dataSafetyIsolationEnforced"),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"),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 tie={en:Ph,ja:pj},nie="en";function Ys(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(Ys,"labelOf");function ue(){return tie[nie]}o(ue,"t");var rie=4;var Aj="\xABredacted\xBB";function gj(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=rie&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(gj,"redactionsFrom");function iie(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(iie,"redactGitCredentials");var sie=/\.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 oie(e){return[...e.matchAll(sie)].map(t=>[t.index,t.index+t[0].length])}o(oie,"ownNames");function aie(e,t){let n=oie(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(aie,"outsideOwnNames");function gr(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=aie(n,i);for(let s=r.length-1;s>=0;s-=1)n=n.slice(0,r[s])+Aj+n.slice(r[s]+i.length)}return n}o(gr,"redactSecrets");function Ws(e,t){return gr(iie(e),t)}o(Ws,"redactCredentials");function cie(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(cie,"mapStrings");function ua(e,t){return t.length===0?e:cie(e,n=>gr(n,t))}o(ua,"redactDeep");var fke=new TextDecoder("utf-8",{fatal:!0});var mj=600,Fh=300;function hj(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(hj,"streamText");function uie(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[hj(t?.stderr),hj(t?.stdout)].filter(Boolean);return i.length?[n.split(`
|
|
137
137
|
`)[0],...i].join(`
|
|
138
138
|
`):n}o(uie,"thrownText");function yj(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(yj,"headAndTail");function Ej(e,t){return yj(e.trim().split(`
|
|
139
139
|
`),`
|
|
@@ -265,7 +265,7 @@ else require("node:test").test(spec.name, () => { throw new Error("required shar
|
|
|
265
265
|
`,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,wye(e,i)&&t.push({start:i,end:a})}else(r==='"'||r==="'"||r==="`")&&(a=vye(e,i,r));i=a}return t}o(Cye,"commentRanges");var Sye=/\b(?:test|it|describe|context|suite|scenario|specify|Run|DisplayName)(?:\.\w+)*(?:\.each\s*(?:\((?:[^()]|\([^()]*\))*\)|`[^`]*`))?\s*\(\s*("(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|`(?:[^`\\]|\\.)*`)/g;function kye(e,t){return[...e.matchAll(Sye)].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(kye,"titleRanges");function sc(e,t){if(t.length===0)return{content:e,cleaned:!1};let n=Cye(e),i=[];for(let c of n){let u=e.slice(c.start,c.end),l=vl(u,t);l!==u&&i.push({...c,text:l})}let r=kye(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=vl(l,t);if(p===l)continue;let f=p;for(let g=2;s.has(f);g++)f=`${p} (${g})`;s.add(f),i.push({...c,text:`${u}${f}${u}`})}let a=e;for(let c of i.sort((u,l)=>l.start-u.start))a=`${a.slice(0,c.start)}${c.text}${a.slice(c.end)}`;return{content:a,cleaned:a!==e}}o(sc,"withoutRequirementTextInTestFile");function Rye(e){return!!e.guardedDelivery||!!e.context?.some(t=>t.safety?.route==="persistence")}o(Rye,"keepsSharedData");function sA(e,t){let n=e.inputs.sharedEnvironment?.environmentAddress;return!!n&&(t.result?.cases??[]).some(i=>i.runtimeTargets?.some(r=>ro(n,r)))}o(sA,"usesSharedRuntime");function WE(e,t,n=ic().version){if(!vr(e.inputs))return[];let i=e.inputs.sharedEnvironment,r=i?.environmentAddress,s=Re(e,CC),a=Gj.safeParse(s),c=a.success&&a.data.environmentId===i?.environmentId&&a.data.environmentAddress===r?a.data:void 0,u=Vj.safeParse(s),l=u.success?dp(u.data.refusal):a.success?dp("changed"):dp("unavailable"),p=dY(e),f=new Map(zE(e,t).map(E=>[E.file,E.verdict])),g=aT(sT(e)),h=Re(e,"recommend.json"),m=new Map((h?.generate??[]).map(({id:E,target:v})=>[E,v])),b=ji(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),I=new Map;for(let E of t.tests){if(E.change==="deleted")continue;let v=b(E.file);if(!ws(v)||Ka(v.rel))continue;let C=oo(e.inputs,v.repository);if("error"in C)continue;let x=C.source,w=nn.resolve(x.path,v.rel),$=pY(E,p)??xye(g,v),B=Rye(E),Z=sA(e,E),oe;if(!$&&!Z&&!B){if(!w.endsWith(".test.cjs"))continue;try{if(!iA(x.path,w))continue;oe=Qo(Tt.readFileSync(w,"utf8"))}catch{continue}if(!oe||"restriction"in oe)continue}let J=(E.covers??[]).flatMap(nt=>{let bt=m.get(nt)?.match(/^(GET|HEAD|OPTIONS|POST|PUT|PATCH|DELETE)\s+(\S+)/i);return!bt||!r?[]:bt[2].startsWith("/")||ro(r,bt[2])?[{method:bt[1].toUpperCase(),route:bt[2]}]:[]}),he=Nye(e,x.path,v.rel);if(!$&&E.change!=="added"&&(he===!1||he===void 0&&!e.inputs.deliver))continue;let Te=o(nt=>`${E.file}: shared-environment delivery is blocked: ${nt}`,"problem"),_e={repository:x.slug,file:v.rel,sourceAsset:`${v.rel}.source`},Se;try{if(!iA(x.path,w))throw new Error("invalid path");Se=Tt.readFileSync(w)}catch{I.set(w,{record:_e,source:x,original:Buffer.alloc(0),problems:[Te("test entry must be a regular file without symlinks")]});continue}if(E.change!=="added"&&$o(e,x.path,v.rel)){$&&(_e.reason=$,I.set(w,{record:_e,source:x,original:Se,problems:[]}));continue}if(he===!1||E.change!=="added"&&he!==!0){I.set(w,{record:_e,source:x,original:Se,problems:[Te(he===!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??=Qo(Se.toString("utf8")),!$&&oe&&"restriction"in oe)continue;let K,V=GE.safeParse(E.guardedDelivery),Ve=c&&i?{environmentId:c.environmentId,environmentAddress:c.environmentAddress,persistenceRevision:c.revision,offLimits:i.offLimits??[],route:{kind:"persistence"}}:void 0,Xe=`environment restriction: persistence permission was not confirmed at generation: ${l}`;if($)K=$;else if(B&&!Ve)K=Xe;else if(!V.success||!Ve)K="no guarded HTTP representation preserves the test's assertions";else if(!E.covers?.length||(E.functions?.length??1)!==1)K="guarded HTTP delivery requires one test function";else if(!/\.test\.cjs$/.test(v.rel)||!Dye(E.ci))K="the test has no compatible Node CI entry";else if(!E.ci?.collected&&f.get(E.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(!_ye(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:nt}=V.data,bt=Ve.offLimits.length?Q$(e.inputs.skyrampMcp,Ve.offLimits):void 0,Zt=new Map,It=nt.flatMap(Ne=>{if(Ne.op==="create"){let Le=Qye(Ve.environmentAddress,Ne.collection);return Le&&Zt.set(Ne.as,Le),[{method:"POST",url:Le,child:!1}]}if(Ne.op!=="read"&&Ne.op!=="update")return[];let X=Zt.get(Ne.resource);return X&&Zt.set(Ne.as,X),[{method:Ne.op==="read"?"GET":Ne.method??"PATCH",url:X,child:!0}]});It.some(({url:Ne})=>!Ne)?K="the guarded HTTP steps name an unknown resource or a collection outside the Test Environment":bt&&i&&It.some(({url:Ne,child:X})=>!X&&r2(Ne.href,i,bt))?K="the guarded HTTP steps name an off-limits collection":J.length&&!J.some(({method:Ne,route:X})=>It.some(Le=>Le.url&&Le.method===Ne&&$ye(Ve.environmentAddress,Le.url,Le.child,X)))&&(K="the guarded HTTP steps do not represent the planned HTTP operation")}let St;if(K)_e.reason=K;else if(V.success&&Ve){let{bearerTokenEnv:nt,...bt}=V.data;St={...bt,definition:{...Ve,...nt?{bearerTokenEnv:nt}:{}}},_e.entry=v.rel}let Et=nn.resolve(x.path,_e.sourceAsset),Vt=IT(Et)&&!HE(x.path,Et,Se)?[Te("the inert source asset path already contains different bytes")]:[];I.set(w,{record:_e,source:x,original:Se,spec:St,problems:Vt})}return[...I.values()]}o(WE,"planGuardedDelivery");function xye(e,t){return e.find(n=>oT(n,{file:t.rel,repository:t.repository}))?.environmentRestriction}o(xye,"restrictionRecordedAtRun");function Qye(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)&&ro(e,n.href)?n:void 0}catch{return}}o(Qye,"guardedCollection");function $ye(e,t,n,i){try{let r=new URL(i,t.origin),s=i.startsWith("/")&&!i.startsWith("//")&&!ro(e,r.href)?new URL(i.slice(1),`${e.replace(/\/$/,"")}/`):r;if(!ro(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($ye,"representsRoute");function Tye(e){return!!e&&/^(?:node|node:test|node\s+(?:.*\s)?--test(?:\s.*)?)$/i.test(e.trim())}o(Tye,"nodeTestRunner");function Dye(e){return e?.collected===!1||!!e?.collected&&Tye(e.runner)}o(Dye,"nodeTestEntry");function iA(e,t){let n=Tt.realpathSync(e);return Tt.lstatSync(t).isFile()&&Tt.realpathSync(t)===nn.join(n,nn.relative(e,t))}o(iA,"regularFileIn");function HE(e,t,n){try{return iA(e,t)&&Tt.readFileSync(t).equals(n)}catch{return!1}}o(HE,"sameRegularBytes");function IT(e){try{return Tt.lstatSync(e),!0}catch(t){if(t.code==="ENOENT")return!1;throw t}}o(IT,"pathExists");function _ye(e,t,n){if(n==="unknown")return!1;for(let i=nn.dirname(t);;i=nn.dirname(i)){let r=nn.join(i,"package.json");if(IT(r))try{if(!iA(e,r))return!1;let s=JSON.parse(Tt.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(_ye,"hasGuardRuntime");function oA(e){let t=Re(e,"write.json");return t?WE(e,t):[]}o(oA,"guardedDeliveryPlan");function yY(e,t=oA(e),n=[],i=[]){return t.flatMap(({record:r,source:s,original:a,spec:c,problems:u})=>{if(u.length)return u;let l=nn.join(s.path,r.sourceAsset),p=nn.join(s.path,r.file);try{if(!iA(s.path,p)||!Tt.readFileSync(p).equals(a))return[`${r.file}: native source changed before guarded delivery`];let f=sc(a.toString("utf-8"),n).content;if(Ws(f,e.secretValues??[])!==f)return[`${r.file}: the retained source contains a credential`];let g=Il(s.path,r.sourceAsset,Buffer.from(f));if(IT(l)){if(!HE(s.path,l,a)&&!HE(s.path,l,g))return[`${r.file}: the inert source asset path already contains different bytes`];HE(s.path,l,g)||(i.push(()=>Tt.writeFileSync(l,a)),Tt.writeFileSync(l,g))}else Tt.writeFileSync(l,g,{flag:"wx"}),i.push(()=>Tt.rmSync(l,{force:!0}));if(r.entry&&c){let h=Wf({...c,name:vl(c.name,n)}),m=Il(s.path,r.entry,Buffer.from(h));if(!Qo(m.toString("utf-8")))return[`${r.file}: the repository's file conventions changed the guarded entry`];if(Ws(m.toString("utf-8"),e.secretValues??[])!==m.toString("utf-8"))return[`${r.file}: guarded delivery steps include a credential`];i.push(()=>Tt.writeFileSync(p,a)),Tt.writeFileSync(p,m)}return[]}catch{return[`${r.file}: could not assemble its guarded delivery files`]}})}o(yY,"writeGuardedDeliveryFiles");function Nye(e,t,n){let i=e.executionSafetySources?.find(r=>nn.resolve(r.path)===nn.resolve(t));if(i)try{return(0,YE.execFileSync)("git",["--literal-pathspecs","ls-tree",i.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]})===""}catch{return}}o(Nye,"newAtSourcePin");function $o(e,t,n){let i=e.executionSafetySources?.find(r=>nn.resolve(r.path)===nn.resolve(t));if(!i||!/^[a-f0-9]{40,64}$/.test(i.head))return!1;try{let r=nn.join(t,n),s=Tt.lstatSync(r);if(!s.isFile()||Tt.realpathSync(r)!==r)return!1;let a=(0,YE.execFileSync)("git",["--literal-pathspecs","ls-tree",i.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]});return!/^100(?:644|755) blob /.test(a)||(s.mode&73)!==0!==a.startsWith("100755")?!1:Tt.readFileSync(r).equals((0,YE.execFileSync)("git",["show",`${i.head}:${n}`],{cwd:t,stdio:["ignore","pipe","ignore"]}))}catch{return!1}}o($o,"unchangedSource");function Pye(e){try{return ZE.lstatSync(e),!0}catch{return!1}}o(Pye,"lexists");function KE(e,t=oA(e)){let n=new Set(t.filter(({record:I})=>!I.entry).map(({source:I,record:E})=>gn.join(I.path,E.file))),i=Re(e,"adapt.json"),r=Re(e,"finalize.json"),s=Re(e,nA),a=new Map,c=o(I=>{let E=oo(e.inputs,I);if("error"in E)return;let v=a.get(E.source.path)??{source:E.source,paths:new Set};return a.set(E.source.path,v),{repo:v.source.path,paths:v.paths}},"pathsOf"),u=o((I,E)=>gn.relative(I,gn.resolve(I,E.trim())).replace(/\/+$/,""),"norm"),l=o((I,E)=>{let v=E?.trim()&&c(I);if(!v)return;let C=u(v.repo,E);v.paths.add(C);for(let x of["__init__.py","conftest.py"]){let w=gn.join(gn.dirname(C),x);ZE.existsSync(gn.join(v.repo,w))&&(!n.has(gn.join(v.repo,C))||!$o(e,v.repo,w))&&v.paths.add(w)}},"addTest"),p=o((I,E)=>{if(typeof E!="string"||!E.trim())return;let v=c(I);if(!v)return;let C=u(v.repo,E);if(Gf(gn.join(v.repo,C)))return v.paths.add(C),{...v,rel:C}},"addEdited"),f=mT(e),g=(i?.items??[]).filter(I=>I.action==="place"&&f.has(I.from??I.file??"")),h=o((I,E)=>g.some(v=>v.repository===I&&v.file&&gn.normalize(v.file)===E),"heldIn"),m=(i?.items??[]).filter(I=>!g.includes(I));for(let I of[...m,...s?.tests??[],...s?.maintained??[]])l(I.repository,I.file);for(let I of r?.dependencies?.added??[]){let E=p(I.repository,I.manifest);if(E)for(let v of V0(E.repo,NE(E.repo,E.rel)))E.paths.add(v)}for(let I of r?.lint??[])for(let E of I.fixed??[])p(I.repository,E);for(let I of r?.support??[])p(I.repository,I.file);let b=Re(e,PE)?.packages??[];for(let I of new Set(b.map(E=>E.repository))){let E=c(I),v=b.filter(C=>C.repository===I).map(C=>C.dir);if(E)for(let{path:C}of LE(E.repo)){let x=u(E.repo,C),w=gn.join(E.repo,x);FE(x,v)&&!z0(x)&&!h(I,x)&&(!Pye(w)||Gf(w))&&E.paths.add(x)}}for(let{record:I,source:E,problems:v}of t){let C=a.get(E.path)?.paths;C?.has(I.file)&&(C.delete(I.file),!v.length&&(I.entry&&C.add(I.entry),C.add(I.sourceAsset)))}return new Map([...a.values()].map(({source:I,paths:E})=>[I,[...E].filter(v=>v&&v!==".."&&!v.startsWith(`..${gn.sep}`)&&!Ka(v))]))}o(KE,"deliverAllowlist");lu();var u2e=5*6e4,l2e=12*6e4,d2e=2*6e4;var y2e=["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 nr=re(require("fs")),Cs=re(require("path"));var To=re(require("fs")),XE=re(require("path"));var Oye="change-inputs",Mye=o((e,t)=>`${t}-${e.replace(/[^\w.-]+/g,n=>n==="/"?"__":"-")}.md`,"fileName");function Lye(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:Mye(t.label,n)})).filter(t=>t.body.length>Z1)}o(Lye,"longDescriptions");function EY(e,t,n){let i=XE.join(t,Oye);To.rmSync(i,{recursive:!0,force:!0}),To.mkdirSync(i,{recursive:!0}),To.writeFileSync(XE.join(i,$a),n,{mode:292});for(let r of Lye(e))To.writeFileSync(XE.join(i,r.file),`${r.body}
|
|
267
267
|
`,{mode:292})}o(EY,"writeChangeInputs");var jye=[/^\.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 bY(e){return jye.some(t=>t.test(e))}o(bY,"isNonApplicationFile");function Gye(e){let t=[],n=e.inputs.repositoryPath;return!n||!nr.existsSync(n)?t.push(`repository path does not exist: ${n}`):B0(n)?Ff(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(Gye,"validatePreflightInput");function Vye(e){return(e.inputs.relatedRepos??[]).map(t=>{let n=nr.existsSync(t.path)?TE(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(Vye,"collectRelatedChanges");function zye(e){nr.rmSync(Cs.join(e.runDir,GC),{recursive:!0,force:!0});for(let t of e.inputs.relatedRepos??[]){let n=nr.existsSync(t.path)?R0(t.path,t.base):void 0;if(!n)continue;let i=Cs.join(e.runDir,VC(t.slug));nr.mkdirSync(Cs.dirname(i),{recursive:!0}),nr.writeFileSync(i,n.diffContent)}}o(zye,"writeRelatedDiffs");function qye(e){let{repositoryPath:t,baseBranch:n}=e.inputs;nr.rmSync(Cs.join(t,nT),{recursive:!0,force:!0});let i=TE(t,n);if(!i)throw new Error(`could not compute git facts for ${t}`);let r=R0(t,n);if(!r)throw new Error(`could not compute the PR diff for ${t}`);let s=Vye(e),a=[i.changedFiles,...s.map(f=>f.changedFiles)].flat(),c=a.map(f=>f.path).filter(bY),u=!Bu(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};nr.writeFileSync(Cs.join(e.runDir,$a),r.diffContent),EY(e.inputs,e.runDir,r.diffContent),zye(e);let p=Cs.join(e.runDir,jC);return nr.mkdirSync(Cs.dirname(p),{recursive:!0}),nr.writeFileSync(p,JSON.stringify(l,null,2)+`
|
|
268
|
-
`),e.prepared={preflight:l},{preflight:jC,diff:$a}}o(qye,"executePreflight");var Qqe={name:"preflight",timeoutMinutes:1,requires:[],validateInput:Gye,execute:qye};var oc=re(require("path"));var Uqe={python:"pytest",typescript:"playwright",javascript:"playwright"},Oqe={pytest:"pytest",playwright:"playwright"};var Zye=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 IY(e){let t=oc.basename(e);return Zye.has(t)||/^requirements[^/\\]*\.(txt|in)$/.test(t)}o(IY,"isDependencyFile");var aA=re(require("path"));function Kye(e){return On(pT,e).errors}o(Kye,"validateFinalizeOutput");function Xye(e,t=[]){let{value:n,error:i}=Ht(e,t);if(i)return{errors:[i]};let r=Kye(n);return r.length>0?{errors:r}:{finalize:n,errors:[]}}o(Xye,"parseFinalizeText");var eEe="finalize-scratch";function tEe(e,t){let n=Xye(e.stdout,t?.secretValues);if(!n.finalize||!t?.outputsDir)return n;let i=o((r,s)=>r.trim()&&gb(r.trim(),aA.join(t.outputsDir,eEe,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(tEe,"parseFinalizeFromSession");var xHe=Hn("finalize-schema",(e,t)=>tEe(t,e));var wY=re(require("path"));var aYe=new Set(["targeted_unit","existing_evidence_sufficient"]);var aEe="triage.json";var SWe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),kWe={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 cEe(e){let{value:t,error:n}=Ht(e);if(n)return{errors:[n]};let{value:i,errors:r}=On(Vf,t);return r.length?{errors:r}:{triage:i,errors:[]}}o(cEe,"parseTriageText");function uEe(e){return cEe(e.stdout)}o(uEe,"parseTriageFromSession");var BWe=Hn("triage-schema",(e,t)=>uEe(t));function lEe(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(lEe,"triageDecider");function wT(e){if(lEe(e)?.status==="passed")return us(wY.join(e.outputsDir,aEe))}o(wT,"readTriage");function CT(e){return SH(Z0(e.inputs,Re(e,`${zf}.json`),wT(e)?.sutRequired))}o(CT,"revisionBlockReason");var RWe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);function ST(e){return e.functions?.length?e.functions:[(e.testType==="unit"?e.testId.split("::").slice(1).join("::").replace(/\[.*\]$/,""):"")||e.testId]}o(ST,"rowFunctions");function wl(e){return new Set(e.flatMap(t=>ST(t).map(n=>`${t.repository??""}\0${t.fileName}\0${n}`))).size}o(wl,"testCount");function dEe(e){return On(dT,e).errors}o(dEe,"validateAnalysisOutput");function CY(e,t=[]){let{value:n,error:i}=Ht(e,t);if(i)return{errors:[i]};let r=dEe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}o(CY,"parseAnalysisText");function pEe(e,t=[]){return CY(e.stdout,t)}o(pEe,"parseAnalysisFromSession");var YWe=Hn("analysis-schema",(e,t)=>pEe(t,e.secretValues));var LZe=Ph.rows.notRun(!0);var cA="kept, not ";var uA="(declined the planned ";function kT(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(kT,"assertionParts");var BT=new Set(["update","regenerate","delete"]);var jZe={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var gt=re(require("node:fs")),Me=re(require("node:path")),tb=require("node:crypto"),RT=require("node:child_process");function gEe(e,t,n=ic().version){if(!vr(e.inputs))return[];let i=ji(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=WE(e,t,n),s=new Map(r.map(a=>[Me.resolve(a.source.path,a.record.file),a.problems]));return t.tests.flatMap(a=>{let c=i(a.file),u=s.get(Me.resolve(c.root,c.rel));if(u)return u;if(a.change!=="added")return[];if(!sA(e,a))return[];let p=o(h=>[`${a.file}: shared-environment delivery is blocked: ${h}`],"problem");if(!ws(c))return p("test file is outside its checkout");let f;try{let h=Me.join(c.root,c.rel);if(!gt.lstatSync(h).isFile()||gt.realpathSync(h)!==h)return p("test entry must be a regular file without symlinks");f=Qo(gt.readFileSync(h,"utf-8"))}catch{return p("test file is unavailable")}if(!f)return p("use the exact supported delivered harness; preserve unsupported assertions in an inactive source asset, never unrestricted executable code");if("restriction"in f){if(!f.sourceAsset.path.endsWith(".source"))return p("restricted source asset must use an inactive .source extension");let h=Me.resolve(Me.dirname(Me.join(c.root,c.rel)),f.sourceAsset.path),m=Me.relative(c.root,h);if(!m||m.startsWith("..")||Me.isAbsolute(m))return p("restricted source asset must remain inside its checkout");try{if(!gt.lstatSync(h).isFile()||gt.realpathSync(h)!==h||(0,tb.createHash)("sha256").update(gt.readFileSync(h)).digest("hex")!==f.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(b=>{let I=i(b);return Me.join(I.root,I.rel)===h}))return p("restricted source asset must be delivered in supportFiles")}else{let h=e.inputs.sharedEnvironment;if(f.definition.environmentId!==h?.environmentId||f.definition.environmentAddress!==h?.environmentAddress)return p("harness identity/address differs from the selected Test Environment");if((h.offLimits??[]).some(m=>!f.definition.offLimits.includes(m)))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 g=Me.dirname(Me.join(c.root,c.rel));for(;g.startsWith(c.root);){let h=Me.join(g,"package.json");if(gt.existsSync(h))try{let m=JSON.parse(gt.readFileSync(h,"utf-8"));return(m.devDependencies?.["@skyramp/testbot-core"]??m.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(g===c.root)break;g=Me.dirname(g)}return p("the delivered test has no package manifest declaring its guarded runtime")})}o(gEe,"restrictedDeliveryProblems");function xT(e){if(!vr(e.inputs))return[];let t=Re(e,"write.json");if(!t)return["shared-environment delivery requires its generated-test record"];let n=ji(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),i=WE(e,t),r=new Map(i.map(f=>[Me.resolve(f.source.path,f.record.file),f])),s=t.tests.filter(f=>{let g=n(f.file);return!r.has(Me.resolve(g.root,g.rel))&&f.change!=="updated"&&sA(e,f)});if(!s.length&&!i.length)return t.tests.flatMap(f=>{if(f.change!=="deleted")return[];let g=n(f.file);return ws(g)&>.existsSync(Me.join(g.root,g.rel))?[`${f.file}: a deleted test must actually be absent`]:[]});let a=s.filter(f=>{let g=n(f.file);return f.change!=="deleted"&&!$o(e,g.root,g.rel)}).map(f=>({...f,change:"added"})),c=[...i.flatMap(f=>f.problems),...gEe(e,{...t,tests:a})],u=KE(e,i),l=new Set([...u].flatMap(([f,g])=>g.map(h=>Me.resolve(f.path,h)))),p=new Set;for(let f of t.tests){let g=n(f.file),h=Me.resolve(g.root,g.rel),m=r.get(h);if(m){p.add(Me.resolve(g.root,m.record.sourceAsset)),m.record.entry&&p.add(h);continue}if(f.change==="deleted"){mEe(e,g.root,g.rel)?p.add(h):c.push(`${f.file}: a deleted shared-environment test must actually be absent and be a tracked regular file in the host-pinned source`);continue}if(f.change==="updated"||!sA(e,f)){p.add(h);continue}if($o(e,g.root,g.rel)){p.add(h);continue}try{let b=Qo(gt.readFileSync(h,"utf-8"));if(!b)continue;if(p.add(h),"restriction"in b){let I=Me.resolve(Me.dirname(h),b.sourceAsset.path);p.add(I),!l.has(I)&&!$o(e,g.root,Me.relative(g.root,I))&&c.push(`${f.file}: its restricted source asset is missing from the actual delivery commit`)}}catch{}}for(let[f,g]of u)for(let h of g){let m=Me.resolve(f.path,h);p.has(m)||!i.length&&!e.inputs.deliver&&ic().version==="unknown"||hEe(e,f.path,h)||c.push(`${h}: shared-environment delivery refuses an unverified executable/support/manifest path`)}return c}o(xT,"sharedDeliveryAllowlistProblems");function Do(e){return Array.isArray(e)?`[${e.map(Do).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([t],[n])=>t.localeCompare(n)).map(([t,n])=>`${JSON.stringify(t)}:${Do(n)}`).join(",")}}`:JSON.stringify(e)??"undefined"}o(Do,"stable");function hEe(e,t,n){let i=Me.basename(n);if(i!=="package.json"&&i!=="package-lock.json")return!1;let r=ic().version;if(r==="unknown")return!1;let s,a;try{let c=Me.resolve(t,n);if(!gt.lstatSync(c).isFile()||gt.realpathSync(c)!==c)return!1;s=JSON.parse(gt.readFileSync(c,"utf-8"));let u=e.executionSafetySources?.find(g=>Me.resolve(g.path)===Me.resolve(t));if(u)try{a=JSON.parse((0,RT.execFileSync)("git",["show",`${u.head}:${n}`],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}))}catch{}else if(gt.existsSync(Me.join(t,".git")))return!1;let l=o(g=>{let h=structuredClone(g);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?Do(l(s))===Do(l(a)):Object.keys(s).every(g=>["name","version","private","type","scripts","dependencies","devDependencies"].includes(g))&&(!s.scripts||Do(s.scripts)===Do({test:"node --test"}))&&Object.keys(s.dependencies??{}).every(g=>g==="@skyramp/testbot-core")&&Object.keys(s.devDependencies??{}).every(g=>g==="@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(g=>{let h=structuredClone(g);return h.packages&&(delete h.packages["node_modules/@skyramp/testbot-core"],h.packages[""]&&(h.packages[""]=l(h.packages[""]))),h},"stripped");return a?Do(f(s))===Do(f(a)):Object.keys(s.packages??{}).every(g=>g===""||g==="node_modules/@skyramp/testbot-core")&&!s.packages?.[""]?.scripts}catch{return!1}}o(hEe,"safeRuntimeManifest");function mEe(e,t,n){try{return gt.lstatSync(Me.join(t,n)),!1}catch(r){if(r.code!=="ENOENT")return!1}let i=e.executionSafetySources?.find(r=>Me.resolve(r.path)===Me.resolve(t));if(!i||!/^[a-f0-9]{40,64}$/.test(i.head))return!1;try{return/^100(?:644|755) blob /.test((0,RT.execFileSync)("git",["--literal-pathspecs","ls-tree",i.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}))}catch{return!1}}o(mEe,"trackedDeletion");function SY(e,t,n=[]){if(!vr(e.inputs))return[];let i=[],r=ji(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let s of t.tests){if(s.change==="deleted")continue;let a=r(s.file),c=Me.join(a.root,a.rel);if(!$o(e,a.root,a.rel))try{if(!ws(a)||!gt.lstatSync(c).isFile()||gt.realpathSync(c)!==c)continue;let u=Qo(gt.readFileSync(c,"utf-8"));if(!u)continue;if("restriction"in u){let p=Me.resolve(Me.dirname(c),u.sourceAsset.path),f=Me.relative(a.root,p);if(!f||f.startsWith("..")||Me.isAbsolute(f)||!gt.lstatSync(p).isFile()||gt.realpathSync(p)!==p){i.push(`${s.file}: restricted source asset is not a regular file in its checkout`);continue}let g=gt.readFileSync(p);if((0,tb.createHash)("sha256").update(g).digest("hex")!==u.sourceAsset.sha256){i.push(`${s.file}: restricted source asset changed before trusted formatting; not refreshing its hash`);continue}let h=sc(g.toString("utf-8"),n).content,m=Il(a.root,f,Buffer.from(h));gt.writeFileSync(p,m),u.sourceAsset.sha256=(0,tb.createHash)("sha256").update(m).digest("hex")}let l=sc(Wf(u),n).content;gt.writeFileSync(c,Il(a.root,a.rel,Buffer.from(l)))}catch{i.push(`${s.file}: could not assemble its guarded entry after trusted formatting`)}}return i}o(SY,"prepareSharedDeliveryFiles");var rn=re(require("fs")),di=re(require("path")),uW=re(require("crypto")),lW=require("child_process");var QT=require("child_process"),Cl=re(require("fs")),kY=re(require("os")),nb=re(require("path"));var yEe={onPath:o(e=>(0,QT.spawnSync)("sh",["-c",`command -v ${e}`],{stdio:"ignore"}).status===0,"onPath"),run:o((e,t)=>(0,QT.spawnSync)(e[0],e.slice(1),{cwd:t,stdio:"ignore",timeout:6e4}).status??1,"run")},lA={cleanup:o(()=>{},"cleanup")},EEe=new Set(["pnpm","yarn"]);function BY(e,t=kY.tmpdir(),n=yEe){if(process.platform==="win32")return lA;try{if(Vi(e))return lA;let i=L0(e);if(!EEe.has(i)||n.onPath(i)||!n.onPath("corepack"))return lA;Cl.mkdirSync(t,{recursive:!0});let r=Cl.mkdtempSync(nb.join(t,"testbot-pm-")),s=o(()=>Cl.rmSync(r,{recursive:!0,force:!0}),"cleanup");return n.run(["corepack","enable","--install-directory",r,i],e)!==0?(s(),lA):{dir:r,cleanup:s}}catch{return lA}}o(BY,"packageManagerShims");function RY(e,t=process.env){return e.dir?{...t,PATH:[e.dir,t.PATH].filter(Boolean).join(nb.delimiter)}:t}o(RY,"withShims");var AA=require("crypto");var xY=d.string().trim().min(1),$T=d.object({schemaVersion:d.literal(1).optional(),businessCaseAnalysis:xY.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:xY,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 IEe(e){return On($T,e).errors}o(IEe,"validateProseOutput");function vEe(e,t=[]){let{value:n,error:i}=Ht(e.stdout,t);if(i)return{errors:[i]};let r=IEe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}o(vEe,"parseProseFromSession");var E6e=Hn("report-schema",(e,t)=>vEe(t,e.secretValues));var TT="<!-- skyramp-testbot -->",DT=BT,CEe=new Set(["lint","type","config"]),QY={critical:0,high:1,medium:2,low:3},UY=new Set(["Pass","Fail"]);var _T=o(e=>Ys(ue().statusLabels,e),"statusLabel"),ib=o(e=>Ys(ue().testTypeCellLabels,e),"testTypeLabel");function tt(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}o(tt,"escCell");function $Y(e){return e.inferred?" (inferred)":""}o($Y,"inferredMark");function TY(e,t){return!e||!UY.has(e)?"\u2014":t?`${_T(e)} (${tt(OY(t))})`:_T(e)}o(TY,"maintStatus");function OY(e){let t=o(i=>{let r=i.indexOf(": ");return r<0?i:Ys(ue().staged.maintenanceActions,i.slice(0,r))+i.slice(r)},"action");if(e.startsWith(cA))return ue().staged.keptNot+t(e.slice(cA.length));let n=e.indexOf(uA);return n<0?e:e.slice(0,n)+ue().staged.declinedPlanned+t(e.slice(n+uA.length))}o(OY,"declineNote");function DY(e){return e.category!==void 0&&CEe.has(e.category.toLowerCase())}o(DY,"isTooling");function _Y(e,t){return(QY[(e.severity??"").toLowerCase()]??4)-(QY[(t.severity??"").toLowerCase()]??4)}o(_Y,"bySeverity");var sb=o(e=>e?.length?` (${e.join(", ")})`:"","forPullRequests");function NY(e){return`- ${e.severity?`**[${Ys(ue().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}${sb(e.pullRequests)}`}o(NY,"issueLine");function SEe(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(SEe,"unitTestOf");var MY=o((e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,""),"samePath");function LY(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}o(LY,"videoLink");function NT(e,t){return LY(e,n=>MY(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}o(NT,"resultVideoLink");function PT(e,t){return LY(e,n=>MY(n.writtenAs??n.fileName,t))}o(PT,"journeyVideoLink");function kEe(e,t,n){return n?NT(e,{fileName:t,repository:n}):PT(e,t)}o(kEe,"requirementVideoLink");function BEe(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&&hH(c,u)),"parentOf"),s=new Map;for(let a of e.testResults){let c=SEe(a),u=c&&!c.kase?r(a.fileName,c.fn):void 0;if(c&&u&&(c={fn:u,kase:`"${c.fn}"`}),c?.kase&&i.set(a,c.kase),!c){t.push({testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:a.details??"",...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}});continue}let l=`${a.fileName??""}#${c.fn}`,p=s.get(l);p||(p={row:{testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:"",test:c.fn,...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}},cases:[]},s.set(l,p),t.push(p.row)),p.cases.push(a)}for(let{row:a,cases:c}of s.values()){let u=c.filter(g=>g.status==="Fail"),l=c.filter(g=>g.status==="Pass").length,p=c.filter(g=>g.status==="Skipped").length;a.cases=c.length,a.status=u.length?"Fail":p?"Skipped":"Pass";let f=u[0];a.details=c.length===1?c[0].details??"":ue().staged.casesPassed(l,c.length,p)+(f?`; ${i.get(f)??""} ${f.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}o(BEe,"resultRows");function REe(e){return kT(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${_t(t.expected)}`)}o(REe,"unitAssertions");function fA(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(fA,"nothingExecuted");function jY(e){let t=e.pullRequests??[];return t.length<2?[]:[ue().staged.validatedTogether(t.map(n=>`${_t(`${n.repository}#${n.number}`)}${n.title?` ${zr(n.title,120)}`:""}`).join("; "))]}o(jY,"pullRequestsLine");function GY(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(GY,"requesterLine");function VY(e,t={}){if(t.audience==="testbot-pr")return PEe(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=[TT];a&&p.push(ue().staged.testsSourcePullRequest(_t(a)),"");for(let w of jY(e))p.push(w,"");s&&p.push(GY(s),""),e.notTranslated&&p.push(Ys(ue().staged.notTranslated,e.notTranslated),"");let f=o(w=>{i?p.push("<details>",`<summary>${w}</summary>`,""):p.push(`### ${w}`)},"sectionStart"),g=o(()=>{i&&p.push("","</details>"),p.push("")},"sectionEnd");for(let w of e.businessCaseAnalysis.trim().split(/\r?\n/))p.push(`> ${w}`);if(p.push(""),fA(e)&&p.push(ue().staged.noLiveApp(wl(e.newTestsCreated)),""),c&&e.newTestsCreated.length){let w=new Map;for(let B of e.newTestsCreated){if(B.testType!=="unit")continue;let Z=ST(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 J=B.description?.trim()??"",he=oe.descriptions.get(Z)??[];he.includes(J)||he.push(J),oe.functions.add(Z),oe.descriptions.set(Z,he),w.set(B.fileName,oe)}let $=e.newTestsCreated.filter(B=>B.testType!=="unit");f(ue().testRecommendationsImplementedHeader(wl(e.newTestsCreated),$.length+wl(e.newTestsCreated.filter(B=>B.testType==="unit"))));for(let[B,{functions:Z,endpoints:oe,descriptions:J}]of w){let he=Z.size;p.push(ue().staged.unitTestsInFile(`\`${B}\``,he,oe.map(Se=>`\`${Se}\``).join(", ")),"");let Te=new Map;for(let[Se,K]of J){let V=K.join("\0"),Ve=Te.get(V)??{fns:[],descriptions:K};Ve.fns.push(Se),Te.set(V,Ve)}let _e=0;for(let{fns:Se,descriptions:K}of Te.values()){p.push(`${++_e}. ${Se.map(Ve=>`\`${Ve}\``).join(", ")}`);let V=[...new Set(K.flatMap(Ve=>REe(Ve)))];for(let Ve of V)p.push(` - ${Ve}`)}p.push("")}for(let B of $){let Z=B.testId?_t(l(B.testId)):ib(B.testType),oe=B.fileName?` (\`${B.fileName}\`)`:"",J=B.endpoint?`
|
|
268
|
+
`),e.prepared={preflight:l},{preflight:jC,diff:$a}}o(qye,"executePreflight");var Qqe={name:"preflight",timeoutMinutes:1,requires:[],validateInput:Gye,execute:qye};var oc=re(require("path"));var Uqe={python:"pytest",typescript:"playwright",javascript:"playwright"},Oqe={pytest:"pytest",playwright:"playwright"};var Zye=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 IY(e){let t=oc.basename(e);return Zye.has(t)||/^requirements[^/\\]*\.(txt|in)$/.test(t)}o(IY,"isDependencyFile");var aA=re(require("path"));function Kye(e){return On(pT,e).errors}o(Kye,"validateFinalizeOutput");function Xye(e,t=[]){let{value:n,error:i}=Ht(e,t);if(i)return{errors:[i]};let r=Kye(n);return r.length>0?{errors:r}:{finalize:n,errors:[]}}o(Xye,"parseFinalizeText");var eEe="finalize-scratch";function tEe(e,t){let n=Xye(e.stdout,t?.secretValues);if(!n.finalize||!t?.outputsDir)return n;let i=o((r,s)=>r.trim()&&gb(r.trim(),aA.join(t.outputsDir,eEe,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(tEe,"parseFinalizeFromSession");var xHe=Hn("finalize-schema",(e,t)=>tEe(t,e));var wY=re(require("path"));var aYe=new Set(["targeted_unit","existing_evidence_sufficient"]);var aEe="triage.json";var SWe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),kWe={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 cEe(e){let{value:t,error:n}=Ht(e);if(n)return{errors:[n]};let{value:i,errors:r}=On(Vf,t);return r.length?{errors:r}:{triage:i,errors:[]}}o(cEe,"parseTriageText");function uEe(e){return cEe(e.stdout)}o(uEe,"parseTriageFromSession");var BWe=Hn("triage-schema",(e,t)=>uEe(t));function lEe(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(lEe,"triageDecider");function wT(e){if(lEe(e)?.status==="passed")return us(wY.join(e.outputsDir,aEe))}o(wT,"readTriage");function CT(e){return SH(Z0(e.inputs,Re(e,`${zf}.json`),wT(e)?.sutRequired))}o(CT,"revisionBlockReason");var RWe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);function ST(e){return e.functions?.length?e.functions:[(e.testType==="unit"?e.testId.split("::").slice(1).join("::").replace(/\[.*\]$/,""):"")||e.testId]}o(ST,"rowFunctions");function wl(e){return new Set(e.flatMap(t=>ST(t).map(n=>`${t.repository??""}\0${t.fileName}\0${n}`))).size}o(wl,"testCount");function dEe(e){return On(dT,e).errors}o(dEe,"validateAnalysisOutput");function CY(e,t=[]){let{value:n,error:i}=Ht(e,t);if(i)return{errors:[i]};let r=dEe(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}o(CY,"parseAnalysisText");function pEe(e,t=[]){return CY(e.stdout,t)}o(pEe,"parseAnalysisFromSession");var YWe=Hn("analysis-schema",(e,t)=>pEe(t,e.secretValues));var GZe=Ph.rows.notRun(!0);var cA="kept, not ";var uA="(declined the planned ";function kT(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(kT,"assertionParts");var BT=new Set(["update","regenerate","delete"]);var VZe={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var gt=re(require("node:fs")),Me=re(require("node:path")),tb=require("node:crypto"),RT=require("node:child_process");function gEe(e,t,n=ic().version){if(!vr(e.inputs))return[];let i=ji(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),r=WE(e,t,n),s=new Map(r.map(a=>[Me.resolve(a.source.path,a.record.file),a.problems]));return t.tests.flatMap(a=>{let c=i(a.file),u=s.get(Me.resolve(c.root,c.rel));if(u)return u;if(a.change!=="added")return[];if(!sA(e,a))return[];let p=o(h=>[`${a.file}: shared-environment delivery is blocked: ${h}`],"problem");if(!ws(c))return p("test file is outside its checkout");let f;try{let h=Me.join(c.root,c.rel);if(!gt.lstatSync(h).isFile()||gt.realpathSync(h)!==h)return p("test entry must be a regular file without symlinks");f=Qo(gt.readFileSync(h,"utf-8"))}catch{return p("test file is unavailable")}if(!f)return p("use the exact supported delivered harness; preserve unsupported assertions in an inactive source asset, never unrestricted executable code");if("restriction"in f){if(!f.sourceAsset.path.endsWith(".source"))return p("restricted source asset must use an inactive .source extension");let h=Me.resolve(Me.dirname(Me.join(c.root,c.rel)),f.sourceAsset.path),m=Me.relative(c.root,h);if(!m||m.startsWith("..")||Me.isAbsolute(m))return p("restricted source asset must remain inside its checkout");try{if(!gt.lstatSync(h).isFile()||gt.realpathSync(h)!==h||(0,tb.createHash)("sha256").update(gt.readFileSync(h)).digest("hex")!==f.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(b=>{let I=i(b);return Me.join(I.root,I.rel)===h}))return p("restricted source asset must be delivered in supportFiles")}else{let h=e.inputs.sharedEnvironment;if(f.definition.environmentId!==h?.environmentId||f.definition.environmentAddress!==h?.environmentAddress)return p("harness identity/address differs from the selected Test Environment");if((h.offLimits??[]).some(m=>!f.definition.offLimits.includes(m)))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 g=Me.dirname(Me.join(c.root,c.rel));for(;g.startsWith(c.root);){let h=Me.join(g,"package.json");if(gt.existsSync(h))try{let m=JSON.parse(gt.readFileSync(h,"utf-8"));return(m.devDependencies?.["@skyramp/testbot-core"]??m.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(g===c.root)break;g=Me.dirname(g)}return p("the delivered test has no package manifest declaring its guarded runtime")})}o(gEe,"restrictedDeliveryProblems");function xT(e){if(!vr(e.inputs))return[];let t=Re(e,"write.json");if(!t)return["shared-environment delivery requires its generated-test record"];let n=ji(e.inputs.repositoryPath,e.inputs.relatedRepos??[]),i=WE(e,t),r=new Map(i.map(f=>[Me.resolve(f.source.path,f.record.file),f])),s=t.tests.filter(f=>{let g=n(f.file);return!r.has(Me.resolve(g.root,g.rel))&&f.change!=="updated"&&sA(e,f)});if(!s.length&&!i.length)return t.tests.flatMap(f=>{if(f.change!=="deleted")return[];let g=n(f.file);return ws(g)&>.existsSync(Me.join(g.root,g.rel))?[`${f.file}: a deleted test must actually be absent`]:[]});let a=s.filter(f=>{let g=n(f.file);return f.change!=="deleted"&&!$o(e,g.root,g.rel)}).map(f=>({...f,change:"added"})),c=[...i.flatMap(f=>f.problems),...gEe(e,{...t,tests:a})],u=KE(e,i),l=new Set([...u].flatMap(([f,g])=>g.map(h=>Me.resolve(f.path,h)))),p=new Set;for(let f of t.tests){let g=n(f.file),h=Me.resolve(g.root,g.rel),m=r.get(h);if(m){p.add(Me.resolve(g.root,m.record.sourceAsset)),m.record.entry&&p.add(h);continue}if(f.change==="deleted"){mEe(e,g.root,g.rel)?p.add(h):c.push(`${f.file}: a deleted shared-environment test must actually be absent and be a tracked regular file in the host-pinned source`);continue}if(f.change==="updated"||!sA(e,f)){p.add(h);continue}if($o(e,g.root,g.rel)){p.add(h);continue}try{let b=Qo(gt.readFileSync(h,"utf-8"));if(!b)continue;if(p.add(h),"restriction"in b){let I=Me.resolve(Me.dirname(h),b.sourceAsset.path);p.add(I),!l.has(I)&&!$o(e,g.root,Me.relative(g.root,I))&&c.push(`${f.file}: its restricted source asset is missing from the actual delivery commit`)}}catch{}}for(let[f,g]of u)for(let h of g){let m=Me.resolve(f.path,h);p.has(m)||!i.length&&!e.inputs.deliver&&ic().version==="unknown"||hEe(e,f.path,h)||c.push(`${h}: shared-environment delivery refuses an unverified executable/support/manifest path`)}return c}o(xT,"sharedDeliveryAllowlistProblems");function Do(e){return Array.isArray(e)?`[${e.map(Do).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([t],[n])=>t.localeCompare(n)).map(([t,n])=>`${JSON.stringify(t)}:${Do(n)}`).join(",")}}`:JSON.stringify(e)??"undefined"}o(Do,"stable");function hEe(e,t,n){let i=Me.basename(n);if(i!=="package.json"&&i!=="package-lock.json")return!1;let r=ic().version;if(r==="unknown")return!1;let s,a;try{let c=Me.resolve(t,n);if(!gt.lstatSync(c).isFile()||gt.realpathSync(c)!==c)return!1;s=JSON.parse(gt.readFileSync(c,"utf-8"));let u=e.executionSafetySources?.find(g=>Me.resolve(g.path)===Me.resolve(t));if(u)try{a=JSON.parse((0,RT.execFileSync)("git",["show",`${u.head}:${n}`],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}))}catch{}else if(gt.existsSync(Me.join(t,".git")))return!1;let l=o(g=>{let h=structuredClone(g);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?Do(l(s))===Do(l(a)):Object.keys(s).every(g=>["name","version","private","type","scripts","dependencies","devDependencies"].includes(g))&&(!s.scripts||Do(s.scripts)===Do({test:"node --test"}))&&Object.keys(s.dependencies??{}).every(g=>g==="@skyramp/testbot-core")&&Object.keys(s.devDependencies??{}).every(g=>g==="@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(g=>{let h=structuredClone(g);return h.packages&&(delete h.packages["node_modules/@skyramp/testbot-core"],h.packages[""]&&(h.packages[""]=l(h.packages[""]))),h},"stripped");return a?Do(f(s))===Do(f(a)):Object.keys(s.packages??{}).every(g=>g===""||g==="node_modules/@skyramp/testbot-core")&&!s.packages?.[""]?.scripts}catch{return!1}}o(hEe,"safeRuntimeManifest");function mEe(e,t,n){try{return gt.lstatSync(Me.join(t,n)),!1}catch(r){if(r.code!=="ENOENT")return!1}let i=e.executionSafetySources?.find(r=>Me.resolve(r.path)===Me.resolve(t));if(!i||!/^[a-f0-9]{40,64}$/.test(i.head))return!1;try{return/^100(?:644|755) blob /.test((0,RT.execFileSync)("git",["--literal-pathspecs","ls-tree",i.head,"--",n],{cwd:t,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}))}catch{return!1}}o(mEe,"trackedDeletion");function SY(e,t,n=[]){if(!vr(e.inputs))return[];let i=[],r=ji(e.inputs.repositoryPath,e.inputs.relatedRepos??[]);for(let s of t.tests){if(s.change==="deleted")continue;let a=r(s.file),c=Me.join(a.root,a.rel);if(!$o(e,a.root,a.rel))try{if(!ws(a)||!gt.lstatSync(c).isFile()||gt.realpathSync(c)!==c)continue;let u=Qo(gt.readFileSync(c,"utf-8"));if(!u)continue;if("restriction"in u){let p=Me.resolve(Me.dirname(c),u.sourceAsset.path),f=Me.relative(a.root,p);if(!f||f.startsWith("..")||Me.isAbsolute(f)||!gt.lstatSync(p).isFile()||gt.realpathSync(p)!==p){i.push(`${s.file}: restricted source asset is not a regular file in its checkout`);continue}let g=gt.readFileSync(p);if((0,tb.createHash)("sha256").update(g).digest("hex")!==u.sourceAsset.sha256){i.push(`${s.file}: restricted source asset changed before trusted formatting; not refreshing its hash`);continue}let h=sc(g.toString("utf-8"),n).content,m=Il(a.root,f,Buffer.from(h));gt.writeFileSync(p,m),u.sourceAsset.sha256=(0,tb.createHash)("sha256").update(m).digest("hex")}let l=sc(Wf(u),n).content;gt.writeFileSync(c,Il(a.root,a.rel,Buffer.from(l)))}catch{i.push(`${s.file}: could not assemble its guarded entry after trusted formatting`)}}return i}o(SY,"prepareSharedDeliveryFiles");var rn=re(require("fs")),di=re(require("path")),uW=re(require("crypto")),lW=require("child_process");var QT=require("child_process"),Cl=re(require("fs")),kY=re(require("os")),nb=re(require("path"));var yEe={onPath:o(e=>(0,QT.spawnSync)("sh",["-c",`command -v ${e}`],{stdio:"ignore"}).status===0,"onPath"),run:o((e,t)=>(0,QT.spawnSync)(e[0],e.slice(1),{cwd:t,stdio:"ignore",timeout:6e4}).status??1,"run")},lA={cleanup:o(()=>{},"cleanup")},EEe=new Set(["pnpm","yarn"]);function BY(e,t=kY.tmpdir(),n=yEe){if(process.platform==="win32")return lA;try{if(Vi(e))return lA;let i=L0(e);if(!EEe.has(i)||n.onPath(i)||!n.onPath("corepack"))return lA;Cl.mkdirSync(t,{recursive:!0});let r=Cl.mkdtempSync(nb.join(t,"testbot-pm-")),s=o(()=>Cl.rmSync(r,{recursive:!0,force:!0}),"cleanup");return n.run(["corepack","enable","--install-directory",r,i],e)!==0?(s(),lA):{dir:r,cleanup:s}}catch{return lA}}o(BY,"packageManagerShims");function RY(e,t=process.env){return e.dir?{...t,PATH:[e.dir,t.PATH].filter(Boolean).join(nb.delimiter)}:t}o(RY,"withShims");var AA=require("crypto");var xY=d.string().trim().min(1),$T=d.object({schemaVersion:d.literal(1).optional(),businessCaseAnalysis:xY.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:xY,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 IEe(e){return On($T,e).errors}o(IEe,"validateProseOutput");function vEe(e,t=[]){let{value:n,error:i}=Ht(e.stdout,t);if(i)return{errors:[i]};let r=IEe(n);return r.length>0?{errors:r}:{prose:n,errors:[]}}o(vEe,"parseProseFromSession");var I6e=Hn("report-schema",(e,t)=>vEe(t,e.secretValues));var TT="<!-- skyramp-testbot -->",DT=BT,CEe=new Set(["lint","type","config"]),QY={critical:0,high:1,medium:2,low:3},UY=new Set(["Pass","Fail"]);var _T=o(e=>Ys(ue().statusLabels,e),"statusLabel"),ib=o(e=>Ys(ue().testTypeCellLabels,e),"testTypeLabel");function tt(e){return(e??"").replace(/\|/g,"\\|").replace(/\r?\n/g,"<br>").trim()}o(tt,"escCell");function $Y(e){return e.inferred?" (inferred)":""}o($Y,"inferredMark");function TY(e,t){return!e||!UY.has(e)?"\u2014":t?`${_T(e)} (${tt(OY(t))})`:_T(e)}o(TY,"maintStatus");function OY(e){let t=o(i=>{let r=i.indexOf(": ");return r<0?i:Ys(ue().staged.maintenanceActions,i.slice(0,r))+i.slice(r)},"action");if(e.startsWith(cA))return ue().staged.keptNot+t(e.slice(cA.length));let n=e.indexOf(uA);return n<0?e:e.slice(0,n)+ue().staged.declinedPlanned+t(e.slice(n+uA.length))}o(OY,"declineNote");function DY(e){return e.category!==void 0&&CEe.has(e.category.toLowerCase())}o(DY,"isTooling");function _Y(e,t){return(QY[(e.severity??"").toLowerCase()]??4)-(QY[(t.severity??"").toLowerCase()]??4)}o(_Y,"bySeverity");var sb=o(e=>e?.length?` (${e.join(", ")})`:"","forPullRequests");function NY(e){return`- ${e.severity?`**[${Ys(ue().severityLabels,e.severity.toLowerCase()).toUpperCase()}]** `:""}${e.description.trim()}${sb(e.pullRequests)}`}o(NY,"issueLine");function SEe(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(SEe,"unitTestOf");var MY=o((e,t)=>e!==void 0&&t!==void 0&&e.replace(/^\.\//,"")===t.replace(/^\.\//,""),"samePath");function LY(e,t){return(e.testVideos??[]).find(n=>n.url&&t(n))?.url}o(LY,"videoLink");function NT(e,t){return LY(e,n=>MY(n.fileName,t.fileName)&&(!n.repository||!t.repository||n.repository.toLowerCase()===t.repository.toLowerCase()))}o(NT,"resultVideoLink");function PT(e,t){return LY(e,n=>MY(n.writtenAs??n.fileName,t))}o(PT,"journeyVideoLink");function kEe(e,t,n){return n?NT(e,{fileName:t,repository:n}):PT(e,t)}o(kEe,"requirementVideoLink");function BEe(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&&hH(c,u)),"parentOf"),s=new Map;for(let a of e.testResults){let c=SEe(a),u=c&&!c.kase?r(a.fileName,c.fn):void 0;if(c&&u&&(c={fn:u,kase:`"${c.fn}"`}),c?.kase&&i.set(a,c.kase),!c){t.push({testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:a.details??"",...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}});continue}let l=`${a.fileName??""}#${c.fn}`,p=s.get(l);p||(p={row:{testId:a.testId,testType:a.testType,endpoint:a.endpoint,status:a.status,details:"",test:c.fn,...a.fileName?{fileName:a.fileName}:{},...a.repository?{repository:a.repository}:{}},cases:[]},s.set(l,p),t.push(p.row)),p.cases.push(a)}for(let{row:a,cases:c}of s.values()){let u=c.filter(g=>g.status==="Fail"),l=c.filter(g=>g.status==="Pass").length,p=c.filter(g=>g.status==="Skipped").length;a.cases=c.length,a.status=u.length?"Fail":p?"Skipped":"Pass";let f=u[0];a.details=c.length===1?c[0].details??"":ue().staged.casesPassed(l,c.length,p)+(f?`; ${i.get(f)??""} ${f.details??""}`.replace(/; +/,"; ").trimEnd():"")}return t}o(BEe,"resultRows");function REe(e){return kT(e).map(t=>t.expected===void 0?t.expectation:`${t.expectation}: ${_t(t.expected)}`)}o(REe,"unitAssertions");function fA(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(fA,"nothingExecuted");function jY(e){let t=e.pullRequests??[];return t.length<2?[]:[ue().staged.validatedTogether(t.map(n=>`${_t(`${n.repository}#${n.number}`)}${n.title?` ${zr(n.title,120)}`:""}`).join("; "))]}o(jY,"pullRequestsLine");function GY(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(GY,"requesterLine");function VY(e,t={}){if(t.audience==="testbot-pr")return PEe(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=[TT];a&&p.push(ue().staged.testsSourcePullRequest(_t(a)),"");for(let w of jY(e))p.push(w,"");s&&p.push(GY(s),""),e.notTranslated&&p.push(Ys(ue().staged.notTranslated,e.notTranslated),"");let f=o(w=>{i?p.push("<details>",`<summary>${w}</summary>`,""):p.push(`### ${w}`)},"sectionStart"),g=o(()=>{i&&p.push("","</details>"),p.push("")},"sectionEnd");for(let w of e.businessCaseAnalysis.trim().split(/\r?\n/))p.push(`> ${w}`);if(p.push(""),fA(e)&&p.push(ue().staged.noLiveApp(wl(e.newTestsCreated)),""),c&&e.newTestsCreated.length){let w=new Map;for(let B of e.newTestsCreated){if(B.testType!=="unit")continue;let Z=ST(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 J=B.description?.trim()??"",he=oe.descriptions.get(Z)??[];he.includes(J)||he.push(J),oe.functions.add(Z),oe.descriptions.set(Z,he),w.set(B.fileName,oe)}let $=e.newTestsCreated.filter(B=>B.testType!=="unit");f(ue().testRecommendationsImplementedHeader(wl(e.newTestsCreated),$.length+wl(e.newTestsCreated.filter(B=>B.testType==="unit"))));for(let[B,{functions:Z,endpoints:oe,descriptions:J}]of w){let he=Z.size;p.push(ue().staged.unitTestsInFile(`\`${B}\``,he,oe.map(Se=>`\`${Se}\``).join(", ")),"");let Te=new Map;for(let[Se,K]of J){let V=K.join("\0"),Ve=Te.get(V)??{fns:[],descriptions:K};Ve.fns.push(Se),Te.set(V,Ve)}let _e=0;for(let{fns:Se,descriptions:K}of Te.values()){p.push(`${++_e}. ${Se.map(Ve=>`\`${Ve}\``).join(", ")}`);let V=[...new Set(K.flatMap(Ve=>REe(Ve)))];for(let Ve of V)p.push(` - ${Ve}`)}p.push("")}for(let B of $){let Z=B.testId?_t(l(B.testId)):ib(B.testType),oe=B.fileName?` (\`${B.fileName}\`)`:"",J=B.endpoint?`
|
|
269
269
|
\`${B.endpoint}\``:"",he=B.description?`
|
|
270
270
|
${B.description.trim()}`:"";p.push(`- ${Z}${oe}${sb(B.pullRequests)}${J}${he}`)}g()}let h=(e.testMaintenance??[]).filter(w=>DT.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)} | ${TY(w.beforeStatus,w.beforeDetails)} | ${TY(w.afterStatus,w.afterDetails)} |`);g()}let m=o(w=>w.startsWith(cA)||w.includes(uA),"hasDeclineNote"),b=(e.testMaintenance??[]).filter(w=>m(w.afterDetails)&&(!DT.has(w.action)||!UY.has(w.afterStatus??"")));if(c&&b.length){f(ue().staged.declinedMaintenanceHeader);for(let w of b)p.push(`- \`${tt(w.fileName)}\`: ${tt(OY(w.afterDetails))}`);g()}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("")}g()}if(c&&e.testResults.length){f(ue().staged.testResultsHeader);let w=BEe(e),$=w.some(J=>J.test),B=w.some(J=>NT(e,J)),Z=$?ue().staged.unitResultsTableHeader:ue().staged.resultsTableHeader;p.push(B?`${Z} ${ue().columnVideo} |`:Z),p.push(`${$?"|---------|-----------|----------|------|-------|--------|---------|":"|---------|-----------|----------|--------|---------|"}${B?"-------|":""}`);for(let J of w){let he=J.details.replace(/(\S+\.(?:py|ts|js|spec\.\w+))/gi,"`$1`"),Te=J.testId?_t(tt(l(J.testId))):"\u2014",_e=$?` ${J.test?`\`${tt(J.test)}\``:""} | ${J.cases??""} |`:"",Se=NT(e,J),K=B?` ${Se?ue().videoDownloadLink(Se):"\u2014"} |`:"";p.push(`| ${Te} | ${tt(ib(J.testType))} | ${tt(J.endpoint)} |${_e} ${tt(_T(J.status))} | ${tt(he)} |${K}`)}let oe=(e.testVideos??[]).find(J=>J.artifactsUrl)?.artifactsUrl;!B&&oe&&p.push("",ue().videosArtifactFallback(oe)),g()}if(e.requirements?.length){let w=e.requirements.flatMap(J=>J.clauses),$=o(J=>J.status==="Pass"||J.status==="Passed, test not kept","passes"),B=w.filter($).length;f(ue().staged.requirementsHeader(B,w.length));let Z=o(J=>Ys(ue().staged.clauseStatuses,J.status),"status"),oe=o(J=>(J.status==="Not tested"||J.status==="Passed, test not kept")&&J.notTested?`${Z(J)}: ${J.notTested}`:J.findings.length?`${Z(J)} \u2014 ${J.findings.join(", ")}`:Z(J),"result");if(c){p.push(ue().staged.requirementsTableHeader),p.push("|-------------|--------|-------|--------|");for(let J of e.requirements)J.clauses.forEach((he,Te)=>{let _e=Te===0?`**${tt(J.label)}**${J.statement?` ${tt(J.statement)}`:""}${sb(J.pullRequests)}`:"",Se=`${_t(tt(l(he.id)))}${$Y(he)}${he.text?` ${tt(he.text)}`:""}`,K=new Map;for(let Xe of he.tests){let St=Xe.fileName??l(Xe.testId),Et=K.get(St)??{fns:new Set};for(let Vt of Xe.functions)Et.fns.add(Vt);Et.video??=Xe.fileName?kEe(e,Xe.fileName,Xe.repository):void 0,K.set(St,Et)}let V=K.size?[...K].map(([Xe,{fns:St,video:Et}])=>`${_t(tt(Xe))}${St.size?` \u2014 ${[...St].map(Vt=>`\`${tt(Vt)}\``).join(", ")}`:""}${Et?` ${ue().videoDownloadLink(Et)}`:""}`).join("<br>"):"\u2014",Ve=J.source==="could-break"&&he.status==="Pass"?ue().staged.regressionGuard:"";p.push(`| ${_e} | ${Se} | ${V} | ${tt(oe(he)+Ve)} |`)})}else{p.push(ue().staged.requirementsSummaryTableHeader),p.push("|-------------|-----------------|-------------|");for(let J of e.requirements){let he=J.clauses.filter($).length,Te=J.clauses.filter(_e=>!$(_e)).map(_e=>`${_t(tt(l(_e.id)))}${$Y(_e)} ${tt(oe(_e))}`);p.push(`| **${tt(J.label)}**${J.statement?` ${tt(J.statement)}`:""}${sb(J.pullRequests)} | ${he}/${J.clauses.length} | ${Te.join("<br>")||"\u2014"} |`)}}g()}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(J=>`\`${tt(J)}\``).join(", "):B.writtenBy.length?ue().staged.writtenNotRun:"\u2014",oe=B.maintainedBy.length?B.maintainedBy.map(J=>`\`${tt(J)}\``).join(", "):"\u2014";p.push(`| ${tt(B.text)} | \`${tt(B.source)}\` | ${Z} | ${oe} |`)}g()}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=>PT(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",J=(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,he=$?PT(e,B.fileName):void 0;p.push(`| ${tt(B.name)} | ${Z} | ${tt(B.status)} | ${tt(J)} |${$?` ${he?ue().videoDownloadLink(he):"\u2014"} |`:""}`)}g()}let I=e.issuesFound.filter(w=>!DY(w)).sort(_Y),E=e.issuesFound.filter(DY).sort(_Y);if(I.length){f(ue().staged.issuesFoundHeader);for(let w of I)p.push(NY(w));g()}if(E.length){p.push(`### ${ue().configErrorsHeader}`);for(let w of E)p.push(NY(w));p.push("")}let v=e.testPackages??[],C=e.dependencyChanges??[];if(v.length){p.push(ue().staged.testPackagesHeader,"");for(let w of v)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"||!fA(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?$:[TT,...l,...c,n.filesChanged].join(`
|
|
282
282
|
|
|
283
283
|
`)+`
|
|
284
|
-
`}o(PEe,"renderTestsPrBody");var _o=re(require("fs")),FT=re(require("path"));var UEe="report.json",OEe="report-display.json",
|
|
284
|
+
`}o(PEe,"renderTestsPrBody");var _o=re(require("fs")),FT=re(require("path"));var UEe="report.json",OEe="report-display.json",Z6e={en:"English",ja:"Japanese"};function zY(e){let t=FT.join(e,OEe);if(_o.existsSync(t))try{return JSON.parse(_o.readFileSync(t,"utf-8"))}catch{}let n=FT.join(e,UEe);return _o.existsSync(n)?JSON.parse(_o.readFileSync(n,"utf-8")):void 0}o(zY,"readDisplayReport");function qY(e,t){return t?`<!-- skyramp-testbot-run: ${t} -->
|
|
285
285
|
${e}`:e}o(qY,"withRunMarker");var cc=re(require("fs")),ac=re(require("path"));var ob=["build","chore","ci","docs","feat","fix","perf","refactor","revert","style","test"],LEe=["build","ci","docs","feat","fix","perf","refactor","revert","style","test"],jEe="amannn/action-semantic-pull-request",rr=o(e=>typeof e=="object"&&e!==null&&!Array.isArray(e),"isObj");function JY(e){return typeof e!="string"?!1:e.split("@")[0].split("/").some(n=>n.toLowerCase().split(/[-_.]/).includes("dco"))}o(JY,"usesDco");function HY(e){return typeof e=="string"&&(/\bdco-check\b/.test(e)||/signed-off-by/i.test(e))}o(HY,"scriptChecksDco");function GEe(e){if(!rr(e)||!rr(e.jobs))return!1;for(let t of Object.values(e.jobs))if(rr(t)){if(JY(t.uses))return!0;if(Array.isArray(t.steps)){for(let n of t.steps)if(rr(n)&&(JY(n.uses)||HY(n.run)||rr(n.with)&&Object.values(n.with).some(HY)))return!0}}return!1}o(GEe,"workflowChecksDco");function KY(e){let t=ac.join(e,".github","workflows"),n;try{n=cc.readdirSync(t).filter(i=>/\.ya?ml$/i.test(i)).sort()}catch{return[]}return n.flatMap(i=>{try{return[{file:ac.join(".github","workflows",i),doc:Co(cc.readFileSync(ac.join(t,i),"utf-8"))}]}catch{return[]}})}o(KY,"workflows");function VEe(e){return!rr(e)||!rr(e.jobs)?[]:Object.values(e.jobs).flatMap(t=>rr(t)&&Array.isArray(t.steps)?t.steps.filter(rr):[])}o(VEe,"steps");function zEe(e){let t=ac.join(".github","dco.yml");if(cc.existsSync(ac.join(e,t)))return{file:t};let n=KY(e).find(i=>GEe(i.doc));return n&&{file:n.file}}o(zEe,"signOffRule");var YY=o(e=>typeof e=="string"?e.split(/\r?\n/).map(t=>t.trim()).filter(Boolean):void 0,"inputList");function qEe(e){for(let t of KY(e)){let n=VEe(t.doc).find(s=>typeof s.uses=="string"&&s.uses.split("@")[0].trim().toLowerCase()===jEe);if(!n)continue;let i=rr(n.with)?n.with:{},r=YY(i.scopes);return{file:t.file,types:YY(i.types)??ob,...r?.length?{scopes:r}:{},scopeRequired:i.requireScope===!0||String(i.requireScope).trim()==="true"}}}o(qEe,"semanticPrTitleRule");var JEe=["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"],HEe=["type-enum","scope-enum","scope-empty","subject-case","header-max-length","body-max-line-length"];function XY(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(XY,"knownPresets");var YEe={Disabled:"0",Warning:"1",Error:"2"};function WEe(e){return e.replace(/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g,t=>t.startsWith("/")?t.replace(/[^\r\n]/g," "):t)}o(WEe,"withoutComments");function WY(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)=>YEe[l]??u).replace(/,(\s*\])/g,"$1"),c=a.replace(/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'/g,'""');try{return JSON.parse(c),Co(a)}catch{return null}}}o(WY,"ruleFromSource");var eW=o(e=>Object.fromEntries(HEe.map(t=>[t,e(t)])),"pickRules");function ZY(e,t){if(!rr(t))return;let n=[].concat(t.extends??[]),i=rr(t.rules)?t.rules:{};return{file:e,presets:XY(n),rules:eW(r=>i[r])}}o(ZY,"configFromObject");function ZEe(e){for(let t of JEe){let n;try{n=cc.readFileSync(ac.join(e,t),"utf-8")}catch{continue}if(/\.[cm]?[jt]s$/.test(t)){let r=WEe(n),s=/(?:^|[,{])\s*["']?extends["']?\s*:\s*/.exec(r),a=s?WY(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:XY(u),rules:eW(l=>WY(r,l))}}let i;try{i=Co(n)}catch{return}if(t!=="package.json")return ZY(t,i);if(rr(i)&&rr(i.commitlint))return ZY(t,i.commitlint)}}o(ZEe,"commitlintConfig");function Sl(e){if(!Array.isArray(e))return;let t=Number(e[0]);if(t===1||t===2)return[String(e[1]??"always"),e[2]]}o(Sl,"ruleWhenOn");var UT=o(e=>Array.isArray(e)&&e.every(t=>typeof t=="string")?e:void 0,"stringList");function KEe(e,t){if(!e)return t?"not-capitalized":void 0;let[n,i]=e,r=typeof i=="string"?[i]:UT(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(KEe,"subjectCaseOf");function XEe(e){let t=ZEe(e);if(!t)return;let{file:n,rules:i}=t,r=t.presets.at(-1)==="@commitlint/config-angular",s=o(I=>t.presets.length>0&&i[I]===void 0,"preset"),a=Sl(i["type-enum"]),c=a?.[0]==="always"?UT(a[1]):s("type-enum")?r?LEe:ob:void 0,u=c===void 0,l=c??ob;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=Sl(i["scope-enum"]),f=p?.[0]==="always"?UT(p[1]):void 0,g=o((I,E)=>{let v=Sl(i[I]);return v?typeof v[1]=="number"?v[1]:void 0:s(I)?E:void 0},"limit"),h=KEe(Sl(i["subject-case"]),s("subject-case")),m=g("header-max-length",r?72:100)??(u&&i["header-max-length"]===void 0?vs:void 0),b=g("body-max-line-length",t.presets.includes("@commitlint/config-conventional")?100:void 0);return{file:n,types:l,...u?{typesFromFallback:!0}:{},...u&&!h&&i["subject-case"]===void 0?{fallbackSubjectCase:"not-capitalized"}:{},...f?.length?{scopes:f}:{},scopeRequired:Sl(i["scope-empty"])?.[0]==="never",...Sl(i["scope-empty"])?.[0]==="always"?{scopeForbidden:!0}:{},...h?{subjectCase:h}:{},...m?{headerMaxLength:m}:{},...b?{bodyMaxLineLength:b}:{}}}o(XEe,"commitlintRule");function tW(e){let t=zEe(e),n=XEe(e),i=qEe(e);return{...t?{signOff:t}:{},...n?{commitlint:n}:{},...i?{prTitle:i}:{}}}o(tW,"readCommitRules");function ebe(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(vs,...t.map(a=>a.headerMaxLength??1/0)),...Number.isFinite(s)?{bodyMaxLineLength:s}:{}}}o(ebe,"mergedHeaderRules");function ab(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(ab,"allowsScope");function tbe(e,t){let n=e.find(s=>s.scopes)?.scopes??[],i=n.filter(s=>/^[\w./-]+$/.test(s)&&e.every(a=>ab(a,s)));if(!i.length)return e.every(s=>ab(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(tbe,"pickScope");var nW=/^([A-Za-z][\w-]*)(?:\(([^)]*)\))?!?:\s*(.*)$/,nbe=o(e=>e.split(/(`.*?`|".*?"|'.*?')/).map((t,n)=>n%2?t:t.toLowerCase()).join(""),"lowerOutsideQuotes");function rW(e,t){return t==="lower-case"?nbe(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(rW,"withSubjectCase");function rbe(e,t){return rW(e.trim().replace(/\.+$/,"").trim()||"add tests",t)}o(rbe,"conformSubject");function iW(e,t){let[n,...i]=e.replace(/\s+$/,"").split(`
|
|
286
286
|
`),r=nW.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&&!ab(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)&&rW(l,s.subjectCase)!==l)return!1}return!0})}o(iW,"matchesCommitRules");function ibe(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(ibe,"fitSubject");function sbe(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(sbe,"wrap");function sW(e,t,n){let i=ebe(t);if(!i)return e;let[r,...s]=e.replace(/\s+$/,"").split(`
|
|
287
287
|
`),a=nW.exec(r.trim()),c=a&&[...ob,...i.types].some(v=>v.toLowerCase()===a[1].toLowerCase())?a:null,u=c?.[1].toLowerCase(),l=c?c[3]:r.replace(/^\s*Skyramp Testbot:\s*/i,""),p=c?.[2]?.trim()||void 0;p&&t.commitlint&&!t.commitlint.scopes&&(p=p.toLowerCase());let f=[u,"test","chore"].find(v=>!!v&&i.types.includes(v))??i.types[0],g=p&&i.rules.every(v=>ab(v,p))?p:void 0;!g&&i.scopeRequired&&(g=tbe(i.rules,n));let h=g?`${f}(${g}): `:`${f}: `,m=h+ibe(rbe(l,i.subjectCase),i.headerMaxLength-h.length),b=s.join(`
|
|
@@ -297,7 +297,7 @@ ${n}`}o(cb,"withSignOff");function oW(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(oW,"withoutSignOff");function OT(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(OT,"stripAgentAttribution");var ub="Skyramp-Pull-Request",kl="Skyramp-Delivery-Base",MT="Skyramp-Tested-Revision",LT="Skyramp-Delivery-Run";var
|
|
300
|
+
`).replace(/\s+$/,"")}o(OT,"stripAgentAttribution");var ub="Skyramp-Pull-Request",kl="Skyramp-Delivery-Base",MT="Skyramp-Tested-Revision",LT="Skyramp-Delivery-Run";var gKe=["%H","%P","%an","%ae","%ce",`%(trailers:key=${ub},valueonly,separator=%x2C)`,"%s",`%(trailers:key=${kl},valueonly,separator=%x2C)`,`%(trailers:key=${MT},valueonly,separator=%x2C)`,`%(trailers:key=${LT},valueonly,separator=%x2C)`];function aW(e,t){let n=e(["log","-1","--format=%B"]);if(!n.includes(`${ub}:`)&&!n.includes(`${kl}:`))return;let i=n.split(`
|
|
301
301
|
`).filter(a=>!a.startsWith(`${kl}:`)).join(`
|
|
302
302
|
`).trimEnd(),r=t?`${i}
|
|
303
303
|
${kl}: ${t}`:i;e(["log","-1","--format=%(trailers:key=Signed-off-by,valueonly)"]).split(`
|
|
@@ -316,7 +316,7 @@ ${n}`}:{prFailure:"unknown",prDetail:t}}o(wbe,"thrownFailure");async function Cb
|
|
|
316
316
|
`}catch{return""}}o(Rbe,"heldBackPatch");var AW=o(e=>e.map(t=>t.dependsOn.length?`${t.file} (needs ${t.dependsOn.join(", ")})`:t.file).join("; "),"heldBackText");async function xbe(e,t,n,i,r,s){let a=BY(i.path,e.runDir),c=process.env.PATH;a.dir&&(process.env.PATH=RY(a).PATH);try{return await Qbe(e,t,n,i,r,s)}finally{a.dir&&(process.env.PATH=c),a.cleanup()}}o(xbe,"deliverOne");async function Qbe(e,t,n,i,r,s){let a=i.slug,c,u=!1,l,p=[];try{let f=i.path,g=await Cbe(e,t,n,i,r,s),{texts:h,shown:m,title:b,bot:I,remote:E,base:v,owner:C,testsBranch:x,origin:w,mergedBase:$}=g,B=o((X=[])=>OT(qY(hbe(X,v)+VY(gbe(Abe(m,e,i),X.map(Le=>Le.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-${dW(a)}.md`,oe=di.join(e.outputsDir,Z);rn.writeFileSync(oe,B());let J=rt(f,["rev-parse","HEAD"]),he=$??J;rt(f,["checkout","-B",x]),c=x,rt(f,["reset"]);let Te=Re(e,"write.json"),_e=oA(e).filter(X=>X.source.path===i.path&&r.includes(X.record.sourceAsset)),Se=xT(e);if(Se.length)throw new Error(Se.join("; "));let K=Te?SY(e,Te,h):[];if(K.length)throw new Error(K.join("; "));let V=new Set(_e.flatMap(({record:X})=>[X.sourceAsset,...X.entry?[X.entry]:[]]));for(let X of r)V.has(X)||fbe(di.join(f,X),h);let Ve=yY(e,_e,h,p);if(Ve.length)throw new Error(Ve.join("; "));let Xe=new Map([...V].map(X=>{let Le=rn.readFileSync(di.join(f,X)),ht=o(Ss=>rt(f,["hash-object","--no-filters","--stdin"],Ss),"blobHash"),Pe=new Set([ht(Le)]),hn=Le.toString("latin1");return!Le.includes(0)&&hn.includes(`\r
|
|
318
318
|
`)&&Pe.add(ht(Buffer.from(hn.replace(/\r\n/g,`
|
|
319
|
-
`),"latin1"))),[X,Pe]})),St=[];for(let X of r)try{rt(f,["--literal-pathspecs","add","--",X])}catch{St.push(X)}if(St.some(X=>V.has(X)))throw new Error("could not stage every guarded delivery file");let Et=new Map([...Xe].map(([X,Le])=>{let ht=rt(f,["--literal-pathspecs","ls-files","--stage","--",X]),Pe=/^100(?:644|755) ([a-f0-9]+) 0\t/.exec(ht)?.[1];if(!Pe||!Le.has(Pe))throw new Error(`the staged guarded file differs from the generated file: ${X}`);return[X,Pe]}));try{rt(f,["diff","--cached","--quiet"])}catch{try{let X=Sbe(f,g,J,he,e.inputs.skyrampRunUrl);rt(f,["-c",`user.name=${I.name}`,"-c",`user.email=${I.email}`,"commit","-m",X])}catch(X){throw new lb(X)}u=!0}u&&(p.length=0),l=rt(f,["rev-parse","HEAD"]);let Vt,nt,bt,Zt=$??s?.headSha;if(u&&Zt&&Zt!==J){let X=!1,Le=l;try{rt(f,["checkout","-q","-B",c,Zt]),X=!0;try{rt(f,["-c",`user.name=${I.name}`,"-c",`user.email=${I.email}`,"cherry-pick","--keep-redundant-commits",l])}catch(ht){let Pe=$?Bbe(f,I,Le):void 0;if(!Pe||(nt=Pe.files.map(hn=>({file:hn,dependsOn:kbe(f,a,$,J,hn)})),bt={repository:a,base:v,files:nt,patch:Rbe(f,J,Le,Pe.files)},!Pe.delivered))throw ht}X=!1,aW(ht=>rt(f,ht),Zt),l=rt(f,["rev-parse","HEAD"])}catch(ht){try{rt(f,["cherry-pick","--abort"])}catch{}rt(f,["checkout","-q","-B",c,l]);let Pe=zd(la(ht),1/0);if($&&!X)throw ht;if($)return{thrown:!1,held:bt,record:{schemaVersion:1,repository:a,branch:c,remote:E,base:v,committed:u,commitSha:l,pushed:!1,prAction:"skipped",prTitle:b,unstaged:St,...nt?{heldBack:nt}:{},reason:nt?`every test change needs a merged revision ${v} does not have yet, so no tests PR was opened: ${AW(nt)}`:`the tests do not apply to ${v} at ${$.slice(0,12)} without the merged revisions (${Pe}), so no tests PR was opened`}};Vt=`tests committed on the checkout's merge commit (re-cut onto ${Zt.slice(0,12)} failed: ${Pe})`}}nt&&rn.writeFileSync(oe,B(nt));for(let[X,Le]of Et){if(nt?.some(Pe=>Pe.file===X))continue;let ht=rt(f,["--literal-pathspecs","ls-tree",l,"--",X]);if(/^100(?:644|755) blob ([a-f0-9]+)\t/.exec(ht)?.[1]!==Le)throw new Error(`the committed guarded file differs from the generated file: ${X}`)}for(let{record:X}of _e){if(X.entry)continue;let Le=rt(f,["--literal-pathspecs","ls-tree",l,"--",X.file]);if(Le&&Le!==rt(f,["--literal-pathspecs","ls-tree",J,"--",X.file]))throw new Error(`the delivery included executable source for a held test: ${X.file}`)}let It=s?{}:{repositoryPath:f,repoSlug:a,devPr:null};if(!u){let X=await t.markTestsPrUnchanged({branch:c,...It});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:E,base:v,committed:!1,commitSha:l,pushed:!1,prAction:X.action==="unchanged"?"unchanged":"skipped",prUrl:X.url,prTitle:b,unstaged:St,reason:X.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 Ne=await t.publishTestsPr({repositoryPath:f,...It,remote:E,branch:c,base:v,commitSha:l,title:b,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:bt,record:{schemaVersion:1,repository:a,branch:c,remote:E,base:Ne.base,requestedBase:v,committed:u,commitSha:l,pushed:Ne.pushed,...Ne.pushedCommits?{pushedCommits:Ne.pushedCommits}:{},...Ne.deliveredCommit?{deliveredCommit:Ne.deliveredCommit}:{},prAction:Ne.action,...Ne.retargetedAs?{retargetedAs:Ne.retargetedAs}:{},prUrl:Ne.url,prTitle:b,...Ne.failure?{prFailure:Ne.failure,prDetail:Ne.detail}:{},...Vt?{cutNote:Vt}:{},...Ne.action==="skipped"&&Ne.detail?{reason:Ne.detail}:{},unstaged:St,...nt?{heldBack:nt}:{}}}}catch(f){return{thrown:!0,record:{schemaVersion:1,repository:a,branch:c,committed:u,commitSha:l,pushed:!1,prAction:"failed",...wbe(f),unstaged:[]}}}finally{if(p.length){try{rt(i.path,["reset"])}catch{}for(let f of p.reverse())try{f()}catch{}}}}o(Qbe,"deliverRepository");var LKe={name:"deliver",timeoutMinutes:5,execute:Ebe,validateInput:o(e=>{let t=CT(e);return t?{ok:!1,reasons:[t]}:cbe(e)},"validateInput"),requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var $be=10*6e4,Tbe=4*6e4,Dbe=6e4;function _be(e,t){return e.getTime()-t.getTime()-$be}o(_be,"remainingBudgetMs");var gW="This attempt revoked its scoped GitHub credentials; it mints no more.";var Nbe=10*6e4;var Pbe=o(e=>!!e&&Object.keys(e).length===1&&e.contents==="read","onlyReads"),Fbe=3e4,Ube=3,hW=30,pi=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")}},Gi=class extends Error{static{o(this,"AppUnreachable")}},Bl=class extends Gi{static{o(this,"AppNotReady")}},VT=class extends Bl{static{o(this,"RunnerProviderNotReady")}};function zT(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(zT,"appOrigin");function EW(e,t){if(!Cu.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}o(EW,"routeId");function bW(e,t,n,i){throw t<500&&t!==429?new pi(e,t,n,i):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new VT(e):t===503&&n==="RUN_NOT_READY"?new Bl(e):new Gi(e)}o(bW,"refusedOrUnreachable");async function IW(e,t,n,i,r,s=1/0){let a=zT(e.origin),c=`The time limit for ${t} ${n} was reached`,u,l=0;for(let p=1;p<=Ube||u instanceof Bl;p+=1){if(u instanceof Bl){if(l===hW)throw u;l+=1,p-=1,e.log?.(`${u.message}; trying again (${l} of ${hW}).`),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 Gi(c);try{let f,g=await(Number.isFinite(s)?Promise.race([e.idToken(a),new Promise((m,b)=>{f=setTimeout(()=>b(new Gi(c)),Math.max(1,s-Date.now()))})]).finally(()=>{f&&clearTimeout(f)}):e.idToken(a));if(Date.now()>=s)throw new Gi(c);let h=await(e.fetch??fetch)(new URL(n,a).toString(),{...i(g),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(Fbe,s-Date.now())))}).catch(m=>{throw new Gi(m instanceof Error?m.message:String(m),{cause:m})});return await r(h)}catch(f){if(f instanceof pi||Date.now()>=s)throw f;u=f}}throw u}o(IW,"callWithRetries");function vW(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(vW,"logRefusal");var gA=class extends Error{static{o(this,"ReportUploadSizeError")}};function wW(e){let t=Buffer.byteLength(e,"utf8");if(t<=NC)return{body:e};if(t>v1)throw new gA("The report exceeds the app's 16 MiB expanded report limit");let n=new Uint8Array((0,yW.gzipSync)(e));if(n.length>NC)throw new gA("The compressed report exceeds the app's 1 MiB report upload limit");return{body:n,gzip:!0}}o(wW,"encodeReportUpload");function qT(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?wW(s):{body:s};return CW(e,t,n,a,r)}o(qT,"callApp");function CW(e,t,n,i,r){return IW(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;vW(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 bW(f,a.status,u.error?.code,typeof l?.path=="string"?l.path:void 0)},r)}o(CW,"callEncodedApp");function Obe(e,t,n){return IW(e,"GET",t,o(r=>({method:"GET",headers:{Authorization:`Bearer ${r}`,Accept:"application/octet-stream"}}),"request"),async r=>{if(!r.ok)return vW(e,"GET",t,r,await r.text().catch(()=>"")),bW(`The Skyramp app refused GET ${t}: ${r.status}`,r.status);let s=Buffer.from(await r.arrayBuffer());if(s.length>n)throw new pi(`The Skyramp app answered GET ${t} with more than ${n} bytes`,r.status);return s})}o(Obe,"callAppBytes");var hA=class{constructor(t,n,i,r,s,a,c,u,l,p=[],f=[],g,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=g;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 _be(this.deadlineAt,t);let r=this.deadlineAt.getTime()-t.getTime(),s=Math.max(Dbe,Math.min(Tbe,r/2));return r-s}get skyrampRunUrl(){return h1(zT(this.deps.origin),this.manifest.runId)}log(t){this.deps.log?.(t)}send(t,n,i,r){return qT(this.deps,t,n,i,r)}async sendReport(t){await CW(this.deps,"PUT",`/api/v1/runner/attempts/${this.attemptId}/report`,t)}readBytes(t,n){return Obe(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(gW);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>=Nbe)return r.token;if(this.revocation)throw new Error(gW);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&&!Pbe(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 pi)||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 pi(`${l.message}. The run's repositories are on more than one GitHub account (${p(f)}), which Skyramp does not support yet.`,l.status,l.code);let g=p([...f,this.manifest.execution.repository]);throw new pi(`${l.message}. Check the Skyramp GitHub App installation on ${g}: it must be installed and not suspended, have access to these repositories, and have accepted the App's current permissions. Each account must also be connected to your Skyramp organization.`,l.status,l.code)});return this.credentials[t]=u,(await u).token}jobToken(){if(this.deps.sourceToken)return this.deps.sourceToken;throw new Error("The app answered the credentials request without a token, and the job gave Testbot none of its own: on Azure Pipelines, set SYSTEM_ACCESSTOKEN to $(System.AccessToken) in the Testbot step's env.")}sourceFetch(t){return t.fetch??this.deps.fetch??fetch}revokeTokens(t={}){let n=t.host??F0();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 SW(e,t,n){EW(e,"run id"),zT(n.origin);let i={statedPins:!0,credentialKinds:!0},r=MC(e,t,i),s=`/api/v1/runner/runs/${e}/attempts`,a;for(;;)try{a=await qT(n,"POST",s,r);break}catch(p){let f=p instanceof pi&&p.status===400?Mbe(p,i):void 0;if(!f)throw p;i[f]=!1,r=MC(e,t,i)}let c=G1(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}`);Lbe(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 hA(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(SW,"startV3Attempt");function Mbe(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(Mbe,"handshakeFieldRefused");function Lbe(e,t){if(t.length===0)return;if(!x1(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=>Di(r.repository))),i=new Set;for(let r of t){let s=Di(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(Lbe,"checkAttemptPins");async function JT(e,t){return O1.parse(await e.send("POST",`/api/v1/runner/attempts/${e.attemptId}/heartbeat`,{schemaVersion:1},t))}o(JT,"heartbeatV3Attempt");async function kW(e,t=()=>new Date,n){if(e.closure)return e.closure;let i=await JT(e,n).then(r=>M1(r,t())).catch(()=>null);return i&&(e.closure=i),i}o(kW,"closedV3Attempt");var O9e=10*6e4;var M9e=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var L9e=d.object({tests:d.object({placements:d.array(d.unknown()).optional()}).passthrough().optional()}).passthrough(),j9e=d.object({repository:DC,testType:d.string(),directory:d.string()}).passthrough();var G9e=d.object({report:d.object({language:d.string()}).passthrough()}).passthrough();var V9e=d.object({environment:d.object({components:d.array(d.unknown()).optional(),dependencies:d.array(d.unknown()).optional()}).passthrough()}).passthrough(),z9e=d.object({environment:d.object({offLimits:d.unknown().optional()}).passthrough()}).passthrough();var q9e=d.object({environment:d.object({allowedEgress:d.unknown().optional()}).passthrough()}).passthrough();var J9e=d.object({name:d.string().min(1),provision:d.literal("existing"),url:d.string().min(1),repository:DC.optional(),revisionUrl:d.string().min(1).optional()}).passthrough(),H9e=d.object({name:d.string().min(1),url:d.string().nullable(),versionUrl:d.string().nullable(),notes:d.string().nullable()}).passthrough();var Y9e=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);function BW(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(BW,"statusCounts");function jbe(e){let{passed:t,failed:n,skipped:i}=BW(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(jbe,"executedTestsValidation");function Gbe(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??FC(u,c.testType,l,p&&c.endpoint||void 0)}),s=new Map;for(let c of r)s.set(c,(s.get(c)??0)+1);let a=new Set(r.filter(c=>s.get(c)===1));return n.map(({result:c,repository:u},l)=>{let p=r[l],f=p;if(s.get(p)>1&&a.has(p))for(let g=2;a.has(f)||f===p;g+=1)f=p.includes("#")?`${p}.${g}`:`${p}#${g}`;return a.add(f),{...c,repository:u,resultId:f}})}o(Gbe,"withResultIds");function Vbe({notTranslated:e,...t},n){let i=Gbe(t.testResults,n);return{...t,testResults:i,...zbe(t,i,n),validation:Hbe(Ybe(t,qbe(t,t.validation??jbe(t)))),traceVersion:1}}o(Vbe,"v3Report");function zbe(e,t,n){if(!e.testExecutionContexts)return{};let i=new Set,r=o(c=>{let u=c;for(let l=2;i.has(u);l+=1)u=`${c}#${l}`;return i.add(u),u},"unique"),s=[],a=new Map;for(let{repository:c,...u}of e.testExecutionContexts){let l=u.status==="not_run"?[]:t.filter(p=>p.fileName===u.test&&p.repository===(c?.trim()||n));l.length||s.push(u);for(let{resultId:p}of l){let f=a.get(p),g=f!==void 0&&s[f].cleanup.status==="failed"?s[f].cleanup:u.cleanup,h={...u,cleanup:g,test:p,resultId:p};f===void 0?a.set(p,s.push(h)-1):s[f]=h}}for(let c of s)c.resultId&&i.add(c.resultId);return{testExecutionContexts:s.map(c=>c.resultId?c:{...c,test:r(c.test.slice(0,512))}).slice(0,5e3)}}o(zbe,"linkedContexts");function qbe(e,t){let{passed:n,failed:i}=BW(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(qbe,"withEvidence");var Jbe={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};function Hbe(e){return{...e,gaps:Rf(e.gaps)}}o(Hbe,"boundedGaps");function Ybe(e,t){if(t.sufficiency==="sufficient")return t;let n=(e.caveats??[]).map(r=>Jbe[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(Ybe,"withModelProviderFailure");function Wbe(e,t,n){let{language:i,report:r}=t;if(i==="en")return;let s={language:i,businessCaseAnalysis:r.businessCaseAnalysis},a=o((I,E,v)=>Array.isArray(I)&&Array.isArray(E)&&I.length===E.length?I.map(C=>({[v]:C[v]})):void 0,"rows"),c=e.validation;r.validation&&c&&c.rationale===n.validation.rationale&&JSON.stringify(Rf(c.gaps))===JSON.stringify(n.validation.gaps)&&Rf(r.validation.gaps).length===n.validation.gaps.length&&(s.validation={rationale:r.validation.rationale,gaps:Rf(r.validation.gaps)});let u=new Set((n.changes??[]).map(I=>I.id)),l=(r.changes??[]).filter(I=>u.has(I.id)).map(({id:I,text:E})=>({id:I,text:E}));l.length&&(s.changes=l);let p=new Set((n.requirements??[]).filter(I=>I.statement!==void 0).map(I=>I.id)),f=(r.requirements??[]).flatMap(({id:I,statement:E})=>p.has(I)&&I.length>0&&I.length<=hp.id&&E?.trim()?[{id:I,statement:E.slice(0,hp.statement)}]:[]);f.length&&(s.requirements=f.slice(0,hp.rows));let g=a(r.issuesFound,n.issuesFound,"description");g&&(s.issuesFound=g);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 b=a(r.caveats,n.caveats,"text");return b&&(s.caveats=b),s}o(Wbe,"v3Display");async function RW(e,t){let n=gj([...e.issuedTokens,...t.secrets??[]]),i={...Vbe(t.report,t.workingSlug),...t.notTranslated?{notTranslated:t.notTranslated}:{}},r=t.translated&&Wbe(t.report,t.translated,i),s=Zbe(ua(t.delivery,n)),a=t.sources.map(({repository:m,revision:b})=>({repository:m,revision:b})),c=ua(i,n),u=r&&PC.safeParse(ua(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,b)=>V1({manifest:e.manifest,attemptNumber:e.attemptNumber,checkedOut:a,firstQualification:t.firstQualification,generatedTests:m,producer:t.producer,report:b&&l?{...c,display:l}:c,githubWrites:t.githubWrites}),"build"),f=o((m,b)=>wW(JSON.stringify(p(m,b))),"encode"),g=(s.status==="partial"||s.status==="failed")&&s.failures?.some(m=>m.heldBack)?{...s,failures:s.failures.map(({heldBack:m,...b})=>b)}:void 0,h=[{delivery:s,display:!!l}];g&&h.push({delivery:g,display:!!l}),l&&(h.push({delivery:s,display:!1}),g&&h.push({delivery:g,display:!1}));for(let[m,b]of h.entries()){let I;try{I=f(b.delivery,b.display)}catch(E){if(!(E instanceof gA)||m===h.length-1)throw E;continue}l&&!b.display&&e.log("Testbot V3: omitted the translated display to fit the report upload."),b.delivery===g&&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(I);return}}o(RW,"uploadV3Report");async function HT(e,t,n){if(!d.string().uuid().safeParse(t).success)return{refusal:"no_environment"};let i;try{i=U1.parse(await e.send("GET",l1.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(HT,"fetchV3PersistentDataPolicy");async function xW(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 HT(e,i,r);return"refusal"in a?{allowed:!1,refusal:a.refusal}:a.policy.allowed?a.policy.revision!==s.revision?{allowed:!1,refusal:"changed"}:Yh(t,a.policy,n)?{allowed:!0,policy:a.policy}:{allowed:!1,refusal:"out_of_scope"}:{allowed:!1,refusal:"denied"}}o(xW,"currentV3PersistenceDecision");var mW=o((e,t=am)=>e.length>t?`${e.slice(0,t-1)}\u2026`:e,"boundDeliveryMessage");function Zbe(e){let t=o(n=>n.map(i=>({...i,message:mW(i.message)})),"bound");return e.status==="partial"?{...e,failures:t(e.failures)}:e.status==="failed"?{...e,message:mW(e.message),...e.failures&&{failures:t(e.failures)}}:e}o(Zbe,"boundDeliveryMessages");async function QW(e,t){return EW(e.attemptId,"attempt id"),qT(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,z1({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"}))}o(QW,"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"))),[X,Pe]})),St=[];for(let X of r)try{rt(f,["--literal-pathspecs","add","--",X])}catch{St.push(X)}if(St.some(X=>V.has(X)))throw new Error("could not stage every guarded delivery file");let Et=new Map([...Xe].map(([X,Le])=>{let ht=rt(f,["--literal-pathspecs","ls-files","--stage","--",X]),Pe=/^100(?:644|755) ([a-f0-9]+) 0\t/.exec(ht)?.[1];if(!Pe||!Le.has(Pe))throw new Error(`the staged guarded file differs from the generated file: ${X}`);return[X,Pe]}));try{rt(f,["diff","--cached","--quiet"])}catch{try{let X=Sbe(f,g,J,he,e.inputs.skyrampRunUrl);rt(f,["-c",`user.name=${I.name}`,"-c",`user.email=${I.email}`,"commit","-m",X])}catch(X){throw new lb(X)}u=!0}u&&(p.length=0),l=rt(f,["rev-parse","HEAD"]);let Vt,nt,bt,Zt=$??s?.headSha;if(u&&Zt&&Zt!==J){let X=!1,Le=l;try{rt(f,["checkout","-q","-B",c,Zt]),X=!0;try{rt(f,["-c",`user.name=${I.name}`,"-c",`user.email=${I.email}`,"cherry-pick","--keep-redundant-commits",l])}catch(ht){let Pe=$?Bbe(f,I,Le):void 0;if(!Pe||(nt=Pe.files.map(hn=>({file:hn,dependsOn:kbe(f,a,$,J,hn)})),bt={repository:a,base:v,files:nt,patch:Rbe(f,J,Le,Pe.files)},!Pe.delivered))throw ht}X=!1,aW(ht=>rt(f,ht),Zt),l=rt(f,["rev-parse","HEAD"])}catch(ht){try{rt(f,["cherry-pick","--abort"])}catch{}rt(f,["checkout","-q","-B",c,l]);let Pe=zd(la(ht),1/0);if($&&!X)throw ht;if($)return{thrown:!1,held:bt,record:{schemaVersion:1,repository:a,branch:c,remote:E,base:v,committed:u,commitSha:l,pushed:!1,prAction:"skipped",prTitle:b,unstaged:St,...nt?{heldBack:nt}:{},reason:nt?`every test change needs a merged revision ${v} does not have yet, so no tests PR was opened: ${AW(nt)}`:`the tests do not apply to ${v} at ${$.slice(0,12)} without the merged revisions (${Pe}), so no tests PR was opened`}};Vt=`tests committed on the checkout's merge commit (re-cut onto ${Zt.slice(0,12)} failed: ${Pe})`}}nt&&rn.writeFileSync(oe,B(nt));for(let[X,Le]of Et){if(nt?.some(Pe=>Pe.file===X))continue;let ht=rt(f,["--literal-pathspecs","ls-tree",l,"--",X]);if(/^100(?:644|755) blob ([a-f0-9]+)\t/.exec(ht)?.[1]!==Le)throw new Error(`the committed guarded file differs from the generated file: ${X}`)}for(let{record:X}of _e){if(X.entry)continue;let Le=rt(f,["--literal-pathspecs","ls-tree",l,"--",X.file]);if(Le&&Le!==rt(f,["--literal-pathspecs","ls-tree",J,"--",X.file]))throw new Error(`the delivery included executable source for a held test: ${X.file}`)}let It=s?{}:{repositoryPath:f,repoSlug:a,devPr:null};if(!u){let X=await t.markTestsPrUnchanged({branch:c,...It});return{thrown:!1,record:{schemaVersion:1,repository:a,branch:c,remote:E,base:v,committed:!1,commitSha:l,pushed:!1,prAction:X.action==="unchanged"?"unchanged":"skipped",prUrl:X.url,prTitle:b,unstaged:St,reason:X.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 Ne=await t.publishTestsPr({repositoryPath:f,...It,remote:E,branch:c,base:v,commitSha:l,title:b,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:bt,record:{schemaVersion:1,repository:a,branch:c,remote:E,base:Ne.base,requestedBase:v,committed:u,commitSha:l,pushed:Ne.pushed,...Ne.pushedCommits?{pushedCommits:Ne.pushedCommits}:{},...Ne.deliveredCommit?{deliveredCommit:Ne.deliveredCommit}:{},prAction:Ne.action,...Ne.retargetedAs?{retargetedAs:Ne.retargetedAs}:{},prUrl:Ne.url,prTitle:b,...Ne.failure?{prFailure:Ne.failure,prDetail:Ne.detail}:{},...Vt?{cutNote:Vt}:{},...Ne.action==="skipped"&&Ne.detail?{reason:Ne.detail}:{},unstaged:St,...nt?{heldBack:nt}:{}}}}catch(f){return{thrown:!0,record:{schemaVersion:1,repository:a,branch:c,committed:u,commitSha:l,pushed:!1,prAction:"failed",...wbe(f),unstaged:[]}}}finally{if(p.length){try{rt(i.path,["reset"])}catch{}for(let f of p.reverse())try{f()}catch{}}}}o(Qbe,"deliverRepository");var GKe={name:"deliver",timeoutMinutes:5,execute:Ebe,validateInput:o(e=>{let t=CT(e);return t?{ok:!1,reasons:[t]}:cbe(e)},"validateInput"),requires:["report"],branchRequires:{runtime:["write"],"no-runtime":["generate-unit"]}};var $be=10*6e4,Tbe=4*6e4,Dbe=6e4;function _be(e,t){return e.getTime()-t.getTime()-$be}o(_be,"remainingBudgetMs");var gW="This attempt revoked its scoped GitHub credentials; it mints no more.";var Nbe=10*6e4;var Pbe=o(e=>!!e&&Object.keys(e).length===1&&e.contents==="read","onlyReads"),Fbe=3e4,Ube=3,hW=30,pi=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")}},Gi=class extends Error{static{o(this,"AppUnreachable")}},Bl=class extends Gi{static{o(this,"AppNotReady")}},VT=class extends Bl{static{o(this,"RunnerProviderNotReady")}};function zT(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(zT,"appOrigin");function EW(e,t){if(!Cu.test(e))throw new Error(`The ${t} "${e}" is not a uuid`);return e}o(EW,"routeId");function bW(e,t,n,i){throw t<500&&t!==429?new pi(e,t,n,i):t===503&&n==="RUNNER_PROVIDER_NOT_READY"?new VT(e):t===503&&n==="RUN_NOT_READY"?new Bl(e):new Gi(e)}o(bW,"refusedOrUnreachable");async function IW(e,t,n,i,r,s=1/0){let a=zT(e.origin),c=`The time limit for ${t} ${n} was reached`,u,l=0;for(let p=1;p<=Ube||u instanceof Bl;p+=1){if(u instanceof Bl){if(l===hW)throw u;l+=1,p-=1,e.log?.(`${u.message}; trying again (${l} of ${hW}).`),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 Gi(c);try{let f,g=await(Number.isFinite(s)?Promise.race([e.idToken(a),new Promise((m,b)=>{f=setTimeout(()=>b(new Gi(c)),Math.max(1,s-Date.now()))})]).finally(()=>{f&&clearTimeout(f)}):e.idToken(a));if(Date.now()>=s)throw new Gi(c);let h=await(e.fetch??fetch)(new URL(n,a).toString(),{...i(g),redirect:"error",signal:AbortSignal.timeout(Math.max(1,Math.min(Fbe,s-Date.now())))}).catch(m=>{throw new Gi(m instanceof Error?m.message:String(m),{cause:m})});return await r(h)}catch(f){if(f instanceof pi||Date.now()>=s)throw f;u=f}}throw u}o(IW,"callWithRetries");function vW(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(vW,"logRefusal");var gA=class extends Error{static{o(this,"ReportUploadSizeError")}};function wW(e){let t=Buffer.byteLength(e,"utf8");if(t<=NC)return{body:e};if(t>v1)throw new gA("The report exceeds the app's 16 MiB expanded report limit");let n=new Uint8Array((0,yW.gzipSync)(e));if(n.length>NC)throw new gA("The compressed report exceeds the app's 1 MiB report upload limit");return{body:n,gzip:!0}}o(wW,"encodeReportUpload");function qT(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?wW(s):{body:s};return CW(e,t,n,a,r)}o(qT,"callApp");function CW(e,t,n,i,r){return IW(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;vW(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 bW(f,a.status,u.error?.code,typeof l?.path=="string"?l.path:void 0)},r)}o(CW,"callEncodedApp");function Obe(e,t,n){return IW(e,"GET",t,o(r=>({method:"GET",headers:{Authorization:`Bearer ${r}`,Accept:"application/octet-stream"}}),"request"),async r=>{if(!r.ok)return vW(e,"GET",t,r,await r.text().catch(()=>"")),bW(`The Skyramp app refused GET ${t}: ${r.status}`,r.status);let s=Buffer.from(await r.arrayBuffer());if(s.length>n)throw new pi(`The Skyramp app answered GET ${t} with more than ${n} bytes`,r.status);return s})}o(Obe,"callAppBytes");var hA=class{constructor(t,n,i,r,s,a,c,u,l,p=[],f=[],g,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=g;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 _be(this.deadlineAt,t);let r=this.deadlineAt.getTime()-t.getTime(),s=Math.max(Dbe,Math.min(Tbe,r/2));return r-s}get skyrampRunUrl(){return h1(zT(this.deps.origin),this.manifest.runId)}log(t){this.deps.log?.(t)}send(t,n,i,r){return qT(this.deps,t,n,i,r)}async sendReport(t){await CW(this.deps,"PUT",`/api/v1/runner/attempts/${this.attemptId}/report`,t)}readBytes(t,n){return Obe(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(gW);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>=Nbe)return r.token;if(this.revocation)throw new Error(gW);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&&!Pbe(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 pi)||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 pi(`${l.message}. The run's repositories are on more than one GitHub account (${p(f)}), which Skyramp does not support yet.`,l.status,l.code);let g=p([...f,this.manifest.execution.repository]);throw new pi(`${l.message}. Check the Skyramp GitHub App installation on ${g}: it must be installed and not suspended, have access to these repositories, and have accepted the App's current permissions. Each account must also be connected to your Skyramp organization.`,l.status,l.code)});return this.credentials[t]=u,(await u).token}jobToken(){if(this.deps.sourceToken)return this.deps.sourceToken;throw new Error("The app answered the credentials request without a token, and the job gave Testbot none of its own: on Azure Pipelines, set SYSTEM_ACCESSTOKEN to $(System.AccessToken) in the Testbot step's env.")}sourceFetch(t){return t.fetch??this.deps.fetch??fetch}revokeTokens(t={}){let n=t.host??F0();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 SW(e,t,n){EW(e,"run id"),zT(n.origin);let i={statedPins:!0,credentialKinds:!0},r=MC(e,t,i),s=`/api/v1/runner/runs/${e}/attempts`,a;for(;;)try{a=await qT(n,"POST",s,r);break}catch(p){let f=p instanceof pi&&p.status===400?Mbe(p,i):void 0;if(!f)throw p;i[f]=!1,r=MC(e,t,i)}let c=G1(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}`);Lbe(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 hA(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(SW,"startV3Attempt");function Mbe(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(Mbe,"handshakeFieldRefused");function Lbe(e,t){if(t.length===0)return;if(!x1(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=>Di(r.repository))),i=new Set;for(let r of t){let s=Di(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(Lbe,"checkAttemptPins");async function JT(e,t){return O1.parse(await e.send("POST",`/api/v1/runner/attempts/${e.attemptId}/heartbeat`,{schemaVersion:1},t))}o(JT,"heartbeatV3Attempt");async function kW(e,t=()=>new Date,n){if(e.closure)return e.closure;let i=await JT(e,n).then(r=>M1(r,t())).catch(()=>null);return i&&(e.closure=i),i}o(kW,"closedV3Attempt");var L9e=10*6e4;var j9e=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE"];var G9e=d.object({tests:d.object({placements:d.array(d.unknown()).optional()}).passthrough().optional()}).passthrough(),V9e=d.object({repository:DC,testType:d.string(),directory:d.string()}).passthrough();var z9e=d.object({report:d.object({language:d.string()}).passthrough()}).passthrough();var q9e=d.object({environment:d.object({components:d.array(d.unknown()).optional(),dependencies:d.array(d.unknown()).optional()}).passthrough()}).passthrough(),J9e=d.object({environment:d.object({offLimits:d.unknown().optional()}).passthrough()}).passthrough();var H9e=d.object({environment:d.object({allowedEgress:d.unknown().optional()}).passthrough()}).passthrough();var Y9e=d.object({name:d.string().min(1),provision:d.literal("existing"),url:d.string().min(1),repository:DC.optional(),revisionUrl:d.string().min(1).optional()}).passthrough(),W9e=d.object({name:d.string().min(1),url:d.string().nullable(),versionUrl:d.string().nullable(),notes:d.string().nullable()}).passthrough();var Z9e=new Set(["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"]);function BW(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(BW,"statusCounts");function jbe(e){let{passed:t,failed:n,skipped:i}=BW(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(jbe,"executedTestsValidation");function Gbe(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??FC(u,c.testType,l,p&&c.endpoint||void 0)}),s=new Map;for(let c of r)s.set(c,(s.get(c)??0)+1);let a=new Set(r.filter(c=>s.get(c)===1));return n.map(({result:c,repository:u},l)=>{let p=r[l],f=p;if(s.get(p)>1&&a.has(p))for(let g=2;a.has(f)||f===p;g+=1)f=p.includes("#")?`${p}.${g}`:`${p}#${g}`;return a.add(f),{...c,repository:u,resultId:f}})}o(Gbe,"withResultIds");function Vbe({notTranslated:e,...t},n){let i=Gbe(t.testResults,n);return{...t,testResults:i,...zbe(t,i,n),validation:Hbe(Ybe(t,qbe(t,t.validation??jbe(t)))),traceVersion:1}}o(Vbe,"v3Report");function zbe(e,t,n){if(!e.testExecutionContexts)return{};let i=new Set,r=o(c=>{let u=c;for(let l=2;i.has(u);l+=1)u=`${c}#${l}`;return i.add(u),u},"unique"),s=[],a=new Map;for(let{repository:c,...u}of e.testExecutionContexts){let l=u.status==="not_run"?[]:t.filter(p=>p.fileName===u.test&&p.repository===(c?.trim()||n));l.length||s.push(u);for(let{resultId:p}of l){let f=a.get(p),g=f!==void 0&&s[f].cleanup.status==="failed"?s[f].cleanup:u.cleanup,h={...u,cleanup:g,test:p,resultId:p};f===void 0?a.set(p,s.push(h)-1):s[f]=h}}for(let c of s)c.resultId&&i.add(c.resultId);return{testExecutionContexts:s.map(c=>c.resultId?c:{...c,test:r(c.test.slice(0,512))}).slice(0,5e3)}}o(zbe,"linkedContexts");function qbe(e,t){let{passed:n,failed:i}=BW(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(qbe,"withEvidence");var Jbe={"model-provider-denied":"model_provider_denied","model-provider-unavailable":"model_provider_unavailable"};function Hbe(e){return{...e,gaps:Rf(e.gaps)}}o(Hbe,"boundedGaps");function Ybe(e,t){if(t.sufficiency==="sufficient")return t;let n=(e.caveats??[]).map(r=>Jbe[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(Ybe,"withModelProviderFailure");function Wbe(e,t,n){let{language:i,report:r}=t;if(i==="en")return;let s={language:i,businessCaseAnalysis:r.businessCaseAnalysis},a=o((I,E,v)=>Array.isArray(I)&&Array.isArray(E)&&I.length===E.length?I.map(C=>({[v]:C[v]})):void 0,"rows"),c=e.validation;r.validation&&c&&c.rationale===n.validation.rationale&&JSON.stringify(Rf(c.gaps))===JSON.stringify(n.validation.gaps)&&Rf(r.validation.gaps).length===n.validation.gaps.length&&(s.validation={rationale:r.validation.rationale,gaps:Rf(r.validation.gaps)});let u=new Set((n.changes??[]).map(I=>I.id)),l=(r.changes??[]).filter(I=>u.has(I.id)).map(({id:I,text:E})=>({id:I,text:E}));l.length&&(s.changes=l);let p=new Set((n.requirements??[]).filter(I=>I.statement!==void 0).map(I=>I.id)),f=(r.requirements??[]).flatMap(({id:I,statement:E})=>p.has(I)&&I.length>0&&I.length<=hp.id&&E?.trim()?[{id:I,statement:E.slice(0,hp.statement)}]:[]);f.length&&(s.requirements=f.slice(0,hp.rows));let g=a(r.issuesFound,n.issuesFound,"description");g&&(s.issuesFound=g);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 b=a(r.caveats,n.caveats,"text");return b&&(s.caveats=b),s}o(Wbe,"v3Display");async function RW(e,t){let n=gj([...e.issuedTokens,...t.secrets??[]]),i={...Vbe(t.report,t.workingSlug),...t.notTranslated?{notTranslated:t.notTranslated}:{}},r=t.translated&&Wbe(t.report,t.translated,i),s=Zbe(ua(t.delivery,n)),a=t.sources.map(({repository:m,revision:b})=>({repository:m,revision:b})),c=ua(i,n),u=r&&PC.safeParse(ua(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,b)=>V1({manifest:e.manifest,attemptNumber:e.attemptNumber,checkedOut:a,firstQualification:t.firstQualification,generatedTests:m,producer:t.producer,report:b&&l?{...c,display:l}:c,githubWrites:t.githubWrites}),"build"),f=o((m,b)=>wW(JSON.stringify(p(m,b))),"encode"),g=(s.status==="partial"||s.status==="failed")&&s.failures?.some(m=>m.heldBack)?{...s,failures:s.failures.map(({heldBack:m,...b})=>b)}:void 0,h=[{delivery:s,display:!!l}];g&&h.push({delivery:g,display:!!l}),l&&(h.push({delivery:s,display:!1}),g&&h.push({delivery:g,display:!1}));for(let[m,b]of h.entries()){let I;try{I=f(b.delivery,b.display)}catch(E){if(!(E instanceof gA)||m===h.length-1)throw E;continue}l&&!b.display&&e.log("Testbot V3: omitted the translated display to fit the report upload."),b.delivery===g&&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(I);return}}o(RW,"uploadV3Report");async function HT(e,t,n){if(!d.string().uuid().safeParse(t).success)return{refusal:"no_environment"};let i;try{i=U1.parse(await e.send("GET",l1.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(HT,"fetchV3PersistentDataPolicy");async function xW(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 HT(e,i,r);return"refusal"in a?{allowed:!1,refusal:a.refusal}:a.policy.allowed?a.policy.revision!==s.revision?{allowed:!1,refusal:"changed"}:Yh(t,a.policy,n)?{allowed:!0,policy:a.policy}:{allowed:!1,refusal:"out_of_scope"}:{allowed:!1,refusal:"denied"}}o(xW,"currentV3PersistenceDecision");var mW=o((e,t=am)=>e.length>t?`${e.slice(0,t-1)}\u2026`:e,"boundDeliveryMessage");function Zbe(e){let t=o(n=>n.map(i=>({...i,message:mW(i.message)})),"bound");return e.status==="partial"?{...e,failures:t(e.failures)}:e.status==="failed"?{...e,message:mW(e.message),...e.failures&&{failures:t(e.failures)}}:e}o(Zbe,"boundDeliveryMessages");async function QW(e,t){return EW(e.attemptId,"attempt id"),qT(t,"POST",`/api/v1/runner/attempts/${e.attemptId}/end`,z1({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"}))}o(QW,"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:
|