@copilotkit/core 2.0.0-rc.39 → 2.0.0-rc.40

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.
@@ -1,4 +1,4 @@
1
- import { r as OpenThreadRegistration } from "./learning-bridge-CmfwxMdH.cjs";
1
+ import { r as OpenThreadRegistration } from "./learning-bridge-Cqc7VJuV.cjs";
2
2
 
3
3
  //#region src/chat/chat-configuration.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { r as OpenThreadRegistration } from "./learning-bridge-BUROvNCE.mjs";
1
+ import { r as OpenThreadRegistration } from "./learning-bridge-y2bnVsjp.mjs";
2
2
 
3
3
  //#region src/chat/chat-configuration.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Gs as MarkdownSegment, Ms as A2UIMarkdownOperation, a as CopilotKitCore, dd as ɵGenerativeUIDebugRun, pd as ɵGenerativeUIDebugSource } from "../learning-bridge-CmfwxMdH.cjs";
1
+ import { Gs as MarkdownSegment, Ms as A2UIMarkdownOperation, a as CopilotKitCore, dd as ɵGenerativeUIDebugRun, pd as ɵGenerativeUIDebugSource } from "../learning-bridge-Cqc7VJuV.cjs";
2
2
  import "../index.cjs";
3
3
  import { AbstractAgent, Message } from "@ag-ui/client";
4
4
  import { A2UIActionMessage, A2UIFunctionPermissions, A2UIFunctionReturnType, A2UIOperation, CopilotKitUIEnvelope, GenerativeUIActionBinding, GenerativeUIFunctionManifest, GenerativeUIManifest, GenerativeUIRejectedOperation, GenerativeUISurfaceContent, GenerativeUISurfaceStatus, GenerativeUISurfaceSummary, GenerativeUITarget, GenerativeUIUserEvent, StandardSchemaV1, ValidateOperationOptions } from "@copilotkit/shared";
@@ -1,4 +1,4 @@
1
- import { Gs as MarkdownSegment, Ms as A2UIMarkdownOperation, a as CopilotKitCore, dd as ɵGenerativeUIDebugRun, pd as ɵGenerativeUIDebugSource } from "../learning-bridge-BUROvNCE.mjs";
1
+ import { Gs as MarkdownSegment, Ms as A2UIMarkdownOperation, a as CopilotKitCore, dd as ɵGenerativeUIDebugRun, pd as ɵGenerativeUIDebugSource } from "../learning-bridge-y2bnVsjp.mjs";
2
2
  import "../index.mjs";
3
3
  import { AbstractAgent, Message } from "@ag-ui/client";
4
4
  import { A2UIActionMessage, A2UIFunctionPermissions, A2UIFunctionReturnType, A2UIOperation, CopilotKitUIEnvelope, GenerativeUIActionBinding, GenerativeUIFunctionManifest, GenerativeUIManifest, GenerativeUIRejectedOperation, GenerativeUISurfaceContent, GenerativeUISurfaceStatus, GenerativeUISurfaceSummary, GenerativeUITarget, GenerativeUIUserEvent, StandardSchemaV1, ValidateOperationOptions } from "@copilotkit/shared";
package/dist/index.cjs CHANGED
@@ -9521,10 +9521,13 @@ function ɵsubscribeToAgentUpdates(core, agent, { updates, throttleMs, onUpdate
9521
9521
  //#region src/core/agent-helpers.ts
9522
9522
  /**
9523
9523
  * The string the agent receives for a context value: a string as-is,
9524
- * anything else as JSON.
9524
+ * anything else as JSON. A value JSON has no text for (`undefined`, a
9525
+ * function) becomes its `String()` form.
9525
9526
  */
9526
9527
  function ɵserializeContextValue(value) {
9527
- return typeof value === "string" ? value : JSON.stringify(value);
9528
+ if (typeof value === "string") return value;
9529
+ const json = JSON.stringify(value);
9530
+ return json === void 0 ? String(value) : json;
9528
9531
  }
9529
9532
  /**
9530
9533
  * The capabilities an agent declares, filled from the runtime `/info`