@aigentyc/chat-sdk 0.1.3 → 0.1.5
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/AGENTS.md +187 -0
- package/dist/ai-elements.cjs +119 -162
- package/dist/ai-elements.cjs.map +1 -1
- package/dist/ai-elements.js +5 -60
- package/dist/ai-elements.js.map +1 -1
- package/dist/{chunk-PKGD6CTD.js → chunk-2677FDTG.js} +107 -59
- package/dist/chunk-2677FDTG.js.map +1 -0
- package/dist/{chunk-42ARGQXE.js → chunk-7L4FS6G7.js} +7 -3
- package/dist/chunk-7L4FS6G7.js.map +1 -0
- package/dist/{chunk-VS3NZ7FX.js → chunk-A7PCSWIK.js} +60 -5
- package/dist/chunk-A7PCSWIK.js.map +1 -0
- package/dist/{chunk-WZLWAVSS.cjs → chunk-C24QG43M.cjs} +10 -2
- package/dist/chunk-C24QG43M.cjs.map +1 -0
- package/dist/{chunk-NW2ESHRV.js → chunk-KVEJAPWA.js} +4 -8
- package/dist/chunk-KVEJAPWA.js.map +1 -0
- package/dist/{chunk-X5YEOOPK.cjs → chunk-QDFPJJ5Y.cjs} +5 -13
- package/dist/chunk-QDFPJJ5Y.cjs.map +1 -0
- package/dist/{chunk-FQN6OBGN.cjs → chunk-RTVEBPAJ.cjs} +63 -4
- package/dist/chunk-RTVEBPAJ.cjs.map +1 -0
- package/dist/{chunk-IWIGM3RY.cjs → chunk-WQARQ2FJ.cjs} +109 -61
- package/dist/chunk-WQARQ2FJ.cjs.map +1 -0
- package/dist/components.cjs +14 -14
- package/dist/components.d.cts +5 -0
- package/dist/components.d.ts +5 -0
- package/dist/components.js +4 -4
- package/dist/index.cjs +14 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/ui.cjs +51 -51
- package/dist/ui.js +2 -2
- package/llms.txt +128 -0
- package/package.json +4 -1
- package/dist/chunk-42ARGQXE.js.map +0 -1
- package/dist/chunk-FQN6OBGN.cjs.map +0 -1
- package/dist/chunk-IWIGM3RY.cjs.map +0 -1
- package/dist/chunk-NW2ESHRV.js.map +0 -1
- package/dist/chunk-PKGD6CTD.js.map +0 -1
- package/dist/chunk-VS3NZ7FX.js.map +0 -1
- package/dist/chunk-WZLWAVSS.cjs.map +0 -1
- package/dist/chunk-X5YEOOPK.cjs.map +0 -1
package/dist/ai-elements.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkRTVEBPAJ_cjs = require('./chunk-RTVEBPAJ.cjs');
|
|
5
5
|
require('./chunk-X7R334SB.cjs');
|
|
6
6
|
var chunk3MP2EGEJ_cjs = require('./chunk-3MP2EGEJ.cjs');
|
|
7
7
|
var chunkJOO6C3XT_cjs = require('./chunk-JOO6C3XT.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var chunkQDFPJJ5Y_cjs = require('./chunk-QDFPJJ5Y.cjs');
|
|
9
|
+
var chunkC24QG43M_cjs = require('./chunk-C24QG43M.cjs');
|
|
10
10
|
var chunkAWAJOSFP_cjs = require('./chunk-AWAJOSFP.cjs');
|
|
11
11
|
var chunk525KS5HM_cjs = require('./chunk-525KS5HM.cjs');
|
|
12
12
|
var reactSlot = require('@radix-ui/react-slot');
|
|
@@ -137,14 +137,14 @@ var MessageAction = ({
|
|
|
137
137
|
size = "icon-sm",
|
|
138
138
|
...props
|
|
139
139
|
}) => {
|
|
140
|
-
const button = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
140
|
+
const button = /* @__PURE__ */ jsxRuntime.jsxs(chunkC24QG43M_cjs.Button, { size, type: "button", variant, ...props, children: [
|
|
141
141
|
children,
|
|
142
142
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: label || tooltip })
|
|
143
143
|
] });
|
|
144
144
|
if (tooltip) {
|
|
145
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
147
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
145
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQDFPJJ5Y_cjs.Tooltip, { children: [
|
|
146
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipTrigger, { asChild: true, children: button }),
|
|
147
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: tooltip }) })
|
|
148
148
|
] }) });
|
|
149
149
|
}
|
|
150
150
|
return button;
|
|
@@ -245,7 +245,7 @@ var MessageBranchPrevious = ({
|
|
|
245
245
|
}) => {
|
|
246
246
|
const { goToPrevious, totalBranches } = useMessageBranch();
|
|
247
247
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
248
|
-
|
|
248
|
+
chunkC24QG43M_cjs.Button,
|
|
249
249
|
{
|
|
250
250
|
"aria-label": "Previous branch",
|
|
251
251
|
disabled: totalBranches <= 1,
|
|
@@ -265,7 +265,7 @@ var MessageBranchNext = ({
|
|
|
265
265
|
}) => {
|
|
266
266
|
const { goToNext, totalBranches } = useMessageBranch();
|
|
267
267
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
-
|
|
268
|
+
chunkC24QG43M_cjs.Button,
|
|
269
269
|
{
|
|
270
270
|
"aria-label": "Next branch",
|
|
271
271
|
disabled: totalBranches <= 1,
|
|
@@ -417,7 +417,7 @@ function MessageAttachment({
|
|
|
417
417
|
}
|
|
418
418
|
),
|
|
419
419
|
onRemove && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
420
|
-
|
|
420
|
+
chunkC24QG43M_cjs.Button,
|
|
421
421
|
{
|
|
422
422
|
"aria-label": "Remove attachment",
|
|
423
423
|
className: "absolute top-2 right-2 size-6 rounded-full bg-background/80 p-0 opacity-0 backdrop-blur-sm transition-opacity hover:bg-background group-hover:opacity-100 [&>svg]:size-3",
|
|
@@ -434,12 +434,12 @@ function MessageAttachment({
|
|
|
434
434
|
}
|
|
435
435
|
)
|
|
436
436
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
437
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
438
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
439
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
437
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkQDFPJJ5Y_cjs.Tooltip, { children: [
|
|
438
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-full shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PaperclipIcon, { className: "size-4" }) }) }),
|
|
439
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: attachmentLabel }) })
|
|
440
440
|
] }),
|
|
441
441
|
onRemove && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
442
|
-
|
|
442
|
+
chunkC24QG43M_cjs.Button,
|
|
443
443
|
{
|
|
444
444
|
"aria-label": "Remove attachment",
|
|
445
445
|
className: "size-6 shrink-0 rounded-full p-0 opacity-0 transition-opacity hover:bg-accent group-hover:opacity-100 [&>svg]:size-3",
|
|
@@ -727,7 +727,7 @@ function MessageFeedback({
|
|
|
727
727
|
type.value
|
|
728
728
|
)) }),
|
|
729
729
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
730
|
-
|
|
730
|
+
chunkQDFPJJ5Y_cjs.Textarea,
|
|
731
731
|
{
|
|
732
732
|
placeholder: t("addDetails"),
|
|
733
733
|
value: reviewText,
|
|
@@ -1042,7 +1042,7 @@ var ArtifactClose = ({
|
|
|
1042
1042
|
variant = "ghost",
|
|
1043
1043
|
...props
|
|
1044
1044
|
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1045
|
-
|
|
1045
|
+
chunkC24QG43M_cjs.Button,
|
|
1046
1046
|
{
|
|
1047
1047
|
className: chunk525KS5HM_cjs.cn(
|
|
1048
1048
|
"size-8 p-0 text-muted-foreground hover:text-foreground",
|
|
@@ -1084,7 +1084,7 @@ var ArtifactAction = ({
|
|
|
1084
1084
|
...props
|
|
1085
1085
|
}) => {
|
|
1086
1086
|
const button = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1087
|
-
|
|
1087
|
+
chunkC24QG43M_cjs.Button,
|
|
1088
1088
|
{
|
|
1089
1089
|
className: chunk525KS5HM_cjs.cn(
|
|
1090
1090
|
"size-8 p-0 text-muted-foreground hover:text-foreground",
|
|
@@ -1101,9 +1101,9 @@ var ArtifactAction = ({
|
|
|
1101
1101
|
}
|
|
1102
1102
|
);
|
|
1103
1103
|
if (tooltip) {
|
|
1104
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1105
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1106
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1104
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQDFPJJ5Y_cjs.Tooltip, { children: [
|
|
1105
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipTrigger, { asChild: true, children: button }),
|
|
1106
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: tooltip }) })
|
|
1107
1107
|
] }) });
|
|
1108
1108
|
}
|
|
1109
1109
|
return button;
|
|
@@ -1227,7 +1227,7 @@ var CodeBlockCopyButton = ({
|
|
|
1227
1227
|
};
|
|
1228
1228
|
const Icon = isCopied ? lucideReact.CheckIcon : lucideReact.CopyIcon;
|
|
1229
1229
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1230
|
-
|
|
1230
|
+
chunkC24QG43M_cjs.Button,
|
|
1231
1231
|
{
|
|
1232
1232
|
className: chunk525KS5HM_cjs.cn("shrink-0", className),
|
|
1233
1233
|
onClick: copyToClipboard,
|
|
@@ -1295,9 +1295,9 @@ var WebPreviewNavigationButton = ({
|
|
|
1295
1295
|
tooltip,
|
|
1296
1296
|
children,
|
|
1297
1297
|
...props
|
|
1298
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1299
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1300
|
-
|
|
1298
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQDFPJJ5Y_cjs.Tooltip, { children: [
|
|
1299
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1300
|
+
chunkC24QG43M_cjs.Button,
|
|
1301
1301
|
{
|
|
1302
1302
|
className: "h-8 w-8 p-0 hover:text-foreground",
|
|
1303
1303
|
disabled,
|
|
@@ -1308,7 +1308,7 @@ var WebPreviewNavigationButton = ({
|
|
|
1308
1308
|
children
|
|
1309
1309
|
}
|
|
1310
1310
|
) }),
|
|
1311
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1311
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: tooltip }) })
|
|
1312
1312
|
] }) });
|
|
1313
1313
|
var WebPreviewUrl = ({
|
|
1314
1314
|
value,
|
|
@@ -1333,7 +1333,7 @@ var WebPreviewUrl = ({
|
|
|
1333
1333
|
onKeyDown?.(event);
|
|
1334
1334
|
};
|
|
1335
1335
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1336
|
-
|
|
1336
|
+
chunkQDFPJJ5Y_cjs.Input,
|
|
1337
1337
|
{
|
|
1338
1338
|
className: "h-8 flex-1 text-sm",
|
|
1339
1339
|
onChange: onChange ?? handleChange,
|
|
@@ -1373,15 +1373,15 @@ var WebPreviewConsole = ({
|
|
|
1373
1373
|
}) => {
|
|
1374
1374
|
const { consoleOpen, setConsoleOpen } = useWebPreview();
|
|
1375
1375
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1376
|
-
|
|
1376
|
+
chunkC24QG43M_cjs.Collapsible,
|
|
1377
1377
|
{
|
|
1378
1378
|
className: chunk525KS5HM_cjs.cn("border-t bg-muted/50 font-mono text-sm", className),
|
|
1379
1379
|
onOpenChange: setConsoleOpen,
|
|
1380
1380
|
open: consoleOpen,
|
|
1381
1381
|
...props,
|
|
1382
1382
|
children: [
|
|
1383
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1384
|
-
|
|
1383
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1384
|
+
chunkC24QG43M_cjs.Button,
|
|
1385
1385
|
{
|
|
1386
1386
|
className: "flex w-full items-center justify-between p-4 text-start font-medium hover:bg-muted/50",
|
|
1387
1387
|
variant: "ghost",
|
|
@@ -1400,7 +1400,7 @@ var WebPreviewConsole = ({
|
|
|
1400
1400
|
}
|
|
1401
1401
|
) }),
|
|
1402
1402
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1403
|
-
|
|
1403
|
+
chunkC24QG43M_cjs.CollapsibleContent,
|
|
1404
1404
|
{
|
|
1405
1405
|
className: chunk525KS5HM_cjs.cn(
|
|
1406
1406
|
"px-4 pb-4",
|
|
@@ -1432,61 +1432,6 @@ var WebPreviewConsole = ({
|
|
|
1432
1432
|
}
|
|
1433
1433
|
);
|
|
1434
1434
|
};
|
|
1435
|
-
var Sources = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1436
|
-
chunkX5YEOOPK_cjs.Collapsible,
|
|
1437
|
-
{
|
|
1438
|
-
className: chunk525KS5HM_cjs.cn("not-prose mb-4 text-primary text-xs", className),
|
|
1439
|
-
...props
|
|
1440
|
-
}
|
|
1441
|
-
);
|
|
1442
|
-
var SourcesTrigger = ({
|
|
1443
|
-
className,
|
|
1444
|
-
count,
|
|
1445
|
-
children,
|
|
1446
|
-
...props
|
|
1447
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1448
|
-
chunkX5YEOOPK_cjs.CollapsibleTrigger,
|
|
1449
|
-
{
|
|
1450
|
-
className: chunk525KS5HM_cjs.cn("flex items-center gap-2", className),
|
|
1451
|
-
...props,
|
|
1452
|
-
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1453
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "font-medium", children: [
|
|
1454
|
-
"Used ",
|
|
1455
|
-
count,
|
|
1456
|
-
" sources"
|
|
1457
|
-
] }),
|
|
1458
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "h-4 w-4" })
|
|
1459
|
-
] })
|
|
1460
|
-
}
|
|
1461
|
-
);
|
|
1462
|
-
var SourcesContent = ({
|
|
1463
|
-
className,
|
|
1464
|
-
...props
|
|
1465
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1466
|
-
chunkX5YEOOPK_cjs.CollapsibleContent,
|
|
1467
|
-
{
|
|
1468
|
-
className: chunk525KS5HM_cjs.cn(
|
|
1469
|
-
"mt-3 flex w-fit flex-col gap-2",
|
|
1470
|
-
"data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
1471
|
-
className
|
|
1472
|
-
),
|
|
1473
|
-
...props
|
|
1474
|
-
}
|
|
1475
|
-
);
|
|
1476
|
-
var Source = ({ href, title, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1477
|
-
"a",
|
|
1478
|
-
{
|
|
1479
|
-
className: "flex items-center gap-2",
|
|
1480
|
-
href,
|
|
1481
|
-
rel: "noreferrer",
|
|
1482
|
-
target: "_blank",
|
|
1483
|
-
...props,
|
|
1484
|
-
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1485
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.BookIcon, { className: "h-4 w-4" }),
|
|
1486
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "block font-medium", children: title })
|
|
1487
|
-
] })
|
|
1488
|
-
}
|
|
1489
|
-
);
|
|
1490
1435
|
var HoverCard = HoverCardPrimitive__namespace.Root;
|
|
1491
1436
|
var HoverCardTrigger = HoverCardPrimitive__namespace.Trigger;
|
|
1492
1437
|
var HoverCardContent = React2__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1529,7 +1474,7 @@ var InlineCitationCardTrigger = ({
|
|
|
1529
1474
|
className,
|
|
1530
1475
|
...props
|
|
1531
1476
|
}) => /* @__PURE__ */ jsxRuntime.jsx(HoverCardTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1532
|
-
|
|
1477
|
+
chunkQDFPJJ5Y_cjs.Badge,
|
|
1533
1478
|
{
|
|
1534
1479
|
className: chunk525KS5HM_cjs.cn("ml-1 rounded-full", className),
|
|
1535
1480
|
variant: "secondary",
|
|
@@ -1556,14 +1501,14 @@ var InlineCitationCarousel = ({
|
|
|
1556
1501
|
...props
|
|
1557
1502
|
}) => {
|
|
1558
1503
|
const [api, setApi] = React2.useState();
|
|
1559
|
-
return /* @__PURE__ */ jsxRuntime.jsx(CarouselApiContext.Provider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1504
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CarouselApiContext.Provider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.Carousel, { className: chunk525KS5HM_cjs.cn("w-full", className), setApi, ...props, children }) });
|
|
1560
1505
|
};
|
|
1561
|
-
var InlineCitationCarouselContent = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1506
|
+
var InlineCitationCarouselContent = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.CarouselContent, { ...props });
|
|
1562
1507
|
var InlineCitationCarouselItem = ({
|
|
1563
1508
|
className,
|
|
1564
1509
|
...props
|
|
1565
1510
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1566
|
-
|
|
1511
|
+
chunkQDFPJJ5Y_cjs.CarouselItem,
|
|
1567
1512
|
{
|
|
1568
1513
|
className: chunk525KS5HM_cjs.cn("w-full space-y-2 p-4 pl-8", className),
|
|
1569
1514
|
...props
|
|
@@ -1781,7 +1726,7 @@ var Reasoning = React2.memo(
|
|
|
1781
1726
|
{
|
|
1782
1727
|
value: { isStreaming, isOpen, setIsOpen, duration },
|
|
1783
1728
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1784
|
-
|
|
1729
|
+
chunkC24QG43M_cjs.Collapsible,
|
|
1785
1730
|
{
|
|
1786
1731
|
className: chunk525KS5HM_cjs.cn("not-prose mb-4", className),
|
|
1787
1732
|
onOpenChange: handleOpenChange,
|
|
@@ -1811,7 +1756,7 @@ var ReasoningTrigger = React2.memo(
|
|
|
1811
1756
|
({ className, children, getThinkingMessage = defaultGetThinkingMessage, ...props }) => {
|
|
1812
1757
|
const { isStreaming, isOpen, duration } = useReasoning();
|
|
1813
1758
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1814
|
-
|
|
1759
|
+
chunkC24QG43M_cjs.CollapsibleTrigger,
|
|
1815
1760
|
{
|
|
1816
1761
|
className: chunk525KS5HM_cjs.cn(
|
|
1817
1762
|
"flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",
|
|
@@ -1837,7 +1782,7 @@ var ReasoningTrigger = React2.memo(
|
|
|
1837
1782
|
);
|
|
1838
1783
|
var ReasoningContent = React2.memo(
|
|
1839
1784
|
({ className, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1840
|
-
|
|
1785
|
+
chunkC24QG43M_cjs.CollapsibleContent,
|
|
1841
1786
|
{
|
|
1842
1787
|
className: chunk525KS5HM_cjs.cn(
|
|
1843
1788
|
"mt-4 text-sm",
|
|
@@ -1926,7 +1871,7 @@ function FollowupButtons({
|
|
|
1926
1871
|
}) {
|
|
1927
1872
|
if (!suggestions || suggestions.length === 0) return null;
|
|
1928
1873
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunk525KS5HM_cjs.cn("flex flex-wrap gap-2", className), children: suggestions.map((suggestion, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1929
|
-
|
|
1874
|
+
chunkC24QG43M_cjs.Button,
|
|
1930
1875
|
{
|
|
1931
1876
|
variant: "outline",
|
|
1932
1877
|
size: "sm",
|
|
@@ -1942,9 +1887,9 @@ var Suggestions = ({
|
|
|
1942
1887
|
className,
|
|
1943
1888
|
children,
|
|
1944
1889
|
...props
|
|
1945
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1890
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(chunkQDFPJJ5Y_cjs.ScrollArea, { className: "w-full overflow-x-auto whitespace-nowrap", ...props, children: [
|
|
1946
1891
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: chunk525KS5HM_cjs.cn("flex w-max flex-nowrap items-center gap-2", className), children }),
|
|
1947
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1892
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.ScrollBar, { className: "hidden", orientation: "horizontal" })
|
|
1948
1893
|
] });
|
|
1949
1894
|
var Suggestion = ({
|
|
1950
1895
|
suggestion,
|
|
@@ -1959,7 +1904,7 @@ var Suggestion = ({
|
|
|
1959
1904
|
onClick?.(suggestion);
|
|
1960
1905
|
};
|
|
1961
1906
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1962
|
-
|
|
1907
|
+
chunkC24QG43M_cjs.Button,
|
|
1963
1908
|
{
|
|
1964
1909
|
className: chunk525KS5HM_cjs.cn("cursor-pointer rounded-full px-4", className),
|
|
1965
1910
|
onClick: handleClick,
|
|
@@ -2056,7 +2001,7 @@ var ContextTrigger = ({ children, ...props }) => {
|
|
|
2056
2001
|
style: "percent",
|
|
2057
2002
|
maximumFractionDigits: 1
|
|
2058
2003
|
}).format(usedPercent);
|
|
2059
|
-
return /* @__PURE__ */ jsxRuntime.jsx(HoverCardTrigger, { asChild: true, children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2004
|
+
return /* @__PURE__ */ jsxRuntime.jsx(HoverCardTrigger, { asChild: true, children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(chunkC24QG43M_cjs.Button, { type: "button", variant: "ghost", ...props, children: [
|
|
2060
2005
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-muted-foreground", children: renderedPercent }),
|
|
2061
2006
|
/* @__PURE__ */ jsxRuntime.jsx(ContextIcon, {})
|
|
2062
2007
|
] }) });
|
|
@@ -2097,7 +2042,7 @@ var ContextContentHeader = ({
|
|
|
2097
2042
|
total
|
|
2098
2043
|
] })
|
|
2099
2044
|
] }),
|
|
2100
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2045
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.Progress, { className: "bg-muted", value: usedPercent * PERCENT_MAX }) })
|
|
2101
2046
|
] }) });
|
|
2102
2047
|
};
|
|
2103
2048
|
var ContextContentBody = ({
|
|
@@ -2324,8 +2269,8 @@ var ChainOfThought = React2.memo(
|
|
|
2324
2269
|
var ChainOfThoughtHeader = React2.memo(
|
|
2325
2270
|
({ className, children, ...props }) => {
|
|
2326
2271
|
const { isOpen, setIsOpen } = useChainOfThought();
|
|
2327
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2328
|
-
|
|
2272
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.Collapsible, { onOpenChange: setIsOpen, open: isOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2273
|
+
chunkC24QG43M_cjs.CollapsibleTrigger,
|
|
2329
2274
|
{
|
|
2330
2275
|
className: chunk525KS5HM_cjs.cn(
|
|
2331
2276
|
"flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",
|
|
@@ -2400,7 +2345,7 @@ var ChainOfThoughtSearchResults = React2.memo(
|
|
|
2400
2345
|
);
|
|
2401
2346
|
var ChainOfThoughtSearchResult = React2.memo(
|
|
2402
2347
|
({ className, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2403
|
-
|
|
2348
|
+
chunkQDFPJJ5Y_cjs.Badge,
|
|
2404
2349
|
{
|
|
2405
2350
|
className: chunk525KS5HM_cjs.cn("gap-1 px-2 py-0.5 font-normal text-xs", className),
|
|
2406
2351
|
variant: "secondary",
|
|
@@ -2412,8 +2357,8 @@ var ChainOfThoughtSearchResult = React2.memo(
|
|
|
2412
2357
|
var ChainOfThoughtContent = React2.memo(
|
|
2413
2358
|
({ className, children, ...props }) => {
|
|
2414
2359
|
const { isOpen } = useChainOfThought();
|
|
2415
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2416
|
-
|
|
2360
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.Collapsible, { open: isOpen, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2361
|
+
chunkC24QG43M_cjs.CollapsibleContent,
|
|
2417
2362
|
{
|
|
2418
2363
|
className: chunk525KS5HM_cjs.cn(
|
|
2419
2364
|
"mt-2 space-y-3",
|
|
@@ -2458,12 +2403,12 @@ var Confirmation = ({
|
|
|
2458
2403
|
if (!approval || state === "input-streaming" || state === "input-available") {
|
|
2459
2404
|
return null;
|
|
2460
2405
|
}
|
|
2461
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ConfirmationContext.Provider, { value: { approval, state }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2406
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ConfirmationContext.Provider, { value: { approval, state }, children: /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.Alert, { className: chunk525KS5HM_cjs.cn("flex flex-col gap-2", className), ...props }) });
|
|
2462
2407
|
};
|
|
2463
2408
|
var ConfirmationTitle = ({
|
|
2464
2409
|
className,
|
|
2465
2410
|
...props
|
|
2466
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2411
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.AlertDescription, { className: chunk525KS5HM_cjs.cn("inline", className), ...props });
|
|
2467
2412
|
var ConfirmationRequest = ({ children }) => {
|
|
2468
2413
|
const { state } = useConfirmation();
|
|
2469
2414
|
if (state !== "approval-requested") {
|
|
@@ -2505,7 +2450,7 @@ var ConfirmationActions = ({
|
|
|
2505
2450
|
}
|
|
2506
2451
|
);
|
|
2507
2452
|
};
|
|
2508
|
-
var ConfirmationAction = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2453
|
+
var ConfirmationAction = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.Button, { className: "h-8 px-3 text-sm", type: "button", ...props });
|
|
2509
2454
|
var Controls = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2510
2455
|
react$1.Controls,
|
|
2511
2456
|
{
|
|
@@ -2530,7 +2475,7 @@ var Command = React2__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2530
2475
|
));
|
|
2531
2476
|
Command.displayName = cmdk.Command.displayName;
|
|
2532
2477
|
var CommandDialog = ({ children, ...props }) => {
|
|
2533
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2478
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.Dialog, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
2534
2479
|
};
|
|
2535
2480
|
var CommandInput = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2536
2481
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
@@ -2614,15 +2559,15 @@ var CommandShortcut = ({
|
|
|
2614
2559
|
);
|
|
2615
2560
|
};
|
|
2616
2561
|
CommandShortcut.displayName = "CommandShortcut";
|
|
2617
|
-
var ModelSelector = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2618
|
-
var ModelSelectorTrigger = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2562
|
+
var ModelSelector = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.Dialog, { ...props });
|
|
2563
|
+
var ModelSelectorTrigger = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DialogTrigger, { ...props });
|
|
2619
2564
|
var ModelSelectorContent = ({
|
|
2620
2565
|
className,
|
|
2621
2566
|
children,
|
|
2622
2567
|
title = "Model Selector",
|
|
2623
2568
|
...props
|
|
2624
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2625
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2569
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(chunkQDFPJJ5Y_cjs.DialogContent, { className: chunk525KS5HM_cjs.cn("p-0", className), ...props, children: [
|
|
2570
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DialogTitle, { className: "sr-only", children: title }),
|
|
2626
2571
|
/* @__PURE__ */ jsxRuntime.jsx(Command, { className: "**:data-[slot=command-input-wrapper]:h-auto", children })
|
|
2627
2572
|
] });
|
|
2628
2573
|
var ModelSelectorDialog = (props) => /* @__PURE__ */ jsxRuntime.jsx(CommandDialog, { ...props });
|
|
@@ -2731,19 +2676,19 @@ var useOpenInContext = () => {
|
|
|
2731
2676
|
}
|
|
2732
2677
|
return context;
|
|
2733
2678
|
};
|
|
2734
|
-
var OpenIn = ({ query, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(OpenInContext.Provider, { value: { query }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2679
|
+
var OpenIn = ({ query, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(OpenInContext.Provider, { value: { query }, children: /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenu, { ...props }) });
|
|
2735
2680
|
var OpenInContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2736
|
-
|
|
2681
|
+
chunkQDFPJJ5Y_cjs.DropdownMenuContent,
|
|
2737
2682
|
{
|
|
2738
2683
|
align: "start",
|
|
2739
2684
|
className: chunk525KS5HM_cjs.cn("w-[240px]", className),
|
|
2740
2685
|
...props
|
|
2741
2686
|
}
|
|
2742
2687
|
);
|
|
2743
|
-
var OpenInItem = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2744
|
-
var OpenInLabel = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2745
|
-
var OpenInSeparator = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2746
|
-
var OpenInTrigger = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2688
|
+
var OpenInItem = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenuItem, { ...props });
|
|
2689
|
+
var OpenInLabel = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenuLabel, { ...props });
|
|
2690
|
+
var OpenInSeparator = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenuSeparator, { ...props });
|
|
2691
|
+
var OpenInTrigger = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenuTrigger, { ...props, asChild: true, children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(chunkC24QG43M_cjs.Button, { type: "button", variant: "outline", children: [
|
|
2747
2692
|
"Open in chat",
|
|
2748
2693
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "size-4" })
|
|
2749
2694
|
] }) });
|
|
@@ -2751,7 +2696,7 @@ var makeProviderItem = (key) => {
|
|
|
2751
2696
|
return (props) => {
|
|
2752
2697
|
const { query } = useOpenInContext();
|
|
2753
2698
|
const p = providers[key];
|
|
2754
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2699
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenuItem, { asChild: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2755
2700
|
"a",
|
|
2756
2701
|
{
|
|
2757
2702
|
className: "flex items-center gap-2",
|
|
@@ -2796,7 +2741,7 @@ var Plan = ({
|
|
|
2796
2741
|
isStreaming = false,
|
|
2797
2742
|
children,
|
|
2798
2743
|
...props
|
|
2799
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(PlanContext.Provider, { value: { isStreaming }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2744
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(PlanContext.Provider, { value: { isStreaming }, children: /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.Collapsible, { asChild: true, "data-slot": "plan", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(chunkAWAJOSFP_cjs.Card, { className: chunk525KS5HM_cjs.cn("shadow-none", className), children }) }) });
|
|
2800
2745
|
var PlanHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2801
2746
|
chunkAWAJOSFP_cjs.CardHeader,
|
|
2802
2747
|
{
|
|
@@ -2826,10 +2771,10 @@ var PlanDescription = ({
|
|
|
2826
2771
|
);
|
|
2827
2772
|
};
|
|
2828
2773
|
var PlanAction = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkAWAJOSFP_cjs.CardAction, { "data-slot": "plan-action", ...props });
|
|
2829
|
-
var PlanContent = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2774
|
+
var PlanContent = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.CollapsibleContent, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkAWAJOSFP_cjs.CardContent, { "data-slot": "plan-content", ...props }) });
|
|
2830
2775
|
var PlanFooter = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkAWAJOSFP_cjs.CardFooter, { "data-slot": "plan-footer", ...props });
|
|
2831
|
-
var PlanTrigger = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2832
|
-
|
|
2776
|
+
var PlanTrigger = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2777
|
+
chunkC24QG43M_cjs.Button,
|
|
2833
2778
|
{
|
|
2834
2779
|
className: chunk525KS5HM_cjs.cn("size-8", className),
|
|
2835
2780
|
"data-slot": "plan-trigger",
|
|
@@ -2928,7 +2873,7 @@ function InputGroupButton({
|
|
|
2928
2873
|
...props
|
|
2929
2874
|
}) {
|
|
2930
2875
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2931
|
-
|
|
2876
|
+
chunkC24QG43M_cjs.Button,
|
|
2932
2877
|
{
|
|
2933
2878
|
type,
|
|
2934
2879
|
"data-size": size,
|
|
@@ -2943,7 +2888,7 @@ function InputGroupTextarea({
|
|
|
2943
2888
|
...props
|
|
2944
2889
|
}) {
|
|
2945
2890
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2946
|
-
|
|
2891
|
+
chunkQDFPJJ5Y_cjs.Textarea,
|
|
2947
2892
|
{
|
|
2948
2893
|
"data-slot": "input-group-control",
|
|
2949
2894
|
className: chunk525KS5HM_cjs.cn(
|
|
@@ -3120,7 +3065,7 @@ function PromptInputAttachment({
|
|
|
3120
3065
|
}
|
|
3121
3066
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-5 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PaperclipIcon, { className: "size-3" }) }) }),
|
|
3122
3067
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3123
|
-
|
|
3068
|
+
chunkC24QG43M_cjs.Button,
|
|
3124
3069
|
{
|
|
3125
3070
|
"aria-label": "Remove attachment",
|
|
3126
3071
|
className: "absolute inset-0 size-5 cursor-pointer rounded p-0 opacity-0 transition-opacity group-hover:pointer-events-auto group-hover:opacity-100 [&>svg]:size-2.5",
|
|
@@ -3184,7 +3129,7 @@ var PromptInputActionAddAttachments = ({
|
|
|
3184
3129
|
}) => {
|
|
3185
3130
|
const attachments = usePromptInputAttachments();
|
|
3186
3131
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3187
|
-
|
|
3132
|
+
chunkQDFPJJ5Y_cjs.DropdownMenuItem,
|
|
3188
3133
|
{
|
|
3189
3134
|
...props,
|
|
3190
3135
|
onSelect: (e) => {
|
|
@@ -3605,20 +3550,20 @@ var PromptInputButton = ({
|
|
|
3605
3550
|
}
|
|
3606
3551
|
);
|
|
3607
3552
|
};
|
|
3608
|
-
var PromptInputActionMenu = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3553
|
+
var PromptInputActionMenu = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenu, { ...props });
|
|
3609
3554
|
var PromptInputActionMenuTrigger = ({
|
|
3610
3555
|
className,
|
|
3611
3556
|
children,
|
|
3612
3557
|
...props
|
|
3613
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3558
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(PromptInputButton, { className, ...props, children: children ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PlusIcon, { className: "size-4" }) }) });
|
|
3614
3559
|
var PromptInputActionMenuContent = ({
|
|
3615
3560
|
className,
|
|
3616
3561
|
...props
|
|
3617
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3562
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenuContent, { align: "start", className: chunk525KS5HM_cjs.cn(className), ...props });
|
|
3618
3563
|
var PromptInputActionMenuItem = ({
|
|
3619
3564
|
className,
|
|
3620
3565
|
...props
|
|
3621
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3566
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.DropdownMenuItem, { className: chunk525KS5HM_cjs.cn(className), ...props });
|
|
3622
3567
|
var PromptInputSubmit = ({
|
|
3623
3568
|
className,
|
|
3624
3569
|
variant = "default",
|
|
@@ -3727,12 +3672,12 @@ var PromptInputSpeechButton = ({
|
|
|
3727
3672
|
}
|
|
3728
3673
|
);
|
|
3729
3674
|
};
|
|
3730
|
-
var PromptInputSelect = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3675
|
+
var PromptInputSelect = (props) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.Select, { ...props });
|
|
3731
3676
|
var PromptInputSelectTrigger = ({
|
|
3732
3677
|
className,
|
|
3733
3678
|
...props
|
|
3734
3679
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3735
|
-
|
|
3680
|
+
chunkQDFPJJ5Y_cjs.SelectTrigger,
|
|
3736
3681
|
{
|
|
3737
3682
|
className: chunk525KS5HM_cjs.cn(
|
|
3738
3683
|
"border-none bg-transparent font-medium text-muted-foreground shadow-none transition-colors",
|
|
@@ -3745,15 +3690,15 @@ var PromptInputSelectTrigger = ({
|
|
|
3745
3690
|
var PromptInputSelectContent = ({
|
|
3746
3691
|
className,
|
|
3747
3692
|
...props
|
|
3748
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3693
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.SelectContent, { className: chunk525KS5HM_cjs.cn(className), ...props });
|
|
3749
3694
|
var PromptInputSelectItem = ({
|
|
3750
3695
|
className,
|
|
3751
3696
|
...props
|
|
3752
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3697
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.SelectItem, { className: chunk525KS5HM_cjs.cn(className), ...props });
|
|
3753
3698
|
var PromptInputSelectValue = ({
|
|
3754
3699
|
className,
|
|
3755
3700
|
...props
|
|
3756
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3701
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.SelectValue, { className: chunk525KS5HM_cjs.cn(className), ...props });
|
|
3757
3702
|
var PromptInputHoverCard = ({
|
|
3758
3703
|
openDelay = 0,
|
|
3759
3704
|
closeDelay = 0,
|
|
@@ -3893,7 +3838,7 @@ var QueueItemAction = ({
|
|
|
3893
3838
|
className,
|
|
3894
3839
|
...props
|
|
3895
3840
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3896
|
-
|
|
3841
|
+
chunkC24QG43M_cjs.Button,
|
|
3897
3842
|
{
|
|
3898
3843
|
className: chunk525KS5HM_cjs.cn(
|
|
3899
3844
|
"size-auto rounded p-1 text-muted-foreground opacity-0 transition-opacity hover:bg-muted-foreground/10 hover:text-foreground group-hover:opacity-100",
|
|
@@ -3944,17 +3889,17 @@ var QueueList = ({
|
|
|
3944
3889
|
children,
|
|
3945
3890
|
className,
|
|
3946
3891
|
...props
|
|
3947
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3892
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.ScrollArea, { className: chunk525KS5HM_cjs.cn("-mb-1 mt-2", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-h-40 pr-4", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { children }) }) });
|
|
3948
3893
|
var QueueSection = ({
|
|
3949
3894
|
className,
|
|
3950
3895
|
defaultOpen = true,
|
|
3951
3896
|
...props
|
|
3952
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3897
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.Collapsible, { className: chunk525KS5HM_cjs.cn(className), defaultOpen, ...props });
|
|
3953
3898
|
var QueueSectionTrigger = ({
|
|
3954
3899
|
children,
|
|
3955
3900
|
className,
|
|
3956
3901
|
...props
|
|
3957
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3902
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3958
3903
|
"button",
|
|
3959
3904
|
{
|
|
3960
3905
|
className: chunk525KS5HM_cjs.cn(
|
|
@@ -3984,7 +3929,7 @@ var QueueSectionLabel = ({
|
|
|
3984
3929
|
var QueueSectionContent = ({
|
|
3985
3930
|
className,
|
|
3986
3931
|
...props
|
|
3987
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3932
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.CollapsibleContent, { className: chunk525KS5HM_cjs.cn(className), ...props });
|
|
3988
3933
|
var Queue = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3989
3934
|
"div",
|
|
3990
3935
|
{
|
|
@@ -4015,13 +3960,13 @@ var Task = ({
|
|
|
4015
3960
|
defaultOpen = true,
|
|
4016
3961
|
className,
|
|
4017
3962
|
...props
|
|
4018
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3963
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.Collapsible, { className: chunk525KS5HM_cjs.cn(className), defaultOpen, ...props });
|
|
4019
3964
|
var TaskTrigger = ({
|
|
4020
3965
|
children,
|
|
4021
3966
|
className,
|
|
4022
3967
|
title,
|
|
4023
3968
|
...props
|
|
4024
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3969
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.CollapsibleTrigger, { asChild: true, className: chunk525KS5HM_cjs.cn("group", className), ...props, children: children ?? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full cursor-pointer items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground", children: [
|
|
4025
3970
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "size-4" }),
|
|
4026
3971
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: title }),
|
|
4027
3972
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "size-4 transition-transform group-data-[state=open]:rotate-180" })
|
|
@@ -4031,7 +3976,7 @@ var TaskContent = ({
|
|
|
4031
3976
|
className,
|
|
4032
3977
|
...props
|
|
4033
3978
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4034
|
-
|
|
3979
|
+
chunkC24QG43M_cjs.CollapsibleContent,
|
|
4035
3980
|
{
|
|
4036
3981
|
className: chunk525KS5HM_cjs.cn(
|
|
4037
3982
|
"data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
@@ -4042,7 +3987,7 @@ var TaskContent = ({
|
|
|
4042
3987
|
}
|
|
4043
3988
|
);
|
|
4044
3989
|
var Tool = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4045
|
-
|
|
3990
|
+
chunkC24QG43M_cjs.Collapsible,
|
|
4046
3991
|
{
|
|
4047
3992
|
className: chunk525KS5HM_cjs.cn("not-prose mb-4 w-full rounded-md border", className),
|
|
4048
3993
|
...props
|
|
@@ -4067,7 +4012,7 @@ var getStatusBadge = (status) => {
|
|
|
4067
4012
|
"output-error": /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XCircleIcon, { className: "size-4 text-red-600" }),
|
|
4068
4013
|
"output-denied": /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XCircleIcon, { className: "size-4 text-orange-600" })
|
|
4069
4014
|
};
|
|
4070
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4015
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQDFPJJ5Y_cjs.Badge, { className: "gap-1.5 rounded-full text-xs", variant: "secondary", children: [
|
|
4071
4016
|
icons[status],
|
|
4072
4017
|
labels[status]
|
|
4073
4018
|
] });
|
|
@@ -4079,7 +4024,7 @@ var ToolHeader = ({
|
|
|
4079
4024
|
state,
|
|
4080
4025
|
...props
|
|
4081
4026
|
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4082
|
-
|
|
4027
|
+
chunkC24QG43M_cjs.CollapsibleTrigger,
|
|
4083
4028
|
{
|
|
4084
4029
|
className: chunk525KS5HM_cjs.cn(
|
|
4085
4030
|
"flex w-full items-center justify-between gap-4 p-3",
|
|
@@ -4097,7 +4042,7 @@ var ToolHeader = ({
|
|
|
4097
4042
|
}
|
|
4098
4043
|
);
|
|
4099
4044
|
var ToolContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4100
|
-
|
|
4045
|
+
chunkC24QG43M_cjs.CollapsibleContent,
|
|
4101
4046
|
{
|
|
4102
4047
|
className: chunk525KS5HM_cjs.cn(
|
|
4103
4048
|
"data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
@@ -4180,7 +4125,7 @@ var Checkpoint = ({
|
|
|
4180
4125
|
...props,
|
|
4181
4126
|
children: [
|
|
4182
4127
|
children,
|
|
4183
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4128
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.Separator, {})
|
|
4184
4129
|
]
|
|
4185
4130
|
}
|
|
4186
4131
|
);
|
|
@@ -4196,10 +4141,10 @@ var CheckpointTrigger = ({
|
|
|
4196
4141
|
size = "sm",
|
|
4197
4142
|
tooltip,
|
|
4198
4143
|
...props
|
|
4199
|
-
}) => tooltip ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4200
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4201
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4202
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
4144
|
+
}) => tooltip ? /* @__PURE__ */ jsxRuntime.jsxs(chunkQDFPJJ5Y_cjs.Tooltip, { children: [
|
|
4145
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.Button, { size, type: "button", variant, ...props, children }) }),
|
|
4146
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDFPJJ5Y_cjs.TooltipContent, { align: "start", side: "bottom", children: tooltip })
|
|
4147
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkC24QG43M_cjs.Button, { size, type: "button", variant, ...props, children });
|
|
4203
4148
|
var HALF = 0.5;
|
|
4204
4149
|
var Connection = ({
|
|
4205
4150
|
fromX,
|
|
@@ -4382,27 +4327,43 @@ var Image = ({
|
|
|
4382
4327
|
|
|
4383
4328
|
Object.defineProperty(exports, "Conversation", {
|
|
4384
4329
|
enumerable: true,
|
|
4385
|
-
get: function () { return
|
|
4330
|
+
get: function () { return chunkRTVEBPAJ_cjs.Conversation; }
|
|
4386
4331
|
});
|
|
4387
4332
|
Object.defineProperty(exports, "ConversationContent", {
|
|
4388
4333
|
enumerable: true,
|
|
4389
|
-
get: function () { return
|
|
4334
|
+
get: function () { return chunkRTVEBPAJ_cjs.ConversationContent; }
|
|
4390
4335
|
});
|
|
4391
4336
|
Object.defineProperty(exports, "ConversationEmptyState", {
|
|
4392
4337
|
enumerable: true,
|
|
4393
|
-
get: function () { return
|
|
4338
|
+
get: function () { return chunkRTVEBPAJ_cjs.ConversationEmptyState; }
|
|
4394
4339
|
});
|
|
4395
4340
|
Object.defineProperty(exports, "ConversationScrollButton", {
|
|
4396
4341
|
enumerable: true,
|
|
4397
|
-
get: function () { return
|
|
4342
|
+
get: function () { return chunkRTVEBPAJ_cjs.ConversationScrollButton; }
|
|
4398
4343
|
});
|
|
4399
4344
|
Object.defineProperty(exports, "Loader", {
|
|
4400
4345
|
enumerable: true,
|
|
4401
|
-
get: function () { return
|
|
4346
|
+
get: function () { return chunkRTVEBPAJ_cjs.Loader; }
|
|
4347
|
+
});
|
|
4348
|
+
Object.defineProperty(exports, "Source", {
|
|
4349
|
+
enumerable: true,
|
|
4350
|
+
get: function () { return chunkRTVEBPAJ_cjs.Source; }
|
|
4351
|
+
});
|
|
4352
|
+
Object.defineProperty(exports, "Sources", {
|
|
4353
|
+
enumerable: true,
|
|
4354
|
+
get: function () { return chunkRTVEBPAJ_cjs.Sources; }
|
|
4355
|
+
});
|
|
4356
|
+
Object.defineProperty(exports, "SourcesContent", {
|
|
4357
|
+
enumerable: true,
|
|
4358
|
+
get: function () { return chunkRTVEBPAJ_cjs.SourcesContent; }
|
|
4359
|
+
});
|
|
4360
|
+
Object.defineProperty(exports, "SourcesTrigger", {
|
|
4361
|
+
enumerable: true,
|
|
4362
|
+
get: function () { return chunkRTVEBPAJ_cjs.SourcesTrigger; }
|
|
4402
4363
|
});
|
|
4403
4364
|
Object.defineProperty(exports, "SpinnerLoader", {
|
|
4404
4365
|
enumerable: true,
|
|
4405
|
-
get: function () { return
|
|
4366
|
+
get: function () { return chunkRTVEBPAJ_cjs.SpinnerLoader; }
|
|
4406
4367
|
});
|
|
4407
4368
|
exports.AIImage = Image;
|
|
4408
4369
|
exports.Artifact = Artifact;
|
|
@@ -4575,10 +4536,6 @@ exports.Reasoning = Reasoning;
|
|
|
4575
4536
|
exports.ReasoningContent = ReasoningContent;
|
|
4576
4537
|
exports.ReasoningTrigger = ReasoningTrigger;
|
|
4577
4538
|
exports.Shimmer = Shimmer;
|
|
4578
|
-
exports.Source = Source;
|
|
4579
|
-
exports.Sources = Sources;
|
|
4580
|
-
exports.SourcesContent = SourcesContent;
|
|
4581
|
-
exports.SourcesTrigger = SourcesTrigger;
|
|
4582
4539
|
exports.Suggestion = Suggestion;
|
|
4583
4540
|
exports.Suggestions = Suggestions;
|
|
4584
4541
|
exports.Task = Task;
|