@copilotkit/react-core 0.37.0-mme-pre.0 → 0.37.0-mme-pre.2
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/.turbo/turbo-build.log +156 -156
- package/CHANGELOG.md +25 -3
- package/dist/{chunk-L3LL6N7J.mjs → chunk-2EQGN5QK.mjs} +3 -3
- package/dist/{chunk-BTJD4QON.mjs → chunk-4OIVQMEM.mjs} +3 -3
- package/dist/{chunk-2DKLSG5S.mjs → chunk-B244LK6F.mjs} +2 -2
- package/dist/{chunk-32T4S22Q.mjs → chunk-B2H3NC4E.mjs} +13 -16
- package/dist/chunk-B2H3NC4E.mjs.map +1 -0
- package/dist/{chunk-TW5FS2QT.mjs → chunk-DY63PD22.mjs} +8 -4
- package/dist/chunk-DY63PD22.mjs.map +1 -0
- package/dist/{chunk-S2YA76YW.mjs → chunk-HUKLBIUK.mjs} +42 -24
- package/dist/chunk-HUKLBIUK.mjs.map +1 -0
- package/dist/{chunk-JWANHQCM.mjs → chunk-LLU5URI5.mjs} +11 -4
- package/dist/chunk-LLU5URI5.mjs.map +1 -0
- package/dist/{chunk-7YTDTTX5.mjs → chunk-MJKBCG4U.mjs} +3 -2
- package/dist/chunk-MJKBCG4U.mjs.map +1 -0
- package/dist/{chunk-B5CULQRZ.mjs → chunk-MNZXQ6UH.mjs} +2 -2
- package/dist/{chunk-2C4UBKRR.mjs → chunk-NSUYO6TP.mjs} +2 -2
- package/dist/chunk-NSUYO6TP.mjs.map +1 -0
- package/dist/{chunk-GJGYNK46.mjs → chunk-S5LWO5V3.mjs} +2 -2
- package/dist/{chunk-FHGMPFKO.mjs → chunk-SR4RW4CU.mjs} +2 -2
- package/dist/{chunk-T6UD6AJ2.mjs → chunk-Z5FB4WBL.mjs} +3 -3
- package/dist/components/copilot-provider/copilotkit-props.d.ts +5 -0
- package/dist/components/copilot-provider/copilotkit-props.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.js +16 -5
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +2 -2
- package/dist/components/copilot-provider/index.js +16 -5
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +2 -2
- package/dist/components/index.js +16 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/context/copilot-context.d.ts +11 -2
- package/dist/context/copilot-context.js +7 -3
- package/dist/context/copilot-context.js.map +1 -1
- package/dist/context/copilot-context.mjs +1 -1
- package/dist/context/index.js +7 -3
- package/dist/context/index.js.map +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +56 -36
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +10 -10
- package/dist/hooks/use-chat.d.ts +12 -6
- package/dist/hooks/use-chat.js +12 -14
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +2 -2
- package/dist/hooks/use-copilot-action.js +7 -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-chat.d.ts +37 -15
- package/dist/hooks/use-copilot-chat.js +56 -36
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +5 -5
- package/dist/hooks/use-copilot-readable.js +7 -3
- package/dist/hooks/use-copilot-readable.js.map +1 -1
- package/dist/hooks/use-copilot-readable.mjs +2 -2
- package/dist/hooks/use-make-copilot-actionable.js +7 -3
- package/dist/hooks/use-make-copilot-actionable.js.map +1 -1
- package/dist/hooks/use-make-copilot-actionable.mjs +2 -2
- package/dist/hooks/use-make-copilot-document-readable.js +7 -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/hooks/use-make-copilot-readable.js +7 -3
- package/dist/hooks/use-make-copilot-readable.js.map +1 -1
- package/dist/hooks/use-make-copilot-readable.mjs +2 -2
- package/dist/index.js +65 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/lib/copilot-task.js +2 -1
- package/dist/lib/copilot-task.js.map +1 -1
- package/dist/lib/copilot-task.mjs +4 -4
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/openai-assistants/hooks/index.js +7 -3
- package/dist/openai-assistants/hooks/index.js.map +1 -1
- package/dist/openai-assistants/hooks/index.mjs +3 -3
- package/dist/openai-assistants/hooks/use-copilot-chat-v2.js +7 -3
- package/dist/openai-assistants/hooks/use-copilot-chat-v2.js.map +1 -1
- package/dist/openai-assistants/hooks/use-copilot-chat-v2.mjs +3 -3
- package/dist/openai-assistants/index.js +7 -3
- package/dist/openai-assistants/index.js.map +1 -1
- package/dist/openai-assistants/index.mjs +3 -3
- package/dist/utils/extract.js +2 -1
- package/dist/utils/extract.js.map +1 -1
- package/dist/utils/extract.mjs +4 -4
- package/dist/utils/fetch-chat-completion.js +2 -1
- package/dist/utils/fetch-chat-completion.js.map +1 -1
- package/dist/utils/fetch-chat-completion.mjs +1 -1
- package/dist/utils/index.js +2 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +4 -4
- package/package.json +4 -4
- package/src/components/copilot-provider/copilotkit-props.tsx +6 -0
- package/src/components/copilot-provider/copilotkit.tsx +7 -0
- package/src/context/copilot-context.tsx +27 -6
- package/src/hooks/use-chat.ts +29 -18
- package/src/hooks/use-copilot-action.ts +1 -1
- package/src/hooks/use-copilot-chat.ts +111 -23
- package/src/utils/fetch-chat-completion.ts +1 -0
- package/dist/chunk-2C4UBKRR.mjs.map +0 -1
- package/dist/chunk-32T4S22Q.mjs.map +0 -1
- package/dist/chunk-7YTDTTX5.mjs.map +0 -1
- package/dist/chunk-JWANHQCM.mjs.map +0 -1
- package/dist/chunk-S2YA76YW.mjs.map +0 -1
- package/dist/chunk-TW5FS2QT.mjs.map +0 -1
- /package/dist/{chunk-L3LL6N7J.mjs.map → chunk-2EQGN5QK.mjs.map} +0 -0
- /package/dist/{chunk-BTJD4QON.mjs.map → chunk-4OIVQMEM.mjs.map} +0 -0
- /package/dist/{chunk-2DKLSG5S.mjs.map → chunk-B244LK6F.mjs.map} +0 -0
- /package/dist/{chunk-B5CULQRZ.mjs.map → chunk-MNZXQ6UH.mjs.map} +0 -0
- /package/dist/{chunk-GJGYNK46.mjs.map → chunk-S5LWO5V3.mjs.map} +0 -0
- /package/dist/{chunk-FHGMPFKO.mjs.map → chunk-SR4RW4CU.mjs.map} +0 -0
- /package/dist/{chunk-T6UD6AJ2.mjs.map → chunk-Z5FB4WBL.mjs.map} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @copilotkit/react-core@0.37.0-mme-pre.
|
|
2
|
+
> @copilotkit/react-core@0.37.0-mme-pre.2 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-core
|
|
3
3
|
> tsup --clean
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx, src/components/index.ts, src/context/copilot-context.tsx, src/context/index.ts, src/hooks/index.ts, src/hooks/use-chat.ts, src/hooks/use-copilot-action.ts, src/hooks/use-copilot-chat.ts, src/hooks/use-copilot-readable.ts, src/hooks/use-flat-category-store.ts, src/hooks/use-make-copilot-actionable.ts, src/hooks/use-make-copilot-document-readable.ts, src/hooks/use-make-copilot-readable.ts, src/hooks/use-tree.ts, src/lib/copilot-task.ts, src/lib/index.ts, src/openai-assistants/index.ts, src/types/chat-suggestion-configuration.ts, src/types/document-pointer.ts, src/types/frontend-action.ts, src/types/index.ts, src/types/system-message.ts, src/utils/extract.ts, src/utils/fetch-chat-completion.ts, src/utils/index.ts, src/utils/utils.test.ts, src/utils/utils.ts, src/components/copilot-provider/copilotkit-props.tsx, src/components/copilot-provider/copilotkit.tsx, src/components/copilot-provider/index.ts, src/openai-assistants/hooks/index.ts, src/openai-assistants/hooks/use-assistants.ts, src/openai-assistants/hooks/use-copilot-chat-v2.ts, src/openai-assistants/utils/index.ts, src/openai-assistants/utils/process-message-stream.ts
|
|
@@ -10,90 +10,55 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m92.19 KB[39m
|
|
49
|
-
[32mCJS[39m [1mdist/components/index.js.map [22m[32m30.33 KB[39m
|
|
50
|
-
[32mCJS[39m [1mdist/context/copilot-context.js.map [22m[32m6.19 KB[39m
|
|
51
|
-
[32mCJS[39m [1mdist/hooks/index.js.map [22m[32m52.28 KB[39m
|
|
52
|
-
[32mCJS[39m [1mdist/lib/copilot-task.js.map [22m[32m21.62 KB[39m
|
|
53
|
-
[32mCJS[39m [1mdist/openai-assistants/index.js.map [22m[32m23.56 KB[39m
|
|
54
|
-
[32mCJS[39m [1mdist/types/chat-suggestion-configuration.js.map [22m[32m673.00 B[39m
|
|
55
|
-
[32mCJS[39m [1mdist/utils/extract.js.map [22m[32m19.47 KB[39m
|
|
56
|
-
[32mCJS[39m [1mdist/components/copilot-provider/copilotkit-props.js.map [22m[32m1.61 KB[39m
|
|
57
|
-
[32mCJS[39m [1mdist/openai-assistants/hooks/index.js.map [22m[32m23.86 KB[39m
|
|
58
|
-
[32mCJS[39m [1mdist/openai-assistants/utils/index.js.map [22m[32m1.44 KB[39m
|
|
59
|
-
[32mCJS[39m [1mdist/context/index.js.map [22m[32m6.42 KB[39m
|
|
60
|
-
[32mCJS[39m [1mdist/hooks/use-chat.js.map [22m[32m19.04 KB[39m
|
|
61
|
-
[32mCJS[39m [1mdist/hooks/use-copilot-action.js.map [22m[32m10.36 KB[39m
|
|
62
|
-
[32mCJS[39m [1mdist/hooks/use-copilot-chat.js.map [22m[32m38.07 KB[39m
|
|
63
|
-
[32mCJS[39m [1mdist/hooks/use-copilot-readable.js.map [22m[32m11.23 KB[39m
|
|
64
|
-
[32mCJS[39m [1mdist/hooks/use-flat-category-store.js.map [22m[32m4.25 KB[39m
|
|
65
|
-
[32mCJS[39m [1mdist/hooks/use-make-copilot-actionable.js.map [22m[32m7.94 KB[39m
|
|
66
|
-
[32mCJS[39m [1mdist/hooks/use-make-copilot-document-readable.js.map [22m[32m7.48 KB[39m
|
|
67
|
-
[32mCJS[39m [1mdist/hooks/use-make-copilot-readable.js.map [22m[32m7.16 KB[39m
|
|
68
|
-
[32mCJS[39m [1mdist/hooks/use-tree.js.map [22m[32m8.32 KB[39m
|
|
69
|
-
[32mCJS[39m [1mdist/lib/index.js.map [22m[32m21.68 KB[39m
|
|
70
|
-
[32mCJS[39m [1mdist/types/document-pointer.js.map [22m[32m292.00 B[39m
|
|
71
|
-
[32mCJS[39m [1mdist/types/frontend-action.js.map [22m[32m1.77 KB[39m
|
|
72
|
-
[32mCJS[39m [1mdist/types/index.js.map [22m[32m432.00 B[39m
|
|
73
|
-
[32mCJS[39m [1mdist/types/system-message.js.map [22m[32m249.00 B[39m
|
|
74
|
-
[32mCJS[39m [1mdist/utils/fetch-chat-completion.js.map [22m[32m5.05 KB[39m
|
|
75
|
-
[32mCJS[39m [1mdist/utils/index.js.map [22m[32m19.99 KB[39m
|
|
76
|
-
[32mCJS[39m [1mdist/utils/utils.test.js.map [22m[32m354.00 B[39m
|
|
77
|
-
[32mCJS[39m [1mdist/utils/utils.js.map [22m[32m137.00 B[39m
|
|
78
|
-
[32mCJS[39m [1mdist/components/copilot-provider/copilotkit.js.map [22m[32m30.27 KB[39m
|
|
79
|
-
[32mCJS[39m [1mdist/components/copilot-provider/index.js.map [22m[32m30.46 KB[39m
|
|
80
|
-
[32mCJS[39m [1mdist/openai-assistants/hooks/use-assistants.js.map [22m[32m5.90 KB[39m
|
|
81
|
-
[32mCJS[39m [1mdist/openai-assistants/hooks/use-copilot-chat-v2.js.map [22m[32m23.48 KB[39m
|
|
82
|
-
[32mCJS[39m [1mdist/openai-assistants/utils/process-message-stream.js.map [22m[32m1.33 KB[39m
|
|
83
|
-
[32mCJS[39m ⚡️ Build success in 201ms
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m1.76 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/components/index.mjs [22m[32m375.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/context/copilot-context.mjs [22m[32m205.00 B[39m
|
|
16
|
+
[32mESM[39m [1mdist/hooks/index.mjs [22m[32m901.00 B[39m
|
|
17
|
+
[32mESM[39m [1mdist/chunk-CYDWEPFL.mjs [22m[32m43.00 B[39m
|
|
18
|
+
[32mESM[39m [1mdist/chunk-7GFKOIO7.mjs [22m[32m43.00 B[39m
|
|
19
|
+
[32mESM[39m [1mdist/chunk-BABVSMJR.mjs [22m[32m43.00 B[39m
|
|
20
|
+
[32mESM[39m [1mdist/chunk-2EQGN5QK.mjs [22m[32m4.39 KB[39m
|
|
21
|
+
[32mESM[39m [1mdist/chunk-FRAKUJWH.mjs [22m[32m43.00 B[39m
|
|
22
|
+
[32mESM[39m [1mdist/chunk-ZFS5SQUT.mjs [22m[32m802.00 B[39m
|
|
23
|
+
[32mESM[39m [1mdist/chunk-EFZPSZWO.mjs [22m[32m43.00 B[39m
|
|
24
|
+
[32mESM[39m [1mdist/chunk-LUGEI4YQ.mjs [22m[32m43.00 B[39m
|
|
25
|
+
[32mESM[39m [1mdist/chunk-4OIVQMEM.mjs [22m[32m3.79 KB[39m
|
|
26
|
+
[32mESM[39m [1mdist/chunk-Z5FB4WBL.mjs [22m[32m3.40 KB[39m
|
|
27
|
+
[32mESM[39m [1mdist/context/index.mjs [22m[32m227.00 B[39m
|
|
28
|
+
[32mESM[39m [1mdist/chunk-VNRDQJXW.mjs [22m[32m43.00 B[39m
|
|
29
|
+
[32mESM[39m [1mdist/chunk-EYKDJBDE.mjs [22m[32m43.00 B[39m
|
|
30
|
+
[32mESM[39m [1mdist/chunk-MNZXQ6UH.mjs [22m[32m909.00 B[39m
|
|
31
|
+
[32mESM[39m [1mdist/chunk-S5LWO5V3.mjs [22m[32m700.00 B[39m
|
|
32
|
+
[32mESM[39m [1mdist/chunk-B244LK6F.mjs [22m[32m640.00 B[39m
|
|
33
|
+
[32mESM[39m [1mdist/chunk-SR4RW4CU.mjs [22m[32m1.06 KB[39m
|
|
34
|
+
[32mESM[39m [1mdist/hooks/use-chat.mjs [22m[32m174.00 B[39m
|
|
35
|
+
[32mESM[39m [1mdist/hooks/use-copilot-action.mjs [22m[32m202.00 B[39m
|
|
36
|
+
[32mESM[39m [1mdist/chunk-NSUYO6TP.mjs [22m[32m1.46 KB[39m
|
|
37
|
+
[32mESM[39m [1mdist/hooks/use-copilot-chat.mjs [22m[32m468.00 B[39m
|
|
38
|
+
[32mESM[39m [1mdist/chunk-HUKLBIUK.mjs [22m[32m3.48 KB[39m
|
|
39
|
+
[32mESM[39m [1mdist/chunk-JD7BAH7U.mjs [22m[32m43.00 B[39m
|
|
40
|
+
[32mESM[39m [1mdist/chunk-SPCZTZCY.mjs [22m[32m43.00 B[39m
|
|
41
|
+
[32mESM[39m [1mdist/chunk-LLU5URI5.mjs [22m[32m6.40 KB[39m
|
|
42
|
+
[32mESM[39m [1mdist/chunk-YULKJPY3.mjs [22m[32m1.84 KB[39m
|
|
43
|
+
[32mESM[39m [1mdist/chunk-YWITCRBI.mjs [22m[32m3.89 KB[39m
|
|
44
|
+
[32mESM[39m [1mdist/chunk-B2H3NC4E.mjs [22m[32m6.78 KB[39m
|
|
45
|
+
[32mESM[39m [1mdist/chunk-MJKBCG4U.mjs [22m[32m2.87 KB[39m
|
|
46
|
+
[32mESM[39m [1mdist/chunk-DY63PD22.mjs [22m[32m1.80 KB[39m
|
|
47
|
+
[32mESM[39m [1mdist/chunk-SKC7AJIV.mjs [22m[32m1.97 KB[39m
|
|
84
48
|
[32mESM[39m [1mdist/openai-assistants/hooks/use-copilot-chat-v2.mjs [22m[32m540.00 B[39m
|
|
85
|
-
[32mESM[39m [1mdist/openai-assistants/utils/index.mjs [22m[32m206.00 B[39m
|
|
86
49
|
[32mESM[39m [1mdist/openai-assistants/utils/process-message-stream.mjs [22m[32m188.00 B[39m
|
|
87
50
|
[32mESM[39m [1mdist/utils/index.mjs [22m[32m589.00 B[39m
|
|
51
|
+
[32mESM[39m [1mdist/components/copilot-provider/copilotkit-props.mjs [22m[32m45.00 B[39m
|
|
52
|
+
[32mESM[39m [1mdist/types/chat-suggestion-configuration.mjs [22m[32m58.00 B[39m
|
|
53
|
+
[32mESM[39m [1mdist/lib/copilot-task.mjs [22m[32m378.00 B[39m
|
|
54
|
+
[32mESM[39m [1mdist/openai-assistants/utils/index.mjs [22m[32m206.00 B[39m
|
|
88
55
|
[32mESM[39m [1mdist/utils/utils.test.mjs [22m[32m170.00 B[39m
|
|
89
56
|
[32mESM[39m [1mdist/utils/utils.mjs [22m[32m34.00 B[39m
|
|
90
|
-
[32mESM[39m [1mdist/components/copilot-provider/copilotkit-props.mjs [22m[32m45.00 B[39m
|
|
91
57
|
[32mESM[39m [1mdist/components/copilot-provider/copilotkit.mjs [22m[32m331.00 B[39m
|
|
92
58
|
[32mESM[39m [1mdist/components/copilot-provider/index.mjs [22m[32m361.00 B[39m
|
|
93
59
|
[32mESM[39m [1mdist/openai-assistants/hooks/index.mjs [22m[32m513.00 B[39m
|
|
94
60
|
[32mESM[39m [1mdist/openai-assistants/hooks/use-assistants.mjs [22m[32m2.57 KB[39m
|
|
95
61
|
[32mESM[39m [1mdist/openai-assistants/index.mjs [22m[32m565.00 B[39m
|
|
96
|
-
[32mESM[39m [1mdist/types/chat-suggestion-configuration.mjs [22m[32m58.00 B[39m
|
|
97
62
|
[32mESM[39m [1mdist/types/document-pointer.mjs [22m[32m45.00 B[39m
|
|
98
63
|
[32mESM[39m [1mdist/types/frontend-action.mjs [22m[32m44.00 B[39m
|
|
99
64
|
[32mESM[39m [1mdist/types/index.mjs [22m[32m66.00 B[39m
|
|
@@ -106,56 +71,56 @@
|
|
|
106
71
|
[32mESM[39m [1mdist/hooks/use-make-copilot-document-readable.mjs [22m[32m246.00 B[39m
|
|
107
72
|
[32mESM[39m [1mdist/hooks/use-make-copilot-readable.mjs [22m[32m221.00 B[39m
|
|
108
73
|
[32mESM[39m [1mdist/hooks/use-tree.mjs [22m[32m171.00 B[39m
|
|
109
|
-
[32mESM[39m [1mdist/lib/copilot-task.mjs [22m[32m378.00 B[39m
|
|
110
74
|
[32mESM[39m [1mdist/lib/index.mjs [22m[32m403.00 B[39m
|
|
111
|
-
[32mESM[39m [1mdist/index.mjs
|
|
112
|
-
[32mESM[39m [1mdist/
|
|
113
|
-
[32mESM[39m [1mdist/
|
|
114
|
-
[32mESM[39m [1mdist/
|
|
115
|
-
[32mESM[39m [1mdist/chunk-
|
|
116
|
-
[32mESM[39m [1mdist/chunk-
|
|
117
|
-
[32mESM[39m [1mdist/chunk-
|
|
118
|
-
[32mESM[39m [1mdist/chunk-
|
|
119
|
-
[32mESM[39m [1mdist/chunk-
|
|
120
|
-
[32mESM[39m [1mdist/chunk-
|
|
121
|
-
[32mESM[39m [1mdist/chunk-
|
|
122
|
-
[32mESM[39m [1mdist/
|
|
123
|
-
[32mESM[39m [1mdist/
|
|
124
|
-
[32mESM[39m [1mdist/
|
|
125
|
-
[32mESM[39m [1mdist/
|
|
126
|
-
[32mESM[39m [1mdist/
|
|
127
|
-
[32mESM[39m [1mdist/chunk-EYKDJBDE.mjs
|
|
128
|
-
[32mESM[39m [1mdist/chunk-
|
|
129
|
-
[32mESM[39m [1mdist/chunk-
|
|
130
|
-
[32mESM[39m [1mdist/chunk-
|
|
131
|
-
[32mESM[39m [1mdist/chunk-
|
|
132
|
-
[32mESM[39m [1mdist/hooks/use-chat.mjs
|
|
133
|
-
[32mESM[39m [1mdist/hooks/use-copilot-action.mjs
|
|
134
|
-
[32mESM[39m [1mdist/chunk-
|
|
135
|
-
[32mESM[39m [1mdist/hooks/use-copilot-chat.mjs
|
|
136
|
-
[32mESM[39m [1mdist/chunk-
|
|
137
|
-
[32mESM[39m [1mdist/chunk-JD7BAH7U.mjs
|
|
138
|
-
[32mESM[39m [1mdist/chunk-SPCZTZCY.mjs
|
|
139
|
-
[32mESM[39m [1mdist/chunk-
|
|
140
|
-
[32mESM[39m [1mdist/chunk-YULKJPY3.mjs
|
|
141
|
-
[32mESM[39m [1mdist/chunk-YWITCRBI.mjs
|
|
142
|
-
[32mESM[39m [1mdist/chunk-
|
|
143
|
-
[32mESM[39m [1mdist/chunk-
|
|
144
|
-
[32mESM[39m [1mdist/chunk-
|
|
145
|
-
[32mESM[39m [1mdist/chunk-SKC7AJIV.mjs
|
|
75
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m71.00 B[39m
|
|
76
|
+
[32mESM[39m [1mdist/components/index.mjs.map [22m[32m71.00 B[39m
|
|
77
|
+
[32mESM[39m [1mdist/context/copilot-context.mjs.map [22m[32m71.00 B[39m
|
|
78
|
+
[32mESM[39m [1mdist/hooks/index.mjs.map [22m[32m71.00 B[39m
|
|
79
|
+
[32mESM[39m [1mdist/chunk-CYDWEPFL.mjs.map [22m[32m71.00 B[39m
|
|
80
|
+
[32mESM[39m [1mdist/chunk-7GFKOIO7.mjs.map [22m[32m71.00 B[39m
|
|
81
|
+
[32mESM[39m [1mdist/chunk-BABVSMJR.mjs.map [22m[32m71.00 B[39m
|
|
82
|
+
[32mESM[39m [1mdist/chunk-2EQGN5QK.mjs.map [22m[32m7.90 KB[39m
|
|
83
|
+
[32mESM[39m [1mdist/chunk-FRAKUJWH.mjs.map [22m[32m71.00 B[39m
|
|
84
|
+
[32mESM[39m [1mdist/chunk-ZFS5SQUT.mjs.map [22m[32m1.26 KB[39m
|
|
85
|
+
[32mESM[39m [1mdist/chunk-EFZPSZWO.mjs.map [22m[32m71.00 B[39m
|
|
86
|
+
[32mESM[39m [1mdist/chunk-LUGEI4YQ.mjs.map [22m[32m71.00 B[39m
|
|
87
|
+
[32mESM[39m [1mdist/chunk-4OIVQMEM.mjs.map [22m[32m6.47 KB[39m
|
|
88
|
+
[32mESM[39m [1mdist/chunk-Z5FB4WBL.mjs.map [22m[32m8.65 KB[39m
|
|
89
|
+
[32mESM[39m [1mdist/context/index.mjs.map [22m[32m71.00 B[39m
|
|
90
|
+
[32mESM[39m [1mdist/chunk-VNRDQJXW.mjs.map [22m[32m71.00 B[39m
|
|
91
|
+
[32mESM[39m [1mdist/chunk-EYKDJBDE.mjs.map [22m[32m71.00 B[39m
|
|
92
|
+
[32mESM[39m [1mdist/chunk-MNZXQ6UH.mjs.map [22m[32m5.15 KB[39m
|
|
93
|
+
[32mESM[39m [1mdist/chunk-S5LWO5V3.mjs.map [22m[32m1.40 KB[39m
|
|
94
|
+
[32mESM[39m [1mdist/chunk-B244LK6F.mjs.map [22m[32m1.08 KB[39m
|
|
95
|
+
[32mESM[39m [1mdist/chunk-SR4RW4CU.mjs.map [22m[32m1.87 KB[39m
|
|
96
|
+
[32mESM[39m [1mdist/hooks/use-chat.mjs.map [22m[32m71.00 B[39m
|
|
97
|
+
[32mESM[39m [1mdist/hooks/use-copilot-action.mjs.map [22m[32m71.00 B[39m
|
|
98
|
+
[32mESM[39m [1mdist/chunk-NSUYO6TP.mjs.map [22m[32m4.27 KB[39m
|
|
99
|
+
[32mESM[39m [1mdist/hooks/use-copilot-chat.mjs.map [22m[32m71.00 B[39m
|
|
100
|
+
[32mESM[39m [1mdist/chunk-HUKLBIUK.mjs.map [22m[32m7.80 KB[39m
|
|
101
|
+
[32mESM[39m [1mdist/chunk-JD7BAH7U.mjs.map [22m[32m71.00 B[39m
|
|
102
|
+
[32mESM[39m [1mdist/chunk-SPCZTZCY.mjs.map [22m[32m71.00 B[39m
|
|
103
|
+
[32mESM[39m [1mdist/chunk-LLU5URI5.mjs.map [22m[32m12.15 KB[39m
|
|
104
|
+
[32mESM[39m [1mdist/chunk-YULKJPY3.mjs.map [22m[32m4.21 KB[39m
|
|
105
|
+
[32mESM[39m [1mdist/chunk-YWITCRBI.mjs.map [22m[32m8.27 KB[39m
|
|
106
|
+
[32mESM[39m [1mdist/chunk-B2H3NC4E.mjs.map [22m[32m14.66 KB[39m
|
|
107
|
+
[32mESM[39m [1mdist/chunk-MJKBCG4U.mjs.map [22m[32m5.07 KB[39m
|
|
108
|
+
[32mESM[39m [1mdist/chunk-DY63PD22.mjs.map [22m[32m6.71 KB[39m
|
|
109
|
+
[32mESM[39m [1mdist/chunk-SKC7AJIV.mjs.map [22m[32m71.00 B[39m
|
|
146
110
|
[32mESM[39m [1mdist/openai-assistants/hooks/use-copilot-chat-v2.mjs.map [22m[32m71.00 B[39m
|
|
147
|
-
[32mESM[39m [1mdist/openai-assistants/utils/index.mjs.map [22m[32m71.00 B[39m
|
|
148
111
|
[32mESM[39m [1mdist/openai-assistants/utils/process-message-stream.mjs.map [22m[32m71.00 B[39m
|
|
149
112
|
[32mESM[39m [1mdist/utils/index.mjs.map [22m[32m71.00 B[39m
|
|
113
|
+
[32mESM[39m [1mdist/components/copilot-provider/copilotkit-props.mjs.map [22m[32m71.00 B[39m
|
|
114
|
+
[32mESM[39m [1mdist/types/chat-suggestion-configuration.mjs.map [22m[32m71.00 B[39m
|
|
115
|
+
[32mESM[39m [1mdist/lib/copilot-task.mjs.map [22m[32m71.00 B[39m
|
|
116
|
+
[32mESM[39m [1mdist/openai-assistants/utils/index.mjs.map [22m[32m71.00 B[39m
|
|
150
117
|
[32mESM[39m [1mdist/utils/utils.test.mjs.map [22m[32m352.00 B[39m
|
|
151
118
|
[32mESM[39m [1mdist/utils/utils.mjs.map [22m[32m71.00 B[39m
|
|
152
|
-
[32mESM[39m [1mdist/components/copilot-provider/copilotkit-props.mjs.map [22m[32m71.00 B[39m
|
|
153
119
|
[32mESM[39m [1mdist/components/copilot-provider/copilotkit.mjs.map [22m[32m71.00 B[39m
|
|
154
120
|
[32mESM[39m [1mdist/components/copilot-provider/index.mjs.map [22m[32m71.00 B[39m
|
|
155
121
|
[32mESM[39m [1mdist/openai-assistants/hooks/index.mjs.map [22m[32m71.00 B[39m
|
|
156
122
|
[32mESM[39m [1mdist/openai-assistants/hooks/use-assistants.mjs.map [22m[32m4.65 KB[39m
|
|
157
123
|
[32mESM[39m [1mdist/openai-assistants/index.mjs.map [22m[32m71.00 B[39m
|
|
158
|
-
[32mESM[39m [1mdist/types/chat-suggestion-configuration.mjs.map [22m[32m71.00 B[39m
|
|
159
124
|
[32mESM[39m [1mdist/types/document-pointer.mjs.map [22m[32m71.00 B[39m
|
|
160
125
|
[32mESM[39m [1mdist/types/frontend-action.mjs.map [22m[32m71.00 B[39m
|
|
161
126
|
[32mESM[39m [1mdist/types/index.mjs.map [22m[32m71.00 B[39m
|
|
@@ -168,56 +133,91 @@
|
|
|
168
133
|
[32mESM[39m [1mdist/hooks/use-make-copilot-document-readable.mjs.map [22m[32m71.00 B[39m
|
|
169
134
|
[32mESM[39m [1mdist/hooks/use-make-copilot-readable.mjs.map [22m[32m71.00 B[39m
|
|
170
135
|
[32mESM[39m [1mdist/hooks/use-tree.mjs.map [22m[32m71.00 B[39m
|
|
171
|
-
[32mESM[39m [1mdist/lib/copilot-task.mjs.map [22m[32m71.00 B[39m
|
|
172
136
|
[32mESM[39m [1mdist/lib/index.mjs.map [22m[32m71.00 B[39m
|
|
173
|
-
[32mESM[39m
|
|
174
|
-
[
|
|
175
|
-
[
|
|
176
|
-
[
|
|
177
|
-
[
|
|
178
|
-
[
|
|
179
|
-
[
|
|
180
|
-
[
|
|
181
|
-
[
|
|
182
|
-
[
|
|
183
|
-
[
|
|
184
|
-
[
|
|
185
|
-
[
|
|
186
|
-
[
|
|
187
|
-
[
|
|
188
|
-
[
|
|
189
|
-
[
|
|
190
|
-
[
|
|
191
|
-
[
|
|
192
|
-
[
|
|
193
|
-
[
|
|
194
|
-
[
|
|
195
|
-
[
|
|
196
|
-
[
|
|
197
|
-
[
|
|
198
|
-
[
|
|
199
|
-
[
|
|
200
|
-
[
|
|
201
|
-
[
|
|
202
|
-
[
|
|
203
|
-
[
|
|
204
|
-
[
|
|
205
|
-
[
|
|
206
|
-
[
|
|
207
|
-
[
|
|
208
|
-
[
|
|
137
|
+
[32mESM[39m ⚡️ Build success in 210ms
|
|
138
|
+
[32mCJS[39m [1mdist/index.js [22m[32m47.02 KB[39m
|
|
139
|
+
[32mCJS[39m [1mdist/components/index.js [22m[32m17.23 KB[39m
|
|
140
|
+
[32mCJS[39m [1mdist/context/copilot-context.js [22m[32m3.99 KB[39m
|
|
141
|
+
[32mCJS[39m [1mdist/context/index.js [22m[32m3.98 KB[39m
|
|
142
|
+
[32mCJS[39m [1mdist/hooks/index.js [22m[32m22.14 KB[39m
|
|
143
|
+
[32mCJS[39m [1mdist/hooks/use-chat.js [22m[32m11.90 KB[39m
|
|
144
|
+
[32mCJS[39m [1mdist/hooks/use-copilot-action.js [22m[32m5.28 KB[39m
|
|
145
|
+
[32mCJS[39m [1mdist/hooks/use-copilot-chat.js [22m[32m17.53 KB[39m
|
|
146
|
+
[32mCJS[39m [1mdist/hooks/use-copilot-readable.js [22m[32m4.70 KB[39m
|
|
147
|
+
[32mCJS[39m [1mdist/hooks/use-flat-category-store.js [22m[32m2.87 KB[39m
|
|
148
|
+
[32mCJS[39m [1mdist/hooks/use-make-copilot-actionable.js [22m[32m4.96 KB[39m
|
|
149
|
+
[32mCJS[39m [1mdist/hooks/use-make-copilot-document-readable.js [22m[32m4.58 KB[39m
|
|
150
|
+
[32mCJS[39m [1mdist/hooks/use-make-copilot-readable.js [22m[32m4.46 KB[39m
|
|
151
|
+
[32mCJS[39m [1mdist/hooks/use-tree.js [22m[32m5.53 KB[39m
|
|
152
|
+
[32mCJS[39m [1mdist/lib/copilot-task.js [22m[32m7.78 KB[39m
|
|
153
|
+
[32mCJS[39m [1mdist/lib/index.js [22m[32m7.74 KB[39m
|
|
154
|
+
[32mCJS[39m [1mdist/openai-assistants/index.js [22m[32m9.69 KB[39m
|
|
155
|
+
[32mCJS[39m [1mdist/types/chat-suggestion-configuration.js [22m[32m893.00 B[39m
|
|
156
|
+
[32mCJS[39m [1mdist/types/document-pointer.js [22m[32m841.00 B[39m
|
|
157
|
+
[32mCJS[39m [1mdist/types/frontend-action.js [22m[32m837.00 B[39m
|
|
158
|
+
[32mCJS[39m [1mdist/types/index.js [22m[32m797.00 B[39m
|
|
159
|
+
[32mCJS[39m [1mdist/types/system-message.js [22m[32m833.00 B[39m
|
|
160
|
+
[32mCJS[39m [1mdist/utils/extract.js [22m[32m8.75 KB[39m
|
|
161
|
+
[32mCJS[39m [1mdist/utils/fetch-chat-completion.js [22m[32m5.13 KB[39m
|
|
162
|
+
[32mCJS[39m [1mdist/utils/index.js [22m[32m9.53 KB[39m
|
|
163
|
+
[32mCJS[39m [1mdist/utils/utils.test.js [22m[32m184.00 B[39m
|
|
164
|
+
[32mCJS[39m [1mdist/utils/utils.js [22m[32m797.00 B[39m
|
|
165
|
+
[32mCJS[39m [1mdist/components/copilot-provider/copilotkit-props.js [22m[32m864.00 B[39m
|
|
166
|
+
[32mCJS[39m [1mdist/components/copilot-provider/copilotkit.js [22m[32m17.21 KB[39m
|
|
167
|
+
[32mCJS[39m [1mdist/components/copilot-provider/index.js [22m[32m17.27 KB[39m
|
|
168
|
+
[32mCJS[39m [1mdist/openai-assistants/hooks/index.js [22m[32m9.59 KB[39m
|
|
169
|
+
[32mCJS[39m [1mdist/openai-assistants/hooks/use-assistants.js [22m[32m4.81 KB[39m
|
|
170
|
+
[32mCJS[39m [1mdist/openai-assistants/hooks/use-copilot-chat-v2.js [22m[32m9.68 KB[39m
|
|
171
|
+
[32mCJS[39m [1mdist/openai-assistants/utils/index.js [22m[32m2.30 KB[39m
|
|
172
|
+
[32mCJS[39m [1mdist/openai-assistants/utils/process-message-stream.js [22m[32m2.33 KB[39m
|
|
173
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m96.64 KB[39m
|
|
174
|
+
[32mCJS[39m [1mdist/context/copilot-context.js.map [22m[32m6.81 KB[39m
|
|
175
|
+
[32mCJS[39m [1mdist/components/index.js.map [22m[32m31.34 KB[39m
|
|
176
|
+
[32mCJS[39m [1mdist/context/index.js.map [22m[32m7.04 KB[39m
|
|
177
|
+
[32mCJS[39m [1mdist/hooks/index.js.map [22m[32m56.58 KB[39m
|
|
178
|
+
[32mCJS[39m [1mdist/hooks/use-chat.js.map [22m[32m19.47 KB[39m
|
|
179
|
+
[32mCJS[39m [1mdist/hooks/use-copilot-action.js.map [22m[32m10.96 KB[39m
|
|
180
|
+
[32mCJS[39m [1mdist/hooks/use-copilot-chat.js.map [22m[32m42.38 KB[39m
|
|
181
|
+
[32mCJS[39m [1mdist/hooks/use-flat-category-store.js.map [22m[32m4.25 KB[39m
|
|
182
|
+
[32mCJS[39m [1mdist/hooks/use-copilot-readable.js.map [22m[32m11.84 KB[39m
|
|
183
|
+
[32mCJS[39m [1mdist/hooks/use-make-copilot-actionable.js.map [22m[32m8.56 KB[39m
|
|
184
|
+
[32mCJS[39m [1mdist/hooks/use-make-copilot-readable.js.map [22m[32m7.78 KB[39m
|
|
185
|
+
[32mCJS[39m [1mdist/hooks/use-make-copilot-document-readable.js.map [22m[32m8.09 KB[39m
|
|
186
|
+
[32mCJS[39m [1mdist/hooks/use-tree.js.map [22m[32m8.32 KB[39m
|
|
187
|
+
[32mCJS[39m [1mdist/lib/copilot-task.js.map [22m[32m21.93 KB[39m
|
|
188
|
+
[32mCJS[39m [1mdist/lib/index.js.map [22m[32m22.00 KB[39m
|
|
189
|
+
[32mCJS[39m [1mdist/types/chat-suggestion-configuration.js.map [22m[32m673.00 B[39m
|
|
190
|
+
[32mCJS[39m [1mdist/types/document-pointer.js.map [22m[32m292.00 B[39m
|
|
191
|
+
[32mCJS[39m [1mdist/types/frontend-action.js.map [22m[32m1.77 KB[39m
|
|
192
|
+
[32mCJS[39m [1mdist/types/index.js.map [22m[32m432.00 B[39m
|
|
193
|
+
[32mCJS[39m [1mdist/openai-assistants/index.js.map [22m[32m24.43 KB[39m
|
|
194
|
+
[32mCJS[39m [1mdist/types/system-message.js.map [22m[32m249.00 B[39m
|
|
195
|
+
[32mCJS[39m [1mdist/utils/fetch-chat-completion.js.map [22m[32m5.11 KB[39m
|
|
196
|
+
[32mCJS[39m [1mdist/utils/extract.js.map [22m[32m19.79 KB[39m
|
|
197
|
+
[32mCJS[39m [1mdist/utils/utils.test.js.map [22m[32m354.00 B[39m
|
|
198
|
+
[32mCJS[39m [1mdist/utils/utils.js.map [22m[32m137.00 B[39m
|
|
199
|
+
[32mCJS[39m [1mdist/components/copilot-provider/copilotkit-props.js.map [22m[32m1.80 KB[39m
|
|
200
|
+
[32mCJS[39m [1mdist/utils/index.js.map [22m[32m20.31 KB[39m
|
|
201
|
+
[32mCJS[39m [1mdist/components/copilot-provider/copilotkit.js.map [22m[32m31.28 KB[39m
|
|
202
|
+
[32mCJS[39m [1mdist/components/copilot-provider/index.js.map [22m[32m31.47 KB[39m
|
|
203
|
+
[32mCJS[39m [1mdist/openai-assistants/hooks/use-assistants.js.map [22m[32m5.90 KB[39m
|
|
204
|
+
[32mCJS[39m [1mdist/openai-assistants/hooks/index.js.map [22m[32m24.73 KB[39m
|
|
205
|
+
[32mCJS[39m [1mdist/openai-assistants/utils/index.js.map [22m[32m1.44 KB[39m
|
|
206
|
+
[32mCJS[39m [1mdist/openai-assistants/hooks/use-copilot-chat-v2.js.map [22m[32m24.34 KB[39m
|
|
207
|
+
[32mCJS[39m [1mdist/openai-assistants/utils/process-message-stream.js.map [22m[32m1.33 KB[39m
|
|
208
|
+
[32mCJS[39m ⚡️ Build success in 235ms
|
|
209
209
|
[34mDTS[39m Build start
|
|
210
|
-
[32mDTS[39m ⚡️ Build success in
|
|
210
|
+
[32mDTS[39m ⚡️ Build success in 8196ms
|
|
211
211
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.76 KB[39m
|
|
212
212
|
[32mDTS[39m [1mdist/components/copilot-provider/copilotkit.d.ts [22m[32m271.00 B[39m
|
|
213
|
-
[32mDTS[39m [1mdist/components/copilot-provider/copilotkit-props.d.ts [22m[32m1.
|
|
214
|
-
[32mDTS[39m [1mdist/context/copilot-context.d.ts [22m[32m3.
|
|
215
|
-
[32mDTS[39m [1mdist/hooks/use-copilot-chat.d.ts [22m[32m1.
|
|
213
|
+
[32mDTS[39m [1mdist/components/copilot-provider/copilotkit-props.d.ts [22m[32m1.70 KB[39m
|
|
214
|
+
[32mDTS[39m [1mdist/context/copilot-context.d.ts [22m[32m3.78 KB[39m
|
|
215
|
+
[32mDTS[39m [1mdist/hooks/use-copilot-chat.d.ts [22m[32m1.63 KB[39m
|
|
216
216
|
[32mDTS[39m [1mdist/hooks/use-make-copilot-actionable.d.ts [22m[32m309.00 B[39m
|
|
217
217
|
[32mDTS[39m [1mdist/hooks/use-copilot-action.d.ts [22m[32m286.00 B[39m
|
|
218
218
|
[32mDTS[39m [1mdist/hooks/use-make-copilot-readable.d.ts [22m[32m228.00 B[39m
|
|
219
219
|
[32mDTS[39m [1mdist/hooks/use-make-copilot-document-readable.d.ts [22m[32m516.00 B[39m
|
|
220
|
-
[32mDTS[39m [1mdist/hooks/use-chat.d.ts [22m[
|
|
220
|
+
[32mDTS[39m [1mdist/hooks/use-chat.d.ts [22m[32m3.03 KB[39m
|
|
221
221
|
[32mDTS[39m [1mdist/hooks/use-copilot-readable.d.ts [22m[32m1.10 KB[39m
|
|
222
222
|
[32mDTS[39m [1mdist/types/document-pointer.d.ts [22m[32m181.00 B[39m
|
|
223
223
|
[32mDTS[39m [1mdist/types/system-message.d.ts [22m[32m132.00 B[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,37 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
-
## 0.37.0-mme-pre.
|
|
3
|
+
## 0.37.0-mme-pre.2
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- CSS improvements, hidden messages, useCopilotChat
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
11
|
- Updated dependencies
|
|
12
|
-
- @copilotkit/shared@0.37.0-mme-pre.
|
|
12
|
+
- @copilotkit/shared@0.37.0-mme-pre.2
|
|
13
|
+
|
|
14
|
+
## 0.37.0-mme-fix-textarea-css.1
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- Remove unneeded tailwind components
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @copilotkit/shared@0.37.0-mme-fix-textarea-css.1
|
|
24
|
+
|
|
25
|
+
## 0.37.0-mme-fix-feedback-readable.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- Fix: Stale CopilotReadable
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
- @copilotkit/shared@0.37.0-mme-fix-feedback-readable.0
|
|
13
35
|
|
|
14
36
|
## 0.36.0
|
|
15
37
|
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-ZFS5SQUT.mjs";
|
|
4
4
|
import {
|
|
5
5
|
defaultCopilotContextCategories
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LLU5URI5.mjs";
|
|
7
7
|
import {
|
|
8
8
|
CopilotContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DY63PD22.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__async,
|
|
12
12
|
__spreadValues
|
|
@@ -134,4 +134,4 @@ export {
|
|
|
134
134
|
useCopilotChatV2,
|
|
135
135
|
defaultSystemMessage
|
|
136
136
|
};
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-2EQGN5QK.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultCopilotContextCategories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LLU5URI5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
fetchAndDecodeChatCompletion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MJKBCG4U.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__async,
|
|
9
9
|
__spreadValues
|
|
@@ -119,4 +119,4 @@ Any additional messages provided are for providing context only and should not b
|
|
|
119
119
|
export {
|
|
120
120
|
extract
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=chunk-
|
|
122
|
+
//# sourceMappingURL=chunk-4OIVQMEM.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DY63PD22.mjs";
|
|
4
4
|
|
|
5
5
|
// src/hooks/use-make-copilot-readable.ts
|
|
6
6
|
import { useContext, useEffect, useRef } from "react";
|
|
@@ -20,4 +20,4 @@ function useMakeCopilotReadable(information, parentId, categories) {
|
|
|
20
20
|
export {
|
|
21
21
|
useMakeCopilotReadable
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-B244LK6F.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAndDecodeChatCompletion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MJKBCG4U.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__async,
|
|
6
6
|
__spreadProps,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-SKC7AJIV.mjs";
|
|
9
9
|
|
|
10
10
|
// src/hooks/use-chat.ts
|
|
11
|
-
import { useRef
|
|
11
|
+
import { useRef } from "react";
|
|
12
12
|
import {
|
|
13
13
|
encodeResult,
|
|
14
14
|
COPILOT_CLOUD_PUBLIC_API_KEY_HEADER
|
|
@@ -16,16 +16,14 @@ import {
|
|
|
16
16
|
import { nanoid } from "nanoid";
|
|
17
17
|
import untruncateJson from "untruncate-json";
|
|
18
18
|
function useChat(options) {
|
|
19
|
-
const { messages, setMessages } = options;
|
|
20
|
-
const [input, setInput] = useState("");
|
|
21
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
19
|
+
const { messages, setMessages, makeSystemMessageCallback } = options;
|
|
22
20
|
const abortControllerRef = useRef();
|
|
23
21
|
const threadIdRef = useRef(null);
|
|
24
22
|
const runIdRef = useRef(null);
|
|
25
23
|
const publicApiKey = options.copilotConfig.publicApiKey;
|
|
26
24
|
const headers = __spreadValues(__spreadValues({}, options.headers || {}), publicApiKey ? { [COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {});
|
|
27
25
|
const runChatCompletion = (messages2) => __async(this, null, function* () {
|
|
28
|
-
setIsLoading(true);
|
|
26
|
+
options.setIsLoading(true);
|
|
29
27
|
const newMessages = [
|
|
30
28
|
{
|
|
31
29
|
id: nanoid(),
|
|
@@ -44,7 +42,8 @@ function useChat(options) {
|
|
|
44
42
|
if (runIdRef.current) {
|
|
45
43
|
copilotConfigBody.runId = runIdRef.current;
|
|
46
44
|
}
|
|
47
|
-
const
|
|
45
|
+
const systemMessage = makeSystemMessageCallback();
|
|
46
|
+
const messagesWithContext = [systemMessage, ...options.initialMessages || [], ...messages2];
|
|
48
47
|
const response = yield fetchAndDecodeChatCompletion({
|
|
49
48
|
copilotConfig: __spreadProps(__spreadValues({}, options.copilotConfig), { body: copilotConfigBody }),
|
|
50
49
|
messages: messagesWithContext,
|
|
@@ -68,7 +67,7 @@ function useChat(options) {
|
|
|
68
67
|
role: "assistant"
|
|
69
68
|
}
|
|
70
69
|
]);
|
|
71
|
-
setIsLoading(false);
|
|
70
|
+
options.setIsLoading(false);
|
|
72
71
|
throw new Error("Failed to fetch chat completion");
|
|
73
72
|
}
|
|
74
73
|
const reader = response.events.getReader();
|
|
@@ -156,19 +155,20 @@ function useChat(options) {
|
|
|
156
155
|
}
|
|
157
156
|
}
|
|
158
157
|
if (feedback) {
|
|
158
|
+
yield new Promise((resolve) => setTimeout(resolve, 10));
|
|
159
159
|
return yield runChatCompletion([...messages2, ...newMessages]);
|
|
160
160
|
} else {
|
|
161
161
|
return newMessages.slice();
|
|
162
162
|
}
|
|
163
163
|
} finally {
|
|
164
|
-
setIsLoading(false);
|
|
164
|
+
options.setIsLoading(false);
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
const runChatCompletionAndHandleFunctionCall = (messages2) => __async(this, null, function* () {
|
|
168
168
|
yield runChatCompletion(messages2);
|
|
169
169
|
});
|
|
170
170
|
const append = (message) => __async(this, null, function* () {
|
|
171
|
-
if (isLoading) {
|
|
171
|
+
if (options.isLoading) {
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
const newMessages = [...messages, message];
|
|
@@ -176,7 +176,7 @@ function useChat(options) {
|
|
|
176
176
|
return runChatCompletionAndHandleFunctionCall(newMessages);
|
|
177
177
|
});
|
|
178
178
|
const reload = () => __async(this, null, function* () {
|
|
179
|
-
if (isLoading || messages.length === 0) {
|
|
179
|
+
if (options.isLoading || messages.length === 0) {
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
let newMessages = [...messages];
|
|
@@ -194,14 +194,11 @@ function useChat(options) {
|
|
|
194
194
|
return {
|
|
195
195
|
append,
|
|
196
196
|
reload,
|
|
197
|
-
stop
|
|
198
|
-
isLoading,
|
|
199
|
-
input,
|
|
200
|
-
setInput
|
|
197
|
+
stop
|
|
201
198
|
};
|
|
202
199
|
}
|
|
203
200
|
|
|
204
201
|
export {
|
|
205
202
|
useChat
|
|
206
203
|
};
|
|
207
|
-
//# sourceMappingURL=chunk-
|
|
204
|
+
//# sourceMappingURL=chunk-B2H3NC4E.mjs.map
|