- Refactored `TextEncoder` and `TextDecoder` in `src/utils/tensorflowUtils.ts` to handle environments without global availability, logging warnings and providing fallback implementations. - Enhanced threading utilities in `src/utils/environment.ts`: - Introduced `areWorkerThreadsAvailableSync()` and `isThreadingAvailableAsync()` for synchronous and asynchronous checks. - Improved compatibility across browser and Node.js environments. - Migrated `fileSystemStorage.ts` to use dynamic imports for Node.js modules, removing synchronous loading mechanisms to align with ES module standards. - Updated `cli-package/package.json` keywords to include `browser` and `container`, improving discoverability. - Added `worker_threads` as an external dependency in `cli-package/rollup.config.js` and `rollup.config.js`. - Updated `.gitignore` to ignore all `tgz` files dynamically under main and CLI package. This update improves threading compatibility, enhances environment-specific support, and aligns with modern module loading practices.
59 lines
819 B
Text
59 lines
819 B
Text
# Build output
|
|
/tmp
|
|
/out-tsc
|
|
/dist
|
|
/cloud-wrapper/dist
|
|
|
|
# Dependencies
|
|
/node_modules
|
|
/cloud-wrapper/node_modules
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
/.pnp
|
|
.pnp.js
|
|
|
|
# Coverage directory
|
|
/coverage
|
|
|
|
# Environment files
|
|
.env
|
|
.env.local
|
|
.env.development.local
|
|
.env.test.local
|
|
.env.production.local
|
|
|
|
# IDE files
|
|
.vscode/
|
|
.idea/
|
|
*.iml
|
|
*.iws
|
|
*.ipr
|
|
*.sublime-workspace
|
|
*.sublime-project
|
|
|
|
# OS files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Data directories created by FileSystemStorage
|
|
/brainy-data
|
|
/custom-data
|
|
/clean-history.sh
|
|
/bluesky-augmentation/node_modules/
|
|
/bluesky-augmentation/dist/
|
|
|
|
# Test files
|
|
/test-worker.js
|
|
/test-node24-worker.js
|
|
|
|
# Generated files
|
|
/encoded-image.html
|
|
/encoded-image.txt
|
|
/cli-package/dist/
|
|
/cli-package/node_modules/
|
|
/npm
|
|
/rollup
|
|
/soulcraft-brainy-*.tgz
|
|
/data/
|
|
/cli-package/soulcraft-brainy-cli-*.tgz
|