@superblocksteam/cli 2.0.87-next.0 → 2.0.87

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 (90) hide show
  1. package/README.md +1 -1
  2. package/dist/{acorn-KWHFXVJN.js → acorn-EBDNNTTK.js} +3 -3
  3. package/dist/{angular-6UPYFI3D.js → angular-RO53M6HA.js} +3 -3
  4. package/dist/{api-OB36A5FZ.js → api-6MVQRP2X.js} +4 -4
  5. package/dist/{babel-M4SO3YTZ.js → babel-TJVKITBT.js} +3 -3
  6. package/dist/{chunk-SA5FHRMX.js → chunk-3Y7ZC43R.js} +3 -3
  7. package/dist/{chunk-6BMAJXAB.js → chunk-4T3DXKU5.js} +3 -3
  8. package/dist/{chunk-PCDWNUF5.js → chunk-7WIEHNNK.js} +3 -3
  9. package/dist/{chunk-MU3QCUYB.js → chunk-7ZCQ7AOH.js} +3 -3
  10. package/dist/{chunk-CMHBVWIT.js → chunk-BHPF5QCV.js} +4 -4
  11. package/dist/{chunk-6JMJIC6V.js → chunk-IDXHISUQ.js} +3 -3
  12. package/dist/{chunk-2IVTETGC.js → chunk-LD5G7NFI.js} +3 -3
  13. package/dist/{chunk-23A4BJUO.js → chunk-OFPSDVOL.js} +3 -3
  14. package/dist/{chunk-JP5K4D36.js → chunk-PU7D7ANC.js} +4 -4
  15. package/dist/{chunk-RGPPZYRU.js → chunk-SZHKF7XL.js} +4 -4
  16. package/dist/{chunk-R3JXKS4S.js → chunk-UFCOHD4F.js} +3 -3
  17. package/dist/{chunk-SVT5TBWC.js → chunk-XNFQWP5A.js} +2 -2
  18. package/dist/{cli-truncate-TXUCWJML.js → cli-truncate-O45W2S6X.js} +5 -5
  19. package/dist/commands/dev-parent.js +2 -2
  20. package/dist/{embedded-playwright-mcp-server-IWF2GPNA.js → embedded-playwright-mcp-server-TU5OGNHR.js} +3 -3
  21. package/dist/{enquirer-ZFGFGMV7.js → enquirer-Z67IBGTA.js} +4 -4
  22. package/dist/{estree-WGJN4ZMF.js → estree-VXITKKIH.js} +3 -3
  23. package/dist/{flow-HOYFXVGN.js → flow-JUWFMOOS.js} +3 -3
  24. package/dist/{getMachineId-bsd-AQALJJVM.js → getMachineId-bsd-4UE6TSKN.js} +5 -5
  25. package/dist/{getMachineId-darwin-SECXOMVP.js → getMachineId-darwin-I3P3MHFN.js} +5 -5
  26. package/dist/{getMachineId-linux-Q54RASXC.js → getMachineId-linux-E6Q2CVFW.js} +4 -4
  27. package/dist/{getMachineId-unsupported-5WRCCCXD.js → getMachineId-unsupported-G4GDG2QD.js} +4 -4
  28. package/dist/{getMachineId-win-YKT4SCJB.js → getMachineId-win-6YFJ3MML.js} +5 -5
  29. package/dist/{glimmer-SPYBQNSN.js → glimmer-FQLBIA6C.js} +3 -3
  30. package/dist/{graphql-ZGIT4C2K.js → graphql-R3FFICVB.js} +3 -3
  31. package/dist/{html-7MRDW3DC.js → html-ALBYCIIS.js} +3 -3
  32. package/dist/index.js +627 -304
  33. package/dist/index.js.map +1 -1
  34. package/dist/{jiti-2NTDKD4V.js → jiti-YSYRISLF.js} +3 -3
  35. package/dist/{log-update-XKCQ7L7H.js → log-update-CNLJLPJC.js} +6 -6
  36. package/dist/{markdown-QIH3HSWM.js → markdown-KCJCQME2.js} +3 -3
  37. package/dist/{meriyah-OIJNOVGR.js → meriyah-TOGR32ZM.js} +3 -3
  38. package/dist/{postcss-CMLDGFIE.js → postcss-PTXTZHB5.js} +3 -3
  39. package/dist/{read-pkg-ELWZ6J2U.js → read-pkg-VRGRAD4Q.js} +4 -4
  40. package/dist/{spans-EDIGB6ZA.js → spans-W2VNUCQ7.js} +4 -4
  41. package/dist/{src-JSZZC5MH.js → src-XUTZTA5T.js} +3 -3
  42. package/dist/{token-GDHHKRJK.js → token-L2SBIL5F.js} +5 -5
  43. package/dist/{token-util-7EJSB7AM.js → token-util-LWOOXMCB.js} +5 -5
  44. package/dist/{typescript-2LJF34QX.js → typescript-SN4AI5BO.js} +3 -3
  45. package/dist/{wrap-ansi-OTEM7CYF.js → wrap-ansi-IAVXOIGA.js} +5 -5
  46. package/dist/{yaml-DV7ZN3RH.js → yaml-47DFAMJR.js} +3 -3
  47. package/oclif.manifest.json +1 -1
  48. package/package.json +4 -4
  49. /package/dist/{acorn-KWHFXVJN.js.map → acorn-EBDNNTTK.js.map} +0 -0
  50. /package/dist/{angular-6UPYFI3D.js.map → angular-RO53M6HA.js.map} +0 -0
  51. /package/dist/{api-OB36A5FZ.js.map → api-6MVQRP2X.js.map} +0 -0
  52. /package/dist/{babel-M4SO3YTZ.js.map → babel-TJVKITBT.js.map} +0 -0
  53. /package/dist/{chunk-SA5FHRMX.js.map → chunk-3Y7ZC43R.js.map} +0 -0
  54. /package/dist/{chunk-6BMAJXAB.js.map → chunk-4T3DXKU5.js.map} +0 -0
  55. /package/dist/{chunk-PCDWNUF5.js.map → chunk-7WIEHNNK.js.map} +0 -0
  56. /package/dist/{chunk-MU3QCUYB.js.map → chunk-7ZCQ7AOH.js.map} +0 -0
  57. /package/dist/{chunk-CMHBVWIT.js.map → chunk-BHPF5QCV.js.map} +0 -0
  58. /package/dist/{chunk-6JMJIC6V.js.map → chunk-IDXHISUQ.js.map} +0 -0
  59. /package/dist/{chunk-2IVTETGC.js.map → chunk-LD5G7NFI.js.map} +0 -0
  60. /package/dist/{chunk-23A4BJUO.js.map → chunk-OFPSDVOL.js.map} +0 -0
  61. /package/dist/{chunk-JP5K4D36.js.map → chunk-PU7D7ANC.js.map} +0 -0
  62. /package/dist/{chunk-RGPPZYRU.js.map → chunk-SZHKF7XL.js.map} +0 -0
  63. /package/dist/{chunk-R3JXKS4S.js.map → chunk-UFCOHD4F.js.map} +0 -0
  64. /package/dist/{chunk-SVT5TBWC.js.map → chunk-XNFQWP5A.js.map} +0 -0
  65. /package/dist/{cli-truncate-TXUCWJML.js.map → cli-truncate-O45W2S6X.js.map} +0 -0
  66. /package/dist/{embedded-playwright-mcp-server-IWF2GPNA.js.map → embedded-playwright-mcp-server-TU5OGNHR.js.map} +0 -0
  67. /package/dist/{enquirer-ZFGFGMV7.js.map → enquirer-Z67IBGTA.js.map} +0 -0
  68. /package/dist/{estree-WGJN4ZMF.js.map → estree-VXITKKIH.js.map} +0 -0
  69. /package/dist/{flow-HOYFXVGN.js.map → flow-JUWFMOOS.js.map} +0 -0
  70. /package/dist/{getMachineId-bsd-AQALJJVM.js.map → getMachineId-bsd-4UE6TSKN.js.map} +0 -0
  71. /package/dist/{getMachineId-darwin-SECXOMVP.js.map → getMachineId-darwin-I3P3MHFN.js.map} +0 -0
  72. /package/dist/{getMachineId-linux-Q54RASXC.js.map → getMachineId-linux-E6Q2CVFW.js.map} +0 -0
  73. /package/dist/{getMachineId-unsupported-5WRCCCXD.js.map → getMachineId-unsupported-G4GDG2QD.js.map} +0 -0
  74. /package/dist/{getMachineId-win-YKT4SCJB.js.map → getMachineId-win-6YFJ3MML.js.map} +0 -0
  75. /package/dist/{glimmer-SPYBQNSN.js.map → glimmer-FQLBIA6C.js.map} +0 -0
  76. /package/dist/{graphql-ZGIT4C2K.js.map → graphql-R3FFICVB.js.map} +0 -0
  77. /package/dist/{html-7MRDW3DC.js.map → html-ALBYCIIS.js.map} +0 -0
  78. /package/dist/{jiti-2NTDKD4V.js.map → jiti-YSYRISLF.js.map} +0 -0
  79. /package/dist/{log-update-XKCQ7L7H.js.map → log-update-CNLJLPJC.js.map} +0 -0
  80. /package/dist/{markdown-QIH3HSWM.js.map → markdown-KCJCQME2.js.map} +0 -0
  81. /package/dist/{meriyah-OIJNOVGR.js.map → meriyah-TOGR32ZM.js.map} +0 -0
  82. /package/dist/{postcss-CMLDGFIE.js.map → postcss-PTXTZHB5.js.map} +0 -0
  83. /package/dist/{read-pkg-ELWZ6J2U.js.map → read-pkg-VRGRAD4Q.js.map} +0 -0
  84. /package/dist/{spans-EDIGB6ZA.js.map → spans-W2VNUCQ7.js.map} +0 -0
  85. /package/dist/{src-JSZZC5MH.js.map → src-XUTZTA5T.js.map} +0 -0
  86. /package/dist/{token-GDHHKRJK.js.map → token-L2SBIL5F.js.map} +0 -0
  87. /package/dist/{token-util-7EJSB7AM.js.map → token-util-LWOOXMCB.js.map} +0 -0
  88. /package/dist/{typescript-2LJF34QX.js.map → typescript-SN4AI5BO.js.map} +0 -0
  89. /package/dist/{wrap-ansi-OTEM7CYF.js.map → wrap-ansi-IAVXOIGA.js.map} +0 -0
  90. /package/dist/{yaml-DV7ZN3RH.js.map → yaml-47DFAMJR.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  if (typeof process === 'object' && process !== null &&
2
2
  process.env !== null && typeof process.env === 'object') {
3
3
  process.env.DD_GIT_REPOSITORY_URL = 'https://token@github.com/superblocksteam/superblocks.git';
4
- process.env.DD_GIT_COMMIT_SHA = 'dd03175974518484abb3f61b465d2ef94df17128';
4
+ process.env.DD_GIT_COMMIT_SHA = '12e8c8e185bb77777506c0e73cfc43b1c95aa5ca';
5
5
  }
6
6
  import { createRequire as $dd_createRequire } from 'module';
7
7
  import { fileURLToPath as $dd_fileURLToPath } from 'url';
@@ -14,10 +14,10 @@ import {
14
14
  require_commonjs,
15
15
  require_lib as require_lib2,
16
16
  require_lib2 as require_lib3
17
- } from "./chunk-PCDWNUF5.js";
17
+ } from "./chunk-7WIEHNNK.js";
18
18
  import {
19
19
  require_enquirer
20
- } from "./chunk-23A4BJUO.js";
20
+ } from "./chunk-OFPSDVOL.js";
21
21
  import {
22
22
  require_agent_info_exporter,
23
23
  require_base,
@@ -46,7 +46,7 @@ import {
46
46
  require_utils,
47
47
  require_writer,
48
48
  require_writers
49
- } from "./chunk-2IVTETGC.js";
49
+ } from "./chunk-LD5G7NFI.js";
50
50
  import {
51
51
  debounce_default,
52
52
  get_default,
@@ -62,10 +62,10 @@ import {
62
62
  require_lib,
63
63
  require_slugify,
64
64
  throttle_default
65
- } from "./chunk-MU3QCUYB.js";
65
+ } from "./chunk-7ZCQ7AOH.js";
66
66
  import {
67
67
  require_token_error
68
- } from "./chunk-SA5FHRMX.js";
68
+ } from "./chunk-3Y7ZC43R.js";
69
69
  import {
70
70
  SpanKind,
71
71
  SpanStatusCode,
@@ -74,7 +74,7 @@ import {
74
74
  init_esm,
75
75
  metrics,
76
76
  trace
77
- } from "./chunk-6JMJIC6V.js";
77
+ } from "./chunk-IDXHISUQ.js";
78
78
  import {
79
79
  __commonJS,
80
80
  __esm,
@@ -83,7 +83,7 @@ import {
83
83
  __toCommonJS,
84
84
  __toESM,
85
85
  init_cjs_shims
86
- } from "./chunk-SVT5TBWC.js";
86
+ } from "./chunk-XNFQWP5A.js";
87
87
 
88
88
  // ../../../../node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/lib/TemplateTag/TemplateTag.js
89
89
  var require_TemplateTag = __commonJS({
@@ -113,8 +113,8 @@ var require_TemplateTag = __commonJS({
113
113
  function _taggedTemplateLiteral(strings2, raw2) {
114
114
  return Object.freeze(Object.defineProperties(strings2, { raw: { value: Object.freeze(raw2) } }));
115
115
  }
116
- function _classCallCheck(instance2, Constructor) {
117
- if (!(instance2 instanceof Constructor)) {
116
+ function _classCallCheck(instance3, Constructor) {
117
+ if (!(instance3 instanceof Constructor)) {
118
118
  throw new TypeError("Cannot call a class as a function");
119
119
  }
120
120
  }
@@ -21840,8 +21840,8 @@ var require_get_vercel_oidc_token = __commonJS({
21840
21840
  }
21841
21841
  try {
21842
21842
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
21843
- await import("./token-util-7EJSB7AM.js"),
21844
- await import("./token-GDHHKRJK.js")
21843
+ await import("./token-util-LWOOXMCB.js"),
21844
+ await import("./token-L2SBIL5F.js")
21845
21845
  ]);
21846
21846
  if (!token2 || isExpired(getTokenPayload(token2))) {
21847
21847
  await refreshToken();
@@ -41450,8 +41450,8 @@ var require_global_utils = __commonJS({
41450
41450
  var platform_1 = require_platform();
41451
41451
  exports2.GLOBAL_LOGS_API_KEY = Symbol.for("io.opentelemetry.js.api.logs");
41452
41452
  exports2._global = platform_1._globalThis;
41453
- function makeGetter(requiredVersion, instance2, fallback) {
41454
- return (version5) => version5 === requiredVersion ? instance2 : fallback;
41453
+ function makeGetter(requiredVersion, instance3, fallback) {
41454
+ return (version5) => version5 === requiredVersion ? instance3 : fallback;
41455
41455
  }
41456
41456
  exports2.makeGetter = makeGetter;
41457
41457
  exports2.API_BACKWARDS_COMPATIBILITY_VERSION = 1;
@@ -42654,9 +42654,9 @@ var require_combine = __commonJS({
42654
42654
  }
42655
42655
  module2.exports = (...formats) => {
42656
42656
  const combinedFormat = format5(cascade(formats));
42657
- const instance2 = combinedFormat();
42658
- instance2.Format = combinedFormat.Format;
42659
- return instance2;
42657
+ const instance3 = combinedFormat();
42658
+ instance3.Format = combinedFormat.Format;
42659
+ return instance3;
42660
42660
  };
42661
42661
  module2.exports.cascade = cascade;
42662
42662
  }
@@ -44495,8 +44495,8 @@ var require_buffer_list = __commonJS({
44495
44495
  }
44496
44496
  return obj;
44497
44497
  }
44498
- function _classCallCheck(instance2, Constructor) {
44499
- if (!(instance2 instanceof Constructor)) {
44498
+ function _classCallCheck(instance3, Constructor) {
44499
+ if (!(instance3 instanceof Constructor)) {
44500
44500
  throw new TypeError("Cannot call a class as a function");
44501
44501
  }
44502
44502
  }
@@ -56734,8 +56734,8 @@ var require_global_utils2 = __commonJS({
56734
56734
  var platform_1 = require_platform3();
56735
56735
  exports2.GLOBAL_LOGS_API_KEY = Symbol.for("io.opentelemetry.js.api.logs");
56736
56736
  exports2._global = platform_1._globalThis;
56737
- function makeGetter(requiredVersion, instance2, fallback) {
56738
- return (version5) => version5 === requiredVersion ? instance2 : fallback;
56737
+ function makeGetter(requiredVersion, instance3, fallback) {
56738
+ return (version5) => version5 === requiredVersion ? instance3 : fallback;
56739
56739
  }
56740
56740
  exports2.makeGetter = makeGetter;
56741
56741
  exports2.API_BACKWARDS_COMPATIBILITY_VERSION = 1;
@@ -101712,16 +101712,16 @@ var require_execution = __commonJS({
101712
101712
  }
101713
101713
  static fromJSONString(json2) {
101714
101714
  const obj = JSON.parse(json2);
101715
- const instance2 = new _ExecutionOutput();
101716
- instance2.error = obj.error;
101717
- instance2.children = obj.children;
101718
- instance2.executionTime = obj.executionTime;
101719
- instance2.log = obj.log;
101720
- instance2.structuredLog = obj.structuredLog;
101721
- instance2.output = obj.output;
101722
- instance2.request = obj.request;
101723
- instance2.startTimeUtc = obj.startTimeUtc;
101724
- return instance2;
101715
+ const instance3 = new _ExecutionOutput();
101716
+ instance3.error = obj.error;
101717
+ instance3.children = obj.children;
101718
+ instance3.executionTime = obj.executionTime;
101719
+ instance3.log = obj.log;
101720
+ instance3.structuredLog = obj.structuredLog;
101721
+ instance3.output = obj.output;
101722
+ instance3.request = obj.request;
101723
+ instance3.startTimeUtc = obj.startTimeUtc;
101724
+ return instance3;
101725
101725
  }
101726
101726
  logInfo(msg) {
101727
101727
  if (msg) {
@@ -129047,7 +129047,7 @@ var require_websocket = __commonJS({
129047
129047
  const http3 = __require("http");
129048
129048
  const net5 = __require("net");
129049
129049
  const tls = __require("tls");
129050
- const { randomBytes: randomBytes3, createHash: createHash2 } = __require("crypto");
129050
+ const { randomBytes: randomBytes3, createHash: createHash3 } = __require("crypto");
129051
129051
  const { Duplex, Readable: Readable5 } = __require("stream");
129052
129052
  const { URL: URL3 } = __require("url");
129053
129053
  const PerMessageDeflate = require_permessage_deflate();
@@ -129704,7 +129704,7 @@ var require_websocket = __commonJS({
129704
129704
  abortHandshake(websocket, socket, "Invalid Upgrade header");
129705
129705
  return;
129706
129706
  }
129707
- const digest = createHash2("sha1").update(key2 + GUID).digest("base64");
129707
+ const digest = createHash3("sha1").update(key2 + GUID).digest("base64");
129708
129708
  if (res.headers["sec-websocket-accept"] !== digest) {
129709
129709
  abortHandshake(websocket, socket, "Invalid Sec-WebSocket-Accept header");
129710
129710
  return;
@@ -130089,7 +130089,7 @@ var require_websocket_server = __commonJS({
130089
130089
  const EventEmitter7 = __require("events");
130090
130090
  const http3 = __require("http");
130091
130091
  const { Duplex } = __require("stream");
130092
- const { createHash: createHash2 } = __require("crypto");
130092
+ const { createHash: createHash3 } = __require("crypto");
130093
130093
  const extension = require_extension();
130094
130094
  const PerMessageDeflate = require_permessage_deflate();
130095
130095
  const subprotocol = require_subprotocol();
@@ -130386,7 +130386,7 @@ var require_websocket_server = __commonJS({
130386
130386
  );
130387
130387
  }
130388
130388
  if (this._state > RUNNING) return abortHandshake(socket, 503);
130389
- const digest = createHash2("sha1").update(key2 + GUID).digest("base64");
130389
+ const digest = createHash3("sha1").update(key2 + GUID).digest("base64");
130390
130390
  const headers = [
130391
130391
  "HTTP/1.1 101 Switching Protocols",
130392
130392
  "Upgrade: websocket",
@@ -139421,19 +139421,19 @@ var require_getMachineId = __commonJS({
139421
139421
  if (!getMachineIdImpl) {
139422
139422
  switch (process5.platform) {
139423
139423
  case "darwin":
139424
- getMachineIdImpl = (await import("./getMachineId-darwin-SECXOMVP.js")).getMachineId;
139424
+ getMachineIdImpl = (await import("./getMachineId-darwin-I3P3MHFN.js")).getMachineId;
139425
139425
  break;
139426
139426
  case "linux":
139427
- getMachineIdImpl = (await import("./getMachineId-linux-Q54RASXC.js")).getMachineId;
139427
+ getMachineIdImpl = (await import("./getMachineId-linux-E6Q2CVFW.js")).getMachineId;
139428
139428
  break;
139429
139429
  case "freebsd":
139430
- getMachineIdImpl = (await import("./getMachineId-bsd-AQALJJVM.js")).getMachineId;
139430
+ getMachineIdImpl = (await import("./getMachineId-bsd-4UE6TSKN.js")).getMachineId;
139431
139431
  break;
139432
139432
  case "win32":
139433
- getMachineIdImpl = (await import("./getMachineId-win-YKT4SCJB.js")).getMachineId;
139433
+ getMachineIdImpl = (await import("./getMachineId-win-6YFJ3MML.js")).getMachineId;
139434
139434
  break;
139435
139435
  default:
139436
- getMachineIdImpl = (await import("./getMachineId-unsupported-5WRCCCXD.js")).getMachineId;
139436
+ getMachineIdImpl = (await import("./getMachineId-unsupported-G4GDG2QD.js")).getMachineId;
139437
139437
  break;
139438
139438
  }
139439
139439
  }
@@ -191450,8 +191450,8 @@ var require_datastreams = __commonJS({
191450
191450
  };
191451
191451
  for (const method of methods) {
191452
191452
  LazyClass.prototype[method] = function(...args) {
191453
- const instance2 = activate() && new ActiveClass(...constructorArgs);
191454
- Object.setPrototypeOf(this, instance2);
191453
+ const instance3 = activate() && new ActiveClass(...constructorArgs);
191454
+ Object.setPrototypeOf(this, instance3);
191455
191455
  return this[method](...args);
191456
191456
  };
191457
191457
  }
@@ -201219,8 +201219,8 @@ var require_client2 = __commonJS({
201219
201219
  function getGrpc(client) {
201220
201220
  let proto = client;
201221
201221
  do {
201222
- const instance2 = instances.get(proto);
201223
- if (instance2) return instance2;
201222
+ const instance3 = instances.get(proto);
201223
+ if (instance3) return instance3;
201224
201224
  } while (proto = Object.getPrototypeOf(proto));
201225
201225
  }
201226
201226
  function patch(hasPeer = false) {
@@ -210255,11 +210255,11 @@ var require_mongodb_core = __commonJS({
210255
210255
  };
210256
210256
  return wrapped;
210257
210257
  }
210258
- function instrument(operation, command, instance2, args, server, ns, ops, options8 = {}) {
210258
+ function instrument(operation, command, instance3, args, server, ns, ops, options8 = {}) {
210259
210259
  const name15 = options8.name || ops && Object.keys(ops)[0];
210260
210260
  const index2 = args.length - 1;
210261
210261
  const callback = args[index2];
210262
- if (typeof callback !== "function") return command.apply(instance2, args);
210262
+ if (typeof callback !== "function") return command.apply(instance3, args);
210263
210263
  const serverInfo = server && server.s && server.s.options;
210264
210264
  const ctx = {
210265
210265
  ns,
@@ -210276,7 +210276,7 @@ var require_mongodb_core = __commonJS({
210276
210276
  return finishCh.runStores(ctx, callback2, this, ...arguments);
210277
210277
  });
210278
210278
  try {
210279
- return command.apply(instance2, args);
210279
+ return command.apply(instance3, args);
210280
210280
  } catch (err) {
210281
210281
  ctx.error = err;
210282
210282
  errorCh.publish(ctx);
@@ -210284,7 +210284,7 @@ var require_mongodb_core = __commonJS({
210284
210284
  }
210285
210285
  });
210286
210286
  }
210287
- function instrumentPromise(operation, command, instance2, args, server, ns, ops, options8 = {}) {
210287
+ function instrumentPromise(operation, command, instance3, args, server, ns, ops, options8 = {}) {
210288
210288
  const name15 = options8.name || ops && Object.keys(ops)[0];
210289
210289
  const serverInfo = server && server.s && server.s.options;
210290
210290
  const ctx = {
@@ -210294,7 +210294,7 @@ var require_mongodb_core = __commonJS({
210294
210294
  name: name15
210295
210295
  };
210296
210296
  return startCh.runStores(ctx, () => {
210297
- const promise2 = command.apply(instance2, args);
210297
+ const promise2 = command.apply(instance3, args);
210298
210298
  promise2.then(function(res) {
210299
210299
  ctx.result = res;
210300
210300
  finishCh.publish(ctx);
@@ -211365,8 +211365,8 @@ var require_url6 = __commonJS({
211365
211365
  isURL: true
211366
211366
  });
211367
211367
  }
211368
- static [Symbol.hasInstance](instance2) {
211369
- return instance2 instanceof URL3;
211368
+ static [Symbol.hasInstance](instance3) {
211369
+ return instance3 instanceof URL3;
211370
211370
  }
211371
211371
  };
211372
211372
  });
@@ -212180,14 +212180,14 @@ var require_pino = __commonJS({
212180
212180
  var shimmer = require_datadog_shimmer();
212181
212181
  function wrapPino(symbol16, wrapper, pino) {
212182
212182
  return function pinoWithTrace() {
212183
- const instance2 = pino.apply(this, arguments);
212184
- Object.defineProperty(instance2, symbol16, {
212183
+ const instance3 = pino.apply(this, arguments);
212184
+ Object.defineProperty(instance3, symbol16, {
212185
212185
  configurable: true,
212186
212186
  enumerable: true,
212187
212187
  writable: true,
212188
- value: wrapper(instance2[symbol16])
212188
+ value: wrapper(instance3[symbol16])
212189
212189
  });
212190
- return instance2;
212190
+ return instance3;
212191
212191
  };
212192
212192
  }
212193
212193
  function wrapAsJson(asJson) {
@@ -214295,7 +214295,7 @@ var require_log_collector = __commonJS({
214295
214295
  }
214296
214296
  return hash2;
214297
214297
  }
214298
- function createHash2(logEntry) {
214298
+ function createHash3(logEntry) {
214299
214299
  const prime = 31;
214300
214300
  let result = logEntry.level ? hashCode(logEntry.level) : 0;
214301
214301
  result = (prime * result | 0) + (logEntry.message ? hashCode(logEntry.message) : 0) | 0;
@@ -214336,7 +214336,7 @@ var require_log_collector = __commonJS({
214336
214336
  if (!logEntry) {
214337
214337
  return false;
214338
214338
  }
214339
- const hash2 = createHash2(logEntry);
214339
+ const hash2 = createHash3(logEntry);
214340
214340
  if (logs3.has(hash2)) {
214341
214341
  logs3.get(hash2).count++;
214342
214342
  } else {
@@ -214350,7 +214350,7 @@ var require_log_collector = __commonJS({
214350
214350
  },
214351
214351
  // Used for testing
214352
214352
  hasEntry(logEntry) {
214353
- return logs3.has(createHash2(logEntry));
214353
+ return logs3.has(createHash3(logEntry));
214354
214354
  },
214355
214355
  drain() {
214356
214356
  if (logs3.size === 0) return;
@@ -225972,12 +225972,12 @@ var require_utils24 = __commonJS({
225972
225972
  "../../../../node_modules/.pnpm/dd-trace@5.69.0/node_modules/dd-trace/packages/datadog-plugin-google-cloud-vertexai/src/utils.js"(exports2, module2) {
225973
225973
  "use strict";
225974
225974
  init_cjs_shims();
225975
- function extractModel(instance2) {
225976
- const model = instance2.model || instance2.resourcePath || instance2.publisherModelEndpoint;
225975
+ function extractModel(instance3) {
225976
+ const model = instance3.model || instance3.resourcePath || instance3.publisherModelEndpoint;
225977
225977
  return model?.split("/").pop();
225978
225978
  }
225979
- function extractSystemInstructions(instance2) {
225980
- const systemInstruction = instance2.systemInstruction;
225979
+ function extractSystemInstructions(instance3) {
225980
+ const systemInstruction = instance3.systemInstruction;
225981
225981
  if (!systemInstruction) return [];
225982
225982
  if (typeof systemInstruction === "string") return [systemInstruction];
225983
225983
  return systemInstruction.parts?.map((part) => part.text);
@@ -226009,14 +226009,14 @@ var require_tracing3 = __commonJS({
226009
226009
  Object.assign(this, makeUtilities("vertexai", this._tracerConfig));
226010
226010
  }
226011
226011
  bindStart(ctx) {
226012
- const { instance: instance2, resource } = ctx;
226012
+ const { instance: instance3, resource } = ctx;
226013
226013
  const span = this.startSpan("vertexai.request", {
226014
226014
  service: this.config.service,
226015
226015
  resource,
226016
226016
  kind: "client",
226017
226017
  meta: {
226018
226018
  [MEASURED]: 1,
226019
- "vertexai.request.model": extractModel(instance2)
226019
+ "vertexai.request.model": extractModel(instance3)
226020
226020
  }
226021
226021
  }, false);
226022
226022
  const store = storage("legacy").getStore() || {};
@@ -226061,10 +226061,10 @@ var require_vertexai = __commonJS({
226061
226061
  setLLMObsTags(ctx) {
226062
226062
  const span = ctx.currentStore?.span;
226063
226063
  if (!span) return;
226064
- const { instance: instance2, result, request: request3 } = ctx;
226064
+ const { instance: instance3, result, request: request3 } = ctx;
226065
226065
  const history = ctx.history || [];
226066
- const systemInstructions = extractSystemInstructions(instance2);
226067
- const metadata = getMetadata(instance2);
226066
+ const systemInstructions = extractSystemInstructions(instance3);
226067
+ const metadata = getMetadata(instance3);
226068
226068
  const inputMessages = extractInputMessages(request3, history, systemInstructions);
226069
226069
  const outputMessages = extractOutputMessages(result);
226070
226070
  const metrics2 = extractMetrics(result);
@@ -226073,9 +226073,9 @@ var require_vertexai = __commonJS({
226073
226073
  this._tagger.tagMetrics(span, metrics2);
226074
226074
  }
226075
226075
  };
226076
- function getMetadata(instance2) {
226076
+ function getMetadata(instance3) {
226077
226077
  const metadata = {};
226078
- const modelConfig = instance2.generationConfig;
226078
+ const modelConfig = instance3.generationConfig;
226079
226079
  if (!modelConfig) return metadata;
226080
226080
  for (const [parameter, parameterKey] of [
226081
226081
  ["temperature", "temperature"],
@@ -227127,10 +227127,10 @@ var require_default2 = __commonJS({
227127
227127
  init_cjs_shims();
227128
227128
  var LangChainHandler = class {
227129
227129
  // no-op for default handler
227130
- extractProvider(instance2) {
227130
+ extractProvider(instance3) {
227131
227131
  }
227132
227132
  // no-op for default handler
227133
- extractModel(instance2) {
227133
+ extractModel(instance3) {
227134
227134
  }
227135
227135
  };
227136
227136
  module2.exports = LangChainHandler;
@@ -227144,12 +227144,12 @@ var require_language_models = __commonJS({
227144
227144
  init_cjs_shims();
227145
227145
  var LangChainHandler = require_default2();
227146
227146
  var LangChainLanguageModelHandler = class extends LangChainHandler {
227147
- extractProvider(instance2) {
227148
- return typeof instance2._llmType === "function" && instance2._llmType().split("-")[0];
227147
+ extractProvider(instance3) {
227148
+ return typeof instance3._llmType === "function" && instance3._llmType().split("-")[0];
227149
227149
  }
227150
- extractModel(instance2) {
227150
+ extractModel(instance3) {
227151
227151
  for (const attr2 of ["model", "modelName", "modelId", "modelKey", "repoId"]) {
227152
- const modelName = instance2[attr2];
227152
+ const modelName = instance3[attr2];
227153
227153
  if (modelName) return modelName;
227154
227154
  }
227155
227155
  }
@@ -227165,12 +227165,12 @@ var require_embedding = __commonJS({
227165
227165
  init_cjs_shims();
227166
227166
  var LangChainHandler = require_default2();
227167
227167
  var LangChainEmbeddingHandler = class extends LangChainHandler {
227168
- extractProvider(instance2) {
227169
- return instance2.constructor.name.split("Embeddings")[0].toLowerCase();
227168
+ extractProvider(instance3) {
227169
+ return instance3.constructor.name.split("Embeddings")[0].toLowerCase();
227170
227170
  }
227171
- extractModel(instance2) {
227171
+ extractModel(instance3) {
227172
227172
  for (const attr2 of ["model", "modelName", "modelId", "modelKey", "repoId"]) {
227173
- const modelName = instance2[attr2];
227173
+ const modelName = instance3[attr2];
227174
227174
  if (modelName) return modelName;
227175
227175
  }
227176
227176
  }
@@ -227218,9 +227218,9 @@ var require_tracing4 = __commonJS({
227218
227218
  }
227219
227219
  const resource = ctx.resource = resourceParts.join(".");
227220
227220
  const handler = this.handlers[type] || this.handlers.default;
227221
- const instance2 = ctx.instance;
227222
- const provider = handler.extractProvider(instance2);
227223
- const model = handler.extractModel(instance2);
227221
+ const instance3 = ctx.instance;
227222
+ const provider = handler.extractProvider(instance3);
227223
+ const model = handler.extractModel(instance3);
227224
227224
  const span = this.startSpan("langchain.request", {
227225
227225
  service: this.config.service,
227226
227226
  resource,
@@ -227596,8 +227596,8 @@ var require_tool = __commonJS({
227596
227596
  init_cjs_shims();
227597
227597
  var LangChainLLMObsHandler = require_handlers();
227598
227598
  var LangChainLLMObsToolHandler = class extends LangChainLLMObsHandler {
227599
- getName({ instance: instance2 }) {
227600
- return instance2.name;
227599
+ getName({ instance: instance3 }) {
227600
+ return instance3.name;
227601
227601
  }
227602
227602
  setMetaTags({ span, inputs, results }) {
227603
227603
  this._tagger.tagTextIO(span, inputs, results);
@@ -227689,9 +227689,9 @@ var require_langchain2 = __commonJS({
227689
227689
  const modelProvider = tags2["langchain.request.provider"];
227690
227690
  const modelName = tags2["langchain.request.model"];
227691
227691
  const kind = this.getKind(ctx.type, modelProvider);
227692
- const instance2 = ctx.instance || ctx.self;
227692
+ const instance3 = ctx.instance || ctx.self;
227693
227693
  const handler = this._handlers[ctx.type];
227694
- const name15 = handler?.getName({ span, instance: instance2 });
227694
+ const name15 = handler?.getName({ span, instance: instance3 });
227695
227695
  return {
227696
227696
  modelProvider,
227697
227697
  modelName,
@@ -290333,15 +290333,15 @@ var require_api_files = __commonJS({
290333
290333
  exports2.readAppApiYamlFile = readAppApiYamlFile4;
290334
290334
  exports2.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks2;
290335
290335
  async function writeApiFiles3(...args) {
290336
- const esmFunction = await import("./api-OB36A5FZ.js");
290336
+ const esmFunction = await import("./api-6MVQRP2X.js");
290337
290337
  return esmFunction.writeApiFiles(...args);
290338
290338
  }
290339
290339
  async function readAppApiYamlFile4(...args) {
290340
- const esmFunction = await import("./api-OB36A5FZ.js");
290340
+ const esmFunction = await import("./api-6MVQRP2X.js");
290341
290341
  return esmFunction.readAppApiYamlFile(...args);
290342
290342
  }
290343
290343
  async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
290344
- const esmFunction = await import("./api-OB36A5FZ.js");
290344
+ const esmFunction = await import("./api-6MVQRP2X.js");
290345
290345
  return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
290346
290346
  }
290347
290347
  }
@@ -362761,8 +362761,8 @@ var require_lib16 = __commonJS({
362761
362761
  }
362762
362762
  $RefParser.parse = function parse36(path84, schema, options8, callback) {
362763
362763
  let Class2 = this;
362764
- let instance2 = new Class2();
362765
- return instance2.parse.apply(instance2, arguments);
362764
+ let instance3 = new Class2();
362765
+ return instance3.parse.apply(instance3, arguments);
362766
362766
  };
362767
362767
  $RefParser.prototype.parse = async function parse36(path84, schema, options8, callback) {
362768
362768
  let args = normalizeArgs(arguments);
@@ -362811,8 +362811,8 @@ var require_lib16 = __commonJS({
362811
362811
  };
362812
362812
  $RefParser.resolve = function resolve10(path84, schema, options8, callback) {
362813
362813
  let Class2 = this;
362814
- let instance2 = new Class2();
362815
- return instance2.resolve.apply(instance2, arguments);
362814
+ let instance3 = new Class2();
362815
+ return instance3.resolve.apply(instance3, arguments);
362816
362816
  };
362817
362817
  $RefParser.prototype.resolve = async function resolve10(path84, schema, options8, callback) {
362818
362818
  let me = this;
@@ -362828,8 +362828,8 @@ var require_lib16 = __commonJS({
362828
362828
  };
362829
362829
  $RefParser.bundle = function bundle(path84, schema, options8, callback) {
362830
362830
  let Class2 = this;
362831
- let instance2 = new Class2();
362832
- return instance2.bundle.apply(instance2, arguments);
362831
+ let instance3 = new Class2();
362832
+ return instance3.bundle.apply(instance3, arguments);
362833
362833
  };
362834
362834
  $RefParser.prototype.bundle = async function bundle(path84, schema, options8, callback) {
362835
362835
  let me = this;
@@ -362845,8 +362845,8 @@ var require_lib16 = __commonJS({
362845
362845
  };
362846
362846
  $RefParser.dereference = function dereference(path84, schema, options8, callback) {
362847
362847
  let Class2 = this;
362848
- let instance2 = new Class2();
362849
- return instance2.dereference.apply(instance2, arguments);
362848
+ let instance3 = new Class2();
362849
+ return instance3.dereference.apply(instance3, arguments);
362850
362850
  };
362851
362851
  $RefParser.prototype.dereference = async function dereference(path84, schema, options8, callback) {
362852
362852
  let me = this;
@@ -362944,8 +362944,8 @@ var require_lib17 = __commonJS({
362944
362944
  };
362945
362945
  SwaggerParser2.validate = function(path84, api, options8, callback) {
362946
362946
  let Class2 = this;
362947
- let instance2 = new Class2();
362948
- return instance2.validate.apply(instance2, arguments);
362947
+ let instance3 = new Class2();
362948
+ return instance3.validate.apply(instance3, arguments);
362949
362949
  };
362950
362950
  SwaggerParser2.prototype.validate = async function(path84, api, options8, callback) {
362951
362951
  let me = this;
@@ -450915,8 +450915,8 @@ Rule: "${err.ruleId}"`;
450915
450915
  * @param {Linter} instance The Linter instance to get.
450916
450916
  * @returns {LinterInternalSlots} The internal slots.
450917
450917
  */
450918
- getLinterInternalSlots(instance2) {
450919
- return internalSlotsMap.get(instance2);
450918
+ getLinterInternalSlots(instance3) {
450919
+ return internalSlotsMap.get(instance3);
450920
450920
  }
450921
450921
  };
450922
450922
  }
@@ -452687,7 +452687,7 @@ var require_config_loader = __commonJS({
452687
452687
  * @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
452688
452688
  */
452689
452689
  static async loadJiti() {
452690
- const { createJiti } = await import("./jiti-2NTDKD4V.js");
452690
+ const { createJiti } = await import("./jiti-YSYRISLF.js");
452691
452691
  const version5 = require_package7().version;
452692
452692
  return { createJiti, version: version5 };
452693
452693
  }
@@ -453016,7 +453016,7 @@ var require_eslint_helpers = __commonJS({
453016
453016
  }
453017
453017
  async function globMatch({ basePath, pattern }) {
453018
453018
  let found = false;
453019
- const { hfs } = await import("./src-JSZZC5MH.js");
453019
+ const { hfs } = await import("./src-XUTZTA5T.js");
453020
453020
  const patternToUse = normalizeToPosix(path84.relative(basePath, pattern));
453021
453021
  const matcher = new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
453022
453022
  const walkSettings = {
@@ -453056,7 +453056,7 @@ var require_eslint_helpers = __commonJS({
453056
453056
  return new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
453057
453057
  });
453058
453058
  const unmatchedPatterns = /* @__PURE__ */ new Set([...relativeToPatterns.keys()]);
453059
- const { hfs } = await import("./src-JSZZC5MH.js");
453059
+ const { hfs } = await import("./src-XUTZTA5T.js");
453060
453060
  const walk2 = hfs.walk(basePath, {
453061
453061
  async directoryFilter(entry) {
453062
453062
  if (!matchers.some((matcher) => matcher.match(entry.path, true))) {
@@ -453740,7 +453740,7 @@ var require_retrier = __commonJS({
453740
453740
  init_cjs_shims();
453741
453741
  var MAX_TASK_TIMEOUT = 6e4;
453742
453742
  var MAX_TASK_DELAY = 100;
453743
- var MAX_CONCURRENCY = 1e3;
453743
+ var MAX_CONCURRENCY2 = 1e3;
453744
453744
  function debug3(message) {
453745
453745
  if (globalThis?.process?.env.DEBUG === "@hwc/retry") {
453746
453746
  console.debug(message);
@@ -453885,7 +453885,7 @@ var require_retrier = __commonJS({
453885
453885
  * @param {number} [options.maxDelay] The maximum delay for the queue.
453886
453886
  * @param {number} [options.concurrency] The maximum number of concurrent tasks.
453887
453887
  */
453888
- constructor(check3, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY, concurrency = MAX_CONCURRENCY } = {}) {
453888
+ constructor(check3, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY, concurrency = MAX_CONCURRENCY2 } = {}) {
453889
453889
  if (typeof check3 !== "function") {
453890
453890
  throw new Error("Missing function to check errors");
453891
453891
  }
@@ -455468,11 +455468,11 @@ var require_eslintrc = __commonJS({
455468
455468
  }
455469
455469
  }
455470
455470
  }
455471
- function createConfig(instance2, indices) {
455471
+ function createConfig(instance3, indices) {
455472
455472
  const config4 = new ExtractedConfig();
455473
455473
  const ignorePatterns = [];
455474
455474
  for (const index2 of indices) {
455475
- const element = instance2[index2];
455475
+ const element = instance3[index2];
455476
455476
  if (!config4.parser && element.parser) {
455477
455477
  if (element.parser.error) {
455478
455478
  throw element.parser.error;
@@ -455543,10 +455543,10 @@ var require_eslintrc = __commonJS({
455543
455543
  deleteMutationMethods(slots.processorMap);
455544
455544
  deleteMutationMethods(slots.ruleMap);
455545
455545
  }
455546
- function ensurePluginMemberMaps(instance2) {
455547
- const slots = internalSlotsMap$2.get(instance2);
455546
+ function ensurePluginMemberMaps(instance3) {
455547
+ const slots = internalSlotsMap$2.get(instance3);
455548
455548
  if (!slots.ruleMap) {
455549
- initPluginMemberMaps(instance2, slots);
455549
+ initPluginMemberMaps(instance3, slots);
455550
455550
  }
455551
455551
  return slots;
455552
455552
  }
@@ -455616,8 +455616,8 @@ var require_eslintrc = __commonJS({
455616
455616
  return false;
455617
455617
  }
455618
455618
  };
455619
- function getUsedExtractedConfigs(instance2) {
455620
- const { cache: cache4 } = internalSlotsMap$2.get(instance2);
455619
+ function getUsedExtractedConfigs(instance3) {
455620
+ const { cache: cache4 } = internalSlotsMap$2.get(instance3);
455621
455621
  return Array.from(cache4.values());
455622
455622
  }
455623
455623
  var ConfigDependency = class {
@@ -459406,8 +459406,8 @@ Error: ${ex.message}`;
459406
459406
  * @param {CLIEngine} instance The CLIEngine instance to get.
459407
459407
  * @returns {CLIEngineInternalSlots} The internal slots.
459408
459408
  */
459409
- getCLIEngineInternalSlots(instance2) {
459410
- return internalSlotsMap.get(instance2);
459409
+ getCLIEngineInternalSlots(instance3) {
459410
+ return internalSlotsMap.get(instance3);
459411
459411
  }
459412
459412
  };
459413
459413
  }
@@ -459948,8 +459948,8 @@ var require_legacy_eslint = __commonJS({
459948
459948
  * @param {ESLint} instance The ESLint instance to get.
459949
459949
  * @returns {ESLintPrivateMembers} The instance's private class members.
459950
459950
  */
459951
- getESLintPrivateMembers(instance2) {
459952
- return privateMembersMap.get(instance2);
459951
+ getESLintPrivateMembers(instance3) {
459952
+ return privateMembersMap.get(instance3);
459953
459953
  }
459954
459954
  };
459955
459955
  }
@@ -483391,8 +483391,8 @@ var require_errors11 = __commonJS({
483391
483391
  this.name = "UndiciError";
483392
483392
  this.code = "UND_ERR";
483393
483393
  }
483394
- static [Symbol.hasInstance](instance2) {
483395
- return instance2 && instance2[kUndiciError] === true;
483394
+ static [Symbol.hasInstance](instance3) {
483395
+ return instance3 && instance3[kUndiciError] === true;
483396
483396
  }
483397
483397
  get [kUndiciError]() {
483398
483398
  return true;
@@ -483406,8 +483406,8 @@ var require_errors11 = __commonJS({
483406
483406
  this.message = message || "Connect Timeout Error";
483407
483407
  this.code = "UND_ERR_CONNECT_TIMEOUT";
483408
483408
  }
483409
- static [Symbol.hasInstance](instance2) {
483410
- return instance2 && instance2[kConnectTimeoutError] === true;
483409
+ static [Symbol.hasInstance](instance3) {
483410
+ return instance3 && instance3[kConnectTimeoutError] === true;
483411
483411
  }
483412
483412
  get [kConnectTimeoutError]() {
483413
483413
  return true;
@@ -483421,8 +483421,8 @@ var require_errors11 = __commonJS({
483421
483421
  this.message = message || "Headers Timeout Error";
483422
483422
  this.code = "UND_ERR_HEADERS_TIMEOUT";
483423
483423
  }
483424
- static [Symbol.hasInstance](instance2) {
483425
- return instance2 && instance2[kHeadersTimeoutError] === true;
483424
+ static [Symbol.hasInstance](instance3) {
483425
+ return instance3 && instance3[kHeadersTimeoutError] === true;
483426
483426
  }
483427
483427
  get [kHeadersTimeoutError]() {
483428
483428
  return true;
@@ -483436,8 +483436,8 @@ var require_errors11 = __commonJS({
483436
483436
  this.message = message || "Headers Overflow Error";
483437
483437
  this.code = "UND_ERR_HEADERS_OVERFLOW";
483438
483438
  }
483439
- static [Symbol.hasInstance](instance2) {
483440
- return instance2 && instance2[kHeadersOverflowError] === true;
483439
+ static [Symbol.hasInstance](instance3) {
483440
+ return instance3 && instance3[kHeadersOverflowError] === true;
483441
483441
  }
483442
483442
  get [kHeadersOverflowError]() {
483443
483443
  return true;
@@ -483451,8 +483451,8 @@ var require_errors11 = __commonJS({
483451
483451
  this.message = message || "Body Timeout Error";
483452
483452
  this.code = "UND_ERR_BODY_TIMEOUT";
483453
483453
  }
483454
- static [Symbol.hasInstance](instance2) {
483455
- return instance2 && instance2[kBodyTimeoutError] === true;
483454
+ static [Symbol.hasInstance](instance3) {
483455
+ return instance3 && instance3[kBodyTimeoutError] === true;
483456
483456
  }
483457
483457
  get [kBodyTimeoutError]() {
483458
483458
  return true;
@@ -483466,8 +483466,8 @@ var require_errors11 = __commonJS({
483466
483466
  this.message = message || "Invalid Argument Error";
483467
483467
  this.code = "UND_ERR_INVALID_ARG";
483468
483468
  }
483469
- static [Symbol.hasInstance](instance2) {
483470
- return instance2 && instance2[kInvalidArgumentError] === true;
483469
+ static [Symbol.hasInstance](instance3) {
483470
+ return instance3 && instance3[kInvalidArgumentError] === true;
483471
483471
  }
483472
483472
  get [kInvalidArgumentError]() {
483473
483473
  return true;
@@ -483481,8 +483481,8 @@ var require_errors11 = __commonJS({
483481
483481
  this.message = message || "Invalid Return Value Error";
483482
483482
  this.code = "UND_ERR_INVALID_RETURN_VALUE";
483483
483483
  }
483484
- static [Symbol.hasInstance](instance2) {
483485
- return instance2 && instance2[kInvalidReturnValueError] === true;
483484
+ static [Symbol.hasInstance](instance3) {
483485
+ return instance3 && instance3[kInvalidReturnValueError] === true;
483486
483486
  }
483487
483487
  get [kInvalidReturnValueError]() {
483488
483488
  return true;
@@ -483496,8 +483496,8 @@ var require_errors11 = __commonJS({
483496
483496
  this.message = message || "The operation was aborted";
483497
483497
  this.code = "UND_ERR_ABORT";
483498
483498
  }
483499
- static [Symbol.hasInstance](instance2) {
483500
- return instance2 && instance2[kAbortError] === true;
483499
+ static [Symbol.hasInstance](instance3) {
483500
+ return instance3 && instance3[kAbortError] === true;
483501
483501
  }
483502
483502
  get [kAbortError]() {
483503
483503
  return true;
@@ -483511,8 +483511,8 @@ var require_errors11 = __commonJS({
483511
483511
  this.message = message || "Request aborted";
483512
483512
  this.code = "UND_ERR_ABORTED";
483513
483513
  }
483514
- static [Symbol.hasInstance](instance2) {
483515
- return instance2 && instance2[kRequestAbortedError] === true;
483514
+ static [Symbol.hasInstance](instance3) {
483515
+ return instance3 && instance3[kRequestAbortedError] === true;
483516
483516
  }
483517
483517
  get [kRequestAbortedError]() {
483518
483518
  return true;
@@ -483526,8 +483526,8 @@ var require_errors11 = __commonJS({
483526
483526
  this.message = message || "Request information";
483527
483527
  this.code = "UND_ERR_INFO";
483528
483528
  }
483529
- static [Symbol.hasInstance](instance2) {
483530
- return instance2 && instance2[kInformationalError] === true;
483529
+ static [Symbol.hasInstance](instance3) {
483530
+ return instance3 && instance3[kInformationalError] === true;
483531
483531
  }
483532
483532
  get [kInformationalError]() {
483533
483533
  return true;
@@ -483541,8 +483541,8 @@ var require_errors11 = __commonJS({
483541
483541
  this.message = message || "Request body length does not match content-length header";
483542
483542
  this.code = "UND_ERR_REQ_CONTENT_LENGTH_MISMATCH";
483543
483543
  }
483544
- static [Symbol.hasInstance](instance2) {
483545
- return instance2 && instance2[kRequestContentLengthMismatchError] === true;
483544
+ static [Symbol.hasInstance](instance3) {
483545
+ return instance3 && instance3[kRequestContentLengthMismatchError] === true;
483546
483546
  }
483547
483547
  get [kRequestContentLengthMismatchError]() {
483548
483548
  return true;
@@ -483556,8 +483556,8 @@ var require_errors11 = __commonJS({
483556
483556
  this.message = message || "Response body length does not match content-length header";
483557
483557
  this.code = "UND_ERR_RES_CONTENT_LENGTH_MISMATCH";
483558
483558
  }
483559
- static [Symbol.hasInstance](instance2) {
483560
- return instance2 && instance2[kResponseContentLengthMismatchError] === true;
483559
+ static [Symbol.hasInstance](instance3) {
483560
+ return instance3 && instance3[kResponseContentLengthMismatchError] === true;
483561
483561
  }
483562
483562
  get [kResponseContentLengthMismatchError]() {
483563
483563
  return true;
@@ -483571,8 +483571,8 @@ var require_errors11 = __commonJS({
483571
483571
  this.message = message || "The client is destroyed";
483572
483572
  this.code = "UND_ERR_DESTROYED";
483573
483573
  }
483574
- static [Symbol.hasInstance](instance2) {
483575
- return instance2 && instance2[kClientDestroyedError] === true;
483574
+ static [Symbol.hasInstance](instance3) {
483575
+ return instance3 && instance3[kClientDestroyedError] === true;
483576
483576
  }
483577
483577
  get [kClientDestroyedError]() {
483578
483578
  return true;
@@ -483586,8 +483586,8 @@ var require_errors11 = __commonJS({
483586
483586
  this.message = message || "The client is closed";
483587
483587
  this.code = "UND_ERR_CLOSED";
483588
483588
  }
483589
- static [Symbol.hasInstance](instance2) {
483590
- return instance2 && instance2[kClientClosedError] === true;
483589
+ static [Symbol.hasInstance](instance3) {
483590
+ return instance3 && instance3[kClientClosedError] === true;
483591
483591
  }
483592
483592
  get [kClientClosedError]() {
483593
483593
  return true;
@@ -483602,8 +483602,8 @@ var require_errors11 = __commonJS({
483602
483602
  this.code = "UND_ERR_SOCKET";
483603
483603
  this.socket = socket;
483604
483604
  }
483605
- static [Symbol.hasInstance](instance2) {
483606
- return instance2 && instance2[kSocketError] === true;
483605
+ static [Symbol.hasInstance](instance3) {
483606
+ return instance3 && instance3[kSocketError] === true;
483607
483607
  }
483608
483608
  get [kSocketError]() {
483609
483609
  return true;
@@ -483617,8 +483617,8 @@ var require_errors11 = __commonJS({
483617
483617
  this.message = message || "Not supported error";
483618
483618
  this.code = "UND_ERR_NOT_SUPPORTED";
483619
483619
  }
483620
- static [Symbol.hasInstance](instance2) {
483621
- return instance2 && instance2[kNotSupportedError] === true;
483620
+ static [Symbol.hasInstance](instance3) {
483621
+ return instance3 && instance3[kNotSupportedError] === true;
483622
483622
  }
483623
483623
  get [kNotSupportedError]() {
483624
483624
  return true;
@@ -483632,8 +483632,8 @@ var require_errors11 = __commonJS({
483632
483632
  this.message = message || "No upstream has been added to the BalancedPool";
483633
483633
  this.code = "UND_ERR_BPL_MISSING_UPSTREAM";
483634
483634
  }
483635
- static [Symbol.hasInstance](instance2) {
483636
- return instance2 && instance2[kBalancedPoolMissingUpstreamError] === true;
483635
+ static [Symbol.hasInstance](instance3) {
483636
+ return instance3 && instance3[kBalancedPoolMissingUpstreamError] === true;
483637
483637
  }
483638
483638
  get [kBalancedPoolMissingUpstreamError]() {
483639
483639
  return true;
@@ -483647,8 +483647,8 @@ var require_errors11 = __commonJS({
483647
483647
  this.code = code2 ? `HPE_${code2}` : void 0;
483648
483648
  this.data = data3 ? data3.toString() : void 0;
483649
483649
  }
483650
- static [Symbol.hasInstance](instance2) {
483651
- return instance2 && instance2[kHTTPParserError] === true;
483650
+ static [Symbol.hasInstance](instance3) {
483651
+ return instance3 && instance3[kHTTPParserError] === true;
483652
483652
  }
483653
483653
  get [kHTTPParserError]() {
483654
483654
  return true;
@@ -483662,8 +483662,8 @@ var require_errors11 = __commonJS({
483662
483662
  this.message = message || "Response content exceeded max size";
483663
483663
  this.code = "UND_ERR_RES_EXCEEDED_MAX_SIZE";
483664
483664
  }
483665
- static [Symbol.hasInstance](instance2) {
483666
- return instance2 && instance2[kResponseExceededMaxSizeError] === true;
483665
+ static [Symbol.hasInstance](instance3) {
483666
+ return instance3 && instance3[kResponseExceededMaxSizeError] === true;
483667
483667
  }
483668
483668
  get [kResponseExceededMaxSizeError]() {
483669
483669
  return true;
@@ -483680,8 +483680,8 @@ var require_errors11 = __commonJS({
483680
483680
  this.data = data3;
483681
483681
  this.headers = headers;
483682
483682
  }
483683
- static [Symbol.hasInstance](instance2) {
483684
- return instance2 && instance2[kRequestRetryError] === true;
483683
+ static [Symbol.hasInstance](instance3) {
483684
+ return instance3 && instance3[kRequestRetryError] === true;
483685
483685
  }
483686
483686
  get [kRequestRetryError]() {
483687
483687
  return true;
@@ -483698,8 +483698,8 @@ var require_errors11 = __commonJS({
483698
483698
  this.body = body;
483699
483699
  this.headers = headers;
483700
483700
  }
483701
- static [Symbol.hasInstance](instance2) {
483702
- return instance2 && instance2[kResponseError] === true;
483701
+ static [Symbol.hasInstance](instance3) {
483702
+ return instance3 && instance3[kResponseError] === true;
483703
483703
  }
483704
483704
  get [kResponseError]() {
483705
483705
  return true;
@@ -483714,8 +483714,8 @@ var require_errors11 = __commonJS({
483714
483714
  this.code = "UND_ERR_PRX_TLS";
483715
483715
  this.cause = cause;
483716
483716
  }
483717
- static [Symbol.hasInstance](instance2) {
483718
- return instance2 && instance2[kSecureProxyConnectionError] === true;
483717
+ static [Symbol.hasInstance](instance3) {
483718
+ return instance3 && instance3[kSecureProxyConnectionError] === true;
483719
483719
  }
483720
483720
  get [kSecureProxyConnectionError]() {
483721
483721
  return true;
@@ -483729,8 +483729,8 @@ var require_errors11 = __commonJS({
483729
483729
  this.message = message || "Maximum allowed origins reached";
483730
483730
  this.code = "UND_ERR_MAX_ORIGINS_REACHED";
483731
483731
  }
483732
- static [Symbol.hasInstance](instance2) {
483733
- return instance2 && instance2[kMaxOriginsReachedError] === true;
483732
+ static [Symbol.hasInstance](instance3) {
483733
+ return instance3 && instance3[kMaxOriginsReachedError] === true;
483734
483734
  }
483735
483735
  get [kMaxOriginsReachedError]() {
483736
483736
  return true;
@@ -487344,9 +487344,9 @@ var require_runtime_features = __commonJS({
487344
487344
  return result;
487345
487345
  }
487346
487346
  };
487347
- var instance2 = new RuntimeFeatures();
487348
- module2.exports.runtimeFeatures = instance2;
487349
- module2.exports.default = instance2;
487347
+ var instance3 = new RuntimeFeatures();
487348
+ module2.exports.runtimeFeatures = instance3;
487349
+ module2.exports.default = instance3;
487350
487350
  }
487351
487351
  });
487352
487352
 
@@ -489378,7 +489378,7 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
489378
489378
  source: body.source
489379
489379
  };
489380
489380
  }
489381
- function bodyMixinMethods(instance2, getInternalState) {
489381
+ function bodyMixinMethods(instance3, getInternalState) {
489382
489382
  const methods = {
489383
489383
  blob() {
489384
489384
  return consumeBody(this, (bytes) => {
@@ -489389,18 +489389,18 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
489389
489389
  mimeType = serializeAMimeType(mimeType);
489390
489390
  }
489391
489391
  return new Blob([bytes], { type: mimeType });
489392
- }, instance2, getInternalState);
489392
+ }, instance3, getInternalState);
489393
489393
  },
489394
489394
  arrayBuffer() {
489395
489395
  return consumeBody(this, (bytes) => {
489396
489396
  return new Uint8Array(bytes).buffer;
489397
- }, instance2, getInternalState);
489397
+ }, instance3, getInternalState);
489398
489398
  },
489399
489399
  text() {
489400
- return consumeBody(this, utf8DecodeBytes, instance2, getInternalState);
489400
+ return consumeBody(this, utf8DecodeBytes, instance3, getInternalState);
489401
489401
  },
489402
489402
  json() {
489403
- return consumeBody(this, parseJSONFromBytes, instance2, getInternalState);
489403
+ return consumeBody(this, parseJSONFromBytes, instance3, getInternalState);
489404
489404
  },
489405
489405
  formData() {
489406
489406
  return consumeBody(this, (value2) => {
@@ -489426,12 +489426,12 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
489426
489426
  throw new TypeError(
489427
489427
  'Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".'
489428
489428
  );
489429
- }, instance2, getInternalState);
489429
+ }, instance3, getInternalState);
489430
489430
  },
489431
489431
  bytes() {
489432
489432
  return consumeBody(this, (bytes) => {
489433
489433
  return new Uint8Array(bytes);
489434
- }, instance2, getInternalState);
489434
+ }, instance3, getInternalState);
489435
489435
  }
489436
489436
  };
489437
489437
  return methods;
@@ -489439,9 +489439,9 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
489439
489439
  function mixinBody(prototype3, getInternalState) {
489440
489440
  Object.assign(prototype3.prototype, bodyMixinMethods(prototype3, getInternalState));
489441
489441
  }
489442
- function consumeBody(object2, convertBytesToJSValue, instance2, getInternalState) {
489442
+ function consumeBody(object2, convertBytesToJSValue, instance3, getInternalState) {
489443
489443
  try {
489444
- webidl.brandCheck(object2, instance2);
489444
+ webidl.brandCheck(object2, instance3);
489445
489445
  } catch (e) {
489446
489446
  return Promise.reject(e);
489447
489447
  }
@@ -494532,8 +494532,8 @@ var require_mock_errors = __commonJS({
494532
494532
  this.message = message || "The request does not match any registered mock dispatches";
494533
494533
  this.code = "UND_MOCK_ERR_MOCK_NOT_MATCHED";
494534
494534
  }
494535
- static [Symbol.hasInstance](instance2) {
494536
- return instance2 && instance2[kMockNotMatchedError] === true;
494535
+ static [Symbol.hasInstance](instance3) {
494536
+ return instance3 && instance3[kMockNotMatchedError] === true;
494537
494537
  }
494538
494538
  get [kMockNotMatchedError]() {
494539
494539
  return true;
@@ -497203,14 +497203,14 @@ var require_dns3 = __commonJS({
497203
497203
  maxItems: interceptorOpts?.maxItems ?? Infinity,
497204
497204
  storage: interceptorOpts?.storage
497205
497205
  };
497206
- const instance2 = new DNSInstance(opts);
497206
+ const instance3 = new DNSInstance(opts);
497207
497207
  return (dispatch) => {
497208
497208
  return function dnsInterceptor(origDispatchOpts, handler) {
497209
497209
  const origin2 = origDispatchOpts.origin.constructor === URL ? origDispatchOpts.origin : new URL(origDispatchOpts.origin);
497210
497210
  if (isIP(origin2.hostname) !== 0) {
497211
497211
  return dispatch(origDispatchOpts, handler);
497212
497212
  }
497213
- instance2.runLookup(origin2, origDispatchOpts, (err, newOrigin) => {
497213
+ instance3.runLookup(origin2, origDispatchOpts, (err, newOrigin) => {
497214
497214
  if (err) {
497215
497215
  return handler.onResponseError(null, err);
497216
497216
  }
@@ -497226,7 +497226,7 @@ var require_dns3 = __commonJS({
497226
497226
  };
497227
497227
  dispatch(
497228
497228
  dispatchOpts,
497229
- instance2.getHandler(
497229
+ instance3.getHandler(
497230
497230
  { origin: origin2, dispatch, handler, newOrigin },
497231
497231
  origDispatchOpts
497232
497232
  )
@@ -505493,9 +505493,9 @@ var require_websocketerror = __commonJS({
505493
505493
  }
505494
505494
  return new Proxy(DOMException, {
505495
505495
  construct(target, args, newTarget) {
505496
- const instance2 = Reflect.construct(target, args, target);
505497
- Object.setPrototypeOf(instance2, newTarget.prototype);
505498
- return instance2;
505496
+ const instance3 = Reflect.construct(target, args, target);
505497
+ Object.setPrototypeOf(instance3, newTarget.prototype);
505498
+ return instance3;
505499
505499
  }
505500
505500
  });
505501
505501
  }
@@ -568651,13 +568651,13 @@ var require_axios = __commonJS({
568651
568651
  var HttpStatusCode$1 = HttpStatusCode3;
568652
568652
  function createInstance2(defaultConfig) {
568653
568653
  const context = new Axios$1(defaultConfig);
568654
- const instance2 = bind2(Axios$1.prototype.request, context);
568655
- utils$1.extend(instance2, Axios$1.prototype, context, { allOwnKeys: true });
568656
- utils$1.extend(instance2, context, null, { allOwnKeys: true });
568657
- instance2.create = function create2(instanceConfig) {
568654
+ const instance3 = bind2(Axios$1.prototype.request, context);
568655
+ utils$1.extend(instance3, Axios$1.prototype, context, { allOwnKeys: true });
568656
+ utils$1.extend(instance3, context, null, { allOwnKeys: true });
568657
+ instance3.create = function create2(instanceConfig) {
568658
568658
  return createInstance2(mergeConfig4(defaultConfig, instanceConfig));
568659
568659
  };
568660
- return instance2;
568660
+ return instance3;
568661
568661
  }
568662
568662
  var axios2 = createInstance2(defaults$1);
568663
568663
  axios2.Axios = Axios$1;
@@ -579952,7 +579952,7 @@ var import_dd_trace = __toESM(require_dd_trace2());
579952
579952
  // ../sdk/package.json
579953
579953
  var package_default = {
579954
579954
  name: "@superblocksteam/sdk",
579955
- version: "2.0.87-next.0",
579955
+ version: "2.0.87",
579956
579956
  type: "module",
579957
579957
  description: "Superblocks JS SDK",
579958
579958
  homepage: "https://www.superblocks.com",
@@ -580604,8 +580604,8 @@ var ViteMessageKind = {
580604
580604
  };
580605
580605
 
580606
580606
  // ../../../vite-plugin-file-sync/dist/ai-service/index.js
580607
- var import_shared32 = __toESM(require_dist9());
580608
- var import_ai15 = __toESM(require_dist8());
580607
+ var import_shared32 = __toESM(require_dist9(), 1);
580608
+ var import_ai15 = __toESM(require_dist8(), 1);
580609
580609
 
580610
580610
  // ../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js
580611
580611
  init_cjs_shims();
@@ -585218,7 +585218,7 @@ var MAX_ATTRIBUTE_LENGTH = 64e3;
585218
585218
  var LLMObsSpanWriter = null;
585219
585219
  async function loadLLMObsSpanWriter() {
585220
585220
  if (!LLMObsSpanWriter) {
585221
- const module2 = await import("./spans-EDIGB6ZA.js");
585221
+ const module2 = await import("./spans-W2VNUCQ7.js");
585222
585222
  LLMObsSpanWriter = module2.default;
585223
585223
  }
585224
585224
  return LLMObsSpanWriter;
@@ -586551,11 +586551,7 @@ var Clark = class extends TracedFSM {
586551
586551
  // Pass through
586552
586552
  secretRedaction: streamOptions.safety.secretRedaction
586553
586553
  // Pass through
586554
- } : {
586555
- secretRedaction: {
586556
- enabled: services.features.secretRedactionEnabled ?? false
586557
- }
586558
- }
586554
+ } : void 0
586559
586555
  }, this.logger, this.tracer);
586560
586556
  }
586561
586557
  pushContextUsed(usage) {
@@ -594236,7 +594232,15 @@ var ApiExecutor = (() => {
594236
594232
  };
594237
594233
  } catch (error40) {
594238
594234
  logger15.error(`API execution failed for ${apiName}:`, getErrorMeta(error40));
594239
- const parsedError = this.parseExecutionError(error40 instanceof Error ? error40.message : String(error40));
594235
+ let errorMessage;
594236
+ if (error40 instanceof Error) {
594237
+ errorMessage = error40.message;
594238
+ } else if (typeof error40 === "object" && error40 !== null && "message" in error40) {
594239
+ errorMessage = String(error40.message);
594240
+ } else {
594241
+ errorMessage = String(error40);
594242
+ }
594243
+ const parsedError = this.parseExecutionError(errorMessage);
594240
594244
  return {
594241
594245
  success: false,
594242
594246
  errors: [
@@ -653926,8 +653930,8 @@ init_cjs_shims();
653926
653930
  var isPromise = (value2) => {
653927
653931
  return value2 instanceof Promise;
653928
653932
  };
653929
- function withErrorHandling(instance2, methodName, details) {
653930
- const originalMethod = instance2[methodName];
653933
+ function withErrorHandling(instance3, methodName, details) {
653934
+ const originalMethod = instance3[methodName];
653931
653935
  if (typeof originalMethod !== "function")
653932
653936
  return;
653933
653937
  const handleError = (error40) => {
@@ -653942,12 +653946,12 @@ function withErrorHandling(instance2, methodName, details) {
653942
653946
  message: error40 instanceof Error ? error40.message : `Unknown error in ${methodName}`,
653943
653947
  stackTrace: error40 instanceof Error ? error40.stack : void 0
653944
653948
  };
653945
- instance2.emit("error", errorEvent);
653949
+ instance3.emit("error", errorEvent);
653946
653950
  if (details.rethrow) {
653947
653951
  throw error40;
653948
653952
  }
653949
653953
  };
653950
- instance2[methodName] = function(...args) {
653954
+ instance3[methodName] = function(...args) {
653951
653955
  try {
653952
653956
  const result = originalMethod.apply(this, args);
653953
653957
  if (isPromise(result)) {
@@ -653960,13 +653964,13 @@ function withErrorHandling(instance2, methodName, details) {
653960
653964
  }
653961
653965
  };
653962
653966
  }
653963
- function applyErrorHandling(instance2, methods) {
653967
+ function applyErrorHandling(instance3, methods) {
653964
653968
  for (const [methodName, details] of Object.entries(methods)) {
653965
653969
  const finalDetails = {
653966
653970
  ...details,
653967
653971
  rethrow: details.rethrow ?? false
653968
653972
  };
653969
- withErrorHandling(instance2, methodName, finalDetails);
653973
+ withErrorHandling(instance3, methodName, finalDetails);
653970
653974
  }
653971
653975
  }
653972
653976
 
@@ -660987,11 +660991,11 @@ var ToolRegistry = class {
660987
660991
  }
660988
660992
  this.factories.set(factory7.name, factory7);
660989
660993
  if (deps !== void 0) {
660990
- const instance2 = factory7.create(deps);
660991
- if (instance2.name !== factory7.name) {
660992
- throw new Error(`Tool name mismatch: factory.name="${factory7.name}" but tool.name="${instance2.name}"`);
660994
+ const instance3 = factory7.create(deps);
660995
+ if (instance3.name !== factory7.name) {
660996
+ throw new Error(`Tool name mismatch: factory.name="${factory7.name}" but tool.name="${instance3.name}"`);
660993
660997
  }
660994
- this.instances.set(factory7.name, instance2);
660998
+ this.instances.set(factory7.name, instance3);
660995
660999
  }
660996
661000
  }
660997
661001
  /**
@@ -669823,6 +669827,10 @@ init_cjs_shims();
669823
669827
  // ../../../vite-plugin-file-sync/dist/ai-service/security/index.js
669824
669828
  init_cjs_shims();
669825
669829
 
669830
+ // ../../../vite-plugin-file-sync/dist/ai-service/security/secret-scanner-service.js
669831
+ init_cjs_shims();
669832
+ import { createHash as createHash2 } from "node:crypto";
669833
+
669826
669834
  // ../../../vite-plugin-file-sync/dist/ai-service/security/secret-scanner.js
669827
669835
  init_cjs_shims();
669828
669836
  import { spawn as spawn4, execSync } from "node:child_process";
@@ -669893,37 +669901,6 @@ function generateRedactedValue(raw2) {
669893
669901
  const prefixLength = Math.min(8, Math.floor(raw2.length / 3));
669894
669902
  return raw2.slice(0, prefixLength) + "****";
669895
669903
  }
669896
- async function scanContentForSecrets(content9, options8 = {}) {
669897
- const { timeout = 5e3, verifiedOnly = false } = options8;
669898
- const logger15 = getPrefixedLogger("[secret-scan]");
669899
- const startTime = performance.now();
669900
- logger15.debug(`Starting secret scan (contentLength=${content9.length}, timeout=${timeout}ms)`);
669901
- try {
669902
- const findings = await runTrufflehog(content9, timeout, verifiedOnly);
669903
- const duration3 = performance.now() - startTime;
669904
- logger15.debug(`TruffleHog scan completed in ${duration3.toFixed(2)}ms: found ${findings.length} potential secrets`);
669905
- const redactedContent = redactSecrets(content9, findings);
669906
- return {
669907
- success: true,
669908
- findings,
669909
- hasVerifiedSecrets: findings.some((f) => f.verified),
669910
- hasSecrets: findings.length > 0,
669911
- redactedContent
669912
- };
669913
- } catch (error40) {
669914
- const duration3 = performance.now() - startTime;
669915
- logger15.error(`Secret scan failed after ${duration3.toFixed(2)}ms: `, getErrorMeta(error40));
669916
- return {
669917
- success: false,
669918
- findings: [],
669919
- error: error40 instanceof Error ? error40.message : String(error40),
669920
- hasVerifiedSecrets: false,
669921
- hasSecrets: false,
669922
- redactedContent: content9
669923
- // Return original content on error
669924
- };
669925
- }
669926
- }
669927
669904
  async function runTrufflehog(content9, timeout, verifiedOnly) {
669928
669905
  return new Promise((resolve10, reject) => {
669929
669906
  const args = ["stdin", "--json"];
@@ -669973,6 +669950,24 @@ async function runTrufflehog(content9, timeout, verifiedOnly) {
669973
669950
  proc2.stdin.end();
669974
669951
  });
669975
669952
  }
669953
+ async function isTrufflehogAvailable() {
669954
+ return new Promise((resolve10) => {
669955
+ const args = ["--version"];
669956
+ if (!shouldSkipNoUpdateFlag()) {
669957
+ args.push("--no-update");
669958
+ }
669959
+ const proc2 = spawn4("trufflehog", args, {
669960
+ timeout: 5e3,
669961
+ stdio: ["ignore", "pipe", "pipe"]
669962
+ });
669963
+ proc2.on("close", (code2) => {
669964
+ resolve10(code2 === 0);
669965
+ });
669966
+ proc2.on("error", () => {
669967
+ resolve10(false);
669968
+ });
669969
+ });
669970
+ }
669976
669971
  var SecretRedactor = class {
669977
669972
  sortedFindings;
669978
669973
  /**
@@ -670039,6 +670034,211 @@ var SecretRedactor = class {
670039
670034
  }
670040
670035
  };
670041
670036
 
670037
+ // ../../../vite-plugin-file-sync/dist/ai-service/security/secret-scanner-service.js
670038
+ var DEFAULT_SCAN_TIMEOUT_MS = 1e4;
670039
+ var MAX_CACHE_SIZE2 = 200;
670040
+ var CACHE_TTL_MS2 = 5 * 60 * 1e3;
670041
+ var MAX_CONCURRENCY = 2;
670042
+ var SecretScannerService = class {
670043
+ /** Content hash -> cached findings. */
670044
+ cache = /* @__PURE__ */ new Map();
670045
+ /** Content hash -> in-flight scan promise (coalesces duplicate requests). */
670046
+ inflight = /* @__PURE__ */ new Map();
670047
+ /** Number of TruffleHog processes currently running. */
670048
+ activeProcesses = 0;
670049
+ /** Waiters blocked on a concurrency slot. */
670050
+ waitQueue = [];
670051
+ /**
670052
+ * Tri-state availability flag:
670053
+ * - `undefined` = not yet checked
670054
+ * - `true` = TruffleHog is installed
670055
+ * - `false` = TruffleHog is not installed
670056
+ */
670057
+ available;
670058
+ /**
670059
+ * Scan content for secrets, applying caching and concurrency control.
670060
+ *
670061
+ * @param content - Text to scan
670062
+ * @param options - Scan configuration
670063
+ * @returns Scan result with findings and redacted content
670064
+ */
670065
+ async scan(content9, options8 = {}) {
670066
+ const logger15 = getPrefixedLogger("[secret-scan]");
670067
+ const { timeout = DEFAULT_SCAN_TIMEOUT_MS, verifiedOnly = false } = options8;
670068
+ if (this.available !== true) {
670069
+ const isAvailable = await isTrufflehogAvailable();
670070
+ if (isAvailable) {
670071
+ this.available = true;
670072
+ } else {
670073
+ logger15.debug("TruffleHog not available; secret scanning skipped");
670074
+ return {
670075
+ success: false,
670076
+ findings: [],
670077
+ error: "Secret scanning unavailable: TruffleHog is not available",
670078
+ hasVerifiedSecrets: false,
670079
+ hasSecrets: false,
670080
+ redactedContent: content9
670081
+ };
670082
+ }
670083
+ }
670084
+ const cacheKey = this.hashContent(content9, verifiedOnly);
670085
+ const cached2 = this.cache.get(cacheKey);
670086
+ if (cached2 && cached2.expiresAt > Date.now()) {
670087
+ const findings = cached2.findings;
670088
+ return {
670089
+ success: true,
670090
+ findings,
670091
+ hasVerifiedSecrets: findings.some((f) => f.verified),
670092
+ hasSecrets: findings.length > 0,
670093
+ redactedContent: redactSecrets(content9, findings)
670094
+ };
670095
+ }
670096
+ const existing = this.inflight.get(cacheKey);
670097
+ if (existing) {
670098
+ try {
670099
+ const findings = await existing;
670100
+ return {
670101
+ success: true,
670102
+ findings,
670103
+ hasVerifiedSecrets: findings.some((f) => f.verified),
670104
+ hasSecrets: findings.length > 0,
670105
+ redactedContent: redactSecrets(content9, findings)
670106
+ };
670107
+ } catch (error40) {
670108
+ logger15.error("Secret scan failed (deduped)", getErrorMeta(error40));
670109
+ return {
670110
+ success: false,
670111
+ findings: [],
670112
+ error: error40 instanceof Error ? error40.message : String(error40),
670113
+ hasVerifiedSecrets: false,
670114
+ hasSecrets: false,
670115
+ redactedContent: content9
670116
+ };
670117
+ }
670118
+ }
670119
+ const scanPromise = this.runWithConcurrencyControl(content9, timeout, verifiedOnly, cacheKey);
670120
+ this.inflight.set(cacheKey, scanPromise);
670121
+ try {
670122
+ const findings = await scanPromise;
670123
+ return {
670124
+ success: true,
670125
+ findings,
670126
+ hasVerifiedSecrets: findings.some((f) => f.verified),
670127
+ hasSecrets: findings.length > 0,
670128
+ redactedContent: redactSecrets(content9, findings)
670129
+ };
670130
+ } catch (error40) {
670131
+ logger15.error("Secret scan failed", getErrorMeta(error40));
670132
+ return {
670133
+ success: false,
670134
+ findings: [],
670135
+ error: error40 instanceof Error ? error40.message : String(error40),
670136
+ hasVerifiedSecrets: false,
670137
+ hasSecrets: false,
670138
+ redactedContent: content9
670139
+ };
670140
+ } finally {
670141
+ this.inflight.delete(cacheKey);
670142
+ }
670143
+ }
670144
+ /**
670145
+ * Check if TruffleHog is available. Only caches positive results so
670146
+ * transient failures don't permanently disable scanning.
670147
+ */
670148
+ async isAvailable() {
670149
+ if (this.available !== true) {
670150
+ const isAvailable = await isTrufflehogAvailable();
670151
+ if (isAvailable) {
670152
+ this.available = true;
670153
+ }
670154
+ return isAvailable;
670155
+ }
670156
+ return true;
670157
+ }
670158
+ /**
670159
+ * Dispose of the singleton — clears the cache and resets availability.
670160
+ */
670161
+ dispose() {
670162
+ this.cache.clear();
670163
+ this.inflight.clear();
670164
+ this.available = void 0;
670165
+ }
670166
+ // -----------------------------------------------------------------------
670167
+ // Private helpers
670168
+ // -----------------------------------------------------------------------
670169
+ /**
670170
+ * Compute a cache key from content and scan flags.
670171
+ */
670172
+ hashContent(content9, verifiedOnly) {
670173
+ const hash2 = createHash2("sha256");
670174
+ hash2.update(content9);
670175
+ hash2.update(verifiedOnly ? ":v" : ":a");
670176
+ return hash2.digest("hex");
670177
+ }
670178
+ /**
670179
+ * Acquire a concurrency slot, run TruffleHog, cache the result, and
670180
+ * release the slot.
670181
+ */
670182
+ async runWithConcurrencyControl(content9, timeout, verifiedOnly, cacheKey) {
670183
+ await this.acquireSlot();
670184
+ try {
670185
+ const findings = await runTrufflehog(content9, timeout, verifiedOnly);
670186
+ this.cacheResult(cacheKey, findings);
670187
+ return findings;
670188
+ } finally {
670189
+ this.releaseSlot();
670190
+ }
670191
+ }
670192
+ /**
670193
+ * Wait until a concurrency slot is available.
670194
+ */
670195
+ async acquireSlot() {
670196
+ if (this.activeProcesses < MAX_CONCURRENCY) {
670197
+ this.activeProcesses++;
670198
+ return;
670199
+ }
670200
+ return new Promise((resolve10) => {
670201
+ this.waitQueue.push(resolve10);
670202
+ });
670203
+ }
670204
+ /**
670205
+ * Release a concurrency slot and wake the next waiter.
670206
+ */
670207
+ releaseSlot() {
670208
+ const next2 = this.waitQueue.shift();
670209
+ if (next2) {
670210
+ next2();
670211
+ } else {
670212
+ this.activeProcesses--;
670213
+ }
670214
+ }
670215
+ /**
670216
+ * Store findings in the cache, evicting the oldest entry if at capacity.
670217
+ */
670218
+ cacheResult(key2, findings) {
670219
+ if (this.cache.size >= MAX_CACHE_SIZE2) {
670220
+ const oldest = this.cache.keys().next().value;
670221
+ if (oldest !== void 0) {
670222
+ this.cache.delete(oldest);
670223
+ }
670224
+ }
670225
+ this.cache.set(key2, {
670226
+ findings,
670227
+ expiresAt: Date.now() + CACHE_TTL_MS2
670228
+ });
670229
+ }
670230
+ };
670231
+ var instance2;
670232
+ function getInstance() {
670233
+ if (!instance2) {
670234
+ instance2 = new SecretScannerService();
670235
+ }
670236
+ return instance2;
670237
+ }
670238
+ async function scanContentForSecrets(content9, options8 = {}) {
670239
+ return getInstance().scan(content9, options8);
670240
+ }
670241
+
670042
670242
  // ../../../vite-plugin-file-sync/dist/ai-service/security/safety-classifier.js
670043
670243
  init_cjs_shims();
670044
670244
  var import_ai7 = __toESM(require_dist8());
@@ -672818,7 +673018,7 @@ var LoggingObserver = class {
672818
673018
  if (!this.policy.secretRedactionEnabled) {
672819
673019
  return content9;
672820
673020
  }
672821
- const scanResult = await scanContentForSecrets(content9, { timeout: 5e3 });
673021
+ const scanResult = await scanContentForSecrets(content9);
672822
673022
  if (!scanResult.hasSecrets) {
672823
673023
  return content9;
672824
673024
  }
@@ -673031,9 +673231,7 @@ ${this.currentReasoningBuffer.trim()}
673031
673231
  return data3;
673032
673232
  }
673033
673233
  const dataString = safeJsonStringify(data3);
673034
- const scanResult = await scanContentForSecrets(dataString, {
673035
- timeout: 5e3
673036
- });
673234
+ const scanResult = await scanContentForSecrets(dataString);
673037
673235
  if (!scanResult.hasSecrets) {
673038
673236
  return data3;
673039
673237
  }
@@ -674191,8 +674389,8 @@ var LLMClient = class {
674191
674389
  observers.push(new LoggingObserver({
674192
674390
  logRef: loggingConfig?.logRef,
674193
674391
  policy: {
674194
- // Enable secret redaction based on safety config
674195
- secretRedactionEnabled: safetyConfig?.secretRedaction?.enabled ?? true,
674392
+ // Enable secret redaction only when explicitly requested via safety config
674393
+ secretRedactionEnabled: safetyConfig?.secretRedaction?.enabled ?? false,
674196
674394
  // Disable artifact saving for cloud-prem by default
674197
674395
  artifactSavingEnabled: !isCloudPrem2
674198
674396
  }
@@ -691561,7 +691759,7 @@ var PlaywrightMcpServerManager = class {
691561
691759
  this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
691562
691760
  }
691563
691761
  try {
691564
- const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-IWF2GPNA.js");
691762
+ const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-TU5OGNHR.js");
691565
691763
  this.server = await startEmbeddedPlaywrightMcpServer({
691566
691764
  storageStatePath: options8?.storageStatePath,
691567
691765
  jwt: options8?.jwt,
@@ -701614,7 +701812,7 @@ var TOOL_LOG_SUMMARY_NAMES = {
701614
701812
  webFetch: webFetchToolFactory.name
701615
701813
  };
701616
701814
  function secretScanningMiddleware(options8) {
701617
- const { enabled = true, timeout = 5e3 } = options8 ?? {};
701815
+ const { enabled = true, timeout } = options8 ?? {};
701618
701816
  return (tool3) => {
701619
701817
  if (!enabled) {
701620
701818
  return tool3;
@@ -708456,9 +708654,9 @@ function getLoad(parse36, render3) {
708456
708654
  // $([dom])
708457
708655
  selector
708458
708656
  ) : void 0;
708459
- const instance2 = new LoadedCheerio(elements, rootInstance, options9);
708657
+ const instance3 = new LoadedCheerio(elements, rootInstance, options9);
708460
708658
  if (elements) {
708461
- return instance2;
708659
+ return instance3;
708462
708660
  }
708463
708661
  if (typeof selector !== "string") {
708464
708662
  throw new TypeError("Unexpected type of selector");
@@ -708481,7 +708679,7 @@ function getLoad(parse36, render3) {
708481
708679
  )
708482
708680
  ) : rootInstance;
708483
708681
  if (!searchContext)
708484
- return instance2;
708682
+ return instance3;
708485
708683
  return searchContext.find(search);
708486
708684
  }
708487
708685
  Object.assign(initialize, static_exports, {
@@ -717285,6 +717483,8 @@ var doLLMGenerating = (clark2, services) => {
717285
717483
  switch (event.type) {
717286
717484
  case AGENT_PLANNED: {
717287
717485
  const { userPrompt, promptContext, isUserPrompt = true, knowledgeMessageId } = event;
717486
+ const runPromptId = clark2.context.promptId;
717487
+ const isStaleRun = () => clark2.context.promptId !== runPromptId;
717288
717488
  const provider = services.llmProvider.name;
717289
717489
  const isFactsEnabled = clark2.context.llmConfig?.flags?.isFactsEnabled ?? false;
717290
717490
  const mode = clark2.context.currentMode;
@@ -717369,23 +717569,20 @@ var doLLMGenerating = (clark2, services) => {
717369
717569
  secretRedaction: {
717370
717570
  enabled: services.features.secretRedactionEnabled ?? false
717371
717571
  }
717372
- } : {
717373
- // Explicitly disable all safety features for non-user prompts
717374
- // to prevent fallback default behavior in Clark.streamText
717375
- scope: "last",
717376
- classification: {
717377
- enabled: false,
717378
- failOpen: true
717379
- },
717380
- secretRedaction: {
717381
- enabled: false
717382
- }
717383
- }
717572
+ } : void 0
717384
717573
  });
717385
717574
  let shouldTransitionToAwaitingUser;
717386
717575
  clark2.logger.info("[llm-generating] Starting to process stream chunks");
717387
717576
  try {
717388
717577
  for await (const chunk of result.fullStream) {
717578
+ if (isStaleRun()) {
717579
+ clark2.logger.warn("[llm-generating] Ignoring stale stream chunk from prior run", {
717580
+ runPromptId,
717581
+ currentPromptId: clark2.context.promptId,
717582
+ chunkType: chunk.type
717583
+ });
717584
+ return;
717585
+ }
717389
717586
  if (chunk.type === "tool-result" && chunk.toolName === "askMultiChoice") {
717390
717587
  shouldTransitionToAwaitingUser = true;
717391
717588
  }
@@ -717401,6 +717598,13 @@ var doLLMGenerating = (clark2, services) => {
717401
717598
  }
717402
717599
  if (error40.type === "aborted") {
717403
717600
  clark2.logger.info("LLM generation aborted by user");
717601
+ if (isStaleRun()) {
717602
+ clark2.logger.info("[llm-generating] Ignoring aborted transition from stale run", {
717603
+ runPromptId,
717604
+ currentPromptId: clark2.context.promptId
717605
+ });
717606
+ return;
717607
+ }
717404
717608
  void transitionTo({
717405
717609
  type: USER_CANCELED
717406
717610
  });
@@ -717412,6 +717616,13 @@ var doLLMGenerating = (clark2, services) => {
717412
717616
  }
717413
717617
  if (isNoOutputError(err)) {
717414
717618
  getLogger().warn("AI stream completed without output (retries exhausted or not retryable)");
717619
+ if (isStaleRun()) {
717620
+ clark2.logger.info("[llm-generating] Ignoring no-output transition from stale run", {
717621
+ runPromptId,
717622
+ currentPromptId: clark2.context.promptId
717623
+ });
717624
+ return;
717625
+ }
717415
717626
  void transitionTo({
717416
717627
  type: AGENT_CANCELED,
717417
717628
  advice: "Clark completed without output. Try again."
@@ -717419,6 +717630,13 @@ var doLLMGenerating = (clark2, services) => {
717419
717630
  return;
717420
717631
  }
717421
717632
  clark2.logger.error("LLM stream processing failed", getErrorMeta(error40));
717633
+ if (isStaleRun()) {
717634
+ clark2.logger.info("[llm-generating] Ignoring errored transition from stale run", {
717635
+ runPromptId,
717636
+ currentPromptId: clark2.context.promptId
717637
+ });
717638
+ return;
717639
+ }
717422
717640
  void clark2.send({
717423
717641
  type: LLM_ERRORED,
717424
717642
  error: error40
@@ -717426,6 +717644,13 @@ var doLLMGenerating = (clark2, services) => {
717426
717644
  return;
717427
717645
  }
717428
717646
  if (mode === AiMode.PLAN && !planApproved) {
717647
+ if (isStaleRun()) {
717648
+ clark2.logger.info("[llm-generating] Ignoring plan-awaiting transition from stale run", {
717649
+ runPromptId,
717650
+ currentPromptId: clark2.context.promptId
717651
+ });
717652
+ return;
717653
+ }
717429
717654
  clark2.logger.info("[llm-generating] Early return: PLAN mode without approval - transitioning to AGENT_NEEDS_USER_INPUT", {
717430
717655
  hasSuggestions: clark2.context.hasSuggestions,
717431
717656
  mode,
@@ -717437,6 +717662,13 @@ var doLLMGenerating = (clark2, services) => {
717437
717662
  return;
717438
717663
  }
717439
717664
  if (shouldTransitionToAwaitingUser || clark2.context.pendingToolPermissionRequest) {
717665
+ if (isStaleRun()) {
717666
+ clark2.logger.info("[llm-generating] Ignoring awaiting-user transition from stale run", {
717667
+ runPromptId,
717668
+ currentPromptId: clark2.context.promptId
717669
+ });
717670
+ return;
717671
+ }
717440
717672
  clark2.logger.info("[llm-generating] Early return: transitioning to AGENT_NEEDS_USER_INPUT", {
717441
717673
  hasSuggestions: clark2.context.hasSuggestions,
717442
717674
  shouldTransitionToAwaitingUser,
@@ -717451,6 +717683,13 @@ var doLLMGenerating = (clark2, services) => {
717451
717683
  currentHasSuggestions: clark2.context.hasSuggestions
717452
717684
  });
717453
717685
  const hasLocalDraft = await services.draftInterface.hasLocalDraftChanges();
717686
+ if (isStaleRun()) {
717687
+ clark2.logger.info("[llm-generating] Ignoring local-draft result from stale run", {
717688
+ runPromptId,
717689
+ currentPromptId: clark2.context.promptId
717690
+ });
717691
+ return;
717692
+ }
717454
717693
  clark2.logger.info("[llm-generating] hasLocalDraft check completed", {
717455
717694
  hasLocalDraft,
717456
717695
  currentHasSuggestions: clark2.context.hasSuggestions
@@ -720800,22 +721039,38 @@ ${request3.prompt}`;
720800
721039
  }
720801
721040
  /**
720802
721041
  * Wait for the FSM to transition out of busy state after abort.
721042
+ *
721043
+ * Resolves when idle, rejects after 20s. The caller must NOT replace
721044
+ * the AbortController before this settles — the running generation
721045
+ * re-reads the signal on each streamText / tool call and would
721046
+ * "un-abort" itself if given a fresh controller.
720803
721047
  */
720804
721048
  async waitForAbortComplete() {
720805
- const MAX_WAIT_MS = 5e3;
721049
+ const WARN_AFTER_MS = 5e3;
721050
+ const MAX_WAIT_MS = 2e4;
720806
721051
  const CHECK_INTERVAL_MS = 50;
720807
721052
  const startTime = Date.now();
720808
- return new Promise((resolve10) => {
721053
+ let warned2 = false;
721054
+ return new Promise((resolve10, reject) => {
720809
721055
  const checkState = () => {
720810
721056
  if (!this.isBusy()) {
721057
+ const elapsed2 = Date.now() - startTime;
721058
+ if (elapsed2 > WARN_AFTER_MS) {
721059
+ this.getLogger().info(`[ai-service] Abort completed after ${elapsed2}ms`);
721060
+ }
720811
721061
  resolve10();
720812
721062
  return;
720813
721063
  }
720814
- if (Date.now() - startTime > MAX_WAIT_MS) {
720815
- this.getLogger().warn("[ai-service] Timeout waiting for abort to complete");
720816
- resolve10();
721064
+ const elapsed = Date.now() - startTime;
721065
+ if (elapsed > MAX_WAIT_MS) {
721066
+ this.getLogger().error(`[ai-service] Abort did not complete after ${MAX_WAIT_MS}ms. FSM state: ${this.clark.state}`);
721067
+ reject(new Error("Abort timeout"));
720817
721068
  return;
720818
721069
  }
721070
+ if (!warned2 && elapsed > WARN_AFTER_MS) {
721071
+ this.getLogger().warn(`[ai-service] Still waiting for abort after ${WARN_AFTER_MS}ms. FSM state: ${this.clark.state}`);
721072
+ warned2 = true;
721073
+ }
720819
721074
  setTimeout(checkState, CHECK_INTERVAL_MS);
720820
721075
  };
720821
721076
  setTimeout(checkState, CHECK_INTERVAL_MS);
@@ -721498,9 +721753,9 @@ ${request3.prompt}`;
721498
721753
 
721499
721754
  // ../../../vite-plugin-file-sync/dist/sync-service/index.js
721500
721755
  init_cjs_shims();
721501
- var import_shared38 = __toESM(require_dist9());
721502
- var import_shared39 = __toESM(require_dist9());
721503
- var import_shared40 = __toESM(require_dist9());
721756
+ var import_shared38 = __toESM(require_dist9(), 1);
721757
+ var import_shared39 = __toESM(require_dist9(), 1);
721758
+ var import_shared40 = __toESM(require_dist9(), 1);
721504
721759
  import { normalizePath as normalizePath7 } from "vite";
721505
721760
 
721506
721761
  // ../../../vite-plugin-file-sync/dist/errors/make-server-error.js
@@ -722813,8 +723068,8 @@ var SyncService = class extends import_shared38.TracedEventEmitter {
722813
723068
 
722814
723069
  // ../../../vite-plugin-file-sync/dist/lock-service/index.js
722815
723070
  init_cjs_shims();
722816
- var import_shared41 = __toESM(require_dist9());
722817
- var import_shared42 = __toESM(require_dist9());
723071
+ var import_shared41 = __toESM(require_dist9(), 1);
723072
+ var import_shared42 = __toESM(require_dist9(), 1);
722818
723073
 
722819
723074
  // ../../../vite-plugin-file-sync/dist/lock-service/activity-tracker.js
722820
723075
  init_cjs_shims();
@@ -745443,7 +745698,7 @@ var parseYaml2;
745443
745698
  async function loadYaml(file2) {
745444
745699
  const content9 = await read_file_default(file2);
745445
745700
  if (!parseYaml2) {
745446
- ({ __parsePrettierYamlConfig: parseYaml2 } = await import("./yaml-DV7ZN3RH.js"));
745701
+ ({ __parsePrettierYamlConfig: parseYaml2 } = await import("./yaml-47DFAMJR.js"));
745447
745702
  }
745448
745703
  try {
745449
745704
  return parseYaml2(content9);
@@ -750837,7 +751092,7 @@ function createParsersAndPrinters(modules) {
750837
751092
  }
750838
751093
  var estreePlugin = createParsersAndPrinters([
750839
751094
  {
750840
- importPlugin: () => import("./estree-WGJN4ZMF.js"),
751095
+ importPlugin: () => import("./estree-VXITKKIH.js"),
750841
751096
  printers: ["estree", "estree-json"]
750842
751097
  }
750843
751098
  ]);
@@ -750861,11 +751116,11 @@ var languages = [
750861
751116
  ];
750862
751117
  var { parsers, printers } = createParsersAndPrinters([
750863
751118
  {
750864
- importPlugin: () => import("./acorn-KWHFXVJN.js"),
751119
+ importPlugin: () => import("./acorn-EBDNNTTK.js"),
750865
751120
  parsers: ["acorn", "espree"]
750866
751121
  },
750867
751122
  {
750868
- importPlugin: () => import("./angular-6UPYFI3D.js"),
751123
+ importPlugin: () => import("./angular-RO53M6HA.js"),
750869
751124
  parsers: [
750870
751125
  "__ng_action",
750871
751126
  "__ng_binding",
@@ -750874,7 +751129,7 @@ var { parsers, printers } = createParsersAndPrinters([
750874
751129
  ]
750875
751130
  },
750876
751131
  {
750877
- importPlugin: () => import("./babel-M4SO3YTZ.js"),
751132
+ importPlugin: () => import("./babel-TJVKITBT.js"),
750878
751133
  parsers: [
750879
751134
  "babel",
750880
751135
  "babel-flow",
@@ -750893,44 +751148,44 @@ var { parsers, printers } = createParsersAndPrinters([
750893
751148
  ]
750894
751149
  },
750895
751150
  {
750896
- importPlugin: () => import("./flow-HOYFXVGN.js"),
751151
+ importPlugin: () => import("./flow-JUWFMOOS.js"),
750897
751152
  parsers: ["flow"]
750898
751153
  },
750899
751154
  {
750900
- importPlugin: () => import("./glimmer-SPYBQNSN.js"),
751155
+ importPlugin: () => import("./glimmer-FQLBIA6C.js"),
750901
751156
  parsers: ["glimmer"],
750902
751157
  printers: ["glimmer"]
750903
751158
  },
750904
751159
  {
750905
- importPlugin: () => import("./graphql-ZGIT4C2K.js"),
751160
+ importPlugin: () => import("./graphql-R3FFICVB.js"),
750906
751161
  parsers: ["graphql"],
750907
751162
  printers: ["graphql"]
750908
751163
  },
750909
751164
  {
750910
- importPlugin: () => import("./html-7MRDW3DC.js"),
751165
+ importPlugin: () => import("./html-ALBYCIIS.js"),
750911
751166
  parsers: ["html", "angular", "vue", "lwc", "mjml"],
750912
751167
  printers: ["html"]
750913
751168
  },
750914
751169
  {
750915
- importPlugin: () => import("./markdown-QIH3HSWM.js"),
751170
+ importPlugin: () => import("./markdown-KCJCQME2.js"),
750916
751171
  parsers: ["markdown", "mdx", "remark"],
750917
751172
  printers: ["mdast"]
750918
751173
  },
750919
751174
  {
750920
- importPlugin: () => import("./meriyah-OIJNOVGR.js"),
751175
+ importPlugin: () => import("./meriyah-TOGR32ZM.js"),
750921
751176
  parsers: ["meriyah"]
750922
751177
  },
750923
751178
  {
750924
- importPlugin: () => import("./postcss-CMLDGFIE.js"),
751179
+ importPlugin: () => import("./postcss-PTXTZHB5.js"),
750925
751180
  parsers: ["css", "less", "scss"],
750926
751181
  printers: ["postcss"]
750927
751182
  },
750928
751183
  {
750929
- importPlugin: () => import("./typescript-2LJF34QX.js"),
751184
+ importPlugin: () => import("./typescript-SN4AI5BO.js"),
750930
751185
  parsers: ["typescript"]
750931
751186
  },
750932
751187
  {
750933
- importPlugin: () => import("./yaml-DV7ZN3RH.js"),
751188
+ importPlugin: () => import("./yaml-47DFAMJR.js"),
750934
751189
  parsers: ["yaml"],
750935
751190
  printers: ["yaml"]
750936
751191
  }
@@ -753422,6 +753677,8 @@ var resolvedVirtualRegisteredComponentsId = `\0${virtualRegisteredComponentsId}`
753422
753677
  init_cjs_shims();
753423
753678
  import { readFileSync as readFileSync2, readdirSync as readdirSync2, writeFileSync as writeFileSync3 } from "node:fs";
753424
753679
  import path51 from "node:path";
753680
+ var SUPERBLOCKS_TYPE_FILE_NAME = "superblocks.d.ts";
753681
+ var SUPERBLOCKS_REGISTRY_ENTRY_REGEX = /^\s*"([^"]+)":\s*\{\s*input:\s*([^;]+);\s*output:\s*(.+?)\s*\};\s*$/gm;
753425
753682
  function loadApiTypes(rootDir, apiName) {
753426
753683
  const typesPath = path51.join(rootDir, API_FOLDER, apiName, "types.d.ts");
753427
753684
  try {
@@ -753437,6 +753694,52 @@ function loadApiTypes(rootDir, apiName) {
753437
753694
  return { input: "any", output: "any" };
753438
753695
  }
753439
753696
  }
753697
+ function isFallbackAnyMetadata(metadata) {
753698
+ return metadata.input === "any" && metadata.output === "any";
753699
+ }
753700
+ function parseExistingTypeDefinitions(existingTypeDefinitions) {
753701
+ const interfaceMetadata = {};
753702
+ for (const match2 of existingTypeDefinitions.matchAll(SUPERBLOCKS_REGISTRY_ENTRY_REGEX)) {
753703
+ const apiName = match2[1];
753704
+ const input = match2[2];
753705
+ const output = match2[3];
753706
+ if (apiName && input && output) {
753707
+ interfaceMetadata[apiName] = {
753708
+ input: input.trim(),
753709
+ output: output.trim()
753710
+ };
753711
+ }
753712
+ }
753713
+ return interfaceMetadata;
753714
+ }
753715
+ function mergeInterfaceMetadata(discoveredApiFolders, generatedMetadata, existingMetadata) {
753716
+ const mergedMetadata = {
753717
+ ...existingMetadata
753718
+ };
753719
+ for (const apiName of discoveredApiFolders) {
753720
+ const generated = generatedMetadata[apiName];
753721
+ if (!generated) {
753722
+ continue;
753723
+ }
753724
+ const existing = existingMetadata[apiName];
753725
+ if (existing && isFallbackAnyMetadata(generated) && !isFallbackAnyMetadata(existing)) {
753726
+ mergedMetadata[apiName] = existing;
753727
+ continue;
753728
+ }
753729
+ mergedMetadata[apiName] = generated;
753730
+ }
753731
+ return mergedMetadata;
753732
+ }
753733
+ function shouldRegenerateTypeDefinitions(event, filePath) {
753734
+ if (event !== "add" && event !== "unlink" && event !== "change") {
753735
+ return false;
753736
+ }
753737
+ const normalizedFilePath = filePath.replaceAll("\\", "/");
753738
+ if (!normalizedFilePath.includes("/apis/")) {
753739
+ return false;
753740
+ }
753741
+ return normalizedFilePath.endsWith("/api.yaml") || normalizedFilePath.endsWith("/api.yml") || normalizedFilePath.endsWith("/types.d.ts");
753742
+ }
753440
753743
  function buildTypeDefinitions(apiFolders, interfaceMetadata) {
753441
753744
  const registryEntries = [];
753442
753745
  for (const apiName of apiFolders) {
@@ -753461,6 +753764,7 @@ ${registryContent}
753461
753764
  }
753462
753765
  var yamlApiTypesPlugin = (syncService, aiService) => {
753463
753766
  let config4;
753767
+ let pendingGenerationTimeout;
753464
753768
  const generateTypeDefinitions = async (rootDir) => {
753465
753769
  const apiFolders = [];
753466
753770
  const findApiFolders = (dir) => {
@@ -753477,15 +753781,26 @@ var yamlApiTypesPlugin = (syncService, aiService) => {
753477
753781
  }
753478
753782
  };
753479
753783
  findApiFolders(rootDir);
753480
- const interfaceMetadata = {};
753784
+ const generatedMetadata = {};
753481
753785
  for (const apiName of apiFolders) {
753482
753786
  const types3 = loadApiTypes(rootDir, apiName);
753483
753787
  if (types3) {
753484
- interfaceMetadata[apiName] = types3;
753788
+ generatedMetadata[apiName] = types3;
753485
753789
  }
753486
753790
  }
753487
- const typeDefinitions = buildTypeDefinitions(apiFolders, interfaceMetadata);
753488
- const typeFilePath = path51.join(rootDir, "superblocks.d.ts");
753791
+ const typeFilePath = path51.join(rootDir, SUPERBLOCKS_TYPE_FILE_NAME);
753792
+ let existingTypeDefinitions = "";
753793
+ try {
753794
+ existingTypeDefinitions = readFileSync2(typeFilePath, "utf-8");
753795
+ } catch {
753796
+ }
753797
+ const existingMetadata = parseExistingTypeDefinitions(existingTypeDefinitions);
753798
+ const mergedMetadata = mergeInterfaceMetadata(apiFolders, generatedMetadata, existingMetadata);
753799
+ const apiNames = Object.keys(mergedMetadata).sort((a, b) => a.localeCompare(b));
753800
+ const typeDefinitions = buildTypeDefinitions(apiNames, mergedMetadata);
753801
+ if (existingTypeDefinitions === typeDefinitions) {
753802
+ return;
753803
+ }
753489
753804
  try {
753490
753805
  const isAiGenerating = aiService?.isBusy() ?? false;
753491
753806
  const hasExistingDrafts = await syncService?.hasLocalDraftChanges() ?? false;
@@ -753507,8 +753822,16 @@ var yamlApiTypesPlugin = (syncService, aiService) => {
753507
753822
  },
753508
753823
  configureServer(server) {
753509
753824
  server.watcher.on("all", (event, filePath) => {
753510
- if ((event === "add" || event === "unlink" || event === "change") && filePath.includes("/apis/") && config4) {
753511
- void generateTypeDefinitions(config4.root);
753825
+ if (config4 && shouldRegenerateTypeDefinitions(event, filePath)) {
753826
+ if (pendingGenerationTimeout) {
753827
+ clearTimeout(pendingGenerationTimeout);
753828
+ }
753829
+ pendingGenerationTimeout = setTimeout(() => {
753830
+ pendingGenerationTimeout = void 0;
753831
+ if (config4) {
753832
+ void generateTypeDefinitions(config4.root);
753833
+ }
753834
+ }, 50);
753512
753835
  }
753513
753836
  });
753514
753837
  }
@@ -758457,13 +758780,13 @@ var HttpStatusCode_default = HttpStatusCode;
758457
758780
  // ../../../../node_modules/.pnpm/axios@1.13.2_debug@4.4.3/node_modules/axios/lib/axios.js
758458
758781
  function createInstance(defaultConfig) {
758459
758782
  const context = new Axios_default(defaultConfig);
758460
- const instance2 = bind(Axios_default.prototype.request, context);
758461
- utils_default.extend(instance2, Axios_default.prototype, context, { allOwnKeys: true });
758462
- utils_default.extend(instance2, context, null, { allOwnKeys: true });
758463
- instance2.create = function create2(instanceConfig) {
758783
+ const instance3 = bind(Axios_default.prototype.request, context);
758784
+ utils_default.extend(instance3, Axios_default.prototype, context, { allOwnKeys: true });
758785
+ utils_default.extend(instance3, context, null, { allOwnKeys: true });
758786
+ instance3.create = function create2(instanceConfig) {
758464
758787
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
758465
758788
  };
758466
- return instance2;
758789
+ return instance3;
758467
758790
  }
758468
758791
  var axios = createInstance(defaults_default);
758469
758792
  axios.Axios = Axios_default;
@@ -760519,11 +760842,11 @@ var init_task_callback = __esm2({
760519
760842
  }
760520
760843
  });
760521
760844
  function changeWorkingDirectoryTask(directory, root3) {
760522
- return adhocExecTask((instance2) => {
760845
+ return adhocExecTask((instance3) => {
760523
760846
  if (!folderExists(directory)) {
760524
760847
  throw new Error(`Git.cwd: cannot change to non-directory "${directory}"`);
760525
760848
  }
760526
- return (root3 || instance2).cwd = directory;
760849
+ return (root3 || instance3).cwd = directory;
760527
760850
  });
760528
760851
  }
760529
760852
  var init_change_working_directory = __esm2({
@@ -766540,7 +766863,7 @@ async function handleLockConflict(error40, lockSvc, span, logger15) {
766540
766863
  }
766541
766864
  async function readPkgJson(cwd) {
766542
766865
  try {
766543
- const { readPackage } = await import("./read-pkg-ELWZ6J2U.js");
766866
+ const { readPackage } = await import("./read-pkg-VRGRAD4Q.js");
766544
766867
  return await readPackage({ cwd });
766545
766868
  } catch {
766546
766869
  return null;
@@ -767710,7 +768033,7 @@ async function createPrompt(options8, settings) {
767710
768033
  enquirer3 = settings.enquirer;
767711
768034
  } else {
767712
768035
  try {
767713
- enquirer3 = await import("./enquirer-ZFGFGMV7.js").then((imported) => imported.default ? new imported.default() : new imported());
768036
+ enquirer3 = await import("./enquirer-Z67IBGTA.js").then((imported) => imported.default ? new imported.default() : new imported());
767714
768037
  } catch (e) {
767715
768038
  if (this instanceof TaskWrapper) {
767716
768039
  this.task.prompt = new PromptError("Enquirer is a peer dependency that must be installed separately.");
@@ -767918,9 +768241,9 @@ var _DefaultRenderer = class {
767918
768241
  return typeof bottomBar === "number" && bottomBar !== 0 || typeof bottomBar === "boolean" && bottomBar !== false || !task.hasTitle();
767919
768242
  }
767920
768243
  async render() {
767921
- const { createLogUpdate } = await import("./log-update-XKCQ7L7H.js");
767922
- const { default: truncate } = await import("./cli-truncate-TXUCWJML.js");
767923
- const { default: wrap2 } = await import("./wrap-ansi-OTEM7CYF.js");
768244
+ const { createLogUpdate } = await import("./log-update-CNLJLPJC.js");
768245
+ const { default: truncate } = await import("./cli-truncate-O45W2S6X.js");
768246
+ const { default: wrap2 } = await import("./wrap-ansi-IAVXOIGA.js");
767924
768247
  this.updater = createLogUpdate(this.logger.process.stdout);
767925
768248
  this.truncate = truncate;
767926
768249
  this.wrap = wrap2;