@inf-monkeys-tech/monkeys-design 1.0.76-canary.238.1.2006f3f → 1.0.76

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,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile, AgentWorkbenchQuickStartViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
3
3
  export { AgentWorkbenchQuickStartCategory, AgentWorkbenchQuickStartIcon, AgentWorkbenchQuickStartSection, AgentWorkbenchQuickStartTemplate, AgentWorkbenchQuickStartViewModel } from '@inf-monkeys-tech/monkeys';
4
- import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-90adf27b0674.mjs';
5
- export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, L as AgentWorkbenchApproval, M as AgentWorkbenchApprovalData, N as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, O as AgentWorkbenchExploreCardMedia, P as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, Q as AgentWorkbenchExploreMediaTreatment, R as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarContainer, w as AgentWorkbenchSidebarContainerBodyProps, x as AgentWorkbenchSidebarContainerClassNames, y as AgentWorkbenchSidebarContainerProps, z as AgentWorkbenchSidebarIntent, B as AgentWorkbenchSidebarProps, C as AgentWorkbenchTaskDetails, D as AgentWorkbenchTaskDetailsClassNames, E as AgentWorkbenchTaskDetailsProps, F as AgentWorkbenchTerminalModel, G as AgentWorkbenchTool, H as AgentWorkbenchToolClassNames, I as AgentWorkbenchToolProps, J as createAgentWorkbenchActivityModel, K as createAgentWorkbenchDetailsModel } from '../../details-model-90adf27b0674.mjs';
4
+ import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-36bc59186950.mjs';
5
+ export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, L as AgentWorkbenchApproval, M as AgentWorkbenchApprovalData, N as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, O as AgentWorkbenchExploreCardMedia, P as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, Q as AgentWorkbenchExploreMediaTreatment, R as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarContainer, w as AgentWorkbenchSidebarContainerBodyProps, x as AgentWorkbenchSidebarContainerClassNames, y as AgentWorkbenchSidebarContainerProps, z as AgentWorkbenchSidebarIntent, B as AgentWorkbenchSidebarProps, C as AgentWorkbenchTaskDetails, D as AgentWorkbenchTaskDetailsClassNames, E as AgentWorkbenchTaskDetailsProps, F as AgentWorkbenchTerminalModel, G as AgentWorkbenchTool, H as AgentWorkbenchToolClassNames, I as AgentWorkbenchToolProps, J as createAgentWorkbenchActivityModel, K as createAgentWorkbenchDetailsModel } from '../../details-model-36bc59186950.mjs';
6
6
  import * as React from 'react';
7
7
  import { ReactNode, HTMLAttributes, ButtonHTMLAttributes, ComponentType } from 'react';
8
8
  type AgentWorkbenchComposerIntent = {
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile, AgentWorkbenchQuickStartViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
3
3
  export { AgentWorkbenchQuickStartCategory, AgentWorkbenchQuickStartIcon, AgentWorkbenchQuickStartSection, AgentWorkbenchQuickStartTemplate, AgentWorkbenchQuickStartViewModel } from '@inf-monkeys-tech/monkeys';
4
- import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-90adf27b0674.js';
5
- export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, L as AgentWorkbenchApproval, M as AgentWorkbenchApprovalData, N as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, O as AgentWorkbenchExploreCardMedia, P as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, Q as AgentWorkbenchExploreMediaTreatment, R as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarContainer, w as AgentWorkbenchSidebarContainerBodyProps, x as AgentWorkbenchSidebarContainerClassNames, y as AgentWorkbenchSidebarContainerProps, z as AgentWorkbenchSidebarIntent, B as AgentWorkbenchSidebarProps, C as AgentWorkbenchTaskDetails, D as AgentWorkbenchTaskDetailsClassNames, E as AgentWorkbenchTaskDetailsProps, F as AgentWorkbenchTerminalModel, G as AgentWorkbenchTool, H as AgentWorkbenchToolClassNames, I as AgentWorkbenchToolProps, J as createAgentWorkbenchActivityModel, K as createAgentWorkbenchDetailsModel } from '../../details-model-90adf27b0674.js';
4
+ import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-36bc59186950.js';
5
+ export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, L as AgentWorkbenchApproval, M as AgentWorkbenchApprovalData, N as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, O as AgentWorkbenchExploreCardMedia, P as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, Q as AgentWorkbenchExploreMediaTreatment, R as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarContainer, w as AgentWorkbenchSidebarContainerBodyProps, x as AgentWorkbenchSidebarContainerClassNames, y as AgentWorkbenchSidebarContainerProps, z as AgentWorkbenchSidebarIntent, B as AgentWorkbenchSidebarProps, C as AgentWorkbenchTaskDetails, D as AgentWorkbenchTaskDetailsClassNames, E as AgentWorkbenchTaskDetailsProps, F as AgentWorkbenchTerminalModel, G as AgentWorkbenchTool, H as AgentWorkbenchToolClassNames, I as AgentWorkbenchToolProps, J as createAgentWorkbenchActivityModel, K as createAgentWorkbenchDetailsModel } from '../../details-model-36bc59186950.js';
6
6
  import * as React from 'react';
7
7
  import { ReactNode, HTMLAttributes, ButtonHTMLAttributes, ComponentType } from 'react';
8
8
  type AgentWorkbenchComposerIntent = {
@@ -15,7 +15,6 @@ var TabsPrimitive = require('@radix-ui/react-tabs');
15
15
  var TooltipPrimitive = require('@radix-ui/react-tooltip');
16
16
  var classVarianceAuthority = require('class-variance-authority');
17
17
  var SelectPrimitive = require('@radix-ui/react-select');
18
- var monkeys = require('@inf-monkeys-tech/monkeys');
19
18
  var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
20
19
  var core = require('@dnd-kit/core');
21
20
  var sortable = require('@dnd-kit/sortable');
@@ -1611,8 +1610,7 @@ function SessionActions({
1611
1610
  }
1612
1611
  function AgentWorkbenchSidebar({
1613
1612
  viewModel,
1614
- navigationMode,
1615
- config,
1613
+ navigationMode = "agents-and-sessions",
1616
1614
  header,
1617
1615
  headerActions,
1618
1616
  footer,
@@ -1622,11 +1620,7 @@ function AgentWorkbenchSidebar({
1622
1620
  }) {
1623
1621
  const { locale } = useMonkeysLocale();
1624
1622
  const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
1625
- const resolvedConfig = React5.useMemo(() => monkeys.resolveAgentWorkbenchSidebarConfig(config), [config]);
1626
- const visibleSections = React5.useMemo(() => new Set(resolvedConfig.visibleSections), [resolvedConfig.visibleSections]);
1627
- const sessionsOnly = navigationMode === "sessions-only" || navigationMode === void 0 && resolvedConfig.navigationMode !== "default";
1628
- const showAgents = visibleSections.has("agents") && !sessionsOnly;
1629
- const showSessions = visibleSections.has("sessions");
1623
+ const sessionsOnly = navigationMode === "sessions-only";
1630
1624
  const searchRef = React5.useRef(null);
1631
1625
  const renameInputRef = React5.useRef(null);
1632
1626
  const [editingSessionId, setEditingSessionId] = React5.useState();
@@ -1726,7 +1720,7 @@ function AgentWorkbenchSidebar({
1726
1720
  return /* @__PURE__ */ jsxRuntime.jsx(
1727
1721
  Tabs,
1728
1722
  {
1729
- value: sessionsOnly || !showAgents ? "sessions" : viewModel.activeTab,
1723
+ value: sessionsOnly ? "sessions" : viewModel.activeTab,
1730
1724
  onValueChange: (value) => {
1731
1725
  if (!sessionsOnly && (value === "agents" || value === "sessions")) onIntent?.({ type: "change-tab", tab: value });
1732
1726
  },
@@ -1734,10 +1728,9 @@ function AgentWorkbenchSidebar({
1734
1728
  children: /* @__PURE__ */ jsxRuntime.jsxs(
1735
1729
  AgentWorkbenchSidebarContainer,
1736
1730
  {
1737
- "data-sidebar-width-percent": resolvedConfig.widthPercent,
1738
1731
  "aria-label": messages.tabsLabel,
1739
- header: visibleSections.has("header") ? header : void 0,
1740
- search: visibleSections.has("search") ? /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: cn2("h-10 rounded-lg bg-card", classNames?.search), children: [
1732
+ header,
1733
+ search: /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: cn2("h-10 rounded-lg bg-card", classNames?.search), children: [
1741
1734
  /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4", "aria-hidden": "true" }) }),
1742
1735
  /* @__PURE__ */ jsxRuntime.jsx(
1743
1736
  InputGroupInput,
@@ -1757,15 +1750,15 @@ function AgentWorkbenchSidebar({
1757
1750
  }
1758
1751
  ),
1759
1752
  viewModel.searchQuery ? /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx(InputGroupButton, { size: "icon-xs", "aria-label": messages.clearSearch, onClick: () => onIntent?.({ type: "change-search", query: "" }), children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-3.5", "aria-hidden": "true" }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx("kbd", { className: "border border-border px-1.5 py-0.5 text-[10px]", children: "Ctrl K" }) })
1760
- ] }) : void 0,
1761
- actions: showAgents && showSessions || headerActions ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1762
- showAgents && showSessions ? /* @__PURE__ */ jsxRuntime.jsxs(TabsList, { className: cn2("grid min-w-0 flex-1 grid-cols-2 text-foreground", classNames?.tabs), "aria-label": messages.tabsLabel, children: [
1753
+ ] }),
1754
+ actions: !sessionsOnly || headerActions ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1755
+ !sessionsOnly ? /* @__PURE__ */ jsxRuntime.jsxs(TabsList, { className: cn2("grid min-w-0 flex-1 grid-cols-2 text-foreground", classNames?.tabs), "aria-label": messages.tabsLabel, children: [
1763
1756
  /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "agents", children: messages.agents }),
1764
1757
  /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "sessions", children: messages.sessions })
1765
1758
  ] }) : null,
1766
1759
  headerActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
1767
1760
  ] }) : void 0,
1768
- footer: visibleSections.has("footer") && (!sessionsOnly && viewModel.capabilities.manageAgentSettings || footer) ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("border-t border-border p-4", classNames?.footer), children: [
1761
+ footer: !sessionsOnly && viewModel.capabilities.manageAgentSettings || footer ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("border-t border-border p-4", classNames?.footer), children: [
1769
1762
  !sessionsOnly && viewModel.capabilities.manageAgentSettings ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "h-10 w-full justify-start gap-2 px-3 text-sm", onClick: () => onIntent?.({ type: "open-agent-settings" }), children: [
1770
1763
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "size-4", "aria-hidden": "true" }),
1771
1764
  messages.settings
@@ -1776,7 +1769,7 @@ function AgentWorkbenchSidebar({
1776
1769
  className,
1777
1770
  classNames: { root: classNames?.root, body: "flex min-h-0 flex-1 flex-col p-0" },
1778
1771
  children: [
1779
- showAgents ? /* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "agents", "data-agent-workbench-scroll-region": true, className: cn2("mt-0 min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain px-4 pb-4", classNames?.body), children: [
1772
+ !sessionsOnly ? /* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "agents", "data-agent-workbench-scroll-region": true, className: cn2("mt-0 min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain px-4 pb-4", classNames?.body), children: [
1780
1773
  viewModel.capabilities.createAgent ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "mb-3 h-9 w-full justify-start gap-2 px-3 text-sm", onClick: () => onIntent?.({ type: "create-agent" }), children: [
1781
1774
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4", "aria-hidden": "true" }),
1782
1775
  messages.newAgent
@@ -1824,8 +1817,8 @@ function AgentWorkbenchSidebar({
1824
1817
  item.id
1825
1818
  )) })
1826
1819
  ] }) : null,
1827
- showSessions ? /* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "sessions", "data-agent-workbench-scroll-region": true, className: cn2("mt-0 min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain px-4 pb-4", classNames?.body), children: [
1828
- visibleSections.has("new-session") && viewModel.capabilities.createSession ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "h-9 w-full justify-start gap-2 px-3 text-sm", onClick: () => onIntent?.({ type: "create-session" }), children: [
1820
+ /* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "sessions", "data-agent-workbench-scroll-region": true, className: cn2("mt-0 min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain px-4 pb-4", classNames?.body), children: [
1821
+ viewModel.capabilities.createSession ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "h-9 w-full justify-start gap-2 px-3 text-sm", onClick: () => onIntent?.({ type: "create-session" }), children: [
1829
1822
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
1830
1823
  messages.newSession
1831
1824
  ] }) : null,
@@ -1845,7 +1838,7 @@ function AgentWorkbenchSidebar({
1845
1838
  ] }),
1846
1839
  renderSessionItems(items)
1847
1840
  ] }, id)) }) : !sessionsOnly ? renderSessionItems(sessions) : null
1848
- ] }) : null
1841
+ ] })
1849
1842
  ]
1850
1843
  }
1851
1844
  )
@@ -1903,8 +1896,7 @@ function AgentWorkbenchExploreCardMedia({
1903
1896
  }
1904
1897
  function AgentWorkbenchExploreSidebar({
1905
1898
  sessions,
1906
- groups: configuredGroups,
1907
- config,
1899
+ groups,
1908
1900
  labels,
1909
1901
  selectedSessionId,
1910
1902
  searchQuery = "",
@@ -1921,15 +1913,8 @@ function AgentWorkbenchExploreSidebar({
1921
1913
  }) {
1922
1914
  const navigationMessages = useMonkeysLocaleMessages().agentWorkbench.navigation;
1923
1915
  const searchRef = React5.useRef(null);
1924
- const resolvedConfig = React5.useMemo(() => monkeys.resolveAgentWorkbenchSidebarConfig(config), [config]);
1925
- const visibleSections = React5.useMemo(
1926
- () => new Set(resolvedConfig.visibleSections),
1927
- [resolvedConfig.visibleSections]
1928
- );
1929
- const groups = configuredGroups?.length ? configuredGroups : resolvedConfig.groups;
1930
- const resolvedDefaultGroupId = defaultGroupId ?? resolvedConfig.defaultGroupId;
1931
1916
  const [activeGroupId, setActiveGroupId] = React5.useState(
1932
- resolvedDefaultGroupId ?? groups[0]?.id ?? ""
1917
+ defaultGroupId ?? groups[0]?.id ?? ""
1933
1918
  );
1934
1919
  const activeGroup = groups.find((group) => group.id === activeGroupId) ?? groups[0];
1935
1920
  const normalizedQuery = searchQuery.trim().toLocaleLowerCase();
@@ -1942,8 +1927,8 @@ function AgentWorkbenchExploreSidebar({
1942
1927
  );
1943
1928
  React5.useEffect(() => {
1944
1929
  if (groups.some((group) => group.id === activeGroupId)) return;
1945
- setActiveGroupId(resolvedDefaultGroupId ?? groups[0]?.id ?? "");
1946
- }, [activeGroupId, groups, resolvedDefaultGroupId]);
1930
+ setActiveGroupId(defaultGroupId ?? groups[0]?.id ?? "");
1931
+ }, [activeGroupId, defaultGroupId, groups]);
1947
1932
  React5.useEffect(() => {
1948
1933
  const handleShortcut = (event) => {
1949
1934
  if (!(event.ctrlKey || event.metaKey) || event.key.toLocaleLowerCase() !== "k")
@@ -1959,8 +1944,8 @@ function AgentWorkbenchExploreSidebar({
1959
1944
  setActiveGroupId(groupId);
1960
1945
  onIntent?.({ type: "change-group", groupId });
1961
1946
  };
1962
- const state = !visibleSections.has("sessions") ? "ready" : error ? "error" : loading && sessions.length === 0 ? "loading" : filteredSessions.length === 0 && !draftVisible ? "empty" : "ready";
1963
- const groupNavigation = visibleSections.has("groups") && activeGroup ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-border px-4 pb-4 pt-3", children: /* @__PURE__ */ jsxRuntime.jsxs(Tabs, { value: activeGroup.id, onValueChange: changeGroup, children: [
1947
+ const state = error ? "error" : loading && sessions.length === 0 ? "loading" : filteredSessions.length === 0 && !draftVisible ? "empty" : "ready";
1948
+ const groupNavigation = activeGroup ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-border px-4 pb-4 pt-3", children: /* @__PURE__ */ jsxRuntime.jsxs(Tabs, { value: activeGroup.id, onValueChange: changeGroup, children: [
1964
1949
  /* @__PURE__ */ jsxRuntime.jsx(
1965
1950
  TabsList,
1966
1951
  {
@@ -1994,10 +1979,9 @@ function AgentWorkbenchExploreSidebar({
1994
1979
  AgentWorkbenchSidebarContainer,
1995
1980
  {
1996
1981
  "data-sidebar-style": "explore",
1997
- "data-sidebar-width-percent": resolvedConfig.widthPercent,
1998
1982
  "aria-label": labels.navigation,
1999
- header: visibleSections.has("header") ? header : void 0,
2000
- search: visibleSections.has("search") ? /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: "h-12 rounded-[var(--radius)] border-border bg-card text-foreground", children: [
1983
+ header,
1984
+ search: /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: "h-12 rounded-[var(--radius)] border-border bg-card text-foreground", children: [
2001
1985
  /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }) }),
2002
1986
  /* @__PURE__ */ jsxRuntime.jsx(
2003
1987
  InputGroupInput,
@@ -2012,8 +1996,8 @@ function AgentWorkbenchExploreSidebar({
2012
1996
  }
2013
1997
  ),
2014
1998
  /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx("kbd", { className: "rounded-sm border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: "Ctrl K" }) })
2015
- ] }) : void 0,
2016
- primaryAction: visibleSections.has("new-session") ? /* @__PURE__ */ jsxRuntime.jsxs(
1999
+ ] }),
2000
+ primaryAction: /* @__PURE__ */ jsxRuntime.jsxs(
2017
2001
  Button,
2018
2002
  {
2019
2003
  type: "button",
@@ -2024,9 +2008,9 @@ function AgentWorkbenchExploreSidebar({
2024
2008
  labels.newSession
2025
2009
  ]
2026
2010
  }
2027
- ) : void 0,
2011
+ ),
2028
2012
  groups: groupNavigation,
2029
- footer: visibleSections.has("footer") ? footer : void 0,
2013
+ footer,
2030
2014
  status: state,
2031
2015
  loadingState: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-24 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-5 animate-spin" }) }),
2032
2016
  emptyState: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-8 text-center text-sm text-muted-foreground", children: normalizedQuery ? labels.noResults : labels.emptySessions }),
@@ -2041,7 +2025,7 @@ function AgentWorkbenchExploreSidebar({
2041
2025
  bodyProps: { "data-agent-workbench-session-scroll-region": "" },
2042
2026
  className,
2043
2027
  classNames: { body: "min-h-[160px] flex-[0_1_280px] px-4 pb-3" },
2044
- children: visibleSections.has("sessions") ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2028
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2045
2029
  draftVisible ? /* @__PURE__ */ jsxRuntime.jsx(
2046
2030
  "button",
2047
2031
  {
@@ -2099,7 +2083,7 @@ function AgentWorkbenchExploreSidebar({
2099
2083
  },
2100
2084
  session.id
2101
2085
  ))
2102
- ] }) : null
2086
+ ] })
2103
2087
  }
2104
2088
  );
2105
2089
  }