@naylence/runtime 0.3.5-test.944 → 0.3.5-test.946

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.
@@ -98,12 +98,12 @@ installProcessEnvShim();
98
98
  // --- END ENV SHIM ---
99
99
 
100
100
  // This file is auto-generated during build - do not edit manually
101
- // Generated from package.json version: 0.3.5-test.944
101
+ // Generated from package.json version: 0.3.5-test.946
102
102
  /**
103
103
  * The package version, injected at build time.
104
104
  * @internal
105
105
  */
106
- const VERSION = '0.3.5-test.944';
106
+ const VERSION = '0.3.5-test.946';
107
107
 
108
108
  /**
109
109
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -30061,13 +30061,18 @@ class BroadcastChannelListener extends TransportListener {
30061
30061
  });
30062
30062
  }
30063
30063
  asCallbackGrant() {
30064
- return this.withLegacySnakeCaseKeys({
30064
+ const grant = {
30065
30065
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30066
30066
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30067
30067
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
30068
30068
  channelName: this._channelName,
30069
30069
  inboxCapacity: this._inboxCapacity,
30070
- });
30070
+ };
30071
+ // Include localNodeId for transport frame multiplexing if node is available
30072
+ if (this._routingNode) {
30073
+ grant.localNodeId = this._routingNode.id;
30074
+ }
30075
+ return this.withLegacySnakeCaseKeys(grant);
30071
30076
  }
30072
30077
  _registerChannelListener() {
30073
30078
  if (this._channelHandler) {
@@ -30264,15 +30269,18 @@ class BroadcastChannelListener extends TransportListener {
30264
30269
  };
30265
30270
  }
30266
30271
  // Automatically configure transport frame multiplexing:
30267
- // Set remoteNodeId to the incoming senderId to target responses back to the specific client/agent
30272
+ // Use node IDs (not connector IDs) for node-to-node targeting
30268
30273
  const broadcastConfig = connectorConfig;
30274
+ if (!broadcastConfig.localNodeId) {
30275
+ broadcastConfig.localNodeId = routingNode.id;
30276
+ }
30269
30277
  if (!broadcastConfig.remoteNodeId) {
30270
- broadcastConfig.remoteNodeId = params.senderId;
30278
+ broadcastConfig.remoteNodeId = systemId;
30271
30279
  logger$o.debug('broadcast_channel_listener_auto_configured_remote_node_id', {
30272
30280
  sender_id: params.senderId,
30273
30281
  system_id: systemId,
30274
- remote_node_id: params.senderId,
30275
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
30282
+ remote_node_id: systemId,
30283
+ local_node_id: broadcastConfig.localNodeId,
30276
30284
  });
30277
30285
  }
30278
30286
  else {
@@ -30280,7 +30288,7 @@ class BroadcastChannelListener extends TransportListener {
30280
30288
  sender_id: params.senderId,
30281
30289
  system_id: systemId,
30282
30290
  remote_node_id: broadcastConfig.remoteNodeId,
30283
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
30291
+ local_node_id: broadcastConfig.localNodeId,
30284
30292
  });
30285
30293
  }
30286
30294
  try {
@@ -96,12 +96,12 @@ installProcessEnvShim();
96
96
  // --- END ENV SHIM ---
97
97
 
98
98
  // This file is auto-generated during build - do not edit manually
99
- // Generated from package.json version: 0.3.5-test.944
99
+ // Generated from package.json version: 0.3.5-test.946
100
100
  /**
101
101
  * The package version, injected at build time.
102
102
  * @internal
103
103
  */
104
- const VERSION = '0.3.5-test.944';
104
+ const VERSION = '0.3.5-test.946';
105
105
 
106
106
  /**
107
107
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -30059,13 +30059,18 @@ class BroadcastChannelListener extends TransportListener {
30059
30059
  });
30060
30060
  }
30061
30061
  asCallbackGrant() {
30062
- return this.withLegacySnakeCaseKeys({
30062
+ const grant = {
30063
30063
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30064
30064
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30065
30065
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
30066
30066
  channelName: this._channelName,
30067
30067
  inboxCapacity: this._inboxCapacity,
30068
- });
30068
+ };
30069
+ // Include localNodeId for transport frame multiplexing if node is available
30070
+ if (this._routingNode) {
30071
+ grant.localNodeId = this._routingNode.id;
30072
+ }
30073
+ return this.withLegacySnakeCaseKeys(grant);
30069
30074
  }
30070
30075
  _registerChannelListener() {
30071
30076
  if (this._channelHandler) {
@@ -30262,15 +30267,18 @@ class BroadcastChannelListener extends TransportListener {
30262
30267
  };
30263
30268
  }
30264
30269
  // Automatically configure transport frame multiplexing:
30265
- // Set remoteNodeId to the incoming senderId to target responses back to the specific client/agent
30270
+ // Use node IDs (not connector IDs) for node-to-node targeting
30266
30271
  const broadcastConfig = connectorConfig;
30272
+ if (!broadcastConfig.localNodeId) {
30273
+ broadcastConfig.localNodeId = routingNode.id;
30274
+ }
30267
30275
  if (!broadcastConfig.remoteNodeId) {
30268
- broadcastConfig.remoteNodeId = params.senderId;
30276
+ broadcastConfig.remoteNodeId = systemId;
30269
30277
  logger$o.debug('broadcast_channel_listener_auto_configured_remote_node_id', {
30270
30278
  sender_id: params.senderId,
30271
30279
  system_id: systemId,
30272
- remote_node_id: params.senderId,
30273
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
30280
+ remote_node_id: systemId,
30281
+ local_node_id: broadcastConfig.localNodeId,
30274
30282
  });
30275
30283
  }
30276
30284
  else {
@@ -30278,7 +30286,7 @@ class BroadcastChannelListener extends TransportListener {
30278
30286
  sender_id: params.senderId,
30279
30287
  system_id: systemId,
30280
30288
  remote_node_id: broadcastConfig.remoteNodeId,
30281
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
30289
+ local_node_id: broadcastConfig.localNodeId,
30282
30290
  });
30283
30291
  }
30284
30292
  try {
@@ -142,13 +142,18 @@ class BroadcastChannelListener extends transport_listener_js_1.TransportListener
142
142
  });
143
143
  }
144
144
  asCallbackGrant() {
145
- return this.withLegacySnakeCaseKeys({
145
+ const grant = {
146
146
  type: broadcast_channel_connector_js_1.BROADCAST_CHANNEL_CONNECTOR_TYPE,
147
147
  connectorType: broadcast_channel_connector_js_1.BROADCAST_CHANNEL_CONNECTOR_TYPE,
148
148
  connectionGrantType: broadcast_channel_connection_grant_js_1.BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
149
149
  channelName: this._channelName,
150
150
  inboxCapacity: this._inboxCapacity,
151
- });
151
+ };
152
+ // Include localNodeId for transport frame multiplexing if node is available
153
+ if (this._routingNode) {
154
+ grant.localNodeId = this._routingNode.id;
155
+ }
156
+ return this.withLegacySnakeCaseKeys(grant);
152
157
  }
153
158
  _registerChannelListener() {
154
159
  if (this._channelHandler) {
@@ -345,15 +350,18 @@ class BroadcastChannelListener extends transport_listener_js_1.TransportListener
345
350
  };
346
351
  }
347
352
  // Automatically configure transport frame multiplexing:
348
- // Set remoteNodeId to the incoming senderId to target responses back to the specific client/agent
353
+ // Use node IDs (not connector IDs) for node-to-node targeting
349
354
  const broadcastConfig = connectorConfig;
355
+ if (!broadcastConfig.localNodeId) {
356
+ broadcastConfig.localNodeId = routingNode.id;
357
+ }
350
358
  if (!broadcastConfig.remoteNodeId) {
351
- broadcastConfig.remoteNodeId = params.senderId;
359
+ broadcastConfig.remoteNodeId = systemId;
352
360
  logger.debug('broadcast_channel_listener_auto_configured_remote_node_id', {
353
361
  sender_id: params.senderId,
354
362
  system_id: systemId,
355
- remote_node_id: params.senderId,
356
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
363
+ remote_node_id: systemId,
364
+ local_node_id: broadcastConfig.localNodeId,
357
365
  });
358
366
  }
359
367
  else {
@@ -361,7 +369,7 @@ class BroadcastChannelListener extends transport_listener_js_1.TransportListener
361
369
  sender_id: params.senderId,
362
370
  system_id: systemId,
363
371
  remote_node_id: broadcastConfig.remoteNodeId,
364
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
372
+ local_node_id: broadcastConfig.localNodeId,
365
373
  });
366
374
  }
367
375
  try {
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  // This file is auto-generated during build - do not edit manually
3
- // Generated from package.json version: 0.3.5-test.944
3
+ // Generated from package.json version: 0.3.5-test.946
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.VERSION = void 0;
6
6
  /**
7
7
  * The package version, injected at build time.
8
8
  * @internal
9
9
  */
10
- exports.VERSION = '0.3.5-test.944';
10
+ exports.VERSION = '0.3.5-test.946';
@@ -138,13 +138,18 @@ export class BroadcastChannelListener extends TransportListener {
138
138
  });
139
139
  }
140
140
  asCallbackGrant() {
141
- return this.withLegacySnakeCaseKeys({
141
+ const grant = {
142
142
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
143
143
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE,
144
144
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
145
145
  channelName: this._channelName,
146
146
  inboxCapacity: this._inboxCapacity,
147
- });
147
+ };
148
+ // Include localNodeId for transport frame multiplexing if node is available
149
+ if (this._routingNode) {
150
+ grant.localNodeId = this._routingNode.id;
151
+ }
152
+ return this.withLegacySnakeCaseKeys(grant);
148
153
  }
149
154
  _registerChannelListener() {
150
155
  if (this._channelHandler) {
@@ -341,15 +346,18 @@ export class BroadcastChannelListener extends TransportListener {
341
346
  };
342
347
  }
343
348
  // Automatically configure transport frame multiplexing:
344
- // Set remoteNodeId to the incoming senderId to target responses back to the specific client/agent
349
+ // Use node IDs (not connector IDs) for node-to-node targeting
345
350
  const broadcastConfig = connectorConfig;
351
+ if (!broadcastConfig.localNodeId) {
352
+ broadcastConfig.localNodeId = routingNode.id;
353
+ }
346
354
  if (!broadcastConfig.remoteNodeId) {
347
- broadcastConfig.remoteNodeId = params.senderId;
355
+ broadcastConfig.remoteNodeId = systemId;
348
356
  logger.debug('broadcast_channel_listener_auto_configured_remote_node_id', {
349
357
  sender_id: params.senderId,
350
358
  system_id: systemId,
351
- remote_node_id: params.senderId,
352
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
359
+ remote_node_id: systemId,
360
+ local_node_id: broadcastConfig.localNodeId,
353
361
  });
354
362
  }
355
363
  else {
@@ -357,7 +365,7 @@ export class BroadcastChannelListener extends TransportListener {
357
365
  sender_id: params.senderId,
358
366
  system_id: systemId,
359
367
  remote_node_id: broadcastConfig.remoteNodeId,
360
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
368
+ local_node_id: broadcastConfig.localNodeId,
361
369
  });
362
370
  }
363
371
  try {
@@ -1,7 +1,7 @@
1
1
  // This file is auto-generated during build - do not edit manually
2
- // Generated from package.json version: 0.3.5-test.944
2
+ // Generated from package.json version: 0.3.5-test.946
3
3
  /**
4
4
  * The package version, injected at build time.
5
5
  * @internal
6
6
  */
7
- export const VERSION = '0.3.5-test.944';
7
+ export const VERSION = '0.3.5-test.946';
@@ -14,12 +14,12 @@ var fastify = require('fastify');
14
14
  var websocketPlugin = require('@fastify/websocket');
15
15
 
16
16
  // This file is auto-generated during build - do not edit manually
17
- // Generated from package.json version: 0.3.5-test.944
17
+ // Generated from package.json version: 0.3.5-test.946
18
18
  /**
19
19
  * The package version, injected at build time.
20
20
  * @internal
21
21
  */
22
- const VERSION = '0.3.5-test.944';
22
+ const VERSION = '0.3.5-test.946';
23
23
 
24
24
  /**
25
25
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -36242,13 +36242,18 @@ class BroadcastChannelListener extends TransportListener {
36242
36242
  });
36243
36243
  }
36244
36244
  asCallbackGrant() {
36245
- return this.withLegacySnakeCaseKeys({
36245
+ const grant = {
36246
36246
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36247
36247
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36248
36248
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
36249
36249
  channelName: this._channelName,
36250
36250
  inboxCapacity: this._inboxCapacity,
36251
- });
36251
+ };
36252
+ // Include localNodeId for transport frame multiplexing if node is available
36253
+ if (this._routingNode) {
36254
+ grant.localNodeId = this._routingNode.id;
36255
+ }
36256
+ return this.withLegacySnakeCaseKeys(grant);
36252
36257
  }
36253
36258
  _registerChannelListener() {
36254
36259
  if (this._channelHandler) {
@@ -36445,15 +36450,18 @@ class BroadcastChannelListener extends TransportListener {
36445
36450
  };
36446
36451
  }
36447
36452
  // Automatically configure transport frame multiplexing:
36448
- // Set remoteNodeId to the incoming senderId to target responses back to the specific client/agent
36453
+ // Use node IDs (not connector IDs) for node-to-node targeting
36449
36454
  const broadcastConfig = connectorConfig;
36455
+ if (!broadcastConfig.localNodeId) {
36456
+ broadcastConfig.localNodeId = routingNode.id;
36457
+ }
36450
36458
  if (!broadcastConfig.remoteNodeId) {
36451
- broadcastConfig.remoteNodeId = params.senderId;
36459
+ broadcastConfig.remoteNodeId = systemId;
36452
36460
  logger$a.debug('broadcast_channel_listener_auto_configured_remote_node_id', {
36453
36461
  sender_id: params.senderId,
36454
36462
  system_id: systemId,
36455
- remote_node_id: params.senderId,
36456
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
36463
+ remote_node_id: systemId,
36464
+ local_node_id: broadcastConfig.localNodeId,
36457
36465
  });
36458
36466
  }
36459
36467
  else {
@@ -36461,7 +36469,7 @@ class BroadcastChannelListener extends TransportListener {
36461
36469
  sender_id: params.senderId,
36462
36470
  system_id: systemId,
36463
36471
  remote_node_id: broadcastConfig.remoteNodeId,
36464
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
36472
+ local_node_id: broadcastConfig.localNodeId,
36465
36473
  });
36466
36474
  }
36467
36475
  try {
@@ -13,12 +13,12 @@ import fastify from 'fastify';
13
13
  import websocketPlugin from '@fastify/websocket';
14
14
 
15
15
  // This file is auto-generated during build - do not edit manually
16
- // Generated from package.json version: 0.3.5-test.944
16
+ // Generated from package.json version: 0.3.5-test.946
17
17
  /**
18
18
  * The package version, injected at build time.
19
19
  * @internal
20
20
  */
21
- const VERSION = '0.3.5-test.944';
21
+ const VERSION = '0.3.5-test.946';
22
22
 
23
23
  /**
24
24
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -36241,13 +36241,18 @@ class BroadcastChannelListener extends TransportListener {
36241
36241
  });
36242
36242
  }
36243
36243
  asCallbackGrant() {
36244
- return this.withLegacySnakeCaseKeys({
36244
+ const grant = {
36245
36245
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36246
36246
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36247
36247
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
36248
36248
  channelName: this._channelName,
36249
36249
  inboxCapacity: this._inboxCapacity,
36250
- });
36250
+ };
36251
+ // Include localNodeId for transport frame multiplexing if node is available
36252
+ if (this._routingNode) {
36253
+ grant.localNodeId = this._routingNode.id;
36254
+ }
36255
+ return this.withLegacySnakeCaseKeys(grant);
36251
36256
  }
36252
36257
  _registerChannelListener() {
36253
36258
  if (this._channelHandler) {
@@ -36444,15 +36449,18 @@ class BroadcastChannelListener extends TransportListener {
36444
36449
  };
36445
36450
  }
36446
36451
  // Automatically configure transport frame multiplexing:
36447
- // Set remoteNodeId to the incoming senderId to target responses back to the specific client/agent
36452
+ // Use node IDs (not connector IDs) for node-to-node targeting
36448
36453
  const broadcastConfig = connectorConfig;
36454
+ if (!broadcastConfig.localNodeId) {
36455
+ broadcastConfig.localNodeId = routingNode.id;
36456
+ }
36449
36457
  if (!broadcastConfig.remoteNodeId) {
36450
- broadcastConfig.remoteNodeId = params.senderId;
36458
+ broadcastConfig.remoteNodeId = systemId;
36451
36459
  logger$a.debug('broadcast_channel_listener_auto_configured_remote_node_id', {
36452
36460
  sender_id: params.senderId,
36453
36461
  system_id: systemId,
36454
- remote_node_id: params.senderId,
36455
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
36462
+ remote_node_id: systemId,
36463
+ local_node_id: broadcastConfig.localNodeId,
36456
36464
  });
36457
36465
  }
36458
36466
  else {
@@ -36460,7 +36468,7 @@ class BroadcastChannelListener extends TransportListener {
36460
36468
  sender_id: params.senderId,
36461
36469
  system_id: systemId,
36462
36470
  remote_node_id: broadcastConfig.remoteNodeId,
36463
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
36471
+ local_node_id: broadcastConfig.localNodeId,
36464
36472
  });
36465
36473
  }
36466
36474
  try {
@@ -5478,12 +5478,12 @@ for (const [name, config] of Object.entries(SQLITE_PROFILES)) {
5478
5478
  }
5479
5479
 
5480
5480
  // This file is auto-generated during build - do not edit manually
5481
- // Generated from package.json version: 0.3.5-test.944
5481
+ // Generated from package.json version: 0.3.5-test.946
5482
5482
  /**
5483
5483
  * The package version, injected at build time.
5484
5484
  * @internal
5485
5485
  */
5486
- const VERSION = '0.3.5-test.944';
5486
+ const VERSION = '0.3.5-test.946';
5487
5487
 
5488
5488
  /**
5489
5489
  * Fame errors module - Fame protocol specific error classes
@@ -32818,13 +32818,18 @@ class BroadcastChannelListener extends TransportListener {
32818
32818
  });
32819
32819
  }
32820
32820
  asCallbackGrant() {
32821
- return this.withLegacySnakeCaseKeys({
32821
+ const grant = {
32822
32822
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
32823
32823
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
32824
32824
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
32825
32825
  channelName: this._channelName,
32826
32826
  inboxCapacity: this._inboxCapacity,
32827
- });
32827
+ };
32828
+ // Include localNodeId for transport frame multiplexing if node is available
32829
+ if (this._routingNode) {
32830
+ grant.localNodeId = this._routingNode.id;
32831
+ }
32832
+ return this.withLegacySnakeCaseKeys(grant);
32828
32833
  }
32829
32834
  _registerChannelListener() {
32830
32835
  if (this._channelHandler) {
@@ -33021,15 +33026,18 @@ class BroadcastChannelListener extends TransportListener {
33021
33026
  };
33022
33027
  }
33023
33028
  // Automatically configure transport frame multiplexing:
33024
- // Set remoteNodeId to the incoming senderId to target responses back to the specific client/agent
33029
+ // Use node IDs (not connector IDs) for node-to-node targeting
33025
33030
  const broadcastConfig = connectorConfig;
33031
+ if (!broadcastConfig.localNodeId) {
33032
+ broadcastConfig.localNodeId = routingNode.id;
33033
+ }
33026
33034
  if (!broadcastConfig.remoteNodeId) {
33027
- broadcastConfig.remoteNodeId = params.senderId;
33035
+ broadcastConfig.remoteNodeId = systemId;
33028
33036
  logger$n.debug('broadcast_channel_listener_auto_configured_remote_node_id', {
33029
33037
  sender_id: params.senderId,
33030
33038
  system_id: systemId,
33031
- remote_node_id: params.senderId,
33032
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
33039
+ remote_node_id: systemId,
33040
+ local_node_id: broadcastConfig.localNodeId,
33033
33041
  });
33034
33042
  }
33035
33043
  else {
@@ -33037,7 +33045,7 @@ class BroadcastChannelListener extends TransportListener {
33037
33045
  sender_id: params.senderId,
33038
33046
  system_id: systemId,
33039
33047
  remote_node_id: broadcastConfig.remoteNodeId,
33040
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
33048
+ local_node_id: broadcastConfig.localNodeId,
33041
33049
  });
33042
33050
  }
33043
33051
  try {
@@ -5477,12 +5477,12 @@ for (const [name, config] of Object.entries(SQLITE_PROFILES)) {
5477
5477
  }
5478
5478
 
5479
5479
  // This file is auto-generated during build - do not edit manually
5480
- // Generated from package.json version: 0.3.5-test.944
5480
+ // Generated from package.json version: 0.3.5-test.946
5481
5481
  /**
5482
5482
  * The package version, injected at build time.
5483
5483
  * @internal
5484
5484
  */
5485
- const VERSION = '0.3.5-test.944';
5485
+ const VERSION = '0.3.5-test.946';
5486
5486
 
5487
5487
  /**
5488
5488
  * Fame errors module - Fame protocol specific error classes
@@ -32817,13 +32817,18 @@ class BroadcastChannelListener extends TransportListener {
32817
32817
  });
32818
32818
  }
32819
32819
  asCallbackGrant() {
32820
- return this.withLegacySnakeCaseKeys({
32820
+ const grant = {
32821
32821
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
32822
32822
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
32823
32823
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
32824
32824
  channelName: this._channelName,
32825
32825
  inboxCapacity: this._inboxCapacity,
32826
- });
32826
+ };
32827
+ // Include localNodeId for transport frame multiplexing if node is available
32828
+ if (this._routingNode) {
32829
+ grant.localNodeId = this._routingNode.id;
32830
+ }
32831
+ return this.withLegacySnakeCaseKeys(grant);
32827
32832
  }
32828
32833
  _registerChannelListener() {
32829
32834
  if (this._channelHandler) {
@@ -33020,15 +33025,18 @@ class BroadcastChannelListener extends TransportListener {
33020
33025
  };
33021
33026
  }
33022
33027
  // Automatically configure transport frame multiplexing:
33023
- // Set remoteNodeId to the incoming senderId to target responses back to the specific client/agent
33028
+ // Use node IDs (not connector IDs) for node-to-node targeting
33024
33029
  const broadcastConfig = connectorConfig;
33030
+ if (!broadcastConfig.localNodeId) {
33031
+ broadcastConfig.localNodeId = routingNode.id;
33032
+ }
33025
33033
  if (!broadcastConfig.remoteNodeId) {
33026
- broadcastConfig.remoteNodeId = params.senderId;
33034
+ broadcastConfig.remoteNodeId = systemId;
33027
33035
  logger$n.debug('broadcast_channel_listener_auto_configured_remote_node_id', {
33028
33036
  sender_id: params.senderId,
33029
33037
  system_id: systemId,
33030
- remote_node_id: params.senderId,
33031
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
33038
+ remote_node_id: systemId,
33039
+ local_node_id: broadcastConfig.localNodeId,
33032
33040
  });
33033
33041
  }
33034
33042
  else {
@@ -33036,7 +33044,7 @@ class BroadcastChannelListener extends TransportListener {
33036
33044
  sender_id: params.senderId,
33037
33045
  system_id: systemId,
33038
33046
  remote_node_id: broadcastConfig.remoteNodeId,
33039
- local_node_id: broadcastConfig.localNodeId ?? '<not set>',
33047
+ local_node_id: broadcastConfig.localNodeId,
33040
33048
  });
33041
33049
  }
33042
33050
  try {
@@ -2,4 +2,4 @@
2
2
  * The package version, injected at build time.
3
3
  * @internal
4
4
  */
5
- export declare const VERSION = "0.3.5-test.944";
5
+ export declare const VERSION = "0.3.5-test.946";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naylence/runtime",
3
- "version": "0.3.5-test.944",
3
+ "version": "0.3.5-test.946",
4
4
  "type": "module",
5
5
  "description": "Naylence Runtime - Complete TypeScript runtime",
6
6
  "author": "Naylence Dev <naylencedev@gmail.com>",