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

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/index.js CHANGED
@@ -20,6 +20,7 @@ var SwitchPrimitive = require('@radix-ui/react-switch');
20
20
  var TabsPrimitive = require('@radix-ui/react-tabs');
21
21
  var classVarianceAuthority = require('class-variance-authority');
22
22
  var SelectPrimitive = require('@radix-ui/react-select');
23
+ var monkeys = require('@inf-monkeys-tech/monkeys');
23
24
  var core = require('@dnd-kit/core');
24
25
  var sonner = require('sonner');
25
26
 
@@ -18343,6 +18344,61 @@ var SelectSeparator = React4__namespace.forwardRef(
18343
18344
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props })
18344
18345
  );
18345
18346
  SelectSeparator.displayName = "SelectSeparator";
18347
+ var AgentWorkbenchSidebarContainer = React4.forwardRef(
18348
+ function AgentWorkbenchSidebarContainer2({
18349
+ children,
18350
+ header,
18351
+ search,
18352
+ primaryAction,
18353
+ actions,
18354
+ groups,
18355
+ footer,
18356
+ className,
18357
+ classNames,
18358
+ bodyProps,
18359
+ bodyScrollable = true,
18360
+ status = "ready",
18361
+ loadingState,
18362
+ emptyState,
18363
+ errorState,
18364
+ ...props
18365
+ }, ref) {
18366
+ const hasToolbar = search !== void 0 || primaryAction !== void 0 || actions !== void 0;
18367
+ const statusContent = status === "loading" ? loadingState : status === "empty" ? emptyState : status === "error" ? errorState : children;
18368
+ return /* @__PURE__ */ jsxRuntime.jsxs(
18369
+ "nav",
18370
+ {
18371
+ ref,
18372
+ className: cn2("flex h-full min-h-0 flex-col bg-background text-foreground", classNames?.root, className),
18373
+ ...props,
18374
+ children: [
18375
+ header !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("shrink-0", classNames?.header), children: header }) : null,
18376
+ hasToolbar ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("shrink-0 space-y-3 px-4 pb-2 pt-4", classNames?.search), children: [
18377
+ search,
18378
+ primaryAction !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(classNames?.primaryAction), children: primaryAction }) : null,
18379
+ actions !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("flex min-w-0 items-center gap-2", classNames?.actions), children: actions }) : null
18380
+ ] }) : null,
18381
+ /* @__PURE__ */ jsxRuntime.jsx(
18382
+ "div",
18383
+ {
18384
+ "data-agent-workbench-scroll-region": bodyScrollable ? "" : void 0,
18385
+ ...bodyProps,
18386
+ className: cn2(
18387
+ "min-h-0 flex-1 px-4 pb-4",
18388
+ bodyScrollable && "overflow-x-hidden overflow-y-auto overscroll-contain",
18389
+ classNames?.body
18390
+ ),
18391
+ children: statusContent
18392
+ }
18393
+ ),
18394
+ groups !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("shrink-0", classNames?.groups), children: groups }) : null,
18395
+ footer !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("shrink-0", classNames?.footer), children: footer }) : null
18396
+ ]
18397
+ }
18398
+ );
18399
+ }
18400
+ );
18401
+ AgentWorkbenchSidebarContainer.displayName = "AgentWorkbenchSidebarContainer";
18346
18402
  function ItemAvatar({ item }) {
18347
18403
  const [failed, setFailed] = React4.useState(false);
18348
18404
  if (item.iconUrl && !failed) {
@@ -18437,15 +18493,22 @@ function SessionActions({
18437
18493
  }
18438
18494
  function AgentWorkbenchSidebar({
18439
18495
  viewModel,
18440
- navigationMode = "agents-and-sessions",
18496
+ navigationMode,
18497
+ config,
18498
+ header,
18441
18499
  headerActions,
18500
+ footer,
18442
18501
  className,
18443
18502
  classNames,
18444
18503
  onIntent
18445
18504
  }) {
18446
18505
  const { locale } = useMonkeysLocale();
18447
18506
  const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
18448
- const sessionsOnly = navigationMode === "sessions-only";
18507
+ const resolvedConfig = React4.useMemo(() => monkeys.resolveAgentWorkbenchSidebarConfig(config), [config]);
18508
+ const visibleSections = React4.useMemo(() => new Set(resolvedConfig.visibleSections), [resolvedConfig.visibleSections]);
18509
+ const sessionsOnly = navigationMode === "sessions-only" || navigationMode === void 0 && resolvedConfig.navigationMode !== "default";
18510
+ const showAgents = visibleSections.has("agents") && !sessionsOnly;
18511
+ const showSessions = visibleSections.has("sessions");
18449
18512
  const searchRef = React4.useRef(null);
18450
18513
  const renameInputRef = React4.useRef(null);
18451
18514
  const [editingSessionId, setEditingSessionId] = React4.useState();
@@ -18542,17 +18605,21 @@ function AgentWorkbenchSidebar({
18542
18605
  ] })
18543
18606
  ] }, item.id);
18544
18607
  }) });
18545
- return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": messages.tabsLabel, className: cn2("h-full min-h-0", classNames?.root, className), children: /* @__PURE__ */ jsxRuntime.jsxs(
18608
+ return /* @__PURE__ */ jsxRuntime.jsx(
18546
18609
  Tabs,
18547
18610
  {
18548
- value: sessionsOnly ? "sessions" : viewModel.activeTab,
18611
+ value: sessionsOnly || !showAgents ? "sessions" : viewModel.activeTab,
18549
18612
  onValueChange: (value) => {
18550
18613
  if (!sessionsOnly && (value === "agents" || value === "sessions")) onIntent?.({ type: "change-tab", tab: value });
18551
18614
  },
18552
- className: "flex h-full min-h-0 flex-col bg-background text-foreground",
18553
- children: [
18554
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "shrink-0 space-y-3 p-4 pb-2", children: [
18555
- /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: cn2("h-10 rounded-lg bg-card", classNames?.search), children: [
18615
+ className: "h-full min-h-0",
18616
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
18617
+ AgentWorkbenchSidebarContainer,
18618
+ {
18619
+ "data-sidebar-width-percent": resolvedConfig.widthPercent,
18620
+ "aria-label": messages.tabsLabel,
18621
+ header: visibleSections.has("header") ? header : void 0,
18622
+ search: visibleSections.has("search") ? /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: cn2("h-10 rounded-lg bg-card", classNames?.search), children: [
18556
18623
  /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4", "aria-hidden": "true" }) }),
18557
18624
  /* @__PURE__ */ jsxRuntime.jsx(
18558
18625
  InputGroupInput,
@@ -18572,92 +18639,100 @@ function AgentWorkbenchSidebar({
18572
18639
  }
18573
18640
  ),
18574
18641
  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" }) })
18575
- ] }),
18576
- !sessionsOnly || headerActions ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
18577
- !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: [
18642
+ ] }) : void 0,
18643
+ actions: showAgents && showSessions || headerActions ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
18644
+ 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: [
18578
18645
  /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "agents", children: messages.agents }),
18579
18646
  /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "sessions", children: messages.sessions })
18580
18647
  ] }) : null,
18581
18648
  headerActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
18582
- ] }) : null
18583
- ] }),
18584
- !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: [
18585
- 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: [
18586
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4", "aria-hidden": "true" }),
18587
- messages.newAgent
18588
- ] }) : null,
18589
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 px-3 text-xs font-medium text-muted-foreground", children: messages.allAgents }),
18590
- /* @__PURE__ */ jsxRuntime.jsx(CollectionState, { status: viewModel.agents.status, empty: messages.emptyAgents, noResults: messages.noResults, hasItems: agents.length > 0, query, error: viewModel.agents.error, onRetry: () => onIntent?.({ type: "retry-agents" }) }),
18591
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1", children: agents.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
18592
- "div",
18593
- {
18594
- "aria-current": item.id === viewModel.selectedAgentItem ? "page" : void 0,
18595
- className: cn2("group flex w-full min-w-0 items-center gap-3 rounded-lg border border-transparent px-3 py-2 text-left hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-muted", classNames?.item),
18596
- children: [
18597
- /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", title: item.name, className: "flex min-w-0 flex-1 items-center gap-3 text-left", onClick: () => onIntent?.({ type: "select-agent", itemId: item.id }), children: [
18598
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(ItemAvatar, { item }) }),
18599
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
18600
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-sm font-medium", children: item.name }),
18601
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-xs text-foreground/80", children: item.description || messages.noDescription })
18602
- ] })
18603
- ] }),
18604
- item.builtIn ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-1 text-[10px] text-foreground", children: messages.builtIn }) : null,
18605
- viewModel.capabilities.pinAgents ? /* @__PURE__ */ jsxRuntime.jsx(
18606
- Button,
18607
- {
18608
- type: "button",
18609
- variant: "ghost",
18610
- size: "icon",
18611
- "aria-label": item.pinned ? messages.unpin : messages.pin,
18612
- className: cn2("size-8 text-muted-foreground opacity-0 group-hover:opacity-100", item.pinned && "text-primary opacity-100"),
18613
- onClick: (event) => {
18614
- event.stopPropagation();
18615
- onIntent?.({ type: "toggle-agent-pin", itemId: item.id, pinned: !item.pinned });
18616
- },
18617
- onKeyDown: (event) => {
18618
- if (event.key === "Enter" || event.key === " ") {
18619
- event.preventDefault();
18620
- event.stopPropagation();
18621
- onIntent?.({ type: "toggle-agent-pin", itemId: item.id, pinned: !item.pinned });
18649
+ ] }) : void 0,
18650
+ footer: visibleSections.has("footer") && (!sessionsOnly && viewModel.capabilities.manageAgentSettings || footer) ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("border-t border-border p-4", classNames?.footer), children: [
18651
+ !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: [
18652
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "size-4", "aria-hidden": "true" }),
18653
+ messages.settings
18654
+ ] }) : null,
18655
+ footer
18656
+ ] }) : void 0,
18657
+ bodyScrollable: false,
18658
+ className,
18659
+ classNames: { root: classNames?.root, body: "flex min-h-0 flex-1 flex-col p-0" },
18660
+ children: [
18661
+ 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: [
18662
+ 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: [
18663
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4", "aria-hidden": "true" }),
18664
+ messages.newAgent
18665
+ ] }) : null,
18666
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 px-3 text-xs font-medium text-muted-foreground", children: messages.allAgents }),
18667
+ /* @__PURE__ */ jsxRuntime.jsx(CollectionState, { status: viewModel.agents.status, empty: messages.emptyAgents, noResults: messages.noResults, hasItems: agents.length > 0, query, error: viewModel.agents.error, onRetry: () => onIntent?.({ type: "retry-agents" }) }),
18668
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1", children: agents.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
18669
+ "div",
18670
+ {
18671
+ "aria-current": item.id === viewModel.selectedAgentItem ? "page" : void 0,
18672
+ className: cn2("group flex w-full min-w-0 items-center gap-3 rounded-lg border border-transparent px-3 py-2 text-left hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-muted", classNames?.item),
18673
+ children: [
18674
+ /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", title: item.name, className: "flex min-w-0 flex-1 items-center gap-3 text-left", onClick: () => onIntent?.({ type: "select-agent", itemId: item.id }), children: [
18675
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(ItemAvatar, { item }) }),
18676
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
18677
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-sm font-medium", children: item.name }),
18678
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-xs text-foreground/80", children: item.description || messages.noDescription })
18679
+ ] })
18680
+ ] }),
18681
+ item.builtIn ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-1 text-[10px] text-foreground", children: messages.builtIn }) : null,
18682
+ viewModel.capabilities.pinAgents ? /* @__PURE__ */ jsxRuntime.jsx(
18683
+ Button,
18684
+ {
18685
+ type: "button",
18686
+ variant: "ghost",
18687
+ size: "icon",
18688
+ "aria-label": item.pinned ? messages.unpin : messages.pin,
18689
+ className: cn2("size-8 text-muted-foreground opacity-0 group-hover:opacity-100", item.pinned && "text-primary opacity-100"),
18690
+ onClick: (event) => {
18691
+ event.stopPropagation();
18692
+ onIntent?.({ type: "toggle-agent-pin", itemId: item.id, pinned: !item.pinned });
18693
+ },
18694
+ onKeyDown: (event) => {
18695
+ if (event.key === "Enter" || event.key === " ") {
18696
+ event.preventDefault();
18697
+ event.stopPropagation();
18698
+ onIntent?.({ type: "toggle-agent-pin", itemId: item.id, pinned: !item.pinned });
18699
+ }
18700
+ },
18701
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pin, { className: cn2("size-4", item.pinned && "fill-current", item.pinPending && "animate-pulse") })
18622
18702
  }
18623
- },
18624
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pin, { className: cn2("size-4", item.pinned && "fill-current", item.pinPending && "animate-pulse") })
18625
- }
18626
- ) : null
18627
- ]
18628
- },
18629
- item.id
18630
- )) })
18631
- ] }) : null,
18632
- /* @__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: [
18633
- 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: [
18634
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
18635
- messages.newSession
18636
- ] }) : null,
18637
- !sessionsOnly && viewModel.capabilities.manageCapabilities ? /* @__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: "open-capabilities" }), children: [
18638
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Blocks, { className: "size-4", "aria-hidden": "true" }),
18639
- messages.capabilities
18640
- ] }) : null,
18641
- !sessionsOnly ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 px-3 text-xs font-medium text-muted-foreground", children: messages.recentSessions }) : null,
18642
- /* @__PURE__ */ jsxRuntime.jsx(CollectionState, { status: viewModel.sessions.status, empty: messages.emptySessions, noResults: messages.noResults, hasItems: sessions.length > 0, query, error: viewModel.sessions.error, onRetry: () => onIntent?.({ type: "retry-sessions" }) }),
18643
- sessionsOnly && sessions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: [
18644
- { id: "chatbot", label: messages.chats, icon: lucideReact.MessageSquare, items: chatbotSessions },
18645
- { id: "agent", label: messages.agents, icon: lucideReact.Bot, items: agentSessions }
18646
- ].map(({ id, label, icon: Icon2, items }) => /* @__PURE__ */ jsxRuntime.jsxs("details", { open: true, "aria-label": label, children: [
18647
- /* @__PURE__ */ jsxRuntime.jsxs("summary", { className: "flex h-9 cursor-pointer list-none items-center gap-2 rounded-md px-3 text-sm font-semibold hover:bg-muted", children: [
18648
- /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": "true" }),
18649
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: label })
18650
- ] }),
18651
- renderSessionItems(items)
18652
- ] }, id)) }) : !sessionsOnly ? renderSessionItems(sessions) : null
18653
- ] }),
18654
- !sessionsOnly && viewModel.capabilities.manageAgentSettings ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("shrink-0 border-t border-border p-4", classNames?.footer), children: /* @__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: [
18655
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "size-4", "aria-hidden": "true" }),
18656
- messages.settings
18657
- ] }) }) : null
18658
- ]
18703
+ ) : null
18704
+ ]
18705
+ },
18706
+ item.id
18707
+ )) })
18708
+ ] }) : null,
18709
+ 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: [
18710
+ 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: [
18711
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
18712
+ messages.newSession
18713
+ ] }) : null,
18714
+ !sessionsOnly && viewModel.capabilities.manageCapabilities ? /* @__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: "open-capabilities" }), children: [
18715
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Blocks, { className: "size-4", "aria-hidden": "true" }),
18716
+ messages.capabilities
18717
+ ] }) : null,
18718
+ !sessionsOnly ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 px-3 text-xs font-medium text-muted-foreground", children: messages.recentSessions }) : null,
18719
+ /* @__PURE__ */ jsxRuntime.jsx(CollectionState, { status: viewModel.sessions.status, empty: messages.emptySessions, noResults: messages.noResults, hasItems: sessions.length > 0, query, error: viewModel.sessions.error, onRetry: () => onIntent?.({ type: "retry-sessions" }) }),
18720
+ sessionsOnly && sessions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: [
18721
+ { id: "chatbot", label: messages.chats, icon: lucideReact.MessageSquare, items: chatbotSessions },
18722
+ { id: "agent", label: messages.agents, icon: lucideReact.Bot, items: agentSessions }
18723
+ ].map(({ id, label, icon: Icon2, items }) => /* @__PURE__ */ jsxRuntime.jsxs("details", { open: true, "aria-label": label, children: [
18724
+ /* @__PURE__ */ jsxRuntime.jsxs("summary", { className: "flex h-9 cursor-pointer list-none items-center gap-2 rounded-md px-3 text-sm font-semibold hover:bg-muted", children: [
18725
+ /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": "true" }),
18726
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: label })
18727
+ ] }),
18728
+ renderSessionItems(items)
18729
+ ] }, id)) }) : !sessionsOnly ? renderSessionItems(sessions) : null
18730
+ ] }) : null
18731
+ ]
18732
+ }
18733
+ )
18659
18734
  }
18660
- ) });
18735
+ );
18661
18736
  }
18662
18737
  function AgentWorkbenchExploreCardMedia({
18663
18738
  item,
@@ -18710,7 +18785,8 @@ function AgentWorkbenchExploreCardMedia({
18710
18785
  }
18711
18786
  function AgentWorkbenchExploreSidebar({
18712
18787
  sessions,
18713
- groups,
18788
+ groups: configuredGroups,
18789
+ config,
18714
18790
  labels,
18715
18791
  selectedSessionId,
18716
18792
  searchQuery = "",
@@ -18719,14 +18795,23 @@ function AgentWorkbenchExploreSidebar({
18719
18795
  showDraftSession = !selectedSessionId,
18720
18796
  deleteSessions = false,
18721
18797
  defaultGroupId,
18798
+ header,
18799
+ footer,
18722
18800
  className,
18723
18801
  renderItemMedia,
18724
18802
  onIntent
18725
18803
  }) {
18726
18804
  const navigationMessages = useMonkeysLocaleMessages().agentWorkbench.navigation;
18727
18805
  const searchRef = React4.useRef(null);
18806
+ const resolvedConfig = React4.useMemo(() => monkeys.resolveAgentWorkbenchSidebarConfig(config), [config]);
18807
+ const visibleSections = React4.useMemo(
18808
+ () => new Set(resolvedConfig.visibleSections),
18809
+ [resolvedConfig.visibleSections]
18810
+ );
18811
+ const groups = configuredGroups?.length ? configuredGroups : resolvedConfig.groups;
18812
+ const resolvedDefaultGroupId = defaultGroupId ?? resolvedConfig.defaultGroupId;
18728
18813
  const [activeGroupId, setActiveGroupId] = React4.useState(
18729
- defaultGroupId ?? groups[0]?.id ?? ""
18814
+ resolvedDefaultGroupId ?? groups[0]?.id ?? ""
18730
18815
  );
18731
18816
  const activeGroup = groups.find((group) => group.id === activeGroupId) ?? groups[0];
18732
18817
  const normalizedQuery = searchQuery.trim().toLocaleLowerCase();
@@ -18739,8 +18824,8 @@ function AgentWorkbenchExploreSidebar({
18739
18824
  );
18740
18825
  React4.useEffect(() => {
18741
18826
  if (groups.some((group) => group.id === activeGroupId)) return;
18742
- setActiveGroupId(defaultGroupId ?? groups[0]?.id ?? "");
18743
- }, [activeGroupId, defaultGroupId, groups]);
18827
+ setActiveGroupId(resolvedDefaultGroupId ?? groups[0]?.id ?? "");
18828
+ }, [activeGroupId, groups, resolvedDefaultGroupId]);
18744
18829
  React4.useEffect(() => {
18745
18830
  const handleShortcut = (event) => {
18746
18831
  if (!(event.ctrlKey || event.metaKey) || event.key.toLocaleLowerCase() !== "k")
@@ -18756,166 +18841,147 @@ function AgentWorkbenchExploreSidebar({
18756
18841
  setActiveGroupId(groupId);
18757
18842
  onIntent?.({ type: "change-group", groupId });
18758
18843
  };
18759
- return /* @__PURE__ */ jsxRuntime.jsxs(
18760
- "nav",
18844
+ const state = !visibleSections.has("sessions") ? "ready" : error ? "error" : loading && sessions.length === 0 ? "loading" : filteredSessions.length === 0 && !draftVisible ? "empty" : "ready";
18845
+ 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: [
18846
+ /* @__PURE__ */ jsxRuntime.jsx(
18847
+ TabsList,
18848
+ {
18849
+ className: "grid h-10 w-full rounded-[var(--radius)] bg-muted p-0.5 text-foreground",
18850
+ style: { gridTemplateColumns: `repeat(${groups.length}, minmax(0, 1fr))` },
18851
+ children: groups.map((group) => /* @__PURE__ */ jsxRuntime.jsx(
18852
+ TabsTrigger,
18853
+ {
18854
+ value: group.id,
18855
+ className: "rounded-md text-sm font-semibold text-foreground data-[state=active]:border data-[state=active]:border-border data-[state=active]:bg-background",
18856
+ children: group.label
18857
+ },
18858
+ group.id
18859
+ ))
18860
+ }
18861
+ ),
18862
+ groups.map((group) => /* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value: group.id, className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-2", children: group.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
18863
+ "button",
18864
+ {
18865
+ type: "button",
18866
+ "aria-label": item.title,
18867
+ className: "group relative aspect-[1.27] overflow-hidden rounded-[var(--radius)] border border-border bg-card text-left transition hover:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
18868
+ style: Number.isFinite(group.itemAspectRatio) && Number(group.itemAspectRatio) > 0 ? { aspectRatio: group.itemAspectRatio } : void 0,
18869
+ onClick: () => onIntent?.({ type: "select-item", groupId: group.id, item }),
18870
+ children: renderItemMedia?.(item, group) ?? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkbenchExploreCardMedia, { item })
18871
+ },
18872
+ item.id
18873
+ )) }) }, group.id))
18874
+ ] }) }) : void 0;
18875
+ return /* @__PURE__ */ jsxRuntime.jsx(
18876
+ AgentWorkbenchSidebarContainer,
18761
18877
  {
18762
18878
  "data-sidebar-style": "explore",
18879
+ "data-sidebar-width-percent": resolvedConfig.widthPercent,
18763
18880
  "aria-label": labels.navigation,
18764
- className: cn2(
18765
- "flex h-full min-h-0 flex-col bg-background text-foreground",
18766
- className
18767
- ),
18768
- children: [
18769
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "shrink-0 space-y-3 px-4 pb-2 pt-4", children: [
18770
- /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: "h-12 rounded-[var(--radius)] border-border bg-card text-foreground", children: [
18771
- /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }) }),
18772
- /* @__PURE__ */ jsxRuntime.jsx(
18773
- InputGroupInput,
18774
- {
18775
- ref: searchRef,
18776
- type: "search",
18777
- value: searchQuery,
18778
- "aria-label": labels.search,
18779
- placeholder: labels.search,
18780
- className: "min-w-0 text-foreground placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:hidden",
18781
- onChange: (event) => onIntent?.({ type: "change-search", query: event.target.value })
18782
- }
18783
- ),
18784
- /* @__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" }) })
18785
- ] }),
18786
- /* @__PURE__ */ jsxRuntime.jsxs(
18787
- Button,
18788
- {
18789
- type: "button",
18790
- className: "h-11 w-full justify-start gap-2 rounded-[var(--radius)] border border-primary/60 bg-primary px-3 font-semibold text-primary-foreground hover:bg-primary/90",
18791
- onClick: () => onIntent?.({ type: "create-session" }),
18792
- children: [
18793
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
18794
- labels.newSession
18795
- ]
18796
- }
18797
- )
18798
- ] }),
18881
+ header: visibleSections.has("header") ? header : void 0,
18882
+ search: visibleSections.has("search") ? /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: "h-12 rounded-[var(--radius)] border-border bg-card text-foreground", children: [
18883
+ /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }) }),
18799
18884
  /* @__PURE__ */ jsxRuntime.jsx(
18885
+ InputGroupInput,
18886
+ {
18887
+ ref: searchRef,
18888
+ type: "search",
18889
+ value: searchQuery,
18890
+ "aria-label": labels.search,
18891
+ placeholder: labels.search,
18892
+ className: "min-w-0 text-foreground placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:hidden",
18893
+ onChange: (event) => onIntent?.({ type: "change-search", query: event.target.value })
18894
+ }
18895
+ ),
18896
+ /* @__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" }) })
18897
+ ] }) : void 0,
18898
+ primaryAction: visibleSections.has("new-session") ? /* @__PURE__ */ jsxRuntime.jsxs(
18899
+ Button,
18900
+ {
18901
+ type: "button",
18902
+ className: "h-11 w-full justify-start gap-2 rounded-[var(--radius)] border border-primary/60 bg-primary px-3 font-semibold text-primary-foreground hover:bg-primary/90",
18903
+ onClick: () => onIntent?.({ type: "create-session" }),
18904
+ children: [
18905
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
18906
+ labels.newSession
18907
+ ]
18908
+ }
18909
+ ) : void 0,
18910
+ groups: groupNavigation,
18911
+ footer: visibleSections.has("footer") ? footer : void 0,
18912
+ status: state,
18913
+ 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" }) }),
18914
+ emptyState: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-8 text-center text-sm text-muted-foreground", children: normalizedQuery ? labels.noResults : labels.emptySessions }),
18915
+ errorState: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-24 flex-col items-center justify-center gap-2 px-3 py-6 text-center", role: "alert", children: [
18916
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "size-5 shrink-0 text-destructive-text", "aria-hidden": "true" }),
18917
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-full break-words text-sm text-muted-foreground", children: error }),
18918
+ labels.retry ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", size: "sm", className: "gap-1.5 text-primary", onClick: () => onIntent?.({ type: "retry-sessions" }), children: [
18919
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { className: "size-3.5", "aria-hidden": "true" }),
18920
+ labels.retry
18921
+ ] }) : null
18922
+ ] }),
18923
+ bodyProps: { "data-agent-workbench-session-scroll-region": "" },
18924
+ className,
18925
+ classNames: { body: "min-h-[160px] flex-[0_1_280px] px-4 pb-3" },
18926
+ children: visibleSections.has("sessions") ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
18927
+ draftVisible ? /* @__PURE__ */ jsxRuntime.jsx(
18928
+ "button",
18929
+ {
18930
+ type: "button",
18931
+ "aria-current": "page",
18932
+ className: "block h-10 w-full min-w-0 truncate rounded-[var(--radius)] border border-primary bg-primary/10 px-3 text-left text-sm font-semibold text-foreground",
18933
+ onClick: () => onIntent?.({ type: "create-session" }),
18934
+ children: labels.draftSession
18935
+ }
18936
+ ) : null,
18937
+ filteredSessions.map((session) => /* @__PURE__ */ jsxRuntime.jsxs(
18800
18938
  "div",
18801
18939
  {
18802
- "data-agent-workbench-session-scroll-region": true,
18803
- className: "min-h-[160px] flex-[0_1_280px] overflow-x-hidden overflow-y-auto overscroll-contain px-4 pb-3",
18804
- children: error ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-24 flex-col items-center justify-center gap-2 px-3 py-6 text-center", role: "alert", children: [
18805
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "size-5 shrink-0 text-destructive-text", "aria-hidden": "true" }),
18806
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-full break-words text-sm text-muted-foreground", children: error }),
18807
- labels.retry ? /* @__PURE__ */ jsxRuntime.jsxs(
18808
- Button,
18809
- {
18810
- type: "button",
18811
- variant: "ghost",
18812
- size: "sm",
18813
- className: "gap-1.5 text-primary",
18814
- onClick: () => onIntent?.({ type: "retry-sessions" }),
18815
- children: [
18816
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { className: "size-3.5", "aria-hidden": "true" }),
18817
- labels.retry
18818
- ]
18819
- }
18820
- ) : null
18821
- ] }) : loading && sessions.length === 0 ? /* @__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" }) }) : filteredSessions.length === 0 && !draftVisible ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-8 text-center text-sm text-muted-foreground", children: normalizedQuery ? labels.noResults : labels.emptySessions }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
18822
- draftVisible ? /* @__PURE__ */ jsxRuntime.jsx(
18940
+ "aria-current": session.id === selectedSessionId ? "page" : void 0,
18941
+ className: "group flex h-10 w-full min-w-0 items-center rounded-[var(--radius)] border border-transparent bg-muted/60 text-foreground transition hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-primary/10",
18942
+ children: [
18943
+ /* @__PURE__ */ jsxRuntime.jsx(
18823
18944
  "button",
18824
18945
  {
18825
18946
  type: "button",
18826
- "aria-current": "page",
18827
- className: "block h-10 w-full min-w-0 truncate rounded-[var(--radius)] border border-primary bg-primary/10 px-3 text-left text-sm font-semibold text-foreground",
18828
- onClick: () => onIntent?.({ type: "create-session" }),
18829
- children: labels.draftSession
18947
+ title: session.title,
18948
+ className: "h-full min-w-0 flex-1 truncate px-3 text-left text-sm font-semibold",
18949
+ onClick: () => onIntent?.({ type: "select-session", sessionId: session.id }),
18950
+ children: session.title
18830
18951
  }
18831
- ) : null,
18832
- filteredSessions.map((session) => /* @__PURE__ */ jsxRuntime.jsxs(
18833
- "div",
18834
- {
18835
- "aria-current": session.id === selectedSessionId ? "page" : void 0,
18836
- className: "group flex h-10 w-full min-w-0 items-center rounded-[var(--radius)] border border-transparent bg-muted/60 text-foreground transition hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-primary/10",
18837
- children: [
18838
- /* @__PURE__ */ jsxRuntime.jsx(
18839
- "button",
18840
- {
18841
- type: "button",
18842
- title: session.title,
18843
- className: "h-full min-w-0 flex-1 truncate px-3 text-left text-sm font-semibold",
18844
- onClick: () => onIntent?.({ type: "select-session", sessionId: session.id }),
18845
- children: session.title
18846
- }
18847
- ),
18848
- deleteSessions ? /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu4, { children: [
18849
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
18850
- Button,
18851
- {
18852
- type: "button",
18853
- variant: "ghost",
18854
- size: "icon",
18855
- "aria-label": navigationMessages.actions,
18856
- className: "mr-1 size-8 shrink-0 text-muted-foreground opacity-0 transition-opacity group-aria-[current=page]:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100",
18857
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Ellipsis, { className: "size-4", "aria-hidden": "true" })
18858
- }
18859
- ) }),
18860
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuContent, { align: "end", children: /* @__PURE__ */ jsxRuntime.jsxs(
18861
- DropdownMenuItem,
18862
- {
18863
- className: "text-destructive-text",
18864
- onSelect: () => onIntent?.({
18865
- type: "delete-session",
18866
- sessionId: session.id
18867
- }),
18868
- children: [
18869
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "mr-2 size-4", "aria-hidden": "true" }),
18870
- navigationMessages.delete
18871
- ]
18872
- }
18873
- ) })
18874
- ] }) : null
18875
- ]
18876
- },
18877
- session.id
18878
- ))
18879
- ] })
18880
- }
18881
- ),
18882
- activeGroup ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 border-t border-border px-4 pb-4 pt-3", children: /* @__PURE__ */ jsxRuntime.jsxs(Tabs, { value: activeGroup.id, onValueChange: changeGroup, children: [
18883
- /* @__PURE__ */ jsxRuntime.jsx(
18884
- TabsList,
18885
- {
18886
- className: "grid h-10 w-full rounded-[var(--radius)] bg-muted p-0.5 text-foreground",
18887
- style: {
18888
- gridTemplateColumns: `repeat(${groups.length}, minmax(0, 1fr))`
18889
- },
18890
- children: groups.map((group) => /* @__PURE__ */ jsxRuntime.jsx(
18891
- TabsTrigger,
18892
- {
18893
- value: group.id,
18894
- className: "rounded-md text-sm font-semibold text-foreground data-[state=active]:border data-[state=active]:border-border data-[state=active]:bg-background",
18895
- children: group.label
18896
- },
18897
- group.id
18898
- ))
18899
- }
18900
- ),
18901
- groups.map((group) => /* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value: group.id, className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-2", children: group.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
18902
- "button",
18903
- {
18904
- type: "button",
18905
- "aria-label": item.title,
18906
- className: "group relative aspect-[1.27] overflow-hidden rounded-[var(--radius)] border border-border bg-card text-left transition hover:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
18907
- style: Number.isFinite(group.itemAspectRatio) && Number(group.itemAspectRatio) > 0 ? { aspectRatio: group.itemAspectRatio } : void 0,
18908
- onClick: () => onIntent?.({
18909
- type: "select-item",
18910
- groupId: group.id,
18911
- item
18912
- }),
18913
- children: renderItemMedia?.(item, group) ?? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkbenchExploreCardMedia, { item })
18914
- },
18915
- item.id
18916
- )) }) }, group.id))
18917
- ] }) }) : null
18918
- ]
18952
+ ),
18953
+ deleteSessions ? /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu4, { children: [
18954
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
18955
+ Button,
18956
+ {
18957
+ type: "button",
18958
+ variant: "ghost",
18959
+ size: "icon",
18960
+ "aria-label": navigationMessages.actions,
18961
+ className: "mr-1 size-8 shrink-0 text-muted-foreground opacity-0 transition-opacity group-aria-[current=page]:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100",
18962
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Ellipsis, { className: "size-4", "aria-hidden": "true" })
18963
+ }
18964
+ ) }),
18965
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuContent, { align: "end", children: /* @__PURE__ */ jsxRuntime.jsxs(
18966
+ DropdownMenuItem,
18967
+ {
18968
+ className: "text-destructive-text",
18969
+ onSelect: () => onIntent?.({
18970
+ type: "delete-session",
18971
+ sessionId: session.id
18972
+ }),
18973
+ children: [
18974
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "mr-2 size-4", "aria-hidden": "true" }),
18975
+ navigationMessages.delete
18976
+ ]
18977
+ }
18978
+ ) })
18979
+ ] }) : null
18980
+ ]
18981
+ },
18982
+ session.id
18983
+ ))
18984
+ ] }) : null
18919
18985
  }
18920
18986
  );
18921
18987
  }
@@ -32871,6 +32937,7 @@ exports.AgentWorkbenchActivity = AgentWorkbenchActivity;
32871
32937
  exports.AgentWorkbenchExploreSidebar = AgentWorkbenchExploreSidebar;
32872
32938
  exports.AgentWorkbenchShell = AgentWorkbenchShell;
32873
32939
  exports.AgentWorkbenchSidebar = AgentWorkbenchSidebar;
32940
+ exports.AgentWorkbenchSidebarContainer = AgentWorkbenchSidebarContainer;
32874
32941
  exports.AgentWorkbenchTaskDetails = AgentWorkbenchTaskDetails;
32875
32942
  exports.AgentWorkbenchTool = AgentWorkbenchTool;
32876
32943
  exports.AppHeader = AppHeader;