@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/CHANGELOG.md +2 -2
- package/dist/index.js +228 -63
- package/dist/mcp.js +228 -63
- package/package.json +2 -2
package/dist/mcp.js
CHANGED
|
@@ -880,7 +880,7 @@ var require_safer = __commonJS((exports, module) => {
|
|
|
880
880
|
module.exports = safer;
|
|
881
881
|
});
|
|
882
882
|
|
|
883
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
883
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/bom-handling.js
|
|
884
884
|
var require_bom_handling = __commonJS((exports) => {
|
|
885
885
|
var BOMChar = "\uFEFF";
|
|
886
886
|
exports.PrependBOM = PrependBOMWrapper;
|
|
@@ -923,7 +923,7 @@ var require_bom_handling = __commonJS((exports) => {
|
|
|
923
923
|
};
|
|
924
924
|
});
|
|
925
925
|
|
|
926
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
926
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/helpers/merge-exports.js
|
|
927
927
|
var require_merge_exports = __commonJS((exports, module) => {
|
|
928
928
|
var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
|
|
929
929
|
function mergeModules(target, module2) {
|
|
@@ -936,7 +936,7 @@ var require_merge_exports = __commonJS((exports, module) => {
|
|
|
936
936
|
module.exports = mergeModules;
|
|
937
937
|
});
|
|
938
938
|
|
|
939
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
939
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/internal.js
|
|
940
940
|
var require_internal = __commonJS((exports, module) => {
|
|
941
941
|
var Buffer2 = require_safer().Buffer;
|
|
942
942
|
module.exports = {
|
|
@@ -1109,7 +1109,7 @@ var require_internal = __commonJS((exports, module) => {
|
|
|
1109
1109
|
};
|
|
1110
1110
|
});
|
|
1111
1111
|
|
|
1112
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
1112
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/utf32.js
|
|
1113
1113
|
var require_utf32 = __commonJS((exports) => {
|
|
1114
1114
|
var Buffer2 = require_safer().Buffer;
|
|
1115
1115
|
exports._utf32 = Utf32Codec;
|
|
@@ -1343,7 +1343,7 @@ var require_utf32 = __commonJS((exports) => {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
});
|
|
1345
1345
|
|
|
1346
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
1346
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/utf16.js
|
|
1347
1347
|
var require_utf16 = __commonJS((exports) => {
|
|
1348
1348
|
var Buffer2 = require_safer().Buffer;
|
|
1349
1349
|
exports.utf16be = Utf16BECodec;
|
|
@@ -1486,7 +1486,7 @@ var require_utf16 = __commonJS((exports) => {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
});
|
|
1488
1488
|
|
|
1489
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
1489
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/utf7.js
|
|
1490
1490
|
var require_utf7 = __commonJS((exports) => {
|
|
1491
1491
|
var Buffer2 = require_safer().Buffer;
|
|
1492
1492
|
exports.utf7 = Utf7Codec;
|
|
@@ -1700,7 +1700,7 @@ var require_utf7 = __commonJS((exports) => {
|
|
|
1700
1700
|
};
|
|
1701
1701
|
});
|
|
1702
1702
|
|
|
1703
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
1703
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
1704
1704
|
var require_sbcs_codec = __commonJS((exports) => {
|
|
1705
1705
|
var Buffer2 = require_safer().Buffer;
|
|
1706
1706
|
exports._sbcs = SBCSCodec;
|
|
@@ -1757,7 +1757,7 @@ var require_sbcs_codec = __commonJS((exports) => {
|
|
|
1757
1757
|
SBCSDecoder.prototype.end = function() {};
|
|
1758
1758
|
});
|
|
1759
1759
|
|
|
1760
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
1760
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/sbcs-data.js
|
|
1761
1761
|
var require_sbcs_data = __commonJS((exports, module) => {
|
|
1762
1762
|
module.exports = {
|
|
1763
1763
|
10029: "maccenteuro",
|
|
@@ -1905,7 +1905,7 @@ var require_sbcs_data = __commonJS((exports, module) => {
|
|
|
1905
1905
|
};
|
|
1906
1906
|
});
|
|
1907
1907
|
|
|
1908
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
1908
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
1909
1909
|
var require_sbcs_data_generated = __commonJS((exports, module) => {
|
|
1910
1910
|
module.exports = {
|
|
1911
1911
|
"437": "cp437",
|
|
@@ -2362,7 +2362,7 @@ var require_sbcs_data_generated = __commonJS((exports, module) => {
|
|
|
2362
2362
|
};
|
|
2363
2363
|
});
|
|
2364
2364
|
|
|
2365
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
2365
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
2366
2366
|
var require_dbcs_codec = __commonJS((exports) => {
|
|
2367
2367
|
var Buffer2 = require_safer().Buffer;
|
|
2368
2368
|
exports._dbcs = DBCSCodec;
|
|
@@ -2820,7 +2820,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
2820
2820
|
}
|
|
2821
2821
|
});
|
|
2822
2822
|
|
|
2823
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
2823
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
2824
2824
|
var require_shiftjis = __commonJS((exports, module) => {
|
|
2825
2825
|
module.exports = [
|
|
2826
2826
|
["0", "\x00", 128],
|
|
@@ -2949,7 +2949,7 @@ var require_shiftjis = __commonJS((exports, module) => {
|
|
|
2949
2949
|
];
|
|
2950
2950
|
});
|
|
2951
2951
|
|
|
2952
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
2952
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
2953
2953
|
var require_eucjp = __commonJS((exports, module) => {
|
|
2954
2954
|
module.exports = [
|
|
2955
2955
|
["0", "\x00", 127],
|
|
@@ -3135,7 +3135,7 @@ var require_eucjp = __commonJS((exports, module) => {
|
|
|
3135
3135
|
];
|
|
3136
3136
|
});
|
|
3137
3137
|
|
|
3138
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
3138
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/cp936.json
|
|
3139
3139
|
var require_cp936 = __commonJS((exports, module) => {
|
|
3140
3140
|
module.exports = [
|
|
3141
3141
|
["0", "\x00", 127, "€"],
|
|
@@ -3403,7 +3403,7 @@ var require_cp936 = __commonJS((exports, module) => {
|
|
|
3403
3403
|
];
|
|
3404
3404
|
});
|
|
3405
3405
|
|
|
3406
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
3406
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
3407
3407
|
var require_gbk_added = __commonJS((exports, module) => {
|
|
3408
3408
|
module.exports = [
|
|
3409
3409
|
["a140", "", 62],
|
|
@@ -3463,12 +3463,12 @@ var require_gbk_added = __commonJS((exports, module) => {
|
|
|
3463
3463
|
];
|
|
3464
3464
|
});
|
|
3465
3465
|
|
|
3466
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
3466
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
3467
3467
|
var require_gb18030_ranges = __commonJS((exports, module) => {
|
|
3468
3468
|
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] };
|
|
3469
3469
|
});
|
|
3470
3470
|
|
|
3471
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
3471
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/cp949.json
|
|
3472
3472
|
var require_cp949 = __commonJS((exports, module) => {
|
|
3473
3473
|
module.exports = [
|
|
3474
3474
|
["0", "\x00", 127],
|
|
@@ -3745,7 +3745,7 @@ var require_cp949 = __commonJS((exports, module) => {
|
|
|
3745
3745
|
];
|
|
3746
3746
|
});
|
|
3747
3747
|
|
|
3748
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
3748
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/cp950.json
|
|
3749
3749
|
var require_cp950 = __commonJS((exports, module) => {
|
|
3750
3750
|
module.exports = [
|
|
3751
3751
|
["0", "\x00", 127],
|
|
@@ -3926,7 +3926,7 @@ var require_cp950 = __commonJS((exports, module) => {
|
|
|
3926
3926
|
];
|
|
3927
3927
|
});
|
|
3928
3928
|
|
|
3929
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
3929
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
3930
3930
|
var require_big5_added = __commonJS((exports, module) => {
|
|
3931
3931
|
module.exports = [
|
|
3932
3932
|
["8740", "䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],
|
|
@@ -4052,7 +4052,7 @@ var require_big5_added = __commonJS((exports, module) => {
|
|
|
4052
4052
|
];
|
|
4053
4053
|
});
|
|
4054
4054
|
|
|
4055
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
4055
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/dbcs-data.js
|
|
4056
4056
|
var require_dbcs_data = __commonJS((exports, module) => {
|
|
4057
4057
|
module.exports = {
|
|
4058
4058
|
shiftjis: {
|
|
@@ -4223,7 +4223,7 @@ var require_dbcs_data = __commonJS((exports, module) => {
|
|
|
4223
4223
|
};
|
|
4224
4224
|
});
|
|
4225
4225
|
|
|
4226
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
4226
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/encodings/index.js
|
|
4227
4227
|
var require_encodings = __commonJS((exports, module) => {
|
|
4228
4228
|
var mergeModules = require_merge_exports();
|
|
4229
4229
|
var modules = [
|
|
@@ -4245,7 +4245,7 @@ var require_encodings = __commonJS((exports, module) => {
|
|
|
4245
4245
|
var i;
|
|
4246
4246
|
});
|
|
4247
4247
|
|
|
4248
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
4248
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/streams.js
|
|
4249
4249
|
var require_streams = __commonJS((exports, module) => {
|
|
4250
4250
|
var Buffer2 = require_safer().Buffer;
|
|
4251
4251
|
module.exports = function(streamModule) {
|
|
@@ -4343,7 +4343,7 @@ var require_streams = __commonJS((exports, module) => {
|
|
|
4343
4343
|
};
|
|
4344
4344
|
});
|
|
4345
4345
|
|
|
4346
|
-
// ../../node_modules/.pnpm/iconv-lite@0.7.
|
|
4346
|
+
// ../../node_modules/.pnpm/iconv-lite@0.7.1/node_modules/iconv-lite/lib/index.js
|
|
4347
4347
|
var require_lib = __commonJS((exports, module) => {
|
|
4348
4348
|
var Buffer2 = require_safer().Buffer;
|
|
4349
4349
|
var bomHandling = require_bom_handling();
|
|
@@ -50799,7 +50799,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
50799
50799
|
exports.useTransition = function() {
|
|
50800
50800
|
return resolveDispatcher().useTransition();
|
|
50801
50801
|
};
|
|
50802
|
-
exports.version = "19.2.
|
|
50802
|
+
exports.version = "19.2.3";
|
|
50803
50803
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
50804
50804
|
})();
|
|
50805
50805
|
});
|
|
@@ -51209,7 +51209,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
51209
51209
|
exports.useFormStatus = function() {
|
|
51210
51210
|
return resolveDispatcher().useHostTransitionStatus();
|
|
51211
51211
|
};
|
|
51212
|
-
exports.version = "19.2.
|
|
51212
|
+
exports.version = "19.2.3";
|
|
51213
51213
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
51214
51214
|
})();
|
|
51215
51215
|
});
|
|
@@ -56876,7 +56876,7 @@ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))
|
|
|
56876
56876
|
exports.renderToString = function(children, options) {
|
|
56877
56877
|
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');
|
|
56878
56878
|
};
|
|
56879
|
-
exports.version = "19.2.
|
|
56879
|
+
exports.version = "19.2.3";
|
|
56880
56880
|
})();
|
|
56881
56881
|
});
|
|
56882
56882
|
var require_react_dom_server_node_development = __commonJS2((exports) => {
|
|
@@ -61587,10 +61587,10 @@ Check the top-level render call using <` + componentName + ">.");
|
|
|
61587
61587
|
}
|
|
61588
61588
|
function ensureCorrectIsomorphicReactVersion() {
|
|
61589
61589
|
var isomorphicReactPackageVersion = React.version;
|
|
61590
|
-
if (isomorphicReactPackageVersion !== "19.2.
|
|
61590
|
+
if (isomorphicReactPackageVersion !== "19.2.3")
|
|
61591
61591
|
throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
61592
61592
|
- react: ` + (isomorphicReactPackageVersion + `
|
|
61593
|
-
- react-dom: 19.2.
|
|
61593
|
+
- react-dom: 19.2.3
|
|
61594
61594
|
Learn more: https://react.dev/warnings/version-mismatch`));
|
|
61595
61595
|
}
|
|
61596
61596
|
function createDrainHandler(destination, request) {
|
|
@@ -62925,7 +62925,7 @@ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))
|
|
|
62925
62925
|
}
|
|
62926
62926
|
};
|
|
62927
62927
|
};
|
|
62928
|
-
exports.version = "19.2.
|
|
62928
|
+
exports.version = "19.2.3";
|
|
62929
62929
|
})();
|
|
62930
62930
|
});
|
|
62931
62931
|
var exports_abap2 = {};
|
|
@@ -143672,8 +143672,8 @@ function Ue2(e488) {
|
|
|
143672
143672
|
}), d29) : null;
|
|
143673
143673
|
}
|
|
143674
143674
|
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)" } }] };
|
|
143675
|
-
var Ve2 = ["annotation"];
|
|
143676
143675
|
var We2 = ["annotation"];
|
|
143676
|
+
var Ve2 = ["annotation"];
|
|
143677
143677
|
function Ge2(e488, n470, t481) {
|
|
143678
143678
|
return Ye2.apply(this, arguments);
|
|
143679
143679
|
}
|
|
@@ -144215,8 +144215,8 @@ function Dn(e488) {
|
|
|
144215
144215
|
var t481 = e488.size, r325 = t481 === undefined ? "medium" : t481, a443 = e488.className;
|
|
144216
144216
|
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" })));
|
|
144217
144217
|
}
|
|
144218
|
-
var
|
|
144219
|
-
function
|
|
144218
|
+
var Wn = import_react5.createContext({ highlighted: [] });
|
|
144219
|
+
function Vn(e488) {
|
|
144220
144220
|
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];
|
|
144221
144221
|
function p28(e489) {
|
|
144222
144222
|
return e489 ? e489.map(function(e490) {
|
|
@@ -144277,7 +144277,7 @@ function Wn(e488) {
|
|
|
144277
144277
|
}, n);
|
|
144278
144278
|
}))();
|
|
144279
144279
|
}, [e488.codeblocks]);
|
|
144280
|
-
var f4 = import_react5.default.createElement(
|
|
144280
|
+
var f4 = import_react5.default.createElement(Wn, { value: { highlighted: l52 || [] } }, e488.children), h6 = (r325 = e488.codeblocks) === null || r325 === undefined ? undefined : r325.every(function(e489) {
|
|
144281
144281
|
return e489.highlighted;
|
|
144282
144282
|
});
|
|
144283
144283
|
return h6 ? f4 : m82 ? import_react5.default.createElement(Dn, null) : f4;
|
|
@@ -144341,7 +144341,7 @@ function Jn(e488) {
|
|
|
144341
144341
|
}(), n470;
|
|
144342
144342
|
}
|
|
144343
144343
|
function Qn(e488) {
|
|
144344
|
-
return import_react5.default.createElement(import_react5.Suspense, { fallback: import_react5.default.createElement(Yn, null) }, import_react5.default.createElement(
|
|
144344
|
+
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));
|
|
144345
144345
|
}
|
|
144346
144346
|
function et2() {
|
|
144347
144347
|
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" }));
|
|
@@ -144374,12 +144374,12 @@ var nt2 = { mark: { name: "mark", Line: function(e488) {
|
|
|
144374
144374
|
return import_react5.default.createElement(Qn.Bg, e488);
|
|
144375
144375
|
} }, lineNumbers: { name: "line-numbers", Line: function(e488) {
|
|
144376
144376
|
e488.annotation;
|
|
144377
|
-
var t481 = w2(e488,
|
|
144377
|
+
var t481 = w2(e488, We2);
|
|
144378
144378
|
return import_react5.default.createElement(Qn.LineNumber, t481);
|
|
144379
144379
|
} }, diff: { name: "diff", onlyIfAnnotated: true, transform: function(e488) {
|
|
144380
144380
|
return [e488, E4(E4({}, e488), {}, { name: "mark", query: e488.query, diff: true })];
|
|
144381
144381
|
}, Line: function(e488) {
|
|
144382
|
-
var t481 = e488.annotation, r325 = w2(e488,
|
|
144382
|
+
var t481 = e488.annotation, r325 = w2(e488, Ve2);
|
|
144383
144383
|
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 }));
|
|
144384
144384
|
} } };
|
|
144385
144385
|
function tt2(e488) {
|
|
@@ -144411,7 +144411,7 @@ function it2(e488) {
|
|
|
144411
144411
|
return import_react5.default.createElement(Zn, null, import_react5.default.createElement(Qn, { codeblocks: e488.codeblocks, theme: e488.theme }, import_react5.default.createElement(lt2, e488)));
|
|
144412
144412
|
}
|
|
144413
144413
|
function lt2(e488) {
|
|
144414
|
-
var t481, r325, o237 = import_react5.use(
|
|
144414
|
+
var t481, r325, o237 = import_react5.use(Wn).highlighted, i314 = import_react5.useContext(at3);
|
|
144415
144415
|
if (e488.kind === "secondary")
|
|
144416
144416
|
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] }));
|
|
144417
144417
|
typeof e488.size == "string" ? r325 = e488.size : typeof i314.scroll != "boolean" || i314.scroll || (r325 = "full");
|
|
@@ -185937,7 +185937,7 @@ function convertToPrettyString(message) {
|
|
|
185937
185937
|
lines.push(` Call ID: ${tc.id}`);
|
|
185938
185938
|
lines.push(" Args:");
|
|
185939
185939
|
for (const [key, value] of Object.entries(tc.args))
|
|
185940
|
-
lines.push(` ${key}: ${value}`);
|
|
185940
|
+
lines.push(` ${key}: ${typeof value === "object" ? JSON.stringify(value) : value}`);
|
|
185941
185941
|
}
|
|
185942
185942
|
}
|
|
185943
185943
|
}
|
|
@@ -187877,7 +187877,7 @@ var BaseCallbackHandler = class extends BaseCallbackHandlerMethodsClass {
|
|
|
187877
187877
|
static fromMethods(methods) {
|
|
187878
187878
|
|
|
187879
187879
|
class Handler extends BaseCallbackHandler {
|
|
187880
|
-
name =
|
|
187880
|
+
name = v7();
|
|
187881
187881
|
constructor() {
|
|
187882
187882
|
super();
|
|
187883
187883
|
Object.assign(this, methods);
|
|
@@ -187966,7 +187966,7 @@ function uuid7FromTime(timestamp2) {
|
|
|
187966
187966
|
const msecs = typeof timestamp2 === "string" ? Date.parse(timestamp2) : timestamp2;
|
|
187967
187967
|
return v7({ msecs, seq: 0 });
|
|
187968
187968
|
}
|
|
187969
|
-
var __version__ = "0.3.
|
|
187969
|
+
var __version__ = "0.3.87";
|
|
187970
187970
|
var globalEnv;
|
|
187971
187971
|
var isBrowser2 = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
187972
187972
|
var isWebWorker2 = () => typeof globalThis === "object" && globalThis.constructor && globalThis.constructor.name === "DedicatedWorkerGlobalScope";
|
|
@@ -189117,7 +189117,10 @@ function replaceGetterValues(replacer) {
|
|
|
189117
189117
|
return replacer.call(this, key, val);
|
|
189118
189118
|
};
|
|
189119
189119
|
}
|
|
189120
|
-
function mergeRuntimeEnvIntoRun(run, cachedEnvVars) {
|
|
189120
|
+
function mergeRuntimeEnvIntoRun(run, cachedEnvVars, omitTracedRuntimeInfo) {
|
|
189121
|
+
if (omitTracedRuntimeInfo) {
|
|
189122
|
+
return run;
|
|
189123
|
+
}
|
|
189121
189124
|
const runtimeEnv = getRuntimeEnvironment2();
|
|
189122
189125
|
const envVars = cachedEnvVars ?? getLangSmithEnvVarsMetadata();
|
|
189123
189126
|
const extra = run.extra ?? {};
|
|
@@ -189337,6 +189340,12 @@ class Client {
|
|
|
189337
189340
|
writable: true,
|
|
189338
189341
|
value: undefined
|
|
189339
189342
|
});
|
|
189343
|
+
Object.defineProperty(this, "omitTracedRuntimeInfo", {
|
|
189344
|
+
enumerable: true,
|
|
189345
|
+
configurable: true,
|
|
189346
|
+
writable: true,
|
|
189347
|
+
value: undefined
|
|
189348
|
+
});
|
|
189340
189349
|
Object.defineProperty(this, "tracingSampleRate", {
|
|
189341
189350
|
enumerable: true,
|
|
189342
189351
|
configurable: true,
|
|
@@ -189492,6 +189501,7 @@ class Client {
|
|
|
189492
189501
|
});
|
|
189493
189502
|
this.hideInputs = config2.hideInputs ?? config2.anonymizer ?? defaultConfig.hideInputs;
|
|
189494
189503
|
this.hideOutputs = config2.hideOutputs ?? config2.anonymizer ?? defaultConfig.hideOutputs;
|
|
189504
|
+
this.omitTracedRuntimeInfo = config2.omitTracedRuntimeInfo ?? false;
|
|
189495
189505
|
this.autoBatchTracing = config2.autoBatchTracing ?? this.autoBatchTracing;
|
|
189496
189506
|
this.autoBatchQueue = new AutoBatchQueue(maxMemory);
|
|
189497
189507
|
this.blockOnRootRunFinalization = config2.blockOnRootRunFinalization ?? this.blockOnRootRunFinalization;
|
|
@@ -189822,7 +189832,7 @@ class Client {
|
|
|
189822
189832
|
async processRunOperation(item) {
|
|
189823
189833
|
clearTimeout(this.autoBatchTimeout);
|
|
189824
189834
|
this.autoBatchTimeout = undefined;
|
|
189825
|
-
item.item = mergeRuntimeEnvIntoRun(item.item, this.cachedLSEnvVarsForMetadata);
|
|
189835
|
+
item.item = mergeRuntimeEnvIntoRun(item.item, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
|
|
189826
189836
|
const itemPromise = this.autoBatchQueue.push(item);
|
|
189827
189837
|
if (this.manualFlushMode) {
|
|
189828
189838
|
return itemPromise;
|
|
@@ -189937,7 +189947,7 @@ class Client {
|
|
|
189937
189947
|
}).catch(console.error);
|
|
189938
189948
|
return;
|
|
189939
189949
|
}
|
|
189940
|
-
const mergedRunCreateParam = mergeRuntimeEnvIntoRun(runCreate, this.cachedLSEnvVarsForMetadata);
|
|
189950
|
+
const mergedRunCreateParam = mergeRuntimeEnvIntoRun(runCreate, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
|
|
189941
189951
|
if (options?.apiKey !== undefined) {
|
|
189942
189952
|
headers["x-api-key"] = options.apiKey;
|
|
189943
189953
|
}
|
|
@@ -191425,6 +191435,39 @@ Message: ${Array.isArray(result.detail) ? result.detail.join(`
|
|
|
191425
191435
|
return res;
|
|
191426
191436
|
});
|
|
191427
191437
|
}
|
|
191438
|
+
async deleteExamples(exampleIds, options) {
|
|
191439
|
+
exampleIds.forEach((id) => assertUuid(id));
|
|
191440
|
+
if (options?.hardDelete) {
|
|
191441
|
+
const path5 = this._getPlatformEndpointPath("datasets/examples/delete");
|
|
191442
|
+
await this.caller.call(async () => {
|
|
191443
|
+
const res = await this._fetch(`${this.apiUrl}${path5}`, {
|
|
191444
|
+
method: "POST",
|
|
191445
|
+
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
191446
|
+
body: JSON.stringify({
|
|
191447
|
+
example_ids: exampleIds,
|
|
191448
|
+
hard_delete: true
|
|
191449
|
+
}),
|
|
191450
|
+
signal: AbortSignal.timeout(this.timeout_ms),
|
|
191451
|
+
...this.fetchOptions
|
|
191452
|
+
});
|
|
191453
|
+
await raiseForStatus(res, "hard delete examples", true);
|
|
191454
|
+
return res;
|
|
191455
|
+
});
|
|
191456
|
+
} else {
|
|
191457
|
+
const params2 = new URLSearchParams;
|
|
191458
|
+
exampleIds.forEach((id) => params2.append("example_ids", id));
|
|
191459
|
+
await this.caller.call(async () => {
|
|
191460
|
+
const res = await this._fetch(`${this.apiUrl}/examples?${params2.toString()}`, {
|
|
191461
|
+
method: "DELETE",
|
|
191462
|
+
headers: this.headers,
|
|
191463
|
+
signal: AbortSignal.timeout(this.timeout_ms),
|
|
191464
|
+
...this.fetchOptions
|
|
191465
|
+
});
|
|
191466
|
+
await raiseForStatus(res, "delete examples", true);
|
|
191467
|
+
return res;
|
|
191468
|
+
});
|
|
191469
|
+
}
|
|
191470
|
+
}
|
|
191428
191471
|
async updateExample(exampleIdOrUpdate, update) {
|
|
191429
191472
|
let exampleId;
|
|
191430
191473
|
if (update) {
|
|
@@ -193233,7 +193276,8 @@ function isCallbackManagerLike(x4) {
|
|
|
193233
193276
|
return typeof x4 === "object" && x4 != null && Array.isArray(x4.handlers);
|
|
193234
193277
|
}
|
|
193235
193278
|
function isRunnableConfigLike(x4) {
|
|
193236
|
-
|
|
193279
|
+
const callbacks = x4?.callbacks;
|
|
193280
|
+
return x4 != null && typeof callbacks === "object" && (containsLangChainTracerLike(callbacks?.handlers) || containsLangChainTracerLike(callbacks));
|
|
193237
193281
|
}
|
|
193238
193282
|
function _getWriteReplicasFromEnv() {
|
|
193239
193283
|
const envVar = getEnvironmentVariable2("LANGSMITH_RUNS_ENDPOINTS");
|
|
@@ -193373,7 +193417,7 @@ ${error2.stack}` : "");
|
|
|
193373
193417
|
const { dottedOrder: currentDottedOrder, microsecondPrecisionDatestring } = convertToDottedOrderFormat(new Date(run.start_time).getTime(), run.id, run.execution_order);
|
|
193374
193418
|
const storedRun = { ...run };
|
|
193375
193419
|
const parentRun = this.getRunById(storedRun.parent_run_id);
|
|
193376
|
-
if (storedRun.parent_run_id !== undefined)
|
|
193420
|
+
if (storedRun.parent_run_id !== undefined)
|
|
193377
193421
|
if (parentRun) {
|
|
193378
193422
|
this._addChildRun(parentRun, storedRun);
|
|
193379
193423
|
parentRun.child_execution_order = Math.max(parentRun.child_execution_order, storedRun.child_execution_order);
|
|
@@ -193382,8 +193426,9 @@ ${error2.stack}` : "");
|
|
|
193382
193426
|
storedRun.dotted_order = [parentRun.dotted_order, currentDottedOrder].join(".");
|
|
193383
193427
|
storedRun._serialized_start_time = microsecondPrecisionDatestring;
|
|
193384
193428
|
}
|
|
193385
|
-
}
|
|
193386
|
-
|
|
193429
|
+
} else
|
|
193430
|
+
storedRun.parent_run_id = undefined;
|
|
193431
|
+
else {
|
|
193387
193432
|
storedRun.trace_id = storedRun.id;
|
|
193388
193433
|
storedRun.dotted_order = currentDottedOrder;
|
|
193389
193434
|
storedRun._serialized_start_time = microsecondPrecisionDatestring;
|
|
@@ -194309,7 +194354,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
194309
194354
|
}
|
|
194310
194355
|
async handleLLMStart(llm, prompts, runId = undefined, _parentRunId = undefined, extraParams = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
194311
194356
|
return Promise.all(prompts.map(async (prompt, idx) => {
|
|
194312
|
-
const runId_ = idx === 0 && runId ? runId :
|
|
194357
|
+
const runId_ = idx === 0 && runId ? runId : v7();
|
|
194313
194358
|
await Promise.all(this.handlers.map((handler) => {
|
|
194314
194359
|
if (handler.ignoreLLM)
|
|
194315
194360
|
return;
|
|
@@ -194331,7 +194376,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
194331
194376
|
}
|
|
194332
194377
|
async handleChatModelStart(llm, messages, runId = undefined, _parentRunId = undefined, extraParams = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
194333
194378
|
return Promise.all(messages.map(async (messageGroup, idx) => {
|
|
194334
|
-
const runId_ = idx === 0 && runId ? runId :
|
|
194379
|
+
const runId_ = idx === 0 && runId ? runId : v7();
|
|
194335
194380
|
await Promise.all(this.handlers.map((handler) => {
|
|
194336
194381
|
if (handler.ignoreLLM)
|
|
194337
194382
|
return;
|
|
@@ -194356,7 +194401,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
194356
194401
|
return new CallbackManagerForLLMRun(runId_, this.handlers, this.inheritableHandlers, this.tags, this.inheritableTags, this.metadata, this.inheritableMetadata, this._parentRunId);
|
|
194357
194402
|
}));
|
|
194358
194403
|
}
|
|
194359
|
-
async handleChainStart(chain, inputs, runId =
|
|
194404
|
+
async handleChainStart(chain, inputs, runId = v7(), runType = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
194360
194405
|
await Promise.all(this.handlers.map((handler) => {
|
|
194361
194406
|
if (handler.ignoreChain)
|
|
194362
194407
|
return;
|
|
@@ -194375,7 +194420,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
194375
194420
|
}));
|
|
194376
194421
|
return new CallbackManagerForChainRun(runId, this.handlers, this.inheritableHandlers, this.tags, this.inheritableTags, this.metadata, this.inheritableMetadata, this._parentRunId);
|
|
194377
194422
|
}
|
|
194378
|
-
async handleToolStart(tool, input, runId =
|
|
194423
|
+
async handleToolStart(tool, input, runId = v7(), _parentRunId = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
194379
194424
|
await Promise.all(this.handlers.map((handler) => {
|
|
194380
194425
|
if (handler.ignoreAgent)
|
|
194381
194426
|
return;
|
|
@@ -194394,7 +194439,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
194394
194439
|
}));
|
|
194395
194440
|
return new CallbackManagerForToolRun(runId, this.handlers, this.inheritableHandlers, this.tags, this.inheritableTags, this.metadata, this.inheritableMetadata, this._parentRunId);
|
|
194396
194441
|
}
|
|
194397
|
-
async handleRetrieverStart(retriever, query, runId =
|
|
194442
|
+
async handleRetrieverStart(retriever, query, runId = v7(), _parentRunId = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
194398
194443
|
await Promise.all(this.handlers.map((handler) => {
|
|
194399
194444
|
if (handler.ignoreRetriever)
|
|
194400
194445
|
return;
|
|
@@ -194492,7 +194537,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
194492
194537
|
static fromHandlers(handlers) {
|
|
194493
194538
|
|
|
194494
194539
|
class Handler extends BaseCallbackHandler {
|
|
194495
|
-
name =
|
|
194540
|
+
name = v7();
|
|
194496
194541
|
constructor() {
|
|
194497
194542
|
super();
|
|
194498
194543
|
Object.assign(this, handlers);
|
|
@@ -194745,7 +194790,12 @@ function ensureConfig(config2) {
|
|
|
194745
194790
|
if (empty2.timeout !== undefined) {
|
|
194746
194791
|
if (empty2.timeout <= 0)
|
|
194747
194792
|
throw new Error("Timeout must be a positive number");
|
|
194748
|
-
const
|
|
194793
|
+
const originalTimeoutMs = empty2.timeout;
|
|
194794
|
+
const timeoutSignal = AbortSignal.timeout(originalTimeoutMs);
|
|
194795
|
+
if (!empty2.metadata)
|
|
194796
|
+
empty2.metadata = {};
|
|
194797
|
+
if (empty2.metadata.timeoutMs === undefined)
|
|
194798
|
+
empty2.metadata.timeoutMs = originalTimeoutMs;
|
|
194749
194799
|
if (empty2.signal !== undefined) {
|
|
194750
194800
|
if ("any" in AbortSignal)
|
|
194751
194801
|
empty2.signal = AbortSignal.any([empty2.signal, timeoutSignal]);
|
|
@@ -195123,12 +195173,19 @@ __export22(core_exports, {
|
|
|
195123
195173
|
});
|
|
195124
195174
|
var JsonPatchError = PatchError;
|
|
195125
195175
|
var deepClone = _deepClone;
|
|
195176
|
+
function isDangerousKey(key) {
|
|
195177
|
+
return Object.getOwnPropertyNames(Object.prototype).includes(key);
|
|
195178
|
+
}
|
|
195126
195179
|
var objOps = {
|
|
195127
195180
|
add: function(obj, key, document4) {
|
|
195181
|
+
if (isDangerousKey(key))
|
|
195182
|
+
throw new TypeError("JSON-Patch: modifying `__proto__`, `constructor`, or `prototype` prop is banned for security reasons");
|
|
195128
195183
|
obj[key] = this.value;
|
|
195129
195184
|
return { newDocument: document4 };
|
|
195130
195185
|
},
|
|
195131
195186
|
remove: function(obj, key, document4) {
|
|
195187
|
+
if (isDangerousKey(key))
|
|
195188
|
+
throw new TypeError("JSON-Patch: modifying `__proto__`, `constructor`, or `prototype` prop is banned for security reasons");
|
|
195132
195189
|
var removed = obj[key];
|
|
195133
195190
|
delete obj[key];
|
|
195134
195191
|
return {
|
|
@@ -195137,6 +195194,8 @@ var objOps = {
|
|
|
195137
195194
|
};
|
|
195138
195195
|
},
|
|
195139
195196
|
replace: function(obj, key, document4) {
|
|
195197
|
+
if (isDangerousKey(key))
|
|
195198
|
+
throw new TypeError("JSON-Patch: modifying `__proto__`, `constructor`, or `prototype` prop is banned for security reasons");
|
|
195140
195199
|
var removed = obj[key];
|
|
195141
195200
|
obj[key] = this.value;
|
|
195142
195201
|
return {
|
|
@@ -206535,7 +206594,7 @@ function interopZodTransformInputSchemaImpl(schema2, recursive, cache) {
|
|
|
206535
206594
|
outputSchema = interopZodTransformInputSchemaImpl(schema2._zod.def.in, recursive, cache);
|
|
206536
206595
|
if (recursive) {
|
|
206537
206596
|
if (isZodObjectV4(outputSchema)) {
|
|
206538
|
-
const outputShape =
|
|
206597
|
+
const outputShape = {};
|
|
206539
206598
|
for (const [key, keySchema] of Object.entries(outputSchema._zod.def.shape))
|
|
206540
206599
|
outputShape[key] = interopZodTransformInputSchemaImpl(keySchema, recursive, cache);
|
|
206541
206600
|
outputSchema = clone2(outputSchema, {
|
|
@@ -206658,16 +206717,24 @@ graph TD;
|
|
|
206658
206717
|
edgeGroups[commonPrefix].push(edge);
|
|
206659
206718
|
}
|
|
206660
206719
|
const seenSubgraphs = /* @__PURE__ */ new Set;
|
|
206720
|
+
function sortPrefixesByDepth(prefixes) {
|
|
206721
|
+
return [...prefixes].sort((a443, b8) => {
|
|
206722
|
+
return a443.split(":").length - b8.split(":").length;
|
|
206723
|
+
});
|
|
206724
|
+
}
|
|
206661
206725
|
function addSubgraph(edges$1, prefix) {
|
|
206662
206726
|
const selfLoop = edges$1.length === 1 && edges$1[0].source === edges$1[0].target;
|
|
206663
206727
|
if (prefix && !selfLoop) {
|
|
206664
206728
|
const subgraph = prefix.split(":").pop();
|
|
206665
|
-
if (seenSubgraphs.has(
|
|
206666
|
-
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.`);
|
|
206667
|
-
seenSubgraphs.add(
|
|
206729
|
+
if (seenSubgraphs.has(prefix))
|
|
206730
|
+
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.`);
|
|
206731
|
+
seenSubgraphs.add(prefix);
|
|
206668
206732
|
mermaidGraph += ` subgraph ${subgraph}
|
|
206669
206733
|
`;
|
|
206670
206734
|
}
|
|
206735
|
+
const nestedPrefixes = sortPrefixesByDepth(Object.keys(edgeGroups).filter((nestedPrefix) => nestedPrefix.startsWith(`${prefix}:`) && nestedPrefix !== prefix && nestedPrefix.split(":").length === prefix.split(":").length + 1));
|
|
206736
|
+
for (const nestedPrefix of nestedPrefixes)
|
|
206737
|
+
addSubgraph(edgeGroups[nestedPrefix], nestedPrefix);
|
|
206671
206738
|
for (const edge of edges$1) {
|
|
206672
206739
|
const { source, target, data, conditional } = edge;
|
|
206673
206740
|
let edgeLabel = "";
|
|
@@ -206682,9 +206749,6 @@ graph TD;
|
|
|
206682
206749
|
mermaidGraph += ` ${_escapeNodeLabel(source)}${edgeLabel}${_escapeNodeLabel(target)};
|
|
206683
206750
|
`;
|
|
206684
206751
|
}
|
|
206685
|
-
for (const nestedPrefix in edgeGroups)
|
|
206686
|
-
if (nestedPrefix.startsWith(`${prefix}:`) && nestedPrefix !== prefix)
|
|
206687
|
-
addSubgraph(edgeGroups[nestedPrefix], nestedPrefix);
|
|
206688
206752
|
if (prefix && !selfLoop)
|
|
206689
206753
|
mermaidGraph += ` end
|
|
206690
206754
|
`;
|
|
@@ -208912,14 +208976,14 @@ __export22(json_schema_exports, {
|
|
|
208912
208976
|
toJsonSchema: () => toJsonSchema,
|
|
208913
208977
|
validatesOnlyStrings: () => validatesOnlyStrings
|
|
208914
208978
|
});
|
|
208915
|
-
function toJsonSchema(schema2) {
|
|
208979
|
+
function toJsonSchema(schema2, params2) {
|
|
208916
208980
|
if (isZodSchemaV4(schema2)) {
|
|
208917
208981
|
const inputSchema = interopZodTransformInputSchema(schema2, true);
|
|
208918
208982
|
if (isZodObjectV4(inputSchema)) {
|
|
208919
208983
|
const strictSchema = interopZodObjectStrict(inputSchema, true);
|
|
208920
|
-
return toJSONSchema3(strictSchema);
|
|
208984
|
+
return toJSONSchema3(strictSchema, params2);
|
|
208921
208985
|
} else
|
|
208922
|
-
return toJSONSchema3(schema2);
|
|
208986
|
+
return toJSONSchema3(schema2, params2);
|
|
208923
208987
|
}
|
|
208924
208988
|
if (isZodSchemaV3(schema2))
|
|
208925
208989
|
return zodToJsonSchema3(schema2);
|
|
@@ -216871,6 +216935,107 @@ function _stringify(content3) {
|
|
|
216871
216935
|
return `${content3}`;
|
|
216872
216936
|
}
|
|
216873
216937
|
}
|
|
216938
|
+
var ComputerUseScreenshotActionSchema = exports_external2.object({ type: exports_external2.literal("screenshot") });
|
|
216939
|
+
var ComputerUseClickActionSchema = exports_external2.object({
|
|
216940
|
+
type: exports_external2.literal("click"),
|
|
216941
|
+
x: exports_external2.number(),
|
|
216942
|
+
y: exports_external2.number(),
|
|
216943
|
+
button: exports_external2.enum([
|
|
216944
|
+
"left",
|
|
216945
|
+
"right",
|
|
216946
|
+
"wheel",
|
|
216947
|
+
"back",
|
|
216948
|
+
"forward"
|
|
216949
|
+
]).default("left")
|
|
216950
|
+
});
|
|
216951
|
+
var ComputerUseDoubleClickActionSchema = exports_external2.object({
|
|
216952
|
+
type: exports_external2.literal("double_click"),
|
|
216953
|
+
x: exports_external2.number(),
|
|
216954
|
+
y: exports_external2.number(),
|
|
216955
|
+
button: exports_external2.enum([
|
|
216956
|
+
"left",
|
|
216957
|
+
"right",
|
|
216958
|
+
"wheel",
|
|
216959
|
+
"back",
|
|
216960
|
+
"forward"
|
|
216961
|
+
]).default("left")
|
|
216962
|
+
});
|
|
216963
|
+
var ComputerUseDragActionSchema = exports_external2.object({
|
|
216964
|
+
type: exports_external2.literal("drag"),
|
|
216965
|
+
path: exports_external2.array(exports_external2.object({
|
|
216966
|
+
x: exports_external2.number(),
|
|
216967
|
+
y: exports_external2.number()
|
|
216968
|
+
}))
|
|
216969
|
+
});
|
|
216970
|
+
var ComputerUseKeypressActionSchema = exports_external2.object({
|
|
216971
|
+
type: exports_external2.literal("keypress"),
|
|
216972
|
+
keys: exports_external2.array(exports_external2.string())
|
|
216973
|
+
});
|
|
216974
|
+
var ComputerUseMoveActionSchema = exports_external2.object({
|
|
216975
|
+
type: exports_external2.literal("move"),
|
|
216976
|
+
x: exports_external2.number(),
|
|
216977
|
+
y: exports_external2.number()
|
|
216978
|
+
});
|
|
216979
|
+
var ComputerUseScrollActionSchema = exports_external2.object({
|
|
216980
|
+
type: exports_external2.literal("scroll"),
|
|
216981
|
+
x: exports_external2.number(),
|
|
216982
|
+
y: exports_external2.number(),
|
|
216983
|
+
scroll_x: exports_external2.number(),
|
|
216984
|
+
scroll_y: exports_external2.number()
|
|
216985
|
+
});
|
|
216986
|
+
var ComputerUseTypeActionSchema = exports_external2.object({
|
|
216987
|
+
type: exports_external2.literal("type"),
|
|
216988
|
+
text: exports_external2.string()
|
|
216989
|
+
});
|
|
216990
|
+
var ComputerUseWaitActionSchema = exports_external2.object({
|
|
216991
|
+
type: exports_external2.literal("wait"),
|
|
216992
|
+
duration: exports_external2.number().optional()
|
|
216993
|
+
});
|
|
216994
|
+
var ComputerUseActionUnionSchema = exports_external2.discriminatedUnion("type", [
|
|
216995
|
+
ComputerUseScreenshotActionSchema,
|
|
216996
|
+
ComputerUseClickActionSchema,
|
|
216997
|
+
ComputerUseDoubleClickActionSchema,
|
|
216998
|
+
ComputerUseDragActionSchema,
|
|
216999
|
+
ComputerUseKeypressActionSchema,
|
|
217000
|
+
ComputerUseMoveActionSchema,
|
|
217001
|
+
ComputerUseScrollActionSchema,
|
|
217002
|
+
ComputerUseTypeActionSchema,
|
|
217003
|
+
ComputerUseWaitActionSchema
|
|
217004
|
+
]);
|
|
217005
|
+
var ComputerUseActionSchema = exports_external2.object({ action: ComputerUseActionUnionSchema });
|
|
217006
|
+
var LocalShellExecActionSchema = exports_external2.object({
|
|
217007
|
+
type: exports_external2.literal("exec"),
|
|
217008
|
+
command: exports_external2.array(exports_external2.string()),
|
|
217009
|
+
env: exports_external2.record(exports_external2.string(), exports_external2.string()).optional(),
|
|
217010
|
+
working_directory: exports_external2.string().optional(),
|
|
217011
|
+
timeout_ms: exports_external2.number().optional(),
|
|
217012
|
+
user: exports_external2.string().optional()
|
|
217013
|
+
});
|
|
217014
|
+
var LocalShellActionSchema = exports_external2.discriminatedUnion("type", [LocalShellExecActionSchema]);
|
|
217015
|
+
var ShellActionSchema = exports_external2.object({
|
|
217016
|
+
commands: exports_external2.array(exports_external2.string()).describe("Array of shell commands to execute"),
|
|
217017
|
+
timeout_ms: exports_external2.number().optional().describe("Optional timeout in milliseconds for the commands"),
|
|
217018
|
+
max_output_length: exports_external2.number().optional().describe("Optional maximum number of characters to return from each command")
|
|
217019
|
+
});
|
|
217020
|
+
var ApplyPatchCreateFileOperationSchema = exports_external2.object({
|
|
217021
|
+
type: exports_external2.literal("create_file"),
|
|
217022
|
+
path: exports_external2.string(),
|
|
217023
|
+
diff: exports_external2.string()
|
|
217024
|
+
});
|
|
217025
|
+
var ApplyPatchUpdateFileOperationSchema = exports_external2.object({
|
|
217026
|
+
type: exports_external2.literal("update_file"),
|
|
217027
|
+
path: exports_external2.string(),
|
|
217028
|
+
diff: exports_external2.string()
|
|
217029
|
+
});
|
|
217030
|
+
var ApplyPatchDeleteFileOperationSchema = exports_external2.object({
|
|
217031
|
+
type: exports_external2.literal("delete_file"),
|
|
217032
|
+
path: exports_external2.string()
|
|
217033
|
+
});
|
|
217034
|
+
var ApplyPatchOperationSchema = exports_external2.discriminatedUnion("type", [
|
|
217035
|
+
ApplyPatchCreateFileOperationSchema,
|
|
217036
|
+
ApplyPatchUpdateFileOperationSchema,
|
|
217037
|
+
ApplyPatchDeleteFileOperationSchema
|
|
217038
|
+
]);
|
|
216874
217039
|
var Document = class {
|
|
216875
217040
|
pageContent;
|
|
216876
217041
|
metadata;
|