π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: agents
Nevo Davida0054ac2de69
diff --git a/apps/backend/src/api/routes/posts.controller.ts b/apps/backend/src/api/routes/posts.controller.tsindex 1590411a3..e02f743ea 100644--- a/apps/backend/src/api/routes/posts.controller.ts+++ b/apps/backend/src/api/routes/posts.controller.ts@@ -7,6 +7,7 @@ import {Post,Put,Query,+ Res,} from '@nestjs/common';import { PostsService } from '@gitroom/nestjs-libraries/database/prisma/posts/posts.service';import { GetOrgFromRequest } from '@gitroom/nestjs-libraries/user/org.from.request';@@ -23,6 +24,8 @@ import { ApiTags } from '@nestjs/swagger';import { MessagesService } from '@gitroom/nestjs-libraries/database/prisma/marketplace/messages.service';import { GeneratorDto } from '@gitroom/nestjs-libraries/dtos/generator/generator.dto';import { CreateGeneratedPostsDto } from '@gitroom/nestjs-libraries/dtos/generator/create.generated.posts.dto';+import { AgentGraphService } from '@gitroom/nestjs-libraries/agent/agent.graph.service';+import { Response } from 'express';@ApiTags('Posts')@Controller('/posts')@@ -30,7 +33,8 @@ export class PostsController {constructor(private _postsService: PostsService,private _starsService: StarsService,- private _messagesService: MessagesService+ private _messagesService: MessagesService,+ private _agentGraphService: AgentGraphService) {}@Get('/marketplace/:id?')@@ -100,11 +104,20 @@ export class PostsController {@Post('/generator')@CheckPolicies([AuthorizationActions.Create, Sections.POSTS_PER_MONTH])- generatePosts(+ async generatePosts(@GetOrgFromRequest() org: Organization,- @Body() body: GeneratorDto+ @Body() body: GeneratorDto,+ @Res({ passthrough: false }) res: Response) {- return this._postsService.generatePosts(org.id, body);+ res.setHeader('Content-Type', 'application/json; charset=utf-8');+ for await (const event of this._agentGraphService.start(+ org.id,+ body,+ )) {+ res.write(JSON.stringify(event) + '\n');+ }++ res.end();}@Delete('/:group')diff --git a/apps/backend/src/api/routes/public.controller.ts b/apps/backend/src/api/routes/public.controller.tsindex dc4d16fc3..44ff199f3 100644--- a/apps/backend/src/api/routes/public.controller.ts+++ b/apps/backend/src/api/routes/public.controller.ts@@ -10,14 +10,29 @@ import { GetUserFromRequest } from '@gitroom/nestjs-libraries/user/user.from.reqimport { User } from '@prisma/client';import { makeId } from '@gitroom/nestjs-libraries/services/make.is';import { getCookieUrlFromDomain } from '@gitroom/helpers/subdomain/subdomain.management';+import { AgentGraphService } from '@gitroom/nestjs-libraries/agent/agent.graph.service';+import { AgentGraphInsertService } from '@gitroom/nestjs-libraries/agent/agent.graph.insert.service';@ApiTags('Public')@Controller('/public')export class PublicController {constructor(private _agenciesService: AgenciesService,- private _trackService: TrackService+ private _trackService: TrackService,+ private _agentGraphInsertService: AgentGraphInsertService) {}+ @Post('/agent')+ async createAgent(@Body() body: { text: string; apiKey: string }) {+ if (+ !body.apiKey ||+ !process.env.AGENT_API_KEY ||+ body.apiKey !== process.env.AGENT_API_KEY+ ) {+ return;+ }+ return this._agentGraphInsertService.newPost(body.text);+ }+@Get('/agencies-list')async getAgencyByUser() {return this._agenciesService.getAllAgencies();diff --git a/apps/backend/src/app.module.ts b/apps/backend/src/app.module.tsindex f9cc38ba6..3412b76a0 100644--- a/apps/backend/src/app.module.ts+++ b/apps/backend/src/app.module.ts@@ -9,6 +9,7 @@ import { PluginModule } from '@gitroom/plugins/plugin.module';import { PublicApiModule } from '@gitroom/backend/public-api/public.api.module';import { ThrottlerBehindProxyGuard } from '@gitroom/nestjs-libraries/throttler/throttler.provider';import { ThrottlerModule } from '@nestjs/throttler';+import { AgentModule } from '@gitroom/nestjs-libraries/agent/agent.module';@Global()@Module({@@ -18,6 +19,7 @@ import { ThrottlerModule } from '@nestjs/throttler';ApiModule,PluginModule,PublicApiModule,+ AgentModule,ThrottlerModule.forRoot([{ttl: 3600000,diff --git a/apps/commands/project.json b/apps/commands/project.jsonindex bd2b0ad91..3629dc78a 100644--- a/apps/commands/project.json+++ b/apps/commands/project.json@@ -25,17 +25,7 @@"executor": "nx:run-commands","defaultConfiguration": "development","options": {- "buildTarget": "commands:build",- "inspect": false,"command": "cd dist/apps/commands && node main.js"- },- "configurations": {- "development": {- "buildTarget": "commands:build:development"- },- "production": {- "buildTarget": "commands:build:production"- }}},"lint": {diff --git a/apps/commands/src/command.module.ts b/apps/commands/src/command.module.tsindex 9430ef56d..44d9d5e54 100644--- a/apps/commands/src/command.module.ts+++ b/apps/commands/src/command.module.ts@@ -5,11 +5,18 @@ import { DatabaseModule } from '@gitroom/nestjs-libraries/database/prisma/databaimport { RefreshTokens } from './tasks/refresh.tokens';import { BullMqModule } from '@gitroom/nestjs-libraries/bull-mq-transport-new/bull.mq.module';import { ConfigurationTask } from './tasks/configuration';+import { AgentRun } from './tasks/agent.run';+import { AgentModule } from '@gitroom/nestjs-libraries/agent/agent.module';@Module({- imports: [ExternalCommandModule, DatabaseModule, BullMqModule],+ imports: [+ ExternalCommandModule,+ DatabaseModule,+ BullMqModule,+ AgentModule,+ ],controllers: [],- providers: [CheckStars, RefreshTokens, ConfigurationTask],+ providers: [CheckStars, RefreshTokens, ConfigurationTask, AgentRun],get exports() {return [...this.imports, ...this.providers];},diff --git a/apps/commands/src/tasks/agent.run.ts b/apps/commands/src/tasks/agent.run.tsnew file mode 100644index 000000000..ad8e67c0a--- /dev/null+++ b/apps/commands/src/tasks/agent.run.ts@@ -0,0 +1,15 @@+import { Command } from 'nestjs-command';+import { Injectable } from '@nestjs/common';+import { AgentGraphService } from '@gitroom/nestjs-libraries/agent/agent.graph.service';++@Injectable()+export class AgentRun {+ constructor(private _agentGraphService: AgentGraphService) {}+ @Command({+ command: 'run:agent',+ describe: 'Run the agent',+ })+ async agentRun() {+ console.log(await this._agentGraphService.createGraph('hello', true));+ }+}diff --git a/apps/frontend/src/app/global.scss b/apps/frontend/src/app/global.scssindex 885b1e7d3..f9e668fa4 100644--- a/apps/frontend/src/app/global.scss+++ b/apps/frontend/src/app/global.scss@@ -394,4 +394,25 @@ div div .set-font-family {transform: translate(-50%, -50%);white-space: nowrap;opacity: 30%;+}++.loading-shimmer {+ position: relative;+ color: rgba(255, 255, 255, .5);+}++.loading-shimmer:before {+ content: attr(data-text);+ position: absolute;+ overflow: hidden;+ max-width: 100%;+ white-space: nowrap;+ color: white;+ animation: loading 4s linear 0s infinite;+ filter: blur(0.4px);+}+@keyframes loading {+ 0% {+ max-width: 0;+ }}\ No newline at end of filediff --git a/apps/frontend/src/components/launches/add.edit.model.tsx b/apps/frontend/src/components/launches/add.edit.model.tsxindex 38c434def..79a0a01a3 100644--- a/apps/frontend/src/components/launches/add.edit.model.tsx+++ b/apps/frontend/src/components/launches/add.edit.model.tsx@@ -66,8 +66,13 @@ export const AddEditModal: FC<{integrations: Integrations[];reopenModal: () => void;mutate: () => void;+ onlyValues?: Array<{+ content: string;+ id?: string;+ image?: Array<{ id: string; path: string }>;+ }>;}> = (props) => {- const { date, integrations: ints, reopenModal, mutate } = props;+ const { date, integrations: ints, reopenModal, mutate, onlyValues } = props;const [customer, setCustomer] = useState('');// selected integrations to allow edit@@ -104,7 +109,7 @@ export const AddEditModal: FC<{id?: string;image?: Array<{ id: string; path: string }>;}>- >([{ content: '' }]);+ >(onlyValues ? onlyValues : [{ content: '' }]);const fetch = useFetch();diff --git a/apps/frontend/src/components/launches/editor.tsx b/apps/frontend/src/components/launches/editor.tsxindex e2906b018..20c743c2b 100644--- a/apps/frontend/src/components/launches/editor.tsx+++ b/apps/frontend/src/components/launches/editor.tsx@@ -22,7 +22,7 @@ export const Editor = forwardRef<const user = useUser();useCopilotReadable({description: 'Content of the post number ' + (props.order + 1),- value: props.content,+ value: props.value,});useCopilotAction({diff --git a/apps/frontend/src/components/launches/generator/generator.tsx b/apps/frontend/src/components/launches/generator/generator.tsxindex e75b32c15..00acb2053 100644--- a/apps/frontend/src/components/launches/generator/generator.tsx+++ b/apps/frontend/src/components/launches/generator/generator.tsx@@ -1,248 +1,163 @@-import React, {- FC,- useCallback,- useMemo,- useState,-} from 'react';+import React, { FC, useCallback, useMemo, useState } from 'react';import { useUser } from '@gitroom/frontend/components/layout/user.context';import { useRouter } from 'next/navigation';import { deleteDialog } from '@gitroom/react/helpers/delete.dialog';-import {- Step,- StepSpace,-} from '@gitroom/frontend/components/onboarding/onboarding';import { useModals } from '@mantine/modals';-import { Select } from '@gitroom/react/form/select';-import { Input } from '@gitroom/react/form/input';-import dayjs from 'dayjs';import { FormProvider, SubmitHandler, useForm } from 'react-hook-form';import { classValidatorResolver } from '@hookform/resolvers/class-validator';import { GeneratorDto } from '@gitroom/nestjs-libraries/dtos/generator/generator.dto';import { Button } from '@gitroom/react/form/button';-import { PostSelector } from '@gitroom/frontend/components/post-url-selector/post.url.selector';import { useFetch } from '@gitroom/helpers/utils/custom.fetch';+import { Textarea } from '@gitroom/react/form/textarea';+import { Checkbox } from '@gitroom/react/form/checkbox';import clsx from 'clsx';+import {+ CalendarWeekProvider,+ useCalendar,+} from '@gitroom/frontend/components/launches/calendar.context';+import { AddEditModal } from '@gitroom/frontend/components/launches/add.edit.model';+import dayjs from 'dayjs';+import { Select } from '@gitroom/react/form/select';-const ThirdStep: FC<{ week: number; year: number }> = (props) => {- const { week, year } = props;-- const gotToPosts = useCallback(() => {- window.location.href = `/launches?week=${week}&year=${year}`;- }, [week, year]);- return (- <div>- <div className="text-[20px] mb-[20px] flex flex-col items-center justify-center text-center mt-[20px] gap-[20px]">- <img src="/success.svg" alt="success" />- Your posts have been scheduled as drafts.- <br />- <Button onClick={gotToPosts}>Click here to see them</Button>- </div>- </div>- );-};--const SecondStep: FC<{- posts: Array<Array<{ post: string }>>;- url: string;- postId?: string;- nextStep: (params: { week: number; year: number }) => void;-}> = (props) => {- const { posts, nextStep, url, postId } = props;+const FirstStep: FC = (props) => {+ const { integrations, reloadCalendarView } = useCalendar();+ const modal = useModals();const fetch = useFetch();- const [selected, setSelected] = useState<Array<string>>([]);const [loading, setLoading] = useState(false);+ const [showStep, setShowStep] = useState('');+ const resolver = useMemo(() => {+ return classValidatorResolver(GeneratorDto);+ }, []);const form = useForm({+ mode: 'all',+ resolver,values: {- date: dayjs().week() + '_' + dayjs().year(),+ research: '',+ isPicture: false,+ format: 'one_short',+ tone: 'personal',},});- const addPost = useCallback(- (index: string) => () => {- if (selected.includes(index)) {- setSelected(selected.filter((i) => i !== index));- return;+ const [research] = form.watch(['research']);++ const generateStep = useCallback(+ async (reader: ReadableStreamDefaultReader) => {+ const decoder = new TextDecoder('utf-8');++ let lastResponse = {} as any;+ // eslint-disable-next-line no-constant-condition+ while (true) {+ const { done, value } = await reader.read();+ if (done) return lastResponse.data.output;++ // Convert chunked binary data to string+ const chunkStr = decoder.decode(value, { stream: true });+ for (const chunk of chunkStr+ .split('\n')+ .filter((f) => f && f.indexOf('{') > -1)) {+ try {+ const data = JSON.parse(chunk);+ switch (data.name) {+ case 'agent':+ setShowStep('Agent starting');+ break;+ case 'research':+ setShowStep('Researching your content...');+ break;+ case 'find-category':+ setShowStep('Understanding the category...');+ break;+ case 'find-topic':+ setShowStep('Finding the topic...');+ break;+ case 'find-popular-posts':+ setShowStep('Finding popular posts to match with...');+ break;+ case 'generate-hook':+ setShowStep('Generating hook...');+ break;+ case 'generate-content':+ setShowStep('Generating content...');+ break;+ case 'generate-picture':+ setShowStep('Generating pictures...');+ break;+ case 'upload-pictures':+ setShowStep('Uploading pictures...');+ break;+ case 'post-time':+ setShowStep('Finding time to post...');+ break;+ }+ lastResponse = data;+ } catch (e) {+ /** don't do anything **/+ }+ }}- setSelected([...selected, index]);},- [selected]+ []);- const list = useMemo(() => {- const currentDate = dayjs();- return [...new Array(52)].map((_, i) => {- const week = currentDate.add(i, 'week');- return {- value: week.week() + '_' + week.year(),- label: `Week #${week.week()} (${week- .startOf('isoWeek')- .format('YYYY-MM-DD')} - ${week- .endOf('isoWeek')- .format('YYYY-MM-DD')})`,- };- });- }, []);-- const createPosts: SubmitHandler<{- date: any;+ const onSubmit: SubmitHandler<{+ research: string;}> = useCallback(- async (values) => {+ async (value) => {setLoading(true);- await fetch('/posts/generator/draft', {+ const response = await fetch('/posts/generator', {method: 'POST',- body: JSON.stringify({- posts: posts- .filter((_, index) => selected.includes(String(index)))- .map((po) => ({ list: po })),- url,- postId: postId ? `(post:${postId})` : undefined,- year: values.date.year,- week: values.date.week,- }),- });- setLoading(false);- nextStep({- week: values.date.week,- year: values.date.year,+ body: JSON.stringify(value),});- },- [selected, postId, url]- );-- return (- <form onSubmit={form.handleSubmit(createPosts)}>- <FormProvider {...form}>- <div className={loading ? 'opacity-75' : ''}>- <Select- label="Select a week"- name="date"- extraForm={{- setValueAs: (value) => {- const [week, year] = value.split('_');- return { week: +week, year: +year };- },- }}- >- {list.map((item) => (- <option value={item.value} key={item.value}>- {item.label}- </option>- ))}- </Select>- <div className="text-[20px] mb-[20px]">- Click on the posts you would like to schedule.- <br />- They will be saved as drafts and you can edit them later.- </div>- <div className="grid grid-cols-3 gap-[25px] select-none cursor-pointer">- {posts.map((post, index) => (- <div- onClick={addPost(String(index))}- className={clsx(- 'flex flex-col h-[200px] border rounded-[4px] group hover:border-white relative',- selected.includes(String(index))- ? 'border-white'- : 'border-fifth'- )}- key={post[0].post}- >- {post.length > 1 && (- <div className="bg-forth absolute -left-[15px] -top-[15px] z-[100] p-[3px] rounded-[10px]">- a thread- </div>- )}- <div- className={clsx(- 'flex-1 relative h-full w-full group-hover:bg-black',- selected.includes(String(index)) && 'bg-black'- )}- >- <div className="absolute left-0 top-0 w-full h-full p-[16px]">- <div className="w-full h-full overflow-hidden text-ellipsis group-hover:bg-black resize-none outline-none">- {post[0].post.split('\n\n')[0]}- </div>- </div>- </div>- </div>- ))}- </div>- <div className="mt-[20px] flex justify-end">- <Button type="submit" disabled={!selected.length} loading={loading}>- Create posts- </Button>- </div>- </div>- </FormProvider>- </form>- );-};-const FirstStep: FC<{- nextStep: (- posts: Array<Array<{ post: string }>>,- url: string,- postId?: string- ) => void;-}> = (props) => {- const { nextStep } = props;- const fetch = useFetch();- const [loading, setLoading] = useState(false);- const resolver = useMemo(() => {- return classValidatorResolver(GeneratorDto);- }, []);+ if (!response.body) {+ return;+ }- const form = useForm({- mode: 'all',- resolver,- values: {- url: '',- post: undefined as undefined | string,- },- });+ const reader = response.body.getReader();+ const load = await generateStep(reader);- const [url, post] = form.watch(['url', 'post']);+ const messages = load.content.map((p: any, index: number) => {+ if (index === 0) {+ return {+ content: load.hook + '\n' + p.content,+ ...(p?.image?.path ? { image: [p.image] } : {}),+ };+ }- const makeSelect = useCallback(- (post?: string) => {- form.setValue('post', post?.split?.(':')[1]?.split(')')?.[0]);+ return {+ content: p.content,+ ...(p?.image?.path ? { image: [p.image] } : {}),+ };+ });- if (!post && !url) {- form.setError('url', {- message: 'You need to select a post or a URL',- });- return;- }+ setShowStep('');- if (post && url) {- form.setError('url', {- message: 'You can only have a URL or a post',- });- return;- }-- form.setError('url', {- message: '',+ modal.openModal({+ closeOnClickOutside: false,+ closeOnEscape: false,+ withCloseButton: false,+ classNames: {+ modal: 'w-[100%] max-w-[1400px] bg-transparent text-textColor',+ },+ children: (+ <AddEditModal+ integrations={integrations.slice(0).map((p) => ({ ...p }))}+ mutate={reloadCalendarView}+ date={dayjs.utc(load.date).local()}+ reopenModal={() => ({})}+ onlyValues={messages}+ />+ ),+ size: '80%',});++ setLoading(false);},- [post, url]+ [integrations, reloadCalendarView]);- const onSubmit: SubmitHandler<{- url: string;- post: string | undefined;- }> = useCallback(async (value) => {- setLoading(true);- const data = await (- await fetch('/posts/generator', {- method: 'POST',- body: JSON.stringify(value),- })- ).json();- nextStep(data.list, value.url, value.post);- setLoading(false);- }, []);-return (<formonSubmit={form.handleSubmit(onSubmit)}@@ -250,31 +165,61 @@ const FirstStep: FC<{><FormProvider {...form}><div className="flex flex-col">- <div className="p-[20px] border border-fifth rounded-[4px]">+ <div className="pb-[10px] rounded-[4px]"><div className="flex"><div className="flex-1">- <Input label="URL" {...form.register('url')} />- </div>- </div>- <div className="flex flex-col-reverse">- <div className="p-[16px] bg-input border-fifth border rounded-[4px] min-h-[500px] empty:hidden">- <PostSelector- noModal={true}- onClose={() => null}- onSelect={makeSelect}- date={dayjs().add(1, 'year')}- only="article"+ {!showStep ? (+ <div className="loading-shimmer pb-[10px]"> </div>+ ) : (+ <div+ className="loading-shimmer pb-[10px]"+ data-text={showStep}+ >+ {showStep}+ </div>+ )}+ <Textarea+ label="Write anything"+ disabled={loading}+ placeholder="You can write anything you want, and also add links, we will do the research for you..."+ {...form.register('research')}/>- </div>- <div className="pb-[10px] existing-empty">- Or select from exising posts+ <Select label="Output format" {...form.register('format')}>+ <option value="one_short">Short post</option>+ <option value="one_long">Long post</option>+ <option value="thread_short">+ A thread with short posts+ </option>+ <option value="thread_long">A thread with long posts</option>+ </Select>+ <Select label="Output format" {...form.register('tone')}>+ <option value="personal">+ Personal voice ({'"'}I am happy to announce{'"'})+ </option>+ <option value="company">+ Company voice ({'"'}We are happy to announce{'"'})+ </option>+ </Select>+ <div+ className={clsx('flex items-center', loading && 'opacity-50')}+ >+ <Checkbox+ disabled={loading}+ {...form.register('isPicture')}+ label="Add pictures?"+ />+ </div></div></div></div></div><div className="mt-[20px] flex justify-end">- <Button type="submit" disabled={!!(url && post)} loading={loading}>- {url && post ? "You can't have both URL and a POST" : 'Next'}+ <Button+ type="submit"+ disabled={research.length < 10}+ loading={loading}+ >+ Generate</Button></div></FormProvider>@@ -282,28 +227,14 @@ const FirstStep: FC<{);};export const GeneratorPopup = () => {- const [step, setStep] = useState(1);const modals = useModals();- const [posts, setPosts] = useState<- | {- posts: Array<Array<{ post: string }>>;- url: string;- postId?: string;- }- | undefined- >(undefined);-- const [yearAndWeek, setYearAndWeek] = useState<{- year: number;- week: number;- } | null>(null);const closeAll = useCallback(() => {modals.closeAll();}, []);return (- <div className="bg-sixth p-[32px] w-full max-w-[920px] mx-auto flex flex-col gap-[24px] rounded-[4px] border border-customColor6 relative">+ <div className="bg-sixth p-[32px] w-full max-w-[920px] mx-auto flex flex-col rounded-[4px] border border-customColor6 relative"><buttononClick={closeAll}className="outline-none absolute right-[20px] top-[15px] mantine-UnstyledButton-root mantine-ActionIcon-root hover:bg-tableBorder cursor-pointer mantine-Modal-close mantine-1dcetaa"@@ -325,37 +256,7 @@ export const GeneratorPopup = () => {</svg></button><h1 className="text-[24px]">Generate Posts</h1>- <div className="flex">- <Step title="Generate posts" step={1} currentStep={step} lastStep={3} />- <StepSpace />- <Step title="Confirm posts" step={2} currentStep={step} lastStep={3} />- <StepSpace />- <Step title="Done" step={3} currentStep={step} lastStep={3} />- </div>- {step === 1 && (- <FirstStep- nextStep={(posts, url: string, postId?: string) => {- setPosts({- posts,- url,- postId,- });- setStep(2);- }}- />- )}- {step === 2 && (- <SecondStep- {...posts!}- nextStep={(e) => {- setYearAndWeek(e);- setStep(3);- }}- />- )}- {step === 3 && (- <ThirdStep week={yearAndWeek?.week!} year={yearAndWeek?.year!} />- )}+ <FirstStep /></div>);};@@ -363,6 +264,7 @@ export const GeneratorComponent = () => {const user = useUser();const router = useRouter();const modal = useModals();+ const all = useCalendar();const generate = useCallback(async () => {if (!user?.tier?.ai) {@@ -385,9 +287,13 @@ export const GeneratorComponent = () => {modal: 'bg-transparent text-textColor',},size: '100%',- children: <GeneratorPopup />,+ children: (+ <CalendarWeekProvider {...all}>+ <GeneratorPopup />+ </CalendarWeekProvider>+ ),});- }, [user]);+ }, [user, all]);return (<buttondiff --git a/apps/frontend/src/components/launches/launches.component.tsx b/apps/frontend/src/components/launches/launches.component.tsxindex 5eb95a467..6cc21248f 100644--- a/apps/frontend/src/components/launches/launches.component.tsx+++ b/apps/frontend/src/components/launches/launches.component.tsx@@ -20,6 +20,8 @@ import { useFireEvents } from '@gitroom/helpers/utils/use.fire.events';import { Calendar } from './calendar';import { useDrag, useDrop } from 'react-dnd';import { DNDProvider } from '@gitroom/frontend/components/launches/helpers/dnd.provider';+import { GeneratorComponent } from './generator/generator';+import { useVariables } from '@gitroom/react/helpers/variable.context';interface MenuComponentInterface {refreshChannel: (@@ -217,6 +219,8 @@ export const MenuComponent: FC<};export const LaunchesComponent = () => {const fetch = useFetch();+ const user = useUser();+ const {billingEnabled} = useVariables();const router = useRouter();const search = useSearchParams();const toast = useToaster();@@ -333,11 +337,14 @@ export const LaunchesComponent = () => {}if (search.get('msg')) {toast.show(search.get('msg')!, 'warning');- window?.opener?.postMessage({msg: search.get('msg')!, success: false}, '*');+ window?.opener?.postMessage(+ { msg: search.get('msg')!, success: false },+ '*'+ );}if (search.get('added')) {fireEvents('channel_added');- window?.opener?.postMessage({msg: 'Channel added', success: true}, '*');+ window?.opener?.postMessage({ msg: 'Channel added', success: true }, '*');}if (window.opener) {window.close();@@ -375,7 +382,7 @@ export const LaunchesComponent = () => {))}</div><AddProviderButton update={() => update(true)} />- {/*{sortedIntegrations?.length > 0 && user?.tier?.ai && <GeneratorComponent />}*/}+ {sortedIntegrations?.length > 0 && user?.tier?.ai && billingEnabled && <GeneratorComponent />}</div><div className="flex-1 flex flex-col gap-[14px]"><Filters />diff --git a/libraries/nestjs-libraries/src/agent/agent.categories.ts b/libraries/nestjs-libraries/src/agent/agent.categories.tsnew file mode 100644index 000000000..565476928--- /dev/null+++ b/libraries/nestjs-libraries/src/agent/agent.categories.ts@@ -0,0 +1,32 @@+export const agentCategories = [+ 'Educational',+ 'Inspirational',+ 'Promotional',+ 'Entertaining',+ 'Interactive',+ 'Behind The Scenes',+ 'Testimonial',+ 'Informative',+ 'Humorous',+ 'Seasonal',+ 'News',+ 'Challenge',+ 'Contest',+ 'Tips',+ 'Tutorial',+ 'Poll',+ 'Survey',+ 'Quote',+ 'Event',+ 'FAQ',+ 'Story',+ 'Meme',+ 'Review',+ 'Announcement',+ 'Highlight',+ 'Celebration',+ 'Reminder',+ 'Debate',+ 'Update',+ 'Trend',+];\ No newline at end of filediff --git a/libraries/nestjs-libraries/src/agent/agent.graph.insert.service.ts b/libraries/nestjs-libraries/src/agent/agent.graph.insert.service.tsnew file mode 100644index 000000000..a92757658--- /dev/null+++ b/libraries/nestjs-libraries/src/agent/agent.graph.insert.service.ts@@ -0,0 +1,138 @@+import { Injectable } from '@nestjs/common';+import { BaseMessage, HumanMessage } from '@langchain/core/messages';+import { END, START, StateGraph } from '@langchain/langgraph';+import { ChatOpenAI } from '@langchain/openai';+import { ChatPromptTemplate } from '@langchain/core/prompts';+import { agentCategories } from '@gitroom/nestjs-libraries/agent/agent.categories';+import { z } from 'zod';+import { agentTopics } from '@gitroom/nestjs-libraries/agent/agent.topics';+import { PostsService } from '@gitroom/nestjs-libraries/database/prisma/posts/posts.service';++const model = new ChatOpenAI({+ apiKey: process.env.OPENAI_API_KEY,+ model: 'gpt-4o-2024-08-06',+ temperature: 0,+});++interface WorkflowChannelsState {+ messages: BaseMessage[];+ topic?: string;+ category: string;+ hook?: string;+ content?: string;+}++const category = z.object({+ category: z.string().describe('The category for the post'),+});++const topic = z.object({+ topic: z.string().describe('The topic of the post'),+});++const hook = z.object({+ hook: z.string().describe('The hook of the post'),+});++@Injectable()+export class AgentGraphInsertService {+ constructor(+ private _postsService: PostsService,+ ) {+ }+ static state = () =>+ new StateGraph<WorkflowChannelsState>({+ channels: {+ messages: {+ reducer: (currentState, updateValue) =>+ currentState.concat(updateValue),+ default: () => [],+ },+ topic: null,+ category: null,+ hook: null,+ content: null,+ },+ });++ async findCategory(state: WorkflowChannelsState) {+ const { messages } = state;+ const structuredOutput = model.withStructuredOutput(category);+ return ChatPromptTemplate.fromTemplate(+ `+You are an assistant that get a social media post and categorize it into to one from the following categories:+{categories}+Here is the post:+{post}+ `+ )+ .pipe(structuredOutput)+ .invoke({+ post: messages[0].content,+ categories: agentCategories.join(', '),+ });+ }++ findTopic(state: WorkflowChannelsState) {+ const { messages } = state;+ const structuredOutput = model.withStructuredOutput(topic);+ return ChatPromptTemplate.fromTemplate(+ `+You are an assistant that get a social media post and categorize it into one of the following topics:+{topics}+Here is the post:+{post}+ `+ )+ .pipe(structuredOutput)+ .invoke({+ post: messages[0].content,+ topics: agentTopics.join(', '),+ });+ }++ findHook(state: WorkflowChannelsState) {+ const { messages } = state;+ const structuredOutput = model.withStructuredOutput(hook);+ return ChatPromptTemplate.fromTemplate(+ `+You are an assistant that get a social media post and extract the hook, the hook is usually the first or second of both sentence of the post, but can be in a different place, make sure you don't change the wording of the post use the exact text:+{post}+ `+ )+ .pipe(structuredOutput)+ .invoke({+ post: messages[0].content,+ });+ }++ async savePost(state: WorkflowChannelsState) {+ await this._postsService.createPopularPosts({+ category: state.category,+ topic: state.topic!,+ hook: state.hook!,+ content: state.messages[0].content! as string+ });++ return {};+ }++ newPost(post: string) {+ const state = AgentGraphInsertService.state();+ const workflow = state+ .addNode('find-category', this.findCategory)+ .addNode('find-topic', this.findTopic)+ .addNode('find-hook', this.findHook)+ .addNode('save-post', this.savePost.bind(this))+ .addEdge(START, 'find-category')+ .addEdge('find-category', 'find-topic')+ .addEdge('find-topic', 'find-hook')+ .addEdge('find-hook', 'save-post')+ .addEdge('save-post', END);++ const app = workflow.compile();+ return app.invoke({+ messages: [new HumanMessage(post)],+ });+ }+}diff --git a/libraries/nestjs-libraries/src/agent/agent.graph.service.ts b/libraries/nestjs-libraries/src/agent/agent.graph.service.tsnew file mode 100644index 000000000..e6c72f790--- /dev/null+++ b/libraries/nestjs-libraries/src/agent/agent.graph.service.ts@@ -0,0 +1,419 @@+import { Injectable } from '@nestjs/common';+import {+ BaseMessage,+ HumanMessage,+ ToolMessage,+} from '@langchain/core/messages';+import { END, START, StateGraph } from '@langchain/langgraph';+import { ChatOpenAI, DallEAPIWrapper } from '@langchain/openai';+import { TavilySearchResults } from '@langchain/community/tools/tavily_search';+import { ToolNode } from '@langchain/langgraph/prebuilt';+import { ChatPromptTemplate } from '@langchain/core/prompts';+import dayjs from 'dayjs';+import { PostsService } from '@gitroom/nestjs-libraries/database/prisma/posts/posts.service';+import { z } from 'zod';+import { MediaService } from '@gitroom/nestjs-libraries/database/prisma/media/media.service';+import { UploadFactory } from '@gitroom/nestjs-libraries/upload/upload.factory';+import { GeneratorDto } from '@gitroom/nestjs-libraries/dtos/generator/generator.dto';+import { IntegrationService } from '@gitroom/nestjs-libraries/database/prisma/integrations/integration.service';++const tools = [new TavilySearchResults({ maxResults: 3 })];+const toolNode = new ToolNode(tools);++const model = new ChatOpenAI({+ apiKey: process.env.OPENAI_API_KEY,+ model: 'gpt-4o-2024-08-06',+ temperature: 0.7,+});++const dalle = new DallEAPIWrapper({+ apiKey: process.env.OPENAI_API_KEY,+ model: 'dall-e-3',+});++interface WorkflowChannelsState {+ messages: BaseMessage[];+ orgId: string;+ question: string;+ hook?: string;+ fresearch?: string;+ category?: string;+ topic?: string;+ date?: string;+ format: 'one_short' | 'one_long' | 'thread_short' | 'thread_long';+ tone: 'personal' | 'company';+ content?: {+ content: string;+ website?: string;+ prompt?: string;+ image?: string;+ }[];+ isPicture?: boolean;+ popularPosts?: { content: string; hook: string }[];+}++const category = z.object({+ category: z.string().describe('The category for the post'),+});++const topic = z.object({+ topic: z.string().describe('The topic for the post'),+});++const hook = z.object({+ hook: z+ .string()+ .describe(+ 'Hook for the new post, don\'t take it from "the request of the user"'+ ),+});++const contentZod = (+ isPicture: boolean,+ format: 'one_short' | 'one_long' | 'thread_short' | 'thread_long'+) => {+ const content = z.object({+ content: z.string().describe('Content for the new post'),+ website: z+ .string()+ .optional()+ .describe(+ "Website for the new post if exists, If one of the post present a brand, website link must be to the root domain of the brand or don't include it, website url should contain the brand name"+ ),+ ...(isPicture+ ? {+ prompt: z+ .string()+ .describe(+ "Prompt to generate a picture for this post later, make sure it doesn't contain brand names and make it very descriptive in terms of style"+ ),+ }+ : {}),+ });++ return z.object({+ content:+ format === 'one_short' || format === 'one_long'+ ? content+ : z.array(content).min(2).describe(`Content for the new post`),+ });+};++@Injectable()+export class AgentGraphService {+ private storage = UploadFactory.createStorage();+ constructor(+ private _postsService: PostsService,+ private _mediaService: MediaService+ ) {}+ static state = () =>+ new StateGraph<WorkflowChannelsState>({+ channels: {+ messages: {+ reducer: (currentState, updateValue) =>+ currentState.concat(updateValue),+ default: () => [],+ },+ fresearch: null,+ format: null,+ tone: null,+ question: null,+ orgId: null,+ hook: null,+ content: null,+ date: null,+ category: null,+ popularPosts: null,+ topic: null,+ isPicture: null,+ },+ });++ async startCall(state: WorkflowChannelsState) {+ const runTools = model.bindTools(tools);+ const response = await ChatPromptTemplate.fromTemplate(+ `+ Today is ${dayjs().format()}, You are an assistant that gets a social media post or requests for a social media post.+ You research should be on the most possible recent data.+ You concat the text of the request together with an internet research based on the text.+ {text}+ `+ )+ .pipe(runTools)+ .invoke({+ text: state.messages[state.messages.length - 1].content,+ });++ return { messages: [response] };+ }++ async saveResearch(state: WorkflowChannelsState) {+ const content = state.messages.filter((f) => f instanceof ToolMessage);+ return { fresearch: content };+ }++ async findCategories(state: WorkflowChannelsState) {+ const allCategories = await this._postsService.findAllExistingCategories();+ const structuredOutput = model.withStructuredOutput(category);+ const { category: outputCategory } = await ChatPromptTemplate.fromTemplate(+ `+ You are an assistant that gets a text that will be later summarized into a social media post+ and classify it to one of the following categories: {categories}+ text: {text}+ `+ )+ .pipe(structuredOutput)+ .invoke({+ categories: allCategories.map((p) => p.category).join(', '),+ text: state.fresearch,+ });++ return {+ category: outputCategory,+ };+ }++ async findTopic(state: WorkflowChannelsState) {+ const allTopics = await this._postsService.findAllExistingTopicsOfCategory(+ state?.category!+ );+ if (allTopics.length === 0) {+ return { topic: null };+ }++ const structuredOutput = model.withStructuredOutput(topic);+ const { topic: outputTopic } = await ChatPromptTemplate.fromTemplate(+ `+ You are an assistant that gets a text that will be later summarized into a social media post+ and classify it to one of the following topics: {topics}+ text: {text}+ `+ )+ .pipe(structuredOutput)+ .invoke({+ topics: allTopics.map((p) => p.topic).join(', '),+ text: state.fresearch,+ });++ return {+ topic: outputTopic,+ };+ }++ async findPopularPosts(state: WorkflowChannelsState) {+ const popularPosts = await this._postsService.findPopularPosts(+ state.category!,+ state.topic+ );+ return { popularPosts };+ }++ async generateHook(state: WorkflowChannelsState) {+ const structuredOutput = model.withStructuredOutput(hook);+ const { hook: outputHook } = await ChatPromptTemplate.fromTemplate(+ `+ You are an assistant that gets content for a social media post, and generate only the hook.+ The hook is the 1-2 sentences of the post that will be used to grab the attention of the reader.+ You will be provided existing hooks you should use as inspiration.+ - Avoid weird hook that starts with "Discover the secret...", "The best...", "The most...", "The top..."+ - Make sure it sounds ${state.tone}+ - Use ${state.tone === 'personal' ? '1st' : '3rd'} person mode+ - Make sure it's engaging+ - Don't be cringy+ - Use simple english+ - Make sure you add "\n" between the lines+ - Don't take the hook from "request of the user"++ <!-- BEGIN request of the user -->+ {request}+ <!-- END request of the user -->++ <!-- BEGIN existing hooks -->+ {hooks}+ <!-- END existing hooks -->++ <!-- BEGIN current content -->+ {text}+ <!-- END current content -->++ `+ )+ .pipe(structuredOutput)+ .invoke({+ request: state.messages[0].content,+ hooks: state.popularPosts!.map((p) => p.hook).join('\n'),+ text: state.fresearch,+ });++ return {+ hook: outputHook,+ };+ }++ async generateContent(state: WorkflowChannelsState) {+ const structuredOutput = model.withStructuredOutput(+ contentZod(!!state.isPicture, state.format)+ );+ const { content: outputContent } = await ChatPromptTemplate.fromTemplate(+ `+ You are an assistant that gets existing hook of a social media, content and generate only the content.+ - Don't add any hashtags+ - Make sure it sounds ${state.tone}+ - Use ${state.tone === 'personal' ? '1st' : '3rd'} person mode+ - ${+ state.format === 'one_short' || state.format === 'thread_short'+ ? 'Post should be maximum 200 chars to fit twitter'+ : 'Post should be long'+ }+ - ${+ state.format === 'one_short' || state.format === 'one_long'+ ? 'Post should have only 1 item'+ : 'Post should have minimum 2 items'+ }+ - Use the hook as inspiration+ - Make sure it's engaging+ - Don't be cringy+ - Use simple english+ - The Content should not contain the hook+ - Try to put some call to action at the end of the post+ - Make sure you add "\n" between the lines+ - Add "\n" after every "."++ Hook:+ {hook}++ User request:+ {request}++ current content information:+ {information}+ `+ )+ .pipe(structuredOutput)+ .invoke({+ hook: state.hook,+ request: state.messages[0].content,+ information: state.fresearch,+ });++ return {+ content: outputContent,+ };+ }++ async fixArray(state: WorkflowChannelsState) {+ if (state.format === 'one_short' || state.format === 'one_long') {+ return {+ content: [state.content],+ };+ }++ return {};+ }++ async generatePictures(state: WorkflowChannelsState) {+ if (!state.isPicture) {+ return {};+ }++ const newContent = await Promise.all(+ (state.content || []).map(async (p) => {+ const image = await dalle.invoke(p.prompt!);+ return {+ ...p,+ image,+ };+ })+ );++ return {+ content: newContent,+ };+ }++ async uploadPictures(state: WorkflowChannelsState) {+ const all = await Promise.all(+ (state.content || []).map(async (p) => {+ if (p.image) {+ const upload = await this.storage.uploadSimple(p.image);+ const name = upload.split('/').pop()!;+ const uploadWithId = await this._mediaService.saveFile(+ state.orgId,+ name,+ upload+ );++ return {+ ...p,+ image: uploadWithId,+ };+ }++ return p;+ })+ );++ return { content: all };+ }++ async isGeneratePicture(state: WorkflowChannelsState) {+ if (state.isPicture) {+ return 'generate-picture';+ }++ return 'post-time';+ }++ async postDateTime(state: WorkflowChannelsState) {+ return { date: await this._postsService.findFreeDateTime(state.orgId) };+ }++ start(orgId: string, body: GeneratorDto) {+ const state = AgentGraphService.state();+ const workflow = state+ .addNode('agent', this.startCall.bind(this))+ .addNode('research', toolNode)+ .addNode('save-research', this.saveResearch.bind(this))+ .addNode('find-category', this.findCategories.bind(this))+ .addNode('find-topic', this.findTopic.bind(this))+ .addNode('find-popular-posts', this.findPopularPosts.bind(this))+ .addNode('generate-hook', this.generateHook.bind(this))+ .addNode('generate-content', this.generateContent.bind(this))+ .addNode('generate-content-fix', this.fixArray.bind(this))+ .addNode('generate-picture', this.generatePictures.bind(this))+ .addNode('upload-pictures', this.uploadPictures.bind(this))+ .addNode('post-time', this.postDateTime.bind(this))+ .addEdge(START, 'agent')+ .addEdge('agent', 'research')+ .addEdge('research', 'save-research')+ .addEdge('save-research', 'find-category')+ .addEdge('find-category', 'find-topic')+ .addEdge('find-topic', 'find-popular-posts')+ .addEdge('find-popular-posts', 'generate-hook')+ .addEdge('generate-hook', 'generate-content')+ .addEdge('generate-content', 'generate-content-fix')+ .addConditionalEdges(+ 'generate-content-fix',+ this.isGeneratePicture.bind(this)+ )+ .addEdge('generate-picture', 'upload-pictures')+ .addEdge('upload-pictures', 'post-time')+ .addEdge('post-time', END);++ const app = workflow.compile();++ return app.streamEvents(+ {+ messages: [new HumanMessage(body.research)],+ isPicture: body.isPicture,+ format: body.format,+ tone: body.tone,+ orgId,+ },+ {+ streamMode: 'values',+ version: 'v2',+ }+ );+ }+}diff --git a/libraries/nestjs-libraries/src/agent/agent.module.ts b/libraries/nestjs-libraries/src/agent/agent.module.tsnew file mode 100644index 000000000..c85b89f14--- /dev/null+++ b/libraries/nestjs-libraries/src/agent/agent.module.ts@@ -0,0 +1,12 @@+import { Global, Module } from '@nestjs/common';+import { AgentGraphService } from '@gitroom/nestjs-libraries/agent/agent.graph.service';+import { AgentGraphInsertService } from '@gitroom/nestjs-libraries/agent/agent.graph.insert.service';++@Global()+@Module({+ providers: [AgentGraphService, AgentGraphInsertService],+ get exports() {+ return this.providers;+ },+})+export class AgentModule {}diff --git a/libraries/nestjs-libraries/src/agent/agent.topics.ts b/libraries/nestjs-libraries/src/agent/agent.topics.tsnew file mode 100644index 000000000..80900d562--- /dev/null+++ b/libraries/nestjs-libraries/src/agent/agent.topics.ts@@ -0,0 +1,82 @@+export const agentTopics = [+ 'Business',+ 'Marketing',+ 'Finance',+ 'Startups',+ 'Networking',+ 'Leadership',+ 'Strategy',+ 'Branding',+ 'Analytics',+ 'Growth',+ 'Drawing',+ 'Painting',+ 'Design',+ 'Photography',+ 'Writing',+ 'Sculpting',+ 'Animation',+ 'Sketching',+ 'Crafting',+ 'Calligraphy',+ 'Mindset',+ 'Productivity',+ 'Motivation',+ 'Education',+ 'Learning',+ 'Skills',+ 'Success',+ 'Wellness',+ 'Goals',+ 'Inspiration',+ 'Fashion',+ 'Travel',+ 'Food',+ 'Fitness',+ 'Health',+ 'Beauty',+ 'Home',+ 'Decor',+ 'Hobbies',+ 'Parenting',+ 'Tech',+ 'Gadgets',+ 'AI',+ 'Coding',+ 'Software',+ 'Innovation',+ 'Apps',+ 'Gaming',+ 'Robotics',+ 'Security',+ 'Music',+ 'Movies',+ 'Sports',+ 'Books',+ 'Theater',+ 'Comedy',+ 'Dance',+ 'Celebrities',+ 'Culture',+ 'Gaming',+ 'Environment',+ 'Equality',+ 'Activism',+ 'Justice',+ 'Diversity',+ 'Sustainability',+ 'Inclusion',+ 'Awareness',+ 'Charity',+ 'Peace',+ 'Holidays',+ 'Festivities',+ 'Seasons',+ 'Trends',+ 'Celebrations',+ 'Anniversaries',+ 'Milestones',+ 'Memories',+ 'Promotions',+ 'Updates',+];diff --git a/libraries/nestjs-libraries/src/database/prisma/integrations/integration.repository.ts b/libraries/nestjs-libraries/src/database/prisma/integrations/integration.repository.tsindex 1ee7c2af2..79fb06eba 100644--- a/libraries/nestjs-libraries/src/database/prisma/integrations/integration.repository.ts+++ b/libraries/nestjs-libraries/src/database/prisma/integrations/integration.repository.ts@@ -39,8 +39,8 @@ export class IntegrationRepository {id: plugId,},include: {- integration: true- }+ integration: true,+ },});}@@ -486,4 +486,17 @@ export class IntegrationRepository {})),});}++ async getPostingTimes(orgId: string) {+ return this._integration.model.integration.findMany({+ where: {+ organizationId: orgId,+ disabled: false,+ deletedAt: null,+ },+ select: {+ postingTimes: true,+ },+ })+ }}diff --git a/libraries/nestjs-libraries/src/database/prisma/integrations/integration.service.ts b/libraries/nestjs-libraries/src/database/prisma/integrations/integration.service.tsindex ae4cccb01..74287a972 100644--- a/libraries/nestjs-libraries/src/database/prisma/integrations/integration.service.ts+++ b/libraries/nestjs-libraries/src/database/prisma/integrations/integration.service.ts@@ -19,7 +19,9 @@ import { IntegrationTimeDto } from '@gitroom/nestjs-libraries/dtos/integrations/import { UploadFactory } from '@gitroom/nestjs-libraries/upload/upload.factory';import { PlugDto } from '@gitroom/nestjs-libraries/dtos/plugs/plug.dto';import { BullMqClient } from '@gitroom/nestjs-libraries/bull-mq-transport-new/client';-import { difference } from 'lodash';+import { difference, uniq } from 'lodash';+import utc from 'dayjs/plugin/utc';+dayjs.extend(utc);@Injectable()export class IntegrationService {@@ -515,4 +517,16 @@ export class IntegrationService {const loadOnlyIds = exisingData.map((p) => p.value);return difference(id, loadOnlyIds);}++ async findFreeDateTime(orgId: string): Promise<number[]> {+ const findTimes = await this._integrationRepository.getPostingTimes(orgId);+ return uniq(+ findTimes.reduce((all: any, current: any) => {+ return [+ ...all,+ ...JSON.parse(current.postingTimes).map((p: { time: number }) => p.time),+ ];+ }, [] as number[])+ );+ }}diff --git a/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts b/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.tsindex d213a6f47..3833f1676 100644--- a/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts+++ b/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts@@ -13,7 +13,10 @@ dayjs.extend(weekOfYear);@Injectable()export class PostsRepository {- constructor(private _post: PrismaRepository<'post'>) {}+ constructor(+ private _post: PrismaRepository<'post'>,+ private _popularPosts: PrismaRepository<'popularPosts'>+ ) {}getOldPosts(orgId: string, date: string) {return this._post.model.post.findMany({@@ -387,4 +390,84 @@ export class PostsRepository {},});}++ findAllExistingCategories() {+ return this._popularPosts.model.popularPosts.findMany({+ select: {+ category: true,+ },+ distinct: ['category'],+ });+ }++ findAllExistingTopicsOfCategory(category: string) {+ return this._popularPosts.model.popularPosts.findMany({+ where: {+ category,+ },+ select: {+ topic: true,+ },+ distinct: ['topic'],+ });+ }++ findPopularPosts(category: string, topic?: string) {+ return this._popularPosts.model.popularPosts.findMany({+ where: {+ category,+ ...(topic ? { topic } : {}),+ },+ select: {+ content: true,+ hook: true,+ },+ });+ }++ createPopularPosts(post: {+ category: string;+ topic: string;+ content: string;+ hook: string;+ }) {+ return this._popularPosts.model.popularPosts.create({+ data: {+ category: 'category',+ topic: 'topic',+ content: 'content',+ hook: 'hook',+ },+ });+ }++ async getPostsCountsByDates(+ orgId: string,+ times: number[],+ date: dayjs.Dayjs+ ) {+ const dates = await this._post.model.post.findMany({+ where: {+ deletedAt: null,+ organizationId: orgId,+ publishDate: {+ in: times.map((time) => {+ return date.clone().add(time, 'minutes').toDate();+ }),+ },+ },+ });++ return times.filter(+ (time) =>+ date.clone().add(time, 'minutes').isAfter(dayjs.utc()) &&+ !dates.find((dateFind) => {+ return (+ dayjs+ .utc(dateFind.publishDate)+ .diff(date.clone().startOf('day'), 'minutes') == time+ );+ })+ );+ }}diff --git a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.tsindex 33bcbb81a..e3e489720 100644--- a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts+++ b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts@@ -6,12 +6,9 @@ import { IntegrationManager } from '@gitroom/nestjs-libraries/integrations/integimport { Integration, Post, Media, From } from '@prisma/client';import { GetPostsDto } from '@gitroom/nestjs-libraries/dtos/posts/get.posts.dto';import { NotificationService } from '@gitroom/nestjs-libraries/database/prisma/notifications/notification.service';-import { capitalize, shuffle } from 'lodash';+import { capitalize, shuffle, uniq } from 'lodash';import { MessagesService } from '@gitroom/nestjs-libraries/database/prisma/marketplace/messages.service';import { StripeService } from '@gitroom/nestjs-libraries/services/stripe.service';-import { GeneratorDto } from '@gitroom/nestjs-libraries/dtos/generator/generator.dto';-import { ExtractContentService } from '@gitroom/nestjs-libraries/openai/extract.content.service';-import { OpenaiService } from '@gitroom/nestjs-libraries/openai/openai.service';import { CreateGeneratedPostsDto } from '@gitroom/nestjs-libraries/dtos/generator/create.generated.posts.dto';import { IntegrationService } from '@gitroom/nestjs-libraries/database/prisma/integrations/integration.service';import { makeId } from '@gitroom/nestjs-libraries/services/make.is';@@ -22,6 +19,8 @@ import {import { BullMqClient } from '@gitroom/nestjs-libraries/bull-mq-transport-new/client';import { timer } from '@gitroom/helpers/utils/timer';import { AuthTokenDetails } from '@gitroom/nestjs-libraries/integrations/social/social.integrations.interface';+import utc from 'dayjs/plugin/utc';+dayjs.extend(utc);type PostWithConditionals = Post & {integration?: Integration;@@ -37,8 +36,6 @@ export class PostsService {private _notificationService: NotificationService,private _messagesService: MessagesService,private _stripeService: StripeService,- private _extractContentService: ExtractContentService,- private _openAiService: OpenaiService,private _integrationService: IntegrationService) {}@@ -606,26 +603,6 @@ export class PostsService {}}- async loadPostContent(postId: string) {- const post = await this._postRepository.getPostById(postId);- if (!post) {- return '';- }-- return post.content;- }-- async generatePosts(orgId: string, body: GeneratorDto) {- const content = body.url- ? await this._extractContentService.extractContent(body.url)- : await this.loadPostContent(body.post);-- const value = body.url- ? await this._openAiService.extractWebsiteText(content!)- : await this._openAiService.generatePosts(content!);- return { list: value };- }-async generatePostsDraft(orgId: string, body: CreateGeneratedPostsDto) {const getAllIntegrations = (await this._integrationService.getIntegrationsList(orgId)@@ -702,4 +679,59 @@ export class PostsService {}}}++ findAllExistingCategories() {+ return this._postRepository.findAllExistingCategories();+ }++ findAllExistingTopicsOfCategory(category: string) {+ return this._postRepository.findAllExistingTopicsOfCategory(category);+ }++ findPopularPosts(category: string, topic?: string) {+ return this._postRepository.findPopularPosts(category, topic);+ }++ async findFreeDateTime(orgId: string) {+ const findTimes = await this._integrationService.findFreeDateTime(orgId);+ return this.findFreeDateTimeRecursive(+ orgId,+ findTimes,+ dayjs.utc().startOf('day')+ );+ }++ async createPopularPosts(post: {+ category: string;+ topic: string;+ content: string;+ hook: string;+ }) {+ return this._postRepository.createPopularPosts(post);+ }++ private async findFreeDateTimeRecursive(+ orgId: string,+ times: number[],+ date: dayjs.Dayjs+ ): Promise<string> {+ const list = await this._postRepository.getPostsCountsByDates(+ orgId,+ times,+ date+ );++ if (!list.length) {+ return this.findFreeDateTimeRecursive(orgId, times, date.add(1, 'day'));+ }++ const num = list.reduce<null | number>((prev, curr) => {+ if (prev === null || prev > curr) {+ return curr;+ }+ return prev;+ }, null) as number;++ return date.clone().add(num, 'minutes').format('YYYY-MM-DDTHH:mm:00');+ }}diff --git a/libraries/nestjs-libraries/src/database/prisma/schema.prisma b/libraries/nestjs-libraries/src/database/prisma/schema.prismaindex 460b63637..ab71dc3d7 100644--- a/libraries/nestjs-libraries/src/database/prisma/schema.prisma+++ b/libraries/nestjs-libraries/src/database/prisma/schema.prisma@@ -486,6 +486,16 @@ model ExisingPlugData {@@unique([integrationId, methodName, value])}+model PopularPosts {+ id String @id @default(uuid())+ category String+ topic String+ content String+ hook String+ createdAt DateTime @default(now())+ updatedAt DateTime @updatedAt+}+enum OrderStatus {PENDINGACCEPTEDdiff --git a/libraries/nestjs-libraries/src/dtos/generator/generator.dto.ts b/libraries/nestjs-libraries/src/dtos/generator/generator.dto.tsindex 2921ac87d..c2016dcef 100644--- a/libraries/nestjs-libraries/src/dtos/generator/generator.dto.ts+++ b/libraries/nestjs-libraries/src/dtos/generator/generator.dto.ts@@ -1,24 +1,20 @@import {- IsDefined,- IsInt,- IsString,- IsUrl,- ValidateIf,- ValidateNested,+ IsBoolean, IsIn, IsString, MinLength} from 'class-validator';export class GeneratorDto {@IsString()- @ValidateIf((o) => !o.post)- @IsUrl(- {},- {- message: 'Invalid URL',- }- )- url: string;+ @MinLength(10)+ research: string;++ @IsBoolean()+ isPicture: boolean;++ @IsString()+ @IsIn(['one_short', 'one_long', 'thread_short', 'thread_long'])+ format: 'one_short' | 'one_long' | 'thread_short' | 'thread_long';- @ValidateIf((o) => !o.url)@IsString()- post: string;+ @IsIn(['personal', 'company'])+ tone: 'personal' | 'company';}diff --git a/libraries/react-shared-libraries/src/form/textarea.tsx b/libraries/react-shared-libraries/src/form/textarea.tsxindex 1a56eb864..570c8a63f 100644--- a/libraries/react-shared-libraries/src/form/textarea.tsx+++ b/libraries/react-shared-libraries/src/form/textarea.tsx@@ -16,7 +16,7 @@ export const Textarea: FC<DetailedHTMLProps<InputHTMLAttributes<HTMLTextAreaElem}, [form?.formState?.errors?.[props?.name!]?.message, error]);return (- <div className="flex flex-col gap-[6px]">+ <div className={clsx("flex flex-col gap-[6px]", props.disabled && 'opacity-50')}><div className={`${interClass} text-[14px]`}>{label}</div><textarea {...disableForm ? {} : form.register(props.name)} className={clsx("bg-input min-h-[150px] p-[16px] outline-none border-fifth border rounded-[4px] text-inputText placeholder-inputText", className)} {...rest} /><div className="text-red-400 text-[12px]">{err || <> </>}</div>diff --git a/package-lock.json b/package-lock.jsonindex 51e8a3256..128d7b556 100644--- a/package-lock.json+++ b/package-lock.json@@ -19,6 +19,10 @@"@copilotkit/react-ui": "^1.4.7","@copilotkit/runtime": "^1.4.7","@hookform/resolvers": "^3.3.4",+ "@langchain/community": "^0.3.19",+ "@langchain/core": "^0.3.26",+ "@langchain/langgraph": "^0.2.34",+ "@langchain/openai": "^0.3.16","@mantine/core": "^5.10.5","@mantine/dates": "^5.10.5","@mantine/hooks": "^5.10.5",@@ -69,6 +73,8 @@"@uppy/react": "^4.0.2","@uppy/status-bar": "^4.0.3","@uppy/xhr-upload": "^4.1.0",+ "ai": "^4.0.22",+ "algoliasearch": "^5.18.0","array-move": "^4.0.0","axios": "^1.7.7","bcrypt": "^5.1.1",@@ -135,7 +141,8 @@"utf-8-validate": "^5.0.10","uuid": "^10.0.0","yargs": "^17.7.2",- "yup": "^1.4.0"+ "yup": "^1.4.0",+ "zod": "^3.24.1"},"devDependencies": {"@nestjs/schematics": "^10.0.1",@@ -205,6 +212,288 @@"resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.1.tgz","integrity": "sha512-12WGKBQzjUAI4ayyF4IAtfw2QR/IDoqk6jTddXDhtYTJF9ASmoE1zst7cVtP0aL/F1jUJL5r+JxKXKEgHNbEUQ=="},+ "node_modules/@ai-sdk/provider": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.0.3.tgz",+ "integrity": "sha512-WiuJEpHTrltOIzv3x2wx4gwksAHW0h6nK3SoDzjqCOJLu/2OJ1yASESTIX+f07ChFykHElVoP80Ol/fe9dw6tQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "json-schema": "^0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@ai-sdk/provider-utils": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-2.0.5.tgz",+ "integrity": "sha512-2M7vLhYN0ThGjNlzow7oO/lsL+DyMxvGMIYmVQvEYaCWhDzxH5dOp78VNjJIVwHzVLMbBDigX3rJuzAs853idw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.0.3",+ "eventsource-parser": "^3.0.0",+ "nanoid": "^3.3.8",+ "secure-json-parse": "^2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/provider-utils/node_modules/nanoid": {+ "version": "3.3.8",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",+ "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/@ai-sdk/react": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/@ai-sdk/react/-/react-1.0.7.tgz",+ "integrity": "sha512-j2/of4iCNq+r2Bjx0O9vdRhn5C/02t2Esenis71YtnsoynPz74eQlJ3N0RYYPheThiJes50yHdfdVdH9ulxs1A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider-utils": "2.0.5",+ "@ai-sdk/ui-utils": "1.0.6",+ "swr": "^2.2.5",+ "throttleit": "2.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "react": "^18 || ^19 || ^19.0.0-rc",+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "react": {+ "optional": true+ },+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/ui-utils": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/@ai-sdk/ui-utils/-/ui-utils-1.0.6.tgz",+ "integrity": "sha512-ZP6Vjj+VCnSPBIAvWAdKj2olQONJ/f4aZpkVCGkzprdhv8TjHwB6CTlXFS3zypuEGy4asg84dc1dvXKooQXFvg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.0.3",+ "@ai-sdk/provider-utils": "2.0.5",+ "zod-to-json-schema": "^3.23.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@algolia/client-abtesting": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/client-abtesting/-/client-abtesting-5.18.0.tgz",+ "integrity": "sha512-DLIrAukjsSrdMNNDx1ZTks72o4RH/1kOn8Wx5zZm8nnqFexG+JzY4SANnCNEjnFQPJTTvC+KpgiNW/CP2lumng==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/client-analytics": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-5.18.0.tgz",+ "integrity": "sha512-0VpGG2uQW+h2aejxbG8VbnMCQ9ary9/ot7OASXi6OjE0SRkYQ/+pkW+q09+IScif3pmsVVYggmlMPtAsmYWHng==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/client-common": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-5.18.0.tgz",+ "integrity": "sha512-X1WMSC+1ve2qlMsemyTF5bIjwipOT+m99Ng1Tyl36ZjQKTa54oajBKE0BrmM8LD8jGdtukAgkUhFoYOaRbMcmQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/client-insights": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/client-insights/-/client-insights-5.18.0.tgz",+ "integrity": "sha512-FAJRNANUOSs/FgYOJ/Njqp+YTe4TMz2GkeZtfsw1TMiA5mVNRS/nnMpxas9771aJz7KTEWvK9GwqPs0K6RMYWg==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/client-personalization": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-5.18.0.tgz",+ "integrity": "sha512-I2dc94Oiwic3SEbrRp8kvTZtYpJjGtg5y5XnqubgnA15AgX59YIY8frKsFG8SOH1n2rIhUClcuDkxYQNXJLg+w==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/client-query-suggestions": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/client-query-suggestions/-/client-query-suggestions-5.18.0.tgz",+ "integrity": "sha512-x6XKIQgKFTgK/bMasXhghoEjHhmgoP61pFPb9+TaUJ32aKOGc65b12usiGJ9A84yS73UDkXS452NjyP50Knh/g==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/client-search": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-5.18.0.tgz",+ "integrity": "sha512-qI3LcFsVgtvpsBGR7aNSJYxhsR+Zl46+958ODzg8aCxIcdxiK7QEVLMJMZAR57jGqW0Lg/vrjtuLFDMfSE53qA==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/ingestion": {+ "version": "1.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/ingestion/-/ingestion-1.18.0.tgz",+ "integrity": "sha512-bGvJg7HnGGm+XWYMDruZXWgMDPVt4yCbBqq8DM6EoaMBK71SYC4WMfIdJaw+ABqttjBhe6aKNRkWf/bbvYOGyw==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/monitoring": {+ "version": "1.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/monitoring/-/monitoring-1.18.0.tgz",+ "integrity": "sha512-lBssglINIeGIR+8KyzH05NAgAmn1BCrm5D2T6pMtr/8kbTHvvrm1Zvcltc5dKUQEFyyx3J5+MhNc7kfi8LdjVw==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/recommend": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/recommend/-/recommend-5.18.0.tgz",+ "integrity": "sha512-uSnkm0cdAuFwdMp4pGT5vHVQ84T6AYpTZ3I0b3k/M3wg4zXDhl3aCiY8NzokEyRLezz/kHLEEcgb/tTTobOYVw==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/requester-browser-xhr": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-5.18.0.tgz",+ "integrity": "sha512-1XFjW0C3pV0dS/9zXbV44cKI+QM4ZIz9cpatXpsjRlq6SUCpLID3DZHsXyE6sTb8IhyPaUjk78GEJT8/3hviqg==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/requester-fetch": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/requester-fetch/-/requester-fetch-5.18.0.tgz",+ "integrity": "sha512-0uodeNdAHz1YbzJh6C5xeQ4T6x5WGiUxUq3GOaT/R4njh5t78dq+Rb187elr7KtnjUmETVVuCvmEYaThfTHzNg==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/@algolia/requester-node-http": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-5.18.0.tgz",+ "integrity": "sha512-tZCqDrqJ2YE2I5ukCQrYN8oiF6u3JIdCxrtKq+eniuLkjkO78TKRnXrVcKZTmfFJyyDK8q47SfDcHzAA3nHi6w==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-common": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },"node_modules/@alloc/quick-lru": {"version": "5.2.0","resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",@@ -1245,16 +1534,6 @@}}},- "node_modules/@aws-sdk/util-utf8-browser": {- "version": "3.259.0",- "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz",- "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==",- "optional": true,- "peer": true,- "dependencies": {- "tslib": "^2.3.1"- }- },"node_modules/@aws-sdk/xml-builder": {"version": "3.709.0","resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.709.0.tgz",@@ -3286,44 +3565,6 @@"react": "^18 || ^19 || ^19.0.0-rc"}},- "node_modules/@copilotkit/runtime/node_modules/@aws-crypto/crc32": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-3.0.0.tgz",- "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==",- "optional": true,- "peer": true,- "dependencies": {- "@aws-crypto/util": "^3.0.0",- "@aws-sdk/types": "^3.222.0",- "tslib": "^1.11.1"- }- },- "node_modules/@copilotkit/runtime/node_modules/@aws-crypto/crc32/node_modules/tslib": {- "version": "1.14.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",- "optional": true,- "peer": true- },- "node_modules/@copilotkit/runtime/node_modules/@aws-crypto/util": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz",- "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==",- "optional": true,- "peer": true,- "dependencies": {- "@aws-sdk/types": "^3.222.0",- "@aws-sdk/util-utf8-browser": "^3.0.0",- "tslib": "^1.11.1"- }- },- "node_modules/@copilotkit/runtime/node_modules/@aws-crypto/util/node_modules/tslib": {- "version": "1.14.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",- "optional": true,- "peer": true- },"node_modules/@copilotkit/runtime/node_modules/@langchain/community": {"version": "0.0.53","resolved": "https://registry.npmjs.org/@langchain/community/-/community-0.0.53.tgz",@@ -3748,312 +3989,46 @@"uuid": "dist/bin/uuid"}},- "node_modules/@copilotkit/runtime/node_modules/@smithy/eventstream-codec": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-2.2.0.tgz",- "integrity": "sha512-8janZoJw85nJmQZc4L8TuePp2pk1nxLgkxIR0TUjKJ5Dkj5oelB9WtiSSGXCQvNsJl0VSTvK/2ueMXxvpa9GVw==",- "optional": true,- "peer": true,- "dependencies": {- "@aws-crypto/crc32": "3.0.0",- "@smithy/types": "^2.12.0",- "@smithy/util-hex-encoding": "^2.2.0",- "tslib": "^2.6.2"- }- },- "node_modules/@copilotkit/runtime/node_modules/@smithy/is-array-buffer": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",- "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",- "optional": true,- "peer": true,- "dependencies": {- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/@smithy/protocol-http": {- "version": "3.3.0",- "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.3.0.tgz",- "integrity": "sha512-Xy5XK1AFWW2nlY/biWZXu6/krgbaf2dg0q492D8M5qthsnU2H+UgFeZLbM76FnH7s6RO/xhQRkj+T6KBO3JzgQ==",- "optional": true,- "peer": true,- "dependencies": {- "@smithy/types": "^2.12.0",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/@smithy/signature-v4": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-2.3.0.tgz",- "integrity": "sha512-ui/NlpILU+6HAQBfJX8BBsDXuKSNrjTSuOYArRblcrErwKFutjrCNb/OExfVRyj9+26F9J+ZmfWT+fKWuDrH3Q==",- "optional": true,- "peer": true,- "dependencies": {- "@smithy/is-array-buffer": "^2.2.0",- "@smithy/types": "^2.12.0",- "@smithy/util-hex-encoding": "^2.2.0",- "@smithy/util-middleware": "^2.2.0",- "@smithy/util-uri-escape": "^2.2.0",- "@smithy/util-utf8": "^2.3.0",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/@smithy/types": {- "version": "2.12.0",- "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz",- "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==",- "optional": true,- "peer": true,- "dependencies": {- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/@smithy/util-buffer-from": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",- "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",- "optional": true,- "peer": true,- "dependencies": {- "@smithy/is-array-buffer": "^2.2.0",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/@smithy/util-hex-encoding": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-2.2.0.tgz",- "integrity": "sha512-7iKXR+/4TpLK194pVjKiasIyqMtTYJsgKgM242Y9uzt5dhHnUDvMNb+3xIhRJ9QhvqGii/5cRUt4fJn3dtXNHQ==",- "optional": true,- "peer": true,- "dependencies": {- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/@smithy/util-middleware": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-2.2.0.tgz",- "integrity": "sha512-L1qpleXf9QD6LwLCJ5jddGkgWyuSvWBkJwWAZ6kFkdifdso+sk3L3O1HdmPvCdnCK3IS4qWyPxev01QMnfHSBw==",- "optional": true,- "peer": true,- "dependencies": {- "@smithy/types": "^2.12.0",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/@smithy/util-uri-escape": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-2.2.0.tgz",- "integrity": "sha512-jtmJMyt1xMD/d8OtbVJ2gFZOSKc+ueYJZPW20ULW1GOp/q/YIM0wNh+u8ZFao9UaIGz4WoPW8hC64qlWLIfoDA==",- "optional": true,- "peer": true,- "dependencies": {- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/@smithy/util-utf8": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",- "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",- "optional": true,- "peer": true,- "dependencies": {- "@smithy/util-buffer-from": "^2.2.0",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/@types/uuid": {- "version": "10.0.0",- "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz",- "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ=="- },- "node_modules/@copilotkit/runtime/node_modules/agent-base": {- "version": "7.1.3",- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",- "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",- "optional": true,- "peer": true,- "engines": {- "node": ">= 14"- }- },- "node_modules/@copilotkit/runtime/node_modules/commander": {- "version": "10.0.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz",- "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==",- "engines": {- "node": ">=14"- }- },- "node_modules/@copilotkit/runtime/node_modules/gaxios": {- "version": "5.1.3",- "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-5.1.3.tgz",- "integrity": "sha512-95hVgBRgEIRQQQHIbnxBXeHbW4TqFk4ZDJW7wmVtvYar72FdhRIo1UGOLS2eRAKCPEdPBWu+M7+A33D9CdX9rA==",- "optional": true,- "peer": true,- "dependencies": {- "extend": "^3.0.2",- "https-proxy-agent": "^5.0.0",- "is-stream": "^2.0.0",- "node-fetch": "^2.6.9"- },- "engines": {- "node": ">=12"- }- },- "node_modules/@copilotkit/runtime/node_modules/gcp-metadata": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.3.0.tgz",- "integrity": "sha512-FNTkdNEnBdlqF2oatizolQqNANMrcqJt6AAYt99B3y1aLLC8Hc5IOBb+ZnnzllodEEf6xMBp6wRcBbc16fa65w==",- "optional": true,- "peer": true,- "dependencies": {- "gaxios": "^5.0.0",- "json-bigint": "^1.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/@copilotkit/runtime/node_modules/google-auth-library": {- "version": "8.9.0",- "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-8.9.0.tgz",- "integrity": "sha512-f7aQCJODJFmYWN6PeNKzgvy9LI2tYmXnzpNDHEjG5sDNPgGb2FXQyTBnXeSH+PAtpKESFD+LmHw3Ox3mN7e1Fg==",- "optional": true,- "peer": true,- "dependencies": {- "arrify": "^2.0.0",- "base64-js": "^1.3.0",- "ecdsa-sig-formatter": "^1.0.11",- "fast-text-encoding": "^1.0.0",- "gaxios": "^5.0.0",- "gcp-metadata": "^5.3.0",- "gtoken": "^6.1.0",- "jws": "^4.0.0",- "lru-cache": "^6.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/@copilotkit/runtime/node_modules/googleapis": {- "version": "126.0.1",- "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-126.0.1.tgz",- "integrity": "sha512-4N8LLi+hj6ytK3PhE52KcM8iSGhJjtXnCDYB4fp6l+GdLbYz4FoDmx074WqMbl7iYMDN87vqD/8drJkhxW92mQ==",- "optional": true,- "peer": true,- "dependencies": {- "google-auth-library": "^9.0.0",- "googleapis-common": "^7.0.0"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@copilotkit/runtime/node_modules/googleapis/node_modules/gaxios": {- "version": "6.7.1",- "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz",- "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==",- "optional": true,- "peer": true,- "dependencies": {- "extend": "^3.0.2",- "https-proxy-agent": "^7.0.1",- "is-stream": "^2.0.0",- "node-fetch": "^2.6.9",- "uuid": "^9.0.1"- },- "engines": {- "node": ">=14"- }- },- "node_modules/@copilotkit/runtime/node_modules/googleapis/node_modules/gcp-metadata": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.0.tgz",- "integrity": "sha512-Jh/AIwwgaxan+7ZUUmRLCjtchyDiqh4KjBJ5tW3plBZb5iL/BPcso8A5DlzeD9qlw0duCamnNdpFjxwaT0KyKg==",- "optional": true,- "peer": true,- "dependencies": {- "gaxios": "^6.0.0",- "json-bigint": "^1.0.0"- },- "engines": {- "node": ">=14"- }- },- "node_modules/@copilotkit/runtime/node_modules/googleapis/node_modules/google-auth-library": {- "version": "9.15.0",- "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.0.tgz",- "integrity": "sha512-7ccSEJFDFO7exFbO6NRyC+xH8/mZ1GZGG2xxx9iHxZWcjUjJpjWxIMw3cofAKcueZ6DATiukmmprD7yavQHOyQ==",- "optional": true,- "peer": true,- "dependencies": {- "base64-js": "^1.3.0",- "ecdsa-sig-formatter": "^1.0.11",- "gaxios": "^6.1.1",- "gcp-metadata": "^6.1.0",- "gtoken": "^7.0.0",- "jws": "^4.0.0"- },- "engines": {- "node": ">=14"- }- },- "node_modules/@copilotkit/runtime/node_modules/googleapis/node_modules/gtoken": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz",- "integrity": "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==",- "optional": true,- "peer": true,+ "node_modules/@copilotkit/runtime/node_modules/@langchain/openai": {+ "version": "0.0.28",+ "resolved": "https://registry.npmjs.org/@langchain/openai/-/openai-0.0.28.tgz",+ "integrity": "sha512-2s1RA3/eAnz4ahdzsMPBna9hfAqpFNlWdHiPxVGZ5yrhXsbLWWoPcF+22LCk9t0HJKtazi2GCIWc0HVXH9Abig==",+ "license": "MIT","dependencies": {- "gaxios": "^6.0.0",- "jws": "^4.0.0"+ "@langchain/core": "~0.1.56",+ "js-tiktoken": "^1.0.7",+ "openai": "^4.32.1",+ "zod": "^3.22.4",+ "zod-to-json-schema": "^3.22.3"},"engines": {- "node": ">=14.0.0"+ "node": ">=18"}},- "node_modules/@copilotkit/runtime/node_modules/googleapis/node_modules/https-proxy-agent": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",- "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",- "optional": true,- "peer": true,+ "node_modules/@copilotkit/runtime/node_modules/@langchain/openai/node_modules/@langchain/core": {+ "version": "0.1.63",+ "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.1.63.tgz",+ "integrity": "sha512-+fjyYi8wy6x1P+Ee1RWfIIEyxd9Ee9jksEwvrggPwwI/p45kIDTdYTblXsM13y4mNWTiACyLSdbwnPaxxdoz+w==",+ "license": "MIT","dependencies": {- "agent-base": "^7.1.2",- "debug": "4"+ "ansi-styles": "^5.0.0",+ "camelcase": "6",+ "decamelize": "1.2.0",+ "js-tiktoken": "^1.0.12",+ "langsmith": "~0.1.7",+ "ml-distance": "^4.0.0",+ "mustache": "^4.2.0",+ "p-queue": "^6.6.2",+ "p-retry": "4",+ "uuid": "^9.0.0",+ "zod": "^3.22.4",+ "zod-to-json-schema": "^3.22.3"},"engines": {- "node": ">= 14"+ "node": ">=18"}},- "node_modules/@copilotkit/runtime/node_modules/googleapis/node_modules/uuid": {+ "node_modules/@copilotkit/runtime/node_modules/@langchain/openai/node_modules/uuid": {"version": "9.0.1","resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz","integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",@@ -4061,38 +4036,22 @@"https://github.com/sponsors/broofa","https://github.com/sponsors/ctavan"],- "optional": true,- "peer": true,+ "license": "MIT","bin": {"uuid": "dist/bin/uuid"}},- "node_modules/@copilotkit/runtime/node_modules/gtoken": {- "version": "6.1.2",- "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-6.1.2.tgz",- "integrity": "sha512-4ccGpzz7YAr7lxrT2neugmXQ3hP9ho2gcaityLVkiUecAiwiy60Ii8gRbZeOsXV19fYaRjgBSshs8kXw+NKCPQ==",- "optional": true,- "peer": true,- "dependencies": {- "gaxios": "^5.0.1",- "google-p12-pem": "^4.0.0",- "jws": "^4.0.0"- },- "engines": {- "node": ">=12.0.0"- }+ "node_modules/@copilotkit/runtime/node_modules/@types/uuid": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz",+ "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ=="},- "node_modules/@copilotkit/runtime/node_modules/is-stream": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",- "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",- "optional": true,- "peer": true,+ "node_modules/@copilotkit/runtime/node_modules/commander": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz",+ "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==","engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=14"}},"node_modules/@copilotkit/runtime/node_modules/langsmith": {@@ -4116,19 +4075,6 @@}}},- "node_modules/@copilotkit/runtime/node_modules/lru-cache": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",- "optional": true,- "peer": true,- "dependencies": {- "yallist": "^4.0.0"- },- "engines": {- "node": ">=10"- }- },"node_modules/@copilotkit/runtime/node_modules/reflect-metadata": {"version": "0.2.2","resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz",@@ -4145,13 +4091,6 @@"node": ">=10"}},- "node_modules/@copilotkit/runtime/node_modules/yallist": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "optional": true,- "peer": true- },"node_modules/@copilotkit/shared": {"version": "1.4.7","resolved": "https://registry.npmjs.org/@copilotkit/shared/-/shared-1.4.7.tgz",@@ -4389,6 +4328,7 @@"cpu": ["ppc64"],+ "dev": true,"optional": true,"os": ["aix"@@ -4404,6 +4344,7 @@"cpu": ["arm"],+ "dev": true,"optional": true,"os": ["android"@@ -4419,6 +4360,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["android"@@ -4434,6 +4376,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["android"@@ -4449,6 +4392,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["darwin"@@ -4464,6 +4408,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["darwin"@@ -4479,6 +4424,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["freebsd"@@ -4494,6 +4440,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["freebsd"@@ -4509,6 +4456,7 @@"cpu": ["arm"],+ "dev": true,"optional": true,"os": ["linux"@@ -4524,6 +4472,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["linux"@@ -4539,6 +4488,7 @@"cpu": ["ia32"],+ "dev": true,"optional": true,"os": ["linux"@@ -4554,6 +4504,7 @@"cpu": ["loong64"],+ "dev": true,"optional": true,"os": ["linux"@@ -4569,6 +4520,7 @@"cpu": ["mips64el"],+ "dev": true,"optional": true,"os": ["linux"@@ -4584,6 +4536,7 @@"cpu": ["ppc64"],+ "dev": true,"optional": true,"os": ["linux"@@ -4599,6 +4552,7 @@"cpu": ["riscv64"],+ "dev": true,"optional": true,"os": ["linux"@@ -4614,6 +4568,7 @@"cpu": ["s390x"],+ "dev": true,"optional": true,"os": ["linux"@@ -4629,6 +4584,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["linux"@@ -4644,6 +4600,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["netbsd"@@ -4659,6 +4616,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["openbsd"@@ -4674,6 +4632,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["sunos"@@ -4689,6 +4648,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["win32"@@ -4704,6 +4664,7 @@"cpu": ["ia32"],+ "dev": true,"optional": true,"os": ["win32"@@ -4719,6 +4680,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["win32"@@ -4748,6 +4710,7 @@"version": "4.12.1","resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz","integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",+ "dev": true,"engines": {"node": "^12.0.0 || ^14.0.0 || >=16.0.0"}@@ -4756,6 +4719,7 @@"version": "2.1.4","resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz","integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",+ "dev": true,"dependencies": {"ajv": "^6.12.4","debug": "^4.3.2",@@ -4778,6 +4742,7 @@"version": "6.12.6","resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz","integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "dev": true,"dependencies": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",@@ -4793,6 +4758,7 @@"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz","integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,"dependencies": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -4802,6 +4768,7 @@"version": "13.24.0","resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz","integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",+ "dev": true,"dependencies": {"type-fest": "^0.20.2"},@@ -4815,12 +4782,14 @@"node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": {"version": "0.4.1","resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true},"node_modules/@eslint/eslintrc/node_modules/minimatch": {"version": "3.1.2","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz","integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,"dependencies": {"brace-expansion": "^1.1.7"},@@ -4832,6 +4801,7 @@"version": "0.20.2","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz","integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",+ "dev": true,"engines": {"node": ">=10"},@@ -4843,6 +4813,7 @@"version": "8.57.0","resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz","integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==",+ "dev": true,"engines": {"node": "^12.22.0 || ^14.17.0 || >=16.0.0"}@@ -5036,6 +5007,7 @@"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz","integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==","deprecated": "Use @eslint/config-array instead",+ "dev": true,"dependencies": {"@humanwhocodes/object-schema": "^2.0.2","debug": "^4.3.1",@@ -5049,6 +5021,7 @@"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz","integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,"dependencies": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -5058,6 +5031,7 @@"version": "3.1.2","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz","integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,"dependencies": {"brace-expansion": "^1.1.7"},@@ -5069,6 +5043,7 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz","integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",+ "dev": true,"engines": {"node": ">=12.22"},@@ -5081,7 +5056,8 @@"version": "2.0.3","resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz","integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",- "deprecated": "Use @eslint/object-schema instead"+ "deprecated": "Use @eslint/object-schema instead",+ "dev": true},"node_modules/@icons/material": {"version": "0.2.4",@@ -5970,10 +5946,521 @@"resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.4.tgz","integrity": "sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w=="},+ "node_modules/@langchain/community": {+ "version": "0.3.19",+ "resolved": "https://registry.npmjs.org/@langchain/community/-/community-0.3.19.tgz",+ "integrity": "sha512-7ygPPC9eaIq6Bkv7Z3Vz8PxKjCEi0FCyOuK3e5fafm7ahqX0JXDxnBADObDJ7euFWTKXYFiXDYdoJI/BGlm1PQ==",+ "license": "MIT",+ "dependencies": {+ "@langchain/openai": ">=0.2.0 <0.4.0",+ "binary-extensions": "^2.2.0",+ "expr-eval": "^2.0.2",+ "flat": "^5.0.2",+ "js-yaml": "^4.1.0",+ "langchain": ">=0.2.3 <0.3.0 || >=0.3.4 <0.4.0",+ "langsmith": "^0.2.8",+ "uuid": "^10.0.0",+ "zod": "^3.22.3",+ "zod-to-json-schema": "^3.22.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@arcjet/redact": "^v1.0.0-alpha.23",+ "@aws-crypto/sha256-js": "^5.0.0",+ "@aws-sdk/client-bedrock-agent-runtime": "^3.583.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/search-documents": "^12.0.0",+ "@azure/storage-blob": "^12.15.0",+ "@browserbasehq/sdk": "*",+ "@browserbasehq/stagehand": "^1.0.0",+ "@clickhouse/client": "^0.2.5",+ "@cloudflare/ai": "*",+ "@datastax/astra-db-ts": "^1.0.0",+ "@elastic/elasticsearch": "^8.4.0",+ "@getmetal/metal-sdk": "*",+ "@getzep/zep-cloud": "^1.0.6",+ "@getzep/zep-js": "^0.9.0",+ "@gomomento/sdk": "^1.51.1",+ "@gomomento/sdk-core": "^1.51.1",+ "@google-ai/generativelanguage": "*",+ "@google-cloud/storage": "^6.10.1 || ^7.7.0",+ "@gradientai/nodejs-sdk": "^1.2.0",+ "@huggingface/inference": "^2.6.4",+ "@ibm-cloud/watsonx-ai": "*",+ "@lancedb/lancedb": "^0.12.0",+ "@langchain/core": ">=0.2.21 <0.4.0",+ "@layerup/layerup-security": "^1.5.12",+ "@libsql/client": "^0.14.0",+ "@mendable/firecrawl-js": "^1.4.3",+ "@mlc-ai/web-llm": "*",+ "@mozilla/readability": "*",+ "@neondatabase/serverless": "*",+ "@notionhq/client": "^2.2.10",+ "@opensearch-project/opensearch": "*",+ "@pinecone-database/pinecone": "*",+ "@planetscale/database": "^1.8.0",+ "@premai/prem-sdk": "^0.3.25",+ "@qdrant/js-client-rest": "^1.8.2",+ "@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",+ "@spider-cloud/spider-client": "^0.0.21",+ "@supabase/supabase-js": "^2.45.0",+ "@tensorflow-models/universal-sentence-encoder": "*",+ "@tensorflow/tfjs-converter": "*",+ "@tensorflow/tfjs-core": "*",+ "@upstash/ratelimit": "^1.1.3 || ^2.0.3",+ "@upstash/redis": "^1.20.6",+ "@upstash/vector": "^1.1.1",+ "@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.17.2",+ "@zilliz/milvus2-sdk-node": ">=2.3.5",+ "apify-client": "^2.7.1",+ "assemblyai": "^4.6.0",+ "better-sqlite3": ">=9.4.0 <12.0.0",+ "cassandra-driver": "^4.7.2",+ "cborg": "^4.1.1",+ "cheerio": "^1.0.0-rc.12",+ "chromadb": "*",+ "closevector-common": "0.1.3",+ "closevector-node": "0.1.6",+ "closevector-web": "0.1.6",+ "cohere-ai": "*",+ "convex": "^1.3.1",+ "crypto-js": "^4.2.0",+ "d3-dsv": "^2.0.0",+ "discord.js": "^14.14.1",+ "dria": "^0.0.3",+ "duck-duck-scrape": "^2.2.5",+ "epub2": "^3.0.1",+ "faiss-node": "^0.5.1",+ "firebase-admin": "^11.9.0 || ^12.0.0",+ "google-auth-library": "*",+ "googleapis": "*",+ "hnswlib-node": "^3.0.0",+ "html-to-text": "^9.0.5",+ "ibm-cloud-sdk-core": "*",+ "ignore": "^5.2.0",+ "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.7.10",+ "mammoth": "^1.6.0",+ "mongodb": ">=5.2.0",+ "mysql2": "^3.9.8",+ "neo4j-driver": "*",+ "notion-to-md": "^3.1.0",+ "officeparser": "^4.0.4",+ "openai": "*",+ "pdf-parse": "1.1.1",+ "pg": "^8.11.0",+ "pg-copy-streams": "^6.0.5",+ "pickleparser": "^0.2.1",+ "playwright": "^1.32.1",+ "portkey-ai": "^0.1.11",+ "puppeteer": "*",+ "pyodide": ">=0.24.1 <0.27.0",+ "redis": "*",+ "replicate": "^0.29.4",+ "sonix-speech-recognition": "^2.1.1",+ "srt-parser-2": "^1.2.3",+ "typeorm": "^0.3.20",+ "typesense": "^1.5.3",+ "usearch": "^1.1.1",+ "voy-search": "0.6.2",+ "weaviate-ts-client": "*",+ "web-auth-library": "^1.0.3",+ "ws": "^8.14.2",+ "youtube-transcript": "^1.0.6",+ "youtubei.js": "^9.1.0"+ },+ "peerDependenciesMeta": {+ "@arcjet/redact": {+ "optional": true+ },+ "@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-s3": {+ "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+ },+ "@azure/storage-blob": {+ "optional": true+ },+ "@browserbasehq/sdk": {+ "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-cloud": {+ "optional": true+ },+ "@getzep/zep-js": {+ "optional": true+ },+ "@gomomento/sdk": {+ "optional": true+ },+ "@gomomento/sdk-core": {+ "optional": true+ },+ "@google-ai/generativelanguage": {+ "optional": true+ },+ "@google-cloud/storage": {+ "optional": true+ },+ "@gradientai/nodejs-sdk": {+ "optional": true+ },+ "@huggingface/inference": {+ "optional": true+ },+ "@lancedb/lancedb": {+ "optional": true+ },+ "@layerup/layerup-security": {+ "optional": true+ },+ "@libsql/client": {+ "optional": true+ },+ "@mendable/firecrawl-js": {+ "optional": true+ },+ "@mlc-ai/web-llm": {+ "optional": true+ },+ "@mozilla/readability": {+ "optional": true+ },+ "@neondatabase/serverless": {+ "optional": true+ },+ "@notionhq/client": {+ "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+ },+ "@spider-cloud/spider-client": {+ "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/ratelimit": {+ "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+ },+ "apify-client": {+ "optional": true+ },+ "assemblyai": {+ "optional": true+ },+ "better-sqlite3": {+ "optional": true+ },+ "cassandra-driver": {+ "optional": true+ },+ "cborg": {+ "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+ },+ "crypto-js": {+ "optional": true+ },+ "d3-dsv": {+ "optional": true+ },+ "discord.js": {+ "optional": true+ },+ "dria": {+ "optional": true+ },+ "duck-duck-scrape": {+ "optional": true+ },+ "epub2": {+ "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+ },+ "ignore": {+ "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+ },+ "mammoth": {+ "optional": true+ },+ "mongodb": {+ "optional": true+ },+ "mysql2": {+ "optional": true+ },+ "neo4j-driver": {+ "optional": true+ },+ "notion-to-md": {+ "optional": true+ },+ "officeparser": {+ "optional": true+ },+ "pdf-parse": {+ "optional": true+ },+ "pg": {+ "optional": true+ },+ "pg-copy-streams": {+ "optional": true+ },+ "pickleparser": {+ "optional": true+ },+ "playwright": {+ "optional": true+ },+ "portkey-ai": {+ "optional": true+ },+ "puppeteer": {+ "optional": true+ },+ "pyodide": {+ "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+ },+ "voy-search": {+ "optional": true+ },+ "weaviate-ts-client": {+ "optional": true+ },+ "web-auth-library": {+ "optional": true+ },+ "ws": {+ "optional": true+ },+ "youtube-transcript": {+ "optional": true+ },+ "youtubei.js": {+ "optional": true+ }+ }+ },"node_modules/@langchain/core": {- "version": "0.3.23",- "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.3.23.tgz",- "integrity": "sha512-Aut43dEJYH/ibccSErFOLQzymkBG4emlN16P0OHWwx02bDosOR9ilZly4JJiCSYcprn2X2H8nee6P/4VMg1oQA==",+ "version": "0.3.26",+ "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.3.26.tgz",+ "integrity": "sha512-6RUQHEp8wv+JwtYIIEBYBzbLlcAQZFc7EDOgAM0ukExjh9HiXoJzoWpgMRRCrr/koIbtwXPJUqBprZK1I1CXHQ==",+ "license": "MIT","dependencies": {"@cfworker/json-schema": "^4.0.2","ansi-styles": "^5.0.0",@@ -6107,6 +6594,39 @@"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz","integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="},+ "node_modules/@langchain/langgraph": {+ "version": "0.2.34",+ "resolved": "https://registry.npmjs.org/@langchain/langgraph/-/langgraph-0.2.34.tgz",+ "integrity": "sha512-fSlmLYre+Skh5XJgBGe5YRtXaHyGMTlhu5UN3LzIgA3E9CmGODvH+Ydyk5vJzhXMjnPpLr8icqlKxKrYmZ3gTw==",+ "license": "MIT",+ "dependencies": {+ "@langchain/langgraph-checkpoint": "~0.0.13",+ "@langchain/langgraph-sdk": "~0.0.21",+ "uuid": "^10.0.0",+ "zod": "^3.23.8"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@langchain/core": ">=0.2.36 <0.3.0 || >=0.3.9 < 0.4.0"+ }+ },+ "node_modules/@langchain/langgraph-checkpoint": {+ "version": "0.0.13",+ "resolved": "https://registry.npmjs.org/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-0.0.13.tgz",+ "integrity": "sha512-amdmBcNT8a9xP2VwcEWxqArng4gtRDcnVyVI4DsQIo1Aaz8e8+hH17zSwrUF3pt1pIYztngIfYnBOim31mtKMg==",+ "license": "MIT",+ "dependencies": {+ "uuid": "^10.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@langchain/core": ">=0.2.31 <0.4.0"+ }+ },"node_modules/@langchain/langgraph-sdk": {"version": "0.0.16","resolved": "https://registry.npmjs.org/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.16.tgz",@@ -6130,44 +6650,19 @@"uuid": "dist/bin/uuid"}},- "node_modules/@langchain/openai": {- "version": "0.0.28",- "resolved": "https://registry.npmjs.org/@langchain/openai/-/openai-0.0.28.tgz",- "integrity": "sha512-2s1RA3/eAnz4ahdzsMPBna9hfAqpFNlWdHiPxVGZ5yrhXsbLWWoPcF+22LCk9t0HJKtazi2GCIWc0HVXH9Abig==",- "dependencies": {- "@langchain/core": "~0.1.56",- "js-tiktoken": "^1.0.7",- "openai": "^4.32.1",- "zod": "^3.22.4",- "zod-to-json-schema": "^3.22.3"- },- "engines": {- "node": ">=18"- }- },- "node_modules/@langchain/openai/node_modules/@langchain/core": {- "version": "0.1.63",- "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.1.63.tgz",- "integrity": "sha512-+fjyYi8wy6x1P+Ee1RWfIIEyxd9Ee9jksEwvrggPwwI/p45kIDTdYTblXsM13y4mNWTiACyLSdbwnPaxxdoz+w==",+ "node_modules/@langchain/langgraph/node_modules/@langchain/langgraph-sdk": {+ "version": "0.0.32",+ "resolved": "https://registry.npmjs.org/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.32.tgz",+ "integrity": "sha512-KQyM9kLO7T6AxwNrceajH7JOybP3pYpvUPnhiI2rrVndI1WyZUJ1eVC1e722BVRAPi6o+WcoTT4uMSZVinPOtA==",+ "license": "MIT","dependencies": {- "ansi-styles": "^5.0.0",- "camelcase": "6",- "decamelize": "1.2.0",- "js-tiktoken": "^1.0.12",- "langsmith": "~0.1.7",- "ml-distance": "^4.0.0",- "mustache": "^4.2.0",+ "@types/json-schema": "^7.0.15","p-queue": "^6.6.2","p-retry": "4",- "uuid": "^9.0.0",- "zod": "^3.22.4",- "zod-to-json-schema": "^3.22.3"- },- "engines": {- "node": ">=18"+ "uuid": "^9.0.0"}},- "node_modules/@langchain/openai/node_modules/@langchain/core/node_modules/uuid": {+ "node_modules/@langchain/langgraph/node_modules/@langchain/langgraph-sdk/node_modules/uuid": {"version": "9.0.1","resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz","integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",@@ -6175,53 +6670,27 @@"https://github.com/sponsors/broofa","https://github.com/sponsors/ctavan"],+ "license": "MIT","bin": {"uuid": "dist/bin/uuid"}},- "node_modules/@langchain/openai/node_modules/@types/uuid": {- "version": "10.0.0",- "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz",- "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ=="- },- "node_modules/@langchain/openai/node_modules/commander": {- "version": "10.0.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz",- "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==",- "engines": {- "node": ">=14"- }- },- "node_modules/@langchain/openai/node_modules/langsmith": {- "version": "0.1.68",- "resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.68.tgz",- "integrity": "sha512-otmiysWtVAqzMx3CJ4PrtUBhWRG5Co8Z4o7hSZENPjlit9/j3/vm3TSvbaxpDYakZxtMjhkcJTqrdYFipISEiQ==",+ "node_modules/@langchain/openai": {+ "version": "0.3.16",+ "resolved": "https://registry.npmjs.org/@langchain/openai/-/openai-0.3.16.tgz",+ "integrity": "sha512-Om9HRlTeI0Ou6D4pfxbWHop4WGfkCdV/7v1W/+Jr7NSf0BNoA9jk5GqGms8ZtOYSGgPvizDu3i0TrM3B4cN4NA==",+ "license": "MIT","dependencies": {- "@types/uuid": "^10.0.0",- "commander": "^10.0.1",- "p-queue": "^6.6.2",- "p-retry": "4",- "semver": "^7.6.3",- "uuid": "^10.0.0"- },- "peerDependencies": {- "openai": "*"- },- "peerDependenciesMeta": {- "openai": {- "optional": true- }- }- },- "node_modules/@langchain/openai/node_modules/semver": {- "version": "7.6.3",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",- "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",- "bin": {- "semver": "bin/semver.js"+ "js-tiktoken": "^1.0.12",+ "openai": "^4.77.0",+ "zod": "^3.22.4",+ "zod-to-json-schema": "^3.22.3"},"engines": {- "node": ">=10"+ "node": ">=18"+ },+ "peerDependencies": {+ "@langchain/core": ">=0.2.26 <0.4.0"}},"node_modules/@langchain/textsplitters": {@@ -8650,6 +9119,15 @@"resolved": "https://registry.npmjs.org/@one-ini/wasm/-/wasm-0.1.1.tgz","integrity": "sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw=="},+ "node_modules/@opentelemetry/api": {+ "version": "1.9.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz",+ "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8.0.0"+ }+ },"node_modules/@phenomnomnominal/tsquery": {"version": "5.0.1","resolved": "https://registry.npmjs.org/@phenomnomnominal/tsquery/-/tsquery-5.0.1.tgz",@@ -8731,7 +9209,7 @@"version": "1.0.0-next.28","resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.28.tgz","integrity": "sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==",- "devOptional": true+ "dev": true},"node_modules/@popperjs/core": {"version": "2.11.8",@@ -8763,13 +9241,13 @@"version": "5.22.0","resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-5.22.0.tgz","integrity": "sha512-AUt44v3YJeggO2ZU5BkXI7M4hu9BF2zzH2iF2V5pyXT/lRTyWiElZ7It+bRH1EshoMRxHgpYg4VB6rCM+mG5jQ==",- "devOptional": true+ "dev": true},"node_modules/@prisma/engines": {"version": "5.22.0","resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.22.0.tgz","integrity": "sha512-UNjfslWhAt06kVL3CjkuYpHAWSO6L4kDCVPegV6itt7nD1kSJavd3vhgAEhjglLJJKEdJ7oIqDJ+yHk6qO8gPA==",- "devOptional": true,+ "dev": true,"hasInstallScript": true,"dependencies": {"@prisma/debug": "5.22.0",@@ -8782,13 +9260,13 @@"version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2","resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2.tgz","integrity": "sha512-2PTmxFR2yHW/eB3uqWtcgRcgAbG1rwG9ZriSvQw+nnb7c4uCr3RAcGMb6/zfE88SKlC1Nj2ziUvc96Z379mHgQ==",- "devOptional": true+ "dev": true},"node_modules/@prisma/fetch-engine": {"version": "5.22.0","resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-5.22.0.tgz","integrity": "sha512-bkrD/Mc2fSvkQBV5EpoFcZ87AvOgDxbG99488a5cexp5Ccny+UM6MAe/UFkUC0wLYD9+9befNOqGiIJhhq+HbA==",- "devOptional": true,+ "dev": true,"dependencies": {"@prisma/debug": "5.22.0","@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",@@ -8799,7 +9277,7 @@"version": "5.22.0","resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-5.22.0.tgz","integrity": "sha512-pHhpQdr1UPFpt+zFfnPazhulaZYCUqeIcPpJViYoq9R+D/yw4fjE+CtnsnKzPYm0ddUbeXUzjGVGIRVgPDCk4Q==",- "devOptional": true,+ "dev": true,"dependencies": {"@prisma/debug": "5.22.0"}@@ -9454,6 +9932,7 @@"cpu": ["arm"],+ "dev": true,"optional": true,"os": ["android"@@ -9466,6 +9945,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["android"@@ -9478,6 +9958,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["darwin"@@ -9490,6 +9971,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["darwin"@@ -9502,6 +9984,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["freebsd"@@ -9514,6 +9997,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["freebsd"@@ -9526,6 +10010,7 @@"cpu": ["arm"],+ "dev": true,"optional": true,"os": ["linux"@@ -9538,6 +10023,7 @@"cpu": ["arm"],+ "dev": true,"optional": true,"os": ["linux"@@ -9550,6 +10036,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["linux"@@ -9562,6 +10049,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["linux"@@ -9574,6 +10062,7 @@"cpu": ["loong64"],+ "dev": true,"optional": true,"os": ["linux"@@ -9586,6 +10075,7 @@"cpu": ["ppc64"],+ "dev": true,"optional": true,"os": ["linux"@@ -9598,6 +10088,7 @@"cpu": ["riscv64"],+ "dev": true,"optional": true,"os": ["linux"@@ -9610,6 +10101,7 @@"cpu": ["s390x"],+ "dev": true,"optional": true,"os": ["linux"@@ -9622,6 +10114,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["linux"@@ -9634,6 +10127,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["linux"@@ -9646,6 +10140,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["win32"@@ -9658,6 +10153,7 @@"cpu": ["ia32"],+ "dev": true,"optional": true,"os": ["win32"@@ -9670,6 +10166,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["win32"@@ -10678,7 +11175,7 @@"version": "1.13.3","resolved": "https://registry.npmjs.org/@swc-node/core/-/core-1.13.3.tgz","integrity": "sha512-OGsvXIid2Go21kiNqeTIn79jcaX4l0G93X2rAnas4LFoDyA9wAwVK7xZdm+QsKoMn5Mus2yFLCc4OtX2dD/PWA==",- "devOptional": true,+ "dev": true,"engines": {"node": ">= 10"},@@ -10695,7 +11192,7 @@"version": "1.9.2","resolved": "https://registry.npmjs.org/@swc-node/register/-/register-1.9.2.tgz","integrity": "sha512-BBjg0QNuEEmJSoU/++JOXhrjWdu3PTyYeJWsvchsI0Aqtj8ICkz/DqlwtXbmZVZ5vuDPpTfFlwDBZe81zgShMA==",- "devOptional": true,+ "dev": true,"dependencies": {"@swc-node/core": "^1.13.1","@swc-node/sourcemap-support": "^0.5.0",@@ -10717,7 +11214,7 @@"version": "0.5.1","resolved": "https://registry.npmjs.org/@swc-node/sourcemap-support/-/sourcemap-support-0.5.1.tgz","integrity": "sha512-JxIvIo/Hrpv0JCHSyRpetAdQ6lB27oFYhv0PKCNf1g2gUXOjpeR1exrXccRxLMuAV5WAmGFBwRnNOJqN38+qtg==",- "devOptional": true,+ "dev": true,"dependencies": {"source-map-support": "^0.5.21","tslib": "^2.6.3"@@ -10727,7 +11224,7 @@"version": "0.6.1","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz","integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "devOptional": true,+ "dev": true,"engines": {"node": ">=0.10.0"}@@ -10736,7 +11233,7 @@"version": "0.5.21","resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz","integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",- "devOptional": true,+ "dev": true,"dependencies": {"buffer-from": "^1.0.0","source-map": "^0.6.0"@@ -10801,7 +11298,7 @@"version": "1.5.7","resolved": "https://registry.npmjs.org/@swc/core/-/core-1.5.7.tgz","integrity": "sha512-U4qJRBefIJNJDRCCiVtkfa/hpiZ7w0R6kASea+/KLp+vkus3zcLSB8Ub8SvKgTIxjWpwsKcZlPf5nrv4ls46SQ==",- "devOptional": true,+ "dev": true,"hasInstallScript": true,"dependencies": {"@swc/counter": "^0.1.2",@@ -10842,6 +11339,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["darwin"@@ -10857,6 +11355,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["darwin"@@ -10872,6 +11371,7 @@"cpu": ["arm"],+ "dev": true,"optional": true,"os": ["linux"@@ -10887,6 +11387,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["linux"@@ -10902,6 +11403,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["linux"@@ -10917,6 +11419,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["linux"@@ -10932,6 +11435,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["linux"@@ -10947,6 +11451,7 @@"cpu": ["arm64"],+ "dev": true,"optional": true,"os": ["win32"@@ -10962,6 +11467,7 @@"cpu": ["ia32"],+ "dev": true,"optional": true,"os": ["win32"@@ -10977,6 +11483,7 @@"cpu": ["x64"],+ "dev": true,"optional": true,"os": ["win32"@@ -10989,7 +11496,7 @@"version": "0.1.7","resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.7.tgz","integrity": "sha512-scHWahbHF0eyj3JsxG9CFJgFdFNaVQCNAimBlT6PzS3n/HptxqREjsm4OH6AN3lYcffZYSPxXW8ua2BEHp0lJQ==",- "devOptional": true,+ "dev": true,"dependencies": {"@swc/counter": "^0.1.3"}@@ -11007,16 +11514,6 @@"tslib": "^2.4.0"}},- "node_modules/@swc/types": {- "version": "0.1.17",- "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.17.tgz",- "integrity": "sha512-V5gRru+aD8YVyCOMAjMpWR1Ui577DD5KSJsHP8RAxopAH22jFz6GZd/qxqjO6MJHQhcsjvjOFXyDhyLQUnMveQ==",- "devOptional": true,- "peer": true,- "dependencies": {- "@swc/counter": "^0.1.3"- }- },"node_modules/@sweetalert2/theme-dark": {"version": "5.0.18","resolved": "https://registry.npmjs.org/@sweetalert2/theme-dark/-/theme-dark-5.0.18.tgz",@@ -11096,7 +11593,7 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz","integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==",- "devOptional": true,+ "dev": true,"engines": {"node": ">= 10"}@@ -11280,6 +11777,12 @@"@types/ms": "*"}},+ "node_modules/@types/diff-match-patch": {+ "version": "1.0.36",+ "resolved": "https://registry.npmjs.org/@types/diff-match-patch/-/diff-match-patch-1.0.36.tgz",+ "integrity": "sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==",+ "license": "MIT"+ },"node_modules/@types/eslint": {"version": "9.6.1","resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz",@@ -11588,6 +12091,7 @@"version": "18.3.1","resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.1.tgz","integrity": "sha512-V0kuGBX3+prX+DQ/7r2qsv1NsdfnCLnTgnRJ1pYnxykBhGMz+qj+box5lq7XsO5mtZsBqpjwwTu/7wszPfMBcw==",+ "dev": true,"dependencies": {"@types/prop-types": "*","csstype": "^3.0.2"@@ -11597,7 +12101,7 @@"version": "18.3.0","resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.0.tgz","integrity": "sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==",- "devOptional": true,+ "dev": true,"dependencies": {"@types/react": "*"}@@ -11699,12 +12203,6 @@"@types/node": "*"}},- "node_modules/@types/sortablejs": {- "version": "1.15.8",- "resolved": "https://registry.npmjs.org/@types/sortablejs/-/sortablejs-1.15.8.tgz",- "integrity": "sha512-b79830lW+RZfwaztgs1aVPgbasJ8e7AXtZYHTELNXZPsERt4ymJdjV4OccDbHQAvHrCcFpbF78jkm0R6h/pZVg==",- "peer": true- },"node_modules/@types/stack-utils": {"version": "2.0.3","resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz",@@ -11808,6 +12306,7 @@"version": "7.18.0","resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz","integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==",+ "dev": true,"dependencies": {"@typescript-eslint/scope-manager": "7.18.0","@typescript-eslint/types": "7.18.0",@@ -13226,6 +13725,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.6.0.tgz","integrity": "sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==",+ "dev": true,"dependencies": {"@vitest/spy": "1.6.0","@vitest/utils": "1.6.0",@@ -13239,6 +13739,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.6.0.tgz","integrity": "sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==",+ "dev": true,"dependencies": {"@vitest/utils": "1.6.0","p-limit": "^5.0.0",@@ -13252,6 +13753,7 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz","integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==",+ "dev": true,"dependencies": {"yocto-queue": "^1.0.0"},@@ -13266,6 +13768,7 @@"version": "1.1.1","resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.tgz","integrity": "sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==",+ "dev": true,"engines": {"node": ">=12.20"},@@ -13277,6 +13780,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.6.0.tgz","integrity": "sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==",+ "dev": true,"dependencies": {"magic-string": "^0.30.5","pathe": "^1.1.1",@@ -13290,6 +13794,7 @@"version": "29.7.0","resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz","integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",+ "dev": true,"dependencies": {"@jest/schemas": "^29.6.3","ansi-styles": "^5.0.0",@@ -13303,6 +13808,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.6.0.tgz","integrity": "sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==",+ "dev": true,"dependencies": {"tinyspy": "^2.2.0"},@@ -13314,7 +13820,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-1.6.0.tgz","integrity": "sha512-k3Lyo+ONLOgylctiGovRKy7V4+dIN2yxstX3eY5cWFXH6WP+ooVX79YSyi0GagdTQzLmT43BF27T0s6dOIPBXA==",- "devOptional": true,+ "dev": true,"dependencies": {"@vitest/utils": "1.6.0","fast-glob": "^3.3.2",@@ -13335,7 +13841,7 @@"version": "3.3.2","resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz","integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==",- "devOptional": true,+ "dev": true,"dependencies": {"@nodelib/fs.stat": "^2.0.2","@nodelib/fs.walk": "^1.2.3",@@ -13351,7 +13857,7 @@"version": "5.1.2","resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz","integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",- "devOptional": true,+ "dev": true,"dependencies": {"is-glob": "^4.0.1"},@@ -13363,6 +13869,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.6.0.tgz","integrity": "sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==",+ "dev": true,"dependencies": {"diff-sequences": "^29.6.3","estree-walker": "^3.0.3",@@ -13377,6 +13884,7 @@"version": "29.7.0","resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz","integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",+ "dev": true,"dependencies": {"@jest/schemas": "^29.6.3","ansi-styles": "^5.0.0",@@ -13642,7 +14150,7 @@"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz","integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==","deprecated": "Use your platform's native atob() and btoa() methods instead",- "devOptional": true+ "dev": true},"node_modules/abbrev": {"version": "1.1.1",@@ -13750,6 +14258,36 @@"node": ">= 8.0.0"}},+ "node_modules/ai": {+ "version": "4.0.22",+ "resolved": "https://registry.npmjs.org/ai/-/ai-4.0.22.tgz",+ "integrity": "sha512-yvcjWtofI2HZwgT3jMkoNnDUhAY+S9cOvZ6xbbOzrS0ZeFl1/gcbasFnwAqUJ7uL/t72/3a0Vy/pKg6N19A2Mw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.0.3",+ "@ai-sdk/provider-utils": "2.0.5",+ "@ai-sdk/react": "1.0.7",+ "@ai-sdk/ui-utils": "1.0.6",+ "@opentelemetry/api": "1.9.0",+ "jsondiffpatch": "0.6.0",+ "zod-to-json-schema": "^3.23.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "react": "^18 || ^19 || ^19.0.0-rc",+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "react": {+ "optional": true+ },+ "zod": {+ "optional": true+ }+ }+ },"node_modules/ajv": {"version": "8.12.0","resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",@@ -13792,6 +14330,30 @@"ajv": "^8.8.2"}},+ "node_modules/algoliasearch": {+ "version": "5.18.0",+ "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-5.18.0.tgz",+ "integrity": "sha512-/tfpK2A4FpS0o+S78o3YSdlqXr0MavJIDlFK3XZrlXLy7vaRXJvW5jYg3v5e/wCaF8y0IpMjkYLhoV6QqfpOgw==",+ "license": "MIT",+ "dependencies": {+ "@algolia/client-abtesting": "5.18.0",+ "@algolia/client-analytics": "5.18.0",+ "@algolia/client-common": "5.18.0",+ "@algolia/client-insights": "5.18.0",+ "@algolia/client-personalization": "5.18.0",+ "@algolia/client-query-suggestions": "5.18.0",+ "@algolia/client-search": "5.18.0",+ "@algolia/ingestion": "1.18.0",+ "@algolia/monitoring": "1.18.0",+ "@algolia/recommend": "5.18.0",+ "@algolia/requester-browser-xhr": "5.18.0",+ "@algolia/requester-fetch": "5.18.0",+ "@algolia/requester-node-http": "5.18.0"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },"node_modules/ansi-colors": {"version": "4.1.3","resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",@@ -14149,6 +14711,7 @@"version": "1.1.0","resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz","integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",+ "dev": true,"engines": {"node": "*"}@@ -14984,6 +15547,7 @@"version": "6.7.14","resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz","integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",+ "dev": true,"engines": {"node": ">=8"}@@ -15189,6 +15753,7 @@"version": "4.5.0","resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz","integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==",+ "dev": true,"dependencies": {"assertion-error": "^1.1.0","check-error": "^1.0.3",@@ -15206,6 +15771,7 @@"version": "4.1.0","resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz","integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==",+ "dev": true,"engines": {"node": ">=4"}@@ -15325,6 +15891,7 @@"version": "1.0.3","resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz","integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==",+ "dev": true,"dependencies": {"get-func-name": "^2.0.2"},@@ -15991,7 +16558,8 @@"node_modules/confbox": {"version": "0.1.8","resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",- "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w=="+ "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",+ "dev": true},"node_modules/config-chain": {"version": "1.1.13",@@ -16641,7 +17209,7 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-3.0.0.tgz","integrity": "sha512-N4u2ABATi3Qplzf0hWbVCdjenim8F3ojEXpBDF5hBpjzW182MjNGLqfmQ0SkSPeQ+V86ZXgeH8aXj6kayd4jgg==",- "devOptional": true,+ "dev": true,"dependencies": {"rrweb-cssom": "^0.6.0"},@@ -16673,7 +17241,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/data-urls/-/data-urls-4.0.0.tgz","integrity": "sha512-/mMTei/JXPqvFqQtfyTowxmJVwr2PVAeCcDxyFf6LhoOu/09TX2OX3kb2wzi4DMXcfj4OItwDOnhl5oziPnT6g==",- "devOptional": true,+ "dev": true,"dependencies": {"abab": "^2.0.6","whatwg-mimetype": "^3.0.0",@@ -16783,7 +17351,7 @@"version": "10.4.3","resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz","integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==",- "devOptional": true+ "dev": true},"node_modules/decode-named-character-reference": {"version": "1.0.2",@@ -16850,6 +17418,7 @@"version": "4.1.4","resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz","integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==",+ "dev": true,"dependencies": {"type-detect": "^4.0.0"},@@ -16865,7 +17434,8 @@"node_modules/deep-is": {"version": "0.1.4","resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",- "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",+ "dev": true},"node_modules/deepmerge": {"version": "4.3.1",@@ -17083,6 +17653,12 @@"node": ">=0.3.1"}},+ "node_modules/diff-match-patch": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz",+ "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==",+ "license": "Apache-2.0"+ },"node_modules/diff-sequences": {"version": "29.6.3","resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz",@@ -17144,6 +17720,7 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz","integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",+ "dev": true,"dependencies": {"esutils": "^2.0.2"},@@ -17195,7 +17772,7 @@"resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz","integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==","deprecated": "Use your platform's native DOMException instead",- "devOptional": true,+ "dev": true,"dependencies": {"webidl-conversions": "^7.0.0"},@@ -17642,6 +18219,7 @@"version": "0.21.5","resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz","integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,"hasInstallScript": true,"bin": {"esbuild": "bin/esbuild"@@ -17735,6 +18313,7 @@"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz","integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==","deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",+ "dev": true,"dependencies": {"@eslint-community/eslint-utils": "^4.2.0","@eslint-community/regexpp": "^4.6.1",@@ -18100,7 +18679,7 @@"version": "9.1.0","resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz","integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",- "devOptional": true,+ "dev": true,"bin": {"eslint-config-prettier": "bin/cli.js"},@@ -18470,6 +19049,7 @@"version": "7.2.2","resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz","integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",+ "dev": true,"dependencies": {"esrecurse": "^4.3.0","estraverse": "^5.2.0"@@ -18496,6 +19076,7 @@"version": "6.12.6","resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz","integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "dev": true,"dependencies": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",@@ -18511,6 +19092,7 @@"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz","integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,"dependencies": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -18520,6 +19102,7 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz","integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",+ "dev": true,"dependencies": {"locate-path": "^6.0.0","path-exists": "^4.0.0"@@ -18535,6 +19118,7 @@"version": "13.24.0","resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz","integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",+ "dev": true,"dependencies": {"type-fest": "^0.20.2"},@@ -18548,12 +19132,14 @@"node_modules/eslint/node_modules/json-schema-traverse": {"version": "0.4.1","resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true},"node_modules/eslint/node_modules/locate-path": {"version": "6.0.0","resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz","integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",+ "dev": true,"dependencies": {"p-locate": "^5.0.0"},@@ -18568,6 +19154,7 @@"version": "3.1.2","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz","integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,"dependencies": {"brace-expansion": "^1.1.7"},@@ -18579,6 +19166,7 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz","integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",+ "dev": true,"dependencies": {"p-limit": "^3.0.2"},@@ -18593,6 +19181,7 @@"version": "0.20.2","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz","integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",+ "dev": true,"engines": {"node": ">=10"},@@ -18671,6 +19260,7 @@"version": "3.0.3","resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz","integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,"dependencies": {"@types/estree": "^1.0.0"}@@ -18712,6 +19302,15 @@"node": ">=0.8.x"}},+ "node_modules/eventsource-parser": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz",+ "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==",+ "license": "MIT",+ "engines": {+ "node": ">=18.0.0"+ }+ },"node_modules/execa": {"version": "0.7.0","resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz",@@ -19039,7 +19638,8 @@"node_modules/fast-levenshtein": {"version": "2.0.6","resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",- "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",+ "dev": true},"node_modules/fast-querystring": {"version": "1.1.2",@@ -19131,7 +19731,7 @@"version": "0.8.2","resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz","integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==",- "devOptional": true+ "dev": true},"node_modules/figures": {"version": "3.2.0",@@ -19159,6 +19759,7 @@"version": "6.0.1","resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz","integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",+ "dev": true,"dependencies": {"flat-cache": "^3.0.4"},@@ -19422,6 +20023,7 @@"version": "3.2.0","resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz","integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",+ "dev": true,"dependencies": {"flatted": "^3.2.9","keyv": "^4.5.3",@@ -19949,6 +20551,7 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz","integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==",+ "dev": true,"engines": {"node": "*"}@@ -21345,7 +21948,7 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz","integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==",- "devOptional": true,+ "dev": true,"dependencies": {"@tootallnate/once": "2","agent-base": "6",@@ -22078,6 +22681,7 @@"version": "3.0.3","resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz","integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",+ "dev": true,"engines": {"node": ">=8"}@@ -22103,7 +22707,7 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz","integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",- "devOptional": true+ "dev": true},"node_modules/is-regex": {"version": "1.2.1",@@ -23560,7 +24164,7 @@"version": "22.1.0","resolved": "https://registry.npmjs.org/jsdom/-/jsdom-22.1.0.tgz","integrity": "sha512-/9AVW7xNbsBv6GfWho4TTNjEo9fe6Zhf9O7s0Fhhr3u+awPwAJMKwAMXnkk5vBxflqLW9hTHX/0cs+P3gW+cQw==",- "devOptional": true,+ "dev": true,"dependencies": {"abab": "^2.0.6","cssstyle": "^3.0.0",@@ -23602,7 +24206,7 @@"version": "7.2.1","resolved": "https://registry.npmjs.org/parse5/-/parse5-7.2.1.tgz","integrity": "sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==",- "devOptional": true,+ "dev": true,"dependencies": {"entities": "^4.5.0"},@@ -23632,13 +24236,20 @@"node_modules/json-buffer": {"version": "3.0.1","resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",- "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ=="+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true},"node_modules/json-parse-even-better-errors": {"version": "2.3.1","resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz","integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="},+ "node_modules/json-schema": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",+ "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==",+ "license": "(AFL-2.1 OR BSD-3-Clause)"+ },"node_modules/json-schema-traverse": {"version": "1.0.0","resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",@@ -23647,7 +24258,8 @@"node_modules/json-stable-stringify-without-jsonify": {"version": "1.0.1","resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",- "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw=="+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",+ "dev": true},"node_modules/json-to-graphql-query": {"version": "2.3.0",@@ -23699,6 +24311,35 @@"integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==","dev": true},+ "node_modules/jsondiffpatch": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/jsondiffpatch/-/jsondiffpatch-0.6.0.tgz",+ "integrity": "sha512-3QItJOXp2AP1uv7waBkao5nCvhEv+QmJAd38Ybq7wNI74Q+BBmnLn4EDKz6yI9xGAIQoUF87qHt+kc1IVxB4zQ==",+ "license": "MIT",+ "dependencies": {+ "@types/diff-match-patch": "^1.0.36",+ "chalk": "^5.3.0",+ "diff-match-patch": "^1.0.5"+ },+ "bin": {+ "jsondiffpatch": "bin/jsondiffpatch.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ }+ },+ "node_modules/jsondiffpatch/node_modules/chalk": {+ "version": "5.4.1",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",+ "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",+ "license": "MIT",+ "engines": {+ "node": "^12.17.0 || ^14.13 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },"node_modules/jsonfile": {"version": "6.1.0","resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",@@ -23833,6 +24474,7 @@"version": "4.5.4","resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz","integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "dev": true,"dependencies": {"json-buffer": "3.0.1"}@@ -24049,23 +24691,6 @@}}},- "node_modules/langchain/node_modules/@langchain/openai": {- "version": "0.3.14",- "resolved": "https://registry.npmjs.org/@langchain/openai/-/openai-0.3.14.tgz",- "integrity": "sha512-lNWjUo1tbvsss45IF7UQtMu1NJ6oUKvhgPYWXnX9f/d6OmuLu7D99HQ3Y88vLcUo9XjjOy417olYHignMduMjA==",- "dependencies": {- "js-tiktoken": "^1.0.12",- "openai": "^4.71.0",- "zod": "^3.22.4",- "zod-to-json-schema": "^3.22.3"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@langchain/core": ">=0.2.26 <0.4.0"- }- },"node_modules/langsmith": {"version": "0.2.13","resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.2.13.tgz",@@ -24251,6 +24876,7 @@"version": "0.4.1","resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz","integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",+ "dev": true,"dependencies": {"prelude-ls": "^1.2.1","type-check": "~0.4.0"@@ -24324,6 +24950,7 @@"version": "0.5.1","resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.1.tgz","integrity": "sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==",+ "dev": true,"dependencies": {"mlly": "^1.7.3","pkg-types": "^1.2.1"@@ -24500,6 +25127,7 @@"version": "2.3.7","resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz","integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==",+ "dev": true,"dependencies": {"get-func-name": "^2.0.1"}@@ -24571,6 +25199,7 @@"version": "0.30.8","resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.8.tgz","integrity": "sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==",+ "dev": true,"dependencies": {"@jridgewell/sourcemap-codec": "^1.4.15"},@@ -28374,6 +29003,7 @@"version": "1.7.3","resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.3.tgz","integrity": "sha512-xUsx5n/mN0uQf4V548PKQ+YShA4/IW0KI1dZhrNrPCLG+xizETbHTkOa1f8/xut9JRPp8kQuMnz0oqwkTiLo/A==",+ "dev": true,"dependencies": {"acorn": "^8.14.0","pathe": "^1.1.2",@@ -28434,7 +29064,7 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.0.tgz","integrity": "sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==",- "devOptional": true,+ "dev": true,"engines": {"node": ">=10"}@@ -29067,7 +29697,7 @@"version": "2.2.16","resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.16.tgz","integrity": "sha512-F1I/bimDpj3ncaNDhfyMWuFqmQDBwDB0Fogc2qpL3BWvkQteFD/8BzWuIRl83rq0DXfm8SGt/HFhLXZyljTXcQ==",- "devOptional": true+ "dev": true},"node_modules/nx": {"version": "19.7.2",@@ -29387,9 +30017,10 @@}},"node_modules/openai": {- "version": "4.76.3",- "resolved": "https://registry.npmjs.org/openai/-/openai-4.76.3.tgz",- "integrity": "sha512-BISkI90m8zT7BAMljK0j00TzOoLvmc7AulPxv6EARa++3+hhIK5G6z4xkITurEaA9bvDhQ09kSNKA3DL+rDMwA==",+ "version": "4.77.0",+ "resolved": "https://registry.npmjs.org/openai/-/openai-4.77.0.tgz",+ "integrity": "sha512-WWacavtns/7pCUkOWvQIjyOfcdr9X+9n9Vvb0zFeKVDAqwCMDHB+iSr24SVaBAhplvSG6JrRXFpcNM9gWhOGIw==",+ "license": "Apache-2.0","dependencies": {"@types/node": "^18.11.18","@types/node-fetch": "^2.6.4",@@ -29428,6 +30059,7 @@"version": "0.9.4","resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz","integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",+ "dev": true,"dependencies": {"deep-is": "^0.1.3","fast-levenshtein": "^2.0.6",@@ -29779,12 +30411,14 @@"node_modules/pathe": {"version": "1.1.2","resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",- "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ=="+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true},"node_modules/pathval": {"version": "1.1.1","resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz","integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",+ "dev": true,"engines": {"node": "*"}@@ -30019,6 +30653,7 @@"version": "1.2.1","resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.1.tgz","integrity": "sha512-sQoqa8alT3nHjGuTjuKgOnvjo4cljkufdtLMnO2LBP/wRwuDlo1tkaEdMxCRhyGRPacv/ztlZgDPm2b7FAmEvw==",+ "dev": true,"dependencies": {"confbox": "^0.1.8","mlly": "^1.7.2",@@ -30813,6 +31448,7 @@"version": "1.2.1","resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz","integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",+ "dev": true,"engines": {"node": ">= 0.8.0"}@@ -30856,7 +31492,7 @@"version": "5.22.0","resolved": "https://registry.npmjs.org/prisma/-/prisma-5.22.0.tgz","integrity": "sha512-vtpjW3XuYCSnMsNVBjLMNkTj6OZbudcPPTPYHqX0CJfpcdWciI1dM8uHETwmDxxiqEwCIE6WvXucWUetJgfu/A==",- "devOptional": true,+ "dev": true,"hasInstallScript": true,"dependencies": {"@prisma/engines": "5.22.0"@@ -30985,7 +31621,7 @@"version": "1.15.0","resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz","integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==",- "devOptional": true,+ "dev": true,"dependencies": {"punycode": "^2.3.1"},@@ -31043,7 +31679,7 @@"version": "2.2.0","resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz","integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==",- "devOptional": true+ "dev": true},"node_modules/queue-microtask": {"version": "1.2.3",@@ -33137,6 +33773,7 @@"version": "4.28.1","resolved": "https://registry.npmjs.org/rollup/-/rollup-4.28.1.tgz","integrity": "sha512-61fXYl/qNVinKmGSTHAZ6Yy8I3YIJC/r2m9feHo6SwVAVcLT5MPwOUFe7EuURA/4m0NR8lXG4BBXuo/IZEsjMg==",+ "dev": true,"dependencies": {"@types/estree": "1.0.6"},@@ -33174,7 +33811,7 @@"version": "0.6.0","resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz","integrity": "sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==",- "devOptional": true+ "dev": true},"node_modules/run-applescript": {"version": "7.0.0",@@ -33364,7 +34001,7 @@"version": "6.0.0","resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz","integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",- "devOptional": true,+ "dev": true,"dependencies": {"xmlchars": "^2.2.0"},@@ -33864,7 +34501,8 @@"node_modules/siginfo": {"version": "2.0.0","resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",- "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g=="+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true},"node_modules/signal-exit": {"version": "3.0.7",@@ -33947,7 +34585,7 @@"version": "2.0.4","resolved": "https://registry.npmjs.org/sirv/-/sirv-2.0.4.tgz","integrity": "sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==",- "devOptional": true,+ "dev": true,"dependencies": {"@polka/url": "^1.0.0-next.24","mrmime": "^2.0.0",@@ -34240,7 +34878,8 @@"node_modules/stackback": {"version": "0.0.2","resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",- "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw=="+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true},"node_modules/stackframe": {"version": "1.3.4",@@ -34264,7 +34903,8 @@"node_modules/std-env": {"version": "3.8.0","resolved": "https://registry.npmjs.org/std-env/-/std-env-3.8.0.tgz",- "integrity": "sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w=="+ "integrity": "sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==",+ "dev": true},"node_modules/streamroller": {"version": "3.1.5",@@ -34551,6 +35191,7 @@"version": "2.1.1","resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-2.1.1.tgz","integrity": "sha512-631UJ6O00eNGfMiWG78ck80dfBab8X6IVFB51jZK5Icd7XAs60Z5y7QdSd/wGIklnWvRbUNloVzhOKKmutxQ6Q==",+ "dev": true,"dependencies": {"js-tokens": "^9.0.1"},@@ -34561,7 +35202,8 @@"node_modules/strip-literal/node_modules/js-tokens": {"version": "9.0.1","resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",- "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ=="+ "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==",+ "dev": true},"node_modules/strip-outer": {"version": "2.0.0",@@ -34953,7 +35595,7 @@"version": "3.2.4","resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz","integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",- "devOptional": true+ "dev": true},"node_modules/tabbable": {"version": "6.2.0",@@ -35256,7 +35898,8 @@"node_modules/text-table": {"version": "0.2.0","resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",- "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw=="+ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",+ "dev": true},"node_modules/thenify": {"version": "3.3.1",@@ -35296,6 +35939,18 @@"real-require": "^0.2.0"}},+ "node_modules/throttleit": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-2.1.0.tgz",+ "integrity": "sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/through": {"version": "2.3.8","resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",@@ -35324,7 +35979,8 @@"node_modules/tinybench": {"version": "2.9.0","resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",- "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg=="+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",+ "dev": true},"node_modules/tinycolor2": {"version": "1.6.0",@@ -35335,6 +35991,7 @@"version": "0.8.4","resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.8.4.tgz","integrity": "sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==",+ "dev": true,"engines": {"node": ">=14.0.0"}@@ -35343,6 +36000,7 @@"version": "2.2.1","resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.1.tgz","integrity": "sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==",+ "dev": true,"engines": {"node": ">=14.0.0"}@@ -35434,7 +36092,7 @@"version": "3.0.1","resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz","integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==",- "devOptional": true,+ "dev": true,"engines": {"node": ">=6"}@@ -35443,7 +36101,7 @@"version": "4.1.4","resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz","integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==",- "devOptional": true,+ "dev": true,"dependencies": {"psl": "^1.1.33","punycode": "^2.1.1",@@ -35458,7 +36116,7 @@"version": "0.2.0","resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz","integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==",- "devOptional": true,+ "dev": true,"engines": {"node": ">= 4.0.0"}@@ -35467,7 +36125,7 @@"version": "4.1.1","resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz","integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==",- "devOptional": true,+ "dev": true,"dependencies": {"punycode": "^2.3.0"},@@ -35777,6 +36435,7 @@"version": "0.4.0","resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz","integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",+ "dev": true,"dependencies": {"prelude-ls": "^1.2.1"},@@ -35950,6 +36609,7 @@"version": "5.5.4","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz","integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==",+ "dev": true,"bin": {"tsc": "bin/tsc","tsserver": "bin/tsserver"@@ -35961,7 +36621,8 @@"node_modules/ufo": {"version": "1.5.4","resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz",- "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ=="+ "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==",+ "dev": true},"node_modules/uid": {"version": "2.0.2",@@ -36346,7 +37007,7 @@"version": "1.5.10","resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz","integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==",- "devOptional": true,+ "dev": true,"dependencies": {"querystringify": "^2.1.1","requires-port": "^1.0.0"@@ -36726,6 +37387,7 @@"version": "5.4.11","resolved": "https://registry.npmjs.org/vite/-/vite-5.4.11.tgz","integrity": "sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==",+ "dev": true,"dependencies": {"esbuild": "^0.21.3","postcss": "^8.4.43",@@ -36784,6 +37446,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.6.0.tgz","integrity": "sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==",+ "dev": true,"dependencies": {"cac": "^6.7.14","debug": "^4.3.4",@@ -36805,6 +37468,7 @@"version": "3.3.8","resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz","integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",+ "dev": true,"funding": [{"type": "github",@@ -36822,6 +37486,7 @@"version": "8.4.49","resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz","integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==",+ "dev": true,"funding": [{"type": "opencollective",@@ -36849,6 +37514,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/vitest/-/vitest-1.6.0.tgz","integrity": "sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==",+ "dev": true,"dependencies": {"@vitest/expect": "1.6.0","@vitest/runner": "1.6.0",@@ -36913,6 +37579,7 @@"version": "8.0.1","resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz","integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==",+ "dev": true,"dependencies": {"cross-spawn": "^7.0.3","get-stream": "^8.0.1",@@ -36935,6 +37602,7 @@"version": "8.0.1","resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz","integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==",+ "dev": true,"engines": {"node": ">=16"},@@ -36946,6 +37614,7 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz","integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==",+ "dev": true,"engines": {"node": ">=16.17.0"}@@ -36954,6 +37623,7 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz","integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==",+ "dev": true,"engines": {"node": "^12.20.0 || ^14.13.1 || >=16.0.0"},@@ -36965,6 +37635,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz","integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",+ "dev": true,"engines": {"node": ">=12"},@@ -36976,6 +37647,7 @@"version": "5.3.0","resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz","integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==",+ "dev": true,"dependencies": {"path-key": "^4.0.0"},@@ -36990,6 +37662,7 @@"version": "6.0.0","resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz","integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",+ "dev": true,"dependencies": {"mimic-fn": "^4.0.0"},@@ -37004,6 +37677,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz","integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",+ "dev": true,"engines": {"node": ">=12"},@@ -37015,6 +37689,7 @@"version": "4.1.0","resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz","integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "dev": true,"engines": {"node": ">=14"},@@ -37026,6 +37701,7 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz","integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==",+ "dev": true,"engines": {"node": ">=12"},@@ -37037,7 +37713,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz","integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==",- "devOptional": true,+ "dev": true,"dependencies": {"xml-name-validator": "^4.0.0"},@@ -37115,7 +37791,7 @@"version": "7.0.0","resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz","integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",- "devOptional": true,+ "dev": true,"engines": {"node": ">=12"}@@ -37559,7 +38235,7 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz","integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==",- "devOptional": true,+ "dev": true,"engines": {"node": ">=12"}@@ -37568,7 +38244,7 @@"version": "12.0.1","resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-12.0.1.tgz","integrity": "sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==",- "devOptional": true,+ "dev": true,"dependencies": {"tr46": "^4.1.1","webidl-conversions": "^7.0.0"@@ -37678,6 +38354,7 @@"version": "2.3.0","resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz","integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,"dependencies": {"siginfo": "^2.0.0","stackback": "0.0.2"@@ -37711,6 +38388,7 @@"version": "1.2.5","resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz","integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",+ "dev": true,"engines": {"node": ">=0.10.0"}@@ -37817,7 +38495,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz","integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==",- "devOptional": true,+ "dev": true,"engines": {"node": ">=12"}@@ -37826,7 +38504,7 @@"version": "2.2.0","resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz","integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",- "devOptional": true+ "dev": true},"node_modules/xmlserializer": {"version": "0.6.1",@@ -37943,6 +38621,7 @@"version": "3.24.1","resolved": "https://registry.npmjs.org/zod/-/zod-3.24.1.tgz","integrity": "sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==",+ "license": "MIT","funding": {"url": "https://github.com/sponsors/colinhacks"}diff --git a/package.json b/package.jsonindex 82aa696dc..e14aff903 100644--- a/package.json+++ b/package.json@@ -17,6 +17,7 @@"dev:cron": "npx nx run cron:serve:development","dev:docker": "docker compose -f ./docker-compose.dev.yaml up -d","start:prod": "node dist/apps/backend/main.js",+ "commands:build:development": "npx nx run commands:build:development","start:prod:frontend": "nx run frontend:serve:production","start:prod:workers": "node dist/apps/workers/main.js","start:prod:cron": "node dist/apps/cron/main.js",@@ -41,6 +42,10 @@"@copilotkit/react-ui": "^1.4.7","@copilotkit/runtime": "^1.4.7","@hookform/resolvers": "^3.3.4",+ "@langchain/community": "^0.3.19",+ "@langchain/core": "^0.3.26",+ "@langchain/langgraph": "^0.2.34",+ "@langchain/openai": "^0.3.16","@mantine/core": "^5.10.5","@mantine/dates": "^5.10.5","@mantine/hooks": "^5.10.5",@@ -91,6 +96,8 @@"@uppy/react": "^4.0.2","@uppy/status-bar": "^4.0.3","@uppy/xhr-upload": "^4.1.0",+ "ai": "^4.0.22",+ "algoliasearch": "^5.18.0","array-move": "^4.0.0","axios": "^1.7.7","bcrypt": "^5.1.1",@@ -157,7 +164,8 @@"utf-8-validate": "^5.0.10","uuid": "^10.0.0","yargs": "^17.7.2",- "yup": "^1.4.0"+ "yup": "^1.4.0",+ "zod": "^3.24.1"},"devDependencies": {"@nestjs/schematics": "^10.0.1",