@naylence/agent-sdk 0.3.4-test.724 → 0.3.4-test.725

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.
@@ -15671,12 +15671,12 @@
15671
15671
  // --- END ENV SHIM ---
15672
15672
 
15673
15673
  // This file is auto-generated during build - do not edit manually
15674
- // Generated from package.json version: 0.3.5-test.926
15674
+ // Generated from package.json version: 0.3.5-test.927
15675
15675
  /**
15676
15676
  * The package version, injected at build time.
15677
15677
  * @internal
15678
15678
  */
15679
- const VERSION$1 = '0.3.5-test.926';
15679
+ const VERSION$1 = '0.3.5-test.927';
15680
15680
 
15681
15681
  /**
15682
15682
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -25088,6 +25088,19 @@
25088
25088
  await connector.start(this.wrappedHandler);
25089
25089
  this.connector = connector;
25090
25090
  const callbackGrants = this.node.gatherSupportedCallbackGrants();
25091
+ // Include admission client's connection grants as callback grants
25092
+ // This ensures DirectAdmissionClient grants are available for grant selection
25093
+ if (welcome.frame.connectionGrants && Array.isArray(welcome.frame.connectionGrants)) {
25094
+ for (const grant of welcome.frame.connectionGrants) {
25095
+ if (grant && typeof grant === 'object') {
25096
+ // Avoid duplicates by checking if grant already exists
25097
+ const isDuplicate = callbackGrants.some(existing => JSON.stringify(existing) === JSON.stringify(grant));
25098
+ if (!isDuplicate) {
25099
+ callbackGrants.push(grant);
25100
+ }
25101
+ }
25102
+ }
25103
+ }
25091
25104
  if (this.shouldAdvertiseBroadcastGrant(grant, callbackGrants)) {
25092
25105
  const augmented = this.createBroadcastCallbackGrant(grant);
25093
25106
  if (augmented) {