@copilotkitnext/react 0.0.13 → 0.0.14

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.d.mts CHANGED
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { ReactNode } from 'react';
4
4
  import { AssistantMessage, Message, UserMessage, ToolCall, ToolMessage } from '@ag-ui/core';
5
+ import { Streamdown } from 'streamdown';
5
6
  import { Suggestion, CopilotKitCore, ToolCallStatus, FrontendTool, DynamicSuggestionsConfig, StaticSuggestionsConfig, CopilotKitCoreConfig, CopilotKitCoreSubscriber } from '@copilotkitnext/core';
6
7
  import { z } from 'zod';
7
8
  import * as _lit_labs_react from '@lit-labs/react';
@@ -152,7 +153,7 @@ type CopilotChatAssistantMessageProps = WithSlots<{
152
153
  } & React.HTMLAttributes<HTMLDivElement>>;
153
154
  declare function CopilotChatAssistantMessage({ message, messages, isRunning, onThumbsUp, onThumbsDown, onReadAloud, onRegenerate, additionalToolbarItems, toolbarVisible, markdownRenderer, toolbar, copyButton, thumbsUpButton, thumbsDownButton, readAloudButton, regenerateButton, toolCallsView, children, className, ...props }: CopilotChatAssistantMessageProps): react_jsx_runtime.JSX.Element;
154
155
  declare namespace CopilotChatAssistantMessage {
155
- const MarkdownRenderer: React.FC<React.HTMLAttributes<HTMLDivElement> & {
156
+ const MarkdownRenderer: React.FC<Omit<React.ComponentProps<typeof Streamdown>, "children"> & {
156
157
  content: string;
157
158
  }>;
158
159
  const Toolbar: React.FC<React.HTMLAttributes<HTMLDivElement>>;
@@ -363,12 +364,12 @@ declare namespace CopilotSidebar {
363
364
 
364
365
  declare const WildcardToolCallRender: ReactToolCallRenderer<any>;
365
366
 
366
- declare const WebInspectorBase: _lit_labs_react.ReactWebComponent<WebInspectorElement, {}>;
367
- type WebInspectorBaseProps = React$1.ComponentProps<typeof WebInspectorBase>;
368
- interface WebInspectorProps extends Omit<WebInspectorBaseProps, "core"> {
367
+ declare const CopilotKitInspectorBase: _lit_labs_react.ReactWebComponent<WebInspectorElement, {}>;
368
+ type CopilotKitInspectorBaseProps = React$1.ComponentProps<typeof CopilotKitInspectorBase>;
369
+ interface CopilotKitInspectorProps extends Omit<CopilotKitInspectorBaseProps, "core"> {
369
370
  core?: CopilotKitCore | null;
370
371
  }
371
- declare const WebInspector: React$1.ForwardRefExoticComponent<Omit<WebInspectorProps, "ref"> & React$1.RefAttributes<WebInspectorElement>>;
372
+ declare const CopilotKitInspector: React$1.ForwardRefExoticComponent<Omit<CopilotKitInspectorProps, "ref"> & React$1.RefAttributes<WebInspectorElement>>;
372
373
 
373
374
  interface UseRenderToolCallProps {
374
375
  toolCall: ToolCall;
@@ -572,4 +573,4 @@ interface CopilotKitProviderProps {
572
573
  declare const CopilotKitProvider: React__default.FC<CopilotKitProviderProps>;
573
574
  declare const useCopilotKit: () => CopilotKitContextValue;
574
575
 
575
- export { AudioRecorderError, type AudioRecorderState, CopilotChat, CopilotChatAssistantMessage, type CopilotChatAssistantMessageProps, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatInput, type CopilotChatInputProps, type CopilotChatLabels, CopilotChatMessageView, type CopilotChatMessageViewProps, type CopilotChatProps, CopilotChatSuggestionPill, type CopilotChatSuggestionPillProps, CopilotChatSuggestionView, type CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, type CopilotChatToggleButtonProps, CopilotChatToolCallsView, type CopilotChatToolCallsViewProps, CopilotChatUserMessage, type CopilotChatUserMessageProps, CopilotChatView, type CopilotChatViewProps, type CopilotKitContextValue, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type CopilotKitCoreReactSubscriber, CopilotKitProvider, type CopilotKitProviderProps, CopilotModalHeader, type CopilotModalHeaderProps, CopilotSidebar, type CopilotSidebarProps, CopilotSidebarView, type CopilotSidebarViewProps, type ReactCustomMessageRenderer, type ReactCustomMessageRendererPosition, type ReactFrontendTool, type ReactHumanInTheLoop, type ReactToolCallRenderer, type ToolsMenuItem, WebInspector, type WebInspectorBaseProps, type WebInspectorProps, WildcardToolCallRender, defineToolCallRenderer, useAgent, useAgentContext, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useHumanInTheLoop, useRenderCustomMessages, useRenderToolCall, useSuggestions };
576
+ export { AudioRecorderError, type AudioRecorderState, CopilotChat, CopilotChatAssistantMessage, type CopilotChatAssistantMessageProps, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatInput, type CopilotChatInputProps, type CopilotChatLabels, CopilotChatMessageView, type CopilotChatMessageViewProps, type CopilotChatProps, CopilotChatSuggestionPill, type CopilotChatSuggestionPillProps, CopilotChatSuggestionView, type CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, type CopilotChatToggleButtonProps, CopilotChatToolCallsView, type CopilotChatToolCallsViewProps, CopilotChatUserMessage, type CopilotChatUserMessageProps, CopilotChatView, type CopilotChatViewProps, type CopilotKitContextValue, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type CopilotKitCoreReactSubscriber, CopilotKitInspector, type CopilotKitInspectorBaseProps, type CopilotKitInspectorProps, CopilotKitProvider, type CopilotKitProviderProps, CopilotModalHeader, type CopilotModalHeaderProps, CopilotSidebar, type CopilotSidebarProps, CopilotSidebarView, type CopilotSidebarViewProps, type ReactCustomMessageRenderer, type ReactCustomMessageRendererPosition, type ReactFrontendTool, type ReactHumanInTheLoop, type ReactToolCallRenderer, type ToolsMenuItem, WildcardToolCallRender, defineToolCallRenderer, useAgent, useAgentContext, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useHumanInTheLoop, useRenderCustomMessages, useRenderToolCall, useSuggestions };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { ReactNode } from 'react';
4
4
  import { AssistantMessage, Message, UserMessage, ToolCall, ToolMessage } from '@ag-ui/core';
5
+ import { Streamdown } from 'streamdown';
5
6
  import { Suggestion, CopilotKitCore, ToolCallStatus, FrontendTool, DynamicSuggestionsConfig, StaticSuggestionsConfig, CopilotKitCoreConfig, CopilotKitCoreSubscriber } from '@copilotkitnext/core';
6
7
  import { z } from 'zod';
7
8
  import * as _lit_labs_react from '@lit-labs/react';
@@ -152,7 +153,7 @@ type CopilotChatAssistantMessageProps = WithSlots<{
152
153
  } & React.HTMLAttributes<HTMLDivElement>>;
153
154
  declare function CopilotChatAssistantMessage({ message, messages, isRunning, onThumbsUp, onThumbsDown, onReadAloud, onRegenerate, additionalToolbarItems, toolbarVisible, markdownRenderer, toolbar, copyButton, thumbsUpButton, thumbsDownButton, readAloudButton, regenerateButton, toolCallsView, children, className, ...props }: CopilotChatAssistantMessageProps): react_jsx_runtime.JSX.Element;
154
155
  declare namespace CopilotChatAssistantMessage {
155
- const MarkdownRenderer: React.FC<React.HTMLAttributes<HTMLDivElement> & {
156
+ const MarkdownRenderer: React.FC<Omit<React.ComponentProps<typeof Streamdown>, "children"> & {
156
157
  content: string;
157
158
  }>;
158
159
  const Toolbar: React.FC<React.HTMLAttributes<HTMLDivElement>>;
@@ -363,12 +364,12 @@ declare namespace CopilotSidebar {
363
364
 
364
365
  declare const WildcardToolCallRender: ReactToolCallRenderer<any>;
365
366
 
366
- declare const WebInspectorBase: _lit_labs_react.ReactWebComponent<WebInspectorElement, {}>;
367
- type WebInspectorBaseProps = React$1.ComponentProps<typeof WebInspectorBase>;
368
- interface WebInspectorProps extends Omit<WebInspectorBaseProps, "core"> {
367
+ declare const CopilotKitInspectorBase: _lit_labs_react.ReactWebComponent<WebInspectorElement, {}>;
368
+ type CopilotKitInspectorBaseProps = React$1.ComponentProps<typeof CopilotKitInspectorBase>;
369
+ interface CopilotKitInspectorProps extends Omit<CopilotKitInspectorBaseProps, "core"> {
369
370
  core?: CopilotKitCore | null;
370
371
  }
371
- declare const WebInspector: React$1.ForwardRefExoticComponent<Omit<WebInspectorProps, "ref"> & React$1.RefAttributes<WebInspectorElement>>;
372
+ declare const CopilotKitInspector: React$1.ForwardRefExoticComponent<Omit<CopilotKitInspectorProps, "ref"> & React$1.RefAttributes<WebInspectorElement>>;
372
373
 
373
374
  interface UseRenderToolCallProps {
374
375
  toolCall: ToolCall;
@@ -572,4 +573,4 @@ interface CopilotKitProviderProps {
572
573
  declare const CopilotKitProvider: React__default.FC<CopilotKitProviderProps>;
573
574
  declare const useCopilotKit: () => CopilotKitContextValue;
574
575
 
575
- export { AudioRecorderError, type AudioRecorderState, CopilotChat, CopilotChatAssistantMessage, type CopilotChatAssistantMessageProps, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatInput, type CopilotChatInputProps, type CopilotChatLabels, CopilotChatMessageView, type CopilotChatMessageViewProps, type CopilotChatProps, CopilotChatSuggestionPill, type CopilotChatSuggestionPillProps, CopilotChatSuggestionView, type CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, type CopilotChatToggleButtonProps, CopilotChatToolCallsView, type CopilotChatToolCallsViewProps, CopilotChatUserMessage, type CopilotChatUserMessageProps, CopilotChatView, type CopilotChatViewProps, type CopilotKitContextValue, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type CopilotKitCoreReactSubscriber, CopilotKitProvider, type CopilotKitProviderProps, CopilotModalHeader, type CopilotModalHeaderProps, CopilotSidebar, type CopilotSidebarProps, CopilotSidebarView, type CopilotSidebarViewProps, type ReactCustomMessageRenderer, type ReactCustomMessageRendererPosition, type ReactFrontendTool, type ReactHumanInTheLoop, type ReactToolCallRenderer, type ToolsMenuItem, WebInspector, type WebInspectorBaseProps, type WebInspectorProps, WildcardToolCallRender, defineToolCallRenderer, useAgent, useAgentContext, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useHumanInTheLoop, useRenderCustomMessages, useRenderToolCall, useSuggestions };
576
+ export { AudioRecorderError, type AudioRecorderState, CopilotChat, CopilotChatAssistantMessage, type CopilotChatAssistantMessageProps, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatInput, type CopilotChatInputProps, type CopilotChatLabels, CopilotChatMessageView, type CopilotChatMessageViewProps, type CopilotChatProps, CopilotChatSuggestionPill, type CopilotChatSuggestionPillProps, CopilotChatSuggestionView, type CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, type CopilotChatToggleButtonProps, CopilotChatToolCallsView, type CopilotChatToolCallsViewProps, CopilotChatUserMessage, type CopilotChatUserMessageProps, CopilotChatView, type CopilotChatViewProps, type CopilotKitContextValue, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type CopilotKitCoreReactSubscriber, CopilotKitInspector, type CopilotKitInspectorBaseProps, type CopilotKitInspectorProps, CopilotKitProvider, type CopilotKitProviderProps, CopilotModalHeader, type CopilotModalHeaderProps, CopilotSidebar, type CopilotSidebarProps, CopilotSidebarView, type CopilotSidebarViewProps, type ReactCustomMessageRenderer, type ReactCustomMessageRendererPosition, type ReactFrontendTool, type ReactHumanInTheLoop, type ReactToolCallRenderer, type ToolsMenuItem, WildcardToolCallRender, defineToolCallRenderer, useAgent, useAgentContext, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useHumanInTheLoop, useRenderCustomMessages, useRenderToolCall, useSuggestions };
package/dist/index.js CHANGED
@@ -47,11 +47,11 @@ __export(index_exports, {
47
47
  CopilotChatUserMessage: () => CopilotChatUserMessage_default,
48
48
  CopilotChatView: () => CopilotChatView_default,
49
49
  CopilotKitCoreReact: () => CopilotKitCoreReact,
50
+ CopilotKitInspector: () => CopilotKitInspector,
50
51
  CopilotKitProvider: () => CopilotKitProvider,
51
52
  CopilotModalHeader: () => CopilotModalHeader,
52
53
  CopilotSidebar: () => CopilotSidebar,
53
54
  CopilotSidebarView: () => CopilotSidebarView,
54
- WebInspector: () => WebInspector,
55
55
  WildcardToolCallRender: () => WildcardToolCallRender,
56
56
  defineToolCallRenderer: () => defineToolCallRenderer,
57
57
  useAgent: () => useAgent,
@@ -949,16 +949,11 @@ CopilotChatInput.Toolbar.displayName = "CopilotChatInput.Toolbar";
949
949
  var CopilotChatInput_default = CopilotChatInput;
950
950
 
951
951
  // src/components/chat/CopilotChatAssistantMessage.tsx
952
- var import_react_markdown = require("react-markdown");
953
- var import_remark_gfm = __toESM(require("remark-gfm"));
954
- var import_remark_math = __toESM(require("remark-math"));
955
- var import_rehype_pretty_code = __toESM(require("rehype-pretty-code"));
956
- var import_rehype_katex = __toESM(require("rehype-katex"));
957
952
  var import_react16 = require("react");
958
953
  var import_lucide_react3 = require("lucide-react");
959
954
  var import_tailwind_merge4 = require("tailwind-merge");
960
955
  var import_katex_min = require("katex/dist/katex.min.css");
961
- var import_core3 = require("@copilotkitnext/core");
956
+ var import_streamdown = require("streamdown");
962
957
 
963
958
  // src/hooks/use-render-tool-call.tsx
964
959
  var import_react7 = require("react");
@@ -1008,18 +1003,18 @@ var CopilotKitCoreReact = class extends import_core.CopilotKitCore {
1008
1003
  }
1009
1004
  };
1010
1005
 
1011
- // src/components/WebInspector.tsx
1006
+ // src/components/CopilotKitInspector.tsx
1012
1007
  var React4 = __toESM(require("react"));
1013
1008
  var import_react5 = require("@lit-labs/react");
1014
1009
  var import_web_inspector = require("@copilotkitnext/web-inspector");
1015
1010
  var import_jsx_runtime7 = require("react/jsx-runtime");
1016
1011
  (0, import_web_inspector.defineWebInspector)();
1017
- var WebInspectorBase = (0, import_react5.createComponent)({
1012
+ var CopilotKitInspectorBase = (0, import_react5.createComponent)({
1018
1013
  tagName: import_web_inspector.WEB_INSPECTOR_TAG,
1019
1014
  elementClass: import_web_inspector.WebInspectorElement,
1020
1015
  react: React4
1021
1016
  });
1022
- var WebInspector = React4.forwardRef(
1017
+ var CopilotKitInspector = React4.forwardRef(
1023
1018
  ({ core, ...rest }, ref) => {
1024
1019
  const innerRef = React4.useRef(null);
1025
1020
  React4.useImperativeHandle(ref, () => innerRef.current, []);
@@ -1028,10 +1023,16 @@ var WebInspector = React4.forwardRef(
1028
1023
  innerRef.current.core = core ?? null;
1029
1024
  }
1030
1025
  }, [core]);
1031
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(WebInspectorBase, { ...rest, ref: innerRef });
1026
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1027
+ CopilotKitInspectorBase,
1028
+ {
1029
+ ...rest,
1030
+ ref: innerRef
1031
+ }
1032
+ );
1032
1033
  }
1033
1034
  );
1034
- WebInspector.displayName = "WebInspector";
1035
+ CopilotKitInspector.displayName = "CopilotKitInspector";
1035
1036
 
1036
1037
  // src/providers/CopilotKitProvider.tsx
1037
1038
  var import_jsx_runtime8 = require("react/jsx-runtime");
@@ -1193,7 +1194,7 @@ var CopilotKitProvider = ({
1193
1194
  },
1194
1195
  children: [
1195
1196
  children,
1196
- shouldRenderInspector ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(WebInspector, { core: copilotkit }) : null
1197
+ shouldRenderInspector ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CopilotKitInspector, { core: copilotkit }) : null
1197
1198
  ]
1198
1199
  }
1199
1200
  );
@@ -1898,105 +1899,7 @@ function CopilotChatAssistantMessage({
1898
1899
  );
1899
1900
  }
1900
1901
  ((CopilotChatAssistantMessage2) => {
1901
- const InlineCode = ({
1902
- children,
1903
- ...props
1904
- }) => {
1905
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1906
- "code",
1907
- {
1908
- className: "px-[4.8px] py-[2.5px] bg-[rgb(236,236,236)] dark:bg-gray-800 rounded text-sm font-mono font-medium! text-foreground!",
1909
- ...props,
1910
- children
1911
- }
1912
- );
1913
- };
1914
- const CodeBlock = ({ children, className, onClick, ...props }) => {
1915
- const config = useCopilotChatConfiguration();
1916
- const labels = config?.labels ?? CopilotChatDefaultLabels;
1917
- const [copied, setCopied] = (0, import_react16.useState)(false);
1918
- const getCodeContent = (node) => {
1919
- if (typeof node === "string") return node;
1920
- if (Array.isArray(node)) return node.map(getCodeContent).join("");
1921
- if (node?.props?.children) return getCodeContent(node.props.children);
1922
- return "";
1923
- };
1924
- const codeContent = getCodeContent(children);
1925
- const language = props["data-language"];
1926
- const copyToClipboard = async () => {
1927
- if (!codeContent.trim()) return;
1928
- try {
1929
- setCopied(true);
1930
- setTimeout(() => setCopied(false), 2e3);
1931
- if (onClick) {
1932
- onClick();
1933
- }
1934
- } catch (err) {
1935
- console.error("Failed to copy code:", err);
1936
- }
1937
- };
1938
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "relative", children: [
1939
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center justify-between px-4 pr-3 py-3 text-xs", children: [
1940
- language && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "font-regular text-muted-foreground dark:text-white", children: language }),
1941
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1942
- "button",
1943
- {
1944
- className: cn(
1945
- "px-2 gap-0.5 text-xs flex items-center cursor-pointer text-muted-foreground dark:text-white"
1946
- ),
1947
- onClick: copyToClipboard,
1948
- title: copied ? labels.assistantMessageToolbarCopyCodeCopiedLabel : `${labels.assistantMessageToolbarCopyCodeLabel} code`,
1949
- children: [
1950
- copied ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react3.Check, { className: "h-[10px]! w-[10px]!" }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react3.Copy, { className: "h-[10px]! w-[10px]!" }),
1951
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-[11px]", children: copied ? labels.assistantMessageToolbarCopyCodeCopiedLabel : labels.assistantMessageToolbarCopyCodeLabel })
1952
- ]
1953
- }
1954
- )
1955
- ] }),
1956
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1957
- "pre",
1958
- {
1959
- className: cn(
1960
- className,
1961
- "rounded-2xl bg-transparent border-t-0 my-1!"
1962
- ),
1963
- ...props,
1964
- children
1965
- }
1966
- )
1967
- ] });
1968
- };
1969
- CopilotChatAssistantMessage2.MarkdownRenderer = ({ content, className }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1970
- import_react_markdown.MarkdownHooks,
1971
- {
1972
- remarkPlugins: [import_remark_gfm.default, import_remark_math.default],
1973
- rehypePlugins: [
1974
- [
1975
- import_rehype_pretty_code.default,
1976
- {
1977
- keepBackground: false,
1978
- theme: {
1979
- dark: "one-dark-pro",
1980
- light: "one-light"
1981
- },
1982
- bypassInlineCode: true
1983
- }
1984
- ],
1985
- import_rehype_katex.default
1986
- ],
1987
- components: {
1988
- pre: CodeBlock,
1989
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1990
- code: ({ className: className2, children, ...props }) => {
1991
- if (typeof children === "string") {
1992
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(InlineCode, { ...props, children });
1993
- }
1994
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("code", { className: className2, ...props, children });
1995
- }
1996
- },
1997
- children: (0, import_core3.completePartialMarkdown)(content || "")
1998
- }
1999
- ) });
1902
+ CopilotChatAssistantMessage2.MarkdownRenderer = ({ content, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_streamdown.Streamdown, { className, ...props, children: content ?? "" });
2000
1903
  CopilotChatAssistantMessage2.Toolbar = ({
2001
1904
  className,
2002
1905
  ...props
@@ -3307,11 +3210,11 @@ var WildcardToolCallRender = defineToolCallRenderer({
3307
3210
  CopilotChatUserMessage,
3308
3211
  CopilotChatView,
3309
3212
  CopilotKitCoreReact,
3213
+ CopilotKitInspector,
3310
3214
  CopilotKitProvider,
3311
3215
  CopilotModalHeader,
3312
3216
  CopilotSidebar,
3313
3217
  CopilotSidebarView,
3314
- WebInspector,
3315
3218
  WildcardToolCallRender,
3316
3219
  defineToolCallRenderer,
3317
3220
  useAgent,