mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00

* agents - phase 1 (#30) * chore: copy assistant files * feat: frontend and data-provider * feat: backend get endpoint test * fix(MessageEndpointIcon): switched to AgentName and AgentAvatar * fix: small fixes * fix: agent endpoint config * fix: show Agent Builder * chore: install agentus * chore: initial scaffolding for agents * fix: updated Assistant logic to Agent Logic for some Agent components * WIP first pass, demo of agent package * WIP: initial backend infra for agents * fix: agent list error * wip: agents routing * chore: Refactor useSSE hook to handle different data events * wip: correctly emit events * chore: Update @librechat/agentus npm dependency to version 1.0.9 * remove comment * first pass: streaming agent text * chore: Remove @librechat/agentus root-level workspace npm dependency * feat: Agent Schema and Model * fix: content handling fixes * fix: content message save * WIP: new content data * fix: run step issue with tool calls * chore: Update @librechat/agentus npm dependency to version 1.1.5 * feat: update controller and agent routes * wip: initial backend tool and tool error handling support * wip: tool chunks * chore: Update @librechat/agentus npm dependency to version 1.1.7 * chore: update tool_call typing, add test conditions and logs * fix: create agent * fix: create agent * first pass: render completed content parts * fix: remove logging, fix step handler typing * chore: Update @librechat/agentus npm dependency to version 1.1.9 * refactor: cleanup maps on unmount * chore: Update BaseClient.js to safely count tokens for string, number, and boolean values * fix: support subsequent messages with tool_calls * chore: export order * fix: select agent * fix: tool call types and handling * chore: switch to anthropic for testing * fix: AgentSelect * refactor: experimental: OpenAIClient to use array for intermediateReply * fix(useSSE): revert old condition for streaming legacy client tokens * fix: lint * revert `agent_id` to `id` * chore: update localization keys for agent-related components * feat: zod schema handling for actions * refactor(actions): if no params, no zodSchema * chore: Update @librechat/agentus npm dependency to version 1.2.1 * feat: first pass, actions * refactor: empty schema for actions without params * feat: Update createRun function to accept additional options * fix: message payload formatting; feat: add more client options * fix: ToolCall component rendering when action has no args but has output * refactor(ToolCall): allow non-stringy args * WIP: first pass, correctly formatted tool_calls between providers * refactor: Remove duplicate import of 'roles' module * refactor: Exclude 'vite.config.ts' from TypeScript compilation * refactor: fix agent related types > - no need to use endpoint/model fields for identifying agent metadata > - add `provider` distinction for agent-configured 'endpoint' - no need for agent-endpoint map - reduce complexity of tools as functions into tools as string[] - fix types related to above changes - reduce unnecessary variables for queries/mutations and corresponding react-query keys * refactor: Add tools and tool_kwargs fields to agent schema * refactor: Remove unused code and update dependencies * refactor: Update updateAgentHandler to use req.body directly * refactor: Update AgentSelect component to use localized hooks * refactor: Update agent schema to include tools and provider fields * refactor(AgentPanel): add scrollbar gutter, add provider field to form, fix agent schema required values * refactor: Update AgentSwitcher component to use selectedAgentId instead of selectedAgent * refactor: Update AgentPanel component to include alternateName import and defaultAgentFormValues * refactor(SelectDropDown): allow setting value as option while still supporting legacy usage (string values only) * refactor: SelectDropdown changes - Only necessary when the available values are objects with label/value fields and the selected value is expected to be a string. * refactor: TypeError issues and handle provider as option * feat: Add placeholder for provider selection in AgentPanel component * refactor: Update agent schema to include author and provider fields * fix: show expected 'create agent' placeholder when creating agent * chore: fix localization strings, hide capabilities form for now * chore: typing * refactor: import order and use compact agents schema for now * chore: typing * refactor: Update AgentForm type to use AgentCapabilities * fix agent form agent selection issues * feat: responsive agent selection * fix: Handle cancelled fetch in useSelectAgent hook * fix: reset agent form on accordion close/open * feat: Add agent_id to default conversation for agents endpoint * feat: agents endpoint request handling * refactor: reset conversation model on agent select * refactor: add `additional_instructions` to conversation schema, organize other fields * chore: casing * chore: types * refactor(loadAgentTools): explicitly pass agent_id, do not pass `model` to loadAgentTools for now, load action sets by agent_id * WIP: initial draft of real agent client initialization * WIP: first pass, anthropic agent requests * feat: remember last selected agent * feat: openai and azure connected * fix: prioritize agent model for runs unless an explicit override model is passed from client * feat: Agent Actions * fix: save agent id to convo * feat: model panel (#29) * feat: model panel * bring back comments * fix: method still null * fix: AgentPanel FormContext * feat: add more parameters * fix: style issues; refactor: Agent Controller * fix: cherry-pick * fix: Update AgentAvatar component to use AssistantIcon instead of BrainCircuit * feat: OGDialog for delete agent; feat(assistant): update Agent types, introduced `model_parameters` * feat: icon and general `model_parameters` update * feat: use react-hook-form better * fix: agent builder form reset issue when switching panels * refactor: modularize agent builder form --------- Co-authored-by: Danny Avila <danny@librechat.ai> * fix: AgentPanel and ModelPanel type issues and use `useFormContext` and `watch` instead of `methods` directly and `useWatch`. * fix: tool call issues due to invalid input (anthropic) of empty string * fix: handle empty text in Part component --------- Co-authored-by: Marco Beretta <81851188+berry-13@users.noreply.github.com> * refactor: remove form ModelPanel and fixed nested ternary expressions in AgentConfig * fix: Model Parameters not saved correctly * refactor: remove console log * feat: avatar upload and get for Agents (#36) Co-authored-by: Marco Beretta <81851188+berry-13@users.noreply.github.com> * chore: update to public package * fix: typing, optional chaining * fix: cursor not showing for content parts * chore: conditionally enable agents * ci: fix azure test * ci: fix frontend tests, fix eslint api * refactor: Remove unused errorContentPart variable * continue of the agent message PR (#40) * last fixes * fix: agentMap * pr merge test (#41) * fix: model icon not fetching correctly * remove console logs * feat: agent name * refactor: pass documentsMap as a prop to allow re-render of assistant form * refactor: pass documentsMap as a prop to allow re-render of assistant form * chore: Bump version to 0.7.419 * fix: TypeError: Cannot read properties of undefined (reading 'id') * refactor: update AgentSwitcher component to use ControlCombobox instead of Combobox --------- Co-authored-by: Marco Beretta <81851188+berry-13@users.noreply.github.com>
142 lines
4.9 KiB
JSON
142 lines
4.9 KiB
JSON
{
|
|
"name": "@librechat/frontend",
|
|
"version": "v0.7.5-rc1",
|
|
"description": "",
|
|
"type": "module",
|
|
"scripts": {
|
|
"data-provider": "cd .. && npm run build:data-provider",
|
|
"build:file": "cross-env NODE_ENV=production vite build --debug > vite-output.log 2>&1",
|
|
"build": "cross-env NODE_ENV=production vite build",
|
|
"build:ci": "cross-env NODE_ENV=development vite build --mode ci",
|
|
"dev": "cross-env NODE_ENV=development vite",
|
|
"preview-prod": "cross-env NODE_ENV=development vite preview",
|
|
"test": "cross-env NODE_ENV=development jest --watch",
|
|
"test:ci": "cross-env NODE_ENV=development jest --ci",
|
|
"b:test": "NODE_ENV=test bunx jest --watch",
|
|
"b:build": "NODE_ENV=production bun --bun vite build",
|
|
"b:dev": "NODE_ENV=development bunx vite"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/danny-avila/LibreChat.git"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"bugs": {
|
|
"url": "https://github.com/danny-avila/LibreChat/issues"
|
|
},
|
|
"homepage": "https://librechat.ai",
|
|
"dependencies": {
|
|
"@ariakit/react": "^0.4.8",
|
|
"@codesandbox/sandpack-react": "^2.18.2",
|
|
"@dicebear/collection": "^7.0.4",
|
|
"@dicebear/core": "^7.0.4",
|
|
"@headlessui/react": "^2.1.2",
|
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
"@radix-ui/react-alert-dialog": "^1.0.2",
|
|
"@radix-ui/react-checkbox": "^1.0.3",
|
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
"@radix-ui/react-dialog": "^1.0.2",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
"@radix-ui/react-hover-card": "^1.0.5",
|
|
"@radix-ui/react-icons": "^1.3.0",
|
|
"@radix-ui/react-label": "^2.0.0",
|
|
"@radix-ui/react-popover": "^1.0.7",
|
|
"@radix-ui/react-radio-group": "^1.1.3",
|
|
"@radix-ui/react-select": "^2.0.0",
|
|
"@radix-ui/react-separator": "^1.0.3",
|
|
"@radix-ui/react-slider": "^1.1.1",
|
|
"@radix-ui/react-switch": "^1.0.3",
|
|
"@radix-ui/react-tabs": "^1.0.3",
|
|
"@radix-ui/react-toast": "^1.1.5",
|
|
"@radix-ui/react-tooltip": "^1.0.6",
|
|
"@tanstack/react-query": "^4.28.0",
|
|
"@tanstack/react-table": "^8.11.7",
|
|
"@zattoo/use-double-click": "1.2.0",
|
|
"axios": "^1.3.4",
|
|
"class-variance-authority": "^0.6.0",
|
|
"clsx": "^1.2.1",
|
|
"copy-to-clipboard": "^3.3.3",
|
|
"cross-env": "^7.0.3",
|
|
"date-fns": "^3.3.1",
|
|
"downloadjs": "^1.4.7",
|
|
"export-from-json": "^1.7.2",
|
|
"filenamify": "^6.0.0",
|
|
"html-to-image": "^1.11.11",
|
|
"image-blob-reduce": "^4.1.0",
|
|
"js-cookie": "^3.0.5",
|
|
"librechat-data-provider": "*",
|
|
"lodash": "^4.17.21",
|
|
"lucide-react": "^0.394.0",
|
|
"match-sorter": "^6.3.4",
|
|
"msedge-tts": "^1.3.4",
|
|
"rc-input-number": "^7.4.2",
|
|
"react": "^18.2.0",
|
|
"react-avatar-editor": "^13.0.2",
|
|
"react-dnd": "^16.0.1",
|
|
"react-dnd-html5-backend": "^16.0.1",
|
|
"react-dom": "^18.2.0",
|
|
"react-flip-toolkit": "^7.1.0",
|
|
"react-gtm-module": "^2.0.11",
|
|
"react-hook-form": "^7.43.9",
|
|
"react-lazy-load-image-component": "^1.6.0",
|
|
"react-markdown": "^9.0.1",
|
|
"react-resizable-panels": "^2.1.1",
|
|
"react-router-dom": "^6.11.2",
|
|
"react-speech-recognition": "^3.10.0",
|
|
"react-textarea-autosize": "^8.4.0",
|
|
"react-transition-group": "^4.4.5",
|
|
"recoil": "^0.7.7",
|
|
"regenerator-runtime": "^0.14.1",
|
|
"rehype-highlight": "^6.0.0",
|
|
"rehype-katex": "^6.0.2",
|
|
"remark-directive": "^3.0.0",
|
|
"remark-gfm": "^4.0.0",
|
|
"remark-math": "^6.0.0",
|
|
"remark-supersub": "^1.0.0",
|
|
"tailwind-merge": "^1.9.1",
|
|
"tailwindcss-animate": "^1.0.5",
|
|
"tailwindcss-radix": "^2.8.0",
|
|
"url": "^0.11.0",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-transform-runtime": "^7.22.15",
|
|
"@babel/preset-env": "^7.22.15",
|
|
"@babel/preset-react": "^7.22.15",
|
|
"@babel/preset-typescript": "^7.22.15",
|
|
"@tanstack/react-query-devtools": "^4.29.0",
|
|
"@testing-library/dom": "^9.3.0",
|
|
"@testing-library/jest-dom": "^5.16.5",
|
|
"@testing-library/react": "^14.0.0",
|
|
"@testing-library/user-event": "^14.4.3",
|
|
"@types/jest": "^29.5.2",
|
|
"@types/js-cookie": "^3.0.6",
|
|
"@types/node": "^20.3.0",
|
|
"@types/react": "^18.2.11",
|
|
"@types/react-dom": "^18.2.4",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"autoprefixer": "^10.4.13",
|
|
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
|
|
"babel-plugin-root-import": "^6.6.0",
|
|
"babel-plugin-transform-import-meta": "^2.2.1",
|
|
"babel-plugin-transform-vite-meta-env": "^1.0.3",
|
|
"eslint-plugin-jest": "^27.2.1",
|
|
"identity-obj-proxy": "^3.0.0",
|
|
"jest": "^29.5.0",
|
|
"jest-canvas-mock": "^2.5.1",
|
|
"jest-environment-jsdom": "^29.5.0",
|
|
"jest-file-loader": "^1.0.3",
|
|
"jest-junit": "^16.0.0",
|
|
"postcss": "^8.4.31",
|
|
"postcss-loader": "^7.1.0",
|
|
"postcss-preset-env": "^8.2.0",
|
|
"tailwindcss": "^3.4.1",
|
|
"ts-jest": "^29.1.0",
|
|
"typescript": "^5.0.4",
|
|
"vite": "^5.1.1",
|
|
"vite-plugin-node-polyfills": "^0.17.0",
|
|
"vite-plugin-pwa": "^0.19.8"
|
|
}
|
|
}
|