@copilotkit/react-core 1.51.4-next.6 → 1.51.4-next.8

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 (301) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +18 -12
  3. package/dist/{chunk-DQXCQWSG.mjs → chunk-2JZZD4RP.mjs} +93 -58
  4. package/dist/chunk-2JZZD4RP.mjs.map +1 -0
  5. package/dist/{chunk-6ESSSQ7Q.mjs → chunk-2RSAYTXH.mjs} +6 -3
  6. package/dist/chunk-2RSAYTXH.mjs.map +1 -0
  7. package/dist/chunk-3LZZ4RVM.mjs +37 -0
  8. package/dist/{chunk-ABWT4DRT.mjs.map → chunk-3LZZ4RVM.mjs.map} +1 -1
  9. package/dist/{chunk-QDES5PDW.mjs → chunk-4ZQYMC5F.mjs} +2 -2
  10. package/dist/{chunk-QDES5PDW.mjs.map → chunk-4ZQYMC5F.mjs.map} +1 -1
  11. package/dist/{chunk-6PUNP7CD.mjs → chunk-6AWG5FWL.mjs} +2 -2
  12. package/dist/chunk-6AWG5FWL.mjs.map +1 -0
  13. package/dist/{chunk-C3YJYDK4.mjs → chunk-7GIBHX6X.mjs} +8 -2
  14. package/dist/chunk-7GIBHX6X.mjs.map +1 -0
  15. package/dist/{chunk-PIF5KJYI.mjs → chunk-7PJKPWMD.mjs} +15 -6
  16. package/dist/chunk-7PJKPWMD.mjs.map +1 -0
  17. package/dist/{chunk-7JTI6ZL4.mjs → chunk-7U3DNFBF.mjs} +6 -3
  18. package/dist/chunk-7U3DNFBF.mjs.map +1 -0
  19. package/dist/{chunk-KNJHRVKW.mjs → chunk-AAGMWZCN.mjs} +45 -14
  20. package/dist/chunk-AAGMWZCN.mjs.map +1 -0
  21. package/dist/{chunk-AFNWX62Q.mjs → chunk-C7HSVDHD.mjs} +10 -4
  22. package/dist/chunk-C7HSVDHD.mjs.map +1 -0
  23. package/dist/{chunk-ZYTXB6HH.mjs → chunk-CZT7JUIM.mjs} +4 -2
  24. package/dist/chunk-CZT7JUIM.mjs.map +1 -0
  25. package/dist/{chunk-VP43SLSZ.mjs → chunk-DAQORGBP.mjs} +10 -5
  26. package/dist/chunk-DAQORGBP.mjs.map +1 -0
  27. package/dist/{chunk-BKMJ4LC7.mjs → chunk-G7SUZGGB.mjs} +19 -12
  28. package/dist/chunk-G7SUZGGB.mjs.map +1 -0
  29. package/dist/{chunk-7IBF6RBW.mjs → chunk-GY3FQICF.mjs} +2 -2
  30. package/dist/{chunk-4RRMC7L2.mjs → chunk-IGYMBU43.mjs} +18 -7
  31. package/dist/chunk-IGYMBU43.mjs.map +1 -0
  32. package/dist/{chunk-QD7EID4N.mjs → chunk-IHMMKEFG.mjs} +16 -11
  33. package/dist/chunk-IHMMKEFG.mjs.map +1 -0
  34. package/dist/{chunk-YYN33GSG.mjs → chunk-K5OXUXCG.mjs} +14 -11
  35. package/dist/chunk-K5OXUXCG.mjs.map +1 -0
  36. package/dist/{chunk-6ZLPNY7X.mjs → chunk-L7GPCF2V.mjs} +6 -2
  37. package/dist/{chunk-6ZLPNY7X.mjs.map → chunk-L7GPCF2V.mjs.map} +1 -1
  38. package/dist/{chunk-7DTB7S5V.mjs → chunk-LNGBARXE.mjs} +5 -2
  39. package/dist/chunk-LNGBARXE.mjs.map +1 -0
  40. package/dist/{chunk-NBK4KBLX.mjs → chunk-MBJ7OLYI.mjs} +9 -5
  41. package/dist/chunk-MBJ7OLYI.mjs.map +1 -0
  42. package/dist/{chunk-LHERIF3L.mjs → chunk-NINJMAND.mjs} +10 -7
  43. package/dist/chunk-NINJMAND.mjs.map +1 -0
  44. package/dist/{chunk-MA3CUMCY.mjs → chunk-P6ZPE4XJ.mjs} +3 -3
  45. package/dist/{chunk-MA3CUMCY.mjs.map → chunk-P6ZPE4XJ.mjs.map} +1 -1
  46. package/dist/{chunk-77IVITG3.mjs → chunk-QXZTCGF4.mjs} +9 -4
  47. package/dist/chunk-QXZTCGF4.mjs.map +1 -0
  48. package/dist/{chunk-RKTVJRK7.mjs → chunk-R7BV32X4.mjs} +5 -2
  49. package/dist/chunk-R7BV32X4.mjs.map +1 -0
  50. package/dist/{chunk-VKNLTZJE.mjs → chunk-S65UEHGI.mjs} +30 -21
  51. package/dist/chunk-S65UEHGI.mjs.map +1 -0
  52. package/dist/{chunk-YCG6SNAU.mjs → chunk-SBRCWA4S.mjs} +186 -32
  53. package/dist/chunk-SBRCWA4S.mjs.map +1 -0
  54. package/dist/{chunk-HE22TZMF.mjs → chunk-SFOKX4MH.mjs} +18 -9
  55. package/dist/chunk-SFOKX4MH.mjs.map +1 -0
  56. package/dist/{chunk-LMHB2D4J.mjs → chunk-SK2XMJUD.mjs} +13 -4
  57. package/dist/chunk-SK2XMJUD.mjs.map +1 -0
  58. package/dist/{chunk-XDFVCQD3.mjs → chunk-SYGQHN3H.mjs} +1 -1
  59. package/dist/{chunk-XDFVCQD3.mjs.map → chunk-SYGQHN3H.mjs.map} +1 -1
  60. package/dist/{chunk-SRJT5VVY.mjs → chunk-TFZXOEY4.mjs} +6 -4
  61. package/dist/{chunk-SRJT5VVY.mjs.map → chunk-TFZXOEY4.mjs.map} +1 -1
  62. package/dist/{chunk-4CEQJ2X6.mjs → chunk-TPN7WC53.mjs} +4 -2
  63. package/dist/{chunk-4CEQJ2X6.mjs.map → chunk-TPN7WC53.mjs.map} +1 -1
  64. package/dist/{chunk-VGL3DGUW.mjs → chunk-UA23VX5J.mjs} +4 -2
  65. package/dist/chunk-UA23VX5J.mjs.map +1 -0
  66. package/dist/{chunk-VV56AVPB.mjs → chunk-V42VL2JR.mjs} +15 -4
  67. package/dist/chunk-V42VL2JR.mjs.map +1 -0
  68. package/dist/{chunk-RBGVEVWY.mjs → chunk-VZ4NSOFQ.mjs} +4 -4
  69. package/dist/chunk-VZ4NSOFQ.mjs.map +1 -0
  70. package/dist/{chunk-WF65O6HX.mjs → chunk-WRALJIW5.mjs} +18 -5
  71. package/dist/chunk-WRALJIW5.mjs.map +1 -0
  72. package/dist/{chunk-PMAFHQ7P.mjs → chunk-WV2EA7SX.mjs} +1 -1
  73. package/dist/chunk-WV2EA7SX.mjs.map +1 -0
  74. package/dist/{chunk-EFL5OBKN.mjs → chunk-ZP2IMXFY.mjs} +10 -4
  75. package/dist/chunk-ZP2IMXFY.mjs.map +1 -0
  76. package/dist/components/CopilotListeners.js +11 -2
  77. package/dist/components/CopilotListeners.js.map +1 -1
  78. package/dist/components/CopilotListeners.mjs +2 -2
  79. package/dist/components/copilot-provider/copilot-messages.d.ts +1 -1
  80. package/dist/components/copilot-provider/copilot-messages.js +22 -7
  81. package/dist/components/copilot-provider/copilot-messages.js.map +1 -1
  82. package/dist/components/copilot-provider/copilot-messages.mjs +3 -3
  83. package/dist/components/copilot-provider/copilotkit-props.js.map +1 -1
  84. package/dist/components/copilot-provider/copilotkit.js +179 -84
  85. package/dist/components/copilot-provider/copilotkit.js.map +1 -1
  86. package/dist/components/copilot-provider/copilotkit.mjs +16 -16
  87. package/dist/components/copilot-provider/index.js +179 -84
  88. package/dist/components/copilot-provider/index.js.map +1 -1
  89. package/dist/components/copilot-provider/index.mjs +16 -16
  90. package/dist/components/dev-console/console-trigger.d.ts +1 -1
  91. package/dist/components/dev-console/console-trigger.js +227 -42
  92. package/dist/components/dev-console/console-trigger.js.map +1 -1
  93. package/dist/components/dev-console/console-trigger.mjs +24 -8
  94. package/dist/components/dev-console/console-trigger.mjs.map +1 -1
  95. package/dist/components/dev-console/developer-console-modal.d.ts +1 -1
  96. package/dist/components/dev-console/developer-console-modal.js +206 -37
  97. package/dist/components/dev-console/developer-console-modal.js.map +1 -1
  98. package/dist/components/dev-console/developer-console-modal.mjs +3 -3
  99. package/dist/components/dev-console/icons.js +14 -5
  100. package/dist/components/dev-console/icons.js.map +1 -1
  101. package/dist/components/dev-console/icons.mjs +1 -1
  102. package/dist/components/error-boundary/error-boundary.d.ts +1 -1
  103. package/dist/components/error-boundary/error-boundary.js +9 -2
  104. package/dist/components/error-boundary/error-boundary.js.map +1 -1
  105. package/dist/components/error-boundary/error-boundary.mjs +5 -5
  106. package/dist/components/error-boundary/error-utils.js.map +1 -1
  107. package/dist/components/error-boundary/error-utils.mjs +2 -2
  108. package/dist/components/index.js +179 -84
  109. package/dist/components/index.js.map +1 -1
  110. package/dist/components/index.mjs +16 -16
  111. package/dist/components/toast/toast-provider.js +9 -3
  112. package/dist/components/toast/toast-provider.js.map +1 -1
  113. package/dist/components/toast/toast-provider.mjs +1 -1
  114. package/dist/components/usage-banner.js +5 -1
  115. package/dist/components/usage-banner.js.map +1 -1
  116. package/dist/components/usage-banner.mjs +1 -1
  117. package/dist/context/coagent-state-renders-context.d.ts +1 -1
  118. package/dist/context/coagent-state-renders-context.js +15 -10
  119. package/dist/context/coagent-state-renders-context.js.map +1 -1
  120. package/dist/context/coagent-state-renders-context.mjs +1 -1
  121. package/dist/context/copilot-context.js +9 -3
  122. package/dist/context/copilot-context.js.map +1 -1
  123. package/dist/context/copilot-context.mjs +1 -1
  124. package/dist/context/index.js +31 -15
  125. package/dist/context/index.js.map +1 -1
  126. package/dist/context/index.mjs +7 -7
  127. package/dist/context/threads-context.d.ts +1 -1
  128. package/dist/context/threads-context.js +7 -2
  129. package/dist/context/threads-context.js.map +1 -1
  130. package/dist/context/threads-context.mjs +1 -1
  131. package/dist/hooks/index.js +162 -61
  132. package/dist/hooks/index.js.map +1 -1
  133. package/dist/hooks/index.mjs +26 -26
  134. package/dist/hooks/use-coagent-state-render-bridge.helpers.js +7 -1
  135. package/dist/hooks/use-coagent-state-render-bridge.helpers.js.map +1 -1
  136. package/dist/hooks/use-coagent-state-render-bridge.helpers.mjs +1 -1
  137. package/dist/hooks/use-coagent-state-render-bridge.js +31 -15
  138. package/dist/hooks/use-coagent-state-render-bridge.js.map +1 -1
  139. package/dist/hooks/use-coagent-state-render-bridge.mjs +6 -6
  140. package/dist/hooks/use-coagent-state-render-registry.js +14 -3
  141. package/dist/hooks/use-coagent-state-render-registry.js.map +1 -1
  142. package/dist/hooks/use-coagent-state-render-registry.mjs +2 -2
  143. package/dist/hooks/use-coagent-state-render.js +34 -21
  144. package/dist/hooks/use-coagent-state-render.js.map +1 -1
  145. package/dist/hooks/use-coagent-state-render.mjs +4 -4
  146. package/dist/hooks/use-coagent.js +3 -1
  147. package/dist/hooks/use-coagent.js.map +1 -1
  148. package/dist/hooks/use-coagent.mjs +1 -1
  149. package/dist/hooks/use-configure-chat-suggestions.js.map +1 -1
  150. package/dist/hooks/use-configure-chat-suggestions.mjs.map +1 -1
  151. package/dist/hooks/use-copilot-action.js +13 -9
  152. package/dist/hooks/use-copilot-action.js.map +1 -1
  153. package/dist/hooks/use-copilot-action.mjs +4 -4
  154. package/dist/hooks/use-copilot-additional-instructions.d.ts +1 -1
  155. package/dist/hooks/use-copilot-additional-instructions.js +26 -7
  156. package/dist/hooks/use-copilot-additional-instructions.js.map +1 -1
  157. package/dist/hooks/use-copilot-additional-instructions.mjs +2 -2
  158. package/dist/hooks/use-copilot-authenticated-action.js +25 -13
  159. package/dist/hooks/use-copilot-authenticated-action.js.map +1 -1
  160. package/dist/hooks/use-copilot-authenticated-action.mjs +6 -6
  161. package/dist/hooks/use-copilot-chat-headless_c.js +81 -27
  162. package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -1
  163. package/dist/hooks/use-copilot-chat-headless_c.mjs +12 -12
  164. package/dist/hooks/use-copilot-chat-suggestions.js.map +1 -1
  165. package/dist/hooks/use-copilot-chat-suggestions.mjs +1 -1
  166. package/dist/hooks/use-copilot-chat.js +81 -27
  167. package/dist/hooks/use-copilot-chat.js.map +1 -1
  168. package/dist/hooks/use-copilot-chat.mjs +12 -12
  169. package/dist/hooks/use-copilot-chat_internal.js +81 -27
  170. package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
  171. package/dist/hooks/use-copilot-chat_internal.mjs +11 -11
  172. package/dist/hooks/use-copilot-runtime-client.js +4 -1
  173. package/dist/hooks/use-copilot-runtime-client.js.map +1 -1
  174. package/dist/hooks/use-copilot-runtime-client.mjs +2 -2
  175. package/dist/hooks/use-default-tool.js +17 -10
  176. package/dist/hooks/use-default-tool.js.map +1 -1
  177. package/dist/hooks/use-default-tool.mjs +5 -5
  178. package/dist/hooks/use-flat-category-store.js +13 -10
  179. package/dist/hooks/use-flat-category-store.js.map +1 -1
  180. package/dist/hooks/use-flat-category-store.mjs +1 -1
  181. package/dist/hooks/use-frontend-tool.js.map +1 -1
  182. package/dist/hooks/use-frontend-tool.mjs +1 -1
  183. package/dist/hooks/use-human-in-the-loop.js.map +1 -1
  184. package/dist/hooks/use-human-in-the-loop.mjs +1 -1
  185. package/dist/hooks/use-langgraph-interrupt-render.js +22 -5
  186. package/dist/hooks/use-langgraph-interrupt-render.js.map +1 -1
  187. package/dist/hooks/use-langgraph-interrupt-render.mjs +4 -4
  188. package/dist/hooks/use-langgraph-interrupt.js +19 -4
  189. package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
  190. package/dist/hooks/use-langgraph-interrupt.mjs +3 -3
  191. package/dist/hooks/use-make-copilot-document-readable.js +9 -3
  192. package/dist/hooks/use-make-copilot-document-readable.js.map +1 -1
  193. package/dist/hooks/use-make-copilot-document-readable.mjs +2 -2
  194. package/dist/hooks/use-render-tool-call.d.ts +1 -1
  195. package/dist/hooks/use-render-tool-call.js +13 -9
  196. package/dist/hooks/use-render-tool-call.js.map +1 -1
  197. package/dist/hooks/use-render-tool-call.mjs +1 -1
  198. package/dist/hooks/use-tree.js +4 -1
  199. package/dist/hooks/use-tree.js.map +1 -1
  200. package/dist/hooks/use-tree.mjs +1 -1
  201. package/dist/index.js +311 -130
  202. package/dist/index.js.map +1 -1
  203. package/dist/index.mjs +52 -52
  204. package/dist/index.umd.js +1 -1
  205. package/dist/index.umd.js.map +1 -1
  206. package/dist/lib/copilot-task.js +10 -3
  207. package/dist/lib/copilot-task.js.map +1 -1
  208. package/dist/lib/copilot-task.mjs +18 -18
  209. package/dist/lib/index.js +10 -3
  210. package/dist/lib/index.js.map +1 -1
  211. package/dist/lib/index.mjs +18 -18
  212. package/dist/lib/status-checker.js.map +1 -1
  213. package/dist/lib/status-checker.mjs +1 -1
  214. package/dist/types/coagent-action.js.map +1 -1
  215. package/dist/types/frontend-action.js +3 -1
  216. package/dist/types/frontend-action.js.map +1 -1
  217. package/dist/types/frontend-action.mjs +1 -1
  218. package/dist/types/interrupt-action.js.map +1 -1
  219. package/dist/v2/index.umd.js.map +1 -1
  220. package/jest.config.js +1 -0
  221. package/package.json +5 -6
  222. package/src/__mocks__/analytics-node.js +9 -0
  223. package/src/components/CopilotListeners.tsx +21 -5
  224. package/src/components/copilot-provider/__tests__/copilotkit-error.test.tsx +3 -1
  225. package/src/components/copilot-provider/copilot-messages.tsx +36 -11
  226. package/src/components/copilot-provider/copilotkit-props.tsx +4 -1
  227. package/src/components/copilot-provider/copilotkit.tsx +116 -50
  228. package/src/components/dev-console/console-trigger.tsx +39 -10
  229. package/src/components/dev-console/developer-console-modal.tsx +207 -57
  230. package/src/components/dev-console/icons.tsx +6 -1
  231. package/src/components/error-boundary/error-boundary.tsx +10 -2
  232. package/src/components/error-boundary/error-utils.tsx +8 -3
  233. package/src/components/toast/toast-provider.tsx +16 -6
  234. package/src/components/usage-banner.tsx +9 -2
  235. package/src/context/coagent-state-renders-context.tsx +24 -12
  236. package/src/context/copilot-context.tsx +48 -15
  237. package/src/context/index.ts +8 -2
  238. package/src/context/threads-context.tsx +14 -3
  239. package/src/hooks/__tests__/use-coagent-state-render-bridge.helpers.test.ts +11 -4
  240. package/src/hooks/__tests__/use-coagent-state-render.e2e.test.tsx +175 -47
  241. package/src/hooks/__tests__/use-coagent-state-render.test.tsx +31 -10
  242. package/src/hooks/__tests__/use-frontend-tool-remount.e2e.test.tsx +10 -2
  243. package/src/hooks/use-coagent-state-render-bridge.helpers.ts +49 -16
  244. package/src/hooks/use-coagent-state-render-bridge.tsx +30 -13
  245. package/src/hooks/use-coagent-state-render-registry.ts +36 -21
  246. package/src/hooks/use-coagent-state-render.ts +30 -19
  247. package/src/hooks/use-coagent.ts +15 -4
  248. package/src/hooks/use-configure-chat-suggestions.tsx +14 -4
  249. package/src/hooks/use-copilot-action.ts +12 -3
  250. package/src/hooks/use-copilot-additional-instructions.ts +17 -4
  251. package/src/hooks/use-copilot-authenticated-action.ts +4 -1
  252. package/src/hooks/use-copilot-chat-headless_c.ts +8 -2
  253. package/src/hooks/use-copilot-chat-suggestions.tsx +14 -4
  254. package/src/hooks/use-copilot-chat.ts +3 -1
  255. package/src/hooks/use-copilot-chat_internal.ts +72 -19
  256. package/src/hooks/use-copilot-runtime-client.ts +20 -6
  257. package/src/hooks/use-default-tool.ts +8 -2
  258. package/src/hooks/use-flat-category-store.ts +15 -11
  259. package/src/hooks/use-frontend-tool.ts +35 -25
  260. package/src/hooks/use-human-in-the-loop.ts +21 -5
  261. package/src/hooks/use-langgraph-interrupt-render.ts +13 -2
  262. package/src/hooks/use-langgraph-interrupt.ts +13 -3
  263. package/src/hooks/use-render-tool-call.ts +20 -11
  264. package/src/hooks/use-tree.ts +20 -5
  265. package/src/lib/copilot-task.ts +20 -6
  266. package/src/lib/status-checker.ts +4 -1
  267. package/src/types/coagent-action.ts +6 -2
  268. package/src/types/frontend-action.ts +16 -5
  269. package/src/types/interrupt-action.ts +15 -5
  270. package/tsconfig.json +1 -1
  271. package/dist/chunk-4RRMC7L2.mjs.map +0 -1
  272. package/dist/chunk-6ESSSQ7Q.mjs.map +0 -1
  273. package/dist/chunk-6PUNP7CD.mjs.map +0 -1
  274. package/dist/chunk-77IVITG3.mjs.map +0 -1
  275. package/dist/chunk-7DTB7S5V.mjs.map +0 -1
  276. package/dist/chunk-7JTI6ZL4.mjs.map +0 -1
  277. package/dist/chunk-ABWT4DRT.mjs +0 -24
  278. package/dist/chunk-AFNWX62Q.mjs.map +0 -1
  279. package/dist/chunk-BKMJ4LC7.mjs.map +0 -1
  280. package/dist/chunk-C3YJYDK4.mjs.map +0 -1
  281. package/dist/chunk-DQXCQWSG.mjs.map +0 -1
  282. package/dist/chunk-EFL5OBKN.mjs.map +0 -1
  283. package/dist/chunk-HE22TZMF.mjs.map +0 -1
  284. package/dist/chunk-KNJHRVKW.mjs.map +0 -1
  285. package/dist/chunk-LHERIF3L.mjs.map +0 -1
  286. package/dist/chunk-LMHB2D4J.mjs.map +0 -1
  287. package/dist/chunk-NBK4KBLX.mjs.map +0 -1
  288. package/dist/chunk-PIF5KJYI.mjs.map +0 -1
  289. package/dist/chunk-PMAFHQ7P.mjs.map +0 -1
  290. package/dist/chunk-QD7EID4N.mjs.map +0 -1
  291. package/dist/chunk-RBGVEVWY.mjs.map +0 -1
  292. package/dist/chunk-RKTVJRK7.mjs.map +0 -1
  293. package/dist/chunk-VGL3DGUW.mjs.map +0 -1
  294. package/dist/chunk-VKNLTZJE.mjs.map +0 -1
  295. package/dist/chunk-VP43SLSZ.mjs.map +0 -1
  296. package/dist/chunk-VV56AVPB.mjs.map +0 -1
  297. package/dist/chunk-WF65O6HX.mjs.map +0 -1
  298. package/dist/chunk-YCG6SNAU.mjs.map +0 -1
  299. package/dist/chunk-YYN33GSG.mjs.map +0 -1
  300. package/dist/chunk-ZYTXB6HH.mjs.map +0 -1
  301. /package/dist/{chunk-7IBF6RBW.mjs.map → chunk-GY3FQICF.mjs.map} +0 -0
@@ -120,7 +120,9 @@ var emptyCopilotContext = {
120
120
  },
121
121
  copilotApiConfig: new class {
122
122
  get chatApiEndpoint() {
123
- throw new Error("Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!");
123
+ throw new Error(
124
+ "Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!"
125
+ );
124
126
  }
125
127
  get headers() {
126
128
  return {};
@@ -182,12 +184,16 @@ var CopilotContext = import_react.default.createContext(emptyCopilotContext);
182
184
  function useCopilotContext() {
183
185
  const context = import_react.default.useContext(CopilotContext);
184
186
  if (context === emptyCopilotContext) {
185
- throw new Error("Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!");
187
+ throw new Error(
188
+ "Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!"
189
+ );
186
190
  }
187
191
  return context;
188
192
  }
189
193
  function returnAndThrowInDebug(_value) {
190
- throw new Error("Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!");
194
+ throw new Error(
195
+ "Remember to wrap your app in a `<CopilotKit> {...} </CopilotKit>` !!!"
196
+ );
191
197
  }
192
198
 
193
199
  // src/hooks/use-tree.ts
@@ -305,7 +311,10 @@ var useTree = () => {
305
311
  if (index !== 0) {
306
312
  output += "\n";
307
313
  }
308
- output += printNode(node, `${treeIndentationRepresentation(index, 0)}. `);
314
+ output += printNode(
315
+ node,
316
+ `${treeIndentationRepresentation(index, 0)}. `
317
+ );
309
318
  });
310
319
  return output;
311
320
  },
@@ -336,16 +345,19 @@ var useFlatCategoryStore = () => {
336
345
  flatCategoryStoreReducer,
337
346
  /* @__PURE__ */ new Map()
338
347
  );
339
- const addElement = (0, import_react3.useCallback)((value, categories) => {
340
- const newId = (0, import_shared2.randomId)();
341
- dispatch({
342
- type: "ADD_ELEMENT",
343
- value,
344
- id: newId,
345
- categories
346
- });
347
- return newId;
348
- }, []);
348
+ const addElement = (0, import_react3.useCallback)(
349
+ (value, categories) => {
350
+ const newId = (0, import_shared2.randomId)();
351
+ dispatch({
352
+ type: "ADD_ELEMENT",
353
+ value,
354
+ id: newId,
355
+ categories
356
+ });
357
+ return newId;
358
+ },
359
+ []
360
+ );
349
361
  const removeElement = (0, import_react3.useCallback)((id) => {
350
362
  dispatch({ type: "REMOVE_ELEMENT", id });
351
363
  }, []);
@@ -472,7 +484,9 @@ function ToastProvider({
472
484
  children
473
485
  }) {
474
486
  const [toasts, setToasts] = (0, import_react5.useState)([]);
475
- const [bannerError, setBannerErrorState] = (0, import_react5.useState)(null);
487
+ const [bannerError, setBannerErrorState] = (0, import_react5.useState)(
488
+ null
489
+ );
476
490
  const removeToast = (0, import_react5.useCallback)((id) => {
477
491
  setToasts((prev) => prev.filter((toast) => toast.id !== id));
478
492
  }, []);
@@ -506,7 +520,9 @@ function ToastProvider({
506
520
  [enabled]
507
521
  );
508
522
  const addGraphQLErrorsToast = (0, import_react5.useCallback)((errors) => {
509
- console.warn("addGraphQLErrorsToast is deprecated. All errors now show as banners.");
523
+ console.warn(
524
+ "addGraphQLErrorsToast is deprecated. All errors now show as banners."
525
+ );
510
526
  }, []);
511
527
  const value = {
512
528
  toasts,
@@ -606,7 +622,9 @@ function ToastProvider({
606
622
  },
607
623
  children: (() => {
608
624
  let message = bannerError.message;
609
- const jsonMatch = message.match(/'message':\s*'([^']+)'/);
625
+ const jsonMatch = message.match(
626
+ /'message':\s*'([^']+)'/
627
+ );
610
628
  if (jsonMatch) {
611
629
  return jsonMatch[1];
612
630
  }
@@ -734,7 +752,9 @@ function useMessagesTap() {
734
752
  throw new Error("useMessagesTap must be used inside <MessagesTapProvider>");
735
753
  return tap;
736
754
  }
737
- function MessagesTapProvider({ children }) {
755
+ function MessagesTapProvider({
756
+ children
757
+ }) {
738
758
  const messagesRef = (0, import_react6.useRef)([]);
739
759
  const tapRef = (0, import_react6.useRef)({
740
760
  getMessagesFromTap: () => messagesRef.current,
@@ -787,10 +807,14 @@ function CopilotMessages({ children }) {
787
807
  const originalError = extensions == null ? void 0 : extensions.originalError;
788
808
  if (originalError == null ? void 0 : originalError.stack) {
789
809
  if (originalError.stack.includes("CopilotApiDiscoveryError")) {
790
- return new import_shared4.CopilotKitApiDiscoveryError({ message: originalError.message });
810
+ return new import_shared4.CopilotKitApiDiscoveryError({
811
+ message: originalError.message
812
+ });
791
813
  }
792
814
  if (originalError.stack.includes("CopilotKitRemoteEndpointDiscoveryError")) {
793
- return new import_shared4.CopilotKitRemoteEndpointDiscoveryError({ message: originalError.message });
815
+ return new import_shared4.CopilotKitRemoteEndpointDiscoveryError({
816
+ message: originalError.message
817
+ });
794
818
  }
795
819
  if (originalError.stack.includes("CopilotKitAgentDiscoveryError")) {
796
820
  return new import_shared4.CopilotKitAgentDiscoveryError({
@@ -816,7 +840,10 @@ function CopilotMessages({ children }) {
816
840
  const visibility = extensions == null ? void 0 : extensions.visibility;
817
841
  const isDev = shouldShowDevConsole(showDevConsole);
818
842
  if (!isDev) {
819
- console.error("CopilotKit Error (hidden in production):", gqlError.message);
843
+ console.error(
844
+ "CopilotKit Error (hidden in production):",
845
+ gqlError.message
846
+ );
820
847
  return;
821
848
  }
822
849
  if (visibility === import_shared4.ErrorVisibility.SILENT) {
@@ -1065,7 +1092,11 @@ var getErrorActions = (error) => {
1065
1092
  return {
1066
1093
  primary: {
1067
1094
  label: "Upgrade",
1068
- onClick: () => window.open("https://cloud.copilotkit.ai", "_blank", "noopener,noreferrer")
1095
+ onClick: () => window.open(
1096
+ "https://cloud.copilotkit.ai",
1097
+ "_blank",
1098
+ "noopener,noreferrer"
1099
+ )
1069
1100
  }
1070
1101
  };
1071
1102
  default:
@@ -1188,16 +1219,19 @@ var CopilotErrorBoundary = class extends import_react7.default.Component {
1188
1219
  // src/context/coagent-state-renders-context.tsx
1189
1220
  var import_react8 = require("react");
1190
1221
  var import_jsx_runtime5 = require("react/jsx-runtime");
1191
- var CoAgentStateRendersContext = (0, import_react8.createContext)(
1192
- void 0
1193
- );
1194
- function CoAgentStateRendersProvider({ children }) {
1222
+ var CoAgentStateRendersContext = (0, import_react8.createContext)(void 0);
1223
+ function CoAgentStateRendersProvider({
1224
+ children
1225
+ }) {
1195
1226
  const [coAgentStateRenders, setCoAgentStateRenders] = (0, import_react8.useState)({});
1196
- const setCoAgentStateRender = (0, import_react8.useCallback)((id, stateRender) => {
1197
- setCoAgentStateRenders((prevPoints) => __spreadProps(__spreadValues({}, prevPoints), {
1198
- [id]: stateRender
1199
- }));
1200
- }, []);
1227
+ const setCoAgentStateRender = (0, import_react8.useCallback)(
1228
+ (id, stateRender) => {
1229
+ setCoAgentStateRenders((prevPoints) => __spreadProps(__spreadValues({}, prevPoints), {
1230
+ [id]: stateRender
1231
+ }));
1232
+ },
1233
+ []
1234
+ );
1201
1235
  const removeCoAgentStateRender = (0, import_react8.useCallback)((id) => {
1202
1236
  setCoAgentStateRenders((prevPoints) => {
1203
1237
  const newPoints = __spreadValues({}, prevPoints);
@@ -1222,7 +1256,9 @@ function CoAgentStateRendersProvider({ children }) {
1222
1256
  function useCoAgentStateRenders() {
1223
1257
  const context = (0, import_react8.useContext)(CoAgentStateRendersContext);
1224
1258
  if (!context) {
1225
- throw new Error("useCoAgentStateRenders must be used within CoAgentStateRendersProvider");
1259
+ throw new Error(
1260
+ "useCoAgentStateRenders must be used within CoAgentStateRendersProvider"
1261
+ );
1226
1262
  }
1227
1263
  return context;
1228
1264
  }
@@ -1235,8 +1271,13 @@ var import_react12 = require("react");
1235
1271
  var import_react9 = require("react");
1236
1272
  var import_shared8 = require("@copilotkit/shared");
1237
1273
  var import_jsx_runtime6 = require("react/jsx-runtime");
1238
- var ThreadsContext = (0, import_react9.createContext)(void 0);
1239
- function ThreadsProvider({ children, threadId: explicitThreadId }) {
1274
+ var ThreadsContext = (0, import_react9.createContext)(
1275
+ void 0
1276
+ );
1277
+ function ThreadsProvider({
1278
+ children,
1279
+ threadId: explicitThreadId
1280
+ }) {
1240
1281
  const [internalThreadId, setThreadId] = (0, import_react9.useState)(() => (0, import_shared8.randomUUID)());
1241
1282
  const threadId = explicitThreadId != null ? explicitThreadId : internalThreadId;
1242
1283
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
@@ -1419,7 +1460,13 @@ function selectSnapshot({
1419
1460
  cachedSnapshot = caches.byStateRenderAndRun[`${stateRenderId}::latest`];
1420
1461
  }
1421
1462
  const snapshotForClaim = (existingClaim == null ? void 0 : existingClaim.locked) ? (_e = existingClaim.stateSnapshot) != null ? _e : cachedSnapshot : hasSnapshotKeys ? snapshot : (_f = existingClaim == null ? void 0 : existingClaim.stateSnapshot) != null ? _f : cachedSnapshot;
1422
- return { snapshot, hasSnapshotKeys, cachedSnapshot, allowEmptySnapshot, snapshotForClaim };
1463
+ return {
1464
+ snapshot,
1465
+ hasSnapshotKeys,
1466
+ cachedSnapshot,
1467
+ allowEmptySnapshot,
1468
+ snapshotForClaim
1469
+ };
1423
1470
  }
1424
1471
 
1425
1472
  // src/hooks/use-coagent-state-render-registry.ts
@@ -1524,7 +1571,9 @@ function useStateRenderRegistry({
1524
1571
  });
1525
1572
  }
1526
1573
  if (existingClaim && !existingClaim.locked && (agentMessages == null ? void 0 : agentMessages.length)) {
1527
- const indexInAgentMessages = agentMessages.findIndex((msg) => msg.id === message.id);
1574
+ const indexInAgentMessages = agentMessages.findIndex(
1575
+ (msg) => msg.id === message.id
1576
+ );
1528
1577
  if (indexInAgentMessages >= 0 && indexInAgentMessages < agentMessages.length - 1) {
1529
1578
  existingClaim.locked = true;
1530
1579
  }
@@ -1556,7 +1605,10 @@ function useStateRenderRegistry({
1556
1605
  snapshotCache[`${stateRenderId}::latest`] = snapshotForClaim;
1557
1606
  store[LAST_SNAPSHOTS_BY_RENDER_AND_RUN] = snapshotCache;
1558
1607
  const messageCache = __spreadValues({}, (_f = store[LAST_SNAPSHOTS_BY_MESSAGE]) != null ? _f : {});
1559
- messageCache[message.id] = { snapshot: snapshotForClaim, runId: effectiveRunId };
1608
+ messageCache[message.id] = {
1609
+ snapshot: snapshotForClaim,
1610
+ runId: effectiveRunId
1611
+ };
1560
1612
  store[LAST_SNAPSHOTS_BY_MESSAGE] = messageCache;
1561
1613
  }
1562
1614
  }
@@ -1596,18 +1648,23 @@ function useCoagentStateRenderBridge(agentId, props) {
1596
1648
  }, [agentId, nodeName]);
1597
1649
  const getStateRender = (0, import_react12.useCallback)(
1598
1650
  (messageId) => {
1599
- return Object.entries(coAgentStateRenders).find(([stateRenderId2, stateRender2]) => {
1600
- if (claimsRef.current[messageId]) {
1601
- return stateRenderId2 === claimsRef.current[messageId].stateRenderId;
1651
+ return Object.entries(coAgentStateRenders).find(
1652
+ ([stateRenderId2, stateRender2]) => {
1653
+ if (claimsRef.current[messageId]) {
1654
+ return stateRenderId2 === claimsRef.current[messageId].stateRenderId;
1655
+ }
1656
+ const matchingAgentName = stateRender2.name === agentId;
1657
+ const matchesNodeContext = stateRender2.nodeName ? stateRender2.nodeName === nodeName : true;
1658
+ return matchingAgentName && matchesNodeContext;
1602
1659
  }
1603
- const matchingAgentName = stateRender2.name === agentId;
1604
- const matchesNodeContext = stateRender2.nodeName ? stateRender2.nodeName === nodeName : true;
1605
- return matchingAgentName && matchesNodeContext;
1606
- });
1660
+ );
1607
1661
  },
1608
1662
  [coAgentStateRenders, nodeName, agentId]
1609
1663
  );
1610
- const stateRenderEntry = (0, import_react12.useMemo)(() => getStateRender(message.id), [getStateRender, message.id]);
1664
+ const stateRenderEntry = (0, import_react12.useMemo)(
1665
+ () => getStateRender(message.id),
1666
+ [getStateRender, message.id]
1667
+ );
1611
1668
  const stateRenderId = stateRenderEntry == null ? void 0 : stateRenderEntry[0];
1612
1669
  const stateRender = stateRenderEntry == null ? void 0 : stateRenderEntry[1];
1613
1670
  const registryMessage = __spreadProps(__spreadValues({}, message), {
@@ -1681,7 +1738,10 @@ var usePredictStateSubscription = (agent) => {
1681
1738
  predictStateToolsRef.current.forEach((t) => {
1682
1739
  if ((t == null ? void 0 : t.tool) !== toolCallName)
1683
1740
  return;
1684
- const emittedState = typeof partialToolCallArgs === "string" ? (0, import_shared11.parseJson)(partialToolCallArgs, partialToolCallArgs) : partialToolCallArgs;
1741
+ const emittedState = typeof partialToolCallArgs === "string" ? (0, import_shared11.parseJson)(
1742
+ partialToolCallArgs,
1743
+ partialToolCallArgs
1744
+ ) : partialToolCallArgs;
1685
1745
  agent2.setState({
1686
1746
  [t.state_key]: emittedState[t.state_key]
1687
1747
  });
@@ -1710,7 +1770,13 @@ function CopilotListeners() {
1710
1770
  (0, import_react13.useEffect)(() => {
1711
1771
  const subscriber = {
1712
1772
  onError: ({ error }) => {
1713
- setBannerError(new import_shared12.CopilotKitLowLevelError({ error, message: error.message }));
1773
+ setBannerError(
1774
+ new import_shared12.CopilotKitLowLevelError({
1775
+ error,
1776
+ message: error.message,
1777
+ url: typeof window !== "undefined" ? window.location.href : ""
1778
+ })
1779
+ );
1714
1780
  }
1715
1781
  };
1716
1782
  const subscription = copilotkit.subscribe(subscriber);
@@ -1729,15 +1795,22 @@ function CopilotKit(_a) {
1729
1795
  const showInspector = shouldShowDevConsole(props.enableInspector);
1730
1796
  const publicApiKey = props.publicApiKey || props.publicLicenseKey;
1731
1797
  const renderArr = (0, import_react15.useMemo)(() => [{ render: CoAgentStateRenderBridge }], []);
1732
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ToastProvider, { enabled, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CopilotErrorBoundary, { publicApiKey, showUsageBanner: enabled, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ThreadsProvider, { threadId: props.threadId, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1733
- import_react16.CopilotKitProvider,
1734
- __spreadProps(__spreadValues({}, props), {
1735
- showDevConsole: showInspector,
1736
- renderCustomMessages: renderArr,
1737
- useSingleEndpoint: true,
1738
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CopilotKitInternal, __spreadProps(__spreadValues({}, props), { children }))
1739
- })
1740
- ) }) }) });
1798
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ToastProvider, { enabled, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1799
+ CopilotErrorBoundary,
1800
+ {
1801
+ publicApiKey,
1802
+ showUsageBanner: enabled,
1803
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ThreadsProvider, { threadId: props.threadId, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1804
+ import_react16.CopilotKitProvider,
1805
+ __spreadProps(__spreadValues({}, props), {
1806
+ showDevConsole: showInspector,
1807
+ renderCustomMessages: renderArr,
1808
+ useSingleEndpoint: true,
1809
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CopilotKitInternal, __spreadProps(__spreadValues({}, props), { children }))
1810
+ })
1811
+ ) })
1812
+ }
1813
+ ) });
1741
1814
  }
1742
1815
  function CopilotKitErrorBridge() {
1743
1816
  const { copilotkit } = (0, import_react16.useCopilotKit)();
@@ -1784,7 +1857,9 @@ function CopilotKitInternal(cpkProps) {
1784
1857
  validateProps(cpkProps);
1785
1858
  const publicApiKey = props.publicLicenseKey || props.publicApiKey;
1786
1859
  const chatApiEndpoint = props.runtimeUrl || import_shared13.COPILOT_CLOUD_CHAT_URL;
1787
- const [actions, setActions] = (0, import_react15.useState)({});
1860
+ const [actions, setActions] = (0, import_react15.useState)(
1861
+ {}
1862
+ );
1788
1863
  const [registeredActionConfigs, setRegisteredActionConfigs] = (0, import_react15.useState)(/* @__PURE__ */ new Map());
1789
1864
  const chatComponentsCache = (0, import_react15.useRef)({
1790
1865
  actions: {},
@@ -1845,7 +1920,9 @@ ${nonDocumentStrings}`;
1845
1920
  }, [getAllElements]);
1846
1921
  const getFunctionCallHandler = (0, import_react15.useCallback)(
1847
1922
  (customEntryPoints) => {
1848
- return entryPointsToFunctionCallHandler(Object.values(customEntryPoints || actions));
1923
+ return entryPointsToFunctionCallHandler(
1924
+ Object.values(customEntryPoints || actions)
1925
+ );
1849
1926
  },
1850
1927
  [actions]
1851
1928
  );
@@ -1915,12 +1992,17 @@ ${nonDocumentStrings}`;
1915
1992
  }
1916
1993
  return acc;
1917
1994
  }, {});
1918
- return __spreadValues(__spreadValues(__spreadValues({}, copilotApiConfig.headers || {}), copilotApiConfig.publicApiKey ? { [import_shared13.COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: copilotApiConfig.publicApiKey } : {}), authHeaders);
1995
+ return __spreadValues(__spreadValues(__spreadValues({}, copilotApiConfig.headers || {}), copilotApiConfig.publicApiKey ? {
1996
+ [import_shared13.COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: copilotApiConfig.publicApiKey
1997
+ } : {}), authHeaders);
1919
1998
  }, [copilotApiConfig.headers, copilotApiConfig.publicApiKey, authStates]);
1920
1999
  const [internalErrorHandlers, _setInternalErrorHandler] = (0, import_react15.useState)({});
1921
- const setInternalErrorHandler = (0, import_react15.useCallback)((handler) => {
1922
- _setInternalErrorHandler((prev) => __spreadValues(__spreadValues({}, prev), handler));
1923
- }, []);
2000
+ const setInternalErrorHandler = (0, import_react15.useCallback)(
2001
+ (handler) => {
2002
+ _setInternalErrorHandler((prev) => __spreadValues(__spreadValues({}, prev), handler));
2003
+ },
2004
+ []
2005
+ );
1924
2006
  const removeInternalErrorHandler = (0, import_react15.useCallback)((key) => {
1925
2007
  _setInternalErrorHandler((prev) => {
1926
2008
  const _a2 = prev, { [key]: _removed } = _a2, rest = __objRest(_a2, [__restKey(key)]);
@@ -1990,7 +2072,9 @@ ${nonDocumentStrings}`;
1990
2072
  agentName: props.agent
1991
2073
  };
1992
2074
  }
1993
- const [agentSession, setAgentSession] = (0, import_react15.useState)(initialAgentSession);
2075
+ const [agentSession, setAgentSession] = (0, import_react15.useState)(
2076
+ initialAgentSession
2077
+ );
1994
2078
  (0, import_react15.useEffect)(() => {
1995
2079
  if (props.agent) {
1996
2080
  setAgentSession({
@@ -2004,7 +2088,9 @@ ${nonDocumentStrings}`;
2004
2088
  const setThreadId = (0, import_react15.useCallback)(
2005
2089
  (value) => {
2006
2090
  if (props.threadId) {
2007
- throw new Error("Cannot call setThreadId() when threadId is provided via props.");
2091
+ throw new Error(
2092
+ "Cannot call setThreadId() when threadId is provided via props."
2093
+ );
2008
2094
  }
2009
2095
  setInternalThreadId(value);
2010
2096
  },
@@ -2014,17 +2100,20 @@ ${nonDocumentStrings}`;
2014
2100
  const chatAbortControllerRef = (0, import_react15.useRef)(null);
2015
2101
  const showDevConsole = shouldShowDevConsole(props.showDevConsole);
2016
2102
  const [interruptActions, _setInterruptActions] = (0, import_react15.useState)({});
2017
- const setInterruptAction = (0, import_react15.useCallback)((action) => {
2018
- _setInterruptActions((prev) => {
2019
- var _a2;
2020
- if (action == null || !action.id) {
2021
- return prev;
2022
- }
2023
- return __spreadProps(__spreadValues({}, prev), {
2024
- [action.id]: __spreadValues(__spreadValues({}, (_a2 = prev[action.id]) != null ? _a2 : {}), action)
2103
+ const setInterruptAction = (0, import_react15.useCallback)(
2104
+ (action) => {
2105
+ _setInterruptActions((prev) => {
2106
+ var _a2;
2107
+ if (action == null || !action.id) {
2108
+ return prev;
2109
+ }
2110
+ return __spreadProps(__spreadValues({}, prev), {
2111
+ [action.id]: __spreadValues(__spreadValues({}, (_a2 = prev[action.id]) != null ? _a2 : {}), action)
2112
+ });
2025
2113
  });
2026
- });
2027
- }, []);
2114
+ },
2115
+ []
2116
+ );
2028
2117
  const removeInterruptAction = (0, import_react15.useCallback)((actionId) => {
2029
2118
  _setInterruptActions((prev) => {
2030
2119
  const _a2 = prev, { [actionId]: _ } = _a2, rest = __objRest(_a2, [__restKey(actionId)]);
@@ -2090,15 +2179,18 @@ ${nonDocumentStrings}`;
2090
2179
  },
2091
2180
  [setAuthStates]
2092
2181
  );
2093
- const handleSetRegisteredActions = (0, import_react15.useCallback)((actionConfig) => {
2094
- const key = actionConfig.action.name || (0, import_shared13.randomUUID)();
2095
- setRegisteredActionConfigs((prev) => {
2096
- const newMap = new Map(prev);
2097
- newMap.set(key, actionConfig);
2098
- return newMap;
2099
- });
2100
- return key;
2101
- }, []);
2182
+ const handleSetRegisteredActions = (0, import_react15.useCallback)(
2183
+ (actionConfig) => {
2184
+ const key = actionConfig.action.name || (0, import_shared13.randomUUID)();
2185
+ setRegisteredActionConfigs((prev) => {
2186
+ const newMap = new Map(prev);
2187
+ newMap.set(key, actionConfig);
2188
+ return newMap;
2189
+ });
2190
+ return key;
2191
+ },
2192
+ []
2193
+ );
2102
2194
  const handleRemoveRegisteredAction = (0, import_react15.useCallback)((actionKey) => {
2103
2195
  setRegisteredActionConfigs((prev) => {
2104
2196
  const newMap = new Map(prev);
@@ -2204,7 +2296,10 @@ ${nonDocumentStrings}`;
2204
2296
  }
2205
2297
  var defaultCopilotContextCategories = ["global"];
2206
2298
  function entryPointsToFunctionCallHandler(actions) {
2207
- return (_0) => __async(this, [_0], function* ({ name, args }) {
2299
+ return (_0) => __async(this, [_0], function* ({
2300
+ name,
2301
+ args
2302
+ }) {
2208
2303
  let actionsByFunctionName = {};
2209
2304
  for (let action2 of actions) {
2210
2305
  actionsByFunctionName[action2.name] = action2;