PageSourceSearch

https://4rth.ai/_next/static/chunks/pages/deck/stack-monitoring/redis-3c5005dd274ee0de.js

js 4rth.ai collected 2026-10-05 15:11:18 UTC 6,482 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2769],{26:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/deck/stack-monitoring/redis",function(){return s(51592)}])},23551:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(17963).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},29053:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(17963).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},32257:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(17963).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},51592:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var a=s(37876),r=s(14232),n=s(31777),l=s(89099),c=s(48230),o=s.n(c),d=s(89926),i=s(23551),x=s(1962),h=s(88236),p=s(71374);function m(){var e,t,s;let c=(0,n.d4)(e=>e.auth.user),m=(0,n.d4)(e=>e.auth.loading),u=(0,l.useRouter)(),{detail:y,loading:j,reload:N}=function(){let[e,t]=(0,r.useState)(null),[s,a]=(0,r.useState)(!0),n=(0,r.useCallback)(async()=>{a(!0),t(await (0,p.$o)()),a(!1)},[]);return(0,r.useEffect)(()=>{n()},[n]),{detail:e,loading:s,reload:n}}();if((0,r.useEffect)(()=>{m||c&&!c.guestUser&&"admin"===c.role||u.replace("/")},[c,m,u]),m||!c||"admin"!==c.role)return null;let f=null!=(e=null==y?void 0:y.groups)?e:[];return(0,a.jsxs)(x.A,{title:"Stack Monitoring",children:[(0,a.jsxs)(o(),{href:"/deck/stack-monitoring",className:"inline-flex items-center gap-1 text-xs text-[#78716C] hover:text-[#1C1917] mb-4",children:[(0,a.jsx)(d.A,{size:13})," Back to Stack Monitoring"]}),(0,a.jsxs)("div",{className:"flex items-center justify-between mb-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-base font-[520] text-[#1C1917]",children:"Redis key space"}),(0,a.jsxs)("p",{className:"text-[11px] text-[#A8A29E] mt-0.5",children:["Every key grouped by shape — the per-record id (an integer or UUID segment) collapsed to ",(0,a.jsx)("span",{className:"font-mono",children:"*"}),", so every conversation history / task / node record counts as one row instead of one per key."]})]}),(0,a.jsxs)("button",{onClick:N,className:"flex items-center gap-1.5 px-2.5 py-1 text-[11px] rounded border border-[#E5E3D5] text-[#78716C] hover:border-[#1C1917] hover:text-[#1C1917] transition-colors cursor-pointer",children:[(0,a.jsx)(i.A,{className:"w-3 h-3"}),"Refresh"]})]}),j&&!y&&(0,a.jsx)("p",{className:"text-sm text-[#A8A29E]",children:"Loading..."}),y&&!y.ok&&(0,a.jsx)("p",{className:"text-sm text-red-600",children:null!=(t=y.error)?t:"Failed to reach Redis"}),(null==y?void 0:y.ok)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-[11px] text-[#A8A29E] mb-3",children:[y.total_keys," keys total \xb7 ",y.scanned_keys," scanned",y.truncated&&(0,a.jsx)("span",{className:"text-amber-700",children:" \xb7 truncated — keyspace exceeds the scan cap, this is a partial picture"})]}),y.values_previewed&&(0,a.jsxs)("p",{className:"text-[11px] text-[#A8A29E] mb-3",children:["Values shown are previewed only for patterns the backend allowlists as build-orchestration metadata (never end-user content):"," ",(0,a.jsx)("span",{className:"font-mono",children:(null!=(s=y.safe_value_patterns)?s:[]).join(", ")}),". Every other pattern stays key-only."]}),(0,a.jsx)("div",{className:"rounded-xl border border-[#E5E3D5] overflow-hidden",children:(0,a.jsxs)("table",{className:"w-full text-[12px]",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"text-left text-[#A8A29E] border-b border-[#E5E3D5] bg-[#FAFAF9]",children:[(0,a.jsx)("th",{className:"px-4 py-2 font-normal",children:"Pattern"}),(0,a.jsx)("th",{className:"px-4 py-2 font-normal",children:"Count"}),(0,a.jsx)("th",{className:"px-4 py-2 font-normal",children:"With TTL"}),(0,a.jsx)("th",{className:"px-4 py-2 font-normal",children:"Last activity"}),(0,a.jsx)("th",{className:"px-4 py-2 font-normal",children:"Sample keys"}),(0,a.jsx)("th",{className:"px-4 py-2 font-normal",children:"Sample values"})]})}),(0,a.jsx)("tbody",{children:0===f.length?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{className:"px-4 py-4 text-[#A8A29E]",colSpan:6,children:"No keys."})}):f.map(e=>{var t;return(0,a.jsxs)("tr",{className:"border-b border-[#F0EFE9] last:border-b-0 align-top",children:[(0,a.jsxs)("td",{className:"px-4 py-2 min-w-[220px] max-w-[320px]",children:[(0,a.jsx)("p",{className:"font-mono text-[#1C1917]",children:e.pattern}),e.description?(0,a.jsx)("p",{className:"text-[11px] text-[#78716C] mt-0.5",children:e.description}):(0,a.jsx)("p",{className:"text-[11px] text-amber-700 mt-0.5",children:"und
1ocumented — add an entry to _KEY_DESCRIPTIONS"})]}),(0,a.jsx)("td",{className:"px-4 py-2 text-[#78716C]",children:e.count}),(0,a.jsxs)("td",{className:"px-4 py-2 text-[#78716C]",children:[e.with_ttl,"/",e.count,0===e.with_ttl&&e.count>0&&(0,a.jsx)("span",{className:"text-amber-700",children:" \xb7 never expires"})]}),(0,a.jsx)("td",{className:"px-4 py-2 text-[#78716C] whitespace-nowrap",title:null!=(t=e.latest_ts_iso)?t:"",children:e.latest_ts_iso?(e=>{if(!e)return null;let t=Math.max(0,Math.round((Date.now()-new Date(e).getTime())/1e3));if(t<60)return"".concat(t,"s ago");let s=Math.round(t/60);if(s<60)return"".concat(s,"m ago");let a=Math.round(s/60);return a<24?"".concat(a,"h ago"):"".concat(Math.round(a/24),"d ago")})(e.latest_ts_iso):(0,a.jsx)("span",{className:"text-[#D6D3CB]",children:"—"})}),(0,a.jsx)("td",{className:"px-4 py-2 text-[#78716C] font-mono",children:e.sample_keys.join(", ")}),(0,a.jsx)("td",{className:"px-4 py-2 text-[#78716C] min-w-[180px] max-w-[320px]",children:e.sample_values?Object.entries(e.sample_values).map(e=>{let[t,s]=e;return(0,a.jsx)(h.X1,{label:"".concat(t," (").concat(s.type,")"),data:s.error?{error:s.error}:s.note?{note:s.note}:s.value},t)}):(0,a.jsx)("span",{className:"text-[#D6D3CB]",children:"—"})})]},e.pattern)})})]})})]})]})}},74206:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(17963).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},89926:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(17963).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])}},e=>{e.O(0,[8230,7105,8486,636,6593,8792],()=>e(e.s=26)),_N_E=e.O()}]);

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.