@copilotkit/react-core 0.17.1-alpha.0 → 0.17.1-alpha.1
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 +91 -87
- package/CHANGELOG.md +8 -0
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
- package/src/hooks/use-chat.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
Debugger attached.
|
|
1
2
|
|
|
2
|
-
> @copilotkit/react-core@0.17.0 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-core
|
|
3
|
+
> @copilotkit/react-core@0.17.1-alpha.0 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-core
|
|
3
4
|
> tsup --treeshake
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
Debugger attached.
|
|
7
|
+
CLI 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-chat.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/openai/chat-completion-client.ts, src/openai/chat-completion-stream.ts, src/openai/chat-completion-transport.ts, src/openai/index.tsx, src/openai-assistants/index.ts, src/types/annotated-function.ts, src/types/base.ts, src/types/document-pointer.ts, src/types/index.ts, src/types/message.ts, src/utils/utils.test.ts, src/utils/utils.ts, src/components/copilot-provider/copilot-provider-props.tsx, src/components/copilot-provider/copilot-provider.tsx, src/components/copilot-provider/index.ts, src/components/copilot-provider/standard-copilot-api-config.tsx, 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
|
|
6
8
|
CLI Using tsconfig: tsconfig.json
|
|
7
9
|
CLI tsup v6.7.0
|
|
8
10
|
CLI Using tsup config: /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-core/tsup.config.ts
|
|
@@ -22,134 +24,134 @@ Generated an empty chunk: "base".
|
|
|
22
24
|
Generated an empty chunk: "document-pointer".
|
|
23
25
|
Generated an empty chunk: "message".
|
|
24
26
|
Generated an empty chunk: "utils".
|
|
25
|
-
Generated an empty chunk: "chunk-PUFR5OAI".
|
|
26
|
-
Generated an empty chunk: "chunk-EFZPSZWO".
|
|
27
27
|
Generated an empty chunk: "chunk-7GFKOIO7".
|
|
28
28
|
Generated an empty chunk: "chunk-BABVSMJR".
|
|
29
29
|
Generated an empty chunk: "chunk-FRAKUJWH".
|
|
30
|
+
Generated an empty chunk: "chunk-EFZPSZWO".
|
|
31
|
+
Generated an empty chunk: "chunk-PUFR5OAI".
|
|
30
32
|
Generated an empty chunk: "chunk-VNRDQJXW".
|
|
31
33
|
Generated an empty chunk: "chunk-5UGLWBZJ".
|
|
32
34
|
Generated an empty chunk: "chunk-JD7BAH7U".
|
|
33
35
|
Generated an empty chunk: "chunk-SPCZTZCY".
|
|
34
|
-
ESM dist/
|
|
35
|
-
ESM dist/types/
|
|
36
|
-
ESM dist/
|
|
37
|
-
ESM dist/
|
|
38
|
-
ESM dist/
|
|
36
|
+
ESM dist/components/copilot-provider/copilot-provider-props.mjs 84.00 B
|
|
37
|
+
ESM dist/types/annotated-function.mjs 80.00 B
|
|
38
|
+
ESM dist/types/base.mjs 66.00 B
|
|
39
|
+
ESM dist/types/message.mjs 69.00 B
|
|
40
|
+
ESM dist/utils/utils.test.mjs 202.00 B
|
|
41
|
+
ESM dist/types/document-pointer.mjs 78.00 B
|
|
42
|
+
ESM dist/utils/utils.mjs 67.00 B
|
|
39
43
|
ESM dist/chunk-BABVSMJR.mjs 76.00 B
|
|
40
|
-
ESM dist/
|
|
44
|
+
ESM dist/chunk-FRAKUJWH.mjs 76.00 B
|
|
45
|
+
ESM dist/chunk-VNRDQJXW.mjs 76.00 B
|
|
46
|
+
ESM dist/chunk-5UGLWBZJ.mjs 76.00 B
|
|
47
|
+
ESM dist/chunk-PUFR5OAI.mjs 76.00 B
|
|
41
48
|
ESM dist/chunk-JD7BAH7U.mjs 76.00 B
|
|
42
49
|
ESM dist/chunk-SPCZTZCY.mjs 76.00 B
|
|
43
|
-
ESM dist/chunk-VNRDQJXW.mjs 76.00 B
|
|
44
|
-
ESM dist/chunk-7GFKOIO7.mjs 76.00 B
|
|
45
|
-
ESM dist/openai-assistants/index.mjs 570.00 B
|
|
46
50
|
ESM dist/chunk-MRXNTQOX.mjs 1.92 KB
|
|
51
|
+
ESM dist/chunk-F2JIAPZQ.mjs 435.00 B
|
|
47
52
|
ESM dist/chunk-EFZPSZWO.mjs 76.00 B
|
|
48
|
-
ESM dist/
|
|
53
|
+
ESM dist/openai-assistants/utils/process-message-stream.mjs 183.00 B
|
|
54
|
+
ESM dist/components/copilot-provider/index.mjs 369.00 B
|
|
55
|
+
ESM dist/components/copilot-provider/standard-copilot-api-config.mjs 192.00 B
|
|
56
|
+
ESM dist/components/copilot-provider/copilot-provider.mjs 345.00 B
|
|
57
|
+
ESM dist/openai-assistants/utils/index.mjs 201.00 B
|
|
58
|
+
ESM dist/openai-assistants/index.mjs 570.00 B
|
|
59
|
+
ESM dist/chunk-7GFKOIO7.mjs 76.00 B
|
|
60
|
+
ESM dist/types/index.mjs 98.00 B
|
|
61
|
+
ESM dist/hooks/use-make-copilot-actionable.mjs 218.00 B
|
|
62
|
+
ESM dist/hooks/use-make-copilot-readable.mjs 214.00 B
|
|
49
63
|
ESM dist/hooks/use-make-copilot-document-readable.mjs 231.00 B
|
|
64
|
+
ESM dist/openai-assistants/hooks/index.mjs 547.00 B
|
|
65
|
+
ESM dist/hooks/use-tree.mjs 170.00 B
|
|
66
|
+
ESM dist/openai-assistants/hooks/use-copilot-chat-v2.mjs 548.00 B
|
|
50
67
|
ESM dist/openai/chat-completion-stream.mjs 209.00 B
|
|
51
|
-
ESM dist/openai/chat-completion-client.mjs 209.00 B
|
|
52
|
-
ESM dist/hooks/use-make-copilot-readable.mjs 214.00 B
|
|
53
68
|
ESM dist/openai/chat-completion-transport.mjs 183.00 B
|
|
69
|
+
ESM dist/openai/chat-completion-client.mjs 209.00 B
|
|
70
|
+
ESM dist/openai/index.mjs 224.00 B
|
|
54
71
|
ESM dist/index.mjs 1.11 KB
|
|
55
|
-
ESM dist/chunk-F2JIAPZQ.mjs 435.00 B
|
|
56
72
|
ESM dist/chunk-TU4DNDO7.mjs 4.33 KB
|
|
57
73
|
ESM dist/chunk-MZ5UN3BY.mjs 830.00 B
|
|
74
|
+
ESM dist/chunk-6SOQYBNX.mjs 1.24 KB
|
|
75
|
+
ESM dist/components/index.mjs 380.00 B
|
|
76
|
+
ESM dist/context/copilot-context.mjs 164.00 B
|
|
77
|
+
ESM dist/context/index.mjs 186.00 B
|
|
58
78
|
ESM dist/hooks/index.mjs 708.00 B
|
|
59
|
-
ESM dist/hooks/use-tree.mjs 170.00 B
|
|
60
79
|
ESM dist/chunk-FP4EXCGS.mjs 954.00 B
|
|
61
|
-
ESM dist/
|
|
80
|
+
ESM dist/chunk-7P4OYNP3.mjs 677.00 B
|
|
62
81
|
ESM dist/chunk-HW5IH6PV.mjs 626.00 B
|
|
82
|
+
ESM dist/hooks/use-chat.mjs 214.00 B
|
|
63
83
|
ESM dist/chunk-R75NEA76.mjs 2.71 KB
|
|
84
|
+
ESM dist/chunk-QTET3FBV.mjs 5.18 KB
|
|
64
85
|
ESM dist/hooks/use-copilot-chat.mjs 507.00 B
|
|
65
|
-
ESM dist/chunk-6A4PCNMZ.mjs 1.30 KB
|
|
66
86
|
ESM dist/chunk-VUY2K2DI.mjs 3.89 KB
|
|
67
|
-
ESM dist/chunk-
|
|
87
|
+
ESM dist/chunk-R2WOR4SW.mjs 3.69 KB
|
|
68
88
|
ESM dist/chunk-TKXPMMND.mjs 5.33 KB
|
|
69
|
-
ESM dist/chunk-VK25FIML.mjs 4.48 KB
|
|
70
|
-
ESM dist/chunk-6SOQYBNX.mjs 1.24 KB
|
|
71
|
-
ESM dist/chunk-FRAKUJWH.mjs 76.00 B
|
|
72
|
-
ESM dist/chunk-7P4OYNP3.mjs 677.00 B
|
|
73
|
-
ESM dist/context/index.mjs 186.00 B
|
|
74
89
|
ESM dist/hooks/use-flat-category-store.mjs 200.00 B
|
|
75
90
|
ESM dist/chunk-YULKJPY3.mjs 1.87 KB
|
|
76
|
-
ESM dist/
|
|
77
|
-
ESM dist/
|
|
78
|
-
ESM dist/openai-assistants/utils/process-message-stream.mjs 183.00 B
|
|
79
|
-
ESM dist/chunk-R2WOR4SW.mjs 3.69 KB
|
|
91
|
+
ESM dist/chunk-VK25FIML.mjs 4.48 KB
|
|
92
|
+
ESM dist/chunk-6A4PCNMZ.mjs 1.30 KB
|
|
80
93
|
ESM dist/openai-assistants/hooks/use-assistants.mjs 2.55 KB
|
|
81
|
-
ESM dist/
|
|
82
|
-
ESM dist/
|
|
83
|
-
ESM dist/
|
|
84
|
-
ESM dist/
|
|
85
|
-
ESM dist/
|
|
86
|
-
ESM dist/types/document-pointer.mjs 78.00 B
|
|
87
|
-
ESM dist/components/copilot-provider/standard-copilot-api-config.mjs 192.00 B
|
|
88
|
-
ESM dist/types/message.mjs 69.00 B
|
|
89
|
-
ESM dist/openai-assistants/hooks/index.mjs 547.00 B
|
|
90
|
-
ESM dist/openai-assistants/hooks/use-copilot-chat-v2.mjs 548.00 B
|
|
91
|
-
ESM dist/components/copilot-provider/index.mjs 369.00 B
|
|
92
|
-
ESM dist/chunk-PUFR5OAI.mjs.map 51.00 B
|
|
93
|
-
ESM dist/types/index.mjs.map 51.00 B
|
|
94
|
-
ESM dist/openai/index.mjs.map 51.00 B
|
|
95
|
-
ESM dist/hooks/use-make-copilot-actionable.mjs.map 51.00 B
|
|
94
|
+
ESM dist/components/copilot-provider/copilot-provider-props.mjs.map 51.00 B
|
|
95
|
+
ESM dist/utils/utils.test.mjs.map 351.00 B
|
|
96
|
+
ESM dist/types/annotated-function.mjs.map 51.00 B
|
|
97
|
+
ESM dist/utils/utils.mjs.map 51.00 B
|
|
98
|
+
ESM dist/types/base.mjs.map 51.00 B
|
|
96
99
|
ESM dist/chunk-BABVSMJR.mjs.map 51.00 B
|
|
97
|
-
ESM dist/chunk-
|
|
100
|
+
ESM dist/chunk-FRAKUJWH.mjs.map 51.00 B
|
|
98
101
|
ESM dist/chunk-VNRDQJXW.mjs.map 51.00 B
|
|
99
|
-
ESM dist/
|
|
100
|
-
ESM dist/openai-assistants/index.mjs.map 51.00 B
|
|
101
|
-
ESM dist/chunk-MRXNTQOX.mjs.map 71.00 B
|
|
102
|
+
ESM dist/chunk-PUFR5OAI.mjs.map 51.00 B
|
|
102
103
|
ESM dist/chunk-JD7BAH7U.mjs.map 51.00 B
|
|
104
|
+
ESM dist/chunk-F2JIAPZQ.mjs.map 1.12 KB
|
|
105
|
+
ESM dist/chunk-MRXNTQOX.mjs.map 71.00 B
|
|
103
106
|
ESM dist/chunk-EFZPSZWO.mjs.map 51.00 B
|
|
107
|
+
ESM dist/openai-assistants/utils/process-message-stream.mjs.map 51.00 B
|
|
108
|
+
ESM dist/components/copilot-provider/index.mjs.map 51.00 B
|
|
109
|
+
ESM dist/components/copilot-provider/standard-copilot-api-config.mjs.map 51.00 B
|
|
110
|
+
ESM dist/components/copilot-provider/copilot-provider.mjs.map 51.00 B
|
|
111
|
+
ESM dist/openai-assistants/index.mjs.map 51.00 B
|
|
112
|
+
ESM dist/chunk-7GFKOIO7.mjs.map 51.00 B
|
|
113
|
+
ESM dist/types/index.mjs.map 51.00 B
|
|
114
|
+
ESM dist/hooks/use-make-copilot-actionable.mjs.map 51.00 B
|
|
115
|
+
ESM dist/hooks/use-make-copilot-readable.mjs.map 51.00 B
|
|
104
116
|
ESM dist/hooks/use-make-copilot-document-readable.mjs.map 51.00 B
|
|
105
|
-
ESM dist/index.mjs.map
|
|
117
|
+
ESM dist/openai-assistants/hooks/index.mjs.map 51.00 B
|
|
118
|
+
ESM dist/hooks/use-tree.mjs.map 51.00 B
|
|
119
|
+
ESM dist/types/message.mjs.map 51.00 B
|
|
120
|
+
ESM dist/openai-assistants/hooks/use-copilot-chat-v2.mjs.map 51.00 B
|
|
106
121
|
ESM dist/openai/chat-completion-stream.mjs.map 51.00 B
|
|
107
|
-
ESM dist/
|
|
108
|
-
ESM dist/
|
|
122
|
+
ESM dist/types/document-pointer.mjs.map 51.00 B
|
|
123
|
+
ESM dist/openai/chat-completion-transport.mjs.map 51.00 B
|
|
124
|
+
ESM dist/openai/chat-completion-client.mjs.map 51.00 B
|
|
109
125
|
ESM dist/chunk-5UGLWBZJ.mjs.map 51.00 B
|
|
110
|
-
ESM dist/
|
|
111
|
-
ESM dist/chunk-
|
|
126
|
+
ESM dist/index.mjs.map 51.00 B
|
|
127
|
+
ESM dist/chunk-SPCZTZCY.mjs.map 51.00 B
|
|
128
|
+
ESM dist/openai/index.mjs.map 51.00 B
|
|
112
129
|
ESM dist/chunk-TU4DNDO7.mjs.map 7.90 KB
|
|
130
|
+
ESM dist/chunk-MZ5UN3BY.mjs.map 1.26 KB
|
|
131
|
+
ESM dist/chunk-6SOQYBNX.mjs.map 2.07 KB
|
|
132
|
+
ESM dist/components/index.mjs.map 51.00 B
|
|
133
|
+
ESM dist/context/copilot-context.mjs.map 51.00 B
|
|
134
|
+
ESM dist/context/index.mjs.map 51.00 B
|
|
135
|
+
ESM dist/chunk-FP4EXCGS.mjs.map 1.67 KB
|
|
113
136
|
ESM dist/hooks/index.mjs.map 51.00 B
|
|
114
|
-
ESM dist/
|
|
115
|
-
ESM dist/hooks/use-make-copilot-readable.mjs.map 51.00 B
|
|
137
|
+
ESM dist/chunk-HW5IH6PV.mjs.map 1.47 KB
|
|
116
138
|
ESM dist/hooks/use-chat.mjs.map 51.00 B
|
|
117
|
-
ESM dist/chunk-
|
|
139
|
+
ESM dist/chunk-R75NEA76.mjs.map 4.37 KB
|
|
140
|
+
ESM dist/openai-assistants/utils/index.mjs.map 51.00 B
|
|
118
141
|
ESM dist/hooks/use-copilot-chat.mjs.map 51.00 B
|
|
119
|
-
ESM dist/chunk-
|
|
120
|
-
ESM dist/openai/chat-completion-transport.mjs.map 51.00 B
|
|
121
|
-
ESM dist/chunk-6A4PCNMZ.mjs.map 4.26 KB
|
|
122
|
-
ESM dist/chunk-F2JIAPZQ.mjs.map 1.12 KB
|
|
142
|
+
ESM dist/chunk-R2WOR4SW.mjs.map 8.47 KB
|
|
123
143
|
ESM dist/chunk-TKXPMMND.mjs.map 9.93 KB
|
|
124
|
-
ESM dist/chunk-7P4OYNP3.mjs.map 1.42 KB
|
|
125
|
-
ESM dist/chunk-QTET3FBV.mjs.map 11.03 KB
|
|
126
|
-
ESM dist/chunk-6SOQYBNX.mjs.map 2.07 KB
|
|
127
|
-
ESM dist/chunk-FRAKUJWH.mjs.map 51.00 B
|
|
128
|
-
ESM dist/chunk-VK25FIML.mjs.map 7.84 KB
|
|
129
|
-
ESM dist/chunk-VUY2K2DI.mjs.map 8.27 KB
|
|
130
|
-
ESM dist/chunk-R75NEA76.mjs.map 4.37 KB
|
|
131
|
-
ESM dist/context/index.mjs.map 51.00 B
|
|
132
144
|
ESM dist/hooks/use-flat-category-store.mjs.map 51.00 B
|
|
133
145
|
ESM dist/chunk-YULKJPY3.mjs.map 4.21 KB
|
|
134
|
-
ESM dist/
|
|
135
|
-
ESM dist/
|
|
136
|
-
ESM dist/chunk-
|
|
137
|
-
ESM dist/openai-assistants/utils/process-message-stream.mjs.map 51.00 B
|
|
146
|
+
ESM dist/chunk-VK25FIML.mjs.map 7.84 KB
|
|
147
|
+
ESM dist/chunk-VUY2K2DI.mjs.map 8.27 KB
|
|
148
|
+
ESM dist/chunk-6A4PCNMZ.mjs.map 4.26 KB
|
|
138
149
|
ESM dist/openai-assistants/hooks/use-assistants.mjs.map 4.67 KB
|
|
139
|
-
ESM dist/
|
|
140
|
-
ESM dist/
|
|
141
|
-
ESM
|
|
142
|
-
ESM dist/openai-assistants/hooks/index.mjs.map 51.00 B
|
|
143
|
-
ESM dist/components/copilot-provider/standard-copilot-api-config.mjs.map 51.00 B
|
|
144
|
-
ESM dist/components/copilot-provider/copilot-provider.mjs.map 51.00 B
|
|
145
|
-
ESM dist/components/copilot-provider/index.mjs.map 51.00 B
|
|
146
|
-
ESM dist/types/document-pointer.mjs.map 51.00 B
|
|
147
|
-
ESM dist/types/message.mjs.map 51.00 B
|
|
148
|
-
ESM dist/openai-assistants/hooks/use-copilot-chat-v2.mjs.map 51.00 B
|
|
149
|
-
ESM dist/utils/utils.test.mjs.map 351.00 B
|
|
150
|
-
ESM ⚡️ Build success in 135ms
|
|
150
|
+
ESM dist/chunk-7P4OYNP3.mjs.map 1.42 KB
|
|
151
|
+
ESM dist/chunk-QTET3FBV.mjs.map 11.03 KB
|
|
152
|
+
ESM ⚡️ Build success in 405ms
|
|
151
153
|
DTS Build start
|
|
152
|
-
DTS ⚡️ Build success in
|
|
154
|
+
DTS ⚡️ Build success in 3554ms
|
|
153
155
|
DTS dist/index.d.ts 1.61 KB
|
|
154
156
|
DTS dist/components/copilot-provider/copilot-provider.d.ts 1.55 KB
|
|
155
157
|
DTS dist/components/copilot-provider/copilot-provider-props.d.ts 1.52 KB
|
|
@@ -171,9 +173,9 @@ DTS dist/components/index.d.ts 482.00 B
|
|
|
171
173
|
DTS dist/context/index.d.ts 281.00 B
|
|
172
174
|
DTS dist/hooks/index.d.ts 608.00 B
|
|
173
175
|
DTS dist/hooks/use-flat-category-store.d.ts 424.00 B
|
|
174
|
-
DTS dist/openai-assistants/index.d.ts 262.00 B
|
|
175
176
|
DTS dist/openai/chat-completion-client.d.ts 1.44 KB
|
|
176
177
|
DTS dist/openai/index.d.ts 438.00 B
|
|
178
|
+
DTS dist/openai-assistants/index.d.ts 262.00 B
|
|
177
179
|
DTS dist/types/index.d.ts 233.00 B
|
|
178
180
|
DTS dist/types/message.d.ts 12.00 B
|
|
179
181
|
DTS dist/utils/utils.test.d.ts 12.00 B
|
|
@@ -183,3 +185,5 @@ DTS dist/components/copilot-provider/standard-copilot-api-config.d.ts 911.00 B
|
|
|
183
185
|
DTS dist/openai-assistants/hooks/index.d.ts 182.00 B
|
|
184
186
|
DTS dist/openai-assistants/hooks/use-assistants.d.ts 551.00 B
|
|
185
187
|
DTS dist/openai-assistants/utils/index.d.ts 68.00 B
|
|
188
|
+
Waiting for the debugger to disconnect...
|
|
189
|
+
Waiting for the debugger to disconnect...
|
package/CHANGELOG.md
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import './chunk-PUFR5OAI.mjs';
|
|
2
|
-
import './chunk-EFZPSZWO.mjs';
|
|
3
1
|
import './chunk-7GFKOIO7.mjs';
|
|
4
2
|
import './chunk-BABVSMJR.mjs';
|
|
5
3
|
export { useCopilotChatV2 } from './chunk-TU4DNDO7.mjs';
|
|
6
4
|
import './chunk-FRAKUJWH.mjs';
|
|
7
5
|
export { processMessageStream } from './chunk-MZ5UN3BY.mjs';
|
|
6
|
+
import './chunk-EFZPSZWO.mjs';
|
|
7
|
+
import './chunk-PUFR5OAI.mjs';
|
|
8
8
|
export { ChatCompletionStream } from './chunk-6SOQYBNX.mjs';
|
|
9
9
|
import './chunk-VNRDQJXW.mjs';
|
|
10
10
|
import './chunk-5UGLWBZJ.mjs';
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.17.1-alpha.
|
|
7
|
+
"version": "0.17.1-alpha.1",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"module": "./dist/index.mjs",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"ts-jest": "^29.1.1",
|
|
24
24
|
"tsup": "^6.7.0",
|
|
25
25
|
"typescript": "^5.1.3",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"eslint-config-custom": "0.2.0",
|
|
27
|
+
"tsconfig": "0.6.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"eventemitter3": "^5.0.1",
|
|
31
31
|
"nanoid": "^4.0.2",
|
|
32
32
|
"openai": "^4.6.0",
|
|
33
|
-
"@copilotkit/shared": "0.1.1-alpha.
|
|
33
|
+
"@copilotkit/shared": "0.1.1-alpha.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup --treeshake",
|
package/src/hooks/use-chat.ts
CHANGED
|
@@ -117,8 +117,8 @@ export function useChat(options: UseChatOptionsWithCopilotConfig): UseChatHelper
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
abortController.signal.addEventListener("abort", () => {
|
|
120
|
-
cleanup();
|
|
121
120
|
setIsLoading(false);
|
|
121
|
+
cleanup();
|
|
122
122
|
reject(new DOMException("Aborted", "AbortError"));
|
|
123
123
|
});
|
|
124
124
|
|