@xyd-js/mcp 0.0.0-build-ba549ac-20251203173500 → 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 +1138 -752
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -24600,7 +24600,7 @@ var init_solarized_light = __esm(() => {
|
|
|
24600
24600
|
o114 = { name: e238, tokenColors: t234, colors: n230, semanticHighlighting: true };
|
|
24601
24601
|
});
|
|
24602
24602
|
|
|
24603
|
-
// ../../node_modules/.pnpm/react@19.2.
|
|
24603
|
+
// ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js
|
|
24604
24604
|
var require_react_development = __commonJS((exports, module) => {
|
|
24605
24605
|
(function() {
|
|
24606
24606
|
function defineDeprecationWarning(methodName, info) {
|
|
@@ -25418,12 +25418,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
25418
25418
|
exports.useTransition = function() {
|
|
25419
25419
|
return resolveDispatcher().useTransition();
|
|
25420
25420
|
};
|
|
25421
|
-
exports.version = "19.2.
|
|
25421
|
+
exports.version = "19.2.3";
|
|
25422
25422
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
25423
25423
|
})();
|
|
25424
25424
|
});
|
|
25425
25425
|
|
|
25426
|
-
// ../../node_modules/.pnpm/react@19.2.
|
|
25426
|
+
// ../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js
|
|
25427
25427
|
var require_react = __commonJS((exports, module) => {
|
|
25428
25428
|
var react_development = __toESM(require_react_development());
|
|
25429
25429
|
if (false) {} else {
|
|
@@ -25431,7 +25431,7 @@ var require_react = __commonJS((exports, module) => {
|
|
|
25431
25431
|
}
|
|
25432
25432
|
});
|
|
25433
25433
|
|
|
25434
|
-
// ../../node_modules/.pnpm/react@19.2.
|
|
25434
|
+
// ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
25435
25435
|
var require_react_jsx_runtime_development = __commonJS((exports) => {
|
|
25436
25436
|
var React = __toESM(require_react());
|
|
25437
25437
|
(function() {
|
|
@@ -25650,7 +25650,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
25650
25650
|
})();
|
|
25651
25651
|
});
|
|
25652
25652
|
|
|
25653
|
-
// ../../node_modules/.pnpm/react@19.2.
|
|
25653
|
+
// ../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js
|
|
25654
25654
|
var require_jsx_runtime = __commonJS((exports, module) => {
|
|
25655
25655
|
var react_jsx_runtime_development = __toESM(require_react_jsx_runtime_development());
|
|
25656
25656
|
if (false) {} else {
|
|
@@ -25658,7 +25658,7 @@ var require_jsx_runtime = __commonJS((exports, module) => {
|
|
|
25658
25658
|
}
|
|
25659
25659
|
});
|
|
25660
25660
|
|
|
25661
|
-
// ../../node_modules/.pnpm/react-dom@19.2.
|
|
25661
|
+
// ../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom.development.js
|
|
25662
25662
|
var require_react_dom_development = __commonJS((exports) => {
|
|
25663
25663
|
var React = __toESM(require_react());
|
|
25664
25664
|
(function() {
|
|
@@ -25836,12 +25836,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
25836
25836
|
exports.useFormStatus = function() {
|
|
25837
25837
|
return resolveDispatcher().useHostTransitionStatus();
|
|
25838
25838
|
};
|
|
25839
|
-
exports.version = "19.2.
|
|
25839
|
+
exports.version = "19.2.3";
|
|
25840
25840
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
25841
25841
|
})();
|
|
25842
25842
|
});
|
|
25843
25843
|
|
|
25844
|
-
// ../../node_modules/.pnpm/react-dom@19.2.
|
|
25844
|
+
// ../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/index.js
|
|
25845
25845
|
var require_react_dom = __commonJS((exports, module) => {
|
|
25846
25846
|
var react_dom_development = __toESM(require_react_dom_development());
|
|
25847
25847
|
if (false) {} else {
|
|
@@ -25849,7 +25849,7 @@ var require_react_dom = __commonJS((exports, module) => {
|
|
|
25849
25849
|
}
|
|
25850
25850
|
});
|
|
25851
25851
|
|
|
25852
|
-
// ../../node_modules/.pnpm/react-dom@19.2.
|
|
25852
|
+
// ../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js
|
|
25853
25853
|
var require_react_dom_server_legacy_node_development = __commonJS((exports) => {
|
|
25854
25854
|
var React = __toESM(require_react());
|
|
25855
25855
|
var ReactDOM = __toESM(require_react_dom());
|
|
@@ -31507,11 +31507,11 @@ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))
|
|
|
31507
31507
|
exports.renderToString = function(children, options) {
|
|
31508
31508
|
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');
|
|
31509
31509
|
};
|
|
31510
|
-
exports.version = "19.2.
|
|
31510
|
+
exports.version = "19.2.3";
|
|
31511
31511
|
})();
|
|
31512
31512
|
});
|
|
31513
31513
|
|
|
31514
|
-
// ../../node_modules/.pnpm/react-dom@19.2.
|
|
31514
|
+
// ../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom-server.node.development.js
|
|
31515
31515
|
import * as util from "util";
|
|
31516
31516
|
import * as crypto2 from "crypto";
|
|
31517
31517
|
import * as async_hooks from "async_hooks";
|
|
@@ -36224,10 +36224,10 @@ Check the top-level render call using <` + componentName + ">.");
|
|
|
36224
36224
|
}
|
|
36225
36225
|
function ensureCorrectIsomorphicReactVersion() {
|
|
36226
36226
|
var isomorphicReactPackageVersion = React.version;
|
|
36227
|
-
if (isomorphicReactPackageVersion !== "19.2.
|
|
36227
|
+
if (isomorphicReactPackageVersion !== "19.2.3")
|
|
36228
36228
|
throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
36229
36229
|
- react: ` + (isomorphicReactPackageVersion + `
|
|
36230
|
-
- react-dom: 19.2.
|
|
36230
|
+
- react-dom: 19.2.3
|
|
36231
36231
|
Learn more: https://react.dev/warnings/version-mismatch`));
|
|
36232
36232
|
}
|
|
36233
36233
|
function createDrainHandler(destination, request) {
|
|
@@ -37562,7 +37562,7 @@ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))
|
|
|
37562
37562
|
}
|
|
37563
37563
|
};
|
|
37564
37564
|
};
|
|
37565
|
-
exports.version = "19.2.
|
|
37565
|
+
exports.version = "19.2.3";
|
|
37566
37566
|
})();
|
|
37567
37567
|
});
|
|
37568
37568
|
|
|
@@ -42208,7 +42208,7 @@ var init_solarized_light2 = __esm(() => {
|
|
|
42208
42208
|
o234 = { name: e485, tokenColors: t478, colors: n468, semanticHighlighting: true };
|
|
42209
42209
|
});
|
|
42210
42210
|
|
|
42211
|
-
// ../../node_modules/.pnpm/react@19.2.
|
|
42211
|
+
// ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-dev-runtime.development.js
|
|
42212
42212
|
var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
42213
42213
|
var React15 = __toESM(require_react());
|
|
42214
42214
|
(function() {
|
|
@@ -42423,7 +42423,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
42423
42423
|
})();
|
|
42424
42424
|
});
|
|
42425
42425
|
|
|
42426
|
-
// ../../node_modules/.pnpm/react@19.2.
|
|
42426
|
+
// ../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-dev-runtime.js
|
|
42427
42427
|
var require_jsx_dev_runtime = __commonJS((exports, module) => {
|
|
42428
42428
|
var react_jsx_dev_runtime_development = __toESM(require_react_jsx_dev_runtime_development());
|
|
42429
42429
|
if (false) {} else {
|
|
@@ -97655,7 +97655,7 @@ function splitSurroundingWhitespace(content) {
|
|
|
97655
97655
|
// ../xyd-components/dist/coder/themes/classic.js
|
|
97656
97656
|
var t236 = { name: "classic", 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(--syntax15)" } }, { 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(--syntax15)" } }, { name: "Keys (general)", scope: ["meta.property-list meta.property-name", "support.type.property-name", "support.type.map.key", "entity.name.tag.yaml"], settings: { foreground: "var(--syntax15)" } }, { name: "Object Keys", scope: ["meta.object-literal.key", "meta.object-literal.key string.quoted.double", "meta.object-literal.key string.quoted.single", "meta.object-literal.key punctuation.definition.string.begin", "meta.object-literal.key punctuation.definition.string.end", "support.type.property-name.json"], settings: { foreground: "var(--syntax16)" } }, { 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(--syntax24)", 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(--syntax15)" } }, { name: "Variables", 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)" } }, { name: "Keywords", 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)" } }] };
|
|
97657
97657
|
|
|
97658
|
-
// ../../node_modules/.pnpm/react-dom@19.2.
|
|
97658
|
+
// ../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/server.node.js
|
|
97659
97659
|
var react_dom_server_legacy_node_development = __toESM(require_react_dom_server_legacy_node_development(), 1);
|
|
97660
97660
|
var react_dom_server_node_development = __toESM(require_react_dom_server_node_development(), 1);
|
|
97661
97661
|
var l26;
|
|
@@ -97676,10 +97676,10 @@ var $resume = s91.resume;
|
|
|
97676
97676
|
var e487 = __toESM(require_react(), 1);
|
|
97677
97677
|
var import_react5 = __toESM(require_react(), 1);
|
|
97678
97678
|
|
|
97679
|
-
// ../xyd-atlas/dist/VideoGuide-
|
|
97679
|
+
// ../xyd-atlas/dist/VideoGuide-CgDxxfWR-BBrzFJLW.js
|
|
97680
97680
|
var import_react4 = __toESM(require_react(), 1);
|
|
97681
97681
|
|
|
97682
|
-
// ../../node_modules/.pnpm/openux-js@0.0.0-pre.1_react-dom@19.2.
|
|
97682
|
+
// ../../node_modules/.pnpm/openux-js@0.0.0-pre.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/openux-js/dist/index.js
|
|
97683
97683
|
var import_react = __toESM(require_react(), 1);
|
|
97684
97684
|
var UXAnalyticsContext = import_react.createContext(undefined);
|
|
97685
97685
|
var UXNodeContext = import_react.createContext(undefined);
|
|
@@ -97747,14 +97747,14 @@ function collectContext(node) {
|
|
|
97747
97747
|
return [...collectContext(node.parent), { name: node.name, props: node.props }];
|
|
97748
97748
|
}
|
|
97749
97749
|
|
|
97750
|
-
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19.
|
|
97750
|
+
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._vrijsupjqixawruberrfb56pbm/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
97751
97751
|
var React4 = __toESM(require_react(), 1);
|
|
97752
97752
|
var ReactDOM = __toESM(require_react_dom(), 1);
|
|
97753
97753
|
|
|
97754
|
-
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.7_react@19.2.
|
|
97754
|
+
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
97755
97755
|
var React3 = __toESM(require_react(), 1);
|
|
97756
97756
|
|
|
97757
|
-
// ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.7_react@19.2.
|
|
97757
|
+
// ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
97758
97758
|
var React2 = __toESM(require_react(), 1);
|
|
97759
97759
|
function setRef(ref, value) {
|
|
97760
97760
|
if (typeof ref === "function") {
|
|
@@ -97791,7 +97791,7 @@ function useComposedRefs(...refs) {
|
|
|
97791
97791
|
return React2.useCallback(composeRefs(...refs), refs);
|
|
97792
97792
|
}
|
|
97793
97793
|
|
|
97794
|
-
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.7_react@19.2.
|
|
97794
|
+
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
97795
97795
|
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
97796
97796
|
function createSlot(ownerName) {
|
|
97797
97797
|
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
@@ -97875,7 +97875,7 @@ function getElementRef(element) {
|
|
|
97875
97875
|
return element.props.ref || element.ref;
|
|
97876
97876
|
}
|
|
97877
97877
|
|
|
97878
|
-
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19.
|
|
97878
|
+
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._vrijsupjqixawruberrfb56pbm/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
97879
97879
|
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
97880
97880
|
var NODES = [
|
|
97881
97881
|
"a",
|
|
@@ -97910,7 +97910,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
97910
97910
|
return { ...primitive, [node]: Node2 };
|
|
97911
97911
|
}, {});
|
|
97912
97912
|
|
|
97913
|
-
// ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.7_react@19.2.
|
|
97913
|
+
// ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
97914
97914
|
var React5 = __toESM(require_react(), 1);
|
|
97915
97915
|
var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
|
|
97916
97916
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
@@ -97971,7 +97971,7 @@ function composeContextScopes(...scopes) {
|
|
|
97971
97971
|
return createScope;
|
|
97972
97972
|
}
|
|
97973
97973
|
|
|
97974
|
-
// ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@
|
|
97974
|
+
// ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19_3vqfgunzp4tkkuqnqgefg7qsai/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
97975
97975
|
var import_react2 = __toESM(require_react(), 1);
|
|
97976
97976
|
var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
|
|
97977
97977
|
var import_react3 = __toESM(require_react(), 1);
|
|
@@ -98344,14 +98344,14 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
98344
98344
|
};
|
|
98345
98345
|
}
|
|
98346
98346
|
|
|
98347
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.7_react@19.2.
|
|
98347
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
98348
98348
|
var React8 = __toESM(require_react(), 1);
|
|
98349
98349
|
|
|
98350
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.7_react@19.2.
|
|
98350
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
98351
98351
|
var React7 = __toESM(require_react(), 1);
|
|
98352
98352
|
var useLayoutEffect2 = globalThis?.document ? React7.useLayoutEffect : () => {};
|
|
98353
98353
|
|
|
98354
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.7_react@19.2.
|
|
98354
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
98355
98355
|
var React23 = __toESM(require_react(), 1);
|
|
98356
98356
|
var useInsertionEffect = React8[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
98357
98357
|
function useControllableState({
|
|
@@ -98413,7 +98413,7 @@ function isFunction(value) {
|
|
|
98413
98413
|
}
|
|
98414
98414
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
98415
98415
|
|
|
98416
|
-
// ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19.
|
|
98416
|
+
// ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19.2_g7nvzcflnhogkdp32witcuayfy/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
98417
98417
|
var React24 = __toESM(require_react(), 1);
|
|
98418
98418
|
var React9 = __toESM(require_react(), 1);
|
|
98419
98419
|
"use client";
|
|
@@ -98540,7 +98540,7 @@ function getElementRef2(element) {
|
|
|
98540
98540
|
return element.props.ref || element.ref;
|
|
98541
98541
|
}
|
|
98542
98542
|
|
|
98543
|
-
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.7_react@19.2.
|
|
98543
|
+
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
98544
98544
|
var React10 = __toESM(require_react(), 1);
|
|
98545
98545
|
var useReactId = React10[" useId ".trim().toString()] || (() => {
|
|
98546
98546
|
return;
|
|
@@ -98555,7 +98555,7 @@ function useId(deterministicId) {
|
|
|
98555
98555
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
98556
98556
|
}
|
|
98557
98557
|
|
|
98558
|
-
// ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.7_react@19.2.
|
|
98558
|
+
// ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
98559
98559
|
var React11 = __toESM(require_react(), 1);
|
|
98560
98560
|
var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
|
|
98561
98561
|
var DirectionContext = React11.createContext(undefined);
|
|
@@ -98564,7 +98564,7 @@ function useDirection(localDir) {
|
|
|
98564
98564
|
return localDir || globalDir || "ltr";
|
|
98565
98565
|
}
|
|
98566
98566
|
|
|
98567
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.7_react@19.2.
|
|
98567
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
98568
98568
|
var React12 = __toESM(require_react(), 1);
|
|
98569
98569
|
function useCallbackRef(callback) {
|
|
98570
98570
|
const callbackRef = React12.useRef(callback);
|
|
@@ -98574,7 +98574,7 @@ function useCallbackRef(callback) {
|
|
|
98574
98574
|
return React12.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
98575
98575
|
}
|
|
98576
98576
|
|
|
98577
|
-
// ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.7__@types+
|
|
98577
|
+
// ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react_olorlwzqifzjwjsjwfg7df3ffe/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
98578
98578
|
var React13 = __toESM(require_react(), 1);
|
|
98579
98579
|
var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
|
|
98580
98580
|
"use client";
|
|
@@ -98769,7 +98769,7 @@ function wrapArray(array, startIndex) {
|
|
|
98769
98769
|
var Root = RovingFocusGroup;
|
|
98770
98770
|
var Item = RovingFocusGroupItem;
|
|
98771
98771
|
|
|
98772
|
-
// ../../node_modules/.pnpm/@radix-ui+react-tabs@1.1.13_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19.2.
|
|
98772
|
+
// ../../node_modules/.pnpm/@radix-ui+react-tabs@1.1.13_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19.2.7__fbkxvc433yjydgxfag37xlk56m/node_modules/@radix-ui/react-tabs/dist/index.mjs
|
|
98773
98773
|
var exports_dist = {};
|
|
98774
98774
|
__export(exports_dist, {
|
|
98775
98775
|
createTabsScope: () => createTabsScope,
|
|
@@ -98932,7 +98932,7 @@ var List = TabsList;
|
|
|
98932
98932
|
var Trigger = TabsTrigger;
|
|
98933
98933
|
var Content = TabsContent;
|
|
98934
98934
|
|
|
98935
|
-
// ../../node_modules/.pnpm/lucide-react@0.447.0_react@19.2.
|
|
98935
|
+
// ../../node_modules/.pnpm/lucide-react@0.447.0_react@19.2.3/node_modules/lucide-react/dist/cjs/lucide-react.js
|
|
98936
98936
|
var react = __toESM(require_react(), 1);
|
|
98937
98937
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
98938
98938
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
@@ -111566,7 +111566,7 @@ var $ChevronLeft = ChevronLeft;
|
|
|
111566
111566
|
var $ChevronRight = ChevronRight;
|
|
111567
111567
|
var $Copy = Copy;
|
|
111568
111568
|
|
|
111569
|
-
// ../xyd-atlas/dist/VideoGuide-
|
|
111569
|
+
// ../xyd-atlas/dist/VideoGuide-CgDxxfWR-BBrzFJLW.js
|
|
111570
111570
|
function f2(e241, t238) {
|
|
111571
111571
|
(t238 == null || t238 > e241.length) && (t238 = e241.length);
|
|
111572
111572
|
for (var r161 = 0, n232 = Array(t238);r161 < t238; r161++)
|
|
@@ -118645,7 +118645,7 @@ var Pe2 = "a1ln4qwr";
|
|
|
118645
118645
|
function Oe2(e488) {
|
|
118646
118646
|
var t481, r325 = e488.properties;
|
|
118647
118647
|
return import_react5.default.createElement("ul", { className: fe2 }, (t481 = qe2(r325)) === null || t481 === undefined ? undefined : t481.map(function(e489, t482) {
|
|
118648
|
-
var r326, a443 = e489.name, o237 = e489.type, i314 =
|
|
118648
|
+
var r326, a443 = e489.name, o237 = e489.type, i314 = Me2(e489), l52 = ((r326 = e489.ofProperty) === null || r326 === undefined ? undefined : r326.description) || e489.description || "", c105 = Ue2(e489.meta);
|
|
118649
118649
|
return import_react5.default.createElement("atlas-apiref-prop", { className: he2, key: t482 }, a443 || o237 ? import_react5.default.createElement("dl", { className: ye2 }, import_react5.default.createElement(Re2, { property: e489, meta: e489.meta || [] }), import_react5.default.createElement(Ae2, { property: e489 }), import_react5.default.createElement(Le2, { metas: e489.meta || [] })) : null, l52 || c105 ? import_react5.default.createElement("atlas-apiref-propdescription", { className: ge2 }, import_react5.default.createElement(import_react5.default.Fragment, null, import_react5.default.createElement("div", null, l52), import_react5.default.createElement("div", null, Ue2(e489.meta)))) : null, (i314 == null ? undefined : i314.length) > 0 ? import_react5.default.createElement(Te2, { parent: e489, properties: i314 }) : null);
|
|
118650
118650
|
}));
|
|
118651
118651
|
}
|
|
@@ -118705,7 +118705,7 @@ function Le2(e488) {
|
|
|
118705
118705
|
}));
|
|
118706
118706
|
}
|
|
118707
118707
|
function Te2(e488) {
|
|
118708
|
-
var r325, a443 = e488.parent, o237 = e488.properties, i314 = import_react5.useState(false), l52 = S2(i314, 2), c105 = l52[0], u28 = l52[1], s187 = qe2(o237 || []), m82 =
|
|
118708
|
+
var r325, a443 = e488.parent, o237 = e488.properties, i314 = import_react5.useState(false), l52 = S2(i314, 2), c105 = l52[0], u28 = l52[1], s187 = qe2(o237 || []), m82 = ze2(a443), v4 = function() {
|
|
118709
118709
|
var e489;
|
|
118710
118710
|
return ((a443 == null ? undefined : a443.type) !== DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY || ((e489 = a443 == null ? undefined : a443.ofProperty) === null || e489 === undefined ? undefined : e489.type) !== DEFINED_DEFINITION_PROPERTY_TYPE.ENUM) && (a443 == null ? undefined : a443.type) !== DEFINED_DEFINITION_PROPERTY_TYPE.ENUM && s187.every(function(e490) {
|
|
118711
118711
|
var n470, t481;
|
|
@@ -118720,7 +118720,7 @@ function Te2(e488) {
|
|
|
118720
118720
|
return import_react5.default.createElement(import_react5.default.Fragment, null, (s187 == null ? undefined : s187.length) ? import_react5.default.createElement(Fe2, { choiceType: m82, isArgument: p28, onClick: function() {
|
|
118721
118721
|
return u28(!c105);
|
|
118722
118722
|
}, isExpanded: c105 }) : null, import_react5.default.createElement("div", { className: "".concat(xe2, " ").concat(c105 && we2) }, import_react5.default.createElement("div", { className: Ne2 }, import_react5.default.createElement("ul", { role: "list", className: je2 }, s187 == null ? undefined : s187.map(function(e489, t481) {
|
|
118723
|
-
var r326, a444 = e489.name, o238 = e489.type, i315 =
|
|
118723
|
+
var r326, a444 = e489.name, o238 = e489.type, i315 = Me2(e489), l53 = ((r326 = e489.ofProperty) === null || r326 === undefined ? undefined : r326.description) || e489.description || "", c106 = Ue2(e489.meta);
|
|
118724
118724
|
return import_react5.default.createElement("atlas-apiref-prop", { className: Se2, key: t481 }, a444 || o238 ? import_react5.default.createElement("dl", { className: ye2 }, import_react5.default.createElement(Re2, { property: e489, meta: e489.meta || [], parentChoiceType: m82 || !!p28 }), import_react5.default.createElement(Ae2, { property: e489 }), import_react5.default.createElement(Le2, { metas: e489.meta || [] })) : null, l53 || c106 ? import_react5.default.createElement("atlas-apiref-propdescription", { className: ge2 }, import_react5.default.createElement(import_react5.default.Fragment, null, import_react5.default.createElement("div", null, l53), import_react5.default.createElement("div", null, Ue2(e489.meta)))) : null, (i315 == null ? undefined : i315.length) ? import_react5.default.createElement(Te2, { parent: e489, properties: i315 }) : null);
|
|
118725
118725
|
})))));
|
|
118726
118726
|
}
|
|
@@ -118728,13 +118728,13 @@ function Fe2(e488) {
|
|
|
118728
118728
|
var t481 = e488.isExpanded ? "Hide properties" : "Show properties";
|
|
118729
118729
|
return e488.choiceType ? t481 = e488.isExpanded ? "Hide possible types" : "Show possible types" : e488.isArgument && (t481 = e488.isExpanded ? "Hide possible arguments" : "Show possible arguments"), import_react5.default.createElement("button", { "aria-expanded": e488.isExpanded, "aria-controls": "chat/object-usage_table", onClick: e488.onClick, className: Ce2 }, import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 24 24" }, import_react5.default.createElement("path", { fillRule: "evenodd", d: e488.isExpanded ? "M12 8a1 1 0 0 1 .707.293l7 7a1 1 0 0 1-1.414 1.414L12 10.414l-6.293 6.293a1 1 0 0 1-1.414-1.414l7-7A1 1 0 0 1 12 8Z" : "M4.293 8.293a1 1 0 0 1 1.414 0L12 14.586l6.293-6.293a1 1 0 1 1 1.414 1.414l-7 7a1 1 0 0 1-1.414 0l-7-7a1 1 0 0 1 0-1.414Z", clipRule: "evenodd" })), import_react5.default.createElement("span", { className: _e2 }, t481));
|
|
118730
118730
|
}
|
|
118731
|
-
function
|
|
118731
|
+
function ze2(e488) {
|
|
118732
118732
|
var n470;
|
|
118733
|
-
return e488.type === DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY && ((n470 = e488.ofProperty) === null || n470 === undefined ? undefined : n470.type) === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM || (e488.ofProperty ?
|
|
118733
|
+
return e488.type === DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY && ((n470 = e488.ofProperty) === null || n470 === undefined ? undefined : n470.type) === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM || (e488.ofProperty ? ze2(e488.ofProperty) : [DEFINED_DEFINITION_PROPERTY_TYPE.UNION, DEFINED_DEFINITION_PROPERTY_TYPE.XOR, DEFINED_DEFINITION_PROPERTY_TYPE.ENUM].includes(e488.type));
|
|
118734
118734
|
}
|
|
118735
|
-
function
|
|
118735
|
+
function Me2(e488) {
|
|
118736
118736
|
var n470;
|
|
118737
|
-
return ((n470 = e488.properties) === null || n470 === undefined ? undefined : n470.length) ? e488.properties : e488.ofProperty ?
|
|
118737
|
+
return ((n470 = e488.properties) === null || n470 === undefined ? undefined : n470.length) ? e488.properties : e488.ofProperty ? Me2(e488.ofProperty) : [];
|
|
118738
118738
|
}
|
|
118739
118739
|
function qe2(e488) {
|
|
118740
118740
|
return e488.filter(function(e489) {
|
|
@@ -118867,8 +118867,8 @@ function Ue2(e488) {
|
|
|
118867
118867
|
}), d29) : null;
|
|
118868
118868
|
}
|
|
118869
118869
|
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)" } }] };
|
|
118870
|
-
var Ve2 = ["annotation"];
|
|
118871
118870
|
var We2 = ["annotation"];
|
|
118871
|
+
var Ve2 = ["annotation"];
|
|
118872
118872
|
function Ge2(e488, n470, t481) {
|
|
118873
118873
|
return Ye2.apply(this, arguments);
|
|
118874
118874
|
}
|
|
@@ -119303,7 +119303,7 @@ function Tn(e488, n470) {
|
|
|
119303
119303
|
}
|
|
119304
119304
|
function Fn(e488, n470) {
|
|
119305
119305
|
var t481 = e488.findIndex(function(e489) {
|
|
119306
|
-
return
|
|
119306
|
+
return zn(e489) && e489.range[0] < n470 && n470 <= e489.range[1];
|
|
119307
119307
|
});
|
|
119308
119308
|
if (t481 === -1)
|
|
119309
119309
|
return e488;
|
|
@@ -119312,13 +119312,13 @@ function Fn(e488, n470) {
|
|
|
119312
119312
|
e489.range[1] < n470 ? o237.push(e489) : i314.push(e489);
|
|
119313
119313
|
}), [].concat(z2(e488.slice(0, t481)), [B2(B2({}, r325), {}, { lines: o237, range: [r325.range[0], n470 - 1] }), B2(B2({}, r325), {}, { lines: i314, range: [n470, r325.range[1]] })], z2(e488.slice(t481 + 1)));
|
|
119314
119314
|
}
|
|
119315
|
-
function
|
|
119315
|
+
function zn(e488) {
|
|
119316
119316
|
return e488.annotation !== undefined;
|
|
119317
119317
|
}
|
|
119318
|
-
function
|
|
119318
|
+
function Mn(e488) {
|
|
119319
119319
|
var { linesOrGroups: n470, handlers: t481, inlineAnnotations: r325, annotationStack: a443 } = e488, o237 = a443 === undefined ? [] : a443;
|
|
119320
119320
|
return n470.map(function(e489) {
|
|
119321
|
-
return
|
|
119321
|
+
return zn(e489) ? vn.jsx(In, { group: e489, handlers: t481, inlineAnnotations: r325, annotationStack: o237 }, e489.range[0]) : vn.jsx(qn, { line: e489, handlers: t481, inlineAnnotations: r325, annotationStack: o237 }, e489.lineNumber);
|
|
119322
119322
|
});
|
|
119323
119323
|
}
|
|
119324
119324
|
function qn(e488) {
|
|
@@ -119346,7 +119346,7 @@ function qn(e488) {
|
|
|
119346
119346
|
function In(e488) {
|
|
119347
119347
|
var n470, t481 = e488.group, r325 = e488.handlers, a443 = e488.inlineAnnotations, o237 = e488.annotationStack, i314 = t481.annotation, l52 = t481.lines, c105 = i314.name, u28 = (n470 = r325.find(function(e489) {
|
|
119348
119348
|
return e489.name === c105;
|
|
119349
|
-
})) === null || n470 === undefined ? undefined : n470.Block, s187 =
|
|
119349
|
+
})) === null || n470 === undefined ? undefined : n470.Block, s187 = Mn({ linesOrGroups: l52, handlers: r325, inlineAnnotations: a443, annotationStack: [].concat(z2(o237), [i314]) });
|
|
119350
119350
|
return u28 ? vn.jsx(u28, { annotation: i314, children: s187 }) : s187;
|
|
119351
119351
|
}
|
|
119352
119352
|
var Hn = ["code", "handlers"];
|
|
@@ -119404,14 +119404,14 @@ function Un(e488) {
|
|
|
119404
119404
|
t482 = Tn(t482, n471[r326]);
|
|
119405
119405
|
return t482;
|
|
119406
119406
|
}(a443, o237);
|
|
119407
|
-
return
|
|
119407
|
+
return Mn({ linesOrGroups: l52, handlers: t481, inlineAnnotations: i314 });
|
|
119408
119408
|
}
|
|
119409
119409
|
function Dn(e488) {
|
|
119410
119410
|
var t481 = e488.size, r325 = t481 === undefined ? "medium" : t481, a443 = e488.className;
|
|
119411
119411
|
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" })));
|
|
119412
119412
|
}
|
|
119413
|
-
var
|
|
119414
|
-
function
|
|
119413
|
+
var Wn = import_react5.createContext({ highlighted: [] });
|
|
119414
|
+
function Vn(e488) {
|
|
119415
119415
|
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];
|
|
119416
119416
|
function p28(e489) {
|
|
119417
119417
|
return e489 ? e489.map(function(e490) {
|
|
@@ -119472,7 +119472,7 @@ function Wn(e488) {
|
|
|
119472
119472
|
}, n);
|
|
119473
119473
|
}))();
|
|
119474
119474
|
}, [e488.codeblocks]);
|
|
119475
|
-
var f4 = import_react5.default.createElement(
|
|
119475
|
+
var f4 = import_react5.default.createElement(Wn, { value: { highlighted: l52 || [] } }, e488.children), h6 = (r325 = e488.codeblocks) === null || r325 === undefined ? undefined : r325.every(function(e489) {
|
|
119476
119476
|
return e489.highlighted;
|
|
119477
119477
|
});
|
|
119478
119478
|
return h6 ? f4 : m82 ? import_react5.default.createElement(Dn, null) : f4;
|
|
@@ -119536,7 +119536,7 @@ function Jn(e488) {
|
|
|
119536
119536
|
}(), n470;
|
|
119537
119537
|
}
|
|
119538
119538
|
function Qn(e488) {
|
|
119539
|
-
return import_react5.default.createElement(import_react5.Suspense, { fallback: import_react5.default.createElement(Yn, null) }, import_react5.default.createElement(
|
|
119539
|
+
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));
|
|
119540
119540
|
}
|
|
119541
119541
|
function et2() {
|
|
119542
119542
|
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" }));
|
|
@@ -119569,12 +119569,12 @@ var nt2 = { mark: { name: "mark", Line: function(e488) {
|
|
|
119569
119569
|
return import_react5.default.createElement(Qn.Bg, e488);
|
|
119570
119570
|
} }, lineNumbers: { name: "line-numbers", Line: function(e488) {
|
|
119571
119571
|
e488.annotation;
|
|
119572
|
-
var t481 = w2(e488,
|
|
119572
|
+
var t481 = w2(e488, We2);
|
|
119573
119573
|
return import_react5.default.createElement(Qn.LineNumber, t481);
|
|
119574
119574
|
} }, diff: { name: "diff", onlyIfAnnotated: true, transform: function(e488) {
|
|
119575
119575
|
return [e488, E4(E4({}, e488), {}, { name: "mark", query: e488.query, diff: true })];
|
|
119576
119576
|
}, Line: function(e488) {
|
|
119577
|
-
var t481 = e488.annotation, r325 = w2(e488,
|
|
119577
|
+
var t481 = e488.annotation, r325 = w2(e488, Ve2);
|
|
119578
119578
|
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 }));
|
|
119579
119579
|
} } };
|
|
119580
119580
|
function tt2(e488) {
|
|
@@ -119606,7 +119606,7 @@ function it2(e488) {
|
|
|
119606
119606
|
return import_react5.default.createElement(Zn, null, import_react5.default.createElement(Qn, { codeblocks: e488.codeblocks, theme: e488.theme }, import_react5.default.createElement(lt2, e488)));
|
|
119607
119607
|
}
|
|
119608
119608
|
function lt2(e488) {
|
|
119609
|
-
var t481, r325, o237 = import_react5.use(
|
|
119609
|
+
var t481, r325, o237 = import_react5.use(Wn).highlighted, i314 = import_react5.useContext(at3);
|
|
119610
119610
|
if (e488.kind === "secondary")
|
|
119611
119611
|
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] }));
|
|
119612
119612
|
typeof e488.size == "string" ? r325 = e488.size : typeof i314.scroll != "boolean" || i314.scroll || (r325 = "full");
|
|
@@ -155153,7 +155153,7 @@ async function mcpLLMsResources(server, llmsSources) {
|
|
|
155153
155153
|
console.warn("Failed to add llms.txt resources:", error);
|
|
155154
155154
|
}
|
|
155155
155155
|
}
|
|
155156
|
-
// ../../node_modules/.pnpm/@langchain+openai@1.
|
|
155156
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.2.0_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76___ws@8.18.3/node_modules/@langchain/openai/dist/utils/errors.js
|
|
155157
155157
|
function addLangChainErrorFields(error, lc_error_code) {
|
|
155158
155158
|
error.lc_error_code = lc_error_code;
|
|
155159
155159
|
error.message = `${error.message}
|
|
@@ -155163,7 +155163,7 @@ Troubleshooting URL: https://docs.langchain.com/oss/javascript/langchain/errors/
|
|
|
155163
155163
|
return error;
|
|
155164
155164
|
}
|
|
155165
155165
|
|
|
155166
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155166
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/tslib.mjs
|
|
155167
155167
|
function __classPrivateFieldSet(receiver, state, value, kind, f4) {
|
|
155168
155168
|
if (kind === "m")
|
|
155169
155169
|
throw new TypeError("Private method is not writable");
|
|
@@ -155181,7 +155181,7 @@ function __classPrivateFieldGet(receiver, state, kind, f4) {
|
|
|
155181
155181
|
return kind === "m" ? f4 : kind === "a" ? f4.call(receiver) : f4 ? f4.value : state.get(receiver);
|
|
155182
155182
|
}
|
|
155183
155183
|
|
|
155184
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155184
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/utils/uuid.mjs
|
|
155185
155185
|
var uuid4 = function() {
|
|
155186
155186
|
const { crypto: crypto3 } = globalThis;
|
|
155187
155187
|
if (crypto3?.randomUUID) {
|
|
@@ -155193,7 +155193,7 @@ var uuid4 = function() {
|
|
|
155193
155193
|
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c106) => (+c106 ^ randomByte() & 15 >> +c106 / 4).toString(16));
|
|
155194
155194
|
};
|
|
155195
155195
|
|
|
155196
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155196
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/errors.mjs
|
|
155197
155197
|
function isAbortError(err) {
|
|
155198
155198
|
return typeof err === "object" && err !== null && (("name" in err) && err.name === "AbortError" || ("message" in err) && String(err.message).includes("FetchRequestCanceledException"));
|
|
155199
155199
|
}
|
|
@@ -155220,7 +155220,7 @@ var castToError = (err) => {
|
|
|
155220
155220
|
return new Error(err);
|
|
155221
155221
|
};
|
|
155222
155222
|
|
|
155223
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155223
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/core/error.mjs
|
|
155224
155224
|
class OpenAIError extends Error {
|
|
155225
155225
|
}
|
|
155226
155226
|
|
|
@@ -155344,7 +155344,7 @@ class InvalidWebhookSignatureError extends Error {
|
|
|
155344
155344
|
}
|
|
155345
155345
|
}
|
|
155346
155346
|
|
|
155347
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155347
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/utils/values.mjs
|
|
155348
155348
|
var startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
155349
155349
|
var isAbsoluteURL = (url) => {
|
|
155350
155350
|
return startsWithSchemeRegexp.test(url);
|
|
@@ -155387,13 +155387,13 @@ var safeJSON = (text5) => {
|
|
|
155387
155387
|
}
|
|
155388
155388
|
};
|
|
155389
155389
|
|
|
155390
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155390
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/utils/sleep.mjs
|
|
155391
155391
|
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
155392
155392
|
|
|
155393
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155394
|
-
var VERSION = "6.
|
|
155393
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/version.mjs
|
|
155394
|
+
var VERSION = "6.10.0";
|
|
155395
155395
|
|
|
155396
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155396
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/detect-platform.mjs
|
|
155397
155397
|
var isRunningInBrowser = () => {
|
|
155398
155398
|
return typeof window !== "undefined" && typeof window.document !== "undefined" && typeof navigator !== "undefined";
|
|
155399
155399
|
};
|
|
@@ -155522,7 +155522,7 @@ var getPlatformHeaders = () => {
|
|
|
155522
155522
|
return _platformHeaders ?? (_platformHeaders = getPlatformProperties());
|
|
155523
155523
|
};
|
|
155524
155524
|
|
|
155525
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155525
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/shims.mjs
|
|
155526
155526
|
function getDefaultFetch() {
|
|
155527
155527
|
if (typeof fetch !== "undefined") {
|
|
155528
155528
|
return fetch;
|
|
@@ -155593,7 +155593,7 @@ async function CancelReadableStream(stream2) {
|
|
|
155593
155593
|
await cancelPromise;
|
|
155594
155594
|
}
|
|
155595
155595
|
|
|
155596
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155596
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/request-options.mjs
|
|
155597
155597
|
var FallbackEncoder = ({ headers, body }) => {
|
|
155598
155598
|
return {
|
|
155599
155599
|
bodyHeaders: {
|
|
@@ -155603,7 +155603,7 @@ var FallbackEncoder = ({ headers, body }) => {
|
|
|
155603
155603
|
};
|
|
155604
155604
|
};
|
|
155605
155605
|
|
|
155606
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155606
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/qs/formats.mjs
|
|
155607
155607
|
var default_format = "RFC3986";
|
|
155608
155608
|
var default_formatter = (v4) => String(v4);
|
|
155609
155609
|
var formatters = {
|
|
@@ -155612,7 +155612,7 @@ var formatters = {
|
|
|
155612
155612
|
};
|
|
155613
155613
|
var RFC1738 = "RFC1738";
|
|
155614
155614
|
|
|
155615
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155615
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/qs/utils.mjs
|
|
155616
155616
|
var has2 = (obj, key) => (has2 = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty), has2(obj, key));
|
|
155617
155617
|
var hex_table = /* @__PURE__ */ (() => {
|
|
155618
155618
|
const array = [];
|
|
@@ -155684,7 +155684,7 @@ function maybe_map(val, fn2) {
|
|
|
155684
155684
|
return fn2(val);
|
|
155685
155685
|
}
|
|
155686
155686
|
|
|
155687
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155687
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/qs/stringify.mjs
|
|
155688
155688
|
var array_prefix_generators = {
|
|
155689
155689
|
brackets(prefix) {
|
|
155690
155690
|
return String(prefix) + "[]";
|
|
@@ -155911,7 +155911,7 @@ function stringify3(object, opts = {}) {
|
|
|
155911
155911
|
}
|
|
155912
155912
|
return joined.length > 0 ? prefix + joined : "";
|
|
155913
155913
|
}
|
|
155914
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155914
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/utils/bytes.mjs
|
|
155915
155915
|
function concatBytes(buffers) {
|
|
155916
155916
|
let length = 0;
|
|
155917
155917
|
for (const buffer of buffers) {
|
|
@@ -155936,7 +155936,7 @@ function decodeUTF8(bytes) {
|
|
|
155936
155936
|
return (decodeUTF8_ ?? (decoder = new globalThis.TextDecoder, decodeUTF8_ = decoder.decode.bind(decoder)))(bytes);
|
|
155937
155937
|
}
|
|
155938
155938
|
|
|
155939
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
155939
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/decoders/line.mjs
|
|
155940
155940
|
var _LineDecoder_buffer;
|
|
155941
155941
|
var _LineDecoder_carriageReturnIndex;
|
|
155942
155942
|
|
|
@@ -156016,7 +156016,7 @@ function findDoubleNewlineIndex(buffer) {
|
|
|
156016
156016
|
return -1;
|
|
156017
156017
|
}
|
|
156018
156018
|
|
|
156019
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156019
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/utils/log.mjs
|
|
156020
156020
|
var levelNumbers = {
|
|
156021
156021
|
off: 0,
|
|
156022
156022
|
error: 200,
|
|
@@ -156088,7 +156088,7 @@ var formatRequestDetails = (details) => {
|
|
|
156088
156088
|
return details;
|
|
156089
156089
|
};
|
|
156090
156090
|
|
|
156091
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156091
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/core/streaming.mjs
|
|
156092
156092
|
var _Stream_client;
|
|
156093
156093
|
|
|
156094
156094
|
class Stream {
|
|
@@ -156337,7 +156337,7 @@ function partition(str2, delimiter) {
|
|
|
156337
156337
|
return [str2, "", ""];
|
|
156338
156338
|
}
|
|
156339
156339
|
|
|
156340
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156340
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/parse.mjs
|
|
156341
156341
|
async function defaultParseResponse(client, props) {
|
|
156342
156342
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
156343
156343
|
const body = await (async () => {
|
|
@@ -156383,7 +156383,7 @@ function addRequestID(value, response) {
|
|
|
156383
156383
|
});
|
|
156384
156384
|
}
|
|
156385
156385
|
|
|
156386
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156386
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/core/api-promise.mjs
|
|
156387
156387
|
var _APIPromise_client;
|
|
156388
156388
|
|
|
156389
156389
|
class APIPromise extends Promise {
|
|
@@ -156424,7 +156424,7 @@ class APIPromise extends Promise {
|
|
|
156424
156424
|
}
|
|
156425
156425
|
_APIPromise_client = new WeakMap;
|
|
156426
156426
|
|
|
156427
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156427
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/core/pagination.mjs
|
|
156428
156428
|
var _AbstractPage_client;
|
|
156429
156429
|
|
|
156430
156430
|
class AbstractPage {
|
|
@@ -156553,7 +156553,7 @@ class ConversationCursorPage extends AbstractPage {
|
|
|
156553
156553
|
}
|
|
156554
156554
|
}
|
|
156555
156555
|
|
|
156556
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156556
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/uploads.mjs
|
|
156557
156557
|
var checkFileSupport = () => {
|
|
156558
156558
|
if (typeof File === "undefined") {
|
|
156559
156559
|
const { process: process3 } = globalThis;
|
|
@@ -156644,7 +156644,7 @@ var addFormValue = async (form, key, value) => {
|
|
|
156644
156644
|
}
|
|
156645
156645
|
};
|
|
156646
156646
|
|
|
156647
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156647
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/to-file.mjs
|
|
156648
156648
|
var isBlobLike = (value) => value != null && typeof value === "object" && typeof value.size === "number" && typeof value.type === "string" && typeof value.text === "function" && typeof value.slice === "function" && typeof value.arrayBuffer === "function";
|
|
156649
156649
|
var isFileLike = (value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike(value);
|
|
156650
156650
|
var isResponseLike = (value) => value != null && typeof value === "object" && typeof value.url === "string" && typeof value.blob === "function";
|
|
@@ -156694,14 +156694,14 @@ function propsForError(value) {
|
|
|
156694
156694
|
const props = Object.getOwnPropertyNames(value);
|
|
156695
156695
|
return `; props: [${props.map((p28) => `"${p28}"`).join(", ")}]`;
|
|
156696
156696
|
}
|
|
156697
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156697
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/core/resource.mjs
|
|
156698
156698
|
class APIResource {
|
|
156699
156699
|
constructor(client) {
|
|
156700
156700
|
this._client = client;
|
|
156701
156701
|
}
|
|
156702
156702
|
}
|
|
156703
156703
|
|
|
156704
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156704
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/utils/path.mjs
|
|
156705
156705
|
function encodeURIPath(str2) {
|
|
156706
156706
|
return str2.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
156707
156707
|
}
|
|
@@ -156756,13 +156756,13 @@ ${underline}`);
|
|
|
156756
156756
|
};
|
|
156757
156757
|
var path4 = /* @__PURE__ */ createPathTagFunction(encodeURIPath);
|
|
156758
156758
|
|
|
156759
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156759
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/chat/completions/messages.mjs
|
|
156760
156760
|
class Messages extends APIResource {
|
|
156761
156761
|
list(completionID, query = {}, options) {
|
|
156762
156762
|
return this._client.getAPIList(path4`/chat/completions/${completionID}/messages`, CursorPage, { query, ...options });
|
|
156763
156763
|
}
|
|
156764
156764
|
}
|
|
156765
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156765
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/parser.mjs
|
|
156766
156766
|
function isChatCompletionFunctionTool(tool) {
|
|
156767
156767
|
return tool !== undefined && "function" in tool && tool.function !== undefined;
|
|
156768
156768
|
}
|
|
@@ -156869,7 +156869,7 @@ function validateInputTools(tools) {
|
|
|
156869
156869
|
}
|
|
156870
156870
|
}
|
|
156871
156871
|
|
|
156872
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156872
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/chatCompletionUtils.mjs
|
|
156873
156873
|
var isAssistantMessage = (message) => {
|
|
156874
156874
|
return message?.role === "assistant";
|
|
156875
156875
|
};
|
|
@@ -156877,7 +156877,7 @@ var isToolMessage = (message) => {
|
|
|
156877
156877
|
return message?.role === "tool";
|
|
156878
156878
|
};
|
|
156879
156879
|
|
|
156880
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
156880
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/EventStream.mjs
|
|
156881
156881
|
var _EventStream_instances;
|
|
156882
156882
|
var _EventStream_connectedPromise;
|
|
156883
156883
|
var _EventStream_resolveConnectedPromise;
|
|
@@ -157030,12 +157030,12 @@ _EventStream_connectedPromise = new WeakMap, _EventStream_resolveConnectedPromis
|
|
|
157030
157030
|
return this._emit("error", new OpenAIError(String(error2)));
|
|
157031
157031
|
};
|
|
157032
157032
|
|
|
157033
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
157033
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/RunnableFunction.mjs
|
|
157034
157034
|
function isRunnableFunctionWithParse(fn2) {
|
|
157035
157035
|
return typeof fn2.parse === "function";
|
|
157036
157036
|
}
|
|
157037
157037
|
|
|
157038
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
157038
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/AbstractChatCompletionRunner.mjs
|
|
157039
157039
|
var _AbstractChatCompletionRunner_instances;
|
|
157040
157040
|
var _AbstractChatCompletionRunner_getFinalContent;
|
|
157041
157041
|
var _AbstractChatCompletionRunner_getFinalMessage;
|
|
@@ -157290,7 +157290,7 @@ _AbstractChatCompletionRunner_instances = new WeakSet, _AbstractChatCompletionRu
|
|
|
157290
157290
|
return typeof rawContent === "string" ? rawContent : rawContent === undefined ? "undefined" : JSON.stringify(rawContent);
|
|
157291
157291
|
};
|
|
157292
157292
|
|
|
157293
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
157293
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/ChatCompletionRunner.mjs
|
|
157294
157294
|
class ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
157295
157295
|
static runTools(client, params2, options) {
|
|
157296
157296
|
const runner = new ChatCompletionRunner;
|
|
@@ -157309,7 +157309,7 @@ class ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
|
157309
157309
|
}
|
|
157310
157310
|
}
|
|
157311
157311
|
|
|
157312
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
157312
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/_vendor/partial-json-parser/parser.mjs
|
|
157313
157313
|
var STR = 1;
|
|
157314
157314
|
var NUM = 2;
|
|
157315
157315
|
var ARR = 4;
|
|
@@ -157522,7 +157522,7 @@ var _parseJSON = (jsonString, allow) => {
|
|
|
157522
157522
|
return parseAny();
|
|
157523
157523
|
};
|
|
157524
157524
|
var partialParse = (input) => parseJSON(input, Allow.ALL ^ Allow.NUM);
|
|
157525
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
157525
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/ChatCompletionStream.mjs
|
|
157526
157526
|
var _ChatCompletionStream_instances;
|
|
157527
157527
|
var _ChatCompletionStream_params;
|
|
157528
157528
|
var _ChatCompletionStream_choiceEventStates;
|
|
@@ -157995,7 +157995,7 @@ function assertIsEmpty(obj) {
|
|
|
157995
157995
|
}
|
|
157996
157996
|
function assertNever(_x) {}
|
|
157997
157997
|
|
|
157998
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
157998
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs
|
|
157999
157999
|
class ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
158000
158000
|
static fromReadableStream(stream2) {
|
|
158001
158001
|
const runner = new ChatCompletionStreamingRunner(null);
|
|
@@ -158013,7 +158013,7 @@ class ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
|
158013
158013
|
}
|
|
158014
158014
|
}
|
|
158015
158015
|
|
|
158016
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158016
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/chat/completions/completions.mjs
|
|
158017
158017
|
class Completions extends APIResource {
|
|
158018
158018
|
constructor() {
|
|
158019
158019
|
super(...arguments);
|
|
@@ -158056,7 +158056,7 @@ class Completions extends APIResource {
|
|
|
158056
158056
|
}
|
|
158057
158057
|
Completions.Messages = Messages;
|
|
158058
158058
|
|
|
158059
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158059
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/chat/chat.mjs
|
|
158060
158060
|
class Chat extends APIResource {
|
|
158061
158061
|
constructor() {
|
|
158062
158062
|
super(...arguments);
|
|
@@ -158064,7 +158064,7 @@ class Chat extends APIResource {
|
|
|
158064
158064
|
}
|
|
158065
158065
|
}
|
|
158066
158066
|
Chat.Completions = Completions;
|
|
158067
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158067
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/headers.mjs
|
|
158068
158068
|
var brand_privateNullableHeaders = /* @__PURE__ */ Symbol("brand.privateNullableHeaders");
|
|
158069
158069
|
function* iterateHeaders(headers) {
|
|
158070
158070
|
if (!headers)
|
|
@@ -158127,7 +158127,7 @@ var buildHeaders = (newHeaders) => {
|
|
|
158127
158127
|
return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders };
|
|
158128
158128
|
};
|
|
158129
158129
|
|
|
158130
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158130
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/audio/speech.mjs
|
|
158131
158131
|
class Speech2 extends APIResource {
|
|
158132
158132
|
create(body, options) {
|
|
158133
158133
|
return this._client.post("/audio/speech", {
|
|
@@ -158139,7 +158139,7 @@ class Speech2 extends APIResource {
|
|
|
158139
158139
|
}
|
|
158140
158140
|
}
|
|
158141
158141
|
|
|
158142
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158142
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/audio/transcriptions.mjs
|
|
158143
158143
|
class Transcriptions extends APIResource {
|
|
158144
158144
|
create(body, options) {
|
|
158145
158145
|
return this._client.post("/audio/transcriptions", multipartFormRequestOptions({
|
|
@@ -158151,14 +158151,14 @@ class Transcriptions extends APIResource {
|
|
|
158151
158151
|
}
|
|
158152
158152
|
}
|
|
158153
158153
|
|
|
158154
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158154
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/audio/translations.mjs
|
|
158155
158155
|
class Translations extends APIResource {
|
|
158156
158156
|
create(body, options) {
|
|
158157
158157
|
return this._client.post("/audio/translations", multipartFormRequestOptions({ body, ...options, __metadata: { model: body.model } }, this._client));
|
|
158158
158158
|
}
|
|
158159
158159
|
}
|
|
158160
158160
|
|
|
158161
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158161
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/audio/audio.mjs
|
|
158162
158162
|
class Audio extends APIResource {
|
|
158163
158163
|
constructor() {
|
|
158164
158164
|
super(...arguments);
|
|
@@ -158170,7 +158170,7 @@ class Audio extends APIResource {
|
|
|
158170
158170
|
Audio.Transcriptions = Transcriptions;
|
|
158171
158171
|
Audio.Translations = Translations;
|
|
158172
158172
|
Audio.Speech = Speech2;
|
|
158173
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158173
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/batches.mjs
|
|
158174
158174
|
class Batches extends APIResource {
|
|
158175
158175
|
create(body, options) {
|
|
158176
158176
|
return this._client.post("/batches", { body, ...options });
|
|
@@ -158185,7 +158185,7 @@ class Batches extends APIResource {
|
|
|
158185
158185
|
return this._client.post(path4`/batches/${batchID}/cancel`, options);
|
|
158186
158186
|
}
|
|
158187
158187
|
}
|
|
158188
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158188
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/assistants.mjs
|
|
158189
158189
|
class Assistants extends APIResource {
|
|
158190
158190
|
create(body, options) {
|
|
158191
158191
|
return this._client.post("/assistants", {
|
|
@@ -158222,7 +158222,7 @@ class Assistants extends APIResource {
|
|
|
158222
158222
|
}
|
|
158223
158223
|
}
|
|
158224
158224
|
|
|
158225
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158225
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/realtime/sessions.mjs
|
|
158226
158226
|
class Sessions extends APIResource {
|
|
158227
158227
|
create(body, options) {
|
|
158228
158228
|
return this._client.post("/realtime/sessions", {
|
|
@@ -158233,7 +158233,7 @@ class Sessions extends APIResource {
|
|
|
158233
158233
|
}
|
|
158234
158234
|
}
|
|
158235
158235
|
|
|
158236
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158236
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs
|
|
158237
158237
|
class TranscriptionSessions extends APIResource {
|
|
158238
158238
|
create(body, options) {
|
|
158239
158239
|
return this._client.post("/realtime/transcription_sessions", {
|
|
@@ -158244,7 +158244,7 @@ class TranscriptionSessions extends APIResource {
|
|
|
158244
158244
|
}
|
|
158245
158245
|
}
|
|
158246
158246
|
|
|
158247
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158247
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/realtime/realtime.mjs
|
|
158248
158248
|
class Realtime extends APIResource {
|
|
158249
158249
|
constructor() {
|
|
158250
158250
|
super(...arguments);
|
|
@@ -158255,7 +158255,7 @@ class Realtime extends APIResource {
|
|
|
158255
158255
|
Realtime.Sessions = Sessions;
|
|
158256
158256
|
Realtime.TranscriptionSessions = TranscriptionSessions;
|
|
158257
158257
|
|
|
158258
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158258
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/chatkit/sessions.mjs
|
|
158259
158259
|
class Sessions2 extends APIResource {
|
|
158260
158260
|
create(body, options) {
|
|
158261
158261
|
return this._client.post("/chatkit/sessions", {
|
|
@@ -158272,7 +158272,7 @@ class Sessions2 extends APIResource {
|
|
|
158272
158272
|
}
|
|
158273
158273
|
}
|
|
158274
158274
|
|
|
158275
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158275
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/chatkit/threads.mjs
|
|
158276
158276
|
class Threads extends APIResource {
|
|
158277
158277
|
retrieve(threadID, options) {
|
|
158278
158278
|
return this._client.get(path4`/chatkit/threads/${threadID}`, {
|
|
@@ -158298,7 +158298,7 @@ class Threads extends APIResource {
|
|
|
158298
158298
|
}
|
|
158299
158299
|
}
|
|
158300
158300
|
|
|
158301
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158301
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/chatkit/chatkit.mjs
|
|
158302
158302
|
class ChatKit extends APIResource {
|
|
158303
158303
|
constructor() {
|
|
158304
158304
|
super(...arguments);
|
|
@@ -158309,7 +158309,7 @@ class ChatKit extends APIResource {
|
|
|
158309
158309
|
ChatKit.Sessions = Sessions2;
|
|
158310
158310
|
ChatKit.Threads = Threads;
|
|
158311
158311
|
|
|
158312
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158312
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/threads/messages.mjs
|
|
158313
158313
|
class Messages2 extends APIResource {
|
|
158314
158314
|
create(threadID, body, options) {
|
|
158315
158315
|
return this._client.post(path4`/threads/${threadID}/messages`, {
|
|
@@ -158349,7 +158349,7 @@ class Messages2 extends APIResource {
|
|
|
158349
158349
|
}
|
|
158350
158350
|
}
|
|
158351
158351
|
|
|
158352
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158352
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/steps.mjs
|
|
158353
158353
|
class Steps extends APIResource {
|
|
158354
158354
|
retrieve(stepID, params2, options) {
|
|
158355
158355
|
const { thread_id, run_id, ...query } = params2;
|
|
@@ -158368,7 +158368,7 @@ class Steps extends APIResource {
|
|
|
158368
158368
|
});
|
|
158369
158369
|
}
|
|
158370
158370
|
}
|
|
158371
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158371
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/utils/base64.mjs
|
|
158372
158372
|
var toFloat32Array = (base64Str) => {
|
|
158373
158373
|
if (typeof Buffer !== "undefined") {
|
|
158374
158374
|
const buf = Buffer.from(base64Str, "base64");
|
|
@@ -158383,7 +158383,7 @@ var toFloat32Array = (base64Str) => {
|
|
|
158383
158383
|
return Array.from(new Float32Array(bytes.buffer));
|
|
158384
158384
|
}
|
|
158385
158385
|
};
|
|
158386
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158386
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/internal/utils/env.mjs
|
|
158387
158387
|
var readEnv = (env2) => {
|
|
158388
158388
|
if (typeof globalThis.process !== "undefined") {
|
|
158389
158389
|
return globalThis.process.env?.[env2]?.trim() ?? undefined;
|
|
@@ -158393,7 +158393,7 @@ var readEnv = (env2) => {
|
|
|
158393
158393
|
}
|
|
158394
158394
|
return;
|
|
158395
158395
|
};
|
|
158396
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158396
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/AssistantStream.mjs
|
|
158397
158397
|
var _AssistantStream_instances;
|
|
158398
158398
|
var _a;
|
|
158399
158399
|
var _AssistantStream_events;
|
|
@@ -158932,7 +158932,7 @@ _a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addE
|
|
|
158932
158932
|
};
|
|
158933
158933
|
function assertNever2(_x) {}
|
|
158934
158934
|
|
|
158935
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
158935
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/runs.mjs
|
|
158936
158936
|
class Runs extends APIResource {
|
|
158937
158937
|
constructor() {
|
|
158938
158938
|
super(...arguments);
|
|
@@ -159047,7 +159047,7 @@ class Runs extends APIResource {
|
|
|
159047
159047
|
}
|
|
159048
159048
|
Runs.Steps = Steps;
|
|
159049
159049
|
|
|
159050
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159050
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/threads/threads.mjs
|
|
159051
159051
|
class Threads2 extends APIResource {
|
|
159052
159052
|
constructor() {
|
|
159053
159053
|
super(...arguments);
|
|
@@ -159099,7 +159099,7 @@ class Threads2 extends APIResource {
|
|
|
159099
159099
|
Threads2.Runs = Runs;
|
|
159100
159100
|
Threads2.Messages = Messages2;
|
|
159101
159101
|
|
|
159102
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159102
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/beta/beta.mjs
|
|
159103
159103
|
class Beta extends APIResource {
|
|
159104
159104
|
constructor() {
|
|
159105
159105
|
super(...arguments);
|
|
@@ -159113,13 +159113,13 @@ Beta.Realtime = Realtime;
|
|
|
159113
159113
|
Beta.ChatKit = ChatKit;
|
|
159114
159114
|
Beta.Assistants = Assistants;
|
|
159115
159115
|
Beta.Threads = Threads2;
|
|
159116
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159116
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/completions.mjs
|
|
159117
159117
|
class Completions2 extends APIResource {
|
|
159118
159118
|
create(body, options) {
|
|
159119
159119
|
return this._client.post("/completions", { body, ...options, stream: body.stream ?? false });
|
|
159120
159120
|
}
|
|
159121
159121
|
}
|
|
159122
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159122
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/containers/files/content.mjs
|
|
159123
159123
|
class Content2 extends APIResource {
|
|
159124
159124
|
retrieve(fileID, params2, options) {
|
|
159125
159125
|
const { container_id } = params2;
|
|
@@ -159131,7 +159131,7 @@ class Content2 extends APIResource {
|
|
|
159131
159131
|
}
|
|
159132
159132
|
}
|
|
159133
159133
|
|
|
159134
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159134
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/containers/files/files.mjs
|
|
159135
159135
|
class Files2 extends APIResource {
|
|
159136
159136
|
constructor() {
|
|
159137
159137
|
super(...arguments);
|
|
@@ -159160,7 +159160,7 @@ class Files2 extends APIResource {
|
|
|
159160
159160
|
}
|
|
159161
159161
|
Files2.Content = Content2;
|
|
159162
159162
|
|
|
159163
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159163
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/containers/containers.mjs
|
|
159164
159164
|
class Containers extends APIResource {
|
|
159165
159165
|
constructor() {
|
|
159166
159166
|
super(...arguments);
|
|
@@ -159183,7 +159183,7 @@ class Containers extends APIResource {
|
|
|
159183
159183
|
}
|
|
159184
159184
|
}
|
|
159185
159185
|
Containers.Files = Files2;
|
|
159186
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159186
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/conversations/items.mjs
|
|
159187
159187
|
class Items extends APIResource {
|
|
159188
159188
|
create(conversationID, params2, options) {
|
|
159189
159189
|
const { include, ...body } = params2;
|
|
@@ -159206,7 +159206,7 @@ class Items extends APIResource {
|
|
|
159206
159206
|
}
|
|
159207
159207
|
}
|
|
159208
159208
|
|
|
159209
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159209
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/conversations/conversations.mjs
|
|
159210
159210
|
class Conversations extends APIResource {
|
|
159211
159211
|
constructor() {
|
|
159212
159212
|
super(...arguments);
|
|
@@ -159226,7 +159226,7 @@ class Conversations extends APIResource {
|
|
|
159226
159226
|
}
|
|
159227
159227
|
}
|
|
159228
159228
|
Conversations.Items = Items;
|
|
159229
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159229
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/embeddings.mjs
|
|
159230
159230
|
class Embeddings extends APIResource {
|
|
159231
159231
|
create(body, options) {
|
|
159232
159232
|
const hasUserProvidedEncodingFormat = !!body.encoding_format;
|
|
@@ -159256,7 +159256,7 @@ class Embeddings extends APIResource {
|
|
|
159256
159256
|
});
|
|
159257
159257
|
}
|
|
159258
159258
|
}
|
|
159259
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159259
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/evals/runs/output-items.mjs
|
|
159260
159260
|
class OutputItems extends APIResource {
|
|
159261
159261
|
retrieve(outputItemID, params2, options) {
|
|
159262
159262
|
const { eval_id, run_id } = params2;
|
|
@@ -159268,7 +159268,7 @@ class OutputItems extends APIResource {
|
|
|
159268
159268
|
}
|
|
159269
159269
|
}
|
|
159270
159270
|
|
|
159271
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159271
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/evals/runs/runs.mjs
|
|
159272
159272
|
class Runs2 extends APIResource {
|
|
159273
159273
|
constructor() {
|
|
159274
159274
|
super(...arguments);
|
|
@@ -159298,7 +159298,7 @@ class Runs2 extends APIResource {
|
|
|
159298
159298
|
}
|
|
159299
159299
|
Runs2.OutputItems = OutputItems;
|
|
159300
159300
|
|
|
159301
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159301
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/evals/evals.mjs
|
|
159302
159302
|
class Evals extends APIResource {
|
|
159303
159303
|
constructor() {
|
|
159304
159304
|
super(...arguments);
|
|
@@ -159321,7 +159321,7 @@ class Evals extends APIResource {
|
|
|
159321
159321
|
}
|
|
159322
159322
|
}
|
|
159323
159323
|
Evals.Runs = Runs2;
|
|
159324
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159324
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/files.mjs
|
|
159325
159325
|
class Files3 extends APIResource {
|
|
159326
159326
|
create(body, options) {
|
|
159327
159327
|
return this._client.post("/files", multipartFormRequestOptions({ body, ...options }, this._client));
|
|
@@ -159358,11 +159358,11 @@ class Files3 extends APIResource {
|
|
|
159358
159358
|
return file;
|
|
159359
159359
|
}
|
|
159360
159360
|
}
|
|
159361
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159361
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/fine-tuning/methods.mjs
|
|
159362
159362
|
class Methods extends APIResource {
|
|
159363
159363
|
}
|
|
159364
159364
|
|
|
159365
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159365
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/graders.mjs
|
|
159366
159366
|
class Graders extends APIResource {
|
|
159367
159367
|
run(body, options) {
|
|
159368
159368
|
return this._client.post("/fine_tuning/alpha/graders/run", { body, ...options });
|
|
@@ -159372,7 +159372,7 @@ class Graders extends APIResource {
|
|
|
159372
159372
|
}
|
|
159373
159373
|
}
|
|
159374
159374
|
|
|
159375
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159375
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs
|
|
159376
159376
|
class Alpha extends APIResource {
|
|
159377
159377
|
constructor() {
|
|
159378
159378
|
super(...arguments);
|
|
@@ -159381,7 +159381,7 @@ class Alpha extends APIResource {
|
|
|
159381
159381
|
}
|
|
159382
159382
|
Alpha.Graders = Graders;
|
|
159383
159383
|
|
|
159384
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159384
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs
|
|
159385
159385
|
class Permissions extends APIResource {
|
|
159386
159386
|
create(fineTunedModelCheckpoint, body, options) {
|
|
159387
159387
|
return this._client.getAPIList(path4`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`, Page, { body, method: "post", ...options });
|
|
@@ -159398,7 +159398,7 @@ class Permissions extends APIResource {
|
|
|
159398
159398
|
}
|
|
159399
159399
|
}
|
|
159400
159400
|
|
|
159401
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159401
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs
|
|
159402
159402
|
class Checkpoints extends APIResource {
|
|
159403
159403
|
constructor() {
|
|
159404
159404
|
super(...arguments);
|
|
@@ -159407,14 +159407,14 @@ class Checkpoints extends APIResource {
|
|
|
159407
159407
|
}
|
|
159408
159408
|
Checkpoints.Permissions = Permissions;
|
|
159409
159409
|
|
|
159410
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159410
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs
|
|
159411
159411
|
class Checkpoints2 extends APIResource {
|
|
159412
159412
|
list(fineTuningJobID, query = {}, options) {
|
|
159413
159413
|
return this._client.getAPIList(path4`/fine_tuning/jobs/${fineTuningJobID}/checkpoints`, CursorPage, { query, ...options });
|
|
159414
159414
|
}
|
|
159415
159415
|
}
|
|
159416
159416
|
|
|
159417
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159417
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs
|
|
159418
159418
|
class Jobs extends APIResource {
|
|
159419
159419
|
constructor() {
|
|
159420
159420
|
super(...arguments);
|
|
@@ -159444,7 +159444,7 @@ class Jobs extends APIResource {
|
|
|
159444
159444
|
}
|
|
159445
159445
|
Jobs.Checkpoints = Checkpoints2;
|
|
159446
159446
|
|
|
159447
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159447
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/fine-tuning/fine-tuning.mjs
|
|
159448
159448
|
class FineTuning extends APIResource {
|
|
159449
159449
|
constructor() {
|
|
159450
159450
|
super(...arguments);
|
|
@@ -159458,11 +159458,11 @@ FineTuning.Methods = Methods;
|
|
|
159458
159458
|
FineTuning.Jobs = Jobs;
|
|
159459
159459
|
FineTuning.Checkpoints = Checkpoints;
|
|
159460
159460
|
FineTuning.Alpha = Alpha;
|
|
159461
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159461
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/graders/grader-models.mjs
|
|
159462
159462
|
class GraderModels extends APIResource {
|
|
159463
159463
|
}
|
|
159464
159464
|
|
|
159465
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159465
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/graders/graders.mjs
|
|
159466
159466
|
class Graders2 extends APIResource {
|
|
159467
159467
|
constructor() {
|
|
159468
159468
|
super(...arguments);
|
|
@@ -159470,7 +159470,7 @@ class Graders2 extends APIResource {
|
|
|
159470
159470
|
}
|
|
159471
159471
|
}
|
|
159472
159472
|
Graders2.GraderModels = GraderModels;
|
|
159473
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159473
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/images.mjs
|
|
159474
159474
|
class Images2 extends APIResource {
|
|
159475
159475
|
createVariation(body, options) {
|
|
159476
159476
|
return this._client.post("/images/variations", multipartFormRequestOptions({ body, ...options }, this._client));
|
|
@@ -159482,7 +159482,7 @@ class Images2 extends APIResource {
|
|
|
159482
159482
|
return this._client.post("/images/generations", { body, ...options, stream: body.stream ?? false });
|
|
159483
159483
|
}
|
|
159484
159484
|
}
|
|
159485
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159485
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/models.mjs
|
|
159486
159486
|
class Models extends APIResource {
|
|
159487
159487
|
retrieve(model, options) {
|
|
159488
159488
|
return this._client.get(path4`/models/${model}`, options);
|
|
@@ -159494,13 +159494,13 @@ class Models extends APIResource {
|
|
|
159494
159494
|
return this._client.delete(path4`/models/${model}`, options);
|
|
159495
159495
|
}
|
|
159496
159496
|
}
|
|
159497
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159497
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/moderations.mjs
|
|
159498
159498
|
class Moderations extends APIResource {
|
|
159499
159499
|
create(body, options) {
|
|
159500
159500
|
return this._client.post("/moderations", { body, ...options });
|
|
159501
159501
|
}
|
|
159502
159502
|
}
|
|
159503
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159503
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/realtime/calls.mjs
|
|
159504
159504
|
class Calls extends APIResource {
|
|
159505
159505
|
accept(callID, body, options) {
|
|
159506
159506
|
return this._client.post(path4`/realtime/calls/${callID}/accept`, {
|
|
@@ -159531,14 +159531,14 @@ class Calls extends APIResource {
|
|
|
159531
159531
|
}
|
|
159532
159532
|
}
|
|
159533
159533
|
|
|
159534
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159534
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/realtime/client-secrets.mjs
|
|
159535
159535
|
class ClientSecrets extends APIResource {
|
|
159536
159536
|
create(body, options) {
|
|
159537
159537
|
return this._client.post("/realtime/client_secrets", { body, ...options });
|
|
159538
159538
|
}
|
|
159539
159539
|
}
|
|
159540
159540
|
|
|
159541
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159541
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/realtime/realtime.mjs
|
|
159542
159542
|
class Realtime2 extends APIResource {
|
|
159543
159543
|
constructor() {
|
|
159544
159544
|
super(...arguments);
|
|
@@ -159548,7 +159548,7 @@ class Realtime2 extends APIResource {
|
|
|
159548
159548
|
}
|
|
159549
159549
|
Realtime2.ClientSecrets = ClientSecrets;
|
|
159550
159550
|
Realtime2.Calls = Calls;
|
|
159551
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159551
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/ResponsesParser.mjs
|
|
159552
159552
|
function maybeParseResponse(response, params2) {
|
|
159553
159553
|
if (!params2 || !hasAutoParseableInput2(params2)) {
|
|
159554
159554
|
return {
|
|
@@ -159669,7 +159669,7 @@ function addOutputText(rsp) {
|
|
|
159669
159669
|
rsp.output_text = texts.join("");
|
|
159670
159670
|
}
|
|
159671
159671
|
|
|
159672
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159672
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/responses/ResponseStream.mjs
|
|
159673
159673
|
var _ResponseStream_instances;
|
|
159674
159674
|
var _ResponseStream_params;
|
|
159675
159675
|
var _ResponseStream_currentResponseSnapshot;
|
|
@@ -159928,21 +159928,21 @@ function finalizeResponse(snapshot, params2) {
|
|
|
159928
159928
|
return maybeParseResponse(snapshot, params2);
|
|
159929
159929
|
}
|
|
159930
159930
|
|
|
159931
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159931
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/responses/input-items.mjs
|
|
159932
159932
|
class InputItems extends APIResource {
|
|
159933
159933
|
list(responseID, query = {}, options) {
|
|
159934
159934
|
return this._client.getAPIList(path4`/responses/${responseID}/input_items`, CursorPage, { query, ...options });
|
|
159935
159935
|
}
|
|
159936
159936
|
}
|
|
159937
159937
|
|
|
159938
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159938
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/responses/input-tokens.mjs
|
|
159939
159939
|
class InputTokens extends APIResource {
|
|
159940
159940
|
count(body = {}, options) {
|
|
159941
159941
|
return this._client.post("/responses/input_tokens", { body, ...options });
|
|
159942
159942
|
}
|
|
159943
159943
|
}
|
|
159944
159944
|
|
|
159945
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159945
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/responses/responses.mjs
|
|
159946
159946
|
class Responses extends APIResource {
|
|
159947
159947
|
constructor() {
|
|
159948
159948
|
super(...arguments);
|
|
@@ -159984,17 +159984,20 @@ class Responses extends APIResource {
|
|
|
159984
159984
|
cancel(responseID, options) {
|
|
159985
159985
|
return this._client.post(path4`/responses/${responseID}/cancel`, options);
|
|
159986
159986
|
}
|
|
159987
|
+
compact(body = {}, options) {
|
|
159988
|
+
return this._client.post("/responses/compact", { body, ...options });
|
|
159989
|
+
}
|
|
159987
159990
|
}
|
|
159988
159991
|
Responses.InputItems = InputItems;
|
|
159989
159992
|
Responses.InputTokens = InputTokens;
|
|
159990
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
159993
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/uploads/parts.mjs
|
|
159991
159994
|
class Parts extends APIResource {
|
|
159992
159995
|
create(uploadID, body, options) {
|
|
159993
159996
|
return this._client.post(path4`/uploads/${uploadID}/parts`, multipartFormRequestOptions({ body, ...options }, this._client));
|
|
159994
159997
|
}
|
|
159995
159998
|
}
|
|
159996
159999
|
|
|
159997
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
160000
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/uploads/uploads.mjs
|
|
159998
160001
|
class Uploads extends APIResource {
|
|
159999
160002
|
constructor() {
|
|
160000
160003
|
super(...arguments);
|
|
@@ -160011,7 +160014,7 @@ class Uploads extends APIResource {
|
|
|
160011
160014
|
}
|
|
160012
160015
|
}
|
|
160013
160016
|
Uploads.Parts = Parts;
|
|
160014
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
160017
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/lib/Util.mjs
|
|
160015
160018
|
var allSettledWithThrow = async (promises) => {
|
|
160016
160019
|
const results = await Promise.allSettled(promises);
|
|
160017
160020
|
const rejected = results.filter((result) => result.status === "rejected");
|
|
@@ -160030,7 +160033,7 @@ var allSettledWithThrow = async (promises) => {
|
|
|
160030
160033
|
return values3;
|
|
160031
160034
|
};
|
|
160032
160035
|
|
|
160033
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
160036
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/vector-stores/file-batches.mjs
|
|
160034
160037
|
class FileBatches extends APIResource {
|
|
160035
160038
|
create(vectorStoreID, body, options) {
|
|
160036
160039
|
return this._client.post(path4`/vector_stores/${vectorStoreID}/file_batches`, {
|
|
@@ -160120,7 +160123,7 @@ class FileBatches extends APIResource {
|
|
|
160120
160123
|
}
|
|
160121
160124
|
}
|
|
160122
160125
|
|
|
160123
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
160126
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/vector-stores/files.mjs
|
|
160124
160127
|
class Files4 extends APIResource {
|
|
160125
160128
|
create(vectorStoreID, body, options) {
|
|
160126
160129
|
return this._client.post(path4`/vector_stores/${vectorStoreID}/files`, {
|
|
@@ -160211,7 +160214,7 @@ class Files4 extends APIResource {
|
|
|
160211
160214
|
}
|
|
160212
160215
|
}
|
|
160213
160216
|
|
|
160214
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
160217
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/vector-stores/vector-stores.mjs
|
|
160215
160218
|
class VectorStores extends APIResource {
|
|
160216
160219
|
constructor() {
|
|
160217
160220
|
super(...arguments);
|
|
@@ -160262,7 +160265,7 @@ class VectorStores extends APIResource {
|
|
|
160262
160265
|
}
|
|
160263
160266
|
VectorStores.Files = Files4;
|
|
160264
160267
|
VectorStores.FileBatches = FileBatches;
|
|
160265
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
160268
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/videos.mjs
|
|
160266
160269
|
class Videos extends APIResource {
|
|
160267
160270
|
create(body, options) {
|
|
160268
160271
|
return this._client.post("/videos", maybeMultipartFormRequestOptions({ body, ...options }, this._client));
|
|
@@ -160288,7 +160291,7 @@ class Videos extends APIResource {
|
|
|
160288
160291
|
return this._client.post(path4`/videos/${videoID}/remix`, maybeMultipartFormRequestOptions({ body, ...options }, this._client));
|
|
160289
160292
|
}
|
|
160290
160293
|
}
|
|
160291
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
160294
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/resources/webhooks.mjs
|
|
160292
160295
|
var _Webhooks_instances;
|
|
160293
160296
|
var _Webhooks_validateSecret;
|
|
160294
160297
|
var _Webhooks_getRequiredHeader;
|
|
@@ -160354,7 +160357,7 @@ _Webhooks_instances = new WeakSet, _Webhooks_validateSecret = function _Webhooks
|
|
|
160354
160357
|
}
|
|
160355
160358
|
return value;
|
|
160356
160359
|
};
|
|
160357
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
160360
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/client.mjs
|
|
160358
160361
|
var _OpenAI_instances;
|
|
160359
160362
|
var _a2;
|
|
160360
160363
|
var _OpenAI_encoder;
|
|
@@ -160796,7 +160799,7 @@ OpenAI.Conversations = Conversations;
|
|
|
160796
160799
|
OpenAI.Evals = Evals;
|
|
160797
160800
|
OpenAI.Containers = Containers;
|
|
160798
160801
|
OpenAI.Videos = Videos;
|
|
160799
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
160802
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/azure.mjs
|
|
160800
160803
|
var _deployments_endpoints = new Set([
|
|
160801
160804
|
"/completions",
|
|
160802
160805
|
"/chat/completions",
|
|
@@ -160808,7 +160811,7 @@ var _deployments_endpoints = new Set([
|
|
|
160808
160811
|
"/batches",
|
|
160809
160812
|
"/images/edits"
|
|
160810
160813
|
]);
|
|
160811
|
-
// ../../node_modules/.pnpm/@langchain+openai@1.
|
|
160814
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.2.0_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76___ws@8.18.3/node_modules/@langchain/openai/dist/utils/client.js
|
|
160812
160815
|
function wrapOpenAIClientError(e488) {
|
|
160813
160816
|
if (!e488 || typeof e488 !== "object")
|
|
160814
160817
|
return e488;
|
|
@@ -160832,7 +160835,7 @@ function wrapOpenAIClientError(e488) {
|
|
|
160832
160835
|
return error2;
|
|
160833
160836
|
}
|
|
160834
160837
|
|
|
160835
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
160838
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/_virtual/rolldown_runtime.js
|
|
160836
160839
|
var __defProp2 = Object.defineProperty;
|
|
160837
160840
|
var __export2 = (target, all2) => {
|
|
160838
160841
|
for (var name in all2)
|
|
@@ -160842,7 +160845,7 @@ var __export2 = (target, all2) => {
|
|
|
160842
160845
|
});
|
|
160843
160846
|
};
|
|
160844
160847
|
|
|
160845
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
160848
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/content/data.js
|
|
160846
160849
|
function isDataContentBlock(content_block) {
|
|
160847
160850
|
return typeof content_block === "object" && content_block !== null && "type" in content_block && typeof content_block.type === "string" && "source_type" in content_block && (content_block.source_type === "url" || content_block.source_type === "base64" || content_block.source_type === "text" || content_block.source_type === "id");
|
|
160848
160851
|
}
|
|
@@ -160939,12 +160942,12 @@ function convertToProviderContentBlock(block2, converter) {
|
|
|
160939
160942
|
throw new Error(`Unable to convert content block type '${block2.type}' to provider-specific format: not recognized.`);
|
|
160940
160943
|
}
|
|
160941
160944
|
|
|
160942
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
160945
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/message.js
|
|
160943
160946
|
function isMessage(message) {
|
|
160944
160947
|
return typeof message === "object" && message !== null && "type" in message && "content" in message && (typeof message.content === "string" || Array.isArray(message.content));
|
|
160945
160948
|
}
|
|
160946
160949
|
|
|
160947
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
160950
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/load/map_keys.js
|
|
160948
160951
|
var import_decamelize = __toESM(require_decamelize(), 1);
|
|
160949
160952
|
var import_camelcase = __toESM(require_camelcase(), 1);
|
|
160950
160953
|
function keyToJson(key, map5) {
|
|
@@ -160958,7 +160961,7 @@ function mapKeys(fields, mapper, map5) {
|
|
|
160958
160961
|
return mapped;
|
|
160959
160962
|
}
|
|
160960
160963
|
|
|
160961
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
160964
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/load/serializable.js
|
|
160962
160965
|
var serializable_exports = {};
|
|
160963
160966
|
__export2(serializable_exports, {
|
|
160964
160967
|
Serializable: () => Serializable,
|
|
@@ -161073,7 +161076,7 @@ var Serializable = class Serializable2 {
|
|
|
161073
161076
|
}
|
|
161074
161077
|
};
|
|
161075
161078
|
|
|
161076
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
161079
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/block_translators/utils.js
|
|
161077
161080
|
function _isContentBlock(block2, type2) {
|
|
161078
161081
|
return _isObject(block2) && block2.type === type2;
|
|
161079
161082
|
}
|
|
@@ -161101,7 +161104,7 @@ function safeParseJson(value) {
|
|
|
161101
161104
|
}
|
|
161102
161105
|
var iife = (fn2) => fn2();
|
|
161103
161106
|
|
|
161104
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
161107
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.js
|
|
161105
161108
|
function convertAnthropicAnnotation(citation) {
|
|
161106
161109
|
if (citation.type === "char_location" && _isString(citation.document_title) && _isNumber(citation.start_char_index) && _isNumber(citation.end_char_index) && _isString(citation.cited_text)) {
|
|
161107
161110
|
const { document_title, start_char_index, end_char_index, cited_text, ...rest } = citation;
|
|
@@ -161417,7 +161420,7 @@ function _isAIMessageChunk(message) {
|
|
|
161417
161420
|
return typeof message?._getType === "function" && typeof message.concat === "function" && message._getType() === "ai";
|
|
161418
161421
|
}
|
|
161419
161422
|
|
|
161420
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
161423
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/block_translators/data.js
|
|
161421
161424
|
function convertToV1FromDataContentBlock(block2) {
|
|
161422
161425
|
if (isURLContentBlock(block2))
|
|
161423
161426
|
return {
|
|
@@ -161491,7 +161494,7 @@ function convertToV1FromOpenAIDataBlock(block2) {
|
|
|
161491
161494
|
return block2;
|
|
161492
161495
|
}
|
|
161493
161496
|
|
|
161494
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
161497
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/block_translators/openai.js
|
|
161495
161498
|
function convertToV1FromChatCompletions(message) {
|
|
161496
161499
|
const blocks = [];
|
|
161497
161500
|
if (typeof message.content === "string")
|
|
@@ -161728,7 +161731,7 @@ var ChatOpenAITranslator = {
|
|
|
161728
161731
|
}
|
|
161729
161732
|
};
|
|
161730
161733
|
|
|
161731
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
161734
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/format.js
|
|
161732
161735
|
function convertToFormattedString(message, format2 = "pretty") {
|
|
161733
161736
|
if (format2 === "pretty")
|
|
161734
161737
|
return convertToPrettyString(message);
|
|
@@ -161750,7 +161753,7 @@ function convertToPrettyString(message) {
|
|
|
161750
161753
|
lines.push(` Call ID: ${tc.id}`);
|
|
161751
161754
|
lines.push(" Args:");
|
|
161752
161755
|
for (const [key, value] of Object.entries(tc.args))
|
|
161753
|
-
lines.push(` ${key}: ${value}`);
|
|
161756
|
+
lines.push(` ${key}: ${typeof value === "object" ? JSON.stringify(value) : value}`);
|
|
161754
161757
|
}
|
|
161755
161758
|
}
|
|
161756
161759
|
}
|
|
@@ -161768,7 +161771,7 @@ function convertToPrettyString(message) {
|
|
|
161768
161771
|
`);
|
|
161769
161772
|
}
|
|
161770
161773
|
|
|
161771
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
161774
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/base.js
|
|
161772
161775
|
var MESSAGE_SYMBOL = Symbol.for("langchain.message");
|
|
161773
161776
|
function mergeContent(firstContent, secondContent) {
|
|
161774
161777
|
if (typeof firstContent === "string") {
|
|
@@ -161957,9 +161960,10 @@ function _mergeDicts(left = {}, right = {}) {
|
|
|
161957
161960
|
"name",
|
|
161958
161961
|
"output_version",
|
|
161959
161962
|
"model_provider"
|
|
161960
|
-
].includes(key))
|
|
161961
|
-
|
|
161962
|
-
|
|
161963
|
+
].includes(key)) {
|
|
161964
|
+
if (value)
|
|
161965
|
+
merged[key] = value;
|
|
161966
|
+
} else
|
|
161963
161967
|
merged[key] += value;
|
|
161964
161968
|
else if (typeof merged[key] === "object" && !Array.isArray(merged[key]))
|
|
161965
161969
|
merged[key] = _mergeDicts(merged[key], value);
|
|
@@ -162043,7 +162047,7 @@ function isBaseMessageChunk(messageLike) {
|
|
|
162043
162047
|
return BaseMessageChunk.isInstance(messageLike);
|
|
162044
162048
|
}
|
|
162045
162049
|
|
|
162046
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
162050
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/metadata.js
|
|
162047
162051
|
function mergeResponseMetadata(a443, b8) {
|
|
162048
162052
|
const output = _mergeDicts(a443 ?? {}, b8 ?? {});
|
|
162049
162053
|
return output;
|
|
@@ -162086,7 +162090,7 @@ function mergeUsageMetadata(a443, b8) {
|
|
|
162086
162090
|
};
|
|
162087
162091
|
}
|
|
162088
162092
|
|
|
162089
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
162093
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/tool.js
|
|
162090
162094
|
var tool_exports = {};
|
|
162091
162095
|
__export2(tool_exports, {
|
|
162092
162096
|
ToolMessage: () => ToolMessage,
|
|
@@ -162202,7 +162206,263 @@ function isToolMessageChunk(x4) {
|
|
|
162202
162206
|
return x4._getType() === "tool";
|
|
162203
162207
|
}
|
|
162204
162208
|
|
|
162205
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
162209
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/chat.js
|
|
162210
|
+
var ChatMessage = class ChatMessage2 extends BaseMessage {
|
|
162211
|
+
static lc_name() {
|
|
162212
|
+
return "ChatMessage";
|
|
162213
|
+
}
|
|
162214
|
+
type = "generic";
|
|
162215
|
+
role;
|
|
162216
|
+
static _chatMessageClass() {
|
|
162217
|
+
return ChatMessage2;
|
|
162218
|
+
}
|
|
162219
|
+
constructor(fields, role) {
|
|
162220
|
+
if (typeof fields === "string" || Array.isArray(fields))
|
|
162221
|
+
fields = {
|
|
162222
|
+
content: fields,
|
|
162223
|
+
role
|
|
162224
|
+
};
|
|
162225
|
+
super(fields);
|
|
162226
|
+
this.role = fields.role;
|
|
162227
|
+
}
|
|
162228
|
+
static isInstance(obj) {
|
|
162229
|
+
return super.isInstance(obj) && obj.type === "generic";
|
|
162230
|
+
}
|
|
162231
|
+
get _printableFields() {
|
|
162232
|
+
return {
|
|
162233
|
+
...super._printableFields,
|
|
162234
|
+
role: this.role
|
|
162235
|
+
};
|
|
162236
|
+
}
|
|
162237
|
+
};
|
|
162238
|
+
var ChatMessageChunk = class extends BaseMessageChunk {
|
|
162239
|
+
static lc_name() {
|
|
162240
|
+
return "ChatMessageChunk";
|
|
162241
|
+
}
|
|
162242
|
+
type = "generic";
|
|
162243
|
+
role;
|
|
162244
|
+
constructor(fields, role) {
|
|
162245
|
+
if (typeof fields === "string" || Array.isArray(fields))
|
|
162246
|
+
fields = {
|
|
162247
|
+
content: fields,
|
|
162248
|
+
role
|
|
162249
|
+
};
|
|
162250
|
+
super(fields);
|
|
162251
|
+
this.role = fields.role;
|
|
162252
|
+
}
|
|
162253
|
+
concat(chunk) {
|
|
162254
|
+
const Cls = this.constructor;
|
|
162255
|
+
return new Cls({
|
|
162256
|
+
content: mergeContent(this.content, chunk.content),
|
|
162257
|
+
additional_kwargs: _mergeDicts(this.additional_kwargs, chunk.additional_kwargs),
|
|
162258
|
+
response_metadata: _mergeDicts(this.response_metadata, chunk.response_metadata),
|
|
162259
|
+
role: this.role,
|
|
162260
|
+
id: this.id ?? chunk.id
|
|
162261
|
+
});
|
|
162262
|
+
}
|
|
162263
|
+
static isInstance(obj) {
|
|
162264
|
+
return super.isInstance(obj) && obj.type === "generic";
|
|
162265
|
+
}
|
|
162266
|
+
get _printableFields() {
|
|
162267
|
+
return {
|
|
162268
|
+
...super._printableFields,
|
|
162269
|
+
role: this.role
|
|
162270
|
+
};
|
|
162271
|
+
}
|
|
162272
|
+
};
|
|
162273
|
+
function isChatMessage(x4) {
|
|
162274
|
+
return x4._getType() === "generic";
|
|
162275
|
+
}
|
|
162276
|
+
function isChatMessageChunk(x4) {
|
|
162277
|
+
return x4._getType() === "generic";
|
|
162278
|
+
}
|
|
162279
|
+
|
|
162280
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/function.js
|
|
162281
|
+
var FunctionMessage = class extends BaseMessage {
|
|
162282
|
+
static lc_name() {
|
|
162283
|
+
return "FunctionMessage";
|
|
162284
|
+
}
|
|
162285
|
+
type = "function";
|
|
162286
|
+
name;
|
|
162287
|
+
constructor(fields) {
|
|
162288
|
+
super(fields);
|
|
162289
|
+
this.name = fields.name;
|
|
162290
|
+
}
|
|
162291
|
+
};
|
|
162292
|
+
var FunctionMessageChunk = class extends BaseMessageChunk {
|
|
162293
|
+
static lc_name() {
|
|
162294
|
+
return "FunctionMessageChunk";
|
|
162295
|
+
}
|
|
162296
|
+
type = "function";
|
|
162297
|
+
concat(chunk) {
|
|
162298
|
+
const Cls = this.constructor;
|
|
162299
|
+
return new Cls({
|
|
162300
|
+
content: mergeContent(this.content, chunk.content),
|
|
162301
|
+
additional_kwargs: _mergeDicts(this.additional_kwargs, chunk.additional_kwargs),
|
|
162302
|
+
response_metadata: _mergeDicts(this.response_metadata, chunk.response_metadata),
|
|
162303
|
+
name: this.name ?? "",
|
|
162304
|
+
id: this.id ?? chunk.id
|
|
162305
|
+
});
|
|
162306
|
+
}
|
|
162307
|
+
};
|
|
162308
|
+
function isFunctionMessage(x4) {
|
|
162309
|
+
return x4._getType() === "function";
|
|
162310
|
+
}
|
|
162311
|
+
function isFunctionMessageChunk(x4) {
|
|
162312
|
+
return x4._getType() === "function";
|
|
162313
|
+
}
|
|
162314
|
+
|
|
162315
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/human.js
|
|
162316
|
+
var HumanMessage = class extends BaseMessage {
|
|
162317
|
+
static lc_name() {
|
|
162318
|
+
return "HumanMessage";
|
|
162319
|
+
}
|
|
162320
|
+
type = "human";
|
|
162321
|
+
constructor(fields) {
|
|
162322
|
+
super(fields);
|
|
162323
|
+
}
|
|
162324
|
+
static isInstance(obj) {
|
|
162325
|
+
return super.isInstance(obj) && obj.type === "human";
|
|
162326
|
+
}
|
|
162327
|
+
};
|
|
162328
|
+
var HumanMessageChunk = class extends BaseMessageChunk {
|
|
162329
|
+
static lc_name() {
|
|
162330
|
+
return "HumanMessageChunk";
|
|
162331
|
+
}
|
|
162332
|
+
type = "human";
|
|
162333
|
+
constructor(fields) {
|
|
162334
|
+
super(fields);
|
|
162335
|
+
}
|
|
162336
|
+
concat(chunk) {
|
|
162337
|
+
const Cls = this.constructor;
|
|
162338
|
+
return new Cls({
|
|
162339
|
+
content: mergeContent(this.content, chunk.content),
|
|
162340
|
+
additional_kwargs: _mergeDicts(this.additional_kwargs, chunk.additional_kwargs),
|
|
162341
|
+
response_metadata: _mergeDicts(this.response_metadata, chunk.response_metadata),
|
|
162342
|
+
id: this.id ?? chunk.id
|
|
162343
|
+
});
|
|
162344
|
+
}
|
|
162345
|
+
static isInstance(obj) {
|
|
162346
|
+
return super.isInstance(obj) && obj.type === "human";
|
|
162347
|
+
}
|
|
162348
|
+
};
|
|
162349
|
+
function isHumanMessage(x4) {
|
|
162350
|
+
return x4.getType() === "human";
|
|
162351
|
+
}
|
|
162352
|
+
function isHumanMessageChunk(x4) {
|
|
162353
|
+
return x4.getType() === "human";
|
|
162354
|
+
}
|
|
162355
|
+
|
|
162356
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/modifier.js
|
|
162357
|
+
var RemoveMessage = class extends BaseMessage {
|
|
162358
|
+
type = "remove";
|
|
162359
|
+
id;
|
|
162360
|
+
constructor(fields) {
|
|
162361
|
+
super({
|
|
162362
|
+
...fields,
|
|
162363
|
+
content: []
|
|
162364
|
+
});
|
|
162365
|
+
this.id = fields.id;
|
|
162366
|
+
}
|
|
162367
|
+
get _printableFields() {
|
|
162368
|
+
return {
|
|
162369
|
+
...super._printableFields,
|
|
162370
|
+
id: this.id
|
|
162371
|
+
};
|
|
162372
|
+
}
|
|
162373
|
+
static isInstance(obj) {
|
|
162374
|
+
return super.isInstance(obj) && obj.type === "remove";
|
|
162375
|
+
}
|
|
162376
|
+
};
|
|
162377
|
+
|
|
162378
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/system.js
|
|
162379
|
+
var SystemMessage = class SystemMessage2 extends BaseMessage {
|
|
162380
|
+
static lc_name() {
|
|
162381
|
+
return "SystemMessage";
|
|
162382
|
+
}
|
|
162383
|
+
type = "system";
|
|
162384
|
+
constructor(fields) {
|
|
162385
|
+
super(fields);
|
|
162386
|
+
}
|
|
162387
|
+
concat(chunk) {
|
|
162388
|
+
if (typeof chunk === "string")
|
|
162389
|
+
return new SystemMessage2({
|
|
162390
|
+
...this,
|
|
162391
|
+
content: mergeContent(this.content, chunk)
|
|
162392
|
+
});
|
|
162393
|
+
if (SystemMessage2.isInstance(chunk))
|
|
162394
|
+
return new SystemMessage2({
|
|
162395
|
+
...this,
|
|
162396
|
+
additional_kwargs: {
|
|
162397
|
+
...this.additional_kwargs,
|
|
162398
|
+
...chunk.additional_kwargs
|
|
162399
|
+
},
|
|
162400
|
+
response_metadata: {
|
|
162401
|
+
...this.response_metadata,
|
|
162402
|
+
...chunk.response_metadata
|
|
162403
|
+
},
|
|
162404
|
+
content: mergeContent(this.content, chunk.content)
|
|
162405
|
+
});
|
|
162406
|
+
throw new Error("Unexpected chunk type for system message");
|
|
162407
|
+
}
|
|
162408
|
+
static isInstance(obj) {
|
|
162409
|
+
return super.isInstance(obj) && obj.type === "system";
|
|
162410
|
+
}
|
|
162411
|
+
};
|
|
162412
|
+
var SystemMessageChunk = class extends BaseMessageChunk {
|
|
162413
|
+
static lc_name() {
|
|
162414
|
+
return "SystemMessageChunk";
|
|
162415
|
+
}
|
|
162416
|
+
type = "system";
|
|
162417
|
+
constructor(fields) {
|
|
162418
|
+
super(fields);
|
|
162419
|
+
}
|
|
162420
|
+
concat(chunk) {
|
|
162421
|
+
const Cls = this.constructor;
|
|
162422
|
+
return new Cls({
|
|
162423
|
+
content: mergeContent(this.content, chunk.content),
|
|
162424
|
+
additional_kwargs: _mergeDicts(this.additional_kwargs, chunk.additional_kwargs),
|
|
162425
|
+
response_metadata: _mergeDicts(this.response_metadata, chunk.response_metadata),
|
|
162426
|
+
id: this.id ?? chunk.id
|
|
162427
|
+
});
|
|
162428
|
+
}
|
|
162429
|
+
static isInstance(obj) {
|
|
162430
|
+
return super.isInstance(obj) && obj.type === "system";
|
|
162431
|
+
}
|
|
162432
|
+
};
|
|
162433
|
+
function isSystemMessage(x4) {
|
|
162434
|
+
return x4._getType() === "system";
|
|
162435
|
+
}
|
|
162436
|
+
function isSystemMessageChunk(x4) {
|
|
162437
|
+
return x4._getType() === "system";
|
|
162438
|
+
}
|
|
162439
|
+
|
|
162440
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/errors/index.js
|
|
162441
|
+
function addLangChainErrorFields2(error2, lc_error_code) {
|
|
162442
|
+
error2.lc_error_code = lc_error_code;
|
|
162443
|
+
error2.message = `${error2.message}
|
|
162444
|
+
|
|
162445
|
+
Troubleshooting URL: https://docs.langchain.com/oss/javascript/langchain/errors/${lc_error_code}/
|
|
162446
|
+
`;
|
|
162447
|
+
return error2;
|
|
162448
|
+
}
|
|
162449
|
+
|
|
162450
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tools/utils.js
|
|
162451
|
+
function _isToolCall(toolCall) {
|
|
162452
|
+
return !!(toolCall && typeof toolCall === "object" && ("type" in toolCall) && toolCall.type === "tool_call");
|
|
162453
|
+
}
|
|
162454
|
+
function _configHasToolCallId(config) {
|
|
162455
|
+
return !!(config && typeof config === "object" && ("toolCall" in config) && config.toolCall != null && typeof config.toolCall === "object" && ("id" in config.toolCall) && typeof config.toolCall.id === "string");
|
|
162456
|
+
}
|
|
162457
|
+
var ToolInputParsingException = class extends Error {
|
|
162458
|
+
output;
|
|
162459
|
+
constructor(message, output) {
|
|
162460
|
+
super(message);
|
|
162461
|
+
this.output = output;
|
|
162462
|
+
}
|
|
162463
|
+
};
|
|
162464
|
+
|
|
162465
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/json.js
|
|
162206
162466
|
function parseJsonMarkdown(s187, parser = parsePartialJson) {
|
|
162207
162467
|
s187 = s187.trim();
|
|
162208
162468
|
const firstFenceIndex = s187.indexOf("```");
|
|
@@ -162223,53 +162483,233 @@ function parseJsonMarkdown(s187, parser = parsePartialJson) {
|
|
|
162223
162483
|
finalContent = contentAfterFence.substring(0, closingFenceIndex);
|
|
162224
162484
|
return parser(finalContent.trim());
|
|
162225
162485
|
}
|
|
162226
|
-
function
|
|
162227
|
-
if (typeof s187 === "undefined")
|
|
162228
|
-
return null;
|
|
162486
|
+
function strictParsePartialJson(s187) {
|
|
162229
162487
|
try {
|
|
162230
162488
|
return JSON.parse(s187);
|
|
162231
162489
|
} catch {}
|
|
162232
|
-
|
|
162233
|
-
|
|
162234
|
-
|
|
162235
|
-
let
|
|
162236
|
-
|
|
162237
|
-
|
|
162238
|
-
|
|
162239
|
-
|
|
162240
|
-
|
|
162241
|
-
|
|
162242
|
-
|
|
162243
|
-
|
|
162244
|
-
|
|
162245
|
-
|
|
162490
|
+
const buffer = s187.trim();
|
|
162491
|
+
if (buffer.length === 0)
|
|
162492
|
+
throw new Error("Unexpected end of JSON input");
|
|
162493
|
+
let pos = 0;
|
|
162494
|
+
function skipWhitespace() {
|
|
162495
|
+
while (pos < buffer.length && /\s/.test(buffer[pos]))
|
|
162496
|
+
pos += 1;
|
|
162497
|
+
}
|
|
162498
|
+
function parseString3() {
|
|
162499
|
+
if (buffer[pos] !== '"')
|
|
162500
|
+
throw new Error(`Expected '"' at position ${pos}, got '${buffer[pos]}'`);
|
|
162501
|
+
pos += 1;
|
|
162502
|
+
let result = "";
|
|
162503
|
+
let escaped = false;
|
|
162504
|
+
while (pos < buffer.length) {
|
|
162505
|
+
const char = buffer[pos];
|
|
162506
|
+
if (escaped) {
|
|
162507
|
+
if (char === "n")
|
|
162508
|
+
result += `
|
|
162509
|
+
`;
|
|
162510
|
+
else if (char === "t")
|
|
162511
|
+
result += "\t";
|
|
162512
|
+
else if (char === "r")
|
|
162513
|
+
result += "\r";
|
|
162514
|
+
else if (char === "\\")
|
|
162515
|
+
result += "\\";
|
|
162516
|
+
else if (char === '"')
|
|
162517
|
+
result += '"';
|
|
162518
|
+
else if (char === "b")
|
|
162519
|
+
result += "\b";
|
|
162520
|
+
else if (char === "f")
|
|
162521
|
+
result += "\f";
|
|
162522
|
+
else if (char === "/")
|
|
162523
|
+
result += "/";
|
|
162524
|
+
else if (char === "u") {
|
|
162525
|
+
const hex = buffer.substring(pos + 1, pos + 5);
|
|
162526
|
+
if (/^[0-9A-Fa-f]{0,4}$/.test(hex)) {
|
|
162527
|
+
if (hex.length === 4)
|
|
162528
|
+
result += String.fromCharCode(Number.parseInt(hex, 16));
|
|
162529
|
+
else
|
|
162530
|
+
result += `u${hex}`;
|
|
162531
|
+
pos += hex.length;
|
|
162532
|
+
} else
|
|
162533
|
+
throw new Error(`Invalid unicode escape sequence '\\u${hex}' at position ${pos}`);
|
|
162534
|
+
} else
|
|
162535
|
+
throw new Error(`Invalid escape sequence '\\${char}' at position ${pos}`);
|
|
162246
162536
|
escaped = false;
|
|
162247
|
-
|
|
162248
|
-
|
|
162249
|
-
|
|
162250
|
-
|
|
162251
|
-
|
|
162252
|
-
|
|
162253
|
-
|
|
162254
|
-
|
|
162255
|
-
|
|
162256
|
-
|
|
162257
|
-
|
|
162258
|
-
|
|
162259
|
-
|
|
162537
|
+
} else if (char === "\\")
|
|
162538
|
+
escaped = true;
|
|
162539
|
+
else if (char === '"') {
|
|
162540
|
+
pos += 1;
|
|
162541
|
+
return result;
|
|
162542
|
+
} else
|
|
162543
|
+
result += char;
|
|
162544
|
+
pos += 1;
|
|
162545
|
+
}
|
|
162546
|
+
if (escaped)
|
|
162547
|
+
result += "\\";
|
|
162548
|
+
return result;
|
|
162549
|
+
}
|
|
162550
|
+
function parseNumber3() {
|
|
162551
|
+
const start = pos;
|
|
162552
|
+
let numStr = "";
|
|
162553
|
+
if (buffer[pos] === "-") {
|
|
162554
|
+
numStr += "-";
|
|
162555
|
+
pos += 1;
|
|
162556
|
+
}
|
|
162557
|
+
if (pos < buffer.length && buffer[pos] === "0") {
|
|
162558
|
+
numStr += "0";
|
|
162559
|
+
pos += 1;
|
|
162560
|
+
if (buffer[pos] >= "0" && buffer[pos] <= "9")
|
|
162561
|
+
throw new Error(`Invalid number at position ${start}`);
|
|
162562
|
+
}
|
|
162563
|
+
if (pos < buffer.length && buffer[pos] >= "1" && buffer[pos] <= "9")
|
|
162564
|
+
while (pos < buffer.length && buffer[pos] >= "0" && buffer[pos] <= "9") {
|
|
162565
|
+
numStr += buffer[pos];
|
|
162566
|
+
pos += 1;
|
|
162567
|
+
}
|
|
162568
|
+
if (pos < buffer.length && buffer[pos] === ".") {
|
|
162569
|
+
numStr += ".";
|
|
162570
|
+
pos += 1;
|
|
162571
|
+
while (pos < buffer.length && buffer[pos] >= "0" && buffer[pos] <= "9") {
|
|
162572
|
+
numStr += buffer[pos];
|
|
162573
|
+
pos += 1;
|
|
162574
|
+
}
|
|
162575
|
+
}
|
|
162576
|
+
if (pos < buffer.length && (buffer[pos] === "e" || buffer[pos] === "E")) {
|
|
162577
|
+
numStr += buffer[pos];
|
|
162578
|
+
pos += 1;
|
|
162579
|
+
if (pos < buffer.length && (buffer[pos] === "+" || buffer[pos] === "-")) {
|
|
162580
|
+
numStr += buffer[pos];
|
|
162581
|
+
pos += 1;
|
|
162582
|
+
}
|
|
162583
|
+
while (pos < buffer.length && buffer[pos] >= "0" && buffer[pos] <= "9") {
|
|
162584
|
+
numStr += buffer[pos];
|
|
162585
|
+
pos += 1;
|
|
162586
|
+
}
|
|
162587
|
+
}
|
|
162588
|
+
if (numStr === "-")
|
|
162589
|
+
return -0;
|
|
162590
|
+
const num = Number.parseFloat(numStr);
|
|
162591
|
+
if (Number.isNaN(num)) {
|
|
162592
|
+
pos = start;
|
|
162593
|
+
throw new Error(`Invalid number '${numStr}' at position ${start}`);
|
|
162594
|
+
}
|
|
162595
|
+
return num;
|
|
162596
|
+
}
|
|
162597
|
+
function parseValue2() {
|
|
162598
|
+
skipWhitespace();
|
|
162599
|
+
if (pos >= buffer.length)
|
|
162600
|
+
throw new Error(`Unexpected end of input at position ${pos}`);
|
|
162601
|
+
const char = buffer[pos];
|
|
162602
|
+
if (char === "{")
|
|
162603
|
+
return parseObject3();
|
|
162604
|
+
if (char === "[")
|
|
162605
|
+
return parseArray3();
|
|
162606
|
+
if (char === '"')
|
|
162607
|
+
return parseString3();
|
|
162608
|
+
if ("null".startsWith(buffer.substring(pos, pos + 4))) {
|
|
162609
|
+
pos += Math.min(4, buffer.length - pos);
|
|
162610
|
+
return null;
|
|
162611
|
+
}
|
|
162612
|
+
if ("true".startsWith(buffer.substring(pos, pos + 4))) {
|
|
162613
|
+
pos += Math.min(4, buffer.length - pos);
|
|
162614
|
+
return true;
|
|
162615
|
+
}
|
|
162616
|
+
if ("false".startsWith(buffer.substring(pos, pos + 5))) {
|
|
162617
|
+
pos += Math.min(5, buffer.length - pos);
|
|
162618
|
+
return false;
|
|
162619
|
+
}
|
|
162620
|
+
if (char === "-" || char >= "0" && char <= "9")
|
|
162621
|
+
return parseNumber3();
|
|
162622
|
+
throw new Error(`Unexpected character '${char}' at position ${pos}`);
|
|
162260
162623
|
}
|
|
162261
|
-
|
|
162262
|
-
|
|
162263
|
-
|
|
162264
|
-
|
|
162624
|
+
function parseArray3() {
|
|
162625
|
+
if (buffer[pos] !== "[")
|
|
162626
|
+
throw new Error(`Expected '[' at position ${pos}, got '${buffer[pos]}'`);
|
|
162627
|
+
const arr = [];
|
|
162628
|
+
pos += 1;
|
|
162629
|
+
skipWhitespace();
|
|
162630
|
+
if (pos >= buffer.length)
|
|
162631
|
+
return arr;
|
|
162632
|
+
if (buffer[pos] === "]") {
|
|
162633
|
+
pos += 1;
|
|
162634
|
+
return arr;
|
|
162635
|
+
}
|
|
162636
|
+
while (pos < buffer.length) {
|
|
162637
|
+
skipWhitespace();
|
|
162638
|
+
if (pos >= buffer.length)
|
|
162639
|
+
return arr;
|
|
162640
|
+
arr.push(parseValue2());
|
|
162641
|
+
skipWhitespace();
|
|
162642
|
+
if (pos >= buffer.length)
|
|
162643
|
+
return arr;
|
|
162644
|
+
if (buffer[pos] === "]") {
|
|
162645
|
+
pos += 1;
|
|
162646
|
+
return arr;
|
|
162647
|
+
} else if (buffer[pos] === ",") {
|
|
162648
|
+
pos += 1;
|
|
162649
|
+
continue;
|
|
162650
|
+
}
|
|
162651
|
+
throw new Error(`Expected ',' or ']' at position ${pos}, got '${buffer[pos]}'`);
|
|
162652
|
+
}
|
|
162653
|
+
return arr;
|
|
162654
|
+
}
|
|
162655
|
+
function parseObject3() {
|
|
162656
|
+
if (buffer[pos] !== "{")
|
|
162657
|
+
throw new Error(`Expected '{' at position ${pos}, got '${buffer[pos]}'`);
|
|
162658
|
+
const obj = {};
|
|
162659
|
+
pos += 1;
|
|
162660
|
+
skipWhitespace();
|
|
162661
|
+
if (pos >= buffer.length)
|
|
162662
|
+
return obj;
|
|
162663
|
+
if (buffer[pos] === "}") {
|
|
162664
|
+
pos += 1;
|
|
162665
|
+
return obj;
|
|
162666
|
+
}
|
|
162667
|
+
while (pos < buffer.length) {
|
|
162668
|
+
skipWhitespace();
|
|
162669
|
+
if (pos >= buffer.length)
|
|
162670
|
+
return obj;
|
|
162671
|
+
const key = parseString3();
|
|
162672
|
+
skipWhitespace();
|
|
162673
|
+
if (pos >= buffer.length)
|
|
162674
|
+
return obj;
|
|
162675
|
+
if (buffer[pos] !== ":")
|
|
162676
|
+
throw new Error(`Expected ':' at position ${pos}, got '${buffer[pos]}'`);
|
|
162677
|
+
pos += 1;
|
|
162678
|
+
skipWhitespace();
|
|
162679
|
+
if (pos >= buffer.length)
|
|
162680
|
+
return obj;
|
|
162681
|
+
obj[key] = parseValue2();
|
|
162682
|
+
skipWhitespace();
|
|
162683
|
+
if (pos >= buffer.length)
|
|
162684
|
+
return obj;
|
|
162685
|
+
if (buffer[pos] === "}") {
|
|
162686
|
+
pos += 1;
|
|
162687
|
+
return obj;
|
|
162688
|
+
} else if (buffer[pos] === ",") {
|
|
162689
|
+
pos += 1;
|
|
162690
|
+
continue;
|
|
162691
|
+
}
|
|
162692
|
+
throw new Error(`Expected ',' or '}' at position ${pos}, got '${buffer[pos]}'`);
|
|
162693
|
+
}
|
|
162694
|
+
return obj;
|
|
162695
|
+
}
|
|
162696
|
+
const value = parseValue2();
|
|
162697
|
+
skipWhitespace();
|
|
162698
|
+
if (pos < buffer.length)
|
|
162699
|
+
throw new Error(`Unexpected character '${buffer[pos]}' at position ${pos}`);
|
|
162700
|
+
return value;
|
|
162701
|
+
}
|
|
162702
|
+
function parsePartialJson(s187) {
|
|
162265
162703
|
try {
|
|
162266
|
-
|
|
162704
|
+
if (typeof s187 === "undefined")
|
|
162705
|
+
return null;
|
|
162706
|
+
return strictParsePartialJson(s187);
|
|
162267
162707
|
} catch {
|
|
162268
162708
|
return null;
|
|
162269
162709
|
}
|
|
162270
162710
|
}
|
|
162271
162711
|
|
|
162272
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
162712
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.js
|
|
162273
162713
|
function convertFileFormatToMimeType(format2) {
|
|
162274
162714
|
switch (format2) {
|
|
162275
162715
|
case "csv":
|
|
@@ -162513,7 +162953,7 @@ var ChatBedrockConverseTranslator = {
|
|
|
162513
162953
|
translateContentChunk: convertToV1FromChatBedrockConverseMessage
|
|
162514
162954
|
};
|
|
162515
162955
|
|
|
162516
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
162956
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.js
|
|
162517
162957
|
function convertToV1FromChatGoogleMessage(message) {
|
|
162518
162958
|
function* iterateContent() {
|
|
162519
162959
|
const content3 = typeof message.content === "string" ? [{
|
|
@@ -162581,7 +163021,7 @@ var ChatGoogleGenAITranslator = {
|
|
|
162581
163021
|
translateContentChunk: convertToV1FromChatGoogleMessage
|
|
162582
163022
|
};
|
|
162583
163023
|
|
|
162584
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
163024
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.js
|
|
162585
163025
|
function convertToV1FromChatVertexMessage(message) {
|
|
162586
163026
|
function* iterateContent() {
|
|
162587
163027
|
const content3 = typeof message.content === "string" ? [{
|
|
@@ -162657,7 +163097,7 @@ var ChatVertexTranslator = {
|
|
|
162657
163097
|
translateContentChunk: convertToV1FromChatVertexMessage
|
|
162658
163098
|
};
|
|
162659
163099
|
|
|
162660
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
163100
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/block_translators/index.js
|
|
162661
163101
|
globalThis.lc_block_translators_registry ??= new Map([
|
|
162662
163102
|
["anthropic", ChatAnthropicTranslator],
|
|
162663
163103
|
["bedrock-converse", ChatBedrockConverseTranslator],
|
|
@@ -162669,7 +163109,7 @@ function getTranslator(modelProvider) {
|
|
|
162669
163109
|
return globalThis.lc_block_translators_registry.get(modelProvider);
|
|
162670
163110
|
}
|
|
162671
163111
|
|
|
162672
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
163112
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/ai.js
|
|
162673
163113
|
var AIMessage = class extends BaseMessage {
|
|
162674
163114
|
type = "ai";
|
|
162675
163115
|
tool_calls = [];
|
|
@@ -162810,59 +163250,12 @@ var AIMessageChunk = class extends BaseMessageChunk {
|
|
|
162810
163250
|
tool_call_chunks: [],
|
|
162811
163251
|
usage_metadata: fields.usage_metadata !== undefined ? fields.usage_metadata : undefined
|
|
162812
163252
|
};
|
|
162813
|
-
else
|
|
162814
|
-
const toolCallChunks = fields.tool_call_chunks ?? [];
|
|
162815
|
-
const groupedToolCallChunks = toolCallChunks.reduce((acc, chunk) => {
|
|
162816
|
-
const matchedChunkIndex = acc.findIndex(([match2]) => {
|
|
162817
|
-
if ("id" in chunk && chunk.id && "index" in chunk && chunk.index !== undefined)
|
|
162818
|
-
return chunk.id === match2.id && chunk.index === match2.index;
|
|
162819
|
-
if ("id" in chunk && chunk.id)
|
|
162820
|
-
return chunk.id === match2.id;
|
|
162821
|
-
if ("index" in chunk && chunk.index !== undefined)
|
|
162822
|
-
return chunk.index === match2.index;
|
|
162823
|
-
return false;
|
|
162824
|
-
});
|
|
162825
|
-
if (matchedChunkIndex !== -1)
|
|
162826
|
-
acc[matchedChunkIndex].push(chunk);
|
|
162827
|
-
else
|
|
162828
|
-
acc.push([chunk]);
|
|
162829
|
-
return acc;
|
|
162830
|
-
}, []);
|
|
162831
|
-
const toolCalls = [];
|
|
162832
|
-
const invalidToolCalls = [];
|
|
162833
|
-
for (const chunks of groupedToolCallChunks) {
|
|
162834
|
-
let parsedArgs = null;
|
|
162835
|
-
const name = chunks[0]?.name ?? "";
|
|
162836
|
-
const joinedArgs = chunks.map((c106) => c106.args || "").join("");
|
|
162837
|
-
const argsStr = joinedArgs.length ? joinedArgs : "{}";
|
|
162838
|
-
const id = chunks[0]?.id;
|
|
162839
|
-
try {
|
|
162840
|
-
parsedArgs = parsePartialJson(argsStr);
|
|
162841
|
-
if (!id || parsedArgs === null || typeof parsedArgs !== "object" || Array.isArray(parsedArgs))
|
|
162842
|
-
throw new Error("Malformed tool call chunk args.");
|
|
162843
|
-
toolCalls.push({
|
|
162844
|
-
name,
|
|
162845
|
-
args: parsedArgs,
|
|
162846
|
-
id,
|
|
162847
|
-
type: "tool_call"
|
|
162848
|
-
});
|
|
162849
|
-
} catch {
|
|
162850
|
-
invalidToolCalls.push({
|
|
162851
|
-
name,
|
|
162852
|
-
args: argsStr,
|
|
162853
|
-
id,
|
|
162854
|
-
error: "Malformed args.",
|
|
162855
|
-
type: "invalid_tool_call"
|
|
162856
|
-
});
|
|
162857
|
-
}
|
|
162858
|
-
}
|
|
163253
|
+
else
|
|
162859
163254
|
initParams = {
|
|
162860
163255
|
...fields,
|
|
162861
|
-
|
|
162862
|
-
invalid_tool_calls: invalidToolCalls,
|
|
163256
|
+
...collapseToolCallChunks(fields.tool_call_chunks ?? []),
|
|
162863
163257
|
usage_metadata: fields.usage_metadata !== undefined ? fields.usage_metadata : undefined
|
|
162864
163258
|
};
|
|
162865
|
-
}
|
|
162866
163259
|
super(initParams);
|
|
162867
163260
|
this.tool_call_chunks = initParams.tool_call_chunks ?? this.tool_call_chunks;
|
|
162868
163261
|
this.tool_calls = initParams.tool_calls ?? this.tool_calls;
|
|
@@ -162937,263 +163330,7 @@ var AIMessageChunk = class extends BaseMessageChunk {
|
|
|
162937
163330
|
}
|
|
162938
163331
|
};
|
|
162939
163332
|
|
|
162940
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
162941
|
-
var ChatMessage = class ChatMessage2 extends BaseMessage {
|
|
162942
|
-
static lc_name() {
|
|
162943
|
-
return "ChatMessage";
|
|
162944
|
-
}
|
|
162945
|
-
type = "generic";
|
|
162946
|
-
role;
|
|
162947
|
-
static _chatMessageClass() {
|
|
162948
|
-
return ChatMessage2;
|
|
162949
|
-
}
|
|
162950
|
-
constructor(fields, role) {
|
|
162951
|
-
if (typeof fields === "string" || Array.isArray(fields))
|
|
162952
|
-
fields = {
|
|
162953
|
-
content: fields,
|
|
162954
|
-
role
|
|
162955
|
-
};
|
|
162956
|
-
super(fields);
|
|
162957
|
-
this.role = fields.role;
|
|
162958
|
-
}
|
|
162959
|
-
static isInstance(obj) {
|
|
162960
|
-
return super.isInstance(obj) && obj.type === "generic";
|
|
162961
|
-
}
|
|
162962
|
-
get _printableFields() {
|
|
162963
|
-
return {
|
|
162964
|
-
...super._printableFields,
|
|
162965
|
-
role: this.role
|
|
162966
|
-
};
|
|
162967
|
-
}
|
|
162968
|
-
};
|
|
162969
|
-
var ChatMessageChunk = class extends BaseMessageChunk {
|
|
162970
|
-
static lc_name() {
|
|
162971
|
-
return "ChatMessageChunk";
|
|
162972
|
-
}
|
|
162973
|
-
type = "generic";
|
|
162974
|
-
role;
|
|
162975
|
-
constructor(fields, role) {
|
|
162976
|
-
if (typeof fields === "string" || Array.isArray(fields))
|
|
162977
|
-
fields = {
|
|
162978
|
-
content: fields,
|
|
162979
|
-
role
|
|
162980
|
-
};
|
|
162981
|
-
super(fields);
|
|
162982
|
-
this.role = fields.role;
|
|
162983
|
-
}
|
|
162984
|
-
concat(chunk) {
|
|
162985
|
-
const Cls = this.constructor;
|
|
162986
|
-
return new Cls({
|
|
162987
|
-
content: mergeContent(this.content, chunk.content),
|
|
162988
|
-
additional_kwargs: _mergeDicts(this.additional_kwargs, chunk.additional_kwargs),
|
|
162989
|
-
response_metadata: _mergeDicts(this.response_metadata, chunk.response_metadata),
|
|
162990
|
-
role: this.role,
|
|
162991
|
-
id: this.id ?? chunk.id
|
|
162992
|
-
});
|
|
162993
|
-
}
|
|
162994
|
-
static isInstance(obj) {
|
|
162995
|
-
return super.isInstance(obj) && obj.type === "generic";
|
|
162996
|
-
}
|
|
162997
|
-
get _printableFields() {
|
|
162998
|
-
return {
|
|
162999
|
-
...super._printableFields,
|
|
163000
|
-
role: this.role
|
|
163001
|
-
};
|
|
163002
|
-
}
|
|
163003
|
-
};
|
|
163004
|
-
function isChatMessage(x4) {
|
|
163005
|
-
return x4._getType() === "generic";
|
|
163006
|
-
}
|
|
163007
|
-
function isChatMessageChunk(x4) {
|
|
163008
|
-
return x4._getType() === "generic";
|
|
163009
|
-
}
|
|
163010
|
-
|
|
163011
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.0_@opentelemetry+api@1.9.0_openai@6.9.1_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/function.js
|
|
163012
|
-
var FunctionMessage = class extends BaseMessage {
|
|
163013
|
-
static lc_name() {
|
|
163014
|
-
return "FunctionMessage";
|
|
163015
|
-
}
|
|
163016
|
-
type = "function";
|
|
163017
|
-
name;
|
|
163018
|
-
constructor(fields) {
|
|
163019
|
-
super(fields);
|
|
163020
|
-
this.name = fields.name;
|
|
163021
|
-
}
|
|
163022
|
-
};
|
|
163023
|
-
var FunctionMessageChunk = class extends BaseMessageChunk {
|
|
163024
|
-
static lc_name() {
|
|
163025
|
-
return "FunctionMessageChunk";
|
|
163026
|
-
}
|
|
163027
|
-
type = "function";
|
|
163028
|
-
concat(chunk) {
|
|
163029
|
-
const Cls = this.constructor;
|
|
163030
|
-
return new Cls({
|
|
163031
|
-
content: mergeContent(this.content, chunk.content),
|
|
163032
|
-
additional_kwargs: _mergeDicts(this.additional_kwargs, chunk.additional_kwargs),
|
|
163033
|
-
response_metadata: _mergeDicts(this.response_metadata, chunk.response_metadata),
|
|
163034
|
-
name: this.name ?? "",
|
|
163035
|
-
id: this.id ?? chunk.id
|
|
163036
|
-
});
|
|
163037
|
-
}
|
|
163038
|
-
};
|
|
163039
|
-
function isFunctionMessage(x4) {
|
|
163040
|
-
return x4._getType() === "function";
|
|
163041
|
-
}
|
|
163042
|
-
function isFunctionMessageChunk(x4) {
|
|
163043
|
-
return x4._getType() === "function";
|
|
163044
|
-
}
|
|
163045
|
-
|
|
163046
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.0_@opentelemetry+api@1.9.0_openai@6.9.1_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/human.js
|
|
163047
|
-
var HumanMessage = class extends BaseMessage {
|
|
163048
|
-
static lc_name() {
|
|
163049
|
-
return "HumanMessage";
|
|
163050
|
-
}
|
|
163051
|
-
type = "human";
|
|
163052
|
-
constructor(fields) {
|
|
163053
|
-
super(fields);
|
|
163054
|
-
}
|
|
163055
|
-
static isInstance(obj) {
|
|
163056
|
-
return super.isInstance(obj) && obj.type === "human";
|
|
163057
|
-
}
|
|
163058
|
-
};
|
|
163059
|
-
var HumanMessageChunk = class extends BaseMessageChunk {
|
|
163060
|
-
static lc_name() {
|
|
163061
|
-
return "HumanMessageChunk";
|
|
163062
|
-
}
|
|
163063
|
-
type = "human";
|
|
163064
|
-
constructor(fields) {
|
|
163065
|
-
super(fields);
|
|
163066
|
-
}
|
|
163067
|
-
concat(chunk) {
|
|
163068
|
-
const Cls = this.constructor;
|
|
163069
|
-
return new Cls({
|
|
163070
|
-
content: mergeContent(this.content, chunk.content),
|
|
163071
|
-
additional_kwargs: _mergeDicts(this.additional_kwargs, chunk.additional_kwargs),
|
|
163072
|
-
response_metadata: _mergeDicts(this.response_metadata, chunk.response_metadata),
|
|
163073
|
-
id: this.id ?? chunk.id
|
|
163074
|
-
});
|
|
163075
|
-
}
|
|
163076
|
-
static isInstance(obj) {
|
|
163077
|
-
return super.isInstance(obj) && obj.type === "human";
|
|
163078
|
-
}
|
|
163079
|
-
};
|
|
163080
|
-
function isHumanMessage(x4) {
|
|
163081
|
-
return x4.getType() === "human";
|
|
163082
|
-
}
|
|
163083
|
-
function isHumanMessageChunk(x4) {
|
|
163084
|
-
return x4.getType() === "human";
|
|
163085
|
-
}
|
|
163086
|
-
|
|
163087
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.0_@opentelemetry+api@1.9.0_openai@6.9.1_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/system.js
|
|
163088
|
-
var SystemMessage = class SystemMessage2 extends BaseMessage {
|
|
163089
|
-
static lc_name() {
|
|
163090
|
-
return "SystemMessage";
|
|
163091
|
-
}
|
|
163092
|
-
type = "system";
|
|
163093
|
-
constructor(fields) {
|
|
163094
|
-
super(fields);
|
|
163095
|
-
}
|
|
163096
|
-
concat(chunk) {
|
|
163097
|
-
if (typeof chunk === "string")
|
|
163098
|
-
return new SystemMessage2({
|
|
163099
|
-
...this,
|
|
163100
|
-
content: mergeContent(this.content, chunk)
|
|
163101
|
-
});
|
|
163102
|
-
if (SystemMessage2.isInstance(chunk))
|
|
163103
|
-
return new SystemMessage2({
|
|
163104
|
-
...this,
|
|
163105
|
-
additional_kwargs: {
|
|
163106
|
-
...this.additional_kwargs,
|
|
163107
|
-
...chunk.additional_kwargs
|
|
163108
|
-
},
|
|
163109
|
-
response_metadata: {
|
|
163110
|
-
...this.response_metadata,
|
|
163111
|
-
...chunk.response_metadata
|
|
163112
|
-
},
|
|
163113
|
-
content: mergeContent(this.content, chunk.content)
|
|
163114
|
-
});
|
|
163115
|
-
throw new Error("Unexpected chunk type for system message");
|
|
163116
|
-
}
|
|
163117
|
-
static isInstance(obj) {
|
|
163118
|
-
return super.isInstance(obj) && obj.type === "system";
|
|
163119
|
-
}
|
|
163120
|
-
};
|
|
163121
|
-
var SystemMessageChunk = class extends BaseMessageChunk {
|
|
163122
|
-
static lc_name() {
|
|
163123
|
-
return "SystemMessageChunk";
|
|
163124
|
-
}
|
|
163125
|
-
type = "system";
|
|
163126
|
-
constructor(fields) {
|
|
163127
|
-
super(fields);
|
|
163128
|
-
}
|
|
163129
|
-
concat(chunk) {
|
|
163130
|
-
const Cls = this.constructor;
|
|
163131
|
-
return new Cls({
|
|
163132
|
-
content: mergeContent(this.content, chunk.content),
|
|
163133
|
-
additional_kwargs: _mergeDicts(this.additional_kwargs, chunk.additional_kwargs),
|
|
163134
|
-
response_metadata: _mergeDicts(this.response_metadata, chunk.response_metadata),
|
|
163135
|
-
id: this.id ?? chunk.id
|
|
163136
|
-
});
|
|
163137
|
-
}
|
|
163138
|
-
static isInstance(obj) {
|
|
163139
|
-
return super.isInstance(obj) && obj.type === "system";
|
|
163140
|
-
}
|
|
163141
|
-
};
|
|
163142
|
-
function isSystemMessage(x4) {
|
|
163143
|
-
return x4._getType() === "system";
|
|
163144
|
-
}
|
|
163145
|
-
function isSystemMessageChunk(x4) {
|
|
163146
|
-
return x4._getType() === "system";
|
|
163147
|
-
}
|
|
163148
|
-
|
|
163149
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.0_@opentelemetry+api@1.9.0_openai@6.9.1_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/modifier.js
|
|
163150
|
-
var RemoveMessage = class extends BaseMessage {
|
|
163151
|
-
type = "remove";
|
|
163152
|
-
id;
|
|
163153
|
-
constructor(fields) {
|
|
163154
|
-
super({
|
|
163155
|
-
...fields,
|
|
163156
|
-
content: []
|
|
163157
|
-
});
|
|
163158
|
-
this.id = fields.id;
|
|
163159
|
-
}
|
|
163160
|
-
get _printableFields() {
|
|
163161
|
-
return {
|
|
163162
|
-
...super._printableFields,
|
|
163163
|
-
id: this.id
|
|
163164
|
-
};
|
|
163165
|
-
}
|
|
163166
|
-
static isInstance(obj) {
|
|
163167
|
-
return super.isInstance(obj) && obj.type === "remove";
|
|
163168
|
-
}
|
|
163169
|
-
};
|
|
163170
|
-
|
|
163171
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.0_@opentelemetry+api@1.9.0_openai@6.9.1_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/errors/index.js
|
|
163172
|
-
function addLangChainErrorFields2(error2, lc_error_code) {
|
|
163173
|
-
error2.lc_error_code = lc_error_code;
|
|
163174
|
-
error2.message = `${error2.message}
|
|
163175
|
-
|
|
163176
|
-
Troubleshooting URL: https://docs.langchain.com/oss/javascript/langchain/errors/${lc_error_code}/
|
|
163177
|
-
`;
|
|
163178
|
-
return error2;
|
|
163179
|
-
}
|
|
163180
|
-
|
|
163181
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.0_@opentelemetry+api@1.9.0_openai@6.9.1_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tools/utils.js
|
|
163182
|
-
function _isToolCall(toolCall) {
|
|
163183
|
-
return !!(toolCall && typeof toolCall === "object" && ("type" in toolCall) && toolCall.type === "tool_call");
|
|
163184
|
-
}
|
|
163185
|
-
function _configHasToolCallId(config) {
|
|
163186
|
-
return !!(config && typeof config === "object" && ("toolCall" in config) && config.toolCall != null && typeof config.toolCall === "object" && ("id" in config.toolCall) && typeof config.toolCall.id === "string");
|
|
163187
|
-
}
|
|
163188
|
-
var ToolInputParsingException = class extends Error {
|
|
163189
|
-
output;
|
|
163190
|
-
constructor(message, output) {
|
|
163191
|
-
super(message);
|
|
163192
|
-
this.output = output;
|
|
163193
|
-
}
|
|
163194
|
-
};
|
|
163195
|
-
|
|
163196
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.0_@opentelemetry+api@1.9.0_openai@6.9.1_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/utils.js
|
|
163333
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/utils.js
|
|
163197
163334
|
var iife2 = (fn2) => fn2();
|
|
163198
163335
|
function _coerceToolCall(toolCall) {
|
|
163199
163336
|
if (_isToolCall(toolCall))
|
|
@@ -163390,8 +163527,59 @@ function convertToChunk(message) {
|
|
|
163390
163527
|
else
|
|
163391
163528
|
throw new Error("Unknown message type.");
|
|
163392
163529
|
}
|
|
163530
|
+
function collapseToolCallChunks(chunks) {
|
|
163531
|
+
const groupedToolCallChunks = chunks.reduce((acc, chunk) => {
|
|
163532
|
+
const matchedChunkIndex = acc.findIndex(([match2]) => {
|
|
163533
|
+
if ("id" in chunk && chunk.id && "index" in chunk && chunk.index !== undefined)
|
|
163534
|
+
return chunk.id === match2.id && chunk.index === match2.index;
|
|
163535
|
+
if ("id" in chunk && chunk.id)
|
|
163536
|
+
return chunk.id === match2.id;
|
|
163537
|
+
if ("index" in chunk && chunk.index !== undefined)
|
|
163538
|
+
return chunk.index === match2.index;
|
|
163539
|
+
return false;
|
|
163540
|
+
});
|
|
163541
|
+
if (matchedChunkIndex !== -1)
|
|
163542
|
+
acc[matchedChunkIndex].push(chunk);
|
|
163543
|
+
else
|
|
163544
|
+
acc.push([chunk]);
|
|
163545
|
+
return acc;
|
|
163546
|
+
}, []);
|
|
163547
|
+
const toolCalls = [];
|
|
163548
|
+
const invalidToolCalls = [];
|
|
163549
|
+
for (const chunks$1 of groupedToolCallChunks) {
|
|
163550
|
+
let parsedArgs = null;
|
|
163551
|
+
const name = chunks$1[0]?.name ?? "";
|
|
163552
|
+
const joinedArgs = chunks$1.map((c106) => c106.args || "").join("").trim();
|
|
163553
|
+
const argsStr = joinedArgs.length ? joinedArgs : "{}";
|
|
163554
|
+
const id = chunks$1[0]?.id;
|
|
163555
|
+
try {
|
|
163556
|
+
parsedArgs = parsePartialJson(argsStr);
|
|
163557
|
+
if (!id || parsedArgs === null || typeof parsedArgs !== "object" || Array.isArray(parsedArgs))
|
|
163558
|
+
throw new Error("Malformed tool call chunk args.");
|
|
163559
|
+
toolCalls.push({
|
|
163560
|
+
name,
|
|
163561
|
+
args: parsedArgs,
|
|
163562
|
+
id,
|
|
163563
|
+
type: "tool_call"
|
|
163564
|
+
});
|
|
163565
|
+
} catch {
|
|
163566
|
+
invalidToolCalls.push({
|
|
163567
|
+
name,
|
|
163568
|
+
args: argsStr,
|
|
163569
|
+
id,
|
|
163570
|
+
error: "Malformed args.",
|
|
163571
|
+
type: "invalid_tool_call"
|
|
163572
|
+
});
|
|
163573
|
+
}
|
|
163574
|
+
}
|
|
163575
|
+
return {
|
|
163576
|
+
tool_call_chunks: chunks,
|
|
163577
|
+
tool_calls: toolCalls,
|
|
163578
|
+
invalid_tool_calls: invalidToolCalls
|
|
163579
|
+
};
|
|
163580
|
+
}
|
|
163393
163581
|
|
|
163394
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
163582
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/singletons/async_local_storage/globals.js
|
|
163395
163583
|
var TRACING_ALS_KEY = Symbol.for("ls:tracing_async_local_storage");
|
|
163396
163584
|
var _CONTEXT_VARIABLES_KEY = Symbol.for("lc:context_variables");
|
|
163397
163585
|
var setGlobalAsyncLocalStorageInstance = (instance) => {
|
|
@@ -163401,7 +163589,7 @@ var getGlobalAsyncLocalStorageInstance = () => {
|
|
|
163401
163589
|
return globalThis[TRACING_ALS_KEY];
|
|
163402
163590
|
};
|
|
163403
163591
|
|
|
163404
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
163592
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/env.js
|
|
163405
163593
|
var env_exports = {};
|
|
163406
163594
|
__export2(env_exports, {
|
|
163407
163595
|
getEnv: () => getEnv,
|
|
@@ -163475,7 +163663,7 @@ var validate2 = import_dist.default.validate;
|
|
|
163475
163663
|
var stringify4 = import_dist.default.stringify;
|
|
163476
163664
|
var parse7 = import_dist.default.parse;
|
|
163477
163665
|
|
|
163478
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
163666
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/callbacks/base.js
|
|
163479
163667
|
var base_exports = {};
|
|
163480
163668
|
__export2(base_exports, {
|
|
163481
163669
|
BaseCallbackHandler: () => BaseCallbackHandler,
|
|
@@ -163547,7 +163735,7 @@ var BaseCallbackHandler = class extends BaseCallbackHandlerMethodsClass {
|
|
|
163547
163735
|
static fromMethods(methods) {
|
|
163548
163736
|
|
|
163549
163737
|
class Handler extends BaseCallbackHandler {
|
|
163550
|
-
name =
|
|
163738
|
+
name = v7();
|
|
163551
163739
|
constructor() {
|
|
163552
163740
|
super();
|
|
163553
163741
|
Object.assign(this, methods);
|
|
@@ -163561,7 +163749,7 @@ var isBaseCallbackHandler = (x4) => {
|
|
|
163561
163749
|
return callbackHandler !== undefined && typeof callbackHandler.copy === "function" && typeof callbackHandler.name === "string" && typeof callbackHandler.awaitHandlers === "boolean";
|
|
163562
163750
|
};
|
|
163563
163751
|
|
|
163564
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
163752
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js
|
|
163565
163753
|
var GEN_AI_OPERATION_NAME = "gen_ai.operation.name";
|
|
163566
163754
|
var GEN_AI_SYSTEM = "gen_ai.system";
|
|
163567
163755
|
var GEN_AI_REQUEST_MODEL = "gen_ai.request.model";
|
|
@@ -163595,7 +163783,7 @@ var LANGSMITH_METADATA = "langsmith.metadata";
|
|
|
163595
163783
|
var LANGSMITH_TAGS = "langsmith.span.tags";
|
|
163596
163784
|
var LANGSMITH_REQUEST_STREAMING = "langsmith.request.streaming";
|
|
163597
163785
|
var LANGSMITH_REQUEST_HEADERS = "langsmith.request.headers";
|
|
163598
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
163786
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js
|
|
163599
163787
|
var DEFAULT_FETCH_IMPLEMENTATION = (...args) => fetch(...args);
|
|
163600
163788
|
var LANGSMITH_FETCH_IMPLEMENTATION_KEY = Symbol.for("ls:fetch_implementation");
|
|
163601
163789
|
var _globalFetchImplementationIsNodeFetch = () => {
|
|
@@ -163617,11 +163805,11 @@ var _getFetchImplementation = (debug2) => {
|
|
|
163617
163805
|
return res;
|
|
163618
163806
|
};
|
|
163619
163807
|
};
|
|
163620
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
163808
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/project.js
|
|
163621
163809
|
var getDefaultProjectName = () => {
|
|
163622
163810
|
return getLangSmithEnvironmentVariable("PROJECT") ?? getEnvironmentVariable2("LANGCHAIN_SESSION") ?? "default";
|
|
163623
163811
|
};
|
|
163624
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
163812
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js
|
|
163625
163813
|
var warnedMessages = {};
|
|
163626
163814
|
function warnOnce(message) {
|
|
163627
163815
|
if (!warnedMessages[message]) {
|
|
@@ -163630,7 +163818,7 @@ function warnOnce(message) {
|
|
|
163630
163818
|
}
|
|
163631
163819
|
}
|
|
163632
163820
|
|
|
163633
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
163821
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js
|
|
163634
163822
|
var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
163635
163823
|
function assertUuid(str3, which) {
|
|
163636
163824
|
if (!UUID_REGEX.test(str3)) {
|
|
@@ -163643,10 +163831,10 @@ function uuid7FromTime(timestamp2) {
|
|
|
163643
163831
|
const msecs = typeof timestamp2 === "string" ? Date.parse(timestamp2) : timestamp2;
|
|
163644
163832
|
return v7({ msecs, seq: 0 });
|
|
163645
163833
|
}
|
|
163646
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
163647
|
-
var __version__ = "0.3.
|
|
163834
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/index.js
|
|
163835
|
+
var __version__ = "0.3.87";
|
|
163648
163836
|
|
|
163649
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
163837
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/env.js
|
|
163650
163838
|
var globalEnv;
|
|
163651
163839
|
var isBrowser2 = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
163652
163840
|
var isWebWorker2 = () => typeof globalThis === "object" && globalThis.constructor && globalThis.constructor.name === "DedicatedWorkerGlobalScope";
|
|
@@ -163782,7 +163970,7 @@ function getOtelEnabled() {
|
|
|
163782
163970
|
return getEnvironmentVariable2("OTEL_ENABLED") === "true" || getLangSmithEnvironmentVariable("OTEL_ENABLED") === "true";
|
|
163783
163971
|
}
|
|
163784
163972
|
|
|
163785
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
163973
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js
|
|
163786
163974
|
class MockTracer {
|
|
163787
163975
|
constructor() {
|
|
163788
163976
|
Object.defineProperty(this, "hasWarned", {
|
|
@@ -163891,7 +164079,7 @@ function getDefaultOTLPTracerComponents() {
|
|
|
163891
164079
|
return OTELProviderSingleton.getDefaultOTLPTracerComponents();
|
|
163892
164080
|
}
|
|
163893
164081
|
|
|
163894
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
164082
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js
|
|
163895
164083
|
var WELL_KNOWN_OPERATION_NAMES = {
|
|
163896
164084
|
llm: "chat",
|
|
163897
164085
|
tool: "execute_tool",
|
|
@@ -164231,7 +164419,7 @@ class LangSmithToOTELTranslator {
|
|
|
164231
164419
|
}
|
|
164232
164420
|
}
|
|
164233
164421
|
|
|
164234
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
164422
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/is-network-error/index.js
|
|
164235
164423
|
var objectToString = Object.prototype.toString;
|
|
164236
164424
|
var isError = (value) => objectToString.call(value) === "[object Error]";
|
|
164237
164425
|
var errorMessages = new Set([
|
|
@@ -164260,7 +164448,7 @@ function isNetworkError(error2) {
|
|
|
164260
164448
|
return errorMessages.has(message);
|
|
164261
164449
|
}
|
|
164262
164450
|
|
|
164263
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
164451
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/p-retry/index.js
|
|
164264
164452
|
function validateRetries(retries) {
|
|
164265
164453
|
if (typeof retries === "number") {
|
|
164266
164454
|
if (retries < 0) {
|
|
@@ -164433,7 +164621,7 @@ async function pRetry(input, options = {}) {
|
|
|
164433
164621
|
throw new Error("Retry attempts exhausted without throwing an error.");
|
|
164434
164622
|
}
|
|
164435
164623
|
|
|
164436
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
164624
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js
|
|
164437
164625
|
var import_p_queue = __toESM(require_dist3(), 1);
|
|
164438
164626
|
var STATUS_RETRYABLE = [
|
|
164439
164627
|
408,
|
|
@@ -164557,7 +164745,7 @@ class AsyncCaller {
|
|
|
164557
164745
|
}
|
|
164558
164746
|
}
|
|
164559
164747
|
|
|
164560
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
164748
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js
|
|
164561
164749
|
function isLangChainMessage(message) {
|
|
164562
164750
|
return typeof message?._getType === "function";
|
|
164563
164751
|
}
|
|
@@ -164572,7 +164760,7 @@ function convertLangChainMessageToExample(message) {
|
|
|
164572
164760
|
return converted;
|
|
164573
164761
|
}
|
|
164574
164762
|
|
|
164575
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
164763
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js
|
|
164576
164764
|
var import_semver = __toESM(require_semver2(), 1);
|
|
164577
164765
|
function parsePromptIdentifier(identifier) {
|
|
164578
164766
|
if (!identifier || identifier.split("/").length > 2 || identifier.startsWith("/") || identifier.endsWith("/") || identifier.split(":").length > 2) {
|
|
@@ -164594,7 +164782,7 @@ function parsePromptIdentifier(identifier) {
|
|
|
164594
164782
|
}
|
|
164595
164783
|
}
|
|
164596
164784
|
|
|
164597
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
164785
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/error.js
|
|
164598
164786
|
class LangSmithConflictError extends Error {
|
|
164599
164787
|
constructor(message) {
|
|
164600
164788
|
super(message);
|
|
@@ -164662,7 +164850,7 @@ function isConflictingEndpointsError(err) {
|
|
|
164662
164850
|
return typeof err === "object" && err !== null && err.code === ERR_CONFLICTING_ENDPOINTS;
|
|
164663
164851
|
}
|
|
164664
164852
|
|
|
164665
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
164853
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js
|
|
164666
164854
|
var LIMIT_REPLACE_NODE = "[...]";
|
|
164667
164855
|
var CIRCULAR_REPLACE_NODE = { result: "[Circular]" };
|
|
164668
164856
|
var arr = [];
|
|
@@ -164814,8 +165002,11 @@ function replaceGetterValues(replacer) {
|
|
|
164814
165002
|
};
|
|
164815
165003
|
}
|
|
164816
165004
|
|
|
164817
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
164818
|
-
function mergeRuntimeEnvIntoRun(run, cachedEnvVars) {
|
|
165005
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/client.js
|
|
165006
|
+
function mergeRuntimeEnvIntoRun(run, cachedEnvVars, omitTracedRuntimeInfo) {
|
|
165007
|
+
if (omitTracedRuntimeInfo) {
|
|
165008
|
+
return run;
|
|
165009
|
+
}
|
|
164819
165010
|
const runtimeEnv = getRuntimeEnvironment2();
|
|
164820
165011
|
const envVars = cachedEnvVars ?? getLangSmithEnvVarsMetadata();
|
|
164821
165012
|
const extra = run.extra ?? {};
|
|
@@ -165035,6 +165226,12 @@ class Client {
|
|
|
165035
165226
|
writable: true,
|
|
165036
165227
|
value: undefined
|
|
165037
165228
|
});
|
|
165229
|
+
Object.defineProperty(this, "omitTracedRuntimeInfo", {
|
|
165230
|
+
enumerable: true,
|
|
165231
|
+
configurable: true,
|
|
165232
|
+
writable: true,
|
|
165233
|
+
value: undefined
|
|
165234
|
+
});
|
|
165038
165235
|
Object.defineProperty(this, "tracingSampleRate", {
|
|
165039
165236
|
enumerable: true,
|
|
165040
165237
|
configurable: true,
|
|
@@ -165190,6 +165387,7 @@ class Client {
|
|
|
165190
165387
|
});
|
|
165191
165388
|
this.hideInputs = config.hideInputs ?? config.anonymizer ?? defaultConfig.hideInputs;
|
|
165192
165389
|
this.hideOutputs = config.hideOutputs ?? config.anonymizer ?? defaultConfig.hideOutputs;
|
|
165390
|
+
this.omitTracedRuntimeInfo = config.omitTracedRuntimeInfo ?? false;
|
|
165193
165391
|
this.autoBatchTracing = config.autoBatchTracing ?? this.autoBatchTracing;
|
|
165194
165392
|
this.autoBatchQueue = new AutoBatchQueue(maxMemory);
|
|
165195
165393
|
this.blockOnRootRunFinalization = config.blockOnRootRunFinalization ?? this.blockOnRootRunFinalization;
|
|
@@ -165520,7 +165718,7 @@ class Client {
|
|
|
165520
165718
|
async processRunOperation(item) {
|
|
165521
165719
|
clearTimeout(this.autoBatchTimeout);
|
|
165522
165720
|
this.autoBatchTimeout = undefined;
|
|
165523
|
-
item.item = mergeRuntimeEnvIntoRun(item.item, this.cachedLSEnvVarsForMetadata);
|
|
165721
|
+
item.item = mergeRuntimeEnvIntoRun(item.item, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
|
|
165524
165722
|
const itemPromise = this.autoBatchQueue.push(item);
|
|
165525
165723
|
if (this.manualFlushMode) {
|
|
165526
165724
|
return itemPromise;
|
|
@@ -165635,7 +165833,7 @@ class Client {
|
|
|
165635
165833
|
}).catch(console.error);
|
|
165636
165834
|
return;
|
|
165637
165835
|
}
|
|
165638
|
-
const mergedRunCreateParam = mergeRuntimeEnvIntoRun(runCreate, this.cachedLSEnvVarsForMetadata);
|
|
165836
|
+
const mergedRunCreateParam = mergeRuntimeEnvIntoRun(runCreate, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
|
|
165639
165837
|
if (options?.apiKey !== undefined) {
|
|
165640
165838
|
headers["x-api-key"] = options.apiKey;
|
|
165641
165839
|
}
|
|
@@ -167123,6 +167321,39 @@ Message: ${Array.isArray(result.detail) ? result.detail.join(`
|
|
|
167123
167321
|
return res;
|
|
167124
167322
|
});
|
|
167125
167323
|
}
|
|
167324
|
+
async deleteExamples(exampleIds, options) {
|
|
167325
|
+
exampleIds.forEach((id) => assertUuid(id));
|
|
167326
|
+
if (options?.hardDelete) {
|
|
167327
|
+
const path5 = this._getPlatformEndpointPath("datasets/examples/delete");
|
|
167328
|
+
await this.caller.call(async () => {
|
|
167329
|
+
const res = await this._fetch(`${this.apiUrl}${path5}`, {
|
|
167330
|
+
method: "POST",
|
|
167331
|
+
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
167332
|
+
body: JSON.stringify({
|
|
167333
|
+
example_ids: exampleIds,
|
|
167334
|
+
hard_delete: true
|
|
167335
|
+
}),
|
|
167336
|
+
signal: AbortSignal.timeout(this.timeout_ms),
|
|
167337
|
+
...this.fetchOptions
|
|
167338
|
+
});
|
|
167339
|
+
await raiseForStatus(res, "hard delete examples", true);
|
|
167340
|
+
return res;
|
|
167341
|
+
});
|
|
167342
|
+
} else {
|
|
167343
|
+
const params2 = new URLSearchParams;
|
|
167344
|
+
exampleIds.forEach((id) => params2.append("example_ids", id));
|
|
167345
|
+
await this.caller.call(async () => {
|
|
167346
|
+
const res = await this._fetch(`${this.apiUrl}/examples?${params2.toString()}`, {
|
|
167347
|
+
method: "DELETE",
|
|
167348
|
+
headers: this.headers,
|
|
167349
|
+
signal: AbortSignal.timeout(this.timeout_ms),
|
|
167350
|
+
...this.fetchOptions
|
|
167351
|
+
});
|
|
167352
|
+
await raiseForStatus(res, "delete examples", true);
|
|
167353
|
+
return res;
|
|
167354
|
+
});
|
|
167355
|
+
}
|
|
167356
|
+
}
|
|
167126
167357
|
async updateExample(exampleIdOrUpdate, update) {
|
|
167127
167358
|
let exampleId;
|
|
167128
167359
|
if (update) {
|
|
@@ -168131,7 +168362,7 @@ function isExampleCreate(input) {
|
|
|
168131
168362
|
return "dataset_id" in input || "dataset_name" in input;
|
|
168132
168363
|
}
|
|
168133
168364
|
|
|
168134
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
168365
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/env.js
|
|
168135
168366
|
var isTracingEnabled = (tracingEnabled) => {
|
|
168136
168367
|
if (tracingEnabled !== undefined) {
|
|
168137
168368
|
return tracingEnabled;
|
|
@@ -168140,11 +168371,11 @@ var isTracingEnabled = (tracingEnabled) => {
|
|
|
168140
168371
|
return !!envVars.find((envVar) => getLangSmithEnvironmentVariable(envVar) === "true");
|
|
168141
168372
|
};
|
|
168142
168373
|
|
|
168143
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
168374
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js
|
|
168144
168375
|
var _LC_CONTEXT_VARIABLES_KEY = Symbol.for("lc:context_variables");
|
|
168145
168376
|
var _REPLICA_TRACE_ROOTS_KEY = Symbol.for("langsmith:replica_trace_roots");
|
|
168146
168377
|
|
|
168147
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
168378
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/utils/context_vars.js
|
|
168148
168379
|
function getContextVar(runTree, key) {
|
|
168149
168380
|
if (_LC_CONTEXT_VARIABLES_KEY in runTree) {
|
|
168150
168381
|
const contextVars = runTree[_LC_CONTEXT_VARIABLES_KEY];
|
|
@@ -168158,7 +168389,7 @@ function setContextVar(runTree, key, value) {
|
|
|
168158
168389
|
runTree[_LC_CONTEXT_VARIABLES_KEY] = contextVars;
|
|
168159
168390
|
}
|
|
168160
168391
|
|
|
168161
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
168392
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/run_trees.js
|
|
168162
168393
|
var TIMESTAMP_LENGTH = 36;
|
|
168163
168394
|
var UUID_NAMESPACE_DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
168164
168395
|
function getReplicaKey(replica) {
|
|
@@ -168939,7 +169170,8 @@ function isCallbackManagerLike(x4) {
|
|
|
168939
169170
|
return typeof x4 === "object" && x4 != null && Array.isArray(x4.handlers);
|
|
168940
169171
|
}
|
|
168941
169172
|
function isRunnableConfigLike(x4) {
|
|
168942
|
-
|
|
169173
|
+
const callbacks = x4?.callbacks;
|
|
169174
|
+
return x4 != null && typeof callbacks === "object" && (containsLangChainTracerLike(callbacks?.handlers) || containsLangChainTracerLike(callbacks));
|
|
168943
169175
|
}
|
|
168944
169176
|
function _getWriteReplicasFromEnv() {
|
|
168945
169177
|
const envVar = getEnvironmentVariable2("LANGSMITH_RUNS_ENDPOINTS");
|
|
@@ -169015,7 +169247,7 @@ function _checkEndpointEnvUnset(parsed) {
|
|
|
169015
169247
|
throw new ConflictingEndpointsError;
|
|
169016
169248
|
}
|
|
169017
169249
|
}
|
|
169018
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169250
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tracers/base.js
|
|
169019
169251
|
var base_exports2 = {};
|
|
169020
169252
|
__export2(base_exports2, {
|
|
169021
169253
|
BaseTracer: () => BaseTracer,
|
|
@@ -169080,7 +169312,7 @@ ${error2.stack}` : "");
|
|
|
169080
169312
|
const { dottedOrder: currentDottedOrder, microsecondPrecisionDatestring } = convertToDottedOrderFormat(new Date(run.start_time).getTime(), run.id, run.execution_order);
|
|
169081
169313
|
const storedRun = { ...run };
|
|
169082
169314
|
const parentRun = this.getRunById(storedRun.parent_run_id);
|
|
169083
|
-
if (storedRun.parent_run_id !== undefined)
|
|
169315
|
+
if (storedRun.parent_run_id !== undefined)
|
|
169084
169316
|
if (parentRun) {
|
|
169085
169317
|
this._addChildRun(parentRun, storedRun);
|
|
169086
169318
|
parentRun.child_execution_order = Math.max(parentRun.child_execution_order, storedRun.child_execution_order);
|
|
@@ -169089,8 +169321,9 @@ ${error2.stack}` : "");
|
|
|
169089
169321
|
storedRun.dotted_order = [parentRun.dotted_order, currentDottedOrder].join(".");
|
|
169090
169322
|
storedRun._serialized_start_time = microsecondPrecisionDatestring;
|
|
169091
169323
|
}
|
|
169092
|
-
}
|
|
169093
|
-
|
|
169324
|
+
} else
|
|
169325
|
+
storedRun.parent_run_id = undefined;
|
|
169326
|
+
else {
|
|
169094
169327
|
storedRun.trace_id = storedRun.id;
|
|
169095
169328
|
storedRun.dotted_order = currentDottedOrder;
|
|
169096
169329
|
storedRun._serialized_start_time = microsecondPrecisionDatestring;
|
|
@@ -169452,7 +169685,7 @@ ${error2.stack}` : "");
|
|
|
169452
169685
|
}
|
|
169453
169686
|
};
|
|
169454
169687
|
|
|
169455
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169688
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tracers/console.js
|
|
169456
169689
|
var import_ansi_styles = __toESM(require_ansi_styles(), 1);
|
|
169457
169690
|
var console_exports = {};
|
|
169458
169691
|
__export2(console_exports, { ConsoleCallbackHandler: () => ConsoleCallbackHandler });
|
|
@@ -169563,7 +169796,7 @@ var ConsoleCallbackHandler = class extends BaseTracer {
|
|
|
169563
169796
|
console.log(`${wrap3(color2.blue, "[agent/action]")} [${crumbs}] Agent selected action: ${tryJsonStringify(agentRun.actions[agentRun.actions.length - 1], "[action]")}`);
|
|
169564
169797
|
}
|
|
169565
169798
|
};
|
|
169566
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169799
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/singletons/tracer.js
|
|
169567
169800
|
var client;
|
|
169568
169801
|
var getDefaultLangChainClientSingleton = () => {
|
|
169569
169802
|
if (client === undefined) {
|
|
@@ -169573,7 +169806,7 @@ var getDefaultLangChainClientSingleton = () => {
|
|
|
169573
169806
|
return client;
|
|
169574
169807
|
};
|
|
169575
169808
|
|
|
169576
|
-
// ../../node_modules/.pnpm/langsmith@0.3.
|
|
169809
|
+
// ../../node_modules/.pnpm/langsmith@0.3.87_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/singletons/traceable.js
|
|
169577
169810
|
class MockAsyncLocalStorage {
|
|
169578
169811
|
getStore() {
|
|
169579
169812
|
return;
|
|
@@ -169609,7 +169842,7 @@ var ROOT = Symbol.for("langsmith:traceable:root");
|
|
|
169609
169842
|
function isTraceableFunction(x4) {
|
|
169610
169843
|
return typeof x4 === "function" && "langsmith:traceable" in x4;
|
|
169611
169844
|
}
|
|
169612
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169845
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tracers/tracer_langchain.js
|
|
169613
169846
|
var tracer_langchain_exports = {};
|
|
169614
169847
|
__export2(tracer_langchain_exports, { LangChainTracer: () => LangChainTracer });
|
|
169615
169848
|
var LangChainTracer = class LangChainTracer2 extends BaseTracer {
|
|
@@ -169692,7 +169925,7 @@ var LangChainTracer = class LangChainTracer2 extends BaseTracer {
|
|
|
169692
169925
|
}
|
|
169693
169926
|
};
|
|
169694
169927
|
|
|
169695
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169928
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/singletons/callbacks.js
|
|
169696
169929
|
var import_p_queue2 = __toESM(require_dist3(), 1);
|
|
169697
169930
|
var queue;
|
|
169698
169931
|
function createQueue() {
|
|
@@ -169730,14 +169963,14 @@ async function awaitAllCallbacks() {
|
|
|
169730
169963
|
await Promise.allSettled([typeof queue !== "undefined" ? queue.onIdle() : Promise.resolve(), defaultClient.awaitPendingTraceBatches()]);
|
|
169731
169964
|
}
|
|
169732
169965
|
|
|
169733
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169966
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/callbacks/promises.js
|
|
169734
169967
|
var promises_exports = {};
|
|
169735
169968
|
__export2(promises_exports, {
|
|
169736
169969
|
awaitAllCallbacks: () => awaitAllCallbacks,
|
|
169737
169970
|
consumeCallback: () => consumeCallback
|
|
169738
169971
|
});
|
|
169739
169972
|
|
|
169740
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169973
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/callbacks.js
|
|
169741
169974
|
var isTracingEnabled2 = (tracingEnabled) => {
|
|
169742
169975
|
if (tracingEnabled !== undefined)
|
|
169743
169976
|
return tracingEnabled;
|
|
@@ -169750,7 +169983,7 @@ var isTracingEnabled2 = (tracingEnabled) => {
|
|
|
169750
169983
|
return !!envVars.find((envVar) => getEnvironmentVariable(envVar) === "true");
|
|
169751
169984
|
};
|
|
169752
169985
|
|
|
169753
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169986
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/singletons/async_local_storage/context.js
|
|
169754
169987
|
function getContextVariable(name) {
|
|
169755
169988
|
const asyncLocalStorageInstance = getGlobalAsyncLocalStorageInstance();
|
|
169756
169989
|
if (asyncLocalStorageInstance === undefined)
|
|
@@ -169761,7 +169994,7 @@ function getContextVariable(name) {
|
|
|
169761
169994
|
var LC_CONFIGURE_HOOKS_KEY = Symbol("lc:configure_hooks");
|
|
169762
169995
|
var _getConfigureHooks = () => getContextVariable(LC_CONFIGURE_HOOKS_KEY) || [];
|
|
169763
169996
|
|
|
169764
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169997
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/callbacks/manager.js
|
|
169765
169998
|
var manager_exports = {};
|
|
169766
169999
|
__export2(manager_exports, {
|
|
169767
170000
|
BaseCallbackManager: () => BaseCallbackManager,
|
|
@@ -170031,7 +170264,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
170031
170264
|
}
|
|
170032
170265
|
async handleLLMStart(llm, prompts, runId = undefined, _parentRunId = undefined, extraParams = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
170033
170266
|
return Promise.all(prompts.map(async (prompt, idx) => {
|
|
170034
|
-
const runId_ = idx === 0 && runId ? runId :
|
|
170267
|
+
const runId_ = idx === 0 && runId ? runId : v7();
|
|
170035
170268
|
await Promise.all(this.handlers.map((handler) => {
|
|
170036
170269
|
if (handler.ignoreLLM)
|
|
170037
170270
|
return;
|
|
@@ -170053,7 +170286,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
170053
170286
|
}
|
|
170054
170287
|
async handleChatModelStart(llm, messages, runId = undefined, _parentRunId = undefined, extraParams = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
170055
170288
|
return Promise.all(messages.map(async (messageGroup, idx) => {
|
|
170056
|
-
const runId_ = idx === 0 && runId ? runId :
|
|
170289
|
+
const runId_ = idx === 0 && runId ? runId : v7();
|
|
170057
170290
|
await Promise.all(this.handlers.map((handler) => {
|
|
170058
170291
|
if (handler.ignoreLLM)
|
|
170059
170292
|
return;
|
|
@@ -170078,7 +170311,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
170078
170311
|
return new CallbackManagerForLLMRun(runId_, this.handlers, this.inheritableHandlers, this.tags, this.inheritableTags, this.metadata, this.inheritableMetadata, this._parentRunId);
|
|
170079
170312
|
}));
|
|
170080
170313
|
}
|
|
170081
|
-
async handleChainStart(chain, inputs, runId =
|
|
170314
|
+
async handleChainStart(chain, inputs, runId = v7(), runType = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
170082
170315
|
await Promise.all(this.handlers.map((handler) => {
|
|
170083
170316
|
if (handler.ignoreChain)
|
|
170084
170317
|
return;
|
|
@@ -170097,7 +170330,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
170097
170330
|
}));
|
|
170098
170331
|
return new CallbackManagerForChainRun(runId, this.handlers, this.inheritableHandlers, this.tags, this.inheritableTags, this.metadata, this.inheritableMetadata, this._parentRunId);
|
|
170099
170332
|
}
|
|
170100
|
-
async handleToolStart(tool, input, runId =
|
|
170333
|
+
async handleToolStart(tool, input, runId = v7(), _parentRunId = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
170101
170334
|
await Promise.all(this.handlers.map((handler) => {
|
|
170102
170335
|
if (handler.ignoreAgent)
|
|
170103
170336
|
return;
|
|
@@ -170116,7 +170349,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
170116
170349
|
}));
|
|
170117
170350
|
return new CallbackManagerForToolRun(runId, this.handlers, this.inheritableHandlers, this.tags, this.inheritableTags, this.metadata, this.inheritableMetadata, this._parentRunId);
|
|
170118
170351
|
}
|
|
170119
|
-
async handleRetrieverStart(retriever, query, runId =
|
|
170352
|
+
async handleRetrieverStart(retriever, query, runId = v7(), _parentRunId = undefined, _tags = undefined, _metadata = undefined, runName = undefined) {
|
|
170120
170353
|
await Promise.all(this.handlers.map((handler) => {
|
|
170121
170354
|
if (handler.ignoreRetriever)
|
|
170122
170355
|
return;
|
|
@@ -170214,7 +170447,7 @@ var CallbackManager = class CallbackManager2 extends BaseCallbackManager {
|
|
|
170214
170447
|
static fromHandlers(handlers) {
|
|
170215
170448
|
|
|
170216
170449
|
class Handler extends BaseCallbackHandler {
|
|
170217
|
-
name =
|
|
170450
|
+
name = v7();
|
|
170218
170451
|
constructor() {
|
|
170219
170452
|
super();
|
|
170220
170453
|
Object.assign(this, handlers);
|
|
@@ -170298,7 +170531,7 @@ function ensureHandler(handler) {
|
|
|
170298
170531
|
return BaseCallbackHandler.fromMethods(handler);
|
|
170299
170532
|
}
|
|
170300
170533
|
|
|
170301
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170534
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/singletons/async_local_storage/index.js
|
|
170302
170535
|
var MockAsyncLocalStorage2 = class {
|
|
170303
170536
|
getStore() {
|
|
170304
170537
|
return;
|
|
@@ -170353,7 +170586,7 @@ var AsyncLocalStorageProvider2 = class {
|
|
|
170353
170586
|
};
|
|
170354
170587
|
var AsyncLocalStorageProviderSingleton2 = new AsyncLocalStorageProvider2;
|
|
170355
170588
|
|
|
170356
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170589
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/singletons/index.js
|
|
170357
170590
|
var singletons_exports = {};
|
|
170358
170591
|
__export2(singletons_exports, {
|
|
170359
170592
|
AsyncLocalStorageProviderSingleton: () => AsyncLocalStorageProviderSingleton2,
|
|
@@ -170361,7 +170594,7 @@ __export2(singletons_exports, {
|
|
|
170361
170594
|
_CONTEXT_VARIABLES_KEY: () => _CONTEXT_VARIABLES_KEY
|
|
170362
170595
|
});
|
|
170363
170596
|
|
|
170364
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170597
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/config.js
|
|
170365
170598
|
var DEFAULT_RECURSION_LIMIT = 25;
|
|
170366
170599
|
async function getCallbackManagerForConfig(config) {
|
|
170367
170600
|
return CallbackManager._configureSync(config?.callbacks, undefined, config?.tags, undefined, config?.metadata);
|
|
@@ -170473,7 +170706,12 @@ function ensureConfig(config) {
|
|
|
170473
170706
|
if (empty2.timeout !== undefined) {
|
|
170474
170707
|
if (empty2.timeout <= 0)
|
|
170475
170708
|
throw new Error("Timeout must be a positive number");
|
|
170476
|
-
const
|
|
170709
|
+
const originalTimeoutMs = empty2.timeout;
|
|
170710
|
+
const timeoutSignal = AbortSignal.timeout(originalTimeoutMs);
|
|
170711
|
+
if (!empty2.metadata)
|
|
170712
|
+
empty2.metadata = {};
|
|
170713
|
+
if (empty2.metadata.timeoutMs === undefined)
|
|
170714
|
+
empty2.metadata.timeoutMs = originalTimeoutMs;
|
|
170477
170715
|
if (empty2.signal !== undefined) {
|
|
170478
170716
|
if ("any" in AbortSignal)
|
|
170479
170717
|
empty2.signal = AbortSignal.any([empty2.signal, timeoutSignal]);
|
|
@@ -170520,7 +170758,7 @@ function pickRunnableConfigKeys(config) {
|
|
|
170520
170758
|
};
|
|
170521
170759
|
}
|
|
170522
170760
|
|
|
170523
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170761
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/signal.js
|
|
170524
170762
|
async function raceWithSignal(promise, signal) {
|
|
170525
170763
|
if (signal === undefined)
|
|
170526
170764
|
return promise;
|
|
@@ -170547,7 +170785,7 @@ function getAbortSignalError(signal) {
|
|
|
170547
170785
|
return /* @__PURE__ */ new Error("Aborted");
|
|
170548
170786
|
}
|
|
170549
170787
|
|
|
170550
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170788
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/stream.js
|
|
170551
170789
|
var stream_exports = {};
|
|
170552
170790
|
__export2(stream_exports, {
|
|
170553
170791
|
AsyncGeneratorWithSetup: () => AsyncGeneratorWithSetup,
|
|
@@ -170737,7 +170975,7 @@ async function pipeGeneratorWithSetup(to, generator, startSetup, signal, ...args
|
|
|
170737
170975
|
};
|
|
170738
170976
|
}
|
|
170739
170977
|
|
|
170740
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170978
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.js
|
|
170741
170979
|
/*!
|
|
170742
170980
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
170743
170981
|
* (c) 2017-2022 Joachim Wester
|
|
@@ -170844,7 +171082,7 @@ var PatchError = class extends Error {
|
|
|
170844
171082
|
}
|
|
170845
171083
|
};
|
|
170846
171084
|
|
|
170847
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171085
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.js
|
|
170848
171086
|
var core_exports = {};
|
|
170849
171087
|
__export2(core_exports, {
|
|
170850
171088
|
JsonPatchError: () => JsonPatchError,
|
|
@@ -170859,12 +171097,19 @@ __export2(core_exports, {
|
|
|
170859
171097
|
});
|
|
170860
171098
|
var JsonPatchError = PatchError;
|
|
170861
171099
|
var deepClone = _deepClone;
|
|
171100
|
+
function isDangerousKey(key) {
|
|
171101
|
+
return Object.getOwnPropertyNames(Object.prototype).includes(key);
|
|
171102
|
+
}
|
|
170862
171103
|
var objOps = {
|
|
170863
171104
|
add: function(obj, key, document4) {
|
|
171105
|
+
if (isDangerousKey(key))
|
|
171106
|
+
throw new TypeError("JSON-Patch: modifying `__proto__`, `constructor`, or `prototype` prop is banned for security reasons");
|
|
170864
171107
|
obj[key] = this.value;
|
|
170865
171108
|
return { newDocument: document4 };
|
|
170866
171109
|
},
|
|
170867
171110
|
remove: function(obj, key, document4) {
|
|
171111
|
+
if (isDangerousKey(key))
|
|
171112
|
+
throw new TypeError("JSON-Patch: modifying `__proto__`, `constructor`, or `prototype` prop is banned for security reasons");
|
|
170868
171113
|
var removed = obj[key];
|
|
170869
171114
|
delete obj[key];
|
|
170870
171115
|
return {
|
|
@@ -170873,6 +171118,8 @@ var objOps = {
|
|
|
170873
171118
|
};
|
|
170874
171119
|
},
|
|
170875
171120
|
replace: function(obj, key, document4) {
|
|
171121
|
+
if (isDangerousKey(key))
|
|
171122
|
+
throw new TypeError("JSON-Patch: modifying `__proto__`, `constructor`, or `prototype` prop is banned for security reasons");
|
|
170876
171123
|
var removed = obj[key];
|
|
170877
171124
|
obj[key] = this.value;
|
|
170878
171125
|
return {
|
|
@@ -171163,7 +171410,7 @@ function _areEquals(a443, b8) {
|
|
|
171163
171410
|
return a443 !== a443 && b8 !== b8;
|
|
171164
171411
|
}
|
|
171165
171412
|
|
|
171166
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171413
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.js
|
|
171167
171414
|
function _generate(mirror, obj, patches, path5, invertible) {
|
|
171168
171415
|
if (obj === mirror)
|
|
171169
171416
|
return;
|
|
@@ -171239,7 +171486,7 @@ function compare(tree1, tree2, invertible = false) {
|
|
|
171239
171486
|
return patches;
|
|
171240
171487
|
}
|
|
171241
171488
|
|
|
171242
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171489
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.js
|
|
171243
171490
|
var fast_json_patch_default = {
|
|
171244
171491
|
...core_exports,
|
|
171245
171492
|
JsonPatchError: PatchError,
|
|
@@ -171248,7 +171495,7 @@ var fast_json_patch_default = {
|
|
|
171248
171495
|
unescapePathComponent
|
|
171249
171496
|
};
|
|
171250
171497
|
|
|
171251
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171498
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tracers/log_stream.js
|
|
171252
171499
|
var log_stream_exports = {};
|
|
171253
171500
|
__export2(log_stream_exports, {
|
|
171254
171501
|
LogStreamCallbackHandler: () => LogStreamCallbackHandler,
|
|
@@ -171505,7 +171752,7 @@ var LogStreamCallbackHandler = class extends BaseTracer {
|
|
|
171505
171752
|
}
|
|
171506
171753
|
};
|
|
171507
171754
|
|
|
171508
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171755
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/outputs.js
|
|
171509
171756
|
var outputs_exports = {};
|
|
171510
171757
|
__export2(outputs_exports, {
|
|
171511
171758
|
ChatGenerationChunk: () => ChatGenerationChunk,
|
|
@@ -171548,7 +171795,7 @@ var ChatGenerationChunk = class ChatGenerationChunk2 extends GenerationChunk {
|
|
|
171548
171795
|
}
|
|
171549
171796
|
};
|
|
171550
171797
|
|
|
171551
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171798
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tracers/event_stream.js
|
|
171552
171799
|
function assignName({ name, serialized }) {
|
|
171553
171800
|
if (name !== undefined)
|
|
171554
171801
|
return name;
|
|
@@ -171925,7 +172172,7 @@ var EventStreamCallbackHandler = class extends BaseTracer {
|
|
|
171925
172172
|
}
|
|
171926
172173
|
};
|
|
171927
172174
|
|
|
171928
|
-
// ../../node_modules/.pnpm
|
|
172175
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/is-network-error/index.js
|
|
171929
172176
|
var objectToString2 = Object.prototype.toString;
|
|
171930
172177
|
var isError2 = (value) => objectToString2.call(value) === "[object Error]";
|
|
171931
172178
|
var errorMessages2 = new Set([
|
|
@@ -171941,48 +172188,37 @@ var errorMessages2 = new Set([
|
|
|
171941
172188
|
]);
|
|
171942
172189
|
function isNetworkError2(error2) {
|
|
171943
172190
|
const isValid2 = error2 && isError2(error2) && error2.name === "TypeError" && typeof error2.message === "string";
|
|
171944
|
-
if (!isValid2)
|
|
172191
|
+
if (!isValid2)
|
|
171945
172192
|
return false;
|
|
171946
|
-
}
|
|
171947
172193
|
const { message, stack } = error2;
|
|
171948
|
-
if (message === "Load failed")
|
|
172194
|
+
if (message === "Load failed")
|
|
171949
172195
|
return stack === undefined || "__sentry_captured__" in error2;
|
|
171950
|
-
|
|
171951
|
-
if (message.startsWith("error sending request for url")) {
|
|
172196
|
+
if (message.startsWith("error sending request for url"))
|
|
171952
172197
|
return true;
|
|
171953
|
-
}
|
|
171954
172198
|
return errorMessages2.has(message);
|
|
171955
172199
|
}
|
|
171956
172200
|
|
|
171957
|
-
// ../../node_modules/.pnpm
|
|
172201
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/p-retry/index.js
|
|
171958
172202
|
function validateRetries2(retries) {
|
|
171959
172203
|
if (typeof retries === "number") {
|
|
171960
|
-
if (retries < 0)
|
|
172204
|
+
if (retries < 0)
|
|
171961
172205
|
throw new TypeError("Expected `retries` to be a non-negative number.");
|
|
171962
|
-
|
|
171963
|
-
if (Number.isNaN(retries)) {
|
|
172206
|
+
if (Number.isNaN(retries))
|
|
171964
172207
|
throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.");
|
|
171965
|
-
|
|
171966
|
-
} else if (retries !== undefined) {
|
|
172208
|
+
} else if (retries !== undefined)
|
|
171967
172209
|
throw new TypeError("Expected `retries` to be a number or Infinity.");
|
|
171968
|
-
}
|
|
171969
172210
|
}
|
|
171970
172211
|
function validateNumberOption2(name, value, { min = 0, allowInfinity = false } = {}) {
|
|
171971
|
-
if (value === undefined)
|
|
172212
|
+
if (value === undefined)
|
|
171972
172213
|
return;
|
|
171973
|
-
|
|
171974
|
-
if (typeof value !== "number" || Number.isNaN(value)) {
|
|
172214
|
+
if (typeof value !== "number" || Number.isNaN(value))
|
|
171975
172215
|
throw new TypeError(`Expected \`${name}\` to be a number${allowInfinity ? " or Infinity" : ""}.`);
|
|
171976
|
-
|
|
171977
|
-
if (!allowInfinity && !Number.isFinite(value)) {
|
|
172216
|
+
if (!allowInfinity && !Number.isFinite(value))
|
|
171978
172217
|
throw new TypeError(`Expected \`${name}\` to be a finite number.`);
|
|
171979
|
-
|
|
171980
|
-
if (value < min) {
|
|
172218
|
+
if (value < min)
|
|
171981
172219
|
throw new TypeError(`Expected \`${name}\` to be ≥ ${min}.`);
|
|
171982
|
-
}
|
|
171983
172220
|
}
|
|
171984
|
-
|
|
171985
|
-
class AbortError2 extends Error {
|
|
172221
|
+
var AbortError2 = class extends Error {
|
|
171986
172222
|
constructor(message) {
|
|
171987
172223
|
super();
|
|
171988
172224
|
if (message instanceof Error) {
|
|
@@ -171995,7 +172231,7 @@ class AbortError2 extends Error {
|
|
|
171995
172231
|
this.name = "AbortError";
|
|
171996
172232
|
this.message = message;
|
|
171997
172233
|
}
|
|
171998
|
-
}
|
|
172234
|
+
};
|
|
171999
172235
|
function calculateDelay2(retriesConsumed, options) {
|
|
172000
172236
|
const attempt = Math.max(1, retriesConsumed + 1);
|
|
172001
172237
|
const random = options.randomize ? Math.random() + 1 : 1;
|
|
@@ -172004,16 +172240,14 @@ function calculateDelay2(retriesConsumed, options) {
|
|
|
172004
172240
|
return timeout;
|
|
172005
172241
|
}
|
|
172006
172242
|
function calculateRemainingTime2(start, max) {
|
|
172007
|
-
if (!Number.isFinite(max))
|
|
172243
|
+
if (!Number.isFinite(max))
|
|
172008
172244
|
return max;
|
|
172009
|
-
}
|
|
172010
172245
|
return max - (performance.now() - start);
|
|
172011
172246
|
}
|
|
172012
172247
|
async function onAttemptFailure2({ error: error2, attemptNumber, retriesConsumed, startTime, options }) {
|
|
172013
|
-
const normalizedError = error2 instanceof Error ? error2 : new TypeError(`Non-error was thrown: "${error2}". You should only throw errors.`);
|
|
172014
|
-
if (normalizedError instanceof AbortError2)
|
|
172248
|
+
const normalizedError = error2 instanceof Error ? error2 : /* @__PURE__ */ new TypeError(`Non-error was thrown: "${error2}". You should only throw errors.`);
|
|
172249
|
+
if (normalizedError instanceof AbortError2)
|
|
172015
172250
|
throw normalizedError.originalError;
|
|
172016
|
-
}
|
|
172017
172251
|
const retriesLeft = Number.isFinite(options.retries) ? Math.max(0, options.retries - retriesConsumed) : options.retries;
|
|
172018
172252
|
const maxRetryTime = options.maxRetryTime ?? Number.POSITIVE_INFINITY;
|
|
172019
172253
|
const context = Object.freeze({
|
|
@@ -172023,31 +172257,27 @@ async function onAttemptFailure2({ error: error2, attemptNumber, retriesConsumed
|
|
|
172023
172257
|
retriesConsumed
|
|
172024
172258
|
});
|
|
172025
172259
|
await options.onFailedAttempt(context);
|
|
172026
|
-
if (calculateRemainingTime2(startTime, maxRetryTime) <= 0)
|
|
172260
|
+
if (calculateRemainingTime2(startTime, maxRetryTime) <= 0)
|
|
172027
172261
|
throw normalizedError;
|
|
172028
|
-
}
|
|
172029
172262
|
const consumeRetry = await options.shouldConsumeRetry(context);
|
|
172030
172263
|
const remainingTime = calculateRemainingTime2(startTime, maxRetryTime);
|
|
172031
|
-
if (remainingTime <= 0 || retriesLeft <= 0)
|
|
172264
|
+
if (remainingTime <= 0 || retriesLeft <= 0)
|
|
172032
172265
|
throw normalizedError;
|
|
172033
|
-
}
|
|
172034
172266
|
if (normalizedError instanceof TypeError && !isNetworkError2(normalizedError)) {
|
|
172035
|
-
if (consumeRetry)
|
|
172267
|
+
if (consumeRetry)
|
|
172036
172268
|
throw normalizedError;
|
|
172037
|
-
}
|
|
172038
172269
|
options.signal?.throwIfAborted();
|
|
172039
172270
|
return false;
|
|
172040
172271
|
}
|
|
172041
|
-
if (!await options.shouldRetry(context))
|
|
172272
|
+
if (!await options.shouldRetry(context))
|
|
172042
172273
|
throw normalizedError;
|
|
172043
|
-
}
|
|
172044
172274
|
if (!consumeRetry) {
|
|
172045
172275
|
options.signal?.throwIfAborted();
|
|
172046
172276
|
return false;
|
|
172047
172277
|
}
|
|
172048
172278
|
const delayTime = calculateDelay2(retriesConsumed, options);
|
|
172049
172279
|
const finalDelay = Math.min(delayTime, remainingTime);
|
|
172050
|
-
if (finalDelay > 0)
|
|
172280
|
+
if (finalDelay > 0)
|
|
172051
172281
|
await new Promise((resolve, reject) => {
|
|
172052
172282
|
const onAbort = () => {
|
|
172053
172283
|
clearTimeout(timeoutToken);
|
|
@@ -172058,21 +172288,18 @@ async function onAttemptFailure2({ error: error2, attemptNumber, retriesConsumed
|
|
|
172058
172288
|
options.signal?.removeEventListener("abort", onAbort);
|
|
172059
172289
|
resolve();
|
|
172060
172290
|
}, finalDelay);
|
|
172061
|
-
if (options.unref)
|
|
172291
|
+
if (options.unref)
|
|
172062
172292
|
timeoutToken.unref?.();
|
|
172063
|
-
}
|
|
172064
172293
|
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
172065
172294
|
});
|
|
172066
|
-
}
|
|
172067
172295
|
options.signal?.throwIfAborted();
|
|
172068
172296
|
return true;
|
|
172069
172297
|
}
|
|
172070
172298
|
async function pRetry2(input, options = {}) {
|
|
172071
172299
|
options = { ...options };
|
|
172072
172300
|
validateRetries2(options.retries);
|
|
172073
|
-
if (Object.hasOwn(options, "forever"))
|
|
172301
|
+
if (Object.hasOwn(options, "forever"))
|
|
172074
172302
|
throw new Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");
|
|
172075
|
-
}
|
|
172076
172303
|
options.retries ??= 10;
|
|
172077
172304
|
options.factor ??= 2;
|
|
172078
172305
|
options.minTimeout ??= 1000;
|
|
@@ -172082,13 +172309,24 @@ async function pRetry2(input, options = {}) {
|
|
|
172082
172309
|
options.onFailedAttempt ??= () => {};
|
|
172083
172310
|
options.shouldRetry ??= () => true;
|
|
172084
172311
|
options.shouldConsumeRetry ??= () => true;
|
|
172085
|
-
validateNumberOption2("factor", options.factor, {
|
|
172086
|
-
|
|
172087
|
-
|
|
172088
|
-
|
|
172089
|
-
|
|
172312
|
+
validateNumberOption2("factor", options.factor, {
|
|
172313
|
+
min: 0,
|
|
172314
|
+
allowInfinity: false
|
|
172315
|
+
});
|
|
172316
|
+
validateNumberOption2("minTimeout", options.minTimeout, {
|
|
172317
|
+
min: 0,
|
|
172318
|
+
allowInfinity: false
|
|
172319
|
+
});
|
|
172320
|
+
validateNumberOption2("maxTimeout", options.maxTimeout, {
|
|
172321
|
+
min: 0,
|
|
172322
|
+
allowInfinity: true
|
|
172323
|
+
});
|
|
172324
|
+
validateNumberOption2("maxRetryTime", options.maxRetryTime, {
|
|
172325
|
+
min: 0,
|
|
172326
|
+
allowInfinity: true
|
|
172327
|
+
});
|
|
172328
|
+
if (!(options.factor > 0))
|
|
172090
172329
|
options.factor = 1;
|
|
172091
|
-
}
|
|
172092
172330
|
options.signal?.throwIfAborted();
|
|
172093
172331
|
let attemptNumber = 0;
|
|
172094
172332
|
let retriesConsumed = 0;
|
|
@@ -172107,15 +172345,14 @@ async function pRetry2(input, options = {}) {
|
|
|
172107
172345
|
retriesConsumed,
|
|
172108
172346
|
startTime,
|
|
172109
172347
|
options
|
|
172110
|
-
}))
|
|
172348
|
+
}))
|
|
172111
172349
|
retriesConsumed++;
|
|
172112
|
-
}
|
|
172113
172350
|
}
|
|
172114
172351
|
}
|
|
172115
172352
|
throw new Error("Retry attempts exhausted without throwing an error.");
|
|
172116
172353
|
}
|
|
172117
172354
|
|
|
172118
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
172355
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/async_caller.js
|
|
172119
172356
|
var import_p_queue3 = __toESM(require_dist3(), 1);
|
|
172120
172357
|
var async_caller_exports = {};
|
|
172121
172358
|
__export2(async_caller_exports, { AsyncCaller: () => AsyncCaller2 });
|
|
@@ -172156,7 +172393,7 @@ var AsyncCaller2 = class {
|
|
|
172156
172393
|
const PQueue = "default" in import_p_queue3.default ? import_p_queue3.default.default : import_p_queue3.default;
|
|
172157
172394
|
this.queue = new PQueue({ concurrency: this.maxConcurrency });
|
|
172158
172395
|
}
|
|
172159
|
-
call(callable, ...args) {
|
|
172396
|
+
async call(callable, ...args) {
|
|
172160
172397
|
return this.queue.add(() => pRetry2(() => callable(...args).catch((error2) => {
|
|
172161
172398
|
if (error2 instanceof Error)
|
|
172162
172399
|
throw error2;
|
|
@@ -172188,7 +172425,7 @@ var AsyncCaller2 = class {
|
|
|
172188
172425
|
}
|
|
172189
172426
|
};
|
|
172190
172427
|
|
|
172191
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
172428
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tracers/root_listener.js
|
|
172192
172429
|
var RootListenersTracer = class extends BaseTracer {
|
|
172193
172430
|
name = "RootListenersTracer";
|
|
172194
172431
|
rootId;
|
|
@@ -172224,7 +172461,7 @@ var RootListenersTracer = class extends BaseTracer {
|
|
|
172224
172461
|
}
|
|
172225
172462
|
};
|
|
172226
172463
|
|
|
172227
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
172464
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/utils.js
|
|
172228
172465
|
function isRunnableInterface(thing) {
|
|
172229
172466
|
return thing ? thing.lc_runnable : false;
|
|
172230
172467
|
}
|
|
@@ -172261,6 +172498,10 @@ var _RootEventFilter = class {
|
|
|
172261
172498
|
return include;
|
|
172262
172499
|
}
|
|
172263
172500
|
};
|
|
172501
|
+
var toBase64Url = (str3) => {
|
|
172502
|
+
const encoded = btoa(str3);
|
|
172503
|
+
return encoded.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
172504
|
+
};
|
|
172264
172505
|
|
|
172265
172506
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/index.js
|
|
172266
172507
|
var exports_core2 = {};
|
|
@@ -182036,7 +182277,7 @@ function isTransforming(_schema, _ctx) {
|
|
|
182036
182277
|
}
|
|
182037
182278
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/json-schema.js
|
|
182038
182279
|
var exports_json_schema = {};
|
|
182039
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182280
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/types/zod.js
|
|
182040
182281
|
function isZodSchemaV4(schema2) {
|
|
182041
182282
|
if (typeof schema2 !== "object" || schema2 === null)
|
|
182042
182283
|
return false;
|
|
@@ -182206,6 +182447,20 @@ function isZodArrayV4(obj) {
|
|
|
182206
182447
|
return true;
|
|
182207
182448
|
return false;
|
|
182208
182449
|
}
|
|
182450
|
+
function isZodOptionalV4(obj) {
|
|
182451
|
+
if (!isZodSchemaV4(obj))
|
|
182452
|
+
return false;
|
|
182453
|
+
if (typeof obj === "object" && obj !== null && "_zod" in obj && typeof obj._zod === "object" && obj._zod !== null && "def" in obj._zod && typeof obj._zod.def === "object" && obj._zod.def !== null && "type" in obj._zod.def && obj._zod.def.type === "optional")
|
|
182454
|
+
return true;
|
|
182455
|
+
return false;
|
|
182456
|
+
}
|
|
182457
|
+
function isZodNullableV4(obj) {
|
|
182458
|
+
if (!isZodSchemaV4(obj))
|
|
182459
|
+
return false;
|
|
182460
|
+
if (typeof obj === "object" && obj !== null && "_zod" in obj && typeof obj._zod === "object" && obj._zod !== null && "def" in obj._zod && typeof obj._zod.def === "object" && obj._zod.def !== null && "type" in obj._zod.def && obj._zod.def.type === "nullable")
|
|
182461
|
+
return true;
|
|
182462
|
+
return false;
|
|
182463
|
+
}
|
|
182209
182464
|
function isInteropZodObject(obj) {
|
|
182210
182465
|
if (isZodObjectV3(obj))
|
|
182211
182466
|
return true;
|
|
@@ -182344,7 +182599,7 @@ function interopZodTransformInputSchemaImpl(schema2, recursive, cache) {
|
|
|
182344
182599
|
outputSchema = interopZodTransformInputSchemaImpl(schema2._zod.def.in, recursive, cache);
|
|
182345
182600
|
if (recursive) {
|
|
182346
182601
|
if (isZodObjectV4(outputSchema)) {
|
|
182347
|
-
const outputShape =
|
|
182602
|
+
const outputShape = {};
|
|
182348
182603
|
for (const [key, keySchema] of Object.entries(outputSchema._zod.def.shape))
|
|
182349
182604
|
outputShape[key] = interopZodTransformInputSchemaImpl(keySchema, recursive, cache);
|
|
182350
182605
|
outputSchema = clone(outputSchema, {
|
|
@@ -182357,6 +182612,18 @@ function interopZodTransformInputSchemaImpl(schema2, recursive, cache) {
|
|
|
182357
182612
|
...outputSchema._zod.def,
|
|
182358
182613
|
element: elementSchema
|
|
182359
182614
|
});
|
|
182615
|
+
} else if (isZodOptionalV4(outputSchema)) {
|
|
182616
|
+
const innerSchema = interopZodTransformInputSchemaImpl(outputSchema._zod.def.innerType, recursive, cache);
|
|
182617
|
+
outputSchema = clone(outputSchema, {
|
|
182618
|
+
...outputSchema._zod.def,
|
|
182619
|
+
innerType: innerSchema
|
|
182620
|
+
});
|
|
182621
|
+
} else if (isZodNullableV4(outputSchema)) {
|
|
182622
|
+
const innerSchema = interopZodTransformInputSchemaImpl(outputSchema._zod.def.innerType, recursive, cache);
|
|
182623
|
+
outputSchema = clone(outputSchema, {
|
|
182624
|
+
...outputSchema._zod.def,
|
|
182625
|
+
innerType: innerSchema
|
|
182626
|
+
});
|
|
182360
182627
|
}
|
|
182361
182628
|
}
|
|
182362
182629
|
const meta = globalRegistry.get(schema2);
|
|
@@ -182406,7 +182673,7 @@ function isInteropZodError(e488) {
|
|
|
182406
182673
|
return e488 instanceof Error && (e488.constructor.name === "ZodError" || e488.constructor.name === "$ZodError");
|
|
182407
182674
|
}
|
|
182408
182675
|
|
|
182409
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182676
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/graph_mermaid.js
|
|
182410
182677
|
function _escapeNodeLabel(nodeLabel) {
|
|
182411
182678
|
return nodeLabel.replace(/[^a-zA-Z-_0-9]/g, "_");
|
|
182412
182679
|
}
|
|
@@ -182457,16 +182724,24 @@ graph TD;
|
|
|
182457
182724
|
edgeGroups[commonPrefix].push(edge);
|
|
182458
182725
|
}
|
|
182459
182726
|
const seenSubgraphs = /* @__PURE__ */ new Set;
|
|
182727
|
+
function sortPrefixesByDepth(prefixes) {
|
|
182728
|
+
return [...prefixes].sort((a443, b8) => {
|
|
182729
|
+
return a443.split(":").length - b8.split(":").length;
|
|
182730
|
+
});
|
|
182731
|
+
}
|
|
182460
182732
|
function addSubgraph(edges$1, prefix) {
|
|
182461
182733
|
const selfLoop = edges$1.length === 1 && edges$1[0].source === edges$1[0].target;
|
|
182462
182734
|
if (prefix && !selfLoop) {
|
|
182463
182735
|
const subgraph = prefix.split(":").pop();
|
|
182464
|
-
if (seenSubgraphs.has(
|
|
182465
|
-
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.`);
|
|
182466
|
-
seenSubgraphs.add(
|
|
182736
|
+
if (seenSubgraphs.has(prefix))
|
|
182737
|
+
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.`);
|
|
182738
|
+
seenSubgraphs.add(prefix);
|
|
182467
182739
|
mermaidGraph += ` subgraph ${subgraph}
|
|
182468
182740
|
`;
|
|
182469
182741
|
}
|
|
182742
|
+
const nestedPrefixes = sortPrefixesByDepth(Object.keys(edgeGroups).filter((nestedPrefix) => nestedPrefix.startsWith(`${prefix}:`) && nestedPrefix !== prefix && nestedPrefix.split(":").length === prefix.split(":").length + 1));
|
|
182743
|
+
for (const nestedPrefix of nestedPrefixes)
|
|
182744
|
+
addSubgraph(edgeGroups[nestedPrefix], nestedPrefix);
|
|
182470
182745
|
for (const edge of edges$1) {
|
|
182471
182746
|
const { source, target, data, conditional } = edge;
|
|
182472
182747
|
let edgeLabel = "";
|
|
@@ -182481,9 +182756,6 @@ graph TD;
|
|
|
182481
182756
|
mermaidGraph += ` ${_escapeNodeLabel(source)}${edgeLabel}${_escapeNodeLabel(target)};
|
|
182482
182757
|
`;
|
|
182483
182758
|
}
|
|
182484
|
-
for (const nestedPrefix in edgeGroups)
|
|
182485
|
-
if (nestedPrefix.startsWith(`${prefix}:`) && nestedPrefix !== prefix)
|
|
182486
|
-
addSubgraph(edgeGroups[nestedPrefix], nestedPrefix);
|
|
182487
182759
|
if (prefix && !selfLoop)
|
|
182488
182760
|
mermaidGraph += ` end
|
|
182489
182761
|
`;
|
|
@@ -182499,7 +182771,7 @@ graph TD;
|
|
|
182499
182771
|
async function drawMermaidImage(mermaidSyntax, config2) {
|
|
182500
182772
|
let backgroundColor = config2?.backgroundColor ?? "white";
|
|
182501
182773
|
const imageType = config2?.imageType ?? "png";
|
|
182502
|
-
const mermaidSyntaxEncoded =
|
|
182774
|
+
const mermaidSyntaxEncoded = toBase64Url(mermaidSyntax);
|
|
182503
182775
|
if (backgroundColor !== undefined) {
|
|
182504
182776
|
const hexColorPattern = /^#(?:[0-9a-fA-F]{3}){1,2}$/;
|
|
182505
182777
|
if (!hexColorPattern.test(backgroundColor))
|
|
@@ -182518,7 +182790,7 @@ async function drawMermaidImage(mermaidSyntax, config2) {
|
|
|
182518
182790
|
return content3;
|
|
182519
182791
|
}
|
|
182520
182792
|
|
|
182521
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182793
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Options.js
|
|
182522
182794
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
182523
182795
|
var defaultOptions3 = {
|
|
182524
182796
|
name: undefined,
|
|
@@ -182552,7 +182824,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
182552
182824
|
...options
|
|
182553
182825
|
};
|
|
182554
182826
|
|
|
182555
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182827
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Refs.js
|
|
182556
182828
|
var getRefs = (options) => {
|
|
182557
182829
|
const _options = getDefaultOptions(options);
|
|
182558
182830
|
const currentPath = _options.name !== undefined ? [
|
|
@@ -182577,7 +182849,7 @@ var getRefs = (options) => {
|
|
|
182577
182849
|
};
|
|
182578
182850
|
};
|
|
182579
182851
|
|
|
182580
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182852
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/getRelativePath.js
|
|
182581
182853
|
var getRelativePath = (pathA, pathB) => {
|
|
182582
182854
|
let i315 = 0;
|
|
182583
182855
|
for (;i315 < pathA.length && i315 < pathB.length; i315++)
|
|
@@ -182586,7 +182858,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
182586
182858
|
return [(pathA.length - i315).toString(), ...pathB.slice(i315)].join("/");
|
|
182587
182859
|
};
|
|
182588
182860
|
|
|
182589
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182861
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/any.js
|
|
182590
182862
|
function parseAnyDef(refs) {
|
|
182591
182863
|
if (refs.target !== "openAi")
|
|
182592
182864
|
return {};
|
|
@@ -182599,7 +182871,7 @@ function parseAnyDef(refs) {
|
|
|
182599
182871
|
return { $ref: refs.$refStrategy === "relative" ? getRelativePath(anyDefinitionPath, refs.currentPath) : anyDefinitionPath.join("/") };
|
|
182600
182872
|
}
|
|
182601
182873
|
|
|
182602
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182874
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/errorMessages.js
|
|
182603
182875
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
182604
182876
|
if (!refs?.errorMessages)
|
|
182605
182877
|
return;
|
|
@@ -182613,7 +182885,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
182613
182885
|
res[key] = value;
|
|
182614
182886
|
addErrorMessage(res, key, errorMessage, refs);
|
|
182615
182887
|
}
|
|
182616
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182888
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/array.js
|
|
182617
182889
|
function parseArrayDef(def, refs) {
|
|
182618
182890
|
const res = { type: "array" };
|
|
182619
182891
|
if (def.type?._def && def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny)
|
|
@@ -182632,7 +182904,7 @@ function parseArrayDef(def, refs) {
|
|
|
182632
182904
|
return res;
|
|
182633
182905
|
}
|
|
182634
182906
|
|
|
182635
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182907
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/bigint.js
|
|
182636
182908
|
function parseBigintDef(def, refs) {
|
|
182637
182909
|
const res = {
|
|
182638
182910
|
type: "integer",
|
|
@@ -182673,22 +182945,22 @@ function parseBigintDef(def, refs) {
|
|
|
182673
182945
|
return res;
|
|
182674
182946
|
}
|
|
182675
182947
|
|
|
182676
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182948
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/boolean.js
|
|
182677
182949
|
function parseBooleanDef() {
|
|
182678
182950
|
return { type: "boolean" };
|
|
182679
182951
|
}
|
|
182680
182952
|
|
|
182681
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182953
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/branded.js
|
|
182682
182954
|
function parseBrandedDef(_def, refs) {
|
|
182683
182955
|
return parseDef(_def.type._def, refs);
|
|
182684
182956
|
}
|
|
182685
182957
|
|
|
182686
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182958
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/catch.js
|
|
182687
182959
|
var parseCatchDef = (def, refs) => {
|
|
182688
182960
|
return parseDef(def.innerType._def, refs);
|
|
182689
182961
|
};
|
|
182690
182962
|
|
|
182691
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182963
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/date.js
|
|
182692
182964
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
182693
182965
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
182694
182966
|
if (Array.isArray(strategy))
|
|
@@ -182728,7 +183000,7 @@ var integerDateParser = (def, refs) => {
|
|
|
182728
183000
|
return res;
|
|
182729
183001
|
};
|
|
182730
183002
|
|
|
182731
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183003
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/default.js
|
|
182732
183004
|
function parseDefaultDef(_def, refs) {
|
|
182733
183005
|
return {
|
|
182734
183006
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -182736,12 +183008,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
182736
183008
|
};
|
|
182737
183009
|
}
|
|
182738
183010
|
|
|
182739
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183011
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/effects.js
|
|
182740
183012
|
function parseEffectsDef(_def, refs) {
|
|
182741
183013
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
182742
183014
|
}
|
|
182743
183015
|
|
|
182744
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183016
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/enum.js
|
|
182745
183017
|
function parseEnumDef(def) {
|
|
182746
183018
|
return {
|
|
182747
183019
|
type: "string",
|
|
@@ -182749,7 +183021,7 @@ function parseEnumDef(def) {
|
|
|
182749
183021
|
};
|
|
182750
183022
|
}
|
|
182751
183023
|
|
|
182752
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183024
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/intersection.js
|
|
182753
183025
|
var isJsonSchema7AllOfType = (type2) => {
|
|
182754
183026
|
if ("type" in type2 && type2.type === "string")
|
|
182755
183027
|
return false;
|
|
@@ -182794,7 +183066,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
182794
183066
|
} : undefined;
|
|
182795
183067
|
}
|
|
182796
183068
|
|
|
182797
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183069
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/literal.js
|
|
182798
183070
|
function parseLiteralDef(def, refs) {
|
|
182799
183071
|
const parsedType4 = typeof def.value;
|
|
182800
183072
|
if (parsedType4 !== "bigint" && parsedType4 !== "number" && parsedType4 !== "boolean" && parsedType4 !== "string")
|
|
@@ -182810,7 +183082,7 @@ function parseLiteralDef(def, refs) {
|
|
|
182810
183082
|
};
|
|
182811
183083
|
}
|
|
182812
183084
|
|
|
182813
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183085
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/string.js
|
|
182814
183086
|
var emojiRegex2 = undefined;
|
|
182815
183087
|
var zodPatterns = {
|
|
182816
183088
|
cuid: /^[cC][^\s-]{8,}$/,
|
|
@@ -183076,7 +183348,7 @@ function stringifyRegExpWithFlags(regex3, refs) {
|
|
|
183076
183348
|
return pattern;
|
|
183077
183349
|
}
|
|
183078
183350
|
|
|
183079
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183351
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/record.js
|
|
183080
183352
|
function parseRecordDef(def, refs) {
|
|
183081
183353
|
if (refs.target === "openAi")
|
|
183082
183354
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -183127,7 +183399,7 @@ function parseRecordDef(def, refs) {
|
|
|
183127
183399
|
return schema2;
|
|
183128
183400
|
}
|
|
183129
183401
|
|
|
183130
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183402
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/map.js
|
|
183131
183403
|
function parseMapDef(def, refs) {
|
|
183132
183404
|
if (refs.mapStrategy === "record")
|
|
183133
183405
|
return parseRecordDef(def, refs);
|
|
@@ -183161,7 +183433,7 @@ function parseMapDef(def, refs) {
|
|
|
183161
183433
|
};
|
|
183162
183434
|
}
|
|
183163
183435
|
|
|
183164
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183436
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nativeEnum.js
|
|
183165
183437
|
function parseNativeEnumDef(def) {
|
|
183166
183438
|
const object = def.values;
|
|
183167
183439
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -183175,7 +183447,7 @@ function parseNativeEnumDef(def) {
|
|
|
183175
183447
|
};
|
|
183176
183448
|
}
|
|
183177
183449
|
|
|
183178
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183450
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/never.js
|
|
183179
183451
|
function parseNeverDef(refs) {
|
|
183180
183452
|
return refs.target === "openAi" ? undefined : { not: parseAnyDef({
|
|
183181
183453
|
...refs,
|
|
@@ -183183,7 +183455,7 @@ function parseNeverDef(refs) {
|
|
|
183183
183455
|
}) };
|
|
183184
183456
|
}
|
|
183185
183457
|
|
|
183186
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183458
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/null.js
|
|
183187
183459
|
function parseNullDef(refs) {
|
|
183188
183460
|
return refs.target === "openApi3" ? {
|
|
183189
183461
|
enum: ["null"],
|
|
@@ -183191,7 +183463,7 @@ function parseNullDef(refs) {
|
|
|
183191
183463
|
} : { type: "null" };
|
|
183192
183464
|
}
|
|
183193
183465
|
|
|
183194
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183466
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/union.js
|
|
183195
183467
|
var primitiveMappings = {
|
|
183196
183468
|
ZodString: "string",
|
|
183197
183469
|
ZodNumber: "number",
|
|
@@ -183258,7 +183530,7 @@ var asAnyOf = (def, refs) => {
|
|
|
183258
183530
|
return anyOf.length ? { anyOf } : undefined;
|
|
183259
183531
|
};
|
|
183260
183532
|
|
|
183261
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183533
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nullable.js
|
|
183262
183534
|
function parseNullableDef(def, refs) {
|
|
183263
183535
|
if ([
|
|
183264
183536
|
"ZodString",
|
|
@@ -183300,7 +183572,7 @@ function parseNullableDef(def, refs) {
|
|
|
183300
183572
|
return base && { anyOf: [base, { type: "null" }] };
|
|
183301
183573
|
}
|
|
183302
183574
|
|
|
183303
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183575
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/number.js
|
|
183304
183576
|
function parseNumberDef(def, refs) {
|
|
183305
183577
|
const res = { type: "number" };
|
|
183306
183578
|
if (!def.checks)
|
|
@@ -183342,7 +183614,7 @@ function parseNumberDef(def, refs) {
|
|
|
183342
183614
|
return res;
|
|
183343
183615
|
}
|
|
183344
183616
|
|
|
183345
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183617
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/object.js
|
|
183346
183618
|
function parseObjectDef(def, refs) {
|
|
183347
183619
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
183348
183620
|
const result = {
|
|
@@ -183412,7 +183684,7 @@ function safeIsOptional(schema2) {
|
|
|
183412
183684
|
}
|
|
183413
183685
|
}
|
|
183414
183686
|
|
|
183415
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183687
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/optional.js
|
|
183416
183688
|
var parseOptionalDef = (def, refs) => {
|
|
183417
183689
|
if (refs.currentPath.toString() === refs.propertyPath?.toString())
|
|
183418
183690
|
return parseDef(def.innerType._def, refs);
|
|
@@ -183427,7 +183699,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
183427
183699
|
return innerSchema ? { anyOf: [{ not: parseAnyDef(refs) }, innerSchema] } : parseAnyDef(refs);
|
|
183428
183700
|
};
|
|
183429
183701
|
|
|
183430
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183702
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/pipeline.js
|
|
183431
183703
|
var parsePipelineDef = (def, refs) => {
|
|
183432
183704
|
if (refs.pipeStrategy === "input")
|
|
183433
183705
|
return parseDef(def.in._def, refs);
|
|
@@ -183452,12 +183724,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
183452
183724
|
return { allOf: [a443, b8].filter((x4) => x4 !== undefined) };
|
|
183453
183725
|
};
|
|
183454
183726
|
|
|
183455
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183727
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/promise.js
|
|
183456
183728
|
function parsePromiseDef(def, refs) {
|
|
183457
183729
|
return parseDef(def.type._def, refs);
|
|
183458
183730
|
}
|
|
183459
183731
|
|
|
183460
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183732
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/set.js
|
|
183461
183733
|
function parseSetDef(def, refs) {
|
|
183462
183734
|
const items = parseDef(def.valueType._def, {
|
|
183463
183735
|
...refs,
|
|
@@ -183475,7 +183747,7 @@ function parseSetDef(def, refs) {
|
|
|
183475
183747
|
return schema2;
|
|
183476
183748
|
}
|
|
183477
183749
|
|
|
183478
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183750
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/tuple.js
|
|
183479
183751
|
function parseTupleDef(def, refs) {
|
|
183480
183752
|
if (def.rest)
|
|
183481
183753
|
return {
|
|
@@ -183510,22 +183782,22 @@ function parseTupleDef(def, refs) {
|
|
|
183510
183782
|
};
|
|
183511
183783
|
}
|
|
183512
183784
|
|
|
183513
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183785
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/undefined.js
|
|
183514
183786
|
function parseUndefinedDef(refs) {
|
|
183515
183787
|
return { not: parseAnyDef(refs) };
|
|
183516
183788
|
}
|
|
183517
183789
|
|
|
183518
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183790
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/unknown.js
|
|
183519
183791
|
function parseUnknownDef(refs) {
|
|
183520
183792
|
return parseAnyDef(refs);
|
|
183521
183793
|
}
|
|
183522
183794
|
|
|
183523
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183795
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/readonly.js
|
|
183524
183796
|
var parseReadonlyDef = (def, refs) => {
|
|
183525
183797
|
return parseDef(def.innerType._def, refs);
|
|
183526
183798
|
};
|
|
183527
183799
|
|
|
183528
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183800
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/selectParser.js
|
|
183529
183801
|
var selectParser2 = (def, typeName, refs) => {
|
|
183530
183802
|
switch (typeName) {
|
|
183531
183803
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -183603,7 +183875,7 @@ var selectParser2 = (def, typeName, refs) => {
|
|
|
183603
183875
|
}
|
|
183604
183876
|
};
|
|
183605
183877
|
|
|
183606
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183878
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parseDef.js
|
|
183607
183879
|
function parseDef(def, refs, forceResolution = false) {
|
|
183608
183880
|
const seenItem = refs.seen.get(def);
|
|
183609
183881
|
if (refs.override) {
|
|
@@ -183658,7 +183930,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
183658
183930
|
return jsonSchema;
|
|
183659
183931
|
};
|
|
183660
183932
|
|
|
183661
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183933
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/zodToJsonSchema.js
|
|
183662
183934
|
var zodToJsonSchema = (schema2, options) => {
|
|
183663
183935
|
const refs = getRefs(options);
|
|
183664
183936
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name$1, schema$1]) => ({
|
|
@@ -184791,7 +185063,7 @@ class Validator {
|
|
|
184791
185063
|
}
|
|
184792
185064
|
}
|
|
184793
185065
|
|
|
184794
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185066
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/json_schema.js
|
|
184795
185067
|
var json_schema_exports = {};
|
|
184796
185068
|
__export2(json_schema_exports, {
|
|
184797
185069
|
Validator: () => Validator,
|
|
@@ -184799,14 +185071,14 @@ __export2(json_schema_exports, {
|
|
|
184799
185071
|
toJsonSchema: () => toJsonSchema,
|
|
184800
185072
|
validatesOnlyStrings: () => validatesOnlyStrings
|
|
184801
185073
|
});
|
|
184802
|
-
function toJsonSchema(schema2) {
|
|
185074
|
+
function toJsonSchema(schema2, params2) {
|
|
184803
185075
|
if (isZodSchemaV4(schema2)) {
|
|
184804
185076
|
const inputSchema = interopZodTransformInputSchema(schema2, true);
|
|
184805
185077
|
if (isZodObjectV4(inputSchema)) {
|
|
184806
185078
|
const strictSchema = interopZodObjectStrict(inputSchema, true);
|
|
184807
|
-
return toJSONSchema3(strictSchema);
|
|
185079
|
+
return toJSONSchema3(strictSchema, params2);
|
|
184808
185080
|
} else
|
|
184809
|
-
return toJSONSchema3(schema2);
|
|
185081
|
+
return toJSONSchema3(schema2, params2);
|
|
184810
185082
|
}
|
|
184811
185083
|
if (isZodSchemaV3(schema2))
|
|
184812
185084
|
return zodToJsonSchema(schema2);
|
|
@@ -184844,7 +185116,7 @@ function validatesOnlyStrings(schema2) {
|
|
|
184844
185116
|
return false;
|
|
184845
185117
|
}
|
|
184846
185118
|
|
|
184847
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185119
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/graph.js
|
|
184848
185120
|
var graph_exports = {};
|
|
184849
185121
|
__export2(graph_exports, { Graph: () => Graph });
|
|
184850
185122
|
function nodeDataStr(id, data) {
|
|
@@ -185053,7 +185325,7 @@ function _lastNode(graph, exclude = []) {
|
|
|
185053
185325
|
return found.length === 1 ? found[0] : undefined;
|
|
185054
185326
|
}
|
|
185055
185327
|
|
|
185056
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185328
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/wrappers.js
|
|
185057
185329
|
function convertToHttpEventStream(stream2) {
|
|
185058
185330
|
const encoder2 = new TextEncoder;
|
|
185059
185331
|
const finalStream = new ReadableStream({ async start(controller) {
|
|
@@ -185070,7 +185342,7 @@ data: ${JSON.stringify(chunk)}
|
|
|
185070
185342
|
return IterableReadableStream.fromReadableStream(finalStream);
|
|
185071
185343
|
}
|
|
185072
185344
|
|
|
185073
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185345
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/iter.js
|
|
185074
185346
|
function isIterableIterator(thing) {
|
|
185075
185347
|
return typeof thing === "object" && thing !== null && typeof thing[Symbol.iterator] === "function" && typeof thing.next === "function";
|
|
185076
185348
|
}
|
|
@@ -185098,7 +185370,7 @@ async function* consumeAsyncIterableInContext(context, iter) {
|
|
|
185098
185370
|
}
|
|
185099
185371
|
}
|
|
185100
185372
|
|
|
185101
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185373
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/base.js
|
|
185102
185374
|
function _coerceToDict2(value, defaultKey) {
|
|
185103
185375
|
return value && !Array.isArray(value) && !(value instanceof Date) && typeof value === "object" ? value : { [defaultKey]: value };
|
|
185104
185376
|
}
|
|
@@ -186474,7 +186746,7 @@ function convertRunnableToTool(runnable, fields) {
|
|
|
186474
186746
|
});
|
|
186475
186747
|
}
|
|
186476
186748
|
|
|
186477
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
186749
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/transformers.js
|
|
186478
186750
|
var _isMessageType = (msg, types6) => {
|
|
186479
186751
|
const typesAsStrings = [...new Set(types6?.map((t481) => {
|
|
186480
186752
|
if (typeof t481 === "string")
|
|
@@ -186827,7 +187099,7 @@ function defaultTextSplitter(text5) {
|
|
|
186827
187099
|
`), splits[splits.length - 1]]);
|
|
186828
187100
|
}
|
|
186829
187101
|
|
|
186830
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187102
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/content/tools.js
|
|
186831
187103
|
var KNOWN_BLOCK_TYPES = [
|
|
186832
187104
|
"tool_call",
|
|
186833
187105
|
"tool_call_chunk",
|
|
@@ -186837,7 +187109,7 @@ var KNOWN_BLOCK_TYPES = [
|
|
|
186837
187109
|
"server_tool_call_result"
|
|
186838
187110
|
];
|
|
186839
187111
|
|
|
186840
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187112
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/content/multimodal.js
|
|
186841
187113
|
var KNOWN_BLOCK_TYPES2 = [
|
|
186842
187114
|
"image",
|
|
186843
187115
|
"video",
|
|
@@ -186846,7 +187118,7 @@ var KNOWN_BLOCK_TYPES2 = [
|
|
|
186846
187118
|
"file"
|
|
186847
187119
|
];
|
|
186848
187120
|
|
|
186849
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187121
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/content/index.js
|
|
186850
187122
|
var KNOWN_BLOCK_TYPES$2 = [
|
|
186851
187123
|
"text",
|
|
186852
187124
|
"reasoning",
|
|
@@ -186854,7 +187126,7 @@ var KNOWN_BLOCK_TYPES$2 = [
|
|
|
186854
187126
|
...KNOWN_BLOCK_TYPES2
|
|
186855
187127
|
];
|
|
186856
187128
|
|
|
186857
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187129
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/messages/index.js
|
|
186858
187130
|
var messages_exports = {};
|
|
186859
187131
|
__export2(messages_exports, {
|
|
186860
187132
|
AIMessage: () => AIMessage,
|
|
@@ -186879,6 +187151,7 @@ __export2(messages_exports, {
|
|
|
186879
187151
|
_mergeObj: () => _mergeObj,
|
|
186880
187152
|
_mergeStatus: () => _mergeStatus,
|
|
186881
187153
|
coerceMessageLikeToMessage: () => coerceMessageLikeToMessage,
|
|
187154
|
+
collapseToolCallChunks: () => collapseToolCallChunks,
|
|
186882
187155
|
convertToChunk: () => convertToChunk,
|
|
186883
187156
|
convertToOpenAIImageBlock: () => convertToOpenAIImageBlock,
|
|
186884
187157
|
convertToProviderContentBlock: () => convertToProviderContentBlock,
|
|
@@ -186921,10 +187194,10 @@ __export2(messages_exports, {
|
|
|
186921
187194
|
trimMessages: () => trimMessages
|
|
186922
187195
|
});
|
|
186923
187196
|
|
|
186924
|
-
// ../../node_modules/.pnpm/@langchain+openai@1.
|
|
187197
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.2.0_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76___ws@8.18.3/node_modules/@langchain/openai/dist/utils/misc.js
|
|
186925
187198
|
var iife$1 = (fn2) => fn2();
|
|
186926
187199
|
|
|
186927
|
-
// ../../node_modules/.pnpm/@langchain+openai@1.
|
|
187200
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.2.0_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76___ws@8.18.3/node_modules/@langchain/openai/dist/utils/azure.js
|
|
186928
187201
|
function getEndpoint(config2) {
|
|
186929
187202
|
const { azureOpenAIApiDeploymentName, azureOpenAIApiInstanceName, azureOpenAIApiKey, azureOpenAIBasePath, baseURL, azureADTokenProvider, azureOpenAIEndpoint } = config2;
|
|
186930
187203
|
if ((azureOpenAIApiKey || azureADTokenProvider) && azureOpenAIBasePath && azureOpenAIApiDeploymentName)
|
|
@@ -186975,7 +187248,7 @@ function getHeadersWithUserAgent(headers, isAzure = false, version3 = "1.0.0") {
|
|
|
186975
187248
|
};
|
|
186976
187249
|
}
|
|
186977
187250
|
|
|
186978
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187251
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tools/types.js
|
|
186979
187252
|
function isStructuredTool(tool) {
|
|
186980
187253
|
return tool !== undefined && Array.isArray(tool.lc_namespace);
|
|
186981
187254
|
}
|
|
@@ -186996,7 +187269,7 @@ function isLangChainTool(tool) {
|
|
|
186996
187269
|
return isStructuredToolParams(tool) || isRunnableToolLike(tool) || isStructuredTool(tool);
|
|
186997
187270
|
}
|
|
186998
187271
|
|
|
186999
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187272
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/function_calling.js
|
|
187000
187273
|
var function_calling_exports = {};
|
|
187001
187274
|
__export2(function_calling_exports, {
|
|
187002
187275
|
convertToOpenAIFunction: () => convertToOpenAIFunction,
|
|
@@ -187030,7 +187303,7 @@ function convertToOpenAITool(tool, fields) {
|
|
|
187030
187303
|
return toolDef;
|
|
187031
187304
|
}
|
|
187032
187305
|
|
|
187033
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187306
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/types/index.js
|
|
187034
187307
|
var types_exports = {};
|
|
187035
187308
|
__export2(types_exports, {
|
|
187036
187309
|
extendInteropZodObject: () => extendInteropZodObject,
|
|
@@ -187055,8 +187328,10 @@ __export2(types_exports, {
|
|
|
187055
187328
|
isZodArrayV4: () => isZodArrayV4,
|
|
187056
187329
|
isZodLiteralV3: () => isZodLiteralV3,
|
|
187057
187330
|
isZodLiteralV4: () => isZodLiteralV4,
|
|
187331
|
+
isZodNullableV4: () => isZodNullableV4,
|
|
187058
187332
|
isZodObjectV3: () => isZodObjectV3,
|
|
187059
187333
|
isZodObjectV4: () => isZodObjectV4,
|
|
187334
|
+
isZodOptionalV4: () => isZodOptionalV4,
|
|
187060
187335
|
isZodSchema: () => isZodSchema,
|
|
187061
187336
|
isZodSchemaV3: () => isZodSchemaV3,
|
|
187062
187337
|
isZodSchemaV4: () => isZodSchemaV4
|
|
@@ -188329,9 +188604,9 @@ function date5(params2) {
|
|
|
188329
188604
|
|
|
188330
188605
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
|
|
188331
188606
|
config(en_default2());
|
|
188332
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
188607
|
+
// ../../node_modules/.pnpm/openai@6.10.0_ws@8.18.3_zod@3.25.76/node_modules/openai/_vendor/zod-to-json-schema/Options.mjs
|
|
188333
188608
|
var ignoreOverride2 = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
188334
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
188609
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/prompt_values.js
|
|
188335
188610
|
var prompt_values_exports = {};
|
|
188336
188611
|
__export2(prompt_values_exports, {
|
|
188337
188612
|
BasePromptValue: () => BasePromptValue,
|
|
@@ -188407,7 +188682,7 @@ var ImagePromptValue = class extends BasePromptValue {
|
|
|
188407
188682
|
}
|
|
188408
188683
|
};
|
|
188409
188684
|
|
|
188410
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
188685
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/js-sha256/hash.js
|
|
188411
188686
|
var HEX_CHARS = "0123456789abcdef".split("");
|
|
188412
188687
|
var EXTRA = [
|
|
188413
188688
|
-2147483648,
|
|
@@ -188757,11 +189032,11 @@ var sha256 = (...strings) => {
|
|
|
188757
189032
|
return new Sha256(false, true).update(strings.join("")).hex();
|
|
188758
189033
|
};
|
|
188759
189034
|
|
|
188760
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189035
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/hash.js
|
|
188761
189036
|
var hash_exports = {};
|
|
188762
189037
|
__export2(hash_exports, { sha256: () => sha256 });
|
|
188763
189038
|
|
|
188764
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189039
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/caches/index.js
|
|
188765
189040
|
var caches_exports = {};
|
|
188766
189041
|
__export2(caches_exports, {
|
|
188767
189042
|
BaseCache: () => BaseCache,
|
|
@@ -189069,7 +189344,7 @@ function getEncodingNameForModel(model) {
|
|
|
189069
189344
|
throw new Error("Unknown model");
|
|
189070
189345
|
}
|
|
189071
189346
|
}
|
|
189072
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189347
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/tiktoken.js
|
|
189073
189348
|
var tiktoken_exports = {};
|
|
189074
189349
|
__export2(tiktoken_exports, {
|
|
189075
189350
|
encodingForModel: () => encodingForModel,
|
|
@@ -189089,7 +189364,7 @@ async function encodingForModel(model) {
|
|
|
189089
189364
|
return getEncoding(getEncodingNameForModel(model));
|
|
189090
189365
|
}
|
|
189091
189366
|
|
|
189092
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189367
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/language_models/base.js
|
|
189093
189368
|
var base_exports3 = {};
|
|
189094
189369
|
__export2(base_exports3, {
|
|
189095
189370
|
BaseLangChain: () => BaseLangChain,
|
|
@@ -189324,7 +189599,7 @@ var BaseLanguageModel = class extends BaseLangChain {
|
|
|
189324
189599
|
}
|
|
189325
189600
|
};
|
|
189326
189601
|
|
|
189327
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189602
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/passthrough.js
|
|
189328
189603
|
var RunnablePassthrough = class extends Runnable {
|
|
189329
189604
|
static lc_name() {
|
|
189330
189605
|
return "RunnablePassthrough";
|
|
@@ -189368,7 +189643,7 @@ var RunnablePassthrough = class extends Runnable {
|
|
|
189368
189643
|
}
|
|
189369
189644
|
};
|
|
189370
189645
|
|
|
189371
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189646
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/language_models/utils.js
|
|
189372
189647
|
var iife3 = (fn2) => fn2();
|
|
189373
189648
|
function castStandardMessageContent(message) {
|
|
189374
189649
|
const Cls = message.constructor;
|
|
@@ -189382,7 +189657,7 @@ function castStandardMessageContent(message) {
|
|
|
189382
189657
|
});
|
|
189383
189658
|
}
|
|
189384
189659
|
|
|
189385
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189660
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/language_models/chat_models.js
|
|
189386
189661
|
var chat_models_exports = {};
|
|
189387
189662
|
__export2(chat_models_exports, {
|
|
189388
189663
|
BaseChatModel: () => BaseChatModel,
|
|
@@ -189795,7 +190070,7 @@ var SimpleChatModel = class extends BaseChatModel {
|
|
|
189795
190070
|
}
|
|
189796
190071
|
};
|
|
189797
190072
|
|
|
189798
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190073
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/router.js
|
|
189799
190074
|
var RouterRunnable = class extends Runnable {
|
|
189800
190075
|
static lc_name() {
|
|
189801
190076
|
return "RouterRunnable";
|
|
@@ -189841,7 +190116,7 @@ var RouterRunnable = class extends Runnable {
|
|
|
189841
190116
|
}
|
|
189842
190117
|
};
|
|
189843
190118
|
|
|
189844
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190119
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/branch.js
|
|
189845
190120
|
var RunnableBranch = class extends Runnable {
|
|
189846
190121
|
static lc_name() {
|
|
189847
190122
|
return "RunnableBranch";
|
|
@@ -189935,7 +190210,7 @@ var RunnableBranch = class extends Runnable {
|
|
|
189935
190210
|
}
|
|
189936
190211
|
};
|
|
189937
190212
|
|
|
189938
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190213
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/history.js
|
|
189939
190214
|
var RunnableWithMessageHistory = class extends RunnableBinding {
|
|
189940
190215
|
runnable;
|
|
189941
190216
|
inputMessagesKey;
|
|
@@ -190050,7 +190325,7 @@ eg. chain.invoke(${JSON.stringify(exampleInput)}, ${JSON.stringify(exampleConfig
|
|
|
190050
190325
|
}
|
|
190051
190326
|
};
|
|
190052
190327
|
|
|
190053
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190328
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/runnables/index.js
|
|
190054
190329
|
var runnables_exports = {};
|
|
190055
190330
|
__export2(runnables_exports, {
|
|
190056
190331
|
RouterRunnable: () => RouterRunnable,
|
|
@@ -190078,7 +190353,7 @@ __export2(runnables_exports, {
|
|
|
190078
190353
|
raceWithSignal: () => raceWithSignal
|
|
190079
190354
|
});
|
|
190080
190355
|
|
|
190081
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190356
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/base.js
|
|
190082
190357
|
var BaseLLMOutputParser = class extends Runnable {
|
|
190083
190358
|
parseResultWithPrompt(generations, _prompt, callbacks) {
|
|
190084
190359
|
return this.parseResult(generations, callbacks);
|
|
@@ -190133,7 +190408,7 @@ var OutputParserException = class extends Error {
|
|
|
190133
190408
|
}
|
|
190134
190409
|
};
|
|
190135
190410
|
|
|
190136
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190411
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/transform.js
|
|
190137
190412
|
var BaseTransformOutputParser = class extends BaseOutputParser {
|
|
190138
190413
|
async* _transform(inputGenerator) {
|
|
190139
190414
|
for await (const chunk of inputGenerator)
|
|
@@ -190200,14 +190475,14 @@ var BaseCumulativeTransformOutputParser = class extends BaseTransformOutputParse
|
|
|
190200
190475
|
}
|
|
190201
190476
|
};
|
|
190202
190477
|
|
|
190203
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190478
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/json_patch.js
|
|
190204
190479
|
var json_patch_exports = {};
|
|
190205
190480
|
__export2(json_patch_exports, {
|
|
190206
190481
|
applyPatch: () => applyPatch,
|
|
190207
190482
|
compare: () => compare
|
|
190208
190483
|
});
|
|
190209
190484
|
|
|
190210
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190485
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/json.js
|
|
190211
190486
|
var JsonOutputParser = class extends BaseCumulativeTransformOutputParser {
|
|
190212
190487
|
static lc_name() {
|
|
190213
190488
|
return "JsonOutputParser";
|
|
@@ -190241,7 +190516,7 @@ var JsonOutputParser = class extends BaseCumulativeTransformOutputParser {
|
|
|
190241
190516
|
}
|
|
190242
190517
|
};
|
|
190243
190518
|
|
|
190244
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190519
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/bytes.js
|
|
190245
190520
|
var BytesOutputParser = class extends BaseTransformOutputParser {
|
|
190246
190521
|
static lc_name() {
|
|
190247
190522
|
return "BytesOutputParser";
|
|
@@ -190261,7 +190536,7 @@ var BytesOutputParser = class extends BaseTransformOutputParser {
|
|
|
190261
190536
|
}
|
|
190262
190537
|
};
|
|
190263
190538
|
|
|
190264
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190539
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/list.js
|
|
190265
190540
|
var ListOutputParser = class extends BaseTransformOutputParser {
|
|
190266
190541
|
re;
|
|
190267
190542
|
async* _transform(inputGenerator) {
|
|
@@ -190393,7 +190668,7 @@ var MarkdownListOutputParser = class extends ListOutputParser {
|
|
|
190393
190668
|
}
|
|
190394
190669
|
};
|
|
190395
190670
|
|
|
190396
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190671
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/string.js
|
|
190397
190672
|
var StringOutputParser = class extends BaseTransformOutputParser {
|
|
190398
190673
|
static lc_name() {
|
|
190399
190674
|
return "StrOutputParser";
|
|
@@ -190437,7 +190712,7 @@ var StringOutputParser = class extends BaseTransformOutputParser {
|
|
|
190437
190712
|
}
|
|
190438
190713
|
};
|
|
190439
190714
|
|
|
190440
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190715
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/structured.js
|
|
190441
190716
|
var StructuredOutputParser = class extends BaseOutputParser {
|
|
190442
190717
|
static lc_name() {
|
|
190443
190718
|
return "StructuredOutputParser";
|
|
@@ -190573,7 +190848,7 @@ var AsymmetricStructuredOutputParser = class extends BaseOutputParser {
|
|
|
190573
190848
|
}
|
|
190574
190849
|
};
|
|
190575
190850
|
|
|
190576
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190851
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/sax-js/sax.js
|
|
190577
190852
|
var initializeSax = function() {
|
|
190578
190853
|
const sax$1 = {};
|
|
190579
190854
|
sax$1.parser = function(strict, opt) {
|
|
@@ -191907,7 +192182,7 @@ Actual: ` + parser.attribValue);
|
|
|
191907
192182
|
};
|
|
191908
192183
|
var sax = initializeSax();
|
|
191909
192184
|
|
|
191910
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192185
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/xml.js
|
|
191911
192186
|
var XML_FORMAT_INSTRUCTIONS = `The output should be formatted as a XML file.
|
|
191912
192187
|
1. Output should conform to the tags below.
|
|
191913
192188
|
2. If tags are not given, make them on your own.
|
|
@@ -192027,7 +192302,7 @@ function parseXMLMarkdown(s187) {
|
|
|
192027
192302
|
return parseParsedResult(parsedResult);
|
|
192028
192303
|
}
|
|
192029
192304
|
|
|
192030
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192305
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/index.js
|
|
192031
192306
|
var output_parsers_exports = {};
|
|
192032
192307
|
__export2(output_parsers_exports, {
|
|
192033
192308
|
AsymmetricStructuredOutputParser: () => AsymmetricStructuredOutputParser,
|
|
@@ -192053,7 +192328,7 @@ __export2(output_parsers_exports, {
|
|
|
192053
192328
|
parseXMLMarkdown: () => parseXMLMarkdown
|
|
192054
192329
|
});
|
|
192055
192330
|
|
|
192056
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192331
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/openai_tools/json_output_tools_parsers.js
|
|
192057
192332
|
function parseToolCall3(rawToolCall, options) {
|
|
192058
192333
|
if (rawToolCall.function === undefined)
|
|
192059
192334
|
return;
|
|
@@ -192226,7 +192501,7 @@ var JsonOutputKeyToolsParser = class extends JsonOutputToolsParser {
|
|
|
192226
192501
|
}
|
|
192227
192502
|
};
|
|
192228
192503
|
|
|
192229
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192504
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/output_parsers/openai_tools/index.js
|
|
192230
192505
|
var openai_tools_exports = {};
|
|
192231
192506
|
__export2(openai_tools_exports, {
|
|
192232
192507
|
JsonOutputKeyToolsParser: () => JsonOutputKeyToolsParser,
|
|
@@ -192236,7 +192511,7 @@ __export2(openai_tools_exports, {
|
|
|
192236
192511
|
parseToolCall: () => parseToolCall3
|
|
192237
192512
|
});
|
|
192238
192513
|
|
|
192239
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192514
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/language_models/llms.js
|
|
192240
192515
|
var llms_exports = {};
|
|
192241
192516
|
__export2(llms_exports, {
|
|
192242
192517
|
BaseLLM: () => BaseLLM,
|
|
@@ -192475,7 +192750,7 @@ var LLM = class extends BaseLLM {
|
|
|
192475
192750
|
}
|
|
192476
192751
|
};
|
|
192477
192752
|
|
|
192478
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192753
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/chunk_array.js
|
|
192479
192754
|
var chunk_array_exports = {};
|
|
192480
192755
|
__export2(chunk_array_exports, { chunkArray: () => chunkArray });
|
|
192481
192756
|
var chunkArray = (arr2, chunkSize) => arr2.reduce((chunks, elem, index2) => {
|
|
@@ -192485,7 +192760,7 @@ var chunkArray = (arr2, chunkSize) => arr2.reduce((chunks, elem, index2) => {
|
|
|
192485
192760
|
return chunks;
|
|
192486
192761
|
}, []);
|
|
192487
192762
|
|
|
192488
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192763
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/embeddings.js
|
|
192489
192764
|
var embeddings_exports = {};
|
|
192490
192765
|
__export2(embeddings_exports, { Embeddings: () => Embeddings2 });
|
|
192491
192766
|
var Embeddings2 = class {
|
|
@@ -192495,7 +192770,7 @@ var Embeddings2 = class {
|
|
|
192495
192770
|
}
|
|
192496
192771
|
};
|
|
192497
192772
|
|
|
192498
|
-
// ../../node_modules/.pnpm/@langchain+openai@1.
|
|
192773
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.2.0_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76___ws@8.18.3/node_modules/@langchain/openai/dist/embeddings.js
|
|
192499
192774
|
var OpenAIEmbeddings = class extends Embeddings2 {
|
|
192500
192775
|
model = "text-embedding-ada-002";
|
|
192501
192776
|
modelName;
|
|
@@ -192593,7 +192868,7 @@ var OpenAIEmbeddings = class extends Embeddings2 {
|
|
|
192593
192868
|
}
|
|
192594
192869
|
};
|
|
192595
192870
|
|
|
192596
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192871
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/tools/index.js
|
|
192597
192872
|
var tools_exports = {};
|
|
192598
192873
|
__export2(tools_exports, {
|
|
192599
192874
|
BaseToolkit: () => BaseToolkit,
|
|
@@ -192609,6 +192884,7 @@ __export2(tools_exports, {
|
|
|
192609
192884
|
tool: () => tool
|
|
192610
192885
|
});
|
|
192611
192886
|
var StructuredTool = class extends BaseLangChain {
|
|
192887
|
+
extras;
|
|
192612
192888
|
returnDirect = false;
|
|
192613
192889
|
verboseParsingErrors = false;
|
|
192614
192890
|
get lc_namespace() {
|
|
@@ -192622,6 +192898,7 @@ var StructuredTool = class extends BaseLangChain {
|
|
|
192622
192898
|
this.responseFormat = fields?.responseFormat ?? this.responseFormat;
|
|
192623
192899
|
this.defaultConfig = fields?.defaultConfig ?? this.defaultConfig;
|
|
192624
192900
|
this.metadata = fields?.metadata ?? this.metadata;
|
|
192901
|
+
this.extras = fields?.extras ?? this.extras;
|
|
192625
192902
|
}
|
|
192626
192903
|
async invoke(input, config2) {
|
|
192627
192904
|
let toolInput;
|
|
@@ -192858,7 +193135,116 @@ function _stringify(content3) {
|
|
|
192858
193135
|
}
|
|
192859
193136
|
}
|
|
192860
193137
|
|
|
192861
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193138
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.2.0_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76___ws@8.18.3/node_modules/@langchain/openai/dist/tools/computerUse.js
|
|
193139
|
+
var ComputerUseScreenshotActionSchema = exports_external2.object({ type: exports_external2.literal("screenshot") });
|
|
193140
|
+
var ComputerUseClickActionSchema = exports_external2.object({
|
|
193141
|
+
type: exports_external2.literal("click"),
|
|
193142
|
+
x: exports_external2.number(),
|
|
193143
|
+
y: exports_external2.number(),
|
|
193144
|
+
button: exports_external2.enum([
|
|
193145
|
+
"left",
|
|
193146
|
+
"right",
|
|
193147
|
+
"wheel",
|
|
193148
|
+
"back",
|
|
193149
|
+
"forward"
|
|
193150
|
+
]).default("left")
|
|
193151
|
+
});
|
|
193152
|
+
var ComputerUseDoubleClickActionSchema = exports_external2.object({
|
|
193153
|
+
type: exports_external2.literal("double_click"),
|
|
193154
|
+
x: exports_external2.number(),
|
|
193155
|
+
y: exports_external2.number(),
|
|
193156
|
+
button: exports_external2.enum([
|
|
193157
|
+
"left",
|
|
193158
|
+
"right",
|
|
193159
|
+
"wheel",
|
|
193160
|
+
"back",
|
|
193161
|
+
"forward"
|
|
193162
|
+
]).default("left")
|
|
193163
|
+
});
|
|
193164
|
+
var ComputerUseDragActionSchema = exports_external2.object({
|
|
193165
|
+
type: exports_external2.literal("drag"),
|
|
193166
|
+
path: exports_external2.array(exports_external2.object({
|
|
193167
|
+
x: exports_external2.number(),
|
|
193168
|
+
y: exports_external2.number()
|
|
193169
|
+
}))
|
|
193170
|
+
});
|
|
193171
|
+
var ComputerUseKeypressActionSchema = exports_external2.object({
|
|
193172
|
+
type: exports_external2.literal("keypress"),
|
|
193173
|
+
keys: exports_external2.array(exports_external2.string())
|
|
193174
|
+
});
|
|
193175
|
+
var ComputerUseMoveActionSchema = exports_external2.object({
|
|
193176
|
+
type: exports_external2.literal("move"),
|
|
193177
|
+
x: exports_external2.number(),
|
|
193178
|
+
y: exports_external2.number()
|
|
193179
|
+
});
|
|
193180
|
+
var ComputerUseScrollActionSchema = exports_external2.object({
|
|
193181
|
+
type: exports_external2.literal("scroll"),
|
|
193182
|
+
x: exports_external2.number(),
|
|
193183
|
+
y: exports_external2.number(),
|
|
193184
|
+
scroll_x: exports_external2.number(),
|
|
193185
|
+
scroll_y: exports_external2.number()
|
|
193186
|
+
});
|
|
193187
|
+
var ComputerUseTypeActionSchema = exports_external2.object({
|
|
193188
|
+
type: exports_external2.literal("type"),
|
|
193189
|
+
text: exports_external2.string()
|
|
193190
|
+
});
|
|
193191
|
+
var ComputerUseWaitActionSchema = exports_external2.object({
|
|
193192
|
+
type: exports_external2.literal("wait"),
|
|
193193
|
+
duration: exports_external2.number().optional()
|
|
193194
|
+
});
|
|
193195
|
+
var ComputerUseActionUnionSchema = exports_external2.discriminatedUnion("type", [
|
|
193196
|
+
ComputerUseScreenshotActionSchema,
|
|
193197
|
+
ComputerUseClickActionSchema,
|
|
193198
|
+
ComputerUseDoubleClickActionSchema,
|
|
193199
|
+
ComputerUseDragActionSchema,
|
|
193200
|
+
ComputerUseKeypressActionSchema,
|
|
193201
|
+
ComputerUseMoveActionSchema,
|
|
193202
|
+
ComputerUseScrollActionSchema,
|
|
193203
|
+
ComputerUseTypeActionSchema,
|
|
193204
|
+
ComputerUseWaitActionSchema
|
|
193205
|
+
]);
|
|
193206
|
+
var ComputerUseActionSchema = exports_external2.object({ action: ComputerUseActionUnionSchema });
|
|
193207
|
+
|
|
193208
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.2.0_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76___ws@8.18.3/node_modules/@langchain/openai/dist/tools/localShell.js
|
|
193209
|
+
var LocalShellExecActionSchema = exports_external2.object({
|
|
193210
|
+
type: exports_external2.literal("exec"),
|
|
193211
|
+
command: exports_external2.array(exports_external2.string()),
|
|
193212
|
+
env: exports_external2.record(exports_external2.string(), exports_external2.string()).optional(),
|
|
193213
|
+
working_directory: exports_external2.string().optional(),
|
|
193214
|
+
timeout_ms: exports_external2.number().optional(),
|
|
193215
|
+
user: exports_external2.string().optional()
|
|
193216
|
+
});
|
|
193217
|
+
var LocalShellActionSchema = exports_external2.discriminatedUnion("type", [LocalShellExecActionSchema]);
|
|
193218
|
+
|
|
193219
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.2.0_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76___ws@8.18.3/node_modules/@langchain/openai/dist/tools/shell.js
|
|
193220
|
+
var ShellActionSchema = exports_external2.object({
|
|
193221
|
+
commands: exports_external2.array(exports_external2.string()).describe("Array of shell commands to execute"),
|
|
193222
|
+
timeout_ms: exports_external2.number().optional().describe("Optional timeout in milliseconds for the commands"),
|
|
193223
|
+
max_output_length: exports_external2.number().optional().describe("Optional maximum number of characters to return from each command")
|
|
193224
|
+
});
|
|
193225
|
+
|
|
193226
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.2.0_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76___ws@8.18.3/node_modules/@langchain/openai/dist/tools/applyPatch.js
|
|
193227
|
+
var ApplyPatchCreateFileOperationSchema = exports_external2.object({
|
|
193228
|
+
type: exports_external2.literal("create_file"),
|
|
193229
|
+
path: exports_external2.string(),
|
|
193230
|
+
diff: exports_external2.string()
|
|
193231
|
+
});
|
|
193232
|
+
var ApplyPatchUpdateFileOperationSchema = exports_external2.object({
|
|
193233
|
+
type: exports_external2.literal("update_file"),
|
|
193234
|
+
path: exports_external2.string(),
|
|
193235
|
+
diff: exports_external2.string()
|
|
193236
|
+
});
|
|
193237
|
+
var ApplyPatchDeleteFileOperationSchema = exports_external2.object({
|
|
193238
|
+
type: exports_external2.literal("delete_file"),
|
|
193239
|
+
path: exports_external2.string()
|
|
193240
|
+
});
|
|
193241
|
+
var ApplyPatchOperationSchema = exports_external2.discriminatedUnion("type", [
|
|
193242
|
+
ApplyPatchCreateFileOperationSchema,
|
|
193243
|
+
ApplyPatchUpdateFileOperationSchema,
|
|
193244
|
+
ApplyPatchDeleteFileOperationSchema
|
|
193245
|
+
]);
|
|
193246
|
+
|
|
193247
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/documents/document.js
|
|
192862
193248
|
var Document = class {
|
|
192863
193249
|
pageContent;
|
|
192864
193250
|
metadata;
|
|
@@ -192870,7 +193256,7 @@ var Document = class {
|
|
|
192870
193256
|
}
|
|
192871
193257
|
};
|
|
192872
193258
|
|
|
192873
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193259
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/documents/transformers.js
|
|
192874
193260
|
var BaseDocumentTransformer = class extends Runnable {
|
|
192875
193261
|
lc_namespace = [
|
|
192876
193262
|
"langchain_core",
|
|
@@ -192892,7 +193278,7 @@ var MappingDocumentTransformer = class extends BaseDocumentTransformer {
|
|
|
192892
193278
|
}
|
|
192893
193279
|
};
|
|
192894
193280
|
|
|
192895
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193281
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/documents/index.js
|
|
192896
193282
|
var documents_exports = {};
|
|
192897
193283
|
__export2(documents_exports, {
|
|
192898
193284
|
BaseDocumentTransformer: () => BaseDocumentTransformer,
|
|
@@ -192900,7 +193286,7 @@ __export2(documents_exports, {
|
|
|
192900
193286
|
MappingDocumentTransformer: () => MappingDocumentTransformer
|
|
192901
193287
|
});
|
|
192902
193288
|
|
|
192903
|
-
// ../../node_modules/.pnpm/@langchain+textsplitters@1.0.1_@langchain+core@1.1.
|
|
193289
|
+
// ../../node_modules/.pnpm/@langchain+textsplitters@1.0.1_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76__/node_modules/@langchain/textsplitters/dist/text_splitter.js
|
|
192904
193290
|
var TextSplitter = class extends BaseDocumentTransformer {
|
|
192905
193291
|
lc_namespace = [
|
|
192906
193292
|
"langchain",
|
|
@@ -193571,7 +193957,7 @@ assembly `,
|
|
|
193571
193957
|
}
|
|
193572
193958
|
};
|
|
193573
193959
|
|
|
193574
|
-
// ../../node_modules/.pnpm/@langchain+classic@1.0.
|
|
193960
|
+
// ../../node_modules/.pnpm/@langchain+classic@1.0.6_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18_zdro5ewglbho3ign2vxlzw7ole/node_modules/@langchain/classic/dist/_virtual/rolldown_runtime.js
|
|
193575
193961
|
var __defProp4 = Object.defineProperty;
|
|
193576
193962
|
var __export3 = (target, all2) => {
|
|
193577
193963
|
for (var name in all2)
|
|
@@ -193581,7 +193967,7 @@ var __export3 = (target, all2) => {
|
|
|
193581
193967
|
});
|
|
193582
193968
|
};
|
|
193583
193969
|
|
|
193584
|
-
// ../../node_modules/.pnpm/@langchain+classic@1.0.
|
|
193970
|
+
// ../../node_modules/.pnpm/@langchain+classic@1.0.6_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18_zdro5ewglbho3ign2vxlzw7ole/node_modules/@langchain/classic/dist/util/ml-distance/similarities.js
|
|
193585
193971
|
function cosine(a443, b8) {
|
|
193586
193972
|
let p28 = 0;
|
|
193587
193973
|
let p29 = 0;
|
|
@@ -193594,7 +193980,7 @@ function cosine(a443, b8) {
|
|
|
193594
193980
|
return p28 / (Math.sqrt(p29) * Math.sqrt(q22));
|
|
193595
193981
|
}
|
|
193596
193982
|
|
|
193597
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193983
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/retrievers/index.js
|
|
193598
193984
|
var retrievers_exports = {};
|
|
193599
193985
|
__export2(retrievers_exports, { BaseRetriever: () => BaseRetriever });
|
|
193600
193986
|
var BaseRetriever = class extends Runnable {
|
|
@@ -193627,7 +194013,7 @@ var BaseRetriever = class extends Runnable {
|
|
|
193627
194013
|
}
|
|
193628
194014
|
};
|
|
193629
194015
|
|
|
193630
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
194016
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/vectorstores.js
|
|
193631
194017
|
var vectorstores_exports = {};
|
|
193632
194018
|
__export2(vectorstores_exports, {
|
|
193633
194019
|
SaveableVectorStore: () => SaveableVectorStore,
|
|
@@ -193738,7 +194124,7 @@ var SaveableVectorStore = class extends VectorStore {
|
|
|
193738
194124
|
}
|
|
193739
194125
|
};
|
|
193740
194126
|
|
|
193741
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
194127
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/ml-distance/similarities.js
|
|
193742
194128
|
function cosine2(a443, b8) {
|
|
193743
194129
|
let p28 = 0;
|
|
193744
194130
|
let p29 = 0;
|
|
@@ -193751,7 +194137,7 @@ function cosine2(a443, b8) {
|
|
|
193751
194137
|
return p28 / (Math.sqrt(p29) * Math.sqrt(q22));
|
|
193752
194138
|
}
|
|
193753
194139
|
|
|
193754
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
194140
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/ml-distance/distances.js
|
|
193755
194141
|
function innerProduct(a443, b8) {
|
|
193756
194142
|
let ans = 0;
|
|
193757
194143
|
for (let i315 = 0;i315 < a443.length; i315++)
|
|
@@ -193759,7 +194145,7 @@ function innerProduct(a443, b8) {
|
|
|
193759
194145
|
return ans;
|
|
193760
194146
|
}
|
|
193761
194147
|
|
|
193762
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
194148
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/ml-distance-euclidean/euclidean.js
|
|
193763
194149
|
function squaredEuclidean(p28, q4) {
|
|
193764
194150
|
let d29 = 0;
|
|
193765
194151
|
for (let i315 = 0;i315 < p28.length; i315++)
|
|
@@ -193770,7 +194156,7 @@ function euclidean(p28, q4) {
|
|
|
193770
194156
|
return Math.sqrt(squaredEuclidean(p28, q4));
|
|
193771
194157
|
}
|
|
193772
194158
|
|
|
193773
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
194159
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/@langchain/core/dist/utils/math.js
|
|
193774
194160
|
var math_exports = {};
|
|
193775
194161
|
__export2(math_exports, {
|
|
193776
194162
|
cosineSimilarity: () => cosineSimilarity,
|
|
@@ -193849,7 +194235,7 @@ function matrixMaxVal(arrays) {
|
|
|
193849
194235
|
return arrays.reduce((acc, array3) => Math.max(acc, argMax(array3).maxValue), 0);
|
|
193850
194236
|
}
|
|
193851
194237
|
|
|
193852
|
-
// ../../node_modules/.pnpm/@langchain+classic@1.0.
|
|
194238
|
+
// ../../node_modules/.pnpm/@langchain+classic@1.0.6_@langchain+core@1.1.5_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18_zdro5ewglbho3ign2vxlzw7ole/node_modules/@langchain/classic/dist/vectorstores/memory.js
|
|
193853
194239
|
var memory_exports = {};
|
|
193854
194240
|
__export3(memory_exports, { MemoryVectorStore: () => MemoryVectorStore });
|
|
193855
194241
|
var MemoryVectorStore = class MemoryVectorStore2 extends VectorStore {
|