PageSourceSearch

https://www.sundaebar.ai/_next/static/immutable/chunks/26c1wqau73tjp.js

js sundaebar.ai collected 2026-10-05 16:21:41 UTC 29,731 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="5ea066b6-3b3b-c738-4332-95f5f5416668")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,172539,e=>{"use strict";var t=e.i(859721),r=e.i(83949),n=e.i(711362),s=e.i(152236);e.s(["ToolkitChip",0,function({toolkit:e,muted:a=!1,href:i,className:o,children:u}){let l=(0,s.cn)("bg-muted text-caption flex items-center gap-1 rounded-full px-2 py-0.5",o),c=(0,t.jsx)(n.ToolkitIcon,{className:(0,s.cn)("size-3 shrink-0",a&&"opacity-60 grayscale"),toolkit:e});return i?(0,t.jsxs)(r.ToolConnectLink,{className:(0,s.cn)(l,"hover:bg-foreground/10 transition-colors"),href:i,toolkit:e,children:[c,u]}):(0,t.jsxs)("span",{className:l,children:[c,u]})}])},711362,262285,564298,83949,e=>{"use strict";var t=e.i(859721),r=e.i(616127);let n=(0,e.i(540796).default)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]);e.s(["PlugIcon",0,n],262285);var s=e.i(152236);let a={gmail:"/images/apps/gmail.png",googlecalendar:"/images/apps/google-calendar.png",googlesheets:"/images/apps/google-sheets.png",slack:"/images/apps/slack.png"};e.s(["ToolkitIcon",0,function({toolkit:e,className:i}){let o=a[e];return o?(0,t.jsx)(r.default,{alt:"",className:(0,s.cn)("object-contain",i),height:24,src:o,width:24}):(0,t.jsx)(n,{className:i})}],711362);let i="sb_pending_tool_connect";function o(e,t,r){try{e?.setItem(i,JSON.stringify({toolkit:t,at:r}))}catch{}}e.s(["stashPendingToolConnect",0,o,"takePendingToolConnect",0,function(e,t){try{let r=e?.getItem(i);if(!r)return null;e?.removeItem(i);let n=JSON.parse(r);if(null===n||"object"!=typeof n)return null;let{toolkit:s,at:a}=n;if("string"!=typeof s||"number"!=typeof a||t-a>9e5)return null;return s}catch{return null}}],564298);var u=e.i(96369);e.s(["ToolConnectLink",0,function({toolkit:e,onClick:r,...n}){return(0,t.jsx)("a",{rel:"noreferrer",target:"_blank",...n,onClick:t=>{o((0,u.analyticsLocalStore)(),e,Date.now()),r?.(t)}})}],83949)},672491,e=>{"use strict";var t=e.i(859721),r=e.i(616127),n=e.i(792851),s=e.i(966983),a=e.i(714578),i=e.i(393631),o=e.i(913460);e.s(["AnimatedOrb",0,function({size:e=160,className:u,priority:l,burstKey:c}){let d=(0,o.useReducedMotion)(),f=`orbWave-${(0,n.useId)()}`,p=e/320,y=14*p,h=6*p,g=(0,n.useRef)(null),m=(0,n.useRef)(null),v=(0,n.useRef)(0),S=(0,n.useRef)(c);return(0,n.useEffect)(()=>{S.current!==c&&(S.current=c,d||(v.current=performance.now()))},[c,d]),!function(e){let t=(0,n.useRef)(0),{isStatic:r}=(0,n.useContext)(i.MotionConfigContext);(0,n.useEffect)(()=>{if(r)return;let n=({timestamp:r,delta:n})=>{t.current||(t.current=r),e(r-t.current,n)};return a.frame.update(n,!0),()=>(0,a.cancelFrame)(n)},[e])}(e=>{if(d)return;let t=e/1e3,r=y*(1+.12*Math.sin(.9*t)),n=.009+.002*Math.sin(.5*t),s=.013+.002*Math.cos(.4*t);if(v.current){let e=Math.exp(-((performance.now()-v.current)/1e3)/.5);e<.02?v.current=0:(r+=2.4*y*e,n+=.012*e,s+=.014*e)}g.current?.setAttribute("scale",r.toFixed(2)),m.current?.setAttribute("baseFrequency",`${n.toFixed(4)} ${s.toFixed(4)}`)}),(0,t.jsxs)(s.motion.div,{className:u,style:{position:"relative",width:e,height:e},animate:d?void 0:{y:[-h,h,-h],scale:[1,1.02,1]},transition:{duration:8,ease:"easeInOut",repeat:1/0},children:[(0,t.jsx)("svg",{width:"0",height:"0",style:{position:"absolute"},"aria-hidden":"true",children:(0,t.jsxs)("filter",{id:f,x:"-20%",y:"-20%",width:"140%",height:"140%",children:[(0,t.jsx)("feTurbulence",{ref:m,type:"fractalNoise",baseFrequency:"0.009 0.013",numOctaves:"2",seed:"4",result:"noise"}),(0,t.jsx)("feDisplacementMap",{ref:g,in:"SourceGraphic",in2:"noise",xChannelSelector:"R",yChannelSelector:"G",scale:y.toFixed(2)})]})}),(0,t.jsx)(r.default,{src:"/images/scout-orb.png",alt:"",width:160,height:160,priority:l,style:{display:"block",width:e,height:e,filter:`url(#${f})`,willChange:"transform"}})]})}],672491)},134269,e=>{"use strict";var t=e.i(859721),r=e.i(354478),n=e.i(152236);e.s(["MemoryNotice",0,function({className:e,children:s}){return(0,t.jsxs)("div",{className:(0,n.cn)("bg-muted text-muted-foreground text-caption flex items-center gap-1.5 rounded-full px-3 py-1.5",e),children:[(0,t.jsx)(r.Brain,{"aria-hidden":!0,
2className:"size-3 shrink-0"}),(0,t.jsx)("span",{children:s})]})}])},96222,e=>{"use strict";var t=e.i(446293);let r=t.Root,n=t.CollapsibleTrigger,s=t.CollapsibleContent;e.s(["Collapsible",0,r,"CollapsibleContent",0,s,"CollapsibleTrigger",0,n])},954516,e=>{"use strict";var t=e.i(859721),r=e.i(152236);e.s(["EmptyState",0,function({title:e,description:n,icon:s,action:a,className:i,size:o="default"}){let u="sm"===o;return(0,t.jsx)("div",{className:(0,r.cn)("bg-background-secondary flex min-h-65 w-full flex-col items-center justify-center rounded-3xl px-6 py-12",i),children:(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col items-center",u?"gap-3":"gap-4"),children:[s&&(0,t.jsx)("div",{className:"text-muted-foreground",children:s}),(0,t.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,t.jsx)("h3",{className:u?"text-body-sm-semibold":"text-body-semibold",children:e}),(0,t.jsx)("p",{className:(0,r.cn)("text-muted-foreground",u&&"text-body-sm-tight"),children:n})]}),a]})})}])},238190,e=>{"use strict";var t=e.i(859721),r=e.i(792851),n=e.i(466165),s=e.i(838408),a=e.i(792489),i=e.i(152236);let o=({className:e,...r})=>(0,t.jsx)("nav",{role:"navigation","aria-label":"pagination",className:(0,i.cn)("mx-auto flex items-center justify-center",e),...r});o.displayName="Pagination";let u=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("ul",{ref:n,className:(0,i.cn)("flex flex-row items-center gap-1",e),...r}));u.displayName="PaginationContent";let l=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)("li",{ref:n,className:(0,i.cn)("",e),...r}));l.displayName="PaginationItem";let c=({className:e,isActive:r,...n})=>(0,t.jsx)("button",{type:"button","aria-current":r?"page":void 0,className:(0,i.cn)("text-body-sm-medium flex h-8 min-w-8 cursor-pointer items-center justify-center rounded-full px-3 transition-colors","hover:bg-gray-200","disabled:pointer-events-none disabled:opacity-50",r&&"bg-primary text-primary-foreground hover:bg-primary shadow-sm",e),...n});c.displayName="PaginationLink";let d=({className:e,...r})=>(0,t.jsxs)(c,{"aria-label":"Go to previous page",className:(0,i.cn)("px-2",e),...r,children:[(0,t.jsx)(n.ChevronLeft,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous"})]});d.displayName="PaginationPrevious";let f=({className:e,...r})=>(0,t.jsxs)(c,{"aria-label":"Go to next page",className:(0,i.cn)("px-2",e),...r,children:[(0,t.jsx)("span",{className:"sr-only",children:"Next"}),(0,t.jsx)(s.ChevronRight,{className:"size-4"})]});f.displayName="PaginationNext";let p=({className:e,...r})=>(0,t.jsxs)("span",{"aria-hidden":!0,className:(0,i.cn)("text-muted-foreground flex h-8 min-w-8 items-center justify-center px-2",e),...r,children:[(0,t.jsx)(a.MoreHorizontal,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"More pages"})]});p.displayName="PaginationEllipsis",e.s(["Pagination",0,o,"PaginationContent",0,u,"PaginationEllipsis",0,p,"PaginationItem",0,l,"PaginationLink",0,c,"PaginationNext",0,f,"PaginationPrevious",0,d])},769262,e=>{"use strict";var t=e.i(859721),r=e.i(792851),n=e.i(543836),s=e.i(165542),a=e.i(711926),i=e.i(698444),o=e.i(350772),u=e.i(102107),l=e.i(940184),c=e.i(651275),d=e.i(62018),f=e.i(983164),p=e.i(822566),y=e.i(965856),h=e.i(657941),g=e.i(73772),m=e.i(469759),v=Object.defineProperty,S=(e,t)=>v(e,"name",{value:t,configurable:!0}),C="Popover",[x,b]=(0,a.createContextScope)(C,[c.createPopperScope]),k=(0,c.createPopperScope)(),[K,M]=x(C),j=S(e=>{let{__scopePopover:n,children:s,open:a,defaultOpen:i,onOpenChange:o,modal:u=!1}=e,d=k(n),f=r.useRef(null),[p,y]=r.useState(!1),[g,m]=(0,h.useControllableState)({prop:a,defaultProp:i??!1,onChange:o,caller:C});return(0,t.jsx)(c.Root,{...d,children:(0,t.jsx)(K,{scope:n,contentId:(0,l.useId)(),triggerRef:f,open:g,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:p,onCustomAnchorAdd:r.useCallback(()=>y(!0),[]),onCustomAnchorRemove:r.useCallback(()=>y(!1),[]),modal:u,children:s})})},"Popover"),w=r.forwardRef(S(function(e,r){let{__scopePopover:a,...i}=e,o=M("PopoverTrigger",a),u=k(a),l=(0,s.useComposedRefs)(r,o.triggerRef),d=(0,t.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":I(o.open),...i,ref:l,onClick:(0,n.composeEventHandlers)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?d:(0,t.jsx)(c.Anchor,{asChild:!0,...u,children:d})},"PopoverTrigger")),R="PopoverPortal",[E,P]=x(R,{forceMount:void 0}),F=S(e=>{let{__scopePopover:r,forceMount:n,children:s,container:a}=e,i=M(R,r);return(0,t.jsx)(E,{scope:r,forceMount:n,children:(0,t.jsx)(f.Presence,{present:n||i.open,children:(0,t.jsx)(d.Portal,{asChild:!0,container:a,children:s})})})},"PopoverPortal"),N="PopoverContent",q=r.forwardRef(S(function(e,r){let n=P(N,e.__scopePopover),{forceMount:s=n.forceMount,...a}=e,i=M(N,e.__scopePopover);return(0,t.jsx)(f.Presence,{present:s||i.open,children:i.modal?(0,t.jsx)(T,{...a,ref:r}):(0,t.jsx)(A,{...a,ref:r})})},"PopoverContent")),Q=(0,y.createSlot)("PopoverContent.RemoveScroll"),T=r.forwardRef(S(function(e,a){let i=M(N,e.__scopePopover),o=r.useRef(null),u=(0,s.useComposedRefs)(a,o),l=r.useRef(!1);return r.useEffect(()=>{let e=o.current;if(e)return(0,g.hideOthers)(e)},[]),(0,t.jsx)(m.RemoveScroll,{as:Q,allowPinchZoom:!0,children:(0,t.jsx)(D,{...e,ref:u,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||i.triggerRef.current?.focus()}
2),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),A=r.forwardRef(S(function(e,n){let s=M(N,e.__scopePopover),a=r.useRef(!1),i=r.useRef(!1);return(0,t.jsx)(D,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||s.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;s.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),D=r.forwardRef(S(function(e,r){let{__scopePopover:n,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:l,disableOutsidePointerEvents:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:y,onInteractOutside:h,...g}=e,m=M(N,n),v=k(n);return(0,o.useFocusGuards)(),(0,t.jsx)(u.FocusScope,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:h,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:y,onDismiss:()=>m.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,t.jsx)(c.Content,{"data-state":I(m.open),role:"dialog",id:m.contentId,...v,...g,ref:r,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function I(e){return e?"open":"closed"}S(I,"getState");var O=e.i(152236);let _=r.forwardRef(({className:e,align:r="center",sideOffset:n=4,...s},a)=>(0,t.jsx)(F,{children:(0,t.jsx)(q,{ref:a,align:r,sideOffset:n,className:(0,O.cn)("data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 border-border text-foreground z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-3xl border bg-white p-2 shadow-[0px_4px_20px_0px_rgba(0,0,0,0.05)] outline-hidden",e),...s})}));_.displayName=q.displayName,e.s(["Popover",0,j,"PopoverContent",0,_,"PopoverTrigger",0,w],769262)},398903,e=>{"use strict";var t=e.i(792851),r=e.i(656171),n=e.i(901527),s=e.i(924159),a=e.i(303943),i=e.i(37754),o=e.i(941849),u=e.i(814075);let l=["scoutChatCacheOwner"];e.s(["CACHE_OWNER_KEY",0,l,"flattenScoutHistory",0,function(e){let t=[],r=new Set,n=new Set,s=e?.pages??[];for(let e=s.length-1;e>=0;e--)for(let a of s[e].messages)r.has(a.id)||(r.add(a.id),e>0&&n.add(a.id),t.push(a));return{messages:t,olderIds:n}},"useClearScoutConversation",0,function(){let e=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:({threadId:e})=>(0,o.clearScoutConversation)(e),onSuccess:(t,{threadId:r})=>{e.removeQueries({queryKey:u.scoutChatKeys.history(r??"scout")}),e.invalidateQueries({queryKey:u.scoutChatKeys.threads()})}})},"useCreateScoutSchedule",0,function(e){let t=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:t=>(0,o.createScoutSchedule)(e,t),onSuccess:()=>{t.invalidateQueries({queryKey:u.scoutChatKeys.schedules(e)})}})},"useDeleteScoutSchedule",0,function(e){let t=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:({id:e})=>(0,o.deleteScoutSchedule)(e),onSuccess:()=>{t.invalidateQueries({queryKey:u.scoutChatKeys.schedules(e)})}})},"useDeleteScoutThread",0,function(){let e=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:({threadId:e})=>(0,o.deleteScoutThread)(e),onSuccess:(t,{threadId:r})=>{e.setQueryData(u.scoutChatKeys.threads(),e=>e?.filter(e=>e.id!==r)??[]),e.removeQueries({queryKey:u.scoutChatKeys.history(r)}
2),e.invalidateQueries({queryKey:u.scoutChatKeys.threads()})}})},"useDetachScoutSkill",0,function(){let e=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:o.detachScoutSkill,onSuccess:(t,{agentId:r})=>{e.invalidateQueries({queryKey:u.scoutChatKeys.agentEditor(r)}),e.invalidateQueries({queryKey:u.scoutChatKeys.skillUpdates(r)}),e.invalidateQueries({queryKey:u.scoutChatKeys.agentRevisions(r)}),e.invalidateQueries({queryKey:u.scoutChatKeys.agent(r)})}})},"useDisconnectScoutToolkit",0,function(){let e=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:({toolkit:e})=>(0,o.disconnectScoutToolkit)(e),onSuccess:()=>{e.invalidateQueries({queryKey:u.scoutChatKeys.connections()})}})},"useForkScoutAgent",0,function(){let e=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:o.forkScoutAgent,onSuccess:(t,r)=>{e.invalidateQueries({queryKey:u.scoutChatKeys.agentEditor(r)}),e.invalidateQueries({queryKey:u.scoutChatKeys.agentRevisions(r)})}})},"useRefreshScoutSkill",0,function(){let e=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:o.refreshScoutSkill,onSuccess:(t,{agentId:r})=>{e.invalidateQueries({queryKey:u.scoutChatKeys.agentEditor(r)}),e.invalidateQueries({queryKey:u.scoutChatKeys.skillUpdates(r)}),e.invalidateQueries({queryKey:u.scoutChatKeys.agentRevisions(r)})}})},"useSaveScoutAgentEdit",0,function(){let e=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:o.saveScoutAgentEdit,onSuccess:(t,{agentId:r})=>{e.invalidateQueries({queryKey:u.scoutChatKeys.agentEditor(r)}),e.invalidateQueries({queryKey:u.scoutChatKeys.agentRevisions(r)}),e.invalidateQueries({queryKey:u.scoutChatKeys.agent(r)}),e.invalidateQueries({queryKey:u.scoutChatKeys.threads()})}})},"useScoutAgentEditor",0,function(e,t=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.agentEditor(e),queryFn:()=>(0,o.fetchScoutAgentEditor)(e),enabled:t,staleTime:0})},"useScoutAgentInfo",0,function(e,t=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.agent(e),queryFn:()=>(0,o.fetchScoutAgentInfo)(e),enabled:t})},"useScoutAgentRevisions",0,function(e,t=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.agentRevisions(e),queryFn:()=>(0,o.fetchScoutAgentRevisions)(e),enabled:t,staleTime:0})},"useScoutAgentsHealth",0,function(e=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.agentsHealth(),queryFn:o.fetchScoutAgentsHealth,enabled:e,staleTime:3e4})},"useScoutCacheOwnerGuard",0,function(e,r){let n=(0,a.useQueryClient)(),{data:s}=(0,i.useAuthStatus)();(0,t.useEffect)(()=>{if(!s)return;let t=s.userId??"guest",a=n.getQueryData(l);a!==t&&(void 0!==a&&(n.removeQueries({queryKey:u.scoutChatKeys.all()}),r?.(),e([])),n.setQueryData(l,t))},[s,n,e,r])},"useScoutChatHistory",0,function(e,t=!1){return(0,r.useInfiniteQuery)({queryKey:u.scoutChatKeys.history(t?"scout-guest":e??"scout"),queryFn:({pageParam:r})=>(0,o.fetchChatHistory)(e,r,t),initialPageParam:null,getNextPageParam:(e,t,r)=>e.hasMore&&e.nextCursor&&e.nextCursor!==r?e.nextCursor:void 0,staleTime:3e4,refetchOnMount:"always"})},"useScoutConnections",0,function(e=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.connections(),queryFn:o.fetchScoutConnections,enabled:e,staleTime:0})},"useScoutMemory",0,function(e=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.memory(),queryFn:o.fetchScoutMemory,enabled:e,staleTime:0})},"useScoutMyAgents",0,function(e=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.myAgents(),queryFn:o.fetchScoutMyAgents,enabled:e,staleTime:0})},"useScoutSchedules",0,function(e,t=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.schedules(e),queryFn:()=>(0,o.fetchScoutSchedules)(e),enabled:t})},"useScoutSkillUpdates",0,function(e,t=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.skillUpdates(e),queryFn:()=>(0,o.fetchScoutSkillUpdates)(e),enabled:t,staleTime:6e4})},"useScoutTemplates",0,function(e=!0){return(0,s.useQuery)({queryKey:u.scoutChatKeys.templates(),queryFn:o.fetchScoutTemplates,enabled:e,staleTime:3e5})},"useScoutThreads",0,function(){return(0,s.useQuery)({queryKey:u.scoutChatKeys.threads(),queryFn:o.fetchScoutThreads,staleTime:0,refetchInterval:6e4})},"useUpdateScoutSchedule",0,function(e){let t=(0,a.useQueryClient)();return(0,n.useMutation)({mutationFn:({id:e,...t})=>(0,o.updateScoutSchedule)(e,t),onSuccess:()=>{t.invalidateQueries({queryKey:u.scoutChatKeys.schedules(e)})}})},"writeScoutHistoryCache",0,function(e,t,r){e.setQueryData(u.scoutChatKeys.history(t),e=>({pages:[{messages:r,hasMore:e?.pages[0]?.hasMore??!1,nextCursor:e?.pages[0]?.nextCursor??null},...e?.pages.slice(1)??[]],pageParams:e?.pageParams?.length?[...e.pageParams]:[null]}))}])},559539,e=>{"use strict";var t=e.i(899179),r=e.i(792851),n=e.i(901527),s=e.i(924159),a=e.i(303943),i=e.i(769321),o=e.i(2939);let u=(0,o.createServerReference)("40429061a7d1533293a3d678ac236998bcf7f3622f",o.callServer,void 0,o.findSourceMapURL,"importSkillFromGitHub"),l=(0,o.createServerReference)("7809eecd60db5a6713f242c70e5d3dc5d1bb181ad0",o.callServer,void 0,o.findSourceMapURL,"autoFillSkillData"),c=(0,o.createServerReference)("406ce3a00ee134668c3de4eeb2af88f71fac1d7f3e",o.callServer,void 0,o.findSourceMapURL,"submitSkill"),d=(0,o.createServerReference)("604f5745648d68af0696ae346f47423e2802465d62",o.callServer,void 0,o.findSourceMapURL,"updateSkill"),f=(0,o.createServerReference)("40db9661a5b17c18a90e43964b5f48cc57aed60ee3",o.callServer,void 0,o.findSourceMapURL,"refreshSkillFiles"),p=(0,o.createServerReference)("6055d8373fbda09e5f485118ad07df597a85071e95",o.callServer,void 0,o.findSourceMapURL,"submitSingleSkillFromGitHub");var y=e.i(669557),h=e.i(503634),g=e.i(814075),m=e.i(152236);e.s(["useAutoFillBulkSkills",0,function(){let e=(0,r.useRef)(!1);return{...(0,n.useMutation)({mutationFn:async t=>{e.current=!1;let r={};for(let n of t){if(e.current)break;try{r[n.path]=await l(n.githubUrl,n.name)}catch{r[n.path]={description:""}}}return r}}),abort:()=>{e.current=!0}}},"useBulkSubmitSkills",0,function(){let e=(0,t.useRouter)(),s=(0,a.useQueryClient)(),{handleError:o}=(0,h.useErrorHandler)(),[u,l]=(0,r.useState)(null),[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(!1),y=(0,n.useMutation)({mutationFn:async({skills:e,creator:t})=>{f.current=!1;let r=[];for(let n=0;n<e.length&&!f.current;n++){let s=e[n];l({current:n+1,completed:n,total:e.length,currentSkillName:s.name,results:[...r]});let a=await p(s,t);r.push(a)}return r},onSuccess:t=>{let r=t.filter(e=>e.success).length,n=t.filter(e=>!e.success).length;r>0&&i.toast.success(`${r} skill${1!==r?"s":""} imported`),n>0&&i.toast.error(`${n} skill${1!==n?"s":""} failed to import`),r>0?(d(!0),(0,g.invalidateMarketplaceCaches)(s),e.push("/dashboard/directory/listings?type=skill")):l(null)},onError:e=>{l(null),o(e)}});return{...y,isPending:y.isPending||c,progress:u,abort:()=>{f.current=!0,l(null)}}},"useImportGitHubSkill",0,function(){let{handleError:e}=(0,h.useErrorHandler)(),t=(0,r.useRef)(0),s=(0,n.useMutation)({mutationFn:async e=>{let r=++t.current,n=await u(e);if(r!==t.current)throw new DOMException("Aborted","AbortError");return n},onError:t=>{t instanceof DOMException&&"AbortError"===t.name||e(t)}
2}),a=()=>{t.current++,s.reset()};return{...s,abort:a,reset:a}},"useRefreshSkillFiles",0,function(){let e=(0,a.useQueryClient)(),{handleError:t}=(0,h.useErrorHandler)();return(0,n.useMutation)({mutationFn:e=>f(e),onSuccess:({outcome:t})=>{i.toast.success("unchanged"===t?y.SUCCESS_MESSAGES.SKILL_UNCHANGED:y.SUCCESS_MESSAGES.SKILL_REFRESHED),(0,g.invalidateMarketplaceCaches)(e)},onError:e=>{t(e)}})},"useSkillCreators",0,function(e=!0){return(0,s.useQuery)({queryKey:g.skillCreatorKeys.list(),queryFn:async()=>{let e=await fetch("/api/skill-creators");if(!e.ok)throw Error("Failed to fetch skill creators");return e.json()},enabled:e,staleTime:6e5,gcTime:36e5})},"useSkillMaxStars",0,function(e=!0){return(0,s.useQuery)({queryKey:g.skillMaxStarsKeys.value(),queryFn:async()=>{let e=await fetch("/api/skill-max-stars");if(!e.ok)throw Error("Failed to fetch max skill stars");return(await e.json()).max},enabled:e,staleTime:6e5,gcTime:36e5})},"useSubmitSkill",0,function(){let e=(0,t.useRouter)(),r=(0,a.useQueryClient)(),{handleError:s}=(0,h.useErrorHandler)();return(0,n.useMutation)({mutationFn:({skillData:e})=>c(e),onSuccess:(t,n)=>{i.toast.success(n.skillTitle?y.SUCCESS_MESSAGES.SKILL_CREATED(n.skillTitle):y.SUCCESS_MESSAGES.SKILL_CREATED("Skill")),(0,g.invalidateMarketplaceCaches)(r),e.push((0,m.listingHrefFor)(t))},onError:e=>{s(e)}})},"useUpdateSkill",0,function(){let e=(0,a.useQueryClient)(),{handleError:t}=(0,h.useErrorHandler)();return(0,n.useMutation)({mutationFn:({skillId:e,formData:t})=>d(e,t),onSuccess:()=>{i.toast.success(y.SUCCESS_MESSAGES.SKILL_UPDATED),(0,g.invalidateMarketplaceCaches)(e)},onError:e=>{t(e)}})}],559539)},446293,e=>{"use strict";var t=e.i(792851),r=e.i(543836),n=e.i(711926),s=e.i(657941),a=e.i(814799),i=e.i(165542),o=e.i(822566),u=e.i(983164),l=e.i(940184),c=e.i(859721),d=Object.defineProperty,f=(e,t)=>d(e,"name",{value:t,configurable:!0}),p="Collapsible",[y,h]=(0,n.createContextScope)(p),[g,m]=y(p),v=t.forwardRef(f(function(e,r){let{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:u,onOpenChange:d,...f}=e,[y,h]=(0,s.useControllableState)({prop:a,defaultProp:i??!1,onChange:d,caller:p});return(0,c.jsx)(g,{scope:n,disabled:u,contentId:(0,l.useId)(),open:y,onOpenToggle:t.useCallback(()=>h(e=>!e),[h]),children:(0,c.jsx)(o.Primitive.div,{"data-state":k(y),"data-disabled":u?"":void 0,...f,ref:r})})},"Collapsible")),S=t.forwardRef(f(function(e,t){let{__scopeCollapsible:n,...s}=e,a=m("CollapsibleTrigger",n);return(0,c.jsx)(o.Primitive.button,{type:"button","aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open||!1,"data-state":k(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...s,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,a.onOpenToggle)})},"CollapsibleTrigger")),C="CollapsibleContent",x=t.forwardRef(f(function(e,t){let{forceMount:r,...n}=e,s=m(C,e.__scopeCollapsible);return(0,c.jsx)(u.Presence,{present:r||s.open,children:({present:e})=>(0,c.jsx)(b,{...n,ref:t,present:e})})},"CollapsibleContent")),b=t.forwardRef(f(function(e,r){let{__scopeCollapsible:n,present:s,children:u,...l}=e,d=m(C,n),[f,p]=t.useState(s),y=t.useRef(null),h=(0,i.useComposedRefs)(r,y),g=t.useRef(0),v=g.current,S=t.useRef(0),x=S.current,b=d.open||f,K=t.useRef(b),M=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>K.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,a.useLayoutEffect)(()=>{let e=y.current;if(e){M.current=M.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,S.current=t.width,K.current||(e.style.transitionDuration=M.current.transitionDuration,e.style.animationName=M.current.animationName),p(s)}},[d.open,s]),(0,c.jsx)(o.Primitive.div,{"data-state":k(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!b,...l,ref:h,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:b&&u})},"CollapsibleContentImpl"));function k(e){return e?"open":"closed"}f(k,"getState"),e.s(["CollapsibleContent",0,x,"CollapsibleTrigger",0,S,"Content",0,x,"Root",0,v,"Trigger",0,S,"createCollapsibleScope",0,h])},610273,e=>{"use strict";let t=(0,e.i(540796).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["default",0,t])},48331,295604,e=>{"use strict";let t=(0,e.i(540796).default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);e.s(["default",0,t],48331);var r=e.i(859721),n=e.i(152236);e.s(["Message",0,function({className:e,align:t="start",...s}){return(0,r.jsx)("div",{"data-slot":"message","data-align":t,className:(0,n.cn)("group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse",e),...s})},"MessageContent",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"message-content",className:(0,n.cn)("flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end",e),...t})},"MessageFooter",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"message-footer",className:(0,n.cn)("text-muted-foreground flex max-w-full min-w-0 items-center px-3 text-xs font-medium group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end",e),...t})}],295604)},354478,e=>{"use strict";var t=e.i(48331);e.s(["Brain",()=>t.default])},959861,e=>{"use strict";var t=e.i(41438);
2e.s(["CheckIcon",()=>t.default])},407425,e=>{"use strict";var t=e.i(494117);e.s(["ChevronDownIcon",()=>t.default])},240289,e=>{"use strict";let t=(0,e.i(540796).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["default",0,t])},466165,e=>{"use strict";var t=e.i(240289);e.s(["ChevronLeft",()=>t.default])},393994,e=>{"use strict";var t=e.i(258623);e.s(["ChevronRightIcon",()=>t.default])},407312,e=>{"use strict";let t=(0,e.i(540796).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["default",0,t])},862978,e=>{"use strict";let t=(0,e.i(540796).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["default",0,t])},792489,e=>{"use strict";var t=e.i(862978);e.s(["MoreHorizontal",()=>t.default])},610753,e=>{"use strict";let t=(0,e.i(540796).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},851274,e=>{"use strict";let t=(0,e.i(540796).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["default",0,t])},325661,(e,t,r)=>{"use strict";var n=e.r(792851),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,i=n.useEffect,o=n.useLayoutEffect,u=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!s(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),s=n[0].inst,c=n[1];return o(function(){s.value=r,s.getSnapshot=t,l(s)&&c({inst:s})},[e,r,t]),i(function(){return l(s)&&c({inst:s}),e(function(){l(s)&&c({inst:s})})},[e]),u(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},56032,(e,t,r)=>{"use strict";t.exports=e.r(325661)}]);
3
4//# debugId=5ea066b6-3b3b-c738-4332-95f5f5416668

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.