@copilotkit/vue 1.75.1 → 1.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +272 -157
- package/dist/index.mjs.map +1 -1
- package/dist/use-render-activity-message-BTKmd3f3.cjs +110 -0
- package/dist/use-render-activity-message-BTKmd3f3.cjs.map +1 -0
- package/dist/use-render-activity-message-Eu6R2vGT.js +12801 -0
- package/dist/use-render-activity-message-Eu6R2vGT.js.map +1 -0
- package/dist/v2/components/chat/CopilotChat.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts +8 -152
- package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/copilotChatToolCallItemRender.d.ts.map +1 -1
- package/dist/v2/hooks/use-agent.d.ts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.d.cts +2 -0
- package/dist/v2/index.d.mts +2 -0
- package/dist/v2/index.d.ts +2 -0
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/index.mjs +187 -72
- package/dist/v2/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/v2/__tests__/utils/test-helpers.ts +26 -6
- package/src/v2/components/chat/CopilotChat.vue +100 -20
- package/src/v2/components/chat/CopilotChatMessageView.vue +41 -30
- package/src/v2/components/chat/__tests__/CopilotChat.clearOnFresh.test.ts +130 -2
- package/src/v2/components/chat/__tests__/CopilotChat.e2e.test.ts +6 -1
- package/src/v2/components/chat/__tests__/CopilotChatMessageView.slotMetaCost.test.ts +187 -0
- package/src/v2/components/chat/__tests__/CopilotChatToolRendering.e2e.test.ts +22 -40
- package/src/v2/components/chat/__tests__/CopilotChatToolRerenders.e2e.test.ts +12 -24
- package/src/v2/components/chat/copilotChatToolCallItemRender.ts +3 -2
- package/src/v2/hooks/__tests__/use-agent-headers.test.ts +83 -0
- package/src/v2/hooks/__tests__/use-agent-stability.test.ts +2 -0
- package/src/v2/hooks/__tests__/use-agent.e2e.test.ts +5 -3
- package/src/v2/hooks/__tests__/use-frontend-tool.e2e.test.ts +2 -2
- package/src/v2/hooks/use-agent.ts +3 -3
- package/src/v2/index.ts +5 -0
- package/src/v2/providers/__tests__/CopilotKitProvider.renderCustomMessages.e2e.test.ts +6 -4
- package/dist/use-render-activity-message-BOPauH9X.cjs +0 -85
- package/dist/use-render-activity-message-BOPauH9X.cjs.map +0 -1
- package/dist/use-render-activity-message-xvpuaGyf.js +0 -9807
- package/dist/use-render-activity-message-xvpuaGyf.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@copilotkit/core"),A=require("@ag-ui/client"),e=require("./use-render-activity-message-BOPauH9X.cjs"),i=require("vue"),C=require("@copilotkit/shared");function f(n){return typeof n!="function"?n:(o=>{const a=typeof o.result=="string"?{...o,result:C.parseJson(o.result,o.result)}:o;return n(a)})}function b(n,o){const a="parameters"in n?C.getZodParameters(n.parameters):void 0;if(n.name==="*"){e.useRenderTool({name:"*",render:f(n.render),..."agentId"in n?{agentId:n.agentId}:{}},o);return}const t=n;if("renderAndWaitForResponse"in t||"renderAndWait"in t){const l=t.render??t.renderAndWaitForResponse??t.renderAndWait;if(!l){console.warn(`[CopilotKit] useCopilotAction: HITL action '${t.name}' has no render function. Skipping.`);return}e.useHumanInTheLoop({name:t.name,description:t.description,parameters:a,render:f(l),agentId:t.agentId},o);return}if(t.available==="frontend"||t.available==="disabled"){t.render&&a?e.useRenderTool({name:t.name,parameters:a,render:f(t.render),agentId:t.agentId},o):console.warn(`[CopilotKit] useCopilotAction: action '${t.name}' with available="${t.available}" requires both 'render' and 'parameters'. Skipping registration.`);return}const c=t.handler?l=>Promise.resolve(t.handler(l)):void 0;let s;t.available==="remote"?s=!1:t.available!==void 0&&(s=!0),e.useFrontendTool({name:t.name,description:t.description,parameters:a,handler:c,followUp:t.followUp,render:f(t.render),available:s,agentId:t.agentId,get webmcp(){return t.webmcp}},o)}function _(n,o){const{name:a,description:t,parameters:c,handler:s,followUp:l,available:m,render:u,agentId:d}=n,p=C.getZodParameters(c),g=s?r=>Promise.resolve(s(r)):void 0,v=typeof u=="function"?r=>{const h=typeof r.result=="string"?{...r,result:C.parseJson(r.result,r.result)}:r;return u(h)}:u;e.useFrontendTool({name:a,description:t,parameters:p,handler:g,followUp:l,render:v,available:m===void 0?void 0:m!=="disabled",agentId:d,get webmcp(){return n.webmcp}},o)}function I(n,o){const{copilotkit:a}=e.useCopilotKit(),t=i.ref(void 0),c=o??[];return i.watch([()=>n.description,()=>n.value,()=>n.convert,()=>n.available,...c],(s,l,m)=>{const u=a.value;if(!u)return;const{description:d,value:p,convert:g,available:v}=n;let r;try{r=g?g(d,p):JSON.stringify(p)}catch(h){console.warn(`[CopilotKit] useCopilotReadable: failed to serialize value for "${d}":`,h),r=String(p)}v!=="disabled"&&(t.value=u.addContext({description:d,value:r}),m(()=>{t.value&&u.removeContext(t.value)}))},{immediate:!0}),t}const T=i.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(n){const o=n;return(a,t)=>(i.openBlock(),i.createBlock(e._sfc_main$15,i.normalizeProps(i.guardReactiveProps(o)),{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},16))}});exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;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.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MCPAppsActivityContentSchema=e.MCPAppsActivityContentSchema;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MCPAppsActivityType=e.MCPAppsActivityType;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.UseAgentUpdate=e.UseAgentUpdate;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,"createLicenseContextValue",{enumerable:!0,get:()=>C.createLicenseContextValue});exports.CopilotKit=T;exports.useCopilotAction=b;exports.useCopilotReadable=I;exports.useFrontendTool=_;Object.keys(y).forEach(n=>{n!=="default"&&!Object.prototype.hasOwnProperty.call(exports,n)&&Object.defineProperty(exports,n,{enumerable:!0,get:()=>y[n]})});Object.keys(A).forEach(n=>{n!=="default"&&!Object.prototype.hasOwnProperty.call(exports,n)&&Object.defineProperty(exports,n,{enumerable:!0,get:()=>A[n]})});
|
|
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-BTKmd3f3.cjs"),s=require("vue"),u=require("@copilotkit/shared");function C(a){return typeof a!="function"?a:(n=>{const o=typeof n.result=="string"?{...n,result:u.parseJson(n.result,n.result)}:n;return a(o)})}function R(a,n){const o="parameters"in a?u.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 c;t.available==="remote"?c=!1:t.available!==void 0&&(c=!0),e.useFrontendTool({name:t.name,description:t.description,parameters:o,handler:l,followUp:t.followUp,render:C(t.render),available:c,agentId:t.agentId,get webmcp(){return t.webmcp}},n)}function f(a,n){const{name:o,description:t,parameters:l,handler:c,followUp:r,available:p,render:m,agentId:S}=a,h=u.getZodParameters(l),d=c?i=>Promise.resolve(c(i)):void 0,g=typeof m=="function"?i=>{const v=typeof i.result=="string"?{...i,result:u.parseJson(i.result,i.result)}:i;return m(v)}:m;e.useFrontendTool({name:o,description:t,parameters:h,handler:d,followUp:r,render:g,available:p===void 0?void 0:p!=="disabled",agentId:S,get webmcp(){return a.webmcp}},n)}function y(a,n){const{copilotkit:o}=e.useCopilotKit(),t=s.ref(void 0),l=n??[];return s.watch([()=>a.description,()=>a.value,()=>a.convert,()=>a.available,...l],(c,r,p)=>{const m=o.value;if(!m)return;const{description:S,value:h,convert:d,available:g}=a;let i;try{i=d?d(S,h):JSON.stringify(h)}catch(v){console.warn(`[CopilotKit] useCopilotReadable: failed to serialize value for "${S}":`,v),i=String(h)}g!=="disabled"&&(t.value=m.addContext({description:S,value:i}),p(()=>{t.value&&m.removeContext(t.value)}))},{immediate:!0}),t}const A=s.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)=>(s.openBlock(),s.createBlock(e._sfc_main$15,s.normalizeProps(s.guardReactiveProps(n)),{default:s.withCtx(()=>[s.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.MCPAppsActivityContentSchema=e.MCPAppsActivityContentSchema;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MCPAppsActivityType=e.MCPAppsActivityType;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,"createLicenseContextValue",{enumerable:!0,get:()=>u.createLicenseContextValue});exports.CopilotKit=A;exports.useCopilotAction=R;exports.useCopilotReadable=y;exports.useFrontendTool=f;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,79 +1,80 @@
|
|
|
1
1
|
export * from "@copilotkit/core";
|
|
2
2
|
export * from "@ag-ui/client";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import { PROTOCOL_VERSION as G } from "@ag-ui/client";
|
|
4
|
+
import { bJ as C, bC as f, bB as b, bz as I, I as R } from "./use-render-activity-message-Eu6R2vGT.js";
|
|
5
|
+
import { A as $, _ as W, a as j, b as N, c as q, 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 Pe, K as xe, 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 We, Z as je, $ as Ne, a0 as qe, 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, ap as Ea, aq as ya, a2 as Ta, ar as Ma, as as Pa, at as xa, 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 Wa, aL as ja, aM as Na, aN as qa, 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, b6 as Ct, b7 as bt, b2 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, bh as Pt, bi as xt, a3 as Ot, bj as wt, bk as Ut, bl as Ft, bl 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 Wt, bx as jt, by as Nt, bA as qt, bD as Qt, bE as Zt, bF as Xt, bG as Yt, bH as es, bI as as, bK as ts, bL as ss, bM as ns, bN as os } from "./use-render-activity-message-Eu6R2vGT.js";
|
|
6
|
+
import { ref as A, watch as E, defineComponent as y, openBlock as T, createBlock as M, normalizeProps as P, guardReactiveProps as x, withCtx as O, renderSlot as w } from "vue";
|
|
7
|
+
import { getZodParameters as g, parseJson as v } from "@copilotkit/shared";
|
|
8
|
+
import { createLicenseContextValue as rs } from "@copilotkit/shared";
|
|
9
|
+
function h(a) {
|
|
10
|
+
return typeof a != "function" ? a : ((t) => {
|
|
11
|
+
const s = typeof t.result == "string" ? { ...t, result: v(t.result, t.result) } : t;
|
|
12
|
+
return a(s);
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
|
|
15
|
+
function V(a, t) {
|
|
16
|
+
const s = "parameters" in a ? g(a.parameters) : void 0;
|
|
17
|
+
if (a.name === "*") {
|
|
18
|
+
C(
|
|
18
19
|
{
|
|
19
20
|
name: "*",
|
|
20
|
-
render:
|
|
21
|
-
|
|
21
|
+
render: h(
|
|
22
|
+
a.render
|
|
22
23
|
),
|
|
23
|
-
..."agentId" in
|
|
24
|
+
..."agentId" in a ? { agentId: a.agentId } : {}
|
|
24
25
|
},
|
|
25
|
-
|
|
26
|
+
t
|
|
26
27
|
);
|
|
27
28
|
return;
|
|
28
29
|
}
|
|
29
|
-
const e =
|
|
30
|
+
const e = a;
|
|
30
31
|
if ("renderAndWaitForResponse" in e || "renderAndWait" in e) {
|
|
31
|
-
const
|
|
32
|
-
if (!
|
|
32
|
+
const i = e.render ?? e.renderAndWaitForResponse ?? e.renderAndWait;
|
|
33
|
+
if (!i) {
|
|
33
34
|
console.warn(
|
|
34
35
|
`[CopilotKit] useCopilotAction: HITL action '${e.name}' has no render function. Skipping.`
|
|
35
36
|
);
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
+
f(
|
|
39
40
|
{
|
|
40
41
|
name: e.name,
|
|
41
42
|
description: e.description,
|
|
42
|
-
parameters:
|
|
43
|
-
render:
|
|
43
|
+
parameters: s,
|
|
44
|
+
render: h(i),
|
|
44
45
|
agentId: e.agentId
|
|
45
46
|
},
|
|
46
|
-
|
|
47
|
+
t
|
|
47
48
|
);
|
|
48
49
|
return;
|
|
49
50
|
}
|
|
50
51
|
if (e.available === "frontend" || e.available === "disabled") {
|
|
51
|
-
e.render &&
|
|
52
|
+
e.render && s ? C(
|
|
52
53
|
{
|
|
53
54
|
name: e.name,
|
|
54
|
-
parameters:
|
|
55
|
-
render:
|
|
55
|
+
parameters: s,
|
|
56
|
+
render: h(
|
|
56
57
|
e.render
|
|
57
58
|
),
|
|
58
59
|
agentId: e.agentId
|
|
59
60
|
},
|
|
60
|
-
|
|
61
|
+
t
|
|
61
62
|
) : console.warn(
|
|
62
63
|
`[CopilotKit] useCopilotAction: action '${e.name}' with available="${e.available}" requires both 'render' and 'parameters'. Skipping registration.`
|
|
63
64
|
);
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
|
-
const
|
|
67
|
-
let
|
|
68
|
-
e.available === "remote" ?
|
|
67
|
+
const m = e.handler ? (i) => Promise.resolve(e.handler(i)) : void 0;
|
|
68
|
+
let o;
|
|
69
|
+
e.available === "remote" ? o = !1 : e.available !== void 0 && (o = !0), b(
|
|
69
70
|
{
|
|
70
71
|
name: e.name,
|
|
71
72
|
description: e.description,
|
|
72
|
-
parameters:
|
|
73
|
-
handler:
|
|
73
|
+
parameters: s,
|
|
74
|
+
handler: m,
|
|
74
75
|
followUp: e.followUp,
|
|
75
|
-
render:
|
|
76
|
-
available:
|
|
76
|
+
render: h(e.render),
|
|
77
|
+
available: o,
|
|
77
78
|
agentId: e.agentId,
|
|
78
79
|
// Read webmcp at watch time: the action object may expose it as a getter
|
|
79
80
|
// over reactive state, and capturing the initial value here would
|
|
@@ -82,77 +83,77 @@ function O(t, a) {
|
|
|
82
83
|
return e.webmcp;
|
|
83
84
|
}
|
|
84
85
|
},
|
|
85
|
-
|
|
86
|
+
t
|
|
86
87
|
);
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function K(a, t) {
|
|
89
90
|
const {
|
|
90
|
-
name:
|
|
91
|
+
name: s,
|
|
91
92
|
description: e,
|
|
92
|
-
parameters:
|
|
93
|
-
handler:
|
|
94
|
-
followUp:
|
|
95
|
-
available:
|
|
96
|
-
render:
|
|
97
|
-
agentId:
|
|
98
|
-
} =
|
|
99
|
-
|
|
93
|
+
parameters: m,
|
|
94
|
+
handler: o,
|
|
95
|
+
followUp: i,
|
|
96
|
+
available: u,
|
|
97
|
+
render: r,
|
|
98
|
+
agentId: c
|
|
99
|
+
} = a, l = g(m);
|
|
100
|
+
b(
|
|
100
101
|
{
|
|
101
|
-
name:
|
|
102
|
+
name: s,
|
|
102
103
|
description: e,
|
|
103
|
-
parameters:
|
|
104
|
-
handler:
|
|
105
|
-
followUp:
|
|
106
|
-
render: typeof
|
|
107
|
-
const
|
|
108
|
-
return
|
|
109
|
-
} :
|
|
110
|
-
available:
|
|
111
|
-
agentId:
|
|
104
|
+
parameters: l,
|
|
105
|
+
handler: o ? (n) => Promise.resolve(o(n)) : void 0,
|
|
106
|
+
followUp: i,
|
|
107
|
+
render: typeof r == "function" ? (n) => {
|
|
108
|
+
const S = typeof n.result == "string" ? { ...n, result: v(n.result, n.result) } : n;
|
|
109
|
+
return r(S);
|
|
110
|
+
} : r,
|
|
111
|
+
available: u === void 0 ? void 0 : u !== "disabled",
|
|
112
|
+
agentId: c,
|
|
112
113
|
// Read webmcp at watch time: the v1 args may expose it as a getter over
|
|
113
114
|
// reactive state, and capturing the initial value here would re-register
|
|
114
115
|
// a stale configuration.
|
|
115
116
|
get webmcp() {
|
|
116
|
-
return
|
|
117
|
+
return a.webmcp;
|
|
117
118
|
}
|
|
118
119
|
},
|
|
119
|
-
|
|
120
|
+
t
|
|
120
121
|
);
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
-
const { copilotkit:
|
|
124
|
-
return
|
|
123
|
+
function _(a, t) {
|
|
124
|
+
const { copilotkit: s } = I(), e = A(void 0);
|
|
125
|
+
return E(
|
|
125
126
|
[
|
|
126
|
-
() =>
|
|
127
|
-
() =>
|
|
128
|
-
() =>
|
|
129
|
-
() =>
|
|
130
|
-
...
|
|
127
|
+
() => a.description,
|
|
128
|
+
() => a.value,
|
|
129
|
+
() => a.convert,
|
|
130
|
+
() => a.available,
|
|
131
|
+
...t ?? []
|
|
131
132
|
],
|
|
132
|
-
(
|
|
133
|
-
const
|
|
134
|
-
if (!
|
|
135
|
-
const { description:
|
|
133
|
+
(o, i, u) => {
|
|
134
|
+
const r = s.value;
|
|
135
|
+
if (!r) return;
|
|
136
|
+
const { description: c, value: l, convert: p, available: d } = a;
|
|
136
137
|
let n;
|
|
137
138
|
try {
|
|
138
|
-
n =
|
|
139
|
-
} catch (
|
|
139
|
+
n = p ? p(c, l) : JSON.stringify(l);
|
|
140
|
+
} catch (S) {
|
|
140
141
|
console.warn(
|
|
141
|
-
`[CopilotKit] useCopilotReadable: failed to serialize value for "${
|
|
142
|
-
|
|
143
|
-
), n = String(
|
|
142
|
+
`[CopilotKit] useCopilotReadable: failed to serialize value for "${c}":`,
|
|
143
|
+
S
|
|
144
|
+
), n = String(l);
|
|
144
145
|
}
|
|
145
|
-
|
|
146
|
-
description:
|
|
146
|
+
d !== "disabled" && (e.value = r.addContext({
|
|
147
|
+
description: c,
|
|
147
148
|
value: n
|
|
148
|
-
}),
|
|
149
|
-
e.value &&
|
|
149
|
+
}), u(() => {
|
|
150
|
+
e.value && r.removeContext(e.value);
|
|
150
151
|
}));
|
|
151
152
|
},
|
|
152
153
|
{ immediate: !0 }
|
|
153
154
|
), e;
|
|
154
155
|
}
|
|
155
|
-
const
|
|
156
|
+
const B = /* @__PURE__ */ y({
|
|
156
157
|
__name: "CopilotKit",
|
|
157
158
|
props: {
|
|
158
159
|
publicApiKey: {},
|
|
@@ -179,89 +180,203 @@ const L = /* @__PURE__ */ w({
|
|
|
179
180
|
a2ui: {},
|
|
180
181
|
debug: { type: [Boolean, Object] }
|
|
181
182
|
},
|
|
182
|
-
setup(
|
|
183
|
-
const
|
|
184
|
-
return (
|
|
185
|
-
default:
|
|
186
|
-
|
|
183
|
+
setup(a) {
|
|
184
|
+
const t = a;
|
|
185
|
+
return (s, e) => (T(), M(R, P(x(t)), {
|
|
186
|
+
default: O(() => [
|
|
187
|
+
w(s.$slots, "default")
|
|
187
188
|
]),
|
|
188
189
|
_: 3
|
|
189
190
|
}, 16));
|
|
190
191
|
}
|
|
191
192
|
});
|
|
192
193
|
export {
|
|
193
|
-
|
|
194
|
+
$ as A2UIActivityContentSchema,
|
|
194
195
|
W as A2UISurfaceActivityRenderer,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
oe as
|
|
208
|
-
|
|
209
|
-
re as
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
fe as
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
Ae as
|
|
226
|
-
|
|
227
|
-
ye as
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
xe as
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
He as
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
196
|
+
j as A2UISurfaceActivityType,
|
|
197
|
+
N as ActivityDeltaEventSchema,
|
|
198
|
+
q as ActivityMessageSchema,
|
|
199
|
+
Q as ActivitySnapshotEventSchema,
|
|
200
|
+
Z as AddOperationSchema,
|
|
201
|
+
X as AgentCapabilitiesSchema,
|
|
202
|
+
Y as AssistantMessageSchema,
|
|
203
|
+
ee as AttributableSchema,
|
|
204
|
+
ae as AudioInputContentSchema,
|
|
205
|
+
te as AudioInputPartSchema,
|
|
206
|
+
se as AudioPartSchema,
|
|
207
|
+
ne as BaseEventSchema,
|
|
208
|
+
oe as BaseMessageSchema,
|
|
209
|
+
ie as ContentPartSchema,
|
|
210
|
+
re as ContextSchema,
|
|
211
|
+
ce as CopilotChat,
|
|
212
|
+
le as CopilotChatAssistantMessage,
|
|
213
|
+
me as CopilotChatAttachmentQueue,
|
|
214
|
+
ue as CopilotChatAttachmentRenderer,
|
|
215
|
+
he as CopilotChatAudioRecorder,
|
|
216
|
+
pe as CopilotChatConfigurationProvider,
|
|
217
|
+
Se as CopilotChatDefaultLabels,
|
|
218
|
+
de as CopilotChatInput,
|
|
219
|
+
Ce as CopilotChatMessageView,
|
|
220
|
+
be as CopilotChatReasoningMessage,
|
|
221
|
+
ge as CopilotChatSuggestionPill,
|
|
222
|
+
ve as CopilotChatSuggestionView,
|
|
223
|
+
fe as CopilotChatToggleButton,
|
|
224
|
+
Ie as CopilotChatToggleButtonCloseIcon,
|
|
225
|
+
Re as CopilotChatToggleButtonOpenIcon,
|
|
226
|
+
Ae as CopilotChatToolCallsView,
|
|
227
|
+
Ee as CopilotChatUserMessage,
|
|
228
|
+
ye as CopilotChatView,
|
|
229
|
+
B as CopilotKit,
|
|
230
|
+
Te as CopilotKitCoreVue,
|
|
231
|
+
Me as CopilotKitInspector,
|
|
232
|
+
R as CopilotKitProvider,
|
|
233
|
+
Pe as CopilotModalHeader,
|
|
234
|
+
xe as CopilotPopup,
|
|
235
|
+
Oe as CopilotPopupView,
|
|
236
|
+
we as CopilotSidebar,
|
|
237
|
+
Ue as CopilotSidebarView,
|
|
238
|
+
Fe as CopilotThreadsDrawer,
|
|
239
|
+
De as CopyOperationSchema,
|
|
240
|
+
Ve as CustomEventSchema,
|
|
241
|
+
Ke as DataSourceSchema,
|
|
242
|
+
_e as DeveloperMessageSchema,
|
|
243
|
+
Be as DocumentInputContentSchema,
|
|
244
|
+
ze as DocumentInputPartSchema,
|
|
245
|
+
Le as DocumentPartSchema,
|
|
246
|
+
ke as EventSchema,
|
|
247
|
+
He as EventSchemas,
|
|
248
|
+
Ge as EventTypeSchema,
|
|
249
|
+
Je as ExecutionCapabilitiesSchema,
|
|
250
|
+
$e as FileSourceSchema,
|
|
251
|
+
We as FunctionCallSchema,
|
|
252
|
+
je as GenerateSandboxedUiArgsSchema,
|
|
253
|
+
Ne as HumanInTheLoopCapabilitiesSchema,
|
|
254
|
+
qe as IdentityCapabilitiesSchema,
|
|
255
|
+
Qe as ImageInputContentSchema,
|
|
256
|
+
Ze as ImageInputPartSchema,
|
|
257
|
+
Xe as ImagePartSchema,
|
|
258
|
+
Ye as InputContentDataSourceSchema,
|
|
259
|
+
ea as InputContentSchema,
|
|
260
|
+
aa as InputContentSourceSchema,
|
|
261
|
+
ta as InputContentUrlSourceSchema,
|
|
262
|
+
sa as InterruptSchema,
|
|
263
|
+
na as JsonPatchOperationSchema,
|
|
264
|
+
oa as JsonPatchSchema,
|
|
265
|
+
ia as JsonPointerSchema,
|
|
266
|
+
ra as LicenseContextKey,
|
|
267
|
+
ca as MCPAppsActivityContentSchema,
|
|
268
|
+
la as MCPAppsActivityRenderer,
|
|
269
|
+
ma as MCPAppsActivityType,
|
|
270
|
+
ua as MessageSchema,
|
|
271
|
+
ha as MessagesSnapshotEventSchema,
|
|
272
|
+
pa as MetadataSchema,
|
|
273
|
+
Sa as MoveOperationSchema,
|
|
274
|
+
da as MultiAgentCapabilitiesSchema,
|
|
275
|
+
Ca as MultimodalCapabilitiesSchema,
|
|
276
|
+
ba as MultimodalInputCapabilitiesSchema,
|
|
277
|
+
ga as MultimodalOutputCapabilitiesSchema,
|
|
278
|
+
va as OpenGenerativeUIActivityRenderer,
|
|
279
|
+
fa as OpenGenerativeUIActivityType,
|
|
280
|
+
Ia as OpenGenerativeUIContentSchema,
|
|
281
|
+
Ra as OpenGenerativeUIRenderer,
|
|
282
|
+
Aa as OpenGenerativeUIToolRenderer,
|
|
283
|
+
Ea as OptionalMetadataSchema,
|
|
284
|
+
ya as OutputCapabilitiesSchema,
|
|
285
|
+
G as PROTOCOL_VERSION,
|
|
286
|
+
Ta as PartSourceSchema,
|
|
287
|
+
Ma as RawEventSchema,
|
|
288
|
+
Pa as ReasoningCapabilitiesSchema,
|
|
289
|
+
xa as ReasoningEncryptedValueEventSchema,
|
|
290
|
+
Oa as ReasoningEncryptedValueSubtypeSchema,
|
|
291
|
+
wa as ReasoningEndEventSchema,
|
|
292
|
+
Ua as ReasoningMessageChunkEventSchema,
|
|
293
|
+
Fa as ReasoningMessageContentEventSchema,
|
|
294
|
+
Da as ReasoningMessageEndEventSchema,
|
|
295
|
+
Va as ReasoningMessageSchema,
|
|
296
|
+
Ka as ReasoningMessageStartEventSchema,
|
|
297
|
+
_a as ReasoningStartEventSchema,
|
|
298
|
+
Ba as RemoveOperationSchema,
|
|
299
|
+
za as ReplaceOperationSchema,
|
|
300
|
+
La as ResumeEntrySchema,
|
|
301
|
+
ka as RoleSchema,
|
|
302
|
+
Ha as RunAgentInputSchema,
|
|
303
|
+
Ga as RunErrorEventSchema,
|
|
304
|
+
Ja as RunFinishedCancelledOutcomeSchema,
|
|
305
|
+
$a as RunFinishedEventSchema,
|
|
306
|
+
Wa as RunFinishedInterruptOutcomeSchema,
|
|
307
|
+
ja as RunFinishedOutcomeSchema,
|
|
308
|
+
Na as RunFinishedSuccessOutcomeSchema,
|
|
309
|
+
qa as RunStartedEventSchema,
|
|
310
|
+
Qa as StateCapabilitiesSchema,
|
|
311
|
+
Za as StateDeltaEventSchema,
|
|
312
|
+
Xa as StateSchema,
|
|
313
|
+
Ya as StateSnapshotEventSchema,
|
|
314
|
+
et as StepFinishedEventSchema,
|
|
315
|
+
at as StepStartedEventSchema,
|
|
316
|
+
tt as SubagentErrorEventSchema,
|
|
317
|
+
st as SubagentFinishedEventSchema,
|
|
318
|
+
nt as SubagentFinishedOutcomeSchema,
|
|
319
|
+
ot as SubagentFinishedSuccessOutcomeSchema,
|
|
320
|
+
it as SubagentFinishedSuspendedOutcomeSchema,
|
|
321
|
+
rt as SubagentInfoSchema,
|
|
322
|
+
ct as SubagentRunIdSchema,
|
|
323
|
+
lt as SubagentStartedEventSchema,
|
|
324
|
+
mt as SystemMessageSchema,
|
|
325
|
+
ut as TestOperationSchema,
|
|
326
|
+
ht as TextInputContentSchema,
|
|
327
|
+
pt as TextMessageChunkEventSchema,
|
|
328
|
+
St as TextMessageContentEventSchema,
|
|
329
|
+
dt as TextMessageEndEventSchema,
|
|
330
|
+
Ct as TextMessageRoleSchema,
|
|
331
|
+
bt as TextMessageStartEventSchema,
|
|
332
|
+
gt as TextPartSchema,
|
|
333
|
+
vt as TokenUsageSchema,
|
|
334
|
+
ft as ToolCallArgsEventSchema,
|
|
335
|
+
It as ToolCallChunkEventSchema,
|
|
336
|
+
Rt as ToolCallEndEventSchema,
|
|
337
|
+
At as ToolCallResultEventSchema,
|
|
338
|
+
Et as ToolCallSchema,
|
|
339
|
+
yt as ToolCallStartEventSchema,
|
|
340
|
+
Tt as ToolMessageSchema,
|
|
341
|
+
Mt as ToolSchema,
|
|
342
|
+
Pt as ToolsCapabilitiesSchema,
|
|
343
|
+
xt as TransportCapabilitiesSchema,
|
|
344
|
+
Ot as UrlSourceSchema,
|
|
345
|
+
wt as UseAgentUpdate,
|
|
346
|
+
Ut as UserMessageSchema,
|
|
347
|
+
Ft as VideoInputContentSchema,
|
|
348
|
+
Dt as VideoInputPartSchema,
|
|
349
|
+
Vt as VideoPartSchema,
|
|
350
|
+
Kt as createA2UIMessageRenderer,
|
|
351
|
+
_t as createDefaultLicenseRef,
|
|
352
|
+
rs as createLicenseContextValue,
|
|
353
|
+
Bt as defineToolCallRenderer,
|
|
354
|
+
zt as extractCompleteStyles,
|
|
355
|
+
Lt as getOperationSurfaceId,
|
|
356
|
+
kt as processPartialHtml,
|
|
357
|
+
Ht as useAgent,
|
|
358
|
+
Gt as useAgentContext,
|
|
359
|
+
Jt as useAttachments,
|
|
360
|
+
$t as useCapabilities,
|
|
361
|
+
Wt as useComponent,
|
|
362
|
+
jt as useConfigureSuggestions,
|
|
363
|
+
V as useCopilotAction,
|
|
364
|
+
Nt as useCopilotChatConfiguration,
|
|
365
|
+
I as useCopilotKit,
|
|
366
|
+
_ as useCopilotReadable,
|
|
367
|
+
qt as useDefaultRenderTool,
|
|
368
|
+
K as useFrontendTool,
|
|
369
|
+
f as useHumanInTheLoop,
|
|
370
|
+
Qt as useInterrupt,
|
|
371
|
+
Zt as useKatexStyles,
|
|
372
|
+
Xt as useKeyboardHeight,
|
|
373
|
+
Yt as useLicenseContext,
|
|
374
|
+
es as useRenderActivityMessage,
|
|
375
|
+
as as useRenderCustomMessages,
|
|
376
|
+
C as useRenderTool,
|
|
377
|
+
ts as useSandboxFunctions,
|
|
378
|
+
ss as useSuggestions,
|
|
379
|
+
ns as useThreads,
|
|
380
|
+
os as vueBasicCatalog
|
|
266
381
|
};
|
|
267
382
|
//# sourceMappingURL=index.mjs.map
|