@principal-ai/control-tower-core 0.1.13 → 0.1.14
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
|
@@ -4349,7 +4349,15 @@ class WebSocketServerTransportAdapter {
|
|
|
4349
4349
|
if (client.ws.readyState !== import_websocket.default.OPEN) {
|
|
4350
4350
|
throw new Error(`Client ${clientId} connection is not open`);
|
|
4351
4351
|
}
|
|
4352
|
-
const messageToSend = {
|
|
4352
|
+
const messageToSend = message.type === "server_message" && clientMessage.type ? {
|
|
4353
|
+
id: message.id,
|
|
4354
|
+
type: clientMessage.type,
|
|
4355
|
+
payload: clientMessage.payload || (() => {
|
|
4356
|
+
const { type, ...rest } = clientMessage;
|
|
4357
|
+
return rest;
|
|
4358
|
+
})(),
|
|
4359
|
+
timestamp: message.timestamp
|
|
4360
|
+
} : {
|
|
4353
4361
|
...message,
|
|
4354
4362
|
payload: clientMessage
|
|
4355
4363
|
};
|
|
@@ -5904,4 +5912,4 @@ export {
|
|
|
5904
5912
|
BaseClient
|
|
5905
5913
|
};
|
|
5906
5914
|
|
|
5907
|
-
//# debugId=
|
|
5915
|
+
//# debugId=2756317EEC93367264756E2164756E21
|