@copilotkit/react-core 1.86.0 → 1.87.1
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/{copilotkit-B1OLgEU8.mjs → copilotkit-BJ-6BoJ_.mjs} +127 -28
- package/dist/copilotkit-BJ-6BoJ_.mjs.map +1 -0
- package/dist/{copilotkit-C7G95NO-.d.mts → copilotkit-BNPEXnEE.d.mts} +8 -3
- package/dist/{copilotkit-C7G95NO-.d.mts.map → copilotkit-BNPEXnEE.d.mts.map} +1 -1
- package/dist/{copilotkit-DwD7D6jJ.d.cts → copilotkit-Bop-sY6y.d.cts} +8 -3
- package/dist/{copilotkit-DwD7D6jJ.d.cts.map → copilotkit-Bop-sY6y.d.cts.map} +1 -1
- package/dist/{copilotkit-Ca0IcTZU.cjs → copilotkit-DFxtDD2N.cjs} +126 -27
- package/dist/copilotkit-DFxtDD2N.cjs.map +1 -0
- package/dist/{hooks-DMSkcNOl.d.cts → hooks-CEFWIeKR.d.cts} +4 -4
- package/dist/{hooks-DMSkcNOl.d.cts.map → hooks-CEFWIeKR.d.cts.map} +1 -1
- package/dist/{hooks-EwGvqYsW.d.mts → hooks-DFgYRjj3.d.mts} +4 -4
- package/dist/{hooks-EwGvqYsW.d.mts.map → hooks-DFgYRjj3.d.mts.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +125 -26
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/generative-ui/native.d.cts +1 -1
- package/dist/v2/generative-ui/native.d.mts +1 -1
- package/dist/v2/generative-ui.d.cts +166 -166
- package/dist/v2/generative-ui.d.cts.map +1 -1
- package/dist/v2/generative-ui.d.mts +166 -166
- package/dist/v2/generative-ui.d.mts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.d.cts +1 -1
- package/dist/v2/index.d.mts +1 -1
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/index.umd.js +125 -26
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +8 -8
- package/dist/copilotkit-B1OLgEU8.mjs.map +0 -1
- package/dist/copilotkit-Ca0IcTZU.cjs.map +0 -1
|
@@ -20,7 +20,7 @@ import { Streamdown } from "streamdown";
|
|
|
20
20
|
import { contentToText } from "@ag-ui/core";
|
|
21
21
|
import { z } from "zod";
|
|
22
22
|
import { MCPAppsActivityContentSchema, MCPAppsActivityType, ɵrunMcpFollowUp } from "@copilotkit/mcp-apps-renderer/activity";
|
|
23
|
-
import { A2UIProvider, A2UIRenderer, A2UI_SCHEMA_CONTEXT_DESCRIPTION, Catalog, DEFAULT_SURFACE_ID, ROOT_COMPONENT_ID, buildCatalogContextValue, extractCatalogComponentSchemas, filterCatalog, initializeDefaultCatalog, injectStyles, useA2UIActions, useA2UIError, viewerTheme } from "@copilotkit/a2ui-renderer";
|
|
23
|
+
import { A2UIProvider, A2UIRenderer, A2UI_SCHEMA_CONTEXT_DESCRIPTION, Catalog, CreateSurfaceMessageSchemaV1, DEFAULT_SURFACE_ID, ROOT_COMPONENT_ID, buildCatalogContextValue, extractCatalogComponentSchemas, filterCatalog, initializeDefaultCatalog, injectStyles, useA2UIActions, useA2UIError, viewerTheme } from "@copilotkit/a2ui-renderer";
|
|
24
24
|
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
25
25
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
26
26
|
import { createPortal, flushSync } from "react-dom";
|
|
@@ -1323,7 +1323,7 @@ function useRenderToolCall() {
|
|
|
1323
1323
|
|
|
1324
1324
|
//#endregion
|
|
1325
1325
|
//#region package.json
|
|
1326
|
-
var version = "1.
|
|
1326
|
+
var version = "1.87.1";
|
|
1327
1327
|
|
|
1328
1328
|
//#endregion
|
|
1329
1329
|
//#region src/v2/components/CopilotKitInspector.tsx
|
|
@@ -2551,7 +2551,7 @@ function describeOperationKinds(operations) {
|
|
|
2551
2551
|
function warnAboutUnpaintedSurfaces(grouped) {
|
|
2552
2552
|
for (const [surfaceId, operations] of grouped) {
|
|
2553
2553
|
if (surfaceHasRenderableContent(operations)) continue;
|
|
2554
|
-
const cause = operations.
|
|
2554
|
+
const cause = operations.flatMap(getOperationComponents).length === 0 ? "no updateComponents operation arrived, so the surface was never given anything to draw" : "its components address their values by \"path\" and no updateDataModel carried a non-empty value, so every bound component drew empty";
|
|
2555
2555
|
console.warn(`[CopilotKit] A2UI surface "${surfaceId}" received operations and never painted after ${String(PAINT_FALLBACK_MS)}ms: ${cause}. Operations received: ${describeOperationKinds(operations)}. The payload was accepted, so check what the agent sent rather than the client wiring. This warning is development-only.`);
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
@@ -2564,13 +2564,9 @@ function warnAboutUnpaintedSurfaces(grouped) {
|
|
|
2564
2564
|
*/
|
|
2565
2565
|
function describeComponentIds(operations) {
|
|
2566
2566
|
const ids = [];
|
|
2567
|
-
for (const operation of operations) {
|
|
2568
|
-
const
|
|
2569
|
-
if (!
|
|
2570
|
-
for (const component of components) {
|
|
2571
|
-
const id = component?.id;
|
|
2572
|
-
if (typeof id === "string" && !ids.includes(id)) ids.push(id);
|
|
2573
|
-
}
|
|
2567
|
+
for (const operation of operations) for (const component of getOperationComponents(operation)) {
|
|
2568
|
+
const id = component?.id;
|
|
2569
|
+
if (typeof id === "string" && !ids.includes(id)) ids.push(id);
|
|
2574
2570
|
}
|
|
2575
2571
|
return ids.length === 0 ? "none" : ids.map((id) => `"${id}"`).join(", ");
|
|
2576
2572
|
}
|
|
@@ -2597,9 +2593,9 @@ function describeComponentIds(operations) {
|
|
|
2597
2593
|
*/
|
|
2598
2594
|
function warnAboutUnresolvedRoot(surfaceId, operations, surface) {
|
|
2599
2595
|
if (surface?.componentsModel?.get?.(ROOT_COMPONENT_ID)) return;
|
|
2600
|
-
const
|
|
2601
|
-
if (
|
|
2602
|
-
const cause =
|
|
2596
|
+
const components = operations.flatMap(getOperationComponents);
|
|
2597
|
+
if (components.length === 0) return;
|
|
2598
|
+
const cause = components.some((c) => c?.id === ROOT_COMPONENT_ID) ? `a component with id "${ROOT_COMPONENT_ID}" WAS sent, so the components did not reach the surface's model — check for an A2UI render error above, or a catalog that took none of them` : `the components it received are named ${describeComponentIds(operations)}, and none of them is "${ROOT_COMPONENT_ID}" — rename the entry-point component to "${ROOT_COMPONENT_ID}", and make every other component reachable from it through child/children`;
|
|
2603
2599
|
console.warn(`[CopilotKit] A2UI surface "${surfaceId}" has no "${ROOT_COMPONENT_ID}" component ${String(PAINT_FALLBACK_MS)}ms after its last operations were processed, so it is showing the placeholder for a component that has not arrived yet and will keep showing it: ${cause}. Operations received: ${describeOperationKinds(operations)}. This warning is development-only.`);
|
|
2604
2600
|
}
|
|
2605
2601
|
function createA2UIMessageRenderer(options) {
|
|
@@ -2765,7 +2761,10 @@ function ReactSurfaceHost({ surfaceId, operations, theme, agent, copilotkit, cat
|
|
|
2765
2761
|
surfaceId,
|
|
2766
2762
|
operations,
|
|
2767
2763
|
onReady
|
|
2768
|
-
}), /* @__PURE__ */ jsx(A2UISurfaceOrError, {
|
|
2764
|
+
}), /* @__PURE__ */ jsx(A2UISurfaceOrError, {
|
|
2765
|
+
surfaceId,
|
|
2766
|
+
onReady
|
|
2767
|
+
})]
|
|
2769
2768
|
})
|
|
2770
2769
|
});
|
|
2771
2770
|
}
|
|
@@ -2773,15 +2772,60 @@ function ReactSurfaceHost({ surfaceId, operations, theme, agent, copilotkit, cat
|
|
|
2773
2772
|
* Renders the A2UI surface, or an error message if processing failed.
|
|
2774
2773
|
* Must be a child of A2UIProvider to access the error state.
|
|
2775
2774
|
*/
|
|
2776
|
-
function A2UISurfaceOrError({ surfaceId }) {
|
|
2775
|
+
function A2UISurfaceOrError({ surfaceId, onReady }) {
|
|
2777
2776
|
const error = useA2UIError();
|
|
2778
|
-
|
|
2777
|
+
useEffect(() => {
|
|
2778
|
+
if (error) onReady?.();
|
|
2779
|
+
}, [error, onReady]);
|
|
2780
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [error && /* @__PURE__ */ jsxs("div", {
|
|
2781
|
+
role: "alert",
|
|
2779
2782
|
className: "cpk:rounded-lg cpk:border cpk:border-red-200 cpk:bg-red-50 cpk:p-3 cpk:text-sm cpk:text-red-700",
|
|
2780
2783
|
children: ["A2UI render error: ", error]
|
|
2781
|
-
})
|
|
2782
|
-
return /* @__PURE__ */ jsx(A2UIRenderer, {
|
|
2784
|
+
}), /* @__PURE__ */ jsx(A2UIRenderer, {
|
|
2783
2785
|
surfaceId,
|
|
2784
2786
|
className: "cpk:flex cpk:flex-1"
|
|
2787
|
+
})] });
|
|
2788
|
+
}
|
|
2789
|
+
/**
|
|
2790
|
+
* Full activity snapshots repeat creation. Native 1.0 can carry the current
|
|
2791
|
+
* components and data inline there, so replay changed initialization data and
|
|
2792
|
+
* components as updates for an existing surface. Compare against the previous
|
|
2793
|
+
* wire snapshot, rather than the SDK's mutable data model, to retain local edits.
|
|
2794
|
+
* Retain invalid or version-changing creates for the
|
|
2795
|
+
* provider/SDK to reject, instead of sanitizing them while replaying.
|
|
2796
|
+
*/
|
|
2797
|
+
function replaySnapshotOperations(operations, existing, previousOperations) {
|
|
2798
|
+
if (!existing) return operations;
|
|
2799
|
+
let nativeSurfaceDeleted = false;
|
|
2800
|
+
return operations.flatMap((operation) => {
|
|
2801
|
+
if (operation?.version === "1.0" && operation.deleteSurface?.surfaceId === existing.id) nativeSurfaceDeleted = true;
|
|
2802
|
+
if (nativeSurfaceDeleted) return [operation];
|
|
2803
|
+
if (!operation?.createSurface) return [operation];
|
|
2804
|
+
const version = String(operation.version ?? "v0.9").replace(/^v/, "");
|
|
2805
|
+
if (version !== String(existing.protocolVersion).replace(/^v/, "")) return [operation];
|
|
2806
|
+
if (version === "0.9") return [];
|
|
2807
|
+
if (operation.version !== "1.0") return [operation];
|
|
2808
|
+
const validation = CreateSurfaceMessageSchemaV1.safeParse(operation);
|
|
2809
|
+
if (!validation.success) return [operation];
|
|
2810
|
+
const create = validation.data.createSurface;
|
|
2811
|
+
if (create.catalogId !== void 0 && create.catalogId !== existing.catalog?.id) return [operation];
|
|
2812
|
+
const updates = [];
|
|
2813
|
+
const previousCreate = previousOperations.find((previous) => previous?.version === "1.0" && previous.createSurface?.surfaceId === create.surfaceId)?.createSurface;
|
|
2814
|
+
if (Object.hasOwn(create, "dataModel") && (!previousCreate || !Object.hasOwn(previousCreate, "dataModel") || JSON.stringify(create.dataModel) !== JSON.stringify(previousCreate.dataModel))) updates.push({
|
|
2815
|
+
version: "1.0",
|
|
2816
|
+
updateDataModel: {
|
|
2817
|
+
surfaceId: create.surfaceId,
|
|
2818
|
+
value: create.dataModel
|
|
2819
|
+
}
|
|
2820
|
+
});
|
|
2821
|
+
if (Object.hasOwn(create, "components")) updates.push({
|
|
2822
|
+
version: "1.0",
|
|
2823
|
+
updateComponents: {
|
|
2824
|
+
surfaceId: create.surfaceId,
|
|
2825
|
+
components: create.components
|
|
2826
|
+
}
|
|
2827
|
+
});
|
|
2828
|
+
return updates;
|
|
2785
2829
|
});
|
|
2786
2830
|
}
|
|
2787
2831
|
/**
|
|
@@ -2794,10 +2838,11 @@ function SurfaceMessageProcessor({ surfaceId, operations, onReady }) {
|
|
|
2794
2838
|
useEffect(() => {
|
|
2795
2839
|
const hash = JSON.stringify(operations);
|
|
2796
2840
|
if (hash === lastHashRef.current) return;
|
|
2841
|
+
const previousOperations = lastHashRef.current ? JSON.parse(lastHashRef.current) : [];
|
|
2797
2842
|
lastHashRef.current = hash;
|
|
2798
|
-
const ops = getSurface(surfaceId)
|
|
2843
|
+
const ops = replaySnapshotOperations(operations, getSurface(surfaceId), previousOperations);
|
|
2799
2844
|
processMessages(ops.map(stripRoutingSurfaceId));
|
|
2800
|
-
if (onReady && surfaceHasRenderableContent(operations)) onReady();
|
|
2845
|
+
if (onReady && getSurface(surfaceId)?.componentsModel.get(ROOT_COMPONENT_ID) && surfaceHasRenderableContent(operations)) onReady();
|
|
2801
2846
|
if (!IS_DEVELOPMENT) return;
|
|
2802
2847
|
if (!getSurface(surfaceId)) {
|
|
2803
2848
|
const missingSurfaceCheck = setTimeout(() => {
|
|
@@ -2827,15 +2872,26 @@ function SurfaceMessageProcessor({ surfaceId, operations, onReady }) {
|
|
|
2827
2872
|
* arrival rather than a fixed delay. (OSS-162)
|
|
2828
2873
|
*/
|
|
2829
2874
|
function surfaceHasRenderableContent(operations) {
|
|
2830
|
-
const
|
|
2831
|
-
if (!
|
|
2832
|
-
|
|
2875
|
+
const components = operations.flatMap(getOperationComponents);
|
|
2876
|
+
if (!components.length) return false;
|
|
2877
|
+
const serialized = JSON.stringify(components);
|
|
2878
|
+
if (!(serialized.includes("\"path\"") || serialized.includes("\"@path\""))) return true;
|
|
2833
2879
|
return operations.some((o) => {
|
|
2834
|
-
const v = o?.updateDataModel?.value;
|
|
2880
|
+
const v = o?.updateDataModel?.value ?? (o?.version === "1.0" ? o?.createSurface?.dataModel : void 0);
|
|
2881
|
+
if (typeof v === "string" || typeof v === "number" || typeof v === "boolean") {
|
|
2882
|
+
const path = o?.updateDataModel?.path ?? "/";
|
|
2883
|
+
const key = o?.version === "1.0" ? "@path" : "path";
|
|
2884
|
+
return v !== "" && serialized.includes(JSON.stringify({ [key]: path }));
|
|
2885
|
+
}
|
|
2835
2886
|
if (!v || typeof v !== "object") return false;
|
|
2836
2887
|
return Object.values(v).some((x) => Array.isArray(x) ? x.length > 0 : x !== null && x !== void 0 && x !== "");
|
|
2837
2888
|
});
|
|
2838
2889
|
}
|
|
2890
|
+
/** Component definitions can arrive in an update or a native inline create. */
|
|
2891
|
+
function getOperationComponents(operation) {
|
|
2892
|
+
const components = operation?.updateComponents?.components ?? (operation?.version === "1.0" ? operation?.createSurface?.components : void 0);
|
|
2893
|
+
return Array.isArray(components) ? components : [];
|
|
2894
|
+
}
|
|
2839
2895
|
const V0_9_ACTION_KEYS = [
|
|
2840
2896
|
"createSurface",
|
|
2841
2897
|
"updateComponents",
|
|
@@ -2858,7 +2914,7 @@ const V0_9_ACTION_KEYS = [
|
|
|
2858
2914
|
* message, otherwise the operation unchanged.
|
|
2859
2915
|
*/
|
|
2860
2916
|
function stripRoutingSurfaceId(operation) {
|
|
2861
|
-
if (!operation || typeof operation !== "object" || !("surfaceId" in operation) || !V0_9_ACTION_KEYS.some((key) => key in operation)) return operation;
|
|
2917
|
+
if (!operation || typeof operation !== "object" || !(operation.version === void 0 || operation.version === "v0.9") || !("surfaceId" in operation) || !V0_9_ACTION_KEYS.some((key) => key in operation)) return operation;
|
|
2862
2918
|
const { surfaceId: _routingId, ...message } = operation;
|
|
2863
2919
|
return message;
|
|
2864
2920
|
}
|
|
@@ -2918,6 +2974,47 @@ function A2UIBuiltInToolCallRenderer() {
|
|
|
2918
2974
|
return null;
|
|
2919
2975
|
}
|
|
2920
2976
|
|
|
2977
|
+
//#endregion
|
|
2978
|
+
//#region src/v2/a2ui/generation-guidelines.ts
|
|
2979
|
+
/** Native 1.0 tool guidance. Structural template paths retain their own syntax. */
|
|
2980
|
+
const A2UI_V1_GENERATION_GUIDELINES = `Generate A2UI 1.0 JSON.
|
|
2981
|
+
|
|
2982
|
+
Call render_a2ui with a unique surfaceId, the required components array, and optional
|
|
2983
|
+
root data object. Use only component names, properties and functions declared in
|
|
2984
|
+
the supplied catalog. Match its protocolVersion, catalogId and schemas.
|
|
2985
|
+
|
|
2986
|
+
Every component has a unique id and a component type. Exactly one component has
|
|
2987
|
+
id="root", the surface entry point. All other components must be reachable from
|
|
2988
|
+
root through child/children; never reference the same component as its own child,
|
|
2989
|
+
and never create a cycle.
|
|
2990
|
+
|
|
2991
|
+
Use literal values unless the property's catalog schema permits a dynamic value.
|
|
2992
|
+
Native value binding uses { "@path": "/form/name" }. A plain property schema does
|
|
2993
|
+
not accept a binding object. Pre-fill editable values via the data argument:
|
|
2994
|
+
"data": { "form": { "name": "Alice" } }
|
|
2995
|
+
"value": { "@path": "/form/name" }
|
|
2996
|
+
|
|
2997
|
+
Native function expressions use { "@call": "functionName", "args": { ... } },
|
|
2998
|
+
with only the parameters declared by the catalog; do not add returnType.
|
|
2999
|
+
|
|
3000
|
+
REPEATING CONTENT uses a structural children format, distinct from value binding:
|
|
3001
|
+
children: { componentId: "card-id", path: "/items" }
|
|
3002
|
+
The structural key remains path. Initialize its data array with real items before
|
|
3003
|
+
expecting a visible list. Components inside a template use relative value bindings:
|
|
3004
|
+
"text": { "@path": "name" }
|
|
3005
|
+
An absolute binding such as { "@path": "/name" } reads from the root instead.
|
|
3006
|
+
|
|
3007
|
+
Buttons send nested event actions, with bound context to capture edited values:
|
|
3008
|
+
"action": { "event": { "name": "submit", "context": { "name": { "@path": "/form/name" } } } }
|
|
3009
|
+
Local function actions use { "functionCall": { "@call": "functionName", "args": { ... } } }.
|
|
3010
|
+
Do not rename literal objects' path keys: only @path denotes native value binding.
|
|
3011
|
+
Keep an existing surface's protocol and catalog when updating it; create a new
|
|
3012
|
+
surface to use a different protocol.`;
|
|
3013
|
+
/** Preserve legacy prompt text exactly unless the selected catalog opts into 1.0. */
|
|
3014
|
+
function a2uiGenerationGuidelines(protocolVersion) {
|
|
3015
|
+
return protocolVersion === "1.0" ? A2UI_V1_GENERATION_GUIDELINES : A2UI_DEFAULT_GENERATION_GUIDELINES;
|
|
3016
|
+
}
|
|
3017
|
+
|
|
2921
3018
|
//#endregion
|
|
2922
3019
|
//#region src/v2/a2ui/A2UICatalogContext.tsx
|
|
2923
3020
|
/**
|
|
@@ -2937,6 +3034,7 @@ function A2UICatalogContext({ catalog, includeSchema }) {
|
|
|
2937
3034
|
const capabilitiesValue = useMemo(() => buildCatalogContextValue(catalog, { includeSchema: includeSchema !== false }), [catalog, includeSchema]);
|
|
2938
3035
|
const schemaValue = useMemo(() => includeSchema !== false ? JSON.stringify(extractCatalogComponentSchemas(catalog)) : null, [catalog, includeSchema]);
|
|
2939
3036
|
const a2uiAgentsKey = copilotkit?.a2uiAgents?.join(",");
|
|
3037
|
+
const generationGuidelines = a2uiGenerationGuidelines(catalog?.protocolVersion);
|
|
2940
3038
|
useLayoutEffect(() => {
|
|
2941
3039
|
if (!copilotkit) return;
|
|
2942
3040
|
const agentIds = copilotkit.a2uiAgents;
|
|
@@ -2955,7 +3053,7 @@ function A2UICatalogContext({ catalog, includeSchema }) {
|
|
|
2955
3053
|
}));
|
|
2956
3054
|
ids.push(copilotkit.addContext({
|
|
2957
3055
|
description: "A2UI generation guidelines — protocol rules, tool arguments, path rules, data model format, and form/two-way-binding instructions.",
|
|
2958
|
-
value:
|
|
3056
|
+
value: generationGuidelines,
|
|
2959
3057
|
...scope
|
|
2960
3058
|
}));
|
|
2961
3059
|
ids.push(copilotkit.addContext({
|
|
@@ -2971,7 +3069,8 @@ function A2UICatalogContext({ catalog, includeSchema }) {
|
|
|
2971
3069
|
copilotkit,
|
|
2972
3070
|
capabilitiesValue,
|
|
2973
3071
|
schemaValue,
|
|
2974
|
-
a2uiAgentsKey
|
|
3072
|
+
a2uiAgentsKey,
|
|
3073
|
+
generationGuidelines
|
|
2975
3074
|
]);
|
|
2976
3075
|
return null;
|
|
2977
3076
|
}
|
|
@@ -14388,4 +14487,4 @@ function validateProps(props) {
|
|
|
14388
14487
|
|
|
14389
14488
|
//#endregion
|
|
14390
14489
|
export { INTERRUPT_EVENT_NAME as $, ɵobservePhoenixSocketSignals$ as $a, isAbortError as $i, MultiAgentCapabilitiesSchema as $n, TextMessageEndEventSchema as $r, AudioPartSchema as $t, CopilotChatMessageView as A, withAuthoritativeActivityTypes as Aa, createActionGroup as Ai, HttpAgent as An, RunHandler as Ar, ɵrunMcpFollowUp as At, CopilotChatReasoningMessage_default as B, ɵgetAgentInterruptState$1 as Ba, emitInspectorViewThread as Bi, InputContentUrlSourceSchema as Bn, SubagentFinishedEventSchema as Br, AGUI_METADATA_KEY as Bt, CopilotModalHeader as C, splitA2UIMarkdown$1 as Ca, buildResumeArray as Ci, EventType as Cn, RunAgentInputSchema as Cr, OpenGenerativeUIContentSchema as Ct, CopilotChat as D, transformChunks as Da, contentHasMedia as Di, FilterToolCallsMiddleware as Dn, RunFinishedInterruptOutcomeSchema as Dr, MCPAppsActivityContentSchema as Dt, DefaultOpenIcon as E, tokenUsageFromLangChainMetadata as Ea, completePartialMarkdown as Ei, FileSourceSchema as En, RunFinishedEventSchema as Er, useSandboxFunctions as Et, getIntelligenceTurnAnchors as F, ɵTHREAD_REQUEST_TIMEOUT_MS as Fa, createSelector as Fi, ImageInputPartSchema as Fn, StateSchema as Fr, CopilotChatAudioRecorder as Ft, useLearningContainersInCurrentThread as G, ɵmapMemoryMetadataEvent as Ga, ensureObjectArgs as Gi, JsonPointerSchema as Gn, SubagentRunIdSchema as Gr, AddOperationSchema as Gt, CopilotChatAttachmentRenderer as H, ɵisHttpAgent$1 as Ha, empty as Hi, InterruptSchema as Hn, SubagentFinishedSuccessOutcomeSchema as Hr, ActivityDeltaEventSchema as Ht, IntelligenceIndicatorView as I, ɵclearAgentInterruptState$1 as Ia, createStore as Ii, ImagePartSchema as In, StateSnapshotEventSchema as Ir, A2UI_FENCE_LANGUAGE as It, useLearnFromUserActionInCurrentThread as J, ɵmemoryReducer as Ja, extractStringField as Ji, MessageSchema as Jn, SystemMessageSchema as Jr, AgentThreadLockedError as Jt, useLearningContainers as K, ɵmemoryAdapterEvents as Ka, extractCompleteArrayItems as Ki, MEMORY_ERROR_REGISTRY as Kn, SubagentStartedEventSchema as Kr, AgentCapabilitiesSchema as Kt, CopilotChatWorkSummary as L, ɵcreateMemoryStore as La, defaultApplyEvents as Li, InputContentDataSourceSchema as Ln, StepFinishedEventSchema as Lr, ACTIVITY_HISTORY_METADATA as Lt, messageRow as M, ɵInterruptState$1 as Ma, createEffect as Mi, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID as Mn, StateCapabilitiesSchema as Mr, useRenderToolCall as Mt, INTELLIGENCE_TURN_HEAD as N, ɵMAX_SOCKET_RETRIES as Na, createInspectorThreadRequestId as Ni, IdentityCapabilitiesSchema as Nn, StateDeltaEventSchema as Nr, CopilotChatInput_default as Nt, CopilotChatView_default as O, transformHttpEventStream as Oa, contentToText$1 as Oi, FunctionCallSchema as On, RunFinishedOutcomeSchema as Or, MCPAppsActivityRenderer as Ot, IntelligenceIndicator as P, ɵRUNTIME_PROBE_TIMEOUT_MS as Pa, createReducer as Pi, ImageInputContentSchema as Pn, StateManager as Pr, AudioRecorderError as Pt, useInterrupt as Q, ɵobservePhoenixSocketHealth$ as Qa, getWebMCPModelContext as Qi, MoveOperationSchema as Qn, TextMessageContentEventSchema as Qr, AudioInputPartSchema as Qt, CopilotChatSuggestionView as R, ɵcreateThreadSelectors as Ra, emitInspectorActiveThread$1 as Ri, InputContentSchema as Rn, StepStartedEventSchema as Rr, AGUIConnectNotImplementedError$1 as Rt, CopilotSidebarView as S, select as Sa, authoritativeActivityTypes as Si, EventSchemas as Sn, RoleSchema as Sr, OpenGenerativeUIActivityType as St, DefaultCloseIcon as T, tokenUsageFromAiSdkUsage as Ta, compactEvents as Ti, ExecutionCapabilitiesSchema as Tn, RunFinishedCancelledOutcomeSchema as Tr, SandboxFunctionsContext as Tt, CopilotChatAssistantMessage_default as U, ɵisRetryableMemoryStatus as Ua, enforceEvents as Ui, JsonPatchOperationSchema as Un, SubagentFinishedSuspendedOutcomeSchema as Ur, ActivityMessageSchema as Ut, CopilotChatUserMessage_default as V, ɵisCopilotKitFeature as Va, emitInspectorViewThreadResult$1 as Vi, IntelligenceAgent as Vn, SubagentFinishedOutcomeSchema as Vr, AbstractAgent$1 as Vt, CopilotChatToolCallsView as W, ɵjoinPhoenixChannel$ as Wa, enforceOutgoingInput as Wi, JsonPatchSchema as Wn, SubagentInfoSchema as Wr, ActivitySnapshotEventSchema as Wt, useMemories as X, ɵobservePhoenixEvent$ as Xa, getMarkdownOperationSurfaceId as Xi, MetadataSchema as Xn, TextInputContentSchema as Xr, AttributableSchema as Xt, useLearnFromUserAction as Y, ɵmemoryRestEvents as Ya, flattenInformationalCards as Yi, MessagesSnapshotEventSchema as Yn, TestOperationSchema as Yr, AssistantMessageSchema as Yt, useThreads$1 as Z, ɵobservePhoenixJoinOutcome$ as Za, getRunOutcome as Zi, Middleware as Zn, TextMessageChunkEventSchema as Zr, AudioInputContentSchema as Zt, WildcardToolCallRender as _, randomUUID$2 as _a, VideoInputContentSchema as _i, DeveloperMessageSchema as _n, ReasoningMessageStartEventSchema as _r, useLicenseContext$1 as _t, ThreadsProvider as a, ofType as aa, ToolCallChunkEventSchema as ai, CompatibilityBoundary as an, ɵselectIsMutating$1 as ao, PROTOCOL_VERSION as ar, useAgent as at, CopilotSidebar as b, runHttpRequest as ba, WebMCPRegistry as bi, DocumentPartSchema as bn, ReplaceOperationSchema as br, GenerateSandboxedUiArgsSchema as bt, CoAgentStateRendersProvider as c, onInspectorActiveThread as ca, ToolCallSchema as ci, ContextStore as cn, ɵselectMemoriesError$1 as co, RawEventSchema as cr, CopilotChatToolCallGroup as ct, shouldShowDevConsole as d, onInspectorViewThreadResult as da, ToolMessageSchema as di, CopilotKitCoreRuntimeConnectionStatus$1 as dn, ɵselectMemoriesRealtimeStatus$1 as do, ReasoningEncryptedValueSubtypeSchema as dr, useFrontendTools as dt, isInspectorThreadBridgeEnabled$1 as ea, TextMessageRoleSchema as ei, BackwardCompatibility_0_0_39 as en, ɵphoenixChannel$ as eo, MultimodalCapabilitiesSchema as er, useConfigureSuggestions as et, useToast as f, parseProtoStream as fa, ToolSchema as fi, CopilotKitHeaderResolutionError as fn, ɵselectThreads$1 as fo, ReasoningEndEventSchema as fr, useFrontendTool as ft, useCopilotContext as g, props as ga, UserMessageSchema as gi, DebugLogger as gn, ɵwithHeaderDefaults$1 as go, ReasoningMessageSchema as gr, useCopilotKit$1 as gt, CopilotContext as h, prepareSurfaceOperations as ha, UrlSourceSchema as hi, DataSourceSchema as hn, ɵthreadAdapterEvents as ho, ReasoningMessageEndEventSchema as hr, CopilotKitProvider as ht, ThreadsContext as i, mergeMetadata as ia, ToolCallArgsEventSchema as ii, BaseMessageSchema as in, ɵselectIsFetchingNextPage$1 as io, OutputCapabilitiesSchema as ir, UseAgentUpdate as it, messageGroup as j, ɵCOPILOTKIT_FEATURES as ja, createDebugLogger as ji, HumanInTheLoopCapabilitiesSchema as jn, RunStartedEventSchema as jr, CopilotKitInspector as jt, CopilotChatAttachmentQueue as k, verifyEvents as ka, convertToLegacyEvents as ki, FunctionMiddleware as kn, RunFinishedSuccessOutcomeSchema as kr, MCPAppsActivityType as kt, useCoAgentStateRenders as l, onInspectorStopViewing$1 as la, ToolCallStartEventSchema as li, CopilotKitCore$1 as ln, ɵselectMemoriesIsLoading$1 as lo, ReasoningCapabilitiesSchema as lr, useRenderTool as lt, useCopilotMessagesContext as m, parseToolArguments as ma, TransportCapabilitiesSchema as mi, CustomEventSchema as mn, ɵselectThreadsIsLoading$1 as mo, ReasoningMessageContentEventSchema as mr, useRenderCustomMessages as mt, defaultCopilotContextCategories as n, isRecognizedEvent as na, TextPartSchema as ni, BackwardCompatibility_0_0_57 as nn, ɵselectFetchMoreError$1 as no, MultimodalOutputCapabilitiesSchema as nr, useAgentContext as nt, useThreads as o, omitOptionalNulls as oa, ToolCallEndEventSchema as oi, ContentPartSchema as on, ɵselectMemories$1 as oo, PartSourceSchema as or, useHumanInTheLoop as ot, CopilotMessagesContext as p, parseSSEStream as pa, ToolsCapabilitiesSchema as pi, CopyOperationSchema as pn, ɵselectThreadsError$1 as po, ReasoningMessageChunkEventSchema as pr, useRenderActivityMessage as pt, useAttachments as q, ɵmemoryDomainEvents as qa, extractFenceOperations as qi, MemoryError as qn, SuggestionEngine as qr, AgentRegistry as qt, CoAgentStateRenderBridge as r, isRunCompletionAware$1 as ra, TokenUsageSchema as ri, BaseEventSchema as rn, ɵselectHasNextPage$1 as ro, OptionalMetadataSchema as rr, useCapabilities as rt, CoAgentStateRendersContext as s, on as sa, ToolCallResultEventSchema as si, ContextSchema as sn, ɵselectMemoriesAvailable$1 as so, ProxiedCopilotRuntimeAgent$1 as sr, useDefaultRenderTool as st, CopilotKit as t, isInterruptExpired as ta, TextMessageStartEventSchema as ti, BackwardCompatibility_0_0_45 as tn, ɵphoenixSocket$ as to, MultimodalInputCapabilitiesSchema as tr, useSuggestions as tt, useAsyncCallback as u, onInspectorViewThread$1 as ua, ToolCallStatus$1 as ui, CopilotKitCoreErrorCode$1 as un, ɵselectMemoriesIsMutating as uo, ReasoningEncryptedValueEventSchema as ur, useComponent as ut, CopilotThreadsDrawer as v, resolveAgentDebugConfig as va, VideoInputPartSchema as vi, DocumentInputContentSchema as vn, ReasoningStartEventSchema as vr, CopilotKitCoreReact as vt, CopilotChatToggleButton as w, structuredClone_ as wa, classifySurfaceCards as wi, EventTypeSchema as wn, RunErrorEventSchema as wr, OpenGenerativeUIToolRenderer as wt, CopilotPopupView as x, segmentSurfaceProse as xa, aggregateTokenUsage as xi, EventSchema as xn, ResumeEntrySchema as xr, OpenGenerativeUIActivityRenderer as xt, CopilotPopup as y, resolveDebugLogger as ya, VideoPartSchema as yi, DocumentInputPartSchema as yn, RemoveOperationSchema as yr, createA2UIMessageRenderer as yt, CopilotChatSuggestionPill as z, ɵcreateThreadStore$1 as za, emitInspectorStopViewing as zi, InputContentSourceSchema as zn, SubagentErrorEventSchema as zr, AGUIError as zt };
|
|
14391
|
-
//# sourceMappingURL=copilotkit-
|
|
14490
|
+
//# sourceMappingURL=copilotkit-BJ-6BoJ_.mjs.map
|