- Introduced `test-fallback-function.js` and `test-fallback-simple.js` to validate `executeInThread` fallback functionality with both named and anonymous compute-intensive functions. - Added `test-tensorflow-textencoder.js` for TensorFlow.js and TextEncoder tests in a Node.js environment. - Created `test-tensorflow-textencoder.html` for browser-based TensorFlow.js and TextEncoder tests. - Implemented cross-environment test support in `cli-package/src/test-tensorflow-textencoder.ts` for CLI functionality. - Enhanced `src/utils/embedding.ts`, `textEncoding.ts`, and `brainy-wrapper.js` to include updated global `TextEncoder` and `TextDecoder` utilities for compatibility and worker improvements. - Standardized and expanded utility methods in `PlatformNode` for broader support, including `isFloat32Array` and `isTypedArray` checks. - Updated Node.js requirement to `>= 24.4.0` across documentation and configuration files for compatibility improvements. This update introduces comprehensive testing for fallback mechanisms, TensorFlow.js, and TextEncoder across multiple environments, ensuring robustness and compatibility.
92 lines
2.1 KiB
JSON
92 lines
2.1 KiB
JSON
{
|
|
"name": "@soulcraft/brainy-cloud",
|
|
"version": "0.1.0",
|
|
"description": "Cloud deployment wrapper for Brainy vector graph database",
|
|
"main": "dist/index.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"dev": "nodemon --exec node --loader ts-node/esm src/index.ts",
|
|
"deploy:aws": "node scripts/deploy-aws.js",
|
|
"deploy:gcp": "node scripts/deploy-gcp.js",
|
|
"deploy:cloudflare": "node scripts/deploy-cloudflare.js"
|
|
},
|
|
"keywords": [
|
|
"brainy",
|
|
"vector-database",
|
|
"cloud",
|
|
"aws",
|
|
"google-cloud",
|
|
"cloudflare"
|
|
],
|
|
"author": "David Snelling (david@soulcraft.com)",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@soulcraft/brainy": "^0.9.34",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.4.5",
|
|
"express": "^4.19.2",
|
|
"helmet": "^7.1.0",
|
|
"morgan": "^1.10.0",
|
|
"uuid": "^9.0.1",
|
|
"ws": "^8.16.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cors": "^2.8.17",
|
|
"@types/express": "^4.17.21",
|
|
"@types/morgan": "^1.9.9",
|
|
"@types/node": "^20.11.30",
|
|
"@types/uuid": "^9.0.8",
|
|
"@types/ws": "^8.5.10",
|
|
"nodemon": "^3.1.0",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.4.5"
|
|
},
|
|
"engines": {
|
|
"node": ">=24.4.0"
|
|
},
|
|
"prettier": {
|
|
"arrowParens": "always",
|
|
"bracketSameLine": true,
|
|
"bracketSpacing": true,
|
|
"htmlWhitespaceSensitivity": "css",
|
|
"printWidth": 80,
|
|
"proseWrap": "preserve",
|
|
"semi": false,
|
|
"singleQuote": true,
|
|
"tabWidth": 2,
|
|
"trailingComma": "none",
|
|
"useTabs": false
|
|
},
|
|
"eslintConfig": {
|
|
"root": true,
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"args": "after-used",
|
|
"argsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"@typescript-eslint/semi": [
|
|
"error",
|
|
"never"
|
|
]
|
|
}
|
|
}
|
|
}
|