@copilotkit/react-core 1.62.0 → 1.62.2-canary.1783457132

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-CdpDZi3i.cjs');
4
+ const require_copilotkit = require('./copilotkit-Ces-OkSR.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 { $n as ActionRenderPropsNoArgs, An as CopilotContext, Bn as QueuedInterruptEvent, Fn as LangGraphInterruptActionSetter, Gn as CrewsTaskStateItem, H as useAgent, Hn as CrewsResponse, In as LangGraphInterruptActionSetterArgs, Jn as SystemMessageFunction, Kn as CrewsToolStateItem, Ln as LangGraphInterruptRender, Mn as useCopilotContext, Nn as CoAgentStateRender, On as CoagentInChatRenderFunction, Pn as LangGraphInterruptAction, Qn as ActionRenderProps, Rn as LangGraphInterruptRenderHandlerProps, Un as CrewsResponseStatus, Vn as CrewsAgentState, Wn as CrewsStateItem, Xn as Tree, Yn as DocumentPointer, Zn as TreeNode, ar as FrontendActionAvailability, dt as useRenderToolCall$1, er as ActionRenderPropsNoArgsWait, ir as FrontendAction, jn as CopilotContextParams, kn as CopilotApiConfig, n as defaultCopilotContextCategories, nr as CatchAllActionRenderProps, or as RenderFunctionStatus, qn as CopilotChatSuggestionConfiguration, r as CopilotKitProps, rr as CatchAllFrontendAction, t as CopilotKit, tr as ActionRenderPropsWait, zn as LangGraphInterruptRenderProps } from "./copilotkit-Cga6AHO0.cjs";
1
+ import { $n as CrewsToolStateItem, Bn as CoAgentStateRender, Fn as CoagentInChatRenderFunction, Gn as LangGraphInterruptRenderHandlerProps, Hn as LangGraphInterruptActionSetter, In as CopilotApiConfig, Jn as CrewsAgentState, Kn as LangGraphInterruptRenderProps, Ln as CopilotContext, Qn as CrewsTaskStateItem, Rn as CopilotContextParams, Un as LangGraphInterruptActionSetterArgs, Vn as LangGraphInterruptAction, Wn as LangGraphInterruptRender, Xn as CrewsResponseStatus, Y as useAgent, Yn as CrewsResponse, Zn as CrewsStateItem, ar as ActionRenderProps, cr as ActionRenderPropsWait, dr as FrontendAction, er as CopilotChatSuggestionConfiguration, fr as FrontendActionAvailability, ir as TreeNode, lr as CatchAllActionRenderProps, n as defaultCopilotContextCategories, nr as DocumentPointer, or as ActionRenderPropsNoArgs, pr as RenderFunctionStatus, qn as QueuedInterruptEvent, r as CopilotKitProps, rr as Tree, sr as ActionRenderPropsNoArgsWait, t as CopilotKit, tr as SystemMessageFunction, ur as CatchAllFrontendAction, vt as useRenderToolCall$1, zn as useCopilotContext } from "./copilotkit-BnaWY11A.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 { $n as ActionRenderPropsNoArgs, An as CopilotContext, Bn as QueuedInterruptEvent, Fn as LangGraphInterruptActionSetter, Gn as CrewsTaskStateItem, H as useAgent, Hn as CrewsResponse, In as LangGraphInterruptActionSetterArgs, Jn as SystemMessageFunction, Kn as CrewsToolStateItem, Ln as LangGraphInterruptRender, Mn as useCopilotContext, Nn as CoAgentStateRender, On as CoagentInChatRenderFunction, Pn as LangGraphInterruptAction, Qn as ActionRenderProps, Rn as LangGraphInterruptRenderHandlerProps, Un as CrewsResponseStatus, Vn as CrewsAgentState, Wn as CrewsStateItem, Xn as Tree, Yn as DocumentPointer, Zn as TreeNode, ar as FrontendActionAvailability, dt as useRenderToolCall$1, er as ActionRenderPropsNoArgsWait, ir as FrontendAction, jn as CopilotContextParams, kn as CopilotApiConfig, n as defaultCopilotContextCategories, nr as CatchAllActionRenderProps, or as RenderFunctionStatus, qn as CopilotChatSuggestionConfiguration, r as CopilotKitProps, rr as CatchAllFrontendAction, t as CopilotKit, tr as ActionRenderPropsWait, zn as LangGraphInterruptRenderProps } from "./copilotkit-DnLpJ2Cl.mjs";
1
+ import { $n as CrewsToolStateItem, Bn as CoAgentStateRender, Fn as CoagentInChatRenderFunction, Gn as LangGraphInterruptRenderHandlerProps, Hn as LangGraphInterruptActionSetter, In as CopilotApiConfig, Jn as CrewsAgentState, Kn as LangGraphInterruptRenderProps, Ln as CopilotContext, Qn as CrewsTaskStateItem, Rn as CopilotContextParams, Un as LangGraphInterruptActionSetterArgs, Vn as LangGraphInterruptAction, Wn as LangGraphInterruptRender, Xn as CrewsResponseStatus, Y as useAgent, Yn as CrewsResponse, Zn as CrewsStateItem, ar as ActionRenderProps, cr as ActionRenderPropsWait, dr as FrontendAction, er as CopilotChatSuggestionConfiguration, fr as FrontendActionAvailability, ir as TreeNode, lr as CatchAllActionRenderProps, n as defaultCopilotContextCategories, nr as DocumentPointer, or as ActionRenderPropsNoArgs, pr as RenderFunctionStatus, qn as QueuedInterruptEvent, r as CopilotKitProps, rr as Tree, sr as ActionRenderPropsNoArgsWait, t as CopilotKit, tr as SystemMessageFunction, ur as CatchAllFrontendAction, vt as useRenderToolCall$1, zn as useCopilotContext } from "./copilotkit-BpR0k6_Z.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 { J as useInterrupt, X as useSuggestions, Y as useConfigureSuggestions, _t as useRenderToolCall$1, a as ThreadsProvider, at as useFrontendTool$1, c as CoAgentStateRendersProvider, d as shouldShowDevConsole, et as useAgent, f as useToast, g as useCopilotContext, h as CopilotContext, i as ThreadsContext, l as useCoAgentStateRenders, lt as defineToolCallRenderer, m as useCopilotMessagesContext, n as defaultCopilotContextCategories, o as useThreads, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, s as CoAgentStateRendersContext, st as useRenderCustomMessages, t as CopilotKit, tt as useHumanInTheLoop$1, u as useAsyncCallback, vt as useCopilotKit, wt as useCopilotChatConfiguration } from "./copilotkit-BtRkFsNR.mjs";
3
+ import { Tt as useCopilotChatConfiguration, X as useConfigureSuggestions, Y as useInterrupt, Z as useSuggestions, a as ThreadsProvider, c as CoAgentStateRendersProvider, ct as useRenderCustomMessages, d as shouldShowDevConsole, f as useToast, g as useCopilotContext, h as CopilotContext, i as ThreadsContext, l as useCoAgentStateRenders, m as useCopilotMessagesContext, n as defaultCopilotContextCategories, nt as useHumanInTheLoop$1, o as useThreads, ot as useFrontendTool$1, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, s as CoAgentStateRendersContext, t as CopilotKit, tt as useAgent, u as useAsyncCallback, ut as defineToolCallRenderer, vt as useRenderToolCall$1, yt as useCopilotKit } from "./copilotkit-BQT2ngSh.mjs";
4
4
  import React, { Fragment, createElement, useCallback, useContext, useEffect, 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
@@ -2497,12 +2497,13 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
2497
2497
  }
2498
2498
  const copilotkit = copilotkitRef.current;
2499
2499
  (0, react.useEffect)(() => {
2500
- setRuntimeA2UIEnabled(copilotkit.a2uiEnabled);
2501
- const subscription = copilotkit.subscribe({ onRuntimeConnectionStatusChanged: () => {
2500
+ const syncRuntimeInfo = () => {
2502
2501
  setRuntimeA2UIEnabled(copilotkit.a2uiEnabled);
2503
2502
  setRuntimeOpenGenUIEnabled(copilotkit.openGenerativeUIEnabled);
2504
2503
  setRuntimeLicenseStatus(copilotkit.licenseStatus);
2505
- } });
2504
+ };
2505
+ const subscription = copilotkit.subscribe({ onRuntimeConnectionStatusChanged: syncRuntimeInfo });
2506
+ syncRuntimeInfo();
2506
2507
  return () => {
2507
2508
  subscription.unsubscribe();
2508
2509
  };