@copilotkit/react-core 1.74.0 → 1.75.1
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-CfyJ1-Nx.d.mts → copilotkit-CGlSOKHM.d.mts} +38 -2
- package/dist/copilotkit-CGlSOKHM.d.mts.map +1 -0
- package/dist/{copilotkit-C7c_w9iV.d.cts → copilotkit-Cjj9wDI8.d.cts} +38 -2
- package/dist/copilotkit-Cjj9wDI8.d.cts.map +1 -0
- package/dist/{copilotkit-C5FS3iDK.cjs → copilotkit-DIudpHkM.cjs} +73 -38
- package/dist/copilotkit-DIudpHkM.cjs.map +1 -0
- package/dist/{copilotkit-DyZh7EH4.mjs → copilotkit-DfsHZUuo.mjs} +73 -38
- package/dist/copilotkit-DfsHZUuo.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 +2 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/headless.cjs +1 -0
- package/dist/v2/headless.cjs.map +1 -1
- package/dist/v2/headless.mjs +1 -0
- 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 +72 -37
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +9 -9
- package/dist/copilotkit-C5FS3iDK.cjs.map +0 -1
- package/dist/copilotkit-C7c_w9iV.d.cts.map +0 -1
- package/dist/copilotkit-CfyJ1-Nx.d.mts.map +0 -1
- package/dist/copilotkit-DyZh7EH4.mjs.map +0 -1
|
@@ -1605,7 +1605,7 @@ function useRenderToolCall() {
|
|
|
1605
1605
|
|
|
1606
1606
|
//#endregion
|
|
1607
1607
|
//#region package.json
|
|
1608
|
-
var version = "1.
|
|
1608
|
+
var version = "1.75.1";
|
|
1609
1609
|
|
|
1610
1610
|
//#endregion
|
|
1611
1611
|
//#region src/v2/components/CopilotKitInspector.tsx
|
|
@@ -4635,6 +4635,7 @@ function useAgent({ agentId, threadId, runtimeAgentId, updates, throttleMs } = {
|
|
|
4635
4635
|
if (updateFlags.includes(UseAgentUpdate.OnStateChanged)) handlers.onStateChanged = batchedForceUpdate;
|
|
4636
4636
|
if (updateFlags.includes(UseAgentUpdate.OnRunStatusChanged)) {
|
|
4637
4637
|
handlers.onRunInitialized = batchedForceUpdate;
|
|
4638
|
+
handlers.onRunStartedEvent = batchedForceUpdate;
|
|
4638
4639
|
handlers.onRunFinalized = batchedForceUpdate;
|
|
4639
4640
|
handlers.onRunFailed = batchedForceUpdate;
|
|
4640
4641
|
handlers.onRunErrorEvent = batchedForceUpdate;
|
|
@@ -6334,7 +6335,7 @@ function BoundInspectorButton({ inspectorButton, messageId, openInspector, ...pr
|
|
|
6334
6335
|
})
|
|
6335
6336
|
});
|
|
6336
6337
|
}
|
|
6337
|
-
function CopilotChatAssistantMessage({ message, messages, isRunning, onThumbsUp, onThumbsDown, onReadAloud, onRegenerate, additionalToolbarItems, toolbarVisible = true, markdownRenderer, toolbar, copyButton, inspectorButton, thumbsUpButton, thumbsDownButton, readAloudButton, regenerateButton, toolCallsView, children, className, ...props }) {
|
|
6338
|
+
function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, onThumbsUp, onThumbsDown, onReadAloud, onRegenerate, additionalToolbarItems, toolbarVisible = true, markdownRenderer, toolbar, copyButton, inspectorButton, thumbsUpButton, thumbsDownButton, readAloudButton, regenerateButton, toolCallsView, children, className, ...props }) {
|
|
6338
6339
|
useKatexStyles();
|
|
6339
6340
|
const { isInspectorEnabled, openInspector } = useCopilotKitInspector();
|
|
6340
6341
|
const shortcutsHidden = useInspectorShortcutsHidden();
|
|
@@ -6370,7 +6371,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, onThumbsUp,
|
|
|
6370
6371
|
messages
|
|
6371
6372
|
});
|
|
6372
6373
|
const hasContent = !!(message.content && message.content.trim().length > 0);
|
|
6373
|
-
const isLatestAssistantMessage = message.role === "assistant" && messages?.[messages.length - 1]?.id === message.id;
|
|
6374
|
+
const isLatestAssistantMessage = message.role === "assistant" && (isLatest ?? messages?.[messages.length - 1]?.id === message.id);
|
|
6374
6375
|
const shouldShowToolbar = toolbarVisible && (hasContent || showInspectorShortcut) && !(isRunning && isLatestAssistantMessage);
|
|
6375
6376
|
if (children) return /* @__PURE__ */ jsx("div", {
|
|
6376
6377
|
"data-copilotkit": true,
|
|
@@ -6884,8 +6885,8 @@ function formatDuration(seconds) {
|
|
|
6884
6885
|
if (secs === 0) return `${mins} minute${mins > 1 ? "s" : ""}`;
|
|
6885
6886
|
return `${mins}m ${secs}s`;
|
|
6886
6887
|
}
|
|
6887
|
-
function CopilotChatReasoningMessage({ message, messages, isRunning, header, contentView, toggle, children, className, ...props }) {
|
|
6888
|
-
const isLatest = messages?.[messages.length - 1]?.id === message.id;
|
|
6888
|
+
function CopilotChatReasoningMessage({ message, messages, isRunning, isLatest: isLatestProp, header, contentView, toggle, children, className, ...props }) {
|
|
6889
|
+
const isLatest = isLatestProp ?? messages?.[messages.length - 1]?.id === message.id;
|
|
6889
6890
|
const isStreaming = !!(isRunning && isLatest);
|
|
6890
6891
|
const hasContent = !!(message.content && message.content.length > 0);
|
|
6891
6892
|
const startTimeRef = useRef(null);
|
|
@@ -7280,24 +7281,31 @@ const INTELLIGENCE_TURN_HEAD = "__cpk_turn_head__";
|
|
|
7280
7281
|
* emits exactly one `IntelligenceIndicator` per entry, keyed by the turn id and
|
|
7281
7282
|
* positioned at the anchor; the per-turn key also lets every past turn keep its
|
|
7282
7283
|
* own indicator in scroll-back.
|
|
7284
|
+
*
|
|
7285
|
+
* `visibleMessages` is what actually renders, when that differs from
|
|
7286
|
+
* `messages` (the chat's `transformMessages`). Turns are still read from the
|
|
7287
|
+
* full list, so hiding a user message does not merge its turn into the one
|
|
7288
|
+
* before it, and anchors are only chosen among visible messages. A message the
|
|
7289
|
+
* transform built itself joins the turn of the visible message before it.
|
|
7283
7290
|
*/
|
|
7284
|
-
function getIntelligenceTurnAnchors(messages) {
|
|
7285
|
-
const
|
|
7291
|
+
function getIntelligenceTurnAnchors(messages, visibleMessages = messages) {
|
|
7292
|
+
const turnOfMessage = /* @__PURE__ */ new Map();
|
|
7286
7293
|
let turnId = INTELLIGENCE_TURN_HEAD;
|
|
7287
|
-
let anchorId = null;
|
|
7288
|
-
const commit = () => {
|
|
7289
|
-
if (anchorId !== null) anchors.set(anchorId, turnId);
|
|
7290
|
-
anchorId = null;
|
|
7291
|
-
};
|
|
7292
7294
|
for (const m of messages) {
|
|
7293
|
-
if (m.role === "user")
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7295
|
+
if (m.role === "user") turnId = m.id;
|
|
7296
|
+
turnOfMessage.set(m.id, turnId);
|
|
7297
|
+
}
|
|
7298
|
+
const anchors = /* @__PURE__ */ new Map();
|
|
7299
|
+
const anchoredTurns = /* @__PURE__ */ new Set();
|
|
7300
|
+
let currentTurn = INTELLIGENCE_TURN_HEAD;
|
|
7301
|
+
for (const m of visibleMessages) {
|
|
7302
|
+
currentTurn = turnOfMessage.get(m.id) ?? currentTurn;
|
|
7303
|
+
if (m.role === "user") continue;
|
|
7304
|
+
if (!anchoredTurns.has(currentTurn) && messageHasMatchingToolCall(m)) {
|
|
7305
|
+
anchors.set(m.id, currentTurn);
|
|
7306
|
+
anchoredTurns.add(currentTurn);
|
|
7297
7307
|
}
|
|
7298
|
-
if (anchorId === null && messageHasMatchingToolCall(m)) anchorId = m.id;
|
|
7299
7308
|
}
|
|
7300
|
-
commit();
|
|
7301
7309
|
return anchors;
|
|
7302
7310
|
}
|
|
7303
7311
|
/**
|
|
@@ -7443,11 +7451,12 @@ function resolveSlotComponent(slot, DefaultComponent) {
|
|
|
7443
7451
|
/**
|
|
7444
7452
|
* Memoized wrapper for assistant messages to prevent re-renders when other messages change.
|
|
7445
7453
|
*/
|
|
7446
|
-
const MemoizedAssistantMessage = React.memo(function MemoizedAssistantMessage({ message, messages, isRunning, AssistantMessageComponent, slotProps }) {
|
|
7454
|
+
const MemoizedAssistantMessage = React.memo(function MemoizedAssistantMessage({ message, messages, isRunning, isLatest, AssistantMessageComponent, slotProps }) {
|
|
7447
7455
|
return /* @__PURE__ */ jsx(AssistantMessageComponent, {
|
|
7448
7456
|
message,
|
|
7449
7457
|
messages,
|
|
7450
7458
|
isRunning,
|
|
7459
|
+
isLatest,
|
|
7451
7460
|
...slotProps
|
|
7452
7461
|
});
|
|
7453
7462
|
}, (prevProps, nextProps) => {
|
|
@@ -7469,7 +7478,7 @@ const MemoizedAssistantMessage = React.memo(function MemoizedAssistantMessage({
|
|
|
7469
7478
|
if (prevToolResults.length !== nextToolResults.length) return false;
|
|
7470
7479
|
for (let i = 0; i < prevToolResults.length; i++) if (prevToolResults[i].content !== nextToolResults[i].content) return false;
|
|
7471
7480
|
}
|
|
7472
|
-
if (
|
|
7481
|
+
if ((prevProps.isRunning && prevProps.isLatest) !== (nextProps.isRunning && nextProps.isLatest)) return false;
|
|
7473
7482
|
if (prevProps.AssistantMessageComponent !== nextProps.AssistantMessageComponent) return false;
|
|
7474
7483
|
if (prevProps.slotProps !== nextProps.slotProps) return false;
|
|
7475
7484
|
return true;
|
|
@@ -7503,20 +7512,19 @@ const MemoizedActivityMessage = React.memo(function MemoizedActivityMessage({ me
|
|
|
7503
7512
|
/**
|
|
7504
7513
|
* Memoized wrapper for reasoning messages to prevent re-renders when other messages change.
|
|
7505
7514
|
*/
|
|
7506
|
-
const MemoizedReasoningMessage = React.memo(function MemoizedReasoningMessage({ message, messages, isRunning, ReasoningMessageComponent, slotProps }) {
|
|
7515
|
+
const MemoizedReasoningMessage = React.memo(function MemoizedReasoningMessage({ message, messages, isRunning, isLatest, ReasoningMessageComponent, slotProps }) {
|
|
7507
7516
|
return /* @__PURE__ */ jsx(ReasoningMessageComponent, {
|
|
7508
7517
|
message,
|
|
7509
7518
|
messages,
|
|
7510
7519
|
isRunning,
|
|
7520
|
+
isLatest,
|
|
7511
7521
|
...slotProps
|
|
7512
7522
|
});
|
|
7513
7523
|
}, (prevProps, nextProps) => {
|
|
7514
7524
|
if (prevProps.message.id !== nextProps.message.id) return false;
|
|
7515
7525
|
if (prevProps.message.content !== nextProps.message.content) return false;
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
if (prevIsLatest !== nextIsLatest) return false;
|
|
7519
|
-
if (nextIsLatest && prevProps.isRunning !== nextProps.isRunning) return false;
|
|
7526
|
+
if (prevProps.isLatest !== nextProps.isLatest) return false;
|
|
7527
|
+
if (nextProps.isLatest && prevProps.isRunning !== nextProps.isRunning) return false;
|
|
7520
7528
|
if (prevProps.ReasoningMessageComponent !== nextProps.ReasoningMessageComponent) return false;
|
|
7521
7529
|
if (prevProps.slotProps !== nextProps.slotProps) return false;
|
|
7522
7530
|
return true;
|
|
@@ -7600,7 +7608,7 @@ function deduplicateMessages(messages) {
|
|
|
7600
7608
|
return [...acc.values()];
|
|
7601
7609
|
}
|
|
7602
7610
|
const VIRTUALIZE_THRESHOLD = 50;
|
|
7603
|
-
function CopilotChatMessageView({ messages = [], assistantMessage, userMessage, reasoningMessage, cursor, intelligenceIndicator, isRunning = false, children, className, ...props }) {
|
|
7611
|
+
function CopilotChatMessageView({ messages = [], assistantMessage, userMessage, reasoningMessage, cursor, intelligenceIndicator, isRunning = false, transformMessages, children, className, ...props }) {
|
|
7604
7612
|
const isPinnedToBottom = useContext(ScrollPinnedContext);
|
|
7605
7613
|
const renderCustomMessage = useRenderCustomMessages();
|
|
7606
7614
|
const { renderActivityMessage } = useRenderActivityMessage();
|
|
@@ -7633,13 +7641,27 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7633
7641
|
return copilotkit.getStateByRun(config.agentId, config.threadId, resolvedRunId);
|
|
7634
7642
|
};
|
|
7635
7643
|
const deduplicatedMessages = useMemo(() => deduplicateMessages(messages), [messages]);
|
|
7644
|
+
const renderedMessages = useMemo(() => transformMessages ? transformMessages(deduplicatedMessages) : deduplicatedMessages, [deduplicatedMessages, transformMessages]);
|
|
7645
|
+
const latestRenderedId = renderedMessages[renderedMessages.length - 1]?.id;
|
|
7646
|
+
const transformDuplicateId = useMemo(() => {
|
|
7647
|
+
if (process.env.NODE_ENV === "production" || !transformMessages) return;
|
|
7648
|
+
const seen = /* @__PURE__ */ new Set();
|
|
7649
|
+
for (const message of renderedMessages) {
|
|
7650
|
+
if (seen.has(message.id)) return message.id;
|
|
7651
|
+
seen.add(message.id);
|
|
7652
|
+
}
|
|
7653
|
+
}, [renderedMessages, transformMessages]);
|
|
7654
|
+
useEffect(() => {
|
|
7655
|
+
if (transformDuplicateId === void 0) return;
|
|
7656
|
+
console.warn(`[CopilotKit] CopilotChatMessageView: \`transformMessages\` returned more than one message with id "${transformDuplicateId}". Return each id at most once; a message you create needs its own id, stable across renders.`);
|
|
7657
|
+
}, [transformDuplicateId]);
|
|
7636
7658
|
const rowKeyStoreRef = useRef(null);
|
|
7637
7659
|
rowKeyStoreRef.current ??= createRowKeyStore();
|
|
7638
7660
|
const rowKeyStore = rowKeyStoreRef.current;
|
|
7639
|
-
const rowRenderKeys = useMemo(() => resolveRowRenderKeysById(rowKeyStore,
|
|
7661
|
+
const rowRenderKeys = useMemo(() => resolveRowRenderKeysById(rowKeyStore, renderedMessages), [rowKeyStore, renderedMessages]);
|
|
7640
7662
|
useLayoutEffect(() => {
|
|
7641
|
-
commitRowKeyStore(rowKeyStore,
|
|
7642
|
-
}, [rowKeyStore,
|
|
7663
|
+
commitRowKeyStore(rowKeyStore, renderedMessages);
|
|
7664
|
+
}, [rowKeyStore, renderedMessages]);
|
|
7643
7665
|
if (process.env.NODE_ENV === "development" && deduplicatedMessages.length < messages.length) console.warn(`CopilotChatMessageView: Merged ${messages.length - deduplicatedMessages.length} message(s) with duplicate IDs.`);
|
|
7644
7666
|
const { Component: AssistantComponent, slotProps: assistantSlotProps } = useMemo(() => resolveSlotComponent(assistantMessage, CopilotChatAssistantMessage_default), [assistantMessage]);
|
|
7645
7667
|
const agentId = config?.agentId;
|
|
@@ -7673,7 +7695,18 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7673
7695
|
useEffect(() => {
|
|
7674
7696
|
if (process.env.NODE_ENV !== "production" && scrollElementFromCtx && scrollElementFromCtx.clientHeight === 0) console.warn("[CopilotKit] Chat scroll container has clientHeight=0 — virtualization disabled. Ensure the chat is rendered in a visible container with a non-zero height.");
|
|
7675
7697
|
}, [scrollElementFromCtx]);
|
|
7676
|
-
const shouldVirtualize = !!scrollElement && !children &&
|
|
7698
|
+
const shouldVirtualize = !!scrollElement && !children && renderedMessages.length > VIRTUALIZE_THRESHOLD;
|
|
7699
|
+
const childrenDisabledVirtualization = !!children && !!scrollElement && renderedMessages.length > VIRTUALIZE_THRESHOLD;
|
|
7700
|
+
const warnedChildrenRef = useRef(false);
|
|
7701
|
+
useEffect(() => {
|
|
7702
|
+
if (process.env.NODE_ENV === "production" || !childrenDisabledVirtualization || warnedChildrenRef.current) return;
|
|
7703
|
+
warnedChildrenRef.current = true;
|
|
7704
|
+
console.warn(`[CopilotKit] CopilotChatMessageView: the \`children\` render prop disables virtualization, so all ${renderedMessages.length} messages are mounted. ` + (transformMessages ? "`transformMessages` keeps virtualization on by itself; drop `children` to use it." : "To reshape the list and keep virtualization, use `transformMessages` instead."));
|
|
7705
|
+
}, [
|
|
7706
|
+
childrenDisabledVirtualization,
|
|
7707
|
+
renderedMessages.length,
|
|
7708
|
+
transformMessages
|
|
7709
|
+
]);
|
|
7677
7710
|
const measuredRef = React.useRef({
|
|
7678
7711
|
total: 0,
|
|
7679
7712
|
sizes: /* @__PURE__ */ new Map()
|
|
@@ -7708,7 +7741,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7708
7741
|
return item.start < (instance.scrollOffset ?? 0) + scrollAdjustments;
|
|
7709
7742
|
}, []);
|
|
7710
7743
|
const virtualizer = useVirtualizer({
|
|
7711
|
-
count: shouldVirtualize ?
|
|
7744
|
+
count: shouldVirtualize ? renderedMessages.length : 0,
|
|
7712
7745
|
getScrollElement: () => scrollElement,
|
|
7713
7746
|
estimateSize: estimateRowSize,
|
|
7714
7747
|
overscan: 5,
|
|
@@ -7721,10 +7754,10 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7721
7754
|
isPinnedToBottomRef.current = isPinnedToBottom;
|
|
7722
7755
|
virtualizer.shouldAdjustScrollPositionOnItemSizeChange = shouldAdjustScrollOnResize;
|
|
7723
7756
|
useLayoutEffect(() => {
|
|
7724
|
-
if (!shouldVirtualize || !
|
|
7725
|
-
virtualizer.scrollToIndex(
|
|
7757
|
+
if (!shouldVirtualize || !renderedMessages.length) return;
|
|
7758
|
+
virtualizer.scrollToIndex(renderedMessages.length - 1, { align: "end" });
|
|
7726
7759
|
}, [shouldVirtualize, firstMessageId]);
|
|
7727
|
-
const intelligenceTurnAnchors = useMemo(() => getIntelligenceTurnAnchors(deduplicatedMessages), [deduplicatedMessages]);
|
|
7760
|
+
const intelligenceTurnAnchors = useMemo(() => getIntelligenceTurnAnchors(deduplicatedMessages, renderedMessages), [deduplicatedMessages, renderedMessages]);
|
|
7728
7761
|
const renderMessageBlock = (message) => {
|
|
7729
7762
|
const elements = [];
|
|
7730
7763
|
const stateSnapshot = renderCustomMessage ? getStateSnapshotForMessage(message.id) : void 0;
|
|
@@ -7739,6 +7772,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7739
7772
|
message,
|
|
7740
7773
|
messages,
|
|
7741
7774
|
isRunning,
|
|
7775
|
+
isLatest: message.id === latestRenderedId,
|
|
7742
7776
|
AssistantMessageComponent: AssistantComponent,
|
|
7743
7777
|
slotProps: assistantSlotPropsWithFeedback
|
|
7744
7778
|
}, rowKey));
|
|
@@ -7755,6 +7789,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7755
7789
|
message,
|
|
7756
7790
|
messages,
|
|
7757
7791
|
isRunning,
|
|
7792
|
+
isLatest: message.id === latestRenderedId,
|
|
7758
7793
|
ReasoningMessageComponent: ReasoningComponent,
|
|
7759
7794
|
slotProps: reasoningSlotProps
|
|
7760
7795
|
}, rowKey));
|
|
@@ -7772,7 +7807,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7772
7807
|
}, `intelligence-${intelligenceTurnId}`));
|
|
7773
7808
|
return elements.filter(Boolean);
|
|
7774
7809
|
};
|
|
7775
|
-
const messageElements = shouldVirtualize ? [] :
|
|
7810
|
+
const messageElements = shouldVirtualize ? [] : renderedMessages.flatMap(renderMessageBlock);
|
|
7776
7811
|
if (children) return /* @__PURE__ */ jsx("div", {
|
|
7777
7812
|
"data-copilotkit": true,
|
|
7778
7813
|
style: { display: "contents" },
|
|
@@ -7783,7 +7818,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7783
7818
|
interruptElement
|
|
7784
7819
|
})
|
|
7785
7820
|
});
|
|
7786
|
-
const lastMessage =
|
|
7821
|
+
const lastMessage = renderedMessages[renderedMessages.length - 1];
|
|
7787
7822
|
const showCursor = isRunning && lastMessage?.role !== "reasoning";
|
|
7788
7823
|
return /* @__PURE__ */ jsxs("div", {
|
|
7789
7824
|
"data-copilotkit": true,
|
|
@@ -7797,7 +7832,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7797
7832
|
position: "relative"
|
|
7798
7833
|
},
|
|
7799
7834
|
children: virtualizer.getVirtualItems().map((virtualItem) => {
|
|
7800
|
-
const message =
|
|
7835
|
+
const message = renderedMessages[virtualItem.index];
|
|
7801
7836
|
return /* @__PURE__ */ jsx("div", {
|
|
7802
7837
|
"data-index": virtualItem.index,
|
|
7803
7838
|
ref: virtualizer.measureElement,
|
|
@@ -12548,4 +12583,4 @@ function validateProps(props) {
|
|
|
12548
12583
|
|
|
12549
12584
|
//#endregion
|
|
12550
12585
|
export { useAgentContext as $, ɵisRetryableMemoryStatus as $i, ResumeEntrySchema as $n, compactEvents as $r, BaseMessageSchema as $t, CopilotChatMessageView as A, parseSSEStream as Ai, MemoryError as An, ThinkingEndEventSchema as Ar, CopilotChatInput_default as At, CopilotChatAssistantMessage_default as B, tokenUsageFromLangChainMetadata as Bi, OutputCapabilitiesSchema as Bn, ToolCallSchema as Br, ActivityMessageSchema as Bt, CopilotModalHeader as C, ɵselectThreadsError$1 as Ca, ofType as Ci, InputContentDataSourceSchema as Cn, SuggestionEngine as Cr, useSandboxFunctions as Ct, CopilotChat as D, onInspectorViewThread$1 as Di, IntelligenceAgent as Dn, TextMessageContentEventSchema as Dr, ɵrunMcpFollowUp as Dt, DefaultOpenIcon as E, onInspectorStopViewing$1 as Ei, InputContentUrlSourceSchema as En, TextMessageChunkEventSchema as Er, MCPAppsActivityType as Et, CopilotChatSuggestionView as F, resolveDebugLogger as Fi, MultiAgentCapabilitiesSchema as Fn, TokenUsageSchema as Fr, AGUIConnectNotImplementedError$1 as Ft, useLearnFromUserActionInCurrentThread as G, ɵInterruptState$1 as Gi, ReasoningEncryptedValueSubtypeSchema as Gn, ToolsCapabilitiesSchema as Gr, AssistantMessageSchema as Gt, useLearningContainersInCurrentThread as H, transformHttpEventStream as Hi, RawEventSchema as Hn, ToolCallStatus$1 as Hr, AgentCapabilitiesSchema as Ht, CopilotChatSuggestionPill as I, runHttpRequest as Ii, MultimodalCapabilitiesSchema as In, ToolCallArgsEventSchema as Ir, AGUIError as It, useThreads$1 as J, ɵTHREAD_REQUEST_TIMEOUT_MS as Ji, ReasoningMessageContentEventSchema as Jn, VideoInputContentSchema as Jr, BackwardCompatibility_0_0_39 as Jt, useLearnFromUserAction as K, ɵMAX_SOCKET_RETRIES as Ki, ReasoningEndEventSchema as Kn, TransportCapabilitiesSchema as Kr, AudioInputContentSchema as Kt, CopilotChatReasoningMessage_default as L, select as Li, MultimodalInputCapabilitiesSchema as Ln, ToolCallChunkEventSchema as Lr, AGUI_METADATA_KEY as Lt, IntelligenceIndicator as M, props as Mi, MessagesSnapshotEventSchema as Mn, ThinkingTextMessageContentEventSchema as Mr, CopilotChatAudioRecorder as Mt, getIntelligenceTurnAnchors as N, randomUUID$2 as Ni, MetadataSchema as Nn, ThinkingTextMessageEndEventSchema as Nr, CopilotChatConfigurationProvider as Nt, CopilotChatView_default as O, onInspectorViewThreadResult as Oi, InterruptSchema as On, TextMessageEndEventSchema as Or, CopilotKitInspector as Ot, IntelligenceIndicatorView as P, resolveAgentDebugConfig as Pi, Middleware as Pn, ThinkingTextMessageStartEventSchema as Pr, useCopilotChatConfiguration as Pt, useSuggestions as Q, ɵisCopilotKitFeature as Qi, ReasoningStartEventSchema as Qn, buildResumeArray as Qr, BaseEventSchema as Qt, CopilotChatUserMessage_default as R, structuredClone_ as Ri, MultimodalOutputCapabilitiesSchema as Rn, ToolCallEndEventSchema as Rr, AbstractAgent$1 as Rt, CopilotSidebarView as S, ɵselectThreads$1 as Sa, mergeMetadata as Si, ImageInputPartSchema as Sn, SubagentStartedEventSchema as Sr, SandboxFunctionsContext as St, DefaultCloseIcon as T, ɵthreadAdapterEvents as Ta, onInspectorActiveThread as Ti, InputContentSourceSchema as Tn, TextInputContentSchema as Tr, MCPAppsActivityRenderer as Tt, useLearningContainers as U, verifyEvents as Ui, ReasoningCapabilitiesSchema as Un, ToolMessageSchema as Ur, AgentRegistry as Ut, CopilotChatToolCallsView as V, transformChunks as Vi, ProxiedCopilotRuntimeAgent$1 as Vn, ToolCallStartEventSchema as Vr, ActivitySnapshotEventSchema as Vt, useAttachments as W, ɵCOPILOTKIT_FEATURES as Wi, ReasoningEncryptedValueEventSchema as Wn, ToolSchema as Wr, AgentThreadLockedError as Wt, INTERRUPT_EVENT_NAME as X, ɵcreateThreadSelectors as Xi, ReasoningMessageSchema as Xn, WebMCPRegistry as Xr, BackwardCompatibility_0_0_47 as Xt, useInterrupt as Y, ɵcreateMemoryStore as Yi, ReasoningMessageEndEventSchema as Yn, VideoInputPartSchema as Yr, BackwardCompatibility_0_0_45 as Yt, useConfigureSuggestions as Z, ɵcreateThreadStore$1 as Zi, ReasoningMessageStartEventSchema as Zn, aggregateTokenUsage as Zr, BackwardCompatibility_0_0_57 as Zt, WildcardToolCallRender as _, ɵselectMemoriesAvailable$1 as _a, getWebMCPModelContext as _i, HttpAgent$1 as _n, SubagentErrorEventSchema as _r, GenerateSandboxedUiArgsSchema as _t, ThreadsProvider as a, ɵmemoryRestEvents as aa, createInspectorThreadRequestId as ai, CopilotKitCoreRuntimeConnectionStatus$1 as an, RunFinishedOutcomeSchema as ar, useRenderTool as at, CopilotSidebar as b, ɵselectMemoriesIsMutating as ba, isInterruptExpired as bi, IdentityCapabilitiesSchema as bn, SubagentFinishedSuccessOutcomeSchema as br, OpenGenerativeUIContentSchema as bt, CoAgentStateRendersProvider as c, ɵobservePhoenixSocketHealth$ as ca, createStore as ci, DeveloperMessageSchema as cn, RunStartedEventSchema as cr, useFrontendTool as ct, shouldShowDevConsole as d, ɵphoenixSocket$ as da, emitInspectorStopViewing as di, EventSchemas as dn, StateManager as dr, CopilotKitProvider as dt, ɵjoinPhoenixChannel$ as ea, completePartialMarkdown as ei, BinaryInputContentSchema as en, RoleSchema as er, useCapabilities as et, useToast as f, ɵselectFetchMoreError$1 as fa, emitInspectorViewThread as fi, EventType as fn, StateSchema as fr, useCopilotKit$1 as ft, useCopilotContext as g, ɵselectMemories$1 as ga, getRunOutcome as gi, FunctionMiddleware as gn, SubAgentInfoSchema as gr, createA2UIMessageRenderer as gt, CopilotContext as h, ɵselectIsMutating$1 as ha, ensureObjectArgs as hi, FunctionCallSchema as hn, StepStartedEventSchema as hr, defineToolCallRenderer as ht, ThreadsContext as i, ɵmemoryReducer as ia, createEffect as ii, CopilotKitCoreErrorCode$1 as in, RunFinishedInterruptOutcomeSchema as ir, useDefaultRenderTool as it, INTELLIGENCE_TURN_HEAD as j, parseToolArguments as ji, MessageSchema as jn, ThinkingStartEventSchema as jr, AudioRecorderError as jt, CopilotChatAttachmentQueue as k, parseProtoStream as ki, MEMORY_ERROR_REGISTRY as kn, TextMessageStartEventSchema as kr, useRenderToolCall as kt, useCoAgentStateRenders as l, ɵobservePhoenixSocketSignals$ as la, defaultApplyEvents as li, DocumentInputContentSchema as ln, StateCapabilitiesSchema as lr, useRenderActivityMessage as lt, useCopilotMessagesContext as m, ɵselectIsFetchingNextPage$1 as ma, empty as mi, FilterToolCallsMiddleware as mn, StepFinishedEventSchema as mr, CopilotKitCoreReact as mt, defaultCopilotContextCategories as n, ɵmemoryAdapterEvents as na, createActionGroup as ni, ContextStore as nn, RunErrorEventSchema as nr, useAgent as nt, useThreads as o, ɵobservePhoenixEvent$ as oa, createReducer as oi, CustomEventSchema as on, RunFinishedSuccessOutcomeSchema as or, useComponent as ot, CopilotMessagesContext as p, ɵselectHasNextPage$1 as pa, emitInspectorViewThreadResult$1 as pi, ExecutionCapabilitiesSchema as pn, StateSnapshotEventSchema as pr, useLicenseContext$1 as pt, useMemories as q, ɵRUNTIME_PROBE_TIMEOUT_MS as qi, ReasoningMessageChunkEventSchema as qn, UserMessageSchema as qr, AudioInputPartSchema as qt, CoAgentStateRenderBridge as r, ɵmemoryDomainEvents as ra, createDebugLogger as ri, CopilotKitCore$1 as rn, RunFinishedEventSchema as rr, useHumanInTheLoop as rt, CoAgentStateRendersContext as s, ɵobservePhoenixJoinOutcome$ as sa, createSelector as si, DebugLogger as sn, RunHandler as sr, useFrontendTools as st, CopilotKit as t, ɵmapMemoryMetadataEvent as ta, convertToLegacyEvents as ti, ContextSchema as tn, RunAgentInputSchema as tr, UseAgentUpdate as tt, useAsyncCallback as u, ɵphoenixChannel$ as ua, emitInspectorActiveThread$1 as ui, DocumentInputPartSchema as un, StateDeltaEventSchema as ur, useRenderCustomMessages as ut, CopilotThreadsDrawer as v, ɵselectMemoriesError$1 as va, isAbortError as vi, HumanInTheLoopCapabilitiesSchema as vn, SubagentFinishedEventSchema as vr, OpenGenerativeUIActivityRenderer as vt, CopilotChatToggleButton as w, ɵselectThreadsIsLoading$1 as wa, on as wi, InputContentSchema as wn, SystemMessageSchema as wr, MCPAppsActivityContentSchema as wt, CopilotPopupView as x, ɵselectMemoriesRealtimeStatus$1 as xa, isRunCompletionAware$1 as xi, ImageInputContentSchema as xn, SubagentFinishedSuspendedOutcomeSchema as xr, OpenGenerativeUIToolRenderer as xt, CopilotPopup as y, ɵselectMemoriesIsLoading$1 as ya, isInspectorThreadBridgeEnabled$1 as yi, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID as yn, SubagentFinishedOutcomeSchema as yr, OpenGenerativeUIActivityType as yt, CopilotChatAttachmentRenderer as z, tokenUsageFromAiSdkUsage as zi, OptionalMetadataSchema as zn, ToolCallResultEventSchema as zr, ActivityDeltaEventSchema as zt };
|
|
12551
|
-
//# sourceMappingURL=copilotkit-
|
|
12586
|
+
//# sourceMappingURL=copilotkit-DfsHZUuo.mjs.map
|