@copilotkit/react-ui 1.51.5-next.0 → 1.51.5-next.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.
Files changed (339) hide show
  1. package/.attw.json +3 -0
  2. package/CHANGELOG.md +17 -0
  3. package/dist/index.cjs +2737 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.css +258 -70
  6. package/dist/index.css.map +1 -1
  7. package/dist/index.d.cts +781 -0
  8. package/dist/index.d.cts.map +1 -0
  9. package/dist/index.d.mts +781 -0
  10. package/dist/index.d.mts.map +1 -0
  11. package/dist/index.mjs +2685 -81
  12. package/dist/index.mjs.map +1 -1
  13. package/dist/index.umd.js +2750 -25
  14. package/dist/index.umd.js.map +1 -1
  15. package/package.json +19 -18
  16. package/src/components/chat/Popup.tsx +1 -1
  17. package/src/components/chat/Sidebar.tsx +1 -1
  18. package/tsdown.config.ts +58 -0
  19. package/vitest.config.mjs +11 -0
  20. package/dist/chunk-2QEDCM6H.mjs +0 -150
  21. package/dist/chunk-2QEDCM6H.mjs.map +0 -1
  22. package/dist/chunk-6SMTHXVA.mjs +0 -28
  23. package/dist/chunk-6SMTHXVA.mjs.map +0 -1
  24. package/dist/chunk-6TLDRWAD.mjs +0 -95
  25. package/dist/chunk-6TLDRWAD.mjs.map +0 -1
  26. package/dist/chunk-72FQQMQ2.mjs +0 -25
  27. package/dist/chunk-72FQQMQ2.mjs.map +0 -1
  28. package/dist/chunk-AOUHT4JR.mjs +0 -34
  29. package/dist/chunk-AOUHT4JR.mjs.map +0 -1
  30. package/dist/chunk-BNJX66OH.mjs +0 -118
  31. package/dist/chunk-BNJX66OH.mjs.map +0 -1
  32. package/dist/chunk-C27LZFA5.mjs +0 -97
  33. package/dist/chunk-C27LZFA5.mjs.map +0 -1
  34. package/dist/chunk-C7WM7GM3.mjs +0 -235
  35. package/dist/chunk-C7WM7GM3.mjs.map +0 -1
  36. package/dist/chunk-CNIC5HO5.mjs +0 -36
  37. package/dist/chunk-CNIC5HO5.mjs.map +0 -1
  38. package/dist/chunk-CQCXH5LY.mjs +0 -143
  39. package/dist/chunk-CQCXH5LY.mjs.map +0 -1
  40. package/dist/chunk-DM2V5WTG.mjs +0 -34
  41. package/dist/chunk-DM2V5WTG.mjs.map +0 -1
  42. package/dist/chunk-DSHTRV2R.mjs +0 -140
  43. package/dist/chunk-DSHTRV2R.mjs.map +0 -1
  44. package/dist/chunk-EACIYBQH.mjs +0 -32
  45. package/dist/chunk-EACIYBQH.mjs.map +0 -1
  46. package/dist/chunk-EFZPSZWO.mjs +0 -1
  47. package/dist/chunk-EFZPSZWO.mjs.map +0 -1
  48. package/dist/chunk-GBAPANZE.mjs +0 -323
  49. package/dist/chunk-GBAPANZE.mjs.map +0 -1
  50. package/dist/chunk-GFE5ZSPV.mjs +0 -112
  51. package/dist/chunk-GFE5ZSPV.mjs.map +0 -1
  52. package/dist/chunk-HHLX4MQN.mjs +0 -31
  53. package/dist/chunk-HHLX4MQN.mjs.map +0 -1
  54. package/dist/chunk-ICA2EXIX.mjs +0 -187
  55. package/dist/chunk-ICA2EXIX.mjs.map +0 -1
  56. package/dist/chunk-IU3WTXLQ.mjs +0 -1
  57. package/dist/chunk-IU3WTXLQ.mjs.map +0 -1
  58. package/dist/chunk-IWOCQACI.mjs +0 -73
  59. package/dist/chunk-IWOCQACI.mjs.map +0 -1
  60. package/dist/chunk-JGMFJZMG.mjs +0 -11
  61. package/dist/chunk-JGMFJZMG.mjs.map +0 -1
  62. package/dist/chunk-JYHRHKV5.mjs +0 -90
  63. package/dist/chunk-JYHRHKV5.mjs.map +0 -1
  64. package/dist/chunk-KXE2JCUH.mjs +0 -1
  65. package/dist/chunk-KXE2JCUH.mjs.map +0 -1
  66. package/dist/chunk-LIXN3OVQ.mjs +0 -405
  67. package/dist/chunk-LIXN3OVQ.mjs.map +0 -1
  68. package/dist/chunk-MC6PY7XH.mjs +0 -456
  69. package/dist/chunk-MC6PY7XH.mjs.map +0 -1
  70. package/dist/chunk-MMVDU6DF.mjs +0 -1
  71. package/dist/chunk-MMVDU6DF.mjs.map +0 -1
  72. package/dist/chunk-MRXNTQOX.mjs +0 -59
  73. package/dist/chunk-MRXNTQOX.mjs.map +0 -1
  74. package/dist/chunk-OQWEOBRX.mjs +0 -120
  75. package/dist/chunk-OQWEOBRX.mjs.map +0 -1
  76. package/dist/chunk-P34CL4LC.mjs +0 -82
  77. package/dist/chunk-P34CL4LC.mjs.map +0 -1
  78. package/dist/chunk-PF3QBO7V.mjs +0 -133
  79. package/dist/chunk-PF3QBO7V.mjs.map +0 -1
  80. package/dist/chunk-PLHTVHUW.mjs +0 -82
  81. package/dist/chunk-PLHTVHUW.mjs.map +0 -1
  82. package/dist/chunk-PP2A5RP6.mjs +0 -21
  83. package/dist/chunk-PP2A5RP6.mjs.map +0 -1
  84. package/dist/chunk-Q64GLWPQ.mjs +0 -30
  85. package/dist/chunk-Q64GLWPQ.mjs.map +0 -1
  86. package/dist/chunk-SC6JRFAJ.mjs +0 -1
  87. package/dist/chunk-SC6JRFAJ.mjs.map +0 -1
  88. package/dist/chunk-T26KLXLH.mjs +0 -1
  89. package/dist/chunk-T26KLXLH.mjs.map +0 -1
  90. package/dist/chunk-T4NNQG6T.mjs +0 -231
  91. package/dist/chunk-T4NNQG6T.mjs.map +0 -1
  92. package/dist/chunk-TGM5PKBF.mjs +0 -44
  93. package/dist/chunk-TGM5PKBF.mjs.map +0 -1
  94. package/dist/chunk-V7W6IM2V.mjs +0 -1
  95. package/dist/chunk-V7W6IM2V.mjs.map +0 -1
  96. package/dist/chunk-WB3YULQ4.mjs +0 -1
  97. package/dist/chunk-WB3YULQ4.mjs.map +0 -1
  98. package/dist/chunk-Y4FKRAKJ.mjs +0 -12
  99. package/dist/chunk-Y4FKRAKJ.mjs.map +0 -1
  100. package/dist/chunk-YDJ4YUUF.mjs +0 -141
  101. package/dist/chunk-YDJ4YUUF.mjs.map +0 -1
  102. package/dist/components/chat/Button.d.ts +0 -9
  103. package/dist/components/chat/Button.js +0 -73
  104. package/dist/components/chat/Button.js.map +0 -1
  105. package/dist/components/chat/Button.mjs +0 -10
  106. package/dist/components/chat/Button.mjs.map +0 -1
  107. package/dist/components/chat/Chat.d.ts +0 -204
  108. package/dist/components/chat/Chat.js +0 -2428
  109. package/dist/components/chat/Chat.js.map +0 -1
  110. package/dist/components/chat/Chat.mjs +0 -29
  111. package/dist/components/chat/Chat.mjs.map +0 -1
  112. package/dist/components/chat/ChatContext.d.ts +0 -145
  113. package/dist/components/chat/ChatContext.js +0 -383
  114. package/dist/components/chat/ChatContext.js.map +0 -1
  115. package/dist/components/chat/ChatContext.mjs +0 -13
  116. package/dist/components/chat/ChatContext.mjs.map +0 -1
  117. package/dist/components/chat/CodeBlock.d.ts +0 -14
  118. package/dist/components/chat/CodeBlock.js +0 -524
  119. package/dist/components/chat/CodeBlock.js.map +0 -1
  120. package/dist/components/chat/CodeBlock.mjs +0 -14
  121. package/dist/components/chat/CodeBlock.mjs.map +0 -1
  122. package/dist/components/chat/Header.d.ts +0 -9
  123. package/dist/components/chat/Header.js +0 -642
  124. package/dist/components/chat/Header.js.map +0 -1
  125. package/dist/components/chat/Header.mjs +0 -17
  126. package/dist/components/chat/Header.mjs.map +0 -1
  127. package/dist/components/chat/Icons.d.ts +0 -20
  128. package/dist/components/chat/Icons.js +0 -362
  129. package/dist/components/chat/Icons.js.map +0 -1
  130. package/dist/components/chat/Icons.mjs +0 -38
  131. package/dist/components/chat/Icons.mjs.map +0 -1
  132. package/dist/components/chat/ImageUploadQueue.d.ts +0 -13
  133. package/dist/components/chat/ImageUploadQueue.js +0 -106
  134. package/dist/components/chat/ImageUploadQueue.js.map +0 -1
  135. package/dist/components/chat/ImageUploadQueue.mjs +0 -8
  136. package/dist/components/chat/ImageUploadQueue.mjs.map +0 -1
  137. package/dist/components/chat/Input.d.ts +0 -9
  138. package/dist/components/chat/Input.js +0 -424
  139. package/dist/components/chat/Input.js.map +0 -1
  140. package/dist/components/chat/Input.mjs +0 -14
  141. package/dist/components/chat/Input.mjs.map +0 -1
  142. package/dist/components/chat/Markdown.d.ts +0 -10
  143. package/dist/components/chat/Markdown.js +0 -678
  144. package/dist/components/chat/Markdown.js.map +0 -1
  145. package/dist/components/chat/Markdown.mjs +0 -11
  146. package/dist/components/chat/Markdown.mjs.map +0 -1
  147. package/dist/components/chat/Messages.d.ts +0 -13
  148. package/dist/components/chat/Messages.js +0 -1242
  149. package/dist/components/chat/Messages.js.map +0 -1
  150. package/dist/components/chat/Messages.mjs +0 -20
  151. package/dist/components/chat/Messages.mjs.map +0 -1
  152. package/dist/components/chat/Modal.d.ts +0 -51
  153. package/dist/components/chat/Modal.js +0 -3294
  154. package/dist/components/chat/Modal.js.map +0 -1
  155. package/dist/components/chat/Modal.mjs +0 -38
  156. package/dist/components/chat/Modal.mjs.map +0 -1
  157. package/dist/components/chat/Popup.d.ts +0 -13
  158. package/dist/components/chat/Popup.js +0 -3305
  159. package/dist/components/chat/Popup.js.map +0 -1
  160. package/dist/components/chat/Popup.mjs +0 -39
  161. package/dist/components/chat/Popup.mjs.map +0 -1
  162. package/dist/components/chat/PoweredByTag.d.ts +0 -7
  163. package/dist/components/chat/PoweredByTag.js +0 -63
  164. package/dist/components/chat/PoweredByTag.js.map +0 -1
  165. package/dist/components/chat/PoweredByTag.mjs +0 -9
  166. package/dist/components/chat/PoweredByTag.mjs.map +0 -1
  167. package/dist/components/chat/Sidebar.d.ts +0 -13
  168. package/dist/components/chat/Sidebar.js +0 -3314
  169. package/dist/components/chat/Sidebar.js.map +0 -1
  170. package/dist/components/chat/Sidebar.mjs +0 -39
  171. package/dist/components/chat/Sidebar.mjs.map +0 -1
  172. package/dist/components/chat/Suggestion.d.ts +0 -12
  173. package/dist/components/chat/Suggestion.js +0 -68
  174. package/dist/components/chat/Suggestion.js.map +0 -1
  175. package/dist/components/chat/Suggestion.mjs +0 -9
  176. package/dist/components/chat/Suggestion.mjs.map +0 -1
  177. package/dist/components/chat/Suggestions.d.ts +0 -9
  178. package/dist/components/chat/Suggestions.js +0 -93
  179. package/dist/components/chat/Suggestions.js.map +0 -1
  180. package/dist/components/chat/Suggestions.mjs +0 -10
  181. package/dist/components/chat/Suggestions.mjs.map +0 -1
  182. package/dist/components/chat/Textarea.d.ts +0 -15
  183. package/dist/components/chat/Textarea.js +0 -87
  184. package/dist/components/chat/Textarea.js.map +0 -1
  185. package/dist/components/chat/Textarea.mjs +0 -8
  186. package/dist/components/chat/Textarea.mjs.map +0 -1
  187. package/dist/components/chat/Window.d.ts +0 -9
  188. package/dist/components/chat/Window.js +0 -166
  189. package/dist/components/chat/Window.js.map +0 -1
  190. package/dist/components/chat/Window.mjs +0 -10
  191. package/dist/components/chat/Window.mjs.map +0 -1
  192. package/dist/components/chat/index.d.ts +0 -18
  193. package/dist/components/chat/index.js +0 -3341
  194. package/dist/components/chat/index.js.map +0 -1
  195. package/dist/components/chat/index.mjs +0 -69
  196. package/dist/components/chat/index.mjs.map +0 -1
  197. package/dist/components/chat/messages/AssistantMessage.d.ts +0 -9
  198. package/dist/components/chat/messages/AssistantMessage.js +0 -807
  199. package/dist/components/chat/messages/AssistantMessage.js.map +0 -1
  200. package/dist/components/chat/messages/AssistantMessage.mjs +0 -13
  201. package/dist/components/chat/messages/AssistantMessage.mjs.map +0 -1
  202. package/dist/components/chat/messages/ErrorMessage.d.ts +0 -9
  203. package/dist/components/chat/messages/ErrorMessage.js +0 -756
  204. package/dist/components/chat/messages/ErrorMessage.js.map +0 -1
  205. package/dist/components/chat/messages/ErrorMessage.mjs +0 -72
  206. package/dist/components/chat/messages/ErrorMessage.mjs.map +0 -1
  207. package/dist/components/chat/messages/ImageRenderer.d.ts +0 -12
  208. package/dist/components/chat/messages/ImageRenderer.js +0 -68
  209. package/dist/components/chat/messages/ImageRenderer.js.map +0 -1
  210. package/dist/components/chat/messages/ImageRenderer.mjs +0 -8
  211. package/dist/components/chat/messages/ImageRenderer.mjs.map +0 -1
  212. package/dist/components/chat/messages/LegacyRenderMessage.d.ts +0 -28
  213. package/dist/components/chat/messages/LegacyRenderMessage.js +0 -1067
  214. package/dist/components/chat/messages/LegacyRenderMessage.js.map +0 -1
  215. package/dist/components/chat/messages/LegacyRenderMessage.mjs +0 -17
  216. package/dist/components/chat/messages/LegacyRenderMessage.mjs.map +0 -1
  217. package/dist/components/chat/messages/RenderMessage.d.ts +0 -9
  218. package/dist/components/chat/messages/RenderMessage.js +0 -942
  219. package/dist/components/chat/messages/RenderMessage.js.map +0 -1
  220. package/dist/components/chat/messages/RenderMessage.mjs +0 -16
  221. package/dist/components/chat/messages/RenderMessage.mjs.map +0 -1
  222. package/dist/components/chat/messages/UserMessage.d.ts +0 -9
  223. package/dist/components/chat/messages/UserMessage.js +0 -58
  224. package/dist/components/chat/messages/UserMessage.js.map +0 -1
  225. package/dist/components/chat/messages/UserMessage.mjs +0 -8
  226. package/dist/components/chat/messages/UserMessage.mjs.map +0 -1
  227. package/dist/components/chat/props.d.ts +0 -298
  228. package/dist/components/chat/props.js +0 -19
  229. package/dist/components/chat/props.js.map +0 -1
  230. package/dist/components/chat/props.mjs +0 -2
  231. package/dist/components/chat/props.mjs.map +0 -1
  232. package/dist/components/dev-console/console.d.ts +0 -11
  233. package/dist/components/dev-console/console.js +0 -595
  234. package/dist/components/dev-console/console.js.map +0 -1
  235. package/dist/components/dev-console/console.mjs +0 -17
  236. package/dist/components/dev-console/console.mjs.map +0 -1
  237. package/dist/components/dev-console/icons.d.ts +0 -9
  238. package/dist/components/dev-console/icons.js +0 -140
  239. package/dist/components/dev-console/icons.js.map +0 -1
  240. package/dist/components/dev-console/icons.mjs +0 -16
  241. package/dist/components/dev-console/icons.mjs.map +0 -1
  242. package/dist/components/dev-console/index.d.ts +0 -3
  243. package/dist/components/dev-console/index.js +0 -595
  244. package/dist/components/dev-console/index.js.map +0 -1
  245. package/dist/components/dev-console/index.mjs +0 -18
  246. package/dist/components/dev-console/index.mjs.map +0 -1
  247. package/dist/components/dev-console/types.d.ts +0 -9
  248. package/dist/components/dev-console/types.js +0 -19
  249. package/dist/components/dev-console/types.js.map +0 -1
  250. package/dist/components/dev-console/types.mjs +0 -1
  251. package/dist/components/dev-console/types.mjs.map +0 -1
  252. package/dist/components/dev-console/utils.d.ts +0 -10
  253. package/dist/components/dev-console/utils.js +0 -183
  254. package/dist/components/dev-console/utils.js.map +0 -1
  255. package/dist/components/dev-console/utils.mjs +0 -16
  256. package/dist/components/dev-console/utils.mjs.map +0 -1
  257. package/dist/components/help-modal/icons.d.ts +0 -9
  258. package/dist/components/help-modal/icons.js +0 -116
  259. package/dist/components/help-modal/icons.js.map +0 -1
  260. package/dist/components/help-modal/icons.mjs +0 -12
  261. package/dist/components/help-modal/icons.mjs.map +0 -1
  262. package/dist/components/help-modal/index.d.ts +0 -2
  263. package/dist/components/help-modal/index.js +0 -144
  264. package/dist/components/help-modal/index.js.map +0 -1
  265. package/dist/components/help-modal/index.mjs +0 -10
  266. package/dist/components/help-modal/index.mjs.map +0 -1
  267. package/dist/components/help-modal/modal.d.ts +0 -5
  268. package/dist/components/help-modal/modal.js +0 -142
  269. package/dist/components/help-modal/modal.js.map +0 -1
  270. package/dist/components/help-modal/modal.mjs +0 -9
  271. package/dist/components/help-modal/modal.mjs.map +0 -1
  272. package/dist/components/index.d.ts +0 -19
  273. package/dist/components/index.js +0 -3345
  274. package/dist/components/index.js.map +0 -1
  275. package/dist/components/index.mjs +0 -76
  276. package/dist/components/index.mjs.map +0 -1
  277. package/dist/context/index.d.ts +0 -2
  278. package/dist/context/index.js +0 -19
  279. package/dist/context/index.js.map +0 -1
  280. package/dist/context/index.mjs +0 -2
  281. package/dist/context/index.mjs.map +0 -1
  282. package/dist/hooks/index.d.ts +0 -2
  283. package/dist/hooks/index.js +0 -36
  284. package/dist/hooks/index.js.map +0 -1
  285. package/dist/hooks/index.mjs +0 -9
  286. package/dist/hooks/index.mjs.map +0 -1
  287. package/dist/hooks/use-copilot-chat-suggestions.d.ts +0 -66
  288. package/dist/hooks/use-copilot-chat-suggestions.js +0 -34
  289. package/dist/hooks/use-copilot-chat-suggestions.js.map +0 -1
  290. package/dist/hooks/use-copilot-chat-suggestions.mjs +0 -8
  291. package/dist/hooks/use-copilot-chat-suggestions.mjs.map +0 -1
  292. package/dist/hooks/use-copy-to-clipboard.d.ts +0 -9
  293. package/dist/hooks/use-copy-to-clipboard.js +0 -62
  294. package/dist/hooks/use-copy-to-clipboard.js.map +0 -1
  295. package/dist/hooks/use-copy-to-clipboard.mjs +0 -8
  296. package/dist/hooks/use-copy-to-clipboard.mjs.map +0 -1
  297. package/dist/hooks/use-dark-mode.d.ts +0 -3
  298. package/dist/hooks/use-dark-mode.js +0 -35
  299. package/dist/hooks/use-dark-mode.js.map +0 -1
  300. package/dist/hooks/use-dark-mode.mjs +0 -8
  301. package/dist/hooks/use-dark-mode.mjs.map +0 -1
  302. package/dist/hooks/use-push-to-talk.d.ts +0 -19
  303. package/dist/hooks/use-push-to-talk.js +0 -202
  304. package/dist/hooks/use-push-to-talk.js.map +0 -1
  305. package/dist/hooks/use-push-to-talk.mjs +0 -12
  306. package/dist/hooks/use-push-to-talk.mjs.map +0 -1
  307. package/dist/index.d.ts +0 -21
  308. package/dist/index.js +0 -3354
  309. package/dist/index.js.map +0 -1
  310. package/dist/lib/utils.d.ts +0 -4
  311. package/dist/lib/utils.js +0 -76
  312. package/dist/lib/utils.js.map +0 -1
  313. package/dist/lib/utils.mjs +0 -34
  314. package/dist/lib/utils.mjs.map +0 -1
  315. package/dist/types/css.d.ts +0 -22
  316. package/dist/types/css.js +0 -19
  317. package/dist/types/css.js.map +0 -1
  318. package/dist/types/css.mjs +0 -1
  319. package/dist/types/css.mjs.map +0 -1
  320. package/dist/types/index.d.ts +0 -3
  321. package/dist/types/index.js +0 -19
  322. package/dist/types/index.js.map +0 -1
  323. package/dist/types/index.mjs +0 -2
  324. package/dist/types/index.mjs.map +0 -1
  325. package/dist/types/suggestions.d.ts +0 -9
  326. package/dist/types/suggestions.js +0 -19
  327. package/dist/types/suggestions.js.map +0 -1
  328. package/dist/types/suggestions.mjs +0 -1
  329. package/dist/types/suggestions.mjs.map +0 -1
  330. package/dist/v2/index.css +0 -4
  331. package/dist/v2/index.css.map +0 -1
  332. package/dist/v2/index.d.ts +0 -2
  333. package/dist/v2/index.js +0 -2
  334. package/dist/v2/index.js.map +0 -1
  335. package/dist/v2/index.mjs +0 -2
  336. package/dist/v2/index.mjs.map +0 -1
  337. package/jest.config.js +0 -5
  338. package/rollup.config.mjs +0 -64
  339. package/tsup.config.ts +0 -15
@@ -1,595 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
- var __async = (__this, __arguments, generator) => {
21
- return new Promise((resolve, reject) => {
22
- var fulfilled = (value) => {
23
- try {
24
- step(generator.next(value));
25
- } catch (e) {
26
- reject(e);
27
- }
28
- };
29
- var rejected = (value) => {
30
- try {
31
- step(generator.throw(value));
32
- } catch (e) {
33
- reject(e);
34
- }
35
- };
36
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37
- step((generator = generator.apply(__this, __arguments)).next());
38
- });
39
- };
40
-
41
- // src/components/dev-console/console.tsx
42
- var console_exports = {};
43
- __export(console_exports, {
44
- CopilotDevConsole: () => CopilotDevConsole,
45
- default: () => DebugMenuButton
46
- });
47
- module.exports = __toCommonJS(console_exports);
48
- var import_react_core3 = require("@copilotkit/react-core");
49
-
50
- // src/components/dev-console/utils.ts
51
- var import_react_core = require("@copilotkit/react-core");
52
- var import_react_core2 = require("@copilotkit/react-core");
53
- function getPublishedCopilotKitVersion(current, forceCheck = false) {
54
- return __async(this, null, function* () {
55
- const LOCAL_STORAGE_KEY = "__copilotkit_version_check__";
56
- const serializedVersion = localStorage.getItem(LOCAL_STORAGE_KEY);
57
- if (serializedVersion && !forceCheck) {
58
- try {
59
- const parsedVersion = JSON.parse(serializedVersion);
60
- const oneHour = 60 * 60 * 1e3;
61
- const now = (/* @__PURE__ */ new Date()).getTime();
62
- if (parsedVersion.current === current && now - new Date(parsedVersion.lastChecked).getTime() < oneHour) {
63
- return parsedVersion;
64
- }
65
- } catch (error) {
66
- console.error(
67
- "Failed to parse CopilotKitVersion from localStorage",
68
- error
69
- );
70
- }
71
- }
72
- try {
73
- const response = yield fetch(
74
- "https://api.cloud.copilotkit.ai/check-for-updates",
75
- {
76
- method: "POST",
77
- headers: {
78
- "Content-Type": "application/json"
79
- },
80
- body: JSON.stringify({
81
- packages: [
82
- {
83
- packageName: "@copilotkit/shared",
84
- packageVersion: current
85
- }
86
- ]
87
- })
88
- }
89
- );
90
- const data = yield response.json();
91
- const version = {
92
- current,
93
- lastChecked: (/* @__PURE__ */ new Date()).getTime(),
94
- latest: data.packages[0].latestVersion,
95
- severity: data.packages[0].severity,
96
- advisory: data.packages[0].advisory || null
97
- };
98
- localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(version));
99
- return version;
100
- } catch (error) {
101
- console.error("Failed to check for updates", error);
102
- throw error;
103
- }
104
- });
105
- }
106
- function logReadables(context) {
107
- console.log("%cCurrent Readables:", "font-size: 16px; font-weight: bold;");
108
- const readables = context.getContextString([], import_react_core.defaultCopilotContextCategories).trim();
109
- if (readables.length === 0) {
110
- console.log("No readables found");
111
- return;
112
- }
113
- console.log(readables);
114
- }
115
- function logActions(context) {
116
- console.log("%cCurrent Actions:", "font-size: 16px; font-weight: bold;");
117
- if (Object.values(context.actions).length === 0) {
118
- console.log("No actions found");
119
- return;
120
- }
121
- for (const action of Object.values(context.actions)) {
122
- console.group(action.name);
123
- console.log("name", action.name);
124
- console.log("description", action.description);
125
- console.log("parameters", action.parameters);
126
- console.groupEnd();
127
- }
128
- }
129
- function logMessages(context) {
130
- console.log("%cCurrent Messages:", "font-size: 16px; font-weight: bold;");
131
- if (context.messages.length === 0) {
132
- console.log("No messages found");
133
- return;
134
- }
135
- const tableData = context.messages.map((message) => {
136
- if (message.isTextMessage()) {
137
- return {
138
- id: message.id,
139
- type: "TextMessage",
140
- role: message.role,
141
- name: void 0,
142
- scope: void 0,
143
- content: message.content
144
- };
145
- } else if (message.isActionExecutionMessage()) {
146
- return {
147
- id: message.id,
148
- type: "ActionExecutionMessage",
149
- role: void 0,
150
- name: message.name,
151
- scope: message.parentMessageId,
152
- content: message.arguments
153
- };
154
- } else if (message.isResultMessage()) {
155
- return {
156
- id: message.id,
157
- type: "ResultMessage",
158
- role: void 0,
159
- name: message.actionName,
160
- scope: message.actionExecutionId,
161
- content: message.result
162
- };
163
- } else if (message.isAgentStateMessage()) {
164
- return {
165
- id: message.id,
166
- type: `AgentStateMessage (running: ${message.running})`,
167
- role: message.role,
168
- name: void 0,
169
- scope: message.threadId,
170
- content: message.state
171
- };
172
- }
173
- });
174
- console.table(tableData);
175
- }
176
-
177
- // src/components/dev-console/console.tsx
178
- var import_react2 = require("react");
179
-
180
- // src/components/dev-console/icons.tsx
181
- var import_jsx_runtime = require("react/jsx-runtime");
182
- var ExclamationMarkTriangleIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
183
- "svg",
184
- {
185
- width: "13.3967723px",
186
- height: "12px",
187
- viewBox: "0 0 13.3967723 12",
188
- version: "1.1",
189
- xmlns: "http://www.w3.org/2000/svg",
190
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "exclamation-triangle", fill: "#CD2121", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
191
- "path",
192
- {
193
- d: "M5.39935802,0.75 C5.97670802,-0.25 7.42007802,-0.25 7.99742802,0.75 L13.193588,9.75 C13.770888,10.75 13.049288,12 11.894588,12 L1.50223802,12 C0.34753802,12 -0.37414898,10.75 0.20319802,9.75 L5.39935802,0.75 Z M6.69838802,2.5 C7.11260802,2.5 7.44838802,2.83579 7.44838802,3.25 L7.44838802,6.25 C7.44838802,6.66421 7.11260802,7 6.69838802,7 C6.28417802,7 5.94838802,6.66421 5.94838802,6.25 L5.94838802,3.25 C5.94838802,2.83579 6.28417802,2.5 6.69838802,2.5 Z M6.69838802,10.5 C7.25067802,10.5 7.69838802,10.0523 7.69838802,9.5 C7.69838802,8.9477 7.25067802,8.5 6.69838802,8.5 C6.14610802,8.5 5.69838802,8.9477 5.69838802,9.5 C5.69838802,10.0523 6.14610802,10.5 6.69838802,10.5 Z",
194
- id: "Shape"
195
- }
196
- ) }) })
197
- }
198
- );
199
- var ExclamationMarkIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
200
- "svg",
201
- {
202
- width: "14px",
203
- height: "14px",
204
- viewBox: "0 0 14 14",
205
- version: "1.1",
206
- xmlns: "http://www.w3.org/2000/svg",
207
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "exclamation-circle", fill: "#EC662C", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
208
- "path",
209
- {
210
- d: "M7,14 C10.866,14 14,10.866 14,7 C14,3.13401 10.866,0 7,0 C3.13401,0 0,3.13401 0,7 C0,10.866 3.13401,14 7,14 Z M7,3 C7.41421,3 7.75,3.33579 7.75,3.75 L7.75,6.75 C7.75,7.16421 7.41421,7.5 7,7.5 C6.58579,7.5 6.25,7.16421 6.25,6.75 L6.25,3.75 C6.25,3.33579 6.58579,3 7,3 Z M7,11 C7.55228,11 8,10.5523 8,10 C8,9.4477 7.55228,9 7,9 C6.44772,9 6,9.4477 6,10 C6,10.5523 6.44772,11 7,11 Z",
211
- id: "Shape"
212
- }
213
- ) }) })
214
- }
215
- );
216
- var ChevronDownIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
217
- "svg",
218
- {
219
- width: "7px",
220
- height: "4px",
221
- viewBox: "0 0 7 4",
222
- version: "1.1",
223
- xmlns: "http://www.w3.org/2000/svg",
224
- fill: "currentColor",
225
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "Group", fill: "currentColor", fillRule: "nonzero", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
226
- "path",
227
- {
228
- d: "M3.71690723,3.90271086 C3.59268176,4.03242971 3.39143629,4.03242971 3.26721082,3.90271086 L0.0853966595,0.57605615 C-0.0314221035,0.444981627 -0.0279751448,0.240725043 0.0931934622,0.114040675 C0.214362069,-0.0126436935 0.409725445,-0.0162475626 0.535093061,0.105888951 L3.49205902,3.19746006 L6.44902499,0.105888951 C6.52834574,0.0168884389 6.64780588,-0.0197473458 6.7605411,0.0103538404 C6.87327633,0.0404550266 6.96130636,0.132492308 6.99009696,0.250359396 C7.01888756,0.368226483 6.98384687,0.493124608 6.89872139,0.57605615 L3.71690723,3.90271086 Z",
229
- id: "Path"
230
- }
231
- ) }) })
232
- }
233
- );
234
- var CheckIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
235
- "svg",
236
- {
237
- width: "14px",
238
- height: "14px",
239
- viewBox: "0 0 14 14",
240
- version: "1.1",
241
- xmlns: "http://www.w3.org/2000/svg",
242
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
243
- "g",
244
- {
245
- id: "Group-2",
246
- transform: "translate(-118, 0)",
247
- fill: "#1BC030",
248
- fillRule: "nonzero",
249
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "Group", transform: "translate(118, 0)", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
250
- "path",
251
- {
252
- d: "M0,7 C0,3.13384615 3.13384615,0 7,0 C10.8661538,0 14,3.13384615 14,7 C14,10.8661538 10.8661538,14 7,14 C3.13384615,14 0,10.8661538 0,7 Z M9.59179487,5.69764103 C9.70905818,5.54139023 9.73249341,5.33388318 9.65303227,5.15541491 C9.57357113,4.97694665 9.40367989,4.85551619 9.20909814,4.83811118 C9.01451638,4.82070616 8.82577109,4.91005717 8.71589744,5.07158974 L6.39261538,8.32389744 L5.22666667,7.15794872 C5.01450582,6.96025518 4.68389046,6.9660885 4.47883563,7.17114332 C4.27378081,7.37619815 4.26794748,7.70681351 4.46564103,7.91897436 L6.08102564,9.53435897 C6.19289944,9.64614839 6.3482622,9.70310251 6.50588106,9.69010587 C6.66349993,9.67710922 6.80743532,9.59547613 6.89948718,9.46687179 L9.59179487,5.69764103 L9.59179487,5.69764103 Z",
253
- id: "Shape"
254
- }
255
- ) })
256
- }
257
- ) })
258
- }
259
- );
260
-
261
- // src/components/dev-console/console.tsx
262
- var import_react3 = require("@headlessui/react");
263
- var import_shared = require("@copilotkit/shared");
264
-
265
- // src/components/chat/Icons.tsx
266
- var import_jsx_runtime2 = require("react/jsx-runtime");
267
- var SmallSpinnerIcon = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
268
- "span",
269
- {
270
- className: "copilotKitSpinner",
271
- style: { width: "13px", height: "13px" }
272
- }
273
- );
274
-
275
- // src/components/help-modal/modal.tsx
276
- var import_react = require("react");
277
-
278
- // src/components/help-modal/icons.tsx
279
- var import_jsx_runtime3 = require("react/jsx-runtime");
280
- var CloseIcon = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
281
- "svg",
282
- {
283
- xmlns: "http://www.w3.org/2000/svg",
284
- fill: "none",
285
- viewBox: "0 0 24 24",
286
- strokeWidth: "1.5",
287
- stroke: "currentColor",
288
- width: "20",
289
- height: "20",
290
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
291
- "path",
292
- {
293
- strokeLinecap: "round",
294
- strokeLinejoin: "round",
295
- d: "M6 18L18 6M6 6l12 12"
296
- }
297
- )
298
- }
299
- );
300
-
301
- // src/components/help-modal/modal.tsx
302
- var import_jsx_runtime4 = require("react/jsx-runtime");
303
- function CopilotKitHelpModal() {
304
- const [showHelpModal, setShowHelpModal] = (0, import_react.useState)(false);
305
- const buttonRef = (0, import_react.useRef)(null);
306
- const popoverRef = (0, import_react.useRef)(null);
307
- (0, import_react.useEffect)(() => {
308
- const handleClickOutside = (event) => {
309
- if (popoverRef.current && !popoverRef.current.contains(event.target) && buttonRef.current && !buttonRef.current.contains(event.target)) {
310
- setShowHelpModal(false);
311
- }
312
- };
313
- if (showHelpModal) {
314
- document.addEventListener("mousedown", handleClickOutside);
315
- }
316
- return () => {
317
- document.removeEventListener("mousedown", handleClickOutside);
318
- };
319
- }, [showHelpModal]);
320
- const HelpButton = () => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
321
- "button",
322
- {
323
- ref: buttonRef,
324
- onClick: () => setShowHelpModal(!showHelpModal),
325
- className: "copilotKitDebugMenuTriggerButton relative",
326
- "aria-label": "Open Help",
327
- children: "Help"
328
- }
329
- );
330
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "relative", children: [
331
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HelpButton, {}),
332
- showHelpModal && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
333
- "div",
334
- {
335
- ref: popoverRef,
336
- className: "absolute mt-2 z-50",
337
- style: {
338
- top: "100%",
339
- right: "-120px",
340
- width: "380px"
341
- },
342
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "copilotKitHelpModal rounded-lg shadow-xl w-full p-4 flex-col relative", children: [
343
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
344
- "button",
345
- {
346
- className: "copilotKitHelpModalCloseButton absolute text-gray-400 hover:text-gray-600 focus:outline-none",
347
- style: { top: "10px", right: "10px" },
348
- onClick: () => setShowHelpModal(false),
349
- "aria-label": "Close",
350
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CloseIcon, {})
351
- }
352
- ),
353
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "w-full flex mb-6 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h2", { className: "text-2xl font-bold", children: "Help Options" }) }),
354
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "space-y-4 mb-4", children: [
355
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "copilotKitHelpItemButton", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
356
- "a",
357
- {
358
- href: "https://docs.copilotkit.ai/coagents/troubleshooting/common-issues",
359
- target: "_blank",
360
- rel: "noopener noreferrer",
361
- children: "Visit the Troubleshooting and FAQ section in the docs"
362
- }
363
- ) }),
364
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "copilotKitHelpItemButton", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
365
- "a",
366
- {
367
- href: "https://go.copilotkit.ai/dev-console-support-discord",
368
- target: "_blank",
369
- rel: "noopener noreferrer",
370
- children: "Go to Discord Support Channel (Community Support)"
371
- }
372
- ) }),
373
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "copilotKitHelpItemButton", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
374
- "a",
375
- {
376
- href: "https://go.copilotkit.ai/dev-console-support-slack",
377
- target: "_blank",
378
- rel: "noopener noreferrer",
379
- children: "Apply for Priority Direct Slack Support"
380
- }
381
- ) })
382
- ] })
383
- ] })
384
- }
385
- )
386
- ] });
387
- }
388
-
389
- // src/components/dev-console/console.tsx
390
- var import_jsx_runtime5 = require("react/jsx-runtime");
391
- function CopilotDevConsole() {
392
- const currentVersion = import_shared.COPILOTKIT_VERSION;
393
- const context = (0, import_react_core3.useCopilotContext)();
394
- const [showDevConsole, setShowDevConsole] = (0, import_react2.useState)(false);
395
- (0, import_react2.useEffect)(() => {
396
- setShowDevConsole((0, import_react_core2.shouldShowDevConsole)(context.showDevConsole));
397
- }, [context.showDevConsole]);
398
- const dontRunTwiceInDevMode = (0, import_react2.useRef)(false);
399
- const [versionStatus, setVersionStatus] = (0, import_react2.useState)("unknown");
400
- const [latestVersion, setLatestVersion] = (0, import_react2.useState)("");
401
- const consoleRef = (0, import_react2.useRef)(null);
402
- const [debugButtonMode, setDebugButtonMode] = (0, import_react2.useState)(
403
- "full"
404
- );
405
- const checkForUpdates = (force = false) => {
406
- setVersionStatus("checking");
407
- getPublishedCopilotKitVersion(currentVersion, force).then((v) => {
408
- setLatestVersion(v.latest);
409
- let versionOk = false;
410
- if (v.current === v.latest) {
411
- versionOk = true;
412
- } else if (/[a-zA-Z]/.test(v.current)) {
413
- versionOk = true;
414
- }
415
- if (versionOk) {
416
- setVersionStatus("latest");
417
- } else if (v.severity !== "low") {
418
- setVersionStatus("outdated");
419
- } else {
420
- setVersionStatus("update-available");
421
- }
422
- }).catch((e) => {
423
- console.error(e);
424
- setVersionStatus("unknown");
425
- });
426
- };
427
- (0, import_react2.useEffect)(() => {
428
- if (dontRunTwiceInDevMode.current === true) {
429
- return;
430
- }
431
- dontRunTwiceInDevMode.current = true;
432
- checkForUpdates();
433
- }, []);
434
- if (!showDevConsole) {
435
- return null;
436
- }
437
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
438
- "div",
439
- {
440
- ref: consoleRef,
441
- className: "copilotKitDevConsole " + (versionStatus === "update-available" ? "copilotKitDevConsoleUpgrade" : "") + (versionStatus === "outdated" ? "copilotKitDevConsoleWarnOutdated" : ""),
442
- children: [
443
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
444
- VersionInfo,
445
- {
446
- showDevConsole: context.showDevConsole,
447
- versionStatus,
448
- currentVersion,
449
- latestVersion
450
- }
451
- ),
452
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CopilotKitHelpModal, {}),
453
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
454
- DebugMenuButton,
455
- {
456
- setShowDevConsole,
457
- checkForUpdates,
458
- mode: debugButtonMode
459
- }
460
- )
461
- ]
462
- }
463
- );
464
- }
465
- function VersionInfo({
466
- showDevConsole,
467
- versionStatus,
468
- currentVersion,
469
- latestVersion
470
- }) {
471
- const [copyStatus, setCopyStatus] = (0, import_react2.useState)("");
472
- let versionLabel = "";
473
- let versionIcon = "";
474
- let currentVersionLabel = currentVersion;
475
- if (versionStatus === "latest") {
476
- versionLabel = "latest";
477
- versionIcon = CheckIcon;
478
- } else if (versionStatus === "checking") {
479
- versionLabel = "checking";
480
- versionIcon = SmallSpinnerIcon;
481
- } else if (versionStatus === "update-available") {
482
- versionLabel = "update available";
483
- versionIcon = ExclamationMarkIcon;
484
- currentVersionLabel = `${currentVersion} \u2192 ${latestVersion}`;
485
- } else if (versionStatus === "outdated") {
486
- versionLabel = "outdated";
487
- versionIcon = ExclamationMarkTriangleIcon;
488
- currentVersionLabel = `${currentVersion} \u2192 ${latestVersion}`;
489
- }
490
- let asideLabel = "";
491
- if (showDevConsole === true) {
492
- asideLabel = "(enabled)";
493
- }
494
- const installCommand = [
495
- `npm install`,
496
- `@copilotkit/react-core@${latestVersion}`,
497
- `@copilotkit/react-ui@${latestVersion}`,
498
- `@copilotkit/react-textarea@${latestVersion}`,
499
- `&& npm install @copilotkit/runtime@${latestVersion}`
500
- ].join(" ");
501
- const handleCopyClick = () => {
502
- navigator.clipboard.writeText(installCommand.trim()).then(() => {
503
- setCopyStatus("Command copied to clipboard!");
504
- setTimeout(() => setCopyStatus(""), 1e3);
505
- });
506
- };
507
- if (versionStatus === "update-available" || versionStatus === "outdated") {
508
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "copilotKitVersionInfo", children: [
509
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { children: [
510
- currentVersionLabel,
511
- " ",
512
- versionIcon
513
- ] }),
514
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { onClick: handleCopyClick, children: copyStatus || installCommand })
515
- ] });
516
- }
517
- return null;
518
- }
519
- function DebugMenuButton({
520
- setShowDevConsole,
521
- checkForUpdates,
522
- mode
523
- }) {
524
- const context = (0, import_react_core3.useCopilotContext)();
525
- const messagesContext = (0, import_react_core3.useCopilotMessagesContext)();
526
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react3.Menu, { children: [
527
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
528
- import_react3.MenuButton,
529
- {
530
- className: `copilotKitDebugMenuTriggerButton ${mode === "compact" ? "compact" : ""}`,
531
- children: mode == "compact" ? "Debug" : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
532
- "Debug ",
533
- ChevronDownIcon
534
- ] })
535
- }
536
- ),
537
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
538
- import_react3.MenuItems,
539
- {
540
- transition: true,
541
- anchor: "bottom end",
542
- className: "copilotKitDebugMenu",
543
- style: { zIndex: 40 },
544
- children: [
545
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
546
- "button",
547
- {
548
- className: "copilotKitDebugMenuItem",
549
- onClick: () => logReadables(context),
550
- children: "Log Readables"
551
- }
552
- ) }),
553
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
554
- "button",
555
- {
556
- className: "copilotKitDebugMenuItem",
557
- onClick: () => logActions(context),
558
- children: "Log Actions"
559
- }
560
- ) }),
561
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
562
- "button",
563
- {
564
- className: "copilotKitDebugMenuItem",
565
- onClick: () => logMessages(messagesContext),
566
- children: "Log Messages"
567
- }
568
- ) }),
569
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
570
- "button",
571
- {
572
- className: "copilotKitDebugMenuItem",
573
- onClick: () => checkForUpdates(true),
574
- children: "Check for Updates"
575
- }
576
- ) }),
577
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("hr", {}),
578
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
579
- "button",
580
- {
581
- className: "copilotKitDebugMenuItem",
582
- onClick: () => setShowDevConsole(false),
583
- children: "Hide Dev Console"
584
- }
585
- ) })
586
- ]
587
- }
588
- )
589
- ] }) });
590
- }
591
- // Annotate the CommonJS export names for ESM import in node:
592
- 0 && (module.exports = {
593
- CopilotDevConsole
594
- });
595
- //# sourceMappingURL=console.js.map