- 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.
61 lines
No EOL
1.4 KiB
JSON
61 lines
No EOL
1.4 KiB
JSON
{
|
|
"name": "@soulcraft/brainy-cli",
|
|
"version": "0.10.0",
|
|
"description": "Command-line interface for the Brainy vector graph database",
|
|
"type": "module",
|
|
"bin": {
|
|
"brainy": "cli-wrapper.js"
|
|
},
|
|
"files": [
|
|
"cli-wrapper.js",
|
|
"README.md",
|
|
"dist/cli.js",
|
|
"dist/cli.js.map"
|
|
],
|
|
"scripts": {
|
|
"build": "rollup -c rollup.config.js",
|
|
"prepare": "npm run build",
|
|
"postinstall": "node cli-wrapper.js --version"
|
|
},
|
|
"keywords": [
|
|
"vector-database",
|
|
"hnsw",
|
|
"cli",
|
|
"browser",
|
|
"container",
|
|
"graph-database"
|
|
],
|
|
"author": "David Snelling (david@soulcraft.com)",
|
|
"license": "MIT",
|
|
"private": false,
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"homepage": "https://github.com/soulcraft-research/brainy",
|
|
"bugs": {
|
|
"url": "https://github.com/soulcraft-research/brainy/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/soulcraft-research/brainy.git"
|
|
},
|
|
"dependencies": {
|
|
"@soulcraft/brainy": "0.10.0",
|
|
"commander": "^14.0.0",
|
|
"omelette": "^0.4.17"
|
|
},
|
|
"devDependencies": {
|
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
"@rollup/plugin-json": "^6.1.0",
|
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
"@types/node": "^20.11.30",
|
|
"@types/omelette": "^0.4.5",
|
|
"rollup": "^4.13.0",
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
"typescript": "^5.4.5"
|
|
},
|
|
"engines": {
|
|
"node": ">=24.4.0"
|
|
}
|
|
} |