@mcp-use/inspector 0.26.2-canary.3 → 0.27.0-canary.5

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.
Files changed (31) hide show
  1. package/dist/cdn/inspector.js +365 -295
  2. package/dist/client/components/ChatTab.d.ts +20 -1
  3. package/dist/client/components/ChatTab.d.ts.map +1 -1
  4. package/dist/client/components/chat/types.d.ts +1 -0
  5. package/dist/client/components/chat/types.d.ts.map +1 -1
  6. package/dist/client/components/chat/useChatMessages.d.ts +26 -2
  7. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  8. package/dist/client/index.d.ts +1 -1
  9. package/dist/client/index.d.ts.map +1 -1
  10. package/dist/client/index.js +214 -142
  11. package/dist/web/assets/{browser-BooRvV2d.js → browser-Cyay4eSr.js} +3 -3
  12. package/dist/web/assets/{chunk-RPN2XO5I-Dan1acyM.js → chunk-RPN2XO5I-yrrAKptp.js} +1 -1
  13. package/dist/web/assets/{chunk-CPYHFP37-DKNg2Uzk.js → chunk-UN4HTJ53-UHTSWXbL.js} +1 -1
  14. package/dist/web/assets/{chunk_array-BxGdovlo.js → chunk_array-C34y19C8.js} +1 -1
  15. package/dist/web/assets/{client-Z2IZ3TRJ-DRh-kjpU.js → client-FP3U5ACX-EHqe6LYS.js} +3 -3
  16. package/dist/web/assets/{client-BsfvtnhC.js → client-vvLPAP7R.js} +1 -1
  17. package/dist/web/assets/{dist-C5VkGiyH.js → dist-CXtDOp58.js} +1 -1
  18. package/dist/web/assets/{dist-CzxBJ3Sn.js → dist-p054hNAE.js} +1 -1
  19. package/dist/web/assets/{dist-y_j0ocM9.js → dist-qYMcaYKa.js} +1 -1
  20. package/dist/web/assets/{function_calling-BhYEU91I.js → function_calling-CtMlF_FJ.js} +1 -1
  21. package/dist/web/assets/{index-DDOC4cFw.js → index-W_tOTbdF.js} +112 -112
  22. package/dist/web/assets/{llms-B0dBUNEd.js → llms-SXx-C0Gt.js} +1 -1
  23. package/dist/web/assets/messages-D-rNcYX8.js +1 -0
  24. package/dist/web/assets/react-Dyz2pEjt.js +1 -0
  25. package/dist/web/assets/{rpc-logger-TPNV75J4-CxjLIuFP.js → rpc-logger-TPNV75J4-Ba-UGeE3.js} +1 -1
  26. package/dist/web/assets/{stdio-KYKHYDDI-BRLnxXi1.js → stdio-C4Y5NJDQ-DOY3z4ue.js} +1 -1
  27. package/dist/web/assets/{tools-_onBLDxQ.js → tools-DEZZk64_.js} +1 -1
  28. package/dist/web/index.html +4 -4
  29. package/package.json +3 -3
  30. package/dist/web/assets/messages-BatQVC15.js +0 -1
  31. package/dist/web/assets/react-XUTZng08.js +0 -1
@@ -23064,7 +23064,7 @@ var WT, GT, Gre, Kre, qre, KT, qT, JT, YT, XT, Jre, ZT, QT, $T, Yre, Xre, Zre, e
23064
23064
  }(), nse);
23065
23065
  }));
23066
23066
  //#endregion
23067
- //#region ../mcp-use/dist/chunk-7O53OXLR.js
23067
+ //#region ../mcp-use/dist/chunk-R573KM3Y.js
23068
23068
  function yk() {
23069
23069
  return gse;
23070
23070
  }
@@ -23189,7 +23189,7 @@ function hse(e) {
23189
23189
  Ek.getInstance().setSource(e);
23190
23190
  }
23191
23191
  var gse, Ck, _se, vse, yse, bse, xse, Sse, Cse, wse, Tse, Ese, Dse, Ose, wk, Tk, Ek, Dk, kse, Ok = o((() => {
23192
- C(), g(), Kne(), Qf(), gse = "1.22.4-canary.3", m(yk, "getPackageVersion"), Ck = class {
23192
+ C(), g(), Kne(), Qf(), gse = "1.22.4-canary.5", m(yk, "getPackageVersion"), Ck = class {
23193
23193
  static {
23194
23194
  m(this, "BaseTelemetryEvent");
23195
23195
  }
@@ -30086,7 +30086,7 @@ var yue, bue, gA, _A, vA, yA, bA, xA, SA, CA, wA, TA, EA, DA, OA, kA, AA, jA, MA
30086
30086
  };
30087
30087
  }));
30088
30088
  //#endregion
30089
- //#region ../mcp-use/dist/chunk-CPYHFP37.js
30089
+ //#region ../mcp-use/dist/chunk-UN4HTJ53.js
30090
30090
  function UA(e, t) {
30091
30091
  return {
30092
30092
  onSampling: e?.onSampling ?? e?.samplingCallback ?? t?.onSampling ?? t?.samplingCallback,
@@ -30515,7 +30515,7 @@ var kue, GA, KA, qA, JA = o((() => {
30515
30515
  };
30516
30516
  }));
30517
30517
  //#endregion
30518
- //#region ../mcp-use/dist/chunk-5Q2J4I3S.js
30518
+ //#region ../mcp-use/dist/chunk-WWC4DXO7.js
30519
30519
  function Aue(e) {
30520
30520
  let t = Object.keys(e.mcpServers ?? {});
30521
30521
  Ek.getInstance().trackMCPClientInit({
@@ -59897,7 +59897,7 @@ var Tbe = class {
59897
59897
  //#region src/client/telemetry/utils.ts
59898
59898
  function Nbe() {
59899
59899
  try {
59900
- return "0.26.2-canary.3";
59900
+ return "0.27.0-canary.5";
59901
59901
  } catch {
59902
59902
  return "0.0.0";
59903
59903
  }
@@ -165643,27 +165643,27 @@ var _It = (e) => {
165643
165643
  };
165644
165644
  //#endregion
165645
165645
  //#region src/client/components/chat/useChatMessages.ts
165646
- function vIt({ mcpServerUrl: e, llmConfig: t, authConfig: n, isConnected: r, chatApiUrl: i, waitForChatApiUrl: a, widgetModelContexts: o, initialMessages: s }) {
165647
- let [c, l] = (0, K.useState)(s ?? []), [u, d] = (0, K.useState)(!1), [f, p] = (0, K.useState)([]), m = (0, K.useRef)(null);
165646
+ function vIt({ mcpServerUrl: e, llmConfig: t, authConfig: n, isConnected: r, chatApiUrl: i, waitForChatApiUrl: a, widgetModelContexts: o, initialMessages: s, disabledTools: c, streamProtocol: l = "sse", credentials: u, extraHeaders: d, body: f }) {
165647
+ let [p, m] = (0, K.useState)(s ?? []), [h, g] = (0, K.useState)(!1), [_, v] = (0, K.useState)([]), y = (0, K.useRef)(null);
165648
165648
  return {
165649
- messages: c,
165650
- isLoading: u,
165651
- attachments: f,
165652
- sendMessage: (0, K.useCallback)(async (s, u, h) => {
165653
- let g = [...f, ...h ?? []];
165654
- if (!(s.trim() || u.length > 0 || g.length > 0) || !t || !r) return;
165655
- let _ = [..._It(u)];
165656
- if (s.trim() || g.length > 0) {
165649
+ messages: p,
165650
+ isLoading: h,
165651
+ attachments: _,
165652
+ sendMessage: (0, K.useCallback)(async (s, h, b) => {
165653
+ let x = [..._, ...b ?? []];
165654
+ if (!(s.trim() || h.length > 0 || x.length > 0) || !t || !r) return;
165655
+ let S = [..._It(h)];
165656
+ if (s.trim() || x.length > 0) {
165657
165657
  let e = {
165658
165658
  id: `user-${Date.now()}`,
165659
165659
  role: "user",
165660
165660
  content: s.trim(),
165661
165661
  timestamp: Date.now(),
165662
- attachments: g.length > 0 ? g : void 0
165662
+ attachments: x.length > 0 ? x : void 0
165663
165663
  };
165664
- _.push(e);
165664
+ S.push(e);
165665
165665
  }
165666
- l((e) => [...e, ..._]), d(!0), p([]), m.current = new AbortController();
165666
+ m((e) => [...e, ...S]), g(!0), v([]), y.current = new AbortController();
165667
165667
  try {
165668
165668
  let r = n;
165669
165669
  if (n?.type === "oauth") try {
@@ -165687,88 +165687,147 @@ function vIt({ mcpServerUrl: e, llmConfig: t, authConfig: n, isConnected: r, cha
165687
165687
  content: `[Current Widget State]\n${e.join("\n")}`
165688
165688
  });
165689
165689
  }
165690
- let u = i ?? (a ? await a() : void 0) ?? "/inspector/api/chat/stream", d = await fetch(u, {
165690
+ let h = i ?? (a ? await a() : void 0) ?? "/inspector/api/chat/stream", g = [...[...p, ...S].map((e) => ({
165691
+ role: e.role,
165692
+ content: e.content || (e.parts?.filter((e) => e.type === "text").map((e) => e.text).join("") ?? ""),
165693
+ attachments: e.attachments
165694
+ })), ...s], _ = await fetch(h, {
165691
165695
  method: "POST",
165692
- headers: { "Content-Type": "application/json" },
165693
- signal: m.current.signal,
165694
- body: JSON.stringify({
165696
+ headers: {
165697
+ "Content-Type": "application/json",
165698
+ ...d
165699
+ },
165700
+ signal: y.current.signal,
165701
+ ...u ? { credentials: u } : {},
165702
+ body: JSON.stringify(f ? f(g) : {
165695
165703
  mcpServerUrl: e,
165696
165704
  llmConfig: t,
165697
165705
  authConfig: r,
165698
- messages: [...[...c, ..._].map((e) => ({
165699
- role: e.role,
165700
- content: e.content || (e.parts?.filter((e) => e.type === "text").map((e) => e.text).join("") ?? ""),
165701
- attachments: e.attachments
165702
- })), ...s]
165706
+ messages: g,
165707
+ ...c && c.size > 0 ? { disabledTools: [...c] } : {}
165703
165708
  })
165704
165709
  });
165705
- if (!d.ok) throw Error(`HTTP error! status: ${d.status}`);
165706
- let f = `assistant-${Date.now()}`, p = "", h = [];
165707
- l((e) => [...e, {
165708
- id: f,
165710
+ if (!_.ok) throw Error(`HTTP error! status: ${_.status}`);
165711
+ let v = `assistant-${Date.now()}`, b = "", x = [];
165712
+ m((e) => [...e, {
165713
+ id: v,
165709
165714
  role: "assistant",
165710
165715
  content: "",
165711
165716
  timestamp: Date.now(),
165712
165717
  parts: []
165713
165718
  }]);
165714
- let g = d.body?.getReader(), v = new TextDecoder();
165715
- if (!g) throw Error("No response body");
165716
- let y = "";
165719
+ let C = _.body?.getReader(), w = new TextDecoder();
165720
+ if (!C) throw Error("No response body");
165721
+ let T = () => {
165722
+ m((e) => e.map((e) => e.id === v ? {
165723
+ ...e,
165724
+ parts: [...x]
165725
+ } : e));
165726
+ }, E = () => {
165727
+ m((e) => e.map((e) => e.id === v ? {
165728
+ ...e,
165729
+ parts: [...x],
165730
+ content: ""
165731
+ } : e));
165732
+ }, D = (e) => {
165733
+ b += e;
165734
+ let t = x[x.length - 1];
165735
+ t && t.type === "text" ? t.text = b : x.push({
165736
+ type: "text",
165737
+ text: b
165738
+ }), T();
165739
+ }, O = (e, t) => {
165740
+ b &&= "", x.push({
165741
+ type: "tool-invocation",
165742
+ toolInvocation: {
165743
+ toolName: e,
165744
+ args: t,
165745
+ state: "pending"
165746
+ }
165747
+ }), T();
165748
+ }, k = (e, t) => {
165749
+ let n;
165750
+ n = e.by === "toolName" ? x.find((t) => t.type === "tool-invocation" && t.toolInvocation?.toolName === e.toolName && !t.toolInvocation?.result) : x[e.index], n?.toolInvocation && (n.toolInvocation.result = t, n.toolInvocation.state = t?.isError ? "error" : "result", T());
165751
+ }, A = /* @__PURE__ */ new Map(), j = "";
165717
165752
  for (;;) {
165718
- if (m.current?.signal.aborted) {
165719
- await g.cancel();
165753
+ if (y.current?.signal.aborted) {
165754
+ await C.cancel();
165720
165755
  break;
165721
165756
  }
165722
- let { done: e, value: t } = await g.read();
165757
+ let { done: e, value: t } = await C.read();
165723
165758
  if (e) break;
165724
- y += v.decode(t, { stream: !0 });
165725
- let n = y.split("\n");
165726
- y = n.pop() || "";
165727
- for (let e of n) if (e.trim() && e.startsWith("data: ")) try {
165728
- let t = JSON.parse(e.slice(6));
165729
- if (console.log("[Client received event]", t.type, t.toolName || t.content?.slice?.(0, 30)), t.type === "message") console.log("[Message started]", t.id);
165730
- else if (t.type === "text") {
165731
- p += t.content;
165732
- let e = h[h.length - 1];
165733
- e && e.type === "text" ? e.text = p : h.push({
165734
- type: "text",
165735
- text: p
165736
- }), console.log("[Parts after text]", h.length, "parts, text length:", p.length), l((e) => e.map((e) => e.id === f ? {
165737
- ...e,
165738
- parts: [...h]
165739
- } : e));
165740
- } else if (t.type === "tool-call") p &&= "", h.push({
165741
- type: "tool-invocation",
165742
- toolInvocation: {
165743
- toolName: t.toolName,
165744
- args: t.args,
165745
- state: "pending"
165759
+ j += w.decode(t, { stream: !0 });
165760
+ let n = j.split("\n");
165761
+ j = n.pop() || "";
165762
+ for (let e of n) if (e.trim()) try {
165763
+ if (l === "data-stream") {
165764
+ let t = e.indexOf(":");
165765
+ if (t === -1) continue;
165766
+ let n = e.slice(0, t), r = e.slice(t + 1), i;
165767
+ try {
165768
+ i = JSON.parse(r);
165769
+ } catch {
165770
+ continue;
165746
165771
  }
165747
- }), console.log("[Parts after tool-call]", h.length, "parts, tool:", t.toolName), l((e) => e.map((e) => e.id === f ? {
165748
- ...e,
165749
- parts: [...h]
165750
- } : e));
165751
- else if (t.type === "tool-result") {
165752
- let e = h.find((e) => e.type === "tool-invocation" && e.toolInvocation?.toolName === t.toolName && !e.toolInvocation?.result);
165753
- e && e.toolInvocation ? (e.toolInvocation.result = t.result, e.toolInvocation.state = t.result?.isError ? "error" : "result", console.log("[Parts after tool-result]", h.length, "parts, updated:", t.toolName), l((e) => e.map((e) => e.id === f ? {
165754
- ...e,
165755
- parts: [...h]
165756
- } : e))) : console.warn("[tool-result] Could not find matching tool part for", t.toolName);
165757
- } else if (t.type === "done") console.log("[Done] Final parts:", h.length), l((e) => e.map((e) => e.id === f ? {
165758
- ...e,
165759
- parts: [...h],
165760
- content: ""
165761
- } : e));
165762
- else if (t.type === "error") throw Error(t.message || "Streaming error");
165772
+ switch (n) {
165773
+ case "0":
165774
+ D(typeof i == "string" ? i : String(i));
165775
+ break;
165776
+ case "9": {
165777
+ let e = i, t = e.args ?? {};
165778
+ if (typeof t.input == "string" && Object.keys(t).length === 1) try {
165779
+ let e = JSON.parse(t.input);
165780
+ typeof e == "object" && e && (t = e);
165781
+ } catch {}
165782
+ O(String(e.toolName ?? ""), t), e.toolCallId && A.set(e.toolCallId, x.length - 1);
165783
+ break;
165784
+ }
165785
+ case "a": {
165786
+ let e = i, t = A.get(e.toolCallId), n = e.result, r = n;
165787
+ if (r?.lc === 1 && r?.type === "constructor" && r?.kwargs?.content) {
165788
+ let e = r.kwargs.content;
165789
+ if (typeof e == "string") try {
165790
+ n = JSON.parse(e);
165791
+ } catch {
165792
+ n = e;
165793
+ }
165794
+ }
165795
+ t !== void 0 && k({
165796
+ by: "index",
165797
+ index: t
165798
+ }, n);
165799
+ break;
165800
+ }
165801
+ case "d":
165802
+ E();
165803
+ break;
165804
+ case "3": throw Error(typeof i == "string" ? i : JSON.stringify(i));
165805
+ default: break;
165806
+ }
165807
+ } else {
165808
+ if (!e.startsWith("data: ")) continue;
165809
+ let t = JSON.parse(e.slice(6));
165810
+ if (t.type !== "message") {
165811
+ if (t.type === "text") D(t.content);
165812
+ else if (t.type === "tool-call") O(t.toolName, t.args);
165813
+ else if (t.type === "tool-result") k({
165814
+ by: "toolName",
165815
+ toolName: t.toolName
165816
+ }, t.result);
165817
+ else if (t.type === "done") E();
165818
+ else if (t.type === "error") throw Error(t.message || "Streaming error");
165819
+ }
165820
+ }
165763
165821
  } catch (t) {
165764
- console.error("Failed to parse streaming event:", t, e);
165822
+ if (t instanceof Error && t.message !== "Streaming error") console.error("Failed to parse streaming event:", t, e);
165823
+ else throw t;
165765
165824
  }
165766
165825
  }
165767
- if (m.current?.signal.aborted) {
165768
- for (let e of h) e.type === "tool-invocation" && e.toolInvocation?.state === "pending" && (e.toolInvocation.state = "error", e.toolInvocation.result = "Cancelled by user");
165769
- l((e) => e.map((e) => e.id === f ? {
165826
+ if (y.current?.signal.aborted) {
165827
+ for (let e of x) e.type === "tool-invocation" && e.toolInvocation?.state === "pending" && (e.toolInvocation.state = "error", e.toolInvocation.result = "Cancelled by user");
165828
+ m((e) => e.map((e) => e.id === v ? {
165770
165829
  ...e,
165771
- parts: [...h],
165830
+ parts: [...x],
165772
165831
  content: ""
165773
165832
  } : e));
165774
165833
  }
@@ -165786,31 +165845,37 @@ function vIt({ mcpServerUrl: e, llmConfig: t, authConfig: n, isConnected: r, cha
165786
165845
  content: `Error: ${t}`,
165787
165846
  timestamp: Date.now()
165788
165847
  };
165789
- l((e) => [...e, n]);
165848
+ m((e) => [...e, n]);
165790
165849
  } finally {
165791
- d(!1), m.current = null;
165850
+ g(!1), y.current = null;
165792
165851
  }
165793
165852
  }, [
165794
165853
  t,
165795
165854
  r,
165796
165855
  e,
165797
- c,
165856
+ p,
165798
165857
  n,
165799
- f,
165858
+ _,
165800
165859
  i,
165801
- a
165860
+ a,
165861
+ o,
165862
+ c,
165863
+ l,
165864
+ u,
165865
+ d,
165866
+ f
165802
165867
  ]),
165803
165868
  clearMessages: (0, K.useCallback)(() => {
165804
- l([]);
165869
+ m([]);
165805
165870
  }, []),
165806
- setMessages: l,
165871
+ setMessages: m,
165807
165872
  stop: (0, K.useCallback)(() => {
165808
- m.current && m.current.abort();
165873
+ y.current && y.current.abort();
165809
165874
  }, []),
165810
165875
  addAttachment: (0, K.useCallback)(async (e) => {
165811
165876
  try {
165812
165877
  let t = await C2e(e);
165813
- p((e) => {
165878
+ v((e) => {
165814
165879
  let n = [...e, t];
165815
165880
  return x2e(n) ? n : (alert("Total attachment size exceeds 20MB limit"), e);
165816
165881
  });
@@ -165819,10 +165884,10 @@ function vIt({ mcpServerUrl: e, llmConfig: t, authConfig: n, isConnected: r, cha
165819
165884
  }
165820
165885
  }, []),
165821
165886
  removeAttachment: (0, K.useCallback)((e) => {
165822
- p((t) => t.filter((t, n) => n !== e));
165887
+ v((t) => t.filter((t, n) => n !== e));
165823
165888
  }, []),
165824
165889
  clearAttachments: (0, K.useCallback)(() => {
165825
- p([]);
165890
+ v([]);
165826
165891
  }, [])
165827
165892
  };
165828
165893
  }
@@ -205414,36 +205479,41 @@ var EZt = /(?:^\/$|\s+\/$)/, DZt = [
205414
205479
  "Escape",
205415
205480
  "Enter"
205416
205481
  ];
205417
- function OZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeyboardShortcuts: r = !0, prompts: i, serverId: a, callPrompt: o, readResource: s, chatApiUrl: c, waitForChatApiUrl: l, initialMessages: u, managedLlmConfig: d, clearButtonLabel: f, hideTitle: p, hideModelBadge: m, hideServerUrl: h, clearButtonHideIcon: g, clearButtonHideShortcut: _, clearButtonVariant: v, hideClearButton: y, hideToolSelector: b, chatQuickQuestions: x = [], chatFollowups: S = [] }) {
205418
- let [C, w] = (0, K.useState)(""), [T, E] = (0, K.useState)(!1), [D, O] = (0, K.useState)(-1), [k, A] = (0, K.useState)(x), [j, M] = (0, K.useState)(S), [N, P] = (0, K.useState)(/* @__PURE__ */ new Set()), F = (0, K.useRef)(null), I = (0, K.useRef)(null), L = (0, K.useMemo)(() => (e.tools ?? []).map((e) => ({
205482
+ function OZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeyboardShortcuts: r = !0, prompts: i, serverId: a, callPrompt: o, readResource: s, chatApiUrl: c, waitForChatApiUrl: l, initialMessages: u, managedLlmConfig: d, clearButtonLabel: f, hideTitle: p, hideModelBadge: m, hideServerUrl: h, clearButtonHideIcon: g, clearButtonHideShortcut: _, clearButtonVariant: v, hideClearButton: y, hideToolSelector: b, chatQuickQuestions: x = [], chatFollowups: S = [], streamProtocol: C, credentials: w, extraHeaders: T, body: E }) {
205483
+ let [D, O] = (0, K.useState)(""), [k, A] = (0, K.useState)(!1), [j, M] = (0, K.useState)(-1), [N, P] = (0, K.useState)(x), [F, I] = (0, K.useState)(S), [L, ee] = (0, K.useState)(/* @__PURE__ */ new Set()), te = (0, K.useRef)(null), R = (0, K.useRef)(null), z = (0, K.useMemo)(() => (e.tools ?? []).map((e) => ({
205419
205484
  name: e.name,
205420
205485
  description: e.description
205421
- })), [e.tools]), { llmConfig: ee, authConfig: te, configDialogOpen: R, setConfigDialogOpen: z, tempProvider: ne, setTempProvider: re, tempApiKey: ie, setTempApiKey: ae, tempModel: oe, setTempModel: se, saveLLMConfig: ce, clearConfig: le } = TZt({ mcpServerUrl: e.url }), ue = d ?? ee, de = !!d, { getAllModelContexts: fe } = pH(), pe = fe(), me = {
205486
+ })), [e.tools]), { llmConfig: ne, authConfig: re, configDialogOpen: ie, setConfigDialogOpen: ae, tempProvider: oe, setTempProvider: se, tempApiKey: ce, setTempApiKey: le, tempModel: ue, setTempModel: de, saveLLMConfig: fe, clearConfig: pe } = TZt({ mcpServerUrl: e.url }), me = d ?? ne, he = !!d, { getAllModelContexts: ge } = pH(), _e = ge(), ve = {
205422
205487
  connection: e,
205423
- llmConfig: ue,
205488
+ llmConfig: me,
205424
205489
  isConnected: t,
205425
205490
  readResource: s,
205426
- widgetModelContexts: pe,
205427
- disabledTools: N
205428
- }, he = vIt({
205491
+ widgetModelContexts: _e,
205492
+ disabledTools: L
205493
+ }, ye = vIt({
205429
205494
  mcpServerUrl: e.url,
205430
- llmConfig: ue,
205431
- authConfig: te,
205495
+ llmConfig: me,
205496
+ authConfig: re,
205432
205497
  isConnected: t,
205433
205498
  chatApiUrl: c,
205434
205499
  waitForChatApiUrl: l,
205435
- widgetModelContexts: pe,
205436
- initialMessages: u
205437
- }), ge = CZt(me), { messages: _e, isLoading: ve, attachments: ye, sendMessage: be, clearMessages: xe, setMessages: Se, stop: Ce, addAttachment: we, removeAttachment: Te } = n ? ge : he, { filteredPrompts: Ee, setSelectedPrompt: De, selectedPrompt: Oe, setPromptArgs: ke, executePrompt: Ae, results: je, handleDeleteResult: Me, clearPromptResults: Ne } = x0e({
205500
+ widgetModelContexts: _e,
205501
+ initialMessages: u,
205502
+ disabledTools: L,
205503
+ streamProtocol: C,
205504
+ credentials: w,
205505
+ extraHeaders: T,
205506
+ body: E
205507
+ }), be = CZt(ve), { messages: xe, isLoading: Se, attachments: Ce, sendMessage: we, clearMessages: Te, setMessages: Ee, stop: De, addAttachment: Oe, removeAttachment: ke } = n ? be : ye, { filteredPrompts: Ae, setSelectedPrompt: je, selectedPrompt: Me, setPromptArgs: Ne, executePrompt: Pe, results: Fe, handleDeleteResult: Ie, clearPromptResults: Le } = x0e({
205438
205508
  prompts: i,
205439
205509
  callPrompt: o,
205440
205510
  serverId: a
205441
- }), Pe = (0, K.useCallback)((e) => Array.isArray(e) ? e.filter((e) => typeof e == "string").map((e) => e.trim()).filter(Boolean).slice(0, 8) : [], []), Fe = (0, K.useCallback)((e) => typeof e.content == "string" ? e.content : Array.isArray(e.content) ? e.content.map((e) => typeof e == "string" ? e : e.text ?? "").join("") : "", []), Ie = (0, K.useCallback)(() => _e.map((e) => ({
205511
+ }), Re = (0, K.useCallback)((e) => Array.isArray(e) ? e.filter((e) => typeof e == "string").map((e) => e.trim()).filter(Boolean).slice(0, 8) : [], []), ze = (0, K.useCallback)((e) => typeof e.content == "string" ? e.content : Array.isArray(e.content) ? e.content.map((e) => typeof e == "string" ? e : e.text ?? "").join("") : "", []), Be = (0, K.useCallback)(() => xe.map((e) => ({
205442
205512
  id: e.id,
205443
205513
  role: e.role,
205444
- content: Fe(e),
205514
+ content: ze(e),
205445
205515
  timestamp: e.timestamp
205446
- })), [_e, Fe]), Le = (0, K.useCallback)((e, t = {}) => {
205516
+ })), [xe, ze]), Ve = (0, K.useCallback)((e, t = {}) => {
205447
205517
  typeof window > "u" || window.parent === window || window.parent.postMessage({
205448
205518
  type: e,
205449
205519
  serverId: a,
@@ -205451,7 +205521,7 @@ function OZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205451
205521
  }, "*");
205452
205522
  }, [a]);
205453
205523
  (0, K.useEffect)(() => {
205454
- Le("mcp-inspector:chat:ready", { capabilities: {
205524
+ Ve("mcp-inspector:chat:ready", { capabilities: {
205455
205525
  send: !0,
205456
205526
  clear: !0,
205457
205527
  getState: !0,
@@ -205459,28 +205529,28 @@ function OZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205459
205529
  setFollowups: !0,
205460
205530
  loadMessages: !0
205461
205531
  } });
205462
- }, [Le]), (0, K.useEffect)(() => {
205463
- Le("mcp-inspector:chat:state_changed", {
205464
- isLoading: ve,
205465
- messageCount: _e.length,
205466
- messages: Ie(),
205467
- quickQuestions: k,
205468
- followups: j
205532
+ }, [Ve]), (0, K.useEffect)(() => {
205533
+ Ve("mcp-inspector:chat:state_changed", {
205534
+ isLoading: Se,
205535
+ messageCount: xe.length,
205536
+ messages: Be(),
205537
+ quickQuestions: N,
205538
+ followups: F
205469
205539
  });
205470
205540
  }, [
205471
- j,
205472
- Ie,
205473
- ve,
205474
- _e.length,
205475
- Le,
205476
- k
205541
+ F,
205542
+ Be,
205543
+ Se,
205544
+ xe.length,
205545
+ Ve,
205546
+ N
205477
205547
  ]), (0, K.useEffect)(() => {
205478
205548
  let e = (e) => {
205479
205549
  if (!e.data || typeof e.data != "object") return;
205480
205550
  let n = e.data;
205481
205551
  if (!n.type?.startsWith("mcp-inspector:chat:") || n.serverId && n.serverId !== a) return;
205482
205552
  let r = n.requestId, i = (e, t = {}) => {
205483
- Le("mcp-inspector:chat:command_result", {
205553
+ Ve("mcp-inspector:chat:command_result", {
205484
205554
  requestId: r,
205485
205555
  ok: e,
205486
205556
  ...t
@@ -205492,12 +205562,12 @@ function OZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205492
205562
  i(!1, { error: "Missing message" });
205493
205563
  return;
205494
205564
  }
205495
- if (!ue || !t) {
205565
+ if (!me || !t) {
205496
205566
  i(!1, { error: "Chat is not ready to send messages" });
205497
205567
  return;
205498
205568
  }
205499
- be(e, []).then(() => {
205500
- Le("mcp-inspector:chat:message_sent", {
205569
+ we(e, []).then(() => {
205570
+ Ve("mcp-inspector:chat:message_sent", {
205501
205571
  requestId: r,
205502
205572
  message: e,
205503
205573
  source: "bridge"
@@ -205508,28 +205578,28 @@ function OZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205508
205578
  return;
205509
205579
  }
205510
205580
  if (n.type === "mcp-inspector:chat:clear") {
205511
- xe(), Le("mcp-inspector:chat:cleared", { requestId: r }), i(!0);
205581
+ Te(), Ve("mcp-inspector:chat:cleared", { requestId: r }), i(!0);
205512
205582
  return;
205513
205583
  }
205514
205584
  if (n.type === "mcp-inspector:chat:get_state") {
205515
- Le("mcp-inspector:chat:state", {
205585
+ Ve("mcp-inspector:chat:state", {
205516
205586
  requestId: r,
205517
- isLoading: ve,
205518
- messageCount: _e.length,
205519
- messages: Ie(),
205520
- quickQuestions: k,
205521
- followups: j
205587
+ isLoading: Se,
205588
+ messageCount: xe.length,
205589
+ messages: Be(),
205590
+ quickQuestions: N,
205591
+ followups: F
205522
205592
  }), i(!0);
205523
205593
  return;
205524
205594
  }
205525
205595
  if (n.type === "mcp-inspector:chat:set_quick_questions") {
205526
- let e = Pe(n.questions);
205527
- A(e), i(!0, { quickQuestions: e });
205596
+ let e = Re(n.questions);
205597
+ P(e), i(!0, { quickQuestions: e });
205528
205598
  return;
205529
205599
  }
205530
205600
  if (n.type === "mcp-inspector:chat:set_followups") {
205531
- let e = Pe(n.followups);
205532
- M(e), i(!0, { followups: e });
205601
+ let e = Re(n.followups);
205602
+ I(e), i(!0, { followups: e });
205533
205603
  return;
205534
205604
  }
205535
205605
  if (n.type === "mcp-inspector:chat:load_messages") {
@@ -205538,192 +205608,192 @@ function OZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205538
205608
  i(!1, { error: "messages must be an array" });
205539
205609
  return;
205540
205610
  }
205541
- Se(e), i(!0, { count: e.length });
205611
+ Ee(e), i(!0, { count: e.length });
205542
205612
  return;
205543
205613
  }
205544
205614
  };
205545
205615
  return window.addEventListener("message", e), () => window.removeEventListener("message", e);
205546
205616
  }, [
205547
- xe,
205617
+ Te,
205618
+ Ee,
205619
+ F,
205620
+ Be,
205548
205621
  Se,
205549
- j,
205550
- Ie,
205551
- ve,
205552
- _e.length,
205553
- Le,
205554
- k,
205555
- Pe,
205556
- be,
205622
+ xe.length,
205623
+ Ve,
205624
+ N,
205625
+ Re,
205626
+ we,
205557
205627
  a,
205558
- ue,
205628
+ me,
205559
205629
  t
205560
- ]), x1e(r ? { onNewChat: xe } : {});
205561
- let Re = (0, K.useCallback)(() => {
205562
- O(-1), E(!1), I.current = null;
205563
- }, []), ze = (0, K.useCallback)(() => {
205564
- if (!F.current) return;
205565
- let e = F.current.selectionStart, t = C.slice(0, e), n = EZt.test(t);
205566
- E(n), n ? (I.current = {
205630
+ ]), x1e(r ? { onNewChat: Te } : {});
205631
+ let He = (0, K.useCallback)(() => {
205632
+ M(-1), A(!1), R.current = null;
205633
+ }, []), Ue = (0, K.useCallback)(() => {
205634
+ if (!te.current) return;
205635
+ let e = te.current.selectionStart, t = D.slice(0, e), n = EZt.test(t);
205636
+ A(n), n ? (R.current = {
205567
205637
  start: e - 1,
205568
205638
  end: e
205569
- }, O(0)) : Re();
205570
- }, [C, Re]);
205639
+ }, M(0)) : He();
205640
+ }, [D, He]);
205571
205641
  (0, K.useEffect)(() => {
205572
- ue && _e.length === 0 && F.current && F.current.focus();
205573
- }, [ue, _e.length]), (0, K.useEffect)(() => {
205574
- !ve && _e.length > 0 && F.current && F.current.focus();
205575
- }, [ve, _e.length]), (0, K.useEffect)(() => {
205576
- F.current && ze();
205577
- }, [C, ze]);
205578
- let Be = (0, K.useCallback)(() => {
205579
- De(null), ke({}), Re();
205580
- }, [Re]), Ve = (0, K.useCallback)(async (e) => {
205581
- if (De(e), e.arguments && e.arguments.length > 0) {
205582
- De(null), iF.error("Prompts with arguments are not supported", { description: "This prompt requires arguments which are not yet supported in chat mode." });
205642
+ me && xe.length === 0 && te.current && te.current.focus();
205643
+ }, [me, xe.length]), (0, K.useEffect)(() => {
205644
+ !Se && xe.length > 0 && te.current && te.current.focus();
205645
+ }, [Se, xe.length]), (0, K.useEffect)(() => {
205646
+ te.current && Ue();
205647
+ }, [D, Ue]);
205648
+ let We = (0, K.useCallback)(() => {
205649
+ je(null), Ne({}), He();
205650
+ }, [He]), B = (0, K.useCallback)(async (e) => {
205651
+ if (je(e), e.arguments && e.arguments.length > 0) {
205652
+ je(null), iF.error("Prompts with arguments are not supported", { description: "This prompt requires arguments which are not yet supported in chat mode." });
205583
205653
  return;
205584
205654
  }
205585
205655
  try {
205586
- await Ae(e, {});
205656
+ await Pe(e, {});
205587
205657
  } catch (e) {
205588
205658
  console.error("Error executing prompt", e);
205589
205659
  } finally {
205590
- if (F.current && I.current) {
205591
- let { start: e, end: t } = I.current;
205592
- w(C.slice(0, e) + C.slice(t)), requestAnimationFrame(() => {
205593
- F.current?.focus(), F.current?.setSelectionRange(e, e);
205660
+ if (te.current && R.current) {
205661
+ let { start: e, end: t } = R.current;
205662
+ O(D.slice(0, e) + D.slice(t)), requestAnimationFrame(() => {
205663
+ te.current?.focus(), te.current?.setSelectionRange(e, e);
205594
205664
  });
205595
205665
  }
205596
- Be();
205666
+ We();
205597
205667
  }
205598
205668
  }, [
205599
- Ae,
205600
- Be,
205601
- C
205602
- ]), He = (0, K.useCallback)(() => {
205603
- (C.trim() || je.length > 0 || ye.length > 0) && (be(C, je), w(""), Ne());
205669
+ Pe,
205670
+ We,
205671
+ D
205672
+ ]), Ge = (0, K.useCallback)(() => {
205673
+ (D.trim() || Fe.length > 0 || Ce.length > 0) && (we(D, Fe), O(""), Le());
205604
205674
  }, [
205605
- C,
205606
- je,
205607
- be,
205608
- Ne,
205609
- ye
205610
- ]), Ue = (0, K.useCallback)((e) => {
205611
- if (e.key === "ArrowDown") O((e) => Ee.length === 0 ? -1 : (e + 1) % Ee.length);
205612
- else if (e.key === "ArrowUp") O((e) => Ee.length === 0 ? -1 : (e - 1 + Ee.length) % Ee.length);
205613
- else if (e.key === "Escape") e.stopPropagation(), Re();
205614
- else if (e.key === "Enter" && D >= 0) {
205615
- let e = Ee[D];
205616
- e && Ve(e);
205675
+ D,
205676
+ Fe,
205677
+ we,
205678
+ Le,
205679
+ Ce
205680
+ ]), Ke = (0, K.useCallback)((e) => {
205681
+ if (e.key === "ArrowDown") M((e) => Ae.length === 0 ? -1 : (e + 1) % Ae.length);
205682
+ else if (e.key === "ArrowUp") M((e) => Ae.length === 0 ? -1 : (e - 1 + Ae.length) % Ae.length);
205683
+ else if (e.key === "Escape") e.stopPropagation(), He();
205684
+ else if (e.key === "Enter" && j >= 0) {
205685
+ let e = Ae[j];
205686
+ e && B(e);
205617
205687
  }
205618
205688
  }, [
205619
- Ee,
205620
- D,
205621
- Ve,
205622
- Re
205623
- ]), We = (0, K.useCallback)((e) => {
205624
- DZt.includes(e.key) && T ? (e.preventDefault(), Ue(e)) : e.key === "Enter" && !e.shiftKey && (e.preventDefault(), He());
205689
+ Ae,
205690
+ j,
205691
+ B,
205692
+ He
205693
+ ]), qe = (0, K.useCallback)((e) => {
205694
+ DZt.includes(e.key) && k ? (e.preventDefault(), Ke(e)) : e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Ge());
205625
205695
  }, [
205626
- He,
205627
- Ue,
205628
- T
205629
- ]), B = (0, K.useCallback)((e) => {
205630
- (e.key === "ArrowLeft" || e.key === "ArrowRight") && ze();
205631
- }, [ze]), Ge = (0, K.useCallback)(() => {
205632
- le(), xe();
205633
- }, [le, xe]), Ke = (0, K.useCallback)((e) => {
205634
- e.trim() && (!ue || !t || be(e, []).then(() => {
205635
- Le("mcp-inspector:chat:message_sent", {
205696
+ Ge,
205697
+ Ke,
205698
+ k
205699
+ ]), Je = (0, K.useCallback)((e) => {
205700
+ (e.key === "ArrowLeft" || e.key === "ArrowRight") && Ue();
205701
+ }, [Ue]), Ye = (0, K.useCallback)(() => {
205702
+ pe(), Te();
205703
+ }, [pe, Te]), Xe = (0, K.useCallback)((e) => {
205704
+ e.trim() && (!me || !t || we(e, []).then(() => {
205705
+ Ve("mcp-inspector:chat:message_sent", {
205636
205706
  message: e,
205637
205707
  source: "quick_question"
205638
205708
  });
205639
205709
  }));
205640
205710
  }, [
205641
- Le,
205642
- be,
205643
- ue,
205711
+ Ve,
205712
+ we,
205713
+ me,
205644
205714
  t
205645
- ]), qe = (0, K.useCallback)((e) => {
205646
- e.trim() && (!ue || !t || be(e, []).then(() => {
205647
- Le("mcp-inspector:chat:message_sent", {
205715
+ ]), Ze = (0, K.useCallback)((e) => {
205716
+ e.trim() && (!me || !t || we(e, []).then(() => {
205717
+ Ve("mcp-inspector:chat:message_sent", {
205648
205718
  message: e,
205649
205719
  source: "followup"
205650
205720
  });
205651
205721
  }));
205652
205722
  }, [
205653
- Le,
205654
- be,
205655
- ue,
205723
+ Ve,
205724
+ we,
205725
+ me,
205656
205726
  t
205657
205727
  ]);
205658
- return ue && _e.length === 0 ? /* @__PURE__ */ (0, q.jsxs)("div", {
205728
+ return me && xe.length === 0 ? /* @__PURE__ */ (0, q.jsxs)("div", {
205659
205729
  className: "flex flex-col h-full",
205660
- children: [!de && /* @__PURE__ */ (0, q.jsx)("div", {
205730
+ children: [!he && /* @__PURE__ */ (0, q.jsx)("div", {
205661
205731
  className: "absolute top-4 right-4 z-10",
205662
205732
  children: /* @__PURE__ */ (0, q.jsx)(e2e, {
205663
- open: R,
205664
- onOpenChange: z,
205665
- tempProvider: ne,
205666
- tempModel: oe,
205667
- tempApiKey: ie,
205668
- onProviderChange: re,
205669
- onModelChange: se,
205670
- onApiKeyChange: ae,
205671
- onSave: ce,
205672
- onClear: Ge,
205733
+ open: ie,
205734
+ onOpenChange: ae,
205735
+ tempProvider: oe,
205736
+ tempModel: ue,
205737
+ tempApiKey: ce,
205738
+ onProviderChange: se,
205739
+ onModelChange: de,
205740
+ onApiKeyChange: le,
205741
+ onSave: fe,
205742
+ onClear: Ye,
205673
205743
  showClearButton: !0,
205674
205744
  buttonLabel: "Change API Key"
205675
205745
  })
205676
205746
  }), /* @__PURE__ */ (0, q.jsx)(A2e, {
205677
205747
  mcpServerUrl: e.url,
205678
- inputValue: C,
205748
+ inputValue: D,
205679
205749
  isConnected: t,
205680
- isLoading: ve,
205681
- textareaRef: F,
205682
- llmConfig: ue,
205683
- promptsDropdownOpen: T,
205684
- promptFocusedIndex: D,
205685
- prompts: Ee,
205686
- selectedPrompt: Oe,
205687
- promptResults: je,
205688
- attachments: ye,
205689
- tools: b ? void 0 : L,
205690
- disabledTools: b ? void 0 : N,
205691
- onDisabledToolsChange: b ? void 0 : P,
205692
- onDeletePromptResult: Me,
205693
- onPromptSelect: Ve,
205694
- onInputChange: w,
205695
- onKeyDown: We,
205696
- onKeyUp: B,
205697
- onClick: ze,
205750
+ isLoading: Se,
205751
+ textareaRef: te,
205752
+ llmConfig: me,
205753
+ promptsDropdownOpen: k,
205754
+ promptFocusedIndex: j,
205755
+ prompts: Ae,
205756
+ selectedPrompt: Me,
205757
+ promptResults: Fe,
205758
+ attachments: Ce,
205759
+ tools: b ? void 0 : z,
205760
+ disabledTools: b ? void 0 : L,
205761
+ onDisabledToolsChange: b ? void 0 : ee,
205762
+ onDeletePromptResult: Ie,
205763
+ onPromptSelect: B,
205764
+ onInputChange: O,
205765
+ onKeyDown: qe,
205766
+ onKeyUp: Je,
205767
+ onClick: Ue,
205698
205768
  onSubmit: (e) => {
205699
- e.preventDefault(), He();
205769
+ e.preventDefault(), Ge();
205700
205770
  },
205701
- onConfigDialogOpenChange: z,
205702
- onAttachmentAdd: we,
205703
- onAttachmentRemove: Te,
205771
+ onConfigDialogOpenChange: ae,
205772
+ onAttachmentAdd: Oe,
205773
+ onAttachmentRemove: ke,
205704
205774
  hideModelBadge: m,
205705
205775
  hideServerUrl: h,
205706
- quickQuestions: k,
205707
- onQuickQuestionSelect: Ke
205776
+ quickQuestions: N,
205777
+ onQuickQuestionSelect: Xe
205708
205778
  })]
205709
205779
  }) : /* @__PURE__ */ (0, q.jsxs)("div", {
205710
205780
  className: "flex flex-col h-full relative",
205711
205781
  children: [
205712
205782
  /* @__PURE__ */ (0, q.jsx)(t2e, {
205713
- llmConfig: ue,
205714
- hasMessages: _e.length > 0,
205715
- configDialogOpen: de ? !1 : R,
205716
- onConfigDialogOpenChange: de ? () => {} : z,
205717
- onClearChat: xe,
205718
- tempProvider: ne,
205719
- tempModel: oe,
205720
- tempApiKey: ie,
205721
- onProviderChange: re,
205722
- onModelChange: se,
205723
- onApiKeyChange: ae,
205724
- onSaveConfig: ce,
205725
- onClearConfig: Ge,
205726
- hideConfigButton: de,
205783
+ llmConfig: me,
205784
+ hasMessages: xe.length > 0,
205785
+ configDialogOpen: he ? !1 : ie,
205786
+ onConfigDialogOpenChange: he ? () => {} : ae,
205787
+ onClearChat: Te,
205788
+ tempProvider: oe,
205789
+ tempModel: ue,
205790
+ tempApiKey: ce,
205791
+ onProviderChange: se,
205792
+ onModelChange: de,
205793
+ onApiKeyChange: le,
205794
+ onSaveConfig: fe,
205795
+ onClearConfig: Ye,
205796
+ hideConfigButton: he,
205727
205797
  clearButtonLabel: f,
205728
205798
  hideTitle: p,
205729
205799
  clearButtonHideIcon: g,
@@ -205733,42 +205803,42 @@ function OZt({ connection: e, isConnected: t, useClientSide: n = !0, enableKeybo
205733
205803
  }),
205734
205804
  /* @__PURE__ */ (0, q.jsx)("div", {
205735
205805
  className: "flex-1 overflow-y-auto p-2 sm:p-4 pt-[80px] sm:pt-[100px]",
205736
- children: ue ? /* @__PURE__ */ (0, q.jsx)(pIt, {
205737
- messages: _e,
205738
- isLoading: ve,
205806
+ children: me ? /* @__PURE__ */ (0, q.jsx)(pIt, {
205807
+ messages: xe,
205808
+ isLoading: Se,
205739
205809
  serverId: e.url,
205740
205810
  readResource: s,
205741
205811
  tools: e.tools,
205742
- sendMessage: (e, t) => be(e, [], t),
205812
+ sendMessage: (e, t) => we(e, [], t),
205743
205813
  serverBaseUrl: e.url
205744
- }) : /* @__PURE__ */ (0, q.jsx)(j2e, { onConfigureClick: () => z(!0) })
205814
+ }) : /* @__PURE__ */ (0, q.jsx)(j2e, { onConfigureClick: () => ae(!0) })
205745
205815
  }),
205746
- ue && /* @__PURE__ */ (0, q.jsx)(O2e, {
205747
- inputValue: C,
205816
+ me && /* @__PURE__ */ (0, q.jsx)(O2e, {
205817
+ inputValue: D,
205748
205818
  isConnected: t,
205749
- isLoading: ve,
205750
- textareaRef: F,
205751
- promptsDropdownOpen: T,
205752
- promptFocusedIndex: D,
205753
- prompts: Ee,
205754
- promptResults: je,
205755
- selectedPrompt: Oe,
205756
- attachments: ye,
205757
- tools: b ? void 0 : L,
205758
- disabledTools: b ? void 0 : N,
205759
- onDisabledToolsChange: b ? void 0 : P,
205760
- onDeletePromptResult: Me,
205761
- onPromptSelect: Ve,
205762
- onInputChange: w,
205763
- onKeyDown: We,
205764
- onKeyUp: B,
205765
- onClick: ze,
205766
- onSendMessage: He,
205767
- onStopStreaming: Ce,
205768
- onAttachmentAdd: we,
205769
- onAttachmentRemove: Te,
205770
- followups: j,
205771
- onFollowupSelect: qe
205819
+ isLoading: Se,
205820
+ textareaRef: te,
205821
+ promptsDropdownOpen: k,
205822
+ promptFocusedIndex: j,
205823
+ prompts: Ae,
205824
+ promptResults: Fe,
205825
+ selectedPrompt: Me,
205826
+ attachments: Ce,
205827
+ tools: b ? void 0 : z,
205828
+ disabledTools: b ? void 0 : L,
205829
+ onDisabledToolsChange: b ? void 0 : ee,
205830
+ onDeletePromptResult: Ie,
205831
+ onPromptSelect: B,
205832
+ onInputChange: O,
205833
+ onKeyDown: qe,
205834
+ onKeyUp: Je,
205835
+ onClick: Ue,
205836
+ onSendMessage: Ge,
205837
+ onStopStreaming: De,
205838
+ onAttachmentAdd: Oe,
205839
+ onAttachmentRemove: ke,
205840
+ followups: F,
205841
+ onFollowupSelect: Ze
205772
205842
  })
205773
205843
  ]
205774
205844
  });