import{C as e}from"./index-Caa1r77e.js";import{t}from"./layout-BtJ5ShnN.js";import{c as n,l as r,r as i,s as a,u as o}from"./ui-Ddu9t0Or.js";import{c as s,j as c,l,s as u,t as d}from"./hatunDoctrine-aBQYhBQF.js";import{P as f}from"./generateCategoricalChart-bYKfCxJX.js";import{i as p,n as m,r as h,t as g}from"./RadarChart-Cf975fMm.js";var _=e(),v=`#c9b787`;function y(){let e=u.reduce((e,t)=>e+t.composite,0)/u.length;return(0,_.jsxs)(t,{children:[(0,_.jsx)(n,{label:`DOCTRINE · CODE BEHAVIORS`,title:`Code Behaviors — Six-Dimension Score`,subtitle:`Reward-hacking resistance, spec adherence, reversibility preference, oversight friendliness, sandbox respect, and self-modification restraint — measured per agent.`,status:`LIVE`}),(0,_.jsxs)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-3 mb-6`,children:[(0,_.jsx)(a,{label:`AGENTS SCORED`,value:u.length,sub:`all in production`,accent:v}),(0,_.jsx)(a,{label:`AVG COMPOSITE`,value:c(e),sub:`across 6 dims`,accent:v}),(0,_.jsx)(a,{label:`DIMENSIONS`,value:6,sub:`behavioral`,accent:v}),(0,_.jsx)(a,{label:`EVAL SUITE`,value:`cb-1.3`,sub:`versioned, replayable`,accent:v})]}),(0,_.jsx)(o,{children:`Per-Agent Profile`}),(0,_.jsx)(`div`,{className:`grid md:grid-cols-2 lg:grid-cols-3 gap-4`,children:u.map(e=>{let t=s.map(t=>({dim:l[t].split(` `).map(e=>e.slice(0,4)).join(` `),score:Math.round(e.scores[t]*100)}));return(0,_.jsxs)(i,{children:[(0,_.jsx)(`div`,{className:`flex items-start justify-between gap-2 mb-2`,children:(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`div`,{className:`text-sm font-semibold`,style:{color:`var(--color-a11oy-text)`},children:d[e.agentId]}),(0,_.jsxs)(`div`,{className:`text-xs`,style:{color:`var(--color-a11oy-text-ghost)`},children:[`composite `,c(e.composite)]})]})}),(0,_.jsx)(`div`,{className:`-mx-2`,children:(0,_.jsx)(f,{width:`100%`,height:170,children:(0,_.jsxs)(g,{data:t,margin:{top:8,right:24,bottom:8,left:24},children:[(0,_.jsx)(p,{stroke:`rgba(255,255,255,0.08)`}),(0,_.jsx)(h,{dataKey:`dim`,tick:{fill:`#8a8a8a`,fontSize:9}}),(0,_.jsx)(m,{dataKey:`score`,stroke:v,fill:v,fillOpacity:.18})]})})}),(0,_.jsx)(`div`,{className:`flex flex-col gap-1.5 mt-2`,children:s.map(t=>(0,_.jsxs)(`div`,{className:`text-xs flex items-center gap-2`,children:[(0,_.jsx)(`span`,{className:`w-32 flex-shrink-0`,style:{color:`var(--color-a11oy-text-ghost)`},children:l[t]}),(0,_.jsx)(`div`,{className:`flex-1`,children:(0,_.jsx)(r,{value:e.scores[t]*100})}),(0,_.jsx)(`span`,{className:`font-mono w-10 text-right`,style:{color:`var(--color-a11oy-text)`},children:Math.round(e.scores[t]*100)})]},t))}),e.notableWeakness&&(0,_.jsx)(`div`,{className:`text-xs mt-3 px-2.5 py-2 rounded`,style:{backgroundColor:`rgba(201,183,135,0.06)`,borderLeft:`2px solid #c9b787`,color:`var(--color-a11oy-text-sub)`},children:e.notableWeakness})]},e.agentId)})})]})}export{y as CodeBehaviors};