@naylence/runtime 0.3.6-test.104 → 0.3.6-test.107

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.6-test.104
101
+ // Generated from package.json version: 0.3.6-test.107
102
102
  /**
103
103
  * The package version, injected at build time.
104
104
  * @internal
105
105
  */
106
- const VERSION = '0.3.6-test.104';
106
+ const VERSION = '0.3.6-test.107';
107
107
 
108
108
  /**
109
109
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -7656,9 +7656,9 @@ class DefaultDeliveryTracker extends TaskSpawner {
7656
7656
  });
7657
7657
  await this.markDoneSince(this.replyFutures, trackedEnvelope.originalEnvelope.id, this.replyDoneSince);
7658
7658
  await this.markDoneSince(this.ackFutures, trackedEnvelope.originalEnvelope.id, this.ackDoneSince);
7659
- if (envelope.rtype && Boolean(envelope.rtype & core.FameResponseType.ACK)) {
7660
- await this.sendAck(envelope);
7661
- }
7659
+ // Note: ACK is already sent in onCorrelatedMessage (lines 655-657)
7660
+ // when the reply envelope is first delivered. No need to send it again here.
7661
+ // Removing this duplicate sendAck call fixes the duplicate DeliveryAck bug.
7662
7662
  for (const handler of this.eventHandlers) {
7663
7663
  await handler.onEnvelopeReplied?.(trackedEnvelope, envelope);
7664
7664
  }
@@ -9996,6 +9996,7 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
9996
9996
  local_node_id: this.localNodeId,
9997
9997
  target_node_id: this.targetNodeId ?? null,
9998
9998
  inbox_capacity: preferredCapacity,
9999
+ passive: config.passive ?? false,
9999
10000
  timestamp: new Date().toISOString(),
10000
10001
  });
10001
10002
  this.onMsg = (event) => {
@@ -29229,6 +29230,7 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
29229
29230
  inboxCapacity,
29230
29231
  localNodeId,
29231
29232
  initialTargetNodeId: resolvedTarget,
29233
+ passive: normalized.passive,
29232
29234
  };
29233
29235
  const connector = new BroadcastChannelConnector(connectorConfig, baseConfig);
29234
29236
  if (options.authorization) {
@@ -29267,6 +29269,9 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
29267
29269
  if (normalizedLocalNodeId) {
29268
29270
  normalized.localNodeId = normalizedLocalNodeId;
29269
29271
  }
29272
+ if (typeof candidate.passive === 'boolean') {
29273
+ normalized.passive = candidate.passive;
29274
+ }
29270
29275
  if (typeof candidate.flowControl === 'boolean') {
29271
29276
  normalized.flowControl = candidate.flowControl;
29272
29277
  }
@@ -30610,11 +30615,19 @@ class BroadcastChannelListener extends TransportListener {
30610
30615
  ? Math.floor(initialWindowCandidate)
30611
30616
  : undefined;
30612
30617
  const initialTargetNodeId = this._normalizeNodeId(targetCandidate) ?? targetSystemId;
30618
+ const passive = typeof passiveCandidate === 'boolean' ? passiveCandidate : true;
30619
+ logger$o.debug('broadcast_channel_listener_building_connector_config', {
30620
+ system_id: systemId,
30621
+ channel_name: channelName,
30622
+ passive,
30623
+ has_base_config: !!baseConfig,
30624
+ passive_candidate: passiveCandidate,
30625
+ });
30613
30626
  return {
30614
30627
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30615
30628
  channelName,
30616
30629
  inboxCapacity,
30617
- passive: typeof passiveCandidate === 'boolean' ? passiveCandidate : true,
30630
+ passive,
30618
30631
  initialWindow,
30619
30632
  localNodeId,
30620
30633
  initialTargetNodeId,
@@ -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.6-test.104
99
+ // Generated from package.json version: 0.3.6-test.107
100
100
  /**
101
101
  * The package version, injected at build time.
102
102
  * @internal
103
103
  */
104
- const VERSION = '0.3.6-test.104';
104
+ const VERSION = '0.3.6-test.107';
105
105
 
106
106
  /**
107
107
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -7654,9 +7654,9 @@ class DefaultDeliveryTracker extends TaskSpawner {
7654
7654
  });
7655
7655
  await this.markDoneSince(this.replyFutures, trackedEnvelope.originalEnvelope.id, this.replyDoneSince);
7656
7656
  await this.markDoneSince(this.ackFutures, trackedEnvelope.originalEnvelope.id, this.ackDoneSince);
7657
- if (envelope.rtype && Boolean(envelope.rtype & FameResponseType.ACK)) {
7658
- await this.sendAck(envelope);
7659
- }
7657
+ // Note: ACK is already sent in onCorrelatedMessage (lines 655-657)
7658
+ // when the reply envelope is first delivered. No need to send it again here.
7659
+ // Removing this duplicate sendAck call fixes the duplicate DeliveryAck bug.
7660
7660
  for (const handler of this.eventHandlers) {
7661
7661
  await handler.onEnvelopeReplied?.(trackedEnvelope, envelope);
7662
7662
  }
@@ -9994,6 +9994,7 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
9994
9994
  local_node_id: this.localNodeId,
9995
9995
  target_node_id: this.targetNodeId ?? null,
9996
9996
  inbox_capacity: preferredCapacity,
9997
+ passive: config.passive ?? false,
9997
9998
  timestamp: new Date().toISOString(),
9998
9999
  });
9999
10000
  this.onMsg = (event) => {
@@ -29227,6 +29228,7 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
29227
29228
  inboxCapacity,
29228
29229
  localNodeId,
29229
29230
  initialTargetNodeId: resolvedTarget,
29231
+ passive: normalized.passive,
29230
29232
  };
29231
29233
  const connector = new BroadcastChannelConnector(connectorConfig, baseConfig);
29232
29234
  if (options.authorization) {
@@ -29265,6 +29267,9 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
29265
29267
  if (normalizedLocalNodeId) {
29266
29268
  normalized.localNodeId = normalizedLocalNodeId;
29267
29269
  }
29270
+ if (typeof candidate.passive === 'boolean') {
29271
+ normalized.passive = candidate.passive;
29272
+ }
29268
29273
  if (typeof candidate.flowControl === 'boolean') {
29269
29274
  normalized.flowControl = candidate.flowControl;
29270
29275
  }
@@ -30608,11 +30613,19 @@ class BroadcastChannelListener extends TransportListener {
30608
30613
  ? Math.floor(initialWindowCandidate)
30609
30614
  : undefined;
30610
30615
  const initialTargetNodeId = this._normalizeNodeId(targetCandidate) ?? targetSystemId;
30616
+ const passive = typeof passiveCandidate === 'boolean' ? passiveCandidate : true;
30617
+ logger$o.debug('broadcast_channel_listener_building_connector_config', {
30618
+ system_id: systemId,
30619
+ channel_name: channelName,
30620
+ passive,
30621
+ has_base_config: !!baseConfig,
30622
+ passive_candidate: passiveCandidate,
30623
+ });
30611
30624
  return {
30612
30625
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
30613
30626
  channelName,
30614
30627
  inboxCapacity,
30615
- passive: typeof passiveCandidate === 'boolean' ? passiveCandidate : true,
30628
+ passive,
30616
30629
  initialWindow,
30617
30630
  localNodeId,
30618
30631
  initialTargetNodeId,
@@ -101,6 +101,7 @@ class BroadcastChannelConnectorFactory extends connector_factory_js_1.ConnectorF
101
101
  inboxCapacity,
102
102
  localNodeId,
103
103
  initialTargetNodeId: resolvedTarget,
104
+ passive: normalized.passive,
104
105
  };
105
106
  const connector = new broadcast_channel_connector_js_1.BroadcastChannelConnector(connectorConfig, baseConfig);
106
107
  if (options.authorization) {
@@ -139,6 +140,9 @@ class BroadcastChannelConnectorFactory extends connector_factory_js_1.ConnectorF
139
140
  if (normalizedLocalNodeId) {
140
141
  normalized.localNodeId = normalizedLocalNodeId;
141
142
  }
143
+ if (typeof candidate.passive === 'boolean') {
144
+ normalized.passive = candidate.passive;
145
+ }
142
146
  if (typeof candidate.flowControl === 'boolean') {
143
147
  normalized.flowControl = candidate.flowControl;
144
148
  }
@@ -99,6 +99,7 @@ class BroadcastChannelConnector extends base_async_connector_js_1.BaseAsyncConne
99
99
  local_node_id: this.localNodeId,
100
100
  target_node_id: this.targetNodeId ?? null,
101
101
  inbox_capacity: preferredCapacity,
102
+ passive: config.passive ?? false,
102
103
  timestamp: new Date().toISOString(),
103
104
  });
104
105
  this.onMsg = (event) => {
@@ -455,11 +455,19 @@ class BroadcastChannelListener extends transport_listener_js_1.TransportListener
455
455
  ? Math.floor(initialWindowCandidate)
456
456
  : undefined;
457
457
  const initialTargetNodeId = this._normalizeNodeId(targetCandidate) ?? targetSystemId;
458
+ const passive = typeof passiveCandidate === 'boolean' ? passiveCandidate : true;
459
+ logger.debug('broadcast_channel_listener_building_connector_config', {
460
+ system_id: systemId,
461
+ channel_name: channelName,
462
+ passive,
463
+ has_base_config: !!baseConfig,
464
+ passive_candidate: passiveCandidate,
465
+ });
458
466
  return {
459
467
  type: broadcast_channel_connector_js_1.BROADCAST_CHANNEL_CONNECTOR_TYPE,
460
468
  channelName,
461
469
  inboxCapacity,
462
- passive: typeof passiveCandidate === 'boolean' ? passiveCandidate : true,
470
+ passive,
463
471
  initialWindow,
464
472
  localNodeId,
465
473
  initialTargetNodeId,
@@ -648,9 +648,9 @@ class DefaultDeliveryTracker extends task_spawner_js_1.TaskSpawner {
648
648
  });
649
649
  await this.markDoneSince(this.replyFutures, trackedEnvelope.originalEnvelope.id, this.replyDoneSince);
650
650
  await this.markDoneSince(this.ackFutures, trackedEnvelope.originalEnvelope.id, this.ackDoneSince);
651
- if (envelope.rtype && Boolean(envelope.rtype & core_1.FameResponseType.ACK)) {
652
- await this.sendAck(envelope);
653
- }
651
+ // Note: ACK is already sent in onCorrelatedMessage (lines 655-657)
652
+ // when the reply envelope is first delivered. No need to send it again here.
653
+ // Removing this duplicate sendAck call fixes the duplicate DeliveryAck bug.
654
654
  for (const handler of this.eventHandlers) {
655
655
  await handler.onEnvelopeReplied?.(trackedEnvelope, envelope);
656
656
  }
@@ -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.6-test.104
3
+ // Generated from package.json version: 0.3.6-test.107
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.6-test.104';
10
+ exports.VERSION = '0.3.6-test.107';
@@ -98,6 +98,7 @@ export class BroadcastChannelConnectorFactory extends ConnectorFactory {
98
98
  inboxCapacity,
99
99
  localNodeId,
100
100
  initialTargetNodeId: resolvedTarget,
101
+ passive: normalized.passive,
101
102
  };
102
103
  const connector = new BroadcastChannelConnector(connectorConfig, baseConfig);
103
104
  if (options.authorization) {
@@ -136,6 +137,9 @@ export class BroadcastChannelConnectorFactory extends ConnectorFactory {
136
137
  if (normalizedLocalNodeId) {
137
138
  normalized.localNodeId = normalizedLocalNodeId;
138
139
  }
140
+ if (typeof candidate.passive === 'boolean') {
141
+ normalized.passive = candidate.passive;
142
+ }
139
143
  if (typeof candidate.flowControl === 'boolean') {
140
144
  normalized.flowControl = candidate.flowControl;
141
145
  }
@@ -96,6 +96,7 @@ export class BroadcastChannelConnector extends BaseAsyncConnector {
96
96
  local_node_id: this.localNodeId,
97
97
  target_node_id: this.targetNodeId ?? null,
98
98
  inbox_capacity: preferredCapacity,
99
+ passive: config.passive ?? false,
99
100
  timestamp: new Date().toISOString(),
100
101
  });
101
102
  this.onMsg = (event) => {
@@ -451,11 +451,19 @@ export class BroadcastChannelListener extends TransportListener {
451
451
  ? Math.floor(initialWindowCandidate)
452
452
  : undefined;
453
453
  const initialTargetNodeId = this._normalizeNodeId(targetCandidate) ?? targetSystemId;
454
+ const passive = typeof passiveCandidate === 'boolean' ? passiveCandidate : true;
455
+ logger.debug('broadcast_channel_listener_building_connector_config', {
456
+ system_id: systemId,
457
+ channel_name: channelName,
458
+ passive,
459
+ has_base_config: !!baseConfig,
460
+ passive_candidate: passiveCandidate,
461
+ });
454
462
  return {
455
463
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
456
464
  channelName,
457
465
  inboxCapacity,
458
- passive: typeof passiveCandidate === 'boolean' ? passiveCandidate : true,
466
+ passive,
459
467
  initialWindow,
460
468
  localNodeId,
461
469
  initialTargetNodeId,
@@ -645,9 +645,9 @@ export class DefaultDeliveryTracker extends TaskSpawner {
645
645
  });
646
646
  await this.markDoneSince(this.replyFutures, trackedEnvelope.originalEnvelope.id, this.replyDoneSince);
647
647
  await this.markDoneSince(this.ackFutures, trackedEnvelope.originalEnvelope.id, this.ackDoneSince);
648
- if (envelope.rtype && Boolean(envelope.rtype & FameResponseType.ACK)) {
649
- await this.sendAck(envelope);
650
- }
648
+ // Note: ACK is already sent in onCorrelatedMessage (lines 655-657)
649
+ // when the reply envelope is first delivered. No need to send it again here.
650
+ // Removing this duplicate sendAck call fixes the duplicate DeliveryAck bug.
651
651
  for (const handler of this.eventHandlers) {
652
652
  await handler.onEnvelopeReplied?.(trackedEnvelope, envelope);
653
653
  }
@@ -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.6-test.104
2
+ // Generated from package.json version: 0.3.6-test.107
3
3
  /**
4
4
  * The package version, injected at build time.
5
5
  * @internal
6
6
  */
7
- export const VERSION = '0.3.6-test.104';
7
+ export const VERSION = '0.3.6-test.107';
@@ -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.6-test.104
17
+ // Generated from package.json version: 0.3.6-test.107
18
18
  /**
19
19
  * The package version, injected at build time.
20
20
  * @internal
21
21
  */
22
- const VERSION = '0.3.6-test.104';
22
+ const VERSION = '0.3.6-test.107';
23
23
 
24
24
  /**
25
25
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -7572,9 +7572,9 @@ class DefaultDeliveryTracker extends TaskSpawner {
7572
7572
  });
7573
7573
  await this.markDoneSince(this.replyFutures, trackedEnvelope.originalEnvelope.id, this.replyDoneSince);
7574
7574
  await this.markDoneSince(this.ackFutures, trackedEnvelope.originalEnvelope.id, this.ackDoneSince);
7575
- if (envelope.rtype && Boolean(envelope.rtype & core.FameResponseType.ACK)) {
7576
- await this.sendAck(envelope);
7577
- }
7575
+ // Note: ACK is already sent in onCorrelatedMessage (lines 655-657)
7576
+ // when the reply envelope is first delivered. No need to send it again here.
7577
+ // Removing this duplicate sendAck call fixes the duplicate DeliveryAck bug.
7578
7578
  for (const handler of this.eventHandlers) {
7579
7579
  await handler.onEnvelopeReplied?.(trackedEnvelope, envelope);
7580
7580
  }
@@ -9912,6 +9912,7 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
9912
9912
  local_node_id: this.localNodeId,
9913
9913
  target_node_id: this.targetNodeId ?? null,
9914
9914
  inbox_capacity: preferredCapacity,
9915
+ passive: config.passive ?? false,
9915
9916
  timestamp: new Date().toISOString(),
9916
9917
  });
9917
9918
  this.onMsg = (event) => {
@@ -28947,6 +28948,7 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
28947
28948
  inboxCapacity,
28948
28949
  localNodeId,
28949
28950
  initialTargetNodeId: resolvedTarget,
28951
+ passive: normalized.passive,
28950
28952
  };
28951
28953
  const connector = new BroadcastChannelConnector(connectorConfig, baseConfig);
28952
28954
  if (options.authorization) {
@@ -28985,6 +28987,9 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
28985
28987
  if (normalizedLocalNodeId) {
28986
28988
  normalized.localNodeId = normalizedLocalNodeId;
28987
28989
  }
28990
+ if (typeof candidate.passive === 'boolean') {
28991
+ normalized.passive = candidate.passive;
28992
+ }
28988
28993
  if (typeof candidate.flowControl === 'boolean') {
28989
28994
  normalized.flowControl = candidate.flowControl;
28990
28995
  }
@@ -36779,11 +36784,19 @@ class BroadcastChannelListener extends TransportListener {
36779
36784
  ? Math.floor(initialWindowCandidate)
36780
36785
  : undefined;
36781
36786
  const initialTargetNodeId = this._normalizeNodeId(targetCandidate) ?? targetSystemId;
36787
+ const passive = typeof passiveCandidate === 'boolean' ? passiveCandidate : true;
36788
+ logger$a.debug('broadcast_channel_listener_building_connector_config', {
36789
+ system_id: systemId,
36790
+ channel_name: channelName,
36791
+ passive,
36792
+ has_base_config: !!baseConfig,
36793
+ passive_candidate: passiveCandidate,
36794
+ });
36782
36795
  return {
36783
36796
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36784
36797
  channelName,
36785
36798
  inboxCapacity,
36786
- passive: typeof passiveCandidate === 'boolean' ? passiveCandidate : true,
36799
+ passive,
36787
36800
  initialWindow,
36788
36801
  localNodeId,
36789
36802
  initialTargetNodeId,
@@ -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.6-test.104
16
+ // Generated from package.json version: 0.3.6-test.107
17
17
  /**
18
18
  * The package version, injected at build time.
19
19
  * @internal
20
20
  */
21
- const VERSION = '0.3.6-test.104';
21
+ const VERSION = '0.3.6-test.107';
22
22
 
23
23
  /**
24
24
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -7571,9 +7571,9 @@ class DefaultDeliveryTracker extends TaskSpawner {
7571
7571
  });
7572
7572
  await this.markDoneSince(this.replyFutures, trackedEnvelope.originalEnvelope.id, this.replyDoneSince);
7573
7573
  await this.markDoneSince(this.ackFutures, trackedEnvelope.originalEnvelope.id, this.ackDoneSince);
7574
- if (envelope.rtype && Boolean(envelope.rtype & FameResponseType.ACK)) {
7575
- await this.sendAck(envelope);
7576
- }
7574
+ // Note: ACK is already sent in onCorrelatedMessage (lines 655-657)
7575
+ // when the reply envelope is first delivered. No need to send it again here.
7576
+ // Removing this duplicate sendAck call fixes the duplicate DeliveryAck bug.
7577
7577
  for (const handler of this.eventHandlers) {
7578
7578
  await handler.onEnvelopeReplied?.(trackedEnvelope, envelope);
7579
7579
  }
@@ -9911,6 +9911,7 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
9911
9911
  local_node_id: this.localNodeId,
9912
9912
  target_node_id: this.targetNodeId ?? null,
9913
9913
  inbox_capacity: preferredCapacity,
9914
+ passive: config.passive ?? false,
9914
9915
  timestamp: new Date().toISOString(),
9915
9916
  });
9916
9917
  this.onMsg = (event) => {
@@ -28946,6 +28947,7 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
28946
28947
  inboxCapacity,
28947
28948
  localNodeId,
28948
28949
  initialTargetNodeId: resolvedTarget,
28950
+ passive: normalized.passive,
28949
28951
  };
28950
28952
  const connector = new BroadcastChannelConnector(connectorConfig, baseConfig);
28951
28953
  if (options.authorization) {
@@ -28984,6 +28986,9 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
28984
28986
  if (normalizedLocalNodeId) {
28985
28987
  normalized.localNodeId = normalizedLocalNodeId;
28986
28988
  }
28989
+ if (typeof candidate.passive === 'boolean') {
28990
+ normalized.passive = candidate.passive;
28991
+ }
28987
28992
  if (typeof candidate.flowControl === 'boolean') {
28988
28993
  normalized.flowControl = candidate.flowControl;
28989
28994
  }
@@ -36778,11 +36783,19 @@ class BroadcastChannelListener extends TransportListener {
36778
36783
  ? Math.floor(initialWindowCandidate)
36779
36784
  : undefined;
36780
36785
  const initialTargetNodeId = this._normalizeNodeId(targetCandidate) ?? targetSystemId;
36786
+ const passive = typeof passiveCandidate === 'boolean' ? passiveCandidate : true;
36787
+ logger$a.debug('broadcast_channel_listener_building_connector_config', {
36788
+ system_id: systemId,
36789
+ channel_name: channelName,
36790
+ passive,
36791
+ has_base_config: !!baseConfig,
36792
+ passive_candidate: passiveCandidate,
36793
+ });
36781
36794
  return {
36782
36795
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE,
36783
36796
  channelName,
36784
36797
  inboxCapacity,
36785
- passive: typeof passiveCandidate === 'boolean' ? passiveCandidate : true,
36798
+ passive,
36786
36799
  initialWindow,
36787
36800
  localNodeId,
36788
36801
  initialTargetNodeId,
@@ -5563,12 +5563,12 @@ for (const [name, config] of Object.entries(SQLITE_PROFILES)) {
5563
5563
  }
5564
5564
 
5565
5565
  // This file is auto-generated during build - do not edit manually
5566
- // Generated from package.json version: 0.3.6-test.104
5566
+ // Generated from package.json version: 0.3.6-test.107
5567
5567
  /**
5568
5568
  * The package version, injected at build time.
5569
5569
  * @internal
5570
5570
  */
5571
- const VERSION = '0.3.6-test.104';
5571
+ const VERSION = '0.3.6-test.107';
5572
5572
 
5573
5573
  /**
5574
5574
  * Fame errors module - Fame protocol specific error classes
@@ -10226,9 +10226,9 @@ class DefaultDeliveryTracker extends TaskSpawner {
10226
10226
  });
10227
10227
  await this.markDoneSince(this.replyFutures, trackedEnvelope.originalEnvelope.id, this.replyDoneSince);
10228
10228
  await this.markDoneSince(this.ackFutures, trackedEnvelope.originalEnvelope.id, this.ackDoneSince);
10229
- if (envelope.rtype && Boolean(envelope.rtype & core.FameResponseType.ACK)) {
10230
- await this.sendAck(envelope);
10231
- }
10229
+ // Note: ACK is already sent in onCorrelatedMessage (lines 655-657)
10230
+ // when the reply envelope is first delivered. No need to send it again here.
10231
+ // Removing this duplicate sendAck call fixes the duplicate DeliveryAck bug.
10232
10232
  for (const handler of this.eventHandlers) {
10233
10233
  await handler.onEnvelopeReplied?.(trackedEnvelope, envelope);
10234
10234
  }
@@ -11649,6 +11649,7 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
11649
11649
  local_node_id: this.localNodeId,
11650
11650
  target_node_id: this.targetNodeId ?? null,
11651
11651
  inbox_capacity: preferredCapacity,
11652
+ passive: config.passive ?? false,
11652
11653
  timestamp: new Date().toISOString(),
11653
11654
  });
11654
11655
  this.onMsg = (event) => {
@@ -30916,6 +30917,7 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
30916
30917
  inboxCapacity,
30917
30918
  localNodeId,
30918
30919
  initialTargetNodeId: resolvedTarget,
30920
+ passive: normalized.passive,
30919
30921
  };
30920
30922
  const connector = new BroadcastChannelConnector(connectorConfig, baseConfig);
30921
30923
  if (options.authorization) {
@@ -30954,6 +30956,9 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
30954
30956
  if (normalizedLocalNodeId) {
30955
30957
  normalized.localNodeId = normalizedLocalNodeId;
30956
30958
  }
30959
+ if (typeof candidate.passive === 'boolean') {
30960
+ normalized.passive = candidate.passive;
30961
+ }
30957
30962
  if (typeof candidate.flowControl === 'boolean') {
30958
30963
  normalized.flowControl = candidate.flowControl;
30959
30964
  }
@@ -33351,11 +33356,19 @@ class BroadcastChannelListener extends TransportListener {
33351
33356
  ? Math.floor(initialWindowCandidate)
33352
33357
  : undefined;
33353
33358
  const initialTargetNodeId = this._normalizeNodeId(targetCandidate) ?? targetSystemId;
33359
+ const passive = typeof passiveCandidate === 'boolean' ? passiveCandidate : true;
33360
+ logger$n.debug('broadcast_channel_listener_building_connector_config', {
33361
+ system_id: systemId,
33362
+ channel_name: channelName,
33363
+ passive,
33364
+ has_base_config: !!baseConfig,
33365
+ passive_candidate: passiveCandidate,
33366
+ });
33354
33367
  return {
33355
33368
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
33356
33369
  channelName,
33357
33370
  inboxCapacity,
33358
- passive: typeof passiveCandidate === 'boolean' ? passiveCandidate : true,
33371
+ passive,
33359
33372
  initialWindow,
33360
33373
  localNodeId,
33361
33374
  initialTargetNodeId,
@@ -5562,12 +5562,12 @@ for (const [name, config] of Object.entries(SQLITE_PROFILES)) {
5562
5562
  }
5563
5563
 
5564
5564
  // This file is auto-generated during build - do not edit manually
5565
- // Generated from package.json version: 0.3.6-test.104
5565
+ // Generated from package.json version: 0.3.6-test.107
5566
5566
  /**
5567
5567
  * The package version, injected at build time.
5568
5568
  * @internal
5569
5569
  */
5570
- const VERSION = '0.3.6-test.104';
5570
+ const VERSION = '0.3.6-test.107';
5571
5571
 
5572
5572
  /**
5573
5573
  * Fame errors module - Fame protocol specific error classes
@@ -10225,9 +10225,9 @@ class DefaultDeliveryTracker extends TaskSpawner {
10225
10225
  });
10226
10226
  await this.markDoneSince(this.replyFutures, trackedEnvelope.originalEnvelope.id, this.replyDoneSince);
10227
10227
  await this.markDoneSince(this.ackFutures, trackedEnvelope.originalEnvelope.id, this.ackDoneSince);
10228
- if (envelope.rtype && Boolean(envelope.rtype & FameResponseType.ACK)) {
10229
- await this.sendAck(envelope);
10230
- }
10228
+ // Note: ACK is already sent in onCorrelatedMessage (lines 655-657)
10229
+ // when the reply envelope is first delivered. No need to send it again here.
10230
+ // Removing this duplicate sendAck call fixes the duplicate DeliveryAck bug.
10231
10231
  for (const handler of this.eventHandlers) {
10232
10232
  await handler.onEnvelopeReplied?.(trackedEnvelope, envelope);
10233
10233
  }
@@ -11648,6 +11648,7 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
11648
11648
  local_node_id: this.localNodeId,
11649
11649
  target_node_id: this.targetNodeId ?? null,
11650
11650
  inbox_capacity: preferredCapacity,
11651
+ passive: config.passive ?? false,
11651
11652
  timestamp: new Date().toISOString(),
11652
11653
  });
11653
11654
  this.onMsg = (event) => {
@@ -30915,6 +30916,7 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
30915
30916
  inboxCapacity,
30916
30917
  localNodeId,
30917
30918
  initialTargetNodeId: resolvedTarget,
30919
+ passive: normalized.passive,
30918
30920
  };
30919
30921
  const connector = new BroadcastChannelConnector(connectorConfig, baseConfig);
30920
30922
  if (options.authorization) {
@@ -30953,6 +30955,9 @@ class BroadcastChannelConnectorFactory extends ConnectorFactory {
30953
30955
  if (normalizedLocalNodeId) {
30954
30956
  normalized.localNodeId = normalizedLocalNodeId;
30955
30957
  }
30958
+ if (typeof candidate.passive === 'boolean') {
30959
+ normalized.passive = candidate.passive;
30960
+ }
30956
30961
  if (typeof candidate.flowControl === 'boolean') {
30957
30962
  normalized.flowControl = candidate.flowControl;
30958
30963
  }
@@ -33350,11 +33355,19 @@ class BroadcastChannelListener extends TransportListener {
33350
33355
  ? Math.floor(initialWindowCandidate)
33351
33356
  : undefined;
33352
33357
  const initialTargetNodeId = this._normalizeNodeId(targetCandidate) ?? targetSystemId;
33358
+ const passive = typeof passiveCandidate === 'boolean' ? passiveCandidate : true;
33359
+ logger$n.debug('broadcast_channel_listener_building_connector_config', {
33360
+ system_id: systemId,
33361
+ channel_name: channelName,
33362
+ passive,
33363
+ has_base_config: !!baseConfig,
33364
+ passive_candidate: passiveCandidate,
33365
+ });
33353
33366
  return {
33354
33367
  type: BROADCAST_CHANNEL_CONNECTOR_TYPE$1,
33355
33368
  channelName,
33356
33369
  inboxCapacity,
33357
- passive: typeof passiveCandidate === 'boolean' ? passiveCandidate : true,
33370
+ passive,
33358
33371
  initialWindow,
33359
33372
  localNodeId,
33360
33373
  initialTargetNodeId,
@@ -9,6 +9,7 @@ export interface BroadcastChannelConnectorFactoryConfig extends ConnectorConfig,
9
9
  inboxCapacity?: number;
10
10
  localNodeId?: string;
11
11
  initialTargetNodeId?: string | '*';
12
+ passive?: boolean;
12
13
  }
13
14
  export interface CreateBroadcastChannelConnectorOptions {
14
15
  authorization?: AuthorizationContext;
@@ -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.6-test.104";
5
+ export declare const VERSION = "0.3.6-test.107";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naylence/runtime",
3
- "version": "0.3.6-test.104",
3
+ "version": "0.3.6-test.107",
4
4
  "type": "module",
5
5
  "description": "Naylence Runtime - Complete TypeScript runtime",
6
6
  "author": "Naylence Dev <naylencedev@gmail.com>",