PageSourceSearch

https://agentous.ai/assets/index-985bb3fc.js

js agentous.ai collected 2026-10-05 11:47:23 UTC 3,827 bytes, 2 lines download raw bytes

1import{u as G,d as O,e as R,f as U,r as d,g as z,j as t,I as B,h as f,i as p}from"./index-0240e31f.js";import{A as P}from"./agent-card-ef4a575d.js";import{A as F}from"./agent-suite-card-e5a64a84.js";import{N as Q}from"./notification-container-93254ca6.js";import{u as V}from"./use-notifications-3e446768.js";import{u as q}from"./chat-drawer-context-439f5635.js";import{u as J}from"./dashboard-chat-context-e4d997a5.js";import{u as W}from"./use-media-query-ccfe7468.js";import{A as h}from"./agent-suite-skeleton-12f78cce.js";import{u as X}from"./use-heartbeat-schedule-e0e9f4f4.js";import"./animated-modal-9b5e9525.js";import"./index-ab6fcb65.js";const le=()=>{const{claimedSuites:u,isUserLoading:S,isAuthenticated:b}=G(),{activeAgent:y,setActiveAgent:r}=O(),{setConfig:m,resetConfig:n}=J(),x=R(),o=U(),s=o.state,[i,w]=d.useState("Agents Suites"),{agents:N,agentSuites:j,isLoadingAgents:v,isLoadingSuites:K,error:A}=z(),{notifications:C,dismiss:H}=V(),{heartbeatState:T,initializeHeartbeat:E,pauseHeartbeat:I,getHeartbeatStatus:M}=X();d.useEffect(()=>{(async()=>{if(s?.selectedAgent==="regis")try{await r(s.selectedAgent)}catch(a){console.error("Failed to switch to regis agent:",a)}})()},[s?.selectedAgent,r]);const D=async(e,a)=>{try{e==="initialize"?await E(a):await I(a)}catch(g){console.error("Heartbeat action failed:",g)}},c=W("(max-width: 1023px)"),{openDrawer:l}=q();d.useEffect(()=>{if(s?.selectedAgent==="regis"&&s?.userMessage){m({externalMessage:s.userMessage}),c&&l(),x(o.pathname,{replace:!0,state:null});const e=window.setTimeout(()=>{n(["externalMessage"])},800);return()=>{window.clearTimeout(e),n(["externalMessage"])}}},[s?.selectedAgent,s?.userMessage,m,n,c,l,x,o.pathname]);const L=async e=>{c&&l(),r(e.agentKey)},_=["Agents Suites","AI Agents"],k=new Set((u||[]).map(e=>e.suite.agentSuiteKey));return t.jsxs("div",{className:"flex h-full w-full flex-col p-4 sm:p-8",children:[t.jsxs("div",{className:"mb-8 w-full max-w-[606px]",children:[t.jsxs("div",{className:"mb-6 hidden items-center gap-4 lg:flex",children:[t.jsx(B.Agent,{className:"h-6 w-6 text-primary"}),t.jsx("h1",{className:"text-xl font-bold text-foreground-charcoal",children:"Agents Hub"})]}),t.jsx("div",{className:"flex space-x-2 border-b border-gray-200 sm:space-x-1",children:_.map(e=>t.jsx("button",{onClick:()=>w(e),className:f("px-2 py-2 font-spartan text-sm font-medium transition-colors sm:px-4",i===e?"border-b-2 border-primary text-primary":"text-gray-600 hover:text-foreground-strong"),children:e},e))})]}),t.jsxs("div",{className:f("w-full pb-8",i==="Agents Suites"?"max-w-[606px]":"max-w-[732px]"),children:[t.jsx(Q,{notifications:C,onClose:H,className:"z-50 mb-8",maxNotifications:3}),A&&t.jsx("div",{className:"mb-4 rounded-lg border border-red-200 bg-red-50 p-4 text-red-700",children:t.jsxs("p",{children:["Error loading data: ",A.message]})}),i==="Agents Suites"&&(K?t.jsx(h,{count:4,type:"suite"}):t.jsx("div",{className:"grid w-full flex-1 grid-cols-1 gap-6 xs:grid-cols-2 lg:grid-cols-1 min-[1150px]:grid-cols-2",children:j.map(e=>{const a=u?.some(g=>g.suite.agentSuiteKey===e.agentSuiteKey);return t.jsx(F,{suite:e,link:p.DASHBOARD_AGENT_SUITE(e.agentSuiteKey),isSuiteClaimed:a||!1,showClaimButton:!S},e.agentSuiteKey)})})),i==="AI Agents"&&(v?t.jsx(h,{count:4,type:"card"}):t.jsx("div",{className:"grid w-full flex-1 grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-1 2xl:grid-cols-2",children:N.map(e=>t.jsx(P,{agent:e,isActiveAgent:y===e.agentKey,link:p.DASHBOARD_AGENT_ACTIVATION_AGENT(e.agentKey),onAgentSelect:()=>L(e),showHeartbeatControl:b,heartbeatStatus:M(e.agentKey),onHeartbeatAction:D,isHeartbeatLoading:T.loadingAgent===e.agentKey,suiteKey:e.agentSuiteKey,canManageHeartbeat:e.agentSuiteKey?k.has(e.agentSuiteKey):!1},e.agentKey))}))]})]})};export{le as default};
2//# sourceMappingURL=index-985bb3fc.js.map

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.