@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
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var __async = (__this, __arguments, generator) => {
20
- return new Promise((resolve, reject) => {
21
- var fulfilled = (value) => {
22
- try {
23
- step(generator.next(value));
24
- } catch (e) {
25
- reject(e);
26
- }
27
- };
28
- var rejected = (value) => {
29
- try {
30
- step(generator.throw(value));
31
- } catch (e) {
32
- reject(e);
33
- }
34
- };
35
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36
- step((generator = generator.apply(__this, __arguments)).next());
37
- });
38
- };
39
-
40
- // src/components/dev-console/index.tsx
41
- var dev_console_exports = {};
42
- __export(dev_console_exports, {
43
- CopilotDevConsole: () => CopilotDevConsole,
44
- shouldShowDevConsole: () => import_react_core2.shouldShowDevConsole
45
- });
46
- module.exports = __toCommonJS(dev_console_exports);
47
-
48
- // src/components/dev-console/utils.ts
49
- var import_react_core = require("@copilotkit/react-core");
50
- var import_react_core2 = require("@copilotkit/react-core");
51
- function getPublishedCopilotKitVersion(current, forceCheck = false) {
52
- return __async(this, null, function* () {
53
- const LOCAL_STORAGE_KEY = "__copilotkit_version_check__";
54
- const serializedVersion = localStorage.getItem(LOCAL_STORAGE_KEY);
55
- if (serializedVersion && !forceCheck) {
56
- try {
57
- const parsedVersion = JSON.parse(serializedVersion);
58
- const oneHour = 60 * 60 * 1e3;
59
- const now = (/* @__PURE__ */ new Date()).getTime();
60
- if (parsedVersion.current === current && now - new Date(parsedVersion.lastChecked).getTime() < oneHour) {
61
- return parsedVersion;
62
- }
63
- } catch (error) {
64
- console.error(
65
- "Failed to parse CopilotKitVersion from localStorage",
66
- error
67
- );
68
- }
69
- }
70
- try {
71
- const response = yield fetch(
72
- "https://api.cloud.copilotkit.ai/check-for-updates",
73
- {
74
- method: "POST",
75
- headers: {
76
- "Content-Type": "application/json"
77
- },
78
- body: JSON.stringify({
79
- packages: [
80
- {
81
- packageName: "@copilotkit/shared",
82
- packageVersion: current
83
- }
84
- ]
85
- })
86
- }
87
- );
88
- const data = yield response.json();
89
- const version = {
90
- current,
91
- lastChecked: (/* @__PURE__ */ new Date()).getTime(),
92
- latest: data.packages[0].latestVersion,
93
- severity: data.packages[0].severity,
94
- advisory: data.packages[0].advisory || null
95
- };
96
- localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(version));
97
- return version;
98
- } catch (error) {
99
- console.error("Failed to check for updates", error);
100
- throw error;
101
- }
102
- });
103
- }
104
- function logReadables(context) {
105
- console.log("%cCurrent Readables:", "font-size: 16px; font-weight: bold;");
106
- const readables = context.getContextString([], import_react_core.defaultCopilotContextCategories).trim();
107
- if (readables.length === 0) {
108
- console.log("No readables found");
109
- return;
110
- }
111
- console.log(readables);
112
- }
113
- function logActions(context) {
114
- console.log("%cCurrent Actions:", "font-size: 16px; font-weight: bold;");
115
- if (Object.values(context.actions).length === 0) {
116
- console.log("No actions found");
117
- return;
118
- }
119
- for (const action of Object.values(context.actions)) {
120
- console.group(action.name);
121
- console.log("name", action.name);
122
- console.log("description", action.description);
123
- console.log("parameters", action.parameters);
124
- console.groupEnd();
125
- }
126
- }
127
- function logMessages(context) {
128
- console.log("%cCurrent Messages:", "font-size: 16px; font-weight: bold;");
129
- if (context.messages.length === 0) {
130
- console.log("No messages found");
131
- return;
132
- }
133
- const tableData = context.messages.map((message) => {
134
- if (message.isTextMessage()) {
135
- return {
136
- id: message.id,
137
- type: "TextMessage",
138
- role: message.role,
139
- name: void 0,
140
- scope: void 0,
141
- content: message.content
142
- };
143
- } else if (message.isActionExecutionMessage()) {
144
- return {
145
- id: message.id,
146
- type: "ActionExecutionMessage",
147
- role: void 0,
148
- name: message.name,
149
- scope: message.parentMessageId,
150
- content: message.arguments
151
- };
152
- } else if (message.isResultMessage()) {
153
- return {
154
- id: message.id,
155
- type: "ResultMessage",
156
- role: void 0,
157
- name: message.actionName,
158
- scope: message.actionExecutionId,
159
- content: message.result
160
- };
161
- } else if (message.isAgentStateMessage()) {
162
- return {
163
- id: message.id,
164
- type: `AgentStateMessage (running: ${message.running})`,
165
- role: message.role,
166
- name: void 0,
167
- scope: message.threadId,
168
- content: message.state
169
- };
170
- }
171
- });
172
- console.table(tableData);
173
- }
174
-
175
- // src/components/dev-console/console.tsx
176
- var import_react_core3 = require("@copilotkit/react-core");
177
- var import_react2 = require("react");
178
-
179
- // src/components/dev-console/icons.tsx
180
- var import_jsx_runtime = require("react/jsx-runtime");
181
- var ExclamationMarkTriangleIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
182
- "svg",
183
- {
184
- width: "13.3967723px",
185
- height: "12px",
186
- viewBox: "0 0 13.3967723 12",
187
- version: "1.1",
188
- xmlns: "http://www.w3.org/2000/svg",
189
- 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)(
190
- "path",
191
- {
192
- 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",
193
- id: "Shape"
194
- }
195
- ) }) })
196
- }
197
- );
198
- var ExclamationMarkIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
199
- "svg",
200
- {
201
- width: "14px",
202
- height: "14px",
203
- viewBox: "0 0 14 14",
204
- version: "1.1",
205
- xmlns: "http://www.w3.org/2000/svg",
206
- 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)(
207
- "path",
208
- {
209
- 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",
210
- id: "Shape"
211
- }
212
- ) }) })
213
- }
214
- );
215
- var ChevronDownIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
216
- "svg",
217
- {
218
- width: "7px",
219
- height: "4px",
220
- viewBox: "0 0 7 4",
221
- version: "1.1",
222
- xmlns: "http://www.w3.org/2000/svg",
223
- fill: "currentColor",
224
- 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)(
225
- "path",
226
- {
227
- 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",
228
- id: "Path"
229
- }
230
- ) }) })
231
- }
232
- );
233
- var CheckIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
234
- "svg",
235
- {
236
- width: "14px",
237
- height: "14px",
238
- viewBox: "0 0 14 14",
239
- version: "1.1",
240
- xmlns: "http://www.w3.org/2000/svg",
241
- 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)(
242
- "g",
243
- {
244
- id: "Group-2",
245
- transform: "translate(-118, 0)",
246
- fill: "#1BC030",
247
- fillRule: "nonzero",
248
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "Group", transform: "translate(118, 0)", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
249
- "path",
250
- {
251
- 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",
252
- id: "Shape"
253
- }
254
- ) })
255
- }
256
- ) })
257
- }
258
- );
259
-
260
- // src/components/dev-console/console.tsx
261
- var import_react3 = require("@headlessui/react");
262
- var import_shared = require("@copilotkit/shared");
263
-
264
- // src/components/chat/Icons.tsx
265
- var import_jsx_runtime2 = require("react/jsx-runtime");
266
- var SmallSpinnerIcon = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
267
- "span",
268
- {
269
- className: "copilotKitSpinner",
270
- style: { width: "13px", height: "13px" }
271
- }
272
- );
273
-
274
- // src/components/help-modal/modal.tsx
275
- var import_react = require("react");
276
-
277
- // src/components/help-modal/icons.tsx
278
- var import_jsx_runtime3 = require("react/jsx-runtime");
279
- var CloseIcon = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
280
- "svg",
281
- {
282
- xmlns: "http://www.w3.org/2000/svg",
283
- fill: "none",
284
- viewBox: "0 0 24 24",
285
- strokeWidth: "1.5",
286
- stroke: "currentColor",
287
- width: "20",
288
- height: "20",
289
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
290
- "path",
291
- {
292
- strokeLinecap: "round",
293
- strokeLinejoin: "round",
294
- d: "M6 18L18 6M6 6l12 12"
295
- }
296
- )
297
- }
298
- );
299
-
300
- // src/components/help-modal/modal.tsx
301
- var import_jsx_runtime4 = require("react/jsx-runtime");
302
- function CopilotKitHelpModal() {
303
- const [showHelpModal, setShowHelpModal] = (0, import_react.useState)(false);
304
- const buttonRef = (0, import_react.useRef)(null);
305
- const popoverRef = (0, import_react.useRef)(null);
306
- (0, import_react.useEffect)(() => {
307
- const handleClickOutside = (event) => {
308
- if (popoverRef.current && !popoverRef.current.contains(event.target) && buttonRef.current && !buttonRef.current.contains(event.target)) {
309
- setShowHelpModal(false);
310
- }
311
- };
312
- if (showHelpModal) {
313
- document.addEventListener("mousedown", handleClickOutside);
314
- }
315
- return () => {
316
- document.removeEventListener("mousedown", handleClickOutside);
317
- };
318
- }, [showHelpModal]);
319
- const HelpButton = () => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
320
- "button",
321
- {
322
- ref: buttonRef,
323
- onClick: () => setShowHelpModal(!showHelpModal),
324
- className: "copilotKitDebugMenuTriggerButton relative",
325
- "aria-label": "Open Help",
326
- children: "Help"
327
- }
328
- );
329
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "relative", children: [
330
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HelpButton, {}),
331
- showHelpModal && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
332
- "div",
333
- {
334
- ref: popoverRef,
335
- className: "absolute mt-2 z-50",
336
- style: {
337
- top: "100%",
338
- right: "-120px",
339
- width: "380px"
340
- },
341
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "copilotKitHelpModal rounded-lg shadow-xl w-full p-4 flex-col relative", children: [
342
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
343
- "button",
344
- {
345
- className: "copilotKitHelpModalCloseButton absolute text-gray-400 hover:text-gray-600 focus:outline-none",
346
- style: { top: "10px", right: "10px" },
347
- onClick: () => setShowHelpModal(false),
348
- "aria-label": "Close",
349
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CloseIcon, {})
350
- }
351
- ),
352
- /* @__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" }) }),
353
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "space-y-4 mb-4", children: [
354
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "copilotKitHelpItemButton", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
355
- "a",
356
- {
357
- href: "https://docs.copilotkit.ai/coagents/troubleshooting/common-issues",
358
- target: "_blank",
359
- rel: "noopener noreferrer",
360
- children: "Visit the Troubleshooting and FAQ section in the docs"
361
- }
362
- ) }),
363
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "copilotKitHelpItemButton", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
364
- "a",
365
- {
366
- href: "https://go.copilotkit.ai/dev-console-support-discord",
367
- target: "_blank",
368
- rel: "noopener noreferrer",
369
- children: "Go to Discord Support Channel (Community Support)"
370
- }
371
- ) }),
372
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "copilotKitHelpItemButton", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
373
- "a",
374
- {
375
- href: "https://go.copilotkit.ai/dev-console-support-slack",
376
- target: "_blank",
377
- rel: "noopener noreferrer",
378
- children: "Apply for Priority Direct Slack Support"
379
- }
380
- ) })
381
- ] })
382
- ] })
383
- }
384
- )
385
- ] });
386
- }
387
-
388
- // src/components/dev-console/console.tsx
389
- var import_jsx_runtime5 = require("react/jsx-runtime");
390
- function CopilotDevConsole() {
391
- const currentVersion = import_shared.COPILOTKIT_VERSION;
392
- const context = (0, import_react_core3.useCopilotContext)();
393
- const [showDevConsole, setShowDevConsole] = (0, import_react2.useState)(false);
394
- (0, import_react2.useEffect)(() => {
395
- setShowDevConsole((0, import_react_core2.shouldShowDevConsole)(context.showDevConsole));
396
- }, [context.showDevConsole]);
397
- const dontRunTwiceInDevMode = (0, import_react2.useRef)(false);
398
- const [versionStatus, setVersionStatus] = (0, import_react2.useState)("unknown");
399
- const [latestVersion, setLatestVersion] = (0, import_react2.useState)("");
400
- const consoleRef = (0, import_react2.useRef)(null);
401
- const [debugButtonMode, setDebugButtonMode] = (0, import_react2.useState)(
402
- "full"
403
- );
404
- const checkForUpdates = (force = false) => {
405
- setVersionStatus("checking");
406
- getPublishedCopilotKitVersion(currentVersion, force).then((v) => {
407
- setLatestVersion(v.latest);
408
- let versionOk = false;
409
- if (v.current === v.latest) {
410
- versionOk = true;
411
- } else if (/[a-zA-Z]/.test(v.current)) {
412
- versionOk = true;
413
- }
414
- if (versionOk) {
415
- setVersionStatus("latest");
416
- } else if (v.severity !== "low") {
417
- setVersionStatus("outdated");
418
- } else {
419
- setVersionStatus("update-available");
420
- }
421
- }).catch((e) => {
422
- console.error(e);
423
- setVersionStatus("unknown");
424
- });
425
- };
426
- (0, import_react2.useEffect)(() => {
427
- if (dontRunTwiceInDevMode.current === true) {
428
- return;
429
- }
430
- dontRunTwiceInDevMode.current = true;
431
- checkForUpdates();
432
- }, []);
433
- if (!showDevConsole) {
434
- return null;
435
- }
436
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
437
- "div",
438
- {
439
- ref: consoleRef,
440
- className: "copilotKitDevConsole " + (versionStatus === "update-available" ? "copilotKitDevConsoleUpgrade" : "") + (versionStatus === "outdated" ? "copilotKitDevConsoleWarnOutdated" : ""),
441
- children: [
442
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
443
- VersionInfo,
444
- {
445
- showDevConsole: context.showDevConsole,
446
- versionStatus,
447
- currentVersion,
448
- latestVersion
449
- }
450
- ),
451
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CopilotKitHelpModal, {}),
452
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
453
- DebugMenuButton,
454
- {
455
- setShowDevConsole,
456
- checkForUpdates,
457
- mode: debugButtonMode
458
- }
459
- )
460
- ]
461
- }
462
- );
463
- }
464
- function VersionInfo({
465
- showDevConsole,
466
- versionStatus,
467
- currentVersion,
468
- latestVersion
469
- }) {
470
- const [copyStatus, setCopyStatus] = (0, import_react2.useState)("");
471
- let versionLabel = "";
472
- let versionIcon = "";
473
- let currentVersionLabel = currentVersion;
474
- if (versionStatus === "latest") {
475
- versionLabel = "latest";
476
- versionIcon = CheckIcon;
477
- } else if (versionStatus === "checking") {
478
- versionLabel = "checking";
479
- versionIcon = SmallSpinnerIcon;
480
- } else if (versionStatus === "update-available") {
481
- versionLabel = "update available";
482
- versionIcon = ExclamationMarkIcon;
483
- currentVersionLabel = `${currentVersion} \u2192 ${latestVersion}`;
484
- } else if (versionStatus === "outdated") {
485
- versionLabel = "outdated";
486
- versionIcon = ExclamationMarkTriangleIcon;
487
- currentVersionLabel = `${currentVersion} \u2192 ${latestVersion}`;
488
- }
489
- let asideLabel = "";
490
- if (showDevConsole === true) {
491
- asideLabel = "(enabled)";
492
- }
493
- const installCommand = [
494
- `npm install`,
495
- `@copilotkit/react-core@${latestVersion}`,
496
- `@copilotkit/react-ui@${latestVersion}`,
497
- `@copilotkit/react-textarea@${latestVersion}`,
498
- `&& npm install @copilotkit/runtime@${latestVersion}`
499
- ].join(" ");
500
- const handleCopyClick = () => {
501
- navigator.clipboard.writeText(installCommand.trim()).then(() => {
502
- setCopyStatus("Command copied to clipboard!");
503
- setTimeout(() => setCopyStatus(""), 1e3);
504
- });
505
- };
506
- if (versionStatus === "update-available" || versionStatus === "outdated") {
507
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "copilotKitVersionInfo", children: [
508
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { children: [
509
- currentVersionLabel,
510
- " ",
511
- versionIcon
512
- ] }),
513
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { onClick: handleCopyClick, children: copyStatus || installCommand })
514
- ] });
515
- }
516
- return null;
517
- }
518
- function DebugMenuButton({
519
- setShowDevConsole,
520
- checkForUpdates,
521
- mode
522
- }) {
523
- const context = (0, import_react_core3.useCopilotContext)();
524
- const messagesContext = (0, import_react_core3.useCopilotMessagesContext)();
525
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react3.Menu, { children: [
526
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
527
- import_react3.MenuButton,
528
- {
529
- className: `copilotKitDebugMenuTriggerButton ${mode === "compact" ? "compact" : ""}`,
530
- children: mode == "compact" ? "Debug" : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
531
- "Debug ",
532
- ChevronDownIcon
533
- ] })
534
- }
535
- ),
536
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
537
- import_react3.MenuItems,
538
- {
539
- transition: true,
540
- anchor: "bottom end",
541
- className: "copilotKitDebugMenu",
542
- style: { zIndex: 40 },
543
- children: [
544
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
545
- "button",
546
- {
547
- className: "copilotKitDebugMenuItem",
548
- onClick: () => logReadables(context),
549
- children: "Log Readables"
550
- }
551
- ) }),
552
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
553
- "button",
554
- {
555
- className: "copilotKitDebugMenuItem",
556
- onClick: () => logActions(context),
557
- children: "Log Actions"
558
- }
559
- ) }),
560
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
561
- "button",
562
- {
563
- className: "copilotKitDebugMenuItem",
564
- onClick: () => logMessages(messagesContext),
565
- children: "Log Messages"
566
- }
567
- ) }),
568
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
569
- "button",
570
- {
571
- className: "copilotKitDebugMenuItem",
572
- onClick: () => checkForUpdates(true),
573
- children: "Check for Updates"
574
- }
575
- ) }),
576
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("hr", {}),
577
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
578
- "button",
579
- {
580
- className: "copilotKitDebugMenuItem",
581
- onClick: () => setShowDevConsole(false),
582
- children: "Hide Dev Console"
583
- }
584
- ) })
585
- ]
586
- }
587
- )
588
- ] }) });
589
- }
590
- // Annotate the CommonJS export names for ESM import in node:
591
- 0 && (module.exports = {
592
- CopilotDevConsole,
593
- shouldShowDevConsole
594
- });
595
- //# sourceMappingURL=index.js.map