@mcp-use/inspector 0.9.0-canary.1 → 0.9.0-canary.3

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.
@@ -1,7 +1,6 @@
1
- import { i as isInteropZodSchema, t as toJsonSchema, a as isBaseMessage, b as AIMessage, C as ChatGenerationChunk, c as AIMessageChunk, d as ChatMessage, e as isToolMessage, f as isAIMessage, g as isLangChainTool, h as isOpenAITool, j as isDataContentBlock, k as convertToProviderContentBlock, p as parseBase64DataUrl, B as BaseLLMOutputParser, l as interopSafeParseAsync, O as OutputParserException, m as BaseChatModel, n as getEnvironmentVariable, J as JsonOutputParser, R as RunnablePassthrough, o as RunnableSequence } from "./index-C74kq9On.js";
2
- import { v as v4 } from "./index-B6TgCktd.js";
3
- import "./embeddings-D88gGGgZ.js";
4
- import "./chunk-VL2OQCWN-CX6x4kxU.js";
1
+ import { j as isInteropZodSchema, H as toJsonSchema, I as isBaseMessage, J as AIMessage, K as ChatGenerationChunk, L as AIMessageChunk, M as ChatMessage, N as isToolMessage, a as isAIMessage, t as isLangChainTool, P as isOpenAITool, Q as isDataContentBlock, S as convertToProviderContentBlock, U as parseBase64DataUrl, V as BaseLLMOutputParser, i as interopSafeParseAsync, O as OutputParserException, W as BaseChatModel, X as getEnvironmentVariable, Y as JsonOutputParser, Z as RunnablePassthrough, $ as RunnableSequence } from "./index-DPaWbs8Z.js";
2
+ import "./embeddings-DWZf9aOm.js";
3
+ import "./index-DlUHZ9Rv.js";
5
4
  import "./index-DX0TIfSM.js";
6
5
  function removeAdditionalProperties(obj) {
7
6
  if (typeof obj === "object" && obj !== null) {
@@ -27,6 +26,39 @@ function jsonSchemaToGeminiParameters(schema) {
27
26
  const { $schema, ...rest } = jsonSchema;
28
27
  return rest;
29
28
  }
29
+ const byteToHex = [];
30
+ for (let i = 0; i < 256; ++i) {
31
+ byteToHex.push((i + 256).toString(16).slice(1));
32
+ }
33
+ function unsafeStringify(arr, offset = 0) {
34
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
35
+ }
36
+ let getRandomValues;
37
+ const rnds8 = new Uint8Array(16);
38
+ function rng() {
39
+ if (!getRandomValues) {
40
+ if (typeof crypto === "undefined" || !crypto.getRandomValues) {
41
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
42
+ }
43
+ getRandomValues = crypto.getRandomValues.bind(crypto);
44
+ }
45
+ return getRandomValues(rnds8);
46
+ }
47
+ const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
48
+ const native = { randomUUID };
49
+ function v4(options, buf, offset) {
50
+ if (native.randomUUID && true && !options) {
51
+ return native.randomUUID();
52
+ }
53
+ options = options || {};
54
+ const rnds = options.random ?? options.rng?.() ?? rng();
55
+ if (rnds.length < 16) {
56
+ throw new Error("Random bytes length must be >= 16");
57
+ }
58
+ rnds[6] = rnds[6] & 15 | 64;
59
+ rnds[8] = rnds[8] & 63 | 128;
60
+ return unsafeStringify(rnds);
61
+ }
30
62
  function getMessageAuthor(message) {
31
63
  const type = message._getType();
32
64
  if (ChatMessage.isInstance(message)) return message.role;