@neta-art/cohub 1.5.0 → 1.5.1

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/dist/websocket.js CHANGED
@@ -473,10 +473,12 @@ export class WebsocketClient {
473
473
  }
474
474
  const buffer = this.patchStreamBuffers.get(key);
475
475
  if (!buffer) {
476
- this.patchStreamBuffers.set(key, {
477
- nextSeq: payload.baseSeq,
476
+ const newBuffer = {
477
+ nextSeq: payload.baseSeq + 1,
478
478
  pending: new Map([[payload.seq, envelope]]),
479
- });
479
+ };
480
+ this.patchStreamBuffers.set(key, newBuffer);
481
+ this.flushPatchStreamBuffer(newBuffer);
480
482
  return;
481
483
  }
482
484
  if (payload.seq < buffer.nextSeq)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neta-art/cohub",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Cohub SDK for spaces, sessions, checkpoints, and realtime agent collaboration.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,