1import{S as p,r as o,j as e,bo as m,au as l,e9 as x,br as j,c8 as u,aI as g,ea as v,bG as _,bt as b}from"./vendor-Cqoq7rcD.js";import{B as d,b as f}from"./index-Cf6tT3Pz.js";async function k(){const s=await fetch("/_api/ceo-assistant/command",{credentials:"include"}),t=await s.text();if(!s.ok)throw new Error(t||"Unable to load CEO Assistant command workspace");return p.parse(t)}const C="_page_hbctu_1",E="_hero_hbctu_1",N="_snapshot_hbctu_1",P="_team_hbctu_1",A="_panel_hbctu_1",w="_grid_hbctu_1",S="_panelTitle_hbctu_1",y="_item_hbctu_1",O="_error_hbctu_1",r={page:C,hero:E,snapshot:N,team:P,panel:A,grid:w,panelTitle:S,item:y,error:O},R=s=>s==="risk"?g:s==="opportunity"?v:s==="decision"?_:b;function a({title:s,kind:t,items:n}){const c=R(t);return e.jsxs("section",{className:r.panel,children:[e.jsxs("div",{className:r.panelTitle,children:[e.jsx(c,{size:19}),e.jsx("h2",{children:s})]}),n.map((i,h)=>e.jsxs("article",{className:r.item,children:[e.jsxs("div",{children:[e.jsx(f,{variant:i.level==="critical"?"destructive":i.level==="high"?"warning":"secondary",children:i.level.toUpperCase()}),e.jsx("h3",{children:i.title}),e.jsx("p",{children:i.detail})]}),i.path&&e.jsx(d,{asChild:!0,size:"sm",variant:"outline",children:e.jsxs(l,{to:i.path,children:["Open ",e.jsx(u,{size:14})]})})]},`${i.title}-${h}`))]})}function D(){const[s,t]=o.useState(null),[n,c]=o.useState("");return o.useEffect(()=>{k().then(t).catch(i=>c(i instanceof Error?i.message:"Unable to load"))},[]),n?e.jsx("main",{className:r.page,children:e.jsx("div",{className:r.error,children:n})}):s?e.jsxs("main",{className:r.page,children:[e.jsxs("header",{className:r.hero,children:[e.jsxs("div",{children:[e.jsxs("span",{children:[e.jsx(m,{size:16})," Phase 2 Executive Intelligence"]}),e.jsx("h1",{children:"CEO Assistant Command Workspace"}),e.jsx("p",{children:"Decision support built from live Launch Engine Pro operating data. Priorities and risks change as the real pipeline changes; sensitive or external actions remain approval-gated."})]}),e.jsx(d,{asChild:!0,variant:"outline",children:e.jsxs(l,{to:"/ai-employees/ceo_assistant",children:[e.jsx(x,{size:16})," Manage CEO Assistant"]})})]}),e.jsxs("section",{className:r.snapshot,children:[e.jsxs("div",{children:[e.jsx("strong",{children:s.metrics.serviceRequests}),e.jsx("span",{children:"Service requests"})]}),e.jsxs("div",{children:[e.jsx("strong",{children:s.metrics.providerProspects}),e.jsx("span",{children:"Provider prospects"})]}),e.jsxs("div",{children:[e.jsx("strong",{children:s.metrics.verifiedProviders}),e.jsx("span",{children:"Verified providers"})]}),e.jsxs("div",{children:[e.jsx("strong",{children:s.metrics.publishedServices}),e.jsx("span",{children:"Published services"})]}),e.jsxs("div",{children:[e.jsx("strong",{children:s.metrics.marketplaceOrders}),e.jsx("span",{children:"Marketplace orders"})]})]}),e.jsxs("section",{className:r.team,children:[e.jsxs("div",{children:[e.jsx(j,{}),e.jsxs("div",{children:[e.jsx("span",{children:"AI workforce"}),e.jsxs("strong",{children:[s.team.active," active · ",s.team.paused," paused"]})]})]}),e.jsxs("div",{children:[e.jsx("span",{children:"Pending assignments"}),e.jsx("strong",{children:s.team.pendingAssignments})]}),e.jsxs("div",{children:[e.jsx("span",{children:"In progress"}),e.jsx("strong",{children:s.team.inProgressAssignments})]})]}),e.jsxs("div",{className:r.grid,children:[e.jsx(a,{title:"Today's Priorities",kind:"priority",items:s.priorities}),e.jsx(a,{title:"Revenue Opportunities",kind:"opportunity",items:s.opportunities}),e.jsx(a,{title:"Problems & Risks",kind:"risk",items:s.risks}),e.jsx(a,{title:"Decisions Needed",kind:"decision",items:s.decisions})]}),e.jsxs("footer",{children:["Executive brief generated ",new Date(s.generatedAt).toLocaleString()," from current platform records."]})]}):e.jsx("main",{className:r.page,children:e.jsx("p",{children:"Preparing executive command brief..."})})}export{D as default};
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.