@tangle-network/agent-app 0.53.1 → 0.53.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/assistant/index.js +6 -4
  2. package/dist/assistant/index.js.map +1 -1
  3. package/dist/chat-react/index.js +3 -2
  4. package/dist/{chunk-EV5UI4VH.js → chunk-36ZV7KIP.js} +152 -64
  5. package/dist/chunk-36ZV7KIP.js.map +1 -0
  6. package/dist/chunk-6FYFGQ6I.js +48 -0
  7. package/dist/chunk-6FYFGQ6I.js.map +1 -0
  8. package/dist/{chunk-2LPNGZFG.js → chunk-BINC6OWR.js} +183 -152
  9. package/dist/chunk-BINC6OWR.js.map +1 -0
  10. package/dist/{chunk-CIYMRDAM.js → chunk-IYK5BRL4.js} +6 -2
  11. package/dist/chunk-IYK5BRL4.js.map +1 -0
  12. package/dist/{chunk-FRABQIQ4.js → chunk-NH32EPWU.js} +2 -2
  13. package/dist/chunk-ODP3X4BN.js +114 -0
  14. package/dist/chunk-ODP3X4BN.js.map +1 -0
  15. package/dist/{mention-editor-YPKFP2LF.js → mention-editor-E6J2RUG4.js} +2 -2
  16. package/dist/studio-react/index.js +2 -2
  17. package/dist/web-react/agent-profile-choices.d.ts +6 -0
  18. package/dist/web-react/agent-session-controls.d.ts +6 -1
  19. package/dist/web-react/agent-settings-popover.d.ts +15 -0
  20. package/dist/web-react/index.d.ts +3 -0
  21. package/dist/web-react/index.js +13 -4
  22. package/dist/web-react/popover-dialog.d.ts +13 -0
  23. package/dist/web-react/workspace-switcher.d.ts +24 -0
  24. package/dist/workspace-react/index.d.ts +1 -0
  25. package/dist/workspace-react/index.js +8 -0
  26. package/dist/workspace-react/index.js.map +1 -1
  27. package/package.json +1 -1
  28. package/dist/chunk-2LPNGZFG.js.map +0 -1
  29. package/dist/chunk-CIYMRDAM.js.map +0 -1
  30. package/dist/chunk-EV5UI4VH.js.map +0 -1
  31. /package/dist/{chunk-FRABQIQ4.js.map → chunk-NH32EPWU.js.map} +0 -0
  32. /package/dist/{mention-editor-YPKFP2LF.js.map → mention-editor-E6J2RUG4.js.map} +0 -0
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  ComposerModeControls,
3
3
  EntryComposer
4
- } from "../chunk-EV5UI4VH.js";
4
+ } from "../chunk-36ZV7KIP.js";
5
5
  import "../chunk-L7MB2LLM.js";
6
- import "../chunk-CIYMRDAM.js";
6
+ import "../chunk-6FYFGQ6I.js";
7
+ import "../chunk-IYK5BRL4.js";
7
8
  import "../chunk-SJWIZT7B.js";
8
9
  import "../chunk-MLG6XKPV.js";
9
10
  import "../chunk-2S7QRQUS.js";
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  joinClasses
3
3
  } from "./chunk-L7MB2LLM.js";
4
+ import {
5
+ usePopoverDialog
6
+ } from "./chunk-6FYFGQ6I.js";
4
7
  import {
5
8
  CheckGlyph,
6
9
  EffortPicker,
@@ -11,7 +14,7 @@ import {
11
14
  pickerRootClass,
12
15
  quietPickerTriggerClass,
13
16
  usePopover
14
- } from "./chunk-CIYMRDAM.js";
17
+ } from "./chunk-IYK5BRL4.js";
15
18
  import {
16
19
  filterCommandPaletteItems
17
20
  } from "./chunk-SJWIZT7B.js";
@@ -335,7 +338,7 @@ import {
335
338
  } from "react";
336
339
  import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
337
340
  function createLazyMentionEditor() {
338
- return lazy(() => import("./mention-editor-YPKFP2LF.js").then((m) => m.loadMentionEditor()));
341
+ return lazy(() => import("./mention-editor-E6J2RUG4.js").then((m) => m.loadMentionEditor()));
339
342
  }
340
343
  var IS_APPLE_PLATFORM = typeof navigator !== "undefined" && /Mac|iPhone|iPad|iPod/i.test(navigator.platform);
341
344
  function SendGlyph({ className }) {
@@ -1562,9 +1565,71 @@ function HarnessGlyph({ harness, className }) {
1562
1565
  return /* @__PURE__ */ jsx3("span", { role: "img", "aria-label": harness, "data-glyph": kind, className: "inline-flex", children: /* @__PURE__ */ jsx3(Fallback, { className }) });
1563
1566
  }
1564
1567
 
1568
+ // src/web-react/agent-settings-popover.tsx
1569
+ import { useCallback as useCallback4, useEffect as useEffect5, useState as useState4 } from "react";
1570
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
1571
+ function AgentSettingsPopover({
1572
+ label = "Agent settings",
1573
+ summary,
1574
+ children,
1575
+ open: controlledOpen,
1576
+ onOpenChange,
1577
+ disabled = false,
1578
+ className,
1579
+ panelClassName
1580
+ }) {
1581
+ const [localOpen, setLocalOpen] = useState4(false);
1582
+ const open = !disabled && (controlledOpen ?? localOpen);
1583
+ const changeOpen = useCallback4((next) => {
1584
+ setLocalOpen(next);
1585
+ onOpenChange?.(next);
1586
+ }, [onOpenChange]);
1587
+ useEffect5(() => {
1588
+ if (disabled) changeOpen(false);
1589
+ }, [disabled, changeOpen]);
1590
+ const { containerRef, triggerRef, panelRef, triggerProps, id } = usePopoverDialog(open, changeOpen);
1591
+ return /* @__PURE__ */ jsxs4("div", { ref: containerRef, className: `inline-flex min-w-0 max-w-full ${className ?? ""}`, children: [
1592
+ /* @__PURE__ */ jsxs4(
1593
+ "button",
1594
+ {
1595
+ type: "button",
1596
+ ...triggerProps,
1597
+ disabled,
1598
+ "aria-label": label,
1599
+ title: label,
1600
+ "data-agent-settings-trigger": "",
1601
+ onClick: () => changeOpen(!open),
1602
+ "data-state": open ? "open" : "closed",
1603
+ className: "inline-flex min-h-9 max-w-[15rem] items-center gap-1.5 rounded-full border border-border bg-transparent px-2.5 text-sm font-normal text-muted-foreground transition-colors hover:bg-muted hover:text-foreground data-[state=open]:text-foreground disabled:cursor-not-allowed disabled:opacity-50",
1604
+ children: [
1605
+ /* @__PURE__ */ jsxs4("svg", { className: "h-4 w-4 shrink-0", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", "aria-hidden": true, children: [
1606
+ /* @__PURE__ */ jsx4("rect", { x: "4", y: "7", width: "16", height: "14", rx: "3" }),
1607
+ /* @__PURE__ */ jsx4("path", { d: "M12 7V3M9 3h6M1 12v4m22-4v4m-15-3h.01M16 13h.01M9 17h6" })
1608
+ ] }),
1609
+ /* @__PURE__ */ jsx4("span", { className: "min-w-0 truncate", children: summary ?? label }),
1610
+ /* @__PURE__ */ jsx4("svg", { className: "h-3 w-3 shrink-0", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": true, children: /* @__PURE__ */ jsx4("path", { d: "m6 9 6 6 6-6" }) })
1611
+ ]
1612
+ }
1613
+ ),
1614
+ /* @__PURE__ */ jsx4(
1615
+ PopoverSurface,
1616
+ {
1617
+ open,
1618
+ id,
1619
+ role: "dialog",
1620
+ "aria-label": label,
1621
+ triggerRef,
1622
+ panelRef,
1623
+ className: `w-80 max-w-[calc(100vw-2rem)] space-y-4 overflow-y-auto rounded-xl border border-card-edge bg-popover p-4 text-foreground ${OVERLAY_SHADOW} ${panelClassName ?? ""}`,
1624
+ children
1625
+ }
1626
+ )
1627
+ ] });
1628
+ }
1629
+
1565
1630
  // src/web-react/agent-session-controls.tsx
1566
- import { useId as useId2, useMemo as useMemo3, useRef as useRef4, useState as useState4 } from "react";
1567
- import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
1631
+ import { useId as useId2, useMemo as useMemo3, useRef as useRef4, useState as useState5 } from "react";
1632
+ import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
1568
1633
  var HARNESS_LABELS = {
1569
1634
  opencode: "OpenCode (any model)",
1570
1635
  "claude-code": "Claude Code (Anthropic)",
@@ -1584,18 +1649,18 @@ function harnessLabel(h) {
1584
1649
  return HARNESS_LABELS[h] ?? h;
1585
1650
  }
1586
1651
  function ChevronDown({ className }) {
1587
- return /* @__PURE__ */ jsx4("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx4("path", { d: "m6 9 6 6 6-6" }) });
1652
+ return /* @__PURE__ */ jsx5("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx5("path", { d: "m6 9 6 6 6-6" }) });
1588
1653
  }
1589
1654
  function LockGlyph({ className }) {
1590
- return /* @__PURE__ */ jsxs4("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
1591
- /* @__PURE__ */ jsx4("rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2" }),
1592
- /* @__PURE__ */ jsx4("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
1655
+ return /* @__PURE__ */ jsxs5("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
1656
+ /* @__PURE__ */ jsx5("rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2" }),
1657
+ /* @__PURE__ */ jsx5("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
1593
1658
  ] });
1594
1659
  }
1595
1660
  function GearGlyph({ className }) {
1596
- return /* @__PURE__ */ jsxs4("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
1597
- /* @__PURE__ */ jsx4("circle", { cx: "12", cy: "12", r: "3" }),
1598
- /* @__PURE__ */ jsx4("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1Z" })
1661
+ return /* @__PURE__ */ jsxs5("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
1662
+ /* @__PURE__ */ jsx5("circle", { cx: "12", cy: "12", r: "3" }),
1663
+ /* @__PURE__ */ jsx5("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1Z" })
1599
1664
  ] });
1600
1665
  }
1601
1666
  var FOCUS_RING = "";
@@ -1607,8 +1672,8 @@ function HarnessPicker({
1607
1672
  lockReason,
1608
1673
  variant = "chip"
1609
1674
  }) {
1610
- const [open, setOpen] = useState4(false);
1611
- const [hintOpen, setHintOpen] = useState4(false);
1675
+ const [open, setOpen] = useState5(false);
1676
+ const [hintOpen, setHintOpen] = useState5(false);
1612
1677
  const { containerRef, triggerRef, panelRef, triggerProps } = usePopover(open, setOpen);
1613
1678
  const hintPanelRef = useRef4(null);
1614
1679
  const panelId = useId2();
@@ -1617,8 +1682,8 @@ function HarnessPicker({
1617
1682
  const options = available ?? Object.keys(HARNESS_LABELS);
1618
1683
  const showHint = () => setHintOpen(true);
1619
1684
  const hideHint = () => setHintOpen(false);
1620
- return /* @__PURE__ */ jsxs4("div", { ref: containerRef, className: pickerRootClass(fullWidth), children: [
1621
- /* @__PURE__ */ jsxs4(
1685
+ return /* @__PURE__ */ jsxs5("div", { ref: containerRef, className: pickerRootClass(fullWidth), children: [
1686
+ /* @__PURE__ */ jsxs5(
1622
1687
  "button",
1623
1688
  {
1624
1689
  type: "button",
@@ -1637,17 +1702,17 @@ function HarnessPicker({
1637
1702
  "data-state": !locked && open ? "open" : "closed",
1638
1703
  className: variant === "quiet" ? `${quietPickerTriggerClass({ interactive: !locked })} w-full justify-between` : `inline-flex min-h-[36px] w-full items-center justify-between gap-1.5 rounded-full border border-border bg-card px-3 py-1.5 text-sm font-medium text-foreground transition ${locked ? "cursor-default" : "hover:bg-accent"} ${FOCUS_RING}`,
1639
1704
  children: [
1640
- /* @__PURE__ */ jsxs4("span", { className: "flex min-w-0 items-center gap-1.5", children: [
1641
- /* @__PURE__ */ jsx4(HarnessGlyph, { harness: value, className: variant === "quiet" ? "h-4 w-4 shrink-0" : "h-4 w-4 shrink-0 text-foreground" }),
1642
- /* @__PURE__ */ jsx4("span", { className: "truncate", children: harnessLabel(value) })
1705
+ /* @__PURE__ */ jsxs5("span", { className: "flex min-w-0 items-center gap-1.5", children: [
1706
+ /* @__PURE__ */ jsx5(HarnessGlyph, { harness: value, className: variant === "quiet" ? "h-4 w-4 shrink-0" : "h-4 w-4 shrink-0 text-foreground" }),
1707
+ /* @__PURE__ */ jsx5("span", { className: "truncate", children: harnessLabel(value) })
1643
1708
  ] }),
1644
- locked ? /* @__PURE__ */ jsx4(LockGlyph, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ jsx4(ChevronDown, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" })
1709
+ locked ? /* @__PURE__ */ jsx5(LockGlyph, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ jsx5(ChevronDown, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" })
1645
1710
  ]
1646
1711
  }
1647
1712
  ),
1648
- locked && /* @__PURE__ */ jsxs4(Fragment2, { children: [
1649
- /* @__PURE__ */ jsx4("span", { id: reasonId, className: "sr-only", children: lockReason }),
1650
- /* @__PURE__ */ jsx4(
1713
+ locked && /* @__PURE__ */ jsxs5(Fragment2, { children: [
1714
+ /* @__PURE__ */ jsx5("span", { id: reasonId, className: "sr-only", children: lockReason }),
1715
+ /* @__PURE__ */ jsx5(
1651
1716
  PopoverSurface,
1652
1717
  {
1653
1718
  open: hintOpen,
@@ -1656,11 +1721,11 @@ function HarnessPicker({
1656
1721
  panelRef: hintPanelRef,
1657
1722
  matchTriggerWidth: fullWidth,
1658
1723
  className: `max-w-[248px] rounded-lg border border-card-edge bg-popover px-2.5 py-1.5 text-xs leading-snug text-muted-foreground ${OVERLAY_SHADOW}`,
1659
- children: /* @__PURE__ */ jsx4("span", { "aria-hidden": true, children: lockReason })
1724
+ children: /* @__PURE__ */ jsx5("span", { "aria-hidden": true, children: lockReason })
1660
1725
  }
1661
1726
  )
1662
1727
  ] }),
1663
- /* @__PURE__ */ jsx4(
1728
+ /* @__PURE__ */ jsx5(
1664
1729
  PopoverSurface,
1665
1730
  {
1666
1731
  open: !locked && open,
@@ -1670,7 +1735,7 @@ function HarnessPicker({
1670
1735
  panelRef,
1671
1736
  matchTriggerWidth: true,
1672
1737
  className: `max-h-64 min-w-[248px] overflow-y-auto rounded-xl border border-card-edge bg-popover p-1 ${OVERLAY_SHADOW}`,
1673
- children: options.map((h) => /* @__PURE__ */ jsxs4(
1738
+ children: options.map((h) => /* @__PURE__ */ jsxs5(
1674
1739
  "button",
1675
1740
  {
1676
1741
  type: "button",
@@ -1682,9 +1747,9 @@ function HarnessPicker({
1682
1747
  },
1683
1748
  className: `flex w-full items-center gap-2.5 rounded-md px-3 py-2 text-left text-sm transition ${FOCUS_RING} ${h === value ? "bg-primary/10 font-medium" : "hover:bg-accent"}`,
1684
1749
  children: [
1685
- /* @__PURE__ */ jsx4(HarnessGlyph, { harness: h, className: "h-4 w-4 shrink-0 text-foreground" }),
1686
- /* @__PURE__ */ jsx4("span", { className: "truncate", children: harnessLabel(h) }),
1687
- h === value && /* @__PURE__ */ jsx4(CheckGlyph, { className: "ml-auto h-3.5 w-3.5 shrink-0 text-primary" })
1750
+ /* @__PURE__ */ jsx5(HarnessGlyph, { harness: h, className: "h-4 w-4 shrink-0 text-foreground" }),
1751
+ /* @__PURE__ */ jsx5("span", { className: "truncate", children: harnessLabel(h) }),
1752
+ h === value && /* @__PURE__ */ jsx5(CheckGlyph, { className: "ml-auto h-3.5 w-3.5 shrink-0 text-primary" })
1688
1753
  ]
1689
1754
  },
1690
1755
  h
@@ -1725,15 +1790,17 @@ function AgentSessionControls(props) {
1725
1790
  harnessLockReason,
1726
1791
  variant = "chip",
1727
1792
  renderProviderBadge,
1728
- className
1793
+ className,
1794
+ profileControl,
1795
+ settingsSummary
1729
1796
  } = props;
1730
1797
  const { onModel, onHarness } = useCoherentHandlers(props);
1731
- const [open, setOpen] = useState4(false);
1798
+ const [open, setOpen] = useState5(false);
1732
1799
  const { containerRef: popoverRef, triggerRef, panelRef, triggerProps } = usePopover(open, setOpen);
1733
1800
  const panelId = useId2();
1734
1801
  const selectedModel = models.find((m) => m.id === model);
1735
1802
  const showEffort = selectedModel?.supportsReasoning ?? true;
1736
- const modelPicker = /* @__PURE__ */ jsx4(
1803
+ const modelPicker = /* @__PURE__ */ jsx5(
1737
1804
  ModelPicker,
1738
1805
  {
1739
1806
  value: model,
@@ -1744,10 +1811,30 @@ function AgentSessionControls(props) {
1744
1811
  variant
1745
1812
  }
1746
1813
  );
1814
+ if (layout === "grouped") {
1815
+ return /* @__PURE__ */ jsxs5(AgentSettingsPopover, { summary: settingsSummary ?? selectedModel?.name ?? model, className, children: [
1816
+ profileControl != null && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
1817
+ /* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-muted-foreground", children: "Profile" }),
1818
+ profileControl
1819
+ ] }),
1820
+ /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
1821
+ /* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-muted-foreground", children: "Model" }),
1822
+ modelPicker
1823
+ ] }),
1824
+ showHarness && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
1825
+ /* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-muted-foreground", children: "Agent backend" }),
1826
+ /* @__PURE__ */ jsx5(HarnessPicker, { value: harness, onChange: onHarness, available: availableHarnesses, lockReason: harnessLockReason, fullWidth: true, variant })
1827
+ ] }),
1828
+ showEffort && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
1829
+ /* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-muted-foreground", children: "Thinking" }),
1830
+ /* @__PURE__ */ jsx5(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, fullWidth: true, variant })
1831
+ ] })
1832
+ ] });
1833
+ }
1747
1834
  if (layout === "inline") {
1748
- return /* @__PURE__ */ jsxs4("div", { className: `flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 ${className ?? ""}`, children: [
1835
+ return /* @__PURE__ */ jsxs5("div", { className: `flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 ${className ?? ""}`, children: [
1749
1836
  modelPicker,
1750
- showHarness && /* @__PURE__ */ jsx4(
1837
+ showHarness && /* @__PURE__ */ jsx5(
1751
1838
  HarnessPicker,
1752
1839
  {
1753
1840
  value: harness,
@@ -1757,14 +1844,14 @@ function AgentSessionControls(props) {
1757
1844
  variant
1758
1845
  }
1759
1846
  ),
1760
- showEffort && /* @__PURE__ */ jsx4(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, variant })
1847
+ showEffort && /* @__PURE__ */ jsx5(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, variant })
1761
1848
  ] });
1762
1849
  }
1763
1850
  const hasAdvanced = showHarness || showEffort;
1764
- return /* @__PURE__ */ jsxs4("div", { className: `flex items-center gap-1.5 ${className ?? ""}`, children: [
1851
+ return /* @__PURE__ */ jsxs5("div", { className: `flex items-center gap-1.5 ${className ?? ""}`, children: [
1765
1852
  modelPicker,
1766
- hasAdvanced && /* @__PURE__ */ jsxs4("div", { ref: popoverRef, className: "relative inline-flex", children: [
1767
- /* @__PURE__ */ jsx4(
1853
+ hasAdvanced && /* @__PURE__ */ jsxs5("div", { ref: popoverRef, className: "relative inline-flex", children: [
1854
+ /* @__PURE__ */ jsx5(
1768
1855
  "button",
1769
1856
  {
1770
1857
  type: "button",
@@ -1774,10 +1861,10 @@ function AgentSessionControls(props) {
1774
1861
  title: "Model settings \u2014 pick the agent backend and how hard it thinks",
1775
1862
  className: `flex h-8 w-8 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground data-[state=open]:bg-muted ${FOCUS_RING}`,
1776
1863
  "data-state": open ? "open" : "closed",
1777
- children: /* @__PURE__ */ jsx4(GearGlyph, { className: "h-4 w-4" })
1864
+ children: /* @__PURE__ */ jsx5(GearGlyph, { className: "h-4 w-4" })
1778
1865
  }
1779
1866
  ),
1780
- /* @__PURE__ */ jsxs4(
1867
+ /* @__PURE__ */ jsxs5(
1781
1868
  PopoverSurface,
1782
1869
  {
1783
1870
  open,
@@ -1786,9 +1873,9 @@ function AgentSessionControls(props) {
1786
1873
  panelRef,
1787
1874
  className: `w-72 space-y-3 overflow-y-auto rounded-xl border border-card-edge bg-popover p-3 ${OVERLAY_SHADOW}`,
1788
1875
  children: [
1789
- showHarness && /* @__PURE__ */ jsxs4("div", { className: "space-y-1.5", children: [
1790
- /* @__PURE__ */ jsx4("p", { className: "text-xs font-medium text-foreground", children: "Agent backend" }),
1791
- /* @__PURE__ */ jsx4(
1876
+ showHarness && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
1877
+ /* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-foreground", children: "Agent backend" }),
1878
+ /* @__PURE__ */ jsx5(
1792
1879
  HarnessPicker,
1793
1880
  {
1794
1881
  value: harness,
@@ -1799,12 +1886,12 @@ function AgentSessionControls(props) {
1799
1886
  variant
1800
1887
  }
1801
1888
  ),
1802
- /* @__PURE__ */ jsx4("p", { className: "text-xs leading-snug text-muted-foreground", children: "The engine that runs the agent. Switching it keeps your model choice compatible." })
1889
+ /* @__PURE__ */ jsx5("p", { className: "text-xs leading-snug text-muted-foreground", children: "The engine that runs the agent. Switching it keeps your model choice compatible." })
1803
1890
  ] }),
1804
- showEffort && /* @__PURE__ */ jsxs4("div", { className: "space-y-1.5", children: [
1805
- /* @__PURE__ */ jsx4("p", { className: "text-xs font-medium text-foreground", children: "Thinking" }),
1806
- /* @__PURE__ */ jsx4(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, label: "", fullWidth: true, variant }),
1807
- /* @__PURE__ */ jsx4("p", { className: "text-xs leading-snug text-muted-foreground", children: "How hard the agent thinks before answering. Higher is slower but more thorough." })
1891
+ showEffort && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
1892
+ /* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-foreground", children: "Thinking" }),
1893
+ /* @__PURE__ */ jsx5(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, label: "", fullWidth: true, variant }),
1894
+ /* @__PURE__ */ jsx5("p", { className: "text-xs leading-snug text-muted-foreground", children: "How hard the agent thinks before answering. Higher is slower but more thorough." })
1808
1895
  ] })
1809
1896
  ]
1810
1897
  }
@@ -1814,13 +1901,13 @@ function AgentSessionControls(props) {
1814
1901
  }
1815
1902
 
1816
1903
  // src/web-react/composer-mode-controls.tsx
1817
- import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
1904
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
1818
1905
  function ListChecksGlyph({ className }) {
1819
- return /* @__PURE__ */ jsx5("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx5("path", { d: "m3 17 2 2 4-4M3 7l2 2 4-4M13 6h8M13 12h8M13 18h8" }) });
1906
+ return /* @__PURE__ */ jsx6("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx6("path", { d: "m3 17 2 2 4-4M3 7l2 2 4-4M13 6h8M13 12h8M13 18h8" }) });
1820
1907
  }
1821
1908
  function ComposerModeControls({ planMode }) {
1822
1909
  if (!planMode) return null;
1823
- return /* @__PURE__ */ jsxs5(
1910
+ return /* @__PURE__ */ jsxs6(
1824
1911
  "button",
1825
1912
  {
1826
1913
  type: "button",
@@ -1837,7 +1924,7 @@ function ComposerModeControls({ planMode }) {
1837
1924
  planMode.saving && "opacity-60"
1838
1925
  ),
1839
1926
  children: [
1840
- /* @__PURE__ */ jsx5(ListChecksGlyph, { className: "h-3.5 w-3.5" }),
1927
+ /* @__PURE__ */ jsx6(ListChecksGlyph, { className: "h-3.5 w-3.5" }),
1841
1928
  "Plan"
1842
1929
  ]
1843
1930
  }
@@ -1845,8 +1932,8 @@ function ComposerModeControls({ planMode }) {
1845
1932
  }
1846
1933
 
1847
1934
  // src/web-react/entry-composer.tsx
1848
- import { useState as useState5 } from "react";
1849
- import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
1935
+ import { useState as useState6 } from "react";
1936
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
1850
1937
  function EntryComposer({
1851
1938
  heading,
1852
1939
  subheading,
@@ -1870,7 +1957,7 @@ function EntryComposer({
1870
1957
  composerClassName,
1871
1958
  maxWidth = 820
1872
1959
  }) {
1873
- const [value, setValue] = useState5(initialValue);
1960
+ const [value, setValue] = useState6(initialValue);
1874
1961
  const attachments = useComposerAttachments({
1875
1962
  uploadUrl,
1876
1963
  enabled: !!uploadUrl,
@@ -1890,14 +1977,14 @@ function EntryComposer({
1890
1977
  attachments.clear();
1891
1978
  mentions?.clearMentions();
1892
1979
  }
1893
- return /* @__PURE__ */ jsx6(
1980
+ return /* @__PURE__ */ jsx7(
1894
1981
  "div",
1895
1982
  {
1896
- className: className ?? "relative flex flex-1 flex-col items-center justify-center overflow-hidden bg-background px-5",
1897
- children: /* @__PURE__ */ jsxs6("div", { className: "w-full", style: { maxWidth }, children: [
1898
- heading ? /* @__PURE__ */ jsx6("h2", { className: "mb-4 text-center text-[1.75rem] font-medium tracking-tight text-foreground", children: heading }) : null,
1899
- subheading ? /* @__PURE__ */ jsx6("p", { className: "mx-auto mb-9 max-w-md text-center text-sm leading-relaxed text-muted-foreground", children: subheading }) : heading ? /* @__PURE__ */ jsx6("div", { className: "mb-7" }) : null,
1900
- /* @__PURE__ */ jsx6(
1983
+ className: className ?? "relative flex min-h-0 flex-1 flex-col items-center overflow-y-auto bg-background px-5 py-8",
1984
+ children: /* @__PURE__ */ jsxs7("div", { className: "my-auto w-full shrink-0", style: { maxWidth }, children: [
1985
+ heading ? /* @__PURE__ */ jsx7("h2", { className: "mb-4 text-center text-[1.75rem] font-medium tracking-tight text-foreground", children: heading }) : null,
1986
+ subheading ? /* @__PURE__ */ jsx7("p", { className: "mx-auto mb-9 max-w-md text-center text-sm leading-relaxed text-muted-foreground", children: subheading }) : heading ? /* @__PURE__ */ jsx7("div", { className: "mb-7" }) : null,
1987
+ /* @__PURE__ */ jsx7(
1901
1988
  ChatComposer,
1902
1989
  {
1903
1990
  className: composerClassName ?? "vt-composer",
@@ -1924,11 +2011,11 @@ function EntryComposer({
1924
2011
  // brighter overlay tone the component defaults to.
1925
2012
  popoverClassName: mentionPopoverClassName ?? "bg-surface-container-low border-[var(--md3-outline-variant)]"
1926
2013
  } : void 0,
1927
- controls: modes ?? /* @__PURE__ */ jsx6(ComposerModeControls, { planMode }),
1928
- trailing: agent ? /* @__PURE__ */ jsx6(AgentSessionControls, { ...agent }) : void 0
2014
+ controls: modes ?? /* @__PURE__ */ jsx7(ComposerModeControls, { planMode }),
2015
+ trailing: agent ? /* @__PURE__ */ jsx7(AgentSessionControls, { ...agent }) : void 0
1929
2016
  }
1930
2017
  ),
1931
- footer ? /* @__PURE__ */ jsx6("div", { className: "mt-7", children: footer }) : null
2018
+ footer ? /* @__PURE__ */ jsx7("div", { className: "mt-7", children: footer }) : null
1932
2019
  ] })
1933
2020
  }
1934
2021
  );
@@ -1947,8 +2034,9 @@ export {
1947
2034
  ChatComposer,
1948
2035
  useComposerAttachments,
1949
2036
  HarnessGlyph,
2037
+ AgentSettingsPopover,
1950
2038
  AgentSessionControls,
1951
2039
  ComposerModeControls,
1952
2040
  EntryComposer
1953
2041
  };
1954
- //# sourceMappingURL=chunk-EV5UI4VH.js.map
2042
+ //# sourceMappingURL=chunk-36ZV7KIP.js.map