@copilotkit/react-core 1.69.2 → 1.69.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.
- package/dist/{copilotkit-Ba7qwYt3.cjs → copilotkit-BPeh62mW.cjs} +73 -56
- package/dist/copilotkit-BPeh62mW.cjs.map +1 -0
- package/dist/{copilotkit-CF1Pm2VG.d.cts → copilotkit-CrNUgJiq.d.cts} +17 -15
- package/dist/{copilotkit-CF1Pm2VG.d.cts.map → copilotkit-CrNUgJiq.d.cts.map} +1 -1
- package/dist/{copilotkit-TdM-5onZ.d.mts → copilotkit-DgO31tBq.d.mts} +17 -15
- package/dist/{copilotkit-TdM-5onZ.d.mts.map → copilotkit-DgO31tBq.d.mts.map} +1 -1
- package/dist/{copilotkit-BmW2sFH6.mjs → copilotkit-JdHy0xdu.mjs} +74 -57
- package/dist/copilotkit-JdHy0xdu.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +73 -55
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/headless.cjs +1 -1
- package/dist/v2/headless.cjs.map +1 -1
- package/dist/v2/headless.mjs +1 -1
- package/dist/v2/headless.mjs.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.d.cts +1 -1
- package/dist/v2/index.d.mts +1 -1
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/index.umd.js +76 -58
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +7 -8
- package/skills/react-core/SKILL.md +5 -3
- package/skills/react-core/references/agent-access.md +68 -1
- package/skills/react-core/references/debug-mode.md +21 -34
- package/skills/react-core/references/switching-agents-recipes.md +1 -0
- package/skills/react-core/references/switching-agents.md +9 -0
- package/skills/react-core/references/threads.md +65 -0
- package/dist/copilotkit-Ba7qwYt3.cjs.map +0 -1
- package/dist/copilotkit-BmW2sFH6.mjs.map +0 -1
|
@@ -4,7 +4,7 @@ import { CopilotKitCore, CopilotKitCoreErrorCode, CopilotKitCoreRuntimeConnectio
|
|
|
4
4
|
import { HttpAgent, randomUUID } from "@ag-ui/client";
|
|
5
5
|
import { extendTailwindMerge, twMerge } from "tailwind-merge";
|
|
6
6
|
import { ArrowUp, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronRightIcon, Copy, Edit, Loader2, MessageCircle, Mic, PanelLeftOpen, Play, Plus, RefreshCw, Square, ThumbsDown, ThumbsUp, Upload, Volume2, X } from "lucide-react";
|
|
7
|
-
import { A2UI_DEFAULT_DESIGN_GUIDELINES, A2UI_DEFAULT_GENERATION_GUIDELINES, COPILOT_CLOUD_API_URL, COPILOT_CLOUD_CHAT_URL, COPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ConfigurationError, CopilotKitAgentDiscoveryError, CopilotKitApiDiscoveryError, CopilotKitError, CopilotKitErrorCode, CopilotKitLowLevelError, CopilotKitRemoteEndpointDiscoveryError, DEFAULT_AGENT_ID, ErrorVisibility, MissingPublicApiKeyError, Severity, TranscriptionErrorCode, TranscriptionErrorCode as TranscriptionErrorCode$1, copyToClipboard, createLicenseContextValue, dataToUUID, exceedsMaxSize, formatFileSize, generateVideoThumbnail, getDocumentIcon, getModalityFromMimeType, getSourceUrl, matchesAcceptFilter, parseJson, partialJSONParse, randomId, randomUUID as randomUUID$1, readFileAsBase64, schemaToJsonSchema } from "@copilotkit/shared";
|
|
7
|
+
import { A2UI_DEFAULT_DESIGN_GUIDELINES, A2UI_DEFAULT_GENERATION_GUIDELINES, COPILOT_CLOUD_API_URL, COPILOT_CLOUD_CHAT_URL, COPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ConfigurationError, CopilotKitAgentDiscoveryError, CopilotKitApiDiscoveryError, CopilotKitError, CopilotKitErrorCode, CopilotKitLowLevelError, CopilotKitRemoteEndpointDiscoveryError, DEFAULT_AGENT_ID, ErrorVisibility, MissingPublicApiKeyError, Severity, TranscriptionErrorCode, TranscriptionErrorCode as TranscriptionErrorCode$1, copyToClipboard, createLicenseContextValue, dataToUUID, exceedsMaxSize, formatFileSize, generateVideoThumbnail, getDocumentIcon, getModalityFromMimeType, getSourceUrl, matchesAcceptFilter, parseJson, partialJSONParse, randomId, randomUUID as randomUUID$1, readFileAsBase64, schemaToJsonSchema, shouldEnableInspector } from "@copilotkit/shared";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Slot } from "@radix-ui/react-slot";
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
@@ -14,7 +14,6 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
|
14
14
|
import { Streamdown } from "streamdown";
|
|
15
15
|
import { CopilotKitContext, LicenseContext, useCopilotKit, useCopilotKit as useCopilotKit$1, useLicenseContext, useLicenseContext as useLicenseContext$1 } from "@copilotkit/react-core/v2/context";
|
|
16
16
|
import { z } from "zod";
|
|
17
|
-
import { createComponent } from "@lit-labs/react";
|
|
18
17
|
import { A2UIProvider, A2UIRenderer, A2UI_SCHEMA_CONTEXT_DESCRIPTION, Catalog, DEFAULT_SURFACE_ID, buildCatalogContextValue, extractCatalogComponentSchemas, filterCatalog, initializeDefaultCatalog, injectStyles, useA2UIActions, useA2UIError, viewerTheme } from "@copilotkit/a2ui-renderer";
|
|
19
18
|
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
20
19
|
import { createPortal, flushSync } from "react-dom";
|
|
@@ -77,7 +76,7 @@ const CopilotChatDefaultLabels = {
|
|
|
77
76
|
assistantMessageToolbarCopyCodeCopiedLabel: "Copied",
|
|
78
77
|
assistantMessageToolbarCopyMessageLabel: "Copy",
|
|
79
78
|
assistantMessageToolbarInspectorLabel: "View in Inspector",
|
|
80
|
-
assistantMessageToolbarInspectorLocalOnlyLabel: "
|
|
79
|
+
assistantMessageToolbarInspectorLocalOnlyLabel: "Development Only",
|
|
81
80
|
assistantMessageToolbarThumbsUpLabel: "Good response",
|
|
82
81
|
assistantMessageToolbarThumbsDownLabel: "Bad response",
|
|
83
82
|
assistantMessageToolbarReadAloudLabel: "Read aloud",
|
|
@@ -1496,32 +1495,43 @@ function useRenderToolCall() {
|
|
|
1496
1495
|
|
|
1497
1496
|
//#endregion
|
|
1498
1497
|
//#region src/v2/components/CopilotKitInspector.tsx
|
|
1499
|
-
const CopilotKitInspector = ({ core, openRequest
|
|
1500
|
-
const
|
|
1498
|
+
const CopilotKitInspector = ({ core, openRequest }) => {
|
|
1499
|
+
const mountRef = React$1.useRef(null);
|
|
1501
1500
|
const inspectorRef = React$1.useRef(null);
|
|
1501
|
+
const latestCoreRef = React$1.useRef(core ?? null);
|
|
1502
|
+
const latestOpenRequestRef = React$1.useRef(openRequest);
|
|
1503
|
+
latestCoreRef.current = core ?? null;
|
|
1504
|
+
latestOpenRequestRef.current = openRequest;
|
|
1502
1505
|
React$1.useEffect(() => {
|
|
1503
1506
|
let mounted = true;
|
|
1507
|
+
let inspector = null;
|
|
1504
1508
|
import("@copilotkit/web-inspector").then((mod) => {
|
|
1509
|
+
if (!mounted || !mountRef.current) return;
|
|
1505
1510
|
mod.defineWebInspector?.();
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
if (
|
|
1511
|
+
inspector = mountRef.current.ownerDocument.createElement(mod.WEB_INSPECTOR_TAG);
|
|
1512
|
+
mod.configureWebInspectorElement(inspector, latestCoreRef.current);
|
|
1513
|
+
mountRef.current.appendChild(inspector);
|
|
1514
|
+
inspectorRef.current = inspector;
|
|
1515
|
+
const request = latestOpenRequestRef.current;
|
|
1516
|
+
if (request) inspector.openInspector("message_toolbar", request);
|
|
1517
|
+
}).catch((error) => {
|
|
1518
|
+
console.error("Failed to load CopilotKit inspector:", error);
|
|
1512
1519
|
});
|
|
1513
1520
|
return () => {
|
|
1514
1521
|
mounted = false;
|
|
1522
|
+
inspector?.remove();
|
|
1523
|
+
if (inspectorRef.current === inspector) inspectorRef.current = null;
|
|
1515
1524
|
};
|
|
1516
1525
|
}, []);
|
|
1526
|
+
React$1.useEffect(() => {
|
|
1527
|
+
if (inspectorRef.current) inspectorRef.current.core = core ?? null;
|
|
1528
|
+
}, [core]);
|
|
1517
1529
|
React$1.useEffect(() => {
|
|
1518
1530
|
if (openRequest) inspectorRef.current?.openInspector("message_toolbar", openRequest);
|
|
1519
|
-
}, [
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
...rest,
|
|
1524
|
-
core: core ?? null
|
|
1531
|
+
}, [openRequest]);
|
|
1532
|
+
return /* @__PURE__ */ jsx("span", {
|
|
1533
|
+
ref: mountRef,
|
|
1534
|
+
style: { display: "contents" }
|
|
1525
1535
|
});
|
|
1526
1536
|
};
|
|
1527
1537
|
CopilotKitInspector.displayName = "CopilotKitInspector";
|
|
@@ -1529,7 +1539,7 @@ CopilotKitInspector.displayName = "CopilotKitInspector";
|
|
|
1529
1539
|
//#endregion
|
|
1530
1540
|
//#region src/v2/components/CopilotKitInspectorContext.tsx
|
|
1531
1541
|
const CopilotKitInspectorContext = React$1.createContext({
|
|
1532
|
-
|
|
1542
|
+
isInspectorEnabled: false,
|
|
1533
1543
|
openInspector: () => void 0
|
|
1534
1544
|
});
|
|
1535
1545
|
const CopilotKitInspectorContextProvider = CopilotKitInspectorContext.Provider;
|
|
@@ -3479,9 +3489,15 @@ function useStableArrayProp(prop, warningMessage, isMeaningfulChange) {
|
|
|
3479
3489
|
}, [value, warningMessage]);
|
|
3480
3490
|
return value;
|
|
3481
3491
|
}
|
|
3482
|
-
const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY_HEADERS, credentials, publicApiKey, publicLicenseKey, licenseToken, properties = EMPTY_PROPERTIES, agents__unsafe_dev_only: agents = EMPTY_AGENTS, selfManagedAgents = EMPTY_AGENTS, renderToolCalls, renderActivityMessages, renderCustomMessages, frontendTools, humanInTheLoop, openGenerativeUI,
|
|
3492
|
+
const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY_HEADERS, credentials, publicApiKey, publicLicenseKey, licenseToken, properties = EMPTY_PROPERTIES, agents__unsafe_dev_only: agents = EMPTY_AGENTS, selfManagedAgents = EMPTY_AGENTS, renderToolCalls, renderActivityMessages, renderCustomMessages, frontendTools, humanInTheLoop, openGenerativeUI, enableInspector, useSingleEndpoint, onError, a2ui, defaultThrottleMs, debug }) => {
|
|
3483
3493
|
const [shouldRenderInspector, setShouldRenderInspector] = useState(false);
|
|
3484
|
-
|
|
3494
|
+
useEffect(() => {
|
|
3495
|
+
setShouldRenderInspector(shouldEnableInspector({
|
|
3496
|
+
enableInspector,
|
|
3497
|
+
isBrowser: true,
|
|
3498
|
+
isDevelopment: process.env.NODE_ENV === "development"
|
|
3499
|
+
}));
|
|
3500
|
+
}, [enableInspector]);
|
|
3485
3501
|
const [inspectorOpenRequest, setInspectorOpenRequest] = useState(null);
|
|
3486
3502
|
const [runtimeA2UIEnabled, setRuntimeA2UIEnabled] = useState(false);
|
|
3487
3503
|
const [runtimeOpenGenUIEnabled, setRuntimeOpenGenUIEnabled] = useState(false);
|
|
@@ -3490,32 +3506,13 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
3490
3506
|
const a2uiCatalogProvided = !!a2ui?.catalog;
|
|
3491
3507
|
const a2uiActive = runtimeA2UIEnabled || a2uiCatalogProvided;
|
|
3492
3508
|
const [runtimeLicenseStatus, setRuntimeLicenseStatus] = useState(void 0);
|
|
3493
|
-
useEffect(() => {
|
|
3494
|
-
if (typeof window === "undefined") return;
|
|
3495
|
-
const isLocalhost = new Set(["localhost", "127.0.0.1"]).has(window.location?.hostname ?? "");
|
|
3496
|
-
const canShowLocalInspectorAction = process.env.NODE_ENV === "development" && isLocalhost;
|
|
3497
|
-
if (showDevConsole === true) {
|
|
3498
|
-
setShouldRenderInspector(true);
|
|
3499
|
-
setIsLocalInspectorEnabled(canShowLocalInspectorAction);
|
|
3500
|
-
} else if (showDevConsole === "auto") if (isLocalhost) {
|
|
3501
|
-
setShouldRenderInspector(true);
|
|
3502
|
-
setIsLocalInspectorEnabled(canShowLocalInspectorAction);
|
|
3503
|
-
} else {
|
|
3504
|
-
setShouldRenderInspector(false);
|
|
3505
|
-
setIsLocalInspectorEnabled(false);
|
|
3506
|
-
}
|
|
3507
|
-
else {
|
|
3508
|
-
setShouldRenderInspector(false);
|
|
3509
|
-
setIsLocalInspectorEnabled(false);
|
|
3510
|
-
}
|
|
3511
|
-
}, [showDevConsole]);
|
|
3512
3509
|
const requestInspectorOpen = useCallback((request) => {
|
|
3513
3510
|
setInspectorOpenRequest({ ...request });
|
|
3514
3511
|
}, []);
|
|
3515
3512
|
const inspectorContextValue = useMemo(() => ({
|
|
3516
|
-
|
|
3513
|
+
isInspectorEnabled: shouldRenderInspector,
|
|
3517
3514
|
openInspector: requestInspectorOpen
|
|
3518
|
-
}), [
|
|
3515
|
+
}), [shouldRenderInspector, requestInspectorOpen]);
|
|
3519
3516
|
const renderToolCallsList = useStableArrayProp(renderToolCalls, "renderToolCalls must be a stable array. If you want to dynamically add or remove tools, use `useFrontendTool` instead.", (initial, next) => {
|
|
3520
3517
|
const key = (rc) => `${rc?.agentId ?? ""}:${rc?.name ?? ""}`;
|
|
3521
3518
|
const setFrom = (arr) => new Set(arr.map(key));
|
|
@@ -3856,7 +3853,6 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
3856
3853
|
value: inspectorContextValue,
|
|
3857
3854
|
children: [children, shouldRenderInspector ? /* @__PURE__ */ jsx(CopilotKitInspector, {
|
|
3858
3855
|
core: copilotkit,
|
|
3859
|
-
defaultAnchor: inspectorDefaultAnchor,
|
|
3860
3856
|
openRequest: inspectorOpenRequest
|
|
3861
3857
|
}) : null]
|
|
3862
3858
|
}),
|
|
@@ -5910,7 +5906,7 @@ function CopilotChatToolCallsView({ message, messages = [] }) {
|
|
|
5910
5906
|
//#region src/v2/components/chat/CopilotChatAssistantMessage.tsx
|
|
5911
5907
|
function CopilotChatAssistantMessage({ message, messages, isRunning, onThumbsUp, onThumbsDown, onReadAloud, onRegenerate, additionalToolbarItems, toolbarVisible = true, markdownRenderer, toolbar, copyButton, inspectorButton, thumbsUpButton, thumbsDownButton, readAloudButton, regenerateButton, toolCallsView, children, className, ...props }) {
|
|
5912
5908
|
useKatexStyles();
|
|
5913
|
-
const {
|
|
5909
|
+
const { isInspectorEnabled, openInspector } = useCopilotKitInspector();
|
|
5914
5910
|
const chatConfiguration = useCopilotChatConfiguration();
|
|
5915
5911
|
const boundMarkdownRenderer = renderSlot(markdownRenderer, CopilotChatAssistantMessage.MarkdownRenderer, { content: message.content || "" });
|
|
5916
5912
|
const boundCopyButton = renderSlot(copyButton, CopilotChatAssistantMessage.CopyButton, { onClick: async () => {
|
|
@@ -5930,7 +5926,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, onThumbsUp,
|
|
|
5930
5926
|
className: "cpk:flex cpk:items-center cpk:gap-1",
|
|
5931
5927
|
children: [
|
|
5932
5928
|
boundCopyButton,
|
|
5933
|
-
|
|
5929
|
+
isInspectorEnabled && boundInspectorButton,
|
|
5934
5930
|
(onThumbsUp || thumbsUpButton) && boundThumbsUpButton,
|
|
5935
5931
|
(onThumbsDown || thumbsDownButton) && boundThumbsDownButton,
|
|
5936
5932
|
(onReadAloud || readAloudButton) && boundReadAloudButton,
|
|
@@ -5944,7 +5940,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, onThumbsUp,
|
|
|
5944
5940
|
});
|
|
5945
5941
|
const hasContent = !!(message.content && message.content.trim().length > 0);
|
|
5946
5942
|
const isLatestAssistantMessage = message.role === "assistant" && messages?.[messages.length - 1]?.id === message.id;
|
|
5947
|
-
const shouldShowToolbar = toolbarVisible && (hasContent ||
|
|
5943
|
+
const shouldShowToolbar = toolbarVisible && (hasContent || isInspectorEnabled) && !(isRunning && isLatestAssistantMessage);
|
|
5948
5944
|
if (children) return /* @__PURE__ */ jsx("div", {
|
|
5949
5945
|
"data-copilotkit": true,
|
|
5950
5946
|
style: { display: "contents" },
|
|
@@ -11515,20 +11511,42 @@ function CoAgentStateRenderBridge(props) {
|
|
|
11515
11511
|
|
|
11516
11512
|
//#endregion
|
|
11517
11513
|
//#region src/v1-deprecated/components/CopilotListeners.tsx
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
const
|
|
11514
|
+
function isPredictStateTool(value) {
|
|
11515
|
+
if (value === null || typeof value !== "object") return false;
|
|
11516
|
+
const config = value;
|
|
11517
|
+
return typeof config.tool === "string" && typeof config.state_key === "string" && (config.tool_argument === void 0 || typeof config.tool_argument === "string");
|
|
11518
|
+
}
|
|
11519
|
+
function getPredictStateUpdate(config, toolCallName, partialToolCallArgs) {
|
|
11520
|
+
if (config.tool !== toolCallName) return void 0;
|
|
11521
|
+
const emittedState = typeof partialToolCallArgs === "string" ? partialJSONParse(partialToolCallArgs) : partialToolCallArgs;
|
|
11522
|
+
if (emittedState === null || typeof emittedState !== "object") return;
|
|
11523
|
+
if (config.tool_argument) {
|
|
11524
|
+
if (!(config.tool_argument in emittedState)) return void 0;
|
|
11525
|
+
return { [config.state_key]: emittedState[config.tool_argument] };
|
|
11526
|
+
}
|
|
11527
|
+
return { [config.state_key]: emittedState };
|
|
11528
|
+
}
|
|
11529
|
+
function createPredictStateSubscriber(agent, predictStateToolsRef) {
|
|
11530
|
+
return {
|
|
11521
11531
|
onCustomEvent: ({ event }) => {
|
|
11522
|
-
if (event.name === "PredictState") predictStateToolsRef.current = event.value;
|
|
11532
|
+
if (event.name === "PredictState") predictStateToolsRef.current = Array.isArray(event.value) ? event.value.filter(isPredictStateTool) : [];
|
|
11523
11533
|
},
|
|
11524
11534
|
onToolCallArgsEvent: ({ partialToolCallArgs, toolCallName }) => {
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
const
|
|
11528
|
-
|
|
11535
|
+
const updates = {};
|
|
11536
|
+
predictStateToolsRef.current.forEach((config) => {
|
|
11537
|
+
const update = getPredictStateUpdate(config, toolCallName, partialToolCallArgs);
|
|
11538
|
+
if (update) Object.assign(updates, update);
|
|
11539
|
+
});
|
|
11540
|
+
if (Object.keys(updates).length > 0) agent.setState({
|
|
11541
|
+
...agent.state,
|
|
11542
|
+
...updates
|
|
11529
11543
|
});
|
|
11530
11544
|
}
|
|
11531
|
-
}
|
|
11545
|
+
};
|
|
11546
|
+
}
|
|
11547
|
+
const usePredictStateSubscription = (agent) => {
|
|
11548
|
+
const predictStateToolsRef = useRef([]);
|
|
11549
|
+
const getSubscriber = useCallback((subscriptionAgent) => createPredictStateSubscriber(subscriptionAgent, predictStateToolsRef), []);
|
|
11532
11550
|
useEffect(() => {
|
|
11533
11551
|
if (!agent) return;
|
|
11534
11552
|
const subscriber = getSubscriber(agent);
|
|
@@ -11587,7 +11605,6 @@ function CopilotListeners() {
|
|
|
11587
11605
|
//#region src/v1-deprecated/components/copilot-provider/copilotkit.tsx
|
|
11588
11606
|
function CopilotKit({ children, ...props }) {
|
|
11589
11607
|
const enabled = shouldShowDevConsole(props.showDevConsole);
|
|
11590
|
-
const showInspector = shouldShowDevConsole(props.enableInspector);
|
|
11591
11608
|
const publicApiKey = props.publicApiKey || props.publicLicenseKey;
|
|
11592
11609
|
const renderArr = useMemo(() => [{ render: CoAgentStateRenderBridge }], []);
|
|
11593
11610
|
const { onError: _onError, ...v2Props } = props;
|
|
@@ -11600,7 +11617,7 @@ function CopilotKit({ children, ...props }) {
|
|
|
11600
11617
|
threadId: props.threadId,
|
|
11601
11618
|
children: /* @__PURE__ */ jsx(CopilotKitProvider, {
|
|
11602
11619
|
...v2Props,
|
|
11603
|
-
|
|
11620
|
+
enableInspector: props.enableInspector,
|
|
11604
11621
|
renderCustomMessages: renderArr,
|
|
11605
11622
|
children: /* @__PURE__ */ jsx(CopilotKitInternal, {
|
|
11606
11623
|
...props,
|
|
@@ -12083,4 +12100,4 @@ function validateProps(props) {
|
|
|
12083
12100
|
|
|
12084
12101
|
//#endregion
|
|
12085
12102
|
export { useCapabilities as $, CopilotChatMessageView as A, CopilotChatAudioRecorder as At, CopilotChatAssistantMessage_default as B, CopilotModalHeader as C, MCPAppsActivityRenderer as Ct, CopilotChat as D, useRenderToolCall as Dt, DefaultOpenIcon as E, CopilotKitInspector as Et, CopilotChatSuggestionView as F, useLearnFromUserActionInCurrentThread as G, useLearningContainersInCurrentThread as H, CopilotChatSuggestionPill as I, useThreads$1 as J, useLearnFromUserAction as K, CopilotChatReasoningMessage_default as L, IntelligenceIndicator as M, useCopilotChatConfiguration as Mt, getIntelligenceTurnAnchors as N, CopilotChatView_default as O, CopilotChatInput_default as Ot, IntelligenceIndicatorView as P, useAgentContext as Q, CopilotChatUserMessage_default as R, CopilotSidebarView as S, MCPAppsActivityContentSchema as St, DefaultCloseIcon as T, ɵrunMcpFollowUp as Tt, useLearningContainers as U, CopilotChatToolCallsView as V, useAttachments as W, useConfigureSuggestions as X, useInterrupt as Y, useSuggestions as Z, WildcardToolCallRender as _, OpenGenerativeUIActivityType as _t, ThreadsProvider as a, useComponent as at, CopilotSidebar as b, SandboxFunctionsContext as bt, CoAgentStateRendersProvider as c, useRenderCustomMessages as ct, shouldShowDevConsole as d, useLicenseContext$1 as dt, UseAgentUpdate as et, useToast as f, CopilotKitCoreReact as ft, useCopilotContext as g, OpenGenerativeUIActivityRenderer as gt, CopilotContext as h, GenerateSandboxedUiArgsSchema as ht, ThreadsContext as i, useRenderTool as it, INTELLIGENCE_TURN_HEAD as j, CopilotChatConfigurationProvider as jt, CopilotChatAttachmentQueue as k, AudioRecorderError as kt, useCoAgentStateRenders as l, CopilotKitProvider as lt, useCopilotMessagesContext as m, createA2UIMessageRenderer as mt, defaultCopilotContextCategories as n, useHumanInTheLoop as nt, useThreads as o, useFrontendTool as ot, CopilotMessagesContext as p, defineToolCallRenderer as pt, useMemories as q, CoAgentStateRenderBridge as r, useDefaultRenderTool as rt, CoAgentStateRendersContext as s, useRenderActivityMessage as st, CopilotKit as t, useAgent as tt, useAsyncCallback as u, useCopilotKit$1 as ut, CopilotThreadsDrawer as v, OpenGenerativeUIContentSchema as vt, CopilotChatToggleButton as w, MCPAppsActivityType as wt, CopilotPopupView as x, useSandboxFunctions as xt, CopilotPopup as y, OpenGenerativeUIToolRenderer as yt, CopilotChatAttachmentRenderer as z };
|
|
12086
|
-
//# sourceMappingURL=copilotkit-
|
|
12103
|
+
//# sourceMappingURL=copilotkit-JdHy0xdu.mjs.map
|