@copilotkit/vue 2.0.0-rc.8 → 2.0.0-rc.9
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/hooks/use-copilot-action.d.ts.map +1 -1
- package/dist/hooks/use-frontend-tool.d.ts +1 -1
- package/dist/hooks/use-frontend-tool.d.ts.map +1 -1
- package/dist/hooks/zod-parameters.d.ts +14 -0
- package/dist/hooks/zod-parameters.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +392 -290
- package/dist/index.mjs.map +1 -1
- package/dist/use-render-activity-message-B59A4R48.js +18097 -0
- package/dist/use-render-activity-message-B59A4R48.js.map +1 -0
- package/dist/use-render-activity-message-u0OVXjd8.cjs +92 -0
- package/dist/use-render-activity-message-u0OVXjd8.cjs.map +1 -0
- package/dist/v2/components/OpenGenerativeUIRenderer.d.ts +13 -45
- package/dist/v2/components/OpenGenerativeUIRenderer.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UICatalogContext.d.ts +1 -1
- package/dist/v2/components/a2ui/A2UICatalogContext.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts +13 -5
- package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts.map +1 -1
- package/dist/v2/components/a2ui.d.ts +3 -7
- package/dist/v2/components/a2ui.d.ts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.mjs +173 -173
- package/dist/v2/lib/processPartialHtml.d.ts +1 -2
- package/dist/v2/lib/processPartialHtml.d.ts.map +1 -1
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts +1 -1
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/hooks/__tests__/zod-parameters.test.ts +520 -0
- package/src/hooks/use-copilot-action.ts +2 -1
- package/src/hooks/use-frontend-tool.ts +3 -6
- package/src/hooks/zod-parameters.ts +162 -0
- package/src/v2/components/A2UIMessageRenderer.ts +3 -3
- package/src/v2/components/OpenGenerativeUIRenderer.ts +51 -373
- package/src/v2/components/__tests__/A2UICatalogContext.test.ts +1 -1
- package/src/v2/components/__tests__/OpenGenerativeUIRenderer.test.ts +55 -6
- package/src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts +1 -1
- package/src/v2/components/a2ui/A2UICatalogContext.ts +10 -102
- package/src/v2/components/a2ui/A2UIRecoveryStates.ts +1 -1
- package/src/v2/components/a2ui.ts +1 -1
- package/src/v2/components/chat/__tests__/CopilotChatActivityRendering.e2e.test.ts +26 -9
- package/src/v2/hooks/__tests__/zod-regression.test.ts +1 -1
- package/src/v2/lib/processPartialHtml.ts +6 -21
- package/src/v2/providers/CopilotKitProvider.vue +26 -34
- package/src/v2/providers/__tests__/CopilotKitProvider.a2ui.test.ts +1 -1
- package/vite.config.ts +2 -2
- package/dist/use-render-activity-message-C5LCG9a9.js +0 -16451
- package/dist/use-render-activity-message-C5LCG9a9.js.map +0 -1
- package/dist/use-render-activity-message-CPzguixR.cjs +0 -74
- package/dist/use-render-activity-message-CPzguixR.cjs.map +0 -1
- package/src/v2/lib/__tests__/processPartialHtml.test.ts +0 -84
|
@@ -1,65 +1,33 @@
|
|
|
1
1
|
import type { PropType } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
import { ToolCallStatus } from "@copilotkit/core";
|
|
4
|
+
import type { GenerateSandboxedUiArgs, OpenGenerativeUIContent } from "@copilotkit/core";
|
|
5
|
+
export type { GenerateSandboxedUiArgs, OpenGenerativeUIContent };
|
|
4
6
|
export declare const OpenGenerativeUIActivityType = "open-generative-ui";
|
|
5
7
|
export declare const OpenGenerativeUIContentSchema: z.ZodObject<{
|
|
6
8
|
initialHeight: z.ZodOptional<z.ZodNumber>;
|
|
7
9
|
generating: z.ZodOptional<z.ZodBoolean>;
|
|
8
10
|
css: z.ZodOptional<z.ZodString>;
|
|
9
11
|
cssComplete: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
html: z.ZodOptional<z.ZodArray<z.ZodString
|
|
12
|
+
html: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
13
|
htmlComplete: z.ZodOptional<z.ZodBoolean>;
|
|
12
14
|
jsFunctions: z.ZodOptional<z.ZodString>;
|
|
13
15
|
jsFunctionsComplete: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString
|
|
16
|
+
jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
17
|
jsExpressionsComplete: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
},
|
|
17
|
-
html?: string[] | undefined;
|
|
18
|
-
initialHeight?: number | undefined;
|
|
19
|
-
generating?: boolean | undefined;
|
|
20
|
-
css?: string | undefined;
|
|
21
|
-
cssComplete?: boolean | undefined;
|
|
22
|
-
htmlComplete?: boolean | undefined;
|
|
23
|
-
jsFunctions?: string | undefined;
|
|
24
|
-
jsFunctionsComplete?: boolean | undefined;
|
|
25
|
-
jsExpressions?: string[] | undefined;
|
|
26
|
-
jsExpressionsComplete?: boolean | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
html?: string[] | undefined;
|
|
29
|
-
initialHeight?: number | undefined;
|
|
30
|
-
generating?: boolean | undefined;
|
|
31
|
-
css?: string | undefined;
|
|
32
|
-
cssComplete?: boolean | undefined;
|
|
33
|
-
htmlComplete?: boolean | undefined;
|
|
34
|
-
jsFunctions?: string | undefined;
|
|
35
|
-
jsFunctionsComplete?: boolean | undefined;
|
|
36
|
-
jsExpressions?: string[] | undefined;
|
|
37
|
-
jsExpressionsComplete?: boolean | undefined;
|
|
38
|
-
}>;
|
|
39
|
-
export type OpenGenerativeUIContent = z.infer<typeof OpenGenerativeUIContentSchema>;
|
|
18
|
+
}, z.core.$strip>;
|
|
40
19
|
export declare const GenerateSandboxedUiArgsSchema: z.ZodObject<{
|
|
41
20
|
initialHeight: z.ZodOptional<z.ZodNumber>;
|
|
42
|
-
placeholderMessages: z.ZodOptional<z.ZodArray<z.ZodString
|
|
21
|
+
placeholderMessages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
22
|
css: z.ZodOptional<z.ZodString>;
|
|
44
23
|
html: z.ZodOptional<z.ZodString>;
|
|
45
24
|
jsFunctions: z.ZodOptional<z.ZodString>;
|
|
46
|
-
jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
jsExpressions?: string[] | undefined;
|
|
53
|
-
placeholderMessages?: string[] | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
html?: string | undefined;
|
|
56
|
-
initialHeight?: number | undefined;
|
|
57
|
-
css?: string | undefined;
|
|
58
|
-
jsFunctions?: string | undefined;
|
|
59
|
-
jsExpressions?: string[] | undefined;
|
|
60
|
-
placeholderMessages?: string[] | undefined;
|
|
61
|
-
}>;
|
|
62
|
-
export type GenerateSandboxedUiArgs = z.infer<typeof GenerateSandboxedUiArgsSchema>;
|
|
25
|
+
jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
/**
|
|
28
|
+
* Renders Open Generative UI content. The core controller throttles the
|
|
29
|
+
* content and runs the websandbox iframes inside the container div.
|
|
30
|
+
*/
|
|
63
31
|
export declare const OpenGenerativeUIRenderer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
64
32
|
content: {
|
|
65
33
|
type: PropType<OpenGenerativeUIContent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenGenerativeUIRenderer.d.ts","sourceRoot":"","sources":["../../../src/v2/components/OpenGenerativeUIRenderer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OpenGenerativeUIRenderer.d.ts","sourceRoot":"","sources":["../../../src/v2/components/OpenGenerativeUIRenderer.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,cAAc,EAEf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAG1B,YAAY,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,CAAC;AAEjE,eAAO,MAAM,4BAA4B,uBAAmC,CAAC;AAE7E,eAAO,MAAM,6BAA6B;;;;;;;;;;;iBAWK,CAAC;AAEhD,eAAO,MAAM,6BAA6B;;;;;;;iBAOK,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;cAIf,QAAQ,CAAC,uBAAuB,CAAC;;;;;;;cAAjC,QAAQ,CAAC,uBAAuB,CAAC;;;iGAkGrD,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;cAKvB,QAAQ,CAAC,uBAAuB,CAAC;;;;cAGxB,QAAQ,CAAC,OAAO,CAAC;;;;cAE1B,QAAQ,CAAC,OAAO,CAAC;;;;;;;;;;;;cALjB,QAAQ,CAAC,uBAAuB,CAAC;;;;cAGxB,QAAQ,CAAC,OAAO,CAAC;;;;cAE1B,QAAQ,CAAC,OAAO,CAAC;;;;;;4EAQrC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;cAKnB,QAAQ,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;;;;cAGlC,QAAQ,CAAC,cAAc,CAAC;;;;cACxB,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;;;;;cAJpC,QAAQ,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;;;;cAGlC,QAAQ,CAAC,cAAc,CAAC;;;;cACxB,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;iGAmCxD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { Catalog, ComponentApi } from "@a2ui/web_core/v0_9";
|
|
|
3
3
|
import type { CopilotKitCoreVue } from "../../lib/vue-core";
|
|
4
4
|
/**
|
|
5
5
|
* Build a context string describing the available A2UI catalog.
|
|
6
|
-
*
|
|
6
|
+
* Defaults to the Vue basic catalog.
|
|
7
7
|
*
|
|
8
8
|
* When `options.includeSchema` is `false`, custom components are listed by name
|
|
9
9
|
* only and their JSON schemas are omitted.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A2UICatalogContext.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/A2UICatalogContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"A2UICatalogContext.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/A2UICatalogContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAUjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAG5D;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAC/B,OAAO,CAAC,EAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,GACpC,MAAM,CAER;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC,EACzC,OAAO,EAAE;IACP,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IACjD,aAAa,EAAE,MAAM,OAAO,CAAC;CAC9B,GACA,IAAI,CA0EN"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, VNodeChild } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
/**
|
|
4
4
|
* Shared pre-paint lifecycle states for the A2UI surface renderer, ported from
|
|
5
5
|
* React's `A2UIRecoveryStates`.
|
|
@@ -35,14 +35,22 @@ export type DebugExposure = "hidden" | "collapsed" | "verbose";
|
|
|
35
35
|
* activity content (alongside `a2ui_operations` on paint).
|
|
36
36
|
*/
|
|
37
37
|
export declare const A2UILifecycleFields: {
|
|
38
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
38
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
building: "building";
|
|
40
|
+
retrying: "retrying";
|
|
41
|
+
failed: "failed";
|
|
42
|
+
}>>;
|
|
39
43
|
attempt: z.ZodOptional<z.ZodNumber>;
|
|
40
44
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
41
45
|
progressTokens: z.ZodOptional<z.ZodNumber>;
|
|
42
46
|
error: z.ZodOptional<z.ZodString>;
|
|
43
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
44
|
-
attempts: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
45
|
-
debugExposure: z.ZodOptional<z.ZodEnum<
|
|
47
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
48
|
+
attempts: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
49
|
+
debugExposure: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
hidden: "hidden";
|
|
51
|
+
collapsed: "collapsed";
|
|
52
|
+
verbose: "verbose";
|
|
53
|
+
}>>;
|
|
46
54
|
};
|
|
47
55
|
/** Server-stamped debugExposure wins; else the client option. */
|
|
48
56
|
export declare function resolveDebugExposure(content: any, optionDebugExposure: DebugExposure): DebugExposure;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A2UIRecoveryStates.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/A2UIRecoveryStates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"A2UIRecoveryStates.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/A2UIRecoveryStates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mEAAmE;IACnE,aAAa,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAU/B,CAAC;AAEF,iEAAiE;AACjE,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,aAAa,GACjC,aAAa,CAEf;AA6DD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,UAAU,EAAE,GACtB,UAAU,CAsKZ;AAmBD,kEAAkE;AAClE,eAAO,MAAM,iBAAiB;;cAGU,QAAQ,CAAC,GAAG,CAAC;;;;;cAAb,QAAQ,CAAC,GAAG,CAAC;;;;;4EASnD,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;cAGU,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;;;;cAI/B,QAAQ,CAAC,aAAa,CAAC;;;;;cAJL,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;;;;cAI/B,QAAQ,CAAC,aAAa,CAAC;;;;;4EAiE3C,CAAC;AAEH,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB;;cAGQ,QAAQ,CAAC,GAAG,CAAC;;;;cAE/B,QAAQ,CAAC,aAAa,CAAC;;;;;;;cAFL,QAAQ,CAAC,GAAG,CAAC;;;;cAE/B,QAAQ,CAAC,aAAa,CAAC;;;;;4EA6B3C,CAAC"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
export type A2UIOperation = Record<string, unknown>;
|
|
3
3
|
export declare const A2UISurfaceActivityType = "a2ui-surface";
|
|
4
4
|
export declare const A2UIActivityContentSchema: z.ZodObject<{
|
|
5
|
-
operations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown
|
|
6
|
-
},
|
|
7
|
-
operations: Record<string, unknown>[];
|
|
8
|
-
}, {
|
|
9
|
-
operations: Record<string, unknown>[];
|
|
10
|
-
}>;
|
|
5
|
+
operations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
11
7
|
export declare function getOperationSurfaceId(operation: A2UIOperation): string;
|
|
12
8
|
//# sourceMappingURL=a2ui.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a2ui.d.ts","sourceRoot":"","sources":["../../../src/v2/components/a2ui.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"a2ui.d.ts","sourceRoot":"","sources":["../../../src/v2/components/a2ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AAEtD,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,aAAa,GAAG,MAAM,CAmBtE"}
|
package/dist/v2/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@copilotkit/core"),n=require("@ag-ui/client"),e=require("../use-render-activity-message-CPzguixR.cjs"),o=require("@copilotkit/mcp-apps-renderer/activity"),c=require("@copilotkit/shared");Object.defineProperty(exports,"CopilotChatDefaultLabels",{enumerable:!0,get:()=>a.CopilotChatDefaultLabels});Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>n.PROTOCOL_VERSION});exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.ActivityDeltaEventSchema=e.ActivityDeltaEventSchema;exports.ActivityMessageSchema=e.ActivityMessageSchema;exports.ActivitySnapshotEventSchema=e.ActivitySnapshotEventSchema;exports.AddOperationSchema=e.AddOperationSchema;exports.AgentCapabilitiesSchema=e.AgentCapabilitiesSchema;exports.AssistantMessageSchema=e.AssistantMessageSchema;exports.AttributableSchema=e.AttributableSchema;exports.AudioInputContentSchema=e.AudioPartSchema;exports.AudioInputPartSchema=e.AudioPartSchema;exports.AudioPartSchema=e.AudioPartSchema;exports.BaseEventSchema=e.BaseEventSchema;exports.BaseMessageSchema=e.BaseMessageSchema;exports.ContentPartSchema=e.ContentPartSchema;exports.ContextSchema=e.ContextSchema;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e._sfc_main$1;exports.CopilotChatAttachmentQueue=e._sfc_main$2;exports.CopilotChatAttachmentRenderer=e._sfc_main$3;exports.CopilotChatAudioRecorder=e._sfc_main$4;exports.CopilotChatConfigurationProvider=e._sfc_main$5;exports.CopilotChatInput=e._sfc_main$6;exports.CopilotChatMessageView=e._sfc_main$7;exports.CopilotChatReasoningMessage=e._sfc_main$8;exports.CopilotChatSuggestionPill=e._sfc_main$9;exports.CopilotChatSuggestionView=e._sfc_main$10;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallGroup=e._sfc_main$11;exports.CopilotChatToolCallsView=e._sfc_main$12;exports.CopilotChatUserMessage=e._sfc_main$13;exports.CopilotChatView=e._sfc_main$14;exports.CopilotChatWorkSummary=e._sfc_main$15;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$16;exports.CopilotKitProvider=e._sfc_main$17;exports.CopilotKitStyles=e.CopilotKitStyles;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$18;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$19;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$20;exports.CopyOperationSchema=e.CopyOperationSchema;exports.CustomEventSchema=e.CustomEventSchema;exports.DataSourceSchema=e.DataSourceSchema;exports.DeveloperMessageSchema=e.DeveloperMessageSchema;exports.DocumentInputContentSchema=e.DocumentPartSchema;exports.DocumentInputPartSchema=e.DocumentPartSchema;exports.DocumentPartSchema=e.DocumentPartSchema;exports.EventSchema=e.EventSchema;exports.EventSchemas=e.EventSchema;exports.EventTypeSchema=e.EventTypeSchema;exports.ExecutionCapabilitiesSchema=e.ExecutionCapabilitiesSchema;exports.FileSourceSchema=e.FileSourceSchema;exports.FunctionCallSchema=e.FunctionCallSchema;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.HumanInTheLoopCapabilitiesSchema=e.HumanInTheLoopCapabilitiesSchema;exports.IdentityCapabilitiesSchema=e.IdentityCapabilitiesSchema;exports.ImageInputContentSchema=e.ImagePartSchema;exports.ImageInputPartSchema=e.ImagePartSchema;exports.ImagePartSchema=e.ImagePartSchema;exports.InputContentDataSourceSchema=e.DataSourceSchema;exports.InputContentSchema=e.ContentPartSchema;exports.InputContentSourceSchema=e.PartSourceSchema;exports.InputContentUrlSourceSchema=e.UrlSourceSchema;exports.InterruptSchema=e.InterruptSchema;exports.JsonPatchOperationSchema=e.JsonPatchOperationSchema;exports.JsonPatchSchema=e.JsonPatchSchema;exports.JsonPointerSchema=e.JsonPointerSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MARKDOWN_RENDERER_KEY=e.MARKDOWN_RENDERER_KEY;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MessageSchema=e.MessageSchema;exports.MessagesSnapshotEventSchema=e.MessagesSnapshotEventSchema;exports.MetadataSchema=e.MetadataSchema;exports.MoveOperationSchema=e.MoveOperationSchema;exports.MultiAgentCapabilitiesSchema=e.MultiAgentCapabilitiesSchema;exports.MultimodalCapabilitiesSchema=e.MultimodalCapabilitiesSchema;exports.MultimodalInputCapabilitiesSchema=e.MultimodalInputCapabilitiesSchema;exports.MultimodalOutputCapabilitiesSchema=e.MultimodalOutputCapabilitiesSchema;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.OptionalMetadataSchema=e.OptionalMetadataSchema;exports.OutputCapabilitiesSchema=e.OutputCapabilitiesSchema;exports.PartSourceSchema=e.PartSourceSchema;exports.RawEventSchema=e.RawEventSchema;exports.ReasoningCapabilitiesSchema=e.ReasoningCapabilitiesSchema;exports.ReasoningEncryptedValueEventSchema=e.ReasoningEncryptedValueEventSchema;exports.ReasoningEncryptedValueSubtypeSchema=e.ReasoningEncryptedValueSubtypeSchema;exports.ReasoningEndEventSchema=e.ReasoningEndEventSchema;exports.ReasoningMessageChunkEventSchema=e.ReasoningMessageChunkEventSchema;exports.ReasoningMessageContentEventSchema=e.ReasoningMessageContentEventSchema;exports.ReasoningMessageEndEventSchema=e.ReasoningMessageEndEventSchema;exports.ReasoningMessageSchema=e.ReasoningMessageSchema;exports.ReasoningMessageStartEventSchema=e.ReasoningMessageStartEventSchema;exports.ReasoningStartEventSchema=e.ReasoningStartEventSchema;exports.RemoveOperationSchema=e.RemoveOperationSchema;exports.ReplaceOperationSchema=e.ReplaceOperationSchema;exports.ResumeEntrySchema=e.ResumeEntrySchema;exports.RoleSchema=e.RoleSchema;exports.RunAgentInputSchema=e.RunAgentInputSchema;exports.RunErrorEventSchema=e.RunErrorEventSchema;exports.RunFinishedCancelledOutcomeSchema=e.RunFinishedCancelledOutcomeSchema;exports.RunFinishedEventSchema=e.RunFinishedEventSchema;exports.RunFinishedInterruptOutcomeSchema=e.RunFinishedInterruptOutcomeSchema;exports.RunFinishedOutcomeSchema=e.RunFinishedOutcomeSchema;exports.RunFinishedSuccessOutcomeSchema=e.RunFinishedSuccessOutcomeSchema;exports.RunStartedEventSchema=e.RunStartedEventSchema;exports.StateCapabilitiesSchema=e.StateCapabilitiesSchema;exports.StateDeltaEventSchema=e.StateDeltaEventSchema;exports.StateSchema=e.StateSchema;exports.StateSnapshotEventSchema=e.StateSnapshotEventSchema;exports.StepFinishedEventSchema=e.StepFinishedEventSchema;exports.StepStartedEventSchema=e.StepStartedEventSchema;exports.StreamingMarkdownDefault=e._sfc_main$21;exports.SubagentErrorEventSchema=e.SubagentErrorEventSchema;exports.SubagentFinishedEventSchema=e.SubagentFinishedEventSchema;exports.SubagentFinishedOutcomeSchema=e.SubagentFinishedOutcomeSchema;exports.SubagentFinishedSuccessOutcomeSchema=e.SubagentFinishedSuccessOutcomeSchema;exports.SubagentFinishedSuspendedOutcomeSchema=e.SubagentFinishedSuspendedOutcomeSchema;exports.SubagentInfoSchema=e.SubagentInfoSchema;exports.SubagentRunIdSchema=e.SubagentRunIdSchema;exports.SubagentStartedEventSchema=e.SubagentStartedEventSchema;exports.SystemMessageSchema=e.SystemMessageSchema;exports.TestOperationSchema=e.TestOperationSchema;exports.TextInputContentSchema=e.TextPartSchema;exports.TextMessageChunkEventSchema=e.TextMessageChunkEventSchema;exports.TextMessageContentEventSchema=e.TextMessageContentEventSchema;exports.TextMessageEndEventSchema=e.TextMessageEndEventSchema;exports.TextMessageRoleSchema=e.TextMessageRoleSchema;exports.TextMessageStartEventSchema=e.TextMessageStartEventSchema;exports.TextPartSchema=e.TextPartSchema;exports.TokenUsageSchema=e.TokenUsageSchema;exports.ToolCallArgsEventSchema=e.ToolCallArgsEventSchema;exports.ToolCallChunkEventSchema=e.ToolCallChunkEventSchema;exports.ToolCallEndEventSchema=e.ToolCallEndEventSchema;exports.ToolCallResultEventSchema=e.ToolCallResultEventSchema;exports.ToolCallSchema=e.ToolCallSchema;exports.ToolCallStartEventSchema=e.ToolCallStartEventSchema;exports.ToolMessageSchema=e.ToolMessageSchema;exports.ToolSchema=e.ToolSchema;exports.ToolsCapabilitiesSchema=e.ToolsCapabilitiesSchema;exports.TransportCapabilitiesSchema=e.TransportCapabilitiesSchema;exports.UrlSourceSchema=e.UrlSourceSchema;exports.UseAgentUpdate=e.UseAgentUpdate;exports.UserMessageSchema=e.UserMessageSchema;exports.VideoInputContentSchema=e.VideoPartSchema;exports.VideoInputPartSchema=e.VideoPartSchema;exports.VideoPartSchema=e.VideoPartSchema;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.extractCompleteStyles=e.extractCompleteStyles;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.isVueComponentRenderer=e.isVueComponentRenderer;exports.processPartialHtml=e.processPartialHtml;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useMarkdownRenderer=e.useMarkdownRenderer;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"MCPAppsActivityContentSchema",{enumerable:!0,get:()=>o.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>o.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>o.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>c.createLicenseContextValue});Object.keys(a).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>a[t]})});Object.keys(n).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>n[t]})});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@copilotkit/core"),n=require("@ag-ui/client"),e=require("../use-render-activity-message-u0OVXjd8.cjs"),o=require("@copilotkit/mcp-apps-renderer/activity"),c=require("@copilotkit/shared");Object.defineProperty(exports,"CopilotChatDefaultLabels",{enumerable:!0,get:()=>a.CopilotChatDefaultLabels});Object.defineProperty(exports,"extractCompleteStyles",{enumerable:!0,get:()=>a.ɵextractCompleteStyles});Object.defineProperty(exports,"processPartialHtml",{enumerable:!0,get:()=>a.ɵprocessPartialHtml});Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>n.PROTOCOL_VERSION});exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.ActivityDeltaEventSchema=e.ActivityDeltaEventSchema;exports.ActivityMessageSchema=e.ActivityMessageSchema;exports.ActivitySnapshotEventSchema=e.ActivitySnapshotEventSchema;exports.AddOperationSchema=e.AddOperationSchema;exports.AgentCapabilitiesSchema=e.AgentCapabilitiesSchema;exports.AssistantMessageSchema=e.AssistantMessageSchema;exports.AttributableSchema=e.AttributableSchema;exports.AudioInputContentSchema=e.AudioPartSchema;exports.AudioInputPartSchema=e.AudioPartSchema;exports.AudioPartSchema=e.AudioPartSchema;exports.BaseEventSchema=e.BaseEventSchema;exports.BaseMessageSchema=e.BaseMessageSchema;exports.ContentPartSchema=e.ContentPartSchema;exports.ContextSchema=e.ContextSchema;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e._sfc_main$1;exports.CopilotChatAttachmentQueue=e._sfc_main$2;exports.CopilotChatAttachmentRenderer=e._sfc_main$3;exports.CopilotChatAudioRecorder=e._sfc_main$4;exports.CopilotChatConfigurationProvider=e._sfc_main$5;exports.CopilotChatInput=e._sfc_main$6;exports.CopilotChatMessageView=e._sfc_main$7;exports.CopilotChatReasoningMessage=e._sfc_main$8;exports.CopilotChatSuggestionPill=e._sfc_main$9;exports.CopilotChatSuggestionView=e._sfc_main$10;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallGroup=e._sfc_main$11;exports.CopilotChatToolCallsView=e._sfc_main$12;exports.CopilotChatUserMessage=e._sfc_main$13;exports.CopilotChatView=e._sfc_main$14;exports.CopilotChatWorkSummary=e._sfc_main$15;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$16;exports.CopilotKitProvider=e._sfc_main$17;exports.CopilotKitStyles=e.CopilotKitStyles;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$18;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$19;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$20;exports.CopyOperationSchema=e.CopyOperationSchema;exports.CustomEventSchema=e.CustomEventSchema;exports.DataSourceSchema=e.DataSourceSchema;exports.DeveloperMessageSchema=e.DeveloperMessageSchema;exports.DocumentInputContentSchema=e.DocumentPartSchema;exports.DocumentInputPartSchema=e.DocumentPartSchema;exports.DocumentPartSchema=e.DocumentPartSchema;exports.EventSchema=e.EventSchema;exports.EventSchemas=e.EventSchema;exports.EventTypeSchema=e.EventTypeSchema;exports.ExecutionCapabilitiesSchema=e.ExecutionCapabilitiesSchema;exports.FileSourceSchema=e.FileSourceSchema;exports.FunctionCallSchema=e.FunctionCallSchema;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.HumanInTheLoopCapabilitiesSchema=e.HumanInTheLoopCapabilitiesSchema;exports.IdentityCapabilitiesSchema=e.IdentityCapabilitiesSchema;exports.ImageInputContentSchema=e.ImagePartSchema;exports.ImageInputPartSchema=e.ImagePartSchema;exports.ImagePartSchema=e.ImagePartSchema;exports.InputContentDataSourceSchema=e.DataSourceSchema;exports.InputContentSchema=e.ContentPartSchema;exports.InputContentSourceSchema=e.PartSourceSchema;exports.InputContentUrlSourceSchema=e.UrlSourceSchema;exports.InterruptSchema=e.InterruptSchema;exports.JsonPatchOperationSchema=e.JsonPatchOperationSchema;exports.JsonPatchSchema=e.JsonPatchSchema;exports.JsonPointerSchema=e.JsonPointerSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MARKDOWN_RENDERER_KEY=e.MARKDOWN_RENDERER_KEY;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MessageSchema=e.MessageSchema;exports.MessagesSnapshotEventSchema=e.MessagesSnapshotEventSchema;exports.MetadataSchema=e.MetadataSchema;exports.MoveOperationSchema=e.MoveOperationSchema;exports.MultiAgentCapabilitiesSchema=e.MultiAgentCapabilitiesSchema;exports.MultimodalCapabilitiesSchema=e.MultimodalCapabilitiesSchema;exports.MultimodalInputCapabilitiesSchema=e.MultimodalInputCapabilitiesSchema;exports.MultimodalOutputCapabilitiesSchema=e.MultimodalOutputCapabilitiesSchema;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.OptionalMetadataSchema=e.OptionalMetadataSchema;exports.OutputCapabilitiesSchema=e.OutputCapabilitiesSchema;exports.PartSourceSchema=e.PartSourceSchema;exports.RawEventSchema=e.RawEventSchema;exports.ReasoningCapabilitiesSchema=e.ReasoningCapabilitiesSchema;exports.ReasoningEncryptedValueEventSchema=e.ReasoningEncryptedValueEventSchema;exports.ReasoningEncryptedValueSubtypeSchema=e.ReasoningEncryptedValueSubtypeSchema;exports.ReasoningEndEventSchema=e.ReasoningEndEventSchema;exports.ReasoningMessageChunkEventSchema=e.ReasoningMessageChunkEventSchema;exports.ReasoningMessageContentEventSchema=e.ReasoningMessageContentEventSchema;exports.ReasoningMessageEndEventSchema=e.ReasoningMessageEndEventSchema;exports.ReasoningMessageSchema=e.ReasoningMessageSchema;exports.ReasoningMessageStartEventSchema=e.ReasoningMessageStartEventSchema;exports.ReasoningStartEventSchema=e.ReasoningStartEventSchema;exports.RemoveOperationSchema=e.RemoveOperationSchema;exports.ReplaceOperationSchema=e.ReplaceOperationSchema;exports.ResumeEntrySchema=e.ResumeEntrySchema;exports.RoleSchema=e.RoleSchema;exports.RunAgentInputSchema=e.RunAgentInputSchema;exports.RunErrorEventSchema=e.RunErrorEventSchema;exports.RunFinishedCancelledOutcomeSchema=e.RunFinishedCancelledOutcomeSchema;exports.RunFinishedEventSchema=e.RunFinishedEventSchema;exports.RunFinishedInterruptOutcomeSchema=e.RunFinishedInterruptOutcomeSchema;exports.RunFinishedOutcomeSchema=e.RunFinishedOutcomeSchema;exports.RunFinishedSuccessOutcomeSchema=e.RunFinishedSuccessOutcomeSchema;exports.RunStartedEventSchema=e.RunStartedEventSchema;exports.StateCapabilitiesSchema=e.StateCapabilitiesSchema;exports.StateDeltaEventSchema=e.StateDeltaEventSchema;exports.StateSchema=e.StateSchema;exports.StateSnapshotEventSchema=e.StateSnapshotEventSchema;exports.StepFinishedEventSchema=e.StepFinishedEventSchema;exports.StepStartedEventSchema=e.StepStartedEventSchema;exports.StreamingMarkdownDefault=e._sfc_main$21;exports.SubagentErrorEventSchema=e.SubagentErrorEventSchema;exports.SubagentFinishedEventSchema=e.SubagentFinishedEventSchema;exports.SubagentFinishedOutcomeSchema=e.SubagentFinishedOutcomeSchema;exports.SubagentFinishedSuccessOutcomeSchema=e.SubagentFinishedSuccessOutcomeSchema;exports.SubagentFinishedSuspendedOutcomeSchema=e.SubagentFinishedSuspendedOutcomeSchema;exports.SubagentInfoSchema=e.SubagentInfoSchema;exports.SubagentRunIdSchema=e.SubagentRunIdSchema;exports.SubagentStartedEventSchema=e.SubagentStartedEventSchema;exports.SystemMessageSchema=e.SystemMessageSchema;exports.TestOperationSchema=e.TestOperationSchema;exports.TextInputContentSchema=e.TextPartSchema;exports.TextMessageChunkEventSchema=e.TextMessageChunkEventSchema;exports.TextMessageContentEventSchema=e.TextMessageContentEventSchema;exports.TextMessageEndEventSchema=e.TextMessageEndEventSchema;exports.TextMessageRoleSchema=e.TextMessageRoleSchema;exports.TextMessageStartEventSchema=e.TextMessageStartEventSchema;exports.TextPartSchema=e.TextPartSchema;exports.TokenUsageSchema=e.TokenUsageSchema;exports.ToolCallArgsEventSchema=e.ToolCallArgsEventSchema;exports.ToolCallChunkEventSchema=e.ToolCallChunkEventSchema;exports.ToolCallEndEventSchema=e.ToolCallEndEventSchema;exports.ToolCallResultEventSchema=e.ToolCallResultEventSchema;exports.ToolCallSchema=e.ToolCallSchema;exports.ToolCallStartEventSchema=e.ToolCallStartEventSchema;exports.ToolMessageSchema=e.ToolMessageSchema;exports.ToolSchema=e.ToolSchema;exports.ToolsCapabilitiesSchema=e.ToolsCapabilitiesSchema;exports.TransportCapabilitiesSchema=e.TransportCapabilitiesSchema;exports.UrlSourceSchema=e.UrlSourceSchema;exports.UseAgentUpdate=e.UseAgentUpdate;exports.UserMessageSchema=e.UserMessageSchema;exports.VideoInputContentSchema=e.VideoPartSchema;exports.VideoInputPartSchema=e.VideoPartSchema;exports.VideoPartSchema=e.VideoPartSchema;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.isVueComponentRenderer=e.isVueComponentRenderer;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useMarkdownRenderer=e.useMarkdownRenderer;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"MCPAppsActivityContentSchema",{enumerable:!0,get:()=>o.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>o.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>o.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>c.createLicenseContextValue});Object.keys(a).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>a[t]})});Object.keys(n).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>n[t]})});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/v2/index.mjs
CHANGED
|
@@ -1,185 +1,185 @@
|
|
|
1
1
|
export * from "@copilotkit/core";
|
|
2
|
-
import { CopilotChatDefaultLabels as s } from "@copilotkit/core";
|
|
2
|
+
import { CopilotChatDefaultLabels as s, ɵextractCompleteStyles as n, ɵprocessPartialHtml as o } from "@copilotkit/core";
|
|
3
3
|
export * from "@ag-ui/client";
|
|
4
|
-
import { PROTOCOL_VERSION as
|
|
5
|
-
import { A as
|
|
4
|
+
import { PROTOCOL_VERSION as S } from "@ag-ui/client";
|
|
5
|
+
import { A as m, _ as r, a as u, b as l, c as p, d as C, e as b, f as g, g as d, h as v, i as E, i as R, i as I, B as M, j as A, C as T, k as y, l as O, m as x, n as P, o as f, p as U, q as V, r as D, s as F, t as w, u as K, v as L, w as k, x as G, y as B, z as H, D as J, E as N, F as W, G as _, H as j, I as q, J as z, K as Q, L as Y, M as X, N as Z, O as $, P as aa, Q as ea, R as ta, S as sa, T as na, U as oa, V as ia, V as ca, V as Sa, W as ha, W as ma, X as ra, Y as ua, Z as la, $ as pa, a0 as Ca, a1 as ba, a2 as ga, a3 as da, a3 as va, a3 as Ea, T as Ra, C as Ia, a4 as Ma, a5 as Aa, a6 as Ta, a7 as ya, a8 as Oa, a9 as xa, aa as Pa, ab as fa, ac as Ua, ad as Va, ae as Da, af as Fa, ag as wa, ah as Ka, ai as La, aj as ka, ak as Ga, al as Ba, am as Ha, an as Ja, ao as Na, ap as Wa, aq as _a, ar as ja, a4 as qa, as as za, at as Qa, au as Ya, av as Xa, aw as Za, ax as $a, ay as ae, az as ee, aA as te, aB as se, aC as ne, aD as oe, aE as ie, aF as ce, aG as Se, aH as he, aI as me, aJ as re, aK as ue, aL as le, aM as pe, aN as Ce, aO as be, aP as ge, aQ as de, aR as ve, aS as Ee, aT as Re, aU as Ie, aV as Me, aW as Ae, aX as Te, aY as ye, aZ as Oe, a_ as xe, a$ as Pe, b0 as fe, b1 as Ue, b2 as Ve, b3 as De, b4 as Fe, b5 as we, b6 as Ke, b7 as Le, b8 as ke, b9 as Ge, b4 as Be, ba as He, bb as Je, bc as Ne, bd as We, be as _e, bf as je, bg as qe, bh as ze, bi as Qe, bj as Ye, bk as Xe, a5 as Ze, bl as $e, bm as at, bn as et, bn as tt, bn as st, bo as nt, bp as ot, bq as it, br as ct, bs as St, bt as ht, bu as mt, bv as rt, bw as ut, bx as lt, by as pt, bz as Ct, bA as bt, bB as gt, bC as dt, bD as vt, bE as Et, bF as Rt, bG as It, bH as Mt, bI as At, bJ as Tt, bK as yt, bL as Ot, bM as xt, bN as Pt, bO as ft } from "../use-render-activity-message-B59A4R48.js";
|
|
6
6
|
import { MCPAppsActivityContentSchema as Vt, MCPAppsActivityType as Dt, ɵrunMcpFollowUp as Ft } from "@copilotkit/mcp-apps-renderer/activity";
|
|
7
7
|
import { createLicenseContextValue as Kt } from "@copilotkit/shared";
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
m as A2UIActivityContentSchema,
|
|
10
|
+
r as A2UISurfaceActivityRenderer,
|
|
11
|
+
u as A2UISurfaceActivityType,
|
|
12
|
+
l as ActivityDeltaEventSchema,
|
|
13
|
+
p as ActivityMessageSchema,
|
|
14
|
+
C as ActivitySnapshotEventSchema,
|
|
15
|
+
b as AddOperationSchema,
|
|
16
|
+
g as AgentCapabilitiesSchema,
|
|
17
|
+
d as AssistantMessageSchema,
|
|
18
|
+
v as AttributableSchema,
|
|
19
|
+
E as AudioInputContentSchema,
|
|
20
|
+
R as AudioInputPartSchema,
|
|
21
|
+
I as AudioPartSchema,
|
|
22
|
+
M as BaseEventSchema,
|
|
23
|
+
A as BaseMessageSchema,
|
|
24
|
+
T as ContentPartSchema,
|
|
25
|
+
y as ContextSchema,
|
|
26
|
+
O as CopilotChat,
|
|
27
|
+
x as CopilotChatAssistantMessage,
|
|
28
|
+
P as CopilotChatAttachmentQueue,
|
|
29
|
+
f as CopilotChatAttachmentRenderer,
|
|
30
|
+
U as CopilotChatAudioRecorder,
|
|
31
|
+
V as CopilotChatConfigurationProvider,
|
|
32
32
|
s as CopilotChatDefaultLabels,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
33
|
+
D as CopilotChatInput,
|
|
34
|
+
F as CopilotChatMessageView,
|
|
35
|
+
w as CopilotChatReasoningMessage,
|
|
36
|
+
K as CopilotChatSuggestionPill,
|
|
37
|
+
L as CopilotChatSuggestionView,
|
|
38
|
+
k as CopilotChatToggleButton,
|
|
39
|
+
G as CopilotChatToggleButtonCloseIcon,
|
|
40
|
+
B as CopilotChatToggleButtonOpenIcon,
|
|
41
|
+
H as CopilotChatToolCallGroup,
|
|
42
|
+
J as CopilotChatToolCallsView,
|
|
43
|
+
N as CopilotChatUserMessage,
|
|
44
|
+
W as CopilotChatView,
|
|
45
|
+
_ as CopilotChatWorkSummary,
|
|
46
|
+
j as CopilotKitCoreVue,
|
|
47
|
+
q as CopilotKitInspector,
|
|
48
|
+
z as CopilotKitProvider,
|
|
49
|
+
Q as CopilotKitStyles,
|
|
50
|
+
Y as CopilotModalHeader,
|
|
51
|
+
X as CopilotPopup,
|
|
52
|
+
Z as CopilotPopupView,
|
|
53
|
+
$ as CopilotSidebar,
|
|
54
|
+
aa as CopilotSidebarView,
|
|
55
|
+
ea as CopilotThreadsDrawer,
|
|
56
|
+
ta as CopyOperationSchema,
|
|
57
|
+
sa as CustomEventSchema,
|
|
58
|
+
na as DataSourceSchema,
|
|
59
|
+
oa as DeveloperMessageSchema,
|
|
60
|
+
ia as DocumentInputContentSchema,
|
|
61
|
+
ca as DocumentInputPartSchema,
|
|
62
|
+
Sa as DocumentPartSchema,
|
|
63
|
+
ha as EventSchema,
|
|
64
|
+
ma as EventSchemas,
|
|
65
|
+
ra as EventTypeSchema,
|
|
66
|
+
ua as ExecutionCapabilitiesSchema,
|
|
67
|
+
la as FileSourceSchema,
|
|
68
|
+
pa as FunctionCallSchema,
|
|
69
|
+
Ca as GenerateSandboxedUiArgsSchema,
|
|
70
|
+
ba as HumanInTheLoopCapabilitiesSchema,
|
|
71
|
+
ga as IdentityCapabilitiesSchema,
|
|
72
|
+
da as ImageInputContentSchema,
|
|
73
|
+
va as ImageInputPartSchema,
|
|
74
|
+
Ea as ImagePartSchema,
|
|
75
|
+
Ra as InputContentDataSourceSchema,
|
|
76
|
+
Ia as InputContentSchema,
|
|
77
|
+
Ma as InputContentSourceSchema,
|
|
78
|
+
Aa as InputContentUrlSourceSchema,
|
|
79
|
+
Ta as InterruptSchema,
|
|
80
|
+
ya as JsonPatchOperationSchema,
|
|
81
|
+
Oa as JsonPatchSchema,
|
|
82
|
+
xa as JsonPointerSchema,
|
|
83
|
+
Pa as LicenseContextKey,
|
|
84
|
+
fa as MARKDOWN_RENDERER_KEY,
|
|
85
85
|
Vt as MCPAppsActivityContentSchema,
|
|
86
|
-
|
|
86
|
+
Ua as MCPAppsActivityRenderer,
|
|
87
87
|
Dt as MCPAppsActivityType,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
88
|
+
Va as MessageSchema,
|
|
89
|
+
Da as MessagesSnapshotEventSchema,
|
|
90
|
+
Fa as MetadataSchema,
|
|
91
|
+
wa as MoveOperationSchema,
|
|
92
|
+
Ka as MultiAgentCapabilitiesSchema,
|
|
93
|
+
La as MultimodalCapabilitiesSchema,
|
|
94
|
+
ka as MultimodalInputCapabilitiesSchema,
|
|
95
|
+
Ga as MultimodalOutputCapabilitiesSchema,
|
|
96
|
+
Ba as OpenGenerativeUIActivityRenderer,
|
|
97
|
+
Ha as OpenGenerativeUIActivityType,
|
|
98
|
+
Ja as OpenGenerativeUIContentSchema,
|
|
99
|
+
Na as OpenGenerativeUIRenderer,
|
|
100
|
+
Wa as OpenGenerativeUIToolRenderer,
|
|
101
|
+
_a as OptionalMetadataSchema,
|
|
102
|
+
ja as OutputCapabilitiesSchema,
|
|
103
|
+
S as PROTOCOL_VERSION,
|
|
104
|
+
qa as PartSourceSchema,
|
|
105
|
+
za as RawEventSchema,
|
|
106
|
+
Qa as ReasoningCapabilitiesSchema,
|
|
107
|
+
Ya as ReasoningEncryptedValueEventSchema,
|
|
108
|
+
Xa as ReasoningEncryptedValueSubtypeSchema,
|
|
109
|
+
Za as ReasoningEndEventSchema,
|
|
110
|
+
$a as ReasoningMessageChunkEventSchema,
|
|
111
|
+
ae as ReasoningMessageContentEventSchema,
|
|
112
|
+
ee as ReasoningMessageEndEventSchema,
|
|
113
|
+
te as ReasoningMessageSchema,
|
|
114
|
+
se as ReasoningMessageStartEventSchema,
|
|
115
|
+
ne as ReasoningStartEventSchema,
|
|
116
|
+
oe as RemoveOperationSchema,
|
|
117
|
+
ie as ReplaceOperationSchema,
|
|
118
|
+
ce as ResumeEntrySchema,
|
|
119
|
+
Se as RoleSchema,
|
|
120
|
+
he as RunAgentInputSchema,
|
|
121
|
+
me as RunErrorEventSchema,
|
|
122
|
+
re as RunFinishedCancelledOutcomeSchema,
|
|
123
|
+
ue as RunFinishedEventSchema,
|
|
124
|
+
le as RunFinishedInterruptOutcomeSchema,
|
|
125
|
+
pe as RunFinishedOutcomeSchema,
|
|
126
|
+
Ce as RunFinishedSuccessOutcomeSchema,
|
|
127
|
+
be as RunStartedEventSchema,
|
|
128
|
+
ge as StateCapabilitiesSchema,
|
|
129
|
+
de as StateDeltaEventSchema,
|
|
130
|
+
ve as StateSchema,
|
|
131
|
+
Ee as StateSnapshotEventSchema,
|
|
132
|
+
Re as StepFinishedEventSchema,
|
|
133
|
+
Ie as StepStartedEventSchema,
|
|
134
|
+
Me as StreamingMarkdownDefault,
|
|
135
|
+
Ae as SubagentErrorEventSchema,
|
|
136
|
+
Te as SubagentFinishedEventSchema,
|
|
137
|
+
ye as SubagentFinishedOutcomeSchema,
|
|
138
|
+
Oe as SubagentFinishedSuccessOutcomeSchema,
|
|
139
|
+
xe as SubagentFinishedSuspendedOutcomeSchema,
|
|
140
|
+
Pe as SubagentInfoSchema,
|
|
141
|
+
fe as SubagentRunIdSchema,
|
|
142
|
+
Ue as SubagentStartedEventSchema,
|
|
143
|
+
Ve as SystemMessageSchema,
|
|
144
|
+
De as TestOperationSchema,
|
|
145
|
+
Fe as TextInputContentSchema,
|
|
146
|
+
we as TextMessageChunkEventSchema,
|
|
147
|
+
Ke as TextMessageContentEventSchema,
|
|
148
|
+
Le as TextMessageEndEventSchema,
|
|
149
|
+
ke as TextMessageRoleSchema,
|
|
150
|
+
Ge as TextMessageStartEventSchema,
|
|
151
|
+
Be as TextPartSchema,
|
|
152
|
+
He as TokenUsageSchema,
|
|
153
|
+
Je as ToolCallArgsEventSchema,
|
|
154
|
+
Ne as ToolCallChunkEventSchema,
|
|
155
|
+
We as ToolCallEndEventSchema,
|
|
156
|
+
_e as ToolCallResultEventSchema,
|
|
157
|
+
je as ToolCallSchema,
|
|
158
|
+
qe as ToolCallStartEventSchema,
|
|
159
|
+
ze as ToolMessageSchema,
|
|
160
|
+
Qe as ToolSchema,
|
|
161
|
+
Ye as ToolsCapabilitiesSchema,
|
|
162
|
+
Xe as TransportCapabilitiesSchema,
|
|
163
|
+
Ze as UrlSourceSchema,
|
|
164
|
+
$e as UseAgentUpdate,
|
|
165
|
+
at as UserMessageSchema,
|
|
166
|
+
et as VideoInputContentSchema,
|
|
167
|
+
tt as VideoInputPartSchema,
|
|
168
|
+
st as VideoPartSchema,
|
|
169
|
+
nt as createA2UIMessageRenderer,
|
|
170
|
+
ot as createDefaultLicenseRef,
|
|
171
171
|
Kt as createLicenseContextValue,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
it as defineToolCallRenderer,
|
|
173
|
+
n as extractCompleteStyles,
|
|
174
|
+
ct as getOperationSurfaceId,
|
|
175
|
+
St as isVueComponentRenderer,
|
|
176
|
+
o as processPartialHtml,
|
|
177
177
|
ht as useAgent,
|
|
178
178
|
mt as useAgentContext,
|
|
179
179
|
rt as useAttachments,
|
|
180
180
|
ut as useCapabilities,
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
lt as useComponent,
|
|
182
|
+
pt as useConfigureSuggestions,
|
|
183
183
|
Ct as useCopilotChatConfiguration,
|
|
184
184
|
bt as useCopilotKit,
|
|
185
185
|
gt as useDefaultRenderTool,
|
|
@@ -191,10 +191,10 @@ export {
|
|
|
191
191
|
Mt as useMarkdownRenderer,
|
|
192
192
|
At as useRenderActivityMessage,
|
|
193
193
|
Tt as useRenderCustomMessages,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
yt as useRenderTool,
|
|
195
|
+
Ot as useSandboxFunctions,
|
|
196
|
+
xt as useSuggestions,
|
|
197
|
+
Pt as useThreads,
|
|
198
198
|
ft as vueBasicCatalog,
|
|
199
199
|
Ft as ɵrunMcpFollowUp
|
|
200
200
|
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function processPartialHtml(html: string): string;
|
|
1
|
+
export { ɵextractCompleteStyles as extractCompleteStyles, ɵprocessPartialHtml as processPartialHtml, } from "@copilotkit/core";
|
|
3
2
|
//# sourceMappingURL=processPartialHtml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processPartialHtml.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/processPartialHtml.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"processPartialHtml.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/processPartialHtml.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,IAAI,qBAAqB,EAC/C,mBAAmB,IAAI,kBAAkB,GAC1C,MAAM,kBAAkB,CAAC"}
|