From ba99a7632faf5dbee2a0ffcd0ecc3804792e4a8e Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Mon, 25 Mar 2024 14:38:29 -0400 Subject: [PATCH 1/4] feat: Set up zep and zep + langchain sample next js app --- examples/next-zep/.env.example | 2 + examples/next-zep/.gitignore | 35 +++++++++ examples/next-zep/README.md | 45 +++++++++++ .../app/api/langchain-zep-history/route.ts | 62 +++++++++++++++ .../next-zep/app/api/zep-history/route.ts | 71 ++++++++++++++++++ examples/next-zep/app/favicon.ico | Bin 0 -> 25931 bytes examples/next-zep/app/globals.css | 3 + .../app/langchain-zep-history/page.tsx | 40 ++++++++++ examples/next-zep/app/layout.tsx | 21 ++++++ examples/next-zep/app/page.tsx | 40 ++++++++++ examples/next-zep/app/utils.ts | 7 ++ examples/next-zep/next.config.js | 4 + examples/next-zep/package.json | 33 ++++++++ examples/next-zep/postcss.config.js | 6 ++ examples/next-zep/tailwind.config.js | 18 +++++ examples/next-zep/tsconfig.json | 28 +++++++ turbo.json | 3 +- 17 files changed, 417 insertions(+), 1 deletion(-) create mode 100644 examples/next-zep/.env.example create mode 100644 examples/next-zep/.gitignore create mode 100644 examples/next-zep/README.md create mode 100644 examples/next-zep/app/api/langchain-zep-history/route.ts create mode 100644 examples/next-zep/app/api/zep-history/route.ts create mode 100644 examples/next-zep/app/favicon.ico create mode 100644 examples/next-zep/app/globals.css create mode 100644 examples/next-zep/app/langchain-zep-history/page.tsx create mode 100644 examples/next-zep/app/layout.tsx create mode 100644 examples/next-zep/app/page.tsx create mode 100644 examples/next-zep/app/utils.ts create mode 100644 examples/next-zep/next.config.js create mode 100644 examples/next-zep/package.json create mode 100644 examples/next-zep/postcss.config.js create mode 100644 examples/next-zep/tailwind.config.js create mode 100644 examples/next-zep/tsconfig.json diff --git a/examples/next-zep/.env.example b/examples/next-zep/.env.example new file mode 100644 index 00000000000..e7de326b82d --- /dev/null +++ b/examples/next-zep/.env.example @@ -0,0 +1,2 @@ +OPENAI_API_KEY=xxxxxxx +ZEP_API_KEY=xxxxxxx \ No newline at end of file diff --git a/examples/next-zep/.gitignore b/examples/next-zep/.gitignore new file mode 100644 index 00000000000..8f322f0d8f4 --- /dev/null +++ b/examples/next-zep/.gitignore @@ -0,0 +1,35 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/examples/next-zep/README.md b/examples/next-zep/README.md new file mode 100644 index 00000000000..7166a5cd40e --- /dev/null +++ b/examples/next-zep/README.md @@ -0,0 +1,45 @@ +# Vercel AI SDK, Zep, Next.js, and OpenAI Chat Example + +This example shows how to use the [Vercel AI SDK](https://sdk.vercel.ai/docs) with [Next.js](https://nextjs.org/) and [OpenAI](https://openai.com) to create a ChatGPT-like AI-powered streaming chat bot with long term message history (provided by [Zep](https://getzep.com)). + +[//]: # (## Deploy your own) + +[//]: # () +[//]: # (Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=ai-sdk-example):) + +[//]: # () +[//]: # ([![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Ftree%2Fmain%2Fexamples%2Fnext-openai&env=OPENAI_API_KEY&envDescription=OpenAI%20API%20Key&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=vercel-ai-chat-openai&repository-name=vercel-ai-chat-openai)) + +## How to use + +Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: + +```bash +npx create-next-app --example https://github.com/vercel/ai/tree/main/examples/next-zep next-zep-app +``` + +```bash +yarn create next-app --example https://github.com/vercel/ai/tree/main/examples/next-zep next-zep-app +``` + +```bash +pnpm create next-app --example https://github.com/vercel/ai/tree/main/examples/next-zep next-zep-app +``` + +To run the example locally you need to: + +1. Sign up at [OpenAI's Developer Platform](https://platform.openai.com/signup). +2. Go to [OpenAI's dashboard](https://platform.openai.com/account/api-keys) and create an API KEY. +3. Set the required OpenAI environment variable as the token value as shown [the example env file](./.env.local.example) but in a new file called `.env.local` +4. `pnpm install` to install the required dependencies. +5. `pnpm dev` to launch the development server. + +## Learn More + +To learn more about OpenAI, Next.js, and the Vercel AI SDK take a look at the following resources: + +- [Vercel AI SDK docs](https://sdk.vercel.ai/docs) +- [Vercel AI Playground](https://play.vercel.ai) +- [Zep docs](https://help.getzep.com) +- [OpenAI Documentation](https://platform.openai.com/docs) - learn about OpenAI features and API. +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. diff --git a/examples/next-zep/app/api/langchain-zep-history/route.ts b/examples/next-zep/app/api/langchain-zep-history/route.ts new file mode 100644 index 00000000000..33a07316ebe --- /dev/null +++ b/examples/next-zep/app/api/langchain-zep-history/route.ts @@ -0,0 +1,62 @@ +import { + StreamingTextResponse, +} from 'ai'; +import { ChatPromptTemplate, MessagesPlaceholder } from "@langchain/core/prompts"; +import { BytesOutputParser } from "@langchain/core/output_parsers"; +import { ZepClient } from '@getzep/zep-js'; +import { ZepChatMessageHistory } from '@getzep/zep-js/langchain'; +import { RunnableWithMessageHistory } from "@langchain/core/runnables"; +import { ConsoleCallbackHandler } from "@langchain/core/tracers/console"; +import { ChatOpenAI } from "@langchain/openai"; + +export const runtime = 'edge'; + +export async function POST(req: Request) { + const { messages, sessionId } = await req.json(); + const zep = await ZepClient.init(process.env.ZEP_API_KEY); + const currentMessageContent = messages[messages.length - 1].content; + + const prompt = ChatPromptTemplate.fromMessages([ + ["system", "Answer the user's question below. Be polite and helpful:"], + new MessagesPlaceholder("history"), + ["human", "{question}"], + ]); + /** + * See a full list of supported models at: + * https://js.langchain.com/docs/modules/model_io/models/ + */ + const model = new ChatOpenAI({ + temperature: 0.8, + }); + + /** + * Chat models stream message chunks rather than bytes, so this + * output parser handles serialization and encoding. + */ + const outputParser = new BytesOutputParser(); + + const chain = prompt.pipe(model).withConfig({ + callbacks: [new ConsoleCallbackHandler()], + }); + + const chainWithHistory = new RunnableWithMessageHistory({ + runnable: chain, + getMessageHistory: (sessionId: string) => new ZepChatMessageHistory({ + client: zep, + sessionId: sessionId, + memoryType: "perpetual", + }), + inputMessagesKey: "question", + historyMessagesKey: "history", + }).pipe(outputParser); + + const stream = await chainWithHistory.stream({ + question: currentMessageContent, + }, { + configurable: { + sessionId: sessionId, + } + }); + + return new StreamingTextResponse(stream); +} \ No newline at end of file diff --git a/examples/next-zep/app/api/zep-history/route.ts b/examples/next-zep/app/api/zep-history/route.ts new file mode 100644 index 00000000000..411785761ce --- /dev/null +++ b/examples/next-zep/app/api/zep-history/route.ts @@ -0,0 +1,71 @@ +import OpenAI from 'openai'; +import { OpenAIStream, StreamingTextResponse } from 'ai'; +import { Memory, Message, ZepClient } from '@getzep/zep-js'; +import { ChatCompletionMessageParam } from 'ai/prompts'; + +// Create an OpenAI API client (that's edge friendly!) +const openai = new OpenAI({ + apiKey: process.env.OPENAI_API_KEY, +}); + +// IMPORTANT! Set the runtime to edge +export const runtime = 'edge'; + +export async function POST(req: Request) { + const { messages, sessionId } = await req.json(); + const lastMessage = messages[messages.length - 1]; + + const zep = await ZepClient.init(process.env.ZEP_API_KEY); + await zep.memory.addMemory( + sessionId, + new Memory({ + messages: [ + new Message({ + role: lastMessage.role, + content: lastMessage.content, + role_type: 'user' + }) + ] + }) + ); + const memory = await zep.memory.getMemory(sessionId, 'perpetual'); + let systemContent = ''; + if (memory?.summary) { + systemContent += memory.summary.content; + } + if (memory?.facts) { + systemContent += `\n${memory.facts.join('\n')}`; + } + const systemMessage: ChatCompletionMessageParam = { + content: systemContent, + role: 'system' + }; + const memoryMessages: ChatCompletionMessageParam[] = (memory?.messages ?? []).map((message) => ({ + content: message.content, + role: message.role_type as 'assistant' | 'system' | 'user' + })); + const response = await openai.chat.completions.create({ + model: 'gpt-3.5-turbo', + stream: true, + messages: [systemMessage, ...memoryMessages] + }); + + const stream = OpenAIStream(response, { + async onFinal(completion: string) { + await zep.memory.addMemory( + sessionId, + new Memory({ + messages: [ + new Message({ + role: 'ai', + content: completion, + role_type: 'assistant' + }) + ] + }) + ); + } + }); + // Respond with the stream + return new StreamingTextResponse(stream); +} \ No newline at end of file diff --git a/examples/next-zep/app/favicon.ico b/examples/next-zep/app/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c GIT binary patch literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXaYf~-84xW z)w4x8?=youko|}Vr~(D$UXIbiXABHh`p1?nn8Po~fxRJv}|0e(BPs|G`(TT%kKVJAdg5*Z|x0leQq0 zkdUBvb#>9F()jo|T~kx@OM8$9wzs~t2l;K=woNssA3l6|sx2r3+kdfVW@e^8e*E}v zA1y5{bRi+3Z`uD3{F7LgFJDdvm;nJilkzDku>BwXH(8ItVCXk*-lSJnR?-2UN%hJ){&rlvg`CDTj z)Bzo!3v7Ou#83zEDEFcKt(f1E0~=rqeEbTnMvWR#{+9pg%7G8y>u1OVRUSoox-ovF z2Ydma(;=YuBY(eI|04{hXzZD6_f(v~H;C~y5=DhAC{MMS>2fm~1H_t2$56pc$NH8( z5bH|<)71dV-_oCHIrzrT`2s-5w_+2CM0$95I6X8p^r!gHp+j_gd;9O<1~CEQQGS8) zS9Qh3#p&JM-G8rHekNmKVewU;pJRcTAog68KYo^dRo}(M>36U4Us zfgYWSiHZL3;lpWT=zNAW>Dh#mB!_@Lg%$ms8N-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FD5aoS4g~7#6NR^ma7-!>mHuJfY5kTe6PpNNKC9GGRiu^L31uG z$7v`*JknQHsYB!Tm_W{a32TM099djW%5e+j0Ve_ct}IM>XLF1Ap+YvcrLV=|CKo6S zb+9Nl3_YdKP6%Cxy@6TxZ>;4&nTneadr z_ES90ydCev)LV!dN=#(*f}|ZORFdvkYBni^aLbUk>BajeWIOcmHP#8S)*2U~QKI%S zyrLmtPqb&TphJ;>yAxri#;{uyk`JJqODDw%(Z=2`1uc}br^V%>j!gS)D*q*f_-qf8&D;W1dJgQMlaH5er zN2U<%Smb7==vE}dDI8K7cKz!vs^73o9f>2sgiTzWcwY|BMYHH5%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/examples/next-zep/app/globals.css b/examples/next-zep/app/globals.css new file mode 100644 index 00000000000..b5c61c95671 --- /dev/null +++ b/examples/next-zep/app/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/examples/next-zep/app/langchain-zep-history/page.tsx b/examples/next-zep/app/langchain-zep-history/page.tsx new file mode 100644 index 00000000000..96b8eb7386a --- /dev/null +++ b/examples/next-zep/app/langchain-zep-history/page.tsx @@ -0,0 +1,40 @@ +'use client'; +import * as uuid from 'uuid'; +import { useChat } from 'ai/react'; +import { useEffect, useMemo } from 'react'; +import { getQueryParam } from '@/app/utils'; + +export default function Chat() { + useEffect(() => { + if (!getQueryParam("sessionId")) { + window.location.search = `sessionId=${uuid.v4()}`; + } + }, []); + + const { messages, input, handleInputChange, handleSubmit } = useChat({ + body: { + sessionId: getQueryParam("sessionId"), + }, + api: "/api/langchain-zep-history" + }); + + return ( +
+ {messages.map(m => ( +
+ {m.role === 'user' ? 'User: ' : 'AI: '} + {m.content} +
+ ))} + +
+ +
+
+ ); +} diff --git a/examples/next-zep/app/layout.tsx b/examples/next-zep/app/layout.tsx new file mode 100644 index 00000000000..34624c55418 --- /dev/null +++ b/examples/next-zep/app/layout.tsx @@ -0,0 +1,21 @@ +import './globals.css'; +import { Inter } from 'next/font/google'; + +const inter = Inter({ subsets: ['latin'] }); + +export const metadata = { + title: 'Create Next App', + description: 'Generated by create next app', +}; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} diff --git a/examples/next-zep/app/page.tsx b/examples/next-zep/app/page.tsx new file mode 100644 index 00000000000..5637ff6b58a --- /dev/null +++ b/examples/next-zep/app/page.tsx @@ -0,0 +1,40 @@ +'use client'; +import * as uuid from 'uuid'; +import { useChat } from 'ai/react'; +import { useEffect, useMemo } from 'react'; +import { getQueryParam } from '@/app/utils'; + +export default function Chat() { + useEffect(() => { + if (!getQueryParam("sessionId")) { + window.location.search = `sessionId=${uuid.v4()}`; + } + }, []); + + const { messages, input, handleInputChange, handleSubmit } = useChat({ + body: { + sessionId: getQueryParam("sessionId"), + }, + api: "/api/zep-history" + }); + + return ( +
+ {messages.map(m => ( +
+ {m.role === 'user' ? 'User: ' : 'AI: '} + {m.content} +
+ ))} + +
+ +
+
+ ); +} diff --git a/examples/next-zep/app/utils.ts b/examples/next-zep/app/utils.ts new file mode 100644 index 00000000000..8feacf7c74c --- /dev/null +++ b/examples/next-zep/app/utils.ts @@ -0,0 +1,7 @@ +export const getQueryParam = (name: string) => { + if (typeof window !== "undefined") { + const urlParams = new URLSearchParams(window.location.search); + return urlParams.get(name); + } + return null +} \ No newline at end of file diff --git a/examples/next-zep/next.config.js b/examples/next-zep/next.config.js new file mode 100644 index 00000000000..658404ac690 --- /dev/null +++ b/examples/next-zep/next.config.js @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +module.exports = nextConfig; diff --git a/examples/next-zep/package.json b/examples/next-zep/package.json new file mode 100644 index 00000000000..94ca0c7eae0 --- /dev/null +++ b/examples/next-zep/package.json @@ -0,0 +1,33 @@ +{ + "name": "next-zep", + "version": "0.0.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "@getzep/zep-js": "2.0.0-rc.4", + "ai": "latest", + "langchain": "^0.1.29", + "next": "14.1.1", + "openai": "4.29.0", + "react": "18.2.0", + "react-dom": "^18.2.0", + "uuid": "^9.0.1" + }, + "devDependencies": { + "@types/node": "^17.0.12", + "@types/react": "18.2.8", + "@types/react-dom": "18.2.4", + "@types/uuid": "^9.0.8", + "autoprefixer": "^10.4.14", + "eslint": "^7.32.0", + "eslint-config-next": "13.4.12", + "postcss": "^8.4.23", + "tailwindcss": "^3.3.2", + "typescript": "5.1.3" + } +} diff --git a/examples/next-zep/postcss.config.js b/examples/next-zep/postcss.config.js new file mode 100644 index 00000000000..12a703d900d --- /dev/null +++ b/examples/next-zep/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/examples/next-zep/tailwind.config.js b/examples/next-zep/tailwind.config.js new file mode 100644 index 00000000000..db68cff5779 --- /dev/null +++ b/examples/next-zep/tailwind.config.js @@ -0,0 +1,18 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + './pages/**/*.{js,ts,jsx,tsx,mdx}', + './components/**/*.{js,ts,jsx,tsx,mdx}', + './app/**/*.{js,ts,jsx,tsx,mdx}', + ], + theme: { + extend: { + backgroundImage: { + 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', + 'gradient-conic': + 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', + }, + }, + }, + plugins: [], +}; diff --git a/examples/next-zep/tsconfig.json b/examples/next-zep/tsconfig.json new file mode 100644 index 00000000000..e06a4454ab0 --- /dev/null +++ b/examples/next-zep/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/turbo.json b/turbo.json index 95dbfbaffb0..1cc01e5f472 100644 --- a/turbo.json +++ b/turbo.json @@ -20,7 +20,8 @@ "ASSISTANT_ID", "INKEEP_API_KEY", "INKEEP_INTEGRATION_ID", - "VERCEL_URL" + "VERCEL_URL", + "ZEP_API_KEY" ], "outputs": ["dist/**", ".next/**", "!.next/cache/**"] }, From 667fe4a725d64cf40f98e7500006e1da614cac95 Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Mon, 25 Mar 2024 15:09:31 -0400 Subject: [PATCH 2/4] chore: Update docs --- .../{.env.example => .env.local.example} | 0 examples/next-zep/README.md | 25 ++++++++++--------- .../app/api/langchain-zep-history/route.ts | 7 ++++++ .../next-zep/app/api/zep-history/route.ts | 4 +++ 4 files changed, 24 insertions(+), 12 deletions(-) rename examples/next-zep/{.env.example => .env.local.example} (100%) diff --git a/examples/next-zep/.env.example b/examples/next-zep/.env.local.example similarity index 100% rename from examples/next-zep/.env.example rename to examples/next-zep/.env.local.example diff --git a/examples/next-zep/README.md b/examples/next-zep/README.md index 7166a5cd40e..8355e00148b 100644 --- a/examples/next-zep/README.md +++ b/examples/next-zep/README.md @@ -1,14 +1,14 @@ # Vercel AI SDK, Zep, Next.js, and OpenAI Chat Example -This example shows how to use the [Vercel AI SDK](https://sdk.vercel.ai/docs) with [Next.js](https://nextjs.org/) and [OpenAI](https://openai.com) to create a ChatGPT-like AI-powered streaming chat bot with long term message history (provided by [Zep](https://getzep.com)). +This example shows how to use the [Vercel AI SDK](https://sdk.vercel.ai/docs) with [Next.js](https://nextjs.org/) and [OpenAI](https://openai.com) to create a ChatGPT-like AI-powered streaming chat bot with long term memory (provided by [Zep](https://getzep.com)). -[//]: # (## Deploy your own) +## Deploy your own -[//]: # () -[//]: # (Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=ai-sdk-example):) -[//]: # () -[//]: # ([![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Ftree%2Fmain%2Fexamples%2Fnext-openai&env=OPENAI_API_KEY&envDescription=OpenAI%20API%20Key&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=vercel-ai-chat-openai&repository-name=vercel-ai-chat-openai)) +Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=ai-sdk-example): + + +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Ftree%2Fmain%2Fexamples%2Fnext-zep&env=OPENAI_API_KEY,ZEP_API_KEY&envDescription=OpenAI%20API%20Key&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=vercel-ai-chat-zep&repository-name=vercel-ai-chat-zep) ## How to use @@ -27,16 +27,17 @@ pnpm create next-app --example https://github.com/vercel/ai/tree/main/examples/n ``` To run the example locally you need to: - 1. Sign up at [OpenAI's Developer Platform](https://platform.openai.com/signup). -2. Go to [OpenAI's dashboard](https://platform.openai.com/account/api-keys) and create an API KEY. -3. Set the required OpenAI environment variable as the token value as shown [the example env file](./.env.local.example) but in a new file called `.env.local` -4. `pnpm install` to install the required dependencies. -5. `pnpm dev` to launch the development server. + 1. Go to [OpenAI's dashboard](https://platform.openai.com/account/api-keys) and create an API KEY. + 2. Set the required OpenAI environment variable as the token value as shown [the example env file](./.env.local.example) but in a new file called `.env.local` +2. Sign up for [Zep Account](https://app.getzep.com) and create a new project. + 1. Generate Project API key and set it as `ZEP_API_KEY` in the `.env.local` file. +3. `pnpm install` to install the required dependencies. +4. `pnpm dev` to launch the development server. ## Learn More -To learn more about OpenAI, Next.js, and the Vercel AI SDK take a look at the following resources: +To learn more about Zep, OpenAI, Next.js, and the Vercel AI SDK take a look at the following resources: - [Vercel AI SDK docs](https://sdk.vercel.ai/docs) - [Vercel AI Playground](https://play.vercel.ai) diff --git a/examples/next-zep/app/api/langchain-zep-history/route.ts b/examples/next-zep/app/api/langchain-zep-history/route.ts index 33a07316ebe..d79aa979f42 100644 --- a/examples/next-zep/app/api/langchain-zep-history/route.ts +++ b/examples/next-zep/app/api/langchain-zep-history/route.ts @@ -35,18 +35,25 @@ export async function POST(req: Request) { */ const outputParser = new BytesOutputParser(); + // Create a simple chain that pipes the prompt to the model with a console callback (useful for debugging) const chain = prompt.pipe(model).withConfig({ callbacks: [new ConsoleCallbackHandler()], }); + // Add memory to our chain by wrapping it with a RunnableWithMessageHistory (using ZepChatMessageHistory as the history provider) + // This will add user and assistant messages to the chain as well as enrich model prompts with history and conversation facts const chainWithHistory = new RunnableWithMessageHistory({ runnable: chain, + // Create a new ZepChatMessageHistory instance for each session. Relies on the sessionId passed as a configurable to the final chain getMessageHistory: (sessionId: string) => new ZepChatMessageHistory({ client: zep, sessionId: sessionId, + // Recommended memory type to use, it will enrich the model prompts with conversation facts and the most recent summary memoryType: "perpetual", }), + // The key for the input messages in the prompt, must match the human message key in the prompt inputMessagesKey: "question", + // The key for the history messages in the prompt, must match the MessagesPlaceholder key in the prompt historyMessagesKey: "history", }).pipe(outputParser); diff --git a/examples/next-zep/app/api/zep-history/route.ts b/examples/next-zep/app/api/zep-history/route.ts index 411785761ce..9e13b158644 100644 --- a/examples/next-zep/app/api/zep-history/route.ts +++ b/examples/next-zep/app/api/zep-history/route.ts @@ -16,6 +16,7 @@ export async function POST(req: Request) { const lastMessage = messages[messages.length - 1]; const zep = await ZepClient.init(process.env.ZEP_API_KEY); + // Add the user message to the memory await zep.memory.addMemory( sessionId, new Memory({ @@ -28,6 +29,7 @@ export async function POST(req: Request) { ] }) ); + // Retrieve the memory and create a system message with conversation facts + most recent summary const memory = await zep.memory.getMemory(sessionId, 'perpetual'); let systemContent = ''; if (memory?.summary) { @@ -40,6 +42,7 @@ export async function POST(req: Request) { content: systemContent, role: 'system' }; + // Create a list of openai friendly memory messages const memoryMessages: ChatCompletionMessageParam[] = (memory?.messages ?? []).map((message) => ({ content: message.content, role: message.role_type as 'assistant' | 'system' | 'user' @@ -51,6 +54,7 @@ export async function POST(req: Request) { }); const stream = OpenAIStream(response, { + // Add the completion to the memory async onFinal(completion: string) { await zep.memory.addMemory( sessionId, From 7d6c3cfad95b94a60322e3a973330b51f6ae7364 Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Thu, 28 Mar 2024 15:00:34 -0400 Subject: [PATCH 3/4] feat: Extract zep langchain example into a separate sample app --- .../next-zep-langchain/.env.local.example | 2 + examples/next-zep-langchain/.gitignore | 35 + examples/next-zep-langchain/README.md | 46 + .../app/api/chat}/route.ts | 0 examples/next-zep-langchain/app/favicon.ico | Bin 0 -> 25931 bytes examples/next-zep-langchain/app/globals.css | 3 + examples/next-zep-langchain/app/layout.tsx | 21 + .../app}/page.tsx | 2 +- examples/next-zep-langchain/app/utils.ts | 7 + examples/next-zep-langchain/next.config.js | 4 + examples/next-zep-langchain/package.json | 33 + examples/next-zep-langchain/postcss.config.js | 6 + .../next-zep-langchain/tailwind.config.js | 18 + examples/next-zep-langchain/tsconfig.json | 28 + .../app/api/{zep-history => chat}/route.ts | 0 examples/next-zep/app/page.tsx | 2 +- examples/next-zep/package.json | 1 - pnpm-lock.yaml | 1105 +++++++++++++---- 18 files changed, 1056 insertions(+), 257 deletions(-) create mode 100644 examples/next-zep-langchain/.env.local.example create mode 100644 examples/next-zep-langchain/.gitignore create mode 100644 examples/next-zep-langchain/README.md rename examples/{next-zep/app/api/langchain-zep-history => next-zep-langchain/app/api/chat}/route.ts (100%) create mode 100644 examples/next-zep-langchain/app/favicon.ico create mode 100644 examples/next-zep-langchain/app/globals.css create mode 100644 examples/next-zep-langchain/app/layout.tsx rename examples/{next-zep/app/langchain-zep-history => next-zep-langchain/app}/page.tsx (96%) create mode 100644 examples/next-zep-langchain/app/utils.ts create mode 100644 examples/next-zep-langchain/next.config.js create mode 100644 examples/next-zep-langchain/package.json create mode 100644 examples/next-zep-langchain/postcss.config.js create mode 100644 examples/next-zep-langchain/tailwind.config.js create mode 100644 examples/next-zep-langchain/tsconfig.json rename examples/next-zep/app/api/{zep-history => chat}/route.ts (100%) diff --git a/examples/next-zep-langchain/.env.local.example b/examples/next-zep-langchain/.env.local.example new file mode 100644 index 00000000000..e7de326b82d --- /dev/null +++ b/examples/next-zep-langchain/.env.local.example @@ -0,0 +1,2 @@ +OPENAI_API_KEY=xxxxxxx +ZEP_API_KEY=xxxxxxx \ No newline at end of file diff --git a/examples/next-zep-langchain/.gitignore b/examples/next-zep-langchain/.gitignore new file mode 100644 index 00000000000..8f322f0d8f4 --- /dev/null +++ b/examples/next-zep-langchain/.gitignore @@ -0,0 +1,35 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/examples/next-zep-langchain/README.md b/examples/next-zep-langchain/README.md new file mode 100644 index 00000000000..7f545c81a11 --- /dev/null +++ b/examples/next-zep-langchain/README.md @@ -0,0 +1,46 @@ +# Vercel AI SDK, Zep, Next.js, and OpenAI Chat Example + +This example shows how to use the [Vercel AI SDK](https://sdk.vercel.ai/docs) with [Next.js](https://nextjs.org/), [OpenAI](https://openai.com) and [LangChain](https://js.langchain.com) to create a ChatGPT-like AI-powered streaming chat bot with long term memory (provided by [Zep](https://getzep.com)). + +## Deploy your own + + +Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=ai-sdk-example): + + +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Ftree%2Fmain%2Fexamples%2Fnext-zep-langchain&env=OPENAI_API_KEY,ZEP_API_KEY&envDescription=OpenAI%20API%20Key&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=vercel-ai-chat-zep-langchain&repository-name=vercel-ai-chat-zep-langchain) + +## How to use + +Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: + +```bash +npx create-next-app --example https://github.com/vercel/ai/tree/main/examples/next-zep-langchain next-zep-langchain-app +``` + +```bash +yarn create next-app --example https://github.com/vercel/ai/tree/main/examples/next-zep-langchain next-zep-langchain-app +``` + +```bash +pnpm create next-app --example https://github.com/vercel/ai/tree/main/examples/next-zep-langchain next-zep-langchain-app +``` + +To run the example locally you need to: +1. Sign up at [OpenAI's Developer Platform](https://platform.openai.com/signup). + 1. Go to [OpenAI's dashboard](https://platform.openai.com/account/api-keys) and create an API KEY. + 2. Set the required OpenAI environment variable as the token value as shown [the example env file](./.env.local.example) but in a new file called `.env.local` +2. Sign up for [Zep Account](https://app.getzep.com) and create a new project. + 1. Generate Project API key and set it as `ZEP_API_KEY` in the `.env.local` file. +3. `pnpm install` to install the required dependencies. +4. `pnpm dev` to launch the development server. + +## Learn More + +To learn more about Zep, OpenAI, Next.js, and the Vercel AI SDK take a look at the following resources: + +- [Vercel AI SDK docs](https://sdk.vercel.ai/docs) +- [Vercel AI Playground](https://play.vercel.ai) +- [Zep docs](https://help.getzep.com) +- [OpenAI Documentation](https://platform.openai.com/docs) - learn about OpenAI features and API. +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. diff --git a/examples/next-zep/app/api/langchain-zep-history/route.ts b/examples/next-zep-langchain/app/api/chat/route.ts similarity index 100% rename from examples/next-zep/app/api/langchain-zep-history/route.ts rename to examples/next-zep-langchain/app/api/chat/route.ts diff --git a/examples/next-zep-langchain/app/favicon.ico b/examples/next-zep-langchain/app/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c GIT binary patch literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXaYf~-84xW z)w4x8?=youko|}Vr~(D$UXIbiXABHh`p1?nn8Po~fxRJv}|0e(BPs|G`(TT%kKVJAdg5*Z|x0leQq0 zkdUBvb#>9F()jo|T~kx@OM8$9wzs~t2l;K=woNssA3l6|sx2r3+kdfVW@e^8e*E}v zA1y5{bRi+3Z`uD3{F7LgFJDdvm;nJilkzDku>BwXH(8ItVCXk*-lSJnR?-2UN%hJ){&rlvg`CDTj z)Bzo!3v7Ou#83zEDEFcKt(f1E0~=rqeEbTnMvWR#{+9pg%7G8y>u1OVRUSoox-ovF z2Ydma(;=YuBY(eI|04{hXzZD6_f(v~H;C~y5=DhAC{MMS>2fm~1H_t2$56pc$NH8( z5bH|<)71dV-_oCH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x}4xwCW!in#C zI@}scZlr3-NFJ@NFaJlhyfcw{k^vvtGl`N9xSo**rDW4S}i zM9{fMPWo%4wYDG~BZ18BD+}h|GQKc-g^{++3MY>}W_uq7jGHx{mwE9fZiPCoxN$+7 zrODGGJrOkcPQUB(FD5aoS4g~7#6NR^ma7-!>mHuJfY5kTe6PpNNKC9GGRiu^L31uG z$7v`*JknQHsYB!Tm_W{a32TM099djW%5e+j0Ve_ct}IM>XLF1Ap+YvcrLV=|CKo6S zb+9Nl3_YdKP6%Cxy@6TxZ>;4&nTneadr z_ES90ydCev)LV!dN=#(*f}|ZORFdvkYBni^aLbUk>BajeWIOcmHP#8S)*2U~QKI%S zyrLmtPqb&TphJ;>yAxri#;{uyk`JJqODDw%(Z=2`1uc}br^V%>j!gS)D*q*f_-qf8&D;W1dJgQMlaH5er zN2U<%Smb7==vE}dDI8K7cKz!vs^73o9f>2sgiTzWcwY|BMYHH5%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/examples/next-zep-langchain/app/globals.css b/examples/next-zep-langchain/app/globals.css new file mode 100644 index 00000000000..b5c61c95671 --- /dev/null +++ b/examples/next-zep-langchain/app/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/examples/next-zep-langchain/app/layout.tsx b/examples/next-zep-langchain/app/layout.tsx new file mode 100644 index 00000000000..34624c55418 --- /dev/null +++ b/examples/next-zep-langchain/app/layout.tsx @@ -0,0 +1,21 @@ +import './globals.css'; +import { Inter } from 'next/font/google'; + +const inter = Inter({ subsets: ['latin'] }); + +export const metadata = { + title: 'Create Next App', + description: 'Generated by create next app', +}; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} diff --git a/examples/next-zep/app/langchain-zep-history/page.tsx b/examples/next-zep-langchain/app/page.tsx similarity index 96% rename from examples/next-zep/app/langchain-zep-history/page.tsx rename to examples/next-zep-langchain/app/page.tsx index 96b8eb7386a..4479e0f3e9b 100644 --- a/examples/next-zep/app/langchain-zep-history/page.tsx +++ b/examples/next-zep-langchain/app/page.tsx @@ -15,7 +15,7 @@ export default function Chat() { body: { sessionId: getQueryParam("sessionId"), }, - api: "/api/langchain-zep-history" + api: "/api/chat" }); return ( diff --git a/examples/next-zep-langchain/app/utils.ts b/examples/next-zep-langchain/app/utils.ts new file mode 100644 index 00000000000..8feacf7c74c --- /dev/null +++ b/examples/next-zep-langchain/app/utils.ts @@ -0,0 +1,7 @@ +export const getQueryParam = (name: string) => { + if (typeof window !== "undefined") { + const urlParams = new URLSearchParams(window.location.search); + return urlParams.get(name); + } + return null +} \ No newline at end of file diff --git a/examples/next-zep-langchain/next.config.js b/examples/next-zep-langchain/next.config.js new file mode 100644 index 00000000000..658404ac690 --- /dev/null +++ b/examples/next-zep-langchain/next.config.js @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +module.exports = nextConfig; diff --git a/examples/next-zep-langchain/package.json b/examples/next-zep-langchain/package.json new file mode 100644 index 00000000000..94ca0c7eae0 --- /dev/null +++ b/examples/next-zep-langchain/package.json @@ -0,0 +1,33 @@ +{ + "name": "next-zep", + "version": "0.0.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "@getzep/zep-js": "2.0.0-rc.4", + "ai": "latest", + "langchain": "^0.1.29", + "next": "14.1.1", + "openai": "4.29.0", + "react": "18.2.0", + "react-dom": "^18.2.0", + "uuid": "^9.0.1" + }, + "devDependencies": { + "@types/node": "^17.0.12", + "@types/react": "18.2.8", + "@types/react-dom": "18.2.4", + "@types/uuid": "^9.0.8", + "autoprefixer": "^10.4.14", + "eslint": "^7.32.0", + "eslint-config-next": "13.4.12", + "postcss": "^8.4.23", + "tailwindcss": "^3.3.2", + "typescript": "5.1.3" + } +} diff --git a/examples/next-zep-langchain/postcss.config.js b/examples/next-zep-langchain/postcss.config.js new file mode 100644 index 00000000000..12a703d900d --- /dev/null +++ b/examples/next-zep-langchain/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/examples/next-zep-langchain/tailwind.config.js b/examples/next-zep-langchain/tailwind.config.js new file mode 100644 index 00000000000..db68cff5779 --- /dev/null +++ b/examples/next-zep-langchain/tailwind.config.js @@ -0,0 +1,18 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + './pages/**/*.{js,ts,jsx,tsx,mdx}', + './components/**/*.{js,ts,jsx,tsx,mdx}', + './app/**/*.{js,ts,jsx,tsx,mdx}', + ], + theme: { + extend: { + backgroundImage: { + 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', + 'gradient-conic': + 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', + }, + }, + }, + plugins: [], +}; diff --git a/examples/next-zep-langchain/tsconfig.json b/examples/next-zep-langchain/tsconfig.json new file mode 100644 index 00000000000..e06a4454ab0 --- /dev/null +++ b/examples/next-zep-langchain/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/examples/next-zep/app/api/zep-history/route.ts b/examples/next-zep/app/api/chat/route.ts similarity index 100% rename from examples/next-zep/app/api/zep-history/route.ts rename to examples/next-zep/app/api/chat/route.ts diff --git a/examples/next-zep/app/page.tsx b/examples/next-zep/app/page.tsx index 5637ff6b58a..4479e0f3e9b 100644 --- a/examples/next-zep/app/page.tsx +++ b/examples/next-zep/app/page.tsx @@ -15,7 +15,7 @@ export default function Chat() { body: { sessionId: getQueryParam("sessionId"), }, - api: "/api/zep-history" + api: "/api/chat" }); return ( diff --git a/examples/next-zep/package.json b/examples/next-zep/package.json index 94ca0c7eae0..6b0fab47c5e 100644 --- a/examples/next-zep/package.json +++ b/examples/next-zep/package.json @@ -11,7 +11,6 @@ "dependencies": { "@getzep/zep-js": "2.0.0-rc.4", "ai": "latest", - "langchain": "^0.1.29", "next": "14.1.1", "openai": "4.29.0", "react": "18.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 30c975f05c5..93b5d1c0c53 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,7 +43,7 @@ importers: dependencies: ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) dotenv: specifier: 16.4.5 version: 16.4.5 @@ -89,7 +89,7 @@ importers: version: 1.0.1 ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) class-variance-authority: specifier: ^0.7.0 version: 0.7.0 @@ -180,7 +180,7 @@ importers: version: 0.18.0 ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -226,7 +226,7 @@ importers: version: 3.451.0 ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -269,7 +269,7 @@ importers: dependencies: ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) cohere-ai: specifier: ^7.6.1 version: 7.6.1 @@ -315,7 +315,7 @@ importers: dependencies: ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -364,7 +364,7 @@ importers: version: 0.1.1 ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -410,7 +410,7 @@ importers: version: 2.6.4 ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -456,7 +456,7 @@ importers: version: 0.1.8(zod@3.22.4) ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -499,10 +499,10 @@ importers: dependencies: ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) langchain: specifier: ^0.0.196 - version: 0.0.196 + version: 0.0.196(@aws-sdk/client-bedrock-runtime@3.451.0)(@huggingface/inference@2.6.4)(cohere-ai@7.6.2)(jsdom@23.0.0) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -548,7 +548,7 @@ importers: version: 0.1.3 ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -591,7 +591,7 @@ importers: dependencies: ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -692,7 +692,7 @@ importers: dependencies: ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -744,7 +744,7 @@ importers: version: 0.2.4 ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -793,7 +793,7 @@ importers: dependencies: ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -839,7 +839,7 @@ importers: dependencies: ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -881,11 +881,124 @@ importers: specifier: 5.1.3 version: 5.1.3 + examples/next-zep: + dependencies: + '@getzep/zep-js': + specifier: 2.0.0-rc.4 + version: 2.0.0-rc.4(langchain@0.1.30) + ai: + specifier: latest + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + next: + specifier: 14.1.1 + version: 14.1.1(react-dom@18.2.0)(react@18.2.0) + openai: + specifier: 4.29.0 + version: 4.29.0 + react: + specifier: 18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) + uuid: + specifier: ^9.0.1 + version: 9.0.1 + devDependencies: + '@types/node': + specifier: ^17.0.12 + version: 17.0.45 + '@types/react': + specifier: 18.2.8 + version: 18.2.8 + '@types/react-dom': + specifier: 18.2.4 + version: 18.2.4 + '@types/uuid': + specifier: ^9.0.8 + version: 9.0.8 + autoprefixer: + specifier: ^10.4.14 + version: 10.4.16(postcss@8.4.31) + eslint: + specifier: ^7.32.0 + version: 7.32.0 + eslint-config-next: + specifier: 13.4.12 + version: 13.4.12(eslint@7.32.0)(typescript@5.1.3) + postcss: + specifier: ^8.4.23 + version: 8.4.31 + tailwindcss: + specifier: ^3.3.2 + version: 3.4.1 + typescript: + specifier: 5.1.3 + version: 5.1.3 + + examples/next-zep-langchain: + dependencies: + '@getzep/zep-js': + specifier: 2.0.0-rc.4 + version: 2.0.0-rc.4(langchain@0.1.30) + ai: + specifier: latest + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + langchain: + specifier: ^0.1.29 + version: 0.1.30(@getzep/zep-js@2.0.0-rc.4) + next: + specifier: 14.1.1 + version: 14.1.1(react-dom@18.2.0)(react@18.2.0) + openai: + specifier: 4.29.0 + version: 4.29.0 + react: + specifier: 18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) + uuid: + specifier: ^9.0.1 + version: 9.0.1 + devDependencies: + '@types/node': + specifier: ^17.0.12 + version: 17.0.45 + '@types/react': + specifier: 18.2.8 + version: 18.2.8 + '@types/react-dom': + specifier: 18.2.4 + version: 18.2.4 + '@types/uuid': + specifier: ^9.0.8 + version: 9.0.8 + autoprefixer: + specifier: ^10.4.14 + version: 10.4.16(postcss@8.4.31) + eslint: + specifier: ^7.32.0 + version: 7.32.0 + eslint-config-next: + specifier: 13.4.12 + version: 13.4.12(eslint@7.32.0)(typescript@5.1.3) + postcss: + specifier: ^8.4.23 + version: 8.4.31 + tailwindcss: + specifier: ^3.3.2 + version: 3.4.1 + typescript: + specifier: 5.1.3 + version: 5.1.3 + examples/nuxt-langchain: dependencies: ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) langchain: specifier: ^0.0.129 version: 0.0.129(@mozilla/readability@0.4.4)(jsdom@23.0.0) @@ -964,10 +1077,10 @@ importers: version: 3.3.8 ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) nuxt: specifier: ^3.6.5 - version: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) + version: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) openai: specifier: 4.16.1 version: 4.16.1 @@ -982,7 +1095,7 @@ importers: version: 2.3.1 vue: specifier: ^3.3.4 - version: 3.3.8(typescript@5.1.6) + version: 3.3.8(typescript@4.9.5) vue-router: specifier: 4.2.5 version: 4.2.5(vue@3.3.8) @@ -997,7 +1110,7 @@ importers: version: 0.8.2(solid-js@1.8.7) ai: specifier: latest - version: link:../../packages/core + version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) openai: specifier: 4.16.1 version: 4.16.1 @@ -3989,6 +4102,24 @@ packages: resolution: {integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==} dev: true + /@getzep/zep-js@2.0.0-rc.4(langchain@0.1.30): + resolution: {integrity: sha512-QzL2UpeTCHDLa1K+EHfrrFdXa0vVrr5+xHNrn+Gn8u9nQfWqs+Tlfti+x2Ek1pg+Aut0RQC6YYOeez7UPDDvcQ==} + engines: {node: '>=18.0.0'} + peerDependencies: + '@langchain/core': ~0.1.29 + langchain: ~0.1.19 + peerDependenciesMeta: + '@langchain/core': + optional: true + langchain: + optional: true + dependencies: + '@supercharge/promise-pool': 3.2.0 + langchain: 0.1.30(@getzep/zep-js@2.0.0-rc.4) + semver: 7.5.4 + typescript: 5.1.6 + dev: false + /@google/generative-ai@0.1.1: resolution: {integrity: sha512-cbzKa8mT9YkTrT4XUuENIuvlqiJjwDgcD2Ks4L99Az9dWLgdXn8xnETEAZLOpqzoGx+1PuATZqlUnVRAeLbMgA==} engines: {node: '>=18.0.0'} @@ -4112,33 +4243,351 @@ packages: /@jridgewell/trace-mapping@0.3.20: resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} dependencies: - '@jridgewell/resolve-uri': 3.1.1 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 + + /@koa/router@12.0.1: + resolution: {integrity: sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==} + engines: {node: '>= 12'} + dependencies: + debug: 4.3.4 + http-errors: 2.0.0 + koa-compose: 4.1.0 + methods: 1.1.2 + path-to-regexp: 6.2.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@kwsites/file-exists@1.1.1: + resolution: {integrity: sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==} + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /@kwsites/promise-deferred@1.1.1: + resolution: {integrity: sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==} + dev: true + + /@langchain/community@0.0.43(@getzep/zep-js@2.0.0-rc.4): + resolution: {integrity: sha512-60TjV3knGGOPHfbJxLpuwARr8oA0r6Txm8wTFvFx+TjRUrloyBUcWSbJIdm62gAwBJDEHmdjjyWOOzU+eewcuA==} + engines: {node: '>=18'} + peerDependencies: + '@aws-crypto/sha256-js': ^5.0.0 + '@aws-sdk/client-bedrock-agent-runtime': ^3.485.0 + '@aws-sdk/client-bedrock-runtime': ^3.422.0 + '@aws-sdk/client-dynamodb': ^3.310.0 + '@aws-sdk/client-kendra': ^3.352.0 + '@aws-sdk/client-lambda': ^3.310.0 + '@aws-sdk/client-sagemaker-runtime': ^3.310.0 + '@aws-sdk/client-sfn': ^3.310.0 + '@aws-sdk/credential-provider-node': ^3.388.0 + '@azure/search-documents': ^12.0.0 + '@clickhouse/client': ^0.2.5 + '@cloudflare/ai': '*' + '@datastax/astra-db-ts': ^0.1.4 + '@elastic/elasticsearch': ^8.4.0 + '@getmetal/metal-sdk': '*' + '@getzep/zep-js': ^0.9.0 + '@gomomento/sdk': ^1.51.1 + '@gomomento/sdk-core': ^1.51.1 + '@google-ai/generativelanguage': ^0.2.1 + '@gradientai/nodejs-sdk': ^1.2.0 + '@huggingface/inference': ^2.6.4 + '@mozilla/readability': '*' + '@opensearch-project/opensearch': '*' + '@pinecone-database/pinecone': '*' + '@planetscale/database': ^1.8.0 + '@premai/prem-sdk': ^0.3.25 + '@qdrant/js-client-rest': ^1.2.0 + '@raycast/api': ^1.55.2 + '@rockset/client': ^0.9.1 + '@smithy/eventstream-codec': ^2.0.5 + '@smithy/protocol-http': ^3.0.6 + '@smithy/signature-v4': ^2.0.10 + '@smithy/util-utf8': ^2.0.0 + '@supabase/postgrest-js': ^1.1.1 + '@supabase/supabase-js': ^2.10.0 + '@tensorflow-models/universal-sentence-encoder': '*' + '@tensorflow/tfjs-converter': '*' + '@tensorflow/tfjs-core': '*' + '@upstash/redis': ^1.20.6 + '@upstash/vector': ^1.0.2 + '@vercel/kv': ^0.2.3 + '@vercel/postgres': ^0.5.0 + '@writerai/writer-sdk': ^0.40.2 + '@xata.io/client': ^0.28.0 + '@xenova/transformers': ^2.5.4 + '@zilliz/milvus2-sdk-node': '>=2.2.7' + better-sqlite3: ^9.4.0 + cassandra-driver: ^4.7.2 + cborg: ^4.1.1 + chromadb: '*' + closevector-common: 0.1.3 + closevector-node: 0.1.6 + closevector-web: 0.1.6 + cohere-ai: '*' + convex: ^1.3.1 + couchbase: ^4.3.0 + discord.js: ^14.14.1 + dria: ^0.0.3 + faiss-node: ^0.5.1 + firebase-admin: ^11.9.0 || ^12.0.0 + google-auth-library: ^8.9.0 + googleapis: ^126.0.1 + hnswlib-node: ^1.4.2 + html-to-text: ^9.0.5 + interface-datastore: ^8.2.11 + ioredis: ^5.3.2 + it-all: ^3.0.4 + jsdom: '*' + jsonwebtoken: ^9.0.2 + llmonitor: ^0.5.9 + lodash: ^4.17.21 + lunary: ^0.6.11 + mongodb: '>=5.2.0' + mysql2: ^3.3.3 + neo4j-driver: '*' + node-llama-cpp: '*' + pg: ^8.11.0 + pg-copy-streams: ^6.0.5 + pickleparser: ^0.2.1 + portkey-ai: ^0.1.11 + redis: '*' + replicate: ^0.18.0 + typeorm: ^0.3.12 + typesense: ^1.5.3 + usearch: ^1.1.1 + vectordb: ^0.1.4 + voy-search: 0.6.2 + weaviate-ts-client: '*' + web-auth-library: ^1.0.3 + ws: ^8.14.2 + peerDependenciesMeta: + '@aws-crypto/sha256-js': + optional: true + '@aws-sdk/client-bedrock-agent-runtime': + optional: true + '@aws-sdk/client-bedrock-runtime': + optional: true + '@aws-sdk/client-dynamodb': + optional: true + '@aws-sdk/client-kendra': + optional: true + '@aws-sdk/client-lambda': + optional: true + '@aws-sdk/client-sagemaker-runtime': + optional: true + '@aws-sdk/client-sfn': + optional: true + '@aws-sdk/credential-provider-node': + optional: true + '@azure/search-documents': + optional: true + '@clickhouse/client': + optional: true + '@cloudflare/ai': + optional: true + '@datastax/astra-db-ts': + optional: true + '@elastic/elasticsearch': + optional: true + '@getmetal/metal-sdk': + optional: true + '@getzep/zep-js': + optional: true + '@gomomento/sdk': + optional: true + '@gomomento/sdk-core': + optional: true + '@google-ai/generativelanguage': + optional: true + '@gradientai/nodejs-sdk': + optional: true + '@huggingface/inference': + optional: true + '@mozilla/readability': + optional: true + '@opensearch-project/opensearch': + optional: true + '@pinecone-database/pinecone': + optional: true + '@planetscale/database': + optional: true + '@premai/prem-sdk': + optional: true + '@qdrant/js-client-rest': + optional: true + '@raycast/api': + optional: true + '@rockset/client': + optional: true + '@smithy/eventstream-codec': + optional: true + '@smithy/protocol-http': + optional: true + '@smithy/signature-v4': + optional: true + '@smithy/util-utf8': + optional: true + '@supabase/postgrest-js': + optional: true + '@supabase/supabase-js': + optional: true + '@tensorflow-models/universal-sentence-encoder': + optional: true + '@tensorflow/tfjs-converter': + optional: true + '@tensorflow/tfjs-core': + optional: true + '@upstash/redis': + optional: true + '@upstash/vector': + optional: true + '@vercel/kv': + optional: true + '@vercel/postgres': + optional: true + '@writerai/writer-sdk': + optional: true + '@xata.io/client': + optional: true + '@xenova/transformers': + optional: true + '@zilliz/milvus2-sdk-node': + optional: true + better-sqlite3: + optional: true + cassandra-driver: + optional: true + cborg: + optional: true + chromadb: + optional: true + closevector-common: + optional: true + closevector-node: + optional: true + closevector-web: + optional: true + cohere-ai: + optional: true + convex: + optional: true + couchbase: + optional: true + discord.js: + optional: true + dria: + optional: true + faiss-node: + optional: true + firebase-admin: + optional: true + google-auth-library: + optional: true + googleapis: + optional: true + hnswlib-node: + optional: true + html-to-text: + optional: true + interface-datastore: + optional: true + ioredis: + optional: true + it-all: + optional: true + jsdom: + optional: true + jsonwebtoken: + optional: true + llmonitor: + optional: true + lodash: + optional: true + lunary: + optional: true + mongodb: + optional: true + mysql2: + optional: true + neo4j-driver: + optional: true + node-llama-cpp: + optional: true + pg: + optional: true + pg-copy-streams: + optional: true + pickleparser: + optional: true + portkey-ai: + optional: true + redis: + optional: true + replicate: + optional: true + typeorm: + optional: true + typesense: + optional: true + usearch: + optional: true + vectordb: + optional: true + voy-search: + optional: true + weaviate-ts-client: + optional: true + web-auth-library: + optional: true + ws: + optional: true + dependencies: + '@getzep/zep-js': 2.0.0-rc.4(langchain@0.1.30) + '@langchain/core': 0.1.52 + '@langchain/openai': 0.0.24 + expr-eval: 2.0.2 + flat: 5.0.2 + langsmith: 0.1.14 + uuid: 9.0.1 + zod: 3.22.4 + transitivePeerDependencies: + - encoding + dev: false - /@koa/router@12.0.1: - resolution: {integrity: sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==} - engines: {node: '>= 12'} + /@langchain/core@0.1.52: + resolution: {integrity: sha512-AEyP99r7jijF33pyzaWtqCkiO9crotgethqq7jznAGlIojMCL9BT/id2DjVyN32SGFTpet273kkjsmEdFSHqpA==} + engines: {node: '>=18'} dependencies: - debug: 4.3.4 - http-errors: 2.0.0 - koa-compose: 4.1.0 - methods: 1.1.2 - path-to-regexp: 6.2.1 - transitivePeerDependencies: - - supports-color - dev: true + ansi-styles: 5.2.0 + camelcase: 6.3.0 + decamelize: 1.2.0 + js-tiktoken: 1.0.10 + langsmith: 0.1.14 + ml-distance: 4.0.1 + p-queue: 6.6.2 + p-retry: 4.6.2 + uuid: 9.0.1 + zod: 3.22.4 + zod-to-json-schema: 3.22.4(zod@3.22.4) + dev: false - /@kwsites/file-exists@1.1.1: - resolution: {integrity: sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==} + /@langchain/openai@0.0.24: + resolution: {integrity: sha512-4E9IYJDNVnuHxBV5mFPefaWu76dJREEW5WE2r4QKpHomBMReQVKT3TLiasl1rDI10axnJF9FPjsJG+MW93rCiQ==} + engines: {node: '>=18'} dependencies: - debug: 4.3.4 + '@langchain/core': 0.1.52 + js-tiktoken: 1.0.7 + openai: 4.29.0 + zod: 3.22.4 + zod-to-json-schema: 3.22.4(zod@3.22.4) transitivePeerDependencies: - - supports-color - dev: true - - /@kwsites/promise-deferred@1.1.1: - resolution: {integrity: sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==} - dev: true + - encoding + dev: false /@manypkg/find-root@1.1.0: resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} @@ -4568,7 +5017,7 @@ packages: '@nuxt/kit': 3.8.1 '@nuxt/schema': 3.8.1 execa: 7.2.0 - nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) + nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) vite: 4.5.0(@types/node@20.9.0) transitivePeerDependencies: - rollup @@ -4584,7 +5033,7 @@ packages: '@nuxt/kit': 3.8.1 '@nuxt/schema': 3.8.1 execa: 7.2.0 - nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) + nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) vite: 4.5.0(@types/node@20.9.0) transitivePeerDependencies: - rollup @@ -4650,7 +5099,7 @@ packages: launch-editor: 2.6.1 local-pkg: 0.4.3 magicast: 0.2.11 - nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) + nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) nypm: 0.2.2 pacote: 15.2.0 pathe: 1.1.1 @@ -4703,7 +5152,7 @@ packages: local-pkg: 0.5.0 magicast: 0.3.2 nitropack: 2.7.2 - nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) + nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) nypm: 0.3.3 ofetch: 1.3.3 ohash: 1.1.3 @@ -4891,6 +5340,66 @@ packages: - vue-tsc dev: true + /@nuxt/vite-builder@3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vue@3.3.8): + resolution: {integrity: sha512-Ot/twGONxj22T9U4bxp771ibKVFlZxIiYDHY/e6mZsE4Blc0efKo6MzPPPo0W4/tXQbtKKEq41uINN3dMI3mag==} + engines: {node: ^14.18.0 || >=16.10.0} + peerDependencies: + vue: ^3.3.4 + dependencies: + '@nuxt/kit': 3.8.1 + '@rollup/plugin-replace': 5.0.5(rollup@3.29.4) + '@vitejs/plugin-vue': 4.5.0(vite@4.5.0)(vue@3.3.8) + '@vitejs/plugin-vue-jsx': 3.0.2(vite@4.5.0)(vue@3.3.8) + autoprefixer: 10.4.16(postcss@8.4.31) + clear: 0.1.0 + consola: 3.2.3 + cssnano: 6.0.1(postcss@8.4.31) + defu: 6.1.3 + esbuild: 0.19.5 + escape-string-regexp: 5.0.0 + estree-walker: 3.0.3 + externality: 1.0.2 + fs-extra: 11.1.1 + get-port-please: 3.1.1 + h3: 1.8.2 + knitwork: 1.0.0 + magic-string: 0.30.5 + mlly: 1.4.2 + ohash: 1.1.3 + pathe: 1.1.1 + perfect-debounce: 1.0.0 + pkg-types: 1.0.3 + postcss: 8.4.31 + rollup-plugin-visualizer: 5.9.2(rollup@3.29.4) + std-env: 3.4.3 + strip-literal: 1.3.0 + ufo: 1.3.1 + unplugin: 1.5.0 + vite: 4.5.0(@types/node@20.9.0) + vite-node: 0.33.0(@types/node@20.9.0) + vite-plugin-checker: 0.6.2(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) + vue: 3.3.8(typescript@4.9.5) + vue-bundle-renderer: 2.0.0 + transitivePeerDependencies: + - '@types/node' + - eslint + - less + - lightningcss + - meow + - optionator + - rollup + - sass + - stylelint + - stylus + - sugarss + - supports-color + - terser + - typescript + - vls + - vti + - vue-tsc + dev: true + /@nuxtjs/tailwindcss@6.9.4(webpack@5.89.0): resolution: {integrity: sha512-T3B3P7RgJ/WTW3plHziLWqWbMzCWctUHpjqhW1WCXB/U3FOQxGH5dG4uEOmQkA6Gj4cbTNStIU/cRxpZhbBMhg==} dependencies: @@ -6158,6 +6667,11 @@ packages: solid-js: 1.8.7 dev: true + /@supercharge/promise-pool@3.2.0: + resolution: {integrity: sha512-pj0cAALblTZBPtMltWOlZTQSLT07jIaFNeM8TWoJD1cQMgDB9mcMlVMoetiB35OzNJpqQ2b+QEtwiR9f20mADg==} + engines: {node: '>=8'} + dev: false + /@sveltejs/adapter-auto@2.1.1(@sveltejs/kit@1.27.5): resolution: {integrity: sha512-nzi6x/7/3Axh5VKQ8Eed3pYxastxoa06Y/bFhWb7h3Nu+nGRVxKAy3+hBJgmPCwWScy8n0TsstZjSVKfyrIHkg==} peerDependencies: @@ -6418,7 +6932,6 @@ packages: /@types/diff-match-patch@1.0.36: resolution: {integrity: sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==} - dev: false /@types/eslint-scope@3.7.7: resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} @@ -6540,8 +7053,8 @@ packages: resolution: {integrity: sha512-eqNDvZsCNY49OAXB0Firg/Sc2BgoWsntsLUdybGFOhAfCD6QJ2n9HXUIHGqt5qjrxmMv4wS8WLAw43ZkKcJ8Pw==} dev: true - /@types/uuid@9.0.7: - resolution: {integrity: sha512-WUtIVRUZ9i5dYXefDEAI7sh9/O7jGvHg7Df/5O/gtH3Yabe5odI3UWopVR1qbPXQtvOxWu3mM4XxlYeZtMWF4g==} + /@types/uuid@9.0.8: + resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==} /@typescript-eslint/parser@5.62.0(eslint@7.32.0)(typescript@5.1.3): resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} @@ -6700,7 +7213,7 @@ packages: '@unhead/shared': 1.8.3 hookable: 5.5.3 unhead: 1.8.3 - vue: 3.3.8(typescript@5.1.6) + vue: 3.3.8(typescript@4.9.5) dev: true /@upstash/core-analytics@0.0.6: @@ -6806,7 +7319,7 @@ packages: '@babel/plugin-transform-typescript': 7.23.3(@babel/core@7.23.3) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.23.3) vite: 4.5.0(@types/node@20.9.0) - vue: 3.3.8(typescript@5.1.6) + vue: 3.3.8(typescript@4.9.5) transitivePeerDependencies: - supports-color dev: true @@ -6875,7 +7388,7 @@ packages: ast-kit: 0.11.2 local-pkg: 0.4.3 magic-string-ast: 0.3.0 - vue: 3.3.8(typescript@5.1.6) + vue: 3.3.8(typescript@4.9.5) transitivePeerDependencies: - rollup dev: true @@ -6975,7 +7488,7 @@ packages: dependencies: '@vue/compiler-ssr': 3.3.8 '@vue/shared': 3.3.8 - vue: 3.3.8(typescript@5.1.3) + vue: 3.3.8(typescript@4.9.5) /@vue/shared@3.3.8: resolution: {integrity: sha512-8PGwybFwM4x8pcfgqEQFy70NaQxASvOC5DJwLQfpArw1UDfUXrJkdxD3BhVTMS+0Lef/TU7YO0Jvr0jJY8T+mw==} @@ -7243,6 +7756,43 @@ packages: zod-to-json-schema: 3.22.4(zod@3.22.4) dev: false + /ai@3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4): + resolution: {integrity: sha512-ZQOsVWvH8OOAz9nuOluOWUs/3U+c3w7m6iWEQPbaxsuRcG/8W6fjPD6gdtzwRA+wX5i2OxoA/01iX1VD2yVA1A==} + engines: {node: '>=14.6'} + peerDependencies: + react: ^18.2.0 + solid-js: ^1.7.7 + svelte: ^3.0.0 || ^4.0.0 + vue: ^3.3.4 + zod: ^3.0.0 + peerDependenciesMeta: + react: + optional: true + solid-js: + optional: true + svelte: + optional: true + vue: + optional: true + zod: + optional: true + dependencies: + eventsource-parser: 1.1.2 + jsondiffpatch: 0.6.0 + nanoid: 3.3.6 + react: 18.2.0 + secure-json-parse: 2.7.0 + solid-js: 1.8.7 + solid-swr-store: 0.10.7(solid-js@1.8.7)(swr-store@0.10.6) + sswr: 2.0.0(svelte@4.2.3) + svelte: 4.2.3 + swr: 2.2.0(react@18.2.0) + swr-store: 0.10.6 + swrv: 1.0.4(vue@3.3.8) + vue: 3.3.8(typescript@4.9.5) + zod: 3.22.4 + zod-to-json-schema: 3.22.4(zod@3.22.4) + /ai@3.1.0-canary.4(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4): resolution: {integrity: sha512-th0ry6KuurW3FJjK1gHSleO6PHWjGpTNBkke47uZfToMRe17828E5Hr+u7aROHpXsw4V3NQSPdZdRxRcY4JZdQ==} engines: {node: '>=14.6'} @@ -8268,7 +8818,6 @@ packages: url-join: 4.0.1 transitivePeerDependencies: - encoding - dev: true /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} @@ -8975,7 +9524,6 @@ packages: /diff-match-patch@1.0.5: resolution: {integrity: sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==} - dev: false /diff-sequences@29.6.3: resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} @@ -10063,7 +10611,6 @@ packages: /eventsource-parser@1.1.2: resolution: {integrity: sha512-v0eOBUbiaFojBu2s2NPBfYUoRR9GjcDNvCXVaqEf5vVfpIAh9f8RCo4vXTP8c63QRKCFwoLpMpTdPwwhEKVgzA==} engines: {node: '>=14.18'} - dev: false /execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} @@ -11476,6 +12023,12 @@ packages: engines: {node: '>=0.10.0'} dev: true + /js-tiktoken@1.0.10: + resolution: {integrity: sha512-ZoSxbGjvGyMT13x6ACo9ebhDha/0FHdKA+OsQcMOWcm1Zs7r90Rhk5lhERLzji+3rA7EKpXCgwXcM5fF3DMpdA==} + dependencies: + base64-js: 1.5.1 + dev: false + /js-tiktoken@1.0.7: resolution: {integrity: sha512-biba8u/clw7iesNEWLOLwrNGoBP2lA+hTaBLs/D45pJdUPFXyxD6nhcDVtADChghv4GgyAiMKYMiRx7x6h7Biw==} dependencies: @@ -11584,7 +12137,6 @@ packages: '@types/diff-match-patch': 1.0.36 chalk: 5.3.0 diff-match-patch: 1.0.5 - dev: false /jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} @@ -11982,7 +12534,7 @@ packages: - encoding dev: false - /langchain@0.0.196: + /langchain@0.0.196(@aws-sdk/client-bedrock-runtime@3.451.0)(@huggingface/inference@2.6.4)(cohere-ai@7.6.2)(jsdom@23.0.0): resolution: {integrity: sha512-kt17GGTDFWHNv3jJOIXymsQxfa+h9UQ6hrHbhur+V2pV6RBKO5E+RRCvnCqBzbnOPtrlkENF6Wl3Ezmsfo21dg==} engines: {node: '>=18'} peerDependencies: @@ -12283,11 +12835,15 @@ packages: optional: true dependencies: '@anthropic-ai/sdk': 0.9.1 + '@aws-sdk/client-bedrock-runtime': 3.451.0 + '@huggingface/inference': 2.6.4 binary-extensions: 2.2.0 + cohere-ai: 7.6.2 expr-eval: 2.0.2 flat: 5.0.2 js-tiktoken: 1.0.7 js-yaml: 4.1.0 + jsdom: 23.0.0 jsonpointer: 5.0.1 langchain-core: 0.0.1 langchainhub: 0.0.6 @@ -12302,121 +12858,63 @@ packages: zod-to-json-schema: 3.20.3(zod@3.22.4) transitivePeerDependencies: - encoding - dev: false - /langchain@0.0.196(@aws-sdk/client-bedrock-runtime@3.451.0)(@huggingface/inference@2.6.4)(cohere-ai@7.6.2)(jsdom@23.0.0): - resolution: {integrity: sha512-kt17GGTDFWHNv3jJOIXymsQxfa+h9UQ6hrHbhur+V2pV6RBKO5E+RRCvnCqBzbnOPtrlkENF6Wl3Ezmsfo21dg==} + /langchain@0.1.30(@getzep/zep-js@2.0.0-rc.4): + resolution: {integrity: sha512-5h/vNMmutQ98tbB0sPDlAileZVca6A2McFgGa3+D56Dm8mSSCzTQL2DngPA6h09DlKDpSr7+6PdFw5Hoj0ZDSw==} engines: {node: '>=18'} peerDependencies: - '@aws-crypto/sha256-js': ^5.0.0 - '@aws-sdk/client-bedrock-runtime': ^3.422.0 - '@aws-sdk/client-dynamodb': ^3.310.0 - '@aws-sdk/client-kendra': ^3.352.0 - '@aws-sdk/client-lambda': ^3.310.0 '@aws-sdk/client-s3': ^3.310.0 '@aws-sdk/client-sagemaker-runtime': ^3.310.0 '@aws-sdk/client-sfn': ^3.310.0 '@aws-sdk/credential-provider-node': ^3.388.0 '@azure/storage-blob': ^12.15.0 - '@clickhouse/client': ^0.0.14 - '@cloudflare/ai': ^1.0.12 - '@elastic/elasticsearch': ^8.4.0 - '@getmetal/metal-sdk': '*' - '@getzep/zep-js': ^0.9.0 - '@gomomento/sdk': ^1.47.1 - '@gomomento/sdk-core': ^1.47.1 - '@gomomento/sdk-web': ^1.47.1 + '@gomomento/sdk': ^1.51.1 + '@gomomento/sdk-core': ^1.51.1 + '@gomomento/sdk-web': ^1.51.1 '@google-ai/generativelanguage': ^0.2.1 - '@google-cloud/storage': ^6.10.1 - '@huggingface/inference': ^2.6.4 - '@mozilla/readability': '*' + '@google-cloud/storage': ^6.10.1 || ^7.7.0 '@notionhq/client': ^2.2.10 - '@opensearch-project/opensearch': '*' - '@pinecone-database/pinecone': ^1.1.0 - '@planetscale/database': ^1.8.0 - '@qdrant/js-client-rest': ^1.2.0 - '@raycast/api': ^1.55.2 - '@rockset/client': ^0.9.1 - '@smithy/eventstream-codec': ^2.0.5 - '@smithy/protocol-http': ^3.0.6 - '@smithy/signature-v4': ^2.0.10 - '@smithy/util-utf8': ^2.0.0 - '@supabase/postgrest-js': ^1.1.1 + '@pinecone-database/pinecone': '*' '@supabase/supabase-js': ^2.10.0 - '@tensorflow-models/universal-sentence-encoder': '*' - '@tensorflow/tfjs-converter': '*' - '@tensorflow/tfjs-core': '*' - '@upstash/redis': ^1.20.6 '@vercel/kv': ^0.2.3 - '@vercel/postgres': ^0.5.0 - '@writerai/writer-sdk': ^0.40.2 - '@xata.io/client': ^0.25.1 - '@xenova/transformers': ^2.5.4 - '@zilliz/milvus2-sdk-node': '>=2.2.7' + '@xata.io/client': ^0.28.0 apify-client: ^2.7.1 - assemblyai: ^2.0.2 + assemblyai: ^4.0.0 axios: '*' - cassandra-driver: ^4.7.2 cheerio: ^1.0.0-rc.12 chromadb: '*' - closevector-common: 0.1.0-alpha.1 - closevector-node: 0.1.0-alpha.10 - closevector-web: 0.1.0-alpha.16 - cohere-ai: '>=6.0.0' convex: ^1.3.1 + couchbase: ^4.3.0 d3-dsv: ^2.0.0 epub2: ^3.0.1 - faiss-node: ^0.5.1 - fast-xml-parser: ^4.2.7 - firebase-admin: ^11.9.0 + faiss-node: '*' + fast-xml-parser: '*' google-auth-library: ^8.9.0 - googleapis: ^126.0.1 - hnswlib-node: ^1.4.2 + handlebars: ^4.7.8 html-to-text: ^9.0.5 ignore: ^5.2.0 ioredis: ^5.3.2 jsdom: '*' - llmonitor: ^0.5.9 - lodash: ^4.17.21 - mammoth: '*' - mongodb: ^5.2.0 - mysql2: ^3.3.3 - neo4j-driver: '*' + mammoth: ^1.6.0 + mongodb: '>=5.2.0' node-llama-cpp: '*' notion-to-md: ^3.1.0 + officeparser: ^4.0.4 pdf-parse: 1.1.1 peggy: ^3.0.2 - pg: ^8.11.0 - pg-copy-streams: ^6.0.5 - pickleparser: ^0.2.1 playwright: ^1.32.1 - portkey-ai: ^0.1.11 puppeteer: ^19.7.2 + pyodide: ^0.24.1 redis: ^4.6.4 - replicate: ^0.18.0 sonix-speech-recognition: ^2.1.1 - srt-parser-2: ^1.2.2 + srt-parser-2: ^1.2.3 typeorm: ^0.3.12 - typesense: ^1.5.3 - usearch: ^1.1.1 - vectordb: ^0.1.4 - voy-search: 0.6.2 - weaviate-ts-client: ^1.4.0 + weaviate-ts-client: '*' web-auth-library: ^1.0.3 ws: ^8.14.2 youtube-transcript: ^1.0.6 - youtubei.js: ^5.8.0 + youtubei.js: ^9.1.0 peerDependenciesMeta: - '@aws-crypto/sha256-js': - optional: true - '@aws-sdk/client-bedrock-runtime': - optional: true - '@aws-sdk/client-dynamodb': - optional: true - '@aws-sdk/client-kendra': - optional: true - '@aws-sdk/client-lambda': - optional: true '@aws-sdk/client-s3': optional: true '@aws-sdk/client-sagemaker-runtime': @@ -12427,16 +12925,6 @@ packages: optional: true '@azure/storage-blob': optional: true - '@clickhouse/client': - optional: true - '@cloudflare/ai': - optional: true - '@elastic/elasticsearch': - optional: true - '@getmetal/metal-sdk': - optional: true - '@getzep/zep-js': - optional: true '@gomomento/sdk': optional: true '@gomomento/sdk-core': @@ -12447,78 +12935,30 @@ packages: optional: true '@google-cloud/storage': optional: true - '@huggingface/inference': - optional: true - '@mozilla/readability': - optional: true '@notionhq/client': optional: true - '@opensearch-project/opensearch': - optional: true '@pinecone-database/pinecone': optional: true - '@planetscale/database': - optional: true - '@qdrant/js-client-rest': - optional: true - '@raycast/api': - optional: true - '@rockset/client': - optional: true - '@smithy/eventstream-codec': - optional: true - '@smithy/protocol-http': - optional: true - '@smithy/signature-v4': - optional: true - '@smithy/util-utf8': - optional: true - '@supabase/postgrest-js': - optional: true '@supabase/supabase-js': optional: true - '@tensorflow-models/universal-sentence-encoder': - optional: true - '@tensorflow/tfjs-converter': - optional: true - '@tensorflow/tfjs-core': - optional: true - '@upstash/redis': - optional: true '@vercel/kv': optional: true - '@vercel/postgres': - optional: true - '@writerai/writer-sdk': - optional: true '@xata.io/client': optional: true - '@xenova/transformers': - optional: true - '@zilliz/milvus2-sdk-node': - optional: true apify-client: optional: true assemblyai: optional: true axios: optional: true - cassandra-driver: - optional: true cheerio: optional: true chromadb: optional: true - closevector-common: - optional: true - closevector-node: - optional: true - closevector-web: - optional: true - cohere-ai: - optional: true convex: optional: true + couchbase: + optional: true d3-dsv: optional: true epub2: @@ -12527,13 +12967,9 @@ packages: optional: true fast-xml-parser: optional: true - firebase-admin: - optional: true google-auth-library: optional: true - googleapis: - optional: true - hnswlib-node: + handlebars: optional: true html-to-text: optional: true @@ -12543,41 +12979,27 @@ packages: optional: true jsdom: optional: true - llmonitor: - optional: true - lodash: - optional: true mammoth: optional: true mongodb: optional: true - mysql2: - optional: true - neo4j-driver: - optional: true node-llama-cpp: optional: true notion-to-md: optional: true + officeparser: + optional: true pdf-parse: optional: true peggy: optional: true - pg: - optional: true - pg-copy-streams: - optional: true - pickleparser: - optional: true playwright: optional: true - portkey-ai: - optional: true puppeteer: optional: true - redis: + pyodide: optional: true - replicate: + redis: optional: true sonix-speech-recognition: optional: true @@ -12585,14 +13007,6 @@ packages: optional: true typeorm: optional: true - typesense: - optional: true - usearch: - optional: true - vectordb: - optional: true - voy-search: - optional: true weaviate-ts-client: optional: true web-auth-library: @@ -12605,43 +13019,117 @@ packages: optional: true dependencies: '@anthropic-ai/sdk': 0.9.1 - '@aws-sdk/client-bedrock-runtime': 3.451.0 - '@huggingface/inference': 2.6.4 + '@langchain/community': 0.0.43(@getzep/zep-js@2.0.0-rc.4) + '@langchain/core': 0.1.52 + '@langchain/openai': 0.0.24 binary-extensions: 2.2.0 - cohere-ai: 7.6.2 - expr-eval: 2.0.2 - flat: 5.0.2 js-tiktoken: 1.0.7 js-yaml: 4.1.0 - jsdom: 23.0.0 jsonpointer: 5.0.1 - langchain-core: 0.0.1 - langchainhub: 0.0.6 - langsmith: 0.0.48 + langchainhub: 0.0.8 + langsmith: 0.1.14 ml-distance: 4.0.1 - openai: 4.29.0 openapi-types: 12.1.3 p-retry: 4.6.2 uuid: 9.0.1 yaml: 2.3.4 zod: 3.22.4 - zod-to-json-schema: 3.20.3(zod@3.22.4) + zod-to-json-schema: 3.22.4(zod@3.22.4) transitivePeerDependencies: + - '@aws-crypto/sha256-js' + - '@aws-sdk/client-bedrock-agent-runtime' + - '@aws-sdk/client-bedrock-runtime' + - '@aws-sdk/client-dynamodb' + - '@aws-sdk/client-kendra' + - '@aws-sdk/client-lambda' + - '@azure/search-documents' + - '@clickhouse/client' + - '@cloudflare/ai' + - '@datastax/astra-db-ts' + - '@elastic/elasticsearch' + - '@getmetal/metal-sdk' + - '@getzep/zep-js' + - '@gradientai/nodejs-sdk' + - '@huggingface/inference' + - '@mozilla/readability' + - '@opensearch-project/opensearch' + - '@planetscale/database' + - '@premai/prem-sdk' + - '@qdrant/js-client-rest' + - '@raycast/api' + - '@rockset/client' + - '@smithy/eventstream-codec' + - '@smithy/protocol-http' + - '@smithy/signature-v4' + - '@smithy/util-utf8' + - '@supabase/postgrest-js' + - '@tensorflow-models/universal-sentence-encoder' + - '@tensorflow/tfjs-converter' + - '@tensorflow/tfjs-core' + - '@upstash/redis' + - '@upstash/vector' + - '@vercel/postgres' + - '@writerai/writer-sdk' + - '@xenova/transformers' + - '@zilliz/milvus2-sdk-node' + - better-sqlite3 + - cassandra-driver + - cborg + - closevector-common + - closevector-node + - closevector-web + - cohere-ai + - discord.js + - dria - encoding - dev: true + - firebase-admin + - googleapis + - hnswlib-node + - interface-datastore + - it-all + - jsonwebtoken + - llmonitor + - lodash + - lunary + - mysql2 + - neo4j-driver + - pg + - pg-copy-streams + - pickleparser + - portkey-ai + - replicate + - typesense + - usearch + - vectordb + - voy-search + dev: false /langchainhub@0.0.6: resolution: {integrity: sha512-SW6105T+YP1cTe0yMf//7kyshCgvCTyFBMTgH2H3s9rTAR4e+78DA/BBrUL/Mt4Q5eMWui7iGuAYb3pgGsdQ9w==} + /langchainhub@0.0.8: + resolution: {integrity: sha512-Woyb8YDHgqqTOZvWIbm2CaFDGfZ4NTSyXV687AG4vXEfoNo7cGQp7nhl7wL3ehenKWmNEmcxCLgOZzW8jE6lOQ==} + dev: false + /langsmith@0.0.48: resolution: {integrity: sha512-s0hW8iZ90Q9XLTnDK0Pgee245URV3b1cXQjPDj5OKm1+KN7iSK1pKx+4CO7RcFLz58Ixe7Mt+mVcomYqUuryxQ==} hasBin: true dependencies: - '@types/uuid': 9.0.7 + '@types/uuid': 9.0.8 + commander: 10.0.1 + p-queue: 6.6.2 + p-retry: 4.6.2 + uuid: 9.0.1 + + /langsmith@0.1.14: + resolution: {integrity: sha512-iEzQLLB7/0nRpAwNBAR7B7N64fyByg5UsNjSvLaCCkQ9AS68PSafjB8xQkyI8QXXrGjU1dEqDRoa8m4SUuRdUw==} + dependencies: + '@types/uuid': 9.0.8 commander: 10.0.1 p-queue: 6.6.2 p-retry: 4.6.2 uuid: 9.0.1 + dev: false /language-subtag-registry@0.3.22: resolution: {integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==} @@ -14012,6 +14500,111 @@ packages: - xml2js dev: true + /nuxt@3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0): + resolution: {integrity: sha512-RSGO56Gv0x2f6AXWw4o4GoBaVdsD0qkPCjrX7Ud/jzH3cRJoyYMPuq/9AOLvf2o1ecZWl39j5elqJ4QHmggyOA==} + engines: {node: ^14.18.0 || >=16.10.0} + hasBin: true + peerDependencies: + '@parcel/watcher': ^2.1.0 + '@types/node': ^14.18.0 || >=16.10.0 + peerDependenciesMeta: + '@parcel/watcher': + optional: true + '@types/node': + optional: true + dependencies: + '@nuxt/devalue': 2.0.2 + '@nuxt/devtools': 1.0.2(nuxt@3.8.1)(vite@4.5.0) + '@nuxt/kit': 3.8.1 + '@nuxt/schema': 3.8.1 + '@nuxt/telemetry': 2.5.2 + '@nuxt/ui-templates': 1.3.1 + '@nuxt/vite-builder': 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vue@3.3.8) + '@types/node': 20.9.0 + '@unhead/dom': 1.8.3 + '@unhead/ssr': 1.8.3 + '@unhead/vue': 1.8.3(vue@3.3.8) + '@vue/shared': 3.3.8 + acorn: 8.11.2 + c12: 1.5.1 + chokidar: 3.5.3 + cookie-es: 1.0.0 + defu: 6.1.3 + destr: 2.0.2 + devalue: 4.3.2 + esbuild: 0.19.5 + escape-string-regexp: 5.0.0 + estree-walker: 3.0.3 + fs-extra: 11.1.1 + globby: 13.2.2 + h3: 1.8.2 + hookable: 5.5.3 + jiti: 1.21.0 + klona: 2.0.6 + knitwork: 1.0.0 + magic-string: 0.30.5 + mlly: 1.4.2 + nitropack: 2.7.2 + nuxi: 3.9.1 + nypm: 0.3.3 + ofetch: 1.3.3 + ohash: 1.1.3 + pathe: 1.1.1 + perfect-debounce: 1.0.0 + pkg-types: 1.0.3 + radix3: 1.1.0 + scule: 1.0.0 + std-env: 3.4.3 + strip-literal: 1.3.0 + ufo: 1.3.1 + ultrahtml: 1.5.2 + uncrypto: 0.1.3 + unctx: 2.3.1 + unenv: 1.7.4 + unimport: 3.5.0(rollup@3.29.4) + unplugin: 1.5.0 + unplugin-vue-router: 0.7.0(vue-router@4.2.5)(vue@3.3.8) + untyped: 1.4.0 + vue: 3.3.8(typescript@4.9.5) + vue-bundle-renderer: 2.0.0 + vue-devtools-stub: 0.1.0 + vue-router: 4.2.5(vue@3.3.8) + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@planetscale/database' + - '@upstash/redis' + - '@vercel/kv' + - bluebird + - bufferutil + - encoding + - eslint + - idb-keyval + - less + - lightningcss + - meow + - optionator + - rollup + - sass + - stylelint + - stylus + - sugarss + - supports-color + - terser + - typescript + - utf-8-validate + - vite + - vls + - vti + - vue-tsc + - xml2js + dev: true + /nwsapi@2.2.7: resolution: {integrity: sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==} @@ -14217,7 +14810,6 @@ packages: web-streams-polyfill: 3.2.1 transitivePeerDependencies: - encoding - dev: false /openai@4.29.0: resolution: {integrity: sha512-ic6C681bSow1XQdKhADthM/OOKqNL05M1gCFLx1mRqLJ+yH49v6qnvaWQ76kwqI/IieCuVTXfRfTk3sz4cB45w==} @@ -15753,7 +16345,6 @@ packages: /secure-json-parse@2.7.0: resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} - dev: false /seek-bzip@1.0.6: resolution: {integrity: sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==} @@ -16152,7 +16743,6 @@ packages: dependencies: solid-js: 1.8.7 swr-store: 0.10.6 - dev: false /sonner@0.6.2(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-bh4FWhYoNN481ZIW94W4e0kSLBTMGislYg2YXvDS1px1AJJz4erQe9jHV8s5pS1VMVDgfh3CslNSFLaU6Ldrnw==} @@ -16253,7 +16843,6 @@ packages: dependencies: svelte: 4.2.3 swrev: 4.0.0 - dev: false /stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} @@ -16621,7 +17210,6 @@ packages: engines: {node: '>=10'} dependencies: dequal: 2.0.3 - dev: false /swr@2.2.0(react@18.2.0): resolution: {integrity: sha512-AjqHOv2lAhkuUdIiBu9xbuettzAzWXmCEcLONNKJRba87WAefz8Ca9d6ds/SzrPc235n1IxWYdhJ2zF3MNUaoQ==} @@ -16630,11 +17218,9 @@ packages: dependencies: react: 18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) - dev: false /swrev@4.0.0: resolution: {integrity: sha512-LqVcOHSB4cPGgitD1riJ1Hh4vdmITOp+BkmfmXRh4hSF/t7EnS4iD+SOTmq7w5pPm/SiPeto4ADbKS6dHUDWFA==} - dev: false /swrv@1.0.4(vue@3.3.8): resolution: {integrity: sha512-zjEkcP8Ywmj+xOJW3lIT65ciY/4AL4e/Or7Gj0MzU3zBJNMdJiT8geVZhINavnlHRMMCcJLHhraLTAiDOTmQ9g==} @@ -16642,7 +17228,6 @@ packages: vue: '>=3.2.26 < 4' dependencies: vue: 3.3.8(typescript@5.1.3) - dev: false /symbol-tree@3.2.4: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} @@ -17260,7 +17845,6 @@ packages: resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} engines: {node: '>=4.2.0'} hasBin: true - dev: true /typescript@5.1.3: resolution: {integrity: sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==} @@ -17614,7 +18198,6 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: react: 18.2.0 - dev: false /usehooks-ts@2.15.1(react@18.2.0): resolution: {integrity: sha512-AK29ODCt4FT9XleILNbkbjjmkRCNaQrgxQEkvqHjlnT76iPXzTFGvK2Y/s83JEdSxRp43YEnSa3bYBEV6HZ26Q==} @@ -18117,9 +18700,24 @@ packages: vue: ^3.2.0 dependencies: '@vue/devtools-api': 6.5.1 - vue: 3.3.8(typescript@5.1.6) + vue: 3.3.8(typescript@4.9.5) dev: true + /vue@3.3.8(typescript@4.9.5): + resolution: {integrity: sha512-5VSX/3DabBikOXMsxzlW8JyfeLKlG9mzqnWgLQLty88vdZL7ZJgrdgBOmrArwxiLtmS+lNNpPcBYqrhE6TQW5w==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@vue/compiler-dom': 3.3.8 + '@vue/compiler-sfc': 3.3.8 + '@vue/runtime-dom': 3.3.8 + '@vue/server-renderer': 3.3.8(vue@3.3.8) + '@vue/shared': 3.3.8 + typescript: 4.9.5 + /vue@3.3.8(typescript@5.1.3): resolution: {integrity: sha512-5VSX/3DabBikOXMsxzlW8JyfeLKlG9mzqnWgLQLty88vdZL7ZJgrdgBOmrArwxiLtmS+lNNpPcBYqrhE6TQW5w==} peerDependencies: @@ -18627,7 +19225,6 @@ packages: zod: ^3.22.4 dependencies: zod: 3.22.4 - dev: false /zod@3.22.4: resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} From 432e6d6dface96e6e550cd78b722279ca3854a2d Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Thu, 28 Mar 2024 15:02:30 -0400 Subject: [PATCH 4/4] chore: Revert pnpm-lock.yaml changes --- pnpm-lock.yaml | 1159 ++++++++++++------------------------------------ 1 file changed, 281 insertions(+), 878 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93b5d1c0c53..30c975f05c5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,7 +43,7 @@ importers: dependencies: ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core dotenv: specifier: 16.4.5 version: 16.4.5 @@ -89,7 +89,7 @@ importers: version: 1.0.1 ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core class-variance-authority: specifier: ^0.7.0 version: 0.7.0 @@ -180,7 +180,7 @@ importers: version: 0.18.0 ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -226,7 +226,7 @@ importers: version: 3.451.0 ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -269,7 +269,7 @@ importers: dependencies: ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core cohere-ai: specifier: ^7.6.1 version: 7.6.1 @@ -315,7 +315,7 @@ importers: dependencies: ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -364,7 +364,7 @@ importers: version: 0.1.1 ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -410,7 +410,7 @@ importers: version: 2.6.4 ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -456,7 +456,7 @@ importers: version: 0.1.8(zod@3.22.4) ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -499,10 +499,10 @@ importers: dependencies: ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core langchain: specifier: ^0.0.196 - version: 0.0.196(@aws-sdk/client-bedrock-runtime@3.451.0)(@huggingface/inference@2.6.4)(cohere-ai@7.6.2)(jsdom@23.0.0) + version: 0.0.196 next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -548,7 +548,7 @@ importers: version: 0.1.3 ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -591,7 +591,7 @@ importers: dependencies: ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -692,7 +692,7 @@ importers: dependencies: ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -744,7 +744,7 @@ importers: version: 0.2.4 ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -793,7 +793,7 @@ importers: dependencies: ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -839,7 +839,7 @@ importers: dependencies: ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core next: specifier: 14.1.1 version: 14.1.1(react-dom@18.2.0)(react@18.2.0) @@ -881,124 +881,11 @@ importers: specifier: 5.1.3 version: 5.1.3 - examples/next-zep: - dependencies: - '@getzep/zep-js': - specifier: 2.0.0-rc.4 - version: 2.0.0-rc.4(langchain@0.1.30) - ai: - specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) - next: - specifier: 14.1.1 - version: 14.1.1(react-dom@18.2.0)(react@18.2.0) - openai: - specifier: 4.29.0 - version: 4.29.0 - react: - specifier: 18.2.0 - version: 18.2.0 - react-dom: - specifier: ^18.2.0 - version: 18.2.0(react@18.2.0) - uuid: - specifier: ^9.0.1 - version: 9.0.1 - devDependencies: - '@types/node': - specifier: ^17.0.12 - version: 17.0.45 - '@types/react': - specifier: 18.2.8 - version: 18.2.8 - '@types/react-dom': - specifier: 18.2.4 - version: 18.2.4 - '@types/uuid': - specifier: ^9.0.8 - version: 9.0.8 - autoprefixer: - specifier: ^10.4.14 - version: 10.4.16(postcss@8.4.31) - eslint: - specifier: ^7.32.0 - version: 7.32.0 - eslint-config-next: - specifier: 13.4.12 - version: 13.4.12(eslint@7.32.0)(typescript@5.1.3) - postcss: - specifier: ^8.4.23 - version: 8.4.31 - tailwindcss: - specifier: ^3.3.2 - version: 3.4.1 - typescript: - specifier: 5.1.3 - version: 5.1.3 - - examples/next-zep-langchain: - dependencies: - '@getzep/zep-js': - specifier: 2.0.0-rc.4 - version: 2.0.0-rc.4(langchain@0.1.30) - ai: - specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) - langchain: - specifier: ^0.1.29 - version: 0.1.30(@getzep/zep-js@2.0.0-rc.4) - next: - specifier: 14.1.1 - version: 14.1.1(react-dom@18.2.0)(react@18.2.0) - openai: - specifier: 4.29.0 - version: 4.29.0 - react: - specifier: 18.2.0 - version: 18.2.0 - react-dom: - specifier: ^18.2.0 - version: 18.2.0(react@18.2.0) - uuid: - specifier: ^9.0.1 - version: 9.0.1 - devDependencies: - '@types/node': - specifier: ^17.0.12 - version: 17.0.45 - '@types/react': - specifier: 18.2.8 - version: 18.2.8 - '@types/react-dom': - specifier: 18.2.4 - version: 18.2.4 - '@types/uuid': - specifier: ^9.0.8 - version: 9.0.8 - autoprefixer: - specifier: ^10.4.14 - version: 10.4.16(postcss@8.4.31) - eslint: - specifier: ^7.32.0 - version: 7.32.0 - eslint-config-next: - specifier: 13.4.12 - version: 13.4.12(eslint@7.32.0)(typescript@5.1.3) - postcss: - specifier: ^8.4.23 - version: 8.4.31 - tailwindcss: - specifier: ^3.3.2 - version: 3.4.1 - typescript: - specifier: 5.1.3 - version: 5.1.3 - examples/nuxt-langchain: dependencies: ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core langchain: specifier: ^0.0.129 version: 0.0.129(@mozilla/readability@0.4.4)(jsdom@23.0.0) @@ -1077,10 +964,10 @@ importers: version: 3.3.8 ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core nuxt: specifier: ^3.6.5 - version: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) + version: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) openai: specifier: 4.16.1 version: 4.16.1 @@ -1095,7 +982,7 @@ importers: version: 2.3.1 vue: specifier: ^3.3.4 - version: 3.3.8(typescript@4.9.5) + version: 3.3.8(typescript@5.1.6) vue-router: specifier: 4.2.5 version: 4.2.5(vue@3.3.8) @@ -1110,7 +997,7 @@ importers: version: 0.8.2(solid-js@1.8.7) ai: specifier: latest - version: 3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4) + version: link:../../packages/core openai: specifier: 4.16.1 version: 4.16.1 @@ -4102,24 +3989,6 @@ packages: resolution: {integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==} dev: true - /@getzep/zep-js@2.0.0-rc.4(langchain@0.1.30): - resolution: {integrity: sha512-QzL2UpeTCHDLa1K+EHfrrFdXa0vVrr5+xHNrn+Gn8u9nQfWqs+Tlfti+x2Ek1pg+Aut0RQC6YYOeez7UPDDvcQ==} - engines: {node: '>=18.0.0'} - peerDependencies: - '@langchain/core': ~0.1.29 - langchain: ~0.1.19 - peerDependenciesMeta: - '@langchain/core': - optional: true - langchain: - optional: true - dependencies: - '@supercharge/promise-pool': 3.2.0 - langchain: 0.1.30(@getzep/zep-js@2.0.0-rc.4) - semver: 7.5.4 - typescript: 5.1.6 - dev: false - /@google/generative-ai@0.1.1: resolution: {integrity: sha512-cbzKa8mT9YkTrT4XUuENIuvlqiJjwDgcD2Ks4L99Az9dWLgdXn8xnETEAZLOpqzoGx+1PuATZqlUnVRAeLbMgA==} engines: {node: '>=18.0.0'} @@ -4215,379 +4084,61 @@ packages: '@sinclair/typebox': 0.27.8 dev: true - /@jridgewell/gen-mapping@0.3.3: - resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} - engines: {node: '>=6.0.0'} - dependencies: - '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.20 - - /@jridgewell/resolve-uri@3.1.1: - resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} - engines: {node: '>=6.0.0'} - - /@jridgewell/set-array@1.1.2: - resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} - engines: {node: '>=6.0.0'} - - /@jridgewell/source-map@0.3.5: - resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} - dependencies: - '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.20 - - /@jridgewell/sourcemap-codec@1.4.15: - resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} - - /@jridgewell/trace-mapping@0.3.20: - resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} - dependencies: - '@jridgewell/resolve-uri': 3.1.1 - '@jridgewell/sourcemap-codec': 1.4.15 - - /@koa/router@12.0.1: - resolution: {integrity: sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==} - engines: {node: '>= 12'} - dependencies: - debug: 4.3.4 - http-errors: 2.0.0 - koa-compose: 4.1.0 - methods: 1.1.2 - path-to-regexp: 6.2.1 - transitivePeerDependencies: - - supports-color - dev: true - - /@kwsites/file-exists@1.1.1: - resolution: {integrity: sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==} - dependencies: - debug: 4.3.4 - transitivePeerDependencies: - - supports-color - dev: true - - /@kwsites/promise-deferred@1.1.1: - resolution: {integrity: sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==} - dev: true - - /@langchain/community@0.0.43(@getzep/zep-js@2.0.0-rc.4): - resolution: {integrity: sha512-60TjV3knGGOPHfbJxLpuwARr8oA0r6Txm8wTFvFx+TjRUrloyBUcWSbJIdm62gAwBJDEHmdjjyWOOzU+eewcuA==} - engines: {node: '>=18'} - peerDependencies: - '@aws-crypto/sha256-js': ^5.0.0 - '@aws-sdk/client-bedrock-agent-runtime': ^3.485.0 - '@aws-sdk/client-bedrock-runtime': ^3.422.0 - '@aws-sdk/client-dynamodb': ^3.310.0 - '@aws-sdk/client-kendra': ^3.352.0 - '@aws-sdk/client-lambda': ^3.310.0 - '@aws-sdk/client-sagemaker-runtime': ^3.310.0 - '@aws-sdk/client-sfn': ^3.310.0 - '@aws-sdk/credential-provider-node': ^3.388.0 - '@azure/search-documents': ^12.0.0 - '@clickhouse/client': ^0.2.5 - '@cloudflare/ai': '*' - '@datastax/astra-db-ts': ^0.1.4 - '@elastic/elasticsearch': ^8.4.0 - '@getmetal/metal-sdk': '*' - '@getzep/zep-js': ^0.9.0 - '@gomomento/sdk': ^1.51.1 - '@gomomento/sdk-core': ^1.51.1 - '@google-ai/generativelanguage': ^0.2.1 - '@gradientai/nodejs-sdk': ^1.2.0 - '@huggingface/inference': ^2.6.4 - '@mozilla/readability': '*' - '@opensearch-project/opensearch': '*' - '@pinecone-database/pinecone': '*' - '@planetscale/database': ^1.8.0 - '@premai/prem-sdk': ^0.3.25 - '@qdrant/js-client-rest': ^1.2.0 - '@raycast/api': ^1.55.2 - '@rockset/client': ^0.9.1 - '@smithy/eventstream-codec': ^2.0.5 - '@smithy/protocol-http': ^3.0.6 - '@smithy/signature-v4': ^2.0.10 - '@smithy/util-utf8': ^2.0.0 - '@supabase/postgrest-js': ^1.1.1 - '@supabase/supabase-js': ^2.10.0 - '@tensorflow-models/universal-sentence-encoder': '*' - '@tensorflow/tfjs-converter': '*' - '@tensorflow/tfjs-core': '*' - '@upstash/redis': ^1.20.6 - '@upstash/vector': ^1.0.2 - '@vercel/kv': ^0.2.3 - '@vercel/postgres': ^0.5.0 - '@writerai/writer-sdk': ^0.40.2 - '@xata.io/client': ^0.28.0 - '@xenova/transformers': ^2.5.4 - '@zilliz/milvus2-sdk-node': '>=2.2.7' - better-sqlite3: ^9.4.0 - cassandra-driver: ^4.7.2 - cborg: ^4.1.1 - chromadb: '*' - closevector-common: 0.1.3 - closevector-node: 0.1.6 - closevector-web: 0.1.6 - cohere-ai: '*' - convex: ^1.3.1 - couchbase: ^4.3.0 - discord.js: ^14.14.1 - dria: ^0.0.3 - faiss-node: ^0.5.1 - firebase-admin: ^11.9.0 || ^12.0.0 - google-auth-library: ^8.9.0 - googleapis: ^126.0.1 - hnswlib-node: ^1.4.2 - html-to-text: ^9.0.5 - interface-datastore: ^8.2.11 - ioredis: ^5.3.2 - it-all: ^3.0.4 - jsdom: '*' - jsonwebtoken: ^9.0.2 - llmonitor: ^0.5.9 - lodash: ^4.17.21 - lunary: ^0.6.11 - mongodb: '>=5.2.0' - mysql2: ^3.3.3 - neo4j-driver: '*' - node-llama-cpp: '*' - pg: ^8.11.0 - pg-copy-streams: ^6.0.5 - pickleparser: ^0.2.1 - portkey-ai: ^0.1.11 - redis: '*' - replicate: ^0.18.0 - typeorm: ^0.3.12 - typesense: ^1.5.3 - usearch: ^1.1.1 - vectordb: ^0.1.4 - voy-search: 0.6.2 - weaviate-ts-client: '*' - web-auth-library: ^1.0.3 - ws: ^8.14.2 - peerDependenciesMeta: - '@aws-crypto/sha256-js': - optional: true - '@aws-sdk/client-bedrock-agent-runtime': - optional: true - '@aws-sdk/client-bedrock-runtime': - optional: true - '@aws-sdk/client-dynamodb': - optional: true - '@aws-sdk/client-kendra': - optional: true - '@aws-sdk/client-lambda': - optional: true - '@aws-sdk/client-sagemaker-runtime': - optional: true - '@aws-sdk/client-sfn': - optional: true - '@aws-sdk/credential-provider-node': - optional: true - '@azure/search-documents': - optional: true - '@clickhouse/client': - optional: true - '@cloudflare/ai': - optional: true - '@datastax/astra-db-ts': - optional: true - '@elastic/elasticsearch': - optional: true - '@getmetal/metal-sdk': - optional: true - '@getzep/zep-js': - optional: true - '@gomomento/sdk': - optional: true - '@gomomento/sdk-core': - optional: true - '@google-ai/generativelanguage': - optional: true - '@gradientai/nodejs-sdk': - optional: true - '@huggingface/inference': - optional: true - '@mozilla/readability': - optional: true - '@opensearch-project/opensearch': - optional: true - '@pinecone-database/pinecone': - optional: true - '@planetscale/database': - optional: true - '@premai/prem-sdk': - optional: true - '@qdrant/js-client-rest': - optional: true - '@raycast/api': - optional: true - '@rockset/client': - optional: true - '@smithy/eventstream-codec': - optional: true - '@smithy/protocol-http': - optional: true - '@smithy/signature-v4': - optional: true - '@smithy/util-utf8': - optional: true - '@supabase/postgrest-js': - optional: true - '@supabase/supabase-js': - optional: true - '@tensorflow-models/universal-sentence-encoder': - optional: true - '@tensorflow/tfjs-converter': - optional: true - '@tensorflow/tfjs-core': - optional: true - '@upstash/redis': - optional: true - '@upstash/vector': - optional: true - '@vercel/kv': - optional: true - '@vercel/postgres': - optional: true - '@writerai/writer-sdk': - optional: true - '@xata.io/client': - optional: true - '@xenova/transformers': - optional: true - '@zilliz/milvus2-sdk-node': - optional: true - better-sqlite3: - optional: true - cassandra-driver: - optional: true - cborg: - optional: true - chromadb: - optional: true - closevector-common: - optional: true - closevector-node: - optional: true - closevector-web: - optional: true - cohere-ai: - optional: true - convex: - optional: true - couchbase: - optional: true - discord.js: - optional: true - dria: - optional: true - faiss-node: - optional: true - firebase-admin: - optional: true - google-auth-library: - optional: true - googleapis: - optional: true - hnswlib-node: - optional: true - html-to-text: - optional: true - interface-datastore: - optional: true - ioredis: - optional: true - it-all: - optional: true - jsdom: - optional: true - jsonwebtoken: - optional: true - llmonitor: - optional: true - lodash: - optional: true - lunary: - optional: true - mongodb: - optional: true - mysql2: - optional: true - neo4j-driver: - optional: true - node-llama-cpp: - optional: true - pg: - optional: true - pg-copy-streams: - optional: true - pickleparser: - optional: true - portkey-ai: - optional: true - redis: - optional: true - replicate: - optional: true - typeorm: - optional: true - typesense: - optional: true - usearch: - optional: true - vectordb: - optional: true - voy-search: - optional: true - weaviate-ts-client: - optional: true - web-auth-library: - optional: true - ws: - optional: true + /@jridgewell/gen-mapping@0.3.3: + resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} + engines: {node: '>=6.0.0'} dependencies: - '@getzep/zep-js': 2.0.0-rc.4(langchain@0.1.30) - '@langchain/core': 0.1.52 - '@langchain/openai': 0.0.24 - expr-eval: 2.0.2 - flat: 5.0.2 - langsmith: 0.1.14 - uuid: 9.0.1 - zod: 3.22.4 - transitivePeerDependencies: - - encoding - dev: false + '@jridgewell/set-array': 1.1.2 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.20 - /@langchain/core@0.1.52: - resolution: {integrity: sha512-AEyP99r7jijF33pyzaWtqCkiO9crotgethqq7jznAGlIojMCL9BT/id2DjVyN32SGFTpet273kkjsmEdFSHqpA==} - engines: {node: '>=18'} + /@jridgewell/resolve-uri@3.1.1: + resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} + engines: {node: '>=6.0.0'} + + /@jridgewell/set-array@1.1.2: + resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} + engines: {node: '>=6.0.0'} + + /@jridgewell/source-map@0.3.5: + resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} dependencies: - ansi-styles: 5.2.0 - camelcase: 6.3.0 - decamelize: 1.2.0 - js-tiktoken: 1.0.10 - langsmith: 0.1.14 - ml-distance: 4.0.1 - p-queue: 6.6.2 - p-retry: 4.6.2 - uuid: 9.0.1 - zod: 3.22.4 - zod-to-json-schema: 3.22.4(zod@3.22.4) - dev: false + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.20 - /@langchain/openai@0.0.24: - resolution: {integrity: sha512-4E9IYJDNVnuHxBV5mFPefaWu76dJREEW5WE2r4QKpHomBMReQVKT3TLiasl1rDI10axnJF9FPjsJG+MW93rCiQ==} - engines: {node: '>=18'} + /@jridgewell/sourcemap-codec@1.4.15: + resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + + /@jridgewell/trace-mapping@0.3.20: + resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} dependencies: - '@langchain/core': 0.1.52 - js-tiktoken: 1.0.7 - openai: 4.29.0 - zod: 3.22.4 - zod-to-json-schema: 3.22.4(zod@3.22.4) + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 + + /@koa/router@12.0.1: + resolution: {integrity: sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==} + engines: {node: '>= 12'} + dependencies: + debug: 4.3.4 + http-errors: 2.0.0 + koa-compose: 4.1.0 + methods: 1.1.2 + path-to-regexp: 6.2.1 transitivePeerDependencies: - - encoding - dev: false + - supports-color + dev: true + + /@kwsites/file-exists@1.1.1: + resolution: {integrity: sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==} + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /@kwsites/promise-deferred@1.1.1: + resolution: {integrity: sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==} + dev: true /@manypkg/find-root@1.1.0: resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} @@ -5017,7 +4568,7 @@ packages: '@nuxt/kit': 3.8.1 '@nuxt/schema': 3.8.1 execa: 7.2.0 - nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) + nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) vite: 4.5.0(@types/node@20.9.0) transitivePeerDependencies: - rollup @@ -5033,7 +4584,7 @@ packages: '@nuxt/kit': 3.8.1 '@nuxt/schema': 3.8.1 execa: 7.2.0 - nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) + nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) vite: 4.5.0(@types/node@20.9.0) transitivePeerDependencies: - rollup @@ -5099,7 +4650,7 @@ packages: launch-editor: 2.6.1 local-pkg: 0.4.3 magicast: 0.2.11 - nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) + nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) nypm: 0.2.2 pacote: 15.2.0 pathe: 1.1.1 @@ -5152,7 +4703,7 @@ packages: local-pkg: 0.5.0 magicast: 0.3.2 nitropack: 2.7.2 - nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0) + nuxt: 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) nypm: 0.3.3 ofetch: 1.3.3 ohash: 1.1.3 @@ -5340,66 +4891,6 @@ packages: - vue-tsc dev: true - /@nuxt/vite-builder@3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vue@3.3.8): - resolution: {integrity: sha512-Ot/twGONxj22T9U4bxp771ibKVFlZxIiYDHY/e6mZsE4Blc0efKo6MzPPPo0W4/tXQbtKKEq41uINN3dMI3mag==} - engines: {node: ^14.18.0 || >=16.10.0} - peerDependencies: - vue: ^3.3.4 - dependencies: - '@nuxt/kit': 3.8.1 - '@rollup/plugin-replace': 5.0.5(rollup@3.29.4) - '@vitejs/plugin-vue': 4.5.0(vite@4.5.0)(vue@3.3.8) - '@vitejs/plugin-vue-jsx': 3.0.2(vite@4.5.0)(vue@3.3.8) - autoprefixer: 10.4.16(postcss@8.4.31) - clear: 0.1.0 - consola: 3.2.3 - cssnano: 6.0.1(postcss@8.4.31) - defu: 6.1.3 - esbuild: 0.19.5 - escape-string-regexp: 5.0.0 - estree-walker: 3.0.3 - externality: 1.0.2 - fs-extra: 11.1.1 - get-port-please: 3.1.1 - h3: 1.8.2 - knitwork: 1.0.0 - magic-string: 0.30.5 - mlly: 1.4.2 - ohash: 1.1.3 - pathe: 1.1.1 - perfect-debounce: 1.0.0 - pkg-types: 1.0.3 - postcss: 8.4.31 - rollup-plugin-visualizer: 5.9.2(rollup@3.29.4) - std-env: 3.4.3 - strip-literal: 1.3.0 - ufo: 1.3.1 - unplugin: 1.5.0 - vite: 4.5.0(@types/node@20.9.0) - vite-node: 0.33.0(@types/node@20.9.0) - vite-plugin-checker: 0.6.2(eslint@7.32.0)(typescript@5.1.6)(vite@4.5.0) - vue: 3.3.8(typescript@4.9.5) - vue-bundle-renderer: 2.0.0 - transitivePeerDependencies: - - '@types/node' - - eslint - - less - - lightningcss - - meow - - optionator - - rollup - - sass - - stylelint - - stylus - - sugarss - - supports-color - - terser - - typescript - - vls - - vti - - vue-tsc - dev: true - /@nuxtjs/tailwindcss@6.9.4(webpack@5.89.0): resolution: {integrity: sha512-T3B3P7RgJ/WTW3plHziLWqWbMzCWctUHpjqhW1WCXB/U3FOQxGH5dG4uEOmQkA6Gj4cbTNStIU/cRxpZhbBMhg==} dependencies: @@ -6667,11 +6158,6 @@ packages: solid-js: 1.8.7 dev: true - /@supercharge/promise-pool@3.2.0: - resolution: {integrity: sha512-pj0cAALblTZBPtMltWOlZTQSLT07jIaFNeM8TWoJD1cQMgDB9mcMlVMoetiB35OzNJpqQ2b+QEtwiR9f20mADg==} - engines: {node: '>=8'} - dev: false - /@sveltejs/adapter-auto@2.1.1(@sveltejs/kit@1.27.5): resolution: {integrity: sha512-nzi6x/7/3Axh5VKQ8Eed3pYxastxoa06Y/bFhWb7h3Nu+nGRVxKAy3+hBJgmPCwWScy8n0TsstZjSVKfyrIHkg==} peerDependencies: @@ -6932,6 +6418,7 @@ packages: /@types/diff-match-patch@1.0.36: resolution: {integrity: sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==} + dev: false /@types/eslint-scope@3.7.7: resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} @@ -7053,8 +6540,8 @@ packages: resolution: {integrity: sha512-eqNDvZsCNY49OAXB0Firg/Sc2BgoWsntsLUdybGFOhAfCD6QJ2n9HXUIHGqt5qjrxmMv4wS8WLAw43ZkKcJ8Pw==} dev: true - /@types/uuid@9.0.8: - resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==} + /@types/uuid@9.0.7: + resolution: {integrity: sha512-WUtIVRUZ9i5dYXefDEAI7sh9/O7jGvHg7Df/5O/gtH3Yabe5odI3UWopVR1qbPXQtvOxWu3mM4XxlYeZtMWF4g==} /@typescript-eslint/parser@5.62.0(eslint@7.32.0)(typescript@5.1.3): resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} @@ -7213,7 +6700,7 @@ packages: '@unhead/shared': 1.8.3 hookable: 5.5.3 unhead: 1.8.3 - vue: 3.3.8(typescript@4.9.5) + vue: 3.3.8(typescript@5.1.6) dev: true /@upstash/core-analytics@0.0.6: @@ -7319,7 +6806,7 @@ packages: '@babel/plugin-transform-typescript': 7.23.3(@babel/core@7.23.3) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.23.3) vite: 4.5.0(@types/node@20.9.0) - vue: 3.3.8(typescript@4.9.5) + vue: 3.3.8(typescript@5.1.6) transitivePeerDependencies: - supports-color dev: true @@ -7388,7 +6875,7 @@ packages: ast-kit: 0.11.2 local-pkg: 0.4.3 magic-string-ast: 0.3.0 - vue: 3.3.8(typescript@4.9.5) + vue: 3.3.8(typescript@5.1.6) transitivePeerDependencies: - rollup dev: true @@ -7488,7 +6975,7 @@ packages: dependencies: '@vue/compiler-ssr': 3.3.8 '@vue/shared': 3.3.8 - vue: 3.3.8(typescript@4.9.5) + vue: 3.3.8(typescript@5.1.3) /@vue/shared@3.3.8: resolution: {integrity: sha512-8PGwybFwM4x8pcfgqEQFy70NaQxASvOC5DJwLQfpArw1UDfUXrJkdxD3BhVTMS+0Lef/TU7YO0Jvr0jJY8T+mw==} @@ -7756,43 +7243,6 @@ packages: zod-to-json-schema: 3.22.4(zod@3.22.4) dev: false - /ai@3.0.15(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4): - resolution: {integrity: sha512-ZQOsVWvH8OOAz9nuOluOWUs/3U+c3w7m6iWEQPbaxsuRcG/8W6fjPD6gdtzwRA+wX5i2OxoA/01iX1VD2yVA1A==} - engines: {node: '>=14.6'} - peerDependencies: - react: ^18.2.0 - solid-js: ^1.7.7 - svelte: ^3.0.0 || ^4.0.0 - vue: ^3.3.4 - zod: ^3.0.0 - peerDependenciesMeta: - react: - optional: true - solid-js: - optional: true - svelte: - optional: true - vue: - optional: true - zod: - optional: true - dependencies: - eventsource-parser: 1.1.2 - jsondiffpatch: 0.6.0 - nanoid: 3.3.6 - react: 18.2.0 - secure-json-parse: 2.7.0 - solid-js: 1.8.7 - solid-swr-store: 0.10.7(solid-js@1.8.7)(swr-store@0.10.6) - sswr: 2.0.0(svelte@4.2.3) - svelte: 4.2.3 - swr: 2.2.0(react@18.2.0) - swr-store: 0.10.6 - swrv: 1.0.4(vue@3.3.8) - vue: 3.3.8(typescript@4.9.5) - zod: 3.22.4 - zod-to-json-schema: 3.22.4(zod@3.22.4) - /ai@3.1.0-canary.4(react@18.2.0)(solid-js@1.8.7)(svelte@4.2.3)(vue@3.3.8)(zod@3.22.4): resolution: {integrity: sha512-th0ry6KuurW3FJjK1gHSleO6PHWjGpTNBkke47uZfToMRe17828E5Hr+u7aROHpXsw4V3NQSPdZdRxRcY4JZdQ==} engines: {node: '>=14.6'} @@ -8818,6 +8268,7 @@ packages: url-join: 4.0.1 transitivePeerDependencies: - encoding + dev: true /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} @@ -9524,6 +8975,7 @@ packages: /diff-match-patch@1.0.5: resolution: {integrity: sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==} + dev: false /diff-sequences@29.6.3: resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} @@ -10611,6 +10063,7 @@ packages: /eventsource-parser@1.1.2: resolution: {integrity: sha512-v0eOBUbiaFojBu2s2NPBfYUoRR9GjcDNvCXVaqEf5vVfpIAh9f8RCo4vXTP8c63QRKCFwoLpMpTdPwwhEKVgzA==} engines: {node: '>=14.18'} + dev: false /execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} @@ -12023,12 +11476,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /js-tiktoken@1.0.10: - resolution: {integrity: sha512-ZoSxbGjvGyMT13x6ACo9ebhDha/0FHdKA+OsQcMOWcm1Zs7r90Rhk5lhERLzji+3rA7EKpXCgwXcM5fF3DMpdA==} - dependencies: - base64-js: 1.5.1 - dev: false - /js-tiktoken@1.0.7: resolution: {integrity: sha512-biba8u/clw7iesNEWLOLwrNGoBP2lA+hTaBLs/D45pJdUPFXyxD6nhcDVtADChghv4GgyAiMKYMiRx7x6h7Biw==} dependencies: @@ -12137,6 +11584,7 @@ packages: '@types/diff-match-patch': 1.0.36 chalk: 5.3.0 diff-match-patch: 1.0.5 + dev: false /jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} @@ -12534,7 +11982,7 @@ packages: - encoding dev: false - /langchain@0.0.196(@aws-sdk/client-bedrock-runtime@3.451.0)(@huggingface/inference@2.6.4)(cohere-ai@7.6.2)(jsdom@23.0.0): + /langchain@0.0.196: resolution: {integrity: sha512-kt17GGTDFWHNv3jJOIXymsQxfa+h9UQ6hrHbhur+V2pV6RBKO5E+RRCvnCqBzbnOPtrlkENF6Wl3Ezmsfo21dg==} engines: {node: '>=18'} peerDependencies: @@ -12835,15 +12283,11 @@ packages: optional: true dependencies: '@anthropic-ai/sdk': 0.9.1 - '@aws-sdk/client-bedrock-runtime': 3.451.0 - '@huggingface/inference': 2.6.4 binary-extensions: 2.2.0 - cohere-ai: 7.6.2 expr-eval: 2.0.2 flat: 5.0.2 js-tiktoken: 1.0.7 js-yaml: 4.1.0 - jsdom: 23.0.0 jsonpointer: 5.0.1 langchain-core: 0.0.1 langchainhub: 0.0.6 @@ -12858,63 +12302,121 @@ packages: zod-to-json-schema: 3.20.3(zod@3.22.4) transitivePeerDependencies: - encoding + dev: false - /langchain@0.1.30(@getzep/zep-js@2.0.0-rc.4): - resolution: {integrity: sha512-5h/vNMmutQ98tbB0sPDlAileZVca6A2McFgGa3+D56Dm8mSSCzTQL2DngPA6h09DlKDpSr7+6PdFw5Hoj0ZDSw==} + /langchain@0.0.196(@aws-sdk/client-bedrock-runtime@3.451.0)(@huggingface/inference@2.6.4)(cohere-ai@7.6.2)(jsdom@23.0.0): + resolution: {integrity: sha512-kt17GGTDFWHNv3jJOIXymsQxfa+h9UQ6hrHbhur+V2pV6RBKO5E+RRCvnCqBzbnOPtrlkENF6Wl3Ezmsfo21dg==} engines: {node: '>=18'} peerDependencies: + '@aws-crypto/sha256-js': ^5.0.0 + '@aws-sdk/client-bedrock-runtime': ^3.422.0 + '@aws-sdk/client-dynamodb': ^3.310.0 + '@aws-sdk/client-kendra': ^3.352.0 + '@aws-sdk/client-lambda': ^3.310.0 '@aws-sdk/client-s3': ^3.310.0 '@aws-sdk/client-sagemaker-runtime': ^3.310.0 '@aws-sdk/client-sfn': ^3.310.0 '@aws-sdk/credential-provider-node': ^3.388.0 '@azure/storage-blob': ^12.15.0 - '@gomomento/sdk': ^1.51.1 - '@gomomento/sdk-core': ^1.51.1 - '@gomomento/sdk-web': ^1.51.1 + '@clickhouse/client': ^0.0.14 + '@cloudflare/ai': ^1.0.12 + '@elastic/elasticsearch': ^8.4.0 + '@getmetal/metal-sdk': '*' + '@getzep/zep-js': ^0.9.0 + '@gomomento/sdk': ^1.47.1 + '@gomomento/sdk-core': ^1.47.1 + '@gomomento/sdk-web': ^1.47.1 '@google-ai/generativelanguage': ^0.2.1 - '@google-cloud/storage': ^6.10.1 || ^7.7.0 + '@google-cloud/storage': ^6.10.1 + '@huggingface/inference': ^2.6.4 + '@mozilla/readability': '*' '@notionhq/client': ^2.2.10 - '@pinecone-database/pinecone': '*' + '@opensearch-project/opensearch': '*' + '@pinecone-database/pinecone': ^1.1.0 + '@planetscale/database': ^1.8.0 + '@qdrant/js-client-rest': ^1.2.0 + '@raycast/api': ^1.55.2 + '@rockset/client': ^0.9.1 + '@smithy/eventstream-codec': ^2.0.5 + '@smithy/protocol-http': ^3.0.6 + '@smithy/signature-v4': ^2.0.10 + '@smithy/util-utf8': ^2.0.0 + '@supabase/postgrest-js': ^1.1.1 '@supabase/supabase-js': ^2.10.0 + '@tensorflow-models/universal-sentence-encoder': '*' + '@tensorflow/tfjs-converter': '*' + '@tensorflow/tfjs-core': '*' + '@upstash/redis': ^1.20.6 '@vercel/kv': ^0.2.3 - '@xata.io/client': ^0.28.0 + '@vercel/postgres': ^0.5.0 + '@writerai/writer-sdk': ^0.40.2 + '@xata.io/client': ^0.25.1 + '@xenova/transformers': ^2.5.4 + '@zilliz/milvus2-sdk-node': '>=2.2.7' apify-client: ^2.7.1 - assemblyai: ^4.0.0 + assemblyai: ^2.0.2 axios: '*' + cassandra-driver: ^4.7.2 cheerio: ^1.0.0-rc.12 chromadb: '*' + closevector-common: 0.1.0-alpha.1 + closevector-node: 0.1.0-alpha.10 + closevector-web: 0.1.0-alpha.16 + cohere-ai: '>=6.0.0' convex: ^1.3.1 - couchbase: ^4.3.0 d3-dsv: ^2.0.0 epub2: ^3.0.1 - faiss-node: '*' - fast-xml-parser: '*' + faiss-node: ^0.5.1 + fast-xml-parser: ^4.2.7 + firebase-admin: ^11.9.0 google-auth-library: ^8.9.0 - handlebars: ^4.7.8 + googleapis: ^126.0.1 + hnswlib-node: ^1.4.2 html-to-text: ^9.0.5 ignore: ^5.2.0 ioredis: ^5.3.2 jsdom: '*' - mammoth: ^1.6.0 - mongodb: '>=5.2.0' + llmonitor: ^0.5.9 + lodash: ^4.17.21 + mammoth: '*' + mongodb: ^5.2.0 + mysql2: ^3.3.3 + neo4j-driver: '*' node-llama-cpp: '*' notion-to-md: ^3.1.0 - officeparser: ^4.0.4 pdf-parse: 1.1.1 peggy: ^3.0.2 + pg: ^8.11.0 + pg-copy-streams: ^6.0.5 + pickleparser: ^0.2.1 playwright: ^1.32.1 + portkey-ai: ^0.1.11 puppeteer: ^19.7.2 - pyodide: ^0.24.1 redis: ^4.6.4 + replicate: ^0.18.0 sonix-speech-recognition: ^2.1.1 - srt-parser-2: ^1.2.3 + srt-parser-2: ^1.2.2 typeorm: ^0.3.12 - weaviate-ts-client: '*' + typesense: ^1.5.3 + usearch: ^1.1.1 + vectordb: ^0.1.4 + voy-search: 0.6.2 + weaviate-ts-client: ^1.4.0 web-auth-library: ^1.0.3 ws: ^8.14.2 youtube-transcript: ^1.0.6 - youtubei.js: ^9.1.0 + youtubei.js: ^5.8.0 peerDependenciesMeta: + '@aws-crypto/sha256-js': + optional: true + '@aws-sdk/client-bedrock-runtime': + optional: true + '@aws-sdk/client-dynamodb': + optional: true + '@aws-sdk/client-kendra': + optional: true + '@aws-sdk/client-lambda': + optional: true '@aws-sdk/client-s3': optional: true '@aws-sdk/client-sagemaker-runtime': @@ -12925,6 +12427,16 @@ packages: optional: true '@azure/storage-blob': optional: true + '@clickhouse/client': + optional: true + '@cloudflare/ai': + optional: true + '@elastic/elasticsearch': + optional: true + '@getmetal/metal-sdk': + optional: true + '@getzep/zep-js': + optional: true '@gomomento/sdk': optional: true '@gomomento/sdk-core': @@ -12935,29 +12447,77 @@ packages: optional: true '@google-cloud/storage': optional: true + '@huggingface/inference': + optional: true + '@mozilla/readability': + optional: true '@notionhq/client': optional: true + '@opensearch-project/opensearch': + optional: true '@pinecone-database/pinecone': optional: true + '@planetscale/database': + optional: true + '@qdrant/js-client-rest': + optional: true + '@raycast/api': + optional: true + '@rockset/client': + optional: true + '@smithy/eventstream-codec': + optional: true + '@smithy/protocol-http': + optional: true + '@smithy/signature-v4': + optional: true + '@smithy/util-utf8': + optional: true + '@supabase/postgrest-js': + optional: true '@supabase/supabase-js': optional: true + '@tensorflow-models/universal-sentence-encoder': + optional: true + '@tensorflow/tfjs-converter': + optional: true + '@tensorflow/tfjs-core': + optional: true + '@upstash/redis': + optional: true '@vercel/kv': optional: true + '@vercel/postgres': + optional: true + '@writerai/writer-sdk': + optional: true '@xata.io/client': optional: true + '@xenova/transformers': + optional: true + '@zilliz/milvus2-sdk-node': + optional: true apify-client: optional: true assemblyai: optional: true axios: optional: true + cassandra-driver: + optional: true cheerio: optional: true chromadb: optional: true - convex: + closevector-common: optional: true - couchbase: + closevector-node: + optional: true + closevector-web: + optional: true + cohere-ai: + optional: true + convex: optional: true d3-dsv: optional: true @@ -12967,9 +12527,13 @@ packages: optional: true fast-xml-parser: optional: true + firebase-admin: + optional: true google-auth-library: optional: true - handlebars: + googleapis: + optional: true + hnswlib-node: optional: true html-to-text: optional: true @@ -12979,34 +12543,56 @@ packages: optional: true jsdom: optional: true + llmonitor: + optional: true + lodash: + optional: true mammoth: optional: true mongodb: optional: true + mysql2: + optional: true + neo4j-driver: + optional: true node-llama-cpp: optional: true notion-to-md: optional: true - officeparser: - optional: true pdf-parse: optional: true peggy: optional: true + pg: + optional: true + pg-copy-streams: + optional: true + pickleparser: + optional: true playwright: optional: true - puppeteer: + portkey-ai: optional: true - pyodide: + puppeteer: optional: true redis: optional: true + replicate: + optional: true sonix-speech-recognition: optional: true srt-parser-2: optional: true typeorm: optional: true + typesense: + optional: true + usearch: + optional: true + vectordb: + optional: true + voy-search: + optional: true weaviate-ts-client: optional: true web-auth-library: @@ -13019,117 +12605,43 @@ packages: optional: true dependencies: '@anthropic-ai/sdk': 0.9.1 - '@langchain/community': 0.0.43(@getzep/zep-js@2.0.0-rc.4) - '@langchain/core': 0.1.52 - '@langchain/openai': 0.0.24 + '@aws-sdk/client-bedrock-runtime': 3.451.0 + '@huggingface/inference': 2.6.4 binary-extensions: 2.2.0 + cohere-ai: 7.6.2 + expr-eval: 2.0.2 + flat: 5.0.2 js-tiktoken: 1.0.7 js-yaml: 4.1.0 + jsdom: 23.0.0 jsonpointer: 5.0.1 - langchainhub: 0.0.8 - langsmith: 0.1.14 + langchain-core: 0.0.1 + langchainhub: 0.0.6 + langsmith: 0.0.48 ml-distance: 4.0.1 + openai: 4.29.0 openapi-types: 12.1.3 p-retry: 4.6.2 uuid: 9.0.1 yaml: 2.3.4 zod: 3.22.4 - zod-to-json-schema: 3.22.4(zod@3.22.4) + zod-to-json-schema: 3.20.3(zod@3.22.4) transitivePeerDependencies: - - '@aws-crypto/sha256-js' - - '@aws-sdk/client-bedrock-agent-runtime' - - '@aws-sdk/client-bedrock-runtime' - - '@aws-sdk/client-dynamodb' - - '@aws-sdk/client-kendra' - - '@aws-sdk/client-lambda' - - '@azure/search-documents' - - '@clickhouse/client' - - '@cloudflare/ai' - - '@datastax/astra-db-ts' - - '@elastic/elasticsearch' - - '@getmetal/metal-sdk' - - '@getzep/zep-js' - - '@gradientai/nodejs-sdk' - - '@huggingface/inference' - - '@mozilla/readability' - - '@opensearch-project/opensearch' - - '@planetscale/database' - - '@premai/prem-sdk' - - '@qdrant/js-client-rest' - - '@raycast/api' - - '@rockset/client' - - '@smithy/eventstream-codec' - - '@smithy/protocol-http' - - '@smithy/signature-v4' - - '@smithy/util-utf8' - - '@supabase/postgrest-js' - - '@tensorflow-models/universal-sentence-encoder' - - '@tensorflow/tfjs-converter' - - '@tensorflow/tfjs-core' - - '@upstash/redis' - - '@upstash/vector' - - '@vercel/postgres' - - '@writerai/writer-sdk' - - '@xenova/transformers' - - '@zilliz/milvus2-sdk-node' - - better-sqlite3 - - cassandra-driver - - cborg - - closevector-common - - closevector-node - - closevector-web - - cohere-ai - - discord.js - - dria - encoding - - firebase-admin - - googleapis - - hnswlib-node - - interface-datastore - - it-all - - jsonwebtoken - - llmonitor - - lodash - - lunary - - mysql2 - - neo4j-driver - - pg - - pg-copy-streams - - pickleparser - - portkey-ai - - replicate - - typesense - - usearch - - vectordb - - voy-search - dev: false + dev: true /langchainhub@0.0.6: resolution: {integrity: sha512-SW6105T+YP1cTe0yMf//7kyshCgvCTyFBMTgH2H3s9rTAR4e+78DA/BBrUL/Mt4Q5eMWui7iGuAYb3pgGsdQ9w==} - /langchainhub@0.0.8: - resolution: {integrity: sha512-Woyb8YDHgqqTOZvWIbm2CaFDGfZ4NTSyXV687AG4vXEfoNo7cGQp7nhl7wL3ehenKWmNEmcxCLgOZzW8jE6lOQ==} - dev: false - /langsmith@0.0.48: resolution: {integrity: sha512-s0hW8iZ90Q9XLTnDK0Pgee245URV3b1cXQjPDj5OKm1+KN7iSK1pKx+4CO7RcFLz58Ixe7Mt+mVcomYqUuryxQ==} hasBin: true dependencies: - '@types/uuid': 9.0.8 - commander: 10.0.1 - p-queue: 6.6.2 - p-retry: 4.6.2 - uuid: 9.0.1 - - /langsmith@0.1.14: - resolution: {integrity: sha512-iEzQLLB7/0nRpAwNBAR7B7N64fyByg5UsNjSvLaCCkQ9AS68PSafjB8xQkyI8QXXrGjU1dEqDRoa8m4SUuRdUw==} - dependencies: - '@types/uuid': 9.0.8 + '@types/uuid': 9.0.7 commander: 10.0.1 p-queue: 6.6.2 p-retry: 4.6.2 uuid: 9.0.1 - dev: false /language-subtag-registry@0.3.22: resolution: {integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==} @@ -14500,111 +14012,6 @@ packages: - xml2js dev: true - /nuxt@3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vite@4.5.0): - resolution: {integrity: sha512-RSGO56Gv0x2f6AXWw4o4GoBaVdsD0qkPCjrX7Ud/jzH3cRJoyYMPuq/9AOLvf2o1ecZWl39j5elqJ4QHmggyOA==} - engines: {node: ^14.18.0 || >=16.10.0} - hasBin: true - peerDependencies: - '@parcel/watcher': ^2.1.0 - '@types/node': ^14.18.0 || >=16.10.0 - peerDependenciesMeta: - '@parcel/watcher': - optional: true - '@types/node': - optional: true - dependencies: - '@nuxt/devalue': 2.0.2 - '@nuxt/devtools': 1.0.2(nuxt@3.8.1)(vite@4.5.0) - '@nuxt/kit': 3.8.1 - '@nuxt/schema': 3.8.1 - '@nuxt/telemetry': 2.5.2 - '@nuxt/ui-templates': 1.3.1 - '@nuxt/vite-builder': 3.8.1(@types/node@20.9.0)(eslint@7.32.0)(vue@3.3.8) - '@types/node': 20.9.0 - '@unhead/dom': 1.8.3 - '@unhead/ssr': 1.8.3 - '@unhead/vue': 1.8.3(vue@3.3.8) - '@vue/shared': 3.3.8 - acorn: 8.11.2 - c12: 1.5.1 - chokidar: 3.5.3 - cookie-es: 1.0.0 - defu: 6.1.3 - destr: 2.0.2 - devalue: 4.3.2 - esbuild: 0.19.5 - escape-string-regexp: 5.0.0 - estree-walker: 3.0.3 - fs-extra: 11.1.1 - globby: 13.2.2 - h3: 1.8.2 - hookable: 5.5.3 - jiti: 1.21.0 - klona: 2.0.6 - knitwork: 1.0.0 - magic-string: 0.30.5 - mlly: 1.4.2 - nitropack: 2.7.2 - nuxi: 3.9.1 - nypm: 0.3.3 - ofetch: 1.3.3 - ohash: 1.1.3 - pathe: 1.1.1 - perfect-debounce: 1.0.0 - pkg-types: 1.0.3 - radix3: 1.1.0 - scule: 1.0.0 - std-env: 3.4.3 - strip-literal: 1.3.0 - ufo: 1.3.1 - ultrahtml: 1.5.2 - uncrypto: 0.1.3 - unctx: 2.3.1 - unenv: 1.7.4 - unimport: 3.5.0(rollup@3.29.4) - unplugin: 1.5.0 - unplugin-vue-router: 0.7.0(vue-router@4.2.5)(vue@3.3.8) - untyped: 1.4.0 - vue: 3.3.8(typescript@4.9.5) - vue-bundle-renderer: 2.0.0 - vue-devtools-stub: 0.1.0 - vue-router: 4.2.5(vue@3.3.8) - transitivePeerDependencies: - - '@azure/app-configuration' - - '@azure/cosmos' - - '@azure/data-tables' - - '@azure/identity' - - '@azure/keyvault-secrets' - - '@azure/storage-blob' - - '@capacitor/preferences' - - '@planetscale/database' - - '@upstash/redis' - - '@vercel/kv' - - bluebird - - bufferutil - - encoding - - eslint - - idb-keyval - - less - - lightningcss - - meow - - optionator - - rollup - - sass - - stylelint - - stylus - - sugarss - - supports-color - - terser - - typescript - - utf-8-validate - - vite - - vls - - vti - - vue-tsc - - xml2js - dev: true - /nwsapi@2.2.7: resolution: {integrity: sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==} @@ -14810,6 +14217,7 @@ packages: web-streams-polyfill: 3.2.1 transitivePeerDependencies: - encoding + dev: false /openai@4.29.0: resolution: {integrity: sha512-ic6C681bSow1XQdKhADthM/OOKqNL05M1gCFLx1mRqLJ+yH49v6qnvaWQ76kwqI/IieCuVTXfRfTk3sz4cB45w==} @@ -16345,6 +15753,7 @@ packages: /secure-json-parse@2.7.0: resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} + dev: false /seek-bzip@1.0.6: resolution: {integrity: sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==} @@ -16743,6 +16152,7 @@ packages: dependencies: solid-js: 1.8.7 swr-store: 0.10.6 + dev: false /sonner@0.6.2(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-bh4FWhYoNN481ZIW94W4e0kSLBTMGislYg2YXvDS1px1AJJz4erQe9jHV8s5pS1VMVDgfh3CslNSFLaU6Ldrnw==} @@ -16843,6 +16253,7 @@ packages: dependencies: svelte: 4.2.3 swrev: 4.0.0 + dev: false /stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} @@ -17210,6 +16621,7 @@ packages: engines: {node: '>=10'} dependencies: dequal: 2.0.3 + dev: false /swr@2.2.0(react@18.2.0): resolution: {integrity: sha512-AjqHOv2lAhkuUdIiBu9xbuettzAzWXmCEcLONNKJRba87WAefz8Ca9d6ds/SzrPc235n1IxWYdhJ2zF3MNUaoQ==} @@ -17218,9 +16630,11 @@ packages: dependencies: react: 18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) + dev: false /swrev@4.0.0: resolution: {integrity: sha512-LqVcOHSB4cPGgitD1riJ1Hh4vdmITOp+BkmfmXRh4hSF/t7EnS4iD+SOTmq7w5pPm/SiPeto4ADbKS6dHUDWFA==} + dev: false /swrv@1.0.4(vue@3.3.8): resolution: {integrity: sha512-zjEkcP8Ywmj+xOJW3lIT65ciY/4AL4e/Or7Gj0MzU3zBJNMdJiT8geVZhINavnlHRMMCcJLHhraLTAiDOTmQ9g==} @@ -17228,6 +16642,7 @@ packages: vue: '>=3.2.26 < 4' dependencies: vue: 3.3.8(typescript@5.1.3) + dev: false /symbol-tree@3.2.4: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} @@ -17845,6 +17260,7 @@ packages: resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} engines: {node: '>=4.2.0'} hasBin: true + dev: true /typescript@5.1.3: resolution: {integrity: sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==} @@ -18198,6 +17614,7 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: react: 18.2.0 + dev: false /usehooks-ts@2.15.1(react@18.2.0): resolution: {integrity: sha512-AK29ODCt4FT9XleILNbkbjjmkRCNaQrgxQEkvqHjlnT76iPXzTFGvK2Y/s83JEdSxRp43YEnSa3bYBEV6HZ26Q==} @@ -18700,24 +18117,9 @@ packages: vue: ^3.2.0 dependencies: '@vue/devtools-api': 6.5.1 - vue: 3.3.8(typescript@4.9.5) + vue: 3.3.8(typescript@5.1.6) dev: true - /vue@3.3.8(typescript@4.9.5): - resolution: {integrity: sha512-5VSX/3DabBikOXMsxzlW8JyfeLKlG9mzqnWgLQLty88vdZL7ZJgrdgBOmrArwxiLtmS+lNNpPcBYqrhE6TQW5w==} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@vue/compiler-dom': 3.3.8 - '@vue/compiler-sfc': 3.3.8 - '@vue/runtime-dom': 3.3.8 - '@vue/server-renderer': 3.3.8(vue@3.3.8) - '@vue/shared': 3.3.8 - typescript: 4.9.5 - /vue@3.3.8(typescript@5.1.3): resolution: {integrity: sha512-5VSX/3DabBikOXMsxzlW8JyfeLKlG9mzqnWgLQLty88vdZL7ZJgrdgBOmrArwxiLtmS+lNNpPcBYqrhE6TQW5w==} peerDependencies: @@ -19225,6 +18627,7 @@ packages: zod: ^3.22.4 dependencies: zod: 3.22.4 + dev: false /zod@3.22.4: resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}