@memohai/cloud-runtime 2026.10.15-1 → 2026.10.21-1

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +514 -264
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // @memohai/cloud-runtime 2026.10.15-1 — bundles @memohai/runtime 0.21.0 (memoh 975e1723)
2
+ // @memohai/cloud-runtime 2026.10.21-1 — bundles @memohai/runtime 0.22.0 (memoh 8c646e2f)
3
3
  import { createRequire as __memohCreateRequire } from 'node:module'
4
4
  const require = __memohCreateRequire(import.meta.url)
5
5
  var __create = Object.create;
@@ -3713,9 +3713,9 @@ var require_websocket_server = __commonJS({
3713
3713
  }
3714
3714
  });
3715
3715
 
3716
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/constants.js
3716
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/constants.js
3717
3717
  var require_constants2 = __commonJS({
3718
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/constants.js"(exports) {
3718
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/constants.js"(exports) {
3719
3719
  "use strict";
3720
3720
  Object.defineProperty(exports, "__esModule", { value: true });
3721
3721
  exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = exports.Propagate = exports.LogVerbosity = exports.Status = void 0;
@@ -3759,12 +3759,12 @@ var require_constants2 = __commonJS({
3759
3759
  }
3760
3760
  });
3761
3761
 
3762
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/package.json
3762
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/package.json
3763
3763
  var require_package = __commonJS({
3764
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/package.json"(exports, module) {
3764
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/package.json"(exports, module) {
3765
3765
  module.exports = {
3766
3766
  name: "@grpc/grpc-js",
3767
- version: "1.14.4",
3767
+ version: "1.14.5",
3768
3768
  description: "gRPC Library for Node - pure JS implementation",
3769
3769
  homepage: "https://grpc.io/",
3770
3770
  repository: "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
@@ -3854,9 +3854,9 @@ var require_package = __commonJS({
3854
3854
  }
3855
3855
  });
3856
3856
 
3857
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/logging.js
3857
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/logging.js
3858
3858
  var require_logging = __commonJS({
3859
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/logging.js"(exports) {
3859
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/logging.js"(exports) {
3860
3860
  "use strict";
3861
3861
  var _a;
3862
3862
  var _b;
@@ -3937,6 +3937,9 @@ var require_logging = __commonJS({
3937
3937
  var enabledTracers = /* @__PURE__ */ new Set();
3938
3938
  var disabledTracers = /* @__PURE__ */ new Set();
3939
3939
  for (const tracerName of tracersString.split(",")) {
3940
+ if (tracerName.length === 0) {
3941
+ continue;
3942
+ }
3940
3943
  if (tracerName.startsWith("-")) {
3941
3944
  disabledTracers.add(tracerName.substring(1));
3942
3945
  } else {
@@ -3944,20 +3947,24 @@ var require_logging = __commonJS({
3944
3947
  }
3945
3948
  }
3946
3949
  var allEnabled = enabledTracers.has("all");
3950
+ var anyTracerEnabled = allEnabled || enabledTracers.size > 0;
3947
3951
  function trace(severity, tracer, text) {
3948
3952
  if (isTracerEnabled(tracer)) {
3949
3953
  (0, exports.log)(severity, (/* @__PURE__ */ new Date()).toISOString() + " | v" + clientVersion + " " + process_1.pid + " | " + tracer + " | " + text);
3950
3954
  }
3951
3955
  }
3952
3956
  function isTracerEnabled(tracer) {
3957
+ if (!anyTracerEnabled) {
3958
+ return false;
3959
+ }
3953
3960
  return !disabledTracers.has(tracer) && (allEnabled || enabledTracers.has(tracer));
3954
3961
  }
3955
3962
  }
3956
3963
  });
3957
3964
 
3958
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/error.js
3965
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/error.js
3959
3966
  var require_error = __commonJS({
3960
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/error.js"(exports) {
3967
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/error.js"(exports) {
3961
3968
  "use strict";
3962
3969
  Object.defineProperty(exports, "__esModule", { value: true });
3963
3970
  exports.getErrorMessage = getErrorMessage;
@@ -3979,9 +3986,9 @@ var require_error = __commonJS({
3979
3986
  }
3980
3987
  });
3981
3988
 
3982
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/metadata.js
3989
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/metadata.js
3983
3990
  var require_metadata = __commonJS({
3984
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/metadata.js"(exports) {
3991
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/metadata.js"(exports) {
3985
3992
  "use strict";
3986
3993
  Object.defineProperty(exports, "__esModule", { value: true });
3987
3994
  exports.Metadata = void 0;
@@ -4223,9 +4230,9 @@ var require_metadata = __commonJS({
4223
4230
  }
4224
4231
  });
4225
4232
 
4226
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/call-credentials.js
4233
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-credentials.js
4227
4234
  var require_call_credentials = __commonJS({
4228
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/call-credentials.js"(exports) {
4235
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-credentials.js"(exports) {
4229
4236
  "use strict";
4230
4237
  Object.defineProperty(exports, "__esModule", { value: true });
4231
4238
  exports.CallCredentials = void 0;
@@ -4356,9 +4363,9 @@ var require_call_credentials = __commonJS({
4356
4363
  }
4357
4364
  });
4358
4365
 
4359
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/tls-helpers.js
4366
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/tls-helpers.js
4360
4367
  var require_tls_helpers = __commonJS({
4361
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/tls-helpers.js"(exports) {
4368
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/tls-helpers.js"(exports) {
4362
4369
  "use strict";
4363
4370
  Object.defineProperty(exports, "__esModule", { value: true });
4364
4371
  exports.CIPHER_SUITES = void 0;
@@ -4379,9 +4386,9 @@ var require_tls_helpers = __commonJS({
4379
4386
  }
4380
4387
  });
4381
4388
 
4382
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/uri-parser.js
4389
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/uri-parser.js
4383
4390
  var require_uri_parser = __commonJS({
4384
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/uri-parser.js"(exports) {
4391
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/uri-parser.js"(exports) {
4385
4392
  "use strict";
4386
4393
  Object.defineProperty(exports, "__esModule", { value: true });
4387
4394
  exports.parseUri = parseUri;
@@ -4473,9 +4480,9 @@ var require_uri_parser = __commonJS({
4473
4480
  }
4474
4481
  });
4475
4482
 
4476
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolver.js
4483
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver.js
4477
4484
  var require_resolver = __commonJS({
4478
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolver.js"(exports) {
4485
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver.js"(exports) {
4479
4486
  "use strict";
4480
4487
  Object.defineProperty(exports, "__esModule", { value: true });
4481
4488
  exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = void 0;
@@ -4525,9 +4532,9 @@ var require_resolver = __commonJS({
4525
4532
  }
4526
4533
  });
4527
4534
 
4528
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/channel-credentials.js
4535
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-credentials.js
4529
4536
  var require_channel_credentials = __commonJS({
4530
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/channel-credentials.js"(exports) {
4537
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-credentials.js"(exports) {
4531
4538
  "use strict";
4532
4539
  Object.defineProperty(exports, "__esModule", { value: true });
4533
4540
  exports.ChannelCredentials = void 0;
@@ -4921,9 +4928,9 @@ var require_channel_credentials = __commonJS({
4921
4928
  }
4922
4929
  });
4923
4930
 
4924
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer.js
4931
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer.js
4925
4932
  var require_load_balancer = __commonJS({
4926
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer.js"(exports) {
4933
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer.js"(exports) {
4927
4934
  "use strict";
4928
4935
  Object.defineProperty(exports, "__esModule", { value: true });
4929
4936
  exports.createChildChannelControlHelper = createChildChannelControlHelper;
@@ -5012,9 +5019,9 @@ var require_load_balancer = __commonJS({
5012
5019
  }
5013
5020
  });
5014
5021
 
5015
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/service-config.js
5022
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/service-config.js
5016
5023
  var require_service_config = __commonJS({
5017
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/service-config.js"(exports) {
5024
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/service-config.js"(exports) {
5018
5025
  "use strict";
5019
5026
  Object.defineProperty(exports, "__esModule", { value: true });
5020
5027
  exports.validateRetryThrottling = validateRetryThrottling;
@@ -5355,9 +5362,9 @@ var require_service_config = __commonJS({
5355
5362
  }
5356
5363
  });
5357
5364
 
5358
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/connectivity-state.js
5365
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/connectivity-state.js
5359
5366
  var require_connectivity_state = __commonJS({
5360
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/connectivity-state.js"(exports) {
5367
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/connectivity-state.js"(exports) {
5361
5368
  "use strict";
5362
5369
  Object.defineProperty(exports, "__esModule", { value: true });
5363
5370
  exports.ConnectivityState = void 0;
@@ -5372,9 +5379,9 @@ var require_connectivity_state = __commonJS({
5372
5379
  }
5373
5380
  });
5374
5381
 
5375
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/picker.js
5382
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/picker.js
5376
5383
  var require_picker = __commonJS({
5377
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/picker.js"(exports) {
5384
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/picker.js"(exports) {
5378
5385
  "use strict";
5379
5386
  Object.defineProperty(exports, "__esModule", { value: true });
5380
5387
  exports.QueuePicker = exports.UnavailablePicker = exports.PickResultType = void 0;
@@ -5433,9 +5440,9 @@ var require_picker = __commonJS({
5433
5440
  }
5434
5441
  });
5435
5442
 
5436
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js
5443
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js
5437
5444
  var require_backoff_timeout = __commonJS({
5438
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js"(exports) {
5445
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js"(exports) {
5439
5446
  "use strict";
5440
5447
  Object.defineProperty(exports, "__esModule", { value: true });
5441
5448
  exports.BackoffTimeout = void 0;
@@ -5475,7 +5482,9 @@ var require_backoff_timeout = __commonJS({
5475
5482
  this.maxDelay = options.maxDelay;
5476
5483
  }
5477
5484
  }
5478
- this.trace("constructed initialDelay=" + this.initialDelay + " multiplier=" + this.multiplier + " jitter=" + this.jitter + " maxDelay=" + this.maxDelay);
5485
+ if (this.traceEnabled) {
5486
+ this.trace("constructed initialDelay=" + this.initialDelay + " multiplier=" + this.multiplier + " jitter=" + this.jitter + " maxDelay=" + this.maxDelay);
5487
+ }
5479
5488
  this.nextDelay = this.initialDelay;
5480
5489
  this.timerId = setTimeout(() => {
5481
5490
  }, 0);
@@ -5484,12 +5493,19 @@ var require_backoff_timeout = __commonJS({
5484
5493
  static getNextId() {
5485
5494
  return this.nextId++;
5486
5495
  }
5496
+ get traceEnabled() {
5497
+ return logging.isTracerEnabled(TRACER_NAME);
5498
+ }
5487
5499
  trace(text) {
5488
- logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "{" + this.id + "} " + text);
5500
+ if (this.traceEnabled) {
5501
+ logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "{" + this.id + "} " + text);
5502
+ }
5489
5503
  }
5490
5504
  runTimer(delay) {
5491
5505
  var _a, _b;
5492
- this.trace("runTimer(delay=" + delay + ")");
5506
+ if (this.traceEnabled) {
5507
+ this.trace("runTimer(delay=" + delay + ")");
5508
+ }
5493
5509
  this.endTime = this.startTime;
5494
5510
  this.endTime.setMilliseconds(this.endTime.getMilliseconds() + delay);
5495
5511
  clearTimeout(this.timerId);
@@ -5528,7 +5544,9 @@ var require_backoff_timeout = __commonJS({
5528
5544
  * retroactively apply that reset to the current timer.
5529
5545
  */
5530
5546
  reset() {
5531
- this.trace("reset() running=" + this.running);
5547
+ if (this.traceEnabled) {
5548
+ this.trace("reset() running=" + this.running);
5549
+ }
5532
5550
  this.nextDelay = this.initialDelay;
5533
5551
  if (this.running) {
5534
5552
  const now = /* @__PURE__ */ new Date();
@@ -5579,9 +5597,9 @@ var require_backoff_timeout = __commonJS({
5579
5597
  }
5580
5598
  });
5581
5599
 
5582
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js
5600
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js
5583
5601
  var require_load_balancer_child_handler = __commonJS({
5584
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js"(exports) {
5602
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js"(exports) {
5585
5603
  "use strict";
5586
5604
  Object.defineProperty(exports, "__esModule", { value: true });
5587
5605
  exports.ChildLoadBalancerHandler = void 0;
@@ -5709,9 +5727,9 @@ var require_load_balancer_child_handler = __commonJS({
5709
5727
  }
5710
5728
  });
5711
5729
 
5712
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js
5730
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js
5713
5731
  var require_resolving_load_balancer = __commonJS({
5714
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js"(exports) {
5732
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js"(exports) {
5715
5733
  "use strict";
5716
5734
  Object.defineProperty(exports, "__esModule", { value: true });
5717
5735
  exports.ResolvingLoadBalancer = void 0;
@@ -5958,9 +5976,9 @@ var require_resolving_load_balancer = __commonJS({
5958
5976
  }
5959
5977
  });
5960
5978
 
5961
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/channel-options.js
5979
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-options.js
5962
5980
  var require_channel_options = __commonJS({
5963
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/channel-options.js"(exports) {
5981
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-options.js"(exports) {
5964
5982
  "use strict";
5965
5983
  Object.defineProperty(exports, "__esModule", { value: true });
5966
5984
  exports.recognizedOptions = void 0;
@@ -6016,9 +6034,9 @@ var require_channel_options = __commonJS({
6016
6034
  }
6017
6035
  });
6018
6036
 
6019
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel-address.js
6037
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-address.js
6020
6038
  var require_subchannel_address = __commonJS({
6021
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel-address.js"(exports) {
6039
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-address.js"(exports) {
6022
6040
  "use strict";
6023
6041
  Object.defineProperty(exports, "__esModule", { value: true });
6024
6042
  exports.EndpointMap = void 0;
@@ -6995,9 +7013,9 @@ var require_cjs = __commonJS({
6995
7013
  }
6996
7014
  });
6997
7015
 
6998
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/admin.js
7016
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/admin.js
6999
7017
  var require_admin = __commonJS({
7000
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/admin.js"(exports) {
7018
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/admin.js"(exports) {
7001
7019
  "use strict";
7002
7020
  Object.defineProperty(exports, "__esModule", { value: true });
7003
7021
  exports.registerAdminService = registerAdminService;
@@ -7014,9 +7032,9 @@ var require_admin = __commonJS({
7014
7032
  }
7015
7033
  });
7016
7034
 
7017
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/call.js
7035
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call.js
7018
7036
  var require_call = __commonJS({
7019
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/call.js"(exports) {
7037
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call.js"(exports) {
7020
7038
  "use strict";
7021
7039
  Object.defineProperty(exports, "__esModule", { value: true });
7022
7040
  exports.ClientDuplexStreamImpl = exports.ClientWritableStreamImpl = exports.ClientReadableStreamImpl = exports.ClientUnaryCallImpl = void 0;
@@ -7151,9 +7169,9 @@ ${callerStack}`;
7151
7169
  }
7152
7170
  });
7153
7171
 
7154
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/call-interface.js
7172
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-interface.js
7155
7173
  var require_call_interface = __commonJS({
7156
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/call-interface.js"(exports) {
7174
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-interface.js"(exports) {
7157
7175
  "use strict";
7158
7176
  Object.defineProperty(exports, "__esModule", { value: true });
7159
7177
  exports.InterceptingListenerImpl = void 0;
@@ -7235,9 +7253,9 @@ var require_call_interface = __commonJS({
7235
7253
  }
7236
7254
  });
7237
7255
 
7238
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/client-interceptors.js
7256
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client-interceptors.js
7239
7257
  var require_client_interceptors = __commonJS({
7240
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/client-interceptors.js"(exports) {
7258
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client-interceptors.js"(exports) {
7241
7259
  "use strict";
7242
7260
  Object.defineProperty(exports, "__esModule", { value: true });
7243
7261
  exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.InterceptorConfigurationError = void 0;
@@ -7588,9 +7606,9 @@ var require_client_interceptors = __commonJS({
7588
7606
  }
7589
7607
  });
7590
7608
 
7591
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/client.js
7609
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client.js
7592
7610
  var require_client = __commonJS({
7593
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/client.js"(exports) {
7611
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client.js"(exports) {
7594
7612
  "use strict";
7595
7613
  Object.defineProperty(exports, "__esModule", { value: true });
7596
7614
  exports.Client = void 0;
@@ -7962,9 +7980,9 @@ var require_client = __commonJS({
7962
7980
  }
7963
7981
  });
7964
7982
 
7965
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/make-client.js
7983
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/make-client.js
7966
7984
  var require_make_client = __commonJS({
7967
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/make-client.js"(exports) {
7985
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/make-client.js"(exports) {
7968
7986
  "use strict";
7969
7987
  Object.defineProperty(exports, "__esModule", { value: true });
7970
7988
  exports.makeClientConstructor = makeClientConstructor;
@@ -17580,9 +17598,9 @@ var require_src2 = __commonJS({
17580
17598
  }
17581
17599
  });
17582
17600
 
17583
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/channelz.js
17601
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channelz.js
17584
17602
  var require_channelz = __commonJS({
17585
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/channelz.js"(exports) {
17603
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channelz.js"(exports) {
17586
17604
  "use strict";
17587
17605
  Object.defineProperty(exports, "__esModule", { value: true });
17588
17606
  exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = void 0;
@@ -18164,9 +18182,9 @@ var require_channelz = __commonJS({
18164
18182
  }
18165
18183
  });
18166
18184
 
18167
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/call-number.js
18185
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-number.js
18168
18186
  var require_call_number = __commonJS({
18169
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/call-number.js"(exports) {
18187
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-number.js"(exports) {
18170
18188
  "use strict";
18171
18189
  Object.defineProperty(exports, "__esModule", { value: true });
18172
18190
  exports.getNextCallNumber = getNextCallNumber;
@@ -18177,9 +18195,9 @@ var require_call_number = __commonJS({
18177
18195
  }
18178
18196
  });
18179
18197
 
18180
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js
18198
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js
18181
18199
  var require_compression_algorithms = __commonJS({
18182
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js"(exports) {
18200
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js"(exports) {
18183
18201
  "use strict";
18184
18202
  Object.defineProperty(exports, "__esModule", { value: true });
18185
18203
  exports.CompressionAlgorithms = void 0;
@@ -18192,9 +18210,9 @@ var require_compression_algorithms = __commonJS({
18192
18210
  }
18193
18211
  });
18194
18212
 
18195
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/filter.js
18213
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter.js
18196
18214
  var require_filter = __commonJS({
18197
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/filter.js"(exports) {
18215
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter.js"(exports) {
18198
18216
  "use strict";
18199
18217
  Object.defineProperty(exports, "__esModule", { value: true });
18200
18218
  exports.BaseFilter = void 0;
@@ -18219,9 +18237,9 @@ var require_filter = __commonJS({
18219
18237
  }
18220
18238
  });
18221
18239
 
18222
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/compression-filter.js
18240
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-filter.js
18223
18241
  var require_compression_filter = __commonJS({
18224
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/compression-filter.js"(exports) {
18242
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-filter.js"(exports) {
18225
18243
  "use strict";
18226
18244
  Object.defineProperty(exports, "__esModule", { value: true });
18227
18245
  exports.CompressionFilterFactory = exports.CompressionFilter = void 0;
@@ -18488,9 +18506,9 @@ var require_compression_filter = __commonJS({
18488
18506
  }
18489
18507
  });
18490
18508
 
18491
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/control-plane-status.js
18509
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/control-plane-status.js
18492
18510
  var require_control_plane_status = __commonJS({
18493
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/control-plane-status.js"(exports) {
18511
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/control-plane-status.js"(exports) {
18494
18512
  "use strict";
18495
18513
  Object.defineProperty(exports, "__esModule", { value: true });
18496
18514
  exports.restrictControlPlaneStatusCode = restrictControlPlaneStatusCode;
@@ -18518,9 +18536,9 @@ var require_control_plane_status = __commonJS({
18518
18536
  }
18519
18537
  });
18520
18538
 
18521
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/deadline.js
18539
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/deadline.js
18522
18540
  var require_deadline = __commonJS({
18523
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/deadline.js"(exports) {
18541
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/deadline.js"(exports) {
18524
18542
  "use strict";
18525
18543
  Object.defineProperty(exports, "__esModule", { value: true });
18526
18544
  exports.minDeadline = minDeadline;
@@ -18589,9 +18607,9 @@ var require_deadline = __commonJS({
18589
18607
  }
18590
18608
  });
18591
18609
 
18592
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/filter-stack.js
18610
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter-stack.js
18593
18611
  var require_filter_stack = __commonJS({
18594
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/filter-stack.js"(exports) {
18612
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter-stack.js"(exports) {
18595
18613
  "use strict";
18596
18614
  Object.defineProperty(exports, "__esModule", { value: true });
18597
18615
  exports.FilterStackFactory = exports.FilterStack = void 0;
@@ -18660,9 +18678,9 @@ var require_filter_stack = __commonJS({
18660
18678
  }
18661
18679
  });
18662
18680
 
18663
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js
18681
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js
18664
18682
  var require_single_subchannel_channel = __commonJS({
18665
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js"(exports) {
18683
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js"(exports) {
18666
18684
  "use strict";
18667
18685
  Object.defineProperty(exports, "__esModule", { value: true });
18668
18686
  exports.SingleSubchannelChannel = void 0;
@@ -18775,7 +18793,7 @@ var require_single_subchannel_channel = __commonJS({
18775
18793
  }
18776
18794
  }
18777
18795
  };
18778
- this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener);
18796
+ this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener, this.callNumber);
18779
18797
  if (this.readPending) {
18780
18798
  this.childCall.startRead();
18781
18799
  }
@@ -18880,9 +18898,9 @@ var require_single_subchannel_channel = __commonJS({
18880
18898
  }
18881
18899
  });
18882
18900
 
18883
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel.js
18901
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel.js
18884
18902
  var require_subchannel = __commonJS({
18885
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel.js"(exports) {
18903
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel.js"(exports) {
18886
18904
  "use strict";
18887
18905
  Object.defineProperty(exports, "__esModule", { value: true });
18888
18906
  exports.Subchannel = void 0;
@@ -18945,7 +18963,9 @@ var require_subchannel = __commonJS({
18945
18963
  }
18946
18964
  this.channelzRef = (0, channelz_1.registerChannelzSubchannel)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled);
18947
18965
  this.channelzTrace.addTrace("CT_INFO", "Subchannel created");
18948
- this.trace("Subchannel constructed with options " + JSON.stringify(options, void 0, 2));
18966
+ if (this.traceEnabled) {
18967
+ this.trace("Subchannel constructed with options " + JSON.stringify(options, void 0, 2));
18968
+ }
18949
18969
  this.secureConnector = credentials._createSecureConnector(channelTarget, options);
18950
18970
  }
18951
18971
  getChannelzInfo() {
@@ -18957,11 +18977,21 @@ var require_subchannel = __commonJS({
18957
18977
  target: this.subchannelAddressString
18958
18978
  };
18959
18979
  }
18980
+ get traceEnabled() {
18981
+ return logging.isTracerEnabled(TRACER_NAME);
18982
+ }
18983
+ get refTraceEnabled() {
18984
+ return logging.isTracerEnabled("subchannel_refcount");
18985
+ }
18960
18986
  trace(text) {
18961
- logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
18987
+ if (this.traceEnabled) {
18988
+ logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
18989
+ }
18962
18990
  }
18963
18991
  refTrace(text) {
18964
- logging.trace(constants_1.LogVerbosity.DEBUG, "subchannel_refcount", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
18992
+ if (this.refTraceEnabled) {
18993
+ logging.trace(constants_1.LogVerbosity.DEBUG, "subchannel_refcount", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
18994
+ }
18965
18995
  }
18966
18996
  handleBackoffTimer() {
18967
18997
  if (this.continueConnecting) {
@@ -19018,10 +19048,12 @@ var require_subchannel = __commonJS({
19018
19048
  if (oldStates.indexOf(this.connectivityState) === -1) {
19019
19049
  return false;
19020
19050
  }
19021
- if (errorMessage) {
19022
- this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + " -> " + connectivity_state_1.ConnectivityState[newState] + ' with error "' + errorMessage + '"');
19023
- } else {
19024
- this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + " -> " + connectivity_state_1.ConnectivityState[newState]);
19051
+ if (this.traceEnabled) {
19052
+ if (errorMessage) {
19053
+ this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + " -> " + connectivity_state_1.ConnectivityState[newState] + ' with error "' + errorMessage + '"');
19054
+ } else {
19055
+ this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + " -> " + connectivity_state_1.ConnectivityState[newState]);
19056
+ }
19025
19057
  }
19026
19058
  if (this.channelzEnabled) {
19027
19059
  this.channelzTrace.addTrace("CT_INFO", "Connectivity state change to " + connectivity_state_1.ConnectivityState[newState]);
@@ -19065,11 +19097,15 @@ var require_subchannel = __commonJS({
19065
19097
  return true;
19066
19098
  }
19067
19099
  ref() {
19068
- this.refTrace("refcount " + this.refcount + " -> " + (this.refcount + 1));
19100
+ if (this.refTraceEnabled) {
19101
+ this.refTrace("refcount " + this.refcount + " -> " + (this.refcount + 1));
19102
+ }
19069
19103
  this.refcount += 1;
19070
19104
  }
19071
19105
  unref() {
19072
- this.refTrace("refcount " + this.refcount + " -> " + (this.refcount - 1));
19106
+ if (this.refTraceEnabled) {
19107
+ this.refTrace("refcount " + this.refcount + " -> " + (this.refcount - 1));
19108
+ }
19073
19109
  this.refcount -= 1;
19074
19110
  if (this.refcount === 0) {
19075
19111
  this.channelzTrace.addTrace("CT_INFO", "Shutting down");
@@ -19087,7 +19123,7 @@ var require_subchannel = __commonJS({
19087
19123
  }
19088
19124
  return false;
19089
19125
  }
19090
- createCall(metadata, host, method, listener) {
19126
+ createCall(metadata, host, method, listener, callId) {
19091
19127
  if (!this.transport) {
19092
19128
  throw new Error("Cannot create call, subchannel not READY");
19093
19129
  }
@@ -19107,7 +19143,7 @@ var require_subchannel = __commonJS({
19107
19143
  } else {
19108
19144
  statsTracker = {};
19109
19145
  }
19110
- return this.transport.createCall(metadata, host, method, listener, statsTracker);
19146
+ return this.transport.createCall(metadata, host, method, listener, statsTracker, callId);
19111
19147
  }
19112
19148
  /**
19113
19149
  * If the subchannel is currently IDLE, start connecting and switch to the
@@ -19208,20 +19244,22 @@ var require_subchannel = __commonJS({
19208
19244
  }
19209
19245
  });
19210
19246
 
19211
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/environment.js
19247
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/environment.js
19212
19248
  var require_environment = __commonJS({
19213
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/environment.js"(exports) {
19249
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/environment.js"(exports) {
19214
19250
  "use strict";
19215
19251
  var _a;
19252
+ var _b;
19216
19253
  Object.defineProperty(exports, "__esModule", { value: true });
19217
- exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = void 0;
19254
+ exports.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS = exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = void 0;
19218
19255
  exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = ((_a = process.env.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) !== null && _a !== void 0 ? _a : "false") === "true";
19256
+ exports.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS = ((_b = process.env.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) !== null && _b !== void 0 ? _b : "false") === "true";
19219
19257
  }
19220
19258
  });
19221
19259
 
19222
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolver-dns.js
19260
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-dns.js
19223
19261
  var require_resolver_dns = __commonJS({
19224
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolver-dns.js"(exports) {
19262
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-dns.js"(exports) {
19225
19263
  "use strict";
19226
19264
  Object.defineProperty(exports, "__esModule", { value: true });
19227
19265
  exports.DEFAULT_PORT = void 0;
@@ -19507,9 +19545,9 @@ var require_resolver_dns = __commonJS({
19507
19545
  }
19508
19546
  });
19509
19547
 
19510
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/http_proxy.js
19548
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/http_proxy.js
19511
19549
  var require_http_proxy = __commonJS({
19512
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/http_proxy.js"(exports) {
19550
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/http_proxy.js"(exports) {
19513
19551
  "use strict";
19514
19552
  Object.defineProperty(exports, "__esModule", { value: true });
19515
19553
  exports.parseCIDR = parseCIDR;
@@ -19726,9 +19764,9 @@ var require_http_proxy = __commonJS({
19726
19764
  }
19727
19765
  });
19728
19766
 
19729
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/stream-decoder.js
19767
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/stream-decoder.js
19730
19768
  var require_stream_decoder = __commonJS({
19731
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/stream-decoder.js"(exports) {
19769
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/stream-decoder.js"(exports) {
19732
19770
  "use strict";
19733
19771
  Object.defineProperty(exports, "__esModule", { value: true });
19734
19772
  exports.StreamDecoder = void 0;
@@ -19811,9 +19849,9 @@ var require_stream_decoder = __commonJS({
19811
19849
  }
19812
19850
  });
19813
19851
 
19814
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel-call.js
19852
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-call.js
19815
19853
  var require_subchannel_call = __commonJS({
19816
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel-call.js"(exports) {
19854
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-call.js"(exports) {
19817
19855
  "use strict";
19818
19856
  Object.defineProperty(exports, "__esModule", { value: true });
19819
19857
  exports.Http2SubchannelCall = void 0;
@@ -19886,11 +19924,13 @@ var require_subchannel_call = __commonJS({
19886
19924
  const maxReceiveMessageLength = (_a = transport.getOptions()["grpc.max_receive_message_length"]) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH;
19887
19925
  this.decoder = new stream_decoder_1.StreamDecoder(maxReceiveMessageLength);
19888
19926
  http2Stream.on("response", (headers, flags) => {
19889
- let headersString = "";
19890
- for (const header of Object.keys(headers)) {
19891
- headersString += " " + header + ": " + headers[header] + "\n";
19927
+ if (this.traceEnabled) {
19928
+ let headersString = "";
19929
+ for (const header of Object.keys(headers)) {
19930
+ headersString += " " + header + ": " + headers[header] + "\n";
19931
+ }
19932
+ this.trace("Received server headers:\n" + headersString);
19892
19933
  }
19893
- this.trace("Received server headers:\n" + headersString);
19894
19934
  this.httpStatusCode = headers[":status"];
19895
19935
  if (flags & http2.constants.NGHTTP2_FLAG_END_STREAM) {
19896
19936
  this.handleTrailers(headers);
@@ -19916,7 +19956,9 @@ var require_subchannel_call = __commonJS({
19916
19956
  if (this.statusOutput) {
19917
19957
  return;
19918
19958
  }
19919
- this.trace("receive HTTP/2 data frame of length " + data.length);
19959
+ if (this.traceEnabled) {
19960
+ this.trace("receive HTTP/2 data frame of length " + data.length);
19961
+ }
19920
19962
  let messages;
19921
19963
  try {
19922
19964
  messages = this.decoder.write(data);
@@ -19930,7 +19972,9 @@ var require_subchannel_call = __commonJS({
19930
19972
  return;
19931
19973
  }
19932
19974
  for (const message of messages) {
19933
- this.trace("parsed message of length " + message.length);
19975
+ if (this.traceEnabled) {
19976
+ this.trace("parsed message of length " + message.length);
19977
+ }
19934
19978
  this.callEventTracker.addMessageReceived();
19935
19979
  this.tryPush(message);
19936
19980
  }
@@ -19943,7 +19987,9 @@ var require_subchannel_call = __commonJS({
19943
19987
  this.serverEndedCall = true;
19944
19988
  process.nextTick(() => {
19945
19989
  var _a2;
19946
- this.trace("HTTP/2 stream closed with code " + http2Stream.rstCode);
19990
+ if (this.traceEnabled) {
19991
+ this.trace("HTTP/2 stream closed with code " + http2Stream.rstCode);
19992
+ }
19947
19993
  if (((_a2 = this.finalStatus) === null || _a2 === void 0 ? void 0 : _a2.code) === constants_1.Status.OK) {
19948
19994
  return;
19949
19995
  }
@@ -20011,7 +20057,9 @@ var require_subchannel_call = __commonJS({
20011
20057
  });
20012
20058
  http2Stream.on("error", (err) => {
20013
20059
  if (err.code !== "ERR_HTTP2_STREAM_ERROR") {
20014
- this.trace("Node error event: message=" + err.message + " code=" + err.code + " errno=" + getSystemErrorName(err.errno) + " syscall=" + err.syscall);
20060
+ if (this.traceEnabled) {
20061
+ this.trace("Node error event: message=" + err.message + " code=" + err.code + " errno=" + getSystemErrorName(err.errno) + " syscall=" + err.syscall);
20062
+ }
20015
20063
  this.internalError = err;
20016
20064
  }
20017
20065
  this.callEventTracker.onStreamEnd(false);
@@ -20033,7 +20081,9 @@ var require_subchannel_call = __commonJS({
20033
20081
  outputStatus() {
20034
20082
  if (!this.statusOutput) {
20035
20083
  this.statusOutput = true;
20036
- this.trace("ended with status: code=" + this.finalStatus.code + ' details="' + this.finalStatus.details + '"');
20084
+ if (this.traceEnabled) {
20085
+ this.trace("ended with status: code=" + this.finalStatus.code + ' details="' + this.finalStatus.details + '"');
20086
+ }
20037
20087
  this.callEventTracker.onCallEnd(this.finalStatus);
20038
20088
  process.nextTick(() => {
20039
20089
  this.listener.onReceiveStatus(this.finalStatus);
@@ -20041,8 +20091,13 @@ var require_subchannel_call = __commonJS({
20041
20091
  this.http2Stream.resume();
20042
20092
  }
20043
20093
  }
20094
+ get traceEnabled() {
20095
+ return logging.isTracerEnabled(TRACER_NAME);
20096
+ }
20044
20097
  trace(text) {
20045
- logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callId + "] " + text);
20098
+ if (this.traceEnabled) {
20099
+ logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callId + "] " + text);
20100
+ }
20046
20101
  }
20047
20102
  /**
20048
20103
  * On first call, emits a 'status' event with the given StatusObject.
@@ -20064,7 +20119,9 @@ var require_subchannel_call = __commonJS({
20064
20119
  }
20065
20120
  }
20066
20121
  push(message) {
20067
- this.trace("pushing to reader message of length " + (message instanceof Buffer ? message.length : null));
20122
+ if (this.traceEnabled) {
20123
+ this.trace("pushing to reader message of length " + (message instanceof Buffer ? message.length : null));
20124
+ }
20068
20125
  this.canPush = false;
20069
20126
  this.isPushPending = true;
20070
20127
  process.nextTick(() => {
@@ -20081,18 +20138,22 @@ var require_subchannel_call = __commonJS({
20081
20138
  this.http2Stream.pause();
20082
20139
  this.push(messageBytes);
20083
20140
  } else {
20084
- this.trace("unpushedReadMessages.push message of length " + messageBytes.length);
20141
+ if (this.traceEnabled) {
20142
+ this.trace("unpushedReadMessages.push message of length " + messageBytes.length);
20143
+ }
20085
20144
  this.unpushedReadMessages.push(messageBytes);
20086
20145
  }
20087
20146
  }
20088
20147
  handleTrailers(headers) {
20089
20148
  this.serverEndedCall = true;
20090
20149
  this.callEventTracker.onStreamEnd(true);
20091
- let headersString = "";
20092
- for (const header of Object.keys(headers)) {
20093
- headersString += " " + header + ": " + headers[header] + "\n";
20150
+ if (this.traceEnabled) {
20151
+ let headersString = "";
20152
+ for (const header of Object.keys(headers)) {
20153
+ headersString += " " + header + ": " + headers[header] + "\n";
20154
+ }
20155
+ this.trace("Received server trailers:\n" + headersString);
20094
20156
  }
20095
- this.trace("Received server trailers:\n" + headersString);
20096
20157
  let metadata;
20097
20158
  try {
20098
20159
  metadata = metadata_1.Metadata.fromHttp2Headers(headers);
@@ -20103,7 +20164,9 @@ var require_subchannel_call = __commonJS({
20103
20164
  let status7;
20104
20165
  if (typeof metadataMap["grpc-status"] === "string") {
20105
20166
  const receivedStatus = Number(metadataMap["grpc-status"]);
20106
- this.trace("received status code " + receivedStatus + " from server");
20167
+ if (this.traceEnabled) {
20168
+ this.trace("received status code " + receivedStatus + " from server");
20169
+ }
20107
20170
  metadata.remove("grpc-status");
20108
20171
  let details = "";
20109
20172
  if (typeof metadataMap["grpc-message"] === "string") {
@@ -20113,7 +20176,9 @@ var require_subchannel_call = __commonJS({
20113
20176
  details = metadataMap["grpc-message"];
20114
20177
  }
20115
20178
  metadata.remove("grpc-message");
20116
- this.trace('received status details string "' + details + '" from server');
20179
+ if (this.traceEnabled) {
20180
+ this.trace('received status details string "' + details + '" from server');
20181
+ }
20117
20182
  }
20118
20183
  status7 = {
20119
20184
  code: receivedStatus,
@@ -20138,7 +20203,9 @@ var require_subchannel_call = __commonJS({
20138
20203
  return;
20139
20204
  }
20140
20205
  if (this.serverEndedCall) {
20141
- this.http2Stream.end();
20206
+ if (!this.http2Stream.writableEnded) {
20207
+ this.http2Stream.end();
20208
+ }
20142
20209
  } else {
20143
20210
  let code;
20144
20211
  if (((_a = this.finalStatus) === null || _a === void 0 ? void 0 : _a.code) === constants_1.Status.OK) {
@@ -20146,12 +20213,16 @@ var require_subchannel_call = __commonJS({
20146
20213
  } else {
20147
20214
  code = http2.constants.NGHTTP2_CANCEL;
20148
20215
  }
20149
- this.trace("close http2 stream with code " + code);
20216
+ if (this.traceEnabled) {
20217
+ this.trace("close http2 stream with code " + code);
20218
+ }
20150
20219
  this.http2Stream.close(code);
20151
20220
  }
20152
20221
  }
20153
20222
  cancelWithStatus(status7, details) {
20154
- this.trace("cancelWithStatus code: " + status7 + ' details: "' + details + '"');
20223
+ if (this.traceEnabled) {
20224
+ this.trace("cancelWithStatus code: " + status7 + ' details: "' + details + '"');
20225
+ }
20155
20226
  this.endCall({ code: status7, details, metadata: new metadata_1.Metadata() });
20156
20227
  }
20157
20228
  getStatus() {
@@ -20181,7 +20252,9 @@ var require_subchannel_call = __commonJS({
20181
20252
  this.http2Stream.resume();
20182
20253
  }
20183
20254
  sendMessageWithContext(context, message) {
20184
- this.trace("write() called with message of length " + message.length);
20255
+ if (this.traceEnabled) {
20256
+ this.trace("write() called with message of length " + message.length);
20257
+ }
20185
20258
  const cb = (error) => {
20186
20259
  process.nextTick(() => {
20187
20260
  var _a;
@@ -20195,7 +20268,9 @@ var require_subchannel_call = __commonJS({
20195
20268
  (_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context);
20196
20269
  });
20197
20270
  };
20198
- this.trace("sending data chunk of length " + message.length);
20271
+ if (this.traceEnabled) {
20272
+ this.trace("sending data chunk of length " + message.length);
20273
+ }
20199
20274
  this.callEventTracker.addMessageSent();
20200
20275
  try {
20201
20276
  this.http2Stream.write(message, cb);
@@ -20209,6 +20284,9 @@ var require_subchannel_call = __commonJS({
20209
20284
  }
20210
20285
  halfClose() {
20211
20286
  this.trace("end() called");
20287
+ if (this.http2Stream.destroyed || this.http2Stream.writableEnded) {
20288
+ return;
20289
+ }
20212
20290
  this.trace("calling end() on HTTP/2 stream");
20213
20291
  this.http2Stream.end();
20214
20292
  }
@@ -20217,9 +20295,9 @@ var require_subchannel_call = __commonJS({
20217
20295
  }
20218
20296
  });
20219
20297
 
20220
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/transport.js
20298
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/transport.js
20221
20299
  var require_transport = __commonJS({
20222
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/transport.js"(exports) {
20300
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/transport.js"(exports) {
20223
20301
  "use strict";
20224
20302
  Object.defineProperty(exports, "__esModule", { value: true });
20225
20303
  exports.Http2SubchannelConnector = void 0;
@@ -20294,18 +20372,24 @@ var require_transport = __commonJS({
20294
20372
  if (errorCode2 === http2.constants.NGHTTP2_ENHANCE_YOUR_CALM && opaqueData && opaqueData.equals(tooManyPingsData)) {
20295
20373
  tooManyPings = true;
20296
20374
  }
20297
- this.trace("connection closed by GOAWAY with code " + errorCode2 + " and data " + (opaqueData === null || opaqueData === void 0 ? void 0 : opaqueData.toString()));
20375
+ if (this.traceEnabled) {
20376
+ this.trace("connection closed by GOAWAY with code " + errorCode2 + " and data " + (opaqueData === null || opaqueData === void 0 ? void 0 : opaqueData.toString()));
20377
+ }
20298
20378
  this.reportDisconnectToOwner(tooManyPings);
20299
20379
  });
20300
20380
  session.once("error", (error) => {
20301
- this.trace("connection closed with error " + error.message);
20381
+ if (this.traceEnabled) {
20382
+ this.trace("connection closed with error " + error.message);
20383
+ }
20302
20384
  this.handleDisconnect();
20303
20385
  });
20304
20386
  session.socket.once("close", (hadError) => {
20305
- this.trace("connection closed. hadError=" + hadError);
20387
+ if (this.traceEnabled) {
20388
+ this.trace("connection closed. hadError=" + hadError);
20389
+ }
20306
20390
  this.handleDisconnect();
20307
20391
  });
20308
- if (logging.isTracerEnabled(TRACER_NAME)) {
20392
+ if (this.traceEnabled) {
20309
20393
  session.on("remoteSettings", (settings) => {
20310
20394
  this.trace("new settings received" + (this.session !== session ? " on the old connection" : "") + ": " + JSON.stringify(settings));
20311
20395
  });
@@ -20316,7 +20400,7 @@ var require_transport = __commonJS({
20316
20400
  if (this.keepaliveWithoutCalls) {
20317
20401
  this.maybeStartKeepalivePingTimer();
20318
20402
  }
20319
- if (session.socket instanceof tls_1.TLSSocket) {
20403
+ if (session.socket instanceof tls_1.TLSSocket && session.socket.authorized) {
20320
20404
  this.authContext = {
20321
20405
  transportSecurityType: "ssl",
20322
20406
  sslPeerCertificate: session.socket.getPeerCertificate()
@@ -20365,17 +20449,37 @@ var require_transport = __commonJS({
20365
20449
  };
20366
20450
  return socketInfo;
20367
20451
  }
20452
+ get traceEnabled() {
20453
+ return logging.isTracerEnabled(TRACER_NAME);
20454
+ }
20455
+ get keepaliveTraceEnabled() {
20456
+ return logging.isTracerEnabled("keepalive");
20457
+ }
20458
+ get flowControlTraceEnabled() {
20459
+ return logging.isTracerEnabled(FLOW_CONTROL_TRACER_NAME);
20460
+ }
20461
+ get internalsTraceEnabled() {
20462
+ return logging.isTracerEnabled("transport_internals");
20463
+ }
20368
20464
  trace(text) {
20369
- logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
20465
+ if (this.traceEnabled) {
20466
+ logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
20467
+ }
20370
20468
  }
20371
20469
  keepaliveTrace(text) {
20372
- logging.trace(constants_1.LogVerbosity.DEBUG, "keepalive", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
20470
+ if (this.keepaliveTraceEnabled) {
20471
+ logging.trace(constants_1.LogVerbosity.DEBUG, "keepalive", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
20472
+ }
20373
20473
  }
20374
20474
  flowControlTrace(text) {
20375
- logging.trace(constants_1.LogVerbosity.DEBUG, FLOW_CONTROL_TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
20475
+ if (this.flowControlTraceEnabled) {
20476
+ logging.trace(constants_1.LogVerbosity.DEBUG, FLOW_CONTROL_TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
20477
+ }
20376
20478
  }
20377
20479
  internalsTrace(text) {
20378
- logging.trace(constants_1.LogVerbosity.DEBUG, "transport_internals", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
20480
+ if (this.internalsTraceEnabled) {
20481
+ logging.trace(constants_1.LogVerbosity.DEBUG, "transport_internals", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text);
20482
+ }
20379
20483
  }
20380
20484
  /**
20381
20485
  * Indicate to the owner of this object that this transport should no longer
@@ -20425,7 +20529,9 @@ var require_transport = __commonJS({
20425
20529
  if (this.channelzEnabled) {
20426
20530
  this.keepalivesSent += 1;
20427
20531
  }
20428
- this.keepaliveTrace("Sending ping with timeout " + this.keepaliveTimeoutMs + "ms");
20532
+ if (this.keepaliveTraceEnabled) {
20533
+ this.keepaliveTrace("Sending ping with timeout " + this.keepaliveTimeoutMs + "ms");
20534
+ }
20429
20535
  this.keepaliveTimer = setTimeout(() => {
20430
20536
  this.keepaliveTimer = null;
20431
20537
  this.keepaliveTrace("Ping timeout passed without response");
@@ -20437,7 +20543,9 @@ var require_transport = __commonJS({
20437
20543
  const pingSentSuccessfully = this.session.ping((err, duration, payload) => {
20438
20544
  this.clearKeepaliveTimeout();
20439
20545
  if (err) {
20440
- this.keepaliveTrace("Ping failed with error " + err.message);
20546
+ if (this.keepaliveTraceEnabled) {
20547
+ this.keepaliveTrace("Ping failed with error " + err.message);
20548
+ }
20441
20549
  this.handleDisconnect();
20442
20550
  } else {
20443
20551
  this.keepaliveTrace("Received ping response");
@@ -20451,7 +20559,9 @@ var require_transport = __commonJS({
20451
20559
  pingSendError = (e instanceof Error ? e.message : "") || "Unknown error";
20452
20560
  }
20453
20561
  if (pingSendError) {
20454
- this.keepaliveTrace("Ping send failed: " + pingSendError);
20562
+ if (this.keepaliveTraceEnabled) {
20563
+ this.keepaliveTrace("Ping send failed: " + pingSendError);
20564
+ }
20455
20565
  this.handleDisconnect();
20456
20566
  }
20457
20567
  }
@@ -20502,7 +20612,7 @@ var require_transport = __commonJS({
20502
20612
  }
20503
20613
  }
20504
20614
  }
20505
- createCall(metadata, host, method, listener, subchannelCallStatsTracker) {
20615
+ createCall(metadata, host, method, listener, subchannelCallStatsTracker, callId) {
20506
20616
  const headers = metadata.toHttp2Headers();
20507
20617
  headers[HTTP2_HEADER_AUTHORITY] = host;
20508
20618
  headers[HTTP2_HEADER_USER_AGENT] = this.userAgent;
@@ -20517,8 +20627,12 @@ var require_transport = __commonJS({
20517
20627
  this.handleDisconnect();
20518
20628
  throw e;
20519
20629
  }
20520
- this.flowControlTrace("local window size: " + this.session.state.localWindowSize + " remote window size: " + this.session.state.remoteWindowSize);
20521
- this.internalsTrace("session.closed=" + this.session.closed + " session.destroyed=" + this.session.destroyed + " session.socket.destroyed=" + this.session.socket.destroyed);
20630
+ if (this.flowControlTraceEnabled) {
20631
+ this.flowControlTrace("local window size: " + this.session.state.localWindowSize + " remote window size: " + this.session.state.remoteWindowSize);
20632
+ }
20633
+ if (this.internalsTraceEnabled) {
20634
+ this.internalsTrace("session.closed=" + this.session.closed + " session.destroyed=" + this.session.destroyed + " session.socket.destroyed=" + this.session.socket.destroyed);
20635
+ }
20522
20636
  let eventTracker;
20523
20637
  let call;
20524
20638
  if (this.channelzEnabled) {
@@ -20572,7 +20686,7 @@ var require_transport = __commonJS({
20572
20686
  }
20573
20687
  };
20574
20688
  }
20575
- call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, (0, call_number_1.getNextCallNumber)());
20689
+ call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, callId !== null && callId !== void 0 ? callId : (0, call_number_1.getNextCallNumber)());
20576
20690
  this.addActiveCall(call);
20577
20691
  return call;
20578
20692
  }
@@ -20599,8 +20713,13 @@ var require_transport = __commonJS({
20599
20713
  this.session = null;
20600
20714
  this.isShutdown = false;
20601
20715
  }
20716
+ get traceEnabled() {
20717
+ return logging.isTracerEnabled(TRACER_NAME);
20718
+ }
20602
20719
  trace(text) {
20603
- logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, (0, uri_parser_1.uriToString)(this.channelTarget) + " " + text);
20720
+ if (this.traceEnabled) {
20721
+ logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, (0, uri_parser_1.uriToString)(this.channelTarget) + " " + text);
20722
+ }
20604
20723
  }
20605
20724
  createSession(secureConnectResult, address, options) {
20606
20725
  if (this.isShutdown) {
@@ -20637,7 +20756,9 @@ var require_transport = __commonJS({
20637
20756
  var _a2;
20638
20757
  (_a2 = this.session) === null || _a2 === void 0 ? void 0 : _a2.destroy();
20639
20758
  errorMessage = error.message;
20640
- this.trace("connection failed with error " + errorMessage);
20759
+ if (this.traceEnabled) {
20760
+ this.trace("connection failed with error " + errorMessage);
20761
+ }
20641
20762
  if (!reportedError) {
20642
20763
  reportedError = true;
20643
20764
  reject(`${errorMessage} (${(/* @__PURE__ */ new Date()).toISOString()})`);
@@ -20718,14 +20839,22 @@ var require_transport = __commonJS({
20718
20839
  let secureConnectResult = null;
20719
20840
  const addressString = (0, subchannel_address_1.subchannelAddressToString)(address);
20720
20841
  try {
20721
- this.trace(addressString + " Waiting for secureConnector to be ready");
20842
+ if (this.traceEnabled) {
20843
+ this.trace(addressString + " Waiting for secureConnector to be ready");
20844
+ }
20722
20845
  await secureConnector.waitForReady();
20723
- this.trace(addressString + " secureConnector is ready");
20846
+ if (this.traceEnabled) {
20847
+ this.trace(addressString + " secureConnector is ready");
20848
+ }
20724
20849
  tcpConnection = await this.tcpConnect(address, options);
20725
20850
  tcpConnection.setNoDelay();
20726
- this.trace(addressString + " Established TCP connection");
20851
+ if (this.traceEnabled) {
20852
+ this.trace(addressString + " Established TCP connection");
20853
+ }
20727
20854
  secureConnectResult = await secureConnector.connect(tcpConnection);
20728
- this.trace(addressString + " Established secure connection");
20855
+ if (this.traceEnabled) {
20856
+ this.trace(addressString + " Established secure connection");
20857
+ }
20729
20858
  return this.createSession(secureConnectResult, address, options);
20730
20859
  } catch (e) {
20731
20860
  tcpConnection === null || tcpConnection === void 0 ? void 0 : tcpConnection.destroy();
@@ -20744,9 +20873,9 @@ var require_transport = __commonJS({
20744
20873
  }
20745
20874
  });
20746
20875
 
20747
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js
20876
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js
20748
20877
  var require_subchannel_pool = __commonJS({
20749
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js"(exports) {
20878
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js"(exports) {
20750
20879
  "use strict";
20751
20880
  Object.defineProperty(exports, "__esModule", { value: true });
20752
20881
  exports.SubchannelPool = void 0;
@@ -20842,9 +20971,9 @@ var require_subchannel_pool = __commonJS({
20842
20971
  }
20843
20972
  });
20844
20973
 
20845
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js
20974
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js
20846
20975
  var require_load_balancing_call = __commonJS({
20847
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js"(exports) {
20976
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js"(exports) {
20848
20977
  "use strict";
20849
20978
  Object.defineProperty(exports, "__esModule", { value: true });
20850
20979
  exports.LoadBalancingCall = void 0;
@@ -20906,17 +21035,28 @@ var require_load_balancing_call = __commonJS({
20906
21035
  }
20907
21036
  return deadlineInfo;
20908
21037
  }
21038
+ get traceEnabled() {
21039
+ return logging.isTracerEnabled(TRACER_NAME);
21040
+ }
20909
21041
  trace(text) {
20910
- logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text);
21042
+ if (this.traceEnabled) {
21043
+ logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text);
21044
+ }
21045
+ }
21046
+ getSubchannelString(subchannel) {
21047
+ return subchannel ? "(" + subchannel.getChannelzRef().id + ") " + subchannel.getAddress() : "" + subchannel;
20911
21048
  }
20912
21049
  outputStatus(status7, progress) {
20913
21050
  var _a, _b;
20914
21051
  if (!this.ended) {
20915
21052
  this.ended = true;
20916
- this.trace("ended with status: code=" + status7.code + ' details="' + status7.details + '" start time=' + this.startTime.toISOString());
21053
+ if (this.traceEnabled) {
21054
+ this.trace("ended with status: code=" + status7.code + ' details="' + status7.details + '" start time=' + this.startTime.toISOString());
21055
+ }
20917
21056
  const finalStatus = Object.assign(Object.assign({}, status7), { progress });
20918
21057
  (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(finalStatus);
20919
21058
  (_b = this.onCallEnded) === null || _b === void 0 ? void 0 : _b.call(this, finalStatus.code, finalStatus.details, finalStatus.metadata);
21059
+ this.channel.removeCallFromPickQueue(this);
20920
21060
  }
20921
21061
  }
20922
21062
  doPick() {
@@ -20930,8 +21070,9 @@ var require_load_balancing_call = __commonJS({
20930
21070
  this.trace("Pick called");
20931
21071
  const finalMetadata = this.metadata.clone();
20932
21072
  const pickResult = this.channel.doPick(finalMetadata, this.callConfig.pickInformation);
20933
- const subchannelString = pickResult.subchannel ? "(" + pickResult.subchannel.getChannelzRef().id + ") " + pickResult.subchannel.getAddress() : "" + pickResult.subchannel;
20934
- this.trace("Pick result: " + picker_1.PickResultType[pickResult.pickResultType] + " subchannel: " + subchannelString + " status: " + ((_a = pickResult.status) === null || _a === void 0 ? void 0 : _a.code) + " " + ((_b = pickResult.status) === null || _b === void 0 ? void 0 : _b.details));
21073
+ if (this.traceEnabled) {
21074
+ this.trace("Pick result: " + picker_1.PickResultType[pickResult.pickResultType] + " subchannel: " + this.getSubchannelString(pickResult.subchannel) + " status: " + ((_a = pickResult.status) === null || _a === void 0 ? void 0 : _a.code) + " " + ((_b = pickResult.status) === null || _b === void 0 ? void 0 : _b.details));
21075
+ }
20935
21076
  switch (pickResult.pickResultType) {
20936
21077
  case picker_1.PickResultType.COMPLETE:
20937
21078
  const combinedCallCredentials = this.credentials.compose(pickResult.subchannel.getCallCredentials());
@@ -20950,7 +21091,9 @@ var require_load_balancing_call = __commonJS({
20950
21091
  }, "PROCESSED");
20951
21092
  }
20952
21093
  if (pickResult.subchannel.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) {
20953
- this.trace("Picked subchannel " + subchannelString + " has state " + connectivity_state_1.ConnectivityState[pickResult.subchannel.getConnectivityState()] + " after getting credentials metadata. Retrying pick");
21094
+ if (this.traceEnabled) {
21095
+ this.trace("Picked subchannel " + this.getSubchannelString(pickResult.subchannel) + " has state " + connectivity_state_1.ConnectivityState[pickResult.subchannel.getConnectivityState()] + " after getting credentials metadata. Retrying pick");
21096
+ }
20954
21097
  this.doPick();
20955
21098
  return;
20956
21099
  }
@@ -20975,10 +21118,12 @@ var require_load_balancing_call = __commonJS({
20975
21118
  this.outputStatus(status7, "PROCESSED");
20976
21119
  }
20977
21120
  }
20978
- });
21121
+ }, this.callNumber);
20979
21122
  this.childStartTime = /* @__PURE__ */ new Date();
20980
21123
  } catch (error) {
20981
- this.trace("Failed to start call on picked subchannel " + subchannelString + " with error " + error.message);
21124
+ if (this.traceEnabled) {
21125
+ this.trace("Failed to start call on picked subchannel " + this.getSubchannelString(pickResult.subchannel) + " with error " + error.message);
21126
+ }
20982
21127
  this.outputStatus({
20983
21128
  code: constants_1.Status.INTERNAL,
20984
21129
  details: "Failed to start HTTP/2 stream with error " + error.message,
@@ -20988,7 +21133,9 @@ var require_load_balancing_call = __commonJS({
20988
21133
  }
20989
21134
  (_a2 = pickResult.onCallStarted) === null || _a2 === void 0 ? void 0 : _a2.call(pickResult);
20990
21135
  this.onCallEnded = pickResult.onCallEnded;
20991
- this.trace("Created child call [" + this.child.getCallNumber() + "]");
21136
+ if (this.traceEnabled) {
21137
+ this.trace("Created child call [" + this.child.getCallNumber() + "]");
21138
+ }
20992
21139
  if (this.readPending) {
20993
21140
  this.child.startRead();
20994
21141
  }
@@ -21029,7 +21176,9 @@ var require_load_balancing_call = __commonJS({
21029
21176
  }
21030
21177
  cancelWithStatus(status7, details) {
21031
21178
  var _a;
21032
- this.trace("cancelWithStatus code: " + status7 + ' details: "' + details + '"');
21179
+ if (this.traceEnabled) {
21180
+ this.trace("cancelWithStatus code: " + status7 + ' details: "' + details + '"');
21181
+ }
21033
21182
  (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status7, details);
21034
21183
  this.outputStatus({ code: status7, details, metadata: new metadata_1.Metadata() }, "PROCESSED");
21035
21184
  }
@@ -21044,7 +21193,9 @@ var require_load_balancing_call = __commonJS({
21044
21193
  this.doPick();
21045
21194
  }
21046
21195
  sendMessageWithContext(context, message) {
21047
- this.trace("write() called with message of length " + message.length);
21196
+ if (this.traceEnabled) {
21197
+ this.trace("write() called with message of length " + message.length);
21198
+ }
21048
21199
  if (this.child) {
21049
21200
  this.child.sendMessageWithContext(context, message);
21050
21201
  } else {
@@ -21085,9 +21236,9 @@ var require_load_balancing_call = __commonJS({
21085
21236
  }
21086
21237
  });
21087
21238
 
21088
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolving-call.js
21239
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-call.js
21089
21240
  var require_resolving_call = __commonJS({
21090
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolving-call.js"(exports) {
21241
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-call.js"(exports) {
21091
21242
  "use strict";
21092
21243
  Object.defineProperty(exports, "__esModule", { value: true });
21093
21244
  exports.ResolvingCall = void 0;
@@ -21131,23 +21282,34 @@ var require_resolving_call = __commonJS({
21131
21282
  });
21132
21283
  }
21133
21284
  if (options.flags & constants_1.Propagate.DEADLINE) {
21134
- this.trace("Propagating deadline from parent: " + options.parentCall.getDeadline());
21285
+ if (this.traceEnabled) {
21286
+ this.trace("Propagating deadline from parent: " + options.parentCall.getDeadline());
21287
+ }
21135
21288
  this.deadline = (0, deadline_1.minDeadline)(this.deadline, options.parentCall.getDeadline());
21136
21289
  }
21137
21290
  }
21138
21291
  this.trace("Created");
21139
21292
  this.runDeadlineTimer();
21140
21293
  }
21294
+ get traceEnabled() {
21295
+ return logging.isTracerEnabled(TRACER_NAME);
21296
+ }
21141
21297
  trace(text) {
21142
- logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text);
21298
+ if (this.traceEnabled) {
21299
+ logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text);
21300
+ }
21143
21301
  }
21144
21302
  runDeadlineTimer() {
21145
21303
  clearTimeout(this.deadlineTimer);
21146
21304
  this.deadlineStartTime = /* @__PURE__ */ new Date();
21147
- this.trace("Deadline: " + (0, deadline_1.deadlineToString)(this.deadline));
21305
+ if (this.traceEnabled) {
21306
+ this.trace("Deadline: " + (0, deadline_1.deadlineToString)(this.deadline));
21307
+ }
21148
21308
  const timeout = (0, deadline_1.getRelativeTimeout)(this.deadline);
21149
21309
  if (timeout !== Infinity) {
21150
- this.trace("Deadline will be reached in " + timeout + "ms");
21310
+ if (this.traceEnabled) {
21311
+ this.trace("Deadline will be reached in " + timeout + "ms");
21312
+ }
21151
21313
  const handleDeadline = () => {
21152
21314
  if (!this.deadlineStartTime) {
21153
21315
  this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, "Deadline exceeded");
@@ -21190,7 +21352,9 @@ var require_resolving_call = __commonJS({
21190
21352
  }
21191
21353
  clearTimeout(this.deadlineTimer);
21192
21354
  const filteredStatus = this.filterStack.receiveTrailers(status7);
21193
- this.trace("ended with status: code=" + filteredStatus.code + ' details="' + filteredStatus.details + '"');
21355
+ if (this.traceEnabled) {
21356
+ this.trace("ended with status: code=" + filteredStatus.code + ' details="' + filteredStatus.details + '"');
21357
+ }
21194
21358
  this.statusWatchers.forEach((watcher) => watcher(filteredStatus));
21195
21359
  process.nextTick(() => {
21196
21360
  var _a;
@@ -21211,7 +21375,8 @@ var require_resolving_call = __commonJS({
21211
21375
  child.halfClose();
21212
21376
  }
21213
21377
  }, (status7) => {
21214
- this.cancelWithStatus(status7.code, status7.details);
21378
+ var _a, _b;
21379
+ this.cancelWithStatus((_a = status7.code) !== null && _a !== void 0 ? _a : constants_1.Status.INTERNAL, (_b = status7.details) !== null && _b !== void 0 ? _b : "Failed to write message");
21215
21380
  });
21216
21381
  }
21217
21382
  getConfig() {
@@ -21254,8 +21419,10 @@ var require_resolving_call = __commonJS({
21254
21419
  this.filterStackFactory.push(config.dynamicFilterFactories);
21255
21420
  this.filterStack = this.filterStackFactory.createFilter();
21256
21421
  this.filterStack.sendMetadata(Promise.resolve(this.metadata)).then((filteredMetadata) => {
21257
- this.child = this.channel.createRetryingCall(config, this.method, this.host, this.credentials, this.deadline);
21258
- this.trace("Created child [" + this.child.getCallNumber() + "]");
21422
+ this.child = this.channel.createRetryingCall(config, this.method, this.host, this.credentials, this.deadline, this.callNumber);
21423
+ if (this.traceEnabled) {
21424
+ this.trace("Created child [" + this.child.getCallNumber() + "]");
21425
+ }
21259
21426
  this.childStartTime = /* @__PURE__ */ new Date();
21260
21427
  this.child.start(filteredMetadata, {
21261
21428
  onReceiveMetadata: (metadata) => {
@@ -21307,7 +21474,9 @@ var require_resolving_call = __commonJS({
21307
21474
  }
21308
21475
  cancelWithStatus(status7, details) {
21309
21476
  var _a;
21310
- this.trace("cancelWithStatus code: " + status7 + ' details: "' + details + '"');
21477
+ if (this.traceEnabled) {
21478
+ this.trace("cancelWithStatus code: " + status7 + ' details: "' + details + '"');
21479
+ }
21311
21480
  (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status7, details);
21312
21481
  this.outputStatus({
21313
21482
  code: status7,
@@ -21326,7 +21495,9 @@ var require_resolving_call = __commonJS({
21326
21495
  this.getConfig();
21327
21496
  }
21328
21497
  sendMessageWithContext(context, message) {
21329
- this.trace("write() called with message of length " + message.length);
21498
+ if (this.traceEnabled) {
21499
+ this.trace("write() called with message of length " + message.length);
21500
+ }
21330
21501
  if (this.child) {
21331
21502
  this.sendMessageOnChild(context, message);
21332
21503
  } else {
@@ -21370,9 +21541,9 @@ var require_resolving_call = __commonJS({
21370
21541
  }
21371
21542
  });
21372
21543
 
21373
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/retrying-call.js
21544
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/retrying-call.js
21374
21545
  var require_retrying_call = __commonJS({
21375
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/retrying-call.js"(exports) {
21546
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/retrying-call.js"(exports) {
21376
21547
  "use strict";
21377
21548
  Object.defineProperty(exports, "__esModule", { value: true });
21378
21549
  exports.RetryingCall = exports.MessageBufferTracker = exports.RetryThrottler = void 0;
@@ -21380,6 +21551,7 @@ var require_retrying_call = __commonJS({
21380
21551
  var deadline_1 = require_deadline();
21381
21552
  var metadata_1 = require_metadata();
21382
21553
  var logging = require_logging();
21554
+ var call_number_1 = require_call_number();
21383
21555
  var TRACER_NAME = "retrying_call";
21384
21556
  var RetryThrottler = class {
21385
21557
  constructor(maxTokens, tokenRatio, previousRetryThrottler) {
@@ -21504,11 +21676,18 @@ var require_retrying_call = __commonJS({
21504
21676
  getCallNumber() {
21505
21677
  return this.callNumber;
21506
21678
  }
21679
+ get traceEnabled() {
21680
+ return logging.isTracerEnabled(TRACER_NAME);
21681
+ }
21507
21682
  trace(text) {
21508
- logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text);
21683
+ if (this.traceEnabled) {
21684
+ logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text);
21685
+ }
21509
21686
  }
21510
21687
  reportStatus(statusObject) {
21511
- this.trace("ended with status: code=" + statusObject.code + ' details="' + statusObject.details + '" start time=' + this.startTime.toISOString());
21688
+ if (this.traceEnabled) {
21689
+ this.trace("ended with status: code=" + statusObject.code + ' details="' + statusObject.details + '" start time=' + this.startTime.toISOString());
21690
+ }
21512
21691
  this.bufferTracker.freeAll(this.callNumber);
21513
21692
  this.writeBufferOffset = this.writeBufferOffset + this.writeBuffer.length;
21514
21693
  this.writeBuffer = [];
@@ -21522,7 +21701,9 @@ var require_retrying_call = __commonJS({
21522
21701
  });
21523
21702
  }
21524
21703
  cancelWithStatus(status7, details) {
21525
- this.trace("cancelWithStatus code: " + status7 + ' details: "' + details + '"');
21704
+ if (this.traceEnabled) {
21705
+ this.trace("cancelWithStatus code: " + status7 + ' details: "' + details + '"');
21706
+ }
21526
21707
  this.reportStatus({ code: status7, details, metadata: new metadata_1.Metadata() });
21527
21708
  for (const { call } of this.underlyingCalls) {
21528
21709
  call.cancelWithStatus(status7, details);
@@ -21569,7 +21750,9 @@ var require_retrying_call = __commonJS({
21569
21750
  if (this.state === "COMMITTED") {
21570
21751
  return;
21571
21752
  }
21572
- this.trace("Committing call [" + this.underlyingCalls[index].call.getCallNumber() + "] at index " + index);
21753
+ if (this.traceEnabled) {
21754
+ this.trace("Committing call [" + this.underlyingCalls[index].call.getCallNumber() + "] at index " + index);
21755
+ }
21573
21756
  this.state = "COMMITTED";
21574
21757
  (_b = (_a = this.callConfig).onCommitted) === null || _b === void 0 ? void 0 : _b.call(_a);
21575
21758
  this.committedCallIndex = index;
@@ -21736,7 +21919,9 @@ var require_retrying_call = __commonJS({
21736
21919
  if (this.underlyingCalls[callIndex].state === "COMPLETED") {
21737
21920
  return;
21738
21921
  }
21739
- this.trace("state=" + this.state + " handling status with progress " + status7.progress + " from child [" + this.underlyingCalls[callIndex].call.getCallNumber() + "] in state " + this.underlyingCalls[callIndex].state);
21922
+ if (this.traceEnabled) {
21923
+ this.trace("state=" + this.state + " handling status with progress " + status7.progress + " from child [" + this.underlyingCalls[callIndex].call.getCallNumber() + "] in state " + this.underlyingCalls[callIndex].state);
21924
+ }
21740
21925
  this.underlyingCalls[callIndex].state = "COMPLETED";
21741
21926
  if (status7.code === constants_1.Status.OK) {
21742
21927
  (_a = this.retryThrottler) === null || _a === void 0 ? void 0 : _a.addCallSucceeded();
@@ -21812,8 +21997,11 @@ var require_retrying_call = __commonJS({
21812
21997
  (_c = (_b = this.hedgingTimer).unref) === null || _c === void 0 ? void 0 : _c.call(_b);
21813
21998
  }
21814
21999
  startNewAttempt() {
21815
- const child = this.channel.createLoadBalancingCall(this.callConfig, this.methodName, this.host, this.credentials, this.deadline);
21816
- this.trace("Created child call [" + child.getCallNumber() + "] for attempt " + this.attempts);
22000
+ const childCallNumber = this.underlyingCalls.length > 0 ? (0, call_number_1.getNextCallNumber)() : this.callNumber;
22001
+ const child = this.channel.createLoadBalancingCall(this.callConfig, this.methodName, this.host, this.credentials, this.deadline, childCallNumber);
22002
+ if (this.traceEnabled) {
22003
+ this.trace("Created child call [" + child.getCallNumber() + "] for attempt " + this.attempts);
22004
+ }
21817
22005
  const index = this.underlyingCalls.length;
21818
22006
  this.underlyingCalls.push({
21819
22007
  state: "ACTIVE",
@@ -21829,7 +22017,9 @@ var require_retrying_call = __commonJS({
21829
22017
  let receivedMetadata = false;
21830
22018
  child.start(initialMetadata, {
21831
22019
  onReceiveMetadata: (metadata) => {
21832
- this.trace("Received metadata from child [" + child.getCallNumber() + "]");
22020
+ if (this.traceEnabled) {
22021
+ this.trace("Received metadata from child [" + child.getCallNumber() + "]");
22022
+ }
21833
22023
  this.commitCall(index);
21834
22024
  receivedMetadata = true;
21835
22025
  if (previousAttempts > 0) {
@@ -21840,14 +22030,18 @@ var require_retrying_call = __commonJS({
21840
22030
  }
21841
22031
  },
21842
22032
  onReceiveMessage: (message) => {
21843
- this.trace("Received message from child [" + child.getCallNumber() + "]");
22033
+ if (this.traceEnabled) {
22034
+ this.trace("Received message from child [" + child.getCallNumber() + "]");
22035
+ }
21844
22036
  this.commitCall(index);
21845
22037
  if (this.underlyingCalls[index].state === "ACTIVE") {
21846
22038
  this.listener.onReceiveMessage(message);
21847
22039
  }
21848
22040
  },
21849
22041
  onReceiveStatus: (status7) => {
21850
- this.trace("Received status from child [" + child.getCallNumber() + "]");
22042
+ if (this.traceEnabled) {
22043
+ this.trace("Received status from child [" + child.getCallNumber() + "]");
22044
+ }
21851
22045
  if (!receivedMetadata && previousAttempts > 0) {
21852
22046
  status7.metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`);
21853
22047
  }
@@ -21892,7 +22086,9 @@ var require_retrying_call = __commonJS({
21892
22086
  }, bufferEntry.message.message);
21893
22087
  const nextEntry = this.getBufferEntry(messageIndex + 1);
21894
22088
  if (nextEntry.entryType === "HALF_CLOSE") {
21895
- this.trace("Sending halfClose immediately after message to child [" + childCall.call.getCallNumber() + "] - optimizing for unary/final message");
22089
+ if (this.traceEnabled) {
22090
+ this.trace("Sending halfClose immediately after message to child [" + childCall.call.getCallNumber() + "] - optimizing for unary/final message");
22091
+ }
21896
22092
  childCall.nextMessageToSend += 1;
21897
22093
  childCall.call.halfClose();
21898
22094
  }
@@ -21907,7 +22103,9 @@ var require_retrying_call = __commonJS({
21907
22103
  }
21908
22104
  }
21909
22105
  sendMessageWithContext(context, message) {
21910
- this.trace("write() called with message of length " + message.length);
22106
+ if (this.traceEnabled) {
22107
+ this.trace("write() called with message of length " + message.length);
22108
+ }
21911
22109
  const writeObj = {
21912
22110
  message,
21913
22111
  flags: context.flags
@@ -21968,7 +22166,9 @@ var require_retrying_call = __commonJS({
21968
22166
  for (const call of this.underlyingCalls) {
21969
22167
  if ((call === null || call === void 0 ? void 0 : call.state) === "ACTIVE") {
21970
22168
  if (call.nextMessageToSend === halfCloseIndex || call.nextMessageToSend === halfCloseIndex - 1) {
21971
- this.trace("Sending halfClose immediately to child [" + call.call.getCallNumber() + "] - all messages already sent");
22169
+ if (this.traceEnabled) {
22170
+ this.trace("Sending halfClose immediately to child [" + call.call.getCallNumber() + "] - all messages already sent");
22171
+ }
21972
22172
  call.nextMessageToSend += 1;
21973
22173
  call.call.halfClose();
21974
22174
  }
@@ -21996,9 +22196,9 @@ var require_retrying_call = __commonJS({
21996
22196
  }
21997
22197
  });
21998
22198
 
21999
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js
22199
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js
22000
22200
  var require_subchannel_interface = __commonJS({
22001
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js"(exports) {
22201
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js"(exports) {
22002
22202
  "use strict";
22003
22203
  Object.defineProperty(exports, "__esModule", { value: true });
22004
22204
  exports.BaseSubchannelWrapper = void 0;
@@ -22095,9 +22295,9 @@ var require_subchannel_interface = __commonJS({
22095
22295
  }
22096
22296
  });
22097
22297
 
22098
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/internal-channel.js
22298
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/internal-channel.js
22099
22299
  var require_internal_channel = __commonJS({
22100
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/internal-channel.js"(exports) {
22300
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/internal-channel.js"(exports) {
22101
22301
  "use strict";
22102
22302
  Object.defineProperty(exports, "__esModule", { value: true });
22103
22303
  exports.InternalChannel = exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = void 0;
@@ -22198,7 +22398,7 @@ var require_internal_channel = __commonJS({
22198
22398
  this.connectivityState = connectivity_state_1.ConnectivityState.IDLE;
22199
22399
  this.currentPicker = new picker_1.UnavailablePicker();
22200
22400
  this.configSelectionQueue = [];
22201
- this.pickQueue = [];
22401
+ this.pickQueue = /* @__PURE__ */ new Set();
22202
22402
  this.connectivityStateWatchers = [];
22203
22403
  this.callRefTimer = null;
22204
22404
  this.configSelector = null;
@@ -22265,9 +22465,9 @@ var require_internal_channel = __commonJS({
22265
22465
  },
22266
22466
  updateState: (connectivityState, picker) => {
22267
22467
  this.currentPicker = picker;
22268
- const queueCopy = this.pickQueue.slice();
22269
- this.pickQueue = [];
22270
- if (queueCopy.length > 0) {
22468
+ const queueCopy = this.pickQueue;
22469
+ this.pickQueue = /* @__PURE__ */ new Set();
22470
+ if (queueCopy.size > 0) {
22271
22471
  this.callRefTimerUnref();
22272
22472
  }
22273
22473
  for (const call of queueCopy) {
@@ -22334,15 +22534,22 @@ var require_internal_channel = __commonJS({
22334
22534
  this.filterStackFactory = new filter_stack_1.FilterStackFactory([
22335
22535
  new compression_filter_1.CompressionFilterFactory(this, this.options)
22336
22536
  ]);
22337
- this.trace("Channel constructed with options " + JSON.stringify(options, void 0, 2));
22338
- const error = new Error();
22537
+ if (this.traceEnabled) {
22538
+ this.trace("Channel constructed with options " + JSON.stringify(options, void 0, 2));
22539
+ }
22339
22540
  if ((0, logging_1.isTracerEnabled)("channel_stacktrace")) {
22541
+ const error = new Error();
22340
22542
  (0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, "channel_stacktrace", "(" + this.channelzRef.id + ") Channel constructed \n" + ((_f = error.stack) === null || _f === void 0 ? void 0 : _f.substring(error.stack.indexOf("\n") + 1)));
22341
22543
  }
22342
22544
  this.lastActivityTimestamp = /* @__PURE__ */ new Date();
22343
22545
  }
22546
+ get traceEnabled() {
22547
+ return (0, logging_1.isTracerEnabled)("channel");
22548
+ }
22344
22549
  trace(text, verbosityOverride) {
22345
- (0, logging_1.trace)(verbosityOverride !== null && verbosityOverride !== void 0 ? verbosityOverride : constants_1.LogVerbosity.DEBUG, "channel", "(" + this.channelzRef.id + ") " + (0, uri_parser_1.uriToString)(this.target) + " " + text);
22550
+ if (this.traceEnabled) {
22551
+ (0, logging_1.trace)(verbosityOverride !== null && verbosityOverride !== void 0 ? verbosityOverride : constants_1.LogVerbosity.DEBUG, "channel", "(" + this.channelzRef.id + ") " + (0, uri_parser_1.uriToString)(this.target) + " " + text);
22552
+ }
22346
22553
  }
22347
22554
  callRefTimerRef() {
22348
22555
  var _a, _b, _c, _d;
@@ -22351,14 +22558,18 @@ var require_internal_channel = __commonJS({
22351
22558
  }, MAX_TIMEOUT_TIME);
22352
22559
  }
22353
22560
  if (!((_b = (_a = this.callRefTimer).hasRef) === null || _b === void 0 ? void 0 : _b.call(_a))) {
22354
- this.trace("callRefTimer.ref | configSelectionQueue.length=" + this.configSelectionQueue.length + " pickQueue.length=" + this.pickQueue.length);
22561
+ if (this.traceEnabled) {
22562
+ this.trace("callRefTimer.ref | configSelectionQueue.length=" + this.configSelectionQueue.length + " pickQueue.length=" + this.pickQueue.size);
22563
+ }
22355
22564
  (_d = (_c = this.callRefTimer).ref) === null || _d === void 0 ? void 0 : _d.call(_c);
22356
22565
  }
22357
22566
  }
22358
22567
  callRefTimerUnref() {
22359
22568
  var _a, _b, _c;
22360
22569
  if (!((_a = this.callRefTimer) === null || _a === void 0 ? void 0 : _a.hasRef) || this.callRefTimer.hasRef()) {
22361
- this.trace("callRefTimer.unref | configSelectionQueue.length=" + this.configSelectionQueue.length + " pickQueue.length=" + this.pickQueue.length);
22570
+ if (this.traceEnabled) {
22571
+ this.trace("callRefTimer.unref | configSelectionQueue.length=" + this.configSelectionQueue.length + " pickQueue.length=" + this.pickQueue.size);
22572
+ }
22362
22573
  (_c = (_b = this.callRefTimer) === null || _b === void 0 ? void 0 : _b.unref) === null || _c === void 0 ? void 0 : _c.call(_b);
22363
22574
  }
22364
22575
  }
@@ -22410,9 +22621,15 @@ var require_internal_channel = __commonJS({
22410
22621
  });
22411
22622
  }
22412
22623
  queueCallForPick(call) {
22413
- this.pickQueue.push(call);
22624
+ this.pickQueue.add(call);
22414
22625
  this.callRefTimerRef();
22415
22626
  }
22627
+ removeCallFromPickQueue(call) {
22628
+ this.pickQueue.delete(call);
22629
+ if (this.pickQueue.size === 0) {
22630
+ this.callRefTimerUnref();
22631
+ }
22632
+ }
22416
22633
  getConfig(method, metadata) {
22417
22634
  if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN) {
22418
22635
  this.resolvingLoadBalancer.exitIdle();
@@ -22493,19 +22710,25 @@ var require_internal_channel = __commonJS({
22493
22710
  this.lastActivityTimestamp = /* @__PURE__ */ new Date();
22494
22711
  this.maybeStartIdleTimer();
22495
22712
  }
22496
- createLoadBalancingCall(callConfig, method, host, credentials, deadline) {
22497
- const callNumber = (0, call_number_1.getNextCallNumber)();
22498
- this.trace("createLoadBalancingCall [" + callNumber + '] method="' + method + '"');
22499
- return new load_balancing_call_1.LoadBalancingCall(this, callConfig, method, host, credentials, deadline, callNumber);
22713
+ createLoadBalancingCall(callConfig, method, host, credentials, deadline, callNumber) {
22714
+ const finalCallNumber = callNumber !== null && callNumber !== void 0 ? callNumber : (0, call_number_1.getNextCallNumber)();
22715
+ if (this.traceEnabled) {
22716
+ this.trace("createLoadBalancingCall [" + finalCallNumber + '] method="' + method + '"');
22717
+ }
22718
+ return new load_balancing_call_1.LoadBalancingCall(this, callConfig, method, host, credentials, deadline, finalCallNumber);
22500
22719
  }
22501
- createRetryingCall(callConfig, method, host, credentials, deadline) {
22502
- const callNumber = (0, call_number_1.getNextCallNumber)();
22503
- this.trace("createRetryingCall [" + callNumber + '] method="' + method + '"');
22504
- return new retrying_call_1.RetryingCall(this, callConfig, method, host, credentials, deadline, callNumber, this.retryBufferTracker, RETRY_THROTTLER_MAP.get(this.getTarget()));
22720
+ createRetryingCall(callConfig, method, host, credentials, deadline, callNumber) {
22721
+ const finalCallNumber = callNumber !== null && callNumber !== void 0 ? callNumber : (0, call_number_1.getNextCallNumber)();
22722
+ if (this.traceEnabled) {
22723
+ this.trace("createRetryingCall [" + finalCallNumber + '] method="' + method + '"');
22724
+ }
22725
+ return new retrying_call_1.RetryingCall(this, callConfig, method, host, credentials, deadline, finalCallNumber, this.retryBufferTracker, RETRY_THROTTLER_MAP.get(this.getTarget()));
22505
22726
  }
22506
22727
  createResolvingCall(method, deadline, host, parentCall, propagateFlags) {
22507
22728
  const callNumber = (0, call_number_1.getNextCallNumber)();
22508
- this.trace("createResolvingCall [" + callNumber + '] method="' + method + '", deadline=' + (0, deadline_1.deadlineToString)(deadline));
22729
+ if (this.traceEnabled) {
22730
+ this.trace("createResolvingCall [" + callNumber + '] method="' + method + '", deadline=' + (0, deadline_1.deadlineToString)(deadline));
22731
+ }
22509
22732
  const finalOptions = {
22510
22733
  deadline,
22511
22734
  flags: propagateFlags !== null && propagateFlags !== void 0 ? propagateFlags : constants_1.Propagate.DEFAULTS,
@@ -22531,7 +22754,7 @@ var require_internal_channel = __commonJS({
22531
22754
  for (const call of this.pickQueue) {
22532
22755
  call.cancelWithStatus(constants_1.Status.UNAVAILABLE, "Channel closed before call started");
22533
22756
  }
22534
- this.pickQueue = [];
22757
+ this.pickQueue.clear();
22535
22758
  if (this.callRefTimer) {
22536
22759
  clearInterval(this.callRefTimer);
22537
22760
  }
@@ -22609,9 +22832,9 @@ var require_internal_channel = __commonJS({
22609
22832
  }
22610
22833
  });
22611
22834
 
22612
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/channel.js
22835
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel.js
22613
22836
  var require_channel = __commonJS({
22614
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/channel.js"(exports) {
22837
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel.js"(exports) {
22615
22838
  "use strict";
22616
22839
  Object.defineProperty(exports, "__esModule", { value: true });
22617
22840
  exports.ChannelImplementation = void 0;
@@ -22666,9 +22889,9 @@ var require_channel = __commonJS({
22666
22889
  }
22667
22890
  });
22668
22891
 
22669
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/server-call.js
22892
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-call.js
22670
22893
  var require_server_call = __commonJS({
22671
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/server-call.js"(exports) {
22894
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-call.js"(exports) {
22672
22895
  "use strict";
22673
22896
  Object.defineProperty(exports, "__esModule", { value: true });
22674
22897
  exports.ServerDuplexStreamImpl = exports.ServerWritableStreamImpl = exports.ServerReadableStreamImpl = exports.ServerUnaryCallImpl = void 0;
@@ -22875,9 +23098,9 @@ var require_server_call = __commonJS({
22875
23098
  }
22876
23099
  });
22877
23100
 
22878
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/server-credentials.js
23101
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-credentials.js
22879
23102
  var require_server_credentials = __commonJS({
22880
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/server-credentials.js"(exports) {
23103
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-credentials.js"(exports) {
22881
23104
  "use strict";
22882
23105
  Object.defineProperty(exports, "__esModule", { value: true });
22883
23106
  exports.ServerCredentials = void 0;
@@ -23165,9 +23388,9 @@ var require_server_credentials = __commonJS({
23165
23388
  }
23166
23389
  });
23167
23390
 
23168
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/duration.js
23391
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/duration.js
23169
23392
  var require_duration = __commonJS({
23170
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/duration.js"(exports) {
23393
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/duration.js"(exports) {
23171
23394
  "use strict";
23172
23395
  Object.defineProperty(exports, "__esModule", { value: true });
23173
23396
  exports.durationMessageToDuration = durationMessageToDuration;
@@ -23226,9 +23449,9 @@ var require_duration = __commonJS({
23226
23449
  }
23227
23450
  });
23228
23451
 
23229
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/orca.js
23452
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/orca.js
23230
23453
  var require_orca = __commonJS({
23231
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/orca.js"(exports) {
23454
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/orca.js"(exports) {
23232
23455
  "use strict";
23233
23456
  Object.defineProperty(exports, "__esModule", { value: true });
23234
23457
  exports.OrcaOobMetricsSubchannelWrapper = exports.GRPC_METRICS_HEADER = exports.ServerMetricRecorder = exports.PerRequestMetricRecorder = void 0;
@@ -23521,9 +23744,9 @@ var require_orca = __commonJS({
23521
23744
  }
23522
23745
  });
23523
23746
 
23524
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/server-interceptors.js
23747
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-interceptors.js
23525
23748
  var require_server_interceptors = __commonJS({
23526
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/server-interceptors.js"(exports) {
23749
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-interceptors.js"(exports) {
23527
23750
  "use strict";
23528
23751
  Object.defineProperty(exports, "__esModule", { value: true });
23529
23752
  exports.BaseServerInterceptingCall = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = void 0;
@@ -24239,15 +24462,17 @@ var require_server_interceptors = __commonJS({
24239
24462
  }
24240
24463
  getAuthContext() {
24241
24464
  var _a;
24242
- if (((_a = this.stream.session) === null || _a === void 0 ? void 0 : _a.socket) instanceof tls_1.TLSSocket) {
24243
- const peerCertificate = this.stream.session.socket.getPeerCertificate();
24244
- return {
24245
- transportSecurityType: "ssl",
24246
- sslPeerCertificate: peerCertificate.raw ? peerCertificate : void 0
24247
- };
24248
- } else {
24465
+ if (!(((_a = this.stream.session) === null || _a === void 0 ? void 0 : _a.socket) instanceof tls_1.TLSSocket)) {
24249
24466
  return {};
24250
24467
  }
24468
+ if (!this.stream.session.socket.authorized) {
24469
+ return {};
24470
+ }
24471
+ const peerCertificate = this.stream.session.socket.getPeerCertificate();
24472
+ return {
24473
+ transportSecurityType: "ssl",
24474
+ sslPeerCertificate: peerCertificate.raw ? peerCertificate : void 0
24475
+ };
24251
24476
  }
24252
24477
  getConnectionInfo() {
24253
24478
  return this.connectionInfo;
@@ -24273,9 +24498,9 @@ var require_server_interceptors = __commonJS({
24273
24498
  }
24274
24499
  });
24275
24500
 
24276
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/server.js
24501
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server.js
24277
24502
  var require_server = __commonJS({
24278
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/server.js"(exports) {
24503
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server.js"(exports) {
24279
24504
  "use strict";
24280
24505
  var __runInitializers = exports && exports.__runInitializers || function(thisArg, initializers, value) {
24281
24506
  var useValue = arguments.length > 2;
@@ -24329,6 +24554,7 @@ var require_server = __commonJS({
24329
24554
  var uri_parser_1 = require_uri_parser();
24330
24555
  var channelz_1 = require_channelz();
24331
24556
  var server_interceptors_1 = require_server_interceptors();
24557
+ var environment_1 = require_environment();
24332
24558
  var UNLIMITED_CONNECTION_AGE_MS = ~(1 << 31);
24333
24559
  var KEEPALIVE_MAX_TIME_MS = ~(1 << 31);
24334
24560
  var KEEPALIVE_TIMEOUT_MS = 2e4;
@@ -25582,9 +25808,15 @@ var require_server = __commonJS({
25582
25808
  try {
25583
25809
  handler.func(stream, respond);
25584
25810
  } catch (err) {
25811
+ let details;
25812
+ if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
25813
+ details = `Server method handler threw error ${err.message}`;
25814
+ } else {
25815
+ details = "Unknown error";
25816
+ }
25585
25817
  call.sendStatus({
25586
25818
  code: constants_1.Status.UNKNOWN,
25587
- details: `Server method handler threw error ${err.message}`,
25819
+ details,
25588
25820
  metadata: null
25589
25821
  });
25590
25822
  }
@@ -25618,9 +25850,15 @@ var require_server = __commonJS({
25618
25850
  try {
25619
25851
  handler.func(stream, respond);
25620
25852
  } catch (err) {
25853
+ let details;
25854
+ if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
25855
+ details = `Server method handler threw error ${err.message}`;
25856
+ } else {
25857
+ details = "Unknown error";
25858
+ }
25621
25859
  call.sendStatus({
25622
25860
  code: constants_1.Status.UNKNOWN,
25623
- details: `Server method handler threw error ${err.message}`,
25861
+ details,
25624
25862
  metadata: null
25625
25863
  });
25626
25864
  }
@@ -25674,9 +25912,15 @@ var require_server = __commonJS({
25674
25912
  try {
25675
25913
  handler.func(stream);
25676
25914
  } catch (err) {
25915
+ let details;
25916
+ if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
25917
+ details = `Server method handler threw error ${err.message}`;
25918
+ } else {
25919
+ details = "Unknown error";
25920
+ }
25677
25921
  call.sendStatus({
25678
25922
  code: constants_1.Status.UNKNOWN,
25679
- details: `Server method handler threw error ${err.message}`,
25923
+ details,
25680
25924
  metadata: null
25681
25925
  });
25682
25926
  }
@@ -25698,9 +25942,15 @@ var require_server = __commonJS({
25698
25942
  try {
25699
25943
  handler.func(stream);
25700
25944
  } catch (err) {
25945
+ let details;
25946
+ if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
25947
+ details = `Server method handler threw error ${err.message}`;
25948
+ } else {
25949
+ details = "Unknown error";
25950
+ }
25701
25951
  call.sendStatus({
25702
25952
  code: constants_1.Status.UNKNOWN,
25703
- details: `Server method handler threw error ${err.message}`,
25953
+ details,
25704
25954
  metadata: null
25705
25955
  });
25706
25956
  }
@@ -25723,9 +25973,9 @@ var require_server = __commonJS({
25723
25973
  }
25724
25974
  });
25725
25975
 
25726
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/status-builder.js
25976
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/status-builder.js
25727
25977
  var require_status_builder = __commonJS({
25728
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/status-builder.js"(exports) {
25978
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/status-builder.js"(exports) {
25729
25979
  "use strict";
25730
25980
  Object.defineProperty(exports, "__esModule", { value: true });
25731
25981
  exports.StatusBuilder = void 0;
@@ -25777,9 +26027,9 @@ var require_status_builder = __commonJS({
25777
26027
  }
25778
26028
  });
25779
26029
 
25780
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js
26030
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js
25781
26031
  var require_load_balancer_pick_first = __commonJS({
25782
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js"(exports) {
26032
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js"(exports) {
25783
26033
  "use strict";
25784
26034
  Object.defineProperty(exports, "__esModule", { value: true });
25785
26035
  exports.LeafLoadBalancer = exports.PickFirstLoadBalancer = exports.PickFirstLoadBalancingConfig = void 0;
@@ -26196,9 +26446,9 @@ var require_load_balancer_pick_first = __commonJS({
26196
26446
  }
26197
26447
  });
26198
26448
 
26199
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/certificate-provider.js
26449
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/certificate-provider.js
26200
26450
  var require_certificate_provider = __commonJS({
26201
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/certificate-provider.js"(exports) {
26451
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/certificate-provider.js"(exports) {
26202
26452
  "use strict";
26203
26453
  Object.defineProperty(exports, "__esModule", { value: true });
26204
26454
  exports.FileWatcherCertificateProvider = void 0;
@@ -26319,9 +26569,9 @@ var require_certificate_provider = __commonJS({
26319
26569
  }
26320
26570
  });
26321
26571
 
26322
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/experimental.js
26572
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/experimental.js
26323
26573
  var require_experimental = __commonJS({
26324
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/experimental.js"(exports) {
26574
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/experimental.js"(exports) {
26325
26575
  "use strict";
26326
26576
  Object.defineProperty(exports, "__esModule", { value: true });
26327
26577
  exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = exports.createCertificateProviderChannelCredentials = exports.FileWatcherCertificateProvider = exports.createCertificateProviderServerCredentials = exports.createServerCredentialsWithInterceptors = exports.BaseSubchannelWrapper = exports.registerAdminService = exports.FilterStackFactory = exports.BaseFilter = exports.statusOrFromError = exports.statusOrFromValue = exports.PickResultType = exports.QueuePicker = exports.UnavailablePicker = exports.ChildLoadBalancerHandler = exports.EndpointMap = exports.endpointHasAddress = exports.endpointToString = exports.subchannelAddressToString = exports.LeafLoadBalancer = exports.isLoadBalancerNameRegistered = exports.parseLoadBalancingConfig = exports.selectLbConfigFromList = exports.registerLoadBalancerType = exports.createChildChannelControlHelper = exports.BackoffTimeout = exports.parseDuration = exports.durationToMs = exports.splitHostPort = exports.uriToString = exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = exports.createResolver = exports.registerResolver = exports.log = exports.trace = void 0;
@@ -26452,9 +26702,9 @@ var require_experimental = __commonJS({
26452
26702
  }
26453
26703
  });
26454
26704
 
26455
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolver-uds.js
26705
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-uds.js
26456
26706
  var require_resolver_uds = __commonJS({
26457
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolver-uds.js"(exports) {
26707
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-uds.js"(exports) {
26458
26708
  "use strict";
26459
26709
  Object.defineProperty(exports, "__esModule", { value: true });
26460
26710
  exports.setup = setup;
@@ -26492,9 +26742,9 @@ var require_resolver_uds = __commonJS({
26492
26742
  }
26493
26743
  });
26494
26744
 
26495
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolver-ip.js
26745
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-ip.js
26496
26746
  var require_resolver_ip = __commonJS({
26497
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/resolver-ip.js"(exports) {
26747
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-ip.js"(exports) {
26498
26748
  "use strict";
26499
26749
  Object.defineProperty(exports, "__esModule", { value: true });
26500
26750
  exports.setup = setup;
@@ -26583,9 +26833,9 @@ var require_resolver_ip = __commonJS({
26583
26833
  }
26584
26834
  });
26585
26835
 
26586
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js
26836
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js
26587
26837
  var require_load_balancer_round_robin = __commonJS({
26588
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js"(exports) {
26838
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js"(exports) {
26589
26839
  "use strict";
26590
26840
  Object.defineProperty(exports, "__esModule", { value: true });
26591
26841
  exports.RoundRobinLoadBalancer = void 0;
@@ -26758,9 +27008,9 @@ var require_load_balancer_round_robin = __commonJS({
26758
27008
  }
26759
27009
  });
26760
27010
 
26761
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js
27011
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js
26762
27012
  var require_load_balancer_outlier_detection = __commonJS({
26763
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js"(exports) {
27013
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js"(exports) {
26764
27014
  "use strict";
26765
27015
  var _a;
26766
27016
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -27255,9 +27505,9 @@ var require_load_balancer_outlier_detection = __commonJS({
27255
27505
  }
27256
27506
  });
27257
27507
 
27258
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/priority-queue.js
27508
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/priority-queue.js
27259
27509
  var require_priority_queue = __commonJS({
27260
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/priority-queue.js"(exports) {
27510
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/priority-queue.js"(exports) {
27261
27511
  "use strict";
27262
27512
  Object.defineProperty(exports, "__esModule", { value: true });
27263
27513
  exports.PriorityQueue = void 0;
@@ -27359,9 +27609,9 @@ var require_priority_queue = __commonJS({
27359
27609
  }
27360
27610
  });
27361
27611
 
27362
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js
27612
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js
27363
27613
  var require_load_balancer_weighted_round_robin = __commonJS({
27364
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js"(exports) {
27614
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js"(exports) {
27365
27615
  "use strict";
27366
27616
  Object.defineProperty(exports, "__esModule", { value: true });
27367
27617
  exports.WeightedRoundRobinLoadBalancingConfig = void 0;
@@ -27711,9 +27961,9 @@ var require_load_balancer_weighted_round_robin = __commonJS({
27711
27961
  }
27712
27962
  });
27713
27963
 
27714
- // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/index.js
27964
+ // ../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/index.js
27715
27965
  var require_src3 = __commonJS({
27716
- "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.4/node_modules/@grpc/grpc-js/build/src/index.js"(exports) {
27966
+ "../memoh/node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/index.js"(exports) {
27717
27967
  "use strict";
27718
27968
  Object.defineProperty(exports, "__esModule", { value: true });
27719
27969
  exports.experimental = exports.ServerMetricRecorder = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = exports.addAdminServicesToServer = exports.getChannelzHandlers = exports.getChannelzServiceDefinition = exports.InterceptorConfigurationError = exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.StatusBuilder = exports.getClientChannel = exports.ServerCredentials = exports.Server = exports.setLogVerbosity = exports.setLogger = exports.load = exports.loadObject = exports.CallCredentials = exports.ChannelCredentials = exports.waitForClientReady = exports.closeClient = exports.Channel = exports.makeGenericClientConstructor = exports.makeClientConstructor = exports.loadPackageDefinition = exports.Client = exports.compressionAlgorithms = exports.propagate = exports.connectivityState = exports.status = exports.logVerbosity = exports.Metadata = exports.credentials = void 0;
@@ -27894,9 +28144,9 @@ var require_src3 = __commonJS({
27894
28144
  });
27895
28145
 
27896
28146
  // src/build-info.ts
27897
- var cloudRuntimeVersion = true ? "2026.10.15-1" : unknownStamp;
27898
- var upstreamRuntimeVersion = true ? "0.21.0" : unknownStamp;
27899
- var upstreamRuntimeCommit = true ? "975e1723" : unknownStamp;
28147
+ var cloudRuntimeVersion = true ? "2026.10.21-1" : unknownStamp;
28148
+ var upstreamRuntimeVersion = true ? "0.22.0" : unknownStamp;
28149
+ var upstreamRuntimeCommit = true ? "8c646e2f" : unknownStamp;
27900
28150
  function versionReport() {
27901
28151
  return [
27902
28152
  `@memohai/cloud-runtime ${cloudRuntimeVersion}`,
@@ -30348,7 +30598,7 @@ async function locateBridgeProto() {
30348
30598
  // ../memoh/packages/runtime/package.json
30349
30599
  var package_default = {
30350
30600
  name: "@memohai/runtime",
30351
- version: "0.21.0",
30601
+ version: "0.22.0",
30352
30602
  repository: {
30353
30603
  type: "git",
30354
30604
  url: "git+https://github.com/felinics/Memoh.git",
@@ -30378,7 +30628,7 @@ var package_default = {
30378
30628
  node: ">=20"
30379
30629
  },
30380
30630
  dependencies: {
30381
- "@grpc/grpc-js": "1.14.4",
30631
+ "@grpc/grpc-js": "1.14.5",
30382
30632
  "@grpc/proto-loader": "^0.8.1",
30383
30633
  ws: "^8.21.0"
30384
30634
  },
@@ -30386,7 +30636,7 @@ var package_default = {
30386
30636
  "@types/ws": "^8.18.1",
30387
30637
  esbuild: "0.27.2"
30388
30638
  },
30389
- packageManager: "pnpm@10.27.0"
30639
+ packageManager: "pnpm@10.34.7"
30390
30640
  };
30391
30641
 
30392
30642
  // ../memoh/packages/runtime/src/version.ts