@elizaos/cli 1.6.5-alpha.3 → 1.6.5-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4749,7 +4749,7 @@ __export(exports_version, {
4749
4749
  BUILD_TIME: () => BUILD_TIME,
4750
4750
  BUILD_ENV: () => BUILD_ENV
4751
4751
  });
4752
- var CLI_VERSION = "1.6.5-alpha.3", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-11-12T16:28:24.775Z", BUILD_ENV = "production", version_default;
4752
+ var CLI_VERSION = "1.6.5-alpha.5", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-11-13T13:28:28.664Z", BUILD_ENV = "production", version_default;
4753
4753
  var init_version = __esm(() => {
4754
4754
  version_default = {
4755
4755
  version: CLI_VERSION,
@@ -30437,7 +30437,7 @@ function mergeUint8Arrays(items) {
30437
30437
  }
30438
30438
 
30439
30439
  // ../../node_modules/puppeteer-core/lib/esm/puppeteer/util/version.js
30440
- var packageVersion = "24.29.1";
30440
+ var packageVersion = "24.30.0";
30441
30441
 
30442
30442
  // ../../node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js
30443
30443
  async function importDebug() {
@@ -38382,6 +38382,10 @@ var require_BrowsingContextProcessor = __commonJS((exports) => {
38382
38382
  return await context2.print(params);
38383
38383
  }
38384
38384
  async setViewport(params) {
38385
+ const maxDimensionSize = 1e7;
38386
+ if ((params.viewport?.height ?? 0) > maxDimensionSize || (params.viewport?.width ?? 0) > maxDimensionSize) {
38387
+ throw new protocol_js_1.UnsupportedOperationException(`Viewport dimension over ${maxDimensionSize} are not supported`);
38388
+ }
38385
38389
  const config4 = {};
38386
38390
  if (params.devicePixelRatio !== undefined) {
38387
38391
  config4.devicePixelRatio = params.devicePixelRatio;
@@ -38396,7 +38400,10 @@ var require_BrowsingContextProcessor = __commonJS((exports) => {
38396
38400
  if (params.context !== undefined) {
38397
38401
  this.#contextConfigStorage.updateBrowsingContextConfig(params.context, config4);
38398
38402
  }
38399
- await Promise.all(impactedTopLevelContexts.map((context2) => context2.setViewport(params.viewport, params.devicePixelRatio)));
38403
+ await Promise.all(impactedTopLevelContexts.map(async (context2) => {
38404
+ const config5 = this.#contextConfigStorage.getActiveConfig(context2.id, context2.userContext);
38405
+ await context2.setViewport(config5.viewport ?? null, config5.devicePixelRatio ?? null, config5.screenOrientation ?? null);
38406
+ }));
38400
38407
  return {};
38401
38408
  }
38402
38409
  async#getRelatedTopLevelBrowsingContexts(browsingContextId, userContextIds) {
@@ -38551,7 +38558,10 @@ var require_EmulationProcessor = __commonJS((exports) => {
38551
38558
  geolocation
38552
38559
  });
38553
38560
  }
38554
- await Promise.all(browsingContexts.map(async (context2) => await context2.setGeolocationOverride(geolocation)));
38561
+ await Promise.all(browsingContexts.map(async (context2) => {
38562
+ const config4 = this.#contextConfigStorage.getActiveConfig(context2.id, context2.userContext);
38563
+ await context2.setGeolocationOverride(config4.geolocation ?? null);
38564
+ }));
38555
38565
  return {};
38556
38566
  }
38557
38567
  async setLocaleOverride(params) {
@@ -38570,7 +38580,13 @@ var require_EmulationProcessor = __commonJS((exports) => {
38570
38580
  locale
38571
38581
  });
38572
38582
  }
38573
- await Promise.all(browsingContexts.map(async (context2) => await context2.setLocaleOverride(locale)));
38583
+ await Promise.all(browsingContexts.map(async (context2) => {
38584
+ const config4 = this.#contextConfigStorage.getActiveConfig(context2.id, context2.userContext);
38585
+ await Promise.all([
38586
+ context2.setLocaleOverride(config4.locale ?? null),
38587
+ context2.setUserAgentAndAcceptLanguage(config4.userAgent, config4.locale)
38588
+ ]);
38589
+ }));
38574
38590
  return {};
38575
38591
  }
38576
38592
  async setScriptingEnabled(params) {
@@ -38586,7 +38602,10 @@ var require_EmulationProcessor = __commonJS((exports) => {
38586
38602
  scriptingEnabled
38587
38603
  });
38588
38604
  }
38589
- await Promise.all(browsingContexts.map(async (context2) => await context2.setScriptingEnabled(scriptingEnabled)));
38605
+ await Promise.all(browsingContexts.map(async (context2) => {
38606
+ const config4 = this.#contextConfigStorage.getActiveConfig(context2.id, context2.userContext);
38607
+ await context2.setScriptingEnabled(config4.scriptingEnabled ?? null);
38608
+ }));
38590
38609
  return {};
38591
38610
  }
38592
38611
  async setScreenOrientationOverride(params) {
@@ -38601,7 +38620,10 @@ var require_EmulationProcessor = __commonJS((exports) => {
38601
38620
  screenOrientation: params.screenOrientation
38602
38621
  });
38603
38622
  }
38604
- await Promise.all(browsingContexts.map(async (context2) => await context2.setScreenOrientationOverride(params.screenOrientation)));
38623
+ await Promise.all(browsingContexts.map(async (context2) => {
38624
+ const config4 = this.#contextConfigStorage.getActiveConfig(context2.id, context2.userContext);
38625
+ await context2.setViewport(config4.viewport ?? null, config4.devicePixelRatio ?? null, config4.screenOrientation ?? null);
38626
+ }));
38605
38627
  return {};
38606
38628
  }
38607
38629
  async#getRelatedTopLevelBrowsingContexts(browsingContextIds, userContextIds, allowGlobal = false) {
@@ -38657,7 +38679,10 @@ var require_EmulationProcessor = __commonJS((exports) => {
38657
38679
  timezone
38658
38680
  });
38659
38681
  }
38660
- await Promise.all(browsingContexts.map(async (context2) => await context2.setTimezoneOverride(timezone)));
38682
+ await Promise.all(browsingContexts.map(async (context2) => {
38683
+ const config4 = this.#contextConfigStorage.getActiveConfig(context2.id, context2.userContext);
38684
+ await context2.setTimezoneOverride(config4.timezone ?? null);
38685
+ }));
38661
38686
  return {};
38662
38687
  }
38663
38688
  async setUserAgentOverrideParams(params) {
@@ -38680,7 +38705,10 @@ var require_EmulationProcessor = __commonJS((exports) => {
38680
38705
  userAgent: params.userAgent
38681
38706
  });
38682
38707
  }
38683
- await Promise.all(browsingContexts.map(async (context2) => await context2.setUserAgentOverride(params.userAgent)));
38708
+ await Promise.all(browsingContexts.map(async (context2) => {
38709
+ const config4 = this.#contextConfigStorage.getActiveConfig(context2.id, context2.userContext);
38710
+ await context2.setUserAgentAndAcceptLanguage(config4.userAgent, config4.locale);
38711
+ }));
38684
38712
  return {};
38685
38713
  }
38686
38714
  async setNetworkConditions(params) {
@@ -38704,8 +38732,8 @@ var require_EmulationProcessor = __commonJS((exports) => {
38704
38732
  throw new ErrorResponse_js_1.UnsupportedOperationException(`Unsupported network conditions ${params.networkConditions.type}`);
38705
38733
  }
38706
38734
  await Promise.all(browsingContexts.map(async (context2) => {
38707
- const emulatedNetworkConditions = this.#contextConfigStorage.getActiveConfig(context2.id, context2.userContext).emulatedNetworkConditions ?? null;
38708
- await context2.setEmulatedNetworkConditions(emulatedNetworkConditions);
38735
+ const config4 = this.#contextConfigStorage.getActiveConfig(context2.id, context2.userContext);
38736
+ await context2.setEmulatedNetworkConditions(config4.emulatedNetworkConditions ?? null);
38709
38737
  }));
38710
38738
  return {};
38711
38739
  }
@@ -41326,11 +41354,7 @@ var require_NetworkProcessor = __commonJS((exports) => {
41326
41354
  if (value.trim() !== value) {
41327
41355
  throw new protocol_js_1.InvalidArgumentException(`Header value should not contain trailing or ending whitespaces`);
41328
41356
  }
41329
- if (parsedHeaders[bidiHeader.name] === undefined) {
41330
- parsedHeaders[bidiHeader.name] = bidiHeader.value.value;
41331
- } else {
41332
- parsedHeaders[bidiHeader.name] = `${parsedHeaders[bidiHeader.name]}, ${bidiHeader.value.value}`;
41333
- }
41357
+ parsedHeaders[bidiHeader.name] = bidiHeader.value.value;
41334
41358
  } else {
41335
41359
  throw new protocol_js_1.UnsupportedOperationException("Only string headers values are supported");
41336
41360
  }
@@ -44357,8 +44381,8 @@ var require_BrowsingContextImpl = __commonJS((exports) => {
44357
44381
  url: navigationState.url
44358
44382
  };
44359
44383
  }
44360
- async setViewport(viewport, devicePixelRatio) {
44361
- await this.cdpTarget.setViewport(viewport, devicePixelRatio);
44384
+ async setViewport(viewport, devicePixelRatio, screenOrientation) {
44385
+ await this.cdpTarget.setDeviceMetricsOverride(viewport, devicePixelRatio, screenOrientation);
44362
44386
  }
44363
44387
  async handleUserPrompt(accept, userText) {
44364
44388
  await this.top.#cdpTarget.cdpClient.sendCommand("Page.handleJavaScriptDialog", {
@@ -44818,14 +44842,11 @@ var require_BrowsingContextImpl = __commonJS((exports) => {
44818
44842
  async setGeolocationOverride(geolocation) {
44819
44843
  await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setGeolocationOverride(geolocation)));
44820
44844
  }
44821
- async setScreenOrientationOverride(screenOrientation) {
44822
- await this.#cdpTarget.setScreenOrientationOverride(screenOrientation);
44823
- }
44824
44845
  async setScriptingEnabled(scriptingEnabled) {
44825
44846
  await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setScriptingEnabled(scriptingEnabled)));
44826
44847
  }
44827
- async setUserAgentOverride(userAgent) {
44828
- await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setUserAgent(userAgent)));
44848
+ async setUserAgentAndAcceptLanguage(userAgent, acceptLanguage) {
44849
+ await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setUserAgentAndAcceptLanguage(userAgent, acceptLanguage)));
44829
44850
  }
44830
44851
  async setEmulatedNetworkConditions(networkConditions) {
44831
44852
  await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setEmulatedNetworkConditions(networkConditions)));
@@ -45963,7 +45984,7 @@ var require_NetworkRequest = __commonJS((exports) => {
45963
45984
  case "Image":
45964
45985
  return "image";
45965
45986
  case "Document":
45966
- return this.#request.info?.initiator.type === "parser" ? "iframe" : "";
45987
+ return this.#request.info?.initiator.type === "parser" ? "iframe" : "document";
45967
45988
  default:
45968
45989
  return "";
45969
45990
  }
@@ -46408,13 +46429,6 @@ var require_CdpTarget = __commonJS((exports) => {
46408
46429
  contextConfigStorage;
46409
46430
  #unblocked = new Deferred_js_1.Deferred;
46410
46431
  #logger;
46411
- #previousDeviceMetricsOverride = {
46412
- width: 0,
46413
- height: 0,
46414
- deviceScaleFactor: 0,
46415
- mobile: false,
46416
- dontSetVisibleSize: true
46417
- };
46418
46432
  #windowId;
46419
46433
  #deviceAccessEnabled = false;
46420
46434
  #cacheDisableState = false;
@@ -46712,44 +46726,27 @@ var require_CdpTarget = __commonJS((exports) => {
46712
46726
  return script.initInTarget(this, true);
46713
46727
  }));
46714
46728
  }
46715
- async setViewport(viewport, devicePixelRatio) {
46716
- if (viewport === null && devicePixelRatio === null) {
46729
+ async setDeviceMetricsOverride(viewport, devicePixelRatio, screenOrientation) {
46730
+ if (viewport === null && devicePixelRatio === null && screenOrientation === null) {
46717
46731
  await this.cdpClient.sendCommand("Emulation.clearDeviceMetricsOverride");
46718
46732
  return;
46719
46733
  }
46720
- const newViewport = { ...this.#previousDeviceMetricsOverride };
46721
- if (viewport === null) {
46722
- newViewport.width = 0;
46723
- newViewport.height = 0;
46724
- } else if (viewport !== undefined) {
46725
- newViewport.width = viewport.width;
46726
- newViewport.height = viewport.height;
46727
- }
46728
- if (devicePixelRatio === null) {
46729
- newViewport.deviceScaleFactor = 0;
46730
- } else if (devicePixelRatio !== undefined) {
46731
- newViewport.deviceScaleFactor = devicePixelRatio;
46732
- }
46733
- try {
46734
- await this.cdpClient.sendCommand("Emulation.setDeviceMetricsOverride", newViewport);
46735
- this.#previousDeviceMetricsOverride = newViewport;
46736
- } catch (err) {
46737
- if (err.message.startsWith("Width and height values must be positive")) {
46738
- throw new protocol_js_1.UnsupportedOperationException("Provided viewport dimensions are not supported");
46739
- }
46740
- throw err;
46741
- }
46734
+ const metricsOverride = {
46735
+ width: viewport?.width ?? 0,
46736
+ height: viewport?.height ?? 0,
46737
+ deviceScaleFactor: devicePixelRatio ?? 0,
46738
+ screenOrientation: this.#toCdpScreenOrientationAngle(screenOrientation) ?? undefined,
46739
+ mobile: false
46740
+ };
46741
+ await this.cdpClient.sendCommand("Emulation.setDeviceMetricsOverride", metricsOverride);
46742
46742
  }
46743
46743
  async#setUserContextConfig(config4) {
46744
46744
  const promises3 = [];
46745
46745
  promises3.push(this.#cdpClient.sendCommand("Page.setPrerenderingAllowed", {
46746
46746
  isAllowed: !config4.prerenderingDisabled
46747
46747
  }).catch(() => {}));
46748
- if (config4.viewport !== undefined || config4.devicePixelRatio !== undefined) {
46749
- promises3.push(this.setViewport(config4.viewport, config4.devicePixelRatio).catch(() => {}));
46750
- }
46751
- if (config4.screenOrientation !== undefined && config4.screenOrientation !== null) {
46752
- promises3.push(this.setScreenOrientationOverride(config4.screenOrientation).catch(() => {}));
46748
+ if (config4.viewport !== undefined || config4.devicePixelRatio !== undefined || config4.screenOrientation !== undefined) {
46749
+ promises3.push(this.setDeviceMetricsOverride(config4.viewport ?? null, config4.devicePixelRatio ?? null, config4.screenOrientation ?? null).catch(() => {}));
46753
46750
  }
46754
46751
  if (config4.geolocation !== undefined && config4.geolocation !== null) {
46755
46752
  promises3.push(this.setGeolocationOverride(config4.geolocation));
@@ -46763,8 +46760,8 @@ var require_CdpTarget = __commonJS((exports) => {
46763
46760
  if (config4.extraHeaders !== undefined) {
46764
46761
  promises3.push(this.setExtraHeaders(config4.extraHeaders));
46765
46762
  }
46766
- if (config4.userAgent !== undefined) {
46767
- promises3.push(this.setUserAgent(config4.userAgent));
46763
+ if (config4.userAgent !== undefined || config4.locale !== undefined) {
46764
+ promises3.push(this.setUserAgentAndAcceptLanguage(config4.userAgent, config4.locale));
46768
46765
  }
46769
46766
  if (config4.scriptingEnabled !== undefined) {
46770
46767
  promises3.push(this.setScriptingEnabled(config4.scriptingEnabled));
@@ -46811,17 +46808,10 @@ var require_CdpTarget = __commonJS((exports) => {
46811
46808
  throw new protocol_js_1.UnknownErrorException("Unexpected geolocation coordinates value");
46812
46809
  }
46813
46810
  }
46814
- async setScreenOrientationOverride(screenOrientation) {
46815
- const newViewport = { ...this.#previousDeviceMetricsOverride };
46816
- if (screenOrientation === null) {
46817
- delete newViewport.screenOrientation;
46818
- } else {
46819
- newViewport.screenOrientation = this.#toCdpScreenOrientationAngle(screenOrientation);
46820
- }
46821
- await this.cdpClient.sendCommand("Emulation.setDeviceMetricsOverride", newViewport);
46822
- this.#previousDeviceMetricsOverride = newViewport;
46823
- }
46824
46811
  #toCdpScreenOrientationAngle(orientation) {
46812
+ if (orientation === null) {
46813
+ return null;
46814
+ }
46825
46815
  if (orientation.natural === "portrait") {
46826
46816
  switch (orientation.type) {
46827
46817
  case "portrait-primary":
@@ -46906,9 +46896,10 @@ var require_CdpTarget = __commonJS((exports) => {
46906
46896
  headers
46907
46897
  });
46908
46898
  }
46909
- async setUserAgent(userAgent) {
46899
+ async setUserAgentAndAcceptLanguage(userAgent, acceptLanguage) {
46910
46900
  await this.cdpClient.sendCommand("Emulation.setUserAgentOverride", {
46911
- userAgent: userAgent ?? ""
46901
+ userAgent: userAgent ?? "",
46902
+ acceptLanguage: acceptLanguage ?? undefined
46912
46903
  });
46913
46904
  }
46914
46905
  async setEmulatedNetworkConditions(networkConditions) {
@@ -90110,6 +90101,18 @@ var require_loader = __commonJS((exports, module) => {
90110
90101
  }
90111
90102
  return String.fromCharCode((c3 - 65536 >> 10) + 55296, (c3 - 65536 & 1023) + 56320);
90112
90103
  }
90104
+ function setProperty(object2, key, value) {
90105
+ if (key === "__proto__") {
90106
+ Object.defineProperty(object2, key, {
90107
+ configurable: true,
90108
+ enumerable: true,
90109
+ writable: true,
90110
+ value
90111
+ });
90112
+ } else {
90113
+ object2[key] = value;
90114
+ }
90115
+ }
90113
90116
  var simpleEscapeCheck = new Array(256);
90114
90117
  var simpleEscapeMap = new Array(256);
90115
90118
  for (i2 = 0;i2 < 256; i2++) {
@@ -90228,7 +90231,7 @@ var require_loader = __commonJS((exports, module) => {
90228
90231
  for (index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
90229
90232
  key = sourceKeys[index];
90230
90233
  if (!_hasOwnProperty.call(destination, key)) {
90231
- destination[key] = source2[key];
90234
+ setProperty(destination, key, source2[key]);
90232
90235
  overridableKeys[key] = true;
90233
90236
  }
90234
90237
  }
@@ -90268,16 +90271,7 @@ var require_loader = __commonJS((exports, module) => {
90268
90271
  state.position = startPos || state.position;
90269
90272
  throwError(state, "duplicated mapping key");
90270
90273
  }
90271
- if (keyNode === "__proto__") {
90272
- Object.defineProperty(_result, keyNode, {
90273
- configurable: true,
90274
- enumerable: true,
90275
- writable: true,
90276
- value: valueNode
90277
- });
90278
- } else {
90279
- _result[keyNode] = valueNode;
90280
- }
90274
+ setProperty(_result, keyNode, valueNode);
90281
90275
  delete overridableKeys[keyNode];
90282
90276
  }
90283
90277
  return _result;
@@ -263797,7 +263791,7 @@ __export(exports_js_yaml, {
263797
263791
  loadAll: () => loadAll,
263798
263792
  load: () => load3,
263799
263793
  dump: () => dump,
263800
- default: () => js_yaml_default,
263794
+ default: () => jsYaml,
263801
263795
  YAMLException: () => YAMLException,
263802
263796
  Type: () => Type,
263803
263797
  Schema: () => Schema,
@@ -264449,6 +264443,18 @@ function charFromCodepoint(c3) {
264449
264443
  }
264450
264444
  return String.fromCharCode((c3 - 65536 >> 10) + 55296, (c3 - 65536 & 1023) + 56320);
264451
264445
  }
264446
+ function setProperty(object2, key, value) {
264447
+ if (key === "__proto__") {
264448
+ Object.defineProperty(object2, key, {
264449
+ configurable: true,
264450
+ enumerable: true,
264451
+ writable: true,
264452
+ value
264453
+ });
264454
+ } else {
264455
+ object2[key] = value;
264456
+ }
264457
+ }
264452
264458
  function State$1(input3, options) {
264453
264459
  this.input = input3;
264454
264460
  this.filename = options["filename"] || null;
@@ -264512,7 +264518,7 @@ function mergeMappings(state, destination, source2, overridableKeys) {
264512
264518
  for (index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
264513
264519
  key = sourceKeys[index];
264514
264520
  if (!_hasOwnProperty$1.call(destination, key)) {
264515
- destination[key] = source2[key];
264521
+ setProperty(destination, key, source2[key]);
264516
264522
  overridableKeys[key] = true;
264517
264523
  }
264518
264524
  }
@@ -264552,16 +264558,7 @@ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valu
264552
264558
  state.position = startPos || state.position;
264553
264559
  throwError(state, "duplicated mapping key");
264554
264560
  }
264555
- if (keyNode === "__proto__") {
264556
- Object.defineProperty(_result, keyNode, {
264557
- configurable: true,
264558
- enumerable: true,
264559
- writable: true,
264560
- value: valueNode
264561
- });
264562
- } else {
264563
- _result[keyNode] = valueNode;
264564
- }
264561
+ setProperty(_result, keyNode, valueNode);
264565
264562
  delete overridableKeys[keyNode];
264566
264563
  }
264567
264564
  return _result;
@@ -266050,9 +266047,9 @@ function renamed(from2, to) {
266050
266047
  };
266051
266048
  }
266052
266049
  var isNothing_1, isObject_1, toArray_1, repeat_1, isNegativeZero_1, extend_1, common3, exception, snippet, TYPE_CONSTRUCTOR_OPTIONS, YAML_NODE_KINDS, type, schema, str, seq, map3, failsafe, _null4, bool, int2, YAML_FLOAT_PATTERN, SCIENTIFIC_WITHOUT_DOT, float, json2, core2, YAML_DATE_REGEXP, YAML_TIMESTAMP_REGEXP, timestamp, merge3, BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
266053
- \r`, binary, _hasOwnProperty$3, _toString$2, omap, _toString$1, pairs, _hasOwnProperty$2, set2, _default3, _hasOwnProperty$1, CONTEXT_FLOW_IN = 1, CONTEXT_FLOW_OUT = 2, CONTEXT_BLOCK_IN = 3, CONTEXT_BLOCK_OUT = 4, CHOMPING_CLIP = 1, CHOMPING_STRIP = 2, CHOMPING_KEEP = 3, PATTERN_NON_PRINTABLE, PATTERN_NON_ASCII_LINE_BREAKS, PATTERN_FLOW_INDICATORS, PATTERN_TAG_HANDLE, PATTERN_TAG_URI, simpleEscapeCheck, simpleEscapeMap, i2, directiveHandlers, loadAll_1, load_1, loader, _toString, _hasOwnProperty, CHAR_BOM = 65279, CHAR_TAB = 9, CHAR_LINE_FEED = 10, CHAR_CARRIAGE_RETURN = 13, CHAR_SPACE = 32, CHAR_EXCLAMATION = 33, CHAR_DOUBLE_QUOTE = 34, CHAR_SHARP = 35, CHAR_PERCENT = 37, CHAR_AMPERSAND = 38, CHAR_SINGLE_QUOTE = 39, CHAR_ASTERISK = 42, CHAR_COMMA = 44, CHAR_MINUS = 45, CHAR_COLON = 58, CHAR_EQUALS = 61, CHAR_GREATER_THAN = 62, CHAR_QUESTION = 63, CHAR_COMMERCIAL_AT = 64, CHAR_LEFT_SQUARE_BRACKET = 91, CHAR_RIGHT_SQUARE_BRACKET = 93, CHAR_GRAVE_ACCENT = 96, CHAR_LEFT_CURLY_BRACKET = 123, CHAR_VERTICAL_LINE = 124, CHAR_RIGHT_CURLY_BRACKET = 125, ESCAPE_SEQUENCES, DEPRECATED_BOOLEANS_SYNTAX, DEPRECATED_BASE60_SYNTAX, QUOTING_TYPE_SINGLE = 1, QUOTING_TYPE_DOUBLE = 2, STYLE_PLAIN = 1, STYLE_SINGLE = 2, STYLE_LITERAL = 3, STYLE_FOLDED = 4, STYLE_DOUBLE = 5, dump_1, dumper, Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load3, loadAll, dump, YAMLException, types14, safeLoad, safeLoadAll, safeDump, jsYaml, js_yaml_default;
266050
+ \r`, binary, _hasOwnProperty$3, _toString$2, omap, _toString$1, pairs, _hasOwnProperty$2, set2, _default3, _hasOwnProperty$1, CONTEXT_FLOW_IN = 1, CONTEXT_FLOW_OUT = 2, CONTEXT_BLOCK_IN = 3, CONTEXT_BLOCK_OUT = 4, CHOMPING_CLIP = 1, CHOMPING_STRIP = 2, CHOMPING_KEEP = 3, PATTERN_NON_PRINTABLE, PATTERN_NON_ASCII_LINE_BREAKS, PATTERN_FLOW_INDICATORS, PATTERN_TAG_HANDLE, PATTERN_TAG_URI, simpleEscapeCheck, simpleEscapeMap, i2, directiveHandlers, loadAll_1, load_1, loader, _toString, _hasOwnProperty, CHAR_BOM = 65279, CHAR_TAB = 9, CHAR_LINE_FEED = 10, CHAR_CARRIAGE_RETURN = 13, CHAR_SPACE = 32, CHAR_EXCLAMATION = 33, CHAR_DOUBLE_QUOTE = 34, CHAR_SHARP = 35, CHAR_PERCENT = 37, CHAR_AMPERSAND = 38, CHAR_SINGLE_QUOTE = 39, CHAR_ASTERISK = 42, CHAR_COMMA = 44, CHAR_MINUS = 45, CHAR_COLON = 58, CHAR_EQUALS = 61, CHAR_GREATER_THAN = 62, CHAR_QUESTION = 63, CHAR_COMMERCIAL_AT = 64, CHAR_LEFT_SQUARE_BRACKET = 91, CHAR_RIGHT_SQUARE_BRACKET = 93, CHAR_GRAVE_ACCENT = 96, CHAR_LEFT_CURLY_BRACKET = 123, CHAR_VERTICAL_LINE = 124, CHAR_RIGHT_CURLY_BRACKET = 125, ESCAPE_SEQUENCES, DEPRECATED_BOOLEANS_SYNTAX, DEPRECATED_BASE60_SYNTAX, QUOTING_TYPE_SINGLE = 1, QUOTING_TYPE_DOUBLE = 2, STYLE_PLAIN = 1, STYLE_SINGLE = 2, STYLE_LITERAL = 3, STYLE_FOLDED = 4, STYLE_DOUBLE = 5, dump_1, dumper, Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load3, loadAll, dump, YAMLException, types14, safeLoad, safeLoadAll, safeDump, jsYaml;
266054
266051
  var init_js_yaml = __esm(() => {
266055
- /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
266052
+ /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
266056
266053
  isNothing_1 = isNothing;
266057
266054
  isObject_1 = isObject3;
266058
266055
  toArray_1 = toArray;
@@ -266447,7 +266444,6 @@ var init_js_yaml = __esm(() => {
266447
266444
  safeLoadAll,
266448
266445
  safeDump
266449
266446
  };
266450
- js_yaml_default = jsYaml;
266451
266447
  });
266452
266448
 
266453
266449
  // src/commands/scenario/src/process-manager.ts
@@ -301152,7 +301148,10 @@ class CdpHTTPRequest extends HTTPRequest {
301152
301148
  this._redirectChain = redirectChain;
301153
301149
  this.#initiator = data.initiator;
301154
301150
  this.interception.enabled = allowInterception;
301155
- for (const [key, value] of Object.entries(data.request.headers)) {
301151
+ this.updateHeaders(data.request.headers);
301152
+ }
301153
+ updateHeaders(headers) {
301154
+ for (const [key, value] of Object.entries(headers)) {
301156
301155
  this.#headers[key.toLowerCase()] = value;
301157
301156
  }
301158
301157
  }
@@ -301393,16 +301392,24 @@ class NetworkEventManager {
301393
301392
  #requestWillBeSentMap = new Map;
301394
301393
  #requestPausedMap = new Map;
301395
301394
  #httpRequestsMap = new Map;
301395
+ #requestWillBeSentExtraInfoMap = new Map;
301396
301396
  #responseReceivedExtraInfoMap = new Map;
301397
301397
  #queuedRedirectInfoMap = new Map;
301398
301398
  #queuedEventGroupMap = new Map;
301399
301399
  forget(networkRequestId) {
301400
301400
  this.#requestWillBeSentMap.delete(networkRequestId);
301401
301401
  this.#requestPausedMap.delete(networkRequestId);
301402
+ this.#requestWillBeSentExtraInfoMap.delete(networkRequestId);
301402
301403
  this.#queuedEventGroupMap.delete(networkRequestId);
301403
301404
  this.#queuedRedirectInfoMap.delete(networkRequestId);
301404
301405
  this.#responseReceivedExtraInfoMap.delete(networkRequestId);
301405
301406
  }
301407
+ requestExtraInfo(networkRequestId) {
301408
+ if (!this.#requestWillBeSentExtraInfoMap.has(networkRequestId)) {
301409
+ this.#requestWillBeSentExtraInfoMap.set(networkRequestId, []);
301410
+ }
301411
+ return this.#requestWillBeSentExtraInfoMap.get(networkRequestId);
301412
+ }
301406
301413
  responseExtraInfo(networkRequestId) {
301407
301414
  if (!this.#responseReceivedExtraInfoMap.has(networkRequestId)) {
301408
301415
  this.#responseReceivedExtraInfoMap.set(networkRequestId, []);
@@ -301508,6 +301515,7 @@ class NetworkManager extends EventEmitter4 {
301508
301515
  ["Fetch.requestPaused", this.#onRequestPaused],
301509
301516
  ["Fetch.authRequired", this.#onAuthRequired],
301510
301517
  ["Network.requestWillBeSent", this.#onRequestWillBeSent],
301518
+ ["Network.requestWillBeSentExtraInfo", this.#onRequestWillBeSentExtraInfo],
301511
301519
  ["Network.requestServedFromCache", this.#onRequestServedFromCache],
301512
301520
  ["Network.responseReceived", this.#onResponseReceived],
301513
301521
  ["Network.loadingFinished", this.#onLoadingFinished],
@@ -301814,15 +301822,31 @@ class NetworkManager extends EventEmitter4 {
301814
301822
  if (request2) {
301815
301823
  this.#handleRequestRedirect(client, request2, event.redirectResponse, redirectResponseExtraInfo);
301816
301824
  redirectChain = request2._redirectChain;
301825
+ const extraInfo2 = this.#networkEventManager.requestExtraInfo(event.requestId).shift();
301826
+ if (extraInfo2) {
301827
+ request2.updateHeaders(extraInfo2.headers);
301828
+ }
301817
301829
  }
301818
301830
  }
301819
301831
  const frame = event.frameId ? this.#frameManager.frame(event.frameId) : null;
301820
301832
  const request = new CdpHTTPRequest(client, frame, fetchRequestId, this.#userRequestInterceptionEnabled, event, redirectChain);
301833
+ const extraInfo = this.#networkEventManager.requestExtraInfo(event.requestId).shift();
301834
+ if (extraInfo) {
301835
+ request.updateHeaders(extraInfo.headers);
301836
+ }
301821
301837
  request._fromMemoryCache = fromMemoryCache;
301822
301838
  this.#networkEventManager.storeRequest(event.requestId, request);
301823
301839
  this.emit(NetworkManagerEvent.Request, request);
301824
301840
  request.finalizeInterceptions();
301825
301841
  }
301842
+ #onRequestWillBeSentExtraInfo(_client, event) {
301843
+ const request = this.#networkEventManager.getRequest(event.requestId);
301844
+ if (request) {
301845
+ request.updateHeaders(event.headers);
301846
+ } else {
301847
+ this.#networkEventManager.requestExtraInfo(event.requestId).push(event);
301848
+ }
301849
+ }
301826
301850
  #onRequestServedFromCache(client, event) {
301827
301851
  const requestWillBeSentEvent = this.#networkEventManager.getRequestWillBeSent(event.requestId);
301828
301852
  let request = this.#networkEventManager.getRequest(event.requestId);
@@ -306953,9 +306977,9 @@ init_WaitTask();
306953
306977
  init_XPathQueryHandler();
306954
306978
  // ../../node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js
306955
306979
  var PUPPETEER_REVISIONS = Object.freeze({
306956
- chrome: "142.0.7444.61",
306957
- "chrome-headless-shell": "142.0.7444.61",
306958
- firefox: "stable_144.0.2"
306980
+ chrome: "142.0.7444.162",
306981
+ "chrome-headless-shell": "142.0.7444.162",
306982
+ firefox: "stable_145.0"
306959
306983
  });
306960
306984
  // ../../node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js
306961
306985
  init_Deferred();
@@ -313357,5 +313381,5 @@ main().catch((error46) => {
313357
313381
  process.exit(1);
313358
313382
  });
313359
313383
 
313360
- //# debugId=BFBDA849ABDDCE7664756E2164756E21
313384
+ //# debugId=760611387BCE214664756E2164756E21
313361
313385
  //# sourceMappingURL=index.js.map