refactor: simplify build system and improve model loading flexibility

- Remove Rollup bundling in favor of direct TypeScript compilation
- Move from bundled models to dynamic model loading with configurable paths
- Add Docker deployment examples and documentation
- Implement robust model loader with fallback mechanisms
- Update storage adapters for better cross-environment compatibility
- Add comprehensive tests for model loading and package installation
- Simplify package.json scripts and remove complex build configurations
- Clean up deprecated demo files and old bundling scripts

BREAKING CHANGE: Models are no longer bundled with the package. They are now loaded dynamically from CDN or custom paths.
This commit is contained in:
David Snelling 2025-08-05 16:09:30 -07:00
parent 5ee3b7a30f
commit 2e084a0fe0
51 changed files with 4835 additions and 8007 deletions

View file

@ -745,7 +745,7 @@ export class WebRTCConduitAugmentation extends BaseConduitAugmentation implement
} else if (data instanceof ArrayBuffer) {
dc.send(new Uint8Array(data))
} else if (ArrayBuffer.isView(data)) {
dc.send(data)
dc.send(data as ArrayBufferView<ArrayBuffer>)
} else {
// Convert to JSON string
dc.send(JSON.stringify(data))
@ -923,7 +923,7 @@ export class WebRTCConduitAugmentation extends BaseConduitAugmentation implement
} else if (data instanceof ArrayBuffer) {
dataChannel.send(new Uint8Array(data))
} else if (ArrayBuffer.isView(data)) {
dataChannel.send(data)
dataChannel.send(data as ArrayBufferView<ArrayBuffer>)
} else {
// Convert to JSON string
dataChannel.send(JSON.stringify(data))