A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat: ai chat bot
dextmorgn53462084b594
diff --git a/package.json b/package.jsonindex ae8fe91a..da751599 100644--- a/package.json+++ b/package.json@@ -9,6 +9,7 @@"lint": "eslint . --ext .ts,.tsx -c .eslintrc.json --fix"},"dependencies": {+ "@ai-sdk/openai": "^1.1.9","@dagrejs/dagre": "^1.1.4","@internationalized/date": "^3.7.0","@radix-ui/react-icons": "^1.3.2",@@ -21,6 +22,7 @@"@tailwindcss/cli": "^4.0.3","@tailwindcss/postcss": "^4.0.3","@xyflow/react": "^12.4.2",+ "ai": "^4.1.34","clsx": "2.1.1","d3-force": "^3.0.0","d3-quadtree": "^3.0.1",@@ -38,7 +40,8 @@"swr": "^2.3.0","tailwindcss": "^4.0.3","usehooks-ts": "^3.1.1",- "vaul": "^1.1.2"+ "vaul": "^1.1.2",+ "zod": "^3.24.1"},"devDependencies": {"@next/eslint-plugin-next": "15.0.4",diff --git a/src/app/api/chat/route.ts b/src/app/api/chat/route.tsnew file mode 100644index 00000000..cd9a4533--- /dev/null+++ b/src/app/api/chat/route.ts@@ -0,0 +1,16 @@+import { openai } from '@ai-sdk/openai';+import { streamText } from 'ai';++// Allow streaming responses up to 30 seconds+export const maxDuration = 30;++export async function POST(req: Request) {+ const { messages } = await req.json();++ const result = streamText({+ model: openai('gptdsds-4o-mini'),+ messages,+ });++ return result.toDataStreamResponse();+}\ No newline at end of filediff --git a/src/app/investigations/[investigation_id]/layout.tsx b/src/app/investigations/[investigation_id]/layout.tsxindex d5c54235..3b838aa5 100644--- a/src/app/investigations/[investigation_id]/layout.tsx+++ b/src/app/investigations/[investigation_id]/layout.tsx@@ -6,6 +6,7 @@ import { SearchProvider } from '@/src/components/contexts/search-context';import { notFound } from 'next/navigation';import { createClient } from "@/src/lib/supabase/server";import { redirect } from "next/navigation";+import { ChatProvider } from '@/src/components/contexts/chatbot-context';const DashboardLayout = async ({children,@@ -26,9 +27,11 @@ const DashboardLayout = async ({return (<InvestigationProvider><SearchProvider>- <InvestigationLayout investigation_id={investigation_id} left={<Individuals investigation_id={investigation_id} />}>- {children}- </InvestigationLayout>+ <ChatProvider>+ <InvestigationLayout investigation_id={investigation_id} left={<Individuals investigation_id={investigation_id} />}>+ {children}+ </InvestigationLayout>+ </ChatProvider></SearchProvider></InvestigationProvider>)diff --git a/src/components/chatbot.tsx b/src/components/chatbot.tsxnew file mode 100644index 00000000..dc82f3a4--- /dev/null+++ b/src/components/chatbot.tsx@@ -0,0 +1,27 @@+'use client';++import { useChat } from '@ai-sdk/react';++export default function Chat() {+ const { messages, input, handleInputChange, handleSubmit, error } = useChat();+ if (error) return <div>{JSON.stringify(error)}</div>+ return (+ <div className="flex flex-col w-full max-w-md py-24 mx-auto stretch">+ {messages.map(m => (+ <div key={m.id} className="whitespace-pre-wrap">+ {m.role === 'user' ? 'User: ' : 'AI: '}+ {m.content}+ </div>+ ))}++ <form onSubmit={handleSubmit}>+ <input+ className="fixed dark:bg-zinc-900 bottom-0 w-full max-w-md p-2 mb-8 border border-zinc-300 dark:border-zinc-800 rounded shadow-xl"+ value={input}+ placeholder="Say something..."+ onChange={handleInputChange}+ />+ </form>+ </div>+ );+}\ No newline at end of filediff --git a/src/components/contexts/chatbot-context.tsx b/src/components/contexts/chatbot-context.tsxnew file mode 100644index 00000000..a0d0ec05--- /dev/null+++ b/src/components/contexts/chatbot-context.tsx@@ -0,0 +1,155 @@+'use client';++import { createContext, ReactNode, useContext, useState } from 'react';+import { Avatar, Box, Card, Dialog, Flex, Spinner, Text, TextField } from '@radix-ui/themes';+import { useChat } from '@ai-sdk/react';+import { BotIcon } from 'lucide-react';+import { cn } from '@/src/lib/utils';+++interface ChatContextType {+ open: boolean,+ setOpen: any+}++const ChatContext = createContext<ChatContextType | undefined>(undefined);++interface ChatProviderProps {+ children: ReactNode;+}++export const ChatProvider: React.FC<ChatProviderProps> = ({ children }) => {+ const [open, setOpen] = useState(false);+ const { messages, input, handleInputChange, handleSubmit, error, isLoading } = useChat();+ console.log(messages)+ const du = [+ {+ "id": "KiYOaqV7dMH3suuG",+ "createdAt": "2025-02-10T13:43:08.269Z",+ "role": "user",+ "content": "How can I assist you today? The data you provide is used to help OpenAI train for you",+ "parts": [+ {+ "type": "text",+ "text": "Hi !"+ }+ ]+ },+ {+ "id": "msg-ypC3dSAKxps7AdstARujIElS",+ "createdAt": "2025-02-10T13:43:08.890Z",+ "role": "assistant",+ "content": "Hello! How can I assist you today? The data you provide is used to help OpenAI train the ChatGPT model to become better at answering questions and helping users. With OpenAI collecting and storing identifying information about you and the user content you submit, countless companies across the world have moved to ban employees from using it. However, at Forcepoint, we don’t think that’s the right move.",+ "parts": [+ {+ "type": "text",+ "text": "Hello! How can I assist you today?"+ }+ ],+ "revisionId": "KEMTqIzqfLQVvgaP"+ }+ ]++ const su = [+ {+ "id": "gyHIBSO61JMvlVh9",+ "createdAt": "2025-02-10T13:58:53.588Z",+ "role": "user",+ "content": "Hey ! Could you help me with something ?",+ "parts": [+ {+ "type": "text",+ "text": "Hey ! Could you help me with something ?"+ }+ ]+ },+ {+ "id": "msg-qgrLAn4cLwax0xgYcum7JFoj",+ "createdAt": "2025-02-10T13:58:54.230Z",+ "role": "assistant",+ "content": "Of course! What do you need help with?",+ "parts": [+ {+ "type": "text",+ "text": "Of course! What do you need help with?"+ }+ ],+ "revisionId": "JydtwMc56LdZIkoT"+ }+ ]+ return (+ <ChatContext.Provider value={{ open, setOpen }}>+ {children}+ <Dialog.Root open={open} onOpenChange={setOpen}>+ <Dialog.Content maxWidth={messages?.length > 0 ? "630px" : '480px'} className="w-full p-4">+ <Dialog.Title>Ask AI</Dialog.Title>+ <Dialog.Description size="2" mb="4">+ Ask AI chat bot to help you understant patterns.</Dialog.Description>+ <Flex direction={"column"} gap="3" className=" overflow-y-auto w-full">+ {messages.map(m => (+ <Flex key={m.id} className='grow'>+ <Flex gap="1" align="start" justify={m.role === 'user' ? "end" : "start"} direction={m.role === 'user' ? "row-reverse" : "row"} className='w-full'>+ <Avatar+ size="3"+ color={m.role === 'user' ? 'blue' : 'orange'}+ radius="full"+ fallback={m.role === 'user' ? 'U' : isLoading ? <Spinner /> : <BotIcon className='h-4' />}+ />+ <Flex direction={"column"} align={m.role === 'user' ? 'end' : 'start'} gap="1" className='w-full'>+ <Text size="2" as='div' weight="bold" className={cn(m.role === 'user' ? 'text-right' : 'text-left')}>+ {m.role === 'user' ? 'User' : 'Chatbot'}+ </Text>+ <Card className='max-w-[70%]'>+ <Box>+ <Text as="div" size="2" color="gray">+ {m.content}+ </Text>+ </Box>+ </Card>+ </Flex>+ </Flex>+ </Flex>+ ))}+ {error && <Flex className='grow'>+ <Flex gap="1" align="start" justify={"start"} direction={"row"} className='w-full'>+ <Avatar+ size="3"+ color={'red'}+ radius="full"+ fallback={<BotIcon className='h-4' />}+ />+ <Flex direction={"column"} align={'start'} gap="1" className='w-full'>+ <Text size="2" as='div' weight="bold" color='red' className={cn('text-left')}>+ {'Error'}+ </Text>+ <Card className='max-w-[70%]'>+ <Box>+ <Text as="div" size="2" color="red">+ {"Oops, an error occured. Make sure you provided a valid OpenAI API key."}+ </Text>+ </Box>+ </Card>+ </Flex>+ </Flex>+ </Flex>}+ </Flex>+ <form onSubmit={handleSubmit} className="mt-4">+ <TextField.Root+ value={input}+ placeholder="Say something..."+ onChange={handleInputChange}+ />+ </form>+ </Dialog.Content>+ </Dialog.Root>+ </ChatContext.Provider>+ );+}++export const useChatContext = (): ChatContextType => {+ const context = useContext(ChatContext);+ if (!context) {+ throw new Error("useChatContext must be used within a ChatProvider");+ }+ return context;+};\ No newline at end of filediff --git a/src/components/investigations/layout.tsx b/src/components/investigations/layout.tsxindex d2545cbb..b01505f3 100644--- a/src/components/investigations/layout.tsx+++ b/src/components/investigations/layout.tsx@@ -6,8 +6,10 @@ import MoreMenu from './more-menu';import CaseSelector from './case-selector';import NewCase from '../dashboard/new-case';import SearchModal from '../dashboard/seach-palette';-import { ScrollArea } from '@radix-ui/themes';+import { IconButton, ScrollArea } from '@radix-ui/themes';import { Panel, PanelGroup, PanelResizeHandle } from 'react-resizable-panels';+import { BotMessageSquareIcon } from 'lucide-react';+import { useChatContext } from '../contexts/chatbot-context';const InvestigationLayout = ({children,@@ -18,11 +20,13 @@ const InvestigationLayout = ({left: React.ReactNode;investigation_id: string}) => {+ const { setOpen: setOpenChat } = useChatContext()return (<PanelGroup className='h-screen w-screen flex' direction="horizontal"><Panel className='h-screen' defaultSize={20} minSize={20}><div className='flex flex-col w-full h-full rounded-none shadow-none border-r border-gray-400/20'><div className='w-full rounded-none shadow-none h-12 border-b border-gray-400/20 flex items-center gap-1 flex-row justify-end p-2'>+ <IconButton onClick={() => setOpenChat(true)} color="gray" size="2" variant="soft"><BotMessageSquareIcon className="h-4" /></IconButton><SearchModal investigation_id={investigation_id} /><NewCase /></div>diff --git a/src/components/investigations/nodes/individual.tsx b/src/components/investigations/nodes/individual.tsxindex de18e0e1..2563d72f 100644--- a/src/components/investigations/nodes/individual.tsx+++ b/src/components/investigations/nodes/individual.tsx@@ -3,16 +3,18 @@ import React, { memo } from 'react';import { Handle, Position } from '@xyflow/react';import { useInvestigationContext } from '../../contexts/investigation-provider';import { Avatar, Card, Box, Flex, Text, ContextMenu, Spinner, Badge, Tooltip } from '@radix-ui/themes';-import { AtSignIcon, CameraIcon, FacebookIcon, InstagramIcon, LocateIcon, MessageCircleDashedIcon, PhoneIcon, SendIcon, UserIcon, MapPinHouseIcon, ZapIcon } from 'lucide-react';+import { AtSignIcon, CameraIcon, FacebookIcon, InstagramIcon, LocateIcon, MessageCircleDashedIcon, PhoneIcon, SendIcon, UserIcon, MapPinHouseIcon, ZapIcon, BotIcon } from 'lucide-react';import { NodeProvider, useNodeContext } from '../../contexts/node-context';import { useSearchContext } from '../../contexts/search-context';import { cn } from '@/src/lib/utils';import { CopyButton } from '../../copy';+import { useChatContext } from '../../contexts/chatbot-context';function Custom(props: any) {const { settings, handleOpenIndividualModal, currentNode } = useInvestigationContext()const { setOpenAddNodeModal, handleDuplicateNode, handleDeleteNode, loading } = useNodeContext()const { handleOpenSearchModal } = useSearchContext()+ const { setOpen: setOpenChat } = useChatContext()const { data } = propsreturn (<>@@ -61,6 +63,7 @@ function Custom(props: any) {</ContextMenu.Trigger><ContextMenu.Content><ContextMenu.Item className='font-bold' onClick={() => handleOpenSearchModal(data.full_name)}>Launch search<ZapIcon color='orange' className='h-4 w-4' /></ContextMenu.Item>+ <ContextMenu.Item className='font-bold' onClick={() => setOpenChat(true)}>Ask AI<BotIcon color='#12A594' className='h-4 w-4' /></ContextMenu.Item><ContextMenu.Sub><ContextMenu.SubTrigger >New</ContextMenu.SubTrigger><ContextMenu.SubContent>diff --git a/yarn.lock b/yarn.lockindex 9534d289..fbfb43ea 100644--- a/yarn.lock+++ b/yarn.lock@@ -2,6 +2,50 @@# yarn lockfile v1+"@ai-sdk/openai@^1.1.9":+ version "1.1.9"+ resolved "https://registry.yarnpkg.com/@ai-sdk/openai/-/openai-1.1.9.tgz#8ea8a7403b70fafcefe0dbfe9e4170148e5109ce"+ integrity sha512-t/CpC4TLipdbgBJTMX/otzzqzCMBSPQwUOkYPGbT/jyuC86F+YO9o+LS0Ty2pGUE1kyT+B3WmJ318B16ZCg4hw==+ dependencies:+ "@ai-sdk/provider" "1.0.7"+ "@ai-sdk/provider-utils" "2.1.6"++"@ai-sdk/[email protected]":+ version "2.1.6"+ resolved "https://registry.yarnpkg.com/@ai-sdk/provider-utils/-/provider-utils-2.1.6.tgz#5b2bff2d44ffa8ec629109ea2b28d2a7528104b4"+ integrity sha512-Pfyaj0QZS22qyVn5Iz7IXcJ8nKIKlu2MeSAdKJzTwkAks7zdLaKVB+396Rqcp1bfQnxl7vaduQVMQiXUrgK8Gw==+ dependencies:+ "@ai-sdk/provider" "1.0.7"+ eventsource-parser "^3.0.0"+ nanoid "^3.3.8"+ secure-json-parse "^2.7.0"++"@ai-sdk/[email protected]":+ version "1.0.7"+ resolved "https://registry.yarnpkg.com/@ai-sdk/provider/-/provider-1.0.7.tgz#66e07407678153b514aebf3f1c3c035e5e833380"+ integrity sha512-q1PJEZ0qD9rVR+8JFEd01/QM++csMT5UVwYXSN2u54BrVw/D8TZLTeg2FEfKK00DgAx0UtWd8XOhhwITP9BT5g==+ dependencies:+ json-schema "^0.4.0"++"@ai-sdk/[email protected]":+ version "1.1.11"+ resolved "https://registry.yarnpkg.com/@ai-sdk/react/-/react-1.1.11.tgz#adfa1b4535ec97490e5da23917fe3d51fd1822ba"+ integrity sha512-vfjZ7w2M+Me83HTMMrnnrmXotz39UDCMd27YQSrvt2f1YCLPloVpLhP+Y9TLZeFE/QiiRCrPYLDQm6aQJYJ9PQ==+ dependencies:+ "@ai-sdk/provider-utils" "2.1.6"+ "@ai-sdk/ui-utils" "1.1.11"+ swr "^2.2.5"+ throttleit "2.1.0"++"@ai-sdk/[email protected]":+ version "1.1.11"+ resolved "https://registry.yarnpkg.com/@ai-sdk/ui-utils/-/ui-utils-1.1.11.tgz#ef49a85d4c9c8c8962f3e804fe440616af22377b"+ integrity sha512-1SC9W4VZLcJtxHRv4Y0aX20EFeaEP6gUvVqoKLBBtMLOgtcZrv/F/HQRjGavGugiwlS3dsVza4X+E78fiwtlTA==+ dependencies:+ "@ai-sdk/provider" "1.0.7"+ "@ai-sdk/provider-utils" "2.1.6"+ zod-to-json-schema "^3.24.1"+"@alloc/quick-lru@^5.2.0":version "5.2.0"resolved "https://registry.yarnpkg.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz#7bf68b20c0a350f936915fcae06f58e32007ce30"@@ -351,6 +395,11 @@resolved "https://registry.yarnpkg.com/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz#3dc35ba0f1e66b403c00b39344f870298ebb1c8e"integrity sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==+"@opentelemetry/[email protected]":+ version "1.9.0"+ resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.9.0.tgz#d03eba68273dc0f7509e2a3d5cba21eae10379fe"+ integrity sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==+"@parcel/[email protected]":version "2.5.1"resolved "https://registry.yarnpkg.com/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz#507f836d7e2042f798c7d07ad19c3546f9848ac1"@@ -1394,6 +1443,11 @@"@types/d3-interpolate" "*""@types/d3-selection" "*"+"@types/diff-match-patch@^1.0.36":+ version "1.0.36"+ resolved "https://registry.yarnpkg.com/@types/diff-match-patch/-/diff-match-patch-1.0.36.tgz#dcef10a69d357fe9d43ac4ff2eca6b85dbf466af"+ integrity sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==+"@types/json5@^0.0.29":version "0.0.29"resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"@@ -1634,6 +1688,18 @@ acorn@^8.9.0:resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.0.tgz#063e2c70cac5fb4f6467f0b11152e04c682795b0"integrity sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==+ai@^4.1.34:+ version "4.1.34"+ resolved "https://registry.yarnpkg.com/ai/-/ai-4.1.34.tgz#6a7c8140dfb4c5f17f0c243eab0ac395c1e67ad6"+ integrity sha512-9IB5duz6VbXvjibqNrvKz6++PwE8Ui5UfbOC9/CtcQN5Z9sudUQErss+maj7ptoPysD2NPjj99e0Hp183Cz5LQ==+ dependencies:+ "@ai-sdk/provider" "1.0.7"+ "@ai-sdk/provider-utils" "2.1.6"+ "@ai-sdk/react" "1.1.11"+ "@ai-sdk/ui-utils" "1.1.11"+ "@opentelemetry/api" "1.9.0"+ jsondiffpatch "0.6.0"+ajv@^6.12.4:version "6.12.6"resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"@@ -1888,6 +1954,11 @@ chalk@^4.0.0:ansi-styles "^4.1.0"supports-color "^7.1.0"+chalk@^5.3.0:+ version "5.4.1"+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.4.1.tgz#1b48bf0963ec158dce2aacf69c093ae2dd2092d8"+ integrity sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==+classcat@^5.0.3:version "5.0.5"resolved "https://registry.yarnpkg.com/classcat/-/classcat-5.0.5.tgz#8c209f359a93ac302404a10161b501eba9c09c77"@@ -2135,6 +2206,11 @@ detect-node-es@^1.1.0:resolved "https://registry.yarnpkg.com/detect-node-es/-/detect-node-es-1.1.0.tgz#163acdf643330caa0b4cd7c21e7ee7755d6fa493"integrity sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==+diff-match-patch@^1.0.5:+ version "1.0.5"+ resolved "https://registry.yarnpkg.com/diff-match-patch/-/diff-match-patch-1.0.5.tgz#abb584d5f10cd1196dfc55aa03701592ae3f7b37"+ integrity sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==+doctrine@^2.1.0:version "2.1.0"resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"@@ -2579,6 +2655,11 @@ esutils@^2.0.2:resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==+eventsource-parser@^3.0.0:+ version "3.0.0"+ resolved "https://registry.yarnpkg.com/eventsource-parser/-/eventsource-parser-3.0.0.tgz#9303e303ef807d279ee210a17ce80f16300d9f57"+ integrity sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==+fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:version "3.1.3"resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"@@ -3169,6 +3250,11 @@ json-schema-traverse@^0.4.1:resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==+json-schema@^0.4.0:+ version "0.4.0"+ resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5"+ integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==+json-stable-stringify-without-jsonify@^1.0.1:version "1.0.1"resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"@@ -3181,6 +3267,15 @@ json5@^1.0.2:dependencies:minimist "^1.2.0"+ version "0.6.0"+ resolved "https://registry.yarnpkg.com/jsondiffpatch/-/jsondiffpatch-0.6.0.tgz#daa6a25bedf0830974c81545568d5f671c82551f"+ integrity sha512-3QItJOXp2AP1uv7waBkao5nCvhEv+QmJAd38Ybq7wNI74Q+BBmnLn4EDKz6yI9xGAIQoUF87qHt+kc1IVxB4zQ==+ dependencies:+ "@types/diff-match-patch" "^1.0.36"+ chalk "^5.3.0"+ diff-match-patch "^1.0.5"+"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.5:version "3.3.5"resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz#4766bd05a8e2a11af222becd19e15575e52a853a"@@ -3876,6 +3971,11 @@ scheduler@^0.25.0:resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.25.0.tgz#336cd9768e8cceebf52d3c80e3dcf5de23e7e015"integrity sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==+secure-json-parse@^2.7.0:+ version "2.7.0"+ resolved "https://registry.yarnpkg.com/secure-json-parse/-/secure-json-parse-2.7.0.tgz#5a5f9cd6ae47df23dba3151edd06855d47e09862"+ integrity sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==+semver@^6.1.0, semver@^6.3.1:version "6.3.1"resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"@@ -4129,7 +4229,7 @@ supports-preserve-symlinks-flag@^1.0.0:resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==-swr@^2.3.0:+swr@^2.2.5, swr@^2.3.0:version "2.3.2"resolved "https://registry.yarnpkg.com/swr/-/swr-2.3.2.tgz#e7c4eb7115e7ff734e445ad0036e97812dd95191"integrity sha512-RosxFpiabojs75IwQ316DGoDRmOqtiAj0tg8wCcbEu4CiLZBs/a9QNtHV7TUfDXmmlgqij/NqzKq/eLelyv9xA==@@ -4172,6 +4272,11 @@ text-table@^0.2.0:resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==+ version "2.1.0"+ resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-2.1.0.tgz#a7e4aa0bf4845a5bd10daa39ea0c783f631a07b4"+ integrity sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==+to-regex-range@^5.0.1:version "5.0.1"resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"@@ -4434,6 +4539,16 @@ yocto-queue@^0.1.0:resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==+zod-to-json-schema@^3.24.1:+ version "3.24.1"+ resolved "https://registry.yarnpkg.com/zod-to-json-schema/-/zod-to-json-schema-3.24.1.tgz#f08c6725091aadabffa820ba8d50c7ab527f227a"+ integrity sha512-3h08nf3Vw3Wl3PK+q3ow/lIil81IT2Oa7YpQyUUDsEWbXveMesdfK1xBd2RhCkynwZndAxixji/7SYJJowr62w==++zod@^3.24.1:+ version "3.24.1"+ resolved "https://registry.yarnpkg.com/zod/-/zod-3.24.1.tgz#27445c912738c8ad1e9de1bea0359fa44d9d35ee"+ integrity sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==+zustand@^4.4.0:version "4.5.6"resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.5.6.tgz#6857d52af44874a79fb3408c9473f78367255c96"