1import{r as l,j as e}from"./vendor-react-DCOUjFOW.js";import{e as p}from"./voiceCallPersist-DrQUUqU6.js";import{o as f}from"./superbrain-DVRYK4Ht.js";import{M as u}from"./superbrain-dl_C5KPR.js";import{M as t,C as c,a as h}from"./ui-CHZE6in9.js";import{P as j}from"./ProofReceipt-DWYi8WXJ.js";import"./vendor-markdown-CspMetsA.js";import"./appChat-CpANANN-.js";import"./gaiaDm-CApNol3y.js";import"./index-uYSXu1h3.js";import"./vendor-motion-ouicGSLU.js";import"./api-DFAJPzYh.js";function F({token:i}){const[o,d]=l.useState(void 0),[n,m]=l.useState(void 0),[a,x]=l.useState(null);return l.useEffect(()=>{let s=!0;return f(i).then(r=>{s&&d(r?r.proofs:null)}),p(i).then(r=>{s&&m(r?.rings??null)}),()=>{s=!1}},[i]),e.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[1fr_380px]",children:[e.jsx("div",{className:"flex min-w-0 flex-col gap-3",children:o===void 0?e.jsx("p",{className:"text-[13px]",style:{color:t},children:"Loading receiptsâ¦"}):o===null?e.jsx("p",{className:"text-[13px]",style:{color:t},children:"The receipts ledger didn't answer."}):o.length?o.map(s=>e.jsxs("div",{children:[e.jsx(c,{className:a===s.id?"border-[#C9A84C33]":"",children:e.jsxs("button",{type:"button",className:"flex w-full items-center gap-3 text-left",onClick:()=>x(a===s.id?null:s.id),children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-[13.5px] text-[#F0EDE6]",children:s.objective}),e.jsxs("div",{className:"mt-0.5 font-mono text-[11px]",style:{color:t},children:[u[s.mode]," · ",new Date(s.generatedAt).toLocaleString()," · ",s.sources.length," sources · ",s.contradictionsFound," contradictions"]})]}),e.jsx("span",{className:"font-mono text-[11px] tabular-nums",style:{color:t},children:s.confidence===null?"â":`${s.confidence}%`})]})}),a===s.id?e.jsx("div",{className:"mt-2",children:e.jsx(j,{proof:s})}):null]},s.id)):e.jsx(c,{children:e.jsx("p",{className:"text-[13px]",style:{color:t},children:"No receipts yet â every completed mission produces one, assembled from its event log."})})}),e.jsx("aside",{children:e.jsxs(c,{children:[e.jsx(h,{meta:"derived by the door",children:"Permissions"}),e.jsx("p",{className:"mb-3 text-[12px] leading-relaxed",style:{color:t},children:"The rings this session can touch â the door derives them from your proven identity, never from a request parameter. This IS the permission surface missions run inside."}),n===void 0?e.jsx("p",{className:"text-[12.5px]",style:{color:t},children:"Loading the catalogâ¦"}):n===null?e.jsx("p",{className:"text-[12.5px]",style:{color:t},children:"The brain door didn't answer."}):e.jsx("ul",{className:"flex flex-col",children:n.map(s=>e.jsxs("li",{className:"border-b border-white/[0.04] py-2 last:border-0",children:[e.jsxs("div",{className:"flex items-baseline gap-2",children:[e.jsx("span",{className:"text-[13px] text-[#F0EDE6]",children:s.name}),e.jsx("span",{className:"font-mono text-[10.5px]",style:{color:t},children:s.kind}),e.jsx("span",{className:"ml-auto font-mono text-[10.5px]",style:{color:s.writable?"#2FBF71":t},children:s.writable?"read · write":"read"})]}),e.jsxs("div",{className:"mt-0.5 font-mono text-[10.5px] tabular-nums",style:{color:t},children:[typeof s.member_count=="number"?`${s.member_count} members`:"",typeof s.stats?.fact_count=="number"?` · ${s.stats.fact_count} facts`:""]})]},s.slug))})]})})]})}export{F 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.