@probelabs/visor 0.1.150 → 0.1.151

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 (71) hide show
  1. package/dist/index.js +319 -376
  2. package/dist/output/traces/{run-2026-03-03T20-21-24-501Z.ndjson → run-2026-03-04T06-08-59-294Z.ndjson} +84 -84
  3. package/dist/output/traces/{run-2026-03-03T20-22-08-701Z.ndjson → run-2026-03-04T06-09-44-093Z.ndjson} +1857 -1857
  4. package/dist/sdk/{check-provider-registry-RRYBG6AU.mjs → check-provider-registry-EBH64VK3.mjs} +5 -5
  5. package/dist/sdk/{check-provider-registry-YFC5KSJY.mjs → check-provider-registry-IGIIFX67.mjs} +5 -5
  6. package/dist/sdk/{check-provider-registry-6D5CAX44.mjs → check-provider-registry-OQE2DVYM.mjs} +5 -5
  7. package/dist/sdk/{chunk-H4HFH7HH.mjs → chunk-3ITUIFJW.mjs} +3 -3
  8. package/dist/sdk/{chunk-H4HFH7HH.mjs.map → chunk-3ITUIFJW.mjs.map} +1 -1
  9. package/dist/sdk/{chunk-GIAN7HCT.mjs → chunk-BBV64BPF.mjs} +3 -3
  10. package/dist/sdk/{chunk-GLROSEYJ.mjs → chunk-CZOKADR7.mjs} +3 -3
  11. package/dist/sdk/{chunk-YY3KADY2.mjs → chunk-I2OWVR63.mjs} +15 -15
  12. package/dist/sdk/{chunk-FZEQ744M.mjs → chunk-LH3PEGKM.mjs} +2 -2
  13. package/dist/sdk/{chunk-SWO4W57C.mjs → chunk-MITJQ2QS.mjs} +2 -2
  14. package/dist/sdk/{chunk-PETLPNRA.mjs → chunk-NE3OOOB2.mjs} +2 -2
  15. package/dist/sdk/{chunk-PETLPNRA.mjs.map → chunk-NE3OOOB2.mjs.map} +1 -1
  16. package/dist/sdk/{chunk-CKDFGNF4.mjs → chunk-OVALXWC6.mjs} +15 -15
  17. package/dist/sdk/{chunk-AADKUA6L.mjs → chunk-U4ZJWL63.mjs} +15 -15
  18. package/dist/sdk/{failure-condition-evaluator-XV2ZMFFY.mjs → failure-condition-evaluator-V5KJ3HQP.mjs} +3 -3
  19. package/dist/sdk/{failure-condition-evaluator-P6QUFLIN.mjs → failure-condition-evaluator-XYC6LZAV.mjs} +3 -3
  20. package/dist/sdk/{github-frontend-A2R7D4N6.mjs → github-frontend-4DISXYOR.mjs} +3 -3
  21. package/dist/sdk/{github-frontend-GSB2P5PE.mjs → github-frontend-NWH4ZK77.mjs} +3 -3
  22. package/dist/sdk/{host-CLPM2WVQ.mjs → host-7WIF5HKA.mjs} +2 -2
  23. package/dist/sdk/{host-MR7L57QI.mjs → host-V6ZZYETT.mjs} +2 -2
  24. package/dist/sdk/{routing-KLVK2MJZ.mjs → routing-6SKBL7AX.mjs} +4 -4
  25. package/dist/sdk/{routing-V3MYZAOH.mjs → routing-ODVQHICC.mjs} +4 -4
  26. package/dist/sdk/{schedule-tool-NYLNJUEW.mjs → schedule-tool-C2GJJRLH.mjs} +5 -5
  27. package/dist/sdk/{schedule-tool-PRXFAV4K.mjs → schedule-tool-GPRPNHIH.mjs} +5 -5
  28. package/dist/sdk/{schedule-tool-HYM55K3H.mjs → schedule-tool-SFHR3T3S.mjs} +5 -5
  29. package/dist/sdk/{schedule-tool-handler-EFQIYD3W.mjs → schedule-tool-handler-3C6DATDV.mjs} +5 -5
  30. package/dist/sdk/{schedule-tool-handler-HVWCEGQ6.mjs → schedule-tool-handler-JCOBGMRA.mjs} +5 -5
  31. package/dist/sdk/{schedule-tool-handler-M5YI573R.mjs → schedule-tool-handler-Q6FWPGEB.mjs} +5 -5
  32. package/dist/sdk/sdk.js +2 -2
  33. package/dist/sdk/sdk.js.map +1 -1
  34. package/dist/sdk/sdk.mjs +4 -4
  35. package/dist/sdk/{trace-helpers-6NSZBC35.mjs → trace-helpers-LKAADSNB.mjs} +2 -2
  36. package/dist/sdk/{trace-helpers-TORF3JD5.mjs → trace-helpers-NGQVPQE3.mjs} +2 -2
  37. package/dist/sdk/{workflow-check-provider-OXHMLICJ.mjs → workflow-check-provider-3QZCXXKD.mjs} +5 -5
  38. package/dist/sdk/{workflow-check-provider-XLH7N4FV.mjs → workflow-check-provider-CH3ARLBE.mjs} +5 -5
  39. package/dist/sdk/{workflow-check-provider-3F6CBHVD.mjs → workflow-check-provider-G46WE4EJ.mjs} +5 -5
  40. package/dist/traces/{run-2026-03-03T20-21-24-501Z.ndjson → run-2026-03-04T06-08-59-294Z.ndjson} +84 -84
  41. package/dist/traces/{run-2026-03-03T20-22-08-701Z.ndjson → run-2026-03-04T06-09-44-093Z.ndjson} +1857 -1857
  42. package/package.json +2 -2
  43. /package/dist/sdk/{check-provider-registry-6D5CAX44.mjs.map → check-provider-registry-EBH64VK3.mjs.map} +0 -0
  44. /package/dist/sdk/{check-provider-registry-RRYBG6AU.mjs.map → check-provider-registry-IGIIFX67.mjs.map} +0 -0
  45. /package/dist/sdk/{check-provider-registry-YFC5KSJY.mjs.map → check-provider-registry-OQE2DVYM.mjs.map} +0 -0
  46. /package/dist/sdk/{chunk-GIAN7HCT.mjs.map → chunk-BBV64BPF.mjs.map} +0 -0
  47. /package/dist/sdk/{chunk-GLROSEYJ.mjs.map → chunk-CZOKADR7.mjs.map} +0 -0
  48. /package/dist/sdk/{chunk-CKDFGNF4.mjs.map → chunk-I2OWVR63.mjs.map} +0 -0
  49. /package/dist/sdk/{chunk-FZEQ744M.mjs.map → chunk-LH3PEGKM.mjs.map} +0 -0
  50. /package/dist/sdk/{chunk-SWO4W57C.mjs.map → chunk-MITJQ2QS.mjs.map} +0 -0
  51. /package/dist/sdk/{chunk-YY3KADY2.mjs.map → chunk-OVALXWC6.mjs.map} +0 -0
  52. /package/dist/sdk/{chunk-AADKUA6L.mjs.map → chunk-U4ZJWL63.mjs.map} +0 -0
  53. /package/dist/sdk/{failure-condition-evaluator-P6QUFLIN.mjs.map → failure-condition-evaluator-V5KJ3HQP.mjs.map} +0 -0
  54. /package/dist/sdk/{failure-condition-evaluator-XV2ZMFFY.mjs.map → failure-condition-evaluator-XYC6LZAV.mjs.map} +0 -0
  55. /package/dist/sdk/{github-frontend-A2R7D4N6.mjs.map → github-frontend-4DISXYOR.mjs.map} +0 -0
  56. /package/dist/sdk/{github-frontend-GSB2P5PE.mjs.map → github-frontend-NWH4ZK77.mjs.map} +0 -0
  57. /package/dist/sdk/{host-CLPM2WVQ.mjs.map → host-7WIF5HKA.mjs.map} +0 -0
  58. /package/dist/sdk/{host-MR7L57QI.mjs.map → host-V6ZZYETT.mjs.map} +0 -0
  59. /package/dist/sdk/{routing-KLVK2MJZ.mjs.map → routing-6SKBL7AX.mjs.map} +0 -0
  60. /package/dist/sdk/{routing-V3MYZAOH.mjs.map → routing-ODVQHICC.mjs.map} +0 -0
  61. /package/dist/sdk/{schedule-tool-HYM55K3H.mjs.map → schedule-tool-C2GJJRLH.mjs.map} +0 -0
  62. /package/dist/sdk/{schedule-tool-NYLNJUEW.mjs.map → schedule-tool-GPRPNHIH.mjs.map} +0 -0
  63. /package/dist/sdk/{schedule-tool-PRXFAV4K.mjs.map → schedule-tool-SFHR3T3S.mjs.map} +0 -0
  64. /package/dist/sdk/{schedule-tool-handler-EFQIYD3W.mjs.map → schedule-tool-handler-3C6DATDV.mjs.map} +0 -0
  65. /package/dist/sdk/{schedule-tool-handler-HVWCEGQ6.mjs.map → schedule-tool-handler-JCOBGMRA.mjs.map} +0 -0
  66. /package/dist/sdk/{schedule-tool-handler-M5YI573R.mjs.map → schedule-tool-handler-Q6FWPGEB.mjs.map} +0 -0
  67. /package/dist/sdk/{trace-helpers-6NSZBC35.mjs.map → trace-helpers-LKAADSNB.mjs.map} +0 -0
  68. /package/dist/sdk/{trace-helpers-TORF3JD5.mjs.map → trace-helpers-NGQVPQE3.mjs.map} +0 -0
  69. /package/dist/sdk/{workflow-check-provider-3F6CBHVD.mjs.map → workflow-check-provider-3QZCXXKD.mjs.map} +0 -0
  70. /package/dist/sdk/{workflow-check-provider-OXHMLICJ.mjs.map → workflow-check-provider-CH3ARLBE.mjs.map} +0 -0
  71. /package/dist/sdk/{workflow-check-provider-XLH7N4FV.mjs.map → workflow-check-provider-G46WE4EJ.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- process.env.VISOR_VERSION = '0.1.150';
3
- process.env.PROBE_VERSION = '0.6.0-rc266';
4
- process.env.VISOR_COMMIT_SHA = '3b87c12790f72a2050000f18b840f18909bda118';
5
- process.env.VISOR_COMMIT_SHORT = '3b87c127';
2
+ process.env.VISOR_VERSION = '0.1.151';
3
+ process.env.PROBE_VERSION = '0.6.0-rc268';
4
+ process.env.VISOR_COMMIT_SHA = 'b06d244c0580c243801a29bbeae739a8198bea09';
5
+ process.env.VISOR_COMMIT_SHORT = 'b06d244c0';
6
6
  /******/ (() => { // webpackBootstrap
7
7
  /******/ var __webpack_modules__ = ({
8
8
 
@@ -260861,7 +260861,7 @@ var require_fxp = __commonJS({
260861
260861
  }, o: (t6, e6) => Object.prototype.hasOwnProperty.call(t6, e6), r: (t6) => {
260862
260862
  "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t6, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t6, "__esModule", { value: true });
260863
260863
  } }, e5 = {};
260864
- t5.r(e5), t5.d(e5, { XMLBuilder: () => dt, XMLParser: () => it, XMLValidator: () => gt });
260864
+ t5.r(e5), t5.d(e5, { XMLBuilder: () => gt, XMLParser: () => it, XMLValidator: () => xt });
260865
260865
  const n5 = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", i5 = new RegExp("^[" + n5 + "][" + n5 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
260866
260866
  function s5(t6, e6) {
260867
260867
  const n6 = [];
@@ -260883,90 +260883,90 @@ var require_fxp = __commonJS({
260883
260883
  const n6 = [];
260884
260884
  let i6 = false, s6 = false;
260885
260885
  "\uFEFF" === t6[0] && (t6 = t6.substr(1));
260886
- for (let o6 = 0; o6 < t6.length; o6++) if ("<" === t6[o6] && "?" === t6[o6 + 1]) {
260887
- if (o6 += 2, o6 = u5(t6, o6), o6.err) return o6;
260886
+ for (let r6 = 0; r6 < t6.length; r6++) if ("<" === t6[r6] && "?" === t6[r6 + 1]) {
260887
+ if (r6 += 2, r6 = u5(t6, r6), r6.err) return r6;
260888
260888
  } else {
260889
- if ("<" !== t6[o6]) {
260890
- if (l5(t6[o6])) continue;
260891
- return m5("InvalidChar", "char '" + t6[o6] + "' is not expected.", b5(t6, o6));
260889
+ if ("<" !== t6[r6]) {
260890
+ if (l5(t6[r6])) continue;
260891
+ return m5("InvalidChar", "char '" + t6[r6] + "' is not expected.", N(t6, r6));
260892
260892
  }
260893
260893
  {
260894
- let a6 = o6;
260895
- if (o6++, "!" === t6[o6]) {
260896
- o6 = h5(t6, o6);
260894
+ let o6 = r6;
260895
+ if (r6++, "!" === t6[r6]) {
260896
+ r6 = d5(t6, r6);
260897
260897
  continue;
260898
260898
  }
260899
260899
  {
260900
- let d6 = false;
260901
- "/" === t6[o6] && (d6 = true, o6++);
260902
- let p6 = "";
260903
- for (; o6 < t6.length && ">" !== t6[o6] && " " !== t6[o6] && " " !== t6[o6] && "\n" !== t6[o6] && "\r" !== t6[o6]; o6++) p6 += t6[o6];
260904
- if (p6 = p6.trim(), "/" === p6[p6.length - 1] && (p6 = p6.substring(0, p6.length - 1), o6--), !r5(p6)) {
260900
+ let a6 = false;
260901
+ "/" === t6[r6] && (a6 = true, r6++);
260902
+ let h6 = "";
260903
+ for (; r6 < t6.length && ">" !== t6[r6] && " " !== t6[r6] && " " !== t6[r6] && "\n" !== t6[r6] && "\r" !== t6[r6]; r6++) h6 += t6[r6];
260904
+ if (h6 = h6.trim(), "/" === h6[h6.length - 1] && (h6 = h6.substring(0, h6.length - 1), r6--), !b5(h6)) {
260905
260905
  let e7;
260906
- return e7 = 0 === p6.trim().length ? "Invalid space after '<'." : "Tag '" + p6 + "' is an invalid name.", m5("InvalidTag", e7, b5(t6, o6));
260906
+ return e7 = 0 === h6.trim().length ? "Invalid space after '<'." : "Tag '" + h6 + "' is an invalid name.", m5("InvalidTag", e7, N(t6, r6));
260907
260907
  }
260908
- const c6 = f5(t6, o6);
260909
- if (false === c6) return m5("InvalidAttr", "Attributes for '" + p6 + "' have open quote.", b5(t6, o6));
260910
- let E3 = c6.value;
260911
- if (o6 = c6.index, "/" === E3[E3.length - 1]) {
260912
- const n7 = o6 - E3.length;
260913
- E3 = E3.substring(0, E3.length - 1);
260914
- const s7 = g5(E3, e6);
260915
- if (true !== s7) return m5(s7.err.code, s7.err.msg, b5(t6, n7 + s7.err.line));
260908
+ const p6 = c5(t6, r6);
260909
+ if (false === p6) return m5("InvalidAttr", "Attributes for '" + h6 + "' have open quote.", N(t6, r6));
260910
+ let f6 = p6.value;
260911
+ if (r6 = p6.index, "/" === f6[f6.length - 1]) {
260912
+ const n7 = r6 - f6.length;
260913
+ f6 = f6.substring(0, f6.length - 1);
260914
+ const s7 = g5(f6, e6);
260915
+ if (true !== s7) return m5(s7.err.code, s7.err.msg, N(t6, n7 + s7.err.line));
260916
260916
  i6 = true;
260917
- } else if (d6) {
260918
- if (!c6.tagClosed) return m5("InvalidTag", "Closing tag '" + p6 + "' doesn't have proper closing.", b5(t6, o6));
260919
- if (E3.trim().length > 0) return m5("InvalidTag", "Closing tag '" + p6 + "' can't have attributes or invalid starting.", b5(t6, a6));
260920
- if (0 === n6.length) return m5("InvalidTag", "Closing tag '" + p6 + "' has not been opened.", b5(t6, a6));
260917
+ } else if (a6) {
260918
+ if (!p6.tagClosed) return m5("InvalidTag", "Closing tag '" + h6 + "' doesn't have proper closing.", N(t6, r6));
260919
+ if (f6.trim().length > 0) return m5("InvalidTag", "Closing tag '" + h6 + "' can't have attributes or invalid starting.", N(t6, o6));
260920
+ if (0 === n6.length) return m5("InvalidTag", "Closing tag '" + h6 + "' has not been opened.", N(t6, o6));
260921
260921
  {
260922
260922
  const e7 = n6.pop();
260923
- if (p6 !== e7.tagName) {
260924
- let n7 = b5(t6, e7.tagStartPos);
260925
- return m5("InvalidTag", "Expected closing tag '" + e7.tagName + "' (opened in line " + n7.line + ", col " + n7.col + ") instead of closing tag '" + p6 + "'.", b5(t6, a6));
260923
+ if (h6 !== e7.tagName) {
260924
+ let n7 = N(t6, e7.tagStartPos);
260925
+ return m5("InvalidTag", "Expected closing tag '" + e7.tagName + "' (opened in line " + n7.line + ", col " + n7.col + ") instead of closing tag '" + h6 + "'.", N(t6, o6));
260926
260926
  }
260927
260927
  0 == n6.length && (s6 = true);
260928
260928
  }
260929
260929
  } else {
260930
- const r6 = g5(E3, e6);
260931
- if (true !== r6) return m5(r6.err.code, r6.err.msg, b5(t6, o6 - E3.length + r6.err.line));
260932
- if (true === s6) return m5("InvalidXml", "Multiple possible root nodes found.", b5(t6, o6));
260933
- -1 !== e6.unpairedTags.indexOf(p6) || n6.push({ tagName: p6, tagStartPos: a6 }), i6 = true;
260930
+ const a7 = g5(f6, e6);
260931
+ if (true !== a7) return m5(a7.err.code, a7.err.msg, N(t6, r6 - f6.length + a7.err.line));
260932
+ if (true === s6) return m5("InvalidXml", "Multiple possible root nodes found.", N(t6, r6));
260933
+ -1 !== e6.unpairedTags.indexOf(h6) || n6.push({ tagName: h6, tagStartPos: o6 }), i6 = true;
260934
260934
  }
260935
- for (o6++; o6 < t6.length; o6++) if ("<" === t6[o6]) {
260936
- if ("!" === t6[o6 + 1]) {
260937
- o6++, o6 = h5(t6, o6);
260935
+ for (r6++; r6 < t6.length; r6++) if ("<" === t6[r6]) {
260936
+ if ("!" === t6[r6 + 1]) {
260937
+ r6++, r6 = d5(t6, r6);
260938
260938
  continue;
260939
260939
  }
260940
- if ("?" !== t6[o6 + 1]) break;
260941
- if (o6 = u5(t6, ++o6), o6.err) return o6;
260942
- } else if ("&" === t6[o6]) {
260943
- const e7 = x5(t6, o6);
260944
- if (-1 == e7) return m5("InvalidChar", "char '&' is not expected.", b5(t6, o6));
260945
- o6 = e7;
260946
- } else if (true === s6 && !l5(t6[o6])) return m5("InvalidXml", "Extra text at the end", b5(t6, o6));
260947
- "<" === t6[o6] && o6--;
260940
+ if ("?" !== t6[r6 + 1]) break;
260941
+ if (r6 = u5(t6, ++r6), r6.err) return r6;
260942
+ } else if ("&" === t6[r6]) {
260943
+ const e7 = x5(t6, r6);
260944
+ if (-1 == e7) return m5("InvalidChar", "char '&' is not expected.", N(t6, r6));
260945
+ r6 = e7;
260946
+ } else if (true === s6 && !l5(t6[r6])) return m5("InvalidXml", "Extra text at the end", N(t6, r6));
260947
+ "<" === t6[r6] && r6--;
260948
260948
  }
260949
260949
  }
260950
260950
  }
260951
- return i6 ? 1 == n6.length ? m5("InvalidTag", "Unclosed tag '" + n6[0].tagName + "'.", b5(t6, n6[0].tagStartPos)) : !(n6.length > 0) || m5("InvalidXml", "Invalid '" + JSON.stringify(n6.map(((t7) => t7.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : m5("InvalidXml", "Start tag expected.", 1);
260951
+ return i6 ? 1 == n6.length ? m5("InvalidTag", "Unclosed tag '" + n6[0].tagName + "'.", N(t6, n6[0].tagStartPos)) : !(n6.length > 0) || m5("InvalidXml", "Invalid '" + JSON.stringify(n6.map((t7) => t7.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : m5("InvalidXml", "Start tag expected.", 1);
260952
260952
  }
260953
260953
  function l5(t6) {
260954
260954
  return " " === t6 || " " === t6 || "\n" === t6 || "\r" === t6;
260955
260955
  }
260956
260956
  function u5(t6, e6) {
260957
260957
  const n6 = e6;
260958
- for (; e6 < t6.length; e6++) if ("?" != t6[e6] && " " != t6[e6]) ;
260959
- else {
260958
+ for (; e6 < t6.length; e6++) if ("?" == t6[e6] || " " == t6[e6]) {
260960
260959
  const i6 = t6.substr(n6, e6 - n6);
260961
- if (e6 > 5 && "xml" === i6) return m5("InvalidXml", "XML declaration allowed only at the start of the document.", b5(t6, e6));
260960
+ if (e6 > 5 && "xml" === i6) return m5("InvalidXml", "XML declaration allowed only at the start of the document.", N(t6, e6));
260962
260961
  if ("?" == t6[e6] && ">" == t6[e6 + 1]) {
260963
260962
  e6++;
260964
260963
  break;
260965
260964
  }
260965
+ continue;
260966
260966
  }
260967
260967
  return e6;
260968
260968
  }
260969
- function h5(t6, e6) {
260969
+ function d5(t6, e6) {
260970
260970
  if (t6.length > e6 + 5 && "-" === t6[e6 + 1] && "-" === t6[e6 + 2]) {
260971
260971
  for (e6 += 3; e6 < t6.length; e6++) if ("-" === t6[e6] && "-" === t6[e6 + 1] && ">" === t6[e6 + 2]) {
260972
260972
  e6 += 2;
@@ -260984,11 +260984,11 @@ var require_fxp = __commonJS({
260984
260984
  }
260985
260985
  return e6;
260986
260986
  }
260987
- const d5 = '"', p5 = "'";
260988
- function f5(t6, e6) {
260987
+ const h5 = '"', p5 = "'";
260988
+ function c5(t6, e6) {
260989
260989
  let n6 = "", i6 = "", s6 = false;
260990
260990
  for (; e6 < t6.length; e6++) {
260991
- if (t6[e6] === d5 || t6[e6] === p5) "" === i6 ? i6 = t6[e6] : i6 !== t6[e6] || (i6 = "");
260991
+ if (t6[e6] === h5 || t6[e6] === p5) "" === i6 ? i6 = t6[e6] : i6 !== t6[e6] || (i6 = "");
260992
260992
  else if (">" === t6[e6] && "" === i6) {
260993
260993
  s6 = true;
260994
260994
  break;
@@ -260997,16 +260997,16 @@ var require_fxp = __commonJS({
260997
260997
  }
260998
260998
  return "" === i6 && { value: n6, index: e6, tagClosed: s6 };
260999
260999
  }
261000
- const c5 = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
261000
+ const f5 = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
261001
261001
  function g5(t6, e6) {
261002
- const n6 = s5(t6, c5), i6 = {};
261002
+ const n6 = s5(t6, f5), i6 = {};
261003
261003
  for (let t7 = 0; t7 < n6.length; t7++) {
261004
- if (0 === n6[t7][1].length) return m5("InvalidAttr", "Attribute '" + n6[t7][2] + "' has no space in starting.", N(n6[t7]));
261005
- if (void 0 !== n6[t7][3] && void 0 === n6[t7][4]) return m5("InvalidAttr", "Attribute '" + n6[t7][2] + "' is without value.", N(n6[t7]));
261006
- if (void 0 === n6[t7][3] && !e6.allowBooleanAttributes) return m5("InvalidAttr", "boolean attribute '" + n6[t7][2] + "' is not allowed.", N(n6[t7]));
261004
+ if (0 === n6[t7][1].length) return m5("InvalidAttr", "Attribute '" + n6[t7][2] + "' has no space in starting.", y2(n6[t7]));
261005
+ if (void 0 !== n6[t7][3] && void 0 === n6[t7][4]) return m5("InvalidAttr", "Attribute '" + n6[t7][2] + "' is without value.", y2(n6[t7]));
261006
+ if (void 0 === n6[t7][3] && !e6.allowBooleanAttributes) return m5("InvalidAttr", "boolean attribute '" + n6[t7][2] + "' is not allowed.", y2(n6[t7]));
261007
261007
  const s6 = n6[t7][2];
261008
- if (!E2(s6)) return m5("InvalidAttr", "Attribute '" + s6 + "' is an invalid name.", N(n6[t7]));
261009
- if (i6.hasOwnProperty(s6)) return m5("InvalidAttr", "Attribute '" + s6 + "' is repeated.", N(n6[t7]));
261008
+ if (!E2(s6)) return m5("InvalidAttr", "Attribute '" + s6 + "' is an invalid name.", y2(n6[t7]));
261009
+ if (Object.prototype.hasOwnProperty.call(i6, s6)) return m5("InvalidAttr", "Attribute '" + s6 + "' is repeated.", y2(n6[t7]));
261010
261010
  i6[s6] = 1;
261011
261011
  }
261012
261012
  return true;
@@ -261034,49 +261034,52 @@ var require_fxp = __commonJS({
261034
261034
  function E2(t6) {
261035
261035
  return r5(t6);
261036
261036
  }
261037
- function b5(t6, e6) {
261037
+ function b5(t6) {
261038
+ return r5(t6);
261039
+ }
261040
+ function N(t6, e6) {
261038
261041
  const n6 = t6.substring(0, e6).split(/\r?\n/);
261039
261042
  return { line: n6.length, col: n6[n6.length - 1].length + 1 };
261040
261043
  }
261041
- function N(t6) {
261044
+ function y2(t6) {
261042
261045
  return t6.startIndex + t6[1].length;
261043
261046
  }
261044
- const y2 = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t6, e6) {
261047
+ const T = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t6, e6) {
261045
261048
  return e6;
261046
261049
  }, attributeValueProcessor: function(t6, e6) {
261047
261050
  return e6;
261048
261051
  }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t6, e6, n6) {
261049
261052
  return t6;
261050
- }, captureMetaData: false };
261051
- function T(t6) {
261052
- return "boolean" == typeof t6 ? { enabled: t6, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1e3, maxExpandedLength: 1e5, allowedTags: null, tagFilter: null } : "object" == typeof t6 && null !== t6 ? { enabled: false !== t6.enabled, maxEntitySize: t6.maxEntitySize ?? 1e4, maxExpansionDepth: t6.maxExpansionDepth ?? 10, maxTotalExpansions: t6.maxTotalExpansions ?? 1e3, maxExpandedLength: t6.maxExpandedLength ?? 1e5, allowedTags: t6.allowedTags ?? null, tagFilter: t6.tagFilter ?? null } : T(true);
261053
+ }, captureMetaData: false, maxNestedTags: 100, strictReservedNames: true };
261054
+ function w5(t6) {
261055
+ return "boolean" == typeof t6 ? { enabled: t6, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1e3, maxExpandedLength: 1e5, allowedTags: null, tagFilter: null } : "object" == typeof t6 && null !== t6 ? { enabled: false !== t6.enabled, maxEntitySize: t6.maxEntitySize ?? 1e4, maxExpansionDepth: t6.maxExpansionDepth ?? 10, maxTotalExpansions: t6.maxTotalExpansions ?? 1e3, maxExpandedLength: t6.maxExpandedLength ?? 1e5, allowedTags: t6.allowedTags ?? null, tagFilter: t6.tagFilter ?? null } : w5(true);
261053
261056
  }
261054
- const w5 = function(t6) {
261055
- const e6 = Object.assign({}, y2, t6);
261056
- return e6.processEntities = T(e6.processEntities), e6;
261057
+ const v5 = function(t6) {
261058
+ const e6 = Object.assign({}, T, t6);
261059
+ return e6.processEntities = w5(e6.processEntities), e6;
261057
261060
  };
261058
- let v5;
261059
- v5 = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
261061
+ let O;
261062
+ O = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
261060
261063
  class I2 {
261061
261064
  constructor(t6) {
261062
- this.tagname = t6, this.child = [], this[":@"] = {};
261065
+ this.tagname = t6, this.child = [], this[":@"] = /* @__PURE__ */ Object.create(null);
261063
261066
  }
261064
261067
  add(t6, e6) {
261065
261068
  "__proto__" === t6 && (t6 = "#__proto__"), this.child.push({ [t6]: e6 });
261066
261069
  }
261067
261070
  addChild(t6, e6) {
261068
- "__proto__" === t6.tagname && (t6.tagname = "#__proto__"), t6[":@"] && Object.keys(t6[":@"]).length > 0 ? this.child.push({ [t6.tagname]: t6.child, ":@": t6[":@"] }) : this.child.push({ [t6.tagname]: t6.child }), void 0 !== e6 && (this.child[this.child.length - 1][v5] = { startIndex: e6 });
261071
+ "__proto__" === t6.tagname && (t6.tagname = "#__proto__"), t6[":@"] && Object.keys(t6[":@"]).length > 0 ? this.child.push({ [t6.tagname]: t6.child, ":@": t6[":@"] }) : this.child.push({ [t6.tagname]: t6.child }), void 0 !== e6 && (this.child[this.child.length - 1][O] = { startIndex: e6 });
261069
261072
  }
261070
261073
  static getMetaDataSymbol() {
261071
- return v5;
261074
+ return O;
261072
261075
  }
261073
261076
  }
261074
- class O {
261077
+ class P {
261075
261078
  constructor(t6) {
261076
261079
  this.suppressValidationErr = !t6, this.options = t6;
261077
261080
  }
261078
261081
  readDocType(t6, e6) {
261079
- const n6 = {};
261082
+ const n6 = /* @__PURE__ */ Object.create(null);
261080
261083
  if ("O" !== t6[e6 + 3] || "C" !== t6[e6 + 4] || "T" !== t6[e6 + 5] || "Y" !== t6[e6 + 6] || "P" !== t6[e6 + 7] || "E" !== t6[e6 + 8]) throw new Error("Invalid Tag instead of DOCTYPE");
261081
261084
  {
261082
261085
  e6 += 9;
@@ -261085,23 +261088,23 @@ var require_fxp = __commonJS({
261085
261088
  if (r6 ? "-" === t6[e6 - 1] && "-" === t6[e6 - 2] && (r6 = false, i6--) : i6--, 0 === i6) break;
261086
261089
  } else "[" === t6[e6] ? s6 = true : o6 += t6[e6];
261087
261090
  else {
261088
- if (s6 && A2(t6, "!ENTITY", e6)) {
261091
+ if (s6 && S(t6, "!ENTITY", e6)) {
261089
261092
  let i7, s7;
261090
261093
  if (e6 += 7, [i7, s7, e6] = this.readEntityExp(t6, e6 + 1, this.suppressValidationErr), -1 === s7.indexOf("&")) {
261091
261094
  const t7 = i7.replace(/[.\-+*:]/g, "\\.");
261092
261095
  n6[i7] = { regx: RegExp(`&${t7};`, "g"), val: s7 };
261093
261096
  }
261094
- } else if (s6 && A2(t6, "!ELEMENT", e6)) {
261097
+ } else if (s6 && S(t6, "!ELEMENT", e6)) {
261095
261098
  e6 += 8;
261096
261099
  const { index: n7 } = this.readElementExp(t6, e6 + 1);
261097
261100
  e6 = n7;
261098
- } else if (s6 && A2(t6, "!ATTLIST", e6)) e6 += 8;
261099
- else if (s6 && A2(t6, "!NOTATION", e6)) {
261101
+ } else if (s6 && S(t6, "!ATTLIST", e6)) e6 += 8;
261102
+ else if (s6 && S(t6, "!NOTATION", e6)) {
261100
261103
  e6 += 9;
261101
261104
  const { index: n7 } = this.readNotationExp(t6, e6 + 1, this.suppressValidationErr);
261102
261105
  e6 = n7;
261103
261106
  } else {
261104
- if (!A2(t6, "!--", e6)) throw new Error("Invalid DOCTYPE");
261107
+ if (!S(t6, "!--", e6)) throw new Error("Invalid DOCTYPE");
261105
261108
  r6 = true;
261106
261109
  }
261107
261110
  i6++, o6 = "";
@@ -261111,10 +261114,10 @@ var require_fxp = __commonJS({
261111
261114
  return { entities: n6, i: e6 };
261112
261115
  }
261113
261116
  readEntityExp(t6, e6) {
261114
- e6 = P(t6, e6);
261117
+ e6 = A2(t6, e6);
261115
261118
  let n6 = "";
261116
261119
  for (; e6 < t6.length && !/\s/.test(t6[e6]) && '"' !== t6[e6] && "'" !== t6[e6]; ) n6 += t6[e6], e6++;
261117
- if (S(n6), e6 = P(t6, e6), !this.suppressValidationErr) {
261120
+ if (C2(n6), e6 = A2(t6, e6), !this.suppressValidationErr) {
261118
261121
  if ("SYSTEM" === t6.substring(e6, e6 + 6).toUpperCase()) throw new Error("External entities are not supported");
261119
261122
  if ("%" === t6[e6]) throw new Error("Parameter entities are not supported");
261120
261123
  }
@@ -261123,15 +261126,15 @@ var require_fxp = __commonJS({
261123
261126
  return [n6, i6, --e6];
261124
261127
  }
261125
261128
  readNotationExp(t6, e6) {
261126
- e6 = P(t6, e6);
261129
+ e6 = A2(t6, e6);
261127
261130
  let n6 = "";
261128
261131
  for (; e6 < t6.length && !/\s/.test(t6[e6]); ) n6 += t6[e6], e6++;
261129
- !this.suppressValidationErr && S(n6), e6 = P(t6, e6);
261132
+ !this.suppressValidationErr && C2(n6), e6 = A2(t6, e6);
261130
261133
  const i6 = t6.substring(e6, e6 + 6).toUpperCase();
261131
261134
  if (!this.suppressValidationErr && "SYSTEM" !== i6 && "PUBLIC" !== i6) throw new Error(`Expected SYSTEM or PUBLIC, found "${i6}"`);
261132
- e6 += i6.length, e6 = P(t6, e6);
261135
+ e6 += i6.length, e6 = A2(t6, e6);
261133
261136
  let s6 = null, r6 = null;
261134
- if ("PUBLIC" === i6) [e6, s6] = this.readIdentifierVal(t6, e6, "publicIdentifier"), '"' !== t6[e6 = P(t6, e6)] && "'" !== t6[e6] || ([e6, r6] = this.readIdentifierVal(t6, e6, "systemIdentifier"));
261137
+ if ("PUBLIC" === i6) [e6, s6] = this.readIdentifierVal(t6, e6, "publicIdentifier"), '"' !== t6[e6 = A2(t6, e6)] && "'" !== t6[e6] || ([e6, r6] = this.readIdentifierVal(t6, e6, "systemIdentifier"));
261135
261138
  else if ("SYSTEM" === i6 && ([e6, r6] = this.readIdentifierVal(t6, e6, "systemIdentifier"), !this.suppressValidationErr && !r6)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
261136
261139
  return { notationName: n6, publicIdentifier: s6, systemIdentifier: r6, index: --e6 };
261137
261140
  }
@@ -261144,13 +261147,13 @@ var require_fxp = __commonJS({
261144
261147
  return [++e6, i6];
261145
261148
  }
261146
261149
  readElementExp(t6, e6) {
261147
- e6 = P(t6, e6);
261150
+ e6 = A2(t6, e6);
261148
261151
  let n6 = "";
261149
261152
  for (; e6 < t6.length && !/\s/.test(t6[e6]); ) n6 += t6[e6], e6++;
261150
261153
  if (!this.suppressValidationErr && !r5(n6)) throw new Error(`Invalid element name: "${n6}"`);
261151
261154
  let i6 = "";
261152
- if ("E" === t6[e6 = P(t6, e6)] && A2(t6, "MPTY", e6)) e6 += 4;
261153
- else if ("A" === t6[e6] && A2(t6, "NY", e6)) e6 += 2;
261155
+ if ("E" === t6[e6 = A2(t6, e6)] && S(t6, "MPTY", e6)) e6 += 4;
261156
+ else if ("A" === t6[e6] && S(t6, "NY", e6)) e6 += 2;
261154
261157
  else if ("(" === t6[e6]) {
261155
261158
  for (e6++; e6 < t6.length && ")" !== t6[e6]; ) i6 += t6[e6], e6++;
261156
261159
  if (")" !== t6[e6]) throw new Error("Unterminated content model");
@@ -261158,24 +261161,24 @@ var require_fxp = __commonJS({
261158
261161
  return { elementName: n6, contentModel: i6.trim(), index: e6 };
261159
261162
  }
261160
261163
  readAttlistExp(t6, e6) {
261161
- e6 = P(t6, e6);
261164
+ e6 = A2(t6, e6);
261162
261165
  let n6 = "";
261163
261166
  for (; e6 < t6.length && !/\s/.test(t6[e6]); ) n6 += t6[e6], e6++;
261164
- S(n6), e6 = P(t6, e6);
261167
+ C2(n6), e6 = A2(t6, e6);
261165
261168
  let i6 = "";
261166
261169
  for (; e6 < t6.length && !/\s/.test(t6[e6]); ) i6 += t6[e6], e6++;
261167
- if (!S(i6)) throw new Error(`Invalid attribute name: "${i6}"`);
261168
- e6 = P(t6, e6);
261170
+ if (!C2(i6)) throw new Error(`Invalid attribute name: "${i6}"`);
261171
+ e6 = A2(t6, e6);
261169
261172
  let s6 = "";
261170
261173
  if ("NOTATION" === t6.substring(e6, e6 + 8).toUpperCase()) {
261171
- if (s6 = "NOTATION", "(" !== t6[e6 = P(t6, e6 += 8)]) throw new Error(`Expected '(', found "${t6[e6]}"`);
261174
+ if (s6 = "NOTATION", "(" !== t6[e6 = A2(t6, e6 += 8)]) throw new Error(`Expected '(', found "${t6[e6]}"`);
261172
261175
  e6++;
261173
261176
  let n7 = [];
261174
261177
  for (; e6 < t6.length && ")" !== t6[e6]; ) {
261175
261178
  let i7 = "";
261176
261179
  for (; e6 < t6.length && "|" !== t6[e6] && ")" !== t6[e6]; ) i7 += t6[e6], e6++;
261177
- if (i7 = i7.trim(), !S(i7)) throw new Error(`Invalid notation name: "${i7}"`);
261178
- n7.push(i7), "|" === t6[e6] && (e6++, e6 = P(t6, e6));
261180
+ if (i7 = i7.trim(), !C2(i7)) throw new Error(`Invalid notation name: "${i7}"`);
261181
+ n7.push(i7), "|" === t6[e6] && (e6++, e6 = A2(t6, e6));
261179
261182
  }
261180
261183
  if (")" !== t6[e6]) throw new Error("Unterminated list of notations");
261181
261184
  e6++, s6 += " (" + n7.join("|") + ")";
@@ -261184,45 +261187,43 @@ var require_fxp = __commonJS({
261184
261187
  const n7 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
261185
261188
  if (!this.suppressValidationErr && !n7.includes(s6.toUpperCase())) throw new Error(`Invalid attribute type: "${s6}"`);
261186
261189
  }
261187
- e6 = P(t6, e6);
261190
+ e6 = A2(t6, e6);
261188
261191
  let r6 = "";
261189
261192
  return "#REQUIRED" === t6.substring(e6, e6 + 8).toUpperCase() ? (r6 = "#REQUIRED", e6 += 8) : "#IMPLIED" === t6.substring(e6, e6 + 7).toUpperCase() ? (r6 = "#IMPLIED", e6 += 7) : [e6, r6] = this.readIdentifierVal(t6, e6, "ATTLIST"), { elementName: n6, attributeName: i6, attributeType: s6, defaultValue: r6, index: e6 };
261190
261193
  }
261191
261194
  }
261192
- const P = (t6, e6) => {
261195
+ const A2 = (t6, e6) => {
261193
261196
  for (; e6 < t6.length && /\s/.test(t6[e6]); ) e6++;
261194
261197
  return e6;
261195
261198
  };
261196
- function A2(t6, e6, n6) {
261199
+ function S(t6, e6, n6) {
261197
261200
  for (let i6 = 0; i6 < e6.length; i6++) if (e6[i6] !== t6[n6 + i6 + 1]) return false;
261198
261201
  return true;
261199
261202
  }
261200
- function S(t6) {
261203
+ function C2(t6) {
261201
261204
  if (r5(t6)) return t6;
261202
261205
  throw new Error(`Invalid entity name ${t6}`);
261203
261206
  }
261204
- const C2 = /^[-+]?0x[a-fA-F0-9]+$/, $ = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, V = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
261205
- const D2 = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
261206
- function L(t6) {
261207
- return "function" == typeof t6 ? t6 : Array.isArray(t6) ? (e6) => {
261208
- for (const n6 of t6) {
261209
- if ("string" == typeof n6 && e6 === n6) return true;
261210
- if (n6 instanceof RegExp && n6.test(e6)) return true;
261211
- }
261212
- } : () => false;
261213
- }
261214
- class F2 {
261207
+ const $ = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, D2 = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
261208
+ const j5 = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
261209
+ class L {
261215
261210
  constructor(t6) {
261216
- if (this.options = t6, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t7, e6) => K(e6, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t7, e6) => K(e6, 16, "&#x") } }, this.addExternalEntities = j5, this.parseXml = B2, this.parseTextData = M, this.resolveNameSpace = _, this.buildAttributesMap = U, this.isItStopNode = X, this.replaceEntitiesValue = Y, this.readStopNodeData = q5, this.saveTextToParentTag = G2, this.addChild = R, this.ignoreAttributesFn = L(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
261211
+ var e6;
261212
+ if (this.options = t6, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t7, e7) => K(e7, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t7, e7) => K(e7, 16, "&#x") } }, this.addExternalEntities = F2, this.parseXml = R, this.parseTextData = M, this.resolveNameSpace = k5, this.buildAttributesMap = U, this.isItStopNode = X, this.replaceEntitiesValue = Y, this.readStopNodeData = q5, this.saveTextToParentTag = G2, this.addChild = B2, this.ignoreAttributesFn = "function" == typeof (e6 = this.options.ignoreAttributes) ? e6 : Array.isArray(e6) ? (t7) => {
261213
+ for (const n6 of e6) {
261214
+ if ("string" == typeof n6 && t7 === n6) return true;
261215
+ if (n6 instanceof RegExp && n6.test(t7)) return true;
261216
+ }
261217
+ } : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
261217
261218
  this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
261218
261219
  for (let t7 = 0; t7 < this.options.stopNodes.length; t7++) {
261219
- const e6 = this.options.stopNodes[t7];
261220
- "string" == typeof e6 && (e6.startsWith("*.") ? this.stopNodesWildcard.add(e6.substring(2)) : this.stopNodesExact.add(e6));
261220
+ const e7 = this.options.stopNodes[t7];
261221
+ "string" == typeof e7 && (e7.startsWith("*.") ? this.stopNodesWildcard.add(e7.substring(2)) : this.stopNodesExact.add(e7));
261221
261222
  }
261222
261223
  }
261223
261224
  }
261224
261225
  }
261225
- function j5(t6) {
261226
+ function F2(t6) {
261226
261227
  const e6 = Object.keys(t6);
261227
261228
  for (let n6 = 0; n6 < e6.length; n6++) {
261228
261229
  const i6 = e6[n6], s6 = i6.replace(/[.\-+*:]/g, "\\.");
@@ -261236,7 +261237,7 @@ var require_fxp = __commonJS({
261236
261237
  return null == i7 ? t6 : typeof i7 != typeof t6 || i7 !== t6 ? i7 : this.options.trimValues || t6.trim() === t6 ? Z(t6, this.options.parseTagValue, this.options.numberParseOptions) : t6;
261237
261238
  }
261238
261239
  }
261239
- function _(t6) {
261240
+ function k5(t6) {
261240
261241
  if (this.options.removeNSPrefix) {
261241
261242
  const e6 = t6.split(":"), n6 = "/" === t6.charAt(0) ? "/" : "";
261242
261243
  if ("xmlns" === e6[0]) return "";
@@ -261244,10 +261245,10 @@ var require_fxp = __commonJS({
261244
261245
  }
261245
261246
  return t6;
261246
261247
  }
261247
- const k5 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
261248
+ const _ = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
261248
261249
  function U(t6, e6, n6) {
261249
261250
  if (true !== this.options.ignoreAttributes && "string" == typeof t6) {
261250
- const i6 = s5(t6, k5), r6 = i6.length, o6 = {};
261251
+ const i6 = s5(t6, _), r6 = i6.length, o6 = {};
261251
261252
  for (let t7 = 0; t7 < r6; t7++) {
261252
261253
  const s6 = this.resolveNameSpace(i6[t7][1]);
261253
261254
  if (this.ignoreAttributesFn(s6, e6)) continue;
@@ -261266,12 +261267,12 @@ var require_fxp = __commonJS({
261266
261267
  return o6;
261267
261268
  }
261268
261269
  }
261269
- const B2 = function(t6) {
261270
+ const R = function(t6) {
261270
261271
  t6 = t6.replace(/\r\n?/g, "\n");
261271
261272
  const e6 = new I2("!xml");
261272
261273
  let n6 = e6, i6 = "", s6 = "";
261273
261274
  this.entityExpansionCount = 0, this.currentExpandedLength = 0;
261274
- const r6 = new O(this.options.processEntities);
261275
+ const r6 = new P(this.options.processEntities);
261275
261276
  for (let o6 = 0; o6 < t6.length; o6++) if ("<" === t6[o6]) if ("/" === t6[o6 + 1]) {
261276
261277
  const e7 = z2(t6, ">", o6, "Closing Tag is not closed.");
261277
261278
  let r7 = t6.substring(o6 + 2, e7).trim();
@@ -261311,26 +261312,27 @@ var require_fxp = __commonJS({
261311
261312
  } else {
261312
261313
  let r7 = W(t6, o6, this.options.removeNSPrefix), a6 = r7.tagName;
261313
261314
  const l6 = r7.rawTagName;
261314
- let u6 = r7.tagExp, h6 = r7.attrExpPresent, d6 = r7.closeIndex;
261315
+ let u6 = r7.tagExp, d6 = r7.attrExpPresent, h6 = r7.closeIndex;
261315
261316
  if (this.options.transformTagName) {
261316
261317
  const t7 = this.options.transformTagName(a6);
261317
261318
  u6 === a6 && (u6 = t7), a6 = t7;
261318
261319
  }
261320
+ if (this.options.strictReservedNames && (a6 === this.options.commentPropName || a6 === this.options.cdataPropName)) throw new Error(`Invalid tag name: ${a6}`);
261319
261321
  n6 && i6 && "!xml" !== n6.tagname && (i6 = this.saveTextToParentTag(i6, n6, s6, false));
261320
261322
  const p6 = n6;
261321
261323
  p6 && -1 !== this.options.unpairedTags.indexOf(p6.tagname) && (n6 = this.tagsNodeStack.pop(), s6 = s6.substring(0, s6.lastIndexOf("."))), a6 !== e6.tagname && (s6 += s6 ? "." + a6 : a6);
261322
- const f6 = o6;
261324
+ const c6 = o6;
261323
261325
  if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, s6, a6)) {
261324
261326
  let e7 = "";
261325
261327
  if (u6.length > 0 && u6.lastIndexOf("/") === u6.length - 1) "/" === a6[a6.length - 1] ? (a6 = a6.substr(0, a6.length - 1), s6 = s6.substr(0, s6.length - 1), u6 = a6) : u6 = u6.substr(0, u6.length - 1), o6 = r7.closeIndex;
261326
261328
  else if (-1 !== this.options.unpairedTags.indexOf(a6)) o6 = r7.closeIndex;
261327
261329
  else {
261328
- const n7 = this.readStopNodeData(t6, l6, d6 + 1);
261330
+ const n7 = this.readStopNodeData(t6, l6, h6 + 1);
261329
261331
  if (!n7) throw new Error(`Unexpected end of ${l6}`);
261330
261332
  o6 = n7.i, e7 = n7.tagContent;
261331
261333
  }
261332
261334
  const i7 = new I2(a6);
261333
- a6 !== u6 && h6 && (i7[":@"] = this.buildAttributesMap(u6, s6, a6)), e7 && (e7 = this.parseTextData(e7, a6, s6, true, h6, true, true)), s6 = s6.substr(0, s6.lastIndexOf(".")), i7.add(this.options.textNodeName, e7), this.addChild(n6, i7, s6, f6);
261335
+ a6 !== u6 && d6 && (i7[":@"] = this.buildAttributesMap(u6, s6, a6)), e7 && (e7 = this.parseTextData(e7, a6, s6, true, d6, true, true)), s6 = s6.substr(0, s6.lastIndexOf(".")), i7.add(this.options.textNodeName, e7), this.addChild(n6, i7, s6, c6);
261334
261336
  } else {
261335
261337
  if (u6.length > 0 && u6.lastIndexOf("/") === u6.length - 1) {
261336
261338
  if ("/" === a6[a6.length - 1] ? (a6 = a6.substr(0, a6.length - 1), s6 = s6.substr(0, s6.length - 1), u6 = a6) : u6 = u6.substr(0, u6.length - 1), this.options.transformTagName) {
@@ -261338,18 +261340,26 @@ var require_fxp = __commonJS({
261338
261340
  u6 === a6 && (u6 = t8), a6 = t8;
261339
261341
  }
261340
261342
  const t7 = new I2(a6);
261341
- a6 !== u6 && h6 && (t7[":@"] = this.buildAttributesMap(u6, s6, a6)), this.addChild(n6, t7, s6, f6), s6 = s6.substr(0, s6.lastIndexOf("."));
261343
+ a6 !== u6 && d6 && (t7[":@"] = this.buildAttributesMap(u6, s6, a6)), this.addChild(n6, t7, s6, c6), s6 = s6.substr(0, s6.lastIndexOf("."));
261342
261344
  } else {
261343
- const t7 = new I2(a6);
261344
- this.tagsNodeStack.push(n6), a6 !== u6 && h6 && (t7[":@"] = this.buildAttributesMap(u6, s6, a6)), this.addChild(n6, t7, s6, f6), n6 = t7;
261345
+ if (-1 !== this.options.unpairedTags.indexOf(a6)) {
261346
+ const t7 = new I2(a6);
261347
+ a6 !== u6 && d6 && (t7[":@"] = this.buildAttributesMap(u6, s6)), this.addChild(n6, t7, s6, c6), s6 = s6.substr(0, s6.lastIndexOf(".")), o6 = r7.closeIndex;
261348
+ continue;
261349
+ }
261350
+ {
261351
+ const t7 = new I2(a6);
261352
+ if (this.tagsNodeStack.length > this.options.maxNestedTags) throw new Error("Maximum nested tags exceeded");
261353
+ this.tagsNodeStack.push(n6), a6 !== u6 && d6 && (t7[":@"] = this.buildAttributesMap(u6, s6, a6)), this.addChild(n6, t7, s6, c6), n6 = t7;
261354
+ }
261345
261355
  }
261346
- i6 = "", o6 = d6;
261356
+ i6 = "", o6 = h6;
261347
261357
  }
261348
261358
  }
261349
261359
  else i6 += t6[o6];
261350
261360
  return e6.child;
261351
261361
  };
261352
- function R(t6, e6, n6, i6) {
261362
+ function B2(t6, e6, n6, i6) {
261353
261363
  this.options.captureMetaData || (i6 = void 0);
261354
261364
  const s6 = this.options.updateTag(e6.tagname, n6, e6[":@"]);
261355
261365
  false === s6 || ("string" == typeof s6 ? (e6.tagname = s6, t6.addChild(e6, i6)) : t6.addChild(e6, i6));
@@ -261410,12 +261420,12 @@ var require_fxp = __commonJS({
261410
261420
  const o6 = s6.index, a6 = r6.search(/\s/);
261411
261421
  let l6 = r6, u6 = true;
261412
261422
  -1 !== a6 && (l6 = r6.substring(0, a6), r6 = r6.substring(a6 + 1).trimStart());
261413
- const h6 = l6;
261423
+ const d6 = l6;
261414
261424
  if (n6) {
261415
261425
  const t7 = l6.indexOf(":");
261416
261426
  -1 !== t7 && (l6 = l6.substr(t7 + 1), u6 = l6 !== s6.data.substr(t7 + 1));
261417
261427
  }
261418
- return { tagName: l6, tagExp: r6, closeIndex: o6, attrExpPresent: u6, rawTagName: h6 };
261428
+ return { tagName: l6, tagExp: r6, closeIndex: o6, attrExpPresent: u6, rawTagName: d6 };
261419
261429
  }
261420
261430
  function q5(t6, e6, n6) {
261421
261431
  const i6 = n6;
@@ -261436,19 +261446,19 @@ var require_fxp = __commonJS({
261436
261446
  if (e6 && "string" == typeof t6) {
261437
261447
  const e7 = t6.trim();
261438
261448
  return "true" === e7 || "false" !== e7 && (function(t7, e8 = {}) {
261439
- if (e8 = Object.assign({}, V, e8), !t7 || "string" != typeof t7) return t7;
261449
+ if (e8 = Object.assign({}, D2, e8), !t7 || "string" != typeof t7) return t7;
261440
261450
  let n7 = t7.trim();
261441
261451
  if (void 0 !== e8.skipLike && e8.skipLike.test(n7)) return t7;
261442
261452
  if ("0" === t7) return 0;
261443
- if (e8.hex && C2.test(n7)) return (function(t8) {
261453
+ if (e8.hex && $.test(n7)) return (function(t8) {
261444
261454
  if (parseInt) return parseInt(t8, 16);
261445
261455
  if (Number.parseInt) return Number.parseInt(t8, 16);
261446
261456
  if (window && window.parseInt) return window.parseInt(t8, 16);
261447
261457
  throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
261448
261458
  })(n7);
261449
- if (-1 !== n7.search(/.+[eE].+/)) return (function(t8, e9, n8) {
261459
+ if (n7.includes("e") || n7.includes("E")) return (function(t8, e9, n8) {
261450
261460
  if (!n8.eNotation) return t8;
261451
- const i7 = e9.match(D2);
261461
+ const i7 = e9.match(j5);
261452
261462
  if (i7) {
261453
261463
  let s6 = i7[1] || "";
261454
261464
  const r6 = -1 === i7[3].indexOf("e") ? "E" : "e", o6 = i7[2], a6 = s6 ? t8[o6.length + 1] === r6 : t8[o6.length] === r6;
@@ -261457,7 +261467,7 @@ var require_fxp = __commonJS({
261457
261467
  return t8;
261458
261468
  })(t7, n7, e8);
261459
261469
  {
261460
- const s6 = $.exec(n7);
261470
+ const s6 = V.exec(n7);
261461
261471
  if (s6) {
261462
261472
  const r6 = s6[1] || "", o6 = s6[2];
261463
261473
  let a6 = (i6 = s6[3]) && -1 !== i6.indexOf(".") ? ("." === (i6 = i6.replace(/0+$/, "")) ? i6 = "0" : "." === i6[0] ? i6 = "0" + i6 : "." === i6[i6.length - 1] && (i6 = i6.substring(0, i6.length - 1)), i6) : i6;
@@ -261465,7 +261475,7 @@ var require_fxp = __commonJS({
261465
261475
  if (!e8.leadingZeros && (o6.length > 1 || 1 === o6.length && !l6)) return t7;
261466
261476
  {
261467
261477
  const i7 = Number(n7), s7 = String(i7);
261468
- if (0 === i7 || -0 === i7) return i7;
261478
+ if (0 === i7) return i7;
261469
261479
  if (-1 !== s7.search(/[eE]/)) return e8.eNotation ? i7 : t7;
261470
261480
  if (-1 !== n7.indexOf(".")) return "0" === s7 || s7 === a6 || s7 === `${r6}${a6}` ? i7 : t7;
261471
261481
  let l7 = o6 ? a6 : n7;
@@ -261499,7 +261509,7 @@ var require_fxp = __commonJS({
261499
261509
  if (o6[a6]) {
261500
261510
  let t7 = H2(o6[a6], e6, l6);
261501
261511
  const n7 = nt(t7, e6);
261502
- void 0 !== o6[Q] && (t7[Q] = o6[Q]), o6[":@"] ? et(t7, o6[":@"], l6, e6) : 1 !== Object.keys(t7).length || void 0 === t7[e6.textNodeName] || e6.alwaysCreateTextNode ? 0 === Object.keys(t7).length && (e6.alwaysCreateTextNode ? t7[e6.textNodeName] = "" : t7 = "") : t7 = t7[e6.textNodeName], void 0 !== s6[a6] && s6.hasOwnProperty(a6) ? (Array.isArray(s6[a6]) || (s6[a6] = [s6[a6]]), s6[a6].push(t7)) : e6.isArray(a6, l6, n7) ? s6[a6] = [t7] : s6[a6] = t7;
261512
+ o6[":@"] ? et(t7, o6[":@"], l6, e6) : 1 !== Object.keys(t7).length || void 0 === t7[e6.textNodeName] || e6.alwaysCreateTextNode ? 0 === Object.keys(t7).length && (e6.alwaysCreateTextNode ? t7[e6.textNodeName] = "" : t7 = "") : t7 = t7[e6.textNodeName], void 0 !== o6[Q] && "object" == typeof t7 && null !== t7 && (t7[Q] = o6[Q]), void 0 !== s6[a6] && Object.prototype.hasOwnProperty.call(s6, a6) ? (Array.isArray(s6[a6]) || (s6[a6] = [s6[a6]]), s6[a6].push(t7)) : e6.isArray(a6, l6, n7) ? s6[a6] = [t7] : s6[a6] = t7;
261503
261513
  }
261504
261514
  }
261505
261515
  }
@@ -261527,7 +261537,7 @@ var require_fxp = __commonJS({
261527
261537
  }
261528
261538
  class it {
261529
261539
  constructor(t6) {
261530
- this.externalEntities = {}, this.options = w5(t6);
261540
+ this.externalEntities = {}, this.options = v5(t6);
261531
261541
  }
261532
261542
  parse(t6, e6) {
261533
261543
  if ("string" != typeof t6 && t6.toString) t6 = t6.toString();
@@ -261537,7 +261547,7 @@ var require_fxp = __commonJS({
261537
261547
  const n7 = a5(t6, e6);
261538
261548
  if (true !== n7) throw Error(`${n7.err.msg}:${n7.err.line}:${n7.err.col}`);
261539
261549
  }
261540
- const n6 = new F2(this.options);
261550
+ const n6 = new L(this.options);
261541
261551
  n6.addExternalEntities(this.externalEntities);
261542
261552
  const i6 = n6.parseXml(t6);
261543
261553
  return this.options.preserveOrder || void 0 === i6 ? i6 : J2(i6, this.options);
@@ -261558,6 +261568,13 @@ var require_fxp = __commonJS({
261558
261568
  }
261559
261569
  function rt(t6, e6, n6, i6) {
261560
261570
  let s6 = "", r6 = false;
261571
+ if (!Array.isArray(t6)) {
261572
+ if (null != t6) {
261573
+ let n7 = t6.toString();
261574
+ return n7 = ut(n7, e6), n7;
261575
+ }
261576
+ return "";
261577
+ }
261561
261578
  for (let o6 = 0; o6 < t6.length; o6++) {
261562
261579
  const a6 = t6[o6], l6 = ot(a6);
261563
261580
  if (void 0 === l6) continue;
@@ -261581,10 +261598,10 @@ var require_fxp = __commonJS({
261581
261598
  o7 = 0 !== o7.length ? " " + o7 : "", s6 += n7 + `<${l6}${o7}${t7}?>`, r6 = true;
261582
261599
  continue;
261583
261600
  }
261584
- let h6 = i6;
261585
- "" !== h6 && (h6 += e6.indentBy);
261586
- const d6 = i6 + `<${l6}${at3(a6[":@"], e6)}`, p6 = rt(a6[l6], e6, u6, h6);
261587
- -1 !== e6.unpairedTags.indexOf(l6) ? e6.suppressUnpairedNode ? s6 += d6 + ">" : s6 += d6 + "/>" : p6 && 0 !== p6.length || !e6.suppressEmptyNode ? p6 && p6.endsWith(">") ? s6 += d6 + `>${p6}${i6}</${l6}>` : (s6 += d6 + ">", p6 && "" !== i6 && (p6.includes("/>") || p6.includes("</")) ? s6 += i6 + e6.indentBy + p6 + i6 : s6 += p6, s6 += `</${l6}>`) : s6 += d6 + "/>", r6 = true;
261601
+ let d6 = i6;
261602
+ "" !== d6 && (d6 += e6.indentBy);
261603
+ const h6 = i6 + `<${l6}${at3(a6[":@"], e6)}`, p6 = rt(a6[l6], e6, u6, d6);
261604
+ -1 !== e6.unpairedTags.indexOf(l6) ? e6.suppressUnpairedNode ? s6 += h6 + ">" : s6 += h6 + "/>" : p6 && 0 !== p6.length || !e6.suppressEmptyNode ? p6 && p6.endsWith(">") ? s6 += h6 + `>${p6}${i6}</${l6}>` : (s6 += h6 + ">", p6 && "" !== i6 && (p6.includes("/>") || p6.includes("</")) ? s6 += i6 + e6.indentBy + p6 + i6 : s6 += p6, s6 += `</${l6}>`) : s6 += h6 + "/>", r6 = true;
261588
261605
  }
261589
261606
  return s6;
261590
261607
  }
@@ -261592,13 +261609,13 @@ var require_fxp = __commonJS({
261592
261609
  const e6 = Object.keys(t6);
261593
261610
  for (let n6 = 0; n6 < e6.length; n6++) {
261594
261611
  const i6 = e6[n6];
261595
- if (t6.hasOwnProperty(i6) && ":@" !== i6) return i6;
261612
+ if (Object.prototype.hasOwnProperty.call(t6, i6) && ":@" !== i6) return i6;
261596
261613
  }
261597
261614
  }
261598
261615
  function at3(t6, e6) {
261599
261616
  let n6 = "";
261600
261617
  if (t6 && !e6.ignoreAttributes) for (let i6 in t6) {
261601
- if (!t6.hasOwnProperty(i6)) continue;
261618
+ if (!Object.prototype.hasOwnProperty.call(t6, i6)) continue;
261602
261619
  let s6 = e6.attributeValueProcessor(i6, t6[i6]);
261603
261620
  s6 = ut(s6, e6), true === s6 && e6.suppressBooleanAttributes ? n6 += ` ${i6.substr(e6.attributeNamePrefix.length)}` : n6 += ` ${i6.substr(e6.attributeNamePrefix.length)}="${s6}"`;
261604
261621
  }
@@ -261616,15 +261633,21 @@ var require_fxp = __commonJS({
261616
261633
  }
261617
261634
  return t6;
261618
261635
  }
261619
- const ht = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t6, e6) {
261636
+ const dt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t6, e6) {
261620
261637
  return e6;
261621
261638
  }, attributeValueProcessor: function(t6, e6) {
261622
261639
  return e6;
261623
261640
  }, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&amp;" }, { regex: new RegExp(">", "g"), val: "&gt;" }, { regex: new RegExp("<", "g"), val: "&lt;" }, { regex: new RegExp("'", "g"), val: "&apos;" }, { regex: new RegExp('"', "g"), val: "&quot;" }], processEntities: true, stopNodes: [], oneListGroup: false };
261624
- function dt(t6) {
261625
- this.options = Object.assign({}, ht, t6), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
261641
+ function ht(t6) {
261642
+ var e6;
261643
+ this.options = Object.assign({}, dt, t6), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
261626
261644
  return false;
261627
- } : (this.ignoreAttributesFn = L(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ct), this.processTextOrObjNode = pt, this.options.format ? (this.indentate = ft, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
261645
+ } : (this.ignoreAttributesFn = "function" == typeof (e6 = this.options.ignoreAttributes) ? e6 : Array.isArray(e6) ? (t7) => {
261646
+ for (const n6 of e6) {
261647
+ if ("string" == typeof n6 && t7 === n6) return true;
261648
+ if (n6 instanceof RegExp && n6.test(t7)) return true;
261649
+ }
261650
+ } : () => false, this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ft), this.processTextOrObjNode = pt, this.options.format ? (this.indentate = ct, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
261628
261651
  return "";
261629
261652
  }, this.tagEndChar = ">", this.newLine = "");
261630
261653
  }
@@ -261632,15 +261655,15 @@ var require_fxp = __commonJS({
261632
261655
  const s6 = this.j2x(t6, n6 + 1, i6.concat(e6));
261633
261656
  return void 0 !== t6[this.options.textNodeName] && 1 === Object.keys(t6).length ? this.buildTextValNode(t6[this.options.textNodeName], e6, s6.attrStr, n6) : this.buildObjectNode(s6.val, e6, s6.attrStr, n6);
261634
261657
  }
261635
- function ft(t6) {
261658
+ function ct(t6) {
261636
261659
  return this.options.indentBy.repeat(t6);
261637
261660
  }
261638
- function ct(t6) {
261661
+ function ft(t6) {
261639
261662
  return !(!t6.startsWith(this.options.attributeNamePrefix) || t6 === this.options.textNodeName) && t6.substr(this.attrPrefixLen);
261640
261663
  }
261641
- dt.prototype.build = function(t6) {
261664
+ ht.prototype.build = function(t6) {
261642
261665
  return this.options.preserveOrder ? st(t6, this.options) : (Array.isArray(t6) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t6 = { [this.options.arrayNodeName]: t6 }), this.j2x(t6, 0, []).val);
261643
- }, dt.prototype.j2x = function(t6, e6, n6) {
261666
+ }, ht.prototype.j2x = function(t6, e6, n6) {
261644
261667
  let i6 = "", s6 = "";
261645
261668
  const r6 = n6.join(".");
261646
261669
  for (let o6 in t6) if (Object.prototype.hasOwnProperty.call(t6, o6)) if (void 0 === t6[o6]) this.isAttribute(o6) && (s6 += "");
@@ -261675,18 +261698,18 @@ var require_fxp = __commonJS({
261675
261698
  for (let s7 = 0; s7 < n7; s7++) i6 += this.buildAttrPairStr(e7[s7], "" + t6[o6][e7[s7]]);
261676
261699
  } else s6 += this.processTextOrObjNode(t6[o6], o6, e6, n6);
261677
261700
  return { attrStr: i6, val: s6 };
261678
- }, dt.prototype.buildAttrPairStr = function(t6, e6) {
261701
+ }, ht.prototype.buildAttrPairStr = function(t6, e6) {
261679
261702
  return e6 = this.options.attributeValueProcessor(t6, "" + e6), e6 = this.replaceEntitiesValue(e6), this.options.suppressBooleanAttributes && "true" === e6 ? " " + t6 : " " + t6 + '="' + e6 + '"';
261680
- }, dt.prototype.buildObjectNode = function(t6, e6, n6, i6) {
261703
+ }, ht.prototype.buildObjectNode = function(t6, e6, n6, i6) {
261681
261704
  if ("" === t6) return "?" === e6[0] ? this.indentate(i6) + "<" + e6 + n6 + "?" + this.tagEndChar : this.indentate(i6) + "<" + e6 + n6 + this.closeTag(e6) + this.tagEndChar;
261682
261705
  {
261683
261706
  let s6 = "</" + e6 + this.tagEndChar, r6 = "";
261684
261707
  return "?" === e6[0] && (r6 = "?", s6 = ""), !n6 && "" !== n6 || -1 !== t6.indexOf("<") ? false !== this.options.commentPropName && e6 === this.options.commentPropName && 0 === r6.length ? this.indentate(i6) + `<!--${t6}-->` + this.newLine : this.indentate(i6) + "<" + e6 + n6 + r6 + this.tagEndChar + t6 + this.indentate(i6) + s6 : this.indentate(i6) + "<" + e6 + n6 + r6 + ">" + t6 + s6;
261685
261708
  }
261686
- }, dt.prototype.closeTag = function(t6) {
261709
+ }, ht.prototype.closeTag = function(t6) {
261687
261710
  let e6 = "";
261688
261711
  return -1 !== this.options.unpairedTags.indexOf(t6) ? this.options.suppressUnpairedNode || (e6 = "/") : e6 = this.options.suppressEmptyNode ? "/" : `></${t6}`, e6;
261689
- }, dt.prototype.buildTextValNode = function(t6, e6, n6, i6) {
261712
+ }, ht.prototype.buildTextValNode = function(t6, e6, n6, i6) {
261690
261713
  if (false !== this.options.cdataPropName && e6 === this.options.cdataPropName) return this.indentate(i6) + `<![CDATA[${t6}]]>` + this.newLine;
261691
261714
  if (false !== this.options.commentPropName && e6 === this.options.commentPropName) return this.indentate(i6) + `<!--${t6}-->` + this.newLine;
261692
261715
  if ("?" === e6[0]) return this.indentate(i6) + "<" + e6 + n6 + "?" + this.tagEndChar;
@@ -261694,14 +261717,14 @@ var require_fxp = __commonJS({
261694
261717
  let s6 = this.options.tagValueProcessor(e6, t6);
261695
261718
  return s6 = this.replaceEntitiesValue(s6), "" === s6 ? this.indentate(i6) + "<" + e6 + n6 + this.closeTag(e6) + this.tagEndChar : this.indentate(i6) + "<" + e6 + n6 + ">" + s6 + "</" + e6 + this.tagEndChar;
261696
261719
  }
261697
- }, dt.prototype.replaceEntitiesValue = function(t6) {
261720
+ }, ht.prototype.replaceEntitiesValue = function(t6) {
261698
261721
  if (t6 && t6.length > 0 && this.options.processEntities) for (let e6 = 0; e6 < this.options.entities.length; e6++) {
261699
261722
  const n6 = this.options.entities[e6];
261700
261723
  t6 = t6.replace(n6.regex, n6.val);
261701
261724
  }
261702
261725
  return t6;
261703
261726
  };
261704
- const gt = { validate: a5 };
261727
+ const gt = ht, xt = { validate: a5 };
261705
261728
  module2.exports = e5;
261706
261729
  })();
261707
261730
  }
@@ -261721,7 +261744,8 @@ var require_xml_parser = __commonJS({
261721
261744
  ignoreDeclaration: true,
261722
261745
  parseTagValue: false,
261723
261746
  trimValues: false,
261724
- tagValueProcessor: (_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0
261747
+ tagValueProcessor: (_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0,
261748
+ maxNestedTags: 1024
261725
261749
  });
261726
261750
  parser.addEntity("#xD", "\r");
261727
261751
  parser.addEntity("#10", "\n");
@@ -266274,7 +266298,7 @@ var require_package2 = __commonJS({
266274
266298
  module2.exports = {
266275
266299
  name: "@aws-sdk/client-bedrock-runtime",
266276
266300
  description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
266277
- version: "3.1000.0",
266301
+ version: "3.1001.0",
266278
266302
  scripts: {
266279
266303
  build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
266280
266304
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
@@ -266298,54 +266322,54 @@ var require_package2 = __commonJS({
266298
266322
  dependencies: {
266299
266323
  "@aws-crypto/sha256-browser": "5.2.0",
266300
266324
  "@aws-crypto/sha256-js": "5.2.0",
266301
- "@aws-sdk/core": "^3.973.15",
266302
- "@aws-sdk/credential-provider-node": "^3.972.14",
266325
+ "@aws-sdk/core": "^3.973.16",
266326
+ "@aws-sdk/credential-provider-node": "^3.972.15",
266303
266327
  "@aws-sdk/eventstream-handler-node": "^3.972.9",
266304
266328
  "@aws-sdk/middleware-eventstream": "^3.972.6",
266305
266329
  "@aws-sdk/middleware-host-header": "^3.972.6",
266306
266330
  "@aws-sdk/middleware-logger": "^3.972.6",
266307
266331
  "@aws-sdk/middleware-recursion-detection": "^3.972.6",
266308
- "@aws-sdk/middleware-user-agent": "^3.972.15",
266309
- "@aws-sdk/middleware-websocket": "^3.972.10",
266332
+ "@aws-sdk/middleware-user-agent": "^3.972.16",
266333
+ "@aws-sdk/middleware-websocket": "^3.972.11",
266310
266334
  "@aws-sdk/region-config-resolver": "^3.972.6",
266311
- "@aws-sdk/token-providers": "3.1000.0",
266335
+ "@aws-sdk/token-providers": "3.1001.0",
266312
266336
  "@aws-sdk/types": "^3.973.4",
266313
266337
  "@aws-sdk/util-endpoints": "^3.996.3",
266314
266338
  "@aws-sdk/util-user-agent-browser": "^3.972.6",
266315
- "@aws-sdk/util-user-agent-node": "^3.973.0",
266339
+ "@aws-sdk/util-user-agent-node": "^3.973.1",
266316
266340
  "@smithy/config-resolver": "^4.4.9",
266317
- "@smithy/core": "^3.23.6",
266341
+ "@smithy/core": "^3.23.7",
266318
266342
  "@smithy/eventstream-serde-browser": "^4.2.10",
266319
266343
  "@smithy/eventstream-serde-config-resolver": "^4.3.10",
266320
266344
  "@smithy/eventstream-serde-node": "^4.2.10",
266321
- "@smithy/fetch-http-handler": "^5.3.11",
266345
+ "@smithy/fetch-http-handler": "^5.3.12",
266322
266346
  "@smithy/hash-node": "^4.2.10",
266323
266347
  "@smithy/invalid-dependency": "^4.2.10",
266324
266348
  "@smithy/middleware-content-length": "^4.2.10",
266325
- "@smithy/middleware-endpoint": "^4.4.20",
266326
- "@smithy/middleware-retry": "^4.4.37",
266349
+ "@smithy/middleware-endpoint": "^4.4.21",
266350
+ "@smithy/middleware-retry": "^4.4.38",
266327
266351
  "@smithy/middleware-serde": "^4.2.11",
266328
266352
  "@smithy/middleware-stack": "^4.2.10",
266329
266353
  "@smithy/node-config-provider": "^4.3.10",
266330
- "@smithy/node-http-handler": "^4.4.12",
266354
+ "@smithy/node-http-handler": "^4.4.13",
266331
266355
  "@smithy/protocol-http": "^5.3.10",
266332
- "@smithy/smithy-client": "^4.12.0",
266356
+ "@smithy/smithy-client": "^4.12.1",
266333
266357
  "@smithy/types": "^4.13.0",
266334
266358
  "@smithy/url-parser": "^4.2.10",
266335
266359
  "@smithy/util-base64": "^4.3.1",
266336
266360
  "@smithy/util-body-length-browser": "^4.2.1",
266337
266361
  "@smithy/util-body-length-node": "^4.2.2",
266338
- "@smithy/util-defaults-mode-browser": "^4.3.36",
266339
- "@smithy/util-defaults-mode-node": "^4.2.39",
266362
+ "@smithy/util-defaults-mode-browser": "^4.3.37",
266363
+ "@smithy/util-defaults-mode-node": "^4.2.40",
266340
266364
  "@smithy/util-endpoints": "^3.3.1",
266341
266365
  "@smithy/util-middleware": "^4.2.10",
266342
266366
  "@smithy/util-retry": "^4.2.10",
266343
- "@smithy/util-stream": "^4.5.15",
266367
+ "@smithy/util-stream": "^4.5.16",
266344
266368
  "@smithy/util-utf8": "^4.2.1",
266345
266369
  tslib: "^2.6.2"
266346
266370
  },
266347
266371
  devDependencies: {
266348
- "@smithy/snapshot-testing": "^1.0.7",
266372
+ "@smithy/snapshot-testing": "^1.0.8",
266349
266373
  "@tsconfig/node20": "20.1.8",
266350
266374
  "@types/node": "^20.14.8",
266351
266375
  concurrently: "7.0.0",
@@ -267061,7 +267085,7 @@ var init_package = __esm({
267061
267085
  "node_modules/@aws-sdk/nested-clients/package.json"() {
267062
267086
  package_default = {
267063
267087
  name: "@aws-sdk/nested-clients",
267064
- version: "3.996.3",
267088
+ version: "3.996.4",
267065
267089
  description: "Nested clients for AWS SDK packages.",
267066
267090
  main: "./dist-cjs/index.js",
267067
267091
  module: "./dist-es/index.js",
@@ -267090,37 +267114,37 @@ var init_package = __esm({
267090
267114
  dependencies: {
267091
267115
  "@aws-crypto/sha256-browser": "5.2.0",
267092
267116
  "@aws-crypto/sha256-js": "5.2.0",
267093
- "@aws-sdk/core": "^3.973.15",
267117
+ "@aws-sdk/core": "^3.973.16",
267094
267118
  "@aws-sdk/middleware-host-header": "^3.972.6",
267095
267119
  "@aws-sdk/middleware-logger": "^3.972.6",
267096
267120
  "@aws-sdk/middleware-recursion-detection": "^3.972.6",
267097
- "@aws-sdk/middleware-user-agent": "^3.972.15",
267121
+ "@aws-sdk/middleware-user-agent": "^3.972.16",
267098
267122
  "@aws-sdk/region-config-resolver": "^3.972.6",
267099
267123
  "@aws-sdk/types": "^3.973.4",
267100
267124
  "@aws-sdk/util-endpoints": "^3.996.3",
267101
267125
  "@aws-sdk/util-user-agent-browser": "^3.972.6",
267102
- "@aws-sdk/util-user-agent-node": "^3.973.0",
267126
+ "@aws-sdk/util-user-agent-node": "^3.973.1",
267103
267127
  "@smithy/config-resolver": "^4.4.9",
267104
- "@smithy/core": "^3.23.6",
267105
- "@smithy/fetch-http-handler": "^5.3.11",
267128
+ "@smithy/core": "^3.23.7",
267129
+ "@smithy/fetch-http-handler": "^5.3.12",
267106
267130
  "@smithy/hash-node": "^4.2.10",
267107
267131
  "@smithy/invalid-dependency": "^4.2.10",
267108
267132
  "@smithy/middleware-content-length": "^4.2.10",
267109
- "@smithy/middleware-endpoint": "^4.4.20",
267110
- "@smithy/middleware-retry": "^4.4.37",
267133
+ "@smithy/middleware-endpoint": "^4.4.21",
267134
+ "@smithy/middleware-retry": "^4.4.38",
267111
267135
  "@smithy/middleware-serde": "^4.2.11",
267112
267136
  "@smithy/middleware-stack": "^4.2.10",
267113
267137
  "@smithy/node-config-provider": "^4.3.10",
267114
- "@smithy/node-http-handler": "^4.4.12",
267138
+ "@smithy/node-http-handler": "^4.4.13",
267115
267139
  "@smithy/protocol-http": "^5.3.10",
267116
- "@smithy/smithy-client": "^4.12.0",
267140
+ "@smithy/smithy-client": "^4.12.1",
267117
267141
  "@smithy/types": "^4.13.0",
267118
267142
  "@smithy/url-parser": "^4.2.10",
267119
267143
  "@smithy/util-base64": "^4.3.1",
267120
267144
  "@smithy/util-body-length-browser": "^4.2.1",
267121
267145
  "@smithy/util-body-length-node": "^4.2.2",
267122
- "@smithy/util-defaults-mode-browser": "^4.3.36",
267123
- "@smithy/util-defaults-mode-node": "^4.2.39",
267146
+ "@smithy/util-defaults-mode-browser": "^4.3.37",
267147
+ "@smithy/util-defaults-mode-node": "^4.2.40",
267124
267148
  "@smithy/util-endpoints": "^3.3.1",
267125
267149
  "@smithy/util-middleware": "^4.2.10",
267126
267150
  "@smithy/util-retry": "^4.2.10",
@@ -267225,17 +267249,30 @@ var require_dist_cjs51 = __commonJS({
267225
267249
  }
267226
267250
  return ["md/nodejs", node_process.versions.node];
267227
267251
  };
267228
- var getTypeScriptPackageJsonPath = (dirname6 = "") => {
267229
- let nodeModulesPath;
267252
+ var SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;
267253
+ var getSanitizedTypeScriptVersion = (version2 = "") => {
267254
+ const match2 = version2.match(SEMVER_REGEX);
267255
+ if (!match2) {
267256
+ return void 0;
267257
+ }
267258
+ const [major, minor, patch, prerelease] = [match2[1], match2[2], match2[3], match2[4]];
267259
+ return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
267260
+ };
267261
+ var typescriptPackageJsonPath = node_path.join("node_modules", "typescript", "package.json");
267262
+ var getTypeScriptPackageJsonPaths = (dirname6) => {
267263
+ const cwdPath = node_path.join(process.cwd(), typescriptPackageJsonPath);
267264
+ if (!dirname6) {
267265
+ return [cwdPath];
267266
+ }
267230
267267
  const normalizedPath = node_path.normalize(dirname6);
267231
267268
  const parts = normalizedPath.split(node_path.sep);
267232
267269
  const nodeModulesIndex = parts.indexOf("node_modules");
267233
- if (nodeModulesIndex !== -1) {
267234
- nodeModulesPath = parts.slice(0, nodeModulesIndex).join(node_path.sep);
267235
- } else {
267236
- nodeModulesPath = dirname6;
267270
+ const parentDir = nodeModulesIndex !== -1 ? parts.slice(0, nodeModulesIndex).join(node_path.sep) : dirname6;
267271
+ const parentDirPath = node_path.join(parentDir, typescriptPackageJsonPath);
267272
+ if (cwdPath === parentDirPath) {
267273
+ return [cwdPath];
267237
267274
  }
267238
- return node_path.join(nodeModulesPath, "node_modules", "typescript", "package.json");
267275
+ return [parentDirPath, cwdPath];
267239
267276
  };
267240
267277
  var tscVersion;
267241
267278
  var getTypeScriptUserAgentPair = async () => {
@@ -267244,18 +267281,22 @@ var require_dist_cjs51 = __commonJS({
267244
267281
  } else if (typeof tscVersion === "string") {
267245
267282
  return ["md/tsc", tscVersion];
267246
267283
  }
267247
- try {
267248
- const packageJson = await promises.readFile(getTypeScriptPackageJsonPath(__dirname), "utf-8");
267249
- const { version: version2 } = JSON.parse(packageJson);
267250
- if (typeof version2 !== "string") {
267251
- tscVersion = null;
267252
- return void 0;
267284
+ const dirname6 = typeof __dirname !== "undefined" ? __dirname : void 0;
267285
+ for (const typescriptPackageJsonPath2 of getTypeScriptPackageJsonPaths(dirname6)) {
267286
+ try {
267287
+ const packageJson = await promises.readFile(typescriptPackageJsonPath2, "utf-8");
267288
+ const { version: version2 } = JSON.parse(packageJson);
267289
+ const sanitizedVersion = getSanitizedTypeScriptVersion(version2);
267290
+ if (typeof sanitizedVersion !== "string") {
267291
+ continue;
267292
+ }
267293
+ tscVersion = sanitizedVersion;
267294
+ return ["md/tsc", tscVersion];
267295
+ } catch {
267253
267296
  }
267254
- tscVersion = version2;
267255
- return ["md/tsc", tscVersion];
267256
- } catch {
267257
- tscVersion = null;
267258
267297
  }
267298
+ tscVersion = null;
267299
+ return void 0;
267259
267300
  };
267260
267301
  var crtAvailability = {
267261
267302
  isCrtAvailable: false
@@ -268354,9 +268395,9 @@ var init_sso_oidc = __esm({
268354
268395
  }
268355
268396
  });
268356
268397
 
268357
- // node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js
268398
+ // node_modules/@aws-sdk/token-providers/dist-cjs/index.js
268358
268399
  var require_dist_cjs56 = __commonJS({
268359
- "node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2) {
268400
+ "node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2) {
268360
268401
  "use strict";
268361
268402
  var client = (init_client(), __toCommonJS(client_exports));
268362
268403
  var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
@@ -272189,155 +272230,8 @@ var require_dist_cjs63 = __commonJS({
272189
272230
  }
272190
272231
  });
272191
272232
 
272192
- // node_modules/@aws-sdk/token-providers/dist-cjs/index.js
272193
- var require_dist_cjs64 = __commonJS({
272194
- "node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2) {
272195
- "use strict";
272196
- var client = (init_client(), __toCommonJS(client_exports));
272197
- var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
272198
- var propertyProvider = require_dist_cjs24();
272199
- var sharedIniFileLoader = require_dist_cjs42();
272200
- var node_fs = __nccwpck_require__(73024);
272201
- var fromEnvSigningName = ({ logger: logger2, signingName } = {}) => async () => {
272202
- logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
272203
- if (!signingName) {
272204
- throw new propertyProvider.TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger: logger2 });
272205
- }
272206
- const bearerTokenKey = httpAuthSchemes.getBearerTokenEnvKey(signingName);
272207
- if (!(bearerTokenKey in process.env)) {
272208
- throw new propertyProvider.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger: logger2 });
272209
- }
272210
- const token = { token: process.env[bearerTokenKey] };
272211
- client.setTokenFeature(token, "BEARER_SERVICE_ENV_VARS", "3");
272212
- return token;
272213
- };
272214
- var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
272215
- var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
272216
- var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
272217
- const { SSOOIDCClient: SSOOIDCClient2 } = await Promise.resolve().then(() => (init_sso_oidc(), sso_oidc_exports));
272218
- const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
272219
- const ssoOidcClient = new SSOOIDCClient2(Object.assign({}, init.clientConfig ?? {}, {
272220
- region: ssoRegion ?? init.clientConfig?.region,
272221
- logger: coalesce("logger"),
272222
- userAgentAppId: coalesce("userAgentAppId")
272223
- }));
272224
- return ssoOidcClient;
272225
- };
272226
- var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
272227
- const { CreateTokenCommand: CreateTokenCommand2 } = await Promise.resolve().then(() => (init_sso_oidc(), sso_oidc_exports));
272228
- const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
272229
- return ssoOidcClient.send(new CreateTokenCommand2({
272230
- clientId: ssoToken.clientId,
272231
- clientSecret: ssoToken.clientSecret,
272232
- refreshToken: ssoToken.refreshToken,
272233
- grantType: "refresh_token"
272234
- }));
272235
- };
272236
- var validateTokenExpiry = (token) => {
272237
- if (token.expiration && token.expiration.getTime() < Date.now()) {
272238
- throw new propertyProvider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
272239
- }
272240
- };
272241
- var validateTokenKey = (key, value, forRefresh = false) => {
272242
- if (typeof value === "undefined") {
272243
- throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
272244
- }
272245
- };
272246
- var { writeFile: writeFile2 } = node_fs.promises;
272247
- var writeSSOTokenToFile = (id, ssoToken) => {
272248
- const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
272249
- const tokenString = JSON.stringify(ssoToken, null, 2);
272250
- return writeFile2(tokenFilepath, tokenString);
272251
- };
272252
- var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
272253
- var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
272254
- init.logger?.debug("@aws-sdk/token-providers - fromSso");
272255
- const profiles = await sharedIniFileLoader.parseKnownFiles(init);
272256
- const profileName = sharedIniFileLoader.getProfileName({
272257
- profile: init.profile ?? callerClientConfig?.profile
272258
- });
272259
- const profile = profiles[profileName];
272260
- if (!profile) {
272261
- throw new propertyProvider.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
272262
- } else if (!profile["sso_session"]) {
272263
- throw new propertyProvider.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
272264
- }
272265
- const ssoSessionName = profile["sso_session"];
272266
- const ssoSessions = await sharedIniFileLoader.loadSsoSessionData(init);
272267
- const ssoSession = ssoSessions[ssoSessionName];
272268
- if (!ssoSession) {
272269
- throw new propertyProvider.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
272270
- }
272271
- for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
272272
- if (!ssoSession[ssoSessionRequiredKey]) {
272273
- throw new propertyProvider.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
272274
- }
272275
- }
272276
- ssoSession["sso_start_url"];
272277
- const ssoRegion = ssoSession["sso_region"];
272278
- let ssoToken;
272279
- try {
272280
- ssoToken = await sharedIniFileLoader.getSSOTokenFromFile(ssoSessionName);
272281
- } catch (e5) {
272282
- throw new propertyProvider.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
272283
- }
272284
- validateTokenKey("accessToken", ssoToken.accessToken);
272285
- validateTokenKey("expiresAt", ssoToken.expiresAt);
272286
- const { accessToken, expiresAt } = ssoToken;
272287
- const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
272288
- if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
272289
- return existingToken;
272290
- }
272291
- if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1e3) {
272292
- validateTokenExpiry(existingToken);
272293
- return existingToken;
272294
- }
272295
- validateTokenKey("clientId", ssoToken.clientId, true);
272296
- validateTokenKey("clientSecret", ssoToken.clientSecret, true);
272297
- validateTokenKey("refreshToken", ssoToken.refreshToken, true);
272298
- try {
272299
- lastRefreshAttemptTime.setTime(Date.now());
272300
- const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
272301
- validateTokenKey("accessToken", newSsoOidcToken.accessToken);
272302
- validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
272303
- const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3);
272304
- try {
272305
- await writeSSOTokenToFile(ssoSessionName, {
272306
- ...ssoToken,
272307
- accessToken: newSsoOidcToken.accessToken,
272308
- expiresAt: newTokenExpiration.toISOString(),
272309
- refreshToken: newSsoOidcToken.refreshToken
272310
- });
272311
- } catch (error2) {
272312
- }
272313
- return {
272314
- token: newSsoOidcToken.accessToken,
272315
- expiration: newTokenExpiration
272316
- };
272317
- } catch (error2) {
272318
- validateTokenExpiry(existingToken);
272319
- return existingToken;
272320
- }
272321
- };
272322
- var fromStatic = ({ token, logger: logger2 }) => async () => {
272323
- logger2?.debug("@aws-sdk/token-providers - fromStatic");
272324
- if (!token || !token.token) {
272325
- throw new propertyProvider.TokenProviderError(`Please pass a valid token to fromStatic`, false);
272326
- }
272327
- return token;
272328
- };
272329
- var nodeProvider = (init = {}) => propertyProvider.memoize(propertyProvider.chain(fromSso(init), async () => {
272330
- throw new propertyProvider.TokenProviderError("Could not load token from any providers", false);
272331
- }), (token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5, (token) => token.expiration !== void 0);
272332
- exports2.fromEnvSigningName = fromEnvSigningName;
272333
- exports2.fromSso = fromSso;
272334
- exports2.fromStatic = fromStatic;
272335
- exports2.nodeProvider = nodeProvider;
272336
- }
272337
- });
272338
-
272339
272233
  // node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js
272340
- var require_dist_cjs65 = __commonJS({
272234
+ var require_dist_cjs64 = __commonJS({
272341
272235
  "node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js"(exports2) {
272342
272236
  "use strict";
272343
272237
  var eventstreamSerdeUniversal = require_dist_cjs35();
@@ -275019,11 +274913,11 @@ var require_runtimeConfig = __commonJS({
275019
274913
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
275020
274914
  var credential_provider_node_1 = require_dist_cjs62();
275021
274915
  var eventstream_handler_node_1 = require_dist_cjs63();
275022
- var token_providers_1 = require_dist_cjs64();
274916
+ var token_providers_1 = require_dist_cjs56();
275023
274917
  var util_user_agent_node_1 = require_dist_cjs51();
275024
274918
  var config_resolver_1 = require_dist_cjs39();
275025
274919
  var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports));
275026
- var eventstream_serde_node_1 = require_dist_cjs65();
274920
+ var eventstream_serde_node_1 = require_dist_cjs64();
275027
274921
  var hash_node_1 = require_dist_cjs52();
275028
274922
  var middleware_retry_1 = require_dist_cjs47();
275029
274923
  var node_config_provider_1 = require_dist_cjs43();
@@ -275095,7 +274989,7 @@ var require_runtimeConfig = __commonJS({
275095
274989
  });
275096
274990
 
275097
274991
  // node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js
275098
- var require_dist_cjs66 = __commonJS({
274992
+ var require_dist_cjs65 = __commonJS({
275099
274993
  "node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js"(exports2) {
275100
274994
  "use strict";
275101
274995
  var middlewareEventstream = require_dist_cjs3();
@@ -275940,13 +275834,13 @@ var import_client_bedrock_runtime, import_client_bedrock_runtime2, import_client
275940
275834
  var init_dist3 = __esm({
275941
275835
  "node_modules/@ai-sdk/amazon-bedrock/dist/index.mjs"() {
275942
275836
  init_dist2();
275943
- import_client_bedrock_runtime = __toESM(require_dist_cjs66(), 1);
275837
+ import_client_bedrock_runtime = __toESM(require_dist_cjs65(), 1);
275944
275838
  init_dist();
275945
- import_client_bedrock_runtime2 = __toESM(require_dist_cjs66(), 1);
275839
+ import_client_bedrock_runtime2 = __toESM(require_dist_cjs65(), 1);
275946
275840
  init_dist();
275947
275841
  init_dist();
275948
275842
  init_dist2();
275949
- import_client_bedrock_runtime3 = __toESM(require_dist_cjs66(), 1);
275843
+ import_client_bedrock_runtime3 = __toESM(require_dist_cjs65(), 1);
275950
275844
  generateFileId = createIdGenerator({ prefix: "file", size: 16 });
275951
275845
  BedrockChatLanguageModel = class {
275952
275846
  constructor(modelId, settings, config) {
@@ -283637,6 +283531,8 @@ var init_fileTracker = __esm({
283637
283531
  this.debug = options.debug || false;
283638
283532
  this._seenFiles = /* @__PURE__ */ new Set();
283639
283533
  this._contentRecords = /* @__PURE__ */ new Map();
283534
+ this._textEditCounts = /* @__PURE__ */ new Map();
283535
+ this.maxConsecutiveTextEdits = 3;
283640
283536
  }
283641
283537
  /**
283642
283538
  * Mark a file as "seen" — the LLM has read its content.
@@ -283644,6 +283540,7 @@ var init_fileTracker = __esm({
283644
283540
  */
283645
283541
  markFileSeen(resolvedPath2) {
283646
283542
  this._seenFiles.add(resolvedPath2);
283543
+ this._textEditCounts.set(resolvedPath2, 0);
283647
283544
  if (this.debug) {
283648
283545
  console.error(`[FileTracker] Marked as seen: ${resolvedPath2}`);
283649
283546
  }
@@ -283789,9 +283686,37 @@ var init_fileTracker = __esm({
283789
283686
  * @param {string} resolvedPath - Absolute path to the file
283790
283687
  */
283791
283688
  async trackFileAfterWrite(resolvedPath2) {
283792
- this.markFileSeen(resolvedPath2);
283689
+ this._seenFiles.add(resolvedPath2);
283793
283690
  this.invalidateFileRecords(resolvedPath2);
283794
283691
  }
283692
+ /**
283693
+ * Record a text-mode edit (old_string/new_string) to a file.
283694
+ * Increments the consecutive edit counter.
283695
+ * @param {string} resolvedPath - Absolute path to the file
283696
+ */
283697
+ recordTextEdit(resolvedPath2) {
283698
+ const count = (this._textEditCounts.get(resolvedPath2) || 0) + 1;
283699
+ this._textEditCounts.set(resolvedPath2, count);
283700
+ if (this.debug) {
283701
+ console.error(`[FileTracker] Text edit #${count} for ${resolvedPath2}`);
283702
+ }
283703
+ }
283704
+ /**
283705
+ * Check if a file has had too many consecutive text edits without a re-read.
283706
+ * @param {string} resolvedPath - Absolute path to the file
283707
+ * @returns {{ok: boolean, editCount?: number, message?: string}}
283708
+ */
283709
+ checkTextEditStaleness(resolvedPath2) {
283710
+ const count = this._textEditCounts.get(resolvedPath2) || 0;
283711
+ if (count >= this.maxConsecutiveTextEdits) {
283712
+ return {
283713
+ ok: false,
283714
+ editCount: count,
283715
+ message: `This file has been edited ${count} times without being re-read. Use 'extract' to re-read the current file content before making more edits, to ensure you are working with the actual state of the file.`
283716
+ };
283717
+ }
283718
+ return { ok: true, editCount: count };
283719
+ }
283795
283720
  /**
283796
283721
  * Update the stored hash for a symbol after a successful write.
283797
283722
  * Enables chained edits to the same symbol.
@@ -283835,6 +283760,7 @@ var init_fileTracker = __esm({
283835
283760
  clear() {
283836
283761
  this._seenFiles.clear();
283837
283762
  this._contentRecords.clear();
283763
+ this._textEditCounts.clear();
283838
283764
  }
283839
283765
  };
283840
283766
  }
@@ -329635,6 +329561,9 @@ var init_prompts = __esm({
329635
329561
  predefinedPrompts = {
329636
329562
  "code-explorer": `You are ProbeChat Code Explorer, a specialized AI assistant focused on helping developers, product managers, and QAs understand and navigate codebases. Your primary function is to answer questions based on code, explain how systems work, and provide insights into code functionality using the provided code analysis tools.
329637
329563
 
329564
+ CRITICAL - You are READ-ONLY:
329565
+ You must NEVER create, modify, delete, or write files. You are strictly an exploration and analysis tool. If asked to make changes, implement features, fix bugs, or modify a PR, refuse and explain that file modifications must be done by the engineer tool \u2014 your role is only to investigate code and answer questions. Do not attempt workarounds using bash commands (echo, cat, tee, sed, etc.) to write files.
329566
+
329638
329567
  When exploring code:
329639
329568
  - Provide clear, concise explanations based on user request
329640
329569
  - Find and highlight the most relevant code snippets, if required
@@ -354367,7 +354296,9 @@ var init_ProbeAgent = __esm({
354367
354296
  return nativeTools;
354368
354297
  }
354369
354298
  for (const [toolName, toolImpl] of Object.entries(this.toolImplementations)) {
354370
- const { schema, description } = this._getToolSchemaAndDescription(toolName);
354299
+ const toolInfo = this._getToolSchemaAndDescription(toolName);
354300
+ if (!toolInfo) continue;
354301
+ const { schema, description } = toolInfo;
354371
354302
  if (schema && description) {
354372
354303
  nativeTools[toolName] = wrapTool(toolName, schema, description, toolImpl.execute);
354373
354304
  }
@@ -355270,11 +355201,11 @@ Follow these instructions carefully:
355270
355201
  6. Prefer concise and focused search queries. Use specific keywords and phrases to narrow down results.${this.allowEdit ? `
355271
355202
  7. When modifying files, choose the appropriate tool:
355272
355203
  - Use 'edit' for all code modifications:
355273
- * For small changes (a line or a few lines), use old_string + new_string \u2014 copy old_string verbatim from the file.
355274
- * For rewriting entire functions/classes/methods, use the symbol parameter instead (no exact text matching needed).
355275
- * For editing specific lines from search/extract output, use start_line (and optionally end_line) with the line numbers shown in the output.${this.hashLines ? ' Line references include content hashes (e.g. "42:ab") for integrity verification.' : ""}
355204
+ * PREFERRED: Use start_line (and optionally end_line) for line-targeted editing \u2014 this is the safest and most precise approach.${this.hashLines ? ' Use the line:hash references from extract/search output (e.g. "42:ab") for integrity verification.' : ""} Always use extract first to see line numbers${this.hashLines ? " and hashes" : ""}, then edit by line reference.
355276
355205
  * For editing inside large functions: first use extract with the symbol target (e.g. "file.js#myFunction") to see the function with line numbers${this.hashLines ? " and hashes" : ""}, then use start_line/end_line to surgically edit specific lines within it.
355277
- * IMPORTANT: Keep old_string as small as possible \u2014 include only the lines you need to change plus minimal context for uniqueness. For replacing large blocks (10+ lines), prefer line-targeted editing with start_line/end_line to constrain scope.
355206
+ * For rewriting entire functions/classes/methods, use the symbol parameter instead (no exact text matching needed).
355207
+ * FALLBACK ONLY: Use old_string + new_string for simple single-line changes where the text is unique. Copy old_string verbatim from the file. Keep old_string as small as possible.
355208
+ * IMPORTANT: After multiple edits to the same file, re-read the changed areas before continuing \u2014 use extract with a targeted symbol (e.g. "file.js#myFunction") or a line range (e.g. "file.js:50-80") instead of re-reading the full file.
355278
355209
  - Use 'create' for new files or complete file rewrites.
355279
355210
  - If an edit fails, read the error message \u2014 it tells you exactly how to fix the call and retry.
355280
355211
  - The system tracks which files you've seen via search/extract. If you try to edit a file you haven't read, or one that changed since you last read it, the edit will fail with instructions to re-read first. Always use extract before editing to ensure you have current file content.` : ""}
@@ -358516,6 +358447,15 @@ Example: <extract><targets>${displayPath}</targets></extract>`;
358516
358447
  if (typeof old_string !== "string") {
358517
358448
  return `Error editing file: Invalid old_string - must be a string. Provide the exact text to find in the file, or use the symbol parameter instead for AST-aware editing by name.`;
358518
358449
  }
358450
+ if (options.fileTracker) {
358451
+ const staleCheck = options.fileTracker.checkTextEditStaleness(resolvedPath2);
358452
+ if (!staleCheck.ok) {
358453
+ const displayPath = toRelativePath(resolvedPath2, workspaceRoot);
358454
+ return `Error editing ${displayPath}: ${staleCheck.message}
358455
+
358456
+ Example: <extract><targets>${displayPath}</targets></extract>`;
358457
+ }
358458
+ }
358519
358459
  const content = await import_fs11.promises.readFile(resolvedPath2, "utf-8");
358520
358460
  let matchTarget = old_string;
358521
358461
  let matchStrategy = "exact";
@@ -358549,7 +358489,10 @@ Example: <extract><targets>${displayPath}</targets></extract>`;
358549
358489
  return `Error editing file: No changes made - the replacement result is identical to the original. Verify that old_string and new_string are actually different. If fuzzy matching was used, the matched text may already equal new_string.`;
358550
358490
  }
358551
358491
  await import_fs11.promises.writeFile(resolvedPath2, newContent, "utf-8");
358552
- if (options.fileTracker) await options.fileTracker.trackFileAfterWrite(resolvedPath2);
358492
+ if (options.fileTracker) {
358493
+ await options.fileTracker.trackFileAfterWrite(resolvedPath2);
358494
+ options.fileTracker.recordTextEdit(resolvedPath2);
358495
+ }
358553
358496
  const replacedCount = replace_all ? occurrences : 1;
358554
358497
  if (debug) {
358555
358498
  console.error(`[Edit] Successfully edited ${resolvedPath2}, replaced ${replacedCount} occurrence(s)`);
@@ -395174,7 +395117,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"100":"Continue","101":"Switching Pro
395174
395117
  /***/ ((module) => {
395175
395118
 
395176
395119
  "use strict";
395177
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@probelabs/visor","version":"0.1.150","main":"dist/index.js","bin":{"visor":"./dist/index.js"},"exports":{".":{"require":"./dist/index.js","import":"./dist/index.js"},"./sdk":{"types":"./dist/sdk/sdk.d.ts","import":"./dist/sdk/sdk.mjs","require":"./dist/sdk/sdk.js"},"./cli":{"require":"./dist/index.js"}},"files":["dist/","defaults/","action.yml","README.md","LICENSE"],"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build:cli":"ncc build src/index.ts -o dist && cp -r defaults dist/ && cp -r output dist/ && cp -r docs dist/ && cp -r examples dist/ && cp -r src/debug-visualizer/ui dist/debug-visualizer/ && node scripts/inject-version.js && echo \'#!/usr/bin/env node\' | cat - dist/index.js > temp && mv temp dist/index.js && chmod +x dist/index.js","build:sdk":"tsup src/sdk.ts --dts --sourcemap --format esm,cjs --out-dir dist/sdk","build":"./scripts/build-oss.sh","build:ee":"npm run build:cli && npm run build:sdk","test":"jest && npm run test:yaml","test:unit":"jest","prepublishOnly":"npm run build","test:watch":"jest --watch","test:coverage":"jest --coverage","test:ee":"jest --testPathPatterns=\'tests/ee\' --testPathIgnorePatterns=\'/node_modules/\' --no-coverage","test:manual:bash":"RUN_MANUAL_TESTS=true jest tests/manual/bash-config-manual.test.ts","lint":"eslint src tests --ext .ts","lint:fix":"eslint src tests --ext .ts --fix","format":"prettier --write src tests","format:check":"prettier --check src tests","clean":"","clean:traces":"node scripts/clean-traces.js","prebuild":"npm run clean && node scripts/generate-config-schema.js","pretest":"npm run clean:traces && node scripts/generate-config-schema.js && npm run build:cli","pretest:unit":"npm run clean:traces && node scripts/generate-config-schema.js && npm run build:cli","test:with-build":"npm run build:cli && jest","test:yaml":"node dist/index.js test --progress compact","test:yaml:parallel":"node dist/index.js test --progress compact --max-parallel 4","prepare":"husky","pre-commit":"lint-staged","deploy:site":"cd site && npx wrangler pages deploy . --project-name=visor-site --commit-dirty=true","deploy:worker":"npx wrangler deploy","deploy":"npm run deploy:site && npm run deploy:worker","publish:ee":"./scripts/publish-ee.sh","release":"./scripts/release.sh","release:patch":"./scripts/release.sh patch","release:minor":"./scripts/release.sh minor","release:major":"./scripts/release.sh major","release:prerelease":"./scripts/release.sh prerelease","docs:validate":"node scripts/validate-readme-links.js","workshop:setup":"npm install -D reveal-md@6.1.2","workshop:serve":"cd workshop && reveal-md slides.md -w","workshop:export":"reveal-md workshop/slides.md --static workshop/build","workshop:pdf":"reveal-md workshop/slides.md --print workshop/Visor-Workshop.pdf --print-size letter","workshop:pdf:ci":"reveal-md workshop/slides.md --print workshop/Visor-Workshop.pdf --print-size letter --puppeteer-launch-args=\\"--no-sandbox --disable-dev-shm-usage\\"","workshop:pdf:a4":"reveal-md workshop/slides.md --print workshop/Visor-Workshop-A4.pdf --print-size A4","workshop:build":"npm run workshop:export && npm run workshop:pdf","simulate:issue":"TS_NODE_TRANSPILE_ONLY=1 ts-node scripts/simulate-gh-run.ts --event issues --action opened --debug","simulate:comment":"TS_NODE_TRANSPILE_ONLY=1 ts-node scripts/simulate-gh-run.ts --event issue_comment --action created --debug"},"keywords":["code-review","ai","github-action","cli","pr-review","visor"],"author":"Probe Labs","license":"MIT","description":"AI workflow engine for code review, assistants, and automation — orchestrate checks, MCP tools, and AI providers with YAML-driven pipelines","repository":{"type":"git","url":"git+https://github.com/probelabs/visor.git"},"bugs":{"url":"https://github.com/probelabs/visor/issues"},"homepage":"https://github.com/probelabs/visor#readme","dependencies":{"@actions/core":"^1.11.1","@apidevtools/swagger-parser":"^12.1.0","@modelcontextprotocol/sdk":"^1.25.3","@nyariv/sandboxjs":"github:probelabs/SandboxJS#f1c13b8eee98734a8ea024061eada4aa9a9ff2e9","@octokit/action":"^8.0.2","@octokit/auth-app":"^8.1.0","@octokit/core":"^7.0.3","@octokit/rest":"^22.0.0","@opentelemetry/api":"^1.9.0","@opentelemetry/core":"^1.30.1","@opentelemetry/exporter-trace-otlp-grpc":"^0.203.0","@opentelemetry/exporter-trace-otlp-http":"^0.203.0","@opentelemetry/instrumentation":"^0.203.0","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/sdk-node":"^0.203.0","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/semantic-conventions":"^1.30.1","@probelabs/probe":"^0.6.0-rc266","@types/commander":"^2.12.0","@types/uuid":"^10.0.0","acorn":"^8.16.0","acorn-walk":"^8.3.5","ajv":"^8.17.1","ajv-formats":"^3.0.1","better-sqlite3":"^11.0.0","blessed":"^0.1.81","cli-table3":"^0.6.5","commander":"^14.0.0","deepmerge":"^4.3.1","dotenv":"^17.2.3","ignore":"^7.0.5","js-yaml":"^4.1.0","jsonpath-plus":"^10.4.0","liquidjs":"^10.21.1","minimatch":"^10.2.2","node-cron":"^3.0.3","open":"^9.1.0","simple-git":"^3.28.0","uuid":"^11.1.0","ws":"^8.18.3"},"optionalDependencies":{"@anthropic/claude-code-sdk":"npm:null@*","@open-policy-agent/opa-wasm":"^1.10.0","knex":"^3.1.0","mysql2":"^3.11.0","pg":"^8.13.0","tedious":"^19.0.0"},"devDependencies":{"@eslint/js":"^9.34.0","@kie/act-js":"^2.6.2","@kie/mock-github":"^2.0.1","@swc/core":"^1.13.2","@swc/jest":"^0.2.37","@types/better-sqlite3":"^7.6.0","@types/blessed":"^0.1.27","@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^24.3.0","@types/node-cron":"^3.0.11","@types/ws":"^8.18.1","@typescript-eslint/eslint-plugin":"^8.42.0","@typescript-eslint/parser":"^8.42.0","@vercel/ncc":"^0.38.4","eslint":"^9.34.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4","husky":"^9.1.7","jest":"^30.1.3","lint-staged":"^16.1.6","prettier":"^3.6.2","reveal-md":"^6.1.2","ts-json-schema-generator":"^1.5.1","ts-node":"^10.9.2","tsup":"^8.5.0","typescript":"^5.9.2","wrangler":"^3.0.0"},"peerDependenciesMeta":{"@anthropic/claude-code-sdk":{"optional":true}},"directories":{"test":"tests"},"lint-staged":{"src/**/*.{ts,js}":["eslint --fix","prettier --write"],"tests/**/*.{ts,js}":["eslint --fix","prettier --write"],"*.{json,md,yml,yaml}":["prettier --write"]}}');
395120
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@probelabs/visor","version":"0.1.151","main":"dist/index.js","bin":{"visor":"./dist/index.js"},"exports":{".":{"require":"./dist/index.js","import":"./dist/index.js"},"./sdk":{"types":"./dist/sdk/sdk.d.ts","import":"./dist/sdk/sdk.mjs","require":"./dist/sdk/sdk.js"},"./cli":{"require":"./dist/index.js"}},"files":["dist/","defaults/","action.yml","README.md","LICENSE"],"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build:cli":"ncc build src/index.ts -o dist && cp -r defaults dist/ && cp -r output dist/ && cp -r docs dist/ && cp -r examples dist/ && cp -r src/debug-visualizer/ui dist/debug-visualizer/ && node scripts/inject-version.js && echo \'#!/usr/bin/env node\' | cat - dist/index.js > temp && mv temp dist/index.js && chmod +x dist/index.js","build:sdk":"tsup src/sdk.ts --dts --sourcemap --format esm,cjs --out-dir dist/sdk","build":"./scripts/build-oss.sh","build:ee":"npm run build:cli && npm run build:sdk","test":"jest && npm run test:yaml","test:unit":"jest","prepublishOnly":"npm run build","test:watch":"jest --watch","test:coverage":"jest --coverage","test:ee":"jest --testPathPatterns=\'tests/ee\' --testPathIgnorePatterns=\'/node_modules/\' --no-coverage","test:manual:bash":"RUN_MANUAL_TESTS=true jest tests/manual/bash-config-manual.test.ts","lint":"eslint src tests --ext .ts","lint:fix":"eslint src tests --ext .ts --fix","format":"prettier --write src tests","format:check":"prettier --check src tests","clean":"","clean:traces":"node scripts/clean-traces.js","prebuild":"npm run clean && node scripts/generate-config-schema.js","pretest":"npm run clean:traces && node scripts/generate-config-schema.js && npm run build:cli","pretest:unit":"npm run clean:traces && node scripts/generate-config-schema.js && npm run build:cli","test:with-build":"npm run build:cli && jest","test:yaml":"node dist/index.js test --progress compact","test:yaml:parallel":"node dist/index.js test --progress compact --max-parallel 4","prepare":"husky","pre-commit":"lint-staged","deploy:site":"cd site && npx wrangler pages deploy . --project-name=visor-site --commit-dirty=true","deploy:worker":"npx wrangler deploy","deploy":"npm run deploy:site && npm run deploy:worker","publish:ee":"./scripts/publish-ee.sh","release":"./scripts/release.sh","release:patch":"./scripts/release.sh patch","release:minor":"./scripts/release.sh minor","release:major":"./scripts/release.sh major","release:prerelease":"./scripts/release.sh prerelease","docs:validate":"node scripts/validate-readme-links.js","workshop:setup":"npm install -D reveal-md@6.1.2","workshop:serve":"cd workshop && reveal-md slides.md -w","workshop:export":"reveal-md workshop/slides.md --static workshop/build","workshop:pdf":"reveal-md workshop/slides.md --print workshop/Visor-Workshop.pdf --print-size letter","workshop:pdf:ci":"reveal-md workshop/slides.md --print workshop/Visor-Workshop.pdf --print-size letter --puppeteer-launch-args=\\"--no-sandbox --disable-dev-shm-usage\\"","workshop:pdf:a4":"reveal-md workshop/slides.md --print workshop/Visor-Workshop-A4.pdf --print-size A4","workshop:build":"npm run workshop:export && npm run workshop:pdf","simulate:issue":"TS_NODE_TRANSPILE_ONLY=1 ts-node scripts/simulate-gh-run.ts --event issues --action opened --debug","simulate:comment":"TS_NODE_TRANSPILE_ONLY=1 ts-node scripts/simulate-gh-run.ts --event issue_comment --action created --debug"},"keywords":["code-review","ai","github-action","cli","pr-review","visor"],"author":"Probe Labs","license":"MIT","description":"AI workflow engine for code review, assistants, and automation — orchestrate checks, MCP tools, and AI providers with YAML-driven pipelines","repository":{"type":"git","url":"git+https://github.com/probelabs/visor.git"},"bugs":{"url":"https://github.com/probelabs/visor/issues"},"homepage":"https://github.com/probelabs/visor#readme","dependencies":{"@actions/core":"^1.11.1","@apidevtools/swagger-parser":"^12.1.0","@modelcontextprotocol/sdk":"^1.25.3","@nyariv/sandboxjs":"github:probelabs/SandboxJS#f1c13b8eee98734a8ea024061eada4aa9a9ff2e9","@octokit/action":"^8.0.2","@octokit/auth-app":"^8.1.0","@octokit/core":"^7.0.3","@octokit/rest":"^22.0.0","@opentelemetry/api":"^1.9.0","@opentelemetry/core":"^1.30.1","@opentelemetry/exporter-trace-otlp-grpc":"^0.203.0","@opentelemetry/exporter-trace-otlp-http":"^0.203.0","@opentelemetry/instrumentation":"^0.203.0","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/sdk-node":"^0.203.0","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/semantic-conventions":"^1.30.1","@probelabs/probe":"^0.6.0-rc268","@types/commander":"^2.12.0","@types/uuid":"^10.0.0","acorn":"^8.16.0","acorn-walk":"^8.3.5","ajv":"^8.17.1","ajv-formats":"^3.0.1","better-sqlite3":"^11.0.0","blessed":"^0.1.81","cli-table3":"^0.6.5","commander":"^14.0.0","deepmerge":"^4.3.1","dotenv":"^17.2.3","ignore":"^7.0.5","js-yaml":"^4.1.0","jsonpath-plus":"^10.4.0","liquidjs":"^10.21.1","minimatch":"^10.2.2","node-cron":"^3.0.3","open":"^9.1.0","simple-git":"^3.28.0","uuid":"^11.1.0","ws":"^8.18.3"},"optionalDependencies":{"@anthropic/claude-code-sdk":"npm:null@*","@open-policy-agent/opa-wasm":"^1.10.0","knex":"^3.1.0","mysql2":"^3.11.0","pg":"^8.13.0","tedious":"^19.0.0"},"devDependencies":{"@eslint/js":"^9.34.0","@kie/act-js":"^2.6.2","@kie/mock-github":"^2.0.1","@swc/core":"^1.13.2","@swc/jest":"^0.2.37","@types/better-sqlite3":"^7.6.0","@types/blessed":"^0.1.27","@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^24.3.0","@types/node-cron":"^3.0.11","@types/ws":"^8.18.1","@typescript-eslint/eslint-plugin":"^8.42.0","@typescript-eslint/parser":"^8.42.0","@vercel/ncc":"^0.38.4","eslint":"^9.34.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4","husky":"^9.1.7","jest":"^30.1.3","lint-staged":"^16.1.6","prettier":"^3.6.2","reveal-md":"^6.1.2","ts-json-schema-generator":"^1.5.1","ts-node":"^10.9.2","tsup":"^8.5.0","typescript":"^5.9.2","wrangler":"^3.0.0"},"peerDependenciesMeta":{"@anthropic/claude-code-sdk":{"optional":true}},"directories":{"test":"tests"},"lint-staged":{"src/**/*.{ts,js}":["eslint --fix","prettier --write"],"tests/**/*.{ts,js}":["eslint --fix","prettier --write"],"*.{json,md,yml,yaml}":["prettier --write"]}}');
395178
395121
 
395179
395122
  /***/ })
395180
395123