@elizaos/core 1.4.4 → 1.5.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.
- package/README.md +15 -0
- package/dist/browser/index.browser.js +1109 -0
- package/dist/browser/index.browser.js.map +707 -0
- package/dist/browser/index.d.ts +1 -0
- package/dist/index.d.ts +3 -4885
- package/dist/index.js +8 -5291
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.node.js +74451 -0
- package/dist/node/index.node.js.map +1027 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +32 -20
package/README.md
CHANGED
|
@@ -35,6 +35,21 @@ The `@elizaos/core` package provides a robust foundation for building AI agents
|
|
|
35
35
|
bun run build
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
## Browser and Node.js Compatibility
|
|
39
|
+
|
|
40
|
+
The `@elizaos/core` package features a dual build system that provides optimized builds for both Node.js and browser environments:
|
|
41
|
+
|
|
42
|
+
- **Node.js Build**: Full API surface with all features including server utilities
|
|
43
|
+
- **Browser Build**: Optimized, minified build with browser-safe APIs and polyfills
|
|
44
|
+
|
|
45
|
+
The correct build is automatically selected based on your environment through package.json conditional exports. For browser usage, ensure you have the necessary polyfills installed:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm install buffer crypto-browserify stream-browserify events
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
For more details on the dual build system, see [BUILD_SYSTEM.md](./BUILD_SYSTEM.md).
|
|
52
|
+
|
|
38
53
|
## Configuration
|
|
39
54
|
|
|
40
55
|
The following environment variables are used by `@elizaos/core`. Configure them in a `.env` file at your project root.
|