@cabane/companion 0.6.42 → 0.6.43

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/cli.js CHANGED
@@ -9851,12 +9851,14 @@ var CompanionSupervisor = class {
9851
9851
  this.stopped = true;
9852
9852
  if (this.heartbeatTimer) clearInterval(this.heartbeatTimer);
9853
9853
  if (this.pollTimer) clearInterval(this.pollTimer);
9854
+ const heartbeat = this.inFlightHeartbeat;
9854
9855
  this.deviceSub?.stop();
9855
9856
  for (const wr of this.workspaces.values()) {
9856
9857
  for (const a of wr.agents.values()) a.cancelDrain();
9857
9858
  if (wr.sub) wr.sub.stop();
9858
9859
  }
9859
9860
  await Promise.all([
9861
+ ...heartbeat ? [heartbeat] : [],
9860
9862
  ...this.deviceSub ? [this.deviceSub.finished] : [],
9861
9863
  ...[...this.workspaces.values()].flatMap((wr) => wr.sub ? [wr.sub.finished] : [])
9862
9864
  ]);
package/dist/runtime.js CHANGED
@@ -9360,12 +9360,14 @@ var CompanionSupervisor = class {
9360
9360
  this.stopped = true;
9361
9361
  if (this.heartbeatTimer) clearInterval(this.heartbeatTimer);
9362
9362
  if (this.pollTimer) clearInterval(this.pollTimer);
9363
+ const heartbeat = this.inFlightHeartbeat;
9363
9364
  this.deviceSub?.stop();
9364
9365
  for (const wr of this.workspaces.values()) {
9365
9366
  for (const a of wr.agents.values()) a.cancelDrain();
9366
9367
  if (wr.sub) wr.sub.stop();
9367
9368
  }
9368
9369
  await Promise.all([
9370
+ ...heartbeat ? [heartbeat] : [],
9369
9371
  ...this.deviceSub ? [this.deviceSub.finished] : [],
9370
9372
  ...[...this.workspaces.values()].flatMap((wr) => wr.sub ? [wr.sub.finished] : [])
9371
9373
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabane/companion",
3
- "version": "0.6.42",
3
+ "version": "0.6.43",
4
4
  "type": "module",
5
5
  "description": "The Cabane Companion (headless): connect a coding agent on your machine to your Cabane workspace as a responder — drive work against your own codebase, files, and MCP servers without putting any of it in Cabane.",
6
6
  "license": "UNLICENSED",