@copilotkit/react-core 1.8.0-next.4 → 1.8.0-next.6
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-7L3NZ62H.mjs → chunk-37LXOL6B.mjs} +4 -4
- package/dist/{chunk-EB77GXMQ.mjs → chunk-4X4XFBC6.mjs} +2 -2
- package/dist/{chunk-Z4SDDTES.mjs → chunk-6HMRMQAY.mjs} +2 -2
- package/dist/chunk-6YOKPWQ7.mjs +1 -0
- package/dist/{chunk-KCRH7G5P.mjs → chunk-EQKY54K4.mjs} +5 -5
- package/dist/{chunk-TAN6RACT.mjs → chunk-HVYGZYF3.mjs} +5 -5
- package/dist/{chunk-N6WQJXNP.mjs → chunk-PRWPZCKZ.mjs} +7 -7
- package/dist/chunk-YPBKY4KY.mjs +1 -0
- package/dist/chunk-YPBKY4KY.mjs.map +1 -0
- package/dist/components/copilot-provider/copilot-messages.mjs +2 -2
- package/dist/components/copilot-provider/copilotkit.mjs +5 -5
- package/dist/components/copilot-provider/index.mjs +5 -5
- package/dist/components/index.mjs +5 -5
- package/dist/context/index.mjs +4 -4
- package/dist/hooks/index.mjs +24 -24
- package/dist/hooks/use-coagent.mjs +8 -8
- package/dist/hooks/use-copilot-chat.mjs +7 -7
- package/dist/hooks/use-langgraph-interrupt-render.mjs +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +8 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +30 -29
- package/dist/lib/copilot-task.mjs +6 -6
- package/dist/lib/index.mjs +6 -6
- package/dist/types/crew.d.ts +79 -0
- package/dist/types/crew.js +19 -0
- package/dist/types/crew.js.map +1 -0
- package/dist/types/crew.mjs +2 -0
- package/dist/types/crew.mjs.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +2 -1
- package/dist/utils/extract.mjs +5 -5
- package/dist/utils/index.mjs +5 -5
- package/package.json +3 -3
- package/src/types/crew.ts +89 -0
- package/src/types/index.ts +2 -0
- package/dist/chunk-EFZPSZWO.mjs +0 -1
- /package/dist/{chunk-7L3NZ62H.mjs.map → chunk-37LXOL6B.mjs.map} +0 -0
- /package/dist/{chunk-EB77GXMQ.mjs.map → chunk-4X4XFBC6.mjs.map} +0 -0
- /package/dist/{chunk-Z4SDDTES.mjs.map → chunk-6HMRMQAY.mjs.map} +0 -0
- /package/dist/{chunk-EFZPSZWO.mjs.map → chunk-6YOKPWQ7.mjs.map} +0 -0
- /package/dist/{chunk-KCRH7G5P.mjs.map → chunk-EQKY54K4.mjs.map} +0 -0
- /package/dist/{chunk-TAN6RACT.mjs.map → chunk-HVYGZYF3.mjs.map} +0 -0
- /package/dist/{chunk-N6WQJXNP.mjs.map → chunk-PRWPZCKZ.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
+
## 1.8.0-next.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @copilotkit/runtime-client-gql@1.8.0-next.6
|
|
8
|
+
- @copilotkit/shared@1.8.0-next.6
|
|
9
|
+
|
|
10
|
+
## 1.8.0-next.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- a50f4c1: - move default components out of ui
|
|
15
|
+
- @copilotkit/runtime-client-gql@1.8.0-next.5
|
|
16
|
+
- @copilotkit/shared@1.8.0-next.5
|
|
17
|
+
|
|
3
18
|
## 1.8.0-next.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CopilotMessagesContext
|
|
3
|
-
} from "./chunk-DCTJZ742.mjs";
|
|
4
1
|
import {
|
|
5
2
|
useCopilotContext
|
|
6
3
|
} from "./chunk-PTSWFERP.mjs";
|
|
4
|
+
import {
|
|
5
|
+
CopilotMessagesContext
|
|
6
|
+
} from "./chunk-DCTJZ742.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__async
|
|
9
9
|
} from "./chunk-SKC7AJIV.mjs";
|
|
@@ -60,4 +60,4 @@ function CopilotMessages({ children }) {
|
|
|
60
60
|
export {
|
|
61
61
|
CopilotMessages
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-37LXOL6B.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultCopilotContextCategories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PRWPZCKZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
processActionsForRuntimeRequest
|
|
6
6
|
} from "./chunk-4CEQJ2X6.mjs";
|
|
@@ -117,4 +117,4 @@ ${instructions}
|
|
|
117
117
|
export {
|
|
118
118
|
CopilotTask
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-4X4XFBC6.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopilotChat
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EQKY54K4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
CopilotContext
|
|
6
6
|
} from "./chunk-PTSWFERP.mjs";
|
|
@@ -62,4 +62,4 @@ function useLangGraphInterrupt(action, dependencies) {
|
|
|
62
62
|
export {
|
|
63
63
|
useLangGraphInterrupt
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-6HMRMQAY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-6YOKPWQ7.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultCopilotContextCategories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PRWPZCKZ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useCopilotContext
|
|
6
|
+
} from "./chunk-PTSWFERP.mjs";
|
|
4
7
|
import {
|
|
5
8
|
useCopilotMessagesContext
|
|
6
9
|
} from "./chunk-DCTJZ742.mjs";
|
|
7
10
|
import {
|
|
8
11
|
useChat
|
|
9
12
|
} from "./chunk-FUO5LKSJ.mjs";
|
|
10
|
-
import {
|
|
11
|
-
useCopilotContext
|
|
12
|
-
} from "./chunk-PTSWFERP.mjs";
|
|
13
13
|
import {
|
|
14
14
|
useAsyncCallback
|
|
15
15
|
} from "./chunk-22ENANUU.mjs";
|
|
@@ -222,4 +222,4 @@ export {
|
|
|
222
222
|
useCopilotChat,
|
|
223
223
|
defaultSystemMessage
|
|
224
224
|
};
|
|
225
|
-
//# sourceMappingURL=chunk-
|
|
225
|
+
//# sourceMappingURL=chunk-EQKY54K4.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopilotChat
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EQKY54K4.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useCopilotContext
|
|
6
|
+
} from "./chunk-PTSWFERP.mjs";
|
|
4
7
|
import {
|
|
5
8
|
useCopilotMessagesContext
|
|
6
9
|
} from "./chunk-DCTJZ742.mjs";
|
|
7
10
|
import {
|
|
8
11
|
useCopilotRuntimeClient
|
|
9
12
|
} from "./chunk-BKTARDXX.mjs";
|
|
10
|
-
import {
|
|
11
|
-
useCopilotContext
|
|
12
|
-
} from "./chunk-PTSWFERP.mjs";
|
|
13
13
|
import {
|
|
14
14
|
useAsyncCallback,
|
|
15
15
|
useToast
|
|
@@ -199,4 +199,4 @@ export {
|
|
|
199
199
|
stopAgent,
|
|
200
200
|
runAgent
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=chunk-
|
|
202
|
+
//# sourceMappingURL=chunk-HVYGZYF3.mjs.map
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk-MLAS4QUR.mjs";
|
|
7
7
|
import {
|
|
8
8
|
CopilotMessages
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
use_tree_default
|
|
12
|
-
} from "./chunk-6U3UH3KO.mjs";
|
|
9
|
+
} from "./chunk-37LXOL6B.mjs";
|
|
13
10
|
import {
|
|
14
11
|
use_flat_category_store_default
|
|
15
12
|
} from "./chunk-5FHSUKQL.mjs";
|
|
16
13
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
14
|
+
use_tree_default
|
|
15
|
+
} from "./chunk-6U3UH3KO.mjs";
|
|
19
16
|
import {
|
|
20
17
|
CopilotContext
|
|
21
18
|
} from "./chunk-PTSWFERP.mjs";
|
|
19
|
+
import {
|
|
20
|
+
useCopilotRuntimeClient
|
|
21
|
+
} from "./chunk-BKTARDXX.mjs";
|
|
22
22
|
import {
|
|
23
23
|
ToastProvider
|
|
24
24
|
} from "./chunk-22ENANUU.mjs";
|
|
@@ -529,4 +529,4 @@ export {
|
|
|
529
529
|
CopilotKitInternal,
|
|
530
530
|
defaultCopilotContextCategories
|
|
531
531
|
};
|
|
532
|
-
//# sourceMappingURL=chunk-
|
|
532
|
+
//# sourceMappingURL=chunk-PRWPZCKZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-YPBKY4KY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotMessages
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-DCTJZ742.mjs";
|
|
3
|
+
} from "../../chunk-37LXOL6B.mjs";
|
|
5
4
|
import "../../chunk-PTSWFERP.mjs";
|
|
5
|
+
import "../../chunk-DCTJZ742.mjs";
|
|
6
6
|
import "../../chunk-SKC7AJIV.mjs";
|
|
7
7
|
export {
|
|
8
8
|
CopilotMessages
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
CopilotKit,
|
|
3
3
|
CopilotKitInternal,
|
|
4
4
|
defaultCopilotContextCategories
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-PRWPZCKZ.mjs";
|
|
6
6
|
import "../../chunk-534J55RX.mjs";
|
|
7
7
|
import "../../chunk-MLAS4QUR.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-37LXOL6B.mjs";
|
|
9
|
+
import "../../chunk-5FHSUKQL.mjs";
|
|
9
10
|
import "../../chunk-6U3UH3KO.mjs";
|
|
10
11
|
import "../../chunk-PMAFHQ7P.mjs";
|
|
11
|
-
import "../../chunk-5FHSUKQL.mjs";
|
|
12
|
-
import "../../chunk-DCTJZ742.mjs";
|
|
13
12
|
import "../../chunk-D34OH4VN.mjs";
|
|
14
|
-
import "../../chunk-BKTARDXX.mjs";
|
|
15
13
|
import "../../chunk-PTSWFERP.mjs";
|
|
14
|
+
import "../../chunk-DCTJZ742.mjs";
|
|
15
|
+
import "../../chunk-BKTARDXX.mjs";
|
|
16
16
|
import "../../chunk-22ENANUU.mjs";
|
|
17
17
|
import "../../chunk-O7ARI5CV.mjs";
|
|
18
18
|
import "../../chunk-SKC7AJIV.mjs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotKit,
|
|
3
3
|
defaultCopilotContextCategories
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-PRWPZCKZ.mjs";
|
|
5
5
|
import "../../chunk-534J55RX.mjs";
|
|
6
6
|
import "../../chunk-MLAS4QUR.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-37LXOL6B.mjs";
|
|
8
|
+
import "../../chunk-5FHSUKQL.mjs";
|
|
8
9
|
import "../../chunk-6U3UH3KO.mjs";
|
|
9
10
|
import "../../chunk-PMAFHQ7P.mjs";
|
|
10
|
-
import "../../chunk-5FHSUKQL.mjs";
|
|
11
|
-
import "../../chunk-DCTJZ742.mjs";
|
|
12
11
|
import "../../chunk-D34OH4VN.mjs";
|
|
13
|
-
import "../../chunk-BKTARDXX.mjs";
|
|
14
12
|
import "../../chunk-PTSWFERP.mjs";
|
|
13
|
+
import "../../chunk-DCTJZ742.mjs";
|
|
14
|
+
import "../../chunk-BKTARDXX.mjs";
|
|
15
15
|
import "../../chunk-22ENANUU.mjs";
|
|
16
16
|
import "../../chunk-O7ARI5CV.mjs";
|
|
17
17
|
import "../../chunk-SKC7AJIV.mjs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotKit,
|
|
3
3
|
defaultCopilotContextCategories
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PRWPZCKZ.mjs";
|
|
5
5
|
import "../chunk-534J55RX.mjs";
|
|
6
6
|
import "../chunk-MLAS4QUR.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-37LXOL6B.mjs";
|
|
8
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
8
9
|
import "../chunk-6U3UH3KO.mjs";
|
|
9
10
|
import "../chunk-PMAFHQ7P.mjs";
|
|
10
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
11
|
-
import "../chunk-DCTJZ742.mjs";
|
|
12
11
|
import "../chunk-D34OH4VN.mjs";
|
|
13
|
-
import "../chunk-BKTARDXX.mjs";
|
|
14
12
|
import "../chunk-PTSWFERP.mjs";
|
|
13
|
+
import "../chunk-DCTJZ742.mjs";
|
|
14
|
+
import "../chunk-BKTARDXX.mjs";
|
|
15
15
|
import "../chunk-22ENANUU.mjs";
|
|
16
16
|
import "../chunk-O7ARI5CV.mjs";
|
|
17
17
|
import "../chunk-SKC7AJIV.mjs";
|
package/dist/context/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-YPSGKPDA.mjs";
|
|
2
|
-
import {
|
|
3
|
-
CopilotMessagesContext,
|
|
4
|
-
useCopilotMessagesContext
|
|
5
|
-
} from "../chunk-DCTJZ742.mjs";
|
|
6
2
|
import {
|
|
7
3
|
CopilotContext,
|
|
8
4
|
useCopilotContext
|
|
9
5
|
} from "../chunk-PTSWFERP.mjs";
|
|
6
|
+
import {
|
|
7
|
+
CopilotMessagesContext,
|
|
8
|
+
useCopilotMessagesContext
|
|
9
|
+
} from "../chunk-DCTJZ742.mjs";
|
|
10
10
|
import "../chunk-SKC7AJIV.mjs";
|
|
11
11
|
export {
|
|
12
12
|
CopilotContext,
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import "../chunk-CQPYJIBH.mjs";
|
|
2
|
-
import {
|
|
3
|
-
useMakeCopilotDocumentReadable
|
|
4
|
-
} from "../chunk-JHPCDBBM.mjs";
|
|
5
|
-
import {
|
|
6
|
-
useCopilotAdditionalInstructions
|
|
7
|
-
} from "../chunk-O3IIH54P.mjs";
|
|
8
|
-
import {
|
|
9
|
-
useCopilotAuthenticatedAction_c
|
|
10
|
-
} from "../chunk-YI7LPACV.mjs";
|
|
11
|
-
import {
|
|
12
|
-
useCopilotReadable
|
|
13
|
-
} from "../chunk-AT4ALBK4.mjs";
|
|
14
2
|
import {
|
|
15
3
|
useLangGraphInterruptRender
|
|
16
4
|
} from "../chunk-7XNZHQWJ.mjs";
|
|
17
5
|
import {
|
|
18
6
|
useLangGraphInterrupt
|
|
19
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-6HMRMQAY.mjs";
|
|
8
|
+
import {
|
|
9
|
+
useMakeCopilotDocumentReadable
|
|
10
|
+
} from "../chunk-JHPCDBBM.mjs";
|
|
20
11
|
import {
|
|
21
12
|
useCoAgentStateRender
|
|
22
13
|
} from "../chunk-SGXCSXCK.mjs";
|
|
@@ -25,29 +16,38 @@ import {
|
|
|
25
16
|
startAgent,
|
|
26
17
|
stopAgent,
|
|
27
18
|
useCoAgent
|
|
28
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-HVYGZYF3.mjs";
|
|
20
|
+
import {
|
|
21
|
+
useCopilotAdditionalInstructions
|
|
22
|
+
} from "../chunk-O3IIH54P.mjs";
|
|
23
|
+
import {
|
|
24
|
+
useCopilotAuthenticatedAction_c
|
|
25
|
+
} from "../chunk-YI7LPACV.mjs";
|
|
26
|
+
import {
|
|
27
|
+
useCopilotAction
|
|
28
|
+
} from "../chunk-NY3BUYYZ.mjs";
|
|
29
29
|
import {
|
|
30
30
|
useCopilotChat
|
|
31
|
-
} from "../chunk-
|
|
32
|
-
import
|
|
33
|
-
|
|
31
|
+
} from "../chunk-EQKY54K4.mjs";
|
|
32
|
+
import {
|
|
33
|
+
useCopilotReadable
|
|
34
|
+
} from "../chunk-AT4ALBK4.mjs";
|
|
35
|
+
import "../chunk-PRWPZCKZ.mjs";
|
|
34
36
|
import "../chunk-534J55RX.mjs";
|
|
35
37
|
import "../chunk-MLAS4QUR.mjs";
|
|
36
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-37LXOL6B.mjs";
|
|
39
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
37
40
|
import "../chunk-6U3UH3KO.mjs";
|
|
38
41
|
import "../chunk-PMAFHQ7P.mjs";
|
|
39
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
40
|
-
import "../chunk-DCTJZ742.mjs";
|
|
41
42
|
import "../chunk-D34OH4VN.mjs";
|
|
43
|
+
import "../chunk-YPSGKPDA.mjs";
|
|
44
|
+
import "../chunk-PTSWFERP.mjs";
|
|
45
|
+
import "../chunk-DCTJZ742.mjs";
|
|
42
46
|
import "../chunk-FUO5LKSJ.mjs";
|
|
43
47
|
import "../chunk-4CEQJ2X6.mjs";
|
|
44
48
|
import {
|
|
45
49
|
useCopilotRuntimeClient
|
|
46
50
|
} from "../chunk-BKTARDXX.mjs";
|
|
47
|
-
import {
|
|
48
|
-
useCopilotAction
|
|
49
|
-
} from "../chunk-NY3BUYYZ.mjs";
|
|
50
|
-
import "../chunk-PTSWFERP.mjs";
|
|
51
51
|
import "../chunk-22ENANUU.mjs";
|
|
52
52
|
import "../chunk-O7ARI5CV.mjs";
|
|
53
53
|
import "../chunk-SKC7AJIV.mjs";
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
startAgent,
|
|
4
4
|
stopAgent,
|
|
5
5
|
useCoAgent
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-N6WQJXNP.mjs";
|
|
6
|
+
} from "../chunk-HVYGZYF3.mjs";
|
|
7
|
+
import "../chunk-EQKY54K4.mjs";
|
|
8
|
+
import "../chunk-PRWPZCKZ.mjs";
|
|
10
9
|
import "../chunk-534J55RX.mjs";
|
|
11
10
|
import "../chunk-MLAS4QUR.mjs";
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-37LXOL6B.mjs";
|
|
12
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
13
13
|
import "../chunk-6U3UH3KO.mjs";
|
|
14
14
|
import "../chunk-PMAFHQ7P.mjs";
|
|
15
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
16
|
-
import "../chunk-DCTJZ742.mjs";
|
|
17
15
|
import "../chunk-D34OH4VN.mjs";
|
|
16
|
+
import "../chunk-YPSGKPDA.mjs";
|
|
17
|
+
import "../chunk-PTSWFERP.mjs";
|
|
18
|
+
import "../chunk-DCTJZ742.mjs";
|
|
18
19
|
import "../chunk-FUO5LKSJ.mjs";
|
|
19
20
|
import "../chunk-4CEQJ2X6.mjs";
|
|
20
21
|
import "../chunk-BKTARDXX.mjs";
|
|
21
|
-
import "../chunk-PTSWFERP.mjs";
|
|
22
22
|
import "../chunk-22ENANUU.mjs";
|
|
23
23
|
import "../chunk-O7ARI5CV.mjs";
|
|
24
24
|
import "../chunk-SKC7AJIV.mjs";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultSystemMessage,
|
|
3
3
|
useCopilotChat
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-N6WQJXNP.mjs";
|
|
4
|
+
} from "../chunk-EQKY54K4.mjs";
|
|
5
|
+
import "../chunk-PRWPZCKZ.mjs";
|
|
7
6
|
import "../chunk-534J55RX.mjs";
|
|
8
7
|
import "../chunk-MLAS4QUR.mjs";
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-37LXOL6B.mjs";
|
|
9
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
10
10
|
import "../chunk-6U3UH3KO.mjs";
|
|
11
11
|
import "../chunk-PMAFHQ7P.mjs";
|
|
12
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
13
|
-
import "../chunk-DCTJZ742.mjs";
|
|
14
12
|
import "../chunk-D34OH4VN.mjs";
|
|
13
|
+
import "../chunk-YPSGKPDA.mjs";
|
|
14
|
+
import "../chunk-PTSWFERP.mjs";
|
|
15
|
+
import "../chunk-DCTJZ742.mjs";
|
|
15
16
|
import "../chunk-FUO5LKSJ.mjs";
|
|
16
17
|
import "../chunk-4CEQJ2X6.mjs";
|
|
17
18
|
import "../chunk-BKTARDXX.mjs";
|
|
18
|
-
import "../chunk-PTSWFERP.mjs";
|
|
19
19
|
import "../chunk-22ENANUU.mjs";
|
|
20
20
|
import "../chunk-O7ARI5CV.mjs";
|
|
21
21
|
import "../chunk-SKC7AJIV.mjs";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
useLangGraphInterruptRender
|
|
3
3
|
} from "../chunk-7XNZHQWJ.mjs";
|
|
4
4
|
import "../chunk-YPSGKPDA.mjs";
|
|
5
|
-
import "../chunk-DCTJZ742.mjs";
|
|
6
5
|
import "../chunk-PTSWFERP.mjs";
|
|
6
|
+
import "../chunk-DCTJZ742.mjs";
|
|
7
7
|
import "../chunk-SKC7AJIV.mjs";
|
|
8
8
|
export {
|
|
9
9
|
useLangGraphInterruptRender
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useLangGraphInterrupt
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-N6WQJXNP.mjs";
|
|
3
|
+
} from "../chunk-6HMRMQAY.mjs";
|
|
4
|
+
import "../chunk-EQKY54K4.mjs";
|
|
5
|
+
import "../chunk-PRWPZCKZ.mjs";
|
|
7
6
|
import "../chunk-534J55RX.mjs";
|
|
8
7
|
import "../chunk-MLAS4QUR.mjs";
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-37LXOL6B.mjs";
|
|
9
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
10
10
|
import "../chunk-6U3UH3KO.mjs";
|
|
11
11
|
import "../chunk-PMAFHQ7P.mjs";
|
|
12
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
13
|
-
import "../chunk-DCTJZ742.mjs";
|
|
14
12
|
import "../chunk-D34OH4VN.mjs";
|
|
13
|
+
import "../chunk-YPSGKPDA.mjs";
|
|
14
|
+
import "../chunk-PTSWFERP.mjs";
|
|
15
|
+
import "../chunk-DCTJZ742.mjs";
|
|
15
16
|
import "../chunk-FUO5LKSJ.mjs";
|
|
16
17
|
import "../chunk-4CEQJ2X6.mjs";
|
|
17
18
|
import "../chunk-BKTARDXX.mjs";
|
|
18
|
-
import "../chunk-PTSWFERP.mjs";
|
|
19
19
|
import "../chunk-22ENANUU.mjs";
|
|
20
20
|
import "../chunk-O7ARI5CV.mjs";
|
|
21
21
|
import "../chunk-SKC7AJIV.mjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export { DocumentPointer } from './types/document-pointer.js';
|
|
|
18
18
|
export { SystemMessageFunction } from './types/system-message.js';
|
|
19
19
|
export { ActionRenderProps, ActionRenderPropsNoArgs, ActionRenderPropsNoArgsWait, ActionRenderPropsWait, CatchAllActionRenderProps, CatchAllFrontendAction, FrontendAction, FrontendActionAvailability, RenderFunctionStatus } from './types/frontend-action.js';
|
|
20
20
|
export { CopilotChatSuggestionConfiguration } from './types/chat-suggestion-configuration.js';
|
|
21
|
+
export { CrewsAgentState, CrewsResponse, CrewsResponseStatus, CrewsStateItem, CrewsTaskStateItem, CrewsToolStateItem } from './types/crew.js';
|
|
21
22
|
export { CopilotTask, CopilotTaskConfig } from './lib/copilot-task.js';
|
|
22
23
|
export { extract } from './utils/extract.js';
|
|
23
24
|
export { shouldShowDevConsole } from './utils/dev-console.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-YPBKY4KY.mjs";
|
|
3
|
+
import "./chunk-6YOKPWQ7.mjs";
|
|
3
4
|
import "./chunk-LUGEI4YQ.mjs";
|
|
4
5
|
import {
|
|
5
6
|
CopilotTask
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4X4XFBC6.mjs";
|
|
7
8
|
import "./chunk-CQPYJIBH.mjs";
|
|
8
|
-
import {
|
|
9
|
-
useMakeCopilotDocumentReadable
|
|
10
|
-
} from "./chunk-JHPCDBBM.mjs";
|
|
11
|
-
import {
|
|
12
|
-
useCopilotAdditionalInstructions
|
|
13
|
-
} from "./chunk-O3IIH54P.mjs";
|
|
14
|
-
import {
|
|
15
|
-
useCopilotAuthenticatedAction_c
|
|
16
|
-
} from "./chunk-YI7LPACV.mjs";
|
|
17
|
-
import {
|
|
18
|
-
useCopilotReadable
|
|
19
|
-
} from "./chunk-AT4ALBK4.mjs";
|
|
20
9
|
import {
|
|
21
10
|
useLangGraphInterruptRender
|
|
22
11
|
} from "./chunk-7XNZHQWJ.mjs";
|
|
23
12
|
import {
|
|
24
13
|
useLangGraphInterrupt
|
|
25
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6HMRMQAY.mjs";
|
|
15
|
+
import {
|
|
16
|
+
useMakeCopilotDocumentReadable
|
|
17
|
+
} from "./chunk-JHPCDBBM.mjs";
|
|
26
18
|
import {
|
|
27
19
|
useCoAgentStateRender
|
|
28
20
|
} from "./chunk-SGXCSXCK.mjs";
|
|
@@ -31,41 +23,50 @@ import {
|
|
|
31
23
|
startAgent,
|
|
32
24
|
stopAgent,
|
|
33
25
|
useCoAgent
|
|
34
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HVYGZYF3.mjs";
|
|
27
|
+
import {
|
|
28
|
+
useCopilotAdditionalInstructions
|
|
29
|
+
} from "./chunk-O3IIH54P.mjs";
|
|
30
|
+
import {
|
|
31
|
+
useCopilotAuthenticatedAction_c
|
|
32
|
+
} from "./chunk-YI7LPACV.mjs";
|
|
33
|
+
import {
|
|
34
|
+
useCopilotAction
|
|
35
|
+
} from "./chunk-NY3BUYYZ.mjs";
|
|
35
36
|
import {
|
|
36
37
|
useCopilotChat
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import
|
|
38
|
+
} from "./chunk-EQKY54K4.mjs";
|
|
39
|
+
import {
|
|
40
|
+
useCopilotReadable
|
|
41
|
+
} from "./chunk-AT4ALBK4.mjs";
|
|
39
42
|
import {
|
|
40
43
|
CopilotKit,
|
|
41
44
|
defaultCopilotContextCategories,
|
|
42
45
|
extract
|
|
43
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-PRWPZCKZ.mjs";
|
|
44
47
|
import "./chunk-534J55RX.mjs";
|
|
45
48
|
import {
|
|
46
49
|
shouldShowDevConsole
|
|
47
50
|
} from "./chunk-MLAS4QUR.mjs";
|
|
48
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-37LXOL6B.mjs";
|
|
52
|
+
import "./chunk-5FHSUKQL.mjs";
|
|
49
53
|
import "./chunk-6U3UH3KO.mjs";
|
|
50
54
|
import "./chunk-PMAFHQ7P.mjs";
|
|
51
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-D34OH4VN.mjs";
|
|
56
|
+
import "./chunk-YPSGKPDA.mjs";
|
|
57
|
+
import {
|
|
58
|
+
CopilotContext,
|
|
59
|
+
useCopilotContext
|
|
60
|
+
} from "./chunk-PTSWFERP.mjs";
|
|
52
61
|
import {
|
|
53
62
|
CopilotMessagesContext,
|
|
54
63
|
useCopilotMessagesContext
|
|
55
64
|
} from "./chunk-DCTJZ742.mjs";
|
|
56
|
-
import "./chunk-D34OH4VN.mjs";
|
|
57
65
|
import "./chunk-FUO5LKSJ.mjs";
|
|
58
66
|
import "./chunk-4CEQJ2X6.mjs";
|
|
59
67
|
import {
|
|
60
68
|
useCopilotRuntimeClient
|
|
61
69
|
} from "./chunk-BKTARDXX.mjs";
|
|
62
|
-
import {
|
|
63
|
-
useCopilotAction
|
|
64
|
-
} from "./chunk-NY3BUYYZ.mjs";
|
|
65
|
-
import {
|
|
66
|
-
CopilotContext,
|
|
67
|
-
useCopilotContext
|
|
68
|
-
} from "./chunk-PTSWFERP.mjs";
|
|
69
70
|
import "./chunk-22ENANUU.mjs";
|
|
70
71
|
import "./chunk-O7ARI5CV.mjs";
|
|
71
72
|
import "./chunk-SKC7AJIV.mjs";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotTask
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4X4XFBC6.mjs";
|
|
4
|
+
import "../chunk-PRWPZCKZ.mjs";
|
|
5
5
|
import "../chunk-534J55RX.mjs";
|
|
6
6
|
import "../chunk-MLAS4QUR.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-37LXOL6B.mjs";
|
|
8
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
8
9
|
import "../chunk-6U3UH3KO.mjs";
|
|
9
10
|
import "../chunk-PMAFHQ7P.mjs";
|
|
10
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
11
|
-
import "../chunk-DCTJZ742.mjs";
|
|
12
11
|
import "../chunk-D34OH4VN.mjs";
|
|
12
|
+
import "../chunk-PTSWFERP.mjs";
|
|
13
|
+
import "../chunk-DCTJZ742.mjs";
|
|
13
14
|
import "../chunk-4CEQJ2X6.mjs";
|
|
14
15
|
import "../chunk-BKTARDXX.mjs";
|
|
15
|
-
import "../chunk-PTSWFERP.mjs";
|
|
16
16
|
import "../chunk-22ENANUU.mjs";
|
|
17
17
|
import "../chunk-O7ARI5CV.mjs";
|
|
18
18
|
import "../chunk-SKC7AJIV.mjs";
|
package/dist/lib/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "../chunk-LUGEI4YQ.mjs";
|
|
2
2
|
import {
|
|
3
3
|
CopilotTask
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-4X4XFBC6.mjs";
|
|
5
|
+
import "../chunk-PRWPZCKZ.mjs";
|
|
6
6
|
import "../chunk-534J55RX.mjs";
|
|
7
7
|
import "../chunk-MLAS4QUR.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-37LXOL6B.mjs";
|
|
9
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
9
10
|
import "../chunk-6U3UH3KO.mjs";
|
|
10
11
|
import "../chunk-PMAFHQ7P.mjs";
|
|
11
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
12
|
-
import "../chunk-DCTJZ742.mjs";
|
|
13
12
|
import "../chunk-D34OH4VN.mjs";
|
|
13
|
+
import "../chunk-PTSWFERP.mjs";
|
|
14
|
+
import "../chunk-DCTJZ742.mjs";
|
|
14
15
|
import "../chunk-4CEQJ2X6.mjs";
|
|
15
16
|
import "../chunk-BKTARDXX.mjs";
|
|
16
|
-
import "../chunk-PTSWFERP.mjs";
|
|
17
17
|
import "../chunk-22ENANUU.mjs";
|
|
18
18
|
import "../chunk-O7ARI5CV.mjs";
|
|
19
19
|
import "../chunk-SKC7AJIV.mjs";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status of a response or action that requires user input
|
|
3
|
+
*/
|
|
4
|
+
type CrewsResponseStatus = "inProgress" | "complete" | "executing";
|
|
5
|
+
/**
|
|
6
|
+
* Response data structure for the ResponseRenderer
|
|
7
|
+
*/
|
|
8
|
+
interface CrewsResponse {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for the response
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* The content of the response to display
|
|
15
|
+
*/
|
|
16
|
+
content: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional metadata for the response
|
|
19
|
+
*/
|
|
20
|
+
metadata?: Record<string, any>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Base state item interface for agent state items
|
|
24
|
+
*/
|
|
25
|
+
interface CrewsStateItem {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for the item
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* Timestamp when the item was created
|
|
32
|
+
*/
|
|
33
|
+
timestamp: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Tool execution state item
|
|
37
|
+
*/
|
|
38
|
+
interface CrewsToolStateItem extends CrewsStateItem {
|
|
39
|
+
/**
|
|
40
|
+
* Name of the tool that was executed
|
|
41
|
+
*/
|
|
42
|
+
tool: string;
|
|
43
|
+
/**
|
|
44
|
+
* Optional thought process for the tool execution
|
|
45
|
+
*/
|
|
46
|
+
thought?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Result of the tool execution
|
|
49
|
+
*/
|
|
50
|
+
result?: any;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Task state item
|
|
54
|
+
*/
|
|
55
|
+
interface CrewsTaskStateItem extends CrewsStateItem {
|
|
56
|
+
/**
|
|
57
|
+
* Name of the task
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Description of the task
|
|
62
|
+
*/
|
|
63
|
+
description?: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* AgentState containing information about steps and tasks
|
|
67
|
+
*/
|
|
68
|
+
interface CrewsAgentState {
|
|
69
|
+
/**
|
|
70
|
+
* Array of tool execution steps
|
|
71
|
+
*/
|
|
72
|
+
steps?: CrewsToolStateItem[];
|
|
73
|
+
/**
|
|
74
|
+
* Array of tasks
|
|
75
|
+
*/
|
|
76
|
+
tasks?: CrewsTaskStateItem[];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export { CrewsAgentState, CrewsResponse, CrewsResponseStatus, CrewsStateItem, CrewsTaskStateItem, CrewsToolStateItem };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types/crew.ts
|
|
17
|
+
var crew_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(crew_exports);
|
|
19
|
+
//# sourceMappingURL=crew.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/crew.ts"],"sourcesContent":["/**\n * Status of a response or action that requires user input\n */\nexport type CrewsResponseStatus = \"inProgress\" | \"complete\" | \"executing\";\n\n/**\n * Response data structure for the ResponseRenderer\n */\nexport interface CrewsResponse {\n /**\n * Unique identifier for the response\n */\n id: string;\n\n /**\n * The content of the response to display\n */\n content: string;\n\n /**\n * Optional metadata for the response\n */\n metadata?: Record<string, any>;\n}\n\n/**\n * Base state item interface for agent state items\n */\nexport interface CrewsStateItem {\n /**\n * Unique identifier for the item\n */\n id: string;\n\n /**\n * Timestamp when the item was created\n */\n timestamp: string;\n}\n\n/**\n * Tool execution state item\n */\nexport interface CrewsToolStateItem extends CrewsStateItem {\n /**\n * Name of the tool that was executed\n */\n tool: string;\n\n /**\n * Optional thought process for the tool execution\n */\n thought?: string;\n\n /**\n * Result of the tool execution\n */\n result?: any;\n}\n\n/**\n * Task state item\n */\nexport interface CrewsTaskStateItem extends CrewsStateItem {\n /**\n * Name of the task\n */\n name: string;\n\n /**\n * Description of the task\n */\n description?: string;\n}\n\n/**\n * AgentState containing information about steps and tasks\n */\nexport interface CrewsAgentState {\n /**\n * Array of tool execution steps\n */\n steps?: CrewsToolStateItem[];\n\n /**\n * Array of tasks\n */\n tasks?: CrewsTaskStateItem[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { DocumentPointer } from './document-pointer.js';
|
|
|
2
2
|
export { SystemMessageFunction } from './system-message.js';
|
|
3
3
|
export { ActionRenderProps, ActionRenderPropsNoArgs, ActionRenderPropsNoArgsWait, ActionRenderPropsWait, CatchAllActionRenderProps, CatchAllFrontendAction, FrontendAction, FrontendActionAvailability, RenderFunctionStatus } from './frontend-action.js';
|
|
4
4
|
export { CopilotChatSuggestionConfiguration } from './chat-suggestion-configuration.js';
|
|
5
|
+
export { CrewsAgentState, CrewsResponse, CrewsResponseStatus, CrewsStateItem, CrewsTaskStateItem, CrewsToolStateItem } from './crew.js';
|
|
5
6
|
import '@copilotkit/runtime-client-gql';
|
|
6
7
|
import '@copilotkit/shared';
|
|
7
8
|
import 'react';
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export type { DocumentPointer } from \"./document-pointer\";\nexport type { SystemMessageFunction } from \"./system-message\";\nexport type {\n ActionRenderProps,\n ActionRenderPropsNoArgs,\n ActionRenderPropsWait,\n ActionRenderPropsNoArgsWait,\n FrontendAction,\n FrontendActionAvailability,\n RenderFunctionStatus,\n CatchAllActionRenderProps,\n CatchAllFrontendAction,\n} from \"./frontend-action\";\nexport type { CopilotChatSuggestionConfiguration } from \"./chat-suggestion-configuration\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export type { DocumentPointer } from \"./document-pointer\";\nexport type { SystemMessageFunction } from \"./system-message\";\nexport type {\n ActionRenderProps,\n ActionRenderPropsNoArgs,\n ActionRenderPropsWait,\n ActionRenderPropsNoArgsWait,\n FrontendAction,\n FrontendActionAvailability,\n RenderFunctionStatus,\n CatchAllActionRenderProps,\n CatchAllFrontendAction,\n} from \"./frontend-action\";\n\nexport type { CopilotChatSuggestionConfiguration } from \"./chat-suggestion-configuration\";\nexport * from \"./crew\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/index.mjs
CHANGED
package/dist/utils/extract.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extract
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-PRWPZCKZ.mjs";
|
|
4
4
|
import "../chunk-534J55RX.mjs";
|
|
5
5
|
import "../chunk-MLAS4QUR.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-37LXOL6B.mjs";
|
|
7
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
7
8
|
import "../chunk-6U3UH3KO.mjs";
|
|
8
9
|
import "../chunk-PMAFHQ7P.mjs";
|
|
9
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
10
|
-
import "../chunk-DCTJZ742.mjs";
|
|
11
10
|
import "../chunk-D34OH4VN.mjs";
|
|
12
|
-
import "../chunk-BKTARDXX.mjs";
|
|
13
11
|
import "../chunk-PTSWFERP.mjs";
|
|
12
|
+
import "../chunk-DCTJZ742.mjs";
|
|
13
|
+
import "../chunk-BKTARDXX.mjs";
|
|
14
14
|
import "../chunk-22ENANUU.mjs";
|
|
15
15
|
import "../chunk-O7ARI5CV.mjs";
|
|
16
16
|
import "../chunk-SKC7AJIV.mjs";
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extract
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-PRWPZCKZ.mjs";
|
|
4
4
|
import "../chunk-534J55RX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
shouldShowDevConsole
|
|
7
7
|
} from "../chunk-MLAS4QUR.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-37LXOL6B.mjs";
|
|
9
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
9
10
|
import "../chunk-6U3UH3KO.mjs";
|
|
10
11
|
import "../chunk-PMAFHQ7P.mjs";
|
|
11
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
12
|
-
import "../chunk-DCTJZ742.mjs";
|
|
13
12
|
import "../chunk-D34OH4VN.mjs";
|
|
14
|
-
import "../chunk-BKTARDXX.mjs";
|
|
15
13
|
import "../chunk-PTSWFERP.mjs";
|
|
14
|
+
import "../chunk-DCTJZ742.mjs";
|
|
15
|
+
import "../chunk-BKTARDXX.mjs";
|
|
16
16
|
import "../chunk-22ENANUU.mjs";
|
|
17
17
|
import "../chunk-O7ARI5CV.mjs";
|
|
18
18
|
import "../chunk-SKC7AJIV.mjs";
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.8.0-next.
|
|
12
|
+
"version": "1.8.0-next.6",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@scarf/scarf": "^1.3.0",
|
|
44
44
|
"react-markdown": "^8.0.7",
|
|
45
45
|
"untruncate-json": "^0.0.1",
|
|
46
|
-
"@copilotkit/runtime-client-gql": "1.8.0-next.
|
|
47
|
-
"@copilotkit/shared": "1.8.0-next.
|
|
46
|
+
"@copilotkit/runtime-client-gql": "1.8.0-next.6",
|
|
47
|
+
"@copilotkit/shared": "1.8.0-next.6"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"copilotkit",
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status of a response or action that requires user input
|
|
3
|
+
*/
|
|
4
|
+
export type CrewsResponseStatus = "inProgress" | "complete" | "executing";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Response data structure for the ResponseRenderer
|
|
8
|
+
*/
|
|
9
|
+
export interface CrewsResponse {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the response
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The content of the response to display
|
|
17
|
+
*/
|
|
18
|
+
content: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Optional metadata for the response
|
|
22
|
+
*/
|
|
23
|
+
metadata?: Record<string, any>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Base state item interface for agent state items
|
|
28
|
+
*/
|
|
29
|
+
export interface CrewsStateItem {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the item
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Timestamp when the item was created
|
|
37
|
+
*/
|
|
38
|
+
timestamp: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Tool execution state item
|
|
43
|
+
*/
|
|
44
|
+
export interface CrewsToolStateItem extends CrewsStateItem {
|
|
45
|
+
/**
|
|
46
|
+
* Name of the tool that was executed
|
|
47
|
+
*/
|
|
48
|
+
tool: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Optional thought process for the tool execution
|
|
52
|
+
*/
|
|
53
|
+
thought?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Result of the tool execution
|
|
57
|
+
*/
|
|
58
|
+
result?: any;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Task state item
|
|
63
|
+
*/
|
|
64
|
+
export interface CrewsTaskStateItem extends CrewsStateItem {
|
|
65
|
+
/**
|
|
66
|
+
* Name of the task
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Description of the task
|
|
72
|
+
*/
|
|
73
|
+
description?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* AgentState containing information about steps and tasks
|
|
78
|
+
*/
|
|
79
|
+
export interface CrewsAgentState {
|
|
80
|
+
/**
|
|
81
|
+
* Array of tool execution steps
|
|
82
|
+
*/
|
|
83
|
+
steps?: CrewsToolStateItem[];
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Array of tasks
|
|
87
|
+
*/
|
|
88
|
+
tasks?: CrewsTaskStateItem[];
|
|
89
|
+
}
|
package/src/types/index.ts
CHANGED
package/dist/chunk-EFZPSZWO.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-EFZPSZWO.mjs.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|