PageSourceSearch

https://taskcoach.ai/assets/useActiveBrainChatStore-D_fy3d35.js

js taskcoach.ai collected 2026-10-05 14:56:51 UTC 1,345 bytes, 1 lines download raw bytes

1import{_h as e,gh as t,hh as n,sh as r}from"./lp-below-fold-CiYRcTr2.js";import{n as i,t as a}from"./_ownerStampedPersist-DR-bAdkg.js";var o=30,s=500,c=e()(t(e=>({bySessionId:{},accessOrder:[],setSession:(t,n)=>e(e=>{let r=n.length>s?n.slice(-500):n,i=e.accessOrder.filter(e=>e!==t);i.push(t);let a={...e.bySessionId,[t]:r};for(;i.length>o;){let e=i.shift();e&&e in a&&delete a[e]}return{bySessionId:a,accessOrder:i}}),clearSession:t=>e(e=>{if(!(t in e.bySessionId))return e;let n={...e.bySessionId};return delete n[t],{bySessionId:n,accessOrder:e.accessOrder.filter(e=>e!==t)}}),clear:()=>e({bySessionId:{},accessOrder:[]})}),{name:`chat-messages-cache`,storage:n(()=>r),partialize:i(e=>({bySessionId:e.bySessionId,accessOrder:e.accessOrder})),merge:a(`chat-messages-cache`)})),l=e()(t(e=>({sessions:[],setSessions:t=>e({sessions:t}),clear:()=>e({sessions:[]})}),{name:`chat-sessions-cache`,storage:n(()=>r),partialize:i(e=>({sessions:e.sessions})),merge:a(`chat-sessions-cache`)})),u=e()(t(e=>({activeSessionId:null,cachedSession:null,setActive:t=>e({activeSessionId:t?.id??null,cachedSession:t}),clear:()=>e({activeSessionId:null,cachedSession:null})}),{name:`active-brain-chat`,storage:n(()=>r),partialize:i(e=>({activeSessionId:e.activeSessionId,cachedSession:e.cachedSession})),merge:a(`active-brain-chat`)}));export{l as n,c as r,u as t};

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.