episoda 0.2.76 → 0.2.77

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.js CHANGED
@@ -2116,6 +2116,7 @@ var require_websocket_client = __commonJS({
2116
2116
  * @param token - OAuth access token
2117
2117
  * @param machineId - Optional machine identifier for multi-machine support
2118
2118
  * @param deviceInfo - Optional device information (hostname, OS, daemonPid)
2119
+ * EP1119: Added environment and containerId for cloud routing
2119
2120
  */
2120
2121
  async connect(url, token, machineId, deviceInfo) {
2121
2122
  this.url = url;
@@ -2125,6 +2126,8 @@ var require_websocket_client = __commonJS({
2125
2126
  this.osPlatform = deviceInfo?.osPlatform;
2126
2127
  this.osArch = deviceInfo?.osArch;
2127
2128
  this.daemonPid = deviceInfo?.daemonPid;
2129
+ this.environment = deviceInfo?.environment;
2130
+ this.containerId = deviceInfo?.containerId;
2128
2131
  this.isDisconnecting = false;
2129
2132
  this.isGracefulShutdown = false;
2130
2133
  this.isIntentionalDisconnect = false;
@@ -2162,7 +2165,9 @@ var require_websocket_client = __commonJS({
2162
2165
  type: "auth",
2163
2166
  token,
2164
2167
  version: version_1.VERSION,
2168
+ environment: this.environment,
2165
2169
  machineId,
2170
+ containerId: this.containerId,
2166
2171
  hostname: this.hostname,
2167
2172
  osPlatform: this.osPlatform,
2168
2173
  osArch: this.osArch,
@@ -2463,7 +2468,9 @@ var require_websocket_client = __commonJS({
2463
2468
  hostname: this.hostname,
2464
2469
  osPlatform: this.osPlatform,
2465
2470
  osArch: this.osArch,
2466
- daemonPid: this.daemonPid
2471
+ daemonPid: this.daemonPid,
2472
+ environment: this.environment,
2473
+ containerId: this.containerId
2467
2474
  }).then(() => {
2468
2475
  console.log("[EpisodaClient] Reconnection successful");
2469
2476
  this.reconnectAttempts = 0;