@copilotkit/react-core 1.10.0-next.6 → 1.10.0-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 +15 -0
- package/dist/{chunk-57MBVQPX.mjs → chunk-3RHHNUVV.mjs} +2 -2
- package/dist/{chunk-AC2GVFW6.mjs → chunk-6EKLRL7B.mjs} +2 -2
- package/dist/{chunk-EQQSE6KM.mjs → chunk-CLMDRYEN.mjs} +2 -2
- package/dist/{chunk-XIHAYU6C.mjs → chunk-FTP6FDYS.mjs} +3 -3
- package/dist/{chunk-AVMA2MCW.mjs → chunk-GEKWHETN.mjs} +2 -2
- package/dist/{chunk-2JAX6WE6.mjs → chunk-GRCHDHC4.mjs} +7 -9
- package/dist/chunk-GRCHDHC4.mjs.map +1 -0
- package/dist/{chunk-OL3VRQKU.mjs → chunk-IN7GE4NO.mjs} +2 -2
- package/dist/{chunk-G7J6NY5J.mjs → chunk-K4HXT453.mjs} +3 -3
- package/dist/{chunk-BBK7LXZ6.mjs → chunk-KH27ZS4Y.mjs} +2 -2
- package/dist/{chunk-JLQZVKFX.mjs → chunk-MUDXTKXE.mjs} +39 -5
- package/dist/chunk-MUDXTKXE.mjs.map +1 -0
- package/dist/{chunk-PQ5IXT4Z.mjs → chunk-MWHILKQH.mjs} +2 -2
- package/dist/{chunk-2WYJIO6D.mjs → chunk-OPRDTF4S.mjs} +2 -2
- package/dist/{chunk-L7CWMU4O.mjs → chunk-PHIMGB3K.mjs} +6 -8
- package/dist/chunk-PHIMGB3K.mjs.map +1 -0
- package/dist/{chunk-47GMU44Z.mjs → chunk-TEMLWRRT.mjs} +1 -4
- package/dist/{chunk-47GMU44Z.mjs.map → chunk-TEMLWRRT.mjs.map} +1 -1
- package/dist/{chunk-PRKL7T7P.mjs → chunk-TTI4Z6GK.mjs} +13 -14
- package/dist/chunk-TTI4Z6GK.mjs.map +1 -0
- package/dist/{chunk-5JL5ELUS.mjs → chunk-VH45SC6Z.mjs} +2 -2
- package/dist/{chunk-373NOCJI.mjs → chunk-VSH4JSN3.mjs} +3 -3
- package/dist/{chunk-DCTJZ742.mjs → chunk-ZLQVRPDS.mjs} +5 -2
- package/dist/chunk-ZLQVRPDS.mjs.map +1 -0
- package/dist/components/copilot-provider/copilot-messages.d.ts +17 -1
- package/dist/components/copilot-provider/copilot-messages.js +35 -7
- package/dist/components/copilot-provider/copilot-messages.js.map +1 -1
- package/dist/components/copilot-provider/copilot-messages.mjs +9 -5
- package/dist/components/copilot-provider/copilotkit-props.d.ts +1 -2
- package/dist/components/copilot-provider/copilotkit.d.ts +1 -2
- package/dist/components/copilot-provider/copilotkit.js +30 -9
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +4 -4
- package/dist/components/copilot-provider/index.d.ts +1 -2
- package/dist/components/copilot-provider/index.js +30 -9
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +4 -4
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +30 -9
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/context/copilot-context.d.ts +1 -2
- package/dist/context/copilot-context.js +0 -3
- 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 +11 -15
- package/dist/context/copilot-messages-context.js +4 -1
- package/dist/context/copilot-messages-context.js.map +1 -1
- package/dist/context/copilot-messages-context.mjs +1 -1
- package/dist/context/index.d.ts +2 -2
- package/dist/context/index.js +4 -4
- package/dist/context/index.js.map +1 -1
- package/dist/context/index.mjs +2 -2
- package/dist/{copilot-context-78fc727c.d.ts → copilot-context-256f9020.d.ts} +1 -21
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.js +133 -123
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +17 -17
- package/dist/hooks/use-chat.d.ts +1 -2
- package/dist/hooks/use-chat.js +0 -3
- 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 +0 -3
- 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 +3 -4
- package/dist/hooks/use-coagent.js +85 -75
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +8 -8
- package/dist/hooks/use-copilot-action.js +0 -3
- 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 +0 -3
- 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 +0 -3
- 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-light.d.ts +3 -3
- package/dist/hooks/use-copilot-chat-light.js +5 -7
- package/dist/hooks/use-copilot-chat-light.js.map +1 -1
- package/dist/hooks/use-copilot-chat-light.mjs +8 -8
- package/dist/hooks/use-copilot-chat.d.ts +2 -2
- package/dist/hooks/use-copilot-chat.js +5 -7
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +8 -8
- package/dist/hooks/use-copilot-chat_internal.d.ts +3 -3
- package/dist/hooks/use-copilot-chat_internal.js +5 -7
- package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +7 -7
- package/dist/hooks/use-copilot-readable.js +0 -3
- 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 +0 -3
- package/dist/hooks/use-langgraph-interrupt-render.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt-render.mjs +3 -3
- package/dist/hooks/use-langgraph-interrupt.d.ts +3 -4
- package/dist/hooks/use-langgraph-interrupt.js +5 -7
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +8 -8
- package/dist/hooks/use-make-copilot-document-readable.js +0 -3
- 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-08c43df1.d.ts +36 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +38 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/lib/copilot-task.d.ts +1 -2
- package/dist/lib/copilot-task.js.map +1 -1
- package/dist/lib/copilot-task.mjs +5 -5
- package/dist/lib/index.d.ts +1 -2
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/types/interrupt-action.d.ts +2 -3
- package/dist/utils/extract.d.ts +2 -2
- package/dist/utils/extract.js.map +1 -1
- package/dist/utils/extract.mjs +4 -4
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +4 -4
- package/dist/utils/suggestions.d.ts +2 -2
- package/dist/utils/suggestions.js.map +1 -1
- package/dist/utils/suggestions.mjs +4 -4
- package/package.json +3 -3
- package/src/components/copilot-provider/copilot-messages.tsx +57 -1
- package/src/components/copilot-provider/copilotkit.tsx +4 -5
- package/src/context/copilot-context.tsx +0 -5
- package/src/context/copilot-messages-context.tsx +7 -1
- package/src/hooks/__tests__/use-coagent-config.test.ts +7 -0
- package/src/hooks/use-coagent.ts +11 -8
- package/src/hooks/use-copilot-chat_internal.ts +2 -3
- package/dist/chunk-2JAX6WE6.mjs.map +0 -1
- package/dist/chunk-DCTJZ742.mjs.map +0 -1
- package/dist/chunk-JLQZVKFX.mjs.map +0 -1
- package/dist/chunk-L7CWMU4O.mjs.map +0 -1
- package/dist/chunk-PRKL7T7P.mjs.map +0 -1
- /package/dist/{chunk-57MBVQPX.mjs.map → chunk-3RHHNUVV.mjs.map} +0 -0
- /package/dist/{chunk-AC2GVFW6.mjs.map → chunk-6EKLRL7B.mjs.map} +0 -0
- /package/dist/{chunk-EQQSE6KM.mjs.map → chunk-CLMDRYEN.mjs.map} +0 -0
- /package/dist/{chunk-XIHAYU6C.mjs.map → chunk-FTP6FDYS.mjs.map} +0 -0
- /package/dist/{chunk-AVMA2MCW.mjs.map → chunk-GEKWHETN.mjs.map} +0 -0
- /package/dist/{chunk-OL3VRQKU.mjs.map → chunk-IN7GE4NO.mjs.map} +0 -0
- /package/dist/{chunk-G7J6NY5J.mjs.map → chunk-K4HXT453.mjs.map} +0 -0
- /package/dist/{chunk-BBK7LXZ6.mjs.map → chunk-KH27ZS4Y.mjs.map} +0 -0
- /package/dist/{chunk-PQ5IXT4Z.mjs.map → chunk-MWHILKQH.mjs.map} +0 -0
- /package/dist/{chunk-2WYJIO6D.mjs.map → chunk-OPRDTF4S.mjs.map} +0 -0
- /package/dist/{chunk-5JL5ELUS.mjs.map → chunk-VH45SC6Z.mjs.map} +0 -0
- /package/dist/{chunk-373NOCJI.mjs.map → chunk-VSH4JSN3.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import "../chunk-KDAZGZ24.mjs";
|
|
2
2
|
import {
|
|
3
3
|
useCopilotReadable
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6EKLRL7B.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useLangGraphInterrupt
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-FTP6FDYS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
useMakeCopilotDocumentReadable
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-CLMDRYEN.mjs";
|
|
11
11
|
import {
|
|
12
12
|
useCoAgentStateRender
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-GEKWHETN.mjs";
|
|
14
14
|
import {
|
|
15
15
|
runAgent,
|
|
16
16
|
startAgent,
|
|
17
17
|
stopAgent,
|
|
18
18
|
useCoAgent
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-TTI4Z6GK.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useCopilotAdditionalInstructions
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-3RHHNUVV.mjs";
|
|
23
23
|
import {
|
|
24
24
|
useCopilotAuthenticatedAction_c
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-K4HXT453.mjs";
|
|
26
26
|
import {
|
|
27
27
|
useCopilotAction
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-OPRDTF4S.mjs";
|
|
29
29
|
import {
|
|
30
30
|
useCopilotChatLight
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-MWHILKQH.mjs";
|
|
32
32
|
import {
|
|
33
33
|
useCopilotChat as useCopilotChat2
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-VSH4JSN3.mjs";
|
|
35
35
|
import {
|
|
36
36
|
useCopilotChat
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-GRCHDHC4.mjs";
|
|
38
38
|
import {
|
|
39
39
|
useLangGraphInterruptRender
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
} from "../chunk-IN7GE4NO.mjs";
|
|
41
|
+
import "../chunk-KH27ZS4Y.mjs";
|
|
42
42
|
import "../chunk-4CEQJ2X6.mjs";
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-PHIMGB3K.mjs";
|
|
44
|
+
import "../chunk-MUDXTKXE.mjs";
|
|
45
45
|
import "../chunk-ZTZJIDRJ.mjs";
|
|
46
46
|
import "../chunk-2IDV5OHF.mjs";
|
|
47
47
|
import "../chunk-PMAFHQ7P.mjs";
|
|
@@ -56,8 +56,8 @@ import "../chunk-O7ARI5CV.mjs";
|
|
|
56
56
|
import "../chunk-EFL5OBKN.mjs";
|
|
57
57
|
import "../chunk-AWFAFFO5.mjs";
|
|
58
58
|
import "../chunk-YPSGKPDA.mjs";
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
59
|
+
import "../chunk-TEMLWRRT.mjs";
|
|
60
|
+
import "../chunk-ZLQVRPDS.mjs";
|
|
61
61
|
import "../chunk-SKC7AJIV.mjs";
|
|
62
62
|
export {
|
|
63
63
|
runAgent,
|
package/dist/hooks/use-chat.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
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-256f9020.js';
|
|
5
5
|
import { FrontendAction } from '../types/frontend-action.js';
|
|
6
6
|
import { CoagentState } from '../types/coagent-state.js';
|
|
7
|
-
import '../context/copilot-messages-context.js';
|
|
8
7
|
import './use-tree.js';
|
|
9
8
|
import '../types/document-pointer.js';
|
|
10
9
|
import '../types/chat-suggestion-configuration.js';
|
package/dist/hooks/use-chat.js
CHANGED
|
@@ -187,11 +187,8 @@ var emptyCopilotContext = {
|
|
|
187
187
|
setLangGraphInterruptAction: () => null,
|
|
188
188
|
removeLangGraphInterruptAction: () => null,
|
|
189
189
|
onError: void 0,
|
|
190
|
-
suggestions: [],
|
|
191
190
|
bannerError: null,
|
|
192
191
|
setBannerError: () => {
|
|
193
|
-
},
|
|
194
|
-
setSuggestions: () => {
|
|
195
192
|
}
|
|
196
193
|
};
|
|
197
194
|
var CopilotContext = import_react.default.createContext(emptyCopilotContext);
|