@copilotkit/react-core 1.84.2-canary.1793807121 → 1.84.2-canary.1793809041
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-CP8oYU3L.cjs → copilotkit-BhV8iuX5.cjs} +30 -9
- package/dist/{copilotkit-CP8oYU3L.cjs.map → copilotkit-BhV8iuX5.cjs.map} +1 -1
- package/dist/copilotkit-CFqSAotl.d.mts.map +1 -1
- package/dist/copilotkit-OVo9Xjmp.d.cts.map +1 -1
- package/dist/{copilotkit-CdZ3W0B2.mjs → copilotkit-dNtiaQqU.mjs} +30 -9
- package/dist/{copilotkit-CdZ3W0B2.mjs.map → copilotkit-dNtiaQqU.mjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/v2/generative-ui.d.cts +4 -4
- package/dist/v2/generative-ui.d.mts +4 -4
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/index.umd.js +29 -8
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_MarkdownSurfaces = require('./MarkdownSurfaces-IUaWSJ0E.cjs');
|
|
5
|
-
const require_copilotkit = require('./copilotkit-
|
|
5
|
+
const require_copilotkit = require('./copilotkit-BhV8iuX5.cjs');
|
|
6
6
|
let react = require("react");
|
|
7
7
|
react = require_MarkdownSurfaces.__toESM(react);
|
|
8
8
|
let _copilotkit_core = require("@copilotkit/core");
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { $ as INTERRUPT_EVENT_NAME, Mt as useRenderToolCall$1, Q as useInterrupt, a as ThreadsProvider, at as useAgent, c as CoAgentStateRendersProvider, d as shouldShowDevConsole, et as useConfigureSuggestions, f as useToast, ft as useFrontendTool$1, g as useCopilotContext, gt as useCopilotKit, h as CopilotContext, i as ThreadsContext, l as useCoAgentStateRenders, m as useCopilotMessagesContext, mt as useRenderCustomMessages, n as defaultCopilotContextCategories, o as useThreads, ot as useHumanInTheLoop$1, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, s as CoAgentStateRendersContext, t as CopilotKit, tt as useSuggestions, u as useAsyncCallback } from "./copilotkit-
|
|
3
|
+
import { $ as INTERRUPT_EVENT_NAME, Mt as useRenderToolCall$1, Q as useInterrupt, a as ThreadsProvider, at as useAgent, c as CoAgentStateRendersProvider, d as shouldShowDevConsole, et as useConfigureSuggestions, f as useToast, ft as useFrontendTool$1, g as useCopilotContext, gt as useCopilotKit, h as CopilotContext, i as ThreadsContext, l as useCoAgentStateRenders, m as useCopilotMessagesContext, mt as useRenderCustomMessages, n as defaultCopilotContextCategories, o as useThreads, ot as useHumanInTheLoop$1, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, s as CoAgentStateRendersContext, t as CopilotKit, tt as useSuggestions, u as useAsyncCallback } from "./copilotkit-dNtiaQqU.mjs";
|
|
4
4
|
import { B as useCopilotChatConfiguration, F as defineToolCallRenderer } from "./MarkdownSurfaces-DV9P0Gi9.mjs";
|
|
5
5
|
import React, { Fragment, createElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { CopilotKitCoreRuntimeConnectionStatus, ToolCallStatus, ɵisHttpAgent } from "@copilotkit/core";
|
package/dist/index.umd.js
CHANGED
|
@@ -625,7 +625,7 @@ react_markdown = __toESM(react_markdown);
|
|
|
625
625
|
|
|
626
626
|
//#endregion
|
|
627
627
|
//#region package.json
|
|
628
|
-
var version = "1.84.2-canary.
|
|
628
|
+
var version = "1.84.2-canary.1793809041";
|
|
629
629
|
|
|
630
630
|
//#endregion
|
|
631
631
|
//#region src/v2/components/CopilotKitInspector.tsx
|
|
@@ -1043,14 +1043,14 @@ declare const standardUI: GenerativeUI<{
|
|
|
1043
1043
|
componentId: zod.ZodOptional<zod.ZodString>;
|
|
1044
1044
|
}, "strip", zod.ZodTypeAny, {
|
|
1045
1045
|
label: string;
|
|
1046
|
+
componentId?: string | undefined;
|
|
1046
1047
|
align?: "start" | "center" | "end" | undefined;
|
|
1047
1048
|
width?: string | number | undefined;
|
|
1048
|
-
componentId?: string | undefined;
|
|
1049
1049
|
}, {
|
|
1050
1050
|
label: string;
|
|
1051
|
+
componentId?: string | undefined;
|
|
1051
1052
|
align?: "start" | "center" | "end" | undefined;
|
|
1052
1053
|
width?: string | number | undefined;
|
|
1053
|
-
componentId?: string | undefined;
|
|
1054
1054
|
}>, zod.ZodUnion<[zod.ZodObject<{
|
|
1055
1055
|
componentId: zod.ZodString;
|
|
1056
1056
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -1072,9 +1072,9 @@ declare const standardUI: GenerativeUI<{
|
|
|
1072
1072
|
}, "strip", zod.ZodTypeAny, {
|
|
1073
1073
|
columns?: (string | {
|
|
1074
1074
|
label: string;
|
|
1075
|
+
componentId?: string | undefined;
|
|
1075
1076
|
align?: "start" | "center" | "end" | undefined;
|
|
1076
1077
|
width?: string | number | undefined;
|
|
1077
|
-
componentId?: string | undefined;
|
|
1078
1078
|
} | {
|
|
1079
1079
|
componentId: string;
|
|
1080
1080
|
} | {
|
|
@@ -1089,9 +1089,9 @@ declare const standardUI: GenerativeUI<{
|
|
|
1089
1089
|
}, {
|
|
1090
1090
|
columns?: (string | {
|
|
1091
1091
|
label: string;
|
|
1092
|
+
componentId?: string | undefined;
|
|
1092
1093
|
align?: "start" | "center" | "end" | undefined;
|
|
1093
1094
|
width?: string | number | undefined;
|
|
1094
|
-
componentId?: string | undefined;
|
|
1095
1095
|
} | {
|
|
1096
1096
|
componentId: string;
|
|
1097
1097
|
} | {
|
|
@@ -1043,14 +1043,14 @@ declare const standardUI: GenerativeUI<{
|
|
|
1043
1043
|
componentId: zod.ZodOptional<zod.ZodString>;
|
|
1044
1044
|
}, "strip", zod.ZodTypeAny, {
|
|
1045
1045
|
label: string;
|
|
1046
|
+
componentId?: string | undefined;
|
|
1046
1047
|
align?: "start" | "center" | "end" | undefined;
|
|
1047
1048
|
width?: string | number | undefined;
|
|
1048
|
-
componentId?: string | undefined;
|
|
1049
1049
|
}, {
|
|
1050
1050
|
label: string;
|
|
1051
|
+
componentId?: string | undefined;
|
|
1051
1052
|
align?: "start" | "center" | "end" | undefined;
|
|
1052
1053
|
width?: string | number | undefined;
|
|
1053
|
-
componentId?: string | undefined;
|
|
1054
1054
|
}>, zod.ZodUnion<[zod.ZodObject<{
|
|
1055
1055
|
componentId: zod.ZodString;
|
|
1056
1056
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -1072,9 +1072,9 @@ declare const standardUI: GenerativeUI<{
|
|
|
1072
1072
|
}, "strip", zod.ZodTypeAny, {
|
|
1073
1073
|
columns?: (string | {
|
|
1074
1074
|
label: string;
|
|
1075
|
+
componentId?: string | undefined;
|
|
1075
1076
|
align?: "start" | "center" | "end" | undefined;
|
|
1076
1077
|
width?: string | number | undefined;
|
|
1077
|
-
componentId?: string | undefined;
|
|
1078
1078
|
} | {
|
|
1079
1079
|
componentId: string;
|
|
1080
1080
|
} | {
|
|
@@ -1089,9 +1089,9 @@ declare const standardUI: GenerativeUI<{
|
|
|
1089
1089
|
}, {
|
|
1090
1090
|
columns?: (string | {
|
|
1091
1091
|
label: string;
|
|
1092
|
+
componentId?: string | undefined;
|
|
1092
1093
|
align?: "start" | "center" | "end" | undefined;
|
|
1093
1094
|
width?: string | number | undefined;
|
|
1094
|
-
componentId?: string | undefined;
|
|
1095
1095
|
} | {
|
|
1096
1096
|
componentId: string;
|
|
1097
1097
|
} | {
|
package/dist/v2/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_MarkdownSurfaces = require('../MarkdownSurfaces-IUaWSJ0E.cjs');
|
|
5
|
-
const require_copilotkit = require('../copilotkit-
|
|
5
|
+
const require_copilotkit = require('../copilotkit-BhV8iuX5.cjs');
|
|
6
6
|
require("./index.css");
|
|
7
7
|
let _copilotkit_a2ui_renderer = require("@copilotkit/a2ui-renderer");
|
|
8
8
|
let _copilotkit_core = require("@copilotkit/core");
|
package/dist/v2/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { $ as INTERRUPT_EVENT_NAME, $a as ɵobservePhoenixEvent$, $i as getMarkdownOperationSurfaceId, $n as MetadataSchema, $r as TextInputContentSchema, $t as AudioInputPartSchema, A as CopilotChatMessageView, Aa as transformChunks, Ai as contentHasMedia, An as FunctionCallSchema, Ar as RunFinishedInterruptOutcomeSchema, At as ɵrunMcpFollowUp, B as CopilotChatReasoningMessage_default, Ba as ɵcreateMemoryStore, Bi as defaultApplyEvents, Bn as InputContentSchema, Br as StepFinishedEventSchema, Bt as AGUIError, C as CopilotModalHeader, Ca as runHttpRequest, Ci as WebMCPRegistry, Cn as EventSchema, Cr as ReplaceOperationSchema, Ct as OpenGenerativeUIContentSchema, D as CopilotChat, Da as structuredClone_, Di as classifySurfaceCards, Dn as ExecutionCapabilitiesSchema, Dr as RunErrorEventSchema, Dt as MCPAppsActivityContentSchema, E as DefaultOpenIcon, Ea as splitA2UIMarkdown, Ei as buildResumeArray, En as EventTypeSchema, Er as RunAgentInputSchema, Et as useSandboxFunctions, F as getIntelligenceTurnAnchors, Fa as ɵInterruptState, Fi as createEffect, Fn as IdentityCapabilitiesSchema, Fr as StateCapabilitiesSchema, Ft as CopilotChatAudioRecorder, G as useLearningContainersInCurrentThread, Ga as ɵisHttpAgent, Gi as empty, Gn as InterruptSchema, Gr as SubagentFinishedSuccessOutcomeSchema, Gt as ActivitySnapshotEventSchema, H as CopilotChatAttachmentRenderer, Ha as ɵcreateThreadStore, Hi as emitInspectorStopViewing, Hn as InputContentUrlSourceSchema, Hr as SubagentErrorEventSchema, Ht as AbstractAgent, I as IntelligenceIndicatorView, Ia as ɵMAX_SOCKET_RETRIES, Ii as createInspectorThreadRequestId, In as ImageInputContentSchema, Ir as StateDeltaEventSchema, It as A2UI_FENCE_LANGUAGE, J as useLearnFromUserActionInCurrentThread, Ja as ɵmapMemoryMetadataEvent, Ji as ensureObjectArgs, Jn as JsonPointerSchema, Jr as SubagentRunIdSchema, Jt as AgentRegistry, K as useLearningContainers, Ka as ɵisRetryableMemoryStatus, Ki as enforceEvents, Kn as JsonPatchOperationSchema, Kr as SubagentFinishedSuspendedOutcomeSchema, Kt as AddOperationSchema, L as CopilotChatWorkSummary, La as ɵRUNTIME_PROBE_TIMEOUT_MS, Li as createReducer, Ln as ImageInputPartSchema, Lr as StateManager, Lt as ACTIVITY_HISTORY_METADATA, M as messageRow, Ma as verifyEvents, Mi as convertToLegacyEvents, Mn as HttpAgent, Mr as RunFinishedSuccessOutcomeSchema, Mt as useRenderToolCall, N as INTELLIGENCE_TURN_HEAD, Na as withAuthoritativeActivityTypes, Ni as createActionGroup, Nn as HumanInTheLoopCapabilitiesSchema, Nr as RunHandler, Nt as CopilotChatInput_default, O as CopilotChatView_default, Oa as tokenUsageFromAiSdkUsage, Oi as compactEvents, On as FileSourceSchema, Or as RunFinishedCancelledOutcomeSchema, Ot as MCPAppsActivityRenderer, P as IntelligenceIndicator, Pa as ɵCOPILOTKIT_FEATURES, Pi as createDebugLogger, Pn as INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, Pr as RunStartedEventSchema, Pt as AudioRecorderError, Q as useInterrupt, Qa as ɵmemoryRestEvents, Qi as flattenInformationalCards, Qn as MessagesSnapshotEventSchema, Qr as TestOperationSchema, Qt as AudioInputContentSchema, R as CopilotChatSuggestionView, Ra as ɵTHREAD_REQUEST_TIMEOUT_MS, Ri as createSelector, Rn as ImagePartSchema, Rr as StateSchema, Rt as AGUIConnectNotImplementedError, S as CopilotSidebarView, Sa as resolveDebugLogger, Si as VideoPartSchema, Sn as DocumentPartSchema, Sr as RemoveOperationSchema, St as OpenGenerativeUIActivityType, T as DefaultCloseIcon, Ta as select, Ti as authoritativeActivityTypes, Tn as EventType, Tr as RoleSchema, Tt as SandboxFunctionsContext, U as CopilotChatAssistantMessage_default, Ua as ɵgetAgentInterruptState, Ui as emitInspectorViewThread, Un as IntelligenceAgent, Ur as SubagentFinishedEventSchema, Ut as ActivityDeltaEventSchema, V as CopilotChatUserMessage_default, Va as ɵcreateThreadSelectors, Vi as emitInspectorActiveThread, Vn as InputContentSourceSchema, Vr as StepStartedEventSchema, Vt as AGUI_METADATA_KEY, W as CopilotChatToolCallsView, Wa as ɵisCopilotKitFeature, Wi as emitInspectorViewThreadResult, Wn as IntelligenceReplayFailedError, Wr as SubagentFinishedOutcomeSchema, Wt as ActivityMessageSchema, X as useMemories, Xa as ɵmemoryDomainEvents, Xi as extractFenceOperations, Xn as MemoryError, Xr as SuggestionEngine, Xt as AssistantMessageSchema, Y as useLearnFromUserAction, Ya as ɵmemoryAdapterEvents, Yi as extractCompleteArrayItems, Yn as MEMORY_ERROR_REGISTRY, Yr as SubagentStartedEventSchema, Yt as AgentThreadLockedError, Z as useThreads, Za as ɵmemoryReducer, Zi as extractStringField, Zn as MessageSchema, Zr as SystemMessageSchema, Zt as AttributableSchema, _ as WildcardToolCallRender, _a as parseToolArguments, _i as TransportCapabilitiesSchema, _n as DataSourceSchema, _o as ɵselectThreadsIsLoading, _r as ReasoningMessageContentEventSchema, _t as useLicenseContext, aa as isRecognizedEvent, ai as TextPartSchema, an as BaseMessageSchema, ao as ɵselectFetchMoreError, ar as MultimodalOutputCapabilitiesSchema, at as useAgent, b as CopilotSidebar, ba as randomUUID, bi as VideoInputContentSchema, bn as DocumentInputContentSchema, br as ReasoningMessageStartEventSchema, bt as GenerateSandboxedUiArgsSchema, ca as ofType, ci as ToolCallChunkEventSchema, cn as ContextSchema, co as ɵselectIsMutating, cr as PROTOCOL_VERSION, ct as CopilotChatToolCallGroup, da as onInspectorActiveThread, di as ToolCallSchema, dn as CopilotKitCoreErrorCode, do as ɵselectMemoriesError, dr as RawEventSchema, dt as useFrontendTools, ea as getRunOutcome, ei as TextMessageChunkEventSchema, en as AudioPartSchema, eo as ɵobservePhoenixJoinOutcome$, er as Middleware, et as useConfigureSuggestions, fa as onInspectorStopViewing, fi as ToolCallStartEventSchema, fn as CopilotKitCoreRuntimeConnectionStatus, fo as ɵselectMemoriesIsLoading, fr as ReasoningCapabilitiesSchema, ft as useFrontendTool, ga as parseSSEStream, gi as ToolsCapabilitiesSchema, gn as DEFAULT_MAX_ENFORCED_ENTRIES, go as ɵselectThreadsError, gr as ReasoningMessageChunkEventSchema, gt as useCopilotKit, ha as parseProtoStream, hi as ToolSchema, hn as CustomEventSchema, ho as ɵselectThreads, hr as ReasoningEndEventSchema, ht as CopilotKitProvider, ia as isInterruptExpired, ii as TextMessageStartEventSchema, in as BaseEventSchema, io as ɵphoenixSocket$, ir as MultimodalInputCapabilitiesSchema, it as UseAgentUpdate, j as messageGroup, ja as transformHttpEventStream, ji as contentToText, jn as FunctionMiddleware, jr as RunFinishedOutcomeSchema, jt as CopilotKitInspector, k as CopilotChatAttachmentQueue, ka as tokenUsageFromLangChainMetadata, ki as completePartialMarkdown, kn as FilterToolCallsMiddleware, kr as RunFinishedEventSchema, kt as MCPAppsActivityType, la as omitOptionalNulls, li as ToolCallEndEventSchema, ln as ContextStore, lo as ɵselectMemories, lr as PartSourceSchema, lt as useRenderTool, ma as onInspectorViewThreadResult, mi as ToolMessageSchema, mn as CopyOperationSchema, mo as ɵselectMemoriesRealtimeStatus, mr as ReasoningEncryptedValueSubtypeSchema, mt as useRenderCustomMessages, na as isAbortError, ni as TextMessageEndEventSchema, nn as BackwardCompatibility_0_0_45, no as ɵobservePhoenixSocketSignals$, nr as MultiAgentCapabilitiesSchema, nt as useAgentContext, oa as isRunCompletionAware, oi as TokenUsageSchema, on as CompatibilityBoundary, oo as ɵselectHasNextPage, or as OptionalMetadataSchema, ot as useHumanInTheLoop, pa as onInspectorViewThread, pi as ToolCallStatus, pn as CopilotKitHeaderResolutionError, po as ɵselectMemoriesIsMutating, pr as ReasoningEncryptedValueEventSchema, pt as useRenderActivityMessage, q as useAttachments, qa as ɵjoinPhoenixChannel$, qi as enforceOutgoingInput, qn as JsonPatchSchema, qr as SubagentInfoSchema, qt as AgentCapabilitiesSchema, ra as isInspectorThreadBridgeEnabled, ri as TextMessageRoleSchema, rn as BackwardCompatibility_0_0_57, ro as ɵphoenixChannel$, rr as MultimodalCapabilitiesSchema, rt as useCapabilities, sa as mergeMetadata, si as ToolCallArgsEventSchema, sn as ContentPartSchema, so as ɵselectIsFetchingNextPage, sr as OutputCapabilitiesSchema, st as useDefaultRenderTool, t as CopilotKit, ta as getWebMCPModelContext, ti as TextMessageContentEventSchema, tn as BackwardCompatibility_0_0_39, to as ɵobservePhoenixSocketHealth$, tr as MoveOperationSchema, tt as useSuggestions, ua as on, ui as ToolCallResultEventSchema, un as CopilotKitCore, uo as ɵselectMemoriesAvailable, ur as ProxiedCopilotRuntimeAgent, ut as useComponent, v as CopilotThreadsDrawer, va as prepareSurfaceOperations, vi as UrlSourceSchema, vn as DebugLogger, vo as ɵthreadAdapterEvents, vr as ReasoningMessageEndEventSchema, vt as CopilotKitCoreReact, w as CopilotChatToggleButton, wa as segmentSurfaceProse, wi as aggregateTokenUsage, wn as EventSchemas, wr as ResumeEntrySchema, wt as OpenGenerativeUIToolRenderer, x as CopilotPopupView, xa as resolveAgentDebugConfig, xi as VideoInputPartSchema, xn as DocumentInputPartSchema, xr as ReasoningStartEventSchema, xt as OpenGenerativeUIActivityRenderer, y as CopilotPopup, ya as props, yi as UserMessageSchema, yn as DeveloperMessageSchema, yo as ɵwithHeaderDefaults, yr as ReasoningMessageSchema, yt as createA2UIMessageRenderer, z as CopilotChatSuggestionPill, za as ɵclearAgentInterruptState, zi as createStore, zn as InputContentDataSourceSchema, zr as StateSnapshotEventSchema, zt as AGUIEnforcementLimitError } from "../copilotkit-
|
|
3
|
+
import { $ as INTERRUPT_EVENT_NAME, $a as ɵobservePhoenixEvent$, $i as getMarkdownOperationSurfaceId, $n as MetadataSchema, $r as TextInputContentSchema, $t as AudioInputPartSchema, A as CopilotChatMessageView, Aa as transformChunks, Ai as contentHasMedia, An as FunctionCallSchema, Ar as RunFinishedInterruptOutcomeSchema, At as ɵrunMcpFollowUp, B as CopilotChatReasoningMessage_default, Ba as ɵcreateMemoryStore, Bi as defaultApplyEvents, Bn as InputContentSchema, Br as StepFinishedEventSchema, Bt as AGUIError, C as CopilotModalHeader, Ca as runHttpRequest, Ci as WebMCPRegistry, Cn as EventSchema, Cr as ReplaceOperationSchema, Ct as OpenGenerativeUIContentSchema, D as CopilotChat, Da as structuredClone_, Di as classifySurfaceCards, Dn as ExecutionCapabilitiesSchema, Dr as RunErrorEventSchema, Dt as MCPAppsActivityContentSchema, E as DefaultOpenIcon, Ea as splitA2UIMarkdown, Ei as buildResumeArray, En as EventTypeSchema, Er as RunAgentInputSchema, Et as useSandboxFunctions, F as getIntelligenceTurnAnchors, Fa as ɵInterruptState, Fi as createEffect, Fn as IdentityCapabilitiesSchema, Fr as StateCapabilitiesSchema, Ft as CopilotChatAudioRecorder, G as useLearningContainersInCurrentThread, Ga as ɵisHttpAgent, Gi as empty, Gn as InterruptSchema, Gr as SubagentFinishedSuccessOutcomeSchema, Gt as ActivitySnapshotEventSchema, H as CopilotChatAttachmentRenderer, Ha as ɵcreateThreadStore, Hi as emitInspectorStopViewing, Hn as InputContentUrlSourceSchema, Hr as SubagentErrorEventSchema, Ht as AbstractAgent, I as IntelligenceIndicatorView, Ia as ɵMAX_SOCKET_RETRIES, Ii as createInspectorThreadRequestId, In as ImageInputContentSchema, Ir as StateDeltaEventSchema, It as A2UI_FENCE_LANGUAGE, J as useLearnFromUserActionInCurrentThread, Ja as ɵmapMemoryMetadataEvent, Ji as ensureObjectArgs, Jn as JsonPointerSchema, Jr as SubagentRunIdSchema, Jt as AgentRegistry, K as useLearningContainers, Ka as ɵisRetryableMemoryStatus, Ki as enforceEvents, Kn as JsonPatchOperationSchema, Kr as SubagentFinishedSuspendedOutcomeSchema, Kt as AddOperationSchema, L as CopilotChatWorkSummary, La as ɵRUNTIME_PROBE_TIMEOUT_MS, Li as createReducer, Ln as ImageInputPartSchema, Lr as StateManager, Lt as ACTIVITY_HISTORY_METADATA, M as messageRow, Ma as verifyEvents, Mi as convertToLegacyEvents, Mn as HttpAgent, Mr as RunFinishedSuccessOutcomeSchema, Mt as useRenderToolCall, N as INTELLIGENCE_TURN_HEAD, Na as withAuthoritativeActivityTypes, Ni as createActionGroup, Nn as HumanInTheLoopCapabilitiesSchema, Nr as RunHandler, Nt as CopilotChatInput_default, O as CopilotChatView_default, Oa as tokenUsageFromAiSdkUsage, Oi as compactEvents, On as FileSourceSchema, Or as RunFinishedCancelledOutcomeSchema, Ot as MCPAppsActivityRenderer, P as IntelligenceIndicator, Pa as ɵCOPILOTKIT_FEATURES, Pi as createDebugLogger, Pn as INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, Pr as RunStartedEventSchema, Pt as AudioRecorderError, Q as useInterrupt, Qa as ɵmemoryRestEvents, Qi as flattenInformationalCards, Qn as MessagesSnapshotEventSchema, Qr as TestOperationSchema, Qt as AudioInputContentSchema, R as CopilotChatSuggestionView, Ra as ɵTHREAD_REQUEST_TIMEOUT_MS, Ri as createSelector, Rn as ImagePartSchema, Rr as StateSchema, Rt as AGUIConnectNotImplementedError, S as CopilotSidebarView, Sa as resolveDebugLogger, Si as VideoPartSchema, Sn as DocumentPartSchema, Sr as RemoveOperationSchema, St as OpenGenerativeUIActivityType, T as DefaultCloseIcon, Ta as select, Ti as authoritativeActivityTypes, Tn as EventType, Tr as RoleSchema, Tt as SandboxFunctionsContext, U as CopilotChatAssistantMessage_default, Ua as ɵgetAgentInterruptState, Ui as emitInspectorViewThread, Un as IntelligenceAgent, Ur as SubagentFinishedEventSchema, Ut as ActivityDeltaEventSchema, V as CopilotChatUserMessage_default, Va as ɵcreateThreadSelectors, Vi as emitInspectorActiveThread, Vn as InputContentSourceSchema, Vr as StepStartedEventSchema, Vt as AGUI_METADATA_KEY, W as CopilotChatToolCallsView, Wa as ɵisCopilotKitFeature, Wi as emitInspectorViewThreadResult, Wn as IntelligenceReplayFailedError, Wr as SubagentFinishedOutcomeSchema, Wt as ActivityMessageSchema, X as useMemories, Xa as ɵmemoryDomainEvents, Xi as extractFenceOperations, Xn as MemoryError, Xr as SuggestionEngine, Xt as AssistantMessageSchema, Y as useLearnFromUserAction, Ya as ɵmemoryAdapterEvents, Yi as extractCompleteArrayItems, Yn as MEMORY_ERROR_REGISTRY, Yr as SubagentStartedEventSchema, Yt as AgentThreadLockedError, Z as useThreads, Za as ɵmemoryReducer, Zi as extractStringField, Zn as MessageSchema, Zr as SystemMessageSchema, Zt as AttributableSchema, _ as WildcardToolCallRender, _a as parseToolArguments, _i as TransportCapabilitiesSchema, _n as DataSourceSchema, _o as ɵselectThreadsIsLoading, _r as ReasoningMessageContentEventSchema, _t as useLicenseContext, aa as isRecognizedEvent, ai as TextPartSchema, an as BaseMessageSchema, ao as ɵselectFetchMoreError, ar as MultimodalOutputCapabilitiesSchema, at as useAgent, b as CopilotSidebar, ba as randomUUID, bi as VideoInputContentSchema, bn as DocumentInputContentSchema, br as ReasoningMessageStartEventSchema, bt as GenerateSandboxedUiArgsSchema, ca as ofType, ci as ToolCallChunkEventSchema, cn as ContextSchema, co as ɵselectIsMutating, cr as PROTOCOL_VERSION, ct as CopilotChatToolCallGroup, da as onInspectorActiveThread, di as ToolCallSchema, dn as CopilotKitCoreErrorCode, do as ɵselectMemoriesError, dr as RawEventSchema, dt as useFrontendTools, ea as getRunOutcome, ei as TextMessageChunkEventSchema, en as AudioPartSchema, eo as ɵobservePhoenixJoinOutcome$, er as Middleware, et as useConfigureSuggestions, fa as onInspectorStopViewing, fi as ToolCallStartEventSchema, fn as CopilotKitCoreRuntimeConnectionStatus, fo as ɵselectMemoriesIsLoading, fr as ReasoningCapabilitiesSchema, ft as useFrontendTool, ga as parseSSEStream, gi as ToolsCapabilitiesSchema, gn as DEFAULT_MAX_ENFORCED_ENTRIES, go as ɵselectThreadsError, gr as ReasoningMessageChunkEventSchema, gt as useCopilotKit, ha as parseProtoStream, hi as ToolSchema, hn as CustomEventSchema, ho as ɵselectThreads, hr as ReasoningEndEventSchema, ht as CopilotKitProvider, ia as isInterruptExpired, ii as TextMessageStartEventSchema, in as BaseEventSchema, io as ɵphoenixSocket$, ir as MultimodalInputCapabilitiesSchema, it as UseAgentUpdate, j as messageGroup, ja as transformHttpEventStream, ji as contentToText, jn as FunctionMiddleware, jr as RunFinishedOutcomeSchema, jt as CopilotKitInspector, k as CopilotChatAttachmentQueue, ka as tokenUsageFromLangChainMetadata, ki as completePartialMarkdown, kn as FilterToolCallsMiddleware, kr as RunFinishedEventSchema, kt as MCPAppsActivityType, la as omitOptionalNulls, li as ToolCallEndEventSchema, ln as ContextStore, lo as ɵselectMemories, lr as PartSourceSchema, lt as useRenderTool, ma as onInspectorViewThreadResult, mi as ToolMessageSchema, mn as CopyOperationSchema, mo as ɵselectMemoriesRealtimeStatus, mr as ReasoningEncryptedValueSubtypeSchema, mt as useRenderCustomMessages, na as isAbortError, ni as TextMessageEndEventSchema, nn as BackwardCompatibility_0_0_45, no as ɵobservePhoenixSocketSignals$, nr as MultiAgentCapabilitiesSchema, nt as useAgentContext, oa as isRunCompletionAware, oi as TokenUsageSchema, on as CompatibilityBoundary, oo as ɵselectHasNextPage, or as OptionalMetadataSchema, ot as useHumanInTheLoop, pa as onInspectorViewThread, pi as ToolCallStatus, pn as CopilotKitHeaderResolutionError, po as ɵselectMemoriesIsMutating, pr as ReasoningEncryptedValueEventSchema, pt as useRenderActivityMessage, q as useAttachments, qa as ɵjoinPhoenixChannel$, qi as enforceOutgoingInput, qn as JsonPatchSchema, qr as SubagentInfoSchema, qt as AgentCapabilitiesSchema, ra as isInspectorThreadBridgeEnabled, ri as TextMessageRoleSchema, rn as BackwardCompatibility_0_0_57, ro as ɵphoenixChannel$, rr as MultimodalCapabilitiesSchema, rt as useCapabilities, sa as mergeMetadata, si as ToolCallArgsEventSchema, sn as ContentPartSchema, so as ɵselectIsFetchingNextPage, sr as OutputCapabilitiesSchema, st as useDefaultRenderTool, t as CopilotKit, ta as getWebMCPModelContext, ti as TextMessageContentEventSchema, tn as BackwardCompatibility_0_0_39, to as ɵobservePhoenixSocketHealth$, tr as MoveOperationSchema, tt as useSuggestions, ua as on, ui as ToolCallResultEventSchema, un as CopilotKitCore, uo as ɵselectMemoriesAvailable, ur as ProxiedCopilotRuntimeAgent, ut as useComponent, v as CopilotThreadsDrawer, va as prepareSurfaceOperations, vi as UrlSourceSchema, vn as DebugLogger, vo as ɵthreadAdapterEvents, vr as ReasoningMessageEndEventSchema, vt as CopilotKitCoreReact, w as CopilotChatToggleButton, wa as segmentSurfaceProse, wi as aggregateTokenUsage, wn as EventSchemas, wr as ResumeEntrySchema, wt as OpenGenerativeUIToolRenderer, x as CopilotPopupView, xa as resolveAgentDebugConfig, xi as VideoInputPartSchema, xn as DocumentInputPartSchema, xr as ReasoningStartEventSchema, xt as OpenGenerativeUIActivityRenderer, y as CopilotPopup, ya as props, yi as UserMessageSchema, yn as DeveloperMessageSchema, yo as ɵwithHeaderDefaults, yr as ReasoningMessageSchema, yt as createA2UIMessageRenderer, z as CopilotChatSuggestionPill, za as ɵclearAgentInterruptState, zi as createStore, zn as InputContentDataSourceSchema, zr as StateSnapshotEventSchema, zt as AGUIEnforcementLimitError } from "../copilotkit-dNtiaQqU.mjs";
|
|
4
4
|
import { B as useCopilotChatConfiguration, F as defineToolCallRenderer, R as CopilotChatConfigurationProvider } from "../MarkdownSurfaces-DV9P0Gi9.mjs";
|
|
5
5
|
import "./index.css";
|
|
6
6
|
import { defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
|
package/dist/v2/index.umd.js
CHANGED
|
@@ -1825,7 +1825,7 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
1825
1825
|
|
|
1826
1826
|
//#endregion
|
|
1827
1827
|
//#region package.json
|
|
1828
|
-
var version = "1.84.2-canary.
|
|
1828
|
+
var version = "1.84.2-canary.1793809041";
|
|
1829
1829
|
|
|
1830
1830
|
//#endregion
|
|
1831
1831
|
//#region src/v2/components/CopilotKitInspector.tsx
|
|
@@ -13622,6 +13622,7 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
13622
13622
|
};
|
|
13623
13623
|
}
|
|
13624
13624
|
const GROUP_ROW_KEY_PREFIX = "copilotkit-group:";
|
|
13625
|
+
const MESSAGE_ROW_KEY_PREFIX = "copilotkit-message:";
|
|
13625
13626
|
const VIRTUALIZE_THRESHOLD = 50;
|
|
13626
13627
|
function CopilotChatMessageView({ messages = [], assistantMessage, userMessage, reasoningMessage, cursor, intelligenceIndicator, workSummary, isRunning = false, transformMessages, groupMessages, messageFeedback = true, toolCallDisplay = "grouped", children, className, ...props }) {
|
|
13627
13628
|
const isPinnedToBottom = (0, react.useContext)(ScrollPinnedContext);
|
|
@@ -13795,6 +13796,14 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
13795
13796
|
(0, _copilotkit_shared.commitRowKeyStore)(rowKeyStore, renderedMessages);
|
|
13796
13797
|
}, [rowKeyStore, renderedMessages]);
|
|
13797
13798
|
const stableGroupKey = (key) => rowRenderKeys.get(key) ?? key;
|
|
13799
|
+
const rowKey = (row) => row.type === "group" ? `${GROUP_ROW_KEY_PREFIX}${stableGroupKey(row.key)}` : `${MESSAGE_ROW_KEY_PREFIX}${rowRenderKeys.get(row.message.id) ?? row.message.id}`;
|
|
13800
|
+
const previousRowKeysRef = (0, react.useRef)([]);
|
|
13801
|
+
const rowKeys = (0, react.useMemo)(() => {
|
|
13802
|
+
const next = rows.map(rowKey);
|
|
13803
|
+
const previous = previousRowKeysRef.current;
|
|
13804
|
+
return next.length === previous.length && next.every((key, index) => key === previous[index]) ? previous : next;
|
|
13805
|
+
}, [rows, rowRenderKeys]);
|
|
13806
|
+
previousRowKeysRef.current = rowKeys;
|
|
13798
13807
|
const groupStateRef = (0, react.useRef)(/* @__PURE__ */ new Map());
|
|
13799
13808
|
const groupSettersRef = (0, react.useRef)(/* @__PURE__ */ new Map());
|
|
13800
13809
|
const groupStateThreadRef = (0, react.useRef)(config?.threadId);
|
|
@@ -13880,6 +13889,8 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
13880
13889
|
total: 0,
|
|
13881
13890
|
sizes: /* @__PURE__ */ new Map()
|
|
13882
13891
|
});
|
|
13892
|
+
const rowKeysRef = react.default.useRef(rowKeys);
|
|
13893
|
+
rowKeysRef.current = rowKeys;
|
|
13883
13894
|
const resizeAnchorRef = react.default.useRef(null);
|
|
13884
13895
|
const restoringVisibilityRef = react.default.useRef(false);
|
|
13885
13896
|
const firstMessageId = deduplicatedMessages[0]?.id;
|
|
@@ -13892,10 +13903,21 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
13892
13903
|
sizes: /* @__PURE__ */ new Map()
|
|
13893
13904
|
};
|
|
13894
13905
|
}
|
|
13906
|
+
const measuredKeysRef = react.default.useRef(rowKeys);
|
|
13907
|
+
if (measuredKeysRef.current !== rowKeys) {
|
|
13908
|
+
measuredKeysRef.current = rowKeys;
|
|
13909
|
+
const live = new Set(rowKeys);
|
|
13910
|
+
const measured = measuredRef.current;
|
|
13911
|
+
for (const [key, height] of measured.sizes) if (!live.has(key)) {
|
|
13912
|
+
measured.sizes.delete(key);
|
|
13913
|
+
measured.total -= height;
|
|
13914
|
+
}
|
|
13915
|
+
}
|
|
13895
13916
|
const estimateRowSize = react.default.useCallback(() => {
|
|
13896
13917
|
const { total, sizes } = measuredRef.current;
|
|
13897
13918
|
return sizes.size > 0 ? Math.max(1, Math.round(total / sizes.size)) : 100;
|
|
13898
13919
|
}, []);
|
|
13920
|
+
const getRowKey = react.default.useCallback((index) => rowKeys[index] ?? index, [rowKeys]);
|
|
13899
13921
|
const isPinnedToBottomRef = react.default.useRef(isPinnedToBottom);
|
|
13900
13922
|
const measuredWidthRef = react.default.useRef(null);
|
|
13901
13923
|
const captureResizeAnchor = react.default.useCallback((instance) => {
|
|
@@ -13920,12 +13942,13 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
13920
13942
|
captureResizeAnchor(instance);
|
|
13921
13943
|
const height = el?.getBoundingClientRect().height ?? 0;
|
|
13922
13944
|
const index = Number(el?.dataset?.index);
|
|
13923
|
-
|
|
13945
|
+
const key = Number.isInteger(index) ? rowKeysRef.current[index] : void 0;
|
|
13946
|
+
if (height > 0 && key !== void 0) {
|
|
13924
13947
|
const { total, sizes } = measuredRef.current;
|
|
13925
|
-
measuredRef.current.total = total - (sizes.get(
|
|
13926
|
-
sizes.set(
|
|
13948
|
+
measuredRef.current.total = total - (sizes.get(key) ?? 0) + height;
|
|
13949
|
+
sizes.set(key, height);
|
|
13927
13950
|
}
|
|
13928
|
-
return height > 0 ? height : measuredRef.current.sizes.get(
|
|
13951
|
+
return height > 0 ? height : (key === void 0 ? void 0 : measuredRef.current.sizes.get(key)) ?? 100;
|
|
13929
13952
|
}, [captureResizeAnchor]);
|
|
13930
13953
|
const shouldAdjustScrollOnResize = react.default.useCallback((item, _delta, instance) => {
|
|
13931
13954
|
if (isPinnedToBottomRef.current || resizeAnchorRef.current || restoringVisibilityRef.current) return false;
|
|
@@ -13991,6 +14014,7 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
13991
14014
|
getScrollElement: () => shouldVirtualize ? scrollElement : null,
|
|
13992
14015
|
observeElementRect: observeScrollRect,
|
|
13993
14016
|
estimateSize: estimateRowSize,
|
|
14017
|
+
getItemKey: getRowKey,
|
|
13994
14018
|
overscan: 5,
|
|
13995
14019
|
measureElement: measureRowElement,
|
|
13996
14020
|
initialRect: {
|
|
@@ -14078,7 +14102,6 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
14078
14102
|
}, `intelligence-${intelligenceTurnId}`));
|
|
14079
14103
|
return elements.filter(Boolean);
|
|
14080
14104
|
};
|
|
14081
|
-
const rowKey = (row) => row.type === "group" ? `${GROUP_ROW_KEY_PREFIX}${stableGroupKey(row.key)}` : rowRenderKeys.get(row.message.id) ?? row.message.id;
|
|
14082
14105
|
const renderRow = (row) => {
|
|
14083
14106
|
if (row.type === "message") return renderMessageBlock(row.message);
|
|
14084
14107
|
const Wrapper = row.wrapper;
|
|
@@ -14091,8 +14114,6 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
|
14091
14114
|
children: row.messages.flatMap(renderMessageBlock)
|
|
14092
14115
|
}, rowKey(row))];
|
|
14093
14116
|
};
|
|
14094
|
-
const rowKeysRef = (0, react.useRef)([]);
|
|
14095
|
-
rowKeysRef.current = rows.map(rowKey);
|
|
14096
14117
|
const virtualModeRef = (0, react.useRef)(shouldVirtualize);
|
|
14097
14118
|
virtualModeRef.current = shouldVirtualize;
|
|
14098
14119
|
(0, react.useEffect)(() => {
|