@copilotkit/react-ui 1.4.1-pre.6 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/{chunk-RS6UPR5N.mjs → chunk-2B57NCBA.mjs} +5 -1
  3. package/dist/chunk-2B57NCBA.mjs.map +1 -0
  4. package/dist/chunk-4T3TMQNJ.mjs +45 -0
  5. package/dist/chunk-4T3TMQNJ.mjs.map +1 -0
  6. package/dist/{chunk-H5CXJBR5.mjs → chunk-63ZKP62F.mjs} +2 -2
  7. package/dist/{chunk-ORHE7FYT.mjs → chunk-DHGDU64D.mjs} +8 -8
  8. package/dist/chunk-KXE2JCUH.mjs +1 -0
  9. package/dist/chunk-KXE2JCUH.mjs.map +1 -0
  10. package/dist/{chunk-ECPBML4L.mjs → chunk-TKFQ7VQR.mjs} +2 -2
  11. package/dist/{chunk-TSIFZ5N5.mjs → chunk-VYKDFXGS.mjs} +2 -2
  12. package/dist/chunk-WOUWNTAV.mjs +72 -0
  13. package/dist/chunk-WOUWNTAV.mjs.map +1 -0
  14. package/dist/components/chat/Chat.js +159 -51
  15. package/dist/components/chat/Chat.js.map +1 -1
  16. package/dist/components/chat/Chat.mjs +7 -4
  17. package/dist/components/chat/Modal.js +168 -60
  18. package/dist/components/chat/Modal.js.map +1 -1
  19. package/dist/components/chat/Modal.mjs +8 -5
  20. package/dist/components/chat/Popup.js +170 -62
  21. package/dist/components/chat/Popup.js.map +1 -1
  22. package/dist/components/chat/Popup.mjs +9 -6
  23. package/dist/components/chat/Sidebar.js +172 -64
  24. package/dist/components/chat/Sidebar.js.map +1 -1
  25. package/dist/components/chat/Sidebar.mjs +9 -6
  26. package/dist/components/chat/index.js +174 -66
  27. package/dist/components/chat/index.js.map +1 -1
  28. package/dist/components/chat/index.mjs +10 -7
  29. package/dist/components/dev-console/console.js +138 -32
  30. package/dist/components/dev-console/console.js.map +1 -1
  31. package/dist/components/dev-console/console.mjs +4 -1
  32. package/dist/components/dev-console/index.js +138 -32
  33. package/dist/components/dev-console/index.js.map +1 -1
  34. package/dist/components/dev-console/index.mjs +4 -1
  35. package/dist/components/help-modal/icons.d.ts +6 -0
  36. package/dist/components/help-modal/icons.js +70 -0
  37. package/dist/components/help-modal/icons.js.map +1 -0
  38. package/dist/components/help-modal/icons.mjs +10 -0
  39. package/dist/components/help-modal/icons.mjs.map +1 -0
  40. package/dist/components/help-modal/index.d.ts +2 -0
  41. package/dist/components/help-modal/index.js +135 -0
  42. package/dist/components/help-modal/index.js.map +1 -0
  43. package/dist/components/help-modal/index.mjs +10 -0
  44. package/dist/components/help-modal/index.mjs.map +1 -0
  45. package/dist/components/help-modal/modal.d.ts +5 -0
  46. package/dist/components/help-modal/modal.js +133 -0
  47. package/dist/components/help-modal/modal.js.map +1 -0
  48. package/dist/components/help-modal/modal.mjs +9 -0
  49. package/dist/components/help-modal/modal.mjs.map +1 -0
  50. package/dist/components/index.js +174 -66
  51. package/dist/components/index.js.map +1 -1
  52. package/dist/components/index.mjs +10 -7
  53. package/dist/index.js +176 -68
  54. package/dist/index.js.map +1 -1
  55. package/dist/index.mjs +10 -7
  56. package/package.json +7 -7
  57. package/src/components/dev-console/console.tsx +4 -1
  58. package/src/components/help-modal/icons.tsx +40 -0
  59. package/src/components/help-modal/index.tsx +1 -0
  60. package/src/components/help-modal/modal.tsx +91 -0
  61. package/dist/chunk-RS6UPR5N.mjs.map +0 -1
  62. /package/dist/{chunk-H5CXJBR5.mjs.map → chunk-63ZKP62F.mjs.map} +0 -0
  63. /package/dist/{chunk-ORHE7FYT.mjs.map → chunk-DHGDU64D.mjs.map} +0 -0
  64. /package/dist/{chunk-ECPBML4L.mjs.map → chunk-TKFQ7VQR.mjs.map} +0 -0
  65. /package/dist/{chunk-TSIFZ5N5.mjs.map → chunk-VYKDFXGS.mjs.map} +0 -0
@@ -1,26 +1,29 @@
1
1
  import "../../chunk-MRFF7GSQ.mjs";
2
2
  import {
3
3
  CopilotSidebar
4
- } from "../../chunk-ECPBML4L.mjs";
4
+ } from "../../chunk-TKFQ7VQR.mjs";
5
5
  import "../../chunk-WB3YULQ4.mjs";
6
6
  import {
7
7
  CopilotPopup
8
- } from "../../chunk-TSIFZ5N5.mjs";
9
- import "../../chunk-H5CXJBR5.mjs";
8
+ } from "../../chunk-VYKDFXGS.mjs";
9
+ import "../../chunk-63ZKP62F.mjs";
10
10
  import "../../chunk-YAGE7RCE.mjs";
11
11
  import "../../chunk-VEC45H6Q.mjs";
12
12
  import "../../chunk-RQNJNK2W.mjs";
13
13
  import {
14
14
  CopilotChat
15
- } from "../../chunk-ORHE7FYT.mjs";
15
+ } from "../../chunk-DHGDU64D.mjs";
16
+ import "../../chunk-6INMITFA.mjs";
17
+ import "../../chunk-RU73BEZM.mjs";
16
18
  import "../../chunk-V7W6IM2V.mjs";
17
19
  import "../../chunk-OMTPWC7T.mjs";
18
20
  import "../../chunk-ZABXREBH.mjs";
19
- import "../../chunk-6INMITFA.mjs";
20
- import "../../chunk-RU73BEZM.mjs";
21
21
  import "../../chunk-RJCZRKTV.mjs";
22
- import "../../chunk-RS6UPR5N.mjs";
22
+ import "../../chunk-2B57NCBA.mjs";
23
23
  import "../../chunk-4FIGRRFS.mjs";
24
+ import "../../chunk-KXE2JCUH.mjs";
25
+ import "../../chunk-WOUWNTAV.mjs";
26
+ import "../../chunk-4T3TMQNJ.mjs";
24
27
  import "../../chunk-OTPAZXVR.mjs";
25
28
  import "../../chunk-4LUMV4YO.mjs";
26
29
  import "../../chunk-YQFVRDNC.mjs";
@@ -180,7 +180,7 @@ function logMessages(context) {
180
180
  }
181
181
 
182
182
  // src/components/dev-console/console.tsx
183
- var import_react = require("react");
183
+ var import_react2 = require("react");
184
184
 
185
185
  // src/components/dev-console/icons.tsx
186
186
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -267,7 +267,7 @@ var CopilotKitIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
267
267
  );
268
268
 
269
269
  // src/components/dev-console/console.tsx
270
- var import_react2 = require("@headlessui/react");
270
+ var import_react3 = require("@headlessui/react");
271
271
  var import_shared = require("@copilotkit/shared");
272
272
 
273
273
  // src/components/chat/Icons.tsx
@@ -307,20 +307,125 @@ var SmallSpinnerIcon = /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
307
307
  }
308
308
  );
309
309
 
310
- // src/components/dev-console/console.tsx
310
+ // src/components/help-modal/modal.tsx
311
+ var import_react = require("react");
312
+
313
+ // src/components/help-modal/icons.tsx
311
314
  var import_jsx_runtime3 = require("react/jsx-runtime");
315
+ var LifeBuoyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
316
+ "svg",
317
+ {
318
+ xmlns: "http://www.w3.org/2000/svg",
319
+ width: "24",
320
+ height: "24",
321
+ viewBox: "0 0 24 24",
322
+ fill: "none",
323
+ stroke: "currentColor",
324
+ strokeWidth: "2",
325
+ strokeLinecap: "round",
326
+ strokeLinejoin: "round",
327
+ className: "icon icon-tabler icons-tabler-outline icon-tabler-lifebuoy",
328
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("g", { transform: "translate(0, -1)", children: [
329
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
330
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" }),
331
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" }),
332
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M15 15l3.35 3.35" }),
333
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M9 15l-3.35 3.35" }),
334
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M5.65 5.65l3.35 3.35" }),
335
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M18.35 5.65l-3.35 3.35" })
336
+ ] })
337
+ }
338
+ );
339
+ var CloseIcon = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
340
+ "svg",
341
+ {
342
+ xmlns: "http://www.w3.org/2000/svg",
343
+ fill: "none",
344
+ viewBox: "0 0 24 24",
345
+ strokeWidth: "1.5",
346
+ stroke: "currentColor",
347
+ width: "20",
348
+ height: "20",
349
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" })
350
+ }
351
+ );
352
+
353
+ // src/components/help-modal/modal.tsx
354
+ var import_jsx_runtime4 = require("react/jsx-runtime");
355
+ function CopilotKitHelpModal() {
356
+ const [showHelpModal, setShowHelpModal] = (0, import_react.useState)(false);
357
+ const [issueDescription, setIssueDescription] = (0, import_react.useState)("");
358
+ const handleSubmit = () => {
359
+ setShowHelpModal(false);
360
+ };
361
+ const HelpButton = () => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
362
+ "button",
363
+ {
364
+ onClick: () => setShowHelpModal(true),
365
+ className: "p-2 bg-transparent rounded-full shadow-lg hover:shadow-xl transition-shadow duration-300 focus:outline-none focus:ring-2 focus:ring-blue-500",
366
+ "aria-label": "Open Help",
367
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(LifeBuoyIcon, {})
368
+ }
369
+ );
370
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
371
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HelpButton, {}),
372
+ showHelpModal && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
373
+ "div",
374
+ {
375
+ className: "fixed inset-0 flex items-center justify-center p-4",
376
+ style: { backgroundColor: "rgba(11, 15, 26, 0.5)", zIndex: 99 },
377
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "bg-white rounded-lg shadow-xl max-w-md w-full p-4 flex-col relative", children: [
378
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
379
+ "button",
380
+ {
381
+ className: "absolute text-gray-400 hover:text-gray-600 focus:outline-none",
382
+ style: { top: "10px", right: "10px" },
383
+ onClick: () => setShowHelpModal(false),
384
+ "aria-label": "Close",
385
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CloseIcon, {})
386
+ }
387
+ ),
388
+ /* @__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" }) }),
389
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "space-y-4 mb-4", children: [
390
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "block w-full text-center py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition duration-150 text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
391
+ "a",
392
+ {
393
+ href: "https://go.copilotkit.ai/dev-console-support-discord",
394
+ target: "_blank",
395
+ rel: "noopener noreferrer",
396
+ children: "Go to Discord Support Channel (Community Support)"
397
+ }
398
+ ) }),
399
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "block w-full text-center py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition duration-150 text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
400
+ "a",
401
+ {
402
+ href: "https://go.copilotkit.ai/dev-console-support-slack",
403
+ target: "_blank",
404
+ rel: "noopener noreferrer",
405
+ children: "Apply for Priority Direct Slack Support"
406
+ }
407
+ ) })
408
+ ] })
409
+ ] })
410
+ }
411
+ )
412
+ ] });
413
+ }
414
+
415
+ // src/components/dev-console/console.tsx
416
+ var import_jsx_runtime5 = require("react/jsx-runtime");
312
417
  function CopilotDevConsole() {
313
418
  const currentVersion = import_shared.COPILOTKIT_VERSION;
314
419
  const context = (0, import_react_core2.useCopilotContext)();
315
- const [showDevConsole, setShowDevConsole] = (0, import_react.useState)(false);
316
- (0, import_react.useEffect)(() => {
420
+ const [showDevConsole, setShowDevConsole] = (0, import_react2.useState)(false);
421
+ (0, import_react2.useEffect)(() => {
317
422
  setShowDevConsole(shouldShowDevConsole(context.showDevConsole));
318
423
  }, [context.showDevConsole]);
319
- const dontRunTwiceInDevMode = (0, import_react.useRef)(false);
320
- const [versionStatus, setVersionStatus] = (0, import_react.useState)("unknown");
321
- const [latestVersion, setLatestVersion] = (0, import_react.useState)("");
322
- const consoleRef = (0, import_react.useRef)(null);
323
- const [debugButtonMode, setDebugButtonMode] = (0, import_react.useState)("full");
424
+ const dontRunTwiceInDevMode = (0, import_react2.useRef)(false);
425
+ const [versionStatus, setVersionStatus] = (0, import_react2.useState)("unknown");
426
+ const [latestVersion, setLatestVersion] = (0, import_react2.useState)("");
427
+ const consoleRef = (0, import_react2.useRef)(null);
428
+ const [debugButtonMode, setDebugButtonMode] = (0, import_react2.useState)("full");
324
429
  const checkForUpdates = (force = false) => {
325
430
  setVersionStatus("checking");
326
431
  getPublishedCopilotKitVersion(currentVersion, force).then((v) => {
@@ -343,14 +448,14 @@ function CopilotDevConsole() {
343
448
  setVersionStatus("unknown");
344
449
  });
345
450
  };
346
- (0, import_react.useEffect)(() => {
451
+ (0, import_react2.useEffect)(() => {
347
452
  if (dontRunTwiceInDevMode.current === true) {
348
453
  return;
349
454
  }
350
455
  dontRunTwiceInDevMode.current = true;
351
456
  checkForUpdates();
352
457
  }, []);
353
- (0, import_react.useEffect)(() => {
458
+ (0, import_react2.useEffect)(() => {
354
459
  const handleResize = (entries) => {
355
460
  for (let entry of entries) {
356
461
  if (entry.target === consoleRef.current) {
@@ -382,14 +487,14 @@ function CopilotDevConsole() {
382
487
  if (!showDevConsole) {
383
488
  return null;
384
489
  }
385
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
490
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
386
491
  "div",
387
492
  {
388
493
  ref: consoleRef,
389
494
  className: "copilotKitDevConsole " + (versionStatus === "update-available" ? "copilotKitDevConsoleUpgrade" : "") + (versionStatus === "outdated" ? "copilotKitDevConsoleWarnOutdated" : ""),
390
495
  children: [
391
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "copilotKitDevConsoleLogo", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("a", { href: "https://copilotkit.ai", target: "_blank", children: CopilotKitIcon }) }),
392
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
496
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "copilotKitDevConsoleLogo", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("a", { href: "https://copilotkit.ai", target: "_blank", children: CopilotKitIcon }) }),
497
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
393
498
  VersionInfo,
394
499
  {
395
500
  showDevConsole: context.showDevConsole,
@@ -398,7 +503,8 @@ function CopilotDevConsole() {
398
503
  latestVersion
399
504
  }
400
505
  ),
401
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
506
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CopilotKitHelpModal, {}),
507
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
402
508
  DebugMenuButton,
403
509
  {
404
510
  setShowDevConsole,
@@ -416,7 +522,7 @@ function VersionInfo({
416
522
  currentVersion,
417
523
  latestVersion
418
524
  }) {
419
- const [copyStatus, setCopyStatus] = (0, import_react.useState)("");
525
+ const [copyStatus, setCopyStatus] = (0, import_react2.useState)("");
420
526
  let versionLabel = "";
421
527
  let versionIcon = "";
422
528
  let currentVersionLabel = currentVersion;
@@ -453,12 +559,12 @@ function VersionInfo({
453
559
  setTimeout(() => setCopyStatus(""), 1e3);
454
560
  });
455
561
  };
456
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "copilotKitVersionInfo", children: [
457
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { children: [
562
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "copilotKitVersionInfo", children: [
563
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("header", { children: [
458
564
  "COPILOTKIT DEV CONSOLE",
459
- showDevConsole === "auto" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("aside", { children: asideLabel })
565
+ showDevConsole === "auto" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("aside", { children: asideLabel })
460
566
  ] }),
461
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("section", { children: [
567
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { children: [
462
568
  "Version: ",
463
569
  versionLabel,
464
570
  " (",
@@ -466,7 +572,7 @@ function VersionInfo({
466
572
  ") ",
467
573
  versionIcon
468
574
  ] }),
469
- (versionStatus === "update-available" || versionStatus === "outdated") && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("footer", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { onClick: handleCopyClick, children: copyStatus || installCommand }) })
575
+ (versionStatus === "update-available" || versionStatus === "outdated") && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("footer", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { onClick: handleCopyClick, children: copyStatus || installCommand }) })
470
576
  ] });
471
577
  }
472
578
  function DebugMenuButton({
@@ -476,22 +582,22 @@ function DebugMenuButton({
476
582
  }) {
477
583
  const context = (0, import_react_core2.useCopilotContext)();
478
584
  const messagesContext = (0, import_react_core2.useCopilotMessagesContext)();
479
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "bg-black top-24 w-52 text-right", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react2.Menu, { children: [
480
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react2.MenuButton, { className: `copilotKitDebugMenuButton ${mode === "compact" ? "compact" : ""}`, children: mode == "compact" ? "Debug" : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
585
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "bg-black top-24 w-52 text-right", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react3.Menu, { children: [
586
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuButton, { className: `copilotKitDebugMenuButton ${mode === "compact" ? "compact" : ""}`, children: mode == "compact" ? "Debug" : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
481
587
  "Debug ",
482
588
  ChevronDownIcon
483
589
  ] }) }),
484
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
485
- import_react2.MenuItems,
590
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
591
+ import_react3.MenuItems,
486
592
  {
487
593
  transition: true,
488
594
  anchor: "bottom end",
489
595
  className: "copilotKitDebugMenu",
490
596
  style: { zIndex: 40 },
491
597
  children: [
492
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react2.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { className: "copilotKitDebugMenuItem", onClick: () => logReadables(context), children: "Log Readables" }) }),
493
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react2.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { className: "copilotKitDebugMenuItem", onClick: () => logActions(context), children: "Log Actions" }) }),
494
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react2.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
598
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: "copilotKitDebugMenuItem", onClick: () => logReadables(context), children: "Log Readables" }) }),
599
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: "copilotKitDebugMenuItem", onClick: () => logActions(context), children: "Log Actions" }) }),
600
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
495
601
  "button",
496
602
  {
497
603
  className: "copilotKitDebugMenuItem",
@@ -499,9 +605,9 @@ function DebugMenuButton({
499
605
  children: "Log Messages"
500
606
  }
501
607
  ) }),
502
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react2.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { className: "copilotKitDebugMenuItem", onClick: () => checkForUpdates(true), children: "Check for Updates" }) }),
503
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("hr", {}),
504
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react2.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { className: "copilotKitDebugMenuItem", onClick: () => setShowDevConsole(false), children: "Hide Dev Console" }) })
608
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: "copilotKitDebugMenuItem", onClick: () => checkForUpdates(true), children: "Check for Updates" }) }),
609
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("hr", {}),
610
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react3.MenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: "copilotKitDebugMenuItem", onClick: () => setShowDevConsole(false), children: "Hide Dev Console" }) })
505
611
  ]
506
612
  }
507
613
  )