@copilotkit/react-core 1.55.3-canary.1776260990 → 1.56.0

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.
@@ -3072,7 +3072,7 @@ function useStableArrayProp(prop, warningMessage, isMeaningfulChange) {
3072
3072
  }, [value, warningMessage]);
3073
3073
  return value;
3074
3074
  }
3075
- const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, credentials, publicApiKey, publicLicenseKey, licenseToken, properties = {}, agents__unsafe_dev_only: agents = {}, selfManagedAgents = {}, renderToolCalls, renderActivityMessages, renderCustomMessages, frontendTools, humanInTheLoop, openGenerativeUI, showDevConsole = false, useSingleEndpoint, onError, a2ui, defaultThrottleMs, inspectorDefaultAnchor }) => {
3075
+ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, credentials, publicApiKey, publicLicenseKey, licenseToken, properties = {}, agents__unsafe_dev_only: agents = {}, selfManagedAgents = {}, renderToolCalls, renderActivityMessages, renderCustomMessages, frontendTools, humanInTheLoop, openGenerativeUI, showDevConsole = false, useSingleEndpoint, onError, a2ui, defaultThrottleMs, inspectorDefaultAnchor, debug }) => {
3076
3076
  const [shouldRenderInspector, setShouldRenderInspector] = (0, react.useState)(false);
3077
3077
  const [runtimeA2UIEnabled, setRuntimeA2UIEnabled] = (0, react.useState)(false);
3078
3078
  const [runtimeOpenGenUIEnabled, setRuntimeOpenGenUIEnabled] = (0, react.useState)(false);
@@ -3229,7 +3229,8 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, c
3229
3229
  tools: allTools,
3230
3230
  renderToolCalls: allRenderToolCalls,
3231
3231
  renderActivityMessages: allActivityRenderers,
3232
- renderCustomMessages: renderCustomMessagesList
3232
+ renderCustomMessages: renderCustomMessagesList,
3233
+ debug
3233
3234
  });
3234
3235
  if (defaultThrottleMs !== void 0) copilotkitRef.current.setDefaultThrottleMs(defaultThrottleMs);
3235
3236
  }
@@ -3302,6 +3303,7 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, c
3302
3303
  copilotkit.setCredentials(credentials);
3303
3304
  copilotkit.setProperties(properties);
3304
3305
  copilotkit.setAgents__unsafe_dev_only(mergedAgents);
3306
+ copilotkit.setDebug(debug);
3305
3307
  }, [
3306
3308
  copilotkit,
3307
3309
  chatApiEndpoint,
@@ -3309,7 +3311,8 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, c
3309
3311
  credentials,
3310
3312
  properties,
3311
3313
  mergedAgents,
3312
- useSingleEndpoint
3314
+ useSingleEndpoint,
3315
+ debug
3313
3316
  ]);
3314
3317
  const didMountRef = (0, react.useRef)(false);
3315
3318
  (0, react.useEffect)(() => {
@@ -4470,8 +4473,7 @@ function isPromiseLike(value) {
4470
4473
  */
4471
4474
  function useInterrupt(config) {
4472
4475
  const { copilotkit } = useCopilotKit();
4473
- const { agent: internalAgent } = useAgent({ agentId: config.agentId });
4474
- const agent = config.agent ?? internalAgent;
4476
+ const { agent } = useAgent({ agentId: config.agentId });
4475
4477
  const [pendingEvent, setPendingEvent] = (0, react.useState)(null);
4476
4478
  const pendingEventRef = (0, react.useRef)(pendingEvent);
4477
4479
  pendingEventRef.current = pendingEvent;
@@ -10000,4 +10002,4 @@ Object.defineProperty(exports, 'useToast', {
10000
10002
  return useToast;
10001
10003
  }
10002
10004
  });
10003
- //# sourceMappingURL=copilotkit-9l47K1Ot.cjs.map
10005
+ //# sourceMappingURL=copilotkit-Cvb6WpAX.cjs.map