@tangle-network/sandbox-ui 0.91.0 → 0.91.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.
- package/dist/chat.js +1 -1
- package/dist/{chunk-GHG4TCDS.js → chunk-QMY3XVH3.js} +90 -82
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/chat.js
CHANGED
|
@@ -676,88 +676,96 @@ function HarnessDropdown({
|
|
|
676
676
|
}
|
|
677
677
|
);
|
|
678
678
|
}
|
|
679
|
-
return /* @__PURE__ */ jsxs3(
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
{
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
"
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
},
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
{
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
679
|
+
return /* @__PURE__ */ jsxs3(
|
|
680
|
+
DropdownMenu2.Root,
|
|
681
|
+
{
|
|
682
|
+
onOpenChange: (nextOpen) => {
|
|
683
|
+
if (!nextOpen) setQuery("");
|
|
684
|
+
},
|
|
685
|
+
children: [
|
|
686
|
+
/* @__PURE__ */ jsx3(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs3(
|
|
687
|
+
"button",
|
|
688
|
+
{
|
|
689
|
+
type: "button",
|
|
690
|
+
disabled: disabled || locked,
|
|
691
|
+
title: locked ? lockReason : void 0,
|
|
692
|
+
className: cn(
|
|
693
|
+
"inline-flex h-8 items-center gap-1.5 rounded-lg border border-[var(--md3-outline-variant)] bg-surface-container px-2.5",
|
|
694
|
+
"text-xs font-medium text-foreground shadow-sm transition-colors",
|
|
695
|
+
"hover:border-[var(--md3-outline-variant)] hover:bg-surface-container-high focus:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
696
|
+
"data-[state=open]:border-[var(--md3-outline-variant)] data-[state=open]:bg-surface-container-high",
|
|
697
|
+
"disabled:cursor-not-allowed disabled:opacity-60",
|
|
698
|
+
triggerClassName
|
|
699
|
+
),
|
|
700
|
+
"aria-label": "Agent harness",
|
|
701
|
+
children: [
|
|
702
|
+
/* @__PURE__ */ jsx3(HarnessLogo, { type: value, size: 16, className: "shrink-0" }),
|
|
703
|
+
/* @__PURE__ */ jsx3("span", { className: "truncate", children: selected?.label ?? value }),
|
|
704
|
+
!locked && /* @__PURE__ */ jsx3(ChevronDown3, { className: "ml-auto h-3.5 w-3.5 shrink-0 text-muted-foreground" })
|
|
705
|
+
]
|
|
706
|
+
}
|
|
707
|
+
) }),
|
|
708
|
+
/* @__PURE__ */ jsx3(DropdownMenu2.Portal, { children: /* @__PURE__ */ jsxs3(
|
|
709
|
+
DropdownMenu2.Content,
|
|
710
|
+
{
|
|
711
|
+
side,
|
|
712
|
+
align,
|
|
713
|
+
avoidCollisions,
|
|
714
|
+
collisionPadding: 24,
|
|
715
|
+
sideOffset: 6,
|
|
716
|
+
className: pickerMenuContentClass,
|
|
717
|
+
children: [
|
|
718
|
+
showSearch && /* @__PURE__ */ jsx3(
|
|
719
|
+
PickerMenuSearch,
|
|
720
|
+
{
|
|
721
|
+
value: query,
|
|
722
|
+
onChange: setQuery,
|
|
723
|
+
placeholder: "Search agents..."
|
|
724
|
+
}
|
|
725
|
+
),
|
|
726
|
+
/* @__PURE__ */ jsx3("div", { className: pickerMenuBodyClass, children: sections.length === 0 ? /* @__PURE__ */ jsx3("div", { className: "px-3 py-8 text-center text-xs text-muted-foreground", children: "No agents match." }) : sections.map((section) => /* @__PURE__ */ jsx3(PickerMenuSection, { label: section.label, children: section.items.map((option) => /* @__PURE__ */ jsxs3(
|
|
727
|
+
DropdownMenu2.Item,
|
|
728
|
+
{
|
|
729
|
+
onSelect: (event) => {
|
|
730
|
+
event.preventDefault();
|
|
731
|
+
onChange(option.type);
|
|
732
|
+
},
|
|
733
|
+
className: pickerMenuItemClass({
|
|
734
|
+
active: option.type === value
|
|
735
|
+
}),
|
|
736
|
+
children: [
|
|
737
|
+
/* @__PURE__ */ jsx3(
|
|
738
|
+
HarnessLogo,
|
|
739
|
+
{
|
|
740
|
+
type: option.type,
|
|
741
|
+
size: 20,
|
|
742
|
+
className: "mt-0.5"
|
|
743
|
+
}
|
|
744
|
+
),
|
|
745
|
+
/* @__PURE__ */ jsxs3("div", { className: "min-w-0 flex-1", children: [
|
|
746
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-1.5", children: [
|
|
747
|
+
/* @__PURE__ */ jsx3("span", { className: "min-w-0 truncate text-sm font-medium", children: option.label }),
|
|
748
|
+
harnessAutonomyNote(option.type) && /* @__PURE__ */ jsx3(PickerMenuTag, { children: harnessAutonomyNote(option.type) })
|
|
749
|
+
] }),
|
|
750
|
+
/* @__PURE__ */ jsx3(PickerMenuMeta, { parts: [option.description] })
|
|
751
|
+
] })
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
option.type
|
|
755
|
+
)) }, section.key)) }),
|
|
756
|
+
showSearch && /* @__PURE__ */ jsxs3(PickerMenuFooter, { children: [
|
|
757
|
+
filtered.length,
|
|
758
|
+
" of ",
|
|
759
|
+
options.length,
|
|
760
|
+
" agent",
|
|
761
|
+
options.length === 1 ? "" : "s"
|
|
762
|
+
] })
|
|
763
|
+
]
|
|
764
|
+
}
|
|
765
|
+
) })
|
|
766
|
+
]
|
|
767
|
+
}
|
|
768
|
+
);
|
|
761
769
|
}
|
|
762
770
|
function modelReasoningCapability(models, canonicalId) {
|
|
763
771
|
if (!models || !canonicalId) return null;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED