@xyd-js/mcp 0.0.0-build-aebf977-20251203155725 → 0.0.0-build-2acf05c-20251207022018
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 +938 -725
- 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.1/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.1";
|
|
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.1/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.1/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.1/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.1_react@19.2.1/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.1";
|
|
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.1_react@19.2.1/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.1_react@19.2.1/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.1";
|
|
31511
31511
|
})();
|
|
31512
31512
|
});
|
|
31513
31513
|
|
|
31514
|
-
// ../../node_modules/.pnpm/react-dom@19.2.
|
|
31514
|
+
// ../../node_modules/.pnpm/react-dom@19.2.1_react@19.2.1/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.1")
|
|
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.1
|
|
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.1";
|
|
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.1/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.1/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.1_react@19.2.1/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-vl_Ad-Xk-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.1_react@19.2.1__react@19.2.1/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._xrbr6pq4peqnckt7d2jbt6ivqi/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.1/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.1/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.1/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._xrbr6pq4peqnckt7d2jbt6ivqi/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.1/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_syheullr6vr76o5wpjbjiuiare/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.1/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.1/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.1/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_l2q7xgeca4rprka7kwgghbi5gy/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.1/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.1/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.1/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_sv4g5mwinawizhcbg4o7yjgyje/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__m6wbbn6kyfnvame52cdbjwin5e/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.1/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-vl_Ad-Xk-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++)
|
|
@@ -118646,14 +118646,14 @@ 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
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
|
-
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(
|
|
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
|
}
|
|
118652
118652
|
function Re2(e488) {
|
|
118653
118653
|
var t481 = e488.property.name;
|
|
118654
118654
|
return t481 ? import_react5.default.createElement("atlas-apiref-propname", null, import_react5.default.createElement("dd", null, import_react5.default.createElement("code", { "data-parent-choice-type": e488.parentChoiceType ? "true" : undefined, className: Ee2 }, t481))) : null;
|
|
118655
118655
|
}
|
|
118656
|
-
function
|
|
118656
|
+
function Ae2(e488) {
|
|
118657
118657
|
var t481 = e488.property, r325 = import_react5.useContext(ne2).Link, o237 = r325 === undefined ? "a" : r325, i314 = function(e489) {
|
|
118658
118658
|
var n470, t482, r326 = function() {
|
|
118659
118659
|
var e490 = import_react5.useContext(ne2);
|
|
@@ -118671,7 +118671,7 @@ function Be2(e488) {
|
|
|
118671
118671
|
}(t481), l52 = Ie2(t481);
|
|
118672
118672
|
return l52 ? (i314 && (l52 = import_react5.default.createElement(o237, { className: ke2, href: i314 }, l52)), import_react5.default.createElement("atlas-apiref-proptype", null, import_react5.default.createElement("dd", null, import_react5.default.createElement("code", { className: be2 }, l52)))) : null;
|
|
118673
118673
|
}
|
|
118674
|
-
function
|
|
118674
|
+
function Be2(e488) {
|
|
118675
118675
|
var t481 = e488.value;
|
|
118676
118676
|
switch (e488.name) {
|
|
118677
118677
|
case "required":
|
|
@@ -118701,7 +118701,7 @@ function Le2(e488) {
|
|
|
118701
118701
|
return ((t482 = r325[e489.name]) !== null && t482 !== undefined ? t482 : 3) - ((a444 = r325[n470.name]) !== null && a444 !== undefined ? a444 : 3);
|
|
118702
118702
|
});
|
|
118703
118703
|
return import_react5.default.createElement(import_react5.default.Fragment, null, a443.map(function(e489, t482) {
|
|
118704
|
-
return import_react5.default.createElement(
|
|
118704
|
+
return import_react5.default.createElement(Be2, v2({ key: t482 }, e489));
|
|
118705
118705
|
}));
|
|
118706
118706
|
}
|
|
118707
118707
|
function Te2(e488) {
|
|
@@ -118721,7 +118721,7 @@ function Te2(e488) {
|
|
|
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
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
|
-
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(
|
|
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
|
}
|
|
118727
118727
|
function Fe2(e488) {
|
|
@@ -118801,12 +118801,12 @@ function Ie2(e488) {
|
|
|
118801
118801
|
var P4, O4 = false, R8 = m41(N6);
|
|
118802
118802
|
try {
|
|
118803
118803
|
for (R8.s();!(P4 = R8.n()).done; ) {
|
|
118804
|
-
var
|
|
118805
|
-
if (
|
|
118804
|
+
var A8 = P4.value;
|
|
118805
|
+
if (A8.trim() === "or") {
|
|
118806
118806
|
O4 = true;
|
|
118807
118807
|
break;
|
|
118808
118808
|
}
|
|
118809
|
-
w4[
|
|
118809
|
+
w4[A8] = true;
|
|
118810
118810
|
}
|
|
118811
118811
|
} catch (e489) {
|
|
118812
118812
|
R8.e(e489);
|
|
@@ -119144,15 +119144,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
119144
119144
|
}
|
|
119145
119145
|
var s187, d29 = import_react5.default, m82 = Symbol.for("react.transitional.element"), v4 = Symbol.for("react.portal"), p28 = Symbol.for("react.fragment"), f4 = Symbol.for("react.strict_mode"), h6 = Symbol.for("react.profiler"), g6 = Symbol.for("react.consumer"), y4 = Symbol.for("react.context"), E8 = Symbol.for("react.forward_ref"), k4 = Symbol.for("react.suspense"), x4 = Symbol.for("react.suspense_list"), w4 = Symbol.for("react.memo"), N6 = Symbol.for("react.lazy"), j4 = Symbol.for("react.activity"), S4 = Symbol.for("react.client.reference"), C4 = d29.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, _8 = Object.prototype.hasOwnProperty, P4 = Array.isArray, O4 = console.createTask ? console.createTask : function() {
|
|
119146
119146
|
return null;
|
|
119147
|
-
}, R8 = {},
|
|
119147
|
+
}, R8 = {}, A8 = (d29 = { react_stack_bottom_frame: function(e489) {
|
|
119148
119148
|
return e489();
|
|
119149
|
-
} }).react_stack_bottom_frame.bind(d29, o237)(),
|
|
119149
|
+
} }).react_stack_bottom_frame.bind(d29, o237)(), B4 = O4(a443(o237)), L4 = {};
|
|
119150
119150
|
mn.Fragment = p28, mn.jsx = function(e489, n470, t482) {
|
|
119151
119151
|
var r326 = 1e4 > C4.recentlyCreatedOwnerStacks++;
|
|
119152
|
-
return l52(e489, n470, t482, false, r326 ? Error("react-stack-top-frame") :
|
|
119152
|
+
return l52(e489, n470, t482, false, r326 ? Error("react-stack-top-frame") : A8, r326 ? O4(a443(e489)) : B4);
|
|
119153
119153
|
}, mn.jsxs = function(e489, n470, t482) {
|
|
119154
119154
|
var r326 = 1e4 > C4.recentlyCreatedOwnerStacks++;
|
|
119155
|
-
return l52(e489, n470, t482, true, r326 ? Error("react-stack-top-frame") :
|
|
119155
|
+
return l52(e489, n470, t482, true, r326 ? Error("react-stack-top-frame") : A8, r326 ? O4(a443(e489)) : B4);
|
|
119156
119156
|
};
|
|
119157
119157
|
}()), mn)), sn.exports);
|
|
119158
119158
|
function pn(e488, n470, t481) {
|
|
@@ -119265,13 +119265,13 @@ function On(e488, n470) {
|
|
|
119265
119265
|
function Rn(e488) {
|
|
119266
119266
|
return e488.content !== undefined;
|
|
119267
119267
|
}
|
|
119268
|
-
function
|
|
119268
|
+
function An(e488) {
|
|
119269
119269
|
var { content: n470, handlers: t481, annotationStack: r325 } = e488;
|
|
119270
119270
|
return n470.map(function(e489, n471) {
|
|
119271
|
-
return Rn(e489) ? vn.jsx(Ln, { annotationStack: r325, handlers: t481, group: e489 }, n471) : e489.style ? vn.jsx(
|
|
119271
|
+
return Rn(e489) ? vn.jsx(Ln, { annotationStack: r325, handlers: t481, group: e489 }, n471) : e489.style ? vn.jsx(Bn, { annotationStack: r325, handlers: t481, token: e489 }, n471) : e489.value;
|
|
119272
119272
|
});
|
|
119273
119273
|
}
|
|
119274
|
-
function
|
|
119274
|
+
function Bn(e488) {
|
|
119275
119275
|
var { handlers: n470, token: t481 } = e488, r325 = function(e489, n471) {
|
|
119276
119276
|
var t482 = [];
|
|
119277
119277
|
return e489.forEach(function(e490) {
|
|
@@ -119288,7 +119288,7 @@ function An(e488) {
|
|
|
119288
119288
|
return vn.jsx(Cn, { merge: { _stack: r325, style: t481.style, value: t481.value } });
|
|
119289
119289
|
}
|
|
119290
119290
|
function Ln(e488) {
|
|
119291
|
-
var n470, t481 = e488.group, r325 = e488.handlers, a443 = e488.annotationStack, o237 = t481.annotation, i314 = t481.content, l52 = o237.name, c105 =
|
|
119291
|
+
var n470, t481 = e488.group, r325 = e488.handlers, a443 = e488.annotationStack, o237 = t481.annotation, i314 = t481.content, l52 = o237.name, c105 = An({ content: i314, handlers: r325, annotationStack: [].concat(z2(a443), [o237]) }), u28 = (n470 = r325.find(function(e489) {
|
|
119292
119292
|
return e489.name === l52;
|
|
119293
119293
|
})) === null || n470 === undefined ? undefined : n470.Inline;
|
|
119294
119294
|
return u28 ? vn.jsx(u28, { annotation: o237, children: c105 }) : c105;
|
|
@@ -119340,7 +119340,7 @@ function qn(e488) {
|
|
|
119340
119340
|
t482.push({ Component: a444, annotation: e491 });
|
|
119341
119341
|
}));
|
|
119342
119342
|
}), t482;
|
|
119343
|
-
}(t481, o237), m82 =
|
|
119343
|
+
}(t481, o237), m82 = An({ content: s187, handlers: t481, annotationStack: o237 }), v4 = { lineNumber: i314, indentation: c105, totalLines: l52, _stack: d29 };
|
|
119344
119344
|
return vn.jsx(Sn, { merge: v4, children: m82 }, i314);
|
|
119345
119345
|
}
|
|
119346
119346
|
function In(e488) {
|
|
@@ -119736,8 +119736,8 @@ function Rt2(n470) {
|
|
|
119736
119736
|
}))));
|
|
119737
119737
|
}), e487.createElement("br", null));
|
|
119738
119738
|
}
|
|
119739
|
-
var
|
|
119740
|
-
function
|
|
119739
|
+
var At2 = { track: function() {} };
|
|
119740
|
+
function Bt2(e488) {
|
|
119741
119741
|
var t481;
|
|
119742
119742
|
t481 = e488.kind === "secondary" ? Ot2 : _t2;
|
|
119743
119743
|
var r325 = e488.references;
|
|
@@ -119748,7 +119748,7 @@ function At2(e488) {
|
|
|
119748
119748
|
console.error("Error parsing references", e489);
|
|
119749
119749
|
}
|
|
119750
119750
|
var a443 = e488.analytics ? UXAnalytics : import_react5.default.Fragment;
|
|
119751
|
-
return import_react5.default.createElement(a443, { analytics:
|
|
119751
|
+
return import_react5.default.createElement(a443, { analytics: At2 }, import_react5.default.createElement(Ct2, null, import_react5.default.createElement("div", { className: "a5edgc7" }, import_react5.default.createElement(t481, { references: r325, apiRefItemKind: e488.apiRefItemKind }))));
|
|
119752
119752
|
}
|
|
119753
119753
|
|
|
119754
119754
|
// References.tsx
|
|
@@ -119762,7 +119762,7 @@ function References({
|
|
|
119762
119762
|
syntaxHighlight: null,
|
|
119763
119763
|
markdownFormat: true
|
|
119764
119764
|
},
|
|
119765
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(
|
|
119765
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Bt2, {
|
|
119766
119766
|
kind: "primary",
|
|
119767
119767
|
references,
|
|
119768
119768
|
analytics: true
|
|
@@ -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.1.3_@langchain+core@1.1.
|
|
155156
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.1.3_@langchain+core@1.1.4_@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.1.3_@langchain+core@1.1.
|
|
160814
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.1.3_@langchain+core@1.1.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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);
|
|
@@ -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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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.4_@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,
|
|
@@ -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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
163752
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
163786
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
163808
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
163812
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
163821
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
163834
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/index.js
|
|
163647
163835
|
var __version__ = "0.3.82";
|
|
163648
163836
|
|
|
163649
|
-
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.
|
|
163837
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
163973
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
164082
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
164422
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
164451
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
164624
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
164748
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
164763
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
164785
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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.82_@opentelemetry+api@1.9.0_openai@6.
|
|
164853
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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,7 +165002,7 @@ function replaceGetterValues(replacer) {
|
|
|
164814
165002
|
};
|
|
164815
165003
|
}
|
|
164816
165004
|
|
|
164817
|
-
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.
|
|
165005
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/client.js
|
|
164818
165006
|
function mergeRuntimeEnvIntoRun(run, cachedEnvVars) {
|
|
164819
165007
|
const runtimeEnv = getRuntimeEnvironment2();
|
|
164820
165008
|
const envVars = cachedEnvVars ?? getLangSmithEnvVarsMetadata();
|
|
@@ -168131,7 +168319,7 @@ function isExampleCreate(input) {
|
|
|
168131
168319
|
return "dataset_id" in input || "dataset_name" in input;
|
|
168132
168320
|
}
|
|
168133
168321
|
|
|
168134
|
-
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.
|
|
168322
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18.3_zod@3.25.76_/node_modules/langsmith/dist/env.js
|
|
168135
168323
|
var isTracingEnabled = (tracingEnabled) => {
|
|
168136
168324
|
if (tracingEnabled !== undefined) {
|
|
168137
168325
|
return tracingEnabled;
|
|
@@ -168140,11 +168328,11 @@ var isTracingEnabled = (tracingEnabled) => {
|
|
|
168140
168328
|
return !!envVars.find((envVar) => getLangSmithEnvironmentVariable(envVar) === "true");
|
|
168141
168329
|
};
|
|
168142
168330
|
|
|
168143
|
-
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.
|
|
168331
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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
168332
|
var _LC_CONTEXT_VARIABLES_KEY = Symbol.for("lc:context_variables");
|
|
168145
168333
|
var _REPLICA_TRACE_ROOTS_KEY = Symbol.for("langsmith:replica_trace_roots");
|
|
168146
168334
|
|
|
168147
|
-
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.
|
|
168335
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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
168336
|
function getContextVar(runTree, key) {
|
|
168149
168337
|
if (_LC_CONTEXT_VARIABLES_KEY in runTree) {
|
|
168150
168338
|
const contextVars = runTree[_LC_CONTEXT_VARIABLES_KEY];
|
|
@@ -168158,7 +168346,7 @@ function setContextVar(runTree, key, value) {
|
|
|
168158
168346
|
runTree[_LC_CONTEXT_VARIABLES_KEY] = contextVars;
|
|
168159
168347
|
}
|
|
168160
168348
|
|
|
168161
|
-
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.
|
|
168349
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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
168350
|
var TIMESTAMP_LENGTH = 36;
|
|
168163
168351
|
var UUID_NAMESPACE_DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
168164
168352
|
function getReplicaKey(replica) {
|
|
@@ -169015,7 +169203,7 @@ function _checkEndpointEnvUnset(parsed) {
|
|
|
169015
169203
|
throw new ConflictingEndpointsError;
|
|
169016
169204
|
}
|
|
169017
169205
|
}
|
|
169018
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169206
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
169207
|
var base_exports2 = {};
|
|
169020
169208
|
__export2(base_exports2, {
|
|
169021
169209
|
BaseTracer: () => BaseTracer,
|
|
@@ -169452,7 +169640,7 @@ ${error2.stack}` : "");
|
|
|
169452
169640
|
}
|
|
169453
169641
|
};
|
|
169454
169642
|
|
|
169455
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169643
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
169644
|
var import_ansi_styles = __toESM(require_ansi_styles(), 1);
|
|
169457
169645
|
var console_exports = {};
|
|
169458
169646
|
__export2(console_exports, { ConsoleCallbackHandler: () => ConsoleCallbackHandler });
|
|
@@ -169563,7 +169751,7 @@ var ConsoleCallbackHandler = class extends BaseTracer {
|
|
|
169563
169751
|
console.log(`${wrap3(color2.blue, "[agent/action]")} [${crumbs}] Agent selected action: ${tryJsonStringify(agentRun.actions[agentRun.actions.length - 1], "[action]")}`);
|
|
169564
169752
|
}
|
|
169565
169753
|
};
|
|
169566
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169754
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
169755
|
var client;
|
|
169568
169756
|
var getDefaultLangChainClientSingleton = () => {
|
|
169569
169757
|
if (client === undefined) {
|
|
@@ -169573,7 +169761,7 @@ var getDefaultLangChainClientSingleton = () => {
|
|
|
169573
169761
|
return client;
|
|
169574
169762
|
};
|
|
169575
169763
|
|
|
169576
|
-
// ../../node_modules/.pnpm/langsmith@0.3.82_@opentelemetry+api@1.9.0_openai@6.
|
|
169764
|
+
// ../../node_modules/.pnpm/langsmith@0.3.82_@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
169765
|
class MockAsyncLocalStorage {
|
|
169578
169766
|
getStore() {
|
|
169579
169767
|
return;
|
|
@@ -169609,7 +169797,7 @@ var ROOT = Symbol.for("langsmith:traceable:root");
|
|
|
169609
169797
|
function isTraceableFunction(x4) {
|
|
169610
169798
|
return typeof x4 === "function" && "langsmith:traceable" in x4;
|
|
169611
169799
|
}
|
|
169612
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169800
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
169801
|
var tracer_langchain_exports = {};
|
|
169614
169802
|
__export2(tracer_langchain_exports, { LangChainTracer: () => LangChainTracer });
|
|
169615
169803
|
var LangChainTracer = class LangChainTracer2 extends BaseTracer {
|
|
@@ -169692,7 +169880,7 @@ var LangChainTracer = class LangChainTracer2 extends BaseTracer {
|
|
|
169692
169880
|
}
|
|
169693
169881
|
};
|
|
169694
169882
|
|
|
169695
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169883
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
169884
|
var import_p_queue2 = __toESM(require_dist3(), 1);
|
|
169697
169885
|
var queue;
|
|
169698
169886
|
function createQueue() {
|
|
@@ -169730,14 +169918,14 @@ async function awaitAllCallbacks() {
|
|
|
169730
169918
|
await Promise.allSettled([typeof queue !== "undefined" ? queue.onIdle() : Promise.resolve(), defaultClient.awaitPendingTraceBatches()]);
|
|
169731
169919
|
}
|
|
169732
169920
|
|
|
169733
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169921
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
169922
|
var promises_exports = {};
|
|
169735
169923
|
__export2(promises_exports, {
|
|
169736
169924
|
awaitAllCallbacks: () => awaitAllCallbacks,
|
|
169737
169925
|
consumeCallback: () => consumeCallback
|
|
169738
169926
|
});
|
|
169739
169927
|
|
|
169740
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169928
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
169929
|
var isTracingEnabled2 = (tracingEnabled) => {
|
|
169742
169930
|
if (tracingEnabled !== undefined)
|
|
169743
169931
|
return tracingEnabled;
|
|
@@ -169750,7 +169938,7 @@ var isTracingEnabled2 = (tracingEnabled) => {
|
|
|
169750
169938
|
return !!envVars.find((envVar) => getEnvironmentVariable(envVar) === "true");
|
|
169751
169939
|
};
|
|
169752
169940
|
|
|
169753
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169941
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
169942
|
function getContextVariable(name) {
|
|
169755
169943
|
const asyncLocalStorageInstance = getGlobalAsyncLocalStorageInstance();
|
|
169756
169944
|
if (asyncLocalStorageInstance === undefined)
|
|
@@ -169761,7 +169949,7 @@ function getContextVariable(name) {
|
|
|
169761
169949
|
var LC_CONFIGURE_HOOKS_KEY = Symbol("lc:configure_hooks");
|
|
169762
169950
|
var _getConfigureHooks = () => getContextVariable(LC_CONFIGURE_HOOKS_KEY) || [];
|
|
169763
169951
|
|
|
169764
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
169952
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
169953
|
var manager_exports = {};
|
|
169766
169954
|
__export2(manager_exports, {
|
|
169767
169955
|
BaseCallbackManager: () => BaseCallbackManager,
|
|
@@ -170298,7 +170486,7 @@ function ensureHandler(handler) {
|
|
|
170298
170486
|
return BaseCallbackHandler.fromMethods(handler);
|
|
170299
170487
|
}
|
|
170300
170488
|
|
|
170301
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170489
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
170490
|
var MockAsyncLocalStorage2 = class {
|
|
170303
170491
|
getStore() {
|
|
170304
170492
|
return;
|
|
@@ -170353,7 +170541,7 @@ var AsyncLocalStorageProvider2 = class {
|
|
|
170353
170541
|
};
|
|
170354
170542
|
var AsyncLocalStorageProviderSingleton2 = new AsyncLocalStorageProvider2;
|
|
170355
170543
|
|
|
170356
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170544
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
170545
|
var singletons_exports = {};
|
|
170358
170546
|
__export2(singletons_exports, {
|
|
170359
170547
|
AsyncLocalStorageProviderSingleton: () => AsyncLocalStorageProviderSingleton2,
|
|
@@ -170361,7 +170549,7 @@ __export2(singletons_exports, {
|
|
|
170361
170549
|
_CONTEXT_VARIABLES_KEY: () => _CONTEXT_VARIABLES_KEY
|
|
170362
170550
|
});
|
|
170363
170551
|
|
|
170364
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170552
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
170553
|
var DEFAULT_RECURSION_LIMIT = 25;
|
|
170366
170554
|
async function getCallbackManagerForConfig(config) {
|
|
170367
170555
|
return CallbackManager._configureSync(config?.callbacks, undefined, config?.tags, undefined, config?.metadata);
|
|
@@ -170520,7 +170708,7 @@ function pickRunnableConfigKeys(config) {
|
|
|
170520
170708
|
};
|
|
170521
170709
|
}
|
|
170522
170710
|
|
|
170523
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170711
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
170712
|
async function raceWithSignal(promise, signal) {
|
|
170525
170713
|
if (signal === undefined)
|
|
170526
170714
|
return promise;
|
|
@@ -170547,7 +170735,7 @@ function getAbortSignalError(signal) {
|
|
|
170547
170735
|
return /* @__PURE__ */ new Error("Aborted");
|
|
170548
170736
|
}
|
|
170549
170737
|
|
|
170550
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170738
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
170739
|
var stream_exports = {};
|
|
170552
170740
|
__export2(stream_exports, {
|
|
170553
170741
|
AsyncGeneratorWithSetup: () => AsyncGeneratorWithSetup,
|
|
@@ -170737,7 +170925,7 @@ async function pipeGeneratorWithSetup(to, generator, startSetup, signal, ...args
|
|
|
170737
170925
|
};
|
|
170738
170926
|
}
|
|
170739
170927
|
|
|
170740
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
170928
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
170929
|
/*!
|
|
170742
170930
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
170743
170931
|
* (c) 2017-2022 Joachim Wester
|
|
@@ -170844,7 +171032,7 @@ var PatchError = class extends Error {
|
|
|
170844
171032
|
}
|
|
170845
171033
|
};
|
|
170846
171034
|
|
|
170847
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171035
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
171036
|
var core_exports = {};
|
|
170849
171037
|
__export2(core_exports, {
|
|
170850
171038
|
JsonPatchError: () => JsonPatchError,
|
|
@@ -171163,7 +171351,7 @@ function _areEquals(a443, b8) {
|
|
|
171163
171351
|
return a443 !== a443 && b8 !== b8;
|
|
171164
171352
|
}
|
|
171165
171353
|
|
|
171166
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171354
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
171355
|
function _generate(mirror, obj, patches, path5, invertible) {
|
|
171168
171356
|
if (obj === mirror)
|
|
171169
171357
|
return;
|
|
@@ -171239,7 +171427,7 @@ function compare(tree1, tree2, invertible = false) {
|
|
|
171239
171427
|
return patches;
|
|
171240
171428
|
}
|
|
171241
171429
|
|
|
171242
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171430
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
171431
|
var fast_json_patch_default = {
|
|
171244
171432
|
...core_exports,
|
|
171245
171433
|
JsonPatchError: PatchError,
|
|
@@ -171248,7 +171436,7 @@ var fast_json_patch_default = {
|
|
|
171248
171436
|
unescapePathComponent
|
|
171249
171437
|
};
|
|
171250
171438
|
|
|
171251
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171439
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
171440
|
var log_stream_exports = {};
|
|
171253
171441
|
__export2(log_stream_exports, {
|
|
171254
171442
|
LogStreamCallbackHandler: () => LogStreamCallbackHandler,
|
|
@@ -171505,7 +171693,7 @@ var LogStreamCallbackHandler = class extends BaseTracer {
|
|
|
171505
171693
|
}
|
|
171506
171694
|
};
|
|
171507
171695
|
|
|
171508
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171696
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
171697
|
var outputs_exports = {};
|
|
171510
171698
|
__export2(outputs_exports, {
|
|
171511
171699
|
ChatGenerationChunk: () => ChatGenerationChunk,
|
|
@@ -171548,7 +171736,7 @@ var ChatGenerationChunk = class ChatGenerationChunk2 extends GenerationChunk {
|
|
|
171548
171736
|
}
|
|
171549
171737
|
};
|
|
171550
171738
|
|
|
171551
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
171739
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
171740
|
function assignName({ name, serialized }) {
|
|
171553
171741
|
if (name !== undefined)
|
|
171554
171742
|
return name;
|
|
@@ -171925,7 +172113,7 @@ var EventStreamCallbackHandler = class extends BaseTracer {
|
|
|
171925
172113
|
}
|
|
171926
172114
|
};
|
|
171927
172115
|
|
|
171928
|
-
// ../../node_modules/.pnpm
|
|
172116
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
172117
|
var objectToString2 = Object.prototype.toString;
|
|
171930
172118
|
var isError2 = (value) => objectToString2.call(value) === "[object Error]";
|
|
171931
172119
|
var errorMessages2 = new Set([
|
|
@@ -171941,48 +172129,37 @@ var errorMessages2 = new Set([
|
|
|
171941
172129
|
]);
|
|
171942
172130
|
function isNetworkError2(error2) {
|
|
171943
172131
|
const isValid2 = error2 && isError2(error2) && error2.name === "TypeError" && typeof error2.message === "string";
|
|
171944
|
-
if (!isValid2)
|
|
172132
|
+
if (!isValid2)
|
|
171945
172133
|
return false;
|
|
171946
|
-
}
|
|
171947
172134
|
const { message, stack } = error2;
|
|
171948
|
-
if (message === "Load failed")
|
|
172135
|
+
if (message === "Load failed")
|
|
171949
172136
|
return stack === undefined || "__sentry_captured__" in error2;
|
|
171950
|
-
|
|
171951
|
-
if (message.startsWith("error sending request for url")) {
|
|
172137
|
+
if (message.startsWith("error sending request for url"))
|
|
171952
172138
|
return true;
|
|
171953
|
-
}
|
|
171954
172139
|
return errorMessages2.has(message);
|
|
171955
172140
|
}
|
|
171956
172141
|
|
|
171957
|
-
// ../../node_modules/.pnpm
|
|
172142
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
172143
|
function validateRetries2(retries) {
|
|
171959
172144
|
if (typeof retries === "number") {
|
|
171960
|
-
if (retries < 0)
|
|
172145
|
+
if (retries < 0)
|
|
171961
172146
|
throw new TypeError("Expected `retries` to be a non-negative number.");
|
|
171962
|
-
|
|
171963
|
-
if (Number.isNaN(retries)) {
|
|
172147
|
+
if (Number.isNaN(retries))
|
|
171964
172148
|
throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.");
|
|
171965
|
-
|
|
171966
|
-
} else if (retries !== undefined) {
|
|
172149
|
+
} else if (retries !== undefined)
|
|
171967
172150
|
throw new TypeError("Expected `retries` to be a number or Infinity.");
|
|
171968
|
-
}
|
|
171969
172151
|
}
|
|
171970
172152
|
function validateNumberOption2(name, value, { min = 0, allowInfinity = false } = {}) {
|
|
171971
|
-
if (value === undefined)
|
|
172153
|
+
if (value === undefined)
|
|
171972
172154
|
return;
|
|
171973
|
-
|
|
171974
|
-
if (typeof value !== "number" || Number.isNaN(value)) {
|
|
172155
|
+
if (typeof value !== "number" || Number.isNaN(value))
|
|
171975
172156
|
throw new TypeError(`Expected \`${name}\` to be a number${allowInfinity ? " or Infinity" : ""}.`);
|
|
171976
|
-
|
|
171977
|
-
if (!allowInfinity && !Number.isFinite(value)) {
|
|
172157
|
+
if (!allowInfinity && !Number.isFinite(value))
|
|
171978
172158
|
throw new TypeError(`Expected \`${name}\` to be a finite number.`);
|
|
171979
|
-
|
|
171980
|
-
if (value < min) {
|
|
172159
|
+
if (value < min)
|
|
171981
172160
|
throw new TypeError(`Expected \`${name}\` to be ≥ ${min}.`);
|
|
171982
|
-
}
|
|
171983
172161
|
}
|
|
171984
|
-
|
|
171985
|
-
class AbortError2 extends Error {
|
|
172162
|
+
var AbortError2 = class extends Error {
|
|
171986
172163
|
constructor(message) {
|
|
171987
172164
|
super();
|
|
171988
172165
|
if (message instanceof Error) {
|
|
@@ -171995,7 +172172,7 @@ class AbortError2 extends Error {
|
|
|
171995
172172
|
this.name = "AbortError";
|
|
171996
172173
|
this.message = message;
|
|
171997
172174
|
}
|
|
171998
|
-
}
|
|
172175
|
+
};
|
|
171999
172176
|
function calculateDelay2(retriesConsumed, options) {
|
|
172000
172177
|
const attempt = Math.max(1, retriesConsumed + 1);
|
|
172001
172178
|
const random = options.randomize ? Math.random() + 1 : 1;
|
|
@@ -172004,16 +172181,14 @@ function calculateDelay2(retriesConsumed, options) {
|
|
|
172004
172181
|
return timeout;
|
|
172005
172182
|
}
|
|
172006
172183
|
function calculateRemainingTime2(start, max) {
|
|
172007
|
-
if (!Number.isFinite(max))
|
|
172184
|
+
if (!Number.isFinite(max))
|
|
172008
172185
|
return max;
|
|
172009
|
-
}
|
|
172010
172186
|
return max - (performance.now() - start);
|
|
172011
172187
|
}
|
|
172012
172188
|
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)
|
|
172189
|
+
const normalizedError = error2 instanceof Error ? error2 : /* @__PURE__ */ new TypeError(`Non-error was thrown: "${error2}". You should only throw errors.`);
|
|
172190
|
+
if (normalizedError instanceof AbortError2)
|
|
172015
172191
|
throw normalizedError.originalError;
|
|
172016
|
-
}
|
|
172017
172192
|
const retriesLeft = Number.isFinite(options.retries) ? Math.max(0, options.retries - retriesConsumed) : options.retries;
|
|
172018
172193
|
const maxRetryTime = options.maxRetryTime ?? Number.POSITIVE_INFINITY;
|
|
172019
172194
|
const context = Object.freeze({
|
|
@@ -172023,31 +172198,27 @@ async function onAttemptFailure2({ error: error2, attemptNumber, retriesConsumed
|
|
|
172023
172198
|
retriesConsumed
|
|
172024
172199
|
});
|
|
172025
172200
|
await options.onFailedAttempt(context);
|
|
172026
|
-
if (calculateRemainingTime2(startTime, maxRetryTime) <= 0)
|
|
172201
|
+
if (calculateRemainingTime2(startTime, maxRetryTime) <= 0)
|
|
172027
172202
|
throw normalizedError;
|
|
172028
|
-
}
|
|
172029
172203
|
const consumeRetry = await options.shouldConsumeRetry(context);
|
|
172030
172204
|
const remainingTime = calculateRemainingTime2(startTime, maxRetryTime);
|
|
172031
|
-
if (remainingTime <= 0 || retriesLeft <= 0)
|
|
172205
|
+
if (remainingTime <= 0 || retriesLeft <= 0)
|
|
172032
172206
|
throw normalizedError;
|
|
172033
|
-
}
|
|
172034
172207
|
if (normalizedError instanceof TypeError && !isNetworkError2(normalizedError)) {
|
|
172035
|
-
if (consumeRetry)
|
|
172208
|
+
if (consumeRetry)
|
|
172036
172209
|
throw normalizedError;
|
|
172037
|
-
}
|
|
172038
172210
|
options.signal?.throwIfAborted();
|
|
172039
172211
|
return false;
|
|
172040
172212
|
}
|
|
172041
|
-
if (!await options.shouldRetry(context))
|
|
172213
|
+
if (!await options.shouldRetry(context))
|
|
172042
172214
|
throw normalizedError;
|
|
172043
|
-
}
|
|
172044
172215
|
if (!consumeRetry) {
|
|
172045
172216
|
options.signal?.throwIfAborted();
|
|
172046
172217
|
return false;
|
|
172047
172218
|
}
|
|
172048
172219
|
const delayTime = calculateDelay2(retriesConsumed, options);
|
|
172049
172220
|
const finalDelay = Math.min(delayTime, remainingTime);
|
|
172050
|
-
if (finalDelay > 0)
|
|
172221
|
+
if (finalDelay > 0)
|
|
172051
172222
|
await new Promise((resolve, reject) => {
|
|
172052
172223
|
const onAbort = () => {
|
|
172053
172224
|
clearTimeout(timeoutToken);
|
|
@@ -172058,21 +172229,18 @@ async function onAttemptFailure2({ error: error2, attemptNumber, retriesConsumed
|
|
|
172058
172229
|
options.signal?.removeEventListener("abort", onAbort);
|
|
172059
172230
|
resolve();
|
|
172060
172231
|
}, finalDelay);
|
|
172061
|
-
if (options.unref)
|
|
172232
|
+
if (options.unref)
|
|
172062
172233
|
timeoutToken.unref?.();
|
|
172063
|
-
}
|
|
172064
172234
|
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
172065
172235
|
});
|
|
172066
|
-
}
|
|
172067
172236
|
options.signal?.throwIfAborted();
|
|
172068
172237
|
return true;
|
|
172069
172238
|
}
|
|
172070
172239
|
async function pRetry2(input, options = {}) {
|
|
172071
172240
|
options = { ...options };
|
|
172072
172241
|
validateRetries2(options.retries);
|
|
172073
|
-
if (Object.hasOwn(options, "forever"))
|
|
172242
|
+
if (Object.hasOwn(options, "forever"))
|
|
172074
172243
|
throw new Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");
|
|
172075
|
-
}
|
|
172076
172244
|
options.retries ??= 10;
|
|
172077
172245
|
options.factor ??= 2;
|
|
172078
172246
|
options.minTimeout ??= 1000;
|
|
@@ -172082,13 +172250,24 @@ async function pRetry2(input, options = {}) {
|
|
|
172082
172250
|
options.onFailedAttempt ??= () => {};
|
|
172083
172251
|
options.shouldRetry ??= () => true;
|
|
172084
172252
|
options.shouldConsumeRetry ??= () => true;
|
|
172085
|
-
validateNumberOption2("factor", options.factor, {
|
|
172086
|
-
|
|
172087
|
-
|
|
172088
|
-
|
|
172089
|
-
|
|
172253
|
+
validateNumberOption2("factor", options.factor, {
|
|
172254
|
+
min: 0,
|
|
172255
|
+
allowInfinity: false
|
|
172256
|
+
});
|
|
172257
|
+
validateNumberOption2("minTimeout", options.minTimeout, {
|
|
172258
|
+
min: 0,
|
|
172259
|
+
allowInfinity: false
|
|
172260
|
+
});
|
|
172261
|
+
validateNumberOption2("maxTimeout", options.maxTimeout, {
|
|
172262
|
+
min: 0,
|
|
172263
|
+
allowInfinity: true
|
|
172264
|
+
});
|
|
172265
|
+
validateNumberOption2("maxRetryTime", options.maxRetryTime, {
|
|
172266
|
+
min: 0,
|
|
172267
|
+
allowInfinity: true
|
|
172268
|
+
});
|
|
172269
|
+
if (!(options.factor > 0))
|
|
172090
172270
|
options.factor = 1;
|
|
172091
|
-
}
|
|
172092
172271
|
options.signal?.throwIfAborted();
|
|
172093
172272
|
let attemptNumber = 0;
|
|
172094
172273
|
let retriesConsumed = 0;
|
|
@@ -172107,15 +172286,14 @@ async function pRetry2(input, options = {}) {
|
|
|
172107
172286
|
retriesConsumed,
|
|
172108
172287
|
startTime,
|
|
172109
172288
|
options
|
|
172110
|
-
}))
|
|
172289
|
+
}))
|
|
172111
172290
|
retriesConsumed++;
|
|
172112
|
-
}
|
|
172113
172291
|
}
|
|
172114
172292
|
}
|
|
172115
172293
|
throw new Error("Retry attempts exhausted without throwing an error.");
|
|
172116
172294
|
}
|
|
172117
172295
|
|
|
172118
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
172296
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
172297
|
var import_p_queue3 = __toESM(require_dist3(), 1);
|
|
172120
172298
|
var async_caller_exports = {};
|
|
172121
172299
|
__export2(async_caller_exports, { AsyncCaller: () => AsyncCaller2 });
|
|
@@ -172156,7 +172334,7 @@ var AsyncCaller2 = class {
|
|
|
172156
172334
|
const PQueue = "default" in import_p_queue3.default ? import_p_queue3.default.default : import_p_queue3.default;
|
|
172157
172335
|
this.queue = new PQueue({ concurrency: this.maxConcurrency });
|
|
172158
172336
|
}
|
|
172159
|
-
call(callable, ...args) {
|
|
172337
|
+
async call(callable, ...args) {
|
|
172160
172338
|
return this.queue.add(() => pRetry2(() => callable(...args).catch((error2) => {
|
|
172161
172339
|
if (error2 instanceof Error)
|
|
172162
172340
|
throw error2;
|
|
@@ -172188,7 +172366,7 @@ var AsyncCaller2 = class {
|
|
|
172188
172366
|
}
|
|
172189
172367
|
};
|
|
172190
172368
|
|
|
172191
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
172369
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
172370
|
var RootListenersTracer = class extends BaseTracer {
|
|
172193
172371
|
name = "RootListenersTracer";
|
|
172194
172372
|
rootId;
|
|
@@ -172224,7 +172402,7 @@ var RootListenersTracer = class extends BaseTracer {
|
|
|
172224
172402
|
}
|
|
172225
172403
|
};
|
|
172226
172404
|
|
|
172227
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
172405
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
172406
|
function isRunnableInterface(thing) {
|
|
172229
172407
|
return thing ? thing.lc_runnable : false;
|
|
172230
172408
|
}
|
|
@@ -172261,6 +172439,10 @@ var _RootEventFilter = class {
|
|
|
172261
172439
|
return include;
|
|
172262
172440
|
}
|
|
172263
172441
|
};
|
|
172442
|
+
var toBase64Url = (str3) => {
|
|
172443
|
+
const encoded = btoa(str3);
|
|
172444
|
+
return encoded.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
172445
|
+
};
|
|
172264
172446
|
|
|
172265
172447
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/index.js
|
|
172266
172448
|
var exports_core2 = {};
|
|
@@ -182036,7 +182218,7 @@ function isTransforming(_schema, _ctx) {
|
|
|
182036
182218
|
}
|
|
182037
182219
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/json-schema.js
|
|
182038
182220
|
var exports_json_schema = {};
|
|
182039
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182221
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182222
|
function isZodSchemaV4(schema2) {
|
|
182041
182223
|
if (typeof schema2 !== "object" || schema2 === null)
|
|
182042
182224
|
return false;
|
|
@@ -182206,6 +182388,20 @@ function isZodArrayV4(obj) {
|
|
|
182206
182388
|
return true;
|
|
182207
182389
|
return false;
|
|
182208
182390
|
}
|
|
182391
|
+
function isZodOptionalV4(obj) {
|
|
182392
|
+
if (!isZodSchemaV4(obj))
|
|
182393
|
+
return false;
|
|
182394
|
+
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")
|
|
182395
|
+
return true;
|
|
182396
|
+
return false;
|
|
182397
|
+
}
|
|
182398
|
+
function isZodNullableV4(obj) {
|
|
182399
|
+
if (!isZodSchemaV4(obj))
|
|
182400
|
+
return false;
|
|
182401
|
+
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")
|
|
182402
|
+
return true;
|
|
182403
|
+
return false;
|
|
182404
|
+
}
|
|
182209
182405
|
function isInteropZodObject(obj) {
|
|
182210
182406
|
if (isZodObjectV3(obj))
|
|
182211
182407
|
return true;
|
|
@@ -182357,6 +182553,18 @@ function interopZodTransformInputSchemaImpl(schema2, recursive, cache) {
|
|
|
182357
182553
|
...outputSchema._zod.def,
|
|
182358
182554
|
element: elementSchema
|
|
182359
182555
|
});
|
|
182556
|
+
} else if (isZodOptionalV4(outputSchema)) {
|
|
182557
|
+
const innerSchema = interopZodTransformInputSchemaImpl(outputSchema._zod.def.innerType, recursive, cache);
|
|
182558
|
+
outputSchema = clone(outputSchema, {
|
|
182559
|
+
...outputSchema._zod.def,
|
|
182560
|
+
innerType: innerSchema
|
|
182561
|
+
});
|
|
182562
|
+
} else if (isZodNullableV4(outputSchema)) {
|
|
182563
|
+
const innerSchema = interopZodTransformInputSchemaImpl(outputSchema._zod.def.innerType, recursive, cache);
|
|
182564
|
+
outputSchema = clone(outputSchema, {
|
|
182565
|
+
...outputSchema._zod.def,
|
|
182566
|
+
innerType: innerSchema
|
|
182567
|
+
});
|
|
182360
182568
|
}
|
|
182361
182569
|
}
|
|
182362
182570
|
const meta = globalRegistry.get(schema2);
|
|
@@ -182406,7 +182614,7 @@ function isInteropZodError(e488) {
|
|
|
182406
182614
|
return e488 instanceof Error && (e488.constructor.name === "ZodError" || e488.constructor.name === "$ZodError");
|
|
182407
182615
|
}
|
|
182408
182616
|
|
|
182409
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182617
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182618
|
function _escapeNodeLabel(nodeLabel) {
|
|
182411
182619
|
return nodeLabel.replace(/[^a-zA-Z-_0-9]/g, "_");
|
|
182412
182620
|
}
|
|
@@ -182499,7 +182707,7 @@ graph TD;
|
|
|
182499
182707
|
async function drawMermaidImage(mermaidSyntax, config2) {
|
|
182500
182708
|
let backgroundColor = config2?.backgroundColor ?? "white";
|
|
182501
182709
|
const imageType = config2?.imageType ?? "png";
|
|
182502
|
-
const mermaidSyntaxEncoded =
|
|
182710
|
+
const mermaidSyntaxEncoded = toBase64Url(mermaidSyntax);
|
|
182503
182711
|
if (backgroundColor !== undefined) {
|
|
182504
182712
|
const hexColorPattern = /^#(?:[0-9a-fA-F]{3}){1,2}$/;
|
|
182505
182713
|
if (!hexColorPattern.test(backgroundColor))
|
|
@@ -182518,7 +182726,7 @@ async function drawMermaidImage(mermaidSyntax, config2) {
|
|
|
182518
182726
|
return content3;
|
|
182519
182727
|
}
|
|
182520
182728
|
|
|
182521
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182729
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182730
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
182523
182731
|
var defaultOptions3 = {
|
|
182524
182732
|
name: undefined,
|
|
@@ -182552,7 +182760,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
182552
182760
|
...options
|
|
182553
182761
|
};
|
|
182554
182762
|
|
|
182555
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182763
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182764
|
var getRefs = (options) => {
|
|
182557
182765
|
const _options = getDefaultOptions(options);
|
|
182558
182766
|
const currentPath = _options.name !== undefined ? [
|
|
@@ -182577,7 +182785,7 @@ var getRefs = (options) => {
|
|
|
182577
182785
|
};
|
|
182578
182786
|
};
|
|
182579
182787
|
|
|
182580
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182788
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182789
|
var getRelativePath = (pathA, pathB) => {
|
|
182582
182790
|
let i315 = 0;
|
|
182583
182791
|
for (;i315 < pathA.length && i315 < pathB.length; i315++)
|
|
@@ -182586,7 +182794,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
182586
182794
|
return [(pathA.length - i315).toString(), ...pathB.slice(i315)].join("/");
|
|
182587
182795
|
};
|
|
182588
182796
|
|
|
182589
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182797
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182798
|
function parseAnyDef(refs) {
|
|
182591
182799
|
if (refs.target !== "openAi")
|
|
182592
182800
|
return {};
|
|
@@ -182599,7 +182807,7 @@ function parseAnyDef(refs) {
|
|
|
182599
182807
|
return { $ref: refs.$refStrategy === "relative" ? getRelativePath(anyDefinitionPath, refs.currentPath) : anyDefinitionPath.join("/") };
|
|
182600
182808
|
}
|
|
182601
182809
|
|
|
182602
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182810
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182811
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
182604
182812
|
if (!refs?.errorMessages)
|
|
182605
182813
|
return;
|
|
@@ -182613,7 +182821,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
182613
182821
|
res[key] = value;
|
|
182614
182822
|
addErrorMessage(res, key, errorMessage, refs);
|
|
182615
182823
|
}
|
|
182616
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182824
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182825
|
function parseArrayDef(def, refs) {
|
|
182618
182826
|
const res = { type: "array" };
|
|
182619
182827
|
if (def.type?._def && def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny)
|
|
@@ -182632,7 +182840,7 @@ function parseArrayDef(def, refs) {
|
|
|
182632
182840
|
return res;
|
|
182633
182841
|
}
|
|
182634
182842
|
|
|
182635
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182843
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182844
|
function parseBigintDef(def, refs) {
|
|
182637
182845
|
const res = {
|
|
182638
182846
|
type: "integer",
|
|
@@ -182673,22 +182881,22 @@ function parseBigintDef(def, refs) {
|
|
|
182673
182881
|
return res;
|
|
182674
182882
|
}
|
|
182675
182883
|
|
|
182676
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182884
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182885
|
function parseBooleanDef() {
|
|
182678
182886
|
return { type: "boolean" };
|
|
182679
182887
|
}
|
|
182680
182888
|
|
|
182681
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182889
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182890
|
function parseBrandedDef(_def, refs) {
|
|
182683
182891
|
return parseDef(_def.type._def, refs);
|
|
182684
182892
|
}
|
|
182685
182893
|
|
|
182686
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182894
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182895
|
var parseCatchDef = (def, refs) => {
|
|
182688
182896
|
return parseDef(def.innerType._def, refs);
|
|
182689
182897
|
};
|
|
182690
182898
|
|
|
182691
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182899
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182900
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
182693
182901
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
182694
182902
|
if (Array.isArray(strategy))
|
|
@@ -182728,7 +182936,7 @@ var integerDateParser = (def, refs) => {
|
|
|
182728
182936
|
return res;
|
|
182729
182937
|
};
|
|
182730
182938
|
|
|
182731
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182939
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182940
|
function parseDefaultDef(_def, refs) {
|
|
182733
182941
|
return {
|
|
182734
182942
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -182736,12 +182944,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
182736
182944
|
};
|
|
182737
182945
|
}
|
|
182738
182946
|
|
|
182739
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182947
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182948
|
function parseEffectsDef(_def, refs) {
|
|
182741
182949
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
182742
182950
|
}
|
|
182743
182951
|
|
|
182744
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182952
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182953
|
function parseEnumDef(def) {
|
|
182746
182954
|
return {
|
|
182747
182955
|
type: "string",
|
|
@@ -182749,7 +182957,7 @@ function parseEnumDef(def) {
|
|
|
182749
182957
|
};
|
|
182750
182958
|
}
|
|
182751
182959
|
|
|
182752
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
182960
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
182961
|
var isJsonSchema7AllOfType = (type2) => {
|
|
182754
182962
|
if ("type" in type2 && type2.type === "string")
|
|
182755
182963
|
return false;
|
|
@@ -182794,7 +183002,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
182794
183002
|
} : undefined;
|
|
182795
183003
|
}
|
|
182796
183004
|
|
|
182797
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183005
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183006
|
function parseLiteralDef(def, refs) {
|
|
182799
183007
|
const parsedType4 = typeof def.value;
|
|
182800
183008
|
if (parsedType4 !== "bigint" && parsedType4 !== "number" && parsedType4 !== "boolean" && parsedType4 !== "string")
|
|
@@ -182810,7 +183018,7 @@ function parseLiteralDef(def, refs) {
|
|
|
182810
183018
|
};
|
|
182811
183019
|
}
|
|
182812
183020
|
|
|
182813
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183021
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183022
|
var emojiRegex2 = undefined;
|
|
182815
183023
|
var zodPatterns = {
|
|
182816
183024
|
cuid: /^[cC][^\s-]{8,}$/,
|
|
@@ -183076,7 +183284,7 @@ function stringifyRegExpWithFlags(regex3, refs) {
|
|
|
183076
183284
|
return pattern;
|
|
183077
183285
|
}
|
|
183078
183286
|
|
|
183079
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183287
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183288
|
function parseRecordDef(def, refs) {
|
|
183081
183289
|
if (refs.target === "openAi")
|
|
183082
183290
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -183127,7 +183335,7 @@ function parseRecordDef(def, refs) {
|
|
|
183127
183335
|
return schema2;
|
|
183128
183336
|
}
|
|
183129
183337
|
|
|
183130
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183338
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183339
|
function parseMapDef(def, refs) {
|
|
183132
183340
|
if (refs.mapStrategy === "record")
|
|
183133
183341
|
return parseRecordDef(def, refs);
|
|
@@ -183161,7 +183369,7 @@ function parseMapDef(def, refs) {
|
|
|
183161
183369
|
};
|
|
183162
183370
|
}
|
|
183163
183371
|
|
|
183164
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183372
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183373
|
function parseNativeEnumDef(def) {
|
|
183166
183374
|
const object = def.values;
|
|
183167
183375
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -183175,7 +183383,7 @@ function parseNativeEnumDef(def) {
|
|
|
183175
183383
|
};
|
|
183176
183384
|
}
|
|
183177
183385
|
|
|
183178
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183386
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183387
|
function parseNeverDef(refs) {
|
|
183180
183388
|
return refs.target === "openAi" ? undefined : { not: parseAnyDef({
|
|
183181
183389
|
...refs,
|
|
@@ -183183,7 +183391,7 @@ function parseNeverDef(refs) {
|
|
|
183183
183391
|
}) };
|
|
183184
183392
|
}
|
|
183185
183393
|
|
|
183186
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183394
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183395
|
function parseNullDef(refs) {
|
|
183188
183396
|
return refs.target === "openApi3" ? {
|
|
183189
183397
|
enum: ["null"],
|
|
@@ -183191,7 +183399,7 @@ function parseNullDef(refs) {
|
|
|
183191
183399
|
} : { type: "null" };
|
|
183192
183400
|
}
|
|
183193
183401
|
|
|
183194
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183402
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183403
|
var primitiveMappings = {
|
|
183196
183404
|
ZodString: "string",
|
|
183197
183405
|
ZodNumber: "number",
|
|
@@ -183258,7 +183466,7 @@ var asAnyOf = (def, refs) => {
|
|
|
183258
183466
|
return anyOf.length ? { anyOf } : undefined;
|
|
183259
183467
|
};
|
|
183260
183468
|
|
|
183261
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183469
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183470
|
function parseNullableDef(def, refs) {
|
|
183263
183471
|
if ([
|
|
183264
183472
|
"ZodString",
|
|
@@ -183300,7 +183508,7 @@ function parseNullableDef(def, refs) {
|
|
|
183300
183508
|
return base && { anyOf: [base, { type: "null" }] };
|
|
183301
183509
|
}
|
|
183302
183510
|
|
|
183303
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183511
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183512
|
function parseNumberDef(def, refs) {
|
|
183305
183513
|
const res = { type: "number" };
|
|
183306
183514
|
if (!def.checks)
|
|
@@ -183342,7 +183550,7 @@ function parseNumberDef(def, refs) {
|
|
|
183342
183550
|
return res;
|
|
183343
183551
|
}
|
|
183344
183552
|
|
|
183345
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183553
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183554
|
function parseObjectDef(def, refs) {
|
|
183347
183555
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
183348
183556
|
const result = {
|
|
@@ -183412,7 +183620,7 @@ function safeIsOptional(schema2) {
|
|
|
183412
183620
|
}
|
|
183413
183621
|
}
|
|
183414
183622
|
|
|
183415
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183623
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183624
|
var parseOptionalDef = (def, refs) => {
|
|
183417
183625
|
if (refs.currentPath.toString() === refs.propertyPath?.toString())
|
|
183418
183626
|
return parseDef(def.innerType._def, refs);
|
|
@@ -183427,7 +183635,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
183427
183635
|
return innerSchema ? { anyOf: [{ not: parseAnyDef(refs) }, innerSchema] } : parseAnyDef(refs);
|
|
183428
183636
|
};
|
|
183429
183637
|
|
|
183430
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183638
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183639
|
var parsePipelineDef = (def, refs) => {
|
|
183432
183640
|
if (refs.pipeStrategy === "input")
|
|
183433
183641
|
return parseDef(def.in._def, refs);
|
|
@@ -183452,12 +183660,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
183452
183660
|
return { allOf: [a443, b8].filter((x4) => x4 !== undefined) };
|
|
183453
183661
|
};
|
|
183454
183662
|
|
|
183455
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183663
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183664
|
function parsePromiseDef(def, refs) {
|
|
183457
183665
|
return parseDef(def.type._def, refs);
|
|
183458
183666
|
}
|
|
183459
183667
|
|
|
183460
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183668
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183669
|
function parseSetDef(def, refs) {
|
|
183462
183670
|
const items = parseDef(def.valueType._def, {
|
|
183463
183671
|
...refs,
|
|
@@ -183475,7 +183683,7 @@ function parseSetDef(def, refs) {
|
|
|
183475
183683
|
return schema2;
|
|
183476
183684
|
}
|
|
183477
183685
|
|
|
183478
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183686
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183687
|
function parseTupleDef(def, refs) {
|
|
183480
183688
|
if (def.rest)
|
|
183481
183689
|
return {
|
|
@@ -183510,22 +183718,22 @@ function parseTupleDef(def, refs) {
|
|
|
183510
183718
|
};
|
|
183511
183719
|
}
|
|
183512
183720
|
|
|
183513
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183721
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183722
|
function parseUndefinedDef(refs) {
|
|
183515
183723
|
return { not: parseAnyDef(refs) };
|
|
183516
183724
|
}
|
|
183517
183725
|
|
|
183518
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183726
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183727
|
function parseUnknownDef(refs) {
|
|
183520
183728
|
return parseAnyDef(refs);
|
|
183521
183729
|
}
|
|
183522
183730
|
|
|
183523
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183731
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183732
|
var parseReadonlyDef = (def, refs) => {
|
|
183525
183733
|
return parseDef(def.innerType._def, refs);
|
|
183526
183734
|
};
|
|
183527
183735
|
|
|
183528
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183736
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183737
|
var selectParser2 = (def, typeName, refs) => {
|
|
183530
183738
|
switch (typeName) {
|
|
183531
183739
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -183603,7 +183811,7 @@ var selectParser2 = (def, typeName, refs) => {
|
|
|
183603
183811
|
}
|
|
183604
183812
|
};
|
|
183605
183813
|
|
|
183606
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183814
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183815
|
function parseDef(def, refs, forceResolution = false) {
|
|
183608
183816
|
const seenItem = refs.seen.get(def);
|
|
183609
183817
|
if (refs.override) {
|
|
@@ -183658,7 +183866,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
183658
183866
|
return jsonSchema;
|
|
183659
183867
|
};
|
|
183660
183868
|
|
|
183661
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
183869
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
183870
|
var zodToJsonSchema = (schema2, options) => {
|
|
183663
183871
|
const refs = getRefs(options);
|
|
183664
183872
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name$1, schema$1]) => ({
|
|
@@ -184791,7 +184999,7 @@ class Validator {
|
|
|
184791
184999
|
}
|
|
184792
185000
|
}
|
|
184793
185001
|
|
|
184794
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185002
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
185003
|
var json_schema_exports = {};
|
|
184796
185004
|
__export2(json_schema_exports, {
|
|
184797
185005
|
Validator: () => Validator,
|
|
@@ -184844,7 +185052,7 @@ function validatesOnlyStrings(schema2) {
|
|
|
184844
185052
|
return false;
|
|
184845
185053
|
}
|
|
184846
185054
|
|
|
184847
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185055
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
185056
|
var graph_exports = {};
|
|
184849
185057
|
__export2(graph_exports, { Graph: () => Graph });
|
|
184850
185058
|
function nodeDataStr(id, data) {
|
|
@@ -185053,7 +185261,7 @@ function _lastNode(graph, exclude = []) {
|
|
|
185053
185261
|
return found.length === 1 ? found[0] : undefined;
|
|
185054
185262
|
}
|
|
185055
185263
|
|
|
185056
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185264
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
185265
|
function convertToHttpEventStream(stream2) {
|
|
185058
185266
|
const encoder2 = new TextEncoder;
|
|
185059
185267
|
const finalStream = new ReadableStream({ async start(controller) {
|
|
@@ -185070,7 +185278,7 @@ data: ${JSON.stringify(chunk)}
|
|
|
185070
185278
|
return IterableReadableStream.fromReadableStream(finalStream);
|
|
185071
185279
|
}
|
|
185072
185280
|
|
|
185073
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185281
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
185282
|
function isIterableIterator(thing) {
|
|
185075
185283
|
return typeof thing === "object" && thing !== null && typeof thing[Symbol.iterator] === "function" && typeof thing.next === "function";
|
|
185076
185284
|
}
|
|
@@ -185098,7 +185306,7 @@ async function* consumeAsyncIterableInContext(context, iter) {
|
|
|
185098
185306
|
}
|
|
185099
185307
|
}
|
|
185100
185308
|
|
|
185101
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
185309
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
185310
|
function _coerceToDict2(value, defaultKey) {
|
|
185103
185311
|
return value && !Array.isArray(value) && !(value instanceof Date) && typeof value === "object" ? value : { [defaultKey]: value };
|
|
185104
185312
|
}
|
|
@@ -186474,7 +186682,7 @@ function convertRunnableToTool(runnable, fields) {
|
|
|
186474
186682
|
});
|
|
186475
186683
|
}
|
|
186476
186684
|
|
|
186477
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
186685
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
186686
|
var _isMessageType = (msg, types6) => {
|
|
186479
186687
|
const typesAsStrings = [...new Set(types6?.map((t481) => {
|
|
186480
186688
|
if (typeof t481 === "string")
|
|
@@ -186827,7 +187035,7 @@ function defaultTextSplitter(text5) {
|
|
|
186827
187035
|
`), splits[splits.length - 1]]);
|
|
186828
187036
|
}
|
|
186829
187037
|
|
|
186830
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187038
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
187039
|
var KNOWN_BLOCK_TYPES = [
|
|
186832
187040
|
"tool_call",
|
|
186833
187041
|
"tool_call_chunk",
|
|
@@ -186837,7 +187045,7 @@ var KNOWN_BLOCK_TYPES = [
|
|
|
186837
187045
|
"server_tool_call_result"
|
|
186838
187046
|
];
|
|
186839
187047
|
|
|
186840
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187048
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
187049
|
var KNOWN_BLOCK_TYPES2 = [
|
|
186842
187050
|
"image",
|
|
186843
187051
|
"video",
|
|
@@ -186846,7 +187054,7 @@ var KNOWN_BLOCK_TYPES2 = [
|
|
|
186846
187054
|
"file"
|
|
186847
187055
|
];
|
|
186848
187056
|
|
|
186849
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187057
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
187058
|
var KNOWN_BLOCK_TYPES$2 = [
|
|
186851
187059
|
"text",
|
|
186852
187060
|
"reasoning",
|
|
@@ -186854,7 +187062,7 @@ var KNOWN_BLOCK_TYPES$2 = [
|
|
|
186854
187062
|
...KNOWN_BLOCK_TYPES2
|
|
186855
187063
|
];
|
|
186856
187064
|
|
|
186857
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187065
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
187066
|
var messages_exports = {};
|
|
186859
187067
|
__export2(messages_exports, {
|
|
186860
187068
|
AIMessage: () => AIMessage,
|
|
@@ -186879,6 +187087,7 @@ __export2(messages_exports, {
|
|
|
186879
187087
|
_mergeObj: () => _mergeObj,
|
|
186880
187088
|
_mergeStatus: () => _mergeStatus,
|
|
186881
187089
|
coerceMessageLikeToMessage: () => coerceMessageLikeToMessage,
|
|
187090
|
+
collapseToolCallChunks: () => collapseToolCallChunks,
|
|
186882
187091
|
convertToChunk: () => convertToChunk,
|
|
186883
187092
|
convertToOpenAIImageBlock: () => convertToOpenAIImageBlock,
|
|
186884
187093
|
convertToProviderContentBlock: () => convertToProviderContentBlock,
|
|
@@ -186921,10 +187130,10 @@ __export2(messages_exports, {
|
|
|
186921
187130
|
trimMessages: () => trimMessages
|
|
186922
187131
|
});
|
|
186923
187132
|
|
|
186924
|
-
// ../../node_modules/.pnpm/@langchain+openai@1.1.3_@langchain+core@1.1.
|
|
187133
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.1.3_@langchain+core@1.1.4_@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
187134
|
var iife$1 = (fn2) => fn2();
|
|
186926
187135
|
|
|
186927
|
-
// ../../node_modules/.pnpm/@langchain+openai@1.1.3_@langchain+core@1.1.
|
|
187136
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.1.3_@langchain+core@1.1.4_@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
187137
|
function getEndpoint(config2) {
|
|
186929
187138
|
const { azureOpenAIApiDeploymentName, azureOpenAIApiInstanceName, azureOpenAIApiKey, azureOpenAIBasePath, baseURL, azureADTokenProvider, azureOpenAIEndpoint } = config2;
|
|
186930
187139
|
if ((azureOpenAIApiKey || azureADTokenProvider) && azureOpenAIBasePath && azureOpenAIApiDeploymentName)
|
|
@@ -186975,7 +187184,7 @@ function getHeadersWithUserAgent(headers, isAzure = false, version3 = "1.0.0") {
|
|
|
186975
187184
|
};
|
|
186976
187185
|
}
|
|
186977
187186
|
|
|
186978
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187187
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
187188
|
function isStructuredTool(tool) {
|
|
186980
187189
|
return tool !== undefined && Array.isArray(tool.lc_namespace);
|
|
186981
187190
|
}
|
|
@@ -186996,7 +187205,7 @@ function isLangChainTool(tool) {
|
|
|
186996
187205
|
return isStructuredToolParams(tool) || isRunnableToolLike(tool) || isStructuredTool(tool);
|
|
186997
187206
|
}
|
|
186998
187207
|
|
|
186999
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187208
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
187209
|
var function_calling_exports = {};
|
|
187001
187210
|
__export2(function_calling_exports, {
|
|
187002
187211
|
convertToOpenAIFunction: () => convertToOpenAIFunction,
|
|
@@ -187030,7 +187239,7 @@ function convertToOpenAITool(tool, fields) {
|
|
|
187030
187239
|
return toolDef;
|
|
187031
187240
|
}
|
|
187032
187241
|
|
|
187033
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
187242
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
187243
|
var types_exports = {};
|
|
187035
187244
|
__export2(types_exports, {
|
|
187036
187245
|
extendInteropZodObject: () => extendInteropZodObject,
|
|
@@ -187055,8 +187264,10 @@ __export2(types_exports, {
|
|
|
187055
187264
|
isZodArrayV4: () => isZodArrayV4,
|
|
187056
187265
|
isZodLiteralV3: () => isZodLiteralV3,
|
|
187057
187266
|
isZodLiteralV4: () => isZodLiteralV4,
|
|
187267
|
+
isZodNullableV4: () => isZodNullableV4,
|
|
187058
187268
|
isZodObjectV3: () => isZodObjectV3,
|
|
187059
187269
|
isZodObjectV4: () => isZodObjectV4,
|
|
187270
|
+
isZodOptionalV4: () => isZodOptionalV4,
|
|
187060
187271
|
isZodSchema: () => isZodSchema,
|
|
187061
187272
|
isZodSchemaV3: () => isZodSchemaV3,
|
|
187062
187273
|
isZodSchemaV4: () => isZodSchemaV4
|
|
@@ -188329,9 +188540,9 @@ function date5(params2) {
|
|
|
188329
188540
|
|
|
188330
188541
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
|
|
188331
188542
|
config(en_default2());
|
|
188332
|
-
// ../../node_modules/.pnpm/openai@6.
|
|
188543
|
+
// ../../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
188544
|
var ignoreOverride2 = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
188334
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
188545
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
188546
|
var prompt_values_exports = {};
|
|
188336
188547
|
__export2(prompt_values_exports, {
|
|
188337
188548
|
BasePromptValue: () => BasePromptValue,
|
|
@@ -188407,7 +188618,7 @@ var ImagePromptValue = class extends BasePromptValue {
|
|
|
188407
188618
|
}
|
|
188408
188619
|
};
|
|
188409
188620
|
|
|
188410
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
188621
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
188622
|
var HEX_CHARS = "0123456789abcdef".split("");
|
|
188412
188623
|
var EXTRA = [
|
|
188413
188624
|
-2147483648,
|
|
@@ -188757,11 +188968,11 @@ var sha256 = (...strings) => {
|
|
|
188757
188968
|
return new Sha256(false, true).update(strings.join("")).hex();
|
|
188758
188969
|
};
|
|
188759
188970
|
|
|
188760
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
188971
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
188972
|
var hash_exports = {};
|
|
188762
188973
|
__export2(hash_exports, { sha256: () => sha256 });
|
|
188763
188974
|
|
|
188764
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
188975
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
188976
|
var caches_exports = {};
|
|
188766
188977
|
__export2(caches_exports, {
|
|
188767
188978
|
BaseCache: () => BaseCache,
|
|
@@ -189069,7 +189280,7 @@ function getEncodingNameForModel(model) {
|
|
|
189069
189280
|
throw new Error("Unknown model");
|
|
189070
189281
|
}
|
|
189071
189282
|
}
|
|
189072
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189283
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
189284
|
var tiktoken_exports = {};
|
|
189074
189285
|
__export2(tiktoken_exports, {
|
|
189075
189286
|
encodingForModel: () => encodingForModel,
|
|
@@ -189089,7 +189300,7 @@ async function encodingForModel(model) {
|
|
|
189089
189300
|
return getEncoding(getEncodingNameForModel(model));
|
|
189090
189301
|
}
|
|
189091
189302
|
|
|
189092
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189303
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
189304
|
var base_exports3 = {};
|
|
189094
189305
|
__export2(base_exports3, {
|
|
189095
189306
|
BaseLangChain: () => BaseLangChain,
|
|
@@ -189324,7 +189535,7 @@ var BaseLanguageModel = class extends BaseLangChain {
|
|
|
189324
189535
|
}
|
|
189325
189536
|
};
|
|
189326
189537
|
|
|
189327
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189538
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
189539
|
var RunnablePassthrough = class extends Runnable {
|
|
189329
189540
|
static lc_name() {
|
|
189330
189541
|
return "RunnablePassthrough";
|
|
@@ -189368,7 +189579,7 @@ var RunnablePassthrough = class extends Runnable {
|
|
|
189368
189579
|
}
|
|
189369
189580
|
};
|
|
189370
189581
|
|
|
189371
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189582
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
189583
|
var iife3 = (fn2) => fn2();
|
|
189373
189584
|
function castStandardMessageContent(message) {
|
|
189374
189585
|
const Cls = message.constructor;
|
|
@@ -189382,7 +189593,7 @@ function castStandardMessageContent(message) {
|
|
|
189382
189593
|
});
|
|
189383
189594
|
}
|
|
189384
189595
|
|
|
189385
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
189596
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
189597
|
var chat_models_exports = {};
|
|
189387
189598
|
__export2(chat_models_exports, {
|
|
189388
189599
|
BaseChatModel: () => BaseChatModel,
|
|
@@ -189795,7 +190006,7 @@ var SimpleChatModel = class extends BaseChatModel {
|
|
|
189795
190006
|
}
|
|
189796
190007
|
};
|
|
189797
190008
|
|
|
189798
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190009
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190010
|
var RouterRunnable = class extends Runnable {
|
|
189800
190011
|
static lc_name() {
|
|
189801
190012
|
return "RouterRunnable";
|
|
@@ -189841,7 +190052,7 @@ var RouterRunnable = class extends Runnable {
|
|
|
189841
190052
|
}
|
|
189842
190053
|
};
|
|
189843
190054
|
|
|
189844
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190055
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190056
|
var RunnableBranch = class extends Runnable {
|
|
189846
190057
|
static lc_name() {
|
|
189847
190058
|
return "RunnableBranch";
|
|
@@ -189935,7 +190146,7 @@ var RunnableBranch = class extends Runnable {
|
|
|
189935
190146
|
}
|
|
189936
190147
|
};
|
|
189937
190148
|
|
|
189938
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190149
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190150
|
var RunnableWithMessageHistory = class extends RunnableBinding {
|
|
189940
190151
|
runnable;
|
|
189941
190152
|
inputMessagesKey;
|
|
@@ -190050,7 +190261,7 @@ eg. chain.invoke(${JSON.stringify(exampleInput)}, ${JSON.stringify(exampleConfig
|
|
|
190050
190261
|
}
|
|
190051
190262
|
};
|
|
190052
190263
|
|
|
190053
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190264
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190265
|
var runnables_exports = {};
|
|
190055
190266
|
__export2(runnables_exports, {
|
|
190056
190267
|
RouterRunnable: () => RouterRunnable,
|
|
@@ -190078,7 +190289,7 @@ __export2(runnables_exports, {
|
|
|
190078
190289
|
raceWithSignal: () => raceWithSignal
|
|
190079
190290
|
});
|
|
190080
190291
|
|
|
190081
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190292
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190293
|
var BaseLLMOutputParser = class extends Runnable {
|
|
190083
190294
|
parseResultWithPrompt(generations, _prompt, callbacks) {
|
|
190084
190295
|
return this.parseResult(generations, callbacks);
|
|
@@ -190133,7 +190344,7 @@ var OutputParserException = class extends Error {
|
|
|
190133
190344
|
}
|
|
190134
190345
|
};
|
|
190135
190346
|
|
|
190136
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190347
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190348
|
var BaseTransformOutputParser = class extends BaseOutputParser {
|
|
190138
190349
|
async* _transform(inputGenerator) {
|
|
190139
190350
|
for await (const chunk of inputGenerator)
|
|
@@ -190200,14 +190411,14 @@ var BaseCumulativeTransformOutputParser = class extends BaseTransformOutputParse
|
|
|
190200
190411
|
}
|
|
190201
190412
|
};
|
|
190202
190413
|
|
|
190203
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190414
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190415
|
var json_patch_exports = {};
|
|
190205
190416
|
__export2(json_patch_exports, {
|
|
190206
190417
|
applyPatch: () => applyPatch,
|
|
190207
190418
|
compare: () => compare
|
|
190208
190419
|
});
|
|
190209
190420
|
|
|
190210
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190421
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190422
|
var JsonOutputParser = class extends BaseCumulativeTransformOutputParser {
|
|
190212
190423
|
static lc_name() {
|
|
190213
190424
|
return "JsonOutputParser";
|
|
@@ -190241,7 +190452,7 @@ var JsonOutputParser = class extends BaseCumulativeTransformOutputParser {
|
|
|
190241
190452
|
}
|
|
190242
190453
|
};
|
|
190243
190454
|
|
|
190244
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190455
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190456
|
var BytesOutputParser = class extends BaseTransformOutputParser {
|
|
190246
190457
|
static lc_name() {
|
|
190247
190458
|
return "BytesOutputParser";
|
|
@@ -190261,7 +190472,7 @@ var BytesOutputParser = class extends BaseTransformOutputParser {
|
|
|
190261
190472
|
}
|
|
190262
190473
|
};
|
|
190263
190474
|
|
|
190264
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190475
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190476
|
var ListOutputParser = class extends BaseTransformOutputParser {
|
|
190266
190477
|
re;
|
|
190267
190478
|
async* _transform(inputGenerator) {
|
|
@@ -190393,7 +190604,7 @@ var MarkdownListOutputParser = class extends ListOutputParser {
|
|
|
190393
190604
|
}
|
|
190394
190605
|
};
|
|
190395
190606
|
|
|
190396
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190607
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190608
|
var StringOutputParser = class extends BaseTransformOutputParser {
|
|
190398
190609
|
static lc_name() {
|
|
190399
190610
|
return "StrOutputParser";
|
|
@@ -190437,7 +190648,7 @@ var StringOutputParser = class extends BaseTransformOutputParser {
|
|
|
190437
190648
|
}
|
|
190438
190649
|
};
|
|
190439
190650
|
|
|
190440
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190651
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190652
|
var StructuredOutputParser = class extends BaseOutputParser {
|
|
190442
190653
|
static lc_name() {
|
|
190443
190654
|
return "StructuredOutputParser";
|
|
@@ -190573,7 +190784,7 @@ var AsymmetricStructuredOutputParser = class extends BaseOutputParser {
|
|
|
190573
190784
|
}
|
|
190574
190785
|
};
|
|
190575
190786
|
|
|
190576
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
190787
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
190788
|
var initializeSax = function() {
|
|
190578
190789
|
const sax$1 = {};
|
|
190579
190790
|
sax$1.parser = function(strict, opt) {
|
|
@@ -191907,7 +192118,7 @@ Actual: ` + parser.attribValue);
|
|
|
191907
192118
|
};
|
|
191908
192119
|
var sax = initializeSax();
|
|
191909
192120
|
|
|
191910
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192121
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
192122
|
var XML_FORMAT_INSTRUCTIONS = `The output should be formatted as a XML file.
|
|
191912
192123
|
1. Output should conform to the tags below.
|
|
191913
192124
|
2. If tags are not given, make them on your own.
|
|
@@ -192027,7 +192238,7 @@ function parseXMLMarkdown(s187) {
|
|
|
192027
192238
|
return parseParsedResult(parsedResult);
|
|
192028
192239
|
}
|
|
192029
192240
|
|
|
192030
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192241
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
192242
|
var output_parsers_exports = {};
|
|
192032
192243
|
__export2(output_parsers_exports, {
|
|
192033
192244
|
AsymmetricStructuredOutputParser: () => AsymmetricStructuredOutputParser,
|
|
@@ -192053,7 +192264,7 @@ __export2(output_parsers_exports, {
|
|
|
192053
192264
|
parseXMLMarkdown: () => parseXMLMarkdown
|
|
192054
192265
|
});
|
|
192055
192266
|
|
|
192056
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192267
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
192268
|
function parseToolCall3(rawToolCall, options) {
|
|
192058
192269
|
if (rawToolCall.function === undefined)
|
|
192059
192270
|
return;
|
|
@@ -192226,7 +192437,7 @@ var JsonOutputKeyToolsParser = class extends JsonOutputToolsParser {
|
|
|
192226
192437
|
}
|
|
192227
192438
|
};
|
|
192228
192439
|
|
|
192229
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192440
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
192441
|
var openai_tools_exports = {};
|
|
192231
192442
|
__export2(openai_tools_exports, {
|
|
192232
192443
|
JsonOutputKeyToolsParser: () => JsonOutputKeyToolsParser,
|
|
@@ -192236,7 +192447,7 @@ __export2(openai_tools_exports, {
|
|
|
192236
192447
|
parseToolCall: () => parseToolCall3
|
|
192237
192448
|
});
|
|
192238
192449
|
|
|
192239
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192450
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
192451
|
var llms_exports = {};
|
|
192241
192452
|
__export2(llms_exports, {
|
|
192242
192453
|
BaseLLM: () => BaseLLM,
|
|
@@ -192475,7 +192686,7 @@ var LLM = class extends BaseLLM {
|
|
|
192475
192686
|
}
|
|
192476
192687
|
};
|
|
192477
192688
|
|
|
192478
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192689
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
192690
|
var chunk_array_exports = {};
|
|
192480
192691
|
__export2(chunk_array_exports, { chunkArray: () => chunkArray });
|
|
192481
192692
|
var chunkArray = (arr2, chunkSize) => arr2.reduce((chunks, elem, index2) => {
|
|
@@ -192485,7 +192696,7 @@ var chunkArray = (arr2, chunkSize) => arr2.reduce((chunks, elem, index2) => {
|
|
|
192485
192696
|
return chunks;
|
|
192486
192697
|
}, []);
|
|
192487
192698
|
|
|
192488
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192699
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
192700
|
var embeddings_exports = {};
|
|
192490
192701
|
__export2(embeddings_exports, { Embeddings: () => Embeddings2 });
|
|
192491
192702
|
var Embeddings2 = class {
|
|
@@ -192495,7 +192706,7 @@ var Embeddings2 = class {
|
|
|
192495
192706
|
}
|
|
192496
192707
|
};
|
|
192497
192708
|
|
|
192498
|
-
// ../../node_modules/.pnpm/@langchain+openai@1.1.3_@langchain+core@1.1.
|
|
192709
|
+
// ../../node_modules/.pnpm/@langchain+openai@1.1.3_@langchain+core@1.1.4_@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
192710
|
var OpenAIEmbeddings = class extends Embeddings2 {
|
|
192500
192711
|
model = "text-embedding-ada-002";
|
|
192501
192712
|
modelName;
|
|
@@ -192593,7 +192804,7 @@ var OpenAIEmbeddings = class extends Embeddings2 {
|
|
|
192593
192804
|
}
|
|
192594
192805
|
};
|
|
192595
192806
|
|
|
192596
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
192807
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
192808
|
var tools_exports = {};
|
|
192598
192809
|
__export2(tools_exports, {
|
|
192599
192810
|
BaseToolkit: () => BaseToolkit,
|
|
@@ -192609,6 +192820,7 @@ __export2(tools_exports, {
|
|
|
192609
192820
|
tool: () => tool
|
|
192610
192821
|
});
|
|
192611
192822
|
var StructuredTool = class extends BaseLangChain {
|
|
192823
|
+
extras;
|
|
192612
192824
|
returnDirect = false;
|
|
192613
192825
|
verboseParsingErrors = false;
|
|
192614
192826
|
get lc_namespace() {
|
|
@@ -192622,6 +192834,7 @@ var StructuredTool = class extends BaseLangChain {
|
|
|
192622
192834
|
this.responseFormat = fields?.responseFormat ?? this.responseFormat;
|
|
192623
192835
|
this.defaultConfig = fields?.defaultConfig ?? this.defaultConfig;
|
|
192624
192836
|
this.metadata = fields?.metadata ?? this.metadata;
|
|
192837
|
+
this.extras = fields?.extras ?? this.extras;
|
|
192625
192838
|
}
|
|
192626
192839
|
async invoke(input, config2) {
|
|
192627
192840
|
let toolInput;
|
|
@@ -192858,7 +193071,7 @@ function _stringify(content3) {
|
|
|
192858
193071
|
}
|
|
192859
193072
|
}
|
|
192860
193073
|
|
|
192861
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193074
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
193075
|
var Document = class {
|
|
192863
193076
|
pageContent;
|
|
192864
193077
|
metadata;
|
|
@@ -192870,7 +193083,7 @@ var Document = class {
|
|
|
192870
193083
|
}
|
|
192871
193084
|
};
|
|
192872
193085
|
|
|
192873
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193086
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
193087
|
var BaseDocumentTransformer = class extends Runnable {
|
|
192875
193088
|
lc_namespace = [
|
|
192876
193089
|
"langchain_core",
|
|
@@ -192892,7 +193105,7 @@ var MappingDocumentTransformer = class extends BaseDocumentTransformer {
|
|
|
192892
193105
|
}
|
|
192893
193106
|
};
|
|
192894
193107
|
|
|
192895
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193108
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
193109
|
var documents_exports = {};
|
|
192897
193110
|
__export2(documents_exports, {
|
|
192898
193111
|
BaseDocumentTransformer: () => BaseDocumentTransformer,
|
|
@@ -192900,7 +193113,7 @@ __export2(documents_exports, {
|
|
|
192900
193113
|
MappingDocumentTransformer: () => MappingDocumentTransformer
|
|
192901
193114
|
});
|
|
192902
193115
|
|
|
192903
|
-
// ../../node_modules/.pnpm/@langchain+textsplitters@1.0.1_@langchain+core@1.1.
|
|
193116
|
+
// ../../node_modules/.pnpm/@langchain+textsplitters@1.0.1_@langchain+core@1.1.4_@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
193117
|
var TextSplitter = class extends BaseDocumentTransformer {
|
|
192905
193118
|
lc_namespace = [
|
|
192906
193119
|
"langchain",
|
|
@@ -193571,7 +193784,7 @@ assembly `,
|
|
|
193571
193784
|
}
|
|
193572
193785
|
};
|
|
193573
193786
|
|
|
193574
|
-
// ../../node_modules/.pnpm/@langchain+classic@1.0.5_@langchain+core@1.1.
|
|
193787
|
+
// ../../node_modules/.pnpm/@langchain+classic@1.0.5_@langchain+core@1.1.4_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18_jygueyso5ufycffmuzmqz7tpbm/node_modules/@langchain/classic/dist/_virtual/rolldown_runtime.js
|
|
193575
193788
|
var __defProp4 = Object.defineProperty;
|
|
193576
193789
|
var __export3 = (target, all2) => {
|
|
193577
193790
|
for (var name in all2)
|
|
@@ -193581,7 +193794,7 @@ var __export3 = (target, all2) => {
|
|
|
193581
193794
|
});
|
|
193582
193795
|
};
|
|
193583
193796
|
|
|
193584
|
-
// ../../node_modules/.pnpm/@langchain+classic@1.0.5_@langchain+core@1.1.
|
|
193797
|
+
// ../../node_modules/.pnpm/@langchain+classic@1.0.5_@langchain+core@1.1.4_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18_jygueyso5ufycffmuzmqz7tpbm/node_modules/@langchain/classic/dist/util/ml-distance/similarities.js
|
|
193585
193798
|
function cosine(a443, b8) {
|
|
193586
193799
|
let p28 = 0;
|
|
193587
193800
|
let p29 = 0;
|
|
@@ -193594,7 +193807,7 @@ function cosine(a443, b8) {
|
|
|
193594
193807
|
return p28 / (Math.sqrt(p29) * Math.sqrt(q22));
|
|
193595
193808
|
}
|
|
193596
193809
|
|
|
193597
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193810
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
193811
|
var retrievers_exports = {};
|
|
193599
193812
|
__export2(retrievers_exports, { BaseRetriever: () => BaseRetriever });
|
|
193600
193813
|
var BaseRetriever = class extends Runnable {
|
|
@@ -193627,7 +193840,7 @@ var BaseRetriever = class extends Runnable {
|
|
|
193627
193840
|
}
|
|
193628
193841
|
};
|
|
193629
193842
|
|
|
193630
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193843
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
193844
|
var vectorstores_exports = {};
|
|
193632
193845
|
__export2(vectorstores_exports, {
|
|
193633
193846
|
SaveableVectorStore: () => SaveableVectorStore,
|
|
@@ -193738,7 +193951,7 @@ var SaveableVectorStore = class extends VectorStore {
|
|
|
193738
193951
|
}
|
|
193739
193952
|
};
|
|
193740
193953
|
|
|
193741
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193954
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
193955
|
function cosine2(a443, b8) {
|
|
193743
193956
|
let p28 = 0;
|
|
193744
193957
|
let p29 = 0;
|
|
@@ -193751,7 +193964,7 @@ function cosine2(a443, b8) {
|
|
|
193751
193964
|
return p28 / (Math.sqrt(p29) * Math.sqrt(q22));
|
|
193752
193965
|
}
|
|
193753
193966
|
|
|
193754
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193967
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
193968
|
function innerProduct(a443, b8) {
|
|
193756
193969
|
let ans = 0;
|
|
193757
193970
|
for (let i315 = 0;i315 < a443.length; i315++)
|
|
@@ -193759,7 +193972,7 @@ function innerProduct(a443, b8) {
|
|
|
193759
193972
|
return ans;
|
|
193760
193973
|
}
|
|
193761
193974
|
|
|
193762
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193975
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
193976
|
function squaredEuclidean(p28, q4) {
|
|
193764
193977
|
let d29 = 0;
|
|
193765
193978
|
for (let i315 = 0;i315 < p28.length; i315++)
|
|
@@ -193770,7 +193983,7 @@ function euclidean(p28, q4) {
|
|
|
193770
193983
|
return Math.sqrt(squaredEuclidean(p28, q4));
|
|
193771
193984
|
}
|
|
193772
193985
|
|
|
193773
|
-
// ../../node_modules/.pnpm/@langchain+core@1.1.
|
|
193986
|
+
// ../../node_modules/.pnpm/@langchain+core@1.1.4_@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
193987
|
var math_exports = {};
|
|
193775
193988
|
__export2(math_exports, {
|
|
193776
193989
|
cosineSimilarity: () => cosineSimilarity,
|
|
@@ -193849,7 +194062,7 @@ function matrixMaxVal(arrays) {
|
|
|
193849
194062
|
return arrays.reduce((acc, array3) => Math.max(acc, argMax(array3).maxValue), 0);
|
|
193850
194063
|
}
|
|
193851
194064
|
|
|
193852
|
-
// ../../node_modules/.pnpm/@langchain+classic@1.0.5_@langchain+core@1.1.
|
|
194065
|
+
// ../../node_modules/.pnpm/@langchain+classic@1.0.5_@langchain+core@1.1.4_@opentelemetry+api@1.9.0_openai@6.10.0_ws@8.18_jygueyso5ufycffmuzmqz7tpbm/node_modules/@langchain/classic/dist/vectorstores/memory.js
|
|
193853
194066
|
var memory_exports = {};
|
|
193854
194067
|
__export3(memory_exports, { MemoryVectorStore: () => MemoryVectorStore });
|
|
193855
194068
|
var MemoryVectorStore = class MemoryVectorStore2 extends VectorStore {
|