@copilotkit/vue 2.0.0-rc.30 → 2.0.0-rc.32
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/PARITY.md +3 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{use-render-activity-message-BZJ33B_r.cjs → use-render-activity-message-hEeLFpN7.cjs} +2 -2
- package/dist/{use-render-activity-message-BZJ33B_r.cjs.map → use-render-activity-message-hEeLFpN7.cjs.map} +1 -1
- package/dist/{use-render-activity-message-DrR407LQ.js → use-render-activity-message-xYGNJppN.js} +2 -2
- package/dist/{use-render-activity-message-DrR407LQ.js.map → use-render-activity-message-xYGNJppN.js.map} +1 -1
- package/dist/v2/components/a2ui/catalog.d.ts +1 -1
- package/dist/v2/components/a2ui/catalog.d.ts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.mjs +1 -1
- package/package.json +9 -9
- package/src/v2/components/__tests__/A2UIMessageRenderer.test.ts +62 -0
|
@@ -24,6 +24,6 @@ declare const CheckBox: VueComponentImplementation;
|
|
|
24
24
|
declare const ChoicePicker: VueComponentImplementation;
|
|
25
25
|
declare const Slider: VueComponentImplementation;
|
|
26
26
|
declare const DateTimeInput: VueComponentImplementation;
|
|
27
|
-
export declare const vueBasicCatalog: Catalog<VueComponentImplementation>;
|
|
27
|
+
export declare const vueBasicCatalog: Catalog<VueComponentImplementation, import("@a2ui/web_core/v0_9").FunctionImplementation>;
|
|
28
28
|
export { Text, Image, Icon, Video, AudioPlayer, Row, Column, List, Card, Tabs, Divider, Modal, Button, TextField, CheckBox, ChoicePicker, Slider, DateTimeInput, };
|
|
29
29
|
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/catalog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAwB9C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AA0C5D,QAAA,MAAM,IAAI,4BAgCR,CAAC;AAEH,QAAA,MAAM,KAAK,4BA+BT,CAAC;AAEH,QAAA,MAAM,IAAI,4BAgBR,CAAC;AAEH,QAAA,MAAM,KAAK,4BAQT,CAAC;AAEH,QAAA,MAAM,WAAW,4BA6Bf,CAAC;AAEH,QAAA,MAAM,GAAG,4BAgBP,CAAC;AAEH,QAAA,MAAM,MAAM,4BAgBV,CAAC;AAEH,QAAA,MAAM,IAAI,4BAcR,CAAC;AAEH,QAAA,MAAM,IAAI,4BASR,CAAC;AAEH,QAAA,MAAM,IAAI,4BAmET,CAAC;AAEF,QAAA,MAAM,OAAO,4BAiBX,CAAC;AAEH,QAAA,MAAM,KAAK,4BAoFV,CAAC;AAEF,QAAA,MAAM,MAAM,4BA6BV,CAAC;AAEH,QAAA,MAAM,SAAS,4BAgFd,CAAC;AAEF,QAAA,MAAM,QAAQ,4BAoEb,CAAC;AAEF,QAAA,MAAM,YAAY,4BAgIjB,CAAC;AAEF,QAAA,MAAM,MAAM,4BAyDX,CAAC;AAEF,QAAA,MAAM,aAAa,4BAmDlB,CAAC;AA2BF,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/catalog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAwB9C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AA0C5D,QAAA,MAAM,IAAI,4BAgCR,CAAC;AAEH,QAAA,MAAM,KAAK,4BA+BT,CAAC;AAEH,QAAA,MAAM,IAAI,4BAgBR,CAAC;AAEH,QAAA,MAAM,KAAK,4BAQT,CAAC;AAEH,QAAA,MAAM,WAAW,4BA6Bf,CAAC;AAEH,QAAA,MAAM,GAAG,4BAgBP,CAAC;AAEH,QAAA,MAAM,MAAM,4BAgBV,CAAC;AAEH,QAAA,MAAM,IAAI,4BAcR,CAAC;AAEH,QAAA,MAAM,IAAI,4BASR,CAAC;AAEH,QAAA,MAAM,IAAI,4BAmET,CAAC;AAEF,QAAA,MAAM,OAAO,4BAiBX,CAAC;AAEH,QAAA,MAAM,KAAK,4BAoFV,CAAC;AAEF,QAAA,MAAM,MAAM,4BA6BV,CAAC;AAEH,QAAA,MAAM,SAAS,4BAgFd,CAAC;AAEF,QAAA,MAAM,QAAQ,4BAoEb,CAAC;AAEF,QAAA,MAAM,YAAY,4BAgIjB,CAAC;AAEF,QAAA,MAAM,MAAM,4BAyDX,CAAC;AAEF,QAAA,MAAM,aAAa,4BAmDlB,CAAC;AA2BF,eAAO,MAAM,eAAe,2FAI3B,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,WAAW,EACX,GAAG,EACH,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,KAAK,EACL,MAAM,EACN,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,aAAa,GACd,CAAC"}
|
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-BZJ33B_r.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]})});
|
|
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-hEeLFpN7.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
|
@@ -2,7 +2,7 @@ export * from "@copilotkit/core";
|
|
|
2
2
|
import { CopilotChatDefaultLabels as s, ɵextractCompleteStyles as n, ɵprocessPartialHtml as o } from "@copilotkit/core";
|
|
3
3
|
export * from "@ag-ui/client";
|
|
4
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-
|
|
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-xYGNJppN.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 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/vue",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vue 3 components and composables for CopilotKit",
|
|
6
6
|
"keywords": [
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@a2ui/web_core": "0.
|
|
61
|
+
"@a2ui/web_core": "0.15.0",
|
|
62
62
|
"@ag-ui/client": "1.0.4",
|
|
63
63
|
"@ag-ui/core": "1.0.4",
|
|
64
|
-
"@copilotkit/a2ui-renderer": "2.0.0-rc.
|
|
65
|
-
"@copilotkit/core": "2.0.0-rc.
|
|
66
|
-
"@copilotkit/markdown": "2.0.0-rc.
|
|
67
|
-
"@copilotkit/mcp-apps-renderer": "2.0.0-rc.
|
|
68
|
-
"@copilotkit/shared": "2.0.0-rc.
|
|
69
|
-
"@copilotkit/web-components": "2.0.0-rc.
|
|
70
|
-
"@copilotkit/web-inspector": "2.0.0-rc.
|
|
64
|
+
"@copilotkit/a2ui-renderer": "2.0.0-rc.32",
|
|
65
|
+
"@copilotkit/core": "2.0.0-rc.32",
|
|
66
|
+
"@copilotkit/markdown": "2.0.0-rc.32",
|
|
67
|
+
"@copilotkit/mcp-apps-renderer": "2.0.0-rc.32",
|
|
68
|
+
"@copilotkit/shared": "2.0.0-rc.32",
|
|
69
|
+
"@copilotkit/web-components": "2.0.0-rc.32",
|
|
70
|
+
"@copilotkit/web-inspector": "2.0.0-rc.32",
|
|
71
71
|
"zod": "^4.2.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
@@ -459,3 +459,65 @@ describe("createA2UIMessageRenderer", () => {
|
|
|
459
459
|
});
|
|
460
460
|
});
|
|
461
461
|
});
|
|
462
|
+
|
|
463
|
+
// Mirrors the React routing regression: nested v0.9 IDs are authoritative.
|
|
464
|
+
describe("A2UIMessageRenderer — resolving which surface an operation addresses", () => {
|
|
465
|
+
it("groups by the nested surface id, not a top-level one", async () => {
|
|
466
|
+
const renderer = createA2UIMessageRenderer({ theme: {} });
|
|
467
|
+
const { container, getByText, queryByRole } = render(renderer.render, {
|
|
468
|
+
props: {
|
|
469
|
+
activityType: "a2ui-surface",
|
|
470
|
+
content: {
|
|
471
|
+
a2ui_operations: [
|
|
472
|
+
{
|
|
473
|
+
version: "v0.9",
|
|
474
|
+
surfaceId: "top-level",
|
|
475
|
+
createSurface: {
|
|
476
|
+
surfaceId: "nested",
|
|
477
|
+
catalogId:
|
|
478
|
+
"https://a2ui.org/specification/v0_9/basic_catalog.json",
|
|
479
|
+
},
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
version: "v0.9",
|
|
483
|
+
surfaceId: "top-level",
|
|
484
|
+
updateDataModel: {
|
|
485
|
+
surfaceId: "nested",
|
|
486
|
+
path: "/",
|
|
487
|
+
value: { message: "Nested wins" },
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
version: "v0.9",
|
|
492
|
+
surfaceId: "top-level",
|
|
493
|
+
updateComponents: {
|
|
494
|
+
surfaceId: "nested",
|
|
495
|
+
components: [
|
|
496
|
+
{
|
|
497
|
+
id: "root",
|
|
498
|
+
component: "Text",
|
|
499
|
+
text: { path: "/message" },
|
|
500
|
+
variant: "body",
|
|
501
|
+
},
|
|
502
|
+
],
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
],
|
|
506
|
+
},
|
|
507
|
+
message: {},
|
|
508
|
+
agent: {},
|
|
509
|
+
},
|
|
510
|
+
global: { provide: copilotKitProvide() },
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
await waitFor(() => {
|
|
514
|
+
expect(
|
|
515
|
+
container.querySelector("[data-surface-id='nested']"),
|
|
516
|
+
).not.toBeNull();
|
|
517
|
+
expect(getByText("Nested wins")).toBeTruthy();
|
|
518
|
+
});
|
|
519
|
+
expect(container.querySelector("[data-surface-id='top-level']")).toBeNull();
|
|
520
|
+
expect(container.textContent).not.toContain("A2UI render error");
|
|
521
|
+
expect(queryByRole("alert")).toBeNull();
|
|
522
|
+
});
|
|
523
|
+
});
|