@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.
Files changed (51) hide show
  1. package/dist/hooks/use-copilot-action.d.ts.map +1 -1
  2. package/dist/hooks/use-frontend-tool.d.ts +1 -1
  3. package/dist/hooks/use-frontend-tool.d.ts.map +1 -1
  4. package/dist/hooks/zod-parameters.d.ts +14 -0
  5. package/dist/hooks/zod-parameters.d.ts.map +1 -0
  6. package/dist/index.cjs +1 -1
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.mjs +392 -290
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/use-render-activity-message-B59A4R48.js +18097 -0
  11. package/dist/use-render-activity-message-B59A4R48.js.map +1 -0
  12. package/dist/use-render-activity-message-u0OVXjd8.cjs +92 -0
  13. package/dist/use-render-activity-message-u0OVXjd8.cjs.map +1 -0
  14. package/dist/v2/components/OpenGenerativeUIRenderer.d.ts +13 -45
  15. package/dist/v2/components/OpenGenerativeUIRenderer.d.ts.map +1 -1
  16. package/dist/v2/components/a2ui/A2UICatalogContext.d.ts +1 -1
  17. package/dist/v2/components/a2ui/A2UICatalogContext.d.ts.map +1 -1
  18. package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts +13 -5
  19. package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts.map +1 -1
  20. package/dist/v2/components/a2ui.d.ts +3 -7
  21. package/dist/v2/components/a2ui.d.ts.map +1 -1
  22. package/dist/v2/index.cjs +1 -1
  23. package/dist/v2/index.mjs +173 -173
  24. package/dist/v2/lib/processPartialHtml.d.ts +1 -2
  25. package/dist/v2/lib/processPartialHtml.d.ts.map +1 -1
  26. package/dist/v2/providers/CopilotKitProvider.vue.d.ts +1 -1
  27. package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
  28. package/package.json +10 -10
  29. package/src/hooks/__tests__/zod-parameters.test.ts +520 -0
  30. package/src/hooks/use-copilot-action.ts +2 -1
  31. package/src/hooks/use-frontend-tool.ts +3 -6
  32. package/src/hooks/zod-parameters.ts +162 -0
  33. package/src/v2/components/A2UIMessageRenderer.ts +3 -3
  34. package/src/v2/components/OpenGenerativeUIRenderer.ts +51 -373
  35. package/src/v2/components/__tests__/A2UICatalogContext.test.ts +1 -1
  36. package/src/v2/components/__tests__/OpenGenerativeUIRenderer.test.ts +55 -6
  37. package/src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts +1 -1
  38. package/src/v2/components/a2ui/A2UICatalogContext.ts +10 -102
  39. package/src/v2/components/a2ui/A2UIRecoveryStates.ts +1 -1
  40. package/src/v2/components/a2ui.ts +1 -1
  41. package/src/v2/components/chat/__tests__/CopilotChatActivityRendering.e2e.test.ts +26 -9
  42. package/src/v2/hooks/__tests__/zod-regression.test.ts +1 -1
  43. package/src/v2/lib/processPartialHtml.ts +6 -21
  44. package/src/v2/providers/CopilotKitProvider.vue +26 -34
  45. package/src/v2/providers/__tests__/CopilotKitProvider.a2ui.test.ts +1 -1
  46. package/vite.config.ts +2 -2
  47. package/dist/use-render-activity-message-C5LCG9a9.js +0 -16451
  48. package/dist/use-render-activity-message-C5LCG9a9.js.map +0 -1
  49. package/dist/use-render-activity-message-CPzguixR.cjs +0 -74
  50. package/dist/use-render-activity-message-CPzguixR.cjs.map +0 -1
  51. package/src/v2/lib/__tests__/processPartialHtml.test.ts +0 -84
@@ -1,65 +1,33 @@
1
1
  import type { PropType } from "vue";
2
- import { z } from "zod";
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, "many">>;
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, "many">>;
16
+ jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
17
  jsExpressionsComplete: z.ZodOptional<z.ZodBoolean>;
16
- }, "strip", z.ZodTypeAny, {
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, "many">>;
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, "many">>;
47
- }, "strip", z.ZodTypeAny, {
48
- html?: string | undefined;
49
- initialHeight?: number | undefined;
50
- css?: string | undefined;
51
- jsFunctions?: string | undefined;
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":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOlD,eAAO,MAAM,4BAA4B,uBAAuB,CAAC;AAEjE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;EAOxC,CAAC;AAEH,MAAM,MAAM,uBA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AO,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
- * Vue-native equivalent of buildCatalogContextValue from a2ui-renderer.
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":"A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E,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 { z } from "zod";
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<["building", "retrying", "failed"]>>;
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, "many">>;
44
- attempts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
45
- debugExposure: z.ZodOptional<z.ZodEnum<["hidden", "collapsed", "verbose"]>>;
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,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;;;;;;;;;;;;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 { z } from "zod";
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>, "many">;
6
- }, "strip", z.ZodTypeAny, {
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,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AAEtD,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAC;AAEH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,aAAa,GAAG,MAAM,CAmBtE"}
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 i } from "@ag-ui/client";
5
- import { A as S, _ as h, a as m, b as r, c as u, d as p, e as l, f as C, g as b, h as g, i as d, i as v, i as E, B as R, j as I, C as M, k as A, l as T, m as O, n as y, o as P, p as x, q as f, r as U, s as V, t as D, u as F, v as w, w as K, x as L, y as k, z as G, D as B, E as H, F as J, G as N, H as W, I as _, J as Q, K as j, L as q, M as z, N as Y, O as X, P as Z, Q as $, R as aa, S as ea, T as ta, U as sa, V as na, V as oa, V as ia, W as ca, W as Sa, X as ha, Y as ma, Z as ra, $ as ua, a0 as pa, a1 as la, a2 as Ca, a3 as ba, a3 as ga, a3 as da, T as va, C as Ea, a4 as Ra, a5 as Ia, a6 as Ma, a7 as Aa, a8 as Ta, a9 as Oa, aa as ya, ab as Pa, ac as xa, ad as fa, ae as Ua, af as Va, ag as Da, ah as Fa, ai as wa, aj as Ka, ak as La, al as ka, am as Ga, an as Ba, ao as Ha, ap as Ja, aq as Na, ar as Wa, a4 as _a, as as Qa, at as ja, au as qa, av as za, aw as Ya, ax as Xa, ay as Za, az as $a, aA as ae, aB as ee, aC as te, aD as se, aE as ne, aF as oe, aG as ie, aH as ce, aI as Se, aJ as he, aK as me, aL as re, aM as ue, aN as pe, aO as le, aP as Ce, aQ as be, aR as ge, aS as de, aT as ve, aU as Ee, aV as Re, aW as Ie, aX as Me, aY as Ae, aZ as Te, a_ as Oe, a$ as ye, b0 as Pe, b1 as xe, b2 as fe, b3 as Ue, b4 as Ve, b5 as De, b6 as Fe, b7 as we, b8 as Ke, b9 as Le, b4 as ke, ba as Ge, bb as Be, bc as He, bd as Je, be as Ne, bf as We, bg as _e, bh as Qe, bi as je, bj as qe, bk as ze, a5 as Ye, bl as Xe, bm as Ze, bn as $e, bn as at, bn as et, bo as tt, bp as st, bq as nt, br as ot, bs as it, bt as ct, bu as St, bv as ht, bw as mt, bx as rt, by as ut, bz as pt, bA as lt, bB as Ct, bC as bt, bD as gt, bE as dt, bF as vt, bG as Et, bH as Rt, bI as It, bJ as Mt, bK as At, bL as Tt, bM as Ot, bN as yt, bO as Pt, bP as xt, bQ as ft } from "../use-render-activity-message-C5LCG9a9.js";
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
- S as A2UIActivityContentSchema,
10
- h as A2UISurfaceActivityRenderer,
11
- m as A2UISurfaceActivityType,
12
- r as ActivityDeltaEventSchema,
13
- u as ActivityMessageSchema,
14
- p as ActivitySnapshotEventSchema,
15
- l as AddOperationSchema,
16
- C as AgentCapabilitiesSchema,
17
- b as AssistantMessageSchema,
18
- g as AttributableSchema,
19
- d as AudioInputContentSchema,
20
- v as AudioInputPartSchema,
21
- E as AudioPartSchema,
22
- R as BaseEventSchema,
23
- I as BaseMessageSchema,
24
- M as ContentPartSchema,
25
- A as ContextSchema,
26
- T as CopilotChat,
27
- O as CopilotChatAssistantMessage,
28
- y as CopilotChatAttachmentQueue,
29
- P as CopilotChatAttachmentRenderer,
30
- x as CopilotChatAudioRecorder,
31
- f as CopilotChatConfigurationProvider,
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
- U as CopilotChatInput,
34
- V as CopilotChatMessageView,
35
- D as CopilotChatReasoningMessage,
36
- F as CopilotChatSuggestionPill,
37
- w as CopilotChatSuggestionView,
38
- K as CopilotChatToggleButton,
39
- L as CopilotChatToggleButtonCloseIcon,
40
- k as CopilotChatToggleButtonOpenIcon,
41
- G as CopilotChatToolCallGroup,
42
- B as CopilotChatToolCallsView,
43
- H as CopilotChatUserMessage,
44
- J as CopilotChatView,
45
- N as CopilotChatWorkSummary,
46
- W as CopilotKitCoreVue,
47
- _ as CopilotKitInspector,
48
- Q as CopilotKitProvider,
49
- j as CopilotKitStyles,
50
- q as CopilotModalHeader,
51
- z as CopilotPopup,
52
- Y as CopilotPopupView,
53
- X as CopilotSidebar,
54
- Z as CopilotSidebarView,
55
- $ as CopilotThreadsDrawer,
56
- aa as CopyOperationSchema,
57
- ea as CustomEventSchema,
58
- ta as DataSourceSchema,
59
- sa as DeveloperMessageSchema,
60
- na as DocumentInputContentSchema,
61
- oa as DocumentInputPartSchema,
62
- ia as DocumentPartSchema,
63
- ca as EventSchema,
64
- Sa as EventSchemas,
65
- ha as EventTypeSchema,
66
- ma as ExecutionCapabilitiesSchema,
67
- ra as FileSourceSchema,
68
- ua as FunctionCallSchema,
69
- pa as GenerateSandboxedUiArgsSchema,
70
- la as HumanInTheLoopCapabilitiesSchema,
71
- Ca as IdentityCapabilitiesSchema,
72
- ba as ImageInputContentSchema,
73
- ga as ImageInputPartSchema,
74
- da as ImagePartSchema,
75
- va as InputContentDataSourceSchema,
76
- Ea as InputContentSchema,
77
- Ra as InputContentSourceSchema,
78
- Ia as InputContentUrlSourceSchema,
79
- Ma as InterruptSchema,
80
- Aa as JsonPatchOperationSchema,
81
- Ta as JsonPatchSchema,
82
- Oa as JsonPointerSchema,
83
- ya as LicenseContextKey,
84
- Pa as MARKDOWN_RENDERER_KEY,
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
- xa as MCPAppsActivityRenderer,
86
+ Ua as MCPAppsActivityRenderer,
87
87
  Dt as MCPAppsActivityType,
88
- fa as MessageSchema,
89
- Ua as MessagesSnapshotEventSchema,
90
- Va as MetadataSchema,
91
- Da as MoveOperationSchema,
92
- Fa as MultiAgentCapabilitiesSchema,
93
- wa as MultimodalCapabilitiesSchema,
94
- Ka as MultimodalInputCapabilitiesSchema,
95
- La as MultimodalOutputCapabilitiesSchema,
96
- ka as OpenGenerativeUIActivityRenderer,
97
- Ga as OpenGenerativeUIActivityType,
98
- Ba as OpenGenerativeUIContentSchema,
99
- Ha as OpenGenerativeUIRenderer,
100
- Ja as OpenGenerativeUIToolRenderer,
101
- Na as OptionalMetadataSchema,
102
- Wa as OutputCapabilitiesSchema,
103
- i as PROTOCOL_VERSION,
104
- _a as PartSourceSchema,
105
- Qa as RawEventSchema,
106
- ja as ReasoningCapabilitiesSchema,
107
- qa as ReasoningEncryptedValueEventSchema,
108
- za as ReasoningEncryptedValueSubtypeSchema,
109
- Ya as ReasoningEndEventSchema,
110
- Xa as ReasoningMessageChunkEventSchema,
111
- Za as ReasoningMessageContentEventSchema,
112
- $a as ReasoningMessageEndEventSchema,
113
- ae as ReasoningMessageSchema,
114
- ee as ReasoningMessageStartEventSchema,
115
- te as ReasoningStartEventSchema,
116
- se as RemoveOperationSchema,
117
- ne as ReplaceOperationSchema,
118
- oe as ResumeEntrySchema,
119
- ie as RoleSchema,
120
- ce as RunAgentInputSchema,
121
- Se as RunErrorEventSchema,
122
- he as RunFinishedCancelledOutcomeSchema,
123
- me as RunFinishedEventSchema,
124
- re as RunFinishedInterruptOutcomeSchema,
125
- ue as RunFinishedOutcomeSchema,
126
- pe as RunFinishedSuccessOutcomeSchema,
127
- le as RunStartedEventSchema,
128
- Ce as StateCapabilitiesSchema,
129
- be as StateDeltaEventSchema,
130
- ge as StateSchema,
131
- de as StateSnapshotEventSchema,
132
- ve as StepFinishedEventSchema,
133
- Ee as StepStartedEventSchema,
134
- Re as StreamingMarkdownDefault,
135
- Ie as SubagentErrorEventSchema,
136
- Me as SubagentFinishedEventSchema,
137
- Ae as SubagentFinishedOutcomeSchema,
138
- Te as SubagentFinishedSuccessOutcomeSchema,
139
- Oe as SubagentFinishedSuspendedOutcomeSchema,
140
- ye as SubagentInfoSchema,
141
- Pe as SubagentRunIdSchema,
142
- xe as SubagentStartedEventSchema,
143
- fe as SystemMessageSchema,
144
- Ue as TestOperationSchema,
145
- Ve as TextInputContentSchema,
146
- De as TextMessageChunkEventSchema,
147
- Fe as TextMessageContentEventSchema,
148
- we as TextMessageEndEventSchema,
149
- Ke as TextMessageRoleSchema,
150
- Le as TextMessageStartEventSchema,
151
- ke as TextPartSchema,
152
- Ge as TokenUsageSchema,
153
- Be as ToolCallArgsEventSchema,
154
- He as ToolCallChunkEventSchema,
155
- Je as ToolCallEndEventSchema,
156
- Ne as ToolCallResultEventSchema,
157
- We as ToolCallSchema,
158
- _e as ToolCallStartEventSchema,
159
- Qe as ToolMessageSchema,
160
- je as ToolSchema,
161
- qe as ToolsCapabilitiesSchema,
162
- ze as TransportCapabilitiesSchema,
163
- Ye as UrlSourceSchema,
164
- Xe as UseAgentUpdate,
165
- Ze as UserMessageSchema,
166
- $e as VideoInputContentSchema,
167
- at as VideoInputPartSchema,
168
- et as VideoPartSchema,
169
- tt as createA2UIMessageRenderer,
170
- st as createDefaultLicenseRef,
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
- nt as defineToolCallRenderer,
173
- ot as extractCompleteStyles,
174
- it as getOperationSurfaceId,
175
- ct as isVueComponentRenderer,
176
- St as processPartialHtml,
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
- pt as useComponent,
182
- lt as useConfigureSuggestions,
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
- Ot as useRenderTool,
195
- yt as useSandboxFunctions,
196
- Pt as useSuggestions,
197
- xt as useThreads,
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 declare function extractCompleteStyles(html: string): string;
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":"AAAA,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAevD"}
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"}