@naylence/runtime 0.3.5-test.945 → 0.3.5-test.947

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.945
101
+ // Generated from package.json version: 0.3.5-test.947
102
102
  /**
103
103
  * The package version, injected at build time.
104
104
  * @internal
105
105
  */
106
- const VERSION = '0.3.5-test.945';
106
+ const VERSION = '0.3.5-test.947';
107
107
 
108
108
  /**
109
109
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -10862,6 +10862,12 @@ class UpstreamSessionManager extends TaskSpawner {
10862
10862
  cryptoProvider.prepareForAttach(welcome.frame.systemId, welcome.frame.assignedPath, welcome.frame.acceptedLogicals ?? []);
10863
10863
  }
10864
10864
  await this.onWelcome(welcome.frame);
10865
+ // Inject node ID into grant for transport frame multiplexing
10866
+ // This ensures localNodeId matches the node's systemId for proper frame filtering
10867
+ grant.localNodeId = welcome.frame.systemId;
10868
+ if (welcome.frame.targetSystemId) {
10869
+ grant.remoteNodeId = welcome.frame.targetSystemId;
10870
+ }
10865
10871
  const connector = await ConnectorFactory.createConnector(grant, {
10866
10872
  systemId: welcome.frame.systemId,
10867
10873
  });
@@ -30061,13 +30067,18 @@ class BroadcastChannelListener extends TransportListener {
30061
30067
  });
30062
30068
  }
30063
30069
  asCallbackGrant() {
30064
- return this.withLegacySnakeCaseKeys({
30070
+ const grant = {
30065
30071
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30066
30072
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30067
30073
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
30068
30074
  channelName: this._channelName,
30069
30075
  inboxCapacity: this._inboxCapacity,
30070
- });
30076
+ };
30077
+ // Include localNodeId for transport frame multiplexing if node is available
30078
+ if (this._routingNode) {
30079
+ grant.localNodeId = this._routingNode.id;
30080
+ }
30081
+ return this.withLegacySnakeCaseKeys(grant);
30071
30082
  }
30072
30083
  _registerChannelListener() {
30073
30084
  if (this._channelHandler) {
@@ -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.945
99
+ // Generated from package.json version: 0.3.5-test.947
100
100
  /**
101
101
  * The package version, injected at build time.
102
102
  * @internal
103
103
  */
104
- const VERSION = '0.3.5-test.945';
104
+ const VERSION = '0.3.5-test.947';
105
105
 
106
106
  /**
107
107
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -10860,6 +10860,12 @@ class UpstreamSessionManager extends TaskSpawner {
10860
10860
  cryptoProvider.prepareForAttach(welcome.frame.systemId, welcome.frame.assignedPath, welcome.frame.acceptedLogicals ?? []);
10861
10861
  }
10862
10862
  await this.onWelcome(welcome.frame);
10863
+ // Inject node ID into grant for transport frame multiplexing
10864
+ // This ensures localNodeId matches the node's systemId for proper frame filtering
10865
+ grant.localNodeId = welcome.frame.systemId;
10866
+ if (welcome.frame.targetSystemId) {
10867
+ grant.remoteNodeId = welcome.frame.targetSystemId;
10868
+ }
10863
10869
  const connector = await ConnectorFactory.createConnector(grant, {
10864
10870
  systemId: welcome.frame.systemId,
10865
10871
  });
@@ -30059,13 +30065,18 @@ class BroadcastChannelListener extends TransportListener {
30059
30065
  });
30060
30066
  }
30061
30067
  asCallbackGrant() {
30062
- return this.withLegacySnakeCaseKeys({
30068
+ const grant = {
30063
30069
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30064
30070
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30065
30071
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
30066
30072
  channelName: this._channelName,
30067
30073
  inboxCapacity: this._inboxCapacity,
30068
- });
30074
+ };
30075
+ // Include localNodeId for transport frame multiplexing if node is available
30076
+ if (this._routingNode) {
30077
+ grant.localNodeId = this._routingNode.id;
30078
+ }
30079
+ return this.withLegacySnakeCaseKeys(grant);
30069
30080
  }
30070
30081
  _registerChannelListener() {
30071
30082
  if (this._channelHandler) {
@@ -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) {
@@ -299,6 +299,12 @@ class UpstreamSessionManager extends task_spawner_js_1.TaskSpawner {
299
299
  cryptoProvider.prepareForAttach(welcome.frame.systemId, welcome.frame.assignedPath, welcome.frame.acceptedLogicals ?? []);
300
300
  }
301
301
  await this.onWelcome(welcome.frame);
302
+ // Inject node ID into grant for transport frame multiplexing
303
+ // This ensures localNodeId matches the node's systemId for proper frame filtering
304
+ grant.localNodeId = welcome.frame.systemId;
305
+ if (welcome.frame.targetSystemId) {
306
+ grant.remoteNodeId = welcome.frame.targetSystemId;
307
+ }
302
308
  const connector = await connector_factory_js_1.ConnectorFactory.createConnector(grant, {
303
309
  systemId: welcome.frame.systemId,
304
310
  });
@@ -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.945
3
+ // Generated from package.json version: 0.3.5-test.947
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.945';
10
+ exports.VERSION = '0.3.5-test.947';
@@ -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) {
@@ -296,6 +296,12 @@ export class UpstreamSessionManager extends TaskSpawner {
296
296
  cryptoProvider.prepareForAttach(welcome.frame.systemId, welcome.frame.assignedPath, welcome.frame.acceptedLogicals ?? []);
297
297
  }
298
298
  await this.onWelcome(welcome.frame);
299
+ // Inject node ID into grant for transport frame multiplexing
300
+ // This ensures localNodeId matches the node's systemId for proper frame filtering
301
+ grant.localNodeId = welcome.frame.systemId;
302
+ if (welcome.frame.targetSystemId) {
303
+ grant.remoteNodeId = welcome.frame.targetSystemId;
304
+ }
299
305
  const connector = await ConnectorFactory.createConnector(grant, {
300
306
  systemId: welcome.frame.systemId,
301
307
  });
@@ -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.945
2
+ // Generated from package.json version: 0.3.5-test.947
3
3
  /**
4
4
  * The package version, injected at build time.
5
5
  * @internal
6
6
  */
7
- export const VERSION = '0.3.5-test.945';
7
+ export const VERSION = '0.3.5-test.947';
@@ -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.945
17
+ // Generated from package.json version: 0.3.5-test.947
18
18
  /**
19
19
  * The package version, injected at build time.
20
20
  * @internal
21
21
  */
22
- const VERSION = '0.3.5-test.945';
22
+ const VERSION = '0.3.5-test.947';
23
23
 
24
24
  /**
25
25
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -10778,6 +10778,12 @@ class UpstreamSessionManager extends TaskSpawner {
10778
10778
  cryptoProvider.prepareForAttach(welcome.frame.systemId, welcome.frame.assignedPath, welcome.frame.acceptedLogicals ?? []);
10779
10779
  }
10780
10780
  await this.onWelcome(welcome.frame);
10781
+ // Inject node ID into grant for transport frame multiplexing
10782
+ // This ensures localNodeId matches the node's systemId for proper frame filtering
10783
+ grant.localNodeId = welcome.frame.systemId;
10784
+ if (welcome.frame.targetSystemId) {
10785
+ grant.remoteNodeId = welcome.frame.targetSystemId;
10786
+ }
10781
10787
  const connector = await ConnectorFactory.createConnector(grant, {
10782
10788
  systemId: welcome.frame.systemId,
10783
10789
  });
@@ -36242,13 +36248,18 @@ class BroadcastChannelListener extends TransportListener {
36242
36248
  });
36243
36249
  }
36244
36250
  asCallbackGrant() {
36245
- return this.withLegacySnakeCaseKeys({
36251
+ const grant = {
36246
36252
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36247
36253
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36248
36254
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
36249
36255
  channelName: this._channelName,
36250
36256
  inboxCapacity: this._inboxCapacity,
36251
- });
36257
+ };
36258
+ // Include localNodeId for transport frame multiplexing if node is available
36259
+ if (this._routingNode) {
36260
+ grant.localNodeId = this._routingNode.id;
36261
+ }
36262
+ return this.withLegacySnakeCaseKeys(grant);
36252
36263
  }
36253
36264
  _registerChannelListener() {
36254
36265
  if (this._channelHandler) {
@@ -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.945
16
+ // Generated from package.json version: 0.3.5-test.947
17
17
  /**
18
18
  * The package version, injected at build time.
19
19
  * @internal
20
20
  */
21
- const VERSION = '0.3.5-test.945';
21
+ const VERSION = '0.3.5-test.947';
22
22
 
23
23
  /**
24
24
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -10777,6 +10777,12 @@ class UpstreamSessionManager extends TaskSpawner {
10777
10777
  cryptoProvider.prepareForAttach(welcome.frame.systemId, welcome.frame.assignedPath, welcome.frame.acceptedLogicals ?? []);
10778
10778
  }
10779
10779
  await this.onWelcome(welcome.frame);
10780
+ // Inject node ID into grant for transport frame multiplexing
10781
+ // This ensures localNodeId matches the node's systemId for proper frame filtering
10782
+ grant.localNodeId = welcome.frame.systemId;
10783
+ if (welcome.frame.targetSystemId) {
10784
+ grant.remoteNodeId = welcome.frame.targetSystemId;
10785
+ }
10780
10786
  const connector = await ConnectorFactory.createConnector(grant, {
10781
10787
  systemId: welcome.frame.systemId,
10782
10788
  });
@@ -36241,13 +36247,18 @@ class BroadcastChannelListener extends TransportListener {
36241
36247
  });
36242
36248
  }
36243
36249
  asCallbackGrant() {
36244
- return this.withLegacySnakeCaseKeys({
36250
+ const grant = {
36245
36251
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36246
36252
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36247
36253
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
36248
36254
  channelName: this._channelName,
36249
36255
  inboxCapacity: this._inboxCapacity,
36250
- });
36256
+ };
36257
+ // Include localNodeId for transport frame multiplexing if node is available
36258
+ if (this._routingNode) {
36259
+ grant.localNodeId = this._routingNode.id;
36260
+ }
36261
+ return this.withLegacySnakeCaseKeys(grant);
36251
36262
  }
36252
36263
  _registerChannelListener() {
36253
36264
  if (this._channelHandler) {
@@ -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.945
5481
+ // Generated from package.json version: 0.3.5-test.947
5482
5482
  /**
5483
5483
  * The package version, injected at build time.
5484
5484
  * @internal
5485
5485
  */
5486
- const VERSION = '0.3.5-test.945';
5486
+ const VERSION = '0.3.5-test.947';
5487
5487
 
5488
5488
  /**
5489
5489
  * Fame errors module - Fame protocol specific error classes
@@ -12486,6 +12486,12 @@ class UpstreamSessionManager extends TaskSpawner {
12486
12486
  cryptoProvider.prepareForAttach(welcome.frame.systemId, welcome.frame.assignedPath, welcome.frame.acceptedLogicals ?? []);
12487
12487
  }
12488
12488
  await this.onWelcome(welcome.frame);
12489
+ // Inject node ID into grant for transport frame multiplexing
12490
+ // This ensures localNodeId matches the node's systemId for proper frame filtering
12491
+ grant.localNodeId = welcome.frame.systemId;
12492
+ if (welcome.frame.targetSystemId) {
12493
+ grant.remoteNodeId = welcome.frame.targetSystemId;
12494
+ }
12489
12495
  const connector = await ConnectorFactory.createConnector(grant, {
12490
12496
  systemId: welcome.frame.systemId,
12491
12497
  });
@@ -32818,13 +32824,18 @@ class BroadcastChannelListener extends TransportListener {
32818
32824
  });
32819
32825
  }
32820
32826
  asCallbackGrant() {
32821
- return this.withLegacySnakeCaseKeys({
32827
+ const grant = {
32822
32828
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
32823
32829
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
32824
32830
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
32825
32831
  channelName: this._channelName,
32826
32832
  inboxCapacity: this._inboxCapacity,
32827
- });
32833
+ };
32834
+ // Include localNodeId for transport frame multiplexing if node is available
32835
+ if (this._routingNode) {
32836
+ grant.localNodeId = this._routingNode.id;
32837
+ }
32838
+ return this.withLegacySnakeCaseKeys(grant);
32828
32839
  }
32829
32840
  _registerChannelListener() {
32830
32841
  if (this._channelHandler) {
@@ -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.945
5480
+ // Generated from package.json version: 0.3.5-test.947
5481
5481
  /**
5482
5482
  * The package version, injected at build time.
5483
5483
  * @internal
5484
5484
  */
5485
- const VERSION = '0.3.5-test.945';
5485
+ const VERSION = '0.3.5-test.947';
5486
5486
 
5487
5487
  /**
5488
5488
  * Fame errors module - Fame protocol specific error classes
@@ -12485,6 +12485,12 @@ class UpstreamSessionManager extends TaskSpawner {
12485
12485
  cryptoProvider.prepareForAttach(welcome.frame.systemId, welcome.frame.assignedPath, welcome.frame.acceptedLogicals ?? []);
12486
12486
  }
12487
12487
  await this.onWelcome(welcome.frame);
12488
+ // Inject node ID into grant for transport frame multiplexing
12489
+ // This ensures localNodeId matches the node's systemId for proper frame filtering
12490
+ grant.localNodeId = welcome.frame.systemId;
12491
+ if (welcome.frame.targetSystemId) {
12492
+ grant.remoteNodeId = welcome.frame.targetSystemId;
12493
+ }
12488
12494
  const connector = await ConnectorFactory.createConnector(grant, {
12489
12495
  systemId: welcome.frame.systemId,
12490
12496
  });
@@ -32817,13 +32823,18 @@ class BroadcastChannelListener extends TransportListener {
32817
32823
  });
32818
32824
  }
32819
32825
  asCallbackGrant() {
32820
- return this.withLegacySnakeCaseKeys({
32826
+ const grant = {
32821
32827
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
32822
32828
  connectorType: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
32823
32829
  connectionGrantType: BROADCAST_CHANNEL_CONNECTION_GRANT_TYPE,
32824
32830
  channelName: this._channelName,
32825
32831
  inboxCapacity: this._inboxCapacity,
32826
- });
32832
+ };
32833
+ // Include localNodeId for transport frame multiplexing if node is available
32834
+ if (this._routingNode) {
32835
+ grant.localNodeId = this._routingNode.id;
32836
+ }
32837
+ return this.withLegacySnakeCaseKeys(grant);
32827
32838
  }
32828
32839
  _registerChannelListener() {
32829
32840
  if (this._channelHandler) {
@@ -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.945";
5
+ export declare const VERSION = "0.3.5-test.947";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naylence/runtime",
3
- "version": "0.3.5-test.945",
3
+ "version": "0.3.5-test.947",
4
4
  "type": "module",
5
5
  "description": "Naylence Runtime - Complete TypeScript runtime",
6
6
  "author": "Naylence Dev <naylencedev@gmail.com>",