PageSourceSearch

https://supraos.ai/_next/static/chunks/98432-5a9ff594bb29a7b6.js

js supraos.ai collected 2026-10-05 12:44:27 UTC 22,645 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98432],{5963:(e,a,t)=>{t.d(a,{N:()=>r});var i=t(95155);function r(e){let{lines:a,more:t=0}=e;return a.length?(0,i.jsxs)("div",{"data-sx":"sx-5b1269c4ee","data-fidelity":"quality-check-findings",style:{color:"var(--t3)",fontFamily:"var(--vms-font-mono)",fontSize:"var(--vms-fs-11-5)",lineHeight:1.5,marginTop:4,whiteSpace:"pre-wrap",overflowWrap:"anywhere",minWidth:0},children:[a.map((e,a)=>(0,i.jsx)("div",{"data-sx":"sx-fa0e38be2a",children:e},a)),t>0?(0,i.jsxs)("div",{"data-sx":"sx-2a75c3ebd3",children:["+ ",t," more"]}):null]}):null}},86688:(e,a,t)=>{t.d(a,{AppliesNowSection:()=>c});var i=t(95155),r=t(12115),s=t(42751),n=t(5963);let o={passed:{color:"var(--wrench)",background:"var(--build-green-tint)"},attention:{color:"var(--planner)",background:"var(--build-amber-tint)"},running:{color:"var(--build-sub)",background:"var(--build-tint)"},interrupted:{color:"var(--build-sub)",background:"var(--build-tint)"},"cannot-run":{color:"var(--build-sub)",background:"var(--build-tint)"},inconclusive:{color:"var(--build-sub)",background:"var(--build-tint)"},waiting:{color:"var(--build-sub)",background:"var(--build-tint)"},"no-runner":{color:"var(--build-faint)",background:"var(--build-tint)"},"not-run":{color:"var(--build-faint)",background:"var(--build-tint)"}};function l(e){var a;let{model:t}=e,r=o[t.state],l=(0,i.jsxs)(s.TChip,{title:"".concat(t.label,": ").concat(t.stateLabel).concat(t.detail?" — ".concat(t.detail):""),c:r.color,bg:r.background,style:{fontSize:"var(--vms-fs-9)",whiteSpace:"nowrap"},children:[t.label," ",t.symbol,t.durationLabel?" ".concat(t.durationLabel):""]});return"attention"===t.state&&(null==(a=t.findingLines)?void 0:a.length)?(0,i.jsxs)("details",{"data-sx":"sx-e71e485a6b","data-fidelity":"lc-chip-attention",style:{minWidth:0,maxWidth:"100%"},children:[(0,i.jsx)("summary",{"data-sx":"sx-610cb57b3c","aria-label":"".concat(t.label,": ").concat(t.stateLabel),style:{cursor:"pointer"},children:l}),(0,i.jsx)(n.N,{lines:t.findingLines,more:t.moreFindings})]}):(0,i.jsx)("span",{"data-sx":"sx-d8cb53c1b4","data-fidelity":"lc-chip-".concat(t.state),children:l})}let d="supraos-active-quality-checks-open-rows";function c(e){let{model:a}=e,[t,s]=(0,r.useState)({}),n=(0,r.useId)().replace(/:/g,"");return((0,r.useEffect)(()=>{s(function(){try{let e=window.localStorage.getItem(d),a=e?JSON.parse(e):null;if(a&&"object"==typeof a&&!Array.isArray(a))return a}catch(e){}return{}}())},[]),a)?(0,i.jsxs)("section",{"data-sx":"sx-a141951c66","data-fidelity":"lc-applies-now",style:{fontFamily:"var(--build-font-body)",color:"var(--build-text)"},children:[(0,i.jsx)("div",{"data-sx":"sx-c9b0327698",style:{fontFamily:"var(--build-font-mono)",color:"var(--build-faint)",fontSize:"var(--vms-fs-10)",letterSpacing:.6,marginBottom:10},children:a.eyebrow}),0===a.rows.length?(0,i.jsx)("div",{"data-sx":"sx-79b3f31db4","data-fidelity":"lc-empty",style:{fontSize:"var(--vms-fs-11-5)",color:"var(--build-faint)",padding:"2px 0 12px"},children:a.emptyMessage}):a.rows.map((e,r)=>{let o=!0===t[e.id],c=e.checks.filter(e=>"passed"===e.state||"attention"===e.state).length,u="lc-checks-".concat(n,"-").concat(e.id.replace(/[^a-z0-9_-]+/gi,"-"));return(0,i.jsxs)("div",{"data-sx":"sx-75e033d0b0","data-fidelity":"lc-rule-row",style:{padding:"8px 0",borderBottom:r<a.rows.length-1?"1px solid var(--build-border)":void 0},children:[(0,i.jsx)("div",{"data-sx":"sx-93852beb57",style:{fontSize:"var(--vms-fs-12)",fontWeight:600},children:e.name}),(0,i.jsx)("div",{"data-sx":"sx-9ad5076c03",style:{marginTop:2,fontSize:"var(--vms-fs-10-5)",color:"var(--build-faint)"},children:e.reason}),(0,i.jsxs)("button",{"data-sx":"sx-422df22bc0",type:"button","data-fidelity":"lc-checks-toggle","aria-expanded":o,"aria-controls":u,onClick:()=>{let a={...t,[e.id]:!o};s(a);try{window.localStorage.setItem(d,JSON.stringify(a))}catch(e){}},style:{display:"flex",alignItems:"center",gap:5,marginTop:7,padding:0,border:0,background:"none",color:"var(--build-faint)",cursor:"pointer",fontFamily:"var(--build-font-mono)",fontSize:"var(--vms-fs-9-5)"},children:[(0,i.jsx)("span",{"data-sx":"sx-512dc53fe9","aria-hidden":"true",style:{display:"inline-block",transform:o?"rotate(90deg)":"none",transition:"transform .15s"},children:"▶"}),(0,i.jsxs)("span",{"data-sx":"sx-6faade74c2",children:[e.checks.length," check",1===e.checks.length?"":"s"," \xb7 ",c," run"]})]}),(0,i.jsx)("div",{"data-sx":"sx-346f2e62af",id:u,"data-fidelity":"lc-checks",hidden:!o,style:{display:o?"flex":void 0,flexWrap:"wrap",alignItems:"center",gap:5,marginTop:7},children:o&&e.checks.map(e=>(0,i.jsx)(l,{model:e},e.id))})]},e.id)})]}):null}},98432:(e,a,t)=>{t.r(a),t.d(a,{MacrosSection:()=>f,QUALITY_CHECKS_OPEN_KEY:()=>u});var i=t(95155),r=t(12115),s=t(73073),n=t(71247),o=t(17939),l=t(42751),d=t(86688),c=t(60160);let u="supraos-quality-checks-open";function f(e){var a,t,f;let{projectId:p,projectName:v,canRunQualityChecks:x,isDesktop:y=!1,workspaceChecked:m=!1,workspacePath:g=null,onChooseFolder:k,onToast:j,fixture:w}=e,{supraAddress:S}=(0,s.vT)(),[T,C]=(0,r.useState)(!!w||null),[z,_]=(0,r.useState)(null!=(a=null==w?void 0:w.macros)?a:[]),[L,W]=(0,r.useState)(null!=(t=null==w?void 0:w.proposals)?t:[]),[E,F]=(0,r.useState)(null),[I,A]=(0,r.useState)("all"),[N,R]=(0,r.useState)(null),[q,Q]=(0,r.useState)(()=>new Set),[B,M]=(0,r.useState)(null),[H,O]=(0,r.useState)(!1);(0,r.useEffect)(()=>{O(function(){try{return"true"===window.localStorage.getItem(u)}catch(e){return!1}}())},[]);let P=(0,r.useCallback)(e=>{Q(a=>
1{let t=new Set(a);return t.has(e)?t.delete(e):t.add(e),t})},[]),D=void 0===w,J=(0,r.useCallback)(async()=>{if(D&&p&&S)try{var e;let a=await (0,n.authFetch)("/api/supraos-build/projects/"+p+"/macros",{address:S,method:"GET"});if(!a.ok)return void C(!1);let t=await a.json().catch(()=>null);if(!t||!0!==t.enabled)return void C(!1);C(!0),_(Array.isArray(t.macros)?t.macros:[]),W(Array.isArray(t.proposals)?t.proposals:[]),F(null!=(e=t.verdict_summary)?e:null)}catch(e){C(!1)}},[D,p,S]);if((0,r.useEffect)(()=>{J()},[J]),(0,r.useEffect)(()=>{if(!D||!p||!S)return;let e=!1,a=()=>{(0,n.authFetch)("/api/supraos-build/projects/".concat(p,"/applies-now"),{address:S,method:"GET"}).then(e=>e.ok?e.json():null).then(a=>{var t;!e&&(null==a?void 0:a.enabled)&&M(null!=(t=a.model)?t:null)}).catch(()=>{})};a();let t=setInterval(a,12e3),i=()=>a();return window.addEventListener("focus",i),document.addEventListener("visibilitychange",i),()=>{e=!0,clearInterval(t),window.removeEventListener("focus",i),document.removeEventListener("visibilitychange",i)}},[D,p,S]),D&&!p||!0!==T)return null;let Y=async e=>{if(N)return;if(!D)return void j("bundle toggle — available in the app");if(!p||!S)return;let a=e.checks.filter(e=>!e.mandatory),t=!a.some(e=>e.on),i=a.filter(e=>e.on!==t);if(0!==i.length){R(e.id);try{for(let e of i){let a=await (0,n.authFetch)("/api/supraos-build/projects/"+p+"/macros",{address:S,method:"POST",body:{action:t?"enable_platform_check":"disable_platform_check",rule_id:e.id}});if(!a.ok){let e=await a.json().catch(()=>({}));j((0,c.Sl)(e.error),"error");return}}j(t?i.length+" checks back on — your choice is locked in; future work includes them again":i.length+" checks off for this project — your choice is locked in; future work leaves them out")}catch(e){j("That didn't apply — try again.","error")}finally{await J(),R(null)}}},G=async(e,a)=>{if(!N){if(!D)return void j(e+" — available in the app");if(p&&S){R(a);try{let t=await (0,n.authFetch)("/api/supraos-build/projects/"+p+"/macros",{address:S,method:"POST",body:{action:e,rule_id:a}});if(t.ok)"promote"===e?j("Added to this project’s Quality Checks — your choice is locked in"):"decline"===e?j("Proposal declined — your choice is locked in"):"disable"===e||"disable_platform_check"===e?j("Quality check off for this project — your choice is locked in; future work leaves it out"):j("Quality check back on — your choice is locked in; future work includes it again");else{let e=await t.json().catch(()=>({}));j((0,c.Sl)(e.error),"error")}await J()}catch(e){j("That didn't apply — try again.","error")}finally{R(null)}}}},K=new Set(z.flatMap(e=>{if("active"!==e.ledgerStatus)return[];let a=e.macroDef;return"string"==typeof(null==a?void 0:a.name)&&a.name.startsWith("platform-check-disable:")&&Array.isArray(a.disables)?a.disables.filter(e=>"string"==typeof e):[]})),U=[...(null!=(f=null==w?void 0:w.platform)?f:o.Mq).map(e=>(0,c.bp)(e,K)),...z.filter(e=>{let a=e.macroDef;return!("string"==typeof(null==a?void 0:a.name)&&a.name.startsWith("platform-check-disable:"))}).map(c.Jk)],V=(0,c.Yr)(U,I),X=L.map(c.uA),Z=U.reduce((e,a)=>e+a.checks.filter(e=>e.on).length,0),$=U.reduce((e,a)=>e+a.checks.filter(e=>e.on&&e.executable).length,0),ee="".concat(U.length," ").concat(1===U.length?"bundle":"bundles")+" \xb7 ".concat(Z," ").concat(1===Z?"check":"checks")+" \xb7 ".concat($," can run today"),ea={fontFamily:"var(--build-font-mono)",color:"var(--build-faint)"};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.AppliesNowSection,{model:B}),!x&&p&&(0,i.jsxs)("div",{"data-sx":"sx-e13c936e64","data-testid":"quality-checks-unavailable",role:"note",style:{marginTop:16,padding:"12px",borderRadius:"var(--vms-radius-card)",background:"var(--build-tint)",color:"var(--build-sub)",fontSize:"var(--vms-fs-11-5)",lineHeight:1.5},children:[(0,i.jsx)("div",{"data-sx":"sx-10b1fb502b",style:{color:"var(--t0)",fontWeight:650},children:"Quality Checks catch mistakes before they cause problems."}),y?m?m&&!g?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{"data-sx":"sx-3809325679",style:{marginTop:4},children:[v||"This project"," doesn't have a folder on this computer yet."]}),(0,i.jsx)("div",{"data-sx":"sx-d6128f88ea",style:{marginTop:4},children:"Choose the folder where the agent can read and change this project's files."}),(0,i.jsx)("button",{"data-sx":"sx-8b8afd22fd",type:"button",disabled:!k,title:k?"Pick the folder on this computer that holds this project's files.":"Choosing a folder is not available from this screen — open the session's right drawer.",onClick:()=>{null==k||k()},style:{display:"inline-flex",alignItems:"center",minHeight:30,marginTop:9,padding:"0 11px",border:"1px solid var(--bd)",borderRadius:"var(--vms-radius-control)",background:"var(--sf)",color:"var(--t0)",fontWeight:650,cursor:"pointer",...k?{}
1:{cursor:"default",opacity:.55}},children:"Choose folder"})]}):(0,i.jsx)("div",{"data-sx":"sx-2281cb5373",style:{marginTop:4},children:"Quality Checks turn on the first time the agent works inside this project's folder. This updates by itself."}):(0,i.jsx)("div",{"data-sx":"sx-0378b4e53b",style:{marginTop:4},children:"Checking whether this project has a folder on this computer. Quality Checks will update when that finishes."}):(0,i.jsx)("div",{"data-sx":"sx-e7da110c06",style:{marginTop:4},children:"Quality Checks need the SupraOS desktop app, which can work with your project's files on this computer."})]}),(0,i.jsxs)("div",{"data-sx":"sx-2a025abb0a","data-fidelity":"n94-section",style:{position:"relative",marginTop:16,paddingTop:14,borderTop:"1px solid var(--bd)",fontFamily:"var(--build-font-body)",color:"var(--t0)"},children:[(0,i.jsxs)("button",{"data-sx":"sx-31c960cbae",type:"button","data-fidelity":"n94-section-toggle",onClick:()=>{let e=!H;O(e);try{window.localStorage.setItem(u,String(e))}catch(e){}},"aria-expanded":H,"aria-controls":"n94-section-content",style:{display:"block",width:"100%",textAlign:"left",padding:0,background:"none",border:"none",cursor:"pointer",font:"inherit"},children:[(0,i.jsxs)("span",{"data-sx":"sx-bab6dc4099",style:{...ea,display:"flex",alignItems:"center",gap:6,fontSize:"var(--vms-fs-10)",letterSpacing:.6},children:[(0,i.jsx)(h,{open:H}),c.Np]}),(0,i.jsx)("span",{"data-sx":"sx-094bd394fa",style:{display:"block",marginTop:3,marginLeft:14,fontSize:"var(--vms-fs-10-5)",color:"var(--build-sub)"},children:ee}),E&&(0,i.jsxs)("span",{"data-sx":"sx-7b617c69e4","data-testid":"quality-check-verdict-summary",style:{display:"block",marginTop:3,marginLeft:14,fontSize:"var(--vms-fs-10-5)",color:"var(--build-sub)"},children:[E.verdict_count," verdict",1===E.verdict_count?"":"s"," \xb7 ".concat(E.pass_count," pass")," \xb7 ".concat(E.soft_fail_count+E.hard_fail_count," fail")," \xb7 ".concat(E.skipped_count," skipped")]})]}),H&&(0,i.jsxs)("div",{"data-sx":"sx-e1ab1c79ea",id:"n94-section-content","data-fidelity":"n94-section-content",style:{marginTop:10},children:[(0,i.jsx)("div",{"data-sx":"sx-0b75b1c7fb","data-fidelity":"n94-filter",role:"group","aria-label":"Quality check scope filter",style:{display:"flex",gap:4,marginBottom:10},children:["all","platform","project"].map(e=>(0,i.jsx)("button",{"data-sx":"sx-669f3ca4be",onClick:()=>A(e),"aria-pressed":I===e,style:{fontFamily:"var(--build-font-mono)",fontSize:"var(--vms-fs-9-5)",padding:"2px 10px",borderRadius:"var(--vms-radius-chip)",border:"none",cursor:"pointer",color:I===e?"var(--build-blue)":"var(--build-faint)",background:I===e?"var(--build-blue-tint)":"var(--build-tint)"},children:e},e))}),X.map(e=>(0,i.jsxs)("div",{"data-sx":"sx-720e537730","data-fidelity":"n94-inbox",style:{background:"var(--build-amber-tint)",borderRadius:"var(--vms-radius-hero)",padding:"10px 12px",marginBottom:12},children:[(0,i.jsx)("div",{"data-sx":"sx-c650c17fbb",style:{fontFamily:"var(--build-font-mono)",fontSize:"var(--vms-fs-9)",color:"var(--planner)",letterSpacing:.5,textTransform:"uppercase"},children:"proposed \xb7 graduated from your asks"}),(0,i.jsx)("div",{"data-sx":"sx-97398bd59b",style:{fontSize:"var(--vms-fs-12-5)",fontWeight:600,marginTop:4,color:"var(--build-text)"},children:e.name}),(0,i.jsx)("div",{"data-sx":"sx-60be5ed55f",style:{fontSize:"var(--vms-fs-11)",color:"var(--build-ink-planner)",marginTop:2},children:e.meta}),(0,i.jsxs)("div",{"data-sx":"sx-d006621f92",style:{display:"flex",gap:6,marginTop:8},children:[(0,i.jsx)("button",{"data-sx":"sx-70fd6167df",onClick:()=>G("promote",e.id),disabled:N===e.id,style:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:"var(--build-font-body)",fontSize:"var(--vms-fs-11)",fontWeight:600,borderRadius:"var(--vms-radius-chip)",padding:"4px 12px",color:"var(--planner)",background:"var(--build-card)",border:"none",cursor:N===e.id?"default":"pointer",opacity:N===e.id?.6:1},children:"Promote"}),(0,i.jsx)("button",{"data-sx":"sx-ef47bc6249",onClick:()=>G("decline",e.id),disabled:N===e.id,style:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:"var(--build-font-body)",fontSize:"var(--vms-fs-11)",fontWeight:600,borderRadius:"var(--vms-radius-chip)",padding:"4px 12px",color:"var(--build-sub)",background:"var(--build-card)",border:"1px solid var(--build-border)",cursor:N===e.id?"default":"pointer",opacity:N===e.id?.6:1},children:"Decline"})]})]},e.id)),0===V.length&&(0,i.jsx)("div",{"data-sx":"sx-9c8a066a4a","data-fidelity":"n94-empty",style:{fontSize:"var(--vms-fs-11)",color:"var(--build-sub)",padding:"6px 2px 10px",lineHeight:1.5},children:"project"===I?"No checks of your own yet. Describe a rule above and it will show up here, alongside the ones that come as standard.":"platform"===I?"No standard checks are switched on for this project.":"No checks yet."}),V.map(e=>(0,i.jsxs)("div",{"data-sx":"sx-4278ff3708",style:{marginBottom:10},children:[(0,i.jsxs)("div",{"data-sx":"sx-a8c43bc15f",style:{display:"flex",alignItems:"center",gap:9},children:[(0,i.jsxs)("button",{"data-sx":"sx-af43bfe527",type:"button","data-fidelity":"n94-row-toggle",onClick:()=>P(e.id),"aria-expanded":q.has(e.id),"aria-controls":"n94-checks-"+e.id,style:{flex:1,minWidth:0,textAlign:"left",padding:0,background:"none",border:"none",cursor:"pointer",font:"inherit"},children:[(0,i.jsxs)("span",{"data-sx":"sx-ec951f428e",style:{display:"flex",gap:6,alignItems:"center"},children:[(0,i.jsx)(h,{open:q.has(e.id)}),(0,i.jsx)("span",{"data-sx":"sx-52a17151a1",style:{fontSize:"var(--vms-fs-12)",fontWeight:600,color:"var(--build-text)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}
1),e.graduated&&(0,i.jsx)(l.TChip,{c:"var(--planner)",bg:"var(--build-amber-tint)",style:{fontSize:"var(--vms-fs-8-5)"},children:"graduated"})]}),(0,i.jsx)("span",{"data-sx":"sx-71c67aaff0",style:{display:"block",fontSize:"var(--vms-fs-11)",color:"var(--build-sub)",marginTop:1,marginLeft:14},children:e.plainLine}),(0,i.jsxs)("span",{"data-sx":"sx-ff193281f1",style:{...ea,display:"block",fontSize:"var(--vms-fs-9-5)",marginTop:1,marginLeft:14},children:[e.scope," \xb7 ",e.executableCount>0?e.executableCount+" of "+e.checksCount+" can run today":"none can run yet"]})]}),e.mandatory?(0,i.jsxs)(l.TChip,{style:{fontSize:"var(--vms-fs-9)"},title:"Mandatory quality checks can't be turned off at any scope",children:[(0,i.jsx)(b,{}),"mandatory"]}):e.togglable?(0,i.jsx)("button",{"data-sx":"sx-75b57b496d",onClick:()=>G(e.on?"disable":"enable",e.id),disabled:N===e.id,role:"switch","aria-checked":e.on,"aria-label":(e.on?"Disable":"Enable")+" quality check "+e.name,title:e.on?"Turn off for this project — saves your choice and teaches future work to leave it out":"Turn back on for this project — saves your choice for future work",style:{width:30,height:17,borderRadius:"var(--vms-radius-chip)",flexShrink:0,background:e.on?"var(--wrench)":"var(--build-tint)",position:"relative",cursor:N===e.id?"default":"pointer",border:"1px solid "+(e.on?"var(--wrench)":"var(--build-faint)"),padding:0},children:(0,i.jsx)("span",{"data-sx":"sx-efbb8a86a4",style:{position:"absolute",top:1.5,left:e.on?14:2,width:12,height:12,borderRadius:"50%",background:e.on?"var(--build-card)":"var(--build-sub)",transition:"left .15s"}})}):e.checks.some(e=>!e.mandatory)&&p?(0,i.jsx)("button",{"data-sx":"sx-e7687029fd",onClick:()=>void Y(e),disabled:N===e.id,role:"switch","aria-checked":e.on,"aria-label":(e.on?"Turn off":"Turn on")+" all regular checks in "+e.name+" for this project",title:e.on?"Turn off every regular check in this bundle for this project; future work drops them":"Turn every check in this bundle back on for this project",style:{width:30,height:17,borderRadius:"var(--vms-radius-chip)",flexShrink:0,background:e.on?"var(--wrench)":"var(--build-tint)",position:"relative",cursor:N===e.id?"default":"pointer",border:"1px solid "+(e.on?"var(--wrench)":"var(--build-faint)"),padding:0},children:(0,i.jsx)("span",{"data-sx":"sx-b896f983bf",style:{position:"absolute",top:1.5,left:e.on?14:2,width:12,height:12,borderRadius:"50%",background:e.on?"var(--build-card)":"var(--build-sub)",transition:"left .15s"}})}):(0,i.jsx)(l.TChip,{c:"var(--wrench)",bg:"var(--build-green-tint)",style:{fontSize:"var(--vms-fs-9)"},title:"Every check in this bundle is mandatory — always on at every scope",children:"on"})]}),q.has(e.id)&&(0,i.jsxs)("div",{"data-sx":"sx-2681650833",id:"n94-checks-"+e.id,"data-fidelity":"n94-checks",style:{marginTop:6,marginLeft:14,paddingLeft:10,borderLeft:"1px solid var(--bd)"},children:[0===e.checks.length&&(0,i.jsx)("div",{"data-sx":"sx-82180980ac",style:{fontSize:"var(--vms-fs-11)",color:"var(--build-faint)",fontStyle:"italic"},children:"No checks recorded on this rule."}),e.checks.map(a=>(0,i.jsxs)("div",{"data-sx":"sx-19561dc871","data-check-state":a.on?"on":"off",style:{marginBottom:8,opacity:a.on?1:.75},children:[(0,i.jsxs)("div",{"data-sx":"sx-bcef5bedb4",style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[(0,i.jsx)("span",{"data-sx":"sx-c7e86476f9","data-fidelity":"n94-check-id",style:{...ea,fontSize:"var(--vms-fs-10)",color:"var(--build-text)"},children:a.label}),a.mandatory&&(0,i.jsxs)(l.TChip,{style:{fontSize:"var(--vms-fs-8-5)"},title:"Can't be turned off at any scope",children:[(0,i.jsx)(b,{}),"always on"]}),"platform"===e.scope&&!a.mandatory&&p&&(0,i.jsx)("button",{"data-sx":"sx-d90c8afb2f",type:"button",role:"switch","aria-checked":a.on,"aria-label":"".concat(a.on?"Turn off":"Turn on"," ").concat(a.label," for this project"),title:a.on?"Turn off for this project; future work drops this check":"Turn on for this project; future work includes this check",disabled:N===a.id,onClick:()=>void G(a.on?"disable_platform_check":"enable_platform_check",a.id),style:{width:30,height:17,borderRadius:"var(--vms-radius-chip)",marginLeft:"auto",position:"relative",padding:0,cursor:N===a.id?"default":"pointer",background:a.on?"var(--wrench)":"var(--build-tint)",border:"1px solid ".concat(a.on?"var(--wrench)":"var(--build-faint)")},children:(0,i.jsx)("span",{"data-sx":"sx-eec8a99825",style:{position:"absolute",top:1.5,left:a.on?14:2,width:12,height:12,borderRadius:"50%",background:a.on?"var(--build-card)":"var(--build-sub)",transition:"left .15s"}})}),(0,i.jsx)(l.TChip,{c:a.executable?"var(--wrench)":"var(--build-faint)",bg:a.executable?"var(--build-green-tint)":"var(--build-tint)",style:{fontSize:"var(--vms-fs-8-5)"},title:a.executionNote,children:a.laneLabel})]}),(0,i.jsx)("div",{"data-sx":"sx-cb8c7b5ea8",style:{fontSize:"var(--vms-fs-11)",color:"var(--build-sub)",marginTop:1},children:a.contract}),(0,i.jsxs)("div",{"data-sx":"sx-be4717eaa2",style:{...ea,fontSize:"var(--vms-fs-9-5)",marginTop:1}
1,children:[a.costLabel," \xb7 ",a.cadenceLabel]}),a.blockedReason&&(0,i.jsx)("div",{"data-sx":"sx-2b1571e789","data-fidelity":"n94-check-blocked",style:{fontSize:"var(--vms-fs-10-5)",marginTop:3,color:"var(--build-sub)",lineHeight:1.45},children:a.blockedReason}),a.command&&(0,i.jsx)("div",{"data-sx":"sx-0680095f6c",style:{...ea,fontSize:"var(--vms-fs-9-5)",marginTop:1,color:"var(--build-sub)"},children:a.command})]},a.id))]})]},e.id)),(0,i.jsx)("div",{"data-sx":"sx-54f5bacd17",style:{fontSize:"var(--vms-fs-10-5)",color:"var(--build-faint)",fontStyle:"italic",lineHeight:1.6,marginTop:4},children:"Mandatory quality checks can't be disabled at any scope."})]})]})]})}function h(e){let{open:a}=e;return(0,i.jsx)("svg",{"data-sx":"sx-5c8aae144d",width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,style:{flexShrink:0,color:"var(--build-faint)",transform:a?"rotate(90deg)":"none",transition:"transform .15s"},children:(0,i.jsx)("path",{"data-sx":"sx-b133efe2a5",d:"M9 18l6-6-6-6"})})}function b(){return(0,i.jsxs)("svg",{"data-sx":"sx-5a0f22398c",width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,i.jsx)("rect",{"data-sx":"sx-20672fc9c6",x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,i.jsx)("path",{"data-sx":"sx-12f797abdb",d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.