@soulcraft/brainy 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +2 -43
  2. package/dist/brainy.js +776 -252
  3. package/dist/brainy.min.js +765 -749
  4. package/dist/brainyData.d.ts +29 -0
  5. package/dist/patched-platform-node.d.ts +17 -0
  6. package/dist/setup.d.ts +16 -0
  7. package/dist/storage/fileSystemStorage.d.ts.map +1 -1
  8. package/dist/unified.d.ts +5 -3
  9. package/dist/unified.js +775 -253
  10. package/dist/unified.min.js +765 -749
  11. package/dist/utils/distance.d.ts.map +1 -1
  12. package/dist/utils/embedding.d.ts +25 -4
  13. package/dist/utils/embedding.d.ts.map +1 -1
  14. package/dist/utils/environment.d.ts.map +1 -1
  15. package/dist/utils/textEncoding.d.ts +13 -20
  16. package/dist/utils/textEncoding.d.ts.map +1 -1
  17. package/dist/utils/version.d.ts +1 -1
  18. package/package.json +30 -11
  19. package/dist/augmentations/huggingfaceActivation.d.ts +0 -57
  20. package/dist/augmentations/huggingfaceActivation.d.ts.map +0 -1
  21. package/dist/augmentations/huggingfaceActivationRegistration.d.ts +0 -6
  22. package/dist/augmentations/huggingfaceActivationRegistration.d.ts.map +0 -1
  23. package/dist/cli.d.ts +0 -7
  24. package/dist/utils/distance-js.d.ts +0 -38
  25. package/dist/utils/distance-js.d.ts.map +0 -1
  26. package/dist/utils/distance-wasm.d.ts +0 -36
  27. package/dist/utils/distance-wasm.d.ts.map +0 -1
  28. package/dist/utils/huggingfaceEmbedding.d.ts +0 -53
  29. package/dist/utils/huggingfaceEmbedding.d.ts.map +0 -1
  30. package/dist/utils/tensorflowBridge.d.ts +0 -14
  31. package/dist/utils/tensorflowBridge.d.ts.map +0 -1
  32. package/dist/utils/textEncoderPolyfill.d.ts +0 -6
  33. package/dist/utils/textEncoderPolyfill.d.ts.map +0 -1
  34. package/dist/utils/universalDebug.d.ts +0 -21
  35. package/dist/utils/universalDebug.d.ts.map +0 -1
  36. package/dist/utils/universalUuid.d.ts +0 -26
  37. package/dist/utils/universalUuid.d.ts.map +0 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![Node.js](https://img.shields.io/badge/node-%3E%3D24.4.0-brightgreen.svg)](https://nodejs.org/)
7
7
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.4.5-blue.svg)](https://www.typescriptlang.org/)
8
8
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)
9
- [![npm](https://img.shields.io/badge/npm-v0.11.0-blue.svg)](https://www.npmjs.com/package/@soulcraft/brainy)
9
+ [![npm](https://img.shields.io/badge/npm-v0.12.0-blue.svg)](https://www.npmjs.com/package/@soulcraft/brainy)
10
10
 
11
11
  [//]: # ([![Cartographer](https://img.shields.io/badge/Cartographer-Official%20Standard-brightgreen)](https://github.com/sodal-project/cartographer))
12
12
 
@@ -933,8 +933,7 @@ the augmentation pipeline as tools:
933
933
  Environment compatibility:
934
934
 
935
935
  - **BrainyMCPAdapter** and **MCPAugmentationToolset** can run in any environment (browser, Node.js, server)
936
- - **BrainyMCPService** core functionality works in any environment, but server functionality (WebSocket/REST) is in the
937
- cloud-wrapper project
936
+ - **BrainyMCPService** core functionality works in any environment
938
937
 
939
938
  For detailed documentation and usage examples, see the [MCP documentation](src/mcp/README.md).
940
939
 
@@ -984,46 +983,6 @@ Works in all modern browsers:
984
983
 
985
984
  For browsers without OPFS support, falls back to in-memory storage.
986
985
 
987
- ## Cloud Deployment
988
-
989
- Brainy can be deployed as a standalone web service on various cloud platforms using the included cloud wrapper:
990
-
991
- - **AWS Lambda and API Gateway**: Deploy as a serverless function with API Gateway
992
- - **Google Cloud Run**: Deploy as a containerized service
993
- - **Cloudflare Workers**: Deploy as a serverless function on the edge
994
-
995
- The cloud wrapper provides both RESTful and WebSocket APIs for all Brainy operations, enabling both request-response and
996
- real-time communication patterns. It supports multiple storage backends and can be configured via environment variables.
997
-
998
- Key features of the cloud wrapper:
999
-
1000
- - RESTful API for standard CRUD operations
1001
- - WebSocket API for real-time updates and subscriptions
1002
- - Model Control Protocol (MCP) service for external model access
1003
- - Support for multiple storage backends (Memory, FileSystem, S3)
1004
- - Configurable via environment variables
1005
- - Deployment scripts for AWS, Google Cloud, and Cloudflare
1006
-
1007
- ### Deploying to the Cloud
1008
-
1009
- You can deploy the cloud wrapper to various cloud platforms using the following npm scripts from the root directory:
1010
-
1011
- ```bash
1012
- # Deploy to AWS Lambda and API Gateway
1013
- npm run deploy:cloud:aws
1014
-
1015
- # Deploy to Google Cloud Run
1016
- npm run deploy:cloud:gcp
1017
-
1018
- # Deploy to Cloudflare Workers
1019
- npm run deploy:cloud:cloudflare
1020
-
1021
- # Show available deployment options
1022
- npm run deploy:cloud
1023
- ```
1024
-
1025
- Before deploying, make sure to configure the appropriate environment variables in the `cloud-wrapper/.env` file. See
1026
- the [Cloud Wrapper README](cloud-wrapper/README.md) for detailed configuration instructions and API documentation.
1027
986
 
1028
987
  ## Related Projects
1029
988