@copilotkit/react-core 1.62.1 → 1.62.2

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-lHheGQWt.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.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 { 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-CmcMFc8o.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
  };