@copilotkit/react-core 1.10.5-next.6 → 1.10.5-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 +14 -0
- package/dist/{chunk-ZRDV3MVW.mjs → chunk-3A2AZCAV.mjs} +30 -23
- package/dist/chunk-3A2AZCAV.mjs.map +1 -0
- package/dist/{chunk-TM5MFTHG.mjs → chunk-7H4ANZIC.mjs} +11 -5
- package/dist/chunk-7H4ANZIC.mjs.map +1 -0
- package/dist/{chunk-CXDK6XA5.mjs → chunk-BBUQMG45.mjs} +2 -2
- package/dist/{chunk-2MGJO3FY.mjs → chunk-C6IANC2R.mjs} +2 -2
- package/dist/{chunk-FRXYSJGZ.mjs → chunk-DXEQPN43.mjs} +3 -3
- package/dist/{chunk-YHT6CWIY.mjs → chunk-EUX2P2E7.mjs} +5 -3
- package/dist/{chunk-YHT6CWIY.mjs.map → chunk-EUX2P2E7.mjs.map} +1 -1
- package/dist/{chunk-IF4OYMFZ.mjs → chunk-GFCDU2YP.mjs} +4 -4
- package/dist/chunk-GFCDU2YP.mjs.map +1 -0
- package/dist/{chunk-2QZSAQTX.mjs → chunk-GT5WI3AF.mjs} +2 -2
- package/dist/{chunk-AGBNJCIM.mjs → chunk-H4VS6T4E.mjs} +2 -2
- package/dist/{chunk-36FJAVOF.mjs → chunk-HDOG2RTM.mjs} +2 -2
- package/dist/{chunk-BKI4I4S2.mjs → chunk-J4GESU5K.mjs} +5 -5
- package/dist/{chunk-MZ37BAAE.mjs → chunk-MGWRDFBE.mjs} +2 -2
- package/dist/{chunk-DSDAZA3B.mjs → chunk-OKCYPO4I.mjs} +2 -2
- package/dist/{chunk-Y5ZF7AZ3.mjs → chunk-QQUV6DDO.mjs} +4 -4
- package/dist/{chunk-UPQPBCUW.mjs → chunk-QS7M5VZM.mjs} +2 -2
- package/dist/{chunk-FCRPPUZA.mjs → chunk-RLGKX6OP.mjs} +3 -3
- package/dist/{chunk-JEMBA7PE.mjs → chunk-T3376SZS.mjs} +2 -2
- package/dist/{chunk-KWS75AOU.mjs → chunk-U7QULEVO.mjs} +3 -3
- package/dist/{chunk-QF3Q5LUN.mjs → chunk-ZVOLWJCY.mjs} +5 -5
- package/dist/chunk-ZVOLWJCY.mjs.map +1 -0
- package/dist/components/copilot-provider/copilot-messages.js +4 -2
- package/dist/components/copilot-provider/copilot-messages.js.map +1 -1
- package/dist/components/copilot-provider/copilot-messages.mjs +2 -2
- package/dist/components/copilot-provider/copilotkit-props.d.ts +1 -1
- package/dist/components/copilot-provider/copilotkit.d.ts +1 -1
- package/dist/components/copilot-provider/copilotkit.js +30 -21
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +5 -5
- package/dist/components/copilot-provider/index.d.ts +1 -1
- package/dist/components/copilot-provider/index.js +30 -21
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +5 -5
- package/dist/components/dev-console/console-trigger.js +4 -2
- package/dist/components/dev-console/console-trigger.js.map +1 -1
- package/dist/components/dev-console/console-trigger.mjs +3 -3
- package/dist/components/dev-console/developer-console-modal.js +4 -2
- package/dist/components/dev-console/developer-console-modal.js.map +1 -1
- package/dist/components/dev-console/developer-console-modal.mjs +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +30 -21
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -5
- package/dist/context/copilot-context.d.ts +1 -1
- package/dist/context/copilot-context.js +4 -2
- package/dist/context/copilot-context.js.map +1 -1
- package/dist/context/copilot-context.mjs +1 -1
- package/dist/context/copilot-messages-context.d.ts +2 -2
- package/dist/context/index.d.ts +2 -2
- package/dist/context/index.js +4 -2
- package/dist/context/index.js.map +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{copilot-context-59740e82.d.ts → copilot-context-cf9de848.d.ts} +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +17 -9
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +18 -18
- package/dist/hooks/use-chat.d.ts +1 -1
- package/dist/hooks/use-chat.js +6 -4
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +2 -2
- package/dist/hooks/use-coagent-state-render.js +4 -2
- 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-coagent.d.ts +1 -1
- package/dist/hooks/use-coagent.js +9 -7
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +9 -9
- package/dist/hooks/use-copilot-action.js +4 -2
- package/dist/hooks/use-copilot-action.js.map +1 -1
- package/dist/hooks/use-copilot-action.mjs +2 -2
- package/dist/hooks/use-copilot-additional-instructions.js +4 -2
- package/dist/hooks/use-copilot-additional-instructions.js.map +1 -1
- package/dist/hooks/use-copilot-additional-instructions.mjs +2 -2
- package/dist/hooks/use-copilot-authenticated-action.js +4 -2
- package/dist/hooks/use-copilot-authenticated-action.js.map +1 -1
- package/dist/hooks/use-copilot-authenticated-action.mjs +3 -3
- package/dist/hooks/use-copilot-chat-headless_c.d.ts +2 -2
- package/dist/hooks/use-copilot-chat-headless_c.js +9 -7
- package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -1
- package/dist/hooks/use-copilot-chat-headless_c.mjs +9 -9
- package/dist/hooks/use-copilot-chat.d.ts +2 -2
- package/dist/hooks/use-copilot-chat.js +9 -7
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +9 -9
- package/dist/hooks/use-copilot-chat_internal.d.ts +2 -2
- package/dist/hooks/use-copilot-chat_internal.js +9 -7
- package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +8 -8
- package/dist/hooks/use-copilot-readable.js +4 -2
- package/dist/hooks/use-copilot-readable.js.map +1 -1
- package/dist/hooks/use-copilot-readable.mjs +2 -2
- package/dist/hooks/use-langgraph-interrupt-render.js +7 -5
- package/dist/hooks/use-langgraph-interrupt-render.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt-render.mjs +2 -2
- package/dist/hooks/use-langgraph-interrupt.d.ts +1 -1
- package/dist/hooks/use-langgraph-interrupt.js +17 -9
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +9 -9
- package/dist/hooks/use-make-copilot-document-readable.js +4 -2
- package/dist/hooks/use-make-copilot-document-readable.js.map +1 -1
- package/dist/hooks/use-make-copilot-document-readable.mjs +2 -2
- package/dist/{index-d1743abe.d.ts → index-1f5b66ac.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +43 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -19
- package/dist/lib/copilot-task.d.ts +1 -1
- package/dist/lib/copilot-task.js.map +1 -1
- package/dist/lib/copilot-task.mjs +6 -6
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/types/interrupt-action.d.ts +1 -1
- package/dist/types/interrupt-action.js.map +1 -1
- package/dist/utils/extract.d.ts +2 -2
- package/dist/utils/extract.js.map +1 -1
- package/dist/utils/extract.mjs +5 -5
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/suggestions.d.ts +2 -2
- package/dist/utils/suggestions.js.map +1 -1
- package/dist/utils/suggestions.mjs +5 -5
- package/package.json +3 -3
- package/src/components/copilot-provider/copilotkit.tsx +27 -17
- package/src/context/copilot-context.tsx +3 -3
- package/src/hooks/use-chat.ts +2 -2
- package/src/hooks/use-langgraph-interrupt-render.ts +4 -3
- package/src/hooks/use-langgraph-interrupt.ts +8 -3
- package/src/types/interrupt-action.ts +4 -1
- package/dist/chunk-IF4OYMFZ.mjs.map +0 -1
- package/dist/chunk-QF3Q5LUN.mjs.map +0 -1
- package/dist/chunk-TM5MFTHG.mjs.map +0 -1
- package/dist/chunk-ZRDV3MVW.mjs.map +0 -1
- /package/dist/{chunk-CXDK6XA5.mjs.map → chunk-BBUQMG45.mjs.map} +0 -0
- /package/dist/{chunk-2MGJO3FY.mjs.map → chunk-C6IANC2R.mjs.map} +0 -0
- /package/dist/{chunk-FRXYSJGZ.mjs.map → chunk-DXEQPN43.mjs.map} +0 -0
- /package/dist/{chunk-2QZSAQTX.mjs.map → chunk-GT5WI3AF.mjs.map} +0 -0
- /package/dist/{chunk-AGBNJCIM.mjs.map → chunk-H4VS6T4E.mjs.map} +0 -0
- /package/dist/{chunk-36FJAVOF.mjs.map → chunk-HDOG2RTM.mjs.map} +0 -0
- /package/dist/{chunk-BKI4I4S2.mjs.map → chunk-J4GESU5K.mjs.map} +0 -0
- /package/dist/{chunk-MZ37BAAE.mjs.map → chunk-MGWRDFBE.mjs.map} +0 -0
- /package/dist/{chunk-DSDAZA3B.mjs.map → chunk-OKCYPO4I.mjs.map} +0 -0
- /package/dist/{chunk-Y5ZF7AZ3.mjs.map → chunk-QQUV6DDO.mjs.map} +0 -0
- /package/dist/{chunk-UPQPBCUW.mjs.map → chunk-QS7M5VZM.mjs.map} +0 -0
- /package/dist/{chunk-FCRPPUZA.mjs.map → chunk-RLGKX6OP.mjs.map} +0 -0
- /package/dist/{chunk-JEMBA7PE.mjs.map → chunk-T3376SZS.mjs.map} +0 -0
- /package/dist/{chunk-KWS75AOU.mjs.map → chunk-U7QULEVO.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import "../chunk-KDAZGZ24.mjs";
|
|
2
2
|
import {
|
|
3
3
|
useCopilotReadable
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-HDOG2RTM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useLangGraphInterrupt
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-7H4ANZIC.mjs";
|
|
8
8
|
import {
|
|
9
9
|
useMakeCopilotDocumentReadable
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-BBUQMG45.mjs";
|
|
11
11
|
import {
|
|
12
12
|
useCoAgentStateRender
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-GT5WI3AF.mjs";
|
|
14
14
|
import {
|
|
15
15
|
runAgent,
|
|
16
16
|
startAgent,
|
|
17
17
|
stopAgent,
|
|
18
18
|
useCoAgent
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-QQUV6DDO.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useCopilotAdditionalInstructions
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-MGWRDFBE.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useCopilotAuthenticatedAction_c
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-U7QULEVO.mjs";
|
|
26
26
|
import {
|
|
27
27
|
useCopilotAction
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-T3376SZS.mjs";
|
|
29
29
|
import {
|
|
30
30
|
useCopilotChatHeadless_c
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-RLGKX6OP.mjs";
|
|
32
32
|
import {
|
|
33
33
|
useCopilotChat as useCopilotChat2
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-H4VS6T4E.mjs";
|
|
35
35
|
import {
|
|
36
36
|
useCopilotChat
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-J4GESU5K.mjs";
|
|
38
38
|
import {
|
|
39
39
|
useLangGraphInterruptRender
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
} from "../chunk-ZVOLWJCY.mjs";
|
|
41
|
+
import "../chunk-GFCDU2YP.mjs";
|
|
42
42
|
import "../chunk-4CEQJ2X6.mjs";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-3A2AZCAV.mjs";
|
|
44
44
|
import "../chunk-N4VN2B5S.mjs";
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-C6IANC2R.mjs";
|
|
46
|
+
import "../chunk-DXEQPN43.mjs";
|
|
47
|
+
import "../chunk-OKCYPO4I.mjs";
|
|
48
48
|
import "../chunk-PIF5KJYI.mjs";
|
|
49
49
|
import "../chunk-2IDV5OHF.mjs";
|
|
50
50
|
import "../chunk-PMAFHQ7P.mjs";
|
|
@@ -59,7 +59,7 @@ import "../chunk-O7ARI5CV.mjs";
|
|
|
59
59
|
import "../chunk-EFL5OBKN.mjs";
|
|
60
60
|
import "../chunk-6ZLPNY7X.mjs";
|
|
61
61
|
import "../chunk-YPSGKPDA.mjs";
|
|
62
|
-
import "../chunk-
|
|
62
|
+
import "../chunk-EUX2P2E7.mjs";
|
|
63
63
|
import "../chunk-ZLQVRPDS.mjs";
|
|
64
64
|
import "../chunk-SKC7AJIV.mjs";
|
|
65
65
|
export {
|
package/dist/hooks/use-chat.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FunctionCallHandler, CoAgentStateRenderHandler } from '@copilotkit/shared';
|
|
3
3
|
import { Message, TextMessage, ForwardedParametersInput, ExtensionsInput } from '@copilotkit/runtime-client-gql';
|
|
4
|
-
import { c as CopilotApiConfig, A as AgentSession, L as LangGraphInterruptAction, d as LangGraphInterruptActionSetter } from '../copilot-context-
|
|
4
|
+
import { c as CopilotApiConfig, A as AgentSession, L as LangGraphInterruptAction, d as LangGraphInterruptActionSetter } from '../copilot-context-cf9de848.js';
|
|
5
5
|
import { FrontendAction } from '../types/frontend-action.js';
|
|
6
6
|
import { CoagentState } from '../types/coagent-state.js';
|
|
7
7
|
import './use-tree.js';
|
package/dist/hooks/use-chat.js
CHANGED
|
@@ -184,8 +184,10 @@ var emptyCopilotContext = {
|
|
|
184
184
|
setExtensions: () => {
|
|
185
185
|
},
|
|
186
186
|
langGraphInterruptAction: null,
|
|
187
|
-
setLangGraphInterruptAction: () =>
|
|
188
|
-
|
|
187
|
+
setLangGraphInterruptAction: () => {
|
|
188
|
+
},
|
|
189
|
+
removeLangGraphInterruptAction: () => {
|
|
190
|
+
},
|
|
189
191
|
onError: () => {
|
|
190
192
|
},
|
|
191
193
|
bannerError: null,
|
|
@@ -677,7 +679,7 @@ function useChat(options) {
|
|
|
677
679
|
if (ev.name === import_runtime_client_gql3.MetaEventName.LangGraphInterruptEvent) {
|
|
678
680
|
let eventValue = (0, import_runtime_client_gql3.langGraphInterruptEvent)(ev).value;
|
|
679
681
|
eventValue = (0, import_shared4.parseJson)(eventValue, eventValue);
|
|
680
|
-
setLangGraphInterruptAction({
|
|
682
|
+
setLangGraphInterruptAction(threadId, {
|
|
681
683
|
event: __spreadProps(__spreadValues({}, (0, import_runtime_client_gql3.langGraphInterruptEvent)(ev)), {
|
|
682
684
|
value: eventValue
|
|
683
685
|
})
|
|
@@ -975,7 +977,7 @@ function useChat(options) {
|
|
|
975
977
|
switch (event.name) {
|
|
976
978
|
case import_runtime_client_gql3.MetaEventName.LangGraphInterruptEvent:
|
|
977
979
|
if (event.response) {
|
|
978
|
-
setLangGraphInterruptAction(null);
|
|
980
|
+
setLangGraphInterruptAction(threadId, null);
|
|
979
981
|
const value = event.value;
|
|
980
982
|
return [
|
|
981
983
|
...acc,
|