@copilotkit/vue 1.78.0 → 1.79.1-canary.1792034358

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 (28) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.mjs +2 -2
  3. package/dist/use-render-activity-message-ClNDOux7.cjs +70 -0
  4. package/dist/use-render-activity-message-ClNDOux7.cjs.map +1 -0
  5. package/dist/{use-render-activity-message-B9MOLfR_.js → use-render-activity-message-D2MaLmz3.js} +2359 -2373
  6. package/dist/use-render-activity-message-D2MaLmz3.js.map +1 -0
  7. package/dist/v2/hooks/use-agent.d.ts.map +1 -1
  8. package/dist/v2/hooks/use-threads.d.ts.map +1 -1
  9. package/dist/v2/index.cjs +1 -1
  10. package/dist/v2/index.mjs +1 -1
  11. package/dist/v2/providers/CopilotKitProvider.types.d.ts +7 -2
  12. package/dist/v2/providers/CopilotKitProvider.types.d.ts.map +1 -1
  13. package/dist/v2/providers/CopilotKitProvider.vue.d.ts +2 -1
  14. package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
  15. package/package.json +7 -7
  16. package/src/v2/hooks/__tests__/use-agent-stability.test.ts +11 -0
  17. package/src/v2/hooks/__tests__/use-threads.test.ts +27 -6
  18. package/src/v2/hooks/use-agent.ts +28 -22
  19. package/src/v2/hooks/use-threads.ts +9 -8
  20. package/src/v2/lib/__tests__/transcription-client.test.ts +2 -0
  21. package/src/v2/lib/transcription-client.ts +1 -1
  22. package/src/v2/providers/CopilotKitProvider.types.ts +7 -1
  23. package/src/v2/providers/CopilotKitProvider.vue +62 -12
  24. package/src/v2/providers/__tests__/CopilotKitProvider.headersAtSendTime.test.ts +598 -0
  25. package/src/v2/providers/__tests__/CopilotKitProvider.test.ts +8 -3
  26. package/dist/use-render-activity-message-B9MOLfR_.js.map +0 -1
  27. package/dist/use-render-activity-message-eN0gdzOa.cjs +0 -70
  28. package/dist/use-render-activity-message-eN0gdzOa.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@copilotkit/core"),b=require("@ag-ui/client"),e=require("./use-render-activity-message-eN0gdzOa.cjs"),c=require("vue"),f=require("@copilotkit/mcp-apps-renderer/activity"),h=require("@copilotkit/shared");function C(a){return typeof a!="function"?a:(n=>{const o=typeof n.result=="string"?{...n,result:h.parseJson(n.result,n.result)}:n;return a(o)})}function R(a,n){const o="parameters"in a?h.getZodParameters(a.parameters):void 0;if(a.name==="*"){e.useRenderTool({name:"*",render:C(a.render),..."agentId"in a?{agentId:a.agentId}:{}},n);return}const t=a;if("renderAndWaitForResponse"in t||"renderAndWait"in t){const r=t.render??t.renderAndWaitForResponse??t.renderAndWait;if(!r){console.warn(`[CopilotKit] useCopilotAction: HITL action '${t.name}' has no render function. Skipping.`);return}e.useHumanInTheLoop({name:t.name,description:t.description,parameters:o,render:C(r),agentId:t.agentId},n);return}if(t.available==="frontend"||t.available==="disabled"){t.render&&o?e.useRenderTool({name:t.name,parameters:o,render:C(t.render),agentId:t.agentId},n):console.warn(`[CopilotKit] useCopilotAction: action '${t.name}' with available="${t.available}" requires both 'render' and 'parameters'. Skipping registration.`);return}const l=t.handler?r=>Promise.resolve(t.handler(r)):void 0;let s;t.available==="remote"?s=!1:t.available!==void 0&&(s=!0),e.useFrontendTool({name:t.name,description:t.description,parameters:o,handler:l,followUp:t.followUp,render:C(t.render),available:s,agentId:t.agentId,get webmcp(){return t.webmcp}},n)}function y(a,n){const{name:o,description:t,parameters:l,handler:s,followUp:r,available:p,render:m,agentId:u}=a,S=h.getZodParameters(l),d=s?i=>Promise.resolve(s(i)):void 0,g=typeof m=="function"?i=>{const v=typeof i.result=="string"?{...i,result:h.parseJson(i.result,i.result)}:i;return m(v)}:m;e.useFrontendTool({name:o,description:t,parameters:S,handler:d,followUp:r,render:g,available:p===void 0?void 0:p!=="disabled",agentId:u,get webmcp(){return a.webmcp}},n)}function A(a,n){const{copilotkit:o}=e.useCopilotKit(),t=c.ref(void 0),l=n??[];return c.watch([()=>a.description,()=>a.value,()=>a.convert,()=>a.available,...l],(s,r,p)=>{const m=o.value;if(!m)return;const{description:u,value:S,convert:d,available:g}=a;let i;try{i=d?d(u,S):JSON.stringify(S)}catch(v){console.warn(`[CopilotKit] useCopilotReadable: failed to serialize value for "${u}":`,v),i=String(S)}g!=="disabled"&&(t.value=m.addContext({description:u,value:i}),p(()=>{t.value&&m.removeContext(t.value)}))},{immediate:!0}),t}const T=c.defineComponent({__name:"CopilotKit",props:{publicApiKey:{},publicLicenseKey:{},runtimeUrl:{},headers:{type:[Object,Function]},credentials:{},messageFilter:{type:Function},defaultThrottleMs:{},licenseToken:{},properties:{},useSingleEndpoint:{type:Boolean},agents__unsafe_dev_only:{},selfManagedAgents:{},renderToolCalls:{},renderActivityMessages:{},renderCustomMessages:{},frontendTools:{},humanInTheLoop:{},openGenerativeUI:{},showDevConsole:{type:[Boolean,String]},enableInspector:{type:Boolean},onError:{type:Function},a2ui:{},debug:{type:[Boolean,Object]}},setup(a){const n=a;return(o,t)=>(c.openBlock(),c.createBlock(e._sfc_main$15,c.normalizeProps(c.guardReactiveProps(n)),{default:c.withCtx(()=>[c.renderSlot(o.$slots,"default")]),_:3},16))}});Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>b.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.CopilotChatDefaultLabels=e.CopilotChatDefaultLabels;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.CopilotChatToolCallsView=e._sfc_main$11;exports.CopilotChatUserMessage=e._sfc_main$12;exports.CopilotChatView=e._sfc_main$13;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$14;exports.CopilotKitProvider=e._sfc_main$15;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$16;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$17;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$18;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.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.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.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.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKatexStyles=e.useKatexStyles;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;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:()=>f.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>f.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>f.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>h.createLicenseContextValue});exports.CopilotKit=T;exports.useCopilotAction=R;exports.useCopilotReadable=A;exports.useFrontendTool=y;Object.keys(E).forEach(a=>{a!=="default"&&!Object.prototype.hasOwnProperty.call(exports,a)&&Object.defineProperty(exports,a,{enumerable:!0,get:()=>E[a]})});Object.keys(b).forEach(a=>{a!=="default"&&!Object.prototype.hasOwnProperty.call(exports,a)&&Object.defineProperty(exports,a,{enumerable:!0,get:()=>b[a]})});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@copilotkit/core"),b=require("@ag-ui/client"),e=require("./use-render-activity-message-ClNDOux7.cjs"),c=require("vue"),f=require("@copilotkit/mcp-apps-renderer/activity"),h=require("@copilotkit/shared");function C(a){return typeof a!="function"?a:(n=>{const o=typeof n.result=="string"?{...n,result:h.parseJson(n.result,n.result)}:n;return a(o)})}function R(a,n){const o="parameters"in a?h.getZodParameters(a.parameters):void 0;if(a.name==="*"){e.useRenderTool({name:"*",render:C(a.render),..."agentId"in a?{agentId:a.agentId}:{}},n);return}const t=a;if("renderAndWaitForResponse"in t||"renderAndWait"in t){const r=t.render??t.renderAndWaitForResponse??t.renderAndWait;if(!r){console.warn(`[CopilotKit] useCopilotAction: HITL action '${t.name}' has no render function. Skipping.`);return}e.useHumanInTheLoop({name:t.name,description:t.description,parameters:o,render:C(r),agentId:t.agentId},n);return}if(t.available==="frontend"||t.available==="disabled"){t.render&&o?e.useRenderTool({name:t.name,parameters:o,render:C(t.render),agentId:t.agentId},n):console.warn(`[CopilotKit] useCopilotAction: action '${t.name}' with available="${t.available}" requires both 'render' and 'parameters'. Skipping registration.`);return}const l=t.handler?r=>Promise.resolve(t.handler(r)):void 0;let s;t.available==="remote"?s=!1:t.available!==void 0&&(s=!0),e.useFrontendTool({name:t.name,description:t.description,parameters:o,handler:l,followUp:t.followUp,render:C(t.render),available:s,agentId:t.agentId,get webmcp(){return t.webmcp}},n)}function y(a,n){const{name:o,description:t,parameters:l,handler:s,followUp:r,available:p,render:m,agentId:u}=a,S=h.getZodParameters(l),d=s?i=>Promise.resolve(s(i)):void 0,g=typeof m=="function"?i=>{const v=typeof i.result=="string"?{...i,result:h.parseJson(i.result,i.result)}:i;return m(v)}:m;e.useFrontendTool({name:o,description:t,parameters:S,handler:d,followUp:r,render:g,available:p===void 0?void 0:p!=="disabled",agentId:u,get webmcp(){return a.webmcp}},n)}function A(a,n){const{copilotkit:o}=e.useCopilotKit(),t=c.ref(void 0),l=n??[];return c.watch([()=>a.description,()=>a.value,()=>a.convert,()=>a.available,...l],(s,r,p)=>{const m=o.value;if(!m)return;const{description:u,value:S,convert:d,available:g}=a;let i;try{i=d?d(u,S):JSON.stringify(S)}catch(v){console.warn(`[CopilotKit] useCopilotReadable: failed to serialize value for "${u}":`,v),i=String(S)}g!=="disabled"&&(t.value=m.addContext({description:u,value:i}),p(()=>{t.value&&m.removeContext(t.value)}))},{immediate:!0}),t}const T=c.defineComponent({__name:"CopilotKit",props:{publicApiKey:{},publicLicenseKey:{},runtimeUrl:{},headers:{type:[Object,Function]},credentials:{},messageFilter:{type:Function},defaultThrottleMs:{},licenseToken:{},properties:{},useSingleEndpoint:{type:Boolean},agents__unsafe_dev_only:{},selfManagedAgents:{},renderToolCalls:{},renderActivityMessages:{},renderCustomMessages:{},frontendTools:{},humanInTheLoop:{},openGenerativeUI:{},showDevConsole:{type:[Boolean,String]},enableInspector:{type:Boolean},onError:{type:Function},a2ui:{},debug:{type:[Boolean,Object]}},setup(a){const n=a;return(o,t)=>(c.openBlock(),c.createBlock(e._sfc_main$15,c.normalizeProps(c.guardReactiveProps(n)),{default:c.withCtx(()=>[c.renderSlot(o.$slots,"default")]),_:3},16))}});Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>b.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.CopilotChatDefaultLabels=e.CopilotChatDefaultLabels;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.CopilotChatToolCallsView=e._sfc_main$11;exports.CopilotChatUserMessage=e._sfc_main$12;exports.CopilotChatView=e._sfc_main$13;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$14;exports.CopilotKitProvider=e._sfc_main$15;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$16;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$17;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$18;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.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.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.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.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKatexStyles=e.useKatexStyles;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;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:()=>f.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>f.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>f.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>h.createLicenseContextValue});exports.CopilotKit=T;exports.useCopilotAction=R;exports.useCopilotReadable=A;exports.useFrontendTool=y;Object.keys(E).forEach(a=>{a!=="default"&&!Object.prototype.hasOwnProperty.call(exports,a)&&Object.defineProperty(exports,a,{enumerable:!0,get:()=>E[a]})});Object.keys(b).forEach(a=>{a!=="default"&&!Object.prototype.hasOwnProperty.call(exports,a)&&Object.defineProperty(exports,a,{enumerable:!0,get:()=>b[a]})});
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  export * from "@copilotkit/core";
2
2
  export * from "@ag-ui/client";
3
3
  import { PROTOCOL_VERSION as G } from "@ag-ui/client";
4
- import { bH as C, bA as f, bz as b, bx as I, I as R } from "./use-render-activity-message-B9MOLfR_.js";
5
- import { A as $, _ as j, a as W, b as q, c as N, d as Q, e as Z, f as X, g as Y, h as ee, i as ae, i as te, i as se, B as ne, j as oe, C as ie, k as re, l as ce, m as le, n as me, o as ue, p as he, q as pe, r as Se, s as de, t as Ce, u as be, v as ge, w as ve, x as fe, y as Ie, z as Re, D as Ae, E as Ee, F as ye, G as Te, H as Me, J as xe, K as Pe, L as Oe, M as we, N as Ue, O as Fe, P as De, Q as Ve, R as Ke, S as _e, T as Be, T as ze, T as Le, U as ke, U as He, V as Ge, W as Je, X as $e, Y as je, Z as We, $ as qe, a0 as Ne, a1 as Qe, a1 as Ze, a1 as Xe, R as Ye, C as ea, a2 as aa, a3 as ta, a4 as sa, a5 as na, a6 as oa, a7 as ia, a8 as ra, a9 as ca, aa as la, ab as ma, ac as ua, ad as ha, ae as pa, af as Sa, ag as da, ah as Ca, ai as ba, aj as ga, ak as va, al as fa, am as Ia, an as Ra, ao as Aa, a2 as Ea, ap as ya, aq as Ta, ar as Ma, as as xa, at as Pa, au as Oa, av as wa, aw as Ua, ax as Fa, ay as Da, az as Va, aA as Ka, aB as _a, aC as Ba, aD as za, aE as La, aF as ka, aG as Ha, aH as Ga, aI as Ja, aJ as $a, aK as ja, aL as Wa, aM as qa, aN as Na, aO as Qa, aP as Za, aQ as Xa, aR as Ya, aS as et, aT as at, aU as tt, aV as st, aW as nt, aX as ot, aY as it, aZ as rt, a_ as ct, a$ as lt, b0 as mt, b1 as ut, b2 as ht, b3 as pt, b4 as St, b5 as dt, b0 as Ct, b6 as bt, b7 as gt, b8 as vt, b9 as ft, ba as It, bb as Rt, bc as At, bd as Et, be as yt, bf as Tt, bg as Mt, a3 as xt, bh as Pt, bi as Ot, bj as wt, bj as Ut, bj as Ft, bk as Dt, bl as Vt, bm as Kt, bn as _t, bo as Bt, bp as zt, bq as Lt, br as kt, bs as Ht, bt as Gt, bu as Jt, bv as $t, bw as jt, by as Wt, bB as qt, bC as Nt, bD as Qt, bE as Zt, bF as Xt, bG as Yt, bI as es, bJ as as, bK as ts, bL as ss } from "./use-render-activity-message-B9MOLfR_.js";
4
+ import { bH as C, bA as f, bz as b, bx as I, I as R } from "./use-render-activity-message-D2MaLmz3.js";
5
+ import { A as $, _ as j, a as W, b as q, c as N, d as Q, e as Z, f as X, g as Y, h as ee, i as ae, i as te, i as se, B as ne, j as oe, C as ie, k as re, l as ce, m as le, n as me, o as ue, p as he, q as pe, r as Se, s as de, t as Ce, u as be, v as ge, w as ve, x as fe, y as Ie, z as Re, D as Ae, E as Ee, F as ye, G as Te, H as Me, J as xe, K as Pe, L as Oe, M as we, N as Ue, O as Fe, P as De, Q as Ve, R as Ke, S as _e, T as Be, T as ze, T as Le, U as ke, U as He, V as Ge, W as Je, X as $e, Y as je, Z as We, $ as qe, a0 as Ne, a1 as Qe, a1 as Ze, a1 as Xe, R as Ye, C as ea, a2 as aa, a3 as ta, a4 as sa, a5 as na, a6 as oa, a7 as ia, a8 as ra, a9 as ca, aa as la, ab as ma, ac as ua, ad as ha, ae as pa, af as Sa, ag as da, ah as Ca, ai as ba, aj as ga, ak as va, al as fa, am as Ia, an as Ra, ao as Aa, a2 as Ea, ap as ya, aq as Ta, ar as Ma, as as xa, at as Pa, au as Oa, av as wa, aw as Ua, ax as Fa, ay as Da, az as Va, aA as Ka, aB as _a, aC as Ba, aD as za, aE as La, aF as ka, aG as Ha, aH as Ga, aI as Ja, aJ as $a, aK as ja, aL as Wa, aM as qa, aN as Na, aO as Qa, aP as Za, aQ as Xa, aR as Ya, aS as et, aT as at, aU as tt, aV as st, aW as nt, aX as ot, aY as it, aZ as rt, a_ as ct, a$ as lt, b0 as mt, b1 as ut, b2 as ht, b3 as pt, b4 as St, b5 as dt, b0 as Ct, b6 as bt, b7 as gt, b8 as vt, b9 as ft, ba as It, bb as Rt, bc as At, bd as Et, be as yt, bf as Tt, bg as Mt, a3 as xt, bh as Pt, bi as Ot, bj as wt, bj as Ut, bj as Ft, bk as Dt, bl as Vt, bm as Kt, bn as _t, bo as Bt, bp as zt, bq as Lt, br as kt, bs as Ht, bt as Gt, bu as Jt, bv as $t, bw as jt, by as Wt, bB as qt, bC as Nt, bD as Qt, bE as Zt, bF as Xt, bG as Yt, bI as es, bJ as as, bK as ts, bL as ss } from "./use-render-activity-message-D2MaLmz3.js";
6
6
  import { ref as A, watch as E, defineComponent as y, openBlock as T, createBlock as M, normalizeProps as x, guardReactiveProps as P, withCtx as O, renderSlot as w } from "vue";
7
7
  import { MCPAppsActivityContentSchema as os, MCPAppsActivityType as is, ɵrunMcpFollowUp as rs } from "@copilotkit/mcp-apps-renderer/activity";
8
8
  import { getZodParameters as g, parseJson as v } from "@copilotkit/shared";