@copilotkit/react-core 1.9.2-next.20 → 1.9.2-next.22
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-MTAJI7HV.mjs → chunk-6ZLSC4KB.mjs} +20 -15
- package/dist/chunk-6ZLSC4KB.mjs.map +1 -0
- package/dist/{chunk-R2LNRHJP.mjs → chunk-BSAVFYRQ.mjs} +5 -5
- package/dist/{chunk-R2LNRHJP.mjs.map → chunk-BSAVFYRQ.mjs.map} +1 -1
- package/dist/{chunk-3SLA7Q2N.mjs → chunk-CUAFWKTQ.mjs} +4 -4
- package/dist/{chunk-K42OD3J6.mjs → chunk-GEE5AMYL.mjs} +8 -8
- package/dist/{chunk-KWQPQ4MM.mjs → chunk-GIMSRCVW.mjs} +6 -6
- package/dist/{chunk-ZOMEQ3XC.mjs → chunk-KLENTCQV.mjs} +33 -7
- package/dist/{chunk-ZOMEQ3XC.mjs.map → chunk-KLENTCQV.mjs.map} +1 -1
- package/dist/{chunk-UGJGKBFB.mjs → chunk-NGQN3JRJ.mjs} +2 -2
- package/dist/{chunk-SJJNFYGQ.mjs → chunk-SGF6C7I6.mjs} +4 -4
- package/dist/components/copilot-provider/copilot-messages.js +1 -1
- 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.js +1 -1
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +8 -8
- package/dist/components/copilot-provider/index.js +1 -1
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +8 -8
- package/dist/components/error-boundary/error-boundary.mjs +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +8 -8
- package/dist/context/index.mjs +4 -4
- package/dist/hooks/index.js +42 -11
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +14 -14
- package/dist/hooks/use-chat.js +16 -11
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +3 -3
- package/dist/hooks/use-coagent.js +42 -11
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +13 -13
- package/dist/hooks/use-copilot-chat.js +16 -11
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +12 -12
- package/dist/hooks/use-langgraph-interrupt-render.mjs +1 -1
- package/dist/hooks/use-langgraph-interrupt.js +16 -11
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +13 -13
- package/dist/index.js +43 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/lib/copilot-task.mjs +10 -10
- package/dist/lib/index.mjs +10 -10
- package/dist/setupTests.d.ts +2 -0
- package/dist/setupTests.js +26 -0
- package/dist/setupTests.js.map +1 -0
- package/dist/setupTests.mjs +24 -0
- package/dist/setupTests.mjs.map +1 -0
- package/dist/utils/extract.mjs +8 -8
- package/dist/utils/index.mjs +8 -8
- package/jest.config.js +4 -0
- package/package.json +6 -3
- package/src/components/copilot-provider/copilot-messages.tsx +1 -1
- package/src/hooks/__tests__/use-coagent-config.test.ts +284 -0
- package/src/hooks/use-chat.ts +2 -0
- package/src/hooks/use-coagent.ts +36 -0
- package/src/setupTests.ts +26 -0
- package/tsconfig.json +2 -2
- package/dist/chunk-MTAJI7HV.mjs.map +0 -1
- /package/dist/{chunk-3SLA7Q2N.mjs.map → chunk-CUAFWKTQ.mjs.map} +0 -0
- /package/dist/{chunk-K42OD3J6.mjs.map → chunk-GEE5AMYL.mjs.map} +0 -0
- /package/dist/{chunk-KWQPQ4MM.mjs.map → chunk-GIMSRCVW.mjs.map} +0 -0
- /package/dist/{chunk-UGJGKBFB.mjs.map → chunk-NGQN3JRJ.mjs.map} +0 -0
- /package/dist/{chunk-SJJNFYGQ.mjs.map → chunk-SGF6C7I6.mjs.map} +0 -0
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
startAgent,
|
|
4
4
|
stopAgent,
|
|
5
5
|
useCoAgent
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-KLENTCQV.mjs";
|
|
7
|
+
import "../chunk-GEE5AMYL.mjs";
|
|
8
|
+
import "../chunk-6ZLSC4KB.mjs";
|
|
9
|
+
import "../chunk-4CEQJ2X6.mjs";
|
|
10
|
+
import "../chunk-GIMSRCVW.mjs";
|
|
11
|
+
import "../chunk-SGF6C7I6.mjs";
|
|
12
|
+
import "../chunk-BSAVFYRQ.mjs";
|
|
13
|
+
import "../chunk-PMAFHQ7P.mjs";
|
|
11
14
|
import "../chunk-5FHSUKQL.mjs";
|
|
12
15
|
import "../chunk-RKTVJRK7.mjs";
|
|
13
|
-
import "../chunk-PMAFHQ7P.mjs";
|
|
14
|
-
import "../chunk-57K2ZJ5F.mjs";
|
|
15
|
-
import "../chunk-YPSGKPDA.mjs";
|
|
16
|
-
import "../chunk-DCTJZ742.mjs";
|
|
17
|
-
import "../chunk-MTAJI7HV.mjs";
|
|
18
|
-
import "../chunk-4CEQJ2X6.mjs";
|
|
19
|
-
import "../chunk-3OQM3NEK.mjs";
|
|
20
|
-
import "../chunk-O7ARI5CV.mjs";
|
|
21
16
|
import "../chunk-JWAXDYOW.mjs";
|
|
22
17
|
import "../chunk-GFJW4RIM.mjs";
|
|
18
|
+
import "../chunk-3OQM3NEK.mjs";
|
|
19
|
+
import "../chunk-O7ARI5CV.mjs";
|
|
23
20
|
import "../chunk-YAF2LATQ.mjs";
|
|
21
|
+
import "../chunk-57K2ZJ5F.mjs";
|
|
22
|
+
import "../chunk-YPSGKPDA.mjs";
|
|
24
23
|
import "../chunk-DKZTPL66.mjs";
|
|
24
|
+
import "../chunk-DCTJZ742.mjs";
|
|
25
25
|
import "../chunk-SKC7AJIV.mjs";
|
|
26
26
|
export {
|
|
27
27
|
runAgent,
|
|
@@ -745,17 +745,22 @@ function useChat(options) {
|
|
|
745
745
|
lastAgentStateMessage.state.messages
|
|
746
746
|
);
|
|
747
747
|
}
|
|
748
|
-
setCoagentStatesWithRef((prevAgentStates) =>
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
748
|
+
setCoagentStatesWithRef((prevAgentStates) => {
|
|
749
|
+
var _a2;
|
|
750
|
+
return __spreadProps(__spreadValues({}, prevAgentStates), {
|
|
751
|
+
[lastAgentStateMessage.agentName]: {
|
|
752
|
+
name: lastAgentStateMessage.agentName,
|
|
753
|
+
state: lastAgentStateMessage.state,
|
|
754
|
+
running: lastAgentStateMessage.running,
|
|
755
|
+
active: lastAgentStateMessage.active,
|
|
756
|
+
threadId: lastAgentStateMessage.threadId,
|
|
757
|
+
nodeName: lastAgentStateMessage.nodeName,
|
|
758
|
+
runId: lastAgentStateMessage.runId,
|
|
759
|
+
// Preserve existing config from previous state
|
|
760
|
+
config: (_a2 = prevAgentStates[lastAgentStateMessage.agentName]) == null ? void 0 : _a2.config
|
|
761
|
+
}
|
|
762
|
+
});
|
|
763
|
+
});
|
|
759
764
|
if (lastAgentStateMessage.running) {
|
|
760
765
|
setAgentSession({
|
|
761
766
|
threadId: lastAgentStateMessage.threadId,
|