@copilotkit/react-core 1.10.4-next.3 → 1.10.5-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 +19 -0
- package/dist/{chunk-52UQCG24.mjs → chunk-7D4OASUM.mjs} +2 -2
- package/dist/{chunk-T6ACM7RS.mjs → chunk-7LZXD5RJ.mjs} +2 -2
- package/dist/{chunk-UZ62I7O3.mjs → chunk-AGP7SAEE.mjs} +2 -2
- package/dist/{chunk-3ST7A2EK.mjs → chunk-FCRODLLL.mjs} +2 -2
- package/dist/{chunk-TWVUO4RV.mjs → chunk-G2GQX4FI.mjs} +64 -3
- package/dist/chunk-G2GQX4FI.mjs.map +1 -0
- package/dist/{chunk-3HV6BY52.mjs → chunk-HHLBUGRA.mjs} +2 -2
- package/dist/{chunk-LPSDRNU4.mjs → chunk-KA3NCZEJ.mjs} +2 -2
- package/dist/{chunk-XVFOGJIP.mjs → chunk-NALRM7KT.mjs} +2 -2
- package/dist/components/copilot-provider/copilotkit.js +63 -2
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +2 -2
- package/dist/components/copilot-provider/index.js +63 -2
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +2 -2
- package/dist/components/dev-console/console-trigger.js +63 -2
- package/dist/components/dev-console/console-trigger.js.map +1 -1
- package/dist/components/dev-console/console-trigger.mjs +1 -1
- package/dist/components/index.js +63 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/hooks/index.mjs +7 -7
- package/dist/hooks/use-coagent.mjs +4 -4
- package/dist/hooks/use-copilot-chat-headless_c.mjs +4 -4
- package/dist/hooks/use-copilot-chat.mjs +4 -4
- package/dist/hooks/use-copilot-chat_internal.mjs +3 -3
- package/dist/hooks/use-langgraph-interrupt.mjs +4 -4
- package/dist/index.js +63 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/lib/copilot-task.mjs +3 -3
- package/dist/lib/index.mjs +3 -3
- package/dist/utils/extract.mjs +2 -2
- package/dist/utils/index.mjs +2 -2
- package/dist/utils/suggestions.mjs +2 -2
- package/package.json +3 -3
- package/src/components/dev-console/console-trigger.tsx +66 -2
- package/dist/chunk-TWVUO4RV.mjs.map +0 -1
- /package/dist/{chunk-52UQCG24.mjs.map → chunk-7D4OASUM.mjs.map} +0 -0
- /package/dist/{chunk-T6ACM7RS.mjs.map → chunk-7LZXD5RJ.mjs.map} +0 -0
- /package/dist/{chunk-UZ62I7O3.mjs.map → chunk-AGP7SAEE.mjs.map} +0 -0
- /package/dist/{chunk-3ST7A2EK.mjs.map → chunk-FCRODLLL.mjs.map} +0 -0
- /package/dist/{chunk-3HV6BY52.mjs.map → chunk-HHLBUGRA.mjs.map} +0 -0
- /package/dist/{chunk-LPSDRNU4.mjs.map → chunk-KA3NCZEJ.mjs.map} +0 -0
- /package/dist/{chunk-XVFOGJIP.mjs.map → chunk-NALRM7KT.mjs.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotKit,
|
|
3
3
|
defaultCopilotContextCategories
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7LZXD5RJ.mjs";
|
|
5
5
|
import "../chunk-L3I57GMV.mjs";
|
|
6
6
|
import "../chunk-MY2BUA6F.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-G2GQX4FI.mjs";
|
|
8
8
|
import "../chunk-23SOG4FI.mjs";
|
|
9
9
|
import "../chunk-PIF5KJYI.mjs";
|
|
10
10
|
import "../chunk-2IDV5OHF.mjs";
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-KDAZGZ24.mjs";
|
|
2
2
|
import {
|
|
3
3
|
useLangGraphInterrupt
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NALRM7KT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useMakeCopilotDocumentReadable
|
|
7
7
|
} from "../chunk-CXDK6XA5.mjs";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
} from "../chunk-AR7HJPGU.mjs";
|
|
17
17
|
import {
|
|
18
18
|
useCopilotChatHeadless_c
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-HHLBUGRA.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useCopilotChat as useCopilotChat2
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-KA3NCZEJ.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useCopilotReadable
|
|
25
25
|
} from "../chunk-36FJAVOF.mjs";
|
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
startAgent,
|
|
32
32
|
stopAgent,
|
|
33
33
|
useCoAgent
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-AGP7SAEE.mjs";
|
|
35
35
|
import {
|
|
36
36
|
useCopilotChat
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-FCRODLLL.mjs";
|
|
38
38
|
import {
|
|
39
39
|
useLangGraphInterruptRender
|
|
40
40
|
} from "../chunk-QF3Q5LUN.mjs";
|
|
41
41
|
import "../chunk-YPSGKPDA.mjs";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-7LZXD5RJ.mjs";
|
|
43
43
|
import "../chunk-L3I57GMV.mjs";
|
|
44
44
|
import "../chunk-MY2BUA6F.mjs";
|
|
45
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-G2GQX4FI.mjs";
|
|
46
46
|
import "../chunk-23SOG4FI.mjs";
|
|
47
47
|
import "../chunk-PIF5KJYI.mjs";
|
|
48
48
|
import "../chunk-2IDV5OHF.mjs";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
startAgent,
|
|
4
4
|
stopAgent,
|
|
5
5
|
useCoAgent
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-AGP7SAEE.mjs";
|
|
7
|
+
import "../chunk-FCRODLLL.mjs";
|
|
8
8
|
import "../chunk-QF3Q5LUN.mjs";
|
|
9
9
|
import "../chunk-YPSGKPDA.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-7LZXD5RJ.mjs";
|
|
11
11
|
import "../chunk-L3I57GMV.mjs";
|
|
12
12
|
import "../chunk-MY2BUA6F.mjs";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-G2GQX4FI.mjs";
|
|
14
14
|
import "../chunk-23SOG4FI.mjs";
|
|
15
15
|
import "../chunk-PIF5KJYI.mjs";
|
|
16
16
|
import "../chunk-2IDV5OHF.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopilotChatHeadless_c
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-HHLBUGRA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
defaultSystemMessage
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-FCRODLLL.mjs";
|
|
7
7
|
import "../chunk-QF3Q5LUN.mjs";
|
|
8
8
|
import "../chunk-YPSGKPDA.mjs";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-7LZXD5RJ.mjs";
|
|
10
10
|
import "../chunk-L3I57GMV.mjs";
|
|
11
11
|
import "../chunk-MY2BUA6F.mjs";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-G2GQX4FI.mjs";
|
|
13
13
|
import "../chunk-23SOG4FI.mjs";
|
|
14
14
|
import "../chunk-PIF5KJYI.mjs";
|
|
15
15
|
import "../chunk-2IDV5OHF.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopilotChat
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-KA3NCZEJ.mjs";
|
|
4
|
+
import "../chunk-FCRODLLL.mjs";
|
|
5
5
|
import "../chunk-QF3Q5LUN.mjs";
|
|
6
6
|
import "../chunk-YPSGKPDA.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-7LZXD5RJ.mjs";
|
|
8
8
|
import "../chunk-L3I57GMV.mjs";
|
|
9
9
|
import "../chunk-MY2BUA6F.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-G2GQX4FI.mjs";
|
|
11
11
|
import "../chunk-23SOG4FI.mjs";
|
|
12
12
|
import "../chunk-PIF5KJYI.mjs";
|
|
13
13
|
import "../chunk-2IDV5OHF.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultSystemMessage,
|
|
3
3
|
useCopilotChat
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-FCRODLLL.mjs";
|
|
5
5
|
import "../chunk-QF3Q5LUN.mjs";
|
|
6
6
|
import "../chunk-YPSGKPDA.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-7LZXD5RJ.mjs";
|
|
8
8
|
import "../chunk-L3I57GMV.mjs";
|
|
9
9
|
import "../chunk-MY2BUA6F.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-G2GQX4FI.mjs";
|
|
11
11
|
import "../chunk-23SOG4FI.mjs";
|
|
12
12
|
import "../chunk-PIF5KJYI.mjs";
|
|
13
13
|
import "../chunk-2IDV5OHF.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useLangGraphInterrupt
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-NALRM7KT.mjs";
|
|
4
|
+
import "../chunk-FCRODLLL.mjs";
|
|
5
5
|
import "../chunk-QF3Q5LUN.mjs";
|
|
6
6
|
import "../chunk-YPSGKPDA.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-7LZXD5RJ.mjs";
|
|
8
8
|
import "../chunk-L3I57GMV.mjs";
|
|
9
9
|
import "../chunk-MY2BUA6F.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-G2GQX4FI.mjs";
|
|
11
11
|
import "../chunk-23SOG4FI.mjs";
|
|
12
12
|
import "../chunk-PIF5KJYI.mjs";
|
|
13
13
|
import "../chunk-2IDV5OHF.mjs";
|
package/dist/index.js
CHANGED
|
@@ -2566,6 +2566,7 @@ function ContextTab({ context }) {
|
|
|
2566
2566
|
|
|
2567
2567
|
// src/components/dev-console/console-trigger.tsx
|
|
2568
2568
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
2569
|
+
var INSPECTOR_HIDE_KEY = "cpk:inspector:hidden";
|
|
2569
2570
|
function ConsoleTrigger({ position = "bottom-right" }) {
|
|
2570
2571
|
const context = useCopilotContext();
|
|
2571
2572
|
const hasApiKey = Boolean(context.copilotApiConfig.publicApiKey);
|
|
@@ -2574,10 +2575,18 @@ function ConsoleTrigger({ position = "bottom-right" }) {
|
|
|
2574
2575
|
const [isDragging, setIsDragging] = (0, import_react11.useState)(false);
|
|
2575
2576
|
const [buttonPosition, setButtonPosition] = (0, import_react11.useState)(null);
|
|
2576
2577
|
const [mounted, setMounted] = (0, import_react11.useState)(false);
|
|
2578
|
+
const [isHidden, setIsHidden] = (0, import_react11.useState)(false);
|
|
2577
2579
|
const dragRef = (0, import_react11.useRef)(null);
|
|
2578
2580
|
const buttonRef = (0, import_react11.useRef)(null);
|
|
2579
2581
|
(0, import_react11.useEffect)(() => {
|
|
2580
2582
|
setMounted(true);
|
|
2583
|
+
try {
|
|
2584
|
+
const hidden = typeof window !== "undefined" ? localStorage.getItem(INSPECTOR_HIDE_KEY) : null;
|
|
2585
|
+
if (hidden === "1" || hidden === "true") {
|
|
2586
|
+
setIsHidden(true);
|
|
2587
|
+
}
|
|
2588
|
+
} catch (e) {
|
|
2589
|
+
}
|
|
2581
2590
|
if (typeof window !== "undefined" && !buttonPosition) {
|
|
2582
2591
|
const buttonSize = 60;
|
|
2583
2592
|
const margin = 24;
|
|
@@ -2629,7 +2638,7 @@ function ConsoleTrigger({ position = "bottom-right" }) {
|
|
|
2629
2638
|
document.removeEventListener("mouseup", handleMouseUp, { capture: true });
|
|
2630
2639
|
};
|
|
2631
2640
|
}, [isDragging]);
|
|
2632
|
-
if (!mounted || !buttonPosition) {
|
|
2641
|
+
if (!mounted || !buttonPosition || isHidden) {
|
|
2633
2642
|
return null;
|
|
2634
2643
|
}
|
|
2635
2644
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
@@ -2637,11 +2646,27 @@ function ConsoleTrigger({ position = "bottom-right" }) {
|
|
|
2637
2646
|
"button",
|
|
2638
2647
|
{
|
|
2639
2648
|
ref: buttonRef,
|
|
2640
|
-
onClick: () => {
|
|
2649
|
+
onClick: (e) => {
|
|
2641
2650
|
if (!isDragging) {
|
|
2651
|
+
if (e.metaKey || e.altKey) {
|
|
2652
|
+
try {
|
|
2653
|
+
localStorage.setItem(INSPECTOR_HIDE_KEY, "1");
|
|
2654
|
+
} catch (e2) {
|
|
2655
|
+
}
|
|
2656
|
+
setIsHidden(true);
|
|
2657
|
+
return;
|
|
2658
|
+
}
|
|
2642
2659
|
setIsModalOpen(true);
|
|
2643
2660
|
}
|
|
2644
2661
|
},
|
|
2662
|
+
onContextMenu: (e) => {
|
|
2663
|
+
e.preventDefault();
|
|
2664
|
+
try {
|
|
2665
|
+
localStorage.setItem(INSPECTOR_HIDE_KEY, "1");
|
|
2666
|
+
} catch (e2) {
|
|
2667
|
+
}
|
|
2668
|
+
setIsHidden(true);
|
|
2669
|
+
},
|
|
2645
2670
|
onMouseDown: handleMouseDown,
|
|
2646
2671
|
onMouseEnter: () => setIsHovered(true),
|
|
2647
2672
|
onMouseLeave: () => setIsHovered(false),
|
|
@@ -2671,6 +2696,42 @@ function ConsoleTrigger({ position = "bottom-right" }) {
|
|
|
2671
2696
|
},
|
|
2672
2697
|
title: hasApiKey ? "Open Inspector (Drag to move)" : "Inspector (License Key Required, Drag to move)",
|
|
2673
2698
|
children: [
|
|
2699
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2700
|
+
"div",
|
|
2701
|
+
{
|
|
2702
|
+
onClick: (e) => {
|
|
2703
|
+
e.preventDefault();
|
|
2704
|
+
e.stopPropagation();
|
|
2705
|
+
try {
|
|
2706
|
+
localStorage.setItem(INSPECTOR_HIDE_KEY, "1");
|
|
2707
|
+
} catch (e2) {
|
|
2708
|
+
}
|
|
2709
|
+
setIsHidden(true);
|
|
2710
|
+
},
|
|
2711
|
+
style: {
|
|
2712
|
+
position: "absolute",
|
|
2713
|
+
bottom: "2px",
|
|
2714
|
+
right: "2px",
|
|
2715
|
+
width: "20px",
|
|
2716
|
+
height: "20px",
|
|
2717
|
+
borderRadius: "50%",
|
|
2718
|
+
background: "#ffffff",
|
|
2719
|
+
color: "#ef4444",
|
|
2720
|
+
fontSize: "14px",
|
|
2721
|
+
lineHeight: "18px",
|
|
2722
|
+
textAlign: "center",
|
|
2723
|
+
boxShadow: "0 2px 6px rgba(0,0,0,0.35)",
|
|
2724
|
+
cursor: "pointer",
|
|
2725
|
+
border: "1px solid #e5e7eb",
|
|
2726
|
+
display: "flex",
|
|
2727
|
+
alignItems: "center",
|
|
2728
|
+
justifyContent: "center",
|
|
2729
|
+
zIndex: 1
|
|
2730
|
+
},
|
|
2731
|
+
title: "Hide Inspector",
|
|
2732
|
+
children: "\xD7"
|
|
2733
|
+
}
|
|
2734
|
+
),
|
|
2674
2735
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2675
2736
|
"div",
|
|
2676
2737
|
{
|