@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.
- package/dist/chat-configuration.d.cts +1 -1
- package/dist/chat-configuration.d.mts +1 -1
- package/dist/generative-ui/index.d.cts +1 -1
- package/dist/generative-ui/index.d.mts +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/{learning-bridge-BUROvNCE.d.mts → learning-bridge-Cqc7VJuV.d.cts} +18 -9
- package/dist/learning-bridge-Cqc7VJuV.d.cts.map +1 -0
- package/dist/{learning-bridge-CmfwxMdH.d.cts → learning-bridge-y2bnVsjp.d.mts} +18 -9
- package/dist/learning-bridge-y2bnVsjp.d.mts.map +1 -0
- package/package.json +16 -3
- package/dist/learning-bridge-BUROvNCE.d.mts.map +0 -1
- package/dist/learning-bridge-CmfwxMdH.d.cts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gs as MarkdownSegment, Ms as A2UIMarkdownOperation, a as CopilotKitCore, dd as ɵGenerativeUIDebugRun, pd as ɵGenerativeUIDebugSource } from "../learning-bridge-
|
|
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-
|
|
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
|
-
|
|
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`
|