@xyd-js/mcp-server 0.0.0-build-2acf05c-20251207022018 → 0.0.0-build-83b15db-20251213220910

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1668,7 +1668,7 @@ var require_safer = __commonJS((exports, module) => {
1668
1668
  module.exports = safer;
1669
1669
  });
1670
1670
 
1671
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/bom-handling.js
1671
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/bom-handling.js
1672
1672
  var require_bom_handling = __commonJS((exports) => {
1673
1673
  var BOMChar = "\uFEFF";
1674
1674
  exports.PrependBOM = PrependBOMWrapper;
@@ -1711,7 +1711,7 @@ var require_bom_handling = __commonJS((exports) => {
1711
1711
  };
1712
1712
  });
1713
1713
 
1714
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/helpers/merge-exports.js
1714
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/helpers/merge-exports.js
1715
1715
  var require_merge_exports = __commonJS((exports, module) => {
1716
1716
  var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
1717
1717
  function mergeModules(target, module2) {
@@ -1724,7 +1724,7 @@ var require_merge_exports = __commonJS((exports, module) => {
1724
1724
  module.exports = mergeModules;
1725
1725
  });
1726
1726
 
1727
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/internal.js
1727
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/internal.js
1728
1728
  var require_internal = __commonJS((exports, module) => {
1729
1729
  var Buffer2 = require_safer().Buffer;
1730
1730
  module.exports = {
@@ -1897,7 +1897,7 @@ var require_internal = __commonJS((exports, module) => {
1897
1897
  };
1898
1898
  });
1899
1899
 
1900
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf32.js
1900
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/utf32.js
1901
1901
  var require_utf32 = __commonJS((exports) => {
1902
1902
  var Buffer2 = require_safer().Buffer;
1903
1903
  exports._utf32 = Utf32Codec;
@@ -2131,7 +2131,7 @@ var require_utf32 = __commonJS((exports) => {
2131
2131
  }
2132
2132
  });
2133
2133
 
2134
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf16.js
2134
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/utf16.js
2135
2135
  var require_utf16 = __commonJS((exports) => {
2136
2136
  var Buffer2 = require_safer().Buffer;
2137
2137
  exports.utf16be = Utf16BECodec;
@@ -2274,7 +2274,7 @@ var require_utf16 = __commonJS((exports) => {
2274
2274
  }
2275
2275
  });
2276
2276
 
2277
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf7.js
2277
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/utf7.js
2278
2278
  var require_utf7 = __commonJS((exports) => {
2279
2279
  var Buffer2 = require_safer().Buffer;
2280
2280
  exports.utf7 = Utf7Codec;
@@ -2488,7 +2488,7 @@ var require_utf7 = __commonJS((exports) => {
2488
2488
  };
2489
2489
  });
2490
2490
 
2491
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-codec.js
2491
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/sbcs-codec.js
2492
2492
  var require_sbcs_codec = __commonJS((exports) => {
2493
2493
  var Buffer2 = require_safer().Buffer;
2494
2494
  exports._sbcs = SBCSCodec;
@@ -2545,7 +2545,7 @@ var require_sbcs_codec = __commonJS((exports) => {
2545
2545
  SBCSDecoder.prototype.end = function() {};
2546
2546
  });
2547
2547
 
2548
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data.js
2548
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/sbcs-data.js
2549
2549
  var require_sbcs_data = __commonJS((exports, module) => {
2550
2550
  module.exports = {
2551
2551
  10029: "maccenteuro",
@@ -2693,7 +2693,7 @@ var require_sbcs_data = __commonJS((exports, module) => {
2693
2693
  };
2694
2694
  });
2695
2695
 
2696
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data-generated.js
2696
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/sbcs-data-generated.js
2697
2697
  var require_sbcs_data_generated = __commonJS((exports, module) => {
2698
2698
  module.exports = {
2699
2699
  "437": "cp437",
@@ -3150,7 +3150,7 @@ var require_sbcs_data_generated = __commonJS((exports, module) => {
3150
3150
  };
3151
3151
  });
3152
3152
 
3153
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-codec.js
3153
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/dbcs-codec.js
3154
3154
  var require_dbcs_codec = __commonJS((exports) => {
3155
3155
  var Buffer2 = require_safer().Buffer;
3156
3156
  exports._dbcs = DBCSCodec;
@@ -3608,7 +3608,7 @@ var require_dbcs_codec = __commonJS((exports) => {
3608
3608
  }
3609
3609
  });
3610
3610
 
3611
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/shiftjis.json
3611
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/shiftjis.json
3612
3612
  var require_shiftjis = __commonJS((exports, module) => {
3613
3613
  module.exports = [
3614
3614
  ["0", "\x00", 128],
@@ -3737,7 +3737,7 @@ var require_shiftjis = __commonJS((exports, module) => {
3737
3737
  ];
3738
3738
  });
3739
3739
 
3740
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/eucjp.json
3740
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/eucjp.json
3741
3741
  var require_eucjp = __commonJS((exports, module) => {
3742
3742
  module.exports = [
3743
3743
  ["0", "\x00", 127],
@@ -3923,7 +3923,7 @@ var require_eucjp = __commonJS((exports, module) => {
3923
3923
  ];
3924
3924
  });
3925
3925
 
3926
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp936.json
3926
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/cp936.json
3927
3927
  var require_cp936 = __commonJS((exports, module) => {
3928
3928
  module.exports = [
3929
3929
  ["0", "\x00", 127, "€"],
@@ -4191,7 +4191,7 @@ var require_cp936 = __commonJS((exports, module) => {
4191
4191
  ];
4192
4192
  });
4193
4193
 
4194
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gbk-added.json
4194
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/gbk-added.json
4195
4195
  var require_gbk_added = __commonJS((exports, module) => {
4196
4196
  module.exports = [
4197
4197
  ["a140", "", 62],
@@ -4251,12 +4251,12 @@ var require_gbk_added = __commonJS((exports, module) => {
4251
4251
  ];
4252
4252
  });
4253
4253
 
4254
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
4254
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
4255
4255
  var require_gb18030_ranges = __commonJS((exports, module) => {
4256
4256
  module.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189000] };
4257
4257
  });
4258
4258
 
4259
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp949.json
4259
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/cp949.json
4260
4260
  var require_cp949 = __commonJS((exports, module) => {
4261
4261
  module.exports = [
4262
4262
  ["0", "\x00", 127],
@@ -4533,7 +4533,7 @@ var require_cp949 = __commonJS((exports, module) => {
4533
4533
  ];
4534
4534
  });
4535
4535
 
4536
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp950.json
4536
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/cp950.json
4537
4537
  var require_cp950 = __commonJS((exports, module) => {
4538
4538
  module.exports = [
4539
4539
  ["0", "\x00", 127],
@@ -4714,7 +4714,7 @@ var require_cp950 = __commonJS((exports, module) => {
4714
4714
  ];
4715
4715
  });
4716
4716
 
4717
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/big5-added.json
4717
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/big5-added.json
4718
4718
  var require_big5_added = __commonJS((exports, module) => {
4719
4719
  module.exports = [
4720
4720
  ["8740", "䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],
@@ -4840,7 +4840,7 @@ var require_big5_added = __commonJS((exports, module) => {
4840
4840
  ];
4841
4841
  });
4842
4842
 
4843
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-data.js
4843
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/dbcs-data.js
4844
4844
  var require_dbcs_data = __commonJS((exports, module) => {
4845
4845
  module.exports = {
4846
4846
  shiftjis: {
@@ -5011,7 +5011,7 @@ var require_dbcs_data = __commonJS((exports, module) => {
5011
5011
  };
5012
5012
  });
5013
5013
 
5014
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/index.js
5014
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/index.js
5015
5015
  var require_encodings = __commonJS((exports, module) => {
5016
5016
  var mergeModules = require_merge_exports();
5017
5017
  var modules = [
@@ -5033,7 +5033,7 @@ var require_encodings = __commonJS((exports, module) => {
5033
5033
  var i;
5034
5034
  });
5035
5035
 
5036
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/streams.js
5036
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/streams.js
5037
5037
  var require_streams = __commonJS((exports, module) => {
5038
5038
  var Buffer2 = require_safer().Buffer;
5039
5039
  module.exports = function(streamModule) {
@@ -5131,7 +5131,7 @@ var require_streams = __commonJS((exports, module) => {
5131
5131
  };
5132
5132
  });
5133
5133
 
5134
- // ../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/index.js
5134
+ // ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/index.js
5135
5135
  var require_lib = __commonJS((exports, module) => {
5136
5136
  var Buffer2 = require_safer().Buffer;
5137
5137
  var bomHandling = require_bom_handling();
@@ -69369,7 +69369,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
69369
69369
  exports.useTransition = function() {
69370
69370
  return resolveDispatcher().useTransition();
69371
69371
  };
69372
- exports.version = "19.2.1";
69372
+ exports.version = "19.2.3";
69373
69373
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
69374
69374
  })();
69375
69375
  });
@@ -69779,7 +69779,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
69779
69779
  exports.useFormStatus = function() {
69780
69780
  return resolveDispatcher().useHostTransitionStatus();
69781
69781
  };
69782
- exports.version = "19.2.1";
69782
+ exports.version = "19.2.3";
69783
69783
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
69784
69784
  })();
69785
69785
  });
@@ -75446,7 +75446,7 @@ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))
75446
75446
  exports.renderToString = function(children, options) {
75447
75447
  return renderToStringImpl(children, options, false, 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server');
75448
75448
  };
75449
- exports.version = "19.2.1";
75449
+ exports.version = "19.2.3";
75450
75450
  })();
75451
75451
  });
75452
75452
  var require_react_dom_server_node_development = __commonJS2((exports) => {
@@ -80157,10 +80157,10 @@ Check the top-level render call using <` + componentName + ">.");
80157
80157
  }
80158
80158
  function ensureCorrectIsomorphicReactVersion() {
80159
80159
  var isomorphicReactPackageVersion = React.version;
80160
- if (isomorphicReactPackageVersion !== "19.2.1")
80160
+ if (isomorphicReactPackageVersion !== "19.2.3")
80161
80161
  throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
80162
80162
  - react: ` + (isomorphicReactPackageVersion + `
80163
- - react-dom: 19.2.1
80163
+ - react-dom: 19.2.3
80164
80164
  Learn more: https://react.dev/warnings/version-mismatch`));
80165
80165
  }
80166
80166
  function createDrainHandler(destination, request) {
@@ -81495,7 +81495,7 @@ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))
81495
81495
  }
81496
81496
  };
81497
81497
  };
81498
- exports.version = "19.2.1";
81498
+ exports.version = "19.2.3";
81499
81499
  })();
81500
81500
  });
81501
81501
  var exports_abap2 = {};
@@ -162242,8 +162242,8 @@ function Ue2(e488) {
162242
162242
  }), d29) : null;
162243
162243
  }
162244
162244
  var De2 = { name: "cosmo", type: "from-css", colors: { "list.focusForeground": "var(--syntax1)", "scrollbar.shadow": "var(--syntax2)", "tab.activeBorder": "var(--syntax1)", "widget.shadow": "var(--syntax2)", "activityBar.border": "var(--syntax3)", "editorGroup.border": "var(--syntax3)", "editorGroupHeader.tabsBorder": "var(--syntax3)", "editorWidget.border": "var(--syntax3)", "editorWidget.resizeBorder": "var(--syntax3)", "input.border": "var(--syntax3)", "notificationCenter.border": "var(--syntax3)", "notifications.border": "var(--syntax3)", "panel.border": "var(--syntax3)", "sideBar.border": "var(--syntax3)", "statusBar.border": "var(--syntax3)", "tab.border": "var(--syntax3)", "activityBar.background": "var(--syntax4)", "statusBar.background": "var(--syntax4)", "statusBar.noFolderBackground": "var(--syntax4)", "statusBar.debuggingBackground": "var(--syntax4)", "editorGroupHeader.tabsBackground": "var(--syntax5)", "editorWidget.background": "var(--syntax5)", "sideBar.background": "var(--syntax5)", "sideBarSectionHeader.background": "var(--syntax5)", "tab.inactiveBackground": "var(--syntax5)", "activityBarBadge.background": "var(--syntax6)", "activityBar.foreground": "var(--syntax6)", "statusBar.foreground": "var(--syntax7)", "input.placeholderForeground": "var(--syntax8)", "editorLineNumber.foreground": "var(--syntax9)", "editorLineNumber.activeForeground": "var(--syntax6)", foreground: "var(--syntax6)", "panelTitle.activeForeground": "var(--syntax6)", "sideBarTitle.foreground": "var(--syntax6)", "sideBarSectionHeader.foreground": "var(--syntax6)", "panelTitle.inactiveForeground": "var(--syntax10)", "tab.inactiveForeground": "var(--syntax10)", "list.highlightForeground": "var(--syntax10)", "editor.lineHighlightBackground": "var(--syntax11)", focusBorder: "var(--syntax12)", "button.background": "var(--syntax13)", "list.activeSelectionBackground": "var(--syntax13)", "list.focusBackground": "var(--syntax13)", "selection.background": "#B3D7FF", "list.inactiveSelectionBackground": "var(--syntax14)", "terminal.ansiBlack": "var(--syntax15)", "terminal.ansiBrightBlack": "var(--syntax15)", "terminal.ansiRed": "var(--syntax16)", "terminal.ansiBrightRed": "var(--syntax16)", "terminal.ansiGreen": "var(--syntax17)", "terminal.ansiBrightGreen": "var(--syntax17)", "terminal.ansiYellow": "var(--syntax18)", "terminal.ansiBrightYellow": "var(--syntax18)", "terminal.ansiBlue": "var(--syntax19)", "terminal.ansiBrightBlue": "var(--syntax19)", "terminal.ansiMagenta": "var(--syntax20)", "terminal.ansiBrightMagenta": "var(--syntax20)", "terminal.ansiCyan": "var(--syntax21)", "terminal.ansiBrightCyan": "var(--syntax21)" }, tokenColors: [{ scope: "new.expr entity.name", settings: { foreground: "var(--syntax22)" } }, { name: "Comments", scope: ["comment", "comment storage.type"], settings: { foreground: "var(--syntax23)", fontStyle: "italic" } }, { name: "CSS", scope: ["entity.other.attribute-name.pseudo-class.css", "entity.other.attribute-name.pseudo-class.scss", "entity.other.attribute-name.pseudo-element.css", "entity.other.attribute-name.pseudo-element.scss", "support.function.calc.css", "support.function.calc.scss", "support.type.property-name.css", "support.type.property-name.scss", "support.type.vendored.property-name.css", "support.type.vendored.property-name.scss", "meta.property-value.css support.constant", "meta.property-value.scss support.constant", "meta.property-value.css support.constant.property-value", "meta.property-value.scss support.constant.property-value", "support.function.transform.css", "support.function.transform.scss"], settings: { foreground: "var(--syntax20)" } }, { name: "Decorator", scope: ["meta.decorator", "meta.decorator punctuation.decorator", "meta.decorator variable.other.readwrite", "meta.decorator meta.function-call entity.name.function"], settings: { foreground: "var(--syntax18)" } }, { name: "Doctype", scope: ["meta.tag.sgml.html"], settings: { foreground: "var(--syntax9)" } }, { name: "Functions", scope: ["entity.name.function", "support.function"], settings: { foreground: "var(--syntax24)" } }, { name: "Keys", scope: ["meta.property-list meta.property-name", "support.type.property-name", "support.type.map.key", "entity.name.tag.yaml"], settings: { foreground: "var(--syntax24)" } }, { name: "Keywords", scope: ["keyword.control", "keyword.declaration", "keyword.expressions-and-types", "keyword.operator.new", "keyword.reserved", "keyword.statement", "storage.type", "storage.modifier", "constant.language", "variable.language.super", "variable.language.this", "text.html entity.name.tag", "meta.tag entity.name.tag", "meta.tag support.class", "string.regexp keyword.other"], settings: { foreground: "var(--syntax25)", fontStyle: "bold" } }, { name: "Operators", scope: ["storage.type.function.arrow", "meta.template.expression punctuation", "punctuation.separator.key-value", "meta.object-literal.key meta.brace.square", "meta.template.expression keyword.operator", "keyword.operator.or.regexp", "keyword.operator.quantifier", "punctuation.definition.group.regexp", "punctuation.definition.character-class"], settings: { foreground: "var(--syntax15)" } }, { scope: ["meta.tag entity.other.attribute-name", "constant.character.escape.backslash"], settings: { foreground: "var(--syntax26)" } }, { name: "Numbers", scope: ["constant.numeric", "keyword.other.unit", "constant.other.color"], settings: { foreground: "var(--syntax19)" } }, { name: "Strings", scope: ["string", "variable.parameter.url.scss", "markup.heading.markdown", "beginning.punctuation.definition.list.markdown", "meta.template.expression meta.embedded punctuation.definition.string.begin", "meta.template.expression meta.embedded punctuation.definition.string.end"], settings: { foreground: "var(--syntax27)" } }, { name: "Types", scope: ["meta.type", "meta.return.type", "entity.name.type", "support.type.primitive"], settings: { foreground: "var(--syntax22)" } }, { scope: ["meta.objectliteral variable.other.object", "entity.name.type.module", "entity.other.inherited-class", "variable.scss", "variable.other.bracket.shell", "entity.name.function.scss"], settings: { foreground: "var(--syntax21)" } }, { scope: ["keyword.control.at-rule", "meta.import variable.other.readwrite", "meta.definition.variable variable.other.readwrite", "meta.definition.variable variable.other.constant", "meta.template.expression variable.other.readwrite", "meta.template.expression variable.other.constant", "support.constant.property-value"], settings: { foreground: "var(--syntax15)" } }, { scope: ["variable.other.property", "variable.other.object.property", "support.variable.property"], settings: { foreground: "var(--syntax22)" } }] };
162245
- var Ve2 = ["annotation"];
162246
162245
  var We2 = ["annotation"];
162246
+ var Ve2 = ["annotation"];
162247
162247
  function Ge2(e488, n470, t481) {
162248
162248
  return Ye2.apply(this, arguments);
162249
162249
  }
@@ -162785,8 +162785,8 @@ function Dn(e488) {
162785
162785
  var t481 = e488.size, r325 = t481 === undefined ? "medium" : t481, a443 = e488.className;
162786
162786
  return import_react5.default.createElement("xyd-loader", { "data-size": r325, className: " lr0mq4l ".concat(a443 || "", " ") }, import_react5.default.createElement("div", { part: "dots" }, import_react5.default.createElement("div", { part: "dot" }), import_react5.default.createElement("div", { part: "dot" }), import_react5.default.createElement("div", { part: "dot" })));
162787
162787
  }
162788
- var Vn = import_react5.createContext({ highlighted: [] });
162789
- function Wn(e488) {
162788
+ var Wn = import_react5.createContext({ highlighted: [] });
162789
+ function Vn(e488) {
162790
162790
  var r325, a443 = import_react5.useState(p28(e488.codeblocks)), o237 = S2(a443, 2), l52 = o237[0], c105 = o237[1], u28 = import_react5.useState(true), s187 = S2(u28, 2), m82 = s187[0], v4 = s187[1];
162791
162791
  function p28(e489) {
162792
162792
  return e489 ? e489.map(function(e490) {
@@ -162847,7 +162847,7 @@ function Wn(e488) {
162847
162847
  }, n);
162848
162848
  }))();
162849
162849
  }, [e488.codeblocks]);
162850
- var f4 = import_react5.default.createElement(Vn, { value: { highlighted: l52 || [] } }, e488.children), h6 = (r325 = e488.codeblocks) === null || r325 === undefined ? undefined : r325.every(function(e489) {
162850
+ var f4 = import_react5.default.createElement(Wn, { value: { highlighted: l52 || [] } }, e488.children), h6 = (r325 = e488.codeblocks) === null || r325 === undefined ? undefined : r325.every(function(e489) {
162851
162851
  return e489.highlighted;
162852
162852
  });
162853
162853
  return h6 ? f4 : m82 ? import_react5.default.createElement(Dn, null) : f4;
@@ -162911,7 +162911,7 @@ function Jn(e488) {
162911
162911
  }(), n470;
162912
162912
  }
162913
162913
  function Qn(e488) {
162914
- return import_react5.default.createElement(import_react5.Suspense, { fallback: import_react5.default.createElement(Yn, null) }, import_react5.default.createElement(Wn, { codeblocks: e488.codeblocks, theme: e488.theme }, e488.children));
162914
+ return import_react5.default.createElement(import_react5.Suspense, { fallback: import_react5.default.createElement(Yn, null) }, import_react5.default.createElement(Vn, { codeblocks: e488.codeblocks, theme: e488.theme }, e488.children));
162915
162915
  }
162916
162916
  function et2() {
162917
162917
  return import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", strokeWidth: 3, stroke: "currentColor", fill: "none", width: 16, strokeLinecap: "round", strokeLinejoin: "round" }, import_react5.default.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), import_react5.default.createElement("path", { d: "M12 12l8 -4.5" }), import_react5.default.createElement("path", { d: "M12 12v9" }), import_react5.default.createElement("path", { d: "M12 12l-8 -4.5" }), import_react5.default.createElement("path", { d: "M12 12l8 4.5" }), import_react5.default.createElement("path", { d: "M12 3v9" }), import_react5.default.createElement("path", { d: "M12 12l-8 4.5" }));
@@ -162944,12 +162944,12 @@ var nt2 = { mark: { name: "mark", Line: function(e488) {
162944
162944
  return import_react5.default.createElement(Qn.Bg, e488);
162945
162945
  } }, lineNumbers: { name: "line-numbers", Line: function(e488) {
162946
162946
  e488.annotation;
162947
- var t481 = w2(e488, Ve2);
162947
+ var t481 = w2(e488, We2);
162948
162948
  return import_react5.default.createElement(Qn.LineNumber, t481);
162949
162949
  } }, diff: { name: "diff", onlyIfAnnotated: true, transform: function(e488) {
162950
162950
  return [e488, E4(E4({}, e488), {}, { name: "mark", query: e488.query, diff: true })];
162951
162951
  }, Line: function(e488) {
162952
- var t481 = e488.annotation, r325 = w2(e488, We2);
162952
+ var t481 = e488.annotation, r325 = w2(e488, Ve2);
162953
162953
  return import_react5.default.createElement(import_react5.default.Fragment, null, import_react5.default.createElement("div", null, t481 == null ? undefined : t481.query), import_react5.default.createElement(Sn, { merge: r325 }));
162954
162954
  } } };
162955
162955
  function tt2(e488) {
@@ -162981,7 +162981,7 @@ function it2(e488) {
162981
162981
  return import_react5.default.createElement(Zn, null, import_react5.default.createElement(Qn, { codeblocks: e488.codeblocks, theme: e488.theme }, import_react5.default.createElement(lt2, e488)));
162982
162982
  }
162983
162983
  function lt2(e488) {
162984
- var t481, r325, o237 = import_react5.use(Vn).highlighted, i314 = import_react5.useContext(at3);
162984
+ var t481, r325, o237 = import_react5.use(Wn).highlighted, i314 = import_react5.useContext(at3);
162985
162985
  if (e488.kind === "secondary")
162986
162986
  return import_react5.default.createElement(ot2, { value: { size: e488.size, lineNumbers: e488.lineNumbers, descriptionHead: e488.descriptionHead, descriptionContent: e488.descriptionContent, descriptionIcon: e488.descriptionIcon, markdownFormat: e488.markdownFormat } }, import_react5.default.createElement(Qn.Pre, { codeblock: o237[0], handlers: [nt2.mark, nt2.bg, nt2.lineNumbers] }));
162987
162987
  typeof e488.size == "string" ? r325 = e488.size : typeof i314.scroll != "boolean" || i314.scroll || (r325 = "full");
@@ -204507,7 +204507,7 @@ function convertToPrettyString(message) {
204507
204507
  lines.push(` Call ID: ${tc.id}`);
204508
204508
  lines.push(" Args:");
204509
204509
  for (const [key, value] of Object.entries(tc.args))
204510
- lines.push(` ${key}: ${value}`);
204510
+ lines.push(` ${key}: ${typeof value === "object" ? JSON.stringify(value) : value}`);
204511
204511
  }
204512
204512
  }
204513
204513
  }
@@ -206447,7 +206447,7 @@ var BaseCallbackHandler = class extends BaseCallbackHandlerMethodsClass {
206447
206447
  static fromMethods(methods) {
206448
206448
 
206449
206449
  class Handler extends BaseCallbackHandler {
206450
- name = v4();
206450
+ name = v7();
206451
206451
  constructor() {
206452
206452
  super();
206453
206453
  Object.assign(this, methods);
@@ -206536,7 +206536,7 @@ function uuid7FromTime(timestamp2) {
206536
206536
  const msecs = typeof timestamp2 === "string" ? Date.parse(timestamp2) : timestamp2;
206537
206537
  return v7({ msecs, seq: 0 });
206538
206538
  }
206539
- var __version__ = "0.3.82";
206539
+ var __version__ = "0.3.87";
206540
206540
  var globalEnv;
206541
206541
  var isBrowser2 = () => typeof window !== "undefined" && typeof window.document !== "undefined";
206542
206542
  var isWebWorker2 = () => typeof globalThis === "object" && globalThis.constructor && globalThis.constructor.name === "DedicatedWorkerGlobalScope";
@@ -207687,7 +207687,10 @@ function replaceGetterValues(replacer) {
207687
207687
  return replacer.call(this, key, val);
207688
207688
  };
207689
207689
  }
207690
- function mergeRuntimeEnvIntoRun(run, cachedEnvVars) {
207690
+ function mergeRuntimeEnvIntoRun(run, cachedEnvVars, omitTracedRuntimeInfo) {
207691
+ if (omitTracedRuntimeInfo) {
207692
+ return run;
207693
+ }
207691
207694
  const runtimeEnv = getRuntimeEnvironment2();
207692
207695
  const envVars = cachedEnvVars ?? getLangSmithEnvVarsMetadata();
207693
207696
  const extra = run.extra ?? {};
@@ -207907,6 +207910,12 @@ class Client {
207907
207910
  writable: true,
207908
207911
  value: undefined
207909
207912
  });
207913
+ Object.defineProperty(this, "omitTracedRuntimeInfo", {
207914
+ enumerable: true,
207915
+ configurable: true,
207916
+ writable: true,
207917
+ value: undefined
207918
+ });
207910
207919
  Object.defineProperty(this, "tracingSampleRate", {
207911
207920
  enumerable: true,
207912
207921
  configurable: true,
@@ -208062,6 +208071,7 @@ class Client {
208062
208071
  });
208063
208072
  this.hideInputs = config2.hideInputs ?? config2.anonymizer ?? defaultConfig.hideInputs;
208064
208073
  this.hideOutputs = config2.hideOutputs ?? config2.anonymizer ?? defaultConfig.hideOutputs;
208074
+ this.omitTracedRuntimeInfo = config2.omitTracedRuntimeInfo ?? false;
208065
208075
  this.autoBatchTracing = config2.autoBatchTracing ?? this.autoBatchTracing;
208066
208076
  this.autoBatchQueue = new AutoBatchQueue(maxMemory);
208067
208077
  this.blockOnRootRunFinalization = config2.blockOnRootRunFinalization ?? this.blockOnRootRunFinalization;
@@ -208392,7 +208402,7 @@ class Client {
208392
208402
  async processRunOperation(item) {
208393
208403
  clearTimeout(this.autoBatchTimeout);
208394
208404
  this.autoBatchTimeout = undefined;
208395
- item.item = mergeRuntimeEnvIntoRun(item.item, this.cachedLSEnvVarsForMetadata);
208405
+ item.item = mergeRuntimeEnvIntoRun(item.item, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
208396
208406
  const itemPromise = this.autoBatchQueue.push(item);
208397
208407
  if (this.manualFlushMode) {
208398
208408
  return itemPromise;
@@ -208507,7 +208517,7 @@ class Client {
208507
208517
  }).catch(console.error);
208508
208518
  return;
208509
208519
  }
208510
- const mergedRunCreateParam = mergeRuntimeEnvIntoRun(runCreate, this.cachedLSEnvVarsForMetadata);
208520
+ const mergedRunCreateParam = mergeRuntimeEnvIntoRun(runCreate, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
208511
208521
  if (options?.apiKey !== undefined) {
208512
208522
  headers["x-api-key"] = options.apiKey;
208513
208523
  }
@@ -209995,6 +210005,39 @@ Message: ${Array.isArray(result.detail) ? result.detail.join(`
209995
210005
  return res;
209996
210006
  });
209997
210007
  }
210008
+ async deleteExamples(exampleIds, options) {
210009
+ exampleIds.forEach((id) => assertUuid(id));
210010
+ if (options?.hardDelete) {
210011
+ const path5 = this._getPlatformEndpointPath("datasets/examples/delete");
210012
+ await this.caller.call(async () => {
210013
+ const res = await this._fetch(`${this.apiUrl}${path5}`, {
210014
+ method: "POST",
210015
+ headers: { ...this.headers, "Content-Type": "application/json" },
210016
+ body: JSON.stringify({
210017
+ example_ids: exampleIds,
210018
+ hard_delete: true
210019
+ }),
210020
+ signal: AbortSignal.timeout(this.timeout_ms),
210021
+ ...this.fetchOptions
210022
+ });
210023
+ await raiseForStatus(res, "hard delete examples", true);
210024
+ return res;
210025
+ });
210026
+ } else {
210027
+ const params2 = new URLSearchParams;
210028
+ exampleIds.forEach((id) => params2.append("example_ids", id));
210029
+ await this.caller.call(async () => {
210030
+ const res = await this._fetch(`${this.apiUrl}/examples?${params2.toString()}`, {
210031
+ method: "DELETE",
210032
+ headers: this.headers,
210033
+ signal: AbortSignal.timeout(this.timeout_ms),
210034
+ ...this.fetchOptions
210035
+ });
210036
+ await raiseForStatus(res, "delete examples", true);
210037
+ return res;
210038
+ });
210039
+ }
210040
+ }
209998
210041
  async updateExample(exampleIdOrUpdate, update) {
209999
210042
  let exampleId;
210000
210043
  if (update) {
@@ -211803,7 +211846,8 @@ function isCallbackManagerLike(x4) {
211803
211846
  return typeof x4 === "object" && x4 != null && Array.isArray(x4.handlers);
211804
211847
  }
211805
211848
  function isRunnableConfigLike(x4) {
211806
- return x4 != null && typeof x4.callbacks === "object" && (containsLangChainTracerLike(x4.callbacks?.handlers) || containsLangChainTracerLike(x4.callbacks));
211849
+ const callbacks = x4?.callbacks;
211850
+ return x4 != null && typeof callbacks === "object" && (containsLangChainTracerLike(callbacks?.handlers) || containsLangChainTracerLike(callbacks));
211807
211851
  }
211808
211852
  function _getWriteReplicasFromEnv() {
211809
211853
  const envVar = getEnvironmentVariable2("LANGSMITH_RUNS_ENDPOINTS");
@@ -211943,7 +211987,7 @@ ${error2.stack}` : "");
211943
211987
  const { dottedOrder: currentDottedOrder, microsecondPrecisionDatestring } = convertToDottedOrderFormat(new Date(run.start_time).getTime(), run.id, run.execution_order);
211944
211988
  const storedRun = { ...run };
211945
211989
  const parentRun = this.getRunById(storedRun.parent_run_id);
211946
- if (storedRun.parent_run_id !== undefined) {
211990
+ if (storedRun.parent_run_id !== undefined)
211947
211991
  if (parentRun) {
211948
211992
  this._addChildRun(parentRun, storedRun);
211949
211993
  parentRun.child_execution_order = Math.max(parentRun.child_execution_order, storedRun.child_execution_order);
@@ -211952,8 +211996,9 @@ ${error2.stack}` : "");
211952
211996
  storedRun.dotted_order = [parentRun.dotted_order, currentDottedOrder].join(".");
211953
211997
  storedRun._serialized_start_time = microsecondPrecisionDatestring;
211954
211998
  }
211955
- }
211956
- } else {
211999
+ } else
212000
+ storedRun.parent_run_id = undefined;
212001
+ else {
211957
212002
  storedRun.trace_id = storedRun.id;
211958
212003
  storedRun.dotted_order = currentDottedOrder;
211959
212004
  storedRun._serialized_start_time = microsecondPrecisionDatestring;
@@ -212879,7 +212924,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
212879
212924
  }
212880
212925
  async handleLLMStart(llm, prompts, runId = undefined, _parentRunId = undefined, extraParams = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
212881
212926
  return Promise.all(prompts.map(async (prompt, idx) => {
212882
- const runId_ = idx === 0 && runId ? runId : v4();
212927
+ const runId_ = idx === 0 && runId ? runId : v7();
212883
212928
  await Promise.all(this.handlers.map((handler) => {
212884
212929
  if (handler.ignoreLLM)
212885
212930
  return;
@@ -212901,7 +212946,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
212901
212946
  }
212902
212947
  async handleChatModelStart(llm, messages, runId = undefined, _parentRunId = undefined, extraParams = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
212903
212948
  return Promise.all(messages.map(async (messageGroup, idx) => {
212904
- const runId_ = idx === 0 && runId ? runId : v4();
212949
+ const runId_ = idx === 0 && runId ? runId : v7();
212905
212950
  await Promise.all(this.handlers.map((handler) => {
212906
212951
  if (handler.ignoreLLM)
212907
212952
  return;
@@ -212926,7 +212971,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
212926
212971
  return new CallbackManagerForLLMRun(runId_, this.handlers, this.inheritableHandlers, this.tags, this.inheritableTags, this.metadata, this.inheritableMetadata, this._parentRunId);
212927
212972
  }));
212928
212973
  }
212929
- async handleChainStart(chain, inputs, runId = v4(), runType = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
212974
+ async handleChainStart(chain, inputs, runId = v7(), runType = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
212930
212975
  await Promise.all(this.handlers.map((handler) => {
212931
212976
  if (handler.ignoreChain)
212932
212977
  return;
@@ -212945,7 +212990,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
212945
212990
  }));
212946
212991
  return new CallbackManagerForChainRun(runId, this.handlers, this.inheritableHandlers, this.tags, this.inheritableTags, this.metadata, this.inheritableMetadata, this._parentRunId);
212947
212992
  }
212948
- async handleToolStart(tool, input, runId = v4(), _parentRunId = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
212993
+ async handleToolStart(tool, input, runId = v7(), _parentRunId = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
212949
212994
  await Promise.all(this.handlers.map((handler) => {
212950
212995
  if (handler.ignoreAgent)
212951
212996
  return;
@@ -212964,7 +213009,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
212964
213009
  }));
212965
213010
  return new CallbackManagerForToolRun(runId, this.handlers, this.inheritableHandlers, this.tags, this.inheritableTags, this.metadata, this.inheritableMetadata, this._parentRunId);
212966
213011
  }
212967
- async handleRetrieverStart(retriever, query, runId = v4(), _parentRunId = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
213012
+ async handleRetrieverStart(retriever, query, runId = v7(), _parentRunId = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
212968
213013
  await Promise.all(this.handlers.map((handler) => {
212969
213014
  if (handler.ignoreRetriever)
212970
213015
  return;
@@ -213062,7 +213107,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
213062
213107
  static fromHandlers(handlers) {
213063
213108
 
213064
213109
  class Handler extends BaseCallbackHandler {
213065
- name = v4();
213110
+ name = v7();
213066
213111
  constructor() {
213067
213112
  super();
213068
213113
  Object.assign(this, handlers);
@@ -213315,7 +213360,12 @@ function ensureConfig(config2) {
213315
213360
  if (empty2.timeout !== undefined) {
213316
213361
  if (empty2.timeout <= 0)
213317
213362
  throw new Error("Timeout must be a positive number");
213318
- const timeoutSignal = AbortSignal.timeout(empty2.timeout);
213363
+ const originalTimeoutMs = empty2.timeout;
213364
+ const timeoutSignal = AbortSignal.timeout(originalTimeoutMs);
213365
+ if (!empty2.metadata)
213366
+ empty2.metadata = {};
213367
+ if (empty2.metadata.timeoutMs === undefined)
213368
+ empty2.metadata.timeoutMs = originalTimeoutMs;
213319
213369
  if (empty2.signal !== undefined) {
213320
213370
  if ("any" in AbortSignal)
213321
213371
  empty2.signal = AbortSignal.any([empty2.signal, timeoutSignal]);
@@ -213693,12 +213743,19 @@ __export22(core_exports, {
213693
213743
  });
213694
213744
  var JsonPatchError = PatchError;
213695
213745
  var deepClone = _deepClone;
213746
+ function isDangerousKey(key) {
213747
+ return Object.getOwnPropertyNames(Object.prototype).includes(key);
213748
+ }
213696
213749
  var objOps = {
213697
213750
  add: function(obj, key, document4) {
213751
+ if (isDangerousKey(key))
213752
+ throw new TypeError("JSON-Patch: modifying `__proto__`, `constructor`, or `prototype` prop is banned for security reasons");
213698
213753
  obj[key] = this.value;
213699
213754
  return { newDocument: document4 };
213700
213755
  },
213701
213756
  remove: function(obj, key, document4) {
213757
+ if (isDangerousKey(key))
213758
+ throw new TypeError("JSON-Patch: modifying `__proto__`, `constructor`, or `prototype` prop is banned for security reasons");
213702
213759
  var removed = obj[key];
213703
213760
  delete obj[key];
213704
213761
  return {
@@ -213707,6 +213764,8 @@ var objOps = {
213707
213764
  };
213708
213765
  },
213709
213766
  replace: function(obj, key, document4) {
213767
+ if (isDangerousKey(key))
213768
+ throw new TypeError("JSON-Patch: modifying `__proto__`, `constructor`, or `prototype` prop is banned for security reasons");
213710
213769
  var removed = obj[key];
213711
213770
  obj[key] = this.value;
213712
213771
  return {
@@ -225105,7 +225164,7 @@ function interopZodTransformInputSchemaImpl(schema2, recursive, cache) {
225105
225164
  outputSchema = interopZodTransformInputSchemaImpl(schema2._zod.def.in, recursive, cache);
225106
225165
  if (recursive) {
225107
225166
  if (isZodObjectV4(outputSchema)) {
225108
- const outputShape = outputSchema._zod.def.shape;
225167
+ const outputShape = {};
225109
225168
  for (const [key, keySchema] of Object.entries(outputSchema._zod.def.shape))
225110
225169
  outputShape[key] = interopZodTransformInputSchemaImpl(keySchema, recursive, cache);
225111
225170
  outputSchema = clone2(outputSchema, {
@@ -225228,16 +225287,24 @@ graph TD;
225228
225287
  edgeGroups[commonPrefix].push(edge);
225229
225288
  }
225230
225289
  const seenSubgraphs = /* @__PURE__ */ new Set;
225290
+ function sortPrefixesByDepth(prefixes) {
225291
+ return [...prefixes].sort((a443, b8) => {
225292
+ return a443.split(":").length - b8.split(":").length;
225293
+ });
225294
+ }
225231
225295
  function addSubgraph(edges$1, prefix) {
225232
225296
  const selfLoop = edges$1.length === 1 && edges$1[0].source === edges$1[0].target;
225233
225297
  if (prefix && !selfLoop) {
225234
225298
  const subgraph = prefix.split(":").pop();
225235
- if (seenSubgraphs.has(subgraph))
225236
- throw new Error(`Found duplicate subgraph '${subgraph}' -- this likely means that you're reusing a subgraph node with the same name. Please adjust your graph to have subgraph nodes with unique names.`);
225237
- seenSubgraphs.add(subgraph);
225299
+ if (seenSubgraphs.has(prefix))
225300
+ throw new Error(`Found duplicate subgraph '${subgraph}' at '${prefix} -- this likely means that you're reusing a subgraph node with the same name. Please adjust your graph to have subgraph nodes with unique names.`);
225301
+ seenSubgraphs.add(prefix);
225238
225302
  mermaidGraph += ` subgraph ${subgraph}
225239
225303
  `;
225240
225304
  }
225305
+ const nestedPrefixes = sortPrefixesByDepth(Object.keys(edgeGroups).filter((nestedPrefix) => nestedPrefix.startsWith(`${prefix}:`) && nestedPrefix !== prefix && nestedPrefix.split(":").length === prefix.split(":").length + 1));
225306
+ for (const nestedPrefix of nestedPrefixes)
225307
+ addSubgraph(edgeGroups[nestedPrefix], nestedPrefix);
225241
225308
  for (const edge of edges$1) {
225242
225309
  const { source, target, data, conditional } = edge;
225243
225310
  let edgeLabel = "";
@@ -225252,9 +225319,6 @@ graph TD;
225252
225319
  mermaidGraph += ` ${_escapeNodeLabel(source)}${edgeLabel}${_escapeNodeLabel(target)};
225253
225320
  `;
225254
225321
  }
225255
- for (const nestedPrefix in edgeGroups)
225256
- if (nestedPrefix.startsWith(`${prefix}:`) && nestedPrefix !== prefix)
225257
- addSubgraph(edgeGroups[nestedPrefix], nestedPrefix);
225258
225322
  if (prefix && !selfLoop)
225259
225323
  mermaidGraph += ` end
225260
225324
  `;
@@ -227482,14 +227546,14 @@ __export22(json_schema_exports, {
227482
227546
  toJsonSchema: () => toJsonSchema,
227483
227547
  validatesOnlyStrings: () => validatesOnlyStrings
227484
227548
  });
227485
- function toJsonSchema(schema2) {
227549
+ function toJsonSchema(schema2, params2) {
227486
227550
  if (isZodSchemaV4(schema2)) {
227487
227551
  const inputSchema = interopZodTransformInputSchema(schema2, true);
227488
227552
  if (isZodObjectV4(inputSchema)) {
227489
227553
  const strictSchema = interopZodObjectStrict(inputSchema, true);
227490
- return toJSONSchema3(strictSchema);
227554
+ return toJSONSchema3(strictSchema, params2);
227491
227555
  } else
227492
- return toJSONSchema3(schema2);
227556
+ return toJSONSchema3(schema2, params2);
227493
227557
  }
227494
227558
  if (isZodSchemaV3(schema2))
227495
227559
  return zodToJsonSchema3(schema2);
@@ -235441,6 +235505,107 @@ function _stringify(content3) {
235441
235505
  return `${content3}`;
235442
235506
  }
235443
235507
  }
235508
+ var ComputerUseScreenshotActionSchema = exports_external2.object({ type: exports_external2.literal("screenshot") });
235509
+ var ComputerUseClickActionSchema = exports_external2.object({
235510
+ type: exports_external2.literal("click"),
235511
+ x: exports_external2.number(),
235512
+ y: exports_external2.number(),
235513
+ button: exports_external2.enum([
235514
+ "left",
235515
+ "right",
235516
+ "wheel",
235517
+ "back",
235518
+ "forward"
235519
+ ]).default("left")
235520
+ });
235521
+ var ComputerUseDoubleClickActionSchema = exports_external2.object({
235522
+ type: exports_external2.literal("double_click"),
235523
+ x: exports_external2.number(),
235524
+ y: exports_external2.number(),
235525
+ button: exports_external2.enum([
235526
+ "left",
235527
+ "right",
235528
+ "wheel",
235529
+ "back",
235530
+ "forward"
235531
+ ]).default("left")
235532
+ });
235533
+ var ComputerUseDragActionSchema = exports_external2.object({
235534
+ type: exports_external2.literal("drag"),
235535
+ path: exports_external2.array(exports_external2.object({
235536
+ x: exports_external2.number(),
235537
+ y: exports_external2.number()
235538
+ }))
235539
+ });
235540
+ var ComputerUseKeypressActionSchema = exports_external2.object({
235541
+ type: exports_external2.literal("keypress"),
235542
+ keys: exports_external2.array(exports_external2.string())
235543
+ });
235544
+ var ComputerUseMoveActionSchema = exports_external2.object({
235545
+ type: exports_external2.literal("move"),
235546
+ x: exports_external2.number(),
235547
+ y: exports_external2.number()
235548
+ });
235549
+ var ComputerUseScrollActionSchema = exports_external2.object({
235550
+ type: exports_external2.literal("scroll"),
235551
+ x: exports_external2.number(),
235552
+ y: exports_external2.number(),
235553
+ scroll_x: exports_external2.number(),
235554
+ scroll_y: exports_external2.number()
235555
+ });
235556
+ var ComputerUseTypeActionSchema = exports_external2.object({
235557
+ type: exports_external2.literal("type"),
235558
+ text: exports_external2.string()
235559
+ });
235560
+ var ComputerUseWaitActionSchema = exports_external2.object({
235561
+ type: exports_external2.literal("wait"),
235562
+ duration: exports_external2.number().optional()
235563
+ });
235564
+ var ComputerUseActionUnionSchema = exports_external2.discriminatedUnion("type", [
235565
+ ComputerUseScreenshotActionSchema,
235566
+ ComputerUseClickActionSchema,
235567
+ ComputerUseDoubleClickActionSchema,
235568
+ ComputerUseDragActionSchema,
235569
+ ComputerUseKeypressActionSchema,
235570
+ ComputerUseMoveActionSchema,
235571
+ ComputerUseScrollActionSchema,
235572
+ ComputerUseTypeActionSchema,
235573
+ ComputerUseWaitActionSchema
235574
+ ]);
235575
+ var ComputerUseActionSchema = exports_external2.object({ action: ComputerUseActionUnionSchema });
235576
+ var LocalShellExecActionSchema = exports_external2.object({
235577
+ type: exports_external2.literal("exec"),
235578
+ command: exports_external2.array(exports_external2.string()),
235579
+ env: exports_external2.record(exports_external2.string(), exports_external2.string()).optional(),
235580
+ working_directory: exports_external2.string().optional(),
235581
+ timeout_ms: exports_external2.number().optional(),
235582
+ user: exports_external2.string().optional()
235583
+ });
235584
+ var LocalShellActionSchema = exports_external2.discriminatedUnion("type", [LocalShellExecActionSchema]);
235585
+ var ShellActionSchema = exports_external2.object({
235586
+ commands: exports_external2.array(exports_external2.string()).describe("Array of shell commands to execute"),
235587
+ timeout_ms: exports_external2.number().optional().describe("Optional timeout in milliseconds for the commands"),
235588
+ max_output_length: exports_external2.number().optional().describe("Optional maximum number of characters to return from each command")
235589
+ });
235590
+ var ApplyPatchCreateFileOperationSchema = exports_external2.object({
235591
+ type: exports_external2.literal("create_file"),
235592
+ path: exports_external2.string(),
235593
+ diff: exports_external2.string()
235594
+ });
235595
+ var ApplyPatchUpdateFileOperationSchema = exports_external2.object({
235596
+ type: exports_external2.literal("update_file"),
235597
+ path: exports_external2.string(),
235598
+ diff: exports_external2.string()
235599
+ });
235600
+ var ApplyPatchDeleteFileOperationSchema = exports_external2.object({
235601
+ type: exports_external2.literal("delete_file"),
235602
+ path: exports_external2.string()
235603
+ });
235604
+ var ApplyPatchOperationSchema = exports_external2.discriminatedUnion("type", [
235605
+ ApplyPatchCreateFileOperationSchema,
235606
+ ApplyPatchUpdateFileOperationSchema,
235607
+ ApplyPatchDeleteFileOperationSchema
235608
+ ]);
235444
235609
  var Document = class {
235445
235610
  pageContent;
235446
235611
  metadata;