PageSourceSearch

https://app.ainexlayer.com/_next/static/chunks/80864-8aedbd5238ae9a13.js

js ainexlayer.com collected 2026-10-02 01:23:00 UTC 34,159 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39634,80864],{1047:(e,t,o)=>{let n;o.d(t,{D:()=>d,Xv:()=>l,w1:()=>i});var a=o(85911),r=o(64e3);function i(e){let t=(function(){if(n)return n;let e=new Map;for(let t of a.FG)e.set(t.connectorType,{connector_type:t.connectorType,connector_title:t.title,connector_group:"oauth",is_oauth:!0});for(let t of a.Vc)e.set(t.connectorType,{connector_type:t.connectorType,connector_title:t.title,connector_group:"composio",is_oauth:!0});for(let t of a.yk)e.set(t.connectorType,{connector_type:t.connectorType,connector_title:t.title,connector_group:"crawler",is_oauth:!1});for(let t of a.MA)e.set(t.connectorType,{connector_type:t.connectorType,connector_title:t.title,connector_group:"other",is_oauth:!1});return n=e})().get(e);return t||{connector_type:e,connector_title:e,connector_group:"unknown",is_oauth:!1}}let c={[r.a.LINEAR_CONNECTOR]:"/api/v1/auth/linear/connector/reauth",[r.a.JIRA_CONNECTOR]:"/api/v1/auth/jira/connector/reauth",[r.a.NOTION_CONNECTOR]:"/api/v1/auth/notion/connector/reauth",[r.a.GOOGLE_DRIVE_CONNECTOR]:"/api/v1/auth/google/drive/connector/reauth",[r.a.GOOGLE_GMAIL_CONNECTOR]:"/api/v1/auth/google/gmail/connector/reauth",[r.a.GOOGLE_CALENDAR_CONNECTOR]:"/api/v1/auth/google/calendar/connector/reauth",[r.a.COMPOSIO_GOOGLE_DRIVE_CONNECTOR]:"/api/v1/auth/composio/connector/reauth",[r.a.COMPOSIO_GMAIL_CONNECTOR]:"/api/v1/auth/composio/connector/reauth",[r.a.COMPOSIO_GOOGLE_CALENDAR_CONNECTOR]:"/api/v1/auth/composio/connector/reauth",[r.a.COMPOSIO_OUTLOOK_CONNECTOR]:"/api/v1/auth/composio/connector/reauth",[r.a.COMPOSIO_TEAMS_CONNECTOR]:"/api/v1/auth/composio/connector/reauth",[r.a.COMPOSIO_JIRA_CONNECTOR]:"/api/v1/auth/composio/connector/reauth",[r.a.ONEDRIVE_CONNECTOR]:"/api/v1/auth/onedrive/connector/reauth",[r.a.DROPBOX_CONNECTOR]:"/api/v1/auth/dropbox/connector/reauth",[r.a.CONFLUENCE_CONNECTOR]:"/api/v1/auth/confluence/connector/reauth",[r.a.TEAMS_CONNECTOR]:"/api/v1/auth/teams/connector/reauth",[r.a.DISCORD_CONNECTOR]:"/api/v1/auth/discord/connector/reauth"},s={[r.a.LINEAR_CONNECTOR]:"linear",[r.a.JIRA_CONNECTOR]:"jira",[r.a.NOTION_CONNECTOR]:"notion",[r.a.CONFLUENCE_CONNECTOR]:"confluence"};function d(e){return e.connector_type in s&&!e.config?.server_config}function l(e){let t=e.config?.mcp_service;if(t)return`/api/v1/auth/mcp/${t}/connector/reauth`;let o=s[e.connector_type];return o?`/api/v1/auth/mcp/${o}/connector/reauth`:c[e.connector_type]}},3500:(e,t,o)=>{o.d(t,{CH:()=>d,Ku:()=>c,fC:()=>s});var n=o(15144),a=o(2002),r=o(84706),i=o(66062);let c=(0,n.eU)(null),s=(0,a.qA)(()=>({queryKey:i.X.workspaces.limits,staleTime:1/0,queryFn:async()=>r.G.getWorkspaceLimits()})),d=(0,a.qA)(e=>{let t=e(s).data,o={skip:0,...t?{limit:t.max_workspaces_per_user}:{},owned_only:!1};return{queryKey:i.X.workspaces.withQueryParams(o),staleTime:3e5,queryFn:async()=>r.G.getWorkspaces({queryParams:o})}})},6865:(e,t,o)=>{o.d(t,{E:()=>s});var n=o(1718),a=o(60988),r=o(59272),i=o(37871);let c=(0,r.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function s({className:e,variant:t,asChild:o=!1,...r}){let d=o?a.DX:"span";return(0,n.jsx)(d,{"data-slot":"badge",className:(0,i.cn)(c({variant:t}),e),...r})}},11290:(e,t,o)=>{o.d(t,{J:()=>i});var n=o(1718),a=o(62210),r=o(37871);function i({className:e,...t}){return(0,n.jsx)(a.b,{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}},22538:(e,t,o)=>{o.d(t,{Aj:()=>_,fT:()=>f,IN:()=>N,af:()=>E,ye:()=>g});var n=o(41288),a=o(48441),r=o(97679),i=o(22345);let c=i.Ikc({file_id:i.aig(),role:i.k5n(["primary","preview"]),filename:i.YjP(),mime_type:i.YjP(),size_bytes:i.aig(),content_url:i.YjP()}),s=i.Ikc({kind:i.YjP(),id:i.aig().int().positive()}).optional(),d=i.Ikc({artifact_id:i.aig(),document_id:i.aig(),title:i.YjP(),format:i.YjP(),generation:i.aig().int().positive(),markdown_representation:i.YjP(),files:i.YOg(c),updated_at:i.YjP().nullable(),legacy:s}),l=i.Ikc({artifact_id:i.aig(),document_id:i.aig(),title:i.YjP(),format:i.YjP(),generation:i.aig().int().positive(),indexing_status:i.k5n(["ready","pending","processing","failed","deleting"]),thread_id:i.aig().nullable(),created_at:i.YjP(),updated_at:i.YjP().nullable(),legacy:s}),O=i.YOg(l),u=(e,t)=>
1["artifact-manifest",e,t],C=(e,t)=>["artifact-image-blob",e,t],_=(e,t,o,n)=>[...C(e,t),o,n],N=(e,t)=>(0,n.j)({queryKey:u(e,t),queryFn:async()=>{let o=await (0,a.Ud)((0,r.mh)(`/api/v1/workspaces/${e}/artifacts/${t}/manifest`),{cache:"no-store"});if(!o.ok)throw Error("Artifact could not be loaded");let n=d.safeParse(await o.json());if(!n.success)throw Error("Artifact response is invalid");return n.data},staleTime:5e3,refetchOnWindowFocus:"always"}),p=(e,t)=>null==t?["artifact-list",e]:["artifact-list",e,t];async function E(e,t){let o=null==t?"":`?thread_id=${encodeURIComponent(t)}`,n=await (0,a.Ud)((0,r.mh)(`/api/v1/workspaces/${e}/artifacts${o}`),{cache:"no-store"});if(!n.ok)throw Error("Artifacts could not be loaded");let i=O.safeParse(await n.json());if(!i.success)throw Error("Artifact list response is invalid");return i.data}let f=(e,t)=>(0,n.j)({queryKey:p(e,t),queryFn:()=>E(e,t),staleTime:3e4,refetchOnWindowFocus:"always"});async function g(e,t,o){let n=[C(t,o)];for(let t of(await Promise.all(n.map(t=>e.cancelQueries({queryKey:t}))),n))e.setQueriesData({queryKey:t},null),e.removeQueries({queryKey:t});await Promise.all([e.resetQueries({queryKey:u(t,o),exact:!0}),e.invalidateQueries({queryKey:p(t)}),e.invalidateQueries({queryKey:["artifacts-library",t]})])}},23376:(e,t,o)=>{function n(e){let t=e?.workspace_id;return Array.isArray(t)?t[0]:t}function a(e){let t=Number(n(e));return Number.isFinite(t)&&t>0?t:void 0}o.d(t,{I:()=>n,o:()=>a})},31976:(e,t,o)=>{o.d(t,{d:()=>c});var n=o(1718),a=o(34489),r=o(1174),i=o(37871);let c=r.forwardRef(({className:e,...t},o)=>(0,n.jsx)(a.bL,{className:(0,i.cn)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-muted-foreground/20",e),...t,ref:o,children:(0,n.jsx)(a.zi,{className:(0,i.cn)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=checked]:bg-[var(--panel)] data-[state=unchecked]:translate-x-0 data-[state=unchecked]:bg-muted-foreground/40")})}));c.displayName=a.bL.displayName},32948:(e,t,o)=>{o.d(t,{Xi:()=>d,av:()=>l,j7:()=>s,tU:()=>c});var n=o(1718),a=o(7658),r=o(1174),i=o(37871);let c=a.bL,s=r.forwardRef(({className:e,...t},o)=>(0,n.jsx)(a.B8,{ref:o,className:(0,i.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));s.displayName=a.B8.displayName;let d=r.forwardRef(({className:e,...t},o)=>(0,n.jsx)(a.l9,{ref:o,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-popover data-[state=active]:text-popover-foreground data-[state=active]:shadow-sm",e),...t}));d.displayName=a.l9.displayName;let l=r.forwardRef(({className:e,...t},o)=>(0,n.jsx)(a.UC,{ref:o,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));l.displayName=a.UC.displayName},39634:(e,t,o)=>{o.d(t,{GD:()=>C,Gb:()=>B,Hd:()=>x,Ic:()=>A,J4:()=>U,KR:()=>D,OF:()=>b,OI:()=>S,Pp:()=>M,QA:()=>_,QP:()=>N,Rk:()=>v,TB:()=>P,US:()=>O,Ur:()=>h,WP:()=>I,Y4:()=>y,YN:()=>G,aD:()=>c,aH:()=>m,ah:()=>k,c3:()=>K,eT:()=>d,fE:()=>w,gm:()=>F,h6:()=>L,h_:()=>g,j4:()=>u,ld:()=>j,n9:()=>l,np:()=>R,p3:()=>$,qI:()=>E,sS:()=>p,wz:()=>f,zz:()=>s});var n=o(97079),a=o(1047);function r(e,t){try{n.default.capture(e,t)}catch{}}function i(e){let t={};for(let[o,n]of Object.entries(e))void 0!==n&&(t[o]=n);return t}function c(e){r("auth_login_attempt",{method:e})}function s(e,t){r("auth_login_failure",{method:e,error:t})}function d(){r("auth_registration_attempt")}function l(e){r("auth_registration_failure",{error:e})}function O(){r("auth_logout")}function u(e,t,o){r("chat_message_sent",{workspace_id:e,chat_id:t,has_attachments:o?.hasAttachments??!1,has_mentioned_documents:o?.hasMentionedDocuments??!1,message_length:o?.messageLength})}function C(e,t){r("chat_response_received",{workspace_id:e,chat_id:t})}function _(e,t){r("chat_interleaved_activity_trace_interaction",i({action:e,activity_count:t?.activityCount,reasoning_count:t?.reasoningCount,duration_ms:t?.durationMs,surface:t?.surface}))}function N(e,t){r("chat_activity_timing_contract_violation",{kind:"missing_terminal_snapshot",message_id:e,active_duration_ms:t})}function p(e,t,o){r("chat_blocked",i({workspace_id:e,chat_id:t??void 0,flow:o.flow,kind:o.kind,error_code:o.error_code,severity:o.severity,is_expected:o.is_expected,message:o.message}))}function E(e,t,o){r("chat_error",i({workspace_id:e,chat_id:t??void 0,flow:o.flow,kind:o.kind,error_code:o.error_code,severity:o.severity,is_expected:o.is_expected,message:o.message}))}function f(e){r("anonymous_chat_message_sent",{model_slug:e.modelSlug,message_length:e.messageLength,has_uploaded_doc:e.hasUploadedDoc??!1,surface:e.surface})}function g(e,t,o){r("document_upload_started",{workspace_id:e,file_count:t,total_size_bytes:o})}function T(e,t,o={}){let n=(0,a.w1)(t);r(`connector_${e}`,{...i({workspace_id:o.workspaceId??void 0,connector_id:o.connectorId??void 0,source:o.source,error:o.error}),connector_type:n.connector_type,connector_group:n.connector_group,is_oauth:n.is_oauth,...o.extra??{}})}function R(e,t,o){T("setup_started",t,{workspaceId:e,source:o})}function m(e,t,o,n){T("setup_failure",t,{workspaceId:e??void 0,error:o,source:n})}function v(e){r("desktop_download_clicked",{os:e.os,placement:e.placement})}function h(e,t,o){r("index_with_date_range_opened",{workspace_id:e,connector_type:t,connector_id:o})}function A(e,t,o,n){r("index_with_date_range_started",{workspace_id:e,connector_type:t,connector_id:o,has_start_date:n?.hasStartDate??!1,has_end_date:n?.hasEndDate??!1})}function I(e,t,o){r("quick_index_clicked",{workspace_id:e,connector_type:t,connector_id:o})}function y(e,t,o,n){r("periodic_indexing_started",{workspace_id:e,connector_type:t,connector_id:o,frequency_minutes:n})}function b(e){r("workspace_invite_declined",{workspace_name:e})}function L(e){r("incentive_task_clicked",{task_type:e})}function S(e,t){r("marketing_referral_landing",{ref_code:e,landing_url:t,$set_once:{first_ref_code:e},$set:{latest_ref_code:e}})}function k(e){r("automation_create_failed",i(e))}function w(e){r("automation_update_failed",i(e))}function P(e){r("automation_delete_failed",i(e))}function x(e){r("automation_trigger_add_failed",i(e))}function M(e){r("automation_trigger_update_failed",i(e))}function G(e){r("automation_trigger_remove_failed",i(e))}function D(e){r("automation_chat_approved",i(e))}function j(e){r("automation_chat_rejected",i(e))}function U(e){r("automation_chat_draft_edited",i(e))}function B(e){r("automation_chat_create_succeeded",i(e))}function K(e){r("automation_chat_create_failed",i(e))}function F(e,t){try{n.default.identify(e,t)}catch{}try{window.electronAPI?.analyticsIdentify&&window.electronAPI.analyticsIdentify(e,t)}catch{}}function $(){try{n.default.reset()}catch{}try{window.electronAPI?.analyticsReset&&window.electronAPI.analyticsReset()}catch{}}},41611:(e,t,o)=>{o.d(t,{Bp:()=>i,VX:()=>r,Xj:()=>d,h$:()=>a,hU:()=>s,sT:()=>c});var n=o(15144);function a(e){return{id:e.id,title:e.name,kind:"folder"}}function r(e){return{id:e.id,title:e.title,kind:"thread"}}let i=(0,n.eU)([]),c=(0,n.eU)(null);function s(e){let t=new Set,o=e.filter(e=>{let o="doc"===e.kind?`doc:${e.document_type}:${e.id}`:"connector"===e.kind?`connector:${e.connector_type}:${e.id}`:"thread"===e.kind?`thread:${e.id}`:`folder:${e.id}`;return!t.has(o)&&(t.add(o),!0)}),n=o.filter(e=>"doc"===e.kind),a=o.filter(e=>"folder"===e.kind),r=o.filter(e=>"connector"===e.kind),i=o.filter(e=>"thread"===e.kind);return{document_ids:n.map(e=>e.id),folder_ids:a.map(e=>e.id),connector_ids:r.map(e=>e.id),thread_ids:i.map(e=>e.id),connectors:r.map(e=>({id:e.id,title:e.title,kind:e.kind,connector_type:e.connector_type,account_name:e.account_name}))}}let d=(0,n.eU)({})},47750:(e,t,o)=>{o.d(t,{V:()=>r,W:()=>i});var n=o(1174),a=o(85988);function r(){let{isDesktop:e,isWeb:t}=(0,n.useContext)(a.r);return{isDesktop:e,isWeb:t}}function i(){let{electronAPI:e}=(0,n.useContext)(a.r);return e}},48314:(e,t,o)=>{o.d(t,{Accordion:()=>c,AccordionContent:()=>l,AccordionItem:()=>s,AccordionTrigger:()=>d});var n=o(1718),a=o(57383),r=o(80341),i=o(37871);function c({...e}){return(0,n.jsx)(a.bL,{"data-slot":"accordion",...e})}function s({className:e,...t}){return(0,n.jsx)(a.q7,{"data-slot":"accordion-item",className:(0,i.cn)("border-b last:border-b-0",e),...t})}function d({className:e,children:t,...o}){return(0,n.jsx)(a.Y9,{className:"flex",children:(0,n.jsxs)(a.l9,{"data-slot":"accordion-trigger",className:(0,i.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 roun
1ded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,(0,n.jsx)(r.A,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function l({className:e,children:t,...o}){return(0,n.jsx)(a.UC,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...o,children:(0,n.jsx)("div",{className:(0,i.cn)("pt-0 pb-4",e),children:t})})}},53254:(e,t,o)=>{o.d(t,{F:()=>u,Zv:()=>C});var n=o(14319),a=o(73945),r=o(7599),i=o(95878),c=o(53513),s=o(86409),d=o(48528);let l={icon:n.A,groupKey:"files",groupLabel:"Files",viewingMode:"viewer"},O={artifact:{...l,icon:a.A,label:"Artifact"},file:{...l,label:"Artifact"},markdown:{...l,label:"Document",detailLabel:"Markdown"},md:{...l,label:"Document",detailLabel:"Markdown"},pdf:{...l,label:"Document",detailLabel:"PDF"},docx:{...l,label:"Document",detailLabel:"DOCX"},pptx:{icon:r.A,label:"Presentation",detailLabel:"PPTX",groupKey:"files",groupLabel:"Files",viewingMode:"viewer"},xlsx:{icon:i.A,label:"Spreadsheet",detailLabel:"XLSX",groupKey:"files",groupLabel:"Files",viewingMode:"viewer"},csv:{icon:i.A,label:"Table",detailLabel:"CSV",groupKey:"files",groupLabel:"Files",viewingMode:"viewer"},py:{icon:c.A,label:"Code",detailLabel:"PY",groupKey:"files",groupLabel:"Files",viewingMode:"viewer"},js:{icon:c.A,label:"Code",detailLabel:"JS",groupKey:"files",groupLabel:"Files",viewingMode:"viewer"},ts:{icon:c.A,label:"Code",detailLabel:"TS",groupKey:"files",groupLabel:"Files",viewingMode:"viewer"},podcast:{icon:s.A,label:"Podcast",groupKey:"podcasts",groupLabel:"Podcasts",viewingMode:"inline-media"},video:{icon:r.A,label:"Presentation",groupKey:"presentations",groupLabel:"Presentations",viewingMode:"inline-media"},image:{icon:d.A,label:"Image",groupKey:"images",groupLabel:"Images",viewingMode:"inline-media"}};function u(e){return e?.trim().toLowerCase()||"file"}function C(e){let t=u(e);return O[t]??{...l,label:"File",detailLabel:t.toUpperCase()}}},55348:(e,t,o)=>{o.d(t,{q:()=>s});var n=o(85214),a=o(30697),r=o(98554),i=o(97722),c=o(84708);let s=new n.E({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1,retry:function(e,t){return!(e>=2)&&t instanceof c.uV&&(void 0===t.status?"NETWORK_ERROR"===t.code:t.status>=500)}}},queryCache:new a.$({onError:(e,t)=>{t.meta?.suppressGlobalErrorToast||(0,i.N)(e)}}),mutationCache:new r.q({onError:(e,t,o,n)=>{n.meta?.suppressGlobalErrorToast||(0,i.N)(e)}})})},61384:(e,t,o)=>{o.d(t,{D:()=>r});var n=o(1718),a=o(53254);function r({format:e,className:t}){let o=(0,a.Zv)(e).icon;return(0,n.jsx)(o,{className:t,"aria-hidden":"true"})}},64e3:(e,t,o)=>{o.d(t,{a:()=>a});var n,a=((n={}).SERPER_API="SERPER_API",n.TAVILY_API="TAVILY_API",n.SEARXNG_API="SEARXNG_API",n.LINKUP_API="LINKUP_API",n.BAIDU_SEARCH_API="BAIDU_SEARCH_API",n.SLACK_CONNECTOR="SLACK_CONNECTOR",n.TEAMS_CONNECTOR="TEAMS_CONNECTOR",n.ONEDRIVE_CONNECTOR="ONEDRIVE_CONNECTOR",n.NOTION_CONNECTOR="NOTION_CONNECTOR",n.GITHUB_CONNECTOR="GITHUB_CONNECTOR",n.LINEAR_CONNECTOR="LINEAR_CONNECTOR",n.JIRA_CONNECTOR="JIRA_CONNECTOR",n.DISCORD_CONNECTOR="DISCORD_CONNECTOR",n.CONFLUENCE_CONNECTOR="CONFLUENCE_CONNECTOR",n.BOOKSTACK_CONNECTOR="BOOKSTACK_CONNECTOR",n.CLICKUP_CONNECTOR="CLICKUP_CONNECTOR",n.GOOGLE_CALENDAR_CONNECTOR="GOOGLE_CALENDAR_CONNECTOR",n.GOOGLE_GMAIL_CONNECTOR="GOOGLE_GMAIL_CONNECTOR",n.GOOGLE_DRIVE_CONNECTOR="GOOGLE_DRIVE_CONNECTOR",n.AIRTABLE_CONNECTOR="AIRTABLE_CONNECTOR",n.LUMA_CONNECTOR="LUMA_CONNECTOR",n.ELASTICSEARCH_CONNECTOR="ELASTICSEARCH_CONNECTOR",n.WEBCRAWLER_CONNECTOR="WEBCRAWLER_CONNECTOR",n.YOUTUBE_CONNECTOR="YOUTUBE_CONNECTOR",n.CIRCLEBACK_CONNECTOR="CIRCLEBACK_CONNECTOR",n.OBSIDIAN_CONNECTOR="OBSIDIAN_CONNECTOR",n.DROPBOX_CONNECTOR="DROPBOX_CONNECTOR",n.MCP_CONNECTOR="MCP_CONNECTOR",n.COMPOSIO_GOOGLE_DRIVE_CONNECTOR="COMPOSIO_GOOGLE_DRIVE_CONNECTOR",n.COMPOSIO_GMAIL_CONNECTOR="COMPOSIO_GMAIL_CONNECTOR",n.COMPOSIO_GOOGLE_CALENDAR_CONNECTOR="COMPOSIO_GOOGLE_CALENDAR_CONNECTOR",n.COMPOSIO_OUTLOOK_CONNECTOR="COMPOSIO_OUTLOOK_CONNECTOR",n.COMPOSIO_TEAMS_CONNECTOR="COMPOSIO_TEAMS_CONNECTOR",n.COMPOSIO_JIRA_CONNECTOR="COMPOSIO_JIRA_CONNECTOR",n)},71859:(e,t,o)=>{o.d(t,{P:()=>i});var n=o(24215),a=o(1174),r=o(22538);function i(e){let{data:t=[]}=(0,n.I)({...(0,r.fT)(e),enabled:Number.isFinite(e)&&e>0});return(0,a.useMemo)(()=>new Map(t.map(e=>[e.document_id,e])),[t])}},85302:(e,t,o)=>{o.d(t,{RuntimeConfigProvider:()=>i,xS:()=>d,Tz:()=>s,nf:()=>l,yp:()=>c});var n=o(1718),a=o(1174);let r=(0,a.createContext)(null);function i({value:e,children:t}){return(0,n.jsx)(r.Provider,{value:e,children:t})}function c(){let e=(0,a.useContext)(r);if(!e)throw Error("useRuntimeConfig must be used within RuntimeConfigProvider");let t=Number(e.maxFileSizeMB);return{...e,maxFileSizeMB:Number.isFinite(t)&&t>0?t:500}}function s(){var e;return"LOCAL"===(e=c().authType)||"BOTH"===e}function d(){var e;return"GOOGLE"===(e=c().authType)||"BOTH"===e}function l(){return"self-hosted"===c().deploymentMode}},85911:(e,t,o)=>{o.d(t,{Ay:()=>a,FG:()=>i,M9:()=>O,MA:()=>s,U9:()=>l,V4:()=>r,Vc:()=>d,_y:()=>C,l$:()=>_,pk:()=>u,yk:()=>c});var n=o(64e3);let a=new Set([n.a.DISCORD_CONNECTOR,n.a.TEAMS_CONNECTOR,n.a.LUMA_CONNECTOR,n.a.TAVILY_API,n.a.SEARXNG_API,n.a.LINKUP_API,n.a.BAIDU_SEARCH_API,n.a.YOUTUBE_CONNECTOR,n.a.WEBCRAWLER_CONNECTOR,n.a.ELASTICSEARCH_CONNECTOR]),r=new Set([n.a.LINEAR_CONNECTOR,n.a.SLACK_CONNECTOR,n.a.JIRA_CONNECTOR,n.a.CLICKUP_CONNECTOR,n.a.AIRTABLE_CONNECTOR,n.a.DISCORD_CONNECTOR,n.a.TEAMS_CONNECTOR,n.a.GOOG
1LE_CALENDAR_CONNECTOR,n.a.COMPOSIO_GOOGLE_CALENDAR_CONNECTOR,n.a.GOOGLE_GMAIL_CONNECTOR,n.a.COMPOSIO_GMAIL_CONNECTOR,n.a.COMPOSIO_OUTLOOK_CONNECTOR,n.a.COMPOSIO_TEAMS_CONNECTOR,n.a.COMPOSIO_JIRA_CONNECTOR,n.a.LUMA_CONNECTOR,n.a.NOTION_CONNECTOR,n.a.CONFLUENCE_CONNECTOR]),i=[{id:"google-drive-connector",title:"Google Drive",description:"Search your Drive files",connectorType:n.a.GOOGLE_DRIVE_CONNECTOR,authEndpoint:"/api/v1/auth/google/drive/connector/add/",selfHostedOnly:!0},{id:"google-gmail-connector",title:"Gmail",description:"Search, read, draft, and send emails",connectorType:n.a.GOOGLE_GMAIL_CONNECTOR,authEndpoint:"/api/v1/auth/google/gmail/connector/add/",selfHostedOnly:!0},{id:"google-calendar-connector",title:"Google Calendar",description:"Search and manage your events",connectorType:n.a.GOOGLE_CALENDAR_CONNECTOR,authEndpoint:"/api/v1/auth/google/calendar/connector/add/",selfHostedOnly:!0},{id:"airtable-connector",title:"Airtable",description:"Browse bases, tables, and records",connectorType:n.a.AIRTABLE_CONNECTOR,authEndpoint:"/api/v1/auth/mcp/airtable/connector/add/"},{id:"notion-connector",title:"Notion",description:"Search, read, and create pages",connectorType:n.a.NOTION_CONNECTOR,authEndpoint:"/api/v1/auth/mcp/notion/connector/add/"},{id:"linear-connector",title:"Linear",description:"Search, read, and manage issues & projects",connectorType:n.a.LINEAR_CONNECTOR,authEndpoint:"/api/v1/auth/mcp/linear/connector/add/"},{id:"slack-connector",title:"Slack",description:"Search and read channels and threads",connectorType:n.a.SLACK_CONNECTOR,authEndpoint:"/api/v1/auth/mcp/slack/connector/add/"},{id:"teams-connector",title:"Microsoft Teams",description:"Search, read, and send messages",connectorType:n.a.TEAMS_CONNECTOR,authEndpoint:"/api/v1/auth/teams/connector/add/"},{id:"onedrive-connector",title:"OneDrive",description:"Search your OneDrive files",connectorType:n.a.ONEDRIVE_CONNECTOR,authEndpoint:"/api/v1/auth/onedrive/connector/add/"},{id:"dropbox-connector",title:"Dropbox",description:"Search your Dropbox files",connectorType:n.a.DROPBOX_CONNECTOR,authEndpoint:"/api/v1/auth/dropbox/connector/add/"},{id:"discord-connector",title:"Discord",description:"Search, read, and send messages",connectorType:n.a.DISCORD_CONNECTOR,authEndpoint:"/api/v1/auth/discord/connector/add/"},{id:"jira-connector",title:"Jira",description:"Search, read, and manage issues",connectorType:n.a.JIRA_CONNECTOR,authEndpoint:"/api/v1/auth/mcp/jira/connector/add/"},{id:"confluence-connector",title:"Confluence",description:"Search, read, and create pages",connectorType:n.a.CONFLUENCE_CONNECTOR,authEndpoint:"/api/v1/auth/mcp/confluence/connector/add/"},{id:"clickup-connector",title:"ClickUp",description:"Search and read tasks",connectorType:n.a.CLICKUP_CONNECTOR,authEndpoint:"/api/v1/auth/mcp/clickup/connector/add/"}],c=[{id:"youtube-crawler",title:"YouTube",description:"Crawl YouTube channels and playlists",connectorType:n.a.YOUTUBE_CONNECTOR},{id:"webcrawler-connector",title:"Web Pages",description:"Index and periodically sync web content",connectorType:n.a.WEBCRAWLER_CONNECTOR}],s=[{id:"bookstack-connector",title:"BookStack",description:"Search BookStack docs",connectorType:n.a.BOOKSTACK_CONNECTOR},{id:"github-connector",title:"GitHub",description:"Search repositories",connectorType:n.a.GITHUB_CONNECTOR},{id:"luma-connector",title:"Luma",description:"Browse, read, and create events",connectorType:n.a.LUMA_CONNECTOR},{id:"elasticsearch-connector",title:"Elasticsearch",description:"Search ES indexes",connectorType:n.a.ELASTICSEARCH_CONNECTOR},{id:"tavily-api",title:"Tavily AI",description:"Search with Tavily",connectorType:n.a.TAVILY_API},{id:"linkup-api",title:"Linkup API",description:"Search with Linkup",connectorType:n.a.LINKUP_API},{id:"baidu-search-api",title:"Baidu Search",description:"Search with Baidu",connectorType:n.a.BAIDU_SEARCH_API},{id:"circleback-connector",title:"Circleback",description:"Receive meeting notes, transcripts",connectorType:n.a.CIRCLEBACK_CONNECTOR},{id:"mcp-connector",title:"MCPs",description:"Connect to MCP servers for AI tools",connectorType:n.a.MCP_CONNECTOR},{id:"obsidian-connector",title:"Obsidian",description:"Sync your Obsidian vault on desktop or mobile",connectorType:n.a.OBSIDIAN_CONNECTOR}],d=[{id:"composio-googledrive",title:"Google Drive",description:"Search your Drive files via Composio",connectorType:n.a.COMPOSIO_GOOGLE_DRIVE_CONNECTOR,authEndpoint:"/api/v1/auth/composio/connector/add/?toolkit_id=googledrive"},{id:"composio-gmail",title:"Gmail",description:"Search, read, draft, and send emails via Composio",connectorType:n.a.COMPOSIO_GMAIL_CONNECTOR,authEndpoint:"/api/v1/auth/composio/connector/add/?toolkit_id=gmail"},{id:"composio-googlecalendar",title:"Google Calendar",description:"Search and manage your events via Composio",connectorType:n.a.COMPOSIO_GOOGLE_CALENDAR_CONNECTOR,authEndpoint:"/api/v1/auth/composio/connector/add/?toolkit_id=googlecalendar"},{id:"composio-outlook",title:"Outlook",description:"Search, read, and send Outlook mail via Composio",connectorType:n.a.COMPOSIO_OUTLOOK_CONNECTOR,authEndpoint:"/api/v1/auth/composio/connector/add/?toolkit_id=outlook"},{id:"composio-microsoft-teams",title:"Microsoft Teams",description:"List chats and send Teams messages via Composio",connectorType:n.a.COMPOSIO_TEAMS_CONNECTOR,authEndpoint:"/api/v1/auth/composio/connector/add/?toolkit_id=microsoft_teams"},{id:"composio-jira",title:"Jira",description:"Search, read, and create Jira issues via Composio (needs your Atlassian subdomain)",connectorType:n.a.COMPOSIO_JIRA_CONNECTOR,authEndpoint:"/api/v1/auth/composio/connector/add/?toolkit_id=jira"}],l=[...i,...c,...s,...d];function O(e){return l.find(t=>t.connectorType===e)?.title??e}function u(e){let t=new Map;for(let o of e){let e=t.get(o.connector_type)??[];e.push(o),t.set(o.connector_type,e)}return[...t.entries()].map(([e,t])=>({type:e,title:e===n.a.MCP_CONNECTOR?"MCP Servers":O(e),connectors:t,accountCount:t.length})).sort((e,t)=>
1e.title.localeCompare(t.title))}let C={[n.a.NOTION_CONNECTOR]:{daysBack:365,daysForward:0,frequencyMinutes:1440,syncDescription:"Syncing your pages."},[n.a.CONFLUENCE_CONNECTOR]:{daysBack:365,daysForward:0,frequencyMinutes:1440,syncDescription:"Syncing your documentation."}},_=new Set(Object.keys(C))},85988:(e,t,o)=>{o.d(t,{PlatformProvider:()=>c,r:()=>i});var n=o(1718),a=o(1174);let r={isDesktop:!1,isWeb:!1,electronAPI:null},i=(0,a.createContext)(r);function c({children:e}){let[t,o]=(0,a.useState)(r);return(0,a.useEffect)(()=>{let e=window.electronAPI??null,t=!!e;o({isDesktop:t,isWeb:!t,electronAPI:e})},[]),(0,n.jsx)(i.Provider,{value:t,children:e})}},93204:(e,t,o)=>{o.d(t,{H:()=>p});var n=o(1718),a=o(81515),r=o(4112),i=o(28661),c=o(14319),s=o(96636),d=o(95933),l=o(48264),O=o(9103),u=o(31205),C=o(13391),_=o(14909),N=o(64e3);let p=(e,t)=>{let o={className:t||"h-4 w-4"},p={className:`${t||"h-5 w-5"} select-none pointer-events-none`,width:20,height:20,draggable:!1};switch(e){case N.a.LINKUP_API:return(0,n.jsx)(_.default,{src:"/connectors/linkup.svg",alt:"Linkup",...p});case N.a.LINEAR_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/linear.svg",alt:"Linear",...p});case N.a.GITHUB_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/github.svg",alt:"GitHub",...p});case N.a.TAVILY_API:return(0,n.jsx)(_.default,{src:"/connectors/tavily.svg",alt:"Tavily",...p});case N.a.SEARXNG_API:return(0,n.jsx)(_.default,{src:"/connectors/searxng.svg",alt:"SearXNG",...p});case N.a.BAIDU_SEARCH_API:return(0,n.jsx)(_.default,{src:"/connectors/baidu-search.svg",alt:"Baidu",...p});case N.a.SLACK_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/slack.svg",alt:"Slack",...p});case N.a.TEAMS_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/microsoft-teams.svg",alt:"Microsoft Teams",...p});case N.a.ONEDRIVE_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/onedrive.svg",alt:"OneDrive",...p});case N.a.NOTION_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/notion.svg",alt:"Notion",...p});case N.a.DROPBOX_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/dropbox.svg",alt:"Dropbox",...p});case N.a.DISCORD_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/discord.svg",alt:"Discord",...p});case N.a.JIRA_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/jira.svg",alt:"Jira",...p});case N.a.GOOGLE_CALENDAR_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/google-calendar.svg",alt:"Google Calendar",...p});case N.a.GOOGLE_GMAIL_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/google-gmail.svg",alt:"Gmail",...p});case N.a.GOOGLE_DRIVE_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/google-drive.svg",alt:"Google Drive",...p});case N.a.AIRTABLE_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/airtable.svg",alt:"Airtable",...p});case N.a.CONFLUENCE_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/confluence.svg",alt:"Confluence",...p});case N.a.BOOKSTACK_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/bookstack.svg",alt:"BookStack",...p});case N.a.CLICKUP_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/clickup.svg",alt:"ClickUp",...p});case N.a.LUMA_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/luma.svg",alt:"Luma",...p});case N.a.ELASTICSEARCH_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/elasticsearch.svg",alt:"Elasticsearch",...p});case N.a.WEBCRAWLER_CONNECTOR:return(0,n.jsx)(r.A,{...o});case N.a.YOUTUBE_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/youtube.svg",alt:"YouTube",...p});case N.a.CIRCLEBACK_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/circleback.svg",alt:"Circleback",...p});case N.a.MCP_CONNECTOR:return(0,n.jsx)("span",{"aria-hidden":"true",className:`${t||"h-5 w-5"} bg-current select-none pointer-events-none`,style:{mask:"url('/connectors/modelcontextprotocol.svg') center / contain no-repeat",WebkitMask:"url('/connectors/modelcontextprotocol.svg') center / contain no-repeat"}});case N.a.OBSIDIAN_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/obsidian.svg",alt:"Obsidian",...p});case N.a.COMPOSIO_GOOGLE_DRIVE_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/google-drive.svg",alt:"Google Drive",...p});case N.a.COMPOSIO_GMAIL_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/google-gmail.svg",alt:"Gmail",...p});case N.a.COMPOSIO_GOOGLE_CALENDAR_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/google-calendar.svg",alt:"Google Calendar",...p});case N.a.COMPOSIO_OUTLOOK_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/outlook.svg",alt:"Outlook",...p});case N.a.COMPOSIO_TEAMS_CONNECTOR:return(0,n.jsx)(_.default,{src:"/connectors/microsoft-teams.svg",alt:"Microsoft Teams",...p});case N.a.COMPOSIO_JIRA_CONNECTOR:case"COMPOSIO_JIRA_CONNECTOR":return(0,n.jsx)(_.default,{src:"/connectors/jira.svg",alt:"Jira",...p});case"YOUTUBE_CONNECTOR":case"YOUTUBE_VIDEO":return(0,n.jsx)(_.default,{src:"/connectors/youtube.svg",alt:"YouTube",...p});
1case"CIRCLEBACK":return(0,n.jsx)(a.A,{...o});case"CRAWLED_URL":return(0,n.jsx)(r.A,{...o});case"MICROSOFT_TEAMS":case"ms-teams":case"COMPOSIO_TEAMS_CONNECTOR":return(0,n.jsx)(_.default,{src:"/connectors/microsoft-teams.svg",alt:"Microsoft Teams",...p});case"ZOOM":case"zoom":return(0,n.jsx)(_.default,{src:"/connectors/zoom.svg",alt:"Zoom",...p});case"FILE":case"LOCAL_FOLDER_FILE":return(0,n.jsx)(i.A,{...o});case"GOOGLE_DRIVE_FILE":case"COMPOSIO_GOOGLE_DRIVE_CONNECTOR":return(0,n.jsx)(_.default,{src:"/connectors/google-drive.svg",alt:"Google Drive",...p});case"DROPBOX_FILE":case"DROPBOX_CONNECTOR":return(0,n.jsx)(_.default,{src:"/connectors/dropbox.svg",alt:"Dropbox",...p});case"ONEDRIVE_FILE":case"ONEDRIVE_CONNECTOR":return(0,n.jsx)(_.default,{src:"/connectors/onedrive.svg",alt:"OneDrive",...p});case"COMPOSIO_GMAIL_CONNECTOR":return(0,n.jsx)(_.default,{src:"/connectors/google-gmail.svg",alt:"Gmail",...p});case"COMPOSIO_GOOGLE_CALENDAR_CONNECTOR":return(0,n.jsx)(_.default,{src:"/connectors/google-calendar.svg",alt:"Google Calendar",...p});case"COMPOSIO_OUTLOOK_CONNECTOR":return(0,n.jsx)(_.default,{src:"/connectors/outlook.svg",alt:"Outlook",...p});case"NOTE":return(0,n.jsx)(c.A,{...o});case"EXTENSION":return(0,n.jsx)(s.A,{...o});case"USER_MEMORY":case"TEAM_MEMORY":return(0,n.jsx)(d.A,{...o});case"DEEP":return(0,n.jsx)(l.A,{...o});case"DEEPER":return(0,n.jsx)(O.A,{...o});case"DEEPEST":return(0,n.jsx)(u.A,{...o});default:return(0,n.jsx)(C.A,{...o})}}},96732:(e,t,o)=>{o.d(t,{C:()=>n});function n(e){let t=e.kind??"doc";return"folder"===t?`folder:${e.id}`:"thread"===t?`thread:${e.id}`:"connector"===t?`connector:${e.connector_type??"UNKNOWN"}:${e.id}`:`doc:${e.document_type??"UNKNOWN"}:${e.id}`}},97722:(e,t,o)=>{o.d(t,{N:()=>s,j:()=>c});var n=o(76311),a=o(19058),r=o(97679),i=o(84708);function c(e){let t=(0,r.pT)(),o=["## Bug Report","","**Describe what happened:**","",""];return e instanceof i.uV?(o.push("## Diagnostics (auto-filled)",""),e.code&&o.push(`- **Error code:** \`${e.code}\``),e.requestId&&o.push(`- **Request ID:** \`${e.requestId}\``),e.status&&o.push(`- **HTTP status:** ${e.status}`),o.push(`- **Message:** ${e.message}`),o.push(`- **Environment:** ${t}`)):e instanceof Error&&(o.push("## Diagnostics (auto-filled)",""),o.push(`- **Error:** ${e.message}`),o.push(`- **Environment:** ${t}`)),o.push(`- **Timestamp:** ${new Date().toISOString()}`),o.push(`- **Page:** \`${window.location.pathname}\``),o.push(`- **User Agent:** \`${"u">typeof navigator?navigator.userAgent:"unknown"}\``),(0,a.Aw)(o.join("\n"))}function s(e,t){if(e instanceof i.oM||e instanceof i.v3)return;let o=e instanceof i.uV||e instanceof Error?e.message:t??"An unexpected error occurred.",a=e instanceof i.uV?e.code:void 0,r=e instanceof i.uV?e.requestId:void 0,s=[];a&&s.push(`Error: ${a}`),r&&s.push(`ID: ${r}`),n.oR.error(o,{id:"NETWORK_ERROR"===a?"network-error":void 0,description:s.length>0?s.join(" | "):void 0,duration:8e3,action:{label:"Report Issue",onClick:()=>window.open(c(e),"_blank")}})}}}]);

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.