@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/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
- const require_copilotkit = require('./copilotkit-C5FS3iDK.cjs');
4
+ const require_copilotkit = require('./copilotkit-DIudpHkM.cjs');
5
5
  let react = require("react");
6
6
  react = require_copilotkit.__toESM(react);
7
7
  let _copilotkit_core = require("@copilotkit/core");
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Ad as ActionRenderPropsNoArgs, Cd as CrewsToolStateItem, Dd as Tree, Ed as DocumentPointer, Fd as CatchAllFrontendAction, Id as FrontendAction, Ld as FrontendActionAvailability, Md as ActionRenderPropsWait, Nd as CatchAllActionRenderProps, Od as TreeNode, Pd as CatchAllActionRenderPropsWait, Rd as RenderFunctionStatus, Sd as CrewsTaskStateItem, Td as SystemMessageFunction, X as useAgent, _d as QueuedInterruptEvent, ad as CoagentInChatRenderFunction, bd as CrewsResponseStatus, cd as CopilotContextParams, dd as LangGraphInterruptAction, fd as LangGraphInterruptActionSetter, gd as LangGraphInterruptRenderProps, hd as LangGraphInterruptRenderHandlerProps, jd as ActionRenderPropsNoArgsWait, kd as ActionRenderProps, ld as useCopilotContext, md as LangGraphInterruptRender, n as defaultCopilotContextCategories, od as CopilotApiConfig, pd as LangGraphInterruptActionSetterArgs, r as CopilotKitProps, sd as CopilotContext, t as CopilotKit, ud as CoAgentStateRender, vd as CrewsAgentState, wd as CopilotChatSuggestionConfiguration, xd as CrewsStateItem, xt as useRenderToolCall$1, yd as CrewsResponse } from "./copilotkit-C7c_w9iV.cjs";
1
+ import { Ad as ActionRenderPropsNoArgs, Cd as CrewsToolStateItem, Dd as Tree, Ed as DocumentPointer, Fd as CatchAllFrontendAction, Id as FrontendAction, Ld as FrontendActionAvailability, Md as ActionRenderPropsWait, Nd as CatchAllActionRenderProps, Od as TreeNode, Pd as CatchAllActionRenderPropsWait, Rd as RenderFunctionStatus, Sd as CrewsTaskStateItem, Td as SystemMessageFunction, X as useAgent, _d as QueuedInterruptEvent, ad as CoagentInChatRenderFunction, bd as CrewsResponseStatus, cd as CopilotContextParams, dd as LangGraphInterruptAction, fd as LangGraphInterruptActionSetter, gd as LangGraphInterruptRenderProps, hd as LangGraphInterruptRenderHandlerProps, jd as ActionRenderPropsNoArgsWait, kd as ActionRenderProps, ld as useCopilotContext, md as LangGraphInterruptRender, n as defaultCopilotContextCategories, od as CopilotApiConfig, pd as LangGraphInterruptActionSetterArgs, r as CopilotKitProps, sd as CopilotContext, t as CopilotKit, ud as CoAgentStateRender, vd as CrewsAgentState, wd as CopilotChatSuggestionConfiguration, xd as CrewsStateItem, xt as useRenderToolCall$1, yd as CrewsResponse } from "./copilotkit-Cjj9wDI8.cjs";
2
2
  import "./v2/index.cjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
  import { CopilotRuntimeClient, CopilotRuntimeClientOptions, ForwardedParametersInput, Message } from "@copilotkit/runtime-client-gql";
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Ad as ActionRenderPropsNoArgs, Cd as CrewsToolStateItem, Dd as Tree, Ed as DocumentPointer, Fd as CatchAllFrontendAction, Id as FrontendAction, Ld as FrontendActionAvailability, Md as ActionRenderPropsWait, Nd as CatchAllActionRenderProps, Od as TreeNode, Pd as CatchAllActionRenderPropsWait, Rd as RenderFunctionStatus, Sd as CrewsTaskStateItem, Td as SystemMessageFunction, X as useAgent, _d as QueuedInterruptEvent, ad as CoagentInChatRenderFunction, bd as CrewsResponseStatus, cd as CopilotContextParams, dd as LangGraphInterruptAction, fd as LangGraphInterruptActionSetter, gd as LangGraphInterruptRenderProps, hd as LangGraphInterruptRenderHandlerProps, jd as ActionRenderPropsNoArgsWait, kd as ActionRenderProps, ld as useCopilotContext, md as LangGraphInterruptRender, n as defaultCopilotContextCategories, od as CopilotApiConfig, pd as LangGraphInterruptActionSetterArgs, r as CopilotKitProps, sd as CopilotContext, t as CopilotKit, ud as CoAgentStateRender, vd as CrewsAgentState, wd as CopilotChatSuggestionConfiguration, xd as CrewsStateItem, xt as useRenderToolCall$1, yd as CrewsResponse } from "./copilotkit-CfyJ1-Nx.mjs";
1
+ import { Ad as ActionRenderPropsNoArgs, Cd as CrewsToolStateItem, Dd as Tree, Ed as DocumentPointer, Fd as CatchAllFrontendAction, Id as FrontendAction, Ld as FrontendActionAvailability, Md as ActionRenderPropsWait, Nd as CatchAllActionRenderProps, Od as TreeNode, Pd as CatchAllActionRenderPropsWait, Rd as RenderFunctionStatus, Sd as CrewsTaskStateItem, Td as SystemMessageFunction, X as useAgent, _d as QueuedInterruptEvent, ad as CoagentInChatRenderFunction, bd as CrewsResponseStatus, cd as CopilotContextParams, dd as LangGraphInterruptAction, fd as LangGraphInterruptActionSetter, gd as LangGraphInterruptRenderProps, hd as LangGraphInterruptRenderHandlerProps, jd as ActionRenderPropsNoArgsWait, kd as ActionRenderProps, ld as useCopilotContext, md as LangGraphInterruptRender, n as defaultCopilotContextCategories, od as CopilotApiConfig, pd as LangGraphInterruptActionSetterArgs, r as CopilotKitProps, sd as CopilotContext, t as CopilotKit, ud as CoAgentStateRender, vd as CrewsAgentState, wd as CopilotChatSuggestionConfiguration, xd as CrewsStateItem, xt as useRenderToolCall$1, yd as CrewsResponse } from "./copilotkit-CGlSOKHM.mjs";
2
2
  import "./v2/index.mjs";
3
3
  import React, { ReactNode, RefObject, SetStateAction } from "react";
4
4
  import { StaticSuggestionsConfig, Suggestion } from "@copilotkit/core";
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { Pt as useCopilotChatConfiguration, Q as useSuggestions, X as INTERRUPT_EVENT_NAME, Y as useInterrupt, Z as useConfigureSuggestions, a as ThreadsProvider, c as CoAgentStateRendersProvider, ct as useFrontendTool$1, d as shouldShowDevConsole, f as useToast, ft as useCopilotKit, g as useCopilotContext, h as CopilotContext, ht as defineToolCallRenderer, i as ThreadsContext, kt as useRenderToolCall$1, l as useCoAgentStateRenders, m as useCopilotMessagesContext, n as defaultCopilotContextCategories, nt as useAgent, o as useThreads, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, rt as useHumanInTheLoop$1, s as CoAgentStateRendersContext, t as CopilotKit, u as useAsyncCallback, ut as useRenderCustomMessages } from "./copilotkit-DyZh7EH4.mjs";
3
+ import { Pt as useCopilotChatConfiguration, Q as useSuggestions, X as INTERRUPT_EVENT_NAME, Y as useInterrupt, Z as useConfigureSuggestions, a as ThreadsProvider, c as CoAgentStateRendersProvider, ct as useFrontendTool$1, d as shouldShowDevConsole, f as useToast, ft as useCopilotKit, g as useCopilotContext, h as CopilotContext, ht as defineToolCallRenderer, i as ThreadsContext, kt as useRenderToolCall$1, l as useCoAgentStateRenders, m as useCopilotMessagesContext, n as defaultCopilotContextCategories, nt as useAgent, o as useThreads, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, rt as useHumanInTheLoop$1, s as CoAgentStateRendersContext, t as CopilotKit, u as useAsyncCallback, ut as useRenderCustomMessages } from "./copilotkit-DfsHZUuo.mjs";
4
4
  import React, { Fragment, createElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
5
5
  import { CopilotKitCoreRuntimeConnectionStatus, ToolCallStatus } from "@copilotkit/core";
6
6
  import { AGUIConnectNotImplementedError, HttpAgent } from "@ag-ui/client";
package/dist/index.umd.js CHANGED
@@ -583,7 +583,7 @@ react_markdown = __toESM(react_markdown);
583
583
 
584
584
  //#endregion
585
585
  //#region package.json
586
- var version = "1.74.0";
586
+ var version = "1.75.1";
587
587
 
588
588
  //#endregion
589
589
  //#region src/v2/components/CopilotKitInspector.tsx
@@ -3008,6 +3008,7 @@ react_markdown = __toESM(react_markdown);
3008
3008
  if (updateFlags.includes(UseAgentUpdate.OnStateChanged)) handlers.onStateChanged = batchedForceUpdate;
3009
3009
  if (updateFlags.includes(UseAgentUpdate.OnRunStatusChanged)) {
3010
3010
  handlers.onRunInitialized = batchedForceUpdate;
3011
+ handlers.onRunStartedEvent = batchedForceUpdate;
3011
3012
  handlers.onRunFinalized = batchedForceUpdate;
3012
3013
  handlers.onRunFailed = batchedForceUpdate;
3013
3014
  handlers.onRunErrorEvent = batchedForceUpdate;