@copilotkit/react-ui 1.7.2-next.1 → 1.8.0-next.3

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.
Files changed (201) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/{chunk-QXTRFMPM.mjs → chunk-2LRE4W6A.mjs} +13 -11
  3. package/dist/chunk-2LRE4W6A.mjs.map +1 -0
  4. package/dist/{chunk-2C3ANQCY.mjs → chunk-5GNYGURH.mjs} +53 -42
  5. package/dist/chunk-5GNYGURH.mjs.map +1 -0
  6. package/dist/{chunk-CBBFRI3Q.mjs → chunk-5JY5QJ2W.mjs} +9 -5
  7. package/dist/chunk-5JY5QJ2W.mjs.map +1 -0
  8. package/dist/{chunk-OFYI4UU4.mjs → chunk-7RIBDD4K.mjs} +19 -3
  9. package/dist/chunk-7RIBDD4K.mjs.map +1 -0
  10. package/dist/{chunk-YAGE7RCE.mjs → chunk-CGVOCLHN.mjs} +2 -2
  11. package/dist/chunk-EJG6RRSX.mjs +138 -0
  12. package/dist/chunk-EJG6RRSX.mjs.map +1 -0
  13. package/dist/chunk-FBYETUFL.mjs +118 -0
  14. package/dist/chunk-FBYETUFL.mjs.map +1 -0
  15. package/dist/chunk-GDJAAFIK.mjs +24 -0
  16. package/dist/chunk-GDJAAFIK.mjs.map +1 -0
  17. package/dist/{chunk-6FTRYYR5.mjs → chunk-GJME6MK4.mjs} +72 -62
  18. package/dist/chunk-GJME6MK4.mjs.map +1 -0
  19. package/dist/{chunk-AZU4QOV5.mjs → chunk-KG6DW6R2.mjs} +12 -12
  20. package/dist/{chunk-3PJA5MFR.mjs → chunk-LKCAF2HG.mjs} +2 -2
  21. package/dist/{chunk-ADTTDBLB.mjs → chunk-LXCH2BIB.mjs} +2 -2
  22. package/dist/chunk-MCO235PS.mjs +164 -0
  23. package/dist/chunk-MCO235PS.mjs.map +1 -0
  24. package/dist/chunk-MWC5OV7Z.mjs +1 -0
  25. package/dist/chunk-N7LTE54T.mjs +1 -0
  26. package/dist/chunk-N7LTE54T.mjs.map +1 -0
  27. package/dist/chunk-ORSMX3SE.mjs +244 -0
  28. package/dist/chunk-ORSMX3SE.mjs.map +1 -0
  29. package/dist/{chunk-UPTB2MVO.mjs → chunk-PCTCOQK2.mjs} +4 -10
  30. package/dist/chunk-PCTCOQK2.mjs.map +1 -0
  31. package/dist/{chunk-22K5DDPF.mjs → chunk-QGK5GOSC.mjs} +31 -60
  32. package/dist/chunk-QGK5GOSC.mjs.map +1 -0
  33. package/dist/{chunk-WGAZXTUA.mjs → chunk-TOQ7P4DO.mjs} +6 -9
  34. package/dist/chunk-TOQ7P4DO.mjs.map +1 -0
  35. package/dist/chunk-UCVCAGU7.mjs +1 -0
  36. package/dist/chunk-UCVCAGU7.mjs.map +1 -0
  37. package/dist/{chunk-3XAXY2Z3.mjs → chunk-UZTZXMYS.mjs} +2 -2
  38. package/dist/{chunk-RQNJNK2W.mjs → chunk-VC4NO5QZ.mjs} +2 -2
  39. package/dist/{chunk-YQ3D5IQV.mjs → chunk-XNQO5AZZ.mjs} +2 -5
  40. package/dist/chunk-XNQO5AZZ.mjs.map +1 -0
  41. package/dist/chunk-YC4NBUGE.mjs +97 -0
  42. package/dist/chunk-YC4NBUGE.mjs.map +1 -0
  43. package/dist/components/chat/Button.js.map +1 -1
  44. package/dist/components/chat/Button.mjs +3 -3
  45. package/dist/components/chat/Chat.d.ts +17 -1
  46. package/dist/components/chat/Chat.js +378 -905
  47. package/dist/components/chat/Chat.js.map +1 -1
  48. package/dist/components/chat/Chat.mjs +12 -19
  49. package/dist/components/chat/ChatContext.d.ts +20 -0
  50. package/dist/components/chat/ChatContext.js +44 -74
  51. package/dist/components/chat/ChatContext.js.map +1 -1
  52. package/dist/components/chat/ChatContext.mjs +2 -2
  53. package/dist/components/chat/CodeBlock.js +58 -82
  54. package/dist/components/chat/CodeBlock.js.map +1 -1
  55. package/dist/components/chat/CodeBlock.mjs +2 -2
  56. package/dist/components/chat/Header.js +516 -4
  57. package/dist/components/chat/Header.js.map +1 -1
  58. package/dist/components/chat/Header.mjs +10 -3
  59. package/dist/components/chat/Icons.d.ts +10 -9
  60. package/dist/components/chat/Icons.js +125 -164
  61. package/dist/components/chat/Icons.js.map +1 -1
  62. package/dist/components/chat/Icons.mjs +9 -5
  63. package/dist/components/chat/Input.d.ts +1 -1
  64. package/dist/components/chat/Input.js +11 -9
  65. package/dist/components/chat/Input.js.map +1 -1
  66. package/dist/components/chat/Input.mjs +3 -3
  67. package/dist/components/chat/Markdown.js +58 -56
  68. package/dist/components/chat/Markdown.js.map +1 -1
  69. package/dist/components/chat/Markdown.mjs +3 -3
  70. package/dist/components/chat/Messages.d.ts +1 -1
  71. package/dist/components/chat/Messages.js +70 -60
  72. package/dist/components/chat/Messages.js.map +1 -1
  73. package/dist/components/chat/Messages.mjs +3 -3
  74. package/dist/components/chat/Modal.js +1708 -1749
  75. package/dist/components/chat/Modal.js.map +1 -1
  76. package/dist/components/chat/Modal.mjs +23 -23
  77. package/dist/components/chat/Popup.js +1708 -1749
  78. package/dist/components/chat/Popup.js.map +1 -1
  79. package/dist/components/chat/Popup.mjs +24 -24
  80. package/dist/components/chat/Response.js.map +1 -1
  81. package/dist/components/chat/Response.mjs +3 -3
  82. package/dist/components/chat/Sidebar.js +1710 -1751
  83. package/dist/components/chat/Sidebar.js.map +1 -1
  84. package/dist/components/chat/Sidebar.mjs +24 -24
  85. package/dist/components/chat/Suggestion.js +4 -40
  86. package/dist/components/chat/Suggestion.js.map +1 -1
  87. package/dist/components/chat/Suggestion.mjs +2 -2
  88. package/dist/components/chat/Window.js.map +1 -1
  89. package/dist/components/chat/Window.mjs +3 -3
  90. package/dist/components/chat/index.js +1710 -1751
  91. package/dist/components/chat/index.js.map +1 -1
  92. package/dist/components/chat/index.mjs +27 -27
  93. package/dist/components/chat/messages/AssistantMessage.js +211 -59
  94. package/dist/components/chat/messages/AssistantMessage.js.map +1 -1
  95. package/dist/components/chat/messages/AssistantMessage.mjs +5 -5
  96. package/dist/components/chat/messages/RenderTextMessage.js +18 -2
  97. package/dist/components/chat/messages/RenderTextMessage.js.map +1 -1
  98. package/dist/components/chat/messages/RenderTextMessage.mjs +1 -1
  99. package/dist/components/chat/props.d.ts +53 -0
  100. package/dist/components/chat/props.js.map +1 -1
  101. package/dist/components/crew/DefaultResponseRenderer.d.ts +110 -0
  102. package/dist/components/crew/DefaultResponseRenderer.js +175 -0
  103. package/dist/components/crew/DefaultResponseRenderer.js.map +1 -0
  104. package/dist/components/crew/DefaultResponseRenderer.mjs +10 -0
  105. package/dist/components/crew/DefaultResponseRenderer.mjs.map +1 -0
  106. package/dist/components/crew/DefaultStateRenderer.d.ts +88 -0
  107. package/dist/components/crew/DefaultStateRenderer.js +198 -0
  108. package/dist/components/crew/DefaultStateRenderer.js.map +1 -0
  109. package/dist/components/crew/DefaultStateRenderer.mjs +8 -0
  110. package/dist/components/crew/DefaultStateRenderer.mjs.map +1 -0
  111. package/dist/components/crew/index.d.ts +4 -0
  112. package/dist/components/crew/index.js +335 -0
  113. package/dist/components/crew/index.js.map +1 -0
  114. package/dist/components/crew/index.mjs +16 -0
  115. package/dist/components/crew/index.mjs.map +1 -0
  116. package/dist/components/crew/types.d.ts +340 -0
  117. package/dist/components/crew/types.js +19 -0
  118. package/dist/components/crew/types.js.map +1 -0
  119. package/dist/components/crew/types.mjs +2 -0
  120. package/dist/components/crew/types.mjs.map +1 -0
  121. package/dist/components/dev-console/console.js +51 -233
  122. package/dist/components/dev-console/console.js.map +1 -1
  123. package/dist/components/dev-console/console.mjs +5 -5
  124. package/dist/components/dev-console/index.js +51 -233
  125. package/dist/components/dev-console/index.js.map +1 -1
  126. package/dist/components/dev-console/index.mjs +5 -5
  127. package/dist/components/help-modal/index.js +29 -147
  128. package/dist/components/help-modal/index.js.map +1 -1
  129. package/dist/components/help-modal/index.mjs +1 -1
  130. package/dist/components/help-modal/modal.js +29 -147
  131. package/dist/components/help-modal/modal.js.map +1 -1
  132. package/dist/components/help-modal/modal.mjs +1 -1
  133. package/dist/components/index.d.ts +3 -0
  134. package/dist/components/index.js +2191 -1942
  135. package/dist/components/index.js.map +1 -1
  136. package/dist/components/index.mjs +43 -31
  137. package/dist/index.css +481 -90
  138. package/dist/index.css.map +1 -1
  139. package/dist/index.d.ts +3 -0
  140. package/dist/index.js +2192 -1943
  141. package/dist/index.js.map +1 -1
  142. package/dist/index.mjs +43 -31
  143. package/dist/types/css.d.ts +7 -1
  144. package/dist/types/css.js.map +1 -1
  145. package/package.json +4 -4
  146. package/src/components/chat/Chat.tsx +59 -22
  147. package/src/components/chat/ChatContext.tsx +29 -1
  148. package/src/components/chat/CodeBlock.tsx +2 -4
  149. package/src/components/chat/Header.tsx +8 -3
  150. package/src/components/chat/Icons.tsx +108 -108
  151. package/src/components/chat/Input.tsx +42 -38
  152. package/src/components/chat/Markdown.tsx +0 -3
  153. package/src/components/chat/Messages.tsx +68 -56
  154. package/src/components/chat/Suggestion.tsx +2 -3
  155. package/src/components/chat/messages/AssistantMessage.tsx +95 -3
  156. package/src/components/chat/messages/RenderTextMessage.tsx +17 -1
  157. package/src/components/chat/props.ts +66 -0
  158. package/src/components/crew/DefaultResponseRenderer.tsx +298 -0
  159. package/src/components/crew/DefaultStateRenderer.tsx +326 -0
  160. package/src/components/crew/index.ts +3 -0
  161. package/src/components/crew/types.ts +398 -0
  162. package/src/components/dev-console/console.tsx +16 -54
  163. package/src/components/help-modal/modal.tsx +38 -101
  164. package/src/components/index.ts +1 -0
  165. package/src/css/button.css +15 -4
  166. package/src/css/colors.css +27 -6
  167. package/src/css/console.css +46 -39
  168. package/src/css/crew.css +277 -0
  169. package/src/css/header.css +22 -5
  170. package/src/css/input.css +24 -17
  171. package/src/css/markdown.css +2 -1
  172. package/src/css/messages.css +125 -15
  173. package/src/css/panel.css +1 -0
  174. package/src/css/suggestions.css +14 -6
  175. package/src/styles.css +1 -0
  176. package/src/types/css.ts +7 -1
  177. package/dist/chunk-22K5DDPF.mjs.map +0 -1
  178. package/dist/chunk-2C3ANQCY.mjs.map +0 -1
  179. package/dist/chunk-3VNMQWGT.mjs +0 -25
  180. package/dist/chunk-3VNMQWGT.mjs.map +0 -1
  181. package/dist/chunk-6FTRYYR5.mjs.map +0 -1
  182. package/dist/chunk-CBBFRI3Q.mjs.map +0 -1
  183. package/dist/chunk-FZC7X5PK.mjs +0 -262
  184. package/dist/chunk-FZC7X5PK.mjs.map +0 -1
  185. package/dist/chunk-MMVDU6DF.mjs +0 -1
  186. package/dist/chunk-OFYI4UU4.mjs.map +0 -1
  187. package/dist/chunk-QXTRFMPM.mjs.map +0 -1
  188. package/dist/chunk-TI7SY2RI.mjs +0 -164
  189. package/dist/chunk-TI7SY2RI.mjs.map +0 -1
  190. package/dist/chunk-UPTB2MVO.mjs.map +0 -1
  191. package/dist/chunk-VEC45H6Q.mjs +0 -18
  192. package/dist/chunk-VEC45H6Q.mjs.map +0 -1
  193. package/dist/chunk-WGAZXTUA.mjs.map +0 -1
  194. package/dist/chunk-YQ3D5IQV.mjs.map +0 -1
  195. /package/dist/{chunk-YAGE7RCE.mjs.map → chunk-CGVOCLHN.mjs.map} +0 -0
  196. /package/dist/{chunk-AZU4QOV5.mjs.map → chunk-KG6DW6R2.mjs.map} +0 -0
  197. /package/dist/{chunk-3PJA5MFR.mjs.map → chunk-LKCAF2HG.mjs.map} +0 -0
  198. /package/dist/{chunk-ADTTDBLB.mjs.map → chunk-LXCH2BIB.mjs.map} +0 -0
  199. /package/dist/{chunk-MMVDU6DF.mjs.map → chunk-MWC5OV7Z.mjs.map} +0 -0
  200. /package/dist/{chunk-3XAXY2Z3.mjs.map → chunk-UZTZXMYS.mjs.map} +0 -0
  201. /package/dist/{chunk-RQNJNK2W.mjs.map → chunk-VC4NO5QZ.mjs.map} +0 -0
package/dist/index.css CHANGED
@@ -1,15 +1,35 @@
1
1
  /* src/css/colors.css */
2
2
  html {
3
- --copilot-kit-primary-color: rgb(59 130 246);
4
- --copilot-kit-contrast-color: rgb(255 255 255);
5
- --copilot-kit-secondary-color: rgb(243 244 246);
6
- --copilot-kit-secondary-contrast-color: rgb(0 0 0);
3
+ --copilot-kit-primary-color: rgb(28, 28, 28);
4
+ --copilot-kit-contrast-color: rgb(255, 255, 255);
5
+ --copilot-kit-secondary-color: rgb(83, 83, 83);
7
6
  --copilot-kit-background-color: rgb(255 255 255);
8
- --copilot-kit-muted-color: rgb(106 106 106);
9
- --copilot-kit-separator-color: rgba(0, 0, 0, 0.08);
7
+ --copilot-kit-muted-color: rgb(200 200 200);
8
+ --copilot-kit-text-light-color: rgb(255 255 255);
9
+ --copilot-kit-text-dark-color: rgb(28, 28, 28);
10
+ --copilot-kit-separator-color: rgb(200 200 200);
10
11
  --copilot-kit-scrollbar-color: rgba(0, 0, 0, 0.2);
12
+ --copilot-kit-header-color: rgb(255 255 255);
11
13
  --copilot-kit-response-button-color: #333;
12
14
  --copilot-kit-response-button-background-color: #fff;
15
+ --copilot-kit-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
16
+ --copilot-kit-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
17
+ --copilot-kit-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
18
+ .variant-blue {
19
+ --copilot-kit-primary-color: rgb(59 130 246);
20
+ --copilot-kit-contrast-color: rgb(255 255 255);
21
+ --copilot-kit-secondary-color: rgb(243 244 246);
22
+ --copilot-kit-background-color: rgb(255 255 255);
23
+ --copilot-kit-muted-color: rgb(200 200 200);
24
+ --copilot-kit-text-color: rgb(106 106 106);
25
+ --copilot-kit-separator-color: rgb(200 200 200);
26
+ --copilot-kit-scrollbar-color: rgba(0, 0, 0, 0.2);
27
+ --copilot-kit-response-button-color: #333;
28
+ --copilot-kit-response-button-background-color: #fff;
29
+ --copilot-kit-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
30
+ --copilot-kit-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
31
+ --copilot-kit-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
32
+ }
13
33
  }
14
34
 
15
35
  /* src/css/popup.css */
@@ -100,20 +120,23 @@ html {
100
120
  align-items: center;
101
121
  justify-content: center;
102
122
  border-radius: 50%;
103
- border: 1px solid rgba(255, 255, 255, 0.2);
123
+ border: 1px solid var(--copilot-kit-contrast-color);
104
124
  outline: none;
105
125
  position: relative;
106
126
  transform: scale(1);
107
- transition: transform 200ms;
127
+ transition: all 0.2s ease;
108
128
  background-color: var(--copilot-kit-primary-color);
109
129
  color: var(--copilot-kit-contrast-color);
110
130
  cursor: pointer;
131
+ box-shadow: var(--copilot-kit-shadow-sm);
111
132
  }
112
133
  .copilotKitButton:hover {
113
- transform: scale(1.1);
134
+ transform: scale(1.05);
135
+ box-shadow: var(--copilot-kit-shadow-md);
114
136
  }
115
137
  .copilotKitButton:active {
116
- transform: scale(0.75);
138
+ transform: scale(0.95);
139
+ box-shadow: var(--copilot-kit-shadow-sm);
117
140
  }
118
141
  .copilotKitButtonIcon {
119
142
  transition: opacity 100ms, transform 300ms;
@@ -121,6 +144,13 @@ html {
121
144
  top: 50%;
122
145
  left: 50%;
123
146
  transform: translate(-50%, -50%);
147
+ display: flex;
148
+ align-items: center;
149
+ justify-content: center;
150
+ }
151
+ .copilotKitButtonIcon svg {
152
+ width: 1.5rem;
153
+ height: 1.5rem;
124
154
  }
125
155
  .copilotKitButton.open .copilotKitButtonIconOpen {
126
156
  transform: translate(-50%, -50%) scale(0) rotate(90deg);
@@ -144,21 +174,26 @@ html {
144
174
  height: 56px;
145
175
  font-weight: 500;
146
176
  display: flex;
147
- justify-content: center;
148
177
  align-items: center;
149
178
  position: relative;
150
- background-color: var(--copilot-kit-primary-color);
151
179
  color: var(--copilot-kit-contrast-color);
152
180
  border-top-left-radius: 0;
153
181
  border-top-right-radius: 0;
154
182
  border-bottom: 1px solid var(--copilot-kit-separator-color);
183
+ padding-left: 1.5rem;
184
+ background-color: var(--copilot-kit-header-color);
185
+ justify-content: space-between;
186
+ z-index: 2;
155
187
  }
156
188
  .copilotKitSidebar .copilotKitHeader {
157
189
  border-radius: 0;
158
190
  }
191
+ .copilotKitHeaderControls {
192
+ display: flex;
193
+ }
159
194
  @media (min-width: 640px) {
160
195
  .copilotKitHeader {
161
- padding-left: 24px;
196
+ padding-left: 1.5rem;
162
197
  padding-right: 24px;
163
198
  border-top-left-radius: 8px;
164
199
  border-top-right-radius: 8px;
@@ -166,15 +201,25 @@ html {
166
201
  }
167
202
  .copilotKitHeader > button {
168
203
  border: 0;
169
- padding: 0px;
204
+ padding: 8px;
170
205
  position: absolute;
171
206
  top: 50%;
172
207
  right: 16px;
173
208
  transform: translateY(-50%);
174
209
  outline: none;
175
- color: var(--copilot-kit-contrast-color);
210
+ color: var(--copilot-kit-muted-color);
176
211
  background-color: transparent;
177
212
  cursor: pointer;
213
+ border-radius: 50%;
214
+ display: flex;
215
+ align-items: center;
216
+ justify-content: center;
217
+ transition: background-color 0.2s ease;
218
+ width: 35px;
219
+ height: 35px;
220
+ }
221
+ .copilotKitHeader > button:hover {
222
+ color: color-mix(in srgb, var(--copilot-kit-muted-color) 80%, black);
178
223
  }
179
224
  .copilotKitHeader > button:focus {
180
225
  outline: none;
@@ -182,21 +227,23 @@ html {
182
227
 
183
228
  /* src/css/input.css */
184
229
  .copilotKitInput {
185
- border-top: 1px solid var(--copilot-kit-separator-color);
186
- padding-left: 2rem;
187
- padding-right: 1rem;
188
- padding-top: 1rem;
189
- padding-bottom: 1rem;
190
230
  display: flex;
191
- align-items: center;
231
+ flex-direction: column;
192
232
  cursor: text;
193
233
  position: relative;
194
- border-bottom-left-radius: 0.75rem;
195
- border-bottom-right-radius: 0.75rem;
196
- background-color: var(--copilot-kit-background-color);
234
+ background-color: #fbfbfb;
235
+ border-radius: 20px;
236
+ border: 1px solid var(--copilot-kit-separator-color);
237
+ padding: 12px 14px;
238
+ height: 75px;
239
+ }
240
+ .copilotKitInputContainer {
241
+ width: 95%;
242
+ margin: 0 auto;
243
+ padding: 0 0 15px 0;
197
244
  }
198
245
  .copilotKitInput > .copilotKitInputControls > button {
199
- padding: 0.25rem;
246
+ padding: 0;
200
247
  cursor: pointer;
201
248
  transition-property: transform;
202
249
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -218,19 +265,23 @@ html {
218
265
  text-shadow: none;
219
266
  display: inline-block;
220
267
  text-align: center;
221
- margin-left: 0.5rem;
268
+ width: 24px;
269
+ height: 24px;
222
270
  }
223
271
  .copilotKitInput > .copilotKitInputControls > button:not([disabled]) {
224
272
  color: var(--copilot-kit-primary-color);
225
273
  }
226
274
  .copilotKitInput > .copilotKitInputControls > button:not([disabled]):hover {
227
- transform: scale(1.1);
275
+ color: color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);
276
+ transform: scale(1.05);
228
277
  }
229
278
  .copilotKitInput > .copilotKitInputControls > button[disabled] {
230
279
  color: var(--copilot-kit-muted-color);
280
+ cursor: default;
231
281
  }
232
282
  .copilotKitInputControls {
233
283
  display: flex;
284
+ gap: 3px;
234
285
  }
235
286
  .copilotKitInput > textarea {
236
287
  flex: 1;
@@ -243,21 +294,21 @@ html {
243
294
  -moz-osx-font-smoothing: grayscale;
244
295
  cursor: text;
245
296
  font-size: 0.875rem;
246
- line-height: 1.25rem;
297
+ line-height: 1.5rem;
247
298
  margin: 0;
248
299
  padding: 0;
249
300
  font-family: inherit;
250
301
  font-weight: inherit;
251
- color: var(--copilot-kit-secondary-contrast-color);
302
+ color: var(--copilot-kit-text-color);
252
303
  border: 0px;
253
- background-color: var(--copilot-kit-background-color);
304
+ background-color: #fbfbfb;
254
305
  }
255
306
  .copilotKitInput > textarea::placeholder {
256
- color: var(--copilot-kit-muted-color);
307
+ color: #808080;
257
308
  opacity: 1;
258
309
  }
259
310
  .copilotKitInput > .copilotKitInputControls > button.copilotKitPushToTalkRecording {
260
- background-color: red;
311
+ background-color: #ec0000;
261
312
  color: white;
262
313
  border-radius: 50%;
263
314
  animation: copilotKitPulseAnimation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
@@ -267,13 +318,27 @@ html {
267
318
  .copilotKitMessages {
268
319
  overflow-y: scroll;
269
320
  flex: 1;
270
- padding: 1rem 2rem;
271
321
  display: flex;
272
322
  flex-direction: column;
273
323
  background-color: var(--copilot-kit-background-color);
324
+ justify-content: space-between;
325
+ z-index: 1;
326
+ }
327
+ .copilotKitMessagesContainer {
328
+ padding: 1rem 24px;
329
+ display: flex;
330
+ flex-direction: column;
331
+ }
332
+ .copilotKitMessagesFooter {
333
+ display: flex;
334
+ padding: 0;
335
+ margin: 0 auto 8px auto;
336
+ justify-content: flex-start;
337
+ flex-direction: column;
338
+ width: 90%;
274
339
  }
275
340
  .copilotKitMessages::-webkit-scrollbar {
276
- width: 9px;
341
+ width: 6px;
277
342
  }
278
343
  .copilotKitMessages::-webkit-scrollbar-thumb {
279
344
  background-color: var(--copilot-kit-scrollbar-color);
@@ -287,27 +352,77 @@ html {
287
352
  background: transparent;
288
353
  }
289
354
  .copilotKitMessage {
290
- border-radius: 0.5rem;
291
- padding: 1rem;
292
- font-size: 0.875rem;
293
- line-height: 1.25rem;
355
+ border-radius: 15px;
356
+ padding: 8px 12px;
357
+ font-size: 1rem;
358
+ line-height: 1.5;
294
359
  overflow-wrap: break-word;
295
360
  max-width: 80%;
296
361
  margin-bottom: 0.5rem;
362
+ color: var(--copilot-kit-text-color);
297
363
  }
298
364
  .copilotKitMessage.copilotKitUserMessage {
299
365
  background: var(--copilot-kit-primary-color);
300
366
  color: var(--copilot-kit-contrast-color);
301
367
  margin-left: auto;
302
368
  white-space: pre-wrap;
369
+ line-height: 1.75;
370
+ font-size: 1rem;
303
371
  }
304
372
  .copilotKitMessage.copilotKitAssistantMessage {
305
- background: var(--copilot-kit-secondary-color);
306
- color: var(--copilot-kit-secondary-contrast-color);
373
+ background: transparent;
307
374
  margin-right: auto;
375
+ padding-left: 0;
376
+ position: relative;
377
+ max-width: 100%;
308
378
  }
309
- .copilotKitMessage.copilotKitUserMessage + .copilotKitMessage.copilotKitAssistantMessage {
310
- margin-top: 1.5rem;
379
+ .copilotKitMessage.copilotKitAssistantMessage .copilotKitMessageControls {
380
+ position: absolute;
381
+ left: 0;
382
+ display: flex;
383
+ gap: 1rem;
384
+ opacity: 0;
385
+ transition: opacity 0.2s ease;
386
+ padding: 5px 0 0 0;
387
+ }
388
+ .copilotKitMessageControls.currentMessage {
389
+ opacity: 1 !important;
390
+ }
391
+ .copilotKitMessage.copilotKitAssistantMessage:hover .copilotKitMessageControls {
392
+ opacity: 1;
393
+ }
394
+ @media (max-width: 768px) {
395
+ .copilotKitMessage.copilotKitAssistantMessage .copilotKitMessageControls {
396
+ opacity: 1;
397
+ }
398
+ }
399
+ .copilotKitMessageControlButton {
400
+ width: 20px;
401
+ height: 20px;
402
+ display: flex;
403
+ align-items: center;
404
+ border-radius: 0.5rem;
405
+ justify-content: center;
406
+ color: var(--copilot-kit-primary-color);
407
+ cursor: pointer;
408
+ transition: all 0.2s ease;
409
+ padding: 0;
410
+ z-index: 10;
411
+ margin: 0;
412
+ }
413
+ .copilotKitMessageControlButton:hover {
414
+ color: color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);
415
+ transform: scale(1.05);
416
+ }
417
+ .copilotKitMessageControlButton:active {
418
+ color: color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);
419
+ transform: scale(1.05);
420
+ }
421
+ .copilotKitMessageControlButton svg {
422
+ width: 1rem;
423
+ height: 1rem;
424
+ display: block;
425
+ pointer-events: none;
311
426
  }
312
427
  .copilotKitMessage.copilotKitAssistantMessage + .copilotKitMessage.copilotKitUserMessage {
313
428
  margin-top: 1.5rem;
@@ -318,12 +433,43 @@ html {
318
433
  }
319
434
  .copilotKitMessage .inProgressLabel {
320
435
  margin-left: 10px;
436
+ opacity: 0.7;
321
437
  }
322
- .copilotKitMessages footer {
323
- flex-grow: 1;
324
- display: flex;
325
- flex-direction: column;
326
- justify-content: flex-end;
438
+ @keyframes copilotKitSpinAnimation {
439
+ 0% {
440
+ transform: rotate(0deg);
441
+ }
442
+ 100% {
443
+ transform: rotate(360deg);
444
+ }
445
+ }
446
+ .copilotKitSpinner {
447
+ display: inline-block;
448
+ width: 16px;
449
+ height: 16px;
450
+ border: 2px solid var(--copilot-kit-contrast-color);
451
+ border-radius: 50%;
452
+ border-top-color: var(--copilot-kit-primary-color);
453
+ animation: copilotKitSpinAnimation 1s linear infinite;
454
+ margin-left: 8px;
455
+ }
456
+ @keyframes copilotKitActivityDotAnimation {
457
+ 0%, 80%, 100% {
458
+ transform: scale(0.5);
459
+ opacity: 0.5;
460
+ }
461
+ 40% {
462
+ transform: scale(1);
463
+ opacity: 1;
464
+ }
465
+ }
466
+ .copilotKitActivityDot {
467
+ display: inline-block;
468
+ width: 6px;
469
+ height: 6px;
470
+ border-radius: 50%;
471
+ background-color: var(--copilot-kit-primary-color);
472
+ animation: copilotKitActivityDotAnimation 1.4s infinite ease-in-out both;
327
473
  }
328
474
 
329
475
  /* src/css/window.css */
@@ -481,6 +627,8 @@ html {
481
627
  .copilotKitMarkdown p {
482
628
  padding: 0px;
483
629
  margin: 0px;
630
+ line-height: 1.75;
631
+ font-size: 1rem;
484
632
  }
485
633
  .copilotKitMarkdown p:not(:last-child),
486
634
  .copilotKitMarkdown pre:not(:last-child),
@@ -552,7 +700,6 @@ html {
552
700
  line-height: 1.25rem;
553
701
  font-weight: 500;
554
702
  height: 2.5rem;
555
- width: 2.5rem;
556
703
  padding: 3px;
557
704
  margin: 2px;
558
705
  }
@@ -564,7 +711,7 @@ html {
564
711
  .copilotKitMessages footer .suggestions {
565
712
  display: flex;
566
713
  flex-wrap: wrap;
567
- gap: 8px;
714
+ gap: 6px;
568
715
  }
569
716
  .copilotKitMessages footer h6 {
570
717
  font-weight: 500;
@@ -572,17 +719,24 @@ html {
572
719
  margin-bottom: 8px;
573
720
  }
574
721
  .copilotKitMessages footer .suggestions .suggestion {
575
- padding: 8px 12px;
722
+ padding: 6px 10px;
576
723
  font-size: 0.7rem;
577
- border-radius: 0.5rem;
578
- background: var(--copilot-kit-primary-color);
579
- color: var(--copilot-kit-contrast-color);
724
+ border-radius: 15px;
725
+ border: 1px solid var(--copilot-kit-muted-color);
726
+ color: var(--copilot-kit-text-color);
727
+ box-shadow: 0 5px 5px 0px rgba(0, 0, 0, .01), 0 2px 3px 0px rgba(0, 0, 0, .02);
728
+ }
729
+ .copilotKitMessages footer .suggestions .suggestion.loading {
730
+ padding: 0;
731
+ font-size: 0.7rem;
732
+ border: none;
733
+ color: var(--copilot-kit-text-color);
580
734
  }
581
735
  .copilotKitMessages footer .suggestions button {
582
736
  transition: transform 0.3s ease;
583
737
  }
584
738
  .copilotKitMessages footer .suggestions button:not(:disabled):hover {
585
- transform: scale(1.05);
739
+ transform: scale(1.03);
586
740
  }
587
741
  .copilotKitMessages footer .suggestions button:disabled {
588
742
  cursor: wait;
@@ -599,6 +753,7 @@ html {
599
753
  -moz-tab-size: 4;
600
754
  -o-tab-size: 4;
601
755
  tab-size: 4;
756
+ background: white;
602
757
  font-family:
603
758
  ui-sans-serif,
604
759
  system-ui,
@@ -630,33 +785,28 @@ html {
630
785
 
631
786
  /* src/css/console.css */
632
787
  .copilotKitDevConsole {
633
- background-color: #f3f4f6;
634
- padding-left: 10px;
635
- padding-right: 10px;
636
788
  display: flex;
637
789
  align-items: center;
638
- border-bottom: 1px solid #cecece;
639
- padding-top: 10px;
640
- padding-bottom: 10px;
790
+ gap: 5px;
791
+ margin: 0 15px;
641
792
  }
642
793
  .copilotKitDevConsole.copilotKitDevConsoleWarnOutdated {
643
794
  background-color: #f9caca;
644
795
  }
645
796
  .copilotKitDevConsole .copilotKitVersionInfo {
646
- flex: 1;
647
- margin-left: 18px;
648
797
  display: flex;
649
- flex-direction: column;
650
- gap: 2px;
651
- }
652
- .copilotKitDevConsole .copilotKitVersionInfo header {
653
- font-size: 11px;
654
- font-weight: bold;
655
- }
656
- .copilotKitDevConsole .copilotKitVersionInfo footer {
657
- margin-top: 10px;
798
+ position: absolute;
799
+ bottom: -25px;
800
+ padding: 3px 5px;
801
+ left: 0;
802
+ width: 100%;
803
+ justify-content: center;
804
+ gap: 10px;
805
+ font-size: 0.8rem;
806
+ align-items: center;
807
+ background: #ebb305;
658
808
  }
659
- .copilotKitDevConsole .copilotKitVersionInfo footer button {
809
+ .copilotKitDevConsole .copilotKitVersionInfo button {
660
810
  font-size: 11px;
661
811
  font-weight: normal;
662
812
  font-family: monospace;
@@ -672,50 +822,49 @@ html {
672
822
  width: 260px;
673
823
  text-overflow: ellipsis;
674
824
  }
675
- .copilotKitDevConsole .copilotKitVersionInfo header aside {
825
+ .copilotKitDevConsole .copilotKitVersionInfo aside {
676
826
  display: inline;
677
827
  font-weight: normal;
678
828
  color: #7f7a7a;
679
829
  margin-left: 5px;
680
830
  }
681
- .copilotKitDevConsole .copilotKitVersionInfo section {
682
- font-size: 11px;
683
- }
684
- .copilotKitDevConsole .copilotKitVersionInfo section svg {
831
+ .copilotKitDevConsole .copilotKitVersionInfo svg {
685
832
  margin-left: 3px;
686
833
  margin-top: -3px;
687
834
  }
688
- .copilotKitDevConsole .copilotKitDebugMenuButton {
835
+ .copilotKitDevConsole .copilotKitDebugMenuTriggerButton {
689
836
  font-size: 11px;
690
837
  font-weight: bold;
691
838
  display: flex;
692
- width: 90px;
839
+ padding: 0 10px;
693
840
  height: 30px;
694
- background-color: #d8d8d8;
695
- border: 1px solid #979797;
696
- border-radius: 6px;
841
+ background-color: transparent;
842
+ border: 1px solid var(--copilot-kit-muted-color);
843
+ border-radius: 20px;
697
844
  align-items: center;
698
845
  justify-content: center;
699
846
  outline: none;
700
847
  }
701
- .copilotKitDebugMenuButton.compact {
848
+ .copilotKitDebugMenuTriggerButton.compact {
702
849
  width: 35px;
703
850
  color: black;
704
851
  justify-content: center;
705
852
  outline: none;
706
853
  font-size: 8px;
707
854
  }
708
- .copilotKitDevConsole .copilotKitDebugMenuButton:hover {
709
- background-color: #c7c7c7;
855
+ .copilotKitDevConsole .copilotKitDebugMenuTriggerButton:hover {
856
+ background-color: color-mix(in srgb, var(--copilot-kit-dev-console-bg) 95%, black);
710
857
  }
711
- .copilotKitDevConsole .copilotKitDebugMenuButton > svg {
858
+ .copilotKitDevConsole .copilotKitDebugMenuTriggerButton > svg {
712
859
  margin-left: 10px;
713
860
  }
714
861
  .copilotKitDebugMenu {
715
- background-color: #d8d8d8;
862
+ --copilot-kit-dev-console-bg: #f8f8fa;
863
+ --copilot-kit-dev-console-border: color-mix(in srgb, var(--copilot-kit-dev-console-bg) 80%, black);
716
864
  margin-top: 2px;
717
865
  border-radius: 6px;
718
- border: 1px solid #979797;
866
+ background-color: var(--copilot-kit-dev-console-bg);
867
+ border: 1px solid var(--copilot-kit-dev-console-border);
719
868
  padding: 0.25rem;
720
869
  outline: none;
721
870
  font-size: 13px;
@@ -733,7 +882,7 @@ html {
733
882
  cursor: pointer;
734
883
  }
735
884
  .copilotKitDebugMenuItem:hover {
736
- background-color: #c7c7c7;
885
+ background-color: color-mix(in srgb, var(--copilot-kit-dev-console-bg) 92%, black);
737
886
  border-radius: 4px;
738
887
  }
739
888
  .copilotKitDebugMenu[data-closed] {
@@ -743,9 +892,251 @@ html {
743
892
  .copilotKitDebugMenu hr {
744
893
  height: 1px;
745
894
  border: none;
746
- background-color: #979797;
895
+ background-color: var(--copilot-kit-dev-console-border);
747
896
  margin: 0.25rem;
748
897
  }
898
+ .copilotKitHelpItemButton {
899
+ display: block;
900
+ text-align: center;
901
+ width: 100%;
902
+ padding: 4px 6px;
903
+ border-radius: 15px;
904
+ font-size: 0.8rem;
905
+ border: 1px solid var(--copilot-kit-muted-color);
906
+ color: var(--copilot-kit-text-color);
907
+ box-shadow: 0 5px 5px 0px rgba(0, 0, 0, .01), 0 2px 3px 0px rgba(0, 0, 0, .02);
908
+ background-color: var(--copilot-kit-dev-console-bg);
909
+ }
910
+ .copilotKitHelpItemButton:hover {
911
+ background-color: #f9f9f9;
912
+ }
913
+
914
+ /* src/css/crew.css */
915
+ .copilotkit-response {
916
+ text-align: right;
917
+ }
918
+ .copilotkit-response-content {
919
+ margin-bottom: 0.5rem;
920
+ font-size: 0.875rem;
921
+ color: #4b5563;
922
+ background-color: #f9fafb;
923
+ padding: 0.5rem;
924
+ border-radius: 0.25rem;
925
+ text-align: left;
926
+ }
927
+ .copilotkit-response-actions {
928
+ display: inline-flex;
929
+ flex-direction: column;
930
+ align-items: flex-end;
931
+ }
932
+ .copilotkit-response-label {
933
+ font-size: 0.75rem;
934
+ color: #6b7280;
935
+ margin-bottom: 0.25rem;
936
+ display: flex;
937
+ align-items: center;
938
+ }
939
+ .copilotkit-toggle-button {
940
+ margin-right: 0.25rem;
941
+ background: none;
942
+ border: none;
943
+ padding: 0;
944
+ cursor: pointer;
945
+ display: flex;
946
+ align-items: center;
947
+ justify-content: center;
948
+ }
949
+ .copilotkit-icon {
950
+ height: 0.75rem;
951
+ width: 0.75rem;
952
+ color: #6b7280;
953
+ }
954
+ .copilotkit-response-buttons {
955
+ display: flex;
956
+ gap: 0.5rem;
957
+ }
958
+ .copilotkit-response-button {
959
+ padding: 0.25rem 0.5rem;
960
+ font-size: 0.75rem;
961
+ background-color: #f3f4f6;
962
+ color: #4b5563;
963
+ border-radius: 0.25rem;
964
+ border: none;
965
+ cursor: pointer;
966
+ transition: background-color 0.2s;
967
+ }
968
+ .copilotkit-response-button:hover {
969
+ background-color: #e5e7eb;
970
+ }
971
+ .copilotkit-response-button:focus {
972
+ outline: none;
973
+ }
974
+ .copilotkit-response-completed-feedback {
975
+ background-color: #f9fafb;
976
+ padding: 0.5rem;
977
+ border-radius: 0.375rem;
978
+ display: inline-flex;
979
+ align-items: center;
980
+ }
981
+ .copilotkit-response-completed-feedback span {
982
+ color: #4b5563;
983
+ font-size: 0.75rem;
984
+ font-weight: 500;
985
+ }
986
+ .copilotkit-state {
987
+ font-size: 0.875rem;
988
+ margin-bottom: 1rem;
989
+ }
990
+ .copilotkit-state-header {
991
+ display: flex;
992
+ align-items: center;
993
+ gap: 0.25rem;
994
+ cursor: pointer;
995
+ user-select: none;
996
+ margin-bottom: 0.25rem;
997
+ }
998
+ .copilotkit-state-label {
999
+ color: #4b5563;
1000
+ font-size: 0.875rem;
1001
+ }
1002
+ .copilotkit-state-label-loading {
1003
+ display: inline-flex;
1004
+ align-items: center;
1005
+ animation: pulse 1.5s infinite;
1006
+ }
1007
+ .copilotkit-state-content {
1008
+ padding-left: 1rem;
1009
+ max-height: 250px;
1010
+ overflow: auto;
1011
+ padding-top: 0.375rem;
1012
+ border-left: 1px solid #e5e7eb;
1013
+ margin-left: 0.375rem;
1014
+ }
1015
+ .copilotkit-state-item {
1016
+ padding: 0.25rem 0;
1017
+ margin-bottom: 0.25rem;
1018
+ transition: all 0.3s ease;
1019
+ }
1020
+ .copilotkit-state-item-newest {
1021
+ animation: appear 0.5s ease-out;
1022
+ }
1023
+ .copilotkit-state-item-header {
1024
+ font-size: 0.75rem;
1025
+ opacity: 0.7;
1026
+ }
1027
+ .copilotkit-state-item-thought {
1028
+ margin-top: 0.125rem;
1029
+ font-size: 0.75rem;
1030
+ opacity: 0.8;
1031
+ }
1032
+ .copilotkit-state-item-result {
1033
+ margin-top: 0.125rem;
1034
+ font-size: 0.75rem;
1035
+ }
1036
+ .copilotkit-state-item-description {
1037
+ margin-top: 0.125rem;
1038
+ font-size: 0.75rem;
1039
+ opacity: 0.8;
1040
+ }
1041
+ .copilotkit-state-empty {
1042
+ padding: 0.25rem 0;
1043
+ font-size: 0.75rem;
1044
+ opacity: 0.7;
1045
+ }
1046
+ .copilotkit-skeleton {
1047
+ padding: 0.125rem 0;
1048
+ animation: pulse 1.5s infinite;
1049
+ }
1050
+ .copilotkit-skeleton-header {
1051
+ display: flex;
1052
+ justify-content: space-between;
1053
+ }
1054
+ .copilotkit-skeleton-title {
1055
+ height: 0.625rem;
1056
+ width: 4rem;
1057
+ background-color: #e5e7eb;
1058
+ border-radius: 0.25rem;
1059
+ }
1060
+ .copilotkit-skeleton-subtitle {
1061
+ height: 0.5rem;
1062
+ width: 2rem;
1063
+ background-color: #e5e7eb;
1064
+ border-radius: 0.25rem;
1065
+ }
1066
+ .copilotkit-skeleton-content {
1067
+ margin-top: 0.125rem;
1068
+ height: 1.5rem;
1069
+ background-color: #e5e7eb;
1070
+ border-radius: 0.25rem;
1071
+ }
1072
+ .copilotkit-loader {
1073
+ animation: spin 1.5s linear infinite;
1074
+ }
1075
+ .copilotkit-spinner {
1076
+ animation: spin 1.5s linear infinite;
1077
+ }
1078
+ @keyframes appear {
1079
+ 0% {
1080
+ opacity: 0;
1081
+ transform: translateY(8px);
1082
+ }
1083
+ 100% {
1084
+ opacity: 1;
1085
+ transform: translateY(0);
1086
+ }
1087
+ }
1088
+ @keyframes pulse {
1089
+ 0%, 100% {
1090
+ opacity: 0.4;
1091
+ }
1092
+ 50% {
1093
+ opacity: 1;
1094
+ }
1095
+ }
1096
+ @keyframes spin {
1097
+ 0% {
1098
+ transform: rotate(0deg);
1099
+ }
1100
+ 100% {
1101
+ transform: rotate(360deg);
1102
+ }
1103
+ }
1104
+ @media (prefers-color-scheme: dark) {
1105
+ .copilotkit-response-content {
1106
+ color: #9ca3af;
1107
+ background-color: #1f2937;
1108
+ }
1109
+ .copilotkit-response-label {
1110
+ color: #9ca3af;
1111
+ }
1112
+ .copilotkit-icon {
1113
+ color: #9ca3af;
1114
+ }
1115
+ .copilotkit-response-button {
1116
+ background-color: #1f2937;
1117
+ color: #d1d5db;
1118
+ }
1119
+ .copilotkit-response-button:hover {
1120
+ background-color: #374151;
1121
+ }
1122
+ .copilotkit-response-completed-feedback {
1123
+ background-color: #1f2937;
1124
+ }
1125
+ .copilotkit-response-completed-feedback span {
1126
+ color: #e5e7eb;
1127
+ }
1128
+ .copilotkit-state-label {
1129
+ color: #d1d5db;
1130
+ }
1131
+ .copilotkit-state-content {
1132
+ border-left-color: #374151;
1133
+ }
1134
+ .copilotkit-skeleton-title,
1135
+ .copilotkit-skeleton-subtitle,
1136
+ .copilotkit-skeleton-content {
1137
+ background-color: #374151;
1138
+ }
1139
+ }
749
1140
 
750
1141
  /* src/styles.css */
751
1142
  /*# sourceMappingURL=index.css.map */