@copilotkit/react-ui 1.4.1-pre.6 → 1.4.2-tyler-reset-chat.0
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.
- package/CHANGELOG.md +59 -0
- package/dist/{chunk-RS6UPR5N.mjs → chunk-2B57NCBA.mjs} +5 -1
- package/dist/chunk-2B57NCBA.mjs.map +1 -0
- package/dist/chunk-4T3TMQNJ.mjs +45 -0
- package/dist/chunk-4T3TMQNJ.mjs.map +1 -0
- package/dist/{chunk-H5CXJBR5.mjs → chunk-B6A6OMIG.mjs} +6 -2
- package/dist/chunk-B6A6OMIG.mjs.map +1 -0
- package/dist/chunk-KXE2JCUH.mjs +1 -0
- package/dist/chunk-KXE2JCUH.mjs.map +1 -0
- package/dist/{chunk-ORHE7FYT.mjs → chunk-OI5EKZPO.mjs} +110 -14
- package/dist/chunk-OI5EKZPO.mjs.map +1 -0
- package/dist/{chunk-ECPBML4L.mjs → chunk-RQRK6DEW.mjs} +2 -2
- package/dist/chunk-WOUWNTAV.mjs +72 -0
- package/dist/chunk-WOUWNTAV.mjs.map +1 -0
- package/dist/{chunk-TSIFZ5N5.mjs → chunk-Z2RXDT7O.mjs} +2 -2
- package/dist/components/chat/Chat.d.ts +50 -5
- package/dist/components/chat/Chat.js +260 -57
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +7 -4
- package/dist/components/chat/Modal.d.ts +1 -1
- package/dist/components/chat/Modal.js +273 -66
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +8 -5
- package/dist/components/chat/Popup.js +275 -68
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +9 -6
- package/dist/components/chat/Sidebar.js +277 -70
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +9 -6
- package/dist/components/chat/index.js +279 -72
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +10 -7
- package/dist/components/dev-console/console.js +138 -32
- package/dist/components/dev-console/console.js.map +1 -1
- package/dist/components/dev-console/console.mjs +4 -1
- package/dist/components/dev-console/index.js +138 -32
- package/dist/components/dev-console/index.js.map +1 -1
- package/dist/components/dev-console/index.mjs +4 -1
- package/dist/components/help-modal/icons.d.ts +6 -0
- package/dist/components/help-modal/icons.js +70 -0
- package/dist/components/help-modal/icons.js.map +1 -0
- package/dist/components/help-modal/icons.mjs +10 -0
- package/dist/components/help-modal/icons.mjs.map +1 -0
- package/dist/components/help-modal/index.d.ts +2 -0
- package/dist/components/help-modal/index.js +135 -0
- package/dist/components/help-modal/index.js.map +1 -0
- package/dist/components/help-modal/index.mjs +10 -0
- package/dist/components/help-modal/index.mjs.map +1 -0
- package/dist/components/help-modal/modal.d.ts +5 -0
- package/dist/components/help-modal/modal.js +133 -0
- package/dist/components/help-modal/modal.js.map +1 -0
- package/dist/components/help-modal/modal.mjs +9 -0
- package/dist/components/help-modal/modal.mjs.map +1 -0
- package/dist/components/index.js +279 -72
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +10 -7
- package/dist/index.js +283 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -7
- package/package.json +7 -7
- package/src/components/chat/Chat.tsx +167 -8
- package/src/components/chat/Modal.tsx +4 -0
- package/src/components/dev-console/console.tsx +4 -1
- package/src/components/help-modal/icons.tsx +40 -0
- package/src/components/help-modal/index.tsx +1 -0
- package/src/components/help-modal/modal.tsx +91 -0
- package/dist/chunk-H5CXJBR5.mjs.map +0 -1
- package/dist/chunk-ORHE7FYT.mjs.map +0 -1
- package/dist/chunk-RS6UPR5N.mjs.map +0 -1
- /package/dist/{chunk-ECPBML4L.mjs.map → chunk-RQRK6DEW.mjs.map} +0 -0
- /package/dist/{chunk-TSIFZ5N5.mjs.map → chunk-Z2RXDT7O.mjs.map} +0 -0
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import "../../chunk-MRFF7GSQ.mjs";
|
|
2
2
|
import {
|
|
3
3
|
CopilotSidebar
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-RQRK6DEW.mjs";
|
|
5
5
|
import "../../chunk-WB3YULQ4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
CopilotPopup
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-Z2RXDT7O.mjs";
|
|
9
|
+
import "../../chunk-B6A6OMIG.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-
|
|
15
|
+
} from "../../chunk-OI5EKZPO.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-
|
|
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
|
|
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
|
|
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/
|
|
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,
|
|
316
|
-
(0,
|
|
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,
|
|
320
|
-
const [versionStatus, setVersionStatus] = (0,
|
|
321
|
-
const [latestVersion, setLatestVersion] = (0,
|
|
322
|
-
const consoleRef = (0,
|
|
323
|
-
const [debugButtonMode, setDebugButtonMode] = (0,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
392
|
-
/* @__PURE__ */ (0,
|
|
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,
|
|
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,
|
|
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,
|
|
457
|
-
/* @__PURE__ */ (0,
|
|
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,
|
|
565
|
+
showDevConsole === "auto" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("aside", { children: asideLabel })
|
|
460
566
|
] }),
|
|
461
|
-
/* @__PURE__ */ (0,
|
|
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,
|
|
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,
|
|
480
|
-
/* @__PURE__ */ (0,
|
|
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,
|
|
485
|
-
|
|
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,
|
|
493
|
-
/* @__PURE__ */ (0,
|
|
494
|
-
/* @__PURE__ */ (0,
|
|
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,
|
|
503
|
-
/* @__PURE__ */ (0,
|
|
504
|
-
/* @__PURE__ */ (0,
|
|
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
|
)
|