diff --git a/docs/docs/server/openapi.yaml b/docs/docs/server/openapi.yaml index 3dd79f50d..4431f72fd 100644 --- a/docs/docs/server/openapi.yaml +++ b/docs/docs/server/openapi.yaml @@ -39,7 +39,13 @@ paths: post: operationId: addMessage summary: Add message to the conversation - description: Add a message to the conversation and get a response back from chatbot. + description: | + Add a message to the conversation and get a response back from chatbot. + + You can configure your server to create new conversations + when you set the conversation ID to `null`. + If you do this, the server creates a new conversation + and returns the conversation ID in the response's `metadata.conversationId` field. parameters: - $ref: "#/components/parameters/conversationId" - name: stream @@ -218,6 +224,7 @@ components: type: object required: - id + - conversationId - role - content - createdAt @@ -225,6 +232,9 @@ components: id: type: string description: The unique identifier for a message. + conversationId: + type: string + description: The unique identifier for a conversation. role: type: string enum: [user, assistant] diff --git a/package-lock.json b/package-lock.json index 4708d90ac..7bd4de234 100644 --- a/package-lock.json +++ b/package-lock.json @@ -301,6 +301,7 @@ "version": "3.0.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", @@ -310,12 +311,14 @@ "node_modules/@aws-crypto/crc32/node_modules/tslib": { "version": "1.14.1", "license": "0BSD", - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/ie11-detection": { "version": "3.0.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "tslib": "^1.11.1" } @@ -323,12 +326,14 @@ "node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { "version": "1.14.1", "license": "0BSD", - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/sha256-browser": { "version": "3.0.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-crypto/ie11-detection": "^3.0.0", "@aws-crypto/sha256-js": "^3.0.0", @@ -343,12 +348,14 @@ "node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { "version": "1.14.1", "license": "0BSD", - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/sha256-js": { "version": "3.0.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", @@ -358,12 +365,14 @@ "node_modules/@aws-crypto/sha256-js/node_modules/tslib": { "version": "1.14.1", "license": "0BSD", - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/supports-web-crypto": { "version": "3.0.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "tslib": "^1.11.1" } @@ -371,12 +380,14 @@ "node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { "version": "1.14.1", "license": "0BSD", - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-crypto/util": { "version": "3.0.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "^3.222.0", "@aws-sdk/util-utf8-browser": "^3.0.0", @@ -386,12 +397,14 @@ "node_modules/@aws-crypto/util/node_modules/tslib": { "version": "1.14.1", "license": "0BSD", - "optional": true + "optional": true, + "peer": true }, "node_modules/@aws-sdk/client-cognito-identity": { "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -442,6 +455,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -489,6 +503,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -541,6 +556,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", @@ -593,6 +609,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/core": "^1.3.1", "@smithy/protocol-http": "^3.1.1", @@ -609,6 +626,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/client-cognito-identity": "3.511.0", "@aws-sdk/types": "3.511.0", @@ -624,6 +642,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/property-provider": "^2.1.1", @@ -638,6 +657,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/fetch-http-handler": "^2.4.1", @@ -657,6 +677,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/client-sts": "3.511.0", "@aws-sdk/credential-provider-env": "3.511.0", @@ -678,6 +699,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/credential-provider-env": "3.511.0", "@aws-sdk/credential-provider-http": "3.511.0", @@ -700,6 +722,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/property-provider": "^2.1.1", @@ -715,6 +738,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/client-sso": "3.511.0", "@aws-sdk/token-providers": "3.511.0", @@ -732,6 +756,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/client-sts": "3.511.0", "@aws-sdk/types": "3.511.0", @@ -747,6 +772,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/client-cognito-identity": "3.511.0", "@aws-sdk/client-sso": "3.511.0", @@ -773,6 +799,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/protocol-http": "^3.1.1", @@ -787,6 +814,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/types": "^2.9.1", @@ -800,6 +828,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/protocol-http": "^3.1.1", @@ -814,6 +843,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/property-provider": "^2.1.1", @@ -831,6 +861,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@aws-sdk/util-endpoints": "3.511.0", @@ -846,6 +877,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/node-config-provider": "^2.2.1", @@ -862,6 +894,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/client-sso-oidc": "3.511.0", "@aws-sdk/types": "3.511.0", @@ -877,6 +910,8 @@ "node_modules/@aws-sdk/types": { "version": "3.511.0", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -889,6 +924,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/types": "^2.9.1", @@ -903,6 +939,7 @@ "version": "3.495.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -914,6 +951,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/types": "^2.9.1", @@ -925,6 +963,7 @@ "version": "3.511.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-sdk/types": "3.511.0", "@smithy/node-config-provider": "^2.2.1", @@ -947,6 +986,7 @@ "version": "3.259.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.3.1" } @@ -1132,6 +1172,7 @@ }, "node_modules/@babel/compat-data": { "version": "7.23.5", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -1139,6 +1180,7 @@ }, "node_modules/@babel/core": { "version": "7.23.9", + "dev": true, "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", @@ -1167,10 +1209,12 @@ }, "node_modules/@babel/core/node_modules/convert-source-map": { "version": "2.0.0", + "dev": true, "license": "MIT" }, "node_modules/@babel/generator": { "version": "7.23.6", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.23.6", @@ -1206,6 +1250,7 @@ }, "node_modules/@babel/helper-compilation-targets": { "version": "7.23.6", + "dev": true, "license": "MIT", "dependencies": { "@babel/compat-data": "^7.23.5", @@ -1273,6 +1318,7 @@ }, "node_modules/@babel/helper-environment-visitor": { "version": "7.22.20", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -1280,6 +1326,7 @@ }, "node_modules/@babel/helper-function-name": { "version": "7.23.0", + "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.22.15", @@ -1291,6 +1338,7 @@ }, "node_modules/@babel/helper-hoist-variables": { "version": "7.22.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" @@ -1322,6 +1370,7 @@ }, "node_modules/@babel/helper-module-transforms": { "version": "7.23.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", @@ -1350,6 +1399,7 @@ }, "node_modules/@babel/helper-plugin-utils": { "version": "7.22.5", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -1389,6 +1439,7 @@ }, "node_modules/@babel/helper-simple-access": { "version": "7.22.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" @@ -1410,6 +1461,7 @@ }, "node_modules/@babel/helper-split-export-declaration": { "version": "7.22.6", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" @@ -1434,6 +1486,7 @@ }, "node_modules/@babel/helper-validator-option": { "version": "7.23.5", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -1454,6 +1507,7 @@ }, "node_modules/@babel/helpers": { "version": "7.23.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.23.9", @@ -1604,6 +1658,7 @@ }, "node_modules/@babel/plugin-syntax-async-generators": { "version": "7.8.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -1614,6 +1669,7 @@ }, "node_modules/@babel/plugin-syntax-bigint": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -1624,6 +1680,7 @@ }, "node_modules/@babel/plugin-syntax-class-properties": { "version": "7.12.13", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" @@ -1712,6 +1769,7 @@ }, "node_modules/@babel/plugin-syntax-import-meta": { "version": "7.10.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" @@ -1722,6 +1780,7 @@ }, "node_modules/@babel/plugin-syntax-json-strings": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -1732,6 +1791,7 @@ }, "node_modules/@babel/plugin-syntax-jsx": { "version": "7.23.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1745,6 +1805,7 @@ }, "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" @@ -1755,6 +1816,7 @@ }, "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -1765,6 +1827,7 @@ }, "node_modules/@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" @@ -1775,6 +1838,7 @@ }, "node_modules/@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -1785,6 +1849,7 @@ }, "node_modules/@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -1795,6 +1860,7 @@ }, "node_modules/@babel/plugin-syntax-optional-chaining": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -1819,6 +1885,7 @@ }, "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" @@ -1832,6 +1899,7 @@ }, "node_modules/@babel/plugin-syntax-typescript": { "version": "7.23.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -2947,6 +3015,7 @@ }, "node_modules/@babel/template": { "version": "7.23.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.23.5", @@ -2959,6 +3028,7 @@ }, "node_modules/@babel/traverse": { "version": "7.23.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.23.5", @@ -2995,6 +3065,7 @@ }, "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", + "dev": true, "license": "MIT" }, "node_modules/@braintrust/core": { @@ -3023,7 +3094,7 @@ }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.9" @@ -3034,7 +3105,7 @@ }, "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { "version": "0.3.9", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", @@ -3050,26 +3121,6 @@ "kuler": "^2.0.0" } }, - "node_modules/@datastax/astra-db-ts": { - "version": "0.1.4", - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "axios": "^1.4.0", - "bson": "^6.2.0", - "winston": "^3.7.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@datastax/astra-db-ts/node_modules/bson": { - "version": "6.4.0", - "license": "Apache-2.0", - "engines": { - "node": ">=16.20.1" - } - }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", "dev": true, @@ -3352,6 +3403,8 @@ "node_modules/@huggingface/jinja": { "version": "0.2.2", "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=18" } @@ -3464,6 +3517,7 @@ }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", + "dev": true, "license": "ISC", "dependencies": { "camelcase": "^5.3.1", @@ -3478,6 +3532,7 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { "version": "4.1.0", + "dev": true, "license": "MIT", "dependencies": { "locate-path": "^5.0.0", @@ -3489,6 +3544,7 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { "version": "5.0.0", + "dev": true, "license": "MIT", "dependencies": { "p-locate": "^4.1.0" @@ -3499,6 +3555,7 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { "version": "2.3.0", + "dev": true, "license": "MIT", "dependencies": { "p-try": "^2.0.0" @@ -3512,6 +3569,7 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { "version": "4.1.0", + "dev": true, "license": "MIT", "dependencies": { "p-limit": "^2.2.0" @@ -3522,6 +3580,7 @@ }, "node_modules/@istanbuljs/schema": { "version": "0.1.3", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -3529,6 +3588,7 @@ }, "node_modules/@jest/console": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -3544,6 +3604,7 @@ }, "node_modules/@jest/core": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", @@ -3589,6 +3650,7 @@ }, "node_modules/@jest/core/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -3599,6 +3661,7 @@ }, "node_modules/@jest/core/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -3611,6 +3674,7 @@ }, "node_modules/@jest/environment": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/fake-timers": "^29.7.0", @@ -3624,6 +3688,7 @@ }, "node_modules/@jest/environment/node_modules/jest-mock": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -3636,6 +3701,7 @@ }, "node_modules/@jest/expect": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "expect": "^29.7.0", @@ -3647,6 +3713,7 @@ }, "node_modules/@jest/expect-utils": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3" @@ -3657,6 +3724,7 @@ }, "node_modules/@jest/fake-timers": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -3672,6 +3740,7 @@ }, "node_modules/@jest/fake-timers/node_modules/jest-mock": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -3684,6 +3753,7 @@ }, "node_modules/@jest/globals": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", @@ -3697,6 +3767,7 @@ }, "node_modules/@jest/globals/node_modules/jest-mock": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -3709,6 +3780,7 @@ }, "node_modules/@jest/reporters": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", @@ -3750,6 +3822,7 @@ }, "node_modules/@jest/reporters/node_modules/glob": { "version": "7.2.3", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -3768,6 +3841,7 @@ }, "node_modules/@jest/reporters/node_modules/istanbul-lib-instrument": { "version": "6.0.1", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.12.3", @@ -3782,6 +3856,7 @@ }, "node_modules/@jest/reporters/node_modules/lru-cache": { "version": "6.0.0", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -3792,6 +3867,7 @@ }, "node_modules/@jest/reporters/node_modules/semver": { "version": "7.6.0", + "dev": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -3805,10 +3881,12 @@ }, "node_modules/@jest/reporters/node_modules/yallist": { "version": "4.0.0", + "dev": true, "license": "ISC" }, "node_modules/@jest/schemas": { "version": "29.6.3", + "dev": true, "license": "MIT", "dependencies": { "@sinclair/typebox": "^0.27.8" @@ -3819,6 +3897,7 @@ }, "node_modules/@jest/source-map": { "version": "29.6.3", + "dev": true, "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.18", @@ -3831,6 +3910,7 @@ }, "node_modules/@jest/test-result": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", @@ -3844,6 +3924,7 @@ }, "node_modules/@jest/test-sequencer": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", @@ -3857,6 +3938,7 @@ }, "node_modules/@jest/transform": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", @@ -3881,10 +3963,12 @@ }, "node_modules/@jest/transform/node_modules/convert-source-map": { "version": "2.0.0", + "dev": true, "license": "MIT" }, "node_modules/@jest/types": { "version": "29.6.3", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -7340,19 +7424,14 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@mistralai/mistralai": { - "version": "0.0.10", - "license": "ISC", - "dependencies": { - "node-fetch": "^2.6.7" - } - }, "node_modules/@mixmark-io/domino": { "version": "2.2.0", "license": "BSD-2-Clause" }, "node_modules/@mongodb-js/saslprep": { - "version": "1.1.8", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.9.tgz", + "integrity": "sha512-tVkljjeEaAhCqTzajSdgbQ6gE6f3oneVwa3iXR6csiEwXXOFsiC6Uh9iAjAhXPtqa/XMDHWjjeNH/77m/Yq2dw==", "license": "MIT", "dependencies": { "sparse-bitfield": "^3.0.3" @@ -7404,6 +7483,8 @@ "node_modules/@notionhq/client": { "version": "2.2.14", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@types/node-fetch": "^2.5.10", "node-fetch": "^2.6.1" @@ -8099,6 +8180,8 @@ "node_modules/@pinecone-database/pinecone": { "version": "2.0.1", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "@sinclair/typebox": "^0.29.0", "ajv": "^8.12.0", @@ -8111,11 +8194,15 @@ }, "node_modules/@pinecone-database/pinecone/node_modules/@sinclair/typebox": { "version": "0.29.6", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@pinecone-database/pinecone/node_modules/ajv": { "version": "8.12.0", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", @@ -8129,7 +8216,9 @@ }, "node_modules/@pinecone-database/pinecone/node_modules/json-schema-traverse": { "version": "1.0.0", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", @@ -8416,23 +8505,33 @@ }, "node_modules/@protobufjs/aspromise": { "version": "1.1.2", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/@protobufjs/base64": { "version": "1.1.2", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/@protobufjs/codegen": { "version": "2.0.4", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/@protobufjs/eventemitter": { "version": "1.1.0", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/@protobufjs/fetch": { "version": "1.1.0", "license": "BSD-3-Clause", + "optional": true, + "peer": true, "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -8440,27 +8539,39 @@ }, "node_modules/@protobufjs/float": { "version": "1.0.2", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/@protobufjs/inquire": { "version": "1.1.0", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/@protobufjs/path": { "version": "1.1.2", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/@protobufjs/pool": { "version": "1.1.0", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/@protobufjs/utf8": { "version": "1.1.0", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/@qdrant/js-client-rest": { "version": "1.10.0", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "@qdrant/openapi-typescript-fetch": "1.2.6", "@sevinf/maybe": "0.5.0", @@ -8477,6 +8588,8 @@ "node_modules/@qdrant/openapi-typescript-fetch": { "version": "1.2.6", "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=18.0.0", "pnpm": ">=8" @@ -9263,10 +9376,13 @@ }, "node_modules/@sevinf/maybe": { "version": "0.5.0", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@sinclair/typebox": { "version": "0.27.8", + "dev": true, "license": "MIT" }, "node_modules/@sindresorhus/is": { @@ -9281,6 +9397,7 @@ }, "node_modules/@sinonjs/commons": { "version": "3.0.1", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" @@ -9288,6 +9405,7 @@ }, "node_modules/@sinonjs/fake-timers": { "version": "10.3.0", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^3.0.0" @@ -9297,6 +9415,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -9309,6 +9428,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/node-config-provider": "^2.2.1", "@smithy/types": "^2.9.1", @@ -9324,6 +9444,7 @@ "version": "1.3.2", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/middleware-endpoint": "^2.4.1", "@smithy/middleware-retry": "^2.1.1", @@ -9342,6 +9463,7 @@ "version": "2.2.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/node-config-provider": "^2.2.1", "@smithy/property-provider": "^2.1.1", @@ -9357,6 +9479,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@aws-crypto/crc32": "3.0.0", "@smithy/types": "^2.9.1", @@ -9368,6 +9491,7 @@ "version": "2.4.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/protocol-http": "^3.1.1", "@smithy/querystring-builder": "^2.1.1", @@ -9380,6 +9504,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "@smithy/util-buffer-from": "^2.1.1", @@ -9394,6 +9519,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -9402,6 +9528,8 @@ "node_modules/@smithy/is-array-buffer": { "version": "2.1.1", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -9413,6 +9541,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/protocol-http": "^3.1.1", "@smithy/types": "^2.9.1", @@ -9426,6 +9555,7 @@ "version": "2.4.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/middleware-serde": "^2.1.1", "@smithy/node-config-provider": "^2.2.1", @@ -9443,6 +9573,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/node-config-provider": "^2.2.1", "@smithy/protocol-http": "^3.1.1", @@ -9462,6 +9593,7 @@ "version": "8.3.2", "license": "MIT", "optional": true, + "peer": true, "bin": { "uuid": "dist/bin/uuid" } @@ -9470,6 +9602,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -9482,6 +9615,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -9494,6 +9628,7 @@ "version": "2.2.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/property-provider": "^2.1.1", "@smithy/shared-ini-file-loader": "^2.3.1", @@ -9508,6 +9643,7 @@ "version": "2.3.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/abort-controller": "^2.1.1", "@smithy/protocol-http": "^3.1.1", @@ -9523,6 +9659,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -9535,6 +9672,7 @@ "version": "3.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -9547,6 +9685,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "@smithy/util-uri-escape": "^2.1.1", @@ -9560,6 +9699,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -9572,6 +9712,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1" }, @@ -9583,6 +9724,7 @@ "version": "2.3.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -9595,6 +9737,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/eventstream-codec": "^2.1.1", "@smithy/is-array-buffer": "^2.1.1", @@ -9613,6 +9756,7 @@ "version": "2.3.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/middleware-endpoint": "^2.4.1", "@smithy/middleware-stack": "^2.1.1", @@ -9628,6 +9772,8 @@ "node_modules/@smithy/types": { "version": "2.9.1", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -9639,6 +9785,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/querystring-parser": "^2.1.1", "@smithy/types": "^2.9.1", @@ -9649,6 +9796,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/util-buffer-from": "^2.1.1", "tslib": "^2.5.0" @@ -9661,6 +9809,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" } @@ -9669,6 +9818,7 @@ "version": "2.2.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -9679,6 +9829,8 @@ "node_modules/@smithy/util-buffer-from": { "version": "2.1.1", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "@smithy/is-array-buffer": "^2.1.1", "tslib": "^2.5.0" @@ -9691,6 +9843,7 @@ "version": "2.2.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -9702,6 +9855,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/property-provider": "^2.1.1", "@smithy/smithy-client": "^2.3.1", @@ -9717,6 +9871,7 @@ "version": "2.2.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/config-resolver": "^2.1.1", "@smithy/credential-provider-imds": "^2.2.1", @@ -9734,6 +9889,7 @@ "version": "1.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/node-config-provider": "^2.2.1", "@smithy/types": "^2.9.1", @@ -9747,6 +9903,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -9758,6 +9915,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/types": "^2.9.1", "tslib": "^2.5.0" @@ -9770,6 +9928,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/service-error-classification": "^2.1.1", "@smithy/types": "^2.9.1", @@ -9783,6 +9942,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@smithy/fetch-http-handler": "^2.4.1", "@smithy/node-http-handler": "^2.3.1", @@ -9801,6 +9961,7 @@ "version": "2.1.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.5.0" }, @@ -9811,6 +9972,8 @@ "node_modules/@smithy/util-utf8": { "version": "2.1.1", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "@smithy/util-buffer-from": "^2.1.1", "tslib": "^2.5.0" @@ -16450,7 +16613,8 @@ }, "node_modules/@tokenizer/token": { "version": "0.3.0", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@tootallnate/once": { "version": "2.0.0", @@ -16465,22 +16629,22 @@ }, "node_modules/@tsconfig/node10": { "version": "1.0.9", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/@tsconfig/node12": { "version": "1.0.11", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/@tsconfig/node14": { "version": "1.0.3", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/@tsconfig/node16": { "version": "1.0.4", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/@types/aria-query": { @@ -16489,6 +16653,7 @@ }, "node_modules/@types/babel__core": { "version": "7.20.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/parser": "^7.20.7", @@ -16500,6 +16665,7 @@ }, "node_modules/@types/babel__generator": { "version": "7.6.8", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.0.0" @@ -16507,6 +16673,7 @@ }, "node_modules/@types/babel__template": { "version": "7.4.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/parser": "^7.1.0", @@ -16515,6 +16682,7 @@ }, "node_modules/@types/babel__traverse": { "version": "7.20.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.20.7" @@ -16706,6 +16874,7 @@ }, "node_modules/@types/graceful-fs": { "version": "4.1.9", + "dev": true, "license": "MIT", "dependencies": { "@types/node": "*" @@ -16741,10 +16910,12 @@ }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.6", + "dev": true, "license": "MIT" }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.3", + "dev": true, "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "*" @@ -16752,6 +16923,7 @@ }, "node_modules/@types/istanbul-reports": { "version": "3.0.4", + "dev": true, "license": "MIT", "dependencies": { "@types/istanbul-lib-report": "*" @@ -16820,15 +16992,9 @@ }, "node_modules/@types/lodash": { "version": "4.14.202", + "dev": true, "license": "MIT" }, - "node_modules/@types/lodash-es": { - "version": "4.17.12", - "license": "MIT", - "dependencies": { - "@types/lodash": "*" - } - }, "node_modules/@types/lodash.clonedeep": { "version": "4.5.9", "dev": true, @@ -16839,7 +17005,9 @@ }, "node_modules/@types/long": { "version": "4.0.2", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@types/mdast": { "version": "3.0.15", @@ -16904,6 +17072,7 @@ }, "node_modules/@types/papaparse": { "version": "5.3.14", + "dev": true, "license": "MIT", "dependencies": { "@types/node": "*" @@ -16913,15 +17082,6 @@ "version": "4.0.2", "license": "MIT" }, - "node_modules/@types/pg": { - "version": "8.11.2", - "license": "MIT", - "dependencies": { - "@types/node": "*", - "pg-protocol": "*", - "pg-types": "^4.0.1" - } - }, "node_modules/@types/pretty-hrtime": { "version": "1.0.3", "dev": true, @@ -16933,6 +17093,7 @@ }, "node_modules/@types/qs": { "version": "6.9.12", + "dev": true, "license": "MIT" }, "node_modules/@types/range-parser": { @@ -17032,6 +17193,7 @@ }, "node_modules/@types/stack-utils": { "version": "2.0.3", + "dev": true, "license": "MIT" }, "node_modules/@types/stream-chain": { @@ -17104,6 +17266,7 @@ }, "node_modules/@types/yargs": { "version": "17.0.32", + "dev": true, "license": "MIT", "dependencies": { "@types/yargs-parser": "*" @@ -17111,6 +17274,7 @@ }, "node_modules/@types/yargs-parser": { "version": "21.0.3", + "dev": true, "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { @@ -17662,6 +17826,8 @@ "node_modules/@xenova/transformers": { "version": "2.17.2", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "@huggingface/jinja": "^0.2.2", "onnxruntime-web": "1.14.0", @@ -17674,6 +17840,8 @@ "node_modules/@xmldom/xmldom": { "version": "0.8.10", "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=10.0.0" } @@ -17999,10 +18167,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/any-promise": { - "version": "1.3.0", - "license": "MIT" - }, "node_modules/anymatch": { "version": "3.1.3", "license": "ISC", @@ -18059,7 +18223,7 @@ }, "node_modules/arg": { "version": "4.1.3", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/argparse": { @@ -18181,6 +18345,7 @@ }, "node_modules/asap": { "version": "2.0.6", + "dev": true, "license": "MIT" }, "node_modules/asn1": { @@ -18209,6 +18374,8 @@ "node_modules/assemblyai": { "version": "4.7.1", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "ws": "^8.18.0" }, @@ -18282,11 +18449,13 @@ } }, "node_modules/async-mutex": { - "version": "0.3.2", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.5.0.tgz", + "integrity": "sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA==", "dev": true, "license": "MIT", "dependencies": { - "tslib": "^2.3.1" + "tslib": "^2.4.0" } }, "node_modules/async-retry": { @@ -18358,6 +18527,7 @@ }, "node_modules/b4a": { "version": "1.6.6", + "devOptional": true, "license": "Apache-2.0" }, "node_modules/babel-core": { @@ -18370,6 +18540,7 @@ }, "node_modules/babel-jest": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/transform": "^29.7.0", @@ -18389,6 +18560,7 @@ }, "node_modules/babel-plugin-istanbul": { "version": "6.1.1", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", @@ -18403,6 +18575,7 @@ }, "node_modules/babel-plugin-jest-hoist": { "version": "29.6.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.3.3", @@ -18465,6 +18638,7 @@ }, "node_modules/babel-preset-current-node-syntax": { "version": "1.0.1", + "dev": true, "license": "MIT", "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", @@ -18486,6 +18660,7 @@ }, "node_modules/babel-preset-jest": { "version": "29.6.3", + "dev": true, "license": "MIT", "dependencies": { "babel-plugin-jest-hoist": "^29.6.3", @@ -18519,6 +18694,7 @@ "version": "2.2.1", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "bare-events": "^2.0.0", "bare-os": "^2.0.0", @@ -18529,19 +18705,18 @@ "node_modules/bare-os": { "version": "2.2.0", "license": "Apache-2.0", - "optional": true + "optional": true, + "peer": true }, "node_modules/bare-path": { "version": "2.1.0", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "bare-os": "^2.1.0" } }, - "node_modules/base-64": { - "version": "0.1.0" - }, "node_modules/base64-js": { "version": "1.5.1", "funding": [ @@ -18690,7 +18865,9 @@ }, "node_modules/bluebird": { "version": "3.4.7", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/bn.js": { "version": "5.2.1", @@ -18750,7 +18927,8 @@ "node_modules/bowser": { "version": "2.11.0", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/boxen": { "version": "7.1.1", @@ -18858,12 +19036,7 @@ "node_modules/braintrust/node_modules/@ai-sdk/provider": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.0.1.tgz", - "license": "Apache-2.0", - "node_modules/braintrust/node_modules/@braintrust/core": { - "version": "0.0.60", - "license": "MIT", - "node": ">=18" - } + "license": "Apache-2.0" }, "node_modules/braintrust/node_modules/@esbuild/android-arm": { "version": "0.18.20", @@ -19480,6 +19653,7 @@ }, "node_modules/browserslist": { "version": "4.22.3", + "dev": true, "funding": [ { "type": "opencollective", @@ -19521,43 +19695,19 @@ }, "node_modules/bser": { "version": "2.1.1", + "dev": true, "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } }, "node_modules/bson": { - "version": "4.7.2", - "dev": true, + "version": "6.10.1", + "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.1.tgz", + "integrity": "sha512-P92xmHDQjSKPLHqFxefqMxASNq/aWJMEZugpCjf+AF/pgcUpMMQCg7t7+ewko0/u8AapvF3luf/FoehddEK+sA==", "license": "Apache-2.0", - "dependencies": { - "buffer": "^5.6.0" - }, "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/bson/node_modules/buffer": { - "version": "5.7.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" + "node": ">=16.20.1" } }, "node_modules/buffer": { @@ -19602,6 +19752,8 @@ "node_modules/buffer-writer": { "version": "2.0.0", "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=4" } @@ -19879,6 +20031,7 @@ }, "node_modules/caniuse-lite": { "version": "1.0.30001587", + "dev": true, "funding": [ { "type": "opencollective", @@ -19932,6 +20085,7 @@ }, "node_modules/char-regex": { "version": "1.0.2", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -19949,13 +20103,6 @@ "version": "0.7.0", "license": "MIT" }, - "node_modules/charenc": { - "version": "0.0.2", - "license": "BSD-3-Clause", - "engines": { - "node": "*" - } - }, "node_modules/charm": { "version": "0.1.2", "license": "MIT/X11" @@ -20023,6 +20170,8 @@ "node_modules/chromadb": { "version": "1.7.3", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "cliui": "^8.0.1", "isomorphic-fetch": "^3.0.0" @@ -20050,6 +20199,8 @@ "node_modules/chromadb/node_modules/cliui": { "version": "8.0.1", "license": "ISC", + "optional": true, + "peer": true, "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -20061,11 +20212,15 @@ }, "node_modules/chromadb/node_modules/emoji-regex": { "version": "8.0.0", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/chromadb/node_modules/string-width": { "version": "4.2.3", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -20078,6 +20233,8 @@ "node_modules/chromadb/node_modules/wrap-ansi": { "version": "7.0.0", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -20122,6 +20279,7 @@ }, "node_modules/cjs-module-lexer": { "version": "1.2.3", + "dev": true, "license": "MIT" }, "node_modules/clean-stack": { @@ -20360,6 +20518,7 @@ }, "node_modules/co": { "version": "4.6.0", + "dev": true, "license": "MIT", "engines": { "iojs": ">= 1.0.0", @@ -20397,18 +20556,10 @@ "@types/estree": "^1.0.0" } }, - "node_modules/codsen-utils": { - "version": "1.6.4", - "license": "MIT", - "dependencies": { - "rfdc": "^1.3.1" - }, - "engines": { - "node": ">=14.18.0" - } - }, "node_modules/cohere-ai": { "version": "7.7.5", + "optional": true, + "peer": true, "dependencies": { "form-data": "4.0.0", "js-base64": "3.7.2", @@ -20419,10 +20570,13 @@ }, "node_modules/cohere-ai/node_modules/url-join": { "version": "4.0.1", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/collect-v8-coverage": { "version": "1.0.2", + "dev": true, "license": "MIT" }, "node_modules/color": { @@ -20574,6 +20728,7 @@ }, "node_modules/component-emitter": { "version": "1.3.1", + "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -21033,6 +21188,7 @@ }, "node_modules/cookiejar": { "version": "2.1.4", + "dev": true, "license": "MIT" }, "node_modules/core-js": { @@ -21122,6 +21278,7 @@ }, "node_modules/create-jest": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -21141,7 +21298,7 @@ }, "node_modules/create-require": { "version": "1.1.1", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/croner": { @@ -21151,6 +21308,8 @@ "node_modules/cross-fetch": { "version": "3.1.8", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "node-fetch": "^2.6.12" } @@ -21167,13 +21326,6 @@ "node": ">= 8" } }, - "node_modules/crypt": { - "version": "0.0.2", - "license": "BSD-3-Clause", - "engines": { - "node": "*" - } - }, "node_modules/crypto-browserify": { "version": "3.12.0", "dev": true, @@ -21845,12 +21997,15 @@ "node_modules/detect-libc": { "version": "2.0.2", "license": "Apache-2.0", + "optional": true, + "peer": true, "engines": { "node": ">=8" } }, "node_modules/detect-newline": { "version": "3.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -21898,6 +22053,7 @@ }, "node_modules/dezalgo": { "version": "1.0.4", + "dev": true, "license": "ISC", "dependencies": { "asap": "^2.0.0", @@ -21906,7 +22062,7 @@ }, "node_modules/diff": { "version": "4.0.2", - "devOptional": true, + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" @@ -21918,6 +22074,7 @@ }, "node_modules/diff-sequences": { "version": "29.6.3", + "dev": true, "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" @@ -21938,14 +22095,6 @@ "dev": true, "license": "MIT" }, - "node_modules/digest-fetch": { - "version": "1.3.0", - "license": "ISC", - "dependencies": { - "base-64": "^0.1.0", - "md5": "^2.3.0" - } - }, "node_modules/digest-header": { "version": "1.1.0", "license": "MIT", @@ -21955,7 +22104,9 @@ }, "node_modules/dingbat-to-unicode": { "version": "1.0.1", - "license": "BSD-2-Clause" + "license": "BSD-2-Clause", + "optional": true, + "peer": true }, "node_modules/dir-glob": { "version": "3.0.1", @@ -22268,13 +22419,17 @@ "node_modules/duck": { "version": "0.1.12", "license": "BSD", + "optional": true, + "peer": true, "dependencies": { "underscore": "^1.13.1" } }, "node_modules/duck/node_modules/underscore": { "version": "1.13.6", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/duplexer": { "version": "0.1.2", @@ -22388,6 +22543,7 @@ }, "node_modules/electron-to-chromium": { "version": "1.4.668", + "dev": true, "license": "ISC" }, "node_modules/elliptic": { @@ -22418,6 +22574,7 @@ }, "node_modules/emittery": { "version": "0.13.1", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -22460,6 +22617,7 @@ "node_modules/encoding": { "version": "0.1.13", "license": "MIT", + "optional": true, "dependencies": { "iconv-lite": "^0.6.2" } @@ -22467,6 +22625,7 @@ "node_modules/encoding/node_modules/iconv-lite": { "version": "0.6.3", "license": "MIT", + "optional": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -23568,6 +23727,7 @@ }, "node_modules/exit": { "version": "0.1.2", + "dev": true, "engines": { "node": ">= 0.8.0" } @@ -23575,12 +23735,15 @@ "node_modules/expand-template": { "version": "2.0.3", "license": "(MIT OR WTFPL)", + "optional": true, + "peer": true, "engines": { "node": ">=6" } }, "node_modules/expect": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/expect-utils": "^29.7.0", @@ -23825,6 +23988,7 @@ }, "node_modules/fast-fifo": { "version": "1.3.2", + "devOptional": true, "license": "MIT" }, "node_modules/fast-glob": { @@ -23866,6 +24030,7 @@ }, "node_modules/fast-safe-stringify": { "version": "2.1.1", + "dev": true, "license": "MIT" }, "node_modules/fast-uri": { @@ -23887,6 +24052,7 @@ ], "license": "MIT", "optional": true, + "peer": true, "dependencies": { "strnum": "^1.0.5" }, @@ -23903,6 +24069,7 @@ }, "node_modules/fb-watchman": { "version": "2.0.2", + "dev": true, "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" @@ -24051,21 +24218,6 @@ "node": ">=14.14" } }, - "node_modules/file-type": { - "version": "18.7.0", - "license": "MIT", - "dependencies": { - "readable-web-to-node-stream": "^3.0.2", - "strtok3": "^7.0.0", - "token-types": "^5.0.1" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/file-type?sponsor=1" - } - }, "node_modules/filelist": { "version": "1.0.4", "dev": true, @@ -24246,7 +24398,9 @@ }, "node_modules/flatbuffers": { "version": "1.12.0", - "license": "SEE LICENSE IN LICENSE.txt" + "license": "SEE LICENSE IN LICENSE.txt", + "optional": true, + "peer": true }, "node_modules/flatted": { "version": "3.2.9", @@ -24380,6 +24534,7 @@ }, "node_modules/formidable": { "version": "2.1.2", + "dev": true, "license": "MIT", "dependencies": { "dezalgo": "^1.0.4", @@ -24433,6 +24588,7 @@ }, "node_modules/fs-constants": { "version": "1.0.0", + "devOptional": true, "license": "MIT" }, "node_modules/fs-extra": { @@ -24474,31 +24630,6 @@ "dev": true, "license": "ISC" }, - "node_modules/fs-promise": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "any-promise": "^1.3.0", - "fs-extra": "^2.0.0", - "mz": "^2.6.0", - "thenify-all": "^1.6.0" - } - }, - "node_modules/fs-promise/node_modules/fs-extra": { - "version": "2.1.2", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0" - } - }, - "node_modules/fs-promise/node_modules/jsonfile": { - "version": "2.4.0", - "license": "MIT", - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "license": "ISC" @@ -24587,6 +24718,7 @@ }, "node_modules/gensync": { "version": "1.0.0-beta.2", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -24642,6 +24774,7 @@ }, "node_modules/get-package-type": { "version": "0.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">=8.0.0" @@ -24878,7 +25011,9 @@ }, "node_modules/github-from-package": { "version": "0.0.0", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/github-slugger": { "version": "1.5.0", @@ -24966,6 +25101,7 @@ }, "node_modules/globals": { "version": "11.12.0", + "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -25077,7 +25213,9 @@ }, "node_modules/guid-typescript": { "version": "1.0.9", - "license": "ISC" + "license": "ISC", + "optional": true, + "peer": true }, "node_modules/gunzip-maybe": { "version": "1.4.2", @@ -25322,6 +25460,7 @@ }, "node_modules/hexoid": { "version": "1.0.0", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -25386,22 +25525,9 @@ "node": ">=12" } }, - "node_modules/html-entities": { - "version": "2.4.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/mdevils" - }, - { - "type": "patreon", - "url": "https://patreon.com/mdevils" - } - ], - "license": "MIT" - }, "node_modules/html-escaper": { "version": "2.0.2", + "dev": true, "license": "MIT" }, "node_modules/html-tags": { @@ -25726,7 +25852,9 @@ }, "node_modules/immediate": { "version": "3.0.6", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/import-fresh": { "version": "3.3.0", @@ -25758,6 +25886,7 @@ }, "node_modules/import-local": { "version": "3.1.0", + "dev": true, "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", @@ -25775,6 +25904,7 @@ }, "node_modules/import-local/node_modules/find-up": { "version": "4.1.0", + "dev": true, "license": "MIT", "dependencies": { "locate-path": "^5.0.0", @@ -25786,6 +25916,7 @@ }, "node_modules/import-local/node_modules/locate-path": { "version": "5.0.0", + "dev": true, "license": "MIT", "dependencies": { "p-locate": "^4.1.0" @@ -25796,6 +25927,7 @@ }, "node_modules/import-local/node_modules/p-limit": { "version": "2.3.0", + "dev": true, "license": "MIT", "dependencies": { "p-try": "^2.0.0" @@ -25809,6 +25941,7 @@ }, "node_modules/import-local/node_modules/p-locate": { "version": "4.1.0", + "dev": true, "license": "MIT", "dependencies": { "p-limit": "^2.2.0" @@ -25819,6 +25952,7 @@ }, "node_modules/import-local/node_modules/pkg-dir": { "version": "4.2.0", + "dev": true, "license": "MIT", "dependencies": { "find-up": "^4.0.0" @@ -26288,6 +26422,7 @@ }, "node_modules/is-generator-fn": { "version": "2.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -26676,6 +26811,8 @@ "node_modules/isomorphic-fetch": { "version": "3.0.0", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "node-fetch": "^2.6.1", "whatwg-fetch": "^3.4.1" @@ -26709,6 +26846,7 @@ }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=8" @@ -26716,6 +26854,7 @@ }, "node_modules/istanbul-lib-instrument": { "version": "5.2.1", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.12.3", @@ -26730,6 +26869,7 @@ }, "node_modules/istanbul-lib-report": { "version": "3.0.1", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", @@ -26742,6 +26882,7 @@ }, "node_modules/istanbul-lib-report/node_modules/lru-cache": { "version": "6.0.0", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -26752,6 +26893,7 @@ }, "node_modules/istanbul-lib-report/node_modules/make-dir": { "version": "4.0.0", + "dev": true, "license": "MIT", "dependencies": { "semver": "^7.5.3" @@ -26765,6 +26907,7 @@ }, "node_modules/istanbul-lib-report/node_modules/semver": { "version": "7.6.0", + "dev": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -26778,10 +26921,12 @@ }, "node_modules/istanbul-lib-report/node_modules/yallist": { "version": "4.0.0", + "dev": true, "license": "ISC" }, "node_modules/istanbul-lib-source-maps": { "version": "4.0.1", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", @@ -26794,6 +26939,7 @@ }, "node_modules/istanbul-lib-source-maps/node_modules/source-map": { "version": "0.6.1", + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -26801,6 +26947,7 @@ }, "node_modules/istanbul-reports": { "version": "3.1.6", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", @@ -26864,6 +27011,7 @@ }, "node_modules/jest": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", @@ -26888,6 +27036,7 @@ }, "node_modules/jest-changed-files": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "execa": "^5.0.0", @@ -26900,6 +27049,7 @@ }, "node_modules/jest-circus": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", @@ -26929,6 +27079,7 @@ }, "node_modules/jest-circus/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -26939,6 +27090,7 @@ }, "node_modules/jest-circus/node_modules/dedent": { "version": "1.5.1", + "dev": true, "license": "MIT", "peerDependencies": { "babel-plugin-macros": "^3.1.0" @@ -26951,6 +27103,7 @@ }, "node_modules/jest-circus/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -26963,6 +27116,7 @@ }, "node_modules/jest-cli": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", @@ -26994,6 +27148,7 @@ }, "node_modules/jest-cli/node_modules/cliui": { "version": "8.0.1", + "dev": true, "license": "ISC", "dependencies": { "string-width": "^4.2.0", @@ -27006,10 +27161,12 @@ }, "node_modules/jest-cli/node_modules/emoji-regex": { "version": "8.0.0", + "dev": true, "license": "MIT" }, "node_modules/jest-cli/node_modules/string-width": { "version": "4.2.3", + "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -27022,6 +27179,7 @@ }, "node_modules/jest-cli/node_modules/wrap-ansi": { "version": "7.0.0", + "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", @@ -27037,6 +27195,7 @@ }, "node_modules/jest-cli/node_modules/yargs": { "version": "17.7.2", + "dev": true, "license": "MIT", "dependencies": { "cliui": "^8.0.1", @@ -27053,6 +27212,7 @@ }, "node_modules/jest-cli/node_modules/yargs-parser": { "version": "21.1.1", + "dev": true, "license": "ISC", "engines": { "node": ">=12" @@ -27060,6 +27220,7 @@ }, "node_modules/jest-config": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", @@ -27103,6 +27264,7 @@ }, "node_modules/jest-config/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -27113,6 +27275,7 @@ }, "node_modules/jest-config/node_modules/glob": { "version": "7.2.3", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -27131,6 +27294,7 @@ }, "node_modules/jest-config/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -27143,6 +27307,7 @@ }, "node_modules/jest-diff": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "chalk": "^4.0.0", @@ -27156,6 +27321,7 @@ }, "node_modules/jest-diff/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -27166,6 +27332,7 @@ }, "node_modules/jest-diff/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -27178,6 +27345,7 @@ }, "node_modules/jest-docblock": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" @@ -27188,6 +27356,7 @@ }, "node_modules/jest-each": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -27202,6 +27371,7 @@ }, "node_modules/jest-each/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -27212,6 +27382,7 @@ }, "node_modules/jest-each/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -27224,6 +27395,7 @@ }, "node_modules/jest-environment-node": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", @@ -27239,6 +27411,7 @@ }, "node_modules/jest-environment-node/node_modules/jest-mock": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -27251,6 +27424,7 @@ }, "node_modules/jest-get-type": { "version": "29.6.3", + "dev": true, "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" @@ -27258,6 +27432,7 @@ }, "node_modules/jest-haste-map": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -27281,6 +27456,7 @@ }, "node_modules/jest-leak-detector": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3", @@ -27292,6 +27468,7 @@ }, "node_modules/jest-leak-detector/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -27302,6 +27479,7 @@ }, "node_modules/jest-leak-detector/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -27314,6 +27492,7 @@ }, "node_modules/jest-matcher-utils": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "chalk": "^4.0.0", @@ -27327,6 +27506,7 @@ }, "node_modules/jest-matcher-utils/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -27337,6 +27517,7 @@ }, "node_modules/jest-matcher-utils/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -27349,6 +27530,7 @@ }, "node_modules/jest-message-util": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.12.13", @@ -27367,6 +27549,7 @@ }, "node_modules/jest-message-util/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -27377,6 +27560,7 @@ }, "node_modules/jest-message-util/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -27424,6 +27608,7 @@ }, "node_modules/jest-pnp-resolver": { "version": "1.2.3", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -27439,6 +27624,7 @@ }, "node_modules/jest-regex-util": { "version": "29.6.3", + "dev": true, "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" @@ -27446,6 +27632,7 @@ }, "node_modules/jest-resolve": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "chalk": "^4.0.0", @@ -27464,6 +27651,7 @@ }, "node_modules/jest-resolve-dependencies": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "jest-regex-util": "^29.6.3", @@ -27475,6 +27663,7 @@ }, "node_modules/jest-runner": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", @@ -27505,6 +27694,7 @@ }, "node_modules/jest-runtime": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", @@ -27536,6 +27726,7 @@ }, "node_modules/jest-runtime/node_modules/glob": { "version": "7.2.3", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -27554,6 +27745,7 @@ }, "node_modules/jest-runtime/node_modules/jest-mock": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -27566,6 +27758,7 @@ }, "node_modules/jest-snapshot": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", @@ -27595,6 +27788,7 @@ }, "node_modules/jest-snapshot/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -27605,6 +27799,7 @@ }, "node_modules/jest-snapshot/node_modules/lru-cache": { "version": "6.0.0", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -27615,6 +27810,7 @@ }, "node_modules/jest-snapshot/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -27627,6 +27823,7 @@ }, "node_modules/jest-snapshot/node_modules/semver": { "version": "7.6.0", + "dev": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -27640,10 +27837,12 @@ }, "node_modules/jest-snapshot/node_modules/yallist": { "version": "4.0.0", + "dev": true, "license": "ISC" }, "node_modules/jest-util": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -27659,6 +27858,7 @@ }, "node_modules/jest-validate": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", @@ -27674,6 +27874,7 @@ }, "node_modules/jest-validate/node_modules/ansi-styles": { "version": "5.2.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -27684,6 +27885,7 @@ }, "node_modules/jest-validate/node_modules/camelcase": { "version": "6.3.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -27694,6 +27896,7 @@ }, "node_modules/jest-validate/node_modules/pretty-format": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", @@ -27706,6 +27909,7 @@ }, "node_modules/jest-watcher": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", @@ -27723,6 +27927,7 @@ }, "node_modules/jest-worker": { "version": "29.7.0", + "dev": true, "license": "MIT", "dependencies": { "@types/node": "*", @@ -27736,6 +27941,7 @@ }, "node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", + "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" @@ -27762,7 +27968,9 @@ }, "node_modules/js-base64": { "version": "3.7.2", - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "optional": true, + "peer": true }, "node_modules/js-git": { "version": "0.7.8", @@ -27916,6 +28124,7 @@ }, "node_modules/jsesc": { "version": "2.5.2", + "dev": true, "license": "MIT", "bin": { "jsesc": "bin/jsesc" @@ -27964,6 +28173,7 @@ }, "node_modules/json5": { "version": "2.2.3", + "dev": true, "license": "MIT", "bin": { "json5": "lib/cli.js" @@ -28094,6 +28304,8 @@ "node_modules/jszip": { "version": "3.10.1", "license": "(MIT OR GPL-3.0-or-later)", + "optional": true, + "peer": true, "dependencies": { "lie": "~3.3.0", "pako": "~1.0.2", @@ -28103,11 +28315,15 @@ }, "node_modules/jszip/node_modules/isarray": { "version": "1.0.0", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/jszip/node_modules/readable-stream": { "version": "2.3.8", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -28120,7 +28336,9 @@ }, "node_modules/jszip/node_modules/safe-buffer": { "version": "5.1.2", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/just-diff": { "version": "5.2.0", @@ -28167,6 +28385,7 @@ }, "node_modules/kleur": { "version": "3.0.3", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -28315,6 +28534,7 @@ }, "node_modules/leven": { "version": "3.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -28515,6 +28735,8 @@ "node_modules/lie": { "version": "3.3.0", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "immediate": "~3.0.5" } @@ -28538,327 +28760,6 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, - "node_modules/llamaindex": { - "version": "0.1.21", - "license": "MIT", - "dependencies": { - "@anthropic-ai/sdk": "^0.15.0", - "@aws-crypto/sha256-js": "^5.2.0", - "@datastax/astra-db-ts": "^0.1.4", - "@llamaindex/cloud": "0.0.4", - "@llamaindex/env": "0.0.5", - "@mistralai/mistralai": "^0.0.10", - "@notionhq/client": "^2.2.14", - "@pinecone-database/pinecone": "^2.0.1", - "@qdrant/js-client-rest": "^1.7.0", - "@types/lodash": "^4.14.202", - "@types/node": "^18.19.14", - "@types/papaparse": "^5.3.14", - "@types/pg": "^8.11.0", - "@xenova/transformers": "^2.15.0", - "assemblyai": "^4.2.2", - "chromadb": "~1.7.3", - "cohere-ai": "^7.7.5", - "file-type": "^18.7.0", - "js-tiktoken": "^1.0.10", - "lodash": "^4.17.21", - "mammoth": "^1.6.0", - "md-utils-ts": "^2.0.0", - "mongodb": "^6.3.0", - "notion-md-crawler": "^0.0.2", - "openai": "^4.26.1", - "papaparse": "^5.4.1", - "pathe": "^1.1.2", - "pdf2json": "^3.0.5", - "pg": "^8.11.3", - "pgvector": "^0.1.7", - "portkey-ai": "^0.1.16", - "rake-modified": "^1.0.8", - "replicate": "^0.25.2", - "string-strip-html": "^13.4.6", - "wink-nlp": "^1.14.3" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/llamaindex/node_modules/@anthropic-ai/sdk": { - "version": "0.15.0", - "license": "MIT", - "dependencies": { - "@types/node": "^18.11.18", - "@types/node-fetch": "^2.6.4", - "abort-controller": "^3.0.0", - "agentkeepalive": "^4.2.1", - "digest-fetch": "^1.3.0", - "form-data-encoder": "1.7.2", - "formdata-node": "^4.3.2", - "node-fetch": "^2.6.7", - "web-streams-polyfill": "^3.2.1" - } - }, - "node_modules/llamaindex/node_modules/@anthropic-ai/sdk/node_modules/node-fetch": { - "version": "2.7.0", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/llamaindex/node_modules/@anthropic-ai/sdk/node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/llamaindex/node_modules/@anthropic-ai/sdk/node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "node_modules/llamaindex/node_modules/@anthropic-ai/sdk/node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/llamaindex/node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/llamaindex/node_modules/@aws-crypto/util": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/llamaindex/node_modules/@llamaindex/cloud": { - "version": "0.0.4", - "dependencies": { - "@types/qs": "^6.9.12", - "form-data": "^4.0.0", - "js-base64": "^3.7.6", - "qs": "^6.11.2" - }, - "peerDependencies": { - "node-fetch": "^3.3.2" - }, - "peerDependenciesMeta": { - "node-fetch": { - "optional": true - } - } - }, - "node_modules/llamaindex/node_modules/@llamaindex/env": { - "version": "0.0.5", - "dependencies": { - "@types/lodash": "^4.14.202", - "@types/node": "^20.11.20", - "lodash": "^4.17.21" - }, - "peerDependencies": { - "@aws-crypto/sha256-js": "^5.2.0", - "pathe": "^1.1.2" - } - }, - "node_modules/llamaindex/node_modules/@llamaindex/env/node_modules/@types/node": { - "version": "20.11.25", - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/llamaindex/node_modules/@types/node": { - "version": "18.19.21", - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/llamaindex/node_modules/@types/whatwg-url": { - "version": "11.0.4", - "license": "MIT", - "dependencies": { - "@types/webidl-conversions": "*" - } - }, - "node_modules/llamaindex/node_modules/bson": { - "version": "6.4.0", - "license": "Apache-2.0", - "engines": { - "node": ">=16.20.1" - } - }, - "node_modules/llamaindex/node_modules/data-uri-to-buffer": { - "version": "4.0.1", - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": ">= 12" - } - }, - "node_modules/llamaindex/node_modules/form-data-encoder": { - "version": "1.7.2", - "license": "MIT" - }, - "node_modules/llamaindex/node_modules/js-base64": { - "version": "3.7.7", - "license": "BSD-3-Clause" - }, - "node_modules/llamaindex/node_modules/mongodb": { - "version": "6.4.0", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/saslprep": "^1.1.0", - "bson": "^6.4.0", - "mongodb-connection-string-url": "^3.0.0" - }, - "engines": { - "node": ">=16.20.1" - }, - "peerDependencies": { - "@aws-sdk/credential-providers": "^3.188.0", - "@mongodb-js/zstd": "^1.1.0", - "gcp-metadata": "^5.2.0", - "kerberos": "^2.0.1", - "mongodb-client-encryption": ">=6.0.0 <7", - "snappy": "^7.2.2", - "socks": "^2.7.1" - }, - "peerDependenciesMeta": { - "@aws-sdk/credential-providers": { - "optional": true - }, - "@mongodb-js/zstd": { - "optional": true - }, - "gcp-metadata": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "snappy": { - "optional": true - }, - "socks": { - "optional": true - } - } - }, - "node_modules/llamaindex/node_modules/mongodb-connection-string-url": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "@types/whatwg-url": "^11.0.2", - "whatwg-url": "^13.0.0" - } - }, - "node_modules/llamaindex/node_modules/node-fetch": { - "version": "3.3.2", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, - "node_modules/llamaindex/node_modules/openai": { - "version": "4.28.4", - "license": "Apache-2.0", - "dependencies": { - "@types/node": "^18.11.18", - "@types/node-fetch": "^2.6.4", - "abort-controller": "^3.0.0", - "agentkeepalive": "^4.2.1", - "digest-fetch": "^1.3.0", - "form-data-encoder": "1.7.2", - "formdata-node": "^4.3.2", - "node-fetch": "^2.6.7", - "web-streams-polyfill": "^3.2.1" - }, - "bin": { - "openai": "bin/cli" - } - }, - "node_modules/llamaindex/node_modules/openai/node_modules/node-fetch": { - "version": "2.7.0", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/llamaindex/node_modules/openai/node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/llamaindex/node_modules/openai/node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "node_modules/llamaindex/node_modules/openai/node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/llamaindex/node_modules/whatwg-url": { - "version": "13.0.0", - "license": "MIT", - "dependencies": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/load-json-file": { "version": "6.2.0", "dev": true, @@ -29033,7 +28934,9 @@ }, "node_modules/long": { "version": "4.0.0", - "license": "Apache-2.0" + "license": "Apache-2.0", + "optional": true, + "peer": true }, "node_modules/longest-streak": { "version": "3.1.0", @@ -29056,6 +28959,8 @@ "node_modules/lop": { "version": "0.4.1", "license": "BSD-2-Clause", + "optional": true, + "peer": true, "dependencies": { "duck": "^0.1.12", "option": "~0.2.1", @@ -29064,7 +28969,9 @@ }, "node_modules/lop/node_modules/underscore": { "version": "1.13.6", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/loupe": { "version": "2.3.7", @@ -29086,6 +28993,7 @@ }, "node_modules/lru-cache": { "version": "5.1.1", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^3.0.2" @@ -29137,7 +29045,7 @@ }, "node_modules/make-error": { "version": "1.3.6", - "devOptional": true, + "dev": true, "license": "ISC" }, "node_modules/make-fetch-happen": { @@ -29192,6 +29100,7 @@ }, "node_modules/makeerror": { "version": "1.0.12", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" @@ -29200,6 +29109,8 @@ "node_modules/mammoth": { "version": "1.7.0", "license": "BSD-2-Clause", + "optional": true, + "peer": true, "dependencies": { "@xmldom/xmldom": "^0.8.6", "argparse": "~1.0.3", @@ -29221,7 +29132,9 @@ }, "node_modules/mammoth/node_modules/underscore": { "version": "1.13.6", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/map-obj": { "version": "4.3.0", @@ -29261,30 +29174,6 @@ "node": ">= 12" } }, - "node_modules/md-utils-ts": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/md5": { - "version": "2.3.0", - "license": "BSD-3-Clause", - "dependencies": { - "charenc": "0.0.2", - "crypt": "0.0.2", - "is-buffer": "~1.1.6" - } - }, - "node_modules/md5-file": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "bin": { - "md5-file": "cli.js" - }, - "engines": { - "node": ">=10.13.0" - } - }, "node_modules/md5.js": { "version": "1.3.5", "dev": true, @@ -29295,10 +29184,6 @@ "safe-buffer": "^5.1.2" } }, - "node_modules/md5/node_modules/is-buffer": { - "version": "1.1.6", - "license": "MIT" - }, "node_modules/mdast-util-definitions": { "version": "4.0.0", "dev": true, @@ -30536,6 +30421,7 @@ }, "node_modules/mkdirp-classic": { "version": "0.5.3", + "devOptional": true, "license": "MIT" }, "node_modules/mkdirp-infer-owner": { @@ -30680,20 +30566,49 @@ "license": "MIT" }, "node_modules/mongodb": { - "version": "4.17.2", - "dev": true, + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.11.0.tgz", + "integrity": "sha512-yVbPw0qT268YKhG241vAMLaDQAPbRyTgo++odSgGc9kXnzOujQI60Iyj23B9sQQFPSvmNPvMZ3dsFz0aN55KgA==", "license": "Apache-2.0", "dependencies": { - "bson": "^4.7.2", - "mongodb-connection-string-url": "^2.6.0", - "socks": "^2.7.1" + "@mongodb-js/saslprep": "^1.1.9", + "bson": "^6.10.0", + "mongodb-connection-string-url": "^3.0.0" }, "engines": { - "node": ">=12.9.0" + "node": ">=16.20.1" }, - "optionalDependencies": { - "@aws-sdk/credential-providers": "^3.186.0", - "@mongodb-js/saslprep": "^1.1.0" + "peerDependencies": { + "@aws-sdk/credential-providers": "^3.188.0", + "@mongodb-js/zstd": "^1.1.0", + "gcp-metadata": "^5.2.0", + "kerberos": "^2.0.1", + "mongodb-client-encryption": ">=6.0.0 <7", + "snappy": "^7.2.2", + "socks": "^2.7.1" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-providers": { + "optional": true + }, + "@mongodb-js/zstd": { + "optional": true + }, + "gcp-metadata": { + "optional": true + }, + "kerberos": { + "optional": true + }, + "mongodb-client-encryption": { + "optional": true + }, + "snappy": { + "optional": true + }, + "socks": { + "optional": true + } } }, "node_modules/mongodb-artifact-generator": { @@ -30704,10 +30619,6 @@ "resolved": "packages/mongodb-atlas", "link": true }, - "node_modules/mongodb-chatbot-evaluation": { - "resolved": "packages/mongodb-chatbot-evaluation", - "link": true - }, "node_modules/mongodb-chatbot-server": { "resolved": "packages/mongodb-chatbot-server", "link": true @@ -30757,45 +30668,61 @@ } }, "node_modules/mongodb-memory-server": { - "version": "8.16.0", + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/mongodb-memory-server/-/mongodb-memory-server-10.1.2.tgz", + "integrity": "sha512-aDGEWuUVHTiBvaaq03LbpvvSk8IVtepbvp314p1cq7f2xdSpl7igMnYpPfYY5nkks1I5I6OL2ypHjaJj4kBp+g==", "dev": true, "hasInstallScript": true, "license": "MIT", "dependencies": { - "mongodb-memory-server-core": "8.16.0", - "tslib": "^2.6.1" + "mongodb-memory-server-core": "10.1.2", + "tslib": "^2.7.0" }, "engines": { - "node": ">=12.22.0" + "node": ">=16.20.1" } }, "node_modules/mongodb-memory-server-core": { - "version": "8.16.0", + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/mongodb-memory-server-core/-/mongodb-memory-server-core-10.1.2.tgz", + "integrity": "sha512-5Wpz712CuDCKTn/40UZ+kMZlav4Y2imbpWuJU5wjuZk6s3+Jg8akTIBW9jQiFS8wgymu6iTg99Iw0XcypsLyQA==", "dev": true, "license": "MIT", "dependencies": { - "async-mutex": "^0.3.2", + "async-mutex": "^0.5.0", "camelcase": "^6.3.0", - "debug": "^4.3.4", + "debug": "^4.3.7", "find-cache-dir": "^3.3.2", - "follow-redirects": "^1.15.2", - "get-port": "^5.1.1", - "https-proxy-agent": "^5.0.1", - "md5-file": "^5.0.0", - "mongodb": "^4.16.0", + "follow-redirects": "^1.15.9", + "https-proxy-agent": "^7.0.5", + "mongodb": "^6.9.0", "new-find-package-json": "^2.0.0", - "semver": "^7.5.4", - "tar-stream": "^2.1.4", - "tslib": "^2.6.1", - "uuid": "^9.0.0", - "yauzl": "^2.10.0" + "semver": "^7.6.3", + "tar-stream": "^3.1.7", + "tslib": "^2.7.0", + "yauzl": "^3.1.3" }, "engines": { - "node": ">=12.22.0" + "node": ">=16.20.1" + } + }, + "node_modules/mongodb-memory-server-core/node_modules/agent-base": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" } }, "node_modules/mongodb-memory-server-core/node_modules/camelcase": { "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, "license": "MIT", "engines": { @@ -30805,24 +30732,26 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mongodb-memory-server-core/node_modules/lru-cache": { - "version": "6.0.0", + "node_modules/mongodb-memory-server-core/node_modules/https-proxy-agent": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", + "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "yallist": "^4.0.0" + "agent-base": "^7.0.2", + "debug": "4" }, "engines": { - "node": ">=10" + "node": ">= 14" } }, "node_modules/mongodb-memory-server-core/node_modules/semver": { - "version": "7.6.0", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -30830,10 +30759,31 @@ "node": ">=10" } }, - "node_modules/mongodb-memory-server-core/node_modules/yallist": { - "version": "4.0.0", + "node_modules/mongodb-memory-server-core/node_modules/tar-stream": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", "dev": true, - "license": "ISC" + "license": "MIT", + "dependencies": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" + } + }, + "node_modules/mongodb-memory-server-core/node_modules/yauzl": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.2.0.tgz", + "integrity": "sha512-Ow9nuGZE+qp1u4JIPvg+uCiUr7xGQWdff7JQSk5VGYTAZMDe2q8lxJ10ygv10qmSj031Ty/6FNJpLO4o1Sgc+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-crc32": "~0.2.3", + "pend": "~1.2.0" + }, + "engines": { + "node": ">=12" + } }, "node_modules/mongodb-ns": { "version": "2.4.2", @@ -30869,27 +30819,11 @@ "yargs": "^17.6.2" } }, - "node_modules/mongodb-schema/node_modules/@types/whatwg-url": { - "version": "11.0.5", - "license": "MIT", - "optional": true, - "dependencies": { - "@types/webidl-conversions": "*" - } - }, "node_modules/mongodb-schema/node_modules/argparse": { "version": "2.0.1", "license": "Python-2.0", "optional": true }, - "node_modules/mongodb-schema/node_modules/bson": { - "version": "6.9.0", - "license": "Apache-2.0", - "optional": true, - "engines": { - "node": ">=16.20.1" - } - }, "node_modules/mongodb-schema/node_modules/cliui": { "version": "8.0.1", "license": "ISC", @@ -30919,60 +30853,6 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/mongodb-schema/node_modules/mongodb": { - "version": "6.10.0", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@mongodb-js/saslprep": "^1.1.5", - "bson": "^6.7.0", - "mongodb-connection-string-url": "^3.0.0" - }, - "engines": { - "node": ">=16.20.1" - }, - "peerDependencies": { - "@aws-sdk/credential-providers": "^3.188.0", - "@mongodb-js/zstd": "^1.1.0", - "gcp-metadata": "^5.2.0", - "kerberos": "^2.0.1", - "mongodb-client-encryption": ">=6.0.0 <7", - "snappy": "^7.2.2", - "socks": "^2.7.1" - }, - "peerDependenciesMeta": { - "@aws-sdk/credential-providers": { - "optional": true - }, - "@mongodb-js/zstd": { - "optional": true - }, - "gcp-metadata": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "snappy": { - "optional": true - }, - "socks": { - "optional": true - } - } - }, - "node_modules/mongodb-schema/node_modules/mongodb-connection-string-url": { - "version": "3.0.1", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@types/whatwg-url": "^11.0.2", - "whatwg-url": "^13.0.0" - } - }, "node_modules/mongodb-schema/node_modules/string-width": { "version": "4.2.3", "license": "MIT", @@ -30986,18 +30866,6 @@ "node": ">=8" } }, - "node_modules/mongodb-schema/node_modules/whatwg-url": { - "version": "13.0.0", - "license": "MIT", - "optional": true, - "dependencies": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/mongodb-schema/node_modules/wrap-ansi": { "version": "7.0.0", "license": "MIT", @@ -31039,6 +30907,38 @@ "node": ">=12" } }, + "node_modules/mongodb/node_modules/@types/whatwg-url": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz", + "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==", + "license": "MIT", + "dependencies": { + "@types/webidl-conversions": "*" + } + }, + "node_modules/mongodb/node_modules/mongodb-connection-string-url": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.1.tgz", + "integrity": "sha512-XqMGwRX0Lgn05TDB4PyG2h2kKO/FfWJyCzYQbIhXUxz7ETt0I/FqHjUeqj37irJ+Dl1ZtU82uYyj14u2XsZKfg==", + "license": "Apache-2.0", + "dependencies": { + "@types/whatwg-url": "^11.0.2", + "whatwg-url": "^13.0.0" + } + }, + "node_modules/mongodb/node_modules/whatwg-url": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-13.0.0.tgz", + "integrity": "sha512-9WWbymnqj57+XEuqADHrCJ2eSXzn8WXIW/YSGaZtb2WKAInQ6CHfaUUcTyyver0p8BDg5StLQq8h1vtZuwmOig==", + "license": "MIT", + "dependencies": { + "tr46": "^4.1.1", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/mri": { "version": "1.2.0", "license": "MIT", @@ -31095,15 +30995,6 @@ "version": "0.0.8", "license": "ISC" }, - "node_modules/mz": { - "version": "2.7.0", - "license": "MIT", - "dependencies": { - "any-promise": "^1.0.0", - "object-assign": "^4.0.1", - "thenify-all": "^1.0.0" - } - }, "node_modules/nanoid": { "version": "3.3.7", "funding": [ @@ -31122,10 +31013,13 @@ }, "node_modules/napi-build-utils": { "version": "1.0.2", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/natural-compare": { "version": "1.4.0", + "dev": true, "license": "MIT" }, "node_modules/natural-compare-lite": { @@ -31176,6 +31070,8 @@ }, "node_modules/new-find-package-json": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/new-find-package-json/-/new-find-package-json-2.0.0.tgz", + "integrity": "sha512-lDcBsjBSMlj3LXH2v/FW3txlh2pYTjmbOXPYJD93HI5EwuLzI11tdHSIpUMmfq/IOsldj4Ps8M8flhm+pCK4Ew==", "dev": true, "license": "MIT", "dependencies": { @@ -31214,6 +31110,8 @@ "node_modules/node-abi": { "version": "3.56.0", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "semver": "^7.3.5" }, @@ -31224,6 +31122,8 @@ "node_modules/node-abi/node_modules/lru-cache": { "version": "6.0.0", "license": "ISC", + "optional": true, + "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -31234,6 +31134,8 @@ "node_modules/node-abi/node_modules/semver": { "version": "7.6.0", "license": "ISC", + "optional": true, + "peer": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -31246,7 +31148,9 @@ }, "node_modules/node-abi/node_modules/yallist": { "version": "4.0.0", - "license": "ISC" + "license": "ISC", + "optional": true, + "peer": true }, "node_modules/node-addon-api": { "version": "3.2.1", @@ -31419,6 +31323,7 @@ }, "node_modules/node-int64": { "version": "0.4.0", + "dev": true, "license": "MIT" }, "node_modules/node-mocks-http": { @@ -31463,6 +31368,7 @@ }, "node_modules/node-releases": { "version": "2.0.14", + "dev": true, "license": "MIT" }, "node_modules/node-stdlib-browser": { @@ -31689,14 +31595,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/notion-md-crawler": { - "version": "0.0.2", - "license": "MIT", - "dependencies": { - "@notionhq/client": "^2.2.12", - "md-utils-ts": "^2.0.0" - } - }, "node_modules/npm-bundled": { "version": "1.1.2", "dev": true, @@ -32565,10 +32463,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/obuf": { - "version": "1.1.2", - "license": "MIT" - }, "node_modules/ohash": { "version": "1.1.3", "dev": true, @@ -32622,13 +32516,17 @@ "node_modules/onnx-proto": { "version": "4.0.4", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "protobufjs": "^6.8.8" } }, "node_modules/onnxruntime-common": { "version": "1.14.0", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/onnxruntime-node": { "version": "1.14.0", @@ -32639,6 +32537,7 @@ "darwin", "linux" ], + "peer": true, "dependencies": { "onnxruntime-common": "~1.14.0" } @@ -32646,6 +32545,8 @@ "node_modules/onnxruntime-web": { "version": "1.14.0", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "flatbuffers": "^1.12.0", "guid-typescript": "^1.0.9", @@ -32709,7 +32610,9 @@ }, "node_modules/option": { "version": "0.2.4", - "license": "BSD-2-Clause" + "license": "BSD-2-Clause", + "optional": true, + "peer": true }, "node_modules/optional-require": { "version": "1.1.8", @@ -32814,6 +32717,7 @@ }, "node_modules/p-limit": { "version": "3.1.0", + "dev": true, "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" @@ -33087,7 +32991,9 @@ }, "node_modules/packet-reader": { "version": "1.0.0", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/pacote": { "version": "13.6.2", @@ -33199,6 +33105,7 @@ }, "node_modules/pako": { "version": "1.0.11", + "devOptional": true, "license": "(MIT AND Zlib)" }, "node_modules/papaparse": { @@ -33369,6 +33276,7 @@ }, "node_modules/pathe": { "version": "1.1.2", + "dev": true, "license": "MIT" }, "node_modules/pathval": { @@ -33404,31 +33312,6 @@ "node": ">=0.12" } }, - "node_modules/pdf2json": { - "version": "3.0.5", - "bundleDependencies": [ - "@xmldom/xmldom" - ], - "license": "Apache-2.0", - "dependencies": { - "@xmldom/xmldom": "^0.8.8" - }, - "bin": { - "pdf2json": "bin/pdf2json.js" - }, - "engines": { - "node": ">=18.12.1", - "npm": ">=8.19.2" - } - }, - "node_modules/pdf2json/node_modules/@xmldom/xmldom": { - "version": "0.8.8", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/peberminta": { "version": "0.9.0", "license": "MIT", @@ -33436,17 +33319,6 @@ "url": "https://ko-fi.com/killymxi" } }, - "node_modules/peek-readable": { - "version": "5.0.0", - "license": "MIT", - "engines": { - "node": ">=14.16" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, "node_modules/peek-stream": { "version": "1.1.3", "dev": true, @@ -33529,6 +33401,8 @@ "node_modules/pg": { "version": "8.11.3", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "buffer-writer": "2.0.0", "packet-reader": "1.0.0", @@ -33556,56 +33430,44 @@ "node_modules/pg-cloudflare": { "version": "1.1.1", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/pg-connection-string": { "version": "2.6.2", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/pg-int8": { "version": "1.0.1", "license": "ISC", + "optional": true, + "peer": true, "engines": { "node": ">=4.0.0" } }, - "node_modules/pg-numeric": { - "version": "1.0.2", - "license": "ISC", - "engines": { - "node": ">=4" - } - }, "node_modules/pg-pool": { "version": "3.6.1", "license": "MIT", + "optional": true, + "peer": true, "peerDependencies": { "pg": ">=8.0" } }, "node_modules/pg-protocol": { "version": "1.6.0", - "license": "MIT" - }, - "node_modules/pg-types": { - "version": "4.0.2", "license": "MIT", - "dependencies": { - "pg-int8": "1.0.1", - "pg-numeric": "1.0.2", - "postgres-array": "~3.0.1", - "postgres-bytea": "~3.0.0", - "postgres-date": "~2.1.0", - "postgres-interval": "^3.0.0", - "postgres-range": "^1.1.1" - }, - "engines": { - "node": ">=10" - } + "optional": true, + "peer": true }, "node_modules/pg/node_modules/pg-types": { "version": "2.2.0", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", @@ -33620,6 +33482,8 @@ "node_modules/pg/node_modules/postgres-array": { "version": "2.0.0", "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=4" } @@ -33627,6 +33491,8 @@ "node_modules/pg/node_modules/postgres-bytea": { "version": "1.0.0", "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=0.10.0" } @@ -33634,6 +33500,8 @@ "node_modules/pg/node_modules/postgres-date": { "version": "1.0.7", "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=0.10.0" } @@ -33641,6 +33509,8 @@ "node_modules/pg/node_modules/postgres-interval": { "version": "1.2.0", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "xtend": "^4.0.0" }, @@ -33651,6 +33521,8 @@ "node_modules/pgpass": { "version": "1.0.5", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "split2": "^4.1.0" } @@ -33658,17 +33530,12 @@ "node_modules/pgpass/node_modules/split2": { "version": "4.2.0", "license": "ISC", + "optional": true, + "peer": true, "engines": { "node": ">= 10.x" } }, - "node_modules/pgvector": { - "version": "0.1.8", - "license": "MIT", - "engines": { - "node": ">= 12" - } - }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -33707,6 +33574,7 @@ }, "node_modules/pirates": { "version": "4.0.6", + "dev": true, "license": "MIT", "engines": { "node": ">= 6" @@ -33735,7 +33603,9 @@ }, "node_modules/platform": { "version": "1.3.6", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/pluralize": { "version": "8.0.0", @@ -33933,6 +33803,8 @@ "node_modules/portkey-ai": { "version": "0.1.16", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "agentkeepalive": "^4.5.0" } @@ -33971,41 +33843,6 @@ "node": "^10 || ^12 || >=14" } }, - "node_modules/postgres-array": { - "version": "3.0.2", - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/postgres-bytea": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "obuf": "~1.1.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/postgres-date": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/postgres-interval": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/postgres-range": { - "version": "1.1.4", - "license": "MIT" - }, "node_modules/postman-request": { "version": "2.88.1-postman.33", "license": "Apache-2.0", @@ -34176,6 +34013,8 @@ "node_modules/prebuild-install": { "version": "7.1.2", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "detect-libc": "^2.0.0", "expand-template": "^2.0.3", @@ -34351,6 +34190,7 @@ }, "node_modules/prompts": { "version": "2.4.2", + "dev": true, "license": "MIT", "dependencies": { "kleur": "^3.0.3", @@ -34405,6 +34245,8 @@ "version": "6.11.4", "hasInstallScript": true, "license": "BSD-3-Clause", + "optional": true, + "peer": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -34675,6 +34517,7 @@ }, "node_modules/pure-rand": { "version": "6.0.4", + "dev": true, "funding": [ { "type": "individual", @@ -34740,6 +34583,7 @@ }, "node_modules/queue-tick": { "version": "1.0.1", + "devOptional": true, "license": "MIT" }, "node_modules/quick-lru": { @@ -34750,14 +34594,6 @@ "node": ">=8" } }, - "node_modules/rake-modified": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "fs-promise": "^2.0.0", - "lodash": "^4.17.4" - } - }, "node_modules/ramda": { "version": "0.29.0", "dev": true, @@ -34791,48 +34627,6 @@ "node": ">= 0.6" } }, - "node_modules/ranges-apply": { - "version": "7.0.15", - "license": "MIT", - "dependencies": { - "ranges-merge": "^9.0.15", - "tiny-invariant": "^1.3.1" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/ranges-merge": { - "version": "9.0.15", - "license": "MIT", - "dependencies": { - "ranges-push": "^7.0.15", - "ranges-sort": "^6.0.11" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/ranges-push": { - "version": "7.0.15", - "license": "MIT", - "dependencies": { - "codsen-utils": "^1.6.4", - "ranges-sort": "^6.0.11", - "string-collapse-leading-whitespace": "^7.0.7", - "string-trim-spaces-only": "^5.0.10" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/ranges-sort": { - "version": "6.0.11", - "license": "MIT", - "engines": { - "node": ">=14.18.0" - } - }, "node_modules/rate-limit-mongo": { "version": "2.3.2", "license": "MIT", @@ -35513,6 +35307,7 @@ "node_modules/readable-web-to-node-stream": { "version": "3.0.2", "license": "MIT", + "peer": true, "dependencies": { "readable-stream": "^3.6.0" }, @@ -35527,6 +35322,7 @@ "node_modules/readable-web-to-node-stream/node_modules/readable-stream": { "version": "3.6.2", "license": "MIT", + "peer": true, "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -37088,42 +36884,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/replicate": { - "version": "0.25.2", - "license": "Apache-2.0", - "engines": { - "git": ">=2.11.0", - "node": ">=18.0.0", - "npm": ">=7.19.0", - "yarn": ">=1.7.0" - }, - "optionalDependencies": { - "readable-stream": ">=4.0.0" - } - }, - "node_modules/replicate/node_modules/readable-stream": { - "version": "4.5.2", - "license": "MIT", - "optional": true, - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/replicate/node_modules/string_decoder": { - "version": "1.3.0", - "license": "MIT", - "optional": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/require-at": { "version": "1.0.6", "license": "Apache-2.0", @@ -37198,6 +36958,7 @@ }, "node_modules/resolve-cwd": { "version": "3.0.0", + "dev": true, "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" @@ -37208,6 +36969,7 @@ }, "node_modules/resolve-from": { "version": "5.0.0", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -37215,6 +36977,7 @@ }, "node_modules/resolve.exports": { "version": "2.0.2", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -37292,10 +37055,6 @@ "node": ">=0.10.0" } }, - "node_modules/rfdc": { - "version": "1.3.1", - "license": "MIT" - }, "node_modules/rimraf": { "version": "3.0.2", "dev": true, @@ -37668,6 +37427,7 @@ }, "node_modules/semver": { "version": "6.3.1", + "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -37792,6 +37552,7 @@ }, "node_modules/setimmediate": { "version": "1.0.5", + "devOptional": true, "license": "MIT" }, "node_modules/setprototypeof": { @@ -37825,6 +37586,8 @@ "version": "0.32.6", "hasInstallScript": true, "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.2", @@ -37845,6 +37608,8 @@ "node_modules/sharp/node_modules/color": { "version": "4.2.3", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "color-convert": "^2.0.1", "color-string": "^1.9.0" @@ -37856,6 +37621,8 @@ "node_modules/sharp/node_modules/lru-cache": { "version": "6.0.0", "license": "ISC", + "optional": true, + "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -37865,11 +37632,15 @@ }, "node_modules/sharp/node_modules/node-addon-api": { "version": "6.1.0", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/sharp/node_modules/semver": { "version": "7.6.0", "license": "ISC", + "optional": true, + "peer": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -37883,6 +37654,8 @@ "node_modules/sharp/node_modules/tar-fs": { "version": "3.0.5", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "pump": "^3.0.0", "tar-stream": "^3.1.5" @@ -37895,6 +37668,8 @@ "node_modules/sharp/node_modules/tar-stream": { "version": "3.1.7", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "b4a": "^1.6.4", "fast-fifo": "^1.2.0", @@ -37903,7 +37678,9 @@ }, "node_modules/sharp/node_modules/yallist": { "version": "4.0.0", - "license": "ISC" + "license": "ISC", + "optional": true, + "peer": true }, "node_modules/shebang-command": { "version": "2.0.0", @@ -38017,7 +37794,9 @@ "url": "https://feross.org/support" } ], - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/simple-get": { "version": "4.0.1", @@ -38036,6 +37815,8 @@ } ], "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "decompress-response": "^6.0.0", "once": "^1.3.1", @@ -38109,10 +37890,12 @@ }, "node_modules/sisteransi": { "version": "1.0.5", + "dev": true, "license": "MIT" }, "node_modules/slash": { "version": "3.0.0", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -38197,6 +37980,7 @@ }, "node_modules/source-map-support": { "version": "0.5.13", + "dev": true, "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", @@ -38205,10 +37989,12 @@ }, "node_modules/source-map-support/node_modules/buffer-from": { "version": "1.1.2", + "dev": true, "license": "MIT" }, "node_modules/source-map-support/node_modules/source-map": { "version": "0.6.1", + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -38387,6 +38173,7 @@ }, "node_modules/stack-utils": { "version": "2.0.6", + "dev": true, "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" @@ -38397,6 +38184,7 @@ }, "node_modules/stack-utils/node_modules/escape-string-regexp": { "version": "2.0.0", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -38575,6 +38363,7 @@ }, "node_modules/streamx": { "version": "2.16.1", + "devOptional": true, "license": "MIT", "dependencies": { "fast-fifo": "^1.1.0", @@ -38595,26 +38384,9 @@ "version": "5.1.2", "license": "MIT" }, - "node_modules/string-collapse-leading-whitespace": { - "version": "7.0.7", - "license": "MIT", - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/string-left-right": { - "version": "6.0.17", - "license": "MIT", - "dependencies": { - "codsen-utils": "^1.6.4", - "rfdc": "^1.3.1" - }, - "engines": { - "node": ">=14.18.0" - } - }, "node_modules/string-length": { "version": "4.0.2", + "dev": true, "license": "MIT", "dependencies": { "char-regex": "^1.0.2", @@ -38624,34 +38396,11 @@ "node": ">=10" } }, - "node_modules/string-strip-html": { - "version": "13.4.6", - "license": "MIT", - "dependencies": { - "@types/lodash-es": "^4.17.12", - "codsen-utils": "^1.6.4", - "html-entities": "^2.4.0", - "lodash-es": "^4.17.21", - "ranges-apply": "^7.0.15", - "ranges-push": "^7.0.15", - "string-left-right": "^6.0.17" - }, - "engines": { - "node": ">=14.18.0" - } - }, "node_modules/string-template": { "version": "1.0.0", "dev": true, "license": "MIT" }, - "node_modules/string-trim-spaces-only": { - "version": "5.0.10", - "license": "MIT", - "engines": { - "node": ">=14.18.0" - } - }, "node_modules/string-width": { "version": "5.1.2", "license": "MIT", @@ -38782,6 +38531,7 @@ }, "node_modules/strip-bom": { "version": "4.0.0", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -38817,6 +38567,7 @@ }, "node_modules/strip-json-comments": { "version": "3.1.1", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -38871,21 +38622,6 @@ "node": ">=4" } }, - "node_modules/strtok3": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "@tokenizer/token": "^0.3.0", - "peek-readable": "^5.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, "node_modules/style-to-object": { "version": "0.4.4", "license": "MIT", @@ -38899,6 +38635,7 @@ }, "node_modules/superagent": { "version": "8.1.2", + "dev": true, "license": "MIT", "dependencies": { "component-emitter": "^1.3.0", @@ -38918,6 +38655,7 @@ }, "node_modules/superagent/node_modules/lru-cache": { "version": "6.0.0", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -38928,6 +38666,7 @@ }, "node_modules/superagent/node_modules/mime": { "version": "2.6.0", + "dev": true, "license": "MIT", "bin": { "mime": "cli.js" @@ -38938,6 +38677,7 @@ }, "node_modules/superagent/node_modules/semver": { "version": "7.6.0", + "dev": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -38951,10 +38691,12 @@ }, "node_modules/superagent/node_modules/yallist": { "version": "4.0.0", + "dev": true, "license": "ISC" }, "node_modules/supertest": { "version": "6.3.4", + "dev": true, "license": "MIT", "dependencies": { "methods": "^1.1.2", @@ -39114,6 +38856,7 @@ }, "node_modules/tar-fs": { "version": "2.1.1", + "devOptional": true, "license": "MIT", "dependencies": { "chownr": "^1.1.1", @@ -39124,10 +38867,12 @@ }, "node_modules/tar-fs/node_modules/chownr": { "version": "1.1.4", + "devOptional": true, "license": "ISC" }, "node_modules/tar-stream": { "version": "2.2.0", + "devOptional": true, "license": "MIT", "dependencies": { "bl": "^4.0.3", @@ -39142,6 +38887,7 @@ }, "node_modules/tar-stream/node_modules/readable-stream": { "version": "3.6.2", + "devOptional": true, "license": "MIT", "dependencies": { "inherits": "^2.0.3", @@ -39253,6 +38999,7 @@ }, "node_modules/test-exclude": { "version": "6.0.0", + "dev": true, "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", @@ -39265,6 +39012,7 @@ }, "node_modules/test-exclude/node_modules/glob": { "version": "7.2.3", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -39298,23 +39046,6 @@ "dev": true, "license": "MIT" }, - "node_modules/thenify": { - "version": "3.3.1", - "license": "MIT", - "dependencies": { - "any-promise": "^1.0.0" - } - }, - "node_modules/thenify-all": { - "version": "1.6.0", - "license": "MIT", - "dependencies": { - "thenify": ">= 3.1.0 < 4" - }, - "engines": { - "node": ">=0.8" - } - }, "node_modules/through": { "version": "2.3.8", "license": "MIT" @@ -39357,6 +39088,7 @@ }, "node_modules/tiny-invariant": { "version": "1.3.1", + "dev": true, "license": "MIT" }, "node_modules/tinybench": { @@ -39404,6 +39136,7 @@ }, "node_modules/tmpl": { "version": "1.0.5", + "dev": true, "license": "BSD-3-Clause" }, "node_modules/to-arraybuffer": { @@ -39441,21 +39174,6 @@ "node": ">=0.6" } }, - "node_modules/token-types": { - "version": "5.0.1", - "license": "MIT", - "dependencies": { - "@tokenizer/token": "^0.3.0", - "ieee754": "^1.2.1" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, "node_modules/toml": { "version": "3.0.0", "license": "MIT" @@ -39674,7 +39392,7 @@ }, "node_modules/ts-node": { "version": "10.9.2", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "@cspotcode/source-map-support": "^0.8.0", @@ -39716,7 +39434,7 @@ }, "node_modules/ts-node/node_modules/acorn": { "version": "8.11.3", - "devOptional": true, + "dev": true, "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -39727,7 +39445,7 @@ }, "node_modules/ts-node/node_modules/acorn-walk": { "version": "8.3.2", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=0.4.0" @@ -39785,6 +39503,8 @@ "node_modules/tunnel-agent": { "version": "0.6.0", "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "safe-buffer": "^5.0.1" }, @@ -39848,6 +39568,7 @@ }, "node_modules/type-detect": { "version": "4.0.8", + "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -40339,6 +40060,7 @@ }, "node_modules/update-browserslist-db": { "version": "1.0.13", + "dev": true, "funding": [ { "type": "opencollective", @@ -40683,11 +40405,12 @@ }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/v8-to-istanbul": { "version": "9.2.0", + "dev": true, "license": "ISC", "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", @@ -40700,6 +40423,7 @@ }, "node_modules/v8-to-istanbul/node_modules/convert-source-map": { "version": "2.0.0", + "dev": true, "license": "MIT" }, "node_modules/validate-npm-package-license": { @@ -41456,6 +41180,7 @@ }, "node_modules/walker": { "version": "1.0.8", + "dev": true, "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" @@ -41531,7 +41256,9 @@ }, "node_modules/whatwg-fetch": { "version": "3.6.20", - "license": "MIT" + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/whatwg-mimetype": { "version": "3.0.0", @@ -41703,10 +41430,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/wink-nlp": { - "version": "1.14.3", - "license": "MIT" - }, "node_modules/winston": { "version": "3.11.0", "license": "MIT", @@ -41861,6 +41584,7 @@ }, "node_modules/write-file-atomic": { "version": "4.0.2", + "dev": true, "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", @@ -41872,6 +41596,7 @@ }, "node_modules/write-file-atomic/node_modules/signal-exit": { "version": "3.0.7", + "dev": true, "license": "ISC" }, "node_modules/write-json-file": { @@ -42026,6 +41751,7 @@ }, "node_modules/ws": { "version": "8.18.0", + "devOptional": true, "license": "MIT", "engines": { "node": ">=10.0.0" @@ -42064,6 +41790,8 @@ "node_modules/xmlbuilder": { "version": "10.1.1", "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=4.0" } @@ -42089,6 +41817,7 @@ }, "node_modules/yallist": { "version": "3.1.1", + "dev": true, "license": "ISC" }, "node_modules/yaml": { @@ -42189,7 +41918,7 @@ }, "node_modules/yn": { "version": "3.1.1", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -42197,6 +41926,7 @@ }, "node_modules/yocto-queue": { "version": "0.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -42253,7 +41983,6 @@ "@supercharge/promise-pool": "^3.2.0", "braintrust": "^0.0.175", "dotenv": "^16", - "mongodb-chatbot-evaluation": "*", "mongodb-chatbot-server": "*", "mongodb-rag-core": "*", "mongodb-schema": "^12.2.0", @@ -42289,198 +42018,6 @@ "dev": true, "license": "MIT" }, - "packages/benchmarks/node_modules/@types/whatwg-url": { - "version": "11.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/webidl-conversions": "*" - } - }, - "packages/benchmarks/node_modules/agent-base": { - "version": "7.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "packages/benchmarks/node_modules/async-mutex": { - "version": "0.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.4.0" - } - }, - "packages/benchmarks/node_modules/bson": { - "version": "6.9.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=16.20.1" - } - }, - "packages/benchmarks/node_modules/camelcase": { - "version": "6.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "packages/benchmarks/node_modules/https-proxy-agent": { - "version": "7.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "packages/benchmarks/node_modules/mongodb": { - "version": "6.10.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/saslprep": "^1.1.5", - "bson": "^6.7.0", - "mongodb-connection-string-url": "^3.0.0" - }, - "engines": { - "node": ">=16.20.1" - }, - "peerDependencies": { - "@aws-sdk/credential-providers": "^3.188.0", - "@mongodb-js/zstd": "^1.1.0", - "gcp-metadata": "^5.2.0", - "kerberos": "^2.0.1", - "mongodb-client-encryption": ">=6.0.0 <7", - "snappy": "^7.2.2", - "socks": "^2.7.1" - }, - "peerDependenciesMeta": { - "@aws-sdk/credential-providers": { - "optional": true - }, - "@mongodb-js/zstd": { - "optional": true - }, - "gcp-metadata": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "snappy": { - "optional": true - }, - "socks": { - "optional": true - } - } - }, - "packages/benchmarks/node_modules/mongodb-connection-string-url": { - "version": "3.0.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/whatwg-url": "^11.0.2", - "whatwg-url": "^13.0.0" - } - }, - "packages/benchmarks/node_modules/mongodb-memory-server": { - "version": "10.1.2", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "mongodb-memory-server-core": "10.1.2", - "tslib": "^2.7.0" - }, - "engines": { - "node": ">=16.20.1" - } - }, - "packages/benchmarks/node_modules/mongodb-memory-server-core": { - "version": "10.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "async-mutex": "^0.5.0", - "camelcase": "^6.3.0", - "debug": "^4.3.7", - "find-cache-dir": "^3.3.2", - "follow-redirects": "^1.15.9", - "https-proxy-agent": "^7.0.5", - "mongodb": "^6.9.0", - "new-find-package-json": "^2.0.0", - "semver": "^7.6.3", - "tar-stream": "^3.1.7", - "tslib": "^2.7.0", - "yauzl": "^3.1.3" - }, - "engines": { - "node": ">=16.20.1" - } - }, - "packages/benchmarks/node_modules/semver": { - "version": "7.6.3", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "packages/benchmarks/node_modules/tar-stream": { - "version": "3.1.7", - "dev": true, - "license": "MIT", - "dependencies": { - "b4a": "^1.6.4", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" - } - }, - "packages/benchmarks/node_modules/whatwg-url": { - "version": "13.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=16" - } - }, - "packages/benchmarks/node_modules/yauzl": { - "version": "3.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "pend": "~1.2.0" - }, - "engines": { - "node": ">=12" - } - }, "packages/chatbot-server-mongodb-public": { "version": "0.13.1", "license": "Apache-2.0", @@ -42489,7 +42026,6 @@ "cookie-parser": "^1.4.6", "dotenv": "^16.0.3", "express": "^4.18.2", - "mongodb-chatbot-evaluation": "*", "mongodb-chatbot-server": "*", "mongodb-chatbot-verified-answers": "*", "mongodb-rag-core": "*", @@ -43799,85 +43335,9 @@ "typescript": "^5.1.3" } }, - "packages/mongodb-atlas/node_modules/@types/whatwg-url": { - "version": "11.0.4", - "license": "MIT", - "dependencies": { - "@types/webidl-conversions": "*" - } - }, - "packages/mongodb-atlas/node_modules/bson": { - "version": "6.3.0", - "license": "Apache-2.0", - "engines": { - "node": ">=16.20.1" - } - }, - "packages/mongodb-atlas/node_modules/mongodb": { - "version": "6.3.0", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/saslprep": "^1.1.0", - "bson": "^6.2.0", - "mongodb-connection-string-url": "^3.0.0" - }, - "engines": { - "node": ">=16.20.1" - }, - "peerDependencies": { - "@aws-sdk/credential-providers": "^3.188.0", - "@mongodb-js/zstd": "^1.1.0", - "gcp-metadata": "^5.2.0", - "kerberos": "^2.0.1", - "mongodb-client-encryption": ">=6.0.0 <7", - "snappy": "^7.2.2", - "socks": "^2.7.1" - }, - "peerDependenciesMeta": { - "@aws-sdk/credential-providers": { - "optional": true - }, - "@mongodb-js/zstd": { - "optional": true - }, - "gcp-metadata": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "snappy": { - "optional": true - }, - "socks": { - "optional": true - } - } - }, - "packages/mongodb-atlas/node_modules/mongodb-connection-string-url": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "@types/whatwg-url": "^11.0.2", - "whatwg-url": "^13.0.0" - } - }, - "packages/mongodb-atlas/node_modules/whatwg-url": { - "version": "13.0.0", - "license": "MIT", - "dependencies": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=16" - } - }, "packages/mongodb-chatbot-evaluation": { "version": "0.1.0", + "extraneous": true, "license": "Apache-2.0", "dependencies": { "@supercharge/promise-pool": "^3.2.0", @@ -43906,454 +43366,6 @@ "npm": ">=8" } }, - "packages/mongodb-chatbot-evaluation/node_modules/@langchain/core": { - "version": "0.2.27", - "license": "MIT", - "dependencies": { - "ansi-styles": "^5.0.0", - "camelcase": "6", - "decamelize": "1.2.0", - "js-tiktoken": "^1.0.12", - "langsmith": "~0.1.39", - "mustache": "^4.2.0", - "p-queue": "^6.6.2", - "p-retry": "4", - "uuid": "^10.0.0", - "zod": "^3.22.4", - "zod-to-json-schema": "^3.22.3" - }, - "engines": { - "node": ">=18" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/@langchain/core/node_modules/uuid": { - "version": "10.0.0", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/@types/node": { - "version": "18.19.39", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/ansi-styles": { - "version": "5.2.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "packages/mongodb-chatbot-evaluation/node_modules/bson": { - "version": "5.5.1", - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": ">=14.20.1" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/camelcase": { - "version": "6.3.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/form-data-encoder": { - "version": "1.7.2", - "license": "MIT", - "optional": true, - "peer": true - }, - "packages/mongodb-chatbot-evaluation/node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/langchain": { - "version": "0.2.9", - "license": "MIT", - "dependencies": { - "@langchain/core": ">=0.2.11 <0.3.0", - "@langchain/openai": ">=0.1.0 <0.3.0", - "@langchain/textsplitters": "~0.0.0", - "binary-extensions": "^2.2.0", - "js-tiktoken": "^1.0.12", - "js-yaml": "^4.1.0", - "jsonpointer": "^5.0.1", - "langchainhub": "~0.0.8", - "langsmith": "~0.1.30", - "ml-distance": "^4.0.0", - "openapi-types": "^12.1.3", - "p-retry": "4", - "uuid": "^10.0.0", - "yaml": "^2.2.1", - "zod": "^3.22.4", - "zod-to-json-schema": "^3.22.3" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "@aws-sdk/client-s3": "^3.310.0", - "@aws-sdk/client-sagemaker-runtime": "^3.310.0", - "@aws-sdk/client-sfn": "^3.310.0", - "@aws-sdk/credential-provider-node": "^3.388.0", - "@azure/storage-blob": "^12.15.0", - "@browserbasehq/sdk": "*", - "@gomomento/sdk": "^1.51.1", - "@gomomento/sdk-core": "^1.51.1", - "@gomomento/sdk-web": "^1.51.1", - "@mendable/firecrawl-js": "^0.0.13", - "@notionhq/client": "^2.2.10", - "@pinecone-database/pinecone": "*", - "@supabase/supabase-js": "^2.10.0", - "@vercel/kv": "^0.2.3", - "@xata.io/client": "^0.28.0", - "apify-client": "^2.7.1", - "assemblyai": "^4.0.0", - "axios": "*", - "cheerio": "^1.0.0-rc.12", - "chromadb": "*", - "convex": "^1.3.1", - "couchbase": "^4.3.0", - "d3-dsv": "^2.0.0", - "epub2": "^3.0.1", - "fast-xml-parser": "*", - "handlebars": "^4.7.8", - "html-to-text": "^9.0.5", - "ignore": "^5.2.0", - "ioredis": "^5.3.2", - "jsdom": "*", - "mammoth": "^1.6.0", - "mongodb": ">=5.2.0", - "node-llama-cpp": "*", - "notion-to-md": "^3.1.0", - "officeparser": "^4.0.4", - "pdf-parse": "1.1.1", - "peggy": "^3.0.2", - "playwright": "^1.32.1", - "puppeteer": "^19.7.2", - "pyodide": "^0.24.1", - "redis": "^4.6.4", - "sonix-speech-recognition": "^2.1.1", - "srt-parser-2": "^1.2.3", - "typeorm": "^0.3.20", - "weaviate-ts-client": "*", - "web-auth-library": "^1.0.3", - "ws": "^8.14.2", - "youtube-transcript": "^1.0.6", - "youtubei.js": "^9.1.0" - }, - "peerDependenciesMeta": { - "@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/storage-blob": { - "optional": true - }, - "@browserbasehq/sdk": { - "optional": true - }, - "@gomomento/sdk": { - "optional": true - }, - "@gomomento/sdk-core": { - "optional": true - }, - "@gomomento/sdk-web": { - "optional": true - }, - "@mendable/firecrawl-js": { - "optional": true - }, - "@notionhq/client": { - "optional": true - }, - "@pinecone-database/pinecone": { - "optional": true - }, - "@supabase/supabase-js": { - "optional": true - }, - "@vercel/kv": { - "optional": true - }, - "@xata.io/client": { - "optional": true - }, - "apify-client": { - "optional": true - }, - "assemblyai": { - "optional": true - }, - "axios": { - "optional": true - }, - "cheerio": { - "optional": true - }, - "chromadb": { - "optional": true - }, - "convex": { - "optional": true - }, - "couchbase": { - "optional": true - }, - "d3-dsv": { - "optional": true - }, - "epub2": { - "optional": true - }, - "faiss-node": { - "optional": true - }, - "fast-xml-parser": { - "optional": true - }, - "handlebars": { - "optional": true - }, - "html-to-text": { - "optional": true - }, - "ignore": { - "optional": true - }, - "ioredis": { - "optional": true - }, - "jsdom": { - "optional": true - }, - "mammoth": { - "optional": true - }, - "mongodb": { - "optional": true - }, - "node-llama-cpp": { - "optional": true - }, - "notion-to-md": { - "optional": true - }, - "officeparser": { - "optional": true - }, - "pdf-parse": { - "optional": true - }, - "peggy": { - "optional": true - }, - "playwright": { - "optional": true - }, - "puppeteer": { - "optional": true - }, - "pyodide": { - "optional": true - }, - "redis": { - "optional": true - }, - "sonix-speech-recognition": { - "optional": true - }, - "srt-parser-2": { - "optional": true - }, - "typeorm": { - "optional": true - }, - "weaviate-ts-client": { - "optional": true - }, - "web-auth-library": { - "optional": true - }, - "ws": { - "optional": true - }, - "youtube-transcript": { - "optional": true - }, - "youtubei.js": { - "optional": true - } - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/langchain/node_modules/uuid": { - "version": "10.0.0", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/langsmith": { - "version": "0.1.42", - "license": "MIT", - "dependencies": { - "@types/uuid": "^9.0.1", - "commander": "^10.0.1", - "p-queue": "^6.6.2", - "p-retry": "4", - "semver": "^7.6.3", - "uuid": "^9.0.0" - }, - "peerDependencies": { - "@langchain/core": "*", - "langchain": "*", - "openai": "*" - }, - "peerDependenciesMeta": { - "@langchain/core": { - "optional": true - }, - "langchain": { - "optional": true - }, - "openai": { - "optional": true - } - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/mongodb": { - "version": "5.9.2", - "license": "Apache-2.0", - "optional": true, - "peer": true, - "dependencies": { - "bson": "^5.5.0", - "mongodb-connection-string-url": "^2.6.0", - "socks": "^2.7.1" - }, - "engines": { - "node": ">=14.20.1" - }, - "optionalDependencies": { - "@mongodb-js/saslprep": "^1.1.0" - }, - "peerDependencies": { - "@aws-sdk/credential-providers": "^3.188.0", - "@mongodb-js/zstd": "^1.0.0", - "kerberos": "^1.0.0 || ^2.0.0", - "mongodb-client-encryption": ">=2.3.0 <3", - "snappy": "^7.2.2" - }, - "peerDependenciesMeta": { - "@aws-sdk/credential-providers": { - "optional": true - }, - "@mongodb-js/zstd": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "snappy": { - "optional": true - } - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/openai": { - "version": "4.52.7", - "license": "Apache-2.0", - "optional": true, - "peer": true, - "dependencies": { - "@types/node": "^18.11.18", - "@types/node-fetch": "^2.6.4", - "abort-controller": "^3.0.0", - "agentkeepalive": "^4.2.1", - "form-data-encoder": "1.7.2", - "formdata-node": "^4.3.2", - "node-fetch": "^2.6.7", - "web-streams-polyfill": "^3.2.1" - }, - "bin": { - "openai": "bin/cli" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/semver": { - "version": "7.6.3", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/typescript": { - "version": "5.4.5", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "packages/mongodb-chatbot-evaluation/node_modules/yaml": { - "version": "2.4.1", - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, "packages/mongodb-chatbot-server": { "version": "0.9.1", "license": "Apache-2.0", @@ -44400,7 +43412,7 @@ "eslint-config-prettier": "^8.8.0", "eslint-plugin-jest": "^27.2.1", "jest": "^29.6.1", - "mongodb-memory-server": "^8.12.2", + "mongodb-memory-server": "^10.1.2", "node-mocks-http": "^1.12.2", "nodemon": "^3.0.1", "prettier": "^2.8.7", @@ -44500,15 +43512,6 @@ "version": "2.0.1", "license": "Python-2.0" }, - "packages/mongodb-chatbot-server/node_modules/bson": { - "version": "5.5.1", - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": ">=14.20.1" - } - }, "packages/mongodb-chatbot-server/node_modules/camelcase": { "version": "6.3.0", "license": "MIT", @@ -44839,47 +43842,6 @@ "uuid": "dist/bin/uuid" } }, - "packages/mongodb-chatbot-server/node_modules/mongodb": { - "version": "5.9.2", - "license": "Apache-2.0", - "optional": true, - "peer": true, - "dependencies": { - "bson": "^5.5.0", - "mongodb-connection-string-url": "^2.6.0", - "socks": "^2.7.1" - }, - "engines": { - "node": ">=14.20.1" - }, - "optionalDependencies": { - "@mongodb-js/saslprep": "^1.1.0" - }, - "peerDependencies": { - "@aws-sdk/credential-providers": "^3.188.0", - "@mongodb-js/zstd": "^1.0.0", - "kerberos": "^1.0.0 || ^2.0.0", - "mongodb-client-encryption": ">=2.3.0 <3", - "snappy": "^7.2.2" - }, - "peerDependenciesMeta": { - "@aws-sdk/credential-providers": { - "optional": true - }, - "@mongodb-js/zstd": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "snappy": { - "optional": true - } - } - }, "packages/mongodb-chatbot-server/node_modules/sprintf-js": { "version": "1.1.2", "license": "BSD-3-Clause" @@ -46506,13 +45468,6 @@ "dev": true, "license": "MIT" }, - "packages/mongodb-rag-core/node_modules/@types/whatwg-url": { - "version": "11.0.4", - "license": "MIT", - "dependencies": { - "@types/webidl-conversions": "*" - } - }, "packages/mongodb-rag-core/node_modules/@types/yargs": { "version": "15.0.19", "dev": true, @@ -46521,33 +45476,10 @@ "@types/yargs-parser": "*" } }, - "packages/mongodb-rag-core/node_modules/agent-base": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", - "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, "packages/mongodb-rag-core/node_modules/argparse": { "version": "2.0.1", "license": "Python-2.0" }, - "packages/mongodb-rag-core/node_modules/async-mutex": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.5.0.tgz", - "integrity": "sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA==", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.4.0" - } - }, "packages/mongodb-rag-core/node_modules/brace-expansion": { "version": "2.0.1", "license": "MIT", @@ -46555,28 +45487,6 @@ "balanced-match": "^1.0.0" } }, - "packages/mongodb-rag-core/node_modules/bson": { - "version": "6.10.0", - "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.0.tgz", - "integrity": "sha512-ROchNosXMJD2cbQGm84KoP7vOGPO6/bOAW0veMMbzhXLqoZptcaYRVLitwvuhwhjjpU1qP4YZRWLhgETdgqUQw==", - "license": "Apache-2.0", - "engines": { - "node": ">=16.20.1" - } - }, - "packages/mongodb-rag-core/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "packages/mongodb-rag-core/node_modules/diff-sequences": { "version": "26.6.2", "dev": true, @@ -46630,20 +45540,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "packages/mongodb-rag-core/node_modules/https-proxy-agent": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", - "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, "packages/mongodb-rag-core/node_modules/jackspeak": { "version": "4.0.2", "license": "BlueOak-1.0.0", @@ -46794,99 +45690,6 @@ "node": ">=16 || 14 >=14.17" } }, - "packages/mongodb-rag-core/node_modules/mongodb": { - "version": "6.10.0", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.10.0.tgz", - "integrity": "sha512-gP9vduuYWb9ZkDM546M+MP2qKVk5ZG2wPF63OvSRuUbqCR+11ZCAE1mOfllhlAG0wcoJY5yDL/rV3OmYEwXIzg==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/saslprep": "^1.1.5", - "bson": "^6.7.0", - "mongodb-connection-string-url": "^3.0.0" - }, - "engines": { - "node": ">=16.20.1" - }, - "peerDependencies": { - "@aws-sdk/credential-providers": "^3.188.0", - "@mongodb-js/zstd": "^1.1.0", - "gcp-metadata": "^5.2.0", - "kerberos": "^2.0.1", - "mongodb-client-encryption": ">=6.0.0 <7", - "snappy": "^7.2.2", - "socks": "^2.7.1" - }, - "peerDependenciesMeta": { - "@aws-sdk/credential-providers": { - "optional": true - }, - "@mongodb-js/zstd": { - "optional": true - }, - "gcp-metadata": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "snappy": { - "optional": true - }, - "socks": { - "optional": true - } - } - }, - "packages/mongodb-rag-core/node_modules/mongodb-connection-string-url": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "@types/whatwg-url": "^11.0.2", - "whatwg-url": "^13.0.0" - } - }, - "packages/mongodb-rag-core/node_modules/mongodb-memory-server": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/mongodb-memory-server/-/mongodb-memory-server-10.1.2.tgz", - "integrity": "sha512-aDGEWuUVHTiBvaaq03LbpvvSk8IVtepbvp314p1cq7f2xdSpl7igMnYpPfYY5nkks1I5I6OL2ypHjaJj4kBp+g==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "mongodb-memory-server-core": "10.1.2", - "tslib": "^2.7.0" - }, - "engines": { - "node": ">=16.20.1" - } - }, - "packages/mongodb-rag-core/node_modules/mongodb-memory-server-core": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/mongodb-memory-server-core/-/mongodb-memory-server-core-10.1.2.tgz", - "integrity": "sha512-5Wpz712CuDCKTn/40UZ+kMZlav4Y2imbpWuJU5wjuZk6s3+Jg8akTIBW9jQiFS8wgymu6iTg99Iw0XcypsLyQA==", - "dev": true, - "license": "MIT", - "dependencies": { - "async-mutex": "^0.5.0", - "camelcase": "^6.3.0", - "debug": "^4.3.7", - "find-cache-dir": "^3.3.2", - "follow-redirects": "^1.15.9", - "https-proxy-agent": "^7.0.5", - "mongodb": "^6.9.0", - "new-find-package-json": "^2.0.0", - "semver": "^7.6.3", - "tar-stream": "^3.1.7", - "tslib": "^2.7.0", - "yauzl": "^3.1.3" - }, - "engines": { - "node": ">=16.20.1" - } - }, "packages/mongodb-rag-core/node_modules/openai": { "version": "4.68.4", "license": "Apache-2.0", @@ -46999,19 +45802,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "packages/mongodb-rag-core/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "packages/mongodb-rag-core/node_modules/string_decoder": { "version": "1.3.0", "license": "MIT", @@ -47021,18 +45811,6 @@ "safe-buffer": "~5.2.0" } }, - "packages/mongodb-rag-core/node_modules/tar-stream": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", - "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "b4a": "^1.6.4", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" - } - }, "packages/mongodb-rag-core/node_modules/uuid": { "version": "10.0.0", "funding": [ @@ -47044,17 +45822,6 @@ "uuid": "dist/bin/uuid" } }, - "packages/mongodb-rag-core/node_modules/whatwg-url": { - "version": "13.0.0", - "license": "MIT", - "dependencies": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=16" - } - }, "packages/mongodb-rag-core/node_modules/yaml": { "version": "2.3.4", "license": "ISC", @@ -47062,20 +45829,6 @@ "node": ">= 14" } }, - "packages/mongodb-rag-core/node_modules/yauzl": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.2.0.tgz", - "integrity": "sha512-Ow9nuGZE+qp1u4JIPvg+uCiUr7xGQWdff7JQSk5VGYTAZMDe2q8lxJ10ygv10qmSj031Ty/6FNJpLO4o1Sgc+w==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "pend": "~1.2.0" - }, - "engines": { - "node": ">=12" - } - }, "packages/mongodb-rag-ingest": { "version": "0.2.1", "license": "Apache-2.0", diff --git a/packages/mongodb-chatbot-server/package.json b/packages/mongodb-chatbot-server/package.json index 9048e560a..9c3cade5a 100644 --- a/packages/mongodb-chatbot-server/package.json +++ b/packages/mongodb-chatbot-server/package.json @@ -79,7 +79,7 @@ "eslint-config-prettier": "^8.8.0", "eslint-plugin-jest": "^27.2.1", "jest": "^29.6.1", - "mongodb-memory-server": "^8.12.2", + "mongodb-memory-server": "^10.1.2", "node-mocks-http": "^1.12.2", "nodemon": "^3.0.1", "prettier": "^2.8.7", diff --git a/packages/mongodb-chatbot-server/src/app.test.ts b/packages/mongodb-chatbot-server/src/app.test.ts index eab4a8a9c..73e397e5e 100644 --- a/packages/mongodb-chatbot-server/src/app.test.ts +++ b/packages/mongodb-chatbot-server/src/app.test.ts @@ -7,7 +7,7 @@ import { makeTestAppConfig } from "./test/testHelpers"; describe("App", () => { let app: Express; beforeAll(async () => { - const { appConfig } = makeTestAppConfig(); + const { appConfig } = await makeTestAppConfig(); app = await makeApp({ ...appConfig, corsOptions: { diff --git a/packages/mongodb-chatbot-server/src/routes/conversations/addMessageToConversation.test.ts b/packages/mongodb-chatbot-server/src/routes/conversations/addMessageToConversation.test.ts index 19928e7a7..fcc7e2a83 100644 --- a/packages/mongodb-chatbot-server/src/routes/conversations/addMessageToConversation.test.ts +++ b/packages/mongodb-chatbot-server/src/routes/conversations/addMessageToConversation.test.ts @@ -9,12 +9,14 @@ import { defaultConversationConstants, Message, makeOpenAiChatLlm, + SomeMessage, } from "mongodb-rag-core"; import { Express } from "express"; import { AddMessageRequestBody, DEFAULT_MAX_INPUT_LENGTH, DEFAULT_MAX_USER_MESSAGES_IN_CONVERSATION, + makeAddMessageToConversationRoute, } from "./addMessageToConversation"; import { ApiConversation, ApiMessage } from "./utils"; import { stripIndent } from "common-tags"; @@ -37,9 +39,14 @@ describe("POST /conversations/:conversationId/messages", () => { let conversations: ConversationsService; let app: Express; let appConfig: AppConfig; + const mockCustomDataFunction = jest.fn(); beforeAll(async () => { - ({ ipAddress, origin, mongodb, app, appConfig } = await makeTestApp()); + ({ ipAddress, origin, app, appConfig, mongodb } = await makeTestApp({ + conversationsRouterConfig: { + createConversationCustomData: mockCustomDataFunction, + }, + })); ({ conversationsRouterConfig: { conversations }, } = appConfig); @@ -166,6 +173,9 @@ describe("POST /conversations/:conversationId/messages", () => { expect(res.text).toContain(`data: {"type":"delta","data":"`); expect(res.text).toContain(`data: {"type":"references","data":[{`); expect(res.text).toContain(`data: {"type":"finished","data":"`); + expect(res.text).toContain( + `data: {"type":"metadata","data":{"conversationId":"${conversationId}"}}` + ); }); it("should stream two requests concurrently", async () => { const newConvoId1 = await createNewConversation(app, ipAddress); @@ -208,7 +218,7 @@ describe("POST /conversations/:conversationId/messages", () => { }); expect(res.statusCode).toEqual(400); expect(res.body).toStrictEqual({ - error: `Invalid ObjectId string: ${notAValidId}`, + error: `Invalid conversationId: ${notAValidId}`, }); }); @@ -249,16 +259,21 @@ describe("POST /conversations/:conversationId/messages", () => { test("Should respond 400 if number of messages in conversation exceeds limit", async () => { const { _id } = await conversations.create(); // Init conversation with max length - for await (const i of Array(DEFAULT_MAX_USER_MESSAGES_IN_CONVERSATION)) { - await conversations.addConversationMessage({ - conversationId: _id, - message: { + const messages = Array.from( + { + length: DEFAULT_MAX_USER_MESSAGES_IN_CONVERSATION, + }, + (_, i) => { + return { content: `message ${i}`, role: "user", - embedding: [1, 2, 3], - }, - }); - } + } satisfies SomeMessage; + } + ); + await conversations.addManyConversationMessages({ + conversationId: _id, + messages, + }); const res = await request(app) .post(endpointUrl.replace(":conversationId", _id.toString())) @@ -338,7 +353,6 @@ describe("POST /conversations/:conversationId/messages", () => { .set("X-FORWARDED-FOR", ipAddress) .set("Origin", origin) .send({ message: NO_VECTOR_CONTENT }); - console.log(response.body); expect(response.statusCode).toBe(200); expect(response.body.references).toStrictEqual([]); expect(response.body.content).toEqual( @@ -364,7 +378,7 @@ describe("POST /conversations/:conversationId/messages", () => { app: Express; let testMongo: Db; beforeEach(async () => { - const { mongodb, appConfig } = makeTestAppConfig(); + const { mongodb, appConfig } = await makeTestAppConfig(); testMongo = mongodb; ({ app } = await makeTestApp({ ...appConfig, @@ -397,6 +411,53 @@ describe("POST /conversations/:conversationId/messages", () => { }); }); }); + + describe("create conversation with 'null' conversationId", () => { + test("should create a new conversation with 'null' value for addMessageToConversation if configured", async () => { + const res = await request(app) + .post(DEFAULT_API_PREFIX + `/conversations/null/messages`) + .set("X-FORWARDED-FOR", ipAddress) + .set("Origin", origin) + .send({ + message: "hello", + }); + expect(res.statusCode).toEqual(200); + expect(res.body).toMatchObject({ + content: expect.any(String), + metadata: { + conversationId: expect.any(String), + }, + role: "assistant", + }); + expect(mockCustomDataFunction).toHaveBeenCalled(); + const conversation = await conversations.findById({ + _id: ObjectId.createFromHexString(res.body.metadata.conversationId), + }); + expect(conversation?._id.toString()).toEqual( + res.body.metadata.conversationId + ); + expect(conversation?.messages).toHaveLength(3); + expect(conversation?.messages[0]).toMatchObject(systemPrompt); + }); + test("should not create a new conversation with 'null' value for addMessageToConversation if NOT configured", async () => { + const { app: appWithoutCustomData } = await makeTestApp({ + conversationsRouterConfig: { + createConversationOnNullMessageId: false, + }, + }); + const res = await request(appWithoutCustomData) + .post(DEFAULT_API_PREFIX + `/conversations/null/messages`) + .set("X-FORWARDED-FOR", ipAddress) + .set("Origin", origin) + .send({ + message: "hello", + }); + expect(res.statusCode).toEqual(400); + expect(res.body).toMatchObject({ + error: expect.any(String), + }); + }); + }); }); async function createNewConversation( diff --git a/packages/mongodb-chatbot-server/src/routes/conversations/addMessageToConversation.ts b/packages/mongodb-chatbot-server/src/routes/conversations/addMessageToConversation.ts index 33b2fc9e2..9c516b169 100644 --- a/packages/mongodb-chatbot-server/src/routes/conversations/addMessageToConversation.ts +++ b/packages/mongodb-chatbot-server/src/routes/conversations/addMessageToConversation.ts @@ -4,17 +4,14 @@ import { Request as ExpressRequest, Response as ExpressResponse, } from "express"; +import { SystemMessage } from "mongodb-rag-core"; import { ObjectId } from "mongodb-rag-core/mongodb"; import { ConversationsService, Conversation, SomeMessage, - UserMessage, - AssistantMessage, - DataStreamer, makeDataStreamer, ChatLlm, - OpenAiChatMessage, } from "mongodb-rag-core"; import { ApiMessage, @@ -32,10 +29,7 @@ import { import { GenerateUserPromptFunc } from "../../processors/GenerateUserPromptFunc"; import { FilterPreviousMessages } from "../../processors/FilterPreviousMessages"; import { filterOnlySystemPrompt } from "../../processors/filterOnlySystemPrompt"; -import { - convertMessageFromLlmToDb, - generateResponse, -} from "../generateResponse"; +import { generateResponse } from "../generateResponse"; export const DEFAULT_MAX_INPUT_LENGTH = 3000; // magic number for max input size for LLM export const DEFAULT_MAX_USER_MESSAGES_IN_CONVERSATION = 7; // magic number for max messages in a conversation @@ -70,6 +64,26 @@ export interface AddMessageToConversationRouteParams { maxInputLengthCharacters?: number; maxUserMessagesInConversation?: number; addMessageToConversationCustomData?: AddCustomDataFunc; + /** + If present, the route will create a new conversation + when given the `conversationIdPathParam` in the URL. + */ + createConversation?: { + /** + Create a new conversation when the `conversationId` is the string "null". + */ + createOnNullConversationId: boolean; + /** + The custom data to add to the new conversation + when it is created. + */ + addCustomData?: AddCustomDataFunc; + /** + The system message to add to the new conversation + when it is created. + */ + systemMessage?: SystemMessage; + }; } export function makeAddMessageToConversationRoute({ @@ -80,6 +94,7 @@ export function makeAddMessageToConversationRoute({ maxUserMessagesInConversation = DEFAULT_MAX_USER_MESSAGES_IN_CONVERSATION, filterPreviousMessages = filterOnlySystemPrompt, addMessageToConversationCustomData, + createConversation, }: AddMessageToConversationRouteParams) { return async ( req: ExpressRequest, @@ -122,6 +137,10 @@ export function makeAddMessageToConversationRoute({ const conversation = await loadConversation({ conversationIdString, conversations, + createConversation, + reqId, + req, + res, }); // --- MAX CONVERSATION LENGTH CHECK --- @@ -170,11 +189,18 @@ export function makeAddMessageToConversationRoute({ const dbAssistantMessage = dbNewMessages[dbNewMessages.length - 1]; assert(dbAssistantMessage !== undefined, "No assistant message found"); - const apiRes = convertMessageFromDbToApi(dbAssistantMessage); + const apiRes = convertMessageFromDbToApi( + dbAssistantMessage, + conversation._id + ); if (!shouldStream) { return res.status(200).json(apiRes); } else { + dataStreamer.streamData({ + type: "metadata", + data: { conversationId: conversation._id.toString() }, + }); dataStreamer.streamData({ type: "finished", data: apiRes.id, @@ -249,11 +275,48 @@ async function addMessagesToDatabase({ const loadConversation = async ({ conversationIdString, conversations, + createConversation, + reqId, + req, + res, }: { conversationIdString: string; conversations: ConversationsService; + createConversation?: AddMessageToConversationRouteParams["createConversation"]; + reqId: string; + req: ExpressRequest; + res: ExpressResponse; }) => { - const conversationId = toObjectId(conversationIdString); + // Create a new conversation if the conversationId is "null" + // and the route is configured to do so + if ( + createConversation?.createOnNullConversationId === true && + conversationIdString === "null" + ) { + logRequest({ + reqId, + message: stripIndents`Creating new conversation`, + }); + return await conversations.create({ + initialMessages: createConversation.systemMessage + ? [createConversation.systemMessage] + : undefined, + customData: createConversation.addCustomData + ? await createConversation.addCustomData(req, res) + : undefined, + }); + } + + // Throw if the conversationId is not a valid ObjectId + const conversationId = ObjectId.isValid(conversationIdString) + ? ObjectId.createFromHexString(conversationIdString) + : (() => { + throw makeRequestError({ + httpStatus: 400, + message: `Invalid conversationId: ${conversationIdString}`, + }); + })(); + const conversation = await conversations.findById({ _id: conversationId, }); @@ -265,14 +328,3 @@ const loadConversation = async ({ } return conversation; }; - -const toObjectId = (id: string) => { - try { - return new ObjectId(id); - } catch (error) { - throw makeRequestError({ - httpStatus: 400, - message: `Invalid ObjectId string: ${id}`, - }); - } -}; diff --git a/packages/mongodb-chatbot-server/src/routes/conversations/commentMessage.test.ts b/packages/mongodb-chatbot-server/src/routes/conversations/commentMessage.test.ts index 707152ee9..61a2c59be 100644 --- a/packages/mongodb-chatbot-server/src/routes/conversations/commentMessage.test.ts +++ b/packages/mongodb-chatbot-server/src/routes/conversations/commentMessage.test.ts @@ -11,7 +11,7 @@ import { Express } from "express"; import { DEFAULT_API_PREFIX } from "../../app"; import { makeTestApp } from "../../test/testHelpers"; import { AppConfig } from "../../app"; -import { systemPrompt, config as testConfig } from "../../test/testConfig"; +import { makeDefaultConfig, systemPrompt } from "../../test/testConfig"; import { ObjectId } from "mongodb-rag-core/mongodb"; jest.setTimeout(100000); @@ -273,6 +273,7 @@ describe("POST /conversations/:conversationId/messages/:messageId/comment", () = }); it("Should enforce maximum comment length (if configured)", async () => { + const testConfig = await makeDefaultConfig(); const { app, ipAddress, appConfig, origin } = await makeTestApp({ ...testConfig, conversationsRouterConfig: { diff --git a/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.test.ts b/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.test.ts index addbdf9b3..43ea5623d 100644 --- a/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.test.ts +++ b/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.test.ts @@ -17,8 +17,8 @@ describe("Conversations Router", () => { DEFAULT_API_PREFIX + "/conversations/:conversationId/messages"; let appConfig: AppConfig; - beforeAll(() => { - ({ appConfig } = makeTestAppConfig()); + beforeAll(async () => { + ({ appConfig } = await makeTestAppConfig()); }); test("Should apply conversation router rate limit", async () => { const { app, origin } = await makeTestApp({ @@ -200,6 +200,36 @@ describe("Conversations Router", () => { await createConversationReq({ app, origin }); expect(called).toBe(true); }); + it("should create a new conversation with 'null' value for addMessageToConversation if configured", async () => { + const { app, origin } = await makeTestApp({ + conversationsRouterConfig: { + ...appConfig.conversationsRouterConfig, + createConversationOnNullMessageId: true, + }, + }); + const res = await createConversationMessageReq({ + app, + origin, + conversationId: "null", + message: "what is the current version of mongodb server?", + }); + expect(res.status).toBe(200); + }); + it("should not create a new conversation with 'null' value for addMessageToConversation if not configured", async () => { + const { app, origin } = await makeTestApp({ + conversationsRouterConfig: { + ...appConfig.conversationsRouterConfig, + createConversationOnNullMessageId: false, + }, + }); + const res = await createConversationMessageReq({ + app, + origin, + conversationId: "null", + message: "what is the current version of mongodb server?", + }); + expect(res.status).toBe(400); + }); // Helpers /** diff --git a/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts b/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts index 0ef9f9ac8..2d8796b9f 100644 --- a/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts +++ b/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts @@ -190,6 +190,14 @@ export interface ConversationsRouterParams { If not specified, user comments may be of any length. */ maxUserCommentLength?: number; + + /** + Whether to create a new conversation if the message ID is "null" + on the addMessageToConversation route. + + @default true + */ + createConversationOnNullMessageId?: boolean; } export const rateLimitResponse = { @@ -228,6 +236,7 @@ export function makeConversationsRouter({ createConversationCustomData = addOriginAndIpToCustomData, addMessageToConversationCustomData = addOriginToCustomData, maxUserCommentLength, + createConversationOnNullMessageId = true, }: ConversationsRouterParams) { const conversationsRouter = Router(); // Set the customData and conversations on the response locals @@ -315,6 +324,13 @@ export function makeConversationsRouter({ addMessageToConversationCustomData, generateUserPrompt, filterPreviousMessages, + createConversation: createConversationOnNullMessageId + ? { + createOnNullConversationId: createConversationOnNullMessageId, + addCustomData: createConversationCustomData, + systemMessage: systemPrompt, + } + : undefined, }); conversationsRouter.post( "/:conversationId/messages", diff --git a/packages/mongodb-chatbot-server/src/routes/conversations/createConversation.test.ts b/packages/mongodb-chatbot-server/src/routes/conversations/createConversation.test.ts index d6a2861a7..bc86cf3b2 100644 --- a/packages/mongodb-chatbot-server/src/routes/conversations/createConversation.test.ts +++ b/packages/mongodb-chatbot-server/src/routes/conversations/createConversation.test.ts @@ -11,8 +11,8 @@ const CONVERSATIONS_API_V1_PREFIX = DEFAULT_API_PREFIX + "/conversations"; describe("POST /conversations", () => { let appConfig: AppConfig; let mongodb: Db; - beforeAll(() => { - ({ appConfig, mongodb } = makeTestAppConfig()); + beforeAll(async () => { + ({ appConfig, mongodb } = await makeTestAppConfig()); }); it("should respond 200 and create a conversation", async () => { diff --git a/packages/mongodb-chatbot-server/src/routes/conversations/getConversation.test.ts b/packages/mongodb-chatbot-server/src/routes/conversations/getConversation.test.ts index b09970d3e..208cc49de 100644 --- a/packages/mongodb-chatbot-server/src/routes/conversations/getConversation.test.ts +++ b/packages/mongodb-chatbot-server/src/routes/conversations/getConversation.test.ts @@ -9,8 +9,9 @@ const CONVERSATIONS_API_V1_PREFIX = DEFAULT_API_PREFIX + "/conversations"; describe("GET /conversations/:conversationId", () => { let appConfig: AppConfig; let conversations: ConversationsService; - beforeAll(() => { - ({ appConfig, conversations } = makeTestAppConfig()); + beforeAll(async () => { + ({ appConfig } = await makeTestAppConfig()); + conversations = appConfig.conversationsRouterConfig.conversations; }); it("should return 400 when the conversation ID is invalid", async () => { diff --git a/packages/mongodb-chatbot-server/src/routes/conversations/utils.test.ts b/packages/mongodb-chatbot-server/src/routes/conversations/utils.test.ts index 434f93e77..93e151e7c 100644 --- a/packages/mongodb-chatbot-server/src/routes/conversations/utils.test.ts +++ b/packages/mongodb-chatbot-server/src/routes/conversations/utils.test.ts @@ -1,3 +1,4 @@ +import { strict as assert } from "assert"; import { areEquivalentIpAddresses, convertConversationFromDbToApi, @@ -98,6 +99,7 @@ describe("Data Conversion Functions", () => { functionResultMessage, assistantMessage, ] = exampleConversationInDatabase.messages; + const convoId = new ObjectId(); expect(convertMessageFromDbToApi(systemMessage)).toEqual({ id: "65ca766ab564b694eba8c330", @@ -142,6 +144,32 @@ describe("Data Conversion Functions", () => { references: undefined, }); }); + test("do not include conversationId if not provided", () => { + const message = exampleConversationInDatabase.messages[0]; + expect(convertMessageFromDbToApi(message)).not.toMatchObject({ + metadata: { conversationId: expect.any(String) }, + }); + }); + test("include conversationId in assistant message if provided", () => { + const message = exampleConversationInDatabase.messages.find( + (m) => m.role === "assistant" + ); + assert(message); + const convoId = new ObjectId(); + expect(convertMessageFromDbToApi(message, convoId)).toMatchObject({ + metadata: { conversationId: convoId.toString() }, + }); + }); + test("don't include conversationId in non-assistant messages", () => { + const message = exampleConversationInDatabase.messages.find( + (m) => m.role !== "assistant" + ); + assert(message); + const convoId = new ObjectId(); + expect(convertMessageFromDbToApi(message, convoId)).not.toMatchObject({ + metadata: { conversationId: expect.any(String) }, + }); + }); }); describe("convertConversationFromDbToApi", () => { diff --git a/packages/mongodb-chatbot-server/src/routes/conversations/utils.ts b/packages/mongodb-chatbot-server/src/routes/conversations/utils.ts index 3a17bf7db..1501666ba 100644 --- a/packages/mongodb-chatbot-server/src/routes/conversations/utils.ts +++ b/packages/mongodb-chatbot-server/src/routes/conversations/utils.ts @@ -1,6 +1,7 @@ import { isIP } from "net"; import { Address6 } from "ip-address"; import { Conversation, Message, References } from "mongodb-rag-core"; +import { ObjectId } from "mongodb-rag-core/mongodb"; import { z } from "zod"; export type ApiMessage = z.infer; @@ -21,7 +22,10 @@ export const ApiConversation = z.object({ createdAt: z.number(), }); -export function convertMessageFromDbToApi(message: Message): ApiMessage { +export function convertMessageFromDbToApi( + message: Message, + conversationId?: ObjectId +): ApiMessage { const { id, createdAt, role, content } = message; const apiMessage = { id: id.toString(), @@ -30,13 +34,19 @@ export function convertMessageFromDbToApi(message: Message): ApiMessage { createdAt: createdAt.getTime(), }; if (role === "assistant") { - const { rating, references, metadata } = message; - return { + const { rating, references, metadata = {} } = message; + if (conversationId) { + metadata.conversationId = conversationId?.toString(); + } + const augmentedApiMessage: ApiMessage = { ...apiMessage, rating, references, - metadata, }; + if (Object.keys(metadata).length > 0) { + augmentedApiMessage.metadata = metadata; + } + return augmentedApiMessage; } return apiMessage; } @@ -71,7 +81,7 @@ export function convertConversationFromDbToApi( createdAt: conversation.createdAt.getTime(), messages: conversation.messages .filter(isMessageAllowedInApiResponse) - .map(convertMessageFromDbToApi), + .map((message) => convertMessageFromDbToApi(message)), }; } diff --git a/packages/mongodb-chatbot-server/src/test/testConfig.ts b/packages/mongodb-chatbot-server/src/test/testConfig.ts index 2cb982b67..0559cf041 100644 --- a/packages/mongodb-chatbot-server/src/test/testConfig.ts +++ b/packages/mongodb-chatbot-server/src/test/testConfig.ts @@ -16,9 +16,9 @@ import { makeOpenAiChatLlm, SystemPrompt, UserMessage, - SearchBooster, + defaultConversationConstants, } from "mongodb-rag-core"; -import { MongoClient } from "mongodb-rag-core/mongodb"; +import { MongoClient, Db } from "mongodb-rag-core/mongodb"; import { AzureOpenAI } from "mongodb-rag-core/openai"; import { stripIndents } from "common-tags"; import { AppConfig } from "../app"; @@ -29,7 +29,26 @@ import { makeFilterNPreviousMessages, } from "../processors"; import { makeDefaultReferenceLinks } from "../processors/makeDefaultReferenceLinks"; +import { MongoMemoryServer } from "mongodb-memory-server"; + +let mongoClient: MongoClient | undefined; +export let memoryDb: Db; +let mongod: MongoMemoryServer | undefined; +beforeAll(async () => { + mongod = await MongoMemoryServer.create(); + const uri = mongod.getUri(); + const testDbName = `conversations-test-${Date.now()}`; + mongoClient = new MongoClient(uri); + memoryDb = mongoClient.db(testDbName); +}); +afterAll(async () => { + await memoryDb?.dropDatabase(); + await mongoClient?.close(); + await mongod?.stop(); + await embeddedContentStore.close(); + await verifiedAnswerStore.close(); +}); export const { MONGODB_CONNECTION_URI, MONGODB_DATABASE_NAME, @@ -154,7 +173,7 @@ export const fakeGenerateUserPrompt: GenerateUserPromptFunc = async (args) => { rejectQuery: args.userMessageText === REJECT_QUERY_CONTENT, staticResponse: noVectorContent ? { - content: conversations.conversationConstants.NO_RELEVANT_CONTENT, + content: defaultConversationConstants.NO_RELEVANT_CONTENT, role: "assistant", references: [], } @@ -193,12 +212,6 @@ export const llm = makeOpenAiChatLlm({ }, }); -export const mongodb = new MongoClient(MONGODB_CONNECTION_URI); - -export const conversations = makeMongoDbConversationsService( - mongodb.db(MONGODB_DATABASE_NAME) -); - /** MongoDB Chatbot implementation of {@link MakeReferenceLinksFunc}. Returns references that look like: @@ -223,16 +236,19 @@ export function makeMongoDbReferences(chunks: EmbeddedContent[]) { export const filterPrevious12Messages = makeFilterNPreviousMessages(12); -export const config: AppConfig = { - conversationsRouterConfig: { - llm, - conversations, - generateUserPrompt: fakeGenerateUserPrompt, - filterPreviousMessages: filterPrevious12Messages, - systemPrompt, - }, - maxRequestTimeoutMs: 30000, - corsOptions: { - origin: allowedOrigins, - }, -}; +export async function makeDefaultConfig(): Promise { + const conversations = makeMongoDbConversationsService(memoryDb); + return { + conversationsRouterConfig: { + llm, + generateUserPrompt: fakeGenerateUserPrompt, + filterPreviousMessages: filterPrevious12Messages, + systemPrompt, + conversations, + }, + maxRequestTimeoutMs: 30000, + corsOptions: { + origin: allowedOrigins, + }, + }; +} diff --git a/packages/mongodb-chatbot-server/src/test/testHelpers.ts b/packages/mongodb-chatbot-server/src/test/testHelpers.ts index 5b4cfc3e4..0455abcd9 100644 --- a/packages/mongodb-chatbot-server/src/test/testHelpers.ts +++ b/packages/mongodb-chatbot-server/src/test/testHelpers.ts @@ -1,45 +1,35 @@ import { strict as assert } from "assert"; -import { makeMongoDbConversationsService } from "mongodb-rag-core"; -import { MongoClient, Db } from "mongodb-rag-core/mongodb"; import { AppConfig, makeApp } from "../app"; -import { MONGODB_CONNECTION_URI, config, systemPrompt } from "./testConfig"; +import { makeDefaultConfig, memoryDb, systemPrompt } from "./testConfig"; -let mongoClient: MongoClient | undefined; -let mongodb: Db | undefined; -let testDbName: string | undefined; - -beforeAll(async () => { - testDbName = `conversations-test-${Date.now()}`; - mongoClient = new MongoClient(MONGODB_CONNECTION_URI); - mongodb = mongoClient.db(testDbName); -}); - -afterAll(async () => { - await mongodb?.dropDatabase(); - await mongoClient?.close(); -}); - -export function makeTestAppConfig(defaultConfigOverrides?: Partial) { - assert(mongodb !== undefined); - assert(mongoClient !== undefined); - - const conversations = makeMongoDbConversationsService(mongodb); +export async function makeTestAppConfig( + defaultConfigOverrides?: PartialAppConfig +) { + const config = await makeDefaultConfig(); const appConfig: AppConfig = { ...config, - conversationsRouterConfig: { - ...config.conversationsRouterConfig, - conversations, - }, + ...(defaultConfigOverrides ?? {}), async expressAppConfig(app) { app.get("/hello", (_req, res) => { res.send({ foo: "bar" }); }); }, - ...(defaultConfigOverrides ?? {}), + conversationsRouterConfig: { + ...config.conversationsRouterConfig, + ...(defaultConfigOverrides?.conversationsRouterConfig ?? {}), + }, }; - return { appConfig, mongodb, conversations, systemPrompt, mongoClient }; + assert(memoryDb, "memoryDb must be defined"); + return { appConfig, systemPrompt, mongodb: memoryDb }; } +export type PartialAppConfig = Omit< + Partial, + "conversationsRouterConfig" +> & { + conversationsRouterConfig?: Partial; +}; + export const TEST_ORIGIN = "http://localhost:5173"; /** @@ -47,12 +37,12 @@ export const TEST_ORIGIN = "http://localhost:5173"; before `beforeAll()`. @param defaultConfigOverrides - optional overrides for default app config */ -export async function makeTestApp(defaultConfigOverrides?: Partial) { +export async function makeTestApp(defaultConfigOverrides?: PartialAppConfig) { // ip address for local host const ipAddress = "127.0.0.1"; const origin = TEST_ORIGIN; - const { appConfig, systemPrompt, mongodb, conversations } = makeTestAppConfig( + const { appConfig, systemPrompt, mongodb } = await makeTestAppConfig( defaultConfigOverrides ); const app = await makeApp(appConfig); @@ -62,7 +52,7 @@ export async function makeTestApp(defaultConfigOverrides?: Partial) { origin, appConfig, app, - conversations, + conversations: appConfig.conversationsRouterConfig.conversations, mongodb, systemPrompt, }; diff --git a/packages/mongodb-rag-core/src/DataStreamer.ts b/packages/mongodb-rag-core/src/DataStreamer.ts index 10bbefa14..3a1474977 100644 --- a/packages/mongodb-rag-core/src/DataStreamer.ts +++ b/packages/mongodb-rag-core/src/DataStreamer.ts @@ -89,6 +89,14 @@ export type FinishedStreamEvent = StreamEvent & { data: string; }; +/** + Event when server streams the conversation ID to the client. + */ +export type ConversationIdStreamEvent = StreamEvent & { + type: "conversationId"; + data: string; +}; + /** The event types streamed from the chat server to the client. */ @@ -97,7 +105,8 @@ export type SomeStreamEvent = | MetadataStreamEvent | ProcessingStreamEvent | ReferencesStreamEvent - | FinishedStreamEvent; + | FinishedStreamEvent + | ConversationIdStreamEvent; /** Service that streams data to the client. diff --git a/packages/scripts/src/findFaq.ts b/packages/scripts/src/findFaq.ts index 45268e07e..41be90e9b 100644 --- a/packages/scripts/src/findFaq.ts +++ b/packages/scripts/src/findFaq.ts @@ -1,5 +1,5 @@ import { strict as assert } from "assert"; -import { ObjectId, Collection, WithId } from "mongodb"; +import { ObjectId, Collection, WithId } from "mongodb-rag-core/mongodb"; import randomSampleImpl from "@stdlib/random-sample"; import { Conversation, @@ -279,7 +279,7 @@ export const assignFaqIds = async ({ // Use the pre-existing faqId or generate a new one for this category const faqId = - previousFaqsWithFaqIds[0]?.faqId ?? ObjectId.generate().toString("hex"); + previousFaqsWithFaqIds[0]?.faqId ?? ObjectId.generate().toString(); console.log( `${ previousFaqsWithFaqIds[0]?.faqId === undefined diff --git a/packages/scripts/src/main/upgradeFaqEntriesMain.ts b/packages/scripts/src/main/upgradeFaqEntriesMain.ts index 7ba3ac1c8..44090a10d 100644 --- a/packages/scripts/src/main/upgradeFaqEntriesMain.ts +++ b/packages/scripts/src/main/upgradeFaqEntriesMain.ts @@ -1,4 +1,8 @@ -import { MongoClient, WithId, AnyBulkWriteOperation } from "mongodb"; +import { + MongoClient, + WithId, + AnyBulkWriteOperation, +} from "mongodb-rag-core/mongodb"; import { assertEnvVars } from "mongodb-rag-core"; import { upgradeFaqEntry, FaqEntry, FaqEntryV0 } from "../upgradeFaqEntries"; import { ScrubbedMessage } from "../ScrubbedMessage"; @@ -71,7 +75,7 @@ async function main() { const write = async () => { const bulkWriteResult = await toCollection.bulkWrite(bulk); console.log( - `Modified ${bulkWriteResult.nModified}, upserted ${bulkWriteResult.nUpserted}.` + `Modified ${bulkWriteResult.modifiedCount}, upserted ${bulkWriteResult.upsertedCount}.` ); }; for await (const entry of entries) {