@naylence/runtime 0.3.6-test.103 → 0.3.6-test.104
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/browser/index.cjs +26 -2
- package/dist/browser/index.mjs +26 -2
- package/dist/cjs/naylence/fame/node/upstream-session-manager.js +24 -0
- package/dist/cjs/version.js +2 -2
- package/dist/esm/naylence/fame/node/upstream-session-manager.js +24 -0
- package/dist/esm/version.js +2 -2
- package/dist/node/index.cjs +26 -2
- package/dist/node/index.mjs +26 -2
- package/dist/node/node.cjs +26 -2
- package/dist/node/node.mjs +26 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/browser/index.cjs
CHANGED
|
@@ -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.
|
|
101
|
+
// Generated from package.json version: 0.3.6-test.104
|
|
102
102
|
/**
|
|
103
103
|
* The package version, injected at build time.
|
|
104
104
|
* @internal
|
|
105
105
|
*/
|
|
106
|
-
const VERSION = '0.3.6-test.
|
|
106
|
+
const VERSION = '0.3.6-test.104';
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -10863,12 +10863,20 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10863
10863
|
await connector.start(this.wrappedHandler);
|
|
10864
10864
|
this.connector = connector;
|
|
10865
10865
|
const callbackGrants = this.node.gatherSupportedCallbackGrants();
|
|
10866
|
+
logger$Z.debug('callback_grants_before_augmentation', {
|
|
10867
|
+
count: callbackGrants.length,
|
|
10868
|
+
types: callbackGrants.map(g => g.type),
|
|
10869
|
+
});
|
|
10866
10870
|
// Check if we should create a broadcast callback grant before processing connection grants
|
|
10867
10871
|
// This prevents adding duplicate broadcast grants
|
|
10868
10872
|
const shouldAddBroadcastGrant = this.shouldAdvertiseBroadcastGrant(grant, callbackGrants);
|
|
10869
10873
|
const broadcastCallbackGrant = shouldAddBroadcastGrant
|
|
10870
10874
|
? this.createBroadcastCallbackGrant(grant)
|
|
10871
10875
|
: null;
|
|
10876
|
+
logger$Z.debug('broadcast_callback_grant_check', {
|
|
10877
|
+
should_add: shouldAddBroadcastGrant,
|
|
10878
|
+
grant_created: !!broadcastCallbackGrant,
|
|
10879
|
+
});
|
|
10872
10880
|
// Include admission client's connection grants as callback grants
|
|
10873
10881
|
// This ensures DirectAdmissionClient grants are available for grant selection
|
|
10874
10882
|
if (welcome.frame.connectionGrants && Array.isArray(welcome.frame.connectionGrants)) {
|
|
@@ -10878,6 +10886,14 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10878
10886
|
const isDuplicate = callbackGrants.some(existing => JSON.stringify(existing) === JSON.stringify(grant));
|
|
10879
10887
|
if (!isDuplicate) {
|
|
10880
10888
|
callbackGrants.push(grant);
|
|
10889
|
+
logger$Z.debug('added_connection_grant_as_callback', {
|
|
10890
|
+
type: grant.type,
|
|
10891
|
+
});
|
|
10892
|
+
}
|
|
10893
|
+
else {
|
|
10894
|
+
logger$Z.debug('skipped_duplicate_connection_grant', {
|
|
10895
|
+
type: grant.type,
|
|
10896
|
+
});
|
|
10881
10897
|
}
|
|
10882
10898
|
}
|
|
10883
10899
|
}
|
|
@@ -10886,7 +10902,15 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10886
10902
|
// any broadcast grants that may have been in connectionGrants
|
|
10887
10903
|
if (broadcastCallbackGrant && this.shouldAdvertiseBroadcastGrant(grant, callbackGrants)) {
|
|
10888
10904
|
callbackGrants.push(broadcastCallbackGrant);
|
|
10905
|
+
logger$Z.debug('added_broadcast_callback_grant');
|
|
10889
10906
|
}
|
|
10907
|
+
else if (broadcastCallbackGrant) {
|
|
10908
|
+
logger$Z.debug('skipped_duplicate_broadcast_callback_grant');
|
|
10909
|
+
}
|
|
10910
|
+
logger$Z.debug('callback_grants_after_augmentation', {
|
|
10911
|
+
count: callbackGrants.length,
|
|
10912
|
+
types: callbackGrants.map(g => g.type),
|
|
10913
|
+
});
|
|
10890
10914
|
const attachInfo = await this.attachClient.attach(this.node, this.outboundOriginType, connector, welcome.frame, this.wrappedHandler, this.getKeys() ?? undefined, callbackGrants);
|
|
10891
10915
|
this.targetSystemId = attachInfo.targetSystemId ?? null;
|
|
10892
10916
|
if (this.targetSystemId) {
|
package/dist/browser/index.mjs
CHANGED
|
@@ -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.
|
|
99
|
+
// Generated from package.json version: 0.3.6-test.104
|
|
100
100
|
/**
|
|
101
101
|
* The package version, injected at build time.
|
|
102
102
|
* @internal
|
|
103
103
|
*/
|
|
104
|
-
const VERSION = '0.3.6-test.
|
|
104
|
+
const VERSION = '0.3.6-test.104';
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -10861,12 +10861,20 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10861
10861
|
await connector.start(this.wrappedHandler);
|
|
10862
10862
|
this.connector = connector;
|
|
10863
10863
|
const callbackGrants = this.node.gatherSupportedCallbackGrants();
|
|
10864
|
+
logger$Z.debug('callback_grants_before_augmentation', {
|
|
10865
|
+
count: callbackGrants.length,
|
|
10866
|
+
types: callbackGrants.map(g => g.type),
|
|
10867
|
+
});
|
|
10864
10868
|
// Check if we should create a broadcast callback grant before processing connection grants
|
|
10865
10869
|
// This prevents adding duplicate broadcast grants
|
|
10866
10870
|
const shouldAddBroadcastGrant = this.shouldAdvertiseBroadcastGrant(grant, callbackGrants);
|
|
10867
10871
|
const broadcastCallbackGrant = shouldAddBroadcastGrant
|
|
10868
10872
|
? this.createBroadcastCallbackGrant(grant)
|
|
10869
10873
|
: null;
|
|
10874
|
+
logger$Z.debug('broadcast_callback_grant_check', {
|
|
10875
|
+
should_add: shouldAddBroadcastGrant,
|
|
10876
|
+
grant_created: !!broadcastCallbackGrant,
|
|
10877
|
+
});
|
|
10870
10878
|
// Include admission client's connection grants as callback grants
|
|
10871
10879
|
// This ensures DirectAdmissionClient grants are available for grant selection
|
|
10872
10880
|
if (welcome.frame.connectionGrants && Array.isArray(welcome.frame.connectionGrants)) {
|
|
@@ -10876,6 +10884,14 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10876
10884
|
const isDuplicate = callbackGrants.some(existing => JSON.stringify(existing) === JSON.stringify(grant));
|
|
10877
10885
|
if (!isDuplicate) {
|
|
10878
10886
|
callbackGrants.push(grant);
|
|
10887
|
+
logger$Z.debug('added_connection_grant_as_callback', {
|
|
10888
|
+
type: grant.type,
|
|
10889
|
+
});
|
|
10890
|
+
}
|
|
10891
|
+
else {
|
|
10892
|
+
logger$Z.debug('skipped_duplicate_connection_grant', {
|
|
10893
|
+
type: grant.type,
|
|
10894
|
+
});
|
|
10879
10895
|
}
|
|
10880
10896
|
}
|
|
10881
10897
|
}
|
|
@@ -10884,7 +10900,15 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10884
10900
|
// any broadcast grants that may have been in connectionGrants
|
|
10885
10901
|
if (broadcastCallbackGrant && this.shouldAdvertiseBroadcastGrant(grant, callbackGrants)) {
|
|
10886
10902
|
callbackGrants.push(broadcastCallbackGrant);
|
|
10903
|
+
logger$Z.debug('added_broadcast_callback_grant');
|
|
10887
10904
|
}
|
|
10905
|
+
else if (broadcastCallbackGrant) {
|
|
10906
|
+
logger$Z.debug('skipped_duplicate_broadcast_callback_grant');
|
|
10907
|
+
}
|
|
10908
|
+
logger$Z.debug('callback_grants_after_augmentation', {
|
|
10909
|
+
count: callbackGrants.length,
|
|
10910
|
+
types: callbackGrants.map(g => g.type),
|
|
10911
|
+
});
|
|
10888
10912
|
const attachInfo = await this.attachClient.attach(this.node, this.outboundOriginType, connector, welcome.frame, this.wrappedHandler, this.getKeys() ?? undefined, callbackGrants);
|
|
10889
10913
|
this.targetSystemId = attachInfo.targetSystemId ?? null;
|
|
10890
10914
|
if (this.targetSystemId) {
|
|
@@ -321,12 +321,20 @@ class UpstreamSessionManager extends task_spawner_js_1.TaskSpawner {
|
|
|
321
321
|
await connector.start(this.wrappedHandler);
|
|
322
322
|
this.connector = connector;
|
|
323
323
|
const callbackGrants = this.node.gatherSupportedCallbackGrants();
|
|
324
|
+
logger.debug('callback_grants_before_augmentation', {
|
|
325
|
+
count: callbackGrants.length,
|
|
326
|
+
types: callbackGrants.map(g => g.type),
|
|
327
|
+
});
|
|
324
328
|
// Check if we should create a broadcast callback grant before processing connection grants
|
|
325
329
|
// This prevents adding duplicate broadcast grants
|
|
326
330
|
const shouldAddBroadcastGrant = this.shouldAdvertiseBroadcastGrant(grant, callbackGrants);
|
|
327
331
|
const broadcastCallbackGrant = shouldAddBroadcastGrant
|
|
328
332
|
? this.createBroadcastCallbackGrant(grant)
|
|
329
333
|
: null;
|
|
334
|
+
logger.debug('broadcast_callback_grant_check', {
|
|
335
|
+
should_add: shouldAddBroadcastGrant,
|
|
336
|
+
grant_created: !!broadcastCallbackGrant,
|
|
337
|
+
});
|
|
330
338
|
// Include admission client's connection grants as callback grants
|
|
331
339
|
// This ensures DirectAdmissionClient grants are available for grant selection
|
|
332
340
|
if (welcome.frame.connectionGrants && Array.isArray(welcome.frame.connectionGrants)) {
|
|
@@ -336,6 +344,14 @@ class UpstreamSessionManager extends task_spawner_js_1.TaskSpawner {
|
|
|
336
344
|
const isDuplicate = callbackGrants.some(existing => JSON.stringify(existing) === JSON.stringify(grant));
|
|
337
345
|
if (!isDuplicate) {
|
|
338
346
|
callbackGrants.push(grant);
|
|
347
|
+
logger.debug('added_connection_grant_as_callback', {
|
|
348
|
+
type: grant.type,
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
logger.debug('skipped_duplicate_connection_grant', {
|
|
353
|
+
type: grant.type,
|
|
354
|
+
});
|
|
339
355
|
}
|
|
340
356
|
}
|
|
341
357
|
}
|
|
@@ -344,7 +360,15 @@ class UpstreamSessionManager extends task_spawner_js_1.TaskSpawner {
|
|
|
344
360
|
// any broadcast grants that may have been in connectionGrants
|
|
345
361
|
if (broadcastCallbackGrant && this.shouldAdvertiseBroadcastGrant(grant, callbackGrants)) {
|
|
346
362
|
callbackGrants.push(broadcastCallbackGrant);
|
|
363
|
+
logger.debug('added_broadcast_callback_grant');
|
|
364
|
+
}
|
|
365
|
+
else if (broadcastCallbackGrant) {
|
|
366
|
+
logger.debug('skipped_duplicate_broadcast_callback_grant');
|
|
347
367
|
}
|
|
368
|
+
logger.debug('callback_grants_after_augmentation', {
|
|
369
|
+
count: callbackGrants.length,
|
|
370
|
+
types: callbackGrants.map(g => g.type),
|
|
371
|
+
});
|
|
348
372
|
const attachInfo = await this.attachClient.attach(this.node, this.outboundOriginType, connector, welcome.frame, this.wrappedHandler, this.getKeys() ?? undefined, callbackGrants);
|
|
349
373
|
this.targetSystemId = attachInfo.targetSystemId ?? null;
|
|
350
374
|
if (this.targetSystemId) {
|
package/dist/cjs/version.js
CHANGED
|
@@ -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.
|
|
3
|
+
// Generated from package.json version: 0.3.6-test.104
|
|
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.
|
|
10
|
+
exports.VERSION = '0.3.6-test.104';
|
|
@@ -318,12 +318,20 @@ export class UpstreamSessionManager extends TaskSpawner {
|
|
|
318
318
|
await connector.start(this.wrappedHandler);
|
|
319
319
|
this.connector = connector;
|
|
320
320
|
const callbackGrants = this.node.gatherSupportedCallbackGrants();
|
|
321
|
+
logger.debug('callback_grants_before_augmentation', {
|
|
322
|
+
count: callbackGrants.length,
|
|
323
|
+
types: callbackGrants.map(g => g.type),
|
|
324
|
+
});
|
|
321
325
|
// Check if we should create a broadcast callback grant before processing connection grants
|
|
322
326
|
// This prevents adding duplicate broadcast grants
|
|
323
327
|
const shouldAddBroadcastGrant = this.shouldAdvertiseBroadcastGrant(grant, callbackGrants);
|
|
324
328
|
const broadcastCallbackGrant = shouldAddBroadcastGrant
|
|
325
329
|
? this.createBroadcastCallbackGrant(grant)
|
|
326
330
|
: null;
|
|
331
|
+
logger.debug('broadcast_callback_grant_check', {
|
|
332
|
+
should_add: shouldAddBroadcastGrant,
|
|
333
|
+
grant_created: !!broadcastCallbackGrant,
|
|
334
|
+
});
|
|
327
335
|
// Include admission client's connection grants as callback grants
|
|
328
336
|
// This ensures DirectAdmissionClient grants are available for grant selection
|
|
329
337
|
if (welcome.frame.connectionGrants && Array.isArray(welcome.frame.connectionGrants)) {
|
|
@@ -333,6 +341,14 @@ export class UpstreamSessionManager extends TaskSpawner {
|
|
|
333
341
|
const isDuplicate = callbackGrants.some(existing => JSON.stringify(existing) === JSON.stringify(grant));
|
|
334
342
|
if (!isDuplicate) {
|
|
335
343
|
callbackGrants.push(grant);
|
|
344
|
+
logger.debug('added_connection_grant_as_callback', {
|
|
345
|
+
type: grant.type,
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
logger.debug('skipped_duplicate_connection_grant', {
|
|
350
|
+
type: grant.type,
|
|
351
|
+
});
|
|
336
352
|
}
|
|
337
353
|
}
|
|
338
354
|
}
|
|
@@ -341,7 +357,15 @@ export class UpstreamSessionManager extends TaskSpawner {
|
|
|
341
357
|
// any broadcast grants that may have been in connectionGrants
|
|
342
358
|
if (broadcastCallbackGrant && this.shouldAdvertiseBroadcastGrant(grant, callbackGrants)) {
|
|
343
359
|
callbackGrants.push(broadcastCallbackGrant);
|
|
360
|
+
logger.debug('added_broadcast_callback_grant');
|
|
361
|
+
}
|
|
362
|
+
else if (broadcastCallbackGrant) {
|
|
363
|
+
logger.debug('skipped_duplicate_broadcast_callback_grant');
|
|
344
364
|
}
|
|
365
|
+
logger.debug('callback_grants_after_augmentation', {
|
|
366
|
+
count: callbackGrants.length,
|
|
367
|
+
types: callbackGrants.map(g => g.type),
|
|
368
|
+
});
|
|
345
369
|
const attachInfo = await this.attachClient.attach(this.node, this.outboundOriginType, connector, welcome.frame, this.wrappedHandler, this.getKeys() ?? undefined, callbackGrants);
|
|
346
370
|
this.targetSystemId = attachInfo.targetSystemId ?? null;
|
|
347
371
|
if (this.targetSystemId) {
|
package/dist/esm/version.js
CHANGED
|
@@ -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.
|
|
2
|
+
// Generated from package.json version: 0.3.6-test.104
|
|
3
3
|
/**
|
|
4
4
|
* The package version, injected at build time.
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export const VERSION = '0.3.6-test.
|
|
7
|
+
export const VERSION = '0.3.6-test.104';
|
package/dist/node/index.cjs
CHANGED
|
@@ -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.
|
|
17
|
+
// Generated from package.json version: 0.3.6-test.104
|
|
18
18
|
/**
|
|
19
19
|
* The package version, injected at build time.
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
|
-
const VERSION = '0.3.6-test.
|
|
22
|
+
const VERSION = '0.3.6-test.104';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -10779,12 +10779,20 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10779
10779
|
await connector.start(this.wrappedHandler);
|
|
10780
10780
|
this.connector = connector;
|
|
10781
10781
|
const callbackGrants = this.node.gatherSupportedCallbackGrants();
|
|
10782
|
+
logger$Z.debug('callback_grants_before_augmentation', {
|
|
10783
|
+
count: callbackGrants.length,
|
|
10784
|
+
types: callbackGrants.map(g => g.type),
|
|
10785
|
+
});
|
|
10782
10786
|
// Check if we should create a broadcast callback grant before processing connection grants
|
|
10783
10787
|
// This prevents adding duplicate broadcast grants
|
|
10784
10788
|
const shouldAddBroadcastGrant = this.shouldAdvertiseBroadcastGrant(grant, callbackGrants);
|
|
10785
10789
|
const broadcastCallbackGrant = shouldAddBroadcastGrant
|
|
10786
10790
|
? this.createBroadcastCallbackGrant(grant)
|
|
10787
10791
|
: null;
|
|
10792
|
+
logger$Z.debug('broadcast_callback_grant_check', {
|
|
10793
|
+
should_add: shouldAddBroadcastGrant,
|
|
10794
|
+
grant_created: !!broadcastCallbackGrant,
|
|
10795
|
+
});
|
|
10788
10796
|
// Include admission client's connection grants as callback grants
|
|
10789
10797
|
// This ensures DirectAdmissionClient grants are available for grant selection
|
|
10790
10798
|
if (welcome.frame.connectionGrants && Array.isArray(welcome.frame.connectionGrants)) {
|
|
@@ -10794,6 +10802,14 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10794
10802
|
const isDuplicate = callbackGrants.some(existing => JSON.stringify(existing) === JSON.stringify(grant));
|
|
10795
10803
|
if (!isDuplicate) {
|
|
10796
10804
|
callbackGrants.push(grant);
|
|
10805
|
+
logger$Z.debug('added_connection_grant_as_callback', {
|
|
10806
|
+
type: grant.type,
|
|
10807
|
+
});
|
|
10808
|
+
}
|
|
10809
|
+
else {
|
|
10810
|
+
logger$Z.debug('skipped_duplicate_connection_grant', {
|
|
10811
|
+
type: grant.type,
|
|
10812
|
+
});
|
|
10797
10813
|
}
|
|
10798
10814
|
}
|
|
10799
10815
|
}
|
|
@@ -10802,7 +10818,15 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10802
10818
|
// any broadcast grants that may have been in connectionGrants
|
|
10803
10819
|
if (broadcastCallbackGrant && this.shouldAdvertiseBroadcastGrant(grant, callbackGrants)) {
|
|
10804
10820
|
callbackGrants.push(broadcastCallbackGrant);
|
|
10821
|
+
logger$Z.debug('added_broadcast_callback_grant');
|
|
10805
10822
|
}
|
|
10823
|
+
else if (broadcastCallbackGrant) {
|
|
10824
|
+
logger$Z.debug('skipped_duplicate_broadcast_callback_grant');
|
|
10825
|
+
}
|
|
10826
|
+
logger$Z.debug('callback_grants_after_augmentation', {
|
|
10827
|
+
count: callbackGrants.length,
|
|
10828
|
+
types: callbackGrants.map(g => g.type),
|
|
10829
|
+
});
|
|
10806
10830
|
const attachInfo = await this.attachClient.attach(this.node, this.outboundOriginType, connector, welcome.frame, this.wrappedHandler, this.getKeys() ?? undefined, callbackGrants);
|
|
10807
10831
|
this.targetSystemId = attachInfo.targetSystemId ?? null;
|
|
10808
10832
|
if (this.targetSystemId) {
|
package/dist/node/index.mjs
CHANGED
|
@@ -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.
|
|
16
|
+
// Generated from package.json version: 0.3.6-test.104
|
|
17
17
|
/**
|
|
18
18
|
* The package version, injected at build time.
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
|
-
const VERSION = '0.3.6-test.
|
|
21
|
+
const VERSION = '0.3.6-test.104';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -10778,12 +10778,20 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10778
10778
|
await connector.start(this.wrappedHandler);
|
|
10779
10779
|
this.connector = connector;
|
|
10780
10780
|
const callbackGrants = this.node.gatherSupportedCallbackGrants();
|
|
10781
|
+
logger$Z.debug('callback_grants_before_augmentation', {
|
|
10782
|
+
count: callbackGrants.length,
|
|
10783
|
+
types: callbackGrants.map(g => g.type),
|
|
10784
|
+
});
|
|
10781
10785
|
// Check if we should create a broadcast callback grant before processing connection grants
|
|
10782
10786
|
// This prevents adding duplicate broadcast grants
|
|
10783
10787
|
const shouldAddBroadcastGrant = this.shouldAdvertiseBroadcastGrant(grant, callbackGrants);
|
|
10784
10788
|
const broadcastCallbackGrant = shouldAddBroadcastGrant
|
|
10785
10789
|
? this.createBroadcastCallbackGrant(grant)
|
|
10786
10790
|
: null;
|
|
10791
|
+
logger$Z.debug('broadcast_callback_grant_check', {
|
|
10792
|
+
should_add: shouldAddBroadcastGrant,
|
|
10793
|
+
grant_created: !!broadcastCallbackGrant,
|
|
10794
|
+
});
|
|
10787
10795
|
// Include admission client's connection grants as callback grants
|
|
10788
10796
|
// This ensures DirectAdmissionClient grants are available for grant selection
|
|
10789
10797
|
if (welcome.frame.connectionGrants && Array.isArray(welcome.frame.connectionGrants)) {
|
|
@@ -10793,6 +10801,14 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10793
10801
|
const isDuplicate = callbackGrants.some(existing => JSON.stringify(existing) === JSON.stringify(grant));
|
|
10794
10802
|
if (!isDuplicate) {
|
|
10795
10803
|
callbackGrants.push(grant);
|
|
10804
|
+
logger$Z.debug('added_connection_grant_as_callback', {
|
|
10805
|
+
type: grant.type,
|
|
10806
|
+
});
|
|
10807
|
+
}
|
|
10808
|
+
else {
|
|
10809
|
+
logger$Z.debug('skipped_duplicate_connection_grant', {
|
|
10810
|
+
type: grant.type,
|
|
10811
|
+
});
|
|
10796
10812
|
}
|
|
10797
10813
|
}
|
|
10798
10814
|
}
|
|
@@ -10801,7 +10817,15 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
10801
10817
|
// any broadcast grants that may have been in connectionGrants
|
|
10802
10818
|
if (broadcastCallbackGrant && this.shouldAdvertiseBroadcastGrant(grant, callbackGrants)) {
|
|
10803
10819
|
callbackGrants.push(broadcastCallbackGrant);
|
|
10820
|
+
logger$Z.debug('added_broadcast_callback_grant');
|
|
10804
10821
|
}
|
|
10822
|
+
else if (broadcastCallbackGrant) {
|
|
10823
|
+
logger$Z.debug('skipped_duplicate_broadcast_callback_grant');
|
|
10824
|
+
}
|
|
10825
|
+
logger$Z.debug('callback_grants_after_augmentation', {
|
|
10826
|
+
count: callbackGrants.length,
|
|
10827
|
+
types: callbackGrants.map(g => g.type),
|
|
10828
|
+
});
|
|
10805
10829
|
const attachInfo = await this.attachClient.attach(this.node, this.outboundOriginType, connector, welcome.frame, this.wrappedHandler, this.getKeys() ?? undefined, callbackGrants);
|
|
10806
10830
|
this.targetSystemId = attachInfo.targetSystemId ?? null;
|
|
10807
10831
|
if (this.targetSystemId) {
|
package/dist/node/node.cjs
CHANGED
|
@@ -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.
|
|
5566
|
+
// Generated from package.json version: 0.3.6-test.104
|
|
5567
5567
|
/**
|
|
5568
5568
|
* The package version, injected at build time.
|
|
5569
5569
|
* @internal
|
|
5570
5570
|
*/
|
|
5571
|
-
const VERSION = '0.3.6-test.
|
|
5571
|
+
const VERSION = '0.3.6-test.104';
|
|
5572
5572
|
|
|
5573
5573
|
/**
|
|
5574
5574
|
* Fame errors module - Fame protocol specific error classes
|
|
@@ -12471,12 +12471,20 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
12471
12471
|
await connector.start(this.wrappedHandler);
|
|
12472
12472
|
this.connector = connector;
|
|
12473
12473
|
const callbackGrants = this.node.gatherSupportedCallbackGrants();
|
|
12474
|
+
logger$$.debug('callback_grants_before_augmentation', {
|
|
12475
|
+
count: callbackGrants.length,
|
|
12476
|
+
types: callbackGrants.map(g => g.type),
|
|
12477
|
+
});
|
|
12474
12478
|
// Check if we should create a broadcast callback grant before processing connection grants
|
|
12475
12479
|
// This prevents adding duplicate broadcast grants
|
|
12476
12480
|
const shouldAddBroadcastGrant = this.shouldAdvertiseBroadcastGrant(grant, callbackGrants);
|
|
12477
12481
|
const broadcastCallbackGrant = shouldAddBroadcastGrant
|
|
12478
12482
|
? this.createBroadcastCallbackGrant(grant)
|
|
12479
12483
|
: null;
|
|
12484
|
+
logger$$.debug('broadcast_callback_grant_check', {
|
|
12485
|
+
should_add: shouldAddBroadcastGrant,
|
|
12486
|
+
grant_created: !!broadcastCallbackGrant,
|
|
12487
|
+
});
|
|
12480
12488
|
// Include admission client's connection grants as callback grants
|
|
12481
12489
|
// This ensures DirectAdmissionClient grants are available for grant selection
|
|
12482
12490
|
if (welcome.frame.connectionGrants && Array.isArray(welcome.frame.connectionGrants)) {
|
|
@@ -12486,6 +12494,14 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
12486
12494
|
const isDuplicate = callbackGrants.some(existing => JSON.stringify(existing) === JSON.stringify(grant));
|
|
12487
12495
|
if (!isDuplicate) {
|
|
12488
12496
|
callbackGrants.push(grant);
|
|
12497
|
+
logger$$.debug('added_connection_grant_as_callback', {
|
|
12498
|
+
type: grant.type,
|
|
12499
|
+
});
|
|
12500
|
+
}
|
|
12501
|
+
else {
|
|
12502
|
+
logger$$.debug('skipped_duplicate_connection_grant', {
|
|
12503
|
+
type: grant.type,
|
|
12504
|
+
});
|
|
12489
12505
|
}
|
|
12490
12506
|
}
|
|
12491
12507
|
}
|
|
@@ -12494,7 +12510,15 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
12494
12510
|
// any broadcast grants that may have been in connectionGrants
|
|
12495
12511
|
if (broadcastCallbackGrant && this.shouldAdvertiseBroadcastGrant(grant, callbackGrants)) {
|
|
12496
12512
|
callbackGrants.push(broadcastCallbackGrant);
|
|
12513
|
+
logger$$.debug('added_broadcast_callback_grant');
|
|
12497
12514
|
}
|
|
12515
|
+
else if (broadcastCallbackGrant) {
|
|
12516
|
+
logger$$.debug('skipped_duplicate_broadcast_callback_grant');
|
|
12517
|
+
}
|
|
12518
|
+
logger$$.debug('callback_grants_after_augmentation', {
|
|
12519
|
+
count: callbackGrants.length,
|
|
12520
|
+
types: callbackGrants.map(g => g.type),
|
|
12521
|
+
});
|
|
12498
12522
|
const attachInfo = await this.attachClient.attach(this.node, this.outboundOriginType, connector, welcome.frame, this.wrappedHandler, this.getKeys() ?? undefined, callbackGrants);
|
|
12499
12523
|
this.targetSystemId = attachInfo.targetSystemId ?? null;
|
|
12500
12524
|
if (this.targetSystemId) {
|
package/dist/node/node.mjs
CHANGED
|
@@ -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.
|
|
5565
|
+
// Generated from package.json version: 0.3.6-test.104
|
|
5566
5566
|
/**
|
|
5567
5567
|
* The package version, injected at build time.
|
|
5568
5568
|
* @internal
|
|
5569
5569
|
*/
|
|
5570
|
-
const VERSION = '0.3.6-test.
|
|
5570
|
+
const VERSION = '0.3.6-test.104';
|
|
5571
5571
|
|
|
5572
5572
|
/**
|
|
5573
5573
|
* Fame errors module - Fame protocol specific error classes
|
|
@@ -12470,12 +12470,20 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
12470
12470
|
await connector.start(this.wrappedHandler);
|
|
12471
12471
|
this.connector = connector;
|
|
12472
12472
|
const callbackGrants = this.node.gatherSupportedCallbackGrants();
|
|
12473
|
+
logger$$.debug('callback_grants_before_augmentation', {
|
|
12474
|
+
count: callbackGrants.length,
|
|
12475
|
+
types: callbackGrants.map(g => g.type),
|
|
12476
|
+
});
|
|
12473
12477
|
// Check if we should create a broadcast callback grant before processing connection grants
|
|
12474
12478
|
// This prevents adding duplicate broadcast grants
|
|
12475
12479
|
const shouldAddBroadcastGrant = this.shouldAdvertiseBroadcastGrant(grant, callbackGrants);
|
|
12476
12480
|
const broadcastCallbackGrant = shouldAddBroadcastGrant
|
|
12477
12481
|
? this.createBroadcastCallbackGrant(grant)
|
|
12478
12482
|
: null;
|
|
12483
|
+
logger$$.debug('broadcast_callback_grant_check', {
|
|
12484
|
+
should_add: shouldAddBroadcastGrant,
|
|
12485
|
+
grant_created: !!broadcastCallbackGrant,
|
|
12486
|
+
});
|
|
12479
12487
|
// Include admission client's connection grants as callback grants
|
|
12480
12488
|
// This ensures DirectAdmissionClient grants are available for grant selection
|
|
12481
12489
|
if (welcome.frame.connectionGrants && Array.isArray(welcome.frame.connectionGrants)) {
|
|
@@ -12485,6 +12493,14 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
12485
12493
|
const isDuplicate = callbackGrants.some(existing => JSON.stringify(existing) === JSON.stringify(grant));
|
|
12486
12494
|
if (!isDuplicate) {
|
|
12487
12495
|
callbackGrants.push(grant);
|
|
12496
|
+
logger$$.debug('added_connection_grant_as_callback', {
|
|
12497
|
+
type: grant.type,
|
|
12498
|
+
});
|
|
12499
|
+
}
|
|
12500
|
+
else {
|
|
12501
|
+
logger$$.debug('skipped_duplicate_connection_grant', {
|
|
12502
|
+
type: grant.type,
|
|
12503
|
+
});
|
|
12488
12504
|
}
|
|
12489
12505
|
}
|
|
12490
12506
|
}
|
|
@@ -12493,7 +12509,15 @@ class UpstreamSessionManager extends TaskSpawner {
|
|
|
12493
12509
|
// any broadcast grants that may have been in connectionGrants
|
|
12494
12510
|
if (broadcastCallbackGrant && this.shouldAdvertiseBroadcastGrant(grant, callbackGrants)) {
|
|
12495
12511
|
callbackGrants.push(broadcastCallbackGrant);
|
|
12512
|
+
logger$$.debug('added_broadcast_callback_grant');
|
|
12496
12513
|
}
|
|
12514
|
+
else if (broadcastCallbackGrant) {
|
|
12515
|
+
logger$$.debug('skipped_duplicate_broadcast_callback_grant');
|
|
12516
|
+
}
|
|
12517
|
+
logger$$.debug('callback_grants_after_augmentation', {
|
|
12518
|
+
count: callbackGrants.length,
|
|
12519
|
+
types: callbackGrants.map(g => g.type),
|
|
12520
|
+
});
|
|
12497
12521
|
const attachInfo = await this.attachClient.attach(this.node, this.outboundOriginType, connector, welcome.frame, this.wrappedHandler, this.getKeys() ?? undefined, callbackGrants);
|
|
12498
12522
|
this.targetSystemId = attachInfo.targetSystemId ?? null;
|
|
12499
12523
|
if (this.targetSystemId) {
|
package/dist/types/version.d.ts
CHANGED