@clawchatsai/connector 0.0.26 → 0.0.27

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 (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,7 +13,6 @@ import * as fs from 'node:fs';
13
13
  import * as http from 'node:http';
14
14
  import * as path from 'node:path';
15
15
  import { SignalingClient } from './signaling-client.js';
16
- import { WebRTCPeerManager } from './webrtc-peer.js';
17
16
  import { dispatchRpc } from './shim.js';
18
17
  import { checkForUpdates, performUpdate } from './updater.js';
19
18
  import { initAuth, handleAuthMessage, cleanupAuth } from './auth-handler.js';
@@ -204,7 +203,8 @@ async function startClawChats(ctx, api) {
204
203
  ctx.logger.error(`Account suspended: ${reason}`);
205
204
  broadcastToClients({ type: 'account-suspended', reason });
206
205
  });
207
- // 6. Initialize WebRTC peer manager
206
+ // 6. Initialize WebRTC peer manager (lazy import — native module must be built first)
207
+ const { WebRTCPeerManager } = await import('./webrtc-peer.js');
208
208
  webrtcPeer = new WebRTCPeerManager();
209
209
  webrtcPeer.on('datachannel', (dc, connectionId) => {
210
210
  ctx.logger.info(`Browser connected via DataChannel: ${connectionId}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawchatsai/connector",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "type": "module",
5
5
  "description": "ClawChats OpenClaw plugin — P2P tunnel + local API bridge",
6
6
  "main": "dist/index.js",