@copilotkit/react-core 1.59.4 → 1.59.5-canary.1781104893

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-LdQ8w20l.cjs');
4
+ const require_copilotkit = require('./copilotkit-CWGR3Ict.cjs');
5
5
  let react = require("react");
6
6
  react = require_copilotkit.__toESM(react);
7
7
  let _copilotkit_core = require("@copilotkit/core");
@@ -365,7 +365,7 @@ function useCopilotChat(options = {}) {
365
365
  * `useCopilotChatHeadless_c` is for building fully custom UI (headless UI) implementations.
366
366
  *
367
367
  * <Callout title="This is a premium-only feature">
368
- * Sign up for free on [Copilot Cloud](https://cloud.copilotkit.ai) to get your public license key or read more about <a href="/premium/overview">premium features</a>.
368
+ * Sign up for free on [Copilot Cloud](https://dashboard.operations.copilotkit.ai) to get your public license key or read more about <a href="/premium/overview">premium features</a>.
369
369
  *
370
370
  * Usage is generous, **free** to get started, and works with **either self-hosted or Copilot Cloud** environments.
371
371
  * </Callout>
@@ -547,7 +547,7 @@ const createNonFunctionalReturn = () => ({
547
547
  * Enterprise React hook that provides complete chat functionality for fully custom UI implementations.
548
548
  * Includes all advanced features like direct message access, suggestions array, interrupt handling, and MCP support.
549
549
  *
550
- * **Requires a publicApiKey** - Sign up for free at https://cloud.copilotkit.ai/
550
+ * **Requires a publicApiKey** - Sign up for free at https://dashboard.operations.copilotkit.ai/
551
551
  *
552
552
  * @param options - Configuration options for the chat
553
553
  * @returns Complete chat interface with all enterprise features
@@ -1173,7 +1173,7 @@ function useAgentNodeName(agentName) {
1173
1173
  /**
1174
1174
  * <Callout type="info">
1175
1175
  * Usage of this hook assumes some additional setup in your application, for more information
1176
- * on that see the CoAgents <span className="text-blue-500">[getting started guide](/coagents/quickstart/langgraph)</span>.
1176
+ * on that see the CoAgents <span className="text-blue-500">[getting started guide](/langgraph-python/quickstart)</span>.
1177
1177
  * </Callout>
1178
1178
  * <Frame className="my-12">
1179
1179
  * <img
@@ -1207,18 +1207,21 @@ function useAgentNodeName(agentName) {
1207
1207
  *
1208
1208
  * ```
1209
1209
  *
1210
- * `useCoAgent` returns an object with the following properties:
1210
+ * In CopilotKit v2, `useCoAgent` is a thin compatibility wrapper over the v2
1211
+ * [`useAgent`](/reference/hooks/useAgent) hook. It returns an object with the
1212
+ * following properties:
1211
1213
  *
1212
1214
  * ```tsx
1213
1215
  * const {
1214
1216
  * name, // The name of the agent currently being used.
1215
1217
  * nodeName, // The name of the current LangGraph node.
1218
+ * threadId, // The ID of the thread the agent is running in.
1216
1219
  * state, // The current state of the agent.
1217
1220
  * setState, // A function to update the state of the agent.
1218
1221
  * running, // A boolean indicating if the agent is currently running.
1219
1222
  * start, // A function to start the agent.
1220
1223
  * stop, // A function to stop the agent.
1221
- * run, // A function to re-run the agent. Takes a HintFunction to inform the agent why it is being re-run.
1224
+ * run, // A function to (re-)run the agent. Maps to the v2 agent's `runAgent()`.
1222
1225
  * } = agent;
1223
1226
  * ```
1224
1227
  *
@@ -1483,7 +1486,7 @@ function createStructuredError(gqlError) {
1483
1486
  *
1484
1487
  * @remarks
1485
1488
  * This feature is only available when using CopilotKit's hosted cloud service.
1486
- * To use this feature, sign up at https://cloud.copilotkit.ai to get your publicApiKey.
1489
+ * To use this feature, sign up at https://dashboard.operations.copilotkit.ai to get your publicApiKey.
1487
1490
  *
1488
1491
  * @param action - The frontend action to be wrapped with authentication
1489
1492
  * @param dependencies - Optional array of dependencies that will trigger recreation of the action when changed