@copilotkit/react-core 1.8.3-next.0 → 1.8.4-next.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-7L3NZ62H.mjs → chunk-37LXOL6B.mjs} +4 -4
  3. package/dist/{chunk-N6DD52PU.mjs → chunk-BRZTDXGW.mjs} +2 -2
  4. package/dist/{chunk-GUS3MPZW.mjs → chunk-GL55IVMW.mjs} +2 -2
  5. package/dist/{chunk-LK4ZSRYW.mjs → chunk-OZZDRR6H.mjs} +5 -5
  6. package/dist/chunk-OZZDRR6H.mjs.map +1 -0
  7. package/dist/{chunk-KWGU7UDS.mjs → chunk-RQCCRHBB.mjs} +10 -10
  8. package/dist/{chunk-ZGI7LD6W.mjs → chunk-SILLU37K.mjs} +5 -5
  9. package/dist/components/copilot-provider/copilot-messages.mjs +2 -2
  10. package/dist/components/copilot-provider/copilotkit.mjs +6 -6
  11. package/dist/components/copilot-provider/index.mjs +6 -6
  12. package/dist/components/index.mjs +6 -6
  13. package/dist/context/index.mjs +4 -4
  14. package/dist/hooks/index.js.map +1 -1
  15. package/dist/hooks/index.mjs +25 -25
  16. package/dist/hooks/use-coagent.js.map +1 -1
  17. package/dist/hooks/use-coagent.mjs +9 -9
  18. package/dist/hooks/use-copilot-chat.js.map +1 -1
  19. package/dist/hooks/use-copilot-chat.mjs +8 -8
  20. package/dist/hooks/use-langgraph-interrupt-render.mjs +1 -1
  21. package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
  22. package/dist/hooks/use-langgraph-interrupt.mjs +9 -9
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +29 -29
  25. package/dist/lib/copilot-task.mjs +7 -7
  26. package/dist/lib/index.mjs +7 -7
  27. package/dist/utils/extract.mjs +6 -6
  28. package/dist/utils/index.mjs +6 -6
  29. package/package.json +3 -3
  30. package/src/hooks/use-copilot-chat.ts +1 -1
  31. package/dist/chunk-LK4ZSRYW.mjs.map +0 -1
  32. /package/dist/{chunk-7L3NZ62H.mjs.map → chunk-37LXOL6B.mjs.map} +0 -0
  33. /package/dist/{chunk-N6DD52PU.mjs.map → chunk-BRZTDXGW.mjs.map} +0 -0
  34. /package/dist/{chunk-GUS3MPZW.mjs.map → chunk-GL55IVMW.mjs.map} +0 -0
  35. /package/dist/{chunk-KWGU7UDS.mjs.map → chunk-RQCCRHBB.mjs.map} +0 -0
  36. /package/dist/{chunk-ZGI7LD6W.mjs.map → chunk-SILLU37K.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # ui
2
2
 
3
+ ## 1.8.4-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @copilotkit/runtime-client-gql@1.8.4-next.0
8
+ - @copilotkit/shared@1.8.4-next.0
9
+
10
+ ## 1.8.3
11
+
12
+ ### Patch Changes
13
+
14
+ - @copilotkit/runtime-client-gql@1.8.3
15
+ - @copilotkit/shared@1.8.3
16
+
3
17
  ## 1.8.3-next.0
4
18
 
5
19
  ### Patch Changes
@@ -1,9 +1,9 @@
1
- import {
2
- CopilotMessagesContext
3
- } from "./chunk-DCTJZ742.mjs";
4
1
  import {
5
2
  useCopilotContext
6
3
  } from "./chunk-PTSWFERP.mjs";
4
+ import {
5
+ CopilotMessagesContext
6
+ } from "./chunk-DCTJZ742.mjs";
7
7
  import {
8
8
  __async
9
9
  } from "./chunk-SKC7AJIV.mjs";
@@ -60,4 +60,4 @@ function CopilotMessages({ children }) {
60
60
  export {
61
61
  CopilotMessages
62
62
  };
63
- //# sourceMappingURL=chunk-7L3NZ62H.mjs.map
63
+ //# sourceMappingURL=chunk-37LXOL6B.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defaultCopilotContextCategories
3
- } from "./chunk-KWGU7UDS.mjs";
3
+ } from "./chunk-RQCCRHBB.mjs";
4
4
  import {
5
5
  processActionsForRuntimeRequest
6
6
  } from "./chunk-4CEQJ2X6.mjs";
@@ -117,4 +117,4 @@ ${instructions}
117
117
  export {
118
118
  CopilotTask
119
119
  };
120
- //# sourceMappingURL=chunk-N6DD52PU.mjs.map
120
+ //# sourceMappingURL=chunk-BRZTDXGW.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useCopilotChat
3
- } from "./chunk-LK4ZSRYW.mjs";
3
+ } from "./chunk-OZZDRR6H.mjs";
4
4
  import {
5
5
  CopilotContext
6
6
  } from "./chunk-PTSWFERP.mjs";
@@ -62,4 +62,4 @@ function useLangGraphInterrupt(action, dependencies) {
62
62
  export {
63
63
  useLangGraphInterrupt
64
64
  };
65
- //# sourceMappingURL=chunk-GUS3MPZW.mjs.map
65
+ //# sourceMappingURL=chunk-GL55IVMW.mjs.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  defaultCopilotContextCategories
3
- } from "./chunk-KWGU7UDS.mjs";
3
+ } from "./chunk-RQCCRHBB.mjs";
4
+ import {
5
+ useCopilotContext
6
+ } from "./chunk-PTSWFERP.mjs";
4
7
  import {
5
8
  useCopilotMessagesContext
6
9
  } from "./chunk-DCTJZ742.mjs";
7
10
  import {
8
11
  useChat
9
12
  } from "./chunk-FUO5LKSJ.mjs";
10
- import {
11
- useCopilotContext
12
- } from "./chunk-PTSWFERP.mjs";
13
13
  import {
14
14
  useAsyncCallback
15
15
  } from "./chunk-22ENANUU.mjs";
@@ -222,4 +222,4 @@ export {
222
222
  useCopilotChat,
223
223
  defaultSystemMessage
224
224
  };
225
- //# sourceMappingURL=chunk-LK4ZSRYW.mjs.map
225
+ //# sourceMappingURL=chunk-OZZDRR6H.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/hooks/use-copilot-chat.ts"],"sourcesContent":["/**\n * `useCopilotChat` is a React hook that lets you directly interact with the\n * Copilot instance. Use to implement a fully custom UI (headless UI) or to\n * programmatically interact with the Copilot instance managed by the default\n * UI.\n *\n * ## Usage\n *\n * ### Simple Usage\n *\n * ```tsx\n * import { useCopilotChat } from \"@copilotkit/react-core\";\n * import { Role, TextMessage } from \"@copilotkit/runtime-client-gql\";\n *\n * export function YourComponent() {\n * const { appendMessage } = useCopilotChat();\n *\n * appendMessage(\n * new TextMessage({\n * content: \"Hello World\",\n * role: Role.User,\n * }),\n * );\n *\n * // optionally, you can append a message without running chat completion\n * appendMessage(yourMessage, { followUp: false });\n * }\n * ```\n *\n * `useCopilotChat` returns an object with the following properties:\n *\n * ```tsx\n * const {\n * visibleMessages, // An array of messages that are currently visible in the chat.\n * appendMessage, // A function to append a message to the chat.\n * setMessages, // A function to set the messages in the chat.\n * deleteMessage, // A function to delete a message from the chat.\n * reloadMessages, // A function to reload the messages from the API.\n * stopGeneration, // A function to stop the generation of the next message.\n * reset, // A function to reset the chat.\n * isLoading, // A boolean indicating if the chat is loading.\n * } = useCopilotChat();\n * ```\n */\nimport { useRef, useEffect, useCallback } from \"react\";\nimport { AgentSession, useCopilotContext } from \"../context/copilot-context\";\nimport { Message, Role, TextMessage } from \"@copilotkit/runtime-client-gql\";\nimport { SystemMessageFunction } from \"../types\";\nimport { useChat, AppendMessageOptions } from \"./use-chat\";\nimport { defaultCopilotContextCategories } from \"../components\";\nimport { CoAgentStateRenderHandlerArguments } from \"@copilotkit/shared\";\nimport { useCopilotMessagesContext } from \"../context\";\nimport { useAsyncCallback } from \"../components/error-boundary/error-utils\";\n\nexport interface UseCopilotChatOptions {\n /**\n * A unique identifier for the chat. If not provided, a random one will be\n * generated. When provided, the `useChat` hook with the same `id` will\n * have shared states across components.\n */\n id?: string;\n\n /**\n * HTTP headers to be sent with the API request.\n */\n headers?: Record<string, string> | Headers;\n /**\n * System messages of the chat. Defaults to an empty array.\n */\n initialMessages?: Message[];\n\n /**\n * A function to generate the system message. Defaults to `defaultSystemMessage`.\n */\n makeSystemMessage?: SystemMessageFunction;\n}\n\nexport interface UseCopilotChatReturn {\n visibleMessages: Message[];\n appendMessage: (message: Message, options?: AppendMessageOptions) => Promise<void>;\n setMessages: (messages: Message[]) => void;\n deleteMessage: (messageId: string) => void;\n reloadMessages: () => Promise<void>;\n stopGeneration: () => void;\n reset: () => void;\n isLoading: boolean;\n runChatCompletion: () => Promise<Message[]>;\n}\n\nexport function useCopilotChat({\n makeSystemMessage,\n ...options\n}: UseCopilotChatOptions = {}): UseCopilotChatReturn {\n const {\n getContextString,\n getFunctionCallHandler,\n copilotApiConfig,\n isLoading,\n setIsLoading,\n chatInstructions,\n actions,\n coagentStatesRef,\n setCoagentStatesWithRef,\n coAgentStateRenders,\n agentSession,\n setAgentSession,\n forwardedParameters,\n agentLock,\n threadId,\n setThreadId,\n runId,\n setRunId,\n chatAbortControllerRef,\n extensions,\n setExtensions,\n langGraphInterruptAction,\n setLangGraphInterruptAction,\n } = useCopilotContext();\n const { messages, setMessages } = useCopilotMessagesContext();\n\n // We need to ensure that makeSystemMessageCallback always uses the latest\n // useCopilotReadable data.\n const latestGetContextString = useUpdatedRef(getContextString);\n const deleteMessage = useCallback(\n (messageId: string) => {\n setMessages((prev) => prev.filter((message) => message.id !== messageId));\n },\n [setMessages],\n );\n\n const makeSystemMessageCallback = useCallback(() => {\n const systemMessageMaker = makeSystemMessage || defaultSystemMessage;\n // this always gets the latest context string\n const contextString = latestGetContextString.current([], defaultCopilotContextCategories); // TODO: make the context categories configurable\n\n return new TextMessage({\n content: systemMessageMaker(contextString, chatInstructions),\n role: Role.System,\n });\n }, [getContextString, makeSystemMessage, chatInstructions]);\n\n const onCoAgentStateRender = useAsyncCallback(\n async (args: CoAgentStateRenderHandlerArguments) => {\n const { name, nodeName, state } = args;\n let action = Object.values(coAgentStateRenders).find(\n (action) => action.name === name && action.nodeName === nodeName,\n );\n if (!action) {\n action = Object.values(coAgentStateRenders).find(\n (action) => action.name === name && !action.nodeName,\n );\n }\n if (action) {\n await action.handler?.({ state, nodeName });\n }\n },\n [coAgentStateRenders],\n );\n\n const { append, reload, stop, runChatCompletion } = useChat({\n ...options,\n actions: Object.values(actions),\n copilotConfig: copilotApiConfig,\n initialMessages: options.initialMessages || [],\n onFunctionCall: getFunctionCallHandler(),\n onCoAgentStateRender,\n messages,\n setMessages,\n makeSystemMessageCallback,\n isLoading,\n setIsLoading,\n coagentStatesRef,\n setCoagentStatesWithRef,\n agentSession,\n setAgentSession,\n forwardedParameters,\n threadId,\n setThreadId,\n runId,\n setRunId,\n chatAbortControllerRef,\n agentLock,\n extensions,\n setExtensions,\n langGraphInterruptAction,\n setLangGraphInterruptAction,\n });\n\n // this is a workaround born out of a bug that Athena incessantly ran into.\n // We could not find the origin of the bug, however, it was clear that an outdated version of the append function was being used somehow --\n // it referenced the old state of the messages array, and not the latest one.\n //\n // We want to make copilotkit as abuse-proof as possible, so we are adding this workaround to ensure that the latest version of the append function is always used.\n //\n // How does this work?\n // we store the relevant function in a ref that is always up-to-date, and then we use that ref in the callback.\n const latestAppend = useUpdatedRef(append);\n const latestAppendFunc = useAsyncCallback(\n async (message: Message, options?: AppendMessageOptions) => {\n return await latestAppend.current(message, options);\n },\n [latestAppend],\n );\n\n const latestReload = useUpdatedRef(reload);\n const latestReloadFunc = useAsyncCallback(async () => {\n return await latestReload.current();\n }, [latestReload]);\n\n const latestStop = useUpdatedRef(stop);\n const latestStopFunc = useCallback(() => {\n return latestStop.current();\n }, [latestStop]);\n\n const latestDelete = useUpdatedRef(deleteMessage);\n const latestDeleteFunc = useCallback(\n (messageId: string) => {\n return latestDelete.current(messageId);\n },\n [latestDelete],\n );\n\n const latestSetMessages = useUpdatedRef(setMessages);\n const latestSetMessagesFunc = useCallback(\n (messages: Message[]) => {\n return latestSetMessages.current(messages);\n },\n [latestSetMessages],\n );\n\n const latestRunChatCompletion = useUpdatedRef(runChatCompletion);\n const latestRunChatCompletionFunc = useAsyncCallback(async () => {\n return await latestRunChatCompletion.current!();\n }, [latestRunChatCompletion]);\n\n const reset = useCallback(() => {\n latestStopFunc();\n setMessages([]);\n setRunId(null);\n setCoagentStatesWithRef({});\n let initialAgentSession: AgentSession | null = null;\n if (agentLock) {\n initialAgentSession = {\n agentName: agentLock,\n };\n }\n setAgentSession(initialAgentSession);\n }, [\n latestStopFunc,\n setMessages,\n setThreadId,\n setCoagentStatesWithRef,\n setAgentSession,\n agentLock,\n ]);\n\n const latestReset = useUpdatedRef(reset);\n const latestResetFunc = useCallback(() => {\n return latestReset.current();\n }, [latestReset]);\n\n return {\n visibleMessages: messages,\n appendMessage: latestAppendFunc,\n setMessages: latestSetMessagesFunc,\n reloadMessages: latestReloadFunc,\n stopGeneration: latestStopFunc,\n reset: latestResetFunc,\n deleteMessage: latestDeleteFunc,\n runChatCompletion: latestRunChatCompletionFunc,\n isLoading,\n };\n}\n\n// store `value` in a ref and update\n// it whenever it changes.\nfunction useUpdatedRef<T>(value: T) {\n const ref = useRef(value);\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref;\n}\n\nexport function defaultSystemMessage(\n contextString: string,\n additionalInstructions?: string,\n): string {\n return (\n `\nPlease act as an efficient, competent, conscientious, and industrious professional assistant.\n\nHelp the user achieve their goals, and you do so in a way that is as efficient as possible, without unnecessary fluff, but also without sacrificing professionalism.\nAlways be polite and respectful, and prefer brevity over verbosity.\n\nThe user has provided you with the following context:\n\\`\\`\\`\n${contextString}\n\\`\\`\\`\n\nThey have also provided you with functions you can call to initiate actions on their behalf, or functions you can call to receive more information.\n\nPlease assist them as best you can.\n\nYou can ask them for clarifying questions if needed, but don't be annoying about it. If you can reasonably 'fill in the blanks' yourself, do so.\n\nIf you would like to call a function, call it without saying anything else.\nIn case of a function error:\n- If this error stems from incorrect function parameters or syntax, you may retry with corrected arguments.\n- If the error's source is unclear or seems unrelated to your input, do not attempt further retries.\n` + (additionalInstructions ? `\\n\\n${additionalInstructions}` : \"\")\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4CA,SAAS,QAAQ,WAAW,mBAAmB;AAE/C,SAAkB,MAAM,mBAAmB;AA2CpC,SAAS,eAAe,KAGJ,CAAC,GAAyB;AAHtB,eAC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AAA,KAaG,yBAAyB;AAAA;AAAA,EAAO,2BAA2B;AAEhE;","names":["_a","action","options","messages"]}
@@ -1,24 +1,24 @@
1
1
  import {
2
- CopilotMessages
3
- } from "./chunk-7L3NZ62H.mjs";
2
+ CopilotErrorBoundary
3
+ } from "./chunk-534J55RX.mjs";
4
4
  import {
5
5
  shouldShowDevConsole
6
6
  } from "./chunk-MLAS4QUR.mjs";
7
7
  import {
8
- CopilotErrorBoundary
9
- } from "./chunk-534J55RX.mjs";
10
- import {
11
- use_tree_default
12
- } from "./chunk-6U3UH3KO.mjs";
8
+ CopilotMessages
9
+ } from "./chunk-37LXOL6B.mjs";
13
10
  import {
14
11
  use_flat_category_store_default
15
12
  } from "./chunk-5FHSUKQL.mjs";
16
13
  import {
17
- useCopilotRuntimeClient
18
- } from "./chunk-BKTARDXX.mjs";
14
+ use_tree_default
15
+ } from "./chunk-6U3UH3KO.mjs";
19
16
  import {
20
17
  CopilotContext
21
18
  } from "./chunk-PTSWFERP.mjs";
19
+ import {
20
+ useCopilotRuntimeClient
21
+ } from "./chunk-BKTARDXX.mjs";
22
22
  import {
23
23
  ToastProvider
24
24
  } from "./chunk-22ENANUU.mjs";
@@ -538,4 +538,4 @@ export {
538
538
  CopilotKitInternal,
539
539
  defaultCopilotContextCategories
540
540
  };
541
- //# sourceMappingURL=chunk-KWGU7UDS.mjs.map
541
+ //# sourceMappingURL=chunk-RQCCRHBB.mjs.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  useCopilotChat
3
- } from "./chunk-LK4ZSRYW.mjs";
3
+ } from "./chunk-OZZDRR6H.mjs";
4
+ import {
5
+ useCopilotContext
6
+ } from "./chunk-PTSWFERP.mjs";
4
7
  import {
5
8
  useCopilotMessagesContext
6
9
  } from "./chunk-DCTJZ742.mjs";
7
10
  import {
8
11
  useCopilotRuntimeClient
9
12
  } from "./chunk-BKTARDXX.mjs";
10
- import {
11
- useCopilotContext
12
- } from "./chunk-PTSWFERP.mjs";
13
13
  import {
14
14
  useAsyncCallback,
15
15
  useToast
@@ -199,4 +199,4 @@ export {
199
199
  stopAgent,
200
200
  runAgent
201
201
  };
202
- //# sourceMappingURL=chunk-ZGI7LD6W.mjs.map
202
+ //# sourceMappingURL=chunk-SILLU37K.mjs.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  CopilotMessages
3
- } from "../../chunk-7L3NZ62H.mjs";
4
- import "../../chunk-DCTJZ742.mjs";
3
+ } from "../../chunk-37LXOL6B.mjs";
5
4
  import "../../chunk-PTSWFERP.mjs";
5
+ import "../../chunk-DCTJZ742.mjs";
6
6
  import "../../chunk-SKC7AJIV.mjs";
7
7
  export {
8
8
  CopilotMessages
@@ -2,17 +2,17 @@ import {
2
2
  CopilotKit,
3
3
  CopilotKitInternal,
4
4
  defaultCopilotContextCategories
5
- } from "../../chunk-KWGU7UDS.mjs";
6
- import "../../chunk-7L3NZ62H.mjs";
7
- import "../../chunk-MLAS4QUR.mjs";
5
+ } from "../../chunk-RQCCRHBB.mjs";
8
6
  import "../../chunk-534J55RX.mjs";
7
+ import "../../chunk-MLAS4QUR.mjs";
8
+ import "../../chunk-37LXOL6B.mjs";
9
+ import "../../chunk-5FHSUKQL.mjs";
9
10
  import "../../chunk-6U3UH3KO.mjs";
10
11
  import "../../chunk-PMAFHQ7P.mjs";
11
- import "../../chunk-5FHSUKQL.mjs";
12
- import "../../chunk-DCTJZ742.mjs";
13
12
  import "../../chunk-D34OH4VN.mjs";
14
- import "../../chunk-BKTARDXX.mjs";
15
13
  import "../../chunk-PTSWFERP.mjs";
14
+ import "../../chunk-DCTJZ742.mjs";
15
+ import "../../chunk-BKTARDXX.mjs";
16
16
  import "../../chunk-22ENANUU.mjs";
17
17
  import "../../chunk-O7ARI5CV.mjs";
18
18
  import "../../chunk-SKC7AJIV.mjs";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  CopilotKit,
3
3
  defaultCopilotContextCategories
4
- } from "../../chunk-KWGU7UDS.mjs";
5
- import "../../chunk-7L3NZ62H.mjs";
6
- import "../../chunk-MLAS4QUR.mjs";
4
+ } from "../../chunk-RQCCRHBB.mjs";
7
5
  import "../../chunk-534J55RX.mjs";
6
+ import "../../chunk-MLAS4QUR.mjs";
7
+ import "../../chunk-37LXOL6B.mjs";
8
+ import "../../chunk-5FHSUKQL.mjs";
8
9
  import "../../chunk-6U3UH3KO.mjs";
9
10
  import "../../chunk-PMAFHQ7P.mjs";
10
- import "../../chunk-5FHSUKQL.mjs";
11
- import "../../chunk-DCTJZ742.mjs";
12
11
  import "../../chunk-D34OH4VN.mjs";
13
- import "../../chunk-BKTARDXX.mjs";
14
12
  import "../../chunk-PTSWFERP.mjs";
13
+ import "../../chunk-DCTJZ742.mjs";
14
+ import "../../chunk-BKTARDXX.mjs";
15
15
  import "../../chunk-22ENANUU.mjs";
16
16
  import "../../chunk-O7ARI5CV.mjs";
17
17
  import "../../chunk-SKC7AJIV.mjs";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  CopilotKit,
3
3
  defaultCopilotContextCategories
4
- } from "../chunk-KWGU7UDS.mjs";
5
- import "../chunk-7L3NZ62H.mjs";
6
- import "../chunk-MLAS4QUR.mjs";
4
+ } from "../chunk-RQCCRHBB.mjs";
7
5
  import "../chunk-534J55RX.mjs";
6
+ import "../chunk-MLAS4QUR.mjs";
7
+ import "../chunk-37LXOL6B.mjs";
8
+ import "../chunk-5FHSUKQL.mjs";
8
9
  import "../chunk-6U3UH3KO.mjs";
9
10
  import "../chunk-PMAFHQ7P.mjs";
10
- import "../chunk-5FHSUKQL.mjs";
11
- import "../chunk-DCTJZ742.mjs";
12
11
  import "../chunk-D34OH4VN.mjs";
13
- import "../chunk-BKTARDXX.mjs";
14
12
  import "../chunk-PTSWFERP.mjs";
13
+ import "../chunk-DCTJZ742.mjs";
14
+ import "../chunk-BKTARDXX.mjs";
15
15
  import "../chunk-22ENANUU.mjs";
16
16
  import "../chunk-O7ARI5CV.mjs";
17
17
  import "../chunk-SKC7AJIV.mjs";
@@ -1,12 +1,12 @@
1
1
  import "../chunk-YPSGKPDA.mjs";
2
- import {
3
- CopilotMessagesContext,
4
- useCopilotMessagesContext
5
- } from "../chunk-DCTJZ742.mjs";
6
2
  import {
7
3
  CopilotContext,
8
4
  useCopilotContext
9
5
  } from "../chunk-PTSWFERP.mjs";
6
+ import {
7
+ CopilotMessagesContext,
8
+ useCopilotMessagesContext
9
+ } from "../chunk-DCTJZ742.mjs";
10
10
  import "../chunk-SKC7AJIV.mjs";
11
11
  export {
12
12
  CopilotContext,