mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-26 05:08:50 +01:00
* refactor: move model definitions and database-related methods to packages/data-schemas * ci: update tests due to new DB structure fix: disable mocking `librechat-data-provider` feat: Add schema exports to data-schemas package - Introduced a new schema module that exports various schemas including action, agent, and user schemas. - Updated index.ts to include the new schema exports for better modularity and organization. ci: fix appleStrategy tests fix: Agent.spec.js ci: refactor handleTools tests to use MongoMemoryServer for in-memory database fix: getLogStores imports ci: update banViolation tests to use MongoMemoryServer and improve session mocking test: refactor samlStrategy tests to improve mock configurations and user handling ci: fix crypto mock in handleText tests for improved accuracy ci: refactor spendTokens tests to improve model imports and setup ci: refactor Message model tests to use MongoMemoryServer and improve database interactions * refactor: streamline IMessage interface and move feedback properties to types/message.ts * refactor: use exported initializeRoles from `data-schemas`, remove api workspace version (this serves as an example of future migrations that still need to happen) * refactor: update model imports to use destructuring from `~/db/models` for consistency and clarity * refactor: remove unused mongoose imports from model files for cleaner code * refactor: remove unused mongoose imports from Share, Prompt, and Transaction model files for cleaner code * refactor: remove unused import in Transaction model for cleaner code * ci: update deploy workflow to reference new Docker Dev Branch Images Build and add new workflow for building Docker images on dev branch * chore: cleanup imports
84 lines
2.3 KiB
JSON
84 lines
2.3 KiB
JSON
{
|
|
"name": "@librechat/data-schemas",
|
|
"version": "0.0.7",
|
|
"description": "Mongoose schemas and models for LibreChat",
|
|
"type": "module",
|
|
"main": "dist/index.cjs",
|
|
"module": "dist/index.es.js",
|
|
"types": "./dist/types/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.es.js",
|
|
"require": "./dist/index.cjs",
|
|
"types": "./dist/types/index.d.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"clean": "rimraf dist",
|
|
"build": "npm run clean && rollup -c --silent --bundleConfigAsCjs",
|
|
"build:watch": "rollup -c -w",
|
|
"test": "jest --coverage --watch",
|
|
"test:ci": "jest --coverage --ci",
|
|
"verify": "npm run test:ci",
|
|
"b:clean": "bun run rimraf dist",
|
|
"b:build": "bun run b:clean && bun run rollup -c --silent --bundleConfigAsCjs"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/danny-avila/LibreChat.git"
|
|
},
|
|
"author": "",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/danny-avila/LibreChat/issues"
|
|
},
|
|
"homepage": "https://librechat.ai",
|
|
"devDependencies": {
|
|
"@rollup/plugin-alias": "^5.1.0",
|
|
"@rollup/plugin-commonjs": "^25.0.2",
|
|
"@rollup/plugin-json": "^6.1.0",
|
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
"@rollup/plugin-replace": "^5.0.5",
|
|
"@rollup/plugin-terser": "^0.4.4",
|
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
"@types/diff": "^6.0.0",
|
|
"@types/express": "^5.0.0",
|
|
"@types/jest": "^29.5.2",
|
|
"@types/node": "^20.3.0",
|
|
"@types/traverse": "^0.6.37",
|
|
"jest": "^29.5.0",
|
|
"jest-junit": "^16.0.0",
|
|
"rimraf": "^5.0.1",
|
|
"rollup": "^4.22.4",
|
|
"rollup-plugin-generate-package-json": "^3.2.0",
|
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
"rollup-plugin-typescript2": "^0.35.0",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.0.4"
|
|
},
|
|
"peerDependencies": {
|
|
"keyv": "^5.3.2",
|
|
"mongoose": "^8.12.1",
|
|
"librechat-data-provider": "*",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"klona": "^2.0.6",
|
|
"lodash": "^4.17.21",
|
|
"meilisearch": "^0.38.0",
|
|
"traverse": "^0.6.11",
|
|
"winston": "^3.17.0",
|
|
"winston-daily-rotate-file": "^5.0.0"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/",
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"mongoose",
|
|
"schema",
|
|
"typescript",
|
|
"librechat"
|
|
]
|
|
}
|