@principal-ai/control-tower-core 0.3.1 → 0.3.2

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/index.mjs CHANGED
@@ -6837,10 +6837,12 @@ class BaseServer extends TypedEventEmitter {
6837
6837
  }
6838
6838
  }
6839
6839
  async sendToClient(clientId, message) {
6840
+ const messageId = message.id || this.generateId();
6841
+ const { id: _id, ...messageWithoutId } = message;
6840
6842
  const transportMessage = {
6841
- id: this.generateId(),
6843
+ id: messageId,
6842
6844
  type: "server_message",
6843
- payload: { clientId, ...message },
6845
+ payload: { clientId, ...messageWithoutId },
6844
6846
  timestamp: Date.now()
6845
6847
  };
6846
6848
  await this.transport.send(transportMessage);
@@ -7090,4 +7092,4 @@ export {
7090
7092
  BaseClient
7091
7093
  };
7092
7094
 
7093
- //# debugId=9959D96F79712BE364756E2164756E21
7095
+ //# debugId=2344FC62E16D571364756E2164756E21