@annals/agent-mesh 0.18.3 → 0.18.4

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 +15 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -589,19 +589,22 @@ var FileUploadReceiver = class {
589
589
  });
590
590
  });
591
591
  }
592
- if (signal.signal_type === "offer" || signal.signal_type === "answer") {
593
- this.peer.setRemoteDescription(signal.payload, signal.signal_type);
594
- for (const c of this.pendingCandidates) {
595
- this.peer.addRemoteCandidate(c.candidate, c.mid);
596
- }
597
- this.pendingCandidates = [];
598
- } else if (signal.signal_type === "candidate") {
599
- const { candidate, mid } = JSON.parse(signal.payload);
600
- if (this.peer.remoteDescription()) {
601
- this.peer.addRemoteCandidate(candidate, mid);
602
- } else {
603
- this.pendingCandidates.push({ candidate, mid });
592
+ try {
593
+ if (signal.signal_type === "offer" || signal.signal_type === "answer") {
594
+ this.peer.setRemoteDescription(signal.payload, signal.signal_type);
595
+ for (const c of this.pendingCandidates) {
596
+ this.peer.addRemoteCandidate(c.candidate, c.mid);
597
+ }
598
+ this.pendingCandidates = [];
599
+ } else if (signal.signal_type === "candidate") {
600
+ const { candidate, mid } = JSON.parse(signal.payload);
601
+ if (this.peer.remoteDescription()) {
602
+ this.peer.addRemoteCandidate(candidate, mid);
603
+ } else {
604
+ this.pendingCandidates.push({ candidate, mid });
605
+ }
604
606
  }
607
+ } catch {
605
608
  }
606
609
  }
607
610
  waitForCompletion(timeoutMs = 3e4) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annals/agent-mesh",
3
- "version": "0.18.3",
3
+ "version": "0.18.4",
4
4
  "description": "CLI bridge connecting local AI agents to the Agents.Hot platform",
5
5
  "type": "module",
6
6
  "bin": {