@mastra/playground-ui 7.0.0-beta.15 → 7.0.0-beta.16
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 +27 -0
- package/dist/index.cjs.js +210 -231
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +210 -231
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/ui/combobox.d.ts +3 -3
- package/dist/src/domains/agents/components/agent-combobox.d.ts +1 -3
- package/dist/src/domains/mcps/components/mcp-server-combobox.d.ts +1 -3
- package/dist/src/domains/observability/components/traces-tools.d.ts +10 -1
- package/dist/src/domains/scores/components/scorer-combobox.d.ts +1 -3
- package/dist/src/domains/tools/components/tool-combobox.d.ts +1 -3
- package/dist/src/domains/workflows/components/workflow-combobox.d.ts +1 -3
- package/package.json +8 -7
package/dist/index.es.js
CHANGED
|
@@ -10019,8 +10019,7 @@ function Combobox({
|
|
|
10019
10019
|
emptyText = "No option found.",
|
|
10020
10020
|
className,
|
|
10021
10021
|
disabled = false,
|
|
10022
|
-
|
|
10023
|
-
contentClassName
|
|
10022
|
+
variant = "default"
|
|
10024
10023
|
}) {
|
|
10025
10024
|
const [open, setOpen] = React.useState(false);
|
|
10026
10025
|
const [search, setSearch] = React.useState("");
|
|
@@ -10098,78 +10097,71 @@ function Combobox({
|
|
|
10098
10097
|
Button$2,
|
|
10099
10098
|
{
|
|
10100
10099
|
ref: triggerRef,
|
|
10101
|
-
variant
|
|
10100
|
+
variant,
|
|
10102
10101
|
role: "combobox",
|
|
10103
10102
|
"aria-expanded": open,
|
|
10104
|
-
className: cn("w-full justify-between",
|
|
10103
|
+
className: cn("w-full justify-between", className),
|
|
10105
10104
|
disabled,
|
|
10105
|
+
size: "sm",
|
|
10106
10106
|
children: [
|
|
10107
10107
|
/* @__PURE__ */ jsx("span", { className: "truncate text-ui-lg", children: selectedOption ? selectedOption.label : placeholder }),
|
|
10108
10108
|
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
10109
10109
|
]
|
|
10110
10110
|
}
|
|
10111
10111
|
) }),
|
|
10112
|
-
/* @__PURE__ */ jsx(
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10112
|
+
/* @__PURE__ */ jsx(PopoverContent, { className: "p-0 w-fit", align: "start", children: /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", children: [
|
|
10113
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3 py-2", children: [
|
|
10114
|
+
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
10115
|
+
/* @__PURE__ */ jsx(
|
|
10116
|
+
"input",
|
|
10117
|
+
{
|
|
10118
|
+
ref: inputRef,
|
|
10119
|
+
className: "flex h-8 w-full rounded-md bg-transparent py-1 text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 outline-none",
|
|
10120
|
+
placeholder: searchPlaceholder,
|
|
10121
|
+
value: search,
|
|
10122
|
+
onChange: (e) => setSearch(e.target.value),
|
|
10123
|
+
onKeyDown: handleKeyDown,
|
|
10124
|
+
role: "combobox",
|
|
10125
|
+
"aria-autocomplete": "list",
|
|
10126
|
+
"aria-controls": "combobox-options",
|
|
10127
|
+
"aria-expanded": open
|
|
10128
|
+
}
|
|
10129
|
+
)
|
|
10130
|
+
] }),
|
|
10131
|
+
/* @__PURE__ */ jsx(
|
|
10132
|
+
"div",
|
|
10133
|
+
{
|
|
10134
|
+
ref: listRef,
|
|
10135
|
+
id: "combobox-options",
|
|
10136
|
+
role: "listbox",
|
|
10137
|
+
className: "max-h-dropdown-max-height overflow-y-auto overflow-x-hidden p-1",
|
|
10138
|
+
children: filteredOptions.length === 0 ? /* @__PURE__ */ jsx("div", { className: "py-6 text-center text-sm", children: emptyText }) : filteredOptions.map((option, index) => {
|
|
10139
|
+
const isSelected = value === option.value;
|
|
10140
|
+
const isHighlighted = index === highlightedIndex;
|
|
10141
|
+
return /* @__PURE__ */ jsxs(
|
|
10142
|
+
"div",
|
|
10123
10143
|
{
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
const isSelected = value === option.value;
|
|
10146
|
-
const isHighlighted = index === highlightedIndex;
|
|
10147
|
-
return /* @__PURE__ */ jsxs(
|
|
10148
|
-
"div",
|
|
10149
|
-
{
|
|
10150
|
-
role: "option",
|
|
10151
|
-
"aria-selected": isSelected,
|
|
10152
|
-
className: cn(
|
|
10153
|
-
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm transition-colors",
|
|
10154
|
-
"hover:bg-accent hover:text-accent-foreground",
|
|
10155
|
-
isHighlighted && "bg-accent text-accent-foreground",
|
|
10156
|
-
isSelected && !isHighlighted && "bg-accent/50"
|
|
10157
|
-
),
|
|
10158
|
-
onClick: () => handleSelect(option.value),
|
|
10159
|
-
onMouseEnter: () => setHighlightedIndex(index),
|
|
10160
|
-
children: [
|
|
10161
|
-
/* @__PURE__ */ jsx(Check, { className: cn("mr-2 h-4 w-4", isSelected ? "opacity-100" : "opacity-0") }),
|
|
10162
|
-
option.label
|
|
10163
|
-
]
|
|
10164
|
-
},
|
|
10165
|
-
option.value
|
|
10166
|
-
);
|
|
10167
|
-
})
|
|
10168
|
-
}
|
|
10169
|
-
)
|
|
10170
|
-
] })
|
|
10171
|
-
}
|
|
10172
|
-
)
|
|
10144
|
+
role: "option",
|
|
10145
|
+
"aria-selected": isSelected,
|
|
10146
|
+
className: cn(
|
|
10147
|
+
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm transition-colors",
|
|
10148
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
10149
|
+
isHighlighted && "bg-accent text-accent-foreground",
|
|
10150
|
+
isSelected && !isHighlighted && "bg-accent/50"
|
|
10151
|
+
),
|
|
10152
|
+
onClick: () => handleSelect(option.value),
|
|
10153
|
+
onMouseEnter: () => setHighlightedIndex(index),
|
|
10154
|
+
children: [
|
|
10155
|
+
/* @__PURE__ */ jsx(Check, { className: cn("mr-2 h-4 w-4", isSelected ? "opacity-100" : "opacity-0") }),
|
|
10156
|
+
option.label
|
|
10157
|
+
]
|
|
10158
|
+
},
|
|
10159
|
+
option.value
|
|
10160
|
+
);
|
|
10161
|
+
})
|
|
10162
|
+
}
|
|
10163
|
+
)
|
|
10164
|
+
] }) })
|
|
10173
10165
|
] });
|
|
10174
10166
|
}
|
|
10175
10167
|
|
|
@@ -10180,9 +10172,7 @@ function WorkflowCombobox({
|
|
|
10180
10172
|
searchPlaceholder = "Search workflows...",
|
|
10181
10173
|
emptyText = "No workflows found.",
|
|
10182
10174
|
className,
|
|
10183
|
-
disabled = false
|
|
10184
|
-
buttonClassName = "h-8",
|
|
10185
|
-
contentClassName
|
|
10175
|
+
disabled = false
|
|
10186
10176
|
}) {
|
|
10187
10177
|
const { data: workflows = {}, isLoading, isError, error } = useWorkflows();
|
|
10188
10178
|
const { navigate, paths } = useLinkComponent();
|
|
@@ -10214,8 +10204,7 @@ function WorkflowCombobox({
|
|
|
10214
10204
|
emptyText,
|
|
10215
10205
|
className,
|
|
10216
10206
|
disabled: disabled || isLoading || isError,
|
|
10217
|
-
|
|
10218
|
-
contentClassName
|
|
10207
|
+
variant: "ghost"
|
|
10219
10208
|
}
|
|
10220
10209
|
);
|
|
10221
10210
|
}
|
|
@@ -11648,7 +11637,7 @@ const Thread = ({ agentName, agentId, hasMemory, hasModelList }) => {
|
|
|
11648
11637
|
return /* @__PURE__ */ jsxs(ThreadWrapper, { children: [
|
|
11649
11638
|
/* @__PURE__ */ jsxs(ThreadPrimitive.Viewport, { ref: areaRef, autoScroll: false, className: "overflow-y-scroll scroll-smooth h-full", children: [
|
|
11650
11639
|
/* @__PURE__ */ jsx(ThreadWelcome, { agentName }),
|
|
11651
|
-
/* @__PURE__ */ jsx("div", { className: "max-w-
|
|
11640
|
+
/* @__PURE__ */ jsx("div", { className: "max-w-3xl w-full mx-auto px-4 pb-7", children: /* @__PURE__ */ jsx(
|
|
11652
11641
|
ThreadPrimitive.Messages,
|
|
11653
11642
|
{
|
|
11654
11643
|
components: {
|
|
@@ -11686,11 +11675,11 @@ const Composer = ({ hasMemory, agentId }) => {
|
|
|
11686
11675
|
const { setThreadInput } = useThreadInput();
|
|
11687
11676
|
const textareaRef = useRef(null);
|
|
11688
11677
|
return /* @__PURE__ */ jsx("div", { className: "mx-4", children: /* @__PURE__ */ jsxs(ComposerPrimitive.Root, { children: [
|
|
11689
|
-
/* @__PURE__ */ jsx("div", { className: "max-w-
|
|
11678
|
+
/* @__PURE__ */ jsx("div", { className: "max-w-3xl w-full mx-auto pb-2", children: /* @__PURE__ */ jsx(ComposerAttachments, {}) }),
|
|
11690
11679
|
/* @__PURE__ */ jsxs(
|
|
11691
11680
|
"div",
|
|
11692
11681
|
{
|
|
11693
|
-
className: "bg-surface3 rounded-lg border-sm border-border1 py-4 mt-auto max-w-
|
|
11682
|
+
className: "bg-surface3 rounded-lg border-sm border-border1 py-4 mt-auto max-w-3xl w-full mx-auto px-4 focus-within:outline focus-within:outline-accent1 -outline-offset-2",
|
|
11694
11683
|
onClick: () => {
|
|
11695
11684
|
textareaRef.current?.focus();
|
|
11696
11685
|
},
|
|
@@ -12859,7 +12848,7 @@ const AgentAdvancedSettings = () => {
|
|
|
12859
12848
|
};
|
|
12860
12849
|
const collapsibleClassName = "rounded-lg border-sm border-border1 bg-surface3 overflow-clip";
|
|
12861
12850
|
const collapsibleTriggerClassName = "text-icon3 text-ui-lg font-medium flex items-center gap-2 w-full p-[10px] justify-between";
|
|
12862
|
-
const collapsibleContentClassName = "bg-surface2 p-[10px]
|
|
12851
|
+
const collapsibleContentClassName = "bg-surface2 p-[10px] @container/collapsible";
|
|
12863
12852
|
const buttonClass = "text-icon3 hover:text-icon6";
|
|
12864
12853
|
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Collapsible, { className: collapsibleClassName, open: isOpen, onOpenChange: setIsOpen, children: [
|
|
12865
12854
|
/* @__PURE__ */ jsxs(CollapsibleTrigger, { className: collapsibleTriggerClassName, children: [
|
|
@@ -12867,139 +12856,141 @@ const AgentAdvancedSettings = () => {
|
|
|
12867
12856
|
/* @__PURE__ */ jsx(Icon, { className: cn("transition-transform", isOpen ? "rotate-0" : "-rotate-90"), children: /* @__PURE__ */ jsx(ChevronDown, {}) })
|
|
12868
12857
|
] }),
|
|
12869
12858
|
/* @__PURE__ */ jsxs(CollapsibleContent, { className: collapsibleContentClassName, children: [
|
|
12870
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
12871
|
-
/* @__PURE__ */
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
/* @__PURE__ */
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
/* @__PURE__ */
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
/* @__PURE__ */
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
/* @__PURE__ */
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
/* @__PURE__ */
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12859
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-2 pb-2 @xs/collapsible:grid-cols-2", children: [
|
|
12860
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
12861
|
+
/* @__PURE__ */ jsx(Txt, { as: "label", className: "text-icon3", variant: "ui-sm", htmlFor: "frequency-penalty", children: "Frequency Penalty" }),
|
|
12862
|
+
/* @__PURE__ */ jsx(
|
|
12863
|
+
Input,
|
|
12864
|
+
{
|
|
12865
|
+
id: "frequency-penalty",
|
|
12866
|
+
type: "number",
|
|
12867
|
+
step: "0.1",
|
|
12868
|
+
min: "-1",
|
|
12869
|
+
max: "1",
|
|
12870
|
+
value: settings?.modelSettings?.frequencyPenalty ?? "",
|
|
12871
|
+
onChange: (e) => setSettings({
|
|
12872
|
+
...settings,
|
|
12873
|
+
modelSettings: {
|
|
12874
|
+
...settings?.modelSettings,
|
|
12875
|
+
frequencyPenalty: e.target.value ? Number(e.target.value) : void 0
|
|
12876
|
+
}
|
|
12877
|
+
})
|
|
12878
|
+
}
|
|
12879
|
+
)
|
|
12880
|
+
] }),
|
|
12881
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
12882
|
+
/* @__PURE__ */ jsx(Txt, { as: "label", className: "text-icon3", variant: "ui-sm", htmlFor: "presence-penalty", children: "Presence Penalty" }),
|
|
12883
|
+
/* @__PURE__ */ jsx(
|
|
12884
|
+
Input,
|
|
12885
|
+
{
|
|
12886
|
+
id: "presence-penalty",
|
|
12887
|
+
type: "number",
|
|
12888
|
+
step: "0.1",
|
|
12889
|
+
min: "-1",
|
|
12890
|
+
max: "1",
|
|
12891
|
+
value: settings?.modelSettings?.presencePenalty ?? "",
|
|
12892
|
+
onChange: (e) => setSettings({
|
|
12893
|
+
...settings,
|
|
12894
|
+
modelSettings: {
|
|
12895
|
+
...settings?.modelSettings,
|
|
12896
|
+
presencePenalty: e.target.value ? Number(e.target.value) : void 0
|
|
12897
|
+
}
|
|
12898
|
+
})
|
|
12899
|
+
}
|
|
12900
|
+
)
|
|
12901
|
+
] }),
|
|
12902
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
12903
|
+
/* @__PURE__ */ jsx(Txt, { as: "label", className: "text-icon3", variant: "ui-sm", htmlFor: "top-k", children: "Top K" }),
|
|
12904
|
+
/* @__PURE__ */ jsx(
|
|
12905
|
+
Input,
|
|
12906
|
+
{
|
|
12907
|
+
id: "top-k",
|
|
12908
|
+
type: "number",
|
|
12909
|
+
value: settings?.modelSettings?.topK || "",
|
|
12910
|
+
onChange: (e) => setSettings({
|
|
12911
|
+
...settings,
|
|
12912
|
+
modelSettings: {
|
|
12913
|
+
...settings?.modelSettings,
|
|
12914
|
+
topK: e.target.value ? Number(e.target.value) : void 0
|
|
12915
|
+
}
|
|
12916
|
+
})
|
|
12917
|
+
}
|
|
12918
|
+
)
|
|
12919
|
+
] }),
|
|
12920
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
12921
|
+
/* @__PURE__ */ jsx(Txt, { as: "label", className: "text-icon3", variant: "ui-sm", htmlFor: "max-tokens", children: "Max Tokens" }),
|
|
12922
|
+
/* @__PURE__ */ jsx(
|
|
12923
|
+
Input,
|
|
12924
|
+
{
|
|
12925
|
+
id: "max-tokens",
|
|
12926
|
+
type: "number",
|
|
12927
|
+
value: settings?.modelSettings?.maxTokens || "",
|
|
12928
|
+
onChange: (e) => setSettings({
|
|
12929
|
+
...settings,
|
|
12930
|
+
modelSettings: {
|
|
12931
|
+
...settings?.modelSettings,
|
|
12932
|
+
maxTokens: e.target.value ? Number(e.target.value) : void 0
|
|
12933
|
+
}
|
|
12934
|
+
})
|
|
12935
|
+
}
|
|
12936
|
+
)
|
|
12937
|
+
] }),
|
|
12938
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
12939
|
+
/* @__PURE__ */ jsx(Txt, { as: "label", className: "text-icon3", variant: "ui-sm", htmlFor: "max-steps", children: "Max Steps" }),
|
|
12940
|
+
/* @__PURE__ */ jsx(
|
|
12941
|
+
Input,
|
|
12942
|
+
{
|
|
12943
|
+
id: "max-steps",
|
|
12944
|
+
type: "number",
|
|
12945
|
+
value: settings?.modelSettings?.maxSteps || "",
|
|
12946
|
+
onChange: (e) => setSettings({
|
|
12947
|
+
...settings,
|
|
12948
|
+
modelSettings: {
|
|
12949
|
+
...settings?.modelSettings,
|
|
12950
|
+
maxSteps: e.target.value ? Number(e.target.value) : void 0
|
|
12951
|
+
}
|
|
12952
|
+
})
|
|
12953
|
+
}
|
|
12954
|
+
)
|
|
12955
|
+
] }),
|
|
12956
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
12957
|
+
/* @__PURE__ */ jsx(Txt, { as: "label", className: "text-icon3", variant: "ui-sm", htmlFor: "max-retries", children: "Max Retries" }),
|
|
12958
|
+
/* @__PURE__ */ jsx(
|
|
12959
|
+
Input,
|
|
12960
|
+
{
|
|
12961
|
+
id: "max-retries",
|
|
12962
|
+
type: "number",
|
|
12963
|
+
value: settings?.modelSettings?.maxRetries || "",
|
|
12964
|
+
onChange: (e) => setSettings({
|
|
12965
|
+
...settings,
|
|
12966
|
+
modelSettings: {
|
|
12967
|
+
...settings?.modelSettings,
|
|
12968
|
+
maxRetries: e.target.value ? Number(e.target.value) : void 0
|
|
12969
|
+
}
|
|
12970
|
+
})
|
|
12971
|
+
}
|
|
12972
|
+
)
|
|
12973
|
+
] }),
|
|
12974
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
12975
|
+
/* @__PURE__ */ jsx(Txt, { as: "label", className: "text-icon3", variant: "ui-sm", htmlFor: "seed", children: "Seed" }),
|
|
12976
|
+
/* @__PURE__ */ jsx(
|
|
12977
|
+
Input,
|
|
12978
|
+
{
|
|
12979
|
+
id: "seed",
|
|
12980
|
+
type: "number",
|
|
12981
|
+
value: settings?.modelSettings?.seed || "",
|
|
12982
|
+
onChange: (e) => setSettings({
|
|
12983
|
+
...settings,
|
|
12984
|
+
modelSettings: {
|
|
12985
|
+
...settings?.modelSettings,
|
|
12986
|
+
seed: e.target.value ? Number(e.target.value) : void 0
|
|
12987
|
+
}
|
|
12988
|
+
})
|
|
12989
|
+
}
|
|
12990
|
+
)
|
|
12991
|
+
] })
|
|
12983
12992
|
] }),
|
|
12984
12993
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
12985
|
-
/* @__PURE__ */ jsx(Txt, { as: "label", className: "text-icon3", variant: "ui-sm", htmlFor: "seed", children: "Seed" }),
|
|
12986
|
-
/* @__PURE__ */ jsx(
|
|
12987
|
-
Input,
|
|
12988
|
-
{
|
|
12989
|
-
id: "seed",
|
|
12990
|
-
type: "number",
|
|
12991
|
-
value: settings?.modelSettings?.seed || "",
|
|
12992
|
-
onChange: (e) => setSettings({
|
|
12993
|
-
...settings,
|
|
12994
|
-
modelSettings: {
|
|
12995
|
-
...settings?.modelSettings,
|
|
12996
|
-
seed: e.target.value ? Number(e.target.value) : void 0
|
|
12997
|
-
}
|
|
12998
|
-
})
|
|
12999
|
-
}
|
|
13000
|
-
)
|
|
13001
|
-
] }),
|
|
13002
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-1 col-span-2", children: [
|
|
13003
12994
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
13004
12995
|
/* @__PURE__ */ jsx(Txt, { as: "label", className: "text-icon3", variant: "ui-sm", htmlFor: "provider-options", children: "Provider Options" }),
|
|
13005
12996
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -13186,7 +13177,7 @@ const AgentSettings = ({ agentId }) => {
|
|
|
13186
13177
|
radioValue = settings?.modelSettings?.chatWithGenerateLegacy ? "generateLegacy" : "streamLegacy";
|
|
13187
13178
|
}
|
|
13188
13179
|
return /* @__PURE__ */ jsxs("div", { className: "px-5 text-xs py-2 pb-4", children: [
|
|
13189
|
-
/* @__PURE__ */ jsxs("section", { className: "space-y-7", children: [
|
|
13180
|
+
/* @__PURE__ */ jsxs("section", { className: "space-y-7 @container", children: [
|
|
13190
13181
|
/* @__PURE__ */ jsx(Entry, { label: "Chat Method", children: /* @__PURE__ */ jsxs(
|
|
13191
13182
|
RadioGroup,
|
|
13192
13183
|
{
|
|
@@ -13201,7 +13192,7 @@ const AgentSettings = ({ agentId }) => {
|
|
|
13201
13192
|
chatWithNetwork: value === "network"
|
|
13202
13193
|
}
|
|
13203
13194
|
}),
|
|
13204
|
-
className: "flex flex-
|
|
13195
|
+
className: "flex flex-col gap-4 @xs:flex-row",
|
|
13205
13196
|
children: [
|
|
13206
13197
|
!isSupportedModel && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
13207
13198
|
/* @__PURE__ */ jsx(RadioGroupItem, { value: "generateLegacy", id: "generateLegacy", className: "text-icon6" }),
|
|
@@ -13233,7 +13224,7 @@ const AgentSettings = ({ agentId }) => {
|
|
|
13233
13224
|
})
|
|
13234
13225
|
}
|
|
13235
13226
|
) }),
|
|
13236
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-8", children: [
|
|
13227
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @xs:grid-cols-2 gap-8", children: [
|
|
13237
13228
|
/* @__PURE__ */ jsx(Entry, { label: "Temperature", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
13238
13229
|
/* @__PURE__ */ jsx(
|
|
13239
13230
|
Slider,
|
|
@@ -15220,9 +15211,7 @@ function ScorerCombobox({
|
|
|
15220
15211
|
searchPlaceholder = "Search scorers...",
|
|
15221
15212
|
emptyText = "No scorers found.",
|
|
15222
15213
|
className,
|
|
15223
|
-
disabled = false
|
|
15224
|
-
buttonClassName = "h-8",
|
|
15225
|
-
contentClassName
|
|
15214
|
+
disabled = false
|
|
15226
15215
|
}) {
|
|
15227
15216
|
const { data: scorers = {}, isLoading, isError, error } = useScorers();
|
|
15228
15217
|
const { navigate, paths } = useLinkComponent();
|
|
@@ -15254,8 +15243,7 @@ function ScorerCombobox({
|
|
|
15254
15243
|
emptyText,
|
|
15255
15244
|
className,
|
|
15256
15245
|
disabled: disabled || isLoading || isError,
|
|
15257
|
-
|
|
15258
|
-
contentClassName
|
|
15246
|
+
variant: "ghost"
|
|
15259
15247
|
}
|
|
15260
15248
|
);
|
|
15261
15249
|
}
|
|
@@ -15549,8 +15537,8 @@ const AgentMetadataModelSwitcher = ({
|
|
|
15549
15537
|
setLoading(false);
|
|
15550
15538
|
}
|
|
15551
15539
|
};
|
|
15552
|
-
return /* @__PURE__ */ jsxs(
|
|
15553
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col
|
|
15540
|
+
return /* @__PURE__ */ jsxs("div", { className: "@container", children: [
|
|
15541
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col @xs:flex-row items-stretch @xs:items-center gap-2 w-full", children: [
|
|
15554
15542
|
/* @__PURE__ */ jsxs(
|
|
15555
15543
|
Popover,
|
|
15556
15544
|
{
|
|
@@ -15563,7 +15551,7 @@ const AgentMetadataModelSwitcher = ({
|
|
|
15563
15551
|
}
|
|
15564
15552
|
},
|
|
15565
15553
|
children: [
|
|
15566
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("div", { className: "relative w-full
|
|
15554
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("div", { className: "relative w-full @xs:w-2/5", children: [
|
|
15567
15555
|
!isSearchingProvider && currentModelProvider && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15568
15556
|
/* @__PURE__ */ jsx("div", { className: "absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none z-10", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
15569
15557
|
/* @__PURE__ */ jsx(ProviderLogo, { providerId: currentModelProvider, size: 16 }),
|
|
@@ -15742,7 +15730,7 @@ const AgentMetadataModelSwitcher = ({
|
|
|
15742
15730
|
"aria-label": "Search models",
|
|
15743
15731
|
spellCheck: "false",
|
|
15744
15732
|
ref: modelInputRef,
|
|
15745
|
-
className: "w-full
|
|
15733
|
+
className: "w-full @xs:w-3/5",
|
|
15746
15734
|
type: "text",
|
|
15747
15735
|
value: modelSearch || selectedModel,
|
|
15748
15736
|
onChange: (e) => {
|
|
@@ -16569,9 +16557,7 @@ function AgentCombobox({
|
|
|
16569
16557
|
searchPlaceholder = "Search agents...",
|
|
16570
16558
|
emptyText = "No agents found.",
|
|
16571
16559
|
className,
|
|
16572
|
-
disabled = false
|
|
16573
|
-
buttonClassName = "h-8",
|
|
16574
|
-
contentClassName
|
|
16560
|
+
disabled = false
|
|
16575
16561
|
}) {
|
|
16576
16562
|
const { data: agents = {}, isLoading, isError, error } = useAgents();
|
|
16577
16563
|
const { navigate, paths } = useLinkComponent();
|
|
@@ -16603,8 +16589,7 @@ function AgentCombobox({
|
|
|
16603
16589
|
emptyText,
|
|
16604
16590
|
className,
|
|
16605
16591
|
disabled: disabled || isLoading || isError,
|
|
16606
|
-
|
|
16607
|
-
contentClassName
|
|
16592
|
+
variant: "ghost"
|
|
16608
16593
|
}
|
|
16609
16594
|
);
|
|
16610
16595
|
}
|
|
@@ -17766,9 +17751,7 @@ function ToolCombobox({
|
|
|
17766
17751
|
searchPlaceholder = "Search tools...",
|
|
17767
17752
|
emptyText = "No tools found.",
|
|
17768
17753
|
className,
|
|
17769
|
-
disabled = false
|
|
17770
|
-
buttonClassName = "h-8",
|
|
17771
|
-
contentClassName
|
|
17754
|
+
disabled = false
|
|
17772
17755
|
}) {
|
|
17773
17756
|
const { data: tools = {}, isLoading: isLoadingTools, isError: isErrorTools, error: errorTools } = useTools();
|
|
17774
17757
|
const { data: agents = {}, isLoading: isLoadingAgents, isError: isErrorAgents, error: errorAgents } = useAgents();
|
|
@@ -17822,8 +17805,7 @@ function ToolCombobox({
|
|
|
17822
17805
|
emptyText,
|
|
17823
17806
|
className,
|
|
17824
17807
|
disabled: disabled || isLoadingTools || isLoadingAgents || isErrorTools || isErrorAgents,
|
|
17825
|
-
|
|
17826
|
-
contentClassName
|
|
17808
|
+
variant: "ghost"
|
|
17827
17809
|
}
|
|
17828
17810
|
);
|
|
17829
17811
|
}
|
|
@@ -20843,9 +20825,7 @@ function MCPServerCombobox({
|
|
|
20843
20825
|
searchPlaceholder = "Search MCP servers...",
|
|
20844
20826
|
emptyText = "No MCP servers found.",
|
|
20845
20827
|
className,
|
|
20846
|
-
disabled = false
|
|
20847
|
-
buttonClassName = "h-8",
|
|
20848
|
-
contentClassName
|
|
20828
|
+
disabled = false
|
|
20849
20829
|
}) {
|
|
20850
20830
|
const { data: mcpServers = [], isLoading, isError, error } = useMCPServers();
|
|
20851
20831
|
const { navigate, paths } = useLinkComponent();
|
|
@@ -20877,8 +20857,7 @@ function MCPServerCombobox({
|
|
|
20877
20857
|
emptyText,
|
|
20878
20858
|
className,
|
|
20879
20859
|
disabled: disabled || isLoading || isError,
|
|
20880
|
-
|
|
20881
|
-
contentClassName
|
|
20860
|
+
variant: "ghost"
|
|
20882
20861
|
}
|
|
20883
20862
|
);
|
|
20884
20863
|
}
|