@copilotkit/react-core 1.51.3-next.6 → 1.51.3-next.8
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 +21 -0
- package/dist/chunk-77IVITG3.mjs +158 -0
- package/dist/chunk-77IVITG3.mjs.map +1 -0
- package/dist/chunk-BKMJ4LC7.mjs +119 -0
- package/dist/chunk-BKMJ4LC7.mjs.map +1 -0
- package/dist/chunk-C3YJYDK4.mjs +189 -0
- package/dist/chunk-C3YJYDK4.mjs.map +1 -0
- package/dist/{chunk-GIU66J37.mjs → chunk-DQXCQWSG.mjs} +47 -5
- package/dist/chunk-DQXCQWSG.mjs.map +1 -0
- package/dist/{chunk-HBMPXNW2.mjs → chunk-LO4RRITI.mjs} +71 -18
- package/dist/chunk-LO4RRITI.mjs.map +1 -0
- package/dist/{chunk-3G4VFRVV.mjs → chunk-NXHQDCZF.mjs} +2 -2
- package/dist/{chunk-FDOMAPJY.mjs → chunk-QD7EID4N.mjs} +1 -1
- package/dist/chunk-QD7EID4N.mjs.map +1 -0
- package/dist/{chunk-YTQHRJUA.mjs → chunk-VKNLTZJE.mjs} +2 -2
- package/dist/{chunk-4RRUJHCI.mjs → chunk-VP43SLSZ.mjs} +2 -2
- package/dist/{chunk-MF2ZSLBV.mjs → chunk-XZFIJ7XF.mjs} +2 -2
- package/dist/components/copilot-provider/copilotkit.js +437 -150
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +5 -3
- package/dist/components/copilot-provider/index.js +437 -150
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +5 -3
- package/dist/components/index.js +437 -150
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -3
- package/dist/context/coagent-state-renders-context.d.ts +1 -0
- package/dist/context/coagent-state-renders-context.js.map +1 -1
- package/dist/context/coagent-state-renders-context.mjs +1 -1
- package/dist/context/index.js.map +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/hooks/index.js +512 -212
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +19 -17
- package/dist/hooks/use-coagent-state-render-bridge.helpers.d.ts +92 -0
- package/dist/hooks/use-coagent-state-render-bridge.helpers.js +231 -0
- package/dist/hooks/use-coagent-state-render-bridge.helpers.js.map +1 -0
- package/dist/hooks/use-coagent-state-render-bridge.helpers.mjs +24 -0
- package/dist/hooks/use-coagent-state-render-bridge.helpers.mjs.map +1 -0
- package/dist/hooks/use-coagent-state-render-bridge.js +334 -72
- package/dist/hooks/use-coagent-state-render-bridge.js.map +1 -1
- package/dist/hooks/use-coagent-state-render-bridge.mjs +4 -2
- package/dist/hooks/use-coagent-state-render-registry.d.ts +25 -0
- package/dist/hooks/use-coagent-state-render-registry.js +358 -0
- package/dist/hooks/use-coagent-state-render-registry.js.map +1 -0
- package/dist/hooks/use-coagent-state-render-registry.mjs +9 -0
- package/dist/hooks/use-coagent-state-render-registry.mjs.map +1 -0
- package/dist/hooks/use-coagent-state-render.js.map +1 -1
- package/dist/hooks/use-coagent-state-render.mjs +2 -2
- package/dist/hooks/use-copilot-chat-headless_c.js +414 -114
- package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -1
- package/dist/hooks/use-copilot-chat-headless_c.mjs +7 -5
- package/dist/hooks/use-copilot-chat.js +406 -106
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +7 -5
- package/dist/hooks/use-copilot-chat_internal.js +406 -106
- package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +6 -4
- package/dist/hooks/use-langgraph-interrupt-render.mjs +1 -1
- package/dist/index.js +651 -311
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -20
- package/dist/index.umd.js +39 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/lib/copilot-task.js.map +1 -1
- package/dist/lib/copilot-task.mjs +6 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -4
- package/dist/setupTests.js +1 -0
- package/dist/setupTests.js.map +1 -1
- package/dist/setupTests.mjs +1 -0
- package/dist/setupTests.mjs.map +1 -1
- package/dist/test-helpers/copilot-context.d.ts +14 -0
- package/dist/test-helpers/copilot-context.js +128 -0
- package/dist/test-helpers/copilot-context.js.map +1 -0
- package/dist/test-helpers/copilot-context.mjs +74 -0
- package/dist/test-helpers/copilot-context.mjs.map +1 -0
- package/dist/types/index.mjs +1 -1
- package/dist/v2/index.umd.js +2 -0
- package/dist/v2/index.umd.js.map +1 -0
- package/package.json +8 -6
- package/rollup.config.mjs +92 -0
- package/src/components/copilot-provider/copilotkit.tsx +56 -0
- package/src/context/coagent-state-renders-context.tsx +1 -0
- package/src/hooks/__tests__/use-coagent-state-render-bridge.helpers.test.ts +100 -0
- package/src/hooks/__tests__/use-coagent-state-render.e2e.test.tsx +892 -37
- package/src/hooks/__tests__/use-coagent-state-render.test.tsx +334 -0
- package/src/hooks/use-coagent-state-render-bridge.helpers.ts +311 -0
- package/src/hooks/use-coagent-state-render-bridge.tsx +25 -120
- package/src/hooks/use-coagent-state-render-registry.ts +215 -0
- package/src/hooks/use-copilot-chat_internal.ts +93 -34
- package/src/setupTests.ts +1 -0
- package/src/test-helpers/copilot-context.ts +91 -0
- package/dist/chunk-3X3I7OJV.mjs +0 -172
- package/dist/chunk-3X3I7OJV.mjs.map +0 -1
- package/dist/chunk-FDOMAPJY.mjs.map +0 -1
- package/dist/chunk-GIU66J37.mjs.map +0 -1
- package/dist/chunk-HBMPXNW2.mjs.map +0 -1
- /package/dist/{chunk-3G4VFRVV.mjs.map → chunk-NXHQDCZF.mjs.map} +0 -0
- /package/dist/{chunk-YTQHRJUA.mjs.map → chunk-VKNLTZJE.mjs.map} +0 -0
- /package/dist/{chunk-4RRUJHCI.mjs.map → chunk-VP43SLSZ.mjs.map} +0 -0
- /package/dist/{chunk-MF2ZSLBV.mjs.map → chunk-XZFIJ7XF.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./chunk-FD6FGKYY.mjs";
|
|
3
|
-
import "./chunk-6YOKPWQ7.mjs";
|
|
4
3
|
import "./chunk-36KQV2NA.mjs";
|
|
4
|
+
import "./chunk-6YOKPWQ7.mjs";
|
|
5
5
|
import "./chunk-LUGEI4YQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
CopilotTask
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VP43SLSZ.mjs";
|
|
9
9
|
import "./chunk-4CEQJ2X6.mjs";
|
|
10
10
|
import "./chunk-A6NKSGH3.mjs";
|
|
11
|
+
import {
|
|
12
|
+
useLangGraphInterrupt
|
|
13
|
+
} from "./chunk-4RRMC7L2.mjs";
|
|
11
14
|
import {
|
|
12
15
|
useMakeCopilotDocumentReadable
|
|
13
16
|
} from "./chunk-7IBF6RBW.mjs";
|
|
17
|
+
import {
|
|
18
|
+
useCopilotReadable
|
|
19
|
+
} from "./chunk-Z6JV2LRY.mjs";
|
|
14
20
|
import {
|
|
15
21
|
useCopilotRuntimeClient
|
|
16
22
|
} from "./chunk-6ESSSQ7Q.mjs";
|
|
@@ -18,8 +24,8 @@ import {
|
|
|
18
24
|
useDefaultTool
|
|
19
25
|
} from "./chunk-BUSWSDYO.mjs";
|
|
20
26
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
27
|
+
useCoAgent
|
|
28
|
+
} from "./chunk-ZYTXB6HH.mjs";
|
|
23
29
|
import {
|
|
24
30
|
useCopilotAdditionalInstructions
|
|
25
31
|
} from "./chunk-ABWT4DRT.mjs";
|
|
@@ -40,38 +46,32 @@ import {
|
|
|
40
46
|
} from "./chunk-7DTB7S5V.mjs";
|
|
41
47
|
import {
|
|
42
48
|
useCopilotChatHeadless_c
|
|
43
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XZFIJ7XF.mjs";
|
|
44
50
|
import {
|
|
45
51
|
useCopilotChatSuggestions
|
|
46
52
|
} from "./chunk-XDFVCQD3.mjs";
|
|
47
53
|
import {
|
|
48
54
|
useCopilotChat
|
|
49
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NXHQDCZF.mjs";
|
|
50
56
|
import {
|
|
51
57
|
useCopilotChatInternal
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import {
|
|
54
|
-
useLangGraphInterruptRender
|
|
55
|
-
} from "./chunk-VV56AVPB.mjs";
|
|
58
|
+
} from "./chunk-LO4RRITI.mjs";
|
|
56
59
|
import {
|
|
57
60
|
useLazyToolRenderer
|
|
58
61
|
} from "./chunk-ZVF5Q6IH.mjs";
|
|
59
62
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
63
|
+
useLangGraphInterruptRender
|
|
64
|
+
} from "./chunk-VV56AVPB.mjs";
|
|
65
|
+
import "./chunk-I76HKHPJ.mjs";
|
|
62
66
|
import {
|
|
63
67
|
useCoAgentStateRender
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import {
|
|
66
|
-
useCoAgent
|
|
67
|
-
} from "./chunk-ZYTXB6HH.mjs";
|
|
68
|
-
import "./chunk-I76HKHPJ.mjs";
|
|
68
|
+
} from "./chunk-VKNLTZJE.mjs";
|
|
69
69
|
import "./chunk-JD7BAH7U.mjs";
|
|
70
70
|
import "./chunk-SPCZTZCY.mjs";
|
|
71
71
|
import {
|
|
72
72
|
CopilotKit,
|
|
73
73
|
defaultCopilotContextCategories
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-DQXCQWSG.mjs";
|
|
75
75
|
import "./chunk-LHERIF3L.mjs";
|
|
76
76
|
import "./chunk-CYDWEPFL.mjs";
|
|
77
77
|
import {
|
|
@@ -86,13 +86,15 @@ import "./chunk-PMAFHQ7P.mjs";
|
|
|
86
86
|
import "./chunk-YYN33GSG.mjs";
|
|
87
87
|
import "./chunk-6PUNP7CD.mjs";
|
|
88
88
|
import "./chunk-O7ARI5CV.mjs";
|
|
89
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-BKMJ4LC7.mjs";
|
|
90
90
|
import "./chunk-NB2FKV2V.mjs";
|
|
91
91
|
import {
|
|
92
92
|
ThreadsContext,
|
|
93
93
|
ThreadsProvider,
|
|
94
94
|
useThreads
|
|
95
95
|
} from "./chunk-LMHB2D4J.mjs";
|
|
96
|
+
import "./chunk-77IVITG3.mjs";
|
|
97
|
+
import "./chunk-C3YJYDK4.mjs";
|
|
96
98
|
import "./chunk-WF65O6HX.mjs";
|
|
97
99
|
import "./chunk-EFL5OBKN.mjs";
|
|
98
100
|
import "./chunk-6ZLPNY7X.mjs";
|
|
@@ -100,7 +102,7 @@ import {
|
|
|
100
102
|
CoAgentStateRendersContext,
|
|
101
103
|
CoAgentStateRendersProvider,
|
|
102
104
|
useCoAgentStateRenders
|
|
103
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-QD7EID4N.mjs";
|
|
104
106
|
import {
|
|
105
107
|
CopilotContext,
|
|
106
108
|
useCopilotContext
|