brainy/scripts
David Snelling 7e6718f59b **feat(cli, workers): introduce text encoding patches and worker improvements**
- Added `cli-package/brainy-wrapper.js` to patch global `TextEncoder` and `TextDecoder` for Node.js environments, ensuring compatibility with TensorFlow.js.
- Implemented unified text encoding utilities in `cli-package/src/utils/textEncoding.ts` for cross-environment consistency.
- Enhanced `src/worker.js` and introduced `src/worker.ts` to improve worker execution with better function serialization and error handling.
- Updated `package.json`:
  - Modified the `build` script to include a patch for `TextEncoder`.
  - Added `test-all` script for multi-environment testing.
  - Introduced the Puppeteer dependency for browser testing.
- Created a favicon generation script `scripts/create-favicon.js` using a base64-encoded icon.
- Added `scripts/test-all-environments.js` to run automated tests across Node.js, browser, and CLI environments.
- Enhanced `src/utils/workerUtils.ts` to support improved fallback mechanisms and robust worker pooling.

This update improves the project's compatibility across environments, refines worker functionalities, and adds comprehensive testing support for reliability.
2025-07-04 14:42:33 -07:00
..
check-code-style.js feat(scripts, project): add comprehensive code style enforcement script and update style-related workflows 2025-06-30 09:51:53 -07:00
create-favicon.js **feat(cli, workers): introduce text encoding patches and worker improvements** 2025-07-04 14:42:33 -07:00
create-github-release.js **chore(version): bump version to 0.9.35 and update references** 2025-07-04 12:32:21 -07:00
encode-image.js Initial commit 2025-06-24 11:41:30 -07:00
generate-version.js **feat(cli, scripts): introduce CLI package and automated publishing process** 2025-07-02 11:32:06 -07:00
patch-textencoder.js **feat(cli, workers): introduce text encoding patches and worker improvements** 2025-07-04 14:42:33 -07:00
publish-cli.js **chore(release): enhance deployment workflows with GitHub release automation** 2025-07-04 12:29:38 -07:00
test-all-environments.js **feat(cli, workers): introduce text encoding patches and worker improvements** 2025-07-04 14:42:33 -07:00
test-cli-locally.js **feat: improve TensorFlow.js compatibility and remove unnecessary patches** 2025-07-02 16:16:19 -07:00
update-changelog.js **chore(release): enhance deployment workflows with GitHub release automation** 2025-07-04 12:29:38 -07:00
update-readme.js Initial commit 2025-06-24 11:41:30 -07:00