@copilotkit/react-core 1.10.1-next.2 → 1.10.2-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.
- package/CHANGELOG.md +18 -0
- package/dist/{chunk-WSXTUD36.mjs → chunk-A2ORBLCP.mjs} +3 -3
- package/dist/chunk-A2ORBLCP.mjs.map +1 -0
- package/dist/{chunk-BLMAVXM2.mjs → chunk-ACHZJNZF.mjs} +2 -2
- package/dist/{chunk-2GRWTU7W.mjs → chunk-AEAS6ZRO.mjs} +2 -2
- package/dist/{chunk-JY3STRON.mjs → chunk-HD2TFFAT.mjs} +5 -4
- package/dist/chunk-HD2TFFAT.mjs.map +1 -0
- package/dist/{chunk-KH27ZS4Y.mjs → chunk-HD3F6XVZ.mjs} +6 -5
- package/dist/chunk-HD3F6XVZ.mjs.map +1 -0
- package/dist/{chunk-NTH42BY5.mjs → chunk-KDE2GWEU.mjs} +2 -2
- package/dist/{chunk-BEFEBKKI.mjs → chunk-ME7RQK67.mjs} +2 -2
- package/dist/{chunk-3BASANUO.mjs → chunk-QE7Z6LQR.mjs} +3 -3
- package/dist/{chunk-3BASANUO.mjs.map → chunk-QE7Z6LQR.mjs.map} +1 -1
- package/dist/{chunk-5P46WS5M.mjs → chunk-WNMN2UNU.mjs} +2 -2
- package/dist/{chunk-YIBUNEBN.mjs → chunk-ZJYEXP6T.mjs} +2 -2
- package/dist/components/copilot-provider/copilotkit.js +3 -3
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +3 -3
- package/dist/components/copilot-provider/index.js +3 -3
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +3 -3
- package/dist/components/dev-console/console-trigger.js +3 -3
- package/dist/components/dev-console/console-trigger.js.map +1 -1
- package/dist/components/dev-console/console-trigger.mjs +2 -2
- package/dist/components/dev-console/developer-console-modal.js +2 -2
- package/dist/components/dev-console/developer-console-modal.js.map +1 -1
- package/dist/components/dev-console/developer-console-modal.mjs +1 -1
- package/dist/components/index.js +3 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -3
- package/dist/hooks/index.js +7 -5
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +9 -9
- package/dist/hooks/use-chat.d.ts +1 -0
- package/dist/hooks/use-chat.js +5 -4
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +1 -1
- package/dist/hooks/use-coagent.js +7 -5
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +6 -6
- package/dist/hooks/use-copilot-chat-headless_c.js +7 -5
- package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -1
- package/dist/hooks/use-copilot-chat-headless_c.mjs +6 -6
- package/dist/hooks/use-copilot-chat.js +7 -5
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +6 -6
- package/dist/hooks/use-copilot-chat_internal.d.ts +4 -0
- package/dist/hooks/use-copilot-chat_internal.js +7 -5
- package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +5 -5
- package/dist/hooks/use-langgraph-interrupt.js +7 -5
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +6 -6
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/lib/copilot-task.mjs +4 -4
- package/dist/lib/index.mjs +4 -4
- package/dist/utils/extract.mjs +3 -3
- package/dist/utils/index.mjs +3 -3
- package/dist/utils/suggestions.mjs +3 -3
- package/package.json +3 -3
- package/src/components/dev-console/console-trigger.tsx +2 -2
- package/src/components/dev-console/developer-console-modal.tsx +2 -2
- package/src/hooks/use-chat.ts +7 -3
- package/src/hooks/use-copilot-chat_internal.ts +6 -0
- package/dist/chunk-JY3STRON.mjs.map +0 -1
- package/dist/chunk-KH27ZS4Y.mjs.map +0 -1
- package/dist/chunk-WSXTUD36.mjs.map +0 -1
- /package/dist/{chunk-BLMAVXM2.mjs.map → chunk-ACHZJNZF.mjs.map} +0 -0
- /package/dist/{chunk-2GRWTU7W.mjs.map → chunk-AEAS6ZRO.mjs.map} +0 -0
- /package/dist/{chunk-NTH42BY5.mjs.map → chunk-KDE2GWEU.mjs.map} +0 -0
- /package/dist/{chunk-BEFEBKKI.mjs.map → chunk-ME7RQK67.mjs.map} +0 -0
- /package/dist/{chunk-5P46WS5M.mjs.map → chunk-WNMN2UNU.mjs.map} +0 -0
- /package/dist/{chunk-YIBUNEBN.mjs.map → chunk-ZJYEXP6T.mjs.map} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useLangGraphInterrupt
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-KDE2GWEU.mjs";
|
|
4
|
+
import "../chunk-HD2TFFAT.mjs";
|
|
5
5
|
import "../chunk-IN7GE4NO.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-HD3F6XVZ.mjs";
|
|
7
7
|
import "../chunk-4CEQJ2X6.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-WNMN2UNU.mjs";
|
|
9
9
|
import "../chunk-N4VN2B5S.mjs";
|
|
10
10
|
import "../chunk-MUDXTKXE.mjs";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-QE7Z6LQR.mjs";
|
|
12
|
+
import "../chunk-A2ORBLCP.mjs";
|
|
13
13
|
import "../chunk-PIF5KJYI.mjs";
|
|
14
14
|
import "../chunk-2IDV5OHF.mjs";
|
|
15
15
|
import "../chunk-PMAFHQ7P.mjs";
|
package/dist/index.js
CHANGED
|
@@ -1975,7 +1975,7 @@ function DeveloperConsoleModal({ isOpen, onClose, hasApiKey }) {
|
|
|
1975
1975
|
color: "#1f2937",
|
|
1976
1976
|
margin: 0
|
|
1977
1977
|
},
|
|
1978
|
-
children: "
|
|
1978
|
+
children: "Inspector"
|
|
1979
1979
|
}
|
|
1980
1980
|
),
|
|
1981
1981
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
@@ -2228,7 +2228,7 @@ function DeveloperConsoleModal({ isOpen, onClose, hasApiKey }) {
|
|
|
2228
2228
|
e.currentTarget.style.outline = "none";
|
|
2229
2229
|
},
|
|
2230
2230
|
children: [
|
|
2231
|
-
"Get
|
|
2231
|
+
"Get License Key",
|
|
2232
2232
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: { fontSize: "16px", marginLeft: "-4px" }, children: "\u2192" })
|
|
2233
2233
|
]
|
|
2234
2234
|
}
|
|
@@ -2665,7 +2665,7 @@ function ConsoleTrigger({ position = "bottom-right" }) {
|
|
|
2665
2665
|
pointerEvents: "auto",
|
|
2666
2666
|
isolation: "isolate"
|
|
2667
2667
|
},
|
|
2668
|
-
title: hasApiKey ? "Open
|
|
2668
|
+
title: hasApiKey ? "Open Inspector (Drag to move)" : "Inspector (License Key Required, Drag to move)",
|
|
2669
2669
|
children: [
|
|
2670
2670
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2671
2671
|
"div",
|
|
@@ -3193,7 +3193,8 @@ function useChat(options) {
|
|
|
3193
3193
|
extensions,
|
|
3194
3194
|
setExtensions,
|
|
3195
3195
|
langGraphInterruptAction,
|
|
3196
|
-
setLangGraphInterruptAction
|
|
3196
|
+
setLangGraphInterruptAction,
|
|
3197
|
+
disableSystemMessage = false
|
|
3197
3198
|
} = options;
|
|
3198
3199
|
const runChatCompletionRef = (0, import_react13.useRef)();
|
|
3199
3200
|
const addErrorToast = useErrorToast();
|
|
@@ -3263,8 +3264,7 @@ function useChat(options) {
|
|
|
3263
3264
|
];
|
|
3264
3265
|
chatAbortControllerRef.current = new AbortController();
|
|
3265
3266
|
setMessages([...previousMessages, ...newMessages]);
|
|
3266
|
-
const
|
|
3267
|
-
const messagesWithContext = [systemMessage, ...initialMessages || [], ...previousMessages];
|
|
3267
|
+
const messagesWithContext = disableSystemMessage ? [...initialMessages || [], ...previousMessages] : [makeSystemMessageCallback(), ...initialMessages || [], ...previousMessages];
|
|
3268
3268
|
const finalProperties = __spreadValues({}, copilotConfig.properties || {});
|
|
3269
3269
|
let mcpServersToUse = null;
|
|
3270
3270
|
if (copilotConfig.mcpServers && Array.isArray(copilotConfig.mcpServers) && copilotConfig.mcpServers.length > 0) {
|
|
@@ -3626,7 +3626,8 @@ function useChat(options) {
|
|
|
3626
3626
|
setCoagentStatesWithRef,
|
|
3627
3627
|
coagentStatesRef,
|
|
3628
3628
|
agentSession,
|
|
3629
|
-
setAgentSession
|
|
3629
|
+
setAgentSession,
|
|
3630
|
+
disableSystemMessage
|
|
3630
3631
|
]
|
|
3631
3632
|
);
|
|
3632
3633
|
runChatCompletionRef.current = runChatCompletion;
|
|
@@ -4027,7 +4028,8 @@ function useCopilotChat(options = {}) {
|
|
|
4027
4028
|
extensions,
|
|
4028
4029
|
setExtensions,
|
|
4029
4030
|
langGraphInterruptAction,
|
|
4030
|
-
setLangGraphInterruptAction
|
|
4031
|
+
setLangGraphInterruptAction,
|
|
4032
|
+
disableSystemMessage: options.disableSystemMessage
|
|
4031
4033
|
}));
|
|
4032
4034
|
const latestAppend = useUpdatedRef(append);
|
|
4033
4035
|
const latestAppendFunc = useAsyncCallback(
|