@tangle-network/agent-app 0.46.34 → 0.46.36

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.
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  ChatEmptyState,
3
3
  ChatMessages
4
- } from "../chunk-JAYKCWW4.js";
5
- import "../chunk-KKBTPZIE.js";
4
+ } from "../chunk-CYSN24KI.js";
5
+ import "../chunk-4XWVCO7P.js";
6
6
  import "../chunk-3HUFJ5LO.js";
7
7
  import "../chunk-FBVLEGEG.js";
8
8
  import "../chunk-ENLRJYVW.js";
9
9
  import "../chunk-GEYACSFW.js";
10
10
  import {
11
11
  ChatComposer
12
- } from "../chunk-MWEX2M6M.js";
12
+ } from "../chunk-7NP744YO.js";
13
13
  import "../chunk-L7MB2LLM.js";
14
14
  import {
15
15
  ModelPicker
16
- } from "../chunk-YDOQE47G.js";
16
+ } from "../chunk-PYDMEYWA.js";
17
17
  import "../chunk-BATKJP3P.js";
18
18
  import {
19
19
  AsyncView
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ComposerModeControls,
3
3
  EntryComposer
4
- } from "../chunk-MWEX2M6M.js";
4
+ } from "../chunk-7NP744YO.js";
5
5
  import "../chunk-L7MB2LLM.js";
6
- import "../chunk-YDOQE47G.js";
6
+ import "../chunk-PYDMEYWA.js";
7
7
  import "../chunk-EDTWGSQT.js";
8
8
  import "../chunk-YNMPMW3G.js";
9
9
  import "../chunk-KWXUBMXU.js";
@@ -2,7 +2,7 @@ import {
2
2
  OVERLAY_SHADOW,
3
3
  PopoverSurface,
4
4
  usePopover
5
- } from "./chunk-YDOQE47G.js";
5
+ } from "./chunk-PYDMEYWA.js";
6
6
  import {
7
7
  UNTITLED_SESSION_LABEL,
8
8
  mergeSessionPages,
@@ -802,4 +802,4 @@ export {
802
802
  formatSessionTimestamp,
803
803
  SessionHistoryPanel
804
804
  };
805
- //# sourceMappingURL=chunk-KKBTPZIE.js.map
805
+ //# sourceMappingURL=chunk-4XWVCO7P.js.map
@@ -9,8 +9,9 @@ import {
9
9
  POPOVER_OPTION_FOCUS,
10
10
  PopoverSurface,
11
11
  pickerRootClass,
12
+ quietPickerTriggerClass,
12
13
  usePopover
13
- } from "./chunk-YDOQE47G.js";
14
+ } from "./chunk-PYDMEYWA.js";
14
15
  import {
15
16
  filterCommandPaletteItems
16
17
  } from "./chunk-EDTWGSQT.js";
@@ -272,7 +273,7 @@ import {
272
273
  } from "react";
273
274
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
274
275
  function createLazyMentionEditor() {
275
- return lazy(() => import("./mention-editor-NDJAEMRP.js").then((m) => m.loadMentionEditor()));
276
+ return lazy(() => import("./mention-editor-CBLT6LE3.js").then((m) => m.loadMentionEditor()));
276
277
  }
277
278
  var MentionEditorBoundary = class extends Component {
278
279
  state = { failed: false };
@@ -1505,7 +1506,8 @@ function HarnessPicker({
1505
1506
  onChange,
1506
1507
  available,
1507
1508
  fullWidth = false,
1508
- lockReason
1509
+ lockReason,
1510
+ variant = "chip"
1509
1511
  }) {
1510
1512
  const [open, setOpen] = useState4(false);
1511
1513
  const [hintOpen, setHintOpen] = useState4(false);
@@ -1534,10 +1536,11 @@ function HarnessPicker({
1534
1536
  onFocus: locked ? showHint : void 0,
1535
1537
  onBlur: locked ? hideHint : void 0,
1536
1538
  title: "Agent backend",
1537
- className: `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}`,
1539
+ "data-state": !locked && open ? "open" : "closed",
1540
+ 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}`,
1538
1541
  children: [
1539
1542
  /* @__PURE__ */ jsxs3("span", { className: "flex min-w-0 items-center gap-1.5", children: [
1540
- /* @__PURE__ */ jsx3(HarnessGlyph, { harness: value, className: "h-4 w-4 shrink-0 text-foreground" }),
1543
+ /* @__PURE__ */ jsx3(HarnessGlyph, { harness: value, className: variant === "quiet" ? "h-4 w-4 shrink-0" : "h-4 w-4 shrink-0 text-foreground" }),
1541
1544
  /* @__PURE__ */ jsx3("span", { className: "truncate", children: harnessLabel(value) })
1542
1545
  ] }),
1543
1546
  locked ? /* @__PURE__ */ jsx3(LockGlyph, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ jsx3(ChevronDown, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" })
@@ -1622,6 +1625,7 @@ function AgentSessionControls(props) {
1622
1625
  layout = "inline",
1623
1626
  showHarness = true,
1624
1627
  harnessLockReason,
1628
+ variant = "chip",
1625
1629
  renderProviderBadge,
1626
1630
  className
1627
1631
  } = props;
@@ -1638,14 +1642,24 @@ function AgentSessionControls(props) {
1638
1642
  onChange: onModel,
1639
1643
  models,
1640
1644
  loading: modelsLoading,
1641
- renderProviderBadge
1645
+ renderProviderBadge,
1646
+ variant
1642
1647
  }
1643
1648
  );
1644
1649
  if (layout === "inline") {
1645
1650
  return /* @__PURE__ */ jsxs3("div", { className: `flex items-center gap-1.5 ${className ?? ""}`, children: [
1646
1651
  modelPicker,
1647
- showHarness && /* @__PURE__ */ jsx3(HarnessPicker, { value: harness, onChange: onHarness, available: availableHarnesses, lockReason: harnessLockReason }),
1648
- showEffort && /* @__PURE__ */ jsx3(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels })
1652
+ showHarness && /* @__PURE__ */ jsx3(
1653
+ HarnessPicker,
1654
+ {
1655
+ value: harness,
1656
+ onChange: onHarness,
1657
+ available: availableHarnesses,
1658
+ lockReason: harnessLockReason,
1659
+ variant
1660
+ }
1661
+ ),
1662
+ showEffort && /* @__PURE__ */ jsx3(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, variant })
1649
1663
  ] });
1650
1664
  }
1651
1665
  const hasAdvanced = showHarness || showEffort;
@@ -1683,14 +1697,15 @@ function AgentSessionControls(props) {
1683
1697
  onChange: onHarness,
1684
1698
  available: availableHarnesses,
1685
1699
  fullWidth: true,
1686
- lockReason: harnessLockReason
1700
+ lockReason: harnessLockReason,
1701
+ variant
1687
1702
  }
1688
1703
  ),
1689
1704
  /* @__PURE__ */ jsx3("p", { className: "text-xs leading-snug text-muted-foreground", children: "The engine that runs the agent. Switching it keeps your model choice compatible." })
1690
1705
  ] }),
1691
1706
  showEffort && /* @__PURE__ */ jsxs3("div", { className: "space-y-1.5", children: [
1692
1707
  /* @__PURE__ */ jsx3("p", { className: "text-xs font-medium text-foreground", children: "Thinking" }),
1693
- /* @__PURE__ */ jsx3(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, label: "", fullWidth: true }),
1708
+ /* @__PURE__ */ jsx3(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, label: "", fullWidth: true, variant }),
1694
1709
  /* @__PURE__ */ jsx3("p", { className: "text-xs leading-snug text-muted-foreground", children: "How hard the agent thinks before answering. Higher is slower but more thorough." })
1695
1710
  ] })
1696
1711
  ]
@@ -1837,4 +1852,4 @@ export {
1837
1852
  ComposerModeControls,
1838
1853
  EntryComposer
1839
1854
  };
1840
- //# sourceMappingURL=chunk-MWEX2M6M.js.map
1855
+ //# sourceMappingURL=chunk-7NP744YO.js.map