"use strict";(self.webpackChunkfeno_web=self.webpackChunkfeno_web||[]).push([["7168"],{10371(e,s,t){t.r(s),t.d(s,{StoreSnapshot:()=>j});var n=t(10199),r=t(84117),i=t(22533),l=t(61376),o=t(6100);t(81521),t(61868);var d=t(24019),a=t(40958),h=t(36650);t(55479);var c=t(52903),x=t(9553),g=t(15919);function j(){let e=(0,r.zN)(),s=(0,i.dQ)(),t=(0,l.Ue)(),j=(0,o.eL)(),k=(0,d.hV)(),m=(0,a.ER)(),y=(0,h.wv)(),S=(0,c.nG)(),f=(0,x.xk)(),b=(0,g.x9)();return(0,n.jsxs)("div",{style:{padding:24,fontFamily:"ui-monospace, monospace",lineHeight:1.5,height:"100vh",overflow:"auto"},children:[(0,n.jsx)("h1",{style:{fontSize:22,marginBottom:16},children:"Store snapshot"}),(0,n.jsxs)("p",{style:{marginBottom:16,color:e.error?"red":"green"},children:["boot status: ",(0,n.jsx)("strong",{children:e.status}),e.error?` — ${e.error.message}`:""]}),(0,n.jsxs)(p,{title:"connection",children:[(0,n.jsx)(v,{k:"state",v:s.state}),(0,n.jsx)(v,{k:"sseState",v:s.sseState}),(0,n.jsx)(v,{k:"gatewayNodeId",v:s.gatewayNodeId??"—"}),(0,n.jsx)(v,{k:"homeDir",v:s.homeDir??"—"}),(0,n.jsx)(v,{k:"peers",v:String(s.peers.length)}),(0,n.jsx)(v,{k:"lastError",v:s.lastError??"—"})]}),(0,n.jsxs)(p,{title:`sessions (${Object.keys(t.sessions).length})`,children:[(0,n.jsx)(v,{k:"hydratedFromCache",v:String(t.hydratedFromCache)}),(0,n.jsx)(v,{k:"activeSessionId",v:t.activeSessionId??"—"}),(0,n.jsx)(v,{k:"order[0..3]",v:t.sessionOrder.slice(0,3).join(", ")||"—"})]}),(0,n.jsx)(p,{title:`threads (${Object.keys(j.threadsBySession).length})`,children:Object.entries(j.threadsBySession).slice(0,3).map(e=>{let[s,t]=e;return(0,n.jsxs)("div",{style:{marginBottom:6},children:[(0,n.jsxs)("strong",{children:[s.slice(0,12),"…"]})," phase=",t.phase," entries=",t.entries.length," pending=",t.pendingPermissions.length," rev=",t.throttledRevision]},s)})}),(0,n.jsx)(p,{title:`agents (${k.agents.length})`,children:k.agents.slice(0,6).map(e=>(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:e.id})," \xb7 node ",e.nodeId.slice(0,8),e.tags.length>0?` \xb7 ${e.tags.join(", ")}`:""]},`${e.nodeId}:${e.id}`))}),(0,n.jsxs)(p,{title:`pending approvals (${m.pendingApprovals.length})`,children:[m.pendingApprovals.slice(0,4).map(e=>(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:e.tool})," \xb7 ",e.command??"—"]},e.approvalId)),0===m.pendingApprovals.length&&(0,n.jsx)("div",{children:"(none)"})]}),(0,n.jsxs)(p,{title:`sandboxes (${y.sandboxes.length})`,children:[y.sandboxes.slice(0,4).map(e=>(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:e.name??e.id})," \xb7 ",e.state??"?"]},e.id)),0===y.sandboxes.length&&(0,n.jsx)("div",{children:"(none)"})]}),(0,n.jsxs)(p,{title:"skills",children:[(0,n.jsx)(v,{k:"nodes",v:String(Object.keys(S.skillsByDevice).length)}),(0,n.jsx)(v,{k:"lastError",v:S.lastError??"—"})]}),(0,n.jsxs)(p,{title:"knowledge",children:[(0,n.jsx)(v,{k:"roots",v:String(f.roots.length)}),(0,n.jsx)(v,{k:"files",v:String(f.files.length)}),(0,n.jsx)(v,{k:"lastError",v:f.lastError??"—"})]}),(0,n.jsxs)(p,{title:"preferences",children:[(0,n.jsx)(v,{k:"ready",v:String(b.isReady)}),(0,n.jsx)(v,{k:"fields",v:String(b.fields.length)}),(0,n.jsx)(v,{k:"sections",v:b.sections.map(e=>e.id).join(", ")||"—"}),(0,n.jsx)(v,{k:"lastError",v:b.lastError??"—"})]})]})}function p(e){let{title:s,children:t}=e;return(0,n.jsxs)("section",{style:{marginBottom:18,padding:12,border:"1px solid #ccc",borderRadius:6},children:[(0,n.jsx)("h2",{style:{fontSize:14,marginBottom:8,opacity:.7},children:s}),t]})}function v(e){let{k:s,v:t}=e;return(0,n.jsxs)("div",{style:{display:"flex",gap:12,fontSize:12},children:[(0,n.jsx)("span",{style:{minWidth:200,opacity:.6},children:s}),(0,n.jsx)("span",{children:t})]})}t(3907)}}]);