@inf-monkeys-tech/monkeys-design 1.0.76 → 1.0.77

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-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';
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';
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-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';
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';
6
6
  import * as React from 'react';
7
7
  import { ReactNode, HTMLAttributes, ButtonHTMLAttributes, ComponentType } from 'react';
8
8
  type AgentWorkbenchComposerIntent = {
@@ -15,6 +15,7 @@ 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');
18
19
  var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
19
20
  var core = require('@dnd-kit/core');
20
21
  var sortable = require('@dnd-kit/sortable');
@@ -1610,7 +1611,8 @@ function SessionActions({
1610
1611
  }
1611
1612
  function AgentWorkbenchSidebar({
1612
1613
  viewModel,
1613
- navigationMode = "agents-and-sessions",
1614
+ navigationMode,
1615
+ config,
1614
1616
  header,
1615
1617
  headerActions,
1616
1618
  footer,
@@ -1620,7 +1622,11 @@ function AgentWorkbenchSidebar({
1620
1622
  }) {
1621
1623
  const { locale } = useMonkeysLocale();
1622
1624
  const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
1623
- const sessionsOnly = navigationMode === "sessions-only";
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");
1624
1630
  const searchRef = React5.useRef(null);
1625
1631
  const renameInputRef = React5.useRef(null);
1626
1632
  const [editingSessionId, setEditingSessionId] = React5.useState();
@@ -1720,7 +1726,7 @@ function AgentWorkbenchSidebar({
1720
1726
  return /* @__PURE__ */ jsxRuntime.jsx(
1721
1727
  Tabs,
1722
1728
  {
1723
- value: sessionsOnly ? "sessions" : viewModel.activeTab,
1729
+ value: sessionsOnly || !showAgents ? "sessions" : viewModel.activeTab,
1724
1730
  onValueChange: (value) => {
1725
1731
  if (!sessionsOnly && (value === "agents" || value === "sessions")) onIntent?.({ type: "change-tab", tab: value });
1726
1732
  },
@@ -1728,9 +1734,10 @@ function AgentWorkbenchSidebar({
1728
1734
  children: /* @__PURE__ */ jsxRuntime.jsxs(
1729
1735
  AgentWorkbenchSidebarContainer,
1730
1736
  {
1737
+ "data-sidebar-width-percent": resolvedConfig.widthPercent,
1731
1738
  "aria-label": messages.tabsLabel,
1732
- header,
1733
- search: /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: cn2("h-10 rounded-lg bg-card", classNames?.search), children: [
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: [
1734
1741
  /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4", "aria-hidden": "true" }) }),
1735
1742
  /* @__PURE__ */ jsxRuntime.jsx(
1736
1743
  InputGroupInput,
@@ -1750,15 +1757,15 @@ function AgentWorkbenchSidebar({
1750
1757
  }
1751
1758
  ),
1752
1759
  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" }) })
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: [
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: [
1756
1763
  /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "agents", children: messages.agents }),
1757
1764
  /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "sessions", children: messages.sessions })
1758
1765
  ] }) : null,
1759
1766
  headerActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
1760
1767
  ] }) : void 0,
1761
- footer: !sessionsOnly && viewModel.capabilities.manageAgentSettings || footer ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("border-t border-border p-4", classNames?.footer), children: [
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: [
1762
1769
  !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: [
1763
1770
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "size-4", "aria-hidden": "true" }),
1764
1771
  messages.settings
@@ -1769,7 +1776,7 @@ function AgentWorkbenchSidebar({
1769
1776
  className,
1770
1777
  classNames: { root: classNames?.root, body: "flex min-h-0 flex-1 flex-col p-0" },
1771
1778
  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: [
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: [
1773
1780
  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: [
1774
1781
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4", "aria-hidden": "true" }),
1775
1782
  messages.newAgent
@@ -1817,8 +1824,8 @@ function AgentWorkbenchSidebar({
1817
1824
  item.id
1818
1825
  )) })
1819
1826
  ] }) : null,
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: [
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: [
1822
1829
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
1823
1830
  messages.newSession
1824
1831
  ] }) : null,
@@ -1838,7 +1845,7 @@ function AgentWorkbenchSidebar({
1838
1845
  ] }),
1839
1846
  renderSessionItems(items)
1840
1847
  ] }, id)) }) : !sessionsOnly ? renderSessionItems(sessions) : null
1841
- ] })
1848
+ ] }) : null
1842
1849
  ]
1843
1850
  }
1844
1851
  )
@@ -1896,7 +1903,8 @@ function AgentWorkbenchExploreCardMedia({
1896
1903
  }
1897
1904
  function AgentWorkbenchExploreSidebar({
1898
1905
  sessions,
1899
- groups,
1906
+ groups: configuredGroups,
1907
+ config,
1900
1908
  labels,
1901
1909
  selectedSessionId,
1902
1910
  searchQuery = "",
@@ -1913,8 +1921,15 @@ function AgentWorkbenchExploreSidebar({
1913
1921
  }) {
1914
1922
  const navigationMessages = useMonkeysLocaleMessages().agentWorkbench.navigation;
1915
1923
  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;
1916
1931
  const [activeGroupId, setActiveGroupId] = React5.useState(
1917
- defaultGroupId ?? groups[0]?.id ?? ""
1932
+ resolvedDefaultGroupId ?? groups[0]?.id ?? ""
1918
1933
  );
1919
1934
  const activeGroup = groups.find((group) => group.id === activeGroupId) ?? groups[0];
1920
1935
  const normalizedQuery = searchQuery.trim().toLocaleLowerCase();
@@ -1927,8 +1942,8 @@ function AgentWorkbenchExploreSidebar({
1927
1942
  );
1928
1943
  React5.useEffect(() => {
1929
1944
  if (groups.some((group) => group.id === activeGroupId)) return;
1930
- setActiveGroupId(defaultGroupId ?? groups[0]?.id ?? "");
1931
- }, [activeGroupId, defaultGroupId, groups]);
1945
+ setActiveGroupId(resolvedDefaultGroupId ?? groups[0]?.id ?? "");
1946
+ }, [activeGroupId, groups, resolvedDefaultGroupId]);
1932
1947
  React5.useEffect(() => {
1933
1948
  const handleShortcut = (event) => {
1934
1949
  if (!(event.ctrlKey || event.metaKey) || event.key.toLocaleLowerCase() !== "k")
@@ -1944,8 +1959,8 @@ function AgentWorkbenchExploreSidebar({
1944
1959
  setActiveGroupId(groupId);
1945
1960
  onIntent?.({ type: "change-group", groupId });
1946
1961
  };
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: [
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: [
1949
1964
  /* @__PURE__ */ jsxRuntime.jsx(
1950
1965
  TabsList,
1951
1966
  {
@@ -1979,9 +1994,10 @@ function AgentWorkbenchExploreSidebar({
1979
1994
  AgentWorkbenchSidebarContainer,
1980
1995
  {
1981
1996
  "data-sidebar-style": "explore",
1997
+ "data-sidebar-width-percent": resolvedConfig.widthPercent,
1982
1998
  "aria-label": labels.navigation,
1983
- header,
1984
- search: /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: "h-12 rounded-[var(--radius)] border-border bg-card text-foreground", children: [
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: [
1985
2001
  /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }) }),
1986
2002
  /* @__PURE__ */ jsxRuntime.jsx(
1987
2003
  InputGroupInput,
@@ -1996,8 +2012,8 @@ function AgentWorkbenchExploreSidebar({
1996
2012
  }
1997
2013
  ),
1998
2014
  /* @__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" }) })
1999
- ] }),
2000
- primaryAction: /* @__PURE__ */ jsxRuntime.jsxs(
2015
+ ] }) : void 0,
2016
+ primaryAction: visibleSections.has("new-session") ? /* @__PURE__ */ jsxRuntime.jsxs(
2001
2017
  Button,
2002
2018
  {
2003
2019
  type: "button",
@@ -2008,9 +2024,9 @@ function AgentWorkbenchExploreSidebar({
2008
2024
  labels.newSession
2009
2025
  ]
2010
2026
  }
2011
- ),
2027
+ ) : void 0,
2012
2028
  groups: groupNavigation,
2013
- footer,
2029
+ footer: visibleSections.has("footer") ? footer : void 0,
2014
2030
  status: state,
2015
2031
  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" }) }),
2016
2032
  emptyState: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-8 text-center text-sm text-muted-foreground", children: normalizedQuery ? labels.noResults : labels.emptySessions }),
@@ -2025,7 +2041,7 @@ function AgentWorkbenchExploreSidebar({
2025
2041
  bodyProps: { "data-agent-workbench-session-scroll-region": "" },
2026
2042
  className,
2027
2043
  classNames: { body: "min-h-[160px] flex-[0_1_280px] px-4 pb-3" },
2028
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2044
+ children: visibleSections.has("sessions") ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2029
2045
  draftVisible ? /* @__PURE__ */ jsxRuntime.jsx(
2030
2046
  "button",
2031
2047
  {
@@ -2083,7 +2099,7 @@ function AgentWorkbenchExploreSidebar({
2083
2099
  },
2084
2100
  session.id
2085
2101
  ))
2086
- ] })
2102
+ ] }) : null
2087
2103
  }
2088
2104
  );
2089
2105
  }