@skydiveai/pi-extensions 0.1.0-beta.2628 → 0.1.0-beta.2629

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.mjs +3 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4688,7 +4688,9 @@ function watchdogTick(now) {
4688
4688
  }
4689
4689
  if (now - lastKeepaliveAt >= KEEPALIVE_EVERY_MS) {
4690
4690
  lastKeepaliveAt = now;
4691
- postHeartbeat({ messageId: null });
4691
+ const messageIds = new Set(running.map((task) => task.messageId));
4692
+ if (messageIds.size === 0) postHeartbeat({ messageId: null });
4693
+ else for (const messageId of messageIds) postHeartbeat({ messageId });
4692
4694
  }
4693
4695
  }
4694
4696
  function stopWatchdog() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skydiveai/pi-extensions",
3
- "version": "0.1.0-beta.2628",
3
+ "version": "0.1.0-beta.2629",
4
4
  "homepage": "https://skydive.com",
5
5
  "license": "MIT",
6
6
  "author": "Create, Inc.",