@copilotkit/react-core 0.19.0 → 0.20.0-demofixes.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 +211 -197
- package/CHANGELOG.md +22 -0
- package/dist/{chunk-VP2EU4US.mjs → chunk-4LKP4DMT.mjs} +3 -3
- package/dist/{chunk-4CFJ6A6A.mjs → chunk-4OWTRVNI.mjs} +6 -2
- package/dist/chunk-4OWTRVNI.mjs.map +1 -0
- package/dist/{chunk-IQEWY7P4.mjs → chunk-ABXVFQLN.mjs} +46 -29
- package/dist/chunk-ABXVFQLN.mjs.map +1 -0
- package/dist/{chunk-YOXWT7I6.mjs → chunk-CPEUPJQJ.mjs} +2 -2
- package/dist/{chunk-UAKLDQMP.mjs → chunk-JIKWSWIX.mjs} +4 -4
- package/dist/chunk-JIKWSWIX.mjs.map +1 -0
- package/dist/{chunk-DGUVNY3V.mjs → chunk-K2LVBFRY.mjs} +2 -2
- package/dist/{chunk-GBZZPQ5X.mjs → chunk-KAZJPE2I.mjs} +14 -8
- package/dist/chunk-KAZJPE2I.mjs.map +1 -0
- package/dist/{chunk-5GS7FQPW.mjs → chunk-KZNQLITJ.mjs} +5 -5
- package/dist/chunk-KZNQLITJ.mjs.map +1 -0
- package/dist/chunk-LUGEI4YQ.mjs +1 -0
- package/dist/chunk-LUGEI4YQ.mjs.map +1 -0
- package/dist/chunk-TZPIY754.mjs +102 -0
- package/dist/chunk-TZPIY754.mjs.map +1 -0
- package/dist/{chunk-IQH5AQQC.mjs → chunk-XBLCD24W.mjs} +2 -2
- package/dist/components/copilot-provider/copilotkit.js +12 -6
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +439 -8
- package/dist/components/copilot-provider/copilotkit.mjs.map +1 -1
- package/dist/components/copilot-provider/index.js +12 -6
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +439 -9
- package/dist/components/copilot-provider/index.mjs.map +1 -1
- package/dist/components/copilot-provider/standard-copilot-api-config.mjs +9 -4
- package/dist/components/copilot-provider/standard-copilot-api-config.mjs.map +1 -1
- package/dist/components/index.js +12 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +439 -10
- package/dist/components/index.mjs.map +1 -1
- package/dist/context/copilot-context.d.ts +5 -4
- package/dist/context/copilot-context.js +7 -2
- package/dist/context/copilot-context.js.map +1 -1
- package/dist/context/copilot-context.mjs +65 -5
- package/dist/context/copilot-context.mjs.map +1 -1
- package/dist/context/index.d.ts +1 -1
- package/dist/context/index.js +7 -2
- package/dist/context/index.js.map +1 -1
- package/dist/context/index.mjs +65 -6
- package/dist/context/index.mjs.map +1 -1
- package/dist/hooks/index.js +47 -29
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +392 -21
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/hooks/use-chat.d.ts +2 -2
- package/dist/hooks/use-chat.js +46 -28
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +204 -4
- package/dist/hooks/use-chat.mjs.map +1 -1
- package/dist/hooks/use-copilot-chat.js +47 -29
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +340 -13
- package/dist/hooks/use-copilot-chat.mjs.map +1 -1
- package/dist/hooks/use-flat-category-store.mjs +65 -4
- package/dist/hooks/use-flat-category-store.mjs.map +1 -1
- package/dist/hooks/use-make-copilot-actionable.js.map +1 -1
- package/dist/hooks/use-make-copilot-actionable.mjs +85 -5
- package/dist/hooks/use-make-copilot-actionable.mjs.map +1 -1
- package/dist/hooks/use-make-copilot-document-readable.js.map +1 -1
- package/dist/hooks/use-make-copilot-document-readable.mjs +77 -5
- package/dist/hooks/use-make-copilot-document-readable.mjs.map +1 -1
- package/dist/hooks/use-make-copilot-readable.js.map +1 -1
- package/dist/hooks/use-make-copilot-readable.mjs +77 -5
- package/dist/hooks/use-make-copilot-readable.mjs.map +1 -1
- package/dist/hooks/use-tree.mjs +150 -4
- package/dist/hooks/use-tree.mjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +154 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +981 -41
- package/dist/index.mjs.map +1 -1
- package/dist/lib/copilot-task.d.ts +34 -0
- package/dist/lib/copilot-task.js +206 -0
- package/dist/lib/copilot-task.js.map +1 -0
- package/dist/lib/copilot-task.mjs +188 -0
- package/dist/lib/copilot-task.mjs.map +1 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.js +206 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/index.mjs +188 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/openai-assistants/hooks/index.js.map +1 -1
- package/dist/openai-assistants/hooks/index.mjs +228 -14
- package/dist/openai-assistants/hooks/index.mjs.map +1 -1
- package/dist/openai-assistants/hooks/use-assistants.mjs +45 -7
- package/dist/openai-assistants/hooks/use-assistants.mjs.map +1 -1
- package/dist/openai-assistants/hooks/use-copilot-chat-v2.js.map +1 -1
- package/dist/openai-assistants/hooks/use-copilot-chat-v2.mjs +228 -14
- package/dist/openai-assistants/hooks/use-copilot-chat-v2.mjs.map +1 -1
- package/dist/openai-assistants/index.js.map +1 -1
- package/dist/openai-assistants/index.mjs +228 -17
- package/dist/openai-assistants/index.mjs.map +1 -1
- package/dist/openai-assistants/utils/index.mjs +43 -5
- package/dist/openai-assistants/utils/index.mjs.map +1 -1
- package/dist/openai-assistants/utils/process-message-stream.mjs +43 -4
- package/dist/openai-assistants/utils/process-message-stream.mjs.map +1 -1
- package/dist/types/index.mjs +0 -1
- package/dist/utils/fetch-chat-completion.d.ts +3 -3
- package/dist/utils/fetch-chat-completion.js +3 -3
- package/dist/utils/fetch-chat-completion.js.map +1 -1
- package/dist/utils/fetch-chat-completion.mjs +99 -5
- package/dist/utils/fetch-chat-completion.mjs.map +1 -1
- package/package.json +4 -4
- package/src/components/copilot-provider/copilotkit.tsx +17 -8
- package/src/context/copilot-context.tsx +11 -3
- package/src/context/index.ts +1 -1
- package/src/hooks/use-chat.ts +52 -30
- package/src/hooks/use-copilot-chat.ts +3 -3
- package/src/index.tsx +1 -0
- package/src/lib/copilot-task.ts +131 -0
- package/src/lib/index.ts +1 -0
- package/src/utils/fetch-chat-completion.ts +6 -6
- package/dist/chunk-4CFJ6A6A.mjs.map +0 -1
- package/dist/chunk-5GS7FQPW.mjs.map +0 -1
- package/dist/chunk-GBZZPQ5X.mjs.map +0 -1
- package/dist/chunk-IQEWY7P4.mjs.map +0 -1
- package/dist/chunk-UAKLDQMP.mjs.map +0 -1
- /package/dist/{chunk-VP2EU4US.mjs.map → chunk-4LKP4DMT.mjs.map} +0 -0
- /package/dist/{chunk-YOXWT7I6.mjs.map → chunk-CPEUPJQJ.mjs.map} +0 -0
- /package/dist/{chunk-DGUVNY3V.mjs.map → chunk-K2LVBFRY.mjs.map} +0 -0
- /package/dist/{chunk-IQH5AQQC.mjs.map → chunk-XBLCD24W.mjs.map} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,200 +1,214 @@
|
|
|
1
1
|
|
|
2
|
-
> @copilotkit/react-core@0.
|
|
2
|
+
> @copilotkit/react-core@0.20.0-tools.0 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-core
|
|
3
3
|
> tsup --clean
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
-
|
|
5
|
+
CLI Building entry: src/index.tsx, src/context/copilot-context.tsx, src/context/index.ts, src/components/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/lib/copilot-task.ts, src/lib/index.ts, src/openai-assistants/index.ts, src/types/document-pointer.ts, src/types/index.ts, src/types/system-message.ts, src/utils/fetch-chat-completion.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/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
|
+
CLI Using tsconfig: tsconfig.json
|
|
7
|
+
CLI tsup v6.7.0
|
|
8
|
+
CLI Using tsup config: /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-core/tsup.config.ts
|
|
9
|
+
CLI Target: es6
|
|
10
|
+
CLI Cleaning output folder
|
|
11
|
+
ESM Build start
|
|
12
|
+
CJS Build start
|
|
13
|
+
ESM dist/openai-assistants/hooks/index.mjs 548.00 B
|
|
14
|
+
ESM dist/openai-assistants/hooks/use-copilot-chat-v2.mjs 575.00 B
|
|
15
|
+
ESM dist/openai-assistants/utils/process-message-stream.mjs 188.00 B
|
|
16
|
+
ESM dist/components/copilot-provider/standard-copilot-api-config.mjs 201.00 B
|
|
17
|
+
ESM dist/openai-assistants/hooks/use-assistants.mjs 2.59 KB
|
|
18
|
+
ESM dist/utils/utils.test.mjs 170.00 B
|
|
19
|
+
ESM dist/types/index.mjs 66.00 B
|
|
20
|
+
ESM dist/utils/fetch-chat-completion.mjs 319.00 B
|
|
21
|
+
ESM dist/openai-assistants/utils/index.mjs 206.00 B
|
|
22
|
+
ESM dist/types/system-message.mjs 43.00 B
|
|
23
|
+
ESM dist/utils/utils.mjs 34.00 B
|
|
24
|
+
ESM dist/components/copilot-provider/copilotkit-props.mjs 59.00 B
|
|
25
|
+
ESM dist/components/copilot-provider/copilotkit.mjs 380.00 B
|
|
26
|
+
ESM dist/components/copilot-provider/index.mjs 396.00 B
|
|
27
|
+
ESM dist/hooks/use-make-copilot-actionable.mjs 241.00 B
|
|
28
|
+
ESM dist/lib/copilot-task.mjs 410.00 B
|
|
29
|
+
ESM dist/hooks/use-make-copilot-readable.mjs 235.00 B
|
|
30
|
+
ESM dist/hooks/use-tree.mjs 171.00 B
|
|
31
|
+
ESM dist/lib/index.mjs 435.00 B
|
|
32
|
+
ESM dist/types/document-pointer.mjs 45.00 B
|
|
33
|
+
ESM dist/openai-assistants/index.mjs 597.00 B
|
|
34
|
+
ESM dist/chunk-EFZPSZWO.mjs 43.00 B
|
|
35
|
+
ESM dist/chunk-7GFKOIO7.mjs 43.00 B
|
|
36
|
+
ESM dist/chunk-LUGEI4YQ.mjs 43.00 B
|
|
37
|
+
ESM dist/chunk-TZPIY754.mjs 3.17 KB
|
|
38
|
+
ESM dist/index.mjs 1.52 KB
|
|
39
|
+
ESM dist/chunk-FRAKUJWH.mjs 43.00 B
|
|
40
|
+
ESM dist/chunk-BABVSMJR.mjs 43.00 B
|
|
41
|
+
ESM dist/chunk-MZ5UN3BY.mjs 802.00 B
|
|
42
|
+
ESM dist/chunk-4LKP4DMT.mjs 4.39 KB
|
|
43
|
+
ESM dist/chunk-VNRDQJXW.mjs 43.00 B
|
|
44
|
+
ESM dist/context/copilot-context.mjs 219.00 B
|
|
45
|
+
ESM dist/context/index.mjs 227.00 B
|
|
46
|
+
ESM dist/hooks/index.mjs 769.00 B
|
|
47
|
+
ESM dist/components/index.mjs 407.00 B
|
|
48
|
+
ESM dist/chunk-K2LVBFRY.mjs 970.00 B
|
|
49
|
+
ESM dist/chunk-5UGLWBZJ.mjs 43.00 B
|
|
50
|
+
ESM dist/chunk-XBLCD24W.mjs 700.00 B
|
|
51
|
+
ESM dist/chunk-CPEUPJQJ.mjs 640.00 B
|
|
52
|
+
ESM dist/chunk-KZNQLITJ.mjs 2.89 KB
|
|
53
|
+
ESM dist/chunk-JD7BAH7U.mjs 43.00 B
|
|
54
|
+
ESM dist/hooks/use-copilot-chat.mjs 500.00 B
|
|
55
|
+
ESM dist/hooks/use-make-copilot-document-readable.mjs 260.00 B
|
|
56
|
+
ESM dist/chunk-KAZJPE2I.mjs 4.55 KB
|
|
57
|
+
ESM dist/chunk-SPCZTZCY.mjs 43.00 B
|
|
58
|
+
ESM dist/chunk-JIKWSWIX.mjs 2.35 KB
|
|
59
|
+
ESM dist/chunk-ABXVFQLN.mjs 3.89 KB
|
|
60
|
+
ESM dist/chunk-VUY2K2DI.mjs 3.89 KB
|
|
61
|
+
ESM dist/hooks/use-flat-category-store.mjs 216.00 B
|
|
62
|
+
ESM dist/chunk-4OWTRVNI.mjs 1.42 KB
|
|
63
|
+
ESM dist/hooks/use-chat.mjs 174.00 B
|
|
64
|
+
ESM dist/chunk-F2JIAPZQ.mjs 405.00 B
|
|
65
|
+
ESM dist/chunk-MRXNTQOX.mjs 1.89 KB
|
|
66
|
+
ESM dist/chunk-YULKJPY3.mjs 1.84 KB
|
|
67
|
+
ESM dist/openai-assistants/hooks/index.mjs.map 71.00 B
|
|
68
|
+
ESM dist/openai-assistants/hooks/use-copilot-chat-v2.mjs.map 71.00 B
|
|
69
|
+
ESM dist/openai-assistants/utils/process-message-stream.mjs.map 71.00 B
|
|
70
|
+
ESM dist/components/copilot-provider/standard-copilot-api-config.mjs.map 71.00 B
|
|
71
|
+
ESM dist/utils/utils.test.mjs.map 352.00 B
|
|
72
|
+
ESM dist/types/index.mjs.map 71.00 B
|
|
73
|
+
ESM dist/utils/fetch-chat-completion.mjs.map 71.00 B
|
|
74
|
+
ESM dist/types/system-message.mjs.map 71.00 B
|
|
75
|
+
ESM dist/openai-assistants/utils/index.mjs.map 71.00 B
|
|
76
|
+
ESM dist/utils/utils.mjs.map 71.00 B
|
|
77
|
+
ESM dist/components/copilot-provider/copilotkit.mjs.map 71.00 B
|
|
78
|
+
ESM dist/components/copilot-provider/index.mjs.map 71.00 B
|
|
79
|
+
ESM dist/lib/copilot-task.mjs.map 71.00 B
|
|
80
|
+
ESM dist/hooks/use-make-copilot-readable.mjs.map 71.00 B
|
|
81
|
+
ESM dist/hooks/use-tree.mjs.map 71.00 B
|
|
82
|
+
ESM dist/lib/index.mjs.map 71.00 B
|
|
83
|
+
ESM dist/openai-assistants/index.mjs.map 71.00 B
|
|
84
|
+
ESM dist/chunk-EFZPSZWO.mjs.map 71.00 B
|
|
85
|
+
ESM dist/chunk-7GFKOIO7.mjs.map 71.00 B
|
|
86
|
+
ESM dist/chunk-LUGEI4YQ.mjs.map 71.00 B
|
|
87
|
+
ESM dist/chunk-TZPIY754.mjs.map 5.55 KB
|
|
88
|
+
ESM dist/index.mjs.map 71.00 B
|
|
89
|
+
ESM dist/chunk-FRAKUJWH.mjs.map 71.00 B
|
|
90
|
+
ESM dist/hooks/use-make-copilot-actionable.mjs.map 71.00 B
|
|
91
|
+
ESM dist/chunk-BABVSMJR.mjs.map 71.00 B
|
|
92
|
+
ESM dist/chunk-4LKP4DMT.mjs.map 7.90 KB
|
|
93
|
+
ESM dist/chunk-VNRDQJXW.mjs.map 71.00 B
|
|
94
|
+
ESM dist/context/index.mjs.map 71.00 B
|
|
95
|
+
ESM dist/hooks/index.mjs.map 71.00 B
|
|
96
|
+
ESM dist/components/index.mjs.map 71.00 B
|
|
97
|
+
ESM dist/chunk-K2LVBFRY.mjs.map 1.66 KB
|
|
98
|
+
ESM dist/chunk-5UGLWBZJ.mjs.map 71.00 B
|
|
99
|
+
ESM dist/chunk-XBLCD24W.mjs.map 1.42 KB
|
|
100
|
+
ESM dist/chunk-CPEUPJQJ.mjs.map 1.47 KB
|
|
101
|
+
ESM dist/chunk-KZNQLITJ.mjs.map 4.59 KB
|
|
102
|
+
ESM dist/chunk-JD7BAH7U.mjs.map 71.00 B
|
|
103
|
+
ESM dist/hooks/use-copilot-chat.mjs.map 71.00 B
|
|
104
|
+
ESM dist/hooks/use-make-copilot-document-readable.mjs.map 71.00 B
|
|
105
|
+
ESM dist/chunk-KAZJPE2I.mjs.map 9.62 KB
|
|
106
|
+
ESM dist/chunk-SPCZTZCY.mjs.map 71.00 B
|
|
107
|
+
ESM dist/chunk-JIKWSWIX.mjs.map 3.98 KB
|
|
108
|
+
ESM dist/chunk-ABXVFQLN.mjs.map 8.85 KB
|
|
109
|
+
ESM dist/chunk-VUY2K2DI.mjs.map 8.27 KB
|
|
110
|
+
ESM dist/chunk-4OWTRVNI.mjs.map 4.35 KB
|
|
111
|
+
ESM dist/hooks/use-chat.mjs.map 71.00 B
|
|
112
|
+
ESM dist/chunk-F2JIAPZQ.mjs.map 1.12 KB
|
|
113
|
+
ESM dist/hooks/use-flat-category-store.mjs.map 71.00 B
|
|
114
|
+
ESM dist/context/copilot-context.mjs.map 71.00 B
|
|
115
|
+
ESM dist/chunk-YULKJPY3.mjs.map 4.21 KB
|
|
116
|
+
ESM dist/chunk-MRXNTQOX.mjs.map 71.00 B
|
|
117
|
+
ESM dist/openai-assistants/hooks/use-assistants.mjs.map 4.67 KB
|
|
118
|
+
ESM dist/chunk-MZ5UN3BY.mjs.map 1.26 KB
|
|
119
|
+
ESM dist/components/copilot-provider/copilotkit-props.mjs.map 71.00 B
|
|
120
|
+
ESM dist/types/document-pointer.mjs.map 71.00 B
|
|
121
|
+
ESM ⚡️ Build success in 49ms
|
|
122
|
+
CJS dist/index.js 34.54 KB
|
|
123
|
+
CJS dist/context/index.js 3.60 KB
|
|
124
|
+
CJS dist/hooks/index.js 15.21 KB
|
|
125
|
+
CJS dist/lib/copilot-task.js 7.17 KB
|
|
126
|
+
CJS dist/components/index.js 15.12 KB
|
|
127
|
+
CJS dist/openai-assistants/index.js 9.31 KB
|
|
128
|
+
CJS dist/utils/fetch-chat-completion.js 4.78 KB
|
|
129
|
+
CJS dist/types/document-pointer.js 841.00 B
|
|
130
|
+
CJS dist/components/copilot-provider/copilotkit-props.js 878.00 B
|
|
131
|
+
CJS dist/openai-assistants/utils/index.js 2.30 KB
|
|
132
|
+
CJS dist/openai-assistants/hooks/use-assistants.js 4.82 KB
|
|
133
|
+
CJS dist/hooks/use-copilot-chat.js 13.04 KB
|
|
134
|
+
CJS dist/hooks/use-tree.js 5.53 KB
|
|
135
|
+
CJS dist/hooks/use-make-copilot-readable.js 4.10 KB
|
|
136
|
+
CJS dist/hooks/use-make-copilot-actionable.js 4.47 KB
|
|
137
|
+
CJS dist/hooks/use-chat.js 7.81 KB
|
|
138
|
+
CJS dist/hooks/use-flat-category-store.js 2.87 KB
|
|
139
|
+
CJS dist/types/index.js 797.00 B
|
|
140
|
+
CJS dist/types/system-message.js 833.00 B
|
|
141
|
+
CJS dist/utils/utils.test.js 184.00 B
|
|
142
|
+
CJS dist/components/copilot-provider/index.js 15.16 KB
|
|
143
|
+
CJS dist/hooks/use-make-copilot-document-readable.js 4.22 KB
|
|
144
|
+
CJS dist/utils/utils.js 797.00 B
|
|
145
|
+
CJS dist/openai-assistants/utils/process-message-stream.js 2.33 KB
|
|
146
|
+
CJS dist/lib/index.js 7.13 KB
|
|
147
|
+
CJS dist/components/copilot-provider/copilotkit.js 15.11 KB
|
|
148
|
+
CJS dist/openai-assistants/hooks/index.js 9.21 KB
|
|
149
|
+
CJS dist/openai-assistants/hooks/use-copilot-chat-v2.js 9.30 KB
|
|
150
|
+
CJS dist/components/copilot-provider/standard-copilot-api-config.js 1.48 KB
|
|
151
|
+
CJS dist/context/copilot-context.js 3.62 KB
|
|
152
|
+
CJS dist/index.js.map 64.08 KB
|
|
153
|
+
CJS dist/context/index.js.map 4.67 KB
|
|
154
|
+
CJS dist/lib/copilot-task.js.map 16.40 KB
|
|
155
|
+
CJS dist/components/index.js.map 27.51 KB
|
|
156
|
+
CJS dist/openai-assistants/index.js.map 20.70 KB
|
|
157
|
+
CJS dist/types/document-pointer.js.map 292.00 B
|
|
158
|
+
CJS dist/utils/fetch-chat-completion.js.map 4.03 KB
|
|
159
|
+
CJS dist/hooks/index.js.map 33.45 KB
|
|
160
|
+
CJS dist/components/copilot-provider/copilotkit-props.js.map 894.00 B
|
|
161
|
+
CJS dist/openai-assistants/utils/index.js.map 1.44 KB
|
|
162
|
+
CJS dist/openai-assistants/hooks/use-assistants.js.map 5.92 KB
|
|
163
|
+
CJS dist/hooks/use-copilot-chat.js.map 28.54 KB
|
|
164
|
+
CJS dist/hooks/use-make-copilot-readable.js.map 5.79 KB
|
|
165
|
+
CJS dist/hooks/use-make-copilot-actionable.js.map 5.98 KB
|
|
166
|
+
CJS dist/hooks/use-flat-category-store.js.map 4.25 KB
|
|
167
|
+
CJS dist/hooks/use-chat.js.map 12.54 KB
|
|
168
|
+
CJS dist/types/index.js.map 253.00 B
|
|
169
|
+
CJS dist/types/system-message.js.map 249.00 B
|
|
170
|
+
CJS dist/utils/utils.test.js.map 354.00 B
|
|
171
|
+
CJS dist/components/copilot-provider/index.js.map 27.64 KB
|
|
172
|
+
CJS dist/hooks/use-make-copilot-document-readable.js.map 5.75 KB
|
|
173
|
+
CJS dist/utils/utils.js.map 137.00 B
|
|
174
|
+
CJS dist/hooks/use-tree.js.map 8.32 KB
|
|
175
|
+
CJS dist/components/copilot-provider/copilotkit.js.map 27.45 KB
|
|
176
|
+
CJS dist/openai-assistants/hooks/index.js.map 21.00 KB
|
|
177
|
+
CJS dist/lib/index.js.map 16.46 KB
|
|
178
|
+
CJS dist/openai-assistants/hooks/use-copilot-chat-v2.js.map 20.61 KB
|
|
179
|
+
CJS dist/components/copilot-provider/standard-copilot-api-config.js.map 1.17 KB
|
|
180
|
+
CJS dist/openai-assistants/utils/process-message-stream.js.map 1.33 KB
|
|
181
|
+
CJS dist/context/copilot-context.js.map 4.44 KB
|
|
182
|
+
CJS ⚡️ Build success in 51ms
|
|
183
|
+
DTS Build start
|
|
184
|
+
DTS ⚡️ Build success in 2192ms
|
|
185
|
+
DTS dist/index.d.ts 1.41 KB
|
|
186
|
+
DTS dist/components/copilot-provider/copilotkit.d.ts 1.26 KB
|
|
187
|
+
DTS dist/components/copilot-provider/copilotkit-props.d.ts 749.00 B
|
|
188
|
+
DTS dist/context/copilot-context.d.ts 2.06 KB
|
|
189
|
+
DTS dist/hooks/use-copilot-chat.d.ts 1.01 KB
|
|
190
|
+
DTS dist/hooks/use-make-copilot-actionable.d.ts 243.00 B
|
|
191
|
+
DTS dist/hooks/use-make-copilot-readable.d.ts 598.00 B
|
|
192
|
+
DTS dist/hooks/use-make-copilot-document-readable.d.ts 516.00 B
|
|
193
|
+
DTS dist/hooks/use-chat.d.ts 2.69 KB
|
|
194
|
+
DTS dist/types/document-pointer.d.ts 181.00 B
|
|
195
|
+
DTS dist/types/system-message.d.ts 132.00 B
|
|
196
|
+
DTS dist/openai-assistants/hooks/use-copilot-chat-v2.d.ts 1.41 KB
|
|
197
|
+
DTS dist/openai-assistants/utils/process-message-stream.d.ts 196.00 B
|
|
198
|
+
DTS dist/lib/copilot-task.d.ts 1.01 KB
|
|
199
|
+
DTS dist/utils/fetch-chat-completion.d.ts 1.34 KB
|
|
200
|
+
DTS dist/hooks/use-tree.d.ts 543.00 B
|
|
201
|
+
DTS dist/context/index.d.ts 229.00 B
|
|
202
|
+
DTS dist/components/index.d.ts 186.00 B
|
|
203
|
+
DTS dist/hooks/index.d.ts 574.00 B
|
|
204
|
+
DTS dist/hooks/use-flat-category-store.d.ts 424.00 B
|
|
205
|
+
DTS dist/lib/index.d.ts 223.00 B
|
|
206
|
+
DTS dist/openai-assistants/index.d.ts 262.00 B
|
|
207
|
+
DTS dist/types/index.d.ts 118.00 B
|
|
208
|
+
DTS dist/utils/utils.test.d.ts 12.00 B
|
|
209
|
+
DTS dist/utils/utils.d.ts 12.00 B
|
|
210
|
+
DTS dist/components/copilot-provider/index.d.ts 152.00 B
|
|
211
|
+
DTS dist/components/copilot-provider/standard-copilot-api-config.d.ts 834.00 B
|
|
212
|
+
DTS dist/openai-assistants/hooks/index.d.ts 182.00 B
|
|
213
|
+
DTS dist/openai-assistants/hooks/use-assistants.d.ts 551.00 B
|
|
214
|
+
DTS dist/openai-assistants/utils/index.d.ts 68.00 B
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
+
## 0.20.0-demofixes.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- helloworld to presentation, refactor audio gen to util
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @copilotkit/shared@0.4.0-demofixes.1
|
|
13
|
+
|
|
14
|
+
## 0.20.0-tools.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- Test the tools API
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @copilotkit/shared@0.4.0-tools.0
|
|
24
|
+
|
|
3
25
|
## 0.19.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-MZ5UN3BY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
defaultCopilotContextCategories
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KAZJPE2I.mjs";
|
|
7
7
|
import {
|
|
8
8
|
CopilotContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4OWTRVNI.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-4LKP4DMT.mjs.map
|
|
@@ -37,12 +37,16 @@ var emptyCopilotContext = {
|
|
|
37
37
|
}()
|
|
38
38
|
};
|
|
39
39
|
var CopilotContext = React.createContext(emptyCopilotContext);
|
|
40
|
+
function useCopilotContext() {
|
|
41
|
+
return React.useContext(CopilotContext);
|
|
42
|
+
}
|
|
40
43
|
function returnAndThrowInDebug(value) {
|
|
41
44
|
throw new Error("Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!");
|
|
42
45
|
return value;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
export {
|
|
46
|
-
CopilotContext
|
|
49
|
+
CopilotContext,
|
|
50
|
+
useCopilotContext
|
|
47
51
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
52
|
+
//# sourceMappingURL=chunk-4OWTRVNI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/context/copilot-context.tsx"],"sourcesContent":["\"use client\";\n\nimport { FunctionCallHandler, AnnotatedFunction, ToolDefinition } from \"@copilotkit/shared\";\nimport React from \"react\";\nimport { TreeNodeId } from \"../hooks/use-tree\";\nimport { DocumentPointer } from \"../types\";\n\n/**\n * Interface for the configuration of the Copilot API.\n */\nexport interface CopilotApiConfig {\n /**\n * The endpoint for the chat API.\n */\n chatApiEndpoint: string;\n\n /**\n * The endpoint for the chat API v2.\n */\n chatApiEndpointV2: string;\n\n /**\n * additional headers to be sent with the request\n * @default {}\n * @example\n * ```\n * {\n * 'Authorization': 'Bearer your_token_here'\n * }\n * ```\n */\n headers: Record<string, string>;\n\n /**\n * Additional body params to be sent with the request\n * @default {}\n * @example\n * ```\n * {\n * 'message': 'Hello, world!'\n * }\n * ```\n */\n body: Record<string, any>;\n}\n\nexport interface CopilotContextParams {\n // function-calling\n entryPoints: Record<string, AnnotatedFunction<any[]>>;\n setEntryPoint: (id: string, entryPoint: AnnotatedFunction<any[]>) => void;\n removeEntryPoint: (id: string) => void;\n getChatCompletionFunctionDescriptions: (\n customEntryPoints?: Record<string, AnnotatedFunction<any[]>>,\n ) => ToolDefinition[];\n getFunctionCallHandler: (\n customEntryPoints?: Record<string, AnnotatedFunction<any[]>>,\n ) => FunctionCallHandler;\n\n // text context\n addContext: (context: string, parentId?: string, categories?: string[]) => TreeNodeId;\n removeContext: (id: TreeNodeId) => void;\n getContextString: (documents: DocumentPointer[], categories: string[]) => string;\n\n // document context\n addDocumentContext: (documentPointer: DocumentPointer, categories?: string[]) => TreeNodeId;\n removeDocumentContext: (documentId: string) => void;\n getDocumentsContext: (categories: string[]) => DocumentPointer[];\n\n // api endpoints\n copilotApiConfig: CopilotApiConfig;\n}\n\nconst emptyCopilotContext: CopilotContextParams = {\n entryPoints: {},\n setEntryPoint: () => {},\n removeEntryPoint: () => {},\n getChatCompletionFunctionDescriptions: () => returnAndThrowInDebug([]),\n getFunctionCallHandler: () => returnAndThrowInDebug(async () => {}),\n\n getContextString: (documents: DocumentPointer[], categories: string[]) =>\n returnAndThrowInDebug(\"\"),\n addContext: () => \"\",\n removeContext: () => {},\n\n getDocumentsContext: (categories: string[]) => returnAndThrowInDebug([]),\n addDocumentContext: () => returnAndThrowInDebug(\"\"),\n removeDocumentContext: () => {},\n\n copilotApiConfig: new (class implements CopilotApiConfig {\n get chatApiEndpoint(): string {\n throw new Error(\"Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!\");\n }\n get chatApiEndpointV2(): string {\n throw new Error(\"Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!\");\n }\n get headers(): Record<string, string> {\n return {};\n }\n get body(): Record<string, any> {\n return {};\n }\n })(),\n};\n\nexport const CopilotContext = React.createContext<CopilotContextParams>(emptyCopilotContext);\n\nexport function useCopilotContext(): CopilotContextParams {\n return React.useContext(CopilotContext);\n}\n\nfunction returnAndThrowInDebug<T>(value: T): T {\n throw new Error(\"Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!\");\n return value;\n}\n"],"mappings":";;;;;AAGA,OAAO,WAAW;AAqElB,IAAM,sBAA4C;AAAA,EAChD,aAAa,CAAC;AAAA,EACd,eAAe,MAAM;AAAA,EAAC;AAAA,EACtB,kBAAkB,MAAM;AAAA,EAAC;AAAA,EACzB,uCAAuC,MAAM,sBAAsB,CAAC,CAAC;AAAA,EACrE,wBAAwB,MAAM,sBAAsB,MAAY;AAAA,EAAC,EAAC;AAAA,EAElE,kBAAkB,CAAC,WAA8B,eAC/C,sBAAsB,EAAE;AAAA,EAC1B,YAAY,MAAM;AAAA,EAClB,eAAe,MAAM;AAAA,EAAC;AAAA,EAEtB,qBAAqB,CAAC,eAAyB,sBAAsB,CAAC,CAAC;AAAA,EACvE,oBAAoB,MAAM,sBAAsB,EAAE;AAAA,EAClD,uBAAuB,MAAM;AAAA,EAAC;AAAA,EAE9B,kBAAkB,IAAK,MAAkC;AAAA,IACvD,IAAI,kBAA0B;AAC5B,YAAM,IAAI,MAAM,uEAAuE;AAAA,IACzF;AAAA,IACA,IAAI,oBAA4B;AAC9B,YAAM,IAAI,MAAM,uEAAuE;AAAA,IACzF;AAAA,IACA,IAAI,UAAkC;AACpC,aAAO,CAAC;AAAA,IACV;AAAA,IACA,IAAI,OAA4B;AAC9B,aAAO,CAAC;AAAA,IACV;AAAA,EACF,EAAG;AACL;AAEO,IAAM,iBAAiB,MAAM,cAAoC,mBAAmB;AAEpF,SAAS,oBAA0C;AACxD,SAAO,MAAM,WAAW,cAAc;AACxC;AAEA,SAAS,sBAAyB,OAAa;AAC7C,QAAM,IAAI,MAAM,uEAAuE;AACvF,SAAO;AACT;","names":[]}
|